@netless/app-slide 0.2.42 → 0.2.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +153 -140
- package/dist/main.cjs.js +92 -92
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +436 -418
- package/dist/main.es.js.map +1 -1
- package/dist/main.iife.js +149 -149
- package/dist/main.iife.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/dist/main.es.js
CHANGED
|
@@ -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
|
|
1042
|
+
var R = 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),
|
|
1052
|
+
}(m), C = 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
|
|
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;
|
|
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
|
|
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;
|
|
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
|
|
1646
|
+
this.renderer = t3, this.managedFramebuffers = [], this.unknownFramebuffer = new C(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
|
|
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++);
|
|
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
|
|
2058
|
+
function Rt(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
|
|
2063
|
+
var Ct = 0, It = {}, Pt = function() {
|
|
2064
2064
|
function t2(e2, i2, o2) {
|
|
2065
|
-
o2 === void 0 && (o2 = "pixi-shader"), this.id =
|
|
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;
|
|
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,
|
|
2940
|
+
var n2 = Mt.replace(/%forloop%/gi, Rt(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
|
|
3101
|
+
return C;
|
|
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
|
|
3241
|
-
function
|
|
3240
|
+
var R = { Float32Array, Uint32Array, Int32Array, Uint8Array };
|
|
3241
|
+
function C(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
|
|
3247
|
+
r2[c2] || (r2[c2] = new R[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,
|
|
3362
|
+
var y, x, b, T, E, S, w, A, M, R, C, 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
|
-
}(C || (C = {})), function(t2) {
|
|
3395
|
-
t2[t2.CLAMP = 33071] = "CLAMP", t2[t2.REPEAT = 10497] = "REPEAT", t2[t2.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT";
|
|
3396
3394
|
}(R || (R = {})), function(t2) {
|
|
3395
|
+
t2[t2.CLAMP = 33071] = "CLAMP", t2[t2.REPEAT = 10497] = "REPEAT", t2[t2.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT";
|
|
3396
|
+
}(C || (C = {})), 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:
|
|
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 };
|
|
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 C;
|
|
3435
|
-
}), i.d(e, "d", function() {
|
|
3436
3434
|
return R;
|
|
3435
|
+
}), i.d(e, "d", function() {
|
|
3436
|
+
return C;
|
|
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,
|
|
3535
|
+
var h, u, c, d, p, f, m, g, v, _, y, x, b, T, E, S, w, A, M, R = 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
|
|
3574
|
+
return this.tempDisplayObjectParent === null && (this.tempDisplayObjectParent = new C()), 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),
|
|
3639
|
+
}(o.EventEmitter), C = 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
|
-
}(
|
|
3645
|
+
}(R);
|
|
3646
3646
|
function I(t2, e2) {
|
|
3647
3647
|
return t2.zIndex === e2.zIndex ? t2._lastSortedIndex - e2._lastSortedIndex : t2.zIndex - e2.zIndex;
|
|
3648
3648
|
}
|
|
3649
|
-
|
|
3649
|
+
R.prototype.displayObjectUpdateTransform = R.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
|
-
}(
|
|
3852
|
+
}(R);
|
|
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,
|
|
4342
|
-
I = I > P ? P : I, e2.moveTo(A, M + I), e2.lineTo(A, M +
|
|
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();
|
|
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+/",
|
|
5501
|
+
} }, M = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", R = /^~~local_forage_type~([^~]+)~/, C = "__lfsc__:".length, I = C + "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,
|
|
5534
|
+
if (t3.substring(0, C) !== "__lfsc__:")
|
|
5535
5535
|
return JSON.parse(t3);
|
|
5536
|
-
var e4, i3 = t3.substring(I), n2 = t3.substring(
|
|
5537
|
-
if (n2 === "blob" &&
|
|
5538
|
-
var r2 = i3.match(
|
|
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);
|
|
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]*)?$/,
|
|
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 };
|
|
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
|
|
6450
|
-
U2 && (
|
|
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(".");
|
|
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 =
|
|
6461
|
-
var H2 =
|
|
6460
|
+
for (g2 = 0, b2 = C.length; g2 < b2; g2++) {
|
|
6461
|
+
var H2 = C[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(), (
|
|
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());
|
|
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,
|
|
6539
|
-
(w2 = T2[
|
|
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--);
|
|
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
|
|
6545
|
-
E2 && (i2.hostname = i2.host = I2 ? "" : T2.length ? T2.shift() : "", (
|
|
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()));
|
|
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),
|
|
7120
|
+
}(At), Rt = { scaleMode: r.p.NEAREST, format: r.h.RGBA, alphaMode: r.a.NPM }, Ct = 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(
|
|
7189
|
+
return new e2(s2, Object.assign(Rt, 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
|
|
7211
|
+
var l2 = new Ct();
|
|
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
|
|
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;
|
|
7520
7520
|
}, t3.prototype.addDepthTexture = function(t4) {
|
|
7521
|
-
return this.depthTexture = t4 || new
|
|
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;
|
|
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
|
-
}(
|
|
7560
|
+
}(Ct), 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
|
|
7621
|
+
else if (t4 instanceof Ct) {
|
|
7622
7622
|
if (!t4.cacheId) {
|
|
7623
7623
|
var a2 = i2 && i2.pixiIdPrefix || "pixiid";
|
|
7624
|
-
t4.cacheId = a2 + "-" + Y(),
|
|
7624
|
+
t4.cacheId = a2 + "-" + Y(), Ct.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
|
|
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;
|
|
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(
|
|
7644
|
+
return new e2(Ct.fromBuffer(t4, i2, n2, r2));
|
|
7645
7645
|
}, e2.fromLoader = function(t4, i2, r2, o2) {
|
|
7646
|
-
var s2 = new
|
|
7646
|
+
var s2 = new Ct(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),
|
|
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) {
|
|
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
|
|
7692
|
+
return e2._EMPTY || (e2._EMPTY = new e2(new Ct()), 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
|
|
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);
|
|
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
|
|
8442
|
+
function Re() {
|
|
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
|
|
8459
|
+
function Ce(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 =
|
|
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;
|
|
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
|
|
9101
|
+
this.renderer = t4, this.boundTextures = [], this.currentLocation = -1, this.managedTextures = [], this._unknownBoundTextures = false, this.unknownTexture = new Ct(), 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 = ++
|
|
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;
|
|
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
|
-
|
|
9464
|
+
Ct._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
|
-
}(),
|
|
9542
|
+
}(), Ri = 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),
|
|
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";
|
|
9550
9550
|
(function() {
|
|
9551
9551
|
function t3() {
|
|
9552
9552
|
}
|
|
9553
9553
|
return t3.create = function(t4) {
|
|
9554
|
-
var e2 = Object.assign({ vertex:
|
|
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;
|
|
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
|
|
9563
|
+
return Ci;
|
|
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,
|
|
9593
|
-
x2 = O2 + L2 * k2, E2 = N2 + D2 * k2, F2 =
|
|
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;
|
|
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
|
-
(
|
|
9686
|
+
(R = y2.indexOf(d[M])) !== -1 && (A === -1 || R < A) && (A = R);
|
|
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
|
|
9691
|
-
(
|
|
9690
|
+
var R;
|
|
9691
|
+
(R = y2.indexOf(c[M])) !== -1 && (A === -1 || R < A) && (A = R);
|
|
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
|
|
9695
|
-
if (!
|
|
9694
|
+
var C = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
9695
|
+
if (!C)
|
|
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(),
|
|
9708
|
+
this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), C || (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,
|
|
9710
|
+
this.host = G + k, this.href += this.host, C && (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(), (
|
|
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());
|
|
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,
|
|
9792
|
-
(w = E[
|
|
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--);
|
|
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
|
|
9798
|
-
S && (i2.hostname = i2.host = I ? "" : E.length ? E.shift() : "", (
|
|
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()));
|
|
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 ===
|
|
10069
|
+
if (r2 === R(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
|
|
10272
|
+
function R(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(
|
|
10278
|
+
var r2 = e2 && e2.length, o2 = r2 ? e2[0] * i2 : t2.length, s2 = Math.abs(R(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(
|
|
10282
|
+
s2 -= Math.abs(R(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,
|
|
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) {
|
|
12418
12418
|
var I, P = 1 & i2, O = 2 & i2, N = 4 & i2;
|
|
12419
|
-
if (A && (I =
|
|
12419
|
+
if (A && (I = R ? A(e2, M, R, C) : 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 && !
|
|
12431
|
+
if (D == "[object Object]" || D == "[object Arguments]" || F && !R) {
|
|
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
|
|
12436
|
+
return R ? e2 : {};
|
|
12437
12437
|
I = g(e2, D, P);
|
|
12438
12438
|
}
|
|
12439
12439
|
}
|
|
12440
|
-
|
|
12441
|
-
var B =
|
|
12440
|
+
C || (C = new n());
|
|
12441
|
+
var B = C.get(e2);
|
|
12442
12442
|
if (B)
|
|
12443
12443
|
return B;
|
|
12444
|
-
|
|
12445
|
-
I.add(t2(n2, i2, A, n2, e2,
|
|
12444
|
+
C.set(e2, I), T(e2) ? e2.forEach(function(n2) {
|
|
12445
|
+
I.add(t2(n2, i2, A, n2, e2, C));
|
|
12446
12446
|
}) : x(e2) && e2.forEach(function(n2, r2) {
|
|
12447
|
-
I.set(r2, t2(n2, i2, A, r2, e2,
|
|
12447
|
+
I.set(r2, t2(n2, i2, A, r2, e2, C));
|
|
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,
|
|
12451
|
+
U && (n2 = e2[r2 = n2]), o(I, r2, t2(n2, i2, A, r2, e2, C));
|
|
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(
|
|
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));
|
|
13618
13618
|
}
|
|
13619
13619
|
applyAxisAngle(t2, e2) {
|
|
13620
|
-
return this.applyQuaternion(
|
|
13620
|
+
return this.applyQuaternion(C.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
|
|
13723
|
+
return R.copy(this).projectOnVector(t2), this.sub(R);
|
|
13724
13724
|
}
|
|
13725
13725
|
reflect(t2) {
|
|
13726
|
-
return this.sub(
|
|
13726
|
+
return this.sub(R.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
|
|
13789
|
+
const R = new M(), C = 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],
|
|
14194
|
-
return r2[0] = o2 * b2 + s2 * w2 + a2 *
|
|
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;
|
|
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" },
|
|
14412
|
-
class
|
|
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 {
|
|
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 =
|
|
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();
|
|
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 =
|
|
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 = {};
|
|
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(
|
|
14497
|
+
return e2 !== -1 && (t2.parent = null, this.children.splice(e2, 1), t2.dispatchEvent(Rt)), 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(
|
|
14506
|
+
e2.parent = null, e2.dispatchEvent(Rt);
|
|
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
|
-
|
|
14648
|
+
Ct.DefaultUp = new M(0, 1, 0), Ct.DefaultMatrixAutoUpdate = true, Ct.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
|
|
15175
|
+
const se = new rt(), ae = new Ct(), 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(),
|
|
15473
|
-
class Ie extends
|
|
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 {
|
|
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
|
-
|
|
15559
|
-
const h3 = i3.ray.origin.distanceTo(
|
|
15560
|
-
return h3 < i3.near || h3 > i3.far ? null : { distance: h3, point:
|
|
15561
|
-
}(t2, e2, i2, n2, ge, ve, _e,
|
|
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);
|
|
15562
15562
|
if (p2) {
|
|
15563
|
-
a2 && (we.fromBufferAttribute(a2, h2), Ae.fromBufferAttribute(a2, u2), Me.fromBufferAttribute(a2, c2), p2.uv = Gt.getUV(
|
|
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()));
|
|
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
|
|
15580
|
+
const R2 = 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
|
-
|
|
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;
|
|
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
|
|
15644
|
+
class Be extends Ct {
|
|
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
|
|
15714
|
+
class ke extends Ct {
|
|
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
|
|
16498
|
+
function Ri(t2, e2) {
|
|
16499
16499
|
for (let i2 = 0, n2 = e2.length; i2 < n2; i2++)
|
|
16500
16500
|
t2[i2] = e2[i2];
|
|
16501
16501
|
}
|
|
16502
|
-
function
|
|
16502
|
+
function Ci(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),
|
|
16520
|
+
t2.uniform2fv(this.addr, e2), Ri(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),
|
|
16532
|
+
t2.uniform3fv(this.addr, e2), Ri(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),
|
|
16542
|
+
t2.uniform4fv(this.addr, e2), Ri(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),
|
|
16550
|
+
t2.uniformMatrix2fv(this.addr, false, e2), Ri(i2, e2);
|
|
16551
16551
|
} else {
|
|
16552
16552
|
if (Mi(i2, n2))
|
|
16553
16553
|
return;
|
|
16554
|
-
wi.set(n2), t2.uniformMatrix2fv(this.addr, false, wi),
|
|
16554
|
+
wi.set(n2), t2.uniformMatrix2fv(this.addr, false, wi), Ri(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),
|
|
16562
|
+
t2.uniformMatrix3fv(this.addr, false, e2), Ri(i2, e2);
|
|
16563
16563
|
} else {
|
|
16564
16564
|
if (Mi(i2, n2))
|
|
16565
16565
|
return;
|
|
16566
|
-
Si.set(n2), t2.uniformMatrix3fv(this.addr, false, Si),
|
|
16566
|
+
Si.set(n2), t2.uniformMatrix3fv(this.addr, false, Si), Ri(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),
|
|
16574
|
+
t2.uniformMatrix4fv(this.addr, false, e2), Ri(i2, e2);
|
|
16575
16575
|
} else {
|
|
16576
16576
|
if (Mi(i2, n2))
|
|
16577
16577
|
return;
|
|
16578
|
-
Ei.set(n2), t2.uniformMatrix4fv(this.addr, false, Ei),
|
|
16578
|
+
Ei.set(n2), t2.uniformMatrix4fv(this.addr, false, Ei), Ri(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),
|
|
16587
|
+
Mi(i2, e2) || (t2.uniform2iv(this.addr, e2), Ri(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),
|
|
16591
|
+
Mi(i2, e2) || (t2.uniform3iv(this.addr, e2), Ri(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),
|
|
16595
|
+
Mi(i2, e2) || (t2.uniform4iv(this.addr, e2), Ri(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),
|
|
16603
|
+
Mi(i2, e2) || (t2.uniform2uiv(this.addr, e2), Ri(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),
|
|
16607
|
+
Mi(i2, e2) || (t2.uniform3uiv(this.addr, e2), Ri(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),
|
|
16611
|
+
Mi(i2, e2) || (t2.uniform4uiv(this.addr, e2), Ri(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 =
|
|
16681
|
+
const n2 = e2.length, r2 = Ci(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 =
|
|
16687
|
+
const n2 = e2.length, r2 = Ci(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)),
|
|
16808
|
+
t2 instanceof Float32Array && e2.length !== t2.length && (this.cache = new Float32Array(t2.length)), Ri(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
|
|
16935
|
+
function Rn(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
|
|
16938
|
+
function Cn(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 =
|
|
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);
|
|
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,
|
|
17513
|
-
const
|
|
17514
|
-
|
|
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);
|
|
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
|
|
17741
|
+
function R2(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
|
|
17783
|
+
const C2 = { 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,
|
|
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) {
|
|
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 =
|
|
17906
|
+
}, this.setTextureCube = R2, 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),
|
|
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);
|
|
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
|
|
18070
|
+
class or extends Ct {
|
|
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()),
|
|
18137
|
+
}), p2.clear(), _2 = null, y2 = null, n2.bindXRFramebuffer(null), t2.setRenderTarget(t2.getRenderTarget()), C2.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),
|
|
18182
|
+
s2 = await r2.requestReferenceSpace(a2), C2.setContext(r2), C2.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
|
|
18212
|
-
const
|
|
18213
|
-
|
|
18211
|
+
let R2 = null;
|
|
18212
|
+
const C2 = new Ze();
|
|
18213
|
+
C2.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
|
-
|
|
18237
|
+
R2 && R2(t3, i3);
|
|
18238
18238
|
}), this.setAnimationLoop = function(t3) {
|
|
18239
|
-
|
|
18239
|
+
R2 = 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
|
|
18330
|
-
const L2 = new E(0, 0,
|
|
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);
|
|
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(
|
|
18397
|
+
t3 !== void 0 && (P2 = t3, this.setSize(C2, I2, false));
|
|
18398
18398
|
}, this.getSize = function(t3) {
|
|
18399
|
-
return t3.set(
|
|
18399
|
+
return t3.set(C2, 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.") : (
|
|
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));
|
|
18402
18402
|
}, this.getDrawingBufferSize = function(t3) {
|
|
18403
|
-
return t3.set(
|
|
18403
|
+
return t3.set(C2 * P2, I2 * P2).floor();
|
|
18404
18404
|
}, this.setDrawingBufferSize = function(t3, i3, n3) {
|
|
18405
|
-
|
|
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);
|
|
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
|
-
|
|
18489
|
+
Rt2(i3[n3], t3, e4);
|
|
18490
18490
|
}
|
|
18491
18491
|
else
|
|
18492
|
-
|
|
18492
|
+
Rt2(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
|
|
18529
|
+
function Rt2(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
|
|
18537
|
+
return Ct2(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),
|
|
18541
|
+
(t3.isShaderMaterial || t3.isRawShaderMaterial) && t3.clipping !== true || (c3.clippingPlanes = at2.uniform), Ct2(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
|
|
18547
|
+
function Ct2(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 =
|
|
18561
|
+
c3 === true && (p3 = Rt2(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),
|
|
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;
|
|
18650
18650
|
} else
|
|
18651
|
-
T2.copy(L2).multiplyScalar(P2).floor(), A2.copy(D2).multiplyScalar(P2).floor(),
|
|
18651
|
+
T2.copy(L2).multiplyScalar(P2).floor(), A2.copy(D2).multiplyScalar(P2).floor(), R2 = 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(
|
|
18668
|
+
if (q2.viewport(T2), q2.scissor(A2), q2.setScissorTest(R2), 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
|
|
18724
|
+
class pr extends Ct {
|
|
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(),
|
|
18875
|
-
class Pr extends
|
|
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 {
|
|
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),
|
|
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);
|
|
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),
|
|
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))
|
|
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,
|
|
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 });
|
|
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
|
|
18944
|
+
class kr extends Ct {
|
|
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
|
|
19005
|
+
class Qr extends Ct {
|
|
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
|
|
19115
|
+
class lo extends Ct {
|
|
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
|
|
19535
|
+
class Ro 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
|
-
|
|
19555
|
-
class
|
|
19554
|
+
Ro.prototype.isQuadraticBezierCurve3 = true;
|
|
19555
|
+
class Co 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
|
-
|
|
19589
|
+
Co.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:
|
|
19611
|
+
}, QuadraticBezierCurve: Mo, QuadraticBezierCurve3: Ro, SplineCurve: Co });
|
|
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),
|
|
19918
|
+
const A2 = is.triangulateShape(S2, w2), R2 = 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
|
|
19923
|
+
function C2(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 =
|
|
19945
|
-
i3 === e3 && (i3 = 0), n3 === e3 && (n3 = 0), N2[t4] = O2(
|
|
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]);
|
|
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 =
|
|
19958
|
-
const e5 = R2
|
|
19957
|
+
for (let t5 = 0, e4 = R2.length; t5 < e4; t5++) {
|
|
19958
|
+
const e5 = C2(R2[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 =
|
|
19965
|
+
const r4 = C2(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 ?
|
|
19972
|
+
const e3 = h2 ? C2(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 ?
|
|
19977
|
+
const i3 = h2 ? C2(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 =
|
|
19983
|
-
const e5 = R2
|
|
19982
|
+
for (let t5 = 0, e4 = R2.length; t5 < e4; t5++) {
|
|
19983
|
+
const e5 = C2(R2[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 =
|
|
19990
|
+
const r4 = C2(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(
|
|
20053
|
+
U2(R2, e3), e3 += R2.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
|
|
20671
|
+
class Rs extends Es {
|
|
20672
20672
|
InterpolantFactoryMethodLinear(t2) {
|
|
20673
20673
|
return new Ms(this.times, this.values, this.getValueSize(), t2);
|
|
20674
20674
|
}
|
|
20675
20675
|
}
|
|
20676
|
-
|
|
20677
|
-
class
|
|
20676
|
+
Rs.prototype.ValueTypeName = "quaternion", Rs.prototype.DefaultInterpolation = 2301, Rs.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
20677
|
+
class Cs extends Es {
|
|
20678
20678
|
}
|
|
20679
|
-
|
|
20679
|
+
Cs.prototype.ValueTypeName = "string", Cs.prototype.ValueBufferType = Array, Cs.prototype.DefaultInterpolation = 2300, Cs.prototype.InterpolantFactoryMethodLinear = void 0, Cs.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(
|
|
20768
|
+
i2(Is, o3 + ".position", r3, "pos", n2), i2(Rs, 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
|
|
20828
|
+
return Rs;
|
|
20829
20829
|
case "bool":
|
|
20830
20830
|
case "boolean":
|
|
20831
20831
|
return Ss;
|
|
20832
20832
|
case "string":
|
|
20833
|
-
return
|
|
20833
|
+
return Cs;
|
|
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
|
|
21177
|
+
const e2 = [this.currentPoint.clone()].concat(t2), i2 = new Co(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
|
|
21251
|
+
class Xs extends Ct {
|
|
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(
|
|
21268
|
+
super(t2, i2), this.type = "HemisphereLight", this.position.copy(Ct.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(
|
|
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();
|
|
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(
|
|
21406
|
+
super(t2, e2), this.type = "DirectionalLight", this.position.copy(Ct.DefaultUp), this.updateMatrix(), this.target = new Ct(), 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
|
|
21634
|
+
class xa extends Ct {
|
|
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", "[^\\[\\]\\.:\\/]"),
|
|
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"];
|
|
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 =
|
|
21852
|
+
const e2 = Ra.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
|
-
|
|
21858
|
+
Ca.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
|
|
22466
|
+
(class extends Ct {
|
|
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
|
-
},
|
|
22673
|
+
}, Ct.prototype.getChildByName = function(t2) {
|
|
22674
22674
|
return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."), this.getObjectByName(t2);
|
|
22675
|
-
},
|
|
22675
|
+
}, Ct.prototype.renderDepth = function() {
|
|
22676
22676
|
console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.");
|
|
22677
|
-
},
|
|
22677
|
+
}, Ct.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
|
-
},
|
|
22679
|
+
}, Ct.prototype.getWorldRotation = function() {
|
|
22680
22680
|
console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.");
|
|
22681
|
-
},
|
|
22681
|
+
}, Ct.prototype.applyMatrix = function(t2) {
|
|
22682
22682
|
return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."), this.applyMatrix4(t2);
|
|
22683
|
-
}, Object.defineProperties(
|
|
22683
|
+
}, Object.defineProperties(Ct.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
|
|
22999
|
+
var Rl = i(84), Cl = i.n(Rl);
|
|
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),
|
|
23093
|
-
const
|
|
23092
|
+
var wh = i(106), Ah = i.n(wh), Mh = i(107), Rh = i.n(Mh);
|
|
23093
|
+
const Ch = { 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
|
}
|
|
@@ -23108,7 +23108,8 @@ var Slide = function(t) {
|
|
|
23108
23108
|
return t2;
|
|
23109
23109
|
}
|
|
23110
23110
|
applyOptions(t2) {
|
|
23111
|
-
|
|
23111
|
+
var e2, i2;
|
|
23112
|
+
super.applyOptions(t2), this.material.uniforms.direction = { value: ((i2 = (e2 = this.options) === null || e2 === void 0 ? void 0 : e2[0]) === null || i2 === void 0 ? void 0 : i2.value) === "horz" ? 0 : 1 };
|
|
23112
23113
|
}
|
|
23113
23114
|
setSize(t2, e2) {
|
|
23114
23115
|
super.setSize(t2, e2), this.material.uniforms.lines = { value: this.genRandomLines() }, this.material.vertexShader = ol.a;
|
|
@@ -23122,10 +23123,10 @@ var Slide = function(t) {
|
|
|
23122
23123
|
super(...arguments), this.duration = 1400, this.fragmentShader = cl.a, this.options = [{ name: "dir", value: "center" }], this.optionsMap = { center: 0, ru: 1, lu: 2, ld: 3, rd: 4 };
|
|
23123
23124
|
}
|
|
23124
23125
|
applyOptions(t2) {
|
|
23125
|
-
var e2, i2
|
|
23126
|
+
var e2, i2;
|
|
23126
23127
|
super.applyOptions(t2);
|
|
23127
|
-
const
|
|
23128
|
-
|
|
23128
|
+
const n2 = this.options.find((t3) => t3.name === "dir");
|
|
23129
|
+
this.material.uniforms.option = { value: (e2 = this.optionsMap) === null || e2 === void 0 ? void 0 : e2[(i2 = n2 == null ? void 0 : n2.value) !== null && i2 !== void 0 ? i2 : "center"] };
|
|
23129
23130
|
}
|
|
23130
23131
|
}, Erase: class extends nl {
|
|
23131
23132
|
constructor() {
|
|
@@ -23222,7 +23223,7 @@ var Slide = function(t) {
|
|
|
23222
23223
|
}
|
|
23223
23224
|
}, Cover: class extends nl {
|
|
23224
23225
|
constructor() {
|
|
23225
|
-
super(...arguments), this.duration = 1e3, this.fragmentShader =
|
|
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
23227
|
}
|
|
23227
23228
|
applyOptions(t2) {
|
|
23228
23229
|
var e2;
|
|
@@ -23505,7 +23506,7 @@ var Slide = function(t) {
|
|
|
23505
23506
|
}
|
|
23506
23507
|
}, Doors: class {
|
|
23507
23508
|
constructor() {
|
|
23508
|
-
this.camera = new Ol(), this.duration = 1600, this.options = [], this.width = 100, this.preMaterial = new Fe({ fragmentShader:
|
|
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
23510
|
}
|
|
23510
23511
|
addObjects(t2) {
|
|
23511
23512
|
this.prevMesh.material = this.preMaterial, this.prevMesh.geometry = this.prevGeometry, this.prevMesh.material.transparent = true, t2.add(this.prevMesh), t2.add(this.nextMesh);
|
|
@@ -23542,7 +23543,7 @@ var Slide = function(t) {
|
|
|
23542
23543
|
};
|
|
23543
23544
|
}
|
|
23544
23545
|
initPlayer(t2) {
|
|
23545
|
-
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
|
|
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
23547
|
}
|
|
23547
23548
|
setPrevTexture(t2) {
|
|
23548
23549
|
var e2, i2, n2, r2;
|
|
@@ -24013,7 +24014,7 @@ var Slide = function(t) {
|
|
|
24013
24014
|
* @pixi/settings is licensed under the MIT License.
|
|
24014
24015
|
* http://www.opensource.org/licenses/mit-license
|
|
24015
24016
|
*/
|
|
24016
|
-
var hu, uu, cu, du, pu, fu, mu, gu, vu, _u, yu, xu, bu, Tu, Eu, Su, wu, Au, Mu,
|
|
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
24018
|
var e2 = { userAgent: "", platform: "", maxTouchPoints: 0 };
|
|
24018
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 };
|
|
24019
24020
|
var i2 = e2.userAgent, n2 = i2.split("[FBAN");
|
|
@@ -24064,7 +24065,7 @@ var Slide = function(t) {
|
|
|
24064
24065
|
}(Au || (Au = {})), function(t2) {
|
|
24065
24066
|
t2[t2.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", t2[t2.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", t2[t2.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER";
|
|
24066
24067
|
}(Mu || (Mu = {}));
|
|
24067
|
-
var
|
|
24068
|
+
var Cu = {
|
|
24068
24069
|
MIPMAP_TEXTURES: xu.POW2,
|
|
24069
24070
|
ANISOTROPIC_LEVEL: 0,
|
|
24070
24071
|
RESOLUTION: 1,
|
|
@@ -24072,13 +24073,13 @@ var Slide = function(t) {
|
|
|
24072
24073
|
FILTER_MULTISAMPLE: Au.NONE,
|
|
24073
24074
|
SPRITE_MAX_TEXTURES: function(t2) {
|
|
24074
24075
|
var e2 = true;
|
|
24075
|
-
if (
|
|
24076
|
+
if (Ru.tablet || Ru.phone) {
|
|
24076
24077
|
var i2;
|
|
24077
|
-
if (
|
|
24078
|
+
if (Ru.apple.device) {
|
|
24078
24079
|
if (i2 = navigator.userAgent.match(/OS (\d+)_(\d+)?/))
|
|
24079
24080
|
parseInt(i2[1], 10) < 11 && (e2 = false);
|
|
24080
24081
|
}
|
|
24081
|
-
if (
|
|
24082
|
+
if (Ru.android.device) {
|
|
24082
24083
|
if (i2 = navigator.userAgent.match(/Android\s([0-9.]*)/))
|
|
24083
24084
|
parseInt(i2[1], 10) < 7 && (e2 = false);
|
|
24084
24085
|
}
|
|
@@ -24093,8 +24094,8 @@ var Slide = function(t) {
|
|
|
24093
24094
|
WRAP_MODE: yu.CLAMP,
|
|
24094
24095
|
SCALE_MODE: _u.LINEAR,
|
|
24095
24096
|
PRECISION_VERTEX: Su.HIGH,
|
|
24096
|
-
PRECISION_FRAGMENT:
|
|
24097
|
-
CAN_UPLOAD_SAME_BUFFER: !
|
|
24097
|
+
PRECISION_FRAGMENT: Ru.apple.device ? Su.HIGH : Su.MEDIUM,
|
|
24098
|
+
CAN_UPLOAD_SAME_BUFFER: !Ru.apple.device,
|
|
24098
24099
|
CREATE_IMAGE_BITMAP: false,
|
|
24099
24100
|
ROUND_PIXELS: false,
|
|
24100
24101
|
SORTABLE_CHILDREN: false
|
|
@@ -24328,7 +24329,7 @@ var Slide = function(t) {
|
|
|
24328
24329
|
var ec = function(t2) {
|
|
24329
24330
|
function e2() {
|
|
24330
24331
|
var e3 = t2.call(this) || this;
|
|
24331
|
-
return e3.children = [], e3.sortableChildren =
|
|
24332
|
+
return e3.children = [], e3.sortableChildren = Cu.SORTABLE_CHILDREN, e3.sortDirty = false, e3;
|
|
24332
24333
|
}
|
|
24333
24334
|
return Ou(e2, t2), e2.prototype.onChildrenChange = function(t3) {
|
|
24334
24335
|
}, e2.prototype.addChild = function() {
|
|
@@ -25054,7 +25055,7 @@ var Slide = function(t) {
|
|
|
25054
25055
|
}
|
|
25055
25056
|
Ac(t2, e2), t2.prototype = e2 === null ? Object.create(e2) : (i2.prototype = e2.prototype, new i2());
|
|
25056
25057
|
}
|
|
25057
|
-
function
|
|
25058
|
+
function Rc(t2, e2) {
|
|
25058
25059
|
var i2, n2, r2, o2, s2 = { label: 0, sent: function() {
|
|
25059
25060
|
if (1 & r2[0])
|
|
25060
25061
|
throw r2[1];
|
|
@@ -25118,7 +25119,7 @@ var Slide = function(t) {
|
|
|
25118
25119
|
};
|
|
25119
25120
|
}
|
|
25120
25121
|
}
|
|
25121
|
-
var
|
|
25122
|
+
var Cc, Ic, Pc = function(t2) {
|
|
25122
25123
|
function e2(i2, n2) {
|
|
25123
25124
|
var r2 = t2.call(this, i2, n2) || this;
|
|
25124
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;
|
|
@@ -25163,7 +25164,7 @@ var Slide = function(t) {
|
|
|
25163
25164
|
}, e2.prototype.load = function() {
|
|
25164
25165
|
return t3 = this, e3 = void 0, n2 = function() {
|
|
25165
25166
|
var t4;
|
|
25166
|
-
return
|
|
25167
|
+
return Rc(this, function(e4) {
|
|
25167
25168
|
switch (e4.label) {
|
|
25168
25169
|
case 0:
|
|
25169
25170
|
return [4, fetch(this.origin)];
|
|
@@ -25263,7 +25264,7 @@ var Slide = function(t) {
|
|
|
25263
25264
|
}(Lc || (Lc = {})), function(t2) {
|
|
25264
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";
|
|
25265
25266
|
}(Dc || (Dc = {}));
|
|
25266
|
-
var Xc, Wc, Yc, qc = ((
|
|
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
25268
|
function t2() {
|
|
25268
25269
|
}
|
|
25269
25270
|
return t2.use = function(e2, i2) {
|
|
@@ -25358,11 +25359,11 @@ var Slide = function(t) {
|
|
|
25358
25359
|
if (o2 === 0 && (y2 = g2 * v2), (m2 = o2 !== 0 ? hd[o2] ? hd[o2] * ud[s2] : cd[o2] : wc[a2]) === void 0)
|
|
25359
25360
|
throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");
|
|
25360
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++) {
|
|
25361
|
-
for (var
|
|
25362
|
+
for (var R2 = n2.getUint32(A2, r2), C2 = A2 + 4, I2 = 0; I2 < c2; I2++) {
|
|
25362
25363
|
var P2 = _2[I2];
|
|
25363
|
-
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,
|
|
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
25365
|
}
|
|
25365
|
-
A2 = (A2 +=
|
|
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
25367
|
}
|
|
25367
25368
|
return o2 !== 0 ? { uncompressed: _2.map(function(e3) {
|
|
25368
25369
|
var i3 = e3[0].levelBuffer, n3 = false;
|
|
@@ -25679,20 +25680,20 @@ var Slide = function(t) {
|
|
|
25679
25680
|
for (var d2 = 2; d2 < r2.length; d2 += 2)
|
|
25680
25681
|
o2.push(r2[d2], r2[d2 + 1]), s2.push(a2++, l2, a2);
|
|
25681
25682
|
s2.push(l2 + 1, l2, a2);
|
|
25682
|
-
} },
|
|
25683
|
+
} }, Rd = { build: function(t2) {
|
|
25683
25684
|
var e2 = t2.shape, i2 = e2.x, n2 = e2.y, r2 = e2.width, o2 = e2.height, s2 = t2.points;
|
|
25684
25685
|
s2.length = 0, s2.push(i2, n2, i2 + r2, n2, i2 + r2, n2 + o2, i2, n2 + o2);
|
|
25685
25686
|
}, triangulate: function(t2, e2) {
|
|
25686
25687
|
var i2 = t2.points, n2 = e2.points, r2 = n2.length / 2;
|
|
25687
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);
|
|
25688
25689
|
} };
|
|
25689
|
-
function
|
|
25690
|
+
function Cd(t2, e2, i2) {
|
|
25690
25691
|
return t2 + (e2 - t2) * i2;
|
|
25691
25692
|
}
|
|
25692
25693
|
function Id(t2, e2, i2, n2, r2, o2, s2) {
|
|
25693
25694
|
s2 === void 0 && (s2 = []);
|
|
25694
25695
|
for (var a2 = s2, l2 = 0, h2 = 0, u2 = 0, c2 = 0, d2 = 0, p2 = 0, f2 = 0, m2 = 0; f2 <= 20; ++f2)
|
|
25695
|
-
l2 =
|
|
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
25697
|
return a2;
|
|
25697
25698
|
}
|
|
25698
25699
|
var Pd = { build: function(t2) {
|
|
@@ -25753,21 +25754,21 @@ var Slide = function(t) {
|
|
|
25753
25754
|
var u2 = 0.5 * (s2.x + a2.x), c2 = 0.5 * (a2.y + s2.y);
|
|
25754
25755
|
n2.unshift(u2, c2), n2.push(u2, c2);
|
|
25755
25756
|
}
|
|
25756
|
-
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,
|
|
25757
|
-
w2 /=
|
|
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;
|
|
25758
25759
|
var I2 = o2.alignment, P2 = 2 * (1 - I2), O2 = 2 * I2;
|
|
25759
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);
|
|
25760
25761
|
for (var N2 = 1; N2 < p2 - 1; ++N2) {
|
|
25761
|
-
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 /=
|
|
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
25763
|
var L2 = b2 - y2, D2 = x2 - T2, F2 = b2 - E2, B2 = S2 - T2, U2 = D2 * F2 - B2 * L2, k2 = U2 < 0;
|
|
25763
25764
|
if (Math.abs(U2) < 0.1)
|
|
25764
25765
|
d2.push(b2 - w2 * P2, T2 - A2 * P2), d2.push(b2 + w2 * O2, T2 + A2 * O2);
|
|
25765
25766
|
else {
|
|
25766
|
-
var G2 = (-w2 + y2) * (-A2 + T2) - (-w2 + b2) * (-A2 + x2), H2 = (-M2 + E2) * (-
|
|
25767
|
-
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 +
|
|
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);
|
|
25768
25769
|
}
|
|
25769
25770
|
}
|
|
25770
|
-
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 /=
|
|
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
25772
|
var J2 = e3.indices, K2 = bd.epsilon * bd.epsilon;
|
|
25772
25773
|
for (N2 = m2; N2 < f2 + m2 - 2; ++N2)
|
|
25773
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);
|
|
@@ -25827,7 +25828,7 @@ var Slide = function(t) {
|
|
|
25827
25828
|
}, t2.prototype.reset = function() {
|
|
25828
25829
|
this.style = null, this.size = 0, this.start = 0, this.attribStart = 0, this.attribSize = 0;
|
|
25829
25830
|
}, t2;
|
|
25830
|
-
}(), Gd = ((Dd = {})[Lh.l.POLY] = Ad, Dd[Lh.l.CIRC] = Md, Dd[Lh.l.ELIP] = Md, Dd[Lh.l.RECT] =
|
|
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
25832
|
function t2(t3, e2, i2, n2) {
|
|
25832
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;
|
|
25833
25834
|
}
|
|
@@ -26527,8 +26528,8 @@ var Slide = function(t) {
|
|
|
26527
26528
|
}
|
|
26528
26529
|
else {
|
|
26529
26530
|
s2.length > 0 && (a2 += t2.addLine(s2), s2 = "", o2 = 0);
|
|
26530
|
-
var
|
|
26531
|
-
a2 += t2.addLine(v2, !
|
|
26531
|
+
var R2 = g2 === m2.length - 1;
|
|
26532
|
+
a2 += t2.addLine(v2, !R2), p2 = false, s2 = "", o2 = 0;
|
|
26532
26533
|
}
|
|
26533
26534
|
else
|
|
26534
26535
|
x2 + o2 > f2 && (p2 = false, a2 += t2.addLine(s2), s2 = "", o2 = 0), (s2.length > 0 || !t2.isBreakingSpace(v2) || p2) && (s2 += v2, o2 += x2);
|
|
@@ -26993,19 +26994,19 @@ var Slide = function(t) {
|
|
|
26993
26994
|
}, t2.getResourcePath = function(t3, e2) {
|
|
26994
26995
|
return t3.isDataUrl ? t3.data.meta.image : Ph.url.resolve(t3.url.replace(e2, ""), t3.data.meta.image);
|
|
26995
26996
|
}, t2;
|
|
26996
|
-
}(),
|
|
26997
|
-
return (
|
|
26997
|
+
}(), Rp = function(t2, e2) {
|
|
26998
|
+
return (Rp = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
|
|
26998
26999
|
t3.__proto__ = e3;
|
|
26999
27000
|
} || function(t3, e3) {
|
|
27000
27001
|
for (var i2 in e3)
|
|
27001
27002
|
e3.hasOwnProperty(i2) && (t3[i2] = e3[i2]);
|
|
27002
27003
|
})(t2, e2);
|
|
27003
27004
|
};
|
|
27004
|
-
function
|
|
27005
|
+
function Cp(t2, e2) {
|
|
27005
27006
|
function i2() {
|
|
27006
27007
|
this.constructor = t2;
|
|
27007
27008
|
}
|
|
27008
|
-
|
|
27009
|
+
Rp(t2, e2), t2.prototype = e2 === null ? Object.create(e2) : (i2.prototype = e2.prototype, new i2());
|
|
27009
27010
|
}
|
|
27010
27011
|
var Ip = new Lh.g(), Pp = function(t2) {
|
|
27011
27012
|
function e2(e3, i2, n2) {
|
|
@@ -27013,7 +27014,7 @@ var Slide = function(t) {
|
|
|
27013
27014
|
var r2 = t2.call(this, e3) || this;
|
|
27014
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;
|
|
27015
27016
|
}
|
|
27016
|
-
return
|
|
27017
|
+
return Cp(e2, t2), Object.defineProperty(e2.prototype, "clampMargin", { get: function() {
|
|
27017
27018
|
return this.uvMatrix.clampMargin;
|
|
27018
27019
|
}, set: function(t3) {
|
|
27019
27020
|
this.uvMatrix.clampMargin = t3, this.uvMatrix.update(true);
|
|
@@ -27062,7 +27063,7 @@ var Slide = function(t) {
|
|
|
27062
27063
|
var i2 = t2.call(this, e3) || this;
|
|
27063
27064
|
return e3.runners.contextChange.add(i2), i2.quad = new Vh.o(), i2.state = Vh.s.for2d(), i2;
|
|
27064
27065
|
}
|
|
27065
|
-
return
|
|
27066
|
+
return Cp(e2, t2), e2.prototype.contextChange = function() {
|
|
27066
27067
|
var t3 = this.renderer, e3 = { globals: t3.globalUniforms };
|
|
27067
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);
|
|
27068
27069
|
}, e2.prototype.render = function(t3) {
|
|
@@ -27216,8 +27217,8 @@ var Slide = function(t) {
|
|
|
27216
27217
|
this.chars[p2] = { xOffset: T2, yOffset: E2, xAdvance: S2, kerning: {}, texture: new Vh.t(u2[g2].baseTexture, w2), page: g2 };
|
|
27217
27218
|
}
|
|
27218
27219
|
for (c2 = 0; c2 < t3.kerning.length; c2++) {
|
|
27219
|
-
var A2 = t3.kerning[c2], M2 = A2.first,
|
|
27220
|
-
M2 /= h2,
|
|
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);
|
|
27221
27222
|
}
|
|
27222
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";
|
|
27223
27224
|
}
|
|
@@ -27285,9 +27286,9 @@ var Slide = function(t) {
|
|
|
27285
27286
|
}
|
|
27286
27287
|
b2 = 0;
|
|
27287
27288
|
for (var M2 = u2.length; b2 < M2; b2++)
|
|
27288
|
-
for (var
|
|
27289
|
-
var I2 = u2[
|
|
27290
|
-
N2 && p2.kerning.push({ first: Xp(
|
|
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 });
|
|
27291
27292
|
}
|
|
27292
27293
|
var L2 = new t2(p2, x2, true);
|
|
27293
27294
|
return t2.available[e2] !== void 0 && t2.uninstall(e2), t2.available[e2] = L2, L2;
|
|
@@ -27329,9 +27330,9 @@ var Slide = function(t) {
|
|
|
27329
27330
|
var w2 = 0;
|
|
27330
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);
|
|
27331
27332
|
}
|
|
27332
|
-
var A2 = r2.length, M2 = {},
|
|
27333
|
-
for (y2 = 0; y2 <
|
|
27334
|
-
h2.push(
|
|
27333
|
+
var A2 = r2.length, M2 = {}, R2 = [], C2 = this._activePagesMeshData;
|
|
27334
|
+
for (y2 = 0; y2 < C2.length; y2++)
|
|
27335
|
+
h2.push(C2[y2]);
|
|
27335
27336
|
for (y2 = 0; y2 < A2; y2++) {
|
|
27336
27337
|
var I2 = (j2 = r2[y2].texture).baseTexture.uid;
|
|
27337
27338
|
if (!M2[I2]) {
|
|
@@ -27343,15 +27344,15 @@ var Slide = function(t) {
|
|
|
27343
27344
|
}
|
|
27344
27345
|
Z2.index = 0, Z2.indexCount = 0, Z2.vertexCount = 0, Z2.uvsCount = 0, Z2.total = 0;
|
|
27345
27346
|
var D2 = this._textureCache;
|
|
27346
|
-
D2[I2] = D2[I2] || new Vh.t(j2.baseTexture), Z2.mesh.texture = D2[I2], Z2.mesh.tint = this._tint,
|
|
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
27348
|
}
|
|
27348
27349
|
M2[I2].total++;
|
|
27349
27350
|
}
|
|
27350
|
-
for (y2 = 0; y2 < R2.length; y2++)
|
|
27351
|
-
C2.indexOf(R2[y2]) === -1 && this.removeChild(R2[y2].mesh);
|
|
27352
27351
|
for (y2 = 0; y2 < C2.length; y2++)
|
|
27353
|
-
C2[y2]
|
|
27354
|
-
for (
|
|
27352
|
+
R2.indexOf(C2[y2]) === -1 && this.removeChild(C2[y2].mesh);
|
|
27353
|
+
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) {
|
|
27355
27356
|
var F2 = (Z2 = M2[y2]).total;
|
|
27356
27357
|
if (!(((t3 = Z2.indices) === null || t3 === void 0 ? void 0 : t3.length) > 6 * F2) || Z2.vertices.length < 2 * Dp.a.BATCHABLE_SIZE)
|
|
27357
27358
|
Z2.vertices = new Float32Array(8 * F2), Z2.uvs = new Float32Array(8 * F2), Z2.indices = new Uint16Array(6 * F2);
|
|
@@ -27763,7 +27764,7 @@ var Slide = function(t) {
|
|
|
27763
27764
|
e3.hasOwnProperty(i2) && (t3[i2] = e3[i2]);
|
|
27764
27765
|
})(t2, e2);
|
|
27765
27766
|
};
|
|
27766
|
-
var
|
|
27767
|
+
var Rf = function(t2) {
|
|
27767
27768
|
function e2(e3, i2) {
|
|
27768
27769
|
var n2 = this, r2 = new Lh.d();
|
|
27769
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;
|
|
@@ -27782,8 +27783,8 @@ var Slide = function(t) {
|
|
|
27782
27783
|
}, set: function(t3) {
|
|
27783
27784
|
this.uniforms.mapSampler = t3;
|
|
27784
27785
|
}, enumerable: false, configurable: true }), e2;
|
|
27785
|
-
}(Vh.k),
|
|
27786
|
-
return (
|
|
27786
|
+
}(Vh.k), Cf = function(t2, e2) {
|
|
27787
|
+
return (Cf = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
|
|
27787
27788
|
t3.__proto__ = e3;
|
|
27788
27789
|
} || function(t3, e3) {
|
|
27789
27790
|
for (var i2 in e3)
|
|
@@ -27919,7 +27920,7 @@ void main() {
|
|
|
27919
27920
|
function i2() {
|
|
27920
27921
|
this.constructor = t3;
|
|
27921
27922
|
}
|
|
27922
|
-
|
|
27923
|
+
Cf(t3, e3), t3.prototype = e3 === null ? Object.create(e3) : (i2.prototype = e3.prototype, new i2());
|
|
27923
27924
|
}(e2, t2), e2;
|
|
27924
27925
|
}(Vh.k), Pf = function(t2, e2) {
|
|
27925
27926
|
return (Pf = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
|
|
@@ -28156,7 +28157,7 @@ void main() {
|
|
|
28156
28157
|
* http://www.opensource.org/licenses/mit-license
|
|
28157
28158
|
*/
|
|
28158
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);
|
|
28159
|
-
var nm, rm = { AlphaFilter: Qp, BlurFilter: Sf, BlurFilterPass: Ef, ColorMatrixFilter: Af, DisplacementFilter:
|
|
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
28161
|
function t2() {
|
|
28161
28162
|
}
|
|
28162
28163
|
return t2.offsetPolygon = function(e2, i2) {
|
|
@@ -28206,16 +28207,16 @@ void main() {
|
|
|
28206
28207
|
}
|
|
28207
28208
|
if (i2.lineWidth = m2.width, i2.lineCap = m2.cap, i2.lineJoin = m2.join, i2.miterLimit = m2.miterLimit, d2.type === Lh.l.POLY) {
|
|
28208
28209
|
i2.beginPath();
|
|
28209
|
-
var x2 = (
|
|
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
28211
|
i2.moveTo(x2[0], x2[1]);
|
|
28211
28212
|
for (var M2 = 2; M2 < x2.length; M2 += 2)
|
|
28212
28213
|
i2.lineTo(x2[M2], x2[M2 + 1]);
|
|
28213
|
-
if (
|
|
28214
|
+
if (C2.closeStroke && i2.closePath(), b2.length > 0) {
|
|
28214
28215
|
A2 = [], T2 = 0, S2 = x2[0], w2 = x2[1];
|
|
28215
28216
|
for (M2 = 2; M2 + 2 < x2.length; M2 += 2)
|
|
28216
28217
|
T2 += (x2[M2] - S2) * (x2[M2 + 3] - w2) - (x2[M2 + 2] - S2) * (x2[M2 + 1] - w2);
|
|
28217
|
-
for (var
|
|
28218
|
-
if (x2 = b2[
|
|
28218
|
+
for (var R2 = 0; R2 < b2.length; R2++)
|
|
28219
|
+
if (x2 = b2[R2].shape.points) {
|
|
28219
28220
|
E2 = 0, S2 = x2[0], w2 = x2[1];
|
|
28220
28221
|
for (M2 = 2; M2 + 2 < x2.length; M2 += 2)
|
|
28221
28222
|
E2 += (x2[M2] - S2) * (x2[M2 + 3] - w2) - (x2[M2 + 2] - S2) * (x2[M2 + 1] - w2);
|
|
@@ -28228,48 +28229,48 @@ void main() {
|
|
|
28228
28229
|
for (M2 = x2.length - 4; M2 >= 0; M2 -= 2)
|
|
28229
28230
|
i2.lineTo(x2[M2], x2[M2 + 1]);
|
|
28230
28231
|
}
|
|
28231
|
-
b2[
|
|
28232
|
+
b2[R2].shape.closeStroke && i2.closePath(), A2[R2] = E2 * T2 < 0;
|
|
28232
28233
|
}
|
|
28233
28234
|
}
|
|
28234
|
-
f2.visible && (i2.globalAlpha = f2.alpha * n2, i2.fillStyle = o2, i2.fill()), m2.visible && this.paintPolygonStroke(
|
|
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
28236
|
} else if (d2.type === Lh.l.RECT) {
|
|
28236
|
-
var
|
|
28237
|
-
if (f2.visible && (i2.globalAlpha = f2.alpha * n2, i2.fillStyle = o2, i2.fillRect(
|
|
28238
|
-
var I2 = m2.width * (0.5 - (1 - m2.alignment)), P2 =
|
|
28239
|
-
i2.globalAlpha = m2.alpha * n2, i2.strokeStyle = s2, i2.strokeRect(
|
|
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);
|
|
28240
28241
|
}
|
|
28241
28242
|
} else if (d2.type === Lh.l.CIRC) {
|
|
28242
|
-
|
|
28243
|
-
if (i2.beginPath(), i2.arc(
|
|
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) {
|
|
28244
28245
|
if (m2.alignment !== 0.5) {
|
|
28245
28246
|
I2 = m2.width * (0.5 - (1 - m2.alignment));
|
|
28246
|
-
i2.beginPath(), i2.arc(
|
|
28247
|
+
i2.beginPath(), i2.arc(C2.x, C2.y, C2.radius + I2, 0, 2 * Math.PI), i2.closePath();
|
|
28247
28248
|
}
|
|
28248
28249
|
i2.globalAlpha = m2.alpha * n2, i2.strokeStyle = s2, i2.stroke();
|
|
28249
28250
|
}
|
|
28250
28251
|
} else if (d2.type === Lh.l.ELIP) {
|
|
28251
|
-
|
|
28252
|
-
if ((z2 = m2.alignment === 1) || this.paintEllipse(
|
|
28252
|
+
C2 = p2;
|
|
28253
|
+
if ((z2 = m2.alignment === 1) || this.paintEllipse(C2, f2, m2, o2, n2, i2), m2.visible) {
|
|
28253
28254
|
if (m2.alignment !== 0.5) {
|
|
28254
28255
|
I2 = m2.width * (0.5 - (1 - m2.alignment));
|
|
28255
|
-
var N2 = 2 * (
|
|
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
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();
|
|
28257
28258
|
}
|
|
28258
28259
|
i2.globalAlpha = m2.alpha * n2, i2.strokeStyle = s2, i2.stroke();
|
|
28259
28260
|
}
|
|
28260
|
-
z2 && this.paintEllipse(
|
|
28261
|
+
z2 && this.paintEllipse(C2, f2, m2, o2, n2, i2);
|
|
28261
28262
|
} else if (d2.type === Lh.l.RREC) {
|
|
28262
28263
|
var z2;
|
|
28263
|
-
|
|
28264
|
-
if ((z2 = m2.alignment === 1) || this.paintRoundedRectangle(
|
|
28264
|
+
C2 = p2;
|
|
28265
|
+
if ((z2 = m2.alignment === 1) || this.paintRoundedRectangle(C2, f2, m2, o2, n2, i2), m2.visible) {
|
|
28265
28266
|
if (m2.alignment !== 0.5) {
|
|
28266
|
-
P2 =
|
|
28267
|
-
var V2 =
|
|
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;
|
|
28268
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();
|
|
28269
28270
|
}
|
|
28270
28271
|
i2.globalAlpha = m2.alpha * n2, i2.strokeStyle = s2, i2.stroke();
|
|
28271
28272
|
}
|
|
28272
|
-
z2 && this.paintRoundedRectangle(
|
|
28273
|
+
z2 && this.paintRoundedRectangle(C2, f2, m2, o2, n2, i2);
|
|
28273
28274
|
}
|
|
28274
28275
|
}
|
|
28275
28276
|
}, t2.prototype.paintPolygonStroke = function(t3, e2, i2, n2, r2, o2, s2) {
|
|
@@ -28536,25 +28537,25 @@ void main() {
|
|
|
28536
28537
|
function Mm() {
|
|
28537
28538
|
return r();
|
|
28538
28539
|
}
|
|
28539
|
-
const
|
|
28540
|
-
function
|
|
28540
|
+
const Rm = "__delay_resolve_result__";
|
|
28541
|
+
function Cm(t2) {
|
|
28541
28542
|
return new Promise((e2) => {
|
|
28542
28543
|
setTimeout(() => {
|
|
28543
|
-
e2(
|
|
28544
|
+
e2(Rm);
|
|
28544
28545
|
}, t2);
|
|
28545
28546
|
});
|
|
28546
28547
|
}
|
|
28547
28548
|
function Im(t2, e2) {
|
|
28548
28549
|
return Am(this, void 0, void 0, function* () {
|
|
28549
|
-
const i2 = yield Promise.race([t2(),
|
|
28550
|
-
return i2 ===
|
|
28550
|
+
const i2 = yield Promise.race([t2(), Cm(e2)]);
|
|
28551
|
+
return i2 === Rm ? Rm : i2;
|
|
28551
28552
|
});
|
|
28552
28553
|
}
|
|
28553
28554
|
function Pm(t2, e2) {
|
|
28554
28555
|
return Am(this, void 0, void 0, function* () {
|
|
28555
28556
|
const i2 = Date.now();
|
|
28556
28557
|
for (; !t2() && Date.now() - i2 < e2; )
|
|
28557
|
-
yield
|
|
28558
|
+
yield Cm(16);
|
|
28558
28559
|
});
|
|
28559
28560
|
}
|
|
28560
28561
|
var Om = function(t2, e2, i2, n2) {
|
|
@@ -28585,7 +28586,7 @@ void main() {
|
|
|
28585
28586
|
function Nm(t2, e2) {
|
|
28586
28587
|
return Om(this, void 0, void 0, function* () {
|
|
28587
28588
|
const i2 = yield Im(() => fetch(t2), e2);
|
|
28588
|
-
if (i2 ===
|
|
28589
|
+
if (i2 === Rm)
|
|
28589
28590
|
throw new Tm(gm.ResourceError, `"${t2}" loaded timeout"`);
|
|
28590
28591
|
if (!i2.ok)
|
|
28591
28592
|
throw new Tm(gm.ResourceError, `"${t2}" loaded failed with status "${i2.status}"`);
|
|
@@ -28615,7 +28616,7 @@ void main() {
|
|
|
28615
28616
|
if (this.delegate) {
|
|
28616
28617
|
this.logger.info("load resource by delegate. " + i2, this.taskId || "");
|
|
28617
28618
|
const n3 = Date.now(), r2 = yield Im(() => this.delegate.loadJson(e2), this.timeout);
|
|
28618
|
-
if (this.logger.info(`load resource by delegate end. ${i2}, time: ${Date.now() - n3}`, this.taskId || ""), r2 ===
|
|
28619
|
+
if (this.logger.info(`load resource by delegate end. ${i2}, time: ${Date.now() - n3}`, this.taskId || ""), r2 === Rm)
|
|
28619
28620
|
throw new Tm(gm.ResourceError, `"${i2}" loaded timeout"`);
|
|
28620
28621
|
t3 = JSON.parse(r2);
|
|
28621
28622
|
} else {
|
|
@@ -28648,7 +28649,7 @@ void main() {
|
|
|
28648
28649
|
if (this.delegate) {
|
|
28649
28650
|
this.logger.info("load resource by delegate. " + n2, this.taskId || "");
|
|
28650
28651
|
const e3 = Date.now();
|
|
28651
|
-
if (t3 = yield Im(() => this.delegate.loadImage(i2), this.timeout), this.logger.info(`load resource by delegate end. ${n2}, time: ${Date.now() - e3}`, this.taskId || ""), t3 ===
|
|
28652
|
+
if (t3 = yield Im(() => this.delegate.loadImage(i2), this.timeout), this.logger.info(`load resource by delegate end. ${n2}, time: ${Date.now() - e3}`, this.taskId || ""), t3 === Rm)
|
|
28652
28653
|
throw new Tm(gm.ResourceError, `"${n2}" loaded timeout"`);
|
|
28653
28654
|
} else {
|
|
28654
28655
|
this.logger.info("load resource from server. " + n2, this.taskId || "");
|
|
@@ -28929,29 +28930,35 @@ void main() {
|
|
|
28929
28930
|
});
|
|
28930
28931
|
};
|
|
28931
28932
|
class Km {
|
|
28932
|
-
constructor() {
|
|
28933
|
-
this.imgElements = [], this.svgElements = [], this.idToHashMap = /* @__PURE__ */ Object.create(null), this.textures = /* @__PURE__ */ Object.create(null), this.graphics = [], this.hashToIdMap = /* @__PURE__ */ Object.create(null);
|
|
28933
|
+
constructor(t2) {
|
|
28934
|
+
this.imgElements = [], this.svgElements = [], this.idToHashMap = /* @__PURE__ */ Object.create(null), this.textures = /* @__PURE__ */ Object.create(null), this.graphics = [], this.hashToIdMap = /* @__PURE__ */ Object.create(null), this.maxResolution = t2;
|
|
28934
28935
|
}
|
|
28935
|
-
render(t2, e2, i2) {
|
|
28936
|
+
render(t2, e2, i2, n2) {
|
|
28936
28937
|
return Jm(this, void 0, void 0, function* () {
|
|
28937
|
-
const { items: e3, width:
|
|
28938
|
-
this.imgElements.push(
|
|
28939
|
-
const
|
|
28938
|
+
const { items: e3, width: r2, height: o2 } = t2, s2 = Zm.getObject(i2), a2 = new Vh.c(s2, { width: r2 * n2, height: o2 * n2, resolution: 1 }), l2 = qm.getObject(i2);
|
|
28939
|
+
this.imgElements.push(s2), this.svgElements.push(l2), l2.setAttribute("viewBox", `0 0 ${r2} ${o2}`), l2.setAttribute("width", "" + r2), l2.setAttribute("height", "" + o2);
|
|
28940
|
+
const h2 = {};
|
|
28940
28941
|
e3.forEach((t3) => {
|
|
28941
|
-
const { item: e4, x: i3, y:
|
|
28942
|
+
const { item: e4, x: i3, y: r3 } = t3, o3 = i3 + 2, s3 = r3 + 2;
|
|
28942
28943
|
e4.pathsData.forEach((t4) => {
|
|
28943
28944
|
let e5 = "";
|
|
28944
|
-
t4.cmds.forEach(([i4,
|
|
28945
|
-
e5 += i4 + " ", e5 +=
|
|
28946
|
-
}), t4.pathElement.setAttribute("d", e5),
|
|
28945
|
+
t4.cmds.forEach(([i4, n3]) => {
|
|
28946
|
+
e5 += i4 + " ", e5 += n3.map((e6) => (Vm()(e6) || (e6.x = e6.x + t4.offset.x + o3, e6.y = e6.y + t4.offset.y + s3), e6)).reduce((t5, e6) => (Vm()(e6) ? t5 += e6 + " " : t5 += `${e6.x} ${e6.y} `, t5), ""), e5 += " ";
|
|
28947
|
+
}), t4.pathElement.setAttribute("d", e5), l2.appendChild(t4.pathElement);
|
|
28947
28948
|
});
|
|
28948
28949
|
const u3 = e4.width - 4 - 2 * e4.padding, c3 = e4.height - 4 - 2 * e4.padding;
|
|
28949
|
-
this.textures[e4.hash] = { texture: new Vh.t(
|
|
28950
|
+
this.textures[e4.hash] = { texture: new Vh.t(a2, new Lh.j((o3 + 2) * n2, (s3 + 2) * n2, u3 * n2, c3 * n2)), pivot: e4.pivot, scale: 1 / n2 }, h2[e4.hash] = this.hashToIdMap[e4.hash];
|
|
28950
28951
|
});
|
|
28951
|
-
const u2 = (c2 = '<?xml version="1.0" encoding="utf-8"?>' +
|
|
28952
|
+
const u2 = (c2 = '<?xml version="1.0" encoding="utf-8"?>' + l2.outerHTML, "data:image/svg+xml," + encodeURIComponent(c2).replace(/'/g, "%27").replace(/"/g, "%22"));
|
|
28952
28953
|
var c2;
|
|
28953
|
-
|
|
28954
|
-
|
|
28954
|
+
const d2 = document.createElement("img");
|
|
28955
|
+
d2.src = u2, yield new Promise((t3, e4) => {
|
|
28956
|
+
d2.onload = () => t3(""), d2.onerror = () => e4();
|
|
28957
|
+
});
|
|
28958
|
+
const p2 = document.createElement("canvas");
|
|
28959
|
+
p2.width = d2.width * n2, p2.height = d2.height * n2;
|
|
28960
|
+
p2.getContext("2d").drawImage(d2, 0, 0, p2.width, p2.height), s2.src = p2.toDataURL("image/png"), yield new Promise((t3, e4) => {
|
|
28961
|
+
s2.onload = () => t3(""), s2.onerror = () => e4();
|
|
28955
28962
|
});
|
|
28956
28963
|
});
|
|
28957
28964
|
}
|
|
@@ -29188,10 +29195,10 @@ void main() {
|
|
|
29188
29195
|
this.proxy && !e2 || (this.ctx.eventHub.emit(jy.hyperlinkTrigger, t2), this.execAction(t2));
|
|
29189
29196
|
}
|
|
29190
29197
|
execAction(t2) {
|
|
29191
|
-
var e2;
|
|
29198
|
+
var e2, i2;
|
|
29192
29199
|
if (this.ctx.eventHub.emit(jy.userInput), t2.action === "ppaction://hlinksldjump") {
|
|
29193
|
-
const
|
|
29194
|
-
|
|
29200
|
+
const i3 = ((e2 = t2 == null ? void 0 : t2.target) !== null && e2 !== void 0 ? e2 : "").match(/slide(\d+)\.xml/);
|
|
29201
|
+
i3 && i3[1] && this.ctx.eventHub.emit(jy.requestGotoSlide, Number(i3[1]));
|
|
29195
29202
|
} else if (t2.action === "ppaction://hlinkshowjump?jump=nextslide")
|
|
29196
29203
|
this.ctx.eventHub.emit(jy.requestNextSlide);
|
|
29197
29204
|
else if (t2.action === "ppaction://hlinkshowjump?jump=previousslide")
|
|
@@ -29204,7 +29211,7 @@ void main() {
|
|
|
29204
29211
|
const t3 = this.ctx.lastViewedIndex;
|
|
29205
29212
|
this.ctx.eventHub.emit(jy.requestGotoSlide, t3);
|
|
29206
29213
|
} else
|
|
29207
|
-
t2.action === "ppaction://hlinkshowjump?jump=endshow"
|
|
29214
|
+
t2.action === "ppaction://hlinkshowjump?jump=endshow" ? this.ctx.eventHub.emit(jy.requestGotoSlide, -1) : t2.action === "" && ((i2 = t2.target) === null || i2 === void 0 ? void 0 : i2.startsWith("http")) && this.ctx.eventHub.emit(jy.requestOpenUrl, t2.target);
|
|
29208
29215
|
}
|
|
29209
29216
|
}
|
|
29210
29217
|
function sg(t2, e2, i2 = 5) {
|
|
@@ -29527,7 +29534,7 @@ void main() {
|
|
|
29527
29534
|
render() {
|
|
29528
29535
|
if (this.ghcTextureId) {
|
|
29529
29536
|
const t2 = this.ctx.graphicsTexture.getGraphicsData(this.ghcTextureId);
|
|
29530
|
-
t2 && (this.sprite = new ep(), this.sprite.texture = t2.texture, this.sprite.pivot.x = t2.pivot.x);
|
|
29537
|
+
t2 && (this.sprite = new ep(), this.sprite.texture = t2.texture, this.sprite.pivot.x = t2.pivot.x, this.sprite.scale.x = t2.scale, this.sprite.scale.y = t2.scale);
|
|
29531
29538
|
}
|
|
29532
29539
|
}
|
|
29533
29540
|
destroy() {
|
|
@@ -29549,16 +29556,16 @@ void main() {
|
|
|
29549
29556
|
s2 = o2 + u2, l2 = s2 - o2, a2 = o2 - (s2 - l2) + (u2 - l2), u2 = n2[++d2], o2 = s2, a2 !== 0 && (r2[p2++] = a2);
|
|
29550
29557
|
return o2 === 0 && p2 !== 0 || (r2[p2++] = o2), p2;
|
|
29551
29558
|
}
|
|
29552
|
-
function
|
|
29559
|
+
function Rg(t2, e2) {
|
|
29553
29560
|
let i2 = e2[0];
|
|
29554
29561
|
for (let n2 = 1; n2 < t2; n2++)
|
|
29555
29562
|
i2 += e2[n2];
|
|
29556
29563
|
return i2;
|
|
29557
29564
|
}
|
|
29558
|
-
function
|
|
29565
|
+
function Cg(t2) {
|
|
29559
29566
|
return new Float64Array(t2);
|
|
29560
29567
|
}
|
|
29561
|
-
const Ig =
|
|
29568
|
+
const Ig = Cg(4), Pg = Cg(8), Og = Cg(12), Ng = Cg(16), Lg = Cg(4);
|
|
29562
29569
|
function Dg(t2, e2, i2, n2, r2, o2) {
|
|
29563
29570
|
const s2 = (e2 - o2) * (i2 - r2), a2 = (t2 - r2) * (n2 - o2), l2 = s2 - a2;
|
|
29564
29571
|
if (s2 === 0 || a2 === 0 || s2 > 0 != a2 > 0)
|
|
@@ -29566,16 +29573,16 @@ void main() {
|
|
|
29566
29573
|
const h2 = Math.abs(s2 + a2);
|
|
29567
29574
|
return Math.abs(l2) >= 33306690738754716e-32 * h2 ? l2 : -function(t3, e3, i3, n3, r3, o3, s3) {
|
|
29568
29575
|
let a3, l3, h3, u2, c2, d2, p2, f2, m2, g2, v2, _2, y2, x2, b2, T2, E2, S2;
|
|
29569
|
-
const w2 = t3 - r3, A2 = i3 - r3, M2 = e3 - o3,
|
|
29570
|
-
x2 = w2 *
|
|
29571
|
-
let
|
|
29572
|
-
if (
|
|
29573
|
-
return
|
|
29574
|
-
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 -
|
|
29575
|
-
return
|
|
29576
|
-
if (I2 = 11093356479670487e-47 * s3 + 33306690738754706e-32 * Math.abs(
|
|
29577
|
-
return
|
|
29578
|
-
x2 = a3 *
|
|
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;
|
|
29579
29586
|
const P2 = Mg(4, Ig, 4, Lg, Pg);
|
|
29580
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;
|
|
29581
29588
|
const O2 = Mg(P2, Pg, 4, Lg, Og);
|
|
@@ -30006,7 +30013,7 @@ void main(void){
|
|
|
30006
30013
|
if (this.fillStyle.fillType === "solidFill" || this.fillStyle.fillType === "noFill")
|
|
30007
30014
|
return null;
|
|
30008
30015
|
if (this.fillStyle.fillType === "gradientFill") {
|
|
30009
|
-
const t3 = new ep(), e2 = Wg(this.fillStyle, this.width, this.height), i2 = Vh.p.create({ width: this.width, height: this.height, resolution: this.ctx.renderer.resolution });
|
|
30016
|
+
const t3 = new ep(), e2 = Wg(JSON.parse(JSON.stringify(this.fillStyle)), this.width, this.height), i2 = Vh.p.create({ width: this.width, height: this.height, resolution: this.ctx.renderer.resolution });
|
|
30010
30017
|
return this.ctx.renderer.render(e2, { renderTexture: i2 }), e2.destroy({ children: true, texture: true }), t3.texture = i2, t3;
|
|
30011
30018
|
}
|
|
30012
30019
|
if (this.fillStyle.fillType === "blipFill") {
|
|
@@ -30178,10 +30185,10 @@ void main(void){
|
|
|
30178
30185
|
this.outputSprite.position.x = o2.x + t2, this.outputSprite.position.y = o2.y + e2;
|
|
30179
30186
|
}
|
|
30180
30187
|
}
|
|
30181
|
-
var
|
|
30188
|
+
var Rv = i(118), Cv = i.n(Rv);
|
|
30182
30189
|
class Iv extends lv {
|
|
30183
30190
|
constructor(t2) {
|
|
30184
|
-
super(mv.a,
|
|
30191
|
+
super(mv.a, Cv.a, {}), this.priority = 1, this.json = t2;
|
|
30185
30192
|
}
|
|
30186
30193
|
filterAreaJustify(t2) {
|
|
30187
30194
|
return t2;
|
|
@@ -30490,13 +30497,10 @@ void main(void){
|
|
|
30490
30497
|
createUnits(t2, e2, i2, n2) {
|
|
30491
30498
|
for (let r2 = 0, o2 = this.json.textUnits.length; r2 < o2; r2++)
|
|
30492
30499
|
n2.addSubMTask(() => Dv(this, void 0, void 0, function* () {
|
|
30493
|
-
|
|
30494
|
-
|
|
30495
|
-
|
|
30496
|
-
|
|
30497
|
-
i3.name = t3, i3.hitArea = new Lh.j(0, 0, this.json.width, this.json.height);
|
|
30498
|
-
const r3 = this.hyperLinkMap.get(t3) || new og(this.container, this.ctx), s3 = new Jd();
|
|
30499
|
-
s3.beginFill(0, 1e-5).drawRect(o3.x, o3.y, o3.width, o3.height).endFill(), i3.addChild(s3), e3 || (o3.hyperlink && r3.addAction(o3.hyperlink, "click"), o3.hlinkHover && r3.addAction(o3.hlinkHover, "hover"), r3.addProxy(i3), i3.zIndex = 999, this.container.addChild(i3), this.container.sortableChildren = true, this.hyperLinkContainerMap.set(t3, i3), this.hyperLinkMap.set(t3, r3));
|
|
30500
|
+
const n3 = this.json.textUnits[r2], { height: o3, width: s2, fillHeight: a2, baseline: l2, y: h2, underline: u2 } = this.json, c2 = new Lv(Object.assign(Object.assign({}, n3), { lineHeight: o3, lineWidth: s2, baseLine: l2 - h2, underline: u2, fillLineHeight: a2 || o3, isHorz: this.isHorz, shapeId: t2, paragraphIndex: e2, lineIndex: i2, unitIndex: r2 }), this.ctx, { parentGlobalPos: this.global, effectList: this.effectList });
|
|
30501
|
+
if (c2.preRender(), this.units.push(c2), n3.hyperlink || n3.hlinkHover) {
|
|
30502
|
+
const t3 = new og(c2.container, this.ctx);
|
|
30503
|
+
n3.hyperlink && t3.addAction(n3.hyperlink, "click"), n3.hlinkHover && t3.addAction(n3.hlinkHover, "hover"), this.container.sortableChildren = true;
|
|
30500
30504
|
}
|
|
30501
30505
|
}), "@TextLineImpl[createUnits]");
|
|
30502
30506
|
}
|
|
@@ -30870,8 +30874,8 @@ void main(void){
|
|
|
30870
30874
|
const r3 = e2[t3], o3 = e2[t3 + 1], [s3, a2] = o3.split(",").map((t4) => Number(t4) / 100);
|
|
30871
30875
|
i2.push(r3), n2.push({ x: s3, y: a2 });
|
|
30872
30876
|
}
|
|
30873
|
-
if (i2.join("")
|
|
30874
|
-
return
|
|
30877
|
+
if (i2.join("") === "MLLLC" || i2.join("") === "MLLLCC")
|
|
30878
|
+
return true;
|
|
30875
30879
|
for (let t3 = 0; t3 < 3; t3++) {
|
|
30876
30880
|
const e3 = n2[t3], i3 = n2[t3 + 1];
|
|
30877
30881
|
if (e3.x !== i3.x && e3.y !== i3.y)
|
|
@@ -30894,7 +30898,7 @@ void main(void){
|
|
|
30894
30898
|
}
|
|
30895
30899
|
{
|
|
30896
30900
|
const t2 = new ep(), e2 = this.ctx.graphicsTexture.getGraphicsData(this.id);
|
|
30897
|
-
return e2 ? (t2.texture = e2.texture, t2.pivot.x = e2.pivot.x, t2.pivot.y = e2.pivot.y, t2) : null;
|
|
30901
|
+
return e2 ? (t2.texture = e2.texture, t2.pivot.x = e2.pivot.x, t2.pivot.y = e2.pivot.y, t2.scale.x = e2.scale, t2.scale.y = e2.scale, t2) : null;
|
|
30898
30902
|
}
|
|
30899
30903
|
}
|
|
30900
30904
|
getClonedDisplayObject() {
|
|
@@ -31051,7 +31055,7 @@ void main(void){
|
|
|
31051
31055
|
const e3 = this.ctx.graphicsTexture.getGraphicsData(t3.id);
|
|
31052
31056
|
if (e3) {
|
|
31053
31057
|
const n3 = new ep(e3.texture);
|
|
31054
|
-
n3.pivot.x = e3.pivot.x, n3.pivot.y = e3.pivot.y;
|
|
31058
|
+
n3.pivot.x = e3.pivot.x, n3.pivot.y = e3.pivot.y, n3.scale.x = e3.scale, n3.scale.y = e3.scale;
|
|
31055
31059
|
const r2 = this.backgroundFill.getClonedDisplayObject(), o2 = (i2 = this.backgroundGraphics) === null || i2 === void 0 ? void 0 : i2.getClonedDisplayObject(), s2 = r2 || o2;
|
|
31056
31060
|
s2 && (this.backgroundFill.displayObject && (s2.pivot.x = this.backgroundFill.displayObject.pivot.x, s2.pivot.y = this.backgroundFill.displayObject.pivot.y), s2.mask = n3, s2.filters = [Eg[t3.fill]], this.needCacheAsBitMap = true, this.effectContainer.addChild(s2), this.effectContainer.addChild(n3));
|
|
31057
31061
|
}
|
|
@@ -31063,7 +31067,7 @@ void main(void){
|
|
|
31063
31067
|
const i2 = this.ctx.graphicsTexture.getGraphicsData(t2.graphicsId);
|
|
31064
31068
|
if (i2) {
|
|
31065
31069
|
const { texture: n2 } = i2, r2 = new ep(n2);
|
|
31066
|
-
r2.pivot.x = t2.pivot.x, r2.pivot.y = t2.pivot.y, r2.position.x = t2.position.x, r2.position.y = t2.position.y, r2.rotation = t2.rotate / 180 * Math.PI, (e2 = this.backgroundGraphics) === null || e2 === void 0 || e2.addArrows(r2);
|
|
31070
|
+
r2.pivot.x = t2.pivot.x, r2.pivot.y = t2.pivot.y, r2.position.x = t2.position.x, r2.position.y = t2.position.y, r2.rotation = t2.rotate / 180 * Math.PI, r2.scale.x = i2.scale, r2.scale.y = i2.scale, (e2 = this.backgroundGraphics) === null || e2 === void 0 || e2.addArrows(r2);
|
|
31067
31071
|
}
|
|
31068
31072
|
});
|
|
31069
31073
|
}
|
|
@@ -32181,7 +32185,7 @@ void main(void){
|
|
|
32181
32185
|
}
|
|
32182
32186
|
}
|
|
32183
32187
|
S_([Em()], M_.prototype, "interpolationFrom", null);
|
|
32184
|
-
class
|
|
32188
|
+
class R_ extends w_ {
|
|
32185
32189
|
constructor(t2, e2) {
|
|
32186
32190
|
super(t2, e2), this.fn = this.parseFmla(this.val);
|
|
32187
32191
|
}
|
|
@@ -32193,8 +32197,8 @@ void main(void){
|
|
|
32193
32197
|
return t2.fmla ? t2.fmla(i2, this.math, r2) : r2;
|
|
32194
32198
|
}
|
|
32195
32199
|
}
|
|
32196
|
-
S_([Em()],
|
|
32197
|
-
class
|
|
32200
|
+
S_([Em()], R_.prototype, "interpolationFrom", null);
|
|
32201
|
+
class C_ extends w_ {
|
|
32198
32202
|
constructor(t2, e2) {
|
|
32199
32203
|
super(t2, e2), this.value = t2.val.value;
|
|
32200
32204
|
}
|
|
@@ -32205,7 +32209,7 @@ void main(void){
|
|
|
32205
32209
|
return this.value;
|
|
32206
32210
|
}
|
|
32207
32211
|
}
|
|
32208
|
-
S_([Em()],
|
|
32212
|
+
S_([Em()], C_.prototype, "interpolationFrom", null);
|
|
32209
32213
|
class I_ extends T_ {
|
|
32210
32214
|
constructor(t2) {
|
|
32211
32215
|
super(t2), this.isConflict = true, this.activeWhenConflict = "next", this.startVal = null, this.vars = { ppt_x: 0, ppt_y: 0, ppt_w: 0, ppt_h: 0 }, this.keyFrames = [], this.isColorAnim = false, this.onTimeNodeStart = () => {
|
|
@@ -32238,24 +32242,24 @@ void main(void){
|
|
|
32238
32242
|
if (this.json.from || this.startVal) {
|
|
32239
32243
|
const t4 = { time: 0, val: { type: "string", value: this.json.from || this.startVal.toString() }, fmla: "" };
|
|
32240
32244
|
if (e2 === "num" && this.timingTarget) {
|
|
32241
|
-
const e3 = new
|
|
32245
|
+
const e3 = new R_(t4, this.timingTarget);
|
|
32242
32246
|
this.keyFrames.push([t4.time, e3]);
|
|
32243
32247
|
}
|
|
32244
32248
|
}
|
|
32245
32249
|
const t3 = { time: 1, val: { type: "string", value: this.json.to }, fmla: "" };
|
|
32246
32250
|
if (e2 === "num" && this.timingTarget) {
|
|
32247
|
-
const e3 = new
|
|
32251
|
+
const e3 = new R_(t3, this.timingTarget);
|
|
32248
32252
|
this.keyFrames.push([t3.time, e3]);
|
|
32249
32253
|
}
|
|
32250
32254
|
} else if (this.json.by) {
|
|
32251
32255
|
const i2 = { time: 0, val: { type: "string", value: this.json.cBhvr.attrList[0] }, fmla: "" };
|
|
32252
32256
|
if (e2 === "num" && this.timingTarget) {
|
|
32253
|
-
const t3 = new
|
|
32257
|
+
const t3 = new R_(i2, this.timingTarget);
|
|
32254
32258
|
this.keyFrames.push([i2.time, t3]);
|
|
32255
32259
|
}
|
|
32256
32260
|
const n2 = { time: 1, val: { type: "string", value: (((t2 = i2.val) === null || t2 === void 0 ? void 0 : t2.value) || "") + "+" + this.json.by }, fmla: "" };
|
|
32257
32261
|
if (e2 === "num" && this.timingTarget) {
|
|
32258
|
-
const t3 = new
|
|
32262
|
+
const t3 = new R_(n2, this.timingTarget);
|
|
32259
32263
|
this.keyFrames.push([n2.time, t3]);
|
|
32260
32264
|
}
|
|
32261
32265
|
}
|
|
@@ -32264,7 +32268,7 @@ void main(void){
|
|
|
32264
32268
|
for (const t3 of this.json.tavLst)
|
|
32265
32269
|
if (t3.val && this.timingTarget) {
|
|
32266
32270
|
let i2 = null;
|
|
32267
|
-
t3.val.type === "string" ? e2 === "num" ? i2 = new
|
|
32271
|
+
t3.val.type === "string" ? e2 === "num" ? i2 = new R_(t3, this.timingTarget) : e2 === "str" && (i2 = new M_(t3, this.timingTarget)) : t3.val.type === "number" ? i2 = new A_(t3, this.timingTarget) : t3.val.type === "color" ? (this.isColorAnim = true, i2 = new C_(t3, this.timingTarget)) : t3.val.type === "boolean" && console.warn("not implements"), i2 && this.keyFrames.push([t3.time, i2]);
|
|
32268
32272
|
}
|
|
32269
32273
|
}
|
|
32270
32274
|
}
|
|
@@ -33220,7 +33224,7 @@ void main(void){
|
|
|
33220
33224
|
this.couldRunning = false;
|
|
33221
33225
|
}
|
|
33222
33226
|
}
|
|
33223
|
-
var
|
|
33227
|
+
var Ry = function(t2, e2, i2, n2) {
|
|
33224
33228
|
return new (i2 || (i2 = Promise))(function(r2, o2) {
|
|
33225
33229
|
function s2(t3) {
|
|
33226
33230
|
try {
|
|
@@ -33245,7 +33249,7 @@ void main(void){
|
|
|
33245
33249
|
l2((n2 = n2.apply(t2, e2 || [])).next());
|
|
33246
33250
|
});
|
|
33247
33251
|
};
|
|
33248
|
-
const
|
|
33252
|
+
const Cy = (t2) => new Promise((e2) => setTimeout(e2, t2));
|
|
33249
33253
|
class Iy extends Za.a {
|
|
33250
33254
|
constructor(t2, e2, i2) {
|
|
33251
33255
|
super(), this.slideIndex = t2, this.taskId = e2, this.logger = i2, this.uuid = Mm(), this.isCancel = false, this.tasks = [];
|
|
@@ -33278,10 +33282,10 @@ void main(void){
|
|
|
33278
33282
|
}));
|
|
33279
33283
|
}
|
|
33280
33284
|
applyAll() {
|
|
33281
|
-
return
|
|
33285
|
+
return Ry(this, void 0, void 0, function* () {
|
|
33282
33286
|
for (; !this.tasks.every((t2) => t2.state === "finish"); )
|
|
33283
33287
|
if (this.tasks.some((t2) => t2.state === "running"))
|
|
33284
|
-
yield
|
|
33288
|
+
yield Cy(16);
|
|
33285
33289
|
else {
|
|
33286
33290
|
if (this.tasks.some((t2) => t2.state === "error"))
|
|
33287
33291
|
return;
|
|
@@ -33290,7 +33294,7 @@ void main(void){
|
|
|
33290
33294
|
if (t2) {
|
|
33291
33295
|
t2.state = "running";
|
|
33292
33296
|
try {
|
|
33293
|
-
if ((yield Im(() => t2.fn.apply(null), 6e4)) ===
|
|
33297
|
+
if ((yield Im(() => t2.fn.apply(null), 6e4)) === Rm)
|
|
33294
33298
|
throw new Tm(gm.RuntimeError, `subtask ${t2.name} apply timeout`);
|
|
33295
33299
|
if (t2.state = "finish", t2.sub.length > 0) {
|
|
33296
33300
|
const e2 = this.tasks.findIndex((e3) => e3 === t2);
|
|
@@ -33495,7 +33499,7 @@ void main(void){
|
|
|
33495
33499
|
createCtx(t2) {
|
|
33496
33500
|
const { task: e2 } = this.stageStates[t2];
|
|
33497
33501
|
e2.addMTask(() => Ny(this, void 0, void 0, function* () {
|
|
33498
|
-
const e3 = new Gm(this.loader), i2 = new Za.a(), n2 = { taskId: this.taskId, mode: this.mode, renderer: this.renderer, graphicsTexture: new Km(), stageWidth: 0, stageHeight: 0, ticker: this.ticker, timingTargets: new $m(i2), eventHub: i2, view: this.view, medias: /* @__PURE__ */ Object.create(null), lastViewedIndex: 0, conflictTimeNodeManager: new Qm(), clock: this.clock, spriteTexture: e3, slideIndex: t2, objectPoolGroup: this.objPoolGroup, hasBackgroundFillShape: false, slideScopeEventHub: new Za.a(), logger: this.logger, sdfManager: this.sdfManager, loaderDelegate: this.loaderDelegate, runningAudio: this.runningAudio, activeMedia: this.activeMedia, isPlayerPaused: this.isPlayerPaused, timingEventHub: new Za.a(), maxResolution: this.maxResolution, animatedIds: /* @__PURE__ */ new Set(), volumeAdjuster: this.volumeAdjuster, forceCanvas: this.forceCanvas, globalEventHub: this.globalEventHub, latestChangeFullscreenTargetId: "", isRendering: false, urlInterrupter: this.urlInterrupter };
|
|
33502
|
+
const e3 = new Gm(this.loader), i2 = new Za.a(), n2 = { taskId: this.taskId, mode: this.mode, renderer: this.renderer, graphicsTexture: new Km(this.maxResolution), stageWidth: 0, stageHeight: 0, ticker: this.ticker, timingTargets: new $m(i2), eventHub: i2, view: this.view, medias: /* @__PURE__ */ Object.create(null), lastViewedIndex: 0, conflictTimeNodeManager: new Qm(), clock: this.clock, spriteTexture: e3, slideIndex: t2, objectPoolGroup: this.objPoolGroup, hasBackgroundFillShape: false, slideScopeEventHub: new Za.a(), logger: this.logger, sdfManager: this.sdfManager, loaderDelegate: this.loaderDelegate, runningAudio: this.runningAudio, activeMedia: this.activeMedia, isPlayerPaused: this.isPlayerPaused, timingEventHub: new Za.a(), maxResolution: this.maxResolution, animatedIds: /* @__PURE__ */ new Set(), volumeAdjuster: this.volumeAdjuster, forceCanvas: this.forceCanvas, globalEventHub: this.globalEventHub, latestChangeFullscreenTargetId: "", isRendering: false, urlInterrupter: this.urlInterrupter };
|
|
33499
33503
|
this.stageCtxs[t2] = n2;
|
|
33500
33504
|
}), "@StagePool[createCtx]");
|
|
33501
33505
|
}
|
|
@@ -33538,8 +33542,17 @@ void main(void){
|
|
|
33538
33542
|
const { task: e2 } = this.stageStates[t2];
|
|
33539
33543
|
e2.addMTask(() => Ny(this, void 0, void 0, function* () {
|
|
33540
33544
|
const i2 = this.stageCtxs[t2];
|
|
33541
|
-
i2.graphicsTexture.pack().forEach((
|
|
33542
|
-
e2.addSubMTask(() =>
|
|
33545
|
+
i2.graphicsTexture.pack().forEach((n2, r2) => {
|
|
33546
|
+
e2.addSubMTask(() => {
|
|
33547
|
+
const { stageWidth: e3, stageHeight: o2 } = this.stageCtxs[t2];
|
|
33548
|
+
let s2 = 1;
|
|
33549
|
+
if (e3 > this.maxResolution.x || o2 > this.maxResolution.y) {
|
|
33550
|
+
s2 = this.maxResolution.x / e3;
|
|
33551
|
+
const t3 = s2 * o2;
|
|
33552
|
+
t3 > this.maxResolution.y && (s2 *= this.maxResolution.y / t3);
|
|
33553
|
+
}
|
|
33554
|
+
return i2.graphicsTexture.render(n2, r2, this.objPoolGroup, s2);
|
|
33555
|
+
}, "@StagePool[graphicsTexture.render]");
|
|
33543
33556
|
});
|
|
33544
33557
|
}), "@StagePool[createGraphicsTexture]");
|
|
33545
33558
|
}
|
|
@@ -33641,7 +33654,7 @@ void main(void){
|
|
|
33641
33654
|
e2 = yield Im(() => Fy.localCache.getItem(`${this.taskId}/${t2}`), 500);
|
|
33642
33655
|
} catch (t3) {
|
|
33643
33656
|
}
|
|
33644
|
-
return e2 = e2 ===
|
|
33657
|
+
return e2 = e2 === Rm ? null : e2, e2 || this.memoryCache.get(t2) || null;
|
|
33645
33658
|
});
|
|
33646
33659
|
}
|
|
33647
33660
|
setItem(t2, e2, i2 = false) {
|
|
@@ -33656,7 +33669,7 @@ void main(void){
|
|
|
33656
33669
|
}), 500);
|
|
33657
33670
|
} catch (t3) {
|
|
33658
33671
|
}
|
|
33659
|
-
n2 !==
|
|
33672
|
+
n2 !== Rm && n2 !== null || !i2 || this.memoryCache.set(t2, e2);
|
|
33660
33673
|
}
|
|
33661
33674
|
});
|
|
33662
33675
|
}
|
|
@@ -33750,7 +33763,7 @@ void main(void){
|
|
|
33750
33763
|
});
|
|
33751
33764
|
};
|
|
33752
33765
|
Ph.skipHello();
|
|
33753
|
-
const Hy = { randomBar: "RandomLines", circle: "Shape", ripple: "Ripples", wipe: "Erase", dissolve: "Dissolve", morph: "Smooth", fade: "FadeInOut", push: "Push", split: "Separation", reveal: "Display", pull: "Uncover", cover: "Cover", flash: "Flash", checker: "Checkerboard", blinds: "WindowShades", curtains: "Curtain", fallOver: "Fall", drape: "Suspension", wheel: "Clock", comb: "Combing", warp: "Scale", peelOff: "PeelOff", flip: "Flip", gallery: "Gallery", switch: "Switch", prism: "Prism", doors: "Doors" }, jy = { mainSeqStepChange: "mainSeqStepChange", mainSeqStateChange: "mainSeqStateChange", interactiveSeqStateChange: "interactiveSeqStateChange", interactiveSeqAction: "interactiveSeqAction", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", slideChange: "slideChange", renderStart: "renderStart", renderEnd: "renderEnd", hyperlinkTrigger: "hyperlinkTrigger", animateStart: "animateStart", animateEnd: "animateEnd", mediaSeek: "mediaSeek", mediaPlay: "mediaPlay", mediaPause: "mediaPause", mediaStop: "mediaStop", requestNextSlide: "requestNextSlide", requestPrevSlide: "requestPrevSlide", requestGotoSlide: "requestGotoSlide", userInput: "userInput", fullscreenChange: "fullscreenChange", changeLocalFullscreenState: "changeLocalFullscreenState" };
|
|
33766
|
+
const Hy = { randomBar: "RandomLines", circle: "Shape", ripple: "Ripples", wipe: "Erase", dissolve: "Dissolve", morph: "Smooth", fade: "FadeInOut", push: "Push", split: "Separation", reveal: "Display", pull: "Uncover", cover: "Cover", flash: "Flash", checker: "Checkerboard", blinds: "WindowShades", curtains: "Curtain", fallOver: "Fall", drape: "Suspension", wheel: "Clock", comb: "Combing", warp: "Scale", peelOff: "PeelOff", flip: "Flip", gallery: "Gallery", switch: "Switch", prism: "Prism", doors: "Doors" }, jy = { mainSeqStepChange: "mainSeqStepChange", mainSeqStateChange: "mainSeqStateChange", interactiveSeqStateChange: "interactiveSeqStateChange", interactiveSeqAction: "interactiveSeqAction", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", slideChange: "slideChange", renderStart: "renderStart", renderEnd: "renderEnd", hyperlinkTrigger: "hyperlinkTrigger", animateStart: "animateStart", animateEnd: "animateEnd", mediaSeek: "mediaSeek", mediaPlay: "mediaPlay", mediaPause: "mediaPause", mediaStop: "mediaStop", requestNextSlide: "requestNextSlide", requestPrevSlide: "requestPrevSlide", requestGotoSlide: "requestGotoSlide", requestOpenUrl: "requestOpenUrl", userInput: "userInput", fullscreenChange: "fullscreenChange", changeLocalFullscreenState: "changeLocalFullscreenState" };
|
|
33754
33767
|
class zy extends Za.a {
|
|
33755
33768
|
constructor(t2, e2 = {}) {
|
|
33756
33769
|
super(), this.errorChannel = new Za.a(), this.transactionPlayer = null, this.isForward = true, this.drawCall = 0, this.scale = 1, this._isPaused = false, this.maxResolution = new Lh.g(0, 0), this.isNVIDIA = false, this.fps = new bm(), this.designWidth = 0, this.designHeight = 0, this.currentIndex = 0, this.slideCount = 0, this.runtime = { drawCall: 0, fps: 0 }, this.globalEventHub = new Za.a(), this.globalVideoBackground = new Jd(), this.globalVideoSprite = new ep(), this.onMousemoveTimeout = null, this.cacheFunctionMap = /* @__PURE__ */ new Map(), this.isPlayerPaused = () => this._isPaused, this.onWebGLLost = () => {
|
|
@@ -33842,8 +33855,8 @@ void main(void){
|
|
|
33842
33855
|
return !$a()(t2) && Number.isInteger(t2) ? (t2 < 1 && (t2 = 1), t2 > 4 && (t2 = 4), t2) : zy.platform.isAndroid() || zy.platform.isIOS() ? 2 : 4;
|
|
33843
33856
|
}
|
|
33844
33857
|
updateMaxResolutionLevel(t2) {
|
|
33845
|
-
t2 <
|
|
33846
|
-
const e2 = [
|
|
33858
|
+
t2 < 0 && (t2 = 0), t2 > 4 && (t2 = 4);
|
|
33859
|
+
const e2 = [640, 960, 1280, 1920, 3200][t2], i2 = [360, 540, 720, 1080, 1800][t2];
|
|
33847
33860
|
this.maxResolution.set(e2, i2);
|
|
33848
33861
|
}
|
|
33849
33862
|
updateConfig(t2) {
|
|
@@ -33863,7 +33876,8 @@ void main(void){
|
|
|
33863
33876
|
translateEvent(t2, e2) {
|
|
33864
33877
|
e2.forEach((e3) => {
|
|
33865
33878
|
t2.on(e3, (...t3) => {
|
|
33866
|
-
|
|
33879
|
+
var i2, n2, r2, o2;
|
|
33880
|
+
e3 === jy.requestGotoSlide && ((n2 = (i2 = this.currentStage) === null || i2 === void 0 ? void 0 : i2.timing) === null || n2 === void 0 || n2.setMainSeqStep(0, "start"), (o2 = (r2 = this.currentStage) === null || r2 === void 0 ? void 0 : r2.timing) === null || o2 === void 0 || o2.destroy()), this.emit(e3, ...t3);
|
|
33867
33881
|
});
|
|
33868
33882
|
});
|
|
33869
33883
|
}
|
|
@@ -33877,7 +33891,7 @@ void main(void){
|
|
|
33877
33891
|
const o2 = yield this.stagePool.getStage(t2), s2 = `snapshot-${t2}-${this.isForward ? "start" : "end"}`, a2 = yield this.localStorage.getItem(s2);
|
|
33878
33892
|
if (!o2)
|
|
33879
33893
|
return;
|
|
33880
|
-
o2.ctx.isRendering = true, this.translateEvent(o2.ctx.eventHub, [jy.mainSeqStepChange, jy.mainSeqStateChange, jy.hyperlinkTrigger, jy.interactiveSeqAction, jy.mainSeqStepStart, jy.mainSeqStepEnd, jy.animateStart, jy.animateEnd, jy.mediaPlay, jy.mediaPause, jy.mediaSeek, jy.mediaStop, jy.requestGotoSlide, jy.requestNextSlide, jy.requestPrevSlide, jy.interactiveSeqStateChange, jy.userInput, jy.fullscreenChange, jy.changeLocalFullscreenState]), this.currentIndex = Number(t2);
|
|
33894
|
+
o2.ctx.isRendering = true, this.translateEvent(o2.ctx.eventHub, [jy.mainSeqStepChange, jy.mainSeqStateChange, jy.hyperlinkTrigger, jy.interactiveSeqAction, jy.mainSeqStepStart, jy.mainSeqStepEnd, jy.animateStart, jy.animateEnd, jy.mediaPlay, jy.mediaPause, jy.mediaSeek, jy.mediaStop, jy.requestGotoSlide, jy.requestOpenUrl, jy.requestNextSlide, jy.requestPrevSlide, jy.interactiveSeqStateChange, jy.userInput, jy.fullscreenChange, jy.changeLocalFullscreenState]), this.currentIndex = Number(t2);
|
|
33881
33895
|
const { width: l2, height: h2, slideCount: u2 } = o2.json;
|
|
33882
33896
|
this.slideCount = u2, this.designWidth = l2, this.designHeight = h2, (e2 = this.currentStage) === null || e2 === void 0 || e2.clearOnSlideChange();
|
|
33883
33897
|
const c2 = this.currentStage;
|
|
@@ -34233,7 +34247,7 @@ void main(void){
|
|
|
34233
34247
|
Tx.push(t2), tx();
|
|
34234
34248
|
}, Sx = 0, wx = { attributes: true, characterData: true, childList: true, subtree: true }, Ax = ["resize", "load", "transitionend", "animationend", "animationstart", "animationiteration", "keyup", "keydown", "mouseup", "mousedown", "mouseover", "mouseout", "blur", "focus"], Mx = function(t2) {
|
|
34235
34249
|
return t2 === void 0 && (t2 = 0), Date.now() + t2;
|
|
34236
|
-
},
|
|
34250
|
+
}, Rx = false, Cx = new (function() {
|
|
34237
34251
|
function t2() {
|
|
34238
34252
|
var t3 = this;
|
|
34239
34253
|
this.stopped = true, this.listener = function() {
|
|
@@ -34242,15 +34256,15 @@ void main(void){
|
|
|
34242
34256
|
}
|
|
34243
34257
|
return t2.prototype.run = function(t3) {
|
|
34244
34258
|
var e2 = this;
|
|
34245
|
-
if (t3 === void 0 && (t3 = 250), !
|
|
34246
|
-
|
|
34259
|
+
if (t3 === void 0 && (t3 = 250), !Rx) {
|
|
34260
|
+
Rx = true;
|
|
34247
34261
|
var i2, n2 = Mx(t3);
|
|
34248
34262
|
i2 = function() {
|
|
34249
34263
|
var i3 = false;
|
|
34250
34264
|
try {
|
|
34251
34265
|
i3 = bx();
|
|
34252
34266
|
} finally {
|
|
34253
|
-
if (
|
|
34267
|
+
if (Rx = false, t3 = n2 - Mx(), !Sx)
|
|
34254
34268
|
return;
|
|
34255
34269
|
i3 ? e2.run(1e3) : t3 > 0 ? e2.run(t3) : e2.start();
|
|
34256
34270
|
}
|
|
@@ -34277,7 +34291,7 @@ void main(void){
|
|
|
34277
34291
|
}), this.stopped = true);
|
|
34278
34292
|
}, t2;
|
|
34279
34293
|
}())(), Ix = function(t2) {
|
|
34280
|
-
!Sx && t2 > 0 &&
|
|
34294
|
+
!Sx && t2 > 0 && Cx.start(), !(Sx += t2) && Cx.stop();
|
|
34281
34295
|
}, Px = function() {
|
|
34282
34296
|
function t2(t3, e2) {
|
|
34283
34297
|
this.target = t3, this.observedBox = e2 || Xy.CONTENT_BOX, this.lastReportedSize = { inlineSize: 0, blockSize: 0 };
|
|
@@ -34316,7 +34330,7 @@ void main(void){
|
|
|
34316
34330
|
Nx.set(t3, i2);
|
|
34317
34331
|
}, t2.observe = function(t3, e2, i2) {
|
|
34318
34332
|
var n2 = Nx.get(t3), r2 = n2.observationTargets.length === 0;
|
|
34319
|
-
Lx(n2.observationTargets, e2) < 0 && (r2 && Qy.push(n2), n2.observationTargets.push(new Px(e2, i2 && i2.box)), Ix(1),
|
|
34333
|
+
Lx(n2.observationTargets, e2) < 0 && (r2 && Qy.push(n2), n2.observationTargets.push(new Px(e2, i2 && i2.box)), Ix(1), Cx.schedule());
|
|
34320
34334
|
}, t2.unobserve = function(t3, e2) {
|
|
34321
34335
|
var i2 = Nx.get(t3), n2 = Lx(i2.observationTargets, e2), r2 = i2.observationTargets.length === 1;
|
|
34322
34336
|
n2 >= 0 && (r2 && Qy.splice(Qy.indexOf(i2), 1), i2.observationTargets.splice(n2, 1), Ix(-1));
|
|
@@ -35104,16 +35118,16 @@ void main(void){
|
|
|
35104
35118
|
return e2.setAttribute("type", "text/css"), e2.innerHTML = t2, document.head.appendChild(e2), t2;
|
|
35105
35119
|
}
|
|
35106
35120
|
}(".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"));
|
|
35107
|
-
var
|
|
35121
|
+
var Rb = function() {
|
|
35108
35122
|
try {
|
|
35109
35123
|
return !!window.localStorage;
|
|
35110
35124
|
} catch (t2) {
|
|
35111
35125
|
return false;
|
|
35112
35126
|
}
|
|
35113
|
-
}(),
|
|
35127
|
+
}(), Cb = void 0, Ib = true, Pb = void 0, Ob = false, Nb = [], Lb = function t2(e2) {
|
|
35114
35128
|
var i2 = this, n2 = e2 || {};
|
|
35115
35129
|
this.domElement = document.createElement("div"), this.__ul = document.createElement("ul"), this.domElement.appendChild(this.__ul), ub.addClass(this.domElement, "dg"), this.__folders = {}, this.__controllers = [], this.__rememberedObjects = [], this.__rememberedObjectIndecesToControllers = [], this.__listening = [], n2 = Vx.defaults(n2, { closeOnTop: false, autoPlace: true, width: t2.DEFAULT_WIDTH }), n2 = Vx.defaults(n2, { resizable: n2.autoPlace, hideable: n2.autoPlace }), Vx.isUndefined(n2.load) ? n2.load = { preset: "Default" } : n2.preset && (n2.load.preset = n2.preset), Vx.isUndefined(n2.parent) && n2.hideable && Nb.push(this), n2.resizable = Vx.isUndefined(n2.parent) && n2.resizable, n2.autoPlace && Vx.isUndefined(n2.scrollable) && (n2.scrollable = true);
|
|
35116
|
-
var r2, o2 =
|
|
35130
|
+
var r2, o2 = Rb && localStorage.getItem(Gb(this, "isLocal")) === "true", s2 = void 0, a2 = void 0;
|
|
35117
35131
|
if (Object.defineProperties(this, { parent: { get: function() {
|
|
35118
35132
|
return n2.parent;
|
|
35119
35133
|
} }, scrollable: { get: function() {
|
|
@@ -35146,9 +35160,9 @@ void main(void){
|
|
|
35146
35160
|
} }, useLocalStorage: { get: function() {
|
|
35147
35161
|
return o2;
|
|
35148
35162
|
}, set: function(t3) {
|
|
35149
|
-
|
|
35163
|
+
Rb && (o2 = t3, t3 ? ub.bind(window, "unload", s2) : ub.unbind(window, "unload", s2), localStorage.setItem(Gb(i2, "isLocal"), t3));
|
|
35150
35164
|
} } }), Vx.isUndefined(n2.parent)) {
|
|
35151
|
-
if (this.closed = n2.closed || false, ub.addClass(this.domElement, t2.CLASS_MAIN), ub.makeSelectable(this.domElement, false),
|
|
35165
|
+
if (this.closed = n2.closed || false, ub.addClass(this.domElement, t2.CLASS_MAIN), ub.makeSelectable(this.domElement, false), Rb && o2) {
|
|
35152
35166
|
i2.useLocalStorage = true;
|
|
35153
35167
|
var l2 = localStorage.getItem(Gb(this, "gui"));
|
|
35154
35168
|
l2 && (n2.load = JSON.parse(l2));
|
|
@@ -35167,7 +35181,7 @@ void main(void){
|
|
|
35167
35181
|
n2.autoPlace && (Vx.isUndefined(n2.parent) && (Ib && (Pb = document.createElement("div"), ub.addClass(Pb, "dg"), ub.addClass(Pb, t2.CLASS_AUTO_PLACE_CONTAINER), document.body.appendChild(Pb), Ib = false), Pb.appendChild(this.domElement), ub.addClass(this.domElement, t2.CLASS_AUTO_PLACE)), this.parent || Xb(i2, n2.width)), this.__resizeHandler = function() {
|
|
35168
35182
|
i2.onResizeDebounced();
|
|
35169
35183
|
}, ub.bind(window, "resize", this.__resizeHandler), ub.bind(this.__ul, "webkitTransitionEnd", this.__resizeHandler), ub.bind(this.__ul, "transitionend", this.__resizeHandler), ub.bind(this.__ul, "oTransitionEnd", this.__resizeHandler), this.onResize(), n2.resizable && Vb(this), s2 = function() {
|
|
35170
|
-
|
|
35184
|
+
Rb && localStorage.getItem(Gb(i2, "isLocal")) === "true" && localStorage.setItem(Gb(i2, "gui"), JSON.stringify(i2.getSaveObject()));
|
|
35171
35185
|
}, this.saveToLocalStorageIfPossible = s2, n2.parent || ((r2 = i2.getRoot()).width += 1, Vx.defer(function() {
|
|
35172
35186
|
r2.width -= 1;
|
|
35173
35187
|
}));
|
|
@@ -35302,7 +35316,7 @@ void main(void){
|
|
|
35302
35316
|
for (var e3 = 0; e3 < t2.__preset_select.length; e3++)
|
|
35303
35317
|
t2.__preset_select[e3].innerHTML = t2.__preset_select[e3].value;
|
|
35304
35318
|
t2.preset = this.value;
|
|
35305
|
-
}), e2.appendChild(s2), e2.appendChild(i2), e2.appendChild(n2), e2.appendChild(r2), e2.appendChild(o2),
|
|
35319
|
+
}), e2.appendChild(s2), e2.appendChild(i2), e2.appendChild(n2), e2.appendChild(r2), e2.appendChild(o2), Rb) {
|
|
35306
35320
|
var a2 = document.getElementById("dg-local-explain"), l2 = document.getElementById("dg-local-storage");
|
|
35307
35321
|
document.getElementById("dg-save-locally").style.display = "block", localStorage.getItem(Gb(0, "isLocal")) === "true" && l2.setAttribute("checked", "checked"), jb(t2, a2), ub.bind(l2, "change", function() {
|
|
35308
35322
|
t2.useLocalStorage = !t2.useLocalStorage, jb(t2, a2);
|
|
@@ -35310,9 +35324,9 @@ void main(void){
|
|
|
35310
35324
|
}
|
|
35311
35325
|
var h2 = document.getElementById("dg-new-constructor");
|
|
35312
35326
|
ub.bind(h2, "keydown", function(t3) {
|
|
35313
|
-
!t3.metaKey || t3.which !== 67 && t3.keyCode !== 67 ||
|
|
35327
|
+
!t3.metaKey || t3.which !== 67 && t3.keyCode !== 67 || Cb.hide();
|
|
35314
35328
|
}), ub.bind(i2, "click", function() {
|
|
35315
|
-
h2.innerHTML = JSON.stringify(t2.getSaveObject(), void 0, 2),
|
|
35329
|
+
h2.innerHTML = JSON.stringify(t2.getSaveObject(), void 0, 2), Cb.show(), h2.focus(), h2.select();
|
|
35316
35330
|
}), ub.bind(n2, "click", function() {
|
|
35317
35331
|
t2.save();
|
|
35318
35332
|
}), ub.bind(r2, "click", function() {
|
|
@@ -35410,7 +35424,7 @@ void main(void){
|
|
|
35410
35424
|
}, onResizeDebounced: Vx.debounce(function() {
|
|
35411
35425
|
this.onResize();
|
|
35412
35426
|
}, 50), remember: function() {
|
|
35413
|
-
if (Vx.isUndefined(
|
|
35427
|
+
if (Vx.isUndefined(Cb) && ((Cb = new Mb()).domElement.innerHTML = Sb), this.parent)
|
|
35414
35428
|
throw new Error("You can only call remember on a top level GUI.");
|
|
35415
35429
|
var t2 = this;
|
|
35416
35430
|
Vx.each(Array.prototype.slice.call(arguments), function(e2) {
|
|
@@ -35476,11 +35490,11 @@ void main(void){
|
|
|
35476
35490
|
}, enumerable: false, configurable: true }), Object.defineProperty(t2.prototype, "minFPS", { get: function() {
|
|
35477
35491
|
return this.player.config.minFPS;
|
|
35478
35492
|
}, set: function(t3) {
|
|
35479
|
-
this.player.updateConfig({ minFPS: t3 });
|
|
35493
|
+
this.player.updateConfig({ minFPS: t3, maxFPS: this.player.config.maxFPS });
|
|
35480
35494
|
}, enumerable: false, configurable: true }), Object.defineProperty(t2.prototype, "maxFPS", { get: function() {
|
|
35481
35495
|
return this.player.config.maxFPS;
|
|
35482
35496
|
}, set: function(t3) {
|
|
35483
|
-
this.player.updateConfig({ maxFPS: t3 });
|
|
35497
|
+
this.player.updateConfig({ maxFPS: t3, minFPS: this.player.config.minFPS });
|
|
35484
35498
|
}, enumerable: false, configurable: true }), Object.defineProperty(t2.prototype, "autoResolution", { get: function() {
|
|
35485
35499
|
return this.player.config.autoResolution;
|
|
35486
35500
|
}, set: function(t3) {
|
|
@@ -35963,9 +35977,9 @@ void main(void){
|
|
|
35963
35977
|
}
|
|
35964
35978
|
var pT = { 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" }, fT = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, mT = "";
|
|
35965
35979
|
try {
|
|
35966
|
-
mT = "1.1.
|
|
35980
|
+
mT = "1.1.4";
|
|
35967
35981
|
} catch (t2) {
|
|
35968
|
-
mT = "dev
|
|
35982
|
+
mT = "dev";
|
|
35969
35983
|
}
|
|
35970
35984
|
var gT = null;
|
|
35971
35985
|
try {
|
|
@@ -36037,16 +36051,16 @@ void main(void){
|
|
|
36037
36051
|
});
|
|
36038
36052
|
}, n3.handlePrevSlide = function(t3) {
|
|
36039
36053
|
return t3 === void 0 && (t3 = false), lT(n3, void 0, void 0, function() {
|
|
36040
|
-
var e3;
|
|
36041
|
-
return hT(this, function(
|
|
36042
|
-
return this.player ? ((e3 = this.player.prevSlideIndex) >= 1 && (this.config.navigatorDelegate ? this.config.navigatorDelegate.gotoPage(e3) : t3 ? this.doRenderSlide(e3, false) : this.renderSlide(e3, false)), [2]) : [2];
|
|
36054
|
+
var e3, i4;
|
|
36055
|
+
return hT(this, function(n4) {
|
|
36056
|
+
return this.player ? ((e3 = this.player.prevSlideIndex) >= 1 && (((i4 = this.config.navigatorDelegate) === null || i4 === void 0 ? void 0 : i4.gotoPage) ? this.config.navigatorDelegate.gotoPage(e3) : t3 ? this.doRenderSlide(e3, false) : this.renderSlide(e3, false)), [2]) : [2];
|
|
36043
36057
|
});
|
|
36044
36058
|
});
|
|
36045
36059
|
}, n3.handleNextSlide = function(t3) {
|
|
36046
36060
|
return t3 === void 0 && (t3 = false), lT(n3, void 0, void 0, function() {
|
|
36047
|
-
var e3;
|
|
36048
|
-
return hT(this, function(
|
|
36049
|
-
return this.player ? ((e3 = this.player.nextSlideIndex) <= this.slideCount && (this.config.navigatorDelegate ? this.config.navigatorDelegate.gotoPage(e3) : t3 ? this.doRenderSlide(e3, true) : this.renderSlide(e3, true)), [2]) : [2];
|
|
36061
|
+
var e3, i4;
|
|
36062
|
+
return hT(this, function(n4) {
|
|
36063
|
+
return this.player ? ((e3 = this.player.nextSlideIndex) <= this.slideCount && (((i4 = this.config.navigatorDelegate) === null || i4 === void 0 ? void 0 : i4.gotoPage) ? this.config.navigatorDelegate.gotoPage(e3) : t3 ? this.doRenderSlide(e3, true) : this.renderSlide(e3, true)), [2]) : [2];
|
|
36050
36064
|
});
|
|
36051
36065
|
});
|
|
36052
36066
|
}, n3.handleGotoSlide = function(t3) {
|
|
@@ -36201,7 +36215,11 @@ void main(void){
|
|
|
36201
36215
|
}), o2.on(jy.requestNextSlide, function(t4) {
|
|
36202
36216
|
r2.handleNextSlide(t4);
|
|
36203
36217
|
}), o2.on(jy.requestGotoSlide, function(t4) {
|
|
36204
|
-
|
|
36218
|
+
var e4;
|
|
36219
|
+
((e4 = r2.config.navigatorDelegate) === null || e4 === void 0 ? void 0 : e4.gotoPage) ? r2.config.navigatorDelegate.gotoPage(t4) : r2.handleGotoSlide(t4);
|
|
36220
|
+
}), o2.on(jy.requestOpenUrl, function(t4) {
|
|
36221
|
+
var e4;
|
|
36222
|
+
console.log(r2.config.navigatorDelegate), ((e4 = r2.config.navigatorDelegate) === null || e4 === void 0 ? void 0 : e4.openUrl) && r2.config.navigatorDelegate.openUrl(t4);
|
|
36205
36223
|
}), o2.on(jy.fullscreenChange, function(t4) {
|
|
36206
36224
|
var e4, i4 = t4.targetId, n4 = t4.state;
|
|
36207
36225
|
r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaFullscreen", targetId: i4, state: n4 });
|
|
@@ -39066,7 +39084,7 @@ class SlidePreviewer {
|
|
|
39066
39084
|
}
|
|
39067
39085
|
}
|
|
39068
39086
|
const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
|
|
39069
|
-
const version = "0.2.
|
|
39087
|
+
const version = "0.2.44";
|
|
39070
39088
|
const SlideApp = {
|
|
39071
39089
|
kind: "Slide",
|
|
39072
39090
|
setup(context) {
|