@netless/app-slide 0.2.55 → 0.2.56

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
@@ -1039,7 +1039,7 @@ var Slide = function(t) {
1039
1039
  }, e2;
1040
1040
  }(x);
1041
1041
  h.push(E, A, b, w, S, m, T, y);
1042
- var R = function(t2) {
1042
+ var C = function(t2) {
1043
1043
  function e2() {
1044
1044
  return t2 !== null && t2.apply(this, arguments) || this;
1045
1045
  }
@@ -1049,7 +1049,7 @@ var Slide = function(t) {
1049
1049
  var o2 = e3.realWidth, s2 = e3.realHeight;
1050
1050
  return i2.width === o2 && i2.height === s2 ? n2.texSubImage2D(e3.target, 0, 0, 0, o2, s2, e3.format, i2.type, this.data) : (i2.width = o2, i2.height = s2, n2.texImage2D(e3.target, 0, i2.internalFormat, o2, s2, 0, e3.format, i2.type, this.data)), true;
1051
1051
  }, e2;
1052
- }(m), C = function() {
1052
+ }(m), R = function() {
1053
1053
  function t2(t3, e2) {
1054
1054
  this.width = Math.round(t3 || 100), this.height = Math.round(e2 || 100), this.stencil = false, this.depth = false, this.dirtyId = 0, this.dirtyFormat = 0, this.dirtySize = 0, this.depthTexture = null, this.colorTextures = [], this.glFramebuffers = {}, this.disposeRunner = new s.a("disposeFramebuffer"), this.multisample = r.l.NONE;
1055
1055
  }
@@ -1058,7 +1058,7 @@ var Slide = function(t) {
1058
1058
  }, enumerable: false, configurable: true }), t2.prototype.addColorTexture = function(t3, e2) {
1059
1059
  return t3 === void 0 && (t3 = 0), this.colorTextures[t3] = e2 || new v(null, { scaleMode: r.p.NEAREST, resolution: 1, mipmap: r.k.OFF, width: this.width, height: this.height }), this.dirtyId++, this.dirtyFormat++, this;
1060
1060
  }, t2.prototype.addDepthTexture = function(t3) {
1061
- return this.depthTexture = t3 || new v(new R(null, { width: this.width, height: this.height }), { scaleMode: r.p.NEAREST, resolution: 1, width: this.width, height: this.height, mipmap: r.k.OFF, format: r.h.DEPTH_COMPONENT, type: r.r.UNSIGNED_SHORT }), this.dirtyId++, this.dirtyFormat++, this;
1061
+ return this.depthTexture = t3 || new v(new C(null, { width: this.width, height: this.height }), { scaleMode: r.p.NEAREST, resolution: 1, width: this.width, height: this.height, mipmap: r.k.OFF, format: r.h.DEPTH_COMPONENT, type: r.r.UNSIGNED_SHORT }), this.dirtyId++, this.dirtyFormat++, this;
1062
1062
  }, t2.prototype.enableDepth = function() {
1063
1063
  return this.depth = true, this.dirtyId++, this.dirtyFormat++, this;
1064
1064
  }, t2.prototype.enableStencil = function() {
@@ -1088,7 +1088,7 @@ var Slide = function(t) {
1088
1088
  var n2 = arguments[0], o2 = arguments[1], s2 = arguments[2], a2 = arguments[3];
1089
1089
  e3 = { width: n2, height: o2, scaleMode: s2, resolution: a2 };
1090
1090
  }
1091
- return e3.width = e3.width || 100, e3.height = e3.height || 100, e3.multisample = e3.multisample !== void 0 ? e3.multisample : r.l.NONE, (i2 = t2.call(this, null, e3) || this).mipmap = r.k.OFF, i2.valid = true, i2.clearColor = [0, 0, 0, 0], i2.framebuffer = new C(i2.realWidth, i2.realHeight).addColorTexture(0, i2), i2.framebuffer.multisample = e3.multisample, i2.maskStack = [], i2.filterStack = [{}], i2;
1091
+ return e3.width = e3.width || 100, e3.height = e3.height || 100, e3.multisample = e3.multisample !== void 0 ? e3.multisample : r.l.NONE, (i2 = t2.call(this, null, e3) || this).mipmap = r.k.OFF, i2.valid = true, i2.clearColor = [0, 0, 0, 0], i2.framebuffer = new R(i2.realWidth, i2.realHeight).addColorTexture(0, i2), i2.framebuffer.multisample = e3.multisample, i2.maskStack = [], i2.filterStack = [{}], i2;
1092
1092
  }
1093
1093
  return d(e2, t2), e2.prototype.resize = function(t3, e3) {
1094
1094
  this.framebuffer.resize(t3 * this.resolution, e3 * this.resolution), this.setRealSize(this.framebuffer.width, this.framebuffer.height);
@@ -1643,7 +1643,7 @@ var Slide = function(t) {
1643
1643
  this.framebuffer = t2, this.stencil = null, this.dirtyId = -1, this.dirtyFormat = -1, this.dirtySize = -1, this.multisample = r.l.NONE, this.msaaBuffer = null, this.blitFramebuffer = null, this.mipLevel = 0;
1644
1644
  }, rt = new l.j(), ot = function() {
1645
1645
  function t2(t3) {
1646
- this.renderer = t3, this.managedFramebuffers = [], this.unknownFramebuffer = new C(10, 10), this.msaaSamples = null;
1646
+ this.renderer = t3, this.managedFramebuffers = [], this.unknownFramebuffer = new R(10, 10), this.msaaSamples = null;
1647
1647
  }
1648
1648
  return t2.prototype.contextChange = function() {
1649
1649
  var t3 = this.gl = this.renderer.gl;
@@ -1731,7 +1731,7 @@ var Slide = function(t) {
1731
1731
  var l2 = n2.colorTextures[0];
1732
1732
  if (!l2)
1733
1733
  return;
1734
- a2.blitFramebuffer || (a2.blitFramebuffer = new C(n2.width, n2.height), a2.blitFramebuffer.addColorTexture(0, l2)), (t3 = a2.blitFramebuffer).colorTextures[0] !== l2 && (t3.colorTextures[0] = l2, t3.dirtyId++, t3.dirtyFormat++), t3.width === n2.width && t3.height === n2.height || (t3.width = n2.width, t3.height = n2.height, t3.dirtyId++, t3.dirtySize++);
1734
+ a2.blitFramebuffer || (a2.blitFramebuffer = new R(n2.width, n2.height), a2.blitFramebuffer.addColorTexture(0, l2)), (t3 = a2.blitFramebuffer).colorTextures[0] !== l2 && (t3.colorTextures[0] = l2, t3.dirtyId++, t3.dirtyFormat++), t3.width === n2.width && t3.height === n2.height || (t3.width = n2.width, t3.height = n2.height, t3.dirtyId++, t3.dirtySize++);
1735
1735
  }
1736
1736
  e2 || ((e2 = rt).width = n2.width, e2.height = n2.height), i2 || (i2 = e2);
1737
1737
  var h2 = e2.width === i2.width && e2.height === i2.height;
@@ -2055,14 +2055,14 @@ var Slide = function(t) {
2055
2055
  return '\n cv = ud["' + t2 + '"].value;\n v = uv["' + t2 + '"];\n\n if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(ud["' + t2 + '"].location, v[0], v[1], v[2], v[3])\n }';
2056
2056
  } }], St = { float: "\n if (cv !== v)\n {\n cu.value = v;\n gl.uniform1f(location, v);\n }", vec2: "\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2f(location, v[0], v[1])\n }", vec3: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3f(location, v[0], v[1], v[2])\n }", vec4: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(location, v[0], v[1], v[2], v[3]);\n }", int: "\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }", ivec2: "\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2i(location, v[0], v[1]);\n }", ivec3: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3i(location, v[0], v[1], v[2]);\n }", ivec4: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }", uint: "\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1ui(location, v);\n }", uvec2: "\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2ui(location, v[0], v[1]);\n }", uvec3: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3ui(location, v[0], v[1], v[2]);\n }", uvec4: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4ui(location, v[0], v[1], v[2], v[3]);\n }", bool: "\n if (cv !== v)\n {\n cu.value = v;\n gl.uniform1i(location, v);\n }", bvec2: "\n if (cv[0] != v[0] || cv[1] != v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2i(location, v[0], v[1]);\n }", bvec3: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3i(location, v[0], v[1], v[2]);\n }", bvec4: "\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }", mat2: "gl.uniformMatrix2fv(location, false, v)", mat3: "gl.uniformMatrix3fv(location, false, v)", mat4: "gl.uniformMatrix4fv(location, false, v)", sampler2D: "gl.uniform1i(location, v)", samplerCube: "gl.uniform1i(location, v)", sampler2DArray: "gl.uniform1i(location, v)" }, wt = { float: "gl.uniform1fv(location, v)", vec2: "gl.uniform2fv(location, v)", vec3: "gl.uniform3fv(location, v)", vec4: "gl.uniform4fv(location, v)", mat4: "gl.uniformMatrix4fv(location, false, v)", mat3: "gl.uniformMatrix3fv(location, false, v)", mat2: "gl.uniformMatrix2fv(location, false, v)", int: "gl.uniform1iv(location, v)", ivec2: "gl.uniform2iv(location, v)", ivec3: "gl.uniform3iv(location, v)", ivec4: "gl.uniform4iv(location, v)", uint: "gl.uniform1uiv(location, v)", uvec2: "gl.uniform2uiv(location, v)", uvec3: "gl.uniform3uiv(location, v)", uvec4: "gl.uniform4uiv(location, v)", bool: "gl.uniform1iv(location, v)", bvec2: "gl.uniform2iv(location, v)", bvec3: "gl.uniform3iv(location, v)", bvec4: "gl.uniform4iv(location, v)", sampler2D: "gl.uniform1iv(location, v)", samplerCube: "gl.uniform1iv(location, v)", sampler2DArray: "gl.uniform1iv(location, v)" };
2057
2057
  var At, Mt = ["precision mediump float;", "void main(void){", "float test = 0.1;", "%forloop%", "gl_FragColor = vec4(0.0);", "}"].join("\n");
2058
- function Rt(t2) {
2058
+ function Ct(t2) {
2059
2059
  for (var e2 = "", i2 = 0; i2 < t2; ++i2)
2060
2060
  i2 > 0 && (e2 += "\nelse "), i2 < t2 - 1 && (e2 += "if(test == " + i2 + ".0){}");
2061
2061
  return e2;
2062
2062
  }
2063
- var Ct = 0, It = {}, Pt = function() {
2063
+ var Rt = 0, It = {}, Pt = function() {
2064
2064
  function t2(e2, i2, o2) {
2065
- o2 === void 0 && (o2 = "pixi-shader"), this.id = Ct++, this.vertexSrc = e2 || t2.defaultVertexSrc, this.fragmentSrc = i2 || t2.defaultFragmentSrc, this.vertexSrc = this.vertexSrc.trim(), this.fragmentSrc = this.fragmentSrc.trim(), this.vertexSrc.substring(0, 8) !== "#version" && (o2 = o2.replace(/\s+/g, "-"), It[o2] ? (It[o2]++, o2 += "-" + It[o2]) : It[o2] = 1, this.vertexSrc = "#define SHADER_NAME " + o2 + "\n" + this.vertexSrc, this.fragmentSrc = "#define SHADER_NAME " + o2 + "\n" + this.fragmentSrc, this.vertexSrc = vt(this.vertexSrc, n.b.PRECISION_VERTEX, r.m.HIGH), this.fragmentSrc = vt(this.fragmentSrc, n.b.PRECISION_FRAGMENT, gt())), this.glPrograms = {}, this.syncUniforms = null;
2065
+ o2 === void 0 && (o2 = "pixi-shader"), this.id = Rt++, this.vertexSrc = e2 || t2.defaultVertexSrc, this.fragmentSrc = i2 || t2.defaultFragmentSrc, this.vertexSrc = this.vertexSrc.trim(), this.fragmentSrc = this.fragmentSrc.trim(), this.vertexSrc.substring(0, 8) !== "#version" && (o2 = o2.replace(/\s+/g, "-"), It[o2] ? (It[o2]++, o2 += "-" + It[o2]) : It[o2] = 1, this.vertexSrc = "#define SHADER_NAME " + o2 + "\n" + this.vertexSrc, this.fragmentSrc = "#define SHADER_NAME " + o2 + "\n" + this.fragmentSrc, this.vertexSrc = vt(this.vertexSrc, n.b.PRECISION_VERTEX, r.m.HIGH), this.fragmentSrc = vt(this.fragmentSrc, n.b.PRECISION_FRAGMENT, gt())), this.glPrograms = {}, this.syncUniforms = null;
2066
2066
  }
2067
2067
  return Object.defineProperty(t2, "defaultVertexSrc", { get: function() {
2068
2068
  return "attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}\n";
@@ -2937,7 +2937,7 @@ var Slide = function(t) {
2937
2937
  if (t4 === 0)
2938
2938
  throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");
2939
2939
  for (var i2 = e4.createShader(e4.FRAGMENT_SHADER); ; ) {
2940
- var n2 = Mt.replace(/%forloop%/gi, Rt(t4));
2940
+ var n2 = Mt.replace(/%forloop%/gi, Ct(t4));
2941
2941
  if (e4.shaderSource(i2, n2), e4.compileShader(i2), e4.getShaderParameter(i2, e4.COMPILE_STATUS))
2942
2942
  break;
2943
2943
  t4 = t4 / 2 | 0;
@@ -3098,7 +3098,7 @@ var Slide = function(t) {
3098
3098
  }), i.d(e, "hex2string", function() {
3099
3099
  return _;
3100
3100
  }), i.d(e, "interleaveTypedArrays", function() {
3101
- return C;
3101
+ return R;
3102
3102
  }), i.d(e, "isPow2", function() {
3103
3103
  return P;
3104
3104
  }), i.d(e, "isWebGLSupported", function() {
@@ -3237,14 +3237,14 @@ var Slide = function(t) {
3237
3237
  return "Uint8Array";
3238
3238
  return null;
3239
3239
  }
3240
- var R = { Float32Array, Uint32Array, Int32Array, Uint8Array };
3241
- function C(t2, e2) {
3240
+ var C = { Float32Array, Uint32Array, Int32Array, Uint8Array };
3241
+ function R(t2, e2) {
3242
3242
  for (var i2 = 0, n2 = 0, r2 = {}, o2 = 0; o2 < t2.length; o2++)
3243
3243
  n2 += e2[o2], i2 += t2[o2].length;
3244
3244
  var s2 = new ArrayBuffer(4 * i2), a2 = null, l2 = 0;
3245
3245
  for (o2 = 0; o2 < t2.length; o2++) {
3246
3246
  var h2 = e2[o2], u2 = t2[o2], c2 = M(u2);
3247
- r2[c2] || (r2[c2] = new R[c2](s2)), a2 = r2[c2];
3247
+ r2[c2] || (r2[c2] = new C[c2](s2)), a2 = r2[c2];
3248
3248
  for (var d2 = 0; d2 < u2.length; d2++) {
3249
3249
  a2[(d2 / h2 | 0) * n2 + l2 + d2 % h2] = u2[d2];
3250
3250
  }
@@ -3359,7 +3359,7 @@ var Slide = function(t) {
3359
3359
  * @pixi/settings is licensed under the MIT License.
3360
3360
  * http://www.opensource.org/licenses/mit-license
3361
3361
  */
3362
- var y, x, b, T, E, S, w, A, M, R, C, I, P, O, N, L, D, F, B, U = function(t2) {
3362
+ var y, x, b, T, E, S, w, A, M, C, R, I, P, O, N, L, D, F, B, U = function(t2) {
3363
3363
  var e2 = { userAgent: "", platform: "", maxTouchPoints: 0 };
3364
3364
  t2 || typeof navigator == "undefined" ? typeof t2 == "string" ? e2.userAgent = t2 : t2 && t2.userAgent && (e2 = { userAgent: t2.userAgent, platform: t2.platform, maxTouchPoints: t2.maxTouchPoints || 0 }) : e2 = { userAgent: navigator.userAgent, platform: navigator.platform, maxTouchPoints: navigator.maxTouchPoints || 0 };
3365
3365
  var i2 = e2.userAgent, y2 = i2.split("[FBAN");
@@ -3391,9 +3391,9 @@ var Slide = function(t) {
3391
3391
  t2[t2.FLOAT = 0] = "FLOAT", t2[t2.INT = 1] = "INT", t2[t2.UINT = 2] = "UINT";
3392
3392
  }(M || (M = {})), function(t2) {
3393
3393
  t2[t2.NEAREST = 0] = "NEAREST", t2[t2.LINEAR = 1] = "LINEAR";
3394
- }(R || (R = {})), function(t2) {
3395
- t2[t2.CLAMP = 33071] = "CLAMP", t2[t2.REPEAT = 10497] = "REPEAT", t2[t2.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT";
3396
3394
  }(C || (C = {})), function(t2) {
3395
+ t2[t2.CLAMP = 33071] = "CLAMP", t2[t2.REPEAT = 10497] = "REPEAT", t2[t2.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT";
3396
+ }(R || (R = {})), function(t2) {
3397
3397
  t2[t2.OFF = 0] = "OFF", t2[t2.POW2 = 1] = "POW2", t2[t2.ON = 2] = "ON", t2[t2.ON_MANUAL = 3] = "ON_MANUAL";
3398
3398
  }(I || (I = {})), function(t2) {
3399
3399
  t2[t2.NPM = 0] = "NPM", t2[t2.UNPACK = 1] = "UNPACK", t2[t2.PMA = 2] = "PMA", t2[t2.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", t2[t2.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", t2[t2.PREMULTIPLY_ALPHA = 2] = "PREMULTIPLY_ALPHA", t2[t2.PREMULTIPLIED_ALPHA = 2] = "PREMULTIPLIED_ALPHA";
@@ -3424,16 +3424,16 @@ var Slide = function(t) {
3424
3424
  }
3425
3425
  }
3426
3426
  return e2 ? t2 : 4;
3427
- }(32), SPRITE_BATCH_SIZE: 4096, RENDER_OPTIONS: { view: null, antialias: false, autoDensity: false, backgroundColor: 0, backgroundAlpha: 1, useContextAlpha: true, clearBeforeRender: true, preserveDrawingBuffer: false, width: 800, height: 600, legacy: false }, GC_MODE: N.AUTO, GC_MAX_IDLE: 3600, GC_MAX_CHECK_COUNT: 600, WRAP_MODE: C.CLAMP, SCALE_MODE: R.LINEAR, PRECISION_VERTEX: L.HIGH, PRECISION_FRAGMENT: U.apple.device ? L.HIGH : L.MEDIUM, CAN_UPLOAD_SAME_BUFFER: !U.apple.device, CREATE_IMAGE_BITMAP: false, ROUND_PIXELS: false };
3427
+ }(32), SPRITE_BATCH_SIZE: 4096, RENDER_OPTIONS: { view: null, antialias: false, autoDensity: false, backgroundColor: 0, backgroundAlpha: 1, useContextAlpha: true, clearBeforeRender: true, preserveDrawingBuffer: false, width: 800, height: 600, legacy: false }, GC_MODE: N.AUTO, GC_MAX_IDLE: 3600, GC_MAX_CHECK_COUNT: 600, WRAP_MODE: R.CLAMP, SCALE_MODE: C.LINEAR, PRECISION_VERTEX: L.HIGH, PRECISION_FRAGMENT: U.apple.device ? L.HIGH : L.MEDIUM, CAN_UPLOAD_SAME_BUFFER: !U.apple.device, CREATE_IMAGE_BITMAP: false, ROUND_PIXELS: false };
3428
3428
  }, function(t, e, i) {
3429
3429
  i.d(e, "a", function() {
3430
3430
  return s;
3431
3431
  }), i.d(e, "b", function() {
3432
3432
  return P;
3433
3433
  }), i.d(e, "c", function() {
3434
- return R;
3435
- }), i.d(e, "d", function() {
3436
3434
  return C;
3435
+ }), i.d(e, "d", function() {
3436
+ return R;
3437
3437
  });
3438
3438
  var n = i(4), r = i(1), o = i(3);
3439
3439
  /*!
@@ -3532,7 +3532,7 @@ var Slide = function(t) {
3532
3532
  }
3533
3533
  a(t2, e2), t2.prototype = e2 === null ? Object.create(e2) : (i2.prototype = e2.prototype, new i2());
3534
3534
  }
3535
- var h, u, c, d, p, f, m, g, v, _, y, x, b, T, E, S, w, A, M, R = function(t2) {
3535
+ var h, u, c, d, p, f, m, g, v, _, y, x, b, T, E, S, w, A, M, C = function(t2) {
3536
3536
  function e2() {
3537
3537
  var e3 = t2.call(this) || this;
3538
3538
  return e3.tempDisplayObjectParent = null, e3.transform = new r.m(), e3.alpha = 1, e3.visible = true, e3.renderable = true, e3.cullable = false, e3.cullArea = null, e3.parent = null, e3.worldAlpha = 1, e3._lastSortedIndex = 0, e3._zIndex = 0, e3.filterArea = null, e3.filters = null, e3._enabledFilters = null, e3._bounds = new s(), e3._localBounds = null, e3._boundsID = 0, e3._boundsRect = null, e3._localBoundsRect = null, e3._mask = null, e3._maskRefCount = 0, e3._destroyed = false, e3.isSprite = false, e3.isMask = false, e3;
@@ -3571,7 +3571,7 @@ var Slide = function(t) {
3571
3571
  }, e2.prototype.destroy = function(t3) {
3572
3572
  this.parent && this.parent.removeChild(this), this._destroyed = true, this.transform = null, this.parent = null, this._bounds = null, this.mask = null, this.cullArea = null, this.filters = null, this.filterArea = null, this.hitArea = null, this.interactive = false, this.interactiveChildren = false, this.emit("destroyed"), this.removeAllListeners();
3573
3573
  }, Object.defineProperty(e2.prototype, "_tempDisplayObjectParent", { get: function() {
3574
- return this.tempDisplayObjectParent === null && (this.tempDisplayObjectParent = new C()), this.tempDisplayObjectParent;
3574
+ return this.tempDisplayObjectParent === null && (this.tempDisplayObjectParent = new R()), this.tempDisplayObjectParent;
3575
3575
  }, enumerable: false, configurable: true }), e2.prototype.enableTempParent = function() {
3576
3576
  var t3 = this.parent;
3577
3577
  return this.parent = this._tempDisplayObjectParent, t3;
@@ -3636,17 +3636,17 @@ var Slide = function(t) {
3636
3636
  (e3 = this._mask.maskObject || this._mask)._maskRefCount === 0 && (e3.renderable = false, e3.isMask = true), e3._maskRefCount++;
3637
3637
  }
3638
3638
  }, enumerable: false, configurable: true }), e2;
3639
- }(o.EventEmitter), C = function(t2) {
3639
+ }(o.EventEmitter), R = function(t2) {
3640
3640
  function e2() {
3641
3641
  var e3 = t2 !== null && t2.apply(this, arguments) || this;
3642
3642
  return e3.sortDirty = null, e3;
3643
3643
  }
3644
3644
  return l(e2, t2), e2;
3645
- }(R);
3645
+ }(C);
3646
3646
  function I(t2, e2) {
3647
3647
  return t2.zIndex === e2.zIndex ? t2._lastSortedIndex - e2._lastSortedIndex : t2.zIndex - e2.zIndex;
3648
3648
  }
3649
- R.prototype.displayObjectUpdateTransform = R.prototype.updateTransform, function(t2) {
3649
+ C.prototype.displayObjectUpdateTransform = C.prototype.updateTransform, function(t2) {
3650
3650
  t2[t2.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", t2[t2.WEBGL = 1] = "WEBGL", t2[t2.WEBGL2 = 2] = "WEBGL2";
3651
3651
  }(h || (h = {})), function(t2) {
3652
3652
  t2[t2.UNKNOWN = 0] = "UNKNOWN", t2[t2.WEBGL = 1] = "WEBGL", t2[t2.CANVAS = 2] = "CANVAS";
@@ -3849,7 +3849,7 @@ var Slide = function(t) {
3849
3849
  var e3 = this.getLocalBounds().height;
3850
3850
  this.scale.y = e3 !== 0 ? t3 / e3 : 1, this._height = t3;
3851
3851
  }, enumerable: false, configurable: true }), e2;
3852
- }(R);
3852
+ }(C);
3853
3853
  P.prototype.containerUpdateTransform = P.prototype.updateTransform;
3854
3854
  }, function(t, e, i) {
3855
3855
  var n = Object.prototype.hasOwnProperty, r = "~";
@@ -4338,8 +4338,8 @@ var Slide = function(t) {
4338
4338
  var g = 2 * a2.width, v = 2 * a2.height, _ = a2.x - g / 2, y = a2.y - v / 2, x = g / 2 * 0.5522848, b = v / 2 * 0.5522848, T = _ + g, E = y + v, S = _ + g / 2, w = y + v / 2;
4339
4339
  e2.moveTo(_, w), e2.bezierCurveTo(_, w - b, S - x, y, S, y), e2.bezierCurveTo(S + x, y, T, w - b, T, w), e2.bezierCurveTo(T, w + b, S + x, E, S, E), e2.bezierCurveTo(S - x, E, _, w + b, _, w), e2.closePath();
4340
4340
  } else if (a2.type === o.l.RREC) {
4341
- var A = a2.x, M = a2.y, R = a2.width, C = a2.height, I = a2.radius, P = Math.min(R, C) / 2;
4342
- I = I > P ? P : I, e2.moveTo(A, M + I), e2.lineTo(A, M + C - I), e2.quadraticCurveTo(A, M + C, A + I, M + C), e2.lineTo(A + R - I, M + C), e2.quadraticCurveTo(A + R, M + C, A + R, M + C - I), e2.lineTo(A + R, M + I), e2.quadraticCurveTo(A + R, M, A + R - I, M), e2.lineTo(A + I, M), e2.quadraticCurveTo(A, M, A, M + I), e2.closePath();
4341
+ var A = a2.x, M = a2.y, C = a2.width, R = a2.height, I = a2.radius, P = Math.min(C, R) / 2;
4342
+ I = I > P ? P : I, e2.moveTo(A, M + I), e2.lineTo(A, M + R - I), e2.quadraticCurveTo(A, M + R, A + I, M + R), e2.lineTo(A + C - I, M + R), e2.quadraticCurveTo(A + C, M + R, A + C, M + R - I), e2.lineTo(A + C, M + I), e2.quadraticCurveTo(A + C, M, A + C - I, M), e2.lineTo(A + I, M), e2.quadraticCurveTo(A, M, A, M + I), e2.closePath();
4343
4343
  }
4344
4344
  }
4345
4345
  }, t2.prototype.popMask = function(t3) {
@@ -5498,7 +5498,7 @@ var Slide = function(t) {
5498
5498
  } else
5499
5499
  n2 = s.reject("Invalid arguments");
5500
5500
  return a(n2, e4), n2;
5501
- } }, M = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", R = /^~~local_forage_type~([^~]+)~/, C = "__lfsc__:".length, I = C + "arbf".length, P = Object.prototype.toString;
5501
+ } }, M = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", C = /^~~local_forage_type~([^~]+)~/, R = "__lfsc__:".length, I = R + "arbf".length, P = Object.prototype.toString;
5502
5502
  function O(t3) {
5503
5503
  var e4, i3, n2, r2, o2, s2 = 0.75 * t3.length, a2 = t3.length, l2 = 0;
5504
5504
  t3[t3.length - 1] === "=" && (s2--, t3[t3.length - 2] === "=" && s2--);
@@ -5531,11 +5531,11 @@ var Slide = function(t) {
5531
5531
  console.error("Couldn't convert value into a JSON string: ", t3), e4(null, i4);
5532
5532
  }
5533
5533
  }, deserialize: function(t3) {
5534
- if (t3.substring(0, C) !== "__lfsc__:")
5534
+ if (t3.substring(0, R) !== "__lfsc__:")
5535
5535
  return JSON.parse(t3);
5536
- var e4, i3 = t3.substring(I), n2 = t3.substring(C, I);
5537
- if (n2 === "blob" && R.test(i3)) {
5538
- var r2 = i3.match(R);
5536
+ var e4, i3 = t3.substring(I), n2 = t3.substring(R, I);
5537
+ if (n2 === "blob" && C.test(i3)) {
5538
+ var r2 = i3.match(C);
5539
5539
  e4 = r2[1], i3 = i3.substring(r2[0].length);
5540
5540
  }
5541
5541
  var s2 = O(i3);
@@ -6401,7 +6401,7 @@ var Slide = function(t) {
6401
6401
  function S() {
6402
6402
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
6403
6403
  }
6404
- var w = /^([a-z0-9.+-]+:)/i, A = /:[0-9]*$/, M = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, R = ["{", "}", "|", "\\", "^", "`"].concat(["<", ">", '"', "`", " ", "\r", "\n", " "]), C = ["'"].concat(R), I = ["%", "/", "?", ";", "#"].concat(C), P = ["/", "?", "#"], O = /^[+a-z0-9A-Z_-]{0,63}$/, N = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, L = { javascript: true, "javascript:": true }, D = { javascript: true, "javascript:": true }, F = { http: true, https: true, ftp: true, gopher: true, file: true, "http:": true, "https:": true, "ftp:": true, "gopher:": true, "file:": true };
6404
+ var w = /^([a-z0-9.+-]+:)/i, A = /:[0-9]*$/, M = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, C = ["{", "}", "|", "\\", "^", "`"].concat(["<", ">", '"', "`", " ", "\r", "\n", " "]), R = ["'"].concat(C), I = ["%", "/", "?", ";", "#"].concat(R), P = ["/", "?", "#"], O = /^[+a-z0-9A-Z_-]{0,63}$/, N = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, L = { javascript: true, "javascript:": true }, D = { javascript: true, "javascript:": true }, F = { http: true, https: true, ftp: true, gopher: true, file: true, "http:": true, "https:": true, "ftp:": true, "gopher:": true, "file:": true };
6405
6405
  function B(t3, e2, i2) {
6406
6406
  if (t3 && p(t3) && t3 instanceof S)
6407
6407
  return t3;
@@ -6446,8 +6446,8 @@ var Slide = function(t) {
6446
6446
  for (var E2 = "", S2 = 0, A2 = T2.length; S2 < A2; S2++)
6447
6447
  T2.charCodeAt(S2) > 127 ? E2 += "x" : E2 += T2[S2];
6448
6448
  if (!E2.match(O)) {
6449
- var R2 = y2.slice(0, g2), B2 = y2.slice(g2 + 1), U2 = T2.match(N);
6450
- U2 && (R2.push(U2[1]), B2.unshift(U2[2])), B2.length && (s2 = "/" + B2.join(".") + s2), this.hostname = R2.join(".");
6449
+ var C2 = y2.slice(0, g2), B2 = y2.slice(g2 + 1), U2 = T2.match(N);
6450
+ U2 && (C2.push(U2[1]), B2.unshift(U2[2])), B2.length && (s2 = "/" + B2.join(".") + s2), this.hostname = C2.join(".");
6451
6451
  break;
6452
6452
  }
6453
6453
  }
@@ -6457,8 +6457,8 @@ var Slide = function(t) {
6457
6457
  this.host = G2 + k2, this.href += this.host, _2 && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), s2[0] !== "/" && (s2 = "/" + s2));
6458
6458
  }
6459
6459
  if (!L[h2])
6460
- for (g2 = 0, b2 = C.length; g2 < b2; g2++) {
6461
- var H2 = C[g2];
6460
+ for (g2 = 0, b2 = R.length; g2 < b2; g2++) {
6461
+ var H2 = R[g2];
6462
6462
  if (s2.indexOf(H2) !== -1) {
6463
6463
  var j2 = encodeURIComponent(H2);
6464
6464
  j2 === H2 && (j2 = escape(H2)), s2 = s2.split(H2).join(j2);
@@ -6530,19 +6530,19 @@ var Slide = function(t) {
6530
6530
  T2 || (T2 = []), T2.pop(), T2 = T2.concat(p2), i2.search = t3.search, i2.query = t3.query;
6531
6531
  else if (!m(t3.search)) {
6532
6532
  if (E2)
6533
- i2.hostname = i2.host = T2.shift(), (C2 = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = C2.shift(), i2.host = i2.hostname = C2.shift());
6533
+ i2.hostname = i2.host = T2.shift(), (R2 = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = R2.shift(), i2.host = i2.hostname = R2.shift());
6534
6534
  return i2.search = t3.search, i2.query = t3.query, f(i2.pathname) && f(i2.search) || (i2.path = (i2.pathname ? i2.pathname : "") + (i2.search ? i2.search : "")), i2.href = i2.format(), i2;
6535
6535
  }
6536
6536
  if (!T2.length)
6537
6537
  return i2.pathname = null, i2.search ? i2.path = "/" + i2.search : i2.path = null, i2.href = i2.format(), i2;
6538
- for (var w2 = T2.slice(-1)[0], A2 = (i2.host || t3.host || T2.length > 1) && (w2 === "." || w2 === "..") || w2 === "", M2 = 0, R2 = T2.length; R2 >= 0; R2--)
6539
- (w2 = T2[R2]) === "." ? T2.splice(R2, 1) : w2 === ".." ? (T2.splice(R2, 1), M2++) : M2 && (T2.splice(R2, 1), M2--);
6538
+ for (var w2 = T2.slice(-1)[0], A2 = (i2.host || t3.host || T2.length > 1) && (w2 === "." || w2 === "..") || w2 === "", M2 = 0, C2 = T2.length; C2 >= 0; C2--)
6539
+ (w2 = T2[C2]) === "." ? T2.splice(C2, 1) : w2 === ".." ? (T2.splice(C2, 1), M2++) : M2 && (T2.splice(C2, 1), M2--);
6540
6540
  if (!x2 && !b2)
6541
6541
  for (; M2--; M2)
6542
6542
  T2.unshift("..");
6543
6543
  !x2 || T2[0] === "" || T2[0] && T2[0].charAt(0) === "/" || T2.unshift(""), A2 && T2.join("/").substr(-1) !== "/" && T2.push("");
6544
- var C2, I2 = T2[0] === "" || T2[0] && T2[0].charAt(0) === "/";
6545
- E2 && (i2.hostname = i2.host = I2 ? "" : T2.length ? T2.shift() : "", (C2 = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = C2.shift(), i2.host = i2.hostname = C2.shift()));
6544
+ var R2, I2 = T2[0] === "" || T2[0] && T2[0].charAt(0) === "/";
6545
+ E2 && (i2.hostname = i2.host = I2 ? "" : T2.length ? T2.shift() : "", (R2 = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = R2.shift(), i2.host = i2.hostname = R2.shift()));
6546
6546
  return (x2 = x2 || i2.host && T2.length) && !I2 && T2.unshift(""), T2.length ? i2.pathname = T2.join("/") : (i2.pathname = null, i2.path = null), f(i2.pathname) && f(i2.search) || (i2.path = (i2.pathname ? i2.pathname : "") + (i2.search ? i2.search : "")), i2.auth = t3.auth || i2.auth, i2.slashes = i2.slashes || t3.slashes, i2.href = i2.format(), i2;
6547
6547
  }, S.prototype.parseHost = function() {
6548
6548
  var t3 = this.host, e2 = A.exec(t3);
@@ -7117,7 +7117,7 @@ var Slide = function(t) {
7117
7117
  }, e2.test = function(t4) {
7118
7118
  return t4 instanceof Float32Array || t4 instanceof Uint8Array || t4 instanceof Uint32Array;
7119
7119
  }, e2;
7120
- }(At), Rt = { scaleMode: r.p.NEAREST, format: r.h.RGBA, alphaMode: r.a.NPM }, Ct = function(t3) {
7120
+ }(At), Ct = { scaleMode: r.p.NEAREST, format: r.h.RGBA, alphaMode: r.a.NPM }, Rt = function(t3) {
7121
7121
  function e2(e3, i2) {
7122
7122
  e3 === void 0 && (e3 = null), i2 === void 0 && (i2 = null);
7123
7123
  var o2 = t3.call(this) || this, s2 = (i2 = i2 || {}).alphaMode, a2 = i2.mipmap, l2 = i2.anisotropicLevel, h2 = i2.scaleMode, u2 = i2.width, c2 = i2.height, d2 = i2.wrapMode, p2 = i2.format, f2 = i2.type, m2 = i2.target, g2 = i2.resolution, v2 = i2.resourceOptions;
@@ -7186,7 +7186,7 @@ var Slide = function(t) {
7186
7186
  }, e2.fromBuffer = function(t4, i2, n2, o2) {
7187
7187
  t4 = t4 || new Float32Array(i2 * n2 * 4);
7188
7188
  var s2 = new Mt(t4, { width: i2, height: n2 }), a2 = t4 instanceof Float32Array ? r.r.FLOAT : r.r.UNSIGNED_BYTE;
7189
- return new e2(s2, Object.assign(Rt, o2 || { width: i2, height: n2, type: a2 }));
7189
+ return new e2(s2, Object.assign(Ct, o2 || { width: i2, height: n2, type: a2 }));
7190
7190
  }, e2.addToCache = function(t4, e3) {
7191
7191
  e3 && (t4.textureCacheIds.indexOf(e3) === -1 && t4.textureCacheIds.push(e3), $[e3] && console.warn("BaseTexture added to the cache with an id [" + e3 + "] that already had an entry"), $[e3] = t4);
7192
7192
  }, e2.removeFromCache = function(t4) {
@@ -7208,7 +7208,7 @@ var Slide = function(t) {
7208
7208
  var n2 = this, r2 = i2 || {}, o2 = r2.width, s2 = r2.height;
7209
7209
  (n2 = t3.call(this, o2, s2) || this).items = [], n2.itemDirtyIds = [];
7210
7210
  for (var a2 = 0; a2 < e3; a2++) {
7211
- var l2 = new Ct();
7211
+ var l2 = new Rt();
7212
7212
  n2.items.push(l2), n2.itemDirtyIds.push(-2);
7213
7213
  }
7214
7214
  return n2.length = e3, n2._load = null, n2.baseTexture = null, n2;
@@ -7516,9 +7516,9 @@ var Slide = function(t) {
7516
7516
  return Object.defineProperty(t3.prototype, "colorTexture", { get: function() {
7517
7517
  return this.colorTextures[0];
7518
7518
  }, enumerable: false, configurable: true }), t3.prototype.addColorTexture = function(t4, e2) {
7519
- return t4 === void 0 && (t4 = 0), this.colorTextures[t4] = e2 || new Ct(null, { scaleMode: r.p.NEAREST, resolution: 1, mipmap: r.k.OFF, width: this.width, height: this.height }), this.dirtyId++, this.dirtyFormat++, this;
7519
+ return t4 === void 0 && (t4 = 0), this.colorTextures[t4] = e2 || new Rt(null, { scaleMode: r.p.NEAREST, resolution: 1, mipmap: r.k.OFF, width: this.width, height: this.height }), this.dirtyId++, this.dirtyFormat++, this;
7520
7520
  }, t3.prototype.addDepthTexture = function(t4) {
7521
- return this.depthTexture = t4 || new Ct(new Gt(null, { width: this.width, height: this.height }), { scaleMode: r.p.NEAREST, resolution: 1, width: this.width, height: this.height, mipmap: r.k.OFF, format: r.h.DEPTH_COMPONENT, type: r.r.UNSIGNED_SHORT }), this.dirtyId++, this.dirtyFormat++, this;
7521
+ return this.depthTexture = t4 || new Rt(new Gt(null, { width: this.width, height: this.height }), { scaleMode: r.p.NEAREST, resolution: 1, width: this.width, height: this.height, mipmap: r.k.OFF, format: r.h.DEPTH_COMPONENT, type: r.r.UNSIGNED_SHORT }), this.dirtyId++, this.dirtyFormat++, this;
7522
7522
  }, t3.prototype.enableDepth = function() {
7523
7523
  return this.depth = true, this.dirtyId++, this.dirtyFormat++, this;
7524
7524
  }, t3.prototype.enableStencil = function() {
@@ -7557,7 +7557,7 @@ var Slide = function(t) {
7557
7557
  }, e2.prototype.destroy = function() {
7558
7558
  t3.prototype.destroy.call(this), this.framebuffer.destroyDepthTexture(), this.framebuffer = null;
7559
7559
  }, e2;
7560
- }(Ct), zt = function() {
7560
+ }(Rt), zt = function() {
7561
7561
  function t3() {
7562
7562
  this.x0 = 0, this.y0 = 0, this.x1 = 1, this.y1 = 0, this.x2 = 1, this.y2 = 1, this.x3 = 0, this.y3 = 1, this.uvsFloat32 = new Float32Array(8);
7563
7563
  }
@@ -7618,10 +7618,10 @@ var Slide = function(t) {
7618
7618
  var o2 = typeof t4 == "string", s2 = null;
7619
7619
  if (o2)
7620
7620
  s2 = t4;
7621
- else if (t4 instanceof Ct) {
7621
+ else if (t4 instanceof Rt) {
7622
7622
  if (!t4.cacheId) {
7623
7623
  var a2 = i2 && i2.pixiIdPrefix || "pixiid";
7624
- t4.cacheId = a2 + "-" + Y(), Ct.addToCache(t4, t4.cacheId);
7624
+ t4.cacheId = a2 + "-" + Y(), Rt.addToCache(t4, t4.cacheId);
7625
7625
  }
7626
7626
  s2 = t4.cacheId;
7627
7627
  } else {
@@ -7634,19 +7634,19 @@ var Slide = function(t) {
7634
7634
  var l2 = Q[s2];
7635
7635
  if (o2 && r2 && !l2)
7636
7636
  throw new Error('The cacheId "' + s2 + '" does not exist in TextureCache.');
7637
- return l2 || t4 instanceof Ct ? !l2 && t4 instanceof Ct && (l2 = new e2(t4), e2.addToCache(l2, s2)) : (i2.resolution || (i2.resolution = et(t4)), (l2 = new e2(new Ct(t4, i2))).baseTexture.cacheId = s2, Ct.addToCache(l2.baseTexture, s2), e2.addToCache(l2, s2)), l2;
7637
+ return l2 || t4 instanceof Rt ? !l2 && t4 instanceof Rt && (l2 = new e2(t4), e2.addToCache(l2, s2)) : (i2.resolution || (i2.resolution = et(t4)), (l2 = new e2(new Rt(t4, i2))).baseTexture.cacheId = s2, Rt.addToCache(l2.baseTexture, s2), e2.addToCache(l2, s2)), l2;
7638
7638
  }, e2.fromURL = function(t4, i2) {
7639
7639
  var n2 = Object.assign({ autoLoad: false }, i2 == null ? void 0 : i2.resourceOptions), r2 = e2.from(t4, Object.assign({ resourceOptions: n2 }, i2), false), o2 = r2.baseTexture.resource;
7640
7640
  return r2.baseTexture.valid ? Promise.resolve(r2) : o2.load().then(function() {
7641
7641
  return Promise.resolve(r2);
7642
7642
  });
7643
7643
  }, e2.fromBuffer = function(t4, i2, n2, r2) {
7644
- return new e2(Ct.fromBuffer(t4, i2, n2, r2));
7644
+ return new e2(Rt.fromBuffer(t4, i2, n2, r2));
7645
7645
  }, e2.fromLoader = function(t4, i2, r2, o2) {
7646
- var s2 = new Ct(t4, Object.assign({ scaleMode: n.b.SCALE_MODE, resolution: et(i2) }, o2)), a2 = s2.resource;
7646
+ var s2 = new Rt(t4, Object.assign({ scaleMode: n.b.SCALE_MODE, resolution: et(i2) }, o2)), a2 = s2.resource;
7647
7647
  a2 instanceof Dt && (a2.url = i2);
7648
7648
  var l2 = new e2(s2);
7649
- return r2 || (r2 = i2), Ct.addToCache(l2.baseTexture, r2), e2.addToCache(l2, r2), r2 !== i2 && (Ct.addToCache(l2.baseTexture, i2), e2.addToCache(l2, i2)), l2.baseTexture.valid ? Promise.resolve(l2) : new Promise(function(t5) {
7649
+ return r2 || (r2 = i2), Rt.addToCache(l2.baseTexture, r2), e2.addToCache(l2, r2), r2 !== i2 && (Rt.addToCache(l2.baseTexture, i2), e2.addToCache(l2, i2)), l2.baseTexture.valid ? Promise.resolve(l2) : new Promise(function(t5) {
7650
7650
  l2.baseTexture.once("loaded", function() {
7651
7651
  return t5(l2);
7652
7652
  });
@@ -7689,11 +7689,11 @@ var Slide = function(t) {
7689
7689
  }, enumerable: false, configurable: true }), e2.prototype.castToBaseTexture = function() {
7690
7690
  return this.baseTexture;
7691
7691
  }, Object.defineProperty(e2, "EMPTY", { get: function() {
7692
- return e2._EMPTY || (e2._EMPTY = new e2(new Ct()), Xt(e2._EMPTY), Xt(e2._EMPTY.baseTexture)), e2._EMPTY;
7692
+ return e2._EMPTY || (e2._EMPTY = new e2(new Rt()), Xt(e2._EMPTY), Xt(e2._EMPTY.baseTexture)), e2._EMPTY;
7693
7693
  }, enumerable: false, configurable: true }), Object.defineProperty(e2, "WHITE", { get: function() {
7694
7694
  if (!e2._WHITE) {
7695
7695
  var t4 = document.createElement("canvas"), i2 = t4.getContext("2d");
7696
- t4.width = 16, t4.height = 16, i2.fillStyle = "white", i2.fillRect(0, 0, 16, 16), e2._WHITE = new e2(new Ct(new Nt(t4))), Xt(e2._WHITE), Xt(e2._WHITE.baseTexture);
7696
+ t4.width = 16, t4.height = 16, i2.fillStyle = "white", i2.fillRect(0, 0, 16, 16), e2._WHITE = new e2(new Rt(new Nt(t4))), Xt(e2._WHITE), Xt(e2._WHITE.baseTexture);
7697
7697
  }
7698
7698
  return e2._WHITE;
7699
7699
  }, enumerable: false, configurable: true }), e2;
@@ -8439,7 +8439,7 @@ var Slide = function(t) {
8439
8439
  return null;
8440
8440
  }
8441
8441
  var we, Ae = {}, Me = Ae;
8442
- function Re() {
8442
+ function Ce() {
8443
8443
  if (!we) {
8444
8444
  we = r.m.MEDIUM;
8445
8445
  var t3 = function() {
@@ -8456,7 +8456,7 @@ var Slide = function(t) {
8456
8456
  }
8457
8457
  return we;
8458
8458
  }
8459
- function Ce(t3, e2, i2) {
8459
+ function Re(t3, e2, i2) {
8460
8460
  if (t3.substring(0, 9) !== "precision") {
8461
8461
  var n2 = e2;
8462
8462
  return e2 === r.m.HIGH && i2 !== r.m.HIGH && (n2 = r.m.MEDIUM), "precision " + n2 + " float;\n" + t3;
@@ -8522,7 +8522,7 @@ var Slide = function(t) {
8522
8522
  }
8523
8523
  var He = 0, je = {}, ze = function() {
8524
8524
  function t3(e2, i2, o2) {
8525
- o2 === void 0 && (o2 = "pixi-shader"), this.id = He++, this.vertexSrc = e2 || t3.defaultVertexSrc, this.fragmentSrc = i2 || t3.defaultFragmentSrc, this.vertexSrc = this.vertexSrc.trim(), this.fragmentSrc = this.fragmentSrc.trim(), this.vertexSrc.substring(0, 8) !== "#version" && (o2 = o2.replace(/\s+/g, "-"), je[o2] ? (je[o2]++, o2 += "-" + je[o2]) : je[o2] = 1, this.vertexSrc = "#define SHADER_NAME " + o2 + "\n" + this.vertexSrc, this.fragmentSrc = "#define SHADER_NAME " + o2 + "\n" + this.fragmentSrc, this.vertexSrc = Ce(this.vertexSrc, n.b.PRECISION_VERTEX, r.m.HIGH), this.fragmentSrc = Ce(this.fragmentSrc, n.b.PRECISION_FRAGMENT, Re())), this.glPrograms = {}, this.syncUniforms = null;
8525
+ o2 === void 0 && (o2 = "pixi-shader"), this.id = He++, this.vertexSrc = e2 || t3.defaultVertexSrc, this.fragmentSrc = i2 || t3.defaultFragmentSrc, this.vertexSrc = this.vertexSrc.trim(), this.fragmentSrc = this.fragmentSrc.trim(), this.vertexSrc.substring(0, 8) !== "#version" && (o2 = o2.replace(/\s+/g, "-"), je[o2] ? (je[o2]++, o2 += "-" + je[o2]) : je[o2] = 1, this.vertexSrc = "#define SHADER_NAME " + o2 + "\n" + this.vertexSrc, this.fragmentSrc = "#define SHADER_NAME " + o2 + "\n" + this.fragmentSrc, this.vertexSrc = Re(this.vertexSrc, n.b.PRECISION_VERTEX, r.m.HIGH), this.fragmentSrc = Re(this.fragmentSrc, n.b.PRECISION_FRAGMENT, Ce())), this.glPrograms = {}, this.syncUniforms = null;
8526
8526
  }
8527
8527
  return Object.defineProperty(t3, "defaultVertexSrc", { get: function() {
8528
8528
  return "attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}\n";
@@ -9098,7 +9098,7 @@ var Slide = function(t) {
9098
9098
  this.texture = t3, this.width = -1, this.height = -1, this.dirtyId = -1, this.dirtyStyleId = -1, this.mipmap = false, this.wrapMode = 33071, this.type = r.r.UNSIGNED_BYTE, this.internalFormat = r.h.RGBA, this.samplerType = 0;
9099
9099
  }, vi = function() {
9100
9100
  function t3(t4) {
9101
- this.renderer = t4, this.boundTextures = [], this.currentLocation = -1, this.managedTextures = [], this._unknownBoundTextures = false, this.unknownTexture = new Ct(), this.hasIntegerTextures = false;
9101
+ this.renderer = t4, this.boundTextures = [], this.currentLocation = -1, this.managedTextures = [], this._unknownBoundTextures = false, this.unknownTexture = new Rt(), this.hasIntegerTextures = false;
9102
9102
  }
9103
9103
  return t3.prototype.contextChange = function() {
9104
9104
  var t4 = this.gl = this.renderer.gl;
@@ -9452,7 +9452,7 @@ var Slide = function(t) {
9452
9452
  }, e2.prototype.render = function(t4) {
9453
9453
  t4._texture.valid && (this._vertexCount + t4.vertexData.length / 2 > this.size && this.flush(), this._vertexCount += t4.vertexData.length / 2, this._indexCount += t4.indices.length, this._bufferedTextures[this._bufferSize] = t4._texture.baseTexture, this._bufferedElements[this._bufferSize++] = t4);
9454
9454
  }, e2.prototype.buildTexturesAndDrawCalls = function() {
9455
- var t4 = this._bufferedTextures, i2 = this.MAX_TEXTURES, n2 = e2._textureArrayPool, r2 = this.renderer.batch, o2 = this._tempBoundTextures, s2 = this.renderer.textureGC.count, a2 = ++Ct._globalBatch, l2 = 0, h2 = n2[0], u2 = 0;
9455
+ var t4 = this._bufferedTextures, i2 = this.MAX_TEXTURES, n2 = e2._textureArrayPool, r2 = this.renderer.batch, o2 = this._tempBoundTextures, s2 = this.renderer.textureGC.count, a2 = ++Rt._globalBatch, l2 = 0, h2 = n2[0], u2 = 0;
9456
9456
  r2.copyBoundTextures(o2, i2);
9457
9457
  for (var c2 = 0; c2 < this._bufferSize; ++c2) {
9458
9458
  var d2 = t4[c2];
@@ -9461,7 +9461,7 @@ var Slide = function(t) {
9461
9461
  h2.count > 0 && (r2.boundArray(h2, o2, a2, i2), this.buildDrawCalls(h2, u2, this._bufferSize), ++l2, ++a2);
9462
9462
  for (c2 = 0; c2 < o2.length; c2++)
9463
9463
  o2[c2] = null;
9464
- Ct._globalBatch = a2;
9464
+ Rt._globalBatch = a2;
9465
9465
  }, e2.prototype.buildDrawCalls = function(t4, i2, n2) {
9466
9466
  var r2 = this._bufferedElements, o2 = this._attributeBuffer, s2 = this._indexBuffer, a2 = this.vertexSize, l2 = e2._drawCallPool, h2 = this._dcIndex, u2 = this._aIndex, c2 = this._iIndex, d2 = l2[h2];
9467
9467
  d2.start = this._iIndex, d2.texArray = t4;
@@ -9539,19 +9539,19 @@ var Slide = function(t) {
9539
9539
  i2 > 0 && (e2 += "\nelse "), i2 < t4 - 1 && (e2 += "if(vTextureId < " + i2 + ".5)"), e2 += "\n{", e2 += "\n color = texture2D(uSamplers[" + i2 + "], vTextureCoord);", e2 += "\n}";
9540
9540
  return e2 += "\n", e2 += "\n";
9541
9541
  }, t3;
9542
- }(), Ri = function(t3) {
9542
+ }(), Ci = function(t3) {
9543
9543
  function e2(e3) {
9544
9544
  e3 === void 0 && (e3 = false);
9545
9545
  var i2 = t3.call(this) || this;
9546
9546
  return i2._buffer = new Kt(null, e3, false), i2._indexBuffer = new Kt(null, e3, true), i2.addAttribute("aVertexPosition", i2._buffer, 2, false, r.r.FLOAT).addAttribute("aTextureCoord", i2._buffer, 2, false, r.r.FLOAT).addAttribute("aColor", i2._buffer, 4, true, r.r.UNSIGNED_BYTE).addAttribute("aTextureId", i2._buffer, 1, true, r.r.FLOAT).addIndex(i2._indexBuffer), i2;
9547
9547
  }
9548
9548
  return St(e2, t3), e2;
9549
- }(ie), Ci = "precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform vec4 tint;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor * tint;\n}\n", Ii = "varying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\n vec4 color;\n %forloop%\n gl_FragColor = color * vColor;\n}\n";
9549
+ }(ie), Ri = "precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform vec4 tint;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor * tint;\n}\n", Ii = "varying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\n vec4 color;\n %forloop%\n gl_FragColor = color * vColor;\n}\n";
9550
9550
  (function() {
9551
9551
  function t3() {
9552
9552
  }
9553
9553
  return t3.create = function(t4) {
9554
- var e2 = Object.assign({ vertex: Ci, fragment: Ii, geometryClass: Ri, vertexSize: 6 }, t4), i2 = e2.vertex, n2 = e2.fragment, r2 = e2.vertexSize, o2 = e2.geometryClass;
9554
+ var e2 = Object.assign({ vertex: Ri, fragment: Ii, geometryClass: Ci, vertexSize: 6 }, t4), i2 = e2.vertex, n2 = e2.fragment, r2 = e2.vertexSize, o2 = e2.geometryClass;
9555
9555
  return function(t5) {
9556
9556
  function e3(e4) {
9557
9557
  var s2 = t5.call(this, e4) || this;
@@ -9560,7 +9560,7 @@ var Slide = function(t) {
9560
9560
  return St(e3, t5), e3;
9561
9561
  }(Ai);
9562
9562
  }, Object.defineProperty(t3, "defaultVertexSrc", { get: function() {
9563
- return Ci;
9563
+ return Ri;
9564
9564
  }, enumerable: false, configurable: true }), Object.defineProperty(t3, "defaultFragmentTemplate", { get: function() {
9565
9565
  return Ii;
9566
9566
  }, enumerable: false, configurable: true }), t3;
@@ -9589,8 +9589,8 @@ var Slide = function(t) {
9589
9589
  h2 && t4._cachedTint !== t4.tint && (t4._cachedTint = t4.tint, t4._cachedTexture = t4._cachedTexture || new Wt(u2), t4._tintedCanvas = o.b.getTintedCanvas({ texture: t4._cachedTexture }, t4.tint));
9590
9590
  var p2 = h2 ? t4._tintedCanvas : u2.getDrawableSource(), f2 = a2[e2] * u2.width, m2 = a2[i2] * u2.width, g2 = a2[n2] * u2.width, v2 = a2[e2 + 1] * u2.height, _2 = a2[i2 + 1] * u2.height, y2 = a2[n2 + 1] * u2.height, x2 = s2[e2], b2 = s2[i2], T2 = s2[n2], E2 = s2[e2 + 1], S2 = s2[i2 + 1], w2 = s2[n2 + 1], A2 = t4.canvasPadding / this.renderer.resolution;
9591
9591
  if (A2 > 0) {
9592
- var M2 = t4.worldTransform, R2 = M2.a, C2 = M2.b, I2 = M2.c, P2 = M2.d, O2 = (x2 + b2 + T2) / 3, N2 = (E2 + S2 + w2) / 3, L2 = x2 - O2, D2 = E2 - N2, F2 = R2 * L2 + I2 * D2, B2 = C2 * L2 + P2 * D2, U2 = Math.sqrt(F2 * F2 + B2 * B2), k2 = 1 + A2 / U2;
9593
- x2 = O2 + L2 * k2, E2 = N2 + D2 * k2, F2 = R2 * (L2 = b2 - O2) + I2 * (D2 = S2 - N2), B2 = C2 * L2 + P2 * D2, b2 = O2 + L2 * (k2 = 1 + A2 / (U2 = Math.sqrt(F2 * F2 + B2 * B2))), S2 = N2 + D2 * k2, F2 = R2 * (L2 = T2 - O2) + I2 * (D2 = w2 - N2), B2 = C2 * L2 + P2 * D2, T2 = O2 + L2 * (k2 = 1 + A2 / (U2 = Math.sqrt(F2 * F2 + B2 * B2))), w2 = N2 + D2 * k2;
9592
+ var M2 = t4.worldTransform, C2 = M2.a, R2 = M2.b, I2 = M2.c, P2 = M2.d, O2 = (x2 + b2 + T2) / 3, N2 = (E2 + S2 + w2) / 3, L2 = x2 - O2, D2 = E2 - N2, F2 = C2 * L2 + I2 * D2, B2 = R2 * L2 + P2 * D2, U2 = Math.sqrt(F2 * F2 + B2 * B2), k2 = 1 + A2 / U2;
9593
+ x2 = O2 + L2 * k2, E2 = N2 + D2 * k2, F2 = C2 * (L2 = b2 - O2) + I2 * (D2 = S2 - N2), B2 = R2 * L2 + P2 * D2, b2 = O2 + L2 * (k2 = 1 + A2 / (U2 = Math.sqrt(F2 * F2 + B2 * B2))), S2 = N2 + D2 * k2, F2 = C2 * (L2 = T2 - O2) + I2 * (D2 = w2 - N2), B2 = R2 * L2 + P2 * D2, T2 = O2 + L2 * (k2 = 1 + A2 / (U2 = Math.sqrt(F2 * F2 + B2 * B2))), w2 = N2 + D2 * k2;
9594
9594
  }
9595
9595
  r2.save(), r2.beginPath(), r2.moveTo(x2, E2), r2.lineTo(b2, S2), r2.lineTo(T2, w2), r2.closePath(), r2.clip();
9596
9596
  var G2 = f2 * _2 + v2 * g2 + m2 * y2 - _2 * g2 - v2 * m2 - f2 * y2, H2 = x2 * _2 + v2 * T2 + b2 * y2 - _2 * T2 - v2 * b2 - x2 * y2, j2 = f2 * b2 + x2 * g2 + m2 * T2 - b2 * g2 - x2 * m2 - f2 * T2, z2 = f2 * _2 * T2 + v2 * b2 * g2 + x2 * m2 * y2 - x2 * _2 * g2 - v2 * m2 * T2 - f2 * b2 * y2, V2 = E2 * _2 + v2 * w2 + S2 * y2 - _2 * w2 - v2 * S2 - E2 * y2, X2 = f2 * S2 + E2 * g2 + m2 * w2 - S2 * g2 - E2 * m2 - f2 * w2, W2 = f2 * _2 * w2 + v2 * S2 * g2 + E2 * m2 * y2 - E2 * _2 * g2 - v2 * m2 * w2 - f2 * S2 * y2;
@@ -9683,16 +9683,16 @@ var Slide = function(t) {
9683
9683
  }
9684
9684
  if (!g[b] && (E || b && !v[b])) {
9685
9685
  for (var S, w, A = -1, M = 0; M < d.length; M++) {
9686
- (R = y2.indexOf(d[M])) !== -1 && (A === -1 || R < A) && (A = R);
9686
+ (C = y2.indexOf(d[M])) !== -1 && (A === -1 || C < A) && (A = C);
9687
9687
  }
9688
9688
  (w = A === -1 ? y2.lastIndexOf("@") : y2.lastIndexOf("@", A)) !== -1 && (S = y2.slice(0, w), y2 = y2.slice(w + 1), this.auth = decodeURIComponent(S)), A = -1;
9689
9689
  for (M = 0; M < c.length; M++) {
9690
- var R;
9691
- (R = y2.indexOf(c[M])) !== -1 && (A === -1 || R < A) && (A = R);
9690
+ var C;
9691
+ (C = y2.indexOf(c[M])) !== -1 && (A === -1 || C < A) && (A = C);
9692
9692
  }
9693
9693
  A === -1 && (A = y2.length), this.host = y2.slice(0, A), y2 = y2.slice(A), this.parseHost(), this.hostname = this.hostname || "";
9694
- var C = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
9695
- if (!C)
9694
+ var R = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
9695
+ if (!R)
9696
9696
  for (var I = this.hostname.split(/\./), P = (M = 0, I.length); M < P; M++) {
9697
9697
  var O = I[M];
9698
9698
  if (O && !O.match(p)) {
@@ -9705,9 +9705,9 @@ var Slide = function(t) {
9705
9705
  }
9706
9706
  }
9707
9707
  }
9708
- this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), C || (this.hostname = n.toASCII(this.hostname));
9708
+ this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), R || (this.hostname = n.toASCII(this.hostname));
9709
9709
  var k = this.port ? ":" + this.port : "", G = this.hostname || "";
9710
- this.host = G + k, this.href += this.host, C && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), y2[0] !== "/" && (y2 = "/" + y2));
9710
+ this.host = G + k, this.href += this.host, R && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), y2[0] !== "/" && (y2 = "/" + y2));
9711
9711
  }
9712
9712
  if (!m[T])
9713
9713
  for (M = 0, P = u.length; M < P; M++) {
@@ -9783,19 +9783,19 @@ var Slide = function(t) {
9783
9783
  E || (E = []), E.pop(), E = E.concat(f2), i2.search = t2.search, i2.query = t2.query;
9784
9784
  else if (!r.isNullOrUndefined(t2.search)) {
9785
9785
  if (S)
9786
- i2.hostname = i2.host = E.shift(), (C = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = C.shift(), i2.host = i2.hostname = C.shift());
9786
+ i2.hostname = i2.host = E.shift(), (R = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = R.shift(), i2.host = i2.hostname = R.shift());
9787
9787
  return i2.search = t2.search, i2.query = t2.query, r.isNull(i2.pathname) && r.isNull(i2.search) || (i2.path = (i2.pathname ? i2.pathname : "") + (i2.search ? i2.search : "")), i2.href = i2.format(), i2;
9788
9788
  }
9789
9789
  if (!E.length)
9790
9790
  return i2.pathname = null, i2.search ? i2.path = "/" + i2.search : i2.path = null, i2.href = i2.format(), i2;
9791
- for (var w = E.slice(-1)[0], A = (i2.host || t2.host || E.length > 1) && (w === "." || w === "..") || w === "", M = 0, R = E.length; R >= 0; R--)
9792
- (w = E[R]) === "." ? E.splice(R, 1) : w === ".." ? (E.splice(R, 1), M++) : M && (E.splice(R, 1), M--);
9791
+ for (var w = E.slice(-1)[0], A = (i2.host || t2.host || E.length > 1) && (w === "." || w === "..") || w === "", M = 0, C = E.length; C >= 0; C--)
9792
+ (w = E[C]) === "." ? E.splice(C, 1) : w === ".." ? (E.splice(C, 1), M++) : M && (E.splice(C, 1), M--);
9793
9793
  if (!b && !T)
9794
9794
  for (; M--; M)
9795
9795
  E.unshift("..");
9796
9796
  !b || E[0] === "" || E[0] && E[0].charAt(0) === "/" || E.unshift(""), A && E.join("/").substr(-1) !== "/" && E.push("");
9797
- var C, I = E[0] === "" || E[0] && E[0].charAt(0) === "/";
9798
- S && (i2.hostname = i2.host = I ? "" : E.length ? E.shift() : "", (C = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = C.shift(), i2.host = i2.hostname = C.shift()));
9797
+ var R, I = E[0] === "" || E[0] && E[0].charAt(0) === "/";
9798
+ S && (i2.hostname = i2.host = I ? "" : E.length ? E.shift() : "", (R = !!(i2.host && i2.host.indexOf("@") > 0) && i2.host.split("@")) && (i2.auth = R.shift(), i2.host = i2.hostname = R.shift()));
9799
9799
  return (b = b || i2.host && E.length) && !I && E.unshift(""), E.length ? i2.pathname = E.join("/") : (i2.pathname = null, i2.path = null), r.isNull(i2.pathname) && r.isNull(i2.search) || (i2.path = (i2.pathname ? i2.pathname : "") + (i2.search ? i2.search : "")), i2.auth = t2.auth || i2.auth, i2.slashes = i2.slashes || t2.slashes, i2.href = i2.format(), i2;
9800
9800
  }, o.prototype.parseHost = function() {
9801
9801
  var t2 = this.host, e2 = a.exec(t2);
@@ -10066,7 +10066,7 @@ var Slide = function(t) {
10066
10066
  }
10067
10067
  function r(t2, e2, i2, n2, r2) {
10068
10068
  var o2, s2;
10069
- if (r2 === R(t2, e2, i2, n2) > 0)
10069
+ if (r2 === C(t2, e2, i2, n2) > 0)
10070
10070
  for (o2 = e2; o2 < i2; o2 += n2)
10071
10071
  s2 = w(o2, t2[o2], t2[o2 + 1], s2);
10072
10072
  else
@@ -10269,17 +10269,17 @@ var Slide = function(t) {
10269
10269
  function M(t2, e2, i2) {
10270
10270
  this.i = t2, this.x = e2, this.y = i2, this.prev = null, this.next = null, this.z = 0, this.prevZ = null, this.nextZ = null, this.steiner = false;
10271
10271
  }
10272
- function R(t2, e2, i2, n2) {
10272
+ function C(t2, e2, i2, n2) {
10273
10273
  for (var r2 = 0, o2 = e2, s2 = i2 - n2; o2 < i2; o2 += n2)
10274
10274
  r2 += (t2[s2] - t2[o2]) * (t2[o2 + 1] + t2[s2 + 1]), s2 = o2;
10275
10275
  return r2;
10276
10276
  }
10277
10277
  t.exports = n, t.exports.default = n, n.deviation = function(t2, e2, i2, n2) {
10278
- var r2 = e2 && e2.length, o2 = r2 ? e2[0] * i2 : t2.length, s2 = Math.abs(R(t2, 0, o2, i2));
10278
+ var r2 = e2 && e2.length, o2 = r2 ? e2[0] * i2 : t2.length, s2 = Math.abs(C(t2, 0, o2, i2));
10279
10279
  if (r2)
10280
10280
  for (var a2 = 0, l2 = e2.length; a2 < l2; a2++) {
10281
10281
  var h2 = e2[a2] * i2, u2 = a2 < l2 - 1 ? e2[a2 + 1] * i2 : t2.length;
10282
- s2 -= Math.abs(R(t2, h2, u2, i2));
10282
+ s2 -= Math.abs(C(t2, h2, u2, i2));
10283
10283
  }
10284
10284
  var c2 = 0;
10285
10285
  for (a2 = 0; a2 < n2.length; a2 += 3) {
@@ -12414,9 +12414,9 @@ var Slide = function(t) {
12414
12414
  };
12415
12415
  }, function(t, e, i) {
12416
12416
  var n = i(54), r = i(206), o = i(68), s = i(208), a = i(209), l = i(212), h = i(213), u = i(214), c = i(215), d = i(59), p = i(216), f = i(31), m = i(217), g = i(218), v = i(223), _ = i(30), y = i(40), x = i(225), b = i(21), T = i(227), E = i(39), S = i(44), w = {};
12417
- w["[object Arguments]"] = w["[object Array]"] = w["[object ArrayBuffer]"] = w["[object DataView]"] = w["[object Boolean]"] = w["[object Date]"] = w["[object Float32Array]"] = w["[object Float64Array]"] = w["[object Int8Array]"] = w["[object Int16Array]"] = w["[object Int32Array]"] = w["[object Map]"] = w["[object Number]"] = w["[object Object]"] = w["[object RegExp]"] = w["[object Set]"] = w["[object String]"] = w["[object Symbol]"] = w["[object Uint8Array]"] = w["[object Uint8ClampedArray]"] = w["[object Uint16Array]"] = w["[object Uint32Array]"] = true, w["[object Error]"] = w["[object Function]"] = w["[object WeakMap]"] = false, t.exports = function t2(e2, i2, A, M, R, C) {
12417
+ w["[object Arguments]"] = w["[object Array]"] = w["[object ArrayBuffer]"] = w["[object DataView]"] = w["[object Boolean]"] = w["[object Date]"] = w["[object Float32Array]"] = w["[object Float64Array]"] = w["[object Int8Array]"] = w["[object Int16Array]"] = w["[object Int32Array]"] = w["[object Map]"] = w["[object Number]"] = w["[object Object]"] = w["[object RegExp]"] = w["[object Set]"] = w["[object String]"] = w["[object Symbol]"] = w["[object Uint8Array]"] = w["[object Uint8ClampedArray]"] = w["[object Uint16Array]"] = w["[object Uint32Array]"] = true, w["[object Error]"] = w["[object Function]"] = w["[object WeakMap]"] = false, t.exports = function t2(e2, i2, A, M, C, R) {
12418
12418
  var I, P = 1 & i2, O = 2 & i2, N = 4 & i2;
12419
- if (A && (I = R ? A(e2, M, R, C) : A(e2)), I !== void 0)
12419
+ if (A && (I = C ? A(e2, M, C, R) : A(e2)), I !== void 0)
12420
12420
  return I;
12421
12421
  if (!b(e2))
12422
12422
  return e2;
@@ -12428,27 +12428,27 @@ var Slide = function(t) {
12428
12428
  var D = f(e2), F = D == "[object Function]" || D == "[object GeneratorFunction]";
12429
12429
  if (y(e2))
12430
12430
  return l(e2, P);
12431
- if (D == "[object Object]" || D == "[object Arguments]" || F && !R) {
12431
+ if (D == "[object Object]" || D == "[object Arguments]" || F && !C) {
12432
12432
  if (I = O || F ? {} : v(e2), !P)
12433
12433
  return O ? c(e2, a(I, e2)) : u(e2, s(I, e2));
12434
12434
  } else {
12435
12435
  if (!w[D])
12436
- return R ? e2 : {};
12436
+ return C ? e2 : {};
12437
12437
  I = g(e2, D, P);
12438
12438
  }
12439
12439
  }
12440
- C || (C = new n());
12441
- var B = C.get(e2);
12440
+ R || (R = new n());
12441
+ var B = R.get(e2);
12442
12442
  if (B)
12443
12443
  return B;
12444
- C.set(e2, I), T(e2) ? e2.forEach(function(n2) {
12445
- I.add(t2(n2, i2, A, n2, e2, C));
12444
+ R.set(e2, I), T(e2) ? e2.forEach(function(n2) {
12445
+ I.add(t2(n2, i2, A, n2, e2, R));
12446
12446
  }) : x(e2) && e2.forEach(function(n2, r2) {
12447
- I.set(r2, t2(n2, i2, A, r2, e2, C));
12447
+ I.set(r2, t2(n2, i2, A, r2, e2, R));
12448
12448
  });
12449
12449
  var U = L ? void 0 : (N ? O ? p : d : O ? S : E)(e2);
12450
12450
  return r(U || e2, function(n2, r2) {
12451
- U && (n2 = e2[r2 = n2]), o(I, r2, t2(n2, i2, A, r2, e2, C));
12451
+ U && (n2 = e2[r2 = n2]), o(I, r2, t2(n2, i2, A, r2, e2, R));
12452
12452
  }), I;
12453
12453
  };
12454
12454
  }, function(t, e) {
@@ -13614,10 +13614,10 @@ var Slide = function(t) {
13614
13614
  return this.x = t2.x * e2.x, this.y = t2.y * e2.y, this.z = t2.z * e2.z, this;
13615
13615
  }
13616
13616
  applyEuler(t2) {
13617
- return t2 && t2.isEuler || console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."), this.applyQuaternion(C.setFromEuler(t2));
13617
+ return t2 && t2.isEuler || console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."), this.applyQuaternion(R.setFromEuler(t2));
13618
13618
  }
13619
13619
  applyAxisAngle(t2, e2) {
13620
- return this.applyQuaternion(C.setFromAxisAngle(t2, e2));
13620
+ return this.applyQuaternion(R.setFromAxisAngle(t2, e2));
13621
13621
  }
13622
13622
  applyMatrix3(t2) {
13623
13623
  const e2 = this.x, i2 = this.y, n2 = this.z, r2 = t2.elements;
@@ -13720,10 +13720,10 @@ var Slide = function(t) {
13720
13720
  return this.copy(t2).multiplyScalar(i2);
13721
13721
  }
13722
13722
  projectOnPlane(t2) {
13723
- return R.copy(this).projectOnVector(t2), this.sub(R);
13723
+ return C.copy(this).projectOnVector(t2), this.sub(C);
13724
13724
  }
13725
13725
  reflect(t2) {
13726
- return this.sub(R.copy(t2).multiplyScalar(2 * this.dot(t2)));
13726
+ return this.sub(C.copy(t2).multiplyScalar(2 * this.dot(t2)));
13727
13727
  }
13728
13728
  angleTo(t2) {
13729
13729
  const e2 = Math.sqrt(this.lengthSq() * t2.lengthSq());
@@ -13786,7 +13786,7 @@ var Slide = function(t) {
13786
13786
  }
13787
13787
  }
13788
13788
  M.prototype.isVector3 = true;
13789
- const R = new M(), C = new A();
13789
+ const C = new M(), R = new A();
13790
13790
  class I {
13791
13791
  constructor(t2 = new M(1 / 0, 1 / 0, 1 / 0), e2 = new M(-1 / 0, -1 / 0, -1 / 0)) {
13792
13792
  this.min = t2, this.max = e2;
@@ -14190,8 +14190,8 @@ var Slide = function(t) {
14190
14190
  return this.multiplyMatrices(t2, this);
14191
14191
  }
14192
14192
  multiplyMatrices(t2, e2) {
14193
- const i2 = t2.elements, n2 = e2.elements, r2 = this.elements, o2 = i2[0], s2 = i2[4], a2 = i2[8], l2 = i2[12], h2 = i2[1], u2 = i2[5], c2 = i2[9], d2 = i2[13], p2 = i2[2], f2 = i2[6], m2 = i2[10], g2 = i2[14], v2 = i2[3], _2 = i2[7], y2 = i2[11], x2 = i2[15], b2 = n2[0], T2 = n2[4], E2 = n2[8], S2 = n2[12], w2 = n2[1], A2 = n2[5], M2 = n2[9], R2 = n2[13], C2 = n2[2], I2 = n2[6], P2 = n2[10], O2 = n2[14], N2 = n2[3], L2 = n2[7], D2 = n2[11], F2 = n2[15];
14194
- return r2[0] = o2 * b2 + s2 * w2 + a2 * C2 + l2 * N2, r2[4] = o2 * T2 + s2 * A2 + a2 * I2 + l2 * L2, r2[8] = o2 * E2 + s2 * M2 + a2 * P2 + l2 * D2, r2[12] = o2 * S2 + s2 * R2 + a2 * O2 + l2 * F2, r2[1] = h2 * b2 + u2 * w2 + c2 * C2 + d2 * N2, r2[5] = h2 * T2 + u2 * A2 + c2 * I2 + d2 * L2, r2[9] = h2 * E2 + u2 * M2 + c2 * P2 + d2 * D2, r2[13] = h2 * S2 + u2 * R2 + c2 * O2 + d2 * F2, r2[2] = p2 * b2 + f2 * w2 + m2 * C2 + g2 * N2, r2[6] = p2 * T2 + f2 * A2 + m2 * I2 + g2 * L2, r2[10] = p2 * E2 + f2 * M2 + m2 * P2 + g2 * D2, r2[14] = p2 * S2 + f2 * R2 + m2 * O2 + g2 * F2, r2[3] = v2 * b2 + _2 * w2 + y2 * C2 + x2 * N2, r2[7] = v2 * T2 + _2 * A2 + y2 * I2 + x2 * L2, r2[11] = v2 * E2 + _2 * M2 + y2 * P2 + x2 * D2, r2[15] = v2 * S2 + _2 * R2 + y2 * O2 + x2 * F2, this;
14193
+ const i2 = t2.elements, n2 = e2.elements, r2 = this.elements, o2 = i2[0], s2 = i2[4], a2 = i2[8], l2 = i2[12], h2 = i2[1], u2 = i2[5], c2 = i2[9], d2 = i2[13], p2 = i2[2], f2 = i2[6], m2 = i2[10], g2 = i2[14], v2 = i2[3], _2 = i2[7], y2 = i2[11], x2 = i2[15], b2 = n2[0], T2 = n2[4], E2 = n2[8], S2 = n2[12], w2 = n2[1], A2 = n2[5], M2 = n2[9], C2 = n2[13], R2 = n2[2], I2 = n2[6], P2 = n2[10], O2 = n2[14], N2 = n2[3], L2 = n2[7], D2 = n2[11], F2 = n2[15];
14194
+ return r2[0] = o2 * b2 + s2 * w2 + a2 * R2 + l2 * N2, r2[4] = o2 * T2 + s2 * A2 + a2 * I2 + l2 * L2, r2[8] = o2 * E2 + s2 * M2 + a2 * P2 + l2 * D2, r2[12] = o2 * S2 + s2 * C2 + a2 * O2 + l2 * F2, r2[1] = h2 * b2 + u2 * w2 + c2 * R2 + d2 * N2, r2[5] = h2 * T2 + u2 * A2 + c2 * I2 + d2 * L2, r2[9] = h2 * E2 + u2 * M2 + c2 * P2 + d2 * D2, r2[13] = h2 * S2 + u2 * C2 + c2 * O2 + d2 * F2, r2[2] = p2 * b2 + f2 * w2 + m2 * R2 + g2 * N2, r2[6] = p2 * T2 + f2 * A2 + m2 * I2 + g2 * L2, r2[10] = p2 * E2 + f2 * M2 + m2 * P2 + g2 * D2, r2[14] = p2 * S2 + f2 * C2 + m2 * O2 + g2 * F2, r2[3] = v2 * b2 + _2 * w2 + y2 * R2 + x2 * N2, r2[7] = v2 * T2 + _2 * A2 + y2 * I2 + x2 * L2, r2[11] = v2 * E2 + _2 * M2 + y2 * P2 + x2 * D2, r2[15] = v2 * S2 + _2 * C2 + y2 * O2 + x2 * F2, this;
14195
14195
  }
14196
14196
  multiplyScalar(t2) {
14197
14197
  const e2 = this.elements;
@@ -14408,16 +14408,16 @@ var Slide = function(t) {
14408
14408
  }
14409
14409
  }
14410
14410
  let gt = 0;
14411
- const vt = new M(), _t = new A(), yt = new rt(), xt = new M(), bt = new M(), Tt = new M(), Et = new A(), St = new M(1, 0, 0), wt = new M(0, 1, 0), At = new M(0, 0, 1), Mt = { type: "added" }, Rt = { type: "removed" };
14412
- class Ct extends s {
14411
+ const vt = new M(), _t = new A(), yt = new rt(), xt = new M(), bt = new M(), Tt = new M(), Et = new A(), St = new M(1, 0, 0), wt = new M(0, 1, 0), At = new M(0, 0, 1), Mt = { type: "added" }, Ct = { type: "removed" };
14412
+ class Rt extends s {
14413
14413
  constructor() {
14414
- super(), Object.defineProperty(this, "id", { value: gt++ }), this.uuid = u(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = Ct.DefaultUp.clone();
14414
+ super(), Object.defineProperty(this, "id", { value: gt++ }), this.uuid = u(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = Rt.DefaultUp.clone();
14415
14415
  const t2 = new M(), e2 = new ft(), i2 = new A(), n2 = new M(1, 1, 1);
14416
14416
  e2._onChange(function() {
14417
14417
  i2.setFromEuler(e2, false);
14418
14418
  }), i2._onChange(function() {
14419
14419
  e2.setFromQuaternion(i2, void 0, false);
14420
- }), Object.defineProperties(this, { position: { configurable: true, enumerable: true, value: t2 }, rotation: { configurable: true, enumerable: true, value: e2 }, quaternion: { configurable: true, enumerable: true, value: i2 }, scale: { configurable: true, enumerable: true, value: n2 }, modelViewMatrix: { value: new rt() }, normalMatrix: { value: new v() } }), this.matrix = new rt(), this.matrixWorld = new rt(), this.matrixAutoUpdate = Ct.DefaultMatrixAutoUpdate, this.matrixWorldNeedsUpdate = false, this.layers = new mt(), this.visible = true, this.castShadow = false, this.receiveShadow = false, this.frustumCulled = true, this.renderOrder = 0, this.animations = [], this.userData = {};
14420
+ }), Object.defineProperties(this, { position: { configurable: true, enumerable: true, value: t2 }, rotation: { configurable: true, enumerable: true, value: e2 }, quaternion: { configurable: true, enumerable: true, value: i2 }, scale: { configurable: true, enumerable: true, value: n2 }, modelViewMatrix: { value: new rt() }, normalMatrix: { value: new v() } }), this.matrix = new rt(), this.matrixWorld = new rt(), this.matrixAutoUpdate = Rt.DefaultMatrixAutoUpdate, this.matrixWorldNeedsUpdate = false, this.layers = new mt(), this.visible = true, this.castShadow = false, this.receiveShadow = false, this.frustumCulled = true, this.renderOrder = 0, this.animations = [], this.userData = {};
14421
14421
  }
14422
14422
  onBeforeRender() {
14423
14423
  }
@@ -14494,7 +14494,7 @@ var Slide = function(t) {
14494
14494
  return this;
14495
14495
  }
14496
14496
  const e2 = this.children.indexOf(t2);
14497
- return e2 !== -1 && (t2.parent = null, this.children.splice(e2, 1), t2.dispatchEvent(Rt)), this;
14497
+ return e2 !== -1 && (t2.parent = null, this.children.splice(e2, 1), t2.dispatchEvent(Ct)), this;
14498
14498
  }
14499
14499
  removeFromParent() {
14500
14500
  const t2 = this.parent;
@@ -14503,7 +14503,7 @@ var Slide = function(t) {
14503
14503
  clear() {
14504
14504
  for (let t2 = 0; t2 < this.children.length; t2++) {
14505
14505
  const e2 = this.children[t2];
14506
- e2.parent = null, e2.dispatchEvent(Rt);
14506
+ e2.parent = null, e2.dispatchEvent(Ct);
14507
14507
  }
14508
14508
  return this.children.length = 0, this;
14509
14509
  }
@@ -14645,7 +14645,7 @@ var Slide = function(t) {
14645
14645
  return this;
14646
14646
  }
14647
14647
  }
14648
- Ct.DefaultUp = new M(0, 1, 0), Ct.DefaultMatrixAutoUpdate = true, Ct.prototype.isObject3D = true;
14648
+ Rt.DefaultUp = new M(0, 1, 0), Rt.DefaultMatrixAutoUpdate = true, Rt.prototype.isObject3D = true;
14649
14649
  const It = new M(), Pt = new M(), Ot = new M(), Nt = new M(), Lt = new M(), Dt = new M(), Ft = new M(), Bt = new M(), Ut = new M(), kt = new M();
14650
14650
  class Gt {
14651
14651
  constructor(t2 = new M(), e2 = new M(), i2 = new M()) {
@@ -15172,7 +15172,7 @@ var Slide = function(t) {
15172
15172
  return e2;
15173
15173
  }
15174
15174
  let oe = 0;
15175
- const se = new rt(), ae = new Ct(), le = new M(), he = new I(), ue = new I(), ce = new M();
15175
+ const se = new rt(), ae = new Rt(), le = new M(), he = new I(), ue = new I(), ce = new M();
15176
15176
  class de extends s {
15177
15177
  constructor() {
15178
15178
  super(), Object.defineProperty(this, "id", { value: oe++ }), this.uuid = u(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = false, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
@@ -15469,8 +15469,8 @@ var Slide = function(t) {
15469
15469
  }
15470
15470
  }
15471
15471
  de.prototype.isBufferGeometry = true;
15472
- const pe = new rt(), fe = new nt(), me = new Z(), ge = new M(), ve = new M(), _e = new M(), ye = new M(), xe = new M(), be = new M(), Te = new M(), Ee = new M(), Se = new M(), we = new g(), Ae = new g(), Me = new g(), Re = new M(), Ce = new M();
15473
- class Ie extends Ct {
15472
+ const pe = new rt(), fe = new nt(), me = new Z(), ge = new M(), ve = new M(), _e = new M(), ye = new M(), xe = new M(), be = new M(), Te = new M(), Ee = new M(), Se = new M(), we = new g(), Ae = new g(), Me = new g(), Ce = new M(), Re = new M();
15473
+ class Ie extends Rt {
15474
15474
  constructor(t2 = new de(), e2 = new Jt()) {
15475
15475
  super(), this.type = "Mesh", this.geometry = t2, this.material = e2, this.updateMorphTargets();
15476
15476
  }
@@ -15555,12 +15555,12 @@ var Slide = function(t) {
15555
15555
  let l3;
15556
15556
  if (l3 = e3.side === 1 ? n3.intersectTriangle(s3, o3, r3, true, a3) : n3.intersectTriangle(r3, o3, s3, e3.side !== 2, a3), l3 === null)
15557
15557
  return null;
15558
- Ce.copy(a3), Ce.applyMatrix4(t3.matrixWorld);
15559
- const h3 = i3.ray.origin.distanceTo(Ce);
15560
- return h3 < i3.near || h3 > i3.far ? null : { distance: h3, point: Ce.clone(), object: t3 };
15561
- }(t2, e2, i2, n2, ge, ve, _e, Re);
15558
+ Re.copy(a3), Re.applyMatrix4(t3.matrixWorld);
15559
+ const h3 = i3.ray.origin.distanceTo(Re);
15560
+ return h3 < i3.near || h3 > i3.far ? null : { distance: h3, point: Re.clone(), object: t3 };
15561
+ }(t2, e2, i2, n2, ge, ve, _e, Ce);
15562
15562
  if (p2) {
15563
- a2 && (we.fromBufferAttribute(a2, h2), Ae.fromBufferAttribute(a2, u2), Me.fromBufferAttribute(a2, c2), p2.uv = Gt.getUV(Re, ge, ve, _e, we, Ae, Me, new g())), l2 && (we.fromBufferAttribute(l2, h2), Ae.fromBufferAttribute(l2, u2), Me.fromBufferAttribute(l2, c2), p2.uv2 = Gt.getUV(Re, ge, ve, _e, we, Ae, Me, new g()));
15563
+ a2 && (we.fromBufferAttribute(a2, h2), Ae.fromBufferAttribute(a2, u2), Me.fromBufferAttribute(a2, c2), p2.uv = Gt.getUV(Ce, ge, ve, _e, we, Ae, Me, new g())), l2 && (we.fromBufferAttribute(l2, h2), Ae.fromBufferAttribute(l2, u2), Me.fromBufferAttribute(l2, c2), p2.uv2 = Gt.getUV(Ce, ge, ve, _e, we, Ae, Me, new g()));
15564
15564
  const t3 = { a: h2, b: u2, c: c2, normal: new M(), materialIndex: 0 };
15565
15565
  Gt.getNormal(ge, ve, _e, t3.normal), p2.face = t3;
15566
15566
  }
@@ -15577,12 +15577,12 @@ var Slide = function(t) {
15577
15577
  function p2(t3, e3, i3, n3, r3, o3, p3, f2, m2, g2, v2) {
15578
15578
  const _2 = o3 / m2, y2 = p3 / g2, x2 = o3 / 2, b2 = p3 / 2, T2 = f2 / 2, E2 = m2 + 1, S2 = g2 + 1;
15579
15579
  let w2 = 0, A2 = 0;
15580
- const R2 = new M();
15580
+ const C2 = new M();
15581
15581
  for (let o4 = 0; o4 < S2; o4++) {
15582
15582
  const s3 = o4 * y2 - b2;
15583
15583
  for (let a3 = 0; a3 < E2; a3++) {
15584
15584
  const c3 = a3 * _2 - x2;
15585
- R2[t3] = c3 * n3, R2[e3] = s3 * r3, R2[i3] = T2, l2.push(R2.x, R2.y, R2.z), R2[t3] = 0, R2[e3] = 0, R2[i3] = f2 > 0 ? 1 : -1, h2.push(R2.x, R2.y, R2.z), u2.push(a3 / m2), u2.push(1 - o4 / g2), w2 += 1;
15585
+ C2[t3] = c3 * n3, C2[e3] = s3 * r3, C2[i3] = T2, l2.push(C2.x, C2.y, C2.z), C2[t3] = 0, C2[e3] = 0, C2[i3] = f2 > 0 ? 1 : -1, h2.push(C2.x, C2.y, C2.z), u2.push(a3 / m2), u2.push(1 - o4 / g2), w2 += 1;
15586
15586
  }
15587
15587
  }
15588
15588
  for (let t4 = 0; t4 < g2; t4++)
@@ -15641,7 +15641,7 @@ var Slide = function(t) {
15641
15641
  }
15642
15642
  }
15643
15643
  Fe.prototype.isShaderMaterial = true;
15644
- class Be extends Ct {
15644
+ class Be extends Rt {
15645
15645
  constructor() {
15646
15646
  super(), this.type = "Camera", this.matrixWorldInverse = new rt(), this.projectionMatrix = new rt(), this.projectionMatrixInverse = new rt();
15647
15647
  }
@@ -15711,7 +15711,7 @@ var Slide = function(t) {
15711
15711
  }
15712
15712
  }
15713
15713
  Ue.prototype.isPerspectiveCamera = true;
15714
- class ke extends Ct {
15714
+ class ke extends Rt {
15715
15715
  constructor(t2, e2, i2) {
15716
15716
  if (super(), this.type = "CubeCamera", i2.isWebGLCubeRenderTarget !== true)
15717
15717
  return void console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.");
@@ -16495,11 +16495,11 @@ var Slide = function(t) {
16495
16495
  return false;
16496
16496
  return true;
16497
16497
  }
16498
- function Ri(t2, e2) {
16498
+ function Ci(t2, e2) {
16499
16499
  for (let i2 = 0, n2 = e2.length; i2 < n2; i2++)
16500
16500
  t2[i2] = e2[i2];
16501
16501
  }
16502
- function Ci(t2, e2) {
16502
+ function Ri(t2, e2) {
16503
16503
  let i2 = Ti[e2];
16504
16504
  i2 === void 0 && (i2 = new Int32Array(e2), Ti[e2] = i2);
16505
16505
  for (let n2 = 0; n2 !== e2; ++n2)
@@ -16517,7 +16517,7 @@ var Slide = function(t) {
16517
16517
  else {
16518
16518
  if (Mi(i2, e2))
16519
16519
  return;
16520
- t2.uniform2fv(this.addr, e2), Ri(i2, e2);
16520
+ t2.uniform2fv(this.addr, e2), Ci(i2, e2);
16521
16521
  }
16522
16522
  }
16523
16523
  function Oi(t2, e2) {
@@ -16529,7 +16529,7 @@ var Slide = function(t) {
16529
16529
  else {
16530
16530
  if (Mi(i2, e2))
16531
16531
  return;
16532
- t2.uniform3fv(this.addr, e2), Ri(i2, e2);
16532
+ t2.uniform3fv(this.addr, e2), Ci(i2, e2);
16533
16533
  }
16534
16534
  }
16535
16535
  function Ni(t2, e2) {
@@ -16539,7 +16539,7 @@ var Slide = function(t) {
16539
16539
  else {
16540
16540
  if (Mi(i2, e2))
16541
16541
  return;
16542
- t2.uniform4fv(this.addr, e2), Ri(i2, e2);
16542
+ t2.uniform4fv(this.addr, e2), Ci(i2, e2);
16543
16543
  }
16544
16544
  }
16545
16545
  function Li(t2, e2) {
@@ -16547,11 +16547,11 @@ var Slide = function(t) {
16547
16547
  if (n2 === void 0) {
16548
16548
  if (Mi(i2, e2))
16549
16549
  return;
16550
- t2.uniformMatrix2fv(this.addr, false, e2), Ri(i2, e2);
16550
+ t2.uniformMatrix2fv(this.addr, false, e2), Ci(i2, e2);
16551
16551
  } else {
16552
16552
  if (Mi(i2, n2))
16553
16553
  return;
16554
- wi.set(n2), t2.uniformMatrix2fv(this.addr, false, wi), Ri(i2, n2);
16554
+ wi.set(n2), t2.uniformMatrix2fv(this.addr, false, wi), Ci(i2, n2);
16555
16555
  }
16556
16556
  }
16557
16557
  function Di(t2, e2) {
@@ -16559,11 +16559,11 @@ var Slide = function(t) {
16559
16559
  if (n2 === void 0) {
16560
16560
  if (Mi(i2, e2))
16561
16561
  return;
16562
- t2.uniformMatrix3fv(this.addr, false, e2), Ri(i2, e2);
16562
+ t2.uniformMatrix3fv(this.addr, false, e2), Ci(i2, e2);
16563
16563
  } else {
16564
16564
  if (Mi(i2, n2))
16565
16565
  return;
16566
- Si.set(n2), t2.uniformMatrix3fv(this.addr, false, Si), Ri(i2, n2);
16566
+ Si.set(n2), t2.uniformMatrix3fv(this.addr, false, Si), Ci(i2, n2);
16567
16567
  }
16568
16568
  }
16569
16569
  function Fi(t2, e2) {
@@ -16571,11 +16571,11 @@ var Slide = function(t) {
16571
16571
  if (n2 === void 0) {
16572
16572
  if (Mi(i2, e2))
16573
16573
  return;
16574
- t2.uniformMatrix4fv(this.addr, false, e2), Ri(i2, e2);
16574
+ t2.uniformMatrix4fv(this.addr, false, e2), Ci(i2, e2);
16575
16575
  } else {
16576
16576
  if (Mi(i2, n2))
16577
16577
  return;
16578
- Ei.set(n2), t2.uniformMatrix4fv(this.addr, false, Ei), Ri(i2, n2);
16578
+ Ei.set(n2), t2.uniformMatrix4fv(this.addr, false, Ei), Ci(i2, n2);
16579
16579
  }
16580
16580
  }
16581
16581
  function Bi(t2, e2) {
@@ -16584,15 +16584,15 @@ var Slide = function(t) {
16584
16584
  }
16585
16585
  function Ui(t2, e2) {
16586
16586
  const i2 = this.cache;
16587
- Mi(i2, e2) || (t2.uniform2iv(this.addr, e2), Ri(i2, e2));
16587
+ Mi(i2, e2) || (t2.uniform2iv(this.addr, e2), Ci(i2, e2));
16588
16588
  }
16589
16589
  function ki(t2, e2) {
16590
16590
  const i2 = this.cache;
16591
- Mi(i2, e2) || (t2.uniform3iv(this.addr, e2), Ri(i2, e2));
16591
+ Mi(i2, e2) || (t2.uniform3iv(this.addr, e2), Ci(i2, e2));
16592
16592
  }
16593
16593
  function Gi(t2, e2) {
16594
16594
  const i2 = this.cache;
16595
- Mi(i2, e2) || (t2.uniform4iv(this.addr, e2), Ri(i2, e2));
16595
+ Mi(i2, e2) || (t2.uniform4iv(this.addr, e2), Ci(i2, e2));
16596
16596
  }
16597
16597
  function Hi(t2, e2) {
16598
16598
  const i2 = this.cache;
@@ -16600,15 +16600,15 @@ var Slide = function(t) {
16600
16600
  }
16601
16601
  function ji(t2, e2) {
16602
16602
  const i2 = this.cache;
16603
- Mi(i2, e2) || (t2.uniform2uiv(this.addr, e2), Ri(i2, e2));
16603
+ Mi(i2, e2) || (t2.uniform2uiv(this.addr, e2), Ci(i2, e2));
16604
16604
  }
16605
16605
  function zi(t2, e2) {
16606
16606
  const i2 = this.cache;
16607
- Mi(i2, e2) || (t2.uniform3uiv(this.addr, e2), Ri(i2, e2));
16607
+ Mi(i2, e2) || (t2.uniform3uiv(this.addr, e2), Ci(i2, e2));
16608
16608
  }
16609
16609
  function Vi(t2, e2) {
16610
16610
  const i2 = this.cache;
16611
- Mi(i2, e2) || (t2.uniform4uiv(this.addr, e2), Ri(i2, e2));
16611
+ Mi(i2, e2) || (t2.uniform4uiv(this.addr, e2), Ci(i2, e2));
16612
16612
  }
16613
16613
  function Xi(t2, e2, i2) {
16614
16614
  const n2 = this.cache, r2 = i2.allocateTextureUnit();
@@ -16678,13 +16678,13 @@ var Slide = function(t) {
16678
16678
  t2.uniform4uiv(this.addr, e2);
16679
16679
  }
16680
16680
  function cn(t2, e2, i2) {
16681
- const n2 = e2.length, r2 = Ci(i2, n2);
16681
+ const n2 = e2.length, r2 = Ri(i2, n2);
16682
16682
  t2.uniform1iv(this.addr, r2);
16683
16683
  for (let t3 = 0; t3 !== n2; ++t3)
16684
16684
  i2.safeSetTexture2D(e2[t3] || vi, r2[t3]);
16685
16685
  }
16686
16686
  function dn(t2, e2, i2) {
16687
- const n2 = e2.length, r2 = Ci(i2, n2);
16687
+ const n2 = e2.length, r2 = Ri(i2, n2);
16688
16688
  t2.uniform1iv(this.addr, r2);
16689
16689
  for (let t3 = 0; t3 !== n2; ++t3)
16690
16690
  i2.safeSetTextureCube(e2[t3] || xi, r2[t3]);
@@ -16805,7 +16805,7 @@ var Slide = function(t) {
16805
16805
  }
16806
16806
  fn.prototype.updateCache = function(t2) {
16807
16807
  const e2 = this.cache;
16808
- t2 instanceof Float32Array && e2.length !== t2.length && (this.cache = new Float32Array(t2.length)), Ri(e2, t2);
16808
+ t2 instanceof Float32Array && e2.length !== t2.length && (this.cache = new Float32Array(t2.length)), Ci(e2, t2);
16809
16809
  }, mn.prototype.setValue = function(t2, e2, i2) {
16810
16810
  const n2 = this.seq;
16811
16811
  for (let r2 = 0, o2 = n2.length; r2 !== o2; ++r2) {
@@ -16932,10 +16932,10 @@ var Slide = function(t) {
16932
16932
  function Mn(t2) {
16933
16933
  return t2 !== "";
16934
16934
  }
16935
- function Rn(t2, e2) {
16935
+ function Cn(t2, e2) {
16936
16936
  return t2.replace(/NUM_DIR_LIGHTS/g, e2.numDirLights).replace(/NUM_SPOT_LIGHTS/g, e2.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g, e2.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g, e2.numPointLights).replace(/NUM_HEMI_LIGHTS/g, e2.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g, e2.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g, e2.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g, e2.numPointLightShadows);
16937
16937
  }
16938
- function Cn(t2, e2) {
16938
+ function Rn(t2, e2) {
16939
16939
  return t2.replace(/NUM_CLIPPING_PLANES/g, e2.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g, e2.numClippingPlanes - e2.numClipIntersection);
16940
16940
  }
16941
16941
  const In = /^[ \t]*#include +<([\w\d./]+)>/gm;
@@ -17018,7 +17018,7 @@ var Slide = function(t) {
17018
17018
  return e3.join("\n");
17019
17019
  }(o2), m2 = r2.createProgram();
17020
17020
  let g2, v2, _2 = i2.glslVersion ? "#version " + i2.glslVersion + "\n" : "";
17021
- i2.isRawShaderMaterial ? (g2 = [f2].filter(Mn).join("\n"), g2.length > 0 && (g2 += "\n"), v2 = [p2, f2].filter(Mn).join("\n"), v2.length > 0 && (v2 += "\n")) : (g2 = [Un(i2), "#define SHADER_NAME " + i2.shaderName, f2, i2.instancing ? "#define USE_INSTANCING" : "", i2.instancingColor ? "#define USE_INSTANCING_COLOR" : "", i2.supportsVertexTextures ? "#define VERTEX_TEXTURES" : "", "#define GAMMA_FACTOR " + d2, "#define MAX_BONES " + i2.maxBones, i2.useFog && i2.fog ? "#define USE_FOG" : "", i2.useFog && i2.fogExp2 ? "#define FOG_EXP2" : "", i2.map ? "#define USE_MAP" : "", i2.envMap ? "#define USE_ENVMAP" : "", i2.envMap ? "#define " + u2 : "", i2.lightMap ? "#define USE_LIGHTMAP" : "", i2.aoMap ? "#define USE_AOMAP" : "", i2.emissiveMap ? "#define USE_EMISSIVEMAP" : "", i2.bumpMap ? "#define USE_BUMPMAP" : "", i2.normalMap ? "#define USE_NORMALMAP" : "", i2.normalMap && i2.objectSpaceNormalMap ? "#define OBJECTSPACE_NORMALMAP" : "", i2.normalMap && i2.tangentSpaceNormalMap ? "#define TANGENTSPACE_NORMALMAP" : "", i2.clearcoatMap ? "#define USE_CLEARCOATMAP" : "", i2.clearcoatRoughnessMap ? "#define USE_CLEARCOAT_ROUGHNESSMAP" : "", i2.clearcoatNormalMap ? "#define USE_CLEARCOAT_NORMALMAP" : "", i2.displacementMap && i2.supportsVertexTextures ? "#define USE_DISPLACEMENTMAP" : "", i2.specularMap ? "#define USE_SPECULARMAP" : "", i2.roughnessMap ? "#define USE_ROUGHNESSMAP" : "", i2.metalnessMap ? "#define USE_METALNESSMAP" : "", i2.alphaMap ? "#define USE_ALPHAMAP" : "", i2.transmission ? "#define USE_TRANSMISSION" : "", i2.transmissionMap ? "#define USE_TRANSMISSIONMAP" : "", i2.thicknessMap ? "#define USE_THICKNESSMAP" : "", i2.vertexTangents ? "#define USE_TANGENT" : "", i2.vertexColors ? "#define USE_COLOR" : "", i2.vertexAlphas ? "#define USE_COLOR_ALPHA" : "", i2.vertexUvs ? "#define USE_UV" : "", i2.uvsVertexOnly ? "#define UVS_VERTEX_ONLY" : "", i2.flatShading ? "#define FLAT_SHADED" : "", i2.skinning ? "#define USE_SKINNING" : "", i2.useVertexTexture ? "#define BONE_TEXTURE" : "", i2.morphTargets ? "#define USE_MORPHTARGETS" : "", i2.morphNormals && i2.flatShading === false ? "#define USE_MORPHNORMALS" : "", i2.doubleSided ? "#define DOUBLE_SIDED" : "", i2.flipSided ? "#define FLIP_SIDED" : "", i2.shadowMapEnabled ? "#define USE_SHADOWMAP" : "", i2.shadowMapEnabled ? "#define " + l2 : "", i2.sizeAttenuation ? "#define USE_SIZEATTENUATION" : "", i2.logarithmicDepthBuffer ? "#define USE_LOGDEPTHBUF" : "", i2.logarithmicDepthBuffer && i2.rendererExtensionFragDepth ? "#define USE_LOGDEPTHBUF_EXT" : "", "uniform mat4 modelMatrix;", "uniform mat4 modelViewMatrix;", "uniform mat4 projectionMatrix;", "uniform mat4 viewMatrix;", "uniform mat3 normalMatrix;", "uniform vec3 cameraPosition;", "uniform bool isOrthographic;", "#ifdef USE_INSTANCING", " attribute mat4 instanceMatrix;", "#endif", "#ifdef USE_INSTANCING_COLOR", " attribute vec3 instanceColor;", "#endif", "attribute vec3 position;", "attribute vec3 normal;", "attribute vec2 uv;", "#ifdef USE_TANGENT", " attribute vec4 tangent;", "#endif", "#if defined( USE_COLOR_ALPHA )", " attribute vec4 color;", "#elif defined( USE_COLOR )", " attribute vec3 color;", "#endif", "#ifdef USE_MORPHTARGETS", " attribute vec3 morphTarget0;", " attribute vec3 morphTarget1;", " attribute vec3 morphTarget2;", " attribute vec3 morphTarget3;", " #ifdef USE_MORPHNORMALS", " attribute vec3 morphNormal0;", " attribute vec3 morphNormal1;", " attribute vec3 morphNormal2;", " attribute vec3 morphNormal3;", " #else", " attribute vec3 morphTarget4;", " attribute vec3 morphTarget5;", " attribute vec3 morphTarget6;", " attribute vec3 morphTarget7;", " #endif", "#endif", "#ifdef USE_SKINNING", " attribute vec4 skinIndex;", " attribute vec4 skinWeight;", "#endif", "\n"].filter(Mn).join("\n"), v2 = [p2, Un(i2), "#define SHADER_NAME " + i2.shaderName, f2, i2.alphaTest ? "#define ALPHATEST " + i2.alphaTest + (i2.alphaTest % 1 ? "" : ".0") : "", "#define GAMMA_FACTOR " + d2, i2.useFog && i2.fog ? "#define USE_FOG" : "", i2.useFog && i2.fogExp2 ? "#define FOG_EXP2" : "", i2.map ? "#define USE_MAP" : "", i2.matcap ? "#define USE_MATCAP" : "", i2.envMap ? "#define USE_ENVMAP" : "", i2.envMap ? "#define " + h2 : "", i2.envMap ? "#define " + u2 : "", i2.envMap ? "#define " + c2 : "", i2.lightMap ? "#define USE_LIGHTMAP" : "", i2.aoMap ? "#define USE_AOMAP" : "", i2.emissiveMap ? "#define USE_EMISSIVEMAP" : "", i2.bumpMap ? "#define USE_BUMPMAP" : "", i2.normalMap ? "#define USE_NORMALMAP" : "", i2.normalMap && i2.objectSpaceNormalMap ? "#define OBJECTSPACE_NORMALMAP" : "", i2.normalMap && i2.tangentSpaceNormalMap ? "#define TANGENTSPACE_NORMALMAP" : "", i2.clearcoatMap ? "#define USE_CLEARCOATMAP" : "", i2.clearcoatRoughnessMap ? "#define USE_CLEARCOAT_ROUGHNESSMAP" : "", i2.clearcoatNormalMap ? "#define USE_CLEARCOAT_NORMALMAP" : "", i2.specularMap ? "#define USE_SPECULARMAP" : "", i2.roughnessMap ? "#define USE_ROUGHNESSMAP" : "", i2.metalnessMap ? "#define USE_METALNESSMAP" : "", i2.alphaMap ? "#define USE_ALPHAMAP" : "", i2.sheen ? "#define USE_SHEEN" : "", i2.transmission ? "#define USE_TRANSMISSION" : "", i2.transmissionMap ? "#define USE_TRANSMISSIONMAP" : "", i2.thicknessMap ? "#define USE_THICKNESSMAP" : "", i2.vertexTangents ? "#define USE_TANGENT" : "", i2.vertexColors || i2.instancingColor ? "#define USE_COLOR" : "", i2.vertexAlphas ? "#define USE_COLOR_ALPHA" : "", i2.vertexUvs ? "#define USE_UV" : "", i2.uvsVertexOnly ? "#define UVS_VERTEX_ONLY" : "", i2.gradientMap ? "#define USE_GRADIENTMAP" : "", i2.flatShading ? "#define FLAT_SHADED" : "", i2.doubleSided ? "#define DOUBLE_SIDED" : "", i2.flipSided ? "#define FLIP_SIDED" : "", i2.shadowMapEnabled ? "#define USE_SHADOWMAP" : "", i2.shadowMapEnabled ? "#define " + l2 : "", i2.premultipliedAlpha ? "#define PREMULTIPLIED_ALPHA" : "", i2.physicallyCorrectLights ? "#define PHYSICALLY_CORRECT_LIGHTS" : "", i2.logarithmicDepthBuffer ? "#define USE_LOGDEPTHBUF" : "", i2.logarithmicDepthBuffer && i2.rendererExtensionFragDepth ? "#define USE_LOGDEPTHBUF_EXT" : "", (i2.extensionShaderTextureLOD || i2.envMap) && i2.rendererExtensionShaderTextureLod ? "#define TEXTURE_LOD_EXT" : "", "uniform mat4 viewMatrix;", "uniform vec3 cameraPosition;", "uniform bool isOrthographic;", i2.toneMapping !== 0 ? "#define TONE_MAPPING" : "", i2.toneMapping !== 0 ? Qe.tonemapping_pars_fragment : "", i2.toneMapping !== 0 ? An("toneMapping", i2.toneMapping) : "", i2.dithering ? "#define DITHERING" : "", Qe.encodings_pars_fragment, i2.map ? Sn("mapTexelToLinear", i2.mapEncoding) : "", i2.matcap ? Sn("matcapTexelToLinear", i2.matcapEncoding) : "", i2.envMap ? Sn("envMapTexelToLinear", i2.envMapEncoding) : "", i2.emissiveMap ? Sn("emissiveMapTexelToLinear", i2.emissiveMapEncoding) : "", i2.lightMap ? Sn("lightMapTexelToLinear", i2.lightMapEncoding) : "", wn("linearToOutputTexel", i2.outputEncoding), i2.depthPacking ? "#define DEPTH_PACKING " + i2.depthPacking : "", "\n"].filter(Mn).join("\n")), s2 = Pn(s2), s2 = Rn(s2, i2), s2 = Cn(s2, i2), a2 = Pn(a2), a2 = Rn(a2, i2), a2 = Cn(a2, i2), s2 = Dn(s2), a2 = Dn(a2), i2.isWebGL2 && i2.isRawShaderMaterial !== true && (_2 = "#version 300 es\n", g2 = ["#define attribute in", "#define varying out", "#define texture2D texture"].join("\n") + "\n" + g2, v2 = ["#define varying in", i2.glslVersion === "300 es" ? "" : "out highp vec4 pc_fragColor;", i2.glslVersion === "300 es" ? "" : "#define gl_FragColor pc_fragColor", "#define gl_FragDepthEXT gl_FragDepth", "#define texture2D texture", "#define textureCube texture", "#define texture2DProj textureProj", "#define texture2DLodEXT textureLod", "#define texture2DProjLodEXT textureProjLod", "#define textureCubeLodEXT textureLod", "#define texture2DGradEXT textureGrad", "#define texture2DProjGradEXT textureProjGrad", "#define textureCubeGradEXT textureGrad"].join("\n") + "\n" + v2);
17021
+ i2.isRawShaderMaterial ? (g2 = [f2].filter(Mn).join("\n"), g2.length > 0 && (g2 += "\n"), v2 = [p2, f2].filter(Mn).join("\n"), v2.length > 0 && (v2 += "\n")) : (g2 = [Un(i2), "#define SHADER_NAME " + i2.shaderName, f2, i2.instancing ? "#define USE_INSTANCING" : "", i2.instancingColor ? "#define USE_INSTANCING_COLOR" : "", i2.supportsVertexTextures ? "#define VERTEX_TEXTURES" : "", "#define GAMMA_FACTOR " + d2, "#define MAX_BONES " + i2.maxBones, i2.useFog && i2.fog ? "#define USE_FOG" : "", i2.useFog && i2.fogExp2 ? "#define FOG_EXP2" : "", i2.map ? "#define USE_MAP" : "", i2.envMap ? "#define USE_ENVMAP" : "", i2.envMap ? "#define " + u2 : "", i2.lightMap ? "#define USE_LIGHTMAP" : "", i2.aoMap ? "#define USE_AOMAP" : "", i2.emissiveMap ? "#define USE_EMISSIVEMAP" : "", i2.bumpMap ? "#define USE_BUMPMAP" : "", i2.normalMap ? "#define USE_NORMALMAP" : "", i2.normalMap && i2.objectSpaceNormalMap ? "#define OBJECTSPACE_NORMALMAP" : "", i2.normalMap && i2.tangentSpaceNormalMap ? "#define TANGENTSPACE_NORMALMAP" : "", i2.clearcoatMap ? "#define USE_CLEARCOATMAP" : "", i2.clearcoatRoughnessMap ? "#define USE_CLEARCOAT_ROUGHNESSMAP" : "", i2.clearcoatNormalMap ? "#define USE_CLEARCOAT_NORMALMAP" : "", i2.displacementMap && i2.supportsVertexTextures ? "#define USE_DISPLACEMENTMAP" : "", i2.specularMap ? "#define USE_SPECULARMAP" : "", i2.roughnessMap ? "#define USE_ROUGHNESSMAP" : "", i2.metalnessMap ? "#define USE_METALNESSMAP" : "", i2.alphaMap ? "#define USE_ALPHAMAP" : "", i2.transmission ? "#define USE_TRANSMISSION" : "", i2.transmissionMap ? "#define USE_TRANSMISSIONMAP" : "", i2.thicknessMap ? "#define USE_THICKNESSMAP" : "", i2.vertexTangents ? "#define USE_TANGENT" : "", i2.vertexColors ? "#define USE_COLOR" : "", i2.vertexAlphas ? "#define USE_COLOR_ALPHA" : "", i2.vertexUvs ? "#define USE_UV" : "", i2.uvsVertexOnly ? "#define UVS_VERTEX_ONLY" : "", i2.flatShading ? "#define FLAT_SHADED" : "", i2.skinning ? "#define USE_SKINNING" : "", i2.useVertexTexture ? "#define BONE_TEXTURE" : "", i2.morphTargets ? "#define USE_MORPHTARGETS" : "", i2.morphNormals && i2.flatShading === false ? "#define USE_MORPHNORMALS" : "", i2.doubleSided ? "#define DOUBLE_SIDED" : "", i2.flipSided ? "#define FLIP_SIDED" : "", i2.shadowMapEnabled ? "#define USE_SHADOWMAP" : "", i2.shadowMapEnabled ? "#define " + l2 : "", i2.sizeAttenuation ? "#define USE_SIZEATTENUATION" : "", i2.logarithmicDepthBuffer ? "#define USE_LOGDEPTHBUF" : "", i2.logarithmicDepthBuffer && i2.rendererExtensionFragDepth ? "#define USE_LOGDEPTHBUF_EXT" : "", "uniform mat4 modelMatrix;", "uniform mat4 modelViewMatrix;", "uniform mat4 projectionMatrix;", "uniform mat4 viewMatrix;", "uniform mat3 normalMatrix;", "uniform vec3 cameraPosition;", "uniform bool isOrthographic;", "#ifdef USE_INSTANCING", " attribute mat4 instanceMatrix;", "#endif", "#ifdef USE_INSTANCING_COLOR", " attribute vec3 instanceColor;", "#endif", "attribute vec3 position;", "attribute vec3 normal;", "attribute vec2 uv;", "#ifdef USE_TANGENT", " attribute vec4 tangent;", "#endif", "#if defined( USE_COLOR_ALPHA )", " attribute vec4 color;", "#elif defined( USE_COLOR )", " attribute vec3 color;", "#endif", "#ifdef USE_MORPHTARGETS", " attribute vec3 morphTarget0;", " attribute vec3 morphTarget1;", " attribute vec3 morphTarget2;", " attribute vec3 morphTarget3;", " #ifdef USE_MORPHNORMALS", " attribute vec3 morphNormal0;", " attribute vec3 morphNormal1;", " attribute vec3 morphNormal2;", " attribute vec3 morphNormal3;", " #else", " attribute vec3 morphTarget4;", " attribute vec3 morphTarget5;", " attribute vec3 morphTarget6;", " attribute vec3 morphTarget7;", " #endif", "#endif", "#ifdef USE_SKINNING", " attribute vec4 skinIndex;", " attribute vec4 skinWeight;", "#endif", "\n"].filter(Mn).join("\n"), v2 = [p2, Un(i2), "#define SHADER_NAME " + i2.shaderName, f2, i2.alphaTest ? "#define ALPHATEST " + i2.alphaTest + (i2.alphaTest % 1 ? "" : ".0") : "", "#define GAMMA_FACTOR " + d2, i2.useFog && i2.fog ? "#define USE_FOG" : "", i2.useFog && i2.fogExp2 ? "#define FOG_EXP2" : "", i2.map ? "#define USE_MAP" : "", i2.matcap ? "#define USE_MATCAP" : "", i2.envMap ? "#define USE_ENVMAP" : "", i2.envMap ? "#define " + h2 : "", i2.envMap ? "#define " + u2 : "", i2.envMap ? "#define " + c2 : "", i2.lightMap ? "#define USE_LIGHTMAP" : "", i2.aoMap ? "#define USE_AOMAP" : "", i2.emissiveMap ? "#define USE_EMISSIVEMAP" : "", i2.bumpMap ? "#define USE_BUMPMAP" : "", i2.normalMap ? "#define USE_NORMALMAP" : "", i2.normalMap && i2.objectSpaceNormalMap ? "#define OBJECTSPACE_NORMALMAP" : "", i2.normalMap && i2.tangentSpaceNormalMap ? "#define TANGENTSPACE_NORMALMAP" : "", i2.clearcoatMap ? "#define USE_CLEARCOATMAP" : "", i2.clearcoatRoughnessMap ? "#define USE_CLEARCOAT_ROUGHNESSMAP" : "", i2.clearcoatNormalMap ? "#define USE_CLEARCOAT_NORMALMAP" : "", i2.specularMap ? "#define USE_SPECULARMAP" : "", i2.roughnessMap ? "#define USE_ROUGHNESSMAP" : "", i2.metalnessMap ? "#define USE_METALNESSMAP" : "", i2.alphaMap ? "#define USE_ALPHAMAP" : "", i2.sheen ? "#define USE_SHEEN" : "", i2.transmission ? "#define USE_TRANSMISSION" : "", i2.transmissionMap ? "#define USE_TRANSMISSIONMAP" : "", i2.thicknessMap ? "#define USE_THICKNESSMAP" : "", i2.vertexTangents ? "#define USE_TANGENT" : "", i2.vertexColors || i2.instancingColor ? "#define USE_COLOR" : "", i2.vertexAlphas ? "#define USE_COLOR_ALPHA" : "", i2.vertexUvs ? "#define USE_UV" : "", i2.uvsVertexOnly ? "#define UVS_VERTEX_ONLY" : "", i2.gradientMap ? "#define USE_GRADIENTMAP" : "", i2.flatShading ? "#define FLAT_SHADED" : "", i2.doubleSided ? "#define DOUBLE_SIDED" : "", i2.flipSided ? "#define FLIP_SIDED" : "", i2.shadowMapEnabled ? "#define USE_SHADOWMAP" : "", i2.shadowMapEnabled ? "#define " + l2 : "", i2.premultipliedAlpha ? "#define PREMULTIPLIED_ALPHA" : "", i2.physicallyCorrectLights ? "#define PHYSICALLY_CORRECT_LIGHTS" : "", i2.logarithmicDepthBuffer ? "#define USE_LOGDEPTHBUF" : "", i2.logarithmicDepthBuffer && i2.rendererExtensionFragDepth ? "#define USE_LOGDEPTHBUF_EXT" : "", (i2.extensionShaderTextureLOD || i2.envMap) && i2.rendererExtensionShaderTextureLod ? "#define TEXTURE_LOD_EXT" : "", "uniform mat4 viewMatrix;", "uniform vec3 cameraPosition;", "uniform bool isOrthographic;", i2.toneMapping !== 0 ? "#define TONE_MAPPING" : "", i2.toneMapping !== 0 ? Qe.tonemapping_pars_fragment : "", i2.toneMapping !== 0 ? An("toneMapping", i2.toneMapping) : "", i2.dithering ? "#define DITHERING" : "", Qe.encodings_pars_fragment, i2.map ? Sn("mapTexelToLinear", i2.mapEncoding) : "", i2.matcap ? Sn("matcapTexelToLinear", i2.matcapEncoding) : "", i2.envMap ? Sn("envMapTexelToLinear", i2.envMapEncoding) : "", i2.emissiveMap ? Sn("emissiveMapTexelToLinear", i2.emissiveMapEncoding) : "", i2.lightMap ? Sn("lightMapTexelToLinear", i2.lightMapEncoding) : "", wn("linearToOutputTexel", i2.outputEncoding), i2.depthPacking ? "#define DEPTH_PACKING " + i2.depthPacking : "", "\n"].filter(Mn).join("\n")), s2 = Pn(s2), s2 = Cn(s2, i2), s2 = Rn(s2, i2), a2 = Pn(a2), a2 = Cn(a2, i2), a2 = Rn(a2, i2), s2 = Dn(s2), a2 = Dn(a2), i2.isWebGL2 && i2.isRawShaderMaterial !== true && (_2 = "#version 300 es\n", g2 = ["#define attribute in", "#define varying out", "#define texture2D texture"].join("\n") + "\n" + g2, v2 = ["#define varying in", i2.glslVersion === "300 es" ? "" : "out highp vec4 pc_fragColor;", i2.glslVersion === "300 es" ? "" : "#define gl_FragColor pc_fragColor", "#define gl_FragDepthEXT gl_FragDepth", "#define texture2D texture", "#define textureCube texture", "#define texture2DProj textureProj", "#define texture2DLodEXT textureLod", "#define texture2DProjLodEXT textureProjLod", "#define textureCubeLodEXT textureLod", "#define texture2DGradEXT textureGrad", "#define texture2DProjGradEXT textureProjGrad", "#define textureCubeGradEXT textureGrad"].join("\n") + "\n" + v2);
17022
17022
  const y2 = _2 + v2 + a2, x2 = xn(r2, 35633, _2 + g2 + s2), b2 = xn(r2, 35632, y2);
17023
17023
  if (r2.attachShader(m2, x2), r2.attachShader(m2, b2), i2.index0AttributeName !== void 0 ? r2.bindAttribLocation(m2, 0, i2.index0AttributeName) : i2.morphTargets === true && r2.bindAttribLocation(m2, 0, "position"), r2.linkProgram(m2), t2.debug.checkShaderErrors) {
17024
17024
  const t3 = r2.getProgramInfoLog(m2).trim(), e3 = r2.getShaderInfoLog(x2).trim(), i3 = r2.getShaderInfoLog(b2).trim();
@@ -17509,9 +17509,9 @@ var Slide = function(t) {
17509
17509
  }();
17510
17510
  let a2 = {}, l2 = null, h2 = {}, u2 = null, c2 = false, d2 = null, p2 = null, f2 = null, m2 = null, g2 = null, v2 = null, _2 = null, y2 = false, x2 = null, b2 = null, T2 = null, S2 = null, w2 = null;
17511
17511
  const A2 = t2.getParameter(35661);
17512
- let M2 = false, R2 = 0;
17513
- const C2 = t2.getParameter(7938);
17514
- C2.indexOf("WebGL") !== -1 ? (R2 = parseFloat(/^WebGL (\d)/.exec(C2)[1]), M2 = R2 >= 1) : C2.indexOf("OpenGL ES") !== -1 && (R2 = parseFloat(/^OpenGL ES (\d)/.exec(C2)[1]), M2 = R2 >= 2);
17512
+ let M2 = false, C2 = 0;
17513
+ const R2 = t2.getParameter(7938);
17514
+ R2.indexOf("WebGL") !== -1 ? (C2 = parseFloat(/^WebGL (\d)/.exec(R2)[1]), M2 = C2 >= 1) : R2.indexOf("OpenGL ES") !== -1 && (C2 = parseFloat(/^OpenGL ES (\d)/.exec(R2)[1]), M2 = C2 >= 2);
17515
17515
  let I2 = null, P2 = {};
17516
17516
  const O2 = t2.getParameter(3088), N2 = t2.getParameter(2978), L2 = new E().fromArray(O2), D2 = new E().fromArray(N2);
17517
17517
  function F2(e3, i3, n3) {
@@ -17738,7 +17738,7 @@ var Slide = function(t) {
17738
17738
  }
17739
17739
  i2.activeTexture(33984 + e3), i2.bindTexture(3553, r3.__webglTexture);
17740
17740
  }
17741
- function R2(e3, r3) {
17741
+ function C2(e3, r3) {
17742
17742
  const s3 = n2.get(e3);
17743
17743
  e3.version > 0 && s3.__version !== e3.version ? function(e4, n3, r4) {
17744
17744
  if (n3.image.length !== 6)
@@ -17780,9 +17780,9 @@ var Slide = function(t) {
17780
17780
  e4.__version = n3.version, n3.onUpdate && n3.onUpdate(n3);
17781
17781
  }(s3, e3, r3) : (i2.activeTexture(33984 + r3), i2.bindTexture(34067, s3.__webglTexture));
17782
17782
  }
17783
- const C2 = { 1e3: 10497, 1001: 33071, 1002: 33648 }, I2 = { 1003: 9728, 1004: 9984, 1005: 9986, 1006: 9729, 1007: 9985, 1008: 9987 };
17783
+ const R2 = { 1e3: 10497, 1001: 33071, 1002: 33648 }, I2 = { 1003: 9728, 1004: 9984, 1005: 9986, 1006: 9729, 1007: 9985, 1008: 9987 };
17784
17784
  function P2(i3, o3, s3) {
17785
- if (s3 ? (t2.texParameteri(i3, 10242, C2[o3.wrapS]), t2.texParameteri(i3, 10243, C2[o3.wrapT]), i3 !== 32879 && i3 !== 35866 || t2.texParameteri(i3, 32882, C2[o3.wrapR]), t2.texParameteri(i3, 10240, I2[o3.magFilter]), t2.texParameteri(i3, 10241, I2[o3.minFilter])) : (t2.texParameteri(i3, 10242, 33071), t2.texParameteri(i3, 10243, 33071), i3 !== 32879 && i3 !== 35866 || t2.texParameteri(i3, 32882, 33071), o3.wrapS === 1001 && o3.wrapT === 1001 || console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."), t2.texParameteri(i3, 10240, E2(o3.magFilter)), t2.texParameteri(i3, 10241, E2(o3.minFilter)), o3.minFilter !== 1003 && o3.minFilter !== 1006 && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")), e2.has("EXT_texture_filter_anisotropic") === true) {
17785
+ if (s3 ? (t2.texParameteri(i3, 10242, R2[o3.wrapS]), t2.texParameteri(i3, 10243, R2[o3.wrapT]), i3 !== 32879 && i3 !== 35866 || t2.texParameteri(i3, 32882, R2[o3.wrapR]), t2.texParameteri(i3, 10240, I2[o3.magFilter]), t2.texParameteri(i3, 10241, I2[o3.minFilter])) : (t2.texParameteri(i3, 10242, 33071), t2.texParameteri(i3, 10243, 33071), i3 !== 32879 && i3 !== 35866 || t2.texParameteri(i3, 32882, 33071), o3.wrapS === 1001 && o3.wrapT === 1001 || console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."), t2.texParameteri(i3, 10240, E2(o3.magFilter)), t2.texParameteri(i3, 10241, E2(o3.minFilter)), o3.minFilter !== 1003 && o3.minFilter !== 1006 && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")), e2.has("EXT_texture_filter_anisotropic") === true) {
17786
17786
  const s4 = e2.get("EXT_texture_filter_anisotropic");
17787
17787
  if (o3.type === 1015 && e2.has("OES_texture_float_linear") === false)
17788
17788
  return;
@@ -17903,7 +17903,7 @@ var Slide = function(t) {
17903
17903
  }, this.setTexture3D = function(t3, e3) {
17904
17904
  const r3 = n2.get(t3);
17905
17905
  t3.version > 0 && r3.__version !== t3.version ? N2(r3, t3, e3) : (i2.activeTexture(33984 + e3), i2.bindTexture(32879, r3.__webglTexture));
17906
- }, this.setTextureCube = R2, this.setupRenderTarget = function(e3) {
17906
+ }, this.setTextureCube = C2, this.setupRenderTarget = function(e3) {
17907
17907
  const l3 = e3.texture, h3 = n2.get(e3), u3 = n2.get(l3);
17908
17908
  e3.addEventListener("dispose", w2), e3.isWebGLMultipleRenderTargets !== true && (u3.__webglTexture = t2.createTexture(), u3.__version = l3.version, s2.memory.textures++);
17909
17909
  const c3 = e3.isWebGLCubeRenderTarget === true, d3 = e3.isWebGLMultipleRenderTargets === true, p3 = e3.isWebGLMultisampleRenderTarget === true, f2 = l3.isDataTexture3D || l3.isDataTexture2DArray, m2 = y2(e3) || a2;
@@ -17971,7 +17971,7 @@ var Slide = function(t) {
17971
17971
  }, this.safeSetTexture2D = function(t3, e3) {
17972
17972
  t3 && t3.isWebGLRenderTarget && (U2 === false && (console.warn("THREE.WebGLTextures.safeSetTexture2D: don't use render targets as textures. Use their .texture property instead."), U2 = true), t3 = t3.texture), M2(t3, e3);
17973
17973
  }, this.safeSetTextureCube = function(t3, e3) {
17974
- t3 && t3.isWebGLCubeRenderTarget && (k2 === false && (console.warn("THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead."), k2 = true), t3 = t3.texture), R2(t3, e3);
17974
+ t3 && t3.isWebGLCubeRenderTarget && (k2 === false && (console.warn("THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead."), k2 = true), t3 = t3.texture), C2(t3, e3);
17975
17975
  };
17976
17976
  }
17977
17977
  function nr(t2, e2, i2) {
@@ -18067,7 +18067,7 @@ var Slide = function(t) {
18067
18067
  }
18068
18068
  }
18069
18069
  rr.prototype.isArrayCamera = true;
18070
- class or extends Ct {
18070
+ class or extends Rt {
18071
18071
  constructor() {
18072
18072
  super(), this.type = "Group";
18073
18073
  }
@@ -18134,7 +18134,7 @@ var Slide = function(t) {
18134
18134
  function b2() {
18135
18135
  p2.forEach(function(t3, e3) {
18136
18136
  t3.disconnect(e3);
18137
- }), p2.clear(), _2 = null, y2 = null, n2.bindXRFramebuffer(null), t2.setRenderTarget(t2.getRenderTarget()), C2.stop(), i2.isPresenting = false, i2.dispatchEvent({ type: "sessionend" });
18137
+ }), p2.clear(), _2 = null, y2 = null, n2.bindXRFramebuffer(null), t2.setRenderTarget(t2.getRenderTarget()), R2.stop(), i2.isPresenting = false, i2.dispatchEvent({ type: "sessionend" });
18138
18138
  }
18139
18139
  function T2(t3) {
18140
18140
  const e3 = r2.inputSources;
@@ -18179,7 +18179,7 @@ var Slide = function(t) {
18179
18179
  const n3 = { colorFormat: t4.alpha ? 6408 : 6407, depthFormat: i3, scaleFactor: o2 };
18180
18180
  h2 = new XRWebGLBinding(r2, e2), c2 = h2.createProjectionLayer(n3), u2 = e2.createFramebuffer(), r2.updateRenderState({ layers: [c2] });
18181
18181
  }
18182
- s2 = await r2.requestReferenceSpace(a2), C2.setContext(r2), C2.start(), i2.isPresenting = true, i2.dispatchEvent({ type: "sessionstart" });
18182
+ s2 = await r2.requestReferenceSpace(a2), R2.setContext(r2), R2.start(), i2.isPresenting = true, i2.dispatchEvent({ type: "sessionstart" });
18183
18183
  }
18184
18184
  };
18185
18185
  const S2 = new M(), w2 = new M();
@@ -18208,9 +18208,9 @@ var Slide = function(t) {
18208
18208
  }, this.getCamera = function() {
18209
18209
  return v2;
18210
18210
  };
18211
- let R2 = null;
18212
- const C2 = new Ze();
18213
- C2.setAnimationLoop(function(t3, i3) {
18211
+ let C2 = null;
18212
+ const R2 = new Ze();
18213
+ R2.setAnimationLoop(function(t3, i3) {
18214
18214
  if (l2 = i3.getViewerPose(s2), l2 !== null) {
18215
18215
  const t4 = l2.views, i4 = r2.renderState.baseLayer;
18216
18216
  r2.renderState.layers === void 0 && n2.bindXRFramebuffer(i4.framebuffer);
@@ -18234,9 +18234,9 @@ var Slide = function(t) {
18234
18234
  const e3 = d2[t4], n3 = o3[t4];
18235
18235
  e3.update(n3, i3, s2);
18236
18236
  }
18237
- R2 && R2(t3, i3);
18237
+ C2 && C2(t3, i3);
18238
18238
  }), this.setAnimationLoop = function(t3) {
18239
- R2 = t3;
18239
+ C2 = t3;
18240
18240
  }, this.dispose = function() {
18241
18241
  };
18242
18242
  }
@@ -18326,8 +18326,8 @@ var Slide = function(t) {
18326
18326
  const m2 = this;
18327
18327
  let g2 = false, v2 = 0, _2 = 0, y2 = null, x2 = -1, b2 = null;
18328
18328
  const T2 = new E(), A2 = new E();
18329
- let R2 = null, C2 = e2.width, I2 = e2.height, P2 = 1, O2 = null, N2 = null;
18330
- const L2 = new E(0, 0, C2, I2), D2 = new E(0, 0, C2, I2);
18329
+ let C2 = null, R2 = e2.width, I2 = e2.height, P2 = 1, O2 = null, N2 = null;
18330
+ const L2 = new E(0, 0, R2, I2), D2 = new E(0, 0, R2, I2);
18331
18331
  let F2 = false;
18332
18332
  const B2 = [], U2 = new qe();
18333
18333
  let k2 = false, G2 = false, H2 = null;
@@ -18394,15 +18394,15 @@ var Slide = function(t) {
18394
18394
  }, this.getPixelRatio = function() {
18395
18395
  return P2;
18396
18396
  }, this.setPixelRatio = function(t3) {
18397
- t3 !== void 0 && (P2 = t3, this.setSize(C2, I2, false));
18397
+ t3 !== void 0 && (P2 = t3, this.setSize(R2, I2, false));
18398
18398
  }, this.getSize = function(t3) {
18399
- return t3.set(C2, I2);
18399
+ return t3.set(R2, I2);
18400
18400
  }, this.setSize = function(t3, i3, n3) {
18401
- _t2.isPresenting ? console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.") : (C2 = t3, I2 = i3, e2.width = Math.floor(t3 * P2), e2.height = Math.floor(i3 * P2), n3 !== false && (e2.style.width = t3 + "px", e2.style.height = i3 + "px"), this.setViewport(0, 0, t3, i3));
18401
+ _t2.isPresenting ? console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.") : (R2 = t3, I2 = i3, e2.width = Math.floor(t3 * P2), e2.height = Math.floor(i3 * P2), n3 !== false && (e2.style.width = t3 + "px", e2.style.height = i3 + "px"), this.setViewport(0, 0, t3, i3));
18402
18402
  }, this.getDrawingBufferSize = function(t3) {
18403
- return t3.set(C2 * P2, I2 * P2).floor();
18403
+ return t3.set(R2 * P2, I2 * P2).floor();
18404
18404
  }, this.setDrawingBufferSize = function(t3, i3, n3) {
18405
- C2 = t3, I2 = i3, P2 = n3, e2.width = Math.floor(t3 * n3), e2.height = Math.floor(i3 * n3), this.setViewport(0, 0, t3, i3);
18405
+ R2 = t3, I2 = i3, P2 = n3, e2.width = Math.floor(t3 * n3), e2.height = Math.floor(i3 * n3), this.setViewport(0, 0, t3, i3);
18406
18406
  }, this.getCurrentViewport = function(t3) {
18407
18407
  return t3.copy(T2);
18408
18408
  }, this.getViewport = function(t3) {
@@ -18486,10 +18486,10 @@ var Slide = function(t) {
18486
18486
  if (i3)
18487
18487
  if (Array.isArray(i3))
18488
18488
  for (let n3 = 0; n3 < i3.length; n3++) {
18489
- Rt2(i3[n3], t3, e4);
18489
+ Ct2(i3[n3], t3, e4);
18490
18490
  }
18491
18491
  else
18492
- Rt2(i3, t3, e4);
18492
+ Ct2(i3, t3, e4);
18493
18493
  });
18494
18494
  };
18495
18495
  let Tt2 = null;
@@ -18526,7 +18526,7 @@ var Slide = function(t) {
18526
18526
  r3.transparent === true && r3.side === 2 ? (r3.side = 1, r3.needsUpdate = true, m2.renderBufferDirect(i3, e3, n3, r3, t3, o3), r3.side = 0, r3.needsUpdate = true, m2.renderBufferDirect(i3, e3, n3, r3, t3, o3), r3.side = 2) : m2.renderBufferDirect(i3, e3, n3, r3, t3, o3);
18527
18527
  t3.onAfterRender(m2, e3, i3, n3, r3, o3);
18528
18528
  }
18529
- function Rt2(t3, e3, i3) {
18529
+ function Ct2(t3, e3, i3) {
18530
18530
  e3.isScene !== true && (e3 = V2);
18531
18531
  const n3 = J2.get(t3), r3 = d2.state.lights, o3 = d2.state.shadowsArray, s3 = r3.state.version, a3 = it2.getParameters(t3, r3.state, o3, e3, i3), l3 = it2.getProgramCacheKey(a3);
18532
18532
  let h3 = n3.programs;
@@ -18534,17 +18534,17 @@ var Slide = function(t) {
18534
18534
  let u3 = h3.get(l3);
18535
18535
  if (u3 !== void 0) {
18536
18536
  if (n3.currentProgram === u3 && n3.lightsStateVersion === s3)
18537
- return Ct2(t3, a3), u3;
18537
+ return Rt2(t3, a3), u3;
18538
18538
  } else
18539
18539
  a3.uniforms = it2.getUniforms(t3), t3.onBuild(a3, m2), t3.onBeforeCompile(a3, m2), u3 = it2.acquireProgram(a3, l3), h3.set(l3, u3), n3.uniforms = a3.uniforms;
18540
18540
  const c3 = n3.uniforms;
18541
- (t3.isShaderMaterial || t3.isRawShaderMaterial) && t3.clipping !== true || (c3.clippingPlanes = at2.uniform), Ct2(t3, a3), n3.needsLights = function(t4) {
18541
+ (t3.isShaderMaterial || t3.isRawShaderMaterial) && t3.clipping !== true || (c3.clippingPlanes = at2.uniform), Rt2(t3, a3), n3.needsLights = function(t4) {
18542
18542
  return t4.isMeshLambertMaterial || t4.isMeshToonMaterial || t4.isMeshPhongMaterial || t4.isMeshStandardMaterial || t4.isShadowMaterial || t4.isShaderMaterial && t4.lights === true;
18543
18543
  }(t3), n3.lightsStateVersion = s3, n3.needsLights && (c3.ambientLightColor.value = r3.state.ambient, c3.lightProbe.value = r3.state.probe, c3.directionalLights.value = r3.state.directional, c3.directionalLightShadows.value = r3.state.directionalShadow, c3.spotLights.value = r3.state.spot, c3.spotLightShadows.value = r3.state.spotShadow, c3.rectAreaLights.value = r3.state.rectArea, c3.ltc_1.value = r3.state.rectAreaLTC1, c3.ltc_2.value = r3.state.rectAreaLTC2, c3.pointLights.value = r3.state.point, c3.pointLightShadows.value = r3.state.pointShadow, c3.hemisphereLights.value = r3.state.hemi, c3.directionalShadowMap.value = r3.state.directionalShadowMap, c3.directionalShadowMatrix.value = r3.state.directionalShadowMatrix, c3.spotShadowMap.value = r3.state.spotShadowMap, c3.spotShadowMatrix.value = r3.state.spotShadowMatrix, c3.pointShadowMap.value = r3.state.pointShadowMap, c3.pointShadowMatrix.value = r3.state.pointShadowMatrix);
18544
18544
  const p3 = u3.getUniforms(), f3 = yn.seqWithValue(p3.seq, c3);
18545
18545
  return n3.currentProgram = u3, n3.uniformsList = f3, u3;
18546
18546
  }
18547
- function Ct2(t3, e3) {
18547
+ function Rt2(t3, e3) {
18548
18548
  const i3 = J2.get(t3);
18549
18549
  i3.outputEncoding = e3.outputEncoding, i3.instancing = e3.instancing, i3.skinning = e3.skinning, i3.numClippingPlanes = e3.numClippingPlanes, i3.numIntersection = e3.numClipIntersection, i3.vertexAlphas = e3.vertexAlphas;
18550
18550
  }
@@ -18558,7 +18558,7 @@ var Slide = function(t) {
18558
18558
  let c3 = false;
18559
18559
  i3.version === h3.__version ? h3.needsLights && h3.lightsStateVersion !== u3.state.version || h3.outputEncoding !== s3 || n3.isInstancedMesh && h3.instancing === false ? c3 = true : n3.isInstancedMesh || h3.instancing !== true ? n3.isSkinnedMesh && h3.skinning === false ? c3 = true : n3.isSkinnedMesh || h3.skinning !== true ? h3.envMap !== a3 || i3.fog && h3.fog !== r3 ? c3 = true : h3.numClippingPlanes === void 0 || h3.numClippingPlanes === at2.numPlanes && h3.numIntersection === at2.numIntersection ? h3.vertexAlphas !== l3 && (c3 = true) : c3 = true : c3 = true : c3 = true : (c3 = true, h3.__version = i3.version);
18560
18560
  let p3 = h3.currentProgram;
18561
- c3 === true && (p3 = Rt2(i3, e3, n3));
18561
+ c3 === true && (p3 = Ct2(i3, e3, n3));
18562
18562
  let f3 = false, g3 = false, v3 = false;
18563
18563
  const _3 = p3.getUniforms(), T3 = h3.uniforms;
18564
18564
  if (q2.useProgram(p3.program) && (f3 = true, g3 = true, v3 = true), i3.id !== x2 && (x2 = i3.id, g3 = true), f3 || b2 !== t3) {
@@ -18646,9 +18646,9 @@ var Slide = function(t) {
18646
18646
  const i4 = t3.texture;
18647
18647
  (i4.isDataTexture3D || i4.isDataTexture2DArray) && (o3 = true);
18648
18648
  const s3 = J2.get(t3).__webglFramebuffer;
18649
- t3.isWebGLCubeRenderTarget ? (n3 = s3[e3], r3 = true) : n3 = t3.isWebGLMultisampleRenderTarget ? J2.get(t3).__webglMultisampledFramebuffer : s3, T2.copy(t3.viewport), A2.copy(t3.scissor), R2 = t3.scissorTest;
18649
+ t3.isWebGLCubeRenderTarget ? (n3 = s3[e3], r3 = true) : n3 = t3.isWebGLMultisampleRenderTarget ? J2.get(t3).__webglMultisampledFramebuffer : s3, T2.copy(t3.viewport), A2.copy(t3.scissor), C2 = t3.scissorTest;
18650
18650
  } else
18651
- T2.copy(L2).multiplyScalar(P2).floor(), A2.copy(D2).multiplyScalar(P2).floor(), R2 = F2;
18651
+ T2.copy(L2).multiplyScalar(P2).floor(), A2.copy(D2).multiplyScalar(P2).floor(), C2 = F2;
18652
18652
  if (q2.bindFramebuffer(36160, n3) && Y2.drawBuffers) {
18653
18653
  let e4 = false;
18654
18654
  if (t3)
@@ -18665,7 +18665,7 @@ var Slide = function(t) {
18665
18665
  B2.length === 1 && B2[0] === 1029 || (B2[0] = 1029, B2.length = 1, e4 = true);
18666
18666
  e4 && (Y2.isWebGL2 ? mt2.drawBuffers(B2) : W2.get("WEBGL_draw_buffers").drawBuffersWEBGL(B2));
18667
18667
  }
18668
- if (q2.viewport(T2), q2.scissor(A2), q2.setScissorTest(R2), r3) {
18668
+ if (q2.viewport(T2), q2.scissor(A2), q2.setScissorTest(C2), r3) {
18669
18669
  const n4 = J2.get(t3.texture);
18670
18670
  mt2.framebufferTexture2D(36160, 36064, 34069 + e3, n4.__webglTexture, i3);
18671
18671
  } else if (o3) {
@@ -18721,7 +18721,7 @@ var Slide = function(t) {
18721
18721
  }
18722
18722
  (class extends ur {
18723
18723
  }).prototype.isWebGL1Renderer = true;
18724
- class pr extends Ct {
18724
+ class pr extends Rt {
18725
18725
  constructor() {
18726
18726
  super(), this.type = "Scene", this.background = null, this.environment = null, this.fog = null, this.overrideMaterial = null, this.autoUpdate = true, typeof __THREE_DEVTOOLS__ != "undefined" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
18727
18727
  }
@@ -18871,8 +18871,8 @@ var Slide = function(t) {
18871
18871
  }
18872
18872
  let _r;
18873
18873
  vr.prototype.isSpriteMaterial = true;
18874
- const yr = new M(), xr = new M(), br = new M(), Tr = new g(), Er = new g(), Sr = new rt(), wr = new M(), Ar = new M(), Mr = new M(), Rr = new g(), Cr = new g(), Ir = new g();
18875
- class Pr extends Ct {
18874
+ const yr = new M(), xr = new M(), br = new M(), Tr = new g(), Er = new g(), Sr = new rt(), wr = new M(), Ar = new M(), Mr = new M(), Cr = new g(), Rr = new g(), Ir = new g();
18875
+ class Pr extends Rt {
18876
18876
  constructor(t2) {
18877
18877
  if (super(), this.type = "Sprite", _r === void 0) {
18878
18878
  _r = new de();
@@ -18887,12 +18887,12 @@ var Slide = function(t) {
18887
18887
  let n2, r2;
18888
18888
  i2 !== 0 && (r2 = Math.cos(i2), n2 = Math.sin(i2));
18889
18889
  const o2 = this.center;
18890
- Or(wr.set(-0.5, -0.5, 0), br, o2, xr, n2, r2), Or(Ar.set(0.5, -0.5, 0), br, o2, xr, n2, r2), Or(Mr.set(0.5, 0.5, 0), br, o2, xr, n2, r2), Rr.set(0, 0), Cr.set(1, 0), Ir.set(1, 1);
18890
+ Or(wr.set(-0.5, -0.5, 0), br, o2, xr, n2, r2), Or(Ar.set(0.5, -0.5, 0), br, o2, xr, n2, r2), Or(Mr.set(0.5, 0.5, 0), br, o2, xr, n2, r2), Cr.set(0, 0), Rr.set(1, 0), Ir.set(1, 1);
18891
18891
  let s2 = t2.ray.intersectTriangle(wr, Ar, Mr, false, yr);
18892
- if (s2 === null && (Or(Ar.set(-0.5, 0.5, 0), br, o2, xr, n2, r2), Cr.set(0, 1), s2 = t2.ray.intersectTriangle(wr, Mr, Ar, false, yr), s2 === null))
18892
+ if (s2 === null && (Or(Ar.set(-0.5, 0.5, 0), br, o2, xr, n2, r2), Rr.set(0, 1), s2 = t2.ray.intersectTriangle(wr, Mr, Ar, false, yr), s2 === null))
18893
18893
  return;
18894
18894
  const a2 = t2.ray.origin.distanceTo(yr);
18895
- a2 < t2.near || a2 > t2.far || e2.push({ distance: a2, point: yr.clone(), uv: Gt.getUV(yr, wr, Ar, Mr, Rr, Cr, Ir, new g()), face: null, object: this });
18895
+ a2 < t2.near || a2 > t2.far || e2.push({ distance: a2, point: yr.clone(), uv: Gt.getUV(yr, wr, Ar, Mr, Cr, Rr, Ir, new g()), face: null, object: this });
18896
18896
  }
18897
18897
  copy(t2) {
18898
18898
  return super.copy(t2), t2.center !== void 0 && this.center.copy(t2.center), this.material = t2.material, this;
@@ -18941,7 +18941,7 @@ var Slide = function(t) {
18941
18941
  }
18942
18942
  }
18943
18943
  Ur.prototype.isSkinnedMesh = true;
18944
- class kr extends Ct {
18944
+ class kr extends Rt {
18945
18945
  constructor() {
18946
18946
  super(), this.type = "Bone";
18947
18947
  }
@@ -19002,7 +19002,7 @@ var Slide = function(t) {
19002
19002
  }
19003
19003
  Wr.prototype.isLineBasicMaterial = true;
19004
19004
  const Yr = new M(), qr = new M(), Zr = new rt(), Jr = new nt(), Kr = new Z();
19005
- class Qr extends Ct {
19005
+ class Qr extends Rt {
19006
19006
  constructor(t2 = new de(), e2 = new Wr()) {
19007
19007
  super(), this.type = "Line", this.geometry = t2, this.material = e2, this.updateMorphTargets();
19008
19008
  }
@@ -19112,7 +19112,7 @@ var Slide = function(t) {
19112
19112
  }
19113
19113
  no.prototype.isPointsMaterial = true;
19114
19114
  const ro = new rt(), oo = new nt(), so = new Z(), ao = new M();
19115
- class lo extends Ct {
19115
+ class lo extends Rt {
19116
19116
  constructor(t2 = new de(), e2 = new no()) {
19117
19117
  super(), this.type = "Points", this.geometry = t2, this.material = e2, this.updateMorphTargets();
19118
19118
  }
@@ -19532,7 +19532,7 @@ var Slide = function(t) {
19532
19532
  }
19533
19533
  }
19534
19534
  Mo.prototype.isQuadraticBezierCurve = true;
19535
- class Ro extends co {
19535
+ class Co extends co {
19536
19536
  constructor(t2 = new M(), e2 = new M(), i2 = new M()) {
19537
19537
  super(), this.type = "QuadraticBezierCurve3", this.v0 = t2, this.v1 = e2, this.v2 = i2;
19538
19538
  }
@@ -19551,8 +19551,8 @@ var Slide = function(t) {
19551
19551
  return super.fromJSON(t2), this.v0.fromArray(t2.v0), this.v1.fromArray(t2.v1), this.v2.fromArray(t2.v2), this;
19552
19552
  }
19553
19553
  }
19554
- Ro.prototype.isQuadraticBezierCurve3 = true;
19555
- class Co extends co {
19554
+ Co.prototype.isQuadraticBezierCurve3 = true;
19555
+ class Ro extends co {
19556
19556
  constructor(t2 = []) {
19557
19557
  super(), this.type = "SplineCurve", this.points = t2;
19558
19558
  }
@@ -19586,7 +19586,7 @@ var Slide = function(t) {
19586
19586
  return this;
19587
19587
  }
19588
19588
  }
19589
- Co.prototype.isSplineCurve = true;
19589
+ Ro.prototype.isSplineCurve = true;
19590
19590
  var Io = Object.freeze({ __proto__: null, ArcCurve: fo, CatmullRomCurve3: xo, CubicBezierCurve: So, CubicBezierCurve3: wo, EllipseCurve: po, LineCurve: Ao, LineCurve3: class extends co {
19591
19591
  constructor(t2 = new M(), e2 = new M()) {
19592
19592
  super(), this.type = "LineCurve3", this.isLineCurve3 = true, this.v1 = t2, this.v2 = e2;
@@ -19608,7 +19608,7 @@ var Slide = function(t) {
19608
19608
  fromJSON(t2) {
19609
19609
  return super.fromJSON(t2), this.v1.fromArray(t2.v1), this.v2.fromArray(t2.v2), this;
19610
19610
  }
19611
- }, QuadraticBezierCurve: Mo, QuadraticBezierCurve3: Ro, SplineCurve: Co });
19611
+ }, QuadraticBezierCurve: Mo, QuadraticBezierCurve3: Co, SplineCurve: Ro });
19612
19612
  const Po = function(t2, e2, i2 = 2) {
19613
19613
  const n2 = e2 && e2.length, r2 = n2 ? e2[0] * i2 : t2.length;
19614
19614
  let o2 = Oo(t2, 0, r2, i2, true);
@@ -19915,12 +19915,12 @@ var Slide = function(t) {
19915
19915
  is.isClockWise(e4) && (w2[t4] = e4.reverse());
19916
19916
  }
19917
19917
  }
19918
- const A2 = is.triangulateShape(S2, w2), R2 = S2;
19918
+ const A2 = is.triangulateShape(S2, w2), C2 = S2;
19919
19919
  for (let t4 = 0, e3 = w2.length; t4 < e3; t4++) {
19920
19920
  const e4 = w2[t4];
19921
19921
  S2 = S2.concat(e4);
19922
19922
  }
19923
- function C2(t4, e3, i3) {
19923
+ function R2(t4, e3, i3) {
19924
19924
  return e3 || console.error("THREE.ExtrudeGeometry: vec does not exist"), e3.clone().multiplyScalar(i3).add(t4);
19925
19925
  }
19926
19926
  const I2 = S2.length, P2 = A2.length;
@@ -19941,8 +19941,8 @@ var Slide = function(t) {
19941
19941
  return new g(n3 / o4, r3 / o4);
19942
19942
  }
19943
19943
  const N2 = [];
19944
- for (let t4 = 0, e3 = R2.length, i3 = e3 - 1, n3 = t4 + 1; t4 < e3; t4++, i3++, n3++)
19945
- i3 === e3 && (i3 = 0), n3 === e3 && (n3 = 0), N2[t4] = O2(R2[t4], R2[i3], R2[n3]);
19944
+ for (let t4 = 0, e3 = C2.length, i3 = e3 - 1, n3 = t4 + 1; t4 < e3; t4++, i3++, n3++)
19945
+ i3 === e3 && (i3 = 0), n3 === e3 && (n3 = 0), N2[t4] = O2(C2[t4], C2[i3], C2[n3]);
19946
19946
  const L2 = [];
19947
19947
  let D2, F2 = N2.concat();
19948
19948
  for (let t4 = 0, e3 = w2.length; t4 < e3; t4++) {
@@ -19954,40 +19954,40 @@ var Slide = function(t) {
19954
19954
  }
19955
19955
  for (let t4 = 0; t4 < p2; t4++) {
19956
19956
  const e3 = t4 / p2, i3 = u2 * Math.cos(e3 * Math.PI / 2), n3 = c2 * Math.sin(e3 * Math.PI / 2) + d2;
19957
- for (let t5 = 0, e4 = R2.length; t5 < e4; t5++) {
19958
- const e5 = C2(R2[t5], N2[t5], n3);
19957
+ for (let t5 = 0, e4 = C2.length; t5 < e4; t5++) {
19958
+ const e5 = R2(C2[t5], N2[t5], n3);
19959
19959
  k2(e5.x, e5.y, -i3);
19960
19960
  }
19961
19961
  for (let t5 = 0, e4 = w2.length; t5 < e4; t5++) {
19962
19962
  const e5 = w2[t5];
19963
19963
  D2 = L2[t5];
19964
19964
  for (let t6 = 0, r3 = e5.length; t6 < r3; t6++) {
19965
- const r4 = C2(e5[t6], D2[t6], n3);
19965
+ const r4 = R2(e5[t6], D2[t6], n3);
19966
19966
  k2(r4.x, r4.y, -i3);
19967
19967
  }
19968
19968
  }
19969
19969
  }
19970
19970
  const B2 = c2 + d2;
19971
19971
  for (let t4 = 0; t4 < I2; t4++) {
19972
- const e3 = h2 ? C2(S2[t4], F2[t4], B2) : S2[t4];
19972
+ const e3 = h2 ? R2(S2[t4], F2[t4], B2) : S2[t4];
19973
19973
  T2 ? (x2.copy(_2.normals[0]).multiplyScalar(e3.x), y2.copy(_2.binormals[0]).multiplyScalar(e3.y), b2.copy(v2[0]).add(x2).add(y2), k2(b2.x, b2.y, b2.z)) : k2(e3.x, e3.y, 0);
19974
19974
  }
19975
19975
  for (let t4 = 1; t4 <= a2; t4++)
19976
19976
  for (let e3 = 0; e3 < I2; e3++) {
19977
- const i3 = h2 ? C2(S2[e3], F2[e3], B2) : S2[e3];
19977
+ const i3 = h2 ? R2(S2[e3], F2[e3], B2) : S2[e3];
19978
19978
  T2 ? (x2.copy(_2.normals[t4]).multiplyScalar(i3.x), y2.copy(_2.binormals[t4]).multiplyScalar(i3.y), b2.copy(v2[t4]).add(x2).add(y2), k2(b2.x, b2.y, b2.z)) : k2(i3.x, i3.y, l2 / a2 * t4);
19979
19979
  }
19980
19980
  for (let t4 = p2 - 1; t4 >= 0; t4--) {
19981
19981
  const e3 = t4 / p2, i3 = u2 * Math.cos(e3 * Math.PI / 2), n3 = c2 * Math.sin(e3 * Math.PI / 2) + d2;
19982
- for (let t5 = 0, e4 = R2.length; t5 < e4; t5++) {
19983
- const e5 = C2(R2[t5], N2[t5], n3);
19982
+ for (let t5 = 0, e4 = C2.length; t5 < e4; t5++) {
19983
+ const e5 = R2(C2[t5], N2[t5], n3);
19984
19984
  k2(e5.x, e5.y, l2 + i3);
19985
19985
  }
19986
19986
  for (let t5 = 0, e4 = w2.length; t5 < e4; t5++) {
19987
19987
  const e5 = w2[t5];
19988
19988
  D2 = L2[t5];
19989
19989
  for (let t6 = 0, r3 = e5.length; t6 < r3; t6++) {
19990
- const r4 = C2(e5[t6], D2[t6], n3);
19990
+ const r4 = R2(e5[t6], D2[t6], n3);
19991
19991
  T2 ? k2(r4.x, r4.y + v2[a2 - 1].y, v2[a2 - 1].x + i3) : k2(r4.x, r4.y, l2 + i3);
19992
19992
  }
19993
19993
  }
@@ -20050,7 +20050,7 @@ var Slide = function(t) {
20050
20050
  }(), function() {
20051
20051
  const t4 = n2.length / 3;
20052
20052
  let e3 = 0;
20053
- U2(R2, e3), e3 += R2.length;
20053
+ U2(C2, e3), e3 += C2.length;
20054
20054
  for (let t5 = 0, i3 = w2.length; t5 < i3; t5++) {
20055
20055
  const i4 = w2[t5];
20056
20056
  U2(i4, e3), e3 += i4.length;
@@ -20668,15 +20668,15 @@ var Slide = function(t) {
20668
20668
  return r2;
20669
20669
  }
20670
20670
  }
20671
- class Rs extends Es {
20671
+ class Cs extends Es {
20672
20672
  InterpolantFactoryMethodLinear(t2) {
20673
20673
  return new Ms(this.times, this.values, this.getValueSize(), t2);
20674
20674
  }
20675
20675
  }
20676
- Rs.prototype.ValueTypeName = "quaternion", Rs.prototype.DefaultInterpolation = 2301, Rs.prototype.InterpolantFactoryMethodSmooth = void 0;
20677
- class Cs extends Es {
20676
+ Cs.prototype.ValueTypeName = "quaternion", Cs.prototype.DefaultInterpolation = 2301, Cs.prototype.InterpolantFactoryMethodSmooth = void 0;
20677
+ class Rs extends Es {
20678
20678
  }
20679
- Cs.prototype.ValueTypeName = "string", Cs.prototype.ValueBufferType = Array, Cs.prototype.DefaultInterpolation = 2300, Cs.prototype.InterpolantFactoryMethodLinear = void 0, Cs.prototype.InterpolantFactoryMethodSmooth = void 0;
20679
+ Rs.prototype.ValueTypeName = "string", Rs.prototype.ValueBufferType = Array, Rs.prototype.DefaultInterpolation = 2300, Rs.prototype.InterpolantFactoryMethodLinear = void 0, Rs.prototype.InterpolantFactoryMethodSmooth = void 0;
20680
20680
  class Is extends Es {
20681
20681
  }
20682
20682
  Is.prototype.ValueTypeName = "vector";
@@ -20765,7 +20765,7 @@ var Slide = function(t) {
20765
20765
  a2 = t4.length * (o2 || 1);
20766
20766
  } else {
20767
20767
  const o3 = ".bones[" + e2[t3].name + "]";
20768
- i2(Is, o3 + ".position", r3, "pos", n2), i2(Rs, o3 + ".quaternion", r3, "rot", n2), i2(Is, o3 + ".scale", r3, "scl", n2);
20768
+ i2(Is, o3 + ".position", r3, "pos", n2), i2(Cs, o3 + ".quaternion", r3, "rot", n2), i2(Is, o3 + ".scale", r3, "scl", n2);
20769
20769
  }
20770
20770
  }
20771
20771
  if (n2.length === 0)
@@ -20825,12 +20825,12 @@ var Slide = function(t) {
20825
20825
  case "color":
20826
20826
  return ws;
20827
20827
  case "quaternion":
20828
- return Rs;
20828
+ return Cs;
20829
20829
  case "bool":
20830
20830
  case "boolean":
20831
20831
  return Ss;
20832
20832
  case "string":
20833
- return Cs;
20833
+ return Rs;
20834
20834
  }
20835
20835
  throw new Error("THREE.KeyframeTrack: Unsupported typeName: " + t3);
20836
20836
  }(t2.type);
@@ -21174,7 +21174,7 @@ var Slide = function(t) {
21174
21174
  return this.curves.push(s2), this.currentPoint.set(r2, o2), this;
21175
21175
  }
21176
21176
  splineThru(t2) {
21177
- const e2 = [this.currentPoint.clone()].concat(t2), i2 = new Co(e2);
21177
+ const e2 = [this.currentPoint.clone()].concat(t2), i2 = new Ro(e2);
21178
21178
  return this.curves.push(i2), this.currentPoint.copy(t2[t2.length - 1]), this;
21179
21179
  }
21180
21180
  arc(t2, e2, i2, n2, r2, o2) {
@@ -21248,7 +21248,7 @@ var Slide = function(t) {
21248
21248
  return this;
21249
21249
  }
21250
21250
  }
21251
- class Xs extends Ct {
21251
+ class Xs extends Rt {
21252
21252
  constructor(t2, e2 = 1) {
21253
21253
  super(), this.type = "Light", this.color = new Zt(t2), this.intensity = e2;
21254
21254
  }
@@ -21265,7 +21265,7 @@ var Slide = function(t) {
21265
21265
  Xs.prototype.isLight = true;
21266
21266
  class Ws extends Xs {
21267
21267
  constructor(t2, e2, i2) {
21268
- super(t2, i2), this.type = "HemisphereLight", this.position.copy(Ct.DefaultUp), this.updateMatrix(), this.groundColor = new Zt(e2);
21268
+ super(t2, i2), this.type = "HemisphereLight", this.position.copy(Rt.DefaultUp), this.updateMatrix(), this.groundColor = new Zt(e2);
21269
21269
  }
21270
21270
  copy(t2) {
21271
21271
  return Xs.prototype.copy.call(this, t2), this.groundColor.copy(t2.groundColor), this;
@@ -21322,7 +21322,7 @@ var Slide = function(t) {
21322
21322
  Ks.prototype.isSpotLightShadow = true;
21323
21323
  class Qs extends Xs {
21324
21324
  constructor(t2, e2, i2 = 0, n2 = Math.PI / 3, r2 = 0, o2 = 1) {
21325
- super(t2, e2), this.type = "SpotLight", this.position.copy(Ct.DefaultUp), this.updateMatrix(), this.target = new Ct(), this.distance = i2, this.angle = n2, this.penumbra = r2, this.decay = o2, this.shadow = new Ks();
21325
+ super(t2, e2), this.type = "SpotLight", this.position.copy(Rt.DefaultUp), this.updateMatrix(), this.target = new Rt(), this.distance = i2, this.angle = n2, this.penumbra = r2, this.decay = o2, this.shadow = new Ks();
21326
21326
  }
21327
21327
  get power() {
21328
21328
  return this.intensity * Math.PI;
@@ -21403,7 +21403,7 @@ var Slide = function(t) {
21403
21403
  oa.prototype.isDirectionalLightShadow = true;
21404
21404
  class sa extends Xs {
21405
21405
  constructor(t2, e2) {
21406
- super(t2, e2), this.type = "DirectionalLight", this.position.copy(Ct.DefaultUp), this.updateMatrix(), this.target = new Ct(), this.shadow = new oa();
21406
+ super(t2, e2), this.type = "DirectionalLight", this.position.copy(Rt.DefaultUp), this.updateMatrix(), this.target = new Rt(), this.shadow = new oa();
21407
21407
  }
21408
21408
  dispose() {
21409
21409
  this.shadow.dispose();
@@ -21631,7 +21631,7 @@ var Slide = function(t) {
21631
21631
  this.sh.coefficients[0].set(i2.r, i2.g, i2.b).multiplyScalar(2 * Math.sqrt(Math.PI));
21632
21632
  }
21633
21633
  }).prototype.isAmbientLightProbe = true;
21634
- class xa extends Ct {
21634
+ class xa extends Rt {
21635
21635
  constructor(t2) {
21636
21636
  super(), this.type = "Audio", this.listener = t2, this.context = t2.context, this.gain = this.context.createGain(), this.gain.connect(t2.getInput()), this.autoplay = false, this.buffer = null, this.detune = 0, this.loop = false, this.loopStart = 0, this.loopEnd = 0, this.offset = 0, this.duration = void 0, this.playbackRate = 1, this.isPlaying = false, this.hasPlaybackControl = true, this.source = null, this.sourceType = "empty", this._startedAt = 0, this._progress = 0, this._connected = false, this.filters = [];
21637
21637
  }
@@ -21837,7 +21837,7 @@ var Slide = function(t) {
21837
21837
  }
21838
21838
  }
21839
21839
  }
21840
- const Ta = new RegExp("[\\[\\]\\.:\\/]", "g"), Ea = "[^" + "\\[\\]\\.:\\/".replace("\\.", "") + "]", Sa = /((?:WC+[\/:])*)/.source.replace("WC", "[^\\[\\]\\.:\\/]"), wa = /(WCOD+)?/.source.replace("WCOD", Ea), Aa = /(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Ma = /\.(WC+)(?:\[(.+)\])?/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Ra = new RegExp("^" + Sa + wa + Aa + Ma + "$"), Ca = ["material", "materials", "bones"];
21840
+ const Ta = new RegExp("[\\[\\]\\.:\\/]", "g"), Ea = "[^" + "\\[\\]\\.:\\/".replace("\\.", "") + "]", Sa = /((?:WC+[\/:])*)/.source.replace("WC", "[^\\[\\]\\.:\\/]"), wa = /(WCOD+)?/.source.replace("WCOD", Ea), Aa = /(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Ma = /\.(WC+)(?:\[(.+)\])?/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Ca = new RegExp("^" + Sa + wa + Aa + Ma + "$"), Ra = ["material", "materials", "bones"];
21841
21841
  class Ia {
21842
21842
  constructor(t2, e2, i2) {
21843
21843
  this.path = e2, this.parsedPath = i2 || Ia.parseTrackName(e2), this.node = Ia.findNode(t2, this.parsedPath.nodeName) || t2, this.rootNode = t2, this.getValue = this._getValue_unbound, this.setValue = this._setValue_unbound;
@@ -21849,13 +21849,13 @@ var Slide = function(t) {
21849
21849
  return t2.replace(/\s/g, "_").replace(Ta, "");
21850
21850
  }
21851
21851
  static parseTrackName(t2) {
21852
- const e2 = Ra.exec(t2);
21852
+ const e2 = Ca.exec(t2);
21853
21853
  if (!e2)
21854
21854
  throw new Error("PropertyBinding: Cannot parse trackName: " + t2);
21855
21855
  const i2 = { nodeName: e2[2], objectName: e2[3], objectIndex: e2[4], propertyName: e2[5], propertyIndex: e2[6] }, n2 = i2.nodeName && i2.nodeName.lastIndexOf(".");
21856
21856
  if (n2 !== void 0 && n2 !== -1) {
21857
21857
  const t3 = i2.nodeName.substring(n2 + 1);
21858
- Ca.indexOf(t3) !== -1 && (i2.nodeName = i2.nodeName.substring(0, n2), i2.objectName = t3);
21858
+ Ra.indexOf(t3) !== -1 && (i2.nodeName = i2.nodeName.substring(0, n2), i2.objectName = t3);
21859
21859
  }
21860
21860
  if (i2.propertyName === null || i2.propertyName.length === 0)
21861
21861
  throw new Error("PropertyBinding: can not parse propertyName from trackName: " + t2);
@@ -22463,7 +22463,7 @@ var Slide = function(t) {
22463
22463
  new g();
22464
22464
  new M();
22465
22465
  new M();
22466
- (class extends Ct {
22466
+ (class extends Rt {
22467
22467
  constructor(t2) {
22468
22468
  super(), this.material = t2, this.render = function() {
22469
22469
  }, this.hasPositions = false, this.hasNormals = false, this.hasColors = false, this.hasUvs = false, this.positionArray = null, this.normalArray = null, this.colorArray = null, this.uvArray = null, this.count = 0;
@@ -22670,17 +22670,17 @@ var Slide = function(t) {
22670
22670
  return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."), this.fromBufferAttribute(t2, e2, i2);
22671
22671
  }, E.prototype.lengthManhattan = function() {
22672
22672
  return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."), this.manhattanLength();
22673
- }, Ct.prototype.getChildByName = function(t2) {
22673
+ }, Rt.prototype.getChildByName = function(t2) {
22674
22674
  return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."), this.getObjectByName(t2);
22675
- }, Ct.prototype.renderDepth = function() {
22675
+ }, Rt.prototype.renderDepth = function() {
22676
22676
  console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.");
22677
- }, Ct.prototype.translate = function(t2, e2) {
22677
+ }, Rt.prototype.translate = function(t2, e2) {
22678
22678
  return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."), this.translateOnAxis(e2, t2);
22679
- }, Ct.prototype.getWorldRotation = function() {
22679
+ }, Rt.prototype.getWorldRotation = function() {
22680
22680
  console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.");
22681
- }, Ct.prototype.applyMatrix = function(t2) {
22681
+ }, Rt.prototype.applyMatrix = function(t2) {
22682
22682
  return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."), this.applyMatrix4(t2);
22683
- }, Object.defineProperties(Ct.prototype, { eulerOrder: { get: function() {
22683
+ }, Object.defineProperties(Rt.prototype, { eulerOrder: { get: function() {
22684
22684
  return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."), this.rotation.order;
22685
22685
  }, set: function(t2) {
22686
22686
  console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."), this.rotation.order = t2;
@@ -22996,7 +22996,7 @@ var Slide = function(t) {
22996
22996
  var Tl = i(81), El = i.n(Tl);
22997
22997
  var Sl = i(82), wl = i.n(Sl);
22998
22998
  var Al = i(83), Ml = i.n(Al);
22999
- var Rl = i(84), Cl = i.n(Rl);
22999
+ var Cl = i(84), Rl = i.n(Cl);
23000
23000
  var Il = i(85), Pl = i.n(Il);
23001
23001
  class Ol {
23002
23002
  constructor() {
@@ -23089,8 +23089,8 @@ var Slide = function(t) {
23089
23089
  var mh = i(103), gh = i.n(mh), vh = i(104), _h = i.n(vh);
23090
23090
  var yh = i(105), xh = i.n(yh);
23091
23091
  var bh = i(46), Th = i.n(bh), Eh = i(47), Sh = i.n(Eh);
23092
- var wh = i(106), Ah = i.n(wh), Mh = i(107), Rh = i.n(Mh);
23093
- const Ch = { RandomLines: class extends nl {
23092
+ var wh = i(106), Ah = i.n(wh), Mh = i(107), Ch = i.n(Mh);
23093
+ const Rh = { RandomLines: class extends nl {
23094
23094
  constructor() {
23095
23095
  super(...arguments), this.duration = 1e3, this.fragmentShader = al.a, this.options = [{ name: "dir", value: "horz" }];
23096
23096
  }
@@ -23223,7 +23223,7 @@ var Slide = function(t) {
23223
23223
  }
23224
23224
  }, Cover: class extends nl {
23225
23225
  constructor() {
23226
- super(...arguments), this.duration = 1e3, this.fragmentShader = Cl.a, this.options = [], this.defaultDir = "right", this.optionsMap = { [this.defaultDir]: 0, d: 1, r: 2, u: 3, ld: 4, lu: 5, rd: 6, ru: 7 }, this.selfOptionsList = [{ x: -1, y: 0 }, { x: 0, y: -1 }, { x: 1, y: 0 }, { x: 0, y: 1 }, { x: -1, y: -1 }, { x: -1, y: 1 }, { x: 1, y: -1 }, { x: 1, y: 1 }];
23226
+ super(...arguments), this.duration = 1e3, this.fragmentShader = Rl.a, this.options = [], this.defaultDir = "right", this.optionsMap = { [this.defaultDir]: 0, d: 1, r: 2, u: 3, ld: 4, lu: 5, rd: 6, ru: 7 }, this.selfOptionsList = [{ x: -1, y: 0 }, { x: 0, y: -1 }, { x: 1, y: 0 }, { x: 0, y: 1 }, { x: -1, y: -1 }, { x: -1, y: 1 }, { x: 1, y: -1 }, { x: 1, y: 1 }];
23227
23227
  }
23228
23228
  applyOptions(t2) {
23229
23229
  var e2;
@@ -23506,7 +23506,7 @@ var Slide = function(t) {
23506
23506
  }
23507
23507
  }, Doors: class {
23508
23508
  constructor() {
23509
- this.camera = new Ol(), this.duration = 1600, this.options = [], this.width = 100, this.preMaterial = new Fe({ fragmentShader: Rh.a, vertexShader: Ah.a, uniforms: { prevTexture: { value: il }, timePercent: { value: 0 }, offset: { value: 0 } } }), this.prevGeometry = new de(), this.prevMesh = new Ie(), this.nextMesh = new Ie();
23509
+ this.camera = new Ol(), this.duration = 1600, this.options = [], this.width = 100, this.preMaterial = new Fe({ fragmentShader: Ch.a, vertexShader: Ah.a, uniforms: { prevTexture: { value: il }, timePercent: { value: 0 }, offset: { value: 0 } } }), this.prevGeometry = new de(), this.prevMesh = new Ie(), this.nextMesh = new Ie();
23510
23510
  }
23511
23511
  addObjects(t2) {
23512
23512
  this.prevMesh.material = this.preMaterial, this.prevMesh.geometry = this.prevGeometry, this.prevMesh.material.transparent = true, t2.add(this.prevMesh), t2.add(this.nextMesh);
@@ -23543,7 +23543,7 @@ var Slide = function(t) {
23543
23543
  };
23544
23544
  }
23545
23545
  initPlayer(t2) {
23546
- this.config = t2, this.reverse = t2.reverse, t2.delay && Number.isInteger(t2.delay) && (this.delay = t2.delay), t2.easeFn && (this.easeFn = el[t2.easeFn]), t2.maxFPS && Number.isInteger(t2.maxFPS) && t2.maxFPS > 0 && (this.renderingDuration = Math.ceil(1e3 / t2.maxFPS)), this.startTime = 0, this.lastTime = 0, this.scene.clear(), this.renderer.shadowMap.enabled = true, this.renderer.autoClear = false, this.renderer.setClearColor(t2.clearColor || 0), this.isTransactionStartApplied = false, this.renderer.setSize(t2.stageWidth, t2.stageHeight), this.preset = new Ch[t2.presetType](), t2.options && (this.preset.options = t2.options), t2.duration && Number.isInteger(t2.duration) && (this.preset.duration = t2.duration), this.preset.setSize(t2.stageWidth, t2.stageHeight);
23546
+ this.config = t2, this.reverse = t2.reverse, t2.delay && Number.isInteger(t2.delay) && (this.delay = t2.delay), t2.easeFn && (this.easeFn = el[t2.easeFn]), t2.maxFPS && Number.isInteger(t2.maxFPS) && t2.maxFPS > 0 && (this.renderingDuration = Math.ceil(1e3 / t2.maxFPS)), this.startTime = 0, this.lastTime = 0, this.scene.clear(), this.renderer.shadowMap.enabled = true, this.renderer.autoClear = false, this.renderer.setClearColor(t2.clearColor || 0), this.isTransactionStartApplied = false, this.renderer.setSize(t2.stageWidth, t2.stageHeight), this.preset = new Rh[t2.presetType](), t2.options && (this.preset.options = t2.options), t2.duration && Number.isInteger(t2.duration) && (this.preset.duration = t2.duration), this.preset.setSize(t2.stageWidth, t2.stageHeight);
23547
23547
  }
23548
23548
  setPrevTexture(t2) {
23549
23549
  var e2, i2, n2, r2;
@@ -24014,7 +24014,7 @@ var Slide = function(t) {
24014
24014
  * @pixi/settings is licensed under the MIT License.
24015
24015
  * http://www.opensource.org/licenses/mit-license
24016
24016
  */
24017
- var hu, uu, cu, du, pu, fu, mu, gu, vu, _u, yu, xu, bu, Tu, Eu, Su, wu, Au, Mu, Ru = function(t2) {
24017
+ var hu, uu, cu, du, pu, fu, mu, gu, vu, _u, yu, xu, bu, Tu, Eu, Su, wu, Au, Mu, Cu = function(t2) {
24018
24018
  var e2 = { userAgent: "", platform: "", maxTouchPoints: 0 };
24019
24019
  t2 || typeof navigator == "undefined" ? typeof t2 == "string" ? e2.userAgent = t2 : t2 && t2.userAgent && (e2 = { userAgent: t2.userAgent, platform: t2.platform, maxTouchPoints: t2.maxTouchPoints || 0 }) : e2 = { userAgent: navigator.userAgent, platform: navigator.platform, maxTouchPoints: navigator.maxTouchPoints || 0 };
24020
24020
  var i2 = e2.userAgent, n2 = i2.split("[FBAN");
@@ -24065,7 +24065,7 @@ var Slide = function(t) {
24065
24065
  }(Au || (Au = {})), function(t2) {
24066
24066
  t2[t2.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", t2[t2.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", t2[t2.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER";
24067
24067
  }(Mu || (Mu = {}));
24068
- var Cu = {
24068
+ var Ru = {
24069
24069
  MIPMAP_TEXTURES: xu.POW2,
24070
24070
  ANISOTROPIC_LEVEL: 0,
24071
24071
  RESOLUTION: 1,
@@ -24073,13 +24073,13 @@ var Slide = function(t) {
24073
24073
  FILTER_MULTISAMPLE: Au.NONE,
24074
24074
  SPRITE_MAX_TEXTURES: function(t2) {
24075
24075
  var e2 = true;
24076
- if (Ru.tablet || Ru.phone) {
24076
+ if (Cu.tablet || Cu.phone) {
24077
24077
  var i2;
24078
- if (Ru.apple.device) {
24078
+ if (Cu.apple.device) {
24079
24079
  if (i2 = navigator.userAgent.match(/OS (\d+)_(\d+)?/))
24080
24080
  parseInt(i2[1], 10) < 11 && (e2 = false);
24081
24081
  }
24082
- if (Ru.android.device) {
24082
+ if (Cu.android.device) {
24083
24083
  if (i2 = navigator.userAgent.match(/Android\s([0-9.]*)/))
24084
24084
  parseInt(i2[1], 10) < 7 && (e2 = false);
24085
24085
  }
@@ -24094,8 +24094,8 @@ var Slide = function(t) {
24094
24094
  WRAP_MODE: yu.CLAMP,
24095
24095
  SCALE_MODE: _u.LINEAR,
24096
24096
  PRECISION_VERTEX: Su.HIGH,
24097
- PRECISION_FRAGMENT: Ru.apple.device ? Su.HIGH : Su.MEDIUM,
24098
- CAN_UPLOAD_SAME_BUFFER: !Ru.apple.device,
24097
+ PRECISION_FRAGMENT: Cu.apple.device ? Su.HIGH : Su.MEDIUM,
24098
+ CAN_UPLOAD_SAME_BUFFER: !Cu.apple.device,
24099
24099
  CREATE_IMAGE_BITMAP: false,
24100
24100
  ROUND_PIXELS: false,
24101
24101
  SORTABLE_CHILDREN: false
@@ -24329,7 +24329,7 @@ var Slide = function(t) {
24329
24329
  var ec = function(t2) {
24330
24330
  function e2() {
24331
24331
  var e3 = t2.call(this) || this;
24332
- return e3.children = [], e3.sortableChildren = Cu.SORTABLE_CHILDREN, e3.sortDirty = false, e3;
24332
+ return e3.children = [], e3.sortableChildren = Ru.SORTABLE_CHILDREN, e3.sortDirty = false, e3;
24333
24333
  }
24334
24334
  return Ou(e2, t2), e2.prototype.onChildrenChange = function(t3) {
24335
24335
  }, e2.prototype.addChild = function() {
@@ -25055,7 +25055,7 @@ var Slide = function(t) {
25055
25055
  }
25056
25056
  Ac(t2, e2), t2.prototype = e2 === null ? Object.create(e2) : (i2.prototype = e2.prototype, new i2());
25057
25057
  }
25058
- function Rc(t2, e2) {
25058
+ function Cc(t2, e2) {
25059
25059
  var i2, n2, r2, o2, s2 = { label: 0, sent: function() {
25060
25060
  if (1 & r2[0])
25061
25061
  throw r2[1];
@@ -25119,7 +25119,7 @@ var Slide = function(t) {
25119
25119
  };
25120
25120
  }
25121
25121
  }
25122
- var Cc, Ic, Pc = function(t2) {
25122
+ var Rc, Ic, Pc = function(t2) {
25123
25123
  function e2(i2, n2) {
25124
25124
  var r2 = t2.call(this, i2, n2) || this;
25125
25125
  return r2.format = n2.format, r2.levels = n2.levels || 1, r2._width = n2.width, r2._height = n2.height, r2._extension = e2._formatToExtension(r2.format), (n2.levelBuffers || r2.buffer) && (r2._levelBuffers = n2.levelBuffers || e2._createLevelBuffers(i2 instanceof Uint8Array ? i2 : r2.buffer.uint8View, r2.format, r2.levels, 4, 4, r2.width, r2.height)), r2;
@@ -25164,7 +25164,7 @@ var Slide = function(t) {
25164
25164
  }, e2.prototype.load = function() {
25165
25165
  return t3 = this, e3 = void 0, n2 = function() {
25166
25166
  var t4;
25167
- return Rc(this, function(e4) {
25167
+ return Cc(this, function(e4) {
25168
25168
  switch (e4.label) {
25169
25169
  case 0:
25170
25170
  return [4, fetch(this.origin)];
@@ -25264,7 +25264,7 @@ var Slide = function(t) {
25264
25264
  }(Lc || (Lc = {})), function(t2) {
25265
25265
  t2[t2.DDS_DIMENSION_TEXTURE1D = 2] = "DDS_DIMENSION_TEXTURE1D", t2[t2.DDS_DIMENSION_TEXTURE2D = 3] = "DDS_DIMENSION_TEXTURE2D", t2[t2.DDS_DIMENSION_TEXTURE3D = 6] = "DDS_DIMENSION_TEXTURE3D";
25266
25266
  }(Dc || (Dc = {}));
25267
- var Xc, Wc, Yc, qc = ((Cc = {})[827611204] = Ec.COMPRESSED_RGBA_S3TC_DXT1_EXT, Cc[861165636] = Ec.COMPRESSED_RGBA_S3TC_DXT3_EXT, Cc[894720068] = Ec.COMPRESSED_RGBA_S3TC_DXT5_EXT, Cc), Zc = ((Ic = {})[Lc.DXGI_FORMAT_BC1_TYPELESS] = Ec.COMPRESSED_RGBA_S3TC_DXT1_EXT, Ic[Lc.DXGI_FORMAT_BC1_UNORM] = Ec.COMPRESSED_RGBA_S3TC_DXT1_EXT, Ic[Lc.DXGI_FORMAT_BC2_TYPELESS] = Ec.COMPRESSED_RGBA_S3TC_DXT3_EXT, Ic[Lc.DXGI_FORMAT_BC2_UNORM] = Ec.COMPRESSED_RGBA_S3TC_DXT3_EXT, Ic[Lc.DXGI_FORMAT_BC3_TYPELESS] = Ec.COMPRESSED_RGBA_S3TC_DXT5_EXT, Ic[Lc.DXGI_FORMAT_BC3_UNORM] = Ec.COMPRESSED_RGBA_S3TC_DXT5_EXT, Ic[Lc.DXGI_FORMAT_BC1_UNORM_SRGB] = Ec.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT, Ic[Lc.DXGI_FORMAT_BC2_UNORM_SRGB] = Ec.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, Ic[Lc.DXGI_FORMAT_BC3_UNORM_SRGB] = Ec.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT, Ic), Jc = function() {
25267
+ var Xc, Wc, Yc, qc = ((Rc = {})[827611204] = Ec.COMPRESSED_RGBA_S3TC_DXT1_EXT, Rc[861165636] = Ec.COMPRESSED_RGBA_S3TC_DXT3_EXT, Rc[894720068] = Ec.COMPRESSED_RGBA_S3TC_DXT5_EXT, Rc), Zc = ((Ic = {})[Lc.DXGI_FORMAT_BC1_TYPELESS] = Ec.COMPRESSED_RGBA_S3TC_DXT1_EXT, Ic[Lc.DXGI_FORMAT_BC1_UNORM] = Ec.COMPRESSED_RGBA_S3TC_DXT1_EXT, Ic[Lc.DXGI_FORMAT_BC2_TYPELESS] = Ec.COMPRESSED_RGBA_S3TC_DXT3_EXT, Ic[Lc.DXGI_FORMAT_BC2_UNORM] = Ec.COMPRESSED_RGBA_S3TC_DXT3_EXT, Ic[Lc.DXGI_FORMAT_BC3_TYPELESS] = Ec.COMPRESSED_RGBA_S3TC_DXT5_EXT, Ic[Lc.DXGI_FORMAT_BC3_UNORM] = Ec.COMPRESSED_RGBA_S3TC_DXT5_EXT, Ic[Lc.DXGI_FORMAT_BC1_UNORM_SRGB] = Ec.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT, Ic[Lc.DXGI_FORMAT_BC2_UNORM_SRGB] = Ec.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, Ic[Lc.DXGI_FORMAT_BC3_UNORM_SRGB] = Ec.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT, Ic), Jc = function() {
25268
25268
  function t2() {
25269
25269
  }
25270
25270
  return t2.use = function(e2, i2) {
@@ -25359,11 +25359,11 @@ var Slide = function(t) {
25359
25359
  if (o2 === 0 && (y2 = g2 * v2), (m2 = o2 !== 0 ? hd[o2] ? hd[o2] * ud[s2] : cd[o2] : wc[a2]) === void 0)
25360
25360
  throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");
25361
25361
  for (var x2 = t2.loadKeyValueData ? t2.parseKvData(n2, f2, r2) : null, b2 = y2 * m2, T2 = l2, E2 = h2, S2 = g2, w2 = v2, A2 = 64 + f2, M2 = 0; M2 < p2; M2++) {
25362
- for (var R2 = n2.getUint32(A2, r2), C2 = A2 + 4, I2 = 0; I2 < c2; I2++) {
25362
+ for (var C2 = n2.getUint32(A2, r2), R2 = A2 + 4, I2 = 0; I2 < c2; I2++) {
25363
25363
  var P2 = _2[I2];
25364
- P2 || (P2 = _2[I2] = new Array(p2)), P2[M2] = { levelID: M2, levelWidth: p2 > 1 || o2 !== 0 ? T2 : S2, levelHeight: p2 > 1 || o2 !== 0 ? E2 : w2, levelBuffer: new Uint8Array(i2, C2, b2) }, C2 += b2;
25364
+ P2 || (P2 = _2[I2] = new Array(p2)), P2[M2] = { levelID: M2, levelWidth: p2 > 1 || o2 !== 0 ? T2 : S2, levelHeight: p2 > 1 || o2 !== 0 ? E2 : w2, levelBuffer: new Uint8Array(i2, R2, b2) }, R2 += b2;
25365
25365
  }
25366
- A2 = (A2 += R2 + 4) % 4 != 0 ? A2 + 4 - A2 % 4 : A2, b2 = (S2 = (T2 = T2 >> 1 || 1) + 4 - 1 & -4) * (w2 = (E2 = E2 >> 1 || 1) + 4 - 1 & -4) * m2;
25366
+ A2 = (A2 += C2 + 4) % 4 != 0 ? A2 + 4 - A2 % 4 : A2, b2 = (S2 = (T2 = T2 >> 1 || 1) + 4 - 1 & -4) * (w2 = (E2 = E2 >> 1 || 1) + 4 - 1 & -4) * m2;
25367
25367
  }
25368
25368
  return o2 !== 0 ? { uncompressed: _2.map(function(e3) {
25369
25369
  var i3 = e3[0].levelBuffer, n3 = false;
@@ -25680,20 +25680,20 @@ var Slide = function(t) {
25680
25680
  for (var d2 = 2; d2 < r2.length; d2 += 2)
25681
25681
  o2.push(r2[d2], r2[d2 + 1]), s2.push(a2++, l2, a2);
25682
25682
  s2.push(l2 + 1, l2, a2);
25683
- } }, Rd = { build: function(t2) {
25683
+ } }, Cd = { build: function(t2) {
25684
25684
  var e2 = t2.shape, i2 = e2.x, n2 = e2.y, r2 = e2.width, o2 = e2.height, s2 = t2.points;
25685
25685
  s2.length = 0, s2.push(i2, n2, i2 + r2, n2, i2 + r2, n2 + o2, i2, n2 + o2);
25686
25686
  }, triangulate: function(t2, e2) {
25687
25687
  var i2 = t2.points, n2 = e2.points, r2 = n2.length / 2;
25688
25688
  n2.push(i2[0], i2[1], i2[2], i2[3], i2[6], i2[7], i2[4], i2[5]), e2.indices.push(r2, r2 + 1, r2 + 2, r2 + 1, r2 + 2, r2 + 3);
25689
25689
  } };
25690
- function Cd(t2, e2, i2) {
25690
+ function Rd(t2, e2, i2) {
25691
25691
  return t2 + (e2 - t2) * i2;
25692
25692
  }
25693
25693
  function Id(t2, e2, i2, n2, r2, o2, s2) {
25694
25694
  s2 === void 0 && (s2 = []);
25695
25695
  for (var a2 = s2, l2 = 0, h2 = 0, u2 = 0, c2 = 0, d2 = 0, p2 = 0, f2 = 0, m2 = 0; f2 <= 20; ++f2)
25696
- l2 = Cd(t2, i2, m2 = f2 / 20), h2 = Cd(e2, n2, m2), u2 = Cd(i2, r2, m2), c2 = Cd(n2, o2, m2), d2 = Cd(l2, u2, m2), p2 = Cd(h2, c2, m2), f2 === 0 && a2[a2.length - 2] === d2 && a2[a2.length - 1] === p2 || a2.push(d2, p2);
25696
+ l2 = Rd(t2, i2, m2 = f2 / 20), h2 = Rd(e2, n2, m2), u2 = Rd(i2, r2, m2), c2 = Rd(n2, o2, m2), d2 = Rd(l2, u2, m2), p2 = Rd(h2, c2, m2), f2 === 0 && a2[a2.length - 2] === d2 && a2[a2.length - 1] === p2 || a2.push(d2, p2);
25697
25697
  return a2;
25698
25698
  }
25699
25699
  var Pd = { build: function(t2) {
@@ -25754,21 +25754,21 @@ var Slide = function(t) {
25754
25754
  var u2 = 0.5 * (s2.x + a2.x), c2 = 0.5 * (a2.y + s2.y);
25755
25755
  n2.unshift(u2, c2), n2.push(u2, c2);
25756
25756
  }
25757
- var d2 = e3.points, p2 = n2.length / 2, f2 = n2.length, m2 = d2.length / 2, g2 = o2.width / 2, v2 = g2 * g2, _2 = o2.miterLimit * o2.miterLimit, y2 = n2[0], x2 = n2[1], b2 = n2[2], T2 = n2[3], E2 = 0, S2 = 0, w2 = -(x2 - T2), A2 = y2 - b2, M2 = 0, R2 = 0, C2 = Math.sqrt(w2 * w2 + A2 * A2);
25758
- w2 /= C2, A2 /= C2, w2 *= g2, A2 *= g2;
25757
+ var d2 = e3.points, p2 = n2.length / 2, f2 = n2.length, m2 = d2.length / 2, g2 = o2.width / 2, v2 = g2 * g2, _2 = o2.miterLimit * o2.miterLimit, y2 = n2[0], x2 = n2[1], b2 = n2[2], T2 = n2[3], E2 = 0, S2 = 0, w2 = -(x2 - T2), A2 = y2 - b2, M2 = 0, C2 = 0, R2 = Math.sqrt(w2 * w2 + A2 * A2);
25758
+ w2 /= R2, A2 /= R2, w2 *= g2, A2 *= g2;
25759
25759
  var I2 = o2.alignment, P2 = 2 * (1 - I2), O2 = 2 * I2;
25760
25760
  l2 || (o2.cap === gd.ROUND ? f2 += Nd(y2 - w2 * (P2 - O2) * 0.5, x2 - A2 * (P2 - O2) * 0.5, y2 - w2 * P2, x2 - A2 * P2, y2 + w2 * O2, x2 + A2 * O2, d2, true) + 2 : o2.cap === gd.SQUARE && (f2 += Od(y2, x2, w2, A2, P2, O2, true, d2))), d2.push(y2 - w2 * P2, x2 - A2 * P2), d2.push(y2 + w2 * O2, x2 + A2 * O2);
25761
25761
  for (var N2 = 1; N2 < p2 - 1; ++N2) {
25762
- y2 = n2[2 * (N2 - 1)], x2 = n2[2 * (N2 - 1) + 1], b2 = n2[2 * N2], T2 = n2[2 * N2 + 1], E2 = n2[2 * (N2 + 1)], S2 = n2[2 * (N2 + 1) + 1], w2 = -(x2 - T2), A2 = y2 - b2, w2 /= C2 = Math.sqrt(w2 * w2 + A2 * A2), A2 /= C2, w2 *= g2, A2 *= g2, M2 = -(T2 - S2), R2 = b2 - E2, M2 /= C2 = Math.sqrt(M2 * M2 + R2 * R2), R2 /= C2, M2 *= g2, R2 *= g2;
25762
+ y2 = n2[2 * (N2 - 1)], x2 = n2[2 * (N2 - 1) + 1], b2 = n2[2 * N2], T2 = n2[2 * N2 + 1], E2 = n2[2 * (N2 + 1)], S2 = n2[2 * (N2 + 1) + 1], w2 = -(x2 - T2), A2 = y2 - b2, w2 /= R2 = Math.sqrt(w2 * w2 + A2 * A2), A2 /= R2, w2 *= g2, A2 *= g2, M2 = -(T2 - S2), C2 = b2 - E2, M2 /= R2 = Math.sqrt(M2 * M2 + C2 * C2), C2 /= R2, M2 *= g2, C2 *= g2;
25763
25763
  var L2 = b2 - y2, D2 = x2 - T2, F2 = b2 - E2, B2 = S2 - T2, U2 = D2 * F2 - B2 * L2, k2 = U2 < 0;
25764
25764
  if (Math.abs(U2) < 0.1)
25765
25765
  d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(b2 + w2 * O2, T2 + A2 * O2);
25766
25766
  else {
25767
- var G2 = (-w2 + y2) * (-A2 + T2) - (-w2 + b2) * (-A2 + x2), H2 = (-M2 + E2) * (-R2 + T2) - (-M2 + b2) * (-R2 + S2), j2 = (L2 * H2 - F2 * G2) / U2, z2 = (B2 * G2 - D2 * H2) / U2, V2 = (j2 - b2) * (j2 - b2) + (z2 - T2) * (z2 - T2), X2 = b2 + (j2 - b2) * P2, W2 = T2 + (z2 - T2) * P2, Y2 = b2 - (j2 - b2) * O2, q2 = T2 - (z2 - T2) * O2, Z2 = k2 ? P2 : O2;
25768
- V2 <= Math.min(L2 * L2 + D2 * D2, F2 * F2 + B2 * B2) + Z2 * Z2 * v2 ? o2.join === md.BEVEL || V2 / v2 > _2 ? (k2 ? (d2.push(X2, W2), d2.push(b2 + w2 * O2, T2 + A2 * O2), d2.push(X2, W2), d2.push(b2 + M2 * O2, T2 + R2 * O2)) : (d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(Y2, q2), d2.push(b2 - M2 * P2, T2 - R2 * P2), d2.push(Y2, q2)), f2 += 2) : o2.join === md.ROUND ? k2 ? (d2.push(X2, W2), d2.push(b2 + w2 * O2, T2 + A2 * O2), f2 += Nd(b2, T2, b2 + w2 * O2, T2 + A2 * O2, b2 + M2 * O2, T2 + R2 * O2, d2, true) + 4, d2.push(X2, W2), d2.push(b2 + M2 * O2, T2 + R2 * O2)) : (d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(Y2, q2), f2 += Nd(b2, T2, b2 - w2 * P2, T2 - A2 * P2, b2 - M2 * P2, T2 - R2 * P2, d2, false) + 4, d2.push(b2 - M2 * P2, T2 - R2 * P2), d2.push(Y2, q2)) : (d2.push(X2, W2), d2.push(Y2, q2)) : (d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(b2 + w2 * O2, T2 + A2 * O2), o2.join === md.ROUND ? f2 += k2 ? Nd(b2, T2, b2 + w2 * O2, T2 + A2 * O2, b2 + M2 * O2, T2 + R2 * O2, d2, true) + 2 : Nd(b2, T2, b2 - w2 * P2, T2 - A2 * P2, b2 - M2 * P2, T2 - R2 * P2, d2, false) + 2 : o2.join === md.MITER && V2 / v2 <= _2 && (k2 ? (d2.push(Y2, q2), d2.push(Y2, q2)) : (d2.push(X2, W2), d2.push(X2, W2)), f2 += 2), d2.push(b2 - M2 * P2, T2 - R2 * P2), d2.push(b2 + M2 * O2, T2 + R2 * O2), f2 += 2);
25767
+ var G2 = (-w2 + y2) * (-A2 + T2) - (-w2 + b2) * (-A2 + x2), H2 = (-M2 + E2) * (-C2 + T2) - (-M2 + b2) * (-C2 + S2), j2 = (L2 * H2 - F2 * G2) / U2, z2 = (B2 * G2 - D2 * H2) / U2, V2 = (j2 - b2) * (j2 - b2) + (z2 - T2) * (z2 - T2), X2 = b2 + (j2 - b2) * P2, W2 = T2 + (z2 - T2) * P2, Y2 = b2 - (j2 - b2) * O2, q2 = T2 - (z2 - T2) * O2, Z2 = k2 ? P2 : O2;
25768
+ V2 <= Math.min(L2 * L2 + D2 * D2, F2 * F2 + B2 * B2) + Z2 * Z2 * v2 ? o2.join === md.BEVEL || V2 / v2 > _2 ? (k2 ? (d2.push(X2, W2), d2.push(b2 + w2 * O2, T2 + A2 * O2), d2.push(X2, W2), d2.push(b2 + M2 * O2, T2 + C2 * O2)) : (d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(Y2, q2), d2.push(b2 - M2 * P2, T2 - C2 * P2), d2.push(Y2, q2)), f2 += 2) : o2.join === md.ROUND ? k2 ? (d2.push(X2, W2), d2.push(b2 + w2 * O2, T2 + A2 * O2), f2 += Nd(b2, T2, b2 + w2 * O2, T2 + A2 * O2, b2 + M2 * O2, T2 + C2 * O2, d2, true) + 4, d2.push(X2, W2), d2.push(b2 + M2 * O2, T2 + C2 * O2)) : (d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(Y2, q2), f2 += Nd(b2, T2, b2 - w2 * P2, T2 - A2 * P2, b2 - M2 * P2, T2 - C2 * P2, d2, false) + 4, d2.push(b2 - M2 * P2, T2 - C2 * P2), d2.push(Y2, q2)) : (d2.push(X2, W2), d2.push(Y2, q2)) : (d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(b2 + w2 * O2, T2 + A2 * O2), o2.join === md.ROUND ? f2 += k2 ? Nd(b2, T2, b2 + w2 * O2, T2 + A2 * O2, b2 + M2 * O2, T2 + C2 * O2, d2, true) + 2 : Nd(b2, T2, b2 - w2 * P2, T2 - A2 * P2, b2 - M2 * P2, T2 - C2 * P2, d2, false) + 2 : o2.join === md.MITER && V2 / v2 <= _2 && (k2 ? (d2.push(Y2, q2), d2.push(Y2, q2)) : (d2.push(X2, W2), d2.push(X2, W2)), f2 += 2), d2.push(b2 - M2 * P2, T2 - C2 * P2), d2.push(b2 + M2 * O2, T2 + C2 * O2), f2 += 2);
25769
25769
  }
25770
25770
  }
25771
- y2 = n2[2 * (p2 - 2)], x2 = n2[2 * (p2 - 2) + 1], b2 = n2[2 * (p2 - 1)], w2 = -(x2 - (T2 = n2[2 * (p2 - 1) + 1])), A2 = y2 - b2, w2 /= C2 = Math.sqrt(w2 * w2 + A2 * A2), A2 /= C2, w2 *= g2, A2 *= g2, d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(b2 + w2 * O2, T2 + A2 * O2), l2 || (o2.cap === gd.ROUND ? f2 += Nd(b2 - w2 * (P2 - O2) * 0.5, T2 - A2 * (P2 - O2) * 0.5, b2 - w2 * P2, T2 - A2 * P2, b2 + w2 * O2, T2 + A2 * O2, d2, false) + 2 : o2.cap === gd.SQUARE && (f2 += Od(b2, T2, w2, A2, P2, O2, false, d2)));
25771
+ y2 = n2[2 * (p2 - 2)], x2 = n2[2 * (p2 - 2) + 1], b2 = n2[2 * (p2 - 1)], w2 = -(x2 - (T2 = n2[2 * (p2 - 1) + 1])), A2 = y2 - b2, w2 /= R2 = Math.sqrt(w2 * w2 + A2 * A2), A2 /= R2, w2 *= g2, A2 *= g2, d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(b2 + w2 * O2, T2 + A2 * O2), l2 || (o2.cap === gd.ROUND ? f2 += Nd(b2 - w2 * (P2 - O2) * 0.5, T2 - A2 * (P2 - O2) * 0.5, b2 - w2 * P2, T2 - A2 * P2, b2 + w2 * O2, T2 + A2 * O2, d2, false) + 2 : o2.cap === gd.SQUARE && (f2 += Od(b2, T2, w2, A2, P2, O2, false, d2)));
25772
25772
  var J2 = e3.indices, K2 = bd.epsilon * bd.epsilon;
25773
25773
  for (N2 = m2; N2 < f2 + m2 - 2; ++N2)
25774
25774
  y2 = d2[2 * N2], x2 = d2[2 * N2 + 1], b2 = d2[2 * (N2 + 1)], T2 = d2[2 * (N2 + 1) + 1], E2 = d2[2 * (N2 + 2)], S2 = d2[2 * (N2 + 2) + 1], Math.abs(y2 * (T2 - S2) + b2 * (S2 - x2) + E2 * (x2 - T2)) < K2 || J2.push(N2, N2 + 1, N2 + 2);
@@ -25828,7 +25828,7 @@ var Slide = function(t) {
25828
25828
  }, t2.prototype.reset = function() {
25829
25829
  this.style = null, this.size = 0, this.start = 0, this.attribStart = 0, this.attribSize = 0;
25830
25830
  }, t2;
25831
- }(), Gd = ((Dd = {})[Lh.l.POLY] = Ad, Dd[Lh.l.CIRC] = Md, Dd[Lh.l.ELIP] = Md, Dd[Lh.l.RECT] = Rd, Dd[Lh.l.RREC] = Pd, Dd), Hd = [], jd = [], zd = function() {
25831
+ }(), Gd = ((Dd = {})[Lh.l.POLY] = Ad, Dd[Lh.l.CIRC] = Md, Dd[Lh.l.ELIP] = Md, Dd[Lh.l.RECT] = Cd, Dd[Lh.l.RREC] = Pd, Dd), Hd = [], jd = [], zd = function() {
25832
25832
  function t2(t3, e2, i2, n2) {
25833
25833
  e2 === void 0 && (e2 = null), i2 === void 0 && (i2 = null), n2 === void 0 && (n2 = null), this.points = [], this.holes = [], this.shape = t3, this.lineStyle = i2, this.fillStyle = e2, this.matrix = n2, this.type = t3.type;
25834
25834
  }
@@ -26528,8 +26528,8 @@ var Slide = function(t) {
26528
26528
  }
26529
26529
  else {
26530
26530
  s2.length > 0 && (a2 += t2.addLine(s2), s2 = "", o2 = 0);
26531
- var R2 = g2 === m2.length - 1;
26532
- a2 += t2.addLine(v2, !R2), p2 = false, s2 = "", o2 = 0;
26531
+ var C2 = g2 === m2.length - 1;
26532
+ a2 += t2.addLine(v2, !C2), p2 = false, s2 = "", o2 = 0;
26533
26533
  }
26534
26534
  else
26535
26535
  x2 + o2 > f2 && (p2 = false, a2 += t2.addLine(s2), s2 = "", o2 = 0), (s2.length > 0 || !t2.isBreakingSpace(v2) || p2) && (s2 += v2, o2 += x2);
@@ -26994,19 +26994,19 @@ var Slide = function(t) {
26994
26994
  }, t2.getResourcePath = function(t3, e2) {
26995
26995
  return t3.isDataUrl ? t3.data.meta.image : Ph.url.resolve(t3.url.replace(e2, ""), t3.data.meta.image);
26996
26996
  }, t2;
26997
- }(), Rp = function(t2, e2) {
26998
- return (Rp = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
26997
+ }(), Cp = function(t2, e2) {
26998
+ return (Cp = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
26999
26999
  t3.__proto__ = e3;
27000
27000
  } || function(t3, e3) {
27001
27001
  for (var i2 in e3)
27002
27002
  e3.hasOwnProperty(i2) && (t3[i2] = e3[i2]);
27003
27003
  })(t2, e2);
27004
27004
  };
27005
- function Cp(t2, e2) {
27005
+ function Rp(t2, e2) {
27006
27006
  function i2() {
27007
27007
  this.constructor = t2;
27008
27008
  }
27009
- Rp(t2, e2), t2.prototype = e2 === null ? Object.create(e2) : (i2.prototype = e2.prototype, new i2());
27009
+ Cp(t2, e2), t2.prototype = e2 === null ? Object.create(e2) : (i2.prototype = e2.prototype, new i2());
27010
27010
  }
27011
27011
  var Ip = new Lh.g(), Pp = function(t2) {
27012
27012
  function e2(e3, i2, n2) {
@@ -27014,7 +27014,7 @@ var Slide = function(t) {
27014
27014
  var r2 = t2.call(this, e3) || this;
27015
27015
  return r2.tileTransform = new Lh.m(), r2._width = i2, r2._height = n2, r2.uvMatrix = r2.texture.uvMatrix || new Vh.u(e3), r2.pluginName = "tilingSprite", r2.uvRespectAnchor = false, r2;
27016
27016
  }
27017
- return Cp(e2, t2), Object.defineProperty(e2.prototype, "clampMargin", { get: function() {
27017
+ return Rp(e2, t2), Object.defineProperty(e2.prototype, "clampMargin", { get: function() {
27018
27018
  return this.uvMatrix.clampMargin;
27019
27019
  }, set: function(t3) {
27020
27020
  this.uvMatrix.clampMargin = t3, this.uvMatrix.update(true);
@@ -27063,7 +27063,7 @@ var Slide = function(t) {
27063
27063
  var i2 = t2.call(this, e3) || this;
27064
27064
  return e3.runners.contextChange.add(i2), i2.quad = new Vh.o(), i2.state = Vh.s.for2d(), i2;
27065
27065
  }
27066
- return Cp(e2, t2), e2.prototype.contextChange = function() {
27066
+ return Rp(e2, t2), e2.prototype.contextChange = function() {
27067
27067
  var t3 = this.renderer, e3 = { globals: t3.globalUniforms };
27068
27068
  this.simpleShader = Vh.r.from(Op, "#version 100\n#define SHADER_NAME Tiling-Sprite-Simple-100\n\nprecision lowp float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n vec4 texSample = texture2D(uSampler, vTextureCoord);\n gl_FragColor = texSample * uColor;\n}\n", e3), this.shader = t3.context.webGLVersion > 1 ? Vh.r.from("#version 300 es\n#define SHADER_NAME Tiling-Sprite-300\n\nprecision lowp float;\n\nin vec2 aVertexPosition;\nin vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nout vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n", "#version 300 es\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nin vec2 vTextureCoord;\n\nout vec4 fragmentColor;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n vec2 unclamped = coord;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n vec4 texSample = texture(uSampler, coord, unclamped == coord ? 0.0f : -32.0f);// lod-bias very negative to force lod 0\n\n fragmentColor = texSample * uColor;\n}\n", e3) : Vh.r.from(Op, "#version 100\n#ifdef GL_EXT_shader_texture_lod\n #extension GL_EXT_shader_texture_lod : enable\n#endif\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n vec2 unclamped = coord;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n #ifdef GL_EXT_shader_texture_lod\n vec4 texSample = unclamped == coord\n ? texture2D(uSampler, coord) \n : texture2DLodEXT(uSampler, coord, 0);\n #else\n vec4 texSample = texture2D(uSampler, coord);\n #endif\n\n gl_FragColor = texSample * uColor;\n}\n", e3);
27069
27069
  }, e2.prototype.render = function(t3) {
@@ -27217,8 +27217,8 @@ var Slide = function(t) {
27217
27217
  this.chars[p2] = { xOffset: T2, yOffset: E2, xAdvance: S2, kerning: {}, texture: new Vh.t(u2[g2].baseTexture, w2), page: g2 };
27218
27218
  }
27219
27219
  for (c2 = 0; c2 < t3.kerning.length; c2++) {
27220
- var A2 = t3.kerning[c2], M2 = A2.first, R2 = A2.second, C2 = A2.amount;
27221
- M2 /= h2, R2 /= h2, C2 /= h2, this.chars[R2] && (this.chars[R2].kerning[M2] = C2);
27220
+ var A2 = t3.kerning[c2], M2 = A2.first, C2 = A2.second, R2 = A2.amount;
27221
+ M2 /= h2, C2 /= h2, R2 /= h2, this.chars[C2] && (this.chars[C2].kerning[M2] = R2);
27222
27222
  }
27223
27223
  this.distanceFieldRange = l2 == null ? void 0 : l2.distanceRange, this.distanceFieldType = (r2 = (n2 = l2 == null ? void 0 : l2.fieldType) === null || n2 === void 0 ? void 0 : n2.toLowerCase()) !== null && r2 !== void 0 ? r2 : "none";
27224
27224
  }
@@ -27286,9 +27286,9 @@ var Slide = function(t) {
27286
27286
  }
27287
27287
  b2 = 0;
27288
27288
  for (var M2 = u2.length; b2 < M2; b2++)
27289
- for (var R2 = u2[b2], C2 = 0; C2 < M2; C2++) {
27290
- var I2 = u2[C2], P2 = m2.measureText(R2).width, O2 = m2.measureText(I2).width, N2 = m2.measureText(R2 + I2).width - (P2 + O2);
27291
- N2 && p2.kerning.push({ first: Xp(R2), second: Xp(I2), amount: N2 });
27289
+ for (var C2 = u2[b2], R2 = 0; R2 < M2; R2++) {
27290
+ var I2 = u2[R2], P2 = m2.measureText(C2).width, O2 = m2.measureText(I2).width, N2 = m2.measureText(C2 + I2).width - (P2 + O2);
27291
+ N2 && p2.kerning.push({ first: Xp(C2), second: Xp(I2), amount: N2 });
27292
27292
  }
27293
27293
  var L2 = new t2(p2, x2, true);
27294
27294
  return t2.available[e2] !== void 0 && t2.uninstall(e2), t2.available[e2] = L2, L2;
@@ -27330,9 +27330,9 @@ var Slide = function(t) {
27330
27330
  var w2 = 0;
27331
27331
  this._align === "right" ? w2 = d2 - o2[y2] : this._align === "center" ? w2 = (d2 - o2[y2]) / 2 : this._align === "justify" && (w2 = s2[y2] < 0 ? 0 : (d2 - o2[y2]) / s2[y2]), S2.push(w2);
27332
27332
  }
27333
- var A2 = r2.length, M2 = {}, R2 = [], C2 = this._activePagesMeshData;
27334
- for (y2 = 0; y2 < C2.length; y2++)
27335
- h2.push(C2[y2]);
27333
+ var A2 = r2.length, M2 = {}, C2 = [], R2 = this._activePagesMeshData;
27334
+ for (y2 = 0; y2 < R2.length; y2++)
27335
+ h2.push(R2[y2]);
27336
27336
  for (y2 = 0; y2 < A2; y2++) {
27337
27337
  var I2 = (j2 = r2[y2].texture).baseTexture.uid;
27338
27338
  if (!M2[I2]) {
@@ -27344,15 +27344,15 @@ var Slide = function(t) {
27344
27344
  }
27345
27345
  Z2.index = 0, Z2.indexCount = 0, Z2.vertexCount = 0, Z2.uvsCount = 0, Z2.total = 0;
27346
27346
  var D2 = this._textureCache;
27347
- D2[I2] = D2[I2] || new Vh.t(j2.baseTexture), Z2.mesh.texture = D2[I2], Z2.mesh.tint = this._tint, R2.push(Z2), M2[I2] = Z2;
27347
+ D2[I2] = D2[I2] || new Vh.t(j2.baseTexture), Z2.mesh.texture = D2[I2], Z2.mesh.tint = this._tint, C2.push(Z2), M2[I2] = Z2;
27348
27348
  }
27349
27349
  M2[I2].total++;
27350
27350
  }
27351
- for (y2 = 0; y2 < C2.length; y2++)
27352
- R2.indexOf(C2[y2]) === -1 && this.removeChild(C2[y2].mesh);
27353
27351
  for (y2 = 0; y2 < R2.length; y2++)
27354
- R2[y2].mesh.parent !== this && this.addChild(R2[y2].mesh);
27355
- for (var y2 in this._activePagesMeshData = R2, M2) {
27352
+ C2.indexOf(R2[y2]) === -1 && this.removeChild(R2[y2].mesh);
27353
+ for (y2 = 0; y2 < C2.length; y2++)
27354
+ C2[y2].mesh.parent !== this && this.addChild(C2[y2].mesh);
27355
+ for (var y2 in this._activePagesMeshData = C2, M2) {
27356
27356
  var F2 = (Z2 = M2[y2]).total;
27357
27357
  if (!(((t3 = Z2.indices) === null || t3 === void 0 ? void 0 : t3.length) > 6 * F2) || Z2.vertices.length < 2 * Dp.a.BATCHABLE_SIZE)
27358
27358
  Z2.vertices = new Float32Array(8 * F2), Z2.uvs = new Float32Array(8 * F2), Z2.indices = new Uint16Array(6 * F2);
@@ -27764,7 +27764,7 @@ var Slide = function(t) {
27764
27764
  e3.hasOwnProperty(i2) && (t3[i2] = e3[i2]);
27765
27765
  })(t2, e2);
27766
27766
  };
27767
- var Rf = function(t2) {
27767
+ var Cf = function(t2) {
27768
27768
  function e2(e3, i2) {
27769
27769
  var n2 = this, r2 = new Lh.d();
27770
27770
  return e3.renderable = false, (n2 = t2.call(this, "attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n vFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy;\n}\n", "varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\nuniform mat2 rotation;\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform highp vec4 inputSize;\nuniform vec4 inputClamp;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vFilterCoord);\n\n map -= 0.5;\n map.xy = scale * inputSize.zw * (rotation * map.xy);\n\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));\n}\n", { mapSampler: e3._texture, filterMatrix: r2, scale: { x: 1, y: 1 }, rotation: new Float32Array([1, 0, 0, 1]) }) || this).maskSprite = e3, n2.maskMatrix = r2, i2 == null && (i2 = 20), n2.scale = new Lh.g(i2, i2), n2;
@@ -27783,8 +27783,8 @@ var Slide = function(t) {
27783
27783
  }, set: function(t3) {
27784
27784
  this.uniforms.mapSampler = t3;
27785
27785
  }, enumerable: false, configurable: true }), e2;
27786
- }(Vh.k), Cf = function(t2, e2) {
27787
- return (Cf = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
27786
+ }(Vh.k), Rf = function(t2, e2) {
27787
+ return (Rf = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
27788
27788
  t3.__proto__ = e3;
27789
27789
  } || function(t3, e3) {
27790
27790
  for (var i2 in e3)
@@ -27920,7 +27920,7 @@ void main() {
27920
27920
  function i2() {
27921
27921
  this.constructor = t3;
27922
27922
  }
27923
- Cf(t3, e3), t3.prototype = e3 === null ? Object.create(e3) : (i2.prototype = e3.prototype, new i2());
27923
+ Rf(t3, e3), t3.prototype = e3 === null ? Object.create(e3) : (i2.prototype = e3.prototype, new i2());
27924
27924
  }(e2, t2), e2;
27925
27925
  }(Vh.k), Pf = function(t2, e2) {
27926
27926
  return (Pf = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
@@ -28157,7 +28157,7 @@ void main() {
28157
28157
  * http://www.opensource.org/licenses/mit-license
28158
28158
  */
28159
28159
  Vh.q.registerPlugin("accessibility", Nh), Vh.q.registerPlugin("extract", nc), Vh.q.registerPlugin("interaction", zh), Vh.q.registerPlugin("particle", yd), Vh.q.registerPlugin("prepare", wp), Vh.q.registerPlugin("batch", Vh.f), Vh.q.registerPlugin("tilingSprite", Lp), yc.registerPlugin(Jp), yc.registerPlugin(Oc), yc.registerPlugin(Jc), yc.registerPlugin(dd), yc.registerPlugin(Mp), Xh.registerPlugin(Dh.b), Xh.registerPlugin(xc);
28160
- var nm, rm = { AlphaFilter: Qp, BlurFilter: Sf, BlurFilterPass: Ef, ColorMatrixFilter: Af, DisplacementFilter: Rf, FXAAFilter: If, NoiseFilter: Kf }, om = i(10), sm = i(34), am = function() {
28160
+ var nm, rm = { AlphaFilter: Qp, BlurFilter: Sf, BlurFilterPass: Ef, ColorMatrixFilter: Af, DisplacementFilter: Cf, FXAAFilter: If, NoiseFilter: Kf }, om = i(10), sm = i(34), am = function() {
28161
28161
  function t2() {
28162
28162
  }
28163
28163
  return t2.offsetPolygon = function(e2, i2) {
@@ -28207,16 +28207,16 @@ void main() {
28207
28207
  }
28208
28208
  if (i2.lineWidth = m2.width, i2.lineCap = m2.cap, i2.lineJoin = m2.join, i2.miterLimit = m2.miterLimit, d2.type === Lh.l.POLY) {
28209
28209
  i2.beginPath();
28210
- var x2 = (C2 = p2).points, b2 = d2.holes, T2 = void 0, E2 = void 0, S2 = void 0, w2 = void 0, A2 = void 0;
28210
+ var x2 = (R2 = p2).points, b2 = d2.holes, T2 = void 0, E2 = void 0, S2 = void 0, w2 = void 0, A2 = void 0;
28211
28211
  i2.moveTo(x2[0], x2[1]);
28212
28212
  for (var M2 = 2; M2 < x2.length; M2 += 2)
28213
28213
  i2.lineTo(x2[M2], x2[M2 + 1]);
28214
- if (C2.closeStroke && i2.closePath(), b2.length > 0) {
28214
+ if (R2.closeStroke && i2.closePath(), b2.length > 0) {
28215
28215
  A2 = [], T2 = 0, S2 = x2[0], w2 = x2[1];
28216
28216
  for (M2 = 2; M2 + 2 < x2.length; M2 += 2)
28217
28217
  T2 += (x2[M2] - S2) * (x2[M2 + 3] - w2) - (x2[M2 + 2] - S2) * (x2[M2 + 1] - w2);
28218
- for (var R2 = 0; R2 < b2.length; R2++)
28219
- if (x2 = b2[R2].shape.points) {
28218
+ for (var C2 = 0; C2 < b2.length; C2++)
28219
+ if (x2 = b2[C2].shape.points) {
28220
28220
  E2 = 0, S2 = x2[0], w2 = x2[1];
28221
28221
  for (M2 = 2; M2 + 2 < x2.length; M2 += 2)
28222
28222
  E2 += (x2[M2] - S2) * (x2[M2 + 3] - w2) - (x2[M2 + 2] - S2) * (x2[M2 + 1] - w2);
@@ -28229,48 +28229,48 @@ void main() {
28229
28229
  for (M2 = x2.length - 4; M2 >= 0; M2 -= 2)
28230
28230
  i2.lineTo(x2[M2], x2[M2 + 1]);
28231
28231
  }
28232
- b2[R2].shape.closeStroke && i2.closePath(), A2[R2] = E2 * T2 < 0;
28232
+ b2[C2].shape.closeStroke && i2.closePath(), A2[C2] = E2 * T2 < 0;
28233
28233
  }
28234
28234
  }
28235
- f2.visible && (i2.globalAlpha = f2.alpha * n2, i2.fillStyle = o2, i2.fill()), m2.visible && this.paintPolygonStroke(C2, m2, s2, b2, A2, n2, i2);
28235
+ f2.visible && (i2.globalAlpha = f2.alpha * n2, i2.fillStyle = o2, i2.fill()), m2.visible && this.paintPolygonStroke(R2, m2, s2, b2, A2, n2, i2);
28236
28236
  } else if (d2.type === Lh.l.RECT) {
28237
- var C2 = p2;
28238
- if (f2.visible && (i2.globalAlpha = f2.alpha * n2, i2.fillStyle = o2, i2.fillRect(C2.x, C2.y, C2.width, C2.height)), m2.visible) {
28239
- var I2 = m2.width * (0.5 - (1 - m2.alignment)), P2 = C2.width + 2 * I2, O2 = C2.height + 2 * I2;
28240
- i2.globalAlpha = m2.alpha * n2, i2.strokeStyle = s2, i2.strokeRect(C2.x - I2, C2.y - I2, P2, O2);
28237
+ var R2 = p2;
28238
+ if (f2.visible && (i2.globalAlpha = f2.alpha * n2, i2.fillStyle = o2, i2.fillRect(R2.x, R2.y, R2.width, R2.height)), m2.visible) {
28239
+ var I2 = m2.width * (0.5 - (1 - m2.alignment)), P2 = R2.width + 2 * I2, O2 = R2.height + 2 * I2;
28240
+ i2.globalAlpha = m2.alpha * n2, i2.strokeStyle = s2, i2.strokeRect(R2.x - I2, R2.y - I2, P2, O2);
28241
28241
  }
28242
28242
  } else if (d2.type === Lh.l.CIRC) {
28243
- C2 = p2;
28244
- if (i2.beginPath(), i2.arc(C2.x, C2.y, C2.radius, 0, 2 * Math.PI), i2.closePath(), f2.visible && (i2.globalAlpha = f2.alpha * n2, i2.fillStyle = o2, i2.fill()), m2.visible) {
28243
+ R2 = p2;
28244
+ if (i2.beginPath(), i2.arc(R2.x, R2.y, R2.radius, 0, 2 * Math.PI), i2.closePath(), f2.visible && (i2.globalAlpha = f2.alpha * n2, i2.fillStyle = o2, i2.fill()), m2.visible) {
28245
28245
  if (m2.alignment !== 0.5) {
28246
28246
  I2 = m2.width * (0.5 - (1 - m2.alignment));
28247
- i2.beginPath(), i2.arc(C2.x, C2.y, C2.radius + I2, 0, 2 * Math.PI), i2.closePath();
28247
+ i2.beginPath(), i2.arc(R2.x, R2.y, R2.radius + I2, 0, 2 * Math.PI), i2.closePath();
28248
28248
  }
28249
28249
  i2.globalAlpha = m2.alpha * n2, i2.strokeStyle = s2, i2.stroke();
28250
28250
  }
28251
28251
  } else if (d2.type === Lh.l.ELIP) {
28252
- C2 = p2;
28253
- if ((z2 = m2.alignment === 1) || this.paintEllipse(C2, f2, m2, o2, n2, i2), m2.visible) {
28252
+ R2 = p2;
28253
+ if ((z2 = m2.alignment === 1) || this.paintEllipse(R2, f2, m2, o2, n2, i2), m2.visible) {
28254
28254
  if (m2.alignment !== 0.5) {
28255
28255
  I2 = m2.width * (0.5 - (1 - m2.alignment));
28256
- var N2 = 2 * (C2.width + I2), L2 = 2 * (C2.height + I2), D2 = C2.x - N2 / 2, F2 = C2.y - L2 / 2, B2 = N2 / 2 * 0.5522848, U2 = L2 / 2 * 0.5522848, k2 = D2 + N2, G2 = F2 + L2, H2 = D2 + N2 / 2, j2 = F2 + L2 / 2;
28256
+ var N2 = 2 * (R2.width + I2), L2 = 2 * (R2.height + I2), D2 = R2.x - N2 / 2, F2 = R2.y - L2 / 2, B2 = N2 / 2 * 0.5522848, U2 = L2 / 2 * 0.5522848, k2 = D2 + N2, G2 = F2 + L2, H2 = D2 + N2 / 2, j2 = F2 + L2 / 2;
28257
28257
  i2.beginPath(), i2.moveTo(D2, j2), i2.bezierCurveTo(D2, j2 - U2, H2 - B2, F2, H2, F2), i2.bezierCurveTo(H2 + B2, F2, k2, j2 - U2, k2, j2), i2.bezierCurveTo(k2, j2 + U2, H2 + B2, G2, H2, G2), i2.bezierCurveTo(H2 - B2, G2, D2, j2 + U2, D2, j2), i2.closePath();
28258
28258
  }
28259
28259
  i2.globalAlpha = m2.alpha * n2, i2.strokeStyle = s2, i2.stroke();
28260
28260
  }
28261
- z2 && this.paintEllipse(C2, f2, m2, o2, n2, i2);
28261
+ z2 && this.paintEllipse(R2, f2, m2, o2, n2, i2);
28262
28262
  } else if (d2.type === Lh.l.RREC) {
28263
28263
  var z2;
28264
- C2 = p2;
28265
- if ((z2 = m2.alignment === 1) || this.paintRoundedRectangle(C2, f2, m2, o2, n2, i2), m2.visible) {
28264
+ R2 = p2;
28265
+ if ((z2 = m2.alignment === 1) || this.paintRoundedRectangle(R2, f2, m2, o2, n2, i2), m2.visible) {
28266
28266
  if (m2.alignment !== 0.5) {
28267
- P2 = C2.width, O2 = C2.height, I2 = m2.width * (0.5 - (1 - m2.alignment));
28268
- var V2 = C2.x - I2, X2 = C2.y - I2, W2 = C2.width + 2 * I2, Y2 = C2.height + 2 * I2, q2 = I2 * (m2.alignment >= 1 ? Math.min(W2 / P2, Y2 / O2) : Math.min(P2 / W2, O2 / Y2)), Z2 = C2.radius + q2, J2 = Math.min(W2, Y2) / 2;
28267
+ P2 = R2.width, O2 = R2.height, I2 = m2.width * (0.5 - (1 - m2.alignment));
28268
+ var V2 = R2.x - I2, X2 = R2.y - I2, W2 = R2.width + 2 * I2, Y2 = R2.height + 2 * I2, q2 = I2 * (m2.alignment >= 1 ? Math.min(W2 / P2, Y2 / O2) : Math.min(P2 / W2, O2 / Y2)), Z2 = R2.radius + q2, J2 = Math.min(W2, Y2) / 2;
28269
28269
  Z2 = Z2 > J2 ? J2 : Z2, i2.beginPath(), i2.moveTo(V2, X2 + Z2), i2.lineTo(V2, X2 + Y2 - Z2), i2.quadraticCurveTo(V2, X2 + Y2, V2 + Z2, X2 + Y2), i2.lineTo(V2 + W2 - Z2, X2 + Y2), i2.quadraticCurveTo(V2 + W2, X2 + Y2, V2 + W2, X2 + Y2 - Z2), i2.lineTo(V2 + W2, X2 + Z2), i2.quadraticCurveTo(V2 + W2, X2, V2 + W2 - Z2, X2), i2.lineTo(V2 + Z2, X2), i2.quadraticCurveTo(V2, X2, V2, X2 + Z2), i2.closePath();
28270
28270
  }
28271
28271
  i2.globalAlpha = m2.alpha * n2, i2.strokeStyle = s2, i2.stroke();
28272
28272
  }
28273
- z2 && this.paintRoundedRectangle(C2, f2, m2, o2, n2, i2);
28273
+ z2 && this.paintRoundedRectangle(R2, f2, m2, o2, n2, i2);
28274
28274
  }
28275
28275
  }
28276
28276
  }, t2.prototype.paintPolygonStroke = function(t3, e2, i2, n2, r2, o2, s2) {
@@ -28537,25 +28537,25 @@ void main() {
28537
28537
  function Mm() {
28538
28538
  return r();
28539
28539
  }
28540
- const Rm = "__delay_resolve_result__";
28541
- function Cm(t2) {
28540
+ const Cm = "__delay_resolve_result__";
28541
+ function Rm(t2) {
28542
28542
  return new Promise((e2) => {
28543
28543
  setTimeout(() => {
28544
- e2(Rm);
28544
+ e2(Cm);
28545
28545
  }, t2);
28546
28546
  });
28547
28547
  }
28548
28548
  function Im(t2, e2) {
28549
28549
  return Am(this, void 0, void 0, function* () {
28550
- const i2 = yield Promise.race([t2(), Cm(e2)]);
28551
- return i2 === Rm ? Rm : i2;
28550
+ const i2 = yield Promise.race([t2(), Rm(e2)]);
28551
+ return i2 === Cm ? Cm : i2;
28552
28552
  });
28553
28553
  }
28554
28554
  function Pm(t2, e2) {
28555
28555
  return Am(this, void 0, void 0, function* () {
28556
28556
  const i2 = Date.now();
28557
28557
  for (; !t2() && Date.now() - i2 < e2; )
28558
- yield Cm(16);
28558
+ yield Rm(16);
28559
28559
  });
28560
28560
  }
28561
28561
  var Om = function(t2, e2, i2, n2) {
@@ -28586,7 +28586,7 @@ void main() {
28586
28586
  function Nm(t2, e2) {
28587
28587
  return Om(this, void 0, void 0, function* () {
28588
28588
  const i2 = yield Im(() => fetch(t2), e2);
28589
- if (i2 === Rm)
28589
+ if (i2 === Cm)
28590
28590
  throw new Tm(gm.ResourceError, `"${t2}" loaded timeout"`);
28591
28591
  if (!i2.ok)
28592
28592
  throw new Tm(gm.ResourceError, `"${t2}" loaded failed with status "${i2.status}"`);
@@ -28619,7 +28619,7 @@ void main() {
28619
28619
  const r3 = Date.now();
28620
28620
  try {
28621
28621
  const o2 = yield Im(() => this.delegate.loadJson(i2), this.timeout);
28622
- if (this.logger.info(`load resource by delegate end. ${n2}, time: ${Date.now() - r3}`, this.taskId || ""), o2 === Rm)
28622
+ if (this.logger.info(`load resource by delegate end. ${n2}, time: ${Date.now() - r3}`, this.taskId || ""), o2 === Cm)
28623
28623
  throw new Tm(gm.ResourceError, `"${n2}" loaded timeout"`);
28624
28624
  t3 = JSON.parse(o2), this.tracker({ name: "slideResourceLoad", result: "success", reason: "", payload: { duration: Date.now() - e2, url: i2, type: "json", channel: "delegate" } });
28625
28625
  } catch (t4) {
@@ -28663,7 +28663,7 @@ void main() {
28663
28663
  try {
28664
28664
  this.logger.info("load resource by delegate. " + r2, this.taskId || "");
28665
28665
  const e3 = Date.now();
28666
- if (t3 = yield Im(() => this.delegate.loadImage(n2), this.timeout), this.logger.info(`load resource by delegate end. ${r2}, time: ${Date.now() - e3}`, this.taskId || ""), t3 === Rm)
28666
+ if (t3 = yield Im(() => this.delegate.loadImage(n2), this.timeout), this.logger.info(`load resource by delegate end. ${r2}, time: ${Date.now() - e3}`, this.taskId || ""), t3 === Cm)
28667
28667
  throw new Tm(gm.ResourceError, `"${r2}" loaded timeout"`);
28668
28668
  this.tracker({ name: "slideResourceLoad", result: "success", reason: "", payload: { duration: Date.now() - i2, url: n2, type: "image", channel: "delegate" } });
28669
28669
  } catch (t4) {
@@ -29556,16 +29556,16 @@ void main() {
29556
29556
  s2 = o2 + u2, l2 = s2 - o2, a2 = o2 - (s2 - l2) + (u2 - l2), u2 = n2[++d2], o2 = s2, a2 !== 0 && (r2[p2++] = a2);
29557
29557
  return o2 === 0 && p2 !== 0 || (r2[p2++] = o2), p2;
29558
29558
  }
29559
- function Rg(t2, e2) {
29559
+ function Cg(t2, e2) {
29560
29560
  let i2 = e2[0];
29561
29561
  for (let n2 = 1; n2 < t2; n2++)
29562
29562
  i2 += e2[n2];
29563
29563
  return i2;
29564
29564
  }
29565
- function Cg(t2) {
29565
+ function Rg(t2) {
29566
29566
  return new Float64Array(t2);
29567
29567
  }
29568
- const Ig = Cg(4), Pg = Cg(8), Og = Cg(12), Ng = Cg(16), Lg = Cg(4);
29568
+ const Ig = Rg(4), Pg = Rg(8), Og = Rg(12), Ng = Rg(16), Lg = Rg(4);
29569
29569
  function Dg(t2, e2, i2, n2, r2, o2) {
29570
29570
  const s2 = (e2 - o2) * (i2 - r2), a2 = (t2 - r2) * (n2 - o2), l2 = s2 - a2;
29571
29571
  if (s2 === 0 || a2 === 0 || s2 > 0 != a2 > 0)
@@ -29573,16 +29573,16 @@ void main() {
29573
29573
  const h2 = Math.abs(s2 + a2);
29574
29574
  return Math.abs(l2) >= 33306690738754716e-32 * h2 ? l2 : -function(t3, e3, i3, n3, r3, o3, s3) {
29575
29575
  let a3, l3, h3, u2, c2, d2, p2, f2, m2, g2, v2, _2, y2, x2, b2, T2, E2, S2;
29576
- const w2 = t3 - r3, A2 = i3 - r3, M2 = e3 - o3, R2 = n3 - o3;
29577
- x2 = w2 * R2, d2 = Ag * w2, p2 = d2 - (d2 - w2), f2 = w2 - p2, d2 = Ag * R2, m2 = d2 - (d2 - R2), g2 = R2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = M2 * A2, d2 = Ag * M2, p2 = d2 - (d2 - M2), f2 = M2 - p2, d2 = Ag * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Ig[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Ig[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Ig[2] = _2 - (S2 - c2) + (v2 - c2), Ig[3] = S2;
29578
- let C2 = Rg(4, Ig), I2 = 22204460492503146e-32 * s3;
29579
- if (C2 >= I2 || -C2 >= I2)
29580
- return C2;
29581
- if (c2 = t3 - w2, a3 = t3 - (w2 + c2) + (c2 - r3), c2 = i3 - A2, h3 = i3 - (A2 + c2) + (c2 - r3), c2 = e3 - M2, l3 = e3 - (M2 + c2) + (c2 - o3), c2 = n3 - R2, u2 = n3 - (R2 + c2) + (c2 - o3), a3 === 0 && l3 === 0 && h3 === 0 && u2 === 0)
29582
- return C2;
29583
- if (I2 = 11093356479670487e-47 * s3 + 33306690738754706e-32 * Math.abs(C2), C2 += w2 * u2 + R2 * a3 - (M2 * h3 + A2 * l3), C2 >= I2 || -C2 >= I2)
29584
- return C2;
29585
- x2 = a3 * R2, d2 = Ag * a3, p2 = d2 - (d2 - a3), f2 = a3 - p2, d2 = Ag * R2, m2 = d2 - (d2 - R2), g2 = R2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = l3 * A2, d2 = Ag * l3, p2 = d2 - (d2 - l3), f2 = l3 - p2, d2 = Ag * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Lg[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Lg[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Lg[2] = _2 - (S2 - c2) + (v2 - c2), Lg[3] = S2;
29576
+ const w2 = t3 - r3, A2 = i3 - r3, M2 = e3 - o3, C2 = n3 - o3;
29577
+ x2 = w2 * C2, d2 = Ag * w2, p2 = d2 - (d2 - w2), f2 = w2 - p2, d2 = Ag * C2, m2 = d2 - (d2 - C2), g2 = C2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = M2 * A2, d2 = Ag * M2, p2 = d2 - (d2 - M2), f2 = M2 - p2, d2 = Ag * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Ig[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Ig[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Ig[2] = _2 - (S2 - c2) + (v2 - c2), Ig[3] = S2;
29578
+ let R2 = Cg(4, Ig), I2 = 22204460492503146e-32 * s3;
29579
+ if (R2 >= I2 || -R2 >= I2)
29580
+ return R2;
29581
+ if (c2 = t3 - w2, a3 = t3 - (w2 + c2) + (c2 - r3), c2 = i3 - A2, h3 = i3 - (A2 + c2) + (c2 - r3), c2 = e3 - M2, l3 = e3 - (M2 + c2) + (c2 - o3), c2 = n3 - C2, u2 = n3 - (C2 + c2) + (c2 - o3), a3 === 0 && l3 === 0 && h3 === 0 && u2 === 0)
29582
+ return R2;
29583
+ if (I2 = 11093356479670487e-47 * s3 + 33306690738754706e-32 * Math.abs(R2), R2 += w2 * u2 + C2 * a3 - (M2 * h3 + A2 * l3), R2 >= I2 || -R2 >= I2)
29584
+ return R2;
29585
+ x2 = a3 * C2, d2 = Ag * a3, p2 = d2 - (d2 - a3), f2 = a3 - p2, d2 = Ag * C2, m2 = d2 - (d2 - C2), g2 = C2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = l3 * A2, d2 = Ag * l3, p2 = d2 - (d2 - l3), f2 = l3 - p2, d2 = Ag * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Lg[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Lg[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Lg[2] = _2 - (S2 - c2) + (v2 - c2), Lg[3] = S2;
29586
29586
  const P2 = Mg(4, Ig, 4, Lg, Pg);
29587
29587
  x2 = w2 * u2, d2 = Ag * w2, p2 = d2 - (d2 - w2), f2 = w2 - p2, d2 = Ag * u2, m2 = d2 - (d2 - u2), g2 = u2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = M2 * h3, d2 = Ag * M2, p2 = d2 - (d2 - M2), f2 = M2 - p2, d2 = Ag * h3, m2 = d2 - (d2 - h3), g2 = h3 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Lg[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Lg[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Lg[2] = _2 - (S2 - c2) + (v2 - c2), Lg[3] = S2;
29588
29588
  const O2 = Mg(P2, Pg, 4, Lg, Og);
@@ -29924,7 +29924,7 @@ void main(void){
29924
29924
  `), { arg: e2 });
29925
29925
  }
29926
29926
  }
29927
- const Qg = [qg], $g = { clrChange: "\nvec4 transform(vec4 texColor, vec4 arg1, vec4 arg2) {\n float epsilon = 0.001;\n vec3 colorDiff = arg1.rgb - (texColor.rgb / max(texColor.a, 0.0000000001));\n float colorDistance = length(colorDiff);\n if (colorDistance < epsilon) {\n arg2.rgb *= arg2.a;\n return arg2;\n } else {\n return texColor;\n }\n}\n", changeBulletColor: "\nvec4 transform(vec4 texColor, vec4 arg1, vec4 arg2) {\n if (texColor.a == 0.0) {\n return texColor;\n } else {\n return arg2;\n }\n}\n", duotone: "\nvec4 transform(vec4 texColor, vec4 arg1, vec4 arg2) {\n float avg = (texColor.r + texColor.g + texColor.b) / 3.0;\n\n vec3 hsl = rgb2hsl(vec3(avg, avg, avg));\n\n vec3 result = arg2.rgb * hsl.z + arg1.rgb * (1.0 - hsl.z);\n\n return vec4(result * texColor.a, texColor.a);\n}\n" };
29927
+ const Qg = [qg], $g = { clrChange: "\nvec4 transform(vec4 texColor, vec4 arg1, vec4 arg2) {\n float epsilon = 0.001;\n vec3 colorDiff = arg1.rgb - (texColor.rgb / max(texColor.a, 0.0000000001));\n float colorDistance = length(colorDiff);\n if (colorDistance < epsilon) {\n arg2.rgb *= arg2.a;\n return arg2;\n } else {\n return texColor;\n }\n}\n", changeBulletColor: "\nvec4 transform(vec4 texColor, vec4 arg1, vec4 arg2) {\n if (texColor.a == 0.0) {\n return texColor;\n } else {\n return arg2;\n }\n}\n", duotone: "\nvec4 transform(vec4 texColor, vec4 arg1, vec4 arg2) {\n // float avg = (texColor.r + texColor.g + texColor.b) / 3.0;\n // vec3 hsl = rgb2hsl(vec3(avg, avg, avg));\n // vec3 result = arg2.rgb * hsl.z + arg1.rgb * (1.0 - hsl.z);\n // return vec4(result * texColor.a, texColor.a);\n \n float brightness = texColor.r * 0.3 + texColor.g * 0.59 + texColor.b * 0.11;\n \n return vec4(\n (arg1.r + brightness * (arg2.r - arg1.r)) * texColor.a,\n (arg1.g + brightness * (arg2.g - arg1.g)) * texColor.a,\n (arg1.b + brightness * (arg2.b - arg1.b)) * texColor.a,\n texColor.a\n );\n}\n" };
29928
29928
  class tv extends Vh.k {
29929
29929
  constructor(t2, e2, i2) {
29930
29930
  var n2;
@@ -30168,7 +30168,7 @@ void main(void){
30168
30168
  super(gv.a, Av.a, { uStartAlpha: t2.startAlpha, uEndAlpha: t2.endAlpha, uStartPos: t2.startPos, uEndPos: t2.endPos, uHeight: e2 }), console.log(this);
30169
30169
  }
30170
30170
  }
30171
- class Rv extends xv {
30171
+ class Cv extends xv {
30172
30172
  constructor(t2, e2, i2, n2, r2) {
30173
30173
  super(), this.order = 2, this.outputSprite = new ep(), this.outputTexture = Vh.t.WHITE, this.frameTextures = [], this.json = t2, this.shapeScaleX = n2, this.effectContainer = e2, this.rotation = i2, this.ctx = r2, this.outputSprite.anchor.x = 0.5, this.outputSprite.anchor.y = 0.5;
30174
30174
  const o2 = this.effectContainer.getBounds();
@@ -30186,7 +30186,7 @@ void main(void){
30186
30186
  this.outputSprite.position.x = o2.x + t2, this.outputSprite.position.y = o2.y + e2;
30187
30187
  }
30188
30188
  }
30189
- var Cv = i(118), Iv = i.n(Cv);
30189
+ var Rv = i(118), Iv = i.n(Rv);
30190
30190
  class Pv extends hv {
30191
30191
  constructor(t2) {
30192
30192
  super(gv.a, Iv.a, {}), this.priority = 1, this.json = t2;
@@ -30238,7 +30238,7 @@ void main(void){
30238
30238
  this.effects.push(new fv(i3));
30239
30239
  break;
30240
30240
  case "reflection":
30241
- this.attachs.push(new Rv(i3, t2, r2, o2.x, this.ctx));
30241
+ this.attachs.push(new Cv(i3, t2, r2, o2.x, this.ctx));
30242
30242
  break;
30243
30243
  case "outerShadow":
30244
30244
  this.attachs.push(new Sv(i3, t2, o2));
@@ -30246,7 +30246,7 @@ void main(void){
30246
30246
  this.effects = this.effects.sort((t3, e3) => t3.priority - e3.priority), this.attachs = this.attachs.sort((t3, e3) => t3.order - e3.order);
30247
30247
  for (const t3 of this.attachs)
30248
30248
  this._targetContainer.addChild(t3.outputSprite);
30249
- this.sourceSprite.name = "effect-sprite";
30249
+ this.sourceSprite.name = "source-sprite";
30250
30250
  const s2 = new Lh.j(0, 0, this.originWidth, this.originHeight), a2 = this.effects.map((t3) => t3.filterAreaJustify(s2)), l2 = a2.map((t3) => t3.x), h2 = a2.map((t3) => t3.y), u2 = a2.map((t3) => t3.width), c2 = a2.map((t3) => t3.height);
30251
30251
  this.filterArea = new Lh.j(Math.min(...l2, 0), Math.min(...h2, 0), Math.max(...u2, this.originWidth), Math.max(...c2, this.originHeight)), this.sourceSprite.filters = this.effects, this.sourceSprite.filterArea = new Lh.j(0, 0, this.filterArea.width, this.filterArea.height), this._targetSprite = new ep(), this._targetSprite.name = "effect-sprite", this._targetContainer.sortableChildren = true, this._targetSprite.zIndex = 999, this._targetContainer.addChild(this._targetSprite);
30252
30252
  }
@@ -30366,6 +30366,8 @@ void main(void){
30366
30366
  const { stroke: t2 } = this.json, e2 = (t2 == null ? void 0 : t2.key) ? { fillType: "blipFill", src: t2.key, filters: [] } : void 0;
30367
30367
  return new lv(this.ctx, e2, (t2 == null ? void 0 : t2.width) || 0, (t2 == null ? void 0 : t2.height) || 0, { useFilter: false, useSlideBackgroundFill: false });
30368
30368
  }
30369
+ applyEffectCacheAsBitMap() {
30370
+ }
30369
30371
  createTextFill() {
30370
30372
  const { isHorz: t2, fill: e2, lineWidth: i2, lineHeight: n2, fillLineHeight: r2 } = this.json;
30371
30373
  return t2 ? new lv(this.ctx, e2 == null ? void 0 : e2.fill, i2, Math.max(r2, n2), { useFilter: false, useSlideBackgroundFill: false }) : new lv(this.ctx, e2 == null ? void 0 : e2.fill, r2, n2, { useFilter: false, useSlideBackgroundFill: false });
@@ -30495,6 +30497,8 @@ void main(void){
30495
30497
  }
30496
30498
  preRender() {
30497
30499
  }
30500
+ applyEffectCacheAsBitMap() {
30501
+ }
30498
30502
  createUnits(t2, e2, i2, n2) {
30499
30503
  for (let r2 = 0, o2 = this.json.textUnits.length; r2 < o2; r2++)
30500
30504
  n2.addSubMTask(() => Fv(this, void 0, void 0, function* () {
@@ -30561,6 +30565,8 @@ void main(void){
30561
30565
  }
30562
30566
  preRender() {
30563
30567
  }
30568
+ applyEffectCacheAsBitMap() {
30569
+ }
30564
30570
  createLines(t2, e2, i2) {
30565
30571
  for (let n2 = 0, r2 = this.json.lines.length; n2 < r2; n2++)
30566
30572
  i2.addSubMTask(() => Uv(this, void 0, void 0, function* () {
@@ -30714,6 +30720,8 @@ void main(void){
30714
30720
  getIterateEntry(t2, e2) {
30715
30721
  return this.iterateElements[t2] ? this.iterateElements[t2] : (this.ctx.eventHub.emit("IterateTimeNodeEnd", e2), null);
30716
30722
  }
30723
+ applyEffectCacheAsBitMap() {
30724
+ }
30717
30725
  destroy() {
30718
30726
  this.paragraphs.forEach((t2) => {
30719
30727
  t2.destroy();
@@ -30891,7 +30899,7 @@ void main(void){
30891
30899
  i2.push(r3), n2.push({ x: s3, y: a2 });
30892
30900
  }
30893
30901
  if (this.isSquare(i2, n2))
30894
- return false;
30902
+ return true;
30895
30903
  for (let t3 = 0; t3 < 3; t3++) {
30896
30904
  const e3 = n2[t3], i3 = n2[t3 + 1];
30897
30905
  if (e3.x !== i3.x && e3.y !== i3.y)
@@ -31149,7 +31157,7 @@ void main(void){
31149
31157
  }
31150
31158
  this.renderContainer.addChild(this.container);
31151
31159
  }
31152
- if (this.needCacheAsBitMap, this.json.id === "background" && this.ctx.hasBackgroundFillShape) {
31160
+ if (this.json.id === "background" && this.ctx.hasBackgroundFillShape) {
31153
31161
  const t4 = Vh.p.create({ width: this.json.width, height: this.json.height, resolution: Math.ceil(this.ctx.renderer.resolution) });
31154
31162
  this.ctx.renderer.render(this.renderContainer, { renderTexture: t4 }), this.ctx.bgTexture = t4;
31155
31163
  }
@@ -31158,10 +31166,16 @@ void main(void){
31158
31166
  return ((e3 = t4.fillStyle) === null || e3 === void 0 ? void 0 : e3.fillType) === "gifFill" || (((n3 = (i3 = t4.lineStyle) === null || i3 === void 0 ? void 0 : i3.fill) === null || n3 === void 0 ? void 0 : n3.fillType) === "gifFill" || !!t4.picFill && t4.picFill.fillType === "gifFill");
31159
31167
  }(this.json) && this.effectObject.setFrameCount(-1), this.effectObject.on("ready", () => {
31160
31168
  var t4;
31161
- this.effectContainer.visible = false, this.effectObject.container.zIndex = 10, this.container.addChild(this.effectObject.container), (t4 = this.effectObject) === null || t4 === void 0 || t4.updateFrame(1);
31169
+ this.effectContainer.visible = false, this.effectObject.container.zIndex = 10, this.container.addChild(this.effectObject.container), (t4 = this.effectObject) === null || t4 === void 0 || t4.updateFrame(1), this.applyEffectCacheAsBitMap(true);
31162
31170
  }));
31163
31171
  }), "@ShapeImpl[post.render]");
31164
31172
  }
31173
+ applyEffectCacheAsBitMap(t2) {
31174
+ var e2, i2;
31175
+ ((e2 = this.json.fillStyle) === null || e2 === void 0 ? void 0 : e2.fillType) !== "gifFill" && ((i2 = this.effectObject) === null || i2 === void 0 || i2.container.children.forEach((e3) => {
31176
+ e3.name !== "effect-sprite" && (e3.cacheAsBitmap = t2);
31177
+ }));
31178
+ }
31165
31179
  clearOnSlideChange() {
31166
31180
  }
31167
31181
  initOnReuse() {
@@ -31792,6 +31806,12 @@ void main(void){
31792
31806
  } else
31793
31807
  t2 === "custom-pause" ? (r2 = this.mediaPlayer) === null || r2 === void 0 || r2.controller.pauseMediaFromCtrl(true) : t2 === "togglePause" ? this.mediaPlayer && (this.mediaPlayer.isPlaying ? this.mediaPlayer.controller.pauseMediaFromCtrl(true) : this.mediaPlayer.controller.playMediaFromCtrl(true)) : t2 === "stop" && ((o2 = this.mediaPlayer) === null || o2 === void 0 || o2.stop());
31794
31808
  }
31809
+ applyEffectCacheAsBitMap(t2) {
31810
+ var e2, i2, n2;
31811
+ ((e2 = this.json.fillStyle) === null || e2 === void 0 ? void 0 : e2.fillType) === "gifFill" || this.media && this.media.type === "video" || ((i2 = this.json.picFill) === null || i2 === void 0 ? void 0 : i2.fillType) === "gifFill" || (n2 = this.effectObject) === null || n2 === void 0 || n2.container.children.forEach((e3) => {
31812
+ e3.name !== "effect-sprite" && (e3.cacheAsBitmap = t2);
31813
+ });
31814
+ }
31795
31815
  renderPic() {
31796
31816
  var t2, e2, i2, n2, r2, o2;
31797
31817
  return m_(this, void 0, void 0, function* () {
@@ -31926,6 +31946,9 @@ void main(void){
31926
31946
  this.container.addChild(this.cacheContainer);
31927
31947
  }), "@ContainerImpl[child.append]");
31928
31948
  }
31949
+ applyEffectCacheAsBitMap(t2) {
31950
+ this.children.forEach((e2) => e2.applyEffectCacheAsBitMap(t2));
31951
+ }
31929
31952
  clearOnSlideChange() {
31930
31953
  this.children.forEach((t2) => t2.clearOnSlideChange());
31931
31954
  }
@@ -32124,6 +32147,8 @@ void main(void){
32124
32147
  const { target: t3 } = this.json.cBhvr, e3 = this.getTargetId(t3);
32125
32148
  this.ctx.conflictTimeNodeManager.removeRunningTimeNode(e3, this.modifyAttrKey);
32126
32149
  }
32150
+ }, this.basicOnTimeNodeStart = () => {
32151
+ this.timingTarget && this.timingTarget.applyEffectCacheAsBitMap(false);
32127
32152
  }, this.basicOnTimeLineStart = () => {
32128
32153
  if (this.isConflict) {
32129
32154
  const { target: t3 } = this.json.cBhvr;
@@ -32135,7 +32160,7 @@ void main(void){
32135
32160
  }
32136
32161
  };
32137
32162
  const { isIterate: e2, isSub: i2, json: n2, ctx: r2, parent: o2, eventHub: s2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 } = t2;
32138
- this.json = n2, this.id = n2.cBhvr.ctn.id, this.ctx = r2, this.globalEventHub = s2, this.commonTimeNode = new Ty({ json: n2.cBhvr.ctn, isSub: i2, eventHubs: { global: s2, runtime: this.runtimeNodeEventHub }, ctx: r2, parent: o2, isIterate: e2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 }), this.timingTarget = this.ctx.timingTargets.getTarget(n2.cBhvr.target, e2, { type: a2, index: l2, id: h2 }), this.commonTimeNode.on("seekToStart", () => this.onSeekToStart()), this.commonTimeNode.on("seekToEnd", () => this.onSeekToEnd()), this.commonTimeNode.on("timelineStart", this.basicOnTimeLineStart), this.commonTimeNode.on("timeNodeEnd", this.basicOnTimeNodeEnd);
32163
+ this.json = n2, this.id = n2.cBhvr.ctn.id, this.ctx = r2, this.globalEventHub = s2, this.commonTimeNode = new Ty({ json: n2.cBhvr.ctn, isSub: i2, eventHubs: { global: s2, runtime: this.runtimeNodeEventHub }, ctx: r2, parent: o2, isIterate: e2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 }), this.timingTarget = this.ctx.timingTargets.getTarget(n2.cBhvr.target, e2, { type: a2, index: l2, id: h2 }), this.commonTimeNode.on("seekToStart", () => this.onSeekToStart()), this.commonTimeNode.on("seekToEnd", () => this.onSeekToEnd()), this.commonTimeNode.on("timelineStart", this.basicOnTimeLineStart), this.commonTimeNode.on("timeNodeEnd", this.basicOnTimeNodeEnd), this.commonTimeNode.on("timeNodeStart", this.basicOnTimeNodeStart);
32139
32164
  }
32140
32165
  getTargetId(t2) {
32141
32166
  let e2 = t2.id;
@@ -32199,7 +32224,7 @@ void main(void){
32199
32224
  }
32200
32225
  }
32201
32226
  w_([Em()], M_.prototype, "interpolationFrom", null);
32202
- class R_ extends A_ {
32227
+ class C_ extends A_ {
32203
32228
  constructor(t2, e2) {
32204
32229
  var i2;
32205
32230
  super(t2, e2), this.value = (i2 = t2.val) === null || i2 === void 0 ? void 0 : i2.value;
@@ -32212,8 +32237,8 @@ void main(void){
32212
32237
  return this.value || "";
32213
32238
  }
32214
32239
  }
32215
- w_([Em()], R_.prototype, "interpolationFrom", null);
32216
- class C_ extends A_ {
32240
+ w_([Em()], C_.prototype, "interpolationFrom", null);
32241
+ class R_ extends A_ {
32217
32242
  constructor(t2, e2) {
32218
32243
  super(t2, e2), this.fn = this.parseFmla(this.val);
32219
32244
  }
@@ -32225,7 +32250,7 @@ void main(void){
32225
32250
  return t2.fmla ? t2.fmla(i2, this.math, r2) : r2;
32226
32251
  }
32227
32252
  }
32228
- w_([Em()], C_.prototype, "interpolationFrom", null);
32253
+ w_([Em()], R_.prototype, "interpolationFrom", null);
32229
32254
  class I_ extends A_ {
32230
32255
  constructor(t2, e2) {
32231
32256
  super(t2, e2), this.value = t2.val.value;
@@ -32272,24 +32297,24 @@ void main(void){
32272
32297
  if (this.json.from || this.startVal) {
32273
32298
  const t4 = { time: 0, val: { type: "string", value: this.json.from || this.startVal.toString() }, fmla: "" };
32274
32299
  if (e2 === "num" && this.timingTarget) {
32275
- const e3 = new C_(t4, this.timingTarget);
32300
+ const e3 = new R_(t4, this.timingTarget);
32276
32301
  this.keyFrames.push([t4.time, e3]);
32277
32302
  }
32278
32303
  }
32279
32304
  const t3 = { time: 1, val: { type: "string", value: this.json.to }, fmla: "" };
32280
32305
  if (e2 === "num" && this.timingTarget) {
32281
- const e3 = new C_(t3, this.timingTarget);
32306
+ const e3 = new R_(t3, this.timingTarget);
32282
32307
  this.keyFrames.push([t3.time, e3]);
32283
32308
  }
32284
32309
  } else if (this.json.by) {
32285
32310
  const i2 = { time: 0, val: { type: "string", value: this.json.cBhvr.attrList[0] }, fmla: "" };
32286
32311
  if (e2 === "num" && this.timingTarget) {
32287
- const t3 = new C_(i2, this.timingTarget);
32312
+ const t3 = new R_(i2, this.timingTarget);
32288
32313
  this.keyFrames.push([i2.time, t3]);
32289
32314
  }
32290
32315
  const n2 = { time: 1, val: { type: "string", value: (((t2 = i2.val) === null || t2 === void 0 ? void 0 : t2.value) || "") + "+" + this.json.by }, fmla: "" };
32291
32316
  if (e2 === "num" && this.timingTarget) {
32292
- const t3 = new C_(n2, this.timingTarget);
32317
+ const t3 = new R_(n2, this.timingTarget);
32293
32318
  this.keyFrames.push([n2.time, t3]);
32294
32319
  }
32295
32320
  }
@@ -32298,7 +32323,7 @@ void main(void){
32298
32323
  for (const t3 of this.json.tavLst)
32299
32324
  if (t3.val && this.timingTarget) {
32300
32325
  let i2 = null;
32301
- t3.val.type === "string" ? e2 === "num" ? i2 = new C_(t3, this.timingTarget) : e2 === "str" && (i2 = new R_(t3, this.timingTarget)) : t3.val.type === "number" ? i2 = new M_(t3, this.timingTarget) : t3.val.type === "color" ? (this.isColorAnim = true, i2 = new I_(t3, this.timingTarget)) : t3.val.type === "boolean" && console.warn("not implements"), i2 && this.keyFrames.push([t3.time, i2]);
32326
+ t3.val.type === "string" ? e2 === "num" ? i2 = new R_(t3, this.timingTarget) : e2 === "str" && (i2 = new C_(t3, this.timingTarget)) : t3.val.type === "number" ? i2 = new M_(t3, this.timingTarget) : t3.val.type === "color" ? (this.isColorAnim = true, i2 = new I_(t3, this.timingTarget)) : t3.val.type === "boolean" && console.warn("not implements"), i2 && this.keyFrames.push([t3.time, i2]);
32302
32327
  }
32303
32328
  }
32304
32329
  }
@@ -33131,6 +33156,9 @@ void main(void){
33131
33156
  get interactiveContainer() {
33132
33157
  return this.container;
33133
33158
  }
33159
+ applyEffectCacheAsBitMap(t2) {
33160
+ this.children.forEach((e2) => e2.applyEffectCacheAsBitMap(t2));
33161
+ }
33134
33162
  render(t2) {
33135
33163
  if (this.isRendered)
33136
33164
  return;
@@ -33243,9 +33271,10 @@ void main(void){
33243
33271
  i2 && i2.seek(e2);
33244
33272
  }
33245
33273
  }
33246
- class Ry {
33274
+ class Cy {
33247
33275
  constructor(t2) {
33248
33276
  this.ticker = t2, this.tasks = [], this.couldRunning = false, this.applyNext = () => {
33277
+ this.tasks = this.tasks.filter((t4) => !t4.isEmpty());
33249
33278
  const t3 = this.tasks[0];
33250
33279
  t3 && t3.applyNext();
33251
33280
  }, t2.add(this.applyNext);
@@ -33266,7 +33295,7 @@ void main(void){
33266
33295
  this.couldRunning = false;
33267
33296
  }
33268
33297
  }
33269
- var Cy = function(t2, e2, i2, n2) {
33298
+ var Ry = function(t2, e2, i2, n2) {
33270
33299
  return new (i2 || (i2 = Promise))(function(r2, o2) {
33271
33300
  function s2(t3) {
33272
33301
  try {
@@ -33296,6 +33325,9 @@ void main(void){
33296
33325
  constructor(t2, e2, i2) {
33297
33326
  super(), this.slideIndex = t2, this.taskId = e2, this.logger = i2, this.uuid = Mm(), this.isCancel = false, this.tasks = [];
33298
33327
  }
33328
+ isEmpty() {
33329
+ return this.tasks.length === 0;
33330
+ }
33299
33331
  addMTask(t2, e2) {
33300
33332
  this.tasks.push({ fn: t2, state: "wait", sub: [], name: e2 });
33301
33333
  }
@@ -33324,7 +33356,7 @@ void main(void){
33324
33356
  }));
33325
33357
  }
33326
33358
  applyAll() {
33327
- return Cy(this, void 0, void 0, function* () {
33359
+ return Ry(this, void 0, void 0, function* () {
33328
33360
  for (; !this.tasks.every((t2) => t2.state === "finish"); )
33329
33361
  if (this.tasks.some((t2) => t2.state === "running"))
33330
33362
  yield Iy(16);
@@ -33336,7 +33368,7 @@ void main(void){
33336
33368
  if (t2) {
33337
33369
  t2.state = "running";
33338
33370
  try {
33339
- if ((yield Im(() => t2.fn.apply(null), 6e4)) === Rm)
33371
+ if ((yield Im(() => t2.fn.apply(null), 6e4)) === Cm)
33340
33372
  throw new Tm(gm.RuntimeError, `subtask ${t2.name} apply timeout`);
33341
33373
  if (t2.state = "finish", t2.sub.length > 0) {
33342
33374
  const e2 = this.tasks.findIndex((e3) => e3 === t2);
@@ -33533,7 +33565,7 @@ void main(void){
33533
33565
  };
33534
33566
  class Dy {
33535
33567
  constructor(t2, e2, i2, n2, r2, o2, s2, a2, l2, h2, u2, c2, d2, p2, f2, m2, g2) {
33536
- this.loader = t2, this.mode = e2, this.renderer = i2, this.ticker = n2, this.view = r2, this.clock = o2, this.objPoolGroup = s2, this.errorChannel = a2, this.localstorage = l2, this.logger = h2, this.loaderDelegate = u2, this.urlInterrupter = c2, this.isPlayerPaused = d2, this.maxResolution = p2, this.volumeAdjuster = f2, this.forceCanvas = m2, this.globalEventHub = g2, this.currentStageIndex = 0, this.cacheCount = r_.isDesktop() ? 2 : 1, this.stageStates = /* @__PURE__ */ Object.create(null), this.stageJsons = /* @__PURE__ */ Object.create(null), this.stageCtxs = /* @__PURE__ */ Object.create(null), this.stageImpls = /* @__PURE__ */ Object.create(null), this.taskId = "", this.url = "", this.runningAudio = /* @__PURE__ */ new Map(), this.activeMedia = /* @__PURE__ */ new Set(), this.microTaskManager = new Ry(n2), this.sdfManager = new Ny(i2, l2);
33568
+ this.loader = t2, this.mode = e2, this.renderer = i2, this.ticker = n2, this.view = r2, this.clock = o2, this.objPoolGroup = s2, this.errorChannel = a2, this.localstorage = l2, this.logger = h2, this.loaderDelegate = u2, this.urlInterrupter = c2, this.isPlayerPaused = d2, this.maxResolution = p2, this.volumeAdjuster = f2, this.forceCanvas = m2, this.globalEventHub = g2, this.currentStageIndex = 0, this.cacheCount = r_.isDesktop() ? 2 : 1, this.stageStates = /* @__PURE__ */ Object.create(null), this.stageJsons = /* @__PURE__ */ Object.create(null), this.stageCtxs = /* @__PURE__ */ Object.create(null), this.stageImpls = /* @__PURE__ */ Object.create(null), this.taskId = "", this.url = "", this.runningAudio = /* @__PURE__ */ new Map(), this.activeMedia = /* @__PURE__ */ new Set(), this.microTaskManager = new Cy(n2), this.sdfManager = new Ny(i2, l2);
33537
33569
  }
33538
33570
  setResourceData(t2, e2) {
33539
33571
  this.taskId = t2, this.url = e2;
@@ -33696,7 +33728,7 @@ void main(void){
33696
33728
  e2 = yield Im(() => By.localCache.getItem(`${this.taskId}/${t2}`), 500);
33697
33729
  } catch (t3) {
33698
33730
  }
33699
- return e2 = e2 === Rm ? null : e2, e2 || this.memoryCache.get(t2) || null;
33731
+ return e2 = e2 === Cm ? null : e2, e2 || this.memoryCache.get(t2) || null;
33700
33732
  });
33701
33733
  }
33702
33734
  setItem(t2, e2, i2 = false) {
@@ -33711,7 +33743,7 @@ void main(void){
33711
33743
  }), 500);
33712
33744
  } catch (t3) {
33713
33745
  }
33714
- n2 !== Rm && n2 !== null || !i2 || this.memoryCache.set(t2, e2);
33746
+ n2 !== Cm && n2 !== null || !i2 || this.memoryCache.set(t2, e2);
33715
33747
  }
33716
33748
  });
33717
33749
  }
@@ -33854,7 +33886,7 @@ void main(void){
33854
33886
  this.globalVideoSprite.texture.destroy(false), this.globalVideoBackground.removeChild(this.globalVideoSprite), this.app.stage.removeChild(this.globalVideoBackground), this.globalEventHub.emit("onFullscreenChange", { status: false, slideIndex: this.currentIndex, targetId: (e3 = this.currentStage) === null || e3 === void 0 ? void 0 : e3.ctx.latestChangeFullscreenTargetId }), this.clearFullscreenEventListenersWithAppView(), t3 && this.emit(zy.changeLocalFullscreenState, { status: false, slideIndex: this.currentIndex, targetId: (i3 = this.currentStage) === null || i3 === void 0 ? void 0 : i3.ctx.latestChangeFullscreenTargetId });
33855
33887
  }, this.logger = t2.logger, this.tracker = t2.tracker, this.mode = t2.mode, this.volumeAdjuster = t2.volumeAdjuster, this.localStorage = new By(this.logger), this.cachedExtract = new ky(this.localStorage), this.config = { minFPS: $a()(e2.minFPS) ? 30 : e2.minFPS, maxFPS: $a()(e2.maxFPS) ? 40 : e2.maxFPS, resolution: $a()(e2.resolution) ? 1 : e2.resolution, autoFPS: !$a()(e2.autoFPS) && e2.autoFPS, autoResolution: !$a()(e2.autoResolution) && e2.autoResolution, transactionBgColor: $a()(e2.transactionBgColor) ? 0 : e2.transactionBgColor, maxResolutionLevel: this.getMaxResolution(e2.maxResolutionLevel), forceCanvas: !$a()(e2.forceCanvas) && e2.forceCanvas, enableNvidiaDetect: !$a()(e2.enableNvidiaDetect) && e2.enableNvidiaDetect }, this.updateMaxResolutionLevel(this.config.maxResolutionLevel), this.loader = new Lm(this.localStorage, t2.useLocalCache, this.logger, this.tracker, t2.resourceTimeout, t2.loadDelegate, t2.urlInterrupter);
33856
33888
  const i2 = Ph.isWebGLSupported();
33857
- this.app = new Xh({ antialias: true, autoDensity: false, backgroundColor: 16777215, forceCanvas: this.config.forceCanvas || !i2 }), this.tracker({ name: "slidePlayerCreate", result: "", reason: "", payload: { webgl: i2, resolution: this.config.resolution, minFPS: this.config.minFPS, maxFPS: this.config.maxFPS, maxResolutionLevel: this.config.maxResolutionLevel, forceCanvas: this.config.forceCanvas } }), this.updateConfig(this.config), this.app.ticker.maxFPS = 60, this.app.ticker.minFPS = this.config.minFPS, this.app.ticker.maxFPS = this.config.maxFPS, this.app.view.style.zIndex = "1", this.app.stage.sortableChildren = true;
33889
+ this.app = new Xh({ antialias: true, autoDensity: false, backgroundColor: 16777215, forceCanvas: this.config.forceCanvas || !i2 }), globalThis.__PIXI_APP__ = this.app, this.tracker({ name: "slidePlayerCreate", result: "", reason: "", payload: { webgl: i2, resolution: this.config.resolution, minFPS: this.config.minFPS, maxFPS: this.config.maxFPS, maxResolutionLevel: this.config.maxResolutionLevel, forceCanvas: this.config.forceCanvas } }), this.updateConfig(this.config), this.app.ticker.maxFPS = 60, this.app.ticker.minFPS = this.config.minFPS, this.app.ticker.maxFPS = this.config.maxFPS, this.app.view.style.zIndex = "1", this.app.stage.sortableChildren = true;
33858
33890
  const n2 = this.app.renderer;
33859
33891
  if (n2.gl) {
33860
33892
  const { drawElements: t3 } = n2.gl, e3 = n2.gl.getExtension("WEBGL_debug_renderer_info"), i3 = n2.gl.getParameter(e3.UNMASKED_RENDERER_WEBGL);
@@ -34277,9 +34309,9 @@ void main(void){
34277
34309
  };
34278
34310
  }
34279
34311
  Ex.push(t2), ex();
34280
- }, wx = 0, Ax = { attributes: true, characterData: true, childList: true, subtree: true }, Mx = ["resize", "load", "transitionend", "animationend", "animationstart", "animationiteration", "keyup", "keydown", "mouseup", "mousedown", "mouseover", "mouseout", "blur", "focus"], Rx = function(t2) {
34312
+ }, wx = 0, Ax = { attributes: true, characterData: true, childList: true, subtree: true }, Mx = ["resize", "load", "transitionend", "animationend", "animationstart", "animationiteration", "keyup", "keydown", "mouseup", "mousedown", "mouseover", "mouseout", "blur", "focus"], Cx = function(t2) {
34281
34313
  return t2 === void 0 && (t2 = 0), Date.now() + t2;
34282
- }, Cx = false, Ix = new (function() {
34314
+ }, Rx = false, Ix = new (function() {
34283
34315
  function t2() {
34284
34316
  var t3 = this;
34285
34317
  this.stopped = true, this.listener = function() {
@@ -34288,15 +34320,15 @@ void main(void){
34288
34320
  }
34289
34321
  return t2.prototype.run = function(t3) {
34290
34322
  var e2 = this;
34291
- if (t3 === void 0 && (t3 = 250), !Cx) {
34292
- Cx = true;
34293
- var i2, n2 = Rx(t3);
34323
+ if (t3 === void 0 && (t3 = 250), !Rx) {
34324
+ Rx = true;
34325
+ var i2, n2 = Cx(t3);
34294
34326
  i2 = function() {
34295
34327
  var i3 = false;
34296
34328
  try {
34297
34329
  i3 = Tx();
34298
34330
  } finally {
34299
- if (Cx = false, t3 = n2 - Rx(), !wx)
34331
+ if (Rx = false, t3 = n2 - Cx(), !wx)
34300
34332
  return;
34301
34333
  i3 ? e2.run(1e3) : t3 > 0 ? e2.run(t3) : e2.start();
34302
34334
  }
@@ -35122,7 +35154,7 @@ void main(void){
35122
35154
  };
35123
35155
  var Mb = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(t2) {
35124
35156
  setTimeout(t2, 1e3 / 60);
35125
- }, Rb = function() {
35157
+ }, Cb = function() {
35126
35158
  function t2() {
35127
35159
  $x(this, t2), this.backgroundElement = document.createElement("div"), Xx.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" }), cb.makeFullscreen(this.backgroundElement), this.backgroundElement.style.position = "fixed", this.domElement = document.createElement("div"), Xx.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);
35128
35160
  var e2 = this;
@@ -35150,7 +35182,7 @@ void main(void){
35150
35182
  return e2.setAttribute("type", "text/css"), e2.innerHTML = t2, document.head.appendChild(e2), t2;
35151
35183
  }
35152
35184
  }(".dg ul{list-style:none;margin:0;padding:0;width:100%;clear:both}.dg.ac{position:fixed;top:0;left:0;right:0;height:0;z-index:0}.dg:not(.ac) .main{overflow:hidden}.dg.main{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear}.dg.main.taller-than-window{overflow-y:auto}.dg.main.taller-than-window .close-button{opacity:1;margin-top:-1px;border-top:1px solid #2c2c2c}.dg.main ul.closed .close-button{opacity:1 !important}.dg.main:hover .close-button,.dg.main .close-button.drag{opacity:1}.dg.main .close-button{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear;border:0;line-height:19px;height:20px;cursor:pointer;text-align:center;background-color:#000}.dg.main .close-button.close-top{position:relative}.dg.main .close-button.close-bottom{position:absolute}.dg.main .close-button:hover{background-color:#111}.dg.a{float:right;margin-right:15px;overflow-y:visible}.dg.a.has-save>ul.close-top{margin-top:0}.dg.a.has-save>ul.close-bottom{margin-top:27px}.dg.a.has-save>ul.closed{margin-top:0}.dg.a .save-row{top:0;z-index:1002}.dg.a .save-row.close-top{position:relative}.dg.a .save-row.close-bottom{position:fixed}.dg li{-webkit-transition:height .1s ease-out;-o-transition:height .1s ease-out;-moz-transition:height .1s ease-out;transition:height .1s ease-out;-webkit-transition:overflow .1s linear;-o-transition:overflow .1s linear;-moz-transition:overflow .1s linear;transition:overflow .1s linear}.dg li:not(.folder){cursor:auto;height:27px;line-height:27px;padding:0 4px 0 5px}.dg li.folder{padding:0;border-left:4px solid rgba(0,0,0,0)}.dg li.title{cursor:pointer;margin-left:-4px}.dg .closed li:not(.title),.dg .closed ul li,.dg .closed ul li>*{height:0;overflow:hidden;border:0}.dg .cr{clear:both;padding-left:3px;height:27px;overflow:hidden}.dg .property-name{cursor:default;float:left;clear:left;width:40%;overflow:hidden;text-overflow:ellipsis}.dg .cr.function .property-name{width:100%}.dg .c{float:left;width:60%;position:relative}.dg .c input[type=text]{border:0;margin-top:4px;padding:3px;width:100%;float:right}.dg .has-slider input[type=text]{width:30%;margin-left:0}.dg .slider{float:left;width:66%;margin-left:-5px;margin-right:0;height:19px;margin-top:4px}.dg .slider-fg{height:100%}.dg .c input[type=checkbox]{margin-top:7px}.dg .c select{margin-top:5px}.dg .cr.function,.dg .cr.function .property-name,.dg .cr.function *,.dg .cr.boolean,.dg .cr.boolean *{cursor:pointer}.dg .cr.color{overflow:visible}.dg .selector{display:none;position:absolute;margin-left:-9px;margin-top:23px;z-index:10}.dg .c:hover .selector,.dg .selector.drag{display:block}.dg li.save-row{padding:0}.dg li.save-row .button{display:inline-block;padding:0px 6px}.dg.dialogue{background-color:#222;width:460px;padding:15px;font-size:13px;line-height:15px}#dg-new-constructor{padding:10px;color:#222;font-family:Monaco, monospace;font-size:10px;border:0;resize:none;box-shadow:inset 1px 1px 1px #888;word-wrap:break-word;margin:12px 0;display:block;width:440px;overflow-y:scroll;height:100px;position:relative}#dg-local-explain{display:none;font-size:11px;line-height:17px;border-radius:3px;background-color:#333;padding:8px;margin-top:10px}#dg-local-explain code{font-size:10px}#dat-gui-save-locally{display:none}.dg{color:#eee;font:11px 'Lucida Grande', sans-serif;text-shadow:0 -1px 0 #111}.dg.main::-webkit-scrollbar{width:5px;background:#1a1a1a}.dg.main::-webkit-scrollbar-corner{height:0;display:none}.dg.main::-webkit-scrollbar-thumb{border-radius:5px;background:#676767}.dg li:not(.folder){background:#1a1a1a;border-bottom:1px solid #2c2c2c}.dg li.save-row{line-height:25px;background:#dad5cb;border:0}.dg li.save-row select{margin-left:5px;width:108px}.dg li.save-row .button{margin-left:5px;margin-top:1px;border-radius:2px;font-size:9px;line-height:7px;padding:4px 4px 5px 4px;background:#c5bdad;color:#fff;text-shadow:0 1px 0 #b0a58f;box-shadow:0 -1px 0 #b0a58f;cursor:pointer}.dg li.save-row .button.gears{background:#c5bdad url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQJJREFUeNpiYKAU/P//PwGIC/ApCABiBSAW+I8AClAcgKxQ4T9hoMAEUrxx2QSGN6+egDX+/vWT4e7N82AMYoPAx/evwWoYoSYbACX2s7KxCxzcsezDh3evFoDEBYTEEqycggWAzA9AuUSQQgeYPa9fPv6/YWm/Acx5IPb7ty/fw+QZblw67vDs8R0YHyQhgObx+yAJkBqmG5dPPDh1aPOGR/eugW0G4vlIoTIfyFcA+QekhhHJhPdQxbiAIguMBTQZrPD7108M6roWYDFQiIAAv6Aow/1bFwXgis+f2LUAynwoIaNcz8XNx3Dl7MEJUDGQpx9gtQ8YCueB+D26OECAAQDadt7e46D42QAAAABJRU5ErkJggg==) 2px 1px no-repeat;height:7px;width:8px}.dg li.save-row .button:hover{background-color:#bab19e;box-shadow:0 -1px 0 #b0a58f}.dg li.folder{border-bottom:0}.dg li.title{padding-left:16px;background:#000 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;cursor:pointer;border-bottom:1px solid rgba(255,255,255,0.2)}.dg .closed li.title{background-image:url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlGIWqMCbWAEAOw==)}.dg .cr.boolean{border-left:3px solid #806787}.dg .cr.color{border-left:3px solid}.dg .cr.function{border-left:3px solid #e61d5f}.dg .cr.number{border-left:3px solid #2FA1D6}.dg .cr.number input[type=text]{color:#2FA1D6}.dg .cr.string{border-left:3px solid #1ed36f}.dg .cr.string input[type=text]{color:#1ed36f}.dg .cr.function:hover,.dg .cr.boolean:hover{background:#111}.dg .c input[type=text]{background:#303030;outline:none}.dg .c input[type=text]:hover{background:#3c3c3c}.dg .c input[type=text]:focus{background:#494949;color:#fff}.dg .c .slider{background:#303030;cursor:ew-resize}.dg .c .slider-fg{background:#2FA1D6;max-width:100%}.dg .c .slider:hover{background:#3c3c3c}.dg .c .slider:hover .slider-fg{background:#44abda}\n"));
35153
- var Cb = function() {
35185
+ var Rb = function() {
35154
35186
  try {
35155
35187
  return !!window.localStorage;
35156
35188
  } catch (t2) {
@@ -35159,7 +35191,7 @@ void main(void){
35159
35191
  }(), Ib = void 0, Pb = true, Ob = void 0, Nb = false, Lb = [], Db = function t2(e2) {
35160
35192
  var i2 = this, n2 = e2 || {};
35161
35193
  this.domElement = document.createElement("div"), this.__ul = document.createElement("ul"), this.domElement.appendChild(this.__ul), cb.addClass(this.domElement, "dg"), this.__folders = {}, this.__controllers = [], this.__rememberedObjects = [], this.__rememberedObjectIndecesToControllers = [], this.__listening = [], n2 = Xx.defaults(n2, { closeOnTop: false, autoPlace: true, width: t2.DEFAULT_WIDTH }), n2 = Xx.defaults(n2, { resizable: n2.autoPlace, hideable: n2.autoPlace }), Xx.isUndefined(n2.load) ? n2.load = { preset: "Default" } : n2.preset && (n2.load.preset = n2.preset), Xx.isUndefined(n2.parent) && n2.hideable && Lb.push(this), n2.resizable = Xx.isUndefined(n2.parent) && n2.resizable, n2.autoPlace && Xx.isUndefined(n2.scrollable) && (n2.scrollable = true);
35162
- var r2, o2 = Cb && localStorage.getItem(Hb(this, "isLocal")) === "true", s2 = void 0, a2 = void 0;
35194
+ var r2, o2 = Rb && localStorage.getItem(Hb(this, "isLocal")) === "true", s2 = void 0, a2 = void 0;
35163
35195
  if (Object.defineProperties(this, { parent: { get: function() {
35164
35196
  return n2.parent;
35165
35197
  } }, scrollable: { get: function() {
@@ -35192,9 +35224,9 @@ void main(void){
35192
35224
  } }, useLocalStorage: { get: function() {
35193
35225
  return o2;
35194
35226
  }, set: function(t3) {
35195
- Cb && (o2 = t3, t3 ? cb.bind(window, "unload", s2) : cb.unbind(window, "unload", s2), localStorage.setItem(Hb(i2, "isLocal"), t3));
35227
+ Rb && (o2 = t3, t3 ? cb.bind(window, "unload", s2) : cb.unbind(window, "unload", s2), localStorage.setItem(Hb(i2, "isLocal"), t3));
35196
35228
  } } }), Xx.isUndefined(n2.parent)) {
35197
- if (this.closed = n2.closed || false, cb.addClass(this.domElement, t2.CLASS_MAIN), cb.makeSelectable(this.domElement, false), Cb && o2) {
35229
+ if (this.closed = n2.closed || false, cb.addClass(this.domElement, t2.CLASS_MAIN), cb.makeSelectable(this.domElement, false), Rb && o2) {
35198
35230
  i2.useLocalStorage = true;
35199
35231
  var l2 = localStorage.getItem(Hb(this, "gui"));
35200
35232
  l2 && (n2.load = JSON.parse(l2));
@@ -35213,7 +35245,7 @@ void main(void){
35213
35245
  n2.autoPlace && (Xx.isUndefined(n2.parent) && (Pb && (Ob = document.createElement("div"), cb.addClass(Ob, "dg"), cb.addClass(Ob, t2.CLASS_AUTO_PLACE_CONTAINER), document.body.appendChild(Ob), Pb = false), Ob.appendChild(this.domElement), cb.addClass(this.domElement, t2.CLASS_AUTO_PLACE)), this.parent || Wb(i2, n2.width)), this.__resizeHandler = function() {
35214
35246
  i2.onResizeDebounced();
35215
35247
  }, cb.bind(window, "resize", this.__resizeHandler), cb.bind(this.__ul, "webkitTransitionEnd", this.__resizeHandler), cb.bind(this.__ul, "transitionend", this.__resizeHandler), cb.bind(this.__ul, "oTransitionEnd", this.__resizeHandler), this.onResize(), n2.resizable && Xb(this), s2 = function() {
35216
- Cb && localStorage.getItem(Hb(i2, "isLocal")) === "true" && localStorage.setItem(Hb(i2, "gui"), JSON.stringify(i2.getSaveObject()));
35248
+ Rb && localStorage.getItem(Hb(i2, "isLocal")) === "true" && localStorage.setItem(Hb(i2, "gui"), JSON.stringify(i2.getSaveObject()));
35217
35249
  }, this.saveToLocalStorageIfPossible = s2, n2.parent || ((r2 = i2.getRoot()).width += 1, Xx.defer(function() {
35218
35250
  r2.width -= 1;
35219
35251
  }));
@@ -35348,7 +35380,7 @@ void main(void){
35348
35380
  for (var e3 = 0; e3 < t2.__preset_select.length; e3++)
35349
35381
  t2.__preset_select[e3].innerHTML = t2.__preset_select[e3].value;
35350
35382
  t2.preset = this.value;
35351
- }), e2.appendChild(s2), e2.appendChild(i2), e2.appendChild(n2), e2.appendChild(r2), e2.appendChild(o2), Cb) {
35383
+ }), e2.appendChild(s2), e2.appendChild(i2), e2.appendChild(n2), e2.appendChild(r2), e2.appendChild(o2), Rb) {
35352
35384
  var a2 = document.getElementById("dg-local-explain"), l2 = document.getElementById("dg-local-storage");
35353
35385
  document.getElementById("dg-save-locally").style.display = "block", localStorage.getItem(Hb(0, "isLocal")) === "true" && l2.setAttribute("checked", "checked"), zb(t2, a2), cb.bind(l2, "change", function() {
35354
35386
  t2.useLocalStorage = !t2.useLocalStorage, zb(t2, a2);
@@ -35456,7 +35488,7 @@ void main(void){
35456
35488
  }, onResizeDebounced: Xx.debounce(function() {
35457
35489
  this.onResize();
35458
35490
  }, 50), remember: function() {
35459
- if (Xx.isUndefined(Ib) && ((Ib = new Rb()).domElement.innerHTML = wb), this.parent)
35491
+ if (Xx.isUndefined(Ib) && ((Ib = new Cb()).domElement.innerHTML = wb), this.parent)
35460
35492
  throw new Error("You can only call remember on a top level GUI.");
35461
35493
  var t2 = this;
35462
35494
  Xx.each(Array.prototype.slice.call(arguments), function(e2) {
@@ -35845,23 +35877,23 @@ void main(void){
35845
35877
  };
35846
35878
  }
35847
35879
  };
35848
- function oT(t2, e2, i2) {
35880
+ function oT(t2, e2, i2, n2) {
35849
35881
  return nT(this, void 0, void 0, function() {
35850
- var n2, r2, o2, s2;
35851
- return rT(this, function(a2) {
35852
- switch (a2.label) {
35882
+ var r2, o2, s2, a2;
35883
+ return rT(this, function(l2) {
35884
+ switch (l2.label) {
35853
35885
  case 0:
35854
- return n2 = document.createElement("div"), (r2 = new _T({ anchor: n2, renderOptions: { minFPS: 1, maxFPS: 1, resolution: 1 }, mode: "local", interactive: false, useLocalCache: true })).setResource(t2, e2), [4, r2.getSlideCountAsync()];
35886
+ return r2 = document.createElement("div"), (o2 = new _T({ anchor: r2, renderOptions: { minFPS: 1, maxFPS: 1, resolution: 1, maxResolutionLevel: i2 }, mode: "local", interactive: false, useLocalCache: true })).setResource(t2, e2), [4, o2.getSlideCountAsync()];
35855
35887
  case 1:
35856
- o2 = a2.sent(), s2 = 1, a2.label = 2;
35888
+ s2 = l2.sent(), a2 = 1, l2.label = 2;
35857
35889
  case 2:
35858
- return s2 <= o2 ? [4, r2.player.stagePool.preload(s2, true)] : [3, 5];
35890
+ return a2 <= s2 ? [4, o2.player.stagePool.preload(a2, true)] : [3, 5];
35859
35891
  case 3:
35860
- a2.sent(), i2(Math.round(s2 / o2 * 100) / 100), a2.label = 4;
35892
+ l2.sent(), n2(Math.round(a2 / s2 * 100) / 100), l2.label = 4;
35861
35893
  case 4:
35862
- return s2++, [3, 2];
35894
+ return a2++, [3, 2];
35863
35895
  case 5:
35864
- return r2.destroy(), [2];
35896
+ return o2.destroy(), [2];
35865
35897
  }
35866
35898
  });
35867
35899
  });
@@ -36009,9 +36041,9 @@ void main(void){
36009
36041
  }
36010
36042
  var fT = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", syncEventLag: "syncEventLag", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange", slideStepEnd: "slideEnd", slideStepStart: "slideStart" }, mT = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, gT = "";
36011
36043
  try {
36012
- gT = "1.3.1";
36044
+ gT = "1.4.0-alpha.0";
36013
36045
  } catch (t2) {
36014
- gT = "dev -";
36046
+ gT = "dev";
36015
36047
  }
36016
36048
  var vT = null;
36017
36049
  try {
@@ -36752,7 +36784,7 @@ void main(void){
36752
36784
  }
36753
36785
  _T.volumeAdjuster.volume = e2;
36754
36786
  } else
36755
- t2.data.type === "@slide/_get_volume_" ? window.postMessage({ type: "@slide/_report_volume_", volume: _T.volumeAdjuster.volume, customMessage: "@slide/_report_volume_" }, "*") : t2.data.type === "@slide/_preload_slide_" && _T.preloadResource(t2.data.taskId, t2.data.prefix, function(e3) {
36787
+ t2.data.type === "@slide/_get_volume_" ? window.postMessage({ type: "@slide/_report_volume_", volume: _T.volumeAdjuster.volume, customMessage: "@slide/_report_volume_" }, "*") : t2.data.type === "@slide/_preload_slide_" && _T.preloadResource(t2.data.taskId, t2.data.prefix, t2.data.maxResolutionLevel, function(e3) {
36756
36788
  window.postMessage({ type: "@slide/_preload_slide_progress_", taskId: t2.data.taskId, progress: e3 }, "*");
36757
36789
  }).catch(function(e3) {
36758
36790
  window.postMessage({ type: "@slide/_preload_slide_error_", taskId: t2.data.taskId, error: e3 }, "*");
@@ -39162,7 +39194,7 @@ class SlidePreviewer {
39162
39194
  }
39163
39195
  }
39164
39196
  const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
39165
- const version = "0.2.55";
39197
+ const version = "0.2.56";
39166
39198
  const SlideApp = {
39167
39199
  kind: "Slide",
39168
39200
  setup(context) {