@netless/app-slide 0.2.33 → 0.2.34-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -1
- package/dist/main.cjs.js +112 -112
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +891 -841
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +112 -112
- package/dist/main.iife.js.map +1 -1
- package/package.json +2 -2
- package/src/SlideController/index.ts +1 -0
- package/src/index.ts +1 -0
package/dist/main.es.js
CHANGED
|
@@ -12627,18 +12627,16 @@ var Slide = function(t) {
|
|
|
12627
12627
|
return r(t2) && n(t2) == "[object Set]";
|
|
12628
12628
|
};
|
|
12629
12629
|
}, function(t, e, i) {
|
|
12630
|
-
i.r(e), i.d(e, "
|
|
12631
|
-
return
|
|
12632
|
-
}), i.d(e, "preloadResource", function() {
|
|
12633
|
-
return $b;
|
|
12630
|
+
i.r(e), i.d(e, "preloadResource", function() {
|
|
12631
|
+
return tT;
|
|
12634
12632
|
}), i.d(e, "delay", function() {
|
|
12635
|
-
return sT;
|
|
12636
|
-
}), i.d(e, "waitUntil", function() {
|
|
12637
12633
|
return aT;
|
|
12638
|
-
}), i.d(e, "
|
|
12634
|
+
}), i.d(e, "waitUntil", function() {
|
|
12639
12635
|
return lT;
|
|
12636
|
+
}), i.d(e, "SLIDE_EVENTS", function() {
|
|
12637
|
+
return hT;
|
|
12640
12638
|
}), i.d(e, "Slide", function() {
|
|
12641
|
-
return
|
|
12639
|
+
return pT;
|
|
12642
12640
|
});
|
|
12643
12641
|
const n = [];
|
|
12644
12642
|
for (let t2 = 0; t2 < 256; t2++)
|
|
@@ -28597,78 +28595,90 @@ void main() {
|
|
|
28597
28595
|
});
|
|
28598
28596
|
}
|
|
28599
28597
|
class Lm {
|
|
28600
|
-
constructor(t2, e2, i2, n2, r2) {
|
|
28601
|
-
this.timeout = 15e3, this.useCache = false, this.taskId = "", this.delegate = null, this.useCache = e2, this.localStorage = t2, this.logger = i2, this.timeout = n2, this.delegate = r2 || null;
|
|
28598
|
+
constructor(t2, e2, i2, n2, r2, o2) {
|
|
28599
|
+
this.timeout = 15e3, this.useCache = false, this.taskId = "", this.delegate = null, this.urlInterrupter = null, this.useCache = e2, this.localStorage = t2, this.logger = i2, this.timeout = n2, this.delegate = r2 || null, this.urlInterrupter = o2 || null;
|
|
28602
28600
|
}
|
|
28603
28601
|
attachTaskId(t2) {
|
|
28604
28602
|
this.taskId = t2;
|
|
28605
28603
|
}
|
|
28606
28604
|
fetchJson(t2) {
|
|
28607
28605
|
return Om(this, void 0, void 0, function* () {
|
|
28608
|
-
let e2;
|
|
28609
|
-
|
|
28610
|
-
|
|
28606
|
+
let e2 = t2;
|
|
28607
|
+
const i2 = t2;
|
|
28608
|
+
if (this.urlInterrupter && typeof this.urlInterrupter == "function") {
|
|
28609
|
+
const t3 = Date.now();
|
|
28610
|
+
e2 = yield this.urlInterrupter(e2), this.logger.info("use url interrupter, time: " + (Date.now() - t3), this.taskId);
|
|
28611
|
+
}
|
|
28612
|
+
let n2;
|
|
28613
|
+
if (this.useCache && (this.logger.info("load resource from cache. " + i2, this.taskId || ""), n2 = yield this.localStorage.getItem(i2)), n2)
|
|
28614
|
+
return this.logger.info("cache hit. " + i2, this.taskId || ""), n2;
|
|
28611
28615
|
{
|
|
28612
|
-
let
|
|
28616
|
+
let t3;
|
|
28613
28617
|
if (this.delegate) {
|
|
28614
|
-
this.logger.info("load resource by delegate. " +
|
|
28615
|
-
const
|
|
28616
|
-
if (
|
|
28617
|
-
throw new Tm(gm.ResourceError, `"${
|
|
28618
|
-
|
|
28618
|
+
this.logger.info("load resource by delegate. " + i2, this.taskId || "");
|
|
28619
|
+
const n3 = yield Im(() => this.delegate.loadJson(e2), this.timeout);
|
|
28620
|
+
if (n3 === Rm)
|
|
28621
|
+
throw new Tm(gm.ResourceError, `"${i2}" loaded timeout"`);
|
|
28622
|
+
t3 = JSON.parse(n3);
|
|
28619
28623
|
} else
|
|
28620
|
-
this.logger.info("load resource from server. " +
|
|
28621
|
-
return this.logger.info("load end. " +
|
|
28622
|
-
}),
|
|
28624
|
+
this.logger.info("load resource from server. " + i2, this.taskId || ""), t3 = yield (yield Nm("" + e2, this.timeout)).json();
|
|
28625
|
+
return this.logger.info("load end. " + i2, this.taskId || ""), this.useCache && this.localStorage.setItem(i2, t3).catch(() => {
|
|
28626
|
+
}), t3;
|
|
28623
28627
|
}
|
|
28624
28628
|
});
|
|
28625
28629
|
}
|
|
28626
28630
|
fetchPng(t2, e2) {
|
|
28627
28631
|
return Om(this, void 0, void 0, function* () {
|
|
28628
|
-
let i2;
|
|
28629
|
-
const n2 = t2
|
|
28630
|
-
if (this.
|
|
28631
|
-
const
|
|
28632
|
-
this.logger.info("
|
|
28633
|
-
|
|
28632
|
+
let i2 = t2;
|
|
28633
|
+
const n2 = t2;
|
|
28634
|
+
if (this.urlInterrupter && typeof this.urlInterrupter == "function") {
|
|
28635
|
+
const t3 = Date.now();
|
|
28636
|
+
i2 = yield this.urlInterrupter(i2), this.logger.info("use url interrupter, time: " + (Date.now() - t3), this.taskId);
|
|
28637
|
+
}
|
|
28638
|
+
let r2;
|
|
28639
|
+
const o2 = n2 + "-v2";
|
|
28640
|
+
if (this.useCache && (this.logger.info("load resource from cache. " + n2, this.taskId || ""), r2 = yield this.localStorage.getItem(o2)), r2) {
|
|
28641
|
+
const { scale: t3, scaledBase64: e3 } = r2;
|
|
28642
|
+
this.logger.info("cache hit. " + n2, this.taskId || "");
|
|
28643
|
+
return { baseTexture: new Vh.c(e3, { resolution: 1 }), scale: t3 };
|
|
28634
28644
|
}
|
|
28635
28645
|
{
|
|
28636
|
-
let
|
|
28646
|
+
let t3;
|
|
28637
28647
|
if (this.delegate) {
|
|
28638
|
-
if (this.logger.info("load resource by delegate. " +
|
|
28639
|
-
throw new Tm(gm.ResourceError, `"${
|
|
28648
|
+
if (this.logger.info("load resource by delegate. " + n2, this.taskId || ""), t3 = yield Im(() => this.delegate.loadImage(i2), this.timeout), t3 === Rm)
|
|
28649
|
+
throw new Tm(gm.ResourceError, `"${n2}" loaded timeout"`);
|
|
28640
28650
|
} else {
|
|
28641
|
-
this.logger.info("load resource from server. " +
|
|
28642
|
-
const e3 = yield Nm(
|
|
28643
|
-
|
|
28651
|
+
this.logger.info("load resource from server. " + n2, this.taskId || "");
|
|
28652
|
+
const e3 = yield Nm(i2, this.timeout);
|
|
28653
|
+
t3 = yield e3.blob();
|
|
28644
28654
|
}
|
|
28645
|
-
|
|
28655
|
+
r2 = yield function(t4) {
|
|
28646
28656
|
return new Promise((e3, i3) => {
|
|
28647
28657
|
const n3 = new FileReader();
|
|
28648
28658
|
n3.onload = () => {
|
|
28649
28659
|
e3(n3.result);
|
|
28650
28660
|
}, n3.onerror = () => {
|
|
28651
28661
|
i3(new Tm(gm.ResourceError, "Failed parse blob data."));
|
|
28652
|
-
}, n3.readAsDataURL(
|
|
28662
|
+
}, n3.readAsDataURL(t4);
|
|
28653
28663
|
});
|
|
28654
|
-
}(
|
|
28655
|
-
const
|
|
28656
|
-
|
|
28657
|
-
|
|
28664
|
+
}(t3);
|
|
28665
|
+
const s2 = document.createElement("img");
|
|
28666
|
+
s2.src = r2, yield new Promise((t4, e3) => {
|
|
28667
|
+
s2.onload = () => t4(""), s2.onerror = () => e3(new Error("load sprite image failed"));
|
|
28658
28668
|
});
|
|
28659
|
-
let
|
|
28660
|
-
const
|
|
28661
|
-
if (
|
|
28662
|
-
|
|
28663
|
-
const
|
|
28664
|
-
|
|
28665
|
-
}
|
|
28666
|
-
const
|
|
28667
|
-
|
|
28668
|
-
|
|
28669
|
-
const
|
|
28670
|
-
return this.logger.info("load end. " +
|
|
28671
|
-
}), { baseTexture:
|
|
28669
|
+
let a2 = e2;
|
|
28670
|
+
const l2 = s2.width || 1, h2 = s2.height || 1, u2 = 2048, c2 = 2048;
|
|
28671
|
+
if (l2 > u2 || h2 > c2) {
|
|
28672
|
+
a2 *= u2 / l2;
|
|
28673
|
+
const t4 = a2 * h2;
|
|
28674
|
+
t4 > c2 && (a2 *= h2 / t4);
|
|
28675
|
+
}
|
|
28676
|
+
const d2 = document.createElement("canvas"), p2 = Math.ceil(s2.width * a2), f2 = Math.ceil(s2.height * a2);
|
|
28677
|
+
d2.width = p2, d2.height = f2;
|
|
28678
|
+
d2.getContext("2d").drawImage(s2, 0, 0, p2, f2);
|
|
28679
|
+
const m2 = d2.toDataURL("image/png"), g2 = new Vh.c(m2, { resolution: 1 });
|
|
28680
|
+
return this.logger.info("load end. " + n2, this.taskId || ""), this.useCache && this.localStorage.setItem(o2, { scale: a2, scaledBase64: m2 }).catch(() => {
|
|
28681
|
+
}), { baseTexture: g2, scale: a2 };
|
|
28672
28682
|
}
|
|
28673
28683
|
});
|
|
28674
28684
|
}
|
|
@@ -29172,26 +29182,26 @@ void main() {
|
|
|
29172
29182
|
return this.object.hitArea ? this.object.hitArea : new Lh.k(0, 0, this.object.width, this.object.height);
|
|
29173
29183
|
}
|
|
29174
29184
|
handleAction(t2, e2 = false) {
|
|
29175
|
-
this.proxy && !e2 || (this.ctx.eventHub.emit(
|
|
29185
|
+
this.proxy && !e2 || (this.ctx.eventHub.emit(Hy.hyperlinkTrigger, t2), this.execAction(t2));
|
|
29176
29186
|
}
|
|
29177
29187
|
execAction(t2) {
|
|
29178
29188
|
var e2;
|
|
29179
|
-
if (this.ctx.eventHub.emit(
|
|
29189
|
+
if (this.ctx.eventHub.emit(Hy.userInput), t2.action === "ppaction://hlinksldjump") {
|
|
29180
29190
|
const i2 = ((e2 = t2 == null ? void 0 : t2.target) !== null && e2 !== void 0 ? e2 : "").match(/slide(\d+)\.xml/);
|
|
29181
|
-
i2 && i2[1] && this.ctx.eventHub.emit(
|
|
29191
|
+
i2 && i2[1] && this.ctx.eventHub.emit(Hy.requestGotoSlide, Number(i2[1]));
|
|
29182
29192
|
} else if (t2.action === "ppaction://hlinkshowjump?jump=nextslide")
|
|
29183
|
-
this.ctx.eventHub.emit(
|
|
29193
|
+
this.ctx.eventHub.emit(Hy.requestNextSlide);
|
|
29184
29194
|
else if (t2.action === "ppaction://hlinkshowjump?jump=previousslide")
|
|
29185
|
-
this.ctx.eventHub.emit(
|
|
29195
|
+
this.ctx.eventHub.emit(Hy.requestPrevSlide);
|
|
29186
29196
|
else if (t2.action === "ppaction://hlinkshowjump?jump=firstslide")
|
|
29187
|
-
this.ctx.eventHub.emit(
|
|
29197
|
+
this.ctx.eventHub.emit(Hy.requestGotoSlide, 1);
|
|
29188
29198
|
else if (t2.action === "ppaction://hlinkshowjump?jump=lastslide")
|
|
29189
|
-
this.ctx.eventHub.emit(
|
|
29199
|
+
this.ctx.eventHub.emit(Hy.requestGotoSlide, -1);
|
|
29190
29200
|
else if (t2.action === "ppaction://hlinkshowjump?jump=lastslideviewed") {
|
|
29191
29201
|
const t3 = this.ctx.lastViewedIndex;
|
|
29192
|
-
this.ctx.eventHub.emit(
|
|
29202
|
+
this.ctx.eventHub.emit(Hy.requestGotoSlide, t3);
|
|
29193
29203
|
} else
|
|
29194
|
-
t2.action === "ppaction://hlinkshowjump?jump=endshow" && this.ctx.eventHub.emit(
|
|
29204
|
+
t2.action === "ppaction://hlinkshowjump?jump=endshow" && this.ctx.eventHub.emit(Hy.requestGotoSlide, -1);
|
|
29195
29205
|
}
|
|
29196
29206
|
}
|
|
29197
29207
|
function sg(t2, e2, i2 = 5) {
|
|
@@ -31043,11 +31053,13 @@ void main(void){
|
|
|
31043
31053
|
}), "@ShapeImpl[addGraphics]"), (n2 = this.text) === null || n2 === void 0 || n2.createParagraphs(this.json.id, t2);
|
|
31044
31054
|
}
|
|
31045
31055
|
subClassRender() {
|
|
31056
|
+
return Zv(this, void 0, void 0, function* () {
|
|
31057
|
+
});
|
|
31046
31058
|
}
|
|
31047
31059
|
render(t2) {
|
|
31048
31060
|
t2.addSubMTask(() => Zv(this, void 0, void 0, function* () {
|
|
31049
31061
|
var t3, e2;
|
|
31050
|
-
(t3 = this.strokeGraphics) === null || t3 === void 0 || t3.render(), (e2 = this.backgroundGraphics) === null || e2 === void 0 || e2.render(), this.createBackground(), this.subClassRender(), this.createFilledPathMask(), this.createPathFill(), this.createArrow();
|
|
31062
|
+
(t3 = this.strokeGraphics) === null || t3 === void 0 || t3.render(), (e2 = this.backgroundGraphics) === null || e2 === void 0 || e2.render(), this.createBackground(), yield this.subClassRender(), this.createFilledPathMask(), this.createPathFill(), this.createArrow();
|
|
31051
31063
|
}), "@ShapeImpl[render]"), this.text && this.text.render(t2), t2.addSubMTask(() => Zv(this, void 0, void 0, function* () {
|
|
31052
31064
|
var t3, e2, i2, n2, r2, o2, s2, a2, l2, h2, u2, c2, d2;
|
|
31053
31065
|
if (((t3 = this.json.textBody) === null || t3 === void 0 ? void 0 : t3.iterateType) === "wd" || ((e2 = this.json.textBody) === null || e2 === void 0 ? void 0 : e2.iterateType) === "lt") {
|
|
@@ -31159,7 +31171,7 @@ void main(void){
|
|
|
31159
31171
|
return void this.ctx.logger.info("Media controller prevent seek event with paused state", this.ctx.taskId);
|
|
31160
31172
|
t3.stopPropagation();
|
|
31161
31173
|
const e3 = t3.offsetX / this.progress.clientWidth * this.duration;
|
|
31162
|
-
this.medianIsEnd = false, this.ctx.mode !== "interactive" && this.jumpToTime(e3), this.ctx.mode !== "local" && this.ctx.eventHub.emit(
|
|
31174
|
+
this.medianIsEnd = false, this.ctx.mode !== "interactive" && this.jumpToTime(e3), this.ctx.mode !== "local" && this.ctx.eventHub.emit(Hy.mediaSeek, { id: this.targetId, time: e3, isPlaying: this.media.isPlaying }), this.delayHide();
|
|
31163
31175
|
}, this.jumpToTime = (t3 = 0) => r_(this, void 0, void 0, function* () {
|
|
31164
31176
|
yield Pm(() => !!this.duration, 3e3);
|
|
31165
31177
|
const e3 = Math.floor(t3) + this.start;
|
|
@@ -31178,7 +31190,7 @@ void main(void){
|
|
|
31178
31190
|
t3.stopPropagation(), this.hide();
|
|
31179
31191
|
}, this.mediaTimeUpdate = () => r_(this, void 0, void 0, function* () {
|
|
31180
31192
|
const t3 = this.media.currentTime - this.start;
|
|
31181
|
-
if (this.duration > 0 && (t3 > this.duration || this.media.ended) && (yield this.pauseMedia(), this.medianIsEnd = true, this.jumpToTime(), this.ctx.eventHub.emit(
|
|
31193
|
+
if (this.duration > 0 && (t3 > this.duration || this.media.ended) && (yield this.pauseMedia(), this.medianIsEnd = true, this.jumpToTime(), this.ctx.eventHub.emit(Hy.mediaStop, { id: this.targetId }), this.onClickCancelFullScreenButtonHandle()), this.currentTime.innerText = a_.formatTime(t3), this.currentProgress.style.flex = (t3 / this.duration).toString(), !this.bookmarkList || this.bookmarkList.length === 0)
|
|
31182
31194
|
return;
|
|
31183
31195
|
const e3 = this.bookmarkList[this.pickBookmarkIndex];
|
|
31184
31196
|
e3 && e3.time.toFixed(0) === this.media.currentTime.toFixed(0) && (this.ctx.timingEventHub.emit(`shape ${this.shapeId} onMediaBookmark ${e3.name}`), this.pickBookmarkIndex += 1);
|
|
@@ -31195,7 +31207,7 @@ void main(void){
|
|
|
31195
31207
|
}, this.onClickFullScreenButtonHandle = () => {
|
|
31196
31208
|
this.fullscreenPlay();
|
|
31197
31209
|
}, this.onClickCancelFullScreenButtonHandle = () => {
|
|
31198
|
-
this.fullscreenStatus = false, this.media.requestCancelFullscreen(), this.ctx.eventHub.emit(
|
|
31210
|
+
this.fullscreenStatus = false, this.media.requestCancelFullscreen(), this.ctx.eventHub.emit(Hy.fullscreenChange, { targetId: this.targetId, state: false }), this.delayHide();
|
|
31199
31211
|
}, this.onFullScreenChange = (t3) => {
|
|
31200
31212
|
const { status: e3, targetId: i3, slideIndex: n2 } = t3;
|
|
31201
31213
|
this.changeFullScreenState(e3, i3, n2), this.delayHide();
|
|
@@ -31301,10 +31313,10 @@ void main(void){
|
|
|
31301
31313
|
}
|
|
31302
31314
|
}
|
|
31303
31315
|
playMediaFromCtrl(t2) {
|
|
31304
|
-
this.ctx.isPlayerPaused() ? this.ctx.logger.info("Media controller prevent play event with paused state", this.ctx.taskId) : (this.ctx.mode !== "interactive" && this.playMedia(), this.ctx.mode !== "local" && this.ctx.eventHub.emit(
|
|
31316
|
+
this.ctx.isPlayerPaused() ? this.ctx.logger.info("Media controller prevent play event with paused state", this.ctx.taskId) : (this.ctx.mode !== "interactive" && this.playMedia(), this.ctx.mode !== "local" && this.ctx.eventHub.emit(Hy.mediaPlay, { id: this.targetId, time: this.media.currentTime - this.start, _stateOnly: t2 }));
|
|
31305
31317
|
}
|
|
31306
31318
|
pauseMediaFromCtrl(t2) {
|
|
31307
|
-
this.ctx.isPlayerPaused() ? this.ctx.logger.info("Media controller prevent pause event with paused state", this.ctx.taskId) : (this.ctx.mode !== "interactive" && this.pauseMedia(), this.ctx.mode === "local" || this.ctx.isRendering || this.ctx.eventHub.emit(
|
|
31319
|
+
this.ctx.isPlayerPaused() ? this.ctx.logger.info("Media controller prevent pause event with paused state", this.ctx.taskId) : (this.ctx.mode !== "interactive" && this.pauseMedia(), this.ctx.mode === "local" || this.ctx.isRendering || this.ctx.eventHub.emit(Hy.mediaPause, { id: this.targetId, time: this.media.currentTime - this.start, _stateOnly: t2 }));
|
|
31308
31320
|
}
|
|
31309
31321
|
setControllerPosition() {
|
|
31310
31322
|
var t2;
|
|
@@ -31320,7 +31332,7 @@ void main(void){
|
|
|
31320
31332
|
this.playCallBackList.push(t2);
|
|
31321
31333
|
}
|
|
31322
31334
|
fullscreenPlay() {
|
|
31323
|
-
this.fullscreenStatus = true, this.ctx.mode !== "interactive" && this.media.requestFullscreen(), this.ctx.mode !== "local" && this.ctx.eventHub.emit(
|
|
31335
|
+
this.fullscreenStatus = true, this.ctx.mode !== "interactive" && this.media.requestFullscreen(), this.ctx.mode !== "local" && this.ctx.eventHub.emit(Hy.fullscreenChange, { targetId: this.targetId, state: true }), this.delayHide();
|
|
31324
31336
|
}
|
|
31325
31337
|
changeFullScreenState(t2, e2, i2) {
|
|
31326
31338
|
i2 === this.ctx.slideIndex && (t2 && this.targetId === e2 ? this.fullscreenStatus = t2 : this.fullscreenStatus = false, this.fullscreenStatus ? (this.fullScreenButton.style.display = "none", this.exitFullScreenButton.style.display = "block") : (this.fullScreenButton.style.display = "block", this.exitFullScreenButton.style.display = "none"), this.setControllerPosition());
|
|
@@ -31351,7 +31363,7 @@ void main(void){
|
|
|
31351
31363
|
var l_ = i(120);
|
|
31352
31364
|
class h_ extends Za.a {
|
|
31353
31365
|
constructor(t2, e2) {
|
|
31354
|
-
super(), this.isGlobalPause = false, this.lastTime = -1, this.howl = null, this.rctClient = null, this.isHowlEnd = false, this.isHowlLoadEmit = false, this.url = t2, this.runningAudio = e2,
|
|
31366
|
+
super(), this.isGlobalPause = false, this.lastTime = -1, this.howl = null, this.rctClient = null, this.isHowlEnd = false, this.isHowlLoadEmit = false, this.url = t2, this.runningAudio = e2, jy.RtcAudioClazz ? (this.rctClient = new jy.RtcAudioClazz(t2), this.rctClient.on("load", () => this.emit("load")), this.rctClient.on("pause", () => this.emit("pause")), this.rctClient.on("play", () => this.emit("play"))) : (this.howl = new l_.Howl({ src: [t2] }), this.howl.load(), this.howl.on("load", () => {
|
|
31355
31367
|
this.isHowlLoadEmit = true, this.emit("load");
|
|
31356
31368
|
}), this.howl.on("pause", () => this.emit("pause")), this.howl.on("play", () => {
|
|
31357
31369
|
this.isHowlLoadEmit || this.emit("load"), this.isHowlEnd = false, this.emit("play");
|
|
@@ -31441,8 +31453,8 @@ void main(void){
|
|
|
31441
31453
|
const { targetId: e3, state: i3, slideIndex: n3 } = t3;
|
|
31442
31454
|
n3 === this.ctx.slideIndex && e3 === this.id && (i3 ? (this.requestFullscreen(), this.ctx.latestChangeFullscreenTargetId = e3) : this.requestCancelFullscreen());
|
|
31443
31455
|
}, this.id = t2.id, this.start = (e2 = t2.video.cut) === null || e2 === void 0 ? void 0 : e2.start, this.end = (i2 = t2.video.cut) === null || i2 === void 0 ? void 0 : i2.end, this.fullscreen = (n2 = t2.video.fullscreen) !== null && n2 !== void 0 && n2, this.container = t2.container, this.ctx = t2.ctx, this.ctx.medias[this.id] = this;
|
|
31444
|
-
|
|
31445
|
-
this.
|
|
31456
|
+
const s2 = t2.video.src;
|
|
31457
|
+
this.videoResource = new Vh.w(s2, { autoLoad: true, autoPlay: false, updateFPS: 30, crossorigin: true }), (r2 = this.videoElement) === null || r2 === void 0 || r2.addEventListener("stalled", this.onVideoStalled), (o2 = this.videoElement) === null || o2 === void 0 || o2.addEventListener("loadedmetadata", this.onVideoResourceLoaded), this.url = t2.video.src;
|
|
31446
31458
|
let a2 = t2.video.src.replace(/4$/, "3");
|
|
31447
31459
|
this.ctx.loaderDelegate && (a2 = this.ctx.loaderDelegate.redirectMedia(a2), this.ctx.logger.info(`redirect media url from ${t2.video.src.replace(/4$/, "3")} to ${a2} by delegate.`, t2.ctx.taskId)), this.rtcAudio = new h_(a2, t2.ctx.runningAudio);
|
|
31448
31460
|
const { video: l2, width: h2, height: u2, target: c2 } = t2;
|
|
@@ -31529,7 +31541,7 @@ void main(void){
|
|
|
31529
31541
|
this.controller.jumpToTime(t2);
|
|
31530
31542
|
}
|
|
31531
31543
|
stop() {
|
|
31532
|
-
this.seek(0), this.pause(), this.ctx.eventHub.emit(
|
|
31544
|
+
this.seek(0), this.pause(), this.ctx.eventHub.emit(Hy.mediaStop);
|
|
31533
31545
|
}
|
|
31534
31546
|
requestFullscreen() {
|
|
31535
31547
|
return u_(this, void 0, void 0, function* () {
|
|
@@ -31576,8 +31588,8 @@ void main(void){
|
|
|
31576
31588
|
super(), this.type = "audio", this.isPlaying = false, this.isGlobalPause = false, this.updateVolume = (t3) => {
|
|
31577
31589
|
this.audioPlayer.volume(t3);
|
|
31578
31590
|
}, this.id = t2.id;
|
|
31579
|
-
|
|
31580
|
-
|
|
31591
|
+
const e2 = t2.audio.src;
|
|
31592
|
+
this.audioPlayer = new h_(e2, t2.ctx.runningAudio), t2.audio.cut && (this.start = t2.audio.cut.start, this.end = t2.audio.cut.end), this.ctx = t2.ctx, this.ctx.medias[this.id] = this;
|
|
31581
31593
|
const { width: i2, height: n2, target: r2 } = t2;
|
|
31582
31594
|
this.controller = new a_({ targetId: t2.id, shapeId: t2.shapeId, ctx: t2.ctx, height: n2, width: i2, target: r2, media: this, info: t2.audio, canvasElement: t2.canvasElement }), this.audioPlayer.on("load", () => this.emit("durationchange")), this.audioPlayer.on("timeupdate", () => this.emit("timeupdate")), this.audioPlayer.on("pause", () => this.emit("pause")), this.audioPlayer.on("play", () => this.emit("play")), this.ctx.activeMedia.add(this), this.ctx.volumeAdjuster.on("update", this.updateVolume);
|
|
31583
31595
|
}
|
|
@@ -31632,7 +31644,7 @@ void main(void){
|
|
|
31632
31644
|
this.ctx.isPlayerPaused() ? this.ctx.logger.info("Audio player prevent seek event with paused state", this.ctx.taskId) : this.controller.jumpToTime(t2);
|
|
31633
31645
|
}
|
|
31634
31646
|
stop() {
|
|
31635
|
-
this.seek(0), this.pause(), this.ctx.eventHub.emit(
|
|
31647
|
+
this.seek(0), this.pause(), this.ctx.eventHub.emit(Hy.mediaStop);
|
|
31636
31648
|
}
|
|
31637
31649
|
requestFullscreen() {
|
|
31638
31650
|
}
|
|
@@ -31642,7 +31654,32 @@ void main(void){
|
|
|
31642
31654
|
this.ctx.volumeAdjuster.removeListener("update", this.updateVolume), this.stop(), this.controller.destroy(), this.ctx.activeMedia.delete(this);
|
|
31643
31655
|
}
|
|
31644
31656
|
}
|
|
31645
|
-
|
|
31657
|
+
var f_ = function(t2, e2, i2, n2) {
|
|
31658
|
+
return new (i2 || (i2 = Promise))(function(r2, o2) {
|
|
31659
|
+
function s2(t3) {
|
|
31660
|
+
try {
|
|
31661
|
+
l2(n2.next(t3));
|
|
31662
|
+
} catch (t4) {
|
|
31663
|
+
o2(t4);
|
|
31664
|
+
}
|
|
31665
|
+
}
|
|
31666
|
+
function a2(t3) {
|
|
31667
|
+
try {
|
|
31668
|
+
l2(n2.throw(t3));
|
|
31669
|
+
} catch (t4) {
|
|
31670
|
+
o2(t4);
|
|
31671
|
+
}
|
|
31672
|
+
}
|
|
31673
|
+
function l2(t3) {
|
|
31674
|
+
var e3;
|
|
31675
|
+
t3.done ? r2(t3.value) : (e3 = t3.value, e3 instanceof i2 ? e3 : new i2(function(t4) {
|
|
31676
|
+
t4(e3);
|
|
31677
|
+
})).then(s2, a2);
|
|
31678
|
+
}
|
|
31679
|
+
l2((n2 = n2.apply(t2, e2 || [])).next());
|
|
31680
|
+
});
|
|
31681
|
+
};
|
|
31682
|
+
class m_ extends Kv {
|
|
31646
31683
|
constructor(t2, e2, i2, n2) {
|
|
31647
31684
|
super(Object.assign(Object.assign({}, t2), { type: "Shape", useBgFill: false, textRotateWithShape: true, isPicture: true }), e2, i2, n2), this.isInteractiveOutside = false, this.cmd = new eg(this), this.media = t2 == null ? void 0 : t2.media, this.container.name = t2.id + "_container_[Picture]", this.renderContainer.name = t2.id + "_render_container_[Picture]", this.picFill = new av(this.ctx, t2.picFill, t2.width, t2.height, { useFilter: true, useSlideBackgroundFill: false });
|
|
31648
31685
|
}
|
|
@@ -31657,42 +31694,54 @@ void main(void){
|
|
|
31657
31694
|
}
|
|
31658
31695
|
renderPic() {
|
|
31659
31696
|
var t2, e2, i2, n2, r2, o2;
|
|
31660
|
-
|
|
31661
|
-
|
|
31662
|
-
s2
|
|
31663
|
-
|
|
31664
|
-
|
|
31665
|
-
|
|
31666
|
-
|
|
31667
|
-
|
|
31668
|
-
if (this.effectObject
|
|
31669
|
-
this.effectObject.
|
|
31670
|
-
|
|
31671
|
-
|
|
31672
|
-
|
|
31673
|
-
|
|
31674
|
-
|
|
31675
|
-
|
|
31676
|
-
|
|
31677
|
-
|
|
31678
|
-
|
|
31697
|
+
return f_(this, void 0, void 0, function* () {
|
|
31698
|
+
const { displayObject: s2 } = this.picFill;
|
|
31699
|
+
if (s2) {
|
|
31700
|
+
s2.name = this.json.id + "_pic_fill_[Picture]";
|
|
31701
|
+
const a2 = (t2 = this.backgroundGraphics) === null || t2 === void 0 ? void 0 : t2.getClonedDisplayObject();
|
|
31702
|
+
if (((e2 = this.backgroundGraphics) === null || e2 === void 0 ? void 0 : e2.isNeedMask(s2.width, s2.height)) && a2 && (s2.mask = a2, this.effectContainer.addChild(a2)), s2.width = this.designWidth, s2.height = this.designHeight, s2 instanceof im && this.ctx.slideScopeEventHub.once("slide-render", (t3) => {
|
|
31703
|
+
var e3;
|
|
31704
|
+
this.ctx.slideIndex === t3 && ((e3 = this.effectObject) === null || e3 === void 0 || e3.setFrameCount(s2.totalFrames), s2.play(), s2.onFrameChange = (t4) => {
|
|
31705
|
+
if (this.effectObject)
|
|
31706
|
+
if (this.effectObject.hasFrame(t4))
|
|
31707
|
+
this.effectObject.updateFrame(t4);
|
|
31708
|
+
else {
|
|
31709
|
+
const e4 = this.getEffectTexture();
|
|
31710
|
+
e4 && (this.effectObject.createFrame(t4, e4.texture), this.effectObject.setFrameOffset(e4.offsetX, e4.offsetY));
|
|
31711
|
+
}
|
|
31712
|
+
});
|
|
31713
|
+
}), this.effectContainer.addChild(s2), this.media) {
|
|
31714
|
+
let t3 = this.media.src;
|
|
31715
|
+
if (this.media.type === "audio" && /mp4$/.test(t3) && (t3 = t3.replace(/mp4$/, "mp3")), this.ctx.urlInterrupter) {
|
|
31716
|
+
const e3 = Date.now();
|
|
31717
|
+
t3 = yield this.ctx.urlInterrupter(t3), this.ctx.logger.info("redirect media url by interrupter. time: " + (Date.now() - e3), this.ctx.taskId);
|
|
31718
|
+
}
|
|
31719
|
+
this.ctx.loaderDelegate && (t3 = this.ctx.loaderDelegate.redirectMedia(t3), this.ctx.logger.info(`redirect media url to ${t3} by delegate.`, this.ctx.taskId)), this.media.src = t3;
|
|
31679
31720
|
}
|
|
31680
|
-
|
|
31681
|
-
|
|
31682
|
-
|
|
31683
|
-
|
|
31684
|
-
|
|
31685
|
-
|
|
31686
|
-
|
|
31687
|
-
this.mediaPlayer.
|
|
31688
|
-
|
|
31689
|
-
|
|
31721
|
+
if (((i2 = this.media) === null || i2 === void 0 ? void 0 : i2.type) === "video" && this.media.src) {
|
|
31722
|
+
if (this.mediaPlayer = new c_({ id: this.json.id + "-video", shapeId: this.json.id, ctx: this.ctx, video: this.media, height: this.designHeight, width: this.designWidth, target: s2, container: this.effectContainer, canvasElement: this.ctx.view }), ((n2 = this.mediaPlayer) === null || n2 === void 0 ? void 0 : n2.sprite) && a2) {
|
|
31723
|
+
const t3 = (r2 = this.backgroundGraphics) === null || r2 === void 0 ? void 0 : r2.getClonedDisplayObject();
|
|
31724
|
+
t3 && (this.mediaPlayer.sprite.mask = t3, this.container.addChild(t3));
|
|
31725
|
+
}
|
|
31726
|
+
} else
|
|
31727
|
+
((o2 = this.media) === null || o2 === void 0 ? void 0 : o2.type) === "audio" && this.media.src && (this.mediaPlayer = new p_({ id: this.json.id + "-audio", shapeId: this.json.id, ctx: this.ctx, audio: this.media, height: this.designHeight, width: this.designWidth, target: s2, canvasElement: this.ctx.view }));
|
|
31728
|
+
this.mediaPlayer && (this.isInteractiveOutside = !!this.container.interactive, this.container.interactive = true, n_.isDesktop() ? (this.container.on("mouseover", () => {
|
|
31729
|
+
this.mediaPlayer.showController();
|
|
31730
|
+
}), this.container.on("mouseout", () => {
|
|
31731
|
+
this.mediaPlayer.hideController();
|
|
31732
|
+
}, false)) : this.container.on("pointerdown", () => {
|
|
31733
|
+
this.mediaPlayer.showController();
|
|
31734
|
+
}));
|
|
31735
|
+
}
|
|
31736
|
+
});
|
|
31690
31737
|
}
|
|
31691
31738
|
preRender(t2) {
|
|
31692
31739
|
super.preRender(t2);
|
|
31693
31740
|
}
|
|
31694
31741
|
subClassRender() {
|
|
31695
|
-
this
|
|
31742
|
+
return f_(this, void 0, void 0, function* () {
|
|
31743
|
+
yield this.renderPic();
|
|
31744
|
+
});
|
|
31696
31745
|
}
|
|
31697
31746
|
clearOnSlideChange() {
|
|
31698
31747
|
super.clearOnSlideChange(), this.mediaPlayer && (this.container.interactive = false, this.mediaPlayer.stop(), this.mediaPlayer.hideController());
|
|
@@ -31704,7 +31753,7 @@ void main(void){
|
|
|
31704
31753
|
this.mediaPlayer && (this.picFill.displayObject && !this.isInteractiveOutside && (this.container.interactive = false), this.mediaPlayer.destroy(), this.mediaPlayer = void 0), this.picFill.destroy();
|
|
31705
31754
|
}
|
|
31706
31755
|
}
|
|
31707
|
-
var
|
|
31756
|
+
var g_ = function(t2, e2, i2, n2) {
|
|
31708
31757
|
return new (i2 || (i2 = Promise))(function(r2, o2) {
|
|
31709
31758
|
function s2(t3) {
|
|
31710
31759
|
try {
|
|
@@ -31729,7 +31778,7 @@ void main(void){
|
|
|
31729
31778
|
l2((n2 = n2.apply(t2, e2 || [])).next());
|
|
31730
31779
|
});
|
|
31731
31780
|
};
|
|
31732
|
-
class
|
|
31781
|
+
class v_ extends hg {
|
|
31733
31782
|
constructor(t2, e2, i2, n2, r2) {
|
|
31734
31783
|
super(t2, e2, i2), this.children = [], this.cacheSprite = new ep(), this.cacheContainer = new Oh.b(), this.json = t2, this.json.fillStyle && this.json.fillStyle.fillType === "groupFill" && n2 && (this.json.fillStyle = n2), this.container.name = t2.id + "_container_[Container]", this.cacheContainer.name = t2.id + "_cache_container_[Container]", this.ctx.timingTargets.addTarget(t2.id, this), this.updateTransform(this.json), this.fillObject = new av(this.ctx, t2.fillStyle, t2.width, t2.height, { useFilter: false, useSlideBackgroundFill: false }), this.createChildren(r2);
|
|
31735
31784
|
}
|
|
@@ -31737,10 +31786,10 @@ void main(void){
|
|
|
31737
31786
|
var e2, i2, n2, r2;
|
|
31738
31787
|
const o2 = { x: (i2 = (e2 = this.json.position) === null || e2 === void 0 ? void 0 : e2.x) !== null && i2 !== void 0 ? i2 : 0, y: (r2 = (n2 = this.json.position) === null || n2 === void 0 ? void 0 : n2.y) !== null && r2 !== void 0 ? r2 : 0 };
|
|
31739
31788
|
for (let e3 = 0, i3 = this.json.children.length; e3 < i3; e3++)
|
|
31740
|
-
t2.addSubMTask(() =>
|
|
31789
|
+
t2.addSubMTask(() => g_(this, void 0, void 0, function* () {
|
|
31741
31790
|
const i4 = this.json.children[e3];
|
|
31742
31791
|
let n3 = null;
|
|
31743
|
-
(i4 == null ? void 0 : i4.type) === "Shape" ? n3 = new Kv(i4, this.ctx, o2, this.json.fillStyle) : (i4 == null ? void 0 : i4.type) === "Picture" ? n3 = new
|
|
31792
|
+
(i4 == null ? void 0 : i4.type) === "Shape" ? n3 = new Kv(i4, this.ctx, o2, this.json.fillStyle) : (i4 == null ? void 0 : i4.type) === "Picture" ? n3 = new m_(i4, this.ctx, o2, this.json.fillStyle) : (i4 == null ? void 0 : i4.type) === "Container" && (n3 = new v_(i4, this.ctx, o2, this.json.fillStyle, t2)), n3 && this.children.push(n3);
|
|
31744
31793
|
}), "@ContainerImpl[child.init]");
|
|
31745
31794
|
}
|
|
31746
31795
|
get interactiveContainer() {
|
|
@@ -31751,7 +31800,7 @@ void main(void){
|
|
|
31751
31800
|
}
|
|
31752
31801
|
preRender(t2) {
|
|
31753
31802
|
for (const e2 of this.children)
|
|
31754
|
-
t2.addSubMTask(() =>
|
|
31803
|
+
t2.addSubMTask(() => g_(this, void 0, void 0, function* () {
|
|
31755
31804
|
e2.preRender(t2);
|
|
31756
31805
|
}), "@ContainerImpl[child.preRender]");
|
|
31757
31806
|
}
|
|
@@ -31766,11 +31815,11 @@ void main(void){
|
|
|
31766
31815
|
}
|
|
31767
31816
|
render(t2) {
|
|
31768
31817
|
for (const e2 of this.children)
|
|
31769
|
-
e2.render(t2), t2.addSubMTask(() =>
|
|
31818
|
+
e2.render(t2), t2.addSubMTask(() => g_(this, void 0, void 0, function* () {
|
|
31770
31819
|
var t3;
|
|
31771
31820
|
this.cacheContainer.addChild(e2.renderContainer), (e2.json.hlinkHover || e2.json.hlinkClick) && ((t3 = e2.hyperlink) === null || t3 === void 0 || t3.addProxy(this.container));
|
|
31772
31821
|
}), "@ContainerImpl[child.render]");
|
|
31773
|
-
t2.addSubMTask(() =>
|
|
31822
|
+
t2.addSubMTask(() => g_(this, void 0, void 0, function* () {
|
|
31774
31823
|
this.container.addChild(this.cacheContainer);
|
|
31775
31824
|
}), "@ContainerImpl[child.append]");
|
|
31776
31825
|
}
|
|
@@ -31790,7 +31839,7 @@ void main(void){
|
|
|
31790
31839
|
this.cacheSprite && this.cacheSprite.destroy({ texture: true }), this.children.forEach((t2) => t2.destroy()), this.container.destroy({ children: true, texture: true, baseTexture: true }), this.cacheContainer.destroy({ children: true, texture: true, baseTexture: true });
|
|
31791
31840
|
}
|
|
31792
31841
|
}
|
|
31793
|
-
class
|
|
31842
|
+
class __ extends Za.a {
|
|
31794
31843
|
constructor(t2, e2, i2, n2) {
|
|
31795
31844
|
super(), this.cond = {}, this.timeoutIds = [], this.condHandle = (t3, e3 = {}) => {
|
|
31796
31845
|
if (t3)
|
|
@@ -31837,7 +31886,7 @@ void main(void){
|
|
|
31837
31886
|
}), this.timeoutIds.forEach((t2) => this.ctx.clock.clearTimeout(t2));
|
|
31838
31887
|
}
|
|
31839
31888
|
}
|
|
31840
|
-
class
|
|
31889
|
+
class y_ extends Za.a {
|
|
31841
31890
|
constructor(t2) {
|
|
31842
31891
|
super(), this.isTimeNodeEndSync = false, this.interactiveListeners = [], this.runtimeNodeEventHub = new Za.a(), this._currentSeqIndex = 0, this._currentSeqState = "idle", this.isForward = true, this.autoPlay = false, this.handlePrev = (t3 = false) => {
|
|
31843
31892
|
var e3, i3, n3, r3, o3, s3;
|
|
@@ -31856,16 +31905,16 @@ void main(void){
|
|
|
31856
31905
|
}
|
|
31857
31906
|
};
|
|
31858
31907
|
const { json: e2, iterateType: i2, isIterate: n2, isSub: r2, parent: o2, ctx: s2, eventHub: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2 } = t2;
|
|
31859
|
-
this.isMainSeq = e2.ctn.nodeType === "mainSeq", this.isInteractiveSeq = e2.ctn.nodeType === "interactiveSeq", this.id = e2.ctn.id, this.isIterate = n2, this.json = e2, this.ctx = s2, this.globalEventHub = a2, this.commonTimeNode = new
|
|
31908
|
+
this.isMainSeq = e2.ctn.nodeType === "mainSeq", this.isInteractiveSeq = e2.ctn.nodeType === "interactiveSeq", this.id = e2.ctn.id, this.isIterate = n2, this.json = e2, this.ctx = s2, this.globalEventHub = a2, this.commonTimeNode = new xy({ json: e2.ctn, isSub: r2, eventHubs: { global: a2, runtime: this.runtimeNodeEventHub }, ctx: s2, parent: o2, isIterate: false, iterateType: i2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2 || this.isInteractiveSeq, fromSeqId: this.isInteractiveSeq ? this.json.ctn.id : "" }), this.bindShapeEvent(), this.nextConds = new __("mainSeq", e2.nextCondLst, { global: a2, runtime: this.runtimeNodeEventHub }, this.ctx), this.prevConds = new __("mainSeq", e2.preCondLst, { global: a2, runtime: this.runtimeNodeEventHub }, this.ctx), this.commonTimeNode.on("timeNodeRestart", () => {
|
|
31860
31909
|
this.currentSeqIndex = 0, this.currentSeqState = "idle";
|
|
31861
31910
|
}), this.commonTimeNode.on("childTimeNodeStart", (t3) => {
|
|
31862
31911
|
const e3 = this.commonTimeNode.children.findIndex((e4) => e4.commonTimeNode.uuid === t3.id);
|
|
31863
|
-
e3 >= 0 && (this.currentSeqIndex = e3), this.currentSeqState = "running", this.isMainSeq && this.ctx.eventHub.emit(
|
|
31912
|
+
e3 >= 0 && (this.currentSeqIndex = e3), this.currentSeqState = "running", this.isMainSeq && this.ctx.eventHub.emit(Hy.mainSeqStepStart, e3);
|
|
31864
31913
|
}), this.commonTimeNode.on("childTimeNodeEnd", (t3) => {
|
|
31865
31914
|
const e3 = this.commonTimeNode.children.findIndex((e4) => e4.commonTimeNode.uuid === t3.id);
|
|
31866
31915
|
e3 >= 0 && (this.currentSeqIndex = e3), this.currentSeqState = "end", this.autoPlay && this.ctx.clock.setTimeout(() => {
|
|
31867
31916
|
this.handleNext(false, true);
|
|
31868
|
-
}), this.isMainSeq && this.ctx.eventHub.emit(
|
|
31917
|
+
}), this.isMainSeq && this.ctx.eventHub.emit(Hy.mainSeqStepEnd, e3);
|
|
31869
31918
|
}), this.commonTimeNode.on("timeNodeEndSync", () => {
|
|
31870
31919
|
this.isTimeNodeEndSync = true, this.commonTimeNode.resetForRepeat();
|
|
31871
31920
|
}), this.commonTimeNode.on("timeNodeDestroy", () => {
|
|
@@ -31882,13 +31931,13 @@ void main(void){
|
|
|
31882
31931
|
return this._currentSeqIndex;
|
|
31883
31932
|
}
|
|
31884
31933
|
set currentSeqIndex(t2) {
|
|
31885
|
-
this._currentSeqIndex = t2, this.isMainSeq ? this.ctx.eventHub.emit(
|
|
31934
|
+
this._currentSeqIndex = t2, this.isMainSeq ? this.ctx.eventHub.emit(Hy.mainSeqStepChange, t2) : this.isInteractiveSeq && this.ctx.eventHub.emit(Hy.interactiveSeqStateChange, { id: this.json.ctn.id, state: { step: t2, state: this._currentSeqState } });
|
|
31886
31935
|
}
|
|
31887
31936
|
get currentSeqState() {
|
|
31888
31937
|
return this._currentSeqState;
|
|
31889
31938
|
}
|
|
31890
31939
|
set currentSeqState(t2) {
|
|
31891
|
-
this._currentSeqState = t2, this.isMainSeq ? this.ctx.eventHub.emit(
|
|
31940
|
+
this._currentSeqState = t2, this.isMainSeq ? this.ctx.eventHub.emit(Hy.mainSeqStateChange, t2) : this.isInteractiveSeq && this.ctx.eventHub.emit(Hy.interactiveSeqStateChange, { id: this.json.ctn.id, state: { step: this._currentSeqIndex, state: t2 } });
|
|
31892
31941
|
}
|
|
31893
31942
|
get stepLength() {
|
|
31894
31943
|
return this.commonTimeNode.children.length;
|
|
@@ -31926,9 +31975,9 @@ void main(void){
|
|
|
31926
31975
|
if (t3) {
|
|
31927
31976
|
t3.interactiveContainer.interactive = true, t3.interactiveContainer.cursor = "pointer";
|
|
31928
31977
|
const i2 = () => {
|
|
31929
|
-
this.ctx.eventHub.emit(
|
|
31978
|
+
this.ctx.eventHub.emit(Hy.userInput);
|
|
31930
31979
|
const t4 = `shape ${e2} onClick`, { mode: i3 } = this.ctx;
|
|
31931
|
-
i3 !== "interactive" && i3 !== "sync" || this.ctx.eventHub.emit(
|
|
31980
|
+
i3 !== "interactive" && i3 !== "sync" || this.ctx.eventHub.emit(Hy.interactiveSeqAction, { action: t4, seqId: this.json.ctn.id }), i3 !== "sync" && i3 !== "local" || this.globalEventHub.emit(t4);
|
|
31932
31981
|
};
|
|
31933
31982
|
t3.interactiveContainer.on("pointerdown", i2), this.interactiveListeners.push([t3, i2]);
|
|
31934
31983
|
}
|
|
@@ -31952,7 +32001,7 @@ void main(void){
|
|
|
31952
32001
|
}
|
|
31953
32002
|
}
|
|
31954
32003
|
}
|
|
31955
|
-
function
|
|
32004
|
+
function x_(t2, e2, i2) {
|
|
31956
32005
|
const n2 = e2.split(".");
|
|
31957
32006
|
n2.reduce((r2, o2, s2) => {
|
|
31958
32007
|
if (r2)
|
|
@@ -31960,7 +32009,7 @@ void main(void){
|
|
|
31960
32009
|
console.warn(`${t2} not support ${e2}`);
|
|
31961
32010
|
}, t2);
|
|
31962
32011
|
}
|
|
31963
|
-
function
|
|
32012
|
+
function b_(t2, e2) {
|
|
31964
32013
|
if (!e2)
|
|
31965
32014
|
return null;
|
|
31966
32015
|
return e2.split(".").reduce((i2, n2) => {
|
|
@@ -31969,7 +32018,7 @@ void main(void){
|
|
|
31969
32018
|
console.warn(`${t2} not support ${e2}`);
|
|
31970
32019
|
}, t2);
|
|
31971
32020
|
}
|
|
31972
|
-
class
|
|
32021
|
+
class T_ {
|
|
31973
32022
|
constructor(t2) {
|
|
31974
32023
|
this.timingTarget = null, this.runtimeNodeEventHub = new Za.a(), this.basicOnTimeNodeEnd = () => {
|
|
31975
32024
|
if (this.isConflict) {
|
|
@@ -31987,29 +32036,29 @@ void main(void){
|
|
|
31987
32036
|
}
|
|
31988
32037
|
};
|
|
31989
32038
|
const { isIterate: e2, isSub: i2, json: n2, ctx: r2, parent: o2, eventHub: s2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 } = t2;
|
|
31990
|
-
this.json = n2, this.id = n2.cBhvr.ctn.id, this.ctx = r2, this.globalEventHub = s2, this.commonTimeNode = new
|
|
32039
|
+
this.json = n2, this.id = n2.cBhvr.ctn.id, this.ctx = r2, this.globalEventHub = s2, this.commonTimeNode = new xy({ json: n2.cBhvr.ctn, isSub: i2, eventHubs: { global: s2, runtime: this.runtimeNodeEventHub }, ctx: r2, parent: o2, isIterate: e2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 }), this.timingTarget = this.ctx.timingTargets.getTarget(n2.cBhvr.target, e2, { type: a2, index: l2, id: h2 }), this.commonTimeNode.on("seekToStart", () => this.onSeekToStart()), this.commonTimeNode.on("seekToEnd", () => this.onSeekToEnd()), this.commonTimeNode.on("timelineStart", this.basicOnTimeLineStart), this.commonTimeNode.on("timeNodeEnd", this.basicOnTimeNodeEnd);
|
|
31991
32040
|
}
|
|
31992
32041
|
getTargetId(t2) {
|
|
31993
32042
|
let e2 = t2.id;
|
|
31994
32043
|
return t2.type === "shape" && t2.txEl && (e2 = `${e2}-txEl-${t2.txEl.range[0]}`), this.commonTimeNode.isIterate && (e2 = `${e2}-iterate-${this.commonTimeNode.iterateIndex}`), e2;
|
|
31995
32044
|
}
|
|
31996
32045
|
}
|
|
31997
|
-
class
|
|
32046
|
+
class E_ extends T_ {
|
|
31998
32047
|
constructor(t2) {
|
|
31999
32048
|
super(t2), this.isConflict = false, this.activeWhenConflict = "next", this.startVal = null, this.updateStartValue = () => {
|
|
32000
|
-
this.timingTarget && (this.startVal =
|
|
32049
|
+
this.timingTarget && (this.startVal = b_(this.timingTarget, this.json.cBhvr.attrList[0]));
|
|
32001
32050
|
}, this.onSeekToStart = () => {
|
|
32002
32051
|
const t3 = this.json.cBhvr.attrList[0];
|
|
32003
|
-
this.startVal !== null && this.timingTarget &&
|
|
32052
|
+
this.startVal !== null && this.timingTarget && x_(this.timingTarget, t3, this.startVal);
|
|
32004
32053
|
}, this.onSeekToEnd = () => {
|
|
32005
32054
|
const t3 = this.json.cBhvr.attrList[0], e2 = this.json.cBhvr.to || this.json.to;
|
|
32006
|
-
e2 && this.timingTarget &&
|
|
32055
|
+
e2 && this.timingTarget && x_(this.timingTarget, t3, e2);
|
|
32007
32056
|
}, this.commonTimeNode.on("timeNodeStart", this.updateStartValue), this.commonTimeNode.on("timeNodeCreate", this.updateStartValue), this.commonTimeNode.on("timeUpdate", ({ duration: t3, delta: e2 }) => {
|
|
32008
32057
|
if (e2 / t3 >= 1) {
|
|
32009
32058
|
const t4 = this.json.cBhvr.attrList[0];
|
|
32010
32059
|
this.json.cBhvr.attrList.length > 1 && console.warn("this.json.cBhvr.attrList.length > 0");
|
|
32011
32060
|
const e3 = this.json.cBhvr.to || this.json.to;
|
|
32012
|
-
e3 && this.timingTarget &&
|
|
32061
|
+
e3 && this.timingTarget && x_(this.timingTarget, t4, e3);
|
|
32013
32062
|
}
|
|
32014
32063
|
});
|
|
32015
32064
|
}
|
|
@@ -32017,7 +32066,7 @@ void main(void){
|
|
|
32017
32066
|
return this.json.cBhvr.attrList[0];
|
|
32018
32067
|
}
|
|
32019
32068
|
}
|
|
32020
|
-
var
|
|
32069
|
+
var S_ = function(t2, e2, i2, n2) {
|
|
32021
32070
|
var r2, o2 = arguments.length, s2 = o2 < 3 ? e2 : n2 === null ? n2 = Object.getOwnPropertyDescriptor(e2, i2) : n2;
|
|
32022
32071
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
32023
32072
|
s2 = Reflect.decorate(t2, e2, i2, n2);
|
|
@@ -32026,7 +32075,7 @@ void main(void){
|
|
|
32026
32075
|
(r2 = t2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(e2, i2, s2) : r2(e2, i2)) || s2);
|
|
32027
32076
|
return o2 > 3 && s2 && Object.defineProperty(e2, i2, s2), s2;
|
|
32028
32077
|
};
|
|
32029
|
-
class
|
|
32078
|
+
class w_ {
|
|
32030
32079
|
constructor(t2, e2) {
|
|
32031
32080
|
this.math = { pi: Math.PI, e: Math.E, abs: Math.abs, acos: Math.acos, asin: Math.asin, atan: Math.atan, ceil: Math.ceil, cos: Math.cos, cosh: Math.cosh, deg: (t3) => t3 / Math.PI * 180, exp: Math.exp, floor: Math.floor, ln: Math.log, max: Math.max, min: Math.min, rad: (t3) => t3 / 180 * Math.PI, rand: Math.random, sin: Math.sin, sinh: Math.sinh, sqrt: Math.sqrt, tan: Math.tan, tanh: Math.tanh }, this.timingTarget = e2, this.val = t2.val.value, this.time = t2.time, t2.fmla && (this.fmla = this.parseFmla(t2.fmla));
|
|
32032
32081
|
}
|
|
@@ -32038,7 +32087,7 @@ void main(void){
|
|
|
32038
32087
|
}), new Function("vars", "math", "$", "return " + e2);
|
|
32039
32088
|
}
|
|
32040
32089
|
}
|
|
32041
|
-
class
|
|
32090
|
+
class A_ extends w_ {
|
|
32042
32091
|
constructor(t2, e2, i2) {
|
|
32043
32092
|
super(t2, e2), this.value = t2.val.value, i2 && (this.fmla = this.parseFmla(i2));
|
|
32044
32093
|
}
|
|
@@ -32050,8 +32099,8 @@ void main(void){
|
|
|
32050
32099
|
return t2.fmla ? t2.fmla(i2, this.math, r2) : r2;
|
|
32051
32100
|
}
|
|
32052
32101
|
}
|
|
32053
|
-
|
|
32054
|
-
class
|
|
32102
|
+
S_([Em()], A_.prototype, "interpolationFrom", null);
|
|
32103
|
+
class M_ extends w_ {
|
|
32055
32104
|
constructor(t2, e2) {
|
|
32056
32105
|
var i2;
|
|
32057
32106
|
super(t2, e2), this.value = (i2 = t2.val) === null || i2 === void 0 ? void 0 : i2.value;
|
|
@@ -32064,8 +32113,8 @@ void main(void){
|
|
|
32064
32113
|
return this.value || "";
|
|
32065
32114
|
}
|
|
32066
32115
|
}
|
|
32067
|
-
|
|
32068
|
-
class
|
|
32116
|
+
S_([Em()], M_.prototype, "interpolationFrom", null);
|
|
32117
|
+
class R_ extends w_ {
|
|
32069
32118
|
constructor(t2, e2) {
|
|
32070
32119
|
super(t2, e2), this.fn = this.parseFmla(this.val);
|
|
32071
32120
|
}
|
|
@@ -32077,8 +32126,8 @@ void main(void){
|
|
|
32077
32126
|
return t2.fmla ? t2.fmla(i2, this.math, r2) : r2;
|
|
32078
32127
|
}
|
|
32079
32128
|
}
|
|
32080
|
-
|
|
32081
|
-
class
|
|
32129
|
+
S_([Em()], R_.prototype, "interpolationFrom", null);
|
|
32130
|
+
class C_ extends w_ {
|
|
32082
32131
|
constructor(t2, e2) {
|
|
32083
32132
|
super(t2, e2), this.value = t2.val.value;
|
|
32084
32133
|
}
|
|
@@ -32089,11 +32138,11 @@ void main(void){
|
|
|
32089
32138
|
return this.value;
|
|
32090
32139
|
}
|
|
32091
32140
|
}
|
|
32092
|
-
|
|
32093
|
-
class
|
|
32141
|
+
S_([Em()], C_.prototype, "interpolationFrom", null);
|
|
32142
|
+
class I_ extends T_ {
|
|
32094
32143
|
constructor(t2) {
|
|
32095
32144
|
super(t2), this.isConflict = true, this.activeWhenConflict = "next", this.startVal = null, this.vars = { ppt_x: 0, ppt_y: 0, ppt_w: 0, ppt_h: 0 }, this.keyFrames = [], this.isColorAnim = false, this.onTimeNodeStart = () => {
|
|
32096
|
-
this.timingTarget && (this.startVal =
|
|
32145
|
+
this.timingTarget && (this.startVal = b_(this.timingTarget, this.json.cBhvr.attrList[0]));
|
|
32097
32146
|
}, this.updateVars = () => {
|
|
32098
32147
|
var t3, e2, i2, n2;
|
|
32099
32148
|
((t3 = this.timingTarget) === null || t3 === void 0 ? void 0 : t3.ppt_h) && (this.vars.ppt_h = this.timingTarget.ppt_h), ((e2 = this.timingTarget) === null || e2 === void 0 ? void 0 : e2.ppt_w) && (this.vars.ppt_w = this.timingTarget.ppt_w), ((i2 = this.timingTarget) === null || i2 === void 0 ? void 0 : i2.ppt_x) && (this.vars.ppt_x = this.timingTarget.ppt_x), ((n2 = this.timingTarget) === null || n2 === void 0 ? void 0 : n2.ppt_y) && (this.vars.ppt_y = this.timingTarget.ppt_y), this.isColorAnim;
|
|
@@ -32101,12 +32150,12 @@ void main(void){
|
|
|
32101
32150
|
const i2 = e2 / t3, n2 = this.keyFrames.findIndex((t4) => i2 <= t4[0]), { attrList: r2 } = this.json.cBhvr;
|
|
32102
32151
|
if (n2 < 0) {
|
|
32103
32152
|
const t4 = this.keyFrames[this.keyFrames.length - 1];
|
|
32104
|
-
return void (this.timingTarget && r2 && r2[0] &&
|
|
32153
|
+
return void (this.timingTarget && r2 && r2[0] && x_(this.timingTarget, r2[0], t4[1].resolveValue(this.vars)));
|
|
32105
32154
|
}
|
|
32106
32155
|
const o2 = n2 - 1, s2 = this.keyFrames[n2], a2 = this.keyFrames[o2] || s2, l2 = s2[0] - a2[0] == 0 ? 1 : (i2 - a2[0]) / (s2[0] - a2[0]), h2 = s2[1].interpolationFrom(a2[1], l2, this.vars);
|
|
32107
|
-
this.timingTarget && r2 && r2[0] &&
|
|
32156
|
+
this.timingTarget && r2 && r2[0] && x_(this.timingTarget, r2[0], h2);
|
|
32108
32157
|
}, this.onSeekToStart = () => {
|
|
32109
|
-
this.startVal !== null && this.timingTarget &&
|
|
32158
|
+
this.startVal !== null && this.timingTarget && x_(this.timingTarget, this.json.cBhvr.attrList[0], this.startVal);
|
|
32110
32159
|
}, this.onSeekToEnd = () => {
|
|
32111
32160
|
this.onTimeUpdate({ duration: 1, delta: 1, isReverse: false });
|
|
32112
32161
|
}, this.initKeyFrames(), this.commonTimeNode.on("timeUpdate", this.onTimeUpdate), this.commonTimeNode.on("timelineStart", this.updateVars), this.commonTimeNode.on("timeNodeStart", this.onTimeNodeStart), this.commonTimeNode.on("timeNodeCreate", this.onTimeNodeStart);
|
|
@@ -32122,24 +32171,24 @@ void main(void){
|
|
|
32122
32171
|
if (this.json.from || this.startVal) {
|
|
32123
32172
|
const t4 = { time: 0, val: { type: "string", value: this.json.from || this.startVal.toString() }, fmla: "" };
|
|
32124
32173
|
if (e2 === "num" && this.timingTarget) {
|
|
32125
|
-
const e3 = new
|
|
32174
|
+
const e3 = new R_(t4, this.timingTarget);
|
|
32126
32175
|
this.keyFrames.push([t4.time, e3]);
|
|
32127
32176
|
}
|
|
32128
32177
|
}
|
|
32129
32178
|
const t3 = { time: 1, val: { type: "string", value: this.json.to }, fmla: "" };
|
|
32130
32179
|
if (e2 === "num" && this.timingTarget) {
|
|
32131
|
-
const e3 = new
|
|
32180
|
+
const e3 = new R_(t3, this.timingTarget);
|
|
32132
32181
|
this.keyFrames.push([t3.time, e3]);
|
|
32133
32182
|
}
|
|
32134
32183
|
} else if (this.json.by) {
|
|
32135
32184
|
const i2 = { time: 0, val: { type: "string", value: this.json.cBhvr.attrList[0] }, fmla: "" };
|
|
32136
32185
|
if (e2 === "num" && this.timingTarget) {
|
|
32137
|
-
const t3 = new
|
|
32186
|
+
const t3 = new R_(i2, this.timingTarget);
|
|
32138
32187
|
this.keyFrames.push([i2.time, t3]);
|
|
32139
32188
|
}
|
|
32140
32189
|
const n2 = { time: 1, val: { type: "string", value: (((t2 = i2.val) === null || t2 === void 0 ? void 0 : t2.value) || "") + "+" + this.json.by }, fmla: "" };
|
|
32141
32190
|
if (e2 === "num" && this.timingTarget) {
|
|
32142
|
-
const t3 = new
|
|
32191
|
+
const t3 = new R_(n2, this.timingTarget);
|
|
32143
32192
|
this.keyFrames.push([n2.time, t3]);
|
|
32144
32193
|
}
|
|
32145
32194
|
}
|
|
@@ -32148,12 +32197,12 @@ void main(void){
|
|
|
32148
32197
|
for (const t3 of this.json.tavLst)
|
|
32149
32198
|
if (t3.val && this.timingTarget) {
|
|
32150
32199
|
let i2 = null;
|
|
32151
|
-
t3.val.type === "string" ? e2 === "num" ? i2 = new
|
|
32200
|
+
t3.val.type === "string" ? e2 === "num" ? i2 = new R_(t3, this.timingTarget) : e2 === "str" && (i2 = new M_(t3, this.timingTarget)) : t3.val.type === "number" ? i2 = new A_(t3, this.timingTarget) : t3.val.type === "color" ? (this.isColorAnim = true, i2 = new C_(t3, this.timingTarget)) : t3.val.type === "boolean" && console.warn("not implements"), i2 && this.keyFrames.push([t3.time, i2]);
|
|
32152
32201
|
}
|
|
32153
32202
|
}
|
|
32154
32203
|
}
|
|
32155
32204
|
}
|
|
32156
|
-
class
|
|
32205
|
+
class P_ extends Vh.k {
|
|
32157
32206
|
constructor(t2, e2, i2) {
|
|
32158
32207
|
super(t2, e2, i2);
|
|
32159
32208
|
}
|
|
@@ -32164,89 +32213,89 @@ void main(void){
|
|
|
32164
32213
|
this.uniforms.transition = t2;
|
|
32165
32214
|
}
|
|
32166
32215
|
}
|
|
32167
|
-
var
|
|
32168
|
-
var
|
|
32169
|
-
var
|
|
32170
|
-
var
|
|
32171
|
-
var
|
|
32172
|
-
const X_ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAr5QTFRFAAAATwAAOQAAZgAAKwAAPAAAPQAA7AAA/wAA/QAAugAA5QAAsQAAwQAAsAAAfwAAawAASQAAZAAAOAAAJwAALAAALQAAqQAAiwAAmgAA5AAA7QAAtQAAhQAALwAAfAAAXwAAYQAAigAAuQAAfgAAswAAcgAArQAAqgAAZwAAaQAAMgAAGAAAiAAAjwAA1gAA6QAA+wAA7wAA2AAAbQAA2gAA3QAAuwAA3wAA2QAAxQAA0QAAzwAA0gAAXQAAYAAADAAADwAAGQAALgAAjgAAcAAAzQAAwgAA+gAA3AAAGwAAoAAAowAAcQAAVwAA1QAAIQAAWQAA5wAAsgAAuAAASwAAbwAARwAAMAAAnAAAUQAAaAAA9wAA4gAAPwAAbAAAOwAAlwAA0wAAjQAAvAAAwwAAkwAAQQAAvgAAnwAAvQAA0AAA2wAAwAAAWwAATQAACwAABwAAQgAAtgAAgwAAvwAAgQAAlgAAEAAAxgAAtwAAmAAARgAAjAAAdwAAqwAArwAAywAAYgAACAAAmwAAHwAApQAA8QAAdAAAbgAAFgAAgAAAogAAewAAXgAA6AAA9gAA/AAAzgAA3gAAkgAAngAAdQAARAAAmQAATgAAUgAAJQAAIgAAqAAARQAAPgAAxwAACQAAAgAAMQA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Bf8g0fsVN0w8jbplh7Df1FVC9wZuTbZStSswGJu6IngHRvBgOFag8F3hwPVNuUYjxNngNURuMvnnOvway+3l+1sK7aILbzdSzAxUCtG9/CaaHsBFIVzMWEH7upNL6Hr6P+oI4i+VqT6NyQrYUMkRXYd2P1ZjEMDaJ1rrurxTBgTfMw9cZe8SHIAz0JA7jpgDmr+InVbg0HrkFNZVhQ2uBKn75tLEZwfMp2azBhkglsAXDPx2BccwTDGmnsjRDh2jHh9ynTQY4vLqcuv/NWRlP8sFHWyxSmm38ikF1UoTywoZL0oFE4I4ujqIcvCuo+0ABPohIMdyq8EqgTcogXcYNCGdgvytDCA/fwt2eG78+OAANOgmKkOI8WdjE3FaFdqW6rx/oOBunJoqMLOwnPtv67Cw7PY8c4jFvek2G/hk1Thivu5Pf2iV8YDA8DyziBPz6MKlF9XQlRt7ZRV09nZrygwo00ME7IpFuOiEsUrd14UcCvNC/DPkbFmqB1uQIg477mFiq2niVADUYnvdjiQPNpFfMTo4yg4X+tDW3rmH2WE9E2rY0ES40wM6QRwaQL5/fepJULkj3Zc6L1ItuWmO6zXbvou399GBCPcQwB2+rRpubsw03qWL2iRyHH9Afl/YHuFYa8v7zEXDEigXJo9RAtTM4BTzElQhSgePv55AmHTo4W9v4SmkPDlLIhOpcXBK4GO2AnyzeN0MaKP7umX9bZAfc5LA84bxj3frYCxezbP9KG7QeJzevIhiAU4p/j+y2OyMV2mxNgAAAABJRU5ErkJggg==";
|
|
32173
|
-
var
|
|
32174
|
-
var
|
|
32175
|
-
var
|
|
32176
|
-
var
|
|
32177
|
-
var
|
|
32178
|
-
var
|
|
32179
|
-
var
|
|
32180
|
-
var
|
|
32181
|
-
var
|
|
32182
|
-
const
|
|
32216
|
+
var O_ = i(121), N_ = i.n(O_), L_ = i(122), D_ = i.n(L_);
|
|
32217
|
+
var F_ = i(123), B_ = i.n(F_);
|
|
32218
|
+
var U_ = i(124), k_ = i.n(U_), G_ = i(9), H_ = i.n(G_);
|
|
32219
|
+
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BccwTDGmnsjRDh2jHh9ynTQY4vLqcuv/NWRlP8sFHWyxSmm38ikF1UoTywoZL0oFE4I4ujqIcvCuo+0ABPohIMdyq8EqgTcogXcYNCGdgvytDCA/fwt2eG78+OAANOgmKkOI8WdjE3FaFdqW6rx/oOBunJoqMLOwnPtv67Cw7PY8c4jFvek2G/hk1Thivu5Pf2iV8YDA8DyziBPz6MKlF9XQlRt7ZRV09nZrygwo00ME7IpFuOiEsUrd14UcCvNC/DPkbFmqB1uQIg477mFiq2niVADUYnvdjiQPNpFfMTo4yg4X+tDW3rmH2WE9E2rY0ES40wM6QRwaQL5/fepJULkj3Zc6L1ItuWmO6zXbvou399GBCPcQwB2+rRpubsw03qWL2iRyHH9Afl/YHuFYa8v7zEXDEigXJo9RAtTM4BTzElQhSgePv55AmHTo4W9v4SmkPDlLIhOpcXBK4GO2AnyzeN0MaKP7umX9bZAfc5LA84bxj3frYCxezbP9KG7QeJzevIhiAU4p/j+y2OyMV2mxNgAAAABJRU5ErkJggg==";
|
|
32222
|
+
var Y_ = i(127), q_ = i.n(Y_);
|
|
32223
|
+
var Z_ = i(128), J_ = i.n(Z_);
|
|
32224
|
+
var K_ = i(129), Q_ = i.n(K_);
|
|
32225
|
+
var $_ = i(130), ty = i.n($_);
|
|
32226
|
+
var ey = i(131), iy = i.n(ey);
|
|
32227
|
+
var ny = i(132), ry = i.n(ny);
|
|
32228
|
+
var oy = i(133), sy = i.n(oy);
|
|
32229
|
+
var ay = i(134), ly = i.n(ay);
|
|
32230
|
+
var hy = i(135), uy = i.n(hy);
|
|
32231
|
+
const cy = { wipe: class extends P_ {
|
|
32183
32232
|
constructor(t2) {
|
|
32184
|
-
super(
|
|
32233
|
+
super(D_.a, N_.a, { percent: 0, direction: 1, transition: 0 });
|
|
32185
32234
|
let e2 = 1;
|
|
32186
32235
|
t2 === "up" ? e2 = 1 : t2 === "down" ? e2 = 2 : t2 === "left" ? e2 = 3 : t2 === "right" && (e2 = 4), this.uniforms.direction = e2;
|
|
32187
32236
|
}
|
|
32188
|
-
}, fade: class extends
|
|
32237
|
+
}, fade: class extends P_ {
|
|
32189
32238
|
constructor(t2) {
|
|
32190
|
-
super(void 0,
|
|
32239
|
+
super(void 0, B_.a, { percent: 0, transition: 1 });
|
|
32191
32240
|
let e2 = 1;
|
|
32192
32241
|
t2 === "out" ? e2 = -1 : t2 === "in" && (e2 = 1), this.uniforms.transition = Math.pow(e2, e2);
|
|
32193
32242
|
}
|
|
32194
|
-
}, blinds: class extends
|
|
32243
|
+
}, blinds: class extends P_ {
|
|
32195
32244
|
constructor(t2) {
|
|
32196
|
-
super(
|
|
32245
|
+
super(H_.a, k_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "vertical" ? 1 : 0;
|
|
32197
32246
|
}
|
|
32198
|
-
}, checkerboard: class extends
|
|
32247
|
+
}, checkerboard: class extends P_ {
|
|
32199
32248
|
constructor(t2) {
|
|
32200
|
-
super(
|
|
32249
|
+
super(H_.a, z_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "down" ? 1 : 0;
|
|
32201
32250
|
}
|
|
32202
|
-
}, dissolve: class extends
|
|
32251
|
+
}, dissolve: class extends P_ {
|
|
32203
32252
|
constructor(t2) {
|
|
32204
|
-
super(
|
|
32253
|
+
super(H_.a, X_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.setTextTure();
|
|
32205
32254
|
}
|
|
32206
32255
|
setTextTure() {
|
|
32207
|
-
this.uniforms.dissolveSampler = Vh.t.from(
|
|
32256
|
+
this.uniforms.dissolveSampler = Vh.t.from(W_);
|
|
32208
32257
|
}
|
|
32209
|
-
}, randombar: class extends
|
|
32258
|
+
}, randombar: class extends P_ {
|
|
32210
32259
|
constructor(t2) {
|
|
32211
|
-
super(
|
|
32260
|
+
super(H_.a, q_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "vertical" ? 1 : 0, this.setTextTure();
|
|
32212
32261
|
}
|
|
32213
32262
|
setTextTure() {
|
|
32214
|
-
this.uniforms.dissolveSampler = Vh.t.from(
|
|
32263
|
+
this.uniforms.dissolveSampler = Vh.t.from(W_);
|
|
32215
32264
|
}
|
|
32216
|
-
}, circle: class extends
|
|
32265
|
+
}, circle: class extends P_ {
|
|
32217
32266
|
constructor(t2) {
|
|
32218
|
-
super(
|
|
32267
|
+
super(H_.a, J_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
|
|
32219
32268
|
}
|
|
32220
|
-
}, box: class extends
|
|
32269
|
+
}, box: class extends P_ {
|
|
32221
32270
|
constructor(t2) {
|
|
32222
|
-
super(
|
|
32271
|
+
super(H_.a, Q_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
|
|
32223
32272
|
}
|
|
32224
|
-
}, diamond: class extends
|
|
32273
|
+
}, diamond: class extends P_ {
|
|
32225
32274
|
constructor(t2) {
|
|
32226
|
-
super(
|
|
32275
|
+
super(H_.a, ty.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
|
|
32227
32276
|
}
|
|
32228
|
-
}, plus: class extends
|
|
32277
|
+
}, plus: class extends P_ {
|
|
32229
32278
|
constructor(t2) {
|
|
32230
|
-
super(
|
|
32279
|
+
super(H_.a, iy.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
|
|
32231
32280
|
}
|
|
32232
|
-
}, barn: class extends
|
|
32281
|
+
}, barn: class extends P_ {
|
|
32233
32282
|
constructor(t2) {
|
|
32234
|
-
super(
|
|
32283
|
+
super(H_.a, ry.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "inHorizontal" ? 1 : t2 === "outHorizontal" ? 2 : t2 === "outVertical" ? 3 : 0;
|
|
32235
32284
|
}
|
|
32236
|
-
}, strips: class extends
|
|
32285
|
+
}, strips: class extends P_ {
|
|
32237
32286
|
constructor(t2) {
|
|
32238
|
-
super(
|
|
32287
|
+
super(H_.a, sy.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "upLeft" ? 1 : t2 === "downRight" ? 2 : t2 === "upRight" ? 3 : 0;
|
|
32239
32288
|
}
|
|
32240
|
-
}, wedge: class extends
|
|
32289
|
+
}, wedge: class extends P_ {
|
|
32241
32290
|
constructor(t2) {
|
|
32242
|
-
super(
|
|
32291
|
+
super(H_.a, ly.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) });
|
|
32243
32292
|
}
|
|
32244
|
-
}, wheel: class extends
|
|
32293
|
+
}, wheel: class extends P_ {
|
|
32245
32294
|
constructor(t2) {
|
|
32246
|
-
super(
|
|
32295
|
+
super(H_.a, uy.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = Number(t2) || 1;
|
|
32247
32296
|
}
|
|
32248
32297
|
} };
|
|
32249
|
-
class
|
|
32298
|
+
class dy extends T_ {
|
|
32250
32299
|
constructor(t2) {
|
|
32251
32300
|
var e2;
|
|
32252
32301
|
super(t2), this.filterType = "", this.isConflict = false, this.activeWhenConflict = "prev", this.onTimeUpdate = ({ duration: t3, delta: e3 }) => {
|
|
@@ -32277,14 +32326,14 @@ void main(void){
|
|
|
32277
32326
|
const n2 = (e2 = t2.json.filter) === null || e2 === void 0 ? void 0 : e2.match(/^([a-zA-Z]+)(\((.+)\))?/);
|
|
32278
32327
|
if (n2) {
|
|
32279
32328
|
const t3 = n2[1], e3 = n2[3];
|
|
32280
|
-
|
|
32329
|
+
cy[t3] && (this.filter = new cy[t3](e3), this.filterType = `${t3}-${e3}`, this.filter && (this.filter.transition = i2));
|
|
32281
32330
|
}
|
|
32282
32331
|
}
|
|
32283
32332
|
get modifyAttrKey() {
|
|
32284
32333
|
return this.filterType;
|
|
32285
32334
|
}
|
|
32286
32335
|
}
|
|
32287
|
-
class
|
|
32336
|
+
class py extends T_ {
|
|
32288
32337
|
constructor(t2) {
|
|
32289
32338
|
super(t2), this.isConflict = true, this.activeWhenConflict = "next", this.startPos = null, this.onTimeNodeStart = () => {
|
|
32290
32339
|
var t3, e2;
|
|
@@ -32337,7 +32386,7 @@ void main(void){
|
|
|
32337
32386
|
this.path = e2;
|
|
32338
32387
|
}
|
|
32339
32388
|
}
|
|
32340
|
-
class
|
|
32389
|
+
class fy extends T_ {
|
|
32341
32390
|
constructor(t2) {
|
|
32342
32391
|
super(t2), this.isConflict = true, this.activeWhenConflict = "next", this.startVal = null, this.onTimelineStart = (t3) => {
|
|
32343
32392
|
t3.isReverse || this.updateCurrentValue();
|
|
@@ -32367,19 +32416,19 @@ void main(void){
|
|
|
32367
32416
|
this.timingTarget && (this.current = { x: this.timingTarget.scale.x, y: this.timingTarget.scale.y });
|
|
32368
32417
|
}
|
|
32369
32418
|
}
|
|
32370
|
-
class
|
|
32419
|
+
class my extends T_ {
|
|
32371
32420
|
constructor(t2) {
|
|
32372
32421
|
super(t2), this.isConflict = false, this.activeWhenConflict = "next", this.isTimelineStart = false, this.startColorString = null, this.currentColorString = "#FFFFFFFF", this.onTimelineStart = (t3) => {
|
|
32373
32422
|
if (this.isTimelineStart)
|
|
32374
32423
|
return;
|
|
32375
32424
|
this.isTimelineStart = true, t3.isReverse || this.updateCurrentValue(), this.from.isInit() || this.from.fromHexString(this.currentColorString), this.to.isInit() || this.from.by(this.by, this.to);
|
|
32376
32425
|
const e2 = this.json.cBhvr.attrList[0], [i2] = e2.split(".");
|
|
32377
|
-
|
|
32426
|
+
x_(this.timingTarget, i2 + ".on", "true");
|
|
32378
32427
|
}, this.onTimeNodeEnd = () => {
|
|
32379
32428
|
const t3 = this.json.cBhvr.attrList[0];
|
|
32380
32429
|
if (this.json.cBhvr.ctn.fill === "remove") {
|
|
32381
32430
|
const [e2] = t3.split(".");
|
|
32382
|
-
|
|
32431
|
+
x_(this.timingTarget, e2 + ".on", "false");
|
|
32383
32432
|
}
|
|
32384
32433
|
this.isTimelineStart = false;
|
|
32385
32434
|
}, this.onSeekToStart = () => {
|
|
@@ -32390,19 +32439,19 @@ void main(void){
|
|
|
32390
32439
|
const i2 = e2 === "ppt_c.color" || e2 === "text.color";
|
|
32391
32440
|
if (((t3 = this.timingTarget.fill) === null || t3 === void 0 ? void 0 : t3.designColor.toUpperCase()) === this.from.toHexString().toUpperCase() || i2) {
|
|
32392
32441
|
const [t4] = e2.split(".");
|
|
32393
|
-
|
|
32442
|
+
x_(this.timingTarget, t4 + ".on", "false");
|
|
32394
32443
|
}
|
|
32395
32444
|
}
|
|
32396
32445
|
}, this.onTimeNodeStart = () => {
|
|
32397
32446
|
if (this.timingTarget) {
|
|
32398
|
-
const t3 = this.json.cBhvr.attrList[0], e2 =
|
|
32447
|
+
const t3 = this.json.cBhvr.attrList[0], e2 = b_(this.timingTarget, t3);
|
|
32399
32448
|
e2 && (this.startColorString = e2);
|
|
32400
32449
|
}
|
|
32401
32450
|
}, this.onTimeUpdate = ({ delta: t3, duration: e2 }) => {
|
|
32402
32451
|
const i2 = t3 / e2;
|
|
32403
32452
|
if (this.to.interpolationFrom(this.from, i2, this.target), this.timingTarget) {
|
|
32404
32453
|
const t4 = this.json.cBhvr.attrList[0];
|
|
32405
|
-
|
|
32454
|
+
x_(this.timingTarget, t4, this.target.toHexString());
|
|
32406
32455
|
}
|
|
32407
32456
|
}, this.onSeekToEnd = () => {
|
|
32408
32457
|
this.isTimelineStart || this.onTimelineStart({ isReverse: false, activeCount: 0, id: "" }), this.onTimeUpdate({ duration: 1, delta: 1 });
|
|
@@ -32417,12 +32466,12 @@ void main(void){
|
|
|
32417
32466
|
}
|
|
32418
32467
|
updateCurrentValue() {
|
|
32419
32468
|
if (this.timingTarget) {
|
|
32420
|
-
const t2 = this.json.cBhvr.attrList[0], e2 =
|
|
32469
|
+
const t2 = this.json.cBhvr.attrList[0], e2 = b_(this.timingTarget, t2);
|
|
32421
32470
|
e2 && (this.currentColorString = e2);
|
|
32422
32471
|
}
|
|
32423
32472
|
}
|
|
32424
32473
|
}
|
|
32425
|
-
class
|
|
32474
|
+
class gy extends T_ {
|
|
32426
32475
|
constructor(t2) {
|
|
32427
32476
|
super(t2), this.isConflict = false, this.activeWhenConflict = "next", this.startVal = null, this.lastVal = null, this.onTimelineStart = (t3) => {
|
|
32428
32477
|
this.lastVal = null, t3.isReverse || this.updateCurrentValue();
|
|
@@ -32455,7 +32504,7 @@ void main(void){
|
|
|
32455
32504
|
this.currentVal = (t2 = this.timingTarget) === null || t2 === void 0 ? void 0 : t2.r;
|
|
32456
32505
|
}
|
|
32457
32506
|
}
|
|
32458
|
-
class
|
|
32507
|
+
class vy extends T_ {
|
|
32459
32508
|
constructor(t2) {
|
|
32460
32509
|
super(t2), this.isConflict = false, this.activeWhenConflict = "next", this.isApplied = false, this.onTimeUpdate = () => {
|
|
32461
32510
|
var t3, e2;
|
|
@@ -32476,7 +32525,7 @@ void main(void){
|
|
|
32476
32525
|
return ((e2 = (t2 = this.json) === null || t2 === void 0 ? void 0 : t2.cmd) !== null && e2 !== void 0 ? e2 : "") + ((n2 = (i2 = this.json) === null || i2 === void 0 ? void 0 : i2.cmdType) !== null && n2 !== void 0 ? n2 : "");
|
|
32477
32526
|
}
|
|
32478
32527
|
}
|
|
32479
|
-
class
|
|
32528
|
+
class _y {
|
|
32480
32529
|
constructor(t2) {
|
|
32481
32530
|
this.runtimeNodeEventHub = new Za.a(), this.onVolumeUpdate = (t3) => {
|
|
32482
32531
|
this.audio.volume(t3);
|
|
@@ -32486,14 +32535,14 @@ void main(void){
|
|
|
32486
32535
|
this.stopAudio(), this.audio.destroy(), this.ctx.activeMedia.delete(this.audio), this.ctx.volumeAdjuster.off("update", this.onVolumeUpdate);
|
|
32487
32536
|
};
|
|
32488
32537
|
const { json: e2, isIterate: i2, isSub: n2, eventHub: r2, ctx: o2, parent: s2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 } = t2;
|
|
32489
|
-
this.json = e2, this.id = e2.cMediaNode.ctn.id, this.commonTimeNode = new
|
|
32538
|
+
this.json = e2, this.id = e2.cMediaNode.ctn.id, this.commonTimeNode = new xy({ json: e2.cMediaNode.ctn, isSub: n2, eventHubs: { global: r2, runtime: this.runtimeNodeEventHub }, ctx: o2, parent: s2, isIterate: i2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 });
|
|
32490
32539
|
let d2 = e2.cMediaNode.tgtEl;
|
|
32491
32540
|
o2.loaderDelegate && (d2 = o2.loaderDelegate.redirectMedia(d2), o2.logger.info(`redirect media url from ${e2.cMediaNode.tgtEl} to ${d2} by delegate.`, o2.taskId)), this.audio = new h_(d2, o2.runningAudio), o2.activeMedia.add(this.audio), this.commonTimeNode.on("timelineStart", () => {
|
|
32492
32541
|
this.audio.volume(o2.volumeAdjuster.volume), this.audio.play();
|
|
32493
32542
|
}), this.commonTimeNode.on("seekToStart", this.stopAudio), this.commonTimeNode.on("seekToEnd", this.stopAudio), this.commonTimeNode.on("timeNodeDestroy", this.destroy), this.ctx = o2, this.ctx.volumeAdjuster.on("update", this.onVolumeUpdate);
|
|
32494
32543
|
}
|
|
32495
32544
|
}
|
|
32496
|
-
var
|
|
32545
|
+
var yy = function(t2, e2, i2, n2) {
|
|
32497
32546
|
return new (i2 || (i2 = Promise))(function(r2, o2) {
|
|
32498
32547
|
function s2(t3) {
|
|
32499
32548
|
try {
|
|
@@ -32518,7 +32567,7 @@ void main(void){
|
|
|
32518
32567
|
l2((n2 = n2.apply(t2, e2 || [])).next());
|
|
32519
32568
|
});
|
|
32520
32569
|
};
|
|
32521
|
-
class
|
|
32570
|
+
class xy extends Za.a {
|
|
32522
32571
|
constructor(t2) {
|
|
32523
32572
|
var e2, i2;
|
|
32524
32573
|
super(), this.uuid = Mm(), this.isSub = false, this.isShadow = false, this.startCount = 0, this.applyCount = 0, this.isReverse = false, this.isConflictDispose = false, this.isIterateEnd = false, this.parentTimeNode = null, this.isActive = false, this.isDestroy = false, this.shouldSeekOnStart = false, this.repeatTimeoutId = "", this.iterateShadows = [], this.isEndEventsEmitted = false, this.tmFilter = [], this.timeDelta = 0, this.isIterate = false, this.iterateType = "el", this.iterateIndex = 0, this.children = [], this.subList = [], this.duration = 0, this.isNegativeSpeed = false, this.handleEndCond = () => {
|
|
@@ -32539,7 +32588,7 @@ void main(void){
|
|
|
32539
32588
|
const { isSub: n2, isIterate: r2, ctx: o2, eventHubs: s2, parent: a2, json: l2, iterateType: h2, iterateId: u2, iterateIndex: c2, isInInteractiveSeq: d2, fromSeqId: p2 } = t2;
|
|
32540
32589
|
this.isSub = n2, this.fromSeqId = p2, this.isInInteractiveSeq = d2, this.isIterate = r2, this.parentTimeNode = a2, this.json = l2, this.ctx = o2, this.iterateIndex = c2, this.eventHubs = s2, this.iterateType = h2, this.iterateId = u2, this.tmFilter = (i2 = (e2 = l2.tmFilter) === null || e2 === void 0 ? void 0 : e2.split(";").map((t3) => t3.split(",").map((t4) => parseFloat(t4.trim())))) !== null && i2 !== void 0 ? i2 : [];
|
|
32541
32590
|
const f2 = Number(this.json.dur), m2 = this.json.spd || 1;
|
|
32542
|
-
if (this.isNegativeSpeed = m2 < 0, Number.isNaN(f2) || (this.duration = f2 / Math.abs(m2)), this.uuid += "--" + this.json.id, this.setPreStyle(), l2.childTnLst && this.createChildren(l2.childTnLst), this.startConds = new
|
|
32591
|
+
if (this.isNegativeSpeed = m2 < 0, Number.isNaN(f2) || (this.duration = f2 / Math.abs(m2)), this.uuid += "--" + this.json.id, this.setPreStyle(), l2.childTnLst && this.createChildren(l2.childTnLst), this.startConds = new __(this.json.id || "", l2.stCondLst, s2, this.ctx), this.endConds = new __(this.json.id || "", l2.endCondLst, s2, this.ctx), l2.endSync && (this.endSync = new __(this.json.id || "", [l2.endSync], s2, this.ctx), this.endSync.on("active", () => {
|
|
32543
32592
|
var t3;
|
|
32544
32593
|
this.json.nodeType === "interactiveSeq" && (this.isActive = false, this.shouldSeekOnStart = true, this.emit("timeNodeEndSync"), (t3 = this.endSync) === null || t3 === void 0 || t3.reset());
|
|
32545
32594
|
})), this.startConds.on("active", (t3) => {
|
|
@@ -32561,7 +32610,7 @@ void main(void){
|
|
|
32561
32610
|
i3 === t2 && (e2 = false, this.ctx.eventHub.removeListener("IterateTimeNodeEnd", n2));
|
|
32562
32611
|
};
|
|
32563
32612
|
for (this.ctx.eventHub.on("IterateTimeNodeEnd", n2); e2; ) {
|
|
32564
|
-
const e3 = JSON.parse(JSON.stringify(this.json)), n3 = new
|
|
32613
|
+
const e3 = JSON.parse(JSON.stringify(this.json)), n3 = new xy({ json: e3, isSub: false, eventHubs: this.eventHubs, ctx: this.ctx, parent: null, isIterate: true, iterateType: e3.iterate.type, iterateIndex: i2, iterateId: t2, isInInteractiveSeq: this.isInInteractiveSeq, fromSeqId: this.fromSeqId });
|
|
32565
32614
|
this.iterateShadows[i2] = n3, i2 += 1;
|
|
32566
32615
|
}
|
|
32567
32616
|
}
|
|
@@ -32577,7 +32626,7 @@ void main(void){
|
|
|
32577
32626
|
createTimeNode(t2, e2) {
|
|
32578
32627
|
let i2 = null;
|
|
32579
32628
|
const n2 = { json: t2, isSub: e2, isIterate: this.isIterate, eventHub: this.eventHubs.global, ctx: this.ctx, parent: this, iterateType: this.iterateType, iterateIndex: this.iterateIndex, iterateId: this.iterateId, isInInteractiveSeq: this.isInInteractiveSeq, fromSeqId: this.fromSeqId };
|
|
32580
|
-
return t2.type === "seq" ? i2 = new
|
|
32629
|
+
return t2.type === "seq" ? i2 = new y_(n2) : t2.type === "par" ? i2 = new by(n2) : t2.type === "set" ? i2 = new E_(n2) : t2.type === "anim" ? i2 = new I_(n2) : t2.type === "animEffect" ? i2 = new dy(n2) : t2.type === "animMotion" ? i2 = new py(n2) : t2.type === "animScale" ? i2 = new fy(n2) : t2.type === "animClr" ? i2 = new my(n2) : t2.type === "animRot" ? i2 = new gy(n2) : t2.type === "cmd" ? i2 = new vy(n2) : t2.type === "audio" && (i2 = new _y(n2)), i2;
|
|
32581
32630
|
}
|
|
32582
32631
|
createSubList(t2) {
|
|
32583
32632
|
this.subList && this.subList.forEach((t3) => t3.commonTimeNode.destroy()), this.subList = [], t2.forEach((t3) => {
|
|
@@ -32638,7 +32687,7 @@ void main(void){
|
|
|
32638
32687
|
startReverseTimeLine() {
|
|
32639
32688
|
this.isEndEventsEmitted = false, this.timeDelta = 0;
|
|
32640
32689
|
const t2 = 1e3 / this.ctx.ticker.maxFPS;
|
|
32641
|
-
this.duration <= t2 && this.duration > 0 ? (this.emit("timeUpdate", { delta: this.duration, duration: this.duration, isReverse: this.isReverse }), this.ctx.eventHub.emit(
|
|
32690
|
+
this.duration <= t2 && this.duration > 0 ? (this.emit("timeUpdate", { delta: this.duration, duration: this.duration, isReverse: this.isReverse }), this.ctx.eventHub.emit(Hy.animateEnd), this.ctx.ticker.remove(this.updateTimeLine)) : this.duration > t2 && (this.ctx.eventHub.emit(Hy.animateStart), this.ctx.ticker.add(this.updateTimeLine));
|
|
32642
32691
|
}
|
|
32643
32692
|
startTimeLine(t2 = true) {
|
|
32644
32693
|
if (t2 && (this.isEndEventsEmitted = false, this.eventHubs.global.emit(`time ${this.json.id} begin`), this.eventHubs.global.emit(`time ${this.json.id} onBegin`), this.eventHubs.runtime.emit(`runtime ${this.json.id} begin`)), this.json.iterate)
|
|
@@ -32647,10 +32696,10 @@ void main(void){
|
|
|
32647
32696
|
const e2 = 1e3 / this.ctx.ticker.maxFPS;
|
|
32648
32697
|
this.duration <= e2 && this.duration > 0 ? (this.timeDelta = this.isReverse ? 0 : this.duration, this.emit("timeUpdate", { delta: this.timeDelta, duration: this.duration, isReverse: this.isReverse }), this.emit("timelineEnd", { id: this.uuid, activeCount: this.applyCount, isReverse: this.isReverse }), this.ctx.ticker.addOnce(() => {
|
|
32649
32698
|
this.onTimeLineEnd();
|
|
32650
|
-
})) : this.duration > e2 && (this.ctx.eventHub.emit(
|
|
32699
|
+
})) : this.duration > e2 && (this.ctx.eventHub.emit(Hy.animateStart), this.updateTimeLine(0), this.ctx.ticker.add(this.updateTimeLine));
|
|
32651
32700
|
}
|
|
32652
32701
|
startIterate() {
|
|
32653
|
-
return
|
|
32702
|
+
return yy(this, void 0, void 0, function* () {
|
|
32654
32703
|
if (this.json.iterate) {
|
|
32655
32704
|
this.isIterateEnd = false;
|
|
32656
32705
|
for (const t2 of this.iterateShadows) {
|
|
@@ -32756,7 +32805,7 @@ void main(void){
|
|
|
32756
32805
|
});
|
|
32757
32806
|
}
|
|
32758
32807
|
dispose(t2 = false) {
|
|
32759
|
-
this.isConflictDispose = t2, this.ctx.clock.clearTimeout(this.repeatTimeoutId), this.ctx.eventHub.emit(
|
|
32808
|
+
this.isConflictDispose = t2, this.ctx.clock.clearTimeout(this.repeatTimeoutId), this.ctx.eventHub.emit(Hy.animateEnd);
|
|
32760
32809
|
try {
|
|
32761
32810
|
this.ctx.ticker.remove(this.updateTimeLine);
|
|
32762
32811
|
} catch (t3) {
|
|
@@ -32792,11 +32841,11 @@ void main(void){
|
|
|
32792
32841
|
this.emit("timeNodeDestroy"), this.isDestroy = true, this.dispose(), this.startConds.removeAllListeners(), this.endConds.removeAllListeners(), this.children.forEach((t2) => t2.commonTimeNode.destroy()), this.clearSubList();
|
|
32793
32842
|
}
|
|
32794
32843
|
}
|
|
32795
|
-
class
|
|
32844
|
+
class by extends Za.a {
|
|
32796
32845
|
constructor(t2) {
|
|
32797
32846
|
super(), this.isRunning = false, this.runtimeNodeEventHub = new Za.a();
|
|
32798
32847
|
const { json: e2, iterateType: i2, isIterate: n2, isSub: r2, parent: o2, ctx: s2, eventHub: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 } = t2;
|
|
32799
|
-
this.id = e2.ctn.id, this.json = e2, this.ctx = s2, this.isIterate = n2, this.globalEventHub = a2, this.commonTimeNode = new
|
|
32848
|
+
this.id = e2.ctn.id, this.json = e2, this.ctx = s2, this.isIterate = n2, this.globalEventHub = a2, this.commonTimeNode = new xy({ json: e2.ctn, isSub: r2, eventHubs: { global: a2, runtime: this.runtimeNodeEventHub }, ctx: s2, parent: o2, isIterate: false, iterateType: i2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 }), this.commonTimeNode.on("timeNodeStart", () => {
|
|
32800
32849
|
this.commonTimeNode.children.forEach((t3) => {
|
|
32801
32850
|
t3.commonTimeNode.setReverse(this.commonTimeNode.getReverse()), t3.commonTimeNode.startTimeNode();
|
|
32802
32851
|
}), this.isRunning || (this.isRunning = true, this.globalEventHub.emit(`runtime ${this.id} begin`), this.emit("begin"));
|
|
@@ -32809,7 +32858,7 @@ void main(void){
|
|
|
32809
32858
|
});
|
|
32810
32859
|
}
|
|
32811
32860
|
}
|
|
32812
|
-
var
|
|
32861
|
+
var Ty = function(t2, e2, i2, n2) {
|
|
32813
32862
|
return new (i2 || (i2 = Promise))(function(r2, o2) {
|
|
32814
32863
|
function s2(t3) {
|
|
32815
32864
|
try {
|
|
@@ -32834,11 +32883,11 @@ void main(void){
|
|
|
32834
32883
|
l2((n2 = n2.apply(t2, e2 || [])).next());
|
|
32835
32884
|
});
|
|
32836
32885
|
};
|
|
32837
|
-
class
|
|
32886
|
+
class Ey {
|
|
32838
32887
|
constructor(t2, e2, i2) {
|
|
32839
32888
|
this.json = t2, this.ctx = i2, this.globalEventHub = e2;
|
|
32840
32889
|
const n2 = t2.timeNodeList.find((t3) => t3.type === "par" && t3.ctn.nodeType === "tmRoot");
|
|
32841
|
-
n2 && (this.tmRoot = new
|
|
32890
|
+
n2 && (this.tmRoot = new by({ json: n2, isSub: false, isIterate: false, eventHub: e2, ctx: i2, parent: null, iterateType: "el", iterateIndex: 0, iterateId: "", isInInteractiveSeq: false, fromSeqId: "" }), this.mainSeq = this.tmRoot.commonTimeNode.children.find((t3) => {
|
|
32842
32891
|
var e3, i3, n3;
|
|
32843
32892
|
return ((e3 = t3.json) === null || e3 === void 0 ? void 0 : e3.type) === "seq" && ((n3 = (i3 = t3.json) === null || i3 === void 0 ? void 0 : i3.ctn) === null || n3 === void 0 ? void 0 : n3.nodeType) === "mainSeq";
|
|
32844
32893
|
}));
|
|
@@ -32852,7 +32901,7 @@ void main(void){
|
|
|
32852
32901
|
}
|
|
32853
32902
|
start() {
|
|
32854
32903
|
var t2, e2;
|
|
32855
|
-
return
|
|
32904
|
+
return Ty(this, void 0, void 0, function* () {
|
|
32856
32905
|
this.json.autoPlayMainSeq ? (yield this.ctx.clock.delay(16), (t2 = this.mainSeq) === null || t2 === void 0 || t2.commonTimeNode.startTimeNode()) : (e2 = this.mainSeq) === null || e2 === void 0 || e2.commonTimeNode.startTimeNode();
|
|
32857
32906
|
});
|
|
32858
32907
|
}
|
|
@@ -32910,7 +32959,7 @@ void main(void){
|
|
|
32910
32959
|
this.globalEventHub.emit(t2);
|
|
32911
32960
|
}
|
|
32912
32961
|
}
|
|
32913
|
-
var
|
|
32962
|
+
var Sy = function(t2, e2, i2, n2) {
|
|
32914
32963
|
return new (i2 || (i2 = Promise))(function(r2, o2) {
|
|
32915
32964
|
function s2(t3) {
|
|
32916
32965
|
try {
|
|
@@ -32935,7 +32984,7 @@ void main(void){
|
|
|
32935
32984
|
l2((n2 = n2.apply(t2, e2 || [])).next());
|
|
32936
32985
|
});
|
|
32937
32986
|
};
|
|
32938
|
-
class
|
|
32987
|
+
class wy extends v_ {
|
|
32939
32988
|
constructor(t2, e2, i2, n2) {
|
|
32940
32989
|
super({ id: "stage", width: t2.width, height: t2.height, type: "Container", children: t2.children }, e2, i2, void 0, n2), this.isRendered = false, this.isTimingStartValueCollected = false, this.json = t2, e2.hasBackgroundFillShape = this.detectUseBackgroundFill(this.json), this.container.visible = false, this.ctx = e2;
|
|
32941
32990
|
const r2 = new Jd();
|
|
@@ -32946,9 +32995,9 @@ void main(void){
|
|
|
32946
32995
|
}
|
|
32947
32996
|
initOnReuse() {
|
|
32948
32997
|
super.initOnReuse(), this.ctx.timingEventHub.on("c:prev slide", (t2) => {
|
|
32949
|
-
this.ctx.eventHub.emit(
|
|
32998
|
+
this.ctx.eventHub.emit(Hy.requestPrevSlide, t2);
|
|
32950
32999
|
}), this.ctx.timingEventHub.on("c:next slide", (t2, e2) => {
|
|
32951
|
-
this.ctx.eventHub.emit(
|
|
33000
|
+
this.ctx.eventHub.emit(Hy.requestNextSlide, t2, e2);
|
|
32952
33001
|
});
|
|
32953
33002
|
}
|
|
32954
33003
|
get interactiveContainer() {
|
|
@@ -32957,7 +33006,7 @@ void main(void){
|
|
|
32957
33006
|
render(t2) {
|
|
32958
33007
|
if (this.isRendered)
|
|
32959
33008
|
return;
|
|
32960
|
-
this.collectAnimatedIds().forEach((t3) => this.ctx.animatedIds.add(t3)), this.isRendered = true, super.render(t2), t2.addSubMTask(() =>
|
|
33009
|
+
this.collectAnimatedIds().forEach((t3) => this.ctx.animatedIds.add(t3)), this.isRendered = true, super.render(t2), t2.addSubMTask(() => Sy(this, void 0, void 0, function* () {
|
|
32961
33010
|
this.ctx.eventHub.emit("StageRenderEnd");
|
|
32962
33011
|
}), "@StageImpl[emit.StageRenderEnd]");
|
|
32963
33012
|
}
|
|
@@ -32980,7 +33029,7 @@ void main(void){
|
|
|
32980
33029
|
}), t2;
|
|
32981
33030
|
}
|
|
32982
33031
|
createTiming() {
|
|
32983
|
-
this.json.timing && !this.timing && (this.timing = new
|
|
33032
|
+
this.json.timing && !this.timing && (this.timing = new Ey(this.json.timing, this.ctx.timingEventHub, this.ctx));
|
|
32984
33033
|
}
|
|
32985
33034
|
startTiming() {
|
|
32986
33035
|
var t2;
|
|
@@ -33035,11 +33084,11 @@ void main(void){
|
|
|
33035
33084
|
}
|
|
33036
33085
|
nextStep(t2, e2) {
|
|
33037
33086
|
var i2;
|
|
33038
|
-
this.hasTiming() && ((i2 = this.timing) === null || i2 === void 0 ? void 0 : i2.hasMainSeq()) ? (this.ctx.timingEventHub.emit("shape slide onStopAudio"), this.ctx.timingEventHub.emit("shape slide onNext", t2, e2)) : this.ctx.eventHub.emit(
|
|
33087
|
+
this.hasTiming() && ((i2 = this.timing) === null || i2 === void 0 ? void 0 : i2.hasMainSeq()) ? (this.ctx.timingEventHub.emit("shape slide onStopAudio"), this.ctx.timingEventHub.emit("shape slide onNext", t2, e2)) : this.ctx.eventHub.emit(Hy.requestNextSlide, t2, e2);
|
|
33039
33088
|
}
|
|
33040
33089
|
prevStep(t2 = false) {
|
|
33041
33090
|
var e2;
|
|
33042
|
-
this.hasTiming() && ((e2 = this.timing) === null || e2 === void 0 ? void 0 : e2.hasMainSeq()) ? (this.ctx.timingEventHub.emit("shape slide onStopAudio"), this.ctx.timingEventHub.emit("shape slide onPrev", t2)) : this.ctx.eventHub.emit(
|
|
33091
|
+
this.hasTiming() && ((e2 = this.timing) === null || e2 === void 0 ? void 0 : e2.hasMainSeq()) ? (this.ctx.timingEventHub.emit("shape slide onStopAudio"), this.ctx.timingEventHub.emit("shape slide onPrev", t2)) : this.ctx.eventHub.emit(Hy.requestPrevSlide, t2);
|
|
33043
33092
|
}
|
|
33044
33093
|
applyInteractiveAction(t2) {
|
|
33045
33094
|
var e2;
|
|
@@ -33054,7 +33103,7 @@ void main(void){
|
|
|
33054
33103
|
(n2 = this.timing) === null || n2 === void 0 || n2.setInteractiveSeqState(t2, e2, i2);
|
|
33055
33104
|
}
|
|
33056
33105
|
setMediaState(t2, e2, i2) {
|
|
33057
|
-
return
|
|
33106
|
+
return Sy(this, void 0, void 0, function* () {
|
|
33058
33107
|
const n2 = this.ctx.medias[t2];
|
|
33059
33108
|
n2 && (e2 ? i2 ? (yield Pm(() => n2.clippedDuration > 0, 5e3), i2 < n2.clippedDuration && (n2.once("play", () => {
|
|
33060
33109
|
n2.seek(i2);
|
|
@@ -33066,7 +33115,7 @@ void main(void){
|
|
|
33066
33115
|
i2 && i2.seek(e2);
|
|
33067
33116
|
}
|
|
33068
33117
|
}
|
|
33069
|
-
class
|
|
33118
|
+
class Ay {
|
|
33070
33119
|
constructor(t2) {
|
|
33071
33120
|
this.ticker = t2, this.tasks = [], this.couldRunning = false, this.applyNext = () => {
|
|
33072
33121
|
const t3 = this.tasks[0];
|
|
@@ -33089,7 +33138,7 @@ void main(void){
|
|
|
33089
33138
|
this.couldRunning = false;
|
|
33090
33139
|
}
|
|
33091
33140
|
}
|
|
33092
|
-
var
|
|
33141
|
+
var My = function(t2, e2, i2, n2) {
|
|
33093
33142
|
return new (i2 || (i2 = Promise))(function(r2, o2) {
|
|
33094
33143
|
function s2(t3) {
|
|
33095
33144
|
try {
|
|
@@ -33114,8 +33163,8 @@ void main(void){
|
|
|
33114
33163
|
l2((n2 = n2.apply(t2, e2 || [])).next());
|
|
33115
33164
|
});
|
|
33116
33165
|
};
|
|
33117
|
-
const
|
|
33118
|
-
class
|
|
33166
|
+
const Ry = (t2) => new Promise((e2) => setTimeout(e2, t2));
|
|
33167
|
+
class Cy extends Za.a {
|
|
33119
33168
|
constructor(t2, e2, i2) {
|
|
33120
33169
|
super(), this.slideIndex = t2, this.taskId = e2, this.logger = i2, this.uuid = Mm(), this.isCancel = false, this.tasks = [];
|
|
33121
33170
|
}
|
|
@@ -33147,10 +33196,10 @@ void main(void){
|
|
|
33147
33196
|
}));
|
|
33148
33197
|
}
|
|
33149
33198
|
applyAll() {
|
|
33150
|
-
return
|
|
33199
|
+
return My(this, void 0, void 0, function* () {
|
|
33151
33200
|
for (; !this.tasks.every((t2) => t2.state === "finish"); )
|
|
33152
33201
|
if (this.tasks.some((t2) => t2.state === "running"))
|
|
33153
|
-
yield
|
|
33202
|
+
yield Ry(16);
|
|
33154
33203
|
else {
|
|
33155
33204
|
if (this.tasks.some((t2) => t2.state === "error"))
|
|
33156
33205
|
return;
|
|
@@ -33177,7 +33226,7 @@ void main(void){
|
|
|
33177
33226
|
});
|
|
33178
33227
|
}
|
|
33179
33228
|
}
|
|
33180
|
-
var
|
|
33229
|
+
var Iy = function(t2, e2, i2, n2) {
|
|
33181
33230
|
return new (i2 || (i2 = Promise))(function(r2, o2) {
|
|
33182
33231
|
function s2(t3) {
|
|
33183
33232
|
try {
|
|
@@ -33202,11 +33251,11 @@ void main(void){
|
|
|
33202
33251
|
l2((n2 = n2.apply(t2, e2 || [])).next());
|
|
33203
33252
|
});
|
|
33204
33253
|
};
|
|
33205
|
-
class
|
|
33254
|
+
class Py {
|
|
33206
33255
|
constructor(t2, e2) {
|
|
33207
|
-
if (this.renderer = t2, this.localStorage = e2, this.outputData = /* @__PURE__ */ new Map(), this.loadingSdfKeys = /* @__PURE__ */ new Set(), !
|
|
33256
|
+
if (this.renderer = t2, this.localStorage = e2, this.outputData = /* @__PURE__ */ new Map(), this.loadingSdfKeys = /* @__PURE__ */ new Set(), !Py.worker) {
|
|
33208
33257
|
const t3 = new Blob(['\nself.onmessage = function(e) {\n var data = e.data.data;\n var key = e.data.key;\n var height = Math.ceil(e.data.height);\n var width = Math.ceil(e.data.width);\n if (!data || !key) {\n return;\n }\n var maxDis = 0;\n var d = [];\n var p = [];\n var maxInt = Number.MAX_SAFE_INTEGER || 255 * 255 * 255;\n var setD = function(x, y, v) { d[y * width + x] = v; };\n var getD = function(x, y) { return d[y * width + x]; };\n var setP = function(x, y, v) { p[y * width + x] = v; };\n var getP = function(x, y) { return p[y * width + x]; };\n var isContains = function(x, y) { return x >= 0 && x < width && y >= 0 && y < height; };\n var isInterior = function(x, y) { return data[(y * width + x) * 4 + 3] > 10; };\n for (var y = 0; y < height; ++ y) {\n for (var x = 0; x < width; ++ x) {\n var c = isInterior(x, y);\n var t = isContains(x, y - 1) ? isInterior(x, y - 1) : false;\n var b = isContains(x, y + 1) ? isInterior(x, y + 1) : false;\n var l = isContains(x - 1, y) ? isInterior(x - 1, y) : false;\n var r = isContains(x + 1, y) ? isInterior(x + 1, y) : false;\n if (c !== t || c !== b || c !== l || c !== r) {\n setD(x, y, 0);\n setP(x, y, [x, y]);\n } else {\n setD(x, y, maxInt);\n setP(x, y, [-1, -1]);\n }\n }\n }\n \n var f = function (x, y, dir) {\n var d1 = 1;\n var d2 = Math.sqrt(2);\n var dx;\n var dy;\n var od;\n switch (dir) {\n case "TL": dx = -1; dy = -1; od = d2; break;\n case "T": dx = 0; dy = -1; od = d1; break;\n case "TR": dx = 1; dy = -1; od = d2; break;\n case "L": dx = -1; dy = 0; od = d1; break;\n case "R": dx = 1; dy = 0; od = d1; break;\n case "BL": dx = -1; dy = 1; od = d2; break;\n case "B": dx = 0; dy = 1; od = d1; break;\n case "BR": dx = 1; dy = 1; od = d2; break;\n }\n var b = isContains(x + dx, y + dy);\n var cb = b ? getD(x + dx, y + dy) : maxInt;\n if (cb + od < getD(x, y)) {\n var p = b ? getP(x + dx, y + dy) : [-1, -1];\n var dis = Math.sqrt(Math.pow(x - p[0], 2) + Math.pow(y - p[1], 2));\n setP(x, y, p);\n setD(x, y, dis);\n if (dis > maxDis) {\n maxDis = dis;\n }\n }\n };\n \n for (var y = 0; y < height; ++ y) {\n for (var x = 0; x < width; ++ x) {\n var dirs = ["TL", "T", "TR", "L"];\n for (var i = 0; i < dirs.length; ++ i) {\n var dir = dirs[i];\n f(x, y, dir);\n }\n }\n }\n\n for (var y = height - 1; y >= 0; -- y) {\n for (var x = width - 1; x >= 0; -- x) {\n var dirs = ["R", "BL", "B", "BR"];\n for (var i = 0; i < dirs.length; ++ i) {\n var dir = dirs[i];\n f(x, y, dir);\n }\n }\n }\n\n var outputData = [];\n for (var y = 0; y < height; ++ y) {\n for (var x = 0; x < width; ++ x) {\n outputData.push(isInterior(x, y) ? 255: 0);\n outputData.push(0);\n outputData.push(0);\n outputData.push(Math.ceil(getD(x, y) / maxDis * 255));\n }\n }\n self.postMessage({\n key, outputData, maxDis\n });\n};\n'], { type: "text/javascript" });
|
|
33209
|
-
|
|
33258
|
+
Py.worker = new Worker(URL.createObjectURL(t3)), Py.worker.onmessage = (t4) => {
|
|
33210
33259
|
this.outputData.set(t4.data.key, { data: t4.data.outputData, maxDis: t4.data.maxDis });
|
|
33211
33260
|
}, this.outputData.set("111", "222");
|
|
33212
33261
|
}
|
|
@@ -33215,11 +33264,11 @@ void main(void){
|
|
|
33215
33264
|
const l2 = document.createElement("canvas");
|
|
33216
33265
|
l2.width = r2, l2.height = o2;
|
|
33217
33266
|
const h2 = l2.getContext("2d");
|
|
33218
|
-
if (!h2 || !
|
|
33267
|
+
if (!h2 || !Py.worker)
|
|
33219
33268
|
return;
|
|
33220
33269
|
h2.drawImage(s2, t2, e2, i2, n2);
|
|
33221
33270
|
const { data: u2 } = h2.getImageData(0, 0, r2, o2);
|
|
33222
|
-
|
|
33271
|
+
Py.worker.postMessage({ data: u2, key: a2, width: r2, height: o2 });
|
|
33223
33272
|
}
|
|
33224
33273
|
createSdf(t2, e2, i2) {
|
|
33225
33274
|
const n2 = document.createElement("canvas");
|
|
@@ -33300,7 +33349,7 @@ void main(void){
|
|
|
33300
33349
|
return r2.putImageData(new ImageData(Uint8ClampedArray.from(g2), t2, e2), 0, 0), { src: n2.toDataURL("image/png"), maxDis: o2 };
|
|
33301
33350
|
}
|
|
33302
33351
|
getSdf(t2, e2, i2) {
|
|
33303
|
-
return
|
|
33352
|
+
return Iy(this, void 0, void 0, function* () {
|
|
33304
33353
|
const n2 = Math.ceil(e2.width), r2 = Math.ceil(e2.height), o2 = Math.ceil(e2.width - t2.width) / 2, s2 = Math.ceil(e2.height - t2.height) / 2;
|
|
33305
33354
|
let a2 = yield this.localStorage.getItem(`sdf-${i2}-src`), l2 = yield this.localStorage.getItem(`sdf-${i2}-maxDis`);
|
|
33306
33355
|
if (!(a2 && l2 || this.loadingSdfKeys.has(i2))) {
|
|
@@ -33328,8 +33377,8 @@ void main(void){
|
|
|
33328
33377
|
});
|
|
33329
33378
|
}
|
|
33330
33379
|
}
|
|
33331
|
-
|
|
33332
|
-
var
|
|
33380
|
+
Py.worker = null;
|
|
33381
|
+
var Oy = function(t2, e2, i2, n2) {
|
|
33333
33382
|
return new (i2 || (i2 = Promise))(function(r2, o2) {
|
|
33334
33383
|
function s2(t3) {
|
|
33335
33384
|
try {
|
|
@@ -33354,23 +33403,23 @@ void main(void){
|
|
|
33354
33403
|
l2((n2 = n2.apply(t2, e2 || [])).next());
|
|
33355
33404
|
});
|
|
33356
33405
|
};
|
|
33357
|
-
class
|
|
33358
|
-
constructor(t2, e2, i2, n2, r2, o2, s2, a2, l2, h2, u2, c2, d2, p2, f2, m2) {
|
|
33359
|
-
this.loader = t2, this.mode = e2, this.renderer = i2, this.ticker = n2, this.view = r2, this.clock = o2, this.objPoolGroup = s2, this.errorChannel = a2, this.localstorage = l2, this.logger = h2, this.loaderDelegate = u2, this.
|
|
33406
|
+
class Ny {
|
|
33407
|
+
constructor(t2, e2, i2, n2, r2, o2, s2, a2, l2, h2, u2, c2, d2, p2, f2, m2, g2) {
|
|
33408
|
+
this.loader = t2, this.mode = e2, this.renderer = i2, this.ticker = n2, this.view = r2, this.clock = o2, this.objPoolGroup = s2, this.errorChannel = a2, this.localstorage = l2, this.logger = h2, this.loaderDelegate = u2, this.urlInterrupter = c2, this.isPlayerPaused = d2, this.maxResolution = p2, this.volumeAdjuster = f2, this.forceCanvas = m2, this.globalEventHub = g2, this.currentStageIndex = 0, this.cacheCount = n_.isDesktop() ? 2 : 1, this.stageStates = /* @__PURE__ */ Object.create(null), this.stageJsons = /* @__PURE__ */ Object.create(null), this.stageCtxs = /* @__PURE__ */ Object.create(null), this.stageImpls = /* @__PURE__ */ Object.create(null), this.taskId = "", this.url = "", this.runningAudio = /* @__PURE__ */ new Map(), this.activeMedia = /* @__PURE__ */ new Set(), this.microTaskManager = new Ay(n2), this.sdfManager = new Py(i2, l2);
|
|
33360
33409
|
}
|
|
33361
33410
|
setResourceData(t2, e2) {
|
|
33362
33411
|
this.taskId = t2, this.url = e2;
|
|
33363
33412
|
}
|
|
33364
33413
|
createCtx(t2) {
|
|
33365
33414
|
const { task: e2 } = this.stageStates[t2];
|
|
33366
|
-
e2.addMTask(() =>
|
|
33367
|
-
const e3 = new Gm(this.loader), i2 = new Za.a(), n2 = { taskId: this.taskId, mode: this.mode, renderer: this.renderer, graphicsTexture: new Km(), stageWidth: 0, stageHeight: 0, ticker: this.ticker, timingTargets: new $m(i2), eventHub: i2, view: this.view, medias: /* @__PURE__ */ Object.create(null), lastViewedIndex: 0, conflictTimeNodeManager: new Qm(), clock: this.clock, spriteTexture: e3, slideIndex: t2, objectPoolGroup: this.objPoolGroup, hasBackgroundFillShape: false, slideScopeEventHub: new Za.a(), logger: this.logger, sdfManager: this.sdfManager, loaderDelegate: this.loaderDelegate, runningAudio: this.runningAudio, activeMedia: this.activeMedia, isPlayerPaused: this.isPlayerPaused, timingEventHub: new Za.a(), maxResolution: this.maxResolution, animatedIds: /* @__PURE__ */ new Set(), volumeAdjuster: this.volumeAdjuster, forceCanvas: this.forceCanvas, globalEventHub: this.globalEventHub, latestChangeFullscreenTargetId: "", isRendering: false };
|
|
33415
|
+
e2.addMTask(() => Oy(this, void 0, void 0, function* () {
|
|
33416
|
+
const e3 = new Gm(this.loader), i2 = new Za.a(), n2 = { taskId: this.taskId, mode: this.mode, renderer: this.renderer, graphicsTexture: new Km(), stageWidth: 0, stageHeight: 0, ticker: this.ticker, timingTargets: new $m(i2), eventHub: i2, view: this.view, medias: /* @__PURE__ */ Object.create(null), lastViewedIndex: 0, conflictTimeNodeManager: new Qm(), clock: this.clock, spriteTexture: e3, slideIndex: t2, objectPoolGroup: this.objPoolGroup, hasBackgroundFillShape: false, slideScopeEventHub: new Za.a(), logger: this.logger, sdfManager: this.sdfManager, loaderDelegate: this.loaderDelegate, runningAudio: this.runningAudio, activeMedia: this.activeMedia, isPlayerPaused: this.isPlayerPaused, timingEventHub: new Za.a(), maxResolution: this.maxResolution, animatedIds: /* @__PURE__ */ new Set(), volumeAdjuster: this.volumeAdjuster, forceCanvas: this.forceCanvas, globalEventHub: this.globalEventHub, latestChangeFullscreenTargetId: "", isRendering: false, urlInterrupter: this.urlInterrupter };
|
|
33368
33417
|
this.stageCtxs[t2] = n2;
|
|
33369
33418
|
}), "@StagePool[createCtx]");
|
|
33370
33419
|
}
|
|
33371
33420
|
loadStageJson(t2) {
|
|
33372
33421
|
const { task: e2 } = this.stageStates[t2];
|
|
33373
|
-
e2.addMTask(() =>
|
|
33422
|
+
e2.addMTask(() => Oy(this, void 0, void 0, function* () {
|
|
33374
33423
|
const e3 = yield this.loader.fetchJson(`${this.url}/${this.taskId}/jsonOutput/slide-${t2}.json`);
|
|
33375
33424
|
this.stageJsons[t2] = e3, this.stageCtxs[t2].stageWidth = e3.width, this.stageCtxs[t2].stageHeight = e3.height, this.stageCtxs[t2].featureList = e3.featureList;
|
|
33376
33425
|
}), "@StagePool[loadStageJson]");
|
|
@@ -33395,7 +33444,7 @@ void main(void){
|
|
|
33395
33444
|
createStage(t2) {
|
|
33396
33445
|
const { task: e2 } = this.stageStates[t2];
|
|
33397
33446
|
e2.addMTask(() => {
|
|
33398
|
-
const i2 = this.stageJsons[t2], n2 = this.stageCtxs[t2], r2 = new
|
|
33447
|
+
const i2 = this.stageJsons[t2], n2 = this.stageCtxs[t2], r2 = new wy(i2, n2, { x: 0, y: 0 }, e2);
|
|
33399
33448
|
return this.stageImpls[t2] = r2, Promise.resolve();
|
|
33400
33449
|
}, "@StagePool[createStage]");
|
|
33401
33450
|
}
|
|
@@ -33405,7 +33454,7 @@ void main(void){
|
|
|
33405
33454
|
}
|
|
33406
33455
|
createGraphicsTexture(t2) {
|
|
33407
33456
|
const { task: e2 } = this.stageStates[t2];
|
|
33408
|
-
e2.addMTask(() =>
|
|
33457
|
+
e2.addMTask(() => Oy(this, void 0, void 0, function* () {
|
|
33409
33458
|
const i2 = this.stageCtxs[t2];
|
|
33410
33459
|
i2.graphicsTexture.pack().forEach((t3, n2) => {
|
|
33411
33460
|
e2.addSubMTask(() => i2.graphicsTexture.render(t3, n2, this.objPoolGroup), "@StagePool[graphicsTexture.render]");
|
|
@@ -33414,7 +33463,7 @@ void main(void){
|
|
|
33414
33463
|
}
|
|
33415
33464
|
renderStage(t2) {
|
|
33416
33465
|
const { task: e2 } = this.stageStates[t2];
|
|
33417
|
-
e2.addMTask(() =>
|
|
33466
|
+
e2.addMTask(() => Oy(this, void 0, void 0, function* () {
|
|
33418
33467
|
const i2 = this.stageImpls[t2];
|
|
33419
33468
|
yield i2.render(e2);
|
|
33420
33469
|
}), "@StagePool[renderStage]");
|
|
@@ -33438,7 +33487,7 @@ void main(void){
|
|
|
33438
33487
|
preload(t2, e2 = false) {
|
|
33439
33488
|
if (this.stageImpls[t2] || this.stageStates[t2])
|
|
33440
33489
|
return Promise.resolve();
|
|
33441
|
-
const i2 = new
|
|
33490
|
+
const i2 = new Cy(t2, this.taskId, this.logger);
|
|
33442
33491
|
return i2.on("task-error", (t3, e3) => {
|
|
33443
33492
|
delete this.stageStates[e3], delete this.stageImpls[e3], delete this.stageCtxs[e3], this.errorChannel.emit("error", t3, e3);
|
|
33444
33493
|
}), this.stageStates[t2] = { state: "load", task: i2 }, this.createCtx(t2), this.loadStageJson(t2), this.loadSpriteSheets(t2), this.createStage(t2), this.preRenderStage(t2), this.createGraphicsTexture(t2), this.renderStage(t2), this.microTaskManager.addTask(i2), e2 ? i2.applyAll() : new Promise((e3) => {
|
|
@@ -33452,7 +33501,7 @@ void main(void){
|
|
|
33452
33501
|
return this.stageJsons[t2] || null;
|
|
33453
33502
|
}
|
|
33454
33503
|
getStage(t2) {
|
|
33455
|
-
return
|
|
33504
|
+
return Oy(this, void 0, void 0, function* () {
|
|
33456
33505
|
this.currentStageIndex = t2;
|
|
33457
33506
|
const e2 = this.stageStates[t2];
|
|
33458
33507
|
return (e2 == null ? void 0 : e2.state) === "finish" && this.stageImpls[t2] ? this.stageImpls[t2] : (e2 == null ? void 0 : e2.state) === "load" ? (yield e2.task.applyAll(), this.stageImpls[t2]) : (yield this.preload(t2, true), this.stageImpls[t2]);
|
|
@@ -33462,7 +33511,7 @@ void main(void){
|
|
|
33462
33511
|
this.runningAudio.clear();
|
|
33463
33512
|
}
|
|
33464
33513
|
}
|
|
33465
|
-
var
|
|
33514
|
+
var Ly = function(t2, e2, i2, n2) {
|
|
33466
33515
|
return new (i2 || (i2 = Promise))(function(r2, o2) {
|
|
33467
33516
|
function s2(t3) {
|
|
33468
33517
|
try {
|
|
@@ -33487,10 +33536,10 @@ void main(void){
|
|
|
33487
33536
|
l2((n2 = n2.apply(t2, e2 || [])).next());
|
|
33488
33537
|
});
|
|
33489
33538
|
};
|
|
33490
|
-
class
|
|
33539
|
+
class Dy {
|
|
33491
33540
|
constructor(t2) {
|
|
33492
33541
|
var e2;
|
|
33493
|
-
this.logger = t2, this.taskId = "", this.isIndexDBReady = false, this.memoryCache = /* @__PURE__ */ new Map(), (e2 =
|
|
33542
|
+
this.logger = t2, this.taskId = "", this.isIndexDBReady = false, this.memoryCache = /* @__PURE__ */ new Map(), (e2 = Dy.localCache) === null || e2 === void 0 || e2.ready((t3) => {
|
|
33494
33543
|
t3 || (this.isIndexDBReady = true);
|
|
33495
33544
|
}).catch(() => {
|
|
33496
33545
|
t2.warn("local storage not ready", this.taskId);
|
|
@@ -33503,24 +33552,24 @@ void main(void){
|
|
|
33503
33552
|
this.taskId = t2;
|
|
33504
33553
|
}
|
|
33505
33554
|
getItem(t2) {
|
|
33506
|
-
return
|
|
33555
|
+
return Ly(this, void 0, void 0, function* () {
|
|
33507
33556
|
let e2 = null;
|
|
33508
|
-
if (this.couldUseIndexDBCache &&
|
|
33557
|
+
if (this.couldUseIndexDBCache && Dy.localCache)
|
|
33509
33558
|
try {
|
|
33510
|
-
e2 = yield Im(() =>
|
|
33559
|
+
e2 = yield Im(() => Dy.localCache.getItem(`${this.taskId}/${t2}`), 500);
|
|
33511
33560
|
} catch (t3) {
|
|
33512
33561
|
}
|
|
33513
33562
|
return e2 = e2 === Rm ? null : e2, e2 || this.memoryCache.get(t2) || null;
|
|
33514
33563
|
});
|
|
33515
33564
|
}
|
|
33516
33565
|
setItem(t2, e2, i2 = false) {
|
|
33517
|
-
return
|
|
33566
|
+
return Ly(this, void 0, void 0, function* () {
|
|
33518
33567
|
if (!this.couldUseIndexDBCache)
|
|
33519
33568
|
return i2 && this.memoryCache.set(t2, e2), Promise.resolve();
|
|
33520
|
-
if (
|
|
33569
|
+
if (Dy.localCache) {
|
|
33521
33570
|
let n2 = null;
|
|
33522
33571
|
try {
|
|
33523
|
-
n2 = yield Im(() =>
|
|
33572
|
+
n2 = yield Im(() => Dy.localCache.setItem(`${this.taskId}/${t2}`, e2).catch(() => {
|
|
33524
33573
|
i2 && this.memoryCache.set(t2, e2);
|
|
33525
33574
|
}), 500);
|
|
33526
33575
|
} catch (t3) {
|
|
@@ -33531,29 +33580,29 @@ void main(void){
|
|
|
33531
33580
|
}
|
|
33532
33581
|
dispose() {
|
|
33533
33582
|
var t2;
|
|
33534
|
-
this.memoryCache = /* @__PURE__ */ new Map(), this.couldUseIndexDBCache && ((t2 =
|
|
33583
|
+
this.memoryCache = /* @__PURE__ */ new Map(), this.couldUseIndexDBCache && ((t2 = Dy.localCache) === null || t2 === void 0 || t2.keys().then((t3) => {
|
|
33535
33584
|
t3.filter((t4) => t4.indexOf(this.taskId) >= 0).forEach((t4) => {
|
|
33536
33585
|
var e2;
|
|
33537
|
-
(e2 =
|
|
33586
|
+
(e2 = Dy.localCache) === null || e2 === void 0 || e2.removeItem(t4).catch(() => {
|
|
33538
33587
|
});
|
|
33539
33588
|
});
|
|
33540
33589
|
}).catch(() => {
|
|
33541
33590
|
}));
|
|
33542
33591
|
}
|
|
33543
33592
|
}
|
|
33544
|
-
|
|
33593
|
+
Dy.localCache = null;
|
|
33545
33594
|
try {
|
|
33546
|
-
|
|
33595
|
+
Dy.localCache = o.createInstance({ name: "slide_local_cache", driver: o.INDEXEDDB, version: 1 });
|
|
33547
33596
|
} catch (t2) {
|
|
33548
33597
|
}
|
|
33549
|
-
const
|
|
33550
|
-
class
|
|
33598
|
+
const Fy = new Lh.j();
|
|
33599
|
+
class By {
|
|
33551
33600
|
constructor(t2) {
|
|
33552
33601
|
this.localStorage = t2;
|
|
33553
33602
|
}
|
|
33554
33603
|
canvas(t2, e2, i2, n2) {
|
|
33555
33604
|
let r2, o2, s2, a2 = false, l2 = false;
|
|
33556
|
-
t2 && (t2 instanceof Vh.p ? s2 = t2 : (s2 = e2.generateTexture(t2), l2 = true)), s2 ? (r2 = s2.baseTexture.resolution, o2 = s2.frame, a2 = false, e2.renderTexture.bind(s2)) : (r2 = e2.resolution, a2 = true, o2 =
|
|
33605
|
+
t2 && (t2 instanceof Vh.p ? s2 = t2 : (s2 = e2.generateTexture(t2), l2 = true)), s2 ? (r2 = s2.baseTexture.resolution, o2 = s2.frame, a2 = false, e2.renderTexture.bind(s2)) : (r2 = e2.resolution, a2 = true, o2 = Fy, o2.width = e2.width, o2.height = e2.height, e2.renderTexture.bind(null));
|
|
33557
33606
|
const h2 = Math.floor(o2.width * r2 + 1e-4), u2 = Math.floor(o2.height * r2 + 1e-4);
|
|
33558
33607
|
let c2 = document.createElement("canvas");
|
|
33559
33608
|
c2.width = h2, c2.height = u2;
|
|
@@ -33564,7 +33613,7 @@ void main(void){
|
|
|
33564
33613
|
d2.putImageData(i2, 0, 0);
|
|
33565
33614
|
else {
|
|
33566
33615
|
const t3 = d2.getImageData(0, 0, h2, u2), i3 = new Uint8Array(4 * h2 * u2), { gl: s3 } = e2;
|
|
33567
|
-
s3.readPixels(o2.x * r2, o2.y * r2, h2, u2, s3.RGBA, s3.UNSIGNED_BYTE, i3),
|
|
33616
|
+
s3.readPixels(o2.x * r2, o2.y * r2, h2, u2, s3.RGBA, s3.UNSIGNED_BYTE, i3), By.arrayPostDivide(i3, t3.data), d2.putImageData(t3, 0, 0), n2 && this.localStorage.setItem(n2, t3).catch(() => {
|
|
33568
33617
|
});
|
|
33569
33618
|
}
|
|
33570
33619
|
if (a2) {
|
|
@@ -33582,7 +33631,7 @@ void main(void){
|
|
|
33582
33631
|
}
|
|
33583
33632
|
}
|
|
33584
33633
|
}
|
|
33585
|
-
class
|
|
33634
|
+
class Uy extends Za.a {
|
|
33586
33635
|
constructor() {
|
|
33587
33636
|
super(...arguments), this._volume = 0.5;
|
|
33588
33637
|
}
|
|
@@ -33593,7 +33642,7 @@ void main(void){
|
|
|
33593
33642
|
t2 < 0 && (t2 = 0), t2 > 1 && (t2 = 1), this._volume = t2, this.emit("update", this._volume);
|
|
33594
33643
|
}
|
|
33595
33644
|
}
|
|
33596
|
-
var
|
|
33645
|
+
var ky = function(t2, e2, i2, n2) {
|
|
33597
33646
|
return new (i2 || (i2 = Promise))(function(r2, o2) {
|
|
33598
33647
|
function s2(t3) {
|
|
33599
33648
|
try {
|
|
@@ -33619,8 +33668,8 @@ void main(void){
|
|
|
33619
33668
|
});
|
|
33620
33669
|
};
|
|
33621
33670
|
Ph.skipHello();
|
|
33622
|
-
const
|
|
33623
|
-
class
|
|
33671
|
+
const Gy = { randomBar: "RandomLines", circle: "Shape", ripple: "Ripples", wipe: "Erase", dissolve: "Dissolve", morph: "Smooth", fade: "FadeInOut", push: "Push", split: "Separation", reveal: "Display", pull: "Uncover", cover: "Cover", flash: "Flash", checker: "Checkerboard", blinds: "WindowShades", curtains: "Curtain", fallOver: "Fall", drape: "Suspension", wheel: "Clock", comb: "Combing", warp: "Scale", peelOff: "PeelOff", flip: "Flip", gallery: "Gallery", switch: "Switch", prism: "Prism", doors: "Doors" }, Hy = { mainSeqStepChange: "mainSeqStepChange", mainSeqStateChange: "mainSeqStateChange", interactiveSeqStateChange: "interactiveSeqStateChange", interactiveSeqAction: "interactiveSeqAction", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", slideChange: "slideChange", renderStart: "renderStart", renderEnd: "renderEnd", hyperlinkTrigger: "hyperlinkTrigger", animateStart: "animateStart", animateEnd: "animateEnd", mediaSeek: "mediaSeek", mediaPlay: "mediaPlay", mediaPause: "mediaPause", mediaStop: "mediaStop", requestNextSlide: "requestNextSlide", requestPrevSlide: "requestPrevSlide", requestGotoSlide: "requestGotoSlide", userInput: "userInput", fullscreenChange: "fullscreenChange", changeLocalFullscreenState: "changeLocalFullscreenState" };
|
|
33672
|
+
class jy extends Za.a {
|
|
33624
33673
|
constructor(t2, e2 = {}) {
|
|
33625
33674
|
super(), this.errorChannel = new Za.a(), this.transactionPlayer = null, this.isForward = true, this.drawCall = 0, this.scale = 1, this._isPaused = false, this.maxResolution = new Lh.g(0, 0), this.isNVIDIA = false, this.fps = new bm(), this.designWidth = 0, this.designHeight = 0, this.currentIndex = 0, this.slideCount = 0, this.runtime = { drawCall: 0, fps: 0 }, this.globalEventHub = new Za.a(), this.globalVideoBackground = new Jd(), this.globalVideoSprite = new ep(), this.onMousemoveTimeout = null, this.cacheFunctionMap = /* @__PURE__ */ new Map(), this.isPlayerPaused = () => this._isPaused, this.onWebGLLost = () => {
|
|
33626
33675
|
this.errorChannel.emit("error", new Tm(gm.CanvasCrash, "webgl context lost."));
|
|
@@ -33642,7 +33691,7 @@ void main(void){
|
|
|
33642
33691
|
this.globalVideoSprite.texture = e3, this.globalVideoSprite.width = s2, this.globalVideoSprite.height = a2, this.globalVideoSprite.position.x = r2, this.globalVideoSprite.position.y = o2, this.globalVideoBackground.addChild(this.globalVideoSprite), this.globalEventHub.emit("onFullscreenChange", { status: true, targetId: n3, slideIndex: this.currentIndex }), this.clearFullscreenEventListenersWithAppView();
|
|
33643
33692
|
const l2 = { handleEvent: () => {
|
|
33644
33693
|
var t4;
|
|
33645
|
-
(t4 = this.currentStage) === null || t4 === void 0 || t4.ctx.eventHub.emit(
|
|
33694
|
+
(t4 = this.currentStage) === null || t4 === void 0 || t4.ctx.eventHub.emit(Hy.userInput);
|
|
33646
33695
|
} };
|
|
33647
33696
|
if (this.app.view.addEventListener("pointerdown", l2, false), this.cacheFunctionMap.set("pointerdown", l2), n_.isDesktop()) {
|
|
33648
33697
|
const t4 = { handleEvent: () => {
|
|
@@ -33665,8 +33714,8 @@ void main(void){
|
|
|
33665
33714
|
}
|
|
33666
33715
|
}, this.onRequestCancelFullscreenVideo = (t3 = false) => {
|
|
33667
33716
|
var e3, i3;
|
|
33668
|
-
this.globalVideoSprite.texture.destroy(false), this.globalVideoBackground.removeChild(this.globalVideoSprite), this.app.stage.removeChild(this.globalVideoBackground), this.globalEventHub.emit("onFullscreenChange", { status: false, slideIndex: this.currentIndex, targetId: (e3 = this.currentStage) === null || e3 === void 0 ? void 0 : e3.ctx.latestChangeFullscreenTargetId }), this.clearFullscreenEventListenersWithAppView(), t3 && this.emit(
|
|
33669
|
-
}, this.logger = t2.logger, this.mode = t2.mode, this.volumeAdjuster = t2.volumeAdjuster, this.localStorage = new
|
|
33717
|
+
this.globalVideoSprite.texture.destroy(false), this.globalVideoBackground.removeChild(this.globalVideoSprite), this.app.stage.removeChild(this.globalVideoBackground), this.globalEventHub.emit("onFullscreenChange", { status: false, slideIndex: this.currentIndex, targetId: (e3 = this.currentStage) === null || e3 === void 0 ? void 0 : e3.ctx.latestChangeFullscreenTargetId }), this.clearFullscreenEventListenersWithAppView(), t3 && this.emit(Hy.changeLocalFullscreenState, { status: false, slideIndex: this.currentIndex, targetId: (i3 = this.currentStage) === null || i3 === void 0 ? void 0 : i3.ctx.latestChangeFullscreenTargetId });
|
|
33718
|
+
}, this.logger = t2.logger, this.mode = t2.mode, this.volumeAdjuster = t2.volumeAdjuster, this.localStorage = new Dy(this.logger), this.cachedExtract = new By(this.localStorage), this.config = { minFPS: $a()(e2.minFPS) ? 30 : e2.minFPS, maxFPS: $a()(e2.maxFPS) ? 40 : e2.maxFPS, resolution: $a()(e2.resolution) ? 1 : e2.resolution, autoFPS: !$a()(e2.autoFPS) && e2.autoFPS, autoResolution: !$a()(e2.autoResolution) && e2.autoResolution, transactionBgColor: $a()(e2.transactionBgColor) ? 0 : e2.transactionBgColor, maxResolutionLevel: this.getMaxResolution(e2.maxResolutionLevel), forceCanvas: !$a()(e2.forceCanvas) && e2.forceCanvas, enableNvidiaDetect: !$a()(e2.enableNvidiaDetect) && e2.enableNvidiaDetect }, this.updateMaxResolutionLevel(this.config.maxResolutionLevel), this.loader = new Lm(this.localStorage, t2.useLocalCache, this.logger, t2.resourceTimeout, t2.loadDelegate, t2.urlInterrupter);
|
|
33670
33719
|
const i2 = Ph.isWebGLSupported();
|
|
33671
33720
|
this.app = new Xh({ antialias: true, autoDensity: false, backgroundColor: 16777215, forceCanvas: this.config.forceCanvas || !i2 }), this.updateConfig(this.config), this.app.ticker.maxFPS = 60, this.app.ticker.minFPS = this.config.minFPS, this.app.ticker.maxFPS = this.config.maxFPS, this.app.view.style.zIndex = "1", this.app.stage.sortableChildren = true;
|
|
33672
33721
|
const n2 = this.app.renderer;
|
|
@@ -33688,7 +33737,7 @@ void main(void){
|
|
|
33688
33737
|
}
|
|
33689
33738
|
}), this.app.ticker.add(() => {
|
|
33690
33739
|
this.runtime.drawCall = this.drawCall, this.runtime.fps = Math.floor(this.app.ticker.minFPS), this.drawCall = 0;
|
|
33691
|
-
}, null, Dh.c.LOW), this.clock = new Fm(this.app.ticker), this.objPoolGroup = Mm(), this.stagePool = new
|
|
33740
|
+
}, null, Dh.c.LOW), this.clock = new Fm(this.app.ticker), this.objPoolGroup = Mm(), this.stagePool = new Ny(this.loader, this.mode, this.app.renderer, this.app.ticker, this.app.view, this.clock, this.objPoolGroup, this.errorChannel, this.localStorage, this.logger, t2.loadDelegate, t2.urlInterrupter, this.isPlayerPaused, this.maxResolution, this.volumeAdjuster, this.config.forceCanvas, this.globalEventHub), this.app.view.addEventListener("webglcontextlost", this.onWebGLLost);
|
|
33692
33741
|
try {
|
|
33693
33742
|
this.config.forceCanvas || (this.transactionPlayer = new Ih());
|
|
33694
33743
|
} catch (t3) {
|
|
@@ -33708,7 +33757,7 @@ void main(void){
|
|
|
33708
33757
|
return ((t2 = this.currentStage) === null || t2 === void 0 ? void 0 : t2.json.prevIndex) ? this.currentStage.json.prevIndex : this.currentIndex - 1;
|
|
33709
33758
|
}
|
|
33710
33759
|
getMaxResolution(t2) {
|
|
33711
|
-
return !$a()(t2) && Number.isInteger(t2) ? (t2 < 1 && (t2 = 1), t2 > 4 && (t2 = 4), t2) :
|
|
33760
|
+
return !$a()(t2) && Number.isInteger(t2) ? (t2 < 1 && (t2 = 1), t2 > 4 && (t2 = 4), t2) : jy.platform.isAndroid() || jy.platform.isIOS() ? 2 : 4;
|
|
33712
33761
|
}
|
|
33713
33762
|
updateMaxResolutionLevel(t2) {
|
|
33714
33763
|
t2 < 1 && (t2 = 1), t2 > 4 && (t2 = 4);
|
|
@@ -33719,7 +33768,7 @@ void main(void){
|
|
|
33719
33768
|
$a()(t2.maxFPS) || $a()(t2.minFPS) || (this.config.maxFPS = t2.maxFPS, this.app.ticker.maxFPS = t2.maxFPS, this.config.minFPS = t2.minFPS, this.app.ticker.minFPS = t2.minFPS), $a()(t2.resolution) || (this.config.resolution = t2.resolution, this.updateResolution(this.scale * this.config.resolution)), $a()(t2.autoFPS) || (this.config.autoFPS = t2.autoFPS), $a()(t2.autoResolution) || (this.config.autoResolution = t2.autoResolution), $a()(t2.transactionBgColor) || (this.config.transactionBgColor = t2.transactionBgColor), this.taskId && this.logger.info("ppt player update config: " + JSON.stringify(this.config), this.taskId), $a()(t2.maxResolutionLevel) || (this.config.maxResolutionLevel = t2.maxResolutionLevel, this.updateMaxResolutionLevel(this.config.maxResolutionLevel));
|
|
33720
33769
|
}
|
|
33721
33770
|
preload(t2) {
|
|
33722
|
-
return
|
|
33771
|
+
return ky(this, void 0, void 0, function* () {
|
|
33723
33772
|
t2 < 1 || t2 > this.slideCount || (this.logger.info(`preload slide ${t2} begin`, this.taskId), yield this.stagePool.preload(t2), this.logger.info(`preload slide ${t2} end`, this.taskId));
|
|
33724
33773
|
});
|
|
33725
33774
|
}
|
|
@@ -33738,14 +33787,14 @@ void main(void){
|
|
|
33738
33787
|
}
|
|
33739
33788
|
renderSlide(t2) {
|
|
33740
33789
|
var e2, i2, n2;
|
|
33741
|
-
return
|
|
33790
|
+
return ky(this, void 0, void 0, function* () {
|
|
33742
33791
|
if (this._isPaused)
|
|
33743
33792
|
return void this.logger.info("ppt play prevent render slide with paused state", this.taskId);
|
|
33744
|
-
this.logger.info("render slide " + t2, this.taskId), this.emit(
|
|
33793
|
+
this.logger.info("render slide " + t2, this.taskId), this.emit(Hy.renderStart, t2);
|
|
33745
33794
|
const r2 = yield this.stagePool.getStage(t2), o2 = `snapshot-${t2}-${this.isForward ? "start" : "end"}`, s2 = yield this.localStorage.getItem(o2);
|
|
33746
33795
|
if (!r2)
|
|
33747
33796
|
return;
|
|
33748
|
-
r2.ctx.isRendering = true, this.translateEvent(r2.ctx.eventHub, [
|
|
33797
|
+
r2.ctx.isRendering = true, this.translateEvent(r2.ctx.eventHub, [Hy.mainSeqStepChange, Hy.mainSeqStateChange, Hy.hyperlinkTrigger, Hy.interactiveSeqAction, Hy.mainSeqStepStart, Hy.mainSeqStepEnd, Hy.animateStart, Hy.animateEnd, Hy.mediaPlay, Hy.mediaPause, Hy.mediaSeek, Hy.mediaStop, Hy.requestGotoSlide, Hy.requestNextSlide, Hy.requestPrevSlide, Hy.interactiveSeqStateChange, Hy.userInput, Hy.fullscreenChange, Hy.changeLocalFullscreenState]), this.currentIndex = Number(t2);
|
|
33749
33798
|
const { width: a2, height: l2, slideCount: h2 } = r2.json;
|
|
33750
33799
|
this.slideCount = h2, this.designWidth = a2, this.designHeight = l2, (e2 = this.currentStage) === null || e2 === void 0 || e2.clearOnSlideChange();
|
|
33751
33800
|
const u2 = this.currentStage;
|
|
@@ -33768,7 +33817,7 @@ void main(void){
|
|
|
33768
33817
|
}
|
|
33769
33818
|
(n2 = this.transactionPlayer) === null || n2 === void 0 || n2.dispose();
|
|
33770
33819
|
}
|
|
33771
|
-
this.isForward ? yield r2.startTiming() : r2.setMainSeqApplied(), r2.ctx.slideScopeEventHub.emit("slide-render", r2.ctx.slideIndex), this.emit(
|
|
33820
|
+
this.isForward ? yield r2.startTiming() : r2.setMainSeqApplied(), r2.ctx.slideScopeEventHub.emit("slide-render", r2.ctx.slideIndex), this.emit(Hy.renderEnd, t2), this.emit(Hy.slideChange, t2), r2.ctx.isRendering = false, this.preload(t2 + 1).catch((e3) => {
|
|
33772
33821
|
this.errorChannel.emit("error", Tm.transform(e3), t2 + 1);
|
|
33773
33822
|
}), this.preload(t2 - 1).catch((e3) => {
|
|
33774
33823
|
this.errorChannel.emit("error", Tm.transform(e3), t2 - 1);
|
|
@@ -33782,7 +33831,7 @@ void main(void){
|
|
|
33782
33831
|
return new b(o2);
|
|
33783
33832
|
}
|
|
33784
33833
|
renderToBase64(t2, e2, i2) {
|
|
33785
|
-
return
|
|
33834
|
+
return ky(this, void 0, void 0, function* () {
|
|
33786
33835
|
const n2 = yield this.stagePool.getStage(t2);
|
|
33787
33836
|
if (n2) {
|
|
33788
33837
|
const { width: r2, height: o2 } = n2.json;
|
|
@@ -33796,7 +33845,7 @@ void main(void){
|
|
|
33796
33845
|
});
|
|
33797
33846
|
}
|
|
33798
33847
|
renderMainSeqToBase64(t2, e2, i2) {
|
|
33799
|
-
return
|
|
33848
|
+
return ky(this, void 0, void 0, function* () {
|
|
33800
33849
|
const n2 = [], r2 = yield this.stagePool.getStage(t2);
|
|
33801
33850
|
if (r2.createTiming(), r2) {
|
|
33802
33851
|
const { width: t3, height: o2 } = r2.json;
|
|
@@ -33817,7 +33866,7 @@ void main(void){
|
|
|
33817
33866
|
});
|
|
33818
33867
|
}
|
|
33819
33868
|
snapshotWithTimingEnd(t2) {
|
|
33820
|
-
return
|
|
33869
|
+
return ky(this, void 0, void 0, function* () {
|
|
33821
33870
|
const e2 = yield this.stagePool.getStage(t2);
|
|
33822
33871
|
if (e2) {
|
|
33823
33872
|
const { width: i2, height: n2 } = e2.json;
|
|
@@ -33841,9 +33890,9 @@ void main(void){
|
|
|
33841
33890
|
initTransactionPlayer(t2) {
|
|
33842
33891
|
var e2, i2, n2, r2, o2;
|
|
33843
33892
|
const s2 = (e2 = this.view) === null || e2 === void 0 ? void 0 : e2.parentElement;
|
|
33844
|
-
if (this.view && s2 &&
|
|
33893
|
+
if (this.view && s2 && Gy[t2.type] && this.transactionPlayer) {
|
|
33845
33894
|
const e3 = (i2 = this.transactionPlayer) === null || i2 === void 0 ? void 0 : i2.renderer.domElement;
|
|
33846
|
-
this.transactionPlayer.initPlayer({ reverse: !this.isForward, stageWidth: this.view.width, stageHeight: this.view.height, presetType:
|
|
33895
|
+
this.transactionPlayer.initPlayer({ reverse: !this.isForward, stageWidth: this.view.width, stageHeight: this.view.height, presetType: Gy[t2.type], duration: (r2 = (n2 = this.currentStage) === null || n2 === void 0 ? void 0 : n2.json.transition) === null || r2 === void 0 ? void 0 : r2.dur, delay: 0, clearColor: this.config.transactionBgColor, maxFPS: Math.ceil((o2 = this.config.maxFPS) !== null && o2 !== void 0 ? o2 : 60), options: t2.options }), e3 && (e3.style.position = "absolute", e3.style.zIndex = "9", e3.style.left = "0", e3.style.top = "0", e3.style.width = this.view.style.width, e3.style.height = this.view.style.height), s2.appendChild(e3);
|
|
33847
33896
|
}
|
|
33848
33897
|
}
|
|
33849
33898
|
scaleView(t2, e2, i2) {
|
|
@@ -33933,7 +33982,7 @@ void main(void){
|
|
|
33933
33982
|
}
|
|
33934
33983
|
setMediaState(t2, e2, i2) {
|
|
33935
33984
|
var n2;
|
|
33936
|
-
return
|
|
33985
|
+
return ky(this, void 0, void 0, function* () {
|
|
33937
33986
|
yield (n2 = this.currentStage) === null || n2 === void 0 ? void 0 : n2.setMediaState(t2, e2, i2);
|
|
33938
33987
|
});
|
|
33939
33988
|
}
|
|
@@ -33961,7 +34010,7 @@ void main(void){
|
|
|
33961
34010
|
}
|
|
33962
34011
|
static clearLocalCache() {
|
|
33963
34012
|
var t2;
|
|
33964
|
-
(t2 =
|
|
34013
|
+
(t2 = Dy.localCache) === null || t2 === void 0 || t2.clear().catch(() => {
|
|
33965
34014
|
});
|
|
33966
34015
|
}
|
|
33967
34016
|
clearFullscreenEventListenersWithAppView() {
|
|
@@ -33985,24 +34034,24 @@ void main(void){
|
|
|
33985
34034
|
this.app.renderer.gl.getExtension("WEBGL_lose_context").loseContext();
|
|
33986
34035
|
} catch (t3) {
|
|
33987
34036
|
}
|
|
33988
|
-
this.app.destroy(true, { children: true, texture: true, baseTexture: true }), (e2 =
|
|
34037
|
+
this.app.destroy(true, { children: true, texture: true, baseTexture: true }), (e2 = Py.worker) === null || e2 === void 0 || e2.terminate();
|
|
33989
34038
|
} catch (t3) {
|
|
33990
34039
|
}
|
|
33991
34040
|
}
|
|
33992
34041
|
}
|
|
33993
|
-
|
|
33994
|
-
var
|
|
33995
|
-
var
|
|
34042
|
+
jy.platform = n_, jy.RtcAudioClazz = null;
|
|
34043
|
+
var zy = /* @__PURE__ */ new Map();
|
|
34044
|
+
var Vy, Xy = i(136), Wy = i.n(Xy), Yy = i(49), qy = i.n(Yy), Zy = i(50), Jy = i.n(Zy), Ky = [], Qy = "ResizeObserver loop completed with undelivered notifications.";
|
|
33996
34045
|
!function(t2) {
|
|
33997
34046
|
t2.BORDER_BOX = "border-box", t2.CONTENT_BOX = "content-box", t2.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
33998
|
-
}(
|
|
33999
|
-
var
|
|
34047
|
+
}(Vy || (Vy = {}));
|
|
34048
|
+
var $y, tx = function(t2) {
|
|
34000
34049
|
return Object.freeze(t2);
|
|
34001
|
-
},
|
|
34002
|
-
this.inlineSize = t2, this.blockSize = e2,
|
|
34003
|
-
},
|
|
34050
|
+
}, ex = function(t2, e2) {
|
|
34051
|
+
this.inlineSize = t2, this.blockSize = e2, tx(this);
|
|
34052
|
+
}, ix = function() {
|
|
34004
34053
|
function t2(t3, e2, i2, n2) {
|
|
34005
|
-
return this.x = t3, this.y = e2, this.width = i2, this.height = n2, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width,
|
|
34054
|
+
return this.x = t3, this.y = e2, this.width = i2, this.height = n2, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, tx(this);
|
|
34006
34055
|
}
|
|
34007
34056
|
return t2.prototype.toJSON = function() {
|
|
34008
34057
|
var t3 = this;
|
|
@@ -34010,59 +34059,59 @@ void main(void){
|
|
|
34010
34059
|
}, t2.fromRect = function(e2) {
|
|
34011
34060
|
return new t2(e2.x, e2.y, e2.width, e2.height);
|
|
34012
34061
|
}, t2;
|
|
34013
|
-
}(),
|
|
34062
|
+
}(), nx = function(t2) {
|
|
34014
34063
|
return t2 instanceof SVGElement && "getBBox" in t2;
|
|
34015
|
-
},
|
|
34016
|
-
if (
|
|
34064
|
+
}, rx = function(t2) {
|
|
34065
|
+
if (nx(t2)) {
|
|
34017
34066
|
var e2 = t2.getBBox(), i2 = e2.width, n2 = e2.height;
|
|
34018
34067
|
return !i2 && !n2;
|
|
34019
34068
|
}
|
|
34020
34069
|
var r2 = t2, o2 = r2.offsetWidth, s2 = r2.offsetHeight;
|
|
34021
34070
|
return !(o2 || s2 || t2.getClientRects().length);
|
|
34022
|
-
},
|
|
34071
|
+
}, ox = function(t2) {
|
|
34023
34072
|
var e2;
|
|
34024
34073
|
if (t2 instanceof Element)
|
|
34025
34074
|
return true;
|
|
34026
34075
|
var i2 = (e2 = t2 == null ? void 0 : t2.ownerDocument) === null || e2 === void 0 ? void 0 : e2.defaultView;
|
|
34027
34076
|
return !!(i2 && t2 instanceof i2.Element);
|
|
34028
|
-
},
|
|
34077
|
+
}, sx = typeof window != "undefined" ? window : {}, ax = /* @__PURE__ */ new WeakMap(), lx = /auto|scroll/, hx = /^tb|vertical/, ux = /msie|trident/i.test(sx.navigator && sx.navigator.userAgent), cx = function(t2) {
|
|
34029
34078
|
return parseFloat(t2 || "0");
|
|
34030
|
-
},
|
|
34031
|
-
return t2 === void 0 && (t2 = 0), e2 === void 0 && (e2 = 0), i2 === void 0 && (i2 = false), new
|
|
34032
|
-
},
|
|
34033
|
-
if (e2 === void 0 && (e2 = false),
|
|
34034
|
-
return
|
|
34035
|
-
if (
|
|
34036
|
-
return
|
|
34037
|
-
var i2 = getComputedStyle(t2), n2 =
|
|
34038
|
-
return
|
|
34039
|
-
},
|
|
34040
|
-
var n2 =
|
|
34079
|
+
}, dx = function(t2, e2, i2) {
|
|
34080
|
+
return t2 === void 0 && (t2 = 0), e2 === void 0 && (e2 = 0), i2 === void 0 && (i2 = false), new ex((i2 ? e2 : t2) || 0, (i2 ? t2 : e2) || 0);
|
|
34081
|
+
}, px = tx({ devicePixelContentBoxSize: dx(), borderBoxSize: dx(), contentBoxSize: dx(), contentRect: new ix(0, 0, 0, 0) }), fx = function(t2, e2) {
|
|
34082
|
+
if (e2 === void 0 && (e2 = false), ax.has(t2) && !e2)
|
|
34083
|
+
return ax.get(t2);
|
|
34084
|
+
if (rx(t2))
|
|
34085
|
+
return ax.set(t2, px), px;
|
|
34086
|
+
var i2 = getComputedStyle(t2), n2 = nx(t2) && t2.ownerSVGElement && t2.getBBox(), r2 = !ux && i2.boxSizing === "border-box", o2 = hx.test(i2.writingMode || ""), s2 = !n2 && lx.test(i2.overflowY || ""), a2 = !n2 && lx.test(i2.overflowX || ""), l2 = n2 ? 0 : cx(i2.paddingTop), h2 = n2 ? 0 : cx(i2.paddingRight), u2 = n2 ? 0 : cx(i2.paddingBottom), c2 = n2 ? 0 : cx(i2.paddingLeft), d2 = n2 ? 0 : cx(i2.borderTopWidth), p2 = n2 ? 0 : cx(i2.borderRightWidth), f2 = n2 ? 0 : cx(i2.borderBottomWidth), m2 = c2 + h2, g2 = l2 + u2, v2 = (n2 ? 0 : cx(i2.borderLeftWidth)) + p2, _2 = d2 + f2, y2 = a2 ? t2.offsetHeight - _2 - t2.clientHeight : 0, x2 = s2 ? t2.offsetWidth - v2 - t2.clientWidth : 0, b2 = r2 ? m2 + v2 : 0, T2 = r2 ? g2 + _2 : 0, E2 = n2 ? n2.width : cx(i2.width) - b2 - x2, S2 = n2 ? n2.height : cx(i2.height) - T2 - y2, w2 = E2 + m2 + x2 + v2, A2 = S2 + g2 + y2 + _2, M2 = tx({ devicePixelContentBoxSize: dx(Math.round(E2 * devicePixelRatio), Math.round(S2 * devicePixelRatio), o2), borderBoxSize: dx(w2, A2, o2), contentBoxSize: dx(E2, S2, o2), contentRect: new ix(c2, l2, E2, S2) });
|
|
34087
|
+
return ax.set(t2, M2), M2;
|
|
34088
|
+
}, mx = function(t2, e2, i2) {
|
|
34089
|
+
var n2 = fx(t2, i2), r2 = n2.borderBoxSize, o2 = n2.contentBoxSize, s2 = n2.devicePixelContentBoxSize;
|
|
34041
34090
|
switch (e2) {
|
|
34042
|
-
case
|
|
34091
|
+
case Vy.DEVICE_PIXEL_CONTENT_BOX:
|
|
34043
34092
|
return s2;
|
|
34044
|
-
case
|
|
34093
|
+
case Vy.BORDER_BOX:
|
|
34045
34094
|
return r2;
|
|
34046
34095
|
default:
|
|
34047
34096
|
return o2;
|
|
34048
34097
|
}
|
|
34049
|
-
}, mx = function(t2) {
|
|
34050
|
-
var e2 = px(t2);
|
|
34051
|
-
this.target = t2, this.contentRect = e2.contentRect, this.borderBoxSize = $y([e2.borderBoxSize]), this.contentBoxSize = $y([e2.contentBoxSize]), this.devicePixelContentBoxSize = $y([e2.devicePixelContentBoxSize]);
|
|
34052
34098
|
}, gx = function(t2) {
|
|
34053
|
-
|
|
34099
|
+
var e2 = fx(t2);
|
|
34100
|
+
this.target = t2, this.contentRect = e2.contentRect, this.borderBoxSize = tx([e2.borderBoxSize]), this.contentBoxSize = tx([e2.contentBoxSize]), this.devicePixelContentBoxSize = tx([e2.devicePixelContentBoxSize]);
|
|
34101
|
+
}, vx = function(t2) {
|
|
34102
|
+
if (rx(t2))
|
|
34054
34103
|
return 1 / 0;
|
|
34055
34104
|
for (var e2 = 0, i2 = t2.parentNode; i2; )
|
|
34056
34105
|
e2 += 1, i2 = i2.parentNode;
|
|
34057
34106
|
return e2;
|
|
34058
|
-
},
|
|
34107
|
+
}, _x = function() {
|
|
34059
34108
|
var t2 = 1 / 0, e2 = [];
|
|
34060
|
-
|
|
34109
|
+
Ky.forEach(function(i3) {
|
|
34061
34110
|
if (i3.activeTargets.length !== 0) {
|
|
34062
34111
|
var n3 = [];
|
|
34063
34112
|
i3.activeTargets.forEach(function(e3) {
|
|
34064
|
-
var i4 = new
|
|
34065
|
-
n3.push(i4), e3.lastReportedSize =
|
|
34113
|
+
var i4 = new gx(e3.target), r2 = vx(e3.target);
|
|
34114
|
+
n3.push(i4), e3.lastReportedSize = mx(e3.target, e3.observedBox), r2 < t2 && (t2 = r2);
|
|
34066
34115
|
}), e2.push(function() {
|
|
34067
34116
|
i3.callback.call(i3.observer, n3, i3.observer);
|
|
34068
34117
|
}), i3.activeTargets.splice(0, i3.activeTargets.length);
|
|
@@ -34072,36 +34121,36 @@ void main(void){
|
|
|
34072
34121
|
(0, n2[i2])();
|
|
34073
34122
|
}
|
|
34074
34123
|
return t2;
|
|
34075
|
-
},
|
|
34076
|
-
|
|
34124
|
+
}, yx = function(t2) {
|
|
34125
|
+
Ky.forEach(function(e2) {
|
|
34077
34126
|
e2.activeTargets.splice(0, e2.activeTargets.length), e2.skippedTargets.splice(0, e2.skippedTargets.length), e2.observationTargets.forEach(function(i2) {
|
|
34078
|
-
i2.isActive() && (
|
|
34127
|
+
i2.isActive() && (vx(i2.target) > t2 ? e2.activeTargets.push(i2) : e2.skippedTargets.push(i2));
|
|
34079
34128
|
});
|
|
34080
34129
|
});
|
|
34081
|
-
},
|
|
34130
|
+
}, xx = function() {
|
|
34082
34131
|
var t2, e2 = 0;
|
|
34083
|
-
for (
|
|
34132
|
+
for (yx(e2); Ky.some(function(t3) {
|
|
34084
34133
|
return t3.activeTargets.length > 0;
|
|
34085
34134
|
}); )
|
|
34086
|
-
e2 =
|
|
34087
|
-
return
|
|
34135
|
+
e2 = _x(), yx(e2);
|
|
34136
|
+
return Ky.some(function(t3) {
|
|
34088
34137
|
return t3.skippedTargets.length > 0;
|
|
34089
|
-
}) && (typeof ErrorEvent == "function" ? t2 = new ErrorEvent("error", { message:
|
|
34090
|
-
},
|
|
34091
|
-
if (
|
|
34138
|
+
}) && (typeof ErrorEvent == "function" ? t2 = new ErrorEvent("error", { message: Qy }) : ((t2 = document.createEvent("Event")).initEvent("error", false, false), t2.message = Qy), window.dispatchEvent(t2)), e2 > 0;
|
|
34139
|
+
}, bx = [], Tx = function(t2) {
|
|
34140
|
+
if (!$y) {
|
|
34092
34141
|
var e2 = 0, i2 = document.createTextNode("");
|
|
34093
34142
|
new MutationObserver(function() {
|
|
34094
|
-
return
|
|
34143
|
+
return bx.splice(0).forEach(function(t3) {
|
|
34095
34144
|
return t3();
|
|
34096
34145
|
});
|
|
34097
|
-
}).observe(i2, { characterData: true }),
|
|
34146
|
+
}).observe(i2, { characterData: true }), $y = function() {
|
|
34098
34147
|
i2.textContent = "".concat(e2 ? e2-- : e2++);
|
|
34099
34148
|
};
|
|
34100
34149
|
}
|
|
34101
|
-
|
|
34102
|
-
},
|
|
34150
|
+
bx.push(t2), $y();
|
|
34151
|
+
}, Ex = 0, Sx = { attributes: true, characterData: true, childList: true, subtree: true }, wx = ["resize", "load", "transitionend", "animationend", "animationstart", "animationiteration", "keyup", "keydown", "mouseup", "mousedown", "mouseover", "mouseout", "blur", "focus"], Ax = function(t2) {
|
|
34103
34152
|
return t2 === void 0 && (t2 = 0), Date.now() + t2;
|
|
34104
|
-
},
|
|
34153
|
+
}, Mx = false, Rx = new (function() {
|
|
34105
34154
|
function t2() {
|
|
34106
34155
|
var t3 = this;
|
|
34107
34156
|
this.stopped = true, this.listener = function() {
|
|
@@ -34110,19 +34159,19 @@ void main(void){
|
|
|
34110
34159
|
}
|
|
34111
34160
|
return t2.prototype.run = function(t3) {
|
|
34112
34161
|
var e2 = this;
|
|
34113
|
-
if (t3 === void 0 && (t3 = 250), !
|
|
34114
|
-
|
|
34115
|
-
var i2, n2 =
|
|
34162
|
+
if (t3 === void 0 && (t3 = 250), !Mx) {
|
|
34163
|
+
Mx = true;
|
|
34164
|
+
var i2, n2 = Ax(t3);
|
|
34116
34165
|
i2 = function() {
|
|
34117
34166
|
var i3 = false;
|
|
34118
34167
|
try {
|
|
34119
|
-
i3 =
|
|
34168
|
+
i3 = xx();
|
|
34120
34169
|
} finally {
|
|
34121
|
-
if (
|
|
34170
|
+
if (Mx = false, t3 = n2 - Ax(), !Ex)
|
|
34122
34171
|
return;
|
|
34123
34172
|
i3 ? e2.run(1e3) : t3 > 0 ? e2.run(t3) : e2.start();
|
|
34124
34173
|
}
|
|
34125
|
-
},
|
|
34174
|
+
}, Tx(function() {
|
|
34126
34175
|
requestAnimationFrame(i2);
|
|
34127
34176
|
});
|
|
34128
34177
|
}
|
|
@@ -34130,29 +34179,29 @@ void main(void){
|
|
|
34130
34179
|
this.stop(), this.run();
|
|
34131
34180
|
}, t2.prototype.observe = function() {
|
|
34132
34181
|
var t3 = this, e2 = function() {
|
|
34133
|
-
return t3.observer && t3.observer.observe(document.body,
|
|
34182
|
+
return t3.observer && t3.observer.observe(document.body, Sx);
|
|
34134
34183
|
};
|
|
34135
|
-
document.body ? e2() :
|
|
34184
|
+
document.body ? e2() : sx.addEventListener("DOMContentLoaded", e2);
|
|
34136
34185
|
}, t2.prototype.start = function() {
|
|
34137
34186
|
var t3 = this;
|
|
34138
|
-
this.stopped && (this.stopped = false, this.observer = new MutationObserver(this.listener), this.observe(),
|
|
34139
|
-
return
|
|
34187
|
+
this.stopped && (this.stopped = false, this.observer = new MutationObserver(this.listener), this.observe(), wx.forEach(function(e2) {
|
|
34188
|
+
return sx.addEventListener(e2, t3.listener, true);
|
|
34140
34189
|
}));
|
|
34141
34190
|
}, t2.prototype.stop = function() {
|
|
34142
34191
|
var t3 = this;
|
|
34143
|
-
this.stopped || (this.observer && this.observer.disconnect(),
|
|
34144
|
-
return
|
|
34192
|
+
this.stopped || (this.observer && this.observer.disconnect(), wx.forEach(function(e2) {
|
|
34193
|
+
return sx.removeEventListener(e2, t3.listener, true);
|
|
34145
34194
|
}), this.stopped = true);
|
|
34146
34195
|
}, t2;
|
|
34147
|
-
}())(),
|
|
34148
|
-
!
|
|
34149
|
-
},
|
|
34196
|
+
}())(), Cx = function(t2) {
|
|
34197
|
+
!Ex && t2 > 0 && Rx.start(), !(Ex += t2) && Rx.stop();
|
|
34198
|
+
}, Ix = function() {
|
|
34150
34199
|
function t2(t3, e2) {
|
|
34151
|
-
this.target = t3, this.observedBox = e2 ||
|
|
34200
|
+
this.target = t3, this.observedBox = e2 || Vy.CONTENT_BOX, this.lastReportedSize = { inlineSize: 0, blockSize: 0 };
|
|
34152
34201
|
}
|
|
34153
34202
|
return t2.prototype.isActive = function() {
|
|
34154
|
-
var t3, e2 =
|
|
34155
|
-
return t3 = this.target,
|
|
34203
|
+
var t3, e2 = mx(this.target, this.observedBox, true);
|
|
34204
|
+
return t3 = this.target, nx(t3) || function(t4) {
|
|
34156
34205
|
switch (t4.tagName) {
|
|
34157
34206
|
case "INPUT":
|
|
34158
34207
|
if (t4.type !== "image")
|
|
@@ -34169,57 +34218,57 @@ void main(void){
|
|
|
34169
34218
|
return false;
|
|
34170
34219
|
}(t3) || getComputedStyle(t3).display !== "inline" || (this.lastReportedSize = e2), this.lastReportedSize.inlineSize !== e2.inlineSize || this.lastReportedSize.blockSize !== e2.blockSize;
|
|
34171
34220
|
}, t2;
|
|
34172
|
-
}(),
|
|
34221
|
+
}(), Px = function(t2, e2) {
|
|
34173
34222
|
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = t2, this.callback = e2;
|
|
34174
|
-
},
|
|
34223
|
+
}, Ox = /* @__PURE__ */ new WeakMap(), Nx = function(t2, e2) {
|
|
34175
34224
|
for (var i2 = 0; i2 < t2.length; i2 += 1)
|
|
34176
34225
|
if (t2[i2].target === e2)
|
|
34177
34226
|
return i2;
|
|
34178
34227
|
return -1;
|
|
34179
|
-
},
|
|
34228
|
+
}, Lx = function() {
|
|
34180
34229
|
function t2() {
|
|
34181
34230
|
}
|
|
34182
34231
|
return t2.connect = function(t3, e2) {
|
|
34183
|
-
var i2 = new
|
|
34184
|
-
|
|
34232
|
+
var i2 = new Px(t3, e2);
|
|
34233
|
+
Ox.set(t3, i2);
|
|
34185
34234
|
}, t2.observe = function(t3, e2, i2) {
|
|
34186
|
-
var n2 =
|
|
34187
|
-
|
|
34235
|
+
var n2 = Ox.get(t3), r2 = n2.observationTargets.length === 0;
|
|
34236
|
+
Nx(n2.observationTargets, e2) < 0 && (r2 && Ky.push(n2), n2.observationTargets.push(new Ix(e2, i2 && i2.box)), Cx(1), Rx.schedule());
|
|
34188
34237
|
}, t2.unobserve = function(t3, e2) {
|
|
34189
|
-
var i2 =
|
|
34190
|
-
n2 >= 0 && (r2 &&
|
|
34238
|
+
var i2 = Ox.get(t3), n2 = Nx(i2.observationTargets, e2), r2 = i2.observationTargets.length === 1;
|
|
34239
|
+
n2 >= 0 && (r2 && Ky.splice(Ky.indexOf(i2), 1), i2.observationTargets.splice(n2, 1), Cx(-1));
|
|
34191
34240
|
}, t2.disconnect = function(t3) {
|
|
34192
|
-
var e2 = this, i2 =
|
|
34241
|
+
var e2 = this, i2 = Ox.get(t3);
|
|
34193
34242
|
i2.observationTargets.slice().forEach(function(i3) {
|
|
34194
34243
|
return e2.unobserve(t3, i3.target);
|
|
34195
34244
|
}), i2.activeTargets.splice(0, i2.activeTargets.length);
|
|
34196
34245
|
}, t2;
|
|
34197
|
-
}(),
|
|
34246
|
+
}(), Dx = function() {
|
|
34198
34247
|
function t2(t3) {
|
|
34199
34248
|
if (arguments.length === 0)
|
|
34200
34249
|
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
34201
34250
|
if (typeof t3 != "function")
|
|
34202
34251
|
throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
34203
|
-
|
|
34252
|
+
Lx.connect(this, t3);
|
|
34204
34253
|
}
|
|
34205
34254
|
return t2.prototype.observe = function(t3, e2) {
|
|
34206
34255
|
if (arguments.length === 0)
|
|
34207
34256
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
34208
|
-
if (!
|
|
34257
|
+
if (!ox(t3))
|
|
34209
34258
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
34210
|
-
|
|
34259
|
+
Lx.observe(this, t3, e2);
|
|
34211
34260
|
}, t2.prototype.unobserve = function(t3) {
|
|
34212
34261
|
if (arguments.length === 0)
|
|
34213
34262
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
34214
|
-
if (!
|
|
34263
|
+
if (!ox(t3))
|
|
34215
34264
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
34216
|
-
|
|
34265
|
+
Lx.unobserve(this, t3);
|
|
34217
34266
|
}, t2.prototype.disconnect = function() {
|
|
34218
|
-
|
|
34267
|
+
Lx.disconnect(this);
|
|
34219
34268
|
}, t2.toString = function() {
|
|
34220
34269
|
return "function ResizeObserver () { [polyfill code] }";
|
|
34221
34270
|
}, t2;
|
|
34222
|
-
}(),
|
|
34271
|
+
}(), Fx = function(t2, e2, i2, n2) {
|
|
34223
34272
|
return new (i2 || (i2 = Promise))(function(r2, o2) {
|
|
34224
34273
|
function s2(t3) {
|
|
34225
34274
|
try {
|
|
@@ -34243,7 +34292,7 @@ void main(void){
|
|
|
34243
34292
|
}
|
|
34244
34293
|
l2((n2 = n2.apply(t2, e2 || [])).next());
|
|
34245
34294
|
});
|
|
34246
|
-
},
|
|
34295
|
+
}, Bx = function(t2, e2) {
|
|
34247
34296
|
var i2, n2, r2, o2, s2 = { label: 0, sent: function() {
|
|
34248
34297
|
if (1 & r2[0])
|
|
34249
34298
|
throw r2[1];
|
|
@@ -34306,14 +34355,14 @@ void main(void){
|
|
|
34306
34355
|
}([o3, a3]);
|
|
34307
34356
|
};
|
|
34308
34357
|
}
|
|
34309
|
-
},
|
|
34358
|
+
}, Ux = function() {
|
|
34310
34359
|
function t2(t3, e2, i2, n2, r2) {
|
|
34311
34360
|
this.state = "idle", this.index = -1, this.slideIndex = -1, this.fn = i2, this.index = t3, this.slideIndex = e2, this.eventHub = n2, this.id = r2;
|
|
34312
34361
|
}
|
|
34313
34362
|
return t2.prototype.apply = function() {
|
|
34314
|
-
return
|
|
34363
|
+
return Fx(this, void 0, void 0, function() {
|
|
34315
34364
|
var t3;
|
|
34316
|
-
return
|
|
34365
|
+
return Bx(this, function(e2) {
|
|
34317
34366
|
switch (e2.label) {
|
|
34318
34367
|
case 0:
|
|
34319
34368
|
this.eventHub.emit("task-start", this), e2.label = 1;
|
|
@@ -34329,7 +34378,7 @@ void main(void){
|
|
|
34329
34378
|
});
|
|
34330
34379
|
});
|
|
34331
34380
|
}, t2;
|
|
34332
|
-
}(),
|
|
34381
|
+
}(), kx = function() {
|
|
34333
34382
|
function t2() {
|
|
34334
34383
|
var t3 = this;
|
|
34335
34384
|
this.eventHub = new Za.a(), this.tasks = [], this.index = 0, this.eventHub.on("task-end", function(e2) {
|
|
@@ -34351,7 +34400,7 @@ void main(void){
|
|
|
34351
34400
|
e2.tasks.splice(t4, 1);
|
|
34352
34401
|
});
|
|
34353
34402
|
}, t2.prototype.addTask = function(t3, e2, i2) {
|
|
34354
|
-
var n2 = new
|
|
34403
|
+
var n2 = new Ux(this.index++, e2, t3, this.eventHub, i2);
|
|
34355
34404
|
this.tasks.push(n2), this.tasks.sort(function(t4, e3) {
|
|
34356
34405
|
return t4.index - e3.index;
|
|
34357
34406
|
}), this.replaceIdleTask(), this.tasks.length === 1 && n2.apply();
|
|
@@ -34363,7 +34412,7 @@ void main(void){
|
|
|
34363
34412
|
this.eventHub.removeAllListeners();
|
|
34364
34413
|
}, t2;
|
|
34365
34414
|
}();
|
|
34366
|
-
function
|
|
34415
|
+
function Gx(t2, e2) {
|
|
34367
34416
|
var i2 = t2.__state.conversionName.toString(), n2 = Math.round(t2.r), r2 = Math.round(t2.g), o2 = Math.round(t2.b), s2 = t2.a, a2 = Math.round(t2.h), l2 = t2.s.toFixed(1), h2 = t2.v.toFixed(1);
|
|
34368
34417
|
if (e2 || i2 === "THREE_CHAR_HEX" || i2 === "SIX_CHAR_HEX") {
|
|
34369
34418
|
for (var u2 = t2.hex.toString(16); u2.length < 6; )
|
|
@@ -34372,28 +34421,28 @@ void main(void){
|
|
|
34372
34421
|
}
|
|
34373
34422
|
return i2 === "CSS_RGB" ? "rgb(" + n2 + "," + r2 + "," + o2 + ")" : i2 === "CSS_RGBA" ? "rgba(" + n2 + "," + r2 + "," + o2 + "," + s2 + ")" : i2 === "HEX" ? "0x" + t2.hex.toString(16) : i2 === "RGB_ARRAY" ? "[" + n2 + "," + r2 + "," + o2 + "]" : i2 === "RGBA_ARRAY" ? "[" + n2 + "," + r2 + "," + o2 + "," + s2 + "]" : i2 === "RGB_OBJ" ? "{r:" + n2 + ",g:" + r2 + ",b:" + o2 + "}" : i2 === "RGBA_OBJ" ? "{r:" + n2 + ",g:" + r2 + ",b:" + o2 + ",a:" + s2 + "}" : i2 === "HSV_OBJ" ? "{h:" + a2 + ",s:" + l2 + ",v:" + h2 + "}" : i2 === "HSVA_OBJ" ? "{h:" + a2 + ",s:" + l2 + ",v:" + h2 + ",a:" + s2 + "}" : "unknown format";
|
|
34374
34423
|
}
|
|
34375
|
-
var
|
|
34376
|
-
return this.each(
|
|
34424
|
+
var Hx = Array.prototype.forEach, jx = Array.prototype.slice, zx = { BREAK: {}, extend: function(t2) {
|
|
34425
|
+
return this.each(jx.call(arguments, 1), function(e2) {
|
|
34377
34426
|
(this.isObject(e2) ? Object.keys(e2) : []).forEach(function(i2) {
|
|
34378
34427
|
this.isUndefined(e2[i2]) || (t2[i2] = e2[i2]);
|
|
34379
34428
|
}.bind(this));
|
|
34380
34429
|
}, this), t2;
|
|
34381
34430
|
}, defaults: function(t2) {
|
|
34382
|
-
return this.each(
|
|
34431
|
+
return this.each(jx.call(arguments, 1), function(e2) {
|
|
34383
34432
|
(this.isObject(e2) ? Object.keys(e2) : []).forEach(function(i2) {
|
|
34384
34433
|
this.isUndefined(t2[i2]) && (t2[i2] = e2[i2]);
|
|
34385
34434
|
}.bind(this));
|
|
34386
34435
|
}, this), t2;
|
|
34387
34436
|
}, compose: function() {
|
|
34388
|
-
var t2 =
|
|
34437
|
+
var t2 = jx.call(arguments);
|
|
34389
34438
|
return function() {
|
|
34390
|
-
for (var e2 =
|
|
34439
|
+
for (var e2 = jx.call(arguments), i2 = t2.length - 1; i2 >= 0; i2--)
|
|
34391
34440
|
e2 = [t2[i2].apply(this, e2)];
|
|
34392
34441
|
return e2[0];
|
|
34393
34442
|
};
|
|
34394
34443
|
}, each: function(t2, e2, i2) {
|
|
34395
34444
|
if (t2) {
|
|
34396
|
-
if (
|
|
34445
|
+
if (Hx && t2.forEach && t2.forEach === Hx)
|
|
34397
34446
|
t2.forEach(e2, i2);
|
|
34398
34447
|
else if (t2.length === t2.length + 0) {
|
|
34399
34448
|
var n2, r2 = void 0;
|
|
@@ -34418,7 +34467,7 @@ void main(void){
|
|
|
34418
34467
|
clearTimeout(n2), n2 = setTimeout(s2, e2), a2 && t2.apply(r2, o2);
|
|
34419
34468
|
};
|
|
34420
34469
|
}, toArray: function(t2) {
|
|
34421
|
-
return t2.toArray ? t2.toArray() :
|
|
34470
|
+
return t2.toArray ? t2.toArray() : jx.call(t2);
|
|
34422
34471
|
}, isUndefined: function(t2) {
|
|
34423
34472
|
return t2 === void 0;
|
|
34424
34473
|
}, isNull: function(t2) {
|
|
@@ -34444,23 +34493,23 @@ void main(void){
|
|
|
34444
34493
|
return t2 === false || t2 === true;
|
|
34445
34494
|
}, isFunction: function(t2) {
|
|
34446
34495
|
return t2 instanceof Function;
|
|
34447
|
-
} },
|
|
34496
|
+
} }, Vx = [{ litmus: zx.isString, conversions: { THREE_CHAR_HEX: { read: function(t2) {
|
|
34448
34497
|
var e2 = t2.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);
|
|
34449
34498
|
return e2 !== null && { space: "HEX", hex: parseInt("0x" + e2[1].toString() + e2[1].toString() + e2[2].toString() + e2[2].toString() + e2[3].toString() + e2[3].toString(), 0) };
|
|
34450
|
-
}, write:
|
|
34499
|
+
}, write: Gx }, SIX_CHAR_HEX: { read: function(t2) {
|
|
34451
34500
|
var e2 = t2.match(/^#([A-F0-9]{6})$/i);
|
|
34452
34501
|
return e2 !== null && { space: "HEX", hex: parseInt("0x" + e2[1].toString(), 0) };
|
|
34453
|
-
}, write:
|
|
34502
|
+
}, write: Gx }, CSS_RGB: { read: function(t2) {
|
|
34454
34503
|
var e2 = t2.match(/^rgb\(\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*\)/);
|
|
34455
34504
|
return e2 !== null && { space: "RGB", r: parseFloat(e2[1]), g: parseFloat(e2[2]), b: parseFloat(e2[3]) };
|
|
34456
|
-
}, write:
|
|
34505
|
+
}, write: Gx }, CSS_RGBA: { read: function(t2) {
|
|
34457
34506
|
var e2 = t2.match(/^rgba\(\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*\)/);
|
|
34458
34507
|
return e2 !== null && { space: "RGB", r: parseFloat(e2[1]), g: parseFloat(e2[2]), b: parseFloat(e2[3]), a: parseFloat(e2[4]) };
|
|
34459
|
-
}, write:
|
|
34508
|
+
}, write: Gx } } }, { litmus: zx.isNumber, conversions: { HEX: { read: function(t2) {
|
|
34460
34509
|
return { space: "HEX", hex: t2, conversionName: "HEX" };
|
|
34461
34510
|
}, write: function(t2) {
|
|
34462
34511
|
return t2.hex;
|
|
34463
|
-
} } } }, { litmus:
|
|
34512
|
+
} } } }, { litmus: zx.isArray, conversions: { RGB_ARRAY: { read: function(t2) {
|
|
34464
34513
|
return t2.length === 3 && { space: "RGB", r: t2[0], g: t2[1], b: t2[2] };
|
|
34465
34514
|
}, write: function(t2) {
|
|
34466
34515
|
return [t2.r, t2.g, t2.b];
|
|
@@ -34468,33 +34517,33 @@ void main(void){
|
|
|
34468
34517
|
return t2.length === 4 && { space: "RGB", r: t2[0], g: t2[1], b: t2[2], a: t2[3] };
|
|
34469
34518
|
}, write: function(t2) {
|
|
34470
34519
|
return [t2.r, t2.g, t2.b, t2.a];
|
|
34471
|
-
} } } }, { litmus:
|
|
34472
|
-
return !!(
|
|
34520
|
+
} } } }, { litmus: zx.isObject, conversions: { RGBA_OBJ: { read: function(t2) {
|
|
34521
|
+
return !!(zx.isNumber(t2.r) && zx.isNumber(t2.g) && zx.isNumber(t2.b) && zx.isNumber(t2.a)) && { space: "RGB", r: t2.r, g: t2.g, b: t2.b, a: t2.a };
|
|
34473
34522
|
}, write: function(t2) {
|
|
34474
34523
|
return { r: t2.r, g: t2.g, b: t2.b, a: t2.a };
|
|
34475
34524
|
} }, RGB_OBJ: { read: function(t2) {
|
|
34476
|
-
return !!(
|
|
34525
|
+
return !!(zx.isNumber(t2.r) && zx.isNumber(t2.g) && zx.isNumber(t2.b)) && { space: "RGB", r: t2.r, g: t2.g, b: t2.b };
|
|
34477
34526
|
}, write: function(t2) {
|
|
34478
34527
|
return { r: t2.r, g: t2.g, b: t2.b };
|
|
34479
34528
|
} }, HSVA_OBJ: { read: function(t2) {
|
|
34480
|
-
return !!(
|
|
34529
|
+
return !!(zx.isNumber(t2.h) && zx.isNumber(t2.s) && zx.isNumber(t2.v) && zx.isNumber(t2.a)) && { space: "HSV", h: t2.h, s: t2.s, v: t2.v, a: t2.a };
|
|
34481
34530
|
}, write: function(t2) {
|
|
34482
34531
|
return { h: t2.h, s: t2.s, v: t2.v, a: t2.a };
|
|
34483
34532
|
} }, HSV_OBJ: { read: function(t2) {
|
|
34484
|
-
return !!(
|
|
34533
|
+
return !!(zx.isNumber(t2.h) && zx.isNumber(t2.s) && zx.isNumber(t2.v)) && { space: "HSV", h: t2.h, s: t2.s, v: t2.v };
|
|
34485
34534
|
}, write: function(t2) {
|
|
34486
34535
|
return { h: t2.h, s: t2.s, v: t2.v };
|
|
34487
|
-
} } } }],
|
|
34488
|
-
|
|
34489
|
-
var t2 = arguments.length > 1 ?
|
|
34490
|
-
return
|
|
34536
|
+
} } } }], Xx = void 0, Wx = void 0, Yx = function() {
|
|
34537
|
+
Wx = false;
|
|
34538
|
+
var t2 = arguments.length > 1 ? zx.toArray(arguments) : arguments[0];
|
|
34539
|
+
return zx.each(Vx, function(e2) {
|
|
34491
34540
|
if (e2.litmus(t2))
|
|
34492
|
-
return
|
|
34493
|
-
if (
|
|
34494
|
-
return
|
|
34495
|
-
}),
|
|
34496
|
-
}),
|
|
34497
|
-
},
|
|
34541
|
+
return zx.each(e2.conversions, function(e3, i2) {
|
|
34542
|
+
if (Xx = e3.read(t2), Wx === false && Xx !== false)
|
|
34543
|
+
return Wx = Xx, Xx.conversionName = i2, Xx.conversion = e3, zx.BREAK;
|
|
34544
|
+
}), zx.BREAK;
|
|
34545
|
+
}), Wx;
|
|
34546
|
+
}, qx = void 0, Zx = { hsv_to_rgb: function(t2, e2, i2) {
|
|
34498
34547
|
var n2 = Math.floor(t2 / 60) % 6, r2 = t2 / 60 - Math.floor(t2 / 60), o2 = i2 * (1 - e2), s2 = i2 * (1 - r2 * e2), a2 = i2 * (1 - (1 - r2) * e2), l2 = [[i2, a2, o2], [s2, i2, o2], [o2, i2, a2], [o2, s2, i2], [a2, o2, i2], [i2, o2, s2]][n2];
|
|
34499
34548
|
return { r: 255 * l2[0], g: 255 * l2[1], b: 255 * l2[2] };
|
|
34500
34549
|
}, rgb_to_hsv: function(t2, e2, i2) {
|
|
@@ -34506,15 +34555,15 @@ void main(void){
|
|
|
34506
34555
|
}, component_from_hex: function(t2, e2) {
|
|
34507
34556
|
return t2 >> 8 * e2 & 255;
|
|
34508
34557
|
}, hex_with_component: function(t2, e2, i2) {
|
|
34509
|
-
return i2 << (
|
|
34510
|
-
} },
|
|
34558
|
+
return i2 << (qx = 8 * e2) | t2 & ~(255 << qx);
|
|
34559
|
+
} }, Jx = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t2) {
|
|
34511
34560
|
return typeof t2;
|
|
34512
34561
|
} : function(t2) {
|
|
34513
34562
|
return t2 && typeof Symbol == "function" && t2.constructor === Symbol && t2 !== Symbol.prototype ? "symbol" : typeof t2;
|
|
34514
|
-
},
|
|
34563
|
+
}, Kx = function(t2, e2) {
|
|
34515
34564
|
if (!(t2 instanceof e2))
|
|
34516
34565
|
throw new TypeError("Cannot call a class as a function");
|
|
34517
|
-
},
|
|
34566
|
+
}, Qx = function() {
|
|
34518
34567
|
function t2(t3, e2) {
|
|
34519
34568
|
for (var i2 = 0; i2 < e2.length; i2++) {
|
|
34520
34569
|
var n2 = e2[i2];
|
|
@@ -34524,7 +34573,7 @@ void main(void){
|
|
|
34524
34573
|
return function(e2, i2, n2) {
|
|
34525
34574
|
return i2 && t2(e2.prototype, i2), n2 && t2(e2, n2), e2;
|
|
34526
34575
|
};
|
|
34527
|
-
}(),
|
|
34576
|
+
}(), $x = function t2(e2, i2, n2) {
|
|
34528
34577
|
e2 === null && (e2 = Function.prototype);
|
|
34529
34578
|
var r2 = Object.getOwnPropertyDescriptor(e2, i2);
|
|
34530
34579
|
if (r2 === void 0) {
|
|
@@ -34535,67 +34584,67 @@ void main(void){
|
|
|
34535
34584
|
return r2.value;
|
|
34536
34585
|
var s2 = r2.get;
|
|
34537
34586
|
return s2 !== void 0 ? s2.call(n2) : void 0;
|
|
34538
|
-
},
|
|
34587
|
+
}, tb = function(t2, e2) {
|
|
34539
34588
|
if (typeof e2 != "function" && e2 !== null)
|
|
34540
34589
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e2);
|
|
34541
34590
|
t2.prototype = Object.create(e2 && e2.prototype, { constructor: { value: t2, enumerable: false, writable: true, configurable: true } }), e2 && (Object.setPrototypeOf ? Object.setPrototypeOf(t2, e2) : t2.__proto__ = e2);
|
|
34542
|
-
},
|
|
34591
|
+
}, eb = function(t2, e2) {
|
|
34543
34592
|
if (!t2)
|
|
34544
34593
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34545
34594
|
return !e2 || typeof e2 != "object" && typeof e2 != "function" ? t2 : e2;
|
|
34546
|
-
},
|
|
34595
|
+
}, ib = function() {
|
|
34547
34596
|
function t2() {
|
|
34548
|
-
if (
|
|
34597
|
+
if (Kx(this, t2), this.__state = Yx.apply(this, arguments), this.__state === false)
|
|
34549
34598
|
throw new Error("Failed to interpret color arguments");
|
|
34550
34599
|
this.__state.a = this.__state.a || 1;
|
|
34551
34600
|
}
|
|
34552
|
-
return
|
|
34553
|
-
return
|
|
34601
|
+
return Qx(t2, [{ key: "toString", value: function() {
|
|
34602
|
+
return Gx(this);
|
|
34554
34603
|
} }, { key: "toHexString", value: function() {
|
|
34555
|
-
return
|
|
34604
|
+
return Gx(this, true);
|
|
34556
34605
|
} }, { key: "toOriginal", value: function() {
|
|
34557
34606
|
return this.__state.conversion.write(this);
|
|
34558
34607
|
} }]), t2;
|
|
34559
34608
|
}();
|
|
34560
|
-
function
|
|
34609
|
+
function nb(t2, e2, i2) {
|
|
34561
34610
|
Object.defineProperty(t2, e2, { get: function() {
|
|
34562
|
-
return this.__state.space === "RGB" ||
|
|
34611
|
+
return this.__state.space === "RGB" || ib.recalculateRGB(this, e2, i2), this.__state[e2];
|
|
34563
34612
|
}, set: function(t3) {
|
|
34564
|
-
this.__state.space !== "RGB" && (
|
|
34613
|
+
this.__state.space !== "RGB" && (ib.recalculateRGB(this, e2, i2), this.__state.space = "RGB"), this.__state[e2] = t3;
|
|
34565
34614
|
} });
|
|
34566
34615
|
}
|
|
34567
|
-
function
|
|
34616
|
+
function rb(t2, e2) {
|
|
34568
34617
|
Object.defineProperty(t2, e2, { get: function() {
|
|
34569
|
-
return this.__state.space === "HSV" ||
|
|
34618
|
+
return this.__state.space === "HSV" || ib.recalculateHSV(this), this.__state[e2];
|
|
34570
34619
|
}, set: function(t3) {
|
|
34571
|
-
this.__state.space !== "HSV" && (
|
|
34620
|
+
this.__state.space !== "HSV" && (ib.recalculateHSV(this), this.__state.space = "HSV"), this.__state[e2] = t3;
|
|
34572
34621
|
} });
|
|
34573
34622
|
}
|
|
34574
|
-
|
|
34623
|
+
ib.recalculateRGB = function(t2, e2, i2) {
|
|
34575
34624
|
if (t2.__state.space === "HEX")
|
|
34576
|
-
t2.__state[e2] =
|
|
34625
|
+
t2.__state[e2] = Zx.component_from_hex(t2.__state.hex, i2);
|
|
34577
34626
|
else {
|
|
34578
34627
|
if (t2.__state.space !== "HSV")
|
|
34579
34628
|
throw new Error("Corrupted color state");
|
|
34580
|
-
|
|
34629
|
+
zx.extend(t2.__state, Zx.hsv_to_rgb(t2.__state.h, t2.__state.s, t2.__state.v));
|
|
34581
34630
|
}
|
|
34582
|
-
},
|
|
34583
|
-
var e2 =
|
|
34584
|
-
|
|
34585
|
-
},
|
|
34631
|
+
}, ib.recalculateHSV = function(t2) {
|
|
34632
|
+
var e2 = Zx.rgb_to_hsv(t2.r, t2.g, t2.b);
|
|
34633
|
+
zx.extend(t2.__state, { s: e2.s, v: e2.v }), zx.isNaN(e2.h) ? zx.isUndefined(t2.__state.h) && (t2.__state.h = 0) : t2.__state.h = e2.h;
|
|
34634
|
+
}, ib.COMPONENTS = ["r", "g", "b", "h", "s", "v", "hex", "a"], nb(ib.prototype, "r", 2), nb(ib.prototype, "g", 1), nb(ib.prototype, "b", 0), rb(ib.prototype, "h"), rb(ib.prototype, "s"), rb(ib.prototype, "v"), Object.defineProperty(ib.prototype, "a", { get: function() {
|
|
34586
34635
|
return this.__state.a;
|
|
34587
34636
|
}, set: function(t2) {
|
|
34588
34637
|
this.__state.a = t2;
|
|
34589
|
-
} }), Object.defineProperty(
|
|
34590
|
-
return this.__state.space !== "HEX" && (this.__state.hex =
|
|
34638
|
+
} }), Object.defineProperty(ib.prototype, "hex", { get: function() {
|
|
34639
|
+
return this.__state.space !== "HEX" && (this.__state.hex = Zx.rgb_to_hex(this.r, this.g, this.b), this.__state.space = "HEX"), this.__state.hex;
|
|
34591
34640
|
}, set: function(t2) {
|
|
34592
34641
|
this.__state.space = "HEX", this.__state.hex = t2;
|
|
34593
34642
|
} });
|
|
34594
|
-
var
|
|
34643
|
+
var ob = function() {
|
|
34595
34644
|
function t2(e2, i2) {
|
|
34596
|
-
|
|
34645
|
+
Kx(this, t2), this.initialValue = e2[i2], this.domElement = document.createElement("div"), this.object = e2, this.property = i2, this.__onChange = void 0, this.__onFinishChange = void 0;
|
|
34597
34646
|
}
|
|
34598
|
-
return
|
|
34647
|
+
return Qx(t2, [{ key: "onChange", value: function(t3) {
|
|
34599
34648
|
return this.__onChange = t3, this;
|
|
34600
34649
|
} }, { key: "onFinishChange", value: function(t3) {
|
|
34601
34650
|
return this.__onFinishChange = t3, this;
|
|
@@ -34608,29 +34657,29 @@ void main(void){
|
|
|
34608
34657
|
} }, { key: "isModified", value: function() {
|
|
34609
34658
|
return this.initialValue !== this.getValue();
|
|
34610
34659
|
} }]), t2;
|
|
34611
|
-
}(),
|
|
34612
|
-
|
|
34613
|
-
|
|
34614
|
-
|
|
34660
|
+
}(), sb = {};
|
|
34661
|
+
zx.each({ HTMLEvents: ["change"], MouseEvents: ["click", "mousemove", "mousedown", "mouseup", "mouseover"], KeyboardEvents: ["keydown"] }, function(t2, e2) {
|
|
34662
|
+
zx.each(t2, function(t3) {
|
|
34663
|
+
sb[t3] = e2;
|
|
34615
34664
|
});
|
|
34616
34665
|
});
|
|
34617
|
-
var
|
|
34618
|
-
function
|
|
34619
|
-
if (t2 === "0" ||
|
|
34666
|
+
var ab = /(\d+(\.\d+)?)px/;
|
|
34667
|
+
function lb(t2) {
|
|
34668
|
+
if (t2 === "0" || zx.isUndefined(t2))
|
|
34620
34669
|
return 0;
|
|
34621
|
-
var e2 = t2.match(
|
|
34622
|
-
return
|
|
34670
|
+
var e2 = t2.match(ab);
|
|
34671
|
+
return zx.isNull(e2) ? 0 : parseFloat(e2[1]);
|
|
34623
34672
|
}
|
|
34624
|
-
var
|
|
34673
|
+
var hb = { makeSelectable: function(t2, e2) {
|
|
34625
34674
|
t2 !== void 0 && t2.style !== void 0 && (t2.onselectstart = e2 ? function() {
|
|
34626
34675
|
return false;
|
|
34627
34676
|
} : function() {
|
|
34628
34677
|
}, t2.style.MozUserSelect = e2 ? "auto" : "none", t2.style.KhtmlUserSelect = e2 ? "auto" : "none", t2.unselectable = e2 ? "on" : "off");
|
|
34629
34678
|
}, makeFullscreen: function(t2, e2, i2) {
|
|
34630
34679
|
var n2 = i2, r2 = e2;
|
|
34631
|
-
|
|
34680
|
+
zx.isUndefined(r2) && (r2 = true), zx.isUndefined(n2) && (n2 = true), t2.style.position = "absolute", r2 && (t2.style.left = 0, t2.style.right = 0), n2 && (t2.style.top = 0, t2.style.bottom = 0);
|
|
34632
34681
|
}, fakeEvent: function(t2, e2, i2, n2) {
|
|
34633
|
-
var r2 = i2 || {}, o2 =
|
|
34682
|
+
var r2 = i2 || {}, o2 = sb[e2];
|
|
34634
34683
|
if (!o2)
|
|
34635
34684
|
throw new Error("Event type " + e2 + " not supported.");
|
|
34636
34685
|
var s2 = document.createEvent(o2);
|
|
@@ -34641,18 +34690,18 @@ void main(void){
|
|
|
34641
34690
|
break;
|
|
34642
34691
|
case "KeyboardEvents":
|
|
34643
34692
|
var h2 = s2.initKeyboardEvent || s2.initKeyEvent;
|
|
34644
|
-
|
|
34693
|
+
zx.defaults(r2, { cancelable: true, ctrlKey: false, altKey: false, shiftKey: false, metaKey: false, keyCode: void 0, charCode: void 0 }), h2(e2, r2.bubbles || false, r2.cancelable, window, r2.ctrlKey, r2.altKey, r2.shiftKey, r2.metaKey, r2.keyCode, r2.charCode);
|
|
34645
34694
|
break;
|
|
34646
34695
|
default:
|
|
34647
34696
|
s2.initEvent(e2, r2.bubbles || false, r2.cancelable || true);
|
|
34648
34697
|
}
|
|
34649
|
-
|
|
34698
|
+
zx.defaults(s2, n2), t2.dispatchEvent(s2);
|
|
34650
34699
|
}, bind: function(t2, e2, i2, n2) {
|
|
34651
34700
|
var r2 = n2 || false;
|
|
34652
|
-
return t2.addEventListener ? t2.addEventListener(e2, i2, r2) : t2.attachEvent && t2.attachEvent("on" + e2, i2),
|
|
34701
|
+
return t2.addEventListener ? t2.addEventListener(e2, i2, r2) : t2.attachEvent && t2.attachEvent("on" + e2, i2), hb;
|
|
34653
34702
|
}, unbind: function(t2, e2, i2, n2) {
|
|
34654
34703
|
var r2 = n2 || false;
|
|
34655
|
-
return t2.removeEventListener ? t2.removeEventListener(e2, i2, r2) : t2.detachEvent && t2.detachEvent("on" + e2, i2),
|
|
34704
|
+
return t2.removeEventListener ? t2.removeEventListener(e2, i2, r2) : t2.detachEvent && t2.detachEvent("on" + e2, i2), hb;
|
|
34656
34705
|
}, addClass: function(t2, e2) {
|
|
34657
34706
|
if (t2.className === void 0)
|
|
34658
34707
|
t2.className = e2;
|
|
@@ -34660,7 +34709,7 @@ void main(void){
|
|
|
34660
34709
|
var i2 = t2.className.split(/ +/);
|
|
34661
34710
|
i2.indexOf(e2) === -1 && (i2.push(e2), t2.className = i2.join(" ").replace(/^\s+/, "").replace(/\s+$/, ""));
|
|
34662
34711
|
}
|
|
34663
|
-
return
|
|
34712
|
+
return hb;
|
|
34664
34713
|
}, removeClass: function(t2, e2) {
|
|
34665
34714
|
if (e2)
|
|
34666
34715
|
if (t2.className === e2)
|
|
@@ -34671,15 +34720,15 @@ void main(void){
|
|
|
34671
34720
|
}
|
|
34672
34721
|
else
|
|
34673
34722
|
t2.className = void 0;
|
|
34674
|
-
return
|
|
34723
|
+
return hb;
|
|
34675
34724
|
}, hasClass: function(t2, e2) {
|
|
34676
34725
|
return new RegExp("(?:^|\\s+)" + e2 + "(?:\\s+|$)").test(t2.className) || false;
|
|
34677
34726
|
}, getWidth: function(t2) {
|
|
34678
34727
|
var e2 = getComputedStyle(t2);
|
|
34679
|
-
return
|
|
34728
|
+
return lb(e2["border-left-width"]) + lb(e2["border-right-width"]) + lb(e2["padding-left"]) + lb(e2["padding-right"]) + lb(e2.width);
|
|
34680
34729
|
}, getHeight: function(t2) {
|
|
34681
34730
|
var e2 = getComputedStyle(t2);
|
|
34682
|
-
return
|
|
34731
|
+
return lb(e2["border-top-width"]) + lb(e2["border-bottom-width"]) + lb(e2["padding-top"]) + lb(e2["padding-bottom"]) + lb(e2.height);
|
|
34683
34732
|
}, getOffset: function(t2) {
|
|
34684
34733
|
var e2 = t2, i2 = { left: 0, top: 0 };
|
|
34685
34734
|
if (e2.offsetParent)
|
|
@@ -34689,86 +34738,86 @@ void main(void){
|
|
|
34689
34738
|
return i2;
|
|
34690
34739
|
}, isActive: function(t2) {
|
|
34691
34740
|
return t2 === document.activeElement && (t2.type || t2.href);
|
|
34692
|
-
} },
|
|
34741
|
+
} }, ub = function(t2) {
|
|
34693
34742
|
function e2(t3, i2) {
|
|
34694
|
-
|
|
34695
|
-
var n2 =
|
|
34696
|
-
return n2.__prev = n2.getValue(), n2.__checkbox = document.createElement("input"), n2.__checkbox.setAttribute("type", "checkbox"),
|
|
34743
|
+
Kx(this, e2);
|
|
34744
|
+
var n2 = eb(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, i2)), r2 = n2;
|
|
34745
|
+
return n2.__prev = n2.getValue(), n2.__checkbox = document.createElement("input"), n2.__checkbox.setAttribute("type", "checkbox"), hb.bind(n2.__checkbox, "change", function() {
|
|
34697
34746
|
r2.setValue(!r2.__prev);
|
|
34698
34747
|
}, false), n2.domElement.appendChild(n2.__checkbox), n2.updateDisplay(), n2;
|
|
34699
34748
|
}
|
|
34700
|
-
return
|
|
34701
|
-
var i2 =
|
|
34749
|
+
return tb(e2, t2), Qx(e2, [{ key: "setValue", value: function(t3) {
|
|
34750
|
+
var i2 = $x(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "setValue", this).call(this, t3);
|
|
34702
34751
|
return this.__onFinishChange && this.__onFinishChange.call(this, this.getValue()), this.__prev = this.getValue(), i2;
|
|
34703
34752
|
} }, { key: "updateDisplay", value: function() {
|
|
34704
|
-
return this.getValue() === true ? (this.__checkbox.setAttribute("checked", "checked"), this.__checkbox.checked = true, this.__prev = true) : (this.__checkbox.checked = false, this.__prev = false),
|
|
34753
|
+
return this.getValue() === true ? (this.__checkbox.setAttribute("checked", "checked"), this.__checkbox.checked = true, this.__prev = true) : (this.__checkbox.checked = false, this.__prev = false), $x(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "updateDisplay", this).call(this);
|
|
34705
34754
|
} }]), e2;
|
|
34706
|
-
}(
|
|
34755
|
+
}(ob), cb = function(t2) {
|
|
34707
34756
|
function e2(t3, i2, n2) {
|
|
34708
|
-
|
|
34709
|
-
var r2 =
|
|
34710
|
-
if (r2.__select = document.createElement("select"),
|
|
34757
|
+
Kx(this, e2);
|
|
34758
|
+
var r2 = eb(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, i2)), o2 = n2, s2 = r2;
|
|
34759
|
+
if (r2.__select = document.createElement("select"), zx.isArray(o2)) {
|
|
34711
34760
|
var a2 = {};
|
|
34712
|
-
|
|
34761
|
+
zx.each(o2, function(t4) {
|
|
34713
34762
|
a2[t4] = t4;
|
|
34714
34763
|
}), o2 = a2;
|
|
34715
34764
|
}
|
|
34716
|
-
return
|
|
34765
|
+
return zx.each(o2, function(t4, e3) {
|
|
34717
34766
|
var i3 = document.createElement("option");
|
|
34718
34767
|
i3.innerHTML = e3, i3.setAttribute("value", t4), s2.__select.appendChild(i3);
|
|
34719
|
-
}), r2.updateDisplay(),
|
|
34768
|
+
}), r2.updateDisplay(), hb.bind(r2.__select, "change", function() {
|
|
34720
34769
|
var t4 = this.options[this.selectedIndex].value;
|
|
34721
34770
|
s2.setValue(t4);
|
|
34722
34771
|
}), r2.domElement.appendChild(r2.__select), r2;
|
|
34723
34772
|
}
|
|
34724
|
-
return
|
|
34725
|
-
var i2 =
|
|
34773
|
+
return tb(e2, t2), Qx(e2, [{ key: "setValue", value: function(t3) {
|
|
34774
|
+
var i2 = $x(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "setValue", this).call(this, t3);
|
|
34726
34775
|
return this.__onFinishChange && this.__onFinishChange.call(this, this.getValue()), i2;
|
|
34727
34776
|
} }, { key: "updateDisplay", value: function() {
|
|
34728
|
-
return
|
|
34777
|
+
return hb.isActive(this.__select) ? this : (this.__select.value = this.getValue(), $x(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "updateDisplay", this).call(this));
|
|
34729
34778
|
} }]), e2;
|
|
34730
|
-
}(
|
|
34779
|
+
}(ob), db = function(t2) {
|
|
34731
34780
|
function e2(t3, i2) {
|
|
34732
|
-
|
|
34733
|
-
var n2 =
|
|
34781
|
+
Kx(this, e2);
|
|
34782
|
+
var n2 = eb(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, i2)), r2 = n2;
|
|
34734
34783
|
function o2() {
|
|
34735
34784
|
r2.setValue(r2.__input.value);
|
|
34736
34785
|
}
|
|
34737
|
-
return n2.__input = document.createElement("input"), n2.__input.setAttribute("type", "text"),
|
|
34786
|
+
return n2.__input = document.createElement("input"), n2.__input.setAttribute("type", "text"), hb.bind(n2.__input, "keyup", o2), hb.bind(n2.__input, "change", o2), hb.bind(n2.__input, "blur", function() {
|
|
34738
34787
|
r2.__onFinishChange && r2.__onFinishChange.call(r2, r2.getValue());
|
|
34739
|
-
}),
|
|
34788
|
+
}), hb.bind(n2.__input, "keydown", function(t4) {
|
|
34740
34789
|
t4.keyCode === 13 && this.blur();
|
|
34741
34790
|
}), n2.updateDisplay(), n2.domElement.appendChild(n2.__input), n2;
|
|
34742
34791
|
}
|
|
34743
|
-
return
|
|
34744
|
-
return
|
|
34792
|
+
return tb(e2, t2), Qx(e2, [{ key: "updateDisplay", value: function() {
|
|
34793
|
+
return hb.isActive(this.__input) || (this.__input.value = this.getValue()), $x(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "updateDisplay", this).call(this);
|
|
34745
34794
|
} }]), e2;
|
|
34746
|
-
}(
|
|
34747
|
-
function
|
|
34795
|
+
}(ob);
|
|
34796
|
+
function pb(t2) {
|
|
34748
34797
|
var e2 = t2.toString();
|
|
34749
34798
|
return e2.indexOf(".") > -1 ? e2.length - e2.indexOf(".") - 1 : 0;
|
|
34750
34799
|
}
|
|
34751
|
-
var
|
|
34800
|
+
var fb = function(t2) {
|
|
34752
34801
|
function e2(t3, i2, n2) {
|
|
34753
|
-
|
|
34754
|
-
var r2 =
|
|
34755
|
-
return r2.__min = o2.min, r2.__max = o2.max, r2.__step = o2.step,
|
|
34802
|
+
Kx(this, e2);
|
|
34803
|
+
var r2 = eb(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, i2)), o2 = n2 || {};
|
|
34804
|
+
return r2.__min = o2.min, r2.__max = o2.max, r2.__step = o2.step, zx.isUndefined(r2.__step) ? r2.initialValue === 0 ? r2.__impliedStep = 1 : r2.__impliedStep = Math.pow(10, Math.floor(Math.log(Math.abs(r2.initialValue)) / Math.LN10)) / 10 : r2.__impliedStep = r2.__step, r2.__precision = pb(r2.__impliedStep), r2;
|
|
34756
34805
|
}
|
|
34757
|
-
return
|
|
34806
|
+
return tb(e2, t2), Qx(e2, [{ key: "setValue", value: function(t3) {
|
|
34758
34807
|
var i2 = t3;
|
|
34759
|
-
return this.__min !== void 0 && i2 < this.__min ? i2 = this.__min : this.__max !== void 0 && i2 > this.__max && (i2 = this.__max), this.__step !== void 0 && i2 % this.__step != 0 && (i2 = Math.round(i2 / this.__step) * this.__step),
|
|
34808
|
+
return this.__min !== void 0 && i2 < this.__min ? i2 = this.__min : this.__max !== void 0 && i2 > this.__max && (i2 = this.__max), this.__step !== void 0 && i2 % this.__step != 0 && (i2 = Math.round(i2 / this.__step) * this.__step), $x(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "setValue", this).call(this, i2);
|
|
34760
34809
|
} }, { key: "min", value: function(t3) {
|
|
34761
34810
|
return this.__min = t3, this;
|
|
34762
34811
|
} }, { key: "max", value: function(t3) {
|
|
34763
34812
|
return this.__max = t3, this;
|
|
34764
34813
|
} }, { key: "step", value: function(t3) {
|
|
34765
|
-
return this.__step = t3, this.__impliedStep = t3, this.__precision =
|
|
34814
|
+
return this.__step = t3, this.__impliedStep = t3, this.__precision = pb(t3), this;
|
|
34766
34815
|
} }]), e2;
|
|
34767
|
-
}(
|
|
34768
|
-
var
|
|
34816
|
+
}(ob);
|
|
34817
|
+
var mb = function(t2) {
|
|
34769
34818
|
function e2(t3, i2, n2) {
|
|
34770
|
-
|
|
34771
|
-
var r2 =
|
|
34819
|
+
Kx(this, e2);
|
|
34820
|
+
var r2 = eb(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, i2, n2));
|
|
34772
34821
|
r2.__truncationSuspended = false;
|
|
34773
34822
|
var o2 = r2, s2 = void 0;
|
|
34774
34823
|
function a2() {
|
|
@@ -34779,101 +34828,101 @@ void main(void){
|
|
|
34779
34828
|
o2.setValue(o2.getValue() + e3 * o2.__impliedStep), s2 = t4.clientY;
|
|
34780
34829
|
}
|
|
34781
34830
|
function h2() {
|
|
34782
|
-
|
|
34831
|
+
hb.unbind(window, "mousemove", l2), hb.unbind(window, "mouseup", h2), a2();
|
|
34783
34832
|
}
|
|
34784
|
-
return r2.__input = document.createElement("input"), r2.__input.setAttribute("type", "text"),
|
|
34833
|
+
return r2.__input = document.createElement("input"), r2.__input.setAttribute("type", "text"), hb.bind(r2.__input, "change", function() {
|
|
34785
34834
|
var t4 = parseFloat(o2.__input.value);
|
|
34786
|
-
|
|
34787
|
-
}),
|
|
34835
|
+
zx.isNaN(t4) || o2.setValue(t4);
|
|
34836
|
+
}), hb.bind(r2.__input, "blur", function() {
|
|
34788
34837
|
a2();
|
|
34789
|
-
}),
|
|
34790
|
-
|
|
34791
|
-
}),
|
|
34838
|
+
}), hb.bind(r2.__input, "mousedown", function(t4) {
|
|
34839
|
+
hb.bind(window, "mousemove", l2), hb.bind(window, "mouseup", h2), s2 = t4.clientY;
|
|
34840
|
+
}), hb.bind(r2.__input, "keydown", function(t4) {
|
|
34792
34841
|
t4.keyCode === 13 && (o2.__truncationSuspended = true, this.blur(), o2.__truncationSuspended = false, a2());
|
|
34793
34842
|
}), r2.updateDisplay(), r2.domElement.appendChild(r2.__input), r2;
|
|
34794
34843
|
}
|
|
34795
|
-
return
|
|
34844
|
+
return tb(e2, t2), Qx(e2, [{ key: "updateDisplay", value: function() {
|
|
34796
34845
|
var t3, i2, n2;
|
|
34797
|
-
return this.__input.value = this.__truncationSuspended ? this.getValue() : (t3 = this.getValue(), i2 = this.__precision, n2 = Math.pow(10, i2), Math.round(t3 * n2) / n2),
|
|
34846
|
+
return this.__input.value = this.__truncationSuspended ? this.getValue() : (t3 = this.getValue(), i2 = this.__precision, n2 = Math.pow(10, i2), Math.round(t3 * n2) / n2), $x(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "updateDisplay", this).call(this);
|
|
34798
34847
|
} }]), e2;
|
|
34799
|
-
}(
|
|
34800
|
-
function
|
|
34848
|
+
}(fb);
|
|
34849
|
+
function gb(t2, e2, i2, n2, r2) {
|
|
34801
34850
|
return n2 + (t2 - e2) / (i2 - e2) * (r2 - n2);
|
|
34802
34851
|
}
|
|
34803
|
-
var
|
|
34852
|
+
var vb = function(t2) {
|
|
34804
34853
|
function e2(t3, i2, n2, r2, o2) {
|
|
34805
|
-
|
|
34806
|
-
var s2 =
|
|
34854
|
+
Kx(this, e2);
|
|
34855
|
+
var s2 = eb(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, i2, { min: n2, max: r2, step: o2 })), a2 = s2;
|
|
34807
34856
|
function l2(t4) {
|
|
34808
34857
|
t4.preventDefault();
|
|
34809
34858
|
var e3 = a2.__background.getBoundingClientRect();
|
|
34810
|
-
return a2.setValue(
|
|
34859
|
+
return a2.setValue(gb(t4.clientX, e3.left, e3.right, a2.__min, a2.__max)), false;
|
|
34811
34860
|
}
|
|
34812
34861
|
function h2() {
|
|
34813
|
-
|
|
34862
|
+
hb.unbind(window, "mousemove", l2), hb.unbind(window, "mouseup", h2), a2.__onFinishChange && a2.__onFinishChange.call(a2, a2.getValue());
|
|
34814
34863
|
}
|
|
34815
34864
|
function u2(t4) {
|
|
34816
34865
|
var e3 = t4.touches[0].clientX, i3 = a2.__background.getBoundingClientRect();
|
|
34817
|
-
a2.setValue(
|
|
34866
|
+
a2.setValue(gb(e3, i3.left, i3.right, a2.__min, a2.__max));
|
|
34818
34867
|
}
|
|
34819
34868
|
function c2() {
|
|
34820
|
-
|
|
34869
|
+
hb.unbind(window, "touchmove", u2), hb.unbind(window, "touchend", c2), a2.__onFinishChange && a2.__onFinishChange.call(a2, a2.getValue());
|
|
34821
34870
|
}
|
|
34822
|
-
return s2.__background = document.createElement("div"), s2.__foreground = document.createElement("div"),
|
|
34823
|
-
document.activeElement.blur(),
|
|
34824
|
-
}),
|
|
34871
|
+
return s2.__background = document.createElement("div"), s2.__foreground = document.createElement("div"), hb.bind(s2.__background, "mousedown", function(t4) {
|
|
34872
|
+
document.activeElement.blur(), hb.bind(window, "mousemove", l2), hb.bind(window, "mouseup", h2), l2(t4);
|
|
34873
|
+
}), hb.bind(s2.__background, "touchstart", function(t4) {
|
|
34825
34874
|
if (t4.touches.length !== 1)
|
|
34826
34875
|
return;
|
|
34827
|
-
|
|
34828
|
-
}),
|
|
34876
|
+
hb.bind(window, "touchmove", u2), hb.bind(window, "touchend", c2), u2(t4);
|
|
34877
|
+
}), hb.addClass(s2.__background, "slider"), hb.addClass(s2.__foreground, "slider-fg"), s2.updateDisplay(), s2.__background.appendChild(s2.__foreground), s2.domElement.appendChild(s2.__background), s2;
|
|
34829
34878
|
}
|
|
34830
|
-
return
|
|
34879
|
+
return tb(e2, t2), Qx(e2, [{ key: "updateDisplay", value: function() {
|
|
34831
34880
|
var t3 = (this.getValue() - this.__min) / (this.__max - this.__min);
|
|
34832
|
-
return this.__foreground.style.width = 100 * t3 + "%",
|
|
34881
|
+
return this.__foreground.style.width = 100 * t3 + "%", $x(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "updateDisplay", this).call(this);
|
|
34833
34882
|
} }]), e2;
|
|
34834
|
-
}(
|
|
34883
|
+
}(fb), _b = function(t2) {
|
|
34835
34884
|
function e2(t3, i2, n2) {
|
|
34836
|
-
|
|
34837
|
-
var r2 =
|
|
34838
|
-
return r2.__button = document.createElement("div"), r2.__button.innerHTML = n2 === void 0 ? "Fire" : n2,
|
|
34885
|
+
Kx(this, e2);
|
|
34886
|
+
var r2 = eb(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, i2)), o2 = r2;
|
|
34887
|
+
return r2.__button = document.createElement("div"), r2.__button.innerHTML = n2 === void 0 ? "Fire" : n2, hb.bind(r2.__button, "click", function(t4) {
|
|
34839
34888
|
return t4.preventDefault(), o2.fire(), false;
|
|
34840
|
-
}),
|
|
34889
|
+
}), hb.addClass(r2.__button, "button"), r2.domElement.appendChild(r2.__button), r2;
|
|
34841
34890
|
}
|
|
34842
|
-
return
|
|
34891
|
+
return tb(e2, t2), Qx(e2, [{ key: "fire", value: function() {
|
|
34843
34892
|
this.__onChange && this.__onChange.call(this), this.getValue().call(this.object), this.__onFinishChange && this.__onFinishChange.call(this, this.getValue());
|
|
34844
34893
|
} }]), e2;
|
|
34845
|
-
}(
|
|
34894
|
+
}(ob), yb = function(t2) {
|
|
34846
34895
|
function e2(t3, i2) {
|
|
34847
|
-
|
|
34848
|
-
var n2 =
|
|
34849
|
-
n2.__color = new
|
|
34896
|
+
Kx(this, e2);
|
|
34897
|
+
var n2 = eb(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, i2));
|
|
34898
|
+
n2.__color = new ib(n2.getValue()), n2.__temp = new ib(0);
|
|
34850
34899
|
var r2 = n2;
|
|
34851
|
-
n2.domElement = document.createElement("div"),
|
|
34900
|
+
n2.domElement = document.createElement("div"), hb.makeSelectable(n2.domElement, false), n2.__selector = document.createElement("div"), n2.__selector.className = "selector", n2.__saturation_field = document.createElement("div"), n2.__saturation_field.className = "saturation-field", n2.__field_knob = document.createElement("div"), n2.__field_knob.className = "field-knob", n2.__field_knob_border = "2px solid ", n2.__hue_knob = document.createElement("div"), n2.__hue_knob.className = "hue-knob", n2.__hue_field = document.createElement("div"), n2.__hue_field.className = "hue-field", n2.__input = document.createElement("input"), n2.__input.type = "text", n2.__input_textShadow = "0 1px 1px ", hb.bind(n2.__input, "keydown", function(t4) {
|
|
34852
34901
|
t4.keyCode === 13 && c2.call(this);
|
|
34853
|
-
}),
|
|
34854
|
-
|
|
34855
|
-
|
|
34902
|
+
}), hb.bind(n2.__input, "blur", c2), hb.bind(n2.__selector, "mousedown", function() {
|
|
34903
|
+
hb.addClass(this, "drag").bind(window, "mouseup", function() {
|
|
34904
|
+
hb.removeClass(r2.__selector, "drag");
|
|
34856
34905
|
});
|
|
34857
|
-
}),
|
|
34858
|
-
|
|
34859
|
-
|
|
34906
|
+
}), hb.bind(n2.__selector, "touchstart", function() {
|
|
34907
|
+
hb.addClass(this, "drag").bind(window, "touchend", function() {
|
|
34908
|
+
hb.removeClass(r2.__selector, "drag");
|
|
34860
34909
|
});
|
|
34861
34910
|
});
|
|
34862
34911
|
var o2, s2 = document.createElement("div");
|
|
34863
34912
|
function a2(t4) {
|
|
34864
|
-
p2(t4),
|
|
34913
|
+
p2(t4), hb.bind(window, "mousemove", p2), hb.bind(window, "touchmove", p2), hb.bind(window, "mouseup", h2), hb.bind(window, "touchend", h2);
|
|
34865
34914
|
}
|
|
34866
34915
|
function l2(t4) {
|
|
34867
|
-
f2(t4),
|
|
34916
|
+
f2(t4), hb.bind(window, "mousemove", f2), hb.bind(window, "touchmove", f2), hb.bind(window, "mouseup", u2), hb.bind(window, "touchend", u2);
|
|
34868
34917
|
}
|
|
34869
34918
|
function h2() {
|
|
34870
|
-
|
|
34919
|
+
hb.unbind(window, "mousemove", p2), hb.unbind(window, "touchmove", p2), hb.unbind(window, "mouseup", h2), hb.unbind(window, "touchend", h2), d2();
|
|
34871
34920
|
}
|
|
34872
34921
|
function u2() {
|
|
34873
|
-
|
|
34922
|
+
hb.unbind(window, "mousemove", f2), hb.unbind(window, "touchmove", f2), hb.unbind(window, "mouseup", u2), hb.unbind(window, "touchend", u2), d2();
|
|
34874
34923
|
}
|
|
34875
34924
|
function c2() {
|
|
34876
|
-
var t4 =
|
|
34925
|
+
var t4 = Yx(this.value);
|
|
34877
34926
|
t4 !== false ? (r2.__color.__state = t4, r2.setValue(r2.__color.toOriginal())) : this.value = r2.__color.toString();
|
|
34878
34927
|
}
|
|
34879
34928
|
function d2() {
|
|
@@ -34889,28 +34938,28 @@ void main(void){
|
|
|
34889
34938
|
var e3 = r2.__hue_field.getBoundingClientRect(), i3 = 1 - ((t4.touches && t4.touches[0] || t4).clientY - e3.top) / (e3.bottom - e3.top);
|
|
34890
34939
|
return i3 > 1 ? i3 = 1 : i3 < 0 && (i3 = 0), r2.__color.h = 360 * i3, r2.setValue(r2.__color.toOriginal()), false;
|
|
34891
34940
|
}
|
|
34892
|
-
return
|
|
34941
|
+
return zx.extend(n2.__selector.style, { width: "122px", height: "102px", padding: "3px", backgroundColor: "#222", boxShadow: "0px 1px 3px rgba(0,0,0,0.3)" }), zx.extend(n2.__field_knob.style, { position: "absolute", width: "12px", height: "12px", border: n2.__field_knob_border + (n2.__color.v < 0.5 ? "#fff" : "#000"), boxShadow: "0px 1px 3px rgba(0,0,0,0.5)", borderRadius: "12px", zIndex: 1 }), zx.extend(n2.__hue_knob.style, { position: "absolute", width: "15px", height: "2px", borderRight: "4px solid #fff", zIndex: 1 }), zx.extend(n2.__saturation_field.style, { width: "100px", height: "100px", border: "1px solid #555", marginRight: "3px", display: "inline-block", cursor: "pointer" }), zx.extend(s2.style, { width: "100%", height: "100%", background: "none" }), bb(s2, "top", "rgba(0,0,0,0)", "#000"), zx.extend(n2.__hue_field.style, { width: "15px", height: "100px", border: "1px solid #555", cursor: "ns-resize", position: "absolute", top: "3px", right: "3px" }), (o2 = n2.__hue_field).style.background = "", o2.style.cssText += "background: -moz-linear-gradient(top, #ff0000 0%, #ff00ff 17%, #0000ff 34%, #00ffff 50%, #00ff00 67%, #ffff00 84%, #ff0000 100%);", o2.style.cssText += "background: -webkit-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", o2.style.cssText += "background: -o-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", o2.style.cssText += "background: -ms-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", o2.style.cssText += "background: linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", zx.extend(n2.__input.style, { outline: "none", textAlign: "center", color: "#fff", border: 0, fontWeight: "bold", textShadow: n2.__input_textShadow + "rgba(0,0,0,0.7)" }), hb.bind(n2.__saturation_field, "mousedown", a2), hb.bind(n2.__saturation_field, "touchstart", a2), hb.bind(n2.__field_knob, "mousedown", a2), hb.bind(n2.__field_knob, "touchstart", a2), hb.bind(n2.__hue_field, "mousedown", l2), hb.bind(n2.__hue_field, "touchstart", l2), n2.__saturation_field.appendChild(s2), n2.__selector.appendChild(n2.__field_knob), n2.__selector.appendChild(n2.__saturation_field), n2.__selector.appendChild(n2.__hue_field), n2.__hue_field.appendChild(n2.__hue_knob), n2.domElement.appendChild(n2.__input), n2.domElement.appendChild(n2.__selector), n2.updateDisplay(), n2;
|
|
34893
34942
|
}
|
|
34894
|
-
return
|
|
34895
|
-
var t3 =
|
|
34943
|
+
return tb(e2, t2), Qx(e2, [{ key: "updateDisplay", value: function() {
|
|
34944
|
+
var t3 = Yx(this.getValue());
|
|
34896
34945
|
if (t3 !== false) {
|
|
34897
34946
|
var e3 = false;
|
|
34898
|
-
|
|
34899
|
-
if (!
|
|
34947
|
+
zx.each(ib.COMPONENTS, function(i3) {
|
|
34948
|
+
if (!zx.isUndefined(t3[i3]) && !zx.isUndefined(this.__color.__state[i3]) && t3[i3] !== this.__color.__state[i3])
|
|
34900
34949
|
return e3 = true, {};
|
|
34901
|
-
}, this), e3 &&
|
|
34950
|
+
}, this), e3 && zx.extend(this.__color.__state, t3);
|
|
34902
34951
|
}
|
|
34903
|
-
|
|
34952
|
+
zx.extend(this.__temp.__state, this.__color.__state), this.__temp.a = 1;
|
|
34904
34953
|
var i2 = this.__color.v < 0.5 || this.__color.s > 0.5 ? 255 : 0, n2 = 255 - i2;
|
|
34905
|
-
|
|
34954
|
+
zx.extend(this.__field_knob.style, { marginLeft: 100 * this.__color.s - 7 + "px", marginTop: 100 * (1 - this.__color.v) - 7 + "px", backgroundColor: this.__temp.toHexString(), border: this.__field_knob_border + "rgb(" + i2 + "," + i2 + "," + i2 + ")" }), this.__hue_knob.style.marginTop = 100 * (1 - this.__color.h / 360) + "px", this.__temp.s = 1, this.__temp.v = 1, bb(this.__saturation_field, "left", "#fff", this.__temp.toHexString()), this.__input.value = this.__color.toString(), zx.extend(this.__input.style, { backgroundColor: this.__color.toHexString(), color: "rgb(" + i2 + "," + i2 + "," + i2 + ")", textShadow: this.__input_textShadow + "rgba(" + n2 + "," + n2 + "," + n2 + ",.7)" });
|
|
34906
34955
|
} }]), e2;
|
|
34907
|
-
}(
|
|
34908
|
-
function
|
|
34909
|
-
t2.style.background = "",
|
|
34956
|
+
}(ob), xb = ["-moz-", "-o-", "-webkit-", "-ms-", ""];
|
|
34957
|
+
function bb(t2, e2, i2, n2) {
|
|
34958
|
+
t2.style.background = "", zx.each(xb, function(r2) {
|
|
34910
34959
|
t2.style.cssText += "background: " + r2 + "linear-gradient(" + e2 + ", " + i2 + " 0%, " + n2 + " 100%); ";
|
|
34911
34960
|
});
|
|
34912
34961
|
}
|
|
34913
|
-
var
|
|
34962
|
+
var Tb = function(t2, e2) {
|
|
34914
34963
|
var i2 = e2 || document, n2 = document.createElement("style");
|
|
34915
34964
|
n2.type = "text/css", n2.innerHTML = t2;
|
|
34916
34965
|
var r2 = i2.getElementsByTagName("head")[0];
|
|
@@ -34918,7 +34967,7 @@ void main(void){
|
|
|
34918
34967
|
r2.appendChild(n2);
|
|
34919
34968
|
} catch (t3) {
|
|
34920
34969
|
}
|
|
34921
|
-
},
|
|
34970
|
+
}, Eb = `<div id="dg-save" class="dg dialogue">
|
|
34922
34971
|
|
|
34923
34972
|
Here's the new load parameter for your <code>GUI</code>'s constructor:
|
|
34924
34973
|
|
|
@@ -34938,50 +34987,50 @@ void main(void){
|
|
|
34938
34987
|
|
|
34939
34988
|
</div>
|
|
34940
34989
|
|
|
34941
|
-
</div>`,
|
|
34990
|
+
</div>`, Sb = function(t2, e2) {
|
|
34942
34991
|
var i2 = t2[e2];
|
|
34943
|
-
return
|
|
34992
|
+
return zx.isArray(arguments[2]) || zx.isObject(arguments[2]) ? new cb(t2, e2, arguments[2]) : zx.isNumber(i2) ? zx.isNumber(arguments[2]) && zx.isNumber(arguments[3]) ? zx.isNumber(arguments[4]) ? new vb(t2, e2, arguments[2], arguments[3], arguments[4]) : new vb(t2, e2, arguments[2], arguments[3]) : zx.isNumber(arguments[4]) ? new mb(t2, e2, { min: arguments[2], max: arguments[3], step: arguments[4] }) : new mb(t2, e2, { min: arguments[2], max: arguments[3] }) : zx.isString(i2) ? new db(t2, e2) : zx.isFunction(i2) ? new _b(t2, e2, "") : zx.isBoolean(i2) ? new ub(t2, e2) : null;
|
|
34944
34993
|
};
|
|
34945
|
-
var
|
|
34994
|
+
var wb = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(t2) {
|
|
34946
34995
|
setTimeout(t2, 1e3 / 60);
|
|
34947
|
-
},
|
|
34996
|
+
}, Ab = function() {
|
|
34948
34997
|
function t2() {
|
|
34949
|
-
|
|
34998
|
+
Kx(this, t2), this.backgroundElement = document.createElement("div"), zx.extend(this.backgroundElement.style, { backgroundColor: "rgba(0,0,0,0.8)", top: 0, left: 0, display: "none", zIndex: "1000", opacity: 0, WebkitTransition: "opacity 0.2s linear", transition: "opacity 0.2s linear" }), hb.makeFullscreen(this.backgroundElement), this.backgroundElement.style.position = "fixed", this.domElement = document.createElement("div"), zx.extend(this.domElement.style, { position: "fixed", display: "none", zIndex: "1001", opacity: 0, WebkitTransition: "-webkit-transform 0.2s ease-out, opacity 0.2s linear", transition: "transform 0.2s ease-out, opacity 0.2s linear" }), document.body.appendChild(this.backgroundElement), document.body.appendChild(this.domElement);
|
|
34950
34999
|
var e2 = this;
|
|
34951
|
-
|
|
35000
|
+
hb.bind(this.backgroundElement, "click", function() {
|
|
34952
35001
|
e2.hide();
|
|
34953
35002
|
});
|
|
34954
35003
|
}
|
|
34955
|
-
return
|
|
35004
|
+
return Qx(t2, [{ key: "show", value: function() {
|
|
34956
35005
|
var t3 = this;
|
|
34957
|
-
this.backgroundElement.style.display = "block", this.domElement.style.display = "block", this.domElement.style.opacity = 0, this.domElement.style.webkitTransform = "scale(1.1)", this.layout(),
|
|
35006
|
+
this.backgroundElement.style.display = "block", this.domElement.style.display = "block", this.domElement.style.opacity = 0, this.domElement.style.webkitTransform = "scale(1.1)", this.layout(), zx.defer(function() {
|
|
34958
35007
|
t3.backgroundElement.style.opacity = 1, t3.domElement.style.opacity = 1, t3.domElement.style.webkitTransform = "scale(1)";
|
|
34959
35008
|
});
|
|
34960
35009
|
} }, { key: "hide", value: function() {
|
|
34961
35010
|
var t3 = this, e2 = function e3() {
|
|
34962
|
-
t3.domElement.style.display = "none", t3.backgroundElement.style.display = "none",
|
|
35011
|
+
t3.domElement.style.display = "none", t3.backgroundElement.style.display = "none", hb.unbind(t3.domElement, "webkitTransitionEnd", e3), hb.unbind(t3.domElement, "transitionend", e3), hb.unbind(t3.domElement, "oTransitionEnd", e3);
|
|
34963
35012
|
};
|
|
34964
|
-
|
|
35013
|
+
hb.bind(this.domElement, "webkitTransitionEnd", e2), hb.bind(this.domElement, "transitionend", e2), hb.bind(this.domElement, "oTransitionEnd", e2), this.backgroundElement.style.opacity = 0, this.domElement.style.opacity = 0, this.domElement.style.webkitTransform = "scale(1.1)";
|
|
34965
35014
|
} }, { key: "layout", value: function() {
|
|
34966
|
-
this.domElement.style.left = window.innerWidth / 2 -
|
|
35015
|
+
this.domElement.style.left = window.innerWidth / 2 - hb.getWidth(this.domElement) / 2 + "px", this.domElement.style.top = window.innerHeight / 2 - hb.getHeight(this.domElement) / 2 + "px";
|
|
34967
35016
|
} }]), t2;
|
|
34968
35017
|
}();
|
|
34969
|
-
|
|
35018
|
+
Tb(function(t2) {
|
|
34970
35019
|
if (t2 && typeof window != "undefined") {
|
|
34971
35020
|
var e2 = document.createElement("style");
|
|
34972
35021
|
return e2.setAttribute("type", "text/css"), e2.innerHTML = t2, document.head.appendChild(e2), t2;
|
|
34973
35022
|
}
|
|
34974
35023
|
}(".dg ul{list-style:none;margin:0;padding:0;width:100%;clear:both}.dg.ac{position:fixed;top:0;left:0;right:0;height:0;z-index:0}.dg:not(.ac) .main{overflow:hidden}.dg.main{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear}.dg.main.taller-than-window{overflow-y:auto}.dg.main.taller-than-window .close-button{opacity:1;margin-top:-1px;border-top:1px solid #2c2c2c}.dg.main ul.closed .close-button{opacity:1 !important}.dg.main:hover .close-button,.dg.main .close-button.drag{opacity:1}.dg.main .close-button{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear;border:0;line-height:19px;height:20px;cursor:pointer;text-align:center;background-color:#000}.dg.main .close-button.close-top{position:relative}.dg.main .close-button.close-bottom{position:absolute}.dg.main .close-button:hover{background-color:#111}.dg.a{float:right;margin-right:15px;overflow-y:visible}.dg.a.has-save>ul.close-top{margin-top:0}.dg.a.has-save>ul.close-bottom{margin-top:27px}.dg.a.has-save>ul.closed{margin-top:0}.dg.a .save-row{top:0;z-index:1002}.dg.a .save-row.close-top{position:relative}.dg.a .save-row.close-bottom{position:fixed}.dg li{-webkit-transition:height .1s ease-out;-o-transition:height .1s ease-out;-moz-transition:height .1s ease-out;transition:height .1s ease-out;-webkit-transition:overflow .1s linear;-o-transition:overflow .1s linear;-moz-transition:overflow .1s linear;transition:overflow .1s linear}.dg li:not(.folder){cursor:auto;height:27px;line-height:27px;padding:0 4px 0 5px}.dg li.folder{padding:0;border-left:4px solid rgba(0,0,0,0)}.dg li.title{cursor:pointer;margin-left:-4px}.dg .closed li:not(.title),.dg .closed ul li,.dg .closed ul li>*{height:0;overflow:hidden;border:0}.dg .cr{clear:both;padding-left:3px;height:27px;overflow:hidden}.dg .property-name{cursor:default;float:left;clear:left;width:40%;overflow:hidden;text-overflow:ellipsis}.dg .cr.function .property-name{width:100%}.dg .c{float:left;width:60%;position:relative}.dg .c input[type=text]{border:0;margin-top:4px;padding:3px;width:100%;float:right}.dg .has-slider input[type=text]{width:30%;margin-left:0}.dg .slider{float:left;width:66%;margin-left:-5px;margin-right:0;height:19px;margin-top:4px}.dg .slider-fg{height:100%}.dg .c input[type=checkbox]{margin-top:7px}.dg .c select{margin-top:5px}.dg .cr.function,.dg .cr.function .property-name,.dg .cr.function *,.dg .cr.boolean,.dg .cr.boolean *{cursor:pointer}.dg .cr.color{overflow:visible}.dg .selector{display:none;position:absolute;margin-left:-9px;margin-top:23px;z-index:10}.dg .c:hover .selector,.dg .selector.drag{display:block}.dg li.save-row{padding:0}.dg li.save-row .button{display:inline-block;padding:0px 6px}.dg.dialogue{background-color:#222;width:460px;padding:15px;font-size:13px;line-height:15px}#dg-new-constructor{padding:10px;color:#222;font-family:Monaco, monospace;font-size:10px;border:0;resize:none;box-shadow:inset 1px 1px 1px #888;word-wrap:break-word;margin:12px 0;display:block;width:440px;overflow-y:scroll;height:100px;position:relative}#dg-local-explain{display:none;font-size:11px;line-height:17px;border-radius:3px;background-color:#333;padding:8px;margin-top:10px}#dg-local-explain code{font-size:10px}#dat-gui-save-locally{display:none}.dg{color:#eee;font:11px 'Lucida Grande', sans-serif;text-shadow:0 -1px 0 #111}.dg.main::-webkit-scrollbar{width:5px;background:#1a1a1a}.dg.main::-webkit-scrollbar-corner{height:0;display:none}.dg.main::-webkit-scrollbar-thumb{border-radius:5px;background:#676767}.dg li:not(.folder){background:#1a1a1a;border-bottom:1px solid #2c2c2c}.dg li.save-row{line-height:25px;background:#dad5cb;border:0}.dg li.save-row select{margin-left:5px;width:108px}.dg li.save-row .button{margin-left:5px;margin-top:1px;border-radius:2px;font-size:9px;line-height:7px;padding:4px 4px 5px 4px;background:#c5bdad;color:#fff;text-shadow:0 1px 0 #b0a58f;box-shadow:0 -1px 0 #b0a58f;cursor:pointer}.dg li.save-row .button.gears{background:#c5bdad url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQJJREFUeNpiYKAU/P//PwGIC/ApCABiBSAW+I8AClAcgKxQ4T9hoMAEUrxx2QSGN6+egDX+/vWT4e7N82AMYoPAx/evwWoYoSYbACX2s7KxCxzcsezDh3evFoDEBYTEEqycggWAzA9AuUSQQgeYPa9fPv6/YWm/Acx5IPb7ty/fw+QZblw67vDs8R0YHyQhgObx+yAJkBqmG5dPPDh1aPOGR/eugW0G4vlIoTIfyFcA+QekhhHJhPdQxbiAIguMBTQZrPD7108M6roWYDFQiIAAv6Aow/1bFwXgis+f2LUAynwoIaNcz8XNx3Dl7MEJUDGQpx9gtQ8YCueB+D26OECAAQDadt7e46D42QAAAABJRU5ErkJggg==) 2px 1px no-repeat;height:7px;width:8px}.dg li.save-row .button:hover{background-color:#bab19e;box-shadow:0 -1px 0 #b0a58f}.dg li.folder{border-bottom:0}.dg li.title{padding-left:16px;background:#000 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;cursor:pointer;border-bottom:1px solid rgba(255,255,255,0.2)}.dg .closed li.title{background-image:url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlGIWqMCbWAEAOw==)}.dg .cr.boolean{border-left:3px solid #806787}.dg .cr.color{border-left:3px solid}.dg .cr.function{border-left:3px solid #e61d5f}.dg .cr.number{border-left:3px solid #2FA1D6}.dg .cr.number input[type=text]{color:#2FA1D6}.dg .cr.string{border-left:3px solid #1ed36f}.dg .cr.string input[type=text]{color:#1ed36f}.dg .cr.function:hover,.dg .cr.boolean:hover{background:#111}.dg .c input[type=text]{background:#303030;outline:none}.dg .c input[type=text]:hover{background:#3c3c3c}.dg .c input[type=text]:focus{background:#494949;color:#fff}.dg .c .slider{background:#303030;cursor:ew-resize}.dg .c .slider-fg{background:#2FA1D6;max-width:100%}.dg .c .slider:hover{background:#3c3c3c}.dg .c .slider:hover .slider-fg{background:#44abda}\n"));
|
|
34975
|
-
var
|
|
35024
|
+
var Mb = function() {
|
|
34976
35025
|
try {
|
|
34977
35026
|
return !!window.localStorage;
|
|
34978
35027
|
} catch (t2) {
|
|
34979
35028
|
return false;
|
|
34980
35029
|
}
|
|
34981
|
-
}(),
|
|
35030
|
+
}(), Rb = void 0, Cb = true, Ib = void 0, Pb = false, Ob = [], Nb = function t2(e2) {
|
|
34982
35031
|
var i2 = this, n2 = e2 || {};
|
|
34983
|
-
this.domElement = document.createElement("div"), this.__ul = document.createElement("ul"), this.domElement.appendChild(this.__ul),
|
|
34984
|
-
var r2, o2 =
|
|
35032
|
+
this.domElement = document.createElement("div"), this.__ul = document.createElement("ul"), this.domElement.appendChild(this.__ul), hb.addClass(this.domElement, "dg"), this.__folders = {}, this.__controllers = [], this.__rememberedObjects = [], this.__rememberedObjectIndecesToControllers = [], this.__listening = [], n2 = zx.defaults(n2, { closeOnTop: false, autoPlace: true, width: t2.DEFAULT_WIDTH }), n2 = zx.defaults(n2, { resizable: n2.autoPlace, hideable: n2.autoPlace }), zx.isUndefined(n2.load) ? n2.load = { preset: "Default" } : n2.preset && (n2.load.preset = n2.preset), zx.isUndefined(n2.parent) && n2.hideable && Ob.push(this), n2.resizable = zx.isUndefined(n2.parent) && n2.resizable, n2.autoPlace && zx.isUndefined(n2.scrollable) && (n2.scrollable = true);
|
|
35033
|
+
var r2, o2 = Mb && localStorage.getItem(kb(this, "isLocal")) === "true", s2 = void 0, a2 = void 0;
|
|
34985
35034
|
if (Object.defineProperties(this, { parent: { get: function() {
|
|
34986
35035
|
return n2.parent;
|
|
34987
35036
|
} }, scrollable: { get: function() {
|
|
@@ -35000,7 +35049,7 @@ void main(void){
|
|
|
35000
35049
|
} }, width: { get: function() {
|
|
35001
35050
|
return n2.width;
|
|
35002
35051
|
}, set: function(t3) {
|
|
35003
|
-
n2.width = t3,
|
|
35052
|
+
n2.width = t3, Vb(i2, t3);
|
|
35004
35053
|
} }, name: { get: function() {
|
|
35005
35054
|
return n2.name;
|
|
35006
35055
|
}, set: function(t3) {
|
|
@@ -35008,50 +35057,50 @@ void main(void){
|
|
|
35008
35057
|
} }, closed: { get: function() {
|
|
35009
35058
|
return n2.closed;
|
|
35010
35059
|
}, set: function(e3) {
|
|
35011
|
-
n2.closed = e3, n2.closed ?
|
|
35060
|
+
n2.closed = e3, n2.closed ? hb.addClass(i2.__ul, t2.CLASS_CLOSED) : hb.removeClass(i2.__ul, t2.CLASS_CLOSED), this.onResize(), i2.__closeButton && (i2.__closeButton.innerHTML = e3 ? t2.TEXT_OPEN : t2.TEXT_CLOSED);
|
|
35012
35061
|
} }, load: { get: function() {
|
|
35013
35062
|
return n2.load;
|
|
35014
35063
|
} }, useLocalStorage: { get: function() {
|
|
35015
35064
|
return o2;
|
|
35016
35065
|
}, set: function(t3) {
|
|
35017
|
-
|
|
35018
|
-
} } }),
|
|
35019
|
-
if (this.closed = n2.closed || false,
|
|
35066
|
+
Mb && (o2 = t3, t3 ? hb.bind(window, "unload", s2) : hb.unbind(window, "unload", s2), localStorage.setItem(kb(i2, "isLocal"), t3));
|
|
35067
|
+
} } }), zx.isUndefined(n2.parent)) {
|
|
35068
|
+
if (this.closed = n2.closed || false, hb.addClass(this.domElement, t2.CLASS_MAIN), hb.makeSelectable(this.domElement, false), Mb && o2) {
|
|
35020
35069
|
i2.useLocalStorage = true;
|
|
35021
|
-
var l2 = localStorage.getItem(
|
|
35070
|
+
var l2 = localStorage.getItem(kb(this, "gui"));
|
|
35022
35071
|
l2 && (n2.load = JSON.parse(l2));
|
|
35023
35072
|
}
|
|
35024
|
-
this.__closeButton = document.createElement("div"), this.__closeButton.innerHTML = t2.TEXT_CLOSED,
|
|
35073
|
+
this.__closeButton = document.createElement("div"), this.__closeButton.innerHTML = t2.TEXT_CLOSED, hb.addClass(this.__closeButton, t2.CLASS_CLOSE_BUTTON), n2.closeOnTop ? (hb.addClass(this.__closeButton, t2.CLASS_CLOSE_TOP), this.domElement.insertBefore(this.__closeButton, this.domElement.childNodes[0])) : (hb.addClass(this.__closeButton, t2.CLASS_CLOSE_BOTTOM), this.domElement.appendChild(this.__closeButton)), hb.bind(this.__closeButton, "click", function() {
|
|
35025
35074
|
i2.closed = !i2.closed;
|
|
35026
35075
|
});
|
|
35027
35076
|
} else {
|
|
35028
35077
|
n2.closed === void 0 && (n2.closed = true);
|
|
35029
35078
|
var h2 = document.createTextNode(n2.name);
|
|
35030
|
-
|
|
35031
|
-
|
|
35079
|
+
hb.addClass(h2, "controller-name"), a2 = Lb(i2, h2);
|
|
35080
|
+
hb.addClass(this.__ul, t2.CLASS_CLOSED), hb.addClass(a2, "title"), hb.bind(a2, "click", function(t3) {
|
|
35032
35081
|
return t3.preventDefault(), i2.closed = !i2.closed, false;
|
|
35033
35082
|
}), n2.closed || (this.closed = false);
|
|
35034
35083
|
}
|
|
35035
|
-
n2.autoPlace && (
|
|
35084
|
+
n2.autoPlace && (zx.isUndefined(n2.parent) && (Cb && (Ib = document.createElement("div"), hb.addClass(Ib, "dg"), hb.addClass(Ib, t2.CLASS_AUTO_PLACE_CONTAINER), document.body.appendChild(Ib), Cb = false), Ib.appendChild(this.domElement), hb.addClass(this.domElement, t2.CLASS_AUTO_PLACE)), this.parent || Vb(i2, n2.width)), this.__resizeHandler = function() {
|
|
35036
35085
|
i2.onResizeDebounced();
|
|
35037
|
-
},
|
|
35038
|
-
|
|
35039
|
-
}, this.saveToLocalStorageIfPossible = s2, n2.parent || ((r2 = i2.getRoot()).width += 1,
|
|
35086
|
+
}, hb.bind(window, "resize", this.__resizeHandler), hb.bind(this.__ul, "webkitTransitionEnd", this.__resizeHandler), hb.bind(this.__ul, "transitionend", this.__resizeHandler), hb.bind(this.__ul, "oTransitionEnd", this.__resizeHandler), this.onResize(), n2.resizable && zb(this), s2 = function() {
|
|
35087
|
+
Mb && localStorage.getItem(kb(i2, "isLocal")) === "true" && localStorage.setItem(kb(i2, "gui"), JSON.stringify(i2.getSaveObject()));
|
|
35088
|
+
}, this.saveToLocalStorageIfPossible = s2, n2.parent || ((r2 = i2.getRoot()).width += 1, zx.defer(function() {
|
|
35040
35089
|
r2.width -= 1;
|
|
35041
35090
|
}));
|
|
35042
35091
|
};
|
|
35043
|
-
function
|
|
35092
|
+
function Lb(t2, e2, i2) {
|
|
35044
35093
|
var n2 = document.createElement("li");
|
|
35045
35094
|
return e2 && n2.appendChild(e2), i2 ? t2.__ul.insertBefore(n2, i2) : t2.__ul.appendChild(n2), t2.onResize(), n2;
|
|
35046
35095
|
}
|
|
35047
|
-
function
|
|
35048
|
-
|
|
35096
|
+
function Db(t2) {
|
|
35097
|
+
hb.unbind(window, "resize", t2.__resizeHandler), t2.saveToLocalStorageIfPossible && hb.unbind(window, "unload", t2.saveToLocalStorageIfPossible);
|
|
35049
35098
|
}
|
|
35050
|
-
function
|
|
35099
|
+
function Fb(t2, e2) {
|
|
35051
35100
|
var i2 = t2.__preset_select[t2.__preset_select.selectedIndex];
|
|
35052
35101
|
i2.innerHTML = e2 ? i2.value + "*" : i2.value;
|
|
35053
35102
|
}
|
|
35054
|
-
function
|
|
35103
|
+
function Bb(t2, e2) {
|
|
35055
35104
|
var i2 = t2.getRoot(), n2 = i2.__rememberedObjects.indexOf(e2.object);
|
|
35056
35105
|
if (n2 !== -1) {
|
|
35057
35106
|
var r2 = i2.__rememberedObjectIndecesToControllers[n2];
|
|
@@ -35071,31 +35120,31 @@ void main(void){
|
|
|
35071
35120
|
}
|
|
35072
35121
|
}
|
|
35073
35122
|
}
|
|
35074
|
-
function
|
|
35123
|
+
function Ub(t2, e2, i2, n2) {
|
|
35075
35124
|
if (e2[i2] === void 0)
|
|
35076
35125
|
throw new Error('Object "' + e2 + '" has no property "' + i2 + '"');
|
|
35077
35126
|
var r2 = void 0;
|
|
35078
35127
|
if (n2.color)
|
|
35079
|
-
r2 = new
|
|
35128
|
+
r2 = new yb(e2, i2);
|
|
35080
35129
|
else {
|
|
35081
35130
|
var o2 = [e2, i2].concat(n2.factoryArgs);
|
|
35082
|
-
r2 =
|
|
35131
|
+
r2 = Sb.apply(t2, o2);
|
|
35083
35132
|
}
|
|
35084
|
-
n2.before instanceof
|
|
35133
|
+
n2.before instanceof ob && (n2.before = n2.before.__li), Bb(t2, r2), hb.addClass(r2.domElement, "c");
|
|
35085
35134
|
var s2 = document.createElement("span");
|
|
35086
|
-
|
|
35135
|
+
hb.addClass(s2, "property-name"), s2.innerHTML = r2.property;
|
|
35087
35136
|
var a2 = document.createElement("div");
|
|
35088
35137
|
a2.appendChild(s2), a2.appendChild(r2.domElement);
|
|
35089
|
-
var l2 =
|
|
35090
|
-
return
|
|
35091
|
-
if (i3.__li = e3, i3.__gui = t3,
|
|
35138
|
+
var l2 = Lb(t2, a2, n2.before);
|
|
35139
|
+
return hb.addClass(l2, Nb.CLASS_CONTROLLER_ROW), r2 instanceof yb ? hb.addClass(l2, "color") : hb.addClass(l2, Jx(r2.getValue())), function(t3, e3, i3) {
|
|
35140
|
+
if (i3.__li = e3, i3.__gui = t3, zx.extend(i3, { options: function(e4) {
|
|
35092
35141
|
if (arguments.length > 1) {
|
|
35093
35142
|
var n4 = i3.__li.nextElementSibling;
|
|
35094
|
-
return i3.remove(),
|
|
35143
|
+
return i3.remove(), Ub(t3, i3.object, i3.property, { before: n4, factoryArgs: [zx.toArray(arguments)] });
|
|
35095
35144
|
}
|
|
35096
|
-
if (
|
|
35145
|
+
if (zx.isArray(e4) || zx.isObject(e4)) {
|
|
35097
35146
|
var r4 = i3.__li.nextElementSibling;
|
|
35098
|
-
return i3.remove(),
|
|
35147
|
+
return i3.remove(), Ub(t3, i3.object, i3.property, { before: r4, factoryArgs: [e4] });
|
|
35099
35148
|
}
|
|
35100
35149
|
}, name: function(t4) {
|
|
35101
35150
|
return i3.__li.firstElementChild.firstElementChild.innerHTML = t4, i3;
|
|
@@ -35103,157 +35152,157 @@ void main(void){
|
|
|
35103
35152
|
return i3.__gui.listen(i3), i3;
|
|
35104
35153
|
}, remove: function() {
|
|
35105
35154
|
return i3.__gui.remove(i3), i3;
|
|
35106
|
-
} }), i3 instanceof
|
|
35107
|
-
var n3 = new
|
|
35108
|
-
|
|
35155
|
+
} }), i3 instanceof vb) {
|
|
35156
|
+
var n3 = new mb(i3.object, i3.property, { min: i3.__min, max: i3.__max, step: i3.__step });
|
|
35157
|
+
zx.each(["updateDisplay", "onChange", "onFinishChange", "step", "min", "max"], function(t4) {
|
|
35109
35158
|
var e4 = i3[t4], r4 = n3[t4];
|
|
35110
35159
|
i3[t4] = n3[t4] = function() {
|
|
35111
35160
|
var t5 = Array.prototype.slice.call(arguments);
|
|
35112
35161
|
return r4.apply(n3, t5), e4.apply(i3, t5);
|
|
35113
35162
|
};
|
|
35114
|
-
}),
|
|
35115
|
-
} else if (i3 instanceof
|
|
35163
|
+
}), hb.addClass(e3, "has-slider"), i3.domElement.insertBefore(n3.domElement, i3.domElement.firstElementChild);
|
|
35164
|
+
} else if (i3 instanceof mb) {
|
|
35116
35165
|
var r3 = function(e4) {
|
|
35117
|
-
if (
|
|
35166
|
+
if (zx.isNumber(i3.__min) && zx.isNumber(i3.__max)) {
|
|
35118
35167
|
var n4 = i3.__li.firstElementChild.firstElementChild.innerHTML, r4 = i3.__gui.__listening.indexOf(i3) > -1;
|
|
35119
35168
|
i3.remove();
|
|
35120
|
-
var o3 =
|
|
35169
|
+
var o3 = Ub(t3, i3.object, i3.property, { before: i3.__li.nextElementSibling, factoryArgs: [i3.__min, i3.__max, i3.__step] });
|
|
35121
35170
|
return o3.name(n4), r4 && o3.listen(), o3;
|
|
35122
35171
|
}
|
|
35123
35172
|
return e4;
|
|
35124
35173
|
};
|
|
35125
|
-
i3.min =
|
|
35174
|
+
i3.min = zx.compose(r3, i3.min), i3.max = zx.compose(r3, i3.max);
|
|
35126
35175
|
} else
|
|
35127
|
-
i3 instanceof
|
|
35128
|
-
|
|
35129
|
-
}),
|
|
35176
|
+
i3 instanceof ub ? (hb.bind(e3, "click", function() {
|
|
35177
|
+
hb.fakeEvent(i3.__checkbox, "click");
|
|
35178
|
+
}), hb.bind(i3.__checkbox, "click", function(t4) {
|
|
35130
35179
|
t4.stopPropagation();
|
|
35131
|
-
})) : i3 instanceof
|
|
35132
|
-
|
|
35133
|
-
}),
|
|
35134
|
-
|
|
35135
|
-
}),
|
|
35136
|
-
|
|
35137
|
-
})) : i3 instanceof
|
|
35180
|
+
})) : i3 instanceof _b ? (hb.bind(e3, "click", function() {
|
|
35181
|
+
hb.fakeEvent(i3.__button, "click");
|
|
35182
|
+
}), hb.bind(e3, "mouseover", function() {
|
|
35183
|
+
hb.addClass(i3.__button, "hover");
|
|
35184
|
+
}), hb.bind(e3, "mouseout", function() {
|
|
35185
|
+
hb.removeClass(i3.__button, "hover");
|
|
35186
|
+
})) : i3 instanceof yb && (hb.addClass(e3, "color"), i3.updateDisplay = zx.compose(function(t4) {
|
|
35138
35187
|
return e3.style.borderLeftColor = i3.__color.toString(), t4;
|
|
35139
35188
|
}, i3.updateDisplay), i3.updateDisplay());
|
|
35140
|
-
i3.setValue =
|
|
35141
|
-
return t3.getRoot().__preset_select && i3.isModified() &&
|
|
35189
|
+
i3.setValue = zx.compose(function(e4) {
|
|
35190
|
+
return t3.getRoot().__preset_select && i3.isModified() && Fb(t3.getRoot(), true), e4;
|
|
35142
35191
|
}, i3.setValue);
|
|
35143
35192
|
}(t2, l2, r2), t2.__controllers.push(r2), r2;
|
|
35144
35193
|
}
|
|
35145
|
-
function
|
|
35194
|
+
function kb(t2, e2) {
|
|
35146
35195
|
return document.location.href + "." + e2;
|
|
35147
35196
|
}
|
|
35148
|
-
function
|
|
35197
|
+
function Gb(t2, e2, i2) {
|
|
35149
35198
|
var n2 = document.createElement("option");
|
|
35150
35199
|
n2.innerHTML = e2, n2.value = e2, t2.__preset_select.appendChild(n2), i2 && (t2.__preset_select.selectedIndex = t2.__preset_select.length - 1);
|
|
35151
35200
|
}
|
|
35152
|
-
function
|
|
35201
|
+
function Hb(t2, e2) {
|
|
35153
35202
|
e2.style.display = t2.useLocalStorage ? "block" : "none";
|
|
35154
35203
|
}
|
|
35155
|
-
function
|
|
35204
|
+
function jb(t2) {
|
|
35156
35205
|
var e2 = t2.__save_row = document.createElement("li");
|
|
35157
|
-
|
|
35206
|
+
hb.addClass(t2.domElement, "has-save"), t2.__ul.insertBefore(e2, t2.__ul.firstChild), hb.addClass(e2, "save-row");
|
|
35158
35207
|
var i2 = document.createElement("span");
|
|
35159
|
-
i2.innerHTML = " ",
|
|
35208
|
+
i2.innerHTML = " ", hb.addClass(i2, "button gears");
|
|
35160
35209
|
var n2 = document.createElement("span");
|
|
35161
|
-
n2.innerHTML = "Save",
|
|
35210
|
+
n2.innerHTML = "Save", hb.addClass(n2, "button"), hb.addClass(n2, "save");
|
|
35162
35211
|
var r2 = document.createElement("span");
|
|
35163
|
-
r2.innerHTML = "New",
|
|
35212
|
+
r2.innerHTML = "New", hb.addClass(r2, "button"), hb.addClass(r2, "save-as");
|
|
35164
35213
|
var o2 = document.createElement("span");
|
|
35165
|
-
o2.innerHTML = "Revert",
|
|
35214
|
+
o2.innerHTML = "Revert", hb.addClass(o2, "button"), hb.addClass(o2, "revert");
|
|
35166
35215
|
var s2 = t2.__preset_select = document.createElement("select");
|
|
35167
|
-
if (t2.load && t2.load.remembered ?
|
|
35168
|
-
|
|
35169
|
-
}) :
|
|
35216
|
+
if (t2.load && t2.load.remembered ? zx.each(t2.load.remembered, function(e3, i3) {
|
|
35217
|
+
Gb(t2, i3, i3 === t2.preset);
|
|
35218
|
+
}) : Gb(t2, "Default", false), hb.bind(s2, "change", function() {
|
|
35170
35219
|
for (var e3 = 0; e3 < t2.__preset_select.length; e3++)
|
|
35171
35220
|
t2.__preset_select[e3].innerHTML = t2.__preset_select[e3].value;
|
|
35172
35221
|
t2.preset = this.value;
|
|
35173
|
-
}), e2.appendChild(s2), e2.appendChild(i2), e2.appendChild(n2), e2.appendChild(r2), e2.appendChild(o2),
|
|
35222
|
+
}), e2.appendChild(s2), e2.appendChild(i2), e2.appendChild(n2), e2.appendChild(r2), e2.appendChild(o2), Mb) {
|
|
35174
35223
|
var a2 = document.getElementById("dg-local-explain"), l2 = document.getElementById("dg-local-storage");
|
|
35175
|
-
document.getElementById("dg-save-locally").style.display = "block", localStorage.getItem(
|
|
35176
|
-
t2.useLocalStorage = !t2.useLocalStorage,
|
|
35224
|
+
document.getElementById("dg-save-locally").style.display = "block", localStorage.getItem(kb(0, "isLocal")) === "true" && l2.setAttribute("checked", "checked"), Hb(t2, a2), hb.bind(l2, "change", function() {
|
|
35225
|
+
t2.useLocalStorage = !t2.useLocalStorage, Hb(t2, a2);
|
|
35177
35226
|
});
|
|
35178
35227
|
}
|
|
35179
35228
|
var h2 = document.getElementById("dg-new-constructor");
|
|
35180
|
-
|
|
35181
|
-
!t3.metaKey || t3.which !== 67 && t3.keyCode !== 67 ||
|
|
35182
|
-
}),
|
|
35183
|
-
h2.innerHTML = JSON.stringify(t2.getSaveObject(), void 0, 2),
|
|
35184
|
-
}),
|
|
35229
|
+
hb.bind(h2, "keydown", function(t3) {
|
|
35230
|
+
!t3.metaKey || t3.which !== 67 && t3.keyCode !== 67 || Rb.hide();
|
|
35231
|
+
}), hb.bind(i2, "click", function() {
|
|
35232
|
+
h2.innerHTML = JSON.stringify(t2.getSaveObject(), void 0, 2), Rb.show(), h2.focus(), h2.select();
|
|
35233
|
+
}), hb.bind(n2, "click", function() {
|
|
35185
35234
|
t2.save();
|
|
35186
|
-
}),
|
|
35235
|
+
}), hb.bind(r2, "click", function() {
|
|
35187
35236
|
var e3 = prompt("Enter a new preset name.");
|
|
35188
35237
|
e3 && t2.saveAs(e3);
|
|
35189
|
-
}),
|
|
35238
|
+
}), hb.bind(o2, "click", function() {
|
|
35190
35239
|
t2.revert();
|
|
35191
35240
|
});
|
|
35192
35241
|
}
|
|
35193
|
-
function
|
|
35242
|
+
function zb(t2) {
|
|
35194
35243
|
var e2 = void 0;
|
|
35195
35244
|
function i2(i3) {
|
|
35196
35245
|
return i3.preventDefault(), t2.width += e2 - i3.clientX, t2.onResize(), e2 = i3.clientX, false;
|
|
35197
35246
|
}
|
|
35198
35247
|
function n2() {
|
|
35199
|
-
|
|
35248
|
+
hb.removeClass(t2.__closeButton, Nb.CLASS_DRAG), hb.unbind(window, "mousemove", i2), hb.unbind(window, "mouseup", n2);
|
|
35200
35249
|
}
|
|
35201
35250
|
function r2(r3) {
|
|
35202
|
-
return r3.preventDefault(), e2 = r3.clientX,
|
|
35251
|
+
return r3.preventDefault(), e2 = r3.clientX, hb.addClass(t2.__closeButton, Nb.CLASS_DRAG), hb.bind(window, "mousemove", i2), hb.bind(window, "mouseup", n2), false;
|
|
35203
35252
|
}
|
|
35204
|
-
t2.__resize_handle = document.createElement("div"),
|
|
35253
|
+
t2.__resize_handle = document.createElement("div"), zx.extend(t2.__resize_handle.style, { width: "6px", marginLeft: "-3px", height: "200px", cursor: "ew-resize", position: "absolute" }), hb.bind(t2.__resize_handle, "mousedown", r2), hb.bind(t2.__closeButton, "mousedown", r2), t2.domElement.insertBefore(t2.__resize_handle, t2.domElement.firstElementChild);
|
|
35205
35254
|
}
|
|
35206
|
-
function
|
|
35255
|
+
function Vb(t2, e2) {
|
|
35207
35256
|
t2.domElement.style.width = e2 + "px", t2.__save_row && t2.autoPlace && (t2.__save_row.style.width = e2 + "px"), t2.__closeButton && (t2.__closeButton.style.width = e2 + "px");
|
|
35208
35257
|
}
|
|
35209
|
-
function
|
|
35258
|
+
function Xb(t2, e2) {
|
|
35210
35259
|
var i2 = {};
|
|
35211
|
-
return
|
|
35260
|
+
return zx.each(t2.__rememberedObjects, function(n2, r2) {
|
|
35212
35261
|
var o2 = {}, s2 = t2.__rememberedObjectIndecesToControllers[r2];
|
|
35213
|
-
|
|
35262
|
+
zx.each(s2, function(t3, i3) {
|
|
35214
35263
|
o2[i3] = e2 ? t3.initialValue : t3.getValue();
|
|
35215
35264
|
}), i2[r2] = o2;
|
|
35216
35265
|
}), i2;
|
|
35217
35266
|
}
|
|
35218
|
-
|
|
35219
|
-
|
|
35220
|
-
t2.domElement.style.display =
|
|
35267
|
+
Nb.toggleHide = function() {
|
|
35268
|
+
Pb = !Pb, zx.each(Ob, function(t2) {
|
|
35269
|
+
t2.domElement.style.display = Pb ? "none" : "";
|
|
35221
35270
|
});
|
|
35222
|
-
},
|
|
35223
|
-
document.activeElement.type === "text" || t2.which !== 72 && t2.keyCode !== 72 ||
|
|
35224
|
-
},
|
|
35225
|
-
return
|
|
35271
|
+
}, Nb.CLASS_AUTO_PLACE = "a", Nb.CLASS_AUTO_PLACE_CONTAINER = "ac", Nb.CLASS_MAIN = "main", Nb.CLASS_CONTROLLER_ROW = "cr", Nb.CLASS_TOO_TALL = "taller-than-window", Nb.CLASS_CLOSED = "closed", Nb.CLASS_CLOSE_BUTTON = "close-button", Nb.CLASS_CLOSE_TOP = "close-top", Nb.CLASS_CLOSE_BOTTOM = "close-bottom", Nb.CLASS_DRAG = "drag", Nb.DEFAULT_WIDTH = 245, Nb.TEXT_CLOSED = "Close Controls", Nb.TEXT_OPEN = "Open Controls", Nb._keydownHandler = function(t2) {
|
|
35272
|
+
document.activeElement.type === "text" || t2.which !== 72 && t2.keyCode !== 72 || Nb.toggleHide();
|
|
35273
|
+
}, hb.bind(window, "keydown", Nb._keydownHandler, false), zx.extend(Nb.prototype, { add: function(t2, e2) {
|
|
35274
|
+
return Ub(this, t2, e2, { factoryArgs: Array.prototype.slice.call(arguments, 2) });
|
|
35226
35275
|
}, addColor: function(t2, e2) {
|
|
35227
|
-
return
|
|
35276
|
+
return Ub(this, t2, e2, { color: true });
|
|
35228
35277
|
}, remove: function(t2) {
|
|
35229
35278
|
this.__ul.removeChild(t2.__li), this.__controllers.splice(this.__controllers.indexOf(t2), 1);
|
|
35230
35279
|
var e2 = this;
|
|
35231
|
-
|
|
35280
|
+
zx.defer(function() {
|
|
35232
35281
|
e2.onResize();
|
|
35233
35282
|
});
|
|
35234
35283
|
}, destroy: function() {
|
|
35235
35284
|
if (this.parent)
|
|
35236
35285
|
throw new Error("Only the root GUI should be removed with .destroy(). For subfolders, use gui.removeFolder(folder) instead.");
|
|
35237
|
-
this.autoPlace &&
|
|
35286
|
+
this.autoPlace && Ib.removeChild(this.domElement);
|
|
35238
35287
|
var t2 = this;
|
|
35239
|
-
|
|
35288
|
+
zx.each(this.__folders, function(e2) {
|
|
35240
35289
|
t2.removeFolder(e2);
|
|
35241
|
-
}),
|
|
35290
|
+
}), hb.unbind(window, "keydown", Nb._keydownHandler, false), Db(this);
|
|
35242
35291
|
}, addFolder: function(t2) {
|
|
35243
35292
|
if (this.__folders[t2] !== void 0)
|
|
35244
35293
|
throw new Error('You already have a folder in this GUI by the name "' + t2 + '"');
|
|
35245
35294
|
var e2 = { name: t2, parent: this };
|
|
35246
35295
|
e2.autoPlace = this.autoPlace, this.load && this.load.folders && this.load.folders[t2] && (e2.closed = this.load.folders[t2].closed, e2.load = this.load.folders[t2]);
|
|
35247
|
-
var i2 = new
|
|
35296
|
+
var i2 = new Nb(e2);
|
|
35248
35297
|
this.__folders[t2] = i2;
|
|
35249
|
-
var n2 =
|
|
35250
|
-
return
|
|
35298
|
+
var n2 = Lb(this, i2.domElement);
|
|
35299
|
+
return hb.addClass(n2, "folder"), i2;
|
|
35251
35300
|
}, removeFolder: function(t2) {
|
|
35252
|
-
this.__ul.removeChild(t2.domElement.parentElement), delete this.__folders[t2.name], this.load && this.load.folders && this.load.folders[t2.name] && delete this.load.folders[t2.name],
|
|
35301
|
+
this.__ul.removeChild(t2.domElement.parentElement), delete this.__folders[t2.name], this.load && this.load.folders && this.load.folders[t2.name] && delete this.load.folders[t2.name], Db(t2);
|
|
35253
35302
|
var e2 = this;
|
|
35254
|
-
|
|
35303
|
+
zx.each(t2.__folders, function(e3) {
|
|
35255
35304
|
t2.removeFolder(e3);
|
|
35256
|
-
}),
|
|
35305
|
+
}), zx.defer(function() {
|
|
35257
35306
|
e2.onResize();
|
|
35258
35307
|
});
|
|
35259
35308
|
}, open: function() {
|
|
@@ -35267,60 +35316,60 @@ void main(void){
|
|
|
35267
35316
|
}, onResize: function() {
|
|
35268
35317
|
var t2 = this.getRoot();
|
|
35269
35318
|
if (t2.scrollable) {
|
|
35270
|
-
var e2 =
|
|
35271
|
-
|
|
35272
|
-
t2.autoPlace && e3 === t2.__save_row || (i2 +=
|
|
35273
|
-
}), window.innerHeight - e2 - 20 < i2 ? (
|
|
35319
|
+
var e2 = hb.getOffset(t2.__ul).top, i2 = 0;
|
|
35320
|
+
zx.each(t2.__ul.childNodes, function(e3) {
|
|
35321
|
+
t2.autoPlace && e3 === t2.__save_row || (i2 += hb.getHeight(e3));
|
|
35322
|
+
}), window.innerHeight - e2 - 20 < i2 ? (hb.addClass(t2.domElement, Nb.CLASS_TOO_TALL), t2.__ul.style.height = window.innerHeight - e2 - 20 + "px") : (hb.removeClass(t2.domElement, Nb.CLASS_TOO_TALL), t2.__ul.style.height = "auto");
|
|
35274
35323
|
}
|
|
35275
|
-
t2.__resize_handle &&
|
|
35324
|
+
t2.__resize_handle && zx.defer(function() {
|
|
35276
35325
|
t2.__resize_handle.style.height = t2.__ul.offsetHeight + "px";
|
|
35277
35326
|
}), t2.__closeButton && (t2.__closeButton.style.width = t2.width + "px");
|
|
35278
|
-
}, onResizeDebounced:
|
|
35327
|
+
}, onResizeDebounced: zx.debounce(function() {
|
|
35279
35328
|
this.onResize();
|
|
35280
35329
|
}, 50), remember: function() {
|
|
35281
|
-
if (
|
|
35330
|
+
if (zx.isUndefined(Rb) && ((Rb = new Ab()).domElement.innerHTML = Eb), this.parent)
|
|
35282
35331
|
throw new Error("You can only call remember on a top level GUI.");
|
|
35283
35332
|
var t2 = this;
|
|
35284
|
-
|
|
35285
|
-
t2.__rememberedObjects.length === 0 &&
|
|
35286
|
-
}), this.autoPlace &&
|
|
35333
|
+
zx.each(Array.prototype.slice.call(arguments), function(e2) {
|
|
35334
|
+
t2.__rememberedObjects.length === 0 && jb(t2), t2.__rememberedObjects.indexOf(e2) === -1 && t2.__rememberedObjects.push(e2);
|
|
35335
|
+
}), this.autoPlace && Vb(this, this.width);
|
|
35287
35336
|
}, getRoot: function() {
|
|
35288
35337
|
for (var t2 = this; t2.parent; )
|
|
35289
35338
|
t2 = t2.parent;
|
|
35290
35339
|
return t2;
|
|
35291
35340
|
}, getSaveObject: function() {
|
|
35292
35341
|
var t2 = this.load;
|
|
35293
|
-
return t2.closed = this.closed, this.__rememberedObjects.length > 0 && (t2.preset = this.preset, t2.remembered || (t2.remembered = {}), t2.remembered[this.preset] =
|
|
35342
|
+
return t2.closed = this.closed, this.__rememberedObjects.length > 0 && (t2.preset = this.preset, t2.remembered || (t2.remembered = {}), t2.remembered[this.preset] = Xb(this)), t2.folders = {}, zx.each(this.__folders, function(e2, i2) {
|
|
35294
35343
|
t2.folders[i2] = e2.getSaveObject();
|
|
35295
35344
|
}), t2;
|
|
35296
35345
|
}, save: function() {
|
|
35297
|
-
this.load.remembered || (this.load.remembered = {}), this.load.remembered[this.preset] =
|
|
35346
|
+
this.load.remembered || (this.load.remembered = {}), this.load.remembered[this.preset] = Xb(this), Fb(this, false), this.saveToLocalStorageIfPossible();
|
|
35298
35347
|
}, saveAs: function(t2) {
|
|
35299
|
-
this.load.remembered || (this.load.remembered = {}, this.load.remembered.Default =
|
|
35348
|
+
this.load.remembered || (this.load.remembered = {}, this.load.remembered.Default = Xb(this, true)), this.load.remembered[t2] = Xb(this), this.preset = t2, Gb(this, t2, true), this.saveToLocalStorageIfPossible();
|
|
35300
35349
|
}, revert: function(t2) {
|
|
35301
|
-
|
|
35302
|
-
this.getRoot().load.remembered ?
|
|
35303
|
-
}, this),
|
|
35350
|
+
zx.each(this.__controllers, function(e2) {
|
|
35351
|
+
this.getRoot().load.remembered ? Bb(t2 || this.getRoot(), e2) : e2.setValue(e2.initialValue), e2.__onFinishChange && e2.__onFinishChange.call(e2, e2.getValue());
|
|
35352
|
+
}, this), zx.each(this.__folders, function(t3) {
|
|
35304
35353
|
t3.revert(t3);
|
|
35305
|
-
}), t2 ||
|
|
35354
|
+
}), t2 || Fb(this.getRoot(), false);
|
|
35306
35355
|
}, listen: function(t2) {
|
|
35307
35356
|
var e2 = this.__listening.length === 0;
|
|
35308
35357
|
this.__listening.push(t2), e2 && function t3(e3) {
|
|
35309
|
-
e3.length !== 0 &&
|
|
35358
|
+
e3.length !== 0 && wb.call(window, function() {
|
|
35310
35359
|
t3(e3);
|
|
35311
35360
|
});
|
|
35312
|
-
|
|
35361
|
+
zx.each(e3, function(t4) {
|
|
35313
35362
|
t4.updateDisplay();
|
|
35314
35363
|
});
|
|
35315
35364
|
}(this.__listening);
|
|
35316
35365
|
}, updateDisplay: function() {
|
|
35317
|
-
|
|
35366
|
+
zx.each(this.__controllers, function(t2) {
|
|
35318
35367
|
t2.updateDisplay();
|
|
35319
|
-
}),
|
|
35368
|
+
}), zx.each(this.__folders, function(t2) {
|
|
35320
35369
|
t2.updateDisplay();
|
|
35321
35370
|
});
|
|
35322
35371
|
} });
|
|
35323
|
-
var
|
|
35372
|
+
var Wb = Nb, Yb = function() {
|
|
35324
35373
|
function t2(t3) {
|
|
35325
35374
|
this.player = t3;
|
|
35326
35375
|
}
|
|
@@ -35362,10 +35411,10 @@ void main(void){
|
|
|
35362
35411
|
}, set: function(t3) {
|
|
35363
35412
|
this.player.updateConfig({ transactionBgColor: t3 });
|
|
35364
35413
|
}, enumerable: false, configurable: true }), t2;
|
|
35365
|
-
}(),
|
|
35414
|
+
}(), qb = function() {
|
|
35366
35415
|
function t2(t3, e2) {
|
|
35367
35416
|
var i2;
|
|
35368
|
-
this.config = new
|
|
35417
|
+
this.config = new Yb(t3), this.anchor = e2, i2 = this.createControllerGUI(), this.gui = i2[0], this.controller = i2[1], this.createStats();
|
|
35369
35418
|
}
|
|
35370
35419
|
return t2.prototype.createStats = function() {
|
|
35371
35420
|
var t3 = this;
|
|
@@ -35373,7 +35422,7 @@ void main(void){
|
|
|
35373
35422
|
t3.controller.frameRate.updateDisplay(), t3.controller.size.updateDisplay(), t3.controller.minFPS.updateDisplay(), t3.controller.drawFrames.updateDisplay(), t3.controller.maxFPS.updateDisplay(), t3.controller.resolution.updateDisplay(), t3.controller.autoFps.updateDisplay(), t3.controller.autoResolution.updateDisplay(), t3.controller.drawCall.updateDisplay();
|
|
35374
35423
|
}, 16);
|
|
35375
35424
|
}, t2.prototype.createControllerGUI = function() {
|
|
35376
|
-
var t3 = new
|
|
35425
|
+
var t3 = new Wb({ autoPlace: true, closed: true });
|
|
35377
35426
|
t3.domElement.style.opacity = ".6", t3.domElement.style.transformOrigin = "100% 0", t3.domElement.style.transform = "scale(1)", this.anchor.appendChild(t3.domElement), t3.domElement.style.position = "absolute", t3.domElement.style.right = "0", t3.domElement.style.top = "0", t3.domElement.style.zIndex = "2";
|
|
35378
35427
|
var e2 = { frameRate: t3.add(this.config, "frameRate"), drawFrames: t3.add(this.config, "drawFrames"), drawCall: t3.add(this.config, "drawCall"), size: t3.add(this.config, "size"), minFPS: t3.add(this.config, "minFPS", 0, 60), maxFPS: t3.add(this.config, "maxFPS", 0, 60), resolution: t3.add(this.config, "resolution", 0.5, 8, 0.5), autoResolution: t3.add(this.config, "autoResolution"), autoFps: t3.add(this.config, "autoFPS"), transactionBgColor: t3.addColor(this.config, "backgroundColor") };
|
|
35379
35428
|
return [t3, e2];
|
|
@@ -35383,7 +35432,7 @@ void main(void){
|
|
|
35383
35432
|
} catch (t3) {
|
|
35384
35433
|
}
|
|
35385
35434
|
}, t2;
|
|
35386
|
-
}(),
|
|
35435
|
+
}(), Zb = function() {
|
|
35387
35436
|
function t2(t3) {
|
|
35388
35437
|
var e2 = this;
|
|
35389
35438
|
this.tasks = [], this.isDestroy = false, this.isScheduling = false, this.schedule = function() {
|
|
@@ -35399,7 +35448,7 @@ void main(void){
|
|
|
35399
35448
|
}, t2.prototype.addTask = function(t3) {
|
|
35400
35449
|
this.tasks.push(t3), this.isScheduling || this.schedule();
|
|
35401
35450
|
}, t2;
|
|
35402
|
-
}(),
|
|
35451
|
+
}(), Jb = function() {
|
|
35403
35452
|
function t2(t3) {
|
|
35404
35453
|
this.autoUnlock = /* @__PURE__ */ Object.create(null), this.locks = /* @__PURE__ */ Object.create(null), this.available = false, this.available = t3;
|
|
35405
35454
|
}
|
|
@@ -35413,7 +35462,7 @@ void main(void){
|
|
|
35413
35462
|
}, t2.prototype.isLocked = function(t3) {
|
|
35414
35463
|
return !!this.available && !!this.locks[t3];
|
|
35415
35464
|
}, t2;
|
|
35416
|
-
}(),
|
|
35465
|
+
}(), Kb = function() {
|
|
35417
35466
|
function t2() {
|
|
35418
35467
|
var t3 = this;
|
|
35419
35468
|
this.tasks = [], this.isDestroy = false, this.isScheduling = false, this.schedule = function() {
|
|
@@ -35436,7 +35485,7 @@ void main(void){
|
|
|
35436
35485
|
}, t2.prototype.destroy = function() {
|
|
35437
35486
|
this.isDestroy = true;
|
|
35438
35487
|
}, t2;
|
|
35439
|
-
}(),
|
|
35488
|
+
}(), Qb = function(t2, e2, i2, n2) {
|
|
35440
35489
|
return new (i2 || (i2 = Promise))(function(r2, o2) {
|
|
35441
35490
|
function s2(t3) {
|
|
35442
35491
|
try {
|
|
@@ -35460,7 +35509,7 @@ void main(void){
|
|
|
35460
35509
|
}
|
|
35461
35510
|
l2((n2 = n2.apply(t2, e2 || [])).next());
|
|
35462
35511
|
});
|
|
35463
|
-
},
|
|
35512
|
+
}, $b = function(t2, e2) {
|
|
35464
35513
|
var i2, n2, r2, o2, s2 = { label: 0, sent: function() {
|
|
35465
35514
|
if (1 & r2[0])
|
|
35466
35515
|
throw r2[1];
|
|
@@ -35524,13 +35573,13 @@ void main(void){
|
|
|
35524
35573
|
};
|
|
35525
35574
|
}
|
|
35526
35575
|
};
|
|
35527
|
-
function
|
|
35528
|
-
return
|
|
35576
|
+
function tT(t2, e2, i2) {
|
|
35577
|
+
return Qb(this, void 0, void 0, function() {
|
|
35529
35578
|
var n2, r2, o2, s2;
|
|
35530
|
-
return
|
|
35579
|
+
return $b(this, function(a2) {
|
|
35531
35580
|
switch (a2.label) {
|
|
35532
35581
|
case 0:
|
|
35533
|
-
return n2 = document.createElement("div"), (r2 = new
|
|
35582
|
+
return n2 = document.createElement("div"), (r2 = new pT({ anchor: n2, renderOptions: { minFPS: 1, maxFPS: 1, resolution: 1 }, mode: "local", interactive: false, useLocalCache: true })).setResource(t2, e2), [4, r2.getSlideCountAsync()];
|
|
35534
35583
|
case 1:
|
|
35535
35584
|
o2 = a2.sent(), s2 = 1, a2.label = 2;
|
|
35536
35585
|
case 2:
|
|
@@ -35545,7 +35594,7 @@ void main(void){
|
|
|
35545
35594
|
});
|
|
35546
35595
|
});
|
|
35547
35596
|
}
|
|
35548
|
-
var
|
|
35597
|
+
var eT = function() {
|
|
35549
35598
|
var t2 = function(e2, i2) {
|
|
35550
35599
|
return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
|
|
35551
35600
|
t3.__proto__ = e3;
|
|
@@ -35562,14 +35611,14 @@ void main(void){
|
|
|
35562
35611
|
}
|
|
35563
35612
|
t2(e2, i2), e2.prototype = i2 === null ? Object.create(i2) : (n2.prototype = i2.prototype, new n2());
|
|
35564
35613
|
};
|
|
35565
|
-
}(),
|
|
35566
|
-
return (
|
|
35614
|
+
}(), iT = function() {
|
|
35615
|
+
return (iT = Object.assign || function(t2) {
|
|
35567
35616
|
for (var e2, i2 = 1, n2 = arguments.length; i2 < n2; i2++)
|
|
35568
35617
|
for (var r2 in e2 = arguments[i2])
|
|
35569
35618
|
Object.prototype.hasOwnProperty.call(e2, r2) && (t2[r2] = e2[r2]);
|
|
35570
35619
|
return t2;
|
|
35571
35620
|
}).apply(this, arguments);
|
|
35572
|
-
},
|
|
35621
|
+
}, nT = function(t2, e2, i2, n2) {
|
|
35573
35622
|
var r2, o2 = arguments.length, s2 = o2 < 3 ? e2 : n2 === null ? n2 = Object.getOwnPropertyDescriptor(e2, i2) : n2;
|
|
35574
35623
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
35575
35624
|
s2 = Reflect.decorate(t2, e2, i2, n2);
|
|
@@ -35577,7 +35626,7 @@ void main(void){
|
|
|
35577
35626
|
for (var a2 = t2.length - 1; a2 >= 0; a2--)
|
|
35578
35627
|
(r2 = t2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(e2, i2, s2) : r2(e2, i2)) || s2);
|
|
35579
35628
|
return o2 > 3 && s2 && Object.defineProperty(e2, i2, s2), s2;
|
|
35580
|
-
},
|
|
35629
|
+
}, rT = function(t2, e2, i2, n2) {
|
|
35581
35630
|
return new (i2 || (i2 = Promise))(function(r2, o2) {
|
|
35582
35631
|
function s2(t3) {
|
|
35583
35632
|
try {
|
|
@@ -35601,7 +35650,7 @@ void main(void){
|
|
|
35601
35650
|
}
|
|
35602
35651
|
l2((n2 = n2.apply(t2, e2 || [])).next());
|
|
35603
35652
|
});
|
|
35604
|
-
},
|
|
35653
|
+
}, oT = function(t2, e2) {
|
|
35605
35654
|
var i2, n2, r2, o2, s2 = { label: 0, sent: function() {
|
|
35606
35655
|
if (1 & r2[0])
|
|
35607
35656
|
throw r2[1];
|
|
@@ -35664,20 +35713,20 @@ void main(void){
|
|
|
35664
35713
|
}([o3, a3]);
|
|
35665
35714
|
};
|
|
35666
35715
|
}
|
|
35667
|
-
},
|
|
35716
|
+
}, sT = window.ResizeObserver || Dx, aT = function(t2) {
|
|
35668
35717
|
return new Promise(function(e2) {
|
|
35669
35718
|
return setTimeout(e2, t2);
|
|
35670
35719
|
});
|
|
35671
35720
|
};
|
|
35672
|
-
function
|
|
35673
|
-
return
|
|
35721
|
+
function lT(t2, e2) {
|
|
35722
|
+
return rT(this, void 0, void 0, function() {
|
|
35674
35723
|
var i2;
|
|
35675
|
-
return
|
|
35724
|
+
return oT(this, function(n2) {
|
|
35676
35725
|
switch (n2.label) {
|
|
35677
35726
|
case 0:
|
|
35678
35727
|
i2 = Date.now(), n2.label = 1;
|
|
35679
35728
|
case 1:
|
|
35680
|
-
return !t2() && Date.now() - i2 < e2 ? [4,
|
|
35729
|
+
return !t2() && Date.now() - i2 < e2 ? [4, aT(50)] : [3, 3];
|
|
35681
35730
|
case 2:
|
|
35682
35731
|
return n2.sent(), i2 = Date.now(), [3, 1];
|
|
35683
35732
|
case 3:
|
|
@@ -35686,27 +35735,27 @@ void main(void){
|
|
|
35686
35735
|
});
|
|
35687
35736
|
});
|
|
35688
35737
|
}
|
|
35689
|
-
var
|
|
35738
|
+
var hT = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", syncEventLag: "syncEventLag", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange", slideStepEnd: "slideEnd", slideStepStart: "slideStart" }, uT = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, cT = "";
|
|
35690
35739
|
try {
|
|
35691
|
-
|
|
35740
|
+
cT = "1.0.0";
|
|
35692
35741
|
} catch (t2) {
|
|
35693
|
-
|
|
35742
|
+
cT = "-dev";
|
|
35694
35743
|
}
|
|
35695
|
-
var
|
|
35744
|
+
var dT = null;
|
|
35696
35745
|
try {
|
|
35697
|
-
(
|
|
35746
|
+
(dT = o.createInstance({ name: "__slide_local_log__", driver: o.INDEXEDDB, version: 1 })).ready(function(t2) {
|
|
35698
35747
|
}).catch(function(t2) {
|
|
35699
35748
|
});
|
|
35700
35749
|
} catch (t2) {
|
|
35701
35750
|
}
|
|
35702
|
-
var
|
|
35751
|
+
var pT = function(t2) {
|
|
35703
35752
|
function e2(i3) {
|
|
35704
35753
|
var n3 = t2.call(this) || this;
|
|
35705
|
-
return n3.iosResetCache = [], n3.needClearCacheImage = false, n3.version =
|
|
35754
|
+
return n3.iosResetCache = [], n3.needClearCacheImage = false, n3.version = cT, n3.__slideState = Jy()(uT), n3.userInputTime = 0, n3.isSyncingSlideState = false, n3.frozenTaskManager = new Kb(), n3.randomId = r(), n3.resize = false, n3.isAnimating = false, n3.renderingTaskManager = new kx(), n3.isLoading = false, n3.interactive = true, n3.renderingIndex = 0, n3.frameWidth = 1, n3.frameHeight = 1, n3.frame = document.createElement("div"), n3.canvasContainer = document.createElement("div"), n3.medianController = document.createElement("div"), n3.frameResizeObserver = new sT(function() {
|
|
35706
35755
|
return n3.frameResizeHandler();
|
|
35707
35756
|
}), n3.timestamp = function() {
|
|
35708
35757
|
return Date.now();
|
|
35709
|
-
}, n3.mode = "local", n3.enableGlobalClick = false, n3.lastEmitedState = null, n3.playerController = null, n3.isInitResized = false, n3.cacheImage = document.createElement("img"), n3.isTouchStart = false, n3.touchStartId = void 0, n3.taskId = "", n3.volumeAdjuster = new
|
|
35758
|
+
}, n3.mode = "local", n3.enableGlobalClick = false, n3.lastEmitedState = null, n3.playerController = null, n3.isInitResized = false, n3.cacheImage = document.createElement("img"), n3.isTouchStart = false, n3.touchStartId = void 0, n3.taskId = "", n3.volumeAdjuster = new Uy(), n3.designWidth = 0, n3.designHeight = 0, n3._slideCount = 0, n3._dispatchIncrId = 0, n3._receiveIncrId = 0, n3._updateVolumeByStaticAdjuster = function(t3) {
|
|
35710
35759
|
n3.volumeAdjuster.volume = t3;
|
|
35711
35760
|
}, n3.recoverHandler = function(t3) {
|
|
35712
35761
|
if (t3.data.type === "@slide/_recover_" && t3.data.slideId === n3.randomId) {
|
|
@@ -35735,12 +35784,12 @@ void main(void){
|
|
|
35735
35784
|
}, n3.handleSlideRef = function() {
|
|
35736
35785
|
console.log(n3), window.__slide = n3;
|
|
35737
35786
|
}, n3.receiveSyncHandler = function(t3) {
|
|
35738
|
-
return
|
|
35787
|
+
return rT(n3, void 0, void 0, function() {
|
|
35739
35788
|
var e3, i4, n4, r2, o2, s2 = this;
|
|
35740
|
-
return
|
|
35789
|
+
return oT(this, function(a2) {
|
|
35741
35790
|
switch (a2.label) {
|
|
35742
35791
|
case 0:
|
|
35743
|
-
return Vm()(t3.incrId) && (t3.incrId && t3.incrId - this._receiveIncrId != 1 && this.emit(
|
|
35792
|
+
return Vm()(t3.incrId) && (t3.incrId && t3.incrId - this._receiveIncrId != 1 && this.emit(hT.syncEventLag), this._receiveIncrId = t3.incrId || 0), this.logger.info("sync receive " + JSON.stringify(t3), this.taskId), t3.type !== "nextStep" ? [3, 1] : (this.mainSeqStep !== t3.next - 1 && this.mainSeqStep + 1 !== this.mainSeqLength && this.player ? (this.setMainSeqStep(t3.next, "start"), this.player.nextTick(function() {
|
|
35744
35793
|
s2.doNextStep(true, t3.clientId || "");
|
|
35745
35794
|
})) : this.doNextStep(true, t3.clientId || ""), [3, 6]);
|
|
35746
35795
|
case 1:
|
|
@@ -35761,16 +35810,16 @@ void main(void){
|
|
|
35761
35810
|
});
|
|
35762
35811
|
});
|
|
35763
35812
|
}, n3.handlePrevSlide = function(t3) {
|
|
35764
|
-
return t3 === void 0 && (t3 = false),
|
|
35813
|
+
return t3 === void 0 && (t3 = false), rT(n3, void 0, void 0, function() {
|
|
35765
35814
|
var e3;
|
|
35766
|
-
return
|
|
35815
|
+
return oT(this, function(i4) {
|
|
35767
35816
|
return this.player ? ((e3 = this.player.prevSlideIndex) >= 1 && (this.config.navigatorDelegate ? this.config.navigatorDelegate.gotoPage(e3) : t3 ? this.doRenderSlide(e3, false) : this.renderSlide(e3, false)), [2]) : [2];
|
|
35768
35817
|
});
|
|
35769
35818
|
});
|
|
35770
35819
|
}, n3.handleNextSlide = function(t3) {
|
|
35771
|
-
return t3 === void 0 && (t3 = false),
|
|
35820
|
+
return t3 === void 0 && (t3 = false), rT(n3, void 0, void 0, function() {
|
|
35772
35821
|
var e3;
|
|
35773
|
-
return
|
|
35822
|
+
return oT(this, function(i4) {
|
|
35774
35823
|
return this.player ? ((e3 = this.player.nextSlideIndex) <= this.slideCount && (this.config.navigatorDelegate ? this.config.navigatorDelegate.gotoPage(e3) : t3 ? this.doRenderSlide(e3, true) : this.renderSlide(e3, true)), [2]) : [2];
|
|
35775
35824
|
});
|
|
35776
35825
|
});
|
|
@@ -35795,27 +35844,27 @@ void main(void){
|
|
|
35795
35844
|
e2.appendLogString("ERROR - " + new Date().toISOString() + " - {" + n3.randomId + "}[" + i4 + "] " + t3 + "\n");
|
|
35796
35845
|
var o2 = (r2 = n3.config.logger) === null || r2 === void 0 ? void 0 : r2.error;
|
|
35797
35846
|
o2 && o2("[" + i4 + "] " + t3);
|
|
35798
|
-
} }, n3.logger.info("new slide with clientId: " + n3.config.clientId, n3.taskId), n3.anchor = n3.config.anchor, n3.syncQueue = new
|
|
35847
|
+
} }, n3.logger.info("new slide with clientId: " + n3.config.clientId, n3.taskId), n3.anchor = n3.config.anchor, n3.syncQueue = new Zb(n3.receiveSyncHandler), n3.lock = new Jb(n3.mode === "interactive"), n3.cacheImage.style.position = "absolute", n3.cacheImage.style.zIndex = "100", n3.setMedianControllerAttribute(), n3.canvasContainer.style.position = "relative", n3.canvasContainer.style.fontSize = "0", n3.canvasContainer.appendChild(n3.medianController), n3.frame.appendChild(n3.canvasContainer), n3.frameResizeObserver.observe(n3.frame), n3.on(hT.syncReceive, function(t3) {
|
|
35799
35848
|
n3.lock.unlock(t3.type, t3.uuid), n3.syncQueue.addTask(t3);
|
|
35800
35849
|
}), n3.renderingTaskManager.eventHub.on("task-error", function(t3) {
|
|
35801
35850
|
var e3 = t3.error, i4 = t3.task, r2 = Tm.transform(e3);
|
|
35802
35851
|
r2.errorType === gm.RuntimeWarn ? n3.logger.warn(r2.message, n3.taskId) : n3.logger.error(r2.message, n3.taskId), n3.isLoading = false, n3.reportError(r2, i4.slideIndex);
|
|
35803
|
-
}), window.addEventListener("__slide_ref__", n3.handleSlideRef), n3.resizeView =
|
|
35852
|
+
}), window.addEventListener("__slide_ref__", n3.handleSlideRef), n3.resizeView = qy()(n3.resizeView.bind(n3), 50), n3.player = n3.initPlayer(n3.config), n3.config.controller && n3.createController(), n3.player.view && n3.canvasContainer.appendChild(n3.player.view), n3.handleViewClick = qy()(n3.handleViewClick, 300), n3.player.errorChannel.on("error", function(t3, e3) {
|
|
35804
35853
|
var i4 = Tm.transform(t3);
|
|
35805
35854
|
i4.errorType === gm.RuntimeWarn ? n3.logger.warn(i4.message, n3.taskId) : n3.logger.error(i4.message, n3.taskId), n3.isLoading = false, e3 === n3.renderingIndex && n3.reportError(t3, e3);
|
|
35806
35855
|
}), window.addEventListener("message", n3.recoverHandler), e2.volumeAdjuster.on("update", n3._updateVolumeByStaticAdjuster), n3;
|
|
35807
35856
|
}
|
|
35808
35857
|
var i2, n2;
|
|
35809
|
-
return
|
|
35810
|
-
return t3 === void 0 && (t3 = false),
|
|
35811
|
-
return
|
|
35858
|
+
return eT(e2, t2), e2.flushLog = function(t3) {
|
|
35859
|
+
return t3 === void 0 && (t3 = false), rT(this, void 0, void 0, function() {
|
|
35860
|
+
return oT(this, function(i3) {
|
|
35812
35861
|
switch (i3.label) {
|
|
35813
35862
|
case 0:
|
|
35814
35863
|
if (!(e2._tempLog.length > 131072 || t3 && e2._tempLog.length > 0))
|
|
35815
35864
|
return [3, 5];
|
|
35816
35865
|
i3.label = 1;
|
|
35817
35866
|
case 1:
|
|
35818
|
-
return i3.trys.push([1, 3, , 4]), [4,
|
|
35867
|
+
return i3.trys.push([1, 3, , 4]), [4, dT == null ? void 0 : dT.setItem("run_time_log_" + e2._tempLogIndex, e2._tempLog)];
|
|
35819
35868
|
case 2:
|
|
35820
35869
|
return i3.sent(), [3, 4];
|
|
35821
35870
|
case 3:
|
|
@@ -35830,18 +35879,18 @@ void main(void){
|
|
|
35830
35879
|
}, e2.stopRemoteLog = function() {
|
|
35831
35880
|
e2.remoteLogAddress = null;
|
|
35832
35881
|
}, e2.startRemoteLog = function(t3) {
|
|
35833
|
-
return
|
|
35882
|
+
return rT(this, void 0, void 0, function() {
|
|
35834
35883
|
var i3, n3, r2, o2, s2;
|
|
35835
|
-
return
|
|
35884
|
+
return oT(this, function(a2) {
|
|
35836
35885
|
switch (a2.label) {
|
|
35837
35886
|
case 0:
|
|
35838
35887
|
return e2.remoteLogAddress = t3, [4, e2.flushLog(true)];
|
|
35839
35888
|
case 1:
|
|
35840
|
-
if (a2.sent(), !
|
|
35889
|
+
if (a2.sent(), !dT)
|
|
35841
35890
|
return [3, 13];
|
|
35842
35891
|
i3 = [], a2.label = 2;
|
|
35843
35892
|
case 2:
|
|
35844
|
-
return a2.trys.push([2, 4, , 5]), [4,
|
|
35893
|
+
return a2.trys.push([2, 4, , 5]), [4, dT.keys()];
|
|
35845
35894
|
case 3:
|
|
35846
35895
|
return i3 = (a2.sent() || []).sort(function(t4, e3) {
|
|
35847
35896
|
return parseInt(t4.replace("run_time_log_", "")) - parseInt(e3.replace("run_time_log_", ""));
|
|
@@ -35855,7 +35904,7 @@ void main(void){
|
|
|
35855
35904
|
return [3, 13];
|
|
35856
35905
|
o2 = r2[n3], o2.replace("run_time_log_", ""), s2 = "", a2.label = 7;
|
|
35857
35906
|
case 7:
|
|
35858
|
-
return a2.trys.push([7, 9, , 10]), [4,
|
|
35907
|
+
return a2.trys.push([7, 9, , 10]), [4, dT.getItem(o2)];
|
|
35859
35908
|
case 8:
|
|
35860
35909
|
return s2 = a2.sent() || "", [3, 10];
|
|
35861
35910
|
case 9:
|
|
@@ -35877,68 +35926,68 @@ void main(void){
|
|
|
35877
35926
|
}, Object.defineProperty(e2.prototype, "dispatchIncrId", { get: function() {
|
|
35878
35927
|
return this._dispatchIncrId++;
|
|
35879
35928
|
}, enumerable: false, configurable: true }), e2.prototype.reportError = function(t3, e3) {
|
|
35880
|
-
this.emit(
|
|
35929
|
+
this.emit(hT.renderError, { error: t3, index: e3 }), window.postMessage({ type: "@slide/_error_", errorType: t3.errorType, errorMsg: t3.errorMsg, slideId: this.randomId, slideIndex: e3, customMessage: "@slide/_error_" }, "*");
|
|
35881
35930
|
}, e2.prototype.initSlideConfig = function(t3) {
|
|
35882
|
-
return t3.timestamp && (this.timestamp = t3.timestamp), t3.rtcAudio && (
|
|
35931
|
+
return t3.timestamp && (this.timestamp = t3.timestamp), t3.rtcAudio && (jy.RtcAudioClazz = t3.rtcAudio), this.mode = t3.mode, this.anchor = t3.anchor, this.anchor.appendChild(this.frame), this.enableGlobalClick = !$a()(t3.enableGlobalClick) && t3.enableGlobalClick, this.resize = t3.resize || false, this.interactive = t3.interactive, this.frame.style.cssText = t3.fixedFrameSize ? "width:" + t3.fixedFrameSize.width + "px;height:" + t3.fixedFrameSize.height + "px;" : "width:100%;height:100%", this.frame.style.cssText += "display:flex;justify-content:center;align-items:center;visibility:hidden;position:relative;z-index:1;", t3.fixedFrameSize && (this.frameWidth = t3.fixedFrameSize.width, this.frameHeight = t3.fixedFrameSize.height), t3;
|
|
35883
35932
|
}, e2.prototype.initPlayer = function(t3) {
|
|
35884
|
-
var e3, i3, n3, r2 = this, o2 = new
|
|
35885
|
-
return o2.setInteractive(this.interactive), o2.updateConfig(t3.renderOptions || {}), o2.on(
|
|
35886
|
-
r2.isLoading = true, r2.emit(
|
|
35887
|
-
}), o2.on(
|
|
35888
|
-
r2.isLoading = false, r2.player && (r2.designHeight = r2.player.designHeight, r2.designWidth = r2.player.designWidth, r2.cacheImage.style.width = r2.player.designWidth + "px", r2.cacheImage.style.height = r2.player.designHeight + "px", r2._slideCount = r2.player.slideCount), r2.emit(
|
|
35889
|
-
}), o2.on(
|
|
35890
|
-
r2.__slideState.currentSlideIndex = t4, r2.emitStateChange(), r2.emit(
|
|
35891
|
-
}), o2.on(
|
|
35933
|
+
var e3, i3, n3, r2 = this, o2 = new jy({ mode: this.mode, useLocalCache: !!$a()(this.config.useLocalCache) || this.config.useLocalCache, logger: this.logger, resourceTimeout: $a()(this.config.resourceTimeout) ? 15e3 : this.config.resourceTimeout, loadDelegate: this.config.loaderDelegate, volumeAdjuster: this.volumeAdjuster, urlInterrupter: this.config.urlInterrupter }, t3.renderOptions);
|
|
35934
|
+
return o2.setInteractive(this.interactive), o2.updateConfig(t3.renderOptions || {}), o2.on(Hy.renderStart, function(t4) {
|
|
35935
|
+
r2.isLoading = true, r2.emit(hT.renderStart, t4);
|
|
35936
|
+
}), o2.on(Hy.renderEnd, function(t4) {
|
|
35937
|
+
r2.isLoading = false, r2.player && (r2.designHeight = r2.player.designHeight, r2.designWidth = r2.player.designWidth, r2.cacheImage.style.width = r2.player.designWidth + "px", r2.cacheImage.style.height = r2.player.designHeight + "px", r2._slideCount = r2.player.slideCount), r2.emit(hT.renderEnd, t4);
|
|
35938
|
+
}), o2.on(Hy.slideChange, function(t4) {
|
|
35939
|
+
r2.__slideState.currentSlideIndex = t4, r2.emitStateChange(), r2.emit(hT.slideChange, t4);
|
|
35940
|
+
}), o2.on(Hy.mainSeqStateChange, function(t4) {
|
|
35892
35941
|
r2.__slideState.mainSeqState = t4, r2.emitStateChange();
|
|
35893
|
-
}), o2.on(
|
|
35942
|
+
}), o2.on(Hy.mainSeqStepChange, function(t4) {
|
|
35894
35943
|
r2.__slideState.mainSeqStep = t4, r2.emitStateChange();
|
|
35895
|
-
}), o2.on(
|
|
35944
|
+
}), o2.on(Hy.interactiveSeqStateChange, function(t4) {
|
|
35896
35945
|
var e4 = t4.id, i4 = t4.state;
|
|
35897
35946
|
r2.__slideState.interactiveSeqState[e4] = i4, r2.emitStateChange();
|
|
35898
|
-
}), o2.on(
|
|
35899
|
-
r2.isAnimating !== true && (r2.isAnimating = true, r2.emit(
|
|
35900
|
-
}), o2.on(
|
|
35901
|
-
r2.isAnimating !== false && (r2.isAnimating = false, r2.emit(
|
|
35902
|
-
}), o2.on(
|
|
35947
|
+
}), o2.on(Hy.animateStart, function() {
|
|
35948
|
+
r2.isAnimating !== true && (r2.isAnimating = true, r2.emit(hT.animateStart));
|
|
35949
|
+
}), o2.on(Hy.animateEnd, function() {
|
|
35950
|
+
r2.isAnimating !== false && (r2.isAnimating = false, r2.emit(hT.animateEnd));
|
|
35951
|
+
}), o2.on(Hy.interactiveSeqAction, function(t4) {
|
|
35903
35952
|
var e4 = t4.action, i4 = t4.seqId;
|
|
35904
35953
|
r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "interactiveAnim", action: e4, seqId: i4 }), r2.emitStateChange();
|
|
35905
|
-
}), o2.on(
|
|
35906
|
-
r2.emit(
|
|
35907
|
-
}), o2.on(
|
|
35908
|
-
r2.emit(
|
|
35909
|
-
}), o2.on(
|
|
35954
|
+
}), o2.on(Hy.mainSeqStepStart, function(t4) {
|
|
35955
|
+
r2.emit(hT.mainSeqStepStart, t4);
|
|
35956
|
+
}), o2.on(Hy.mainSeqStepEnd, function(t4) {
|
|
35957
|
+
r2.emit(hT.mainSeqStepEnd, t4);
|
|
35958
|
+
}), o2.on(Hy.mediaPlay, function(t4) {
|
|
35910
35959
|
var e4, i4 = (e4 = r2.__slideState.mediaState[t4.id]) !== null && e4 !== void 0 ? e4 : {};
|
|
35911
35960
|
i4.type = "play", i4.time = r2.timestamp() - 1e3 * t4.time, r2.__slideState.mediaState[t4.id] = i4, t4._stateOnly ? r2.config.mode === "interactive" && r2.receiveSyncHandler({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaPlay", id: t4.id, state: i4 }).catch(function(t5) {
|
|
35912
35961
|
r2.logger.error(t5 == null ? void 0 : t5.message, r2.taskId);
|
|
35913
35962
|
}) : r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaPlay", id: t4.id, state: i4 }), r2.emitStateChange();
|
|
35914
|
-
}), o2.on(
|
|
35963
|
+
}), o2.on(Hy.mediaStop, function(t4) {
|
|
35915
35964
|
delete r2.__slideState.mediaState[t4.id], r2.emitStateChange();
|
|
35916
|
-
}), o2.on(
|
|
35965
|
+
}), o2.on(Hy.mediaPause, function(t4) {
|
|
35917
35966
|
var e4, i4 = (e4 = r2.__slideState.mediaState[t4.id]) !== null && e4 !== void 0 ? e4 : {};
|
|
35918
35967
|
i4.type = "pause", i4.time = t4.time, r2.__slideState.mediaState[t4.id] = i4, t4._stateOnly ? r2.config.mode === "interactive" && r2.receiveSyncHandler({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaPause", id: t4.id, state: i4 }).catch(function(t5) {
|
|
35919
35968
|
r2.logger.error(t5 == null ? void 0 : t5.message, r2.taskId);
|
|
35920
35969
|
}) : r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaPause", id: t4.id, state: i4 }), r2.emitStateChange();
|
|
35921
|
-
}), o2.on(
|
|
35970
|
+
}), o2.on(Hy.mediaSeek, function(t4) {
|
|
35922
35971
|
var e4, i4 = (e4 = r2.__slideState.mediaState[t4.id]) !== null && e4 !== void 0 ? e4 : {};
|
|
35923
35972
|
t4.isPlaying ? (i4.type = "play", i4.time = r2.timestamp() - 1e3 * t4.time) : (i4.type = "pause", i4.time = t4.time), r2.__slideState.mediaState[t4.id] = i4, r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaSeek", id: t4.id, time: t4.time, state: i4 }), r2.emitStateChange();
|
|
35924
|
-
}), o2.on(
|
|
35973
|
+
}), o2.on(Hy.requestPrevSlide, function(t4) {
|
|
35925
35974
|
r2.handlePrevSlide(t4);
|
|
35926
|
-
}), o2.on(
|
|
35975
|
+
}), o2.on(Hy.requestNextSlide, function(t4) {
|
|
35927
35976
|
r2.handleNextSlide(t4);
|
|
35928
|
-
}), o2.on(
|
|
35977
|
+
}), o2.on(Hy.requestGotoSlide, function(t4) {
|
|
35929
35978
|
r2.config.navigatorDelegate ? r2.config.navigatorDelegate.gotoPage(t4) : r2.handleGotoSlide(t4);
|
|
35930
|
-
}), o2.on(
|
|
35979
|
+
}), o2.on(Hy.fullscreenChange, function(t4) {
|
|
35931
35980
|
var e4, i4 = t4.targetId, n4 = t4.state;
|
|
35932
35981
|
r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaFullscreen", targetId: i4, state: n4 });
|
|
35933
35982
|
var o3 = (e4 = r2.__slideState.mediaState[i4]) !== null && e4 !== void 0 ? e4 : {};
|
|
35934
35983
|
o3.fullscreen = n4, r2.__slideState.mediaState[i4] = o3, r2.emitStateChange();
|
|
35935
|
-
}), o2.on(
|
|
35984
|
+
}), o2.on(Hy.changeLocalFullscreenState, function(t4) {
|
|
35936
35985
|
t4.slideIndex === r2.__slideState.currentSlideIndex ? (t4.targetId && r2.__slideState.mediaState[t4.targetId] && (r2.__slideState.mediaState[t4.targetId].fullscreen = t4.status), r2.emitStateChange()) : r2.logger.info("event slideIndex: " + t4.slideIndex + ", current slideIndex: " + r2.__slideState.currentSlideIndex, r2.taskId);
|
|
35937
|
-
}), (e3 = o2.view) === null || e3 === void 0 || e3.addEventListener("touchend", this.handleViewTouchEnd), (i3 = o2.view) === null || i3 === void 0 || i3.addEventListener("touchstart", this.handleViewTouchStart), (n3 = o2.view) === null || n3 === void 0 || n3.addEventListener("click", this.handleViewClick), o2.on(
|
|
35986
|
+
}), (e3 = o2.view) === null || e3 === void 0 || e3.addEventListener("touchend", this.handleViewTouchEnd), (i3 = o2.view) === null || i3 === void 0 || i3.addEventListener("touchstart", this.handleViewTouchStart), (n3 = o2.view) === null || n3 === void 0 || n3.addEventListener("click", this.handleViewClick), o2.on(Hy.userInput, this.userInputHandle), o2;
|
|
35938
35987
|
}, e2.prototype.createController = function() {
|
|
35939
|
-
this.player && (this.playerController = new
|
|
35988
|
+
this.player && (this.playerController = new qb(this.player, this.frame));
|
|
35940
35989
|
}, e2.prototype.setMedianControllerAttribute = function() {
|
|
35941
|
-
this.medianController.className = "median-container", this.medianController.style.position = "absolute", this.medianController.style.left = "0", this.medianController.style.top = "0", this.medianController.style.zIndex = "2";
|
|
35990
|
+
this.medianController.className = "median-container", this.medianController.style.position = "absolute", this.medianController.style.left = "0", this.medianController.style.top = "0", this.medianController.style.zIndex = "2", this.medianController.style.fontSize = "16px";
|
|
35942
35991
|
}, e2.prototype.frameResizeHandler = function() {
|
|
35943
35992
|
if (!this.config.fixedFrameSize) {
|
|
35944
35993
|
var t3 = this.frame.getBoundingClientRect(), e3 = t3.width, i3 = t3.height;
|
|
@@ -35956,9 +36005,9 @@ void main(void){
|
|
|
35956
36005
|
}
|
|
35957
36006
|
}, e2.prototype.setSlideState = function(t3) {
|
|
35958
36007
|
var e3, i3, n3;
|
|
35959
|
-
return
|
|
36008
|
+
return rT(this, void 0, void 0, function() {
|
|
35960
36009
|
var r2, o2 = this;
|
|
35961
|
-
return
|
|
36010
|
+
return oT(this, function(s2) {
|
|
35962
36011
|
switch (s2.label) {
|
|
35963
36012
|
case 0:
|
|
35964
36013
|
return this.isSyncingSlideState = true, this.logger.info("stateChange receive " + JSON.stringify(t3), this.taskId), t3.taskId && t3.taskId !== this.__slideState.taskId && (this.__slideState.taskId = t3.taskId, (e3 = this.player) === null || e3 === void 0 || e3.setResourceData(t3.taskId, this.__slideState.url)), t3.url && t3.url !== this.__slideState.url && (this.__slideState.url = t3.url, (i3 = this.player) === null || i3 === void 0 || i3.setResourceData(this.__slideState.taskId, t3.url)), Number.isInteger(t3.currentSlideIndex) && t3.currentSlideIndex !== this.__slideState.currentSlideIndex ? (this.__slideState.currentSlideIndex = t3.currentSlideIndex, [4, this.doRenderSlide(t3.currentSlideIndex)]) : [3, 2];
|
|
@@ -35970,7 +36019,7 @@ void main(void){
|
|
|
35970
36019
|
return ((e4 = o2.player) === null || e4 === void 0 ? void 0 : e4.currentIndex) === t3.currentSlideIndex && ((i4 = o2.player) === null || i4 === void 0 ? void 0 : i4.currentStage);
|
|
35971
36020
|
}, 3e3)];
|
|
35972
36021
|
case 3:
|
|
35973
|
-
return s2.sent(), r2 = false, Number.isInteger(t3.mainSeqStep) && t3.mainSeqStep !== this.__slideState.mainSeqStep && (r2 = true, this.__slideState.mainSeqStep = t3.mainSeqStep), t3.mainSeqState && t3.mainSeqState !== this.__slideState.mainSeqState && (r2 = true, this.__slideState.mainSeqState = t3.mainSeqState), r2 && this.setMainSeqStep(this.__slideState.mainSeqStep, this.__slideState.mainSeqState === "idle" ? "start" : "end"), t3.interactiveSeqState && (this.initInteractiveSeq(t3), this.__slideState.interactiveSeqState = t3.interactiveSeqState), [4,
|
|
36022
|
+
return s2.sent(), r2 = false, Number.isInteger(t3.mainSeqStep) && t3.mainSeqStep !== this.__slideState.mainSeqStep && (r2 = true, this.__slideState.mainSeqStep = t3.mainSeqStep), t3.mainSeqState && t3.mainSeqState !== this.__slideState.mainSeqState && (r2 = true, this.__slideState.mainSeqState = t3.mainSeqState), r2 && this.setMainSeqStep(this.__slideState.mainSeqStep, this.__slideState.mainSeqState === "idle" ? "start" : "end"), t3.interactiveSeqState && (this.initInteractiveSeq(t3), this.__slideState.interactiveSeqState = t3.interactiveSeqState), [4, aT(1500)];
|
|
35974
36023
|
case 4:
|
|
35975
36024
|
return s2.sent(), t3.mediaState && (this.initMedia(t3), this.__slideState.mediaState = t3.mediaState), this.isSyncingSlideState = false, [2];
|
|
35976
36025
|
}
|
|
@@ -35996,9 +36045,9 @@ void main(void){
|
|
|
35996
36045
|
}, Object.defineProperty(e2.prototype, "slideCount", { get: function() {
|
|
35997
36046
|
return this._slideCount;
|
|
35998
36047
|
}, enumerable: false, configurable: true }), e2.prototype.getSizeAsync = function() {
|
|
35999
|
-
return
|
|
36048
|
+
return rT(this, void 0, void 0, function() {
|
|
36000
36049
|
var t3;
|
|
36001
|
-
return
|
|
36050
|
+
return oT(this, function(e3) {
|
|
36002
36051
|
switch (e3.label) {
|
|
36003
36052
|
case 0:
|
|
36004
36053
|
if (this.width > 0 && this.height > 0)
|
|
@@ -36018,8 +36067,8 @@ void main(void){
|
|
|
36018
36067
|
});
|
|
36019
36068
|
});
|
|
36020
36069
|
}, e2.prototype.getSlideCountAsync = function() {
|
|
36021
|
-
return
|
|
36022
|
-
return
|
|
36070
|
+
return rT(this, void 0, void 0, function() {
|
|
36071
|
+
return oT(this, function(t3) {
|
|
36023
36072
|
switch (t3.label) {
|
|
36024
36073
|
case 0:
|
|
36025
36074
|
if (this._slideCount > 0)
|
|
@@ -36075,12 +36124,12 @@ void main(void){
|
|
|
36075
36124
|
this.taskId = t3, (i3 = this.player) === null || i3 === void 0 || i3.setResourceData(t3, e3), this.__slideState.taskId = t3, this.__slideState.url = e3, this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "setResource", taskId: t3, url: e3 });
|
|
36076
36125
|
}, e2.prototype._renderSlide = function(t3) {
|
|
36077
36126
|
var e3;
|
|
36078
|
-
return
|
|
36127
|
+
return rT(this, void 0, void 0, function() {
|
|
36079
36128
|
var i3 = this;
|
|
36080
|
-
return
|
|
36129
|
+
return oT(this, function(n3) {
|
|
36081
36130
|
switch (n3.label) {
|
|
36082
36131
|
case 0:
|
|
36083
|
-
return this.renderingIndex = t3, this.player && t3 === this.player.currentIndex ? [2] : ((
|
|
36132
|
+
return this.renderingIndex = t3, this.player && t3 === this.player.currentIndex ? [2] : ((jy.platform.isIOS() || jy.platform.isAndroid()) && this.iosResetCache.indexOf(t3) < 0 && this.iosResetCache.push(t3), [4, (e3 = this.player) === null || e3 === void 0 ? void 0 : e3.renderSlide(t3)]);
|
|
36084
36133
|
case 1:
|
|
36085
36134
|
return n3.sent(), this.__slideState.currentSlideIndex = t3, this.resizeView(), this.__slideState.interactiveSeqState = {}, this.__slideState.mediaState = {}, this.emitStateChange(), setTimeout(function() {
|
|
36086
36135
|
var t4, e4;
|
|
@@ -36099,8 +36148,8 @@ void main(void){
|
|
|
36099
36148
|
(i3 !== this.player.currentIndex || this.renderingTaskManager.hasStartTask()) && (i3 > this.slideCount && this.slideCount > 0 || this.poseRenderSlide(i3, e3));
|
|
36100
36149
|
}
|
|
36101
36150
|
}, e2.prototype.needCreateNewPlayer = function() {
|
|
36102
|
-
var t3 =
|
|
36103
|
-
return (
|
|
36151
|
+
var t3 = jy.platform.isLowGpuMemory() ? 15 : 30;
|
|
36152
|
+
return (jy.platform.isIOS() || jy.platform.isAndroid()) && this.iosResetCache.length > t3;
|
|
36104
36153
|
}, e2.prototype.poseRenderSlide = function(t3, e3) {
|
|
36105
36154
|
this.mode === "interactive" ? this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "renderSlide", index: t3, isForward: e3 }) : this.mode === "sync" ? (this.doRenderSlide(t3, e3), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "renderSlide", index: t3, isForward: e3 })) : this.doRenderSlide(t3, e3);
|
|
36106
36155
|
}, e2.prototype.doRenderSlide = function(t3, e3) {
|
|
@@ -36121,7 +36170,7 @@ void main(void){
|
|
|
36121
36170
|
var t3, e3;
|
|
36122
36171
|
return (e3 = (t3 = this.player) === null || t3 === void 0 ? void 0 : t3.getSnapshot()) !== null && e3 !== void 0 ? e3 : null;
|
|
36123
36172
|
}, e2.prototype.nextStep = function() {
|
|
36124
|
-
!this.isLoading && this.player && this.interactive ? (this.hasNextStep() || this.emit(
|
|
36173
|
+
!this.isLoading && this.player && this.interactive ? (this.hasNextStep() || this.emit(hT.slideStepEnd), this.player.mainSeqHasNextStep() ? this.mode === "interactive" ? this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "nextStep", next: this.player.mainSeqStep() + 1 }) : this.mode === "sync" ? (this.doNextStep(false, ""), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "nextStep", next: this.player.mainSeqStep() })) : this.doNextStep(false, "") : this.handleNextSlide()) : this.logger.info("prevent nextStep. " + this.isLoading + " " + this.player + " " + this.interactive, this.taskId);
|
|
36125
36174
|
}, e2.prototype.doNextStep = function(t3, e3) {
|
|
36126
36175
|
if (this.player) {
|
|
36127
36176
|
var i3 = !this.config.clientId || e3 === this.config.clientId;
|
|
@@ -36130,7 +36179,7 @@ void main(void){
|
|
|
36130
36179
|
this.__slideState.mainSeqStep = n3, this.emitStateChange();
|
|
36131
36180
|
}
|
|
36132
36181
|
}, e2.prototype.prevStep = function() {
|
|
36133
|
-
!this.isLoading && this.player && this.interactive ? (this.hasPrevStep() || this.emit(
|
|
36182
|
+
!this.isLoading && this.player && this.interactive ? (this.hasPrevStep() || this.emit(hT.slideStepStart), this.player.mainSeqHasPrevStep() ? this.mode === "interactive" ? this.emitSyncDispatch({ type: "prevStep", slideIndex: this.__slideState.currentSlideIndex, next: this.player.mainSeqStep() - 1 }) : this.mode === "sync" ? (this.doPrevStep(), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "prevStep", next: this.player.mainSeqStep() })) : this.doPrevStep() : this.handlePrevSlide()) : this.logger.info("prevent nextStep. " + this.isLoading + " " + this.player + " " + this.interactive, this.taskId);
|
|
36134
36183
|
}, e2.prototype.doPrevStep = function(t3) {
|
|
36135
36184
|
if (t3 === void 0 && (t3 = false), this.player) {
|
|
36136
36185
|
this.player.prevStep(t3);
|
|
@@ -36142,14 +36191,14 @@ void main(void){
|
|
|
36142
36191
|
}, e2.prototype.emitStateChange = function() {
|
|
36143
36192
|
if (this.mode !== "local" && !this.isSyncingSlideState) {
|
|
36144
36193
|
var t3 = this.slideState;
|
|
36145
|
-
!
|
|
36194
|
+
!Wy()(this.lastEmitedState, t3) && this.isSlideStateReady(t3) && (this.lastEmitedState = t3, this.emit(hT.stateChange, t3), this.logger.info("stateChange dispatch " + JSON.stringify(this.slideState), this.taskId));
|
|
36146
36195
|
}
|
|
36147
36196
|
}, e2.prototype.emitSyncDispatch = function(t3) {
|
|
36148
36197
|
if (!this.lock.isLocked(t3.type)) {
|
|
36149
36198
|
var e3 = Math.random().toString(32).substr(2);
|
|
36150
36199
|
this.lock.addLock(t3.type, e3);
|
|
36151
|
-
var i3 =
|
|
36152
|
-
this.config.mode === "sync" && (i3.incrId = this.dispatchIncrId), this.emit(
|
|
36200
|
+
var i3 = iT(iT({}, t3), { uuid: e3, clientId: this.config.clientId });
|
|
36201
|
+
this.config.mode === "sync" && (i3.incrId = this.dispatchIncrId), this.emit(hT.syncDispatch, i3), this.logger.info("sync dispatch " + JSON.stringify(i3), this.taskId);
|
|
36153
36202
|
}
|
|
36154
36203
|
}, e2.prototype.setMainSeqStep = function(t3, e3) {
|
|
36155
36204
|
var i3;
|
|
@@ -36165,9 +36214,9 @@ void main(void){
|
|
|
36165
36214
|
(t3 = this.player) === null || t3 === void 0 || t3.resume();
|
|
36166
36215
|
}, e2.prototype._doFrozen = function() {
|
|
36167
36216
|
var t3;
|
|
36168
|
-
return
|
|
36217
|
+
return rT(this, void 0, void 0, function() {
|
|
36169
36218
|
var e3, i3, n3, r2 = this;
|
|
36170
|
-
return
|
|
36219
|
+
return oT(this, function(o2) {
|
|
36171
36220
|
switch (o2.label) {
|
|
36172
36221
|
case 0:
|
|
36173
36222
|
return this.logger.info("frozen with player[" + !!this.player + "]", this.taskId), this.view && this.player ? [4, this.player.clock.waitUntil(function() {
|
|
@@ -36175,7 +36224,7 @@ void main(void){
|
|
|
36175
36224
|
}, 6e4)] : [3, 2];
|
|
36176
36225
|
case 1:
|
|
36177
36226
|
for (i3 in o2.sent(), e3 = this.player.getSnapshot() || "", this.cacheImage.src = e3, this.frame.appendChild(this.cacheImage), this.player.destroy(), (t3 = this.playerController) === null || t3 === void 0 || t3.destroy(), this.player = void 0, this.__slideState.mediaState)
|
|
36178
|
-
n3 = this.__slideState.mediaState[i3], this.__slideState.mediaState[i3] =
|
|
36227
|
+
n3 = this.__slideState.mediaState[i3], this.__slideState.mediaState[i3] = iT(iT({}, n3), { frozenTime: this.timestamp() });
|
|
36179
36228
|
o2.label = 2;
|
|
36180
36229
|
case 2:
|
|
36181
36230
|
return [2];
|
|
@@ -36189,14 +36238,14 @@ void main(void){
|
|
|
36189
36238
|
});
|
|
36190
36239
|
}, e2.prototype._doRelease = function() {
|
|
36191
36240
|
var t3, e3;
|
|
36192
|
-
return
|
|
36241
|
+
return rT(this, void 0, void 0, function() {
|
|
36193
36242
|
var i3, n3, r2, o2;
|
|
36194
|
-
return
|
|
36243
|
+
return oT(this, function(s2) {
|
|
36195
36244
|
switch (s2.label) {
|
|
36196
36245
|
case 0:
|
|
36197
36246
|
if (this.logger.info("do release slide", this.taskId), this.player)
|
|
36198
36247
|
return [2];
|
|
36199
|
-
for (n3 in this.player = this.initPlayer(this.config), ((t3 = this.config) === null || t3 === void 0 ? void 0 : t3.controller) && this.createController(), this.player.view && (this.canvasContainer.appendChild(this.player.view), this.player.view.style.visibility = "hidden"), i3 = this.__slideState, this.__slideState =
|
|
36248
|
+
for (n3 in this.player = this.initPlayer(this.config), ((t3 = this.config) === null || t3 === void 0 ? void 0 : t3.controller) && this.createController(), this.player.view && (this.canvasContainer.appendChild(this.player.view), this.player.view.style.visibility = "hidden"), i3 = this.__slideState, this.__slideState = Jy()(uT), i3.mediaState)
|
|
36200
36249
|
(r2 = i3.mediaState[n3]).type === "play" && (o2 = Math.max((e3 = r2.frozenTime) !== null && e3 !== void 0 ? e3 : 0, r2.time), r2.time = this.timestamp() - (o2 - r2.time), r2.frozenTime = void 0);
|
|
36201
36250
|
return [4, this.setSlideState(i3)];
|
|
36202
36251
|
case 1:
|
|
@@ -36235,14 +36284,14 @@ void main(void){
|
|
|
36235
36284
|
}
|
|
36236
36285
|
e2.volumeAdjuster.off("update", this._updateVolumeByStaticAdjuster);
|
|
36237
36286
|
}, e2.prototype.waitLoadEnd = function() {
|
|
36238
|
-
return
|
|
36287
|
+
return rT(this, void 0, void 0, function() {
|
|
36239
36288
|
var t3;
|
|
36240
|
-
return
|
|
36289
|
+
return oT(this, function(e3) {
|
|
36241
36290
|
switch (e3.label) {
|
|
36242
36291
|
case 0:
|
|
36243
36292
|
t3 = 0, e3.label = 1;
|
|
36244
36293
|
case 1:
|
|
36245
|
-
return this.isLoading && t3 < 10 ? [4,
|
|
36294
|
+
return this.isLoading && t3 < 10 ? [4, aT(100)] : [3, 3];
|
|
36246
36295
|
case 2:
|
|
36247
36296
|
return e3.sent(), t3 += 1, [3, 1];
|
|
36248
36297
|
case 3:
|
|
@@ -36271,14 +36320,14 @@ void main(void){
|
|
|
36271
36320
|
var t3 = this.player.currentIndex === 1, e3 = this.mainSeqLength === 0 || this.mainSeqStep === 0, i3 = this.mainSeqState === "idle" || this.mainSeqState === null;
|
|
36272
36321
|
return !(t3 && e3 && i3);
|
|
36273
36322
|
}, e2.prototype.snapshot = function() {
|
|
36274
|
-
return
|
|
36275
|
-
return
|
|
36323
|
+
return rT(this, void 0, void 0, function() {
|
|
36324
|
+
return oT(this, function(t3) {
|
|
36276
36325
|
return this.player ? [2, this.player.getSnapshot()] : [2, null];
|
|
36277
36326
|
});
|
|
36278
36327
|
});
|
|
36279
36328
|
}, e2.prototype.snapshotWithTimingEnd = function(t3) {
|
|
36280
|
-
return
|
|
36281
|
-
return
|
|
36329
|
+
return rT(this, void 0, void 0, function() {
|
|
36330
|
+
return oT(this, function(e3) {
|
|
36282
36331
|
return this.player ? [2, this.player.snapshotWithTimingEnd(t3)] : [2, null];
|
|
36283
36332
|
});
|
|
36284
36333
|
});
|
|
@@ -36287,7 +36336,7 @@ void main(void){
|
|
|
36287
36336
|
}, e2.prototype.getGlobalVolume = function() {
|
|
36288
36337
|
return this.volumeAdjuster.volume;
|
|
36289
36338
|
}, e2.clearLocalCache = function() {
|
|
36290
|
-
|
|
36339
|
+
jy.clearLocalCache();
|
|
36291
36340
|
}, e2.disposeLocalCache = function() {
|
|
36292
36341
|
}, i2 = e2, e2.instances = [], e2._tempFrozenIds = [], e2._tempLog = "", e2._tempLogIndex = 1, e2.remoteLogAddress = null, e2.usePlugin = function(t3) {
|
|
36293
36342
|
t3.context({ logger: { info: function(t4) {
|
|
@@ -36297,10 +36346,10 @@ void main(void){
|
|
|
36297
36346
|
}, error: function(t4) {
|
|
36298
36347
|
e2.appendLogString("ERROR - " + new Date().toISOString() + " - " + t4 + "\n");
|
|
36299
36348
|
} } }), function(t4) {
|
|
36300
|
-
var e3 =
|
|
36301
|
-
e3.push(t4),
|
|
36349
|
+
var e3 = zy.get(t4.hookPoint) || [];
|
|
36350
|
+
e3.push(t4), zy.set(t4.hookPoint, e3);
|
|
36302
36351
|
}(t3);
|
|
36303
|
-
}, e2.volumeAdjuster = new
|
|
36352
|
+
}, e2.volumeAdjuster = new Uy(), e2.handleFrozenAllSlide = function() {
|
|
36304
36353
|
e2.instances.forEach(function(t3) {
|
|
36305
36354
|
t3.player && (e2._tempFrozenIds.push(t3.randomId), t3.frozen());
|
|
36306
36355
|
});
|
|
@@ -36312,18 +36361,18 @@ void main(void){
|
|
|
36312
36361
|
i3 && i3.release();
|
|
36313
36362
|
}), e2._tempFrozenIds = [];
|
|
36314
36363
|
}, e2.handleLogReport = function(t3) {
|
|
36315
|
-
return
|
|
36364
|
+
return rT(void 0, void 0, void 0, function() {
|
|
36316
36365
|
var n3, r2, o2, s2, a2, l2;
|
|
36317
|
-
return
|
|
36366
|
+
return oT(i2, function(i3) {
|
|
36318
36367
|
switch (i3.label) {
|
|
36319
36368
|
case 0:
|
|
36320
36369
|
return [4, e2.flushLog(true)];
|
|
36321
36370
|
case 1:
|
|
36322
|
-
if (i3.sent(), !
|
|
36371
|
+
if (i3.sent(), !dT)
|
|
36323
36372
|
return [3, 12];
|
|
36324
36373
|
n3 = [], i3.label = 2;
|
|
36325
36374
|
case 2:
|
|
36326
|
-
return i3.trys.push([2, 4, , 5]), [4,
|
|
36375
|
+
return i3.trys.push([2, 4, , 5]), [4, dT.keys()];
|
|
36327
36376
|
case 3:
|
|
36328
36377
|
return n3 = (i3.sent() || []).sort(function(t4, e3) {
|
|
36329
36378
|
return parseInt(t4.replace("run_time_log_", "")) - parseInt(e3.replace("run_time_log_", ""));
|
|
@@ -36339,7 +36388,7 @@ void main(void){
|
|
|
36339
36388
|
return [3, 12];
|
|
36340
36389
|
s2 = o2[r2], a2 = s2.replace("run_time_log_", ""), l2 = "", i3.label = 7;
|
|
36341
36390
|
case 7:
|
|
36342
|
-
return i3.trys.push([7, 9, , 10]), [4,
|
|
36391
|
+
return i3.trys.push([7, 9, , 10]), [4, dT.getItem(s2)];
|
|
36343
36392
|
case 8:
|
|
36344
36393
|
return l2 = i3.sent() || "", [3, 10];
|
|
36345
36394
|
case 9:
|
|
@@ -36354,20 +36403,20 @@ void main(void){
|
|
|
36354
36403
|
});
|
|
36355
36404
|
});
|
|
36356
36405
|
}, e2.handleLogDownload = function() {
|
|
36357
|
-
return
|
|
36406
|
+
return rT(void 0, void 0, void 0, function() {
|
|
36358
36407
|
var t3, n3, r2, o2, s2, a2, l2;
|
|
36359
|
-
return
|
|
36408
|
+
return oT(i2, function(i3) {
|
|
36360
36409
|
switch (i3.label) {
|
|
36361
36410
|
case 0:
|
|
36362
36411
|
return i3.trys.push([0, 7, , 8]), [4, e2.flushLog(true)];
|
|
36363
36412
|
case 1:
|
|
36364
|
-
return i3.sent(), t3 = "",
|
|
36413
|
+
return i3.sent(), t3 = "", dT ? [4, dT.keys()] : [3, 6];
|
|
36365
36414
|
case 2:
|
|
36366
36415
|
n3 = (i3.sent() || []).sort(function(t4, e3) {
|
|
36367
36416
|
return parseInt(t4.replace("run_time_log_", "")) - parseInt(e3.replace("run_time_log_", ""));
|
|
36368
36417
|
}), r2 = 0, o2 = n3, i3.label = 3;
|
|
36369
36418
|
case 3:
|
|
36370
|
-
return r2 < o2.length ? (s2 = o2[r2], a2 = t3, [4,
|
|
36419
|
+
return r2 < o2.length ? (s2 = o2[r2], a2 = t3, [4, dT.getItem(s2)]) : [3, 6];
|
|
36371
36420
|
case 4:
|
|
36372
36421
|
t3 = a2 + (i3.sent() || ""), i3.label = 5;
|
|
36373
36422
|
case 5:
|
|
@@ -36381,12 +36430,12 @@ void main(void){
|
|
|
36381
36430
|
}
|
|
36382
36431
|
});
|
|
36383
36432
|
});
|
|
36384
|
-
},
|
|
36433
|
+
}, nT([(n2 = "Slide.initConfig", function(t3, e3, i3) {
|
|
36385
36434
|
var r2 = i3.value;
|
|
36386
36435
|
i3.value = function() {
|
|
36387
36436
|
for (var t4 = [], e4 = 0; e4 < arguments.length; e4++)
|
|
36388
36437
|
t4[e4] = arguments[e4];
|
|
36389
|
-
for (var i4 =
|
|
36438
|
+
for (var i4 = zy.get(n2) || [], o2 = t4, s2 = 0, a2 = i4; s2 < a2.length; s2++) {
|
|
36390
36439
|
var l2 = a2[s2];
|
|
36391
36440
|
try {
|
|
36392
36441
|
o2 = l2.before(o2);
|
|
@@ -36408,14 +36457,14 @@ void main(void){
|
|
|
36408
36457
|
};
|
|
36409
36458
|
})], e2.prototype, "initSlideConfig", null), e2;
|
|
36410
36459
|
}(Za.a);
|
|
36411
|
-
|
|
36412
|
-
}), window.addEventListener("__slide_log__",
|
|
36413
|
-
t2.data.type === "@slide/_request_log_" &&
|
|
36460
|
+
dT == null || dT.clear().catch(function() {
|
|
36461
|
+
}), window.addEventListener("__slide_log__", pT.handleLogDownload), window.addEventListener("message", function(t2) {
|
|
36462
|
+
t2.data.type === "@slide/_request_log_" && pT.handleLogReport(t2.data.sessionId).catch(function() {
|
|
36414
36463
|
});
|
|
36415
36464
|
}), window.addEventListener("message", function(t2) {
|
|
36416
|
-
t2.data.type === "@slide/_request_frozen_" &&
|
|
36465
|
+
t2.data.type === "@slide/_request_frozen_" && pT.handleFrozenAllSlide();
|
|
36417
36466
|
}), window.addEventListener("message", function(t2) {
|
|
36418
|
-
t2.data.type === "@slide/_request_release_" &&
|
|
36467
|
+
t2.data.type === "@slide/_request_release_" && pT.handleReleaseAllSlide();
|
|
36419
36468
|
}), window.addEventListener("message", function(t2) {
|
|
36420
36469
|
if (t2.data.type === "@slide/_update_volume_") {
|
|
36421
36470
|
var e2 = 0.5;
|
|
@@ -36423,12 +36472,12 @@ void main(void){
|
|
|
36423
36472
|
e2 = parseFloat(t2.data.volume.toString());
|
|
36424
36473
|
} catch (t3) {
|
|
36425
36474
|
}
|
|
36426
|
-
|
|
36475
|
+
pT.volumeAdjuster.volume = e2;
|
|
36427
36476
|
}
|
|
36428
36477
|
}), window.addEventListener("message", function(t2) {
|
|
36429
|
-
t2.data.type === "@slide/_get_volume_" && window.postMessage({ type: "@slide/_report_volume_", volume:
|
|
36478
|
+
t2.data.type === "@slide/_get_volume_" && window.postMessage({ type: "@slide/_report_volume_", volume: pT.volumeAdjuster.volume, customMessage: "@slide/_report_volume_" }, "*");
|
|
36430
36479
|
}), window.setInterval(function() {
|
|
36431
|
-
|
|
36480
|
+
pT.flushLog().catch(function() {
|
|
36432
36481
|
});
|
|
36433
36482
|
}, 2e3);
|
|
36434
36483
|
}]);
|
|
@@ -37239,6 +37288,7 @@ class SlideController {
|
|
|
37239
37288
|
fixedFrameSize: options.fixedFrameSize,
|
|
37240
37289
|
loaderDelegate: options.loaderDelegate,
|
|
37241
37290
|
navigatorDelegate: options.navigatorDelegate,
|
|
37291
|
+
urlInterrupter: options.urlInterrupter,
|
|
37242
37292
|
resourceTimeout: options.resourceTimeout,
|
|
37243
37293
|
rtcAudio: options.rtcAudio,
|
|
37244
37294
|
useLocalCache: options.useLocalCache,
|
|
@@ -38772,7 +38822,7 @@ class SlidePreviewer {
|
|
|
38772
38822
|
}
|
|
38773
38823
|
}
|
|
38774
38824
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
38775
|
-
const version = "0.2.
|
|
38825
|
+
const version = "0.2.34-beta.2";
|
|
38776
38826
|
const SlideApp = {
|
|
38777
38827
|
kind: "Slide",
|
|
38778
38828
|
setup(context) {
|