@netless/app-slide 0.2.4 → 0.2.5

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/main.es.js CHANGED
@@ -17,66 +17,6 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- const s = "!#%()*+,-./:;=?@[]^_`{|}~ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", e = s.length, t = Array(20), i = () => {
21
- for (let i2 = 0; i2 < 20; i2++)
22
- t[i2] = s.charAt(Math.random() * e);
23
- return t.join("");
24
- };
25
- function r(s2) {
26
- try {
27
- return s2();
28
- } catch (e2) {
29
- console.error(e2);
30
- }
31
- }
32
- class n {
33
- constructor() {
34
- this.disposers = /* @__PURE__ */ new Map();
35
- }
36
- addDisposer(s2, e2 = this.genUID()) {
37
- return this.flush(e2), this.disposers.set(e2, Array.isArray(s2) ? () => s2.forEach(r) : s2), e2;
38
- }
39
- add(s2, e2 = this.genUID()) {
40
- const t2 = s2();
41
- return t2 ? this.addDisposer(t2, e2) : e2;
42
- }
43
- addEventListener(s2, e2, t2, i2, r2 = this.genUID()) {
44
- return s2.addEventListener(e2, t2, i2), this.addDisposer(() => s2.removeEventListener(e2, t2, i2), r2), r2;
45
- }
46
- setTimeout(s2, e2, t2 = this.genUID()) {
47
- const i2 = window.setTimeout(() => {
48
- this.remove(t2), s2();
49
- }, e2);
50
- return this.addDisposer(() => window.clearTimeout(i2), t2);
51
- }
52
- setInterval(s2, e2, t2 = this.genUID()) {
53
- const i2 = window.setInterval(s2, e2);
54
- return this.addDisposer(() => window.clearInterval(i2), t2);
55
- }
56
- remove(s2) {
57
- const e2 = this.disposers.get(s2);
58
- return this.disposers.delete(s2), e2;
59
- }
60
- flush(s2) {
61
- const e2 = this.remove(s2);
62
- if (e2)
63
- try {
64
- e2();
65
- } catch (t2) {
66
- console.error(t2);
67
- }
68
- }
69
- flushAll() {
70
- this.disposers.forEach(r), this.disposers.clear();
71
- }
72
- genUID() {
73
- let s2;
74
- do {
75
- s2 = i();
76
- } while (this.disposers.has(s2));
77
- return s2;
78
- }
79
- }
80
20
  var Slide = function(t2) {
81
21
  var e2 = {};
82
22
  function n2(i2) {
@@ -6551,13 +6491,13 @@ var Slide = function(t2) {
6551
6491
  n2.r(e2), n2.d(e2, "ErrorType", function() {
6552
6492
  return VE;
6553
6493
  }), n2.d(e2, "delay", function() {
6554
- return rI;
6494
+ return aI;
6555
6495
  }), n2.d(e2, "waitUntil", function() {
6556
- return oI;
6496
+ return lI;
6557
6497
  }), n2.d(e2, "SLIDE_EVENTS", function() {
6558
- return sI;
6498
+ return uI;
6559
6499
  }), n2.d(e2, "Slide", function() {
6560
- return hI;
6500
+ return pI;
6561
6501
  });
6562
6502
  var i2 = {};
6563
6503
  n2.r(i2), n2.d(i2, "ACESFilmicToneMapping", function() {
@@ -31169,7 +31109,7 @@ void main(void){
31169
31109
  super(), this.isGlobalPause = false, this.lastTime = -1, this.howl = null, this.rctClient = null, this.url = t3, this.runningAudio = e3, $R.RtcAudioClazz ? (this.rctClient = new $R.RtcAudioClazz(t3), this.rctClient.on("load", () => this.emit("load")), this.rctClient.on("pause", () => this.emit("pause")), this.rctClient.on("play", () => this.emit("play"))) : (this.howl = new VA.Howl({ src: [t3] }), this.howl.on("load", () => this.emit("load")), this.howl.on("pause", () => this.emit("pause")), this.howl.on("play", () => this.emit("play")));
31170
31110
  }
31171
31111
  startTimeChangeEmit() {
31172
- this.currentTime !== this.lastTime && (this.lastTime = this.currentTime, this.emit("timeupdate")), this.isEnded || requestAnimationFrame(() => this.startTimeChangeEmit());
31112
+ this.currentTime !== this.lastTime && (this.lastTime = this.currentTime, this.emit("timeupdate")), this.isEnded || setTimeout(() => this.startTimeChangeEmit(), 300);
31173
31113
  }
31174
31114
  play() {
31175
31115
  var t3, e3, n3;
@@ -31292,7 +31232,10 @@ void main(void){
31292
31232
  return !!(t4 && t4.videoWidth > 0);
31293
31233
  }, 3e3);
31294
31234
  const e3 = this.videoResource.source;
31295
- e3 && e3.videoWidth <= 0 || ($R.RtcAudioClazz && (this.rtcAudio.play(), this.videoResource.source.volume = 0), yield (t3 = this.videoResource.source) === null || t3 === void 0 ? void 0 : t3.play());
31235
+ e3 && e3.videoWidth <= 0 || ($R.RtcAudioClazz ? (this.rtcAudio.play(), this.videoResource.source.volume = 0, this.rtcAudio.once("play", () => {
31236
+ var t4;
31237
+ (t4 = this.videoResource.source) === null || t4 === void 0 || t4.play();
31238
+ })) : yield (t3 = this.videoResource.source) === null || t3 === void 0 ? void 0 : t3.play());
31296
31239
  });
31297
31240
  }
31298
31241
  load() {
@@ -31300,7 +31243,10 @@ void main(void){
31300
31243
  }
31301
31244
  pause() {
31302
31245
  var t3;
31303
- this.isPlaying = false, $R.RtcAudioClazz && this.rtcAudio.pause(), (t3 = this.videoResource.source) === null || t3 === void 0 || t3.pause();
31246
+ this.isPlaying = false, $R.RtcAudioClazz ? (this.rtcAudio.pause(), this.rtcAudio.once("pause", () => {
31247
+ var t4;
31248
+ (t4 = this.videoResource.source) === null || t4 === void 0 || t4.pause();
31249
+ })) : (t3 = this.videoResource.source) === null || t3 === void 0 || t3.pause();
31304
31250
  }
31305
31251
  globalPause() {
31306
31252
  this.isPlaying && (this.isGlobalPause = true, this.pause());
@@ -33176,16 +33122,16 @@ void main(void){
33176
33122
  });
33177
33123
  });
33178
33124
  }
33179
- renderToBase64(t3, e3) {
33125
+ renderToBase64(t3, e3, n3) {
33180
33126
  return YR(this, void 0, void 0, function* () {
33181
- const n3 = yield this.stagePool.getStage(t3);
33182
- if (n3) {
33183
- const { width: i3, height: r3 } = n3.json;
33184
- this.designWidth = i3, this.designHeight = r3;
33185
- const o2 = Hy.create({ width: this.designWidth, height: this.designHeight, resolution: e3 });
33186
- n3.container.visible = true, this.app.renderer.render(n3.container, { renderTexture: o2 });
33187
- const s3 = this.app.renderer.plugins.extract.base64(o2, "image/jpeg");
33188
- return this.stagePool.destroyStageByIndex(t3), s3;
33127
+ const i3 = yield this.stagePool.getStage(t3);
33128
+ if (i3) {
33129
+ const { width: r3, height: o2 } = i3.json;
33130
+ this.designWidth = r3, this.designHeight = o2;
33131
+ const s3 = Hy.create({ width: this.designWidth, height: this.designHeight, resolution: e3 });
33132
+ i3.container.visible = true, this.app.renderer.render(i3.container, { renderTexture: s3 });
33133
+ const a2 = this.app.renderer.plugins.extract.base64(s3, n3);
33134
+ return this.stagePool.destroyStageByIndex(t3), a2;
33189
33135
  }
33190
33136
  return "__null__";
33191
33137
  });
@@ -33366,17 +33312,22 @@ void main(void){
33366
33312
  }
33367
33313
  }
33368
33314
  $R.platform = jR, $R.RtcAudioClazz = null;
33369
- var KR, QR = [], tP = "ResizeObserver loop completed with undelivered notifications.";
33315
+ var KR = /* @__PURE__ */ new Map();
33316
+ function QR(t3) {
33317
+ var e3 = KR.get(t3.hookPoint) || [];
33318
+ e3.push(t3), KR.set(t3.hookPoint, e3);
33319
+ }
33320
+ var tP, eP = [], nP = "ResizeObserver loop completed with undelivered notifications.";
33370
33321
  !function(t3) {
33371
33322
  t3.BORDER_BOX = "border-box", t3.CONTENT_BOX = "content-box", t3.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
33372
- }(KR || (KR = {}));
33373
- var eP, nP = function(t3) {
33323
+ }(tP || (tP = {}));
33324
+ var iP, rP = function(t3) {
33374
33325
  return Object.freeze(t3);
33375
- }, iP = function(t3, e3) {
33376
- this.inlineSize = t3, this.blockSize = e3, nP(this);
33377
- }, rP = function() {
33326
+ }, oP = function(t3, e3) {
33327
+ this.inlineSize = t3, this.blockSize = e3, rP(this);
33328
+ }, sP = function() {
33378
33329
  function t3(t4, e3, n3, i3) {
33379
- return this.x = t4, this.y = e3, this.width = n3, this.height = i3, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, nP(this);
33330
+ return this.x = t4, this.y = e3, this.width = n3, this.height = i3, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, rP(this);
33380
33331
  }
33381
33332
  return t3.prototype.toJSON = function() {
33382
33333
  var t4 = this;
@@ -33384,59 +33335,59 @@ void main(void){
33384
33335
  }, t3.fromRect = function(e3) {
33385
33336
  return new t3(e3.x, e3.y, e3.width, e3.height);
33386
33337
  }, t3;
33387
- }(), oP = function(t3) {
33338
+ }(), aP = function(t3) {
33388
33339
  return t3 instanceof SVGElement && "getBBox" in t3;
33389
- }, sP = function(t3) {
33390
- if (oP(t3)) {
33340
+ }, lP = function(t3) {
33341
+ if (aP(t3)) {
33391
33342
  var e3 = t3.getBBox(), n3 = e3.width, i3 = e3.height;
33392
33343
  return !n3 && !i3;
33393
33344
  }
33394
33345
  var r3 = t3, o2 = r3.offsetWidth, s3 = r3.offsetHeight;
33395
33346
  return !(o2 || s3 || t3.getClientRects().length);
33396
- }, aP = function(t3) {
33347
+ }, uP = function(t3) {
33397
33348
  var e3, n3;
33398
33349
  if (t3 instanceof Element)
33399
33350
  return true;
33400
33351
  var i3 = (n3 = (e3 = t3) === null || e3 === void 0 ? void 0 : e3.ownerDocument) === null || n3 === void 0 ? void 0 : n3.defaultView;
33401
33352
  return !!(i3 && t3 instanceof i3.Element);
33402
- }, lP = typeof window != "undefined" ? window : {}, uP = /* @__PURE__ */ new WeakMap(), hP = /auto|scroll/, cP = /^tb|vertical/, dP = /msie|trident/i.test(lP.navigator && lP.navigator.userAgent), pP = function(t3) {
33353
+ }, hP = typeof window != "undefined" ? window : {}, cP = /* @__PURE__ */ new WeakMap(), dP = /auto|scroll/, pP = /^tb|vertical/, fP = /msie|trident/i.test(hP.navigator && hP.navigator.userAgent), mP = function(t3) {
33403
33354
  return parseFloat(t3 || "0");
33404
- }, fP = function(t3, e3, n3) {
33405
- return t3 === void 0 && (t3 = 0), e3 === void 0 && (e3 = 0), n3 === void 0 && (n3 = false), new iP((n3 ? e3 : t3) || 0, (n3 ? t3 : e3) || 0);
33406
- }, mP = nP({ devicePixelContentBoxSize: fP(), borderBoxSize: fP(), contentBoxSize: fP(), contentRect: new rP(0, 0, 0, 0) }), gP = function(t3, e3) {
33407
- if (e3 === void 0 && (e3 = false), uP.has(t3) && !e3)
33408
- return uP.get(t3);
33409
- if (sP(t3))
33410
- return uP.set(t3, mP), mP;
33411
- var n3 = getComputedStyle(t3), i3 = oP(t3) && t3.ownerSVGElement && t3.getBBox(), r3 = !dP && n3.boxSizing === "border-box", o2 = cP.test(n3.writingMode || ""), s3 = !i3 && hP.test(n3.overflowY || ""), a2 = !i3 && hP.test(n3.overflowX || ""), l2 = i3 ? 0 : pP(n3.paddingTop), u2 = i3 ? 0 : pP(n3.paddingRight), h2 = i3 ? 0 : pP(n3.paddingBottom), c2 = i3 ? 0 : pP(n3.paddingLeft), d2 = i3 ? 0 : pP(n3.borderTopWidth), p2 = i3 ? 0 : pP(n3.borderRightWidth), f2 = i3 ? 0 : pP(n3.borderBottomWidth), m2 = c2 + u2, g2 = l2 + h2, v2 = (i3 ? 0 : pP(n3.borderLeftWidth)) + p2, _2 = d2 + f2, y2 = a2 ? t3.offsetHeight - _2 - t3.clientHeight : 0, x2 = s3 ? t3.offsetWidth - v2 - t3.clientWidth : 0, b2 = r3 ? m2 + v2 : 0, T2 = r3 ? g2 + _2 : 0, w2 = i3 ? i3.width : pP(n3.width) - b2 - x2, S2 = i3 ? i3.height : pP(n3.height) - T2 - y2, E2 = w2 + m2 + x2 + v2, M2 = S2 + g2 + y2 + _2, A2 = nP({ devicePixelContentBoxSize: fP(Math.round(w2 * devicePixelRatio), Math.round(S2 * devicePixelRatio), o2), borderBoxSize: fP(E2, M2, o2), contentBoxSize: fP(w2, S2, o2), contentRect: new rP(c2, l2, w2, S2) });
33412
- return uP.set(t3, A2), A2;
33413
- }, vP = function(t3, e3, n3) {
33414
- var i3 = gP(t3, n3), r3 = i3.borderBoxSize, o2 = i3.contentBoxSize, s3 = i3.devicePixelContentBoxSize;
33355
+ }, gP = function(t3, e3, n3) {
33356
+ return t3 === void 0 && (t3 = 0), e3 === void 0 && (e3 = 0), n3 === void 0 && (n3 = false), new oP((n3 ? e3 : t3) || 0, (n3 ? t3 : e3) || 0);
33357
+ }, vP = rP({ devicePixelContentBoxSize: gP(), borderBoxSize: gP(), contentBoxSize: gP(), contentRect: new sP(0, 0, 0, 0) }), _P = function(t3, e3) {
33358
+ if (e3 === void 0 && (e3 = false), cP.has(t3) && !e3)
33359
+ return cP.get(t3);
33360
+ if (lP(t3))
33361
+ return cP.set(t3, vP), vP;
33362
+ var n3 = getComputedStyle(t3), i3 = aP(t3) && t3.ownerSVGElement && t3.getBBox(), r3 = !fP && n3.boxSizing === "border-box", o2 = pP.test(n3.writingMode || ""), s3 = !i3 && dP.test(n3.overflowY || ""), a2 = !i3 && dP.test(n3.overflowX || ""), l2 = i3 ? 0 : mP(n3.paddingTop), u2 = i3 ? 0 : mP(n3.paddingRight), h2 = i3 ? 0 : mP(n3.paddingBottom), c2 = i3 ? 0 : mP(n3.paddingLeft), d2 = i3 ? 0 : mP(n3.borderTopWidth), p2 = i3 ? 0 : mP(n3.borderRightWidth), f2 = i3 ? 0 : mP(n3.borderBottomWidth), m2 = c2 + u2, g2 = l2 + h2, v2 = (i3 ? 0 : mP(n3.borderLeftWidth)) + p2, _2 = d2 + f2, y2 = a2 ? t3.offsetHeight - _2 - t3.clientHeight : 0, x2 = s3 ? t3.offsetWidth - v2 - t3.clientWidth : 0, b2 = r3 ? m2 + v2 : 0, T2 = r3 ? g2 + _2 : 0, w2 = i3 ? i3.width : mP(n3.width) - b2 - x2, S2 = i3 ? i3.height : mP(n3.height) - T2 - y2, E2 = w2 + m2 + x2 + v2, M2 = S2 + g2 + y2 + _2, A2 = rP({ devicePixelContentBoxSize: gP(Math.round(w2 * devicePixelRatio), Math.round(S2 * devicePixelRatio), o2), borderBoxSize: gP(E2, M2, o2), contentBoxSize: gP(w2, S2, o2), contentRect: new sP(c2, l2, w2, S2) });
33363
+ return cP.set(t3, A2), A2;
33364
+ }, yP = function(t3, e3, n3) {
33365
+ var i3 = _P(t3, n3), r3 = i3.borderBoxSize, o2 = i3.contentBoxSize, s3 = i3.devicePixelContentBoxSize;
33415
33366
  switch (e3) {
33416
- case KR.DEVICE_PIXEL_CONTENT_BOX:
33367
+ case tP.DEVICE_PIXEL_CONTENT_BOX:
33417
33368
  return s3;
33418
- case KR.BORDER_BOX:
33369
+ case tP.BORDER_BOX:
33419
33370
  return r3;
33420
33371
  default:
33421
33372
  return o2;
33422
33373
  }
33423
- }, _P = function(t3) {
33424
- var e3 = gP(t3);
33425
- this.target = t3, this.contentRect = e3.contentRect, this.borderBoxSize = nP([e3.borderBoxSize]), this.contentBoxSize = nP([e3.contentBoxSize]), this.devicePixelContentBoxSize = nP([e3.devicePixelContentBoxSize]);
33426
- }, yP = function(t3) {
33427
- if (sP(t3))
33374
+ }, xP = function(t3) {
33375
+ var e3 = _P(t3);
33376
+ this.target = t3, this.contentRect = e3.contentRect, this.borderBoxSize = rP([e3.borderBoxSize]), this.contentBoxSize = rP([e3.contentBoxSize]), this.devicePixelContentBoxSize = rP([e3.devicePixelContentBoxSize]);
33377
+ }, bP = function(t3) {
33378
+ if (lP(t3))
33428
33379
  return 1 / 0;
33429
33380
  for (var e3 = 0, n3 = t3.parentNode; n3; )
33430
33381
  e3 += 1, n3 = n3.parentNode;
33431
33382
  return e3;
33432
- }, xP = function() {
33383
+ }, TP = function() {
33433
33384
  var t3 = 1 / 0, e3 = [];
33434
- QR.forEach(function(n4) {
33385
+ eP.forEach(function(n4) {
33435
33386
  if (n4.activeTargets.length !== 0) {
33436
33387
  var i4 = [];
33437
33388
  n4.activeTargets.forEach(function(e4) {
33438
- var n5 = new _P(e4.target), r3 = yP(e4.target);
33439
- i4.push(n5), e4.lastReportedSize = vP(e4.target, e4.observedBox), r3 < t3 && (t3 = r3);
33389
+ var n5 = new xP(e4.target), r3 = bP(e4.target);
33390
+ i4.push(n5), e4.lastReportedSize = yP(e4.target, e4.observedBox), r3 < t3 && (t3 = r3);
33440
33391
  }), e3.push(function() {
33441
33392
  n4.callback.call(n4.observer, i4, n4.observer);
33442
33393
  }), n4.activeTargets.splice(0, n4.activeTargets.length);
@@ -33446,36 +33397,36 @@ void main(void){
33446
33397
  (0, i3[n3])();
33447
33398
  }
33448
33399
  return t3;
33449
- }, bP = function(t3) {
33450
- QR.forEach(function(e3) {
33400
+ }, wP = function(t3) {
33401
+ eP.forEach(function(e3) {
33451
33402
  e3.activeTargets.splice(0, e3.activeTargets.length), e3.skippedTargets.splice(0, e3.skippedTargets.length), e3.observationTargets.forEach(function(n3) {
33452
- n3.isActive() && (yP(n3.target) > t3 ? e3.activeTargets.push(n3) : e3.skippedTargets.push(n3));
33403
+ n3.isActive() && (bP(n3.target) > t3 ? e3.activeTargets.push(n3) : e3.skippedTargets.push(n3));
33453
33404
  });
33454
33405
  });
33455
- }, TP = function() {
33406
+ }, SP = function() {
33456
33407
  var t3, e3 = 0;
33457
- for (bP(e3); QR.some(function(t4) {
33408
+ for (wP(e3); eP.some(function(t4) {
33458
33409
  return t4.activeTargets.length > 0;
33459
33410
  }); )
33460
- e3 = xP(), bP(e3);
33461
- return QR.some(function(t4) {
33411
+ e3 = TP(), wP(e3);
33412
+ return eP.some(function(t4) {
33462
33413
  return t4.skippedTargets.length > 0;
33463
- }) && (typeof ErrorEvent == "function" ? t3 = new ErrorEvent("error", { message: tP }) : ((t3 = document.createEvent("Event")).initEvent("error", false, false), t3.message = tP), window.dispatchEvent(t3)), e3 > 0;
33464
- }, wP = [], SP = function(t3) {
33465
- if (!eP) {
33414
+ }) && (typeof ErrorEvent == "function" ? t3 = new ErrorEvent("error", { message: nP }) : ((t3 = document.createEvent("Event")).initEvent("error", false, false), t3.message = nP), window.dispatchEvent(t3)), e3 > 0;
33415
+ }, EP = [], MP = function(t3) {
33416
+ if (!iP) {
33466
33417
  var e3 = 0, n3 = document.createTextNode("");
33467
33418
  new MutationObserver(function() {
33468
- return wP.splice(0).forEach(function(t4) {
33419
+ return EP.splice(0).forEach(function(t4) {
33469
33420
  return t4();
33470
33421
  });
33471
- }).observe(n3, { characterData: true }), eP = function() {
33422
+ }).observe(n3, { characterData: true }), iP = function() {
33472
33423
  n3.textContent = "" + (e3 ? e3-- : e3++);
33473
33424
  };
33474
33425
  }
33475
- wP.push(t3), eP();
33476
- }, EP = 0, MP = { attributes: true, characterData: true, childList: true, subtree: true }, AP = ["resize", "load", "transitionend", "animationend", "animationstart", "animationiteration", "keyup", "keydown", "mouseup", "mousedown", "mouseover", "mouseout", "blur", "focus"], RP = function(t3) {
33426
+ EP.push(t3), iP();
33427
+ }, AP = 0, RP = { attributes: true, characterData: true, childList: true, subtree: true }, PP = ["resize", "load", "transitionend", "animationend", "animationstart", "animationiteration", "keyup", "keydown", "mouseup", "mousedown", "mouseover", "mouseout", "blur", "focus"], CP = function(t3) {
33477
33428
  return t3 === void 0 && (t3 = 0), Date.now() + t3;
33478
- }, PP = false, CP = new (function() {
33429
+ }, IP = false, OP = new (function() {
33479
33430
  function t3() {
33480
33431
  var t4 = this;
33481
33432
  this.stopped = true, this.listener = function() {
@@ -33484,19 +33435,19 @@ void main(void){
33484
33435
  }
33485
33436
  return t3.prototype.run = function(t4) {
33486
33437
  var e3 = this;
33487
- if (t4 === void 0 && (t4 = 250), !PP) {
33488
- PP = true;
33489
- var n3, i3 = RP(t4);
33438
+ if (t4 === void 0 && (t4 = 250), !IP) {
33439
+ IP = true;
33440
+ var n3, i3 = CP(t4);
33490
33441
  n3 = function() {
33491
33442
  var n4 = false;
33492
33443
  try {
33493
- n4 = TP();
33444
+ n4 = SP();
33494
33445
  } finally {
33495
- if (PP = false, t4 = i3 - RP(), !EP)
33446
+ if (IP = false, t4 = i3 - CP(), !AP)
33496
33447
  return;
33497
33448
  n4 ? e3.run(1e3) : t4 > 0 ? e3.run(t4) : e3.start();
33498
33449
  }
33499
- }, SP(function() {
33450
+ }, MP(function() {
33500
33451
  requestAnimationFrame(n3);
33501
33452
  });
33502
33453
  }
@@ -33504,29 +33455,29 @@ void main(void){
33504
33455
  this.stop(), this.run();
33505
33456
  }, t3.prototype.observe = function() {
33506
33457
  var t4 = this, e3 = function() {
33507
- return t4.observer && t4.observer.observe(document.body, MP);
33458
+ return t4.observer && t4.observer.observe(document.body, RP);
33508
33459
  };
33509
- document.body ? e3() : lP.addEventListener("DOMContentLoaded", e3);
33460
+ document.body ? e3() : hP.addEventListener("DOMContentLoaded", e3);
33510
33461
  }, t3.prototype.start = function() {
33511
33462
  var t4 = this;
33512
- this.stopped && (this.stopped = false, this.observer = new MutationObserver(this.listener), this.observe(), AP.forEach(function(e3) {
33513
- return lP.addEventListener(e3, t4.listener, true);
33463
+ this.stopped && (this.stopped = false, this.observer = new MutationObserver(this.listener), this.observe(), PP.forEach(function(e3) {
33464
+ return hP.addEventListener(e3, t4.listener, true);
33514
33465
  }));
33515
33466
  }, t3.prototype.stop = function() {
33516
33467
  var t4 = this;
33517
- this.stopped || (this.observer && this.observer.disconnect(), AP.forEach(function(e3) {
33518
- return lP.removeEventListener(e3, t4.listener, true);
33468
+ this.stopped || (this.observer && this.observer.disconnect(), PP.forEach(function(e3) {
33469
+ return hP.removeEventListener(e3, t4.listener, true);
33519
33470
  }), this.stopped = true);
33520
33471
  }, t3;
33521
- }())(), IP = function(t3) {
33522
- !EP && t3 > 0 && CP.start(), !(EP += t3) && CP.stop();
33523
- }, OP = function() {
33472
+ }())(), LP = function(t3) {
33473
+ !AP && t3 > 0 && OP.start(), !(AP += t3) && OP.stop();
33474
+ }, NP = function() {
33524
33475
  function t3(t4, e3) {
33525
- this.target = t4, this.observedBox = e3 || KR.CONTENT_BOX, this.lastReportedSize = { inlineSize: 0, blockSize: 0 };
33476
+ this.target = t4, this.observedBox = e3 || tP.CONTENT_BOX, this.lastReportedSize = { inlineSize: 0, blockSize: 0 };
33526
33477
  }
33527
33478
  return t3.prototype.isActive = function() {
33528
- var t4, e3 = vP(this.target, this.observedBox, true);
33529
- return t4 = this.target, oP(t4) || function(t5) {
33479
+ var t4, e3 = yP(this.target, this.observedBox, true);
33480
+ return t4 = this.target, aP(t4) || function(t5) {
33530
33481
  switch (t5.tagName) {
33531
33482
  case "INPUT":
33532
33483
  if (t5.type !== "image")
@@ -33543,57 +33494,57 @@ void main(void){
33543
33494
  return false;
33544
33495
  }(t4) || getComputedStyle(t4).display !== "inline" || (this.lastReportedSize = e3), this.lastReportedSize.inlineSize !== e3.inlineSize || this.lastReportedSize.blockSize !== e3.blockSize;
33545
33496
  }, t3;
33546
- }(), LP = function(t3, e3) {
33497
+ }(), DP = function(t3, e3) {
33547
33498
  this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = t3, this.callback = e3;
33548
- }, NP = /* @__PURE__ */ new WeakMap(), DP = function(t3, e3) {
33499
+ }, FP = /* @__PURE__ */ new WeakMap(), BP = function(t3, e3) {
33549
33500
  for (var n3 = 0; n3 < t3.length; n3 += 1)
33550
33501
  if (t3[n3].target === e3)
33551
33502
  return n3;
33552
33503
  return -1;
33553
- }, FP = function() {
33504
+ }, UP = function() {
33554
33505
  function t3() {
33555
33506
  }
33556
33507
  return t3.connect = function(t4, e3) {
33557
- var n3 = new LP(t4, e3);
33558
- NP.set(t4, n3);
33508
+ var n3 = new DP(t4, e3);
33509
+ FP.set(t4, n3);
33559
33510
  }, t3.observe = function(t4, e3, n3) {
33560
- var i3 = NP.get(t4), r3 = i3.observationTargets.length === 0;
33561
- DP(i3.observationTargets, e3) < 0 && (r3 && QR.push(i3), i3.observationTargets.push(new OP(e3, n3 && n3.box)), IP(1), CP.schedule());
33511
+ var i3 = FP.get(t4), r3 = i3.observationTargets.length === 0;
33512
+ BP(i3.observationTargets, e3) < 0 && (r3 && eP.push(i3), i3.observationTargets.push(new NP(e3, n3 && n3.box)), LP(1), OP.schedule());
33562
33513
  }, t3.unobserve = function(t4, e3) {
33563
- var n3 = NP.get(t4), i3 = DP(n3.observationTargets, e3), r3 = n3.observationTargets.length === 1;
33564
- i3 >= 0 && (r3 && QR.splice(QR.indexOf(n3), 1), n3.observationTargets.splice(i3, 1), IP(-1));
33514
+ var n3 = FP.get(t4), i3 = BP(n3.observationTargets, e3), r3 = n3.observationTargets.length === 1;
33515
+ i3 >= 0 && (r3 && eP.splice(eP.indexOf(n3), 1), n3.observationTargets.splice(i3, 1), LP(-1));
33565
33516
  }, t3.disconnect = function(t4) {
33566
- var e3 = this, n3 = NP.get(t4);
33517
+ var e3 = this, n3 = FP.get(t4);
33567
33518
  n3.observationTargets.slice().forEach(function(n4) {
33568
33519
  return e3.unobserve(t4, n4.target);
33569
33520
  }), n3.activeTargets.splice(0, n3.activeTargets.length);
33570
33521
  }, t3;
33571
- }(), BP = function() {
33522
+ }(), kP = function() {
33572
33523
  function t3(t4) {
33573
33524
  if (arguments.length === 0)
33574
33525
  throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
33575
33526
  if (typeof t4 != "function")
33576
33527
  throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
33577
- FP.connect(this, t4);
33528
+ UP.connect(this, t4);
33578
33529
  }
33579
33530
  return t3.prototype.observe = function(t4, e3) {
33580
33531
  if (arguments.length === 0)
33581
33532
  throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
33582
- if (!aP(t4))
33533
+ if (!uP(t4))
33583
33534
  throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
33584
- FP.observe(this, t4, e3);
33535
+ UP.observe(this, t4, e3);
33585
33536
  }, t3.prototype.unobserve = function(t4) {
33586
33537
  if (arguments.length === 0)
33587
33538
  throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
33588
- if (!aP(t4))
33539
+ if (!uP(t4))
33589
33540
  throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
33590
- FP.unobserve(this, t4);
33541
+ UP.unobserve(this, t4);
33591
33542
  }, t3.prototype.disconnect = function() {
33592
- FP.disconnect(this);
33543
+ UP.disconnect(this);
33593
33544
  }, t3.toString = function() {
33594
33545
  return "function ResizeObserver () { [polyfill code] }";
33595
33546
  }, t3;
33596
- }(), UP = function(t3, e3, n3, i3) {
33547
+ }(), GP = function(t3, e3, n3, i3) {
33597
33548
  return new (n3 || (n3 = Promise))(function(r3, o2) {
33598
33549
  function s3(t4) {
33599
33550
  try {
@@ -33617,7 +33568,7 @@ void main(void){
33617
33568
  }
33618
33569
  l2((i3 = i3.apply(t3, e3 || [])).next());
33619
33570
  });
33620
- }, kP = function(t3, e3) {
33571
+ }, HP = function(t3, e3) {
33621
33572
  var n3, i3, r3, o2, s3 = { label: 0, sent: function() {
33622
33573
  if (1 & r3[0])
33623
33574
  throw r3[1];
@@ -33680,14 +33631,14 @@ void main(void){
33680
33631
  }([o3, a3]);
33681
33632
  };
33682
33633
  }
33683
- }, GP = function() {
33634
+ }, zP = function() {
33684
33635
  function t3(t4, e3, n3, i3, r3) {
33685
33636
  this.state = "idle", this.index = -1, this.slideIndex = -1, this.fn = n3, this.index = t4, this.slideIndex = e3, this.eventHub = i3, this.id = r3;
33686
33637
  }
33687
33638
  return t3.prototype.apply = function() {
33688
- return UP(this, void 0, void 0, function() {
33639
+ return GP(this, void 0, void 0, function() {
33689
33640
  var t4;
33690
- return kP(this, function(e3) {
33641
+ return HP(this, function(e3) {
33691
33642
  switch (e3.label) {
33692
33643
  case 0:
33693
33644
  this.eventHub.emit("task-start", this), e3.label = 1;
@@ -33703,7 +33654,7 @@ void main(void){
33703
33654
  });
33704
33655
  });
33705
33656
  }, t3;
33706
- }(), HP = function() {
33657
+ }(), jP = function() {
33707
33658
  function t3() {
33708
33659
  var t4 = this;
33709
33660
  this.eventHub = new a.a(), this.tasks = [], this.index = 0, this.eventHub.on("task-end", function(e3) {
@@ -33725,7 +33676,7 @@ void main(void){
33725
33676
  e3.tasks.splice(t5, 1);
33726
33677
  });
33727
33678
  }, t3.prototype.addTask = function(t4, e3, n3) {
33728
- var i3 = new GP(this.index++, e3, t4, this.eventHub, n3);
33679
+ var i3 = new zP(this.index++, e3, t4, this.eventHub, n3);
33729
33680
  this.tasks.push(i3), this.tasks.sort(function(t5, e4) {
33730
33681
  return t5.index - e4.index;
33731
33682
  }), this.replaceIdleTask(), this.tasks.length === 1 && i3.apply();
@@ -33737,7 +33688,7 @@ void main(void){
33737
33688
  this.eventHub.removeAllListeners();
33738
33689
  }, t3;
33739
33690
  }();
33740
- function zP(t3, e3) {
33691
+ function VP(t3, e3) {
33741
33692
  var n3 = t3.__state.conversionName.toString(), i3 = Math.round(t3.r), r3 = Math.round(t3.g), o2 = Math.round(t3.b), s3 = t3.a, a2 = Math.round(t3.h), l2 = t3.s.toFixed(1), u2 = t3.v.toFixed(1);
33742
33693
  if (e3 || n3 === "THREE_CHAR_HEX" || n3 === "SIX_CHAR_HEX") {
33743
33694
  for (var h2 = t3.hex.toString(16); h2.length < 6; )
@@ -33746,28 +33697,28 @@ void main(void){
33746
33697
  }
33747
33698
  return n3 === "CSS_RGB" ? "rgb(" + i3 + "," + r3 + "," + o2 + ")" : n3 === "CSS_RGBA" ? "rgba(" + i3 + "," + r3 + "," + o2 + "," + s3 + ")" : n3 === "HEX" ? "0x" + t3.hex.toString(16) : n3 === "RGB_ARRAY" ? "[" + i3 + "," + r3 + "," + o2 + "]" : n3 === "RGBA_ARRAY" ? "[" + i3 + "," + r3 + "," + o2 + "," + s3 + "]" : n3 === "RGB_OBJ" ? "{r:" + i3 + ",g:" + r3 + ",b:" + o2 + "}" : n3 === "RGBA_OBJ" ? "{r:" + i3 + ",g:" + r3 + ",b:" + o2 + ",a:" + s3 + "}" : n3 === "HSV_OBJ" ? "{h:" + a2 + ",s:" + l2 + ",v:" + u2 + "}" : n3 === "HSVA_OBJ" ? "{h:" + a2 + ",s:" + l2 + ",v:" + u2 + ",a:" + s3 + "}" : "unknown format";
33748
33699
  }
33749
- var jP = Array.prototype.forEach, VP = Array.prototype.slice, WP = { BREAK: {}, extend: function(t3) {
33750
- return this.each(VP.call(arguments, 1), function(e3) {
33700
+ var WP = Array.prototype.forEach, XP = Array.prototype.slice, qP = { BREAK: {}, extend: function(t3) {
33701
+ return this.each(XP.call(arguments, 1), function(e3) {
33751
33702
  (this.isObject(e3) ? Object.keys(e3) : []).forEach(function(n3) {
33752
33703
  this.isUndefined(e3[n3]) || (t3[n3] = e3[n3]);
33753
33704
  }.bind(this));
33754
33705
  }, this), t3;
33755
33706
  }, defaults: function(t3) {
33756
- return this.each(VP.call(arguments, 1), function(e3) {
33707
+ return this.each(XP.call(arguments, 1), function(e3) {
33757
33708
  (this.isObject(e3) ? Object.keys(e3) : []).forEach(function(n3) {
33758
33709
  this.isUndefined(t3[n3]) && (t3[n3] = e3[n3]);
33759
33710
  }.bind(this));
33760
33711
  }, this), t3;
33761
33712
  }, compose: function() {
33762
- var t3 = VP.call(arguments);
33713
+ var t3 = XP.call(arguments);
33763
33714
  return function() {
33764
- for (var e3 = VP.call(arguments), n3 = t3.length - 1; n3 >= 0; n3--)
33715
+ for (var e3 = XP.call(arguments), n3 = t3.length - 1; n3 >= 0; n3--)
33765
33716
  e3 = [t3[n3].apply(this, e3)];
33766
33717
  return e3[0];
33767
33718
  };
33768
33719
  }, each: function(t3, e3, n3) {
33769
33720
  if (t3) {
33770
- if (jP && t3.forEach && t3.forEach === jP)
33721
+ if (WP && t3.forEach && t3.forEach === WP)
33771
33722
  t3.forEach(e3, n3);
33772
33723
  else if (t3.length === t3.length + 0) {
33773
33724
  var i3, r3 = void 0;
@@ -33792,7 +33743,7 @@ void main(void){
33792
33743
  clearTimeout(i3), i3 = setTimeout(s3, e3), a2 && t3.apply(r3, o2);
33793
33744
  };
33794
33745
  }, toArray: function(t3) {
33795
- return t3.toArray ? t3.toArray() : VP.call(t3);
33746
+ return t3.toArray ? t3.toArray() : XP.call(t3);
33796
33747
  }, isUndefined: function(t3) {
33797
33748
  return t3 === void 0;
33798
33749
  }, isNull: function(t3) {
@@ -33818,23 +33769,23 @@ void main(void){
33818
33769
  return t3 === false || t3 === true;
33819
33770
  }, isFunction: function(t3) {
33820
33771
  return t3 instanceof Function;
33821
- } }, XP = [{ litmus: WP.isString, conversions: { THREE_CHAR_HEX: { read: function(t3) {
33772
+ } }, YP = [{ litmus: qP.isString, conversions: { THREE_CHAR_HEX: { read: function(t3) {
33822
33773
  var e3 = t3.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);
33823
33774
  return e3 !== null && { space: "HEX", hex: parseInt("0x" + e3[1].toString() + e3[1].toString() + e3[2].toString() + e3[2].toString() + e3[3].toString() + e3[3].toString(), 0) };
33824
- }, write: zP }, SIX_CHAR_HEX: { read: function(t3) {
33775
+ }, write: VP }, SIX_CHAR_HEX: { read: function(t3) {
33825
33776
  var e3 = t3.match(/^#([A-F0-9]{6})$/i);
33826
33777
  return e3 !== null && { space: "HEX", hex: parseInt("0x" + e3[1].toString(), 0) };
33827
- }, write: zP }, CSS_RGB: { read: function(t3) {
33778
+ }, write: VP }, CSS_RGB: { read: function(t3) {
33828
33779
  var e3 = t3.match(/^rgb\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/);
33829
33780
  return e3 !== null && { space: "RGB", r: parseFloat(e3[1]), g: parseFloat(e3[2]), b: parseFloat(e3[3]) };
33830
- }, write: zP }, CSS_RGBA: { read: function(t3) {
33781
+ }, write: VP }, CSS_RGBA: { read: function(t3) {
33831
33782
  var e3 = t3.match(/^rgba\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/);
33832
33783
  return e3 !== null && { space: "RGB", r: parseFloat(e3[1]), g: parseFloat(e3[2]), b: parseFloat(e3[3]), a: parseFloat(e3[4]) };
33833
- }, write: zP } } }, { litmus: WP.isNumber, conversions: { HEX: { read: function(t3) {
33784
+ }, write: VP } } }, { litmus: qP.isNumber, conversions: { HEX: { read: function(t3) {
33834
33785
  return { space: "HEX", hex: t3, conversionName: "HEX" };
33835
33786
  }, write: function(t3) {
33836
33787
  return t3.hex;
33837
- } } } }, { litmus: WP.isArray, conversions: { RGB_ARRAY: { read: function(t3) {
33788
+ } } } }, { litmus: qP.isArray, conversions: { RGB_ARRAY: { read: function(t3) {
33838
33789
  return t3.length === 3 && { space: "RGB", r: t3[0], g: t3[1], b: t3[2] };
33839
33790
  }, write: function(t3) {
33840
33791
  return [t3.r, t3.g, t3.b];
@@ -33842,33 +33793,33 @@ void main(void){
33842
33793
  return t3.length === 4 && { space: "RGB", r: t3[0], g: t3[1], b: t3[2], a: t3[3] };
33843
33794
  }, write: function(t3) {
33844
33795
  return [t3.r, t3.g, t3.b, t3.a];
33845
- } } } }, { litmus: WP.isObject, conversions: { RGBA_OBJ: { read: function(t3) {
33846
- return !!(WP.isNumber(t3.r) && WP.isNumber(t3.g) && WP.isNumber(t3.b) && WP.isNumber(t3.a)) && { space: "RGB", r: t3.r, g: t3.g, b: t3.b, a: t3.a };
33796
+ } } } }, { litmus: qP.isObject, conversions: { RGBA_OBJ: { read: function(t3) {
33797
+ return !!(qP.isNumber(t3.r) && qP.isNumber(t3.g) && qP.isNumber(t3.b) && qP.isNumber(t3.a)) && { space: "RGB", r: t3.r, g: t3.g, b: t3.b, a: t3.a };
33847
33798
  }, write: function(t3) {
33848
33799
  return { r: t3.r, g: t3.g, b: t3.b, a: t3.a };
33849
33800
  } }, RGB_OBJ: { read: function(t3) {
33850
- return !!(WP.isNumber(t3.r) && WP.isNumber(t3.g) && WP.isNumber(t3.b)) && { space: "RGB", r: t3.r, g: t3.g, b: t3.b };
33801
+ return !!(qP.isNumber(t3.r) && qP.isNumber(t3.g) && qP.isNumber(t3.b)) && { space: "RGB", r: t3.r, g: t3.g, b: t3.b };
33851
33802
  }, write: function(t3) {
33852
33803
  return { r: t3.r, g: t3.g, b: t3.b };
33853
33804
  } }, HSVA_OBJ: { read: function(t3) {
33854
- return !!(WP.isNumber(t3.h) && WP.isNumber(t3.s) && WP.isNumber(t3.v) && WP.isNumber(t3.a)) && { space: "HSV", h: t3.h, s: t3.s, v: t3.v, a: t3.a };
33805
+ return !!(qP.isNumber(t3.h) && qP.isNumber(t3.s) && qP.isNumber(t3.v) && qP.isNumber(t3.a)) && { space: "HSV", h: t3.h, s: t3.s, v: t3.v, a: t3.a };
33855
33806
  }, write: function(t3) {
33856
33807
  return { h: t3.h, s: t3.s, v: t3.v, a: t3.a };
33857
33808
  } }, HSV_OBJ: { read: function(t3) {
33858
- return !!(WP.isNumber(t3.h) && WP.isNumber(t3.s) && WP.isNumber(t3.v)) && { space: "HSV", h: t3.h, s: t3.s, v: t3.v };
33809
+ return !!(qP.isNumber(t3.h) && qP.isNumber(t3.s) && qP.isNumber(t3.v)) && { space: "HSV", h: t3.h, s: t3.s, v: t3.v };
33859
33810
  }, write: function(t3) {
33860
33811
  return { h: t3.h, s: t3.s, v: t3.v };
33861
- } } } }], qP = void 0, YP = void 0, ZP = function() {
33862
- YP = false;
33863
- var t3 = arguments.length > 1 ? WP.toArray(arguments) : arguments[0];
33864
- return WP.each(XP, function(e3) {
33812
+ } } } }], ZP = void 0, JP = void 0, $P = function() {
33813
+ JP = false;
33814
+ var t3 = arguments.length > 1 ? qP.toArray(arguments) : arguments[0];
33815
+ return qP.each(YP, function(e3) {
33865
33816
  if (e3.litmus(t3))
33866
- return WP.each(e3.conversions, function(e4, n3) {
33867
- if (qP = e4.read(t3), YP === false && qP !== false)
33868
- return YP = qP, qP.conversionName = n3, qP.conversion = e4, WP.BREAK;
33869
- }), WP.BREAK;
33870
- }), YP;
33871
- }, JP = void 0, $P = { hsv_to_rgb: function(t3, e3, n3) {
33817
+ return qP.each(e3.conversions, function(e4, n3) {
33818
+ if (ZP = e4.read(t3), JP === false && ZP !== false)
33819
+ return JP = ZP, ZP.conversionName = n3, ZP.conversion = e4, qP.BREAK;
33820
+ }), qP.BREAK;
33821
+ }), JP;
33822
+ }, KP = void 0, QP = { hsv_to_rgb: function(t3, e3, n3) {
33872
33823
  var i3 = Math.floor(t3 / 60) % 6, r3 = t3 / 60 - Math.floor(t3 / 60), o2 = n3 * (1 - e3), s3 = n3 * (1 - r3 * e3), a2 = n3 * (1 - (1 - r3) * e3), l2 = [[n3, a2, o2], [s3, n3, o2], [o2, n3, a2], [o2, s3, n3], [a2, o2, n3], [n3, o2, s3]][i3];
33873
33824
  return { r: 255 * l2[0], g: 255 * l2[1], b: 255 * l2[2] };
33874
33825
  }, rgb_to_hsv: function(t3, e3, n3) {
@@ -33880,15 +33831,15 @@ void main(void){
33880
33831
  }, component_from_hex: function(t3, e3) {
33881
33832
  return t3 >> 8 * e3 & 255;
33882
33833
  }, hex_with_component: function(t3, e3, n3) {
33883
- return n3 << (JP = 8 * e3) | t3 & ~(255 << JP);
33884
- } }, KP = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t3) {
33834
+ return n3 << (KP = 8 * e3) | t3 & ~(255 << KP);
33835
+ } }, tC = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t3) {
33885
33836
  return typeof t3;
33886
33837
  } : function(t3) {
33887
33838
  return t3 && typeof Symbol == "function" && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
33888
- }, QP = function(t3, e3) {
33839
+ }, eC = function(t3, e3) {
33889
33840
  if (!(t3 instanceof e3))
33890
33841
  throw new TypeError("Cannot call a class as a function");
33891
- }, tC = function() {
33842
+ }, nC = function() {
33892
33843
  function t3(t4, e3) {
33893
33844
  for (var n3 = 0; n3 < e3.length; n3++) {
33894
33845
  var i3 = e3[n3];
@@ -33898,7 +33849,7 @@ void main(void){
33898
33849
  return function(e3, n3, i3) {
33899
33850
  return n3 && t3(e3.prototype, n3), i3 && t3(e3, i3), e3;
33900
33851
  };
33901
- }(), eC = function t3(e3, n3, i3) {
33852
+ }(), iC = function t3(e3, n3, i3) {
33902
33853
  e3 === null && (e3 = Function.prototype);
33903
33854
  var r3 = Object.getOwnPropertyDescriptor(e3, n3);
33904
33855
  if (r3 === void 0) {
@@ -33909,67 +33860,67 @@ void main(void){
33909
33860
  return r3.value;
33910
33861
  var s3 = r3.get;
33911
33862
  return s3 !== void 0 ? s3.call(i3) : void 0;
33912
- }, nC = function(t3, e3) {
33863
+ }, rC = function(t3, e3) {
33913
33864
  if (typeof e3 != "function" && e3 !== null)
33914
33865
  throw new TypeError("Super expression must either be null or a function, not " + typeof e3);
33915
33866
  t3.prototype = Object.create(e3 && e3.prototype, { constructor: { value: t3, enumerable: false, writable: true, configurable: true } }), e3 && (Object.setPrototypeOf ? Object.setPrototypeOf(t3, e3) : t3.__proto__ = e3);
33916
- }, iC = function(t3, e3) {
33867
+ }, oC = function(t3, e3) {
33917
33868
  if (!t3)
33918
33869
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
33919
33870
  return !e3 || typeof e3 != "object" && typeof e3 != "function" ? t3 : e3;
33920
- }, rC = function() {
33871
+ }, sC = function() {
33921
33872
  function t3() {
33922
- if (QP(this, t3), this.__state = ZP.apply(this, arguments), this.__state === false)
33873
+ if (eC(this, t3), this.__state = $P.apply(this, arguments), this.__state === false)
33923
33874
  throw new Error("Failed to interpret color arguments");
33924
33875
  this.__state.a = this.__state.a || 1;
33925
33876
  }
33926
- return tC(t3, [{ key: "toString", value: function() {
33927
- return zP(this);
33877
+ return nC(t3, [{ key: "toString", value: function() {
33878
+ return VP(this);
33928
33879
  } }, { key: "toHexString", value: function() {
33929
- return zP(this, true);
33880
+ return VP(this, true);
33930
33881
  } }, { key: "toOriginal", value: function() {
33931
33882
  return this.__state.conversion.write(this);
33932
33883
  } }]), t3;
33933
33884
  }();
33934
- function oC(t3, e3, n3) {
33885
+ function aC(t3, e3, n3) {
33935
33886
  Object.defineProperty(t3, e3, { get: function() {
33936
- return this.__state.space === "RGB" || rC.recalculateRGB(this, e3, n3), this.__state[e3];
33887
+ return this.__state.space === "RGB" || sC.recalculateRGB(this, e3, n3), this.__state[e3];
33937
33888
  }, set: function(t4) {
33938
- this.__state.space !== "RGB" && (rC.recalculateRGB(this, e3, n3), this.__state.space = "RGB"), this.__state[e3] = t4;
33889
+ this.__state.space !== "RGB" && (sC.recalculateRGB(this, e3, n3), this.__state.space = "RGB"), this.__state[e3] = t4;
33939
33890
  } });
33940
33891
  }
33941
- function sC(t3, e3) {
33892
+ function lC(t3, e3) {
33942
33893
  Object.defineProperty(t3, e3, { get: function() {
33943
- return this.__state.space === "HSV" || rC.recalculateHSV(this), this.__state[e3];
33894
+ return this.__state.space === "HSV" || sC.recalculateHSV(this), this.__state[e3];
33944
33895
  }, set: function(t4) {
33945
- this.__state.space !== "HSV" && (rC.recalculateHSV(this), this.__state.space = "HSV"), this.__state[e3] = t4;
33896
+ this.__state.space !== "HSV" && (sC.recalculateHSV(this), this.__state.space = "HSV"), this.__state[e3] = t4;
33946
33897
  } });
33947
33898
  }
33948
- rC.recalculateRGB = function(t3, e3, n3) {
33899
+ sC.recalculateRGB = function(t3, e3, n3) {
33949
33900
  if (t3.__state.space === "HEX")
33950
- t3.__state[e3] = $P.component_from_hex(t3.__state.hex, n3);
33901
+ t3.__state[e3] = QP.component_from_hex(t3.__state.hex, n3);
33951
33902
  else {
33952
33903
  if (t3.__state.space !== "HSV")
33953
33904
  throw new Error("Corrupted color state");
33954
- WP.extend(t3.__state, $P.hsv_to_rgb(t3.__state.h, t3.__state.s, t3.__state.v));
33905
+ qP.extend(t3.__state, QP.hsv_to_rgb(t3.__state.h, t3.__state.s, t3.__state.v));
33955
33906
  }
33956
- }, rC.recalculateHSV = function(t3) {
33957
- var e3 = $P.rgb_to_hsv(t3.r, t3.g, t3.b);
33958
- WP.extend(t3.__state, { s: e3.s, v: e3.v }), WP.isNaN(e3.h) ? WP.isUndefined(t3.__state.h) && (t3.__state.h = 0) : t3.__state.h = e3.h;
33959
- }, rC.COMPONENTS = ["r", "g", "b", "h", "s", "v", "hex", "a"], oC(rC.prototype, "r", 2), oC(rC.prototype, "g", 1), oC(rC.prototype, "b", 0), sC(rC.prototype, "h"), sC(rC.prototype, "s"), sC(rC.prototype, "v"), Object.defineProperty(rC.prototype, "a", { get: function() {
33907
+ }, sC.recalculateHSV = function(t3) {
33908
+ var e3 = QP.rgb_to_hsv(t3.r, t3.g, t3.b);
33909
+ qP.extend(t3.__state, { s: e3.s, v: e3.v }), qP.isNaN(e3.h) ? qP.isUndefined(t3.__state.h) && (t3.__state.h = 0) : t3.__state.h = e3.h;
33910
+ }, sC.COMPONENTS = ["r", "g", "b", "h", "s", "v", "hex", "a"], aC(sC.prototype, "r", 2), aC(sC.prototype, "g", 1), aC(sC.prototype, "b", 0), lC(sC.prototype, "h"), lC(sC.prototype, "s"), lC(sC.prototype, "v"), Object.defineProperty(sC.prototype, "a", { get: function() {
33960
33911
  return this.__state.a;
33961
33912
  }, set: function(t3) {
33962
33913
  this.__state.a = t3;
33963
- } }), Object.defineProperty(rC.prototype, "hex", { get: function() {
33964
- return this.__state.space !== "HEX" && (this.__state.hex = $P.rgb_to_hex(this.r, this.g, this.b), this.__state.space = "HEX"), this.__state.hex;
33914
+ } }), Object.defineProperty(sC.prototype, "hex", { get: function() {
33915
+ return this.__state.space !== "HEX" && (this.__state.hex = QP.rgb_to_hex(this.r, this.g, this.b), this.__state.space = "HEX"), this.__state.hex;
33965
33916
  }, set: function(t3) {
33966
33917
  this.__state.space = "HEX", this.__state.hex = t3;
33967
33918
  } });
33968
- var aC = function() {
33919
+ var uC = function() {
33969
33920
  function t3(e3, n3) {
33970
- QP(this, t3), this.initialValue = e3[n3], this.domElement = document.createElement("div"), this.object = e3, this.property = n3, this.__onChange = void 0, this.__onFinishChange = void 0;
33921
+ eC(this, t3), this.initialValue = e3[n3], this.domElement = document.createElement("div"), this.object = e3, this.property = n3, this.__onChange = void 0, this.__onFinishChange = void 0;
33971
33922
  }
33972
- return tC(t3, [{ key: "onChange", value: function(t4) {
33923
+ return nC(t3, [{ key: "onChange", value: function(t4) {
33973
33924
  return this.__onChange = t4, this;
33974
33925
  } }, { key: "onFinishChange", value: function(t4) {
33975
33926
  return this.__onFinishChange = t4, this;
@@ -33982,29 +33933,29 @@ void main(void){
33982
33933
  } }, { key: "isModified", value: function() {
33983
33934
  return this.initialValue !== this.getValue();
33984
33935
  } }]), t3;
33985
- }(), lC = {};
33986
- WP.each({ HTMLEvents: ["change"], MouseEvents: ["click", "mousemove", "mousedown", "mouseup", "mouseover"], KeyboardEvents: ["keydown"] }, function(t3, e3) {
33987
- WP.each(t3, function(t4) {
33988
- lC[t4] = e3;
33936
+ }(), hC = {};
33937
+ qP.each({ HTMLEvents: ["change"], MouseEvents: ["click", "mousemove", "mousedown", "mouseup", "mouseover"], KeyboardEvents: ["keydown"] }, function(t3, e3) {
33938
+ qP.each(t3, function(t4) {
33939
+ hC[t4] = e3;
33989
33940
  });
33990
33941
  });
33991
- var uC = /(\d+(\.\d+)?)px/;
33992
- function hC(t3) {
33993
- if (t3 === "0" || WP.isUndefined(t3))
33942
+ var cC = /(\d+(\.\d+)?)px/;
33943
+ function dC(t3) {
33944
+ if (t3 === "0" || qP.isUndefined(t3))
33994
33945
  return 0;
33995
- var e3 = t3.match(uC);
33996
- return WP.isNull(e3) ? 0 : parseFloat(e3[1]);
33946
+ var e3 = t3.match(cC);
33947
+ return qP.isNull(e3) ? 0 : parseFloat(e3[1]);
33997
33948
  }
33998
- var cC = { makeSelectable: function(t3, e3) {
33949
+ var pC = { makeSelectable: function(t3, e3) {
33999
33950
  t3 !== void 0 && t3.style !== void 0 && (t3.onselectstart = e3 ? function() {
34000
33951
  return false;
34001
33952
  } : function() {
34002
33953
  }, t3.style.MozUserSelect = e3 ? "auto" : "none", t3.style.KhtmlUserSelect = e3 ? "auto" : "none", t3.unselectable = e3 ? "on" : "off");
34003
33954
  }, makeFullscreen: function(t3, e3, n3) {
34004
33955
  var i3 = n3, r3 = e3;
34005
- WP.isUndefined(r3) && (r3 = true), WP.isUndefined(i3) && (i3 = true), t3.style.position = "absolute", r3 && (t3.style.left = 0, t3.style.right = 0), i3 && (t3.style.top = 0, t3.style.bottom = 0);
33956
+ qP.isUndefined(r3) && (r3 = true), qP.isUndefined(i3) && (i3 = true), t3.style.position = "absolute", r3 && (t3.style.left = 0, t3.style.right = 0), i3 && (t3.style.top = 0, t3.style.bottom = 0);
34006
33957
  }, fakeEvent: function(t3, e3, n3, i3) {
34007
- var r3 = n3 || {}, o2 = lC[e3];
33958
+ var r3 = n3 || {}, o2 = hC[e3];
34008
33959
  if (!o2)
34009
33960
  throw new Error("Event type " + e3 + " not supported.");
34010
33961
  var s3 = document.createEvent(o2);
@@ -34015,18 +33966,18 @@ void main(void){
34015
33966
  break;
34016
33967
  case "KeyboardEvents":
34017
33968
  var u2 = s3.initKeyboardEvent || s3.initKeyEvent;
34018
- WP.defaults(r3, { cancelable: true, ctrlKey: false, altKey: false, shiftKey: false, metaKey: false, keyCode: void 0, charCode: void 0 }), u2(e3, r3.bubbles || false, r3.cancelable, window, r3.ctrlKey, r3.altKey, r3.shiftKey, r3.metaKey, r3.keyCode, r3.charCode);
33969
+ qP.defaults(r3, { cancelable: true, ctrlKey: false, altKey: false, shiftKey: false, metaKey: false, keyCode: void 0, charCode: void 0 }), u2(e3, r3.bubbles || false, r3.cancelable, window, r3.ctrlKey, r3.altKey, r3.shiftKey, r3.metaKey, r3.keyCode, r3.charCode);
34019
33970
  break;
34020
33971
  default:
34021
33972
  s3.initEvent(e3, r3.bubbles || false, r3.cancelable || true);
34022
33973
  }
34023
- WP.defaults(s3, i3), t3.dispatchEvent(s3);
33974
+ qP.defaults(s3, i3), t3.dispatchEvent(s3);
34024
33975
  }, bind: function(t3, e3, n3, i3) {
34025
33976
  var r3 = i3 || false;
34026
- return t3.addEventListener ? t3.addEventListener(e3, n3, r3) : t3.attachEvent && t3.attachEvent("on" + e3, n3), cC;
33977
+ return t3.addEventListener ? t3.addEventListener(e3, n3, r3) : t3.attachEvent && t3.attachEvent("on" + e3, n3), pC;
34027
33978
  }, unbind: function(t3, e3, n3, i3) {
34028
33979
  var r3 = i3 || false;
34029
- return t3.removeEventListener ? t3.removeEventListener(e3, n3, r3) : t3.detachEvent && t3.detachEvent("on" + e3, n3), cC;
33980
+ return t3.removeEventListener ? t3.removeEventListener(e3, n3, r3) : t3.detachEvent && t3.detachEvent("on" + e3, n3), pC;
34030
33981
  }, addClass: function(t3, e3) {
34031
33982
  if (t3.className === void 0)
34032
33983
  t3.className = e3;
@@ -34034,7 +33985,7 @@ void main(void){
34034
33985
  var n3 = t3.className.split(/ +/);
34035
33986
  n3.indexOf(e3) === -1 && (n3.push(e3), t3.className = n3.join(" ").replace(/^\s+/, "").replace(/\s+$/, ""));
34036
33987
  }
34037
- return cC;
33988
+ return pC;
34038
33989
  }, removeClass: function(t3, e3) {
34039
33990
  if (e3)
34040
33991
  if (t3.className === e3)
@@ -34045,15 +33996,15 @@ void main(void){
34045
33996
  }
34046
33997
  else
34047
33998
  t3.className = void 0;
34048
- return cC;
33999
+ return pC;
34049
34000
  }, hasClass: function(t3, e3) {
34050
34001
  return new RegExp("(?:^|\\s+)" + e3 + "(?:\\s+|$)").test(t3.className) || false;
34051
34002
  }, getWidth: function(t3) {
34052
34003
  var e3 = getComputedStyle(t3);
34053
- return hC(e3["border-left-width"]) + hC(e3["border-right-width"]) + hC(e3["padding-left"]) + hC(e3["padding-right"]) + hC(e3.width);
34004
+ return dC(e3["border-left-width"]) + dC(e3["border-right-width"]) + dC(e3["padding-left"]) + dC(e3["padding-right"]) + dC(e3.width);
34054
34005
  }, getHeight: function(t3) {
34055
34006
  var e3 = getComputedStyle(t3);
34056
- return hC(e3["border-top-width"]) + hC(e3["border-bottom-width"]) + hC(e3["padding-top"]) + hC(e3["padding-bottom"]) + hC(e3.height);
34007
+ return dC(e3["border-top-width"]) + dC(e3["border-bottom-width"]) + dC(e3["padding-top"]) + dC(e3["padding-bottom"]) + dC(e3.height);
34057
34008
  }, getOffset: function(t3) {
34058
34009
  var e3 = t3, n3 = { left: 0, top: 0 };
34059
34010
  if (e3.offsetParent)
@@ -34063,86 +34014,86 @@ void main(void){
34063
34014
  return n3;
34064
34015
  }, isActive: function(t3) {
34065
34016
  return t3 === document.activeElement && (t3.type || t3.href);
34066
- } }, dC = function(t3) {
34017
+ } }, fC = function(t3) {
34067
34018
  function e3(t4, n3) {
34068
- QP(this, e3);
34069
- var i3 = iC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3)), r3 = i3;
34070
- return i3.__prev = i3.getValue(), i3.__checkbox = document.createElement("input"), i3.__checkbox.setAttribute("type", "checkbox"), cC.bind(i3.__checkbox, "change", function() {
34019
+ eC(this, e3);
34020
+ var i3 = oC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3)), r3 = i3;
34021
+ return i3.__prev = i3.getValue(), i3.__checkbox = document.createElement("input"), i3.__checkbox.setAttribute("type", "checkbox"), pC.bind(i3.__checkbox, "change", function() {
34071
34022
  r3.setValue(!r3.__prev);
34072
34023
  }, false), i3.domElement.appendChild(i3.__checkbox), i3.updateDisplay(), i3;
34073
34024
  }
34074
- return nC(e3, t3), tC(e3, [{ key: "setValue", value: function(t4) {
34075
- var n3 = eC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "setValue", this).call(this, t4);
34025
+ return rC(e3, t3), nC(e3, [{ key: "setValue", value: function(t4) {
34026
+ var n3 = iC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "setValue", this).call(this, t4);
34076
34027
  return this.__onFinishChange && this.__onFinishChange.call(this, this.getValue()), this.__prev = this.getValue(), n3;
34077
34028
  } }, { key: "updateDisplay", value: function() {
34078
- return this.getValue() === true ? (this.__checkbox.setAttribute("checked", "checked"), this.__checkbox.checked = true, this.__prev = true) : (this.__checkbox.checked = false, this.__prev = false), eC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "updateDisplay", this).call(this);
34029
+ return this.getValue() === true ? (this.__checkbox.setAttribute("checked", "checked"), this.__checkbox.checked = true, this.__prev = true) : (this.__checkbox.checked = false, this.__prev = false), iC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "updateDisplay", this).call(this);
34079
34030
  } }]), e3;
34080
- }(aC), pC = function(t3) {
34031
+ }(uC), mC = function(t3) {
34081
34032
  function e3(t4, n3, i3) {
34082
- QP(this, e3);
34083
- var r3 = iC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3)), o2 = i3, s3 = r3;
34084
- if (r3.__select = document.createElement("select"), WP.isArray(o2)) {
34033
+ eC(this, e3);
34034
+ var r3 = oC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3)), o2 = i3, s3 = r3;
34035
+ if (r3.__select = document.createElement("select"), qP.isArray(o2)) {
34085
34036
  var a2 = {};
34086
- WP.each(o2, function(t5) {
34037
+ qP.each(o2, function(t5) {
34087
34038
  a2[t5] = t5;
34088
34039
  }), o2 = a2;
34089
34040
  }
34090
- return WP.each(o2, function(t5, e4) {
34041
+ return qP.each(o2, function(t5, e4) {
34091
34042
  var n4 = document.createElement("option");
34092
34043
  n4.innerHTML = e4, n4.setAttribute("value", t5), s3.__select.appendChild(n4);
34093
- }), r3.updateDisplay(), cC.bind(r3.__select, "change", function() {
34044
+ }), r3.updateDisplay(), pC.bind(r3.__select, "change", function() {
34094
34045
  var t5 = this.options[this.selectedIndex].value;
34095
34046
  s3.setValue(t5);
34096
34047
  }), r3.domElement.appendChild(r3.__select), r3;
34097
34048
  }
34098
- return nC(e3, t3), tC(e3, [{ key: "setValue", value: function(t4) {
34099
- var n3 = eC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "setValue", this).call(this, t4);
34049
+ return rC(e3, t3), nC(e3, [{ key: "setValue", value: function(t4) {
34050
+ var n3 = iC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "setValue", this).call(this, t4);
34100
34051
  return this.__onFinishChange && this.__onFinishChange.call(this, this.getValue()), n3;
34101
34052
  } }, { key: "updateDisplay", value: function() {
34102
- return cC.isActive(this.__select) ? this : (this.__select.value = this.getValue(), eC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "updateDisplay", this).call(this));
34053
+ return pC.isActive(this.__select) ? this : (this.__select.value = this.getValue(), iC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "updateDisplay", this).call(this));
34103
34054
  } }]), e3;
34104
- }(aC), fC = function(t3) {
34055
+ }(uC), gC = function(t3) {
34105
34056
  function e3(t4, n3) {
34106
- QP(this, e3);
34107
- var i3 = iC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3)), r3 = i3;
34057
+ eC(this, e3);
34058
+ var i3 = oC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3)), r3 = i3;
34108
34059
  function o2() {
34109
34060
  r3.setValue(r3.__input.value);
34110
34061
  }
34111
- return i3.__input = document.createElement("input"), i3.__input.setAttribute("type", "text"), cC.bind(i3.__input, "keyup", o2), cC.bind(i3.__input, "change", o2), cC.bind(i3.__input, "blur", function() {
34062
+ return i3.__input = document.createElement("input"), i3.__input.setAttribute("type", "text"), pC.bind(i3.__input, "keyup", o2), pC.bind(i3.__input, "change", o2), pC.bind(i3.__input, "blur", function() {
34112
34063
  r3.__onFinishChange && r3.__onFinishChange.call(r3, r3.getValue());
34113
- }), cC.bind(i3.__input, "keydown", function(t5) {
34064
+ }), pC.bind(i3.__input, "keydown", function(t5) {
34114
34065
  t5.keyCode === 13 && this.blur();
34115
34066
  }), i3.updateDisplay(), i3.domElement.appendChild(i3.__input), i3;
34116
34067
  }
34117
- return nC(e3, t3), tC(e3, [{ key: "updateDisplay", value: function() {
34118
- return cC.isActive(this.__input) || (this.__input.value = this.getValue()), eC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "updateDisplay", this).call(this);
34068
+ return rC(e3, t3), nC(e3, [{ key: "updateDisplay", value: function() {
34069
+ return pC.isActive(this.__input) || (this.__input.value = this.getValue()), iC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "updateDisplay", this).call(this);
34119
34070
  } }]), e3;
34120
- }(aC);
34121
- function mC(t3) {
34071
+ }(uC);
34072
+ function vC(t3) {
34122
34073
  var e3 = t3.toString();
34123
34074
  return e3.indexOf(".") > -1 ? e3.length - e3.indexOf(".") - 1 : 0;
34124
34075
  }
34125
- var gC = function(t3) {
34076
+ var _C = function(t3) {
34126
34077
  function e3(t4, n3, i3) {
34127
- QP(this, e3);
34128
- var r3 = iC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3)), o2 = i3 || {};
34129
- return r3.__min = o2.min, r3.__max = o2.max, r3.__step = o2.step, WP.isUndefined(r3.__step) ? r3.initialValue === 0 ? r3.__impliedStep = 1 : r3.__impliedStep = Math.pow(10, Math.floor(Math.log(Math.abs(r3.initialValue)) / Math.LN10)) / 10 : r3.__impliedStep = r3.__step, r3.__precision = mC(r3.__impliedStep), r3;
34078
+ eC(this, e3);
34079
+ var r3 = oC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3)), o2 = i3 || {};
34080
+ return r3.__min = o2.min, r3.__max = o2.max, r3.__step = o2.step, qP.isUndefined(r3.__step) ? r3.initialValue === 0 ? r3.__impliedStep = 1 : r3.__impliedStep = Math.pow(10, Math.floor(Math.log(Math.abs(r3.initialValue)) / Math.LN10)) / 10 : r3.__impliedStep = r3.__step, r3.__precision = vC(r3.__impliedStep), r3;
34130
34081
  }
34131
- return nC(e3, t3), tC(e3, [{ key: "setValue", value: function(t4) {
34082
+ return rC(e3, t3), nC(e3, [{ key: "setValue", value: function(t4) {
34132
34083
  var n3 = t4;
34133
- return this.__min !== void 0 && n3 < this.__min ? n3 = this.__min : this.__max !== void 0 && n3 > this.__max && (n3 = this.__max), this.__step !== void 0 && n3 % this.__step != 0 && (n3 = Math.round(n3 / this.__step) * this.__step), eC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "setValue", this).call(this, n3);
34084
+ return this.__min !== void 0 && n3 < this.__min ? n3 = this.__min : this.__max !== void 0 && n3 > this.__max && (n3 = this.__max), this.__step !== void 0 && n3 % this.__step != 0 && (n3 = Math.round(n3 / this.__step) * this.__step), iC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "setValue", this).call(this, n3);
34134
34085
  } }, { key: "min", value: function(t4) {
34135
34086
  return this.__min = t4, this;
34136
34087
  } }, { key: "max", value: function(t4) {
34137
34088
  return this.__max = t4, this;
34138
34089
  } }, { key: "step", value: function(t4) {
34139
- return this.__step = t4, this.__impliedStep = t4, this.__precision = mC(t4), this;
34090
+ return this.__step = t4, this.__impliedStep = t4, this.__precision = vC(t4), this;
34140
34091
  } }]), e3;
34141
- }(aC);
34142
- var vC = function(t3) {
34092
+ }(uC);
34093
+ var yC = function(t3) {
34143
34094
  function e3(t4, n3, i3) {
34144
- QP(this, e3);
34145
- var r3 = iC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3, i3));
34095
+ eC(this, e3);
34096
+ var r3 = oC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3, i3));
34146
34097
  r3.__truncationSuspended = false;
34147
34098
  var o2 = r3, s3 = void 0;
34148
34099
  function a2() {
@@ -34153,101 +34104,101 @@ void main(void){
34153
34104
  o2.setValue(o2.getValue() + e4 * o2.__impliedStep), s3 = t5.clientY;
34154
34105
  }
34155
34106
  function u2() {
34156
- cC.unbind(window, "mousemove", l2), cC.unbind(window, "mouseup", u2), a2();
34107
+ pC.unbind(window, "mousemove", l2), pC.unbind(window, "mouseup", u2), a2();
34157
34108
  }
34158
- return r3.__input = document.createElement("input"), r3.__input.setAttribute("type", "text"), cC.bind(r3.__input, "change", function() {
34109
+ return r3.__input = document.createElement("input"), r3.__input.setAttribute("type", "text"), pC.bind(r3.__input, "change", function() {
34159
34110
  var t5 = parseFloat(o2.__input.value);
34160
- WP.isNaN(t5) || o2.setValue(t5);
34161
- }), cC.bind(r3.__input, "blur", function() {
34111
+ qP.isNaN(t5) || o2.setValue(t5);
34112
+ }), pC.bind(r3.__input, "blur", function() {
34162
34113
  a2();
34163
- }), cC.bind(r3.__input, "mousedown", function(t5) {
34164
- cC.bind(window, "mousemove", l2), cC.bind(window, "mouseup", u2), s3 = t5.clientY;
34165
- }), cC.bind(r3.__input, "keydown", function(t5) {
34114
+ }), pC.bind(r3.__input, "mousedown", function(t5) {
34115
+ pC.bind(window, "mousemove", l2), pC.bind(window, "mouseup", u2), s3 = t5.clientY;
34116
+ }), pC.bind(r3.__input, "keydown", function(t5) {
34166
34117
  t5.keyCode === 13 && (o2.__truncationSuspended = true, this.blur(), o2.__truncationSuspended = false, a2());
34167
34118
  }), r3.updateDisplay(), r3.domElement.appendChild(r3.__input), r3;
34168
34119
  }
34169
- return nC(e3, t3), tC(e3, [{ key: "updateDisplay", value: function() {
34120
+ return rC(e3, t3), nC(e3, [{ key: "updateDisplay", value: function() {
34170
34121
  var t4, n3, i3;
34171
- return this.__input.value = this.__truncationSuspended ? this.getValue() : (t4 = this.getValue(), n3 = this.__precision, i3 = Math.pow(10, n3), Math.round(t4 * i3) / i3), eC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "updateDisplay", this).call(this);
34122
+ return this.__input.value = this.__truncationSuspended ? this.getValue() : (t4 = this.getValue(), n3 = this.__precision, i3 = Math.pow(10, n3), Math.round(t4 * i3) / i3), iC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "updateDisplay", this).call(this);
34172
34123
  } }]), e3;
34173
- }(gC);
34174
- function _C(t3, e3, n3, i3, r3) {
34124
+ }(_C);
34125
+ function xC(t3, e3, n3, i3, r3) {
34175
34126
  return i3 + (t3 - e3) / (n3 - e3) * (r3 - i3);
34176
34127
  }
34177
- var yC = function(t3) {
34128
+ var bC = function(t3) {
34178
34129
  function e3(t4, n3, i3, r3, o2) {
34179
- QP(this, e3);
34180
- var s3 = iC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3, { min: i3, max: r3, step: o2 })), a2 = s3;
34130
+ eC(this, e3);
34131
+ var s3 = oC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3, { min: i3, max: r3, step: o2 })), a2 = s3;
34181
34132
  function l2(t5) {
34182
34133
  t5.preventDefault();
34183
34134
  var e4 = a2.__background.getBoundingClientRect();
34184
- return a2.setValue(_C(t5.clientX, e4.left, e4.right, a2.__min, a2.__max)), false;
34135
+ return a2.setValue(xC(t5.clientX, e4.left, e4.right, a2.__min, a2.__max)), false;
34185
34136
  }
34186
34137
  function u2() {
34187
- cC.unbind(window, "mousemove", l2), cC.unbind(window, "mouseup", u2), a2.__onFinishChange && a2.__onFinishChange.call(a2, a2.getValue());
34138
+ pC.unbind(window, "mousemove", l2), pC.unbind(window, "mouseup", u2), a2.__onFinishChange && a2.__onFinishChange.call(a2, a2.getValue());
34188
34139
  }
34189
34140
  function h2(t5) {
34190
34141
  var e4 = t5.touches[0].clientX, n4 = a2.__background.getBoundingClientRect();
34191
- a2.setValue(_C(e4, n4.left, n4.right, a2.__min, a2.__max));
34142
+ a2.setValue(xC(e4, n4.left, n4.right, a2.__min, a2.__max));
34192
34143
  }
34193
34144
  function c2() {
34194
- cC.unbind(window, "touchmove", h2), cC.unbind(window, "touchend", c2), a2.__onFinishChange && a2.__onFinishChange.call(a2, a2.getValue());
34145
+ pC.unbind(window, "touchmove", h2), pC.unbind(window, "touchend", c2), a2.__onFinishChange && a2.__onFinishChange.call(a2, a2.getValue());
34195
34146
  }
34196
- return s3.__background = document.createElement("div"), s3.__foreground = document.createElement("div"), cC.bind(s3.__background, "mousedown", function(t5) {
34197
- document.activeElement.blur(), cC.bind(window, "mousemove", l2), cC.bind(window, "mouseup", u2), l2(t5);
34198
- }), cC.bind(s3.__background, "touchstart", function(t5) {
34147
+ return s3.__background = document.createElement("div"), s3.__foreground = document.createElement("div"), pC.bind(s3.__background, "mousedown", function(t5) {
34148
+ document.activeElement.blur(), pC.bind(window, "mousemove", l2), pC.bind(window, "mouseup", u2), l2(t5);
34149
+ }), pC.bind(s3.__background, "touchstart", function(t5) {
34199
34150
  if (t5.touches.length !== 1)
34200
34151
  return;
34201
- cC.bind(window, "touchmove", h2), cC.bind(window, "touchend", c2), h2(t5);
34202
- }), cC.addClass(s3.__background, "slider"), cC.addClass(s3.__foreground, "slider-fg"), s3.updateDisplay(), s3.__background.appendChild(s3.__foreground), s3.domElement.appendChild(s3.__background), s3;
34152
+ pC.bind(window, "touchmove", h2), pC.bind(window, "touchend", c2), h2(t5);
34153
+ }), pC.addClass(s3.__background, "slider"), pC.addClass(s3.__foreground, "slider-fg"), s3.updateDisplay(), s3.__background.appendChild(s3.__foreground), s3.domElement.appendChild(s3.__background), s3;
34203
34154
  }
34204
- return nC(e3, t3), tC(e3, [{ key: "updateDisplay", value: function() {
34155
+ return rC(e3, t3), nC(e3, [{ key: "updateDisplay", value: function() {
34205
34156
  var t4 = (this.getValue() - this.__min) / (this.__max - this.__min);
34206
- return this.__foreground.style.width = 100 * t4 + "%", eC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "updateDisplay", this).call(this);
34157
+ return this.__foreground.style.width = 100 * t4 + "%", iC(e3.prototype.__proto__ || Object.getPrototypeOf(e3.prototype), "updateDisplay", this).call(this);
34207
34158
  } }]), e3;
34208
- }(gC), xC = function(t3) {
34159
+ }(_C), TC = function(t3) {
34209
34160
  function e3(t4, n3, i3) {
34210
- QP(this, e3);
34211
- var r3 = iC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3)), o2 = r3;
34212
- return r3.__button = document.createElement("div"), r3.__button.innerHTML = i3 === void 0 ? "Fire" : i3, cC.bind(r3.__button, "click", function(t5) {
34161
+ eC(this, e3);
34162
+ var r3 = oC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3)), o2 = r3;
34163
+ return r3.__button = document.createElement("div"), r3.__button.innerHTML = i3 === void 0 ? "Fire" : i3, pC.bind(r3.__button, "click", function(t5) {
34213
34164
  return t5.preventDefault(), o2.fire(), false;
34214
- }), cC.addClass(r3.__button, "button"), r3.domElement.appendChild(r3.__button), r3;
34165
+ }), pC.addClass(r3.__button, "button"), r3.domElement.appendChild(r3.__button), r3;
34215
34166
  }
34216
- return nC(e3, t3), tC(e3, [{ key: "fire", value: function() {
34167
+ return rC(e3, t3), nC(e3, [{ key: "fire", value: function() {
34217
34168
  this.__onChange && this.__onChange.call(this), this.getValue().call(this.object), this.__onFinishChange && this.__onFinishChange.call(this, this.getValue());
34218
34169
  } }]), e3;
34219
- }(aC), bC = function(t3) {
34170
+ }(uC), wC = function(t3) {
34220
34171
  function e3(t4, n3) {
34221
- QP(this, e3);
34222
- var i3 = iC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3));
34223
- i3.__color = new rC(i3.getValue()), i3.__temp = new rC(0);
34172
+ eC(this, e3);
34173
+ var i3 = oC(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this, t4, n3));
34174
+ i3.__color = new sC(i3.getValue()), i3.__temp = new sC(0);
34224
34175
  var r3 = i3;
34225
- i3.domElement = document.createElement("div"), cC.makeSelectable(i3.domElement, false), i3.__selector = document.createElement("div"), i3.__selector.className = "selector", i3.__saturation_field = document.createElement("div"), i3.__saturation_field.className = "saturation-field", i3.__field_knob = document.createElement("div"), i3.__field_knob.className = "field-knob", i3.__field_knob_border = "2px solid ", i3.__hue_knob = document.createElement("div"), i3.__hue_knob.className = "hue-knob", i3.__hue_field = document.createElement("div"), i3.__hue_field.className = "hue-field", i3.__input = document.createElement("input"), i3.__input.type = "text", i3.__input_textShadow = "0 1px 1px ", cC.bind(i3.__input, "keydown", function(t5) {
34176
+ i3.domElement = document.createElement("div"), pC.makeSelectable(i3.domElement, false), i3.__selector = document.createElement("div"), i3.__selector.className = "selector", i3.__saturation_field = document.createElement("div"), i3.__saturation_field.className = "saturation-field", i3.__field_knob = document.createElement("div"), i3.__field_knob.className = "field-knob", i3.__field_knob_border = "2px solid ", i3.__hue_knob = document.createElement("div"), i3.__hue_knob.className = "hue-knob", i3.__hue_field = document.createElement("div"), i3.__hue_field.className = "hue-field", i3.__input = document.createElement("input"), i3.__input.type = "text", i3.__input_textShadow = "0 1px 1px ", pC.bind(i3.__input, "keydown", function(t5) {
34226
34177
  t5.keyCode === 13 && c2.call(this);
34227
- }), cC.bind(i3.__input, "blur", c2), cC.bind(i3.__selector, "mousedown", function() {
34228
- cC.addClass(this, "drag").bind(window, "mouseup", function() {
34229
- cC.removeClass(r3.__selector, "drag");
34178
+ }), pC.bind(i3.__input, "blur", c2), pC.bind(i3.__selector, "mousedown", function() {
34179
+ pC.addClass(this, "drag").bind(window, "mouseup", function() {
34180
+ pC.removeClass(r3.__selector, "drag");
34230
34181
  });
34231
- }), cC.bind(i3.__selector, "touchstart", function() {
34232
- cC.addClass(this, "drag").bind(window, "touchend", function() {
34233
- cC.removeClass(r3.__selector, "drag");
34182
+ }), pC.bind(i3.__selector, "touchstart", function() {
34183
+ pC.addClass(this, "drag").bind(window, "touchend", function() {
34184
+ pC.removeClass(r3.__selector, "drag");
34234
34185
  });
34235
34186
  });
34236
34187
  var o2, s3 = document.createElement("div");
34237
34188
  function a2(t5) {
34238
- p2(t5), cC.bind(window, "mousemove", p2), cC.bind(window, "touchmove", p2), cC.bind(window, "mouseup", u2), cC.bind(window, "touchend", u2);
34189
+ p2(t5), pC.bind(window, "mousemove", p2), pC.bind(window, "touchmove", p2), pC.bind(window, "mouseup", u2), pC.bind(window, "touchend", u2);
34239
34190
  }
34240
34191
  function l2(t5) {
34241
- f2(t5), cC.bind(window, "mousemove", f2), cC.bind(window, "touchmove", f2), cC.bind(window, "mouseup", h2), cC.bind(window, "touchend", h2);
34192
+ f2(t5), pC.bind(window, "mousemove", f2), pC.bind(window, "touchmove", f2), pC.bind(window, "mouseup", h2), pC.bind(window, "touchend", h2);
34242
34193
  }
34243
34194
  function u2() {
34244
- cC.unbind(window, "mousemove", p2), cC.unbind(window, "touchmove", p2), cC.unbind(window, "mouseup", u2), cC.unbind(window, "touchend", u2), d2();
34195
+ pC.unbind(window, "mousemove", p2), pC.unbind(window, "touchmove", p2), pC.unbind(window, "mouseup", u2), pC.unbind(window, "touchend", u2), d2();
34245
34196
  }
34246
34197
  function h2() {
34247
- cC.unbind(window, "mousemove", f2), cC.unbind(window, "touchmove", f2), cC.unbind(window, "mouseup", h2), cC.unbind(window, "touchend", h2), d2();
34198
+ pC.unbind(window, "mousemove", f2), pC.unbind(window, "touchmove", f2), pC.unbind(window, "mouseup", h2), pC.unbind(window, "touchend", h2), d2();
34248
34199
  }
34249
34200
  function c2() {
34250
- var t5 = ZP(this.value);
34201
+ var t5 = $P(this.value);
34251
34202
  t5 !== false ? (r3.__color.__state = t5, r3.setValue(r3.__color.toOriginal())) : this.value = r3.__color.toString();
34252
34203
  }
34253
34204
  function d2() {
@@ -34263,28 +34214,28 @@ void main(void){
34263
34214
  var e4 = r3.__hue_field.getBoundingClientRect(), n4 = 1 - ((t5.touches && t5.touches[0] || t5).clientY - e4.top) / (e4.bottom - e4.top);
34264
34215
  return n4 > 1 ? n4 = 1 : n4 < 0 && (n4 = 0), r3.__color.h = 360 * n4, r3.setValue(r3.__color.toOriginal()), false;
34265
34216
  }
34266
- return WP.extend(i3.__selector.style, { width: "122px", height: "102px", padding: "3px", backgroundColor: "#222", boxShadow: "0px 1px 3px rgba(0,0,0,0.3)" }), WP.extend(i3.__field_knob.style, { position: "absolute", width: "12px", height: "12px", border: i3.__field_knob_border + (i3.__color.v < 0.5 ? "#fff" : "#000"), boxShadow: "0px 1px 3px rgba(0,0,0,0.5)", borderRadius: "12px", zIndex: 1 }), WP.extend(i3.__hue_knob.style, { position: "absolute", width: "15px", height: "2px", borderRight: "4px solid #fff", zIndex: 1 }), WP.extend(i3.__saturation_field.style, { width: "100px", height: "100px", border: "1px solid #555", marginRight: "3px", display: "inline-block", cursor: "pointer" }), WP.extend(s3.style, { width: "100%", height: "100%", background: "none" }), wC(s3, "top", "rgba(0,0,0,0)", "#000"), WP.extend(i3.__hue_field.style, { width: "15px", height: "100px", border: "1px solid #555", cursor: "ns-resize", position: "absolute", top: "3px", right: "3px" }), (o2 = i3.__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%);", WP.extend(i3.__input.style, { outline: "none", textAlign: "center", color: "#fff", border: 0, fontWeight: "bold", textShadow: i3.__input_textShadow + "rgba(0,0,0,0.7)" }), cC.bind(i3.__saturation_field, "mousedown", a2), cC.bind(i3.__saturation_field, "touchstart", a2), cC.bind(i3.__field_knob, "mousedown", a2), cC.bind(i3.__field_knob, "touchstart", a2), cC.bind(i3.__hue_field, "mousedown", l2), cC.bind(i3.__hue_field, "touchstart", l2), i3.__saturation_field.appendChild(s3), i3.__selector.appendChild(i3.__field_knob), i3.__selector.appendChild(i3.__saturation_field), i3.__selector.appendChild(i3.__hue_field), i3.__hue_field.appendChild(i3.__hue_knob), i3.domElement.appendChild(i3.__input), i3.domElement.appendChild(i3.__selector), i3.updateDisplay(), i3;
34217
+ return qP.extend(i3.__selector.style, { width: "122px", height: "102px", padding: "3px", backgroundColor: "#222", boxShadow: "0px 1px 3px rgba(0,0,0,0.3)" }), qP.extend(i3.__field_knob.style, { position: "absolute", width: "12px", height: "12px", border: i3.__field_knob_border + (i3.__color.v < 0.5 ? "#fff" : "#000"), boxShadow: "0px 1px 3px rgba(0,0,0,0.5)", borderRadius: "12px", zIndex: 1 }), qP.extend(i3.__hue_knob.style, { position: "absolute", width: "15px", height: "2px", borderRight: "4px solid #fff", zIndex: 1 }), qP.extend(i3.__saturation_field.style, { width: "100px", height: "100px", border: "1px solid #555", marginRight: "3px", display: "inline-block", cursor: "pointer" }), qP.extend(s3.style, { width: "100%", height: "100%", background: "none" }), EC(s3, "top", "rgba(0,0,0,0)", "#000"), qP.extend(i3.__hue_field.style, { width: "15px", height: "100px", border: "1px solid #555", cursor: "ns-resize", position: "absolute", top: "3px", right: "3px" }), (o2 = i3.__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%);", qP.extend(i3.__input.style, { outline: "none", textAlign: "center", color: "#fff", border: 0, fontWeight: "bold", textShadow: i3.__input_textShadow + "rgba(0,0,0,0.7)" }), pC.bind(i3.__saturation_field, "mousedown", a2), pC.bind(i3.__saturation_field, "touchstart", a2), pC.bind(i3.__field_knob, "mousedown", a2), pC.bind(i3.__field_knob, "touchstart", a2), pC.bind(i3.__hue_field, "mousedown", l2), pC.bind(i3.__hue_field, "touchstart", l2), i3.__saturation_field.appendChild(s3), i3.__selector.appendChild(i3.__field_knob), i3.__selector.appendChild(i3.__saturation_field), i3.__selector.appendChild(i3.__hue_field), i3.__hue_field.appendChild(i3.__hue_knob), i3.domElement.appendChild(i3.__input), i3.domElement.appendChild(i3.__selector), i3.updateDisplay(), i3;
34267
34218
  }
34268
- return nC(e3, t3), tC(e3, [{ key: "updateDisplay", value: function() {
34269
- var t4 = ZP(this.getValue());
34219
+ return rC(e3, t3), nC(e3, [{ key: "updateDisplay", value: function() {
34220
+ var t4 = $P(this.getValue());
34270
34221
  if (t4 !== false) {
34271
34222
  var e4 = false;
34272
- WP.each(rC.COMPONENTS, function(n4) {
34273
- if (!WP.isUndefined(t4[n4]) && !WP.isUndefined(this.__color.__state[n4]) && t4[n4] !== this.__color.__state[n4])
34223
+ qP.each(sC.COMPONENTS, function(n4) {
34224
+ if (!qP.isUndefined(t4[n4]) && !qP.isUndefined(this.__color.__state[n4]) && t4[n4] !== this.__color.__state[n4])
34274
34225
  return e4 = true, {};
34275
- }, this), e4 && WP.extend(this.__color.__state, t4);
34226
+ }, this), e4 && qP.extend(this.__color.__state, t4);
34276
34227
  }
34277
- WP.extend(this.__temp.__state, this.__color.__state), this.__temp.a = 1;
34228
+ qP.extend(this.__temp.__state, this.__color.__state), this.__temp.a = 1;
34278
34229
  var n3 = this.__color.v < 0.5 || this.__color.s > 0.5 ? 255 : 0, i3 = 255 - n3;
34279
- WP.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(" + n3 + "," + n3 + "," + n3 + ")" }), this.__hue_knob.style.marginTop = 100 * (1 - this.__color.h / 360) + "px", this.__temp.s = 1, this.__temp.v = 1, wC(this.__saturation_field, "left", "#fff", this.__temp.toHexString()), this.__input.value = this.__color.toString(), WP.extend(this.__input.style, { backgroundColor: this.__color.toHexString(), color: "rgb(" + n3 + "," + n3 + "," + n3 + ")", textShadow: this.__input_textShadow + "rgba(" + i3 + "," + i3 + "," + i3 + ",.7)" });
34230
+ qP.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(" + n3 + "," + n3 + "," + n3 + ")" }), this.__hue_knob.style.marginTop = 100 * (1 - this.__color.h / 360) + "px", this.__temp.s = 1, this.__temp.v = 1, EC(this.__saturation_field, "left", "#fff", this.__temp.toHexString()), this.__input.value = this.__color.toString(), qP.extend(this.__input.style, { backgroundColor: this.__color.toHexString(), color: "rgb(" + n3 + "," + n3 + "," + n3 + ")", textShadow: this.__input_textShadow + "rgba(" + i3 + "," + i3 + "," + i3 + ",.7)" });
34280
34231
  } }]), e3;
34281
- }(aC), TC = ["-moz-", "-o-", "-webkit-", "-ms-", ""];
34282
- function wC(t3, e3, n3, i3) {
34283
- t3.style.background = "", WP.each(TC, function(r3) {
34232
+ }(uC), SC = ["-moz-", "-o-", "-webkit-", "-ms-", ""];
34233
+ function EC(t3, e3, n3, i3) {
34234
+ t3.style.background = "", qP.each(SC, function(r3) {
34284
34235
  t3.style.cssText += "background: " + r3 + "linear-gradient(" + e3 + ", " + n3 + " 0%, " + i3 + " 100%); ";
34285
34236
  });
34286
34237
  }
34287
- var SC = function(t3, e3) {
34238
+ var MC = function(t3, e3) {
34288
34239
  var n3 = e3 || document, i3 = document.createElement("style");
34289
34240
  i3.type = "text/css", i3.innerHTML = t3;
34290
34241
  var r3 = n3.getElementsByTagName("head")[0];
@@ -34292,7 +34243,7 @@ void main(void){
34292
34243
  r3.appendChild(i3);
34293
34244
  } catch (t4) {
34294
34245
  }
34295
- }, EC = `<div id="dg-save" class="dg dialogue">
34246
+ }, AC = `<div id="dg-save" class="dg dialogue">
34296
34247
 
34297
34248
  Here's the new load parameter for your <code>GUI</code>'s constructor:
34298
34249
 
@@ -34312,50 +34263,50 @@ void main(void){
34312
34263
 
34313
34264
  </div>
34314
34265
 
34315
- </div>`, MC = function(t3, e3) {
34266
+ </div>`, RC = function(t3, e3) {
34316
34267
  var n3 = t3[e3];
34317
- return WP.isArray(arguments[2]) || WP.isObject(arguments[2]) ? new pC(t3, e3, arguments[2]) : WP.isNumber(n3) ? WP.isNumber(arguments[2]) && WP.isNumber(arguments[3]) ? WP.isNumber(arguments[4]) ? new yC(t3, e3, arguments[2], arguments[3], arguments[4]) : new yC(t3, e3, arguments[2], arguments[3]) : WP.isNumber(arguments[4]) ? new vC(t3, e3, { min: arguments[2], max: arguments[3], step: arguments[4] }) : new vC(t3, e3, { min: arguments[2], max: arguments[3] }) : WP.isString(n3) ? new fC(t3, e3) : WP.isFunction(n3) ? new xC(t3, e3, "") : WP.isBoolean(n3) ? new dC(t3, e3) : null;
34268
+ return qP.isArray(arguments[2]) || qP.isObject(arguments[2]) ? new mC(t3, e3, arguments[2]) : qP.isNumber(n3) ? qP.isNumber(arguments[2]) && qP.isNumber(arguments[3]) ? qP.isNumber(arguments[4]) ? new bC(t3, e3, arguments[2], arguments[3], arguments[4]) : new bC(t3, e3, arguments[2], arguments[3]) : qP.isNumber(arguments[4]) ? new yC(t3, e3, { min: arguments[2], max: arguments[3], step: arguments[4] }) : new yC(t3, e3, { min: arguments[2], max: arguments[3] }) : qP.isString(n3) ? new gC(t3, e3) : qP.isFunction(n3) ? new TC(t3, e3, "") : qP.isBoolean(n3) ? new fC(t3, e3) : null;
34318
34269
  };
34319
- var AC = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(t3) {
34270
+ var PC = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(t3) {
34320
34271
  setTimeout(t3, 1e3 / 60);
34321
- }, RC = function() {
34272
+ }, CC = function() {
34322
34273
  function t3() {
34323
- QP(this, t3), this.backgroundElement = document.createElement("div"), WP.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" }), cC.makeFullscreen(this.backgroundElement), this.backgroundElement.style.position = "fixed", this.domElement = document.createElement("div"), WP.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);
34274
+ eC(this, t3), this.backgroundElement = document.createElement("div"), qP.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" }), pC.makeFullscreen(this.backgroundElement), this.backgroundElement.style.position = "fixed", this.domElement = document.createElement("div"), qP.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);
34324
34275
  var e3 = this;
34325
- cC.bind(this.backgroundElement, "click", function() {
34276
+ pC.bind(this.backgroundElement, "click", function() {
34326
34277
  e3.hide();
34327
34278
  });
34328
34279
  }
34329
- return tC(t3, [{ key: "show", value: function() {
34280
+ return nC(t3, [{ key: "show", value: function() {
34330
34281
  var t4 = this;
34331
- this.backgroundElement.style.display = "block", this.domElement.style.display = "block", this.domElement.style.opacity = 0, this.domElement.style.webkitTransform = "scale(1.1)", this.layout(), WP.defer(function() {
34282
+ this.backgroundElement.style.display = "block", this.domElement.style.display = "block", this.domElement.style.opacity = 0, this.domElement.style.webkitTransform = "scale(1.1)", this.layout(), qP.defer(function() {
34332
34283
  t4.backgroundElement.style.opacity = 1, t4.domElement.style.opacity = 1, t4.domElement.style.webkitTransform = "scale(1)";
34333
34284
  });
34334
34285
  } }, { key: "hide", value: function() {
34335
34286
  var t4 = this, e3 = function e4() {
34336
- t4.domElement.style.display = "none", t4.backgroundElement.style.display = "none", cC.unbind(t4.domElement, "webkitTransitionEnd", e4), cC.unbind(t4.domElement, "transitionend", e4), cC.unbind(t4.domElement, "oTransitionEnd", e4);
34287
+ t4.domElement.style.display = "none", t4.backgroundElement.style.display = "none", pC.unbind(t4.domElement, "webkitTransitionEnd", e4), pC.unbind(t4.domElement, "transitionend", e4), pC.unbind(t4.domElement, "oTransitionEnd", e4);
34337
34288
  };
34338
- cC.bind(this.domElement, "webkitTransitionEnd", e3), cC.bind(this.domElement, "transitionend", e3), cC.bind(this.domElement, "oTransitionEnd", e3), this.backgroundElement.style.opacity = 0, this.domElement.style.opacity = 0, this.domElement.style.webkitTransform = "scale(1.1)";
34289
+ pC.bind(this.domElement, "webkitTransitionEnd", e3), pC.bind(this.domElement, "transitionend", e3), pC.bind(this.domElement, "oTransitionEnd", e3), this.backgroundElement.style.opacity = 0, this.domElement.style.opacity = 0, this.domElement.style.webkitTransform = "scale(1.1)";
34339
34290
  } }, { key: "layout", value: function() {
34340
- this.domElement.style.left = window.innerWidth / 2 - cC.getWidth(this.domElement) / 2 + "px", this.domElement.style.top = window.innerHeight / 2 - cC.getHeight(this.domElement) / 2 + "px";
34291
+ this.domElement.style.left = window.innerWidth / 2 - pC.getWidth(this.domElement) / 2 + "px", this.domElement.style.top = window.innerHeight / 2 - pC.getHeight(this.domElement) / 2 + "px";
34341
34292
  } }]), t3;
34342
34293
  }();
34343
- SC(function(t3) {
34294
+ MC(function(t3) {
34344
34295
  if (t3 && typeof window != "undefined") {
34345
34296
  var e3 = document.createElement("style");
34346
34297
  return e3.setAttribute("type", "text/css"), e3.innerHTML = t3, document.head.appendChild(e3), t3;
34347
34298
  }
34348
34299
  }(".dg ul{list-style:none;margin:0;padding:0;width:100%;clear:both}.dg.ac{position:fixed;top:0;left:0;right:0;height:0;z-index:0}.dg:not(.ac) .main{overflow:hidden}.dg.main{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear}.dg.main.taller-than-window{overflow-y:auto}.dg.main.taller-than-window .close-button{opacity:1;margin-top:-1px;border-top:1px solid #2c2c2c}.dg.main ul.closed .close-button{opacity:1 !important}.dg.main:hover .close-button,.dg.main .close-button.drag{opacity:1}.dg.main .close-button{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear;border:0;line-height:19px;height:20px;cursor:pointer;text-align:center;background-color:#000}.dg.main .close-button.close-top{position:relative}.dg.main .close-button.close-bottom{position:absolute}.dg.main .close-button:hover{background-color:#111}.dg.a{float:right;margin-right:15px;overflow-y:visible}.dg.a.has-save>ul.close-top{margin-top:0}.dg.a.has-save>ul.close-bottom{margin-top:27px}.dg.a.has-save>ul.closed{margin-top:0}.dg.a .save-row{top:0;z-index:1002}.dg.a .save-row.close-top{position:relative}.dg.a .save-row.close-bottom{position:fixed}.dg li{-webkit-transition:height .1s ease-out;-o-transition:height .1s ease-out;-moz-transition:height .1s ease-out;transition:height .1s ease-out;-webkit-transition:overflow .1s linear;-o-transition:overflow .1s linear;-moz-transition:overflow .1s linear;transition:overflow .1s linear}.dg li:not(.folder){cursor:auto;height:27px;line-height:27px;padding:0 4px 0 5px}.dg li.folder{padding:0;border-left:4px solid rgba(0,0,0,0)}.dg li.title{cursor:pointer;margin-left:-4px}.dg .closed li:not(.title),.dg .closed ul li,.dg .closed ul li>*{height:0;overflow:hidden;border:0}.dg .cr{clear:both;padding-left:3px;height:27px;overflow:hidden}.dg .property-name{cursor:default;float:left;clear:left;width:40%;overflow:hidden;text-overflow:ellipsis}.dg .c{float:left;width:60%;position:relative}.dg .c input[type=text]{border:0;margin-top:4px;padding:3px;width:100%;float:right}.dg .has-slider input[type=text]{width:30%;margin-left:0}.dg .slider{float:left;width:66%;margin-left:-5px;margin-right:0;height:19px;margin-top:4px}.dg .slider-fg{height:100%}.dg .c input[type=checkbox]{margin-top:7px}.dg .c select{margin-top:5px}.dg .cr.function,.dg .cr.function .property-name,.dg .cr.function *,.dg .cr.boolean,.dg .cr.boolean *{cursor:pointer}.dg .cr.color{overflow:visible}.dg .selector{display:none;position:absolute;margin-left:-9px;margin-top:23px;z-index:10}.dg .c:hover .selector,.dg .selector.drag{display:block}.dg li.save-row{padding:0}.dg li.save-row .button{display:inline-block;padding:0px 6px}.dg.dialogue{background-color:#222;width:460px;padding:15px;font-size:13px;line-height:15px}#dg-new-constructor{padding:10px;color:#222;font-family:Monaco, monospace;font-size:10px;border:0;resize:none;box-shadow:inset 1px 1px 1px #888;word-wrap:break-word;margin:12px 0;display:block;width:440px;overflow-y:scroll;height:100px;position:relative}#dg-local-explain{display:none;font-size:11px;line-height:17px;border-radius:3px;background-color:#333;padding:8px;margin-top:10px}#dg-local-explain code{font-size:10px}#dat-gui-save-locally{display:none}.dg{color:#eee;font:11px 'Lucida Grande', sans-serif;text-shadow:0 -1px 0 #111}.dg.main::-webkit-scrollbar{width:5px;background:#1a1a1a}.dg.main::-webkit-scrollbar-corner{height:0;display:none}.dg.main::-webkit-scrollbar-thumb{border-radius:5px;background:#676767}.dg li:not(.folder){background:#1a1a1a;border-bottom:1px solid #2c2c2c}.dg li.save-row{line-height:25px;background:#dad5cb;border:0}.dg li.save-row select{margin-left:5px;width:108px}.dg li.save-row .button{margin-left:5px;margin-top:1px;border-radius:2px;font-size:9px;line-height:7px;padding:4px 4px 5px 4px;background:#c5bdad;color:#fff;text-shadow:0 1px 0 #b0a58f;box-shadow:0 -1px 0 #b0a58f;cursor:pointer}.dg li.save-row .button.gears{background:#c5bdad url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQJJREFUeNpiYKAU/P//PwGIC/ApCABiBSAW+I8AClAcgKxQ4T9hoMAEUrxx2QSGN6+egDX+/vWT4e7N82AMYoPAx/evwWoYoSYbACX2s7KxCxzcsezDh3evFoDEBYTEEqycggWAzA9AuUSQQgeYPa9fPv6/YWm/Acx5IPb7ty/fw+QZblw67vDs8R0YHyQhgObx+yAJkBqmG5dPPDh1aPOGR/eugW0G4vlIoTIfyFcA+QekhhHJhPdQxbiAIguMBTQZrPD7108M6roWYDFQiIAAv6Aow/1bFwXgis+f2LUAynwoIaNcz8XNx3Dl7MEJUDGQpx9gtQ8YCueB+D26OECAAQDadt7e46D42QAAAABJRU5ErkJggg==) 2px 1px no-repeat;height:7px;width:8px}.dg li.save-row .button:hover{background-color:#bab19e;box-shadow:0 -1px 0 #b0a58f}.dg li.folder{border-bottom:0}.dg li.title{padding-left:16px;background:#000 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;cursor:pointer;border-bottom:1px solid rgba(255,255,255,0.2)}.dg .closed li.title{background-image:url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlGIWqMCbWAEAOw==)}.dg .cr.boolean{border-left:3px solid #806787}.dg .cr.color{border-left:3px solid}.dg .cr.function{border-left:3px solid #e61d5f}.dg .cr.number{border-left:3px solid #2FA1D6}.dg .cr.number input[type=text]{color:#2FA1D6}.dg .cr.string{border-left:3px solid #1ed36f}.dg .cr.string input[type=text]{color:#1ed36f}.dg .cr.function:hover,.dg .cr.boolean:hover{background:#111}.dg .c input[type=text]{background:#303030;outline:none}.dg .c input[type=text]:hover{background:#3c3c3c}.dg .c input[type=text]:focus{background:#494949;color:#fff}.dg .c .slider{background:#303030;cursor:ew-resize}.dg .c .slider-fg{background:#2FA1D6;max-width:100%}.dg .c .slider:hover{background:#3c3c3c}.dg .c .slider:hover .slider-fg{background:#44abda}\n"));
34349
- var PC = function() {
34300
+ var IC = function() {
34350
34301
  try {
34351
34302
  return !!window.localStorage;
34352
34303
  } catch (t3) {
34353
34304
  return false;
34354
34305
  }
34355
- }(), CC = void 0, IC = true, OC = void 0, LC = false, NC = [], DC = function t3(e3) {
34306
+ }(), OC = void 0, LC = true, NC = void 0, DC = false, FC = [], BC = function t3(e3) {
34356
34307
  var n3 = this, i3 = e3 || {};
34357
- this.domElement = document.createElement("div"), this.__ul = document.createElement("ul"), this.domElement.appendChild(this.__ul), cC.addClass(this.domElement, "dg"), this.__folders = {}, this.__controllers = [], this.__rememberedObjects = [], this.__rememberedObjectIndecesToControllers = [], this.__listening = [], i3 = WP.defaults(i3, { closeOnTop: false, autoPlace: true, width: t3.DEFAULT_WIDTH }), i3 = WP.defaults(i3, { resizable: i3.autoPlace, hideable: i3.autoPlace }), WP.isUndefined(i3.load) ? i3.load = { preset: "Default" } : i3.preset && (i3.load.preset = i3.preset), WP.isUndefined(i3.parent) && i3.hideable && NC.push(this), i3.resizable = WP.isUndefined(i3.parent) && i3.resizable, i3.autoPlace && WP.isUndefined(i3.scrollable) && (i3.scrollable = true);
34358
- var r3, o2 = PC && localStorage.getItem(HC(this, "isLocal")) === "true", s3 = void 0, a2 = void 0;
34308
+ this.domElement = document.createElement("div"), this.__ul = document.createElement("ul"), this.domElement.appendChild(this.__ul), pC.addClass(this.domElement, "dg"), this.__folders = {}, this.__controllers = [], this.__rememberedObjects = [], this.__rememberedObjectIndecesToControllers = [], this.__listening = [], i3 = qP.defaults(i3, { closeOnTop: false, autoPlace: true, width: t3.DEFAULT_WIDTH }), i3 = qP.defaults(i3, { resizable: i3.autoPlace, hideable: i3.autoPlace }), qP.isUndefined(i3.load) ? i3.load = { preset: "Default" } : i3.preset && (i3.load.preset = i3.preset), qP.isUndefined(i3.parent) && i3.hideable && FC.push(this), i3.resizable = qP.isUndefined(i3.parent) && i3.resizable, i3.autoPlace && qP.isUndefined(i3.scrollable) && (i3.scrollable = true);
34309
+ var r3, o2 = IC && localStorage.getItem(jC(this, "isLocal")) === "true", s3 = void 0, a2 = void 0;
34359
34310
  if (Object.defineProperties(this, { parent: { get: function() {
34360
34311
  return i3.parent;
34361
34312
  } }, scrollable: { get: function() {
@@ -34374,7 +34325,7 @@ void main(void){
34374
34325
  } }, width: { get: function() {
34375
34326
  return i3.width;
34376
34327
  }, set: function(t4) {
34377
- i3.width = t4, XC(n3, t4);
34328
+ i3.width = t4, YC(n3, t4);
34378
34329
  } }, name: { get: function() {
34379
34330
  return i3.name;
34380
34331
  }, set: function(t4) {
@@ -34382,50 +34333,50 @@ void main(void){
34382
34333
  } }, closed: { get: function() {
34383
34334
  return i3.closed;
34384
34335
  }, set: function(e4) {
34385
- i3.closed = e4, i3.closed ? cC.addClass(n3.__ul, t3.CLASS_CLOSED) : cC.removeClass(n3.__ul, t3.CLASS_CLOSED), this.onResize(), n3.__closeButton && (n3.__closeButton.innerHTML = e4 ? t3.TEXT_OPEN : t3.TEXT_CLOSED);
34336
+ i3.closed = e4, i3.closed ? pC.addClass(n3.__ul, t3.CLASS_CLOSED) : pC.removeClass(n3.__ul, t3.CLASS_CLOSED), this.onResize(), n3.__closeButton && (n3.__closeButton.innerHTML = e4 ? t3.TEXT_OPEN : t3.TEXT_CLOSED);
34386
34337
  } }, load: { get: function() {
34387
34338
  return i3.load;
34388
34339
  } }, useLocalStorage: { get: function() {
34389
34340
  return o2;
34390
34341
  }, set: function(t4) {
34391
- PC && (o2 = t4, t4 ? cC.bind(window, "unload", s3) : cC.unbind(window, "unload", s3), localStorage.setItem(HC(n3, "isLocal"), t4));
34392
- } } }), WP.isUndefined(i3.parent)) {
34393
- if (this.closed = i3.closed || false, cC.addClass(this.domElement, t3.CLASS_MAIN), cC.makeSelectable(this.domElement, false), PC && o2) {
34342
+ IC && (o2 = t4, t4 ? pC.bind(window, "unload", s3) : pC.unbind(window, "unload", s3), localStorage.setItem(jC(n3, "isLocal"), t4));
34343
+ } } }), qP.isUndefined(i3.parent)) {
34344
+ if (this.closed = i3.closed || false, pC.addClass(this.domElement, t3.CLASS_MAIN), pC.makeSelectable(this.domElement, false), IC && o2) {
34394
34345
  n3.useLocalStorage = true;
34395
- var l2 = localStorage.getItem(HC(this, "gui"));
34346
+ var l2 = localStorage.getItem(jC(this, "gui"));
34396
34347
  l2 && (i3.load = JSON.parse(l2));
34397
34348
  }
34398
- this.__closeButton = document.createElement("div"), this.__closeButton.innerHTML = t3.TEXT_CLOSED, cC.addClass(this.__closeButton, t3.CLASS_CLOSE_BUTTON), i3.closeOnTop ? (cC.addClass(this.__closeButton, t3.CLASS_CLOSE_TOP), this.domElement.insertBefore(this.__closeButton, this.domElement.childNodes[0])) : (cC.addClass(this.__closeButton, t3.CLASS_CLOSE_BOTTOM), this.domElement.appendChild(this.__closeButton)), cC.bind(this.__closeButton, "click", function() {
34349
+ this.__closeButton = document.createElement("div"), this.__closeButton.innerHTML = t3.TEXT_CLOSED, pC.addClass(this.__closeButton, t3.CLASS_CLOSE_BUTTON), i3.closeOnTop ? (pC.addClass(this.__closeButton, t3.CLASS_CLOSE_TOP), this.domElement.insertBefore(this.__closeButton, this.domElement.childNodes[0])) : (pC.addClass(this.__closeButton, t3.CLASS_CLOSE_BOTTOM), this.domElement.appendChild(this.__closeButton)), pC.bind(this.__closeButton, "click", function() {
34399
34350
  n3.closed = !n3.closed;
34400
34351
  });
34401
34352
  } else {
34402
34353
  i3.closed === void 0 && (i3.closed = true);
34403
34354
  var u2 = document.createTextNode(i3.name);
34404
- cC.addClass(u2, "controller-name"), a2 = FC(n3, u2);
34405
- cC.addClass(this.__ul, t3.CLASS_CLOSED), cC.addClass(a2, "title"), cC.bind(a2, "click", function(t4) {
34355
+ pC.addClass(u2, "controller-name"), a2 = UC(n3, u2);
34356
+ pC.addClass(this.__ul, t3.CLASS_CLOSED), pC.addClass(a2, "title"), pC.bind(a2, "click", function(t4) {
34406
34357
  return t4.preventDefault(), n3.closed = !n3.closed, false;
34407
34358
  }), i3.closed || (this.closed = false);
34408
34359
  }
34409
- i3.autoPlace && (WP.isUndefined(i3.parent) && (IC && (OC = document.createElement("div"), cC.addClass(OC, "dg"), cC.addClass(OC, t3.CLASS_AUTO_PLACE_CONTAINER), document.body.appendChild(OC), IC = false), OC.appendChild(this.domElement), cC.addClass(this.domElement, t3.CLASS_AUTO_PLACE)), this.parent || XC(n3, i3.width)), this.__resizeHandler = function() {
34360
+ i3.autoPlace && (qP.isUndefined(i3.parent) && (LC && (NC = document.createElement("div"), pC.addClass(NC, "dg"), pC.addClass(NC, t3.CLASS_AUTO_PLACE_CONTAINER), document.body.appendChild(NC), LC = false), NC.appendChild(this.domElement), pC.addClass(this.domElement, t3.CLASS_AUTO_PLACE)), this.parent || YC(n3, i3.width)), this.__resizeHandler = function() {
34410
34361
  n3.onResizeDebounced();
34411
- }, cC.bind(window, "resize", this.__resizeHandler), cC.bind(this.__ul, "webkitTransitionEnd", this.__resizeHandler), cC.bind(this.__ul, "transitionend", this.__resizeHandler), cC.bind(this.__ul, "oTransitionEnd", this.__resizeHandler), this.onResize(), i3.resizable && WC(this), s3 = function() {
34412
- PC && localStorage.getItem(HC(n3, "isLocal")) === "true" && localStorage.setItem(HC(n3, "gui"), JSON.stringify(n3.getSaveObject()));
34413
- }, this.saveToLocalStorageIfPossible = s3, i3.parent || ((r3 = n3.getRoot()).width += 1, WP.defer(function() {
34362
+ }, pC.bind(window, "resize", this.__resizeHandler), pC.bind(this.__ul, "webkitTransitionEnd", this.__resizeHandler), pC.bind(this.__ul, "transitionend", this.__resizeHandler), pC.bind(this.__ul, "oTransitionEnd", this.__resizeHandler), this.onResize(), i3.resizable && qC(this), s3 = function() {
34363
+ IC && localStorage.getItem(jC(n3, "isLocal")) === "true" && localStorage.setItem(jC(n3, "gui"), JSON.stringify(n3.getSaveObject()));
34364
+ }, this.saveToLocalStorageIfPossible = s3, i3.parent || ((r3 = n3.getRoot()).width += 1, qP.defer(function() {
34414
34365
  r3.width -= 1;
34415
34366
  }));
34416
34367
  };
34417
- function FC(t3, e3, n3) {
34368
+ function UC(t3, e3, n3) {
34418
34369
  var i3 = document.createElement("li");
34419
34370
  return e3 && i3.appendChild(e3), n3 ? t3.__ul.insertBefore(i3, n3) : t3.__ul.appendChild(i3), t3.onResize(), i3;
34420
34371
  }
34421
- function BC(t3) {
34422
- cC.unbind(window, "resize", t3.__resizeHandler), t3.saveToLocalStorageIfPossible && cC.unbind(window, "unload", t3.saveToLocalStorageIfPossible);
34372
+ function kC(t3) {
34373
+ pC.unbind(window, "resize", t3.__resizeHandler), t3.saveToLocalStorageIfPossible && pC.unbind(window, "unload", t3.saveToLocalStorageIfPossible);
34423
34374
  }
34424
- function UC(t3, e3) {
34375
+ function GC(t3, e3) {
34425
34376
  var n3 = t3.__preset_select[t3.__preset_select.selectedIndex];
34426
34377
  n3.innerHTML = e3 ? n3.value + "*" : n3.value;
34427
34378
  }
34428
- function kC(t3, e3) {
34379
+ function HC(t3, e3) {
34429
34380
  var n3 = t3.getRoot(), i3 = n3.__rememberedObjects.indexOf(e3.object);
34430
34381
  if (i3 !== -1) {
34431
34382
  var r3 = n3.__rememberedObjectIndecesToControllers[i3];
@@ -34445,31 +34396,31 @@ void main(void){
34445
34396
  }
34446
34397
  }
34447
34398
  }
34448
- function GC(t3, e3, n3, i3) {
34399
+ function zC(t3, e3, n3, i3) {
34449
34400
  if (e3[n3] === void 0)
34450
34401
  throw new Error('Object "' + e3 + '" has no property "' + n3 + '"');
34451
34402
  var r3 = void 0;
34452
34403
  if (i3.color)
34453
- r3 = new bC(e3, n3);
34404
+ r3 = new wC(e3, n3);
34454
34405
  else {
34455
34406
  var o2 = [e3, n3].concat(i3.factoryArgs);
34456
- r3 = MC.apply(t3, o2);
34407
+ r3 = RC.apply(t3, o2);
34457
34408
  }
34458
- i3.before instanceof aC && (i3.before = i3.before.__li), kC(t3, r3), cC.addClass(r3.domElement, "c");
34409
+ i3.before instanceof uC && (i3.before = i3.before.__li), HC(t3, r3), pC.addClass(r3.domElement, "c");
34459
34410
  var s3 = document.createElement("span");
34460
- cC.addClass(s3, "property-name"), s3.innerHTML = r3.property;
34411
+ pC.addClass(s3, "property-name"), s3.innerHTML = r3.property;
34461
34412
  var a2 = document.createElement("div");
34462
34413
  a2.appendChild(s3), a2.appendChild(r3.domElement);
34463
- var l2 = FC(t3, a2, i3.before);
34464
- return cC.addClass(l2, DC.CLASS_CONTROLLER_ROW), r3 instanceof bC ? cC.addClass(l2, "color") : cC.addClass(l2, KP(r3.getValue())), function(t4, e4, n4) {
34465
- if (n4.__li = e4, n4.__gui = t4, WP.extend(n4, { options: function(e5) {
34414
+ var l2 = UC(t3, a2, i3.before);
34415
+ return pC.addClass(l2, BC.CLASS_CONTROLLER_ROW), r3 instanceof wC ? pC.addClass(l2, "color") : pC.addClass(l2, tC(r3.getValue())), function(t4, e4, n4) {
34416
+ if (n4.__li = e4, n4.__gui = t4, qP.extend(n4, { options: function(e5) {
34466
34417
  if (arguments.length > 1) {
34467
34418
  var i5 = n4.__li.nextElementSibling;
34468
- return n4.remove(), GC(t4, n4.object, n4.property, { before: i5, factoryArgs: [WP.toArray(arguments)] });
34419
+ return n4.remove(), zC(t4, n4.object, n4.property, { before: i5, factoryArgs: [qP.toArray(arguments)] });
34469
34420
  }
34470
- if (WP.isArray(e5) || WP.isObject(e5)) {
34421
+ if (qP.isArray(e5) || qP.isObject(e5)) {
34471
34422
  var r5 = n4.__li.nextElementSibling;
34472
- return n4.remove(), GC(t4, n4.object, n4.property, { before: r5, factoryArgs: [e5] });
34423
+ return n4.remove(), zC(t4, n4.object, n4.property, { before: r5, factoryArgs: [e5] });
34473
34424
  }
34474
34425
  }, name: function(t5) {
34475
34426
  return n4.__li.firstElementChild.firstElementChild.innerHTML = t5, n4;
@@ -34477,157 +34428,157 @@ void main(void){
34477
34428
  return n4.__gui.listen(n4), n4;
34478
34429
  }, remove: function() {
34479
34430
  return n4.__gui.remove(n4), n4;
34480
- } }), n4 instanceof yC) {
34481
- var i4 = new vC(n4.object, n4.property, { min: n4.__min, max: n4.__max, step: n4.__step });
34482
- WP.each(["updateDisplay", "onChange", "onFinishChange", "step", "min", "max"], function(t5) {
34431
+ } }), n4 instanceof bC) {
34432
+ var i4 = new yC(n4.object, n4.property, { min: n4.__min, max: n4.__max, step: n4.__step });
34433
+ qP.each(["updateDisplay", "onChange", "onFinishChange", "step", "min", "max"], function(t5) {
34483
34434
  var e5 = n4[t5], r5 = i4[t5];
34484
34435
  n4[t5] = i4[t5] = function() {
34485
34436
  var t6 = Array.prototype.slice.call(arguments);
34486
34437
  return r5.apply(i4, t6), e5.apply(n4, t6);
34487
34438
  };
34488
- }), cC.addClass(e4, "has-slider"), n4.domElement.insertBefore(i4.domElement, n4.domElement.firstElementChild);
34489
- } else if (n4 instanceof vC) {
34439
+ }), pC.addClass(e4, "has-slider"), n4.domElement.insertBefore(i4.domElement, n4.domElement.firstElementChild);
34440
+ } else if (n4 instanceof yC) {
34490
34441
  var r4 = function(e5) {
34491
- if (WP.isNumber(n4.__min) && WP.isNumber(n4.__max)) {
34442
+ if (qP.isNumber(n4.__min) && qP.isNumber(n4.__max)) {
34492
34443
  var i5 = n4.__li.firstElementChild.firstElementChild.innerHTML, r5 = n4.__gui.__listening.indexOf(n4) > -1;
34493
34444
  n4.remove();
34494
- var o3 = GC(t4, n4.object, n4.property, { before: n4.__li.nextElementSibling, factoryArgs: [n4.__min, n4.__max, n4.__step] });
34445
+ var o3 = zC(t4, n4.object, n4.property, { before: n4.__li.nextElementSibling, factoryArgs: [n4.__min, n4.__max, n4.__step] });
34495
34446
  return o3.name(i5), r5 && o3.listen(), o3;
34496
34447
  }
34497
34448
  return e5;
34498
34449
  };
34499
- n4.min = WP.compose(r4, n4.min), n4.max = WP.compose(r4, n4.max);
34450
+ n4.min = qP.compose(r4, n4.min), n4.max = qP.compose(r4, n4.max);
34500
34451
  } else
34501
- n4 instanceof dC ? (cC.bind(e4, "click", function() {
34502
- cC.fakeEvent(n4.__checkbox, "click");
34503
- }), cC.bind(n4.__checkbox, "click", function(t5) {
34452
+ n4 instanceof fC ? (pC.bind(e4, "click", function() {
34453
+ pC.fakeEvent(n4.__checkbox, "click");
34454
+ }), pC.bind(n4.__checkbox, "click", function(t5) {
34504
34455
  t5.stopPropagation();
34505
- })) : n4 instanceof xC ? (cC.bind(e4, "click", function() {
34506
- cC.fakeEvent(n4.__button, "click");
34507
- }), cC.bind(e4, "mouseover", function() {
34508
- cC.addClass(n4.__button, "hover");
34509
- }), cC.bind(e4, "mouseout", function() {
34510
- cC.removeClass(n4.__button, "hover");
34511
- })) : n4 instanceof bC && (cC.addClass(e4, "color"), n4.updateDisplay = WP.compose(function(t5) {
34456
+ })) : n4 instanceof TC ? (pC.bind(e4, "click", function() {
34457
+ pC.fakeEvent(n4.__button, "click");
34458
+ }), pC.bind(e4, "mouseover", function() {
34459
+ pC.addClass(n4.__button, "hover");
34460
+ }), pC.bind(e4, "mouseout", function() {
34461
+ pC.removeClass(n4.__button, "hover");
34462
+ })) : n4 instanceof wC && (pC.addClass(e4, "color"), n4.updateDisplay = qP.compose(function(t5) {
34512
34463
  return e4.style.borderLeftColor = n4.__color.toString(), t5;
34513
34464
  }, n4.updateDisplay), n4.updateDisplay());
34514
- n4.setValue = WP.compose(function(e5) {
34515
- return t4.getRoot().__preset_select && n4.isModified() && UC(t4.getRoot(), true), e5;
34465
+ n4.setValue = qP.compose(function(e5) {
34466
+ return t4.getRoot().__preset_select && n4.isModified() && GC(t4.getRoot(), true), e5;
34516
34467
  }, n4.setValue);
34517
34468
  }(t3, l2, r3), t3.__controllers.push(r3), r3;
34518
34469
  }
34519
- function HC(t3, e3) {
34470
+ function jC(t3, e3) {
34520
34471
  return document.location.href + "." + e3;
34521
34472
  }
34522
- function zC(t3, e3, n3) {
34473
+ function VC(t3, e3, n3) {
34523
34474
  var i3 = document.createElement("option");
34524
34475
  i3.innerHTML = e3, i3.value = e3, t3.__preset_select.appendChild(i3), n3 && (t3.__preset_select.selectedIndex = t3.__preset_select.length - 1);
34525
34476
  }
34526
- function jC(t3, e3) {
34477
+ function WC(t3, e3) {
34527
34478
  e3.style.display = t3.useLocalStorage ? "block" : "none";
34528
34479
  }
34529
- function VC(t3) {
34480
+ function XC(t3) {
34530
34481
  var e3 = t3.__save_row = document.createElement("li");
34531
- cC.addClass(t3.domElement, "has-save"), t3.__ul.insertBefore(e3, t3.__ul.firstChild), cC.addClass(e3, "save-row");
34482
+ pC.addClass(t3.domElement, "has-save"), t3.__ul.insertBefore(e3, t3.__ul.firstChild), pC.addClass(e3, "save-row");
34532
34483
  var n3 = document.createElement("span");
34533
- n3.innerHTML = "&nbsp;", cC.addClass(n3, "button gears");
34484
+ n3.innerHTML = "&nbsp;", pC.addClass(n3, "button gears");
34534
34485
  var i3 = document.createElement("span");
34535
- i3.innerHTML = "Save", cC.addClass(i3, "button"), cC.addClass(i3, "save");
34486
+ i3.innerHTML = "Save", pC.addClass(i3, "button"), pC.addClass(i3, "save");
34536
34487
  var r3 = document.createElement("span");
34537
- r3.innerHTML = "New", cC.addClass(r3, "button"), cC.addClass(r3, "save-as");
34488
+ r3.innerHTML = "New", pC.addClass(r3, "button"), pC.addClass(r3, "save-as");
34538
34489
  var o2 = document.createElement("span");
34539
- o2.innerHTML = "Revert", cC.addClass(o2, "button"), cC.addClass(o2, "revert");
34490
+ o2.innerHTML = "Revert", pC.addClass(o2, "button"), pC.addClass(o2, "revert");
34540
34491
  var s3 = t3.__preset_select = document.createElement("select");
34541
- if (t3.load && t3.load.remembered ? WP.each(t3.load.remembered, function(e4, n4) {
34542
- zC(t3, n4, n4 === t3.preset);
34543
- }) : zC(t3, "Default", false), cC.bind(s3, "change", function() {
34492
+ if (t3.load && t3.load.remembered ? qP.each(t3.load.remembered, function(e4, n4) {
34493
+ VC(t3, n4, n4 === t3.preset);
34494
+ }) : VC(t3, "Default", false), pC.bind(s3, "change", function() {
34544
34495
  for (var e4 = 0; e4 < t3.__preset_select.length; e4++)
34545
34496
  t3.__preset_select[e4].innerHTML = t3.__preset_select[e4].value;
34546
34497
  t3.preset = this.value;
34547
- }), e3.appendChild(s3), e3.appendChild(n3), e3.appendChild(i3), e3.appendChild(r3), e3.appendChild(o2), PC) {
34498
+ }), e3.appendChild(s3), e3.appendChild(n3), e3.appendChild(i3), e3.appendChild(r3), e3.appendChild(o2), IC) {
34548
34499
  var a2 = document.getElementById("dg-local-explain"), l2 = document.getElementById("dg-local-storage");
34549
- document.getElementById("dg-save-locally").style.display = "block", localStorage.getItem(HC(0, "isLocal")) === "true" && l2.setAttribute("checked", "checked"), jC(t3, a2), cC.bind(l2, "change", function() {
34550
- t3.useLocalStorage = !t3.useLocalStorage, jC(t3, a2);
34500
+ document.getElementById("dg-save-locally").style.display = "block", localStorage.getItem(jC(0, "isLocal")) === "true" && l2.setAttribute("checked", "checked"), WC(t3, a2), pC.bind(l2, "change", function() {
34501
+ t3.useLocalStorage = !t3.useLocalStorage, WC(t3, a2);
34551
34502
  });
34552
34503
  }
34553
34504
  var u2 = document.getElementById("dg-new-constructor");
34554
- cC.bind(u2, "keydown", function(t4) {
34555
- !t4.metaKey || t4.which !== 67 && t4.keyCode !== 67 || CC.hide();
34556
- }), cC.bind(n3, "click", function() {
34557
- u2.innerHTML = JSON.stringify(t3.getSaveObject(), void 0, 2), CC.show(), u2.focus(), u2.select();
34558
- }), cC.bind(i3, "click", function() {
34505
+ pC.bind(u2, "keydown", function(t4) {
34506
+ !t4.metaKey || t4.which !== 67 && t4.keyCode !== 67 || OC.hide();
34507
+ }), pC.bind(n3, "click", function() {
34508
+ u2.innerHTML = JSON.stringify(t3.getSaveObject(), void 0, 2), OC.show(), u2.focus(), u2.select();
34509
+ }), pC.bind(i3, "click", function() {
34559
34510
  t3.save();
34560
- }), cC.bind(r3, "click", function() {
34511
+ }), pC.bind(r3, "click", function() {
34561
34512
  var e4 = prompt("Enter a new preset name.");
34562
34513
  e4 && t3.saveAs(e4);
34563
- }), cC.bind(o2, "click", function() {
34514
+ }), pC.bind(o2, "click", function() {
34564
34515
  t3.revert();
34565
34516
  });
34566
34517
  }
34567
- function WC(t3) {
34518
+ function qC(t3) {
34568
34519
  var e3 = void 0;
34569
34520
  function n3(n4) {
34570
34521
  return n4.preventDefault(), t3.width += e3 - n4.clientX, t3.onResize(), e3 = n4.clientX, false;
34571
34522
  }
34572
34523
  function i3() {
34573
- cC.removeClass(t3.__closeButton, DC.CLASS_DRAG), cC.unbind(window, "mousemove", n3), cC.unbind(window, "mouseup", i3);
34524
+ pC.removeClass(t3.__closeButton, BC.CLASS_DRAG), pC.unbind(window, "mousemove", n3), pC.unbind(window, "mouseup", i3);
34574
34525
  }
34575
34526
  function r3(r4) {
34576
- return r4.preventDefault(), e3 = r4.clientX, cC.addClass(t3.__closeButton, DC.CLASS_DRAG), cC.bind(window, "mousemove", n3), cC.bind(window, "mouseup", i3), false;
34527
+ return r4.preventDefault(), e3 = r4.clientX, pC.addClass(t3.__closeButton, BC.CLASS_DRAG), pC.bind(window, "mousemove", n3), pC.bind(window, "mouseup", i3), false;
34577
34528
  }
34578
- t3.__resize_handle = document.createElement("div"), WP.extend(t3.__resize_handle.style, { width: "6px", marginLeft: "-3px", height: "200px", cursor: "ew-resize", position: "absolute" }), cC.bind(t3.__resize_handle, "mousedown", r3), cC.bind(t3.__closeButton, "mousedown", r3), t3.domElement.insertBefore(t3.__resize_handle, t3.domElement.firstElementChild);
34529
+ t3.__resize_handle = document.createElement("div"), qP.extend(t3.__resize_handle.style, { width: "6px", marginLeft: "-3px", height: "200px", cursor: "ew-resize", position: "absolute" }), pC.bind(t3.__resize_handle, "mousedown", r3), pC.bind(t3.__closeButton, "mousedown", r3), t3.domElement.insertBefore(t3.__resize_handle, t3.domElement.firstElementChild);
34579
34530
  }
34580
- function XC(t3, e3) {
34531
+ function YC(t3, e3) {
34581
34532
  t3.domElement.style.width = e3 + "px", t3.__save_row && t3.autoPlace && (t3.__save_row.style.width = e3 + "px"), t3.__closeButton && (t3.__closeButton.style.width = e3 + "px");
34582
34533
  }
34583
- function qC(t3, e3) {
34534
+ function ZC(t3, e3) {
34584
34535
  var n3 = {};
34585
- return WP.each(t3.__rememberedObjects, function(i3, r3) {
34536
+ return qP.each(t3.__rememberedObjects, function(i3, r3) {
34586
34537
  var o2 = {}, s3 = t3.__rememberedObjectIndecesToControllers[r3];
34587
- WP.each(s3, function(t4, n4) {
34538
+ qP.each(s3, function(t4, n4) {
34588
34539
  o2[n4] = e3 ? t4.initialValue : t4.getValue();
34589
34540
  }), n3[r3] = o2;
34590
34541
  }), n3;
34591
34542
  }
34592
- DC.toggleHide = function() {
34593
- LC = !LC, WP.each(NC, function(t3) {
34594
- t3.domElement.style.display = LC ? "none" : "";
34543
+ BC.toggleHide = function() {
34544
+ DC = !DC, qP.each(FC, function(t3) {
34545
+ t3.domElement.style.display = DC ? "none" : "";
34595
34546
  });
34596
- }, DC.CLASS_AUTO_PLACE = "a", DC.CLASS_AUTO_PLACE_CONTAINER = "ac", DC.CLASS_MAIN = "main", DC.CLASS_CONTROLLER_ROW = "cr", DC.CLASS_TOO_TALL = "taller-than-window", DC.CLASS_CLOSED = "closed", DC.CLASS_CLOSE_BUTTON = "close-button", DC.CLASS_CLOSE_TOP = "close-top", DC.CLASS_CLOSE_BOTTOM = "close-bottom", DC.CLASS_DRAG = "drag", DC.DEFAULT_WIDTH = 245, DC.TEXT_CLOSED = "Close Controls", DC.TEXT_OPEN = "Open Controls", DC._keydownHandler = function(t3) {
34597
- document.activeElement.type === "text" || t3.which !== 72 && t3.keyCode !== 72 || DC.toggleHide();
34598
- }, cC.bind(window, "keydown", DC._keydownHandler, false), WP.extend(DC.prototype, { add: function(t3, e3) {
34599
- return GC(this, t3, e3, { factoryArgs: Array.prototype.slice.call(arguments, 2) });
34547
+ }, BC.CLASS_AUTO_PLACE = "a", BC.CLASS_AUTO_PLACE_CONTAINER = "ac", BC.CLASS_MAIN = "main", BC.CLASS_CONTROLLER_ROW = "cr", BC.CLASS_TOO_TALL = "taller-than-window", BC.CLASS_CLOSED = "closed", BC.CLASS_CLOSE_BUTTON = "close-button", BC.CLASS_CLOSE_TOP = "close-top", BC.CLASS_CLOSE_BOTTOM = "close-bottom", BC.CLASS_DRAG = "drag", BC.DEFAULT_WIDTH = 245, BC.TEXT_CLOSED = "Close Controls", BC.TEXT_OPEN = "Open Controls", BC._keydownHandler = function(t3) {
34548
+ document.activeElement.type === "text" || t3.which !== 72 && t3.keyCode !== 72 || BC.toggleHide();
34549
+ }, pC.bind(window, "keydown", BC._keydownHandler, false), qP.extend(BC.prototype, { add: function(t3, e3) {
34550
+ return zC(this, t3, e3, { factoryArgs: Array.prototype.slice.call(arguments, 2) });
34600
34551
  }, addColor: function(t3, e3) {
34601
- return GC(this, t3, e3, { color: true });
34552
+ return zC(this, t3, e3, { color: true });
34602
34553
  }, remove: function(t3) {
34603
34554
  this.__ul.removeChild(t3.__li), this.__controllers.splice(this.__controllers.indexOf(t3), 1);
34604
34555
  var e3 = this;
34605
- WP.defer(function() {
34556
+ qP.defer(function() {
34606
34557
  e3.onResize();
34607
34558
  });
34608
34559
  }, destroy: function() {
34609
34560
  if (this.parent)
34610
34561
  throw new Error("Only the root GUI should be removed with .destroy(). For subfolders, use gui.removeFolder(folder) instead.");
34611
- this.autoPlace && OC.removeChild(this.domElement);
34562
+ this.autoPlace && NC.removeChild(this.domElement);
34612
34563
  var t3 = this;
34613
- WP.each(this.__folders, function(e3) {
34564
+ qP.each(this.__folders, function(e3) {
34614
34565
  t3.removeFolder(e3);
34615
- }), cC.unbind(window, "keydown", DC._keydownHandler, false), BC(this);
34566
+ }), pC.unbind(window, "keydown", BC._keydownHandler, false), kC(this);
34616
34567
  }, addFolder: function(t3) {
34617
34568
  if (this.__folders[t3] !== void 0)
34618
34569
  throw new Error('You already have a folder in this GUI by the name "' + t3 + '"');
34619
34570
  var e3 = { name: t3, parent: this };
34620
34571
  e3.autoPlace = this.autoPlace, this.load && this.load.folders && this.load.folders[t3] && (e3.closed = this.load.folders[t3].closed, e3.load = this.load.folders[t3]);
34621
- var n3 = new DC(e3);
34572
+ var n3 = new BC(e3);
34622
34573
  this.__folders[t3] = n3;
34623
- var i3 = FC(this, n3.domElement);
34624
- return cC.addClass(i3, "folder"), n3;
34574
+ var i3 = UC(this, n3.domElement);
34575
+ return pC.addClass(i3, "folder"), n3;
34625
34576
  }, removeFolder: function(t3) {
34626
- this.__ul.removeChild(t3.domElement.parentElement), delete this.__folders[t3.name], this.load && this.load.folders && this.load.folders[t3.name] && delete this.load.folders[t3.name], BC(t3);
34577
+ this.__ul.removeChild(t3.domElement.parentElement), delete this.__folders[t3.name], this.load && this.load.folders && this.load.folders[t3.name] && delete this.load.folders[t3.name], kC(t3);
34627
34578
  var e3 = this;
34628
- WP.each(t3.__folders, function(e4) {
34579
+ qP.each(t3.__folders, function(e4) {
34629
34580
  t3.removeFolder(e4);
34630
- }), WP.defer(function() {
34581
+ }), qP.defer(function() {
34631
34582
  e3.onResize();
34632
34583
  });
34633
34584
  }, open: function() {
@@ -34641,60 +34592,60 @@ void main(void){
34641
34592
  }, onResize: function() {
34642
34593
  var t3 = this.getRoot();
34643
34594
  if (t3.scrollable) {
34644
- var e3 = cC.getOffset(t3.__ul).top, n3 = 0;
34645
- WP.each(t3.__ul.childNodes, function(e4) {
34646
- t3.autoPlace && e4 === t3.__save_row || (n3 += cC.getHeight(e4));
34647
- }), window.innerHeight - e3 - 20 < n3 ? (cC.addClass(t3.domElement, DC.CLASS_TOO_TALL), t3.__ul.style.height = window.innerHeight - e3 - 20 + "px") : (cC.removeClass(t3.domElement, DC.CLASS_TOO_TALL), t3.__ul.style.height = "auto");
34595
+ var e3 = pC.getOffset(t3.__ul).top, n3 = 0;
34596
+ qP.each(t3.__ul.childNodes, function(e4) {
34597
+ t3.autoPlace && e4 === t3.__save_row || (n3 += pC.getHeight(e4));
34598
+ }), window.innerHeight - e3 - 20 < n3 ? (pC.addClass(t3.domElement, BC.CLASS_TOO_TALL), t3.__ul.style.height = window.innerHeight - e3 - 20 + "px") : (pC.removeClass(t3.domElement, BC.CLASS_TOO_TALL), t3.__ul.style.height = "auto");
34648
34599
  }
34649
- t3.__resize_handle && WP.defer(function() {
34600
+ t3.__resize_handle && qP.defer(function() {
34650
34601
  t3.__resize_handle.style.height = t3.__ul.offsetHeight + "px";
34651
34602
  }), t3.__closeButton && (t3.__closeButton.style.width = t3.width + "px");
34652
- }, onResizeDebounced: WP.debounce(function() {
34603
+ }, onResizeDebounced: qP.debounce(function() {
34653
34604
  this.onResize();
34654
34605
  }, 50), remember: function() {
34655
- if (WP.isUndefined(CC) && ((CC = new RC()).domElement.innerHTML = EC), this.parent)
34606
+ if (qP.isUndefined(OC) && ((OC = new CC()).domElement.innerHTML = AC), this.parent)
34656
34607
  throw new Error("You can only call remember on a top level GUI.");
34657
34608
  var t3 = this;
34658
- WP.each(Array.prototype.slice.call(arguments), function(e3) {
34659
- t3.__rememberedObjects.length === 0 && VC(t3), t3.__rememberedObjects.indexOf(e3) === -1 && t3.__rememberedObjects.push(e3);
34660
- }), this.autoPlace && XC(this, this.width);
34609
+ qP.each(Array.prototype.slice.call(arguments), function(e3) {
34610
+ t3.__rememberedObjects.length === 0 && XC(t3), t3.__rememberedObjects.indexOf(e3) === -1 && t3.__rememberedObjects.push(e3);
34611
+ }), this.autoPlace && YC(this, this.width);
34661
34612
  }, getRoot: function() {
34662
34613
  for (var t3 = this; t3.parent; )
34663
34614
  t3 = t3.parent;
34664
34615
  return t3;
34665
34616
  }, getSaveObject: function() {
34666
34617
  var t3 = this.load;
34667
- return t3.closed = this.closed, this.__rememberedObjects.length > 0 && (t3.preset = this.preset, t3.remembered || (t3.remembered = {}), t3.remembered[this.preset] = qC(this)), t3.folders = {}, WP.each(this.__folders, function(e3, n3) {
34618
+ return t3.closed = this.closed, this.__rememberedObjects.length > 0 && (t3.preset = this.preset, t3.remembered || (t3.remembered = {}), t3.remembered[this.preset] = ZC(this)), t3.folders = {}, qP.each(this.__folders, function(e3, n3) {
34668
34619
  t3.folders[n3] = e3.getSaveObject();
34669
34620
  }), t3;
34670
34621
  }, save: function() {
34671
- this.load.remembered || (this.load.remembered = {}), this.load.remembered[this.preset] = qC(this), UC(this, false), this.saveToLocalStorageIfPossible();
34622
+ this.load.remembered || (this.load.remembered = {}), this.load.remembered[this.preset] = ZC(this), GC(this, false), this.saveToLocalStorageIfPossible();
34672
34623
  }, saveAs: function(t3) {
34673
- this.load.remembered || (this.load.remembered = {}, this.load.remembered.Default = qC(this, true)), this.load.remembered[t3] = qC(this), this.preset = t3, zC(this, t3, true), this.saveToLocalStorageIfPossible();
34624
+ this.load.remembered || (this.load.remembered = {}, this.load.remembered.Default = ZC(this, true)), this.load.remembered[t3] = ZC(this), this.preset = t3, VC(this, t3, true), this.saveToLocalStorageIfPossible();
34674
34625
  }, revert: function(t3) {
34675
- WP.each(this.__controllers, function(e3) {
34676
- this.getRoot().load.remembered ? kC(t3 || this.getRoot(), e3) : e3.setValue(e3.initialValue), e3.__onFinishChange && e3.__onFinishChange.call(e3, e3.getValue());
34677
- }, this), WP.each(this.__folders, function(t4) {
34626
+ qP.each(this.__controllers, function(e3) {
34627
+ this.getRoot().load.remembered ? HC(t3 || this.getRoot(), e3) : e3.setValue(e3.initialValue), e3.__onFinishChange && e3.__onFinishChange.call(e3, e3.getValue());
34628
+ }, this), qP.each(this.__folders, function(t4) {
34678
34629
  t4.revert(t4);
34679
- }), t3 || UC(this.getRoot(), false);
34630
+ }), t3 || GC(this.getRoot(), false);
34680
34631
  }, listen: function(t3) {
34681
34632
  var e3 = this.__listening.length === 0;
34682
34633
  this.__listening.push(t3), e3 && function t4(e4) {
34683
- e4.length !== 0 && AC.call(window, function() {
34634
+ e4.length !== 0 && PC.call(window, function() {
34684
34635
  t4(e4);
34685
34636
  });
34686
- WP.each(e4, function(t5) {
34637
+ qP.each(e4, function(t5) {
34687
34638
  t5.updateDisplay();
34688
34639
  });
34689
34640
  }(this.__listening);
34690
34641
  }, updateDisplay: function() {
34691
- WP.each(this.__controllers, function(t3) {
34642
+ qP.each(this.__controllers, function(t3) {
34692
34643
  t3.updateDisplay();
34693
- }), WP.each(this.__folders, function(t3) {
34644
+ }), qP.each(this.__folders, function(t3) {
34694
34645
  t3.updateDisplay();
34695
34646
  });
34696
34647
  } });
34697
- var YC = DC, ZC = function() {
34648
+ var JC = BC, $C = function() {
34698
34649
  function t3(t4) {
34699
34650
  this.runTime = { fps: 0, resolution: "" }, this.target = t4.target, this.data = t4.params, this.player = t4.player, this.gui = this.createControllerGUI(), this.createStats(), this.addEventListener();
34700
34651
  }
@@ -34704,7 +34655,7 @@ void main(void){
34704
34655
  t4.player.view && (t4.controller.runTimeFps.setValue(t4.player.fps.value), t4.controller.drawCall.setValue(t4.player.runtime.drawCall), t4.controller.runTimeResolution.setValue(t4.player.view.width + "*" + t4.player.view.height));
34705
34656
  }, 500);
34706
34657
  }, t3.prototype.createControllerGUI = function() {
34707
- var t4, e3, n3, i3, r3, o2 = new YC({ autoPlace: true, closed: true });
34658
+ var t4, e3, n3, i3, r3, o2 = new JC({ autoPlace: true, closed: true });
34708
34659
  o2.domElement.style.opacity = ".6", o2.domElement.style.transformOrigin = "100% 0", o2.domElement.style.transform = "scale(1)", this.target.appendChild(o2.domElement), o2.domElement.style.position = "absolute", o2.domElement.style.right = "0", o2.domElement.style.top = "0", o2.domElement.style.zIndex = "2";
34709
34660
  var s3 = o2.add({ FPS: 0 }, "FPS", 0), a2 = o2.add({ drawCall: 0 }, "drawCall", 0), l2 = o2.add({ "\u5206\u8FA8\u7387": "" }, "\u5206\u8FA8\u7387", ""), u2 = o2.add({ "\u989D\u5916\u8BA1\u7B97": 0 }, "\u989D\u5916\u8BA1\u7B97", 0, 200), h2 = o2.addFolder("renderOptions");
34710
34661
  return this.controller = { runTimeResolution: l2, runTimeFps: s3, drawCall: a2, moreCalculation: u2, minFPS: h2.add({ "\u6700\u4F4Efps": (t4 = this.data.minFPS) !== null && t4 !== void 0 ? t4 : 40 }, "\u6700\u4F4Efps", 0, 60), maxFPS: h2.add({ "\u6700\u9AD8fps": (e3 = this.data.maxFPS) !== null && e3 !== void 0 ? e3 : 50 }, "\u6700\u9AD8fps", 0, 60), resolution: h2.add({ "\u76EE\u6807\u5206\u8FA8\u500D\u7387": (n3 = this.data.resolution) !== null && n3 !== void 0 ? n3 : window.devicePixelRatio }, "\u76EE\u6807\u5206\u8FA8\u500D\u7387", 0.5, 6), autoResolution: h2.add({ "\u81EA\u52A8\u5206\u8FA8\u7387": (i3 = this.data.autoResolution) !== null && i3 !== void 0 && i3 }, "\u81EA\u52A8\u5206\u8FA8\u7387", true), autoFps: h2.add({ "\u81EA\u52A8fps": (r3 = this.data.autoFPS) === null || r3 === void 0 || r3 }, "\u81EA\u52A8fps", true), transactionBgColor: h2.addColor({ "\u5207\u9875\u80CC\u666F\u8272": this.data.transactionBgColor }, "\u5207\u9875\u80CC\u666F\u8272") }, this.controller.runTimeFps.disabled = true, this.controller.runTimeResolution.disabled = true, o2;
@@ -34735,7 +34686,7 @@ void main(void){
34735
34686
  } catch (t4) {
34736
34687
  }
34737
34688
  }, t3;
34738
- }(), JC = function() {
34689
+ }(), KC = function() {
34739
34690
  function t3(t4) {
34740
34691
  var e3 = this;
34741
34692
  this.tasks = [], this.isDestroy = false, this.schedule = function() {
@@ -34750,7 +34701,7 @@ void main(void){
34750
34701
  }, t3.prototype.addTask = function(t4) {
34751
34702
  this.tasks.push(t4);
34752
34703
  }, t3;
34753
- }(), $C = function() {
34704
+ }(), QC = function() {
34754
34705
  function t3(t4) {
34755
34706
  this.autoUnlock = /* @__PURE__ */ Object.create(null), this.locks = /* @__PURE__ */ Object.create(null), this.available = false, this.available = t4;
34756
34707
  }
@@ -34764,7 +34715,7 @@ void main(void){
34764
34715
  }, t3.prototype.isLocked = function(t4) {
34765
34716
  return !!this.available && !!this.locks[t4];
34766
34717
  }, t3;
34767
- }(), KC = function() {
34718
+ }(), tI = function() {
34768
34719
  function t3() {
34769
34720
  var t4 = this;
34770
34721
  this.tasks = [], this.isDestroy = false, this.schedule = function() {
@@ -34786,7 +34737,7 @@ void main(void){
34786
34737
  }, t3.prototype.destroy = function() {
34787
34738
  this.isDestroy = true;
34788
34739
  }, t3;
34789
- }(), QC = function() {
34740
+ }(), eI = function() {
34790
34741
  var t3 = function(e3, n3) {
34791
34742
  return (t3 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, e4) {
34792
34743
  t4.__proto__ = e4;
@@ -34803,14 +34754,22 @@ void main(void){
34803
34754
  }
34804
34755
  t3(e3, n3), e3.prototype = n3 === null ? Object.create(n3) : (i3.prototype = n3.prototype, new i3());
34805
34756
  };
34806
- }(), tI = function() {
34807
- return (tI = Object.assign || function(t3) {
34757
+ }(), nI = function() {
34758
+ return (nI = Object.assign || function(t3) {
34808
34759
  for (var e3, n3 = 1, i3 = arguments.length; n3 < i3; n3++)
34809
34760
  for (var r3 in e3 = arguments[n3])
34810
34761
  Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]);
34811
34762
  return t3;
34812
34763
  }).apply(this, arguments);
34813
- }, eI = function(t3, e3, n3, i3) {
34764
+ }, iI = function(t3, e3, n3, i3) {
34765
+ var r3, o2 = arguments.length, s3 = o2 < 3 ? e3 : i3 === null ? i3 = Object.getOwnPropertyDescriptor(e3, n3) : i3;
34766
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
34767
+ s3 = Reflect.decorate(t3, e3, n3, i3);
34768
+ else
34769
+ for (var a2 = t3.length - 1; a2 >= 0; a2--)
34770
+ (r3 = t3[a2]) && (s3 = (o2 < 3 ? r3(s3) : o2 > 3 ? r3(e3, n3, s3) : r3(e3, n3)) || s3);
34771
+ return o2 > 3 && s3 && Object.defineProperty(e3, n3, s3), s3;
34772
+ }, rI = function(t3, e3, n3, i3) {
34814
34773
  return new (n3 || (n3 = Promise))(function(r3, o2) {
34815
34774
  function s3(t4) {
34816
34775
  try {
@@ -34834,7 +34793,7 @@ void main(void){
34834
34793
  }
34835
34794
  l2((i3 = i3.apply(t3, e3 || [])).next());
34836
34795
  });
34837
- }, nI = function(t3, e3) {
34796
+ }, oI = function(t3, e3) {
34838
34797
  var n3, i3, r3, o2, s3 = { label: 0, sent: function() {
34839
34798
  if (1 & r3[0])
34840
34799
  throw r3[1];
@@ -34897,20 +34856,20 @@ void main(void){
34897
34856
  }([o3, a3]);
34898
34857
  };
34899
34858
  }
34900
- }, iI = window.ResizeObserver || BP, rI = function(t3) {
34859
+ }, sI = window.ResizeObserver || kP, aI = function(t3) {
34901
34860
  return new Promise(function(e3) {
34902
34861
  return setTimeout(e3, t3);
34903
34862
  });
34904
34863
  };
34905
- function oI(t3, e3) {
34906
- return eI(this, void 0, void 0, function() {
34864
+ function lI(t3, e3) {
34865
+ return rI(this, void 0, void 0, function() {
34907
34866
  var n3;
34908
- return nI(this, function(i3) {
34867
+ return oI(this, function(i3) {
34909
34868
  switch (i3.label) {
34910
34869
  case 0:
34911
34870
  n3 = Date.now(), i3.label = 1;
34912
34871
  case 1:
34913
- return !t3() && Date.now() - n3 < e3 ? [4, rI(50)] : [3, 3];
34872
+ return !t3() && Date.now() - n3 < e3 ? [4, aI(50)] : [3, 3];
34914
34873
  case 2:
34915
34874
  return i3.sent(), [3, 1];
34916
34875
  case 3:
@@ -34919,21 +34878,21 @@ void main(void){
34919
34878
  });
34920
34879
  });
34921
34880
  }
34922
- var sI = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", syncEventLag: "syncEventLag", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange" }, aI = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, lI = "";
34881
+ var uI = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", syncEventLag: "syncEventLag", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange" }, hI = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, cI = "";
34923
34882
  try {
34924
- lI = "0.5.9";
34883
+ cI = "0.5.11";
34925
34884
  } catch (t3) {
34926
- lI = "dev";
34885
+ cI = "dev";
34927
34886
  }
34928
- var uI = null;
34887
+ var dI = null;
34929
34888
  try {
34930
- uI = o.createInstance({ name: "__slide_local_log__", driver: o.INDEXEDDB, version: 1 });
34889
+ dI = o.createInstance({ name: "__slide_local_log__", driver: o.INDEXEDDB, version: 1 });
34931
34890
  } catch (t3) {
34932
34891
  }
34933
- var hI = function(t3) {
34934
- function e3(n3) {
34892
+ var pI = function(t3) {
34893
+ function e3(n4) {
34935
34894
  var i3 = t3.call(this) || this;
34936
- return i3.iosResetCache = [], i3.needClearCacheImage = false, i3.version = lI, i3.__slideState = Object(l.cloneDeep)(aI), i3.userInputTime = 0, i3.isSyncingSlideState = false, i3.frozenTaskManager = new KC(), i3.randomId = Math.random().toString(32).substr(2), i3.resize = false, i3.isAnimating = false, i3.renderingTaskManager = new HP(), i3.isLoading = false, i3.interactive = true, i3.renderingIndex = 0, i3.frameWidth = 1, i3.frameHeight = 1, i3.frame = document.createElement("div"), i3.medianController = document.createElement("div"), i3.frameResizeObserver = new iI(function() {
34895
+ return i3.iosResetCache = [], i3.needClearCacheImage = false, i3.version = cI, i3.__slideState = Object(l.cloneDeep)(hI), i3.userInputTime = 0, i3.isSyncingSlideState = false, i3.frozenTaskManager = new tI(), i3.randomId = Math.random().toString(32).substr(2), i3.resize = false, i3.isAnimating = false, i3.renderingTaskManager = new jP(), i3.isLoading = false, i3.interactive = true, i3.renderingIndex = 0, i3.frameWidth = 1, i3.frameHeight = 1, i3.frame = document.createElement("div"), i3.medianController = document.createElement("div"), i3.frameResizeObserver = new sI(function() {
34937
34896
  return i3.frameResizeHandler();
34938
34897
  }), i3.timestamp = function() {
34939
34898
  return Date.now();
@@ -34953,12 +34912,12 @@ void main(void){
34953
34912
  }, i3.handleSlideRef = function() {
34954
34913
  console.log(i3), window.__slide = i3;
34955
34914
  }, i3.receiveSyncHandler = function(t4) {
34956
- return eI(i3, void 0, void 0, function() {
34957
- var e4, n4, i4, r3, o2 = this;
34958
- return nI(this, function(s3) {
34915
+ return rI(i3, void 0, void 0, function() {
34916
+ var e4, n5, i4, r3, o2 = this;
34917
+ return oI(this, function(s3) {
34959
34918
  switch (s3.label) {
34960
34919
  case 0:
34961
- return Object(l.isNumber)(t4.incrId) && (t4.incrId && t4.incrId - this._receiveIncrId != 1 && this.emit(sI.syncEventLag), this._receiveIncrId = t4.incrId || 0), this.logger.info("sync receive " + JSON.stringify(t4), this.taskId), t4.type !== "nextStep" ? [3, 1] : (this.mainSeqStep !== t4.next - 1 && this.mainSeqStep + 1 !== this.mainSeqLength && this.player ? (this.setMainSeqStep(t4.next, "start"), this.player.nextTick(function() {
34920
+ return Object(l.isNumber)(t4.incrId) && (t4.incrId && t4.incrId - this._receiveIncrId != 1 && this.emit(uI.syncEventLag), this._receiveIncrId = t4.incrId || 0), this.logger.info("sync receive " + JSON.stringify(t4), this.taskId), t4.type !== "nextStep" ? [3, 1] : (this.mainSeqStep !== t4.next - 1 && this.mainSeqStep + 1 !== this.mainSeqLength && this.player ? (this.setMainSeqStep(t4.next, "start"), this.player.nextTick(function() {
34962
34921
  o2.doNextStep(true);
34963
34922
  })) : this.doNextStep(true), [3, 6]);
34964
34923
  case 1:
@@ -34972,31 +34931,31 @@ void main(void){
34972
34931
  case 4:
34973
34932
  return s3.sent(), [3, 6];
34974
34933
  case 5:
34975
- t4.type === "mediaPlay" ? ((n4 = this.player) === null || n4 === void 0 || n4.setMediaState(t4.id, true), this.__slideState.mediaState[t4.id] = t4.state) : t4.type === "mediaPause" ? ((i4 = this.player) === null || i4 === void 0 || i4.setMediaState(t4.id, false), this.__slideState.mediaState[t4.id] = t4.state) : t4.type === "mediaSeek" && ((r3 = this.player) === null || r3 === void 0 || r3.setMediaCurrentTime(t4.id, t4.time), this.__slideState.mediaState[t4.id] = t4.state), s3.label = 6;
34934
+ t4.type === "mediaPlay" ? ((n5 = this.player) === null || n5 === void 0 || n5.setMediaState(t4.id, true), this.__slideState.mediaState[t4.id] = t4.state) : t4.type === "mediaPause" ? ((i4 = this.player) === null || i4 === void 0 || i4.setMediaState(t4.id, false), this.__slideState.mediaState[t4.id] = t4.state) : t4.type === "mediaSeek" && ((r3 = this.player) === null || r3 === void 0 || r3.setMediaCurrentTime(t4.id, t4.time), this.__slideState.mediaState[t4.id] = t4.state), s3.label = 6;
34976
34935
  case 6:
34977
34936
  return [2];
34978
34937
  }
34979
34938
  });
34980
34939
  });
34981
34940
  }, i3.handlePrevSlide = function(t4) {
34982
- return t4 === void 0 && (t4 = false), eI(i3, void 0, void 0, function() {
34983
- var e4, n4;
34984
- return nI(this, function(i4) {
34941
+ return t4 === void 0 && (t4 = false), rI(i3, void 0, void 0, function() {
34942
+ var e4, n5;
34943
+ return oI(this, function(i4) {
34985
34944
  switch (i4.label) {
34986
34945
  case 0:
34987
- return this.player ? [4, (n4 = this.player) === null || n4 === void 0 ? void 0 : n4.createSnapshotForNextSlide(true)] : [2];
34946
+ return this.player ? [4, (n5 = this.player) === null || n5 === void 0 ? void 0 : n5.createSnapshotForNextSlide(true)] : [2];
34988
34947
  case 1:
34989
34948
  return i4.sent(), (e4 = this.player.prevSlideIndex) >= 1 && (this.config.navigatorDelegate ? this.config.navigatorDelegate.gotoPage(e4) : t4 ? this.doRenderSlide(e4, false) : this.renderSlide(e4, false)), [2];
34990
34949
  }
34991
34950
  });
34992
34951
  });
34993
34952
  }, i3.handleNextSlide = function(t4) {
34994
- return t4 === void 0 && (t4 = false), eI(i3, void 0, void 0, function() {
34995
- var e4, n4;
34996
- return nI(this, function(i4) {
34953
+ return t4 === void 0 && (t4 = false), rI(i3, void 0, void 0, function() {
34954
+ var e4, n5;
34955
+ return oI(this, function(i4) {
34997
34956
  switch (i4.label) {
34998
34957
  case 0:
34999
- return this.player ? [4, (n4 = this.player) === null || n4 === void 0 ? void 0 : n4.createSnapshotForNextSlide(false)] : [2];
34958
+ return this.player ? [4, (n5 = this.player) === null || n5 === void 0 ? void 0 : n5.createSnapshotForNextSlide(false)] : [2];
35000
34959
  case 1:
35001
34960
  return i4.sent(), (e4 = this.player.nextSlideIndex) <= this.slideCount && (this.config.navigatorDelegate ? this.config.navigatorDelegate.gotoPage(e4) : t4 ? this.doRenderSlide(e4, true) : this.renderSlide(e4, true)), [2];
35002
34961
  }
@@ -35008,31 +34967,32 @@ void main(void){
35008
34967
  i3.renderSlide(t4, e4);
35009
34968
  } else
35010
34969
  t4 === -1 && i3.renderSlide(i3.slideCount, true);
35011
- }, n3.timestamp && (i3.timestamp = n3.timestamp), n3.rtcAudio && ($R.RtcAudioClazz = n3.rtcAudio), i3.logger = { info: function(t4, r3) {
35012
- var o2, s3;
35013
- ((o2 = n3.logger) === null || o2 === void 0 ? void 0 : o2.info) && (e3._tempLog += "INFO - " + new Date().toISOString() + " - {" + i3.randomId + "}[" + r3 + "] " + t4 + "\n\n", (s3 = n3.logger) === null || s3 === void 0 || s3.info("[" + r3 + "] " + t4));
35014
- }, warn: function(t4, r3) {
35015
- var o2, s3;
35016
- ((o2 = n3.logger) === null || o2 === void 0 ? void 0 : o2.warn) && (e3._tempLog += "WARN - " + new Date().toISOString() + " - {" + i3.randomId + "}[" + r3 + "] " + t4 + "\n\n", (s3 = n3.logger) === null || s3 === void 0 || s3.warn("[" + r3 + "] " + t4));
35017
- }, error: function(t4, r3) {
35018
- var o2, s3;
35019
- ((o2 = n3.logger) === null || o2 === void 0 ? void 0 : o2.error) && (e3._tempLog += "ERROR - " + new Date().toISOString() + " - {" + i3.randomId + "}[" + r3 + "] " + t4 + "\n\n", (s3 = n3.logger) === null || s3 === void 0 || s3.error("[" + r3 + "] " + t4));
35020
- } }, i3.config = n3, i3.syncQueue = new JC(i3.receiveSyncHandler), i3.mode = n3.mode, i3.lock = new $C(i3.mode === "interactive"), i3.anchor = n3.anchor, i3.enableGlobalClick = !Object(l.isUndefined)(n3.enableGlobalClick) && n3.enableGlobalClick, i3.resize = n3.resize || false, i3.interactive = n3.interactive, i3.cacheImage.style.position = "absolute", i3.cacheImage.style.zIndex = "100", i3.frame.style.cssText = n3.fixedFrameSize ? "width:" + n3.fixedFrameSize.width + "px;height:" + n3.fixedFrameSize.height + "px;" : "width:100%;height:100%", i3.frame.style.cssText += "display:flex;justify-content:center;align-items:center;visibility:hidden;position:relative;z-index:1;", n3.fixedFrameSize && (i3.frameWidth = n3.fixedFrameSize.width, i3.frameHeight = n3.fixedFrameSize.height), i3.setMedianControllerAttribute(), i3.frame.appendChild(i3.medianController), i3.anchor.appendChild(i3.frame), i3.frameResizeObserver.observe(i3.frame), i3.on(sI.syncReceive, function(t4) {
34970
+ }, i3.config = i3.initSlideConfig(n4), i3.logger = { info: function(t4, n5) {
34971
+ var r3, o2;
34972
+ ((r3 = i3.config.logger) === null || r3 === void 0 ? void 0 : r3.info) && (e3._tempLog += "INFO - " + new Date().toISOString() + " - {" + i3.randomId + "}[" + n5 + "] " + t4 + "\n\n", (o2 = i3.config.logger) === null || o2 === void 0 || o2.info("[" + n5 + "] " + t4));
34973
+ }, warn: function(t4, n5) {
34974
+ var r3, o2;
34975
+ ((r3 = i3.config.logger) === null || r3 === void 0 ? void 0 : r3.warn) && (e3._tempLog += "WARN - " + new Date().toISOString() + " - {" + i3.randomId + "}[" + n5 + "] " + t4 + "\n\n", (o2 = i3.config.logger) === null || o2 === void 0 || o2.warn("[" + n5 + "] " + t4));
34976
+ }, error: function(t4, n5) {
34977
+ var r3, o2;
34978
+ ((r3 = i3.config.logger) === null || r3 === void 0 ? void 0 : r3.error) && (e3._tempLog += "ERROR - " + new Date().toISOString() + " - {" + i3.randomId + "}[" + n5 + "] " + t4 + "\n\n", (o2 = i3.config.logger) === null || o2 === void 0 || o2.error("[" + n5 + "] " + t4));
34979
+ } }, i3.anchor = i3.config.anchor, i3.syncQueue = new KC(i3.receiveSyncHandler), i3.lock = new QC(i3.mode === "interactive"), i3.cacheImage.style.position = "absolute", i3.cacheImage.style.zIndex = "100", i3.setMedianControllerAttribute(), i3.frame.appendChild(i3.medianController), i3.frameResizeObserver.observe(i3.frame), i3.on(uI.syncReceive, function(t4) {
35021
34980
  i3.lock.unlock(t4.type, t4.uuid), i3.syncQueue.addTask(t4);
35022
34981
  }), i3.renderingTaskManager.eventHub.on("task-error", function(t4) {
35023
- var e4 = t4.error, n4 = t4.task, r3 = qE.transform(e4);
35024
- r3.errorType === VE.RuntimeWarn ? i3.logger.warn(r3.message, i3.taskId) : i3.logger.error(r3.message, i3.taskId), i3.isLoading = false, i3.emit(sI.renderError, { error: r3, index: n4.slideIndex });
35025
- }), window.addEventListener("__slide_ref__", i3.handleSlideRef), i3.resizeView = Object(l.debounce)(i3.resizeView.bind(i3), 50), i3.player = i3.initPlayer(n3), (n3 == null ? void 0 : n3.controller) && i3.createController(), i3.player.view && i3.frame.appendChild(i3.player.view), i3.handleViewClick = Object(l.debounce)(i3.handleViewClick, 300), i3.player.errorChannel.on("error", function(t4, e4) {
35026
- var n4 = qE.transform(t4);
35027
- n4.errorType === VE.RuntimeWarn ? i3.logger.warn(n4.message, i3.taskId) : i3.logger.error(n4.message, i3.taskId), i3.isLoading = false, e4 === i3.renderingIndex && i3.emit(sI.renderError, { error: t4, index: e4 });
35028
- }), i3.logger.info("new slide", ""), i3;
35029
- }
35030
- return QC(e3, t3), e3.flushLog = function() {
35031
- return eI(this, void 0, void 0, function() {
35032
- return nI(this, function(t4) {
34982
+ var e4 = t4.error, n5 = t4.task, r3 = qE.transform(e4);
34983
+ r3.errorType === VE.RuntimeWarn ? i3.logger.warn(r3.message, i3.taskId) : i3.logger.error(r3.message, i3.taskId), i3.isLoading = false, i3.emit(uI.renderError, { error: r3, index: n5.slideIndex });
34984
+ }), window.addEventListener("__slide_ref__", i3.handleSlideRef), i3.resizeView = Object(l.debounce)(i3.resizeView.bind(i3), 50), i3.player = i3.initPlayer(i3.config), i3.config.controller && i3.createController(), i3.player.view && i3.frame.appendChild(i3.player.view), i3.handleViewClick = Object(l.debounce)(i3.handleViewClick, 300), i3.player.errorChannel.on("error", function(t4, e4) {
34985
+ var n5 = qE.transform(t4);
34986
+ n5.errorType === VE.RuntimeWarn ? i3.logger.warn(n5.message, i3.taskId) : i3.logger.error(n5.message, i3.taskId), i3.isLoading = false, e4 === i3.renderingIndex && i3.emit(uI.renderError, { error: t4, index: e4 });
34987
+ }), i3;
34988
+ }
34989
+ var n3;
34990
+ return eI(e3, t3), e3.flushLog = function() {
34991
+ return rI(this, void 0, void 0, function() {
34992
+ return oI(this, function(t4) {
35033
34993
  switch (t4.label) {
35034
34994
  case 0:
35035
- return e3._tempLog.length > 0 ? [4, uI == null ? void 0 : uI.setItem("run_time_log_" + e3._tempLogIndex, e3._tempLog)] : [3, 2];
34995
+ return e3._tempLog.length > 0 ? [4, dI == null ? void 0 : dI.setItem("run_time_log_" + e3._tempLogIndex, e3._tempLog)] : [3, 2];
35036
34996
  case 1:
35037
34997
  t4.sent(), e3._tempLog = "", e3._tempLogIndex += 1, t4.label = 2;
35038
34998
  case 2:
@@ -35042,32 +35002,34 @@ void main(void){
35042
35002
  });
35043
35003
  }, Object.defineProperty(e3.prototype, "dispatchIncrId", { get: function() {
35044
35004
  return this._dispatchIncrId++;
35045
- }, enumerable: false, configurable: true }), e3.prototype.initPlayer = function(t4) {
35046
- var e4, n3, i3, r3 = this, o2 = new $R({ mode: this.mode, useLocalCache: !!Object(l.isUndefined)(this.config.useLocalCache) || this.config.useLocalCache, logger: this.logger, resourceTimeout: Object(l.isUndefined)(this.config.resourceTimeout) ? 15e3 : this.config.resourceTimeout, loadDelegate: this.config.loaderDelegate });
35005
+ }, enumerable: false, configurable: true }), e3.prototype.initSlideConfig = function(t4) {
35006
+ return t4.timestamp && (this.timestamp = t4.timestamp), t4.rtcAudio && ($R.RtcAudioClazz = t4.rtcAudio), this.mode = t4.mode, this.anchor = t4.anchor, this.anchor.appendChild(this.frame), this.enableGlobalClick = !Object(l.isUndefined)(t4.enableGlobalClick) && t4.enableGlobalClick, this.resize = t4.resize || false, this.interactive = t4.interactive, this.frame.style.cssText = t4.fixedFrameSize ? "width:" + t4.fixedFrameSize.width + "px;height:" + t4.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;", t4.fixedFrameSize && (this.frameWidth = t4.fixedFrameSize.width, this.frameHeight = t4.fixedFrameSize.height), t4;
35007
+ }, e3.prototype.initPlayer = function(t4) {
35008
+ var e4, n4, i3, r3 = this, o2 = new $R({ mode: this.mode, useLocalCache: !!Object(l.isUndefined)(this.config.useLocalCache) || this.config.useLocalCache, logger: this.logger, resourceTimeout: Object(l.isUndefined)(this.config.resourceTimeout) ? 15e3 : this.config.resourceTimeout, loadDelegate: this.config.loaderDelegate });
35047
35009
  return o2.setInteractive(this.interactive), o2.updateConfig(t4.renderOptions || {}), o2.on(JR.renderStart, function(t5) {
35048
- r3.isLoading = true, r3.emit(sI.renderStart, t5);
35010
+ r3.isLoading = true, r3.emit(uI.renderStart, t5);
35049
35011
  }), o2.on(JR.renderEnd, function(t5) {
35050
- r3.isLoading = false, r3.player && (r3.designHeight = r3.player.designHeight, r3.designWidth = r3.player.designWidth, r3.cacheImage.style.width = r3.player.designWidth + "px", r3.cacheImage.style.height = r3.player.designHeight + "px", r3._slideCount = r3.player.slideCount), r3.emit(sI.renderEnd, t5);
35012
+ r3.isLoading = false, r3.player && (r3.designHeight = r3.player.designHeight, r3.designWidth = r3.player.designWidth, r3.cacheImage.style.width = r3.player.designWidth + "px", r3.cacheImage.style.height = r3.player.designHeight + "px", r3._slideCount = r3.player.slideCount), r3.emit(uI.renderEnd, t5);
35051
35013
  }), o2.on(JR.slideChange, function(t5) {
35052
- r3.__slideState.currentSlideIndex = t5, r3.emitStateChange(), r3.emit(sI.slideChange, t5);
35014
+ r3.__slideState.currentSlideIndex = t5, r3.emitStateChange(), r3.emit(uI.slideChange, t5);
35053
35015
  }), o2.on(JR.mainSeqStateChange, function(t5) {
35054
35016
  r3.__slideState.mainSeqState = t5, r3.emitStateChange();
35055
35017
  }), o2.on(JR.mainSeqStepChange, function(t5) {
35056
35018
  r3.__slideState.mainSeqStep = t5, r3.emitStateChange();
35057
35019
  }), o2.on(JR.interactiveSeqStateChange, function(t5) {
35058
- var e5 = t5.id, n4 = t5.state;
35059
- r3.__slideState.interactiveSeqState[e5] = n4, r3.emitStateChange();
35020
+ var e5 = t5.id, n5 = t5.state;
35021
+ r3.__slideState.interactiveSeqState[e5] = n5, r3.emitStateChange();
35060
35022
  }), o2.on(JR.animateStart, function() {
35061
- r3.isAnimating !== true && (r3.isAnimating = true, r3.emit(sI.animateStart));
35023
+ r3.isAnimating !== true && (r3.isAnimating = true, r3.emit(uI.animateStart));
35062
35024
  }), o2.on(JR.animateEnd, function() {
35063
- r3.isAnimating !== false && (r3.isAnimating = false, r3.emit(sI.animateEnd));
35025
+ r3.isAnimating !== false && (r3.isAnimating = false, r3.emit(uI.animateEnd));
35064
35026
  }), o2.on(JR.interactiveSeqAction, function(t5) {
35065
- var e5 = t5.action, n4 = t5.seqId;
35066
- r3.emitSyncDispatch({ slideIndex: r3.__slideState.currentSlideIndex, type: "interactiveAnim", action: e5, seqId: n4 }), r3.emitStateChange();
35027
+ var e5 = t5.action, n5 = t5.seqId;
35028
+ r3.emitSyncDispatch({ slideIndex: r3.__slideState.currentSlideIndex, type: "interactiveAnim", action: e5, seqId: n5 }), r3.emitStateChange();
35067
35029
  }), o2.on(JR.mainSeqStepStart, function(t5) {
35068
- r3.emit(sI.mainSeqStepStart, t5);
35030
+ r3.emit(uI.mainSeqStepStart, t5);
35069
35031
  }), o2.on(JR.mainSeqStepEnd, function(t5) {
35070
- r3.emit(sI.mainSeqStepEnd, t5);
35032
+ r3.emit(uI.mainSeqStepEnd, t5);
35071
35033
  }), o2.on(JR.mediaPlay, function(t5) {
35072
35034
  var e5 = { type: "play", time: r3.timestamp() - 1e3 * t5.time };
35073
35035
  r3.__slideState.mediaState[t5.id] = e5, r3.emitSyncDispatch({ slideIndex: r3.__slideState.currentSlideIndex, type: "mediaPlay", id: t5.id, state: e5 }), r3.emitStateChange();
@@ -35083,40 +35045,40 @@ void main(void){
35083
35045
  r3.handleNextSlide(t5);
35084
35046
  }), o2.on(JR.requestGotoSlide, function(t5) {
35085
35047
  r3.config.navigatorDelegate ? r3.config.navigatorDelegate.gotoPage(t5) : r3.handleGotoSlide(t5);
35086
- }), (e4 = o2.view) === null || e4 === void 0 || e4.addEventListener("touchend", this.handleViewTouchEnd), (n3 = o2.view) === null || n3 === void 0 || n3.addEventListener("touchstart", this.handleViewTouchStart), (i3 = o2.view) === null || i3 === void 0 || i3.addEventListener("click", this.handleViewClick), o2.on(JR.userInput, this.userInputHandle), o2;
35048
+ }), (e4 = o2.view) === null || e4 === void 0 || e4.addEventListener("touchend", this.handleViewTouchEnd), (n4 = o2.view) === null || n4 === void 0 || n4.addEventListener("touchstart", this.handleViewTouchStart), (i3 = o2.view) === null || i3 === void 0 || i3.addEventListener("click", this.handleViewClick), o2.on(JR.userInput, this.userInputHandle), o2;
35087
35049
  }, e3.prototype.createController = function() {
35088
- this.player && (this.playerController = new ZC({ player: this.player, params: this.player.config || {}, target: this.frame }));
35050
+ this.player && (this.playerController = new $C({ player: this.player, params: this.player.config || {}, target: this.frame }));
35089
35051
  }, e3.prototype.setMedianControllerAttribute = function() {
35090
35052
  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";
35091
35053
  }, e3.prototype.frameResizeHandler = function() {
35092
35054
  if (!this.config.fixedFrameSize) {
35093
- var t4 = this.frame.getBoundingClientRect(), e4 = t4.width, n3 = t4.height;
35094
- this.frameWidth = e4, this.frameHeight = n3, this.resizeView();
35055
+ var t4 = this.frame.getBoundingClientRect(), e4 = t4.width, n4 = t4.height;
35056
+ this.frameWidth = e4, this.frameHeight = n4, this.resizeView();
35095
35057
  }
35096
- }, e3.prototype.updateFixedFrameSize = function(t4, e4, n3) {
35097
- this.config.fixedFrameSize && (this.frameWidth = t4, this.frameHeight = e4, this.frame.style.width = t4 + "px", this.frame.style.height = e4 + "px", this.resizeView(n3));
35058
+ }, e3.prototype.updateFixedFrameSize = function(t4, e4, n4) {
35059
+ this.config.fixedFrameSize && (this.frameWidth = t4, this.frameHeight = e4, this.frame.style.width = t4 + "px", this.frame.style.height = e4 + "px", this.resizeView(n4));
35098
35060
  }, e3.prototype.resizeView = function(t4) {
35099
- var e4, n3, i3 = this, r3 = this.width, o2 = this.height;
35061
+ var e4, n4, i3 = this, r3 = this.width, o2 = this.height;
35100
35062
  if (r3 > 0 && o2 > 0) {
35101
35063
  var s3 = this.frameWidth / r3, a2 = s3 * o2;
35102
- a2 > this.frameHeight && (s3 *= this.frameHeight / a2), (e4 = this.player) === null || e4 === void 0 || e4.scaleView(s3, this.resize, t4), this.cacheImage.style.transform = "scale(" + s3 + ")", this.medianController.style.transform = "scale(" + s3 + ")", this.medianController.style.top = (this.frameHeight - o2 * s3) / 2 + "px", this.medianController.setAttribute("data-scale", s3.toString()), this.isInitResized || (this.isInitResized = true, (n3 = this.player) === null || n3 === void 0 || n3.clock.setTimeout(function() {
35064
+ a2 > this.frameHeight && (s3 *= this.frameHeight / a2), (e4 = this.player) === null || e4 === void 0 || e4.scaleView(s3, this.resize, t4), this.cacheImage.style.transform = "scale(" + s3 + ")", this.medianController.style.transform = "scale(" + s3 + ")", this.medianController.style.top = (this.frameHeight - o2 * s3) / 2 + "px", this.medianController.setAttribute("data-scale", s3.toString()), this.isInitResized || (this.isInitResized = true, (n4 = this.player) === null || n4 === void 0 || n4.clock.setTimeout(function() {
35103
35065
  i3.frame.style.visibility = "visible";
35104
35066
  }, 32));
35105
35067
  }
35106
35068
  }, e3.prototype.setSlideState = function(t4) {
35107
- var e4, n3, i3;
35108
- return eI(this, void 0, void 0, function() {
35069
+ var e4, n4, i3;
35070
+ return rI(this, void 0, void 0, function() {
35109
35071
  var r3, o2 = this;
35110
- return nI(this, function(s3) {
35072
+ return oI(this, function(s3) {
35111
35073
  switch (s3.label) {
35112
35074
  case 0:
35113
- return this.isSyncingSlideState = true, this.logger.info("stateChange receive " + JSON.stringify(t4), this.taskId), t4.taskId && t4.taskId !== this.__slideState.taskId && (this.__slideState.taskId = t4.taskId, (e4 = this.player) === null || e4 === void 0 || e4.setResourceData(t4.taskId, this.__slideState.url)), t4.url && t4.url !== this.__slideState.url && (this.__slideState.url = t4.url, (n3 = this.player) === null || n3 === void 0 || n3.setResourceData(this.__slideState.taskId, t4.url)), Number.isInteger(t4.currentSlideIndex) && t4.currentSlideIndex !== this.__slideState.currentSlideIndex ? (this.__slideState.currentSlideIndex = t4.currentSlideIndex, [4, this.doRenderSlide(t4.currentSlideIndex)]) : [3, 2];
35075
+ return this.isSyncingSlideState = true, this.logger.info("stateChange receive " + JSON.stringify(t4), this.taskId), t4.taskId && t4.taskId !== this.__slideState.taskId && (this.__slideState.taskId = t4.taskId, (e4 = this.player) === null || e4 === void 0 || e4.setResourceData(t4.taskId, this.__slideState.url)), t4.url && t4.url !== this.__slideState.url && (this.__slideState.url = t4.url, (n4 = this.player) === null || n4 === void 0 || n4.setResourceData(this.__slideState.taskId, t4.url)), Number.isInteger(t4.currentSlideIndex) && t4.currentSlideIndex !== this.__slideState.currentSlideIndex ? (this.__slideState.currentSlideIndex = t4.currentSlideIndex, [4, this.doRenderSlide(t4.currentSlideIndex)]) : [3, 2];
35114
35076
  case 1:
35115
35077
  s3.sent(), s3.label = 2;
35116
35078
  case 2:
35117
35079
  return [4, (i3 = this.player) === null || i3 === void 0 ? void 0 : i3.clock.waitUntil(function() {
35118
- var e5, n4;
35119
- return ((e5 = o2.player) === null || e5 === void 0 ? void 0 : e5.currentIndex) === t4.currentSlideIndex && ((n4 = o2.player) === null || n4 === void 0 ? void 0 : n4.currentStage);
35080
+ var e5, n5;
35081
+ return ((e5 = o2.player) === null || e5 === void 0 ? void 0 : e5.currentIndex) === t4.currentSlideIndex && ((n5 = o2.player) === null || n5 === void 0 ? void 0 : n5.currentStage);
35120
35082
  }, 3e3)];
35121
35083
  case 3:
35122
35084
  return s3.sent(), r3 = false, Number.isInteger(t4.mainSeqStep) && t4.mainSeqStep !== this.__slideState.mainSeqStep && (r3 = true, this.__slideState.mainSeqStep = t4.mainSeqStep), t4.mainSeqState && t4.mainSeqState !== this.__slideState.mainSeqState && (r3 = true, this.__slideState.mainSeqState = t4.mainSeqState), r3 && this.setMainSeqStep(this.__slideState.mainSeqStep, this.__slideState.mainSeqState === "idle" ? "start" : "end"), t4.mediaState && (this.initMedia(t4), this.__slideState.mediaState = t4.mediaState), t4.interactiveSeqState && (this.initInteractiveSeq(t4), this.__slideState.interactiveSeqState = t4.interactiveSeqState), this.isSyncingSlideState = false, [2];
@@ -35125,19 +35087,19 @@ void main(void){
35125
35087
  });
35126
35088
  }, e3.prototype.initInteractiveSeq = function(t4) {
35127
35089
  var e4;
35128
- for (var n3 in t4.interactiveSeqState) {
35129
- var i3 = t4.interactiveSeqState[n3];
35130
- (e4 = this.player) === null || e4 === void 0 || e4.setInteractiveSeqState(n3, i3.step, i3.state === "end" ? "end" : "start");
35090
+ for (var n4 in t4.interactiveSeqState) {
35091
+ var i3 = t4.interactiveSeqState[n4];
35092
+ (e4 = this.player) === null || e4 === void 0 || e4.setInteractiveSeqState(n4, i3.step, i3.state === "end" ? "end" : "start");
35131
35093
  }
35132
35094
  }, e3.prototype.initMedia = function(t4) {
35133
- var e4, n3, i3 = this, r3 = function(r4) {
35095
+ var e4, n4, i3 = this, r3 = function(r4) {
35134
35096
  var s4 = t4.mediaState[r4], a2 = o2.__slideState.mediaState[r4];
35135
35097
  if (a2 && s4.type === a2.type && s4.time === a2.time)
35136
35098
  return "continue";
35137
35099
  s4.type === "play" ? (e4 = o2.player) === null || e4 === void 0 || e4.setMediaState(r4, true).then(function() {
35138
35100
  var t5, e5 = i3.timestamp();
35139
35101
  (t5 = i3.player) === null || t5 === void 0 || t5.setMediaCurrentTime(r4, (e5 - s4.time) / 1e3);
35140
- }) : (n3 = o2.player) === null || n3 === void 0 || n3.setMediaState(r4, false).then(function() {
35102
+ }) : (n4 = o2.player) === null || n4 === void 0 || n4.setMediaState(r4, false).then(function() {
35141
35103
  var t5;
35142
35104
  (t5 = i3.player) === null || t5 === void 0 || t5.setMediaCurrentTime(r4, s4.time);
35143
35105
  });
@@ -35147,9 +35109,9 @@ void main(void){
35147
35109
  }, Object.defineProperty(e3.prototype, "slideCount", { get: function() {
35148
35110
  return this._slideCount;
35149
35111
  }, enumerable: false, configurable: true }), e3.prototype.getSizeAsync = function() {
35150
- return eI(this, void 0, void 0, function() {
35112
+ return rI(this, void 0, void 0, function() {
35151
35113
  var t4;
35152
- return nI(this, function(e4) {
35114
+ return oI(this, function(e4) {
35153
35115
  switch (e4.label) {
35154
35116
  case 0:
35155
35117
  if (this.width > 0 && this.height > 0)
@@ -35169,8 +35131,8 @@ void main(void){
35169
35131
  });
35170
35132
  });
35171
35133
  }, e3.prototype.getSlideCountAsync = function() {
35172
- return eI(this, void 0, void 0, function() {
35173
- return nI(this, function(t4) {
35134
+ return rI(this, void 0, void 0, function() {
35135
+ return oI(this, function(t4) {
35174
35136
  switch (t4.label) {
35175
35137
  case 0:
35176
35138
  if (this._slideCount > 0)
@@ -35222,22 +35184,22 @@ void main(void){
35222
35184
  }, enumerable: false, configurable: true }), e3.prototype.updateRenderOption = function(t4) {
35223
35185
  this.player && (this.player.updateConfig(t4), this.renderOptions && (this.config.renderOptions = this.renderOptions));
35224
35186
  }, e3.prototype.setResource = function(t4, e4) {
35225
- var n3;
35226
- this.taskId = t4, (n3 = this.player) === null || n3 === void 0 || n3.setResourceData(t4, e4), this.__slideState.taskId = t4, this.__slideState.url = e4, this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "setResource", taskId: t4, url: e4 });
35187
+ var n4;
35188
+ this.taskId = t4, (n4 = this.player) === null || n4 === void 0 || n4.setResourceData(t4, e4), this.__slideState.taskId = t4, this.__slideState.url = e4, this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "setResource", taskId: t4, url: e4 });
35227
35189
  }, e3.prototype._renderSlide = function(t4) {
35228
35190
  var e4;
35229
- return eI(this, void 0, void 0, function() {
35230
- var n3 = this;
35231
- return nI(this, function(i3) {
35191
+ return rI(this, void 0, void 0, function() {
35192
+ var n4 = this;
35193
+ return oI(this, function(i3) {
35232
35194
  switch (i3.label) {
35233
35195
  case 0:
35234
35196
  return this.renderingIndex = t4, this.player && t4 === this.player.currentIndex ? [2] : (($R.platform.isIOS() || $R.platform.isAndroid()) && this.iosResetCache.indexOf(t4) < 0 && this.iosResetCache.push(t4), [4, (e4 = this.player) === null || e4 === void 0 ? void 0 : e4.renderSlide(t4)]);
35235
35197
  case 1:
35236
35198
  return i3.sent(), this.__slideState.currentSlideIndex = t4, this.resizeView(), this.__slideState.interactiveSeqState = {}, this.emitStateChange(), setTimeout(function() {
35237
35199
  var t5, e5;
35238
- if (((e5 = (t5 = n3.player) === null || t5 === void 0 ? void 0 : t5.view) === null || e5 === void 0 ? void 0 : e5.style.visibility) === "hidden" && (n3.player.view.style.visibility = "visible"), n3.frame.style.visibility === "hidden" && (n3.frame.style.visibility = "visible"), n3.needClearCacheImage)
35200
+ if (((e5 = (t5 = n4.player) === null || t5 === void 0 ? void 0 : t5.view) === null || e5 === void 0 ? void 0 : e5.style.visibility) === "hidden" && (n4.player.view.style.visibility = "visible"), n4.frame.style.visibility === "hidden" && (n4.frame.style.visibility = "visible"), n4.needClearCacheImage)
35239
35201
  try {
35240
- n3.frame.removeChild(n3.cacheImage);
35202
+ n4.frame.removeChild(n4.cacheImage);
35241
35203
  } catch (t6) {
35242
35204
  }
35243
35205
  }, 100), [2];
@@ -35246,8 +35208,8 @@ void main(void){
35246
35208
  });
35247
35209
  }, e3.prototype.renderSlide = function(t4, e4) {
35248
35210
  if (e4 === void 0 && (e4 = true), this.player) {
35249
- var n3 = Number(t4);
35250
- (n3 !== this.player.currentIndex || this.renderingTaskManager.hasStartTask()) && (n3 > this.slideCount && this.slideCount > 0 || this.poseRenderSlide(n3, e4));
35211
+ var n4 = Number(t4);
35212
+ (n4 !== this.player.currentIndex || this.renderingTaskManager.hasStartTask()) && (n4 > this.slideCount && this.slideCount > 0 || this.poseRenderSlide(n4, e4));
35251
35213
  }
35252
35214
  }, e3.prototype.needCreateNewPlayer = function() {
35253
35215
  var t4 = $R.platform.isLowGpuMemory() ? 15 : 30;
@@ -35255,12 +35217,12 @@ void main(void){
35255
35217
  }, e3.prototype.poseRenderSlide = function(t4, e4) {
35256
35218
  this.mode === "interactive" ? this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "renderSlide", index: t4, isForward: e4 }) : this.mode === "sync" ? (this.doRenderSlide(t4, e4), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "renderSlide", index: t4, isForward: e4 })) : this.doRenderSlide(t4, e4);
35257
35219
  }, e3.prototype.doRenderSlide = function(t4, e4) {
35258
- var n3, i3, r3, o2 = this;
35220
+ var n4, i3, r3, o2 = this;
35259
35221
  if (e4 === void 0 && (e4 = true), !this.player)
35260
35222
  return Promise.resolve();
35261
35223
  if (this.needCreateNewPlayer() && (this.iosResetCache = [], this.iosNewPlayer = this.initPlayer(this.config), this.iosNewPlayer.setResourceData(this.__slideState.taskId, this.__slideState.url)), this.iosNewPlayer) {
35262
35224
  var s3 = this.player.getSnapshot();
35263
- this.cacheImage.src = s3, this.frame.appendChild(this.cacheImage), this.player.destroy(), (n3 = this.playerController) === null || n3 === void 0 || n3.destroy(), this.player = this.iosNewPlayer, this.iosNewPlayer = void 0, ((i3 = this.config) === null || i3 === void 0 ? void 0 : i3.controller) && this.createController(), this.needClearCacheImage = true, ((r3 = this == null ? void 0 : this.player) === null || r3 === void 0 ? void 0 : r3.view) && (this.player.view.style.visibility = "hidden", this.frame.appendChild(this.player.view));
35225
+ this.cacheImage.src = s3, this.frame.appendChild(this.cacheImage), this.player.destroy(), (n4 = this.playerController) === null || n4 === void 0 || n4.destroy(), this.player = this.iosNewPlayer, this.iosNewPlayer = void 0, ((i3 = this.config) === null || i3 === void 0 ? void 0 : i3.controller) && this.createController(), this.needClearCacheImage = true, ((r3 = this == null ? void 0 : this.player) === null || r3 === void 0 ? void 0 : r3.view) && (this.player.view.style.visibility = "hidden", this.frame.appendChild(this.player.view));
35264
35226
  }
35265
35227
  var a2 = Math.random().toString(32).substr(2);
35266
35228
  return this.player.isForward = e4, this.renderingTaskManager.addTask(function() {
@@ -35289,18 +35251,18 @@ void main(void){
35289
35251
  }, e3.prototype.emitStateChange = function() {
35290
35252
  if (this.mode !== "local" && !this.isSyncingSlideState) {
35291
35253
  var t4 = this.slideState;
35292
- !Object(l.isEqual)(this.lastEmitedState, t4) && this.isSlideStateReady(t4) && (this.lastEmitedState = t4, this.emit(sI.stateChange, t4), this.logger.info("stateChange dispatch " + JSON.stringify(this.slideState), this.taskId));
35254
+ !Object(l.isEqual)(this.lastEmitedState, t4) && this.isSlideStateReady(t4) && (this.lastEmitedState = t4, this.emit(uI.stateChange, t4), this.logger.info("stateChange dispatch " + JSON.stringify(this.slideState), this.taskId));
35293
35255
  }
35294
35256
  }, e3.prototype.emitSyncDispatch = function(t4) {
35295
35257
  if (!this.lock.isLocked(t4.type)) {
35296
35258
  var e4 = Math.random().toString(32).substr(2);
35297
35259
  this.lock.addLock(t4.type, e4);
35298
- var n3 = tI(tI({}, t4), { uuid: e4 });
35299
- this.config.mode === "sync" && (n3.incrId = this.dispatchIncrId), this.emit(sI.syncDispatch, n3), this.logger.info("sync dispatch " + JSON.stringify(n3), this.taskId);
35260
+ var n4 = nI(nI({}, t4), { uuid: e4 });
35261
+ this.config.mode === "sync" && (n4.incrId = this.dispatchIncrId), this.emit(uI.syncDispatch, n4), this.logger.info("sync dispatch " + JSON.stringify(n4), this.taskId);
35300
35262
  }
35301
35263
  }, e3.prototype.setMainSeqStep = function(t4, e4) {
35302
- var n3;
35303
- (n3 = this.player) === null || n3 === void 0 || n3.setMainSeqStep(t4, e4);
35264
+ var n4;
35265
+ (n4 = this.player) === null || n4 === void 0 || n4.setMainSeqStep(t4, e4);
35304
35266
  }, e3.prototype.setInteractive = function(t4) {
35305
35267
  var e4;
35306
35268
  this.interactive = t4, (e4 = this.player) === null || e4 === void 0 || e4.setInteractive(t4);
@@ -35312,17 +35274,17 @@ void main(void){
35312
35274
  (t4 = this.player) === null || t4 === void 0 || t4.resume();
35313
35275
  }, e3.prototype._doFrozen = function() {
35314
35276
  var t4;
35315
- return eI(this, void 0, void 0, function() {
35316
- var e4, n3, i3, r3 = this;
35317
- return nI(this, function(o2) {
35277
+ return rI(this, void 0, void 0, function() {
35278
+ var e4, n4, i3, r3 = this;
35279
+ return oI(this, function(o2) {
35318
35280
  switch (o2.label) {
35319
35281
  case 0:
35320
35282
  return this.view && this.player ? [4, this.player.clock.waitUntil(function() {
35321
35283
  return !r3.isLoading;
35322
35284
  }, 6e4)] : [3, 2];
35323
35285
  case 1:
35324
- for (n3 in o2.sent(), e4 = this.player.getSnapshot() || "", this.cacheImage.src = e4, this.frame.appendChild(this.cacheImage), this.player.destroy(), (t4 = this.playerController) === null || t4 === void 0 || t4.destroy(), this.player = void 0, this.__slideState.mediaState)
35325
- i3 = this.__slideState.mediaState[n3], this.__slideState.mediaState[n3] = tI(tI({}, i3), { frozenTime: this.timestamp() });
35286
+ for (n4 in o2.sent(), e4 = this.player.getSnapshot() || "", this.cacheImage.src = e4, this.frame.appendChild(this.cacheImage), this.player.destroy(), (t4 = this.playerController) === null || t4 === void 0 || t4.destroy(), this.player = void 0, this.__slideState.mediaState)
35287
+ i3 = this.__slideState.mediaState[n4], this.__slideState.mediaState[n4] = nI(nI({}, i3), { frozenTime: this.timestamp() });
35326
35288
  o2.label = 2;
35327
35289
  case 2:
35328
35290
  return [2];
@@ -35336,16 +35298,16 @@ void main(void){
35336
35298
  });
35337
35299
  }, e3.prototype._doRelease = function() {
35338
35300
  var t4, e4;
35339
- return eI(this, void 0, void 0, function() {
35340
- var n3, i3, r3, o2;
35341
- return nI(this, function(s3) {
35301
+ return rI(this, void 0, void 0, function() {
35302
+ var n4, i3, r3, o2;
35303
+ return oI(this, function(s3) {
35342
35304
  switch (s3.label) {
35343
35305
  case 0:
35344
35306
  if (this.player)
35345
35307
  return [2];
35346
- for (i3 in this.player = this.initPlayer(this.config), ((t4 = this.config) === null || t4 === void 0 ? void 0 : t4.controller) && this.createController(), this.player.view && (this.frame.appendChild(this.player.view), this.player.view.style.visibility = "hidden"), n3 = this.__slideState, this.__slideState = Object(l.cloneDeep)(aI), n3.mediaState)
35347
- (r3 = n3.mediaState[i3]).type === "play" && (o2 = Math.max((e4 = r3.frozenTime) !== null && e4 !== void 0 ? e4 : 0, r3.time), r3.time = this.timestamp() - (o2 - r3.time), r3.frozenTime = void 0);
35348
- return [4, this.setSlideState(n3)];
35308
+ for (i3 in this.player = this.initPlayer(this.config), ((t4 = this.config) === null || t4 === void 0 ? void 0 : t4.controller) && this.createController(), this.player.view && (this.frame.appendChild(this.player.view), this.player.view.style.visibility = "hidden"), n4 = this.__slideState, this.__slideState = Object(l.cloneDeep)(hI), n4.mediaState)
35309
+ (r3 = n4.mediaState[i3]).type === "play" && (o2 = Math.max((e4 = r3.frozenTime) !== null && e4 !== void 0 ? e4 : 0, r3.time), r3.time = this.timestamp() - (o2 - r3.time), r3.frozenTime = void 0);
35310
+ return [4, this.setSlideState(n4)];
35349
35311
  case 1:
35350
35312
  return s3.sent(), [4, this.player.clock.delay(333)];
35351
35313
  case 2:
@@ -35364,8 +35326,8 @@ void main(void){
35364
35326
  return t4._doRelease();
35365
35327
  });
35366
35328
  }, e3.prototype._doDestroy = function() {
35367
- var t4, e4, n3, i3;
35368
- this.logger.info("do destroy slide", ""), this.playerController && this.playerController.destroy(), this.frameResizeObserver.disconnect(), (t4 = this.player) === null || t4 === void 0 || t4.removeAllListeners(), (e4 = this.player) === null || e4 === void 0 || e4.destroy(), (n3 = this.player) === null || n3 === void 0 || n3.removeAllListeners(), this.logger = { warn: function() {
35329
+ var t4, e4, n4, i3;
35330
+ this.logger.info("do destroy slide", ""), this.playerController && this.playerController.destroy(), this.frameResizeObserver.disconnect(), (t4 = this.player) === null || t4 === void 0 || t4.removeAllListeners(), (e4 = this.player) === null || e4 === void 0 || e4.destroy(), (n4 = this.player) === null || n4 === void 0 || n4.removeAllListeners(), this.logger = { warn: function() {
35369
35331
  return {};
35370
35332
  }, info: function() {
35371
35333
  return {};
@@ -35377,14 +35339,14 @@ void main(void){
35377
35339
  } catch (t5) {
35378
35340
  }
35379
35341
  }, e3.prototype.waitLoadEnd = function() {
35380
- return eI(this, void 0, void 0, function() {
35342
+ return rI(this, void 0, void 0, function() {
35381
35343
  var t4;
35382
- return nI(this, function(e4) {
35344
+ return oI(this, function(e4) {
35383
35345
  switch (e4.label) {
35384
35346
  case 0:
35385
35347
  t4 = 0, e4.label = 1;
35386
35348
  case 1:
35387
- return this.isLoading && t4 < 10 ? [4, rI(100)] : [3, 3];
35349
+ return this.isLoading && t4 < 10 ? [4, aI(100)] : [3, 3];
35388
35350
  case 2:
35389
35351
  return e4.sent(), t4 += 1, [3, 1];
35390
35352
  case 3:
@@ -35403,45 +35365,130 @@ void main(void){
35403
35365
  }, e3.prototype.hasNextStep = function() {
35404
35366
  if (!this.player)
35405
35367
  return false;
35406
- var t4 = this.player.currentIndex === this.slideCount, e4 = this.mainSeqLength === 0 || this.mainSeqStep >= this.mainSeqLength - 1, n3 = this.mainSeqState === "end" || this.mainSeqState === "running" || this.mainSeqState == null;
35407
- return !(t4 && e4 && n3);
35368
+ var t4 = this.player.currentIndex === this.slideCount, e4 = this.mainSeqLength === 0 || this.mainSeqStep >= this.mainSeqLength - 1, n4 = this.mainSeqState === "end" || this.mainSeqState === "running" || this.mainSeqState == null;
35369
+ return !(t4 && e4 && n4);
35408
35370
  }, e3.prototype.hasPrevStep = function() {
35409
35371
  if (!this.player)
35410
35372
  return false;
35411
- var t4 = this.player.currentIndex === 1, e4 = this.mainSeqLength === 0 || this.mainSeqStep === 0, n3 = this.mainSeqState === "idle" || this.mainSeqState === null;
35412
- return !(t4 && e4 && n3);
35373
+ var t4 = this.player.currentIndex === 1, e4 = this.mainSeqLength === 0 || this.mainSeqStep === 0, n4 = this.mainSeqState === "idle" || this.mainSeqState === null;
35374
+ return !(t4 && e4 && n4);
35413
35375
  }, e3.clearLocalCache = function() {
35414
35376
  $R.clearLocalCache();
35415
35377
  }, e3.disposeLocalCache = function() {
35416
- }, e3._tempLog = "", e3._tempLogIndex = 1, e3.handleLogDownload = function() {
35417
- return eI(void 0, void 0, void 0, function() {
35418
- var t4, e4, n3, i3, r3, o2, s3;
35419
- return nI(this, function(a2) {
35378
+ }, e3._tempLog = "", e3._tempLogIndex = 1, e3.usePlugin = QR, e3.handleLogDownload = function() {
35379
+ return rI(void 0, void 0, void 0, function() {
35380
+ var t4, e4, n4, i3, r3, o2, s3;
35381
+ return oI(this, function(a2) {
35420
35382
  switch (a2.label) {
35421
35383
  case 0:
35422
- return t4 = "", uI ? [4, uI.keys()] : [3, 5];
35384
+ return t4 = "", dI ? [4, dI.keys()] : [3, 5];
35423
35385
  case 1:
35424
35386
  e4 = (a2.sent() || []).sort(function(t5, e5) {
35425
35387
  return parseInt(t5.replace("run_time_log_", "")) - parseInt(e5.replace("run_time_log_", ""));
35426
- }), n3 = 0, i3 = e4, a2.label = 2;
35388
+ }), n4 = 0, i3 = e4, a2.label = 2;
35427
35389
  case 2:
35428
- return n3 < i3.length ? (r3 = i3[n3], o2 = t4, [4, uI.getItem(r3)]) : [3, 5];
35390
+ return n4 < i3.length ? (r3 = i3[n4], o2 = t4, [4, dI.getItem(r3)]) : [3, 5];
35429
35391
  case 3:
35430
35392
  t4 = o2 + (a2.sent() || ""), a2.label = 4;
35431
35393
  case 4:
35432
- return n3++, [3, 2];
35394
+ return n4++, [3, 2];
35433
35395
  case 5:
35434
35396
  return (s3 = document.createElement("a")).setAttribute("href", "data:text/plain;charset=utf-8," + encodeURIComponent(t4)), s3.setAttribute("download", "slide_log"), s3.style.display = "none", document.body.appendChild(s3), s3.click(), document.body.removeChild(s3), window.__slideLogText = t4, [2];
35435
35397
  }
35436
35398
  });
35437
35399
  });
35438
- }, e3;
35400
+ }, iI([(n3 = "Slide.initConfig", function(t4, e4, i3) {
35401
+ var r3 = i3.value;
35402
+ i3.value = function() {
35403
+ for (var t5 = [], e5 = 0; e5 < arguments.length; e5++)
35404
+ t5[e5] = arguments[e5];
35405
+ for (var i4 = KR.get(n3) || [], o2 = t5, s3 = 0, a2 = i4; s3 < a2.length; s3++) {
35406
+ var l2 = a2[s3];
35407
+ try {
35408
+ o2 = l2.before(o2);
35409
+ } catch (t6) {
35410
+ }
35411
+ if (!Array.isArray(o2) || o2.length !== t5.length)
35412
+ throw new Error("plugin before hook return invalid args");
35413
+ }
35414
+ for (var u2 = r3.bind(this).apply(void 0, o2), h2 = 0, c2 = i4.reverse(); h2 < c2.length; h2++) {
35415
+ l2 = c2[h2];
35416
+ try {
35417
+ u2 = l2.after(u2);
35418
+ } catch (t6) {
35419
+ }
35420
+ if (!u2)
35421
+ throw new Error("plugin after hook return undefined result");
35422
+ }
35423
+ return u2;
35424
+ };
35425
+ })], e3.prototype, "initSlideConfig", null), e3;
35439
35426
  }(a.a);
35440
- uI == null || uI.clear(), window.addEventListener("__slide_log__", hI.handleLogDownload), window.setInterval(function() {
35441
- hI.flushLog().catch(function() {
35427
+ dI == null || dI.clear(), window.addEventListener("__slide_log__", pI.handleLogDownload), window.setInterval(function() {
35428
+ pI.flushLog().catch(function() {
35442
35429
  });
35443
35430
  }, 9e3);
35444
35431
  }]);
35432
+ const s = "!#%()*+,-./:;=?@[]^_`{|}~ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", e = s.length, t = Array(20), i = () => {
35433
+ for (let i2 = 0; i2 < 20; i2++)
35434
+ t[i2] = s.charAt(Math.random() * e);
35435
+ return t.join("");
35436
+ };
35437
+ function r(s2) {
35438
+ try {
35439
+ return s2();
35440
+ } catch (e2) {
35441
+ console.error(e2);
35442
+ }
35443
+ }
35444
+ class n {
35445
+ constructor() {
35446
+ this.disposers = /* @__PURE__ */ new Map();
35447
+ }
35448
+ addDisposer(s2, e2 = this.genUID()) {
35449
+ return this.flush(e2), this.disposers.set(e2, Array.isArray(s2) ? () => s2.forEach(r) : s2), e2;
35450
+ }
35451
+ add(s2, e2 = this.genUID()) {
35452
+ const t2 = s2();
35453
+ return t2 ? this.addDisposer(t2, e2) : e2;
35454
+ }
35455
+ addEventListener(s2, e2, t2, i2, r2 = this.genUID()) {
35456
+ return s2.addEventListener(e2, t2, i2), this.addDisposer(() => s2.removeEventListener(e2, t2, i2), r2), r2;
35457
+ }
35458
+ setTimeout(s2, e2, t2 = this.genUID()) {
35459
+ const i2 = window.setTimeout(() => {
35460
+ this.remove(t2), s2();
35461
+ }, e2);
35462
+ return this.addDisposer(() => window.clearTimeout(i2), t2);
35463
+ }
35464
+ setInterval(s2, e2, t2 = this.genUID()) {
35465
+ const i2 = window.setInterval(s2, e2);
35466
+ return this.addDisposer(() => window.clearInterval(i2), t2);
35467
+ }
35468
+ remove(s2) {
35469
+ const e2 = this.disposers.get(s2);
35470
+ return this.disposers.delete(s2), e2;
35471
+ }
35472
+ flush(s2) {
35473
+ const e2 = this.remove(s2);
35474
+ if (e2)
35475
+ try {
35476
+ e2();
35477
+ } catch (t2) {
35478
+ console.error(t2);
35479
+ }
35480
+ }
35481
+ flushAll() {
35482
+ this.disposers.forEach(r), this.disposers.clear();
35483
+ }
35484
+ genUID() {
35485
+ let s2;
35486
+ do {
35487
+ s2 = i();
35488
+ } while (this.disposers.has(s2));
35489
+ return s2;
35490
+ }
35491
+ }
35445
35492
  function clamp$1(value, min, max) {
35446
35493
  return Math.min(Math.max(value, min), max);
35447
35494
  }
@@ -36168,6 +36215,13 @@ class SlideController {
36168
36215
  transactionBgColor: options.bgColor || cachedGetBgColor(anchor),
36169
36216
  maxResolutionLevel: options.maxResolutionLevel
36170
36217
  },
36218
+ fixedFrameSize: options.fixedFrameSize,
36219
+ loaderDelegate: options.loaderDelegate,
36220
+ navigatorDelegate: options.navigatorDelegate,
36221
+ resourceTimeout: options.resourceTimeout,
36222
+ rtcAudio: options.rtcAudio,
36223
+ useLocalCache: options.useLocalCache,
36224
+ logger: options.logger,
36171
36225
  timestamp: this.timestamp
36172
36226
  });
36173
36227
  return slide;
@@ -37537,7 +37591,8 @@ class SlidePreviewer {
37537
37591
  return `${this.namespace}-${className}`;
37538
37592
  }
37539
37593
  }
37540
- const version = "0.2.4";
37594
+ const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
37595
+ const version = "0.2.5";
37541
37596
  const SlideApp = {
37542
37597
  kind: "Slide",
37543
37598
  setup(context) {
@@ -37695,5 +37750,6 @@ const SlideApp = {
37695
37750
  };
37696
37751
  }
37697
37752
  };
37698
- export { DefaultUrl, FreezerLength, SlidePreviewer, addHooks, apps, SlideApp as default, previewSlide, version };
37753
+ var Slide$1 = Slide.Slide;
37754
+ export { DefaultUrl, FreezerLength, Slide$1 as Slide, SlidePreviewer, addHooks, apps, SlideApp as default, previewSlide, usePlugin, version };
37699
37755
  //# sourceMappingURL=main.es.js.map