diff --git a/dist/robot-scene.es.js b/dist/robot-scene.es.js index 8b75a13..4431a88 100644 --- a/dist/robot-scene.es.js +++ b/dist/robot-scene.es.js @@ -1,12 +1,12 @@ -import * as Or from "react"; -import hh, { useReducer as v5, useRef as co, useDebugValue as _N, useEffect as fh, useLayoutEffect as I3, useState as Ib, useMemo as Qb, createContext as OC, useContext as MM, forwardRef as a1, useCallback as Op, useImperativeHandle as g5, memo as QM, Suspense as y5 } from "react"; +import * as Ln from "react"; +import ph, { useReducer as D5, useRef as Xs, useDebugValue as UN, useEffect as hh, useLayoutEffect as H3, useState as O_, useMemo as Qw, createContext as OC, useContext as TM, forwardRef as U0, useCallback as qh, useImperativeHandle as L5, memo as QM, Suspense as P5 } from "react"; /** * @license * Copyright 2010-2022 Three.js Authors * SPDX-License-Identifier: MIT */ -const U0 = "143", ES = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, MS = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, bN = 0, BD = 1, wN = 2, x5 = 3, S5 = 0, B3 = 1, H3 = 2, Bb = 3, py = 0, uf = 1, Pp = 2, EN = 1, _5 = 2, cf = 0, L0 = 1, _C = 2, HD = 3, VD = 4, MN = 5, AS = 100, TN = 101, V3 = 102, GD = 103, WD = 104, CN = 200, RN = 201, AN = 202, DN = 203, UC = 204, zC = 205, LN = 206, PN = 207, ON = 208, UN = 209, zN = 210, NN = 0, FN = 1, kN = 2, bC = 3, IN = 4, BN = 5, HN = 6, VN = 7, ZM = 0, GN = 1, WN = 2, ig = 0, jN = 1, YN = 2, XN = 3, G3 = 4, qN = 5, NC = 300, t1 = 301, n1 = 302, TM = 303, CM = 304, hw = 306, Zb = 1e3, Wh = 1001, RM = 1002, fo = 1003, wC = 1004, b5 = 1004, EC = 1005, w5 = 1005, Oo = 1006, W3 = 1007, E5 = 1007, s1 = 1008, M5 = 1008, Gf = 1009, QN = 1010, ZN = 1011, j3 = 1012, JN = 1013, D0 = 1014, uy = 1015, GS = 1016, KN = 1017, $N = 1018, Kx = 1020, eF = 1021, tF = 1022, Sm = 1023, nF = 1024, rF = 1025, $x = 1026, r1 = 1027, iF = 1028, aF = 1029, sF = 1030, oF = 1031, lF = 1033, uC = 33776, cC = 33777, fC = 33778, dC = 33779, jD = 35840, YD = 35841, XD = 35842, qD = 35843, uF = 36196, QD = 37492, ZD = 37496, JD = 37808, KD = 37809, $D = 37810, e3 = 37811, t3 = 37812, n3 = 37813, r3 = 37814, i3 = 37815, a3 = 37816, s3 = 37817, o3 = 37818, l3 = 37819, u3 = 37820, c3 = 37821, f3 = 36492, cF = 2200, fF = 2201, dF = 2202, AM = 2300, DM = 2301, hC = 2302, LS = 2400, PS = 2401, LM = 2402, FC = 2500, Y3 = 2501, T5 = 0, C5 = 1, R5 = 2, yv = 3e3, Mi = 3001, o1 = 3200, Jb = 3201, qS = 0, hF = 1, A5 = "", oy = "srgb", Jx = "srgb-linear", D5 = 0, pC = 7680, L5 = 7681, P5 = 7682, O5 = 7683, U5 = 34055, z5 = 34056, N5 = 5386, F5 = 512, k5 = 513, I5 = 514, B5 = 515, H5 = 516, V5 = 517, G5 = 518, pF = 519, PM = 35044, W5 = 35048, j5 = 35040, Y5 = 35045, X5 = 35049, q5 = 35041, Q5 = 35046, Z5 = 35050, J5 = 35042, K5 = "100", d3 = "300 es", MC = 1035; -class Mm { +const a1 = "143", T_ = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, C_ = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, zN = 0, VD = 1, NN = 2, O5 = 3, FN = 0, UC = 1, _M = 2, U_ = 3, vy = 0, cf = 1, Yh = 2, kN = 1, U5 = 2, ff = 0, P0 = 1, wC = 2, GD = 3, WD = 4, IN = 5, L_ = 100, BN = 101, V3 = 102, jD = 103, YD = 104, HN = 200, VN = 201, GN = 202, WN = 203, zC = 204, NC = 205, jN = 206, YN = 207, XN = 208, qN = 209, QN = 210, ZN = 0, JN = 1, KN = 2, bC = 3, $N = 4, eF = 5, tF = 6, nF = 7, ZM = 0, rF = 1, iF = 2, og = 0, aF = 1, sF = 2, oF = 3, G3 = 4, lF = 5, FC = 300, t1 = 301, n1 = 302, CM = 303, RM = 304, hb = 306, Zw = 1e3, jh = 1001, AM = 1002, fo = 1003, EC = 1004, z5 = 1004, MC = 1005, N5 = 1005, Oo = 1006, W3 = 1007, F5 = 1007, s1 = 1008, k5 = 1008, df = 1009, uF = 1010, cF = 1011, j3 = 1012, fF = 1013, L0 = 1014, fy = 1015, X_ = 1016, dF = 1017, hF = 1018, Kx = 1020, pF = 1021, mF = 1022, zp = 1023, vF = 1024, gF = 1025, $x = 1026, r1 = 1027, yF = 1028, xF = 1029, _F = 1030, SF = 1031, wF = 1033, uC = 33776, cC = 33777, fC = 33778, dC = 33779, XD = 35840, qD = 35841, QD = 35842, ZD = 35843, bF = 36196, JD = 37492, KD = 37496, $D = 37808, e3 = 37809, t3 = 37810, n3 = 37811, r3 = 37812, i3 = 37813, a3 = 37814, s3 = 37815, o3 = 37816, l3 = 37817, u3 = 37818, c3 = 37819, f3 = 37820, d3 = 37821, h3 = 36492, EF = 2200, MF = 2201, TF = 2202, DM = 2300, LM = 2301, hC = 2302, z_ = 2400, N_ = 2401, PM = 2402, kC = 2500, Y3 = 2501, I5 = 0, B5 = 1, H5 = 2, wv = 3e3, gi = 3001, o1 = 3200, Jw = 3201, K_ = 0, CF = 1, V5 = "", uy = "srgb", Jx = "srgb-linear", G5 = 0, pC = 7680, W5 = 7681, j5 = 7682, Y5 = 7683, X5 = 34055, q5 = 34056, Q5 = 5386, Z5 = 512, J5 = 513, K5 = 514, $5 = 515, eH = 516, tH = 517, nH = 518, RF = 519, OM = 35044, B_ = 35048, rH = 35040, iH = 35045, aH = 35049, sH = 35041, oH = 35046, lH = 35050, uH = 35042, cH = "100", p3 = "300 es", TC = 1035; +class Cm { addEventListener(e, t) { this._listeners === void 0 && (this._listeners = {}); const r = this._listeners; @@ -23,8 +23,8 @@ class Mm { return; const i = this._listeners[e]; if (i !== void 0) { - const o = i.indexOf(t); - o !== -1 && i.splice(o, 1); + const s = i.indexOf(t); + s !== -1 && i.splice(s, 1); } } dispatchEvent(e) { @@ -34,101 +34,101 @@ class Mm { if (r !== void 0) { e.target = this; const i = r.slice(0); - for (let o = 0, l = i.length; o < l; o++) - i[o].call(this, e); + for (let s = 0, l = i.length; s < l; s++) + i[s].call(this, e); e.target = null; } } } -const oh = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"]; -let AO = 1234567; -const NS = Math.PI / 180, OM = 180 / Math.PI; -function bm() { +const lh = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"]; +let PO = 1234567; +const H_ = Math.PI / 180, UM = 180 / Math.PI; +function Em() { const a = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, r = Math.random() * 4294967295 | 0; - return (oh[a & 255] + oh[a >> 8 & 255] + oh[a >> 16 & 255] + oh[a >> 24 & 255] + "-" + oh[e & 255] + oh[e >> 8 & 255] + "-" + oh[e >> 16 & 15 | 64] + oh[e >> 24 & 255] + "-" + oh[t & 63 | 128] + oh[t >> 8 & 255] + "-" + oh[t >> 16 & 255] + oh[t >> 24 & 255] + oh[r & 255] + oh[r >> 8 & 255] + oh[r >> 16 & 255] + oh[r >> 24 & 255]).toLowerCase(); + return (lh[a & 255] + lh[a >> 8 & 255] + lh[a >> 16 & 255] + lh[a >> 24 & 255] + "-" + lh[e & 255] + lh[e >> 8 & 255] + "-" + lh[e >> 16 & 15 | 64] + lh[e >> 24 & 255] + "-" + lh[t & 63 | 128] + lh[t >> 8 & 255] + "-" + lh[t >> 16 & 255] + lh[t >> 24 & 255] + lh[r & 255] + lh[r >> 8 & 255] + lh[r >> 16 & 255] + lh[r >> 24 & 255]).toLowerCase(); } -function Qu(a, e, t) { +function Zu(a, e, t) { return Math.max(e, Math.min(t, a)); } function X3(a, e) { return (a % e + e) % e; } -function $5(a, e, t, r, i) { +function fH(a, e, t, r, i) { return r + (a - e) * (i - r) / (t - e); } -function eH(a, e, t) { +function dH(a, e, t) { return a !== e ? (t - a) / (e - a) : 0; } -function yM(a, e, t) { +function SM(a, e, t) { return (1 - t) * a + t * e; } -function tH(a, e, t, r) { - return yM(a, e, 1 - Math.exp(-t * r)); +function hH(a, e, t, r) { + return SM(a, e, 1 - Math.exp(-t * r)); } -function nH(a, e = 1) { +function pH(a, e = 1) { return e - Math.abs(X3(a, e * 2) - e); } -function rH(a, e, t) { +function mH(a, e, t) { return a <= e ? 0 : a >= t ? 1 : (a = (a - e) / (t - e), a * a * (3 - 2 * a)); } -function iH(a, e, t) { +function vH(a, e, t) { return a <= e ? 0 : a >= t ? 1 : (a = (a - e) / (t - e), a * a * a * (a * (a * 6 - 15) + 10)); } -function aH(a, e) { +function gH(a, e) { return a + Math.floor(Math.random() * (e - a + 1)); } -function sH(a, e) { +function yH(a, e) { return a + Math.random() * (e - a); } -function oH(a) { +function xH(a) { return a * (0.5 - Math.random()); } -function lH(a) { - a !== void 0 && (AO = a); - let e = AO += 1831565813; +function _H(a) { + a !== void 0 && (PO = a); + let e = PO += 1831565813; return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296; } -function uH(a) { - return a * NS; +function SH(a) { + return a * H_; } -function cH(a) { - return a * OM; +function wH(a) { + return a * UM; } -function h3(a) { +function m3(a) { return (a & a - 1) === 0 && a !== 0; } -function mF(a) { +function AF(a) { return Math.pow(2, Math.ceil(Math.log(a) / Math.LN2)); } -function TC(a) { +function CC(a) { return Math.pow(2, Math.floor(Math.log(a) / Math.LN2)); } -function fH(a, e, t, r, i) { - const o = Math.cos, l = Math.sin, d = o(t / 2), h = l(t / 2), m = o((e + r) / 2), S = l((e + r) / 2), _ = o((e - r) / 2), T = l((e - r) / 2), C = o((r - e) / 2), D = l((r - e) / 2); +function bH(a, e, t, r, i) { + const s = Math.cos, l = Math.sin, d = s(t / 2), p = l(t / 2), g = s((e + r) / 2), _ = l((e + r) / 2), w = s((e - r) / 2), T = l((e - r) / 2), R = s((r - e) / 2), D = l((r - e) / 2); switch (i) { case "XYX": - a.set(d * S, h * _, h * T, d * m); + a.set(d * _, p * w, p * T, d * g); break; case "YZY": - a.set(h * T, d * S, h * _, d * m); + a.set(p * T, d * _, p * w, d * g); break; case "ZXZ": - a.set(h * _, h * T, d * S, d * m); + a.set(p * w, p * T, d * _, d * g); break; case "XZX": - a.set(d * S, h * D, h * C, d * m); + a.set(d * _, p * D, p * R, d * g); break; case "YXY": - a.set(h * C, d * S, h * D, d * m); + a.set(p * R, d * _, p * D, d * g); break; case "ZYZ": - a.set(h * D, h * C, d * S, d * m); + a.set(p * D, p * R, d * _, d * g); break; default: console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: " + i); } } -function dH(a, e) { +function EH(a, e) { switch (e.constructor) { case Float32Array: return a; @@ -144,7 +144,7 @@ function dH(a, e) { throw new Error("Invalid component type."); } } -function hH(a, e) { +function MH(a, e) { switch (e.constructor) { case Float32Array: return a; @@ -160,36 +160,36 @@ function hH(a, e) { throw new Error("Invalid component type."); } } -var vF = /* @__PURE__ */ Object.freeze({ +var DF = /* @__PURE__ */ Object.freeze({ __proto__: null, - DEG2RAD: NS, - RAD2DEG: OM, - generateUUID: bm, - clamp: Qu, + DEG2RAD: H_, + RAD2DEG: UM, + generateUUID: Em, + clamp: Zu, euclideanModulo: X3, - mapLinear: $5, - inverseLerp: eH, - lerp: yM, - damp: tH, - pingpong: nH, - smoothstep: rH, - smootherstep: iH, - randInt: aH, - randFloat: sH, - randFloatSpread: oH, - seededRandom: lH, - degToRad: uH, - radToDeg: cH, - isPowerOfTwo: h3, - ceilPowerOfTwo: mF, - floorPowerOfTwo: TC, - setQuaternionFromProperEuler: fH, - normalize: hH, - denormalize: dH + mapLinear: fH, + inverseLerp: dH, + lerp: SM, + damp: hH, + pingpong: pH, + smoothstep: mH, + smootherstep: vH, + randInt: gH, + randFloat: yH, + randFloatSpread: xH, + seededRandom: _H, + degToRad: SH, + radToDeg: wH, + isPowerOfTwo: m3, + ceilPowerOfTwo: AF, + floorPowerOfTwo: CC, + setQuaternionFromProperEuler: bH, + normalize: MH, + denormalize: EH }); -class Ft { +class zt { constructor(e = 0, t = 0) { - Ft.prototype.isVector2 = !0, this.x = e, this.y = t; + zt.prototype.isVector2 = !0, this.x = e, this.y = t; } get width() { return this.x; @@ -365,8 +365,8 @@ class Ft { return this.x = e.getX(t), this.y = e.getY(t), this; } rotateAround(e, t) { - const r = Math.cos(t), i = Math.sin(t), o = this.x - e.x, l = this.y - e.y; - return this.x = o * r - l * i + e.x, this.y = o * i + l * r + e.y, this; + const r = Math.cos(t), i = Math.sin(t), s = this.x - e.x, l = this.y - e.y; + return this.x = s * r - l * i + e.x, this.y = s * i + l * r + e.y, this; } random() { return this.x = Math.random(), this.y = Math.random(), this; @@ -375,9 +375,9 @@ class Ft { yield this.x, yield this.y; } } -class jh { +class Xh { constructor() { - jh.prototype.isMatrix3 = !0, this.elements = [ + Xh.prototype.isMatrix3 = !0, this.elements = [ 1, 0, 0, @@ -389,9 +389,9 @@ class jh { 1 ]; } - set(e, t, r, i, o, l, d, h, m) { - const S = this.elements; - return S[0] = e, S[1] = i, S[2] = d, S[3] = t, S[4] = o, S[5] = h, S[6] = r, S[7] = l, S[8] = m, this; + set(e, t, r, i, s, l, d, p, g) { + const _ = this.elements; + return _[0] = e, _[1] = i, _[2] = d, _[3] = t, _[4] = s, _[5] = p, _[6] = r, _[7] = l, _[8] = g, this; } identity() { return this.set( @@ -434,23 +434,23 @@ class jh { return this.multiplyMatrices(e, this); } multiplyMatrices(e, t) { - const r = e.elements, i = t.elements, o = this.elements, l = r[0], d = r[3], h = r[6], m = r[1], S = r[4], _ = r[7], T = r[2], C = r[5], D = r[8], P = i[0], U = i[3], B = i[6], k = i[1], V = i[4], I = i[7], X = i[2], J = i[5], $ = i[8]; - return o[0] = l * P + d * k + h * X, o[3] = l * U + d * V + h * J, o[6] = l * B + d * I + h * $, o[1] = m * P + S * k + _ * X, o[4] = m * U + S * V + _ * J, o[7] = m * B + S * I + _ * $, o[2] = T * P + C * k + D * X, o[5] = T * U + C * V + D * J, o[8] = T * B + C * I + D * $, this; + const r = e.elements, i = t.elements, s = this.elements, l = r[0], d = r[3], p = r[6], g = r[1], _ = r[4], w = r[7], T = r[2], R = r[5], D = r[8], O = i[0], U = i[3], H = i[6], I = i[1], G = i[4], B = i[7], Q = i[2], K = i[5], te = i[8]; + return s[0] = l * O + d * I + p * Q, s[3] = l * U + d * G + p * K, s[6] = l * H + d * B + p * te, s[1] = g * O + _ * I + w * Q, s[4] = g * U + _ * G + w * K, s[7] = g * H + _ * B + w * te, s[2] = T * O + R * I + D * Q, s[5] = T * U + R * G + D * K, s[8] = T * H + R * B + D * te, this; } multiplyScalar(e) { const t = this.elements; return t[0] *= e, t[3] *= e, t[6] *= e, t[1] *= e, t[4] *= e, t[7] *= e, t[2] *= e, t[5] *= e, t[8] *= e, this; } determinant() { - const e = this.elements, t = e[0], r = e[1], i = e[2], o = e[3], l = e[4], d = e[5], h = e[6], m = e[7], S = e[8]; - return t * l * S - t * d * m - r * o * S + r * d * h + i * o * m - i * l * h; + const e = this.elements, t = e[0], r = e[1], i = e[2], s = e[3], l = e[4], d = e[5], p = e[6], g = e[7], _ = e[8]; + return t * l * _ - t * d * g - r * s * _ + r * d * p + i * s * g - i * l * p; } invert() { - const e = this.elements, t = e[0], r = e[1], i = e[2], o = e[3], l = e[4], d = e[5], h = e[6], m = e[7], S = e[8], _ = S * l - d * m, T = d * h - S * o, C = m * o - l * h, D = t * _ + r * T + i * C; + const e = this.elements, t = e[0], r = e[1], i = e[2], s = e[3], l = e[4], d = e[5], p = e[6], g = e[7], _ = e[8], w = _ * l - d * g, T = d * p - _ * s, R = g * s - l * p, D = t * w + r * T + i * R; if (D === 0) return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0); - const P = 1 / D; - return e[0] = _ * P, e[1] = (i * m - S * r) * P, e[2] = (d * r - i * l) * P, e[3] = T * P, e[4] = (S * t - i * h) * P, e[5] = (i * o - d * t) * P, e[6] = C * P, e[7] = (r * h - m * t) * P, e[8] = (l * t - r * o) * P, this; + const O = 1 / D; + return e[0] = w * O, e[1] = (i * g - _ * r) * O, e[2] = (d * r - i * l) * O, e[3] = T * O, e[4] = (_ * t - i * p) * O, e[5] = (i * s - d * t) * O, e[6] = R * O, e[7] = (r * p - g * t) * O, e[8] = (l * t - r * s) * O, this; } transpose() { let e; @@ -464,15 +464,15 @@ class jh { const t = this.elements; return e[0] = t[0], e[1] = t[3], e[2] = t[6], e[3] = t[1], e[4] = t[4], e[5] = t[7], e[6] = t[2], e[7] = t[5], e[8] = t[8], this; } - setUvTransform(e, t, r, i, o, l, d) { - const h = Math.cos(o), m = Math.sin(o); + setUvTransform(e, t, r, i, s, l, d) { + const p = Math.cos(s), g = Math.sin(s); return this.set( - r * h, - r * m, - -r * (h * l + m * d) + l + e, - -i * m, - i * h, - -i * (-m * l + h * d) + d + t, + r * p, + r * g, + -r * (p * l + g * d) + l + e, + -i * g, + i * p, + -i * (-g * l + p * d) + d + t, 0, 0, 1 @@ -483,8 +483,8 @@ class jh { return r[0] *= e, r[3] *= e, r[6] *= e, r[1] *= t, r[4] *= t, r[7] *= t, this; } rotate(e) { - const t = Math.cos(e), r = Math.sin(e), i = this.elements, o = i[0], l = i[3], d = i[6], h = i[1], m = i[4], S = i[7]; - return i[0] = t * o + r * h, i[3] = t * l + r * m, i[6] = t * d + r * S, i[1] = -r * o + t * h, i[4] = -r * l + t * m, i[7] = -r * d + t * S, this; + const t = Math.cos(e), r = Math.sin(e), i = this.elements, s = i[0], l = i[3], d = i[6], p = i[1], g = i[4], _ = i[7]; + return i[0] = t * s + r * p, i[3] = t * l + r * g, i[6] = t * d + r * _, i[1] = -r * s + t * p, i[4] = -r * l + t * g, i[7] = -r * d + t * _, this; } translate(e, t) { const r = this.elements; @@ -510,13 +510,13 @@ class jh { return new this.constructor().fromArray(this.elements); } } -function gF(a) { +function LF(a) { for (let e = a.length - 1; e >= 0; --e) if (a[e] > 65535) return !0; return !1; } -const pH = { +const TH = { Int8Array, Uint8Array, Uint8ClampedArray, @@ -527,22 +527,22 @@ const pH = { Float32Array, Float64Array }; -function Hb(a, e) { - return new pH[a](e); +function Gw(a, e) { + return new TH[a](e); } -function UM(a) { +function zM(a) { return document.createElementNS("http://www.w3.org/1999/xhtml", a); } -function FS(a) { +function V_(a) { return a < 0.04045 ? a * 0.0773993808 : Math.pow(a * 0.9478672986 + 0.0521327014, 2.4); } function mC(a) { return a < 31308e-7 ? a * 12.92 : 1.055 * Math.pow(a, 0.41666) - 0.055; } -const wA = { - [oy]: { [Jx]: FS }, - [Jx]: { [oy]: mC } -}, vv = { +const EA = { + [uy]: { [Jx]: V_ }, + [Jx]: { [uy]: mC } +}, xv = { legacyMode: !0, get workingColorSpace() { return Jx; @@ -553,8 +553,8 @@ const wA = { convert: function(a, e, t) { if (this.legacyMode || e === t || !e || !t) return a; - if (wA[e] && wA[e][t] !== void 0) { - const r = wA[e][t]; + if (EA[e] && EA[e][t] !== void 0) { + const r = EA[e][t]; return a.r = r(a.r), a.g = r(a.g), a.b = r(a.b), a; } throw new Error("Unsupported color space conversion."); @@ -565,7 +565,7 @@ const wA = { toWorkingColorSpace: function(a, e) { return this.convert(a, e, this.workingColorSpace); } -}, yF = { +}, PF = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, @@ -714,14 +714,14 @@ const wA = { whitesmoke: 16119285, yellow: 16776960, yellowgreen: 10145074 -}, lf = { r: 0, g: 0, b: 0 }, Kv = { h: 0, s: 0, l: 0 }, o2 = { h: 0, s: 0, l: 0 }; -function EA(a, e, t) { +}, uf = { r: 0, g: 0, b: 0 }, tg = { h: 0, s: 0, l: 0 }, o2 = { h: 0, s: 0, l: 0 }; +function MA(a, e, t) { return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? a + (e - a) * 6 * t : t < 1 / 2 ? e : t < 2 / 3 ? a + (e - a) * 6 * (2 / 3 - t) : a; } function l2(a, e) { return e.r = a.r, e.g = a.g, e.b = a.b, e; } -class Pn { +class Un { constructor(e, t, r) { return this.isColor = !0, this.r = 1, this.g = 1, this.b = 1, t === void 0 && r === void 0 ? this.set(e) : this.setRGB(e, t, r); } @@ -731,56 +731,56 @@ class Pn { setScalar(e) { return this.r = e, this.g = e, this.b = e, this; } - setHex(e, t = oy) { - return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255, vv.toWorkingColorSpace(this, t), this; + setHex(e, t = uy) { + return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255, xv.toWorkingColorSpace(this, t), this; } setRGB(e, t, r, i = Jx) { - return this.r = e, this.g = t, this.b = r, vv.toWorkingColorSpace(this, i), this; + return this.r = e, this.g = t, this.b = r, xv.toWorkingColorSpace(this, i), this; } setHSL(e, t, r, i = Jx) { - if (e = X3(e, 1), t = Qu(t, 0, 1), r = Qu(r, 0, 1), t === 0) + if (e = X3(e, 1), t = Zu(t, 0, 1), r = Zu(r, 0, 1), t === 0) this.r = this.g = this.b = r; else { - const o = r <= 0.5 ? r * (1 + t) : r + t - r * t, l = 2 * r - o; - this.r = EA(l, o, e + 1 / 3), this.g = EA(l, o, e), this.b = EA(l, o, e - 1 / 3); + const s = r <= 0.5 ? r * (1 + t) : r + t - r * t, l = 2 * r - s; + this.r = MA(l, s, e + 1 / 3), this.g = MA(l, s, e), this.b = MA(l, s, e - 1 / 3); } - return vv.toWorkingColorSpace(this, i), this; + return xv.toWorkingColorSpace(this, i), this; } - setStyle(e, t = oy) { - function r(o) { - o !== void 0 && parseFloat(o) < 1 && console.warn("THREE.Color: Alpha component of " + e + " will be ignored."); + setStyle(e, t = uy) { + function r(s) { + s !== void 0 && parseFloat(s) < 1 && console.warn("THREE.Color: Alpha component of " + e + " will be ignored."); } let i; if (i = /^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(e)) { - let o; + let s; const l = i[1], d = i[2]; switch (l) { case "rgb": case "rgba": - if (o = /^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(d)) - return this.r = Math.min(255, parseInt(o[1], 10)) / 255, this.g = Math.min(255, parseInt(o[2], 10)) / 255, this.b = Math.min(255, parseInt(o[3], 10)) / 255, vv.toWorkingColorSpace(this, t), r(o[4]), this; - if (o = /^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(d)) - return this.r = Math.min(100, parseInt(o[1], 10)) / 100, this.g = Math.min(100, parseInt(o[2], 10)) / 100, this.b = Math.min(100, parseInt(o[3], 10)) / 100, vv.toWorkingColorSpace(this, t), r(o[4]), this; + if (s = /^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(d)) + return this.r = Math.min(255, parseInt(s[1], 10)) / 255, this.g = Math.min(255, parseInt(s[2], 10)) / 255, this.b = Math.min(255, parseInt(s[3], 10)) / 255, xv.toWorkingColorSpace(this, t), r(s[4]), this; + if (s = /^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(d)) + return this.r = Math.min(100, parseInt(s[1], 10)) / 100, this.g = Math.min(100, parseInt(s[2], 10)) / 100, this.b = Math.min(100, parseInt(s[3], 10)) / 100, xv.toWorkingColorSpace(this, t), r(s[4]), this; break; case "hsl": case "hsla": - if (o = /^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(d)) { - const h = parseFloat(o[1]) / 360, m = parseInt(o[2], 10) / 100, S = parseInt(o[3], 10) / 100; - return r(o[4]), this.setHSL(h, m, S, t); + if (s = /^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(d)) { + const p = parseFloat(s[1]) / 360, g = parseInt(s[2], 10) / 100, _ = parseInt(s[3], 10) / 100; + return r(s[4]), this.setHSL(p, g, _, t); } break; } } else if (i = /^\#([A-Fa-f\d]+)$/.exec(e)) { - const o = i[1], l = o.length; + const s = i[1], l = s.length; if (l === 3) - return this.r = parseInt(o.charAt(0) + o.charAt(0), 16) / 255, this.g = parseInt(o.charAt(1) + o.charAt(1), 16) / 255, this.b = parseInt(o.charAt(2) + o.charAt(2), 16) / 255, vv.toWorkingColorSpace(this, t), this; + return this.r = parseInt(s.charAt(0) + s.charAt(0), 16) / 255, this.g = parseInt(s.charAt(1) + s.charAt(1), 16) / 255, this.b = parseInt(s.charAt(2) + s.charAt(2), 16) / 255, xv.toWorkingColorSpace(this, t), this; if (l === 6) - return this.r = parseInt(o.charAt(0) + o.charAt(1), 16) / 255, this.g = parseInt(o.charAt(2) + o.charAt(3), 16) / 255, this.b = parseInt(o.charAt(4) + o.charAt(5), 16) / 255, vv.toWorkingColorSpace(this, t), this; + return this.r = parseInt(s.charAt(0) + s.charAt(1), 16) / 255, this.g = parseInt(s.charAt(2) + s.charAt(3), 16) / 255, this.b = parseInt(s.charAt(4) + s.charAt(5), 16) / 255, xv.toWorkingColorSpace(this, t), this; } return e && e.length > 0 ? this.setColorName(e, t) : this; } - setColorName(e, t = oy) { - const r = yF[e.toLowerCase()]; + setColorName(e, t = uy) { + const r = PF[e.toLowerCase()]; return r !== void 0 ? this.setHex(r, t) : console.warn("THREE.Color: Unknown color " + e), this; } clone() { @@ -790,7 +790,7 @@ class Pn { return this.r = e.r, this.g = e.g, this.b = e.b, this; } copySRGBToLinear(e) { - return this.r = FS(e.r), this.g = FS(e.g), this.b = FS(e.b), this; + return this.r = V_(e.r), this.g = V_(e.g), this.b = V_(e.b), this; } copyLinearToSRGB(e) { return this.r = mC(e.r), this.g = mC(e.g), this.b = mC(e.b), this; @@ -801,44 +801,44 @@ class Pn { convertLinearToSRGB() { return this.copyLinearToSRGB(this), this; } - getHex(e = oy) { - return vv.fromWorkingColorSpace(l2(this, lf), e), Qu(lf.r * 255, 0, 255) << 16 ^ Qu(lf.g * 255, 0, 255) << 8 ^ Qu(lf.b * 255, 0, 255) << 0; + getHex(e = uy) { + return xv.fromWorkingColorSpace(l2(this, uf), e), Zu(uf.r * 255, 0, 255) << 16 ^ Zu(uf.g * 255, 0, 255) << 8 ^ Zu(uf.b * 255, 0, 255) << 0; } - getHexString(e = oy) { + getHexString(e = uy) { return ("000000" + this.getHex(e).toString(16)).slice(-6); } getHSL(e, t = Jx) { - vv.fromWorkingColorSpace(l2(this, lf), t); - const r = lf.r, i = lf.g, o = lf.b, l = Math.max(r, i, o), d = Math.min(r, i, o); - let h, m; - const S = (d + l) / 2; + xv.fromWorkingColorSpace(l2(this, uf), t); + const r = uf.r, i = uf.g, s = uf.b, l = Math.max(r, i, s), d = Math.min(r, i, s); + let p, g; + const _ = (d + l) / 2; if (d === l) - h = 0, m = 0; + p = 0, g = 0; else { - const _ = l - d; - switch (m = S <= 0.5 ? _ / (l + d) : _ / (2 - l - d), l) { + const w = l - d; + switch (g = _ <= 0.5 ? w / (l + d) : w / (2 - l - d), l) { case r: - h = (i - o) / _ + (i < o ? 6 : 0); + p = (i - s) / w + (i < s ? 6 : 0); break; case i: - h = (o - r) / _ + 2; + p = (s - r) / w + 2; break; - case o: - h = (r - i) / _ + 4; + case s: + p = (r - i) / w + 4; break; } - h /= 6; + p /= 6; } - return e.h = h, e.s = m, e.l = S, e; + return e.h = p, e.s = g, e.l = _, e; } getRGB(e, t = Jx) { - return vv.fromWorkingColorSpace(l2(this, lf), t), e.r = lf.r, e.g = lf.g, e.b = lf.b, e; + return xv.fromWorkingColorSpace(l2(this, uf), t), e.r = uf.r, e.g = uf.g, e.b = uf.b, e; } - getStyle(e = oy) { - return vv.fromWorkingColorSpace(l2(this, lf), e), e !== oy ? `color(${e} ${lf.r} ${lf.g} ${lf.b})` : `rgb(${lf.r * 255 | 0},${lf.g * 255 | 0},${lf.b * 255 | 0})`; + getStyle(e = uy) { + return xv.fromWorkingColorSpace(l2(this, uf), e), e !== uy ? `color(${e} ${uf.r} ${uf.g} ${uf.b})` : `rgb(${uf.r * 255 | 0},${uf.g * 255 | 0},${uf.b * 255 | 0})`; } offsetHSL(e, t, r) { - return this.getHSL(Kv), Kv.h += e, Kv.s += t, Kv.l += r, this.setHSL(Kv.h, Kv.s, Kv.l), this; + return this.getHSL(tg), tg.h += e, tg.s += t, tg.l += r, this.setHSL(tg.h, tg.s, tg.l), this; } add(e) { return this.r += e.r, this.g += e.g, this.b += e.b, this; @@ -865,9 +865,9 @@ class Pn { return this.r = e.r + (t.r - e.r) * r, this.g = e.g + (t.g - e.g) * r, this.b = e.b + (t.b - e.b) * r, this; } lerpHSL(e, t) { - this.getHSL(Kv), e.getHSL(o2); - const r = yM(Kv.h, o2.h, t), i = yM(Kv.s, o2.s, t), o = yM(Kv.l, o2.l, t); - return this.setHSL(r, i, o), this; + this.getHSL(tg), e.getHSL(o2); + const r = SM(tg.h, o2.h, t), i = SM(tg.s, o2.s, t), s = SM(tg.l, o2.l, t); + return this.setHSL(r, i, s), this; } equals(e) { return e.r === this.r && e.g === this.g && e.b === this.b; @@ -888,8 +888,8 @@ class Pn { yield this.r, yield this.g, yield this.b; } } -Pn.NAMES = yF; -let vb; +Un.NAMES = PF; +let Sw; class q3 { static getDataURL(e) { if (/^data:/i.test(e.src) || typeof HTMLCanvasElement > "u") @@ -898,26 +898,26 @@ class q3 { if (e instanceof HTMLCanvasElement) t = e; else { - vb === void 0 && (vb = UM("canvas")), vb.width = e.width, vb.height = e.height; - const r = vb.getContext("2d"); - e instanceof ImageData ? r.putImageData(e, 0, 0) : r.drawImage(e, 0, 0, e.width, e.height), t = vb; + Sw === void 0 && (Sw = zM("canvas")), Sw.width = e.width, Sw.height = e.height; + const r = Sw.getContext("2d"); + e instanceof ImageData ? r.putImageData(e, 0, 0) : r.drawImage(e, 0, 0, e.width, e.height), t = Sw; } return t.width > 2048 || t.height > 2048 ? (console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons", e), t.toDataURL("image/jpeg", 0.6)) : t.toDataURL("image/png"); } static sRGBToLinear(e) { if (typeof HTMLImageElement < "u" && e instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && e instanceof ImageBitmap) { - const t = UM("canvas"); + const t = zM("canvas"); t.width = e.width, t.height = e.height; const r = t.getContext("2d"); r.drawImage(e, 0, 0, e.width, e.height); - const i = r.getImageData(0, 0, e.width, e.height), o = i.data; - for (let l = 0; l < o.length; l++) - o[l] = FS(o[l] / 255) * 255; + const i = r.getImageData(0, 0, e.width, e.height), s = i.data; + for (let l = 0; l < s.length; l++) + s[l] = V_(s[l] / 255) * 255; return r.putImageData(i, 0, 0), t; } else if (e.data) { const t = e.data.slice(0); for (let r = 0; r < t.length; r++) - t instanceof Uint8Array || t instanceof Uint8ClampedArray ? t[r] = Math.floor(FS(t[r] / 255) * 255) : t[r] = FS(t[r]); + t instanceof Uint8Array || t instanceof Uint8ClampedArray ? t[r] = Math.floor(V_(t[r] / 255) * 255) : t[r] = V_(t[r]); return { data: t, width: e.width, @@ -927,9 +927,9 @@ class q3 { return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."), e; } } -class OS { +class F_ { constructor(e = null) { - this.isSource = !0, this.uuid = bm(), this.data = e, this.version = 0; + this.isSource = !0, this.uuid = Em(), this.data = e, this.version = 0; } set needsUpdate(e) { e === !0 && this.version++; @@ -943,19 +943,19 @@ class OS { url: "" }, i = this.data; if (i !== null) { - let o; + let s; if (Array.isArray(i)) { - o = []; + s = []; for (let l = 0, d = i.length; l < d; l++) - i[l].isDataTexture ? o.push(MA(i[l].image)) : o.push(MA(i[l])); + i[l].isDataTexture ? s.push(TA(i[l].image)) : s.push(TA(i[l])); } else - o = MA(i); - r.url = o; + s = TA(i); + r.url = s; } return t || (e.images[this.uuid] = r), r; } } -function MA(a) { +function TA(a) { return typeof HTMLImageElement < "u" && a instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && a instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && a instanceof ImageBitmap ? q3.getDataURL(a) : a.data ? { data: Array.from(a.data), width: a.width, @@ -963,10 +963,10 @@ function MA(a) { type: a.data.constructor.name } : (console.warn("THREE.Texture: Unable to serialize Texture."), {}); } -let mH = 0; -class iu extends Mm { - constructor(e = iu.DEFAULT_IMAGE, t = iu.DEFAULT_MAPPING, r = Wh, i = Wh, o = Oo, l = s1, d = Sm, h = Gf, m = 1, S = yv) { - super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: mH++ }), this.uuid = bm(), this.name = "", this.source = new OS(e), this.mipmaps = [], this.mapping = t, this.wrapS = r, this.wrapT = i, this.magFilter = o, this.minFilter = l, this.anisotropy = m, this.format = d, this.internalFormat = null, this.type = h, this.offset = new Ft(0, 0), this.repeat = new Ft(1, 1), this.center = new Ft(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new jh(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.encoding = S, this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1; +let CH = 0; +class su extends Cm { + constructor(e = su.DEFAULT_IMAGE, t = su.DEFAULT_MAPPING, r = jh, i = jh, s = Oo, l = s1, d = zp, p = df, g = 1, _ = wv) { + super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: CH++ }), this.uuid = Em(), this.name = "", this.source = new F_(e), this.mipmaps = [], this.mapping = t, this.wrapS = r, this.wrapT = i, this.magFilter = s, this.minFilter = l, this.anisotropy = g, this.format = d, this.internalFormat = null, this.type = p, this.offset = new zt(0, 0), this.repeat = new zt(1, 1), this.center = new zt(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Xh(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.encoding = _, this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1; } get image() { return this.source.data; @@ -1018,29 +1018,29 @@ class iu extends Mm { this.dispatchEvent({ type: "dispose" }); } transformUv(e) { - if (this.mapping !== NC) + if (this.mapping !== FC) return e; if (e.applyMatrix3(this.matrix), e.x < 0 || e.x > 1) switch (this.wrapS) { - case Zb: + case Zw: e.x = e.x - Math.floor(e.x); break; - case Wh: + case jh: e.x = e.x < 0 ? 0 : 1; break; - case RM: + case AM: Math.abs(Math.floor(e.x) % 2) === 1 ? e.x = Math.ceil(e.x) - e.x : e.x = e.x - Math.floor(e.x); break; } if (e.y < 0 || e.y > 1) switch (this.wrapT) { - case Zb: + case Zw: e.y = e.y - Math.floor(e.y); break; - case Wh: + case jh: e.y = e.y < 0 ? 0 : 1; break; - case RM: + case AM: Math.abs(Math.floor(e.y) % 2) === 1 ? e.y = Math.ceil(e.y) - e.y : e.y = e.y - Math.floor(e.y); break; } @@ -1050,11 +1050,11 @@ class iu extends Mm { e === !0 && (this.version++, this.source.needsUpdate = !0); } } -iu.DEFAULT_IMAGE = null; -iu.DEFAULT_MAPPING = NC; -class la { +su.DEFAULT_IMAGE = null; +su.DEFAULT_MAPPING = FC; +class ra { constructor(e = 0, t = 0, r = 0, i = 1) { - la.prototype.isVector4 = !0, this.x = e, this.y = t, this.z = r, this.w = i; + ra.prototype.isVector4 = !0, this.x = e, this.y = t, this.z = r, this.w = i; } get width() { return this.z; @@ -1153,8 +1153,8 @@ class la { return this.x *= e, this.y *= e, this.z *= e, this.w *= e, this; } applyMatrix4(e) { - const t = this.x, r = this.y, i = this.z, o = this.w, l = e.elements; - return this.x = l[0] * t + l[4] * r + l[8] * i + l[12] * o, this.y = l[1] * t + l[5] * r + l[9] * i + l[13] * o, this.z = l[2] * t + l[6] * r + l[10] * i + l[14] * o, this.w = l[3] * t + l[7] * r + l[11] * i + l[15] * o, this; + const t = this.x, r = this.y, i = this.z, s = this.w, l = e.elements; + return this.x = l[0] * t + l[4] * r + l[8] * i + l[12] * s, this.y = l[1] * t + l[5] * r + l[9] * i + l[13] * s, this.z = l[2] * t + l[6] * r + l[10] * i + l[14] * s, this.w = l[3] * t + l[7] * r + l[11] * i + l[15] * s, this; } divideScalar(e) { return this.multiplyScalar(1 / e); @@ -1165,17 +1165,17 @@ class la { return t < 1e-4 ? (this.x = 1, this.y = 0, this.z = 0) : (this.x = e.x / t, this.y = e.y / t, this.z = e.z / t), this; } setAxisAngleFromRotationMatrix(e) { - let t, r, i, o; - const h = e.elements, m = h[0], S = h[4], _ = h[8], T = h[1], C = h[5], D = h[9], P = h[2], U = h[6], B = h[10]; - if (Math.abs(S - T) < 0.01 && Math.abs(_ - P) < 0.01 && Math.abs(D - U) < 0.01) { - if (Math.abs(S + T) < 0.1 && Math.abs(_ + P) < 0.1 && Math.abs(D + U) < 0.1 && Math.abs(m + C + B - 3) < 0.1) + let t, r, i, s; + const p = e.elements, g = p[0], _ = p[4], w = p[8], T = p[1], R = p[5], D = p[9], O = p[2], U = p[6], H = p[10]; + if (Math.abs(_ - T) < 0.01 && Math.abs(w - O) < 0.01 && Math.abs(D - U) < 0.01) { + if (Math.abs(_ + T) < 0.1 && Math.abs(w + O) < 0.1 && Math.abs(D + U) < 0.1 && Math.abs(g + R + H - 3) < 0.1) return this.set(1, 0, 0, 0), this; t = Math.PI; - const V = (m + 1) / 2, I = (C + 1) / 2, X = (B + 1) / 2, J = (S + T) / 4, $ = (_ + P) / 4, W = (D + U) / 4; - return V > I && V > X ? V < 0.01 ? (r = 0, i = 0.707106781, o = 0.707106781) : (r = Math.sqrt(V), i = J / r, o = $ / r) : I > X ? I < 0.01 ? (r = 0.707106781, i = 0, o = 0.707106781) : (i = Math.sqrt(I), r = J / i, o = W / i) : X < 0.01 ? (r = 0.707106781, i = 0.707106781, o = 0) : (o = Math.sqrt(X), r = $ / o, i = W / o), this.set(r, i, o, t), this; + const G = (g + 1) / 2, B = (R + 1) / 2, Q = (H + 1) / 2, K = (_ + T) / 4, te = (w + O) / 4, Y = (D + U) / 4; + return G > B && G > Q ? G < 0.01 ? (r = 0, i = 0.707106781, s = 0.707106781) : (r = Math.sqrt(G), i = K / r, s = te / r) : B > Q ? B < 0.01 ? (r = 0.707106781, i = 0, s = 0.707106781) : (i = Math.sqrt(B), r = K / i, s = Y / i) : Q < 0.01 ? (r = 0.707106781, i = 0.707106781, s = 0) : (s = Math.sqrt(Q), r = te / s, i = Y / s), this.set(r, i, s, t), this; } - let k = Math.sqrt((U - D) * (U - D) + (_ - P) * (_ - P) + (T - S) * (T - S)); - return Math.abs(k) < 1e-3 && (k = 1), this.x = (U - D) / k, this.y = (_ - P) / k, this.z = (T - S) / k, this.w = Math.acos((m + C + B - 1) / 2), this; + let I = Math.sqrt((U - D) * (U - D) + (w - O) * (w - O) + (T - _) * (T - _)); + return Math.abs(I) < 1e-3 && (I = 1), this.x = (U - D) / I, this.y = (w - O) / I, this.z = (T - _) / I, this.w = Math.acos((g + R + H - 1) / 2), this; } min(e) { return this.x = Math.min(this.x, e.x), this.y = Math.min(this.y, e.y), this.z = Math.min(this.z, e.z), this.w = Math.min(this.w, e.w), this; @@ -1251,11 +1251,11 @@ class la { yield this.x, yield this.y, yield this.z, yield this.w; } } -class po extends Mm { +class po extends Cm { constructor(e, t, r = {}) { - super(), this.isWebGLRenderTarget = !0, this.width = e, this.height = t, this.depth = 1, this.scissor = new la(0, 0, e, t), this.scissorTest = !1, this.viewport = new la(0, 0, e, t); + super(), this.isWebGLRenderTarget = !0, this.width = e, this.height = t, this.depth = 1, this.scissor = new ra(0, 0, e, t), this.scissorTest = !1, this.viewport = new ra(0, 0, e, t); const i = { width: e, height: t, depth: 1 }; - this.texture = new iu(i, r.mapping, r.wrapS, r.wrapT, r.magFilter, r.minFilter, r.format, r.type, r.anisotropy, r.encoding), this.texture.isRenderTargetTexture = !0, this.texture.flipY = !1, this.texture.generateMipmaps = r.generateMipmaps !== void 0 ? r.generateMipmaps : !1, this.texture.internalFormat = r.internalFormat !== void 0 ? r.internalFormat : null, this.texture.minFilter = r.minFilter !== void 0 ? r.minFilter : Oo, this.depthBuffer = r.depthBuffer !== void 0 ? r.depthBuffer : !0, this.stencilBuffer = r.stencilBuffer !== void 0 ? r.stencilBuffer : !1, this.depthTexture = r.depthTexture !== void 0 ? r.depthTexture : null, this.samples = r.samples !== void 0 ? r.samples : 0; + this.texture = new su(i, r.mapping, r.wrapS, r.wrapT, r.magFilter, r.minFilter, r.format, r.type, r.anisotropy, r.encoding), this.texture.isRenderTargetTexture = !0, this.texture.flipY = !1, this.texture.generateMipmaps = r.generateMipmaps !== void 0 ? r.generateMipmaps : !1, this.texture.internalFormat = r.internalFormat !== void 0 ? r.internalFormat : null, this.texture.minFilter = r.minFilter !== void 0 ? r.minFilter : Oo, this.depthBuffer = r.depthBuffer !== void 0 ? r.depthBuffer : !0, this.stencilBuffer = r.stencilBuffer !== void 0 ? r.stencilBuffer : !1, this.depthTexture = r.depthTexture !== void 0 ? r.depthTexture : null, this.samples = r.samples !== void 0 ? r.samples : 0; } setSize(e, t, r = 1) { (this.width !== e || this.height !== t || this.depth !== r) && (this.width = e, this.height = t, this.depth = r, this.texture.image.width = e, this.texture.image.height = t, this.texture.image.depth = r, this.dispose()), this.viewport.set(0, 0, e, t), this.scissor.set(0, 0, e, t); @@ -1266,44 +1266,44 @@ class po extends Mm { copy(e) { this.width = e.width, this.height = e.height, this.depth = e.depth, this.viewport.copy(e.viewport), this.texture = e.texture.clone(), this.texture.isRenderTargetTexture = !0; const t = Object.assign({}, e.texture.image); - return this.texture.source = new OS(t), this.depthBuffer = e.depthBuffer, this.stencilBuffer = e.stencilBuffer, e.depthTexture !== null && (this.depthTexture = e.depthTexture.clone()), this.samples = e.samples, this; + return this.texture.source = new F_(t), this.depthBuffer = e.depthBuffer, this.stencilBuffer = e.stencilBuffer, e.depthTexture !== null && (this.depthTexture = e.depthTexture.clone()), this.samples = e.samples, this; } dispose() { this.dispatchEvent({ type: "dispose" }); } } -class JM extends iu { +class JM extends su { constructor(e = null, t = 1, r = 1, i = 1) { - super(null), this.isDataArrayTexture = !0, this.image = { data: e, width: t, height: r, depth: i }, this.magFilter = fo, this.minFilter = fo, this.wrapR = Wh, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1; + super(null), this.isDataArrayTexture = !0, this.image = { data: e, width: t, height: r, depth: i }, this.magFilter = fo, this.minFilter = fo, this.wrapR = jh, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1; } } -class vH extends po { +class RH extends po { constructor(e, t, r) { super(e, t), this.isWebGLArrayRenderTarget = !0, this.depth = r, this.texture = new JM(null, e, t, r), this.texture.isRenderTargetTexture = !0; } } -class kC extends iu { +class IC extends su { constructor(e = null, t = 1, r = 1, i = 1) { - super(null), this.isData3DTexture = !0, this.image = { data: e, width: t, height: r, depth: i }, this.magFilter = fo, this.minFilter = fo, this.wrapR = Wh, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1; + super(null), this.isData3DTexture = !0, this.image = { data: e, width: t, height: r, depth: i }, this.magFilter = fo, this.minFilter = fo, this.wrapR = jh, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1; } } -class gH extends po { +class AH extends po { constructor(e, t, r) { - super(e, t), this.isWebGL3DRenderTarget = !0, this.depth = r, this.texture = new kC(null, e, t, r), this.texture.isRenderTargetTexture = !0; + super(e, t), this.isWebGL3DRenderTarget = !0, this.depth = r, this.texture = new IC(null, e, t, r), this.texture.isRenderTargetTexture = !0; } } -class yH extends po { +class DH extends po { constructor(e, t, r, i = {}) { super(e, t, i), this.isWebGLMultipleRenderTargets = !0; - const o = this.texture; + const s = this.texture; this.texture = []; for (let l = 0; l < r; l++) - this.texture[l] = o.clone(), this.texture[l].isRenderTargetTexture = !0; + this.texture[l] = s.clone(), this.texture[l].isRenderTargetTexture = !0; } setSize(e, t, r = 1) { if (this.width !== e || this.height !== t || this.depth !== r) { this.width = e, this.height = t, this.depth = r; - for (let i = 0, o = this.texture.length; i < o; i++) + for (let i = 0, s = this.texture.length; i < s; i++) this.texture[i].image.width = e, this.texture[i].image.height = t, this.texture[i].image.depth = r; this.dispose(); } @@ -1320,35 +1320,35 @@ class Po { constructor(e = 0, t = 0, r = 0, i = 1) { this.isQuaternion = !0, this._x = e, this._y = t, this._z = r, this._w = i; } - static slerpFlat(e, t, r, i, o, l, d) { - let h = r[i + 0], m = r[i + 1], S = r[i + 2], _ = r[i + 3]; - const T = o[l + 0], C = o[l + 1], D = o[l + 2], P = o[l + 3]; + static slerpFlat(e, t, r, i, s, l, d) { + let p = r[i + 0], g = r[i + 1], _ = r[i + 2], w = r[i + 3]; + const T = s[l + 0], R = s[l + 1], D = s[l + 2], O = s[l + 3]; if (d === 0) { - e[t + 0] = h, e[t + 1] = m, e[t + 2] = S, e[t + 3] = _; + e[t + 0] = p, e[t + 1] = g, e[t + 2] = _, e[t + 3] = w; return; } if (d === 1) { - e[t + 0] = T, e[t + 1] = C, e[t + 2] = D, e[t + 3] = P; + e[t + 0] = T, e[t + 1] = R, e[t + 2] = D, e[t + 3] = O; return; } - if (_ !== P || h !== T || m !== C || S !== D) { + if (w !== O || p !== T || g !== R || _ !== D) { let U = 1 - d; - const B = h * T + m * C + S * D + _ * P, k = B >= 0 ? 1 : -1, V = 1 - B * B; - if (V > Number.EPSILON) { - const X = Math.sqrt(V), J = Math.atan2(X, B * k); - U = Math.sin(U * J) / X, d = Math.sin(d * J) / X; + const H = p * T + g * R + _ * D + w * O, I = H >= 0 ? 1 : -1, G = 1 - H * H; + if (G > Number.EPSILON) { + const Q = Math.sqrt(G), K = Math.atan2(Q, H * I); + U = Math.sin(U * K) / Q, d = Math.sin(d * K) / Q; } - const I = d * k; - if (h = h * U + T * I, m = m * U + C * I, S = S * U + D * I, _ = _ * U + P * I, U === 1 - d) { - const X = 1 / Math.sqrt(h * h + m * m + S * S + _ * _); - h *= X, m *= X, S *= X, _ *= X; + const B = d * I; + if (p = p * U + T * B, g = g * U + R * B, _ = _ * U + D * B, w = w * U + O * B, U === 1 - d) { + const Q = 1 / Math.sqrt(p * p + g * g + _ * _ + w * w); + p *= Q, g *= Q, _ *= Q, w *= Q; } } - e[t] = h, e[t + 1] = m, e[t + 2] = S, e[t + 3] = _; + e[t] = p, e[t + 1] = g, e[t + 2] = _, e[t + 3] = w; } - static multiplyQuaternionsFlat(e, t, r, i, o, l) { - const d = r[i], h = r[i + 1], m = r[i + 2], S = r[i + 3], _ = o[l], T = o[l + 1], C = o[l + 2], D = o[l + 3]; - return e[t] = d * D + S * _ + h * C - m * T, e[t + 1] = h * D + S * T + m * _ - d * C, e[t + 2] = m * D + S * C + d * T - h * _, e[t + 3] = S * D - d * _ - h * T - m * C, e; + static multiplyQuaternionsFlat(e, t, r, i, s, l) { + const d = r[i], p = r[i + 1], g = r[i + 2], _ = r[i + 3], w = s[l], T = s[l + 1], R = s[l + 2], D = s[l + 3]; + return e[t] = d * D + _ * w + p * R - g * T, e[t + 1] = p * D + _ * T + g * w - d * R, e[t + 2] = g * D + _ * R + d * T - p * w, e[t + 3] = _ * D - d * w - p * T - g * R, e; } get x() { return this._x; @@ -1386,25 +1386,25 @@ class Po { setFromEuler(e, t) { if (!(e && e.isEuler)) throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order."); - const r = e._x, i = e._y, o = e._z, l = e._order, d = Math.cos, h = Math.sin, m = d(r / 2), S = d(i / 2), _ = d(o / 2), T = h(r / 2), C = h(i / 2), D = h(o / 2); + const r = e._x, i = e._y, s = e._z, l = e._order, d = Math.cos, p = Math.sin, g = d(r / 2), _ = d(i / 2), w = d(s / 2), T = p(r / 2), R = p(i / 2), D = p(s / 2); switch (l) { case "XYZ": - this._x = T * S * _ + m * C * D, this._y = m * C * _ - T * S * D, this._z = m * S * D + T * C * _, this._w = m * S * _ - T * C * D; + this._x = T * _ * w + g * R * D, this._y = g * R * w - T * _ * D, this._z = g * _ * D + T * R * w, this._w = g * _ * w - T * R * D; break; case "YXZ": - this._x = T * S * _ + m * C * D, this._y = m * C * _ - T * S * D, this._z = m * S * D - T * C * _, this._w = m * S * _ + T * C * D; + this._x = T * _ * w + g * R * D, this._y = g * R * w - T * _ * D, this._z = g * _ * D - T * R * w, this._w = g * _ * w + T * R * D; break; case "ZXY": - this._x = T * S * _ - m * C * D, this._y = m * C * _ + T * S * D, this._z = m * S * D + T * C * _, this._w = m * S * _ - T * C * D; + this._x = T * _ * w - g * R * D, this._y = g * R * w + T * _ * D, this._z = g * _ * D + T * R * w, this._w = g * _ * w - T * R * D; break; case "ZYX": - this._x = T * S * _ - m * C * D, this._y = m * C * _ + T * S * D, this._z = m * S * D - T * C * _, this._w = m * S * _ + T * C * D; + this._x = T * _ * w - g * R * D, this._y = g * R * w + T * _ * D, this._z = g * _ * D - T * R * w, this._w = g * _ * w + T * R * D; break; case "YZX": - this._x = T * S * _ + m * C * D, this._y = m * C * _ + T * S * D, this._z = m * S * D - T * C * _, this._w = m * S * _ - T * C * D; + this._x = T * _ * w + g * R * D, this._y = g * R * w + T * _ * D, this._z = g * _ * D - T * R * w, this._w = g * _ * w - T * R * D; break; case "XZY": - this._x = T * S * _ - m * C * D, this._y = m * C * _ - T * S * D, this._z = m * S * D + T * C * _, this._w = m * S * _ + T * C * D; + this._x = T * _ * w - g * R * D, this._y = g * R * w - T * _ * D, this._z = g * _ * D + T * R * w, this._w = g * _ * w + T * R * D; break; default: console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: " + l); @@ -1416,19 +1416,19 @@ class Po { return this._x = e.x * i, this._y = e.y * i, this._z = e.z * i, this._w = Math.cos(r), this._onChangeCallback(), this; } setFromRotationMatrix(e) { - const t = e.elements, r = t[0], i = t[4], o = t[8], l = t[1], d = t[5], h = t[9], m = t[2], S = t[6], _ = t[10], T = r + d + _; + const t = e.elements, r = t[0], i = t[4], s = t[8], l = t[1], d = t[5], p = t[9], g = t[2], _ = t[6], w = t[10], T = r + d + w; if (T > 0) { - const C = 0.5 / Math.sqrt(T + 1); - this._w = 0.25 / C, this._x = (S - h) * C, this._y = (o - m) * C, this._z = (l - i) * C; - } else if (r > d && r > _) { - const C = 2 * Math.sqrt(1 + r - d - _); - this._w = (S - h) / C, this._x = 0.25 * C, this._y = (i + l) / C, this._z = (o + m) / C; - } else if (d > _) { - const C = 2 * Math.sqrt(1 + d - r - _); - this._w = (o - m) / C, this._x = (i + l) / C, this._y = 0.25 * C, this._z = (h + S) / C; + const R = 0.5 / Math.sqrt(T + 1); + this._w = 0.25 / R, this._x = (_ - p) * R, this._y = (s - g) * R, this._z = (l - i) * R; + } else if (r > d && r > w) { + const R = 2 * Math.sqrt(1 + r - d - w); + this._w = (_ - p) / R, this._x = 0.25 * R, this._y = (i + l) / R, this._z = (s + g) / R; + } else if (d > w) { + const R = 2 * Math.sqrt(1 + d - r - w); + this._w = (s - g) / R, this._x = (i + l) / R, this._y = 0.25 * R, this._z = (p + _) / R; } else { - const C = 2 * Math.sqrt(1 + _ - r - d); - this._w = (l - i) / C, this._x = (o + m) / C, this._y = (h + S) / C, this._z = 0.25 * C; + const R = 2 * Math.sqrt(1 + w - r - d); + this._w = (l - i) / R, this._x = (s + g) / R, this._y = (p + _) / R, this._z = 0.25 * R; } return this._onChangeCallback(), this; } @@ -1437,7 +1437,7 @@ class Po { return r < Number.EPSILON ? (r = 0, Math.abs(e.x) > Math.abs(e.z) ? (this._x = -e.y, this._y = e.x, this._z = 0, this._w = r) : (this._x = 0, this._y = -e.z, this._z = e.y, this._w = r)) : (this._x = e.y * t.z - e.z * t.y, this._y = e.z * t.x - e.x * t.z, this._z = e.x * t.y - e.y * t.x, this._w = r), this.normalize(); } angleTo(e) { - return 2 * Math.acos(Math.abs(Qu(this.dot(e), -1, 1))); + return 2 * Math.acos(Math.abs(Zu(this.dot(e), -1, 1))); } rotateTowards(e, t) { const r = this.angleTo(e); @@ -1475,35 +1475,35 @@ class Po { return this.multiplyQuaternions(e, this); } multiplyQuaternions(e, t) { - const r = e._x, i = e._y, o = e._z, l = e._w, d = t._x, h = t._y, m = t._z, S = t._w; - return this._x = r * S + l * d + i * m - o * h, this._y = i * S + l * h + o * d - r * m, this._z = o * S + l * m + r * h - i * d, this._w = l * S - r * d - i * h - o * m, this._onChangeCallback(), this; + const r = e._x, i = e._y, s = e._z, l = e._w, d = t._x, p = t._y, g = t._z, _ = t._w; + return this._x = r * _ + l * d + i * g - s * p, this._y = i * _ + l * p + s * d - r * g, this._z = s * _ + l * g + r * p - i * d, this._w = l * _ - r * d - i * p - s * g, this._onChangeCallback(), this; } slerp(e, t) { if (t === 0) return this; if (t === 1) return this.copy(e); - const r = this._x, i = this._y, o = this._z, l = this._w; - let d = l * e._w + r * e._x + i * e._y + o * e._z; + const r = this._x, i = this._y, s = this._z, l = this._w; + let d = l * e._w + r * e._x + i * e._y + s * e._z; if (d < 0 ? (this._w = -e._w, this._x = -e._x, this._y = -e._y, this._z = -e._z, d = -d) : this.copy(e), d >= 1) - return this._w = l, this._x = r, this._y = i, this._z = o, this; - const h = 1 - d * d; - if (h <= Number.EPSILON) { - const C = 1 - t; - return this._w = C * l + t * this._w, this._x = C * r + t * this._x, this._y = C * i + t * this._y, this._z = C * o + t * this._z, this.normalize(), this._onChangeCallback(), this; + return this._w = l, this._x = r, this._y = i, this._z = s, this; + const p = 1 - d * d; + if (p <= Number.EPSILON) { + const R = 1 - t; + return this._w = R * l + t * this._w, this._x = R * r + t * this._x, this._y = R * i + t * this._y, this._z = R * s + t * this._z, this.normalize(), this._onChangeCallback(), this; } - const m = Math.sqrt(h), S = Math.atan2(m, d), _ = Math.sin((1 - t) * S) / m, T = Math.sin(t * S) / m; - return this._w = l * _ + this._w * T, this._x = r * _ + this._x * T, this._y = i * _ + this._y * T, this._z = o * _ + this._z * T, this._onChangeCallback(), this; + const g = Math.sqrt(p), _ = Math.atan2(g, d), w = Math.sin((1 - t) * _) / g, T = Math.sin(t * _) / g; + return this._w = l * w + this._w * T, this._x = r * w + this._x * T, this._y = i * w + this._y * T, this._z = s * w + this._z * T, this._onChangeCallback(), this; } slerpQuaternions(e, t, r) { return this.copy(e).slerp(t, r); } random() { - const e = Math.random(), t = Math.sqrt(1 - e), r = Math.sqrt(e), i = 2 * Math.PI * Math.random(), o = 2 * Math.PI * Math.random(); + const e = Math.random(), t = Math.sqrt(1 - e), r = Math.sqrt(e), i = 2 * Math.PI * Math.random(), s = 2 * Math.PI * Math.random(); return this.set( t * Math.cos(i), - r * Math.sin(o), - r * Math.cos(o), + r * Math.sin(s), + r * Math.cos(s), t * Math.sin(i) ); } @@ -1528,9 +1528,9 @@ class Po { yield this._x, yield this._y, yield this._z, yield this._w; } } -class ve { +class ge { constructor(e = 0, t = 0, r = 0) { - ve.prototype.isVector3 = !0, this.x = e, this.y = t, this.z = r; + ge.prototype.isVector3 = !0, this.x = e, this.y = t, this.z = r; } set(e, t, r) { return r === void 0 && (r = this.z), this.x = e, this.y = t, this.z = r, this; @@ -1612,25 +1612,25 @@ class ve { return this.x = e.x * t.x, this.y = e.y * t.y, this.z = e.z * t.z, this; } applyEuler(e) { - return this.applyQuaternion(DO.setFromEuler(e)); + return this.applyQuaternion(OO.setFromEuler(e)); } applyAxisAngle(e, t) { - return this.applyQuaternion(DO.setFromAxisAngle(e, t)); + return this.applyQuaternion(OO.setFromAxisAngle(e, t)); } applyMatrix3(e) { - const t = this.x, r = this.y, i = this.z, o = e.elements; - return this.x = o[0] * t + o[3] * r + o[6] * i, this.y = o[1] * t + o[4] * r + o[7] * i, this.z = o[2] * t + o[5] * r + o[8] * i, this; + const t = this.x, r = this.y, i = this.z, s = e.elements; + return this.x = s[0] * t + s[3] * r + s[6] * i, this.y = s[1] * t + s[4] * r + s[7] * i, this.z = s[2] * t + s[5] * r + s[8] * i, this; } applyNormalMatrix(e) { return this.applyMatrix3(e).normalize(); } applyMatrix4(e) { - const t = this.x, r = this.y, i = this.z, o = e.elements, l = 1 / (o[3] * t + o[7] * r + o[11] * i + o[15]); - return this.x = (o[0] * t + o[4] * r + o[8] * i + o[12]) * l, this.y = (o[1] * t + o[5] * r + o[9] * i + o[13]) * l, this.z = (o[2] * t + o[6] * r + o[10] * i + o[14]) * l, this; + const t = this.x, r = this.y, i = this.z, s = e.elements, l = 1 / (s[3] * t + s[7] * r + s[11] * i + s[15]); + return this.x = (s[0] * t + s[4] * r + s[8] * i + s[12]) * l, this.y = (s[1] * t + s[5] * r + s[9] * i + s[13]) * l, this.z = (s[2] * t + s[6] * r + s[10] * i + s[14]) * l, this; } applyQuaternion(e) { - const t = this.x, r = this.y, i = this.z, o = e.x, l = e.y, d = e.z, h = e.w, m = h * t + l * i - d * r, S = h * r + d * t - o * i, _ = h * i + o * r - l * t, T = -o * t - l * r - d * i; - return this.x = m * h + T * -o + S * -d - _ * -l, this.y = S * h + T * -l + _ * -o - m * -d, this.z = _ * h + T * -d + m * -l - S * -o, this; + const t = this.x, r = this.y, i = this.z, s = e.x, l = e.y, d = e.z, p = e.w, g = p * t + l * i - d * r, _ = p * r + d * t - s * i, w = p * i + s * r - l * t, T = -s * t - l * r - d * i; + return this.x = g * p + T * -s + _ * -d - w * -l, this.y = _ * p + T * -l + w * -s - g * -d, this.z = w * p + T * -d + g * -l - _ * -s, this; } project(e) { return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix); @@ -1639,8 +1639,8 @@ class ve { return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld); } transformDirection(e) { - const t = this.x, r = this.y, i = this.z, o = e.elements; - return this.x = o[0] * t + o[4] * r + o[8] * i, this.y = o[1] * t + o[5] * r + o[9] * i, this.z = o[2] * t + o[6] * r + o[10] * i, this.normalize(); + const t = this.x, r = this.y, i = this.z, s = e.elements; + return this.x = s[0] * t + s[4] * r + s[8] * i, this.y = s[1] * t + s[5] * r + s[9] * i, this.z = s[2] * t + s[6] * r + s[10] * i, this.normalize(); } divide(e) { return this.x /= e.x, this.y /= e.y, this.z /= e.z, this; @@ -1707,8 +1707,8 @@ class ve { return this.crossVectors(this, e); } crossVectors(e, t) { - const r = e.x, i = e.y, o = e.z, l = t.x, d = t.y, h = t.z; - return this.x = i * h - o * d, this.y = o * l - r * h, this.z = r * d - i * l, this; + const r = e.x, i = e.y, s = e.z, l = t.x, d = t.y, p = t.z; + return this.x = i * p - s * d, this.y = s * l - r * p, this.z = r * d - i * l, this; } projectOnVector(e) { const t = e.lengthSq(); @@ -1718,17 +1718,17 @@ class ve { return this.copy(e).multiplyScalar(r); } projectOnPlane(e) { - return TA.copy(this).projectOnVector(e), this.sub(TA); + return CA.copy(this).projectOnVector(e), this.sub(CA); } reflect(e) { - return this.sub(TA.copy(e).multiplyScalar(2 * this.dot(e))); + return this.sub(CA.copy(e).multiplyScalar(2 * this.dot(e))); } angleTo(e) { const t = Math.sqrt(this.lengthSq() * e.lengthSq()); if (t === 0) return Math.PI / 2; const r = this.dot(e) / t; - return Math.acos(Qu(r, -1, 1)); + return Math.acos(Zu(r, -1, 1)); } distanceTo(e) { return Math.sqrt(this.distanceToSquared(e)); @@ -1793,29 +1793,29 @@ class ve { yield this.x, yield this.y, yield this.z; } } -const TA = /* @__PURE__ */ new ve(), DO = /* @__PURE__ */ new Po(); -class og { - constructor(e = new ve(1 / 0, 1 / 0, 1 / 0), t = new ve(-1 / 0, -1 / 0, -1 / 0)) { +const CA = /* @__PURE__ */ new ge(), OO = /* @__PURE__ */ new Po(); +class cg { + constructor(e = new ge(1 / 0, 1 / 0, 1 / 0), t = new ge(-1 / 0, -1 / 0, -1 / 0)) { this.isBox3 = !0, this.min = e, this.max = t; } set(e, t) { return this.min.copy(e), this.max.copy(t), this; } setFromArray(e) { - let t = 1 / 0, r = 1 / 0, i = 1 / 0, o = -1 / 0, l = -1 / 0, d = -1 / 0; - for (let h = 0, m = e.length; h < m; h += 3) { - const S = e[h], _ = e[h + 1], T = e[h + 2]; - S < t && (t = S), _ < r && (r = _), T < i && (i = T), S > o && (o = S), _ > l && (l = _), T > d && (d = T); + let t = 1 / 0, r = 1 / 0, i = 1 / 0, s = -1 / 0, l = -1 / 0, d = -1 / 0; + for (let p = 0, g = e.length; p < g; p += 3) { + const _ = e[p], w = e[p + 1], T = e[p + 2]; + _ < t && (t = _), w < r && (r = w), T < i && (i = T), _ > s && (s = _), w > l && (l = w), T > d && (d = T); } - return this.min.set(t, r, i), this.max.set(o, l, d), this; + return this.min.set(t, r, i), this.max.set(s, l, d), this; } setFromBufferAttribute(e) { - let t = 1 / 0, r = 1 / 0, i = 1 / 0, o = -1 / 0, l = -1 / 0, d = -1 / 0; - for (let h = 0, m = e.count; h < m; h++) { - const S = e.getX(h), _ = e.getY(h), T = e.getZ(h); - S < t && (t = S), _ < r && (r = _), T < i && (i = T), S > o && (o = S), _ > l && (l = _), T > d && (d = T); + let t = 1 / 0, r = 1 / 0, i = 1 / 0, s = -1 / 0, l = -1 / 0, d = -1 / 0; + for (let p = 0, g = e.count; p < g; p++) { + const _ = e.getX(p), w = e.getY(p), T = e.getZ(p); + _ < t && (t = _), w < r && (r = w), T < i && (i = T), _ > s && (s = _), w > l && (l = w), T > d && (d = T); } - return this.min.set(t, r, i), this.max.set(o, l, d), this; + return this.min.set(t, r, i), this.max.set(s, l, d), this; } setFromPoints(e) { this.makeEmpty(); @@ -1824,7 +1824,7 @@ class og { return this; } setFromCenterAndSize(e, t) { - const r = pS.copy(t).multiplyScalar(0.5); + const r = p_.copy(t).multiplyScalar(0.5); return this.min.copy(e).sub(r), this.max.copy(e).add(r), this; } setFromObject(e, t = !1) { @@ -1862,14 +1862,14 @@ class og { const r = e.geometry; if (r !== void 0) if (t && r.attributes != null && r.attributes.position !== void 0) { - const o = r.attributes.position; - for (let l = 0, d = o.count; l < d; l++) - pS.fromBufferAttribute(o, l).applyMatrix4(e.matrixWorld), this.expandByPoint(pS); + const s = r.attributes.position; + for (let l = 0, d = s.count; l < d; l++) + p_.fromBufferAttribute(s, l).applyMatrix4(e.matrixWorld), this.expandByPoint(p_); } else - r.boundingBox === null && r.computeBoundingBox(), CA.copy(r.boundingBox), CA.applyMatrix4(e.matrixWorld), this.union(CA); + r.boundingBox === null && r.computeBoundingBox(), RA.copy(r.boundingBox), RA.applyMatrix4(e.matrixWorld), this.union(RA); const i = e.children; - for (let o = 0, l = i.length; o < l; o++) - this.expandByObject(i[o], t); + for (let s = 0, l = i.length; s < l; s++) + this.expandByObject(i[s], t); return this; } containsPoint(e) { @@ -1889,7 +1889,7 @@ class og { return !(e.max.x < this.min.x || e.min.x > this.max.x || e.max.y < this.min.y || e.min.y > this.max.y || e.max.z < this.min.z || e.min.z > this.max.z); } intersectsSphere(e) { - return this.clampPoint(e.center, pS), pS.distanceToSquared(e.center) <= e.radius * e.radius; + return this.clampPoint(e.center, p_), p_.distanceToSquared(e.center) <= e.radius * e.radius; } intersectsPlane(e) { let t, r; @@ -1898,7 +1898,7 @@ class og { intersectsTriangle(e) { if (this.isEmpty()) return !1; - this.getCenter(JE), u2.subVectors(this.max, JE), gb.subVectors(e.a, JE), yb.subVectors(e.b, JE), xb.subVectors(e.c, JE), kx.subVectors(yb, gb), Ix.subVectors(xb, yb), mS.subVectors(gb, xb); + this.getCenter(JE), u2.subVectors(this.max, JE), ww.subVectors(e.a, JE), bw.subVectors(e.b, JE), Ew.subVectors(e.c, JE), kx.subVectors(bw, ww), Ix.subVectors(Ew, bw), m_.subVectors(ww, Ew); let t = [ 0, -kx.z, @@ -1907,37 +1907,37 @@ class og { -Ix.z, Ix.y, 0, - -mS.z, - mS.y, + -m_.z, + m_.y, kx.z, 0, -kx.x, Ix.z, 0, -Ix.x, - mS.z, + m_.z, 0, - -mS.x, + -m_.x, -kx.y, kx.x, 0, -Ix.y, Ix.x, 0, - -mS.y, - mS.x, + -m_.y, + m_.x, 0 ]; - return !RA(t, gb, yb, xb, u2) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !RA(t, gb, yb, xb, u2)) ? !1 : (c2.crossVectors(kx, Ix), t = [c2.x, c2.y, c2.z], RA(t, gb, yb, xb, u2)); + return !AA(t, ww, bw, Ew, u2) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !AA(t, ww, bw, Ew, u2)) ? !1 : (c2.crossVectors(kx, Ix), t = [c2.x, c2.y, c2.z], AA(t, ww, bw, Ew, u2)); } clampPoint(e, t) { return t.copy(e).clamp(this.min, this.max); } distanceToPoint(e) { - return pS.copy(e).clamp(this.min, this.max).sub(e).length(); + return p_.copy(e).clamp(this.min, this.max).sub(e).length(); } getBoundingSphere(e) { - return this.getCenter(e.center), e.radius = this.getSize(pS).length() * 0.5, e; + return this.getCenter(e.center), e.radius = this.getSize(p_).length() * 0.5, e; } intersect(e) { return this.min.max(e.min), this.max.min(e.max), this.isEmpty() && this.makeEmpty(), this; @@ -1956,27 +1956,27 @@ class og { } } const S0 = [ - /* @__PURE__ */ new ve(), - /* @__PURE__ */ new ve(), - /* @__PURE__ */ new ve(), - /* @__PURE__ */ new ve(), - /* @__PURE__ */ new ve(), - /* @__PURE__ */ new ve(), - /* @__PURE__ */ new ve(), - /* @__PURE__ */ new ve() -], pS = /* @__PURE__ */ new ve(), CA = /* @__PURE__ */ new og(), gb = /* @__PURE__ */ new ve(), yb = /* @__PURE__ */ new ve(), xb = /* @__PURE__ */ new ve(), kx = /* @__PURE__ */ new ve(), Ix = /* @__PURE__ */ new ve(), mS = /* @__PURE__ */ new ve(), JE = /* @__PURE__ */ new ve(), u2 = /* @__PURE__ */ new ve(), c2 = /* @__PURE__ */ new ve(), vS = /* @__PURE__ */ new ve(); -function RA(a, e, t, r, i) { - for (let o = 0, l = a.length - 3; o <= l; o += 3) { - vS.fromArray(a, o); - const d = i.x * Math.abs(vS.x) + i.y * Math.abs(vS.y) + i.z * Math.abs(vS.z), h = e.dot(vS), m = t.dot(vS), S = r.dot(vS); - if (Math.max(-Math.max(h, m, S), Math.min(h, m, S)) > d) + /* @__PURE__ */ new ge(), + /* @__PURE__ */ new ge(), + /* @__PURE__ */ new ge(), + /* @__PURE__ */ new ge(), + /* @__PURE__ */ new ge(), + /* @__PURE__ */ new ge(), + /* @__PURE__ */ new ge(), + /* @__PURE__ */ new ge() +], p_ = /* @__PURE__ */ new ge(), RA = /* @__PURE__ */ new cg(), ww = /* @__PURE__ */ new ge(), bw = /* @__PURE__ */ new ge(), Ew = /* @__PURE__ */ new ge(), kx = /* @__PURE__ */ new ge(), Ix = /* @__PURE__ */ new ge(), m_ = /* @__PURE__ */ new ge(), JE = /* @__PURE__ */ new ge(), u2 = /* @__PURE__ */ new ge(), c2 = /* @__PURE__ */ new ge(), v_ = /* @__PURE__ */ new ge(); +function AA(a, e, t, r, i) { + for (let s = 0, l = a.length - 3; s <= l; s += 3) { + v_.fromArray(a, s); + const d = i.x * Math.abs(v_.x) + i.y * Math.abs(v_.y) + i.z * Math.abs(v_.z), p = e.dot(v_), g = t.dot(v_), _ = r.dot(v_); + if (Math.max(-Math.max(p, g, _), Math.min(p, g, _)) > d) return !1; } return !0; } -const xH = /* @__PURE__ */ new og(), LO = /* @__PURE__ */ new ve(), f2 = /* @__PURE__ */ new ve(), AA = /* @__PURE__ */ new ve(); -class vy { - constructor(e = new ve(), t = -1) { +const LH = /* @__PURE__ */ new cg(), UO = /* @__PURE__ */ new ge(), f2 = /* @__PURE__ */ new ge(), DA = /* @__PURE__ */ new ge(); +class yy { + constructor(e = new ge(), t = -1) { this.center = e, this.radius = t; } set(e, t) { @@ -1984,10 +1984,10 @@ class vy { } setFromPoints(e, t) { const r = this.center; - t !== void 0 ? r.copy(t) : xH.setFromPoints(e).getCenter(r); + t !== void 0 ? r.copy(t) : LH.setFromPoints(e).getCenter(r); let i = 0; - for (let o = 0, l = e.length; o < l; o++) - i = Math.max(i, r.distanceToSquared(e[o])); + for (let s = 0, l = e.length; s < l; s++) + i = Math.max(i, r.distanceToSquared(e[s])); return this.radius = Math.sqrt(i), this; } copy(e) { @@ -2029,16 +2029,16 @@ class vy { return this.center.add(e), this; } expandByPoint(e) { - AA.subVectors(e, this.center); - const t = AA.lengthSq(); + DA.subVectors(e, this.center); + const t = DA.lengthSq(); if (t > this.radius * this.radius) { const r = Math.sqrt(t), i = (r - this.radius) * 0.5; - this.center.add(AA.multiplyScalar(i / r)), this.radius += i; + this.center.add(DA.multiplyScalar(i / r)), this.radius += i; } return this; } union(e) { - return this.center.equals(e.center) === !0 ? f2.set(0, 0, 1).multiplyScalar(e.radius) : f2.subVectors(e.center, this.center).normalize().multiplyScalar(e.radius), this.expandByPoint(LO.copy(e.center).add(f2)), this.expandByPoint(LO.copy(e.center).sub(f2)), this; + return this.center.equals(e.center) === !0 ? f2.set(0, 0, 1).multiplyScalar(e.radius) : f2.subVectors(e.center, this.center).normalize().multiplyScalar(e.radius), this.expandByPoint(UO.copy(e.center).add(f2)), this.expandByPoint(UO.copy(e.center).sub(f2)), this; } equals(e) { return e.center.equals(this.center) && e.radius === this.radius; @@ -2047,9 +2047,9 @@ class vy { return new this.constructor().copy(this); } } -const _0 = /* @__PURE__ */ new ve(), DA = /* @__PURE__ */ new ve(), d2 = /* @__PURE__ */ new ve(), Bx = /* @__PURE__ */ new ve(), LA = /* @__PURE__ */ new ve(), h2 = /* @__PURE__ */ new ve(), PA = /* @__PURE__ */ new ve(); +const w0 = /* @__PURE__ */ new ge(), LA = /* @__PURE__ */ new ge(), d2 = /* @__PURE__ */ new ge(), Bx = /* @__PURE__ */ new ge(), PA = /* @__PURE__ */ new ge(), h2 = /* @__PURE__ */ new ge(), OA = /* @__PURE__ */ new ge(); class KM { - constructor(e = new ve(), t = new ve(0, 0, -1)) { + constructor(e = new ge(), t = new ge(0, 0, -1)) { this.origin = e, this.direction = t; } set(e, t) { @@ -2065,7 +2065,7 @@ class KM { return this.direction.copy(e).sub(this.origin).normalize(), this; } recast(e) { - return this.origin.copy(this.at(e, _0)), this; + return this.origin.copy(this.at(e, w0)), this; } closestPointToPoint(e, t) { t.subVectors(e, this.origin); @@ -2076,36 +2076,36 @@ class KM { return Math.sqrt(this.distanceSqToPoint(e)); } distanceSqToPoint(e) { - const t = _0.subVectors(e, this.origin).dot(this.direction); - return t < 0 ? this.origin.distanceToSquared(e) : (_0.copy(this.direction).multiplyScalar(t).add(this.origin), _0.distanceToSquared(e)); + const t = w0.subVectors(e, this.origin).dot(this.direction); + return t < 0 ? this.origin.distanceToSquared(e) : (w0.copy(this.direction).multiplyScalar(t).add(this.origin), w0.distanceToSquared(e)); } distanceSqToSegment(e, t, r, i) { - DA.copy(e).add(t).multiplyScalar(0.5), d2.copy(t).sub(e).normalize(), Bx.copy(this.origin).sub(DA); - const o = e.distanceTo(t) * 0.5, l = -this.direction.dot(d2), d = Bx.dot(this.direction), h = -Bx.dot(d2), m = Bx.lengthSq(), S = Math.abs(1 - l * l); - let _, T, C, D; - if (S > 0) - if (_ = l * h - d, T = l * d - h, D = o * S, _ >= 0) + LA.copy(e).add(t).multiplyScalar(0.5), d2.copy(t).sub(e).normalize(), Bx.copy(this.origin).sub(LA); + const s = e.distanceTo(t) * 0.5, l = -this.direction.dot(d2), d = Bx.dot(this.direction), p = -Bx.dot(d2), g = Bx.lengthSq(), _ = Math.abs(1 - l * l); + let w, T, R, D; + if (_ > 0) + if (w = l * p - d, T = l * d - p, D = s * _, w >= 0) if (T >= -D) if (T <= D) { - const P = 1 / S; - _ *= P, T *= P, C = _ * (_ + l * T + 2 * d) + T * (l * _ + T + 2 * h) + m; + const O = 1 / _; + w *= O, T *= O, R = w * (w + l * T + 2 * d) + T * (l * w + T + 2 * p) + g; } else - T = o, _ = Math.max(0, -(l * T + d)), C = -_ * _ + T * (T + 2 * h) + m; + T = s, w = Math.max(0, -(l * T + d)), R = -w * w + T * (T + 2 * p) + g; else - T = -o, _ = Math.max(0, -(l * T + d)), C = -_ * _ + T * (T + 2 * h) + m; + T = -s, w = Math.max(0, -(l * T + d)), R = -w * w + T * (T + 2 * p) + g; else - T <= -D ? (_ = Math.max(0, -(-l * o + d)), T = _ > 0 ? -o : Math.min(Math.max(-o, -h), o), C = -_ * _ + T * (T + 2 * h) + m) : T <= D ? (_ = 0, T = Math.min(Math.max(-o, -h), o), C = T * (T + 2 * h) + m) : (_ = Math.max(0, -(l * o + d)), T = _ > 0 ? o : Math.min(Math.max(-o, -h), o), C = -_ * _ + T * (T + 2 * h) + m); + T <= -D ? (w = Math.max(0, -(-l * s + d)), T = w > 0 ? -s : Math.min(Math.max(-s, -p), s), R = -w * w + T * (T + 2 * p) + g) : T <= D ? (w = 0, T = Math.min(Math.max(-s, -p), s), R = T * (T + 2 * p) + g) : (w = Math.max(0, -(l * s + d)), T = w > 0 ? s : Math.min(Math.max(-s, -p), s), R = -w * w + T * (T + 2 * p) + g); else - T = l > 0 ? -o : o, _ = Math.max(0, -(l * T + d)), C = -_ * _ + T * (T + 2 * h) + m; - return r && r.copy(this.direction).multiplyScalar(_).add(this.origin), i && i.copy(d2).multiplyScalar(T).add(DA), C; + T = l > 0 ? -s : s, w = Math.max(0, -(l * T + d)), R = -w * w + T * (T + 2 * p) + g; + return r && r.copy(this.direction).multiplyScalar(w).add(this.origin), i && i.copy(d2).multiplyScalar(T).add(LA), R; } intersectSphere(e, t) { - _0.subVectors(e.center, this.origin); - const r = _0.dot(this.direction), i = _0.dot(_0) - r * r, o = e.radius * e.radius; - if (i > o) + w0.subVectors(e.center, this.origin); + const r = w0.dot(this.direction), i = w0.dot(w0) - r * r, s = e.radius * e.radius; + if (i > s) return null; - const l = Math.sqrt(o - i), d = r - l, h = r + l; - return d < 0 && h < 0 ? null : d < 0 ? this.at(h, t) : this.at(d, t); + const l = Math.sqrt(s - i), d = r - l, p = r + l; + return d < 0 && p < 0 ? null : d < 0 ? this.at(p, t) : this.at(d, t); } intersectsSphere(e) { return this.distanceSqToPoint(e.center) <= e.radius * e.radius; @@ -2126,16 +2126,16 @@ class KM { return t === 0 || e.normal.dot(this.direction) * t < 0; } intersectBox(e, t) { - let r, i, o, l, d, h; - const m = 1 / this.direction.x, S = 1 / this.direction.y, _ = 1 / this.direction.z, T = this.origin; - return m >= 0 ? (r = (e.min.x - T.x) * m, i = (e.max.x - T.x) * m) : (r = (e.max.x - T.x) * m, i = (e.min.x - T.x) * m), S >= 0 ? (o = (e.min.y - T.y) * S, l = (e.max.y - T.y) * S) : (o = (e.max.y - T.y) * S, l = (e.min.y - T.y) * S), r > l || o > i || ((o > r || r !== r) && (r = o), (l < i || i !== i) && (i = l), _ >= 0 ? (d = (e.min.z - T.z) * _, h = (e.max.z - T.z) * _) : (d = (e.max.z - T.z) * _, h = (e.min.z - T.z) * _), r > h || d > i) || ((d > r || r !== r) && (r = d), (h < i || i !== i) && (i = h), i < 0) ? null : this.at(r >= 0 ? r : i, t); + let r, i, s, l, d, p; + const g = 1 / this.direction.x, _ = 1 / this.direction.y, w = 1 / this.direction.z, T = this.origin; + return g >= 0 ? (r = (e.min.x - T.x) * g, i = (e.max.x - T.x) * g) : (r = (e.max.x - T.x) * g, i = (e.min.x - T.x) * g), _ >= 0 ? (s = (e.min.y - T.y) * _, l = (e.max.y - T.y) * _) : (s = (e.max.y - T.y) * _, l = (e.min.y - T.y) * _), r > l || s > i || ((s > r || r !== r) && (r = s), (l < i || i !== i) && (i = l), w >= 0 ? (d = (e.min.z - T.z) * w, p = (e.max.z - T.z) * w) : (d = (e.max.z - T.z) * w, p = (e.min.z - T.z) * w), r > p || d > i) || ((d > r || r !== r) && (r = d), (p < i || i !== i) && (i = p), i < 0) ? null : this.at(r >= 0 ? r : i, t); } intersectsBox(e) { - return this.intersectBox(e, _0) !== null; + return this.intersectBox(e, w0) !== null; } - intersectTriangle(e, t, r, i, o) { - LA.subVectors(t, e), h2.subVectors(r, e), PA.crossVectors(LA, h2); - let l = this.direction.dot(PA), d; + intersectTriangle(e, t, r, i, s) { + PA.subVectors(t, e), h2.subVectors(r, e), OA.crossVectors(PA, h2); + let l = this.direction.dot(OA), d; if (l > 0) { if (i) return null; @@ -2145,14 +2145,14 @@ class KM { else return null; Bx.subVectors(this.origin, e); - const h = d * this.direction.dot(h2.crossVectors(Bx, h2)); - if (h < 0) + const p = d * this.direction.dot(h2.crossVectors(Bx, h2)); + if (p < 0) return null; - const m = d * this.direction.dot(LA.cross(Bx)); - if (m < 0 || h + m > l) + const g = d * this.direction.dot(PA.cross(Bx)); + if (g < 0 || p + g > l) return null; - const S = -d * Bx.dot(PA); - return S < 0 ? null : this.at(S / l, o); + const _ = -d * Bx.dot(OA); + return _ < 0 ? null : this.at(_ / l, s); } applyMatrix4(e) { return this.origin.applyMatrix4(e), this.direction.transformDirection(e), this; @@ -2164,9 +2164,9 @@ class KM { return new this.constructor().copy(this); } } -class si { +class Kr { constructor() { - si.prototype.isMatrix4 = !0, this.elements = [ + Kr.prototype.isMatrix4 = !0, this.elements = [ 1, 0, 0, @@ -2185,9 +2185,9 @@ class si { 1 ]; } - set(e, t, r, i, o, l, d, h, m, S, _, T, C, D, P, U) { - const B = this.elements; - return B[0] = e, B[4] = t, B[8] = r, B[12] = i, B[1] = o, B[5] = l, B[9] = d, B[13] = h, B[2] = m, B[6] = S, B[10] = _, B[14] = T, B[3] = C, B[7] = D, B[11] = P, B[15] = U, this; + set(e, t, r, i, s, l, d, p, g, _, w, T, R, D, O, U) { + const H = this.elements; + return H[0] = e, H[4] = t, H[8] = r, H[12] = i, H[1] = s, H[5] = l, H[9] = d, H[13] = p, H[2] = g, H[6] = _, H[10] = w, H[14] = T, H[3] = R, H[7] = D, H[11] = O, H[15] = U, this; } identity() { return this.set( @@ -2210,7 +2210,7 @@ class si { ), this; } clone() { - return new si().fromArray(this.elements); + return new Kr().fromArray(this.elements); } copy(e) { const t = this.elements, r = e.elements; @@ -2265,38 +2265,38 @@ class si { ), this; } extractRotation(e) { - const t = this.elements, r = e.elements, i = 1 / Sb.setFromMatrixColumn(e, 0).length(), o = 1 / Sb.setFromMatrixColumn(e, 1).length(), l = 1 / Sb.setFromMatrixColumn(e, 2).length(); - return t[0] = r[0] * i, t[1] = r[1] * i, t[2] = r[2] * i, t[3] = 0, t[4] = r[4] * o, t[5] = r[5] * o, t[6] = r[6] * o, t[7] = 0, t[8] = r[8] * l, t[9] = r[9] * l, t[10] = r[10] * l, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this; + const t = this.elements, r = e.elements, i = 1 / Mw.setFromMatrixColumn(e, 0).length(), s = 1 / Mw.setFromMatrixColumn(e, 1).length(), l = 1 / Mw.setFromMatrixColumn(e, 2).length(); + return t[0] = r[0] * i, t[1] = r[1] * i, t[2] = r[2] * i, t[3] = 0, t[4] = r[4] * s, t[5] = r[5] * s, t[6] = r[6] * s, t[7] = 0, t[8] = r[8] * l, t[9] = r[9] * l, t[10] = r[10] * l, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this; } makeRotationFromEuler(e) { - const t = this.elements, r = e.x, i = e.y, o = e.z, l = Math.cos(r), d = Math.sin(r), h = Math.cos(i), m = Math.sin(i), S = Math.cos(o), _ = Math.sin(o); + const t = this.elements, r = e.x, i = e.y, s = e.z, l = Math.cos(r), d = Math.sin(r), p = Math.cos(i), g = Math.sin(i), _ = Math.cos(s), w = Math.sin(s); if (e.order === "XYZ") { - const T = l * S, C = l * _, D = d * S, P = d * _; - t[0] = h * S, t[4] = -h * _, t[8] = m, t[1] = C + D * m, t[5] = T - P * m, t[9] = -d * h, t[2] = P - T * m, t[6] = D + C * m, t[10] = l * h; + const T = l * _, R = l * w, D = d * _, O = d * w; + t[0] = p * _, t[4] = -p * w, t[8] = g, t[1] = R + D * g, t[5] = T - O * g, t[9] = -d * p, t[2] = O - T * g, t[6] = D + R * g, t[10] = l * p; } else if (e.order === "YXZ") { - const T = h * S, C = h * _, D = m * S, P = m * _; - t[0] = T + P * d, t[4] = D * d - C, t[8] = l * m, t[1] = l * _, t[5] = l * S, t[9] = -d, t[2] = C * d - D, t[6] = P + T * d, t[10] = l * h; + const T = p * _, R = p * w, D = g * _, O = g * w; + t[0] = T + O * d, t[4] = D * d - R, t[8] = l * g, t[1] = l * w, t[5] = l * _, t[9] = -d, t[2] = R * d - D, t[6] = O + T * d, t[10] = l * p; } else if (e.order === "ZXY") { - const T = h * S, C = h * _, D = m * S, P = m * _; - t[0] = T - P * d, t[4] = -l * _, t[8] = D + C * d, t[1] = C + D * d, t[5] = l * S, t[9] = P - T * d, t[2] = -l * m, t[6] = d, t[10] = l * h; + const T = p * _, R = p * w, D = g * _, O = g * w; + t[0] = T - O * d, t[4] = -l * w, t[8] = D + R * d, t[1] = R + D * d, t[5] = l * _, t[9] = O - T * d, t[2] = -l * g, t[6] = d, t[10] = l * p; } else if (e.order === "ZYX") { - const T = l * S, C = l * _, D = d * S, P = d * _; - t[0] = h * S, t[4] = D * m - C, t[8] = T * m + P, t[1] = h * _, t[5] = P * m + T, t[9] = C * m - D, t[2] = -m, t[6] = d * h, t[10] = l * h; + const T = l * _, R = l * w, D = d * _, O = d * w; + t[0] = p * _, t[4] = D * g - R, t[8] = T * g + O, t[1] = p * w, t[5] = O * g + T, t[9] = R * g - D, t[2] = -g, t[6] = d * p, t[10] = l * p; } else if (e.order === "YZX") { - const T = l * h, C = l * m, D = d * h, P = d * m; - t[0] = h * S, t[4] = P - T * _, t[8] = D * _ + C, t[1] = _, t[5] = l * S, t[9] = -d * S, t[2] = -m * S, t[6] = C * _ + D, t[10] = T - P * _; + const T = l * p, R = l * g, D = d * p, O = d * g; + t[0] = p * _, t[4] = O - T * w, t[8] = D * w + R, t[1] = w, t[5] = l * _, t[9] = -d * _, t[2] = -g * _, t[6] = R * w + D, t[10] = T - O * w; } else if (e.order === "XZY") { - const T = l * h, C = l * m, D = d * h, P = d * m; - t[0] = h * S, t[4] = -_, t[8] = m * S, t[1] = T * _ + P, t[5] = l * S, t[9] = C * _ - D, t[2] = D * _ - C, t[6] = d * S, t[10] = P * _ + T; + const T = l * p, R = l * g, D = d * p, O = d * g; + t[0] = p * _, t[4] = -w, t[8] = g * _, t[1] = T * w + O, t[5] = l * _, t[9] = R * w - D, t[2] = D * w - R, t[6] = d * _, t[10] = O * w + T; } return t[3] = 0, t[7] = 0, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this; } makeRotationFromQuaternion(e) { - return this.compose(SH, e, _H); + return this.compose(PH, e, OH); } lookAt(e, t, r) { const i = this.elements; - return gm.subVectors(e, t), gm.lengthSq() === 0 && (gm.z = 1), gm.normalize(), Hx.crossVectors(r, gm), Hx.lengthSq() === 0 && (Math.abs(r.z) === 1 ? gm.x += 1e-4 : gm.z += 1e-4, gm.normalize(), Hx.crossVectors(r, gm)), Hx.normalize(), p2.crossVectors(gm, Hx), i[0] = Hx.x, i[4] = p2.x, i[8] = gm.x, i[1] = Hx.y, i[5] = p2.y, i[9] = gm.y, i[2] = Hx.z, i[6] = p2.z, i[10] = gm.z, this; + return _m.subVectors(e, t), _m.lengthSq() === 0 && (_m.z = 1), _m.normalize(), Hx.crossVectors(r, _m), Hx.lengthSq() === 0 && (Math.abs(r.z) === 1 ? _m.x += 1e-4 : _m.z += 1e-4, _m.normalize(), Hx.crossVectors(r, _m)), Hx.normalize(), p2.crossVectors(_m, Hx), i[0] = Hx.x, i[4] = p2.x, i[8] = _m.x, i[1] = Hx.y, i[5] = p2.y, i[9] = _m.y, i[2] = Hx.z, i[6] = p2.z, i[10] = _m.z, this; } multiply(e) { return this.multiplyMatrices(this, e); @@ -2305,16 +2305,16 @@ class si { return this.multiplyMatrices(e, this); } multiplyMatrices(e, t) { - const r = e.elements, i = t.elements, o = this.elements, l = r[0], d = r[4], h = r[8], m = r[12], S = r[1], _ = r[5], T = r[9], C = r[13], D = r[2], P = r[6], U = r[10], B = r[14], k = r[3], V = r[7], I = r[11], X = r[15], J = i[0], $ = i[4], W = i[8], ne = i[12], ie = i[1], fe = i[5], le = i[9], Ee = i[13], he = i[2], Fe = i[6], Ce = i[10], Be = i[14], pe = i[3], de = i[7], ce = i[11], ye = i[15]; - return o[0] = l * J + d * ie + h * he + m * pe, o[4] = l * $ + d * fe + h * Fe + m * de, o[8] = l * W + d * le + h * Ce + m * ce, o[12] = l * ne + d * Ee + h * Be + m * ye, o[1] = S * J + _ * ie + T * he + C * pe, o[5] = S * $ + _ * fe + T * Fe + C * de, o[9] = S * W + _ * le + T * Ce + C * ce, o[13] = S * ne + _ * Ee + T * Be + C * ye, o[2] = D * J + P * ie + U * he + B * pe, o[6] = D * $ + P * fe + U * Fe + B * de, o[10] = D * W + P * le + U * Ce + B * ce, o[14] = D * ne + P * Ee + U * Be + B * ye, o[3] = k * J + V * ie + I * he + X * pe, o[7] = k * $ + V * fe + I * Fe + X * de, o[11] = k * W + V * le + I * Ce + X * ce, o[15] = k * ne + V * Ee + I * Be + X * ye, this; + const r = e.elements, i = t.elements, s = this.elements, l = r[0], d = r[4], p = r[8], g = r[12], _ = r[1], w = r[5], T = r[9], R = r[13], D = r[2], O = r[6], U = r[10], H = r[14], I = r[3], G = r[7], B = r[11], Q = r[15], K = i[0], te = i[4], Y = i[8], re = i[12], se = i[1], ce = i[5], ue = i[9], Me = i[13], me = i[2], De = i[6], Re = i[10], He = i[14], ve = i[3], fe = i[7], he = i[11], ye = i[15]; + return s[0] = l * K + d * se + p * me + g * ve, s[4] = l * te + d * ce + p * De + g * fe, s[8] = l * Y + d * ue + p * Re + g * he, s[12] = l * re + d * Me + p * He + g * ye, s[1] = _ * K + w * se + T * me + R * ve, s[5] = _ * te + w * ce + T * De + R * fe, s[9] = _ * Y + w * ue + T * Re + R * he, s[13] = _ * re + w * Me + T * He + R * ye, s[2] = D * K + O * se + U * me + H * ve, s[6] = D * te + O * ce + U * De + H * fe, s[10] = D * Y + O * ue + U * Re + H * he, s[14] = D * re + O * Me + U * He + H * ye, s[3] = I * K + G * se + B * me + Q * ve, s[7] = I * te + G * ce + B * De + Q * fe, s[11] = I * Y + G * ue + B * Re + Q * he, s[15] = I * re + G * Me + B * He + Q * ye, this; } multiplyScalar(e) { const t = this.elements; return t[0] *= e, t[4] *= e, t[8] *= e, t[12] *= e, t[1] *= e, t[5] *= e, t[9] *= e, t[13] *= e, t[2] *= e, t[6] *= e, t[10] *= e, t[14] *= e, t[3] *= e, t[7] *= e, t[11] *= e, t[15] *= e, this; } determinant() { - const e = this.elements, t = e[0], r = e[4], i = e[8], o = e[12], l = e[1], d = e[5], h = e[9], m = e[13], S = e[2], _ = e[6], T = e[10], C = e[14], D = e[3], P = e[7], U = e[11], B = e[15]; - return D * (+o * h * _ - i * m * _ - o * d * T + r * m * T + i * d * C - r * h * C) + P * (+t * h * C - t * m * T + o * l * T - i * l * C + i * m * S - o * h * S) + U * (+t * m * _ - t * d * C - o * l * _ + r * l * C + o * d * S - r * m * S) + B * (-i * d * S - t * h * _ + t * d * T + i * l * _ - r * l * T + r * h * S); + const e = this.elements, t = e[0], r = e[4], i = e[8], s = e[12], l = e[1], d = e[5], p = e[9], g = e[13], _ = e[2], w = e[6], T = e[10], R = e[14], D = e[3], O = e[7], U = e[11], H = e[15]; + return D * (+s * p * w - i * g * w - s * d * T + r * g * T + i * d * R - r * p * R) + O * (+t * p * R - t * g * T + s * l * T - i * l * R + i * g * _ - s * p * _) + U * (+t * g * w - t * d * R - s * l * w + r * l * R + s * d * _ - r * g * _) + H * (-i * d * _ - t * p * w + t * d * T + i * l * w - r * l * T + r * p * _); } transpose() { const e = this.elements; @@ -2326,15 +2326,15 @@ class si { return e.isVector3 ? (i[12] = e.x, i[13] = e.y, i[14] = e.z) : (i[12] = e, i[13] = t, i[14] = r), this; } invert() { - const e = this.elements, t = e[0], r = e[1], i = e[2], o = e[3], l = e[4], d = e[5], h = e[6], m = e[7], S = e[8], _ = e[9], T = e[10], C = e[11], D = e[12], P = e[13], U = e[14], B = e[15], k = _ * U * m - P * T * m + P * h * C - d * U * C - _ * h * B + d * T * B, V = D * T * m - S * U * m - D * h * C + l * U * C + S * h * B - l * T * B, I = S * P * m - D * _ * m + D * d * C - l * P * C - S * d * B + l * _ * B, X = D * _ * h - S * P * h - D * d * T + l * P * T + S * d * U - l * _ * U, J = t * k + r * V + i * I + o * X; - if (J === 0) + const e = this.elements, t = e[0], r = e[1], i = e[2], s = e[3], l = e[4], d = e[5], p = e[6], g = e[7], _ = e[8], w = e[9], T = e[10], R = e[11], D = e[12], O = e[13], U = e[14], H = e[15], I = w * U * g - O * T * g + O * p * R - d * U * R - w * p * H + d * T * H, G = D * T * g - _ * U * g - D * p * R + l * U * R + _ * p * H - l * T * H, B = _ * O * g - D * w * g + D * d * R - l * O * R - _ * d * H + l * w * H, Q = D * w * p - _ * O * p - D * d * T + l * O * T + _ * d * U - l * w * U, K = t * I + r * G + i * B + s * Q; + if (K === 0) return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); - const $ = 1 / J; - return e[0] = k * $, e[1] = (P * T * o - _ * U * o - P * i * C + r * U * C + _ * i * B - r * T * B) * $, e[2] = (d * U * o - P * h * o + P * i * m - r * U * m - d * i * B + r * h * B) * $, e[3] = (_ * h * o - d * T * o - _ * i * m + r * T * m + d * i * C - r * h * C) * $, e[4] = V * $, e[5] = (S * U * o - D * T * o + D * i * C - t * U * C - S * i * B + t * T * B) * $, e[6] = (D * h * o - l * U * o - D * i * m + t * U * m + l * i * B - t * h * B) * $, e[7] = (l * T * o - S * h * o + S * i * m - t * T * m - l * i * C + t * h * C) * $, e[8] = I * $, e[9] = (D * _ * o - S * P * o - D * r * C + t * P * C + S * r * B - t * _ * B) * $, e[10] = (l * P * o - D * d * o + D * r * m - t * P * m - l * r * B + t * d * B) * $, e[11] = (S * d * o - l * _ * o - S * r * m + t * _ * m + l * r * C - t * d * C) * $, e[12] = X * $, e[13] = (S * P * i - D * _ * i + D * r * T - t * P * T - S * r * U + t * _ * U) * $, e[14] = (D * d * i - l * P * i - D * r * h + t * P * h + l * r * U - t * d * U) * $, e[15] = (l * _ * i - S * d * i + S * r * h - t * _ * h - l * r * T + t * d * T) * $, this; + const te = 1 / K; + return e[0] = I * te, e[1] = (O * T * s - w * U * s - O * i * R + r * U * R + w * i * H - r * T * H) * te, e[2] = (d * U * s - O * p * s + O * i * g - r * U * g - d * i * H + r * p * H) * te, e[3] = (w * p * s - d * T * s - w * i * g + r * T * g + d * i * R - r * p * R) * te, e[4] = G * te, e[5] = (_ * U * s - D * T * s + D * i * R - t * U * R - _ * i * H + t * T * H) * te, e[6] = (D * p * s - l * U * s - D * i * g + t * U * g + l * i * H - t * p * H) * te, e[7] = (l * T * s - _ * p * s + _ * i * g - t * T * g - l * i * R + t * p * R) * te, e[8] = B * te, e[9] = (D * w * s - _ * O * s - D * r * R + t * O * R + _ * r * H - t * w * H) * te, e[10] = (l * O * s - D * d * s + D * r * g - t * O * g - l * r * H + t * d * H) * te, e[11] = (_ * d * s - l * w * s - _ * r * g + t * w * g + l * r * R - t * d * R) * te, e[12] = Q * te, e[13] = (_ * O * i - D * w * i + D * r * T - t * O * T - _ * r * U + t * w * U) * te, e[14] = (D * d * i - l * O * i - D * r * p + t * O * p + l * r * U - t * d * U) * te, e[15] = (l * w * i - _ * d * i + _ * r * p - t * w * p - l * r * T + t * d * T) * te, this; } scale(e) { - const t = this.elements, r = e.x, i = e.y, o = e.z; - return t[0] *= r, t[4] *= i, t[8] *= o, t[1] *= r, t[5] *= i, t[9] *= o, t[2] *= r, t[6] *= i, t[10] *= o, t[3] *= r, t[7] *= i, t[11] *= o, this; + const t = this.elements, r = e.x, i = e.y, s = e.z; + return t[0] *= r, t[4] *= i, t[8] *= s, t[1] *= r, t[5] *= i, t[9] *= s, t[2] *= r, t[6] *= i, t[10] *= s, t[3] *= r, t[7] *= i, t[11] *= s, this; } getMaxScaleOnAxis() { const e = this.elements, t = e[0] * e[0] + e[1] * e[1] + e[2] * e[2], r = e[4] * e[4] + e[5] * e[5] + e[6] * e[6], i = e[8] * e[8] + e[9] * e[9] + e[10] * e[10]; @@ -2424,19 +2424,19 @@ class si { ), this; } makeRotationAxis(e, t) { - const r = Math.cos(t), i = Math.sin(t), o = 1 - r, l = e.x, d = e.y, h = e.z, m = o * l, S = o * d; + const r = Math.cos(t), i = Math.sin(t), s = 1 - r, l = e.x, d = e.y, p = e.z, g = s * l, _ = s * d; return this.set( - m * l + r, - m * d - i * h, - m * h + i * d, + g * l + r, + g * d - i * p, + g * p + i * d, 0, - m * d + i * h, - S * d + r, - S * h - i * l, + g * d + i * p, + _ * d + r, + _ * p - i * l, 0, - m * h - i * d, - S * h + i * l, - o * h * h + r, + g * p - i * d, + _ * p + i * l, + s * p * p + r, 0, 0, 0, @@ -2464,11 +2464,11 @@ class si { 1 ), this; } - makeShear(e, t, r, i, o, l) { + makeShear(e, t, r, i, s, l) { return this.set( 1, r, - o, + s, 0, e, 1, @@ -2485,24 +2485,24 @@ class si { ), this; } compose(e, t, r) { - const i = this.elements, o = t._x, l = t._y, d = t._z, h = t._w, m = o + o, S = l + l, _ = d + d, T = o * m, C = o * S, D = o * _, P = l * S, U = l * _, B = d * _, k = h * m, V = h * S, I = h * _, X = r.x, J = r.y, $ = r.z; - return i[0] = (1 - (P + B)) * X, i[1] = (C + I) * X, i[2] = (D - V) * X, i[3] = 0, i[4] = (C - I) * J, i[5] = (1 - (T + B)) * J, i[6] = (U + k) * J, i[7] = 0, i[8] = (D + V) * $, i[9] = (U - k) * $, i[10] = (1 - (T + P)) * $, i[11] = 0, i[12] = e.x, i[13] = e.y, i[14] = e.z, i[15] = 1, this; + const i = this.elements, s = t._x, l = t._y, d = t._z, p = t._w, g = s + s, _ = l + l, w = d + d, T = s * g, R = s * _, D = s * w, O = l * _, U = l * w, H = d * w, I = p * g, G = p * _, B = p * w, Q = r.x, K = r.y, te = r.z; + return i[0] = (1 - (O + H)) * Q, i[1] = (R + B) * Q, i[2] = (D - G) * Q, i[3] = 0, i[4] = (R - B) * K, i[5] = (1 - (T + H)) * K, i[6] = (U + I) * K, i[7] = 0, i[8] = (D + G) * te, i[9] = (U - I) * te, i[10] = (1 - (T + O)) * te, i[11] = 0, i[12] = e.x, i[13] = e.y, i[14] = e.z, i[15] = 1, this; } decompose(e, t, r) { const i = this.elements; - let o = Sb.set(i[0], i[1], i[2]).length(); - const l = Sb.set(i[4], i[5], i[6]).length(), d = Sb.set(i[8], i[9], i[10]).length(); - this.determinant() < 0 && (o = -o), e.x = i[12], e.y = i[13], e.z = i[14], $v.copy(this); - const m = 1 / o, S = 1 / l, _ = 1 / d; - return $v.elements[0] *= m, $v.elements[1] *= m, $v.elements[2] *= m, $v.elements[4] *= S, $v.elements[5] *= S, $v.elements[6] *= S, $v.elements[8] *= _, $v.elements[9] *= _, $v.elements[10] *= _, t.setFromRotationMatrix($v), r.x = o, r.y = l, r.z = d, this; + let s = Mw.set(i[0], i[1], i[2]).length(); + const l = Mw.set(i[4], i[5], i[6]).length(), d = Mw.set(i[8], i[9], i[10]).length(); + this.determinant() < 0 && (s = -s), e.x = i[12], e.y = i[13], e.z = i[14], ng.copy(this); + const g = 1 / s, _ = 1 / l, w = 1 / d; + return ng.elements[0] *= g, ng.elements[1] *= g, ng.elements[2] *= g, ng.elements[4] *= _, ng.elements[5] *= _, ng.elements[6] *= _, ng.elements[8] *= w, ng.elements[9] *= w, ng.elements[10] *= w, t.setFromRotationMatrix(ng), r.x = s, r.y = l, r.z = d, this; } - makePerspective(e, t, r, i, o, l) { - const d = this.elements, h = 2 * o / (t - e), m = 2 * o / (r - i), S = (t + e) / (t - e), _ = (r + i) / (r - i), T = -(l + o) / (l - o), C = -2 * l * o / (l - o); - return d[0] = h, d[4] = 0, d[8] = S, d[12] = 0, d[1] = 0, d[5] = m, d[9] = _, d[13] = 0, d[2] = 0, d[6] = 0, d[10] = T, d[14] = C, d[3] = 0, d[7] = 0, d[11] = -1, d[15] = 0, this; + makePerspective(e, t, r, i, s, l) { + const d = this.elements, p = 2 * s / (t - e), g = 2 * s / (r - i), _ = (t + e) / (t - e), w = (r + i) / (r - i), T = -(l + s) / (l - s), R = -2 * l * s / (l - s); + return d[0] = p, d[4] = 0, d[8] = _, d[12] = 0, d[1] = 0, d[5] = g, d[9] = w, d[13] = 0, d[2] = 0, d[6] = 0, d[10] = T, d[14] = R, d[3] = 0, d[7] = 0, d[11] = -1, d[15] = 0, this; } - makeOrthographic(e, t, r, i, o, l) { - const d = this.elements, h = 1 / (t - e), m = 1 / (r - i), S = 1 / (l - o), _ = (t + e) * h, T = (r + i) * m, C = (l + o) * S; - return d[0] = 2 * h, d[4] = 0, d[8] = 0, d[12] = -_, d[1] = 0, d[5] = 2 * m, d[9] = 0, d[13] = -T, d[2] = 0, d[6] = 0, d[10] = -2 * S, d[14] = -C, d[3] = 0, d[7] = 0, d[11] = 0, d[15] = 1, this; + makeOrthographic(e, t, r, i, s, l) { + const d = this.elements, p = 1 / (t - e), g = 1 / (r - i), _ = 1 / (l - s), w = (t + e) * p, T = (r + i) * g, R = (l + s) * _; + return d[0] = 2 * p, d[4] = 0, d[8] = 0, d[12] = -w, d[1] = 0, d[5] = 2 * g, d[9] = 0, d[13] = -T, d[2] = 0, d[6] = 0, d[10] = -2 * _, d[14] = -R, d[3] = 0, d[7] = 0, d[11] = 0, d[15] = 1, this; } equals(e) { const t = this.elements, r = e.elements; @@ -2521,9 +2521,9 @@ class si { return e[t] = r[0], e[t + 1] = r[1], e[t + 2] = r[2], e[t + 3] = r[3], e[t + 4] = r[4], e[t + 5] = r[5], e[t + 6] = r[6], e[t + 7] = r[7], e[t + 8] = r[8], e[t + 9] = r[9], e[t + 10] = r[10], e[t + 11] = r[11], e[t + 12] = r[12], e[t + 13] = r[13], e[t + 14] = r[14], e[t + 15] = r[15], e; } } -const Sb = /* @__PURE__ */ new ve(), $v = /* @__PURE__ */ new si(), SH = /* @__PURE__ */ new ve(0, 0, 0), _H = /* @__PURE__ */ new ve(1, 1, 1), Hx = /* @__PURE__ */ new ve(), p2 = /* @__PURE__ */ new ve(), gm = /* @__PURE__ */ new ve(), PO = /* @__PURE__ */ new si(), OO = /* @__PURE__ */ new Po(); -class QS { - constructor(e = 0, t = 0, r = 0, i = QS.DefaultOrder) { +const Mw = /* @__PURE__ */ new ge(), ng = /* @__PURE__ */ new Kr(), PH = /* @__PURE__ */ new ge(0, 0, 0), OH = /* @__PURE__ */ new ge(1, 1, 1), Hx = /* @__PURE__ */ new ge(), p2 = /* @__PURE__ */ new ge(), _m = /* @__PURE__ */ new ge(), zO = /* @__PURE__ */ new Kr(), NO = /* @__PURE__ */ new Po(); +class $_ { + constructor(e = 0, t = 0, r = 0, i = $_.DefaultOrder) { this.isEuler = !0, this._x = e, this._y = t, this._z = r, this._order = i; } get x() { @@ -2560,25 +2560,25 @@ class QS { return this._x = e._x, this._y = e._y, this._z = e._z, this._order = e._order, this._onChangeCallback(), this; } setFromRotationMatrix(e, t = this._order, r = !0) { - const i = e.elements, o = i[0], l = i[4], d = i[8], h = i[1], m = i[5], S = i[9], _ = i[2], T = i[6], C = i[10]; + const i = e.elements, s = i[0], l = i[4], d = i[8], p = i[1], g = i[5], _ = i[9], w = i[2], T = i[6], R = i[10]; switch (t) { case "XYZ": - this._y = Math.asin(Qu(d, -1, 1)), Math.abs(d) < 0.9999999 ? (this._x = Math.atan2(-S, C), this._z = Math.atan2(-l, o)) : (this._x = Math.atan2(T, m), this._z = 0); + this._y = Math.asin(Zu(d, -1, 1)), Math.abs(d) < 0.9999999 ? (this._x = Math.atan2(-_, R), this._z = Math.atan2(-l, s)) : (this._x = Math.atan2(T, g), this._z = 0); break; case "YXZ": - this._x = Math.asin(-Qu(S, -1, 1)), Math.abs(S) < 0.9999999 ? (this._y = Math.atan2(d, C), this._z = Math.atan2(h, m)) : (this._y = Math.atan2(-_, o), this._z = 0); + this._x = Math.asin(-Zu(_, -1, 1)), Math.abs(_) < 0.9999999 ? (this._y = Math.atan2(d, R), this._z = Math.atan2(p, g)) : (this._y = Math.atan2(-w, s), this._z = 0); break; case "ZXY": - this._x = Math.asin(Qu(T, -1, 1)), Math.abs(T) < 0.9999999 ? (this._y = Math.atan2(-_, C), this._z = Math.atan2(-l, m)) : (this._y = 0, this._z = Math.atan2(h, o)); + this._x = Math.asin(Zu(T, -1, 1)), Math.abs(T) < 0.9999999 ? (this._y = Math.atan2(-w, R), this._z = Math.atan2(-l, g)) : (this._y = 0, this._z = Math.atan2(p, s)); break; case "ZYX": - this._y = Math.asin(-Qu(_, -1, 1)), Math.abs(_) < 0.9999999 ? (this._x = Math.atan2(T, C), this._z = Math.atan2(h, o)) : (this._x = 0, this._z = Math.atan2(-l, m)); + this._y = Math.asin(-Zu(w, -1, 1)), Math.abs(w) < 0.9999999 ? (this._x = Math.atan2(T, R), this._z = Math.atan2(p, s)) : (this._x = 0, this._z = Math.atan2(-l, g)); break; case "YZX": - this._z = Math.asin(Qu(h, -1, 1)), Math.abs(h) < 0.9999999 ? (this._x = Math.atan2(-S, m), this._y = Math.atan2(-_, o)) : (this._x = 0, this._y = Math.atan2(d, C)); + this._z = Math.asin(Zu(p, -1, 1)), Math.abs(p) < 0.9999999 ? (this._x = Math.atan2(-_, g), this._y = Math.atan2(-w, s)) : (this._x = 0, this._y = Math.atan2(d, R)); break; case "XZY": - this._z = Math.asin(-Qu(l, -1, 1)), Math.abs(l) < 0.9999999 ? (this._x = Math.atan2(T, m), this._y = Math.atan2(d, o)) : (this._x = Math.atan2(-S, C), this._y = 0); + this._z = Math.asin(-Zu(l, -1, 1)), Math.abs(l) < 0.9999999 ? (this._x = Math.atan2(T, g), this._y = Math.atan2(d, s)) : (this._x = Math.atan2(-_, R), this._y = 0); break; default: console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: " + t); @@ -2586,13 +2586,13 @@ class QS { return this._order = t, r === !0 && this._onChangeCallback(), this; } setFromQuaternion(e, t, r) { - return PO.makeRotationFromQuaternion(e), this.setFromRotationMatrix(PO, t, r); + return zO.makeRotationFromQuaternion(e), this.setFromRotationMatrix(zO, t, r); } setFromVector3(e, t = this._order) { return this.set(e.x, e.y, e.z, t); } reorder(e) { - return OO.setFromEuler(this), this.setFromQuaternion(OO, e); + return NO.setFromEuler(this), this.setFromQuaternion(NO, e); } equals(e) { return e._x === this._x && e._y === this._y && e._z === this._z && e._order === this._order; @@ -2615,9 +2615,9 @@ class QS { console.error("THREE.Euler: .toVector3() has been removed. Use Vector3.setFromEuler() instead"); } } -QS.DefaultOrder = "XYZ"; -QS.RotationOrders = ["XYZ", "YZX", "ZXY", "XZY", "YXZ", "ZYX"]; -class kS { +$_.DefaultOrder = "XYZ"; +$_.RotationOrders = ["XYZ", "YZX", "ZXY", "XZY", "YXZ", "ZYX"]; +class G_ { constructor() { this.mask = 1; } @@ -2646,19 +2646,19 @@ class kS { return (this.mask & (1 << e | 0)) !== 0; } } -let bH = 0; -const UO = /* @__PURE__ */ new ve(), _b = /* @__PURE__ */ new Po(), b0 = /* @__PURE__ */ new si(), m2 = /* @__PURE__ */ new ve(), KE = /* @__PURE__ */ new ve(), wH = /* @__PURE__ */ new ve(), EH = /* @__PURE__ */ new Po(), zO = /* @__PURE__ */ new ve(1, 0, 0), NO = /* @__PURE__ */ new ve(0, 1, 0), FO = /* @__PURE__ */ new ve(0, 0, 1), MH = { type: "added" }, kO = { type: "removed" }; -class Xa extends Mm { +let UH = 0; +const FO = /* @__PURE__ */ new ge(), Tw = /* @__PURE__ */ new Po(), b0 = /* @__PURE__ */ new Kr(), m2 = /* @__PURE__ */ new ge(), KE = /* @__PURE__ */ new ge(), zH = /* @__PURE__ */ new ge(), NH = /* @__PURE__ */ new Po(), kO = /* @__PURE__ */ new ge(1, 0, 0), IO = /* @__PURE__ */ new ge(0, 1, 0), BO = /* @__PURE__ */ new ge(0, 0, 1), FH = { type: "added" }, HO = { type: "removed" }; +class Xa extends Cm { constructor() { - super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: bH++ }), this.uuid = bm(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = Xa.DefaultUp.clone(); - const e = new ve(), t = new QS(), r = new Po(), i = new ve(1, 1, 1); - function o() { + super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: UH++ }), this.uuid = Em(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = Xa.DefaultUp.clone(); + const e = new ge(), t = new $_(), r = new Po(), i = new ge(1, 1, 1); + function s() { r.setFromEuler(t, !1); } function l() { t.setFromQuaternion(r, void 0, !1); } - t._onChange(o), r._onChange(l), Object.defineProperties(this, { + t._onChange(s), r._onChange(l), Object.defineProperties(this, { position: { configurable: !0, enumerable: !0, @@ -2680,12 +2680,12 @@ class Xa extends Mm { value: i }, modelViewMatrix: { - value: new si() + value: new Kr() }, normalMatrix: { - value: new jh() + value: new Xh() } - }), this.matrix = new si(), this.matrixWorld = new si(), this.matrixAutoUpdate = Xa.DefaultMatrixAutoUpdate, this.matrixWorldNeedsUpdate = !1, this.layers = new kS(), this.visible = !0, this.castShadow = !1, this.receiveShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.animations = [], this.userData = {}; + }), this.matrix = new Kr(), this.matrixWorld = new Kr(), this.matrixAutoUpdate = Xa.DefaultMatrixAutoUpdate, this.matrixWorldNeedsUpdate = !1, this.layers = new G_(), this.visible = !0, this.castShadow = !1, this.receiveShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.animations = [], this.userData = {}; } onBeforeRender() { } @@ -2710,31 +2710,31 @@ class Xa extends Mm { this.quaternion.copy(e); } rotateOnAxis(e, t) { - return _b.setFromAxisAngle(e, t), this.quaternion.multiply(_b), this; + return Tw.setFromAxisAngle(e, t), this.quaternion.multiply(Tw), this; } rotateOnWorldAxis(e, t) { - return _b.setFromAxisAngle(e, t), this.quaternion.premultiply(_b), this; + return Tw.setFromAxisAngle(e, t), this.quaternion.premultiply(Tw), this; } rotateX(e) { - return this.rotateOnAxis(zO, e); + return this.rotateOnAxis(kO, e); } rotateY(e) { - return this.rotateOnAxis(NO, e); + return this.rotateOnAxis(IO, e); } rotateZ(e) { - return this.rotateOnAxis(FO, e); + return this.rotateOnAxis(BO, e); } translateOnAxis(e, t) { - return UO.copy(e).applyQuaternion(this.quaternion), this.position.add(UO.multiplyScalar(t)), this; + return FO.copy(e).applyQuaternion(this.quaternion), this.position.add(FO.multiplyScalar(t)), this; } translateX(e) { - return this.translateOnAxis(zO, e); + return this.translateOnAxis(kO, e); } translateY(e) { - return this.translateOnAxis(NO, e); + return this.translateOnAxis(IO, e); } translateZ(e) { - return this.translateOnAxis(FO, e); + return this.translateOnAxis(BO, e); } localToWorld(e) { return e.applyMatrix4(this.matrixWorld); @@ -2745,7 +2745,7 @@ class Xa extends Mm { lookAt(e, t, r) { e.isVector3 ? m2.copy(e) : m2.set(e, t, r); const i = this.parent; - this.updateWorldMatrix(!0, !1), KE.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? b0.lookAt(KE, m2, this.up) : b0.lookAt(m2, KE, this.up), this.quaternion.setFromRotationMatrix(b0), i && (b0.extractRotation(i.matrixWorld), _b.setFromRotationMatrix(b0), this.quaternion.premultiply(_b.invert())); + this.updateWorldMatrix(!0, !1), KE.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? b0.lookAt(KE, m2, this.up) : b0.lookAt(m2, KE, this.up), this.quaternion.setFromRotationMatrix(b0), i && (b0.extractRotation(i.matrixWorld), Tw.setFromRotationMatrix(b0), this.quaternion.premultiply(Tw.invert())); } add(e) { if (arguments.length > 1) { @@ -2753,7 +2753,7 @@ class Xa extends Mm { this.add(arguments[t]); return this; } - return e === this ? (console.error("THREE.Object3D.add: object can't be added as a child of itself.", e), this) : (e && e.isObject3D ? (e.parent !== null && e.parent.remove(e), e.parent = this, this.children.push(e), e.dispatchEvent(MH)) : console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.", e), this); + return e === this ? (console.error("THREE.Object3D.add: object can't be added as a child of itself.", e), this) : (e && e.isObject3D ? (e.parent !== null && e.parent.remove(e), e.parent = this, this.children.push(e), e.dispatchEvent(FH)) : console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.", e), this); } remove(e) { if (arguments.length > 1) { @@ -2762,7 +2762,7 @@ class Xa extends Mm { return this; } const t = this.children.indexOf(e); - return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(kO)), this; + return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(HO)), this; } removeFromParent() { const e = this.parent; @@ -2771,7 +2771,7 @@ class Xa extends Mm { clear() { for (let e = 0; e < this.children.length; e++) { const t = this.children[e]; - t.parent = null, t.dispatchEvent(kO); + t.parent = null, t.dispatchEvent(HO); } return this.children.length = 0, this; } @@ -2797,10 +2797,10 @@ class Xa extends Mm { return this.updateWorldMatrix(!0, !1), e.setFromMatrixPosition(this.matrixWorld); } getWorldQuaternion(e) { - return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(KE, e, wH), e; + return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(KE, e, zH), e; } getWorldScale(e) { - return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(KE, EH, e), e; + return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(KE, NH, e), e; } getWorldDirection(e) { this.updateWorldMatrix(!0, !1); @@ -2840,8 +2840,8 @@ class Xa extends Mm { const r = this.parent; if (e === !0 && r !== null && r.updateWorldMatrix(!0, !1), this.matrixAutoUpdate && this.updateMatrix(), this.parent === null ? this.matrixWorld.copy(this.matrix) : this.matrixWorld.multiplyMatrices(this.parent.matrixWorld, this.matrix), t === !0) { const i = this.children; - for (let o = 0, l = i.length; o < l; o++) - i[o].updateWorldMatrix(!1, !0); + for (let s = 0, l = i.length; s < l; s++) + i[s].updateWorldMatrix(!1, !0); } } toJSON(e) { @@ -2862,33 +2862,33 @@ class Xa extends Mm { }); const i = {}; i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.castShadow === !0 && (i.castShadow = !0), this.receiveShadow === !0 && (i.receiveShadow = !0), this.visible === !1 && (i.visible = !1), this.frustumCulled === !1 && (i.frustumCulled = !1), this.renderOrder !== 0 && (i.renderOrder = this.renderOrder), JSON.stringify(this.userData) !== "{}" && (i.userData = this.userData), i.layers = this.layers.mask, i.matrix = this.matrix.toArray(), this.matrixAutoUpdate === !1 && (i.matrixAutoUpdate = !1), this.isInstancedMesh && (i.type = "InstancedMesh", i.count = this.count, i.instanceMatrix = this.instanceMatrix.toJSON(), this.instanceColor !== null && (i.instanceColor = this.instanceColor.toJSON())); - function o(d, h) { - return d[h.uuid] === void 0 && (d[h.uuid] = h.toJSON(e)), h.uuid; + function s(d, p) { + return d[p.uuid] === void 0 && (d[p.uuid] = p.toJSON(e)), p.uuid; } if (this.isScene) this.background && (this.background.isColor ? i.background = this.background.toJSON() : this.background.isTexture && (i.background = this.background.toJSON(e).uuid)), this.environment && this.environment.isTexture && this.environment.isRenderTargetTexture !== !0 && (i.environment = this.environment.toJSON(e).uuid); else if (this.isMesh || this.isLine || this.isPoints) { - i.geometry = o(e.geometries, this.geometry); + i.geometry = s(e.geometries, this.geometry); const d = this.geometry.parameters; if (d !== void 0 && d.shapes !== void 0) { - const h = d.shapes; - if (Array.isArray(h)) - for (let m = 0, S = h.length; m < S; m++) { - const _ = h[m]; - o(e.shapes, _); + const p = d.shapes; + if (Array.isArray(p)) + for (let g = 0, _ = p.length; g < _; g++) { + const w = p[g]; + s(e.shapes, w); } else - o(e.shapes, h); + s(e.shapes, p); } } - if (this.isSkinnedMesh && (i.bindMode = this.bindMode, i.bindMatrix = this.bindMatrix.toArray(), this.skeleton !== void 0 && (o(e.skeletons, this.skeleton), i.skeleton = this.skeleton.uuid)), this.material !== void 0) + if (this.isSkinnedMesh && (i.bindMode = this.bindMode, i.bindMatrix = this.bindMatrix.toArray(), this.skeleton !== void 0 && (s(e.skeletons, this.skeleton), i.skeleton = this.skeleton.uuid)), this.material !== void 0) if (Array.isArray(this.material)) { const d = []; - for (let h = 0, m = this.material.length; h < m; h++) - d.push(o(e.materials, this.material[h])); + for (let p = 0, g = this.material.length; p < g; p++) + d.push(s(e.materials, this.material[p])); i.material = d; } else - i.material = o(e.materials, this.material); + i.material = s(e.materials, this.material); if (this.children.length > 0) { i.children = []; for (let d = 0; d < this.children.length; d++) @@ -2897,22 +2897,22 @@ class Xa extends Mm { if (this.animations.length > 0) { i.animations = []; for (let d = 0; d < this.animations.length; d++) { - const h = this.animations[d]; - i.animations.push(o(e.animations, h)); + const p = this.animations[d]; + i.animations.push(s(e.animations, p)); } } if (t) { - const d = l(e.geometries), h = l(e.materials), m = l(e.textures), S = l(e.images), _ = l(e.shapes), T = l(e.skeletons), C = l(e.animations), D = l(e.nodes); - d.length > 0 && (r.geometries = d), h.length > 0 && (r.materials = h), m.length > 0 && (r.textures = m), S.length > 0 && (r.images = S), _.length > 0 && (r.shapes = _), T.length > 0 && (r.skeletons = T), C.length > 0 && (r.animations = C), D.length > 0 && (r.nodes = D); + const d = l(e.geometries), p = l(e.materials), g = l(e.textures), _ = l(e.images), w = l(e.shapes), T = l(e.skeletons), R = l(e.animations), D = l(e.nodes); + d.length > 0 && (r.geometries = d), p.length > 0 && (r.materials = p), g.length > 0 && (r.textures = g), _.length > 0 && (r.images = _), w.length > 0 && (r.shapes = w), T.length > 0 && (r.skeletons = T), R.length > 0 && (r.animations = R), D.length > 0 && (r.nodes = D); } return r.object = i, r; function l(d) { - const h = []; - for (const m in d) { - const S = d[m]; - delete S.metadata, h.push(S); + const p = []; + for (const g in d) { + const _ = d[g]; + delete _.metadata, p.push(_); } - return h; + return p; } } clone(e) { @@ -2927,34 +2927,34 @@ class Xa extends Mm { return this; } } -Xa.DefaultUp = /* @__PURE__ */ new ve(0, 1, 0); +Xa.DefaultUp = /* @__PURE__ */ new ge(0, 1, 0); Xa.DefaultMatrixAutoUpdate = !0; -const eg = /* @__PURE__ */ new ve(), w0 = /* @__PURE__ */ new ve(), OA = /* @__PURE__ */ new ve(), E0 = /* @__PURE__ */ new ve(), bb = /* @__PURE__ */ new ve(), wb = /* @__PURE__ */ new ve(), IO = /* @__PURE__ */ new ve(), UA = /* @__PURE__ */ new ve(), zA = /* @__PURE__ */ new ve(), NA = /* @__PURE__ */ new ve(); -class xm { - constructor(e = new ve(), t = new ve(), r = new ve()) { +const rg = /* @__PURE__ */ new ge(), E0 = /* @__PURE__ */ new ge(), UA = /* @__PURE__ */ new ge(), M0 = /* @__PURE__ */ new ge(), Cw = /* @__PURE__ */ new ge(), Rw = /* @__PURE__ */ new ge(), VO = /* @__PURE__ */ new ge(), zA = /* @__PURE__ */ new ge(), NA = /* @__PURE__ */ new ge(), FA = /* @__PURE__ */ new ge(); +class wm { + constructor(e = new ge(), t = new ge(), r = new ge()) { this.a = e, this.b = t, this.c = r; } static getNormal(e, t, r, i) { - i.subVectors(r, t), eg.subVectors(e, t), i.cross(eg); - const o = i.lengthSq(); - return o > 0 ? i.multiplyScalar(1 / Math.sqrt(o)) : i.set(0, 0, 0); - } - static getBarycoord(e, t, r, i, o) { - eg.subVectors(i, t), w0.subVectors(r, t), OA.subVectors(e, t); - const l = eg.dot(eg), d = eg.dot(w0), h = eg.dot(OA), m = w0.dot(w0), S = w0.dot(OA), _ = l * m - d * d; - if (_ === 0) - return o.set(-2, -1, -1); - const T = 1 / _, C = (m * h - d * S) * T, D = (l * S - d * h) * T; - return o.set(1 - C - D, D, C); + i.subVectors(r, t), rg.subVectors(e, t), i.cross(rg); + const s = i.lengthSq(); + return s > 0 ? i.multiplyScalar(1 / Math.sqrt(s)) : i.set(0, 0, 0); + } + static getBarycoord(e, t, r, i, s) { + rg.subVectors(i, t), E0.subVectors(r, t), UA.subVectors(e, t); + const l = rg.dot(rg), d = rg.dot(E0), p = rg.dot(UA), g = E0.dot(E0), _ = E0.dot(UA), w = l * g - d * d; + if (w === 0) + return s.set(-2, -1, -1); + const T = 1 / w, R = (g * p - d * _) * T, D = (l * _ - d * p) * T; + return s.set(1 - R - D, D, R); } static containsPoint(e, t, r, i) { - return this.getBarycoord(e, t, r, i, E0), E0.x >= 0 && E0.y >= 0 && E0.x + E0.y <= 1; + return this.getBarycoord(e, t, r, i, M0), M0.x >= 0 && M0.y >= 0 && M0.x + M0.y <= 1; } - static getUV(e, t, r, i, o, l, d, h) { - return this.getBarycoord(e, t, r, i, E0), h.set(0, 0), h.addScaledVector(o, E0.x), h.addScaledVector(l, E0.y), h.addScaledVector(d, E0.z), h; + static getUV(e, t, r, i, s, l, d, p) { + return this.getBarycoord(e, t, r, i, M0), p.set(0, 0), p.addScaledVector(s, M0.x), p.addScaledVector(l, M0.y), p.addScaledVector(d, M0.z), p; } static isFrontFacing(e, t, r, i) { - return eg.subVectors(r, t), w0.subVectors(e, t), eg.cross(w0).dot(i) < 0; + return rg.subVectors(r, t), E0.subVectors(e, t), rg.cross(E0).dot(i) < 0; } set(e, t, r) { return this.a.copy(e), this.b.copy(t), this.c.copy(r), this; @@ -2972,67 +2972,67 @@ class xm { return this.a.copy(e.a), this.b.copy(e.b), this.c.copy(e.c), this; } getArea() { - return eg.subVectors(this.c, this.b), w0.subVectors(this.a, this.b), eg.cross(w0).length() * 0.5; + return rg.subVectors(this.c, this.b), E0.subVectors(this.a, this.b), rg.cross(E0).length() * 0.5; } getMidpoint(e) { return e.addVectors(this.a, this.b).add(this.c).multiplyScalar(1 / 3); } getNormal(e) { - return xm.getNormal(this.a, this.b, this.c, e); + return wm.getNormal(this.a, this.b, this.c, e); } getPlane(e) { return e.setFromCoplanarPoints(this.a, this.b, this.c); } getBarycoord(e, t) { - return xm.getBarycoord(e, this.a, this.b, this.c, t); + return wm.getBarycoord(e, this.a, this.b, this.c, t); } - getUV(e, t, r, i, o) { - return xm.getUV(e, this.a, this.b, this.c, t, r, i, o); + getUV(e, t, r, i, s) { + return wm.getUV(e, this.a, this.b, this.c, t, r, i, s); } containsPoint(e) { - return xm.containsPoint(e, this.a, this.b, this.c); + return wm.containsPoint(e, this.a, this.b, this.c); } isFrontFacing(e) { - return xm.isFrontFacing(this.a, this.b, this.c, e); + return wm.isFrontFacing(this.a, this.b, this.c, e); } intersectsBox(e) { return e.intersectsTriangle(this); } closestPointToPoint(e, t) { - const r = this.a, i = this.b, o = this.c; + const r = this.a, i = this.b, s = this.c; let l, d; - bb.subVectors(i, r), wb.subVectors(o, r), UA.subVectors(e, r); - const h = bb.dot(UA), m = wb.dot(UA); - if (h <= 0 && m <= 0) + Cw.subVectors(i, r), Rw.subVectors(s, r), zA.subVectors(e, r); + const p = Cw.dot(zA), g = Rw.dot(zA); + if (p <= 0 && g <= 0) return t.copy(r); - zA.subVectors(e, i); - const S = bb.dot(zA), _ = wb.dot(zA); - if (S >= 0 && _ <= S) + NA.subVectors(e, i); + const _ = Cw.dot(NA), w = Rw.dot(NA); + if (_ >= 0 && w <= _) return t.copy(i); - const T = h * _ - S * m; - if (T <= 0 && h >= 0 && S <= 0) - return l = h / (h - S), t.copy(r).addScaledVector(bb, l); - NA.subVectors(e, o); - const C = bb.dot(NA), D = wb.dot(NA); - if (D >= 0 && C <= D) - return t.copy(o); - const P = C * m - h * D; - if (P <= 0 && m >= 0 && D <= 0) - return d = m / (m - D), t.copy(r).addScaledVector(wb, d); - const U = S * D - C * _; - if (U <= 0 && _ - S >= 0 && C - D >= 0) - return IO.subVectors(o, i), d = (_ - S) / (_ - S + (C - D)), t.copy(i).addScaledVector(IO, d); - const B = 1 / (U + P + T); - return l = P * B, d = T * B, t.copy(r).addScaledVector(bb, l).addScaledVector(wb, d); + const T = p * w - _ * g; + if (T <= 0 && p >= 0 && _ <= 0) + return l = p / (p - _), t.copy(r).addScaledVector(Cw, l); + FA.subVectors(e, s); + const R = Cw.dot(FA), D = Rw.dot(FA); + if (D >= 0 && R <= D) + return t.copy(s); + const O = R * g - p * D; + if (O <= 0 && g >= 0 && D <= 0) + return d = g / (g - D), t.copy(r).addScaledVector(Rw, d); + const U = _ * D - R * w; + if (U <= 0 && w - _ >= 0 && R - D >= 0) + return VO.subVectors(s, i), d = (w - _) / (w - _ + (R - D)), t.copy(i).addScaledVector(VO, d); + const H = 1 / (U + O + T); + return l = O * H, d = T * H, t.copy(r).addScaledVector(Cw, l).addScaledVector(Rw, d); } equals(e) { return e.a.equals(this.a) && e.b.equals(this.b) && e.c.equals(this.c); } } -let TH = 0; -class ff extends Mm { +let kH = 0; +class hf extends Cm { constructor() { - super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: TH++ }), this.uuid = bm(), this.name = "", this.type = "Material", this.blending = L0, this.side = py, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.blendSrc = UC, this.blendDst = zC, this.blendEquation = AS, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = bC, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = pF, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = pC, this.stencilZFail = pC, this.stencilZPass = pC, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0; + super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: kH++ }), this.uuid = Em(), this.name = "", this.type = "Material", this.blending = P0, this.side = vy, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.blendSrc = zC, this.blendDst = NC, this.blendEquation = L_, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = bC, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = RF, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = pC, this.stencilZFail = pC, this.stencilZPass = pC, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0; } get alphaTest() { return this._alphaTest; @@ -3058,7 +3058,7 @@ class ff extends Mm { continue; } if (t === "shading") { - console.warn("THREE." + this.type + ": .shading has been removed. Use the boolean .flatShading instead."), this.flatShading = r === EN; + console.warn("THREE." + this.type + ": .shading has been removed. Use the boolean .flatShading instead."), this.flatShading = r === kN; continue; } const i = this[t]; @@ -3082,18 +3082,18 @@ class ff extends Mm { generator: "Material.toJSON" } }; - r.uuid = this.uuid, r.type = this.type, this.name !== "" && (r.name = this.name), this.color && this.color.isColor && (r.color = this.color.getHex()), this.roughness !== void 0 && (r.roughness = this.roughness), this.metalness !== void 0 && (r.metalness = this.metalness), this.sheen !== void 0 && (r.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (r.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (r.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (r.emissive = this.emissive.getHex()), this.emissiveIntensity && this.emissiveIntensity !== 1 && (r.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (r.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (r.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (r.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (r.shininess = this.shininess), this.clearcoat !== void 0 && (r.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (r.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (r.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (r.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (r.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, r.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (r.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (r.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (r.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (r.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (r.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.map && this.map.isTexture && (r.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (r.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (r.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (r.lightMap = this.lightMap.toJSON(e).uuid, r.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (r.aoMap = this.aoMap.toJSON(e).uuid, r.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (r.bumpMap = this.bumpMap.toJSON(e).uuid, r.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (r.normalMap = this.normalMap.toJSON(e).uuid, r.normalMapType = this.normalMapType, r.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (r.displacementMap = this.displacementMap.toJSON(e).uuid, r.displacementScale = this.displacementScale, r.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (r.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (r.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (r.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (r.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (r.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (r.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (r.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (r.combine = this.combine)), this.envMapIntensity !== void 0 && (r.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (r.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (r.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (r.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (r.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (r.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (r.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (r.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && (r.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (r.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (r.size = this.size), this.shadowSide !== null && (r.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (r.sizeAttenuation = this.sizeAttenuation), this.blending !== L0 && (r.blending = this.blending), this.side !== py && (r.side = this.side), this.vertexColors && (r.vertexColors = !0), this.opacity < 1 && (r.opacity = this.opacity), this.transparent === !0 && (r.transparent = this.transparent), r.depthFunc = this.depthFunc, r.depthTest = this.depthTest, r.depthWrite = this.depthWrite, r.colorWrite = this.colorWrite, r.stencilWrite = this.stencilWrite, r.stencilWriteMask = this.stencilWriteMask, r.stencilFunc = this.stencilFunc, r.stencilRef = this.stencilRef, r.stencilFuncMask = this.stencilFuncMask, r.stencilFail = this.stencilFail, r.stencilZFail = this.stencilZFail, r.stencilZPass = this.stencilZPass, this.rotation !== void 0 && this.rotation !== 0 && (r.rotation = this.rotation), this.polygonOffset === !0 && (r.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (r.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (r.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (r.linewidth = this.linewidth), this.dashSize !== void 0 && (r.dashSize = this.dashSize), this.gapSize !== void 0 && (r.gapSize = this.gapSize), this.scale !== void 0 && (r.scale = this.scale), this.dithering === !0 && (r.dithering = !0), this.alphaTest > 0 && (r.alphaTest = this.alphaTest), this.alphaToCoverage === !0 && (r.alphaToCoverage = this.alphaToCoverage), this.premultipliedAlpha === !0 && (r.premultipliedAlpha = this.premultipliedAlpha), this.wireframe === !0 && (r.wireframe = this.wireframe), this.wireframeLinewidth > 1 && (r.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (r.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (r.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (r.flatShading = this.flatShading), this.visible === !1 && (r.visible = !1), this.toneMapped === !1 && (r.toneMapped = !1), this.fog === !1 && (r.fog = !1), JSON.stringify(this.userData) !== "{}" && (r.userData = this.userData); - function i(o) { + r.uuid = this.uuid, r.type = this.type, this.name !== "" && (r.name = this.name), this.color && this.color.isColor && (r.color = this.color.getHex()), this.roughness !== void 0 && (r.roughness = this.roughness), this.metalness !== void 0 && (r.metalness = this.metalness), this.sheen !== void 0 && (r.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (r.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (r.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (r.emissive = this.emissive.getHex()), this.emissiveIntensity && this.emissiveIntensity !== 1 && (r.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (r.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (r.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (r.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (r.shininess = this.shininess), this.clearcoat !== void 0 && (r.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (r.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (r.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (r.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (r.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, r.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (r.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (r.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (r.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (r.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (r.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.map && this.map.isTexture && (r.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (r.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (r.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (r.lightMap = this.lightMap.toJSON(e).uuid, r.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (r.aoMap = this.aoMap.toJSON(e).uuid, r.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (r.bumpMap = this.bumpMap.toJSON(e).uuid, r.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (r.normalMap = this.normalMap.toJSON(e).uuid, r.normalMapType = this.normalMapType, r.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (r.displacementMap = this.displacementMap.toJSON(e).uuid, r.displacementScale = this.displacementScale, r.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (r.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (r.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (r.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (r.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (r.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (r.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (r.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (r.combine = this.combine)), this.envMapIntensity !== void 0 && (r.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (r.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (r.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (r.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (r.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (r.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (r.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (r.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && (r.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (r.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (r.size = this.size), this.shadowSide !== null && (r.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (r.sizeAttenuation = this.sizeAttenuation), this.blending !== P0 && (r.blending = this.blending), this.side !== vy && (r.side = this.side), this.vertexColors && (r.vertexColors = !0), this.opacity < 1 && (r.opacity = this.opacity), this.transparent === !0 && (r.transparent = this.transparent), r.depthFunc = this.depthFunc, r.depthTest = this.depthTest, r.depthWrite = this.depthWrite, r.colorWrite = this.colorWrite, r.stencilWrite = this.stencilWrite, r.stencilWriteMask = this.stencilWriteMask, r.stencilFunc = this.stencilFunc, r.stencilRef = this.stencilRef, r.stencilFuncMask = this.stencilFuncMask, r.stencilFail = this.stencilFail, r.stencilZFail = this.stencilZFail, r.stencilZPass = this.stencilZPass, this.rotation !== void 0 && this.rotation !== 0 && (r.rotation = this.rotation), this.polygonOffset === !0 && (r.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (r.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (r.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (r.linewidth = this.linewidth), this.dashSize !== void 0 && (r.dashSize = this.dashSize), this.gapSize !== void 0 && (r.gapSize = this.gapSize), this.scale !== void 0 && (r.scale = this.scale), this.dithering === !0 && (r.dithering = !0), this.alphaTest > 0 && (r.alphaTest = this.alphaTest), this.alphaToCoverage === !0 && (r.alphaToCoverage = this.alphaToCoverage), this.premultipliedAlpha === !0 && (r.premultipliedAlpha = this.premultipliedAlpha), this.wireframe === !0 && (r.wireframe = this.wireframe), this.wireframeLinewidth > 1 && (r.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (r.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (r.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (r.flatShading = this.flatShading), this.visible === !1 && (r.visible = !1), this.toneMapped === !1 && (r.toneMapped = !1), this.fog === !1 && (r.fog = !1), JSON.stringify(this.userData) !== "{}" && (r.userData = this.userData); + function i(s) { const l = []; - for (const d in o) { - const h = o[d]; - delete h.metadata, l.push(h); + for (const d in s) { + const p = s[d]; + delete p.metadata, l.push(p); } return l; } if (t) { - const o = i(e.textures), l = i(e.images); - o.length > 0 && (r.textures = o), l.length > 0 && (r.images = l); + const s = i(e.textures), l = i(e.images); + s.length > 0 && (r.textures = s), l.length > 0 && (r.images = l); } return r; } @@ -3107,8 +3107,8 @@ class ff extends Mm { if (t !== null) { const i = t.length; r = new Array(i); - for (let o = 0; o !== i; ++o) - r[o] = t[o].clone(); + for (let s = 0; s !== i; ++s) + r[s] = t[s].clone(); } return this.clippingPlanes = r, this.clipIntersection = e.clipIntersection, this.clipShadows = e.clipShadows, this.shadowSide = e.shadowSide, this.colorWrite = e.colorWrite, this.precision = e.precision, this.polygonOffset = e.polygonOffset, this.polygonOffsetFactor = e.polygonOffsetFactor, this.polygonOffsetUnits = e.polygonOffsetUnits, this.dithering = e.dithering, this.alphaTest = e.alphaTest, this.alphaToCoverage = e.alphaToCoverage, this.premultipliedAlpha = e.premultipliedAlpha, this.visible = e.visible, this.toneMapped = e.toneMapped, this.userData = JSON.parse(JSON.stringify(e.userData)), this; } @@ -3119,20 +3119,20 @@ class ff extends Mm { e === !0 && this.version++; } } -class lg extends ff { +class fg extends hf { constructor(e) { - super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new Pn(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = ZM, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e); + super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new Un(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = ZM, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e); } copy(e) { return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.fog = e.fog, this; } } -const xc = /* @__PURE__ */ new ve(), v2 = /* @__PURE__ */ new Ft(); -class os { +const xc = /* @__PURE__ */ new ge(), v2 = /* @__PURE__ */ new zt(); +class ls { constructor(e, t, r) { if (Array.isArray(e)) throw new TypeError("THREE.BufferAttribute: array should be a Typed Array."); - this.isBufferAttribute = !0, this.name = "", this.array = e, this.itemSize = t, this.count = e !== void 0 ? e.length / t : 0, this.normalized = r === !0, this.usage = PM, this.updateRange = { offset: 0, count: -1 }, this.version = 0; + this.isBufferAttribute = !0, this.name = "", this.array = e, this.itemSize = t, this.count = e !== void 0 ? e.length / t : 0, this.normalized = r === !0, this.usage = OM, this.updateRange = { offset: 0, count: -1 }, this.version = 0; } onUploadCallback() { } @@ -3147,7 +3147,7 @@ class os { } copyAt(e, t, r) { e *= this.itemSize, r *= t.itemSize; - for (let i = 0, o = this.itemSize; i < o; i++) + for (let i = 0, s = this.itemSize; i < s; i++) this.array[e + i] = t.array[r + i]; return this; } @@ -3157,36 +3157,36 @@ class os { copyColorsArray(e) { const t = this.array; let r = 0; - for (let i = 0, o = e.length; i < o; i++) { + for (let i = 0, s = e.length; i < s; i++) { let l = e[i]; - l === void 0 && (console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined", i), l = new Pn()), t[r++] = l.r, t[r++] = l.g, t[r++] = l.b; + l === void 0 && (console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined", i), l = new Un()), t[r++] = l.r, t[r++] = l.g, t[r++] = l.b; } return this; } copyVector2sArray(e) { const t = this.array; let r = 0; - for (let i = 0, o = e.length; i < o; i++) { + for (let i = 0, s = e.length; i < s; i++) { let l = e[i]; - l === void 0 && (console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined", i), l = new Ft()), t[r++] = l.x, t[r++] = l.y; + l === void 0 && (console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined", i), l = new zt()), t[r++] = l.x, t[r++] = l.y; } return this; } copyVector3sArray(e) { const t = this.array; let r = 0; - for (let i = 0, o = e.length; i < o; i++) { + for (let i = 0, s = e.length; i < s; i++) { let l = e[i]; - l === void 0 && (console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined", i), l = new ve()), t[r++] = l.x, t[r++] = l.y, t[r++] = l.z; + l === void 0 && (console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined", i), l = new ge()), t[r++] = l.x, t[r++] = l.y, t[r++] = l.z; } return this; } copyVector4sArray(e) { const t = this.array; let r = 0; - for (let i = 0, o = e.length; i < o; i++) { + for (let i = 0, s = e.length; i < s; i++) { let l = e[i]; - l === void 0 && (console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined", i), l = new la()), t[r++] = l.x, t[r++] = l.y, t[r++] = l.z, t[r++] = l.w; + l === void 0 && (console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined", i), l = new ra()), t[r++] = l.x, t[r++] = l.y, t[r++] = l.z, t[r++] = l.w; } return this; } @@ -3247,8 +3247,8 @@ class os { setXYZ(e, t, r, i) { return e *= this.itemSize, this.array[e + 0] = t, this.array[e + 1] = r, this.array[e + 2] = i, this; } - setXYZW(e, t, r, i, o) { - return e *= this.itemSize, this.array[e + 0] = t, this.array[e + 1] = r, this.array[e + 2] = i, this.array[e + 3] = o, this; + setXYZW(e, t, r, i, s) { + return e *= this.itemSize, this.array[e + 0] = t, this.array[e + 1] = r, this.array[e + 2] = i, this.array[e + 3] = s, this; } onUpload(e) { return this.onUploadCallback = e, this; @@ -3263,70 +3263,70 @@ class os { array: Array.from(this.array), normalized: this.normalized }; - return this.name !== "" && (e.name = this.name), this.usage !== PM && (e.usage = this.usage), (this.updateRange.offset !== 0 || this.updateRange.count !== -1) && (e.updateRange = this.updateRange), e; + return this.name !== "" && (e.name = this.name), this.usage !== OM && (e.usage = this.usage), (this.updateRange.offset !== 0 || this.updateRange.count !== -1) && (e.updateRange = this.updateRange), e; } } -class CH extends os { +class IH extends ls { constructor(e, t, r) { super(new Int8Array(e), t, r); } } -class RH extends os { +class BH extends ls { constructor(e, t, r) { super(new Uint8Array(e), t, r); } } -class AH extends os { +class HH extends ls { constructor(e, t, r) { super(new Uint8ClampedArray(e), t, r); } } -class DH extends os { +class VH extends ls { constructor(e, t, r) { super(new Int16Array(e), t, r); } } -class Q3 extends os { +class Q3 extends ls { constructor(e, t, r) { super(new Uint16Array(e), t, r); } } -class LH extends os { +class GH extends ls { constructor(e, t, r) { super(new Int32Array(e), t, r); } } -class Z3 extends os { +class Z3 extends ls { constructor(e, t, r) { super(new Uint32Array(e), t, r); } } -class PH extends os { +class WH extends ls { constructor(e, t, r) { super(new Uint16Array(e), t, r), this.isFloat16BufferAttribute = !0; } } -class sr extends os { +class sr extends ls { constructor(e, t, r) { super(new Float32Array(e), t, r); } } -class OH extends os { +class jH extends ls { constructor(e, t, r) { super(new Float64Array(e), t, r); } } -let UH = 0; -const pv = /* @__PURE__ */ new si(), FA = /* @__PURE__ */ new Xa(), Eb = /* @__PURE__ */ new ve(), ym = /* @__PURE__ */ new og(), $E = /* @__PURE__ */ new og(), Vf = /* @__PURE__ */ new ve(); -class ui extends Mm { +let YH = 0; +const gv = /* @__PURE__ */ new Kr(), kA = /* @__PURE__ */ new Xa(), Aw = /* @__PURE__ */ new ge(), Sm = /* @__PURE__ */ new cg(), $E = /* @__PURE__ */ new cg(), Wf = /* @__PURE__ */ new ge(); +class oi extends Cm { constructor() { - super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: UH++ }), this.uuid = bm(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {}; + super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: YH++ }), this.uuid = Em(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {}; } getIndex() { return this.index; } setIndex(e) { - return Array.isArray(e) ? this.index = new (gF(e) ? Z3 : Q3)(e, 1) : this.index = e, this; + return Array.isArray(e) ? this.index = new (LF(e) ? Z3 : Q3)(e, 1) : this.index = e, this; } getAttribute(e) { return this.attributes[e]; @@ -3358,87 +3358,87 @@ class ui extends Mm { t !== void 0 && (t.applyMatrix4(e), t.needsUpdate = !0); const r = this.attributes.normal; if (r !== void 0) { - const o = new jh().getNormalMatrix(e); - r.applyNormalMatrix(o), r.needsUpdate = !0; + const s = new Xh().getNormalMatrix(e); + r.applyNormalMatrix(s), r.needsUpdate = !0; } const i = this.attributes.tangent; return i !== void 0 && (i.transformDirection(e), i.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this; } applyQuaternion(e) { - return pv.makeRotationFromQuaternion(e), this.applyMatrix4(pv), this; + return gv.makeRotationFromQuaternion(e), this.applyMatrix4(gv), this; } rotateX(e) { - return pv.makeRotationX(e), this.applyMatrix4(pv), this; + return gv.makeRotationX(e), this.applyMatrix4(gv), this; } rotateY(e) { - return pv.makeRotationY(e), this.applyMatrix4(pv), this; + return gv.makeRotationY(e), this.applyMatrix4(gv), this; } rotateZ(e) { - return pv.makeRotationZ(e), this.applyMatrix4(pv), this; + return gv.makeRotationZ(e), this.applyMatrix4(gv), this; } translate(e, t, r) { - return pv.makeTranslation(e, t, r), this.applyMatrix4(pv), this; + return gv.makeTranslation(e, t, r), this.applyMatrix4(gv), this; } scale(e, t, r) { - return pv.makeScale(e, t, r), this.applyMatrix4(pv), this; + return gv.makeScale(e, t, r), this.applyMatrix4(gv), this; } lookAt(e) { - return FA.lookAt(e), FA.updateMatrix(), this.applyMatrix4(FA.matrix), this; + return kA.lookAt(e), kA.updateMatrix(), this.applyMatrix4(kA.matrix), this; } center() { - return this.computeBoundingBox(), this.boundingBox.getCenter(Eb).negate(), this.translate(Eb.x, Eb.y, Eb.z), this; + return this.computeBoundingBox(), this.boundingBox.getCenter(Aw).negate(), this.translate(Aw.x, Aw.y, Aw.z), this; } setFromPoints(e) { const t = []; for (let r = 0, i = e.length; r < i; r++) { - const o = e[r]; - t.push(o.x, o.y, o.z || 0); + const s = e[r]; + t.push(s.x, s.y, s.z || 0); } return this.setAttribute("position", new sr(t, 3)), this; } computeBoundingBox() { - this.boundingBox === null && (this.boundingBox = new og()); + this.boundingBox === null && (this.boundingBox = new cg()); const e = this.attributes.position, t = this.morphAttributes.position; if (e && e.isGLBufferAttribute) { console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".', this), this.boundingBox.set( - new ve(-1 / 0, -1 / 0, -1 / 0), - new ve(1 / 0, 1 / 0, 1 / 0) + new ge(-1 / 0, -1 / 0, -1 / 0), + new ge(1 / 0, 1 / 0, 1 / 0) ); return; } if (e !== void 0) { if (this.boundingBox.setFromBufferAttribute(e), t) for (let r = 0, i = t.length; r < i; r++) { - const o = t[r]; - ym.setFromBufferAttribute(o), this.morphTargetsRelative ? (Vf.addVectors(this.boundingBox.min, ym.min), this.boundingBox.expandByPoint(Vf), Vf.addVectors(this.boundingBox.max, ym.max), this.boundingBox.expandByPoint(Vf)) : (this.boundingBox.expandByPoint(ym.min), this.boundingBox.expandByPoint(ym.max)); + const s = t[r]; + Sm.setFromBufferAttribute(s), this.morphTargetsRelative ? (Wf.addVectors(this.boundingBox.min, Sm.min), this.boundingBox.expandByPoint(Wf), Wf.addVectors(this.boundingBox.max, Sm.max), this.boundingBox.expandByPoint(Wf)) : (this.boundingBox.expandByPoint(Sm.min), this.boundingBox.expandByPoint(Sm.max)); } } else this.boundingBox.makeEmpty(); (isNaN(this.boundingBox.min.x) || isNaN(this.boundingBox.min.y) || isNaN(this.boundingBox.min.z)) && console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.', this); } computeBoundingSphere() { - this.boundingSphere === null && (this.boundingSphere = new vy()); + this.boundingSphere === null && (this.boundingSphere = new yy()); const e = this.attributes.position, t = this.morphAttributes.position; if (e && e.isGLBufferAttribute) { - console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".', this), this.boundingSphere.set(new ve(), 1 / 0); + console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".', this), this.boundingSphere.set(new ge(), 1 / 0); return; } if (e) { const r = this.boundingSphere.center; - if (ym.setFromBufferAttribute(e), t) - for (let o = 0, l = t.length; o < l; o++) { - const d = t[o]; - $E.setFromBufferAttribute(d), this.morphTargetsRelative ? (Vf.addVectors(ym.min, $E.min), ym.expandByPoint(Vf), Vf.addVectors(ym.max, $E.max), ym.expandByPoint(Vf)) : (ym.expandByPoint($E.min), ym.expandByPoint($E.max)); + if (Sm.setFromBufferAttribute(e), t) + for (let s = 0, l = t.length; s < l; s++) { + const d = t[s]; + $E.setFromBufferAttribute(d), this.morphTargetsRelative ? (Wf.addVectors(Sm.min, $E.min), Sm.expandByPoint(Wf), Wf.addVectors(Sm.max, $E.max), Sm.expandByPoint(Wf)) : (Sm.expandByPoint($E.min), Sm.expandByPoint($E.max)); } - ym.getCenter(r); + Sm.getCenter(r); let i = 0; - for (let o = 0, l = e.count; o < l; o++) - Vf.fromBufferAttribute(e, o), i = Math.max(i, r.distanceToSquared(Vf)); + for (let s = 0, l = e.count; s < l; s++) + Wf.fromBufferAttribute(e, s), i = Math.max(i, r.distanceToSquared(Wf)); if (t) - for (let o = 0, l = t.length; o < l; o++) { - const d = t[o], h = this.morphTargetsRelative; - for (let m = 0, S = d.count; m < S; m++) - Vf.fromBufferAttribute(d, m), h && (Eb.fromBufferAttribute(e, m), Vf.add(Eb)), i = Math.max(i, r.distanceToSquared(Vf)); + for (let s = 0, l = t.length; s < l; s++) { + const d = t[s], p = this.morphTargetsRelative; + for (let g = 0, _ = d.count; g < _; g++) + Wf.fromBufferAttribute(d, g), p && (Aw.fromBufferAttribute(e, g), Wf.add(Aw)), i = Math.max(i, r.distanceToSquared(Wf)); } this.boundingSphere.radius = Math.sqrt(i), isNaN(this.boundingSphere.radius) && console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.', this); } @@ -3449,43 +3449,43 @@ class ui extends Mm { console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)"); return; } - const r = e.array, i = t.position.array, o = t.normal.array, l = t.uv.array, d = i.length / 3; - this.hasAttribute("tangent") === !1 && this.setAttribute("tangent", new os(new Float32Array(4 * d), 4)); - const h = this.getAttribute("tangent").array, m = [], S = []; - for (let ie = 0; ie < d; ie++) - m[ie] = new ve(), S[ie] = new ve(); - const _ = new ve(), T = new ve(), C = new ve(), D = new Ft(), P = new Ft(), U = new Ft(), B = new ve(), k = new ve(); - function V(ie, fe, le) { - _.fromArray(i, ie * 3), T.fromArray(i, fe * 3), C.fromArray(i, le * 3), D.fromArray(l, ie * 2), P.fromArray(l, fe * 2), U.fromArray(l, le * 2), T.sub(_), C.sub(_), P.sub(D), U.sub(D); - const Ee = 1 / (P.x * U.y - U.x * P.y); - !isFinite(Ee) || (B.copy(T).multiplyScalar(U.y).addScaledVector(C, -P.y).multiplyScalar(Ee), k.copy(C).multiplyScalar(P.x).addScaledVector(T, -U.x).multiplyScalar(Ee), m[ie].add(B), m[fe].add(B), m[le].add(B), S[ie].add(k), S[fe].add(k), S[le].add(k)); - } - let I = this.groups; - I.length === 0 && (I = [{ + const r = e.array, i = t.position.array, s = t.normal.array, l = t.uv.array, d = i.length / 3; + this.hasAttribute("tangent") === !1 && this.setAttribute("tangent", new ls(new Float32Array(4 * d), 4)); + const p = this.getAttribute("tangent").array, g = [], _ = []; + for (let se = 0; se < d; se++) + g[se] = new ge(), _[se] = new ge(); + const w = new ge(), T = new ge(), R = new ge(), D = new zt(), O = new zt(), U = new zt(), H = new ge(), I = new ge(); + function G(se, ce, ue) { + w.fromArray(i, se * 3), T.fromArray(i, ce * 3), R.fromArray(i, ue * 3), D.fromArray(l, se * 2), O.fromArray(l, ce * 2), U.fromArray(l, ue * 2), T.sub(w), R.sub(w), O.sub(D), U.sub(D); + const Me = 1 / (O.x * U.y - U.x * O.y); + !isFinite(Me) || (H.copy(T).multiplyScalar(U.y).addScaledVector(R, -O.y).multiplyScalar(Me), I.copy(R).multiplyScalar(O.x).addScaledVector(T, -U.x).multiplyScalar(Me), g[se].add(H), g[ce].add(H), g[ue].add(H), _[se].add(I), _[ce].add(I), _[ue].add(I)); + } + let B = this.groups; + B.length === 0 && (B = [{ start: 0, count: r.length }]); - for (let ie = 0, fe = I.length; ie < fe; ++ie) { - const le = I[ie], Ee = le.start, he = le.count; - for (let Fe = Ee, Ce = Ee + he; Fe < Ce; Fe += 3) - V( - r[Fe + 0], - r[Fe + 1], - r[Fe + 2] + for (let se = 0, ce = B.length; se < ce; ++se) { + const ue = B[se], Me = ue.start, me = ue.count; + for (let De = Me, Re = Me + me; De < Re; De += 3) + G( + r[De + 0], + r[De + 1], + r[De + 2] ); } - const X = new ve(), J = new ve(), $ = new ve(), W = new ve(); - function ne(ie) { - $.fromArray(o, ie * 3), W.copy($); - const fe = m[ie]; - X.copy(fe), X.sub($.multiplyScalar($.dot(fe))).normalize(), J.crossVectors(W, fe); - const Ee = J.dot(S[ie]) < 0 ? -1 : 1; - h[ie * 4] = X.x, h[ie * 4 + 1] = X.y, h[ie * 4 + 2] = X.z, h[ie * 4 + 3] = Ee; + const Q = new ge(), K = new ge(), te = new ge(), Y = new ge(); + function re(se) { + te.fromArray(s, se * 3), Y.copy(te); + const ce = g[se]; + Q.copy(ce), Q.sub(te.multiplyScalar(te.dot(ce))).normalize(), K.crossVectors(Y, ce); + const Me = K.dot(_[se]) < 0 ? -1 : 1; + p[se * 4] = Q.x, p[se * 4 + 1] = Q.y, p[se * 4 + 2] = Q.z, p[se * 4 + 3] = Me; } - for (let ie = 0, fe = I.length; ie < fe; ++ie) { - const le = I[ie], Ee = le.start, he = le.count; - for (let Fe = Ee, Ce = Ee + he; Fe < Ce; Fe += 3) - ne(r[Fe + 0]), ne(r[Fe + 1]), ne(r[Fe + 2]); + for (let se = 0, ce = B.length; se < ce; ++se) { + const ue = B[se], Me = ue.start, me = ue.count; + for (let De = Me, Re = Me + me; De < Re; De += 3) + re(r[De + 0]), re(r[De + 1]), re(r[De + 2]); } } computeVertexNormals() { @@ -3493,19 +3493,19 @@ class ui extends Mm { if (t !== void 0) { let r = this.getAttribute("normal"); if (r === void 0) - r = new os(new Float32Array(t.count * 3), 3), this.setAttribute("normal", r); + r = new ls(new Float32Array(t.count * 3), 3), this.setAttribute("normal", r); else - for (let T = 0, C = r.count; T < C; T++) + for (let T = 0, R = r.count; T < R; T++) r.setXYZ(T, 0, 0, 0); - const i = new ve(), o = new ve(), l = new ve(), d = new ve(), h = new ve(), m = new ve(), S = new ve(), _ = new ve(); + const i = new ge(), s = new ge(), l = new ge(), d = new ge(), p = new ge(), g = new ge(), _ = new ge(), w = new ge(); if (e) - for (let T = 0, C = e.count; T < C; T += 3) { - const D = e.getX(T + 0), P = e.getX(T + 1), U = e.getX(T + 2); - i.fromBufferAttribute(t, D), o.fromBufferAttribute(t, P), l.fromBufferAttribute(t, U), S.subVectors(l, o), _.subVectors(i, o), S.cross(_), d.fromBufferAttribute(r, D), h.fromBufferAttribute(r, P), m.fromBufferAttribute(r, U), d.add(S), h.add(S), m.add(S), r.setXYZ(D, d.x, d.y, d.z), r.setXYZ(P, h.x, h.y, h.z), r.setXYZ(U, m.x, m.y, m.z); + for (let T = 0, R = e.count; T < R; T += 3) { + const D = e.getX(T + 0), O = e.getX(T + 1), U = e.getX(T + 2); + i.fromBufferAttribute(t, D), s.fromBufferAttribute(t, O), l.fromBufferAttribute(t, U), _.subVectors(l, s), w.subVectors(i, s), _.cross(w), d.fromBufferAttribute(r, D), p.fromBufferAttribute(r, O), g.fromBufferAttribute(r, U), d.add(_), p.add(_), g.add(_), r.setXYZ(D, d.x, d.y, d.z), r.setXYZ(O, p.x, p.y, p.z), r.setXYZ(U, g.x, g.y, g.z); } else - for (let T = 0, C = t.count; T < C; T += 3) - i.fromBufferAttribute(t, T + 0), o.fromBufferAttribute(t, T + 1), l.fromBufferAttribute(t, T + 2), S.subVectors(l, o), _.subVectors(i, o), S.cross(_), r.setXYZ(T + 0, S.x, S.y, S.z), r.setXYZ(T + 1, S.x, S.y, S.z), r.setXYZ(T + 2, S.x, S.y, S.z); + for (let T = 0, R = t.count; T < R; T += 3) + i.fromBufferAttribute(t, T + 0), s.fromBufferAttribute(t, T + 1), l.fromBufferAttribute(t, T + 2), _.subVectors(l, s), w.subVectors(i, s), _.cross(w), r.setXYZ(T + 0, _.x, _.y, _.z), r.setXYZ(T + 1, _.x, _.y, _.z), r.setXYZ(T + 2, _.x, _.y, _.z); this.normalizeNormals(), r.needsUpdate = !0; } } @@ -3521,49 +3521,49 @@ class ui extends Mm { for (const i in r) { if (e.attributes[i] === void 0) continue; - const l = r[i].array, d = e.attributes[i], h = d.array, m = d.itemSize * t, S = Math.min(h.length, l.length - m); - for (let _ = 0, T = m; _ < S; _++, T++) - l[T] = h[_]; + const l = r[i].array, d = e.attributes[i], p = d.array, g = d.itemSize * t, _ = Math.min(p.length, l.length - g); + for (let w = 0, T = g; w < _; w++, T++) + l[T] = p[w]; } return this; } normalizeNormals() { const e = this.attributes.normal; for (let t = 0, r = e.count; t < r; t++) - Vf.fromBufferAttribute(e, t), Vf.normalize(), e.setXYZ(t, Vf.x, Vf.y, Vf.z); + Wf.fromBufferAttribute(e, t), Wf.normalize(), e.setXYZ(t, Wf.x, Wf.y, Wf.z); } toNonIndexed() { - function e(d, h) { - const m = d.array, S = d.itemSize, _ = d.normalized, T = new m.constructor(h.length * S); - let C = 0, D = 0; - for (let P = 0, U = h.length; P < U; P++) { - d.isInterleavedBufferAttribute ? C = h[P] * d.data.stride + d.offset : C = h[P] * S; - for (let B = 0; B < S; B++) - T[D++] = m[C++]; + function e(d, p) { + const g = d.array, _ = d.itemSize, w = d.normalized, T = new g.constructor(p.length * _); + let R = 0, D = 0; + for (let O = 0, U = p.length; O < U; O++) { + d.isInterleavedBufferAttribute ? R = p[O] * d.data.stride + d.offset : R = p[O] * _; + for (let H = 0; H < _; H++) + T[D++] = g[R++]; } - return new os(T, S, _); + return new ls(T, _, w); } if (this.index === null) return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."), this; - const t = new ui(), r = this.index.array, i = this.attributes; + const t = new oi(), r = this.index.array, i = this.attributes; for (const d in i) { - const h = i[d], m = e(h, r); - t.setAttribute(d, m); + const p = i[d], g = e(p, r); + t.setAttribute(d, g); } - const o = this.morphAttributes; - for (const d in o) { - const h = [], m = o[d]; - for (let S = 0, _ = m.length; S < _; S++) { - const T = m[S], C = e(T, r); - h.push(C); + const s = this.morphAttributes; + for (const d in s) { + const p = [], g = s[d]; + for (let _ = 0, w = g.length; _ < w; _++) { + const T = g[_], R = e(T, r); + p.push(R); } - t.morphAttributes[d] = h; + t.morphAttributes[d] = p; } t.morphTargetsRelative = this.morphTargetsRelative; const l = this.groups; - for (let d = 0, h = l.length; d < h; d++) { - const m = l[d]; - t.addGroup(m.start, m.count, m.materialIndex); + for (let d = 0, p = l.length; d < p; d++) { + const g = l[d]; + t.addGroup(g.start, g.count, g.materialIndex); } return t; } @@ -3576,9 +3576,9 @@ class ui extends Mm { } }; if (e.uuid = this.uuid, e.type = this.type, this.name !== "" && (e.name = this.name), Object.keys(this.userData).length > 0 && (e.userData = this.userData), this.parameters !== void 0) { - const h = this.parameters; - for (const m in h) - h[m] !== void 0 && (e[m] = h[m]); + const p = this.parameters; + for (const g in p) + p[g] !== void 0 && (e[g] = p[g]); return e; } e.data = { attributes: {} }; @@ -3588,21 +3588,21 @@ class ui extends Mm { array: Array.prototype.slice.call(t.array) }); const r = this.attributes; - for (const h in r) { - const m = r[h]; - e.data.attributes[h] = m.toJSON(e.data); + for (const p in r) { + const g = r[p]; + e.data.attributes[p] = g.toJSON(e.data); } const i = {}; - let o = !1; - for (const h in this.morphAttributes) { - const m = this.morphAttributes[h], S = []; - for (let _ = 0, T = m.length; _ < T; _++) { - const C = m[_]; - S.push(C.toJSON(e.data)); + let s = !1; + for (const p in this.morphAttributes) { + const g = this.morphAttributes[p], _ = []; + for (let w = 0, T = g.length; w < T; w++) { + const R = g[w]; + _.push(R.toJSON(e.data)); } - S.length > 0 && (i[h] = S, o = !0); + _.length > 0 && (i[p] = _, s = !0); } - o && (e.data.morphAttributes = i, e.data.morphTargetsRelative = this.morphTargetsRelative); + s && (e.data.morphAttributes = i, e.data.morphTargetsRelative = this.morphTargetsRelative); const l = this.groups; l.length > 0 && (e.data.groups = JSON.parse(JSON.stringify(l))); const d = this.boundingSphere; @@ -3621,35 +3621,35 @@ class ui extends Mm { const r = e.index; r !== null && this.setIndex(r.clone(t)); const i = e.attributes; - for (const m in i) { - const S = i[m]; - this.setAttribute(m, S.clone(t)); + for (const g in i) { + const _ = i[g]; + this.setAttribute(g, _.clone(t)); } - const o = e.morphAttributes; - for (const m in o) { - const S = [], _ = o[m]; - for (let T = 0, C = _.length; T < C; T++) - S.push(_[T].clone(t)); - this.morphAttributes[m] = S; + const s = e.morphAttributes; + for (const g in s) { + const _ = [], w = s[g]; + for (let T = 0, R = w.length; T < R; T++) + _.push(w[T].clone(t)); + this.morphAttributes[g] = _; } this.morphTargetsRelative = e.morphTargetsRelative; const l = e.groups; - for (let m = 0, S = l.length; m < S; m++) { - const _ = l[m]; - this.addGroup(_.start, _.count, _.materialIndex); + for (let g = 0, _ = l.length; g < _; g++) { + const w = l[g]; + this.addGroup(w.start, w.count, w.materialIndex); } const d = e.boundingBox; d !== null && (this.boundingBox = d.clone()); - const h = e.boundingSphere; - return h !== null && (this.boundingSphere = h.clone()), this.drawRange.start = e.drawRange.start, this.drawRange.count = e.drawRange.count, this.userData = e.userData, e.parameters !== void 0 && (this.parameters = Object.assign({}, e.parameters)), this; + const p = e.boundingSphere; + return p !== null && (this.boundingSphere = p.clone()), this.drawRange.start = e.drawRange.start, this.drawRange.count = e.drawRange.count, this.userData = e.userData, e.parameters !== void 0 && (this.parameters = Object.assign({}, e.parameters)), this; } dispose() { this.dispatchEvent({ type: "dispose" }); } } -const BO = /* @__PURE__ */ new si(), Mb = /* @__PURE__ */ new KM(), kA = /* @__PURE__ */ new vy(), Vx = /* @__PURE__ */ new ve(), Gx = /* @__PURE__ */ new ve(), Wx = /* @__PURE__ */ new ve(), IA = /* @__PURE__ */ new ve(), BA = /* @__PURE__ */ new ve(), HA = /* @__PURE__ */ new ve(), g2 = /* @__PURE__ */ new ve(), y2 = /* @__PURE__ */ new ve(), x2 = /* @__PURE__ */ new ve(), S2 = /* @__PURE__ */ new Ft(), _2 = /* @__PURE__ */ new Ft(), b2 = /* @__PURE__ */ new Ft(), VA = /* @__PURE__ */ new ve(), w2 = /* @__PURE__ */ new ve(); -class zn extends Xa { - constructor(e = new ui(), t = new lg()) { +const GO = /* @__PURE__ */ new Kr(), Dw = /* @__PURE__ */ new KM(), IA = /* @__PURE__ */ new yy(), Vx = /* @__PURE__ */ new ge(), Gx = /* @__PURE__ */ new ge(), Wx = /* @__PURE__ */ new ge(), BA = /* @__PURE__ */ new ge(), HA = /* @__PURE__ */ new ge(), VA = /* @__PURE__ */ new ge(), g2 = /* @__PURE__ */ new ge(), y2 = /* @__PURE__ */ new ge(), x2 = /* @__PURE__ */ new ge(), _2 = /* @__PURE__ */ new zt(), S2 = /* @__PURE__ */ new zt(), w2 = /* @__PURE__ */ new zt(), GA = /* @__PURE__ */ new ge(), b2 = /* @__PURE__ */ new ge(); +class Fn extends Xa { + constructor(e = new oi(), t = new fg()) { super(), this.isMesh = !0, this.type = "Mesh", this.geometry = e, this.material = t, this.updateMorphTargets(); } copy(e, t) { @@ -3661,130 +3661,130 @@ class zn extends Xa { const i = t[r[0]]; if (i !== void 0) { this.morphTargetInfluences = [], this.morphTargetDictionary = {}; - for (let o = 0, l = i.length; o < l; o++) { - const d = i[o].name || String(o); - this.morphTargetInfluences.push(0), this.morphTargetDictionary[d] = o; + for (let s = 0, l = i.length; s < l; s++) { + const d = i[s].name || String(s); + this.morphTargetInfluences.push(0), this.morphTargetDictionary[d] = s; } } } } raycast(e, t) { - const r = this.geometry, i = this.material, o = this.matrixWorld; - if (i === void 0 || (r.boundingSphere === null && r.computeBoundingSphere(), kA.copy(r.boundingSphere), kA.applyMatrix4(o), e.ray.intersectsSphere(kA) === !1) || (BO.copy(o).invert(), Mb.copy(e.ray).applyMatrix4(BO), r.boundingBox !== null && Mb.intersectsBox(r.boundingBox) === !1)) + const r = this.geometry, i = this.material, s = this.matrixWorld; + if (i === void 0 || (r.boundingSphere === null && r.computeBoundingSphere(), IA.copy(r.boundingSphere), IA.applyMatrix4(s), e.ray.intersectsSphere(IA) === !1) || (GO.copy(s).invert(), Dw.copy(e.ray).applyMatrix4(GO), r.boundingBox !== null && Dw.intersectsBox(r.boundingBox) === !1)) return; let l; - const d = r.index, h = r.attributes.position, m = r.morphAttributes.position, S = r.morphTargetsRelative, _ = r.attributes.uv, T = r.attributes.uv2, C = r.groups, D = r.drawRange; + const d = r.index, p = r.attributes.position, g = r.morphAttributes.position, _ = r.morphTargetsRelative, w = r.attributes.uv, T = r.attributes.uv2, R = r.groups, D = r.drawRange; if (d !== null) if (Array.isArray(i)) - for (let P = 0, U = C.length; P < U; P++) { - const B = C[P], k = i[B.materialIndex], V = Math.max(B.start, D.start), I = Math.min(d.count, Math.min(B.start + B.count, D.start + D.count)); - for (let X = V, J = I; X < J; X += 3) { - const $ = d.getX(X), W = d.getX(X + 1), ne = d.getX(X + 2); - l = E2(this, k, e, Mb, h, m, S, _, T, $, W, ne), l && (l.faceIndex = Math.floor(X / 3), l.face.materialIndex = B.materialIndex, t.push(l)); + for (let O = 0, U = R.length; O < U; O++) { + const H = R[O], I = i[H.materialIndex], G = Math.max(H.start, D.start), B = Math.min(d.count, Math.min(H.start + H.count, D.start + D.count)); + for (let Q = G, K = B; Q < K; Q += 3) { + const te = d.getX(Q), Y = d.getX(Q + 1), re = d.getX(Q + 2); + l = E2(this, I, e, Dw, p, g, _, w, T, te, Y, re), l && (l.faceIndex = Math.floor(Q / 3), l.face.materialIndex = H.materialIndex, t.push(l)); } } else { - const P = Math.max(0, D.start), U = Math.min(d.count, D.start + D.count); - for (let B = P, k = U; B < k; B += 3) { - const V = d.getX(B), I = d.getX(B + 1), X = d.getX(B + 2); - l = E2(this, i, e, Mb, h, m, S, _, T, V, I, X), l && (l.faceIndex = Math.floor(B / 3), t.push(l)); + const O = Math.max(0, D.start), U = Math.min(d.count, D.start + D.count); + for (let H = O, I = U; H < I; H += 3) { + const G = d.getX(H), B = d.getX(H + 1), Q = d.getX(H + 2); + l = E2(this, i, e, Dw, p, g, _, w, T, G, B, Q), l && (l.faceIndex = Math.floor(H / 3), t.push(l)); } } - else if (h !== void 0) + else if (p !== void 0) if (Array.isArray(i)) - for (let P = 0, U = C.length; P < U; P++) { - const B = C[P], k = i[B.materialIndex], V = Math.max(B.start, D.start), I = Math.min(h.count, Math.min(B.start + B.count, D.start + D.count)); - for (let X = V, J = I; X < J; X += 3) { - const $ = X, W = X + 1, ne = X + 2; - l = E2(this, k, e, Mb, h, m, S, _, T, $, W, ne), l && (l.faceIndex = Math.floor(X / 3), l.face.materialIndex = B.materialIndex, t.push(l)); + for (let O = 0, U = R.length; O < U; O++) { + const H = R[O], I = i[H.materialIndex], G = Math.max(H.start, D.start), B = Math.min(p.count, Math.min(H.start + H.count, D.start + D.count)); + for (let Q = G, K = B; Q < K; Q += 3) { + const te = Q, Y = Q + 1, re = Q + 2; + l = E2(this, I, e, Dw, p, g, _, w, T, te, Y, re), l && (l.faceIndex = Math.floor(Q / 3), l.face.materialIndex = H.materialIndex, t.push(l)); } } else { - const P = Math.max(0, D.start), U = Math.min(h.count, D.start + D.count); - for (let B = P, k = U; B < k; B += 3) { - const V = B, I = B + 1, X = B + 2; - l = E2(this, i, e, Mb, h, m, S, _, T, V, I, X), l && (l.faceIndex = Math.floor(B / 3), t.push(l)); + const O = Math.max(0, D.start), U = Math.min(p.count, D.start + D.count); + for (let H = O, I = U; H < I; H += 3) { + const G = H, B = H + 1, Q = H + 2; + l = E2(this, i, e, Dw, p, g, _, w, T, G, B, Q), l && (l.faceIndex = Math.floor(H / 3), t.push(l)); } } } } -function zH(a, e, t, r, i, o, l, d) { - let h; - if (e.side === uf ? h = r.intersectTriangle(l, o, i, !0, d) : h = r.intersectTriangle(i, o, l, e.side !== Pp, d), h === null) +function XH(a, e, t, r, i, s, l, d) { + let p; + if (e.side === cf ? p = r.intersectTriangle(l, s, i, !0, d) : p = r.intersectTriangle(i, s, l, e.side !== Yh, d), p === null) return null; - w2.copy(d), w2.applyMatrix4(a.matrixWorld); - const m = t.ray.origin.distanceTo(w2); - return m < t.near || m > t.far ? null : { - distance: m, - point: w2.clone(), + b2.copy(d), b2.applyMatrix4(a.matrixWorld); + const g = t.ray.origin.distanceTo(b2); + return g < t.near || g > t.far ? null : { + distance: g, + point: b2.clone(), object: a }; } -function E2(a, e, t, r, i, o, l, d, h, m, S, _) { - Vx.fromBufferAttribute(i, m), Gx.fromBufferAttribute(i, S), Wx.fromBufferAttribute(i, _); +function E2(a, e, t, r, i, s, l, d, p, g, _, w) { + Vx.fromBufferAttribute(i, g), Gx.fromBufferAttribute(i, _), Wx.fromBufferAttribute(i, w); const T = a.morphTargetInfluences; - if (o && T) { + if (s && T) { g2.set(0, 0, 0), y2.set(0, 0, 0), x2.set(0, 0, 0); - for (let D = 0, P = o.length; D < P; D++) { - const U = T[D], B = o[D]; - U !== 0 && (IA.fromBufferAttribute(B, m), BA.fromBufferAttribute(B, S), HA.fromBufferAttribute(B, _), l ? (g2.addScaledVector(IA, U), y2.addScaledVector(BA, U), x2.addScaledVector(HA, U)) : (g2.addScaledVector(IA.sub(Vx), U), y2.addScaledVector(BA.sub(Gx), U), x2.addScaledVector(HA.sub(Wx), U))); + for (let D = 0, O = s.length; D < O; D++) { + const U = T[D], H = s[D]; + U !== 0 && (BA.fromBufferAttribute(H, g), HA.fromBufferAttribute(H, _), VA.fromBufferAttribute(H, w), l ? (g2.addScaledVector(BA, U), y2.addScaledVector(HA, U), x2.addScaledVector(VA, U)) : (g2.addScaledVector(BA.sub(Vx), U), y2.addScaledVector(HA.sub(Gx), U), x2.addScaledVector(VA.sub(Wx), U))); } Vx.add(g2), Gx.add(y2), Wx.add(x2); } - a.isSkinnedMesh && (a.boneTransform(m, Vx), a.boneTransform(S, Gx), a.boneTransform(_, Wx)); - const C = zH(a, e, t, r, Vx, Gx, Wx, VA); - if (C) { - d && (S2.fromBufferAttribute(d, m), _2.fromBufferAttribute(d, S), b2.fromBufferAttribute(d, _), C.uv = xm.getUV(VA, Vx, Gx, Wx, S2, _2, b2, new Ft())), h && (S2.fromBufferAttribute(h, m), _2.fromBufferAttribute(h, S), b2.fromBufferAttribute(h, _), C.uv2 = xm.getUV(VA, Vx, Gx, Wx, S2, _2, b2, new Ft())); + a.isSkinnedMesh && (a.boneTransform(g, Vx), a.boneTransform(_, Gx), a.boneTransform(w, Wx)); + const R = XH(a, e, t, r, Vx, Gx, Wx, GA); + if (R) { + d && (_2.fromBufferAttribute(d, g), S2.fromBufferAttribute(d, _), w2.fromBufferAttribute(d, w), R.uv = wm.getUV(GA, Vx, Gx, Wx, _2, S2, w2, new zt())), p && (_2.fromBufferAttribute(p, g), S2.fromBufferAttribute(p, _), w2.fromBufferAttribute(p, w), R.uv2 = wm.getUV(GA, Vx, Gx, Wx, _2, S2, w2, new zt())); const D = { - a: m, - b: S, - c: _, - normal: new ve(), + a: g, + b: _, + c: w, + normal: new ge(), materialIndex: 0 }; - xm.getNormal(Vx, Gx, Wx, D.normal), C.face = D; + wm.getNormal(Vx, Gx, Wx, D.normal), R.face = D; } - return C; + return R; } -class cl extends ui { - constructor(e = 1, t = 1, r = 1, i = 1, o = 1, l = 1) { +class fl extends oi { + constructor(e = 1, t = 1, r = 1, i = 1, s = 1, l = 1) { super(), this.type = "BoxGeometry", this.parameters = { width: e, height: t, depth: r, widthSegments: i, - heightSegments: o, + heightSegments: s, depthSegments: l }; const d = this; - i = Math.floor(i), o = Math.floor(o), l = Math.floor(l); - const h = [], m = [], S = [], _ = []; - let T = 0, C = 0; - D("z", "y", "x", -1, -1, r, t, e, l, o, 0), D("z", "y", "x", 1, -1, r, t, -e, l, o, 1), D("x", "z", "y", 1, 1, e, r, t, i, l, 2), D("x", "z", "y", 1, -1, e, r, -t, i, l, 3), D("x", "y", "z", 1, -1, e, t, r, i, o, 4), D("x", "y", "z", -1, -1, e, t, -r, i, o, 5), this.setIndex(h), this.setAttribute("position", new sr(m, 3)), this.setAttribute("normal", new sr(S, 3)), this.setAttribute("uv", new sr(_, 2)); - function D(P, U, B, k, V, I, X, J, $, W, ne) { - const ie = I / $, fe = X / W, le = I / 2, Ee = X / 2, he = J / 2, Fe = $ + 1, Ce = W + 1; - let Be = 0, pe = 0; - const de = new ve(); - for (let ce = 0; ce < Ce; ce++) { - const ye = ce * fe - Ee; - for (let we = 0; we < Fe; we++) { - const Xe = we * ie - le; - de[P] = Xe * k, de[U] = ye * V, de[B] = he, m.push(de.x, de.y, de.z), de[P] = 0, de[U] = 0, de[B] = J > 0 ? 1 : -1, S.push(de.x, de.y, de.z), _.push(we / $), _.push(1 - ce / W), Be += 1; + i = Math.floor(i), s = Math.floor(s), l = Math.floor(l); + const p = [], g = [], _ = [], w = []; + let T = 0, R = 0; + D("z", "y", "x", -1, -1, r, t, e, l, s, 0), D("z", "y", "x", 1, -1, r, t, -e, l, s, 1), D("x", "z", "y", 1, 1, e, r, t, i, l, 2), D("x", "z", "y", 1, -1, e, r, -t, i, l, 3), D("x", "y", "z", 1, -1, e, t, r, i, s, 4), D("x", "y", "z", -1, -1, e, t, -r, i, s, 5), this.setIndex(p), this.setAttribute("position", new sr(g, 3)), this.setAttribute("normal", new sr(_, 3)), this.setAttribute("uv", new sr(w, 2)); + function D(O, U, H, I, G, B, Q, K, te, Y, re) { + const se = B / te, ce = Q / Y, ue = B / 2, Me = Q / 2, me = K / 2, De = te + 1, Re = Y + 1; + let He = 0, ve = 0; + const fe = new ge(); + for (let he = 0; he < Re; he++) { + const ye = he * ce - Me; + for (let Ee = 0; Ee < De; Ee++) { + const Ve = Ee * se - ue; + fe[O] = Ve * I, fe[U] = ye * G, fe[H] = me, g.push(fe.x, fe.y, fe.z), fe[O] = 0, fe[U] = 0, fe[H] = K > 0 ? 1 : -1, _.push(fe.x, fe.y, fe.z), w.push(Ee / te), w.push(1 - he / Y), He += 1; } } - for (let ce = 0; ce < W; ce++) - for (let ye = 0; ye < $; ye++) { - const we = T + ye + Fe * ce, Xe = T + ye + Fe * (ce + 1), Je = T + (ye + 1) + Fe * (ce + 1), st = T + (ye + 1) + Fe * ce; - h.push(we, Xe, st), h.push(Xe, Je, st), pe += 6; + for (let he = 0; he < Y; he++) + for (let ye = 0; ye < te; ye++) { + const Ee = T + ye + De * he, Ve = T + ye + De * (he + 1), Je = T + (ye + 1) + De * (he + 1), rt = T + (ye + 1) + De * he; + p.push(Ee, Ve, rt), p.push(Ve, Je, rt), ve += 6; } - d.addGroup(C, pe, ne), C += pe, T += Be; + d.addGroup(R, ve, re), R += ve, T += He; } } static fromJSON(e) { - return new cl(e.width, e.height, e.depth, e.widthSegments, e.heightSegments, e.depthSegments); + return new fl(e.width, e.height, e.depth, e.widthSegments, e.heightSegments, e.depthSegments); } } -function Kb(a) { +function Kw(a) { const e = {}; for (const t in a) { e[t] = {}; @@ -3795,30 +3795,30 @@ function Kb(a) { } return e; } -function lh(a) { +function uh(a) { const e = {}; for (let t = 0; t < a.length; t++) { - const r = Kb(a[t]); + const r = Kw(a[t]); for (const i in r) e[i] = r[i]; } return e; } -function NH(a) { +function qH(a) { const e = []; for (let t = 0; t < a.length; t++) e.push(a[t].clone()); return e; } -const $M = { clone: Kb, merge: lh }; -var FH = `void main() { +const $M = { clone: Kw, merge: uh }; +var QH = `void main() { gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); -}`, kH = `void main() { +}`, ZH = `void main() { gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 ); }`; -class wu extends ff { +class Mu extends hf { constructor(e) { - super(), this.isShaderMaterial = !0, this.type = "ShaderMaterial", this.defines = {}, this.uniforms = {}, this.uniformsGroups = [], this.vertexShader = FH, this.fragmentShader = kH, this.linewidth = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.lights = !1, this.clipping = !1, this.extensions = { + super(), this.isShaderMaterial = !0, this.type = "ShaderMaterial", this.defines = {}, this.uniforms = {}, this.uniformsGroups = [], this.vertexShader = QH, this.fragmentShader = ZH, this.linewidth = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.lights = !1, this.clipping = !1, this.extensions = { derivatives: !1, fragDepth: !1, drawBuffers: !1, @@ -3830,7 +3830,7 @@ class wu extends ff { }, this.index0AttributeName = void 0, this.uniformsNeedUpdate = !1, this.glslVersion = null, e !== void 0 && (e.attributes !== void 0 && console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."), this.setValues(e)); } copy(e) { - return super.copy(e), this.fragmentShader = e.fragmentShader, this.vertexShader = e.vertexShader, this.uniforms = Kb(e.uniforms), this.uniformsGroups = NH(e.uniformsGroups), this.defines = Object.assign({}, e.defines), this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.fog = e.fog, this.lights = e.lights, this.clipping = e.clipping, this.extensions = Object.assign({}, e.extensions), this.glslVersion = e.glslVersion, this; + return super.copy(e), this.fragmentShader = e.fragmentShader, this.vertexShader = e.vertexShader, this.uniforms = Kw(e.uniforms), this.uniformsGroups = qH(e.uniformsGroups), this.defines = Object.assign({}, e.defines), this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.fog = e.fog, this.lights = e.lights, this.clipping = e.clipping, this.extensions = Object.assign({}, e.extensions), this.glslVersion = e.glslVersion, this; } toJSON(e) { const t = super.toJSON(e); @@ -3869,9 +3869,9 @@ class wu extends ff { return Object.keys(r).length > 0 && (t.extensions = r), t; } } -class pw extends Xa { +class pb extends Xa { constructor() { - super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new si(), this.projectionMatrix = new si(), this.projectionMatrixInverse = new si(); + super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new Kr(), this.projectionMatrix = new Kr(), this.projectionMatrixInverse = new Kr(); } copy(e, t) { return super.copy(e, t), this.matrixWorldInverse.copy(e.matrixWorldInverse), this.projectionMatrix.copy(e.projectionMatrix), this.projectionMatrixInverse.copy(e.projectionMatrixInverse), this; @@ -3891,7 +3891,7 @@ class pw extends Xa { return new this.constructor().copy(this); } } -class ho extends pw { +class ho extends pb { constructor(e = 50, t = 1, r = 0.1, i = 2e3) { super(), this.isPerspectiveCamera = !0, this.type = "PerspectiveCamera", this.fov = e, this.zoom = 1, this.near = r, this.far = i, this.focus = 10, this.aspect = t, this.view = null, this.filmGauge = 35, this.filmOffset = 0, this.updateProjectionMatrix(); } @@ -3900,15 +3900,15 @@ class ho extends pw { } setFocalLength(e) { const t = 0.5 * this.getFilmHeight() / e; - this.fov = OM * 2 * Math.atan(t), this.updateProjectionMatrix(); + this.fov = UM * 2 * Math.atan(t), this.updateProjectionMatrix(); } getFocalLength() { - const e = Math.tan(NS * 0.5 * this.fov); + const e = Math.tan(H_ * 0.5 * this.fov); return 0.5 * this.getFilmHeight() / e; } getEffectiveFOV() { - return OM * 2 * Math.atan( - Math.tan(NS * 0.5 * this.fov) / this.zoom + return UM * 2 * Math.atan( + Math.tan(H_ * 0.5 * this.fov) / this.zoom ); } getFilmWidth() { @@ -3917,7 +3917,7 @@ class ho extends pw { getFilmHeight() { return this.filmGauge / Math.max(this.aspect, 1); } - setViewOffset(e, t, r, i, o, l) { + setViewOffset(e, t, r, i, s, l) { this.aspect = e / t, this.view === null && (this.view = { enabled: !0, fullWidth: 1, @@ -3926,59 +3926,59 @@ class ho extends pw { offsetY: 0, width: 1, height: 1 - }), this.view.enabled = !0, this.view.fullWidth = e, this.view.fullHeight = t, this.view.offsetX = r, this.view.offsetY = i, this.view.width = o, this.view.height = l, this.updateProjectionMatrix(); + }), this.view.enabled = !0, this.view.fullWidth = e, this.view.fullHeight = t, this.view.offsetX = r, this.view.offsetY = i, this.view.width = s, this.view.height = l, this.updateProjectionMatrix(); } clearViewOffset() { this.view !== null && (this.view.enabled = !1), this.updateProjectionMatrix(); } updateProjectionMatrix() { const e = this.near; - let t = e * Math.tan(NS * 0.5 * this.fov) / this.zoom, r = 2 * t, i = this.aspect * r, o = -0.5 * i; + let t = e * Math.tan(H_ * 0.5 * this.fov) / this.zoom, r = 2 * t, i = this.aspect * r, s = -0.5 * i; const l = this.view; if (this.view !== null && this.view.enabled) { - const h = l.fullWidth, m = l.fullHeight; - o += l.offsetX * i / h, t -= l.offsetY * r / m, i *= l.width / h, r *= l.height / m; + const p = l.fullWidth, g = l.fullHeight; + s += l.offsetX * i / p, t -= l.offsetY * r / g, i *= l.width / p, r *= l.height / g; } const d = this.filmOffset; - d !== 0 && (o += e * d / this.getFilmWidth()), this.projectionMatrix.makePerspective(o, o + i, t, t - r, e, this.far), this.projectionMatrixInverse.copy(this.projectionMatrix).invert(); + d !== 0 && (s += e * d / this.getFilmWidth()), this.projectionMatrix.makePerspective(s, s + i, t, t - r, e, this.far), this.projectionMatrixInverse.copy(this.projectionMatrix).invert(); } toJSON(e) { const t = super.toJSON(e); return t.object.fov = this.fov, t.object.zoom = this.zoom, t.object.near = this.near, t.object.far = this.far, t.object.focus = this.focus, t.object.aspect = this.aspect, this.view !== null && (t.object.view = Object.assign({}, this.view)), t.object.filmGauge = this.filmGauge, t.object.filmOffset = this.filmOffset, t; } } -const Tb = 90, Cb = 1; -class xF extends Xa { +const Lw = 90, Pw = 1; +class OF extends Xa { constructor(e, t, r) { if (super(), this.type = "CubeCamera", r.isWebGLCubeRenderTarget !== !0) { console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter."); return; } this.renderTarget = r; - const i = new ho(Tb, Cb, e, t); - i.layers = this.layers, i.up.set(0, -1, 0), i.lookAt(new ve(1, 0, 0)), this.add(i); - const o = new ho(Tb, Cb, e, t); - o.layers = this.layers, o.up.set(0, -1, 0), o.lookAt(new ve(-1, 0, 0)), this.add(o); - const l = new ho(Tb, Cb, e, t); - l.layers = this.layers, l.up.set(0, 0, 1), l.lookAt(new ve(0, 1, 0)), this.add(l); - const d = new ho(Tb, Cb, e, t); - d.layers = this.layers, d.up.set(0, 0, -1), d.lookAt(new ve(0, -1, 0)), this.add(d); - const h = new ho(Tb, Cb, e, t); - h.layers = this.layers, h.up.set(0, -1, 0), h.lookAt(new ve(0, 0, 1)), this.add(h); - const m = new ho(Tb, Cb, e, t); - m.layers = this.layers, m.up.set(0, -1, 0), m.lookAt(new ve(0, 0, -1)), this.add(m); + const i = new ho(Lw, Pw, e, t); + i.layers = this.layers, i.up.set(0, -1, 0), i.lookAt(new ge(1, 0, 0)), this.add(i); + const s = new ho(Lw, Pw, e, t); + s.layers = this.layers, s.up.set(0, -1, 0), s.lookAt(new ge(-1, 0, 0)), this.add(s); + const l = new ho(Lw, Pw, e, t); + l.layers = this.layers, l.up.set(0, 0, 1), l.lookAt(new ge(0, 1, 0)), this.add(l); + const d = new ho(Lw, Pw, e, t); + d.layers = this.layers, d.up.set(0, 0, -1), d.lookAt(new ge(0, -1, 0)), this.add(d); + const p = new ho(Lw, Pw, e, t); + p.layers = this.layers, p.up.set(0, -1, 0), p.lookAt(new ge(0, 0, 1)), this.add(p); + const g = new ho(Lw, Pw, e, t); + g.layers = this.layers, g.up.set(0, -1, 0), g.lookAt(new ge(0, 0, -1)), this.add(g); } update(e, t) { this.parent === null && this.updateMatrixWorld(); - const r = this.renderTarget, [i, o, l, d, h, m] = this.children, S = e.getRenderTarget(), _ = e.toneMapping, T = e.xr.enabled; - e.toneMapping = ig, e.xr.enabled = !1; - const C = r.texture.generateMipmaps; - r.texture.generateMipmaps = !1, e.setRenderTarget(r, 0), e.render(t, i), e.setRenderTarget(r, 1), e.render(t, o), e.setRenderTarget(r, 2), e.render(t, l), e.setRenderTarget(r, 3), e.render(t, d), e.setRenderTarget(r, 4), e.render(t, h), r.texture.generateMipmaps = C, e.setRenderTarget(r, 5), e.render(t, m), e.setRenderTarget(S), e.toneMapping = _, e.xr.enabled = T, r.texture.needsPMREMUpdate = !0; + const r = this.renderTarget, [i, s, l, d, p, g] = this.children, _ = e.getRenderTarget(), w = e.toneMapping, T = e.xr.enabled; + e.toneMapping = og, e.xr.enabled = !1; + const R = r.texture.generateMipmaps; + r.texture.generateMipmaps = !1, e.setRenderTarget(r, 0), e.render(t, i), e.setRenderTarget(r, 1), e.render(t, s), e.setRenderTarget(r, 2), e.render(t, l), e.setRenderTarget(r, 3), e.render(t, d), e.setRenderTarget(r, 4), e.render(t, p), r.texture.generateMipmaps = R, e.setRenderTarget(r, 5), e.render(t, g), e.setRenderTarget(_), e.toneMapping = w, e.xr.enabled = T, r.texture.needsPMREMUpdate = !0; } } -class eT extends iu { - constructor(e, t, r, i, o, l, d, h, m, S) { - e = e !== void 0 ? e : [], t = t !== void 0 ? t : t1, super(e, t, r, i, o, l, d, h, m, S), this.isCubeTexture = !0, this.flipY = !1; +class eT extends su { + constructor(e, t, r, i, s, l, d, p, g, _) { + e = e !== void 0 ? e : [], t = t !== void 0 ? t : t1, super(e, t, r, i, s, l, d, p, g, _), this.isCubeTexture = !0, this.flipY = !1; } get images() { return this.image; @@ -3987,7 +3987,7 @@ class eT extends iu { this.image = e; } } -class SF extends po { +class UF extends po { constructor(e, t = {}) { super(e, e, t), this.isWebGLCubeRenderTarget = !0; const r = { width: e, height: e, depth: 1 }, i = [r, r, r, r, r, r]; @@ -4036,28 +4036,28 @@ class SF extends po { } ` - }, i = new cl(5, 5, 5), o = new wu({ + }, i = new fl(5, 5, 5), s = new Mu({ name: "CubemapFromEquirect", - uniforms: Kb(r.uniforms), + uniforms: Kw(r.uniforms), vertexShader: r.vertexShader, fragmentShader: r.fragmentShader, - side: uf, - blending: cf + side: cf, + blending: ff }); - o.uniforms.tEquirect.value = t; - const l = new zn(i, o), d = t.minFilter; - return t.minFilter === s1 && (t.minFilter = Oo), new xF(1, 10, this).update(e, l), t.minFilter = d, l.geometry.dispose(), l.material.dispose(), this; + s.uniforms.tEquirect.value = t; + const l = new Fn(i, s), d = t.minFilter; + return t.minFilter === s1 && (t.minFilter = Oo), new OF(1, 10, this).update(e, l), t.minFilter = d, l.geometry.dispose(), l.material.dispose(), this; } clear(e, t, r, i) { - const o = e.getRenderTarget(); + const s = e.getRenderTarget(); for (let l = 0; l < 6; l++) e.setRenderTarget(this, l), e.clear(t, r, i); - e.setRenderTarget(o); + e.setRenderTarget(s); } } -const GA = /* @__PURE__ */ new ve(), IH = /* @__PURE__ */ new ve(), BH = /* @__PURE__ */ new jh(); -class C0 { - constructor(e = new ve(1, 0, 0), t = 0) { +const WA = /* @__PURE__ */ new ge(), JH = /* @__PURE__ */ new ge(), KH = /* @__PURE__ */ new Xh(); +class R0 { + constructor(e = new ge(1, 0, 0), t = 0) { this.isPlane = !0, this.normal = e, this.constant = t; } set(e, t) { @@ -4070,7 +4070,7 @@ class C0 { return this.normal.copy(e), this.constant = -t.dot(this.normal), this; } setFromCoplanarPoints(e, t, r) { - const i = GA.subVectors(r, t).cross(IH.subVectors(e, t)).normalize(); + const i = WA.subVectors(r, t).cross(JH.subVectors(e, t)).normalize(); return this.setFromNormalAndCoplanarPoint(i, e), this; } copy(e) { @@ -4093,11 +4093,11 @@ class C0 { return t.copy(this.normal).multiplyScalar(-this.distanceToPoint(e)).add(e); } intersectLine(e, t) { - const r = e.delta(GA), i = this.normal.dot(r); + const r = e.delta(WA), i = this.normal.dot(r); if (i === 0) return this.distanceToPoint(e.start) === 0 ? t.copy(e.start) : null; - const o = -(e.start.dot(this.normal) + this.constant) / i; - return o < 0 || o > 1 ? null : t.copy(r).multiplyScalar(o).add(e.start); + const s = -(e.start.dot(this.normal) + this.constant) / i; + return s < 0 || s > 1 ? null : t.copy(r).multiplyScalar(s).add(e.start); } intersectsLine(e) { const t = this.distanceToPoint(e.start), r = this.distanceToPoint(e.end); @@ -4113,8 +4113,8 @@ class C0 { return e.copy(this.normal).multiplyScalar(-this.constant); } applyMatrix4(e, t) { - const r = t || BH.getNormalMatrix(e), i = this.coplanarPoint(GA).applyMatrix4(e), o = this.normal.applyMatrix3(r).normalize(); - return this.constant = -i.dot(o), this; + const r = t || KH.getNormalMatrix(e), i = this.coplanarPoint(WA).applyMatrix4(e), s = this.normal.applyMatrix3(r).normalize(); + return this.constant = -i.dot(s), this; } translate(e) { return this.constant -= e.dot(this.normal), this; @@ -4126,14 +4126,14 @@ class C0 { return new this.constructor().copy(this); } } -const Rb = /* @__PURE__ */ new vy(), M2 = /* @__PURE__ */ new ve(); -class IC { - constructor(e = new C0(), t = new C0(), r = new C0(), i = new C0(), o = new C0(), l = new C0()) { - this.planes = [e, t, r, i, o, l]; +const Ow = /* @__PURE__ */ new yy(), M2 = /* @__PURE__ */ new ge(); +class BC { + constructor(e = new R0(), t = new R0(), r = new R0(), i = new R0(), s = new R0(), l = new R0()) { + this.planes = [e, t, r, i, s, l]; } - set(e, t, r, i, o, l) { + set(e, t, r, i, s, l) { const d = this.planes; - return d[0].copy(e), d[1].copy(t), d[2].copy(r), d[3].copy(i), d[4].copy(o), d[5].copy(l), this; + return d[0].copy(e), d[1].copy(t), d[2].copy(r), d[3].copy(i), d[4].copy(s), d[5].copy(l), this; } copy(e) { const t = this.planes; @@ -4142,20 +4142,20 @@ class IC { return this; } setFromProjectionMatrix(e) { - const t = this.planes, r = e.elements, i = r[0], o = r[1], l = r[2], d = r[3], h = r[4], m = r[5], S = r[6], _ = r[7], T = r[8], C = r[9], D = r[10], P = r[11], U = r[12], B = r[13], k = r[14], V = r[15]; - return t[0].setComponents(d - i, _ - h, P - T, V - U).normalize(), t[1].setComponents(d + i, _ + h, P + T, V + U).normalize(), t[2].setComponents(d + o, _ + m, P + C, V + B).normalize(), t[3].setComponents(d - o, _ - m, P - C, V - B).normalize(), t[4].setComponents(d - l, _ - S, P - D, V - k).normalize(), t[5].setComponents(d + l, _ + S, P + D, V + k).normalize(), this; + const t = this.planes, r = e.elements, i = r[0], s = r[1], l = r[2], d = r[3], p = r[4], g = r[5], _ = r[6], w = r[7], T = r[8], R = r[9], D = r[10], O = r[11], U = r[12], H = r[13], I = r[14], G = r[15]; + return t[0].setComponents(d - i, w - p, O - T, G - U).normalize(), t[1].setComponents(d + i, w + p, O + T, G + U).normalize(), t[2].setComponents(d + s, w + g, O + R, G + H).normalize(), t[3].setComponents(d - s, w - g, O - R, G - H).normalize(), t[4].setComponents(d - l, w - _, O - D, G - I).normalize(), t[5].setComponents(d + l, w + _, O + D, G + I).normalize(), this; } intersectsObject(e) { const t = e.geometry; - return t.boundingSphere === null && t.computeBoundingSphere(), Rb.copy(t.boundingSphere).applyMatrix4(e.matrixWorld), this.intersectsSphere(Rb); + return t.boundingSphere === null && t.computeBoundingSphere(), Ow.copy(t.boundingSphere).applyMatrix4(e.matrixWorld), this.intersectsSphere(Ow); } intersectsSprite(e) { - return Rb.center.set(0, 0, 0), Rb.radius = 0.7071067811865476, Rb.applyMatrix4(e.matrixWorld), this.intersectsSphere(Rb); + return Ow.center.set(0, 0, 0), Ow.radius = 0.7071067811865476, Ow.applyMatrix4(e.matrixWorld), this.intersectsSphere(Ow); } intersectsSphere(e) { const t = this.planes, r = e.center, i = -e.radius; - for (let o = 0; o < 6; o++) - if (t[o].distanceToPoint(r) < i) + for (let s = 0; s < 6; s++) + if (t[s].distanceToPoint(r) < i) return !1; return !0; } @@ -4179,10 +4179,10 @@ class IC { return new this.constructor().copy(this); } } -function _F() { +function zF() { let a = null, e = !1, t = null, r = null; - function i(o, l) { - t(o, l), r = a.requestAnimationFrame(i); + function i(s, l) { + t(s, l), r = a.requestAnimationFrame(i); } return { start: function() { @@ -4191,95 +4191,95 @@ function _F() { stop: function() { a.cancelAnimationFrame(r), e = !1; }, - setAnimationLoop: function(o) { - t = o; + setAnimationLoop: function(s) { + t = s; }, - setContext: function(o) { - a = o; + setContext: function(s) { + a = s; } }; } -function HH(a, e) { +function $H(a, e) { const t = e.isWebGL2, r = /* @__PURE__ */ new WeakMap(); - function i(m, S) { - const _ = m.array, T = m.usage, C = a.createBuffer(); - a.bindBuffer(S, C), a.bufferData(S, _, T), m.onUploadCallback(); + function i(g, _) { + const w = g.array, T = g.usage, R = a.createBuffer(); + a.bindBuffer(_, R), a.bufferData(_, w, T), g.onUploadCallback(); let D; - if (_ instanceof Float32Array) + if (w instanceof Float32Array) D = 5126; - else if (_ instanceof Uint16Array) - if (m.isFloat16BufferAttribute) + else if (w instanceof Uint16Array) + if (g.isFloat16BufferAttribute) if (t) D = 5131; else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2."); else D = 5123; - else if (_ instanceof Int16Array) + else if (w instanceof Int16Array) D = 5122; - else if (_ instanceof Uint32Array) + else if (w instanceof Uint32Array) D = 5125; - else if (_ instanceof Int32Array) + else if (w instanceof Int32Array) D = 5124; - else if (_ instanceof Int8Array) + else if (w instanceof Int8Array) D = 5120; - else if (_ instanceof Uint8Array) + else if (w instanceof Uint8Array) D = 5121; - else if (_ instanceof Uint8ClampedArray) + else if (w instanceof Uint8ClampedArray) D = 5121; else - throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: " + _); + throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: " + w); return { - buffer: C, + buffer: R, type: D, - bytesPerElement: _.BYTES_PER_ELEMENT, - version: m.version + bytesPerElement: w.BYTES_PER_ELEMENT, + version: g.version }; } - function o(m, S, _) { - const T = S.array, C = S.updateRange; - a.bindBuffer(_, m), C.count === -1 ? a.bufferSubData(_, 0, T) : (t ? a.bufferSubData( - _, - C.offset * T.BYTES_PER_ELEMENT, + function s(g, _, w) { + const T = _.array, R = _.updateRange; + a.bindBuffer(w, g), R.count === -1 ? a.bufferSubData(w, 0, T) : (t ? a.bufferSubData( + w, + R.offset * T.BYTES_PER_ELEMENT, T, - C.offset, - C.count + R.offset, + R.count ) : a.bufferSubData( - _, - C.offset * T.BYTES_PER_ELEMENT, - T.subarray(C.offset, C.offset + C.count) - ), C.count = -1); - } - function l(m) { - return m.isInterleavedBufferAttribute && (m = m.data), r.get(m); - } - function d(m) { - m.isInterleavedBufferAttribute && (m = m.data); - const S = r.get(m); - S && (a.deleteBuffer(S.buffer), r.delete(m)); - } - function h(m, S) { - if (m.isGLBufferAttribute) { - const T = r.get(m); - (!T || T.version < m.version) && r.set(m, { - buffer: m.buffer, - type: m.type, - bytesPerElement: m.elementSize, - version: m.version + w, + R.offset * T.BYTES_PER_ELEMENT, + T.subarray(R.offset, R.offset + R.count) + ), R.count = -1); + } + function l(g) { + return g.isInterleavedBufferAttribute && (g = g.data), r.get(g); + } + function d(g) { + g.isInterleavedBufferAttribute && (g = g.data); + const _ = r.get(g); + _ && (a.deleteBuffer(_.buffer), r.delete(g)); + } + function p(g, _) { + if (g.isGLBufferAttribute) { + const T = r.get(g); + (!T || T.version < g.version) && r.set(g, { + buffer: g.buffer, + type: g.type, + bytesPerElement: g.elementSize, + version: g.version }); return; } - m.isInterleavedBufferAttribute && (m = m.data); - const _ = r.get(m); - _ === void 0 ? r.set(m, i(m, S)) : _.version < m.version && (o(_.buffer, m, S), _.version = m.version); + g.isInterleavedBufferAttribute && (g = g.data); + const w = r.get(g); + w === void 0 ? r.set(g, i(g, _)) : w.version < g.version && (s(w.buffer, g, _), w.version = g.version); } return { get: l, remove: d, - update: h + update: p }; } -class ag extends ui { +class lg extends oi { constructor(e = 1, t = 1, r = 1, i = 1) { super(), this.type = "PlaneGeometry", this.parameters = { width: e, @@ -4287,47 +4287,47 @@ class ag extends ui { widthSegments: r, heightSegments: i }; - const o = e / 2, l = t / 2, d = Math.floor(r), h = Math.floor(i), m = d + 1, S = h + 1, _ = e / d, T = t / h, C = [], D = [], P = [], U = []; - for (let B = 0; B < S; B++) { - const k = B * T - l; - for (let V = 0; V < m; V++) { - const I = V * _ - o; - D.push(I, -k, 0), P.push(0, 0, 1), U.push(V / d), U.push(1 - B / h); + const s = e / 2, l = t / 2, d = Math.floor(r), p = Math.floor(i), g = d + 1, _ = p + 1, w = e / d, T = t / p, R = [], D = [], O = [], U = []; + for (let H = 0; H < _; H++) { + const I = H * T - l; + for (let G = 0; G < g; G++) { + const B = G * w - s; + D.push(B, -I, 0), O.push(0, 0, 1), U.push(G / d), U.push(1 - H / p); } } - for (let B = 0; B < h; B++) - for (let k = 0; k < d; k++) { - const V = k + m * B, I = k + m * (B + 1), X = k + 1 + m * (B + 1), J = k + 1 + m * B; - C.push(V, I, J), C.push(I, X, J); + for (let H = 0; H < p; H++) + for (let I = 0; I < d; I++) { + const G = I + g * H, B = I + g * (H + 1), Q = I + 1 + g * (H + 1), K = I + 1 + g * H; + R.push(G, B, K), R.push(B, Q, K); } - this.setIndex(C), this.setAttribute("position", new sr(D, 3)), this.setAttribute("normal", new sr(P, 3)), this.setAttribute("uv", new sr(U, 2)); + this.setIndex(R), this.setAttribute("position", new sr(D, 3)), this.setAttribute("normal", new sr(O, 3)), this.setAttribute("uv", new sr(U, 2)); } static fromJSON(e) { - return new ag(e.width, e.height, e.widthSegments, e.heightSegments); + return new lg(e.width, e.height, e.widthSegments, e.heightSegments); } } -var VH = `#ifdef USE_ALPHAMAP +var e6 = `#ifdef USE_ALPHAMAP diffuseColor.a *= texture2D( alphaMap, vUv ).g; -#endif`, GH = `#ifdef USE_ALPHAMAP +#endif`, t6 = `#ifdef USE_ALPHAMAP uniform sampler2D alphaMap; -#endif`, WH = `#ifdef USE_ALPHATEST +#endif`, n6 = `#ifdef USE_ALPHATEST if ( diffuseColor.a < alphaTest ) discard; -#endif`, jH = `#ifdef USE_ALPHATEST +#endif`, r6 = `#ifdef USE_ALPHATEST uniform float alphaTest; -#endif`, YH = `#ifdef USE_AOMAP +#endif`, i6 = `#ifdef USE_AOMAP float ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0; reflectedLight.indirectDiffuse *= ambientOcclusion; #if defined( USE_ENVMAP ) && defined( STANDARD ) float dotNV = saturate( dot( geometry.normal, geometry.viewDir ) ); reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness ); #endif -#endif`, XH = `#ifdef USE_AOMAP +#endif`, a6 = `#ifdef USE_AOMAP uniform sampler2D aoMap; uniform float aoMapIntensity; -#endif`, qH = "vec3 transformed = vec3( position );", QH = `vec3 objectNormal = vec3( normal ); +#endif`, s6 = "vec3 transformed = vec3( position );", o6 = `vec3 objectNormal = vec3( normal ); #ifdef USE_TANGENT vec3 objectTangent = vec3( tangent.xyz ); -#endif`, ZH = `vec3 BRDF_Lambert( const in vec3 diffuseColor ) { +#endif`, l6 = `vec3 BRDF_Lambert( const in vec3 diffuseColor ) { return RECIPROCAL_PI * diffuseColor; } vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { @@ -4464,7 +4464,7 @@ vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 no float V = V_Neubelt( dotNV, dotNL ); return sheenColor * ( D * V ); } -#endif`, JH = `#ifdef USE_IRIDESCENCE +#endif`, u6 = `#ifdef USE_IRIDESCENCE const mat3 XYZ_TO_REC709 = mat3( 3.2404542, -0.9692660, 0.0556434, -1.5371385, 1.8760108, -0.2040259, @@ -4528,7 +4528,7 @@ vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 no } return max( I, vec3( 0.0 ) ); } -#endif`, KH = `#ifdef USE_BUMPMAP +#endif`, c6 = `#ifdef USE_BUMPMAP uniform sampler2D bumpMap; uniform float bumpScale; vec2 dHdxy_fwd() { @@ -4549,7 +4549,7 @@ vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 no vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 ); return normalize( abs( fDet ) * surf_norm - vGrad ); } -#endif`, $H = `#if NUM_CLIPPING_PLANES > 0 +#endif`, f6 = `#if NUM_CLIPPING_PLANES > 0 vec4 plane; #pragma unroll_loop_start for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { @@ -4567,26 +4567,26 @@ vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 no #pragma unroll_loop_end if ( clipped ) discard; #endif -#endif`, e6 = `#if NUM_CLIPPING_PLANES > 0 +#endif`, d6 = `#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; -#endif`, t6 = `#if NUM_CLIPPING_PLANES > 0 +#endif`, h6 = `#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; -#endif`, n6 = `#if NUM_CLIPPING_PLANES > 0 +#endif`, p6 = `#if NUM_CLIPPING_PLANES > 0 vClipPosition = - mvPosition.xyz; -#endif`, r6 = `#if defined( USE_COLOR_ALPHA ) +#endif`, m6 = `#if defined( USE_COLOR_ALPHA ) diffuseColor *= vColor; #elif defined( USE_COLOR ) diffuseColor.rgb *= vColor; -#endif`, i6 = `#if defined( USE_COLOR_ALPHA ) +#endif`, v6 = `#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) varying vec3 vColor; -#endif`, a6 = `#if defined( USE_COLOR_ALPHA ) +#endif`, g6 = `#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) varying vec3 vColor; -#endif`, s6 = `#if defined( USE_COLOR_ALPHA ) +#endif`, y6 = `#if defined( USE_COLOR_ALPHA ) vColor = vec4( 1.0 ); #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) vColor = vec3( 1.0 ); @@ -4596,7 +4596,7 @@ vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 no #endif #ifdef USE_INSTANCING_COLOR vColor.xyz *= instanceColor.xyz; -#endif`, o6 = `#define PI 3.141592653589793 +#endif`, x6 = `#define PI 3.141592653589793 #define PI2 6.283185307179586 #define PI_HALF 1.5707963267948966 #define RECIPROCAL_PI 0.3183098861837907 @@ -4668,7 +4668,7 @@ vec2 equirectUv( in vec3 dir ) { float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; return vec2( u, v ); -}`, l6 = `#ifdef ENVMAP_TYPE_CUBE_UV +}`, _6 = `#ifdef ENVMAP_TYPE_CUBE_UV #define cubeUV_minMipLevel 4.0 #define cubeUV_minTileSize 16.0 float getFace( vec3 direction ) { @@ -4766,7 +4766,7 @@ vec2 equirectUv( in vec3 dir ) { return vec4( mix( color0, color1, mipF ), 1.0 ); } } -#endif`, u6 = `vec3 transformedNormal = objectNormal; +#endif`, S6 = `vec3 transformedNormal = objectNormal; #ifdef USE_INSTANCING mat3 m = mat3( instanceMatrix ); transformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) ); @@ -4781,23 +4781,23 @@ transformedNormal = normalMatrix * transformedNormal; #ifdef FLIP_SIDED transformedTangent = - transformedTangent; #endif -#endif`, c6 = `#ifdef USE_DISPLACEMENTMAP +#endif`, w6 = `#ifdef USE_DISPLACEMENTMAP uniform sampler2D displacementMap; uniform float displacementScale; uniform float displacementBias; -#endif`, f6 = `#ifdef USE_DISPLACEMENTMAP +#endif`, b6 = `#ifdef USE_DISPLACEMENTMAP transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias ); -#endif`, d6 = `#ifdef USE_EMISSIVEMAP +#endif`, E6 = `#ifdef USE_EMISSIVEMAP vec4 emissiveColor = texture2D( emissiveMap, vUv ); totalEmissiveRadiance *= emissiveColor.rgb; -#endif`, h6 = `#ifdef USE_EMISSIVEMAP +#endif`, M6 = `#ifdef USE_EMISSIVEMAP uniform sampler2D emissiveMap; -#endif`, p6 = "gl_FragColor = linearToOutputTexel( gl_FragColor );", m6 = `vec4 LinearToLinear( in vec4 value ) { +#endif`, T6 = "gl_FragColor = linearToOutputTexel( gl_FragColor );", C6 = `vec4 LinearToLinear( in vec4 value ) { return value; } vec4 LinearTosRGB( in vec4 value ) { return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); -}`, v6 = `#ifdef USE_ENVMAP +}`, R6 = `#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vec3 cameraToFrag; if ( isOrthographic ) { @@ -4828,7 +4828,7 @@ vec4 LinearTosRGB( in vec4 value ) { #elif defined( ENVMAP_BLENDING_ADD ) outgoingLight += envColor.xyz * specularStrength * reflectivity; #endif -#endif`, g6 = `#ifdef USE_ENVMAP +#endif`, A6 = `#ifdef USE_ENVMAP uniform float envMapIntensity; uniform float flipEnvMap; #ifdef ENVMAP_TYPE_CUBE @@ -4837,7 +4837,7 @@ vec4 LinearTosRGB( in vec4 value ) { uniform sampler2D envMap; #endif -#endif`, y6 = `#ifdef USE_ENVMAP +#endif`, D6 = `#ifdef USE_ENVMAP uniform float reflectivity; #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) #define ENV_WORLDPOS @@ -4848,7 +4848,7 @@ vec4 LinearTosRGB( in vec4 value ) { #else varying vec3 vReflect; #endif -#endif`, x6 = `#ifdef USE_ENVMAP +#endif`, L6 = `#ifdef USE_ENVMAP #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG ) #define ENV_WORLDPOS #endif @@ -4859,7 +4859,7 @@ vec4 LinearTosRGB( in vec4 value ) { varying vec3 vReflect; uniform float refractionRatio; #endif -#endif`, S6 = `#ifdef USE_ENVMAP +#endif`, P6 = `#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vWorldPosition = worldPosition.xyz; #else @@ -4876,18 +4876,18 @@ vec4 LinearTosRGB( in vec4 value ) { vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); #endif #endif -#endif`, _6 = `#ifdef USE_FOG +#endif`, O6 = `#ifdef USE_FOG vFogDepth = - mvPosition.z; -#endif`, b6 = `#ifdef USE_FOG +#endif`, U6 = `#ifdef USE_FOG varying float vFogDepth; -#endif`, w6 = `#ifdef USE_FOG +#endif`, z6 = `#ifdef USE_FOG #ifdef FOG_EXP2 float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); #else float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); #endif gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); -#endif`, E6 = `#ifdef USE_FOG +#endif`, N6 = `#ifdef USE_FOG uniform vec3 fogColor; varying float vFogDepth; #ifdef FOG_EXP2 @@ -4896,7 +4896,7 @@ vec4 LinearTosRGB( in vec4 value ) { uniform float fogNear; uniform float fogFar; #endif -#endif`, M6 = `#ifdef USE_GRADIENTMAP +#endif`, F6 = `#ifdef USE_GRADIENTMAP uniform sampler2D gradientMap; #endif vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { @@ -4907,14 +4907,14 @@ vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { #else return ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 ); #endif -}`, T6 = `#ifdef USE_LIGHTMAP +}`, k6 = `#ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vUv2 ); vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; reflectedLight.indirectDiffuse += lightMapIrradiance; -#endif`, C6 = `#ifdef USE_LIGHTMAP +#endif`, I6 = `#ifdef USE_LIGHTMAP uniform sampler2D lightMap; uniform float lightMapIntensity; -#endif`, R6 = `vec3 diffuse = vec3( 1.0 ); +#endif`, B6 = `vec3 diffuse = vec3( 1.0 ); GeometricContext geometry; geometry.position = mvPosition.xyz; geometry.normal = normalize( transformedNormal ); @@ -4986,7 +4986,7 @@ vIndirectFront += getLightProbeIrradiance( lightProbe, geometry.normal ); #endif } #pragma unroll_loop_end -#endif`, A6 = `uniform bool receiveShadow; +#endif`, H6 = `uniform bool receiveShadow; uniform vec3 ambientLightColor; uniform vec3 lightProbe[ 9 ]; vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { @@ -5107,7 +5107,7 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); return irradiance; } -#endif`, D6 = `#if defined( USE_ENVMAP ) +#endif`, V6 = `#if defined( USE_ENVMAP ) vec3 getIBLIrradiance( const in vec3 normal ) { #if defined( ENVMAP_TYPE_CUBE_UV ) vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); @@ -5128,8 +5128,8 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi return vec3( 0.0 ); #endif } -#endif`, L6 = `ToonMaterial material; -material.diffuseColor = diffuseColor.rgb;`, P6 = `varying vec3 vViewPosition; +#endif`, G6 = `ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`, W6 = `varying vec3 vViewPosition; struct ToonMaterial { vec3 diffuseColor; }; @@ -5142,11 +5142,11 @@ void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContex } #define RE_Direct RE_Direct_Toon #define RE_IndirectDiffuse RE_IndirectDiffuse_Toon -#define Material_LightProbeLOD( material ) (0)`, O6 = `BlinnPhongMaterial material; +#define Material_LightProbeLOD( material ) (0)`, j6 = `BlinnPhongMaterial material; material.diffuseColor = diffuseColor.rgb; material.specularColor = specular; material.specularShininess = shininess; -material.specularStrength = specularStrength;`, U6 = `varying vec3 vViewPosition; +material.specularStrength = specularStrength;`, Y6 = `varying vec3 vViewPosition; struct BlinnPhongMaterial { vec3 diffuseColor; vec3 specularColor; @@ -5164,7 +5164,7 @@ void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in Geometric } #define RE_Direct RE_Direct_BlinnPhong #define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong -#define Material_LightProbeLOD( material ) (0)`, z6 = `PhysicalMaterial material; +#define Material_LightProbeLOD( material ) (0)`, X6 = `PhysicalMaterial material; material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); vec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) ); float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); @@ -5227,7 +5227,7 @@ material.roughness = min( material.roughness, 1.0 ); #ifdef USE_SHEENROUGHNESSMAP material.sheenRoughness *= texture2D( sheenRoughnessMap, vUv ).a; #endif -#endif`, N6 = `struct PhysicalMaterial { +#endif`, q6 = `struct PhysicalMaterial { vec3 diffuseColor; float roughness; vec3 specularColor; @@ -5366,7 +5366,7 @@ void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradia #define RE_IndirectSpecular RE_IndirectSpecular_Physical float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); -}`, F6 = ` +}`, Q6 = ` GeometricContext geometry; geometry.position = - vViewPosition; geometry.normal = normal; @@ -5462,7 +5462,7 @@ IncidentLight directLight; #if defined( RE_IndirectSpecular ) vec3 radiance = vec3( 0.0 ); vec3 clearcoatRadiance = vec3( 0.0 ); -#endif`, k6 = `#if defined( RE_IndirectDiffuse ) +#endif`, Z6 = `#if defined( RE_IndirectDiffuse ) #ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vUv2 ); vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; @@ -5477,25 +5477,25 @@ IncidentLight directLight; #ifdef USE_CLEARCOAT clearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness ); #endif -#endif`, I6 = `#if defined( RE_IndirectDiffuse ) +#endif`, J6 = `#if defined( RE_IndirectDiffuse ) RE_IndirectDiffuse( irradiance, geometry, material, reflectedLight ); #endif #if defined( RE_IndirectSpecular ) RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight ); -#endif`, B6 = `#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) +#endif`, K6 = `#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; -#endif`, H6 = `#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) +#endif`, $6 = `#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) uniform float logDepthBufFC; varying float vFragDepth; varying float vIsPerspective; -#endif`, V6 = `#ifdef USE_LOGDEPTHBUF +#endif`, eV = `#ifdef USE_LOGDEPTHBUF #ifdef USE_LOGDEPTHBUF_EXT varying float vFragDepth; varying float vIsPerspective; #else uniform float logDepthBufFC; #endif -#endif`, G6 = `#ifdef USE_LOGDEPTHBUF +#endif`, tV = `#ifdef USE_LOGDEPTHBUF #ifdef USE_LOGDEPTHBUF_EXT vFragDepth = 1.0 + gl_Position.w; vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); @@ -5505,15 +5505,15 @@ IncidentLight directLight; gl_Position.z *= gl_Position.w; } #endif -#endif`, W6 = `#ifdef USE_MAP +#endif`, nV = `#ifdef USE_MAP vec4 sampledDiffuseColor = texture2D( map, vUv ); #ifdef DECODE_VIDEO_TEXTURE sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w ); #endif diffuseColor *= sampledDiffuseColor; -#endif`, j6 = `#ifdef USE_MAP +#endif`, rV = `#ifdef USE_MAP uniform sampler2D map; -#endif`, Y6 = `#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) +#endif`, iV = `#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; #endif #ifdef USE_MAP @@ -5521,7 +5521,7 @@ IncidentLight directLight; #endif #ifdef USE_ALPHAMAP diffuseColor.a *= texture2D( alphaMap, uv ).g; -#endif`, X6 = `#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) +#endif`, aV = `#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) uniform mat3 uvTransform; #endif #ifdef USE_MAP @@ -5529,13 +5529,13 @@ IncidentLight directLight; #endif #ifdef USE_ALPHAMAP uniform sampler2D alphaMap; -#endif`, q6 = `float metalnessFactor = metalness; +#endif`, sV = `float metalnessFactor = metalness; #ifdef USE_METALNESSMAP vec4 texelMetalness = texture2D( metalnessMap, vUv ); metalnessFactor *= texelMetalness.b; -#endif`, Q6 = `#ifdef USE_METALNESSMAP +#endif`, oV = `#ifdef USE_METALNESSMAP uniform sampler2D metalnessMap; -#endif`, Z6 = `#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) +#endif`, lV = `#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) vColor *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { #if defined( USE_COLOR_ALPHA ) @@ -5544,7 +5544,7 @@ IncidentLight directLight; if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; #endif } -#endif`, J6 = `#ifdef USE_MORPHNORMALS +#endif`, uV = `#ifdef USE_MORPHNORMALS objectNormal *= morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { @@ -5556,7 +5556,7 @@ IncidentLight directLight; objectNormal += morphNormal2 * morphTargetInfluences[ 2 ]; objectNormal += morphNormal3 * morphTargetInfluences[ 3 ]; #endif -#endif`, K6 = `#ifdef USE_MORPHTARGETS +#endif`, cV = `#ifdef USE_MORPHTARGETS uniform float morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; @@ -5576,7 +5576,7 @@ IncidentLight directLight; uniform float morphTargetInfluences[ 4 ]; #endif #endif -#endif`, $6 = `#ifdef USE_MORPHTARGETS +#endif`, fV = `#ifdef USE_MORPHTARGETS transformed *= morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { @@ -5594,7 +5594,7 @@ IncidentLight directLight; transformed += morphTarget7 * morphTargetInfluences[ 7 ]; #endif #endif -#endif`, eV = `float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#endif`, dV = `float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; #ifdef FLAT_SHADED vec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) ); vec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) ); @@ -5616,7 +5616,7 @@ IncidentLight directLight; #endif #endif #endif -vec3 geometryNormal = normal;`, tV = `#ifdef OBJECTSPACE_NORMALMAP +vec3 geometryNormal = normal;`, hV = `#ifdef OBJECTSPACE_NORMALMAP normal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0; #ifdef FLIP_SIDED normal = - normal; @@ -5635,25 +5635,25 @@ vec3 geometryNormal = normal;`, tV = `#ifdef OBJECTSPACE_NORMALMAP #endif #elif defined( USE_BUMPMAP ) normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); -#endif`, nV = `#ifndef FLAT_SHADED +#endif`, pV = `#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif -#endif`, rV = `#ifndef FLAT_SHADED +#endif`, mV = `#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif -#endif`, iV = `#ifndef FLAT_SHADED +#endif`, vV = `#ifndef FLAT_SHADED vNormal = normalize( transformedNormal ); #ifdef USE_TANGENT vTangent = normalize( transformedTangent ); vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); #endif -#endif`, aV = `#ifdef USE_NORMALMAP +#endif`, gV = `#ifdef USE_NORMALMAP uniform sampler2D normalMap; uniform vec2 normalScale; #endif @@ -5675,9 +5675,9 @@ vec3 geometryNormal = normal;`, tV = `#ifdef OBJECTSPACE_NORMALMAP float scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det ); return normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z ); } -#endif`, sV = `#ifdef USE_CLEARCOAT +#endif`, yV = `#ifdef USE_CLEARCOAT vec3 clearcoatNormal = geometryNormal; -#endif`, oV = `#ifdef USE_CLEARCOAT_NORMALMAP +#endif`, xV = `#ifdef USE_CLEARCOAT_NORMALMAP vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0; clearcoatMapN.xy *= clearcoatNormalScale; #ifdef USE_TANGENT @@ -5685,7 +5685,7 @@ vec3 geometryNormal = normal;`, tV = `#ifdef OBJECTSPACE_NORMALMAP #else clearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN, faceDirection ); #endif -#endif`, lV = `#ifdef USE_CLEARCOATMAP +#endif`, _V = `#ifdef USE_CLEARCOATMAP uniform sampler2D clearcoatMap; #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP @@ -5694,18 +5694,18 @@ vec3 geometryNormal = normal;`, tV = `#ifdef OBJECTSPACE_NORMALMAP #ifdef USE_CLEARCOAT_NORMALMAP uniform sampler2D clearcoatNormalMap; uniform vec2 clearcoatNormalScale; -#endif`, uV = `#ifdef USE_IRIDESCENCEMAP +#endif`, SV = `#ifdef USE_IRIDESCENCEMAP uniform sampler2D iridescenceMap; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP uniform sampler2D iridescenceThicknessMap; -#endif`, cV = `#ifdef OPAQUE +#endif`, wV = `#ifdef OPAQUE diffuseColor.a = 1.0; #endif #ifdef USE_TRANSMISSION diffuseColor.a *= transmissionAlpha + 0.1; #endif -gl_FragColor = vec4( outgoingLight, diffuseColor.a );`, fV = `vec3 packNormalToRGB( const in vec3 normal ) { +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`, bV = `vec3 packNormalToRGB( const in vec3 normal ) { return normalize( normal ) * 0.5 + 0.5; } vec3 unpackRGBToNormal( const in vec3 rgb ) { @@ -5740,29 +5740,29 @@ float viewZToPerspectiveDepth( const in float viewZ, const in float near, const } float perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) { return ( near * far ) / ( ( far - near ) * invClipZ - far ); -}`, dV = `#ifdef PREMULTIPLIED_ALPHA +}`, EV = `#ifdef PREMULTIPLIED_ALPHA gl_FragColor.rgb *= gl_FragColor.a; -#endif`, hV = `vec4 mvPosition = vec4( transformed, 1.0 ); +#endif`, MV = `vec4 mvPosition = vec4( transformed, 1.0 ); #ifdef USE_INSTANCING mvPosition = instanceMatrix * mvPosition; #endif mvPosition = modelViewMatrix * mvPosition; -gl_Position = projectionMatrix * mvPosition;`, pV = `#ifdef DITHERING +gl_Position = projectionMatrix * mvPosition;`, TV = `#ifdef DITHERING gl_FragColor.rgb = dithering( gl_FragColor.rgb ); -#endif`, mV = `#ifdef DITHERING +#endif`, CV = `#ifdef DITHERING vec3 dithering( vec3 color ) { float grid_position = rand( gl_FragCoord.xy ); vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); return color + dither_shift_RGB; } -#endif`, vV = `float roughnessFactor = roughness; +#endif`, RV = `float roughnessFactor = roughness; #ifdef USE_ROUGHNESSMAP vec4 texelRoughness = texture2D( roughnessMap, vUv ); roughnessFactor *= texelRoughness.g; -#endif`, gV = `#ifdef USE_ROUGHNESSMAP +#endif`, AV = `#ifdef USE_ROUGHNESSMAP uniform sampler2D roughnessMap; -#endif`, yV = `#ifdef USE_SHADOWMAP +#endif`, DV = `#ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; @@ -5936,7 +5936,7 @@ gl_Position = projectionMatrix * mvPosition;`, pV = `#ifdef DITHERING return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); #endif } -#endif`, xV = `#ifdef USE_SHADOWMAP +#endif`, LV = `#ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; @@ -5972,7 +5972,7 @@ gl_Position = projectionMatrix * mvPosition;`, pV = `#ifdef DITHERING }; uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; #endif -#endif`, SV = `#ifdef USE_SHADOWMAP +#endif`, PV = `#ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); vec4 shadowWorldPosition; @@ -6001,7 +6001,7 @@ gl_Position = projectionMatrix * mvPosition;`, pV = `#ifdef DITHERING } #pragma unroll_loop_end #endif -#endif`, _V = `float getShadowMask() { +#endif`, OV = `float getShadowMask() { float shadow = 1.0; #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 @@ -6033,12 +6033,12 @@ gl_Position = projectionMatrix * mvPosition;`, pV = `#ifdef DITHERING #endif #endif return shadow; -}`, bV = `#ifdef USE_SKINNING +}`, UV = `#ifdef USE_SKINNING mat4 boneMatX = getBoneMatrix( skinIndex.x ); mat4 boneMatY = getBoneMatrix( skinIndex.y ); mat4 boneMatZ = getBoneMatrix( skinIndex.z ); mat4 boneMatW = getBoneMatrix( skinIndex.w ); -#endif`, wV = `#ifdef USE_SKINNING +#endif`, zV = `#ifdef USE_SKINNING uniform mat4 bindMatrix; uniform mat4 bindMatrixInverse; uniform highp sampler2D boneTexture; @@ -6057,7 +6057,7 @@ gl_Position = projectionMatrix * mvPosition;`, pV = `#ifdef DITHERING mat4 bone = mat4( v1, v2, v3, v4 ); return bone; } -#endif`, EV = `#ifdef USE_SKINNING +#endif`, NV = `#ifdef USE_SKINNING vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); vec4 skinned = vec4( 0.0 ); skinned += boneMatX * skinVertex * skinWeight.x; @@ -6065,7 +6065,7 @@ gl_Position = projectionMatrix * mvPosition;`, pV = `#ifdef DITHERING skinned += boneMatZ * skinVertex * skinWeight.z; skinned += boneMatW * skinVertex * skinWeight.w; transformed = ( bindMatrixInverse * skinned ).xyz; -#endif`, MV = `#ifdef USE_SKINNING +#endif`, FV = `#ifdef USE_SKINNING mat4 skinMatrix = mat4( 0.0 ); skinMatrix += skinWeight.x * boneMatX; skinMatrix += skinWeight.y * boneMatY; @@ -6076,17 +6076,17 @@ gl_Position = projectionMatrix * mvPosition;`, pV = `#ifdef DITHERING #ifdef USE_TANGENT objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; #endif -#endif`, TV = `float specularStrength; +#endif`, kV = `float specularStrength; #ifdef USE_SPECULARMAP vec4 texelSpecular = texture2D( specularMap, vUv ); specularStrength = texelSpecular.r; #else specularStrength = 1.0; -#endif`, CV = `#ifdef USE_SPECULARMAP +#endif`, IV = `#ifdef USE_SPECULARMAP uniform sampler2D specularMap; -#endif`, RV = `#if defined( TONE_MAPPING ) +#endif`, BV = `#if defined( TONE_MAPPING ) gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); -#endif`, AV = `#ifndef saturate +#endif`, HV = `#ifndef saturate #define saturate( a ) clamp( a, 0.0, 1.0 ) #endif uniform float toneMappingExposure; @@ -6122,7 +6122,7 @@ vec3 ACESFilmicToneMapping( vec3 color ) { color = ACESOutputMat * color; return saturate( color ); } -vec3 CustomToneMapping( vec3 color ) { return color; }`, DV = `#ifdef USE_TRANSMISSION +vec3 CustomToneMapping( vec3 color ) { return color; }`, VV = `#ifdef USE_TRANSMISSION float transmissionAlpha = 1.0; float transmissionFactor = transmission; float thicknessFactor = thickness; @@ -6141,7 +6141,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`, DV = `#ifdef USE_TRANSM attenuationColor, attenuationDistance ); totalDiffuse = mix( totalDiffuse, transmission.rgb, transmissionFactor ); transmissionAlpha = mix( transmissionAlpha, transmission.a, transmissionFactor ); -#endif`, LV = `#ifdef USE_TRANSMISSION +#endif`, GV = `#ifdef USE_TRANSMISSION uniform float transmission; uniform float thickness; uniform float attenuationDistance; @@ -6199,38 +6199,38 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`, DV = `#ifdef USE_TRANSM vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); return vec4( ( 1.0 - F ) * attenuatedColor * diffuseColor, transmittedLight.a ); } -#endif`, PV = `#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) ) +#endif`, WV = `#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) ) varying vec2 vUv; -#endif`, OV = `#ifdef USE_UV +#endif`, jV = `#ifdef USE_UV #ifdef UVS_VERTEX_ONLY vec2 vUv; #else varying vec2 vUv; #endif uniform mat3 uvTransform; -#endif`, UV = `#ifdef USE_UV +#endif`, YV = `#ifdef USE_UV vUv = ( uvTransform * vec3( uv, 1 ) ).xy; -#endif`, zV = `#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) +#endif`, XV = `#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) varying vec2 vUv2; -#endif`, NV = `#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) +#endif`, qV = `#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) attribute vec2 uv2; varying vec2 vUv2; uniform mat3 uv2Transform; -#endif`, FV = `#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) +#endif`, QV = `#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP ) vUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy; -#endif`, kV = `#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) +#endif`, ZV = `#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) vec4 worldPosition = vec4( transformed, 1.0 ); #ifdef USE_INSTANCING worldPosition = instanceMatrix * worldPosition; #endif worldPosition = modelMatrix * worldPosition; #endif`; -const IV = `varying vec2 vUv; +const JV = `varying vec2 vUv; uniform mat3 uvTransform; void main() { vUv = ( uvTransform * vec3( uv, 1 ) ).xy; gl_Position = vec4( position.xy, 1.0, 1.0 ); -}`, BV = `uniform sampler2D t2D; +}`, KV = `uniform sampler2D t2D; varying vec2 vUv; void main() { gl_FragColor = texture2D( t2D, vUv ); @@ -6239,14 +6239,14 @@ void main() { #endif #include #include -}`, HV = `varying vec3 vWorldDirection; +}`, $V = `varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; -}`, VV = `#include +}`, eG = `#include uniform float opacity; varying vec3 vWorldDirection; #include @@ -6257,7 +6257,7 @@ void main() { gl_FragColor.a *= opacity; #include #include -}`, GV = `#include +}`, tG = `#include #include #include #include @@ -6281,7 +6281,7 @@ void main() { #include #include vHighPrecisionZW = gl_Position.zw; -}`, WV = `#if DEPTH_PACKING == 3200 +}`, nG = `#if DEPTH_PACKING == 3200 uniform float opacity; #endif #include @@ -6309,7 +6309,7 @@ void main() { #elif DEPTH_PACKING == 3201 gl_FragColor = packDepthToRGBA( fragCoordZ ); #endif -}`, jV = `#define DISTANCE +}`, rG = `#define DISTANCE varying vec3 vWorldPosition; #include #include @@ -6333,7 +6333,7 @@ void main() { #include #include vWorldPosition = worldPosition.xyz; -}`, YV = `#define DISTANCE +}`, iG = `#define DISTANCE uniform vec3 referencePosition; uniform float nearDistance; uniform float farDistance; @@ -6355,13 +6355,13 @@ void main () { dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); dist = saturate( dist ); gl_FragColor = packDepthToRGBA( dist ); -}`, XV = `varying vec3 vWorldDirection; +}`, aG = `varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include -}`, qV = `uniform sampler2D tEquirect; +}`, sG = `uniform sampler2D tEquirect; varying vec3 vWorldDirection; #include void main() { @@ -6370,7 +6370,7 @@ void main() { gl_FragColor = texture2D( tEquirect, sampleUV ); #include #include -}`, QV = `uniform float scale; +}`, oG = `uniform float scale; attribute float lineDistance; varying float vLineDistance; #include @@ -6389,7 +6389,7 @@ void main() { #include #include #include -}`, ZV = `uniform vec3 diffuse; +}`, lG = `uniform vec3 diffuse; uniform float opacity; uniform float dashSize; uniform float totalSize; @@ -6414,7 +6414,7 @@ void main() { #include #include #include -}`, JV = `#include +}`, uG = `#include #include #include #include @@ -6445,7 +6445,7 @@ void main() { #include #include #include -}`, KV = `uniform vec3 diffuse; +}`, cG = `uniform vec3 diffuse; uniform float opacity; #ifndef FLAT_SHADED varying vec3 vNormal; @@ -6493,7 +6493,7 @@ void main() { #include #include #include -}`, $V = `#define LAMBERT +}`, fG = `#define LAMBERT varying vec3 vLightFront; varying vec3 vIndirectFront; #ifdef DOUBLE_SIDED @@ -6534,7 +6534,7 @@ void main() { #include #include #include -}`, eG = `uniform vec3 diffuse; +}`, dG = `uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; varying vec3 vLightFront; @@ -6600,7 +6600,7 @@ void main() { #include #include #include -}`, tG = `#define MATCAP +}`, hG = `#define MATCAP varying vec3 vViewPosition; #include #include @@ -6631,7 +6631,7 @@ void main() { #include #include vViewPosition = - mvPosition.xyz; -}`, nG = `#define MATCAP +}`, pG = `#define MATCAP uniform vec3 diffuse; uniform float opacity; uniform sampler2D matcap; @@ -6675,7 +6675,7 @@ void main() { #include #include #include -}`, rG = `#define NORMAL +}`, mG = `#define NORMAL #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP ) varying vec3 vViewPosition; #endif @@ -6705,7 +6705,7 @@ void main() { #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP ) vViewPosition = - mvPosition.xyz; #endif -}`, iG = `#define NORMAL +}`, vG = `#define NORMAL uniform float opacity; #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP ) varying vec3 vViewPosition; @@ -6726,7 +6726,7 @@ void main() { #ifdef OPAQUE gl_FragColor.a = 1.0; #endif -}`, aG = `#define PHONG +}`, gG = `#define PHONG varying vec3 vViewPosition; #include #include @@ -6764,7 +6764,7 @@ void main() { #include #include #include -}`, sG = `#define PHONG +}`, yG = `#define PHONG uniform vec3 diffuse; uniform vec3 emissive; uniform vec3 specular; @@ -6823,7 +6823,7 @@ void main() { #include #include #include -}`, oG = `#define STANDARD +}`, xG = `#define STANDARD varying vec3 vViewPosition; #ifdef USE_TRANSMISSION varying vec3 vWorldPosition; @@ -6865,7 +6865,7 @@ void main() { #ifdef USE_TRANSMISSION vWorldPosition = worldPosition.xyz; #endif -}`, lG = `#define STANDARD +}`, _G = `#define STANDARD #ifdef PHYSICAL #define IOR #define SPECULAR @@ -6981,7 +6981,7 @@ void main() { #include #include #include -}`, uG = `#define TOON +}`, SG = `#define TOON varying vec3 vViewPosition; #include #include @@ -7017,7 +7017,7 @@ void main() { #include #include #include -}`, cG = `#define TOON +}`, wG = `#define TOON uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; @@ -7069,7 +7069,7 @@ void main() { #include #include #include -}`, fG = `uniform float size; +}`, bG = `uniform float size; uniform float scale; #include #include @@ -7092,7 +7092,7 @@ void main() { #include #include #include -}`, dG = `uniform vec3 diffuse; +}`, EG = `uniform vec3 diffuse; uniform float opacity; #include #include @@ -7115,7 +7115,7 @@ void main() { #include #include #include -}`, hG = `#include +}`, MG = `#include #include #include #include @@ -7133,7 +7133,7 @@ void main() { #include #include #include -}`, pG = `uniform vec3 color; +}`, TG = `uniform vec3 color; uniform float opacity; #include #include @@ -7147,7 +7147,7 @@ void main() { #include #include #include -}`, mG = `uniform float rotation; +}`, CG = `uniform float rotation; uniform vec2 center; #include #include @@ -7173,7 +7173,7 @@ void main() { #include #include #include -}`, vG = `uniform vec3 diffuse; +}`, RG = `uniform vec3 diffuse; uniform float opacity; #include #include @@ -7197,150 +7197,150 @@ void main() { #include #include }`, na = { - alphamap_fragment: VH, - alphamap_pars_fragment: GH, - alphatest_fragment: WH, - alphatest_pars_fragment: jH, - aomap_fragment: YH, - aomap_pars_fragment: XH, - begin_vertex: qH, - beginnormal_vertex: QH, - bsdfs: ZH, - iridescence_fragment: JH, - bumpmap_pars_fragment: KH, - clipping_planes_fragment: $H, - clipping_planes_pars_fragment: e6, - clipping_planes_pars_vertex: t6, - clipping_planes_vertex: n6, - color_fragment: r6, - color_pars_fragment: i6, - color_pars_vertex: a6, - color_vertex: s6, - common: o6, - cube_uv_reflection_fragment: l6, - defaultnormal_vertex: u6, - displacementmap_pars_vertex: c6, - displacementmap_vertex: f6, - emissivemap_fragment: d6, - emissivemap_pars_fragment: h6, - encodings_fragment: p6, - encodings_pars_fragment: m6, - envmap_fragment: v6, - envmap_common_pars_fragment: g6, - envmap_pars_fragment: y6, - envmap_pars_vertex: x6, - envmap_physical_pars_fragment: D6, - envmap_vertex: S6, - fog_vertex: _6, - fog_pars_vertex: b6, - fog_fragment: w6, - fog_pars_fragment: E6, - gradientmap_pars_fragment: M6, - lightmap_fragment: T6, - lightmap_pars_fragment: C6, - lights_lambert_vertex: R6, - lights_pars_begin: A6, - lights_toon_fragment: L6, - lights_toon_pars_fragment: P6, - lights_phong_fragment: O6, - lights_phong_pars_fragment: U6, - lights_physical_fragment: z6, - lights_physical_pars_fragment: N6, - lights_fragment_begin: F6, - lights_fragment_maps: k6, - lights_fragment_end: I6, - logdepthbuf_fragment: B6, - logdepthbuf_pars_fragment: H6, - logdepthbuf_pars_vertex: V6, - logdepthbuf_vertex: G6, - map_fragment: W6, - map_pars_fragment: j6, - map_particle_fragment: Y6, - map_particle_pars_fragment: X6, - metalnessmap_fragment: q6, - metalnessmap_pars_fragment: Q6, - morphcolor_vertex: Z6, - morphnormal_vertex: J6, - morphtarget_pars_vertex: K6, - morphtarget_vertex: $6, - normal_fragment_begin: eV, - normal_fragment_maps: tV, - normal_pars_fragment: nV, - normal_pars_vertex: rV, - normal_vertex: iV, - normalmap_pars_fragment: aV, - clearcoat_normal_fragment_begin: sV, - clearcoat_normal_fragment_maps: oV, - clearcoat_pars_fragment: lV, - iridescence_pars_fragment: uV, - output_fragment: cV, - packing: fV, - premultiplied_alpha_fragment: dV, - project_vertex: hV, - dithering_fragment: pV, - dithering_pars_fragment: mV, - roughnessmap_fragment: vV, - roughnessmap_pars_fragment: gV, - shadowmap_pars_fragment: yV, - shadowmap_pars_vertex: xV, - shadowmap_vertex: SV, - shadowmask_pars_fragment: _V, - skinbase_vertex: bV, - skinning_pars_vertex: wV, - skinning_vertex: EV, - skinnormal_vertex: MV, - specularmap_fragment: TV, - specularmap_pars_fragment: CV, - tonemapping_fragment: RV, - tonemapping_pars_fragment: AV, - transmission_fragment: DV, - transmission_pars_fragment: LV, - uv_pars_fragment: PV, - uv_pars_vertex: OV, - uv_vertex: UV, - uv2_pars_fragment: zV, - uv2_pars_vertex: NV, - uv2_vertex: FV, - worldpos_vertex: kV, - background_vert: IV, - background_frag: BV, - cube_vert: HV, - cube_frag: VV, - depth_vert: GV, - depth_frag: WV, - distanceRGBA_vert: jV, - distanceRGBA_frag: YV, - equirect_vert: XV, - equirect_frag: qV, - linedashed_vert: QV, - linedashed_frag: ZV, - meshbasic_vert: JV, - meshbasic_frag: KV, - meshlambert_vert: $V, - meshlambert_frag: eG, - meshmatcap_vert: tG, - meshmatcap_frag: nG, - meshnormal_vert: rG, - meshnormal_frag: iG, - meshphong_vert: aG, - meshphong_frag: sG, - meshphysical_vert: oG, - meshphysical_frag: lG, - meshtoon_vert: uG, - meshtoon_frag: cG, - points_vert: fG, - points_frag: dG, - shadow_vert: hG, - shadow_frag: pG, - sprite_vert: mG, - sprite_frag: vG -}, Fn = { + alphamap_fragment: e6, + alphamap_pars_fragment: t6, + alphatest_fragment: n6, + alphatest_pars_fragment: r6, + aomap_fragment: i6, + aomap_pars_fragment: a6, + begin_vertex: s6, + beginnormal_vertex: o6, + bsdfs: l6, + iridescence_fragment: u6, + bumpmap_pars_fragment: c6, + clipping_planes_fragment: f6, + clipping_planes_pars_fragment: d6, + clipping_planes_pars_vertex: h6, + clipping_planes_vertex: p6, + color_fragment: m6, + color_pars_fragment: v6, + color_pars_vertex: g6, + color_vertex: y6, + common: x6, + cube_uv_reflection_fragment: _6, + defaultnormal_vertex: S6, + displacementmap_pars_vertex: w6, + displacementmap_vertex: b6, + emissivemap_fragment: E6, + emissivemap_pars_fragment: M6, + encodings_fragment: T6, + encodings_pars_fragment: C6, + envmap_fragment: R6, + envmap_common_pars_fragment: A6, + envmap_pars_fragment: D6, + envmap_pars_vertex: L6, + envmap_physical_pars_fragment: V6, + envmap_vertex: P6, + fog_vertex: O6, + fog_pars_vertex: U6, + fog_fragment: z6, + fog_pars_fragment: N6, + gradientmap_pars_fragment: F6, + lightmap_fragment: k6, + lightmap_pars_fragment: I6, + lights_lambert_vertex: B6, + lights_pars_begin: H6, + lights_toon_fragment: G6, + lights_toon_pars_fragment: W6, + lights_phong_fragment: j6, + lights_phong_pars_fragment: Y6, + lights_physical_fragment: X6, + lights_physical_pars_fragment: q6, + lights_fragment_begin: Q6, + lights_fragment_maps: Z6, + lights_fragment_end: J6, + logdepthbuf_fragment: K6, + logdepthbuf_pars_fragment: $6, + logdepthbuf_pars_vertex: eV, + logdepthbuf_vertex: tV, + map_fragment: nV, + map_pars_fragment: rV, + map_particle_fragment: iV, + map_particle_pars_fragment: aV, + metalnessmap_fragment: sV, + metalnessmap_pars_fragment: oV, + morphcolor_vertex: lV, + morphnormal_vertex: uV, + morphtarget_pars_vertex: cV, + morphtarget_vertex: fV, + normal_fragment_begin: dV, + normal_fragment_maps: hV, + normal_pars_fragment: pV, + normal_pars_vertex: mV, + normal_vertex: vV, + normalmap_pars_fragment: gV, + clearcoat_normal_fragment_begin: yV, + clearcoat_normal_fragment_maps: xV, + clearcoat_pars_fragment: _V, + iridescence_pars_fragment: SV, + output_fragment: wV, + packing: bV, + premultiplied_alpha_fragment: EV, + project_vertex: MV, + dithering_fragment: TV, + dithering_pars_fragment: CV, + roughnessmap_fragment: RV, + roughnessmap_pars_fragment: AV, + shadowmap_pars_fragment: DV, + shadowmap_pars_vertex: LV, + shadowmap_vertex: PV, + shadowmask_pars_fragment: OV, + skinbase_vertex: UV, + skinning_pars_vertex: zV, + skinning_vertex: NV, + skinnormal_vertex: FV, + specularmap_fragment: kV, + specularmap_pars_fragment: IV, + tonemapping_fragment: BV, + tonemapping_pars_fragment: HV, + transmission_fragment: VV, + transmission_pars_fragment: GV, + uv_pars_fragment: WV, + uv_pars_vertex: jV, + uv_vertex: YV, + uv2_pars_fragment: XV, + uv2_pars_vertex: qV, + uv2_vertex: QV, + worldpos_vertex: ZV, + background_vert: JV, + background_frag: KV, + cube_vert: $V, + cube_frag: eG, + depth_vert: tG, + depth_frag: nG, + distanceRGBA_vert: rG, + distanceRGBA_frag: iG, + equirect_vert: aG, + equirect_frag: sG, + linedashed_vert: oG, + linedashed_frag: lG, + meshbasic_vert: uG, + meshbasic_frag: cG, + meshlambert_vert: fG, + meshlambert_frag: dG, + meshmatcap_vert: hG, + meshmatcap_frag: pG, + meshnormal_vert: mG, + meshnormal_frag: vG, + meshphong_vert: gG, + meshphong_frag: yG, + meshphysical_vert: xG, + meshphysical_frag: _G, + meshtoon_vert: SG, + meshtoon_frag: wG, + points_vert: bG, + points_frag: EG, + shadow_vert: MG, + shadow_frag: TG, + sprite_vert: CG, + sprite_frag: RG +}, In = { common: { - diffuse: { value: /* @__PURE__ */ new Pn(16777215) }, + diffuse: { value: /* @__PURE__ */ new Un(16777215) }, opacity: { value: 1 }, map: { value: null }, - uvTransform: { value: /* @__PURE__ */ new jh() }, - uv2Transform: { value: /* @__PURE__ */ new jh() }, + uvTransform: { value: /* @__PURE__ */ new Xh() }, + uv2Transform: { value: /* @__PURE__ */ new Xh() }, alphaMap: { value: null }, alphaTest: { value: 0 } }, @@ -7371,7 +7371,7 @@ void main() { }, normalmap: { normalMap: { value: null }, - normalScale: { value: /* @__PURE__ */ new Ft(1, 1) } + normalScale: { value: /* @__PURE__ */ new zt(1, 1) } }, displacementmap: { displacementMap: { value: null }, @@ -7391,7 +7391,7 @@ void main() { fogDensity: { value: 25e-5 }, fogNear: { value: 1 }, fogFar: { value: 2e3 }, - fogColor: { value: /* @__PURE__ */ new Pn(16777215) } + fogColor: { value: /* @__PURE__ */ new Un(16777215) } }, lights: { ambientLightColor: { value: [] }, @@ -7456,71 +7456,71 @@ void main() { ltc_2: { value: null } }, points: { - diffuse: { value: /* @__PURE__ */ new Pn(16777215) }, + diffuse: { value: /* @__PURE__ */ new Un(16777215) }, opacity: { value: 1 }, size: { value: 1 }, scale: { value: 1 }, map: { value: null }, alphaMap: { value: null }, alphaTest: { value: 0 }, - uvTransform: { value: /* @__PURE__ */ new jh() } + uvTransform: { value: /* @__PURE__ */ new Xh() } }, sprite: { - diffuse: { value: /* @__PURE__ */ new Pn(16777215) }, + diffuse: { value: /* @__PURE__ */ new Un(16777215) }, opacity: { value: 1 }, - center: { value: /* @__PURE__ */ new Ft(0.5, 0.5) }, + center: { value: /* @__PURE__ */ new zt(0.5, 0.5) }, rotation: { value: 0 }, map: { value: null }, alphaMap: { value: null }, alphaTest: { value: 0 }, - uvTransform: { value: /* @__PURE__ */ new jh() } + uvTransform: { value: /* @__PURE__ */ new Xh() } } -}, Gh = { +}, Wh = { basic: { - uniforms: /* @__PURE__ */ lh([ - Fn.common, - Fn.specularmap, - Fn.envmap, - Fn.aomap, - Fn.lightmap, - Fn.fog + uniforms: /* @__PURE__ */ uh([ + In.common, + In.specularmap, + In.envmap, + In.aomap, + In.lightmap, + In.fog ]), vertexShader: na.meshbasic_vert, fragmentShader: na.meshbasic_frag }, lambert: { - uniforms: /* @__PURE__ */ lh([ - Fn.common, - Fn.specularmap, - Fn.envmap, - Fn.aomap, - Fn.lightmap, - Fn.emissivemap, - Fn.fog, - Fn.lights, + uniforms: /* @__PURE__ */ uh([ + In.common, + In.specularmap, + In.envmap, + In.aomap, + In.lightmap, + In.emissivemap, + In.fog, + In.lights, { - emissive: { value: /* @__PURE__ */ new Pn(0) } + emissive: { value: /* @__PURE__ */ new Un(0) } } ]), vertexShader: na.meshlambert_vert, fragmentShader: na.meshlambert_frag }, phong: { - uniforms: /* @__PURE__ */ lh([ - Fn.common, - Fn.specularmap, - Fn.envmap, - Fn.aomap, - Fn.lightmap, - Fn.emissivemap, - Fn.bumpmap, - Fn.normalmap, - Fn.displacementmap, - Fn.fog, - Fn.lights, + uniforms: /* @__PURE__ */ uh([ + In.common, + In.specularmap, + In.envmap, + In.aomap, + In.lightmap, + In.emissivemap, + In.bumpmap, + In.normalmap, + In.displacementmap, + In.fog, + In.lights, { - emissive: { value: /* @__PURE__ */ new Pn(0) }, - specular: { value: /* @__PURE__ */ new Pn(1118481) }, + emissive: { value: /* @__PURE__ */ new Un(0) }, + specular: { value: /* @__PURE__ */ new Un(1118481) }, shininess: { value: 30 } } ]), @@ -7528,21 +7528,21 @@ void main() { fragmentShader: na.meshphong_frag }, standard: { - uniforms: /* @__PURE__ */ lh([ - Fn.common, - Fn.envmap, - Fn.aomap, - Fn.lightmap, - Fn.emissivemap, - Fn.bumpmap, - Fn.normalmap, - Fn.displacementmap, - Fn.roughnessmap, - Fn.metalnessmap, - Fn.fog, - Fn.lights, + uniforms: /* @__PURE__ */ uh([ + In.common, + In.envmap, + In.aomap, + In.lightmap, + In.emissivemap, + In.bumpmap, + In.normalmap, + In.displacementmap, + In.roughnessmap, + In.metalnessmap, + In.fog, + In.lights, { - emissive: { value: /* @__PURE__ */ new Pn(0) }, + emissive: { value: /* @__PURE__ */ new Un(0) }, roughness: { value: 1 }, metalness: { value: 0 }, envMapIntensity: { value: 1 } @@ -7552,31 +7552,31 @@ void main() { fragmentShader: na.meshphysical_frag }, toon: { - uniforms: /* @__PURE__ */ lh([ - Fn.common, - Fn.aomap, - Fn.lightmap, - Fn.emissivemap, - Fn.bumpmap, - Fn.normalmap, - Fn.displacementmap, - Fn.gradientmap, - Fn.fog, - Fn.lights, + uniforms: /* @__PURE__ */ uh([ + In.common, + In.aomap, + In.lightmap, + In.emissivemap, + In.bumpmap, + In.normalmap, + In.displacementmap, + In.gradientmap, + In.fog, + In.lights, { - emissive: { value: /* @__PURE__ */ new Pn(0) } + emissive: { value: /* @__PURE__ */ new Un(0) } } ]), vertexShader: na.meshtoon_vert, fragmentShader: na.meshtoon_frag }, matcap: { - uniforms: /* @__PURE__ */ lh([ - Fn.common, - Fn.bumpmap, - Fn.normalmap, - Fn.displacementmap, - Fn.fog, + uniforms: /* @__PURE__ */ uh([ + In.common, + In.bumpmap, + In.normalmap, + In.displacementmap, + In.fog, { matcap: { value: null } } @@ -7585,17 +7585,17 @@ void main() { fragmentShader: na.meshmatcap_frag }, points: { - uniforms: /* @__PURE__ */ lh([ - Fn.points, - Fn.fog + uniforms: /* @__PURE__ */ uh([ + In.points, + In.fog ]), vertexShader: na.points_vert, fragmentShader: na.points_frag }, dashed: { - uniforms: /* @__PURE__ */ lh([ - Fn.common, - Fn.fog, + uniforms: /* @__PURE__ */ uh([ + In.common, + In.fog, { scale: { value: 1 }, dashSize: { value: 1 }, @@ -7606,19 +7606,19 @@ void main() { fragmentShader: na.linedashed_frag }, depth: { - uniforms: /* @__PURE__ */ lh([ - Fn.common, - Fn.displacementmap + uniforms: /* @__PURE__ */ uh([ + In.common, + In.displacementmap ]), vertexShader: na.depth_vert, fragmentShader: na.depth_frag }, normal: { - uniforms: /* @__PURE__ */ lh([ - Fn.common, - Fn.bumpmap, - Fn.normalmap, - Fn.displacementmap, + uniforms: /* @__PURE__ */ uh([ + In.common, + In.bumpmap, + In.normalmap, + In.displacementmap, { opacity: { value: 1 } } @@ -7627,24 +7627,24 @@ void main() { fragmentShader: na.meshnormal_frag }, sprite: { - uniforms: /* @__PURE__ */ lh([ - Fn.sprite, - Fn.fog + uniforms: /* @__PURE__ */ uh([ + In.sprite, + In.fog ]), vertexShader: na.sprite_vert, fragmentShader: na.sprite_frag }, background: { uniforms: { - uvTransform: { value: /* @__PURE__ */ new jh() }, + uvTransform: { value: /* @__PURE__ */ new Xh() }, t2D: { value: null } }, vertexShader: na.background_vert, fragmentShader: na.background_frag }, cube: { - uniforms: /* @__PURE__ */ lh([ - Fn.envmap, + uniforms: /* @__PURE__ */ uh([ + In.envmap, { opacity: { value: 1 } } @@ -7660,11 +7660,11 @@ void main() { fragmentShader: na.equirect_frag }, distanceRGBA: { - uniforms: /* @__PURE__ */ lh([ - Fn.common, - Fn.displacementmap, + uniforms: /* @__PURE__ */ uh([ + In.common, + In.displacementmap, { - referencePosition: { value: /* @__PURE__ */ new ve() }, + referencePosition: { value: /* @__PURE__ */ new ge() }, nearDistance: { value: 1 }, farDistance: { value: 1e3 } } @@ -7673,11 +7673,11 @@ void main() { fragmentShader: na.distanceRGBA_frag }, shadow: { - uniforms: /* @__PURE__ */ lh([ - Fn.lights, - Fn.fog, + uniforms: /* @__PURE__ */ uh([ + In.lights, + In.fog, { - color: { value: /* @__PURE__ */ new Pn(0) }, + color: { value: /* @__PURE__ */ new Un(0) }, opacity: { value: 1 } } ]), @@ -7685,15 +7685,15 @@ void main() { fragmentShader: na.shadow_frag } }; -Gh.physical = { - uniforms: /* @__PURE__ */ lh([ - Gh.standard.uniforms, +Wh.physical = { + uniforms: /* @__PURE__ */ uh([ + Wh.standard.uniforms, { clearcoat: { value: 0 }, clearcoatMap: { value: null }, clearcoatRoughness: { value: 0 }, clearcoatRoughnessMap: { value: null }, - clearcoatNormalScale: { value: /* @__PURE__ */ new Ft(1, 1) }, + clearcoatNormalScale: { value: /* @__PURE__ */ new zt(1, 1) }, clearcoatNormalMap: { value: null }, iridescence: { value: 0 }, iridescenceMap: { value: null }, @@ -7702,439 +7702,439 @@ Gh.physical = { iridescenceThicknessMaximum: { value: 400 }, iridescenceThicknessMap: { value: null }, sheen: { value: 0 }, - sheenColor: { value: /* @__PURE__ */ new Pn(0) }, + sheenColor: { value: /* @__PURE__ */ new Un(0) }, sheenColorMap: { value: null }, sheenRoughness: { value: 1 }, sheenRoughnessMap: { value: null }, transmission: { value: 0 }, transmissionMap: { value: null }, - transmissionSamplerSize: { value: /* @__PURE__ */ new Ft() }, + transmissionSamplerSize: { value: /* @__PURE__ */ new zt() }, transmissionSamplerMap: { value: null }, thickness: { value: 0 }, thicknessMap: { value: null }, attenuationDistance: { value: 0 }, - attenuationColor: { value: /* @__PURE__ */ new Pn(0) }, + attenuationColor: { value: /* @__PURE__ */ new Un(0) }, specularIntensity: { value: 1 }, specularIntensityMap: { value: null }, - specularColor: { value: /* @__PURE__ */ new Pn(1, 1, 1) }, + specularColor: { value: /* @__PURE__ */ new Un(1, 1, 1) }, specularColorMap: { value: null } } ]), vertexShader: na.meshphysical_vert, fragmentShader: na.meshphysical_frag }; -function gG(a, e, t, r, i, o) { - const l = new Pn(0); - let d = i === !0 ? 0 : 1, h, m, S = null, _ = 0, T = null; - function C(P, U) { - let B = !1, k = U.isScene === !0 ? U.background : null; - k && k.isTexture && (k = e.get(k)); - const V = a.xr, I = V.getSession && V.getSession(); - I && I.environmentBlendMode === "additive" && (k = null), k === null ? D(l, d) : k && k.isColor && (D(k, 1), B = !0), (a.autoClear || B) && a.clear(a.autoClearColor, a.autoClearDepth, a.autoClearStencil), k && (k.isCubeTexture || k.mapping === hw) ? (m === void 0 && (m = new zn( - new cl(1, 1, 1), - new wu({ +function AG(a, e, t, r, i, s) { + const l = new Un(0); + let d = i === !0 ? 0 : 1, p, g, _ = null, w = 0, T = null; + function R(O, U) { + let H = !1, I = U.isScene === !0 ? U.background : null; + I && I.isTexture && (I = e.get(I)); + const G = a.xr, B = G.getSession && G.getSession(); + B && B.environmentBlendMode === "additive" && (I = null), I === null ? D(l, d) : I && I.isColor && (D(I, 1), H = !0), (a.autoClear || H) && a.clear(a.autoClearColor, a.autoClearDepth, a.autoClearStencil), I && (I.isCubeTexture || I.mapping === hb) ? (g === void 0 && (g = new Fn( + new fl(1, 1, 1), + new Mu({ name: "BackgroundCubeMaterial", - uniforms: Kb(Gh.cube.uniforms), - vertexShader: Gh.cube.vertexShader, - fragmentShader: Gh.cube.fragmentShader, - side: uf, + uniforms: Kw(Wh.cube.uniforms), + vertexShader: Wh.cube.vertexShader, + fragmentShader: Wh.cube.fragmentShader, + side: cf, depthTest: !1, depthWrite: !1, fog: !1 }) - ), m.geometry.deleteAttribute("normal"), m.geometry.deleteAttribute("uv"), m.onBeforeRender = function(X, J, $) { - this.matrixWorld.copyPosition($.matrixWorld); - }, Object.defineProperty(m.material, "envMap", { + ), g.geometry.deleteAttribute("normal"), g.geometry.deleteAttribute("uv"), g.onBeforeRender = function(Q, K, te) { + this.matrixWorld.copyPosition(te.matrixWorld); + }, Object.defineProperty(g.material, "envMap", { get: function() { return this.uniforms.envMap.value; } - }), r.update(m)), m.material.uniforms.envMap.value = k, m.material.uniforms.flipEnvMap.value = k.isCubeTexture && k.isRenderTargetTexture === !1 ? -1 : 1, (S !== k || _ !== k.version || T !== a.toneMapping) && (m.material.needsUpdate = !0, S = k, _ = k.version, T = a.toneMapping), m.layers.enableAll(), P.unshift(m, m.geometry, m.material, 0, 0, null)) : k && k.isTexture && (h === void 0 && (h = new zn( - new ag(2, 2), - new wu({ + }), r.update(g)), g.material.uniforms.envMap.value = I, g.material.uniforms.flipEnvMap.value = I.isCubeTexture && I.isRenderTargetTexture === !1 ? -1 : 1, (_ !== I || w !== I.version || T !== a.toneMapping) && (g.material.needsUpdate = !0, _ = I, w = I.version, T = a.toneMapping), g.layers.enableAll(), O.unshift(g, g.geometry, g.material, 0, 0, null)) : I && I.isTexture && (p === void 0 && (p = new Fn( + new lg(2, 2), + new Mu({ name: "BackgroundMaterial", - uniforms: Kb(Gh.background.uniforms), - vertexShader: Gh.background.vertexShader, - fragmentShader: Gh.background.fragmentShader, - side: py, + uniforms: Kw(Wh.background.uniforms), + vertexShader: Wh.background.vertexShader, + fragmentShader: Wh.background.fragmentShader, + side: vy, depthTest: !1, depthWrite: !1, fog: !1 }) - ), h.geometry.deleteAttribute("normal"), Object.defineProperty(h.material, "map", { + ), p.geometry.deleteAttribute("normal"), Object.defineProperty(p.material, "map", { get: function() { return this.uniforms.t2D.value; } - }), r.update(h)), h.material.uniforms.t2D.value = k, k.matrixAutoUpdate === !0 && k.updateMatrix(), h.material.uniforms.uvTransform.value.copy(k.matrix), (S !== k || _ !== k.version || T !== a.toneMapping) && (h.material.needsUpdate = !0, S = k, _ = k.version, T = a.toneMapping), h.layers.enableAll(), P.unshift(h, h.geometry, h.material, 0, 0, null)); + }), r.update(p)), p.material.uniforms.t2D.value = I, I.matrixAutoUpdate === !0 && I.updateMatrix(), p.material.uniforms.uvTransform.value.copy(I.matrix), (_ !== I || w !== I.version || T !== a.toneMapping) && (p.material.needsUpdate = !0, _ = I, w = I.version, T = a.toneMapping), p.layers.enableAll(), O.unshift(p, p.geometry, p.material, 0, 0, null)); } - function D(P, U) { - t.buffers.color.setClear(P.r, P.g, P.b, U, o); + function D(O, U) { + t.buffers.color.setClear(O.r, O.g, O.b, U, s); } return { getClearColor: function() { return l; }, - setClearColor: function(P, U = 1) { - l.set(P), d = U, D(l, d); + setClearColor: function(O, U = 1) { + l.set(O), d = U, D(l, d); }, getClearAlpha: function() { return d; }, - setClearAlpha: function(P) { - d = P, D(l, d); + setClearAlpha: function(O) { + d = O, D(l, d); }, - render: C + render: R }; } -function yG(a, e, t, r) { - const i = a.getParameter(34921), o = r.isWebGL2 ? null : e.get("OES_vertex_array_object"), l = r.isWebGL2 || o !== null, d = {}, h = U(null); - let m = h, S = !1; - function _(he, Fe, Ce, Be, pe) { - let de = !1; +function DG(a, e, t, r) { + const i = a.getParameter(34921), s = r.isWebGL2 ? null : e.get("OES_vertex_array_object"), l = r.isWebGL2 || s !== null, d = {}, p = U(null); + let g = p, _ = !1; + function w(me, De, Re, He, ve) { + let fe = !1; if (l) { - const ce = P(Be, Ce, Fe); - m !== ce && (m = ce, C(m.object)), de = B(he, Be, Ce, pe), de && k(he, Be, Ce, pe); + const he = O(He, Re, De); + g !== he && (g = he, R(g.object)), fe = H(me, He, Re, ve), fe && I(me, He, Re, ve); } else { - const ce = Fe.wireframe === !0; - (m.geometry !== Be.id || m.program !== Ce.id || m.wireframe !== ce) && (m.geometry = Be.id, m.program = Ce.id, m.wireframe = ce, de = !0); + const he = De.wireframe === !0; + (g.geometry !== He.id || g.program !== Re.id || g.wireframe !== he) && (g.geometry = He.id, g.program = Re.id, g.wireframe = he, fe = !0); } - pe !== null && t.update(pe, 34963), (de || S) && (S = !1, W(he, Fe, Ce, Be), pe !== null && a.bindBuffer(34963, t.get(pe).buffer)); + ve !== null && t.update(ve, 34963), (fe || _) && (_ = !1, Y(me, De, Re, He), ve !== null && a.bindBuffer(34963, t.get(ve).buffer)); } function T() { - return r.isWebGL2 ? a.createVertexArray() : o.createVertexArrayOES(); - } - function C(he) { - return r.isWebGL2 ? a.bindVertexArray(he) : o.bindVertexArrayOES(he); - } - function D(he) { - return r.isWebGL2 ? a.deleteVertexArray(he) : o.deleteVertexArrayOES(he); - } - function P(he, Fe, Ce) { - const Be = Ce.wireframe === !0; - let pe = d[he.id]; - pe === void 0 && (pe = {}, d[he.id] = pe); - let de = pe[Fe.id]; - de === void 0 && (de = {}, pe[Fe.id] = de); - let ce = de[Be]; - return ce === void 0 && (ce = U(T()), de[Be] = ce), ce; - } - function U(he) { - const Fe = [], Ce = [], Be = []; - for (let pe = 0; pe < i; pe++) - Fe[pe] = 0, Ce[pe] = 0, Be[pe] = 0; + return r.isWebGL2 ? a.createVertexArray() : s.createVertexArrayOES(); + } + function R(me) { + return r.isWebGL2 ? a.bindVertexArray(me) : s.bindVertexArrayOES(me); + } + function D(me) { + return r.isWebGL2 ? a.deleteVertexArray(me) : s.deleteVertexArrayOES(me); + } + function O(me, De, Re) { + const He = Re.wireframe === !0; + let ve = d[me.id]; + ve === void 0 && (ve = {}, d[me.id] = ve); + let fe = ve[De.id]; + fe === void 0 && (fe = {}, ve[De.id] = fe); + let he = fe[He]; + return he === void 0 && (he = U(T()), fe[He] = he), he; + } + function U(me) { + const De = [], Re = [], He = []; + for (let ve = 0; ve < i; ve++) + De[ve] = 0, Re[ve] = 0, He[ve] = 0; return { geometry: null, program: null, wireframe: !1, - newAttributes: Fe, - enabledAttributes: Ce, - attributeDivisors: Be, - object: he, + newAttributes: De, + enabledAttributes: Re, + attributeDivisors: He, + object: me, attributes: {}, index: null }; } - function B(he, Fe, Ce, Be) { - const pe = m.attributes, de = Fe.attributes; - let ce = 0; - const ye = Ce.getAttributes(); - for (const we in ye) - if (ye[we].location >= 0) { - const Je = pe[we]; - let st = de[we]; - if (st === void 0 && (we === "instanceMatrix" && he.instanceMatrix && (st = he.instanceMatrix), we === "instanceColor" && he.instanceColor && (st = he.instanceColor)), Je === void 0 || Je.attribute !== st || st && Je.data !== st.data) + function H(me, De, Re, He) { + const ve = g.attributes, fe = De.attributes; + let he = 0; + const ye = Re.getAttributes(); + for (const Ee in ye) + if (ye[Ee].location >= 0) { + const Je = ve[Ee]; + let rt = fe[Ee]; + if (rt === void 0 && (Ee === "instanceMatrix" && me.instanceMatrix && (rt = me.instanceMatrix), Ee === "instanceColor" && me.instanceColor && (rt = me.instanceColor)), Je === void 0 || Je.attribute !== rt || rt && Je.data !== rt.data) return !0; - ce++; + he++; } - return m.attributesNum !== ce || m.index !== Be; + return g.attributesNum !== he || g.index !== He; } - function k(he, Fe, Ce, Be) { - const pe = {}, de = Fe.attributes; - let ce = 0; - const ye = Ce.getAttributes(); - for (const we in ye) - if (ye[we].location >= 0) { - let Je = de[we]; - Je === void 0 && (we === "instanceMatrix" && he.instanceMatrix && (Je = he.instanceMatrix), we === "instanceColor" && he.instanceColor && (Je = he.instanceColor)); - const st = {}; - st.attribute = Je, Je && Je.data && (st.data = Je.data), pe[we] = st, ce++; + function I(me, De, Re, He) { + const ve = {}, fe = De.attributes; + let he = 0; + const ye = Re.getAttributes(); + for (const Ee in ye) + if (ye[Ee].location >= 0) { + let Je = fe[Ee]; + Je === void 0 && (Ee === "instanceMatrix" && me.instanceMatrix && (Je = me.instanceMatrix), Ee === "instanceColor" && me.instanceColor && (Je = me.instanceColor)); + const rt = {}; + rt.attribute = Je, Je && Je.data && (rt.data = Je.data), ve[Ee] = rt, he++; } - m.attributes = pe, m.attributesNum = ce, m.index = Be; + g.attributes = ve, g.attributesNum = he, g.index = He; } - function V() { - const he = m.newAttributes; - for (let Fe = 0, Ce = he.length; Fe < Ce; Fe++) - he[Fe] = 0; + function G() { + const me = g.newAttributes; + for (let De = 0, Re = me.length; De < Re; De++) + me[De] = 0; } - function I(he) { - X(he, 0); + function B(me) { + Q(me, 0); } - function X(he, Fe) { - const Ce = m.newAttributes, Be = m.enabledAttributes, pe = m.attributeDivisors; - Ce[he] = 1, Be[he] === 0 && (a.enableVertexAttribArray(he), Be[he] = 1), pe[he] !== Fe && ((r.isWebGL2 ? a : e.get("ANGLE_instanced_arrays"))[r.isWebGL2 ? "vertexAttribDivisor" : "vertexAttribDivisorANGLE"](he, Fe), pe[he] = Fe); + function Q(me, De) { + const Re = g.newAttributes, He = g.enabledAttributes, ve = g.attributeDivisors; + Re[me] = 1, He[me] === 0 && (a.enableVertexAttribArray(me), He[me] = 1), ve[me] !== De && ((r.isWebGL2 ? a : e.get("ANGLE_instanced_arrays"))[r.isWebGL2 ? "vertexAttribDivisor" : "vertexAttribDivisorANGLE"](me, De), ve[me] = De); } - function J() { - const he = m.newAttributes, Fe = m.enabledAttributes; - for (let Ce = 0, Be = Fe.length; Ce < Be; Ce++) - Fe[Ce] !== he[Ce] && (a.disableVertexAttribArray(Ce), Fe[Ce] = 0); + function K() { + const me = g.newAttributes, De = g.enabledAttributes; + for (let Re = 0, He = De.length; Re < He; Re++) + De[Re] !== me[Re] && (a.disableVertexAttribArray(Re), De[Re] = 0); } - function $(he, Fe, Ce, Be, pe, de) { - r.isWebGL2 === !0 && (Ce === 5124 || Ce === 5125) ? a.vertexAttribIPointer(he, Fe, Ce, pe, de) : a.vertexAttribPointer(he, Fe, Ce, Be, pe, de); + function te(me, De, Re, He, ve, fe) { + r.isWebGL2 === !0 && (Re === 5124 || Re === 5125) ? a.vertexAttribIPointer(me, De, Re, ve, fe) : a.vertexAttribPointer(me, De, Re, He, ve, fe); } - function W(he, Fe, Ce, Be) { - if (r.isWebGL2 === !1 && (he.isInstancedMesh || Be.isInstancedBufferGeometry) && e.get("ANGLE_instanced_arrays") === null) + function Y(me, De, Re, He) { + if (r.isWebGL2 === !1 && (me.isInstancedMesh || He.isInstancedBufferGeometry) && e.get("ANGLE_instanced_arrays") === null) return; - V(); - const pe = Be.attributes, de = Ce.getAttributes(), ce = Fe.defaultAttributeValues; - for (const ye in de) { - const we = de[ye]; - if (we.location >= 0) { - let Xe = pe[ye]; - if (Xe === void 0 && (ye === "instanceMatrix" && he.instanceMatrix && (Xe = he.instanceMatrix), ye === "instanceColor" && he.instanceColor && (Xe = he.instanceColor)), Xe !== void 0) { - const Je = Xe.normalized, st = Xe.itemSize, Ue = t.get(Xe); - if (Ue === void 0) + G(); + const ve = He.attributes, fe = Re.getAttributes(), he = De.defaultAttributeValues; + for (const ye in fe) { + const Ee = fe[ye]; + if (Ee.location >= 0) { + let Ve = ve[ye]; + if (Ve === void 0 && (ye === "instanceMatrix" && me.instanceMatrix && (Ve = me.instanceMatrix), ye === "instanceColor" && me.instanceColor && (Ve = me.instanceColor)), Ve !== void 0) { + const Je = Ve.normalized, rt = Ve.itemSize, Ne = t.get(Ve); + if (Ne === void 0) continue; - const ot = Ue.buffer, rt = Ue.type, _t = Ue.bytesPerElement; - if (Xe.isInterleavedBufferAttribute) { - const Rt = Xe.data, Ot = Rt.stride, He = Xe.offset; - if (Rt.isInstancedInterleavedBuffer) { - for (let et = 0; et < we.locationSize; et++) - X(we.location + et, Rt.meshPerAttribute); - he.isInstancedMesh !== !0 && Be._maxInstanceCount === void 0 && (Be._maxInstanceCount = Rt.meshPerAttribute * Rt.count); + const ct = Ne.buffer, tt = Ne.type, Tt = Ne.bytesPerElement; + if (Ve.isInterleavedBufferAttribute) { + const gt = Ve.data, ft = gt.stride, Ie = Ve.offset; + if (gt.isInstancedInterleavedBuffer) { + for (let qe = 0; qe < Ee.locationSize; qe++) + Q(Ee.location + qe, gt.meshPerAttribute); + me.isInstancedMesh !== !0 && He._maxInstanceCount === void 0 && (He._maxInstanceCount = gt.meshPerAttribute * gt.count); } else - for (let et = 0; et < we.locationSize; et++) - I(we.location + et); - a.bindBuffer(34962, ot); - for (let et = 0; et < we.locationSize; et++) - $( - we.location + et, - st / we.locationSize, - rt, + for (let qe = 0; qe < Ee.locationSize; qe++) + B(Ee.location + qe); + a.bindBuffer(34962, ct); + for (let qe = 0; qe < Ee.locationSize; qe++) + te( + Ee.location + qe, + rt / Ee.locationSize, + tt, Je, - Ot * _t, - (He + st / we.locationSize * et) * _t + ft * Tt, + (Ie + rt / Ee.locationSize * qe) * Tt ); } else { - if (Xe.isInstancedBufferAttribute) { - for (let Rt = 0; Rt < we.locationSize; Rt++) - X(we.location + Rt, Xe.meshPerAttribute); - he.isInstancedMesh !== !0 && Be._maxInstanceCount === void 0 && (Be._maxInstanceCount = Xe.meshPerAttribute * Xe.count); + if (Ve.isInstancedBufferAttribute) { + for (let gt = 0; gt < Ee.locationSize; gt++) + Q(Ee.location + gt, Ve.meshPerAttribute); + me.isInstancedMesh !== !0 && He._maxInstanceCount === void 0 && (He._maxInstanceCount = Ve.meshPerAttribute * Ve.count); } else - for (let Rt = 0; Rt < we.locationSize; Rt++) - I(we.location + Rt); - a.bindBuffer(34962, ot); - for (let Rt = 0; Rt < we.locationSize; Rt++) - $( - we.location + Rt, - st / we.locationSize, - rt, + for (let gt = 0; gt < Ee.locationSize; gt++) + B(Ee.location + gt); + a.bindBuffer(34962, ct); + for (let gt = 0; gt < Ee.locationSize; gt++) + te( + Ee.location + gt, + rt / Ee.locationSize, + tt, Je, - st * _t, - st / we.locationSize * Rt * _t + rt * Tt, + rt / Ee.locationSize * gt * Tt ); } - } else if (ce !== void 0) { - const Je = ce[ye]; + } else if (he !== void 0) { + const Je = he[ye]; if (Je !== void 0) switch (Je.length) { case 2: - a.vertexAttrib2fv(we.location, Je); + a.vertexAttrib2fv(Ee.location, Je); break; case 3: - a.vertexAttrib3fv(we.location, Je); + a.vertexAttrib3fv(Ee.location, Je); break; case 4: - a.vertexAttrib4fv(we.location, Je); + a.vertexAttrib4fv(Ee.location, Je); break; default: - a.vertexAttrib1fv(we.location, Je); + a.vertexAttrib1fv(Ee.location, Je); } } } } - J(); + K(); } - function ne() { - le(); - for (const he in d) { - const Fe = d[he]; - for (const Ce in Fe) { - const Be = Fe[Ce]; - for (const pe in Be) - D(Be[pe].object), delete Be[pe]; - delete Fe[Ce]; + function re() { + ue(); + for (const me in d) { + const De = d[me]; + for (const Re in De) { + const He = De[Re]; + for (const ve in He) + D(He[ve].object), delete He[ve]; + delete De[Re]; } - delete d[he]; + delete d[me]; } } - function ie(he) { - if (d[he.id] === void 0) + function se(me) { + if (d[me.id] === void 0) return; - const Fe = d[he.id]; - for (const Ce in Fe) { - const Be = Fe[Ce]; - for (const pe in Be) - D(Be[pe].object), delete Be[pe]; - delete Fe[Ce]; - } - delete d[he.id]; - } - function fe(he) { - for (const Fe in d) { - const Ce = d[Fe]; - if (Ce[he.id] === void 0) + const De = d[me.id]; + for (const Re in De) { + const He = De[Re]; + for (const ve in He) + D(He[ve].object), delete He[ve]; + delete De[Re]; + } + delete d[me.id]; + } + function ce(me) { + for (const De in d) { + const Re = d[De]; + if (Re[me.id] === void 0) continue; - const Be = Ce[he.id]; - for (const pe in Be) - D(Be[pe].object), delete Be[pe]; - delete Ce[he.id]; + const He = Re[me.id]; + for (const ve in He) + D(He[ve].object), delete He[ve]; + delete Re[me.id]; } } - function le() { - Ee(), S = !0, m !== h && (m = h, C(m.object)); + function ue() { + Me(), _ = !0, g !== p && (g = p, R(g.object)); } - function Ee() { - h.geometry = null, h.program = null, h.wireframe = !1; + function Me() { + p.geometry = null, p.program = null, p.wireframe = !1; } return { - setup: _, - reset: le, - resetDefaultState: Ee, - dispose: ne, - releaseStatesOfGeometry: ie, - releaseStatesOfProgram: fe, - initAttributes: V, - enableAttribute: I, - disableUnusedAttributes: J + setup: w, + reset: ue, + resetDefaultState: Me, + dispose: re, + releaseStatesOfGeometry: se, + releaseStatesOfProgram: ce, + initAttributes: G, + enableAttribute: B, + disableUnusedAttributes: K }; } -function xG(a, e, t, r) { +function LG(a, e, t, r) { const i = r.isWebGL2; - let o; - function l(m) { - o = m; + let s; + function l(g) { + s = g; } - function d(m, S) { - a.drawArrays(o, m, S), t.update(S, o, 1); + function d(g, _) { + a.drawArrays(s, g, _), t.update(_, s, 1); } - function h(m, S, _) { - if (_ === 0) + function p(g, _, w) { + if (w === 0) return; - let T, C; + let T, R; if (i) - T = a, C = "drawArraysInstanced"; - else if (T = e.get("ANGLE_instanced_arrays"), C = "drawArraysInstancedANGLE", T === null) { + T = a, R = "drawArraysInstanced"; + else if (T = e.get("ANGLE_instanced_arrays"), R = "drawArraysInstancedANGLE", T === null) { console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays."); return; } - T[C](o, m, S, _), t.update(S, o, _); + T[R](s, g, _, w), t.update(_, s, w); } - this.setMode = l, this.render = d, this.renderInstances = h; + this.setMode = l, this.render = d, this.renderInstances = p; } -function SG(a, e, t) { +function PG(a, e, t) { let r; function i() { if (r !== void 0) return r; if (e.has("EXT_texture_filter_anisotropic") === !0) { - const $ = e.get("EXT_texture_filter_anisotropic"); - r = a.getParameter($.MAX_TEXTURE_MAX_ANISOTROPY_EXT); + const te = e.get("EXT_texture_filter_anisotropic"); + r = a.getParameter(te.MAX_TEXTURE_MAX_ANISOTROPY_EXT); } else r = 0; return r; } - function o($) { - if ($ === "highp") { + function s(te) { + if (te === "highp") { if (a.getShaderPrecisionFormat(35633, 36338).precision > 0 && a.getShaderPrecisionFormat(35632, 36338).precision > 0) return "highp"; - $ = "mediump"; + te = "mediump"; } - return $ === "mediump" && a.getShaderPrecisionFormat(35633, 36337).precision > 0 && a.getShaderPrecisionFormat(35632, 36337).precision > 0 ? "mediump" : "lowp"; + return te === "mediump" && a.getShaderPrecisionFormat(35633, 36337).precision > 0 && a.getShaderPrecisionFormat(35632, 36337).precision > 0 ? "mediump" : "lowp"; } const l = typeof WebGL2RenderingContext < "u" && a instanceof WebGL2RenderingContext || typeof WebGL2ComputeRenderingContext < "u" && a instanceof WebGL2ComputeRenderingContext; let d = t.precision !== void 0 ? t.precision : "highp"; - const h = o(d); - h !== d && (console.warn("THREE.WebGLRenderer:", d, "not supported, using", h, "instead."), d = h); - const m = l || e.has("WEBGL_draw_buffers"), S = t.logarithmicDepthBuffer === !0, _ = a.getParameter(34930), T = a.getParameter(35660), C = a.getParameter(3379), D = a.getParameter(34076), P = a.getParameter(34921), U = a.getParameter(36347), B = a.getParameter(36348), k = a.getParameter(36349), V = T > 0, I = l || e.has("OES_texture_float"), X = V && I, J = l ? a.getParameter(36183) : 0; + const p = s(d); + p !== d && (console.warn("THREE.WebGLRenderer:", d, "not supported, using", p, "instead."), d = p); + const g = l || e.has("WEBGL_draw_buffers"), _ = t.logarithmicDepthBuffer === !0, w = a.getParameter(34930), T = a.getParameter(35660), R = a.getParameter(3379), D = a.getParameter(34076), O = a.getParameter(34921), U = a.getParameter(36347), H = a.getParameter(36348), I = a.getParameter(36349), G = T > 0, B = l || e.has("OES_texture_float"), Q = G && B, K = l ? a.getParameter(36183) : 0; return { isWebGL2: l, - drawBuffers: m, + drawBuffers: g, getMaxAnisotropy: i, - getMaxPrecision: o, + getMaxPrecision: s, precision: d, - logarithmicDepthBuffer: S, - maxTextures: _, + logarithmicDepthBuffer: _, + maxTextures: w, maxVertexTextures: T, - maxTextureSize: C, + maxTextureSize: R, maxCubemapSize: D, - maxAttributes: P, + maxAttributes: O, maxVertexUniforms: U, - maxVaryings: B, - maxFragmentUniforms: k, - vertexTextures: V, - floatFragmentTextures: I, - floatVertexTextures: X, - maxSamples: J + maxVaryings: H, + maxFragmentUniforms: I, + vertexTextures: G, + floatFragmentTextures: B, + floatVertexTextures: Q, + maxSamples: K }; } -function _G(a) { +function OG(a) { const e = this; - let t = null, r = 0, i = !1, o = !1; - const l = new C0(), d = new jh(), h = { value: null, needsUpdate: !1 }; - this.uniform = h, this.numPlanes = 0, this.numIntersection = 0, this.init = function(_, T, C) { - const D = _.length !== 0 || T || r !== 0 || i; - return i = T, t = S(_, C, 0), r = _.length, D; + let t = null, r = 0, i = !1, s = !1; + const l = new R0(), d = new Xh(), p = { value: null, needsUpdate: !1 }; + this.uniform = p, this.numPlanes = 0, this.numIntersection = 0, this.init = function(w, T, R) { + const D = w.length !== 0 || T || r !== 0 || i; + return i = T, t = _(w, R, 0), r = w.length, D; }, this.beginShadows = function() { - o = !0, S(null); + s = !0, _(null); }, this.endShadows = function() { - o = !1, m(); - }, this.setState = function(_, T, C) { - const D = _.clippingPlanes, P = _.clipIntersection, U = _.clipShadows, B = a.get(_); - if (!i || D === null || D.length === 0 || o && !U) - o ? S(null) : m(); + s = !1, g(); + }, this.setState = function(w, T, R) { + const D = w.clippingPlanes, O = w.clipIntersection, U = w.clipShadows, H = a.get(w); + if (!i || D === null || D.length === 0 || s && !U) + s ? _(null) : g(); else { - const k = o ? 0 : r, V = k * 4; - let I = B.clippingState || null; - h.value = I, I = S(D, T, V, C); - for (let X = 0; X !== V; ++X) - I[X] = t[X]; - B.clippingState = I, this.numIntersection = P ? this.numPlanes : 0, this.numPlanes += k; + const I = s ? 0 : r, G = I * 4; + let B = H.clippingState || null; + p.value = B, B = _(D, T, G, R); + for (let Q = 0; Q !== G; ++Q) + B[Q] = t[Q]; + H.clippingState = B, this.numIntersection = O ? this.numPlanes : 0, this.numPlanes += I; } }; - function m() { - h.value !== t && (h.value = t, h.needsUpdate = r > 0), e.numPlanes = r, e.numIntersection = 0; + function g() { + p.value !== t && (p.value = t, p.needsUpdate = r > 0), e.numPlanes = r, e.numIntersection = 0; } - function S(_, T, C, D) { - const P = _ !== null ? _.length : 0; + function _(w, T, R, D) { + const O = w !== null ? w.length : 0; let U = null; - if (P !== 0) { - if (U = h.value, D !== !0 || U === null) { - const B = C + P * 4, k = T.matrixWorldInverse; - d.getNormalMatrix(k), (U === null || U.length < B) && (U = new Float32Array(B)); - for (let V = 0, I = C; V !== P; ++V, I += 4) - l.copy(_[V]).applyMatrix4(k, d), l.normal.toArray(U, I), U[I + 3] = l.constant; + if (O !== 0) { + if (U = p.value, D !== !0 || U === null) { + const H = R + O * 4, I = T.matrixWorldInverse; + d.getNormalMatrix(I), (U === null || U.length < H) && (U = new Float32Array(H)); + for (let G = 0, B = R; G !== O; ++G, B += 4) + l.copy(w[G]).applyMatrix4(I, d), l.normal.toArray(U, B), U[B + 3] = l.constant; } - h.value = U, h.needsUpdate = !0; + p.value = U, p.needsUpdate = !0; } - return e.numPlanes = P, e.numIntersection = 0, U; + return e.numPlanes = O, e.numIntersection = 0, U; } } -function bG(a) { +function UG(a) { let e = /* @__PURE__ */ new WeakMap(); function t(l, d) { - return d === TM ? l.mapping = t1 : d === CM && (l.mapping = n1), l; + return d === CM ? l.mapping = t1 : d === RM && (l.mapping = n1), l; } function r(l) { if (l && l.isTexture && l.isRenderTargetTexture === !1) { const d = l.mapping; - if (d === TM || d === CM) + if (d === CM || d === RM) if (e.has(l)) { - const h = e.get(l).texture; - return t(h, l.mapping); + const p = e.get(l).texture; + return t(p, l.mapping); } else { - const h = l.image; - if (h && h.height > 0) { - const m = new SF(h.height / 2); - return m.fromEquirectangularTexture(a, l), e.set(l, m), l.addEventListener("dispose", i), t(m.texture, l.mapping); + const p = l.image; + if (p && p.height > 0) { + const g = new UF(p.height / 2); + return g.fromEquirectangularTexture(a, l), e.set(l, g), l.addEventListener("dispose", i), t(g.texture, l.mapping); } else return null; } @@ -8144,25 +8144,25 @@ function bG(a) { function i(l) { const d = l.target; d.removeEventListener("dispose", i); - const h = e.get(d); - h !== void 0 && (e.delete(d), h.dispose()); + const p = e.get(d); + p !== void 0 && (e.delete(d), p.dispose()); } - function o() { + function s() { e = /* @__PURE__ */ new WeakMap(); } return { get: r, - dispose: o + dispose: s }; } -class cy extends pw { - constructor(e = -1, t = 1, r = 1, i = -1, o = 0.1, l = 2e3) { - super(), this.isOrthographicCamera = !0, this.type = "OrthographicCamera", this.zoom = 1, this.view = null, this.left = e, this.right = t, this.top = r, this.bottom = i, this.near = o, this.far = l, this.updateProjectionMatrix(); +class dy extends pb { + constructor(e = -1, t = 1, r = 1, i = -1, s = 0.1, l = 2e3) { + super(), this.isOrthographicCamera = !0, this.type = "OrthographicCamera", this.zoom = 1, this.view = null, this.left = e, this.right = t, this.top = r, this.bottom = i, this.near = s, this.far = l, this.updateProjectionMatrix(); } copy(e, t) { return super.copy(e, t), this.left = e.left, this.right = e.right, this.top = e.top, this.bottom = e.bottom, this.near = e.near, this.far = e.far, this.zoom = e.zoom, this.view = e.view === null ? null : Object.assign({}, e.view), this; } - setViewOffset(e, t, r, i, o, l) { + setViewOffset(e, t, r, i, s, l) { this.view === null && (this.view = { enabled: !0, fullWidth: 1, @@ -8171,47 +8171,47 @@ class cy extends pw { offsetY: 0, width: 1, height: 1 - }), this.view.enabled = !0, this.view.fullWidth = e, this.view.fullHeight = t, this.view.offsetX = r, this.view.offsetY = i, this.view.width = o, this.view.height = l, this.updateProjectionMatrix(); + }), this.view.enabled = !0, this.view.fullWidth = e, this.view.fullHeight = t, this.view.offsetX = r, this.view.offsetY = i, this.view.width = s, this.view.height = l, this.updateProjectionMatrix(); } clearViewOffset() { this.view !== null && (this.view.enabled = !1), this.updateProjectionMatrix(); } updateProjectionMatrix() { const e = (this.right - this.left) / (2 * this.zoom), t = (this.top - this.bottom) / (2 * this.zoom), r = (this.right + this.left) / 2, i = (this.top + this.bottom) / 2; - let o = r - e, l = r + e, d = i + t, h = i - t; + let s = r - e, l = r + e, d = i + t, p = i - t; if (this.view !== null && this.view.enabled) { - const m = (this.right - this.left) / this.view.fullWidth / this.zoom, S = (this.top - this.bottom) / this.view.fullHeight / this.zoom; - o += m * this.view.offsetX, l = o + m * this.view.width, d -= S * this.view.offsetY, h = d - S * this.view.height; + const g = (this.right - this.left) / this.view.fullWidth / this.zoom, _ = (this.top - this.bottom) / this.view.fullHeight / this.zoom; + s += g * this.view.offsetX, l = s + g * this.view.width, d -= _ * this.view.offsetY, p = d - _ * this.view.height; } - this.projectionMatrix.makeOrthographic(o, l, d, h, this.near, this.far), this.projectionMatrixInverse.copy(this.projectionMatrix).invert(); + this.projectionMatrix.makeOrthographic(s, l, d, p, this.near, this.far), this.projectionMatrixInverse.copy(this.projectionMatrix).invert(); } toJSON(e) { const t = super.toJSON(e); return t.object.zoom = this.zoom, t.object.left = this.left, t.object.right = this.right, t.object.top = this.top, t.object.bottom = this.bottom, t.object.near = this.near, t.object.far = this.far, this.view !== null && (t.object.view = Object.assign({}, this.view)), t; } } -const Vb = 4, HO = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], DS = 20, WA = /* @__PURE__ */ new cy(), VO = /* @__PURE__ */ new Pn(); -let jA = null; -const TS = (1 + Math.sqrt(5)) / 2, Ab = 1 / TS, GO = [ - /* @__PURE__ */ new ve(1, 1, 1), - /* @__PURE__ */ new ve(-1, 1, 1), - /* @__PURE__ */ new ve(1, 1, -1), - /* @__PURE__ */ new ve(-1, 1, -1), - /* @__PURE__ */ new ve(0, TS, Ab), - /* @__PURE__ */ new ve(0, TS, -Ab), - /* @__PURE__ */ new ve(Ab, 0, TS), - /* @__PURE__ */ new ve(-Ab, 0, TS), - /* @__PURE__ */ new ve(TS, Ab, 0), - /* @__PURE__ */ new ve(-TS, Ab, 0) +const Ww = 4, WO = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], P_ = 20, jA = /* @__PURE__ */ new dy(), jO = /* @__PURE__ */ new Un(); +let YA = null; +const R_ = (1 + Math.sqrt(5)) / 2, Uw = 1 / R_, YO = [ + /* @__PURE__ */ new ge(1, 1, 1), + /* @__PURE__ */ new ge(-1, 1, 1), + /* @__PURE__ */ new ge(1, 1, -1), + /* @__PURE__ */ new ge(-1, 1, -1), + /* @__PURE__ */ new ge(0, R_, Uw), + /* @__PURE__ */ new ge(0, R_, -Uw), + /* @__PURE__ */ new ge(Uw, 0, R_), + /* @__PURE__ */ new ge(-Uw, 0, R_), + /* @__PURE__ */ new ge(R_, Uw, 0), + /* @__PURE__ */ new ge(-R_, Uw, 0) ]; -class p3 { +class v3 { constructor(e) { this._renderer = e, this._pingPongRenderTarget = null, this._lodMax = 0, this._cubeSize = 0, this._lodPlanes = [], this._sizeLods = [], this._sigmas = [], this._blurMaterial = null, this._cubemapMaterial = null, this._equirectMaterial = null, this._compileMaterial(this._blurMaterial); } fromScene(e, t = 0, r = 0.1, i = 100) { - jA = this._renderer.getRenderTarget(), this._setSize(256); - const o = this._allocateTargets(); - return o.depthBuffer = !0, this._sceneToCubeUV(e, r, i, o), t > 0 && this._blur(o, 0, 0, t), this._applyPMREM(o), this._cleanup(o), o; + YA = this._renderer.getRenderTarget(), this._setSize(256); + const s = this._allocateTargets(); + return s.depthBuffer = !0, this._sceneToCubeUV(e, r, i, s), t > 0 && this._blur(s, 0, 0, t), this._applyPMREM(s), this._cleanup(s), s; } fromEquirectangular(e, t = null) { return this._fromTexture(e, t); @@ -8220,10 +8220,10 @@ class p3 { return this._fromTexture(e, t); } compileCubemapShader() { - this._cubemapMaterial === null && (this._cubemapMaterial = YO(), this._compileMaterial(this._cubemapMaterial)); + this._cubemapMaterial === null && (this._cubemapMaterial = QO(), this._compileMaterial(this._cubemapMaterial)); } compileEquirectangularShader() { - this._equirectMaterial === null && (this._equirectMaterial = jO(), this._compileMaterial(this._equirectMaterial)); + this._equirectMaterial === null && (this._equirectMaterial = qO(), this._compileMaterial(this._equirectMaterial)); } dispose() { this._dispose(), this._cubemapMaterial !== null && this._cubemapMaterial.dispose(), this._equirectMaterial !== null && this._equirectMaterial.dispose(); @@ -8237,10 +8237,10 @@ class p3 { this._lodPlanes[e].dispose(); } _cleanup(e) { - this._renderer.setRenderTarget(jA), e.scissorTest = !1, T2(e, 0, 0, e.width, e.height); + this._renderer.setRenderTarget(YA), e.scissorTest = !1, T2(e, 0, 0, e.width, e.height); } _fromTexture(e, t) { - e.mapping === t1 || e.mapping === n1 ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), jA = this._renderer.getRenderTarget(); + e.mapping === t1 || e.mapping === n1 ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), YA = this._renderer.getRenderTarget(); const r = t || this._allocateTargets(); return this._textureToCubeUV(e, r), this._applyPMREM(r), this._cleanup(r), r; } @@ -8249,60 +8249,60 @@ class p3 { magFilter: Oo, minFilter: Oo, generateMipmaps: !1, - type: GS, - format: Sm, - encoding: yv, + type: X_, + format: zp, + encoding: wv, depthBuffer: !1 - }, i = WO(e, t, r); + }, i = XO(e, t, r); if (this._pingPongRenderTarget === null || this._pingPongRenderTarget.width !== e) { - this._pingPongRenderTarget !== null && this._dispose(), this._pingPongRenderTarget = WO(e, t, r); - const { _lodMax: o } = this; - ({ sizeLods: this._sizeLods, lodPlanes: this._lodPlanes, sigmas: this._sigmas } = wG(o)), this._blurMaterial = EG(o, e, t); + this._pingPongRenderTarget !== null && this._dispose(), this._pingPongRenderTarget = XO(e, t, r); + const { _lodMax: s } = this; + ({ sizeLods: this._sizeLods, lodPlanes: this._lodPlanes, sigmas: this._sigmas } = zG(s)), this._blurMaterial = NG(s, e, t); } return i; } _compileMaterial(e) { - const t = new zn(this._lodPlanes[0], e); - this._renderer.compile(t, WA); + const t = new Fn(this._lodPlanes[0], e); + this._renderer.compile(t, jA); } _sceneToCubeUV(e, t, r, i) { - const d = new ho(90, 1, t, r), h = [1, -1, 1, 1, 1, 1], m = [1, 1, 1, -1, -1, -1], S = this._renderer, _ = S.autoClear, T = S.toneMapping; - S.getClearColor(VO), S.toneMapping = ig, S.autoClear = !1; - const C = new lg({ + const d = new ho(90, 1, t, r), p = [1, -1, 1, 1, 1, 1], g = [1, 1, 1, -1, -1, -1], _ = this._renderer, w = _.autoClear, T = _.toneMapping; + _.getClearColor(jO), _.toneMapping = og, _.autoClear = !1; + const R = new fg({ name: "PMREM.Background", - side: uf, + side: cf, depthWrite: !1, depthTest: !1 - }), D = new zn(new cl(), C); - let P = !1; + }), D = new Fn(new fl(), R); + let O = !1; const U = e.background; - U ? U.isColor && (C.color.copy(U), e.background = null, P = !0) : (C.color.copy(VO), P = !0); - for (let B = 0; B < 6; B++) { - const k = B % 3; - k === 0 ? (d.up.set(0, h[B], 0), d.lookAt(m[B], 0, 0)) : k === 1 ? (d.up.set(0, 0, h[B]), d.lookAt(0, m[B], 0)) : (d.up.set(0, h[B], 0), d.lookAt(0, 0, m[B])); - const V = this._cubeSize; - T2(i, k * V, B > 2 ? V : 0, V, V), S.setRenderTarget(i), P && S.render(D, d), S.render(e, d); + U ? U.isColor && (R.color.copy(U), e.background = null, O = !0) : (R.color.copy(jO), O = !0); + for (let H = 0; H < 6; H++) { + const I = H % 3; + I === 0 ? (d.up.set(0, p[H], 0), d.lookAt(g[H], 0, 0)) : I === 1 ? (d.up.set(0, 0, p[H]), d.lookAt(0, g[H], 0)) : (d.up.set(0, p[H], 0), d.lookAt(0, 0, g[H])); + const G = this._cubeSize; + T2(i, I * G, H > 2 ? G : 0, G, G), _.setRenderTarget(i), O && _.render(D, d), _.render(e, d); } - D.geometry.dispose(), D.material.dispose(), S.toneMapping = T, S.autoClear = _, e.background = U; + D.geometry.dispose(), D.material.dispose(), _.toneMapping = T, _.autoClear = w, e.background = U; } _textureToCubeUV(e, t) { const r = this._renderer, i = e.mapping === t1 || e.mapping === n1; - i ? (this._cubemapMaterial === null && (this._cubemapMaterial = YO()), this._cubemapMaterial.uniforms.flipEnvMap.value = e.isRenderTargetTexture === !1 ? -1 : 1) : this._equirectMaterial === null && (this._equirectMaterial = jO()); - const o = i ? this._cubemapMaterial : this._equirectMaterial, l = new zn(this._lodPlanes[0], o), d = o.uniforms; + i ? (this._cubemapMaterial === null && (this._cubemapMaterial = QO()), this._cubemapMaterial.uniforms.flipEnvMap.value = e.isRenderTargetTexture === !1 ? -1 : 1) : this._equirectMaterial === null && (this._equirectMaterial = qO()); + const s = i ? this._cubemapMaterial : this._equirectMaterial, l = new Fn(this._lodPlanes[0], s), d = s.uniforms; d.envMap.value = e; - const h = this._cubeSize; - T2(t, 0, 0, 3 * h, 2 * h), r.setRenderTarget(t), r.render(l, WA); + const p = this._cubeSize; + T2(t, 0, 0, 3 * p, 2 * p), r.setRenderTarget(t), r.render(l, jA); } _applyPMREM(e) { const t = this._renderer, r = t.autoClear; t.autoClear = !1; for (let i = 1; i < this._lodPlanes.length; i++) { - const o = Math.sqrt(this._sigmas[i] * this._sigmas[i] - this._sigmas[i - 1] * this._sigmas[i - 1]), l = GO[(i - 1) % GO.length]; - this._blur(e, i - 1, i, o, l); + const s = Math.sqrt(this._sigmas[i] * this._sigmas[i] - this._sigmas[i - 1] * this._sigmas[i - 1]), l = YO[(i - 1) % YO.length]; + this._blur(e, i - 1, i, s, l); } t.autoClear = r; } - _blur(e, t, r, i, o) { + _blur(e, t, r, i, s) { const l = this._pingPongRenderTarget; this._halfBlur( e, @@ -8311,7 +8311,7 @@ class p3 { r, i, "latitudinal", - o + s ), this._halfBlur( l, e, @@ -8319,84 +8319,84 @@ class p3 { r, i, "longitudinal", - o + s ); } - _halfBlur(e, t, r, i, o, l, d) { - const h = this._renderer, m = this._blurMaterial; + _halfBlur(e, t, r, i, s, l, d) { + const p = this._renderer, g = this._blurMaterial; l !== "latitudinal" && l !== "longitudinal" && console.error( "blur direction must be either latitudinal or longitudinal!" ); - const S = 3, _ = new zn(this._lodPlanes[i], m), T = m.uniforms, C = this._sizeLods[r] - 1, D = isFinite(o) ? Math.PI / (2 * C) : 2 * Math.PI / (2 * DS - 1), P = o / D, U = isFinite(o) ? 1 + Math.floor(S * P) : DS; - U > DS && console.warn(`sigmaRadians, ${o}, is too large and will clip, as it requested ${U} samples when the maximum is set to ${DS}`); - const B = []; - let k = 0; - for (let $ = 0; $ < DS; ++$) { - const W = $ / P, ne = Math.exp(-W * W / 2); - B.push(ne), $ === 0 ? k += ne : $ < U && (k += 2 * ne); - } - for (let $ = 0; $ < B.length; $++) - B[$] = B[$] / k; - T.envMap.value = e.texture, T.samples.value = U, T.weights.value = B, T.latitudinal.value = l === "latitudinal", d && (T.poleAxis.value = d); - const { _lodMax: V } = this; - T.dTheta.value = D, T.mipInt.value = V - r; - const I = this._sizeLods[i], X = 3 * I * (i > V - Vb ? i - V + Vb : 0), J = 4 * (this._cubeSize - I); - T2(t, X, J, 3 * I, 2 * I), h.setRenderTarget(t), h.render(_, WA); - } -} -function wG(a) { + const _ = 3, w = new Fn(this._lodPlanes[i], g), T = g.uniforms, R = this._sizeLods[r] - 1, D = isFinite(s) ? Math.PI / (2 * R) : 2 * Math.PI / (2 * P_ - 1), O = s / D, U = isFinite(s) ? 1 + Math.floor(_ * O) : P_; + U > P_ && console.warn(`sigmaRadians, ${s}, is too large and will clip, as it requested ${U} samples when the maximum is set to ${P_}`); + const H = []; + let I = 0; + for (let te = 0; te < P_; ++te) { + const Y = te / O, re = Math.exp(-Y * Y / 2); + H.push(re), te === 0 ? I += re : te < U && (I += 2 * re); + } + for (let te = 0; te < H.length; te++) + H[te] = H[te] / I; + T.envMap.value = e.texture, T.samples.value = U, T.weights.value = H, T.latitudinal.value = l === "latitudinal", d && (T.poleAxis.value = d); + const { _lodMax: G } = this; + T.dTheta.value = D, T.mipInt.value = G - r; + const B = this._sizeLods[i], Q = 3 * B * (i > G - Ww ? i - G + Ww : 0), K = 4 * (this._cubeSize - B); + T2(t, Q, K, 3 * B, 2 * B), p.setRenderTarget(t), p.render(w, jA); + } +} +function zG(a) { const e = [], t = [], r = []; let i = a; - const o = a - Vb + 1 + HO.length; - for (let l = 0; l < o; l++) { + const s = a - Ww + 1 + WO.length; + for (let l = 0; l < s; l++) { const d = Math.pow(2, i); t.push(d); - let h = 1 / d; - l > a - Vb ? h = HO[l - a + Vb - 1] : l === 0 && (h = 0), r.push(h); - const m = 1 / (d - 2), S = -m, _ = 1 + m, T = [S, S, _, S, _, _, S, S, _, _, S, _], C = 6, D = 6, P = 3, U = 2, B = 1, k = new Float32Array(P * D * C), V = new Float32Array(U * D * C), I = new Float32Array(B * D * C); - for (let J = 0; J < C; J++) { - const $ = J % 3 * 2 / 3 - 1, W = J > 2 ? 0 : -1, ne = [ - $, - W, + let p = 1 / d; + l > a - Ww ? p = WO[l - a + Ww - 1] : l === 0 && (p = 0), r.push(p); + const g = 1 / (d - 2), _ = -g, w = 1 + g, T = [_, _, w, _, w, w, _, _, w, w, _, w], R = 6, D = 6, O = 3, U = 2, H = 1, I = new Float32Array(O * D * R), G = new Float32Array(U * D * R), B = new Float32Array(H * D * R); + for (let K = 0; K < R; K++) { + const te = K % 3 * 2 / 3 - 1, Y = K > 2 ? 0 : -1, re = [ + te, + Y, 0, - $ + 2 / 3, - W, + te + 2 / 3, + Y, 0, - $ + 2 / 3, - W + 1, + te + 2 / 3, + Y + 1, 0, - $, - W, + te, + Y, 0, - $ + 2 / 3, - W + 1, + te + 2 / 3, + Y + 1, 0, - $, - W + 1, + te, + Y + 1, 0 ]; - k.set(ne, P * D * J), V.set(T, U * D * J); - const ie = [J, J, J, J, J, J]; - I.set(ie, B * D * J); + I.set(re, O * D * K), G.set(T, U * D * K); + const se = [K, K, K, K, K, K]; + B.set(se, H * D * K); } - const X = new ui(); - X.setAttribute("position", new os(k, P)), X.setAttribute("uv", new os(V, U)), X.setAttribute("faceIndex", new os(I, B)), e.push(X), i > Vb && i--; + const Q = new oi(); + Q.setAttribute("position", new ls(I, O)), Q.setAttribute("uv", new ls(G, U)), Q.setAttribute("faceIndex", new ls(B, H)), e.push(Q), i > Ww && i--; } return { lodPlanes: e, sizeLods: t, sigmas: r }; } -function WO(a, e, t) { +function XO(a, e, t) { const r = new po(a, e, t); - return r.texture.mapping = hw, r.texture.name = "PMREM.cubeUv", r.scissorTest = !0, r; + return r.texture.mapping = hb, r.texture.name = "PMREM.cubeUv", r.scissorTest = !0, r; } function T2(a, e, t, r, i) { a.viewport.set(e, t, r, i), a.scissor.set(e, t, r, i); } -function EG(a, e, t) { - const r = new Float32Array(DS), i = new ve(0, 1, 0); - return new wu({ +function NG(a, e, t) { + const r = new Float32Array(P_), i = new ge(0, 1, 0); + return new Mu({ name: "SphericalGaussianBlur", defines: { - n: DS, + n: P_, CUBEUV_TEXEL_WIDTH: 1 / e, CUBEUV_TEXEL_HEIGHT: 1 / t, CUBEUV_MAX_MIP: `${a}.0` @@ -8472,13 +8472,13 @@ function EG(a, e, t) { } `, - blending: cf, + blending: ff, depthTest: !1, depthWrite: !1 }); } -function jO() { - return new wu({ +function qO() { + return new Mu({ name: "EquirectangularToCubeUV", uniforms: { envMap: { value: null } @@ -8504,13 +8504,13 @@ function jO() { } `, - blending: cf, + blending: ff, depthTest: !1, depthWrite: !1 }); } -function YO() { - return new wu({ +function QO() { + return new Mu({ name: "CubemapToCubeUV", uniforms: { envMap: { value: null }, @@ -8534,7 +8534,7 @@ function YO() { } `, - blending: cf, + blending: ff, depthTest: !1, depthWrite: !1 }); @@ -8597,25 +8597,25 @@ function J3() { } `; } -function MG(a) { +function FG(a) { let e = /* @__PURE__ */ new WeakMap(), t = null; function r(d) { if (d && d.isTexture) { - const h = d.mapping, m = h === TM || h === CM, S = h === t1 || h === n1; - if (m || S) + const p = d.mapping, g = p === CM || p === RM, _ = p === t1 || p === n1; + if (g || _) if (d.isRenderTargetTexture && d.needsPMREMUpdate === !0) { d.needsPMREMUpdate = !1; - let _ = e.get(d); - return t === null && (t = new p3(a)), _ = m ? t.fromEquirectangular(d, _) : t.fromCubemap(d, _), e.set(d, _), _.texture; + let w = e.get(d); + return t === null && (t = new v3(a)), w = g ? t.fromEquirectangular(d, w) : t.fromCubemap(d, w), e.set(d, w), w.texture; } else { if (e.has(d)) return e.get(d).texture; { - const _ = d.image; - if (m && _ && _.height > 0 || S && _ && i(_)) { - t === null && (t = new p3(a)); - const T = m ? t.fromEquirectangular(d) : t.fromCubemap(d); - return e.set(d, T), d.addEventListener("dispose", o), T.texture; + const w = d.image; + if (g && w && w.height > 0 || _ && w && i(w)) { + t === null && (t = new v3(a)); + const T = g ? t.fromEquirectangular(d) : t.fromCubemap(d); + return e.set(d, T), d.addEventListener("dispose", s), T.texture; } else return null; } @@ -8624,17 +8624,17 @@ function MG(a) { return d; } function i(d) { - let h = 0; - const m = 6; - for (let S = 0; S < m; S++) - d[S] !== void 0 && h++; - return h === m; - } - function o(d) { - const h = d.target; - h.removeEventListener("dispose", o); - const m = e.get(h); - m !== void 0 && (e.delete(h), m.dispose()); + let p = 0; + const g = 6; + for (let _ = 0; _ < g; _++) + d[_] !== void 0 && p++; + return p === g; + } + function s(d) { + const p = d.target; + p.removeEventListener("dispose", s); + const g = e.get(p); + g !== void 0 && (e.delete(p), g.dispose()); } function l() { e = /* @__PURE__ */ new WeakMap(), t !== null && (t.dispose(), t = null); @@ -8644,7 +8644,7 @@ function MG(a) { dispose: l }; } -function TG(a) { +function kG(a) { const e = {}; function t(r) { if (e[r] !== void 0) @@ -8681,97 +8681,97 @@ function TG(a) { } }; } -function CG(a, e, t, r) { - const i = {}, o = /* @__PURE__ */ new WeakMap(); - function l(_) { - const T = _.target; +function IG(a, e, t, r) { + const i = {}, s = /* @__PURE__ */ new WeakMap(); + function l(w) { + const T = w.target; T.index !== null && e.remove(T.index); for (const D in T.attributes) e.remove(T.attributes[D]); T.removeEventListener("dispose", l), delete i[T.id]; - const C = o.get(T); - C && (e.remove(C), o.delete(T)), r.releaseStatesOfGeometry(T), T.isInstancedBufferGeometry === !0 && delete T._maxInstanceCount, t.memory.geometries--; + const R = s.get(T); + R && (e.remove(R), s.delete(T)), r.releaseStatesOfGeometry(T), T.isInstancedBufferGeometry === !0 && delete T._maxInstanceCount, t.memory.geometries--; } - function d(_, T) { + function d(w, T) { return i[T.id] === !0 || (T.addEventListener("dispose", l), i[T.id] = !0, t.memory.geometries++), T; } - function h(_) { - const T = _.attributes; + function p(w) { + const T = w.attributes; for (const D in T) e.update(T[D], 34962); - const C = _.morphAttributes; - for (const D in C) { - const P = C[D]; - for (let U = 0, B = P.length; U < B; U++) - e.update(P[U], 34962); - } - } - function m(_) { - const T = [], C = _.index, D = _.attributes.position; - let P = 0; - if (C !== null) { - const k = C.array; - P = C.version; - for (let V = 0, I = k.length; V < I; V += 3) { - const X = k[V + 0], J = k[V + 1], $ = k[V + 2]; - T.push(X, J, J, $, $, X); + const R = w.morphAttributes; + for (const D in R) { + const O = R[D]; + for (let U = 0, H = O.length; U < H; U++) + e.update(O[U], 34962); + } + } + function g(w) { + const T = [], R = w.index, D = w.attributes.position; + let O = 0; + if (R !== null) { + const I = R.array; + O = R.version; + for (let G = 0, B = I.length; G < B; G += 3) { + const Q = I[G + 0], K = I[G + 1], te = I[G + 2]; + T.push(Q, K, K, te, te, Q); } } else { - const k = D.array; - P = D.version; - for (let V = 0, I = k.length / 3 - 1; V < I; V += 3) { - const X = V + 0, J = V + 1, $ = V + 2; - T.push(X, J, J, $, $, X); + const I = D.array; + O = D.version; + for (let G = 0, B = I.length / 3 - 1; G < B; G += 3) { + const Q = G + 0, K = G + 1, te = G + 2; + T.push(Q, K, K, te, te, Q); } } - const U = new (gF(T) ? Z3 : Q3)(T, 1); - U.version = P; - const B = o.get(_); - B && e.remove(B), o.set(_, U); + const U = new (LF(T) ? Z3 : Q3)(T, 1); + U.version = O; + const H = s.get(w); + H && e.remove(H), s.set(w, U); } - function S(_) { - const T = o.get(_); + function _(w) { + const T = s.get(w); if (T) { - const C = _.index; - C !== null && T.version < C.version && m(_); + const R = w.index; + R !== null && T.version < R.version && g(w); } else - m(_); - return o.get(_); + g(w); + return s.get(w); } return { get: d, - update: h, - getWireframeAttribute: S + update: p, + getWireframeAttribute: _ }; } -function RG(a, e, t, r) { +function BG(a, e, t, r) { const i = r.isWebGL2; - let o; + let s; function l(T) { - o = T; + s = T; } - let d, h; - function m(T) { - d = T.type, h = T.bytesPerElement; + let d, p; + function g(T) { + d = T.type, p = T.bytesPerElement; } - function S(T, C) { - a.drawElements(o, C, d, T * h), t.update(C, o, 1); + function _(T, R) { + a.drawElements(s, R, d, T * p), t.update(R, s, 1); } - function _(T, C, D) { + function w(T, R, D) { if (D === 0) return; - let P, U; + let O, U; if (i) - P = a, U = "drawElementsInstanced"; - else if (P = e.get("ANGLE_instanced_arrays"), U = "drawElementsInstancedANGLE", P === null) { + O = a, U = "drawElementsInstanced"; + else if (O = e.get("ANGLE_instanced_arrays"), U = "drawElementsInstancedANGLE", O === null) { console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays."); return; } - P[U](o, C, d, T * h, D), t.update(C, o, D); + O[U](s, R, d, T * p, D), t.update(R, s, D); } - this.setMode = l, this.setIndex = m, this.render = S, this.renderInstances = _; + this.setMode = l, this.setIndex = g, this.render = _, this.renderInstances = w; } -function AG(a) { +function HG(a) { const e = { geometries: 0, textures: 0 @@ -8782,22 +8782,22 @@ function AG(a) { points: 0, lines: 0 }; - function r(o, l, d) { + function r(s, l, d) { switch (t.calls++, l) { case 4: - t.triangles += d * (o / 3); + t.triangles += d * (s / 3); break; case 1: - t.lines += d * (o / 2); + t.lines += d * (s / 2); break; case 3: - t.lines += d * (o - 1); + t.lines += d * (s - 1); break; case 2: - t.lines += d * o; + t.lines += d * s; break; case 0: - t.points += d * o; + t.points += d * s; break; default: console.error("THREE.WebGLInfo: Unknown draw mode:", l); @@ -8816,121 +8816,121 @@ function AG(a) { update: r }; } -function DG(a, e) { +function VG(a, e) { return a[0] - e[0]; } -function LG(a, e) { +function GG(a, e) { return Math.abs(e[1]) - Math.abs(a[1]); } -function YA(a, e) { +function XA(a, e) { let t = 1; const r = e.isInterleavedBufferAttribute ? e.data.array : e.array; r instanceof Int8Array ? t = 127 : r instanceof Uint8Array ? t = 255 : r instanceof Uint16Array ? t = 65535 : r instanceof Int16Array ? t = 32767 : r instanceof Int32Array ? t = 2147483647 : console.error("THREE.WebGLMorphtargets: Unsupported morph attribute data type: ", r), a.divideScalar(t); } -function PG(a, e, t) { - const r = {}, i = new Float32Array(8), o = /* @__PURE__ */ new WeakMap(), l = new la(), d = []; - for (let m = 0; m < 8; m++) - d[m] = [m, 0]; - function h(m, S, _, T) { - const C = m.morphTargetInfluences; +function WG(a, e, t) { + const r = {}, i = new Float32Array(8), s = /* @__PURE__ */ new WeakMap(), l = new ra(), d = []; + for (let g = 0; g < 8; g++) + d[g] = [g, 0]; + function p(g, _, w, T) { + const R = g.morphTargetInfluences; if (e.isWebGL2 === !0) { - const D = S.morphAttributes.position || S.morphAttributes.normal || S.morphAttributes.color, P = D !== void 0 ? D.length : 0; - let U = o.get(S); - if (U === void 0 || U.count !== P) { - let Fe = function() { - Ee.dispose(), o.delete(S), S.removeEventListener("dispose", Fe); + const D = _.morphAttributes.position || _.morphAttributes.normal || _.morphAttributes.color, O = D !== void 0 ? D.length : 0; + let U = s.get(_); + if (U === void 0 || U.count !== O) { + let De = function() { + Me.dispose(), s.delete(_), _.removeEventListener("dispose", De); }; U !== void 0 && U.texture.dispose(); - const V = S.morphAttributes.position !== void 0, I = S.morphAttributes.normal !== void 0, X = S.morphAttributes.color !== void 0, J = S.morphAttributes.position || [], $ = S.morphAttributes.normal || [], W = S.morphAttributes.color || []; - let ne = 0; - V === !0 && (ne = 1), I === !0 && (ne = 2), X === !0 && (ne = 3); - let ie = S.attributes.position.count * ne, fe = 1; - ie > e.maxTextureSize && (fe = Math.ceil(ie / e.maxTextureSize), ie = e.maxTextureSize); - const le = new Float32Array(ie * fe * 4 * P), Ee = new JM(le, ie, fe, P); - Ee.type = uy, Ee.needsUpdate = !0; - const he = ne * 4; - for (let Ce = 0; Ce < P; Ce++) { - const Be = J[Ce], pe = $[Ce], de = W[Ce], ce = ie * fe * 4 * Ce; - for (let ye = 0; ye < Be.count; ye++) { - const we = ye * he; - V === !0 && (l.fromBufferAttribute(Be, ye), Be.normalized === !0 && YA(l, Be), le[ce + we + 0] = l.x, le[ce + we + 1] = l.y, le[ce + we + 2] = l.z, le[ce + we + 3] = 0), I === !0 && (l.fromBufferAttribute(pe, ye), pe.normalized === !0 && YA(l, pe), le[ce + we + 4] = l.x, le[ce + we + 5] = l.y, le[ce + we + 6] = l.z, le[ce + we + 7] = 0), X === !0 && (l.fromBufferAttribute(de, ye), de.normalized === !0 && YA(l, de), le[ce + we + 8] = l.x, le[ce + we + 9] = l.y, le[ce + we + 10] = l.z, le[ce + we + 11] = de.itemSize === 4 ? l.w : 1); + const G = _.morphAttributes.position !== void 0, B = _.morphAttributes.normal !== void 0, Q = _.morphAttributes.color !== void 0, K = _.morphAttributes.position || [], te = _.morphAttributes.normal || [], Y = _.morphAttributes.color || []; + let re = 0; + G === !0 && (re = 1), B === !0 && (re = 2), Q === !0 && (re = 3); + let se = _.attributes.position.count * re, ce = 1; + se > e.maxTextureSize && (ce = Math.ceil(se / e.maxTextureSize), se = e.maxTextureSize); + const ue = new Float32Array(se * ce * 4 * O), Me = new JM(ue, se, ce, O); + Me.type = fy, Me.needsUpdate = !0; + const me = re * 4; + for (let Re = 0; Re < O; Re++) { + const He = K[Re], ve = te[Re], fe = Y[Re], he = se * ce * 4 * Re; + for (let ye = 0; ye < He.count; ye++) { + const Ee = ye * me; + G === !0 && (l.fromBufferAttribute(He, ye), He.normalized === !0 && XA(l, He), ue[he + Ee + 0] = l.x, ue[he + Ee + 1] = l.y, ue[he + Ee + 2] = l.z, ue[he + Ee + 3] = 0), B === !0 && (l.fromBufferAttribute(ve, ye), ve.normalized === !0 && XA(l, ve), ue[he + Ee + 4] = l.x, ue[he + Ee + 5] = l.y, ue[he + Ee + 6] = l.z, ue[he + Ee + 7] = 0), Q === !0 && (l.fromBufferAttribute(fe, ye), fe.normalized === !0 && XA(l, fe), ue[he + Ee + 8] = l.x, ue[he + Ee + 9] = l.y, ue[he + Ee + 10] = l.z, ue[he + Ee + 11] = fe.itemSize === 4 ? l.w : 1); } } U = { - count: P, - texture: Ee, - size: new Ft(ie, fe) - }, o.set(S, U), S.addEventListener("dispose", Fe); - } - let B = 0; - for (let V = 0; V < C.length; V++) - B += C[V]; - const k = S.morphTargetsRelative ? 1 : 1 - B; - T.getUniforms().setValue(a, "morphTargetBaseInfluence", k), T.getUniforms().setValue(a, "morphTargetInfluences", C), T.getUniforms().setValue(a, "morphTargetsTexture", U.texture, t), T.getUniforms().setValue(a, "morphTargetsTextureSize", U.size); + count: O, + texture: Me, + size: new zt(se, ce) + }, s.set(_, U), _.addEventListener("dispose", De); + } + let H = 0; + for (let G = 0; G < R.length; G++) + H += R[G]; + const I = _.morphTargetsRelative ? 1 : 1 - H; + T.getUniforms().setValue(a, "morphTargetBaseInfluence", I), T.getUniforms().setValue(a, "morphTargetInfluences", R), T.getUniforms().setValue(a, "morphTargetsTexture", U.texture, t), T.getUniforms().setValue(a, "morphTargetsTextureSize", U.size); } else { - const D = C === void 0 ? 0 : C.length; - let P = r[S.id]; - if (P === void 0 || P.length !== D) { - P = []; - for (let I = 0; I < D; I++) - P[I] = [I, 0]; - r[S.id] = P; - } - for (let I = 0; I < D; I++) { - const X = P[I]; - X[0] = I, X[1] = C[I]; - } - P.sort(LG); - for (let I = 0; I < 8; I++) - I < D && P[I][1] ? (d[I][0] = P[I][0], d[I][1] = P[I][1]) : (d[I][0] = Number.MAX_SAFE_INTEGER, d[I][1] = 0); - d.sort(DG); - const U = S.morphAttributes.position, B = S.morphAttributes.normal; - let k = 0; - for (let I = 0; I < 8; I++) { - const X = d[I], J = X[0], $ = X[1]; - J !== Number.MAX_SAFE_INTEGER && $ ? (U && S.getAttribute("morphTarget" + I) !== U[J] && S.setAttribute("morphTarget" + I, U[J]), B && S.getAttribute("morphNormal" + I) !== B[J] && S.setAttribute("morphNormal" + I, B[J]), i[I] = $, k += $) : (U && S.hasAttribute("morphTarget" + I) === !0 && S.deleteAttribute("morphTarget" + I), B && S.hasAttribute("morphNormal" + I) === !0 && S.deleteAttribute("morphNormal" + I), i[I] = 0); - } - const V = S.morphTargetsRelative ? 1 : 1 - k; - T.getUniforms().setValue(a, "morphTargetBaseInfluence", V), T.getUniforms().setValue(a, "morphTargetInfluences", i); + const D = R === void 0 ? 0 : R.length; + let O = r[_.id]; + if (O === void 0 || O.length !== D) { + O = []; + for (let B = 0; B < D; B++) + O[B] = [B, 0]; + r[_.id] = O; + } + for (let B = 0; B < D; B++) { + const Q = O[B]; + Q[0] = B, Q[1] = R[B]; + } + O.sort(GG); + for (let B = 0; B < 8; B++) + B < D && O[B][1] ? (d[B][0] = O[B][0], d[B][1] = O[B][1]) : (d[B][0] = Number.MAX_SAFE_INTEGER, d[B][1] = 0); + d.sort(VG); + const U = _.morphAttributes.position, H = _.morphAttributes.normal; + let I = 0; + for (let B = 0; B < 8; B++) { + const Q = d[B], K = Q[0], te = Q[1]; + K !== Number.MAX_SAFE_INTEGER && te ? (U && _.getAttribute("morphTarget" + B) !== U[K] && _.setAttribute("morphTarget" + B, U[K]), H && _.getAttribute("morphNormal" + B) !== H[K] && _.setAttribute("morphNormal" + B, H[K]), i[B] = te, I += te) : (U && _.hasAttribute("morphTarget" + B) === !0 && _.deleteAttribute("morphTarget" + B), H && _.hasAttribute("morphNormal" + B) === !0 && _.deleteAttribute("morphNormal" + B), i[B] = 0); + } + const G = _.morphTargetsRelative ? 1 : 1 - I; + T.getUniforms().setValue(a, "morphTargetBaseInfluence", G), T.getUniforms().setValue(a, "morphTargetInfluences", i); } } return { - update: h + update: p }; } -function OG(a, e, t, r) { +function jG(a, e, t, r) { let i = /* @__PURE__ */ new WeakMap(); - function o(h) { - const m = r.render.frame, S = h.geometry, _ = e.get(h, S); - return i.get(_) !== m && (e.update(_), i.set(_, m)), h.isInstancedMesh && (h.hasEventListener("dispose", d) === !1 && h.addEventListener("dispose", d), t.update(h.instanceMatrix, 34962), h.instanceColor !== null && t.update(h.instanceColor, 34962)), _; + function s(p) { + const g = r.render.frame, _ = p.geometry, w = e.get(p, _); + return i.get(w) !== g && (e.update(w), i.set(w, g)), p.isInstancedMesh && (p.hasEventListener("dispose", d) === !1 && p.addEventListener("dispose", d), t.update(p.instanceMatrix, 34962), p.instanceColor !== null && t.update(p.instanceColor, 34962)), w; } function l() { i = /* @__PURE__ */ new WeakMap(); } - function d(h) { - const m = h.target; - m.removeEventListener("dispose", d), t.remove(m.instanceMatrix), m.instanceColor !== null && t.remove(m.instanceColor); + function d(p) { + const g = p.target; + g.removeEventListener("dispose", d), t.remove(g.instanceMatrix), g.instanceColor !== null && t.remove(g.instanceColor); } return { - update: o, + update: s, dispose: l }; } -const bF = /* @__PURE__ */ new iu(), wF = /* @__PURE__ */ new JM(), EF = /* @__PURE__ */ new kC(), MF = /* @__PURE__ */ new eT(), XO = [], qO = [], QO = new Float32Array(16), ZO = new Float32Array(9), JO = new Float32Array(4); -function mw(a, e, t) { +const NF = /* @__PURE__ */ new su(), FF = /* @__PURE__ */ new JM(), kF = /* @__PURE__ */ new IC(), IF = /* @__PURE__ */ new eT(), ZO = [], JO = [], KO = new Float32Array(16), $O = new Float32Array(9), eU = new Float32Array(4); +function mb(a, e, t) { const r = a[0]; if (r <= 0 || r > 0) return a; const i = e * t; - let o = XO[i]; - if (o === void 0 && (o = new Float32Array(i), XO[i] = o), e !== 0) { - r.toArray(o, 0); + let s = ZO[i]; + if (s === void 0 && (s = new Float32Array(i), ZO[i] = s), e !== 0) { + r.toArray(s, 0); for (let l = 1, d = 0; l !== e; ++l) - d += t, a[l].toArray(o, d); + d += t, a[l].toArray(s, d); } - return o; + return s; } -function Yh(a, e) { +function Qh(a, e) { if (a.length !== e.length) return !1; for (let t = 0, r = a.length; t < r; t++) @@ -8938,366 +8938,366 @@ function Yh(a, e) { return !1; return !0; } -function Xh(a, e) { +function Zh(a, e) { for (let t = 0, r = e.length; t < r; t++) a[t] = e[t]; } -function BC(a, e) { - let t = qO[e]; - t === void 0 && (t = new Int32Array(e), qO[e] = t); +function HC(a, e) { + let t = JO[e]; + t === void 0 && (t = new Int32Array(e), JO[e] = t); for (let r = 0; r !== e; ++r) t[r] = a.allocateTextureUnit(); return t; } -function UG(a, e) { +function YG(a, e) { const t = this.cache; t[0] !== e && (a.uniform1f(this.addr, e), t[0] = e); } -function zG(a, e) { +function XG(a, e) { const t = this.cache; if (e.x !== void 0) (t[0] !== e.x || t[1] !== e.y) && (a.uniform2f(this.addr, e.x, e.y), t[0] = e.x, t[1] = e.y); else { - if (Yh(t, e)) + if (Qh(t, e)) return; - a.uniform2fv(this.addr, e), Xh(t, e); + a.uniform2fv(this.addr, e), Zh(t, e); } } -function NG(a, e) { +function qG(a, e) { const t = this.cache; if (e.x !== void 0) (t[0] !== e.x || t[1] !== e.y || t[2] !== e.z) && (a.uniform3f(this.addr, e.x, e.y, e.z), t[0] = e.x, t[1] = e.y, t[2] = e.z); else if (e.r !== void 0) (t[0] !== e.r || t[1] !== e.g || t[2] !== e.b) && (a.uniform3f(this.addr, e.r, e.g, e.b), t[0] = e.r, t[1] = e.g, t[2] = e.b); else { - if (Yh(t, e)) + if (Qh(t, e)) return; - a.uniform3fv(this.addr, e), Xh(t, e); + a.uniform3fv(this.addr, e), Zh(t, e); } } -function FG(a, e) { +function QG(a, e) { const t = this.cache; if (e.x !== void 0) (t[0] !== e.x || t[1] !== e.y || t[2] !== e.z || t[3] !== e.w) && (a.uniform4f(this.addr, e.x, e.y, e.z, e.w), t[0] = e.x, t[1] = e.y, t[2] = e.z, t[3] = e.w); else { - if (Yh(t, e)) + if (Qh(t, e)) return; - a.uniform4fv(this.addr, e), Xh(t, e); + a.uniform4fv(this.addr, e), Zh(t, e); } } -function kG(a, e) { +function ZG(a, e) { const t = this.cache, r = e.elements; if (r === void 0) { - if (Yh(t, e)) + if (Qh(t, e)) return; - a.uniformMatrix2fv(this.addr, !1, e), Xh(t, e); + a.uniformMatrix2fv(this.addr, !1, e), Zh(t, e); } else { - if (Yh(t, r)) + if (Qh(t, r)) return; - JO.set(r), a.uniformMatrix2fv(this.addr, !1, JO), Xh(t, r); + eU.set(r), a.uniformMatrix2fv(this.addr, !1, eU), Zh(t, r); } } -function IG(a, e) { +function JG(a, e) { const t = this.cache, r = e.elements; if (r === void 0) { - if (Yh(t, e)) + if (Qh(t, e)) return; - a.uniformMatrix3fv(this.addr, !1, e), Xh(t, e); + a.uniformMatrix3fv(this.addr, !1, e), Zh(t, e); } else { - if (Yh(t, r)) + if (Qh(t, r)) return; - ZO.set(r), a.uniformMatrix3fv(this.addr, !1, ZO), Xh(t, r); + $O.set(r), a.uniformMatrix3fv(this.addr, !1, $O), Zh(t, r); } } -function BG(a, e) { +function KG(a, e) { const t = this.cache, r = e.elements; if (r === void 0) { - if (Yh(t, e)) + if (Qh(t, e)) return; - a.uniformMatrix4fv(this.addr, !1, e), Xh(t, e); + a.uniformMatrix4fv(this.addr, !1, e), Zh(t, e); } else { - if (Yh(t, r)) + if (Qh(t, r)) return; - QO.set(r), a.uniformMatrix4fv(this.addr, !1, QO), Xh(t, r); + KO.set(r), a.uniformMatrix4fv(this.addr, !1, KO), Zh(t, r); } } -function HG(a, e) { +function $G(a, e) { const t = this.cache; t[0] !== e && (a.uniform1i(this.addr, e), t[0] = e); } -function VG(a, e) { +function e8(a, e) { const t = this.cache; - Yh(t, e) || (a.uniform2iv(this.addr, e), Xh(t, e)); + Qh(t, e) || (a.uniform2iv(this.addr, e), Zh(t, e)); } -function GG(a, e) { +function t8(a, e) { const t = this.cache; - Yh(t, e) || (a.uniform3iv(this.addr, e), Xh(t, e)); + Qh(t, e) || (a.uniform3iv(this.addr, e), Zh(t, e)); } -function WG(a, e) { +function n8(a, e) { const t = this.cache; - Yh(t, e) || (a.uniform4iv(this.addr, e), Xh(t, e)); + Qh(t, e) || (a.uniform4iv(this.addr, e), Zh(t, e)); } -function jG(a, e) { +function r8(a, e) { const t = this.cache; t[0] !== e && (a.uniform1ui(this.addr, e), t[0] = e); } -function YG(a, e) { +function i8(a, e) { const t = this.cache; - Yh(t, e) || (a.uniform2uiv(this.addr, e), Xh(t, e)); + Qh(t, e) || (a.uniform2uiv(this.addr, e), Zh(t, e)); } -function XG(a, e) { +function a8(a, e) { const t = this.cache; - Yh(t, e) || (a.uniform3uiv(this.addr, e), Xh(t, e)); + Qh(t, e) || (a.uniform3uiv(this.addr, e), Zh(t, e)); } -function qG(a, e) { +function s8(a, e) { const t = this.cache; - Yh(t, e) || (a.uniform4uiv(this.addr, e), Xh(t, e)); + Qh(t, e) || (a.uniform4uiv(this.addr, e), Zh(t, e)); } -function QG(a, e, t) { +function o8(a, e, t) { const r = this.cache, i = t.allocateTextureUnit(); - r[0] !== i && (a.uniform1i(this.addr, i), r[0] = i), t.setTexture2D(e || bF, i); + r[0] !== i && (a.uniform1i(this.addr, i), r[0] = i), t.setTexture2D(e || NF, i); } -function ZG(a, e, t) { +function l8(a, e, t) { const r = this.cache, i = t.allocateTextureUnit(); - r[0] !== i && (a.uniform1i(this.addr, i), r[0] = i), t.setTexture3D(e || EF, i); + r[0] !== i && (a.uniform1i(this.addr, i), r[0] = i), t.setTexture3D(e || kF, i); } -function JG(a, e, t) { +function u8(a, e, t) { const r = this.cache, i = t.allocateTextureUnit(); - r[0] !== i && (a.uniform1i(this.addr, i), r[0] = i), t.setTextureCube(e || MF, i); + r[0] !== i && (a.uniform1i(this.addr, i), r[0] = i), t.setTextureCube(e || IF, i); } -function KG(a, e, t) { +function c8(a, e, t) { const r = this.cache, i = t.allocateTextureUnit(); - r[0] !== i && (a.uniform1i(this.addr, i), r[0] = i), t.setTexture2DArray(e || wF, i); + r[0] !== i && (a.uniform1i(this.addr, i), r[0] = i), t.setTexture2DArray(e || FF, i); } -function $G(a) { +function f8(a) { switch (a) { case 5126: - return UG; + return YG; case 35664: - return zG; + return XG; case 35665: - return NG; + return qG; case 35666: - return FG; + return QG; case 35674: - return kG; + return ZG; case 35675: - return IG; + return JG; case 35676: - return BG; + return KG; case 5124: case 35670: - return HG; + return $G; case 35667: case 35671: - return VG; + return e8; case 35668: case 35672: - return GG; + return t8; case 35669: case 35673: - return WG; + return n8; case 5125: - return jG; + return r8; case 36294: - return YG; + return i8; case 36295: - return XG; + return a8; case 36296: - return qG; + return s8; case 35678: case 36198: case 36298: case 36306: case 35682: - return QG; + return o8; case 35679: case 36299: case 36307: - return ZG; + return l8; case 35680: case 36300: case 36308: case 36293: - return JG; + return u8; case 36289: case 36303: case 36311: case 36292: - return KG; + return c8; } } -function e8(a, e) { +function d8(a, e) { a.uniform1fv(this.addr, e); } -function t8(a, e) { - const t = mw(e, this.size, 2); +function h8(a, e) { + const t = mb(e, this.size, 2); a.uniform2fv(this.addr, t); } -function n8(a, e) { - const t = mw(e, this.size, 3); +function p8(a, e) { + const t = mb(e, this.size, 3); a.uniform3fv(this.addr, t); } -function r8(a, e) { - const t = mw(e, this.size, 4); +function m8(a, e) { + const t = mb(e, this.size, 4); a.uniform4fv(this.addr, t); } -function i8(a, e) { - const t = mw(e, this.size, 4); +function v8(a, e) { + const t = mb(e, this.size, 4); a.uniformMatrix2fv(this.addr, !1, t); } -function a8(a, e) { - const t = mw(e, this.size, 9); +function g8(a, e) { + const t = mb(e, this.size, 9); a.uniformMatrix3fv(this.addr, !1, t); } -function s8(a, e) { - const t = mw(e, this.size, 16); +function y8(a, e) { + const t = mb(e, this.size, 16); a.uniformMatrix4fv(this.addr, !1, t); } -function o8(a, e) { +function x8(a, e) { a.uniform1iv(this.addr, e); } -function l8(a, e) { +function _8(a, e) { a.uniform2iv(this.addr, e); } -function u8(a, e) { +function S8(a, e) { a.uniform3iv(this.addr, e); } -function c8(a, e) { +function w8(a, e) { a.uniform4iv(this.addr, e); } -function f8(a, e) { +function b8(a, e) { a.uniform1uiv(this.addr, e); } -function d8(a, e) { +function E8(a, e) { a.uniform2uiv(this.addr, e); } -function h8(a, e) { +function M8(a, e) { a.uniform3uiv(this.addr, e); } -function p8(a, e) { +function T8(a, e) { a.uniform4uiv(this.addr, e); } -function m8(a, e, t) { - const r = e.length, i = BC(t, r); +function C8(a, e, t) { + const r = e.length, i = HC(t, r); a.uniform1iv(this.addr, i); - for (let o = 0; o !== r; ++o) - t.setTexture2D(e[o] || bF, i[o]); + for (let s = 0; s !== r; ++s) + t.setTexture2D(e[s] || NF, i[s]); } -function v8(a, e, t) { - const r = e.length, i = BC(t, r); +function R8(a, e, t) { + const r = e.length, i = HC(t, r); a.uniform1iv(this.addr, i); - for (let o = 0; o !== r; ++o) - t.setTexture3D(e[o] || EF, i[o]); + for (let s = 0; s !== r; ++s) + t.setTexture3D(e[s] || kF, i[s]); } -function g8(a, e, t) { - const r = e.length, i = BC(t, r); +function A8(a, e, t) { + const r = e.length, i = HC(t, r); a.uniform1iv(this.addr, i); - for (let o = 0; o !== r; ++o) - t.setTextureCube(e[o] || MF, i[o]); + for (let s = 0; s !== r; ++s) + t.setTextureCube(e[s] || IF, i[s]); } -function y8(a, e, t) { - const r = e.length, i = BC(t, r); +function D8(a, e, t) { + const r = e.length, i = HC(t, r); a.uniform1iv(this.addr, i); - for (let o = 0; o !== r; ++o) - t.setTexture2DArray(e[o] || wF, i[o]); + for (let s = 0; s !== r; ++s) + t.setTexture2DArray(e[s] || FF, i[s]); } -function x8(a) { +function L8(a) { switch (a) { case 5126: - return e8; + return d8; case 35664: - return t8; + return h8; case 35665: - return n8; + return p8; case 35666: - return r8; + return m8; case 35674: - return i8; + return v8; case 35675: - return a8; + return g8; case 35676: - return s8; + return y8; case 5124: case 35670: - return o8; + return x8; case 35667: case 35671: - return l8; + return _8; case 35668: case 35672: - return u8; + return S8; case 35669: case 35673: - return c8; + return w8; case 5125: - return f8; + return b8; case 36294: - return d8; + return E8; case 36295: - return h8; + return M8; case 36296: - return p8; + return T8; case 35678: case 36198: case 36298: case 36306: case 35682: - return m8; + return C8; case 35679: case 36299: case 36307: - return v8; + return R8; case 35680: case 36300: case 36308: case 36293: - return g8; + return A8; case 36289: case 36303: case 36311: case 36292: - return y8; + return D8; } } -class S8 { +class P8 { constructor(e, t, r) { - this.id = e, this.addr = r, this.cache = [], this.setValue = $G(t.type); + this.id = e, this.addr = r, this.cache = [], this.setValue = f8(t.type); } } -class _8 { +class O8 { constructor(e, t, r) { - this.id = e, this.addr = r, this.cache = [], this.size = t.size, this.setValue = x8(t.type); + this.id = e, this.addr = r, this.cache = [], this.size = t.size, this.setValue = L8(t.type); } } -class b8 { +class U8 { constructor(e) { this.id = e, this.seq = [], this.map = {}; } setValue(e, t, r) { const i = this.seq; - for (let o = 0, l = i.length; o !== l; ++o) { - const d = i[o]; + for (let s = 0, l = i.length; s !== l; ++s) { + const d = i[s]; d.setValue(e, t[d.id], r); } } } -const XA = /(\w+)(\])?(\[|\.)?/g; -function KO(a, e) { +const qA = /(\w+)(\])?(\[|\.)?/g; +function tU(a, e) { a.seq.push(e), a.map[e.id] = e; } -function w8(a, e, t) { +function z8(a, e, t) { const r = a.name, i = r.length; - for (XA.lastIndex = 0; ; ) { - const o = XA.exec(r), l = XA.lastIndex; - let d = o[1]; - const h = o[2] === "]", m = o[3]; - if (h && (d = d | 0), m === void 0 || m === "[" && l + 2 === i) { - KO(t, m === void 0 ? new S8(d, a, e) : new _8(d, a, e)); + for (qA.lastIndex = 0; ; ) { + const s = qA.exec(r), l = qA.lastIndex; + let d = s[1]; + const p = s[2] === "]", g = s[3]; + if (p && (d = d | 0), g === void 0 || g === "[" && l + 2 === i) { + tU(t, g === void 0 ? new P8(d, a, e) : new O8(d, a, e)); break; } else { - let _ = t.map[d]; - _ === void 0 && (_ = new b8(d), KO(t, _)), t = _; + let w = t.map[d]; + w === void 0 && (w = new U8(d), tU(t, w)), t = w; } } } @@ -9306,93 +9306,93 @@ class vC { this.seq = [], this.map = {}; const r = e.getProgramParameter(t, 35718); for (let i = 0; i < r; ++i) { - const o = e.getActiveUniform(t, i), l = e.getUniformLocation(t, o.name); - w8(o, l, this); + const s = e.getActiveUniform(t, i), l = e.getUniformLocation(t, s.name); + z8(s, l, this); } } setValue(e, t, r, i) { - const o = this.map[t]; - o !== void 0 && o.setValue(e, r, i); + const s = this.map[t]; + s !== void 0 && s.setValue(e, r, i); } setOptional(e, t, r) { const i = t[r]; i !== void 0 && this.setValue(e, r, i); } static upload(e, t, r, i) { - for (let o = 0, l = t.length; o !== l; ++o) { - const d = t[o], h = r[d.id]; - h.needsUpdate !== !1 && d.setValue(e, h.value, i); + for (let s = 0, l = t.length; s !== l; ++s) { + const d = t[s], p = r[d.id]; + p.needsUpdate !== !1 && d.setValue(e, p.value, i); } } static seqWithValue(e, t) { const r = []; - for (let i = 0, o = e.length; i !== o; ++i) { + for (let i = 0, s = e.length; i !== s; ++i) { const l = e[i]; l.id in t && r.push(l); } return r; } } -function $O(a, e, t) { +function nU(a, e, t) { const r = a.createShader(e); return a.shaderSource(r, t), a.compileShader(r), r; } -let E8 = 0; -function M8(a, e) { +let N8 = 0; +function F8(a, e) { const t = a.split(` -`), r = [], i = Math.max(e - 6, 0), o = Math.min(e + 6, t.length); - for (let l = i; l < o; l++) { +`), r = [], i = Math.max(e - 6, 0), s = Math.min(e + 6, t.length); + for (let l = i; l < s; l++) { const d = l + 1; r.push(`${d === e ? ">" : " "} ${d}: ${t[l]}`); } return r.join(` `); } -function T8(a) { +function k8(a) { switch (a) { - case yv: + case wv: return ["Linear", "( value )"]; - case Mi: + case gi: return ["sRGB", "( value )"]; default: return console.warn("THREE.WebGLProgram: Unsupported encoding:", a), ["Linear", "( value )"]; } } -function eU(a, e, t) { +function rU(a, e, t) { const r = a.getShaderParameter(e, 35713), i = a.getShaderInfoLog(e).trim(); if (r && i === "") return ""; - const o = /ERROR: 0:(\d+)/.exec(i); - if (o) { - const l = parseInt(o[1]); + const s = /ERROR: 0:(\d+)/.exec(i); + if (s) { + const l = parseInt(s[1]); return t.toUpperCase() + ` ` + i + ` -` + M8(a.getShaderSource(e), l); +` + F8(a.getShaderSource(e), l); } else return i; } -function C8(a, e) { - const t = T8(e); +function I8(a, e) { + const t = k8(e); return "vec4 " + a + "( vec4 value ) { return LinearTo" + t[0] + t[1] + "; }"; } -function R8(a, e) { +function B8(a, e) { let t; switch (e) { - case jN: + case aF: t = "Linear"; break; - case YN: + case sF: t = "Reinhard"; break; - case XN: + case oF: t = "OptimizedCineon"; break; case G3: t = "ACESFilmic"; break; - case qN: + case lF: t = "Custom"; break; default: @@ -9400,16 +9400,16 @@ function R8(a, e) { } return "vec3 " + a + "( vec3 color ) { return " + t + "ToneMapping( color ); }"; } -function A8(a) { +function H8(a) { return [ a.extensionDerivatives || !!a.envMapCubeUVHeight || a.bumpMap || a.tangentSpaceNormalMap || a.clearcoatNormalMap || a.flatShading || a.shaderID === "physical" ? "#extension GL_OES_standard_derivatives : enable" : "", (a.extensionFragDepth || a.logarithmicDepthBuffer) && a.rendererExtensionFragDepth ? "#extension GL_EXT_frag_depth : enable" : "", a.extensionDrawBuffers && a.rendererExtensionDrawBuffers ? "#extension GL_EXT_draw_buffers : require" : "", (a.extensionShaderTextureLOD || a.envMap || a.transmission) && a.rendererExtensionShaderTextureLod ? "#extension GL_EXT_shader_texture_lod : enable" : "" - ].filter(pM).join(` + ].filter(vM).join(` `); } -function D8(a) { +function V8(a) { const e = []; for (const t in a) { const r = a[t]; @@ -9418,52 +9418,52 @@ function D8(a) { return e.join(` `); } -function L8(a, e) { +function G8(a, e) { const t = {}, r = a.getProgramParameter(e, 35721); for (let i = 0; i < r; i++) { - const o = a.getActiveAttrib(e, i), l = o.name; + const s = a.getActiveAttrib(e, i), l = s.name; let d = 1; - o.type === 35674 && (d = 2), o.type === 35675 && (d = 3), o.type === 35676 && (d = 4), t[l] = { - type: o.type, + s.type === 35674 && (d = 2), s.type === 35675 && (d = 3), s.type === 35676 && (d = 4), t[l] = { + type: s.type, location: a.getAttribLocation(e, l), locationSize: d }; } return t; } -function pM(a) { +function vM(a) { return a !== ""; } -function tU(a, e) { +function iU(a, e) { return a.replace(/NUM_DIR_LIGHTS/g, e.numDirLights).replace(/NUM_SPOT_LIGHTS/g, e.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g, e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g, e.numPointLights).replace(/NUM_HEMI_LIGHTS/g, e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g, e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g, e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g, e.numPointLightShadows); } -function nU(a, e) { +function aU(a, e) { return a.replace(/NUM_CLIPPING_PLANES/g, e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g, e.numClippingPlanes - e.numClipIntersection); } -const P8 = /^[ \t]*#include +<([\w\d./]+)>/gm; -function m3(a) { - return a.replace(P8, O8); +const W8 = /^[ \t]*#include +<([\w\d./]+)>/gm; +function g3(a) { + return a.replace(W8, j8); } -function O8(a, e) { +function j8(a, e) { const t = na[e]; if (t === void 0) throw new Error("Can not resolve #include <" + e + ">"); - return m3(t); + return g3(t); } -const U8 = /#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g, z8 = /#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g; -function rU(a) { - return a.replace(z8, TF).replace(U8, N8); +const Y8 = /#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g, X8 = /#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g; +function sU(a) { + return a.replace(X8, BF).replace(Y8, q8); } -function N8(a, e, t, r) { - return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."), TF(a, e, t, r); +function q8(a, e, t, r) { + return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."), BF(a, e, t, r); } -function TF(a, e, t, r) { +function BF(a, e, t, r) { let i = ""; - for (let o = parseInt(e); o < parseInt(t); o++) - i += r.replace(/\[\s*i\s*\]/g, "[ " + o + " ]").replace(/UNROLLED_LOOP_INDEX/g, o); + for (let s = parseInt(e); s < parseInt(t); s++) + i += r.replace(/\[\s*i\s*\]/g, "[ " + s + " ]").replace(/UNROLLED_LOOP_INDEX/g, s); return i; } -function iU(a) { +function oU(a) { let e = "precision " + a.precision + ` float; precision ` + a.precision + " int;"; return a.precision === "highp" ? e += ` @@ -9471,11 +9471,11 @@ precision ` + a.precision + " int;"; #define MEDIUM_PRECISION` : a.precision === "lowp" && (e += ` #define LOW_PRECISION`), e; } -function F8(a) { +function Q8(a) { let e = "SHADOWMAP_TYPE_BASIC"; - return a.shadowMapType === B3 ? e = "SHADOWMAP_TYPE_PCF" : a.shadowMapType === H3 ? e = "SHADOWMAP_TYPE_PCF_SOFT" : a.shadowMapType === Bb && (e = "SHADOWMAP_TYPE_VSM"), e; + return a.shadowMapType === UC ? e = "SHADOWMAP_TYPE_PCF" : a.shadowMapType === _M ? e = "SHADOWMAP_TYPE_PCF_SOFT" : a.shadowMapType === U_ && (e = "SHADOWMAP_TYPE_VSM"), e; } -function k8(a) { +function Z8(a) { let e = "ENVMAP_TYPE_CUBE"; if (a.envMap) switch (a.envMapMode) { @@ -9483,13 +9483,13 @@ function k8(a) { case n1: e = "ENVMAP_TYPE_CUBE"; break; - case hw: + case hb: e = "ENVMAP_TYPE_CUBE_UV"; break; } return e; } -function I8(a) { +function J8(a) { let e = "ENVMAP_MODE_REFLECTION"; if (a.envMap) switch (a.envMapMode) { @@ -9499,46 +9499,46 @@ function I8(a) { } return e; } -function B8(a) { +function K8(a) { let e = "ENVMAP_BLENDING_NONE"; if (a.envMap) switch (a.combine) { case ZM: e = "ENVMAP_BLENDING_MULTIPLY"; break; - case GN: + case rF: e = "ENVMAP_BLENDING_MIX"; break; - case WN: + case iF: e = "ENVMAP_BLENDING_ADD"; break; } return e; } -function H8(a) { +function $8(a) { const e = a.envMapCubeUVHeight; if (e === null) return null; const t = Math.log2(e) - 2, r = 1 / e; return { texelWidth: 1 / (3 * Math.max(Math.pow(2, t), 7 * 16)), texelHeight: r, maxMip: t }; } -function V8(a, e, t, r) { - const i = a.getContext(), o = t.defines; +function eW(a, e, t, r) { + const i = a.getContext(), s = t.defines; let l = t.vertexShader, d = t.fragmentShader; - const h = F8(t), m = k8(t), S = I8(t), _ = B8(t), T = H8(t), C = t.isWebGL2 ? "" : A8(t), D = D8(o), P = i.createProgram(); - let U, B, k = t.glslVersion ? "#version " + t.glslVersion + ` + const p = Q8(t), g = Z8(t), _ = J8(t), w = K8(t), T = $8(t), R = t.isWebGL2 ? "" : H8(t), D = V8(s), O = i.createProgram(); + let U, H, I = t.glslVersion ? "#version " + t.glslVersion + ` ` : ""; t.isRawShaderMaterial ? (U = [ D - ].filter(pM).join(` + ].filter(vM).join(` `), U.length > 0 && (U += ` -`), B = [ - C, +`), H = [ + R, D - ].filter(pM).join(` -`), B.length > 0 && (B += ` + ].filter(vM).join(` +`), H.length > 0 && (H += ` `)) : (U = [ - iU(t), + oU(t), "#define SHADER_NAME " + t.shaderName, D, t.instancing ? "#define USE_INSTANCING" : "", @@ -9548,7 +9548,7 @@ function V8(a, e, t, r) { t.useFog && t.fogExp2 ? "#define FOG_EXP2" : "", t.map ? "#define USE_MAP" : "", t.envMap ? "#define USE_ENVMAP" : "", - t.envMap ? "#define " + S : "", + t.envMap ? "#define " + _ : "", t.lightMap ? "#define USE_LIGHTMAP" : "", t.aoMap ? "#define USE_AOMAP" : "", t.emissiveMap ? "#define USE_EMISSIVEMAP" : "", @@ -9589,7 +9589,7 @@ function V8(a, e, t, r) { t.doubleSided ? "#define DOUBLE_SIDED" : "", t.flipSided ? "#define FLIP_SIDED" : "", t.shadowMapEnabled ? "#define USE_SHADOWMAP" : "", - t.shadowMapEnabled ? "#define " + h : "", + t.shadowMapEnabled ? "#define " + p : "", t.sizeAttenuation ? "#define USE_SIZEATTENUATION" : "", t.logarithmicDepthBuffer ? "#define USE_LOGDEPTHBUF" : "", t.logarithmicDepthBuffer && t.rendererExtensionFragDepth ? "#define USE_LOGDEPTHBUF_EXT" : "", @@ -9640,10 +9640,10 @@ function V8(a, e, t, r) { "#endif", ` ` - ].filter(pM).join(` -`), B = [ - C, - iU(t), + ].filter(vM).join(` +`), H = [ + R, + oU(t), "#define SHADER_NAME " + t.shaderName, D, t.useFog && t.fog ? "#define USE_FOG" : "", @@ -9651,9 +9651,9 @@ function V8(a, e, t, r) { t.map ? "#define USE_MAP" : "", t.matcap ? "#define USE_MATCAP" : "", t.envMap ? "#define USE_ENVMAP" : "", - t.envMap ? "#define " + m : "", - t.envMap ? "#define " + S : "", + t.envMap ? "#define " + g : "", t.envMap ? "#define " + _ : "", + t.envMap ? "#define " + w : "", T ? "#define CUBEUV_TEXEL_WIDTH " + T.texelWidth : "", T ? "#define CUBEUV_TEXEL_HEIGHT " + T.texelHeight : "", T ? "#define CUBEUV_MAX_MIP " + T.maxMip + ".0" : "", @@ -9695,7 +9695,7 @@ function V8(a, e, t, r) { t.doubleSided ? "#define DOUBLE_SIDED" : "", t.flipSided ? "#define FLIP_SIDED" : "", t.shadowMapEnabled ? "#define USE_SHADOWMAP" : "", - t.shadowMapEnabled ? "#define " + h : "", + t.shadowMapEnabled ? "#define " + p : "", t.premultipliedAlpha ? "#define PREMULTIPLIED_ALPHA" : "", t.physicallyCorrectLights ? "#define PHYSICALLY_CORRECT_LIGHTS" : "", t.logarithmicDepthBuffer ? "#define USE_LOGDEPTHBUF" : "", @@ -9703,18 +9703,18 @@ function V8(a, e, t, r) { "uniform mat4 viewMatrix;", "uniform vec3 cameraPosition;", "uniform bool isOrthographic;", - t.toneMapping !== ig ? "#define TONE_MAPPING" : "", - t.toneMapping !== ig ? na.tonemapping_pars_fragment : "", - t.toneMapping !== ig ? R8("toneMapping", t.toneMapping) : "", + t.toneMapping !== og ? "#define TONE_MAPPING" : "", + t.toneMapping !== og ? na.tonemapping_pars_fragment : "", + t.toneMapping !== og ? B8("toneMapping", t.toneMapping) : "", t.dithering ? "#define DITHERING" : "", t.opaque ? "#define OPAQUE" : "", na.encodings_pars_fragment, - C8("linearToOutputTexel", t.outputEncoding), + I8("linearToOutputTexel", t.outputEncoding), t.useDepthPacking ? "#define DEPTH_PACKING " + t.depthPacking : "", ` ` - ].filter(pM).join(` -`)), l = m3(l), l = tU(l, t), l = nU(l, t), d = m3(d), d = tU(d, t), d = nU(d, t), l = rU(l), d = rU(d), t.isWebGL2 && t.isRawShaderMaterial !== !0 && (k = `#version 300 es + ].filter(vM).join(` +`)), l = g3(l), l = iU(l, t), l = aU(l, t), d = g3(d), d = iU(d, t), d = aU(d, t), l = sU(l), d = sU(d), t.isWebGL2 && t.isRawShaderMaterial !== !0 && (I = `#version 300 es `, U = [ "precision mediump sampler2DArray;", "#define attribute in", @@ -9722,10 +9722,10 @@ function V8(a, e, t, r) { "#define texture2D texture" ].join(` `) + ` -` + U, B = [ +` + U, H = [ "#define varying in", - t.glslVersion === d3 ? "" : "layout(location = 0) out highp vec4 pc_fragColor;", - t.glslVersion === d3 ? "" : "#define gl_FragColor pc_fragColor", + t.glslVersion === p3 ? "" : "layout(location = 0) out highp vec4 pc_fragColor;", + t.glslVersion === p3 ? "" : "#define gl_FragColor pc_fragColor", "#define gl_FragDepthEXT gl_FragDepth", "#define texture2D texture", "#define textureCube texture", @@ -9738,56 +9738,56 @@ function V8(a, e, t, r) { "#define textureCubeGradEXT textureGrad" ].join(` `) + ` -` + B); - const V = k + U + l, I = k + B + d, X = $O(i, 35633, V), J = $O(i, 35632, I); - if (i.attachShader(P, X), i.attachShader(P, J), t.index0AttributeName !== void 0 ? i.bindAttribLocation(P, 0, t.index0AttributeName) : t.morphTargets === !0 && i.bindAttribLocation(P, 0, "position"), i.linkProgram(P), a.debug.checkShaderErrors) { - const ne = i.getProgramInfoLog(P).trim(), ie = i.getShaderInfoLog(X).trim(), fe = i.getShaderInfoLog(J).trim(); - let le = !0, Ee = !0; - if (i.getProgramParameter(P, 35714) === !1) { - le = !1; - const he = eU(i, X, "vertex"), Fe = eU(i, J, "fragment"); +` + H); + const G = I + U + l, B = I + H + d, Q = nU(i, 35633, G), K = nU(i, 35632, B); + if (i.attachShader(O, Q), i.attachShader(O, K), t.index0AttributeName !== void 0 ? i.bindAttribLocation(O, 0, t.index0AttributeName) : t.morphTargets === !0 && i.bindAttribLocation(O, 0, "position"), i.linkProgram(O), a.debug.checkShaderErrors) { + const re = i.getProgramInfoLog(O).trim(), se = i.getShaderInfoLog(Q).trim(), ce = i.getShaderInfoLog(K).trim(); + let ue = !0, Me = !0; + if (i.getProgramParameter(O, 35714) === !1) { + ue = !1; + const me = rU(i, Q, "vertex"), De = rU(i, K, "fragment"); console.error( - "THREE.WebGLProgram: Shader Error " + i.getError() + " - VALIDATE_STATUS " + i.getProgramParameter(P, 35715) + ` + "THREE.WebGLProgram: Shader Error " + i.getError() + " - VALIDATE_STATUS " + i.getProgramParameter(O, 35715) + ` -Program Info Log: ` + ne + ` -` + he + ` -` + Fe +Program Info Log: ` + re + ` +` + me + ` +` + De ); } else - ne !== "" ? console.warn("THREE.WebGLProgram: Program Info Log:", ne) : (ie === "" || fe === "") && (Ee = !1); - Ee && (this.diagnostics = { - runnable: le, - programLog: ne, + re !== "" ? console.warn("THREE.WebGLProgram: Program Info Log:", re) : (se === "" || ce === "") && (Me = !1); + Me && (this.diagnostics = { + runnable: ue, + programLog: re, vertexShader: { - log: ie, + log: se, prefix: U }, fragmentShader: { - log: fe, - prefix: B + log: ce, + prefix: H } }); } - i.deleteShader(X), i.deleteShader(J); - let $; + i.deleteShader(Q), i.deleteShader(K); + let te; this.getUniforms = function() { - return $ === void 0 && ($ = new vC(i, P)), $; + return te === void 0 && (te = new vC(i, O)), te; }; - let W; + let Y; return this.getAttributes = function() { - return W === void 0 && (W = L8(i, P)), W; + return Y === void 0 && (Y = G8(i, O)), Y; }, this.destroy = function() { - r.releaseStatesOfProgram(this), i.deleteProgram(P), this.program = void 0; - }, this.name = t.shaderName, this.id = E8++, this.cacheKey = e, this.usedTimes = 1, this.program = P, this.vertexShader = X, this.fragmentShader = J, this; + r.releaseStatesOfProgram(this), i.deleteProgram(O), this.program = void 0; + }, this.name = t.shaderName, this.id = N8++, this.cacheKey = e, this.usedTimes = 1, this.program = O, this.vertexShader = Q, this.fragmentShader = K, this; } -let G8 = 0; -class W8 { +let tW = 0; +class nW { constructor() { this.shaderCache = /* @__PURE__ */ new Map(), this.materialCache = /* @__PURE__ */ new Map(); } update(e) { - const t = e.vertexShader, r = e.fragmentShader, i = this._getShaderStage(t), o = this._getShaderStage(r), l = this._getShaderCacheForMaterial(e); - return l.has(i) === !1 && (l.add(i), i.usedTimes++), l.has(o) === !1 && (l.add(o), o.usedTimes++), this; + const t = e.vertexShader, r = e.fragmentShader, i = this._getShaderStage(t), s = this._getShaderStage(r), l = this._getShaderCacheForMaterial(e); + return l.has(i) === !1 && (l.add(i), i.usedTimes++), l.has(s) === !1 && (l.add(s), s.usedTimes++), this; } remove(e) { const t = this.materialCache.get(e); @@ -9811,20 +9811,20 @@ class W8 { _getShaderStage(e) { const t = this.shaderCache; if (t.has(e) === !1) { - const r = new j8(e); + const r = new rW(e); t.set(e, r); } return t.get(e); } } -class j8 { +class rW { constructor(e) { - this.id = G8++, this.code = e, this.usedTimes = 0; + this.id = tW++, this.code = e, this.usedTimes = 0; } } -function Y8(a, e, t, r, i, o, l) { - const d = new kS(), h = new W8(), m = [], S = i.isWebGL2, _ = i.logarithmicDepthBuffer, T = i.vertexTextures; - let C = i.precision; +function iW(a, e, t, r, i, s, l) { + const d = new G_(), p = new nW(), g = [], _ = i.isWebGL2, w = i.logarithmicDepthBuffer, T = i.vertexTextures; + let R = i.precision; const D = { MeshDepthMaterial: "depth", MeshDistanceMaterial: "distanceRGBA", @@ -9842,188 +9842,188 @@ function Y8(a, e, t, r, i, o, l) { ShadowMaterial: "shadow", SpriteMaterial: "sprite" }; - function P(W, ne, ie, fe, le) { - const Ee = fe.fog, he = le.geometry, Fe = W.isMeshStandardMaterial ? fe.environment : null, Ce = (W.isMeshStandardMaterial ? t : e).get(W.envMap || Fe), Be = !!Ce && Ce.mapping === hw ? Ce.image.height : null, pe = D[W.type]; - W.precision !== null && (C = i.getMaxPrecision(W.precision), C !== W.precision && console.warn("THREE.WebGLProgram.getParameters:", W.precision, "not supported, using", C, "instead.")); - const de = he.morphAttributes.position || he.morphAttributes.normal || he.morphAttributes.color, ce = de !== void 0 ? de.length : 0; + function O(Y, re, se, ce, ue) { + const Me = ce.fog, me = ue.geometry, De = Y.isMeshStandardMaterial ? ce.environment : null, Re = (Y.isMeshStandardMaterial ? t : e).get(Y.envMap || De), He = !!Re && Re.mapping === hb ? Re.image.height : null, ve = D[Y.type]; + Y.precision !== null && (R = i.getMaxPrecision(Y.precision), R !== Y.precision && console.warn("THREE.WebGLProgram.getParameters:", Y.precision, "not supported, using", R, "instead.")); + const fe = me.morphAttributes.position || me.morphAttributes.normal || me.morphAttributes.color, he = fe !== void 0 ? fe.length : 0; let ye = 0; - he.morphAttributes.position !== void 0 && (ye = 1), he.morphAttributes.normal !== void 0 && (ye = 2), he.morphAttributes.color !== void 0 && (ye = 3); - let we, Xe, Je, st; - if (pe) { - const Ot = Gh[pe]; - we = Ot.vertexShader, Xe = Ot.fragmentShader; + me.morphAttributes.position !== void 0 && (ye = 1), me.morphAttributes.normal !== void 0 && (ye = 2), me.morphAttributes.color !== void 0 && (ye = 3); + let Ee, Ve, Je, rt; + if (ve) { + const ft = Wh[ve]; + Ee = ft.vertexShader, Ve = ft.fragmentShader; } else - we = W.vertexShader, Xe = W.fragmentShader, h.update(W), Je = h.getVertexShaderID(W), st = h.getFragmentShaderID(W); - const Ue = a.getRenderTarget(), ot = W.alphaTest > 0, rt = W.clearcoat > 0, _t = W.iridescence > 0; + Ee = Y.vertexShader, Ve = Y.fragmentShader, p.update(Y), Je = p.getVertexShaderID(Y), rt = p.getFragmentShaderID(Y); + const Ne = a.getRenderTarget(), ct = Y.alphaTest > 0, tt = Y.clearcoat > 0, Tt = Y.iridescence > 0; return { - isWebGL2: S, - shaderID: pe, - shaderName: W.type, - vertexShader: we, - fragmentShader: Xe, - defines: W.defines, + isWebGL2: _, + shaderID: ve, + shaderName: Y.type, + vertexShader: Ee, + fragmentShader: Ve, + defines: Y.defines, customVertexShaderID: Je, - customFragmentShaderID: st, - isRawShaderMaterial: W.isRawShaderMaterial === !0, - glslVersion: W.glslVersion, - precision: C, - instancing: le.isInstancedMesh === !0, - instancingColor: le.isInstancedMesh === !0 && le.instanceColor !== null, + customFragmentShaderID: rt, + isRawShaderMaterial: Y.isRawShaderMaterial === !0, + glslVersion: Y.glslVersion, + precision: R, + instancing: ue.isInstancedMesh === !0, + instancingColor: ue.isInstancedMesh === !0 && ue.instanceColor !== null, supportsVertexTextures: T, - outputEncoding: Ue === null ? a.outputEncoding : Ue.isXRRenderTarget === !0 ? Ue.texture.encoding : yv, - map: !!W.map, - matcap: !!W.matcap, - envMap: !!Ce, - envMapMode: Ce && Ce.mapping, - envMapCubeUVHeight: Be, - lightMap: !!W.lightMap, - aoMap: !!W.aoMap, - emissiveMap: !!W.emissiveMap, - bumpMap: !!W.bumpMap, - normalMap: !!W.normalMap, - objectSpaceNormalMap: W.normalMapType === hF, - tangentSpaceNormalMap: W.normalMapType === qS, - decodeVideoTexture: !!W.map && W.map.isVideoTexture === !0 && W.map.encoding === Mi, - clearcoat: rt, - clearcoatMap: rt && !!W.clearcoatMap, - clearcoatRoughnessMap: rt && !!W.clearcoatRoughnessMap, - clearcoatNormalMap: rt && !!W.clearcoatNormalMap, - iridescence: _t, - iridescenceMap: _t && !!W.iridescenceMap, - iridescenceThicknessMap: _t && !!W.iridescenceThicknessMap, - displacementMap: !!W.displacementMap, - roughnessMap: !!W.roughnessMap, - metalnessMap: !!W.metalnessMap, - specularMap: !!W.specularMap, - specularIntensityMap: !!W.specularIntensityMap, - specularColorMap: !!W.specularColorMap, - opaque: W.transparent === !1 && W.blending === L0, - alphaMap: !!W.alphaMap, - alphaTest: ot, - gradientMap: !!W.gradientMap, - sheen: W.sheen > 0, - sheenColorMap: !!W.sheenColorMap, - sheenRoughnessMap: !!W.sheenRoughnessMap, - transmission: W.transmission > 0, - transmissionMap: !!W.transmissionMap, - thicknessMap: !!W.thicknessMap, - combine: W.combine, - vertexTangents: !!W.normalMap && !!he.attributes.tangent, - vertexColors: W.vertexColors, - vertexAlphas: W.vertexColors === !0 && !!he.attributes.color && he.attributes.color.itemSize === 4, - vertexUvs: !!W.map || !!W.bumpMap || !!W.normalMap || !!W.specularMap || !!W.alphaMap || !!W.emissiveMap || !!W.roughnessMap || !!W.metalnessMap || !!W.clearcoatMap || !!W.clearcoatRoughnessMap || !!W.clearcoatNormalMap || !!W.iridescenceMap || !!W.iridescenceThicknessMap || !!W.displacementMap || !!W.transmissionMap || !!W.thicknessMap || !!W.specularIntensityMap || !!W.specularColorMap || !!W.sheenColorMap || !!W.sheenRoughnessMap, - uvsVertexOnly: !(!!W.map || !!W.bumpMap || !!W.normalMap || !!W.specularMap || !!W.alphaMap || !!W.emissiveMap || !!W.roughnessMap || !!W.metalnessMap || !!W.clearcoatNormalMap || !!W.iridescenceMap || !!W.iridescenceThicknessMap || W.transmission > 0 || !!W.transmissionMap || !!W.thicknessMap || !!W.specularIntensityMap || !!W.specularColorMap || W.sheen > 0 || !!W.sheenColorMap || !!W.sheenRoughnessMap) && !!W.displacementMap, - fog: !!Ee, - useFog: W.fog === !0, - fogExp2: Ee && Ee.isFogExp2, - flatShading: !!W.flatShading, - sizeAttenuation: W.sizeAttenuation, - logarithmicDepthBuffer: _, - skinning: le.isSkinnedMesh === !0, - morphTargets: he.morphAttributes.position !== void 0, - morphNormals: he.morphAttributes.normal !== void 0, - morphColors: he.morphAttributes.color !== void 0, - morphTargetsCount: ce, + outputEncoding: Ne === null ? a.outputEncoding : Ne.isXRRenderTarget === !0 ? Ne.texture.encoding : wv, + map: !!Y.map, + matcap: !!Y.matcap, + envMap: !!Re, + envMapMode: Re && Re.mapping, + envMapCubeUVHeight: He, + lightMap: !!Y.lightMap, + aoMap: !!Y.aoMap, + emissiveMap: !!Y.emissiveMap, + bumpMap: !!Y.bumpMap, + normalMap: !!Y.normalMap, + objectSpaceNormalMap: Y.normalMapType === CF, + tangentSpaceNormalMap: Y.normalMapType === K_, + decodeVideoTexture: !!Y.map && Y.map.isVideoTexture === !0 && Y.map.encoding === gi, + clearcoat: tt, + clearcoatMap: tt && !!Y.clearcoatMap, + clearcoatRoughnessMap: tt && !!Y.clearcoatRoughnessMap, + clearcoatNormalMap: tt && !!Y.clearcoatNormalMap, + iridescence: Tt, + iridescenceMap: Tt && !!Y.iridescenceMap, + iridescenceThicknessMap: Tt && !!Y.iridescenceThicknessMap, + displacementMap: !!Y.displacementMap, + roughnessMap: !!Y.roughnessMap, + metalnessMap: !!Y.metalnessMap, + specularMap: !!Y.specularMap, + specularIntensityMap: !!Y.specularIntensityMap, + specularColorMap: !!Y.specularColorMap, + opaque: Y.transparent === !1 && Y.blending === P0, + alphaMap: !!Y.alphaMap, + alphaTest: ct, + gradientMap: !!Y.gradientMap, + sheen: Y.sheen > 0, + sheenColorMap: !!Y.sheenColorMap, + sheenRoughnessMap: !!Y.sheenRoughnessMap, + transmission: Y.transmission > 0, + transmissionMap: !!Y.transmissionMap, + thicknessMap: !!Y.thicknessMap, + combine: Y.combine, + vertexTangents: !!Y.normalMap && !!me.attributes.tangent, + vertexColors: Y.vertexColors, + vertexAlphas: Y.vertexColors === !0 && !!me.attributes.color && me.attributes.color.itemSize === 4, + vertexUvs: !!Y.map || !!Y.bumpMap || !!Y.normalMap || !!Y.specularMap || !!Y.alphaMap || !!Y.emissiveMap || !!Y.roughnessMap || !!Y.metalnessMap || !!Y.clearcoatMap || !!Y.clearcoatRoughnessMap || !!Y.clearcoatNormalMap || !!Y.iridescenceMap || !!Y.iridescenceThicknessMap || !!Y.displacementMap || !!Y.transmissionMap || !!Y.thicknessMap || !!Y.specularIntensityMap || !!Y.specularColorMap || !!Y.sheenColorMap || !!Y.sheenRoughnessMap, + uvsVertexOnly: !(!!Y.map || !!Y.bumpMap || !!Y.normalMap || !!Y.specularMap || !!Y.alphaMap || !!Y.emissiveMap || !!Y.roughnessMap || !!Y.metalnessMap || !!Y.clearcoatNormalMap || !!Y.iridescenceMap || !!Y.iridescenceThicknessMap || Y.transmission > 0 || !!Y.transmissionMap || !!Y.thicknessMap || !!Y.specularIntensityMap || !!Y.specularColorMap || Y.sheen > 0 || !!Y.sheenColorMap || !!Y.sheenRoughnessMap) && !!Y.displacementMap, + fog: !!Me, + useFog: Y.fog === !0, + fogExp2: Me && Me.isFogExp2, + flatShading: !!Y.flatShading, + sizeAttenuation: Y.sizeAttenuation, + logarithmicDepthBuffer: w, + skinning: ue.isSkinnedMesh === !0, + morphTargets: me.morphAttributes.position !== void 0, + morphNormals: me.morphAttributes.normal !== void 0, + morphColors: me.morphAttributes.color !== void 0, + morphTargetsCount: he, morphTextureStride: ye, - numDirLights: ne.directional.length, - numPointLights: ne.point.length, - numSpotLights: ne.spot.length, - numRectAreaLights: ne.rectArea.length, - numHemiLights: ne.hemi.length, - numDirLightShadows: ne.directionalShadowMap.length, - numPointLightShadows: ne.pointShadowMap.length, - numSpotLightShadows: ne.spotShadowMap.length, + numDirLights: re.directional.length, + numPointLights: re.point.length, + numSpotLights: re.spot.length, + numRectAreaLights: re.rectArea.length, + numHemiLights: re.hemi.length, + numDirLightShadows: re.directionalShadowMap.length, + numPointLightShadows: re.pointShadowMap.length, + numSpotLightShadows: re.spotShadowMap.length, numClippingPlanes: l.numPlanes, numClipIntersection: l.numIntersection, - dithering: W.dithering, - shadowMapEnabled: a.shadowMap.enabled && ie.length > 0, + dithering: Y.dithering, + shadowMapEnabled: a.shadowMap.enabled && se.length > 0, shadowMapType: a.shadowMap.type, - toneMapping: W.toneMapped ? a.toneMapping : ig, + toneMapping: Y.toneMapped ? a.toneMapping : og, physicallyCorrectLights: a.physicallyCorrectLights, - premultipliedAlpha: W.premultipliedAlpha, - doubleSided: W.side === Pp, - flipSided: W.side === uf, - useDepthPacking: !!W.depthPacking, - depthPacking: W.depthPacking || 0, - index0AttributeName: W.index0AttributeName, - extensionDerivatives: W.extensions && W.extensions.derivatives, - extensionFragDepth: W.extensions && W.extensions.fragDepth, - extensionDrawBuffers: W.extensions && W.extensions.drawBuffers, - extensionShaderTextureLOD: W.extensions && W.extensions.shaderTextureLOD, - rendererExtensionFragDepth: S || r.has("EXT_frag_depth"), - rendererExtensionDrawBuffers: S || r.has("WEBGL_draw_buffers"), - rendererExtensionShaderTextureLod: S || r.has("EXT_shader_texture_lod"), - customProgramCacheKey: W.customProgramCacheKey() + premultipliedAlpha: Y.premultipliedAlpha, + doubleSided: Y.side === Yh, + flipSided: Y.side === cf, + useDepthPacking: !!Y.depthPacking, + depthPacking: Y.depthPacking || 0, + index0AttributeName: Y.index0AttributeName, + extensionDerivatives: Y.extensions && Y.extensions.derivatives, + extensionFragDepth: Y.extensions && Y.extensions.fragDepth, + extensionDrawBuffers: Y.extensions && Y.extensions.drawBuffers, + extensionShaderTextureLOD: Y.extensions && Y.extensions.shaderTextureLOD, + rendererExtensionFragDepth: _ || r.has("EXT_frag_depth"), + rendererExtensionDrawBuffers: _ || r.has("WEBGL_draw_buffers"), + rendererExtensionShaderTextureLod: _ || r.has("EXT_shader_texture_lod"), + customProgramCacheKey: Y.customProgramCacheKey() }; } - function U(W) { - const ne = []; - if (W.shaderID ? ne.push(W.shaderID) : (ne.push(W.customVertexShaderID), ne.push(W.customFragmentShaderID)), W.defines !== void 0) - for (const ie in W.defines) - ne.push(ie), ne.push(W.defines[ie]); - return W.isRawShaderMaterial === !1 && (B(ne, W), k(ne, W), ne.push(a.outputEncoding)), ne.push(W.customProgramCacheKey), ne.join(); - } - function B(W, ne) { - W.push(ne.precision), W.push(ne.outputEncoding), W.push(ne.envMapMode), W.push(ne.envMapCubeUVHeight), W.push(ne.combine), W.push(ne.vertexUvs), W.push(ne.fogExp2), W.push(ne.sizeAttenuation), W.push(ne.morphTargetsCount), W.push(ne.morphAttributeCount), W.push(ne.numDirLights), W.push(ne.numPointLights), W.push(ne.numSpotLights), W.push(ne.numHemiLights), W.push(ne.numRectAreaLights), W.push(ne.numDirLightShadows), W.push(ne.numPointLightShadows), W.push(ne.numSpotLightShadows), W.push(ne.shadowMapType), W.push(ne.toneMapping), W.push(ne.numClippingPlanes), W.push(ne.numClipIntersection), W.push(ne.depthPacking); - } - function k(W, ne) { - d.disableAll(), ne.isWebGL2 && d.enable(0), ne.supportsVertexTextures && d.enable(1), ne.instancing && d.enable(2), ne.instancingColor && d.enable(3), ne.map && d.enable(4), ne.matcap && d.enable(5), ne.envMap && d.enable(6), ne.lightMap && d.enable(7), ne.aoMap && d.enable(8), ne.emissiveMap && d.enable(9), ne.bumpMap && d.enable(10), ne.normalMap && d.enable(11), ne.objectSpaceNormalMap && d.enable(12), ne.tangentSpaceNormalMap && d.enable(13), ne.clearcoat && d.enable(14), ne.clearcoatMap && d.enable(15), ne.clearcoatRoughnessMap && d.enable(16), ne.clearcoatNormalMap && d.enable(17), ne.iridescence && d.enable(18), ne.iridescenceMap && d.enable(19), ne.iridescenceThicknessMap && d.enable(20), ne.displacementMap && d.enable(21), ne.specularMap && d.enable(22), ne.roughnessMap && d.enable(23), ne.metalnessMap && d.enable(24), ne.gradientMap && d.enable(25), ne.alphaMap && d.enable(26), ne.alphaTest && d.enable(27), ne.vertexColors && d.enable(28), ne.vertexAlphas && d.enable(29), ne.vertexUvs && d.enable(30), ne.vertexTangents && d.enable(31), ne.uvsVertexOnly && d.enable(32), ne.fog && d.enable(33), W.push(d.mask), d.disableAll(), ne.useFog && d.enable(0), ne.flatShading && d.enable(1), ne.logarithmicDepthBuffer && d.enable(2), ne.skinning && d.enable(3), ne.morphTargets && d.enable(4), ne.morphNormals && d.enable(5), ne.morphColors && d.enable(6), ne.premultipliedAlpha && d.enable(7), ne.shadowMapEnabled && d.enable(8), ne.physicallyCorrectLights && d.enable(9), ne.doubleSided && d.enable(10), ne.flipSided && d.enable(11), ne.useDepthPacking && d.enable(12), ne.dithering && d.enable(13), ne.specularIntensityMap && d.enable(14), ne.specularColorMap && d.enable(15), ne.transmission && d.enable(16), ne.transmissionMap && d.enable(17), ne.thicknessMap && d.enable(18), ne.sheen && d.enable(19), ne.sheenColorMap && d.enable(20), ne.sheenRoughnessMap && d.enable(21), ne.decodeVideoTexture && d.enable(22), ne.opaque && d.enable(23), W.push(d.mask); - } - function V(W) { - const ne = D[W.type]; - let ie; - if (ne) { - const fe = Gh[ne]; - ie = $M.clone(fe.uniforms); + function U(Y) { + const re = []; + if (Y.shaderID ? re.push(Y.shaderID) : (re.push(Y.customVertexShaderID), re.push(Y.customFragmentShaderID)), Y.defines !== void 0) + for (const se in Y.defines) + re.push(se), re.push(Y.defines[se]); + return Y.isRawShaderMaterial === !1 && (H(re, Y), I(re, Y), re.push(a.outputEncoding)), re.push(Y.customProgramCacheKey), re.join(); + } + function H(Y, re) { + Y.push(re.precision), Y.push(re.outputEncoding), Y.push(re.envMapMode), Y.push(re.envMapCubeUVHeight), Y.push(re.combine), Y.push(re.vertexUvs), Y.push(re.fogExp2), Y.push(re.sizeAttenuation), Y.push(re.morphTargetsCount), Y.push(re.morphAttributeCount), Y.push(re.numDirLights), Y.push(re.numPointLights), Y.push(re.numSpotLights), Y.push(re.numHemiLights), Y.push(re.numRectAreaLights), Y.push(re.numDirLightShadows), Y.push(re.numPointLightShadows), Y.push(re.numSpotLightShadows), Y.push(re.shadowMapType), Y.push(re.toneMapping), Y.push(re.numClippingPlanes), Y.push(re.numClipIntersection), Y.push(re.depthPacking); + } + function I(Y, re) { + d.disableAll(), re.isWebGL2 && d.enable(0), re.supportsVertexTextures && d.enable(1), re.instancing && d.enable(2), re.instancingColor && d.enable(3), re.map && d.enable(4), re.matcap && d.enable(5), re.envMap && d.enable(6), re.lightMap && d.enable(7), re.aoMap && d.enable(8), re.emissiveMap && d.enable(9), re.bumpMap && d.enable(10), re.normalMap && d.enable(11), re.objectSpaceNormalMap && d.enable(12), re.tangentSpaceNormalMap && d.enable(13), re.clearcoat && d.enable(14), re.clearcoatMap && d.enable(15), re.clearcoatRoughnessMap && d.enable(16), re.clearcoatNormalMap && d.enable(17), re.iridescence && d.enable(18), re.iridescenceMap && d.enable(19), re.iridescenceThicknessMap && d.enable(20), re.displacementMap && d.enable(21), re.specularMap && d.enable(22), re.roughnessMap && d.enable(23), re.metalnessMap && d.enable(24), re.gradientMap && d.enable(25), re.alphaMap && d.enable(26), re.alphaTest && d.enable(27), re.vertexColors && d.enable(28), re.vertexAlphas && d.enable(29), re.vertexUvs && d.enable(30), re.vertexTangents && d.enable(31), re.uvsVertexOnly && d.enable(32), re.fog && d.enable(33), Y.push(d.mask), d.disableAll(), re.useFog && d.enable(0), re.flatShading && d.enable(1), re.logarithmicDepthBuffer && d.enable(2), re.skinning && d.enable(3), re.morphTargets && d.enable(4), re.morphNormals && d.enable(5), re.morphColors && d.enable(6), re.premultipliedAlpha && d.enable(7), re.shadowMapEnabled && d.enable(8), re.physicallyCorrectLights && d.enable(9), re.doubleSided && d.enable(10), re.flipSided && d.enable(11), re.useDepthPacking && d.enable(12), re.dithering && d.enable(13), re.specularIntensityMap && d.enable(14), re.specularColorMap && d.enable(15), re.transmission && d.enable(16), re.transmissionMap && d.enable(17), re.thicknessMap && d.enable(18), re.sheen && d.enable(19), re.sheenColorMap && d.enable(20), re.sheenRoughnessMap && d.enable(21), re.decodeVideoTexture && d.enable(22), re.opaque && d.enable(23), Y.push(d.mask); + } + function G(Y) { + const re = D[Y.type]; + let se; + if (re) { + const ce = Wh[re]; + se = $M.clone(ce.uniforms); } else - ie = W.uniforms; - return ie; - } - function I(W, ne) { - let ie; - for (let fe = 0, le = m.length; fe < le; fe++) { - const Ee = m[fe]; - if (Ee.cacheKey === ne) { - ie = Ee, ++ie.usedTimes; + se = Y.uniforms; + return se; + } + function B(Y, re) { + let se; + for (let ce = 0, ue = g.length; ce < ue; ce++) { + const Me = g[ce]; + if (Me.cacheKey === re) { + se = Me, ++se.usedTimes; break; } } - return ie === void 0 && (ie = new V8(a, ne, W, o), m.push(ie)), ie; + return se === void 0 && (se = new eW(a, re, Y, s), g.push(se)), se; } - function X(W) { - if (--W.usedTimes === 0) { - const ne = m.indexOf(W); - m[ne] = m[m.length - 1], m.pop(), W.destroy(); + function Q(Y) { + if (--Y.usedTimes === 0) { + const re = g.indexOf(Y); + g[re] = g[g.length - 1], g.pop(), Y.destroy(); } } - function J(W) { - h.remove(W); + function K(Y) { + p.remove(Y); } - function $() { - h.dispose(); + function te() { + p.dispose(); } return { - getParameters: P, + getParameters: O, getProgramCacheKey: U, - getUniforms: V, - acquireProgram: I, - releaseProgram: X, - releaseShaderCache: J, - programs: m, - dispose: $ + getUniforms: G, + acquireProgram: B, + releaseProgram: Q, + releaseShaderCache: K, + programs: g, + dispose: te }; } -function X8() { +function aW() { let a = /* @__PURE__ */ new WeakMap(); - function e(o) { - let l = a.get(o); - return l === void 0 && (l = {}, a.set(o, l)), l; + function e(s) { + let l = a.get(s); + return l === void 0 && (l = {}, a.set(s, l)), l; } - function t(o) { - a.delete(o); + function t(s) { + a.delete(s); } - function r(o, l, d) { - a.get(o)[l] = d; + function r(s, l, d) { + a.get(s)[l] = d; } function i() { a = /* @__PURE__ */ new WeakMap(); @@ -10035,67 +10035,67 @@ function X8() { dispose: i }; } -function q8(a, e) { +function sW(a, e) { return a.groupOrder !== e.groupOrder ? a.groupOrder - e.groupOrder : a.renderOrder !== e.renderOrder ? a.renderOrder - e.renderOrder : a.material.id !== e.material.id ? a.material.id - e.material.id : a.z !== e.z ? a.z - e.z : a.id - e.id; } -function aU(a, e) { +function lU(a, e) { return a.groupOrder !== e.groupOrder ? a.groupOrder - e.groupOrder : a.renderOrder !== e.renderOrder ? a.renderOrder - e.renderOrder : a.z !== e.z ? e.z - a.z : a.id - e.id; } -function sU() { +function uU() { const a = []; let e = 0; const t = [], r = [], i = []; - function o() { + function s() { e = 0, t.length = 0, r.length = 0, i.length = 0; } - function l(_, T, C, D, P, U) { - let B = a[e]; - return B === void 0 ? (B = { - id: _.id, - object: _, + function l(w, T, R, D, O, U) { + let H = a[e]; + return H === void 0 ? (H = { + id: w.id, + object: w, geometry: T, - material: C, + material: R, groupOrder: D, - renderOrder: _.renderOrder, - z: P, + renderOrder: w.renderOrder, + z: O, group: U - }, a[e] = B) : (B.id = _.id, B.object = _, B.geometry = T, B.material = C, B.groupOrder = D, B.renderOrder = _.renderOrder, B.z = P, B.group = U), e++, B; + }, a[e] = H) : (H.id = w.id, H.object = w, H.geometry = T, H.material = R, H.groupOrder = D, H.renderOrder = w.renderOrder, H.z = O, H.group = U), e++, H; } - function d(_, T, C, D, P, U) { - const B = l(_, T, C, D, P, U); - C.transmission > 0 ? r.push(B) : C.transparent === !0 ? i.push(B) : t.push(B); + function d(w, T, R, D, O, U) { + const H = l(w, T, R, D, O, U); + R.transmission > 0 ? r.push(H) : R.transparent === !0 ? i.push(H) : t.push(H); } - function h(_, T, C, D, P, U) { - const B = l(_, T, C, D, P, U); - C.transmission > 0 ? r.unshift(B) : C.transparent === !0 ? i.unshift(B) : t.unshift(B); + function p(w, T, R, D, O, U) { + const H = l(w, T, R, D, O, U); + R.transmission > 0 ? r.unshift(H) : R.transparent === !0 ? i.unshift(H) : t.unshift(H); } - function m(_, T) { - t.length > 1 && t.sort(_ || q8), r.length > 1 && r.sort(T || aU), i.length > 1 && i.sort(T || aU); + function g(w, T) { + t.length > 1 && t.sort(w || sW), r.length > 1 && r.sort(T || lU), i.length > 1 && i.sort(T || lU); } - function S() { - for (let _ = e, T = a.length; _ < T; _++) { - const C = a[_]; - if (C.id === null) + function _() { + for (let w = e, T = a.length; w < T; w++) { + const R = a[w]; + if (R.id === null) break; - C.id = null, C.object = null, C.geometry = null, C.material = null, C.group = null; + R.id = null, R.object = null, R.geometry = null, R.material = null, R.group = null; } } return { opaque: t, transmissive: r, transparent: i, - init: o, + init: s, push: d, - unshift: h, - finish: S, - sort: m + unshift: p, + finish: _, + sort: g }; } -function Q8() { +function oW() { let a = /* @__PURE__ */ new WeakMap(); function e(r, i) { - let o; - return a.has(r) === !1 ? (o = new sU(), a.set(r, [o])) : i >= a.get(r).length ? (o = new sU(), a.get(r).push(o)) : o = a.get(r)[i], o; + let s; + return a.has(r) === !1 ? (s = new uU(), a.set(r, [s])) : i >= a.get(r).length ? (s = new uU(), a.get(r).push(s)) : s = a.get(r)[i], s; } function t() { a = /* @__PURE__ */ new WeakMap(); @@ -10105,7 +10105,7 @@ function Q8() { dispose: t }; } -function Z8() { +function lW() { const a = {}; return { get: function(e) { @@ -10115,15 +10115,15 @@ function Z8() { switch (e.type) { case "DirectionalLight": t = { - direction: new ve(), - color: new Pn() + direction: new ge(), + color: new Un() }; break; case "SpotLight": t = { - position: new ve(), - direction: new ve(), - color: new Pn(), + position: new ge(), + direction: new ge(), + color: new Un(), distance: 0, coneCos: 0, penumbraCos: 0, @@ -10132,25 +10132,25 @@ function Z8() { break; case "PointLight": t = { - position: new ve(), - color: new Pn(), + position: new ge(), + color: new Un(), distance: 0, decay: 0 }; break; case "HemisphereLight": t = { - direction: new ve(), - skyColor: new Pn(), - groundColor: new Pn() + direction: new ge(), + skyColor: new Un(), + groundColor: new Un() }; break; case "RectAreaLight": t = { - color: new Pn(), - position: new ve(), - halfWidth: new ve(), - halfHeight: new ve() + color: new Un(), + position: new ge(), + halfWidth: new ge(), + halfHeight: new ge() }; break; } @@ -10158,7 +10158,7 @@ function Z8() { } }; } -function J8() { +function uW() { const a = {}; return { get: function(e) { @@ -10171,7 +10171,7 @@ function J8() { shadowBias: 0, shadowNormalBias: 0, shadowRadius: 1, - shadowMapSize: new Ft() + shadowMapSize: new zt() }; break; case "SpotLight": @@ -10179,7 +10179,7 @@ function J8() { shadowBias: 0, shadowNormalBias: 0, shadowRadius: 1, - shadowMapSize: new Ft() + shadowMapSize: new zt() }; break; case "PointLight": @@ -10187,7 +10187,7 @@ function J8() { shadowBias: 0, shadowNormalBias: 0, shadowRadius: 1, - shadowMapSize: new Ft(), + shadowMapSize: new zt(), shadowCameraNear: 1, shadowCameraFar: 1e3 }; @@ -10197,12 +10197,12 @@ function J8() { } }; } -let K8 = 0; -function $8(a, e) { +let cW = 0; +function fW(a, e) { return (e.castShadow ? 1 : 0) - (a.castShadow ? 1 : 0); } -function eW(a, e) { - const t = new Z8(), r = J8(), i = { +function dW(a, e) { + const t = new lW(), r = uW(), i = { version: 0, hash: { directionalLength: -1, @@ -10233,120 +10233,120 @@ function eW(a, e) { pointShadowMatrix: [], hemi: [] }; - for (let S = 0; S < 9; S++) - i.probe.push(new ve()); - const o = new ve(), l = new si(), d = new si(); - function h(S, _) { - let T = 0, C = 0, D = 0; - for (let ne = 0; ne < 9; ne++) - i.probe[ne].set(0, 0, 0); - let P = 0, U = 0, B = 0, k = 0, V = 0, I = 0, X = 0, J = 0; - S.sort($8); - const $ = _ !== !0 ? Math.PI : 1; - for (let ne = 0, ie = S.length; ne < ie; ne++) { - const fe = S[ne], le = fe.color, Ee = fe.intensity, he = fe.distance, Fe = fe.shadow && fe.shadow.map ? fe.shadow.map.texture : null; - if (fe.isAmbientLight) - T += le.r * Ee * $, C += le.g * Ee * $, D += le.b * Ee * $; - else if (fe.isLightProbe) - for (let Ce = 0; Ce < 9; Ce++) - i.probe[Ce].addScaledVector(fe.sh.coefficients[Ce], Ee); - else if (fe.isDirectionalLight) { - const Ce = t.get(fe); - if (Ce.color.copy(fe.color).multiplyScalar(fe.intensity * $), fe.castShadow) { - const Be = fe.shadow, pe = r.get(fe); - pe.shadowBias = Be.bias, pe.shadowNormalBias = Be.normalBias, pe.shadowRadius = Be.radius, pe.shadowMapSize = Be.mapSize, i.directionalShadow[P] = pe, i.directionalShadowMap[P] = Fe, i.directionalShadowMatrix[P] = fe.shadow.matrix, I++; - } - i.directional[P] = Ce, P++; - } else if (fe.isSpotLight) { - const Ce = t.get(fe); - if (Ce.position.setFromMatrixPosition(fe.matrixWorld), Ce.color.copy(le).multiplyScalar(Ee * $), Ce.distance = he, Ce.coneCos = Math.cos(fe.angle), Ce.penumbraCos = Math.cos(fe.angle * (1 - fe.penumbra)), Ce.decay = fe.decay, fe.castShadow) { - const Be = fe.shadow, pe = r.get(fe); - pe.shadowBias = Be.bias, pe.shadowNormalBias = Be.normalBias, pe.shadowRadius = Be.radius, pe.shadowMapSize = Be.mapSize, i.spotShadow[B] = pe, i.spotShadowMap[B] = Fe, i.spotShadowMatrix[B] = fe.shadow.matrix, J++; - } - i.spot[B] = Ce, B++; - } else if (fe.isRectAreaLight) { - const Ce = t.get(fe); - Ce.color.copy(le).multiplyScalar(Ee), Ce.halfWidth.set(fe.width * 0.5, 0, 0), Ce.halfHeight.set(0, fe.height * 0.5, 0), i.rectArea[k] = Ce, k++; - } else if (fe.isPointLight) { - const Ce = t.get(fe); - if (Ce.color.copy(fe.color).multiplyScalar(fe.intensity * $), Ce.distance = fe.distance, Ce.decay = fe.decay, fe.castShadow) { - const Be = fe.shadow, pe = r.get(fe); - pe.shadowBias = Be.bias, pe.shadowNormalBias = Be.normalBias, pe.shadowRadius = Be.radius, pe.shadowMapSize = Be.mapSize, pe.shadowCameraNear = Be.camera.near, pe.shadowCameraFar = Be.camera.far, i.pointShadow[U] = pe, i.pointShadowMap[U] = Fe, i.pointShadowMatrix[U] = fe.shadow.matrix, X++; - } - i.point[U] = Ce, U++; - } else if (fe.isHemisphereLight) { - const Ce = t.get(fe); - Ce.skyColor.copy(fe.color).multiplyScalar(Ee * $), Ce.groundColor.copy(fe.groundColor).multiplyScalar(Ee * $), i.hemi[V] = Ce, V++; - } - } - k > 0 && (e.isWebGL2 || a.has("OES_texture_float_linear") === !0 ? (i.rectAreaLTC1 = Fn.LTC_FLOAT_1, i.rectAreaLTC2 = Fn.LTC_FLOAT_2) : a.has("OES_texture_half_float_linear") === !0 ? (i.rectAreaLTC1 = Fn.LTC_HALF_1, i.rectAreaLTC2 = Fn.LTC_HALF_2) : console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")), i.ambient[0] = T, i.ambient[1] = C, i.ambient[2] = D; - const W = i.hash; - (W.directionalLength !== P || W.pointLength !== U || W.spotLength !== B || W.rectAreaLength !== k || W.hemiLength !== V || W.numDirectionalShadows !== I || W.numPointShadows !== X || W.numSpotShadows !== J) && (i.directional.length = P, i.spot.length = B, i.rectArea.length = k, i.point.length = U, i.hemi.length = V, i.directionalShadow.length = I, i.directionalShadowMap.length = I, i.pointShadow.length = X, i.pointShadowMap.length = X, i.spotShadow.length = J, i.spotShadowMap.length = J, i.directionalShadowMatrix.length = I, i.pointShadowMatrix.length = X, i.spotShadowMatrix.length = J, W.directionalLength = P, W.pointLength = U, W.spotLength = B, W.rectAreaLength = k, W.hemiLength = V, W.numDirectionalShadows = I, W.numPointShadows = X, W.numSpotShadows = J, i.version = K8++); - } - function m(S, _) { - let T = 0, C = 0, D = 0, P = 0, U = 0; - const B = _.matrixWorldInverse; - for (let k = 0, V = S.length; k < V; k++) { - const I = S[k]; - if (I.isDirectionalLight) { - const X = i.directional[T]; - X.direction.setFromMatrixPosition(I.matrixWorld), o.setFromMatrixPosition(I.target.matrixWorld), X.direction.sub(o), X.direction.transformDirection(B), T++; - } else if (I.isSpotLight) { - const X = i.spot[D]; - X.position.setFromMatrixPosition(I.matrixWorld), X.position.applyMatrix4(B), X.direction.setFromMatrixPosition(I.matrixWorld), o.setFromMatrixPosition(I.target.matrixWorld), X.direction.sub(o), X.direction.transformDirection(B), D++; - } else if (I.isRectAreaLight) { - const X = i.rectArea[P]; - X.position.setFromMatrixPosition(I.matrixWorld), X.position.applyMatrix4(B), d.identity(), l.copy(I.matrixWorld), l.premultiply(B), d.extractRotation(l), X.halfWidth.set(I.width * 0.5, 0, 0), X.halfHeight.set(0, I.height * 0.5, 0), X.halfWidth.applyMatrix4(d), X.halfHeight.applyMatrix4(d), P++; - } else if (I.isPointLight) { - const X = i.point[C]; - X.position.setFromMatrixPosition(I.matrixWorld), X.position.applyMatrix4(B), C++; - } else if (I.isHemisphereLight) { - const X = i.hemi[U]; - X.direction.setFromMatrixPosition(I.matrixWorld), X.direction.transformDirection(B), U++; + for (let _ = 0; _ < 9; _++) + i.probe.push(new ge()); + const s = new ge(), l = new Kr(), d = new Kr(); + function p(_, w) { + let T = 0, R = 0, D = 0; + for (let re = 0; re < 9; re++) + i.probe[re].set(0, 0, 0); + let O = 0, U = 0, H = 0, I = 0, G = 0, B = 0, Q = 0, K = 0; + _.sort(fW); + const te = w !== !0 ? Math.PI : 1; + for (let re = 0, se = _.length; re < se; re++) { + const ce = _[re], ue = ce.color, Me = ce.intensity, me = ce.distance, De = ce.shadow && ce.shadow.map ? ce.shadow.map.texture : null; + if (ce.isAmbientLight) + T += ue.r * Me * te, R += ue.g * Me * te, D += ue.b * Me * te; + else if (ce.isLightProbe) + for (let Re = 0; Re < 9; Re++) + i.probe[Re].addScaledVector(ce.sh.coefficients[Re], Me); + else if (ce.isDirectionalLight) { + const Re = t.get(ce); + if (Re.color.copy(ce.color).multiplyScalar(ce.intensity * te), ce.castShadow) { + const He = ce.shadow, ve = r.get(ce); + ve.shadowBias = He.bias, ve.shadowNormalBias = He.normalBias, ve.shadowRadius = He.radius, ve.shadowMapSize = He.mapSize, i.directionalShadow[O] = ve, i.directionalShadowMap[O] = De, i.directionalShadowMatrix[O] = ce.shadow.matrix, B++; + } + i.directional[O] = Re, O++; + } else if (ce.isSpotLight) { + const Re = t.get(ce); + if (Re.position.setFromMatrixPosition(ce.matrixWorld), Re.color.copy(ue).multiplyScalar(Me * te), Re.distance = me, Re.coneCos = Math.cos(ce.angle), Re.penumbraCos = Math.cos(ce.angle * (1 - ce.penumbra)), Re.decay = ce.decay, ce.castShadow) { + const He = ce.shadow, ve = r.get(ce); + ve.shadowBias = He.bias, ve.shadowNormalBias = He.normalBias, ve.shadowRadius = He.radius, ve.shadowMapSize = He.mapSize, i.spotShadow[H] = ve, i.spotShadowMap[H] = De, i.spotShadowMatrix[H] = ce.shadow.matrix, K++; + } + i.spot[H] = Re, H++; + } else if (ce.isRectAreaLight) { + const Re = t.get(ce); + Re.color.copy(ue).multiplyScalar(Me), Re.halfWidth.set(ce.width * 0.5, 0, 0), Re.halfHeight.set(0, ce.height * 0.5, 0), i.rectArea[I] = Re, I++; + } else if (ce.isPointLight) { + const Re = t.get(ce); + if (Re.color.copy(ce.color).multiplyScalar(ce.intensity * te), Re.distance = ce.distance, Re.decay = ce.decay, ce.castShadow) { + const He = ce.shadow, ve = r.get(ce); + ve.shadowBias = He.bias, ve.shadowNormalBias = He.normalBias, ve.shadowRadius = He.radius, ve.shadowMapSize = He.mapSize, ve.shadowCameraNear = He.camera.near, ve.shadowCameraFar = He.camera.far, i.pointShadow[U] = ve, i.pointShadowMap[U] = De, i.pointShadowMatrix[U] = ce.shadow.matrix, Q++; + } + i.point[U] = Re, U++; + } else if (ce.isHemisphereLight) { + const Re = t.get(ce); + Re.skyColor.copy(ce.color).multiplyScalar(Me * te), Re.groundColor.copy(ce.groundColor).multiplyScalar(Me * te), i.hemi[G] = Re, G++; + } + } + I > 0 && (e.isWebGL2 || a.has("OES_texture_float_linear") === !0 ? (i.rectAreaLTC1 = In.LTC_FLOAT_1, i.rectAreaLTC2 = In.LTC_FLOAT_2) : a.has("OES_texture_half_float_linear") === !0 ? (i.rectAreaLTC1 = In.LTC_HALF_1, i.rectAreaLTC2 = In.LTC_HALF_2) : console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")), i.ambient[0] = T, i.ambient[1] = R, i.ambient[2] = D; + const Y = i.hash; + (Y.directionalLength !== O || Y.pointLength !== U || Y.spotLength !== H || Y.rectAreaLength !== I || Y.hemiLength !== G || Y.numDirectionalShadows !== B || Y.numPointShadows !== Q || Y.numSpotShadows !== K) && (i.directional.length = O, i.spot.length = H, i.rectArea.length = I, i.point.length = U, i.hemi.length = G, i.directionalShadow.length = B, i.directionalShadowMap.length = B, i.pointShadow.length = Q, i.pointShadowMap.length = Q, i.spotShadow.length = K, i.spotShadowMap.length = K, i.directionalShadowMatrix.length = B, i.pointShadowMatrix.length = Q, i.spotShadowMatrix.length = K, Y.directionalLength = O, Y.pointLength = U, Y.spotLength = H, Y.rectAreaLength = I, Y.hemiLength = G, Y.numDirectionalShadows = B, Y.numPointShadows = Q, Y.numSpotShadows = K, i.version = cW++); + } + function g(_, w) { + let T = 0, R = 0, D = 0, O = 0, U = 0; + const H = w.matrixWorldInverse; + for (let I = 0, G = _.length; I < G; I++) { + const B = _[I]; + if (B.isDirectionalLight) { + const Q = i.directional[T]; + Q.direction.setFromMatrixPosition(B.matrixWorld), s.setFromMatrixPosition(B.target.matrixWorld), Q.direction.sub(s), Q.direction.transformDirection(H), T++; + } else if (B.isSpotLight) { + const Q = i.spot[D]; + Q.position.setFromMatrixPosition(B.matrixWorld), Q.position.applyMatrix4(H), Q.direction.setFromMatrixPosition(B.matrixWorld), s.setFromMatrixPosition(B.target.matrixWorld), Q.direction.sub(s), Q.direction.transformDirection(H), D++; + } else if (B.isRectAreaLight) { + const Q = i.rectArea[O]; + Q.position.setFromMatrixPosition(B.matrixWorld), Q.position.applyMatrix4(H), d.identity(), l.copy(B.matrixWorld), l.premultiply(H), d.extractRotation(l), Q.halfWidth.set(B.width * 0.5, 0, 0), Q.halfHeight.set(0, B.height * 0.5, 0), Q.halfWidth.applyMatrix4(d), Q.halfHeight.applyMatrix4(d), O++; + } else if (B.isPointLight) { + const Q = i.point[R]; + Q.position.setFromMatrixPosition(B.matrixWorld), Q.position.applyMatrix4(H), R++; + } else if (B.isHemisphereLight) { + const Q = i.hemi[U]; + Q.direction.setFromMatrixPosition(B.matrixWorld), Q.direction.transformDirection(H), U++; } } } return { - setup: h, - setupView: m, + setup: p, + setupView: g, state: i }; } -function oU(a, e) { - const t = new eW(a, e), r = [], i = []; - function o() { +function cU(a, e) { + const t = new dW(a, e), r = [], i = []; + function s() { r.length = 0, i.length = 0; } - function l(_) { - r.push(_); + function l(w) { + r.push(w); } - function d(_) { - i.push(_); + function d(w) { + i.push(w); } - function h(_) { - t.setup(r, _); + function p(w) { + t.setup(r, w); } - function m(_) { - t.setupView(r, _); + function g(w) { + t.setupView(r, w); } return { - init: o, + init: s, state: { lightsArray: r, shadowsArray: i, lights: t }, - setupLights: h, - setupLightsView: m, + setupLights: p, + setupLightsView: g, pushLight: l, pushShadow: d }; } -function tW(a, e) { +function hW(a, e) { let t = /* @__PURE__ */ new WeakMap(); - function r(o, l = 0) { + function r(s, l = 0) { let d; - return t.has(o) === !1 ? (d = new oU(a, e), t.set(o, [d])) : l >= t.get(o).length ? (d = new oU(a, e), t.get(o).push(d)) : d = t.get(o)[l], d; + return t.has(s) === !1 ? (d = new cU(a, e), t.set(s, [d])) : l >= t.get(s).length ? (d = new cU(a, e), t.get(s).push(d)) : d = t.get(s)[l], d; } function i() { t = /* @__PURE__ */ new WeakMap(); @@ -10356,7 +10356,7 @@ function tW(a, e) { dispose: i }; } -class tT extends ff { +class tT extends hf { constructor(e) { super(), this.isMeshDepthMaterial = !0, this.type = "MeshDepthMaterial", this.depthPacking = o1, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.setValues(e); } @@ -10364,17 +10364,17 @@ class tT extends ff { return super.copy(e), this.depthPacking = e.depthPacking, this.map = e.map, this.alphaMap = e.alphaMap, this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this; } } -class HC extends ff { +class VC extends hf { constructor(e) { - super(), this.isMeshDistanceMaterial = !0, this.type = "MeshDistanceMaterial", this.referencePosition = new ve(), this.nearDistance = 1, this.farDistance = 1e3, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.setValues(e); + super(), this.isMeshDistanceMaterial = !0, this.type = "MeshDistanceMaterial", this.referencePosition = new ge(), this.nearDistance = 1, this.farDistance = 1e3, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.setValues(e); } copy(e) { return super.copy(e), this.referencePosition.copy(e.referencePosition), this.nearDistance = e.nearDistance, this.farDistance = e.farDistance, this.map = e.map, this.alphaMap = e.alphaMap, this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this; } } -const nW = `void main() { +const pW = `void main() { gl_Position = vec4( position, 1.0 ); -}`, rW = `uniform sampler2D shadow_pass; +}`, mW = `uniform sampler2D shadow_pass; uniform vec2 resolution; uniform float radius; #include @@ -10401,162 +10401,162 @@ void main() { float std_dev = sqrt( squared_mean - mean * mean ); gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); }`; -function iW(a, e, t) { - let r = new IC(); - const i = new Ft(), o = new Ft(), l = new la(), d = new tT({ depthPacking: Jb }), h = new HC(), m = {}, S = t.maxTextureSize, _ = { 0: uf, 1: py, 2: Pp }, T = new wu({ +function vW(a, e, t) { + let r = new BC(); + const i = new zt(), s = new zt(), l = new ra(), d = new tT({ depthPacking: Jw }), p = new VC(), g = {}, _ = t.maxTextureSize, w = { 0: cf, 1: vy, 2: Yh }, T = new Mu({ defines: { VSM_SAMPLES: 8 }, uniforms: { shadow_pass: { value: null }, - resolution: { value: new Ft() }, + resolution: { value: new zt() }, radius: { value: 4 } }, - vertexShader: nW, - fragmentShader: rW - }), C = T.clone(); - C.defines.HORIZONTAL_PASS = 1; - const D = new ui(); + vertexShader: pW, + fragmentShader: mW + }), R = T.clone(); + R.defines.HORIZONTAL_PASS = 1; + const D = new oi(); D.setAttribute( "position", - new os( + new ls( new Float32Array([-1, -1, 0.5, 3, -1, 0.5, -1, 3, 0.5]), 3 ) ); - const P = new zn(D, T), U = this; - this.enabled = !1, this.autoUpdate = !0, this.needsUpdate = !1, this.type = B3, this.render = function(I, X, J) { - if (U.enabled === !1 || U.autoUpdate === !1 && U.needsUpdate === !1 || I.length === 0) + const O = new Fn(D, T), U = this; + this.enabled = !1, this.autoUpdate = !0, this.needsUpdate = !1, this.type = UC, this.render = function(B, Q, K) { + if (U.enabled === !1 || U.autoUpdate === !1 && U.needsUpdate === !1 || B.length === 0) return; - const $ = a.getRenderTarget(), W = a.getActiveCubeFace(), ne = a.getActiveMipmapLevel(), ie = a.state; - ie.setBlending(cf), ie.buffers.color.setClear(1, 1, 1, 1), ie.buffers.depth.setTest(!0), ie.setScissorTest(!1); - for (let fe = 0, le = I.length; fe < le; fe++) { - const Ee = I[fe], he = Ee.shadow; - if (he === void 0) { - console.warn("THREE.WebGLShadowMap:", Ee, "has no shadow."); + const te = a.getRenderTarget(), Y = a.getActiveCubeFace(), re = a.getActiveMipmapLevel(), se = a.state; + se.setBlending(ff), se.buffers.color.setClear(1, 1, 1, 1), se.buffers.depth.setTest(!0), se.setScissorTest(!1); + for (let ce = 0, ue = B.length; ce < ue; ce++) { + const Me = B[ce], me = Me.shadow; + if (me === void 0) { + console.warn("THREE.WebGLShadowMap:", Me, "has no shadow."); continue; } - if (he.autoUpdate === !1 && he.needsUpdate === !1) + if (me.autoUpdate === !1 && me.needsUpdate === !1) continue; - i.copy(he.mapSize); - const Fe = he.getFrameExtents(); - if (i.multiply(Fe), o.copy(he.mapSize), (i.x > S || i.y > S) && (i.x > S && (o.x = Math.floor(S / Fe.x), i.x = o.x * Fe.x, he.mapSize.x = o.x), i.y > S && (o.y = Math.floor(S / Fe.y), i.y = o.y * Fe.y, he.mapSize.y = o.y)), he.map === null) { - const Be = this.type !== Bb ? { minFilter: fo, magFilter: fo } : {}; - he.map = new po(i.x, i.y, Be), he.map.texture.name = Ee.name + ".shadowMap", he.camera.updateProjectionMatrix(); - } - a.setRenderTarget(he.map), a.clear(); - const Ce = he.getViewportCount(); - for (let Be = 0; Be < Ce; Be++) { - const pe = he.getViewport(Be); + i.copy(me.mapSize); + const De = me.getFrameExtents(); + if (i.multiply(De), s.copy(me.mapSize), (i.x > _ || i.y > _) && (i.x > _ && (s.x = Math.floor(_ / De.x), i.x = s.x * De.x, me.mapSize.x = s.x), i.y > _ && (s.y = Math.floor(_ / De.y), i.y = s.y * De.y, me.mapSize.y = s.y)), me.map === null) { + const He = this.type !== U_ ? { minFilter: fo, magFilter: fo } : {}; + me.map = new po(i.x, i.y, He), me.map.texture.name = Me.name + ".shadowMap", me.camera.updateProjectionMatrix(); + } + a.setRenderTarget(me.map), a.clear(); + const Re = me.getViewportCount(); + for (let He = 0; He < Re; He++) { + const ve = me.getViewport(He); l.set( - o.x * pe.x, - o.y * pe.y, - o.x * pe.z, - o.y * pe.w - ), ie.viewport(l), he.updateMatrices(Ee, Be), r = he.getFrustum(), V(X, J, he.camera, Ee, this.type); + s.x * ve.x, + s.y * ve.y, + s.x * ve.z, + s.y * ve.w + ), se.viewport(l), me.updateMatrices(Me, He), r = me.getFrustum(), G(Q, K, me.camera, Me, this.type); } - he.isPointLightShadow !== !0 && this.type === Bb && B(he, J), he.needsUpdate = !1; + me.isPointLightShadow !== !0 && this.type === U_ && H(me, K), me.needsUpdate = !1; } - U.needsUpdate = !1, a.setRenderTarget($, W, ne); + U.needsUpdate = !1, a.setRenderTarget(te, Y, re); }; - function B(I, X) { - const J = e.update(P); - T.defines.VSM_SAMPLES !== I.blurSamples && (T.defines.VSM_SAMPLES = I.blurSamples, C.defines.VSM_SAMPLES = I.blurSamples, T.needsUpdate = !0, C.needsUpdate = !0), I.mapPass === null && (I.mapPass = new po(i.x, i.y)), T.uniforms.shadow_pass.value = I.map.texture, T.uniforms.resolution.value = I.mapSize, T.uniforms.radius.value = I.radius, a.setRenderTarget(I.mapPass), a.clear(), a.renderBufferDirect(X, null, J, T, P, null), C.uniforms.shadow_pass.value = I.mapPass.texture, C.uniforms.resolution.value = I.mapSize, C.uniforms.radius.value = I.radius, a.setRenderTarget(I.map), a.clear(), a.renderBufferDirect(X, null, J, C, P, null); - } - function k(I, X, J, $, W, ne) { - let ie = null; - const fe = J.isPointLight === !0 ? I.customDistanceMaterial : I.customDepthMaterial; - if (fe !== void 0 ? ie = fe : ie = J.isPointLight === !0 ? h : d, a.localClippingEnabled && X.clipShadows === !0 && Array.isArray(X.clippingPlanes) && X.clippingPlanes.length !== 0 || X.displacementMap && X.displacementScale !== 0 || X.alphaMap && X.alphaTest > 0) { - const le = ie.uuid, Ee = X.uuid; - let he = m[le]; - he === void 0 && (he = {}, m[le] = he); - let Fe = he[Ee]; - Fe === void 0 && (Fe = ie.clone(), he[Ee] = Fe), ie = Fe; - } - return ie.visible = X.visible, ie.wireframe = X.wireframe, ne === Bb ? ie.side = X.shadowSide !== null ? X.shadowSide : X.side : ie.side = X.shadowSide !== null ? X.shadowSide : _[X.side], ie.alphaMap = X.alphaMap, ie.alphaTest = X.alphaTest, ie.clipShadows = X.clipShadows, ie.clippingPlanes = X.clippingPlanes, ie.clipIntersection = X.clipIntersection, ie.displacementMap = X.displacementMap, ie.displacementScale = X.displacementScale, ie.displacementBias = X.displacementBias, ie.wireframeLinewidth = X.wireframeLinewidth, ie.linewidth = X.linewidth, J.isPointLight === !0 && ie.isMeshDistanceMaterial === !0 && (ie.referencePosition.setFromMatrixPosition(J.matrixWorld), ie.nearDistance = $, ie.farDistance = W), ie; - } - function V(I, X, J, $, W) { - if (I.visible === !1) + function H(B, Q) { + const K = e.update(O); + T.defines.VSM_SAMPLES !== B.blurSamples && (T.defines.VSM_SAMPLES = B.blurSamples, R.defines.VSM_SAMPLES = B.blurSamples, T.needsUpdate = !0, R.needsUpdate = !0), B.mapPass === null && (B.mapPass = new po(i.x, i.y)), T.uniforms.shadow_pass.value = B.map.texture, T.uniforms.resolution.value = B.mapSize, T.uniforms.radius.value = B.radius, a.setRenderTarget(B.mapPass), a.clear(), a.renderBufferDirect(Q, null, K, T, O, null), R.uniforms.shadow_pass.value = B.mapPass.texture, R.uniforms.resolution.value = B.mapSize, R.uniforms.radius.value = B.radius, a.setRenderTarget(B.map), a.clear(), a.renderBufferDirect(Q, null, K, R, O, null); + } + function I(B, Q, K, te, Y, re) { + let se = null; + const ce = K.isPointLight === !0 ? B.customDistanceMaterial : B.customDepthMaterial; + if (ce !== void 0 ? se = ce : se = K.isPointLight === !0 ? p : d, a.localClippingEnabled && Q.clipShadows === !0 && Array.isArray(Q.clippingPlanes) && Q.clippingPlanes.length !== 0 || Q.displacementMap && Q.displacementScale !== 0 || Q.alphaMap && Q.alphaTest > 0) { + const ue = se.uuid, Me = Q.uuid; + let me = g[ue]; + me === void 0 && (me = {}, g[ue] = me); + let De = me[Me]; + De === void 0 && (De = se.clone(), me[Me] = De), se = De; + } + return se.visible = Q.visible, se.wireframe = Q.wireframe, re === U_ ? se.side = Q.shadowSide !== null ? Q.shadowSide : Q.side : se.side = Q.shadowSide !== null ? Q.shadowSide : w[Q.side], se.alphaMap = Q.alphaMap, se.alphaTest = Q.alphaTest, se.clipShadows = Q.clipShadows, se.clippingPlanes = Q.clippingPlanes, se.clipIntersection = Q.clipIntersection, se.displacementMap = Q.displacementMap, se.displacementScale = Q.displacementScale, se.displacementBias = Q.displacementBias, se.wireframeLinewidth = Q.wireframeLinewidth, se.linewidth = Q.linewidth, K.isPointLight === !0 && se.isMeshDistanceMaterial === !0 && (se.referencePosition.setFromMatrixPosition(K.matrixWorld), se.nearDistance = te, se.farDistance = Y), se; + } + function G(B, Q, K, te, Y) { + if (B.visible === !1) return; - if (I.layers.test(X.layers) && (I.isMesh || I.isLine || I.isPoints) && (I.castShadow || I.receiveShadow && W === Bb) && (!I.frustumCulled || r.intersectsObject(I))) { - I.modelViewMatrix.multiplyMatrices(J.matrixWorldInverse, I.matrixWorld); - const fe = e.update(I), le = I.material; - if (Array.isArray(le)) { - const Ee = fe.groups; - for (let he = 0, Fe = Ee.length; he < Fe; he++) { - const Ce = Ee[he], Be = le[Ce.materialIndex]; - if (Be && Be.visible) { - const pe = k(I, Be, $, J.near, J.far, W); - a.renderBufferDirect(J, null, fe, pe, I, Ce); + if (B.layers.test(Q.layers) && (B.isMesh || B.isLine || B.isPoints) && (B.castShadow || B.receiveShadow && Y === U_) && (!B.frustumCulled || r.intersectsObject(B))) { + B.modelViewMatrix.multiplyMatrices(K.matrixWorldInverse, B.matrixWorld); + const ce = e.update(B), ue = B.material; + if (Array.isArray(ue)) { + const Me = ce.groups; + for (let me = 0, De = Me.length; me < De; me++) { + const Re = Me[me], He = ue[Re.materialIndex]; + if (He && He.visible) { + const ve = I(B, He, te, K.near, K.far, Y); + a.renderBufferDirect(K, null, ce, ve, B, Re); } } - } else if (le.visible) { - const Ee = k(I, le, $, J.near, J.far, W); - a.renderBufferDirect(J, null, fe, Ee, I, null); + } else if (ue.visible) { + const Me = I(B, ue, te, K.near, K.far, Y); + a.renderBufferDirect(K, null, ce, Me, B, null); } } - const ie = I.children; - for (let fe = 0, le = ie.length; fe < le; fe++) - V(ie[fe], X, J, $, W); + const se = B.children; + for (let ce = 0, ue = se.length; ce < ue; ce++) + G(se[ce], Q, K, te, Y); } } -function aW(a, e, t) { +function gW(a, e, t) { const r = t.isWebGL2; function i() { - let De = !1; - const Tt = new la(); - let Ne = null; - const Gt = new la(0, 0, 0, 0); + let ze = !1; + const wt = new ra(); + let Pe = null; + const Gt = new ra(0, 0, 0, 0); return { - setMask: function(Pt) { - Ne !== Pt && !De && (a.colorMask(Pt, Pt, Pt, Pt), Ne = Pt); + setMask: function(At) { + Pe !== At && !ze && (a.colorMask(At, At, At, At), Pe = At); }, - setLocked: function(Pt) { - De = Pt; + setLocked: function(At) { + ze = At; }, - setClear: function(Pt, fn, Gr, Wr, Ur) { - Ur === !0 && (Pt *= Wr, fn *= Wr, Gr *= Wr), Tt.set(Pt, fn, Gr, Wr), Gt.equals(Tt) === !1 && (a.clearColor(Pt, fn, Gr, Wr), Gt.copy(Tt)); + setClear: function(At, cn, ki, Or, Ii) { + Ii === !0 && (At *= Or, cn *= Or, ki *= Or), wt.set(At, cn, ki, Or), Gt.equals(wt) === !1 && (a.clearColor(At, cn, ki, Or), Gt.copy(wt)); }, reset: function() { - De = !1, Ne = null, Gt.set(-1, 0, 0, 0); + ze = !1, Pe = null, Gt.set(-1, 0, 0, 0); } }; } - function o() { - let De = !1, Tt = null, Ne = null, Gt = null; + function s() { + let ze = !1, wt = null, Pe = null, Gt = null; return { - setTest: function(Pt) { - Pt ? ot(2929) : rt(2929); + setTest: function(At) { + At ? ct(2929) : tt(2929); }, - setMask: function(Pt) { - Tt !== Pt && !De && (a.depthMask(Pt), Tt = Pt); + setMask: function(At) { + wt !== At && !ze && (a.depthMask(At), wt = At); }, - setFunc: function(Pt) { - if (Ne !== Pt) { - if (Pt) - switch (Pt) { - case NN: + setFunc: function(At) { + if (Pe !== At) { + if (At) + switch (At) { + case ZN: a.depthFunc(512); break; - case FN: + case JN: a.depthFunc(519); break; - case kN: + case KN: a.depthFunc(513); break; case bC: a.depthFunc(515); break; - case IN: + case $N: a.depthFunc(514); break; - case BN: + case eF: a.depthFunc(518); break; - case HN: + case tF: a.depthFunc(516); break; - case VN: + case nF: a.depthFunc(517); break; default: @@ -10564,910 +10564,910 @@ function aW(a, e, t) { } else a.depthFunc(515); - Ne = Pt; + Pe = At; } }, - setLocked: function(Pt) { - De = Pt; + setLocked: function(At) { + ze = At; }, - setClear: function(Pt) { - Gt !== Pt && (a.clearDepth(Pt), Gt = Pt); + setClear: function(At) { + Gt !== At && (a.clearDepth(At), Gt = At); }, reset: function() { - De = !1, Tt = null, Ne = null, Gt = null; + ze = !1, wt = null, Pe = null, Gt = null; } }; } function l() { - let De = !1, Tt = null, Ne = null, Gt = null, Pt = null, fn = null, Gr = null, Wr = null, Ur = null; + let ze = !1, wt = null, Pe = null, Gt = null, At = null, cn = null, ki = null, Or = null, Ii = null; return { - setTest: function(ir) { - De || (ir ? ot(2960) : rt(2960)); + setTest: function(Ir) { + ze || (Ir ? ct(2960) : tt(2960)); }, - setMask: function(ir) { - Tt !== ir && !De && (a.stencilMask(ir), Tt = ir); + setMask: function(Ir) { + wt !== Ir && !ze && (a.stencilMask(Ir), wt = Ir); }, - setFunc: function(ir, Vn, jr) { - (Ne !== ir || Gt !== Vn || Pt !== jr) && (a.stencilFunc(ir, Vn, jr), Ne = ir, Gt = Vn, Pt = jr); + setFunc: function(Ir, Bn, Mi) { + (Pe !== Ir || Gt !== Bn || At !== Mi) && (a.stencilFunc(Ir, Bn, Mi), Pe = Ir, Gt = Bn, At = Mi); }, - setOp: function(ir, Vn, jr) { - (fn !== ir || Gr !== Vn || Wr !== jr) && (a.stencilOp(ir, Vn, jr), fn = ir, Gr = Vn, Wr = jr); + setOp: function(Ir, Bn, Mi) { + (cn !== Ir || ki !== Bn || Or !== Mi) && (a.stencilOp(Ir, Bn, Mi), cn = Ir, ki = Bn, Or = Mi); }, - setLocked: function(ir) { - De = ir; + setLocked: function(Ir) { + ze = Ir; }, - setClear: function(ir) { - Ur !== ir && (a.clearStencil(ir), Ur = ir); + setClear: function(Ir) { + Ii !== Ir && (a.clearStencil(Ir), Ii = Ir); }, reset: function() { - De = !1, Tt = null, Ne = null, Gt = null, Pt = null, fn = null, Gr = null, Wr = null, Ur = null; + ze = !1, wt = null, Pe = null, Gt = null, At = null, cn = null, ki = null, Or = null, Ii = null; } }; } - const d = new i(), h = new o(), m = new l(), S = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap(); - let T = {}, C = {}, D = /* @__PURE__ */ new WeakMap(), P = [], U = null, B = !1, k = null, V = null, I = null, X = null, J = null, $ = null, W = null, ne = !1, ie = null, fe = null, le = null, Ee = null, he = null; - const Fe = a.getParameter(35661); - let Ce = !1, Be = 0; - const pe = a.getParameter(7938); - pe.indexOf("WebGL") !== -1 ? (Be = parseFloat(/^WebGL (\d)/.exec(pe)[1]), Ce = Be >= 1) : pe.indexOf("OpenGL ES") !== -1 && (Be = parseFloat(/^OpenGL ES (\d)/.exec(pe)[1]), Ce = Be >= 2); - let de = null, ce = {}; - const ye = a.getParameter(3088), we = a.getParameter(2978), Xe = new la().fromArray(ye), Je = new la().fromArray(we); - function st(De, Tt, Ne) { - const Gt = new Uint8Array(4), Pt = a.createTexture(); - a.bindTexture(De, Pt), a.texParameteri(De, 10241, 9728), a.texParameteri(De, 10240, 9728); - for (let fn = 0; fn < Ne; fn++) - a.texImage2D(Tt + fn, 0, 6408, 1, 1, 0, 6408, 5121, Gt); - return Pt; - } - const Ue = {}; - Ue[3553] = st(3553, 3553, 1), Ue[34067] = st(34067, 34069, 6), d.setClear(0, 0, 0, 1), h.setClear(1), m.setClear(0), ot(2929), h.setFunc(bC), bt(!1), Qt(BD), ot(2884), mt(cf); - function ot(De) { - T[De] !== !0 && (a.enable(De), T[De] = !0); - } - function rt(De) { - T[De] !== !1 && (a.disable(De), T[De] = !1); - } - function _t(De, Tt) { - return C[De] !== Tt ? (a.bindFramebuffer(De, Tt), C[De] = Tt, r && (De === 36009 && (C[36160] = Tt), De === 36160 && (C[36009] = Tt)), !0) : !1; - } - function Rt(De, Tt) { - let Ne = P, Gt = !1; - if (De) - if (Ne = D.get(Tt), Ne === void 0 && (Ne = [], D.set(Tt, Ne)), De.isWebGLMultipleRenderTargets) { - const Pt = De.texture; - if (Ne.length !== Pt.length || Ne[0] !== 36064) { - for (let fn = 0, Gr = Pt.length; fn < Gr; fn++) - Ne[fn] = 36064 + fn; - Ne.length = Pt.length, Gt = !0; + const d = new i(), p = new s(), g = new l(), _ = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(); + let T = {}, R = {}, D = /* @__PURE__ */ new WeakMap(), O = [], U = null, H = !1, I = null, G = null, B = null, Q = null, K = null, te = null, Y = null, re = !1, se = null, ce = null, ue = null, Me = null, me = null; + const De = a.getParameter(35661); + let Re = !1, He = 0; + const ve = a.getParameter(7938); + ve.indexOf("WebGL") !== -1 ? (He = parseFloat(/^WebGL (\d)/.exec(ve)[1]), Re = He >= 1) : ve.indexOf("OpenGL ES") !== -1 && (He = parseFloat(/^OpenGL ES (\d)/.exec(ve)[1]), Re = He >= 2); + let fe = null, he = {}; + const ye = a.getParameter(3088), Ee = a.getParameter(2978), Ve = new ra().fromArray(ye), Je = new ra().fromArray(Ee); + function rt(ze, wt, Pe) { + const Gt = new Uint8Array(4), At = a.createTexture(); + a.bindTexture(ze, At), a.texParameteri(ze, 10241, 9728), a.texParameteri(ze, 10240, 9728); + for (let cn = 0; cn < Pe; cn++) + a.texImage2D(wt + cn, 0, 6408, 1, 1, 0, 6408, 5121, Gt); + return At; + } + const Ne = {}; + Ne[3553] = rt(3553, 3553, 1), Ne[34067] = rt(34067, 34069, 6), d.setClear(0, 0, 0, 1), p.setClear(1), g.setClear(0), ct(2929), p.setFunc(bC), xt(!1), Vt(VD), ct(2884), dt(ff); + function ct(ze) { + T[ze] !== !0 && (a.enable(ze), T[ze] = !0); + } + function tt(ze) { + T[ze] !== !1 && (a.disable(ze), T[ze] = !1); + } + function Tt(ze, wt) { + return R[ze] !== wt ? (a.bindFramebuffer(ze, wt), R[ze] = wt, r && (ze === 36009 && (R[36160] = wt), ze === 36160 && (R[36009] = wt)), !0) : !1; + } + function gt(ze, wt) { + let Pe = O, Gt = !1; + if (ze) + if (Pe = D.get(wt), Pe === void 0 && (Pe = [], D.set(wt, Pe)), ze.isWebGLMultipleRenderTargets) { + const At = ze.texture; + if (Pe.length !== At.length || Pe[0] !== 36064) { + for (let cn = 0, ki = At.length; cn < ki; cn++) + Pe[cn] = 36064 + cn; + Pe.length = At.length, Gt = !0; } } else - Ne[0] !== 36064 && (Ne[0] = 36064, Gt = !0); + Pe[0] !== 36064 && (Pe[0] = 36064, Gt = !0); else - Ne[0] !== 1029 && (Ne[0] = 1029, Gt = !0); - Gt && (t.isWebGL2 ? a.drawBuffers(Ne) : e.get("WEBGL_draw_buffers").drawBuffersWEBGL(Ne)); + Pe[0] !== 1029 && (Pe[0] = 1029, Gt = !0); + Gt && (t.isWebGL2 ? a.drawBuffers(Pe) : e.get("WEBGL_draw_buffers").drawBuffersWEBGL(Pe)); } - function Ot(De) { - return U !== De ? (a.useProgram(De), U = De, !0) : !1; + function ft(ze) { + return U !== ze ? (a.useProgram(ze), U = ze, !0) : !1; } - const He = { - [AS]: 32774, - [TN]: 32778, + const Ie = { + [L_]: 32774, + [BN]: 32778, [V3]: 32779 }; if (r) - He[GD] = 32775, He[WD] = 32776; + Ie[jD] = 32775, Ie[YD] = 32776; else { - const De = e.get("EXT_blend_minmax"); - De !== null && (He[GD] = De.MIN_EXT, He[WD] = De.MAX_EXT); - } - const et = { - [CN]: 0, - [RN]: 1, - [AN]: 768, - [UC]: 770, - [zN]: 776, - [ON]: 774, - [LN]: 772, - [DN]: 769, - [zC]: 771, - [UN]: 775, - [PN]: 773 + const ze = e.get("EXT_blend_minmax"); + ze !== null && (Ie[jD] = ze.MIN_EXT, Ie[YD] = ze.MAX_EXT); + } + const qe = { + [HN]: 0, + [VN]: 1, + [GN]: 768, + [zC]: 770, + [QN]: 776, + [XN]: 774, + [jN]: 772, + [WN]: 769, + [NC]: 771, + [qN]: 775, + [YN]: 773 }; - function mt(De, Tt, Ne, Gt, Pt, fn, Gr, Wr) { - if (De === cf) { - B === !0 && (rt(3042), B = !1); + function dt(ze, wt, Pe, Gt, At, cn, ki, Or) { + if (ze === ff) { + H === !0 && (tt(3042), H = !1); return; } - if (B === !1 && (ot(3042), B = !0), De !== MN) { - if (De !== k || Wr !== ne) { - if ((V !== AS || J !== AS) && (a.blendEquation(32774), V = AS, J = AS), Wr) - switch (De) { - case L0: + if (H === !1 && (ct(3042), H = !0), ze !== IN) { + if (ze !== I || Or !== re) { + if ((G !== L_ || K !== L_) && (a.blendEquation(32774), G = L_, K = L_), Or) + switch (ze) { + case P0: a.blendFuncSeparate(1, 771, 1, 771); break; - case _C: + case wC: a.blendFunc(1, 1); break; - case HD: + case GD: a.blendFuncSeparate(0, 769, 0, 1); break; - case VD: + case WD: a.blendFuncSeparate(0, 768, 0, 770); break; default: - console.error("THREE.WebGLState: Invalid blending: ", De); + console.error("THREE.WebGLState: Invalid blending: ", ze); break; } else - switch (De) { - case L0: + switch (ze) { + case P0: a.blendFuncSeparate(770, 771, 1, 771); break; - case _C: + case wC: a.blendFunc(770, 1); break; - case HD: + case GD: a.blendFuncSeparate(0, 769, 0, 1); break; - case VD: + case WD: a.blendFunc(0, 768); break; default: - console.error("THREE.WebGLState: Invalid blending: ", De); + console.error("THREE.WebGLState: Invalid blending: ", ze); break; } - I = null, X = null, $ = null, W = null, k = De, ne = Wr; + B = null, Q = null, te = null, Y = null, I = ze, re = Or; } return; } - Pt = Pt || Tt, fn = fn || Ne, Gr = Gr || Gt, (Tt !== V || Pt !== J) && (a.blendEquationSeparate(He[Tt], He[Pt]), V = Tt, J = Pt), (Ne !== I || Gt !== X || fn !== $ || Gr !== W) && (a.blendFuncSeparate(et[Ne], et[Gt], et[fn], et[Gr]), I = Ne, X = Gt, $ = fn, W = Gr), k = De, ne = null; + At = At || wt, cn = cn || Pe, ki = ki || Gt, (wt !== G || At !== K) && (a.blendEquationSeparate(Ie[wt], Ie[At]), G = wt, K = At), (Pe !== B || Gt !== Q || cn !== te || ki !== Y) && (a.blendFuncSeparate(qe[Pe], qe[Gt], qe[cn], qe[ki]), B = Pe, Q = Gt, te = cn, Y = ki), I = ze, re = null; } - function vt(De, Tt) { - De.side === Pp ? rt(2884) : ot(2884); - let Ne = De.side === uf; - Tt && (Ne = !Ne), bt(Ne), De.blending === L0 && De.transparent === !1 ? mt(cf) : mt(De.blending, De.blendEquation, De.blendSrc, De.blendDst, De.blendEquationAlpha, De.blendSrcAlpha, De.blendDstAlpha, De.premultipliedAlpha), h.setFunc(De.depthFunc), h.setTest(De.depthTest), h.setMask(De.depthWrite), d.setMask(De.colorWrite); - const Gt = De.stencilWrite; - m.setTest(Gt), Gt && (m.setMask(De.stencilWriteMask), m.setFunc(De.stencilFunc, De.stencilRef, De.stencilFuncMask), m.setOp(De.stencilFail, De.stencilZFail, De.stencilZPass)), Vt(De.polygonOffset, De.polygonOffsetFactor, De.polygonOffsetUnits), De.alphaToCoverage === !0 ? ot(32926) : rt(32926); + function ht(ze, wt) { + ze.side === Yh ? tt(2884) : ct(2884); + let Pe = ze.side === cf; + wt && (Pe = !Pe), xt(Pe), ze.blending === P0 && ze.transparent === !1 ? dt(ff) : dt(ze.blending, ze.blendEquation, ze.blendSrc, ze.blendDst, ze.blendEquationAlpha, ze.blendSrcAlpha, ze.blendDstAlpha, ze.premultipliedAlpha), p.setFunc(ze.depthFunc), p.setTest(ze.depthTest), p.setMask(ze.depthWrite), d.setMask(ze.colorWrite); + const Gt = ze.stencilWrite; + g.setTest(Gt), Gt && (g.setMask(ze.stencilWriteMask), g.setFunc(ze.stencilFunc, ze.stencilRef, ze.stencilFuncMask), g.setOp(ze.stencilFail, ze.stencilZFail, ze.stencilZPass)), Nt(ze.polygonOffset, ze.polygonOffsetFactor, ze.polygonOffsetUnits), ze.alphaToCoverage === !0 ? ct(32926) : tt(32926); } - function bt(De) { - ie !== De && (De ? a.frontFace(2304) : a.frontFace(2305), ie = De); + function xt(ze) { + se !== ze && (ze ? a.frontFace(2304) : a.frontFace(2305), se = ze); } - function Qt(De) { - De !== bN ? (ot(2884), De !== fe && (De === BD ? a.cullFace(1029) : De === wN ? a.cullFace(1028) : a.cullFace(1032))) : rt(2884), fe = De; + function Vt(ze) { + ze !== zN ? (ct(2884), ze !== ce && (ze === VD ? a.cullFace(1029) : ze === NN ? a.cullFace(1028) : a.cullFace(1032))) : tt(2884), ce = ze; } - function ft(De) { - De !== le && (Ce && a.lineWidth(De), le = De); + function yt(ze) { + ze !== ue && (Re && a.lineWidth(ze), ue = ze); } - function Vt(De, Tt, Ne) { - De ? (ot(32823), (Ee !== Tt || he !== Ne) && (a.polygonOffset(Tt, Ne), Ee = Tt, he = Ne)) : rt(32823); + function Nt(ze, wt, Pe) { + ze ? (ct(32823), (Me !== wt || me !== Pe) && (a.polygonOffset(wt, Pe), Me = wt, me = Pe)) : tt(32823); } - function Jt(De) { - De ? ot(3089) : rt(3089); + function Zt(ze) { + ze ? ct(3089) : tt(3089); } - function Mt(De) { - De === void 0 && (De = 33984 + Fe - 1), de !== De && (a.activeTexture(De), de = De); + function Rt(ze) { + ze === void 0 && (ze = 33984 + De - 1), fe !== ze && (a.activeTexture(ze), fe = ze); } - function Me(De, Tt) { - de === null && Mt(); - let Ne = ce[de]; - Ne === void 0 && (Ne = { type: void 0, texture: void 0 }, ce[de] = Ne), (Ne.type !== De || Ne.texture !== Tt) && (a.bindTexture(De, Tt || Ue[De]), Ne.type = De, Ne.texture = Tt); + function we(ze, wt) { + fe === null && Rt(); + let Pe = he[fe]; + Pe === void 0 && (Pe = { type: void 0, texture: void 0 }, he[fe] = Pe), (Pe.type !== ze || Pe.texture !== wt) && (a.bindTexture(ze, wt || Ne[ze]), Pe.type = ze, Pe.texture = wt); } function oe() { - const De = ce[de]; - De !== void 0 && De.type !== void 0 && (a.bindTexture(De.type, null), De.type = void 0, De.texture = void 0); + const ze = he[fe]; + ze !== void 0 && ze.type !== void 0 && (a.bindTexture(ze.type, null), ze.type = void 0, ze.texture = void 0); } - function je() { + function Qe() { try { a.compressedTexImage2D.apply(a, arguments); - } catch (De) { - console.error("THREE.WebGLState:", De); + } catch (ze) { + console.error("THREE.WebGLState:", ze); } } - function lt() { + function ut() { try { a.texSubImage2D.apply(a, arguments); - } catch (De) { - console.error("THREE.WebGLState:", De); + } catch (ze) { + console.error("THREE.WebGLState:", ze); } } - function zt() { + function Ft() { try { a.texSubImage3D.apply(a, arguments); - } catch (De) { - console.error("THREE.WebGLState:", De); + } catch (ze) { + console.error("THREE.WebGLState:", ze); } } - function Nt() { + function Ot() { try { a.compressedTexSubImage2D.apply(a, arguments); - } catch (De) { - console.error("THREE.WebGLState:", De); + } catch (ze) { + console.error("THREE.WebGLState:", ze); } } - function Ut() { + function Wt() { try { a.texStorage2D.apply(a, arguments); - } catch (De) { - console.error("THREE.WebGLState:", De); + } catch (ze) { + console.error("THREE.WebGLState:", ze); } } - function tt() { + function it() { try { a.texStorage3D.apply(a, arguments); - } catch (De) { - console.error("THREE.WebGLState:", De); + } catch (ze) { + console.error("THREE.WebGLState:", ze); } } - function rn() { + function an() { try { a.texImage2D.apply(a, arguments); - } catch (De) { - console.error("THREE.WebGLState:", De); + } catch (ze) { + console.error("THREE.WebGLState:", ze); } } - function ze() { + function Be() { try { a.texImage3D.apply(a, arguments); - } catch (De) { - console.error("THREE.WebGLState:", De); + } catch (ze) { + console.error("THREE.WebGLState:", ze); } } - function xe(De) { - Xe.equals(De) === !1 && (a.scissor(De.x, De.y, De.z, De.w), Xe.copy(De)); + function pe(ze) { + Ve.equals(ze) === !1 && (a.scissor(ze.x, ze.y, ze.z, ze.w), Ve.copy(ze)); } - function Ie(De) { - Je.equals(De) === !1 && (a.viewport(De.x, De.y, De.z, De.w), Je.copy(De)); + function Fe(ze) { + Je.equals(ze) === !1 && (a.viewport(ze.x, ze.y, ze.z, ze.w), Je.copy(ze)); } - function it(De, Tt) { - let Ne = _.get(Tt); - Ne === void 0 && (Ne = /* @__PURE__ */ new WeakMap(), _.set(Tt, Ne)); - let Gt = Ne.get(De); - Gt === void 0 && (Gt = a.getUniformBlockIndex(Tt, De.name), Ne.set(De, Gt)); + function at(ze, wt) { + let Pe = w.get(wt); + Pe === void 0 && (Pe = /* @__PURE__ */ new WeakMap(), w.set(wt, Pe)); + let Gt = Pe.get(ze); + Gt === void 0 && (Gt = a.getUniformBlockIndex(wt, ze.name), Pe.set(ze, Gt)); } - function at(De, Tt) { - const Gt = _.get(Tt).get(De); - S.get(De) !== Gt && (a.uniformBlockBinding(Tt, Gt, De.__bindingPointIndex), S.set(De, Gt)); + function st(ze, wt) { + const Gt = w.get(wt).get(ze); + _.get(ze) !== Gt && (a.uniformBlockBinding(wt, Gt, ze.__bindingPointIndex), _.set(ze, Gt)); } - function hn() { - a.disable(3042), a.disable(2884), a.disable(2929), a.disable(32823), a.disable(3089), a.disable(2960), a.disable(32926), a.blendEquation(32774), a.blendFunc(1, 0), a.blendFuncSeparate(1, 0, 1, 0), a.colorMask(!0, !0, !0, !0), a.clearColor(0, 0, 0, 0), a.depthMask(!0), a.depthFunc(513), a.clearDepth(1), a.stencilMask(4294967295), a.stencilFunc(519, 0, 4294967295), a.stencilOp(7680, 7680, 7680), a.clearStencil(0), a.cullFace(1029), a.frontFace(2305), a.polygonOffset(0, 0), a.activeTexture(33984), a.bindFramebuffer(36160, null), r === !0 && (a.bindFramebuffer(36009, null), a.bindFramebuffer(36008, null)), a.useProgram(null), a.lineWidth(1), a.scissor(0, 0, a.canvas.width, a.canvas.height), a.viewport(0, 0, a.canvas.width, a.canvas.height), T = {}, de = null, ce = {}, C = {}, D = /* @__PURE__ */ new WeakMap(), P = [], U = null, B = !1, k = null, V = null, I = null, X = null, J = null, $ = null, W = null, ne = !1, ie = null, fe = null, le = null, Ee = null, he = null, Xe.set(0, 0, a.canvas.width, a.canvas.height), Je.set(0, 0, a.canvas.width, a.canvas.height), d.reset(), h.reset(), m.reset(); + function dn() { + a.disable(3042), a.disable(2884), a.disable(2929), a.disable(32823), a.disable(3089), a.disable(2960), a.disable(32926), a.blendEquation(32774), a.blendFunc(1, 0), a.blendFuncSeparate(1, 0, 1, 0), a.colorMask(!0, !0, !0, !0), a.clearColor(0, 0, 0, 0), a.depthMask(!0), a.depthFunc(513), a.clearDepth(1), a.stencilMask(4294967295), a.stencilFunc(519, 0, 4294967295), a.stencilOp(7680, 7680, 7680), a.clearStencil(0), a.cullFace(1029), a.frontFace(2305), a.polygonOffset(0, 0), a.activeTexture(33984), a.bindFramebuffer(36160, null), r === !0 && (a.bindFramebuffer(36009, null), a.bindFramebuffer(36008, null)), a.useProgram(null), a.lineWidth(1), a.scissor(0, 0, a.canvas.width, a.canvas.height), a.viewport(0, 0, a.canvas.width, a.canvas.height), T = {}, fe = null, he = {}, R = {}, D = /* @__PURE__ */ new WeakMap(), O = [], U = null, H = !1, I = null, G = null, B = null, Q = null, K = null, te = null, Y = null, re = !1, se = null, ce = null, ue = null, Me = null, me = null, Ve.set(0, 0, a.canvas.width, a.canvas.height), Je.set(0, 0, a.canvas.width, a.canvas.height), d.reset(), p.reset(), g.reset(); } return { buffers: { color: d, - depth: h, - stencil: m + depth: p, + stencil: g }, - enable: ot, - disable: rt, - bindFramebuffer: _t, - drawBuffers: Rt, - useProgram: Ot, - setBlending: mt, - setMaterial: vt, - setFlipSided: bt, - setCullFace: Qt, - setLineWidth: ft, - setPolygonOffset: Vt, - setScissorTest: Jt, - activeTexture: Mt, - bindTexture: Me, + enable: ct, + disable: tt, + bindFramebuffer: Tt, + drawBuffers: gt, + useProgram: ft, + setBlending: dt, + setMaterial: ht, + setFlipSided: xt, + setCullFace: Vt, + setLineWidth: yt, + setPolygonOffset: Nt, + setScissorTest: Zt, + activeTexture: Rt, + bindTexture: we, unbindTexture: oe, - compressedTexImage2D: je, - texImage2D: rn, - texImage3D: ze, - updateUBOMapping: it, - uniformBlockBinding: at, - texStorage2D: Ut, - texStorage3D: tt, - texSubImage2D: lt, - texSubImage3D: zt, - compressedTexSubImage2D: Nt, - scissor: xe, - viewport: Ie, - reset: hn + compressedTexImage2D: Qe, + texImage2D: an, + texImage3D: Be, + updateUBOMapping: at, + uniformBlockBinding: st, + texStorage2D: Wt, + texStorage3D: it, + texSubImage2D: ut, + texSubImage3D: Ft, + compressedTexSubImage2D: Ot, + scissor: pe, + viewport: Fe, + reset: dn }; } -function sW(a, e, t, r, i, o, l) { - const d = i.isWebGL2, h = i.maxTextures, m = i.maxCubemapSize, S = i.maxTextureSize, _ = i.maxSamples, T = e.has("WEBGL_multisampled_render_to_texture") ? e.get("WEBGL_multisampled_render_to_texture") : null, C = /OculusBrowser/g.test(navigator.userAgent), D = /* @__PURE__ */ new WeakMap(); - let P; +function yW(a, e, t, r, i, s, l) { + const d = i.isWebGL2, p = i.maxTextures, g = i.maxCubemapSize, _ = i.maxTextureSize, w = i.maxSamples, T = e.has("WEBGL_multisampled_render_to_texture") ? e.get("WEBGL_multisampled_render_to_texture") : null, R = /OculusBrowser/g.test(navigator.userAgent), D = /* @__PURE__ */ new WeakMap(); + let O; const U = /* @__PURE__ */ new WeakMap(); - let B = !1; + let H = !1; try { - B = typeof OffscreenCanvas < "u" && new OffscreenCanvas(1, 1).getContext("2d") !== null; + H = typeof OffscreenCanvas < "u" && new OffscreenCanvas(1, 1).getContext("2d") !== null; } catch { } - function k(Me, oe) { - return B ? new OffscreenCanvas(Me, oe) : UM("canvas"); - } - function V(Me, oe, je, lt) { - let zt = 1; - if ((Me.width > lt || Me.height > lt) && (zt = lt / Math.max(Me.width, Me.height)), zt < 1 || oe === !0) - if (typeof HTMLImageElement < "u" && Me instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && Me instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && Me instanceof ImageBitmap) { - const Nt = oe ? TC : Math.floor, Ut = Nt(zt * Me.width), tt = Nt(zt * Me.height); - P === void 0 && (P = k(Ut, tt)); - const rn = je ? k(Ut, tt) : P; - return rn.width = Ut, rn.height = tt, rn.getContext("2d").drawImage(Me, 0, 0, Ut, tt), console.warn("THREE.WebGLRenderer: Texture has been resized from (" + Me.width + "x" + Me.height + ") to (" + Ut + "x" + tt + ")."), rn; + function I(we, oe) { + return H ? new OffscreenCanvas(we, oe) : zM("canvas"); + } + function G(we, oe, Qe, ut) { + let Ft = 1; + if ((we.width > ut || we.height > ut) && (Ft = ut / Math.max(we.width, we.height)), Ft < 1 || oe === !0) + if (typeof HTMLImageElement < "u" && we instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && we instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && we instanceof ImageBitmap) { + const Ot = oe ? CC : Math.floor, Wt = Ot(Ft * we.width), it = Ot(Ft * we.height); + O === void 0 && (O = I(Wt, it)); + const an = Qe ? I(Wt, it) : O; + return an.width = Wt, an.height = it, an.getContext("2d").drawImage(we, 0, 0, Wt, it), console.warn("THREE.WebGLRenderer: Texture has been resized from (" + we.width + "x" + we.height + ") to (" + Wt + "x" + it + ")."), an; } else - return "data" in Me && console.warn("THREE.WebGLRenderer: Image in DataTexture is too big (" + Me.width + "x" + Me.height + ")."), Me; - return Me; + return "data" in we && console.warn("THREE.WebGLRenderer: Image in DataTexture is too big (" + we.width + "x" + we.height + ")."), we; + return we; } - function I(Me) { - return h3(Me.width) && h3(Me.height); + function B(we) { + return m3(we.width) && m3(we.height); } - function X(Me) { - return d ? !1 : Me.wrapS !== Wh || Me.wrapT !== Wh || Me.minFilter !== fo && Me.minFilter !== Oo; + function Q(we) { + return d ? !1 : we.wrapS !== jh || we.wrapT !== jh || we.minFilter !== fo && we.minFilter !== Oo; } - function J(Me, oe) { - return Me.generateMipmaps && oe && Me.minFilter !== fo && Me.minFilter !== Oo; + function K(we, oe) { + return we.generateMipmaps && oe && we.minFilter !== fo && we.minFilter !== Oo; } - function $(Me) { - a.generateMipmap(Me); + function te(we) { + a.generateMipmap(we); } - function W(Me, oe, je, lt, zt = !1) { + function Y(we, oe, Qe, ut, Ft = !1) { if (d === !1) return oe; - if (Me !== null) { - if (a[Me] !== void 0) - return a[Me]; - console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '" + Me + "'"); + if (we !== null) { + if (a[we] !== void 0) + return a[we]; + console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '" + we + "'"); } - let Nt = oe; - return oe === 6403 && (je === 5126 && (Nt = 33326), je === 5131 && (Nt = 33325), je === 5121 && (Nt = 33321)), oe === 33319 && (je === 5126 && (Nt = 33328), je === 5131 && (Nt = 33327), je === 5121 && (Nt = 33323)), oe === 6408 && (je === 5126 && (Nt = 34836), je === 5131 && (Nt = 34842), je === 5121 && (Nt = lt === Mi && zt === !1 ? 35907 : 32856), je === 32819 && (Nt = 32854), je === 32820 && (Nt = 32855)), (Nt === 33325 || Nt === 33326 || Nt === 33327 || Nt === 33328 || Nt === 34842 || Nt === 34836) && e.get("EXT_color_buffer_float"), Nt; + let Ot = oe; + return oe === 6403 && (Qe === 5126 && (Ot = 33326), Qe === 5131 && (Ot = 33325), Qe === 5121 && (Ot = 33321)), oe === 33319 && (Qe === 5126 && (Ot = 33328), Qe === 5131 && (Ot = 33327), Qe === 5121 && (Ot = 33323)), oe === 6408 && (Qe === 5126 && (Ot = 34836), Qe === 5131 && (Ot = 34842), Qe === 5121 && (Ot = ut === gi && Ft === !1 ? 35907 : 32856), Qe === 32819 && (Ot = 32854), Qe === 32820 && (Ot = 32855)), (Ot === 33325 || Ot === 33326 || Ot === 33327 || Ot === 33328 || Ot === 34842 || Ot === 34836) && e.get("EXT_color_buffer_float"), Ot; } - function ne(Me, oe, je) { - return J(Me, je) === !0 || Me.isFramebufferTexture && Me.minFilter !== fo && Me.minFilter !== Oo ? Math.log2(Math.max(oe.width, oe.height)) + 1 : Me.mipmaps !== void 0 && Me.mipmaps.length > 0 ? Me.mipmaps.length : Me.isCompressedTexture && Array.isArray(Me.image) ? oe.mipmaps.length : 1; + function re(we, oe, Qe) { + return K(we, Qe) === !0 || we.isFramebufferTexture && we.minFilter !== fo && we.minFilter !== Oo ? Math.log2(Math.max(oe.width, oe.height)) + 1 : we.mipmaps !== void 0 && we.mipmaps.length > 0 ? we.mipmaps.length : we.isCompressedTexture && Array.isArray(we.image) ? oe.mipmaps.length : 1; } - function ie(Me) { - return Me === fo || Me === wC || Me === EC ? 9728 : 9729; + function se(we) { + return we === fo || we === EC || we === MC ? 9728 : 9729; } - function fe(Me) { - const oe = Me.target; - oe.removeEventListener("dispose", fe), Ee(oe), oe.isVideoTexture && D.delete(oe); + function ce(we) { + const oe = we.target; + oe.removeEventListener("dispose", ce), Me(oe), oe.isVideoTexture && D.delete(oe); } - function le(Me) { - const oe = Me.target; - oe.removeEventListener("dispose", le), Fe(oe); + function ue(we) { + const oe = we.target; + oe.removeEventListener("dispose", ue), De(oe); } - function Ee(Me) { - const oe = r.get(Me); + function Me(we) { + const oe = r.get(we); if (oe.__webglInit === void 0) return; - const je = Me.source, lt = U.get(je); - if (lt) { - const zt = lt[oe.__cacheKey]; - zt.usedTimes--, zt.usedTimes === 0 && he(Me), Object.keys(lt).length === 0 && U.delete(je); + const Qe = we.source, ut = U.get(Qe); + if (ut) { + const Ft = ut[oe.__cacheKey]; + Ft.usedTimes--, Ft.usedTimes === 0 && me(we), Object.keys(ut).length === 0 && U.delete(Qe); } - r.remove(Me); + r.remove(we); } - function he(Me) { - const oe = r.get(Me); + function me(we) { + const oe = r.get(we); a.deleteTexture(oe.__webglTexture); - const je = Me.source, lt = U.get(je); - delete lt[oe.__cacheKey], l.memory.textures--; - } - function Fe(Me) { - const oe = Me.texture, je = r.get(Me), lt = r.get(oe); - if (lt.__webglTexture !== void 0 && (a.deleteTexture(lt.__webglTexture), l.memory.textures--), Me.depthTexture && Me.depthTexture.dispose(), Me.isWebGLCubeRenderTarget) - for (let zt = 0; zt < 6; zt++) - a.deleteFramebuffer(je.__webglFramebuffer[zt]), je.__webglDepthbuffer && a.deleteRenderbuffer(je.__webglDepthbuffer[zt]); + const Qe = we.source, ut = U.get(Qe); + delete ut[oe.__cacheKey], l.memory.textures--; + } + function De(we) { + const oe = we.texture, Qe = r.get(we), ut = r.get(oe); + if (ut.__webglTexture !== void 0 && (a.deleteTexture(ut.__webglTexture), l.memory.textures--), we.depthTexture && we.depthTexture.dispose(), we.isWebGLCubeRenderTarget) + for (let Ft = 0; Ft < 6; Ft++) + a.deleteFramebuffer(Qe.__webglFramebuffer[Ft]), Qe.__webglDepthbuffer && a.deleteRenderbuffer(Qe.__webglDepthbuffer[Ft]); else { - if (a.deleteFramebuffer(je.__webglFramebuffer), je.__webglDepthbuffer && a.deleteRenderbuffer(je.__webglDepthbuffer), je.__webglMultisampledFramebuffer && a.deleteFramebuffer(je.__webglMultisampledFramebuffer), je.__webglColorRenderbuffer) - for (let zt = 0; zt < je.__webglColorRenderbuffer.length; zt++) - je.__webglColorRenderbuffer[zt] && a.deleteRenderbuffer(je.__webglColorRenderbuffer[zt]); - je.__webglDepthRenderbuffer && a.deleteRenderbuffer(je.__webglDepthRenderbuffer); + if (a.deleteFramebuffer(Qe.__webglFramebuffer), Qe.__webglDepthbuffer && a.deleteRenderbuffer(Qe.__webglDepthbuffer), Qe.__webglMultisampledFramebuffer && a.deleteFramebuffer(Qe.__webglMultisampledFramebuffer), Qe.__webglColorRenderbuffer) + for (let Ft = 0; Ft < Qe.__webglColorRenderbuffer.length; Ft++) + Qe.__webglColorRenderbuffer[Ft] && a.deleteRenderbuffer(Qe.__webglColorRenderbuffer[Ft]); + Qe.__webglDepthRenderbuffer && a.deleteRenderbuffer(Qe.__webglDepthRenderbuffer); } - if (Me.isWebGLMultipleRenderTargets) - for (let zt = 0, Nt = oe.length; zt < Nt; zt++) { - const Ut = r.get(oe[zt]); - Ut.__webglTexture && (a.deleteTexture(Ut.__webglTexture), l.memory.textures--), r.remove(oe[zt]); + if (we.isWebGLMultipleRenderTargets) + for (let Ft = 0, Ot = oe.length; Ft < Ot; Ft++) { + const Wt = r.get(oe[Ft]); + Wt.__webglTexture && (a.deleteTexture(Wt.__webglTexture), l.memory.textures--), r.remove(oe[Ft]); } - r.remove(oe), r.remove(Me); + r.remove(oe), r.remove(we); } - let Ce = 0; - function Be() { - Ce = 0; + let Re = 0; + function He() { + Re = 0; } - function pe() { - const Me = Ce; - return Me >= h && console.warn("THREE.WebGLTextures: Trying to use " + Me + " texture units while this GPU supports only " + h), Ce += 1, Me; + function ve() { + const we = Re; + return we >= p && console.warn("THREE.WebGLTextures: Trying to use " + we + " texture units while this GPU supports only " + p), Re += 1, we; } - function de(Me) { + function fe(we) { const oe = []; - return oe.push(Me.wrapS), oe.push(Me.wrapT), oe.push(Me.magFilter), oe.push(Me.minFilter), oe.push(Me.anisotropy), oe.push(Me.internalFormat), oe.push(Me.format), oe.push(Me.type), oe.push(Me.generateMipmaps), oe.push(Me.premultiplyAlpha), oe.push(Me.flipY), oe.push(Me.unpackAlignment), oe.push(Me.encoding), oe.join(); + return oe.push(we.wrapS), oe.push(we.wrapT), oe.push(we.magFilter), oe.push(we.minFilter), oe.push(we.anisotropy), oe.push(we.internalFormat), oe.push(we.format), oe.push(we.type), oe.push(we.generateMipmaps), oe.push(we.premultiplyAlpha), oe.push(we.flipY), oe.push(we.unpackAlignment), oe.push(we.encoding), oe.join(); } - function ce(Me, oe) { - const je = r.get(Me); - if (Me.isVideoTexture && Jt(Me), Me.isRenderTargetTexture === !1 && Me.version > 0 && je.__version !== Me.version) { - const lt = Me.image; - if (lt === null) + function he(we, oe) { + const Qe = r.get(we); + if (we.isVideoTexture && Zt(we), we.isRenderTargetTexture === !1 && we.version > 0 && Qe.__version !== we.version) { + const ut = we.image; + if (ut === null) console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found."); - else if (lt.complete === !1) + else if (ut.complete === !1) console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete"); else { - rt(je, Me, oe); + tt(Qe, we, oe); return; } } - t.activeTexture(33984 + oe), t.bindTexture(3553, je.__webglTexture); + t.activeTexture(33984 + oe), t.bindTexture(3553, Qe.__webglTexture); } - function ye(Me, oe) { - const je = r.get(Me); - if (Me.version > 0 && je.__version !== Me.version) { - rt(je, Me, oe); + function ye(we, oe) { + const Qe = r.get(we); + if (we.version > 0 && Qe.__version !== we.version) { + tt(Qe, we, oe); return; } - t.activeTexture(33984 + oe), t.bindTexture(35866, je.__webglTexture); + t.activeTexture(33984 + oe), t.bindTexture(35866, Qe.__webglTexture); } - function we(Me, oe) { - const je = r.get(Me); - if (Me.version > 0 && je.__version !== Me.version) { - rt(je, Me, oe); + function Ee(we, oe) { + const Qe = r.get(we); + if (we.version > 0 && Qe.__version !== we.version) { + tt(Qe, we, oe); return; } - t.activeTexture(33984 + oe), t.bindTexture(32879, je.__webglTexture); + t.activeTexture(33984 + oe), t.bindTexture(32879, Qe.__webglTexture); } - function Xe(Me, oe) { - const je = r.get(Me); - if (Me.version > 0 && je.__version !== Me.version) { - _t(je, Me, oe); + function Ve(we, oe) { + const Qe = r.get(we); + if (we.version > 0 && Qe.__version !== we.version) { + Tt(Qe, we, oe); return; } - t.activeTexture(33984 + oe), t.bindTexture(34067, je.__webglTexture); + t.activeTexture(33984 + oe), t.bindTexture(34067, Qe.__webglTexture); } const Je = { - [Zb]: 10497, - [Wh]: 33071, - [RM]: 33648 - }, st = { + [Zw]: 10497, + [jh]: 33071, + [AM]: 33648 + }, rt = { [fo]: 9728, - [wC]: 9984, - [EC]: 9986, + [EC]: 9984, + [MC]: 9986, [Oo]: 9729, [W3]: 9985, [s1]: 9987 }; - function Ue(Me, oe, je) { - if (je ? (a.texParameteri(Me, 10242, Je[oe.wrapS]), a.texParameteri(Me, 10243, Je[oe.wrapT]), (Me === 32879 || Me === 35866) && a.texParameteri(Me, 32882, Je[oe.wrapR]), a.texParameteri(Me, 10240, st[oe.magFilter]), a.texParameteri(Me, 10241, st[oe.minFilter])) : (a.texParameteri(Me, 10242, 33071), a.texParameteri(Me, 10243, 33071), (Me === 32879 || Me === 35866) && a.texParameteri(Me, 32882, 33071), (oe.wrapS !== Wh || oe.wrapT !== Wh) && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."), a.texParameteri(Me, 10240, ie(oe.magFilter)), a.texParameteri(Me, 10241, ie(oe.minFilter)), oe.minFilter !== fo && oe.minFilter !== Oo && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")), e.has("EXT_texture_filter_anisotropic") === !0) { - const lt = e.get("EXT_texture_filter_anisotropic"); - if (oe.type === uy && e.has("OES_texture_float_linear") === !1 || d === !1 && oe.type === GS && e.has("OES_texture_half_float_linear") === !1) + function Ne(we, oe, Qe) { + if (Qe ? (a.texParameteri(we, 10242, Je[oe.wrapS]), a.texParameteri(we, 10243, Je[oe.wrapT]), (we === 32879 || we === 35866) && a.texParameteri(we, 32882, Je[oe.wrapR]), a.texParameteri(we, 10240, rt[oe.magFilter]), a.texParameteri(we, 10241, rt[oe.minFilter])) : (a.texParameteri(we, 10242, 33071), a.texParameteri(we, 10243, 33071), (we === 32879 || we === 35866) && a.texParameteri(we, 32882, 33071), (oe.wrapS !== jh || oe.wrapT !== jh) && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."), a.texParameteri(we, 10240, se(oe.magFilter)), a.texParameteri(we, 10241, se(oe.minFilter)), oe.minFilter !== fo && oe.minFilter !== Oo && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")), e.has("EXT_texture_filter_anisotropic") === !0) { + const ut = e.get("EXT_texture_filter_anisotropic"); + if (oe.type === fy && e.has("OES_texture_float_linear") === !1 || d === !1 && oe.type === X_ && e.has("OES_texture_half_float_linear") === !1) return; - (oe.anisotropy > 1 || r.get(oe).__currentAnisotropy) && (a.texParameterf(Me, lt.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(oe.anisotropy, i.getMaxAnisotropy())), r.get(oe).__currentAnisotropy = oe.anisotropy); - } - } - function ot(Me, oe) { - let je = !1; - Me.__webglInit === void 0 && (Me.__webglInit = !0, oe.addEventListener("dispose", fe)); - const lt = oe.source; - let zt = U.get(lt); - zt === void 0 && (zt = {}, U.set(lt, zt)); - const Nt = de(oe); - if (Nt !== Me.__cacheKey) { - zt[Nt] === void 0 && (zt[Nt] = { + (oe.anisotropy > 1 || r.get(oe).__currentAnisotropy) && (a.texParameterf(we, ut.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(oe.anisotropy, i.getMaxAnisotropy())), r.get(oe).__currentAnisotropy = oe.anisotropy); + } + } + function ct(we, oe) { + let Qe = !1; + we.__webglInit === void 0 && (we.__webglInit = !0, oe.addEventListener("dispose", ce)); + const ut = oe.source; + let Ft = U.get(ut); + Ft === void 0 && (Ft = {}, U.set(ut, Ft)); + const Ot = fe(oe); + if (Ot !== we.__cacheKey) { + Ft[Ot] === void 0 && (Ft[Ot] = { texture: a.createTexture(), usedTimes: 0 - }, l.memory.textures++, je = !0), zt[Nt].usedTimes++; - const Ut = zt[Me.__cacheKey]; - Ut !== void 0 && (zt[Me.__cacheKey].usedTimes--, Ut.usedTimes === 0 && he(oe)), Me.__cacheKey = Nt, Me.__webglTexture = zt[Nt].texture; + }, l.memory.textures++, Qe = !0), Ft[Ot].usedTimes++; + const Wt = Ft[we.__cacheKey]; + Wt !== void 0 && (Ft[we.__cacheKey].usedTimes--, Wt.usedTimes === 0 && me(oe)), we.__cacheKey = Ot, we.__webglTexture = Ft[Ot].texture; } - return je; + return Qe; } - function rt(Me, oe, je) { - let lt = 3553; - oe.isDataArrayTexture && (lt = 35866), oe.isData3DTexture && (lt = 32879); - const zt = ot(Me, oe), Nt = oe.source; - if (t.activeTexture(33984 + je), t.bindTexture(lt, Me.__webglTexture), Nt.version !== Nt.__currentVersion || zt === !0) { + function tt(we, oe, Qe) { + let ut = 3553; + oe.isDataArrayTexture && (ut = 35866), oe.isData3DTexture && (ut = 32879); + const Ft = ct(we, oe), Ot = oe.source; + if (t.activeTexture(33984 + Qe), t.bindTexture(ut, we.__webglTexture), Ot.version !== Ot.__currentVersion || Ft === !0) { a.pixelStorei(37440, oe.flipY), a.pixelStorei(37441, oe.premultiplyAlpha), a.pixelStorei(3317, oe.unpackAlignment), a.pixelStorei(37443, 0); - const Ut = X(oe) && I(oe.image) === !1; - let tt = V(oe.image, Ut, !1, S); - tt = Mt(oe, tt); - const rn = I(tt) || d, ze = o.convert(oe.format, oe.encoding); - let xe = o.convert(oe.type), Ie = W(oe.internalFormat, ze, xe, oe.encoding, oe.isVideoTexture); - Ue(lt, oe, rn); - let it; - const at = oe.mipmaps, hn = d && oe.isVideoTexture !== !0, De = Nt.__currentVersion === void 0 || zt === !0, Tt = ne(oe, tt, rn); + const Wt = Q(oe) && B(oe.image) === !1; + let it = G(oe.image, Wt, !1, _); + it = Rt(oe, it); + const an = B(it) || d, Be = s.convert(oe.format, oe.encoding); + let pe = s.convert(oe.type), Fe = Y(oe.internalFormat, Be, pe, oe.encoding, oe.isVideoTexture); + Ne(ut, oe, an); + let at; + const st = oe.mipmaps, dn = d && oe.isVideoTexture !== !0, ze = Ot.__currentVersion === void 0 || Ft === !0, wt = re(oe, it, an); if (oe.isDepthTexture) - Ie = 6402, d ? oe.type === uy ? Ie = 36012 : oe.type === D0 ? Ie = 33190 : oe.type === Kx ? Ie = 35056 : Ie = 33189 : oe.type === uy && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), oe.format === $x && Ie === 6402 && oe.type !== j3 && oe.type !== D0 && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), oe.type = D0, xe = o.convert(oe.type)), oe.format === r1 && Ie === 6402 && (Ie = 34041, oe.type !== Kx && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), oe.type = Kx, xe = o.convert(oe.type))), De && (hn ? t.texStorage2D(3553, 1, Ie, tt.width, tt.height) : t.texImage2D(3553, 0, Ie, tt.width, tt.height, 0, ze, xe, null)); + Fe = 6402, d ? oe.type === fy ? Fe = 36012 : oe.type === L0 ? Fe = 33190 : oe.type === Kx ? Fe = 35056 : Fe = 33189 : oe.type === fy && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), oe.format === $x && Fe === 6402 && oe.type !== j3 && oe.type !== L0 && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), oe.type = L0, pe = s.convert(oe.type)), oe.format === r1 && Fe === 6402 && (Fe = 34041, oe.type !== Kx && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), oe.type = Kx, pe = s.convert(oe.type))), ze && (dn ? t.texStorage2D(3553, 1, Fe, it.width, it.height) : t.texImage2D(3553, 0, Fe, it.width, it.height, 0, Be, pe, null)); else if (oe.isDataTexture) - if (at.length > 0 && rn) { - hn && De && t.texStorage2D(3553, Tt, Ie, at[0].width, at[0].height); - for (let Ne = 0, Gt = at.length; Ne < Gt; Ne++) - it = at[Ne], hn ? t.texSubImage2D(3553, Ne, 0, 0, it.width, it.height, ze, xe, it.data) : t.texImage2D(3553, Ne, Ie, it.width, it.height, 0, ze, xe, it.data); + if (st.length > 0 && an) { + dn && ze && t.texStorage2D(3553, wt, Fe, st[0].width, st[0].height); + for (let Pe = 0, Gt = st.length; Pe < Gt; Pe++) + at = st[Pe], dn ? t.texSubImage2D(3553, Pe, 0, 0, at.width, at.height, Be, pe, at.data) : t.texImage2D(3553, Pe, Fe, at.width, at.height, 0, Be, pe, at.data); oe.generateMipmaps = !1; } else - hn ? (De && t.texStorage2D(3553, Tt, Ie, tt.width, tt.height), t.texSubImage2D(3553, 0, 0, 0, tt.width, tt.height, ze, xe, tt.data)) : t.texImage2D(3553, 0, Ie, tt.width, tt.height, 0, ze, xe, tt.data); + dn ? (ze && t.texStorage2D(3553, wt, Fe, it.width, it.height), t.texSubImage2D(3553, 0, 0, 0, it.width, it.height, Be, pe, it.data)) : t.texImage2D(3553, 0, Fe, it.width, it.height, 0, Be, pe, it.data); else if (oe.isCompressedTexture) { - hn && De && t.texStorage2D(3553, Tt, Ie, at[0].width, at[0].height); - for (let Ne = 0, Gt = at.length; Ne < Gt; Ne++) - it = at[Ne], oe.format !== Sm ? ze !== null ? hn ? t.compressedTexSubImage2D(3553, Ne, 0, 0, it.width, it.height, ze, it.data) : t.compressedTexImage2D(3553, Ne, Ie, it.width, it.height, 0, it.data) : console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()") : hn ? t.texSubImage2D(3553, Ne, 0, 0, it.width, it.height, ze, xe, it.data) : t.texImage2D(3553, Ne, Ie, it.width, it.height, 0, ze, xe, it.data); + dn && ze && t.texStorage2D(3553, wt, Fe, st[0].width, st[0].height); + for (let Pe = 0, Gt = st.length; Pe < Gt; Pe++) + at = st[Pe], oe.format !== zp ? Be !== null ? dn ? t.compressedTexSubImage2D(3553, Pe, 0, 0, at.width, at.height, Be, at.data) : t.compressedTexImage2D(3553, Pe, Fe, at.width, at.height, 0, at.data) : console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()") : dn ? t.texSubImage2D(3553, Pe, 0, 0, at.width, at.height, Be, pe, at.data) : t.texImage2D(3553, Pe, Fe, at.width, at.height, 0, Be, pe, at.data); } else if (oe.isDataArrayTexture) - hn ? (De && t.texStorage3D(35866, Tt, Ie, tt.width, tt.height, tt.depth), t.texSubImage3D(35866, 0, 0, 0, 0, tt.width, tt.height, tt.depth, ze, xe, tt.data)) : t.texImage3D(35866, 0, Ie, tt.width, tt.height, tt.depth, 0, ze, xe, tt.data); + dn ? (ze && t.texStorage3D(35866, wt, Fe, it.width, it.height, it.depth), t.texSubImage3D(35866, 0, 0, 0, 0, it.width, it.height, it.depth, Be, pe, it.data)) : t.texImage3D(35866, 0, Fe, it.width, it.height, it.depth, 0, Be, pe, it.data); else if (oe.isData3DTexture) - hn ? (De && t.texStorage3D(32879, Tt, Ie, tt.width, tt.height, tt.depth), t.texSubImage3D(32879, 0, 0, 0, 0, tt.width, tt.height, tt.depth, ze, xe, tt.data)) : t.texImage3D(32879, 0, Ie, tt.width, tt.height, tt.depth, 0, ze, xe, tt.data); + dn ? (ze && t.texStorage3D(32879, wt, Fe, it.width, it.height, it.depth), t.texSubImage3D(32879, 0, 0, 0, 0, it.width, it.height, it.depth, Be, pe, it.data)) : t.texImage3D(32879, 0, Fe, it.width, it.height, it.depth, 0, Be, pe, it.data); else if (oe.isFramebufferTexture) { - if (De) - if (hn) - t.texStorage2D(3553, Tt, Ie, tt.width, tt.height); + if (ze) + if (dn) + t.texStorage2D(3553, wt, Fe, it.width, it.height); else { - let Ne = tt.width, Gt = tt.height; - for (let Pt = 0; Pt < Tt; Pt++) - t.texImage2D(3553, Pt, Ie, Ne, Gt, 0, ze, xe, null), Ne >>= 1, Gt >>= 1; - } - } else if (at.length > 0 && rn) { - hn && De && t.texStorage2D(3553, Tt, Ie, at[0].width, at[0].height); - for (let Ne = 0, Gt = at.length; Ne < Gt; Ne++) - it = at[Ne], hn ? t.texSubImage2D(3553, Ne, 0, 0, ze, xe, it) : t.texImage2D(3553, Ne, Ie, ze, xe, it); + let Pe = it.width, Gt = it.height; + for (let At = 0; At < wt; At++) + t.texImage2D(3553, At, Fe, Pe, Gt, 0, Be, pe, null), Pe >>= 1, Gt >>= 1; + } + } else if (st.length > 0 && an) { + dn && ze && t.texStorage2D(3553, wt, Fe, st[0].width, st[0].height); + for (let Pe = 0, Gt = st.length; Pe < Gt; Pe++) + at = st[Pe], dn ? t.texSubImage2D(3553, Pe, 0, 0, Be, pe, at) : t.texImage2D(3553, Pe, Fe, Be, pe, at); oe.generateMipmaps = !1; } else - hn ? (De && t.texStorage2D(3553, Tt, Ie, tt.width, tt.height), t.texSubImage2D(3553, 0, 0, 0, ze, xe, tt)) : t.texImage2D(3553, 0, Ie, ze, xe, tt); - J(oe, rn) && $(lt), Nt.__currentVersion = Nt.version, oe.onUpdate && oe.onUpdate(oe); + dn ? (ze && t.texStorage2D(3553, wt, Fe, it.width, it.height), t.texSubImage2D(3553, 0, 0, 0, Be, pe, it)) : t.texImage2D(3553, 0, Fe, Be, pe, it); + K(oe, an) && te(ut), Ot.__currentVersion = Ot.version, oe.onUpdate && oe.onUpdate(oe); } - Me.__version = oe.version; + we.__version = oe.version; } - function _t(Me, oe, je) { + function Tt(we, oe, Qe) { if (oe.image.length !== 6) return; - const lt = ot(Me, oe), zt = oe.source; - if (t.activeTexture(33984 + je), t.bindTexture(34067, Me.__webglTexture), zt.version !== zt.__currentVersion || lt === !0) { + const ut = ct(we, oe), Ft = oe.source; + if (t.activeTexture(33984 + Qe), t.bindTexture(34067, we.__webglTexture), Ft.version !== Ft.__currentVersion || ut === !0) { a.pixelStorei(37440, oe.flipY), a.pixelStorei(37441, oe.premultiplyAlpha), a.pixelStorei(3317, oe.unpackAlignment), a.pixelStorei(37443, 0); - const Nt = oe.isCompressedTexture || oe.image[0].isCompressedTexture, Ut = oe.image[0] && oe.image[0].isDataTexture, tt = []; - for (let Ne = 0; Ne < 6; Ne++) - !Nt && !Ut ? tt[Ne] = V(oe.image[Ne], !1, !0, m) : tt[Ne] = Ut ? oe.image[Ne].image : oe.image[Ne], tt[Ne] = Mt(oe, tt[Ne]); - const rn = tt[0], ze = I(rn) || d, xe = o.convert(oe.format, oe.encoding), Ie = o.convert(oe.type), it = W(oe.internalFormat, xe, Ie, oe.encoding), at = d && oe.isVideoTexture !== !0, hn = zt.__currentVersion === void 0 || lt === !0; - let De = ne(oe, rn, ze); - Ue(34067, oe, ze); - let Tt; - if (Nt) { - at && hn && t.texStorage2D(34067, De, it, rn.width, rn.height); - for (let Ne = 0; Ne < 6; Ne++) { - Tt = tt[Ne].mipmaps; - for (let Gt = 0; Gt < Tt.length; Gt++) { - const Pt = Tt[Gt]; - oe.format !== Sm ? xe !== null ? at ? t.compressedTexSubImage2D(34069 + Ne, Gt, 0, 0, Pt.width, Pt.height, xe, Pt.data) : t.compressedTexImage2D(34069 + Ne, Gt, it, Pt.width, Pt.height, 0, Pt.data) : console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()") : at ? t.texSubImage2D(34069 + Ne, Gt, 0, 0, Pt.width, Pt.height, xe, Ie, Pt.data) : t.texImage2D(34069 + Ne, Gt, it, Pt.width, Pt.height, 0, xe, Ie, Pt.data); + const Ot = oe.isCompressedTexture || oe.image[0].isCompressedTexture, Wt = oe.image[0] && oe.image[0].isDataTexture, it = []; + for (let Pe = 0; Pe < 6; Pe++) + !Ot && !Wt ? it[Pe] = G(oe.image[Pe], !1, !0, g) : it[Pe] = Wt ? oe.image[Pe].image : oe.image[Pe], it[Pe] = Rt(oe, it[Pe]); + const an = it[0], Be = B(an) || d, pe = s.convert(oe.format, oe.encoding), Fe = s.convert(oe.type), at = Y(oe.internalFormat, pe, Fe, oe.encoding), st = d && oe.isVideoTexture !== !0, dn = Ft.__currentVersion === void 0 || ut === !0; + let ze = re(oe, an, Be); + Ne(34067, oe, Be); + let wt; + if (Ot) { + st && dn && t.texStorage2D(34067, ze, at, an.width, an.height); + for (let Pe = 0; Pe < 6; Pe++) { + wt = it[Pe].mipmaps; + for (let Gt = 0; Gt < wt.length; Gt++) { + const At = wt[Gt]; + oe.format !== zp ? pe !== null ? st ? t.compressedTexSubImage2D(34069 + Pe, Gt, 0, 0, At.width, At.height, pe, At.data) : t.compressedTexImage2D(34069 + Pe, Gt, at, At.width, At.height, 0, At.data) : console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()") : st ? t.texSubImage2D(34069 + Pe, Gt, 0, 0, At.width, At.height, pe, Fe, At.data) : t.texImage2D(34069 + Pe, Gt, at, At.width, At.height, 0, pe, Fe, At.data); } } } else { - Tt = oe.mipmaps, at && hn && (Tt.length > 0 && De++, t.texStorage2D(34067, De, it, tt[0].width, tt[0].height)); - for (let Ne = 0; Ne < 6; Ne++) - if (Ut) { - at ? t.texSubImage2D(34069 + Ne, 0, 0, 0, tt[Ne].width, tt[Ne].height, xe, Ie, tt[Ne].data) : t.texImage2D(34069 + Ne, 0, it, tt[Ne].width, tt[Ne].height, 0, xe, Ie, tt[Ne].data); - for (let Gt = 0; Gt < Tt.length; Gt++) { - const fn = Tt[Gt].image[Ne].image; - at ? t.texSubImage2D(34069 + Ne, Gt + 1, 0, 0, fn.width, fn.height, xe, Ie, fn.data) : t.texImage2D(34069 + Ne, Gt + 1, it, fn.width, fn.height, 0, xe, Ie, fn.data); + wt = oe.mipmaps, st && dn && (wt.length > 0 && ze++, t.texStorage2D(34067, ze, at, it[0].width, it[0].height)); + for (let Pe = 0; Pe < 6; Pe++) + if (Wt) { + st ? t.texSubImage2D(34069 + Pe, 0, 0, 0, it[Pe].width, it[Pe].height, pe, Fe, it[Pe].data) : t.texImage2D(34069 + Pe, 0, at, it[Pe].width, it[Pe].height, 0, pe, Fe, it[Pe].data); + for (let Gt = 0; Gt < wt.length; Gt++) { + const cn = wt[Gt].image[Pe].image; + st ? t.texSubImage2D(34069 + Pe, Gt + 1, 0, 0, cn.width, cn.height, pe, Fe, cn.data) : t.texImage2D(34069 + Pe, Gt + 1, at, cn.width, cn.height, 0, pe, Fe, cn.data); } } else { - at ? t.texSubImage2D(34069 + Ne, 0, 0, 0, xe, Ie, tt[Ne]) : t.texImage2D(34069 + Ne, 0, it, xe, Ie, tt[Ne]); - for (let Gt = 0; Gt < Tt.length; Gt++) { - const Pt = Tt[Gt]; - at ? t.texSubImage2D(34069 + Ne, Gt + 1, 0, 0, xe, Ie, Pt.image[Ne]) : t.texImage2D(34069 + Ne, Gt + 1, it, xe, Ie, Pt.image[Ne]); + st ? t.texSubImage2D(34069 + Pe, 0, 0, 0, pe, Fe, it[Pe]) : t.texImage2D(34069 + Pe, 0, at, pe, Fe, it[Pe]); + for (let Gt = 0; Gt < wt.length; Gt++) { + const At = wt[Gt]; + st ? t.texSubImage2D(34069 + Pe, Gt + 1, 0, 0, pe, Fe, At.image[Pe]) : t.texImage2D(34069 + Pe, Gt + 1, at, pe, Fe, At.image[Pe]); } } } - J(oe, ze) && $(34067), zt.__currentVersion = zt.version, oe.onUpdate && oe.onUpdate(oe); + K(oe, Be) && te(34067), Ft.__currentVersion = Ft.version, oe.onUpdate && oe.onUpdate(oe); } - Me.__version = oe.version; + we.__version = oe.version; } - function Rt(Me, oe, je, lt, zt) { - const Nt = o.convert(je.format, je.encoding), Ut = o.convert(je.type), tt = W(je.internalFormat, Nt, Ut, je.encoding); - r.get(oe).__hasExternalTextures || (zt === 32879 || zt === 35866 ? t.texImage3D(zt, 0, tt, oe.width, oe.height, oe.depth, 0, Nt, Ut, null) : t.texImage2D(zt, 0, tt, oe.width, oe.height, 0, Nt, Ut, null)), t.bindFramebuffer(36160, Me), Vt(oe) ? T.framebufferTexture2DMultisampleEXT(36160, lt, zt, r.get(je).__webglTexture, 0, ft(oe)) : a.framebufferTexture2D(36160, lt, zt, r.get(je).__webglTexture, 0), t.bindFramebuffer(36160, null); + function gt(we, oe, Qe, ut, Ft) { + const Ot = s.convert(Qe.format, Qe.encoding), Wt = s.convert(Qe.type), it = Y(Qe.internalFormat, Ot, Wt, Qe.encoding); + r.get(oe).__hasExternalTextures || (Ft === 32879 || Ft === 35866 ? t.texImage3D(Ft, 0, it, oe.width, oe.height, oe.depth, 0, Ot, Wt, null) : t.texImage2D(Ft, 0, it, oe.width, oe.height, 0, Ot, Wt, null)), t.bindFramebuffer(36160, we), Nt(oe) ? T.framebufferTexture2DMultisampleEXT(36160, ut, Ft, r.get(Qe).__webglTexture, 0, yt(oe)) : a.framebufferTexture2D(36160, ut, Ft, r.get(Qe).__webglTexture, 0), t.bindFramebuffer(36160, null); } - function Ot(Me, oe, je) { - if (a.bindRenderbuffer(36161, Me), oe.depthBuffer && !oe.stencilBuffer) { - let lt = 33189; - if (je || Vt(oe)) { - const zt = oe.depthTexture; - zt && zt.isDepthTexture && (zt.type === uy ? lt = 36012 : zt.type === D0 && (lt = 33190)); - const Nt = ft(oe); - Vt(oe) ? T.renderbufferStorageMultisampleEXT(36161, Nt, lt, oe.width, oe.height) : a.renderbufferStorageMultisample(36161, Nt, lt, oe.width, oe.height); + function ft(we, oe, Qe) { + if (a.bindRenderbuffer(36161, we), oe.depthBuffer && !oe.stencilBuffer) { + let ut = 33189; + if (Qe || Nt(oe)) { + const Ft = oe.depthTexture; + Ft && Ft.isDepthTexture && (Ft.type === fy ? ut = 36012 : Ft.type === L0 && (ut = 33190)); + const Ot = yt(oe); + Nt(oe) ? T.renderbufferStorageMultisampleEXT(36161, Ot, ut, oe.width, oe.height) : a.renderbufferStorageMultisample(36161, Ot, ut, oe.width, oe.height); } else - a.renderbufferStorage(36161, lt, oe.width, oe.height); - a.framebufferRenderbuffer(36160, 36096, 36161, Me); + a.renderbufferStorage(36161, ut, oe.width, oe.height); + a.framebufferRenderbuffer(36160, 36096, 36161, we); } else if (oe.depthBuffer && oe.stencilBuffer) { - const lt = ft(oe); - je && Vt(oe) === !1 ? a.renderbufferStorageMultisample(36161, lt, 35056, oe.width, oe.height) : Vt(oe) ? T.renderbufferStorageMultisampleEXT(36161, lt, 35056, oe.width, oe.height) : a.renderbufferStorage(36161, 34041, oe.width, oe.height), a.framebufferRenderbuffer(36160, 33306, 36161, Me); + const ut = yt(oe); + Qe && Nt(oe) === !1 ? a.renderbufferStorageMultisample(36161, ut, 35056, oe.width, oe.height) : Nt(oe) ? T.renderbufferStorageMultisampleEXT(36161, ut, 35056, oe.width, oe.height) : a.renderbufferStorage(36161, 34041, oe.width, oe.height), a.framebufferRenderbuffer(36160, 33306, 36161, we); } else { - const lt = oe.isWebGLMultipleRenderTargets === !0 ? oe.texture : [oe.texture]; - for (let zt = 0; zt < lt.length; zt++) { - const Nt = lt[zt], Ut = o.convert(Nt.format, Nt.encoding), tt = o.convert(Nt.type), rn = W(Nt.internalFormat, Ut, tt, Nt.encoding), ze = ft(oe); - je && Vt(oe) === !1 ? a.renderbufferStorageMultisample(36161, ze, rn, oe.width, oe.height) : Vt(oe) ? T.renderbufferStorageMultisampleEXT(36161, ze, rn, oe.width, oe.height) : a.renderbufferStorage(36161, rn, oe.width, oe.height); + const ut = oe.isWebGLMultipleRenderTargets === !0 ? oe.texture : [oe.texture]; + for (let Ft = 0; Ft < ut.length; Ft++) { + const Ot = ut[Ft], Wt = s.convert(Ot.format, Ot.encoding), it = s.convert(Ot.type), an = Y(Ot.internalFormat, Wt, it, Ot.encoding), Be = yt(oe); + Qe && Nt(oe) === !1 ? a.renderbufferStorageMultisample(36161, Be, an, oe.width, oe.height) : Nt(oe) ? T.renderbufferStorageMultisampleEXT(36161, Be, an, oe.width, oe.height) : a.renderbufferStorage(36161, an, oe.width, oe.height); } } a.bindRenderbuffer(36161, null); } - function He(Me, oe) { + function Ie(we, oe) { if (oe && oe.isWebGLCubeRenderTarget) throw new Error("Depth Texture with cube render targets is not supported"); - if (t.bindFramebuffer(36160, Me), !(oe.depthTexture && oe.depthTexture.isDepthTexture)) + if (t.bindFramebuffer(36160, we), !(oe.depthTexture && oe.depthTexture.isDepthTexture)) throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture"); - (!r.get(oe.depthTexture).__webglTexture || oe.depthTexture.image.width !== oe.width || oe.depthTexture.image.height !== oe.height) && (oe.depthTexture.image.width = oe.width, oe.depthTexture.image.height = oe.height, oe.depthTexture.needsUpdate = !0), ce(oe.depthTexture, 0); - const lt = r.get(oe.depthTexture).__webglTexture, zt = ft(oe); + (!r.get(oe.depthTexture).__webglTexture || oe.depthTexture.image.width !== oe.width || oe.depthTexture.image.height !== oe.height) && (oe.depthTexture.image.width = oe.width, oe.depthTexture.image.height = oe.height, oe.depthTexture.needsUpdate = !0), he(oe.depthTexture, 0); + const ut = r.get(oe.depthTexture).__webglTexture, Ft = yt(oe); if (oe.depthTexture.format === $x) - Vt(oe) ? T.framebufferTexture2DMultisampleEXT(36160, 36096, 3553, lt, 0, zt) : a.framebufferTexture2D(36160, 36096, 3553, lt, 0); + Nt(oe) ? T.framebufferTexture2DMultisampleEXT(36160, 36096, 3553, ut, 0, Ft) : a.framebufferTexture2D(36160, 36096, 3553, ut, 0); else if (oe.depthTexture.format === r1) - Vt(oe) ? T.framebufferTexture2DMultisampleEXT(36160, 33306, 3553, lt, 0, zt) : a.framebufferTexture2D(36160, 33306, 3553, lt, 0); + Nt(oe) ? T.framebufferTexture2DMultisampleEXT(36160, 33306, 3553, ut, 0, Ft) : a.framebufferTexture2D(36160, 33306, 3553, ut, 0); else throw new Error("Unknown depthTexture format"); } - function et(Me) { - const oe = r.get(Me), je = Me.isWebGLCubeRenderTarget === !0; - if (Me.depthTexture && !oe.__autoAllocateDepthBuffer) { - if (je) + function qe(we) { + const oe = r.get(we), Qe = we.isWebGLCubeRenderTarget === !0; + if (we.depthTexture && !oe.__autoAllocateDepthBuffer) { + if (Qe) throw new Error("target.depthTexture not supported in Cube render targets"); - He(oe.__webglFramebuffer, Me); - } else if (je) { + Ie(oe.__webglFramebuffer, we); + } else if (Qe) { oe.__webglDepthbuffer = []; - for (let lt = 0; lt < 6; lt++) - t.bindFramebuffer(36160, oe.__webglFramebuffer[lt]), oe.__webglDepthbuffer[lt] = a.createRenderbuffer(), Ot(oe.__webglDepthbuffer[lt], Me, !1); + for (let ut = 0; ut < 6; ut++) + t.bindFramebuffer(36160, oe.__webglFramebuffer[ut]), oe.__webglDepthbuffer[ut] = a.createRenderbuffer(), ft(oe.__webglDepthbuffer[ut], we, !1); } else - t.bindFramebuffer(36160, oe.__webglFramebuffer), oe.__webglDepthbuffer = a.createRenderbuffer(), Ot(oe.__webglDepthbuffer, Me, !1); + t.bindFramebuffer(36160, oe.__webglFramebuffer), oe.__webglDepthbuffer = a.createRenderbuffer(), ft(oe.__webglDepthbuffer, we, !1); t.bindFramebuffer(36160, null); } - function mt(Me, oe, je) { - const lt = r.get(Me); - oe !== void 0 && Rt(lt.__webglFramebuffer, Me, Me.texture, 36064, 3553), je !== void 0 && et(Me); - } - function vt(Me) { - const oe = Me.texture, je = r.get(Me), lt = r.get(oe); - Me.addEventListener("dispose", le), Me.isWebGLMultipleRenderTargets !== !0 && (lt.__webglTexture === void 0 && (lt.__webglTexture = a.createTexture()), lt.__version = oe.version, l.memory.textures++); - const zt = Me.isWebGLCubeRenderTarget === !0, Nt = Me.isWebGLMultipleRenderTargets === !0, Ut = I(Me) || d; - if (zt) { - je.__webglFramebuffer = []; - for (let tt = 0; tt < 6; tt++) - je.__webglFramebuffer[tt] = a.createFramebuffer(); + function dt(we, oe, Qe) { + const ut = r.get(we); + oe !== void 0 && gt(ut.__webglFramebuffer, we, we.texture, 36064, 3553), Qe !== void 0 && qe(we); + } + function ht(we) { + const oe = we.texture, Qe = r.get(we), ut = r.get(oe); + we.addEventListener("dispose", ue), we.isWebGLMultipleRenderTargets !== !0 && (ut.__webglTexture === void 0 && (ut.__webglTexture = a.createTexture()), ut.__version = oe.version, l.memory.textures++); + const Ft = we.isWebGLCubeRenderTarget === !0, Ot = we.isWebGLMultipleRenderTargets === !0, Wt = B(we) || d; + if (Ft) { + Qe.__webglFramebuffer = []; + for (let it = 0; it < 6; it++) + Qe.__webglFramebuffer[it] = a.createFramebuffer(); } else { - if (je.__webglFramebuffer = a.createFramebuffer(), Nt) + if (Qe.__webglFramebuffer = a.createFramebuffer(), Ot) if (i.drawBuffers) { - const tt = Me.texture; - for (let rn = 0, ze = tt.length; rn < ze; rn++) { - const xe = r.get(tt[rn]); - xe.__webglTexture === void 0 && (xe.__webglTexture = a.createTexture(), l.memory.textures++); + const it = we.texture; + for (let an = 0, Be = it.length; an < Be; an++) { + const pe = r.get(it[an]); + pe.__webglTexture === void 0 && (pe.__webglTexture = a.createTexture(), l.memory.textures++); } } else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension."); - if (d && Me.samples > 0 && Vt(Me) === !1) { - const tt = Nt ? oe : [oe]; - je.__webglMultisampledFramebuffer = a.createFramebuffer(), je.__webglColorRenderbuffer = [], t.bindFramebuffer(36160, je.__webglMultisampledFramebuffer); - for (let rn = 0; rn < tt.length; rn++) { - const ze = tt[rn]; - je.__webglColorRenderbuffer[rn] = a.createRenderbuffer(), a.bindRenderbuffer(36161, je.__webglColorRenderbuffer[rn]); - const xe = o.convert(ze.format, ze.encoding), Ie = o.convert(ze.type), it = W(ze.internalFormat, xe, Ie, ze.encoding), at = ft(Me); - a.renderbufferStorageMultisample(36161, at, it, Me.width, Me.height), a.framebufferRenderbuffer(36160, 36064 + rn, 36161, je.__webglColorRenderbuffer[rn]); - } - a.bindRenderbuffer(36161, null), Me.depthBuffer && (je.__webglDepthRenderbuffer = a.createRenderbuffer(), Ot(je.__webglDepthRenderbuffer, Me, !0)), t.bindFramebuffer(36160, null); - } - } - if (zt) { - t.bindTexture(34067, lt.__webglTexture), Ue(34067, oe, Ut); - for (let tt = 0; tt < 6; tt++) - Rt(je.__webglFramebuffer[tt], Me, oe, 36064, 34069 + tt); - J(oe, Ut) && $(34067), t.unbindTexture(); - } else if (Nt) { - const tt = Me.texture; - for (let rn = 0, ze = tt.length; rn < ze; rn++) { - const xe = tt[rn], Ie = r.get(xe); - t.bindTexture(3553, Ie.__webglTexture), Ue(3553, xe, Ut), Rt(je.__webglFramebuffer, Me, xe, 36064 + rn, 3553), J(xe, Ut) && $(3553); + if (d && we.samples > 0 && Nt(we) === !1) { + const it = Ot ? oe : [oe]; + Qe.__webglMultisampledFramebuffer = a.createFramebuffer(), Qe.__webglColorRenderbuffer = [], t.bindFramebuffer(36160, Qe.__webglMultisampledFramebuffer); + for (let an = 0; an < it.length; an++) { + const Be = it[an]; + Qe.__webglColorRenderbuffer[an] = a.createRenderbuffer(), a.bindRenderbuffer(36161, Qe.__webglColorRenderbuffer[an]); + const pe = s.convert(Be.format, Be.encoding), Fe = s.convert(Be.type), at = Y(Be.internalFormat, pe, Fe, Be.encoding), st = yt(we); + a.renderbufferStorageMultisample(36161, st, at, we.width, we.height), a.framebufferRenderbuffer(36160, 36064 + an, 36161, Qe.__webglColorRenderbuffer[an]); + } + a.bindRenderbuffer(36161, null), we.depthBuffer && (Qe.__webglDepthRenderbuffer = a.createRenderbuffer(), ft(Qe.__webglDepthRenderbuffer, we, !0)), t.bindFramebuffer(36160, null); + } + } + if (Ft) { + t.bindTexture(34067, ut.__webglTexture), Ne(34067, oe, Wt); + for (let it = 0; it < 6; it++) + gt(Qe.__webglFramebuffer[it], we, oe, 36064, 34069 + it); + K(oe, Wt) && te(34067), t.unbindTexture(); + } else if (Ot) { + const it = we.texture; + for (let an = 0, Be = it.length; an < Be; an++) { + const pe = it[an], Fe = r.get(pe); + t.bindTexture(3553, Fe.__webglTexture), Ne(3553, pe, Wt), gt(Qe.__webglFramebuffer, we, pe, 36064 + an, 3553), K(pe, Wt) && te(3553); } t.unbindTexture(); } else { - let tt = 3553; - (Me.isWebGL3DRenderTarget || Me.isWebGLArrayRenderTarget) && (d ? tt = Me.isWebGL3DRenderTarget ? 32879 : 35866 : console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")), t.bindTexture(tt, lt.__webglTexture), Ue(tt, oe, Ut), Rt(je.__webglFramebuffer, Me, oe, 36064, tt), J(oe, Ut) && $(tt), t.unbindTexture(); + let it = 3553; + (we.isWebGL3DRenderTarget || we.isWebGLArrayRenderTarget) && (d ? it = we.isWebGL3DRenderTarget ? 32879 : 35866 : console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")), t.bindTexture(it, ut.__webglTexture), Ne(it, oe, Wt), gt(Qe.__webglFramebuffer, we, oe, 36064, it), K(oe, Wt) && te(it), t.unbindTexture(); } - Me.depthBuffer && et(Me); + we.depthBuffer && qe(we); } - function bt(Me) { - const oe = I(Me) || d, je = Me.isWebGLMultipleRenderTargets === !0 ? Me.texture : [Me.texture]; - for (let lt = 0, zt = je.length; lt < zt; lt++) { - const Nt = je[lt]; - if (J(Nt, oe)) { - const Ut = Me.isWebGLCubeRenderTarget ? 34067 : 3553, tt = r.get(Nt).__webglTexture; - t.bindTexture(Ut, tt), $(Ut), t.unbindTexture(); + function xt(we) { + const oe = B(we) || d, Qe = we.isWebGLMultipleRenderTargets === !0 ? we.texture : [we.texture]; + for (let ut = 0, Ft = Qe.length; ut < Ft; ut++) { + const Ot = Qe[ut]; + if (K(Ot, oe)) { + const Wt = we.isWebGLCubeRenderTarget ? 34067 : 3553, it = r.get(Ot).__webglTexture; + t.bindTexture(Wt, it), te(Wt), t.unbindTexture(); } } } - function Qt(Me) { - if (d && Me.samples > 0 && Vt(Me) === !1) { - const oe = Me.isWebGLMultipleRenderTargets ? Me.texture : [Me.texture], je = Me.width, lt = Me.height; - let zt = 16384; - const Nt = [], Ut = Me.stencilBuffer ? 33306 : 36096, tt = r.get(Me), rn = Me.isWebGLMultipleRenderTargets === !0; - if (rn) - for (let ze = 0; ze < oe.length; ze++) - t.bindFramebuffer(36160, tt.__webglMultisampledFramebuffer), a.framebufferRenderbuffer(36160, 36064 + ze, 36161, null), t.bindFramebuffer(36160, tt.__webglFramebuffer), a.framebufferTexture2D(36009, 36064 + ze, 3553, null, 0); - t.bindFramebuffer(36008, tt.__webglMultisampledFramebuffer), t.bindFramebuffer(36009, tt.__webglFramebuffer); - for (let ze = 0; ze < oe.length; ze++) { - Nt.push(36064 + ze), Me.depthBuffer && Nt.push(Ut); - const xe = tt.__ignoreDepthValues !== void 0 ? tt.__ignoreDepthValues : !1; - if (xe === !1 && (Me.depthBuffer && (zt |= 256), Me.stencilBuffer && (zt |= 1024)), rn && a.framebufferRenderbuffer(36008, 36064, 36161, tt.__webglColorRenderbuffer[ze]), xe === !0 && (a.invalidateFramebuffer(36008, [Ut]), a.invalidateFramebuffer(36009, [Ut])), rn) { - const Ie = r.get(oe[ze]).__webglTexture; - a.framebufferTexture2D(36009, 36064, 3553, Ie, 0); + function Vt(we) { + if (d && we.samples > 0 && Nt(we) === !1) { + const oe = we.isWebGLMultipleRenderTargets ? we.texture : [we.texture], Qe = we.width, ut = we.height; + let Ft = 16384; + const Ot = [], Wt = we.stencilBuffer ? 33306 : 36096, it = r.get(we), an = we.isWebGLMultipleRenderTargets === !0; + if (an) + for (let Be = 0; Be < oe.length; Be++) + t.bindFramebuffer(36160, it.__webglMultisampledFramebuffer), a.framebufferRenderbuffer(36160, 36064 + Be, 36161, null), t.bindFramebuffer(36160, it.__webglFramebuffer), a.framebufferTexture2D(36009, 36064 + Be, 3553, null, 0); + t.bindFramebuffer(36008, it.__webglMultisampledFramebuffer), t.bindFramebuffer(36009, it.__webglFramebuffer); + for (let Be = 0; Be < oe.length; Be++) { + Ot.push(36064 + Be), we.depthBuffer && Ot.push(Wt); + const pe = it.__ignoreDepthValues !== void 0 ? it.__ignoreDepthValues : !1; + if (pe === !1 && (we.depthBuffer && (Ft |= 256), we.stencilBuffer && (Ft |= 1024)), an && a.framebufferRenderbuffer(36008, 36064, 36161, it.__webglColorRenderbuffer[Be]), pe === !0 && (a.invalidateFramebuffer(36008, [Wt]), a.invalidateFramebuffer(36009, [Wt])), an) { + const Fe = r.get(oe[Be]).__webglTexture; + a.framebufferTexture2D(36009, 36064, 3553, Fe, 0); } - a.blitFramebuffer(0, 0, je, lt, 0, 0, je, lt, zt, 9728), C && a.invalidateFramebuffer(36008, Nt); + a.blitFramebuffer(0, 0, Qe, ut, 0, 0, Qe, ut, Ft, 9728), R && a.invalidateFramebuffer(36008, Ot); } - if (t.bindFramebuffer(36008, null), t.bindFramebuffer(36009, null), rn) - for (let ze = 0; ze < oe.length; ze++) { - t.bindFramebuffer(36160, tt.__webglMultisampledFramebuffer), a.framebufferRenderbuffer(36160, 36064 + ze, 36161, tt.__webglColorRenderbuffer[ze]); - const xe = r.get(oe[ze]).__webglTexture; - t.bindFramebuffer(36160, tt.__webglFramebuffer), a.framebufferTexture2D(36009, 36064 + ze, 3553, xe, 0); + if (t.bindFramebuffer(36008, null), t.bindFramebuffer(36009, null), an) + for (let Be = 0; Be < oe.length; Be++) { + t.bindFramebuffer(36160, it.__webglMultisampledFramebuffer), a.framebufferRenderbuffer(36160, 36064 + Be, 36161, it.__webglColorRenderbuffer[Be]); + const pe = r.get(oe[Be]).__webglTexture; + t.bindFramebuffer(36160, it.__webglFramebuffer), a.framebufferTexture2D(36009, 36064 + Be, 3553, pe, 0); } - t.bindFramebuffer(36009, tt.__webglMultisampledFramebuffer); + t.bindFramebuffer(36009, it.__webglMultisampledFramebuffer); } } - function ft(Me) { - return Math.min(_, Me.samples); + function yt(we) { + return Math.min(w, we.samples); } - function Vt(Me) { - const oe = r.get(Me); - return d && Me.samples > 0 && e.has("WEBGL_multisampled_render_to_texture") === !0 && oe.__useRenderToTexture !== !1; + function Nt(we) { + const oe = r.get(we); + return d && we.samples > 0 && e.has("WEBGL_multisampled_render_to_texture") === !0 && oe.__useRenderToTexture !== !1; } - function Jt(Me) { + function Zt(we) { const oe = l.render.frame; - D.get(Me) !== oe && (D.set(Me, oe), Me.update()); + D.get(we) !== oe && (D.set(we, oe), we.update()); } - function Mt(Me, oe) { - const je = Me.encoding, lt = Me.format, zt = Me.type; - return Me.isCompressedTexture === !0 || Me.isVideoTexture === !0 || Me.format === MC || je !== yv && (je === Mi ? d === !1 ? e.has("EXT_sRGB") === !0 && lt === Sm ? (Me.format = MC, Me.minFilter = Oo, Me.generateMipmaps = !1) : oe = q3.sRGBToLinear(oe) : (lt !== Sm || zt !== Gf) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture encoding:", je)), oe; + function Rt(we, oe) { + const Qe = we.encoding, ut = we.format, Ft = we.type; + return we.isCompressedTexture === !0 || we.isVideoTexture === !0 || we.format === TC || Qe !== wv && (Qe === gi ? d === !1 ? e.has("EXT_sRGB") === !0 && ut === zp ? (we.format = TC, we.minFilter = Oo, we.generateMipmaps = !1) : oe = q3.sRGBToLinear(oe) : (ut !== zp || Ft !== df) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture encoding:", Qe)), oe; } - this.allocateTextureUnit = pe, this.resetTextureUnits = Be, this.setTexture2D = ce, this.setTexture2DArray = ye, this.setTexture3D = we, this.setTextureCube = Xe, this.rebindTextures = mt, this.setupRenderTarget = vt, this.updateRenderTargetMipmap = bt, this.updateMultisampleRenderTarget = Qt, this.setupDepthRenderbuffer = et, this.setupFrameBufferTexture = Rt, this.useMultisampledRTT = Vt; + this.allocateTextureUnit = ve, this.resetTextureUnits = He, this.setTexture2D = he, this.setTexture2DArray = ye, this.setTexture3D = Ee, this.setTextureCube = Ve, this.rebindTextures = dt, this.setupRenderTarget = ht, this.updateRenderTargetMipmap = xt, this.updateMultisampleRenderTarget = Vt, this.setupDepthRenderbuffer = qe, this.setupFrameBufferTexture = gt, this.useMultisampledRTT = Nt; } -function CF(a, e, t) { +function HF(a, e, t) { const r = t.isWebGL2; - function i(o, l = null) { + function i(s, l = null) { let d; - if (o === Gf) + if (s === df) return 5121; - if (o === KN) + if (s === dF) return 32819; - if (o === $N) + if (s === hF) return 32820; - if (o === QN) + if (s === uF) return 5120; - if (o === ZN) + if (s === cF) return 5122; - if (o === j3) + if (s === j3) return 5123; - if (o === JN) + if (s === fF) return 5124; - if (o === D0) + if (s === L0) return 5125; - if (o === uy) + if (s === fy) return 5126; - if (o === GS) + if (s === X_) return r ? 5131 : (d = e.get("OES_texture_half_float"), d !== null ? d.HALF_FLOAT_OES : null); - if (o === eF) + if (s === pF) return 6406; - if (o === Sm) + if (s === zp) return 6408; - if (o === nF) + if (s === vF) return 6409; - if (o === rF) + if (s === gF) return 6410; - if (o === $x) + if (s === $x) return 6402; - if (o === r1) + if (s === r1) return 34041; - if (o === iF) + if (s === yF) return 6403; - if (o === tF) + if (s === mF) return console.warn("THREE.WebGLRenderer: THREE.RGBFormat has been removed. Use THREE.RGBAFormat instead. https://github.com/mrdoob/three.js/pull/23228"), 6408; - if (o === MC) + if (s === TC) return d = e.get("EXT_sRGB"), d !== null ? d.SRGB_ALPHA_EXT : null; - if (o === aF) + if (s === xF) return 36244; - if (o === sF) + if (s === _F) return 33319; - if (o === oF) + if (s === SF) return 33320; - if (o === lF) + if (s === wF) return 36249; - if (o === uC || o === cC || o === fC || o === dC) - if (l === Mi) + if (s === uC || s === cC || s === fC || s === dC) + if (l === gi) if (d = e.get("WEBGL_compressed_texture_s3tc_srgb"), d !== null) { - if (o === uC) + if (s === uC) return d.COMPRESSED_SRGB_S3TC_DXT1_EXT; - if (o === cC) + if (s === cC) return d.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT; - if (o === fC) + if (s === fC) return d.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT; - if (o === dC) + if (s === dC) return d.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT; } else return null; else if (d = e.get("WEBGL_compressed_texture_s3tc"), d !== null) { - if (o === uC) + if (s === uC) return d.COMPRESSED_RGB_S3TC_DXT1_EXT; - if (o === cC) + if (s === cC) return d.COMPRESSED_RGBA_S3TC_DXT1_EXT; - if (o === fC) + if (s === fC) return d.COMPRESSED_RGBA_S3TC_DXT3_EXT; - if (o === dC) + if (s === dC) return d.COMPRESSED_RGBA_S3TC_DXT5_EXT; } else return null; - if (o === jD || o === YD || o === XD || o === qD) + if (s === XD || s === qD || s === QD || s === ZD) if (d = e.get("WEBGL_compressed_texture_pvrtc"), d !== null) { - if (o === jD) + if (s === XD) return d.COMPRESSED_RGB_PVRTC_4BPPV1_IMG; - if (o === YD) + if (s === qD) return d.COMPRESSED_RGB_PVRTC_2BPPV1_IMG; - if (o === XD) + if (s === QD) return d.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG; - if (o === qD) + if (s === ZD) return d.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG; } else return null; - if (o === uF) + if (s === bF) return d = e.get("WEBGL_compressed_texture_etc1"), d !== null ? d.COMPRESSED_RGB_ETC1_WEBGL : null; - if (o === QD || o === ZD) + if (s === JD || s === KD) if (d = e.get("WEBGL_compressed_texture_etc"), d !== null) { - if (o === QD) - return l === Mi ? d.COMPRESSED_SRGB8_ETC2 : d.COMPRESSED_RGB8_ETC2; - if (o === ZD) - return l === Mi ? d.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC : d.COMPRESSED_RGBA8_ETC2_EAC; + if (s === JD) + return l === gi ? d.COMPRESSED_SRGB8_ETC2 : d.COMPRESSED_RGB8_ETC2; + if (s === KD) + return l === gi ? d.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC : d.COMPRESSED_RGBA8_ETC2_EAC; } else return null; - if (o === JD || o === KD || o === $D || o === e3 || o === t3 || o === n3 || o === r3 || o === i3 || o === a3 || o === s3 || o === o3 || o === l3 || o === u3 || o === c3) + if (s === $D || s === e3 || s === t3 || s === n3 || s === r3 || s === i3 || s === a3 || s === s3 || s === o3 || s === l3 || s === u3 || s === c3 || s === f3 || s === d3) if (d = e.get("WEBGL_compressed_texture_astc"), d !== null) { - if (o === JD) - return l === Mi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR : d.COMPRESSED_RGBA_ASTC_4x4_KHR; - if (o === KD) - return l === Mi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR : d.COMPRESSED_RGBA_ASTC_5x4_KHR; - if (o === $D) - return l === Mi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR : d.COMPRESSED_RGBA_ASTC_5x5_KHR; - if (o === e3) - return l === Mi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR : d.COMPRESSED_RGBA_ASTC_6x5_KHR; - if (o === t3) - return l === Mi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR : d.COMPRESSED_RGBA_ASTC_6x6_KHR; - if (o === n3) - return l === Mi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR : d.COMPRESSED_RGBA_ASTC_8x5_KHR; - if (o === r3) - return l === Mi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR : d.COMPRESSED_RGBA_ASTC_8x6_KHR; - if (o === i3) - return l === Mi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR : d.COMPRESSED_RGBA_ASTC_8x8_KHR; - if (o === a3) - return l === Mi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR : d.COMPRESSED_RGBA_ASTC_10x5_KHR; - if (o === s3) - return l === Mi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR : d.COMPRESSED_RGBA_ASTC_10x6_KHR; - if (o === o3) - return l === Mi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR : d.COMPRESSED_RGBA_ASTC_10x8_KHR; - if (o === l3) - return l === Mi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR : d.COMPRESSED_RGBA_ASTC_10x10_KHR; - if (o === u3) - return l === Mi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR : d.COMPRESSED_RGBA_ASTC_12x10_KHR; - if (o === c3) - return l === Mi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR : d.COMPRESSED_RGBA_ASTC_12x12_KHR; + if (s === $D) + return l === gi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR : d.COMPRESSED_RGBA_ASTC_4x4_KHR; + if (s === e3) + return l === gi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR : d.COMPRESSED_RGBA_ASTC_5x4_KHR; + if (s === t3) + return l === gi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR : d.COMPRESSED_RGBA_ASTC_5x5_KHR; + if (s === n3) + return l === gi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR : d.COMPRESSED_RGBA_ASTC_6x5_KHR; + if (s === r3) + return l === gi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR : d.COMPRESSED_RGBA_ASTC_6x6_KHR; + if (s === i3) + return l === gi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR : d.COMPRESSED_RGBA_ASTC_8x5_KHR; + if (s === a3) + return l === gi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR : d.COMPRESSED_RGBA_ASTC_8x6_KHR; + if (s === s3) + return l === gi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR : d.COMPRESSED_RGBA_ASTC_8x8_KHR; + if (s === o3) + return l === gi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR : d.COMPRESSED_RGBA_ASTC_10x5_KHR; + if (s === l3) + return l === gi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR : d.COMPRESSED_RGBA_ASTC_10x6_KHR; + if (s === u3) + return l === gi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR : d.COMPRESSED_RGBA_ASTC_10x8_KHR; + if (s === c3) + return l === gi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR : d.COMPRESSED_RGBA_ASTC_10x10_KHR; + if (s === f3) + return l === gi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR : d.COMPRESSED_RGBA_ASTC_12x10_KHR; + if (s === d3) + return l === gi ? d.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR : d.COMPRESSED_RGBA_ASTC_12x12_KHR; } else return null; - if (o === f3) + if (s === h3) if (d = e.get("EXT_texture_compression_bptc"), d !== null) { - if (o === f3) - return l === Mi ? d.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : d.COMPRESSED_RGBA_BPTC_UNORM_EXT; + if (s === h3) + return l === gi ? d.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : d.COMPRESSED_RGBA_BPTC_UNORM_EXT; } else return null; - return o === Kx ? r ? 34042 : (d = e.get("WEBGL_depth_texture"), d !== null ? d.UNSIGNED_INT_24_8_WEBGL : null) : a[o] !== void 0 ? a[o] : null; + return s === Kx ? r ? 34042 : (d = e.get("WEBGL_depth_texture"), d !== null ? d.UNSIGNED_INT_24_8_WEBGL : null) : a[s] !== void 0 ? a[s] : null; } return { convert: i }; } -class RF extends ho { +class VF extends ho { constructor(e = []) { super(), this.isArrayCamera = !0, this.cameras = e; } } -class Gb extends Xa { +class jw extends Xa { constructor() { super(), this.isGroup = !0, this.type = "Group"; } } -const oW = { type: "move" }; -class qA { +const xW = { type: "move" }; +class QA { constructor() { this._targetRay = null, this._grip = null, this._hand = null; } getHandSpace() { - return this._hand === null && (this._hand = new Gb(), this._hand.matrixAutoUpdate = !1, this._hand.visible = !1, this._hand.joints = {}, this._hand.inputState = { pinching: !1 }), this._hand; + return this._hand === null && (this._hand = new jw(), this._hand.matrixAutoUpdate = !1, this._hand.visible = !1, this._hand.joints = {}, this._hand.inputState = { pinching: !1 }), this._hand; } getTargetRaySpace() { - return this._targetRay === null && (this._targetRay = new Gb(), this._targetRay.matrixAutoUpdate = !1, this._targetRay.visible = !1, this._targetRay.hasLinearVelocity = !1, this._targetRay.linearVelocity = new ve(), this._targetRay.hasAngularVelocity = !1, this._targetRay.angularVelocity = new ve()), this._targetRay; + return this._targetRay === null && (this._targetRay = new jw(), this._targetRay.matrixAutoUpdate = !1, this._targetRay.visible = !1, this._targetRay.hasLinearVelocity = !1, this._targetRay.linearVelocity = new ge(), this._targetRay.hasAngularVelocity = !1, this._targetRay.angularVelocity = new ge()), this._targetRay; } getGripSpace() { - return this._grip === null && (this._grip = new Gb(), this._grip.matrixAutoUpdate = !1, this._grip.visible = !1, this._grip.hasLinearVelocity = !1, this._grip.linearVelocity = new ve(), this._grip.hasAngularVelocity = !1, this._grip.angularVelocity = new ve()), this._grip; + return this._grip === null && (this._grip = new jw(), this._grip.matrixAutoUpdate = !1, this._grip.visible = !1, this._grip.hasLinearVelocity = !1, this._grip.linearVelocity = new ge(), this._grip.hasAngularVelocity = !1, this._grip.angularVelocity = new ge()), this._grip; } dispatchEvent(e) { return this._targetRay !== null && this._targetRay.dispatchEvent(e), this._grip !== null && this._grip.dispatchEvent(e), this._hand !== null && this._hand.dispatchEvent(e), this; @@ -11476,409 +11476,409 @@ class qA { return this.dispatchEvent({ type: "disconnected", data: e }), this._targetRay !== null && (this._targetRay.visible = !1), this._grip !== null && (this._grip.visible = !1), this._hand !== null && (this._hand.visible = !1), this; } update(e, t, r) { - let i = null, o = null, l = null; - const d = this._targetRay, h = this._grip, m = this._hand; + let i = null, s = null, l = null; + const d = this._targetRay, p = this._grip, g = this._hand; if (e && t.session.visibilityState !== "visible-blurred") { - if (m && e.hand) { + if (g && e.hand) { l = !0; - for (const P of e.hand.values()) { - const U = t.getJointPose(P, r); - if (m.joints[P.jointName] === void 0) { - const k = new Gb(); - k.matrixAutoUpdate = !1, k.visible = !1, m.joints[P.jointName] = k, m.add(k); + for (const O of e.hand.values()) { + const U = t.getJointPose(O, r); + if (g.joints[O.jointName] === void 0) { + const I = new jw(); + I.matrixAutoUpdate = !1, I.visible = !1, g.joints[O.jointName] = I, g.add(I); } - const B = m.joints[P.jointName]; - U !== null && (B.matrix.fromArray(U.transform.matrix), B.matrix.decompose(B.position, B.rotation, B.scale), B.jointRadius = U.radius), B.visible = U !== null; + const H = g.joints[O.jointName]; + U !== null && (H.matrix.fromArray(U.transform.matrix), H.matrix.decompose(H.position, H.rotation, H.scale), H.jointRadius = U.radius), H.visible = U !== null; } - const S = m.joints["index-finger-tip"], _ = m.joints["thumb-tip"], T = S.position.distanceTo(_.position), C = 0.02, D = 5e-3; - m.inputState.pinching && T > C + D ? (m.inputState.pinching = !1, this.dispatchEvent({ + const _ = g.joints["index-finger-tip"], w = g.joints["thumb-tip"], T = _.position.distanceTo(w.position), R = 0.02, D = 5e-3; + g.inputState.pinching && T > R + D ? (g.inputState.pinching = !1, this.dispatchEvent({ type: "pinchend", handedness: e.handedness, target: this - })) : !m.inputState.pinching && T <= C - D && (m.inputState.pinching = !0, this.dispatchEvent({ + })) : !g.inputState.pinching && T <= R - D && (g.inputState.pinching = !0, this.dispatchEvent({ type: "pinchstart", handedness: e.handedness, target: this })); } else - h !== null && e.gripSpace && (o = t.getPose(e.gripSpace, r), o !== null && (h.matrix.fromArray(o.transform.matrix), h.matrix.decompose(h.position, h.rotation, h.scale), o.linearVelocity ? (h.hasLinearVelocity = !0, h.linearVelocity.copy(o.linearVelocity)) : h.hasLinearVelocity = !1, o.angularVelocity ? (h.hasAngularVelocity = !0, h.angularVelocity.copy(o.angularVelocity)) : h.hasAngularVelocity = !1)); - d !== null && (i = t.getPose(e.targetRaySpace, r), i === null && o !== null && (i = o), i !== null && (d.matrix.fromArray(i.transform.matrix), d.matrix.decompose(d.position, d.rotation, d.scale), i.linearVelocity ? (d.hasLinearVelocity = !0, d.linearVelocity.copy(i.linearVelocity)) : d.hasLinearVelocity = !1, i.angularVelocity ? (d.hasAngularVelocity = !0, d.angularVelocity.copy(i.angularVelocity)) : d.hasAngularVelocity = !1, this.dispatchEvent(oW))); + p !== null && e.gripSpace && (s = t.getPose(e.gripSpace, r), s !== null && (p.matrix.fromArray(s.transform.matrix), p.matrix.decompose(p.position, p.rotation, p.scale), s.linearVelocity ? (p.hasLinearVelocity = !0, p.linearVelocity.copy(s.linearVelocity)) : p.hasLinearVelocity = !1, s.angularVelocity ? (p.hasAngularVelocity = !0, p.angularVelocity.copy(s.angularVelocity)) : p.hasAngularVelocity = !1)); + d !== null && (i = t.getPose(e.targetRaySpace, r), i === null && s !== null && (i = s), i !== null && (d.matrix.fromArray(i.transform.matrix), d.matrix.decompose(d.position, d.rotation, d.scale), i.linearVelocity ? (d.hasLinearVelocity = !0, d.linearVelocity.copy(i.linearVelocity)) : d.hasLinearVelocity = !1, i.angularVelocity ? (d.hasAngularVelocity = !0, d.angularVelocity.copy(i.angularVelocity)) : d.hasAngularVelocity = !1, this.dispatchEvent(xW))); } - return d !== null && (d.visible = i !== null), h !== null && (h.visible = o !== null), m !== null && (m.visible = l !== null), this; + return d !== null && (d.visible = i !== null), p !== null && (p.visible = s !== null), g !== null && (g.visible = l !== null), this; } } -class K3 extends iu { - constructor(e, t, r, i, o, l, d, h, m, S) { - if (S = S !== void 0 ? S : $x, S !== $x && S !== r1) +class K3 extends su { + constructor(e, t, r, i, s, l, d, p, g, _) { + if (_ = _ !== void 0 ? _ : $x, _ !== $x && _ !== r1) throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat"); - r === void 0 && S === $x && (r = D0), r === void 0 && S === r1 && (r = Kx), super(null, i, o, l, d, h, S, r, m), this.isDepthTexture = !0, this.image = { width: e, height: t }, this.magFilter = d !== void 0 ? d : fo, this.minFilter = h !== void 0 ? h : fo, this.flipY = !1, this.generateMipmaps = !1; + r === void 0 && _ === $x && (r = L0), r === void 0 && _ === r1 && (r = Kx), super(null, i, s, l, d, p, _, r, g), this.isDepthTexture = !0, this.image = { width: e, height: t }, this.magFilter = d !== void 0 ? d : fo, this.minFilter = p !== void 0 ? p : fo, this.flipY = !1, this.generateMipmaps = !1; } } -class lW extends Mm { +class _W extends Cm { constructor(e, t) { super(); const r = this; - let i = null, o = 1, l = null, d = "local-floor", h = null, m = null, S = null, _ = null, T = null, C = null; + let i = null, s = 1, l = null, d = "local-floor", p = null, g = null, _ = null, w = null, T = null, R = null; const D = t.getContextAttributes(); - let P = null, U = null; - const B = [], k = [], V = new ho(); - V.layers.enable(1), V.viewport = new la(); - const I = new ho(); - I.layers.enable(2), I.viewport = new la(); - const X = [V, I], J = new RF(); - J.layers.enable(1), J.layers.enable(2); - let $ = null, W = null; - this.cameraAutoUpdate = !0, this.enabled = !1, this.isPresenting = !1, this.getController = function(de) { - let ce = B[de]; - return ce === void 0 && (ce = new qA(), B[de] = ce), ce.getTargetRaySpace(); - }, this.getControllerGrip = function(de) { - let ce = B[de]; - return ce === void 0 && (ce = new qA(), B[de] = ce), ce.getGripSpace(); - }, this.getHand = function(de) { - let ce = B[de]; - return ce === void 0 && (ce = new qA(), B[de] = ce), ce.getHandSpace(); + let O = null, U = null; + const H = [], I = [], G = new ho(); + G.layers.enable(1), G.viewport = new ra(); + const B = new ho(); + B.layers.enable(2), B.viewport = new ra(); + const Q = [G, B], K = new VF(); + K.layers.enable(1), K.layers.enable(2); + let te = null, Y = null; + this.cameraAutoUpdate = !0, this.enabled = !1, this.isPresenting = !1, this.getController = function(fe) { + let he = H[fe]; + return he === void 0 && (he = new QA(), H[fe] = he), he.getTargetRaySpace(); + }, this.getControllerGrip = function(fe) { + let he = H[fe]; + return he === void 0 && (he = new QA(), H[fe] = he), he.getGripSpace(); + }, this.getHand = function(fe) { + let he = H[fe]; + return he === void 0 && (he = new QA(), H[fe] = he), he.getHandSpace(); }; - function ne(de) { - const ce = k.indexOf(de.inputSource); - if (ce === -1) + function re(fe) { + const he = I.indexOf(fe.inputSource); + if (he === -1) return; - const ye = B[ce]; - ye !== void 0 && ye.dispatchEvent({ type: de.type, data: de.inputSource }); + const ye = H[he]; + ye !== void 0 && ye.dispatchEvent({ type: fe.type, data: fe.inputSource }); } - function ie() { - i.removeEventListener("select", ne), i.removeEventListener("selectstart", ne), i.removeEventListener("selectend", ne), i.removeEventListener("squeeze", ne), i.removeEventListener("squeezestart", ne), i.removeEventListener("squeezeend", ne), i.removeEventListener("end", ie), i.removeEventListener("inputsourceschange", fe); - for (let de = 0; de < B.length; de++) { - const ce = k[de]; - ce !== null && (k[de] = null, B[de].disconnect(ce)); + function se() { + i.removeEventListener("select", re), i.removeEventListener("selectstart", re), i.removeEventListener("selectend", re), i.removeEventListener("squeeze", re), i.removeEventListener("squeezestart", re), i.removeEventListener("squeezeend", re), i.removeEventListener("end", se), i.removeEventListener("inputsourceschange", ce); + for (let fe = 0; fe < H.length; fe++) { + const he = I[fe]; + he !== null && (I[fe] = null, H[fe].disconnect(he)); } - $ = null, W = null, e.setRenderTarget(P), T = null, _ = null, S = null, i = null, U = null, pe.stop(), r.isPresenting = !1, r.dispatchEvent({ type: "sessionend" }); + te = null, Y = null, e.setRenderTarget(O), T = null, w = null, _ = null, i = null, U = null, ve.stop(), r.isPresenting = !1, r.dispatchEvent({ type: "sessionend" }); } - this.setFramebufferScaleFactor = function(de) { - o = de, r.isPresenting === !0 && console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting."); - }, this.setReferenceSpaceType = function(de) { - d = de, r.isPresenting === !0 && console.warn("THREE.WebXRManager: Cannot change reference space type while presenting."); + this.setFramebufferScaleFactor = function(fe) { + s = fe, r.isPresenting === !0 && console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting."); + }, this.setReferenceSpaceType = function(fe) { + d = fe, r.isPresenting === !0 && console.warn("THREE.WebXRManager: Cannot change reference space type while presenting."); }, this.getReferenceSpace = function() { - return h || l; - }, this.setReferenceSpace = function(de) { - h = de; + return p || l; + }, this.setReferenceSpace = function(fe) { + p = fe; }, this.getBaseLayer = function() { - return _ !== null ? _ : T; + return w !== null ? w : T; }, this.getBinding = function() { - return S; + return _; }, this.getFrame = function() { - return C; + return R; }, this.getSession = function() { return i; - }, this.setSession = async function(de) { - if (i = de, i !== null) { - if (P = e.getRenderTarget(), i.addEventListener("select", ne), i.addEventListener("selectstart", ne), i.addEventListener("selectend", ne), i.addEventListener("squeeze", ne), i.addEventListener("squeezestart", ne), i.addEventListener("squeezeend", ne), i.addEventListener("end", ie), i.addEventListener("inputsourceschange", fe), D.xrCompatible !== !0 && await t.makeXRCompatible(), i.renderState.layers === void 0 || e.capabilities.isWebGL2 === !1) { - const ce = { + }, this.setSession = async function(fe) { + if (i = fe, i !== null) { + if (O = e.getRenderTarget(), i.addEventListener("select", re), i.addEventListener("selectstart", re), i.addEventListener("selectend", re), i.addEventListener("squeeze", re), i.addEventListener("squeezestart", re), i.addEventListener("squeezeend", re), i.addEventListener("end", se), i.addEventListener("inputsourceschange", ce), D.xrCompatible !== !0 && await t.makeXRCompatible(), i.renderState.layers === void 0 || e.capabilities.isWebGL2 === !1) { + const he = { antialias: i.renderState.layers === void 0 ? D.antialias : !0, alpha: D.alpha, depth: D.depth, stencil: D.stencil, - framebufferScaleFactor: o + framebufferScaleFactor: s }; - T = new XRWebGLLayer(i, t, ce), i.updateRenderState({ baseLayer: T }), U = new po( + T = new XRWebGLLayer(i, t, he), i.updateRenderState({ baseLayer: T }), U = new po( T.framebufferWidth, T.framebufferHeight, { - format: Sm, - type: Gf, + format: zp, + type: df, encoding: e.outputEncoding } ); } else { - let ce = null, ye = null, we = null; - D.depth && (we = D.stencil ? 35056 : 33190, ce = D.stencil ? r1 : $x, ye = D.stencil ? Kx : D0); - const Xe = { + let he = null, ye = null, Ee = null; + D.depth && (Ee = D.stencil ? 35056 : 33190, he = D.stencil ? r1 : $x, ye = D.stencil ? Kx : L0); + const Ve = { colorFormat: 32856, - depthFormat: we, - scaleFactor: o + depthFormat: Ee, + scaleFactor: s }; - S = new XRWebGLBinding(i, t), _ = S.createProjectionLayer(Xe), i.updateRenderState({ layers: [_] }), U = new po( - _.textureWidth, - _.textureHeight, + _ = new XRWebGLBinding(i, t), w = _.createProjectionLayer(Ve), i.updateRenderState({ layers: [w] }), U = new po( + w.textureWidth, + w.textureHeight, { - format: Sm, - type: Gf, - depthTexture: new K3(_.textureWidth, _.textureHeight, ye, void 0, void 0, void 0, void 0, void 0, void 0, ce), + format: zp, + type: df, + depthTexture: new K3(w.textureWidth, w.textureHeight, ye, void 0, void 0, void 0, void 0, void 0, void 0, he), stencilBuffer: D.stencil, encoding: e.outputEncoding, samples: D.antialias ? 4 : 0 } ); const Je = e.properties.get(U); - Je.__ignoreDepthValues = _.ignoreDepthValues; + Je.__ignoreDepthValues = w.ignoreDepthValues; } - U.isXRRenderTarget = !0, this.setFoveation(1), h = null, l = await i.requestReferenceSpace(d), pe.setContext(i), pe.start(), r.isPresenting = !0, r.dispatchEvent({ type: "sessionstart" }); + U.isXRRenderTarget = !0, this.setFoveation(1), p = null, l = await i.requestReferenceSpace(d), ve.setContext(i), ve.start(), r.isPresenting = !0, r.dispatchEvent({ type: "sessionstart" }); } }; - function fe(de) { - for (let ce = 0; ce < de.removed.length; ce++) { - const ye = de.removed[ce], we = k.indexOf(ye); - we >= 0 && (k[we] = null, B[we].dispatchEvent({ type: "disconnected", data: ye })); - } - for (let ce = 0; ce < de.added.length; ce++) { - const ye = de.added[ce]; - let we = k.indexOf(ye); - if (we === -1) { - for (let Je = 0; Je < B.length; Je++) - if (Je >= k.length) { - k.push(ye), we = Je; + function ce(fe) { + for (let he = 0; he < fe.removed.length; he++) { + const ye = fe.removed[he], Ee = I.indexOf(ye); + Ee >= 0 && (I[Ee] = null, H[Ee].dispatchEvent({ type: "disconnected", data: ye })); + } + for (let he = 0; he < fe.added.length; he++) { + const ye = fe.added[he]; + let Ee = I.indexOf(ye); + if (Ee === -1) { + for (let Je = 0; Je < H.length; Je++) + if (Je >= I.length) { + I.push(ye), Ee = Je; break; - } else if (k[Je] === null) { - k[Je] = ye, we = Je; + } else if (I[Je] === null) { + I[Je] = ye, Ee = Je; break; } - if (we === -1) + if (Ee === -1) break; } - const Xe = B[we]; - Xe && Xe.dispatchEvent({ type: "connected", data: ye }); + const Ve = H[Ee]; + Ve && Ve.dispatchEvent({ type: "connected", data: ye }); } } - const le = new ve(), Ee = new ve(); - function he(de, ce, ye) { - le.setFromMatrixPosition(ce.matrixWorld), Ee.setFromMatrixPosition(ye.matrixWorld); - const we = le.distanceTo(Ee), Xe = ce.projectionMatrix.elements, Je = ye.projectionMatrix.elements, st = Xe[14] / (Xe[10] - 1), Ue = Xe[14] / (Xe[10] + 1), ot = (Xe[9] + 1) / Xe[5], rt = (Xe[9] - 1) / Xe[5], _t = (Xe[8] - 1) / Xe[0], Rt = (Je[8] + 1) / Je[0], Ot = st * _t, He = st * Rt, et = we / (-_t + Rt), mt = et * -_t; - ce.matrixWorld.decompose(de.position, de.quaternion, de.scale), de.translateX(mt), de.translateZ(et), de.matrixWorld.compose(de.position, de.quaternion, de.scale), de.matrixWorldInverse.copy(de.matrixWorld).invert(); - const vt = st + et, bt = Ue + et, Qt = Ot - mt, ft = He + (we - mt), Vt = ot * Ue / bt * vt, Jt = rt * Ue / bt * vt; - de.projectionMatrix.makePerspective(Qt, ft, Vt, Jt, vt, bt); + const ue = new ge(), Me = new ge(); + function me(fe, he, ye) { + ue.setFromMatrixPosition(he.matrixWorld), Me.setFromMatrixPosition(ye.matrixWorld); + const Ee = ue.distanceTo(Me), Ve = he.projectionMatrix.elements, Je = ye.projectionMatrix.elements, rt = Ve[14] / (Ve[10] - 1), Ne = Ve[14] / (Ve[10] + 1), ct = (Ve[9] + 1) / Ve[5], tt = (Ve[9] - 1) / Ve[5], Tt = (Ve[8] - 1) / Ve[0], gt = (Je[8] + 1) / Je[0], ft = rt * Tt, Ie = rt * gt, qe = Ee / (-Tt + gt), dt = qe * -Tt; + he.matrixWorld.decompose(fe.position, fe.quaternion, fe.scale), fe.translateX(dt), fe.translateZ(qe), fe.matrixWorld.compose(fe.position, fe.quaternion, fe.scale), fe.matrixWorldInverse.copy(fe.matrixWorld).invert(); + const ht = rt + qe, xt = Ne + qe, Vt = ft - dt, yt = Ie + (Ee - dt), Nt = ct * Ne / xt * ht, Zt = tt * Ne / xt * ht; + fe.projectionMatrix.makePerspective(Vt, yt, Nt, Zt, ht, xt); } - function Fe(de, ce) { - ce === null ? de.matrixWorld.copy(de.matrix) : de.matrixWorld.multiplyMatrices(ce.matrixWorld, de.matrix), de.matrixWorldInverse.copy(de.matrixWorld).invert(); + function De(fe, he) { + he === null ? fe.matrixWorld.copy(fe.matrix) : fe.matrixWorld.multiplyMatrices(he.matrixWorld, fe.matrix), fe.matrixWorldInverse.copy(fe.matrixWorld).invert(); } - this.updateCamera = function(de) { + this.updateCamera = function(fe) { if (i === null) return; - J.near = I.near = V.near = de.near, J.far = I.far = V.far = de.far, ($ !== J.near || W !== J.far) && (i.updateRenderState({ - depthNear: J.near, - depthFar: J.far - }), $ = J.near, W = J.far); - const ce = de.parent, ye = J.cameras; - Fe(J, ce); - for (let Xe = 0; Xe < ye.length; Xe++) - Fe(ye[Xe], ce); - J.matrixWorld.decompose(J.position, J.quaternion, J.scale), de.position.copy(J.position), de.quaternion.copy(J.quaternion), de.scale.copy(J.scale), de.matrix.copy(J.matrix), de.matrixWorld.copy(J.matrixWorld); - const we = de.children; - for (let Xe = 0, Je = we.length; Xe < Je; Xe++) - we[Xe].updateMatrixWorld(!0); - ye.length === 2 ? he(J, V, I) : J.projectionMatrix.copy(V.projectionMatrix); + K.near = B.near = G.near = fe.near, K.far = B.far = G.far = fe.far, (te !== K.near || Y !== K.far) && (i.updateRenderState({ + depthNear: K.near, + depthFar: K.far + }), te = K.near, Y = K.far); + const he = fe.parent, ye = K.cameras; + De(K, he); + for (let Ve = 0; Ve < ye.length; Ve++) + De(ye[Ve], he); + K.matrixWorld.decompose(K.position, K.quaternion, K.scale), fe.position.copy(K.position), fe.quaternion.copy(K.quaternion), fe.scale.copy(K.scale), fe.matrix.copy(K.matrix), fe.matrixWorld.copy(K.matrixWorld); + const Ee = fe.children; + for (let Ve = 0, Je = Ee.length; Ve < Je; Ve++) + Ee[Ve].updateMatrixWorld(!0); + ye.length === 2 ? me(K, G, B) : K.projectionMatrix.copy(G.projectionMatrix); }, this.getCamera = function() { - return J; + return K; }, this.getFoveation = function() { - if (_ !== null) - return _.fixedFoveation; + if (w !== null) + return w.fixedFoveation; if (T !== null) return T.fixedFoveation; - }, this.setFoveation = function(de) { - _ !== null && (_.fixedFoveation = de), T !== null && T.fixedFoveation !== void 0 && (T.fixedFoveation = de); + }, this.setFoveation = function(fe) { + w !== null && (w.fixedFoveation = fe), T !== null && T.fixedFoveation !== void 0 && (T.fixedFoveation = fe); }; - let Ce = null; - function Be(de, ce) { - if (m = ce.getViewerPose(h || l), C = ce, m !== null) { - const ye = m.views; + let Re = null; + function He(fe, he) { + if (g = he.getViewerPose(p || l), R = he, g !== null) { + const ye = g.views; T !== null && (e.setRenderTargetFramebuffer(U, T.framebuffer), e.setRenderTarget(U)); - let we = !1; - ye.length !== J.cameras.length && (J.cameras.length = 0, we = !0); - for (let Xe = 0; Xe < ye.length; Xe++) { - const Je = ye[Xe]; - let st = null; + let Ee = !1; + ye.length !== K.cameras.length && (K.cameras.length = 0, Ee = !0); + for (let Ve = 0; Ve < ye.length; Ve++) { + const Je = ye[Ve]; + let rt = null; if (T !== null) - st = T.getViewport(Je); + rt = T.getViewport(Je); else { - const ot = S.getViewSubImage(_, Je); - st = ot.viewport, Xe === 0 && (e.setRenderTargetTextures( + const ct = _.getViewSubImage(w, Je); + rt = ct.viewport, Ve === 0 && (e.setRenderTargetTextures( U, - ot.colorTexture, - _.ignoreDepthValues ? void 0 : ot.depthStencilTexture + ct.colorTexture, + w.ignoreDepthValues ? void 0 : ct.depthStencilTexture ), e.setRenderTarget(U)); } - let Ue = X[Xe]; - Ue === void 0 && (Ue = new ho(), Ue.layers.enable(Xe), Ue.viewport = new la(), X[Xe] = Ue), Ue.matrix.fromArray(Je.transform.matrix), Ue.projectionMatrix.fromArray(Je.projectionMatrix), Ue.viewport.set(st.x, st.y, st.width, st.height), Xe === 0 && J.matrix.copy(Ue.matrix), we === !0 && J.cameras.push(Ue); + let Ne = Q[Ve]; + Ne === void 0 && (Ne = new ho(), Ne.layers.enable(Ve), Ne.viewport = new ra(), Q[Ve] = Ne), Ne.matrix.fromArray(Je.transform.matrix), Ne.projectionMatrix.fromArray(Je.projectionMatrix), Ne.viewport.set(rt.x, rt.y, rt.width, rt.height), Ve === 0 && K.matrix.copy(Ne.matrix), Ee === !0 && K.cameras.push(Ne); } } - for (let ye = 0; ye < B.length; ye++) { - const we = k[ye], Xe = B[ye]; - we !== null && Xe !== void 0 && Xe.update(we, ce, h || l); + for (let ye = 0; ye < H.length; ye++) { + const Ee = I[ye], Ve = H[ye]; + Ee !== null && Ve !== void 0 && Ve.update(Ee, he, p || l); } - Ce && Ce(de, ce), C = null; + Re && Re(fe, he), R = null; } - const pe = new _F(); - pe.setAnimationLoop(Be), this.setAnimationLoop = function(de) { - Ce = de; + const ve = new zF(); + ve.setAnimationLoop(He), this.setAnimationLoop = function(fe) { + Re = fe; }, this.dispose = function() { }; } } -function uW(a, e) { - function t(P, U) { - P.fogColor.value.copy(U.color), U.isFog ? (P.fogNear.value = U.near, P.fogFar.value = U.far) : U.isFogExp2 && (P.fogDensity.value = U.density); +function SW(a, e) { + function t(O, U) { + O.fogColor.value.copy(U.color), U.isFog ? (O.fogNear.value = U.near, O.fogFar.value = U.far) : U.isFogExp2 && (O.fogDensity.value = U.density); } - function r(P, U, B, k, V) { - U.isMeshBasicMaterial || U.isMeshLambertMaterial ? i(P, U) : U.isMeshToonMaterial ? (i(P, U), S(P, U)) : U.isMeshPhongMaterial ? (i(P, U), m(P, U)) : U.isMeshStandardMaterial ? (i(P, U), _(P, U), U.isMeshPhysicalMaterial && T(P, U, V)) : U.isMeshMatcapMaterial ? (i(P, U), C(P, U)) : U.isMeshDepthMaterial ? i(P, U) : U.isMeshDistanceMaterial ? (i(P, U), D(P, U)) : U.isMeshNormalMaterial ? i(P, U) : U.isLineBasicMaterial ? (o(P, U), U.isLineDashedMaterial && l(P, U)) : U.isPointsMaterial ? d(P, U, B, k) : U.isSpriteMaterial ? h(P, U) : U.isShadowMaterial ? (P.color.value.copy(U.color), P.opacity.value = U.opacity) : U.isShaderMaterial && (U.uniformsNeedUpdate = !1); + function r(O, U, H, I, G) { + U.isMeshBasicMaterial || U.isMeshLambertMaterial ? i(O, U) : U.isMeshToonMaterial ? (i(O, U), _(O, U)) : U.isMeshPhongMaterial ? (i(O, U), g(O, U)) : U.isMeshStandardMaterial ? (i(O, U), w(O, U), U.isMeshPhysicalMaterial && T(O, U, G)) : U.isMeshMatcapMaterial ? (i(O, U), R(O, U)) : U.isMeshDepthMaterial ? i(O, U) : U.isMeshDistanceMaterial ? (i(O, U), D(O, U)) : U.isMeshNormalMaterial ? i(O, U) : U.isLineBasicMaterial ? (s(O, U), U.isLineDashedMaterial && l(O, U)) : U.isPointsMaterial ? d(O, U, H, I) : U.isSpriteMaterial ? p(O, U) : U.isShadowMaterial ? (O.color.value.copy(U.color), O.opacity.value = U.opacity) : U.isShaderMaterial && (U.uniformsNeedUpdate = !1); } - function i(P, U) { - P.opacity.value = U.opacity, U.color && P.diffuse.value.copy(U.color), U.emissive && P.emissive.value.copy(U.emissive).multiplyScalar(U.emissiveIntensity), U.map && (P.map.value = U.map), U.alphaMap && (P.alphaMap.value = U.alphaMap), U.bumpMap && (P.bumpMap.value = U.bumpMap, P.bumpScale.value = U.bumpScale, U.side === uf && (P.bumpScale.value *= -1)), U.displacementMap && (P.displacementMap.value = U.displacementMap, P.displacementScale.value = U.displacementScale, P.displacementBias.value = U.displacementBias), U.emissiveMap && (P.emissiveMap.value = U.emissiveMap), U.normalMap && (P.normalMap.value = U.normalMap, P.normalScale.value.copy(U.normalScale), U.side === uf && P.normalScale.value.negate()), U.specularMap && (P.specularMap.value = U.specularMap), U.alphaTest > 0 && (P.alphaTest.value = U.alphaTest); - const B = e.get(U).envMap; - if (B && (P.envMap.value = B, P.flipEnvMap.value = B.isCubeTexture && B.isRenderTargetTexture === !1 ? -1 : 1, P.reflectivity.value = U.reflectivity, P.ior.value = U.ior, P.refractionRatio.value = U.refractionRatio), U.lightMap) { - P.lightMap.value = U.lightMap; - const I = a.physicallyCorrectLights !== !0 ? Math.PI : 1; - P.lightMapIntensity.value = U.lightMapIntensity * I; + function i(O, U) { + O.opacity.value = U.opacity, U.color && O.diffuse.value.copy(U.color), U.emissive && O.emissive.value.copy(U.emissive).multiplyScalar(U.emissiveIntensity), U.map && (O.map.value = U.map), U.alphaMap && (O.alphaMap.value = U.alphaMap), U.bumpMap && (O.bumpMap.value = U.bumpMap, O.bumpScale.value = U.bumpScale, U.side === cf && (O.bumpScale.value *= -1)), U.displacementMap && (O.displacementMap.value = U.displacementMap, O.displacementScale.value = U.displacementScale, O.displacementBias.value = U.displacementBias), U.emissiveMap && (O.emissiveMap.value = U.emissiveMap), U.normalMap && (O.normalMap.value = U.normalMap, O.normalScale.value.copy(U.normalScale), U.side === cf && O.normalScale.value.negate()), U.specularMap && (O.specularMap.value = U.specularMap), U.alphaTest > 0 && (O.alphaTest.value = U.alphaTest); + const H = e.get(U).envMap; + if (H && (O.envMap.value = H, O.flipEnvMap.value = H.isCubeTexture && H.isRenderTargetTexture === !1 ? -1 : 1, O.reflectivity.value = U.reflectivity, O.ior.value = U.ior, O.refractionRatio.value = U.refractionRatio), U.lightMap) { + O.lightMap.value = U.lightMap; + const B = a.physicallyCorrectLights !== !0 ? Math.PI : 1; + O.lightMapIntensity.value = U.lightMapIntensity * B; } - U.aoMap && (P.aoMap.value = U.aoMap, P.aoMapIntensity.value = U.aoMapIntensity); - let k; - U.map ? k = U.map : U.specularMap ? k = U.specularMap : U.displacementMap ? k = U.displacementMap : U.normalMap ? k = U.normalMap : U.bumpMap ? k = U.bumpMap : U.roughnessMap ? k = U.roughnessMap : U.metalnessMap ? k = U.metalnessMap : U.alphaMap ? k = U.alphaMap : U.emissiveMap ? k = U.emissiveMap : U.clearcoatMap ? k = U.clearcoatMap : U.clearcoatNormalMap ? k = U.clearcoatNormalMap : U.clearcoatRoughnessMap ? k = U.clearcoatRoughnessMap : U.iridescenceMap ? k = U.iridescenceMap : U.iridescenceThicknessMap ? k = U.iridescenceThicknessMap : U.specularIntensityMap ? k = U.specularIntensityMap : U.specularColorMap ? k = U.specularColorMap : U.transmissionMap ? k = U.transmissionMap : U.thicknessMap ? k = U.thicknessMap : U.sheenColorMap ? k = U.sheenColorMap : U.sheenRoughnessMap && (k = U.sheenRoughnessMap), k !== void 0 && (k.isWebGLRenderTarget && (k = k.texture), k.matrixAutoUpdate === !0 && k.updateMatrix(), P.uvTransform.value.copy(k.matrix)); - let V; - U.aoMap ? V = U.aoMap : U.lightMap && (V = U.lightMap), V !== void 0 && (V.isWebGLRenderTarget && (V = V.texture), V.matrixAutoUpdate === !0 && V.updateMatrix(), P.uv2Transform.value.copy(V.matrix)); + U.aoMap && (O.aoMap.value = U.aoMap, O.aoMapIntensity.value = U.aoMapIntensity); + let I; + U.map ? I = U.map : U.specularMap ? I = U.specularMap : U.displacementMap ? I = U.displacementMap : U.normalMap ? I = U.normalMap : U.bumpMap ? I = U.bumpMap : U.roughnessMap ? I = U.roughnessMap : U.metalnessMap ? I = U.metalnessMap : U.alphaMap ? I = U.alphaMap : U.emissiveMap ? I = U.emissiveMap : U.clearcoatMap ? I = U.clearcoatMap : U.clearcoatNormalMap ? I = U.clearcoatNormalMap : U.clearcoatRoughnessMap ? I = U.clearcoatRoughnessMap : U.iridescenceMap ? I = U.iridescenceMap : U.iridescenceThicknessMap ? I = U.iridescenceThicknessMap : U.specularIntensityMap ? I = U.specularIntensityMap : U.specularColorMap ? I = U.specularColorMap : U.transmissionMap ? I = U.transmissionMap : U.thicknessMap ? I = U.thicknessMap : U.sheenColorMap ? I = U.sheenColorMap : U.sheenRoughnessMap && (I = U.sheenRoughnessMap), I !== void 0 && (I.isWebGLRenderTarget && (I = I.texture), I.matrixAutoUpdate === !0 && I.updateMatrix(), O.uvTransform.value.copy(I.matrix)); + let G; + U.aoMap ? G = U.aoMap : U.lightMap && (G = U.lightMap), G !== void 0 && (G.isWebGLRenderTarget && (G = G.texture), G.matrixAutoUpdate === !0 && G.updateMatrix(), O.uv2Transform.value.copy(G.matrix)); } - function o(P, U) { - P.diffuse.value.copy(U.color), P.opacity.value = U.opacity; + function s(O, U) { + O.diffuse.value.copy(U.color), O.opacity.value = U.opacity; } - function l(P, U) { - P.dashSize.value = U.dashSize, P.totalSize.value = U.dashSize + U.gapSize, P.scale.value = U.scale; + function l(O, U) { + O.dashSize.value = U.dashSize, O.totalSize.value = U.dashSize + U.gapSize, O.scale.value = U.scale; } - function d(P, U, B, k) { - P.diffuse.value.copy(U.color), P.opacity.value = U.opacity, P.size.value = U.size * B, P.scale.value = k * 0.5, U.map && (P.map.value = U.map), U.alphaMap && (P.alphaMap.value = U.alphaMap), U.alphaTest > 0 && (P.alphaTest.value = U.alphaTest); - let V; - U.map ? V = U.map : U.alphaMap && (V = U.alphaMap), V !== void 0 && (V.matrixAutoUpdate === !0 && V.updateMatrix(), P.uvTransform.value.copy(V.matrix)); + function d(O, U, H, I) { + O.diffuse.value.copy(U.color), O.opacity.value = U.opacity, O.size.value = U.size * H, O.scale.value = I * 0.5, U.map && (O.map.value = U.map), U.alphaMap && (O.alphaMap.value = U.alphaMap), U.alphaTest > 0 && (O.alphaTest.value = U.alphaTest); + let G; + U.map ? G = U.map : U.alphaMap && (G = U.alphaMap), G !== void 0 && (G.matrixAutoUpdate === !0 && G.updateMatrix(), O.uvTransform.value.copy(G.matrix)); } - function h(P, U) { - P.diffuse.value.copy(U.color), P.opacity.value = U.opacity, P.rotation.value = U.rotation, U.map && (P.map.value = U.map), U.alphaMap && (P.alphaMap.value = U.alphaMap), U.alphaTest > 0 && (P.alphaTest.value = U.alphaTest); - let B; - U.map ? B = U.map : U.alphaMap && (B = U.alphaMap), B !== void 0 && (B.matrixAutoUpdate === !0 && B.updateMatrix(), P.uvTransform.value.copy(B.matrix)); + function p(O, U) { + O.diffuse.value.copy(U.color), O.opacity.value = U.opacity, O.rotation.value = U.rotation, U.map && (O.map.value = U.map), U.alphaMap && (O.alphaMap.value = U.alphaMap), U.alphaTest > 0 && (O.alphaTest.value = U.alphaTest); + let H; + U.map ? H = U.map : U.alphaMap && (H = U.alphaMap), H !== void 0 && (H.matrixAutoUpdate === !0 && H.updateMatrix(), O.uvTransform.value.copy(H.matrix)); } - function m(P, U) { - P.specular.value.copy(U.specular), P.shininess.value = Math.max(U.shininess, 1e-4); + function g(O, U) { + O.specular.value.copy(U.specular), O.shininess.value = Math.max(U.shininess, 1e-4); } - function S(P, U) { - U.gradientMap && (P.gradientMap.value = U.gradientMap); + function _(O, U) { + U.gradientMap && (O.gradientMap.value = U.gradientMap); } - function _(P, U) { - P.roughness.value = U.roughness, P.metalness.value = U.metalness, U.roughnessMap && (P.roughnessMap.value = U.roughnessMap), U.metalnessMap && (P.metalnessMap.value = U.metalnessMap), e.get(U).envMap && (P.envMapIntensity.value = U.envMapIntensity); + function w(O, U) { + O.roughness.value = U.roughness, O.metalness.value = U.metalness, U.roughnessMap && (O.roughnessMap.value = U.roughnessMap), U.metalnessMap && (O.metalnessMap.value = U.metalnessMap), e.get(U).envMap && (O.envMapIntensity.value = U.envMapIntensity); } - function T(P, U, B) { - P.ior.value = U.ior, U.sheen > 0 && (P.sheenColor.value.copy(U.sheenColor).multiplyScalar(U.sheen), P.sheenRoughness.value = U.sheenRoughness, U.sheenColorMap && (P.sheenColorMap.value = U.sheenColorMap), U.sheenRoughnessMap && (P.sheenRoughnessMap.value = U.sheenRoughnessMap)), U.clearcoat > 0 && (P.clearcoat.value = U.clearcoat, P.clearcoatRoughness.value = U.clearcoatRoughness, U.clearcoatMap && (P.clearcoatMap.value = U.clearcoatMap), U.clearcoatRoughnessMap && (P.clearcoatRoughnessMap.value = U.clearcoatRoughnessMap), U.clearcoatNormalMap && (P.clearcoatNormalScale.value.copy(U.clearcoatNormalScale), P.clearcoatNormalMap.value = U.clearcoatNormalMap, U.side === uf && P.clearcoatNormalScale.value.negate())), U.iridescence > 0 && (P.iridescence.value = U.iridescence, P.iridescenceIOR.value = U.iridescenceIOR, P.iridescenceThicknessMinimum.value = U.iridescenceThicknessRange[0], P.iridescenceThicknessMaximum.value = U.iridescenceThicknessRange[1], U.iridescenceMap && (P.iridescenceMap.value = U.iridescenceMap), U.iridescenceThicknessMap && (P.iridescenceThicknessMap.value = U.iridescenceThicknessMap)), U.transmission > 0 && (P.transmission.value = U.transmission, P.transmissionSamplerMap.value = B.texture, P.transmissionSamplerSize.value.set(B.width, B.height), U.transmissionMap && (P.transmissionMap.value = U.transmissionMap), P.thickness.value = U.thickness, U.thicknessMap && (P.thicknessMap.value = U.thicknessMap), P.attenuationDistance.value = U.attenuationDistance, P.attenuationColor.value.copy(U.attenuationColor)), P.specularIntensity.value = U.specularIntensity, P.specularColor.value.copy(U.specularColor), U.specularIntensityMap && (P.specularIntensityMap.value = U.specularIntensityMap), U.specularColorMap && (P.specularColorMap.value = U.specularColorMap); + function T(O, U, H) { + O.ior.value = U.ior, U.sheen > 0 && (O.sheenColor.value.copy(U.sheenColor).multiplyScalar(U.sheen), O.sheenRoughness.value = U.sheenRoughness, U.sheenColorMap && (O.sheenColorMap.value = U.sheenColorMap), U.sheenRoughnessMap && (O.sheenRoughnessMap.value = U.sheenRoughnessMap)), U.clearcoat > 0 && (O.clearcoat.value = U.clearcoat, O.clearcoatRoughness.value = U.clearcoatRoughness, U.clearcoatMap && (O.clearcoatMap.value = U.clearcoatMap), U.clearcoatRoughnessMap && (O.clearcoatRoughnessMap.value = U.clearcoatRoughnessMap), U.clearcoatNormalMap && (O.clearcoatNormalScale.value.copy(U.clearcoatNormalScale), O.clearcoatNormalMap.value = U.clearcoatNormalMap, U.side === cf && O.clearcoatNormalScale.value.negate())), U.iridescence > 0 && (O.iridescence.value = U.iridescence, O.iridescenceIOR.value = U.iridescenceIOR, O.iridescenceThicknessMinimum.value = U.iridescenceThicknessRange[0], O.iridescenceThicknessMaximum.value = U.iridescenceThicknessRange[1], U.iridescenceMap && (O.iridescenceMap.value = U.iridescenceMap), U.iridescenceThicknessMap && (O.iridescenceThicknessMap.value = U.iridescenceThicknessMap)), U.transmission > 0 && (O.transmission.value = U.transmission, O.transmissionSamplerMap.value = H.texture, O.transmissionSamplerSize.value.set(H.width, H.height), U.transmissionMap && (O.transmissionMap.value = U.transmissionMap), O.thickness.value = U.thickness, U.thicknessMap && (O.thicknessMap.value = U.thicknessMap), O.attenuationDistance.value = U.attenuationDistance, O.attenuationColor.value.copy(U.attenuationColor)), O.specularIntensity.value = U.specularIntensity, O.specularColor.value.copy(U.specularColor), U.specularIntensityMap && (O.specularIntensityMap.value = U.specularIntensityMap), U.specularColorMap && (O.specularColorMap.value = U.specularColorMap); } - function C(P, U) { - U.matcap && (P.matcap.value = U.matcap); + function R(O, U) { + U.matcap && (O.matcap.value = U.matcap); } - function D(P, U) { - P.referencePosition.value.copy(U.referencePosition), P.nearDistance.value = U.nearDistance, P.farDistance.value = U.farDistance; + function D(O, U) { + O.referencePosition.value.copy(U.referencePosition), O.nearDistance.value = U.nearDistance, O.farDistance.value = U.farDistance; } return { refreshFogUniforms: t, refreshMaterialUniforms: r }; } -function cW(a, e, t, r) { - let i = {}, o = {}, l = []; +function wW(a, e, t, r) { + let i = {}, s = {}, l = []; const d = t.isWebGL2 ? a.getParameter(35375) : 0; - function h(k, V) { - const I = V.program; - r.uniformBlockBinding(k, I); - } - function m(k, V) { - let I = i[k.id]; - I === void 0 && (D(k), I = S(k), i[k.id] = I, k.addEventListener("dispose", U)); - const X = V.program; - r.updateUBOMapping(k, X); - const J = e.render.frame; - o[k.id] !== J && (T(k), o[k.id] = J); - } - function S(k) { - const V = _(); - k.__bindingPointIndex = V; - const I = a.createBuffer(), X = k.__size, J = k.usage; - return a.bindBuffer(35345, I), a.bufferData(35345, X, J), a.bindBuffer(35345, null), a.bindBufferBase(35345, V, I), I; + function p(I, G) { + const B = G.program; + r.uniformBlockBinding(I, B); + } + function g(I, G) { + let B = i[I.id]; + B === void 0 && (D(I), B = _(I), i[I.id] = B, I.addEventListener("dispose", U)); + const Q = G.program; + r.updateUBOMapping(I, Q); + const K = e.render.frame; + s[I.id] !== K && (T(I), s[I.id] = K); } - function _() { - for (let k = 0; k < d; k++) - if (l.indexOf(k) === -1) - return l.push(k), k; + function _(I) { + const G = w(); + I.__bindingPointIndex = G; + const B = a.createBuffer(), Q = I.__size, K = I.usage; + return a.bindBuffer(35345, B), a.bufferData(35345, Q, K), a.bindBuffer(35345, null), a.bindBufferBase(35345, G, B), B; + } + function w() { + for (let I = 0; I < d; I++) + if (l.indexOf(I) === -1) + return l.push(I), I; return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."), 0; } - function T(k) { - const V = i[k.id], I = k.uniforms, X = k.__cache; - a.bindBuffer(35345, V); - for (let J = 0, $ = I.length; J < $; J++) { - const W = I[J]; - if (C(W, J, X) === !0) { - const ne = W.value, ie = W.__offset; - typeof ne == "number" ? (W.__data[0] = ne, a.bufferSubData(35345, ie, W.__data)) : (W.value.isMatrix3 ? (W.__data[0] = W.value.elements[0], W.__data[1] = W.value.elements[1], W.__data[2] = W.value.elements[2], W.__data[3] = W.value.elements[0], W.__data[4] = W.value.elements[3], W.__data[5] = W.value.elements[4], W.__data[6] = W.value.elements[5], W.__data[7] = W.value.elements[0], W.__data[8] = W.value.elements[6], W.__data[9] = W.value.elements[7], W.__data[10] = W.value.elements[8], W.__data[11] = W.value.elements[0]) : ne.toArray(W.__data), a.bufferSubData(35345, ie, W.__data)); + function T(I) { + const G = i[I.id], B = I.uniforms, Q = I.__cache; + a.bindBuffer(35345, G); + for (let K = 0, te = B.length; K < te; K++) { + const Y = B[K]; + if (R(Y, K, Q) === !0) { + const re = Y.value, se = Y.__offset; + typeof re == "number" ? (Y.__data[0] = re, a.bufferSubData(35345, se, Y.__data)) : (Y.value.isMatrix3 ? (Y.__data[0] = Y.value.elements[0], Y.__data[1] = Y.value.elements[1], Y.__data[2] = Y.value.elements[2], Y.__data[3] = Y.value.elements[0], Y.__data[4] = Y.value.elements[3], Y.__data[5] = Y.value.elements[4], Y.__data[6] = Y.value.elements[5], Y.__data[7] = Y.value.elements[0], Y.__data[8] = Y.value.elements[6], Y.__data[9] = Y.value.elements[7], Y.__data[10] = Y.value.elements[8], Y.__data[11] = Y.value.elements[0]) : re.toArray(Y.__data), a.bufferSubData(35345, se, Y.__data)); } } a.bindBuffer(35345, null); } - function C(k, V, I) { - const X = k.value; - if (I[V] === void 0) - return typeof X == "number" ? I[V] = X : I[V] = X.clone(), !0; - if (typeof X == "number") { - if (I[V] !== X) - return I[V] = X, !0; + function R(I, G, B) { + const Q = I.value; + if (B[G] === void 0) + return typeof Q == "number" ? B[G] = Q : B[G] = Q.clone(), !0; + if (typeof Q == "number") { + if (B[G] !== Q) + return B[G] = Q, !0; } else { - const J = I[V]; - if (J.equals(X) === !1) - return J.copy(X), !0; + const K = B[G]; + if (K.equals(Q) === !1) + return K.copy(Q), !0; } return !1; } - function D(k) { - const V = k.uniforms; - let I = 0; - const X = 16; - let J = 0; - for (let $ = 0, W = V.length; $ < W; $++) { - const ne = V[$], ie = P(ne); - if (ne.__data = new Float32Array(ie.storage / Float32Array.BYTES_PER_ELEMENT), ne.__offset = I, $ > 0) { - J = I % X; - const fe = X - J; - J !== 0 && fe - ie.boundary < 0 && (I += X - J, ne.__offset = I); + function D(I) { + const G = I.uniforms; + let B = 0; + const Q = 16; + let K = 0; + for (let te = 0, Y = G.length; te < Y; te++) { + const re = G[te], se = O(re); + if (re.__data = new Float32Array(se.storage / Float32Array.BYTES_PER_ELEMENT), re.__offset = B, te > 0) { + K = B % Q; + const ce = Q - K; + K !== 0 && ce - se.boundary < 0 && (B += Q - K, re.__offset = B); } - I += ie.storage; + B += se.storage; } - return J = I % X, J > 0 && (I += X - J), k.__size = I, k.__cache = {}, this; + return K = B % Q, K > 0 && (B += Q - K), I.__size = B, I.__cache = {}, this; } - function P(k) { - const V = k.value, I = { + function O(I) { + const G = I.value, B = { boundary: 0, storage: 0 }; - return typeof V == "number" ? (I.boundary = 4, I.storage = 4) : V.isVector2 ? (I.boundary = 8, I.storage = 8) : V.isVector3 || V.isColor ? (I.boundary = 16, I.storage = 12) : V.isVector4 ? (I.boundary = 16, I.storage = 16) : V.isMatrix3 ? (I.boundary = 48, I.storage = 48) : V.isMatrix4 ? (I.boundary = 64, I.storage = 64) : V.isTexture ? console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group.") : console.warn("THREE.WebGLRenderer: Unsupported uniform value type.", V), I; + return typeof G == "number" ? (B.boundary = 4, B.storage = 4) : G.isVector2 ? (B.boundary = 8, B.storage = 8) : G.isVector3 || G.isColor ? (B.boundary = 16, B.storage = 12) : G.isVector4 ? (B.boundary = 16, B.storage = 16) : G.isMatrix3 ? (B.boundary = 48, B.storage = 48) : G.isMatrix4 ? (B.boundary = 64, B.storage = 64) : G.isTexture ? console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group.") : console.warn("THREE.WebGLRenderer: Unsupported uniform value type.", G), B; } - function U(k) { - const V = k.target; - V.removeEventListener("dispose", U); - const I = l.indexOf(V.__bindingPointIndex); - l.splice(I, 1), a.deleteBuffer(i[V.id]), delete i[V.id], delete o[V.id]; + function U(I) { + const G = I.target; + G.removeEventListener("dispose", U); + const B = l.indexOf(G.__bindingPointIndex); + l.splice(B, 1), a.deleteBuffer(i[G.id]), delete i[G.id], delete s[G.id]; } - function B() { - for (const k in i) - a.deleteBuffer(i[k]); - l = [], i = {}, o = {}; + function H() { + for (const I in i) + a.deleteBuffer(i[I]); + l = [], i = {}, s = {}; } return { - bind: h, - update: m, - dispose: B + bind: p, + update: g, + dispose: H }; } -function fW() { - const a = UM("canvas"); +function bW() { + const a = zM("canvas"); return a.style.display = "block", a; } function $3(a = {}) { this.isWebGLRenderer = !0; - const e = a.canvas !== void 0 ? a.canvas : fW(), t = a.context !== void 0 ? a.context : null, r = a.depth !== void 0 ? a.depth : !0, i = a.stencil !== void 0 ? a.stencil : !0, o = a.antialias !== void 0 ? a.antialias : !1, l = a.premultipliedAlpha !== void 0 ? a.premultipliedAlpha : !0, d = a.preserveDrawingBuffer !== void 0 ? a.preserveDrawingBuffer : !1, h = a.powerPreference !== void 0 ? a.powerPreference : "default", m = a.failIfMajorPerformanceCaveat !== void 0 ? a.failIfMajorPerformanceCaveat : !1; - let S; - t !== null ? S = t.getContextAttributes().alpha : S = a.alpha !== void 0 ? a.alpha : !1; - let _ = null, T = null; - const C = [], D = []; + const e = a.canvas !== void 0 ? a.canvas : bW(), t = a.context !== void 0 ? a.context : null, r = a.depth !== void 0 ? a.depth : !0, i = a.stencil !== void 0 ? a.stencil : !0, s = a.antialias !== void 0 ? a.antialias : !1, l = a.premultipliedAlpha !== void 0 ? a.premultipliedAlpha : !0, d = a.preserveDrawingBuffer !== void 0 ? a.preserveDrawingBuffer : !1, p = a.powerPreference !== void 0 ? a.powerPreference : "default", g = a.failIfMajorPerformanceCaveat !== void 0 ? a.failIfMajorPerformanceCaveat : !1; + let _; + t !== null ? _ = t.getContextAttributes().alpha : _ = a.alpha !== void 0 ? a.alpha : !1; + let w = null, T = null; + const R = [], D = []; this.domElement = e, this.debug = { checkShaderErrors: !0 - }, this.autoClear = !0, this.autoClearColor = !0, this.autoClearDepth = !0, this.autoClearStencil = !0, this.sortObjects = !0, this.clippingPlanes = [], this.localClippingEnabled = !1, this.outputEncoding = yv, this.physicallyCorrectLights = !1, this.toneMapping = ig, this.toneMappingExposure = 1, Object.defineProperties(this, { + }, this.autoClear = !0, this.autoClearColor = !0, this.autoClearDepth = !0, this.autoClearStencil = !0, this.sortObjects = !0, this.clippingPlanes = [], this.localClippingEnabled = !1, this.outputEncoding = wv, this.physicallyCorrectLights = !1, this.toneMapping = og, this.toneMappingExposure = 1, Object.defineProperties(this, { gammaFactor: { get: function() { return console.warn("THREE.WebGLRenderer: .gammaFactor has been removed."), 2; @@ -11888,24 +11888,24 @@ function $3(a = {}) { } } }); - const P = this; - let U = !1, B = 0, k = 0, V = null, I = -1, X = null; - const J = new la(), $ = new la(); - let W = null, ne = e.width, ie = e.height, fe = 1, le = null, Ee = null; - const he = new la(0, 0, ne, ie), Fe = new la(0, 0, ne, ie); - let Ce = !1; - const Be = new IC(); - let pe = !1, de = !1, ce = null; - const ye = new si(), we = new Ft(), Xe = new ve(), Je = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 }; - function st() { - return V === null ? fe : 1; - } - let Ue = t; - function ot(Te, ct) { - for (let me = 0; me < Te.length; me++) { - const Oe = Te[me], qe = e.getContext(Oe, ct); - if (qe !== null) - return qe; + const O = this; + let U = !1, H = 0, I = 0, G = null, B = -1, Q = null; + const K = new ra(), te = new ra(); + let Y = null, re = e.width, se = e.height, ce = 1, ue = null, Me = null; + const me = new ra(0, 0, re, se), De = new ra(0, 0, re, se); + let Re = !1; + const He = new BC(); + let ve = !1, fe = !1, he = null; + const ye = new Kr(), Ee = new zt(), Ve = new ge(), Je = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 }; + function rt() { + return G === null ? ce : 1; + } + let Ne = t; + function ct(Te, ot) { + for (let de = 0; de < Te.length; de++) { + const Le = Te[de], Ye = e.getContext(Le, ot); + if (Ye !== null) + return Ye; } return null; } @@ -11914,84 +11914,84 @@ function $3(a = {}) { alpha: !0, depth: r, stencil: i, - antialias: o, + antialias: s, premultipliedAlpha: l, preserveDrawingBuffer: d, - powerPreference: h, - failIfMajorPerformanceCaveat: m + powerPreference: p, + failIfMajorPerformanceCaveat: g }; - if ("setAttribute" in e && e.setAttribute("data-engine", `three.js r${U0}`), e.addEventListener("webglcontextlost", it, !1), e.addEventListener("webglcontextrestored", at, !1), e.addEventListener("webglcontextcreationerror", hn, !1), Ue === null) { - const ct = ["webgl2", "webgl", "experimental-webgl"]; - if (P.isWebGL1Renderer === !0 && ct.shift(), Ue = ot(ct, Te), Ue === null) - throw ot(ct) ? new Error("Error creating WebGL context with your selected attributes.") : new Error("Error creating WebGL context."); + if ("setAttribute" in e && e.setAttribute("data-engine", `three.js r${a1}`), e.addEventListener("webglcontextlost", at, !1), e.addEventListener("webglcontextrestored", st, !1), e.addEventListener("webglcontextcreationerror", dn, !1), Ne === null) { + const ot = ["webgl2", "webgl", "experimental-webgl"]; + if (O.isWebGL1Renderer === !0 && ot.shift(), Ne = ct(ot, Te), Ne === null) + throw ct(ot) ? new Error("Error creating WebGL context with your selected attributes.") : new Error("Error creating WebGL context."); } - Ue.getShaderPrecisionFormat === void 0 && (Ue.getShaderPrecisionFormat = function() { + Ne.getShaderPrecisionFormat === void 0 && (Ne.getShaderPrecisionFormat = function() { return { rangeMin: 1, rangeMax: 1, precision: 1 }; }); } catch (Te) { throw console.error("THREE.WebGLRenderer: " + Te.message), Te; } - let rt, _t, Rt, Ot, He, et, mt, vt, bt, Qt, ft, Vt, Jt, Mt, Me, oe, je, lt, zt, Nt, Ut, tt, rn, ze; - function xe() { - rt = new TG(Ue), _t = new SG(Ue, rt, a), rt.init(_t), tt = new CF(Ue, rt, _t), Rt = new aW(Ue, rt, _t), Ot = new AG(), He = new X8(), et = new sW(Ue, rt, Rt, He, _t, tt, Ot), mt = new bG(P), vt = new MG(P), bt = new HH(Ue, _t), rn = new yG(Ue, rt, bt, _t), Qt = new CG(Ue, bt, Ot, rn), ft = new OG(Ue, Qt, bt, Ot), zt = new PG(Ue, _t, et), oe = new _G(He), Vt = new Y8(P, mt, vt, rt, _t, rn, oe), Jt = new uW(P, He), Mt = new Q8(), Me = new tW(rt, _t), lt = new gG(P, mt, Rt, ft, S, l), je = new iW(P, ft, _t), ze = new cW(Ue, Ot, _t, Rt), Nt = new xG(Ue, rt, Ot, _t), Ut = new RG(Ue, rt, Ot, _t), Ot.programs = Vt.programs, P.capabilities = _t, P.extensions = rt, P.properties = He, P.renderLists = Mt, P.shadowMap = je, P.state = Rt, P.info = Ot; + let tt, Tt, gt, ft, Ie, qe, dt, ht, xt, Vt, yt, Nt, Zt, Rt, we, oe, Qe, ut, Ft, Ot, Wt, it, an, Be; + function pe() { + tt = new kG(Ne), Tt = new PG(Ne, tt, a), tt.init(Tt), it = new HF(Ne, tt, Tt), gt = new gW(Ne, tt, Tt), ft = new HG(), Ie = new aW(), qe = new yW(Ne, tt, gt, Ie, Tt, it, ft), dt = new UG(O), ht = new FG(O), xt = new $H(Ne, Tt), an = new DG(Ne, tt, xt, Tt), Vt = new IG(Ne, xt, ft, an), yt = new jG(Ne, Vt, xt, ft), Ft = new WG(Ne, Tt, qe), oe = new OG(Ie), Nt = new iW(O, dt, ht, tt, Tt, an, oe), Zt = new SW(O, Ie), Rt = new oW(), we = new hW(tt, Tt), ut = new AG(O, dt, gt, yt, _, l), Qe = new vW(O, yt, Tt), Be = new wW(Ne, ft, Tt, gt), Ot = new LG(Ne, tt, ft, Tt), Wt = new BG(Ne, tt, ft, Tt), ft.programs = Nt.programs, O.capabilities = Tt, O.extensions = tt, O.properties = Ie, O.renderLists = Rt, O.shadowMap = Qe, O.state = gt, O.info = ft; } - xe(); - const Ie = new lW(P, Ue); - this.xr = Ie, this.getContext = function() { - return Ue; + pe(); + const Fe = new _W(O, Ne); + this.xr = Fe, this.getContext = function() { + return Ne; }, this.getContextAttributes = function() { - return Ue.getContextAttributes(); + return Ne.getContextAttributes(); }, this.forceContextLoss = function() { - const Te = rt.get("WEBGL_lose_context"); + const Te = tt.get("WEBGL_lose_context"); Te && Te.loseContext(); }, this.forceContextRestore = function() { - const Te = rt.get("WEBGL_lose_context"); + const Te = tt.get("WEBGL_lose_context"); Te && Te.restoreContext(); }, this.getPixelRatio = function() { - return fe; + return ce; }, this.setPixelRatio = function(Te) { - Te !== void 0 && (fe = Te, this.setSize(ne, ie, !1)); + Te !== void 0 && (ce = Te, this.setSize(re, se, !1)); }, this.getSize = function(Te) { - return Te.set(ne, ie); - }, this.setSize = function(Te, ct, me) { - if (Ie.isPresenting) { + return Te.set(re, se); + }, this.setSize = function(Te, ot, de) { + if (Fe.isPresenting) { console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."); return; } - ne = Te, ie = ct, e.width = Math.floor(Te * fe), e.height = Math.floor(ct * fe), me !== !1 && (e.style.width = Te + "px", e.style.height = ct + "px"), this.setViewport(0, 0, Te, ct); + re = Te, se = ot, e.width = Math.floor(Te * ce), e.height = Math.floor(ot * ce), de !== !1 && (e.style.width = Te + "px", e.style.height = ot + "px"), this.setViewport(0, 0, Te, ot); }, this.getDrawingBufferSize = function(Te) { - return Te.set(ne * fe, ie * fe).floor(); - }, this.setDrawingBufferSize = function(Te, ct, me) { - ne = Te, ie = ct, fe = me, e.width = Math.floor(Te * me), e.height = Math.floor(ct * me), this.setViewport(0, 0, Te, ct); + return Te.set(re * ce, se * ce).floor(); + }, this.setDrawingBufferSize = function(Te, ot, de) { + re = Te, se = ot, ce = de, e.width = Math.floor(Te * de), e.height = Math.floor(ot * de), this.setViewport(0, 0, Te, ot); }, this.getCurrentViewport = function(Te) { - return Te.copy(J); + return Te.copy(K); }, this.getViewport = function(Te) { - return Te.copy(he); - }, this.setViewport = function(Te, ct, me, Oe) { - Te.isVector4 ? he.set(Te.x, Te.y, Te.z, Te.w) : he.set(Te, ct, me, Oe), Rt.viewport(J.copy(he).multiplyScalar(fe).floor()); + return Te.copy(me); + }, this.setViewport = function(Te, ot, de, Le) { + Te.isVector4 ? me.set(Te.x, Te.y, Te.z, Te.w) : me.set(Te, ot, de, Le), gt.viewport(K.copy(me).multiplyScalar(ce).floor()); }, this.getScissor = function(Te) { - return Te.copy(Fe); - }, this.setScissor = function(Te, ct, me, Oe) { - Te.isVector4 ? Fe.set(Te.x, Te.y, Te.z, Te.w) : Fe.set(Te, ct, me, Oe), Rt.scissor($.copy(Fe).multiplyScalar(fe).floor()); + return Te.copy(De); + }, this.setScissor = function(Te, ot, de, Le) { + Te.isVector4 ? De.set(Te.x, Te.y, Te.z, Te.w) : De.set(Te, ot, de, Le), gt.scissor(te.copy(De).multiplyScalar(ce).floor()); }, this.getScissorTest = function() { - return Ce; + return Re; }, this.setScissorTest = function(Te) { - Rt.setScissorTest(Ce = Te); + gt.setScissorTest(Re = Te); }, this.setOpaqueSort = function(Te) { - le = Te; + ue = Te; }, this.setTransparentSort = function(Te) { - Ee = Te; + Me = Te; }, this.getClearColor = function(Te) { - return Te.copy(lt.getClearColor()); + return Te.copy(ut.getClearColor()); }, this.setClearColor = function() { - lt.setClearColor.apply(lt, arguments); + ut.setClearColor.apply(ut, arguments); }, this.getClearAlpha = function() { - return lt.getClearAlpha(); + return ut.getClearAlpha(); }, this.setClearAlpha = function() { - lt.setClearAlpha.apply(lt, arguments); - }, this.clear = function(Te = !0, ct = !0, me = !0) { - let Oe = 0; - Te && (Oe |= 16384), ct && (Oe |= 256), me && (Oe |= 1024), Ue.clear(Oe); + ut.setClearAlpha.apply(ut, arguments); + }, this.clear = function(Te = !0, ot = !0, de = !0) { + let Le = 0; + Te && (Le |= 16384), ot && (Le |= 256), de && (Le |= 1024), Ne.clear(Le); }, this.clearColor = function() { this.clear(!0, !1, !1); }, this.clearDepth = function() { @@ -11999,341 +11999,341 @@ function $3(a = {}) { }, this.clearStencil = function() { this.clear(!1, !1, !0); }, this.dispose = function() { - e.removeEventListener("webglcontextlost", it, !1), e.removeEventListener("webglcontextrestored", at, !1), e.removeEventListener("webglcontextcreationerror", hn, !1), Mt.dispose(), Me.dispose(), He.dispose(), mt.dispose(), vt.dispose(), ft.dispose(), rn.dispose(), ze.dispose(), Vt.dispose(), Ie.dispose(), Ie.removeEventListener("sessionstart", fn), Ie.removeEventListener("sessionend", Gr), ce && (ce.dispose(), ce = null), Wr.stop(); + e.removeEventListener("webglcontextlost", at, !1), e.removeEventListener("webglcontextrestored", st, !1), e.removeEventListener("webglcontextcreationerror", dn, !1), Rt.dispose(), we.dispose(), Ie.dispose(), dt.dispose(), ht.dispose(), yt.dispose(), an.dispose(), Be.dispose(), Nt.dispose(), Fe.dispose(), Fe.removeEventListener("sessionstart", cn), Fe.removeEventListener("sessionend", ki), he && (he.dispose(), he = null), Or.stop(); }; - function it(Te) { + function at(Te) { Te.preventDefault(), console.log("THREE.WebGLRenderer: Context Lost."), U = !0; } - function at() { + function st() { console.log("THREE.WebGLRenderer: Context Restored."), U = !1; - const Te = Ot.autoReset, ct = je.enabled, me = je.autoUpdate, Oe = je.needsUpdate, qe = je.type; - xe(), Ot.autoReset = Te, je.enabled = ct, je.autoUpdate = me, je.needsUpdate = Oe, je.type = qe; + const Te = ft.autoReset, ot = Qe.enabled, de = Qe.autoUpdate, Le = Qe.needsUpdate, Ye = Qe.type; + pe(), ft.autoReset = Te, Qe.enabled = ot, Qe.autoUpdate = de, Qe.needsUpdate = Le, Qe.type = Ye; } - function hn(Te) { + function dn(Te) { console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ", Te.statusMessage); } - function De(Te) { - const ct = Te.target; - ct.removeEventListener("dispose", De), Tt(ct); - } - function Tt(Te) { - Ne(Te), He.remove(Te); - } - function Ne(Te) { - const ct = He.get(Te).programs; - ct !== void 0 && (ct.forEach(function(me) { - Vt.releaseProgram(me); - }), Te.isShaderMaterial && Vt.releaseShaderCache(Te)); - } - this.renderBufferDirect = function(Te, ct, me, Oe, qe, on) { - ct === null && (ct = Je); - const yn = qe.isMesh && qe.matrixWorld.determinant() < 0, Rn = ni(Te, ct, me, Oe, qe); - Rt.setMaterial(Oe, yn); - let mn = me.index; - const vn = me.attributes.position; - if (mn === null) { - if (vn === void 0 || vn.count === 0) + function ze(Te) { + const ot = Te.target; + ot.removeEventListener("dispose", ze), wt(ot); + } + function wt(Te) { + Pe(Te), Ie.remove(Te); + } + function Pe(Te) { + const ot = Ie.get(Te).programs; + ot !== void 0 && (ot.forEach(function(de) { + Nt.releaseProgram(de); + }), Te.isShaderMaterial && Nt.releaseShaderCache(Te)); + } + this.renderBufferDirect = function(Te, ot, de, Le, Ye, $t) { + ot === null && (ot = Je); + const mn = Ye.isMesh && Ye.matrixWorld.determinant() < 0, Rn = xi(Te, ot, de, Le, Ye); + gt.setMaterial(Le, mn); + let gn = de.index; + const yn = de.attributes.position; + if (gn === null) { + if (yn === void 0 || yn.count === 0) return; - } else if (mn.count === 0) + } else if (gn.count === 0) return; - let Zn = 1; - Oe.wireframe === !0 && (mn = Qt.getWireframeAttribute(me), Zn = 2), rn.setup(qe, Oe, Rn, me, mn); - let nr, br = Nt; - mn !== null && (nr = bt.get(mn), br = Ut, br.setIndex(nr)); - const Yi = mn !== null ? mn.count : vn.count, La = me.drawRange.start * Zn, Xs = me.drawRange.count * Zn, $t = on !== null ? on.start * Zn : 0, Zr = on !== null ? on.count * Zn : 1 / 0, ls = Math.max(La, $t), Xn = Math.min(Yi, La + Xs, $t + Zr) - 1, qa = Math.max(0, Xn - ls + 1); + let Jn = 1; + Le.wireframe === !0 && (gn = Vt.getWireframeAttribute(de), Jn = 2), an.setup(Ye, Le, Rn, de, gn); + let rr, wr = Ot; + gn !== null && (rr = xt.get(gn), wr = Wt, wr.setIndex(rr)); + const Yi = gn !== null ? gn.count : yn.count, La = de.drawRange.start * Jn, qs = de.drawRange.count * Jn, en = $t !== null ? $t.start * Jn : 0, Xr = $t !== null ? $t.count * Jn : 1 / 0, us = Math.max(La, en), qn = Math.min(Yi, La + qs, en + Xr) - 1, qa = Math.max(0, qn - us + 1); if (qa !== 0) { - if (qe.isMesh) - Oe.wireframe === !0 ? (Rt.setLineWidth(Oe.wireframeLinewidth * st()), br.setMode(1)) : br.setMode(4); - else if (qe.isLine) { - let mo = Oe.linewidth; - mo === void 0 && (mo = 1), Rt.setLineWidth(mo * st()), qe.isLineSegments ? br.setMode(1) : qe.isLineLoop ? br.setMode(2) : br.setMode(3); + if (Ye.isMesh) + Le.wireframe === !0 ? (gt.setLineWidth(Le.wireframeLinewidth * rt()), wr.setMode(1)) : wr.setMode(4); + else if (Ye.isLine) { + let mo = Le.linewidth; + mo === void 0 && (mo = 1), gt.setLineWidth(mo * rt()), Ye.isLineSegments ? wr.setMode(1) : Ye.isLineLoop ? wr.setMode(2) : wr.setMode(3); } else - qe.isPoints ? br.setMode(0) : qe.isSprite && br.setMode(4); - if (qe.isInstancedMesh) - br.renderInstances(ls, qa, qe.count); - else if (me.isInstancedBufferGeometry) { - const mo = Math.min(me.instanceCount, me._maxInstanceCount); - br.renderInstances(ls, qa, mo); + Ye.isPoints ? wr.setMode(0) : Ye.isSprite && wr.setMode(4); + if (Ye.isInstancedMesh) + wr.renderInstances(us, qa, Ye.count); + else if (de.isInstancedBufferGeometry) { + const mo = Math.min(de.instanceCount, de._maxInstanceCount); + wr.renderInstances(us, qa, mo); } else - br.render(ls, qa); - } - }, this.compile = function(Te, ct) { - T = Me.get(Te), T.init(), D.push(T), Te.traverseVisible(function(me) { - me.isLight && me.layers.test(ct.layers) && (T.pushLight(me), me.castShadow && T.pushShadow(me)); - }), T.setupLights(P.physicallyCorrectLights), Te.traverse(function(me) { - const Oe = me.material; - if (Oe) - if (Array.isArray(Oe)) - for (let qe = 0; qe < Oe.length; qe++) { - const on = Oe[qe]; - ki(on, Te, me); + wr.render(us, qa); + } + }, this.compile = function(Te, ot) { + T = we.get(Te), T.init(), D.push(T), Te.traverseVisible(function(de) { + de.isLight && de.layers.test(ot.layers) && (T.pushLight(de), de.castShadow && T.pushShadow(de)); + }), T.setupLights(O.physicallyCorrectLights), Te.traverse(function(de) { + const Le = de.material; + if (Le) + if (Array.isArray(Le)) + for (let Ye = 0; Ye < Le.length; Ye++) { + const $t = Le[Ye]; + ii($t, Te, de); } else - ki(Oe, Te, me); + ii(Le, Te, de); }), D.pop(), T = null; }; let Gt = null; - function Pt(Te) { + function At(Te) { Gt && Gt(Te); } - function fn() { - Wr.stop(); + function cn() { + Or.stop(); } - function Gr() { - Wr.start(); + function ki() { + Or.start(); } - const Wr = new _F(); - Wr.setAnimationLoop(Pt), typeof self < "u" && Wr.setContext(self), this.setAnimationLoop = function(Te) { - Gt = Te, Ie.setAnimationLoop(Te), Te === null ? Wr.stop() : Wr.start(); - }, Ie.addEventListener("sessionstart", fn), Ie.addEventListener("sessionend", Gr), this.render = function(Te, ct) { - if (ct !== void 0 && ct.isCamera !== !0) { + const Or = new zF(); + Or.setAnimationLoop(At), typeof self < "u" && Or.setContext(self), this.setAnimationLoop = function(Te) { + Gt = Te, Fe.setAnimationLoop(Te), Te === null ? Or.stop() : Or.start(); + }, Fe.addEventListener("sessionstart", cn), Fe.addEventListener("sessionend", ki), this.render = function(Te, ot) { + if (ot !== void 0 && ot.isCamera !== !0) { console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera."); return; } if (U === !0) return; - Te.autoUpdate === !0 && Te.updateMatrixWorld(), ct.parent === null && ct.updateMatrixWorld(), Ie.enabled === !0 && Ie.isPresenting === !0 && (Ie.cameraAutoUpdate === !0 && Ie.updateCamera(ct), ct = Ie.getCamera()), Te.isScene === !0 && Te.onBeforeRender(P, Te, ct, V), T = Me.get(Te, D.length), T.init(), D.push(T), ye.multiplyMatrices(ct.projectionMatrix, ct.matrixWorldInverse), Be.setFromProjectionMatrix(ye), de = this.localClippingEnabled, pe = oe.init(this.clippingPlanes, de, ct), _ = Mt.get(Te, C.length), _.init(), C.push(_), Ur(Te, ct, 0, P.sortObjects), _.finish(), P.sortObjects === !0 && _.sort(le, Ee), pe === !0 && oe.beginShadows(); - const me = T.state.shadowsArray; - if (je.render(me, Te, ct), pe === !0 && oe.endShadows(), this.info.autoReset === !0 && this.info.reset(), lt.render(_, Te), T.setupLights(P.physicallyCorrectLights), ct.isArrayCamera) { - const Oe = ct.cameras; - for (let qe = 0, on = Oe.length; qe < on; qe++) { - const yn = Oe[qe]; - ir(_, Te, yn, yn.viewport); + Te.autoUpdate === !0 && Te.updateMatrixWorld(), ot.parent === null && ot.updateMatrixWorld(), Fe.enabled === !0 && Fe.isPresenting === !0 && (Fe.cameraAutoUpdate === !0 && Fe.updateCamera(ot), ot = Fe.getCamera()), Te.isScene === !0 && Te.onBeforeRender(O, Te, ot, G), T = we.get(Te, D.length), T.init(), D.push(T), ye.multiplyMatrices(ot.projectionMatrix, ot.matrixWorldInverse), He.setFromProjectionMatrix(ye), fe = this.localClippingEnabled, ve = oe.init(this.clippingPlanes, fe, ot), w = Rt.get(Te, R.length), w.init(), R.push(w), Ii(Te, ot, 0, O.sortObjects), w.finish(), O.sortObjects === !0 && w.sort(ue, Me), ve === !0 && oe.beginShadows(); + const de = T.state.shadowsArray; + if (Qe.render(de, Te, ot), ve === !0 && oe.endShadows(), this.info.autoReset === !0 && this.info.reset(), ut.render(w, Te), T.setupLights(O.physicallyCorrectLights), ot.isArrayCamera) { + const Le = ot.cameras; + for (let Ye = 0, $t = Le.length; Ye < $t; Ye++) { + const mn = Le[Ye]; + Ir(w, Te, mn, mn.viewport); } } else - ir(_, Te, ct); - V !== null && (et.updateMultisampleRenderTarget(V), et.updateRenderTargetMipmap(V)), Te.isScene === !0 && Te.onAfterRender(P, Te, ct), rn.resetDefaultState(), I = -1, X = null, D.pop(), D.length > 0 ? T = D[D.length - 1] : T = null, C.pop(), C.length > 0 ? _ = C[C.length - 1] : _ = null; + Ir(w, Te, ot); + G !== null && (qe.updateMultisampleRenderTarget(G), qe.updateRenderTargetMipmap(G)), Te.isScene === !0 && Te.onAfterRender(O, Te, ot), an.resetDefaultState(), B = -1, Q = null, D.pop(), D.length > 0 ? T = D[D.length - 1] : T = null, R.pop(), R.length > 0 ? w = R[R.length - 1] : w = null; }; - function Ur(Te, ct, me, Oe) { + function Ii(Te, ot, de, Le) { if (Te.visible === !1) return; - if (Te.layers.test(ct.layers)) { + if (Te.layers.test(ot.layers)) { if (Te.isGroup) - me = Te.renderOrder; + de = Te.renderOrder; else if (Te.isLOD) - Te.autoUpdate === !0 && Te.update(ct); + Te.autoUpdate === !0 && Te.update(ot); else if (Te.isLight) T.pushLight(Te), Te.castShadow && T.pushShadow(Te); else if (Te.isSprite) { - if (!Te.frustumCulled || Be.intersectsSprite(Te)) { - Oe && Xe.setFromMatrixPosition(Te.matrixWorld).applyMatrix4(ye); - const yn = ft.update(Te), Rn = Te.material; - Rn.visible && _.push(Te, yn, Rn, me, Xe.z, null); - } - } else if ((Te.isMesh || Te.isLine || Te.isPoints) && (Te.isSkinnedMesh && Te.skeleton.frame !== Ot.render.frame && (Te.skeleton.update(), Te.skeleton.frame = Ot.render.frame), !Te.frustumCulled || Be.intersectsObject(Te))) { - Oe && Xe.setFromMatrixPosition(Te.matrixWorld).applyMatrix4(ye); - const yn = ft.update(Te), Rn = Te.material; + if (!Te.frustumCulled || He.intersectsSprite(Te)) { + Le && Ve.setFromMatrixPosition(Te.matrixWorld).applyMatrix4(ye); + const mn = yt.update(Te), Rn = Te.material; + Rn.visible && w.push(Te, mn, Rn, de, Ve.z, null); + } + } else if ((Te.isMesh || Te.isLine || Te.isPoints) && (Te.isSkinnedMesh && Te.skeleton.frame !== ft.render.frame && (Te.skeleton.update(), Te.skeleton.frame = ft.render.frame), !Te.frustumCulled || He.intersectsObject(Te))) { + Le && Ve.setFromMatrixPosition(Te.matrixWorld).applyMatrix4(ye); + const mn = yt.update(Te), Rn = Te.material; if (Array.isArray(Rn)) { - const mn = yn.groups; - for (let vn = 0, Zn = mn.length; vn < Zn; vn++) { - const nr = mn[vn], br = Rn[nr.materialIndex]; - br && br.visible && _.push(Te, yn, br, me, Xe.z, nr); + const gn = mn.groups; + for (let yn = 0, Jn = gn.length; yn < Jn; yn++) { + const rr = gn[yn], wr = Rn[rr.materialIndex]; + wr && wr.visible && w.push(Te, mn, wr, de, Ve.z, rr); } } else - Rn.visible && _.push(Te, yn, Rn, me, Xe.z, null); + Rn.visible && w.push(Te, mn, Rn, de, Ve.z, null); } } - const on = Te.children; - for (let yn = 0, Rn = on.length; yn < Rn; yn++) - Ur(on[yn], ct, me, Oe); + const $t = Te.children; + for (let mn = 0, Rn = $t.length; mn < Rn; mn++) + Ii($t[mn], ot, de, Le); } - function ir(Te, ct, me, Oe) { - const qe = Te.opaque, on = Te.transmissive, yn = Te.transparent; - T.setupLightsView(me), on.length > 0 && Vn(qe, ct, me), Oe && Rt.viewport(J.copy(Oe)), qe.length > 0 && jr(qe, ct, me), on.length > 0 && jr(on, ct, me), yn.length > 0 && jr(yn, ct, me), Rt.buffers.depth.setTest(!0), Rt.buffers.depth.setMask(!0), Rt.buffers.color.setMask(!0), Rt.setPolygonOffset(!1); + function Ir(Te, ot, de, Le) { + const Ye = Te.opaque, $t = Te.transmissive, mn = Te.transparent; + T.setupLightsView(de), $t.length > 0 && Bn(Ye, ot, de), Le && gt.viewport(K.copy(Le)), Ye.length > 0 && Mi(Ye, ot, de), $t.length > 0 && Mi($t, ot, de), mn.length > 0 && Mi(mn, ot, de), gt.buffers.depth.setTest(!0), gt.buffers.depth.setMask(!0), gt.buffers.color.setMask(!0), gt.setPolygonOffset(!1); } - function Vn(Te, ct, me) { - const Oe = _t.isWebGL2; - ce === null && (ce = new po(1, 1, { + function Bn(Te, ot, de) { + const Le = Tt.isWebGL2; + he === null && (he = new po(1, 1, { generateMipmaps: !0, - type: rt.has("EXT_color_buffer_half_float") ? GS : Gf, + type: tt.has("EXT_color_buffer_half_float") ? X_ : df, minFilter: s1, - samples: Oe && o === !0 ? 4 : 0 - })), P.getDrawingBufferSize(we), Oe ? ce.setSize(we.x, we.y) : ce.setSize(TC(we.x), TC(we.y)); - const qe = P.getRenderTarget(); - P.setRenderTarget(ce), P.clear(); - const on = P.toneMapping; - P.toneMapping = ig, jr(Te, ct, me), P.toneMapping = on, et.updateMultisampleRenderTarget(ce), et.updateRenderTargetMipmap(ce), P.setRenderTarget(qe); - } - function jr(Te, ct, me) { - const Oe = ct.isScene === !0 ? ct.overrideMaterial : null; - for (let qe = 0, on = Te.length; qe < on; qe++) { - const yn = Te[qe], Rn = yn.object, mn = yn.geometry, vn = Oe === null ? yn.material : Oe, Zn = yn.group; - Rn.layers.test(me.layers) && ti(Rn, ct, me, mn, vn, Zn); - } - } - function ti(Te, ct, me, Oe, qe, on) { - Te.onBeforeRender(P, ct, me, Oe, qe, on), Te.modelViewMatrix.multiplyMatrices(me.matrixWorldInverse, Te.matrixWorld), Te.normalMatrix.getNormalMatrix(Te.modelViewMatrix), qe.onBeforeRender(P, ct, me, Oe, Te, on), qe.transparent === !0 && qe.side === Pp ? (qe.side = uf, qe.needsUpdate = !0, P.renderBufferDirect(me, ct, Oe, qe, Te, on), qe.side = py, qe.needsUpdate = !0, P.renderBufferDirect(me, ct, Oe, qe, Te, on), qe.side = Pp) : P.renderBufferDirect(me, ct, Oe, qe, Te, on), Te.onAfterRender(P, ct, me, Oe, qe, on); - } - function ki(Te, ct, me) { - ct.isScene !== !0 && (ct = Je); - const Oe = He.get(Te), qe = T.state.lights, on = T.state.shadowsArray, yn = qe.state.version, Rn = Vt.getParameters(Te, qe.state, on, ct, me), mn = Vt.getProgramCacheKey(Rn); - let vn = Oe.programs; - Oe.environment = Te.isMeshStandardMaterial ? ct.environment : null, Oe.fog = ct.fog, Oe.envMap = (Te.isMeshStandardMaterial ? vt : mt).get(Te.envMap || Oe.environment), vn === void 0 && (Te.addEventListener("dispose", De), vn = /* @__PURE__ */ new Map(), Oe.programs = vn); - let Zn = vn.get(mn); - if (Zn !== void 0) { - if (Oe.currentProgram === Zn && Oe.lightsStateVersion === yn) - return Wi(Te, Rn), Zn; + samples: Le && s === !0 ? 4 : 0 + })), O.getDrawingBufferSize(Ee), Le ? he.setSize(Ee.x, Ee.y) : he.setSize(CC(Ee.x), CC(Ee.y)); + const Ye = O.getRenderTarget(); + O.setRenderTarget(he), O.clear(); + const $t = O.toneMapping; + O.toneMapping = og, Mi(Te, ot, de), O.toneMapping = $t, qe.updateMultisampleRenderTarget(he), qe.updateRenderTargetMipmap(he), O.setRenderTarget(Ye); + } + function Mi(Te, ot, de) { + const Le = ot.isScene === !0 ? ot.overrideMaterial : null; + for (let Ye = 0, $t = Te.length; Ye < $t; Ye++) { + const mn = Te[Ye], Rn = mn.object, gn = mn.geometry, yn = Le === null ? mn.material : Le, Jn = mn.group; + Rn.layers.test(de.layers) && yi(Rn, ot, de, gn, yn, Jn); + } + } + function yi(Te, ot, de, Le, Ye, $t) { + Te.onBeforeRender(O, ot, de, Le, Ye, $t), Te.modelViewMatrix.multiplyMatrices(de.matrixWorldInverse, Te.matrixWorld), Te.normalMatrix.getNormalMatrix(Te.modelViewMatrix), Ye.onBeforeRender(O, ot, de, Le, Te, $t), Ye.transparent === !0 && Ye.side === Yh ? (Ye.side = cf, Ye.needsUpdate = !0, O.renderBufferDirect(de, ot, Le, Ye, Te, $t), Ye.side = vy, Ye.needsUpdate = !0, O.renderBufferDirect(de, ot, Le, Ye, Te, $t), Ye.side = Yh) : O.renderBufferDirect(de, ot, Le, Ye, Te, $t), Te.onAfterRender(O, ot, de, Le, Ye, $t); + } + function ii(Te, ot, de) { + ot.isScene !== !0 && (ot = Je); + const Le = Ie.get(Te), Ye = T.state.lights, $t = T.state.shadowsArray, mn = Ye.state.version, Rn = Nt.getParameters(Te, Ye.state, $t, ot, de), gn = Nt.getProgramCacheKey(Rn); + let yn = Le.programs; + Le.environment = Te.isMeshStandardMaterial ? ot.environment : null, Le.fog = ot.fog, Le.envMap = (Te.isMeshStandardMaterial ? ht : dt).get(Te.envMap || Le.environment), yn === void 0 && (Te.addEventListener("dispose", ze), yn = /* @__PURE__ */ new Map(), Le.programs = yn); + let Jn = yn.get(gn); + if (Jn !== void 0) { + if (Le.currentProgram === Jn && Le.lightsStateVersion === mn) + return Bi(Te, Rn), Jn; } else - Rn.uniforms = Vt.getUniforms(Te), Te.onBuild(me, Rn, P), Te.onBeforeCompile(Rn, P), Zn = Vt.acquireProgram(Rn, mn), vn.set(mn, Zn), Oe.uniforms = Rn.uniforms; - const nr = Oe.uniforms; - (!Te.isShaderMaterial && !Te.isRawShaderMaterial || Te.clipping === !0) && (nr.clippingPlanes = oe.uniform), Wi(Te, Rn), Oe.needsLights = Si(Te), Oe.lightsStateVersion = yn, Oe.needsLights && (nr.ambientLightColor.value = qe.state.ambient, nr.lightProbe.value = qe.state.probe, nr.directionalLights.value = qe.state.directional, nr.directionalLightShadows.value = qe.state.directionalShadow, nr.spotLights.value = qe.state.spot, nr.spotLightShadows.value = qe.state.spotShadow, nr.rectAreaLights.value = qe.state.rectArea, nr.ltc_1.value = qe.state.rectAreaLTC1, nr.ltc_2.value = qe.state.rectAreaLTC2, nr.pointLights.value = qe.state.point, nr.pointLightShadows.value = qe.state.pointShadow, nr.hemisphereLights.value = qe.state.hemi, nr.directionalShadowMap.value = qe.state.directionalShadowMap, nr.directionalShadowMatrix.value = qe.state.directionalShadowMatrix, nr.spotShadowMap.value = qe.state.spotShadowMap, nr.spotShadowMatrix.value = qe.state.spotShadowMatrix, nr.pointShadowMap.value = qe.state.pointShadowMap, nr.pointShadowMatrix.value = qe.state.pointShadowMatrix); - const br = Zn.getUniforms(), Yi = vC.seqWithValue(br.seq, nr); - return Oe.currentProgram = Zn, Oe.uniformsList = Yi, Zn; - } - function Wi(Te, ct) { - const me = He.get(Te); - me.outputEncoding = ct.outputEncoding, me.instancing = ct.instancing, me.skinning = ct.skinning, me.morphTargets = ct.morphTargets, me.morphNormals = ct.morphNormals, me.morphColors = ct.morphColors, me.morphTargetsCount = ct.morphTargetsCount, me.numClippingPlanes = ct.numClippingPlanes, me.numIntersection = ct.numClipIntersection, me.vertexAlphas = ct.vertexAlphas, me.vertexTangents = ct.vertexTangents, me.toneMapping = ct.toneMapping; - } - function ni(Te, ct, me, Oe, qe) { - ct.isScene !== !0 && (ct = Je), et.resetTextureUnits(); - const on = ct.fog, yn = Oe.isMeshStandardMaterial ? ct.environment : null, Rn = V === null ? P.outputEncoding : V.isXRRenderTarget === !0 ? V.texture.encoding : yv, mn = (Oe.isMeshStandardMaterial ? vt : mt).get(Oe.envMap || yn), vn = Oe.vertexColors === !0 && !!me.attributes.color && me.attributes.color.itemSize === 4, Zn = !!Oe.normalMap && !!me.attributes.tangent, nr = !!me.morphAttributes.position, br = !!me.morphAttributes.normal, Yi = !!me.morphAttributes.color, La = Oe.toneMapped ? P.toneMapping : ig, Xs = me.morphAttributes.position || me.morphAttributes.normal || me.morphAttributes.color, $t = Xs !== void 0 ? Xs.length : 0, Zr = He.get(Oe), ls = T.state.lights; - if (pe === !0 && (de === !0 || Te !== X)) { - const _i = Te === X && Oe.id === I; - oe.setState(Oe, Te, _i); - } - let Xn = !1; - Oe.version === Zr.__version ? (Zr.needsLights && Zr.lightsStateVersion !== ls.state.version || Zr.outputEncoding !== Rn || qe.isInstancedMesh && Zr.instancing === !1 || !qe.isInstancedMesh && Zr.instancing === !0 || qe.isSkinnedMesh && Zr.skinning === !1 || !qe.isSkinnedMesh && Zr.skinning === !0 || Zr.envMap !== mn || Oe.fog === !0 && Zr.fog !== on || Zr.numClippingPlanes !== void 0 && (Zr.numClippingPlanes !== oe.numPlanes || Zr.numIntersection !== oe.numIntersection) || Zr.vertexAlphas !== vn || Zr.vertexTangents !== Zn || Zr.morphTargets !== nr || Zr.morphNormals !== br || Zr.morphColors !== Yi || Zr.toneMapping !== La || _t.isWebGL2 === !0 && Zr.morphTargetsCount !== $t) && (Xn = !0) : (Xn = !0, Zr.__version = Oe.version); - let qa = Zr.currentProgram; - Xn === !0 && (qa = ki(Oe, ct, qe)); - let mo = !1, Ds = !1, us = !1; - const mr = qa.getUniforms(), pi = Zr.uniforms; - if (Rt.useProgram(qa.program) && (mo = !0, Ds = !0, us = !0), Oe.id !== I && (I = Oe.id, Ds = !0), mo || X !== Te) { - if (mr.setValue(Ue, "projectionMatrix", Te.projectionMatrix), _t.logarithmicDepthBuffer && mr.setValue( - Ue, + Rn.uniforms = Nt.getUniforms(Te), Te.onBuild(de, Rn, O), Te.onBeforeCompile(Rn, O), Jn = Nt.acquireProgram(Rn, gn), yn.set(gn, Jn), Le.uniforms = Rn.uniforms; + const rr = Le.uniforms; + (!Te.isShaderMaterial && !Te.isRawShaderMaterial || Te.clipping === !0) && (rr.clippingPlanes = oe.uniform), Bi(Te, Rn), Le.needsLights = ai(Te), Le.lightsStateVersion = mn, Le.needsLights && (rr.ambientLightColor.value = Ye.state.ambient, rr.lightProbe.value = Ye.state.probe, rr.directionalLights.value = Ye.state.directional, rr.directionalLightShadows.value = Ye.state.directionalShadow, rr.spotLights.value = Ye.state.spot, rr.spotLightShadows.value = Ye.state.spotShadow, rr.rectAreaLights.value = Ye.state.rectArea, rr.ltc_1.value = Ye.state.rectAreaLTC1, rr.ltc_2.value = Ye.state.rectAreaLTC2, rr.pointLights.value = Ye.state.point, rr.pointLightShadows.value = Ye.state.pointShadow, rr.hemisphereLights.value = Ye.state.hemi, rr.directionalShadowMap.value = Ye.state.directionalShadowMap, rr.directionalShadowMatrix.value = Ye.state.directionalShadowMatrix, rr.spotShadowMap.value = Ye.state.spotShadowMap, rr.spotShadowMatrix.value = Ye.state.spotShadowMatrix, rr.pointShadowMap.value = Ye.state.pointShadowMap, rr.pointShadowMatrix.value = Ye.state.pointShadowMatrix); + const wr = Jn.getUniforms(), Yi = vC.seqWithValue(wr.seq, rr); + return Le.currentProgram = Jn, Le.uniformsList = Yi, Jn; + } + function Bi(Te, ot) { + const de = Ie.get(Te); + de.outputEncoding = ot.outputEncoding, de.instancing = ot.instancing, de.skinning = ot.skinning, de.morphTargets = ot.morphTargets, de.morphNormals = ot.morphNormals, de.morphColors = ot.morphColors, de.morphTargetsCount = ot.morphTargetsCount, de.numClippingPlanes = ot.numClippingPlanes, de.numIntersection = ot.numClipIntersection, de.vertexAlphas = ot.vertexAlphas, de.vertexTangents = ot.vertexTangents, de.toneMapping = ot.toneMapping; + } + function xi(Te, ot, de, Le, Ye) { + ot.isScene !== !0 && (ot = Je), qe.resetTextureUnits(); + const $t = ot.fog, mn = Le.isMeshStandardMaterial ? ot.environment : null, Rn = G === null ? O.outputEncoding : G.isXRRenderTarget === !0 ? G.texture.encoding : wv, gn = (Le.isMeshStandardMaterial ? ht : dt).get(Le.envMap || mn), yn = Le.vertexColors === !0 && !!de.attributes.color && de.attributes.color.itemSize === 4, Jn = !!Le.normalMap && !!de.attributes.tangent, rr = !!de.morphAttributes.position, wr = !!de.morphAttributes.normal, Yi = !!de.morphAttributes.color, La = Le.toneMapped ? O.toneMapping : og, qs = de.morphAttributes.position || de.morphAttributes.normal || de.morphAttributes.color, en = qs !== void 0 ? qs.length : 0, Xr = Ie.get(Le), us = T.state.lights; + if (ve === !0 && (fe === !0 || Te !== Q)) { + const Si = Te === Q && Le.id === B; + oe.setState(Le, Te, Si); + } + let qn = !1; + Le.version === Xr.__version ? (Xr.needsLights && Xr.lightsStateVersion !== us.state.version || Xr.outputEncoding !== Rn || Ye.isInstancedMesh && Xr.instancing === !1 || !Ye.isInstancedMesh && Xr.instancing === !0 || Ye.isSkinnedMesh && Xr.skinning === !1 || !Ye.isSkinnedMesh && Xr.skinning === !0 || Xr.envMap !== gn || Le.fog === !0 && Xr.fog !== $t || Xr.numClippingPlanes !== void 0 && (Xr.numClippingPlanes !== oe.numPlanes || Xr.numIntersection !== oe.numIntersection) || Xr.vertexAlphas !== yn || Xr.vertexTangents !== Jn || Xr.morphTargets !== rr || Xr.morphNormals !== wr || Xr.morphColors !== Yi || Xr.toneMapping !== La || Tt.isWebGL2 === !0 && Xr.morphTargetsCount !== en) && (qn = !0) : (qn = !0, Xr.__version = Le.version); + let qa = Xr.currentProgram; + qn === !0 && (qa = ii(Le, ot, Ye)); + let mo = !1, Ls = !1, cs = !1; + const mr = qa.getUniforms(), di = Xr.uniforms; + if (gt.useProgram(qa.program) && (mo = !0, Ls = !0, cs = !0), Le.id !== B && (B = Le.id, Ls = !0), mo || Q !== Te) { + if (mr.setValue(Ne, "projectionMatrix", Te.projectionMatrix), Tt.logarithmicDepthBuffer && mr.setValue( + Ne, "logDepthBufFC", 2 / (Math.log(Te.far + 1) / Math.LN2) - ), X !== Te && (X = Te, Ds = !0, us = !0), Oe.isShaderMaterial || Oe.isMeshPhongMaterial || Oe.isMeshToonMaterial || Oe.isMeshStandardMaterial || Oe.envMap) { - const _i = mr.map.cameraPosition; - _i !== void 0 && _i.setValue( - Ue, - Xe.setFromMatrixPosition(Te.matrixWorld) + ), Q !== Te && (Q = Te, Ls = !0, cs = !0), Le.isShaderMaterial || Le.isMeshPhongMaterial || Le.isMeshToonMaterial || Le.isMeshStandardMaterial || Le.envMap) { + const Si = mr.map.cameraPosition; + Si !== void 0 && Si.setValue( + Ne, + Ve.setFromMatrixPosition(Te.matrixWorld) ); } - (Oe.isMeshPhongMaterial || Oe.isMeshToonMaterial || Oe.isMeshLambertMaterial || Oe.isMeshBasicMaterial || Oe.isMeshStandardMaterial || Oe.isShaderMaterial) && mr.setValue(Ue, "isOrthographic", Te.isOrthographicCamera === !0), (Oe.isMeshPhongMaterial || Oe.isMeshToonMaterial || Oe.isMeshLambertMaterial || Oe.isMeshBasicMaterial || Oe.isMeshStandardMaterial || Oe.isShaderMaterial || Oe.isShadowMaterial || qe.isSkinnedMesh) && mr.setValue(Ue, "viewMatrix", Te.matrixWorldInverse); + (Le.isMeshPhongMaterial || Le.isMeshToonMaterial || Le.isMeshLambertMaterial || Le.isMeshBasicMaterial || Le.isMeshStandardMaterial || Le.isShaderMaterial) && mr.setValue(Ne, "isOrthographic", Te.isOrthographicCamera === !0), (Le.isMeshPhongMaterial || Le.isMeshToonMaterial || Le.isMeshLambertMaterial || Le.isMeshBasicMaterial || Le.isMeshStandardMaterial || Le.isShaderMaterial || Le.isShadowMaterial || Ye.isSkinnedMesh) && mr.setValue(Ne, "viewMatrix", Te.matrixWorldInverse); } - if (qe.isSkinnedMesh) { - mr.setOptional(Ue, qe, "bindMatrix"), mr.setOptional(Ue, qe, "bindMatrixInverse"); - const _i = qe.skeleton; - _i && (_t.floatVertexTextures ? (_i.boneTexture === null && _i.computeBoneTexture(), mr.setValue(Ue, "boneTexture", _i.boneTexture, et), mr.setValue(Ue, "boneTextureSize", _i.boneTextureSize)) : console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required.")); + if (Ye.isSkinnedMesh) { + mr.setOptional(Ne, Ye, "bindMatrix"), mr.setOptional(Ne, Ye, "bindMatrixInverse"); + const Si = Ye.skeleton; + Si && (Tt.floatVertexTextures ? (Si.boneTexture === null && Si.computeBoneTexture(), mr.setValue(Ne, "boneTexture", Si.boneTexture, qe), mr.setValue(Ne, "boneTextureSize", Si.boneTextureSize)) : console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required.")); } - const Ea = me.morphAttributes; - if ((Ea.position !== void 0 || Ea.normal !== void 0 || Ea.color !== void 0 && _t.isWebGL2 === !0) && zt.update(qe, me, Oe, qa), (Ds || Zr.receiveShadow !== qe.receiveShadow) && (Zr.receiveShadow = qe.receiveShadow, mr.setValue(Ue, "receiveShadow", qe.receiveShadow)), Ds && (mr.setValue(Ue, "toneMappingExposure", P.toneMappingExposure), Zr.needsLights && ji(pi, us), on && Oe.fog === !0 && Jt.refreshFogUniforms(pi, on), Jt.refreshMaterialUniforms(pi, Oe, fe, ie, ce), vC.upload(Ue, Zr.uniformsList, pi, et)), Oe.isShaderMaterial && Oe.uniformsNeedUpdate === !0 && (vC.upload(Ue, Zr.uniformsList, pi, et), Oe.uniformsNeedUpdate = !1), Oe.isSpriteMaterial && mr.setValue(Ue, "center", qe.center), mr.setValue(Ue, "modelViewMatrix", qe.modelViewMatrix), mr.setValue(Ue, "normalMatrix", qe.normalMatrix), mr.setValue(Ue, "modelMatrix", qe.matrixWorld), Oe.isShaderMaterial || Oe.isRawShaderMaterial) { - const _i = Oe.uniformsGroups; - for (let Ti = 0, Uo = _i.length; Ti < Uo; Ti++) - if (_t.isWebGL2) { - const zo = _i[Ti]; - ze.update(zo, qa), ze.bind(zo, qa); + const Ea = de.morphAttributes; + if ((Ea.position !== void 0 || Ea.normal !== void 0 || Ea.color !== void 0 && Tt.isWebGL2 === !0) && Ft.update(Ye, de, Le, qa), (Ls || Xr.receiveShadow !== Ye.receiveShadow) && (Xr.receiveShadow = Ye.receiveShadow, mr.setValue(Ne, "receiveShadow", Ye.receiveShadow)), Ls && (mr.setValue(Ne, "toneMappingExposure", O.toneMappingExposure), Xr.needsLights && $r(di, cs), $t && Le.fog === !0 && Zt.refreshFogUniforms(di, $t), Zt.refreshMaterialUniforms(di, Le, ce, se, he), vC.upload(Ne, Xr.uniformsList, di, qe)), Le.isShaderMaterial && Le.uniformsNeedUpdate === !0 && (vC.upload(Ne, Xr.uniformsList, di, qe), Le.uniformsNeedUpdate = !1), Le.isSpriteMaterial && mr.setValue(Ne, "center", Ye.center), mr.setValue(Ne, "modelViewMatrix", Ye.modelViewMatrix), mr.setValue(Ne, "normalMatrix", Ye.normalMatrix), mr.setValue(Ne, "modelMatrix", Ye.matrixWorld), Le.isShaderMaterial || Le.isRawShaderMaterial) { + const Si = Le.uniformsGroups; + for (let Ti = 0, Uo = Si.length; Ti < Uo; Ti++) + if (Tt.isWebGL2) { + const zo = Si[Ti]; + Be.update(zo, qa), Be.bind(zo, qa); } else console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2."); } return qa; } - function ji(Te, ct) { - Te.ambientLightColor.needsUpdate = ct, Te.lightProbe.needsUpdate = ct, Te.directionalLights.needsUpdate = ct, Te.directionalLightShadows.needsUpdate = ct, Te.pointLights.needsUpdate = ct, Te.pointLightShadows.needsUpdate = ct, Te.spotLights.needsUpdate = ct, Te.spotLightShadows.needsUpdate = ct, Te.rectAreaLights.needsUpdate = ct, Te.hemisphereLights.needsUpdate = ct; + function $r(Te, ot) { + Te.ambientLightColor.needsUpdate = ot, Te.lightProbe.needsUpdate = ot, Te.directionalLights.needsUpdate = ot, Te.directionalLightShadows.needsUpdate = ot, Te.pointLights.needsUpdate = ot, Te.pointLightShadows.needsUpdate = ot, Te.spotLights.needsUpdate = ot, Te.spotLightShadows.needsUpdate = ot, Te.rectAreaLights.needsUpdate = ot, Te.hemisphereLights.needsUpdate = ot; } - function Si(Te) { + function ai(Te) { return Te.isMeshLambertMaterial || Te.isMeshToonMaterial || Te.isMeshPhongMaterial || Te.isMeshStandardMaterial || Te.isShadowMaterial || Te.isShaderMaterial && Te.lights === !0; } this.getActiveCubeFace = function() { - return B; + return H; }, this.getActiveMipmapLevel = function() { - return k; + return I; }, this.getRenderTarget = function() { - return V; - }, this.setRenderTargetTextures = function(Te, ct, me) { - He.get(Te.texture).__webglTexture = ct, He.get(Te.depthTexture).__webglTexture = me; - const Oe = He.get(Te); - Oe.__hasExternalTextures = !0, Oe.__hasExternalTextures && (Oe.__autoAllocateDepthBuffer = me === void 0, Oe.__autoAllocateDepthBuffer || rt.has("WEBGL_multisampled_render_to_texture") === !0 && (console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"), Oe.__useRenderToTexture = !1)); - }, this.setRenderTargetFramebuffer = function(Te, ct) { - const me = He.get(Te); - me.__webglFramebuffer = ct, me.__useDefaultFramebuffer = ct === void 0; - }, this.setRenderTarget = function(Te, ct = 0, me = 0) { - V = Te, B = ct, k = me; - let Oe = !0; + return G; + }, this.setRenderTargetTextures = function(Te, ot, de) { + Ie.get(Te.texture).__webglTexture = ot, Ie.get(Te.depthTexture).__webglTexture = de; + const Le = Ie.get(Te); + Le.__hasExternalTextures = !0, Le.__hasExternalTextures && (Le.__autoAllocateDepthBuffer = de === void 0, Le.__autoAllocateDepthBuffer || tt.has("WEBGL_multisampled_render_to_texture") === !0 && (console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"), Le.__useRenderToTexture = !1)); + }, this.setRenderTargetFramebuffer = function(Te, ot) { + const de = Ie.get(Te); + de.__webglFramebuffer = ot, de.__useDefaultFramebuffer = ot === void 0; + }, this.setRenderTarget = function(Te, ot = 0, de = 0) { + G = Te, H = ot, I = de; + let Le = !0; if (Te) { - const mn = He.get(Te); - mn.__useDefaultFramebuffer !== void 0 ? (Rt.bindFramebuffer(36160, null), Oe = !1) : mn.__webglFramebuffer === void 0 ? et.setupRenderTarget(Te) : mn.__hasExternalTextures && et.rebindTextures(Te, He.get(Te.texture).__webglTexture, He.get(Te.depthTexture).__webglTexture); + const gn = Ie.get(Te); + gn.__useDefaultFramebuffer !== void 0 ? (gt.bindFramebuffer(36160, null), Le = !1) : gn.__webglFramebuffer === void 0 ? qe.setupRenderTarget(Te) : gn.__hasExternalTextures && qe.rebindTextures(Te, Ie.get(Te.texture).__webglTexture, Ie.get(Te.depthTexture).__webglTexture); } - let qe = null, on = !1, yn = !1; + let Ye = null, $t = !1, mn = !1; if (Te) { - const mn = Te.texture; - (mn.isData3DTexture || mn.isDataArrayTexture) && (yn = !0); - const vn = He.get(Te).__webglFramebuffer; - Te.isWebGLCubeRenderTarget ? (qe = vn[ct], on = !0) : _t.isWebGL2 && Te.samples > 0 && et.useMultisampledRTT(Te) === !1 ? qe = He.get(Te).__webglMultisampledFramebuffer : qe = vn, J.copy(Te.viewport), $.copy(Te.scissor), W = Te.scissorTest; + const gn = Te.texture; + (gn.isData3DTexture || gn.isDataArrayTexture) && (mn = !0); + const yn = Ie.get(Te).__webglFramebuffer; + Te.isWebGLCubeRenderTarget ? (Ye = yn[ot], $t = !0) : Tt.isWebGL2 && Te.samples > 0 && qe.useMultisampledRTT(Te) === !1 ? Ye = Ie.get(Te).__webglMultisampledFramebuffer : Ye = yn, K.copy(Te.viewport), te.copy(Te.scissor), Y = Te.scissorTest; } else - J.copy(he).multiplyScalar(fe).floor(), $.copy(Fe).multiplyScalar(fe).floor(), W = Ce; - if (Rt.bindFramebuffer(36160, qe) && _t.drawBuffers && Oe && Rt.drawBuffers(Te, qe), Rt.viewport(J), Rt.scissor($), Rt.setScissorTest(W), on) { - const mn = He.get(Te.texture); - Ue.framebufferTexture2D(36160, 36064, 34069 + ct, mn.__webglTexture, me); - } else if (yn) { - const mn = He.get(Te.texture), vn = ct || 0; - Ue.framebufferTextureLayer(36160, 36064, mn.__webglTexture, me || 0, vn); - } - I = -1; - }, this.readRenderTargetPixels = function(Te, ct, me, Oe, qe, on, yn) { + K.copy(me).multiplyScalar(ce).floor(), te.copy(De).multiplyScalar(ce).floor(), Y = Re; + if (gt.bindFramebuffer(36160, Ye) && Tt.drawBuffers && Le && gt.drawBuffers(Te, Ye), gt.viewport(K), gt.scissor(te), gt.setScissorTest(Y), $t) { + const gn = Ie.get(Te.texture); + Ne.framebufferTexture2D(36160, 36064, 34069 + ot, gn.__webglTexture, de); + } else if (mn) { + const gn = Ie.get(Te.texture), yn = ot || 0; + Ne.framebufferTextureLayer(36160, 36064, gn.__webglTexture, de || 0, yn); + } + B = -1; + }, this.readRenderTargetPixels = function(Te, ot, de, Le, Ye, $t, mn) { if (!(Te && Te.isWebGLRenderTarget)) { console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget."); return; } - let Rn = He.get(Te).__webglFramebuffer; - if (Te.isWebGLCubeRenderTarget && yn !== void 0 && (Rn = Rn[yn]), Rn) { - Rt.bindFramebuffer(36160, Rn); + let Rn = Ie.get(Te).__webglFramebuffer; + if (Te.isWebGLCubeRenderTarget && mn !== void 0 && (Rn = Rn[mn]), Rn) { + gt.bindFramebuffer(36160, Rn); try { - const mn = Te.texture, vn = mn.format, Zn = mn.type; - if (vn !== Sm && tt.convert(vn) !== Ue.getParameter(35739)) { + const gn = Te.texture, yn = gn.format, Jn = gn.type; + if (yn !== zp && it.convert(yn) !== Ne.getParameter(35739)) { console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format."); return; } - const nr = Zn === GS && (rt.has("EXT_color_buffer_half_float") || _t.isWebGL2 && rt.has("EXT_color_buffer_float")); - if (Zn !== Gf && tt.convert(Zn) !== Ue.getParameter(35738) && !(Zn === uy && (_t.isWebGL2 || rt.has("OES_texture_float") || rt.has("WEBGL_color_buffer_float"))) && !nr) { + const rr = Jn === X_ && (tt.has("EXT_color_buffer_half_float") || Tt.isWebGL2 && tt.has("EXT_color_buffer_float")); + if (Jn !== df && it.convert(Jn) !== Ne.getParameter(35738) && !(Jn === fy && (Tt.isWebGL2 || tt.has("OES_texture_float") || tt.has("WEBGL_color_buffer_float"))) && !rr) { console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type."); return; } - ct >= 0 && ct <= Te.width - Oe && me >= 0 && me <= Te.height - qe && Ue.readPixels(ct, me, Oe, qe, tt.convert(vn), tt.convert(Zn), on); + ot >= 0 && ot <= Te.width - Le && de >= 0 && de <= Te.height - Ye && Ne.readPixels(ot, de, Le, Ye, it.convert(yn), it.convert(Jn), $t); } finally { - const mn = V !== null ? He.get(V).__webglFramebuffer : null; - Rt.bindFramebuffer(36160, mn); - } - } - }, this.copyFramebufferToTexture = function(Te, ct, me = 0) { - const Oe = Math.pow(2, -me), qe = Math.floor(ct.image.width * Oe), on = Math.floor(ct.image.height * Oe); - et.setTexture2D(ct, 0), Ue.copyTexSubImage2D(3553, me, 0, 0, Te.x, Te.y, qe, on), Rt.unbindTexture(); - }, this.copyTextureToTexture = function(Te, ct, me, Oe = 0) { - const qe = ct.image.width, on = ct.image.height, yn = tt.convert(me.format), Rn = tt.convert(me.type); - et.setTexture2D(me, 0), Ue.pixelStorei(37440, me.flipY), Ue.pixelStorei(37441, me.premultiplyAlpha), Ue.pixelStorei(3317, me.unpackAlignment), ct.isDataTexture ? Ue.texSubImage2D(3553, Oe, Te.x, Te.y, qe, on, yn, Rn, ct.image.data) : ct.isCompressedTexture ? Ue.compressedTexSubImage2D(3553, Oe, Te.x, Te.y, ct.mipmaps[0].width, ct.mipmaps[0].height, yn, ct.mipmaps[0].data) : Ue.texSubImage2D(3553, Oe, Te.x, Te.y, yn, Rn, ct.image), Oe === 0 && me.generateMipmaps && Ue.generateMipmap(3553), Rt.unbindTexture(); - }, this.copyTextureToTexture3D = function(Te, ct, me, Oe, qe = 0) { - if (P.isWebGL1Renderer) { + const gn = G !== null ? Ie.get(G).__webglFramebuffer : null; + gt.bindFramebuffer(36160, gn); + } + } + }, this.copyFramebufferToTexture = function(Te, ot, de = 0) { + const Le = Math.pow(2, -de), Ye = Math.floor(ot.image.width * Le), $t = Math.floor(ot.image.height * Le); + qe.setTexture2D(ot, 0), Ne.copyTexSubImage2D(3553, de, 0, 0, Te.x, Te.y, Ye, $t), gt.unbindTexture(); + }, this.copyTextureToTexture = function(Te, ot, de, Le = 0) { + const Ye = ot.image.width, $t = ot.image.height, mn = it.convert(de.format), Rn = it.convert(de.type); + qe.setTexture2D(de, 0), Ne.pixelStorei(37440, de.flipY), Ne.pixelStorei(37441, de.premultiplyAlpha), Ne.pixelStorei(3317, de.unpackAlignment), ot.isDataTexture ? Ne.texSubImage2D(3553, Le, Te.x, Te.y, Ye, $t, mn, Rn, ot.image.data) : ot.isCompressedTexture ? Ne.compressedTexSubImage2D(3553, Le, Te.x, Te.y, ot.mipmaps[0].width, ot.mipmaps[0].height, mn, ot.mipmaps[0].data) : Ne.texSubImage2D(3553, Le, Te.x, Te.y, mn, Rn, ot.image), Le === 0 && de.generateMipmaps && Ne.generateMipmap(3553), gt.unbindTexture(); + }, this.copyTextureToTexture3D = function(Te, ot, de, Le, Ye = 0) { + if (O.isWebGL1Renderer) { console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2."); return; } - const on = Te.max.x - Te.min.x + 1, yn = Te.max.y - Te.min.y + 1, Rn = Te.max.z - Te.min.z + 1, mn = tt.convert(Oe.format), vn = tt.convert(Oe.type); - let Zn; - if (Oe.isData3DTexture) - et.setTexture3D(Oe, 0), Zn = 32879; - else if (Oe.isDataArrayTexture) - et.setTexture2DArray(Oe, 0), Zn = 35866; + const $t = Te.max.x - Te.min.x + 1, mn = Te.max.y - Te.min.y + 1, Rn = Te.max.z - Te.min.z + 1, gn = it.convert(Le.format), yn = it.convert(Le.type); + let Jn; + if (Le.isData3DTexture) + qe.setTexture3D(Le, 0), Jn = 32879; + else if (Le.isDataArrayTexture) + qe.setTexture2DArray(Le, 0), Jn = 35866; else { console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray."); return; } - Ue.pixelStorei(37440, Oe.flipY), Ue.pixelStorei(37441, Oe.premultiplyAlpha), Ue.pixelStorei(3317, Oe.unpackAlignment); - const nr = Ue.getParameter(3314), br = Ue.getParameter(32878), Yi = Ue.getParameter(3316), La = Ue.getParameter(3315), Xs = Ue.getParameter(32877), $t = me.isCompressedTexture ? me.mipmaps[0] : me.image; - Ue.pixelStorei(3314, $t.width), Ue.pixelStorei(32878, $t.height), Ue.pixelStorei(3316, Te.min.x), Ue.pixelStorei(3315, Te.min.y), Ue.pixelStorei(32877, Te.min.z), me.isDataTexture || me.isData3DTexture ? Ue.texSubImage3D(Zn, qe, ct.x, ct.y, ct.z, on, yn, Rn, mn, vn, $t.data) : me.isCompressedTexture ? (console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."), Ue.compressedTexSubImage3D(Zn, qe, ct.x, ct.y, ct.z, on, yn, Rn, mn, $t.data)) : Ue.texSubImage3D(Zn, qe, ct.x, ct.y, ct.z, on, yn, Rn, mn, vn, $t), Ue.pixelStorei(3314, nr), Ue.pixelStorei(32878, br), Ue.pixelStorei(3316, Yi), Ue.pixelStorei(3315, La), Ue.pixelStorei(32877, Xs), qe === 0 && Oe.generateMipmaps && Ue.generateMipmap(Zn), Rt.unbindTexture(); + Ne.pixelStorei(37440, Le.flipY), Ne.pixelStorei(37441, Le.premultiplyAlpha), Ne.pixelStorei(3317, Le.unpackAlignment); + const rr = Ne.getParameter(3314), wr = Ne.getParameter(32878), Yi = Ne.getParameter(3316), La = Ne.getParameter(3315), qs = Ne.getParameter(32877), en = de.isCompressedTexture ? de.mipmaps[0] : de.image; + Ne.pixelStorei(3314, en.width), Ne.pixelStorei(32878, en.height), Ne.pixelStorei(3316, Te.min.x), Ne.pixelStorei(3315, Te.min.y), Ne.pixelStorei(32877, Te.min.z), de.isDataTexture || de.isData3DTexture ? Ne.texSubImage3D(Jn, Ye, ot.x, ot.y, ot.z, $t, mn, Rn, gn, yn, en.data) : de.isCompressedTexture ? (console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."), Ne.compressedTexSubImage3D(Jn, Ye, ot.x, ot.y, ot.z, $t, mn, Rn, gn, en.data)) : Ne.texSubImage3D(Jn, Ye, ot.x, ot.y, ot.z, $t, mn, Rn, gn, yn, en), Ne.pixelStorei(3314, rr), Ne.pixelStorei(32878, wr), Ne.pixelStorei(3316, Yi), Ne.pixelStorei(3315, La), Ne.pixelStorei(32877, qs), Ye === 0 && Le.generateMipmaps && Ne.generateMipmap(Jn), gt.unbindTexture(); }, this.initTexture = function(Te) { - Te.isCubeTexture ? et.setTextureCube(Te, 0) : Te.isData3DTexture ? et.setTexture3D(Te, 0) : Te.isDataArrayTexture ? et.setTexture2DArray(Te, 0) : et.setTexture2D(Te, 0), Rt.unbindTexture(); + Te.isCubeTexture ? qe.setTextureCube(Te, 0) : Te.isData3DTexture ? qe.setTexture3D(Te, 0) : Te.isDataArrayTexture ? qe.setTexture2DArray(Te, 0) : qe.setTexture2D(Te, 0), gt.unbindTexture(); }, this.resetState = function() { - B = 0, k = 0, V = null, Rt.reset(), rn.reset(); + H = 0, I = 0, G = null, gt.reset(), an.reset(); }, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this })); } -class AF extends $3 { +class GF extends $3 { } -AF.prototype.isWebGL1Renderer = !0; -class VC { +GF.prototype.isWebGL1Renderer = !0; +class GC { constructor(e, t = 25e-5) { - this.isFogExp2 = !0, this.name = "", this.color = new Pn(e), this.density = t; + this.isFogExp2 = !0, this.name = "", this.color = new Un(e), this.density = t; } clone() { - return new VC(this.color, this.density); + return new GC(this.color, this.density); } toJSON() { return { @@ -12343,12 +12343,12 @@ class VC { }; } } -class GC { +class WC { constructor(e, t = 1, r = 1e3) { - this.isFog = !0, this.name = "", this.color = new Pn(e), this.near = t, this.far = r; + this.isFog = !0, this.name = "", this.color = new Un(e), this.near = t, this.far = r; } clone() { - return new GC(this.color, this.near, this.far); + return new WC(this.color, this.near, this.far); } toJSON() { return { @@ -12359,7 +12359,7 @@ class GC { }; } } -class zM extends Xa { +class NM extends Xa { constructor() { super(), this.isScene = !0, this.type = "Scene", this.background = null, this.environment = null, this.fog = null, this.overrideMaterial = null, this.autoUpdate = !0, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this })); } @@ -12371,9 +12371,9 @@ class zM extends Xa { return this.fog !== null && (t.object.fog = this.fog.toJSON()), t; } } -class WC { +class jC { constructor(e, t) { - this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e !== void 0 ? e.length / t : 0, this.usage = PM, this.updateRange = { offset: 0, count: -1 }, this.version = 0, this.uuid = bm(); + this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e !== void 0 ? e.length / t : 0, this.usage = OM, this.updateRange = { offset: 0, count: -1 }, this.version = 0, this.uuid = Em(); } onUploadCallback() { } @@ -12388,7 +12388,7 @@ class WC { } copyAt(e, t, r) { e *= this.stride, r *= t.stride; - for (let i = 0, o = this.stride; i < o; i++) + for (let i = 0, s = this.stride; i < s; i++) this.array[e + i] = t.array[r + i]; return this; } @@ -12396,7 +12396,7 @@ class WC { return this.array.set(e, t), this; } clone(e) { - e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = bm()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = this.array.slice(0).buffer); + e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = Em()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = this.array.slice(0).buffer); const t = new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]), r = new this.constructor(t, this.stride); return r.setUsage(this.usage), r; } @@ -12404,7 +12404,7 @@ class WC { return this.onUploadCallback = e, this; } toJSON(e) { - return e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = bm()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = Array.from(new Uint32Array(this.array.buffer))), { + return e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = Em()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = Array.from(new Uint32Array(this.array.buffer))), { uuid: this.uuid, buffer: this.array.buffer._uuid, type: this.array.constructor.name, @@ -12412,8 +12412,8 @@ class WC { }; } } -const Vh = /* @__PURE__ */ new ve(); -class _m { +const Gh = /* @__PURE__ */ new ge(); +class bm { constructor(e, t, r, i = !1) { this.isInterleavedBufferAttribute = !0, this.name = "", this.data = e, this.itemSize = t, this.offset = r, this.normalized = i === !0; } @@ -12428,17 +12428,17 @@ class _m { } applyMatrix4(e) { for (let t = 0, r = this.data.count; t < r; t++) - Vh.fromBufferAttribute(this, t), Vh.applyMatrix4(e), this.setXYZ(t, Vh.x, Vh.y, Vh.z); + Gh.fromBufferAttribute(this, t), Gh.applyMatrix4(e), this.setXYZ(t, Gh.x, Gh.y, Gh.z); return this; } applyNormalMatrix(e) { for (let t = 0, r = this.count; t < r; t++) - Vh.fromBufferAttribute(this, t), Vh.applyNormalMatrix(e), this.setXYZ(t, Vh.x, Vh.y, Vh.z); + Gh.fromBufferAttribute(this, t), Gh.applyNormalMatrix(e), this.setXYZ(t, Gh.x, Gh.y, Gh.z); return this; } transformDirection(e) { for (let t = 0, r = this.count; t < r; t++) - Vh.fromBufferAttribute(this, t), Vh.transformDirection(e), this.setXYZ(t, Vh.x, Vh.y, Vh.z); + Gh.fromBufferAttribute(this, t), Gh.transformDirection(e), this.setXYZ(t, Gh.x, Gh.y, Gh.z); return this; } setX(e, t) { @@ -12471,8 +12471,8 @@ class _m { setXYZ(e, t, r, i) { return e = e * this.data.stride + this.offset, this.data.array[e + 0] = t, this.data.array[e + 1] = r, this.data.array[e + 2] = i, this; } - setXYZW(e, t, r, i, o) { - return e = e * this.data.stride + this.offset, this.data.array[e + 0] = t, this.data.array[e + 1] = r, this.data.array[e + 2] = i, this.data.array[e + 3] = o, this; + setXYZW(e, t, r, i, s) { + return e = e * this.data.stride + this.offset, this.data.array[e + 0] = t, this.data.array[e + 1] = r, this.data.array[e + 2] = i, this.data.array[e + 3] = s, this; } clone(e) { if (e === void 0) { @@ -12480,12 +12480,12 @@ class _m { const t = []; for (let r = 0; r < this.count; r++) { const i = r * this.data.stride + this.offset; - for (let o = 0; o < this.itemSize; o++) - t.push(this.data.array[i + o]); + for (let s = 0; s < this.itemSize; s++) + t.push(this.data.array[i + s]); } - return new os(new this.array.constructor(t), this.itemSize, this.normalized); + return new ls(new this.array.constructor(t), this.itemSize, this.normalized); } else - return e.interleavedBuffers === void 0 && (e.interleavedBuffers = {}), e.interleavedBuffers[this.data.uuid] === void 0 && (e.interleavedBuffers[this.data.uuid] = this.data.clone(e)), new _m(e.interleavedBuffers[this.data.uuid], this.itemSize, this.offset, this.normalized); + return e.interleavedBuffers === void 0 && (e.interleavedBuffers = {}), e.interleavedBuffers[this.data.uuid] === void 0 && (e.interleavedBuffers[this.data.uuid] = this.data.clone(e)), new bm(e.interleavedBuffers[this.data.uuid], this.itemSize, this.offset, this.normalized); } toJSON(e) { if (e === void 0) { @@ -12493,8 +12493,8 @@ class _m { const t = []; for (let r = 0; r < this.count; r++) { const i = r * this.data.stride + this.offset; - for (let o = 0; o < this.itemSize; o++) - t.push(this.data.array[i + o]); + for (let s = 0; s < this.itemSize; s++) + t.push(this.data.array[i + s]); } return { itemSize: this.itemSize, @@ -12512,20 +12512,20 @@ class _m { }; } } -class eL extends ff { +class eL extends hf { constructor(e) { - super(), this.isSpriteMaterial = !0, this.type = "SpriteMaterial", this.color = new Pn(16777215), this.map = null, this.alphaMap = null, this.rotation = 0, this.sizeAttenuation = !0, this.transparent = !0, this.fog = !0, this.setValues(e); + super(), this.isSpriteMaterial = !0, this.type = "SpriteMaterial", this.color = new Un(16777215), this.map = null, this.alphaMap = null, this.rotation = 0, this.sizeAttenuation = !0, this.transparent = !0, this.fog = !0, this.setValues(e); } copy(e) { return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.rotation = e.rotation, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this; } } -let Db; -const eM = /* @__PURE__ */ new ve(), Lb = /* @__PURE__ */ new ve(), Pb = /* @__PURE__ */ new ve(), Ob = /* @__PURE__ */ new Ft(), tM = /* @__PURE__ */ new Ft(), DF = /* @__PURE__ */ new si(), C2 = /* @__PURE__ */ new ve(), nM = /* @__PURE__ */ new ve(), R2 = /* @__PURE__ */ new ve(), lU = /* @__PURE__ */ new Ft(), QA = /* @__PURE__ */ new Ft(), uU = /* @__PURE__ */ new Ft(); -class LF extends Xa { +let zw; +const eM = /* @__PURE__ */ new ge(), Nw = /* @__PURE__ */ new ge(), Fw = /* @__PURE__ */ new ge(), kw = /* @__PURE__ */ new zt(), tM = /* @__PURE__ */ new zt(), WF = /* @__PURE__ */ new Kr(), C2 = /* @__PURE__ */ new ge(), nM = /* @__PURE__ */ new ge(), R2 = /* @__PURE__ */ new ge(), fU = /* @__PURE__ */ new zt(), ZA = /* @__PURE__ */ new zt(), dU = /* @__PURE__ */ new zt(); +class jF extends Xa { constructor(e) { - if (super(), this.isSprite = !0, this.type = "Sprite", Db === void 0) { - Db = new ui(); + if (super(), this.isSprite = !0, this.type = "Sprite", zw === void 0) { + zw = new oi(); const t = new Float32Array([ -0.5, -0.5, @@ -12547,26 +12547,26 @@ class LF extends Xa { 0, 0, 1 - ]), r = new WC(t, 5); - Db.setIndex([0, 1, 2, 0, 2, 3]), Db.setAttribute("position", new _m(r, 3, 0, !1)), Db.setAttribute("uv", new _m(r, 2, 3, !1)); + ]), r = new jC(t, 5); + zw.setIndex([0, 1, 2, 0, 2, 3]), zw.setAttribute("position", new bm(r, 3, 0, !1)), zw.setAttribute("uv", new bm(r, 2, 3, !1)); } - this.geometry = Db, this.material = e !== void 0 ? e : new eL(), this.center = new Ft(0.5, 0.5); + this.geometry = zw, this.material = e !== void 0 ? e : new eL(), this.center = new zt(0.5, 0.5); } raycast(e, t) { - e.camera === null && console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'), Lb.setFromMatrixScale(this.matrixWorld), DF.copy(e.camera.matrixWorld), this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse, this.matrixWorld), Pb.setFromMatrixPosition(this.modelViewMatrix), e.camera.isPerspectiveCamera && this.material.sizeAttenuation === !1 && Lb.multiplyScalar(-Pb.z); + e.camera === null && console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'), Nw.setFromMatrixScale(this.matrixWorld), WF.copy(e.camera.matrixWorld), this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse, this.matrixWorld), Fw.setFromMatrixPosition(this.modelViewMatrix), e.camera.isPerspectiveCamera && this.material.sizeAttenuation === !1 && Nw.multiplyScalar(-Fw.z); const r = this.material.rotation; - let i, o; - r !== 0 && (o = Math.cos(r), i = Math.sin(r)); + let i, s; + r !== 0 && (s = Math.cos(r), i = Math.sin(r)); const l = this.center; - A2(C2.set(-0.5, -0.5, 0), Pb, l, Lb, i, o), A2(nM.set(0.5, -0.5, 0), Pb, l, Lb, i, o), A2(R2.set(0.5, 0.5, 0), Pb, l, Lb, i, o), lU.set(0, 0), QA.set(1, 0), uU.set(1, 1); + A2(C2.set(-0.5, -0.5, 0), Fw, l, Nw, i, s), A2(nM.set(0.5, -0.5, 0), Fw, l, Nw, i, s), A2(R2.set(0.5, 0.5, 0), Fw, l, Nw, i, s), fU.set(0, 0), ZA.set(1, 0), dU.set(1, 1); let d = e.ray.intersectTriangle(C2, nM, R2, !1, eM); - if (d === null && (A2(nM.set(-0.5, 0.5, 0), Pb, l, Lb, i, o), QA.set(0, 1), d = e.ray.intersectTriangle(C2, R2, nM, !1, eM), d === null)) + if (d === null && (A2(nM.set(-0.5, 0.5, 0), Fw, l, Nw, i, s), ZA.set(0, 1), d = e.ray.intersectTriangle(C2, R2, nM, !1, eM), d === null)) return; - const h = e.ray.origin.distanceTo(eM); - h < e.near || h > e.far || t.push({ - distance: h, + const p = e.ray.origin.distanceTo(eM); + p < e.near || p > e.far || t.push({ + distance: p, point: eM.clone(), - uv: xm.getUV(eM, C2, nM, R2, lU, QA, uU, new Ft()), + uv: wm.getUV(eM, C2, nM, R2, fU, ZA, dU, new zt()), face: null, object: this }); @@ -12575,11 +12575,11 @@ class LF extends Xa { return super.copy(e, t), e.center !== void 0 && this.center.copy(e.center), this.material = e.material, this; } } -function A2(a, e, t, r, i, o) { - Ob.subVectors(a, t).addScalar(0.5).multiply(r), i !== void 0 ? (tM.x = o * Ob.x - i * Ob.y, tM.y = i * Ob.x + o * Ob.y) : tM.copy(Ob), a.copy(e), a.x += tM.x, a.y += tM.y, a.applyMatrix4(DF); +function A2(a, e, t, r, i, s) { + kw.subVectors(a, t).addScalar(0.5).multiply(r), i !== void 0 ? (tM.x = s * kw.x - i * kw.y, tM.y = i * kw.x + s * kw.y) : tM.copy(kw), a.copy(e), a.x += tM.x, a.y += tM.y, a.applyMatrix4(WF); } -const D2 = /* @__PURE__ */ new ve(), cU = /* @__PURE__ */ new ve(); -class PF extends Xa { +const D2 = /* @__PURE__ */ new ge(), hU = /* @__PURE__ */ new ge(); +class YF extends Xa { constructor() { super(), this._currentLevel = 0, this.type = "LOD", Object.defineProperties(this, { levels: { @@ -12595,8 +12595,8 @@ class PF extends Xa { super.copy(e, !1); const t = e.levels; for (let r = 0, i = t.length; r < i; r++) { - const o = t[r]; - this.addLevel(o.object.clone(), o.distance); + const s = t[r]; + this.addLevel(s.object.clone(), s.distance); } return this.autoUpdate = e.autoUpdate, this; } @@ -12631,13 +12631,13 @@ class PF extends Xa { update(e) { const t = this.levels; if (t.length > 1) { - D2.setFromMatrixPosition(e.matrixWorld), cU.setFromMatrixPosition(this.matrixWorld); - const r = D2.distanceTo(cU) / e.zoom; + D2.setFromMatrixPosition(e.matrixWorld), hU.setFromMatrixPosition(this.matrixWorld); + const r = D2.distanceTo(hU) / e.zoom; t[0].object.visible = !0; - let i, o; - for (i = 1, o = t.length; i < o && r >= t[i].distance; i++) + let i, s; + for (i = 1, s = t.length; i < s && r >= t[i].distance; i++) t[i - 1].object.visible = !1, t[i].object.visible = !0; - for (this._currentLevel = i - 1; i < o; i++) + for (this._currentLevel = i - 1; i < s; i++) t[i].object.visible = !1; } } @@ -12645,7 +12645,7 @@ class PF extends Xa { const t = super.toJSON(e); this.autoUpdate === !1 && (t.object.autoUpdate = !1), t.object.levels = []; const r = this.levels; - for (let i = 0, o = r.length; i < o; i++) { + for (let i = 0, s = r.length; i < s; i++) { const l = r[i]; t.object.levels.push({ object: l.object.uuid, @@ -12655,10 +12655,10 @@ class PF extends Xa { return t; } } -const fU = /* @__PURE__ */ new ve(), dU = /* @__PURE__ */ new la(), hU = /* @__PURE__ */ new la(), dW = /* @__PURE__ */ new ve(), pU = /* @__PURE__ */ new si(); -class OF extends zn { +const pU = /* @__PURE__ */ new ge(), mU = /* @__PURE__ */ new ra(), vU = /* @__PURE__ */ new ra(), EW = /* @__PURE__ */ new ge(), gU = /* @__PURE__ */ new Kr(); +class XF extends Fn { constructor(e, t) { - super(e, t), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = "attached", this.bindMatrix = new si(), this.bindMatrixInverse = new si(); + super(e, t), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = "attached", this.bindMatrix = new Kr(), this.bindMatrixInverse = new Kr(); } copy(e, t) { return super.copy(e, t), this.bindMode = e.bindMode, this.bindMatrix.copy(e.bindMatrix), this.bindMatrixInverse.copy(e.bindMatrixInverse), this.skeleton = e.skeleton, this; @@ -12670,11 +12670,11 @@ class OF extends zn { this.skeleton.pose(); } normalizeSkinWeights() { - const e = new la(), t = this.geometry.attributes.skinWeight; + const e = new ra(), t = this.geometry.attributes.skinWeight; for (let r = 0, i = t.count; r < i; r++) { e.fromBufferAttribute(t, r); - const o = 1 / e.manhattanLength(); - o !== 1 / 0 ? e.multiplyScalar(o) : e.set(1, 0, 0, 0), t.setXYZW(r, e.x, e.y, e.z, e.w); + const s = 1 / e.manhattanLength(); + s !== 1 / 0 ? e.multiplyScalar(s) : e.set(1, 0, 0, 0), t.setXYZW(r, e.x, e.y, e.z, e.w); } } updateMatrixWorld(e) { @@ -12682,12 +12682,12 @@ class OF extends zn { } boneTransform(e, t) { const r = this.skeleton, i = this.geometry; - dU.fromBufferAttribute(i.attributes.skinIndex, e), hU.fromBufferAttribute(i.attributes.skinWeight, e), fU.copy(t).applyMatrix4(this.bindMatrix), t.set(0, 0, 0); - for (let o = 0; o < 4; o++) { - const l = hU.getComponent(o); + mU.fromBufferAttribute(i.attributes.skinIndex, e), vU.fromBufferAttribute(i.attributes.skinWeight, e), pU.copy(t).applyMatrix4(this.bindMatrix), t.set(0, 0, 0); + for (let s = 0; s < 4; s++) { + const l = vU.getComponent(s); if (l !== 0) { - const d = dU.getComponent(o); - pU.multiplyMatrices(r.bones[d].matrixWorld, r.boneInverses[d]), t.addScaledVector(dW.copy(fU).applyMatrix4(pU), l); + const d = mU.getComponent(s); + gU.multiplyMatrices(r.bones[d].matrixWorld, r.boneInverses[d]), t.addScaledVector(EW.copy(pU).applyMatrix4(gU), l); } } return t.applyMatrix4(this.bindMatrixInverse); @@ -12698,15 +12698,15 @@ class tL extends Xa { super(), this.isBone = !0, this.type = "Bone"; } } -class Yb extends iu { - constructor(e = null, t = 1, r = 1, i, o, l, d, h, m = fo, S = fo, _, T) { - super(null, l, d, h, m, S, i, o, _, T), this.isDataTexture = !0, this.image = { data: e, width: t, height: r }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1; +class qw extends su { + constructor(e = null, t = 1, r = 1, i, s, l, d, p, g = fo, _ = fo, w, T) { + super(null, l, d, p, g, _, i, s, w, T), this.isDataTexture = !0, this.image = { data: e, width: t, height: r }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1; } } -const mU = /* @__PURE__ */ new si(), hW = /* @__PURE__ */ new si(); -class jC { +const yU = /* @__PURE__ */ new Kr(), MW = /* @__PURE__ */ new Kr(); +class YC { constructor(e = [], t = []) { - this.uuid = bm(), this.bones = e.slice(0), this.boneInverses = t, this.boneMatrices = null, this.boneTexture = null, this.boneTextureSize = 0, this.frame = -1, this.init(); + this.uuid = Em(), this.bones = e.slice(0), this.boneInverses = t, this.boneMatrices = null, this.boneTexture = null, this.boneTextureSize = 0, this.frame = -1, this.init(); } init() { const e = this.bones, t = this.boneInverses; @@ -12715,13 +12715,13 @@ class jC { else if (e.length !== t.length) { console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."), this.boneInverses = []; for (let r = 0, i = this.bones.length; r < i; r++) - this.boneInverses.push(new si()); + this.boneInverses.push(new Kr()); } } calculateInverses() { this.boneInverses.length = 0; for (let e = 0, t = this.bones.length; e < t; e++) { - const r = new si(); + const r = new Kr(); this.bones[e] && r.copy(this.bones[e].matrixWorld).invert(), this.boneInverses.push(r); } } @@ -12737,21 +12737,21 @@ class jC { } update() { const e = this.bones, t = this.boneInverses, r = this.boneMatrices, i = this.boneTexture; - for (let o = 0, l = e.length; o < l; o++) { - const d = e[o] ? e[o].matrixWorld : hW; - mU.multiplyMatrices(d, t[o]), mU.toArray(r, o * 16); + for (let s = 0, l = e.length; s < l; s++) { + const d = e[s] ? e[s].matrixWorld : MW; + yU.multiplyMatrices(d, t[s]), yU.toArray(r, s * 16); } i !== null && (i.needsUpdate = !0); } clone() { - return new jC(this.bones, this.boneInverses); + return new YC(this.bones, this.boneInverses); } computeBoneTexture() { let e = Math.sqrt(this.bones.length * 4); - e = mF(e), e = Math.max(e, 4); + e = AF(e), e = Math.max(e, 4); const t = new Float32Array(e * e * 4); t.set(this.boneMatrices); - const r = new Yb(t, e, e, Sm, uy); + const r = new qw(t, e, e, zp, fy); return r.needsUpdate = !0, this.boneMatrices = t, this.boneTexture = r, this.boneTextureSize = e, this; } getBoneByName(e) { @@ -12767,9 +12767,9 @@ class jC { fromJSON(e, t) { this.uuid = e.uuid; for (let r = 0, i = e.bones.length; r < i; r++) { - const o = e.bones[r]; - let l = t[o]; - l === void 0 && (console.warn("THREE.Skeleton: No bone found with UUID:", o), l = new tL()), this.bones.push(l), this.boneInverses.push(new si().fromArray(e.boneInverses[r])); + const s = e.bones[r]; + let l = t[s]; + l === void 0 && (console.warn("THREE.Skeleton: No bone found with UUID:", s), l = new tL()), this.bones.push(l), this.boneInverses.push(new Kr().fromArray(e.boneInverses[r])); } return this.init(), this; } @@ -12785,7 +12785,7 @@ class jC { }; e.uuid = this.uuid; const t = this.bones, r = this.boneInverses; - for (let i = 0, o = t.length; i < o; i++) { + for (let i = 0, s = t.length; i < s; i++) { const l = t[i]; e.bones.push(l.uuid); const d = r[i]; @@ -12794,7 +12794,7 @@ class jC { return e; } } -class WS extends os { +class q_ extends ls { constructor(e, t, r, i = 1) { typeof r == "number" && (i = r, r = !1, console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")), super(e, t, r), this.isInstancedBufferAttribute = !0, this.meshPerAttribute = i; } @@ -12806,10 +12806,10 @@ class WS extends os { return e.meshPerAttribute = this.meshPerAttribute, e.isInstancedBufferAttribute = !0, e; } } -const vU = /* @__PURE__ */ new si(), gU = /* @__PURE__ */ new si(), L2 = [], rM = /* @__PURE__ */ new zn(); -class UF extends zn { +const xU = /* @__PURE__ */ new Kr(), _U = /* @__PURE__ */ new Kr(), L2 = [], rM = /* @__PURE__ */ new Fn(); +class qF extends Fn { constructor(e, t, r) { - super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new WS(new Float32Array(r * 16), 16), this.instanceColor = null, this.count = r, this.frustumCulled = !1; + super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new q_(new Float32Array(r * 16), 16), this.instanceColor = null, this.count = r, this.frustumCulled = !1; } copy(e, t) { return super.copy(e, t), this.instanceMatrix.copy(e.instanceMatrix), e.instanceColor !== null && (this.instanceColor = e.instanceColor.clone()), this.count = e.count, this; @@ -12823,17 +12823,17 @@ class UF extends zn { raycast(e, t) { const r = this.matrixWorld, i = this.count; if (rM.geometry = this.geometry, rM.material = this.material, rM.material !== void 0) - for (let o = 0; o < i; o++) { - this.getMatrixAt(o, vU), gU.multiplyMatrices(r, vU), rM.matrixWorld = gU, rM.raycast(e, L2); + for (let s = 0; s < i; s++) { + this.getMatrixAt(s, xU), _U.multiplyMatrices(r, xU), rM.matrixWorld = _U, rM.raycast(e, L2); for (let l = 0, d = L2.length; l < d; l++) { - const h = L2[l]; - h.instanceId = o, h.object = this, t.push(h); + const p = L2[l]; + p.instanceId = s, p.object = this, t.push(p); } L2.length = 0; } } setColorAt(e, t) { - this.instanceColor === null && (this.instanceColor = new WS(new Float32Array(this.instanceMatrix.count * 3), 3)), t.toArray(this.instanceColor.array, e * 3); + this.instanceColor === null && (this.instanceColor = new q_(new Float32Array(this.instanceMatrix.count * 3), 3)), t.toArray(this.instanceColor.array, e * 3); } setMatrixAt(e, t) { t.toArray(this.instanceMatrix.array, e * 16); @@ -12844,17 +12844,17 @@ class UF extends zn { this.dispatchEvent({ type: "dispose" }); } } -class ph extends ff { +class mh extends hf { constructor(e) { - super(), this.isLineBasicMaterial = !0, this.type = "LineBasicMaterial", this.color = new Pn(16777215), this.linewidth = 1, this.linecap = "round", this.linejoin = "round", this.fog = !0, this.setValues(e); + super(), this.isLineBasicMaterial = !0, this.type = "LineBasicMaterial", this.color = new Un(16777215), this.linewidth = 1, this.linecap = "round", this.linejoin = "round", this.fog = !0, this.setValues(e); } copy(e) { return super.copy(e), this.color.copy(e.color), this.linewidth = e.linewidth, this.linecap = e.linecap, this.linejoin = e.linejoin, this.fog = e.fog, this; } } -const yU = /* @__PURE__ */ new ve(), xU = /* @__PURE__ */ new ve(), SU = /* @__PURE__ */ new si(), ZA = /* @__PURE__ */ new KM(), P2 = /* @__PURE__ */ new vy(); -class ch extends Xa { - constructor(e = new ui(), t = new ph()) { +const SU = /* @__PURE__ */ new ge(), wU = /* @__PURE__ */ new ge(), bU = /* @__PURE__ */ new Kr(), JA = /* @__PURE__ */ new KM(), P2 = /* @__PURE__ */ new yy(); +class fh extends Xa { + constructor(e = new oi(), t = new mh()) { super(), this.isLine = !0, this.type = "Line", this.geometry = e, this.material = t, this.updateMorphTargets(); } copy(e, t) { @@ -12864,47 +12864,47 @@ class ch extends Xa { const e = this.geometry; if (e.index === null) { const t = e.attributes.position, r = [0]; - for (let i = 1, o = t.count; i < o; i++) - yU.fromBufferAttribute(t, i - 1), xU.fromBufferAttribute(t, i), r[i] = r[i - 1], r[i] += yU.distanceTo(xU); + for (let i = 1, s = t.count; i < s; i++) + SU.fromBufferAttribute(t, i - 1), wU.fromBufferAttribute(t, i), r[i] = r[i - 1], r[i] += SU.distanceTo(wU); e.setAttribute("lineDistance", new sr(r, 1)); } else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry."); return this; } raycast(e, t) { - const r = this.geometry, i = this.matrixWorld, o = e.params.Line.threshold, l = r.drawRange; - if (r.boundingSphere === null && r.computeBoundingSphere(), P2.copy(r.boundingSphere), P2.applyMatrix4(i), P2.radius += o, e.ray.intersectsSphere(P2) === !1) + const r = this.geometry, i = this.matrixWorld, s = e.params.Line.threshold, l = r.drawRange; + if (r.boundingSphere === null && r.computeBoundingSphere(), P2.copy(r.boundingSphere), P2.applyMatrix4(i), P2.radius += s, e.ray.intersectsSphere(P2) === !1) return; - SU.copy(i).invert(), ZA.copy(e.ray).applyMatrix4(SU); - const d = o / ((this.scale.x + this.scale.y + this.scale.z) / 3), h = d * d, m = new ve(), S = new ve(), _ = new ve(), T = new ve(), C = this.isLineSegments ? 2 : 1, D = r.index, U = r.attributes.position; + bU.copy(i).invert(), JA.copy(e.ray).applyMatrix4(bU); + const d = s / ((this.scale.x + this.scale.y + this.scale.z) / 3), p = d * d, g = new ge(), _ = new ge(), w = new ge(), T = new ge(), R = this.isLineSegments ? 2 : 1, D = r.index, U = r.attributes.position; if (D !== null) { - const B = Math.max(0, l.start), k = Math.min(D.count, l.start + l.count); - for (let V = B, I = k - 1; V < I; V += C) { - const X = D.getX(V), J = D.getX(V + 1); - if (m.fromBufferAttribute(U, X), S.fromBufferAttribute(U, J), ZA.distanceSqToSegment(m, S, T, _) > h) + const H = Math.max(0, l.start), I = Math.min(D.count, l.start + l.count); + for (let G = H, B = I - 1; G < B; G += R) { + const Q = D.getX(G), K = D.getX(G + 1); + if (g.fromBufferAttribute(U, Q), _.fromBufferAttribute(U, K), JA.distanceSqToSegment(g, _, T, w) > p) continue; T.applyMatrix4(this.matrixWorld); - const W = e.ray.origin.distanceTo(T); - W < e.near || W > e.far || t.push({ - distance: W, - point: _.clone().applyMatrix4(this.matrixWorld), - index: V, + const Y = e.ray.origin.distanceTo(T); + Y < e.near || Y > e.far || t.push({ + distance: Y, + point: w.clone().applyMatrix4(this.matrixWorld), + index: G, face: null, faceIndex: null, object: this }); } } else { - const B = Math.max(0, l.start), k = Math.min(U.count, l.start + l.count); - for (let V = B, I = k - 1; V < I; V += C) { - if (m.fromBufferAttribute(U, V), S.fromBufferAttribute(U, V + 1), ZA.distanceSqToSegment(m, S, T, _) > h) + const H = Math.max(0, l.start), I = Math.min(U.count, l.start + l.count); + for (let G = H, B = I - 1; G < B; G += R) { + if (g.fromBufferAttribute(U, G), _.fromBufferAttribute(U, G + 1), JA.distanceSqToSegment(g, _, T, w) > p) continue; T.applyMatrix4(this.matrixWorld); - const J = e.ray.origin.distanceTo(T); - J < e.near || J > e.far || t.push({ - distance: J, - point: _.clone().applyMatrix4(this.matrixWorld), - index: V, + const K = e.ray.origin.distanceTo(T); + K < e.near || K > e.far || t.push({ + distance: K, + point: w.clone().applyMatrix4(this.matrixWorld), + index: G, face: null, faceIndex: null, object: this @@ -12918,16 +12918,16 @@ class ch extends Xa { const i = t[r[0]]; if (i !== void 0) { this.morphTargetInfluences = [], this.morphTargetDictionary = {}; - for (let o = 0, l = i.length; o < l; o++) { - const d = i[o].name || String(o); - this.morphTargetInfluences.push(0), this.morphTargetDictionary[d] = o; + for (let s = 0, l = i.length; s < l; s++) { + const d = i[s].name || String(s); + this.morphTargetInfluences.push(0), this.morphTargetDictionary[d] = s; } } } } } -const _U = /* @__PURE__ */ new ve(), bU = /* @__PURE__ */ new ve(); -class gy extends ch { +const EU = /* @__PURE__ */ new ge(), MU = /* @__PURE__ */ new ge(); +class xy extends fh { constructor(e, t) { super(e, t), this.isLineSegments = !0, this.type = "LineSegments"; } @@ -12935,51 +12935,51 @@ class gy extends ch { const e = this.geometry; if (e.index === null) { const t = e.attributes.position, r = []; - for (let i = 0, o = t.count; i < o; i += 2) - _U.fromBufferAttribute(t, i), bU.fromBufferAttribute(t, i + 1), r[i] = i === 0 ? 0 : r[i - 1], r[i + 1] = r[i] + _U.distanceTo(bU); + for (let i = 0, s = t.count; i < s; i += 2) + EU.fromBufferAttribute(t, i), MU.fromBufferAttribute(t, i + 1), r[i] = i === 0 ? 0 : r[i - 1], r[i + 1] = r[i] + EU.distanceTo(MU); e.setAttribute("lineDistance", new sr(r, 1)); } else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry."); return this; } } -class zF extends ch { +class QF extends fh { constructor(e, t) { super(e, t), this.isLineLoop = !0, this.type = "LineLoop"; } } -class nL extends ff { +class XC extends hf { constructor(e) { - super(), this.isPointsMaterial = !0, this.type = "PointsMaterial", this.color = new Pn(16777215), this.map = null, this.alphaMap = null, this.size = 1, this.sizeAttenuation = !0, this.fog = !0, this.setValues(e); + super(), this.isPointsMaterial = !0, this.type = "PointsMaterial", this.color = new Un(16777215), this.map = null, this.alphaMap = null, this.size = 1, this.sizeAttenuation = !0, this.fog = !0, this.setValues(e); } copy(e) { return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.size = e.size, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this; } } -const wU = /* @__PURE__ */ new si(), v3 = /* @__PURE__ */ new KM(), O2 = /* @__PURE__ */ new vy(), U2 = /* @__PURE__ */ new ve(); -class NF extends Xa { - constructor(e = new ui(), t = new nL()) { +const TU = /* @__PURE__ */ new Kr(), y3 = /* @__PURE__ */ new KM(), O2 = /* @__PURE__ */ new yy(), U2 = /* @__PURE__ */ new ge(); +class ZF extends Xa { + constructor(e = new oi(), t = new XC()) { super(), this.isPoints = !0, this.type = "Points", this.geometry = e, this.material = t, this.updateMorphTargets(); } copy(e, t) { return super.copy(e, t), this.material = e.material, this.geometry = e.geometry, this; } raycast(e, t) { - const r = this.geometry, i = this.matrixWorld, o = e.params.Points.threshold, l = r.drawRange; - if (r.boundingSphere === null && r.computeBoundingSphere(), O2.copy(r.boundingSphere), O2.applyMatrix4(i), O2.radius += o, e.ray.intersectsSphere(O2) === !1) + const r = this.geometry, i = this.matrixWorld, s = e.params.Points.threshold, l = r.drawRange; + if (r.boundingSphere === null && r.computeBoundingSphere(), O2.copy(r.boundingSphere), O2.applyMatrix4(i), O2.radius += s, e.ray.intersectsSphere(O2) === !1) return; - wU.copy(i).invert(), v3.copy(e.ray).applyMatrix4(wU); - const d = o / ((this.scale.x + this.scale.y + this.scale.z) / 3), h = d * d, m = r.index, _ = r.attributes.position; - if (m !== null) { - const T = Math.max(0, l.start), C = Math.min(m.count, l.start + l.count); - for (let D = T, P = C; D < P; D++) { - const U = m.getX(D); - U2.fromBufferAttribute(_, U), EU(U2, U, h, i, e, t, this); + TU.copy(i).invert(), y3.copy(e.ray).applyMatrix4(TU); + const d = s / ((this.scale.x + this.scale.y + this.scale.z) / 3), p = d * d, g = r.index, w = r.attributes.position; + if (g !== null) { + const T = Math.max(0, l.start), R = Math.min(g.count, l.start + l.count); + for (let D = T, O = R; D < O; D++) { + const U = g.getX(D); + U2.fromBufferAttribute(w, U), CU(U2, U, p, i, e, t, this); } } else { - const T = Math.max(0, l.start), C = Math.min(_.count, l.start + l.count); - for (let D = T, P = C; D < P; D++) - U2.fromBufferAttribute(_, D), EU(U2, D, h, i, e, t, this); + const T = Math.max(0, l.start), R = Math.min(w.count, l.start + l.count); + for (let D = T, O = R; D < O; D++) + U2.fromBufferAttribute(w, D), CU(U2, D, p, i, e, t, this); } } updateMorphTargets() { @@ -12988,40 +12988,40 @@ class NF extends Xa { const i = t[r[0]]; if (i !== void 0) { this.morphTargetInfluences = [], this.morphTargetDictionary = {}; - for (let o = 0, l = i.length; o < l; o++) { - const d = i[o].name || String(o); - this.morphTargetInfluences.push(0), this.morphTargetDictionary[d] = o; + for (let s = 0, l = i.length; s < l; s++) { + const d = i[s].name || String(s); + this.morphTargetInfluences.push(0), this.morphTargetDictionary[d] = s; } } } } } -function EU(a, e, t, r, i, o, l) { - const d = v3.distanceSqToPoint(a); +function CU(a, e, t, r, i, s, l) { + const d = y3.distanceSqToPoint(a); if (d < t) { - const h = new ve(); - v3.closestPointToPoint(a, h), h.applyMatrix4(r); - const m = i.ray.origin.distanceTo(h); - if (m < i.near || m > i.far) + const p = new ge(); + y3.closestPointToPoint(a, p), p.applyMatrix4(r); + const g = i.ray.origin.distanceTo(p); + if (g < i.near || g > i.far) return; - o.push({ - distance: m, + s.push({ + distance: g, distanceToRay: Math.sqrt(d), - point: h, + point: p, index: e, face: null, object: l }); } } -class pW extends iu { - constructor(e, t, r, i, o, l, d, h, m) { - super(e, t, r, i, o, l, d, h, m), this.isVideoTexture = !0, this.minFilter = l !== void 0 ? l : Oo, this.magFilter = o !== void 0 ? o : Oo, this.generateMipmaps = !1; - const S = this; - function _() { - S.needsUpdate = !0, e.requestVideoFrameCallback(_); +class TW extends su { + constructor(e, t, r, i, s, l, d, p, g) { + super(e, t, r, i, s, l, d, p, g), this.isVideoTexture = !0, this.minFilter = l !== void 0 ? l : Oo, this.magFilter = s !== void 0 ? s : Oo, this.generateMipmaps = !1; + const _ = this; + function w() { + _.needsUpdate = !0, e.requestVideoFrameCallback(w); } - "requestVideoFrameCallback" in e && e.requestVideoFrameCallback(_); + "requestVideoFrameCallback" in e && e.requestVideoFrameCallback(w); } clone() { return new this.constructor(this.image).copy(this); @@ -13031,22 +13031,22 @@ class pW extends iu { "requestVideoFrameCallback" in e === !1 && e.readyState >= e.HAVE_CURRENT_DATA && (this.needsUpdate = !0); } } -class mW extends iu { +class CW extends su { constructor(e, t, r) { super({ width: e, height: t }), this.isFramebufferTexture = !0, this.format = r, this.magFilter = fo, this.minFilter = fo, this.generateMipmaps = !1, this.needsUpdate = !0; } } -class FF extends iu { - constructor(e, t, r, i, o, l, d, h, m, S, _, T) { - super(null, l, d, h, m, S, i, o, _, T), this.isCompressedTexture = !0, this.image = { width: t, height: r }, this.mipmaps = e, this.flipY = !1, this.generateMipmaps = !1; +class JF extends su { + constructor(e, t, r, i, s, l, d, p, g, _, w, T) { + super(null, l, d, p, g, _, i, s, w, T), this.isCompressedTexture = !0, this.image = { width: t, height: r }, this.mipmaps = e, this.flipY = !1, this.generateMipmaps = !1; } } -class vW extends iu { - constructor(e, t, r, i, o, l, d, h, m) { - super(e, t, r, i, o, l, d, h, m), this.isCanvasTexture = !0, this.needsUpdate = !0; +class RW extends su { + constructor(e, t, r, i, s, l, d, p, g) { + super(e, t, r, i, s, l, d, p, g), this.isCanvasTexture = !0, this.needsUpdate = !0; } } -class ug { +class dg { constructor() { this.type = "Curve", this.arcLengthDivisions = 200; } @@ -13078,10 +13078,10 @@ class ug { return this.cacheArcLengths; this.needsUpdate = !1; const t = []; - let r, i = this.getPoint(0), o = 0; + let r, i = this.getPoint(0), s = 0; t.push(0); for (let l = 1; l <= e; l++) - r = this.getPoint(l / e), o += r.distanceTo(i), t.push(o), i = r; + r = this.getPoint(l / e), s += r.distanceTo(i), t.push(s), i = r; return this.cacheArcLengths = t, t; } updateArcLengths() { @@ -13090,61 +13090,61 @@ class ug { getUtoTmapping(e, t) { const r = this.getLengths(); let i = 0; - const o = r.length; + const s = r.length; let l; - t ? l = t : l = e * r[o - 1]; - let d = 0, h = o - 1, m; - for (; d <= h; ) - if (i = Math.floor(d + (h - d) / 2), m = r[i] - l, m < 0) + t ? l = t : l = e * r[s - 1]; + let d = 0, p = s - 1, g; + for (; d <= p; ) + if (i = Math.floor(d + (p - d) / 2), g = r[i] - l, g < 0) d = i + 1; - else if (m > 0) - h = i - 1; + else if (g > 0) + p = i - 1; else { - h = i; + p = i; break; } - if (i = h, r[i] === l) - return i / (o - 1); - const S = r[i], T = r[i + 1] - S, C = (l - S) / T; - return (i + C) / (o - 1); + if (i = p, r[i] === l) + return i / (s - 1); + const _ = r[i], T = r[i + 1] - _, R = (l - _) / T; + return (i + R) / (s - 1); } getTangent(e, t) { - let i = e - 1e-4, o = e + 1e-4; - i < 0 && (i = 0), o > 1 && (o = 1); - const l = this.getPoint(i), d = this.getPoint(o), h = t || (l.isVector2 ? new Ft() : new ve()); - return h.copy(d).sub(l).normalize(), h; + let i = e - 1e-4, s = e + 1e-4; + i < 0 && (i = 0), s > 1 && (s = 1); + const l = this.getPoint(i), d = this.getPoint(s), p = t || (l.isVector2 ? new zt() : new ge()); + return p.copy(d).sub(l).normalize(), p; } getTangentAt(e, t) { const r = this.getUtoTmapping(e); return this.getTangent(r, t); } computeFrenetFrames(e, t) { - const r = new ve(), i = [], o = [], l = [], d = new ve(), h = new si(); - for (let C = 0; C <= e; C++) { - const D = C / e; - i[C] = this.getTangentAt(D, new ve()); - } - o[0] = new ve(), l[0] = new ve(); - let m = Number.MAX_VALUE; - const S = Math.abs(i[0].x), _ = Math.abs(i[0].y), T = Math.abs(i[0].z); - S <= m && (m = S, r.set(1, 0, 0)), _ <= m && (m = _, r.set(0, 1, 0)), T <= m && r.set(0, 0, 1), d.crossVectors(i[0], r).normalize(), o[0].crossVectors(i[0], d), l[0].crossVectors(i[0], o[0]); - for (let C = 1; C <= e; C++) { - if (o[C] = o[C - 1].clone(), l[C] = l[C - 1].clone(), d.crossVectors(i[C - 1], i[C]), d.length() > Number.EPSILON) { + const r = new ge(), i = [], s = [], l = [], d = new ge(), p = new Kr(); + for (let R = 0; R <= e; R++) { + const D = R / e; + i[R] = this.getTangentAt(D, new ge()); + } + s[0] = new ge(), l[0] = new ge(); + let g = Number.MAX_VALUE; + const _ = Math.abs(i[0].x), w = Math.abs(i[0].y), T = Math.abs(i[0].z); + _ <= g && (g = _, r.set(1, 0, 0)), w <= g && (g = w, r.set(0, 1, 0)), T <= g && r.set(0, 0, 1), d.crossVectors(i[0], r).normalize(), s[0].crossVectors(i[0], d), l[0].crossVectors(i[0], s[0]); + for (let R = 1; R <= e; R++) { + if (s[R] = s[R - 1].clone(), l[R] = l[R - 1].clone(), d.crossVectors(i[R - 1], i[R]), d.length() > Number.EPSILON) { d.normalize(); - const D = Math.acos(Qu(i[C - 1].dot(i[C]), -1, 1)); - o[C].applyMatrix4(h.makeRotationAxis(d, D)); + const D = Math.acos(Zu(i[R - 1].dot(i[R]), -1, 1)); + s[R].applyMatrix4(p.makeRotationAxis(d, D)); } - l[C].crossVectors(i[C], o[C]); + l[R].crossVectors(i[R], s[R]); } if (t === !0) { - let C = Math.acos(Qu(o[0].dot(o[e]), -1, 1)); - C /= e, i[0].dot(d.crossVectors(o[0], o[e])) > 0 && (C = -C); + let R = Math.acos(Zu(s[0].dot(s[e]), -1, 1)); + R /= e, i[0].dot(d.crossVectors(s[0], s[e])) > 0 && (R = -R); for (let D = 1; D <= e; D++) - o[D].applyMatrix4(h.makeRotationAxis(i[D], C * D)), l[D].crossVectors(i[D], o[D]); + s[D].applyMatrix4(p.makeRotationAxis(i[D], R * D)), l[D].crossVectors(i[D], s[D]); } return { tangents: i, - normals: o, + normals: s, binormals: l }; } @@ -13168,26 +13168,26 @@ class ug { return this.arcLengthDivisions = e.arcLengthDivisions, this; } } -class YC extends ug { - constructor(e = 0, t = 0, r = 1, i = 1, o = 0, l = Math.PI * 2, d = !1, h = 0) { - super(), this.isEllipseCurve = !0, this.type = "EllipseCurve", this.aX = e, this.aY = t, this.xRadius = r, this.yRadius = i, this.aStartAngle = o, this.aEndAngle = l, this.aClockwise = d, this.aRotation = h; +class qC extends dg { + constructor(e = 0, t = 0, r = 1, i = 1, s = 0, l = Math.PI * 2, d = !1, p = 0) { + super(), this.isEllipseCurve = !0, this.type = "EllipseCurve", this.aX = e, this.aY = t, this.xRadius = r, this.yRadius = i, this.aStartAngle = s, this.aEndAngle = l, this.aClockwise = d, this.aRotation = p; } getPoint(e, t) { - const r = t || new Ft(), i = Math.PI * 2; - let o = this.aEndAngle - this.aStartAngle; - const l = Math.abs(o) < Number.EPSILON; - for (; o < 0; ) - o += i; - for (; o > i; ) - o -= i; - o < Number.EPSILON && (l ? o = 0 : o = i), this.aClockwise === !0 && !l && (o === i ? o = -i : o = o - i); - const d = this.aStartAngle + e * o; - let h = this.aX + this.xRadius * Math.cos(d), m = this.aY + this.yRadius * Math.sin(d); + const r = t || new zt(), i = Math.PI * 2; + let s = this.aEndAngle - this.aStartAngle; + const l = Math.abs(s) < Number.EPSILON; + for (; s < 0; ) + s += i; + for (; s > i; ) + s -= i; + s < Number.EPSILON && (l ? s = 0 : s = i), this.aClockwise === !0 && !l && (s === i ? s = -i : s = s - i); + const d = this.aStartAngle + e * s; + let p = this.aX + this.xRadius * Math.cos(d), g = this.aY + this.yRadius * Math.sin(d); if (this.aRotation !== 0) { - const S = Math.cos(this.aRotation), _ = Math.sin(this.aRotation), T = h - this.aX, C = m - this.aY; - h = T * S - C * _ + this.aX, m = T * _ + C * S + this.aY; + const _ = Math.cos(this.aRotation), w = Math.sin(this.aRotation), T = p - this.aX, R = g - this.aY; + p = T * _ - R * w + this.aX, g = T * w + R * _ + this.aY; } - return r.set(h, m); + return r.set(p, g); } copy(e) { return super.copy(e), this.aX = e.aX, this.aY = e.aY, this.xRadius = e.xRadius, this.yRadius = e.yRadius, this.aStartAngle = e.aStartAngle, this.aEndAngle = e.aEndAngle, this.aClockwise = e.aClockwise, this.aRotation = e.aRotation, this; @@ -13200,52 +13200,52 @@ class YC extends ug { return super.fromJSON(e), this.aX = e.aX, this.aY = e.aY, this.xRadius = e.xRadius, this.yRadius = e.yRadius, this.aStartAngle = e.aStartAngle, this.aEndAngle = e.aEndAngle, this.aClockwise = e.aClockwise, this.aRotation = e.aRotation, this; } } -class kF extends YC { - constructor(e, t, r, i, o, l) { - super(e, t, r, r, i, o, l), this.isArcCurve = !0, this.type = "ArcCurve"; +class KF extends qC { + constructor(e, t, r, i, s, l) { + super(e, t, r, r, i, s, l), this.isArcCurve = !0, this.type = "ArcCurve"; } } -function rL() { +function nL() { let a = 0, e = 0, t = 0, r = 0; - function i(o, l, d, h) { - a = o, e = d, t = -3 * o + 3 * l - 2 * d - h, r = 2 * o - 2 * l + d + h; + function i(s, l, d, p) { + a = s, e = d, t = -3 * s + 3 * l - 2 * d - p, r = 2 * s - 2 * l + d + p; } return { - initCatmullRom: function(o, l, d, h, m) { - i(l, d, m * (d - o), m * (h - l)); + initCatmullRom: function(s, l, d, p, g) { + i(l, d, g * (d - s), g * (p - l)); }, - initNonuniformCatmullRom: function(o, l, d, h, m, S, _) { - let T = (l - o) / m - (d - o) / (m + S) + (d - l) / S, C = (d - l) / S - (h - l) / (S + _) + (h - d) / _; - T *= S, C *= S, i(l, d, T, C); + initNonuniformCatmullRom: function(s, l, d, p, g, _, w) { + let T = (l - s) / g - (d - s) / (g + _) + (d - l) / _, R = (d - l) / _ - (p - l) / (_ + w) + (p - d) / w; + T *= _, R *= _, i(l, d, T, R); }, - calc: function(o) { - const l = o * o, d = l * o; - return a + e * o + t * l + r * d; + calc: function(s) { + const l = s * s, d = l * s; + return a + e * s + t * l + r * d; } }; } -const z2 = /* @__PURE__ */ new ve(), JA = /* @__PURE__ */ new rL(), KA = /* @__PURE__ */ new rL(), $A = /* @__PURE__ */ new rL(); -class IF extends ug { +const z2 = /* @__PURE__ */ new ge(), KA = /* @__PURE__ */ new nL(), $A = /* @__PURE__ */ new nL(), eD = /* @__PURE__ */ new nL(); +class $F extends dg { constructor(e = [], t = !1, r = "centripetal", i = 0.5) { super(), this.isCatmullRomCurve3 = !0, this.type = "CatmullRomCurve3", this.points = e, this.closed = t, this.curveType = r, this.tension = i; } - getPoint(e, t = new ve()) { - const r = t, i = this.points, o = i.length, l = (o - (this.closed ? 0 : 1)) * e; - let d = Math.floor(l), h = l - d; - this.closed ? d += d > 0 ? 0 : (Math.floor(Math.abs(d) / o) + 1) * o : h === 0 && d === o - 1 && (d = o - 2, h = 1); - let m, S; - this.closed || d > 0 ? m = i[(d - 1) % o] : (z2.subVectors(i[0], i[1]).add(i[0]), m = z2); - const _ = i[d % o], T = i[(d + 1) % o]; - if (this.closed || d + 2 < o ? S = i[(d + 2) % o] : (z2.subVectors(i[o - 1], i[o - 2]).add(i[o - 1]), S = z2), this.curveType === "centripetal" || this.curveType === "chordal") { - const C = this.curveType === "chordal" ? 0.5 : 0.25; - let D = Math.pow(m.distanceToSquared(_), C), P = Math.pow(_.distanceToSquared(T), C), U = Math.pow(T.distanceToSquared(S), C); - P < 1e-4 && (P = 1), D < 1e-4 && (D = P), U < 1e-4 && (U = P), JA.initNonuniformCatmullRom(m.x, _.x, T.x, S.x, D, P, U), KA.initNonuniformCatmullRom(m.y, _.y, T.y, S.y, D, P, U), $A.initNonuniformCatmullRom(m.z, _.z, T.z, S.z, D, P, U); + getPoint(e, t = new ge()) { + const r = t, i = this.points, s = i.length, l = (s - (this.closed ? 0 : 1)) * e; + let d = Math.floor(l), p = l - d; + this.closed ? d += d > 0 ? 0 : (Math.floor(Math.abs(d) / s) + 1) * s : p === 0 && d === s - 1 && (d = s - 2, p = 1); + let g, _; + this.closed || d > 0 ? g = i[(d - 1) % s] : (z2.subVectors(i[0], i[1]).add(i[0]), g = z2); + const w = i[d % s], T = i[(d + 1) % s]; + if (this.closed || d + 2 < s ? _ = i[(d + 2) % s] : (z2.subVectors(i[s - 1], i[s - 2]).add(i[s - 1]), _ = z2), this.curveType === "centripetal" || this.curveType === "chordal") { + const R = this.curveType === "chordal" ? 0.5 : 0.25; + let D = Math.pow(g.distanceToSquared(w), R), O = Math.pow(w.distanceToSquared(T), R), U = Math.pow(T.distanceToSquared(_), R); + O < 1e-4 && (O = 1), D < 1e-4 && (D = O), U < 1e-4 && (U = O), KA.initNonuniformCatmullRom(g.x, w.x, T.x, _.x, D, O, U), $A.initNonuniformCatmullRom(g.y, w.y, T.y, _.y, D, O, U), eD.initNonuniformCatmullRom(g.z, w.z, T.z, _.z, D, O, U); } else - this.curveType === "catmullrom" && (JA.initCatmullRom(m.x, _.x, T.x, S.x, this.tension), KA.initCatmullRom(m.y, _.y, T.y, S.y, this.tension), $A.initCatmullRom(m.z, _.z, T.z, S.z, this.tension)); + this.curveType === "catmullrom" && (KA.initCatmullRom(g.x, w.x, T.x, _.x, this.tension), $A.initCatmullRom(g.y, w.y, T.y, _.y, this.tension), eD.initCatmullRom(g.z, w.z, T.z, _.z, this.tension)); return r.set( - JA.calc(h), - KA.calc(h), - $A.calc(h) + KA.calc(p), + $A.calc(p), + eD.calc(p) ), r; } copy(e) { @@ -13269,54 +13269,54 @@ class IF extends ug { super.fromJSON(e), this.points = []; for (let t = 0, r = e.points.length; t < r; t++) { const i = e.points[t]; - this.points.push(new ve().fromArray(i)); + this.points.push(new ge().fromArray(i)); } return this.closed = e.closed, this.curveType = e.curveType, this.tension = e.tension, this; } } -function MU(a, e, t, r, i) { - const o = (r - e) * 0.5, l = (i - t) * 0.5, d = a * a, h = a * d; - return (2 * t - 2 * r + o + l) * h + (-3 * t + 3 * r - 2 * o - l) * d + o * a + t; +function RU(a, e, t, r, i) { + const s = (r - e) * 0.5, l = (i - t) * 0.5, d = a * a, p = a * d; + return (2 * t - 2 * r + s + l) * p + (-3 * t + 3 * r - 2 * s - l) * d + s * a + t; } -function gW(a, e) { +function AW(a, e) { const t = 1 - a; return t * t * e; } -function yW(a, e) { +function DW(a, e) { return 2 * (1 - a) * a * e; } -function xW(a, e) { +function LW(a, e) { return a * a * e; } -function xM(a, e, t, r) { - return gW(a, e) + yW(a, t) + xW(a, r); +function wM(a, e, t, r) { + return AW(a, e) + DW(a, t) + LW(a, r); } -function SW(a, e) { +function PW(a, e) { const t = 1 - a; return t * t * t * e; } -function _W(a, e) { +function OW(a, e) { const t = 1 - a; return 3 * t * t * a * e; } -function bW(a, e) { +function UW(a, e) { return 3 * (1 - a) * a * a * e; } -function wW(a, e) { +function zW(a, e) { return a * a * a * e; } -function SM(a, e, t, r, i) { - return SW(a, e) + _W(a, t) + bW(a, r) + wW(a, i); +function bM(a, e, t, r, i) { + return PW(a, e) + OW(a, t) + UW(a, r) + zW(a, i); } -class iL extends ug { - constructor(e = new Ft(), t = new Ft(), r = new Ft(), i = new Ft()) { +class rL extends dg { + constructor(e = new zt(), t = new zt(), r = new zt(), i = new zt()) { super(), this.isCubicBezierCurve = !0, this.type = "CubicBezierCurve", this.v0 = e, this.v1 = t, this.v2 = r, this.v3 = i; } - getPoint(e, t = new Ft()) { - const r = t, i = this.v0, o = this.v1, l = this.v2, d = this.v3; + getPoint(e, t = new zt()) { + const r = t, i = this.v0, s = this.v1, l = this.v2, d = this.v3; return r.set( - SM(e, i.x, o.x, l.x, d.x), - SM(e, i.y, o.y, l.y, d.y) + bM(e, i.x, s.x, l.x, d.x), + bM(e, i.y, s.y, l.y, d.y) ), r; } copy(e) { @@ -13330,16 +13330,16 @@ class iL extends ug { return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this.v3.fromArray(e.v3), this; } } -class BF extends ug { - constructor(e = new ve(), t = new ve(), r = new ve(), i = new ve()) { +class ek extends dg { + constructor(e = new ge(), t = new ge(), r = new ge(), i = new ge()) { super(), this.isCubicBezierCurve3 = !0, this.type = "CubicBezierCurve3", this.v0 = e, this.v1 = t, this.v2 = r, this.v3 = i; } - getPoint(e, t = new ve()) { - const r = t, i = this.v0, o = this.v1, l = this.v2, d = this.v3; + getPoint(e, t = new ge()) { + const r = t, i = this.v0, s = this.v1, l = this.v2, d = this.v3; return r.set( - SM(e, i.x, o.x, l.x, d.x), - SM(e, i.y, o.y, l.y, d.y), - SM(e, i.z, o.z, l.z, d.z) + bM(e, i.x, s.x, l.x, d.x), + bM(e, i.y, s.y, l.y, d.y), + bM(e, i.z, s.z, l.z, d.z) ), r; } copy(e) { @@ -13353,11 +13353,11 @@ class BF extends ug { return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this.v3.fromArray(e.v3), this; } } -class XC extends ug { - constructor(e = new Ft(), t = new Ft()) { +class QC extends dg { + constructor(e = new zt(), t = new zt()) { super(), this.isLineCurve = !0, this.type = "LineCurve", this.v1 = e, this.v2 = t; } - getPoint(e, t = new Ft()) { + getPoint(e, t = new zt()) { const r = t; return e === 1 ? r.copy(this.v2) : (r.copy(this.v2).sub(this.v1), r.multiplyScalar(e).add(this.v1)), r; } @@ -13365,7 +13365,7 @@ class XC extends ug { return this.getPoint(e, t); } getTangent(e, t) { - const r = t || new Ft(); + const r = t || new zt(); return r.copy(this.v2).sub(this.v1).normalize(), r; } copy(e) { @@ -13379,11 +13379,11 @@ class XC extends ug { return super.fromJSON(e), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this; } } -class HF extends ug { - constructor(e = new ve(), t = new ve()) { +class tk extends dg { + constructor(e = new ge(), t = new ge()) { super(), this.isLineCurve3 = !0, this.type = "LineCurve3", this.v1 = e, this.v2 = t; } - getPoint(e, t = new ve()) { + getPoint(e, t = new ge()) { const r = t; return e === 1 ? r.copy(this.v2) : (r.copy(this.v2).sub(this.v1), r.multiplyScalar(e).add(this.v1)), r; } @@ -13401,15 +13401,15 @@ class HF extends ug { return super.fromJSON(e), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this; } } -class aL extends ug { - constructor(e = new Ft(), t = new Ft(), r = new Ft()) { +class iL extends dg { + constructor(e = new zt(), t = new zt(), r = new zt()) { super(), this.isQuadraticBezierCurve = !0, this.type = "QuadraticBezierCurve", this.v0 = e, this.v1 = t, this.v2 = r; } - getPoint(e, t = new Ft()) { - const r = t, i = this.v0, o = this.v1, l = this.v2; + getPoint(e, t = new zt()) { + const r = t, i = this.v0, s = this.v1, l = this.v2; return r.set( - xM(e, i.x, o.x, l.x), - xM(e, i.y, o.y, l.y) + wM(e, i.x, s.x, l.x), + wM(e, i.y, s.y, l.y) ), r; } copy(e) { @@ -13423,16 +13423,16 @@ class aL extends ug { return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this; } } -class sL extends ug { - constructor(e = new ve(), t = new ve(), r = new ve()) { +class aL extends dg { + constructor(e = new ge(), t = new ge(), r = new ge()) { super(), this.isQuadraticBezierCurve3 = !0, this.type = "QuadraticBezierCurve3", this.v0 = e, this.v1 = t, this.v2 = r; } - getPoint(e, t = new ve()) { - const r = t, i = this.v0, o = this.v1, l = this.v2; + getPoint(e, t = new ge()) { + const r = t, i = this.v0, s = this.v1, l = this.v2; return r.set( - xM(e, i.x, o.x, l.x), - xM(e, i.y, o.y, l.y), - xM(e, i.z, o.z, l.z) + wM(e, i.x, s.x, l.x), + wM(e, i.y, s.y, l.y), + wM(e, i.z, s.z, l.z) ), r; } copy(e) { @@ -13446,15 +13446,15 @@ class sL extends ug { return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this; } } -class oL extends ug { +class sL extends dg { constructor(e = []) { super(), this.isSplineCurve = !0, this.type = "SplineCurve", this.points = e; } - getPoint(e, t = new Ft()) { - const r = t, i = this.points, o = (i.length - 1) * e, l = Math.floor(o), d = o - l, h = i[l === 0 ? l : l - 1], m = i[l], S = i[l > i.length - 2 ? i.length - 1 : l + 1], _ = i[l > i.length - 3 ? i.length - 1 : l + 2]; + getPoint(e, t = new zt()) { + const r = t, i = this.points, s = (i.length - 1) * e, l = Math.floor(s), d = s - l, p = i[l === 0 ? l : l - 1], g = i[l], _ = i[l > i.length - 2 ? i.length - 1 : l + 1], w = i[l > i.length - 3 ? i.length - 1 : l + 2]; return r.set( - MU(d, h.x, m.x, S.x, _.x), - MU(d, h.y, m.y, S.y, _.y) + RU(d, p.x, g.x, _.x, w.x), + RU(d, p.y, g.y, _.y, w.y) ), r; } copy(e) { @@ -13478,25 +13478,25 @@ class oL extends ug { super.fromJSON(e), this.points = []; for (let t = 0, r = e.points.length; t < r; t++) { const i = e.points[t]; - this.points.push(new Ft().fromArray(i)); + this.points.push(new zt().fromArray(i)); } return this; } } -var lL = /* @__PURE__ */ Object.freeze({ +var oL = /* @__PURE__ */ Object.freeze({ __proto__: null, - ArcCurve: kF, - CatmullRomCurve3: IF, - CubicBezierCurve: iL, - CubicBezierCurve3: BF, - EllipseCurve: YC, - LineCurve: XC, - LineCurve3: HF, - QuadraticBezierCurve: aL, - QuadraticBezierCurve3: sL, - SplineCurve: oL + ArcCurve: KF, + CatmullRomCurve3: $F, + CubicBezierCurve: rL, + CubicBezierCurve3: ek, + EllipseCurve: qC, + LineCurve: QC, + LineCurve3: tk, + QuadraticBezierCurve: iL, + QuadraticBezierCurve3: aL, + SplineCurve: sL }); -class VF extends ug { +class nk extends dg { constructor() { super(), this.type = "CurvePath", this.curves = [], this.autoClose = !1; } @@ -13505,17 +13505,17 @@ class VF extends ug { } closePath() { const e = this.curves[0].getPoint(0), t = this.curves[this.curves.length - 1].getPoint(1); - e.equals(t) || this.curves.push(new XC(t, e)); + e.equals(t) || this.curves.push(new QC(t, e)); } getPoint(e, t) { const r = e * this.getLength(), i = this.getCurveLengths(); - let o = 0; - for (; o < i.length; ) { - if (i[o] >= r) { - const l = i[o] - r, d = this.curves[o], h = d.getLength(), m = h === 0 ? 0 : 1 - l / h; - return d.getPointAt(m, t); + let s = 0; + for (; s < i.length; ) { + if (i[s] >= r) { + const l = i[s] - r, d = this.curves[s], p = d.getLength(), g = p === 0 ? 0 : 1 - l / p; + return d.getPointAt(g, t); } - o++; + s++; } return null; } @@ -13544,11 +13544,11 @@ class VF extends ug { getPoints(e = 12) { const t = []; let r; - for (let i = 0, o = this.curves; i < o.length; i++) { - const l = o[i], d = l.isEllipseCurve ? e * 2 : l.isLineCurve || l.isLineCurve3 ? 1 : l.isSplineCurve ? e * l.points.length : e, h = l.getPoints(d); - for (let m = 0; m < h.length; m++) { - const S = h[m]; - r && r.equals(S) || (t.push(S), r = S); + for (let i = 0, s = this.curves; i < s.length; i++) { + const l = s[i], d = l.isEllipseCurve ? e * 2 : l.isLineCurve || l.isLineCurve3 ? 1 : l.isSplineCurve ? e * l.points.length : e, p = l.getPoints(d); + for (let g = 0; g < p.length; g++) { + const _ = p[g]; + r && r.equals(_) || (t.push(_), r = _); } } return this.autoClose && t.length > 1 && !t[t.length - 1].equals(t[0]) && t.push(t[0]), t; @@ -13574,14 +13574,14 @@ class VF extends ug { super.fromJSON(e), this.autoClose = e.autoClose, this.curves = []; for (let t = 0, r = e.curves.length; t < r; t++) { const i = e.curves[t]; - this.curves.push(new lL[i.type]().fromJSON(i)); + this.curves.push(new oL[i.type]().fromJSON(i)); } return this; } } -class NM extends VF { +class FM extends nk { constructor(e) { - super(), this.type = "Path", this.currentPoint = new Ft(), e && this.setFromPoints(e); + super(), this.type = "Path", this.currentPoint = new zt(), e && this.setFromPoints(e); } setFromPoints(e) { this.moveTo(e[0].x, e[0].y); @@ -13593,57 +13593,57 @@ class NM extends VF { return this.currentPoint.set(e, t), this; } lineTo(e, t) { - const r = new XC(this.currentPoint.clone(), new Ft(e, t)); + const r = new QC(this.currentPoint.clone(), new zt(e, t)); return this.curves.push(r), this.currentPoint.set(e, t), this; } quadraticCurveTo(e, t, r, i) { - const o = new aL( + const s = new iL( this.currentPoint.clone(), - new Ft(e, t), - new Ft(r, i) + new zt(e, t), + new zt(r, i) ); - return this.curves.push(o), this.currentPoint.set(r, i), this; + return this.curves.push(s), this.currentPoint.set(r, i), this; } - bezierCurveTo(e, t, r, i, o, l) { - const d = new iL( + bezierCurveTo(e, t, r, i, s, l) { + const d = new rL( this.currentPoint.clone(), - new Ft(e, t), - new Ft(r, i), - new Ft(o, l) + new zt(e, t), + new zt(r, i), + new zt(s, l) ); - return this.curves.push(d), this.currentPoint.set(o, l), this; + return this.curves.push(d), this.currentPoint.set(s, l), this; } splineThru(e) { - const t = [this.currentPoint.clone()].concat(e), r = new oL(t); + const t = [this.currentPoint.clone()].concat(e), r = new sL(t); return this.curves.push(r), this.currentPoint.copy(e[e.length - 1]), this; } - arc(e, t, r, i, o, l) { - const d = this.currentPoint.x, h = this.currentPoint.y; + arc(e, t, r, i, s, l) { + const d = this.currentPoint.x, p = this.currentPoint.y; return this.absarc( e + d, - t + h, + t + p, r, i, - o, + s, l ), this; } - absarc(e, t, r, i, o, l) { - return this.absellipse(e, t, r, r, i, o, l), this; + absarc(e, t, r, i, s, l) { + return this.absellipse(e, t, r, r, i, s, l), this; } - ellipse(e, t, r, i, o, l, d, h) { - const m = this.currentPoint.x, S = this.currentPoint.y; - return this.absellipse(e + m, t + S, r, i, o, l, d, h), this; + ellipse(e, t, r, i, s, l, d, p) { + const g = this.currentPoint.x, _ = this.currentPoint.y; + return this.absellipse(e + g, t + _, r, i, s, l, d, p), this; } - absellipse(e, t, r, i, o, l, d, h) { - const m = new YC(e, t, r, i, o, l, d, h); + absellipse(e, t, r, i, s, l, d, p) { + const g = new qC(e, t, r, i, s, l, d, p); if (this.curves.length > 0) { - const _ = m.getPoint(0); - _.equals(this.currentPoint) || this.lineTo(_.x, _.y); + const w = g.getPoint(0); + w.equals(this.currentPoint) || this.lineTo(w.x, w.y); } - this.curves.push(m); - const S = m.getPoint(1); - return this.currentPoint.copy(S), this; + this.curves.push(g); + const _ = g.getPoint(1); + return this.currentPoint.copy(_), this; } copy(e) { return super.copy(e), this.currentPoint.copy(e.currentPoint), this; @@ -13656,50 +13656,50 @@ class NM extends VF { return super.fromJSON(e), this.currentPoint.fromArray(e.currentPoint), this; } } -class jS extends ui { - constructor(e = [new Ft(0, -0.5), new Ft(0.5, 0), new Ft(0, 0.5)], t = 12, r = 0, i = Math.PI * 2) { +class Q_ extends oi { + constructor(e = [new zt(0, -0.5), new zt(0.5, 0), new zt(0, 0.5)], t = 12, r = 0, i = Math.PI * 2) { super(), this.type = "LatheGeometry", this.parameters = { points: e, segments: t, phiStart: r, phiLength: i - }, t = Math.floor(t), i = Qu(i, 0, Math.PI * 2); - const o = [], l = [], d = [], h = [], m = [], S = 1 / t, _ = new ve(), T = new Ft(), C = new ve(), D = new ve(), P = new ve(); - let U = 0, B = 0; - for (let k = 0; k <= e.length - 1; k++) - switch (k) { + }, t = Math.floor(t), i = Zu(i, 0, Math.PI * 2); + const s = [], l = [], d = [], p = [], g = [], _ = 1 / t, w = new ge(), T = new zt(), R = new ge(), D = new ge(), O = new ge(); + let U = 0, H = 0; + for (let I = 0; I <= e.length - 1; I++) + switch (I) { case 0: - U = e[k + 1].x - e[k].x, B = e[k + 1].y - e[k].y, C.x = B * 1, C.y = -U, C.z = B * 0, P.copy(C), C.normalize(), h.push(C.x, C.y, C.z); + U = e[I + 1].x - e[I].x, H = e[I + 1].y - e[I].y, R.x = H * 1, R.y = -U, R.z = H * 0, O.copy(R), R.normalize(), p.push(R.x, R.y, R.z); break; case e.length - 1: - h.push(P.x, P.y, P.z); + p.push(O.x, O.y, O.z); break; default: - U = e[k + 1].x - e[k].x, B = e[k + 1].y - e[k].y, C.x = B * 1, C.y = -U, C.z = B * 0, D.copy(C), C.x += P.x, C.y += P.y, C.z += P.z, C.normalize(), h.push(C.x, C.y, C.z), P.copy(D); + U = e[I + 1].x - e[I].x, H = e[I + 1].y - e[I].y, R.x = H * 1, R.y = -U, R.z = H * 0, D.copy(R), R.x += O.x, R.y += O.y, R.z += O.z, R.normalize(), p.push(R.x, R.y, R.z), O.copy(D); } - for (let k = 0; k <= t; k++) { - const V = r + k * S * i, I = Math.sin(V), X = Math.cos(V); - for (let J = 0; J <= e.length - 1; J++) { - _.x = e[J].x * I, _.y = e[J].y, _.z = e[J].x * X, l.push(_.x, _.y, _.z), T.x = k / t, T.y = J / (e.length - 1), d.push(T.x, T.y); - const $ = h[3 * J + 0] * I, W = h[3 * J + 1], ne = h[3 * J + 0] * X; - m.push($, W, ne); + for (let I = 0; I <= t; I++) { + const G = r + I * _ * i, B = Math.sin(G), Q = Math.cos(G); + for (let K = 0; K <= e.length - 1; K++) { + w.x = e[K].x * B, w.y = e[K].y, w.z = e[K].x * Q, l.push(w.x, w.y, w.z), T.x = I / t, T.y = K / (e.length - 1), d.push(T.x, T.y); + const te = p[3 * K + 0] * B, Y = p[3 * K + 1], re = p[3 * K + 0] * Q; + g.push(te, Y, re); } } - for (let k = 0; k < t; k++) - for (let V = 0; V < e.length - 1; V++) { - const I = V + k * e.length, X = I, J = I + e.length, $ = I + e.length + 1, W = I + 1; - o.push(X, J, W), o.push($, W, J); + for (let I = 0; I < t; I++) + for (let G = 0; G < e.length - 1; G++) { + const B = G + I * e.length, Q = B, K = B + e.length, te = B + e.length + 1, Y = B + 1; + s.push(Q, K, Y), s.push(te, Y, K); } - this.setIndex(o), this.setAttribute("position", new sr(l, 3)), this.setAttribute("uv", new sr(d, 2)), this.setAttribute("normal", new sr(m, 3)); + this.setIndex(s), this.setAttribute("position", new sr(l, 3)), this.setAttribute("uv", new sr(d, 2)), this.setAttribute("normal", new sr(g, 3)); } static fromJSON(e) { - return new jS(e.points, e.segments, e.phiStart, e.phiLength); + return new Q_(e.points, e.segments, e.phiStart, e.phiLength); } } -class $b extends jS { +class $w extends Q_ { constructor(e = 1, t = 1, r = 4, i = 8) { - const o = new NM(); - o.absarc(0, -t / 2, e, Math.PI * 1.5, 0), o.absarc(0, t / 2, e, 0, Math.PI * 0.5), super(o.getPoints(r), i), this.type = "CapsuleGeometry", this.parameters = { + const s = new FM(); + s.absarc(0, -t / 2, e, Math.PI * 1.5, 0), s.absarc(0, t / 2, e, 0, Math.PI * 0.5), super(s.getPoints(r), i), this.type = "CapsuleGeometry", this.parameters = { radius: e, height: t, capSegments: r, @@ -13707,10 +13707,10 @@ class $b extends jS { }; } static fromJSON(e) { - return new $b(e.radius, e.length, e.capSegments, e.radialSegments); + return new $w(e.radius, e.length, e.capSegments, e.radialSegments); } } -class ew extends ui { +class eb extends oi { constructor(e = 1, t = 8, r = 0, i = Math.PI * 2) { super(), this.type = "CircleGeometry", this.parameters = { radius: e, @@ -13718,97 +13718,97 @@ class ew extends ui { thetaStart: r, thetaLength: i }, t = Math.max(3, t); - const o = [], l = [], d = [], h = [], m = new ve(), S = new Ft(); - l.push(0, 0, 0), d.push(0, 0, 1), h.push(0.5, 0.5); - for (let _ = 0, T = 3; _ <= t; _++, T += 3) { - const C = r + _ / t * i; - m.x = e * Math.cos(C), m.y = e * Math.sin(C), l.push(m.x, m.y, m.z), d.push(0, 0, 1), S.x = (l[T] / e + 1) / 2, S.y = (l[T + 1] / e + 1) / 2, h.push(S.x, S.y); + const s = [], l = [], d = [], p = [], g = new ge(), _ = new zt(); + l.push(0, 0, 0), d.push(0, 0, 1), p.push(0.5, 0.5); + for (let w = 0, T = 3; w <= t; w++, T += 3) { + const R = r + w / t * i; + g.x = e * Math.cos(R), g.y = e * Math.sin(R), l.push(g.x, g.y, g.z), d.push(0, 0, 1), _.x = (l[T] / e + 1) / 2, _.y = (l[T + 1] / e + 1) / 2, p.push(_.x, _.y); } - for (let _ = 1; _ <= t; _++) - o.push(_, _ + 1, 0); - this.setIndex(o), this.setAttribute("position", new sr(l, 3)), this.setAttribute("normal", new sr(d, 3)), this.setAttribute("uv", new sr(h, 2)); + for (let w = 1; w <= t; w++) + s.push(w, w + 1, 0); + this.setIndex(s), this.setAttribute("position", new sr(l, 3)), this.setAttribute("normal", new sr(d, 3)), this.setAttribute("uv", new sr(p, 2)); } static fromJSON(e) { - return new ew(e.radius, e.segments, e.thetaStart, e.thetaLength); + return new eb(e.radius, e.segments, e.thetaStart, e.thetaLength); } } -class Ko extends ui { - constructor(e = 1, t = 1, r = 1, i = 8, o = 1, l = !1, d = 0, h = Math.PI * 2) { +class Ko extends oi { + constructor(e = 1, t = 1, r = 1, i = 8, s = 1, l = !1, d = 0, p = Math.PI * 2) { super(), this.type = "CylinderGeometry", this.parameters = { radiusTop: e, radiusBottom: t, height: r, radialSegments: i, - heightSegments: o, + heightSegments: s, openEnded: l, thetaStart: d, - thetaLength: h + thetaLength: p }; - const m = this; - i = Math.floor(i), o = Math.floor(o); - const S = [], _ = [], T = [], C = []; + const g = this; + i = Math.floor(i), s = Math.floor(s); + const _ = [], w = [], T = [], R = []; let D = 0; - const P = [], U = r / 2; - let B = 0; - k(), l === !1 && (e > 0 && V(!0), t > 0 && V(!1)), this.setIndex(S), this.setAttribute("position", new sr(_, 3)), this.setAttribute("normal", new sr(T, 3)), this.setAttribute("uv", new sr(C, 2)); - function k() { - const I = new ve(), X = new ve(); - let J = 0; - const $ = (t - e) / r; - for (let W = 0; W <= o; W++) { - const ne = [], ie = W / o, fe = ie * (t - e) + e; - for (let le = 0; le <= i; le++) { - const Ee = le / i, he = Ee * h + d, Fe = Math.sin(he), Ce = Math.cos(he); - X.x = fe * Fe, X.y = -ie * r + U, X.z = fe * Ce, _.push(X.x, X.y, X.z), I.set(Fe, $, Ce).normalize(), T.push(I.x, I.y, I.z), C.push(Ee, 1 - ie), ne.push(D++); - } - P.push(ne); - } - for (let W = 0; W < i; W++) - for (let ne = 0; ne < o; ne++) { - const ie = P[ne][W], fe = P[ne + 1][W], le = P[ne + 1][W + 1], Ee = P[ne][W + 1]; - S.push(ie, fe, Ee), S.push(fe, le, Ee), J += 6; - } - m.addGroup(B, J, 0), B += J; - } - function V(I) { - const X = D, J = new Ft(), $ = new ve(); - let W = 0; - const ne = I === !0 ? e : t, ie = I === !0 ? 1 : -1; - for (let le = 1; le <= i; le++) - _.push(0, U * ie, 0), T.push(0, ie, 0), C.push(0.5, 0.5), D++; - const fe = D; - for (let le = 0; le <= i; le++) { - const he = le / i * h + d, Fe = Math.cos(he), Ce = Math.sin(he); - $.x = ne * Ce, $.y = U * ie, $.z = ne * Fe, _.push($.x, $.y, $.z), T.push(0, ie, 0), J.x = Fe * 0.5 + 0.5, J.y = Ce * 0.5 * ie + 0.5, C.push(J.x, J.y), D++; - } - for (let le = 0; le < i; le++) { - const Ee = X + le, he = fe + le; - I === !0 ? S.push(he, he + 1, Ee) : S.push(he + 1, he, Ee), W += 3; - } - m.addGroup(B, W, I === !0 ? 1 : 2), B += W; + const O = [], U = r / 2; + let H = 0; + I(), l === !1 && (e > 0 && G(!0), t > 0 && G(!1)), this.setIndex(_), this.setAttribute("position", new sr(w, 3)), this.setAttribute("normal", new sr(T, 3)), this.setAttribute("uv", new sr(R, 2)); + function I() { + const B = new ge(), Q = new ge(); + let K = 0; + const te = (t - e) / r; + for (let Y = 0; Y <= s; Y++) { + const re = [], se = Y / s, ce = se * (t - e) + e; + for (let ue = 0; ue <= i; ue++) { + const Me = ue / i, me = Me * p + d, De = Math.sin(me), Re = Math.cos(me); + Q.x = ce * De, Q.y = -se * r + U, Q.z = ce * Re, w.push(Q.x, Q.y, Q.z), B.set(De, te, Re).normalize(), T.push(B.x, B.y, B.z), R.push(Me, 1 - se), re.push(D++); + } + O.push(re); + } + for (let Y = 0; Y < i; Y++) + for (let re = 0; re < s; re++) { + const se = O[re][Y], ce = O[re + 1][Y], ue = O[re + 1][Y + 1], Me = O[re][Y + 1]; + _.push(se, ce, Me), _.push(ce, ue, Me), K += 6; + } + g.addGroup(H, K, 0), H += K; + } + function G(B) { + const Q = D, K = new zt(), te = new ge(); + let Y = 0; + const re = B === !0 ? e : t, se = B === !0 ? 1 : -1; + for (let ue = 1; ue <= i; ue++) + w.push(0, U * se, 0), T.push(0, se, 0), R.push(0.5, 0.5), D++; + const ce = D; + for (let ue = 0; ue <= i; ue++) { + const me = ue / i * p + d, De = Math.cos(me), Re = Math.sin(me); + te.x = re * Re, te.y = U * se, te.z = re * De, w.push(te.x, te.y, te.z), T.push(0, se, 0), K.x = De * 0.5 + 0.5, K.y = Re * 0.5 * se + 0.5, R.push(K.x, K.y), D++; + } + for (let ue = 0; ue < i; ue++) { + const Me = Q + ue, me = ce + ue; + B === !0 ? _.push(me, me + 1, Me) : _.push(me + 1, me, Me), Y += 3; + } + g.addGroup(H, Y, B === !0 ? 1 : 2), H += Y; } } static fromJSON(e) { return new Ko(e.radiusTop, e.radiusBottom, e.height, e.radialSegments, e.heightSegments, e.openEnded, e.thetaStart, e.thetaLength); } } -class tw extends Ko { - constructor(e = 1, t = 1, r = 8, i = 1, o = !1, l = 0, d = Math.PI * 2) { - super(0, e, t, r, i, o, l, d), this.type = "ConeGeometry", this.parameters = { +class tb extends Ko { + constructor(e = 1, t = 1, r = 8, i = 1, s = !1, l = 0, d = Math.PI * 2) { + super(0, e, t, r, i, s, l, d), this.type = "ConeGeometry", this.parameters = { radius: e, height: t, radialSegments: r, heightSegments: i, - openEnded: o, + openEnded: s, thetaStart: l, thetaLength: d }; } static fromJSON(e) { - return new tw(e.radius, e.height, e.radialSegments, e.heightSegments, e.openEnded, e.thetaStart, e.thetaLength); + return new tb(e.radius, e.height, e.radialSegments, e.heightSegments, e.openEnded, e.thetaStart, e.thetaLength); } } -class my extends ui { +class gy extends oi { constructor(e = [], t = [], r = 1, i = 0) { super(), this.type = "PolyhedronGeometry", this.parameters = { vertices: e, @@ -13816,79 +13816,79 @@ class my extends ui { radius: r, detail: i }; - const o = [], l = []; - d(i), m(r), S(), this.setAttribute("position", new sr(o, 3)), this.setAttribute("normal", new sr(o.slice(), 3)), this.setAttribute("uv", new sr(l, 2)), i === 0 ? this.computeVertexNormals() : this.normalizeNormals(); - function d(k) { - const V = new ve(), I = new ve(), X = new ve(); - for (let J = 0; J < t.length; J += 3) - C(t[J + 0], V), C(t[J + 1], I), C(t[J + 2], X), h(V, I, X, k); - } - function h(k, V, I, X) { - const J = X + 1, $ = []; - for (let W = 0; W <= J; W++) { - $[W] = []; - const ne = k.clone().lerp(I, W / J), ie = V.clone().lerp(I, W / J), fe = J - W; - for (let le = 0; le <= fe; le++) - le === 0 && W === J ? $[W][le] = ne : $[W][le] = ne.clone().lerp(ie, le / fe); - } - for (let W = 0; W < J; W++) - for (let ne = 0; ne < 2 * (J - W) - 1; ne++) { - const ie = Math.floor(ne / 2); - ne % 2 === 0 ? (T($[W][ie + 1]), T($[W + 1][ie]), T($[W][ie])) : (T($[W][ie + 1]), T($[W + 1][ie + 1]), T($[W + 1][ie])); - } - } - function m(k) { - const V = new ve(); - for (let I = 0; I < o.length; I += 3) - V.x = o[I + 0], V.y = o[I + 1], V.z = o[I + 2], V.normalize().multiplyScalar(k), o[I + 0] = V.x, o[I + 1] = V.y, o[I + 2] = V.z; - } - function S() { - const k = new ve(); - for (let V = 0; V < o.length; V += 3) { - k.x = o[V + 0], k.y = o[V + 1], k.z = o[V + 2]; - const I = U(k) / 2 / Math.PI + 0.5, X = B(k) / Math.PI + 0.5; - l.push(I, 1 - X); - } - D(), _(); + const s = [], l = []; + d(i), g(r), _(), this.setAttribute("position", new sr(s, 3)), this.setAttribute("normal", new sr(s.slice(), 3)), this.setAttribute("uv", new sr(l, 2)), i === 0 ? this.computeVertexNormals() : this.normalizeNormals(); + function d(I) { + const G = new ge(), B = new ge(), Q = new ge(); + for (let K = 0; K < t.length; K += 3) + R(t[K + 0], G), R(t[K + 1], B), R(t[K + 2], Q), p(G, B, Q, I); + } + function p(I, G, B, Q) { + const K = Q + 1, te = []; + for (let Y = 0; Y <= K; Y++) { + te[Y] = []; + const re = I.clone().lerp(B, Y / K), se = G.clone().lerp(B, Y / K), ce = K - Y; + for (let ue = 0; ue <= ce; ue++) + ue === 0 && Y === K ? te[Y][ue] = re : te[Y][ue] = re.clone().lerp(se, ue / ce); + } + for (let Y = 0; Y < K; Y++) + for (let re = 0; re < 2 * (K - Y) - 1; re++) { + const se = Math.floor(re / 2); + re % 2 === 0 ? (T(te[Y][se + 1]), T(te[Y + 1][se]), T(te[Y][se])) : (T(te[Y][se + 1]), T(te[Y + 1][se + 1]), T(te[Y + 1][se])); + } + } + function g(I) { + const G = new ge(); + for (let B = 0; B < s.length; B += 3) + G.x = s[B + 0], G.y = s[B + 1], G.z = s[B + 2], G.normalize().multiplyScalar(I), s[B + 0] = G.x, s[B + 1] = G.y, s[B + 2] = G.z; } function _() { - for (let k = 0; k < l.length; k += 6) { - const V = l[k + 0], I = l[k + 2], X = l[k + 4], J = Math.max(V, I, X), $ = Math.min(V, I, X); - J > 0.9 && $ < 0.1 && (V < 0.2 && (l[k + 0] += 1), I < 0.2 && (l[k + 2] += 1), X < 0.2 && (l[k + 4] += 1)); + const I = new ge(); + for (let G = 0; G < s.length; G += 3) { + I.x = s[G + 0], I.y = s[G + 1], I.z = s[G + 2]; + const B = U(I) / 2 / Math.PI + 0.5, Q = H(I) / Math.PI + 0.5; + l.push(B, 1 - Q); + } + D(), w(); + } + function w() { + for (let I = 0; I < l.length; I += 6) { + const G = l[I + 0], B = l[I + 2], Q = l[I + 4], K = Math.max(G, B, Q), te = Math.min(G, B, Q); + K > 0.9 && te < 0.1 && (G < 0.2 && (l[I + 0] += 1), B < 0.2 && (l[I + 2] += 1), Q < 0.2 && (l[I + 4] += 1)); } } - function T(k) { - o.push(k.x, k.y, k.z); + function T(I) { + s.push(I.x, I.y, I.z); } - function C(k, V) { - const I = k * 3; - V.x = e[I + 0], V.y = e[I + 1], V.z = e[I + 2]; + function R(I, G) { + const B = I * 3; + G.x = e[B + 0], G.y = e[B + 1], G.z = e[B + 2]; } function D() { - const k = new ve(), V = new ve(), I = new ve(), X = new ve(), J = new Ft(), $ = new Ft(), W = new Ft(); - for (let ne = 0, ie = 0; ne < o.length; ne += 9, ie += 6) { - k.set(o[ne + 0], o[ne + 1], o[ne + 2]), V.set(o[ne + 3], o[ne + 4], o[ne + 5]), I.set(o[ne + 6], o[ne + 7], o[ne + 8]), J.set(l[ie + 0], l[ie + 1]), $.set(l[ie + 2], l[ie + 3]), W.set(l[ie + 4], l[ie + 5]), X.copy(k).add(V).add(I).divideScalar(3); - const fe = U(X); - P(J, ie + 0, k, fe), P($, ie + 2, V, fe), P(W, ie + 4, I, fe); + const I = new ge(), G = new ge(), B = new ge(), Q = new ge(), K = new zt(), te = new zt(), Y = new zt(); + for (let re = 0, se = 0; re < s.length; re += 9, se += 6) { + I.set(s[re + 0], s[re + 1], s[re + 2]), G.set(s[re + 3], s[re + 4], s[re + 5]), B.set(s[re + 6], s[re + 7], s[re + 8]), K.set(l[se + 0], l[se + 1]), te.set(l[se + 2], l[se + 3]), Y.set(l[se + 4], l[se + 5]), Q.copy(I).add(G).add(B).divideScalar(3); + const ce = U(Q); + O(K, se + 0, I, ce), O(te, se + 2, G, ce), O(Y, se + 4, B, ce); } } - function P(k, V, I, X) { - X < 0 && k.x === 1 && (l[V] = k.x - 1), I.x === 0 && I.z === 0 && (l[V] = X / 2 / Math.PI + 0.5); + function O(I, G, B, Q) { + Q < 0 && I.x === 1 && (l[G] = I.x - 1), B.x === 0 && B.z === 0 && (l[G] = Q / 2 / Math.PI + 0.5); } - function U(k) { - return Math.atan2(k.z, -k.x); + function U(I) { + return Math.atan2(I.z, -I.x); } - function B(k) { - return Math.atan2(-k.y, Math.sqrt(k.x * k.x + k.z * k.z)); + function H(I) { + return Math.atan2(-I.y, Math.sqrt(I.x * I.x + I.z * I.z)); } } static fromJSON(e) { - return new my(e.vertices, e.indices, e.radius, e.details); + return new gy(e.vertices, e.indices, e.radius, e.details); } } -class nw extends my { +class nb extends gy { constructor(e = 1, t = 0) { - const r = (1 + Math.sqrt(5)) / 2, i = 1 / r, o = [ + const r = (1 + Math.sqrt(5)) / 2, i = 1 / r, s = [ -1, -1, -1, @@ -14059,48 +14059,48 @@ class nw extends my { 5, 9 ]; - super(o, l, e, t), this.type = "DodecahedronGeometry", this.parameters = { + super(s, l, e, t), this.type = "DodecahedronGeometry", this.parameters = { radius: e, detail: t }; } static fromJSON(e) { - return new nw(e.radius, e.detail); + return new nb(e.radius, e.detail); } } -const N2 = /* @__PURE__ */ new ve(), F2 = /* @__PURE__ */ new ve(), eD = /* @__PURE__ */ new ve(), k2 = /* @__PURE__ */ new xm(); -class GF extends ui { +const N2 = /* @__PURE__ */ new ge(), F2 = /* @__PURE__ */ new ge(), tD = /* @__PURE__ */ new ge(), k2 = /* @__PURE__ */ new wm(); +class rk extends oi { constructor(e = null, t = 1) { if (super(), this.type = "EdgesGeometry", this.parameters = { geometry: e, thresholdAngle: t }, e !== null) { - const i = Math.pow(10, 4), o = Math.cos(NS * t), l = e.getIndex(), d = e.getAttribute("position"), h = l ? l.count : d.count, m = [0, 0, 0], S = ["a", "b", "c"], _ = new Array(3), T = {}, C = []; - for (let D = 0; D < h; D += 3) { - l ? (m[0] = l.getX(D), m[1] = l.getX(D + 1), m[2] = l.getX(D + 2)) : (m[0] = D, m[1] = D + 1, m[2] = D + 2); - const { a: P, b: U, c: B } = k2; - if (P.fromBufferAttribute(d, m[0]), U.fromBufferAttribute(d, m[1]), B.fromBufferAttribute(d, m[2]), k2.getNormal(eD), _[0] = `${Math.round(P.x * i)},${Math.round(P.y * i)},${Math.round(P.z * i)}`, _[1] = `${Math.round(U.x * i)},${Math.round(U.y * i)},${Math.round(U.z * i)}`, _[2] = `${Math.round(B.x * i)},${Math.round(B.y * i)},${Math.round(B.z * i)}`, !(_[0] === _[1] || _[1] === _[2] || _[2] === _[0])) - for (let k = 0; k < 3; k++) { - const V = (k + 1) % 3, I = _[k], X = _[V], J = k2[S[k]], $ = k2[S[V]], W = `${I}_${X}`, ne = `${X}_${I}`; - ne in T && T[ne] ? (eD.dot(T[ne].normal) <= o && (C.push(J.x, J.y, J.z), C.push($.x, $.y, $.z)), T[ne] = null) : W in T || (T[W] = { - index0: m[k], - index1: m[V], - normal: eD.clone() + const i = Math.pow(10, 4), s = Math.cos(H_ * t), l = e.getIndex(), d = e.getAttribute("position"), p = l ? l.count : d.count, g = [0, 0, 0], _ = ["a", "b", "c"], w = new Array(3), T = {}, R = []; + for (let D = 0; D < p; D += 3) { + l ? (g[0] = l.getX(D), g[1] = l.getX(D + 1), g[2] = l.getX(D + 2)) : (g[0] = D, g[1] = D + 1, g[2] = D + 2); + const { a: O, b: U, c: H } = k2; + if (O.fromBufferAttribute(d, g[0]), U.fromBufferAttribute(d, g[1]), H.fromBufferAttribute(d, g[2]), k2.getNormal(tD), w[0] = `${Math.round(O.x * i)},${Math.round(O.y * i)},${Math.round(O.z * i)}`, w[1] = `${Math.round(U.x * i)},${Math.round(U.y * i)},${Math.round(U.z * i)}`, w[2] = `${Math.round(H.x * i)},${Math.round(H.y * i)},${Math.round(H.z * i)}`, !(w[0] === w[1] || w[1] === w[2] || w[2] === w[0])) + for (let I = 0; I < 3; I++) { + const G = (I + 1) % 3, B = w[I], Q = w[G], K = k2[_[I]], te = k2[_[G]], Y = `${B}_${Q}`, re = `${Q}_${B}`; + re in T && T[re] ? (tD.dot(T[re].normal) <= s && (R.push(K.x, K.y, K.z), R.push(te.x, te.y, te.z)), T[re] = null) : Y in T || (T[Y] = { + index0: g[I], + index1: g[G], + normal: tD.clone() }); } } for (const D in T) if (T[D]) { - const { index0: P, index1: U } = T[D]; - N2.fromBufferAttribute(d, P), F2.fromBufferAttribute(d, U), C.push(N2.x, N2.y, N2.z), C.push(F2.x, F2.y, F2.z); + const { index0: O, index1: U } = T[D]; + N2.fromBufferAttribute(d, O), F2.fromBufferAttribute(d, U), R.push(N2.x, N2.y, N2.z), R.push(F2.x, F2.y, F2.z); } - this.setAttribute("position", new sr(C, 3)); + this.setAttribute("position", new sr(R, 3)); } } } -class IS extends NM { +class W_ extends FM { constructor(e) { - super(e), this.uuid = bm(), this.type = "Shape", this.holes = []; + super(e), this.uuid = Em(), this.type = "Shape", this.holes = []; } getPointsHoles(e) { const t = []; @@ -14135,37 +14135,37 @@ class IS extends NM { super.fromJSON(e), this.uuid = e.uuid, this.holes = []; for (let t = 0, r = e.holes.length; t < r; t++) { const i = e.holes[t]; - this.holes.push(new NM().fromJSON(i)); + this.holes.push(new FM().fromJSON(i)); } return this; } } -const EW = { +const NW = { triangulate: function(a, e, t = 2) { const r = e && e.length, i = r ? e[0] * t : a.length; - let o = WF(a, 0, i, t, !0); + let s = ik(a, 0, i, t, !0); const l = []; - if (!o || o.next === o.prev) + if (!s || s.next === s.prev) return l; - let d, h, m, S, _, T, C; - if (r && (o = AW(a, e, o, t)), a.length > 80 * t) { - d = m = a[0], h = S = a[1]; + let d, p, g, _, w, T, R; + if (r && (s = HW(a, e, s, t)), a.length > 80 * t) { + d = g = a[0], p = _ = a[1]; for (let D = t; D < i; D += t) - _ = a[D], T = a[D + 1], _ < d && (d = _), T < h && (h = T), _ > m && (m = _), T > S && (S = T); - C = Math.max(m - d, S - h), C = C !== 0 ? 1 / C : 0; + w = a[D], T = a[D + 1], w < d && (d = w), T < p && (p = T), w > g && (g = w), T > _ && (_ = T); + R = Math.max(g - d, _ - p), R = R !== 0 ? 1 / R : 0; } - return FM(o, l, t, d, h, C), l; + return kM(s, l, t, d, p, R), l; } }; -function WF(a, e, t, r, i) { - let o, l; - if (i === BW(a, e, t, r) > 0) - for (o = e; o < t; o += r) - l = TU(o, a[o], a[o + 1], l); +function ik(a, e, t, r, i) { + let s, l; + if (i === KW(a, e, t, r) > 0) + for (s = e; s < t; s += r) + l = AU(s, a[s], a[s + 1], l); else - for (o = t - r; o >= e; o -= r) - l = TU(o, a[o], a[o + 1], l); - return l && qC(l, l.next) && (IM(l), l = l.next), l; + for (s = t - r; s >= e; s -= r) + l = AU(s, a[s], a[s + 1], l); + return l && ZC(l, l.next) && (BM(l), l = l.next), l; } function i1(a, e) { if (!a) @@ -14173,8 +14173,8 @@ function i1(a, e) { e || (e = a); let t = a, r; do - if (r = !1, !t.steiner && (qC(t, t.next) || ru(t.prev, t, t.next) === 0)) { - if (IM(t), t = e = t.prev, t === t.next) + if (r = !1, !t.steiner && (ZC(t, t.next) || au(t.prev, t, t.next) === 0)) { + if (BM(t), t = e = t.prev, t === t.next) break; r = !0; } else @@ -14182,73 +14182,73 @@ function i1(a, e) { while (r || t !== e); return e; } -function FM(a, e, t, r, i, o, l) { +function kM(a, e, t, r, i, s, l) { if (!a) return; - !l && o && UW(a, r, i, o); - let d = a, h, m; + !l && s && YW(a, r, i, s); + let d = a, p, g; for (; a.prev !== a.next; ) { - if (h = a.prev, m = a.next, o ? TW(a, r, i, o) : MW(a)) { - e.push(h.i / t), e.push(a.i / t), e.push(m.i / t), IM(a), a = m.next, d = m.next; + if (p = a.prev, g = a.next, s ? kW(a, r, i, s) : FW(a)) { + e.push(p.i / t), e.push(a.i / t), e.push(g.i / t), BM(a), a = g.next, d = g.next; continue; } - if (a = m, a === d) { - l ? l === 1 ? (a = CW(i1(a), e, t), FM(a, e, t, r, i, o, 2)) : l === 2 && RW(a, e, t, r, i, o) : FM(i1(a), e, t, r, i, o, 1); + if (a = g, a === d) { + l ? l === 1 ? (a = IW(i1(a), e, t), kM(a, e, t, r, i, s, 2)) : l === 2 && BW(a, e, t, r, i, s) : kM(i1(a), e, t, r, i, s, 1); break; } } } -function MW(a) { +function FW(a) { const e = a.prev, t = a, r = a.next; - if (ru(e, t, r) >= 0) + if (au(e, t, r) >= 0) return !1; let i = a.next.next; for (; i !== a.prev; ) { - if (Wb(e.x, e.y, t.x, t.y, r.x, r.y, i.x, i.y) && ru(i.prev, i, i.next) >= 0) + if (Yw(e.x, e.y, t.x, t.y, r.x, r.y, i.x, i.y) && au(i.prev, i, i.next) >= 0) return !1; i = i.next; } return !0; } -function TW(a, e, t, r) { - const i = a.prev, o = a, l = a.next; - if (ru(i, o, l) >= 0) +function kW(a, e, t, r) { + const i = a.prev, s = a, l = a.next; + if (au(i, s, l) >= 0) return !1; - const d = i.x < o.x ? i.x < l.x ? i.x : l.x : o.x < l.x ? o.x : l.x, h = i.y < o.y ? i.y < l.y ? i.y : l.y : o.y < l.y ? o.y : l.y, m = i.x > o.x ? i.x > l.x ? i.x : l.x : o.x > l.x ? o.x : l.x, S = i.y > o.y ? i.y > l.y ? i.y : l.y : o.y > l.y ? o.y : l.y, _ = g3(d, h, e, t, r), T = g3(m, S, e, t, r); - let C = a.prevZ, D = a.nextZ; - for (; C && C.z >= _ && D && D.z <= T; ) { - if (C !== a.prev && C !== a.next && Wb(i.x, i.y, o.x, o.y, l.x, l.y, C.x, C.y) && ru(C.prev, C, C.next) >= 0 || (C = C.prevZ, D !== a.prev && D !== a.next && Wb(i.x, i.y, o.x, o.y, l.x, l.y, D.x, D.y) && ru(D.prev, D, D.next) >= 0)) + const d = i.x < s.x ? i.x < l.x ? i.x : l.x : s.x < l.x ? s.x : l.x, p = i.y < s.y ? i.y < l.y ? i.y : l.y : s.y < l.y ? s.y : l.y, g = i.x > s.x ? i.x > l.x ? i.x : l.x : s.x > l.x ? s.x : l.x, _ = i.y > s.y ? i.y > l.y ? i.y : l.y : s.y > l.y ? s.y : l.y, w = x3(d, p, e, t, r), T = x3(g, _, e, t, r); + let R = a.prevZ, D = a.nextZ; + for (; R && R.z >= w && D && D.z <= T; ) { + if (R !== a.prev && R !== a.next && Yw(i.x, i.y, s.x, s.y, l.x, l.y, R.x, R.y) && au(R.prev, R, R.next) >= 0 || (R = R.prevZ, D !== a.prev && D !== a.next && Yw(i.x, i.y, s.x, s.y, l.x, l.y, D.x, D.y) && au(D.prev, D, D.next) >= 0)) return !1; D = D.nextZ; } - for (; C && C.z >= _; ) { - if (C !== a.prev && C !== a.next && Wb(i.x, i.y, o.x, o.y, l.x, l.y, C.x, C.y) && ru(C.prev, C, C.next) >= 0) + for (; R && R.z >= w; ) { + if (R !== a.prev && R !== a.next && Yw(i.x, i.y, s.x, s.y, l.x, l.y, R.x, R.y) && au(R.prev, R, R.next) >= 0) return !1; - C = C.prevZ; + R = R.prevZ; } for (; D && D.z <= T; ) { - if (D !== a.prev && D !== a.next && Wb(i.x, i.y, o.x, o.y, l.x, l.y, D.x, D.y) && ru(D.prev, D, D.next) >= 0) + if (D !== a.prev && D !== a.next && Yw(i.x, i.y, s.x, s.y, l.x, l.y, D.x, D.y) && au(D.prev, D, D.next) >= 0) return !1; D = D.nextZ; } return !0; } -function CW(a, e, t) { +function IW(a, e, t) { let r = a; do { - const i = r.prev, o = r.next.next; - !qC(i, o) && jF(i, r, r.next, o) && kM(i, o) && kM(o, i) && (e.push(i.i / t), e.push(r.i / t), e.push(o.i / t), IM(r), IM(r.next), r = a = o), r = r.next; + const i = r.prev, s = r.next.next; + !ZC(i, s) && ak(i, r, r.next, s) && IM(i, s) && IM(s, i) && (e.push(i.i / t), e.push(r.i / t), e.push(s.i / t), BM(r), BM(r.next), r = a = s), r = r.next; } while (r !== a); return i1(r); } -function RW(a, e, t, r, i, o) { +function BW(a, e, t, r, i, s) { let l = a; do { let d = l.next.next; for (; d !== l.prev; ) { - if (l.i !== d.i && FW(l, d)) { - let h = YF(l, d); - l = i1(l, l.next), h = i1(h, h.next), FM(l, e, t, r, i, o), FM(h, e, t, r, i, o); + if (l.i !== d.i && QW(l, d)) { + let p = sk(l, d); + l = i1(l, l.next), p = i1(p, p.next), kM(l, e, t, r, i, s), kM(p, e, t, r, i, s); return; } d = d.next; @@ -14256,33 +14256,33 @@ function RW(a, e, t, r, i, o) { l = l.next; } while (l !== a); } -function AW(a, e, t, r) { +function HW(a, e, t, r) { const i = []; - let o, l, d, h, m; - for (o = 0, l = e.length; o < l; o++) - d = e[o] * r, h = o < l - 1 ? e[o + 1] * r : a.length, m = WF(a, d, h, r, !1), m === m.next && (m.steiner = !0), i.push(NW(m)); - for (i.sort(DW), o = 0; o < i.length; o++) - LW(i[o], t), t = i1(t, t.next); + let s, l, d, p, g; + for (s = 0, l = e.length; s < l; s++) + d = e[s] * r, p = s < l - 1 ? e[s + 1] * r : a.length, g = ik(a, d, p, r, !1), g === g.next && (g.steiner = !0), i.push(qW(g)); + for (i.sort(VW), s = 0; s < i.length; s++) + GW(i[s], t), t = i1(t, t.next); return t; } -function DW(a, e) { +function VW(a, e) { return a.x - e.x; } -function LW(a, e) { - if (e = PW(a, e), e) { - const t = YF(e, a); +function GW(a, e) { + if (e = WW(a, e), e) { + const t = sk(e, a); i1(e, e.next), i1(t, t.next); } } -function PW(a, e) { +function WW(a, e) { let t = e; const r = a.x, i = a.y; - let o = -1 / 0, l; + let s = -1 / 0, l; do { if (i <= t.y && i >= t.next.y && t.next.y !== t.y) { const T = t.x + (i - t.y) * (t.next.x - t.x) / (t.next.y - t.y); - if (T <= r && T > o) { - if (o = T, T === r) { + if (T <= r && T > s) { + if (s = T, T === r) { if (i === t.y) return t; if (i === t.next.y) @@ -14295,65 +14295,65 @@ function PW(a, e) { } while (t !== e); if (!l) return null; - if (r === o) + if (r === s) return l; - const d = l, h = l.x, m = l.y; - let S = 1 / 0, _; + const d = l, p = l.x, g = l.y; + let _ = 1 / 0, w; t = l; do - r >= t.x && t.x >= h && r !== t.x && Wb(i < m ? r : o, i, h, m, i < m ? o : r, i, t.x, t.y) && (_ = Math.abs(i - t.y) / (r - t.x), kM(t, a) && (_ < S || _ === S && (t.x > l.x || t.x === l.x && OW(l, t))) && (l = t, S = _)), t = t.next; + r >= t.x && t.x >= p && r !== t.x && Yw(i < g ? r : s, i, p, g, i < g ? s : r, i, t.x, t.y) && (w = Math.abs(i - t.y) / (r - t.x), IM(t, a) && (w < _ || w === _ && (t.x > l.x || t.x === l.x && jW(l, t))) && (l = t, _ = w)), t = t.next; while (t !== d); return l; } -function OW(a, e) { - return ru(a.prev, a, e.prev) < 0 && ru(e.next, a, a.next) < 0; +function jW(a, e) { + return au(a.prev, a, e.prev) < 0 && au(e.next, a, a.next) < 0; } -function UW(a, e, t, r) { +function YW(a, e, t, r) { let i = a; do - i.z === null && (i.z = g3(i.x, i.y, e, t, r)), i.prevZ = i.prev, i.nextZ = i.next, i = i.next; + i.z === null && (i.z = x3(i.x, i.y, e, t, r)), i.prevZ = i.prev, i.nextZ = i.next, i = i.next; while (i !== a); - i.prevZ.nextZ = null, i.prevZ = null, zW(i); + i.prevZ.nextZ = null, i.prevZ = null, XW(i); } -function zW(a) { - let e, t, r, i, o, l, d, h, m = 1; +function XW(a) { + let e, t, r, i, s, l, d, p, g = 1; do { - for (t = a, a = null, o = null, l = 0; t; ) { - for (l++, r = t, d = 0, e = 0; e < m && (d++, r = r.nextZ, !!r); e++) + for (t = a, a = null, s = null, l = 0; t; ) { + for (l++, r = t, d = 0, e = 0; e < g && (d++, r = r.nextZ, !!r); e++) ; - for (h = m; d > 0 || h > 0 && r; ) - d !== 0 && (h === 0 || !r || t.z <= r.z) ? (i = t, t = t.nextZ, d--) : (i = r, r = r.nextZ, h--), o ? o.nextZ = i : a = i, i.prevZ = o, o = i; + for (p = g; d > 0 || p > 0 && r; ) + d !== 0 && (p === 0 || !r || t.z <= r.z) ? (i = t, t = t.nextZ, d--) : (i = r, r = r.nextZ, p--), s ? s.nextZ = i : a = i, i.prevZ = s, s = i; t = r; } - o.nextZ = null, m *= 2; + s.nextZ = null, g *= 2; } while (l > 1); return a; } -function g3(a, e, t, r, i) { +function x3(a, e, t, r, i) { return a = 32767 * (a - t) * i, e = 32767 * (e - r) * i, a = (a | a << 8) & 16711935, a = (a | a << 4) & 252645135, a = (a | a << 2) & 858993459, a = (a | a << 1) & 1431655765, e = (e | e << 8) & 16711935, e = (e | e << 4) & 252645135, e = (e | e << 2) & 858993459, e = (e | e << 1) & 1431655765, a | e << 1; } -function NW(a) { +function qW(a) { let e = a, t = a; do (e.x < t.x || e.x === t.x && e.y < t.y) && (t = e), e = e.next; while (e !== a); return t; } -function Wb(a, e, t, r, i, o, l, d) { - return (i - l) * (e - d) - (a - l) * (o - d) >= 0 && (a - l) * (r - d) - (t - l) * (e - d) >= 0 && (t - l) * (o - d) - (i - l) * (r - d) >= 0; +function Yw(a, e, t, r, i, s, l, d) { + return (i - l) * (e - d) - (a - l) * (s - d) >= 0 && (a - l) * (r - d) - (t - l) * (e - d) >= 0 && (t - l) * (s - d) - (i - l) * (r - d) >= 0; } -function FW(a, e) { - return a.next.i !== e.i && a.prev.i !== e.i && !kW(a, e) && (kM(a, e) && kM(e, a) && IW(a, e) && (ru(a.prev, a, e.prev) || ru(a, e.prev, e)) || qC(a, e) && ru(a.prev, a, a.next) > 0 && ru(e.prev, e, e.next) > 0); +function QW(a, e) { + return a.next.i !== e.i && a.prev.i !== e.i && !ZW(a, e) && (IM(a, e) && IM(e, a) && JW(a, e) && (au(a.prev, a, e.prev) || au(a, e.prev, e)) || ZC(a, e) && au(a.prev, a, a.next) > 0 && au(e.prev, e, e.next) > 0); } -function ru(a, e, t) { +function au(a, e, t) { return (e.y - a.y) * (t.x - e.x) - (e.x - a.x) * (t.y - e.y); } -function qC(a, e) { +function ZC(a, e) { return a.x === e.x && a.y === e.y; } -function jF(a, e, t, r) { - const i = B2(ru(a, e, t)), o = B2(ru(a, e, r)), l = B2(ru(t, r, a)), d = B2(ru(t, r, e)); - return !!(i !== o && l !== d || i === 0 && I2(a, t, e) || o === 0 && I2(a, r, e) || l === 0 && I2(t, a, r) || d === 0 && I2(t, e, r)); +function ak(a, e, t, r) { + const i = B2(au(a, e, t)), s = B2(au(a, e, r)), l = B2(au(t, r, a)), d = B2(au(t, r, e)); + return !!(i !== s && l !== d || i === 0 && I2(a, t, e) || s === 0 && I2(a, r, e) || l === 0 && I2(t, a, r) || d === 0 && I2(t, e, r)); } function I2(a, e, t) { return e.x <= Math.max(a.x, t.x) && e.x >= Math.min(a.x, t.x) && e.y <= Math.max(a.y, t.y) && e.y >= Math.min(a.y, t.y); @@ -14361,301 +14361,301 @@ function I2(a, e, t) { function B2(a) { return a > 0 ? 1 : a < 0 ? -1 : 0; } -function kW(a, e) { +function ZW(a, e) { let t = a; do { - if (t.i !== a.i && t.next.i !== a.i && t.i !== e.i && t.next.i !== e.i && jF(t, t.next, a, e)) + if (t.i !== a.i && t.next.i !== a.i && t.i !== e.i && t.next.i !== e.i && ak(t, t.next, a, e)) return !0; t = t.next; } while (t !== a); return !1; } -function kM(a, e) { - return ru(a.prev, a, a.next) < 0 ? ru(a, e, a.next) >= 0 && ru(a, a.prev, e) >= 0 : ru(a, e, a.prev) < 0 || ru(a, a.next, e) < 0; +function IM(a, e) { + return au(a.prev, a, a.next) < 0 ? au(a, e, a.next) >= 0 && au(a, a.prev, e) >= 0 : au(a, e, a.prev) < 0 || au(a, a.next, e) < 0; } -function IW(a, e) { +function JW(a, e) { let t = a, r = !1; - const i = (a.x + e.x) / 2, o = (a.y + e.y) / 2; + const i = (a.x + e.x) / 2, s = (a.y + e.y) / 2; do - t.y > o != t.next.y > o && t.next.y !== t.y && i < (t.next.x - t.x) * (o - t.y) / (t.next.y - t.y) + t.x && (r = !r), t = t.next; + t.y > s != t.next.y > s && t.next.y !== t.y && i < (t.next.x - t.x) * (s - t.y) / (t.next.y - t.y) + t.x && (r = !r), t = t.next; while (t !== a); return r; } -function YF(a, e) { - const t = new y3(a.i, a.x, a.y), r = new y3(e.i, e.x, e.y), i = a.next, o = e.prev; - return a.next = e, e.prev = a, t.next = i, i.prev = t, r.next = t, t.prev = r, o.next = r, r.prev = o, r; +function sk(a, e) { + const t = new _3(a.i, a.x, a.y), r = new _3(e.i, e.x, e.y), i = a.next, s = e.prev; + return a.next = e, e.prev = a, t.next = i, i.prev = t, r.next = t, t.prev = r, s.next = r, r.prev = s, r; } -function TU(a, e, t, r) { - const i = new y3(a, e, t); +function AU(a, e, t, r) { + const i = new _3(a, e, t); return r ? (i.next = r.next, i.prev = r, r.next.prev = i, r.next = i) : (i.prev = i, i.next = i), i; } -function IM(a) { +function BM(a) { a.next.prev = a.prev, a.prev.next = a.next, a.prevZ && (a.prevZ.nextZ = a.nextZ), a.nextZ && (a.nextZ.prevZ = a.prevZ); } -function y3(a, e, t) { +function _3(a, e, t) { this.i = a, this.x = e, this.y = t, this.prev = null, this.next = null, this.z = null, this.prevZ = null, this.nextZ = null, this.steiner = !1; } -function BW(a, e, t, r) { +function KW(a, e, t, r) { let i = 0; - for (let o = e, l = t - r; o < t; o += r) - i += (a[l] - a[o]) * (a[o + 1] + a[l + 1]), l = o; + for (let s = e, l = t - r; s < t; s += r) + i += (a[l] - a[s]) * (a[s + 1] + a[l + 1]), l = s; return i; } -class fy { +class hy { static area(e) { const t = e.length; let r = 0; - for (let i = t - 1, o = 0; o < t; i = o++) - r += e[i].x * e[o].y - e[o].x * e[i].y; + for (let i = t - 1, s = 0; s < t; i = s++) + r += e[i].x * e[s].y - e[s].x * e[i].y; return r * 0.5; } static isClockWise(e) { - return fy.area(e) < 0; + return hy.area(e) < 0; } static triangulateShape(e, t) { - const r = [], i = [], o = []; - CU(e), RU(r, e); + const r = [], i = [], s = []; + DU(e), LU(r, e); let l = e.length; - t.forEach(CU); - for (let h = 0; h < t.length; h++) - i.push(l), l += t[h].length, RU(r, t[h]); - const d = EW.triangulate(r, i); - for (let h = 0; h < d.length; h += 3) - o.push(d.slice(h, h + 3)); - return o; + t.forEach(DU); + for (let p = 0; p < t.length; p++) + i.push(l), l += t[p].length, LU(r, t[p]); + const d = NW.triangulate(r, i); + for (let p = 0; p < d.length; p += 3) + s.push(d.slice(p, p + 3)); + return s; } } -function CU(a) { +function DU(a) { const e = a.length; e > 2 && a[e - 1].equals(a[0]) && a.pop(); } -function RU(a, e) { +function LU(a, e) { for (let t = 0; t < e.length; t++) a.push(e[t].x), a.push(e[t].y); } -class rw extends ui { - constructor(e = new IS([new Ft(0.5, 0.5), new Ft(-0.5, 0.5), new Ft(-0.5, -0.5), new Ft(0.5, -0.5)]), t = {}) { +class rb extends oi { + constructor(e = new W_([new zt(0.5, 0.5), new zt(-0.5, 0.5), new zt(-0.5, -0.5), new zt(0.5, -0.5)]), t = {}) { super(), this.type = "ExtrudeGeometry", this.parameters = { shapes: e, options: t }, e = Array.isArray(e) ? e : [e]; - const r = this, i = [], o = []; - for (let d = 0, h = e.length; d < h; d++) { - const m = e[d]; - l(m); + const r = this, i = [], s = []; + for (let d = 0, p = e.length; d < p; d++) { + const g = e[d]; + l(g); } - this.setAttribute("position", new sr(i, 3)), this.setAttribute("uv", new sr(o, 2)), this.computeVertexNormals(); + this.setAttribute("position", new sr(i, 3)), this.setAttribute("uv", new sr(s, 2)), this.computeVertexNormals(); function l(d) { - const h = [], m = t.curveSegments !== void 0 ? t.curveSegments : 12, S = t.steps !== void 0 ? t.steps : 1, _ = t.depth !== void 0 ? t.depth : 1; - let T = t.bevelEnabled !== void 0 ? t.bevelEnabled : !0, C = t.bevelThickness !== void 0 ? t.bevelThickness : 0.2, D = t.bevelSize !== void 0 ? t.bevelSize : C - 0.1, P = t.bevelOffset !== void 0 ? t.bevelOffset : 0, U = t.bevelSegments !== void 0 ? t.bevelSegments : 3; - const B = t.extrudePath, k = t.UVGenerator !== void 0 ? t.UVGenerator : HW; - let V, I = !1, X, J, $, W; - B && (V = B.getSpacedPoints(S), I = !0, T = !1, X = B.computeFrenetFrames(S, !1), J = new ve(), $ = new ve(), W = new ve()), T || (U = 0, C = 0, D = 0, P = 0); - const ne = d.extractPoints(m); - let ie = ne.shape; - const fe = ne.holes; - if (!fy.isClockWise(ie)) { - ie = ie.reverse(); - for (let He = 0, et = fe.length; He < et; He++) { - const mt = fe[He]; - fy.isClockWise(mt) && (fe[He] = mt.reverse()); - } - } - const Ee = fy.triangulateShape(ie, fe), he = ie; - for (let He = 0, et = fe.length; He < et; He++) { - const mt = fe[He]; - ie = ie.concat(mt); - } - function Fe(He, et, mt) { - return et || console.error("THREE.ExtrudeGeometry: vec does not exist"), et.clone().multiplyScalar(mt).add(He); - } - const Ce = ie.length, Be = Ee.length; - function pe(He, et, mt) { - let vt, bt, Qt; - const ft = He.x - et.x, Vt = He.y - et.y, Jt = mt.x - He.x, Mt = mt.y - He.y, Me = ft * ft + Vt * Vt, oe = ft * Mt - Vt * Jt; + const p = [], g = t.curveSegments !== void 0 ? t.curveSegments : 12, _ = t.steps !== void 0 ? t.steps : 1, w = t.depth !== void 0 ? t.depth : 1; + let T = t.bevelEnabled !== void 0 ? t.bevelEnabled : !0, R = t.bevelThickness !== void 0 ? t.bevelThickness : 0.2, D = t.bevelSize !== void 0 ? t.bevelSize : R - 0.1, O = t.bevelOffset !== void 0 ? t.bevelOffset : 0, U = t.bevelSegments !== void 0 ? t.bevelSegments : 3; + const H = t.extrudePath, I = t.UVGenerator !== void 0 ? t.UVGenerator : $W; + let G, B = !1, Q, K, te, Y; + H && (G = H.getSpacedPoints(_), B = !0, T = !1, Q = H.computeFrenetFrames(_, !1), K = new ge(), te = new ge(), Y = new ge()), T || (U = 0, R = 0, D = 0, O = 0); + const re = d.extractPoints(g); + let se = re.shape; + const ce = re.holes; + if (!hy.isClockWise(se)) { + se = se.reverse(); + for (let Ie = 0, qe = ce.length; Ie < qe; Ie++) { + const dt = ce[Ie]; + hy.isClockWise(dt) && (ce[Ie] = dt.reverse()); + } + } + const Me = hy.triangulateShape(se, ce), me = se; + for (let Ie = 0, qe = ce.length; Ie < qe; Ie++) { + const dt = ce[Ie]; + se = se.concat(dt); + } + function De(Ie, qe, dt) { + return qe || console.error("THREE.ExtrudeGeometry: vec does not exist"), qe.clone().multiplyScalar(dt).add(Ie); + } + const Re = se.length, He = Me.length; + function ve(Ie, qe, dt) { + let ht, xt, Vt; + const yt = Ie.x - qe.x, Nt = Ie.y - qe.y, Zt = dt.x - Ie.x, Rt = dt.y - Ie.y, we = yt * yt + Nt * Nt, oe = yt * Rt - Nt * Zt; if (Math.abs(oe) > Number.EPSILON) { - const je = Math.sqrt(Me), lt = Math.sqrt(Jt * Jt + Mt * Mt), zt = et.x - Vt / je, Nt = et.y + ft / je, Ut = mt.x - Mt / lt, tt = mt.y + Jt / lt, rn = ((Ut - zt) * Mt - (tt - Nt) * Jt) / (ft * Mt - Vt * Jt); - vt = zt + ft * rn - He.x, bt = Nt + Vt * rn - He.y; - const ze = vt * vt + bt * bt; - if (ze <= 2) - return new Ft(vt, bt); - Qt = Math.sqrt(ze / 2); + const Qe = Math.sqrt(we), ut = Math.sqrt(Zt * Zt + Rt * Rt), Ft = qe.x - Nt / Qe, Ot = qe.y + yt / Qe, Wt = dt.x - Rt / ut, it = dt.y + Zt / ut, an = ((Wt - Ft) * Rt - (it - Ot) * Zt) / (yt * Rt - Nt * Zt); + ht = Ft + yt * an - Ie.x, xt = Ot + Nt * an - Ie.y; + const Be = ht * ht + xt * xt; + if (Be <= 2) + return new zt(ht, xt); + Vt = Math.sqrt(Be / 2); } else { - let je = !1; - ft > Number.EPSILON ? Jt > Number.EPSILON && (je = !0) : ft < -Number.EPSILON ? Jt < -Number.EPSILON && (je = !0) : Math.sign(Vt) === Math.sign(Mt) && (je = !0), je ? (vt = -Vt, bt = ft, Qt = Math.sqrt(Me)) : (vt = ft, bt = Vt, Qt = Math.sqrt(Me / 2)); - } - return new Ft(vt / Qt, bt / Qt); - } - const de = []; - for (let He = 0, et = he.length, mt = et - 1, vt = He + 1; He < et; He++, mt++, vt++) - mt === et && (mt = 0), vt === et && (vt = 0), de[He] = pe(he[He], he[mt], he[vt]); - const ce = []; - let ye, we = de.concat(); - for (let He = 0, et = fe.length; He < et; He++) { - const mt = fe[He]; + let Qe = !1; + yt > Number.EPSILON ? Zt > Number.EPSILON && (Qe = !0) : yt < -Number.EPSILON ? Zt < -Number.EPSILON && (Qe = !0) : Math.sign(Nt) === Math.sign(Rt) && (Qe = !0), Qe ? (ht = -Nt, xt = yt, Vt = Math.sqrt(we)) : (ht = yt, xt = Nt, Vt = Math.sqrt(we / 2)); + } + return new zt(ht / Vt, xt / Vt); + } + const fe = []; + for (let Ie = 0, qe = me.length, dt = qe - 1, ht = Ie + 1; Ie < qe; Ie++, dt++, ht++) + dt === qe && (dt = 0), ht === qe && (ht = 0), fe[Ie] = ve(me[Ie], me[dt], me[ht]); + const he = []; + let ye, Ee = fe.concat(); + for (let Ie = 0, qe = ce.length; Ie < qe; Ie++) { + const dt = ce[Ie]; ye = []; - for (let vt = 0, bt = mt.length, Qt = bt - 1, ft = vt + 1; vt < bt; vt++, Qt++, ft++) - Qt === bt && (Qt = 0), ft === bt && (ft = 0), ye[vt] = pe(mt[vt], mt[Qt], mt[ft]); - ce.push(ye), we = we.concat(ye); + for (let ht = 0, xt = dt.length, Vt = xt - 1, yt = ht + 1; ht < xt; ht++, Vt++, yt++) + Vt === xt && (Vt = 0), yt === xt && (yt = 0), ye[ht] = ve(dt[ht], dt[Vt], dt[yt]); + he.push(ye), Ee = Ee.concat(ye); } - for (let He = 0; He < U; He++) { - const et = He / U, mt = C * Math.cos(et * Math.PI / 2), vt = D * Math.sin(et * Math.PI / 2) + P; - for (let bt = 0, Qt = he.length; bt < Qt; bt++) { - const ft = Fe(he[bt], de[bt], vt); - ot(ft.x, ft.y, -mt); + for (let Ie = 0; Ie < U; Ie++) { + const qe = Ie / U, dt = R * Math.cos(qe * Math.PI / 2), ht = D * Math.sin(qe * Math.PI / 2) + O; + for (let xt = 0, Vt = me.length; xt < Vt; xt++) { + const yt = De(me[xt], fe[xt], ht); + ct(yt.x, yt.y, -dt); } - for (let bt = 0, Qt = fe.length; bt < Qt; bt++) { - const ft = fe[bt]; - ye = ce[bt]; - for (let Vt = 0, Jt = ft.length; Vt < Jt; Vt++) { - const Mt = Fe(ft[Vt], ye[Vt], vt); - ot(Mt.x, Mt.y, -mt); + for (let xt = 0, Vt = ce.length; xt < Vt; xt++) { + const yt = ce[xt]; + ye = he[xt]; + for (let Nt = 0, Zt = yt.length; Nt < Zt; Nt++) { + const Rt = De(yt[Nt], ye[Nt], ht); + ct(Rt.x, Rt.y, -dt); } } } - const Xe = D + P; - for (let He = 0; He < Ce; He++) { - const et = T ? Fe(ie[He], we[He], Xe) : ie[He]; - I ? ($.copy(X.normals[0]).multiplyScalar(et.x), J.copy(X.binormals[0]).multiplyScalar(et.y), W.copy(V[0]).add($).add(J), ot(W.x, W.y, W.z)) : ot(et.x, et.y, 0); + const Ve = D + O; + for (let Ie = 0; Ie < Re; Ie++) { + const qe = T ? De(se[Ie], Ee[Ie], Ve) : se[Ie]; + B ? (te.copy(Q.normals[0]).multiplyScalar(qe.x), K.copy(Q.binormals[0]).multiplyScalar(qe.y), Y.copy(G[0]).add(te).add(K), ct(Y.x, Y.y, Y.z)) : ct(qe.x, qe.y, 0); } - for (let He = 1; He <= S; He++) - for (let et = 0; et < Ce; et++) { - const mt = T ? Fe(ie[et], we[et], Xe) : ie[et]; - I ? ($.copy(X.normals[He]).multiplyScalar(mt.x), J.copy(X.binormals[He]).multiplyScalar(mt.y), W.copy(V[He]).add($).add(J), ot(W.x, W.y, W.z)) : ot(mt.x, mt.y, _ / S * He); + for (let Ie = 1; Ie <= _; Ie++) + for (let qe = 0; qe < Re; qe++) { + const dt = T ? De(se[qe], Ee[qe], Ve) : se[qe]; + B ? (te.copy(Q.normals[Ie]).multiplyScalar(dt.x), K.copy(Q.binormals[Ie]).multiplyScalar(dt.y), Y.copy(G[Ie]).add(te).add(K), ct(Y.x, Y.y, Y.z)) : ct(dt.x, dt.y, w / _ * Ie); } - for (let He = U - 1; He >= 0; He--) { - const et = He / U, mt = C * Math.cos(et * Math.PI / 2), vt = D * Math.sin(et * Math.PI / 2) + P; - for (let bt = 0, Qt = he.length; bt < Qt; bt++) { - const ft = Fe(he[bt], de[bt], vt); - ot(ft.x, ft.y, _ + mt); + for (let Ie = U - 1; Ie >= 0; Ie--) { + const qe = Ie / U, dt = R * Math.cos(qe * Math.PI / 2), ht = D * Math.sin(qe * Math.PI / 2) + O; + for (let xt = 0, Vt = me.length; xt < Vt; xt++) { + const yt = De(me[xt], fe[xt], ht); + ct(yt.x, yt.y, w + dt); } - for (let bt = 0, Qt = fe.length; bt < Qt; bt++) { - const ft = fe[bt]; - ye = ce[bt]; - for (let Vt = 0, Jt = ft.length; Vt < Jt; Vt++) { - const Mt = Fe(ft[Vt], ye[Vt], vt); - I ? ot(Mt.x, Mt.y + V[S - 1].y, V[S - 1].x + mt) : ot(Mt.x, Mt.y, _ + mt); + for (let xt = 0, Vt = ce.length; xt < Vt; xt++) { + const yt = ce[xt]; + ye = he[xt]; + for (let Nt = 0, Zt = yt.length; Nt < Zt; Nt++) { + const Rt = De(yt[Nt], ye[Nt], ht); + B ? ct(Rt.x, Rt.y + G[_ - 1].y, G[_ - 1].x + dt) : ct(Rt.x, Rt.y, w + dt); } } } - Je(), st(); + Je(), rt(); function Je() { - const He = i.length / 3; + const Ie = i.length / 3; if (T) { - let et = 0, mt = Ce * et; - for (let vt = 0; vt < Be; vt++) { - const bt = Ee[vt]; - rt(bt[2] + mt, bt[1] + mt, bt[0] + mt); + let qe = 0, dt = Re * qe; + for (let ht = 0; ht < He; ht++) { + const xt = Me[ht]; + tt(xt[2] + dt, xt[1] + dt, xt[0] + dt); } - et = S + U * 2, mt = Ce * et; - for (let vt = 0; vt < Be; vt++) { - const bt = Ee[vt]; - rt(bt[0] + mt, bt[1] + mt, bt[2] + mt); + qe = _ + U * 2, dt = Re * qe; + for (let ht = 0; ht < He; ht++) { + const xt = Me[ht]; + tt(xt[0] + dt, xt[1] + dt, xt[2] + dt); } } else { - for (let et = 0; et < Be; et++) { - const mt = Ee[et]; - rt(mt[2], mt[1], mt[0]); + for (let qe = 0; qe < He; qe++) { + const dt = Me[qe]; + tt(dt[2], dt[1], dt[0]); } - for (let et = 0; et < Be; et++) { - const mt = Ee[et]; - rt(mt[0] + Ce * S, mt[1] + Ce * S, mt[2] + Ce * S); + for (let qe = 0; qe < He; qe++) { + const dt = Me[qe]; + tt(dt[0] + Re * _, dt[1] + Re * _, dt[2] + Re * _); } } - r.addGroup(He, i.length / 3 - He, 0); + r.addGroup(Ie, i.length / 3 - Ie, 0); } - function st() { - const He = i.length / 3; - let et = 0; - Ue(he, et), et += he.length; - for (let mt = 0, vt = fe.length; mt < vt; mt++) { - const bt = fe[mt]; - Ue(bt, et), et += bt.length; + function rt() { + const Ie = i.length / 3; + let qe = 0; + Ne(me, qe), qe += me.length; + for (let dt = 0, ht = ce.length; dt < ht; dt++) { + const xt = ce[dt]; + Ne(xt, qe), qe += xt.length; } - r.addGroup(He, i.length / 3 - He, 1); + r.addGroup(Ie, i.length / 3 - Ie, 1); } - function Ue(He, et) { - let mt = He.length; - for (; --mt >= 0; ) { - const vt = mt; - let bt = mt - 1; - bt < 0 && (bt = He.length - 1); - for (let Qt = 0, ft = S + U * 2; Qt < ft; Qt++) { - const Vt = Ce * Qt, Jt = Ce * (Qt + 1), Mt = et + vt + Vt, Me = et + bt + Vt, oe = et + bt + Jt, je = et + vt + Jt; - _t(Mt, Me, oe, je); + function Ne(Ie, qe) { + let dt = Ie.length; + for (; --dt >= 0; ) { + const ht = dt; + let xt = dt - 1; + xt < 0 && (xt = Ie.length - 1); + for (let Vt = 0, yt = _ + U * 2; Vt < yt; Vt++) { + const Nt = Re * Vt, Zt = Re * (Vt + 1), Rt = qe + ht + Nt, we = qe + xt + Nt, oe = qe + xt + Zt, Qe = qe + ht + Zt; + Tt(Rt, we, oe, Qe); } } } - function ot(He, et, mt) { - h.push(He), h.push(et), h.push(mt); + function ct(Ie, qe, dt) { + p.push(Ie), p.push(qe), p.push(dt); } - function rt(He, et, mt) { - Rt(He), Rt(et), Rt(mt); - const vt = i.length / 3, bt = k.generateTopUV(r, i, vt - 3, vt - 2, vt - 1); - Ot(bt[0]), Ot(bt[1]), Ot(bt[2]); + function tt(Ie, qe, dt) { + gt(Ie), gt(qe), gt(dt); + const ht = i.length / 3, xt = I.generateTopUV(r, i, ht - 3, ht - 2, ht - 1); + ft(xt[0]), ft(xt[1]), ft(xt[2]); } - function _t(He, et, mt, vt) { - Rt(He), Rt(et), Rt(vt), Rt(et), Rt(mt), Rt(vt); - const bt = i.length / 3, Qt = k.generateSideWallUV(r, i, bt - 6, bt - 3, bt - 2, bt - 1); - Ot(Qt[0]), Ot(Qt[1]), Ot(Qt[3]), Ot(Qt[1]), Ot(Qt[2]), Ot(Qt[3]); + function Tt(Ie, qe, dt, ht) { + gt(Ie), gt(qe), gt(ht), gt(qe), gt(dt), gt(ht); + const xt = i.length / 3, Vt = I.generateSideWallUV(r, i, xt - 6, xt - 3, xt - 2, xt - 1); + ft(Vt[0]), ft(Vt[1]), ft(Vt[3]), ft(Vt[1]), ft(Vt[2]), ft(Vt[3]); } - function Rt(He) { - i.push(h[He * 3 + 0]), i.push(h[He * 3 + 1]), i.push(h[He * 3 + 2]); + function gt(Ie) { + i.push(p[Ie * 3 + 0]), i.push(p[Ie * 3 + 1]), i.push(p[Ie * 3 + 2]); } - function Ot(He) { - o.push(He.x), o.push(He.y); + function ft(Ie) { + s.push(Ie.x), s.push(Ie.y); } } } toJSON() { const e = super.toJSON(), t = this.parameters.shapes, r = this.parameters.options; - return VW(t, r, e); + return e7(t, r, e); } static fromJSON(e, t) { const r = []; - for (let o = 0, l = e.shapes.length; o < l; o++) { - const d = t[e.shapes[o]]; + for (let s = 0, l = e.shapes.length; s < l; s++) { + const d = t[e.shapes[s]]; r.push(d); } const i = e.options.extrudePath; - return i !== void 0 && (e.options.extrudePath = new lL[i.type]().fromJSON(i)), new rw(r, e.options); + return i !== void 0 && (e.options.extrudePath = new oL[i.type]().fromJSON(i)), new rb(r, e.options); } } -const HW = { +const $W = { generateTopUV: function(a, e, t, r, i) { - const o = e[t * 3], l = e[t * 3 + 1], d = e[r * 3], h = e[r * 3 + 1], m = e[i * 3], S = e[i * 3 + 1]; + const s = e[t * 3], l = e[t * 3 + 1], d = e[r * 3], p = e[r * 3 + 1], g = e[i * 3], _ = e[i * 3 + 1]; return [ - new Ft(o, l), - new Ft(d, h), - new Ft(m, S) + new zt(s, l), + new zt(d, p), + new zt(g, _) ]; }, - generateSideWallUV: function(a, e, t, r, i, o) { - const l = e[t * 3], d = e[t * 3 + 1], h = e[t * 3 + 2], m = e[r * 3], S = e[r * 3 + 1], _ = e[r * 3 + 2], T = e[i * 3], C = e[i * 3 + 1], D = e[i * 3 + 2], P = e[o * 3], U = e[o * 3 + 1], B = e[o * 3 + 2]; - return Math.abs(d - S) < Math.abs(l - m) ? [ - new Ft(l, 1 - h), - new Ft(m, 1 - _), - new Ft(T, 1 - D), - new Ft(P, 1 - B) + generateSideWallUV: function(a, e, t, r, i, s) { + const l = e[t * 3], d = e[t * 3 + 1], p = e[t * 3 + 2], g = e[r * 3], _ = e[r * 3 + 1], w = e[r * 3 + 2], T = e[i * 3], R = e[i * 3 + 1], D = e[i * 3 + 2], O = e[s * 3], U = e[s * 3 + 1], H = e[s * 3 + 2]; + return Math.abs(d - _) < Math.abs(l - g) ? [ + new zt(l, 1 - p), + new zt(g, 1 - w), + new zt(T, 1 - D), + new zt(O, 1 - H) ] : [ - new Ft(d, 1 - h), - new Ft(S, 1 - _), - new Ft(C, 1 - D), - new Ft(U, 1 - B) + new zt(d, 1 - p), + new zt(_, 1 - w), + new zt(R, 1 - D), + new zt(U, 1 - H) ]; } }; -function VW(a, e, t) { +function e7(a, e, t) { if (t.shapes = [], Array.isArray(a)) for (let r = 0, i = a.length; r < i; r++) { - const o = a[r]; - t.shapes.push(o.uuid); + const s = a[r]; + t.shapes.push(s.uuid); } else t.shapes.push(a.uuid); return t.options = Object.assign({}, e), e.extrudePath !== void 0 && (t.options.extrudePath = e.extrudePath.toJSON()), t; } -class iw extends my { +class ib extends gy { constructor(e = 1, t = 0) { const r = (1 + Math.sqrt(5)) / 2, i = [ -1, @@ -14694,7 +14694,7 @@ class iw extends my { -r, 0, 1 - ], o = [ + ], s = [ 0, 11, 5, @@ -14756,16 +14756,16 @@ class iw extends my { 8, 1 ]; - super(i, o, e, t), this.type = "IcosahedronGeometry", this.parameters = { + super(i, s, e, t), this.type = "IcosahedronGeometry", this.parameters = { radius: e, detail: t }; } static fromJSON(e) { - return new iw(e.radius, e.detail); + return new ib(e.radius, e.detail); } } -class rg extends my { +class sg extends gy { constructor(e = 1, t = 0) { const r = [ 1, @@ -14818,94 +14818,94 @@ class rg extends my { }; } static fromJSON(e) { - return new rg(e.radius, e.detail); + return new sg(e.radius, e.detail); } } -class aw extends ui { - constructor(e = 0.5, t = 1, r = 8, i = 1, o = 0, l = Math.PI * 2) { +class ab extends oi { + constructor(e = 0.5, t = 1, r = 8, i = 1, s = 0, l = Math.PI * 2) { super(), this.type = "RingGeometry", this.parameters = { innerRadius: e, outerRadius: t, thetaSegments: r, phiSegments: i, - thetaStart: o, + thetaStart: s, thetaLength: l }, r = Math.max(3, r), i = Math.max(1, i); - const d = [], h = [], m = [], S = []; - let _ = e; - const T = (t - e) / i, C = new ve(), D = new Ft(); - for (let P = 0; P <= i; P++) { + const d = [], p = [], g = [], _ = []; + let w = e; + const T = (t - e) / i, R = new ge(), D = new zt(); + for (let O = 0; O <= i; O++) { for (let U = 0; U <= r; U++) { - const B = o + U / r * l; - C.x = _ * Math.cos(B), C.y = _ * Math.sin(B), h.push(C.x, C.y, C.z), m.push(0, 0, 1), D.x = (C.x / t + 1) / 2, D.y = (C.y / t + 1) / 2, S.push(D.x, D.y); + const H = s + U / r * l; + R.x = w * Math.cos(H), R.y = w * Math.sin(H), p.push(R.x, R.y, R.z), g.push(0, 0, 1), D.x = (R.x / t + 1) / 2, D.y = (R.y / t + 1) / 2, _.push(D.x, D.y); } - _ += T; + w += T; } - for (let P = 0; P < i; P++) { - const U = P * (r + 1); - for (let B = 0; B < r; B++) { - const k = B + U, V = k, I = k + r + 1, X = k + r + 2, J = k + 1; - d.push(V, I, J), d.push(I, X, J); + for (let O = 0; O < i; O++) { + const U = O * (r + 1); + for (let H = 0; H < r; H++) { + const I = H + U, G = I, B = I + r + 1, Q = I + r + 2, K = I + 1; + d.push(G, B, K), d.push(B, Q, K); } } - this.setIndex(d), this.setAttribute("position", new sr(h, 3)), this.setAttribute("normal", new sr(m, 3)), this.setAttribute("uv", new sr(S, 2)); + this.setIndex(d), this.setAttribute("position", new sr(p, 3)), this.setAttribute("normal", new sr(g, 3)), this.setAttribute("uv", new sr(_, 2)); } static fromJSON(e) { - return new aw(e.innerRadius, e.outerRadius, e.thetaSegments, e.phiSegments, e.thetaStart, e.thetaLength); + return new ab(e.innerRadius, e.outerRadius, e.thetaSegments, e.phiSegments, e.thetaStart, e.thetaLength); } } -class sw extends ui { - constructor(e = new IS([new Ft(0, 0.5), new Ft(-0.5, -0.5), new Ft(0.5, -0.5)]), t = 12) { +class sb extends oi { + constructor(e = new W_([new zt(0, 0.5), new zt(-0.5, -0.5), new zt(0.5, -0.5)]), t = 12) { super(), this.type = "ShapeGeometry", this.parameters = { shapes: e, curveSegments: t }; - const r = [], i = [], o = [], l = []; - let d = 0, h = 0; + const r = [], i = [], s = [], l = []; + let d = 0, p = 0; if (Array.isArray(e) === !1) - m(e); + g(e); else - for (let S = 0; S < e.length; S++) - m(e[S]), this.addGroup(d, h, S), d += h, h = 0; - this.setIndex(r), this.setAttribute("position", new sr(i, 3)), this.setAttribute("normal", new sr(o, 3)), this.setAttribute("uv", new sr(l, 2)); - function m(S) { - const _ = i.length / 3, T = S.extractPoints(t); - let C = T.shape; + for (let _ = 0; _ < e.length; _++) + g(e[_]), this.addGroup(d, p, _), d += p, p = 0; + this.setIndex(r), this.setAttribute("position", new sr(i, 3)), this.setAttribute("normal", new sr(s, 3)), this.setAttribute("uv", new sr(l, 2)); + function g(_) { + const w = i.length / 3, T = _.extractPoints(t); + let R = T.shape; const D = T.holes; - fy.isClockWise(C) === !1 && (C = C.reverse()); - for (let U = 0, B = D.length; U < B; U++) { - const k = D[U]; - fy.isClockWise(k) === !0 && (D[U] = k.reverse()); + hy.isClockWise(R) === !1 && (R = R.reverse()); + for (let U = 0, H = D.length; U < H; U++) { + const I = D[U]; + hy.isClockWise(I) === !0 && (D[U] = I.reverse()); } - const P = fy.triangulateShape(C, D); - for (let U = 0, B = D.length; U < B; U++) { - const k = D[U]; - C = C.concat(k); + const O = hy.triangulateShape(R, D); + for (let U = 0, H = D.length; U < H; U++) { + const I = D[U]; + R = R.concat(I); } - for (let U = 0, B = C.length; U < B; U++) { - const k = C[U]; - i.push(k.x, k.y, 0), o.push(0, 0, 1), l.push(k.x, k.y); + for (let U = 0, H = R.length; U < H; U++) { + const I = R[U]; + i.push(I.x, I.y, 0), s.push(0, 0, 1), l.push(I.x, I.y); } - for (let U = 0, B = P.length; U < B; U++) { - const k = P[U], V = k[0] + _, I = k[1] + _, X = k[2] + _; - r.push(V, I, X), h += 3; + for (let U = 0, H = O.length; U < H; U++) { + const I = O[U], G = I[0] + w, B = I[1] + w, Q = I[2] + w; + r.push(G, B, Q), p += 3; } } } toJSON() { const e = super.toJSON(), t = this.parameters.shapes; - return GW(t, e); + return t7(t, e); } static fromJSON(e, t) { const r = []; - for (let i = 0, o = e.shapes.length; i < o; i++) { + for (let i = 0, s = e.shapes.length; i < s; i++) { const l = t[e.shapes[i]]; r.push(l); } - return new sw(r, e.curveSegments); + return new sb(r, e.curveSegments); } } -function GW(a, e) { +function t7(a, e) { if (e.shapes = [], Array.isArray(a)) for (let t = 0, r = a.length; t < r; t++) { const i = a[t]; @@ -14915,42 +14915,42 @@ function GW(a, e) { e.shapes.push(a.uuid); return e; } -class sg extends ui { - constructor(e = 1, t = 32, r = 16, i = 0, o = Math.PI * 2, l = 0, d = Math.PI) { +class ug extends oi { + constructor(e = 1, t = 32, r = 16, i = 0, s = Math.PI * 2, l = 0, d = Math.PI) { super(), this.type = "SphereGeometry", this.parameters = { radius: e, widthSegments: t, heightSegments: r, phiStart: i, - phiLength: o, + phiLength: s, thetaStart: l, thetaLength: d }, t = Math.max(3, Math.floor(t)), r = Math.max(2, Math.floor(r)); - const h = Math.min(l + d, Math.PI); - let m = 0; - const S = [], _ = new ve(), T = new ve(), C = [], D = [], P = [], U = []; - for (let B = 0; B <= r; B++) { - const k = [], V = B / r; - let I = 0; - B == 0 && l == 0 ? I = 0.5 / t : B == r && h == Math.PI && (I = -0.5 / t); - for (let X = 0; X <= t; X++) { - const J = X / t; - _.x = -e * Math.cos(i + J * o) * Math.sin(l + V * d), _.y = e * Math.cos(l + V * d), _.z = e * Math.sin(i + J * o) * Math.sin(l + V * d), D.push(_.x, _.y, _.z), T.copy(_).normalize(), P.push(T.x, T.y, T.z), U.push(J + I, 1 - V), k.push(m++); + const p = Math.min(l + d, Math.PI); + let g = 0; + const _ = [], w = new ge(), T = new ge(), R = [], D = [], O = [], U = []; + for (let H = 0; H <= r; H++) { + const I = [], G = H / r; + let B = 0; + H == 0 && l == 0 ? B = 0.5 / t : H == r && p == Math.PI && (B = -0.5 / t); + for (let Q = 0; Q <= t; Q++) { + const K = Q / t; + w.x = -e * Math.cos(i + K * s) * Math.sin(l + G * d), w.y = e * Math.cos(l + G * d), w.z = e * Math.sin(i + K * s) * Math.sin(l + G * d), D.push(w.x, w.y, w.z), T.copy(w).normalize(), O.push(T.x, T.y, T.z), U.push(K + B, 1 - G), I.push(g++); } - S.push(k); + _.push(I); } - for (let B = 0; B < r; B++) - for (let k = 0; k < t; k++) { - const V = S[B][k + 1], I = S[B][k], X = S[B + 1][k], J = S[B + 1][k + 1]; - (B !== 0 || l > 0) && C.push(V, I, J), (B !== r - 1 || h < Math.PI) && C.push(I, X, J); + for (let H = 0; H < r; H++) + for (let I = 0; I < t; I++) { + const G = _[H][I + 1], B = _[H][I], Q = _[H + 1][I], K = _[H + 1][I + 1]; + (H !== 0 || l > 0) && R.push(G, B, K), (H !== r - 1 || p < Math.PI) && R.push(B, Q, K); } - this.setIndex(C), this.setAttribute("position", new sr(D, 3)), this.setAttribute("normal", new sr(P, 3)), this.setAttribute("uv", new sr(U, 2)); + this.setIndex(R), this.setAttribute("position", new sr(D, 3)), this.setAttribute("normal", new sr(O, 3)), this.setAttribute("uv", new sr(U, 2)); } static fromJSON(e) { - return new sg(e.radius, e.widthSegments, e.heightSegments, e.phiStart, e.phiLength, e.thetaStart, e.thetaLength); + return new ug(e.radius, e.widthSegments, e.heightSegments, e.phiStart, e.phiLength, e.thetaStart, e.thetaLength); } } -class ow extends my { +class ob extends gy { constructor(e = 1, t = 0) { const r = [ 1, @@ -14985,108 +14985,108 @@ class ow extends my { }; } static fromJSON(e) { - return new ow(e.radius, e.detail); + return new ob(e.radius, e.detail); } } -class ng extends ui { - constructor(e = 1, t = 0.4, r = 8, i = 6, o = Math.PI * 2) { +class ag extends oi { + constructor(e = 1, t = 0.4, r = 8, i = 6, s = Math.PI * 2) { super(), this.type = "TorusGeometry", this.parameters = { radius: e, tube: t, radialSegments: r, tubularSegments: i, - arc: o + arc: s }, r = Math.floor(r), i = Math.floor(i); - const l = [], d = [], h = [], m = [], S = new ve(), _ = new ve(), T = new ve(); - for (let C = 0; C <= r; C++) + const l = [], d = [], p = [], g = [], _ = new ge(), w = new ge(), T = new ge(); + for (let R = 0; R <= r; R++) for (let D = 0; D <= i; D++) { - const P = D / i * o, U = C / r * Math.PI * 2; - _.x = (e + t * Math.cos(U)) * Math.cos(P), _.y = (e + t * Math.cos(U)) * Math.sin(P), _.z = t * Math.sin(U), d.push(_.x, _.y, _.z), S.x = e * Math.cos(P), S.y = e * Math.sin(P), T.subVectors(_, S).normalize(), h.push(T.x, T.y, T.z), m.push(D / i), m.push(C / r); + const O = D / i * s, U = R / r * Math.PI * 2; + w.x = (e + t * Math.cos(U)) * Math.cos(O), w.y = (e + t * Math.cos(U)) * Math.sin(O), w.z = t * Math.sin(U), d.push(w.x, w.y, w.z), _.x = e * Math.cos(O), _.y = e * Math.sin(O), T.subVectors(w, _).normalize(), p.push(T.x, T.y, T.z), g.push(D / i), g.push(R / r); } - for (let C = 1; C <= r; C++) + for (let R = 1; R <= r; R++) for (let D = 1; D <= i; D++) { - const P = (i + 1) * C + D - 1, U = (i + 1) * (C - 1) + D - 1, B = (i + 1) * (C - 1) + D, k = (i + 1) * C + D; - l.push(P, U, k), l.push(U, B, k); + const O = (i + 1) * R + D - 1, U = (i + 1) * (R - 1) + D - 1, H = (i + 1) * (R - 1) + D, I = (i + 1) * R + D; + l.push(O, U, I), l.push(U, H, I); } - this.setIndex(l), this.setAttribute("position", new sr(d, 3)), this.setAttribute("normal", new sr(h, 3)), this.setAttribute("uv", new sr(m, 2)); + this.setIndex(l), this.setAttribute("position", new sr(d, 3)), this.setAttribute("normal", new sr(p, 3)), this.setAttribute("uv", new sr(g, 2)); } static fromJSON(e) { - return new ng(e.radius, e.tube, e.radialSegments, e.tubularSegments, e.arc); + return new ag(e.radius, e.tube, e.radialSegments, e.tubularSegments, e.arc); } } -class lw extends ui { - constructor(e = 1, t = 0.4, r = 64, i = 8, o = 2, l = 3) { +class lb extends oi { + constructor(e = 1, t = 0.4, r = 64, i = 8, s = 2, l = 3) { super(), this.type = "TorusKnotGeometry", this.parameters = { radius: e, tube: t, tubularSegments: r, radialSegments: i, - p: o, + p: s, q: l }, r = Math.floor(r), i = Math.floor(i); - const d = [], h = [], m = [], S = [], _ = new ve(), T = new ve(), C = new ve(), D = new ve(), P = new ve(), U = new ve(), B = new ve(); - for (let V = 0; V <= r; ++V) { - const I = V / r * o * Math.PI * 2; - k(I, o, l, e, C), k(I + 0.01, o, l, e, D), U.subVectors(D, C), B.addVectors(D, C), P.crossVectors(U, B), B.crossVectors(P, U), P.normalize(), B.normalize(); - for (let X = 0; X <= i; ++X) { - const J = X / i * Math.PI * 2, $ = -t * Math.cos(J), W = t * Math.sin(J); - _.x = C.x + ($ * B.x + W * P.x), _.y = C.y + ($ * B.y + W * P.y), _.z = C.z + ($ * B.z + W * P.z), h.push(_.x, _.y, _.z), T.subVectors(_, C).normalize(), m.push(T.x, T.y, T.z), S.push(V / r), S.push(X / i); + const d = [], p = [], g = [], _ = [], w = new ge(), T = new ge(), R = new ge(), D = new ge(), O = new ge(), U = new ge(), H = new ge(); + for (let G = 0; G <= r; ++G) { + const B = G / r * s * Math.PI * 2; + I(B, s, l, e, R), I(B + 0.01, s, l, e, D), U.subVectors(D, R), H.addVectors(D, R), O.crossVectors(U, H), H.crossVectors(O, U), O.normalize(), H.normalize(); + for (let Q = 0; Q <= i; ++Q) { + const K = Q / i * Math.PI * 2, te = -t * Math.cos(K), Y = t * Math.sin(K); + w.x = R.x + (te * H.x + Y * O.x), w.y = R.y + (te * H.y + Y * O.y), w.z = R.z + (te * H.z + Y * O.z), p.push(w.x, w.y, w.z), T.subVectors(w, R).normalize(), g.push(T.x, T.y, T.z), _.push(G / r), _.push(Q / i); } } - for (let V = 1; V <= r; V++) - for (let I = 1; I <= i; I++) { - const X = (i + 1) * (V - 1) + (I - 1), J = (i + 1) * V + (I - 1), $ = (i + 1) * V + I, W = (i + 1) * (V - 1) + I; - d.push(X, J, W), d.push(J, $, W); + for (let G = 1; G <= r; G++) + for (let B = 1; B <= i; B++) { + const Q = (i + 1) * (G - 1) + (B - 1), K = (i + 1) * G + (B - 1), te = (i + 1) * G + B, Y = (i + 1) * (G - 1) + B; + d.push(Q, K, Y), d.push(K, te, Y); } - this.setIndex(d), this.setAttribute("position", new sr(h, 3)), this.setAttribute("normal", new sr(m, 3)), this.setAttribute("uv", new sr(S, 2)); - function k(V, I, X, J, $) { - const W = Math.cos(V), ne = Math.sin(V), ie = X / I * V, fe = Math.cos(ie); - $.x = J * (2 + fe) * 0.5 * W, $.y = J * (2 + fe) * ne * 0.5, $.z = J * Math.sin(ie) * 0.5; + this.setIndex(d), this.setAttribute("position", new sr(p, 3)), this.setAttribute("normal", new sr(g, 3)), this.setAttribute("uv", new sr(_, 2)); + function I(G, B, Q, K, te) { + const Y = Math.cos(G), re = Math.sin(G), se = Q / B * G, ce = Math.cos(se); + te.x = K * (2 + ce) * 0.5 * Y, te.y = K * (2 + ce) * re * 0.5, te.z = K * Math.sin(se) * 0.5; } } static fromJSON(e) { - return new lw(e.radius, e.tube, e.tubularSegments, e.radialSegments, e.p, e.q); + return new lb(e.radius, e.tube, e.tubularSegments, e.radialSegments, e.p, e.q); } } -class uw extends ui { - constructor(e = new sL(new ve(-1, -1, 0), new ve(-1, 1, 0), new ve(1, 1, 0)), t = 64, r = 1, i = 8, o = !1) { +class ub extends oi { + constructor(e = new aL(new ge(-1, -1, 0), new ge(-1, 1, 0), new ge(1, 1, 0)), t = 64, r = 1, i = 8, s = !1) { super(), this.type = "TubeGeometry", this.parameters = { path: e, tubularSegments: t, radius: r, radialSegments: i, - closed: o + closed: s }; - const l = e.computeFrenetFrames(t, o); + const l = e.computeFrenetFrames(t, s); this.tangents = l.tangents, this.normals = l.normals, this.binormals = l.binormals; - const d = new ve(), h = new ve(), m = new Ft(); - let S = new ve(); - const _ = [], T = [], C = [], D = []; - P(), this.setIndex(D), this.setAttribute("position", new sr(_, 3)), this.setAttribute("normal", new sr(T, 3)), this.setAttribute("uv", new sr(C, 2)); - function P() { - for (let V = 0; V < t; V++) - U(V); - U(o === !1 ? t : 0), k(), B(); - } - function U(V) { - S = e.getPointAt(V / t, S); - const I = l.normals[V], X = l.binormals[V]; - for (let J = 0; J <= i; J++) { - const $ = J / i * Math.PI * 2, W = Math.sin($), ne = -Math.cos($); - h.x = ne * I.x + W * X.x, h.y = ne * I.y + W * X.y, h.z = ne * I.z + W * X.z, h.normalize(), T.push(h.x, h.y, h.z), d.x = S.x + r * h.x, d.y = S.y + r * h.y, d.z = S.z + r * h.z, _.push(d.x, d.y, d.z); + const d = new ge(), p = new ge(), g = new zt(); + let _ = new ge(); + const w = [], T = [], R = [], D = []; + O(), this.setIndex(D), this.setAttribute("position", new sr(w, 3)), this.setAttribute("normal", new sr(T, 3)), this.setAttribute("uv", new sr(R, 2)); + function O() { + for (let G = 0; G < t; G++) + U(G); + U(s === !1 ? t : 0), I(), H(); + } + function U(G) { + _ = e.getPointAt(G / t, _); + const B = l.normals[G], Q = l.binormals[G]; + for (let K = 0; K <= i; K++) { + const te = K / i * Math.PI * 2, Y = Math.sin(te), re = -Math.cos(te); + p.x = re * B.x + Y * Q.x, p.y = re * B.y + Y * Q.y, p.z = re * B.z + Y * Q.z, p.normalize(), T.push(p.x, p.y, p.z), d.x = _.x + r * p.x, d.y = _.y + r * p.y, d.z = _.z + r * p.z, w.push(d.x, d.y, d.z); } } - function B() { - for (let V = 1; V <= t; V++) - for (let I = 1; I <= i; I++) { - const X = (i + 1) * (V - 1) + (I - 1), J = (i + 1) * V + (I - 1), $ = (i + 1) * V + I, W = (i + 1) * (V - 1) + I; - D.push(X, J, W), D.push(J, $, W); + function H() { + for (let G = 1; G <= t; G++) + for (let B = 1; B <= i; B++) { + const Q = (i + 1) * (G - 1) + (B - 1), K = (i + 1) * G + (B - 1), te = (i + 1) * G + B, Y = (i + 1) * (G - 1) + B; + D.push(Q, K, Y), D.push(K, te, Y); } } - function k() { - for (let V = 0; V <= t; V++) - for (let I = 0; I <= i; I++) - m.x = V / t, m.y = I / i, C.push(m.x, m.y); + function I() { + for (let G = 0; G <= t; G++) + for (let B = 0; B <= i; B++) + g.x = G / t, g.y = B / i, R.push(g.x, g.y); } } toJSON() { @@ -15094,8 +15094,8 @@ class uw extends ui { return e.path = this.parameters.path.toJSON(), e; } static fromJSON(e) { - return new uw( - new lL[e.path.type]().fromJSON(e.path), + return new ub( + new oL[e.path.type]().fromJSON(e.path), e.tubularSegments, e.radius, e.radialSegments, @@ -15103,117 +15103,117 @@ class uw extends ui { ); } } -class uL extends ui { +class lL extends oi { constructor(e = null) { if (super(), this.type = "WireframeGeometry", this.parameters = { geometry: e }, e !== null) { - const t = [], r = /* @__PURE__ */ new Set(), i = new ve(), o = new ve(); + const t = [], r = /* @__PURE__ */ new Set(), i = new ge(), s = new ge(); if (e.index !== null) { const l = e.attributes.position, d = e.index; - let h = e.groups; - h.length === 0 && (h = [{ start: 0, count: d.count, materialIndex: 0 }]); - for (let m = 0, S = h.length; m < S; ++m) { - const _ = h[m], T = _.start, C = _.count; - for (let D = T, P = T + C; D < P; D += 3) + let p = e.groups; + p.length === 0 && (p = [{ start: 0, count: d.count, materialIndex: 0 }]); + for (let g = 0, _ = p.length; g < _; ++g) { + const w = p[g], T = w.start, R = w.count; + for (let D = T, O = T + R; D < O; D += 3) for (let U = 0; U < 3; U++) { - const B = d.getX(D + U), k = d.getX(D + (U + 1) % 3); - i.fromBufferAttribute(l, B), o.fromBufferAttribute(l, k), AU(i, o, r) === !0 && (t.push(i.x, i.y, i.z), t.push(o.x, o.y, o.z)); + const H = d.getX(D + U), I = d.getX(D + (U + 1) % 3); + i.fromBufferAttribute(l, H), s.fromBufferAttribute(l, I), PU(i, s, r) === !0 && (t.push(i.x, i.y, i.z), t.push(s.x, s.y, s.z)); } } } else { const l = e.attributes.position; - for (let d = 0, h = l.count / 3; d < h; d++) - for (let m = 0; m < 3; m++) { - const S = 3 * d + m, _ = 3 * d + (m + 1) % 3; - i.fromBufferAttribute(l, S), o.fromBufferAttribute(l, _), AU(i, o, r) === !0 && (t.push(i.x, i.y, i.z), t.push(o.x, o.y, o.z)); + for (let d = 0, p = l.count / 3; d < p; d++) + for (let g = 0; g < 3; g++) { + const _ = 3 * d + g, w = 3 * d + (g + 1) % 3; + i.fromBufferAttribute(l, _), s.fromBufferAttribute(l, w), PU(i, s, r) === !0 && (t.push(i.x, i.y, i.z), t.push(s.x, s.y, s.z)); } } this.setAttribute("position", new sr(t, 3)); } } } -function AU(a, e, t) { +function PU(a, e, t) { const r = `${a.x},${a.y},${a.z}-${e.x},${e.y},${e.z}`, i = `${e.x},${e.y},${e.z}-${a.x},${a.y},${a.z}`; return t.has(r) === !0 || t.has(i) === !0 ? !1 : (t.add(r), t.add(i), !0); } -var DU = /* @__PURE__ */ Object.freeze({ +var OU = /* @__PURE__ */ Object.freeze({ __proto__: null, - BoxGeometry: cl, - BoxBufferGeometry: cl, - CapsuleGeometry: $b, - CapsuleBufferGeometry: $b, - CircleGeometry: ew, - CircleBufferGeometry: ew, - ConeGeometry: tw, - ConeBufferGeometry: tw, + BoxGeometry: fl, + BoxBufferGeometry: fl, + CapsuleGeometry: $w, + CapsuleBufferGeometry: $w, + CircleGeometry: eb, + CircleBufferGeometry: eb, + ConeGeometry: tb, + ConeBufferGeometry: tb, CylinderGeometry: Ko, CylinderBufferGeometry: Ko, - DodecahedronGeometry: nw, - DodecahedronBufferGeometry: nw, - EdgesGeometry: GF, - ExtrudeGeometry: rw, - ExtrudeBufferGeometry: rw, - IcosahedronGeometry: iw, - IcosahedronBufferGeometry: iw, - LatheGeometry: jS, - LatheBufferGeometry: jS, - OctahedronGeometry: rg, - OctahedronBufferGeometry: rg, - PlaneGeometry: ag, - PlaneBufferGeometry: ag, - PolyhedronGeometry: my, - PolyhedronBufferGeometry: my, - RingGeometry: aw, - RingBufferGeometry: aw, - ShapeGeometry: sw, - ShapeBufferGeometry: sw, - SphereGeometry: sg, - SphereBufferGeometry: sg, - TetrahedronGeometry: ow, - TetrahedronBufferGeometry: ow, - TorusGeometry: ng, - TorusBufferGeometry: ng, - TorusKnotGeometry: lw, - TorusKnotBufferGeometry: lw, - TubeGeometry: uw, - TubeBufferGeometry: uw, - WireframeGeometry: uL + DodecahedronGeometry: nb, + DodecahedronBufferGeometry: nb, + EdgesGeometry: rk, + ExtrudeGeometry: rb, + ExtrudeBufferGeometry: rb, + IcosahedronGeometry: ib, + IcosahedronBufferGeometry: ib, + LatheGeometry: Q_, + LatheBufferGeometry: Q_, + OctahedronGeometry: sg, + OctahedronBufferGeometry: sg, + PlaneGeometry: lg, + PlaneBufferGeometry: lg, + PolyhedronGeometry: gy, + PolyhedronBufferGeometry: gy, + RingGeometry: ab, + RingBufferGeometry: ab, + ShapeGeometry: sb, + ShapeBufferGeometry: sb, + SphereGeometry: ug, + SphereBufferGeometry: ug, + TetrahedronGeometry: ob, + TetrahedronBufferGeometry: ob, + TorusGeometry: ag, + TorusBufferGeometry: ag, + TorusKnotGeometry: lb, + TorusKnotBufferGeometry: lb, + TubeGeometry: ub, + TubeBufferGeometry: ub, + WireframeGeometry: lL }); -class XF extends ff { +class ok extends hf { constructor(e) { - super(), this.isShadowMaterial = !0, this.type = "ShadowMaterial", this.color = new Pn(0), this.transparent = !0, this.fog = !0, this.setValues(e); + super(), this.isShadowMaterial = !0, this.type = "ShadowMaterial", this.color = new Un(0), this.transparent = !0, this.fog = !0, this.setValues(e); } copy(e) { return super.copy(e), this.color.copy(e.color), this.fog = e.fog, this; } } -class qF extends wu { +class lk extends Mu { constructor(e) { super(e), this.isRawShaderMaterial = !0, this.type = "RawShaderMaterial"; } } -class BM extends ff { +class HM extends hf { constructor(e) { - super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new Pn(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Pn(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = qS, this.normalScale = new Ft(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e); + super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new Un(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Un(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = K_, this.normalScale = new zt(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e); } copy(e) { return super.copy(e), this.defines = { STANDARD: "" }, this.color.copy(e.color), this.roughness = e.roughness, this.metalness = e.metalness, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.roughnessMap = e.roughnessMap, this.metalnessMap = e.metalnessMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapIntensity = e.envMapIntensity, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this; } } -class QF extends BM { +class uk extends HM { constructor(e) { super(), this.isMeshPhysicalMaterial = !0, this.defines = { STANDARD: "", PHYSICAL: "" - }, this.type = "MeshPhysicalMaterial", this.clearcoatMap = null, this.clearcoatRoughness = 0, this.clearcoatRoughnessMap = null, this.clearcoatNormalScale = new Ft(1, 1), this.clearcoatNormalMap = null, this.ior = 1.5, Object.defineProperty(this, "reflectivity", { + }, this.type = "MeshPhysicalMaterial", this.clearcoatMap = null, this.clearcoatRoughness = 0, this.clearcoatRoughnessMap = null, this.clearcoatNormalScale = new zt(1, 1), this.clearcoatNormalMap = null, this.ior = 1.5, Object.defineProperty(this, "reflectivity", { get: function() { - return Qu(2.5 * (this.ior - 1) / (this.ior + 1), 0, 1); + return Zu(2.5 * (this.ior - 1) / (this.ior + 1), 0, 1); }, set: function(t) { this.ior = (1 + 0.4 * t) / (1 - 0.4 * t); } - }), this.iridescenceMap = null, this.iridescenceIOR = 1.3, this.iridescenceThicknessRange = [100, 400], this.iridescenceThicknessMap = null, this.sheenColor = new Pn(0), this.sheenColorMap = null, this.sheenRoughness = 1, this.sheenRoughnessMap = null, this.transmissionMap = null, this.thickness = 0, this.thicknessMap = null, this.attenuationDistance = 0, this.attenuationColor = new Pn(1, 1, 1), this.specularIntensity = 1, this.specularIntensityMap = null, this.specularColor = new Pn(1, 1, 1), this.specularColorMap = null, this._sheen = 0, this._clearcoat = 0, this._iridescence = 0, this._transmission = 0, this.setValues(e); + }), this.iridescenceMap = null, this.iridescenceIOR = 1.3, this.iridescenceThicknessRange = [100, 400], this.iridescenceThicknessMap = null, this.sheenColor = new Un(0), this.sheenColorMap = null, this.sheenRoughness = 1, this.sheenRoughnessMap = null, this.transmissionMap = null, this.thickness = 0, this.thicknessMap = null, this.attenuationDistance = 0, this.attenuationColor = new Un(1, 1, 1), this.specularIntensity = 1, this.specularIntensityMap = null, this.specularColor = new Un(1, 1, 1), this.specularColorMap = null, this._sheen = 0, this._clearcoat = 0, this._iridescence = 0, this._transmission = 0, this.setValues(e); } get sheen() { return this._sheen; @@ -15246,47 +15246,47 @@ class QF extends BM { }, this.clearcoat = e.clearcoat, this.clearcoatMap = e.clearcoatMap, this.clearcoatRoughness = e.clearcoatRoughness, this.clearcoatRoughnessMap = e.clearcoatRoughnessMap, this.clearcoatNormalMap = e.clearcoatNormalMap, this.clearcoatNormalScale.copy(e.clearcoatNormalScale), this.ior = e.ior, this.iridescence = e.iridescence, this.iridescenceMap = e.iridescenceMap, this.iridescenceIOR = e.iridescenceIOR, this.iridescenceThicknessRange = [...e.iridescenceThicknessRange], this.iridescenceThicknessMap = e.iridescenceThicknessMap, this.sheen = e.sheen, this.sheenColor.copy(e.sheenColor), this.sheenColorMap = e.sheenColorMap, this.sheenRoughness = e.sheenRoughness, this.sheenRoughnessMap = e.sheenRoughnessMap, this.transmission = e.transmission, this.transmissionMap = e.transmissionMap, this.thickness = e.thickness, this.thicknessMap = e.thicknessMap, this.attenuationDistance = e.attenuationDistance, this.attenuationColor.copy(e.attenuationColor), this.specularIntensity = e.specularIntensity, this.specularIntensityMap = e.specularIntensityMap, this.specularColor.copy(e.specularColor), this.specularColorMap = e.specularColorMap, this; } } -class ZF extends ff { +class ck extends hf { constructor(e) { - super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new Pn(16777215), this.specular = new Pn(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Pn(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = qS, this.normalScale = new Ft(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = ZM, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e); + super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new Un(16777215), this.specular = new Un(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Un(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = K_, this.normalScale = new zt(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = ZM, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e); } copy(e) { return super.copy(e), this.color.copy(e.color), this.specular.copy(e.specular), this.shininess = e.shininess, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this; } } -class JF extends ff { +class fk extends hf { constructor(e) { - super(), this.isMeshToonMaterial = !0, this.defines = { TOON: "" }, this.type = "MeshToonMaterial", this.color = new Pn(16777215), this.map = null, this.gradientMap = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Pn(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = qS, this.normalScale = new Ft(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e); + super(), this.isMeshToonMaterial = !0, this.defines = { TOON: "" }, this.type = "MeshToonMaterial", this.color = new Un(16777215), this.map = null, this.gradientMap = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Un(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = K_, this.normalScale = new zt(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e); } copy(e) { return super.copy(e), this.color.copy(e.color), this.map = e.map, this.gradientMap = e.gradientMap, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.alphaMap = e.alphaMap, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.fog = e.fog, this; } } -class cL extends ff { +class uL extends hf { constructor(e) { - super(), this.isMeshNormalMaterial = !0, this.type = "MeshNormalMaterial", this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = qS, this.normalScale = new Ft(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.flatShading = !1, this.setValues(e); + super(), this.isMeshNormalMaterial = !0, this.type = "MeshNormalMaterial", this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = K_, this.normalScale = new zt(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.flatShading = !1, this.setValues(e); } copy(e) { return super.copy(e), this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.flatShading = e.flatShading, this; } } -class KF extends ff { +class dk extends hf { constructor(e) { - super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new Pn(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Pn(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = ZM, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e); + super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new Un(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Un(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = ZM, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e); } copy(e) { return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.fog = e.fog, this; } } -class $F extends ff { +class hk extends hf { constructor(e) { - super(), this.isMeshMatcapMaterial = !0, this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new Pn(16777215), this.matcap = null, this.map = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = qS, this.normalScale = new Ft(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.flatShading = !1, this.fog = !0, this.setValues(e); + super(), this.isMeshMatcapMaterial = !0, this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new Un(16777215), this.matcap = null, this.map = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = K_, this.normalScale = new zt(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.flatShading = !1, this.fog = !0, this.setValues(e); } copy(e) { return super.copy(e), this.defines = { MATCAP: "" }, this.color.copy(e.color), this.matcap = e.matcap, this.map = e.map, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.alphaMap = e.alphaMap, this.flatShading = e.flatShading, this.fog = e.fog, this; } } -class e4 extends ph { +class pk extends mh { constructor(e) { super(), this.isLineDashedMaterial = !0, this.type = "LineDashedMaterial", this.scale = 1, this.dashSize = 3, this.gapSize = 1, this.setValues(e); } @@ -15294,140 +15294,140 @@ class e4 extends ph { return super.copy(e), this.scale = e.scale, this.dashSize = e.dashSize, this.gapSize = e.gapSize, this; } } -function gv(a, e, t) { - return fL(a) ? new a.constructor(a.subarray(e, t !== void 0 ? t : a.length)) : a.slice(e, t); +function _v(a, e, t) { + return cL(a) ? new a.constructor(a.subarray(e, t !== void 0 ? t : a.length)) : a.slice(e, t); } -function US(a, e, t) { +function k_(a, e, t) { return !a || !t && a.constructor === e ? a : typeof e.BYTES_PER_ELEMENT == "number" ? new e(a) : Array.prototype.slice.call(a); } -function fL(a) { +function cL(a) { return ArrayBuffer.isView(a) && !(a instanceof DataView); } -function t4(a) { - function e(i, o) { - return a[i] - a[o]; +function mk(a) { + function e(i, s) { + return a[i] - a[s]; } const t = a.length, r = new Array(t); for (let i = 0; i !== t; ++i) r[i] = i; return r.sort(e), r; } -function x3(a, e, t) { +function S3(a, e, t) { const r = a.length, i = new a.constructor(r); - for (let o = 0, l = 0; l !== r; ++o) { - const d = t[o] * e; - for (let h = 0; h !== e; ++h) - i[l++] = a[d + h]; + for (let s = 0, l = 0; l !== r; ++s) { + const d = t[s] * e; + for (let p = 0; p !== e; ++p) + i[l++] = a[d + p]; } return i; } -function dL(a, e, t, r) { - let i = 1, o = a[0]; - for (; o !== void 0 && o[r] === void 0; ) - o = a[i++]; - if (o === void 0) +function fL(a, e, t, r) { + let i = 1, s = a[0]; + for (; s !== void 0 && s[r] === void 0; ) + s = a[i++]; + if (s === void 0) return; - let l = o[r]; + let l = s[r]; if (l !== void 0) if (Array.isArray(l)) do - l = o[r], l !== void 0 && (e.push(o.time), t.push.apply(t, l)), o = a[i++]; - while (o !== void 0); + l = s[r], l !== void 0 && (e.push(s.time), t.push.apply(t, l)), s = a[i++]; + while (s !== void 0); else if (l.toArray !== void 0) do - l = o[r], l !== void 0 && (e.push(o.time), l.toArray(t, t.length)), o = a[i++]; - while (o !== void 0); + l = s[r], l !== void 0 && (e.push(s.time), l.toArray(t, t.length)), s = a[i++]; + while (s !== void 0); else do - l = o[r], l !== void 0 && (e.push(o.time), t.push(l)), o = a[i++]; - while (o !== void 0); + l = s[r], l !== void 0 && (e.push(s.time), t.push(l)), s = a[i++]; + while (s !== void 0); } -function WW(a, e, t, r, i = 30) { - const o = a.clone(); - o.name = e; +function n7(a, e, t, r, i = 30) { + const s = a.clone(); + s.name = e; const l = []; - for (let h = 0; h < o.tracks.length; ++h) { - const m = o.tracks[h], S = m.getValueSize(), _ = [], T = []; - for (let C = 0; C < m.times.length; ++C) { - const D = m.times[C] * i; + for (let p = 0; p < s.tracks.length; ++p) { + const g = s.tracks[p], _ = g.getValueSize(), w = [], T = []; + for (let R = 0; R < g.times.length; ++R) { + const D = g.times[R] * i; if (!(D < t || D >= r)) { - _.push(m.times[C]); - for (let P = 0; P < S; ++P) - T.push(m.values[C * S + P]); + w.push(g.times[R]); + for (let O = 0; O < _; ++O) + T.push(g.values[R * _ + O]); } } - _.length !== 0 && (m.times = US(_, m.times.constructor), m.values = US(T, m.values.constructor), l.push(m)); + w.length !== 0 && (g.times = k_(w, g.times.constructor), g.values = k_(T, g.values.constructor), l.push(g)); } - o.tracks = l; + s.tracks = l; let d = 1 / 0; - for (let h = 0; h < o.tracks.length; ++h) - d > o.tracks[h].times[0] && (d = o.tracks[h].times[0]); - for (let h = 0; h < o.tracks.length; ++h) - o.tracks[h].shift(-1 * d); - return o.resetDuration(), o; + for (let p = 0; p < s.tracks.length; ++p) + d > s.tracks[p].times[0] && (d = s.tracks[p].times[0]); + for (let p = 0; p < s.tracks.length; ++p) + s.tracks[p].shift(-1 * d); + return s.resetDuration(), s; } -function jW(a, e = 0, t = a, r = 30) { +function r7(a, e = 0, t = a, r = 30) { r <= 0 && (r = 30); - const i = t.tracks.length, o = e / r; + const i = t.tracks.length, s = e / r; for (let l = 0; l < i; ++l) { - const d = t.tracks[l], h = d.ValueTypeName; - if (h === "bool" || h === "string") + const d = t.tracks[l], p = d.ValueTypeName; + if (p === "bool" || p === "string") continue; - const m = a.tracks.find(function(B) { - return B.name === d.name && B.ValueTypeName === h; + const g = a.tracks.find(function(H) { + return H.name === d.name && H.ValueTypeName === p; }); - if (m === void 0) + if (g === void 0) continue; - let S = 0; - const _ = d.getValueSize(); - d.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline && (S = _ / 3); + let _ = 0; + const w = d.getValueSize(); + d.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline && (_ = w / 3); let T = 0; - const C = m.getValueSize(); - m.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline && (T = C / 3); + const R = g.getValueSize(); + g.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline && (T = R / 3); const D = d.times.length - 1; - let P; - if (o <= d.times[0]) { - const B = S, k = _ - S; - P = gv(d.values, B, k); - } else if (o >= d.times[D]) { - const B = D * _ + S, k = B + _ - S; - P = gv(d.values, B, k); + let O; + if (s <= d.times[0]) { + const H = _, I = w - _; + O = _v(d.values, H, I); + } else if (s >= d.times[D]) { + const H = D * w + _, I = H + w - _; + O = _v(d.values, H, I); } else { - const B = d.createInterpolant(), k = S, V = _ - S; - B.evaluate(o), P = gv(B.resultBuffer, k, V); - } - h === "quaternion" && new Po().fromArray(P).normalize().conjugate().toArray(P); - const U = m.times.length; - for (let B = 0; B < U; ++B) { - const k = B * C + T; - if (h === "quaternion") + const H = d.createInterpolant(), I = _, G = w - _; + H.evaluate(s), O = _v(H.resultBuffer, I, G); + } + p === "quaternion" && new Po().fromArray(O).normalize().conjugate().toArray(O); + const U = g.times.length; + for (let H = 0; H < U; ++H) { + const I = H * R + T; + if (p === "quaternion") Po.multiplyQuaternionsFlat( - m.values, - k, - P, + g.values, + I, + O, 0, - m.values, - k + g.values, + I ); else { - const V = C - T * 2; - for (let I = 0; I < V; ++I) - m.values[k + I] -= P[I]; + const G = R - T * 2; + for (let B = 0; B < G; ++B) + g.values[I + B] -= O[B]; } } } return a.blendMode = Y3, a; } -var YW = /* @__PURE__ */ Object.freeze({ +var i7 = /* @__PURE__ */ Object.freeze({ __proto__: null, - arraySlice: gv, - convertArray: US, - isTypedArray: fL, - getKeyframeOrder: t4, - sortedArray: x3, - flattenJSON: dL, - subclip: WW, - makeClipAdditive: jW + arraySlice: _v, + convertArray: k_, + isTypedArray: cL, + getKeyframeOrder: mk, + sortedArray: S3, + flattenJSON: fL, + subclip: n7, + makeClipAdditive: r7 }); class nT { constructor(e, t, r, i) { @@ -15435,7 +15435,7 @@ class nT { } evaluate(e) { const t = this.parameterPositions; - let r = this._cachedIndex, i = t[r], o = t[r - 1]; + let r = this._cachedIndex, i = t[r], s = t[r - 1]; e: { t: { let l; @@ -15444,27 +15444,27 @@ class nT { if (!(e < i)) { for (let d = r + 2; ; ) { if (i === void 0) { - if (e < o) + if (e < s) break r; return r = t.length, this._cachedIndex = r, this.copySampleValue_(r - 1); } if (r === d) break; - if (o = i, i = t[++r], e < i) + if (s = i, i = t[++r], e < i) break t; } l = t.length; break n; } - if (!(e >= o)) { + if (!(e >= s)) { const d = t[1]; - e < d && (r = 2, o = d); - for (let h = r - 2; ; ) { - if (o === void 0) + e < d && (r = 2, s = d); + for (let p = r - 2; ; ) { + if (s === void 0) return this._cachedIndex = 0, this.copySampleValue_(0); - if (r === h) + if (r === p) break; - if (i = o, o = t[--r - 1], e >= o) + if (i = s, s = t[--r - 1], e >= s) break t; } l = r, r = 0; @@ -15476,22 +15476,22 @@ class nT { const d = r + l >>> 1; e < t[d] ? l = d : r = d + 1; } - if (i = t[r], o = t[r - 1], o === void 0) + if (i = t[r], s = t[r - 1], s === void 0) return this._cachedIndex = 0, this.copySampleValue_(0); if (i === void 0) return r = t.length, this._cachedIndex = r, this.copySampleValue_(r - 1); } - this._cachedIndex = r, this.intervalChanged_(r, o, i); + this._cachedIndex = r, this.intervalChanged_(r, s, i); } - return this.interpolate_(r, o, e, i); + return this.interpolate_(r, s, e, i); } getSettings_() { return this.settings || this.DefaultSettings_; } copySampleValue_(e) { - const t = this.resultBuffer, r = this.sampleValues, i = this.valueSize, o = e * i; + const t = this.resultBuffer, r = this.sampleValues, i = this.valueSize, s = e * i; for (let l = 0; l !== i; ++l) - t[l] = r[o + l]; + t[l] = r[s + l]; return t; } interpolate_() { @@ -15500,60 +15500,60 @@ class nT { intervalChanged_() { } } -class n4 extends nT { +class vk extends nT { constructor(e, t, r, i) { super(e, t, r, i), this._weightPrev = -0, this._offsetPrev = -0, this._weightNext = -0, this._offsetNext = -0, this.DefaultSettings_ = { - endingStart: LS, - endingEnd: LS + endingStart: z_, + endingEnd: z_ }; } intervalChanged_(e, t, r) { const i = this.parameterPositions; - let o = e - 2, l = e + 1, d = i[o], h = i[l]; + let s = e - 2, l = e + 1, d = i[s], p = i[l]; if (d === void 0) switch (this.getSettings_().endingStart) { - case PS: - o = e, d = 2 * t - r; + case N_: + s = e, d = 2 * t - r; break; - case LM: - o = i.length - 2, d = t + i[o] - i[o + 1]; + case PM: + s = i.length - 2, d = t + i[s] - i[s + 1]; break; default: - o = e, d = r; + s = e, d = r; } - if (h === void 0) + if (p === void 0) switch (this.getSettings_().endingEnd) { - case PS: - l = e, h = 2 * r - t; + case N_: + l = e, p = 2 * r - t; break; - case LM: - l = 1, h = r + i[1] - i[0]; + case PM: + l = 1, p = r + i[1] - i[0]; break; default: - l = e - 1, h = t; + l = e - 1, p = t; } - const m = (r - t) * 0.5, S = this.valueSize; - this._weightPrev = m / (t - d), this._weightNext = m / (h - r), this._offsetPrev = o * S, this._offsetNext = l * S; + const g = (r - t) * 0.5, _ = this.valueSize; + this._weightPrev = g / (t - d), this._weightNext = g / (p - r), this._offsetPrev = s * _, this._offsetNext = l * _; } interpolate_(e, t, r, i) { - const o = this.resultBuffer, l = this.sampleValues, d = this.valueSize, h = e * d, m = h - d, S = this._offsetPrev, _ = this._offsetNext, T = this._weightPrev, C = this._weightNext, D = (r - t) / (i - t), P = D * D, U = P * D, B = -T * U + 2 * T * P - T * D, k = (1 + T) * U + (-1.5 - 2 * T) * P + (-0.5 + T) * D + 1, V = (-1 - C) * U + (1.5 + C) * P + 0.5 * D, I = C * U - C * P; - for (let X = 0; X !== d; ++X) - o[X] = B * l[S + X] + k * l[m + X] + V * l[h + X] + I * l[_ + X]; - return o; + const s = this.resultBuffer, l = this.sampleValues, d = this.valueSize, p = e * d, g = p - d, _ = this._offsetPrev, w = this._offsetNext, T = this._weightPrev, R = this._weightNext, D = (r - t) / (i - t), O = D * D, U = O * D, H = -T * U + 2 * T * O - T * D, I = (1 + T) * U + (-1.5 - 2 * T) * O + (-0.5 + T) * D + 1, G = (-1 - R) * U + (1.5 + R) * O + 0.5 * D, B = R * U - R * O; + for (let Q = 0; Q !== d; ++Q) + s[Q] = H * l[_ + Q] + I * l[g + Q] + G * l[p + Q] + B * l[w + Q]; + return s; } } -class hL extends nT { +class dL extends nT { constructor(e, t, r, i) { super(e, t, r, i); } interpolate_(e, t, r, i) { - const o = this.resultBuffer, l = this.sampleValues, d = this.valueSize, h = e * d, m = h - d, S = (r - t) / (i - t), _ = 1 - S; + const s = this.resultBuffer, l = this.sampleValues, d = this.valueSize, p = e * d, g = p - d, _ = (r - t) / (i - t), w = 1 - _; for (let T = 0; T !== d; ++T) - o[T] = l[m + T] * _ + l[h + T] * S; - return o; + s[T] = l[g + T] * w + l[p + T] * _; + return s; } } -class r4 extends nT { +class gk extends nT { constructor(e, t, r, i) { super(e, t, r, i); } @@ -15561,13 +15561,13 @@ class r4 extends nT { return this.copySampleValue_(e - 1); } } -class cg { +class hg { constructor(e, t, r, i) { if (e === void 0) throw new Error("THREE.KeyframeTrack: track name is undefined"); if (t === void 0 || t.length === 0) throw new Error("THREE.KeyframeTrack: no keyframes in track named " + e); - this.name = e, this.times = US(t, this.TimeBufferType), this.values = US(r, this.ValueBufferType), this.setInterpolation(i || this.DefaultInterpolation); + this.name = e, this.times = k_(t, this.TimeBufferType), this.values = k_(r, this.ValueBufferType), this.setInterpolation(i || this.DefaultInterpolation); } static toJSON(e) { const t = e.constructor; @@ -15577,8 +15577,8 @@ class cg { else { r = { name: e.name, - times: US(e.times, Array), - values: US(e.values, Array) + times: k_(e.times, Array), + values: k_(e.values, Array) }; const i = e.getInterpolation(); i !== e.DefaultInterpolation && (r.interpolation = i); @@ -15586,21 +15586,21 @@ class cg { return r.type = e.ValueTypeName, r; } InterpolantFactoryMethodDiscrete(e) { - return new r4(this.times, this.values, this.getValueSize(), e); + return new gk(this.times, this.values, this.getValueSize(), e); } InterpolantFactoryMethodLinear(e) { - return new hL(this.times, this.values, this.getValueSize(), e); + return new dL(this.times, this.values, this.getValueSize(), e); } InterpolantFactoryMethodSmooth(e) { - return new n4(this.times, this.values, this.getValueSize(), e); + return new vk(this.times, this.values, this.getValueSize(), e); } setInterpolation(e) { let t; switch (e) { - case AM: + case DM: t = this.InterpolantFactoryMethodDiscrete; break; - case DM: + case LM: t = this.InterpolantFactoryMethodLinear; break; case hC: @@ -15621,9 +15621,9 @@ class cg { getInterpolation() { switch (this.createInterpolant) { case this.InterpolantFactoryMethodDiscrete: - return AM; - case this.InterpolantFactoryMethodLinear: return DM; + case this.InterpolantFactoryMethodLinear: + return LM; case this.InterpolantFactoryMethodSmooth: return hC; } @@ -15649,15 +15649,15 @@ class cg { } trim(e, t) { const r = this.times, i = r.length; - let o = 0, l = i - 1; - for (; o !== i && r[o] < e; ) - ++o; + let s = 0, l = i - 1; + for (; s !== i && r[s] < e; ) + ++s; for (; l !== -1 && r[l] > t; ) --l; - if (++l, o !== 0 || l !== i) { - o >= l && (l = Math.max(l, 1), o = l - 1); + if (++l, s !== 0 || l !== i) { + s >= l && (l = Math.max(l, 1), s = l - 1); const d = this.getValueSize(); - this.times = gv(r, o, l), this.values = gv(this.values, o * d, l * d); + this.times = _v(r, s, l), this.values = _v(this.values, s * d, l * d); } return this; } @@ -15665,129 +15665,129 @@ class cg { let e = !0; const t = this.getValueSize(); t - Math.floor(t) !== 0 && (console.error("THREE.KeyframeTrack: Invalid value size in track.", this), e = !1); - const r = this.times, i = this.values, o = r.length; - o === 0 && (console.error("THREE.KeyframeTrack: Track is empty.", this), e = !1); + const r = this.times, i = this.values, s = r.length; + s === 0 && (console.error("THREE.KeyframeTrack: Track is empty.", this), e = !1); let l = null; - for (let d = 0; d !== o; d++) { - const h = r[d]; - if (typeof h == "number" && isNaN(h)) { - console.error("THREE.KeyframeTrack: Time is not a valid number.", this, d, h), e = !1; + for (let d = 0; d !== s; d++) { + const p = r[d]; + if (typeof p == "number" && isNaN(p)) { + console.error("THREE.KeyframeTrack: Time is not a valid number.", this, d, p), e = !1; break; } - if (l !== null && l > h) { - console.error("THREE.KeyframeTrack: Out of order keys.", this, d, h, l), e = !1; + if (l !== null && l > p) { + console.error("THREE.KeyframeTrack: Out of order keys.", this, d, p, l), e = !1; break; } - l = h; + l = p; } - if (i !== void 0 && fL(i)) - for (let d = 0, h = i.length; d !== h; ++d) { - const m = i[d]; - if (isNaN(m)) { - console.error("THREE.KeyframeTrack: Value is not a valid number.", this, d, m), e = !1; + if (i !== void 0 && cL(i)) + for (let d = 0, p = i.length; d !== p; ++d) { + const g = i[d]; + if (isNaN(g)) { + console.error("THREE.KeyframeTrack: Value is not a valid number.", this, d, g), e = !1; break; } } return e; } optimize() { - const e = gv(this.times), t = gv(this.values), r = this.getValueSize(), i = this.getInterpolation() === hC, o = e.length - 1; + const e = _v(this.times), t = _v(this.values), r = this.getValueSize(), i = this.getInterpolation() === hC, s = e.length - 1; let l = 1; - for (let d = 1; d < o; ++d) { - let h = !1; - const m = e[d], S = e[d + 1]; - if (m !== S && (d !== 1 || m !== e[0])) + for (let d = 1; d < s; ++d) { + let p = !1; + const g = e[d], _ = e[d + 1]; + if (g !== _ && (d !== 1 || g !== e[0])) if (i) - h = !0; + p = !0; else { - const _ = d * r, T = _ - r, C = _ + r; + const w = d * r, T = w - r, R = w + r; for (let D = 0; D !== r; ++D) { - const P = t[_ + D]; - if (P !== t[T + D] || P !== t[C + D]) { - h = !0; + const O = t[w + D]; + if (O !== t[T + D] || O !== t[R + D]) { + p = !0; break; } } } - if (h) { + if (p) { if (d !== l) { e[l] = e[d]; - const _ = d * r, T = l * r; - for (let C = 0; C !== r; ++C) - t[T + C] = t[_ + C]; + const w = d * r, T = l * r; + for (let R = 0; R !== r; ++R) + t[T + R] = t[w + R]; } ++l; } } - if (o > 0) { - e[l] = e[o]; - for (let d = o * r, h = l * r, m = 0; m !== r; ++m) - t[h + m] = t[d + m]; + if (s > 0) { + e[l] = e[s]; + for (let d = s * r, p = l * r, g = 0; g !== r; ++g) + t[p + g] = t[d + g]; ++l; } - return l !== e.length ? (this.times = gv(e, 0, l), this.values = gv(t, 0, l * r)) : (this.times = e, this.values = t), this; + return l !== e.length ? (this.times = _v(e, 0, l), this.values = _v(t, 0, l * r)) : (this.times = e, this.values = t), this; } clone() { - const e = gv(this.times, 0), t = gv(this.values, 0), r = this.constructor, i = new r(this.name, e, t); + const e = _v(this.times, 0), t = _v(this.values, 0), r = this.constructor, i = new r(this.name, e, t); return i.createInterpolant = this.createInterpolant, i; } } -cg.prototype.TimeBufferType = Float32Array; -cg.prototype.ValueBufferType = Float32Array; -cg.prototype.DefaultInterpolation = DM; -class ZS extends cg { +hg.prototype.TimeBufferType = Float32Array; +hg.prototype.ValueBufferType = Float32Array; +hg.prototype.DefaultInterpolation = LM; +class eS extends hg { } -ZS.prototype.ValueTypeName = "bool"; -ZS.prototype.ValueBufferType = Array; -ZS.prototype.DefaultInterpolation = AM; -ZS.prototype.InterpolantFactoryMethodLinear = void 0; -ZS.prototype.InterpolantFactoryMethodSmooth = void 0; -class pL extends cg { +eS.prototype.ValueTypeName = "bool"; +eS.prototype.ValueBufferType = Array; +eS.prototype.DefaultInterpolation = DM; +eS.prototype.InterpolantFactoryMethodLinear = void 0; +eS.prototype.InterpolantFactoryMethodSmooth = void 0; +class hL extends hg { } -pL.prototype.ValueTypeName = "color"; -class HM extends cg { +hL.prototype.ValueTypeName = "color"; +class VM extends hg { } -HM.prototype.ValueTypeName = "number"; -class i4 extends nT { +VM.prototype.ValueTypeName = "number"; +class yk extends nT { constructor(e, t, r, i) { super(e, t, r, i); } interpolate_(e, t, r, i) { - const o = this.resultBuffer, l = this.sampleValues, d = this.valueSize, h = (r - t) / (i - t); - let m = e * d; - for (let S = m + d; m !== S; m += 4) - Po.slerpFlat(o, 0, l, m - d, l, m, h); - return o; + const s = this.resultBuffer, l = this.sampleValues, d = this.valueSize, p = (r - t) / (i - t); + let g = e * d; + for (let _ = g + d; g !== _; g += 4) + Po.slerpFlat(s, 0, l, g - d, l, g, p); + return s; } } -class vw extends cg { +class vb extends hg { InterpolantFactoryMethodLinear(e) { - return new i4(this.times, this.values, this.getValueSize(), e); + return new yk(this.times, this.values, this.getValueSize(), e); } } -vw.prototype.ValueTypeName = "quaternion"; -vw.prototype.DefaultInterpolation = DM; -vw.prototype.InterpolantFactoryMethodSmooth = void 0; -class JS extends cg { +vb.prototype.ValueTypeName = "quaternion"; +vb.prototype.DefaultInterpolation = LM; +vb.prototype.InterpolantFactoryMethodSmooth = void 0; +class tS extends hg { } -JS.prototype.ValueTypeName = "string"; -JS.prototype.ValueBufferType = Array; -JS.prototype.DefaultInterpolation = AM; -JS.prototype.InterpolantFactoryMethodLinear = void 0; -JS.prototype.InterpolantFactoryMethodSmooth = void 0; -class VM extends cg { +tS.prototype.ValueTypeName = "string"; +tS.prototype.ValueBufferType = Array; +tS.prototype.DefaultInterpolation = DM; +tS.prototype.InterpolantFactoryMethodLinear = void 0; +tS.prototype.InterpolantFactoryMethodSmooth = void 0; +class GM extends hg { } -VM.prototype.ValueTypeName = "vector"; -class GM { - constructor(e, t = -1, r, i = FC) { - this.name = e, this.tracks = r, this.duration = t, this.blendMode = i, this.uuid = bm(), this.duration < 0 && this.resetDuration(); +GM.prototype.ValueTypeName = "vector"; +class WM { + constructor(e, t = -1, r, i = kC) { + this.name = e, this.tracks = r, this.duration = t, this.blendMode = i, this.uuid = Em(), this.duration < 0 && this.resetDuration(); } static parse(e) { const t = [], r = e.tracks, i = 1 / (e.fps || 1); for (let l = 0, d = r.length; l !== d; ++l) - t.push(qW(r[l]).scale(i)); - const o = new this(e.name, e.duration, t, e.blendMode); - return o.uuid = e.uuid, o; + t.push(s7(r[l]).scale(i)); + const s = new this(e.name, e.duration, t, e.blendMode); + return s.uuid = e.uuid, s; } static toJSON(e) { const t = [], r = e.tracks, i = { @@ -15797,25 +15797,25 @@ class GM { uuid: e.uuid, blendMode: e.blendMode }; - for (let o = 0, l = r.length; o !== l; ++o) - t.push(cg.toJSON(r[o])); + for (let s = 0, l = r.length; s !== l; ++s) + t.push(hg.toJSON(r[s])); return i; } static CreateFromMorphTargetSequence(e, t, r, i) { - const o = t.length, l = []; - for (let d = 0; d < o; d++) { - let h = [], m = []; - h.push( - (d + o - 1) % o, + const s = t.length, l = []; + for (let d = 0; d < s; d++) { + let p = [], g = []; + p.push( + (d + s - 1) % s, d, - (d + 1) % o - ), m.push(0, 1, 0); - const S = t4(h); - h = x3(h, 1, S), m = x3(m, 1, S), !i && h[0] === 0 && (h.push(o), m.push(m[0])), l.push( - new HM( + (d + 1) % s + ), g.push(0, 1, 0); + const _ = mk(p); + p = S3(p, 1, _), g = S3(g, 1, _), !i && p[0] === 0 && (p.push(s), g.push(g[0])), l.push( + new VM( ".morphTargetInfluences[" + t[d].name + "]", - h, - m + p, + g ).scale(1 / r) ); } @@ -15833,13 +15833,13 @@ class GM { return null; } static CreateClipsFromMorphTargetSequences(e, t, r) { - const i = {}, o = /^([\w-]*?)([\d]+)$/; - for (let d = 0, h = e.length; d < h; d++) { - const m = e[d], S = m.name.match(o); - if (S && S.length > 1) { - const _ = S[1]; - let T = i[_]; - T || (i[_] = T = []), T.push(m); + const i = {}, s = /^([\w-]*?)([\d]+)$/; + for (let d = 0, p = e.length; d < p; d++) { + const g = e[d], _ = g.name.match(s); + if (_ && _.length > 1) { + const w = _[1]; + let T = i[w]; + T || (i[w] = T = []), T.push(g); } } const l = []; @@ -15850,64 +15850,64 @@ class GM { static parseAnimation(e, t) { if (!e) return console.error("THREE.AnimationClip: No animation in JSONLoader data."), null; - const r = function(_, T, C, D, P) { - if (C.length !== 0) { - const U = [], B = []; - dL(C, U, B, D), U.length !== 0 && P.push(new _(T, U, B)); - } - }, i = [], o = e.name || "default", l = e.fps || 30, d = e.blendMode; - let h = e.length || -1; - const m = e.hierarchy || []; - for (let _ = 0; _ < m.length; _++) { - const T = m[_].keys; + const r = function(w, T, R, D, O) { + if (R.length !== 0) { + const U = [], H = []; + fL(R, U, H, D), U.length !== 0 && O.push(new w(T, U, H)); + } + }, i = [], s = e.name || "default", l = e.fps || 30, d = e.blendMode; + let p = e.length || -1; + const g = e.hierarchy || []; + for (let w = 0; w < g.length; w++) { + const T = g[w].keys; if (!(!T || T.length === 0)) if (T[0].morphTargets) { - const C = {}; + const R = {}; let D; for (D = 0; D < T.length; D++) if (T[D].morphTargets) - for (let P = 0; P < T[D].morphTargets.length; P++) - C[T[D].morphTargets[P]] = -1; - for (const P in C) { - const U = [], B = []; - for (let k = 0; k !== T[D].morphTargets.length; ++k) { - const V = T[D]; - U.push(V.time), B.push(V.morphTarget === P ? 1 : 0); + for (let O = 0; O < T[D].morphTargets.length; O++) + R[T[D].morphTargets[O]] = -1; + for (const O in R) { + const U = [], H = []; + for (let I = 0; I !== T[D].morphTargets.length; ++I) { + const G = T[D]; + U.push(G.time), H.push(G.morphTarget === O ? 1 : 0); } - i.push(new HM(".morphTargetInfluence[" + P + "]", U, B)); + i.push(new VM(".morphTargetInfluence[" + O + "]", U, H)); } - h = C.length * l; + p = R.length * l; } else { - const C = ".bones[" + t[_].name + "]"; + const R = ".bones[" + t[w].name + "]"; r( - VM, - C + ".position", + GM, + R + ".position", T, "pos", i ), r( - vw, - C + ".quaternion", + vb, + R + ".quaternion", T, "rot", i ), r( - VM, - C + ".scale", + GM, + R + ".scale", T, "scl", i ); } } - return i.length === 0 ? null : new this(o, h, i, d); + return i.length === 0 ? null : new this(s, p, i, d); } resetDuration() { const e = this.tracks; let t = 0; for (let r = 0, i = e.length; r !== i; ++r) { - const o = this.tracks[r]; - t = Math.max(t, o.times[o.times.length - 1]); + const s = this.tracks[r]; + t = Math.max(t, s.times[s.times.length - 1]); } return this.duration = t, this; } @@ -15937,42 +15937,42 @@ class GM { return this.constructor.toJSON(this); } } -function XW(a) { +function a7(a) { switch (a.toLowerCase()) { case "scalar": case "double": case "float": case "number": case "integer": - return HM; + return VM; case "vector": case "vector2": case "vector3": case "vector4": - return VM; + return GM; case "color": - return pL; + return hL; case "quaternion": - return vw; + return vb; case "bool": case "boolean": - return ZS; + return eS; case "string": - return JS; + return tS; } throw new Error("THREE.KeyframeTrack: Unsupported typeName: " + a); } -function qW(a) { +function s7(a) { if (a.type === void 0) throw new Error("THREE.KeyframeTrack: track type undefined, can not parse"); - const e = XW(a.type); + const e = a7(a.type); if (a.times === void 0) { const t = [], r = []; - dL(a.keys, t, r, "value"), a.times = t, a.values = r; + fL(a.keys, t, r, "value"), a.times = t, a.values = r; } return e.parse !== void 0 ? e.parse(a) : new e(a.name, a.times, a.values, a.interpolation); } -const YS = { +const Z_ = { enabled: !1, files: {}, add: function(a, e) { @@ -15989,47 +15989,47 @@ const YS = { this.files = {}; } }; -class mL { +class pL { constructor(e, t, r) { const i = this; - let o = !1, l = 0, d = 0, h; - const m = []; - this.onStart = void 0, this.onLoad = e, this.onProgress = t, this.onError = r, this.itemStart = function(S) { - d++, o === !1 && i.onStart !== void 0 && i.onStart(S, l, d), o = !0; - }, this.itemEnd = function(S) { - l++, i.onProgress !== void 0 && i.onProgress(S, l, d), l === d && (o = !1, i.onLoad !== void 0 && i.onLoad()); - }, this.itemError = function(S) { - i.onError !== void 0 && i.onError(S); - }, this.resolveURL = function(S) { - return h ? h(S) : S; - }, this.setURLModifier = function(S) { - return h = S, this; - }, this.addHandler = function(S, _) { - return m.push(S, _), this; - }, this.removeHandler = function(S) { - const _ = m.indexOf(S); - return _ !== -1 && m.splice(_, 2), this; - }, this.getHandler = function(S) { - for (let _ = 0, T = m.length; _ < T; _ += 2) { - const C = m[_], D = m[_ + 1]; - if (C.global && (C.lastIndex = 0), C.test(S)) + let s = !1, l = 0, d = 0, p; + const g = []; + this.onStart = void 0, this.onLoad = e, this.onProgress = t, this.onError = r, this.itemStart = function(_) { + d++, s === !1 && i.onStart !== void 0 && i.onStart(_, l, d), s = !0; + }, this.itemEnd = function(_) { + l++, i.onProgress !== void 0 && i.onProgress(_, l, d), l === d && (s = !1, i.onLoad !== void 0 && i.onLoad()); + }, this.itemError = function(_) { + i.onError !== void 0 && i.onError(_); + }, this.resolveURL = function(_) { + return p ? p(_) : _; + }, this.setURLModifier = function(_) { + return p = _, this; + }, this.addHandler = function(_, w) { + return g.push(_, w), this; + }, this.removeHandler = function(_) { + const w = g.indexOf(_); + return w !== -1 && g.splice(w, 2), this; + }, this.getHandler = function(_) { + for (let w = 0, T = g.length; w < T; w += 2) { + const R = g[w], D = g[w + 1]; + if (R.global && (R.lastIndex = 0), R.test(_)) return D; } return null; }; } } -const a4 = /* @__PURE__ */ new mL(); -class Tm { +const xk = /* @__PURE__ */ new pL(); +class Rm { constructor(e) { - this.manager = e !== void 0 ? e : a4, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {}; + this.manager = e !== void 0 ? e : xk, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {}; } load() { } loadAsync(e, t) { const r = this; - return new Promise(function(i, o) { - r.load(e, i, t, o); + return new Promise(function(i, s) { + r.load(e, i, t, s); }); } parse() { @@ -16050,32 +16050,32 @@ class Tm { return this.requestHeader = e, this; } } -const M0 = {}; -class QW extends Error { +const T0 = {}; +class o7 extends Error { constructor(e, t) { super(e), this.response = t; } } -class P0 extends Tm { +class O0 extends Rm { constructor(e) { super(e); } load(e, t, r, i) { e === void 0 && (e = ""), this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e); - const o = YS.get(e); - if (o !== void 0) + const s = Z_.get(e); + if (s !== void 0) return this.manager.itemStart(e), setTimeout(() => { - t && t(o), this.manager.itemEnd(e); - }, 0), o; - if (M0[e] !== void 0) { - M0[e].push({ + t && t(s), this.manager.itemEnd(e); + }, 0), s; + if (T0[e] !== void 0) { + T0[e].push({ onLoad: t, onProgress: r, onError: i }); return; } - M0[e] = [], M0[e].push({ + T0[e] = [], T0[e].push({ onLoad: t, onProgress: r, onError: i @@ -16083,28 +16083,28 @@ class P0 extends Tm { const l = new Request(e, { headers: new Headers(this.requestHeader), credentials: this.withCredentials ? "include" : "same-origin" - }), d = this.mimeType, h = this.responseType; - fetch(l).then((m) => { - if (m.status === 200 || m.status === 0) { - if (m.status === 0 && console.warn("THREE.FileLoader: HTTP Status 0 received."), typeof ReadableStream > "u" || m.body === void 0 || m.body.getReader === void 0) - return m; - const S = M0[e], _ = m.body.getReader(), T = m.headers.get("Content-Length"), C = T ? parseInt(T) : 0, D = C !== 0; - let P = 0; + }), d = this.mimeType, p = this.responseType; + fetch(l).then((g) => { + if (g.status === 200 || g.status === 0) { + if (g.status === 0 && console.warn("THREE.FileLoader: HTTP Status 0 received."), typeof ReadableStream > "u" || g.body === void 0 || g.body.getReader === void 0) + return g; + const _ = T0[e], w = g.body.getReader(), T = g.headers.get("Content-Length"), R = T ? parseInt(T) : 0, D = R !== 0; + let O = 0; const U = new ReadableStream({ - start(B) { - k(); - function k() { - _.read().then(({ done: V, value: I }) => { - if (V) - B.close(); + start(H) { + I(); + function I() { + w.read().then(({ done: G, value: B }) => { + if (G) + H.close(); else { - P += I.byteLength; - const X = new ProgressEvent("progress", { lengthComputable: D, loaded: P, total: C }); - for (let J = 0, $ = S.length; J < $; J++) { - const W = S[J]; - W.onProgress && W.onProgress(X); + O += B.byteLength; + const Q = new ProgressEvent("progress", { lengthComputable: D, loaded: O, total: R }); + for (let K = 0, te = _.length; K < te; K++) { + const Y = _[K]; + Y.onProgress && Y.onProgress(Q); } - B.enqueue(I), k(); + H.enqueue(B), I(); } }); } @@ -16112,41 +16112,41 @@ class P0 extends Tm { }); return new Response(U); } else - throw new QW(`fetch for "${m.url}" responded with ${m.status}: ${m.statusText}`, m); - }).then((m) => { - switch (h) { + throw new o7(`fetch for "${g.url}" responded with ${g.status}: ${g.statusText}`, g); + }).then((g) => { + switch (p) { case "arraybuffer": - return m.arrayBuffer(); + return g.arrayBuffer(); case "blob": - return m.blob(); + return g.blob(); case "document": - return m.text().then((S) => new DOMParser().parseFromString(S, d)); + return g.text().then((_) => new DOMParser().parseFromString(_, d)); case "json": - return m.json(); + return g.json(); default: if (d === void 0) - return m.text(); + return g.text(); { - const _ = /charset="?([^;"\s]*)"?/i.exec(d), T = _ && _[1] ? _[1].toLowerCase() : void 0, C = new TextDecoder(T); - return m.arrayBuffer().then((D) => C.decode(D)); - } - } - }).then((m) => { - YS.add(e, m); - const S = M0[e]; - delete M0[e]; - for (let _ = 0, T = S.length; _ < T; _++) { - const C = S[_]; - C.onLoad && C.onLoad(m); - } - }).catch((m) => { - const S = M0[e]; - if (S === void 0) - throw this.manager.itemError(e), m; - delete M0[e]; - for (let _ = 0, T = S.length; _ < T; _++) { - const C = S[_]; - C.onError && C.onError(m); + const w = /charset="?([^;"\s]*)"?/i.exec(d), T = w && w[1] ? w[1].toLowerCase() : void 0, R = new TextDecoder(T); + return g.arrayBuffer().then((D) => R.decode(D)); + } + } + }).then((g) => { + Z_.add(e, g); + const _ = T0[e]; + delete T0[e]; + for (let w = 0, T = _.length; w < T; w++) { + const R = _[w]; + R.onLoad && R.onLoad(g); + } + }).catch((g) => { + const _ = T0[e]; + if (_ === void 0) + throw this.manager.itemError(e), g; + delete T0[e]; + for (let w = 0, T = _.length; w < T; w++) { + const R = _[w]; + R.onError && R.onError(g); } this.manager.itemError(e); }).finally(() => { @@ -16160,60 +16160,60 @@ class P0 extends Tm { return this.mimeType = e, this; } } -class ZW extends Tm { +class l7 extends Rm { constructor(e) { super(e); } load(e, t, r, i) { - const o = this, l = new P0(this.manager); + const s = this, l = new O0(this.manager); l.setPath(this.path), l.setRequestHeader(this.requestHeader), l.setWithCredentials(this.withCredentials), l.load(e, function(d) { try { - t(o.parse(JSON.parse(d))); - } catch (h) { - i ? i(h) : console.error(h), o.manager.itemError(e); + t(s.parse(JSON.parse(d))); + } catch (p) { + i ? i(p) : console.error(p), s.manager.itemError(e); } }, r, i); } parse(e) { const t = []; for (let r = 0; r < e.length; r++) { - const i = GM.parse(e[r]); + const i = WM.parse(e[r]); t.push(i); } return t; } } -class JW extends Tm { +class u7 extends Rm { constructor(e) { super(e); } load(e, t, r, i) { - const o = this, l = [], d = new FF(), h = new P0(this.manager); - h.setPath(this.path), h.setResponseType("arraybuffer"), h.setRequestHeader(this.requestHeader), h.setWithCredentials(o.withCredentials); - let m = 0; - function S(_) { - h.load(e[_], function(T) { - const C = o.parse(T, !0); - l[_] = { - width: C.width, - height: C.height, - format: C.format, - mipmaps: C.mipmaps - }, m += 1, m === 6 && (C.mipmapCount === 1 && (d.minFilter = Oo), d.image = l, d.format = C.format, d.needsUpdate = !0, t && t(d)); + const s = this, l = [], d = new JF(), p = new O0(this.manager); + p.setPath(this.path), p.setResponseType("arraybuffer"), p.setRequestHeader(this.requestHeader), p.setWithCredentials(s.withCredentials); + let g = 0; + function _(w) { + p.load(e[w], function(T) { + const R = s.parse(T, !0); + l[w] = { + width: R.width, + height: R.height, + format: R.format, + mipmaps: R.mipmaps + }, g += 1, g === 6 && (R.mipmapCount === 1 && (d.minFilter = Oo), d.image = l, d.format = R.format, d.needsUpdate = !0, t && t(d)); }, r, i); } if (Array.isArray(e)) - for (let _ = 0, T = e.length; _ < T; ++_) - S(_); + for (let w = 0, T = e.length; w < T; ++w) + _(w); else - h.load(e, function(_) { - const T = o.parse(_, !0); + p.load(e, function(w) { + const T = s.parse(w, !0); if (T.isCubemap) { - const C = T.mipmaps.length / T.mipmapCount; - for (let D = 0; D < C; D++) { + const R = T.mipmaps.length / T.mipmapCount; + for (let D = 0; D < R; D++) { l[D] = { mipmaps: [] }; - for (let P = 0; P < T.mipmapCount; P++) - l[D].mipmaps.push(T.mipmaps[D * T.mipmapCount + P]), l[D].format = T.format, l[D].width = T.width, l[D].height = T.height; + for (let O = 0; O < T.mipmapCount; O++) + l[D].mipmaps.push(T.mipmaps[D * T.mipmapCount + O]), l[D].format = T.format, l[D].width = T.width, l[D].height = T.height; } d.image = l; } else @@ -16223,74 +16223,74 @@ class JW extends Tm { return d; } } -class WM extends Tm { +class jM extends Rm { constructor(e) { super(e); } load(e, t, r, i) { this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e); - const o = this, l = YS.get(e); + const s = this, l = Z_.get(e); if (l !== void 0) - return o.manager.itemStart(e), setTimeout(function() { - t && t(l), o.manager.itemEnd(e); + return s.manager.itemStart(e), setTimeout(function() { + t && t(l), s.manager.itemEnd(e); }, 0), l; - const d = UM("img"); - function h() { - S(), YS.add(e, this), t && t(this), o.manager.itemEnd(e); + const d = zM("img"); + function p() { + _(), Z_.add(e, this), t && t(this), s.manager.itemEnd(e); } - function m(_) { - S(), i && i(_), o.manager.itemError(e), o.manager.itemEnd(e); + function g(w) { + _(), i && i(w), s.manager.itemError(e), s.manager.itemEnd(e); } - function S() { - d.removeEventListener("load", h, !1), d.removeEventListener("error", m, !1); + function _() { + d.removeEventListener("load", p, !1), d.removeEventListener("error", g, !1); } - return d.addEventListener("load", h, !1), d.addEventListener("error", m, !1), e.slice(0, 5) !== "data:" && this.crossOrigin !== void 0 && (d.crossOrigin = this.crossOrigin), o.manager.itemStart(e), d.src = e, d; + return d.addEventListener("load", p, !1), d.addEventListener("error", g, !1), e.slice(0, 5) !== "data:" && this.crossOrigin !== void 0 && (d.crossOrigin = this.crossOrigin), s.manager.itemStart(e), d.src = e, d; } } -class KW extends Tm { +class c7 extends Rm { constructor(e) { super(e); } load(e, t, r, i) { - const o = new eT(), l = new WM(this.manager); + const s = new eT(), l = new jM(this.manager); l.setCrossOrigin(this.crossOrigin), l.setPath(this.path); let d = 0; - function h(m) { - l.load(e[m], function(S) { - o.images[m] = S, d++, d === 6 && (o.needsUpdate = !0, t && t(o)); + function p(g) { + l.load(e[g], function(_) { + s.images[g] = _, d++, d === 6 && (s.needsUpdate = !0, t && t(s)); }, void 0, i); } - for (let m = 0; m < e.length; ++m) - h(m); - return o; + for (let g = 0; g < e.length; ++g) + p(g); + return s; } } -class $W extends Tm { +class f7 extends Rm { constructor(e) { super(e); } load(e, t, r, i) { - const o = this, l = new Yb(), d = new P0(this.manager); - return d.setResponseType("arraybuffer"), d.setRequestHeader(this.requestHeader), d.setPath(this.path), d.setWithCredentials(o.withCredentials), d.load(e, function(h) { - const m = o.parse(h); - !m || (m.image !== void 0 ? l.image = m.image : m.data !== void 0 && (l.image.width = m.width, l.image.height = m.height, l.image.data = m.data), l.wrapS = m.wrapS !== void 0 ? m.wrapS : Wh, l.wrapT = m.wrapT !== void 0 ? m.wrapT : Wh, l.magFilter = m.magFilter !== void 0 ? m.magFilter : Oo, l.minFilter = m.minFilter !== void 0 ? m.minFilter : Oo, l.anisotropy = m.anisotropy !== void 0 ? m.anisotropy : 1, m.encoding !== void 0 && (l.encoding = m.encoding), m.flipY !== void 0 && (l.flipY = m.flipY), m.format !== void 0 && (l.format = m.format), m.type !== void 0 && (l.type = m.type), m.mipmaps !== void 0 && (l.mipmaps = m.mipmaps, l.minFilter = s1), m.mipmapCount === 1 && (l.minFilter = Oo), m.generateMipmaps !== void 0 && (l.generateMipmaps = m.generateMipmaps), l.needsUpdate = !0, t && t(l, m)); + const s = this, l = new qw(), d = new O0(this.manager); + return d.setResponseType("arraybuffer"), d.setRequestHeader(this.requestHeader), d.setPath(this.path), d.setWithCredentials(s.withCredentials), d.load(e, function(p) { + const g = s.parse(p); + !g || (g.image !== void 0 ? l.image = g.image : g.data !== void 0 && (l.image.width = g.width, l.image.height = g.height, l.image.data = g.data), l.wrapS = g.wrapS !== void 0 ? g.wrapS : jh, l.wrapT = g.wrapT !== void 0 ? g.wrapT : jh, l.magFilter = g.magFilter !== void 0 ? g.magFilter : Oo, l.minFilter = g.minFilter !== void 0 ? g.minFilter : Oo, l.anisotropy = g.anisotropy !== void 0 ? g.anisotropy : 1, g.encoding !== void 0 && (l.encoding = g.encoding), g.flipY !== void 0 && (l.flipY = g.flipY), g.format !== void 0 && (l.format = g.format), g.type !== void 0 && (l.type = g.type), g.mipmaps !== void 0 && (l.mipmaps = g.mipmaps, l.minFilter = s1), g.mipmapCount === 1 && (l.minFilter = Oo), g.generateMipmaps !== void 0 && (l.generateMipmaps = g.generateMipmaps), l.needsUpdate = !0, t && t(l, g)); }, r, i), l; } } -class e7 extends Tm { +class d7 extends Rm { constructor(e) { super(e); } load(e, t, r, i) { - const o = new iu(), l = new WM(this.manager); + const s = new su(), l = new jM(this.manager); return l.setCrossOrigin(this.crossOrigin), l.setPath(this.path), l.load(e, function(d) { - o.image = d, o.needsUpdate = !0, t !== void 0 && t(o); - }, r, i), o; + s.image = d, s.needsUpdate = !0, t !== void 0 && t(s); + }, r, i), s; } } class l1 extends Xa { constructor(e, t = 1) { - super(), this.isLight = !0, this.type = "Light", this.color = new Pn(e), this.intensity = t; + super(), this.isLight = !0, this.type = "Light", this.color = new Un(e), this.intensity = t; } dispose() { } @@ -16302,19 +16302,19 @@ class l1 extends Xa { return t.object.color = this.color.getHex(), t.object.intensity = this.intensity, this.groundColor !== void 0 && (t.object.groundColor = this.groundColor.getHex()), this.distance !== void 0 && (t.object.distance = this.distance), this.angle !== void 0 && (t.object.angle = this.angle), this.decay !== void 0 && (t.object.decay = this.decay), this.penumbra !== void 0 && (t.object.penumbra = this.penumbra), this.shadow !== void 0 && (t.object.shadow = this.shadow.toJSON()), t; } } -class s4 extends l1 { +class _k extends l1 { constructor(e, t, r) { - super(e, r), this.isHemisphereLight = !0, this.type = "HemisphereLight", this.position.copy(Xa.DefaultUp), this.updateMatrix(), this.groundColor = new Pn(t); + super(e, r), this.isHemisphereLight = !0, this.type = "HemisphereLight", this.position.copy(Xa.DefaultUp), this.updateMatrix(), this.groundColor = new Un(t); } copy(e, t) { return super.copy(e, t), this.groundColor.copy(e.groundColor), this; } } -const LU = /* @__PURE__ */ new si(), PU = /* @__PURE__ */ new ve(), OU = /* @__PURE__ */ new ve(); -class vL { +const UU = /* @__PURE__ */ new Kr(), zU = /* @__PURE__ */ new ge(), NU = /* @__PURE__ */ new ge(); +class mL { constructor(e) { - this.camera = e, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new Ft(512, 512), this.map = null, this.mapPass = null, this.matrix = new si(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new IC(), this._frameExtents = new Ft(1, 1), this._viewportCount = 1, this._viewports = [ - new la(0, 0, 1, 1) + this.camera = e, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new zt(512, 512), this.map = null, this.mapPass = null, this.matrix = new Kr(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new BC(), this._frameExtents = new zt(1, 1), this._viewportCount = 1, this._viewports = [ + new ra(0, 0, 1, 1) ]; } getViewportCount() { @@ -16325,7 +16325,7 @@ class vL { } updateMatrices(e) { const t = this.camera, r = this.matrix; - PU.setFromMatrixPosition(e.matrixWorld), t.position.copy(PU), OU.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(OU), t.updateMatrixWorld(), LU.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), this._frustum.setFromProjectionMatrix(LU), r.set( + zU.setFromMatrixPosition(e.matrixWorld), t.position.copy(zU), NU.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(NU), t.updateMatrixWorld(), UU.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), this._frustum.setFromProjectionMatrix(UU), r.set( 0.5, 0, 0, @@ -16364,21 +16364,21 @@ class vL { return this.bias !== 0 && (e.bias = this.bias), this.normalBias !== 0 && (e.normalBias = this.normalBias), this.radius !== 1 && (e.radius = this.radius), (this.mapSize.x !== 512 || this.mapSize.y !== 512) && (e.mapSize = this.mapSize.toArray()), e.camera = this.camera.toJSON(!1).object, delete e.camera.matrix, e; } } -class t7 extends vL { +class h7 extends mL { constructor() { super(new ho(50, 1, 0.5, 500)), this.isSpotLightShadow = !0, this.focus = 1; } updateMatrices(e) { - const t = this.camera, r = OM * 2 * e.angle * this.focus, i = this.mapSize.width / this.mapSize.height, o = e.distance || t.far; - (r !== t.fov || i !== t.aspect || o !== t.far) && (t.fov = r, t.aspect = i, t.far = o, t.updateProjectionMatrix()), super.updateMatrices(e); + const t = this.camera, r = UM * 2 * e.angle * this.focus, i = this.mapSize.width / this.mapSize.height, s = e.distance || t.far; + (r !== t.fov || i !== t.aspect || s !== t.far) && (t.fov = r, t.aspect = i, t.far = s, t.updateProjectionMatrix()), super.updateMatrices(e); } copy(e) { return super.copy(e), this.focus = e.focus, this; } } -class o4 extends l1 { - constructor(e, t, r = 0, i = Math.PI / 3, o = 0, l = 1) { - super(e, t), this.isSpotLight = !0, this.type = "SpotLight", this.position.copy(Xa.DefaultUp), this.updateMatrix(), this.target = new Xa(), this.distance = r, this.angle = i, this.penumbra = o, this.decay = l, this.shadow = new t7(); +class Sk extends l1 { + constructor(e, t, r = 0, i = Math.PI / 3, s = 0, l = 1) { + super(e, t), this.isSpotLight = !0, this.type = "SpotLight", this.position.copy(Xa.DefaultUp), this.updateMatrix(), this.target = new Xa(), this.distance = r, this.angle = i, this.penumbra = s, this.decay = l, this.shadow = new h7(); } get power() { return this.intensity * Math.PI; @@ -16393,40 +16393,40 @@ class o4 extends l1 { return super.copy(e, t), this.distance = e.distance, this.angle = e.angle, this.penumbra = e.penumbra, this.decay = e.decay, this.target = e.target.clone(), this.shadow = e.shadow.clone(), this; } } -const UU = /* @__PURE__ */ new si(), iM = /* @__PURE__ */ new ve(), tD = /* @__PURE__ */ new ve(); -class n7 extends vL { +const FU = /* @__PURE__ */ new Kr(), iM = /* @__PURE__ */ new ge(), nD = /* @__PURE__ */ new ge(); +class p7 extends mL { constructor() { - super(new ho(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new Ft(4, 2), this._viewportCount = 6, this._viewports = [ - new la(2, 1, 1, 1), - new la(0, 1, 1, 1), - new la(3, 1, 1, 1), - new la(1, 1, 1, 1), - new la(3, 0, 1, 1), - new la(1, 0, 1, 1) + super(new ho(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new zt(4, 2), this._viewportCount = 6, this._viewports = [ + new ra(2, 1, 1, 1), + new ra(0, 1, 1, 1), + new ra(3, 1, 1, 1), + new ra(1, 1, 1, 1), + new ra(3, 0, 1, 1), + new ra(1, 0, 1, 1) ], this._cubeDirections = [ - new ve(1, 0, 0), - new ve(-1, 0, 0), - new ve(0, 0, 1), - new ve(0, 0, -1), - new ve(0, 1, 0), - new ve(0, -1, 0) + new ge(1, 0, 0), + new ge(-1, 0, 0), + new ge(0, 0, 1), + new ge(0, 0, -1), + new ge(0, 1, 0), + new ge(0, -1, 0) ], this._cubeUps = [ - new ve(0, 1, 0), - new ve(0, 1, 0), - new ve(0, 1, 0), - new ve(0, 1, 0), - new ve(0, 0, 1), - new ve(0, 0, -1) + new ge(0, 1, 0), + new ge(0, 1, 0), + new ge(0, 1, 0), + new ge(0, 1, 0), + new ge(0, 0, 1), + new ge(0, 0, -1) ]; } updateMatrices(e, t = 0) { - const r = this.camera, i = this.matrix, o = e.distance || r.far; - o !== r.far && (r.far = o, r.updateProjectionMatrix()), iM.setFromMatrixPosition(e.matrixWorld), r.position.copy(iM), tD.copy(r.position), tD.add(this._cubeDirections[t]), r.up.copy(this._cubeUps[t]), r.lookAt(tD), r.updateMatrixWorld(), i.makeTranslation(-iM.x, -iM.y, -iM.z), UU.multiplyMatrices(r.projectionMatrix, r.matrixWorldInverse), this._frustum.setFromProjectionMatrix(UU); + const r = this.camera, i = this.matrix, s = e.distance || r.far; + s !== r.far && (r.far = s, r.updateProjectionMatrix()), iM.setFromMatrixPosition(e.matrixWorld), r.position.copy(iM), nD.copy(r.position), nD.add(this._cubeDirections[t]), r.up.copy(this._cubeUps[t]), r.lookAt(nD), r.updateMatrixWorld(), i.makeTranslation(-iM.x, -iM.y, -iM.z), FU.multiplyMatrices(r.projectionMatrix, r.matrixWorldInverse), this._frustum.setFromProjectionMatrix(FU); } } -class l4 extends l1 { +class wk extends l1 { constructor(e, t, r = 0, i = 1) { - super(e, t), this.isPointLight = !0, this.type = "PointLight", this.distance = r, this.decay = i, this.shadow = new n7(); + super(e, t), this.isPointLight = !0, this.type = "PointLight", this.distance = r, this.decay = i, this.shadow = new p7(); } get power() { return this.intensity * 4 * Math.PI; @@ -16441,14 +16441,14 @@ class l4 extends l1 { return super.copy(e, t), this.distance = e.distance, this.decay = e.decay, this.shadow = e.shadow.clone(), this; } } -class r7 extends vL { +class m7 extends mL { constructor() { - super(new cy(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0; + super(new dy(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0; } } -class u4 extends l1 { +class bk extends l1 { constructor(e, t) { - super(e, t), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(Xa.DefaultUp), this.updateMatrix(), this.target = new Xa(), this.shadow = new r7(); + super(e, t), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(Xa.DefaultUp), this.updateMatrix(), this.target = new Xa(), this.shadow = new m7(); } dispose() { this.shadow.dispose(); @@ -16457,12 +16457,12 @@ class u4 extends l1 { return super.copy(e), this.target = e.target.clone(), this.shadow = e.shadow.clone(), this; } } -class c4 extends l1 { +class Ek extends l1 { constructor(e, t) { super(e, t), this.isAmbientLight = !0, this.type = "AmbientLight"; } } -class f4 extends l1 { +class Mk extends l1 { constructor(e, t, r = 10, i = 10) { super(e, t), this.isRectAreaLight = !0, this.type = "RectAreaLight", this.width = r, this.height = i; } @@ -16480,11 +16480,11 @@ class f4 extends l1 { return t.object.width = this.width, t.object.height = this.height, t; } } -class d4 { +class Tk { constructor() { this.isSphericalHarmonics3 = !0, this.coefficients = []; for (let e = 0; e < 9; e++) - this.coefficients.push(new ve()); + this.coefficients.push(new ge()); } set(e) { for (let t = 0; t < 9; t++) @@ -16497,12 +16497,12 @@ class d4 { return this; } getAt(e, t) { - const r = e.x, i = e.y, o = e.z, l = this.coefficients; - return t.copy(l[0]).multiplyScalar(0.282095), t.addScaledVector(l[1], 0.488603 * i), t.addScaledVector(l[2], 0.488603 * o), t.addScaledVector(l[3], 0.488603 * r), t.addScaledVector(l[4], 1.092548 * (r * i)), t.addScaledVector(l[5], 1.092548 * (i * o)), t.addScaledVector(l[6], 0.315392 * (3 * o * o - 1)), t.addScaledVector(l[7], 1.092548 * (r * o)), t.addScaledVector(l[8], 0.546274 * (r * r - i * i)), t; + const r = e.x, i = e.y, s = e.z, l = this.coefficients; + return t.copy(l[0]).multiplyScalar(0.282095), t.addScaledVector(l[1], 0.488603 * i), t.addScaledVector(l[2], 0.488603 * s), t.addScaledVector(l[3], 0.488603 * r), t.addScaledVector(l[4], 1.092548 * (r * i)), t.addScaledVector(l[5], 1.092548 * (i * s)), t.addScaledVector(l[6], 0.315392 * (3 * s * s - 1)), t.addScaledVector(l[7], 1.092548 * (r * s)), t.addScaledVector(l[8], 0.546274 * (r * r - i * i)), t; } getIrradianceAt(e, t) { - const r = e.x, i = e.y, o = e.z, l = this.coefficients; - return t.copy(l[0]).multiplyScalar(0.886227), t.addScaledVector(l[1], 2 * 0.511664 * i), t.addScaledVector(l[2], 2 * 0.511664 * o), t.addScaledVector(l[3], 2 * 0.511664 * r), t.addScaledVector(l[4], 2 * 0.429043 * r * i), t.addScaledVector(l[5], 2 * 0.429043 * i * o), t.addScaledVector(l[6], 0.743125 * o * o - 0.247708), t.addScaledVector(l[7], 2 * 0.429043 * r * o), t.addScaledVector(l[8], 0.429043 * (r * r - i * i)), t; + const r = e.x, i = e.y, s = e.z, l = this.coefficients; + return t.copy(l[0]).multiplyScalar(0.886227), t.addScaledVector(l[1], 2 * 0.511664 * i), t.addScaledVector(l[2], 2 * 0.511664 * s), t.addScaledVector(l[3], 2 * 0.511664 * r), t.addScaledVector(l[4], 2 * 0.429043 * r * i), t.addScaledVector(l[5], 2 * 0.429043 * i * s), t.addScaledVector(l[6], 0.743125 * s * s - 0.247708), t.addScaledVector(l[7], 2 * 0.429043 * r * s), t.addScaledVector(l[8], 0.429043 * (r * r - i * i)), t; } add(e) { for (let t = 0; t < 9; t++) @@ -16549,12 +16549,12 @@ class d4 { return e; } static getBasisAt(e, t) { - const r = e.x, i = e.y, o = e.z; - t[0] = 0.282095, t[1] = 0.488603 * i, t[2] = 0.488603 * o, t[3] = 0.488603 * r, t[4] = 1.092548 * r * i, t[5] = 1.092548 * i * o, t[6] = 0.315392 * (3 * o * o - 1), t[7] = 1.092548 * r * o, t[8] = 0.546274 * (r * r - i * i); + const r = e.x, i = e.y, s = e.z; + t[0] = 0.282095, t[1] = 0.488603 * i, t[2] = 0.488603 * s, t[3] = 0.488603 * r, t[4] = 1.092548 * r * i, t[5] = 1.092548 * i * s, t[6] = 0.315392 * (3 * s * s - 1), t[7] = 1.092548 * r * s, t[8] = 0.546274 * (r * r - i * i); } } -class QC extends l1 { - constructor(e = new d4(), t = 1) { +class JC extends l1 { + constructor(e = new Tk(), t = 1) { super(void 0, t), this.isLightProbe = !0, this.sh = e; } copy(e) { @@ -16568,92 +16568,92 @@ class QC extends l1 { return t.object.sh = this.sh.toArray(), t; } } -class ZC extends Tm { +class KC extends Rm { constructor(e) { super(e), this.textures = {}; } load(e, t, r, i) { - const o = this, l = new P0(o.manager); - l.setPath(o.path), l.setRequestHeader(o.requestHeader), l.setWithCredentials(o.withCredentials), l.load(e, function(d) { + const s = this, l = new O0(s.manager); + l.setPath(s.path), l.setRequestHeader(s.requestHeader), l.setWithCredentials(s.withCredentials), l.load(e, function(d) { try { - t(o.parse(JSON.parse(d))); - } catch (h) { - i ? i(h) : console.error(h), o.manager.itemError(e); + t(s.parse(JSON.parse(d))); + } catch (p) { + i ? i(p) : console.error(p), s.manager.itemError(e); } }, r, i); } parse(e) { const t = this.textures; - function r(o) { - return t[o] === void 0 && console.warn("THREE.MaterialLoader: Undefined texture", o), t[o]; - } - const i = ZC.createMaterialFromType(e.type); - if (e.uuid !== void 0 && (i.uuid = e.uuid), e.name !== void 0 && (i.name = e.name), e.color !== void 0 && i.color !== void 0 && i.color.setHex(e.color), e.roughness !== void 0 && (i.roughness = e.roughness), e.metalness !== void 0 && (i.metalness = e.metalness), e.sheen !== void 0 && (i.sheen = e.sheen), e.sheenColor !== void 0 && (i.sheenColor = new Pn().setHex(e.sheenColor)), e.sheenRoughness !== void 0 && (i.sheenRoughness = e.sheenRoughness), e.emissive !== void 0 && i.emissive !== void 0 && i.emissive.setHex(e.emissive), e.specular !== void 0 && i.specular !== void 0 && i.specular.setHex(e.specular), e.specularIntensity !== void 0 && (i.specularIntensity = e.specularIntensity), e.specularColor !== void 0 && i.specularColor !== void 0 && i.specularColor.setHex(e.specularColor), e.shininess !== void 0 && (i.shininess = e.shininess), e.clearcoat !== void 0 && (i.clearcoat = e.clearcoat), e.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = e.clearcoatRoughness), e.iridescence !== void 0 && (i.iridescence = e.iridescence), e.iridescenceIOR !== void 0 && (i.iridescenceIOR = e.iridescenceIOR), e.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = e.iridescenceThicknessRange), e.transmission !== void 0 && (i.transmission = e.transmission), e.thickness !== void 0 && (i.thickness = e.thickness), e.attenuationDistance !== void 0 && (i.attenuationDistance = e.attenuationDistance), e.attenuationColor !== void 0 && i.attenuationColor !== void 0 && i.attenuationColor.setHex(e.attenuationColor), e.fog !== void 0 && (i.fog = e.fog), e.flatShading !== void 0 && (i.flatShading = e.flatShading), e.blending !== void 0 && (i.blending = e.blending), e.combine !== void 0 && (i.combine = e.combine), e.side !== void 0 && (i.side = e.side), e.shadowSide !== void 0 && (i.shadowSide = e.shadowSide), e.opacity !== void 0 && (i.opacity = e.opacity), e.transparent !== void 0 && (i.transparent = e.transparent), e.alphaTest !== void 0 && (i.alphaTest = e.alphaTest), e.depthTest !== void 0 && (i.depthTest = e.depthTest), e.depthWrite !== void 0 && (i.depthWrite = e.depthWrite), e.colorWrite !== void 0 && (i.colorWrite = e.colorWrite), e.stencilWrite !== void 0 && (i.stencilWrite = e.stencilWrite), e.stencilWriteMask !== void 0 && (i.stencilWriteMask = e.stencilWriteMask), e.stencilFunc !== void 0 && (i.stencilFunc = e.stencilFunc), e.stencilRef !== void 0 && (i.stencilRef = e.stencilRef), e.stencilFuncMask !== void 0 && (i.stencilFuncMask = e.stencilFuncMask), e.stencilFail !== void 0 && (i.stencilFail = e.stencilFail), e.stencilZFail !== void 0 && (i.stencilZFail = e.stencilZFail), e.stencilZPass !== void 0 && (i.stencilZPass = e.stencilZPass), e.wireframe !== void 0 && (i.wireframe = e.wireframe), e.wireframeLinewidth !== void 0 && (i.wireframeLinewidth = e.wireframeLinewidth), e.wireframeLinecap !== void 0 && (i.wireframeLinecap = e.wireframeLinecap), e.wireframeLinejoin !== void 0 && (i.wireframeLinejoin = e.wireframeLinejoin), e.rotation !== void 0 && (i.rotation = e.rotation), e.linewidth !== 1 && (i.linewidth = e.linewidth), e.dashSize !== void 0 && (i.dashSize = e.dashSize), e.gapSize !== void 0 && (i.gapSize = e.gapSize), e.scale !== void 0 && (i.scale = e.scale), e.polygonOffset !== void 0 && (i.polygonOffset = e.polygonOffset), e.polygonOffsetFactor !== void 0 && (i.polygonOffsetFactor = e.polygonOffsetFactor), e.polygonOffsetUnits !== void 0 && (i.polygonOffsetUnits = e.polygonOffsetUnits), e.dithering !== void 0 && (i.dithering = e.dithering), e.alphaToCoverage !== void 0 && (i.alphaToCoverage = e.alphaToCoverage), e.premultipliedAlpha !== void 0 && (i.premultipliedAlpha = e.premultipliedAlpha), e.visible !== void 0 && (i.visible = e.visible), e.toneMapped !== void 0 && (i.toneMapped = e.toneMapped), e.userData !== void 0 && (i.userData = e.userData), e.vertexColors !== void 0 && (typeof e.vertexColors == "number" ? i.vertexColors = e.vertexColors > 0 : i.vertexColors = e.vertexColors), e.uniforms !== void 0) - for (const o in e.uniforms) { - const l = e.uniforms[o]; - switch (i.uniforms[o] = {}, l.type) { + function r(s) { + return t[s] === void 0 && console.warn("THREE.MaterialLoader: Undefined texture", s), t[s]; + } + const i = KC.createMaterialFromType(e.type); + if (e.uuid !== void 0 && (i.uuid = e.uuid), e.name !== void 0 && (i.name = e.name), e.color !== void 0 && i.color !== void 0 && i.color.setHex(e.color), e.roughness !== void 0 && (i.roughness = e.roughness), e.metalness !== void 0 && (i.metalness = e.metalness), e.sheen !== void 0 && (i.sheen = e.sheen), e.sheenColor !== void 0 && (i.sheenColor = new Un().setHex(e.sheenColor)), e.sheenRoughness !== void 0 && (i.sheenRoughness = e.sheenRoughness), e.emissive !== void 0 && i.emissive !== void 0 && i.emissive.setHex(e.emissive), e.specular !== void 0 && i.specular !== void 0 && i.specular.setHex(e.specular), e.specularIntensity !== void 0 && (i.specularIntensity = e.specularIntensity), e.specularColor !== void 0 && i.specularColor !== void 0 && i.specularColor.setHex(e.specularColor), e.shininess !== void 0 && (i.shininess = e.shininess), e.clearcoat !== void 0 && (i.clearcoat = e.clearcoat), e.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = e.clearcoatRoughness), e.iridescence !== void 0 && (i.iridescence = e.iridescence), e.iridescenceIOR !== void 0 && (i.iridescenceIOR = e.iridescenceIOR), e.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = e.iridescenceThicknessRange), e.transmission !== void 0 && (i.transmission = e.transmission), e.thickness !== void 0 && (i.thickness = e.thickness), e.attenuationDistance !== void 0 && (i.attenuationDistance = e.attenuationDistance), e.attenuationColor !== void 0 && i.attenuationColor !== void 0 && i.attenuationColor.setHex(e.attenuationColor), e.fog !== void 0 && (i.fog = e.fog), e.flatShading !== void 0 && (i.flatShading = e.flatShading), e.blending !== void 0 && (i.blending = e.blending), e.combine !== void 0 && (i.combine = e.combine), e.side !== void 0 && (i.side = e.side), e.shadowSide !== void 0 && (i.shadowSide = e.shadowSide), e.opacity !== void 0 && (i.opacity = e.opacity), e.transparent !== void 0 && (i.transparent = e.transparent), e.alphaTest !== void 0 && (i.alphaTest = e.alphaTest), e.depthTest !== void 0 && (i.depthTest = e.depthTest), e.depthWrite !== void 0 && (i.depthWrite = e.depthWrite), e.colorWrite !== void 0 && (i.colorWrite = e.colorWrite), e.stencilWrite !== void 0 && (i.stencilWrite = e.stencilWrite), e.stencilWriteMask !== void 0 && (i.stencilWriteMask = e.stencilWriteMask), e.stencilFunc !== void 0 && (i.stencilFunc = e.stencilFunc), e.stencilRef !== void 0 && (i.stencilRef = e.stencilRef), e.stencilFuncMask !== void 0 && (i.stencilFuncMask = e.stencilFuncMask), e.stencilFail !== void 0 && (i.stencilFail = e.stencilFail), e.stencilZFail !== void 0 && (i.stencilZFail = e.stencilZFail), e.stencilZPass !== void 0 && (i.stencilZPass = e.stencilZPass), e.wireframe !== void 0 && (i.wireframe = e.wireframe), e.wireframeLinewidth !== void 0 && (i.wireframeLinewidth = e.wireframeLinewidth), e.wireframeLinecap !== void 0 && (i.wireframeLinecap = e.wireframeLinecap), e.wireframeLinejoin !== void 0 && (i.wireframeLinejoin = e.wireframeLinejoin), e.rotation !== void 0 && (i.rotation = e.rotation), e.linewidth !== 1 && (i.linewidth = e.linewidth), e.dashSize !== void 0 && (i.dashSize = e.dashSize), e.gapSize !== void 0 && (i.gapSize = e.gapSize), e.scale !== void 0 && (i.scale = e.scale), e.polygonOffset !== void 0 && (i.polygonOffset = e.polygonOffset), e.polygonOffsetFactor !== void 0 && (i.polygonOffsetFactor = e.polygonOffsetFactor), e.polygonOffsetUnits !== void 0 && (i.polygonOffsetUnits = e.polygonOffsetUnits), e.dithering !== void 0 && (i.dithering = e.dithering), e.alphaToCoverage !== void 0 && (i.alphaToCoverage = e.alphaToCoverage), e.premultipliedAlpha !== void 0 && (i.premultipliedAlpha = e.premultipliedAlpha), e.visible !== void 0 && (i.visible = e.visible), e.toneMapped !== void 0 && (i.toneMapped = e.toneMapped), e.userData !== void 0 && (i.userData = e.userData), e.vertexColors !== void 0 && (typeof e.vertexColors == "number" ? i.vertexColors = e.vertexColors > 0 : i.vertexColors = e.vertexColors), e.uniforms !== void 0) + for (const s in e.uniforms) { + const l = e.uniforms[s]; + switch (i.uniforms[s] = {}, l.type) { case "t": - i.uniforms[o].value = r(l.value); + i.uniforms[s].value = r(l.value); break; case "c": - i.uniforms[o].value = new Pn().setHex(l.value); + i.uniforms[s].value = new Un().setHex(l.value); break; case "v2": - i.uniforms[o].value = new Ft().fromArray(l.value); + i.uniforms[s].value = new zt().fromArray(l.value); break; case "v3": - i.uniforms[o].value = new ve().fromArray(l.value); + i.uniforms[s].value = new ge().fromArray(l.value); break; case "v4": - i.uniforms[o].value = new la().fromArray(l.value); + i.uniforms[s].value = new ra().fromArray(l.value); break; case "m3": - i.uniforms[o].value = new jh().fromArray(l.value); + i.uniforms[s].value = new Xh().fromArray(l.value); break; case "m4": - i.uniforms[o].value = new si().fromArray(l.value); + i.uniforms[s].value = new Kr().fromArray(l.value); break; default: - i.uniforms[o].value = l.value; + i.uniforms[s].value = l.value; } } if (e.defines !== void 0 && (i.defines = e.defines), e.vertexShader !== void 0 && (i.vertexShader = e.vertexShader), e.fragmentShader !== void 0 && (i.fragmentShader = e.fragmentShader), e.extensions !== void 0) - for (const o in e.extensions) - i.extensions[o] = e.extensions[o]; + for (const s in e.extensions) + i.extensions[s] = e.extensions[s]; if (e.shading !== void 0 && (i.flatShading = e.shading === 1), e.size !== void 0 && (i.size = e.size), e.sizeAttenuation !== void 0 && (i.sizeAttenuation = e.sizeAttenuation), e.map !== void 0 && (i.map = r(e.map)), e.matcap !== void 0 && (i.matcap = r(e.matcap)), e.alphaMap !== void 0 && (i.alphaMap = r(e.alphaMap)), e.bumpMap !== void 0 && (i.bumpMap = r(e.bumpMap)), e.bumpScale !== void 0 && (i.bumpScale = e.bumpScale), e.normalMap !== void 0 && (i.normalMap = r(e.normalMap)), e.normalMapType !== void 0 && (i.normalMapType = e.normalMapType), e.normalScale !== void 0) { - let o = e.normalScale; - Array.isArray(o) === !1 && (o = [o, o]), i.normalScale = new Ft().fromArray(o); + let s = e.normalScale; + Array.isArray(s) === !1 && (s = [s, s]), i.normalScale = new zt().fromArray(s); } - return e.displacementMap !== void 0 && (i.displacementMap = r(e.displacementMap)), e.displacementScale !== void 0 && (i.displacementScale = e.displacementScale), e.displacementBias !== void 0 && (i.displacementBias = e.displacementBias), e.roughnessMap !== void 0 && (i.roughnessMap = r(e.roughnessMap)), e.metalnessMap !== void 0 && (i.metalnessMap = r(e.metalnessMap)), e.emissiveMap !== void 0 && (i.emissiveMap = r(e.emissiveMap)), e.emissiveIntensity !== void 0 && (i.emissiveIntensity = e.emissiveIntensity), e.specularMap !== void 0 && (i.specularMap = r(e.specularMap)), e.specularIntensityMap !== void 0 && (i.specularIntensityMap = r(e.specularIntensityMap)), e.specularColorMap !== void 0 && (i.specularColorMap = r(e.specularColorMap)), e.envMap !== void 0 && (i.envMap = r(e.envMap)), e.envMapIntensity !== void 0 && (i.envMapIntensity = e.envMapIntensity), e.reflectivity !== void 0 && (i.reflectivity = e.reflectivity), e.refractionRatio !== void 0 && (i.refractionRatio = e.refractionRatio), e.lightMap !== void 0 && (i.lightMap = r(e.lightMap)), e.lightMapIntensity !== void 0 && (i.lightMapIntensity = e.lightMapIntensity), e.aoMap !== void 0 && (i.aoMap = r(e.aoMap)), e.aoMapIntensity !== void 0 && (i.aoMapIntensity = e.aoMapIntensity), e.gradientMap !== void 0 && (i.gradientMap = r(e.gradientMap)), e.clearcoatMap !== void 0 && (i.clearcoatMap = r(e.clearcoatMap)), e.clearcoatRoughnessMap !== void 0 && (i.clearcoatRoughnessMap = r(e.clearcoatRoughnessMap)), e.clearcoatNormalMap !== void 0 && (i.clearcoatNormalMap = r(e.clearcoatNormalMap)), e.clearcoatNormalScale !== void 0 && (i.clearcoatNormalScale = new Ft().fromArray(e.clearcoatNormalScale)), e.iridescenceMap !== void 0 && (i.iridescenceMap = r(e.iridescenceMap)), e.iridescenceThicknessMap !== void 0 && (i.iridescenceThicknessMap = r(e.iridescenceThicknessMap)), e.transmissionMap !== void 0 && (i.transmissionMap = r(e.transmissionMap)), e.thicknessMap !== void 0 && (i.thicknessMap = r(e.thicknessMap)), e.sheenColorMap !== void 0 && (i.sheenColorMap = r(e.sheenColorMap)), e.sheenRoughnessMap !== void 0 && (i.sheenRoughnessMap = r(e.sheenRoughnessMap)), i; + return e.displacementMap !== void 0 && (i.displacementMap = r(e.displacementMap)), e.displacementScale !== void 0 && (i.displacementScale = e.displacementScale), e.displacementBias !== void 0 && (i.displacementBias = e.displacementBias), e.roughnessMap !== void 0 && (i.roughnessMap = r(e.roughnessMap)), e.metalnessMap !== void 0 && (i.metalnessMap = r(e.metalnessMap)), e.emissiveMap !== void 0 && (i.emissiveMap = r(e.emissiveMap)), e.emissiveIntensity !== void 0 && (i.emissiveIntensity = e.emissiveIntensity), e.specularMap !== void 0 && (i.specularMap = r(e.specularMap)), e.specularIntensityMap !== void 0 && (i.specularIntensityMap = r(e.specularIntensityMap)), e.specularColorMap !== void 0 && (i.specularColorMap = r(e.specularColorMap)), e.envMap !== void 0 && (i.envMap = r(e.envMap)), e.envMapIntensity !== void 0 && (i.envMapIntensity = e.envMapIntensity), e.reflectivity !== void 0 && (i.reflectivity = e.reflectivity), e.refractionRatio !== void 0 && (i.refractionRatio = e.refractionRatio), e.lightMap !== void 0 && (i.lightMap = r(e.lightMap)), e.lightMapIntensity !== void 0 && (i.lightMapIntensity = e.lightMapIntensity), e.aoMap !== void 0 && (i.aoMap = r(e.aoMap)), e.aoMapIntensity !== void 0 && (i.aoMapIntensity = e.aoMapIntensity), e.gradientMap !== void 0 && (i.gradientMap = r(e.gradientMap)), e.clearcoatMap !== void 0 && (i.clearcoatMap = r(e.clearcoatMap)), e.clearcoatRoughnessMap !== void 0 && (i.clearcoatRoughnessMap = r(e.clearcoatRoughnessMap)), e.clearcoatNormalMap !== void 0 && (i.clearcoatNormalMap = r(e.clearcoatNormalMap)), e.clearcoatNormalScale !== void 0 && (i.clearcoatNormalScale = new zt().fromArray(e.clearcoatNormalScale)), e.iridescenceMap !== void 0 && (i.iridescenceMap = r(e.iridescenceMap)), e.iridescenceThicknessMap !== void 0 && (i.iridescenceThicknessMap = r(e.iridescenceThicknessMap)), e.transmissionMap !== void 0 && (i.transmissionMap = r(e.transmissionMap)), e.thicknessMap !== void 0 && (i.thicknessMap = r(e.thicknessMap)), e.sheenColorMap !== void 0 && (i.sheenColorMap = r(e.sheenColorMap)), e.sheenRoughnessMap !== void 0 && (i.sheenRoughnessMap = r(e.sheenRoughnessMap)), i; } setTextures(e) { return this.textures = e, this; } static createMaterialFromType(e) { const t = { - ShadowMaterial: XF, + ShadowMaterial: ok, SpriteMaterial: eL, - RawShaderMaterial: qF, - ShaderMaterial: wu, - PointsMaterial: nL, - MeshPhysicalMaterial: QF, - MeshStandardMaterial: BM, - MeshPhongMaterial: ZF, - MeshToonMaterial: JF, - MeshNormalMaterial: cL, - MeshLambertMaterial: KF, + RawShaderMaterial: lk, + ShaderMaterial: Mu, + PointsMaterial: XC, + MeshPhysicalMaterial: uk, + MeshStandardMaterial: HM, + MeshPhongMaterial: ck, + MeshToonMaterial: fk, + MeshNormalMaterial: uL, + MeshLambertMaterial: dk, MeshDepthMaterial: tT, - MeshDistanceMaterial: HC, - MeshBasicMaterial: lg, - MeshMatcapMaterial: $F, - LineDashedMaterial: e4, - LineBasicMaterial: ph, - Material: ff + MeshDistanceMaterial: VC, + MeshBasicMaterial: fg, + MeshMatcapMaterial: hk, + LineDashedMaterial: pk, + LineBasicMaterial: mh, + Material: hf }; return new t[e](); } } -class S3 { +class w3 { static decodeText(e) { if (typeof TextDecoder < "u") return new TextDecoder().decode(e); @@ -16674,7 +16674,7 @@ class S3 { return typeof e != "string" || e === "" ? "" : (/^https?:\/\//i.test(t) && /^\//.test(e) && (t = t.replace(/(^https?:\/\/[^\/]+).*/i, "$1")), /^(https?:)?\/\//i.test(e) || /^data:.*,.*$/i.test(e) || /^blob:.*$/i.test(e) ? e : t + e); } } -class JC extends ui { +class $C extends oi { constructor() { super(), this.isInstancedBufferGeometry = !0, this.type = "InstancedBufferGeometry", this.instanceCount = 1 / 0; } @@ -16689,154 +16689,154 @@ class JC extends ui { return e.instanceCount = this.instanceCount, e.isInstancedBufferGeometry = !0, e; } } -class h4 extends Tm { +class Ck extends Rm { constructor(e) { super(e); } load(e, t, r, i) { - const o = this, l = new P0(o.manager); - l.setPath(o.path), l.setRequestHeader(o.requestHeader), l.setWithCredentials(o.withCredentials), l.load(e, function(d) { + const s = this, l = new O0(s.manager); + l.setPath(s.path), l.setRequestHeader(s.requestHeader), l.setWithCredentials(s.withCredentials), l.load(e, function(d) { try { - t(o.parse(JSON.parse(d))); - } catch (h) { - i ? i(h) : console.error(h), o.manager.itemError(e); + t(s.parse(JSON.parse(d))); + } catch (p) { + i ? i(p) : console.error(p), s.manager.itemError(e); } }, r, i); } parse(e) { const t = {}, r = {}; - function i(C, D) { + function i(R, D) { if (t[D] !== void 0) return t[D]; - const U = C.interleavedBuffers[D], B = o(C, U.buffer), k = Hb(U.type, B), V = new WC(k, U.stride); - return V.uuid = U.uuid, t[D] = V, V; + const U = R.interleavedBuffers[D], H = s(R, U.buffer), I = Gw(U.type, H), G = new jC(I, U.stride); + return G.uuid = U.uuid, t[D] = G, G; } - function o(C, D) { + function s(R, D) { if (r[D] !== void 0) return r[D]; - const U = C.arrayBuffers[D], B = new Uint32Array(U).buffer; - return r[D] = B, B; + const U = R.arrayBuffers[D], H = new Uint32Array(U).buffer; + return r[D] = H, H; } - const l = e.isInstancedBufferGeometry ? new JC() : new ui(), d = e.data.index; + const l = e.isInstancedBufferGeometry ? new $C() : new oi(), d = e.data.index; if (d !== void 0) { - const C = Hb(d.type, d.array); - l.setIndex(new os(C, 1)); + const R = Gw(d.type, d.array); + l.setIndex(new ls(R, 1)); } - const h = e.data.attributes; - for (const C in h) { - const D = h[C]; - let P; + const p = e.data.attributes; + for (const R in p) { + const D = p[R]; + let O; if (D.isInterleavedBufferAttribute) { const U = i(e.data, D.data); - P = new _m(U, D.itemSize, D.offset, D.normalized); + O = new bm(U, D.itemSize, D.offset, D.normalized); } else { - const U = Hb(D.type, D.array), B = D.isInstancedBufferAttribute ? WS : os; - P = new B(U, D.itemSize, D.normalized); - } - D.name !== void 0 && (P.name = D.name), D.usage !== void 0 && P.setUsage(D.usage), D.updateRange !== void 0 && (P.updateRange.offset = D.updateRange.offset, P.updateRange.count = D.updateRange.count), l.setAttribute(C, P); - } - const m = e.data.morphAttributes; - if (m) - for (const C in m) { - const D = m[C], P = []; - for (let U = 0, B = D.length; U < B; U++) { - const k = D[U]; - let V; - if (k.isInterleavedBufferAttribute) { - const I = i(e.data, k.data); - V = new _m(I, k.itemSize, k.offset, k.normalized); + const U = Gw(D.type, D.array), H = D.isInstancedBufferAttribute ? q_ : ls; + O = new H(U, D.itemSize, D.normalized); + } + D.name !== void 0 && (O.name = D.name), D.usage !== void 0 && O.setUsage(D.usage), D.updateRange !== void 0 && (O.updateRange.offset = D.updateRange.offset, O.updateRange.count = D.updateRange.count), l.setAttribute(R, O); + } + const g = e.data.morphAttributes; + if (g) + for (const R in g) { + const D = g[R], O = []; + for (let U = 0, H = D.length; U < H; U++) { + const I = D[U]; + let G; + if (I.isInterleavedBufferAttribute) { + const B = i(e.data, I.data); + G = new bm(B, I.itemSize, I.offset, I.normalized); } else { - const I = Hb(k.type, k.array); - V = new os(I, k.itemSize, k.normalized); + const B = Gw(I.type, I.array); + G = new ls(B, I.itemSize, I.normalized); } - k.name !== void 0 && (V.name = k.name), P.push(V); + I.name !== void 0 && (G.name = I.name), O.push(G); } - l.morphAttributes[C] = P; + l.morphAttributes[R] = O; } e.data.morphTargetsRelative && (l.morphTargetsRelative = !0); - const _ = e.data.groups || e.data.drawcalls || e.data.offsets; - if (_ !== void 0) - for (let C = 0, D = _.length; C !== D; ++C) { - const P = _[C]; - l.addGroup(P.start, P.count, P.materialIndex); + const w = e.data.groups || e.data.drawcalls || e.data.offsets; + if (w !== void 0) + for (let R = 0, D = w.length; R !== D; ++R) { + const O = w[R]; + l.addGroup(O.start, O.count, O.materialIndex); } const T = e.data.boundingSphere; if (T !== void 0) { - const C = new ve(); - T.center !== void 0 && C.fromArray(T.center), l.boundingSphere = new vy(C, T.radius); + const R = new ge(); + T.center !== void 0 && R.fromArray(T.center), l.boundingSphere = new yy(R, T.radius); } return e.name && (l.name = e.name), e.userData && (l.userData = e.userData), l; } } -class i7 extends Tm { +class v7 extends Rm { constructor(e) { super(e); } load(e, t, r, i) { - const o = this, l = this.path === "" ? S3.extractUrlBase(e) : this.path; + const s = this, l = this.path === "" ? w3.extractUrlBase(e) : this.path; this.resourcePath = this.resourcePath || l; - const d = new P0(this.manager); - d.setPath(this.path), d.setRequestHeader(this.requestHeader), d.setWithCredentials(this.withCredentials), d.load(e, function(h) { - let m = null; + const d = new O0(this.manager); + d.setPath(this.path), d.setRequestHeader(this.requestHeader), d.setWithCredentials(this.withCredentials), d.load(e, function(p) { + let g = null; try { - m = JSON.parse(h); - } catch (_) { - i !== void 0 && i(_), console.error("THREE:ObjectLoader: Can't parse " + e + ".", _.message); + g = JSON.parse(p); + } catch (w) { + i !== void 0 && i(w), console.error("THREE:ObjectLoader: Can't parse " + e + ".", w.message); return; } - const S = m.metadata; - if (S === void 0 || S.type === void 0 || S.type.toLowerCase() === "geometry") { + const _ = g.metadata; + if (_ === void 0 || _.type === void 0 || _.type.toLowerCase() === "geometry") { console.error("THREE.ObjectLoader: Can't load " + e); return; } - o.parse(m, t); + s.parse(g, t); }, r, i); } async loadAsync(e, t) { - const r = this, i = this.path === "" ? S3.extractUrlBase(e) : this.path; + const r = this, i = this.path === "" ? w3.extractUrlBase(e) : this.path; this.resourcePath = this.resourcePath || i; - const o = new P0(this.manager); - o.setPath(this.path), o.setRequestHeader(this.requestHeader), o.setWithCredentials(this.withCredentials); - const l = await o.loadAsync(e, t), d = JSON.parse(l), h = d.metadata; - if (h === void 0 || h.type === void 0 || h.type.toLowerCase() === "geometry") + const s = new O0(this.manager); + s.setPath(this.path), s.setRequestHeader(this.requestHeader), s.setWithCredentials(this.withCredentials); + const l = await s.loadAsync(e, t), d = JSON.parse(l), p = d.metadata; + if (p === void 0 || p.type === void 0 || p.type.toLowerCase() === "geometry") throw new Error("THREE.ObjectLoader: Can't load " + e); return await r.parseAsync(d); } parse(e, t) { - const r = this.parseAnimations(e.animations), i = this.parseShapes(e.shapes), o = this.parseGeometries(e.geometries, i), l = this.parseImages(e.images, function() { - t !== void 0 && t(m); - }), d = this.parseTextures(e.textures, l), h = this.parseMaterials(e.materials, d), m = this.parseObject(e.object, o, h, d, r), S = this.parseSkeletons(e.skeletons, m); - if (this.bindSkeletons(m, S), t !== void 0) { - let _ = !1; + const r = this.parseAnimations(e.animations), i = this.parseShapes(e.shapes), s = this.parseGeometries(e.geometries, i), l = this.parseImages(e.images, function() { + t !== void 0 && t(g); + }), d = this.parseTextures(e.textures, l), p = this.parseMaterials(e.materials, d), g = this.parseObject(e.object, s, p, d, r), _ = this.parseSkeletons(e.skeletons, g); + if (this.bindSkeletons(g, _), t !== void 0) { + let w = !1; for (const T in l) if (l[T].data instanceof HTMLImageElement) { - _ = !0; + w = !0; break; } - _ === !1 && t(m); + w === !1 && t(g); } - return m; + return g; } async parseAsync(e) { - const t = this.parseAnimations(e.animations), r = this.parseShapes(e.shapes), i = this.parseGeometries(e.geometries, r), o = await this.parseImagesAsync(e.images), l = this.parseTextures(e.textures, o), d = this.parseMaterials(e.materials, l), h = this.parseObject(e.object, i, d, l, t), m = this.parseSkeletons(e.skeletons, h); - return this.bindSkeletons(h, m), h; + const t = this.parseAnimations(e.animations), r = this.parseShapes(e.shapes), i = this.parseGeometries(e.geometries, r), s = await this.parseImagesAsync(e.images), l = this.parseTextures(e.textures, s), d = this.parseMaterials(e.materials, l), p = this.parseObject(e.object, i, d, l, t), g = this.parseSkeletons(e.skeletons, p); + return this.bindSkeletons(p, g), p; } parseShapes(e) { const t = {}; if (e !== void 0) for (let r = 0, i = e.length; r < i; r++) { - const o = new IS().fromJSON(e[r]); - t[o.uuid] = o; + const s = new W_().fromJSON(e[r]); + t[s.uuid] = s; } return t; } parseSkeletons(e, t) { const r = {}, i = {}; - if (t.traverse(function(o) { - o.isBone && (i[o.uuid] = o); + if (t.traverse(function(s) { + s.isBone && (i[s.uuid] = s); }), e !== void 0) - for (let o = 0, l = e.length; o < l; o++) { - const d = new jC().fromJSON(e[o], i); + for (let s = 0, l = e.length; s < l; s++) { + const d = new YC().fromJSON(e[s], i); r[d.uuid] = d; } return r; @@ -16844,22 +16844,22 @@ class i7 extends Tm { parseGeometries(e, t) { const r = {}; if (e !== void 0) { - const i = new h4(); - for (let o = 0, l = e.length; o < l; o++) { + const i = new Ck(); + for (let s = 0, l = e.length; s < l; s++) { let d; - const h = e[o]; - switch (h.type) { + const p = e[s]; + switch (p.type) { case "BufferGeometry": case "InstancedBufferGeometry": - d = i.parse(h); + d = i.parse(p); break; case "Geometry": console.error("THREE.ObjectLoader: The legacy Geometry type is no longer supported."); break; default: - h.type in DU ? d = DU[h.type].fromJSON(h, t) : console.warn(`THREE.ObjectLoader: Unsupported geometry type "${h.type}"`); + p.type in OU ? d = OU[p.type].fromJSON(p, t) : console.warn(`THREE.ObjectLoader: Unsupported geometry type "${p.type}"`); } - d.uuid = h.uuid, h.name !== void 0 && (d.name = h.name), d.isBufferGeometry === !0 && h.userData !== void 0 && (d.userData = h.userData), r[h.uuid] = d; + d.uuid = p.uuid, p.name !== void 0 && (d.name = p.name), d.isBufferGeometry === !0 && p.userData !== void 0 && (d.userData = p.userData), r[p.uuid] = d; } } return r; @@ -16867,19 +16867,19 @@ class i7 extends Tm { parseMaterials(e, t) { const r = {}, i = {}; if (e !== void 0) { - const o = new ZC(); - o.setTextures(t); + const s = new KC(); + s.setTextures(t); for (let l = 0, d = e.length; l < d; l++) { - const h = e[l]; - if (h.type === "MultiMaterial") { - const m = []; - for (let S = 0; S < h.materials.length; S++) { - const _ = h.materials[S]; - r[_.uuid] === void 0 && (r[_.uuid] = o.parse(_)), m.push(r[_.uuid]); - } - i[h.uuid] = m; + const p = e[l]; + if (p.type === "MultiMaterial") { + const g = []; + for (let _ = 0; _ < p.materials.length; _++) { + const w = p.materials[_]; + r[w.uuid] === void 0 && (r[w.uuid] = s.parse(w)), g.push(r[w.uuid]); + } + i[p.uuid] = g; } else - r[h.uuid] === void 0 && (r[h.uuid] = o.parse(h)), i[h.uuid] = r[h.uuid]; + r[p.uuid] === void 0 && (r[p.uuid] = s.parse(p)), i[p.uuid] = r[p.uuid]; } } return i; @@ -16888,47 +16888,47 @@ class i7 extends Tm { const t = {}; if (e !== void 0) for (let r = 0; r < e.length; r++) { - const i = e[r], o = GM.parse(i); - t[o.uuid] = o; + const i = e[r], s = WM.parse(i); + t[s.uuid] = s; } return t; } parseImages(e, t) { const r = this, i = {}; - let o; - function l(h) { - return r.manager.itemStart(h), o.load(h, function() { - r.manager.itemEnd(h); + let s; + function l(p) { + return r.manager.itemStart(p), s.load(p, function() { + r.manager.itemEnd(p); }, void 0, function() { - r.manager.itemError(h), r.manager.itemEnd(h); + r.manager.itemError(p), r.manager.itemEnd(p); }); } - function d(h) { - if (typeof h == "string") { - const m = h, S = /^(\/\/)|([a-z]+:(\/\/)?)/i.test(m) ? m : r.resourcePath + m; - return l(S); + function d(p) { + if (typeof p == "string") { + const g = p, _ = /^(\/\/)|([a-z]+:(\/\/)?)/i.test(g) ? g : r.resourcePath + g; + return l(_); } else - return h.data ? { - data: Hb(h.type, h.data), - width: h.width, - height: h.height + return p.data ? { + data: Gw(p.type, p.data), + width: p.width, + height: p.height } : null; } if (e !== void 0 && e.length > 0) { - const h = new mL(t); - o = new WM(h), o.setCrossOrigin(this.crossOrigin); - for (let m = 0, S = e.length; m < S; m++) { - const _ = e[m], T = _.url; + const p = new pL(t); + s = new jM(p), s.setCrossOrigin(this.crossOrigin); + for (let g = 0, _ = e.length; g < _; g++) { + const w = e[g], T = w.url; if (Array.isArray(T)) { - const C = []; - for (let D = 0, P = T.length; D < P; D++) { - const U = T[D], B = d(U); - B !== null && (B instanceof HTMLImageElement ? C.push(B) : C.push(new Yb(B.data, B.width, B.height))); + const R = []; + for (let D = 0, O = T.length; D < O; D++) { + const U = T[D], H = d(U); + H !== null && (H instanceof HTMLImageElement ? R.push(H) : R.push(new qw(H.data, H.width, H.height))); } - i[_.uuid] = new OS(C); + i[w.uuid] = new F_(R); } else { - const C = d(_.url); - i[_.uuid] = new OS(C); + const R = d(w.url); + i[w.uuid] = new F_(R); } } } @@ -16937,136 +16937,136 @@ class i7 extends Tm { async parseImagesAsync(e) { const t = this, r = {}; let i; - async function o(l) { + async function s(l) { if (typeof l == "string") { - const d = l, h = /^(\/\/)|([a-z]+:(\/\/)?)/i.test(d) ? d : t.resourcePath + d; - return await i.loadAsync(h); + const d = l, p = /^(\/\/)|([a-z]+:(\/\/)?)/i.test(d) ? d : t.resourcePath + d; + return await i.loadAsync(p); } else return l.data ? { - data: Hb(l.type, l.data), + data: Gw(l.type, l.data), width: l.width, height: l.height } : null; } if (e !== void 0 && e.length > 0) { - i = new WM(this.manager), i.setCrossOrigin(this.crossOrigin); + i = new jM(this.manager), i.setCrossOrigin(this.crossOrigin); for (let l = 0, d = e.length; l < d; l++) { - const h = e[l], m = h.url; - if (Array.isArray(m)) { - const S = []; - for (let _ = 0, T = m.length; _ < T; _++) { - const C = m[_], D = await o(C); - D !== null && (D instanceof HTMLImageElement ? S.push(D) : S.push(new Yb(D.data, D.width, D.height))); - } - r[h.uuid] = new OS(S); + const p = e[l], g = p.url; + if (Array.isArray(g)) { + const _ = []; + for (let w = 0, T = g.length; w < T; w++) { + const R = g[w], D = await s(R); + D !== null && (D instanceof HTMLImageElement ? _.push(D) : _.push(new qw(D.data, D.width, D.height))); + } + r[p.uuid] = new F_(_); } else { - const S = await o(h.url); - r[h.uuid] = new OS(S); + const _ = await s(p.url); + r[p.uuid] = new F_(_); } } } return r; } parseTextures(e, t) { - function r(o, l) { - return typeof o == "number" ? o : (console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.", o), l[o]); + function r(s, l) { + return typeof s == "number" ? s : (console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.", s), l[s]); } const i = {}; if (e !== void 0) - for (let o = 0, l = e.length; o < l; o++) { - const d = e[o]; + for (let s = 0, l = e.length; s < l; s++) { + const d = e[s]; d.image === void 0 && console.warn('THREE.ObjectLoader: No "image" specified for', d.uuid), t[d.image] === void 0 && console.warn("THREE.ObjectLoader: Undefined image", d.image); - const h = t[d.image], m = h.data; - let S; - Array.isArray(m) ? (S = new eT(), m.length === 6 && (S.needsUpdate = !0)) : (m && m.data ? S = new Yb() : S = new iu(), m && (S.needsUpdate = !0)), S.source = h, S.uuid = d.uuid, d.name !== void 0 && (S.name = d.name), d.mapping !== void 0 && (S.mapping = r(d.mapping, a7)), d.offset !== void 0 && S.offset.fromArray(d.offset), d.repeat !== void 0 && S.repeat.fromArray(d.repeat), d.center !== void 0 && S.center.fromArray(d.center), d.rotation !== void 0 && (S.rotation = d.rotation), d.wrap !== void 0 && (S.wrapS = r(d.wrap[0], zU), S.wrapT = r(d.wrap[1], zU)), d.format !== void 0 && (S.format = d.format), d.type !== void 0 && (S.type = d.type), d.encoding !== void 0 && (S.encoding = d.encoding), d.minFilter !== void 0 && (S.minFilter = r(d.minFilter, NU)), d.magFilter !== void 0 && (S.magFilter = r(d.magFilter, NU)), d.anisotropy !== void 0 && (S.anisotropy = d.anisotropy), d.flipY !== void 0 && (S.flipY = d.flipY), d.premultiplyAlpha !== void 0 && (S.premultiplyAlpha = d.premultiplyAlpha), d.unpackAlignment !== void 0 && (S.unpackAlignment = d.unpackAlignment), d.userData !== void 0 && (S.userData = d.userData), i[d.uuid] = S; + const p = t[d.image], g = p.data; + let _; + Array.isArray(g) ? (_ = new eT(), g.length === 6 && (_.needsUpdate = !0)) : (g && g.data ? _ = new qw() : _ = new su(), g && (_.needsUpdate = !0)), _.source = p, _.uuid = d.uuid, d.name !== void 0 && (_.name = d.name), d.mapping !== void 0 && (_.mapping = r(d.mapping, g7)), d.offset !== void 0 && _.offset.fromArray(d.offset), d.repeat !== void 0 && _.repeat.fromArray(d.repeat), d.center !== void 0 && _.center.fromArray(d.center), d.rotation !== void 0 && (_.rotation = d.rotation), d.wrap !== void 0 && (_.wrapS = r(d.wrap[0], kU), _.wrapT = r(d.wrap[1], kU)), d.format !== void 0 && (_.format = d.format), d.type !== void 0 && (_.type = d.type), d.encoding !== void 0 && (_.encoding = d.encoding), d.minFilter !== void 0 && (_.minFilter = r(d.minFilter, IU)), d.magFilter !== void 0 && (_.magFilter = r(d.magFilter, IU)), d.anisotropy !== void 0 && (_.anisotropy = d.anisotropy), d.flipY !== void 0 && (_.flipY = d.flipY), d.premultiplyAlpha !== void 0 && (_.premultiplyAlpha = d.premultiplyAlpha), d.unpackAlignment !== void 0 && (_.unpackAlignment = d.unpackAlignment), d.userData !== void 0 && (_.userData = d.userData), i[d.uuid] = _; } return i; } - parseObject(e, t, r, i, o) { + parseObject(e, t, r, i, s) { let l; function d(T) { return t[T] === void 0 && console.warn("THREE.ObjectLoader: Undefined geometry", T), t[T]; } - function h(T) { + function p(T) { if (T !== void 0) { if (Array.isArray(T)) { - const C = []; - for (let D = 0, P = T.length; D < P; D++) { + const R = []; + for (let D = 0, O = T.length; D < O; D++) { const U = T[D]; - r[U] === void 0 && console.warn("THREE.ObjectLoader: Undefined material", U), C.push(r[U]); + r[U] === void 0 && console.warn("THREE.ObjectLoader: Undefined material", U), R.push(r[U]); } - return C; + return R; } return r[T] === void 0 && console.warn("THREE.ObjectLoader: Undefined material", T), r[T]; } } - function m(T) { + function g(T) { return i[T] === void 0 && console.warn("THREE.ObjectLoader: Undefined texture", T), i[T]; } - let S, _; + let _, w; switch (e.type) { case "Scene": - l = new zM(), e.background !== void 0 && (Number.isInteger(e.background) ? l.background = new Pn(e.background) : l.background = m(e.background)), e.environment !== void 0 && (l.environment = m(e.environment)), e.fog !== void 0 && (e.fog.type === "Fog" ? l.fog = new GC(e.fog.color, e.fog.near, e.fog.far) : e.fog.type === "FogExp2" && (l.fog = new VC(e.fog.color, e.fog.density))); + l = new NM(), e.background !== void 0 && (Number.isInteger(e.background) ? l.background = new Un(e.background) : l.background = g(e.background)), e.environment !== void 0 && (l.environment = g(e.environment)), e.fog !== void 0 && (e.fog.type === "Fog" ? l.fog = new WC(e.fog.color, e.fog.near, e.fog.far) : e.fog.type === "FogExp2" && (l.fog = new GC(e.fog.color, e.fog.density))); break; case "PerspectiveCamera": l = new ho(e.fov, e.aspect, e.near, e.far), e.focus !== void 0 && (l.focus = e.focus), e.zoom !== void 0 && (l.zoom = e.zoom), e.filmGauge !== void 0 && (l.filmGauge = e.filmGauge), e.filmOffset !== void 0 && (l.filmOffset = e.filmOffset), e.view !== void 0 && (l.view = Object.assign({}, e.view)); break; case "OrthographicCamera": - l = new cy(e.left, e.right, e.top, e.bottom, e.near, e.far), e.zoom !== void 0 && (l.zoom = e.zoom), e.view !== void 0 && (l.view = Object.assign({}, e.view)); + l = new dy(e.left, e.right, e.top, e.bottom, e.near, e.far), e.zoom !== void 0 && (l.zoom = e.zoom), e.view !== void 0 && (l.view = Object.assign({}, e.view)); break; case "AmbientLight": - l = new c4(e.color, e.intensity); + l = new Ek(e.color, e.intensity); break; case "DirectionalLight": - l = new u4(e.color, e.intensity); + l = new bk(e.color, e.intensity); break; case "PointLight": - l = new l4(e.color, e.intensity, e.distance, e.decay); + l = new wk(e.color, e.intensity, e.distance, e.decay); break; case "RectAreaLight": - l = new f4(e.color, e.intensity, e.width, e.height); + l = new Mk(e.color, e.intensity, e.width, e.height); break; case "SpotLight": - l = new o4(e.color, e.intensity, e.distance, e.angle, e.penumbra, e.decay); + l = new Sk(e.color, e.intensity, e.distance, e.angle, e.penumbra, e.decay); break; case "HemisphereLight": - l = new s4(e.color, e.groundColor, e.intensity); + l = new _k(e.color, e.groundColor, e.intensity); break; case "LightProbe": - l = new QC().fromJSON(e); + l = new JC().fromJSON(e); break; case "SkinnedMesh": - S = d(e.geometry), _ = h(e.material), l = new OF(S, _), e.bindMode !== void 0 && (l.bindMode = e.bindMode), e.bindMatrix !== void 0 && l.bindMatrix.fromArray(e.bindMatrix), e.skeleton !== void 0 && (l.skeleton = e.skeleton); + _ = d(e.geometry), w = p(e.material), l = new XF(_, w), e.bindMode !== void 0 && (l.bindMode = e.bindMode), e.bindMatrix !== void 0 && l.bindMatrix.fromArray(e.bindMatrix), e.skeleton !== void 0 && (l.skeleton = e.skeleton); break; case "Mesh": - S = d(e.geometry), _ = h(e.material), l = new zn(S, _); + _ = d(e.geometry), w = p(e.material), l = new Fn(_, w); break; case "InstancedMesh": - S = d(e.geometry), _ = h(e.material); - const T = e.count, C = e.instanceMatrix, D = e.instanceColor; - l = new UF(S, _, T), l.instanceMatrix = new WS(new Float32Array(C.array), 16), D !== void 0 && (l.instanceColor = new WS(new Float32Array(D.array), D.itemSize)); + _ = d(e.geometry), w = p(e.material); + const T = e.count, R = e.instanceMatrix, D = e.instanceColor; + l = new qF(_, w, T), l.instanceMatrix = new q_(new Float32Array(R.array), 16), D !== void 0 && (l.instanceColor = new q_(new Float32Array(D.array), D.itemSize)); break; case "LOD": - l = new PF(); + l = new YF(); break; case "Line": - l = new ch(d(e.geometry), h(e.material)); + l = new fh(d(e.geometry), p(e.material)); break; case "LineLoop": - l = new zF(d(e.geometry), h(e.material)); + l = new QF(d(e.geometry), p(e.material)); break; case "LineSegments": - l = new gy(d(e.geometry), h(e.material)); + l = new xy(d(e.geometry), p(e.material)); break; case "PointCloud": case "Points": - l = new NF(d(e.geometry), h(e.material)); + l = new ZF(d(e.geometry), p(e.material)); break; case "Sprite": - l = new LF(h(e.material)); + l = new jF(p(e.material)); break; case "Group": - l = new Gb(); + l = new jw(); break; case "Bone": l = new tL(); @@ -17076,22 +17076,22 @@ class i7 extends Tm { } if (l.uuid = e.uuid, e.name !== void 0 && (l.name = e.name), e.matrix !== void 0 ? (l.matrix.fromArray(e.matrix), e.matrixAutoUpdate !== void 0 && (l.matrixAutoUpdate = e.matrixAutoUpdate), l.matrixAutoUpdate && l.matrix.decompose(l.position, l.quaternion, l.scale)) : (e.position !== void 0 && l.position.fromArray(e.position), e.rotation !== void 0 && l.rotation.fromArray(e.rotation), e.quaternion !== void 0 && l.quaternion.fromArray(e.quaternion), e.scale !== void 0 && l.scale.fromArray(e.scale)), e.castShadow !== void 0 && (l.castShadow = e.castShadow), e.receiveShadow !== void 0 && (l.receiveShadow = e.receiveShadow), e.shadow && (e.shadow.bias !== void 0 && (l.shadow.bias = e.shadow.bias), e.shadow.normalBias !== void 0 && (l.shadow.normalBias = e.shadow.normalBias), e.shadow.radius !== void 0 && (l.shadow.radius = e.shadow.radius), e.shadow.mapSize !== void 0 && l.shadow.mapSize.fromArray(e.shadow.mapSize), e.shadow.camera !== void 0 && (l.shadow.camera = this.parseObject(e.shadow.camera))), e.visible !== void 0 && (l.visible = e.visible), e.frustumCulled !== void 0 && (l.frustumCulled = e.frustumCulled), e.renderOrder !== void 0 && (l.renderOrder = e.renderOrder), e.userData !== void 0 && (l.userData = e.userData), e.layers !== void 0 && (l.layers.mask = e.layers), e.children !== void 0) { const T = e.children; - for (let C = 0; C < T.length; C++) - l.add(this.parseObject(T[C], t, r, i, o)); + for (let R = 0; R < T.length; R++) + l.add(this.parseObject(T[R], t, r, i, s)); } if (e.animations !== void 0) { const T = e.animations; - for (let C = 0; C < T.length; C++) { - const D = T[C]; - l.animations.push(o[D]); + for (let R = 0; R < T.length; R++) { + const D = T[R]; + l.animations.push(s[D]); } } if (e.type === "LOD") { e.autoUpdate !== void 0 && (l.autoUpdate = e.autoUpdate); const T = e.levels; - for (let C = 0; C < T.length; C++) { - const D = T[C], P = l.getObjectByProperty("uuid", D.object); - P !== void 0 && l.addLevel(P, D.distance); + for (let R = 0; R < T.length; R++) { + const D = T[R], O = l.getObjectByProperty("uuid", D.object); + O !== void 0 && l.addLevel(O, D.distance); } } return l; @@ -17105,26 +17105,26 @@ class i7 extends Tm { }); } } -const a7 = { - UVMapping: NC, +const g7 = { + UVMapping: FC, CubeReflectionMapping: t1, CubeRefractionMapping: n1, - EquirectangularReflectionMapping: TM, - EquirectangularRefractionMapping: CM, - CubeUVReflectionMapping: hw -}, zU = { - RepeatWrapping: Zb, - ClampToEdgeWrapping: Wh, - MirroredRepeatWrapping: RM -}, NU = { + EquirectangularReflectionMapping: CM, + EquirectangularRefractionMapping: RM, + CubeUVReflectionMapping: hb +}, kU = { + RepeatWrapping: Zw, + ClampToEdgeWrapping: jh, + MirroredRepeatWrapping: AM +}, IU = { NearestFilter: fo, - NearestMipmapNearestFilter: wC, - NearestMipmapLinearFilter: EC, + NearestMipmapNearestFilter: EC, + NearestMipmapLinearFilter: MC, LinearFilter: Oo, LinearMipmapNearestFilter: W3, LinearMipmapLinearFilter: s1 }; -class s7 extends Tm { +class y7 extends Rm { constructor(e) { super(e), this.isImageBitmapLoader = !0, typeof createImageBitmap > "u" && console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."), typeof fetch > "u" && console.warn("THREE.ImageBitmapLoader: fetch() not supported."), this.options = { premultiplyAlpha: "none" }; } @@ -17133,25 +17133,25 @@ class s7 extends Tm { } load(e, t, r, i) { e === void 0 && (e = ""), this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e); - const o = this, l = YS.get(e); + const s = this, l = Z_.get(e); if (l !== void 0) - return o.manager.itemStart(e), setTimeout(function() { - t && t(l), o.manager.itemEnd(e); + return s.manager.itemStart(e), setTimeout(function() { + t && t(l), s.manager.itemEnd(e); }, 0), l; const d = {}; - d.credentials = this.crossOrigin === "anonymous" ? "same-origin" : "include", d.headers = this.requestHeader, fetch(e, d).then(function(h) { - return h.blob(); - }).then(function(h) { - return createImageBitmap(h, Object.assign(o.options, { colorSpaceConversion: "none" })); - }).then(function(h) { - YS.add(e, h), t && t(h), o.manager.itemEnd(e); - }).catch(function(h) { - i && i(h), o.manager.itemError(e), o.manager.itemEnd(e); - }), o.manager.itemStart(e); + d.credentials = this.crossOrigin === "anonymous" ? "same-origin" : "include", d.headers = this.requestHeader, fetch(e, d).then(function(p) { + return p.blob(); + }).then(function(p) { + return createImageBitmap(p, Object.assign(s.options, { colorSpaceConversion: "none" })); + }).then(function(p) { + Z_.add(e, p), t && t(p), s.manager.itemEnd(e); + }).catch(function(p) { + i && i(p), s.manager.itemError(e), s.manager.itemEnd(e); + }), s.manager.itemStart(e); } } let H2; -const gL = { +const vL = { getContext: function() { return H2 === void 0 && (H2 = new (window.AudioContext || window.webkitAudioContext)()), H2; }, @@ -17159,40 +17159,40 @@ const gL = { H2 = a; } }; -class o7 extends Tm { +class x7 extends Rm { constructor(e) { super(e); } load(e, t, r, i) { - const o = this, l = new P0(this.manager); + const s = this, l = new O0(this.manager); l.setResponseType("arraybuffer"), l.setPath(this.path), l.setRequestHeader(this.requestHeader), l.setWithCredentials(this.withCredentials), l.load(e, function(d) { try { - const h = d.slice(0); - gL.getContext().decodeAudioData(h, function(S) { - t(S); + const p = d.slice(0); + vL.getContext().decodeAudioData(p, function(_) { + t(_); }); - } catch (h) { - i ? i(h) : console.error(h), o.manager.itemError(e); + } catch (p) { + i ? i(p) : console.error(p), s.manager.itemError(e); } }, r, i); } } -class l7 extends QC { +class _7 extends JC { constructor(e, t, r = 1) { super(void 0, r), this.isHemisphereLightProbe = !0; - const i = new Pn().set(e), o = new Pn().set(t), l = new ve(i.r, i.g, i.b), d = new ve(o.r, o.g, o.b), h = Math.sqrt(Math.PI), m = h * Math.sqrt(0.75); - this.sh.coefficients[0].copy(l).add(d).multiplyScalar(h), this.sh.coefficients[1].copy(l).sub(d).multiplyScalar(m); + const i = new Un().set(e), s = new Un().set(t), l = new ge(i.r, i.g, i.b), d = new ge(s.r, s.g, s.b), p = Math.sqrt(Math.PI), g = p * Math.sqrt(0.75); + this.sh.coefficients[0].copy(l).add(d).multiplyScalar(p), this.sh.coefficients[1].copy(l).sub(d).multiplyScalar(g); } } -class u7 extends QC { +class S7 extends JC { constructor(e, t = 1) { super(void 0, t), this.isAmbientLightProbe = !0; - const r = new Pn().set(e); + const r = new Un().set(e); this.sh.coefficients[0].set(r.r, r.g, r.b).multiplyScalar(2 * Math.sqrt(Math.PI)); } } -const FU = /* @__PURE__ */ new si(), kU = /* @__PURE__ */ new si(), gS = /* @__PURE__ */ new si(); -class c7 { +const BU = /* @__PURE__ */ new Kr(), HU = /* @__PURE__ */ new Kr(), g_ = /* @__PURE__ */ new Kr(); +class w7 { constructor() { this.type = "StereoCamera", this.aspect = 1, this.eyeSep = 0.064, this.cameraL = new ho(), this.cameraL.layers.enable(1), this.cameraL.matrixAutoUpdate = !1, this.cameraR = new ho(), this.cameraR.layers.enable(2), this.cameraR.matrixAutoUpdate = !1, this._cache = { focus: null, @@ -17207,20 +17207,20 @@ class c7 { update(e) { const t = this._cache; if (t.focus !== e.focus || t.fov !== e.fov || t.aspect !== e.aspect * this.aspect || t.near !== e.near || t.far !== e.far || t.zoom !== e.zoom || t.eyeSep !== this.eyeSep) { - t.focus = e.focus, t.fov = e.fov, t.aspect = e.aspect * this.aspect, t.near = e.near, t.far = e.far, t.zoom = e.zoom, t.eyeSep = this.eyeSep, gS.copy(e.projectionMatrix); - const i = t.eyeSep / 2, o = i * t.near / t.focus, l = t.near * Math.tan(NS * t.fov * 0.5) / t.zoom; - let d, h; - kU.elements[12] = -i, FU.elements[12] = i, d = -l * t.aspect + o, h = l * t.aspect + o, gS.elements[0] = 2 * t.near / (h - d), gS.elements[8] = (h + d) / (h - d), this.cameraL.projectionMatrix.copy(gS), d = -l * t.aspect - o, h = l * t.aspect - o, gS.elements[0] = 2 * t.near / (h - d), gS.elements[8] = (h + d) / (h - d), this.cameraR.projectionMatrix.copy(gS); + t.focus = e.focus, t.fov = e.fov, t.aspect = e.aspect * this.aspect, t.near = e.near, t.far = e.far, t.zoom = e.zoom, t.eyeSep = this.eyeSep, g_.copy(e.projectionMatrix); + const i = t.eyeSep / 2, s = i * t.near / t.focus, l = t.near * Math.tan(H_ * t.fov * 0.5) / t.zoom; + let d, p; + HU.elements[12] = -i, BU.elements[12] = i, d = -l * t.aspect + s, p = l * t.aspect + s, g_.elements[0] = 2 * t.near / (p - d), g_.elements[8] = (p + d) / (p - d), this.cameraL.projectionMatrix.copy(g_), d = -l * t.aspect - s, p = l * t.aspect - s, g_.elements[0] = 2 * t.near / (p - d), g_.elements[8] = (p + d) / (p - d), this.cameraR.projectionMatrix.copy(g_); } - this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(kU), this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(FU); + this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(HU), this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(BU); } } -class yL { +class gL { constructor(e = !0) { this.autoStart = e, this.startTime = 0, this.oldTime = 0, this.elapsedTime = 0, this.running = !1; } start() { - this.startTime = IU(), this.oldTime = this.startTime, this.elapsedTime = 0, this.running = !0; + this.startTime = VU(), this.oldTime = this.startTime, this.elapsedTime = 0, this.running = !0; } stop() { this.getElapsedTime(), this.running = !1, this.autoStart = !1; @@ -17233,19 +17233,19 @@ class yL { if (this.autoStart && !this.running) return this.start(), 0; if (this.running) { - const t = IU(); + const t = VU(); e = (t - this.oldTime) / 1e3, this.oldTime = t, this.elapsedTime += e; } return e; } } -function IU() { +function VU() { return (typeof performance > "u" ? Date : performance).now(); } -const yS = /* @__PURE__ */ new ve(), BU = /* @__PURE__ */ new Po(), f7 = /* @__PURE__ */ new ve(), xS = /* @__PURE__ */ new ve(); -class d7 extends Xa { +const y_ = /* @__PURE__ */ new ge(), GU = /* @__PURE__ */ new Po(), b7 = /* @__PURE__ */ new ge(), x_ = /* @__PURE__ */ new ge(); +class E7 extends Xa { constructor() { - super(), this.type = "AudioListener", this.context = gL.getContext(), this.gain = this.context.createGain(), this.gain.connect(this.context.destination), this.filter = null, this.timeDelta = 0, this._clock = new yL(); + super(), this.type = "AudioListener", this.context = vL.getContext(), this.gain = this.context.createGain(), this.gain.connect(this.context.destination), this.filter = null, this.timeDelta = 0, this._clock = new gL(); } getInput() { return this.gain; @@ -17268,14 +17268,14 @@ class d7 extends Xa { updateMatrixWorld(e) { super.updateMatrixWorld(e); const t = this.context.listener, r = this.up; - if (this.timeDelta = this._clock.getDelta(), this.matrixWorld.decompose(yS, BU, f7), xS.set(0, 0, -1).applyQuaternion(BU), t.positionX) { + if (this.timeDelta = this._clock.getDelta(), this.matrixWorld.decompose(y_, GU, b7), x_.set(0, 0, -1).applyQuaternion(GU), t.positionX) { const i = this.context.currentTime + this.timeDelta; - t.positionX.linearRampToValueAtTime(yS.x, i), t.positionY.linearRampToValueAtTime(yS.y, i), t.positionZ.linearRampToValueAtTime(yS.z, i), t.forwardX.linearRampToValueAtTime(xS.x, i), t.forwardY.linearRampToValueAtTime(xS.y, i), t.forwardZ.linearRampToValueAtTime(xS.z, i), t.upX.linearRampToValueAtTime(r.x, i), t.upY.linearRampToValueAtTime(r.y, i), t.upZ.linearRampToValueAtTime(r.z, i); + t.positionX.linearRampToValueAtTime(y_.x, i), t.positionY.linearRampToValueAtTime(y_.y, i), t.positionZ.linearRampToValueAtTime(y_.z, i), t.forwardX.linearRampToValueAtTime(x_.x, i), t.forwardY.linearRampToValueAtTime(x_.y, i), t.forwardZ.linearRampToValueAtTime(x_.z, i), t.upX.linearRampToValueAtTime(r.x, i), t.upY.linearRampToValueAtTime(r.y, i), t.upZ.linearRampToValueAtTime(r.z, i); } else - t.setPosition(yS.x, yS.y, yS.z), t.setOrientation(xS.x, xS.y, xS.z, r.x, r.y, r.z); + t.setPosition(y_.x, y_.y, y_.z), t.setOrientation(x_.x, x_.y, x_.z, r.x, r.y, r.z); } } -class p4 extends Xa { +class Rk extends Xa { constructor(e) { super(), this.type = "Audio", this.listener = e, this.context = e.context, this.gain = this.context.createGain(), this.gain.connect(e.getInput()), this.autoplay = !1, this.buffer = null, this.detune = 0, this.loop = !1, this.loopStart = 0, this.loopEnd = 0, this.offset = 0, this.duration = void 0, this.playbackRate = 1, this.isPlaying = !1, this.hasPlaybackControl = !0, this.source = null, this.sourceType = "empty", this._startedAt = 0, this._progress = 0, this._connected = !1, this.filters = []; } @@ -17396,8 +17396,8 @@ class p4 extends Xa { return this.gain.gain.setTargetAtTime(e, this.context.currentTime, 0.01), this; } } -const SS = /* @__PURE__ */ new ve(), HU = /* @__PURE__ */ new Po(), h7 = /* @__PURE__ */ new ve(), _S = /* @__PURE__ */ new ve(); -class p7 extends p4 { +const __ = /* @__PURE__ */ new ge(), WU = /* @__PURE__ */ new Po(), M7 = /* @__PURE__ */ new ge(), S_ = /* @__PURE__ */ new ge(); +class T7 extends Rk { constructor(e) { super(e), this.panner = this.context.createPanner(), this.panner.panningModel = "HRTF", this.panner.connect(this.gain); } @@ -17437,16 +17437,16 @@ class p7 extends p4 { updateMatrixWorld(e) { if (super.updateMatrixWorld(e), this.hasPlaybackControl === !0 && this.isPlaying === !1) return; - this.matrixWorld.decompose(SS, HU, h7), _S.set(0, 0, 1).applyQuaternion(HU); + this.matrixWorld.decompose(__, WU, M7), S_.set(0, 0, 1).applyQuaternion(WU); const t = this.panner; if (t.positionX) { const r = this.context.currentTime + this.listener.timeDelta; - t.positionX.linearRampToValueAtTime(SS.x, r), t.positionY.linearRampToValueAtTime(SS.y, r), t.positionZ.linearRampToValueAtTime(SS.z, r), t.orientationX.linearRampToValueAtTime(_S.x, r), t.orientationY.linearRampToValueAtTime(_S.y, r), t.orientationZ.linearRampToValueAtTime(_S.z, r); + t.positionX.linearRampToValueAtTime(__.x, r), t.positionY.linearRampToValueAtTime(__.y, r), t.positionZ.linearRampToValueAtTime(__.z, r), t.orientationX.linearRampToValueAtTime(S_.x, r), t.orientationY.linearRampToValueAtTime(S_.y, r), t.orientationZ.linearRampToValueAtTime(S_.z, r); } else - t.setPosition(SS.x, SS.y, SS.z), t.setOrientation(_S.x, _S.y, _S.z); + t.setPosition(__.x, __.y, __.z), t.setOrientation(S_.x, S_.y, S_.z); } } -class m7 { +class C7 { constructor(e, t = 2048) { this.analyser = e.context.createAnalyser(), this.analyser.fftSize = t, this.data = new Uint8Array(this.analyser.frequencyBinCount), e.getOutput().connect(this.analyser); } @@ -17461,34 +17461,34 @@ class m7 { return e / t.length; } } -class m4 { +class Ak { constructor(e, t, r) { this.binding = e, this.valueSize = r; - let i, o, l; + let i, s, l; switch (t) { case "quaternion": - i = this._slerp, o = this._slerpAdditive, l = this._setAdditiveIdentityQuaternion, this.buffer = new Float64Array(r * 6), this._workIndex = 5; + i = this._slerp, s = this._slerpAdditive, l = this._setAdditiveIdentityQuaternion, this.buffer = new Float64Array(r * 6), this._workIndex = 5; break; case "string": case "bool": - i = this._select, o = this._select, l = this._setAdditiveIdentityOther, this.buffer = new Array(r * 5); + i = this._select, s = this._select, l = this._setAdditiveIdentityOther, this.buffer = new Array(r * 5); break; default: - i = this._lerp, o = this._lerpAdditive, l = this._setAdditiveIdentityNumeric, this.buffer = new Float64Array(r * 5); + i = this._lerp, s = this._lerpAdditive, l = this._setAdditiveIdentityNumeric, this.buffer = new Float64Array(r * 5); } - this._mixBufferRegion = i, this._mixBufferRegionAdditive = o, this._setIdentity = l, this._origIndex = 3, this._addIndex = 4, this.cumulativeWeight = 0, this.cumulativeWeightAdditive = 0, this.useCount = 0, this.referenceCount = 0; + this._mixBufferRegion = i, this._mixBufferRegionAdditive = s, this._setIdentity = l, this._origIndex = 3, this._addIndex = 4, this.cumulativeWeight = 0, this.cumulativeWeightAdditive = 0, this.useCount = 0, this.referenceCount = 0; } accumulate(e, t) { - const r = this.buffer, i = this.valueSize, o = e * i + i; + const r = this.buffer, i = this.valueSize, s = e * i + i; let l = this.cumulativeWeight; if (l === 0) { for (let d = 0; d !== i; ++d) - r[o + d] = r[d]; + r[s + d] = r[d]; l = t; } else { l += t; const d = t / l; - this._mixBufferRegion(r, o, 0, d, i); + this._mixBufferRegion(r, s, 0, d, i); } this.cumulativeWeight = l; } @@ -17497,20 +17497,20 @@ class m4 { this.cumulativeWeightAdditive === 0 && this._setIdentity(), this._mixBufferRegionAdditive(t, i, 0, e, r), this.cumulativeWeightAdditive += e; } apply(e) { - const t = this.valueSize, r = this.buffer, i = e * t + t, o = this.cumulativeWeight, l = this.cumulativeWeightAdditive, d = this.binding; - if (this.cumulativeWeight = 0, this.cumulativeWeightAdditive = 0, o < 1) { - const h = t * this._origIndex; + const t = this.valueSize, r = this.buffer, i = e * t + t, s = this.cumulativeWeight, l = this.cumulativeWeightAdditive, d = this.binding; + if (this.cumulativeWeight = 0, this.cumulativeWeightAdditive = 0, s < 1) { + const p = t * this._origIndex; this._mixBufferRegion( r, i, - h, - 1 - o, + p, + 1 - s, t ); } l > 0 && this._mixBufferRegionAdditive(r, i, this._addIndex * t, 1, t); - for (let h = t, m = t + t; h !== m; ++h) - if (r[h] !== r[h + t]) { + for (let p = t, g = t + t; p !== g; ++p) + if (r[p] !== r[p + t]) { d.setValue(r, i); break; } @@ -17518,8 +17518,8 @@ class m4 { saveOriginalState() { const e = this.binding, t = this.buffer, r = this.valueSize, i = r * this._origIndex; e.getValue(t, i); - for (let o = r, l = i; o !== l; ++o) - t[o] = t[i + o % r]; + for (let s = r, l = i; s !== l; ++s) + t[s] = t[i + s % r]; this._setIdentity(), this.cumulativeWeight = 0, this.cumulativeWeightAdditive = 0; } restoreOriginalState() { @@ -17539,36 +17539,36 @@ class m4 { for (let r = 0; r < this.valueSize; r++) this.buffer[t + r] = this.buffer[e + r]; } - _select(e, t, r, i, o) { + _select(e, t, r, i, s) { if (i >= 0.5) - for (let l = 0; l !== o; ++l) + for (let l = 0; l !== s; ++l) e[t + l] = e[r + l]; } _slerp(e, t, r, i) { Po.slerpFlat(e, t, e, t, e, r, i); } - _slerpAdditive(e, t, r, i, o) { - const l = this._workIndex * o; + _slerpAdditive(e, t, r, i, s) { + const l = this._workIndex * s; Po.multiplyQuaternionsFlat(e, l, e, t, e, r), Po.slerpFlat(e, t, e, t, e, l, i); } - _lerp(e, t, r, i, o) { + _lerp(e, t, r, i, s) { const l = 1 - i; - for (let d = 0; d !== o; ++d) { - const h = t + d; - e[h] = e[h] * l + e[r + d] * i; + for (let d = 0; d !== s; ++d) { + const p = t + d; + e[p] = e[p] * l + e[r + d] * i; } } - _lerpAdditive(e, t, r, i, o) { - for (let l = 0; l !== o; ++l) { + _lerpAdditive(e, t, r, i, s) { + for (let l = 0; l !== s; ++l) { const d = t + l; e[d] = e[d] + e[r + l] * i; } } } -const xL = "\\[\\]\\.:\\/", v7 = new RegExp("[" + xL + "]", "g"), SL = "[^" + xL + "]", g7 = "[^" + xL.replace("\\.", "") + "]", y7 = /* @__PURE__ */ /((?:WC+[\/:])*)/.source.replace("WC", SL), x7 = /* @__PURE__ */ /(WCOD+)?/.source.replace("WCOD", g7), S7 = /* @__PURE__ */ /(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC", SL), _7 = /* @__PURE__ */ /\.(WC+)(?:\[(.+)\])?/.source.replace("WC", SL), b7 = new RegExp( - "^" + y7 + x7 + S7 + _7 + "$" -), w7 = ["material", "materials", "bones"]; -class E7 { +const yL = "\\[\\]\\.:\\/", R7 = new RegExp("[" + yL + "]", "g"), xL = "[^" + yL + "]", A7 = "[^" + yL.replace("\\.", "") + "]", D7 = /* @__PURE__ */ /((?:WC+[\/:])*)/.source.replace("WC", xL), L7 = /* @__PURE__ */ /(WCOD+)?/.source.replace("WCOD", A7), P7 = /* @__PURE__ */ /(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC", xL), O7 = /* @__PURE__ */ /\.(WC+)(?:\[(.+)\])?/.source.replace("WC", xL), U7 = new RegExp( + "^" + D7 + L7 + P7 + O7 + "$" +), z7 = ["material", "materials", "bones"]; +class N7 { constructor(e, t, r) { const i = r || Ja.parseTrackName(t); this._targetGroup = e, this._bindings = e.subscribe_(t, i); @@ -17580,7 +17580,7 @@ class E7 { } setValue(e, t) { const r = this._bindings; - for (let i = this._targetGroup.nCachedObjects_, o = r.length; i !== o; ++i) + for (let i = this._targetGroup.nCachedObjects_, s = r.length; i !== s; ++i) r[i].setValue(e, t); } bind() { @@ -17602,10 +17602,10 @@ class Ja { return e && e.isAnimationObjectGroup ? new Ja.Composite(e, t, r) : new Ja(e, t, r); } static sanitizeNodeName(e) { - return e.replace(/\s/g, "_").replace(v7, ""); + return e.replace(/\s/g, "_").replace(R7, ""); } static parseTrackName(e) { - const t = b7.exec(e); + const t = U7.exec(e); if (t === null) throw new Error("PropertyBinding: Cannot parse trackName: " + e); const r = { @@ -17616,8 +17616,8 @@ class Ja { propertyIndex: t[6] }, i = r.nodeName && r.nodeName.lastIndexOf("."); if (i !== void 0 && i !== -1) { - const o = r.nodeName.substring(i + 1); - w7.indexOf(o) !== -1 && (r.nodeName = r.nodeName.substring(0, i), r.objectName = o); + const s = r.nodeName.substring(i + 1); + z7.indexOf(s) !== -1 && (r.nodeName = r.nodeName.substring(0, i), r.objectName = s); } if (r.propertyName === null || r.propertyName.length === 0) throw new Error("PropertyBinding: can not parse propertyName from trackName: " + e); @@ -17632,14 +17632,14 @@ class Ja { return r; } if (e.children) { - const r = function(o) { - for (let l = 0; l < o.length; l++) { - const d = o[l]; + const r = function(s) { + for (let l = 0; l < s.length; l++) { + const d = s[l]; if (d.name === t || d.uuid === t) return d; - const h = r(d.children); - if (h) - return h; + const p = r(d.children); + if (p) + return p; } return null; }, i = r(e.children); @@ -17657,7 +17657,7 @@ class Ja { } _getValue_array(e, t) { const r = this.resolvedProperty; - for (let i = 0, o = r.length; i !== o; ++i) + for (let i = 0, s = r.length; i !== s; ++i) e[t++] = r[i]; } _getValue_arrayElement(e, t) { @@ -17677,18 +17677,18 @@ class Ja { } _setValue_array(e, t) { const r = this.resolvedProperty; - for (let i = 0, o = r.length; i !== o; ++i) + for (let i = 0, s = r.length; i !== s; ++i) r[i] = e[t++]; } _setValue_array_setNeedsUpdate(e, t) { const r = this.resolvedProperty; - for (let i = 0, o = r.length; i !== o; ++i) + for (let i = 0, s = r.length; i !== s; ++i) r[i] = e[t++]; this.targetObject.needsUpdate = !0; } _setValue_array_setMatrixWorldNeedsUpdate(e, t) { const r = this.resolvedProperty; - for (let i = 0, o = r.length; i !== o; ++i) + for (let i = 0, s = r.length; i !== s; ++i) r[i] = e[t++]; this.targetObject.matrixWorldNeedsUpdate = !0; } @@ -17719,13 +17719,13 @@ class Ja { bind() { let e = this.node; const t = this.parsedPath, r = t.objectName, i = t.propertyName; - let o = t.propertyIndex; + let s = t.propertyIndex; if (e || (e = Ja.findNode(this.rootNode, t.nodeName) || this.rootNode, this.node = e), this.getValue = this._getValue_unavailable, this.setValue = this._setValue_unavailable, !e) { console.error("THREE.PropertyBinding: Trying to update node for track: " + this.path + " but it wasn't found."); return; } if (r) { - let m = t.objectIndex; + let g = t.objectIndex; switch (r) { case "materials": if (!e.material) { @@ -17744,9 +17744,9 @@ class Ja { return; } e = e.skeleton.bones; - for (let S = 0; S < e.length; S++) - if (e[S].name === m) { - m = S; + for (let _ = 0; _ < e.length; _++) + if (e[_].name === g) { + g = _; break; } break; @@ -17757,24 +17757,24 @@ class Ja { } e = e[r]; } - if (m !== void 0) { - if (e[m] === void 0) { + if (g !== void 0) { + if (e[g] === void 0) { console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.", this, e); return; } - e = e[m]; + e = e[g]; } } const l = e[i]; if (l === void 0) { - const m = t.nodeName; - console.error("THREE.PropertyBinding: Trying to update property for track: " + m + "." + i + " but it wasn't found.", e); + const g = t.nodeName; + console.error("THREE.PropertyBinding: Trying to update property for track: " + g + "." + i + " but it wasn't found.", e); return; } let d = this.Versioning.None; this.targetObject = e, e.needsUpdate !== void 0 ? d = this.Versioning.NeedsUpdate : e.matrixWorldNeedsUpdate !== void 0 && (d = this.Versioning.MatrixWorldNeedsUpdate); - let h = this.BindingType.Direct; - if (o !== void 0) { + let p = this.BindingType.Direct; + if (s !== void 0) { if (i === "morphTargetInfluences") { if (!e.geometry) { console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.", this); @@ -17784,18 +17784,18 @@ class Ja { console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.", this); return; } - e.morphTargetDictionary[o] !== void 0 && (o = e.morphTargetDictionary[o]); + e.morphTargetDictionary[s] !== void 0 && (s = e.morphTargetDictionary[s]); } - h = this.BindingType.ArrayElement, this.resolvedProperty = l, this.propertyIndex = o; + p = this.BindingType.ArrayElement, this.resolvedProperty = l, this.propertyIndex = s; } else - l.fromArray !== void 0 && l.toArray !== void 0 ? (h = this.BindingType.HasFromToArray, this.resolvedProperty = l) : Array.isArray(l) ? (h = this.BindingType.EntireArray, this.resolvedProperty = l) : this.propertyName = i; - this.getValue = this.GetterByBindingType[h], this.setValue = this.SetterByBindingTypeAndVersioning[h][d]; + l.fromArray !== void 0 && l.toArray !== void 0 ? (p = this.BindingType.HasFromToArray, this.resolvedProperty = l) : Array.isArray(l) ? (p = this.BindingType.EntireArray, this.resolvedProperty = l) : this.propertyName = i; + this.getValue = this.GetterByBindingType[p], this.setValue = this.SetterByBindingTypeAndVersioning[p][d]; } unbind() { this.node = null, this.getValue = this._getValue_unbound, this.setValue = this._setValue_unbound; } } -Ja.Composite = E7; +Ja.Composite = N7; Ja.prototype.BindingType = { Direct: 0, EntireArray: 1, @@ -17835,9 +17835,9 @@ Ja.prototype.SetterByBindingTypeAndVersioning = [ Ja.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate ] ]; -class M7 { +class F7 { constructor() { - this.isAnimationObjectGroup = !0, this.uuid = bm(), this._objects = Array.prototype.slice.call(arguments), this.nCachedObjects_ = 0; + this.isAnimationObjectGroup = !0, this.uuid = Em(), this._objects = Array.prototype.slice.call(arguments), this.nCachedObjects_ = 0; const e = {}; this._indicesByUUID = e; for (let r = 0, i = arguments.length; r !== i; ++r) @@ -17859,103 +17859,103 @@ class M7 { }; } add() { - const e = this._objects, t = this._indicesByUUID, r = this._paths, i = this._parsedPaths, o = this._bindings, l = o.length; - let d, h = e.length, m = this.nCachedObjects_; - for (let S = 0, _ = arguments.length; S !== _; ++S) { - const T = arguments[S], C = T.uuid; - let D = t[C]; + const e = this._objects, t = this._indicesByUUID, r = this._paths, i = this._parsedPaths, s = this._bindings, l = s.length; + let d, p = e.length, g = this.nCachedObjects_; + for (let _ = 0, w = arguments.length; _ !== w; ++_) { + const T = arguments[_], R = T.uuid; + let D = t[R]; if (D === void 0) { - D = h++, t[C] = D, e.push(T); - for (let P = 0, U = l; P !== U; ++P) - o[P].push(new Ja(T, r[P], i[P])); - } else if (D < m) { + D = p++, t[R] = D, e.push(T); + for (let O = 0, U = l; O !== U; ++O) + s[O].push(new Ja(T, r[O], i[O])); + } else if (D < g) { d = e[D]; - const P = --m, U = e[P]; - t[U.uuid] = D, e[D] = U, t[C] = P, e[P] = T; - for (let B = 0, k = l; B !== k; ++B) { - const V = o[B], I = V[P]; - let X = V[D]; - V[D] = I, X === void 0 && (X = new Ja(T, r[B], i[B])), V[P] = X; + const O = --g, U = e[O]; + t[U.uuid] = D, e[D] = U, t[R] = O, e[O] = T; + for (let H = 0, I = l; H !== I; ++H) { + const G = s[H], B = G[O]; + let Q = G[D]; + G[D] = B, Q === void 0 && (Q = new Ja(T, r[H], i[H])), G[O] = Q; } } else e[D] !== d && console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes."); } - this.nCachedObjects_ = m; + this.nCachedObjects_ = g; } remove() { const e = this._objects, t = this._indicesByUUID, r = this._bindings, i = r.length; - let o = this.nCachedObjects_; + let s = this.nCachedObjects_; for (let l = 0, d = arguments.length; l !== d; ++l) { - const h = arguments[l], m = h.uuid, S = t[m]; - if (S !== void 0 && S >= o) { - const _ = o++, T = e[_]; - t[T.uuid] = S, e[S] = T, t[m] = _, e[_] = h; - for (let C = 0, D = i; C !== D; ++C) { - const P = r[C], U = P[_], B = P[S]; - P[S] = U, P[_] = B; + const p = arguments[l], g = p.uuid, _ = t[g]; + if (_ !== void 0 && _ >= s) { + const w = s++, T = e[w]; + t[T.uuid] = _, e[_] = T, t[g] = w, e[w] = p; + for (let R = 0, D = i; R !== D; ++R) { + const O = r[R], U = O[w], H = O[_]; + O[_] = U, O[w] = H; } } } - this.nCachedObjects_ = o; + this.nCachedObjects_ = s; } uncache() { const e = this._objects, t = this._indicesByUUID, r = this._bindings, i = r.length; - let o = this.nCachedObjects_, l = e.length; - for (let d = 0, h = arguments.length; d !== h; ++d) { - const m = arguments[d], S = m.uuid, _ = t[S]; - if (_ !== void 0) - if (delete t[S], _ < o) { - const T = --o, C = e[T], D = --l, P = e[D]; - t[C.uuid] = _, e[_] = C, t[P.uuid] = T, e[T] = P, e.pop(); - for (let U = 0, B = i; U !== B; ++U) { - const k = r[U], V = k[T], I = k[D]; - k[_] = V, k[T] = I, k.pop(); + let s = this.nCachedObjects_, l = e.length; + for (let d = 0, p = arguments.length; d !== p; ++d) { + const g = arguments[d], _ = g.uuid, w = t[_]; + if (w !== void 0) + if (delete t[_], w < s) { + const T = --s, R = e[T], D = --l, O = e[D]; + t[R.uuid] = w, e[w] = R, t[O.uuid] = T, e[T] = O, e.pop(); + for (let U = 0, H = i; U !== H; ++U) { + const I = r[U], G = I[T], B = I[D]; + I[w] = G, I[T] = B, I.pop(); } } else { - const T = --l, C = e[T]; - T > 0 && (t[C.uuid] = _), e[_] = C, e.pop(); - for (let D = 0, P = i; D !== P; ++D) { + const T = --l, R = e[T]; + T > 0 && (t[R.uuid] = w), e[w] = R, e.pop(); + for (let D = 0, O = i; D !== O; ++D) { const U = r[D]; - U[_] = U[T], U.pop(); + U[w] = U[T], U.pop(); } } } - this.nCachedObjects_ = o; + this.nCachedObjects_ = s; } subscribe_(e, t) { const r = this._bindingsIndicesByPath; let i = r[e]; - const o = this._bindings; + const s = this._bindings; if (i !== void 0) - return o[i]; - const l = this._paths, d = this._parsedPaths, h = this._objects, m = h.length, S = this.nCachedObjects_, _ = new Array(m); - i = o.length, r[e] = i, l.push(e), d.push(t), o.push(_); - for (let T = S, C = h.length; T !== C; ++T) { - const D = h[T]; - _[T] = new Ja(D, e, t); + return s[i]; + const l = this._paths, d = this._parsedPaths, p = this._objects, g = p.length, _ = this.nCachedObjects_, w = new Array(g); + i = s.length, r[e] = i, l.push(e), d.push(t), s.push(w); + for (let T = _, R = p.length; T !== R; ++T) { + const D = p[T]; + w[T] = new Ja(D, e, t); } - return _; + return w; } unsubscribe_(e) { const t = this._bindingsIndicesByPath, r = t[e]; if (r !== void 0) { - const i = this._paths, o = this._parsedPaths, l = this._bindings, d = l.length - 1, h = l[d], m = e[d]; - t[m] = r, l[r] = h, l.pop(), o[r] = o[d], o.pop(), i[r] = i[d], i.pop(); + const i = this._paths, s = this._parsedPaths, l = this._bindings, d = l.length - 1, p = l[d], g = e[d]; + t[g] = r, l[r] = p, l.pop(), s[r] = s[d], s.pop(), i[r] = i[d], i.pop(); } } } -class T7 { +class k7 { constructor(e, t, r = null, i = t.blendMode) { this._mixer = e, this._clip = t, this._localRoot = r, this.blendMode = i; - const o = t.tracks, l = o.length, d = new Array(l), h = { - endingStart: LS, - endingEnd: LS + const s = t.tracks, l = s.length, d = new Array(l), p = { + endingStart: z_, + endingEnd: z_ }; - for (let m = 0; m !== l; ++m) { - const S = o[m].createInterpolant(null); - d[m] = S, S.settings = h; + for (let g = 0; g !== l; ++g) { + const _ = s[g].createInterpolant(null); + d[g] = _, _.settings = p; } - this._interpolantSettings = h, this._interpolants = d, this._propertyBindings = new Array(l), this._cacheIndex = null, this._byClipCacheIndex = null, this._timeScaleInterpolant = null, this._weightInterpolant = null, this.loop = fF, this._loopCount = -1, this._startTime = null, this.time = 0, this.timeScale = 1, this._effectiveTimeScale = 1, this.weight = 1, this._effectiveWeight = 1, this.repetitions = 1 / 0, this.paused = !1, this.enabled = !0, this.clampWhenFinished = !1, this.zeroSlopeAtStart = !0, this.zeroSlopeAtEnd = !0; + this._interpolantSettings = p, this._interpolants = d, this._propertyBindings = new Array(l), this._cacheIndex = null, this._byClipCacheIndex = null, this._timeScaleInterpolant = null, this._weightInterpolant = null, this.loop = MF, this._loopCount = -1, this._startTime = null, this.time = 0, this.timeScale = 1, this._effectiveTimeScale = 1, this.weight = 1, this._effectiveWeight = 1, this.repetitions = 1 / 0, this.paused = !1, this.enabled = !0, this.clampWhenFinished = !1, this.zeroSlopeAtStart = !0, this.zeroSlopeAtEnd = !0; } play() { return this._mixer._activateAction(this), this; @@ -17992,7 +17992,7 @@ class T7 { } crossFadeFrom(e, t, r) { if (e.fadeOut(t), this.fadeIn(t), r) { - const i = this._clip.duration, o = e._clip.duration, l = o / i, d = i / o; + const i = this._clip.duration, s = e._clip.duration, l = s / i, d = i / s; e.warp(1, l, t), this.warp(d, 1, t); } return this; @@ -18020,11 +18020,11 @@ class T7 { return this.warp(this._effectiveTimeScale, 0, e); } warp(e, t, r) { - const i = this._mixer, o = i.time, l = this.timeScale; + const i = this._mixer, s = i.time, l = this.timeScale; let d = this._timeScaleInterpolant; d === null && (d = i._lendControlInterpolant(), this._timeScaleInterpolant = d); - const h = d.parameterPositions, m = d.sampleValues; - return h[0] = o, h[1] = o + r, m[0] = e / l, m[1] = t / l, this; + const p = d.parameterPositions, g = d.sampleValues; + return p[0] = s, p[1] = s + r, g[0] = e / l, g[1] = t / l, this; } stopWarping() { const e = this._timeScaleInterpolant; @@ -18044,26 +18044,26 @@ class T7 { this._updateWeight(e); return; } - const o = this._startTime; - if (o !== null) { - const h = (e - o) * r; - if (h < 0 || r === 0) + const s = this._startTime; + if (s !== null) { + const p = (e - s) * r; + if (p < 0 || r === 0) return; - this._startTime = null, t = r * h; + this._startTime = null, t = r * p; } t *= this._updateTimeScale(e); const l = this._updateTime(t), d = this._updateWeight(e); if (d > 0) { - const h = this._interpolants, m = this._propertyBindings; + const p = this._interpolants, g = this._propertyBindings; switch (this.blendMode) { case Y3: - for (let S = 0, _ = h.length; S !== _; ++S) - h[S].evaluate(l), m[S].accumulateAdditive(d); + for (let _ = 0, w = p.length; _ !== w; ++_) + p[_].evaluate(l), g[_].accumulateAdditive(d); break; - case FC: + case kC: default: - for (let S = 0, _ = h.length; S !== _; ++S) - h[S].evaluate(l), m[S].accumulate(i, d); + for (let _ = 0, w = p.length; _ !== w; ++_) + p[_].evaluate(l), g[_].accumulate(i, d); } } } @@ -18090,12 +18090,12 @@ class T7 { } _updateTime(e) { const t = this._clip.duration, r = this.loop; - let i = this.time + e, o = this._loopCount; - const l = r === dF; + let i = this.time + e, s = this._loopCount; + const l = r === TF; if (e === 0) - return o === -1 ? i : l && (o & 1) === 1 ? t - i : i; - if (r === cF) { - o === -1 && (this._loopCount = 0, this._setEndings(!0, !0, !1)); + return s === -1 ? i : l && (s & 1) === 1 ? t - i : i; + if (r === EF) { + s === -1 && (this._loopCount = 0, this._setEndings(!0, !0, !1)); e: { if (i >= t) i = t; @@ -18112,23 +18112,23 @@ class T7 { }); } } else { - if (o === -1 && (e >= 0 ? (o = 0, this._setEndings(!0, this.repetitions === 0, l)) : this._setEndings(this.repetitions === 0, !0, l)), i >= t || i < 0) { + if (s === -1 && (e >= 0 ? (s = 0, this._setEndings(!0, this.repetitions === 0, l)) : this._setEndings(this.repetitions === 0, !0, l)), i >= t || i < 0) { const d = Math.floor(i / t); - i -= t * d, o += Math.abs(d); - const h = this.repetitions - o; - if (h <= 0) + i -= t * d, s += Math.abs(d); + const p = this.repetitions - s; + if (p <= 0) this.clampWhenFinished ? this.paused = !0 : this.enabled = !1, i = e > 0 ? t : 0, this.time = i, this._mixer.dispatchEvent({ type: "finished", action: this, direction: e > 0 ? 1 : -1 }); else { - if (h === 1) { - const m = e < 0; - this._setEndings(m, !m, l); + if (p === 1) { + const g = e < 0; + this._setEndings(g, !g, l); } else this._setEndings(!1, !1, l); - this._loopCount = o, this.time = i, this._mixer.dispatchEvent({ + this._loopCount = s, this.time = i, this._mixer.dispatchEvent({ type: "loop", action: this, loopDelta: d @@ -18136,65 +18136,65 @@ class T7 { } } else this.time = i; - if (l && (o & 1) === 1) + if (l && (s & 1) === 1) return t - i; } return i; } _setEndings(e, t, r) { const i = this._interpolantSettings; - r ? (i.endingStart = PS, i.endingEnd = PS) : (e ? i.endingStart = this.zeroSlopeAtStart ? PS : LS : i.endingStart = LM, t ? i.endingEnd = this.zeroSlopeAtEnd ? PS : LS : i.endingEnd = LM); + r ? (i.endingStart = N_, i.endingEnd = N_) : (e ? i.endingStart = this.zeroSlopeAtStart ? N_ : z_ : i.endingStart = PM, t ? i.endingEnd = this.zeroSlopeAtEnd ? N_ : z_ : i.endingEnd = PM); } _scheduleFading(e, t, r) { - const i = this._mixer, o = i.time; + const i = this._mixer, s = i.time; let l = this._weightInterpolant; l === null && (l = i._lendControlInterpolant(), this._weightInterpolant = l); - const d = l.parameterPositions, h = l.sampleValues; - return d[0] = o, h[0] = t, d[1] = o + e, h[1] = r, this; + const d = l.parameterPositions, p = l.sampleValues; + return d[0] = s, p[0] = t, d[1] = s + e, p[1] = r, this; } } -const C7 = new Float32Array(1); -class R7 extends Mm { +const I7 = new Float32Array(1); +class B7 extends Cm { constructor(e) { super(), this._root = e, this._initMemoryManager(), this._accuIndex = 0, this.time = 0, this.timeScale = 1; } _bindAction(e, t) { - const r = e._localRoot || this._root, i = e._clip.tracks, o = i.length, l = e._propertyBindings, d = e._interpolants, h = r.uuid, m = this._bindingsByRootAndName; - let S = m[h]; - S === void 0 && (S = {}, m[h] = S); - for (let _ = 0; _ !== o; ++_) { - const T = i[_], C = T.name; - let D = S[C]; + const r = e._localRoot || this._root, i = e._clip.tracks, s = i.length, l = e._propertyBindings, d = e._interpolants, p = r.uuid, g = this._bindingsByRootAndName; + let _ = g[p]; + _ === void 0 && (_ = {}, g[p] = _); + for (let w = 0; w !== s; ++w) { + const T = i[w], R = T.name; + let D = _[R]; if (D !== void 0) - ++D.referenceCount, l[_] = D; + ++D.referenceCount, l[w] = D; else { - if (D = l[_], D !== void 0) { - D._cacheIndex === null && (++D.referenceCount, this._addInactiveBinding(D, h, C)); + if (D = l[w], D !== void 0) { + D._cacheIndex === null && (++D.referenceCount, this._addInactiveBinding(D, p, R)); continue; } - const P = t && t._propertyBindings[_].binding.parsedPath; - D = new m4( - Ja.create(r, C, P), + const O = t && t._propertyBindings[w].binding.parsedPath; + D = new Ak( + Ja.create(r, R, O), T.ValueTypeName, T.getValueSize() - ), ++D.referenceCount, this._addInactiveBinding(D, h, C), l[_] = D; + ), ++D.referenceCount, this._addInactiveBinding(D, p, R), l[w] = D; } - d[_].resultBuffer = D.buffer; + d[w].resultBuffer = D.buffer; } } _activateAction(e) { if (!this._isActiveAction(e)) { if (e._cacheIndex === null) { - const r = (e._localRoot || this._root).uuid, i = e._clip.uuid, o = this._actionsByClip[i]; + const r = (e._localRoot || this._root).uuid, i = e._clip.uuid, s = this._actionsByClip[i]; this._bindAction( e, - o && o.knownActions[0] + s && s.knownActions[0] ), this._addInactiveAction(e, i, r); } const t = e._propertyBindings; for (let r = 0, i = t.length; r !== i; ++r) { - const o = t[r]; - o.useCount++ === 0 && (this._lendBinding(o), o.saveOriginalState()); + const s = t[r]; + s.useCount++ === 0 && (this._lendBinding(s), s.saveOriginalState()); } this._lendAction(e); } @@ -18203,8 +18203,8 @@ class R7 extends Mm { if (this._isActiveAction(e)) { const t = e._propertyBindings; for (let r = 0, i = t.length; r !== i; ++r) { - const o = t[r]; - --o.useCount === 0 && (o.restoreOriginalState(), this._takeBackBinding(o)); + const s = t[r]; + --s.useCount === 0 && (s.restoreOriginalState(), this._takeBackBinding(s)); } this._takeBackAction(e); } @@ -18244,13 +18244,13 @@ class R7 extends Mm { return t !== null && t < this._nActiveActions; } _addInactiveAction(e, t, r) { - const i = this._actions, o = this._actionsByClip; - let l = o[t]; + const i = this._actions, s = this._actionsByClip; + let l = s[t]; if (l === void 0) l = { knownActions: [e], actionByRoot: {} - }, e._byClipCacheIndex = 0, o[t] = l; + }, e._byClipCacheIndex = 0, s[t] = l; else { const d = l.knownActions; e._byClipCacheIndex = d.length, d.push(e); @@ -18260,75 +18260,75 @@ class R7 extends Mm { _removeInactiveAction(e) { const t = this._actions, r = t[t.length - 1], i = e._cacheIndex; r._cacheIndex = i, t[i] = r, t.pop(), e._cacheIndex = null; - const o = e._clip.uuid, l = this._actionsByClip, d = l[o], h = d.knownActions, m = h[h.length - 1], S = e._byClipCacheIndex; - m._byClipCacheIndex = S, h[S] = m, h.pop(), e._byClipCacheIndex = null; - const _ = d.actionByRoot, T = (e._localRoot || this._root).uuid; - delete _[T], h.length === 0 && delete l[o], this._removeInactiveBindingsForAction(e); + const s = e._clip.uuid, l = this._actionsByClip, d = l[s], p = d.knownActions, g = p[p.length - 1], _ = e._byClipCacheIndex; + g._byClipCacheIndex = _, p[_] = g, p.pop(), e._byClipCacheIndex = null; + const w = d.actionByRoot, T = (e._localRoot || this._root).uuid; + delete w[T], p.length === 0 && delete l[s], this._removeInactiveBindingsForAction(e); } _removeInactiveBindingsForAction(e) { const t = e._propertyBindings; for (let r = 0, i = t.length; r !== i; ++r) { - const o = t[r]; - --o.referenceCount === 0 && this._removeInactiveBinding(o); + const s = t[r]; + --s.referenceCount === 0 && this._removeInactiveBinding(s); } } _lendAction(e) { - const t = this._actions, r = e._cacheIndex, i = this._nActiveActions++, o = t[i]; - e._cacheIndex = i, t[i] = e, o._cacheIndex = r, t[r] = o; + const t = this._actions, r = e._cacheIndex, i = this._nActiveActions++, s = t[i]; + e._cacheIndex = i, t[i] = e, s._cacheIndex = r, t[r] = s; } _takeBackAction(e) { - const t = this._actions, r = e._cacheIndex, i = --this._nActiveActions, o = t[i]; - e._cacheIndex = i, t[i] = e, o._cacheIndex = r, t[r] = o; + const t = this._actions, r = e._cacheIndex, i = --this._nActiveActions, s = t[i]; + e._cacheIndex = i, t[i] = e, s._cacheIndex = r, t[r] = s; } _addInactiveBinding(e, t, r) { - const i = this._bindingsByRootAndName, o = this._bindings; + const i = this._bindingsByRootAndName, s = this._bindings; let l = i[t]; - l === void 0 && (l = {}, i[t] = l), l[r] = e, e._cacheIndex = o.length, o.push(e); + l === void 0 && (l = {}, i[t] = l), l[r] = e, e._cacheIndex = s.length, s.push(e); } _removeInactiveBinding(e) { - const t = this._bindings, r = e.binding, i = r.rootNode.uuid, o = r.path, l = this._bindingsByRootAndName, d = l[i], h = t[t.length - 1], m = e._cacheIndex; - h._cacheIndex = m, t[m] = h, t.pop(), delete d[o], Object.keys(d).length === 0 && delete l[i]; + const t = this._bindings, r = e.binding, i = r.rootNode.uuid, s = r.path, l = this._bindingsByRootAndName, d = l[i], p = t[t.length - 1], g = e._cacheIndex; + p._cacheIndex = g, t[g] = p, t.pop(), delete d[s], Object.keys(d).length === 0 && delete l[i]; } _lendBinding(e) { - const t = this._bindings, r = e._cacheIndex, i = this._nActiveBindings++, o = t[i]; - e._cacheIndex = i, t[i] = e, o._cacheIndex = r, t[r] = o; + const t = this._bindings, r = e._cacheIndex, i = this._nActiveBindings++, s = t[i]; + e._cacheIndex = i, t[i] = e, s._cacheIndex = r, t[r] = s; } _takeBackBinding(e) { - const t = this._bindings, r = e._cacheIndex, i = --this._nActiveBindings, o = t[i]; - e._cacheIndex = i, t[i] = e, o._cacheIndex = r, t[r] = o; + const t = this._bindings, r = e._cacheIndex, i = --this._nActiveBindings, s = t[i]; + e._cacheIndex = i, t[i] = e, s._cacheIndex = r, t[r] = s; } _lendControlInterpolant() { const e = this._controlInterpolants, t = this._nActiveControlInterpolants++; let r = e[t]; - return r === void 0 && (r = new hL( + return r === void 0 && (r = new dL( new Float32Array(2), new Float32Array(2), 1, - C7 + I7 ), r.__cacheIndex = t, e[t] = r), r; } _takeBackControlInterpolant(e) { - const t = this._controlInterpolants, r = e.__cacheIndex, i = --this._nActiveControlInterpolants, o = t[i]; - e.__cacheIndex = i, t[i] = e, o.__cacheIndex = r, t[r] = o; + const t = this._controlInterpolants, r = e.__cacheIndex, i = --this._nActiveControlInterpolants, s = t[i]; + e.__cacheIndex = i, t[i] = e, s.__cacheIndex = r, t[r] = s; } clipAction(e, t, r) { - const i = t || this._root, o = i.uuid; - let l = typeof e == "string" ? GM.findByName(i, e) : e; - const d = l !== null ? l.uuid : e, h = this._actionsByClip[d]; - let m = null; - if (r === void 0 && (l !== null ? r = l.blendMode : r = FC), h !== void 0) { - const _ = h.actionByRoot[o]; - if (_ !== void 0 && _.blendMode === r) - return _; - m = h.knownActions[0], l === null && (l = m._clip); + const i = t || this._root, s = i.uuid; + let l = typeof e == "string" ? WM.findByName(i, e) : e; + const d = l !== null ? l.uuid : e, p = this._actionsByClip[d]; + let g = null; + if (r === void 0 && (l !== null ? r = l.blendMode : r = kC), p !== void 0) { + const w = p.actionByRoot[s]; + if (w !== void 0 && w.blendMode === r) + return w; + g = p.knownActions[0], l === null && (l = g._clip); } if (l === null) return null; - const S = new T7(this, l, t, r); - return this._bindAction(S, m), this._addInactiveAction(S, d, o), S; + const _ = new k7(this, l, t, r); + return this._bindAction(_, g), this._addInactiveAction(_, d, s), _; } existingAction(e, t) { - const r = t || this._root, i = r.uuid, o = typeof e == "string" ? GM.findByName(r, e) : e, l = o ? o.uuid : e, d = this._actionsByClip[l]; + const r = t || this._root, i = r.uuid, s = typeof e == "string" ? WM.findByName(r, e) : e, l = s ? s.uuid : e, d = this._actionsByClip[l]; return d !== void 0 && d.actionByRoot[i] || null; } stopAllAction() { @@ -18339,12 +18339,12 @@ class R7 extends Mm { } update(e) { e *= this.timeScale; - const t = this._actions, r = this._nActiveActions, i = this.time += e, o = Math.sign(e), l = this._accuIndex ^= 1; - for (let m = 0; m !== r; ++m) - t[m]._update(i, e, o, l); - const d = this._bindings, h = this._nActiveBindings; - for (let m = 0; m !== h; ++m) - d[m].apply(l); + const t = this._actions, r = this._nActiveActions, i = this.time += e, s = Math.sign(e), l = this._accuIndex ^= 1; + for (let g = 0; g !== r; ++g) + t[g]._update(i, e, s, l); + const d = this._bindings, p = this._nActiveBindings; + for (let g = 0; g !== p; ++g) + d[g].apply(l); return this; } setTime(e) { @@ -18357,14 +18357,14 @@ class R7 extends Mm { return this._root; } uncacheClip(e) { - const t = this._actions, r = e.uuid, i = this._actionsByClip, o = i[r]; - if (o !== void 0) { - const l = o.knownActions; - for (let d = 0, h = l.length; d !== h; ++d) { - const m = l[d]; - this._deactivateAction(m); - const S = m._cacheIndex, _ = t[t.length - 1]; - m._cacheIndex = null, m._byClipCacheIndex = null, _._cacheIndex = S, t[S] = _, t.pop(), this._removeInactiveBindingsForAction(m); + const t = this._actions, r = e.uuid, i = this._actionsByClip, s = i[r]; + if (s !== void 0) { + const l = s.knownActions; + for (let d = 0, p = l.length; d !== p; ++d) { + const g = l[d]; + this._deactivateAction(g); + const _ = g._cacheIndex, w = t[t.length - 1]; + g._cacheIndex = null, g._byClipCacheIndex = null, w._cacheIndex = _, t[_] = w, t.pop(), this._removeInactiveBindingsForAction(g); } delete i[r]; } @@ -18372,13 +18372,13 @@ class R7 extends Mm { uncacheRoot(e) { const t = e.uuid, r = this._actionsByClip; for (const l in r) { - const d = r[l].actionByRoot, h = d[t]; - h !== void 0 && (this._deactivateAction(h), this._removeInactiveAction(h)); + const d = r[l].actionByRoot, p = d[t]; + p !== void 0 && (this._deactivateAction(p), this._removeInactiveAction(p)); } - const i = this._bindingsByRootAndName, o = i[t]; - if (o !== void 0) - for (const l in o) { - const d = o[l]; + const i = this._bindingsByRootAndName, s = i[t]; + if (s !== void 0) + for (const l in s) { + const d = s[l]; d.restoreOriginalState(), this._removeInactiveBinding(d); } } @@ -18387,18 +18387,18 @@ class R7 extends Mm { r !== null && (this._deactivateAction(r), this._removeInactiveAction(r)); } } -class Bn { +class Pn { constructor(e) { typeof e == "string" && (console.warn("THREE.Uniform: Type parameter is no longer needed."), e = arguments[1]), this.value = e; } clone() { - return new Bn(this.value.clone === void 0 ? this.value : this.value.clone()); + return new Pn(this.value.clone === void 0 ? this.value : this.value.clone()); } } -let A7 = 0; -class D7 extends Mm { +let H7 = 0; +class V7 extends Cm { constructor() { - super(), this.isUniformsGroup = !0, Object.defineProperty(this, "id", { value: A7++ }), this.name = "", this.usage = PM, this.uniforms = []; + super(), this.isUniformsGroup = !0, Object.defineProperty(this, "id", { value: H7++ }), this.name = "", this.usage = OM, this.uniforms = []; } add(e) { return this.uniforms.push(e), this; @@ -18428,7 +18428,7 @@ class D7 extends Mm { return new this.constructor().copy(this); } } -class CC extends WC { +class RC extends jC { constructor(e, t, r = 1) { super(e, t), this.isInstancedInterleavedBuffer = !0, this.meshPerAttribute = r; } @@ -18444,9 +18444,9 @@ class CC extends WC { return t.isInstancedInterleavedBuffer = !0, t.meshPerAttribute = this.meshPerAttribute, t; } } -class L7 { - constructor(e, t, r, i, o) { - this.isGLBufferAttribute = !0, this.buffer = e, this.type = t, this.itemSize = r, this.elementSize = i, this.count = o, this.version = 0; +class G7 { + constructor(e, t, r, i, s) { + this.isGLBufferAttribute = !0, this.buffer = e, this.type = t, this.itemSize = r, this.elementSize = i, this.count = s, this.version = 0; } set needsUpdate(e) { e === !0 && this.version++; @@ -18466,7 +18466,7 @@ class L7 { } class _L { constructor(e, t, r = 0, i = 1 / 0) { - this.ray = new KM(e, t), this.near = r, this.far = i, this.camera = null, this.layers = new kS(), this.params = { + this.ray = new KM(e, t), this.near = r, this.far = i, this.camera = null, this.layers = new G_(), this.params = { Mesh: {}, Line: { threshold: 1 }, LOD: {}, @@ -18481,25 +18481,25 @@ class _L { t.isPerspectiveCamera ? (this.ray.origin.setFromMatrixPosition(t.matrixWorld), this.ray.direction.set(e.x, e.y, 0.5).unproject(t).sub(this.ray.origin).normalize(), this.camera = t) : t.isOrthographicCamera ? (this.ray.origin.set(e.x, e.y, (t.near + t.far) / (t.near - t.far)).unproject(t), this.ray.direction.set(0, 0, -1).transformDirection(t.matrixWorld), this.camera = t) : console.error("THREE.Raycaster: Unsupported camera type: " + t.type); } intersectObject(e, t = !0, r = []) { - return _3(e, this, r, t), r.sort(VU), r; + return b3(e, this, r, t), r.sort(jU), r; } intersectObjects(e, t = !0, r = []) { - for (let i = 0, o = e.length; i < o; i++) - _3(e[i], this, r, t); - return r.sort(VU), r; + for (let i = 0, s = e.length; i < s; i++) + b3(e[i], this, r, t); + return r.sort(jU), r; } } -function VU(a, e) { +function jU(a, e) { return a.distance - e.distance; } -function _3(a, e, t, r) { +function b3(a, e, t, r) { if (a.layers.test(e.layers) && a.raycast(e, t), r === !0) { const i = a.children; - for (let o = 0, l = i.length; o < l; o++) - _3(i[o], e, t, !0); + for (let s = 0, l = i.length; s < l; s++) + b3(i[s], e, t, !0); } } -class b3 { +class E3 { constructor(e = 1, t = 0, r = 0) { return this.radius = e, this.phi = t, this.theta = r, this; } @@ -18516,13 +18516,13 @@ class b3 { return this.setFromCartesianCoords(e.x, e.y, e.z); } setFromCartesianCoords(e, t, r) { - return this.radius = Math.sqrt(e * e + t * t + r * r), this.radius === 0 ? (this.theta = 0, this.phi = 0) : (this.theta = Math.atan2(e, r), this.phi = Math.acos(Qu(t / this.radius, -1, 1))), this; + return this.radius = Math.sqrt(e * e + t * t + r * r), this.radius === 0 ? (this.theta = 0, this.phi = 0) : (this.theta = Math.atan2(e, r), this.phi = Math.acos(Zu(t / this.radius, -1, 1))), this; } clone() { return new this.constructor().copy(this); } } -class P7 { +class W7 { constructor(e = 1, t = 0, r = 0) { return this.radius = e, this.theta = t, this.y = r, this; } @@ -18542,9 +18542,9 @@ class P7 { return new this.constructor().copy(this); } } -const GU = /* @__PURE__ */ new Ft(); -class O7 { - constructor(e = new Ft(1 / 0, 1 / 0), t = new Ft(-1 / 0, -1 / 0)) { +const YU = /* @__PURE__ */ new zt(); +class j7 { + constructor(e = new zt(1 / 0, 1 / 0), t = new zt(-1 / 0, -1 / 0)) { this.isBox2 = !0, this.min = e, this.max = t; } set(e, t) { @@ -18557,7 +18557,7 @@ class O7 { return this; } setFromCenterAndSize(e, t) { - const r = GU.copy(t).multiplyScalar(0.5); + const r = YU.copy(t).multiplyScalar(0.5); return this.min.copy(e).sub(r), this.max.copy(e).add(r), this; } clone() { @@ -18606,7 +18606,7 @@ class O7 { return t.copy(e).clamp(this.min, this.max); } distanceToPoint(e) { - return GU.copy(e).clamp(this.min, this.max).sub(e).length(); + return YU.copy(e).clamp(this.min, this.max).sub(e).length(); } intersect(e) { return this.min.max(e.min), this.max.min(e.max), this; @@ -18621,9 +18621,9 @@ class O7 { return e.min.equals(this.min) && e.max.equals(this.max); } } -const WU = /* @__PURE__ */ new ve(), V2 = /* @__PURE__ */ new ve(); -class bL { - constructor(e = new ve(), t = new ve()) { +const XU = /* @__PURE__ */ new ge(), V2 = /* @__PURE__ */ new ge(); +class SL { + constructor(e = new ge(), t = new ge()) { this.start = e, this.end = t; } set(e, t) { @@ -18648,10 +18648,10 @@ class bL { return this.delta(t).multiplyScalar(e).add(this.start); } closestPointToPointParameter(e, t) { - WU.subVectors(e, this.start), V2.subVectors(this.end, this.start); + XU.subVectors(e, this.start), V2.subVectors(this.end, this.start); const r = V2.dot(V2); - let o = V2.dot(WU) / r; - return t && (o = Qu(o, 0, 1)), o; + let s = V2.dot(XU) / r; + return t && (s = Zu(s, 0, 1)), s; } closestPointToPoint(e, t, r) { const i = this.closestPointToPointParameter(e, t); @@ -18667,11 +18667,11 @@ class bL { return new this.constructor().copy(this); } } -const jU = /* @__PURE__ */ new ve(); -class U7 extends Xa { +const qU = /* @__PURE__ */ new ge(); +class Y7 extends Xa { constructor(e, t) { super(), this.light = e, this.light.updateMatrixWorld(), this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1, this.color = t; - const r = new ui(), i = [ + const r = new oi(), i = [ 0, 0, 0, @@ -18703,20 +18703,20 @@ class U7 extends Xa { -1, 1 ]; - for (let l = 0, d = 1, h = 32; l < h; l++, d++) { - const m = l / h * Math.PI * 2, S = d / h * Math.PI * 2; + for (let l = 0, d = 1, p = 32; l < p; l++, d++) { + const g = l / p * Math.PI * 2, _ = d / p * Math.PI * 2; i.push( - Math.cos(m), - Math.sin(m), + Math.cos(g), + Math.sin(g), 1, - Math.cos(S), - Math.sin(S), + Math.cos(_), + Math.sin(_), 1 ); } r.setAttribute("position", new sr(i, 3)); - const o = new ph({ fog: !1, toneMapped: !1 }); - this.cone = new gy(r, o), this.add(this.cone), this.update(); + const s = new mh({ fog: !1, toneMapped: !1 }); + this.cone = new xy(r, s), this.add(this.cone), this.update(); } dispose() { this.cone.geometry.dispose(), this.cone.material.dispose(); @@ -18724,42 +18724,42 @@ class U7 extends Xa { update() { this.light.updateMatrixWorld(); const e = this.light.distance ? this.light.distance : 1e3, t = e * Math.tan(this.light.angle); - this.cone.scale.set(t, t, e), jU.setFromMatrixPosition(this.light.target.matrixWorld), this.cone.lookAt(jU), this.color !== void 0 ? this.cone.material.color.set(this.color) : this.cone.material.color.copy(this.light.color); + this.cone.scale.set(t, t, e), qU.setFromMatrixPosition(this.light.target.matrixWorld), this.cone.lookAt(qU), this.color !== void 0 ? this.cone.material.color.set(this.color) : this.cone.material.color.copy(this.light.color); } } -const jx = /* @__PURE__ */ new ve(), G2 = /* @__PURE__ */ new si(), nD = /* @__PURE__ */ new si(); -class z7 extends gy { +const jx = /* @__PURE__ */ new ge(), G2 = /* @__PURE__ */ new Kr(), rD = /* @__PURE__ */ new Kr(); +class X7 extends xy { constructor(e) { - const t = v4(e), r = new ui(), i = [], o = [], l = new Pn(0, 0, 1), d = new Pn(0, 1, 0); - for (let m = 0; m < t.length; m++) { - const S = t[m]; - S.parent && S.parent.isBone && (i.push(0, 0, 0), i.push(0, 0, 0), o.push(l.r, l.g, l.b), o.push(d.r, d.g, d.b)); + const t = Dk(e), r = new oi(), i = [], s = [], l = new Un(0, 0, 1), d = new Un(0, 1, 0); + for (let g = 0; g < t.length; g++) { + const _ = t[g]; + _.parent && _.parent.isBone && (i.push(0, 0, 0), i.push(0, 0, 0), s.push(l.r, l.g, l.b), s.push(d.r, d.g, d.b)); } - r.setAttribute("position", new sr(i, 3)), r.setAttribute("color", new sr(o, 3)); - const h = new ph({ vertexColors: !0, depthTest: !1, depthWrite: !1, toneMapped: !1, transparent: !0 }); - super(r, h), this.isSkeletonHelper = !0, this.type = "SkeletonHelper", this.root = e, this.bones = t, this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1; + r.setAttribute("position", new sr(i, 3)), r.setAttribute("color", new sr(s, 3)); + const p = new mh({ vertexColors: !0, depthTest: !1, depthWrite: !1, toneMapped: !1, transparent: !0 }); + super(r, p), this.isSkeletonHelper = !0, this.type = "SkeletonHelper", this.root = e, this.bones = t, this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1; } updateMatrixWorld(e) { const t = this.bones, r = this.geometry, i = r.getAttribute("position"); - nD.copy(this.root.matrixWorld).invert(); - for (let o = 0, l = 0; o < t.length; o++) { - const d = t[o]; - d.parent && d.parent.isBone && (G2.multiplyMatrices(nD, d.matrixWorld), jx.setFromMatrixPosition(G2), i.setXYZ(l, jx.x, jx.y, jx.z), G2.multiplyMatrices(nD, d.parent.matrixWorld), jx.setFromMatrixPosition(G2), i.setXYZ(l + 1, jx.x, jx.y, jx.z), l += 2); + rD.copy(this.root.matrixWorld).invert(); + for (let s = 0, l = 0; s < t.length; s++) { + const d = t[s]; + d.parent && d.parent.isBone && (G2.multiplyMatrices(rD, d.matrixWorld), jx.setFromMatrixPosition(G2), i.setXYZ(l, jx.x, jx.y, jx.z), G2.multiplyMatrices(rD, d.parent.matrixWorld), jx.setFromMatrixPosition(G2), i.setXYZ(l + 1, jx.x, jx.y, jx.z), l += 2); } r.getAttribute("position").needsUpdate = !0, super.updateMatrixWorld(e); } } -function v4(a) { +function Dk(a) { const e = []; a.isBone === !0 && e.push(a); for (let t = 0; t < a.children.length; t++) - e.push.apply(e, v4(a.children[t])); + e.push.apply(e, Dk(a.children[t])); return e; } -class N7 extends zn { +class q7 extends Fn { constructor(e, t, r) { - const i = new sg(t, 4, 2), o = new lg({ wireframe: !0, fog: !1, toneMapped: !1 }); - super(i, o), this.light = e, this.light.updateMatrixWorld(), this.color = r, this.type = "PointLightHelper", this.matrix = this.light.matrixWorld, this.matrixAutoUpdate = !1, this.update(); + const i = new ug(t, 4, 2), s = new fg({ wireframe: !0, fog: !1, toneMapped: !1 }); + super(i, s), this.light = e, this.light.updateMatrixWorld(), this.color = r, this.type = "PointLightHelper", this.matrix = this.light.matrixWorld, this.matrixAutoUpdate = !1, this.update(); } dispose() { this.geometry.dispose(), this.material.dispose(); @@ -18768,14 +18768,14 @@ class N7 extends zn { this.color !== void 0 ? this.material.color.set(this.color) : this.material.color.copy(this.light.color); } } -const F7 = /* @__PURE__ */ new ve(), YU = /* @__PURE__ */ new Pn(), XU = /* @__PURE__ */ new Pn(); -class k7 extends Xa { +const Q7 = /* @__PURE__ */ new ge(), QU = /* @__PURE__ */ new Un(), ZU = /* @__PURE__ */ new Un(); +class Z7 extends Xa { constructor(e, t, r) { super(), this.light = e, this.light.updateMatrixWorld(), this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1, this.color = r; - const i = new rg(t); - i.rotateY(Math.PI * 0.5), this.material = new lg({ wireframe: !0, fog: !1, toneMapped: !1 }), this.color === void 0 && (this.material.vertexColors = !0); - const o = i.getAttribute("position"), l = new Float32Array(o.count * 3); - i.setAttribute("color", new os(l, 3)), this.add(new zn(i, this.material)), this.update(); + const i = new sg(t); + i.rotateY(Math.PI * 0.5), this.material = new fg({ wireframe: !0, fog: !1, toneMapped: !1 }), this.color === void 0 && (this.material.vertexColors = !0); + const s = i.getAttribute("position"), l = new Float32Array(s.count * 3); + i.setAttribute("color", new ls(l, 3)), this.add(new Fn(i, this.material)), this.update(); } dispose() { this.children[0].geometry.dispose(), this.children[0].material.dispose(); @@ -18786,59 +18786,59 @@ class k7 extends Xa { this.material.color.set(this.color); else { const t = e.geometry.getAttribute("color"); - YU.copy(this.light.color), XU.copy(this.light.groundColor); + QU.copy(this.light.color), ZU.copy(this.light.groundColor); for (let r = 0, i = t.count; r < i; r++) { - const o = r < i / 2 ? YU : XU; - t.setXYZ(r, o.r, o.g, o.b); + const s = r < i / 2 ? QU : ZU; + t.setXYZ(r, s.r, s.g, s.b); } t.needsUpdate = !0; } - e.lookAt(F7.setFromMatrixPosition(this.light.matrixWorld).negate()); + e.lookAt(Q7.setFromMatrixPosition(this.light.matrixWorld).negate()); } } -class I7 extends gy { +class J7 extends xy { constructor(e = 10, t = 10, r = 4473924, i = 8947848) { - r = new Pn(r), i = new Pn(i); - const o = t / 2, l = e / t, d = e / 2, h = [], m = []; - for (let T = 0, C = 0, D = -d; T <= t; T++, D += l) { - h.push(-d, 0, D, d, 0, D), h.push(D, 0, -d, D, 0, d); - const P = T === o ? r : i; - P.toArray(m, C), C += 3, P.toArray(m, C), C += 3, P.toArray(m, C), C += 3, P.toArray(m, C), C += 3; - } - const S = new ui(); - S.setAttribute("position", new sr(h, 3)), S.setAttribute("color", new sr(m, 3)); - const _ = new ph({ vertexColors: !0, toneMapped: !1 }); - super(S, _), this.type = "GridHelper"; - } -} -class B7 extends gy { - constructor(e = 10, t = 16, r = 8, i = 64, o = 4473924, l = 8947848) { - o = new Pn(o), l = new Pn(l); - const d = [], h = []; - for (let _ = 0; _ <= t; _++) { - const T = _ / t * (Math.PI * 2), C = Math.sin(T) * e, D = Math.cos(T) * e; - d.push(0, 0, 0), d.push(C, 0, D); - const P = _ & 1 ? o : l; - h.push(P.r, P.g, P.b), h.push(P.r, P.g, P.b); - } - for (let _ = 0; _ <= r; _++) { - const T = _ & 1 ? o : l, C = e - e / r * _; + r = new Un(r), i = new Un(i); + const s = t / 2, l = e / t, d = e / 2, p = [], g = []; + for (let T = 0, R = 0, D = -d; T <= t; T++, D += l) { + p.push(-d, 0, D, d, 0, D), p.push(D, 0, -d, D, 0, d); + const O = T === s ? r : i; + O.toArray(g, R), R += 3, O.toArray(g, R), R += 3, O.toArray(g, R), R += 3, O.toArray(g, R), R += 3; + } + const _ = new oi(); + _.setAttribute("position", new sr(p, 3)), _.setAttribute("color", new sr(g, 3)); + const w = new mh({ vertexColors: !0, toneMapped: !1 }); + super(_, w), this.type = "GridHelper"; + } +} +class K7 extends xy { + constructor(e = 10, t = 16, r = 8, i = 64, s = 4473924, l = 8947848) { + s = new Un(s), l = new Un(l); + const d = [], p = []; + for (let w = 0; w <= t; w++) { + const T = w / t * (Math.PI * 2), R = Math.sin(T) * e, D = Math.cos(T) * e; + d.push(0, 0, 0), d.push(R, 0, D); + const O = w & 1 ? s : l; + p.push(O.r, O.g, O.b), p.push(O.r, O.g, O.b); + } + for (let w = 0; w <= r; w++) { + const T = w & 1 ? s : l, R = e - e / r * w; for (let D = 0; D < i; D++) { - let P = D / i * (Math.PI * 2), U = Math.sin(P) * C, B = Math.cos(P) * C; - d.push(U, 0, B), h.push(T.r, T.g, T.b), P = (D + 1) / i * (Math.PI * 2), U = Math.sin(P) * C, B = Math.cos(P) * C, d.push(U, 0, B), h.push(T.r, T.g, T.b); + let O = D / i * (Math.PI * 2), U = Math.sin(O) * R, H = Math.cos(O) * R; + d.push(U, 0, H), p.push(T.r, T.g, T.b), O = (D + 1) / i * (Math.PI * 2), U = Math.sin(O) * R, H = Math.cos(O) * R, d.push(U, 0, H), p.push(T.r, T.g, T.b); } } - const m = new ui(); - m.setAttribute("position", new sr(d, 3)), m.setAttribute("color", new sr(h, 3)); - const S = new ph({ vertexColors: !0, toneMapped: !1 }); - super(m, S), this.type = "PolarGridHelper"; + const g = new oi(); + g.setAttribute("position", new sr(d, 3)), g.setAttribute("color", new sr(p, 3)); + const _ = new mh({ vertexColors: !0, toneMapped: !1 }); + super(g, _), this.type = "PolarGridHelper"; } } -const qU = /* @__PURE__ */ new ve(), W2 = /* @__PURE__ */ new ve(), QU = /* @__PURE__ */ new ve(); -class H7 extends Xa { +const JU = /* @__PURE__ */ new ge(), W2 = /* @__PURE__ */ new ge(), KU = /* @__PURE__ */ new ge(); +class $7 extends Xa { constructor(e, t, r) { super(), this.light = e, this.light.updateMatrixWorld(), this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1, this.color = r, t === void 0 && (t = 1); - let i = new ui(); + let i = new oi(); i.setAttribute("position", new sr([ -t, t, @@ -18856,63 +18856,63 @@ class H7 extends Xa { t, 0 ], 3)); - const o = new ph({ fog: !1, toneMapped: !1 }); - this.lightPlane = new ch(i, o), this.add(this.lightPlane), i = new ui(), i.setAttribute("position", new sr([0, 0, 0, 0, 0, 1], 3)), this.targetLine = new ch(i, o), this.add(this.targetLine), this.update(); + const s = new mh({ fog: !1, toneMapped: !1 }); + this.lightPlane = new fh(i, s), this.add(this.lightPlane), i = new oi(), i.setAttribute("position", new sr([0, 0, 0, 0, 0, 1], 3)), this.targetLine = new fh(i, s), this.add(this.targetLine), this.update(); } dispose() { this.lightPlane.geometry.dispose(), this.lightPlane.material.dispose(), this.targetLine.geometry.dispose(), this.targetLine.material.dispose(); } update() { - qU.setFromMatrixPosition(this.light.matrixWorld), W2.setFromMatrixPosition(this.light.target.matrixWorld), QU.subVectors(W2, qU), this.lightPlane.lookAt(W2), this.color !== void 0 ? (this.lightPlane.material.color.set(this.color), this.targetLine.material.color.set(this.color)) : (this.lightPlane.material.color.copy(this.light.color), this.targetLine.material.color.copy(this.light.color)), this.targetLine.lookAt(W2), this.targetLine.scale.z = QU.length(); + JU.setFromMatrixPosition(this.light.matrixWorld), W2.setFromMatrixPosition(this.light.target.matrixWorld), KU.subVectors(W2, JU), this.lightPlane.lookAt(W2), this.color !== void 0 ? (this.lightPlane.material.color.set(this.color), this.targetLine.material.color.set(this.color)) : (this.lightPlane.material.color.copy(this.light.color), this.targetLine.material.color.copy(this.light.color)), this.targetLine.lookAt(W2), this.targetLine.scale.z = KU.length(); } } -const j2 = /* @__PURE__ */ new ve(), bu = /* @__PURE__ */ new pw(); -class V7 extends gy { +const j2 = /* @__PURE__ */ new ge(), Eu = /* @__PURE__ */ new pb(); +class e9 extends xy { constructor(e) { - const t = new ui(), r = new ph({ color: 16777215, vertexColors: !0, toneMapped: !1 }), i = [], o = [], l = {}; + const t = new oi(), r = new mh({ color: 16777215, vertexColors: !0, toneMapped: !1 }), i = [], s = [], l = {}; d("n1", "n2"), d("n2", "n4"), d("n4", "n3"), d("n3", "n1"), d("f1", "f2"), d("f2", "f4"), d("f4", "f3"), d("f3", "f1"), d("n1", "f1"), d("n2", "f2"), d("n3", "f3"), d("n4", "f4"), d("p", "n1"), d("p", "n2"), d("p", "n3"), d("p", "n4"), d("u1", "u2"), d("u2", "u3"), d("u3", "u1"), d("c", "t"), d("p", "c"), d("cn1", "cn2"), d("cn3", "cn4"), d("cf1", "cf2"), d("cf3", "cf4"); - function d(D, P) { - h(D), h(P); + function d(D, O) { + p(D), p(O); } - function h(D) { - i.push(0, 0, 0), o.push(0, 0, 0), l[D] === void 0 && (l[D] = []), l[D].push(i.length / 3 - 1); + function p(D) { + i.push(0, 0, 0), s.push(0, 0, 0), l[D] === void 0 && (l[D] = []), l[D].push(i.length / 3 - 1); } - t.setAttribute("position", new sr(i, 3)), t.setAttribute("color", new sr(o, 3)), super(t, r), this.type = "CameraHelper", this.camera = e, this.camera.updateProjectionMatrix && this.camera.updateProjectionMatrix(), this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1, this.pointMap = l, this.update(); - const m = new Pn(16755200), S = new Pn(16711680), _ = new Pn(43775), T = new Pn(16777215), C = new Pn(3355443); - this.setColors(m, S, _, T, C); + t.setAttribute("position", new sr(i, 3)), t.setAttribute("color", new sr(s, 3)), super(t, r), this.type = "CameraHelper", this.camera = e, this.camera.updateProjectionMatrix && this.camera.updateProjectionMatrix(), this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1, this.pointMap = l, this.update(); + const g = new Un(16755200), _ = new Un(16711680), w = new Un(43775), T = new Un(16777215), R = new Un(3355443); + this.setColors(g, _, w, T, R); } - setColors(e, t, r, i, o) { + setColors(e, t, r, i, s) { const d = this.geometry.getAttribute("color"); - d.setXYZ(0, e.r, e.g, e.b), d.setXYZ(1, e.r, e.g, e.b), d.setXYZ(2, e.r, e.g, e.b), d.setXYZ(3, e.r, e.g, e.b), d.setXYZ(4, e.r, e.g, e.b), d.setXYZ(5, e.r, e.g, e.b), d.setXYZ(6, e.r, e.g, e.b), d.setXYZ(7, e.r, e.g, e.b), d.setXYZ(8, e.r, e.g, e.b), d.setXYZ(9, e.r, e.g, e.b), d.setXYZ(10, e.r, e.g, e.b), d.setXYZ(11, e.r, e.g, e.b), d.setXYZ(12, e.r, e.g, e.b), d.setXYZ(13, e.r, e.g, e.b), d.setXYZ(14, e.r, e.g, e.b), d.setXYZ(15, e.r, e.g, e.b), d.setXYZ(16, e.r, e.g, e.b), d.setXYZ(17, e.r, e.g, e.b), d.setXYZ(18, e.r, e.g, e.b), d.setXYZ(19, e.r, e.g, e.b), d.setXYZ(20, e.r, e.g, e.b), d.setXYZ(21, e.r, e.g, e.b), d.setXYZ(22, e.r, e.g, e.b), d.setXYZ(23, e.r, e.g, e.b), d.setXYZ(24, t.r, t.g, t.b), d.setXYZ(25, t.r, t.g, t.b), d.setXYZ(26, t.r, t.g, t.b), d.setXYZ(27, t.r, t.g, t.b), d.setXYZ(28, t.r, t.g, t.b), d.setXYZ(29, t.r, t.g, t.b), d.setXYZ(30, t.r, t.g, t.b), d.setXYZ(31, t.r, t.g, t.b), d.setXYZ(32, r.r, r.g, r.b), d.setXYZ(33, r.r, r.g, r.b), d.setXYZ(34, r.r, r.g, r.b), d.setXYZ(35, r.r, r.g, r.b), d.setXYZ(36, r.r, r.g, r.b), d.setXYZ(37, r.r, r.g, r.b), d.setXYZ(38, i.r, i.g, i.b), d.setXYZ(39, i.r, i.g, i.b), d.setXYZ(40, o.r, o.g, o.b), d.setXYZ(41, o.r, o.g, o.b), d.setXYZ(42, o.r, o.g, o.b), d.setXYZ(43, o.r, o.g, o.b), d.setXYZ(44, o.r, o.g, o.b), d.setXYZ(45, o.r, o.g, o.b), d.setXYZ(46, o.r, o.g, o.b), d.setXYZ(47, o.r, o.g, o.b), d.setXYZ(48, o.r, o.g, o.b), d.setXYZ(49, o.r, o.g, o.b), d.needsUpdate = !0; + d.setXYZ(0, e.r, e.g, e.b), d.setXYZ(1, e.r, e.g, e.b), d.setXYZ(2, e.r, e.g, e.b), d.setXYZ(3, e.r, e.g, e.b), d.setXYZ(4, e.r, e.g, e.b), d.setXYZ(5, e.r, e.g, e.b), d.setXYZ(6, e.r, e.g, e.b), d.setXYZ(7, e.r, e.g, e.b), d.setXYZ(8, e.r, e.g, e.b), d.setXYZ(9, e.r, e.g, e.b), d.setXYZ(10, e.r, e.g, e.b), d.setXYZ(11, e.r, e.g, e.b), d.setXYZ(12, e.r, e.g, e.b), d.setXYZ(13, e.r, e.g, e.b), d.setXYZ(14, e.r, e.g, e.b), d.setXYZ(15, e.r, e.g, e.b), d.setXYZ(16, e.r, e.g, e.b), d.setXYZ(17, e.r, e.g, e.b), d.setXYZ(18, e.r, e.g, e.b), d.setXYZ(19, e.r, e.g, e.b), d.setXYZ(20, e.r, e.g, e.b), d.setXYZ(21, e.r, e.g, e.b), d.setXYZ(22, e.r, e.g, e.b), d.setXYZ(23, e.r, e.g, e.b), d.setXYZ(24, t.r, t.g, t.b), d.setXYZ(25, t.r, t.g, t.b), d.setXYZ(26, t.r, t.g, t.b), d.setXYZ(27, t.r, t.g, t.b), d.setXYZ(28, t.r, t.g, t.b), d.setXYZ(29, t.r, t.g, t.b), d.setXYZ(30, t.r, t.g, t.b), d.setXYZ(31, t.r, t.g, t.b), d.setXYZ(32, r.r, r.g, r.b), d.setXYZ(33, r.r, r.g, r.b), d.setXYZ(34, r.r, r.g, r.b), d.setXYZ(35, r.r, r.g, r.b), d.setXYZ(36, r.r, r.g, r.b), d.setXYZ(37, r.r, r.g, r.b), d.setXYZ(38, i.r, i.g, i.b), d.setXYZ(39, i.r, i.g, i.b), d.setXYZ(40, s.r, s.g, s.b), d.setXYZ(41, s.r, s.g, s.b), d.setXYZ(42, s.r, s.g, s.b), d.setXYZ(43, s.r, s.g, s.b), d.setXYZ(44, s.r, s.g, s.b), d.setXYZ(45, s.r, s.g, s.b), d.setXYZ(46, s.r, s.g, s.b), d.setXYZ(47, s.r, s.g, s.b), d.setXYZ(48, s.r, s.g, s.b), d.setXYZ(49, s.r, s.g, s.b), d.needsUpdate = !0; } update() { const e = this.geometry, t = this.pointMap, r = 1, i = 1; - bu.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse), Xu("c", t, e, bu, 0, 0, -1), Xu("t", t, e, bu, 0, 0, 1), Xu("n1", t, e, bu, -r, -i, -1), Xu("n2", t, e, bu, r, -i, -1), Xu("n3", t, e, bu, -r, i, -1), Xu("n4", t, e, bu, r, i, -1), Xu("f1", t, e, bu, -r, -i, 1), Xu("f2", t, e, bu, r, -i, 1), Xu("f3", t, e, bu, -r, i, 1), Xu("f4", t, e, bu, r, i, 1), Xu("u1", t, e, bu, r * 0.7, i * 1.1, -1), Xu("u2", t, e, bu, -r * 0.7, i * 1.1, -1), Xu("u3", t, e, bu, 0, i * 2, -1), Xu("cf1", t, e, bu, -r, 0, 1), Xu("cf2", t, e, bu, r, 0, 1), Xu("cf3", t, e, bu, 0, -i, 1), Xu("cf4", t, e, bu, 0, i, 1), Xu("cn1", t, e, bu, -r, 0, -1), Xu("cn2", t, e, bu, r, 0, -1), Xu("cn3", t, e, bu, 0, -i, -1), Xu("cn4", t, e, bu, 0, i, -1), e.getAttribute("position").needsUpdate = !0; + Eu.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse), Qu("c", t, e, Eu, 0, 0, -1), Qu("t", t, e, Eu, 0, 0, 1), Qu("n1", t, e, Eu, -r, -i, -1), Qu("n2", t, e, Eu, r, -i, -1), Qu("n3", t, e, Eu, -r, i, -1), Qu("n4", t, e, Eu, r, i, -1), Qu("f1", t, e, Eu, -r, -i, 1), Qu("f2", t, e, Eu, r, -i, 1), Qu("f3", t, e, Eu, -r, i, 1), Qu("f4", t, e, Eu, r, i, 1), Qu("u1", t, e, Eu, r * 0.7, i * 1.1, -1), Qu("u2", t, e, Eu, -r * 0.7, i * 1.1, -1), Qu("u3", t, e, Eu, 0, i * 2, -1), Qu("cf1", t, e, Eu, -r, 0, 1), Qu("cf2", t, e, Eu, r, 0, 1), Qu("cf3", t, e, Eu, 0, -i, 1), Qu("cf4", t, e, Eu, 0, i, 1), Qu("cn1", t, e, Eu, -r, 0, -1), Qu("cn2", t, e, Eu, r, 0, -1), Qu("cn3", t, e, Eu, 0, -i, -1), Qu("cn4", t, e, Eu, 0, i, -1), e.getAttribute("position").needsUpdate = !0; } dispose() { this.geometry.dispose(), this.material.dispose(); } } -function Xu(a, e, t, r, i, o, l) { - j2.set(i, o, l).unproject(r); +function Qu(a, e, t, r, i, s, l) { + j2.set(i, s, l).unproject(r); const d = e[a]; if (d !== void 0) { - const h = t.getAttribute("position"); - for (let m = 0, S = d.length; m < S; m++) - h.setXYZ(d[m], j2.x, j2.y, j2.z); + const p = t.getAttribute("position"); + for (let g = 0, _ = d.length; g < _; g++) + p.setXYZ(d[g], j2.x, j2.y, j2.z); } } -const Y2 = /* @__PURE__ */ new og(); -class G7 extends gy { +const Y2 = /* @__PURE__ */ new cg(); +class t9 extends xy { constructor(e, t = 16776960) { - const r = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), i = new Float32Array(8 * 3), o = new ui(); - o.setIndex(new os(r, 1)), o.setAttribute("position", new os(i, 3)), super(o, new ph({ color: t, toneMapped: !1 })), this.object = e, this.type = "BoxHelper", this.matrixAutoUpdate = !1, this.update(); + const r = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), i = new Float32Array(8 * 3), s = new oi(); + s.setIndex(new ls(r, 1)), s.setAttribute("position", new ls(i, 3)), super(s, new mh({ color: t, toneMapped: !1 })), this.object = e, this.type = "BoxHelper", this.matrixAutoUpdate = !1, this.update(); } update(e) { if (e !== void 0 && console.warn("THREE.BoxHelper: .update() has no longer arguments."), this.object !== void 0 && Y2.setFromObject(this.object), Y2.isEmpty()) return; - const t = Y2.min, r = Y2.max, i = this.geometry.attributes.position, o = i.array; - o[0] = r.x, o[1] = r.y, o[2] = r.z, o[3] = t.x, o[4] = r.y, o[5] = r.z, o[6] = t.x, o[7] = t.y, o[8] = r.z, o[9] = r.x, o[10] = t.y, o[11] = r.z, o[12] = r.x, o[13] = r.y, o[14] = t.z, o[15] = t.x, o[16] = r.y, o[17] = t.z, o[18] = t.x, o[19] = t.y, o[20] = t.z, o[21] = r.x, o[22] = t.y, o[23] = t.z, i.needsUpdate = !0, this.geometry.computeBoundingSphere(); + const t = Y2.min, r = Y2.max, i = this.geometry.attributes.position, s = i.array; + s[0] = r.x, s[1] = r.y, s[2] = r.z, s[3] = t.x, s[4] = r.y, s[5] = r.z, s[6] = t.x, s[7] = t.y, s[8] = r.z, s[9] = r.x, s[10] = t.y, s[11] = r.z, s[12] = r.x, s[13] = r.y, s[14] = t.z, s[15] = t.x, s[16] = r.y, s[17] = t.z, s[18] = t.x, s[19] = t.y, s[20] = t.z, s[21] = r.x, s[22] = t.y, s[23] = t.z, i.needsUpdate = !0, this.geometry.computeBoundingSphere(); } setFromObject(e) { return this.object = e, this.update(), this; @@ -18921,32 +18921,32 @@ class G7 extends gy { return super.copy(e, t), this.object = e.object, this; } } -class W7 extends gy { +class n9 extends xy { constructor(e, t = 16776960) { - const r = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), i = [1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1], o = new ui(); - o.setIndex(new os(r, 1)), o.setAttribute("position", new sr(i, 3)), super(o, new ph({ color: t, toneMapped: !1 })), this.box = e, this.type = "Box3Helper", this.geometry.computeBoundingSphere(); + const r = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), i = [1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1], s = new oi(); + s.setIndex(new ls(r, 1)), s.setAttribute("position", new sr(i, 3)), super(s, new mh({ color: t, toneMapped: !1 })), this.box = e, this.type = "Box3Helper", this.geometry.computeBoundingSphere(); } updateMatrixWorld(e) { const t = this.box; t.isEmpty() || (t.getCenter(this.position), t.getSize(this.scale), this.scale.multiplyScalar(0.5), super.updateMatrixWorld(e)); } } -class j7 extends ch { +class r9 extends fh { constructor(e, t = 1, r = 16776960) { - const i = r, o = [1, -1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, 1, 1, 0], l = new ui(); - l.setAttribute("position", new sr(o, 3)), l.computeBoundingSphere(), super(l, new ph({ color: i, toneMapped: !1 })), this.type = "PlaneHelper", this.plane = e, this.size = t; - const d = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0], h = new ui(); - h.setAttribute("position", new sr(d, 3)), h.computeBoundingSphere(), this.add(new zn(h, new lg({ color: i, opacity: 0.2, transparent: !0, depthWrite: !1, toneMapped: !1 }))); + const i = r, s = [1, -1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, 1, 1, 0], l = new oi(); + l.setAttribute("position", new sr(s, 3)), l.computeBoundingSphere(), super(l, new mh({ color: i, toneMapped: !1 })), this.type = "PlaneHelper", this.plane = e, this.size = t; + const d = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0], p = new oi(); + p.setAttribute("position", new sr(d, 3)), p.computeBoundingSphere(), this.add(new Fn(p, new fg({ color: i, opacity: 0.2, transparent: !0, depthWrite: !1, toneMapped: !1 }))); } updateMatrixWorld(e) { this.position.set(0, 0, 0), this.scale.set(0.5 * this.size, 0.5 * this.size, 1), this.lookAt(this.plane.normal), this.translateZ(-this.plane.constant), super.updateMatrixWorld(e); } } -const ZU = /* @__PURE__ */ new ve(); -let X2, rD; -class Y7 extends Xa { - constructor(e = new ve(0, 0, 1), t = new ve(0, 0, 0), r = 1, i = 16776960, o = r * 0.2, l = o * 0.2) { - super(), this.type = "ArrowHelper", X2 === void 0 && (X2 = new ui(), X2.setAttribute("position", new sr([0, 0, 0, 0, 1, 0], 3)), rD = new Ko(0, 0.5, 1, 5, 1), rD.translate(0, -0.5, 0)), this.position.copy(t), this.line = new ch(X2, new ph({ color: i, toneMapped: !1 })), this.line.matrixAutoUpdate = !1, this.add(this.line), this.cone = new zn(rD, new lg({ color: i, toneMapped: !1 })), this.cone.matrixAutoUpdate = !1, this.add(this.cone), this.setDirection(e), this.setLength(r, o, l); +const $U = /* @__PURE__ */ new ge(); +let X2, iD; +class i9 extends Xa { + constructor(e = new ge(0, 0, 1), t = new ge(0, 0, 0), r = 1, i = 16776960, s = r * 0.2, l = s * 0.2) { + super(), this.type = "ArrowHelper", X2 === void 0 && (X2 = new oi(), X2.setAttribute("position", new sr([0, 0, 0, 0, 1, 0], 3)), iD = new Ko(0, 0.5, 1, 5, 1), iD.translate(0, -0.5, 0)), this.position.copy(t), this.line = new fh(X2, new mh({ color: i, toneMapped: !1 })), this.line.matrixAutoUpdate = !1, this.add(this.line), this.cone = new Fn(iD, new fg({ color: i, toneMapped: !1 })), this.cone.matrixAutoUpdate = !1, this.add(this.cone), this.setDirection(e), this.setLength(r, s, l); } setDirection(e) { if (e.y > 0.99999) @@ -18954,9 +18954,9 @@ class Y7 extends Xa { else if (e.y < -0.99999) this.quaternion.set(1, 0, 0, 0); else { - ZU.set(e.z, 0, -e.x).normalize(); + $U.set(e.z, 0, -e.x).normalize(); const t = Math.acos(e.y); - this.quaternion.setFromAxisAngle(ZU, t); + this.quaternion.setFromAxisAngle($U, t); } } setLength(e, t = e * 0.2, r = t * 0.2) { @@ -18969,7 +18969,7 @@ class Y7 extends Xa { return super.copy(e, !1), this.line.copy(e.line), this.cone.copy(e.cone), this; } } -class X7 extends gy { +class a9 extends xy { constructor(e = 1) { const t = [ 0, @@ -19009,25 +19009,25 @@ class X7 extends gy { 0, 0.6, 1 - ], i = new ui(); + ], i = new oi(); i.setAttribute("position", new sr(t, 3)), i.setAttribute("color", new sr(r, 3)); - const o = new ph({ vertexColors: !0, toneMapped: !1 }); - super(i, o), this.type = "AxesHelper"; + const s = new mh({ vertexColors: !0, toneMapped: !1 }); + super(i, s), this.type = "AxesHelper"; } setColors(e, t, r) { - const i = new Pn(), o = this.geometry.attributes.color.array; - return i.set(e), i.toArray(o, 0), i.toArray(o, 3), i.set(t), i.toArray(o, 6), i.toArray(o, 9), i.set(r), i.toArray(o, 12), i.toArray(o, 15), this.geometry.attributes.color.needsUpdate = !0, this; + const i = new Un(), s = this.geometry.attributes.color.array; + return i.set(e), i.toArray(s, 0), i.toArray(s, 3), i.set(t), i.toArray(s, 6), i.toArray(s, 9), i.set(r), i.toArray(s, 12), i.toArray(s, 15), this.geometry.attributes.color.needsUpdate = !0, this; } dispose() { this.geometry.dispose(), this.material.dispose(); } } -class q7 { +class s9 { constructor() { - this.type = "ShapePath", this.color = new Pn(), this.subPaths = [], this.currentPath = null; + this.type = "ShapePath", this.color = new Un(), this.subPaths = [], this.currentPath = null; } moveTo(e, t) { - return this.currentPath = new NM(), this.subPaths.push(this.currentPath), this.currentPath.moveTo(e, t), this; + return this.currentPath = new FM(), this.subPaths.push(this.currentPath), this.currentPath.moveTo(e, t), this; } lineTo(e, t) { return this.currentPath.lineTo(e, t), this; @@ -19035,598 +19035,598 @@ class q7 { quadraticCurveTo(e, t, r, i) { return this.currentPath.quadraticCurveTo(e, t, r, i), this; } - bezierCurveTo(e, t, r, i, o, l) { - return this.currentPath.bezierCurveTo(e, t, r, i, o, l), this; + bezierCurveTo(e, t, r, i, s, l) { + return this.currentPath.bezierCurveTo(e, t, r, i, s, l), this; } splineThru(e) { return this.currentPath.splineThru(e), this; } toShapes(e, t) { - function r(k) { - const V = []; - for (let I = 0, X = k.length; I < X; I++) { - const J = k[I], $ = new IS(); - $.curves = J.curves, V.push($); - } - return V; - } - function i(k, V) { - const I = V.length; - let X = !1; - for (let J = I - 1, $ = 0; $ < I; J = $++) { - let W = V[J], ne = V[$], ie = ne.x - W.x, fe = ne.y - W.y; - if (Math.abs(fe) > Number.EPSILON) { - if (fe < 0 && (W = V[$], ie = -ie, ne = V[J], fe = -fe), k.y < W.y || k.y > ne.y) + function r(I) { + const G = []; + for (let B = 0, Q = I.length; B < Q; B++) { + const K = I[B], te = new W_(); + te.curves = K.curves, G.push(te); + } + return G; + } + function i(I, G) { + const B = G.length; + let Q = !1; + for (let K = B - 1, te = 0; te < B; K = te++) { + let Y = G[K], re = G[te], se = re.x - Y.x, ce = re.y - Y.y; + if (Math.abs(ce) > Number.EPSILON) { + if (ce < 0 && (Y = G[te], se = -se, re = G[K], ce = -ce), I.y < Y.y || I.y > re.y) continue; - if (k.y === W.y) { - if (k.x === W.x) + if (I.y === Y.y) { + if (I.x === Y.x) return !0; } else { - const le = fe * (k.x - W.x) - ie * (k.y - W.y); - if (le === 0) + const ue = ce * (I.x - Y.x) - se * (I.y - Y.y); + if (ue === 0) return !0; - if (le < 0) + if (ue < 0) continue; - X = !X; + Q = !Q; } } else { - if (k.y !== W.y) + if (I.y !== Y.y) continue; - if (ne.x <= k.x && k.x <= W.x || W.x <= k.x && k.x <= ne.x) + if (re.x <= I.x && I.x <= Y.x || Y.x <= I.x && I.x <= re.x) return !0; } } - return X; + return Q; } - const o = fy.isClockWise, l = this.subPaths; + const s = hy.isClockWise, l = this.subPaths; if (l.length === 0) return []; if (t === !0) return r(l); - let d, h, m; - const S = []; + let d, p, g; + const _ = []; if (l.length === 1) - return h = l[0], m = new IS(), m.curves = h.curves, S.push(m), S; - let _ = !o(l[0].getPoints()); - _ = e ? !_ : _; - const T = [], C = []; - let D = [], P = 0, U; - C[P] = void 0, D[P] = []; - for (let k = 0, V = l.length; k < V; k++) - h = l[k], U = h.getPoints(), d = o(U), d = e ? !d : d, d ? (!_ && C[P] && P++, C[P] = { s: new IS(), p: U }, C[P].s.curves = h.curves, _ && P++, D[P] = []) : D[P].push({ h, p: U[0] }); - if (!C[0]) + return p = l[0], g = new W_(), g.curves = p.curves, _.push(g), _; + let w = !s(l[0].getPoints()); + w = e ? !w : w; + const T = [], R = []; + let D = [], O = 0, U; + R[O] = void 0, D[O] = []; + for (let I = 0, G = l.length; I < G; I++) + p = l[I], U = p.getPoints(), d = s(U), d = e ? !d : d, d ? (!w && R[O] && O++, R[O] = { s: new W_(), p: U }, R[O].s.curves = p.curves, w && O++, D[O] = []) : D[O].push({ h: p, p: U[0] }); + if (!R[0]) return r(l); - if (C.length > 1) { - let k = !1, V = 0; - for (let I = 0, X = C.length; I < X; I++) - T[I] = []; - for (let I = 0, X = C.length; I < X; I++) { - const J = D[I]; - for (let $ = 0; $ < J.length; $++) { - const W = J[$]; - let ne = !0; - for (let ie = 0; ie < C.length; ie++) - i(W.p, C[ie].p) && (I !== ie && V++, ne ? (ne = !1, T[ie].push(W)) : k = !0); - ne && T[I].push(W); - } - } - V > 0 && k === !1 && (D = T); - } - let B; - for (let k = 0, V = C.length; k < V; k++) { - m = C[k].s, S.push(m), B = D[k]; - for (let I = 0, X = B.length; I < X; I++) - m.holes.push(B[I].h); + if (R.length > 1) { + let I = !1, G = 0; + for (let B = 0, Q = R.length; B < Q; B++) + T[B] = []; + for (let B = 0, Q = R.length; B < Q; B++) { + const K = D[B]; + for (let te = 0; te < K.length; te++) { + const Y = K[te]; + let re = !0; + for (let se = 0; se < R.length; se++) + i(Y.p, R[se].p) && (B !== se && G++, re ? (re = !1, T[se].push(Y)) : I = !0); + re && T[B].push(Y); + } + } + G > 0 && I === !1 && (D = T); + } + let H; + for (let I = 0, G = R.length; I < G; I++) { + g = R[I].s, _.push(g), H = D[I]; + for (let B = 0, Q = H.length; B < Q; B++) + g.holes.push(H[B].h); } - return S; + return _; } } -const R0 = /* @__PURE__ */ Q7(); -function Q7() { +const A0 = /* @__PURE__ */ o9(); +function o9() { const a = new ArrayBuffer(4), e = new Float32Array(a), t = new Uint32Array(a), r = new Uint32Array(512), i = new Uint32Array(512); - for (let h = 0; h < 256; ++h) { - const m = h - 127; - m < -27 ? (r[h] = 0, r[h | 256] = 32768, i[h] = 24, i[h | 256] = 24) : m < -14 ? (r[h] = 1024 >> -m - 14, r[h | 256] = 1024 >> -m - 14 | 32768, i[h] = -m - 1, i[h | 256] = -m - 1) : m <= 15 ? (r[h] = m + 15 << 10, r[h | 256] = m + 15 << 10 | 32768, i[h] = 13, i[h | 256] = 13) : m < 128 ? (r[h] = 31744, r[h | 256] = 64512, i[h] = 24, i[h | 256] = 24) : (r[h] = 31744, r[h | 256] = 64512, i[h] = 13, i[h | 256] = 13); - } - const o = new Uint32Array(2048), l = new Uint32Array(64), d = new Uint32Array(64); - for (let h = 1; h < 1024; ++h) { - let m = h << 13, S = 0; - for (; (m & 8388608) === 0; ) - m <<= 1, S -= 8388608; - m &= -8388609, S += 947912704, o[h] = m | S; - } - for (let h = 1024; h < 2048; ++h) - o[h] = 939524096 + (h - 1024 << 13); - for (let h = 1; h < 31; ++h) - l[h] = h << 23; + for (let p = 0; p < 256; ++p) { + const g = p - 127; + g < -27 ? (r[p] = 0, r[p | 256] = 32768, i[p] = 24, i[p | 256] = 24) : g < -14 ? (r[p] = 1024 >> -g - 14, r[p | 256] = 1024 >> -g - 14 | 32768, i[p] = -g - 1, i[p | 256] = -g - 1) : g <= 15 ? (r[p] = g + 15 << 10, r[p | 256] = g + 15 << 10 | 32768, i[p] = 13, i[p | 256] = 13) : g < 128 ? (r[p] = 31744, r[p | 256] = 64512, i[p] = 24, i[p | 256] = 24) : (r[p] = 31744, r[p | 256] = 64512, i[p] = 13, i[p | 256] = 13); + } + const s = new Uint32Array(2048), l = new Uint32Array(64), d = new Uint32Array(64); + for (let p = 1; p < 1024; ++p) { + let g = p << 13, _ = 0; + for (; (g & 8388608) === 0; ) + g <<= 1, _ -= 8388608; + g &= -8388609, _ += 947912704, s[p] = g | _; + } + for (let p = 1024; p < 2048; ++p) + s[p] = 939524096 + (p - 1024 << 13); + for (let p = 1; p < 31; ++p) + l[p] = p << 23; l[31] = 1199570944, l[32] = 2147483648; - for (let h = 33; h < 63; ++h) - l[h] = 2147483648 + (h - 32 << 23); + for (let p = 33; p < 63; ++p) + l[p] = 2147483648 + (p - 32 << 23); l[63] = 3347054592; - for (let h = 1; h < 64; ++h) - h !== 32 && (d[h] = 1024); + for (let p = 1; p < 64; ++p) + p !== 32 && (d[p] = 1024); return { floatView: e, uint32View: t, baseTable: r, shiftTable: i, - mantissaTable: o, + mantissaTable: s, exponentTable: l, offsetTable: d }; } -function Z7(a) { - Math.abs(a) > 65504 && console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."), a = Qu(a, -65504, 65504), R0.floatView[0] = a; - const e = R0.uint32View[0], t = e >> 23 & 511; - return R0.baseTable[t] + ((e & 8388607) >> R0.shiftTable[t]); +function l9(a) { + Math.abs(a) > 65504 && console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."), a = Zu(a, -65504, 65504), A0.floatView[0] = a; + const e = A0.uint32View[0], t = e >> 23 & 511; + return A0.baseTable[t] + ((e & 8388607) >> A0.shiftTable[t]); } -function J7(a) { +function u9(a) { const e = a >> 10; - return R0.uint32View[0] = R0.mantissaTable[R0.offsetTable[e] + (a & 1023)] + R0.exponentTable[e], R0.floatView[0]; + return A0.uint32View[0] = A0.mantissaTable[A0.offsetTable[e] + (a & 1023)] + A0.exponentTable[e], A0.floatView[0]; } -var K7 = /* @__PURE__ */ Object.freeze({ +var c9 = /* @__PURE__ */ Object.freeze({ __proto__: null, - toHalfFloat: Z7, - fromHalfFloat: J7 + toHalfFloat: l9, + fromHalfFloat: u9 }); -class $7 extends ui { +class f9 extends oi { constructor() { console.error("THREE.ParametricGeometry has been moved to /examples/jsm/geometries/ParametricGeometry.js"), super(); } } -class e9 extends ui { +class d9 extends oi { constructor() { console.error("THREE.TextGeometry has been moved to /examples/jsm/geometries/TextGeometry.js"), super(); } } -function t9() { +function h9() { console.error("THREE.FontLoader has been moved to /examples/jsm/loaders/FontLoader.js"); } -function n9() { +function p9() { console.error("THREE.Font has been moved to /examples/jsm/loaders/FontLoader.js"); } -function r9() { +function m9() { console.error("THREE.ImmediateRenderObject has been removed."); } -class g4 extends po { +class v9 extends po { constructor(e, t, r) { console.error('THREE.WebGLMultisampleRenderTarget has been removed. Use a normal render target and set the "samples" property to greater 0 to enable multisampling.'), super(e, t, r), this.samples = 4; } } -class i9 extends JM { +class g9 extends JM { constructor(e, t, r, i) { console.warn("THREE.DataTexture2DArray has been renamed to DataArrayTexture."), super(e, t, r, i); } } -class a9 extends kC { +class y9 extends IC { constructor(e, t, r, i) { console.warn("THREE.DataTexture3D has been renamed to Data3DTexture."), super(e, t, r, i); } } typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: { - revision: U0 + revision: a1 } })); -typeof window < "u" && (window.__THREE__ ? console.warn("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ = U0); -const RC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +typeof window < "u" && (window.__THREE__ ? console.warn("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ = a1); +const x9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ACESFilmicToneMapping: G3, - AddEquation: AS, - AddOperation: WN, + AddEquation: L_, + AddOperation: iF, AdditiveAnimationBlendMode: Y3, - AdditiveBlending: _C, - AlphaFormat: eF, - AlwaysDepth: FN, - AlwaysStencilFunc: pF, - AmbientLight: c4, - AmbientLightProbe: u7, - AnimationClip: GM, - AnimationLoader: ZW, - AnimationMixer: R7, - AnimationObjectGroup: M7, - AnimationUtils: YW, - ArcCurve: kF, - ArrayCamera: RF, - ArrowHelper: Y7, - Audio: p4, - AudioAnalyser: m7, - AudioContext: gL, - AudioListener: d7, - AudioLoader: o7, - AxesHelper: X7, - BackSide: uf, + AdditiveBlending: wC, + AlphaFormat: pF, + AlwaysDepth: JN, + AlwaysStencilFunc: RF, + AmbientLight: Ek, + AmbientLightProbe: S7, + AnimationClip: WM, + AnimationLoader: l7, + AnimationMixer: B7, + AnimationObjectGroup: F7, + AnimationUtils: i7, + ArcCurve: KF, + ArrayCamera: VF, + ArrowHelper: i9, + Audio: Rk, + AudioAnalyser: C7, + AudioContext: vL, + AudioListener: E7, + AudioLoader: x7, + AxesHelper: a9, + BackSide: cf, BasicDepthPacking: o1, - BasicShadowMap: S5, + BasicShadowMap: FN, Bone: tL, - BooleanKeyframeTrack: ZS, - Box2: O7, - Box3: og, - Box3Helper: W7, - BoxBufferGeometry: cl, - BoxGeometry: cl, - BoxHelper: G7, - BufferAttribute: os, - BufferGeometry: ui, - BufferGeometryLoader: h4, - ByteType: QN, - Cache: YS, - Camera: pw, - CameraHelper: V7, - CanvasTexture: vW, - CapsuleBufferGeometry: $b, - CapsuleGeometry: $b, - CatmullRomCurve3: IF, - CineonToneMapping: XN, - CircleBufferGeometry: ew, - CircleGeometry: ew, - ClampToEdgeWrapping: Wh, - Clock: yL, - Color: Pn, - ColorKeyframeTrack: pL, - ColorManagement: vv, - CompressedTexture: FF, - CompressedTextureLoader: JW, - ConeBufferGeometry: tw, - ConeGeometry: tw, - CubeCamera: xF, + BooleanKeyframeTrack: eS, + Box2: j7, + Box3: cg, + Box3Helper: n9, + BoxBufferGeometry: fl, + BoxGeometry: fl, + BoxHelper: t9, + BufferAttribute: ls, + BufferGeometry: oi, + BufferGeometryLoader: Ck, + ByteType: uF, + Cache: Z_, + Camera: pb, + CameraHelper: e9, + CanvasTexture: RW, + CapsuleBufferGeometry: $w, + CapsuleGeometry: $w, + CatmullRomCurve3: $F, + CineonToneMapping: oF, + CircleBufferGeometry: eb, + CircleGeometry: eb, + ClampToEdgeWrapping: jh, + Clock: gL, + Color: Un, + ColorKeyframeTrack: hL, + ColorManagement: xv, + CompressedTexture: JF, + CompressedTextureLoader: u7, + ConeBufferGeometry: tb, + ConeGeometry: tb, + CubeCamera: OF, CubeReflectionMapping: t1, CubeRefractionMapping: n1, CubeTexture: eT, - CubeTextureLoader: KW, - CubeUVReflectionMapping: hw, - CubicBezierCurve: iL, - CubicBezierCurve3: BF, - CubicInterpolant: n4, - CullFaceBack: BD, - CullFaceFront: wN, - CullFaceFrontBack: x5, - CullFaceNone: bN, - Curve: ug, - CurvePath: VF, - CustomBlending: MN, - CustomToneMapping: qN, + CubeTextureLoader: c7, + CubeUVReflectionMapping: hb, + CubicBezierCurve: rL, + CubicBezierCurve3: ek, + CubicInterpolant: vk, + CullFaceBack: VD, + CullFaceFront: NN, + CullFaceFrontBack: O5, + CullFaceNone: zN, + Curve: dg, + CurvePath: nk, + CustomBlending: IN, + CustomToneMapping: lF, CylinderBufferGeometry: Ko, CylinderGeometry: Ko, - Cylindrical: P7, - Data3DTexture: kC, + Cylindrical: W7, + Data3DTexture: IC, DataArrayTexture: JM, - DataTexture: Yb, - DataTexture2DArray: i9, - DataTexture3D: a9, - DataTextureLoader: $W, - DataUtils: K7, - DecrementStencilOp: O5, - DecrementWrapStencilOp: z5, - DefaultLoadingManager: a4, + DataTexture: qw, + DataTexture2DArray: g9, + DataTexture3D: y9, + DataTextureLoader: f7, + DataUtils: c9, + DecrementStencilOp: Y5, + DecrementWrapStencilOp: q5, + DefaultLoadingManager: xk, DepthFormat: $x, DepthStencilFormat: r1, DepthTexture: K3, - DirectionalLight: u4, - DirectionalLightHelper: H7, - DiscreteInterpolant: r4, - DodecahedronBufferGeometry: nw, - DodecahedronGeometry: nw, - DoubleSide: Pp, - DstAlphaFactor: LN, - DstColorFactor: ON, - DynamicCopyUsage: Z5, - DynamicDrawUsage: W5, - DynamicReadUsage: X5, - EdgesGeometry: GF, - EllipseCurve: YC, - EqualDepth: IN, - EqualStencilFunc: I5, - EquirectangularReflectionMapping: TM, - EquirectangularRefractionMapping: CM, - Euler: QS, - EventDispatcher: Mm, - ExtrudeBufferGeometry: rw, - ExtrudeGeometry: rw, - FileLoader: P0, - FlatShading: EN, - Float16BufferAttribute: PH, + DirectionalLight: bk, + DirectionalLightHelper: $7, + DiscreteInterpolant: gk, + DodecahedronBufferGeometry: nb, + DodecahedronGeometry: nb, + DoubleSide: Yh, + DstAlphaFactor: jN, + DstColorFactor: XN, + DynamicCopyUsage: lH, + DynamicDrawUsage: B_, + DynamicReadUsage: aH, + EdgesGeometry: rk, + EllipseCurve: qC, + EqualDepth: $N, + EqualStencilFunc: K5, + EquirectangularReflectionMapping: CM, + EquirectangularRefractionMapping: RM, + Euler: $_, + EventDispatcher: Cm, + ExtrudeBufferGeometry: rb, + ExtrudeGeometry: rb, + FileLoader: O0, + FlatShading: kN, + Float16BufferAttribute: WH, Float32BufferAttribute: sr, - Float64BufferAttribute: OH, - FloatType: uy, - Fog: GC, - FogExp2: VC, - Font: n9, - FontLoader: t9, - FramebufferTexture: mW, - FrontSide: py, - Frustum: IC, - GLBufferAttribute: L7, - GLSL1: K5, - GLSL3: d3, - GreaterDepth: HN, - GreaterEqualDepth: BN, - GreaterEqualStencilFunc: G5, - GreaterStencilFunc: H5, - GridHelper: I7, - Group: Gb, - HalfFloatType: GS, - HemisphereLight: s4, - HemisphereLightHelper: k7, - HemisphereLightProbe: l7, - IcosahedronBufferGeometry: iw, - IcosahedronGeometry: iw, - ImageBitmapLoader: s7, - ImageLoader: WM, + Float64BufferAttribute: jH, + FloatType: fy, + Fog: WC, + FogExp2: GC, + Font: p9, + FontLoader: h9, + FramebufferTexture: CW, + FrontSide: vy, + Frustum: BC, + GLBufferAttribute: G7, + GLSL1: cH, + GLSL3: p3, + GreaterDepth: tF, + GreaterEqualDepth: eF, + GreaterEqualStencilFunc: nH, + GreaterStencilFunc: eH, + GridHelper: J7, + Group: jw, + HalfFloatType: X_, + HemisphereLight: _k, + HemisphereLightHelper: Z7, + HemisphereLightProbe: _7, + IcosahedronBufferGeometry: ib, + IcosahedronGeometry: ib, + ImageBitmapLoader: y7, + ImageLoader: jM, ImageUtils: q3, - ImmediateRenderObject: r9, - IncrementStencilOp: P5, - IncrementWrapStencilOp: U5, - InstancedBufferAttribute: WS, - InstancedBufferGeometry: JC, - InstancedInterleavedBuffer: CC, - InstancedMesh: UF, - Int16BufferAttribute: DH, - Int32BufferAttribute: LH, - Int8BufferAttribute: CH, - IntType: JN, - InterleavedBuffer: WC, - InterleavedBufferAttribute: _m, + ImmediateRenderObject: m9, + IncrementStencilOp: j5, + IncrementWrapStencilOp: X5, + InstancedBufferAttribute: q_, + InstancedBufferGeometry: $C, + InstancedInterleavedBuffer: RC, + InstancedMesh: qF, + Int16BufferAttribute: VH, + Int32BufferAttribute: GH, + Int8BufferAttribute: IH, + IntType: fF, + InterleavedBuffer: jC, + InterleavedBufferAttribute: bm, Interpolant: nT, - InterpolateDiscrete: AM, - InterpolateLinear: DM, + InterpolateDiscrete: DM, + InterpolateLinear: LM, InterpolateSmooth: hC, - InvertStencilOp: N5, + InvertStencilOp: Q5, KeepStencilOp: pC, - KeyframeTrack: cg, - LOD: PF, - LatheBufferGeometry: jS, - LatheGeometry: jS, - Layers: kS, - LessDepth: kN, + KeyframeTrack: hg, + LOD: YF, + LatheBufferGeometry: Q_, + LatheGeometry: Q_, + Layers: G_, + LessDepth: KN, LessEqualDepth: bC, - LessEqualStencilFunc: B5, - LessStencilFunc: k5, + LessEqualStencilFunc: $5, + LessStencilFunc: J5, Light: l1, - LightProbe: QC, - Line: ch, - Line3: bL, - LineBasicMaterial: ph, - LineCurve: XC, - LineCurve3: HF, - LineDashedMaterial: e4, - LineLoop: zF, - LineSegments: gy, - LinearEncoding: yv, + LightProbe: JC, + Line: fh, + Line3: SL, + LineBasicMaterial: mh, + LineCurve: QC, + LineCurve3: tk, + LineDashedMaterial: pk, + LineLoop: QF, + LineSegments: xy, + LinearEncoding: wv, LinearFilter: Oo, - LinearInterpolant: hL, - LinearMipMapLinearFilter: M5, - LinearMipMapNearestFilter: E5, + LinearInterpolant: dL, + LinearMipMapLinearFilter: k5, + LinearMipMapNearestFilter: F5, LinearMipmapLinearFilter: s1, LinearMipmapNearestFilter: W3, LinearSRGBColorSpace: Jx, - LinearToneMapping: jN, - Loader: Tm, - LoaderUtils: S3, - LoadingManager: mL, - LoopOnce: cF, - LoopPingPong: dF, - LoopRepeat: fF, - LuminanceAlphaFormat: rF, - LuminanceFormat: nF, - MOUSE: ES, - Material: ff, - MaterialLoader: ZC, - MathUtils: vF, - Matrix3: jh, - Matrix4: si, - MaxEquation: WD, - Mesh: zn, - MeshBasicMaterial: lg, + LinearToneMapping: aF, + Loader: Rm, + LoaderUtils: w3, + LoadingManager: pL, + LoopOnce: EF, + LoopPingPong: TF, + LoopRepeat: MF, + LuminanceAlphaFormat: gF, + LuminanceFormat: vF, + MOUSE: T_, + Material: hf, + MaterialLoader: KC, + MathUtils: DF, + Matrix3: Xh, + Matrix4: Kr, + MaxEquation: YD, + Mesh: Fn, + MeshBasicMaterial: fg, MeshDepthMaterial: tT, - MeshDistanceMaterial: HC, - MeshLambertMaterial: KF, - MeshMatcapMaterial: $F, - MeshNormalMaterial: cL, - MeshPhongMaterial: ZF, - MeshPhysicalMaterial: QF, - MeshStandardMaterial: BM, - MeshToonMaterial: JF, - MinEquation: GD, - MirroredRepeatWrapping: RM, - MixOperation: GN, - MultiplyBlending: VD, + MeshDistanceMaterial: VC, + MeshLambertMaterial: dk, + MeshMatcapMaterial: hk, + MeshNormalMaterial: uL, + MeshPhongMaterial: ck, + MeshPhysicalMaterial: uk, + MeshStandardMaterial: HM, + MeshToonMaterial: fk, + MinEquation: jD, + MirroredRepeatWrapping: AM, + MixOperation: rF, + MultiplyBlending: WD, MultiplyOperation: ZM, NearestFilter: fo, - NearestMipMapLinearFilter: w5, - NearestMipMapNearestFilter: b5, - NearestMipmapLinearFilter: EC, - NearestMipmapNearestFilter: wC, - NeverDepth: NN, - NeverStencilFunc: F5, - NoBlending: cf, - NoColorSpace: A5, - NoToneMapping: ig, - NormalAnimationBlendMode: FC, - NormalBlending: L0, - NotEqualDepth: VN, - NotEqualStencilFunc: V5, - NumberKeyframeTrack: HM, + NearestMipMapLinearFilter: N5, + NearestMipMapNearestFilter: z5, + NearestMipmapLinearFilter: MC, + NearestMipmapNearestFilter: EC, + NeverDepth: ZN, + NeverStencilFunc: Z5, + NoBlending: ff, + NoColorSpace: V5, + NoToneMapping: og, + NormalAnimationBlendMode: kC, + NormalBlending: P0, + NotEqualDepth: nF, + NotEqualStencilFunc: tH, + NumberKeyframeTrack: VM, Object3D: Xa, - ObjectLoader: i7, - ObjectSpaceNormalMap: hF, - OctahedronBufferGeometry: rg, - OctahedronGeometry: rg, - OneFactor: RN, - OneMinusDstAlphaFactor: PN, - OneMinusDstColorFactor: UN, - OneMinusSrcAlphaFactor: zC, - OneMinusSrcColorFactor: DN, - OrthographicCamera: cy, - PCFShadowMap: B3, - PCFSoftShadowMap: H3, - PMREMGenerator: p3, - ParametricGeometry: $7, - Path: NM, + ObjectLoader: v7, + ObjectSpaceNormalMap: CF, + OctahedronBufferGeometry: sg, + OctahedronGeometry: sg, + OneFactor: VN, + OneMinusDstAlphaFactor: YN, + OneMinusDstColorFactor: qN, + OneMinusSrcAlphaFactor: NC, + OneMinusSrcColorFactor: WN, + OrthographicCamera: dy, + PCFShadowMap: UC, + PCFSoftShadowMap: _M, + PMREMGenerator: v3, + ParametricGeometry: f9, + Path: FM, PerspectiveCamera: ho, - Plane: C0, - PlaneBufferGeometry: ag, - PlaneGeometry: ag, - PlaneHelper: j7, - PointLight: l4, - PointLightHelper: N7, - Points: NF, - PointsMaterial: nL, - PolarGridHelper: B7, - PolyhedronBufferGeometry: my, - PolyhedronGeometry: my, - PositionalAudio: p7, + Plane: R0, + PlaneBufferGeometry: lg, + PlaneGeometry: lg, + PlaneHelper: r9, + PointLight: wk, + PointLightHelper: q7, + Points: ZF, + PointsMaterial: XC, + PolarGridHelper: K7, + PolyhedronBufferGeometry: gy, + PolyhedronGeometry: gy, + PositionalAudio: T7, PropertyBinding: Ja, - PropertyMixer: m4, - QuadraticBezierCurve: aL, - QuadraticBezierCurve3: sL, + PropertyMixer: Ak, + QuadraticBezierCurve: iL, + QuadraticBezierCurve3: aL, Quaternion: Po, - QuaternionKeyframeTrack: vw, - QuaternionLinearInterpolant: i4, - REVISION: U0, - RGBADepthPacking: Jb, - RGBAFormat: Sm, - RGBAIntegerFormat: lF, - RGBA_ASTC_10x10_Format: l3, - RGBA_ASTC_10x5_Format: a3, - RGBA_ASTC_10x6_Format: s3, - RGBA_ASTC_10x8_Format: o3, - RGBA_ASTC_12x10_Format: u3, - RGBA_ASTC_12x12_Format: c3, - RGBA_ASTC_4x4_Format: JD, - RGBA_ASTC_5x4_Format: KD, - RGBA_ASTC_5x5_Format: $D, - RGBA_ASTC_6x5_Format: e3, - RGBA_ASTC_6x6_Format: t3, - RGBA_ASTC_8x5_Format: n3, - RGBA_ASTC_8x6_Format: r3, - RGBA_ASTC_8x8_Format: i3, - RGBA_BPTC_Format: f3, - RGBA_ETC2_EAC_Format: ZD, - RGBA_PVRTC_2BPPV1_Format: qD, - RGBA_PVRTC_4BPPV1_Format: XD, + QuaternionKeyframeTrack: vb, + QuaternionLinearInterpolant: yk, + REVISION: a1, + RGBADepthPacking: Jw, + RGBAFormat: zp, + RGBAIntegerFormat: wF, + RGBA_ASTC_10x10_Format: c3, + RGBA_ASTC_10x5_Format: o3, + RGBA_ASTC_10x6_Format: l3, + RGBA_ASTC_10x8_Format: u3, + RGBA_ASTC_12x10_Format: f3, + RGBA_ASTC_12x12_Format: d3, + RGBA_ASTC_4x4_Format: $D, + RGBA_ASTC_5x4_Format: e3, + RGBA_ASTC_5x5_Format: t3, + RGBA_ASTC_6x5_Format: n3, + RGBA_ASTC_6x6_Format: r3, + RGBA_ASTC_8x5_Format: i3, + RGBA_ASTC_8x6_Format: a3, + RGBA_ASTC_8x8_Format: s3, + RGBA_BPTC_Format: h3, + RGBA_ETC2_EAC_Format: KD, + RGBA_PVRTC_2BPPV1_Format: ZD, + RGBA_PVRTC_4BPPV1_Format: QD, RGBA_S3TC_DXT1_Format: cC, RGBA_S3TC_DXT3_Format: fC, RGBA_S3TC_DXT5_Format: dC, - RGBFormat: tF, - RGB_ETC1_Format: uF, - RGB_ETC2_Format: QD, - RGB_PVRTC_2BPPV1_Format: YD, - RGB_PVRTC_4BPPV1_Format: jD, + RGBFormat: mF, + RGB_ETC1_Format: bF, + RGB_ETC2_Format: JD, + RGB_PVRTC_2BPPV1_Format: qD, + RGB_PVRTC_4BPPV1_Format: XD, RGB_S3TC_DXT1_Format: uC, - RGFormat: sF, - RGIntegerFormat: oF, - RawShaderMaterial: qF, + RGFormat: _F, + RGIntegerFormat: SF, + RawShaderMaterial: lk, Ray: KM, Raycaster: _L, - RectAreaLight: f4, - RedFormat: iF, - RedIntegerFormat: aF, - ReinhardToneMapping: YN, - RepeatWrapping: Zb, - ReplaceStencilOp: L5, + RectAreaLight: Mk, + RedFormat: yF, + RedIntegerFormat: xF, + ReinhardToneMapping: sF, + RepeatWrapping: Zw, + ReplaceStencilOp: W5, ReverseSubtractEquation: V3, - RingBufferGeometry: aw, - RingGeometry: aw, - SRGBColorSpace: oy, - Scene: zM, + RingBufferGeometry: ab, + RingGeometry: ab, + SRGBColorSpace: uy, + Scene: NM, ShaderChunk: na, - ShaderLib: Gh, - ShaderMaterial: wu, - ShadowMaterial: XF, - Shape: IS, - ShapeBufferGeometry: sw, - ShapeGeometry: sw, - ShapePath: q7, - ShapeUtils: fy, - ShortType: ZN, - Skeleton: jC, - SkeletonHelper: z7, - SkinnedMesh: OF, - SmoothShading: _5, - Source: OS, - Sphere: vy, - SphereBufferGeometry: sg, - SphereGeometry: sg, - Spherical: b3, - SphericalHarmonics3: d4, - SplineCurve: oL, - SpotLight: o4, - SpotLightHelper: U7, - Sprite: LF, + ShaderLib: Wh, + ShaderMaterial: Mu, + ShadowMaterial: ok, + Shape: W_, + ShapeBufferGeometry: sb, + ShapeGeometry: sb, + ShapePath: s9, + ShapeUtils: hy, + ShortType: cF, + Skeleton: YC, + SkeletonHelper: X7, + SkinnedMesh: XF, + SmoothShading: U5, + Source: F_, + Sphere: yy, + SphereBufferGeometry: ug, + SphereGeometry: ug, + Spherical: E3, + SphericalHarmonics3: Tk, + SplineCurve: sL, + SpotLight: Sk, + SpotLightHelper: Y7, + Sprite: jF, SpriteMaterial: eL, - SrcAlphaFactor: UC, - SrcAlphaSaturateFactor: zN, - SrcColorFactor: AN, - StaticCopyUsage: Q5, - StaticDrawUsage: PM, - StaticReadUsage: Y5, - StereoCamera: c7, - StreamCopyUsage: J5, - StreamDrawUsage: j5, - StreamReadUsage: q5, - StringKeyframeTrack: JS, - SubtractEquation: TN, - SubtractiveBlending: HD, - TOUCH: MS, - TangentSpaceNormalMap: qS, - TetrahedronBufferGeometry: ow, - TetrahedronGeometry: ow, - TextGeometry: e9, - Texture: iu, - TextureLoader: e7, - TorusBufferGeometry: ng, - TorusGeometry: ng, - TorusKnotBufferGeometry: lw, - TorusKnotGeometry: lw, - Triangle: xm, - TriangleFanDrawMode: R5, - TriangleStripDrawMode: C5, - TrianglesDrawMode: T5, - TubeBufferGeometry: uw, - TubeGeometry: uw, - UVMapping: NC, + SrcAlphaFactor: zC, + SrcAlphaSaturateFactor: QN, + SrcColorFactor: GN, + StaticCopyUsage: oH, + StaticDrawUsage: OM, + StaticReadUsage: iH, + StereoCamera: w7, + StreamCopyUsage: uH, + StreamDrawUsage: rH, + StreamReadUsage: sH, + StringKeyframeTrack: tS, + SubtractEquation: BN, + SubtractiveBlending: GD, + TOUCH: C_, + TangentSpaceNormalMap: K_, + TetrahedronBufferGeometry: ob, + TetrahedronGeometry: ob, + TextGeometry: d9, + Texture: su, + TextureLoader: d7, + TorusBufferGeometry: ag, + TorusGeometry: ag, + TorusKnotBufferGeometry: lb, + TorusKnotGeometry: lb, + Triangle: wm, + TriangleFanDrawMode: H5, + TriangleStripDrawMode: B5, + TrianglesDrawMode: I5, + TubeBufferGeometry: ub, + TubeGeometry: ub, + UVMapping: FC, Uint16BufferAttribute: Q3, Uint32BufferAttribute: Z3, - Uint8BufferAttribute: RH, - Uint8ClampedBufferAttribute: AH, - Uniform: Bn, - UniformsGroup: D7, - UniformsLib: Fn, + Uint8BufferAttribute: BH, + Uint8ClampedBufferAttribute: HH, + Uniform: Pn, + UniformsGroup: V7, + UniformsLib: In, UniformsUtils: $M, - UnsignedByteType: Gf, + UnsignedByteType: df, UnsignedInt248Type: Kx, - UnsignedIntType: D0, - UnsignedShort4444Type: KN, - UnsignedShort5551Type: $N, + UnsignedIntType: L0, + UnsignedShort4444Type: dF, + UnsignedShort5551Type: hF, UnsignedShortType: j3, - VSMShadowMap: Bb, - Vector2: Ft, - Vector3: ve, - Vector4: la, - VectorKeyframeTrack: VM, - VideoTexture: pW, - WebGL1Renderer: AF, - WebGL3DRenderTarget: gH, - WebGLArrayRenderTarget: vH, - WebGLCubeRenderTarget: SF, - WebGLMultipleRenderTargets: yH, - WebGLMultisampleRenderTarget: g4, + VSMShadowMap: U_, + Vector2: zt, + Vector3: ge, + Vector4: ra, + VectorKeyframeTrack: GM, + VideoTexture: TW, + WebGL1Renderer: GF, + WebGL3DRenderTarget: AH, + WebGLArrayRenderTarget: RH, + WebGLCubeRenderTarget: UF, + WebGLMultipleRenderTargets: DH, + WebGLMultisampleRenderTarget: v9, WebGLRenderTarget: po, WebGLRenderer: $3, - WebGLUtils: CF, - WireframeGeometry: uL, - WrapAroundEnding: LM, - ZeroCurvatureEnding: LS, - ZeroFactor: CN, - ZeroSlopeEnding: PS, - ZeroStencilOp: D5, - _SRGBAFormat: MC, - sRGBEncoding: Mi + WebGLUtils: HF, + WireframeGeometry: lL, + WrapAroundEnding: PM, + ZeroCurvatureEnding: z_, + ZeroFactor: HN, + ZeroSlopeEnding: N_, + ZeroStencilOp: G5, + _SRGBAFormat: TC, + sRGBEncoding: gi }, Symbol.toStringTag, { value: "Module" })); -var A0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function y4(a) { +var D0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +function Lk(a) { return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a; } -var Xb = { exports: {} }, Yx = {}; +var I_ = { exports: {} }, Yx = {}; /** * @license React * react-reconciler-constants.production.min.js @@ -19636,9 +19636,9 @@ var Xb = { exports: {} }, Yx = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var JU; -function s9() { - return JU || (JU = 1, Yx.ConcurrentRoot = 1, Yx.ContinuousEventPriority = 4, Yx.DefaultEventPriority = 16, Yx.DiscreteEventPriority = 1, Yx.IdleEventPriority = 536870912, Yx.LegacyRoot = 0), Yx; +var ez; +function _9() { + return ez || (ez = 1, Yx.ConcurrentRoot = 1, Yx.ContinuousEventPriority = 4, Yx.DefaultEventPriority = 16, Yx.DiscreteEventPriority = 1, Yx.IdleEventPriority = 536870912, Yx.LegacyRoot = 0), Yx; } var Xx = {}; /** @@ -19650,61 +19650,61 @@ var Xx = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var KU; -function o9() { - return KU || (KU = 1, process.env.NODE_ENV !== "production" && function() { - var a = 1, e = 4, t = 16, r = 536870912, i = a, o = e, l = t, d = r, h = 0, m = 1; - Xx.ConcurrentRoot = m, Xx.ContinuousEventPriority = o, Xx.DefaultEventPriority = l, Xx.DiscreteEventPriority = i, Xx.IdleEventPriority = d, Xx.LegacyRoot = h; +var tz; +function S9() { + return tz || (tz = 1, process.env.NODE_ENV !== "production" && function() { + var a = 1, e = 4, t = 16, r = 536870912, i = a, s = e, l = t, d = r, p = 0, g = 1; + Xx.ConcurrentRoot = g, Xx.ContinuousEventPriority = s, Xx.DefaultEventPriority = l, Xx.DiscreteEventPriority = i, Xx.IdleEventPriority = d, Xx.LegacyRoot = p; }()), Xx; } (function(a) { - process.env.NODE_ENV === "production" ? a.exports = s9() : a.exports = o9(); -})(Xb); -function l9(a) { + process.env.NODE_ENV === "production" ? a.exports = _9() : a.exports = S9(); +})(I_); +function w9(a) { let e; - const t = /* @__PURE__ */ new Set(), r = (m, S) => { - const _ = typeof m == "function" ? m(e) : m; - if (_ !== e) { + const t = /* @__PURE__ */ new Set(), r = (g, _) => { + const w = typeof g == "function" ? g(e) : g; + if (w !== e) { const T = e; - e = S ? _ : Object.assign({}, e, _), t.forEach((C) => C(e, T)); + e = _ ? w : Object.assign({}, e, w), t.forEach((R) => R(e, T)); } - }, i = () => e, o = (m, S = i, _ = Object.is) => { + }, i = () => e, s = (g, _ = i, w = Object.is) => { console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware"); - let T = S(e); - function C() { - const D = S(e); - if (!_(T, D)) { - const P = T; - m(T = D, P); - } - } - return t.add(C), () => t.delete(C); - }, h = { setState: r, getState: i, subscribe: (m, S, _) => S || _ ? o(m, S, _) : (t.add(m), () => t.delete(m)), destroy: () => t.clear() }; - return e = a(r, i, h), h; -} -const u9 = typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), $U = u9 ? fh : I3; -function c9(a) { - const e = typeof a == "function" ? l9(a) : a, t = (r = e.getState, i = Object.is) => { - const [, o] = v5((U) => U + 1, 0), l = e.getState(), d = co(l), h = co(r), m = co(i), S = co(!1), _ = co(); - _.current === void 0 && (_.current = r(l)); - let T, C = !1; - (d.current !== l || h.current !== r || m.current !== i || S.current) && (T = r(l), C = !i(_.current, T)), $U(() => { - C && (_.current = T), d.current = l, h.current = r, m.current = i, S.current = !1; + let T = _(e); + function R() { + const D = _(e); + if (!w(T, D)) { + const O = T; + g(T = D, O); + } + } + return t.add(R), () => t.delete(R); + }, p = { setState: r, getState: i, subscribe: (g, _, w) => _ || w ? s(g, _, w) : (t.add(g), () => t.delete(g)), destroy: () => t.clear() }; + return e = a(r, i, p), p; +} +const b9 = typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), nz = b9 ? hh : H3; +function E9(a) { + const e = typeof a == "function" ? w9(a) : a, t = (r = e.getState, i = Object.is) => { + const [, s] = D5((U) => U + 1, 0), l = e.getState(), d = Xs(l), p = Xs(r), g = Xs(i), _ = Xs(!1), w = Xs(); + w.current === void 0 && (w.current = r(l)); + let T, R = !1; + (d.current !== l || p.current !== r || g.current !== i || _.current) && (T = r(l), R = !i(w.current, T)), nz(() => { + R && (w.current = T), d.current = l, p.current = r, g.current = i, _.current = !1; }); - const D = co(l); - $U(() => { + const D = Xs(l); + nz(() => { const U = () => { try { - const k = e.getState(), V = h.current(k); - m.current(_.current, V) || (d.current = k, _.current = V, o()); + const I = e.getState(), G = p.current(I); + g.current(w.current, G) || (d.current = I, w.current = G, s()); } catch { - S.current = !0, o(); + _.current = !0, s(); } - }, B = e.subscribe(U); - return e.getState() !== D.current && U(), B; + }, H = e.subscribe(U); + return e.getState() !== D.current && U(), H; }, []); - const P = C ? T : _.current; - return _N(P), P; + const O = R ? T : w.current; + return UN(O), O; }; return Object.assign(t, e), t[Symbol.iterator] = function() { console.warn("[useStore, api] = create() is deprecated and will be removed in v4"); @@ -19717,7 +19717,7 @@ function c9(a) { }; }, t; } -var x4 = { exports: {} }, jM = { exports: {} }, iD = {}; +var Pk = { exports: {} }, YM = { exports: {} }, aD = {}; /** * @license React * scheduler.production.min.js @@ -19727,51 +19727,51 @@ var x4 = { exports: {} }, jM = { exports: {} }, iD = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var ez; -function f9() { - return ez || (ez = 1, function(a) { - function e(pe, de) { - var ce = pe.length; - pe.push(de); +var rz; +function M9() { + return rz || (rz = 1, function(a) { + function e(ve, fe) { + var he = ve.length; + ve.push(fe); e: - for (; 0 < ce; ) { - var ye = ce - 1 >>> 1, we = pe[ye]; - if (0 < i(we, de)) - pe[ye] = de, pe[ce] = we, ce = ye; + for (; 0 < he; ) { + var ye = he - 1 >>> 1, Ee = ve[ye]; + if (0 < i(Ee, fe)) + ve[ye] = fe, ve[he] = Ee, he = ye; else break e; } } - function t(pe) { - return pe.length === 0 ? null : pe[0]; + function t(ve) { + return ve.length === 0 ? null : ve[0]; } - function r(pe) { - if (pe.length === 0) + function r(ve) { + if (ve.length === 0) return null; - var de = pe[0], ce = pe.pop(); - if (ce !== de) { - pe[0] = ce; + var fe = ve[0], he = ve.pop(); + if (he !== fe) { + ve[0] = he; e: - for (var ye = 0, we = pe.length, Xe = we >>> 1; ye < Xe; ) { - var Je = 2 * (ye + 1) - 1, st = pe[Je], Ue = Je + 1, ot = pe[Ue]; - if (0 > i(st, ce)) - Ue < we && 0 > i(ot, st) ? (pe[ye] = ot, pe[Ue] = ce, ye = Ue) : (pe[ye] = st, pe[Je] = ce, ye = Je); - else if (Ue < we && 0 > i(ot, ce)) - pe[ye] = ot, pe[Ue] = ce, ye = Ue; + for (var ye = 0, Ee = ve.length, Ve = Ee >>> 1; ye < Ve; ) { + var Je = 2 * (ye + 1) - 1, rt = ve[Je], Ne = Je + 1, ct = ve[Ne]; + if (0 > i(rt, he)) + Ne < Ee && 0 > i(ct, rt) ? (ve[ye] = ct, ve[Ne] = he, ye = Ne) : (ve[ye] = rt, ve[Je] = he, ye = Je); + else if (Ne < Ee && 0 > i(ct, he)) + ve[ye] = ct, ve[Ne] = he, ye = Ne; else break e; } } - return de; + return fe; } - function i(pe, de) { - var ce = pe.sortIndex - de.sortIndex; - return ce !== 0 ? ce : pe.id - de.id; + function i(ve, fe) { + var he = ve.sortIndex - fe.sortIndex; + return he !== 0 ? he : ve.id - fe.id; } if (typeof performance == "object" && typeof performance.now == "function") { - var o = performance; + var s = performance; a.unstable_now = function() { - return o.now(); + return s.now(); }; } else { var l = Date, d = l.now(); @@ -19779,123 +19779,123 @@ function f9() { return l.now() - d; }; } - var h = [], m = [], S = 1, _ = null, T = 3, C = !1, D = !1, P = !1, U = typeof setTimeout == "function" ? setTimeout : null, B = typeof clearTimeout == "function" ? clearTimeout : null, k = typeof setImmediate < "u" ? setImmediate : null; + var p = [], g = [], _ = 1, w = null, T = 3, R = !1, D = !1, O = !1, U = typeof setTimeout == "function" ? setTimeout : null, H = typeof clearTimeout == "function" ? clearTimeout : null, I = typeof setImmediate < "u" ? setImmediate : null; typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling); - function V(pe) { - for (var de = t(m); de !== null; ) { - if (de.callback === null) - r(m); - else if (de.startTime <= pe) - r(m), de.sortIndex = de.expirationTime, e(h, de); + function G(ve) { + for (var fe = t(g); fe !== null; ) { + if (fe.callback === null) + r(g); + else if (fe.startTime <= ve) + r(g), fe.sortIndex = fe.expirationTime, e(p, fe); else break; - de = t(m); + fe = t(g); } } - function I(pe) { - if (P = !1, V(pe), !D) - if (t(h) !== null) - D = !0, Ce(X); + function B(ve) { + if (O = !1, G(ve), !D) + if (t(p) !== null) + D = !0, Re(Q); else { - var de = t(m); - de !== null && Be(I, de.startTime - pe); + var fe = t(g); + fe !== null && He(B, fe.startTime - ve); } } - function X(pe, de) { - D = !1, P && (P = !1, B(W), W = -1), C = !0; - var ce = T; + function Q(ve, fe) { + D = !1, O && (O = !1, H(Y), Y = -1), R = !0; + var he = T; try { - for (V(de), _ = t(h); _ !== null && (!(_.expirationTime > de) || pe && !fe()); ) { - var ye = _.callback; + for (G(fe), w = t(p); w !== null && (!(w.expirationTime > fe) || ve && !ce()); ) { + var ye = w.callback; if (typeof ye == "function") { - _.callback = null, T = _.priorityLevel; - var we = ye(_.expirationTime <= de); - de = a.unstable_now(), typeof we == "function" ? _.callback = we : _ === t(h) && r(h), V(de); + w.callback = null, T = w.priorityLevel; + var Ee = ye(w.expirationTime <= fe); + fe = a.unstable_now(), typeof Ee == "function" ? w.callback = Ee : w === t(p) && r(p), G(fe); } else - r(h); - _ = t(h); + r(p); + w = t(p); } - if (_ !== null) - var Xe = !0; + if (w !== null) + var Ve = !0; else { - var Je = t(m); - Je !== null && Be(I, Je.startTime - de), Xe = !1; + var Je = t(g); + Je !== null && He(B, Je.startTime - fe), Ve = !1; } - return Xe; + return Ve; } finally { - _ = null, T = ce, C = !1; + w = null, T = he, R = !1; } } - var J = !1, $ = null, W = -1, ne = 5, ie = -1; - function fe() { - return !(a.unstable_now() - ie < ne); + var K = !1, te = null, Y = -1, re = 5, se = -1; + function ce() { + return !(a.unstable_now() - se < re); } - function le() { - if ($ !== null) { - var pe = a.unstable_now(); - ie = pe; - var de = !0; + function ue() { + if (te !== null) { + var ve = a.unstable_now(); + se = ve; + var fe = !0; try { - de = $(!0, pe); + fe = te(!0, ve); } finally { - de ? Ee() : (J = !1, $ = null); + fe ? Me() : (K = !1, te = null); } } else - J = !1; + K = !1; } - var Ee; - if (typeof k == "function") - Ee = function() { - k(le); + var Me; + if (typeof I == "function") + Me = function() { + I(ue); }; else if (typeof MessageChannel < "u") { - var he = new MessageChannel(), Fe = he.port2; - he.port1.onmessage = le, Ee = function() { - Fe.postMessage(null); + var me = new MessageChannel(), De = me.port2; + me.port1.onmessage = ue, Me = function() { + De.postMessage(null); }; } else - Ee = function() { - U(le, 0); + Me = function() { + U(ue, 0); }; - function Ce(pe) { - $ = pe, J || (J = !0, Ee()); + function Re(ve) { + te = ve, K || (K = !0, Me()); } - function Be(pe, de) { - W = U(function() { - pe(a.unstable_now()); - }, de); + function He(ve, fe) { + Y = U(function() { + ve(a.unstable_now()); + }, fe); } - a.unstable_IdlePriority = 5, a.unstable_ImmediatePriority = 1, a.unstable_LowPriority = 4, a.unstable_NormalPriority = 3, a.unstable_Profiling = null, a.unstable_UserBlockingPriority = 2, a.unstable_cancelCallback = function(pe) { - pe.callback = null; + a.unstable_IdlePriority = 5, a.unstable_ImmediatePriority = 1, a.unstable_LowPriority = 4, a.unstable_NormalPriority = 3, a.unstable_Profiling = null, a.unstable_UserBlockingPriority = 2, a.unstable_cancelCallback = function(ve) { + ve.callback = null; }, a.unstable_continueExecution = function() { - D || C || (D = !0, Ce(X)); - }, a.unstable_forceFrameRate = function(pe) { - 0 > pe || 125 < pe ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : ne = 0 < pe ? Math.floor(1e3 / pe) : 5; + D || R || (D = !0, Re(Q)); + }, a.unstable_forceFrameRate = function(ve) { + 0 > ve || 125 < ve ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : re = 0 < ve ? Math.floor(1e3 / ve) : 5; }, a.unstable_getCurrentPriorityLevel = function() { return T; }, a.unstable_getFirstCallbackNode = function() { - return t(h); - }, a.unstable_next = function(pe) { + return t(p); + }, a.unstable_next = function(ve) { switch (T) { case 1: case 2: case 3: - var de = 3; + var fe = 3; break; default: - de = T; + fe = T; } - var ce = T; - T = de; + var he = T; + T = fe; try { - return pe(); + return ve(); } finally { - T = ce; + T = he; } }, a.unstable_pauseExecution = function() { }, a.unstable_requestPaint = function() { - }, a.unstable_runWithPriority = function(pe, de) { - switch (pe) { + }, a.unstable_runWithPriority = function(ve, fe) { + switch (ve) { case 1: case 2: case 3: @@ -19903,49 +19903,49 @@ function f9() { case 5: break; default: - pe = 3; + ve = 3; } - var ce = T; - T = pe; + var he = T; + T = ve; try { - return de(); + return fe(); } finally { - T = ce; + T = he; } - }, a.unstable_scheduleCallback = function(pe, de, ce) { + }, a.unstable_scheduleCallback = function(ve, fe, he) { var ye = a.unstable_now(); - switch (typeof ce == "object" && ce !== null ? (ce = ce.delay, ce = typeof ce == "number" && 0 < ce ? ye + ce : ye) : ce = ye, pe) { + switch (typeof he == "object" && he !== null ? (he = he.delay, he = typeof he == "number" && 0 < he ? ye + he : ye) : he = ye, ve) { case 1: - var we = -1; + var Ee = -1; break; case 2: - we = 250; + Ee = 250; break; case 5: - we = 1073741823; + Ee = 1073741823; break; case 4: - we = 1e4; + Ee = 1e4; break; default: - we = 5e3; + Ee = 5e3; } - return we = ce + we, pe = { id: S++, callback: de, priorityLevel: pe, startTime: ce, expirationTime: we, sortIndex: -1 }, ce > ye ? (pe.sortIndex = ce, e(m, pe), t(h) === null && pe === t(m) && (P ? (B(W), W = -1) : P = !0, Be(I, ce - ye))) : (pe.sortIndex = we, e(h, pe), D || C || (D = !0, Ce(X))), pe; - }, a.unstable_shouldYield = fe, a.unstable_wrapCallback = function(pe) { - var de = T; + return Ee = he + Ee, ve = { id: _++, callback: fe, priorityLevel: ve, startTime: he, expirationTime: Ee, sortIndex: -1 }, he > ye ? (ve.sortIndex = he, e(g, ve), t(p) === null && ve === t(g) && (O ? (H(Y), Y = -1) : O = !0, He(B, he - ye))) : (ve.sortIndex = Ee, e(p, ve), D || R || (D = !0, Re(Q))), ve; + }, a.unstable_shouldYield = ce, a.unstable_wrapCallback = function(ve) { + var fe = T; return function() { - var ce = T; - T = de; + var he = T; + T = fe; try { - return pe.apply(this, arguments); + return ve.apply(this, arguments); } finally { - T = ce; + T = he; } }; }; - }(iD)), iD; + }(aD)), aD; } -var aD = {}; +var sD = {}; /** * @license React * scheduler.development.js @@ -19955,274 +19955,274 @@ var aD = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var tz; -function d9() { - return tz || (tz = 1, function(a) { +var iz; +function T9() { + return iz || (iz = 1, function(a) { process.env.NODE_ENV !== "production" && function() { typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); var e = !1, t = !1, r = 5; - function i(ze, xe) { - var Ie = ze.length; - ze.push(xe), d(ze, xe, Ie); + function i(Be, pe) { + var Fe = Be.length; + Be.push(pe), d(Be, pe, Fe); } - function o(ze) { - return ze.length === 0 ? null : ze[0]; + function s(Be) { + return Be.length === 0 ? null : Be[0]; } - function l(ze) { - if (ze.length === 0) + function l(Be) { + if (Be.length === 0) return null; - var xe = ze[0], Ie = ze.pop(); - return Ie !== xe && (ze[0] = Ie, h(ze, Ie, 0)), xe; - } - function d(ze, xe, Ie) { - for (var it = Ie; it > 0; ) { - var at = it - 1 >>> 1, hn = ze[at]; - if (m(hn, xe) > 0) - ze[at] = xe, ze[it] = hn, it = at; + var pe = Be[0], Fe = Be.pop(); + return Fe !== pe && (Be[0] = Fe, p(Be, Fe, 0)), pe; + } + function d(Be, pe, Fe) { + for (var at = Fe; at > 0; ) { + var st = at - 1 >>> 1, dn = Be[st]; + if (g(dn, pe) > 0) + Be[st] = pe, Be[at] = dn, at = st; else return; } } - function h(ze, xe, Ie) { - for (var it = Ie, at = ze.length, hn = at >>> 1; it < hn; ) { - var De = (it + 1) * 2 - 1, Tt = ze[De], Ne = De + 1, Gt = ze[Ne]; - if (m(Tt, xe) < 0) - Ne < at && m(Gt, Tt) < 0 ? (ze[it] = Gt, ze[Ne] = xe, it = Ne) : (ze[it] = Tt, ze[De] = xe, it = De); - else if (Ne < at && m(Gt, xe) < 0) - ze[it] = Gt, ze[Ne] = xe, it = Ne; + function p(Be, pe, Fe) { + for (var at = Fe, st = Be.length, dn = st >>> 1; at < dn; ) { + var ze = (at + 1) * 2 - 1, wt = Be[ze], Pe = ze + 1, Gt = Be[Pe]; + if (g(wt, pe) < 0) + Pe < st && g(Gt, wt) < 0 ? (Be[at] = Gt, Be[Pe] = pe, at = Pe) : (Be[at] = wt, Be[ze] = pe, at = ze); + else if (Pe < st && g(Gt, pe) < 0) + Be[at] = Gt, Be[Pe] = pe, at = Pe; else return; } } - function m(ze, xe) { - var Ie = ze.sortIndex - xe.sortIndex; - return Ie !== 0 ? Ie : ze.id - xe.id; + function g(Be, pe) { + var Fe = Be.sortIndex - pe.sortIndex; + return Fe !== 0 ? Fe : Be.id - pe.id; } - var S = 1, _ = 2, T = 3, C = 4, D = 5; - function P(ze, xe) { + var _ = 1, w = 2, T = 3, R = 4, D = 5; + function O(Be, pe) { } var U = typeof performance == "object" && typeof performance.now == "function"; if (U) { - var B = performance; + var H = performance; a.unstable_now = function() { - return B.now(); + return H.now(); }; } else { - var k = Date, V = k.now(); + var I = Date, G = I.now(); a.unstable_now = function() { - return k.now() - V; + return I.now() - G; }; } - var I = 1073741823, X = -1, J = 250, $ = 5e3, W = 1e4, ne = I, ie = [], fe = [], le = 1, Ee = null, he = T, Fe = !1, Ce = !1, Be = !1, pe = typeof setTimeout == "function" ? setTimeout : null, de = typeof clearTimeout == "function" ? clearTimeout : null, ce = typeof setImmediate < "u" ? setImmediate : null; + var B = 1073741823, Q = -1, K = 250, te = 5e3, Y = 1e4, re = B, se = [], ce = [], ue = 1, Me = null, me = T, De = !1, Re = !1, He = !1, ve = typeof setTimeout == "function" ? setTimeout : null, fe = typeof clearTimeout == "function" ? clearTimeout : null, he = typeof setImmediate < "u" ? setImmediate : null; typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling); - function ye(ze) { - for (var xe = o(fe); xe !== null; ) { - if (xe.callback === null) - l(fe); - else if (xe.startTime <= ze) - l(fe), xe.sortIndex = xe.expirationTime, i(ie, xe); + function ye(Be) { + for (var pe = s(ce); pe !== null; ) { + if (pe.callback === null) + l(ce); + else if (pe.startTime <= Be) + l(ce), pe.sortIndex = pe.expirationTime, i(se, pe); else return; - xe = o(fe); + pe = s(ce); } } - function we(ze) { - if (Be = !1, ye(ze), !Ce) - if (o(ie) !== null) - Ce = !0, zt(Xe); + function Ee(Be) { + if (He = !1, ye(Be), !Re) + if (s(se) !== null) + Re = !0, Ft(Ve); else { - var xe = o(fe); - xe !== null && Nt(we, xe.startTime - ze); + var pe = s(ce); + pe !== null && Ot(Ee, pe.startTime - Be); } } - function Xe(ze, xe) { - Ce = !1, Be && (Be = !1, Ut()), Fe = !0; - var Ie = he; + function Ve(Be, pe) { + Re = !1, He && (He = !1, Wt()), De = !0; + var Fe = me; try { - var it; + var at; if (!t) - return Je(ze, xe); + return Je(Be, pe); } finally { - Ee = null, he = Ie, Fe = !1; + Me = null, me = Fe, De = !1; } } - function Je(ze, xe) { - var Ie = xe; - for (ye(Ie), Ee = o(ie); Ee !== null && !e && !(Ee.expirationTime > Ie && (!ze || Vt())); ) { - var it = Ee.callback; - if (typeof it == "function") { - Ee.callback = null, he = Ee.priorityLevel; - var at = Ee.expirationTime <= Ie, hn = it(at); - Ie = a.unstable_now(), typeof hn == "function" ? Ee.callback = hn : Ee === o(ie) && l(ie), ye(Ie); + function Je(Be, pe) { + var Fe = pe; + for (ye(Fe), Me = s(se); Me !== null && !e && !(Me.expirationTime > Fe && (!Be || Nt())); ) { + var at = Me.callback; + if (typeof at == "function") { + Me.callback = null, me = Me.priorityLevel; + var st = Me.expirationTime <= Fe, dn = at(st); + Fe = a.unstable_now(), typeof dn == "function" ? Me.callback = dn : Me === s(se) && l(se), ye(Fe); } else - l(ie); - Ee = o(ie); + l(se); + Me = s(se); } - if (Ee !== null) + if (Me !== null) return !0; - var De = o(fe); - return De !== null && Nt(we, De.startTime - Ie), !1; + var ze = s(ce); + return ze !== null && Ot(Ee, ze.startTime - Fe), !1; } - function st(ze, xe) { - switch (ze) { - case S: + function rt(Be, pe) { + switch (Be) { case _: + case w: case T: - case C: + case R: case D: break; default: - ze = T; + Be = T; } - var Ie = he; - he = ze; + var Fe = me; + me = Be; try { - return xe(); + return pe(); } finally { - he = Ie; + me = Fe; } } - function Ue(ze) { - var xe; - switch (he) { - case S: + function Ne(Be) { + var pe; + switch (me) { case _: + case w: case T: - xe = T; + pe = T; break; default: - xe = he; + pe = me; break; } - var Ie = he; - he = xe; + var Fe = me; + me = pe; try { - return ze(); + return Be(); } finally { - he = Ie; + me = Fe; } } - function ot(ze) { - var xe = he; + function ct(Be) { + var pe = me; return function() { - var Ie = he; - he = xe; + var Fe = me; + me = pe; try { - return ze.apply(this, arguments); + return Be.apply(this, arguments); } finally { - he = Ie; + me = Fe; } }; } - function rt(ze, xe, Ie) { - var it = a.unstable_now(), at; - if (typeof Ie == "object" && Ie !== null) { - var hn = Ie.delay; - typeof hn == "number" && hn > 0 ? at = it + hn : at = it; + function tt(Be, pe, Fe) { + var at = a.unstable_now(), st; + if (typeof Fe == "object" && Fe !== null) { + var dn = Fe.delay; + typeof dn == "number" && dn > 0 ? st = at + dn : st = at; } else - at = it; - var De; - switch (ze) { - case S: - De = X; - break; + st = at; + var ze; + switch (Be) { case _: - De = J; + ze = Q; + break; + case w: + ze = K; break; case D: - De = ne; + ze = re; break; - case C: - De = W; + case R: + ze = Y; break; case T: default: - De = $; + ze = te; break; } - var Tt = at + De, Ne = { - id: le++, - callback: xe, - priorityLevel: ze, - startTime: at, - expirationTime: Tt, + var wt = st + ze, Pe = { + id: ue++, + callback: pe, + priorityLevel: Be, + startTime: st, + expirationTime: wt, sortIndex: -1 }; - return at > it ? (Ne.sortIndex = at, i(fe, Ne), o(ie) === null && Ne === o(fe) && (Be ? Ut() : Be = !0, Nt(we, at - it))) : (Ne.sortIndex = Tt, i(ie, Ne), !Ce && !Fe && (Ce = !0, zt(Xe))), Ne; + return st > at ? (Pe.sortIndex = st, i(ce, Pe), s(se) === null && Pe === s(ce) && (He ? Wt() : He = !0, Ot(Ee, st - at))) : (Pe.sortIndex = wt, i(se, Pe), !Re && !De && (Re = !0, Ft(Ve))), Pe; } - function _t() { + function Tt() { } - function Rt() { - !Ce && !Fe && (Ce = !0, zt(Xe)); + function gt() { + !Re && !De && (Re = !0, Ft(Ve)); } - function Ot() { - return o(ie); + function ft() { + return s(se); } - function He(ze) { - ze.callback = null; + function Ie(Be) { + Be.callback = null; } - function et() { - return he; + function qe() { + return me; } - var mt = !1, vt = null, bt = -1, Qt = r, ft = -1; - function Vt() { - var ze = a.unstable_now() - ft; - return !(ze < Qt); + var dt = !1, ht = null, xt = -1, Vt = r, yt = -1; + function Nt() { + var Be = a.unstable_now() - yt; + return !(Be < Vt); } - function Jt() { + function Zt() { } - function Mt(ze) { - if (ze < 0 || ze > 125) { + function Rt(Be) { + if (Be < 0 || Be > 125) { console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"); return; } - ze > 0 ? Qt = Math.floor(1e3 / ze) : Qt = r; + Be > 0 ? Vt = Math.floor(1e3 / Be) : Vt = r; } - var Me = function() { - if (vt !== null) { - var ze = a.unstable_now(); - ft = ze; - var xe = !0, Ie = !0; + var we = function() { + if (ht !== null) { + var Be = a.unstable_now(); + yt = Be; + var pe = !0, Fe = !0; try { - Ie = vt(xe, ze); + Fe = ht(pe, Be); } finally { - Ie ? oe() : (mt = !1, vt = null); + Fe ? oe() : (dt = !1, ht = null); } } else - mt = !1; + dt = !1; }, oe; - if (typeof ce == "function") + if (typeof he == "function") oe = function() { - ce(Me); + he(we); }; else if (typeof MessageChannel < "u") { - var je = new MessageChannel(), lt = je.port2; - je.port1.onmessage = Me, oe = function() { - lt.postMessage(null); + var Qe = new MessageChannel(), ut = Qe.port2; + Qe.port1.onmessage = we, oe = function() { + ut.postMessage(null); }; } else oe = function() { - pe(Me, 0); + ve(we, 0); }; - function zt(ze) { - vt = ze, mt || (mt = !0, oe()); + function Ft(Be) { + ht = Be, dt || (dt = !0, oe()); } - function Nt(ze, xe) { - bt = pe(function() { - ze(a.unstable_now()); - }, xe); + function Ot(Be, pe) { + xt = ve(function() { + Be(a.unstable_now()); + }, pe); } - function Ut() { - de(bt), bt = -1; + function Wt() { + fe(xt), xt = -1; } - var tt = Jt, rn = null; - a.unstable_IdlePriority = D, a.unstable_ImmediatePriority = S, a.unstable_LowPriority = C, a.unstable_NormalPriority = T, a.unstable_Profiling = rn, a.unstable_UserBlockingPriority = _, a.unstable_cancelCallback = He, a.unstable_continueExecution = Rt, a.unstable_forceFrameRate = Mt, a.unstable_getCurrentPriorityLevel = et, a.unstable_getFirstCallbackNode = Ot, a.unstable_next = Ue, a.unstable_pauseExecution = _t, a.unstable_requestPaint = tt, a.unstable_runWithPriority = st, a.unstable_scheduleCallback = rt, a.unstable_shouldYield = Vt, a.unstable_wrapCallback = ot, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + var it = Zt, an = null; + a.unstable_IdlePriority = D, a.unstable_ImmediatePriority = _, a.unstable_LowPriority = R, a.unstable_NormalPriority = T, a.unstable_Profiling = an, a.unstable_UserBlockingPriority = w, a.unstable_cancelCallback = Ie, a.unstable_continueExecution = gt, a.unstable_forceFrameRate = Rt, a.unstable_getCurrentPriorityLevel = qe, a.unstable_getFirstCallbackNode = ft, a.unstable_next = Ne, a.unstable_pauseExecution = Tt, a.unstable_requestPaint = it, a.unstable_runWithPriority = rt, a.unstable_scheduleCallback = tt, a.unstable_shouldYield = Nt, a.unstable_wrapCallback = ct, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); }(); - }(aD)), aD; + }(sD)), sD; } (function(a) { - process.env.NODE_ENV === "production" ? a.exports = f9() : a.exports = d9(); -})(jM); + process.env.NODE_ENV === "production" ? a.exports = M9() : a.exports = T9(); +})(YM); /** * @license React * react-reconciler.production.min.js @@ -20232,20 +20232,20 @@ function d9() { * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var sD, nz; -function h9() { - return nz || (nz = 1, sD = function(e) { - var t = {}, r = hh, i = jM.exports, o = Object.assign; +var oD, az; +function C9() { + return az || (az = 1, oD = function(e) { + var t = {}, r = ph, i = YM.exports, s = Object.assign; function l(y) { for (var x = "https://reactjs.org/docs/error-decoder.html?invariant=" + y, L = 1; L < arguments.length; L++) x += "&args[]=" + encodeURIComponent(arguments[L]); return "Minified React error #" + y + "; visit " + x + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } - var d = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, h = Symbol.for("react.element"), m = Symbol.for("react.portal"), S = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), D = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), X = Symbol.iterator; - function J(y) { - return y === null || typeof y != "object" ? null : (y = X && y[X] || y["@@iterator"], typeof y == "function" ? y : null); + var d = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, p = Symbol.for("react.element"), g = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), D = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), Q = Symbol.iterator; + function K(y) { + return y === null || typeof y != "object" ? null : (y = Q && y[Q] || y["@@iterator"], typeof y == "function" ? y : null); } - function $(y) { + function te(y) { if (y == null) return null; if (typeof y == "function") @@ -20253,40 +20253,40 @@ function h9() { if (typeof y == "string") return y; switch (y) { - case S: + case _: return "Fragment"; - case m: + case g: return "Portal"; case T: return "Profiler"; - case _: + case w: return "StrictMode"; case U: return "Suspense"; - case B: + case H: return "SuspenseList"; } if (typeof y == "object") switch (y.$$typeof) { case D: return (y.displayName || "Context") + ".Consumer"; - case C: + case R: return (y._context.displayName || "Context") + ".Provider"; - case P: + case O: var x = y.render; return y = y.displayName, y || (y = x.displayName || x.name || "", y = y !== "" ? "ForwardRef(" + y + ")" : "ForwardRef"), y; - case k: - return x = y.displayName || null, x !== null ? x : $(y.type) || "Memo"; - case V: + case I: + return x = y.displayName || null, x !== null ? x : te(y.type) || "Memo"; + case G: x = y._payload, y = y._init; try { - return $(y(x)); + return te(y(x)); } catch { } } return null; } - function W(y) { + function Y(y) { var x = y.type; switch (y.tag) { case 24: @@ -20310,9 +20310,9 @@ function h9() { case 6: return "Text"; case 16: - return $(x); + return te(x); case 8: - return x === _ ? "StrictMode" : "Mode"; + return x === w ? "StrictMode" : "Mode"; case 22: return "Offscreen"; case 12: @@ -20338,7 +20338,7 @@ function h9() { } return null; } - function ne(y) { + function re(y) { var x = y, L = y; if (y.alternate) for (; x.return; ) @@ -20351,96 +20351,96 @@ function h9() { } return x.tag === 3 ? L : null; } - function ie(y) { - if (ne(y) !== y) + function se(y) { + if (re(y) !== y) throw Error(l(188)); } - function fe(y) { + function ce(y) { var x = y.alternate; if (!x) { - if (x = ne(y), x === null) + if (x = re(y), x === null) throw Error(l(188)); return x !== y ? null : y; } - for (var L = y, H = x; ; ) { - var q = L.return; - if (q === null) + for (var L = y, k = x; ; ) { + var X = L.return; + if (X === null) break; - var ee = q.alternate; - if (ee === null) { - if (H = q.return, H !== null) { - L = H; + var $ = X.alternate; + if ($ === null) { + if (k = X.return, k !== null) { + L = k; continue; } break; } - if (q.child === ee.child) { - for (ee = q.child; ee; ) { - if (ee === L) - return ie(q), y; - if (ee === H) - return ie(q), x; - ee = ee.sibling; + if (X.child === $.child) { + for ($ = X.child; $; ) { + if ($ === L) + return se(X), y; + if ($ === k) + return se(X), x; + $ = $.sibling; } throw Error(l(188)); } - if (L.return !== H.return) - L = q, H = ee; + if (L.return !== k.return) + L = X, k = $; else { - for (var Ae = !1, Ke = q.child; Ke; ) { - if (Ke === L) { - Ae = !0, L = q, H = ee; + for (var Ae = !1, $e = X.child; $e; ) { + if ($e === L) { + Ae = !0, L = X, k = $; break; } - if (Ke === H) { - Ae = !0, H = q, L = ee; + if ($e === k) { + Ae = !0, k = X, L = $; break; } - Ke = Ke.sibling; + $e = $e.sibling; } if (!Ae) { - for (Ke = ee.child; Ke; ) { - if (Ke === L) { - Ae = !0, L = ee, H = q; + for ($e = $.child; $e; ) { + if ($e === L) { + Ae = !0, L = $, k = X; break; } - if (Ke === H) { - Ae = !0, H = ee, L = q; + if ($e === k) { + Ae = !0, k = $, L = X; break; } - Ke = Ke.sibling; + $e = $e.sibling; } if (!Ae) throw Error(l(189)); } } - if (L.alternate !== H) + if (L.alternate !== k) throw Error(l(190)); } if (L.tag !== 3) throw Error(l(188)); return L.stateNode.current === L ? y : x; } - function le(y) { - return y = fe(y), y !== null ? Ee(y) : null; + function ue(y) { + return y = ce(y), y !== null ? Me(y) : null; } - function Ee(y) { + function Me(y) { if (y.tag === 5 || y.tag === 6) return y; for (y = y.child; y !== null; ) { - var x = Ee(y); + var x = Me(y); if (x !== null) return x; y = y.sibling; } return null; } - function he(y) { + function me(y) { if (y.tag === 5 || y.tag === 6) return y; for (y = y.child; y !== null; ) { if (y.tag !== 4) { - var x = he(y); + var x = me(y); if (x !== null) return x; } @@ -20448,23 +20448,23 @@ function h9() { } return null; } - var Fe = Array.isArray, Ce = e.getPublicInstance, Be = e.getRootHostContext, pe = e.getChildHostContext, de = e.prepareForCommit, ce = e.resetAfterCommit, ye = e.createInstance, we = e.appendInitialChild, Xe = e.finalizeInitialChildren, Je = e.prepareUpdate, st = e.shouldSetTextContent, Ue = e.createTextInstance, ot = e.scheduleTimeout, rt = e.cancelTimeout, _t = e.noTimeout, Rt = e.isPrimaryRenderer, Ot = e.supportsMutation, He = e.supportsPersistence, et = e.supportsHydration, mt = e.getInstanceFromNode, vt = e.preparePortalMount, bt = e.getCurrentEventPriority, Qt = e.detachDeletedInstance, ft = e.supportsMicrotasks, Vt = e.scheduleMicrotask, Jt = e.supportsTestSelectors, Mt = e.findFiberRoot, Me = e.getBoundingRect, oe = e.getTextContent, je = e.isHiddenSubtree, lt = e.matchAccessibilityRole, zt = e.setFocusIfFocusable, Nt = e.setupIntersectionObserver, Ut = e.appendChild, tt = e.appendChildToContainer, rn = e.commitTextUpdate, ze = e.commitMount, xe = e.commitUpdate, Ie = e.insertBefore, it = e.insertInContainerBefore, at = e.removeChild, hn = e.removeChildFromContainer, De = e.resetTextContent, Tt = e.hideInstance, Ne = e.hideTextInstance, Gt = e.unhideInstance, Pt = e.unhideTextInstance, fn = e.clearContainer, Gr = e.cloneInstance, Wr = e.createContainerChildSet, Ur = e.appendChildToContainerChildSet, ir = e.finalizeContainerChildren, Vn = e.replaceContainerChildren, jr = e.cloneHiddenInstance, ti = e.cloneHiddenTextInstance, ki = e.canHydrateInstance, Wi = e.canHydrateTextInstance, ni = e.canHydrateSuspenseInstance, ji = e.isSuspenseInstancePending, Si = e.isSuspenseInstanceFallback, Te = e.registerSuspenseInstanceRetry, ct = e.getNextHydratableSibling, me = e.getFirstHydratableChild, Oe = e.getFirstHydratableChildWithinContainer, qe = e.getFirstHydratableChildWithinSuspenseInstance, on = e.hydrateInstance, yn = e.hydrateTextInstance, Rn = e.hydrateSuspenseInstance, mn = e.getNextHydratableInstanceAfterSuspenseInstance, vn = e.commitHydratedContainer, Zn = e.commitHydratedSuspenseInstance, nr = e.clearSuspenseBoundary, br = e.clearSuspenseBoundaryFromContainer, Yi = e.shouldDeleteUnhydratedTailInstances, La = e.didNotMatchHydratedContainerTextInstance, Xs = e.didNotMatchHydratedTextInstance, $t; - function Zr(y) { - if ($t === void 0) + var De = Array.isArray, Re = e.getPublicInstance, He = e.getRootHostContext, ve = e.getChildHostContext, fe = e.prepareForCommit, he = e.resetAfterCommit, ye = e.createInstance, Ee = e.appendInitialChild, Ve = e.finalizeInitialChildren, Je = e.prepareUpdate, rt = e.shouldSetTextContent, Ne = e.createTextInstance, ct = e.scheduleTimeout, tt = e.cancelTimeout, Tt = e.noTimeout, gt = e.isPrimaryRenderer, ft = e.supportsMutation, Ie = e.supportsPersistence, qe = e.supportsHydration, dt = e.getInstanceFromNode, ht = e.preparePortalMount, xt = e.getCurrentEventPriority, Vt = e.detachDeletedInstance, yt = e.supportsMicrotasks, Nt = e.scheduleMicrotask, Zt = e.supportsTestSelectors, Rt = e.findFiberRoot, we = e.getBoundingRect, oe = e.getTextContent, Qe = e.isHiddenSubtree, ut = e.matchAccessibilityRole, Ft = e.setFocusIfFocusable, Ot = e.setupIntersectionObserver, Wt = e.appendChild, it = e.appendChildToContainer, an = e.commitTextUpdate, Be = e.commitMount, pe = e.commitUpdate, Fe = e.insertBefore, at = e.insertInContainerBefore, st = e.removeChild, dn = e.removeChildFromContainer, ze = e.resetTextContent, wt = e.hideInstance, Pe = e.hideTextInstance, Gt = e.unhideInstance, At = e.unhideTextInstance, cn = e.clearContainer, ki = e.cloneInstance, Or = e.createContainerChildSet, Ii = e.appendChildToContainerChildSet, Ir = e.finalizeContainerChildren, Bn = e.replaceContainerChildren, Mi = e.cloneHiddenInstance, yi = e.cloneHiddenTextInstance, ii = e.canHydrateInstance, Bi = e.canHydrateTextInstance, xi = e.canHydrateSuspenseInstance, $r = e.isSuspenseInstancePending, ai = e.isSuspenseInstanceFallback, Te = e.registerSuspenseInstanceRetry, ot = e.getNextHydratableSibling, de = e.getFirstHydratableChild, Le = e.getFirstHydratableChildWithinContainer, Ye = e.getFirstHydratableChildWithinSuspenseInstance, $t = e.hydrateInstance, mn = e.hydrateTextInstance, Rn = e.hydrateSuspenseInstance, gn = e.getNextHydratableInstanceAfterSuspenseInstance, yn = e.commitHydratedContainer, Jn = e.commitHydratedSuspenseInstance, rr = e.clearSuspenseBoundary, wr = e.clearSuspenseBoundaryFromContainer, Yi = e.shouldDeleteUnhydratedTailInstances, La = e.didNotMatchHydratedContainerTextInstance, qs = e.didNotMatchHydratedTextInstance, en; + function Xr(y) { + if (en === void 0) try { throw Error(); } catch (L) { var x = L.stack.trim().match(/\n( *(at )?)/); - $t = x && x[1] || ""; + en = x && x[1] || ""; } return ` -` + $t + y; +` + en + y; } - var ls = !1; - function Xn(y, x) { - if (!y || ls) + var us = !1; + function qn(y, x) { + if (!y || us) return ""; - ls = !0; + us = !0; var L = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { @@ -20476,108 +20476,108 @@ function h9() { } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(x, []); - } catch (cn) { - var H = cn; + } catch (hn) { + var k = hn; } Reflect.construct(y, [], x); } else { try { x.call(); - } catch (cn) { - H = cn; + } catch (hn) { + k = hn; } y.call(x.prototype); } else { try { throw Error(); - } catch (cn) { - H = cn; + } catch (hn) { + k = hn; } y(); } - } catch (cn) { - if (cn && H && typeof cn.stack == "string") { - for (var q = cn.stack.split(` -`), ee = H.stack.split(` -`), Ae = q.length - 1, Ke = ee.length - 1; 1 <= Ae && 0 <= Ke && q[Ae] !== ee[Ke]; ) - Ke--; - for (; 1 <= Ae && 0 <= Ke; Ae--, Ke--) - if (q[Ae] !== ee[Ke]) { - if (Ae !== 1 || Ke !== 1) + } catch (hn) { + if (hn && k && typeof hn.stack == "string") { + for (var X = hn.stack.split(` +`), $ = k.stack.split(` +`), Ae = X.length - 1, $e = $.length - 1; 1 <= Ae && 0 <= $e && X[Ae] !== $[$e]; ) + $e--; + for (; 1 <= Ae && 0 <= $e; Ae--, $e--) + if (X[Ae] !== $[$e]) { + if (Ae !== 1 || $e !== 1) do - if (Ae--, Ke--, 0 > Ke || q[Ae] !== ee[Ke]) { + if (Ae--, $e--, 0 > $e || X[Ae] !== $[$e]) { var kt = ` -` + q[Ae].replace(" at new ", " at "); +` + X[Ae].replace(" at new ", " at "); return y.displayName && kt.includes("") && (kt = kt.replace("", y.displayName)), kt; } - while (1 <= Ae && 0 <= Ke); + while (1 <= Ae && 0 <= $e); break; } } } finally { - ls = !1, Error.prepareStackTrace = L; + us = !1, Error.prepareStackTrace = L; } - return (y = y ? y.displayName || y.name : "") ? Zr(y) : ""; + return (y = y ? y.displayName || y.name : "") ? Xr(y) : ""; } - var qa = Object.prototype.hasOwnProperty, mo = [], Ds = -1; - function us(y) { + var qa = Object.prototype.hasOwnProperty, mo = [], Ls = -1; + function cs(y) { return { current: y }; } function mr(y) { - 0 > Ds || (y.current = mo[Ds], mo[Ds] = null, Ds--); + 0 > Ls || (y.current = mo[Ls], mo[Ls] = null, Ls--); } - function pi(y, x) { - Ds++, mo[Ds] = y.current, y.current = x; + function di(y, x) { + Ls++, mo[Ls] = y.current, y.current = x; } - var Ea = {}, _i = us(Ea), Ti = us(!1), Uo = Ea; + var Ea = {}, Si = cs(Ea), Ti = cs(!1), Uo = Ea; function zo(y, x) { var L = y.type.contextTypes; if (!L) return Ea; - var H = y.stateNode; - if (H && H.__reactInternalMemoizedUnmaskedChildContext === x) - return H.__reactInternalMemoizedMaskedChildContext; - var q = {}, ee; - for (ee in L) - q[ee] = x[ee]; - return H && (y = y.stateNode, y.__reactInternalMemoizedUnmaskedChildContext = x, y.__reactInternalMemoizedMaskedChildContext = q), q; + var k = y.stateNode; + if (k && k.__reactInternalMemoizedUnmaskedChildContext === x) + return k.__reactInternalMemoizedMaskedChildContext; + var X = {}, $; + for ($ in L) + X[$] = x[$]; + return k && (y = y.stateNode, y.__reactInternalMemoizedUnmaskedChildContext = x, y.__reactInternalMemoizedMaskedChildContext = X), X; } function Pa(y) { return y = y.childContextTypes, y != null; } - function Rl() { - mr(Ti), mr(_i); + function Dl() { + mr(Ti), mr(Si); } function vo(y, x, L) { - if (_i.current !== Ea) + if (Si.current !== Ea) throw Error(l(168)); - pi(_i, x), pi(Ti, L); + di(Si, x), di(Ti, L); } - function Wf(y, x, L) { - var H = y.stateNode; - if (x = x.childContextTypes, typeof H.getChildContext != "function") + function Yf(y, x, L) { + var k = y.stateNode; + if (x = x.childContextTypes, typeof k.getChildContext != "function") return L; - H = H.getChildContext(); - for (var q in H) - if (!(q in x)) - throw Error(l(108, W(y) || "Unknown", q)); - return o({}, L, H); - } - function Al(y) { - return y = (y = y.stateNode) && y.__reactInternalMemoizedMergedChildContext || Ea, Uo = _i.current, pi(_i, y), pi(Ti, Ti.current), !0; - } - function zd(y, x, L) { - var H = y.stateNode; - if (!H) + k = k.getChildContext(); + for (var X in k) + if (!(X in x)) + throw Error(l(108, Y(y) || "Unknown", X)); + return s({}, L, k); + } + function Ll(y) { + return y = (y = y.stateNode) && y.__reactInternalMemoizedMergedChildContext || Ea, Uo = Si.current, di(Si, y), di(Ti, Ti.current), !0; + } + function Nd(y, x, L) { + var k = y.stateNode; + if (!k) throw Error(l(169)); - L ? (y = Wf(y, x, Uo), H.__reactInternalMemoizedMergedChildContext = y, mr(Ti), mr(_i), pi(_i, y)) : mr(Ti), pi(Ti, L); + L ? (y = Yf(y, x, Uo), k.__reactInternalMemoizedMergedChildContext = y, mr(Ti), mr(Si), di(Si, y)) : mr(Ti), di(Ti, L); } - var Ls = Math.clz32 ? Math.clz32 : qh, Ju = Math.log, au = Math.LN2; - function qh(y) { - return y >>>= 0, y === 0 ? 32 : 31 - (Ju(y) / au | 0) | 0; + var Ps = Math.clz32 ? Math.clz32 : Jh, Ju = Math.log, ou = Math.LN2; + function Jh(y) { + return y >>>= 0, y === 0 ? 32 : 31 - (Ju(y) / ou | 0) | 0; } - var Dl = 64, ri = 4194304; + var Pl = 64, ei = 4194304; function go(y) { switch (y & -y) { case 1: @@ -20627,24 +20627,24 @@ function h9() { return y; } } - function jf(y, x) { + function Xf(y, x) { var L = y.pendingLanes; if (L === 0) return 0; - var H = 0, q = y.suspendedLanes, ee = y.pingedLanes, Ae = L & 268435455; + var k = 0, X = y.suspendedLanes, $ = y.pingedLanes, Ae = L & 268435455; if (Ae !== 0) { - var Ke = Ae & ~q; - Ke !== 0 ? H = go(Ke) : (ee &= Ae, ee !== 0 && (H = go(ee))); + var $e = Ae & ~X; + $e !== 0 ? k = go($e) : ($ &= Ae, $ !== 0 && (k = go($))); } else - Ae = L & ~q, Ae !== 0 ? H = go(Ae) : ee !== 0 && (H = go(ee)); - if (H === 0) + Ae = L & ~X, Ae !== 0 ? k = go(Ae) : $ !== 0 && (k = go($)); + if (k === 0) return 0; - if (x !== 0 && x !== H && (x & q) === 0 && (q = H & -H, ee = x & -x, q >= ee || q === 16 && (ee & 4194240) !== 0)) + if (x !== 0 && x !== k && (x & X) === 0 && (X = k & -k, $ = x & -x, X >= $ || X === 16 && ($ & 4194240) !== 0)) return x; - if ((H & 4) !== 0 && (H |= L & 16), x = y.entangledLanes, x !== 0) - for (y = y.entanglements, x &= H; 0 < x; ) - L = 31 - Ls(x), q = 1 << L, H |= y[L], x &= ~q; - return H; + if ((k & 4) !== 0 && (k |= L & 16), x = y.entangledLanes, x !== 0) + for (y = y.entanglements, x &= k; 0 < x; ) + L = 31 - Ps(x), X = 1 << L, k |= y[L], x &= ~X; + return k; } function No(y, x) { switch (y) { @@ -20688,352 +20688,352 @@ function h9() { } } function Ci(y, x) { - for (var L = y.suspendedLanes, H = y.pingedLanes, q = y.expirationTimes, ee = y.pendingLanes; 0 < ee; ) { - var Ae = 31 - Ls(ee), Ke = 1 << Ae, kt = q[Ae]; - kt === -1 ? ((Ke & L) === 0 || (Ke & H) !== 0) && (q[Ae] = No(Ke, x)) : kt <= x && (y.expiredLanes |= Ke), ee &= ~Ke; + for (var L = y.suspendedLanes, k = y.pingedLanes, X = y.expirationTimes, $ = y.pendingLanes; 0 < $; ) { + var Ae = 31 - Ps($), $e = 1 << Ae, kt = X[Ae]; + kt === -1 ? (($e & L) === 0 || ($e & k) !== 0) && (X[Ae] = No($e, x)) : kt <= x && (y.expiredLanes |= $e), $ &= ~$e; } } - function cs(y) { + function fs(y) { return y = y.pendingLanes & -1073741825, y !== 0 ? y : y & 1073741824 ? 1073741824 : 0; } - function Yf(y) { + function qf(y) { for (var x = [], L = 0; 31 > L; L++) x.push(y); return x; } function xr(y, x, L) { - y.pendingLanes |= x, x !== 536870912 && (y.suspendedLanes = 0, y.pingedLanes = 0), y = y.eventTimes, x = 31 - Ls(x), y[x] = L; + y.pendingLanes |= x, x !== 536870912 && (y.suspendedLanes = 0, y.pingedLanes = 0), y = y.eventTimes, x = 31 - Ps(x), y[x] = L; } - function Eu(y, x) { + function Tu(y, x) { var L = y.pendingLanes & ~x; y.pendingLanes = x, y.suspendedLanes = 0, y.pingedLanes = 0, y.expiredLanes &= x, y.mutableReadLanes &= x, y.entangledLanes &= x, x = y.entanglements; - var H = y.eventTimes; + var k = y.eventTimes; for (y = y.expirationTimes; 0 < L; ) { - var q = 31 - Ls(L), ee = 1 << q; - x[q] = 0, H[q] = -1, y[q] = -1, L &= ~ee; + var X = 31 - Ps(L), $ = 1 << X; + x[X] = 0, k[X] = -1, y[X] = -1, L &= ~$; } } function ua(y, x) { var L = y.entangledLanes |= x; for (y = y.entanglements; L; ) { - var H = 31 - Ls(L), q = 1 << H; - q & x | y[H] & x && (y[H] |= x), L &= ~q; + var k = 31 - Ps(L), X = 1 << k; + X & x | y[k] & x && (y[k] |= x), L &= ~X; } } var Cr = 0; - function fl(y) { + function dl(y) { return y &= -y, 1 < y ? 4 < y ? (y & 268435455) !== 0 ? 16 : 536870912 : 4 : 1; } - var yo = i.unstable_scheduleCallback, Ka = i.unstable_cancelCallback, Xi = i.unstable_shouldYield, Rm = i.unstable_requestPaint, mi = i.unstable_now, Qa = i.unstable_ImmediatePriority, Sc = i.unstable_UserBlockingPriority, dl = i.unstable_NormalPriority, df = i.unstable_IdlePriority, hf = null, su = null; - function Ii(y) { - if (su && typeof su.onCommitFiberRoot == "function") + var yo = i.unstable_scheduleCallback, Ka = i.unstable_cancelCallback, Xi = i.unstable_shouldYield, Lm = i.unstable_requestPaint, hi = i.unstable_now, Qa = i.unstable_ImmediatePriority, Sc = i.unstable_UserBlockingPriority, hl = i.unstable_NormalPriority, pf = i.unstable_IdlePriority, mf = null, lu = null; + function Hi(y) { + if (lu && typeof lu.onCommitFiberRoot == "function") try { - su.onCommitFiberRoot(hf, y, void 0, (y.current.flags & 128) === 128); + lu.onCommitFiberRoot(mf, y, void 0, (y.current.flags & 128) === 128); } catch { } } function Ri(y, x) { return y === x && (y !== 0 || 1 / y === 1 / x) || y !== y && x !== x; } - var Fo = typeof Object.is == "function" ? Object.is : Ri, Ps = null, _c = !1, Ll = !1; - function Xf(y) { - Ps === null ? Ps = [y] : Ps.push(y); + var Fo = typeof Object.is == "function" ? Object.is : Ri, Os = null, wc = !1, Ol = !1; + function Qf(y) { + Os === null ? Os = [y] : Os.push(y); } - function qf(y) { - _c = !0, Xf(y); + function Zf(y) { + wc = !0, Qf(y); } function ko() { - if (!Ll && Ps !== null) { - Ll = !0; + if (!Ol && Os !== null) { + Ol = !0; var y = 0, x = Cr; try { - var L = Ps; + var L = Os; for (Cr = 1; y < L.length; y++) { - var H = L[y]; + var k = L[y]; do - H = H(!0); - while (H !== null); + k = k(!0); + while (k !== null); } - Ps = null, _c = !1; - } catch (q) { - throw Ps !== null && (Ps = Ps.slice(y + 1)), yo(Qa, ko), q; + Os = null, wc = !1; + } catch (X) { + throw Os !== null && (Os = Os.slice(y + 1)), yo(Qa, ko), X; } finally { - Cr = x, Ll = !1; + Cr = x, Ol = !1; } } return null; } - var Qf = d.ReactCurrentBatchConfig; + var Jf = d.ReactCurrentBatchConfig; function Ki(y, x) { if (Fo(y, x)) return !0; if (typeof y != "object" || y === null || typeof x != "object" || x === null) return !1; - var L = Object.keys(y), H = Object.keys(x); - if (L.length !== H.length) + var L = Object.keys(y), k = Object.keys(x); + if (L.length !== k.length) return !1; - for (H = 0; H < L.length; H++) { - var q = L[H]; - if (!qa.call(x, q) || !Fo(y[q], x[q])) + for (k = 0; k < L.length; k++) { + var X = L[k]; + if (!qa.call(x, X) || !Fo(y[X], x[X])) return !1; } return !0; } - function Mu(y) { + function Cu(y) { switch (y.tag) { case 5: - return Zr(y.type); + return Xr(y.type); case 16: - return Zr("Lazy"); + return Xr("Lazy"); case 13: - return Zr("Suspense"); + return Xr("Suspense"); case 19: - return Zr("SuspenseList"); + return Xr("SuspenseList"); case 0: case 2: case 15: - return y = Xn(y.type, !1), y; + return y = qn(y.type, !1), y; case 11: - return y = Xn(y.type.render, !1), y; + return y = qn(y.type.render, !1), y; case 1: - return y = Xn(y.type, !0), y; + return y = qn(y.type, !0), y; default: return ""; } } function Oa(y, x) { if (y && y.defaultProps) { - x = o({}, x), y = y.defaultProps; + x = s({}, x), y = y.defaultProps; for (var L in y) x[L] === void 0 && (x[L] = y[L]); return x; } return x; } - var ys = us(null), ou = null, Ua = null, bc = null; + var xs = cs(null), uu = null, Ua = null, bc = null; function xo() { - bc = Ua = ou = null; + bc = Ua = uu = null; } - function Tu(y, x, L) { - Rt ? (pi(ys, x._currentValue), x._currentValue = L) : (pi(ys, x._currentValue2), x._currentValue2 = L); + function Ru(y, x, L) { + gt ? (di(xs, x._currentValue), x._currentValue = L) : (di(xs, x._currentValue2), x._currentValue2 = L); } - function Pl(y) { - var x = ys.current; - mr(ys), Rt ? y._currentValue = x : y._currentValue2 = x; + function Ul(y) { + var x = xs.current; + mr(xs), gt ? y._currentValue = x : y._currentValue2 = x; } function za(y, x, L) { for (; y !== null; ) { - var H = y.alternate; - if ((y.childLanes & x) !== x ? (y.childLanes |= x, H !== null && (H.childLanes |= x)) : H !== null && (H.childLanes & x) !== x && (H.childLanes |= x), y === L) + var k = y.alternate; + if ((y.childLanes & x) !== x ? (y.childLanes |= x, k !== null && (k.childLanes |= x)) : k !== null && (k.childLanes & x) !== x && (k.childLanes |= x), y === L) break; y = y.return; } } - function qs(y, x) { - ou = y, bc = Ua = null, y = y.dependencies, y !== null && y.firstContext !== null && ((y.lanes & x) !== 0 && (oi = !0), y.firstContext = null); + function Qs(y, x) { + uu = y, bc = Ua = null, y = y.dependencies, y !== null && y.firstContext !== null && ((y.lanes & x) !== 0 && (si = !0), y.firstContext = null); } - function Jr(y) { - var x = Rt ? y._currentValue : y._currentValue2; + function qr(y) { + var x = gt ? y._currentValue : y._currentValue2; if (bc !== y) if (y = { context: y, memoizedValue: x, next: null }, Ua === null) { - if (ou === null) + if (uu === null) throw Error(l(308)); - Ua = y, ou.dependencies = { lanes: 0, firstContext: y }; + Ua = y, uu.dependencies = { lanes: 0, firstContext: y }; } else Ua = Ua.next = y; return x; } - var xs = null, va = !1; - function Qs(y) { + var _s = null, va = !1; + function Zs(y) { y.updateQueue = { baseState: y.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null }; } - function Zf(y, x) { + function Kf(y, x) { y = y.updateQueue, x.updateQueue === y && (x.updateQueue = { baseState: y.baseState, firstBaseUpdate: y.firstBaseUpdate, lastBaseUpdate: y.lastBaseUpdate, shared: y.shared, effects: y.effects }); } - function $o(y, x) { + function el(y, x) { return { eventTime: y, lane: x, tag: 0, payload: null, callback: null, next: null }; } function Ku(y, x) { var L = y.updateQueue; - L !== null && (L = L.shared, Ra !== null && (y.mode & 1) !== 0 && (Kr & 2) === 0 ? (y = L.interleaved, y === null ? (x.next = x, xs === null ? xs = [L] : xs.push(L)) : (x.next = y.next, y.next = x), L.interleaved = x) : (y = L.pending, y === null ? x.next = x : (x.next = y.next, y.next = x), L.pending = x)); + L !== null && (L = L.shared, Ra !== null && (y.mode & 1) !== 0 && (Qr & 2) === 0 ? (y = L.interleaved, y === null ? (x.next = x, _s === null ? _s = [L] : _s.push(L)) : (x.next = y.next, y.next = x), L.interleaved = x) : (y = L.pending, y === null ? x.next = x : (x.next = y.next, y.next = x), L.pending = x)); } - function Qh(y, x, L) { + function Kh(y, x, L) { if (x = x.updateQueue, x !== null && (x = x.shared, (L & 4194240) !== 0)) { - var H = x.lanes; - H &= y.pendingLanes, L |= H, x.lanes = L, ua(y, L); + var k = x.lanes; + k &= y.pendingLanes, L |= k, x.lanes = L, ua(y, L); } } function qi(y, x) { - var L = y.updateQueue, H = y.alternate; - if (H !== null && (H = H.updateQueue, L === H)) { - var q = null, ee = null; + var L = y.updateQueue, k = y.alternate; + if (k !== null && (k = k.updateQueue, L === k)) { + var X = null, $ = null; if (L = L.firstBaseUpdate, L !== null) { do { var Ae = { eventTime: L.eventTime, lane: L.lane, tag: L.tag, payload: L.payload, callback: L.callback, next: null }; - ee === null ? q = ee = Ae : ee = ee.next = Ae, L = L.next; + $ === null ? X = $ = Ae : $ = $.next = Ae, L = L.next; } while (L !== null); - ee === null ? q = ee = x : ee = ee.next = x; + $ === null ? X = $ = x : $ = $.next = x; } else - q = ee = x; - L = { baseState: H.baseState, firstBaseUpdate: q, lastBaseUpdate: ee, shared: H.shared, effects: H.effects }, y.updateQueue = L; + X = $ = x; + L = { baseState: k.baseState, firstBaseUpdate: X, lastBaseUpdate: $, shared: k.shared, effects: k.effects }, y.updateQueue = L; return; } y = L.lastBaseUpdate, y === null ? L.firstBaseUpdate = x : y.next = x, L.lastBaseUpdate = x; } - function Cu(y, x, L, H) { - var q = y.updateQueue; + function Au(y, x, L, k) { + var X = y.updateQueue; va = !1; - var ee = q.firstBaseUpdate, Ae = q.lastBaseUpdate, Ke = q.shared.pending; - if (Ke !== null) { - q.shared.pending = null; - var kt = Ke, cn = kt.next; - kt.next = null, Ae === null ? ee = cn : Ae.next = cn, Ae = kt; - var bn = y.alternate; - bn !== null && (bn = bn.updateQueue, Ke = bn.lastBaseUpdate, Ke !== Ae && (Ke === null ? bn.firstBaseUpdate = cn : Ke.next = cn, bn.lastBaseUpdate = kt)); + var $ = X.firstBaseUpdate, Ae = X.lastBaseUpdate, $e = X.shared.pending; + if ($e !== null) { + X.shared.pending = null; + var kt = $e, hn = kt.next; + kt.next = null, Ae === null ? $ = hn : Ae.next = hn, Ae = kt; + var wn = y.alternate; + wn !== null && (wn = wn.updateQueue, $e = wn.lastBaseUpdate, $e !== Ae && ($e === null ? wn.firstBaseUpdate = hn : $e.next = hn, wn.lastBaseUpdate = kt)); } - if (ee !== null) { - var wr = q.baseState; - Ae = 0, bn = cn = kt = null, Ke = ee; + if ($ !== null) { + var br = X.baseState; + Ae = 0, wn = hn = kt = null, $e = $; do { - var ur = Ke.lane, _a = Ke.eventTime; - if ((H & ur) === ur) { - bn !== null && (bn = bn.next = { - eventTime: _a, + var ur = $e.lane, Sa = $e.eventTime; + if ((k & ur) === ur) { + wn !== null && (wn = wn.next = { + eventTime: Sa, lane: 0, - tag: Ke.tag, - payload: Ke.payload, - callback: Ke.callback, + tag: $e.tag, + payload: $e.payload, + callback: $e.callback, next: null }); e: { - var Tn = y, Li = Ke; - switch (ur = x, _a = L, Li.tag) { + var Tn = y, Li = $e; + switch (ur = x, Sa = L, Li.tag) { case 1: if (Tn = Li.payload, typeof Tn == "function") { - wr = Tn.call(_a, wr, ur); + br = Tn.call(Sa, br, ur); break e; } - wr = Tn; + br = Tn; break e; case 3: Tn.flags = Tn.flags & -65537 | 128; case 0: - if (Tn = Li.payload, ur = typeof Tn == "function" ? Tn.call(_a, wr, ur) : Tn, ur == null) + if (Tn = Li.payload, ur = typeof Tn == "function" ? Tn.call(Sa, br, ur) : Tn, ur == null) break e; - wr = o({}, wr, ur); + br = s({}, br, ur); break e; case 2: va = !0; } } - Ke.callback !== null && Ke.lane !== 0 && (y.flags |= 64, ur = q.effects, ur === null ? q.effects = [Ke] : ur.push(Ke)); + $e.callback !== null && $e.lane !== 0 && (y.flags |= 64, ur = X.effects, ur === null ? X.effects = [$e] : ur.push($e)); } else - _a = { eventTime: _a, lane: ur, tag: Ke.tag, payload: Ke.payload, callback: Ke.callback, next: null }, bn === null ? (cn = bn = _a, kt = wr) : bn = bn.next = _a, Ae |= ur; - if (Ke = Ke.next, Ke === null) { - if (Ke = q.shared.pending, Ke === null) + Sa = { eventTime: Sa, lane: ur, tag: $e.tag, payload: $e.payload, callback: $e.callback, next: null }, wn === null ? (hn = wn = Sa, kt = br) : wn = wn.next = Sa, Ae |= ur; + if ($e = $e.next, $e === null) { + if ($e = X.shared.pending, $e === null) break; - ur = Ke, Ke = ur.next, ur.next = null, q.lastBaseUpdate = ur, q.shared.pending = null; + ur = $e, $e = ur.next, ur.next = null, X.lastBaseUpdate = ur, X.shared.pending = null; } } while (1); - if (bn === null && (kt = wr), q.baseState = kt, q.firstBaseUpdate = cn, q.lastBaseUpdate = bn, x = q.shared.interleaved, x !== null) { - q = x; + if (wn === null && (kt = br), X.baseState = kt, X.firstBaseUpdate = hn, X.lastBaseUpdate = wn, x = X.shared.interleaved, x !== null) { + X = x; do - Ae |= q.lane, q = q.next; - while (q !== x); + Ae |= X.lane, X = X.next; + while (X !== x); } else - ee === null && (q.shared.lanes = 0); - zc |= Ae, y.lanes = Ae, y.memoizedState = wr; + $ === null && (X.shared.lanes = 0); + Nc |= Ae, y.lanes = Ae, y.memoizedState = br; } } - function Up(y, x, L) { + function Fp(y, x, L) { if (y = x.effects, x.effects = null, y !== null) for (x = 0; x < y.length; x++) { - var H = y[x], q = H.callback; - if (q !== null) { - if (H.callback = null, H = L, typeof q != "function") - throw Error(l(191, q)); - q.call(H); + var k = y[x], X = k.callback; + if (X !== null) { + if (k.callback = null, k = L, typeof X != "function") + throw Error(l(191, X)); + X.call(k); } } } - var fg = new r.Component().refs; - function Zh(y, x, L, H) { - x = y.memoizedState, L = L(H, x), L = L == null ? x : o({}, x, L), y.memoizedState = L, y.lanes === 0 && (y.updateQueue.baseState = L); + var pg = new r.Component().refs; + function $h(y, x, L, k) { + x = y.memoizedState, L = L(k, x), L = L == null ? x : s({}, x, L), y.memoizedState = L, y.lanes === 0 && (y.updateQueue.baseState = L); } - var Am = { isMounted: function(y) { - return (y = y._reactInternals) ? ne(y) === y : !1; + var Pm = { isMounted: function(y) { + return (y = y._reactInternals) ? re(y) === y : !1; }, enqueueSetState: function(y, x, L) { y = y._reactInternals; - var H = fi(), q = Ns(y), ee = $o(H, q); - ee.payload = x, L != null && (ee.callback = L), Ku(y, ee), x = jl(y, q, H), x !== null && Qh(x, y, q); + var k = ui(), X = Fs(y), $ = el(k, X); + $.payload = x, L != null && ($.callback = L), Ku(y, $), x = Xl(y, X, k), x !== null && Kh(x, y, X); }, enqueueReplaceState: function(y, x, L) { y = y._reactInternals; - var H = fi(), q = Ns(y), ee = $o(H, q); - ee.tag = 1, ee.payload = x, L != null && (ee.callback = L), Ku(y, ee), x = jl(y, q, H), x !== null && Qh(x, y, q); + var k = ui(), X = Fs(y), $ = el(k, X); + $.tag = 1, $.payload = x, L != null && ($.callback = L), Ku(y, $), x = Xl(y, X, k), x !== null && Kh(x, y, X); }, enqueueForceUpdate: function(y, x) { y = y._reactInternals; - var L = fi(), H = Ns(y), q = $o( + var L = ui(), k = Fs(y), X = el( L, - H + k ); - q.tag = 2, x != null && (q.callback = x), Ku(y, q), x = jl(y, H, L), x !== null && Qh(x, y, H); + X.tag = 2, x != null && (X.callback = x), Ku(y, X), x = Xl(y, k, L), x !== null && Kh(x, y, k); } }; - function Dm(y, x, L, H, q, ee, Ae) { - return y = y.stateNode, typeof y.shouldComponentUpdate == "function" ? y.shouldComponentUpdate(H, ee, Ae) : x.prototype && x.prototype.isPureReactComponent ? !Ki(L, H) || !Ki(q, ee) : !0; - } - function Lm(y, x, L) { - var H = !1, q = Ea, ee = x.contextType; - return typeof ee == "object" && ee !== null ? ee = Jr(ee) : (q = Pa(x) ? Uo : _i.current, H = x.contextTypes, ee = (H = H != null) ? zo(y, q) : Ea), x = new x(L, ee), y.memoizedState = x.state !== null && x.state !== void 0 ? x.state : null, x.updater = Am, y.stateNode = x, x._reactInternals = y, H && (y = y.stateNode, y.__reactInternalMemoizedUnmaskedChildContext = q, y.__reactInternalMemoizedMaskedChildContext = ee), x; - } - function Pm(y, x, L, H) { - y = x.state, typeof x.componentWillReceiveProps == "function" && x.componentWillReceiveProps(L, H), typeof x.UNSAFE_componentWillReceiveProps == "function" && x.UNSAFE_componentWillReceiveProps(L, H), x.state !== y && Am.enqueueReplaceState(x, x.state, null); - } - function vh(y, x, L, H) { - var q = y.stateNode; - q.props = L, q.state = y.memoizedState, q.refs = fg, Qs(y); - var ee = x.contextType; - typeof ee == "object" && ee !== null ? q.context = Jr(ee) : (ee = Pa(x) ? Uo : _i.current, q.context = zo(y, ee)), q.state = y.memoizedState, ee = x.getDerivedStateFromProps, typeof ee == "function" && (Zh(y, x, ee, L), q.state = y.memoizedState), typeof x.getDerivedStateFromProps == "function" || typeof q.getSnapshotBeforeUpdate == "function" || typeof q.UNSAFE_componentWillMount != "function" && typeof q.componentWillMount != "function" || (x = q.state, typeof q.componentWillMount == "function" && q.componentWillMount(), typeof q.UNSAFE_componentWillMount == "function" && q.UNSAFE_componentWillMount(), x !== q.state && Am.enqueueReplaceState(q, q.state, null), Cu(y, L, q, H), q.state = y.memoizedState), typeof q.componentDidMount == "function" && (y.flags |= 4194308); - } - var $u = [], Nd = 0, Ru = null, zp = 0, hl = [], el = 0, pf = null, Jf = 1, lu = ""; - function mf(y, x) { - $u[Nd++] = zp, $u[Nd++] = Ru, Ru = y, zp = x; - } - function Ol(y, x, L) { - hl[el++] = Jf, hl[el++] = lu, hl[el++] = pf, pf = y; - var H = Jf; - y = lu; - var q = 32 - Ls(H) - 1; - H &= ~(1 << q), L += 1; - var ee = 32 - Ls(x) + q; - if (30 < ee) { - var Ae = q - q % 5; - ee = (H & (1 << Ae) - 1).toString(32), H >>= Ae, q -= Ae, Jf = 1 << 32 - Ls(x) + q | L << q | H, lu = ee + y; + function Om(y, x, L, k, X, $, Ae) { + return y = y.stateNode, typeof y.shouldComponentUpdate == "function" ? y.shouldComponentUpdate(k, $, Ae) : x.prototype && x.prototype.isPureReactComponent ? !Ki(L, k) || !Ki(X, $) : !0; + } + function Um(y, x, L) { + var k = !1, X = Ea, $ = x.contextType; + return typeof $ == "object" && $ !== null ? $ = qr($) : (X = Pa(x) ? Uo : Si.current, k = x.contextTypes, $ = (k = k != null) ? zo(y, X) : Ea), x = new x(L, $), y.memoizedState = x.state !== null && x.state !== void 0 ? x.state : null, x.updater = Pm, y.stateNode = x, x._reactInternals = y, k && (y = y.stateNode, y.__reactInternalMemoizedUnmaskedChildContext = X, y.__reactInternalMemoizedMaskedChildContext = $), x; + } + function zm(y, x, L, k) { + y = x.state, typeof x.componentWillReceiveProps == "function" && x.componentWillReceiveProps(L, k), typeof x.UNSAFE_componentWillReceiveProps == "function" && x.UNSAFE_componentWillReceiveProps(L, k), x.state !== y && Pm.enqueueReplaceState(x, x.state, null); + } + function gh(y, x, L, k) { + var X = y.stateNode; + X.props = L, X.state = y.memoizedState, X.refs = pg, Zs(y); + var $ = x.contextType; + typeof $ == "object" && $ !== null ? X.context = qr($) : ($ = Pa(x) ? Uo : Si.current, X.context = zo(y, $)), X.state = y.memoizedState, $ = x.getDerivedStateFromProps, typeof $ == "function" && ($h(y, x, $, L), X.state = y.memoizedState), typeof x.getDerivedStateFromProps == "function" || typeof X.getSnapshotBeforeUpdate == "function" || typeof X.UNSAFE_componentWillMount != "function" && typeof X.componentWillMount != "function" || (x = X.state, typeof X.componentWillMount == "function" && X.componentWillMount(), typeof X.UNSAFE_componentWillMount == "function" && X.UNSAFE_componentWillMount(), x !== X.state && Pm.enqueueReplaceState(X, X.state, null), Au(y, L, X, k), X.state = y.memoizedState), typeof X.componentDidMount == "function" && (y.flags |= 4194308); + } + var $u = [], Fd = 0, Du = null, kp = 0, pl = [], tl = 0, vf = null, $f = 1, cu = ""; + function gf(y, x) { + $u[Fd++] = kp, $u[Fd++] = Du, Du = y, kp = x; + } + function zl(y, x, L) { + pl[tl++] = $f, pl[tl++] = cu, pl[tl++] = vf, vf = y; + var k = $f; + y = cu; + var X = 32 - Ps(k) - 1; + k &= ~(1 << X), L += 1; + var $ = 32 - Ps(x) + X; + if (30 < $) { + var Ae = X - X % 5; + $ = (k & (1 << Ae) - 1).toString(32), k >>= Ae, X -= Ae, $f = 1 << 32 - Ps(x) + X | L << X | k, cu = $ + y; } else - Jf = 1 << ee | L << q | H, lu = y; + $f = 1 << $ | L << X | k, cu = y; } function ec(y) { - y.return !== null && (mf(y, 1), Ol(y, 1, 0)); + y.return !== null && (gf(y, 1), zl(y, 1, 0)); } function Oi(y) { - for (; y === Ru; ) - Ru = $u[--Nd], $u[Nd] = null, zp = $u[--Nd], $u[Nd] = null; - for (; y === pf; ) - pf = hl[--el], hl[el] = null, lu = hl[--el], hl[el] = null, Jf = hl[--el], hl[el] = null; + for (; y === Du; ) + Du = $u[--Fd], $u[Fd] = null, kp = $u[--Fd], $u[Fd] = null; + for (; y === vf; ) + vf = pl[--tl], pl[tl] = null, cu = pl[--tl], pl[tl] = null, $f = pl[--tl], pl[tl] = null; } - var Za = null, Ma = null, ca = !1, Fd = !1, tl = null; - function Om(y, x) { + var Za = null, Ma = null, ca = !1, kd = !1, nl = null; + function Nm(y, x) { var L = Mo(5, null, null, 0); L.elementType = "DELETED", L.stateNode = x, L.return = y, x = y.deletions, x === null ? (y.deletions = [L], y.flags |= 16) : x.push(L); } - function Um(y, x) { + function Fm(y, x) { switch (y.tag) { case 5: - return x = ki(x, y.type, y.pendingProps), x !== null ? (y.stateNode = x, Za = y, Ma = me(x), !0) : !1; + return x = ii(x, y.type, y.pendingProps), x !== null ? (y.stateNode = x, Za = y, Ma = de(x), !0) : !1; case 6: - return x = Wi(x, y.pendingProps), x !== null ? (y.stateNode = x, Za = y, Ma = null, !0) : !1; + return x = Bi(x, y.pendingProps), x !== null ? (y.stateNode = x, Za = y, Ma = null, !0) : !1; case 13: - if (x = ni(x), x !== null) { - var L = pf !== null ? { id: Jf, overflow: lu } : null; + if (x = xi(x), x !== null) { + var L = vf !== null ? { id: $f, overflow: cu } : null; return y.memoizedState = { dehydrated: x, treeContext: L, retryLane: 1073741824 }, L = Mo(18, null, null, 0), L.stateNode = x, L.return = y, y.child = L, Za = y, Ma = null, !0; } return !1; @@ -21041,81 +21041,81 @@ function h9() { return !1; } } - function gh(y) { + function yh(y) { return (y.mode & 1) !== 0 && (y.flags & 128) === 0; } - function Kf(y) { + function ed(y) { if (ca) { var x = Ma; if (x) { var L = x; - if (!Um(y, x)) { - if (gh(y)) + if (!Fm(y, x)) { + if (yh(y)) throw Error(l(418)); - x = ct(L); - var H = Za; - x && Um(y, x) ? Om(H, L) : (y.flags = y.flags & -4097 | 2, ca = !1, Za = y); + x = ot(L); + var k = Za; + x && Fm(y, x) ? Nm(k, L) : (y.flags = y.flags & -4097 | 2, ca = !1, Za = y); } } else { - if (gh(y)) + if (yh(y)) throw Error(l(418)); y.flags = y.flags & -4097 | 2, ca = !1, Za = y; } } } - function kd(y) { + function Id(y) { for (y = y.return; y !== null && y.tag !== 5 && y.tag !== 3 && y.tag !== 13; ) y = y.return; Za = y; } - function Np(y) { - if (!et || y !== Za) + function Ip(y) { + if (!qe || y !== Za) return !1; if (!ca) - return kd(y), ca = !0, !1; - if (y.tag !== 3 && (y.tag !== 5 || Yi(y.type) && !st(y.type, y.memoizedProps))) { + return Id(y), ca = !0, !1; + if (y.tag !== 3 && (y.tag !== 5 || Yi(y.type) && !rt(y.type, y.memoizedProps))) { var x = Ma; if (x) { - if (gh(y)) { + if (yh(y)) { for (y = Ma; y; ) - y = ct(y); + y = ot(y); throw Error(l(418)); } for (; x; ) - Om(y, x), x = ct(x); + Nm(y, x), x = ot(x); } } - if (kd(y), y.tag === 13) { - if (!et) + if (Id(y), y.tag === 13) { + if (!qe) throw Error(l(316)); if (y = y.memoizedState, y = y !== null ? y.dehydrated : null, !y) throw Error(l(317)); - Ma = mn(y); + Ma = gn(y); } else - Ma = Za ? ct(y.stateNode) : null; + Ma = Za ? ot(y.stateNode) : null; return !0; } - function yh() { - et && (Ma = Za = null, Fd = ca = !1); + function xh() { + qe && (Ma = Za = null, kd = ca = !1); } - function Id(y) { - tl === null ? tl = [y] : tl.push(y); + function Bd(y) { + nl === null ? nl = [y] : nl.push(y); } - function $f(y, x, L) { + function td(y, x, L) { if (y = L.ref, y !== null && typeof y != "function" && typeof y != "object") { if (L._owner) { if (L = L._owner, L) { if (L.tag !== 1) throw Error(l(309)); - var H = L.stateNode; + var k = L.stateNode; } - if (!H) + if (!k) throw Error(l(147, y)); - var q = H, ee = "" + y; - return x !== null && x.ref !== null && typeof x.ref == "function" && x.ref._stringRef === ee ? x.ref : (x = function(Ae) { - var Ke = q.refs; - Ke === fg && (Ke = q.refs = {}), Ae === null ? delete Ke[ee] : Ke[ee] = Ae; - }, x._stringRef = ee, x); + var X = k, $ = "" + y; + return x !== null && x.ref !== null && typeof x.ref == "function" && x.ref._stringRef === $ ? x.ref : (x = function(Ae) { + var $e = X.refs; + $e === pg && ($e = X.refs = {}), Ae === null ? delete $e[$] : $e[$] = Ae; + }, x._stringRef = $, x); } if (typeof y != "string") throw Error(l(284)); @@ -21131,244 +21131,244 @@ function h9() { var x = y._init; return x(y._payload); } - function vf(y) { - function x(dt, Qe) { + function yf(y) { + function x(pt, Ze) { if (y) { - var At = dt.deletions; - At === null ? (dt.deletions = [Qe], dt.flags |= 16) : At.push(Qe); + var Lt = pt.deletions; + Lt === null ? (pt.deletions = [Ze], pt.flags |= 16) : Lt.push(Ze); } } - function L(dt, Qe) { + function L(pt, Ze) { if (!y) return null; - for (; Qe !== null; ) - x(dt, Qe), Qe = Qe.sibling; + for (; Ze !== null; ) + x(pt, Ze), Ze = Ze.sibling; return null; } - function H(dt, Qe) { - for (dt = /* @__PURE__ */ new Map(); Qe !== null; ) - Qe.key !== null ? dt.set(Qe.key, Qe) : dt.set(Qe.index, Qe), Qe = Qe.sibling; - return dt; + function k(pt, Ze) { + for (pt = /* @__PURE__ */ new Map(); Ze !== null; ) + Ze.key !== null ? pt.set(Ze.key, Ze) : pt.set(Ze.index, Ze), Ze = Ze.sibling; + return pt; } - function q(dt, Qe) { - return dt = Xo(dt, Qe), dt.index = 0, dt.sibling = null, dt; + function X(pt, Ze) { + return pt = Xo(pt, Ze), pt.index = 0, pt.sibling = null, pt; } - function ee(dt, Qe, At) { - return dt.index = At, y ? (At = dt.alternate, At !== null ? (At = At.index, At < Qe ? (dt.flags |= 2, Qe) : At) : (dt.flags |= 2, Qe)) : (dt.flags |= 1048576, Qe); + function $(pt, Ze, Lt) { + return pt.index = Lt, y ? (Lt = pt.alternate, Lt !== null ? (Lt = Lt.index, Lt < Ze ? (pt.flags |= 2, Ze) : Lt) : (pt.flags |= 2, Ze)) : (pt.flags |= 1048576, Ze); } - function Ae(dt) { - return y && dt.alternate === null && (dt.flags |= 2), dt; + function Ae(pt) { + return y && pt.alternate === null && (pt.flags |= 2), pt; } - function Ke(dt, Qe, At, qt) { - return Qe === null || Qe.tag !== 6 ? (Qe = Ms(At, dt.mode, qt), Qe.return = dt, Qe) : (Qe = q(Qe, At), Qe.return = dt, Qe); + function $e(pt, Ze, Lt, Qt) { + return Ze === null || Ze.tag !== 6 ? (Ze = Ts(Lt, pt.mode, Qt), Ze.return = pt, Ze) : (Ze = X(Ze, Lt), Ze.return = pt, Ze); } - function kt(dt, Qe, At, qt) { - var Wn = At.type; - return Wn === S ? bn(dt, Qe, At.props.children, qt, At.key) : Qe !== null && (Qe.elementType === Wn || typeof Wn == "object" && Wn !== null && Wn.$$typeof === V && tc(Wn) === Qe.type) ? (qt = q(Qe, At.props), qt.ref = $f(dt, Qe, At), qt.return = dt, qt) : (qt = fd(At.type, At.key, At.props, null, dt.mode, qt), qt.ref = $f(dt, Qe, At), qt.return = dt, qt); + function kt(pt, Ze, Lt, Qt) { + var jn = Lt.type; + return jn === _ ? wn(pt, Ze, Lt.props.children, Qt, Lt.key) : Ze !== null && (Ze.elementType === jn || typeof jn == "object" && jn !== null && jn.$$typeof === G && tc(jn) === Ze.type) ? (Qt = X(Ze, Lt.props), Qt.ref = td(pt, Ze, Lt), Qt.return = pt, Qt) : (Qt = hd(Lt.type, Lt.key, Lt.props, null, pt.mode, Qt), Qt.ref = td(pt, Ze, Lt), Qt.return = pt, Qt); } - function cn(dt, Qe, At, qt) { - return Qe === null || Qe.tag !== 4 || Qe.stateNode.containerInfo !== At.containerInfo || Qe.stateNode.implementation !== At.implementation ? (Qe = ks(At, dt.mode, qt), Qe.return = dt, Qe) : (Qe = q(Qe, At.children || []), Qe.return = dt, Qe); + function hn(pt, Ze, Lt, Qt) { + return Ze === null || Ze.tag !== 4 || Ze.stateNode.containerInfo !== Lt.containerInfo || Ze.stateNode.implementation !== Lt.implementation ? (Ze = Is(Lt, pt.mode, Qt), Ze.return = pt, Ze) : (Ze = X(Ze, Lt.children || []), Ze.return = pt, Ze); } - function bn(dt, Qe, At, qt, Wn) { - return Qe === null || Qe.tag !== 7 ? (Qe = mu(At, dt.mode, qt, Wn), Qe.return = dt, Qe) : (Qe = q(Qe, At), Qe.return = dt, Qe); + function wn(pt, Ze, Lt, Qt, jn) { + return Ze === null || Ze.tag !== 7 ? (Ze = gu(Lt, pt.mode, Qt, jn), Ze.return = pt, Ze) : (Ze = X(Ze, Lt), Ze.return = pt, Ze); } - function wr(dt, Qe, At) { - if (typeof Qe == "string" && Qe !== "" || typeof Qe == "number") - return Qe = Ms("" + Qe, dt.mode, At), Qe.return = dt, Qe; - if (typeof Qe == "object" && Qe !== null) { - switch (Qe.$$typeof) { - case h: - return At = fd(Qe.type, Qe.key, Qe.props, null, dt.mode, At), At.ref = $f(dt, null, Qe), At.return = dt, At; - case m: - return Qe = ks(Qe, dt.mode, At), Qe.return = dt, Qe; - case V: - var qt = Qe._init; - return wr(dt, qt(Qe._payload), At); + function br(pt, Ze, Lt) { + if (typeof Ze == "string" && Ze !== "" || typeof Ze == "number") + return Ze = Ts("" + Ze, pt.mode, Lt), Ze.return = pt, Ze; + if (typeof Ze == "object" && Ze !== null) { + switch (Ze.$$typeof) { + case p: + return Lt = hd(Ze.type, Ze.key, Ze.props, null, pt.mode, Lt), Lt.ref = td(pt, null, Ze), Lt.return = pt, Lt; + case g: + return Ze = Is(Ze, pt.mode, Lt), Ze.return = pt, Ze; + case G: + var Qt = Ze._init; + return br(pt, Qt(Ze._payload), Lt); } - if (Fe(Qe) || J(Qe)) - return Qe = mu(Qe, dt.mode, At, null), Qe.return = dt, Qe; - Ss(dt, Qe); + if (De(Ze) || K(Ze)) + return Ze = gu(Ze, pt.mode, Lt, null), Ze.return = pt, Ze; + Ss(pt, Ze); } return null; } - function ur(dt, Qe, At, qt) { - var Wn = Qe !== null ? Qe.key : null; - if (typeof At == "string" && At !== "" || typeof At == "number") - return Wn !== null ? null : Ke(dt, Qe, "" + At, qt); - if (typeof At == "object" && At !== null) { - switch (At.$$typeof) { - case h: - return At.key === Wn ? kt(dt, Qe, At, qt) : null; - case m: - return At.key === Wn ? cn(dt, Qe, At, qt) : null; - case V: - return Wn = At._init, ur( - dt, - Qe, - Wn(At._payload), - qt + function ur(pt, Ze, Lt, Qt) { + var jn = Ze !== null ? Ze.key : null; + if (typeof Lt == "string" && Lt !== "" || typeof Lt == "number") + return jn !== null ? null : $e(pt, Ze, "" + Lt, Qt); + if (typeof Lt == "object" && Lt !== null) { + switch (Lt.$$typeof) { + case p: + return Lt.key === jn ? kt(pt, Ze, Lt, Qt) : null; + case g: + return Lt.key === jn ? hn(pt, Ze, Lt, Qt) : null; + case G: + return jn = Lt._init, ur( + pt, + Ze, + jn(Lt._payload), + Qt ); } - if (Fe(At) || J(At)) - return Wn !== null ? null : bn(dt, Qe, At, qt, null); - Ss(dt, At); + if (De(Lt) || K(Lt)) + return jn !== null ? null : wn(pt, Ze, Lt, Qt, null); + Ss(pt, Lt); } return null; } - function _a(dt, Qe, At, qt, Wn) { - if (typeof qt == "string" && qt !== "" || typeof qt == "number") - return dt = dt.get(At) || null, Ke(Qe, dt, "" + qt, Wn); - if (typeof qt == "object" && qt !== null) { - switch (qt.$$typeof) { - case h: - return dt = dt.get(qt.key === null ? At : qt.key) || null, kt(Qe, dt, qt, Wn); - case m: - return dt = dt.get(qt.key === null ? At : qt.key) || null, cn(Qe, dt, qt, Wn); - case V: - var Xr = qt._init; - return _a(dt, Qe, At, Xr(qt._payload), Wn); - } - if (Fe(qt) || J(qt)) - return dt = dt.get(At) || null, bn(Qe, dt, qt, Wn, null); - Ss(Qe, qt); + function Sa(pt, Ze, Lt, Qt, jn) { + if (typeof Qt == "string" && Qt !== "" || typeof Qt == "number") + return pt = pt.get(Lt) || null, $e(Ze, pt, "" + Qt, jn); + if (typeof Qt == "object" && Qt !== null) { + switch (Qt.$$typeof) { + case p: + return pt = pt.get(Qt.key === null ? Lt : Qt.key) || null, kt(Ze, pt, Qt, jn); + case g: + return pt = pt.get(Qt.key === null ? Lt : Qt.key) || null, hn(Ze, pt, Qt, jn); + case G: + var Wr = Qt._init; + return Sa(pt, Ze, Lt, Wr(Qt._payload), jn); + } + if (De(Qt) || K(Qt)) + return pt = pt.get(Lt) || null, wn(Ze, pt, Qt, jn, null); + Ss(Ze, Qt); } return null; } - function Tn(dt, Qe, At, qt) { - for (var Wn = null, Xr = null, Er = Qe, Ar = Qe = 0, Va = null; Er !== null && Ar < At.length; Ar++) { + function Tn(pt, Ze, Lt, Qt) { + for (var jn = null, Wr = null, Er = Ze, Ar = Ze = 0, Va = null; Er !== null && Ar < Lt.length; Ar++) { Er.index > Ar ? (Va = Er, Er = null) : Va = Er.sibling; - var $r = ur(dt, Er, At[Ar], qt); - if ($r === null) { + var Zr = ur(pt, Er, Lt[Ar], Qt); + if (Zr === null) { Er === null && (Er = Va); break; } - y && Er && $r.alternate === null && x(dt, Er), Qe = ee($r, Qe, Ar), Xr === null ? Wn = $r : Xr.sibling = $r, Xr = $r, Er = Va; + y && Er && Zr.alternate === null && x(pt, Er), Ze = $(Zr, Ze, Ar), Wr === null ? jn = Zr : Wr.sibling = Zr, Wr = Zr, Er = Va; } - if (Ar === At.length) - return L(dt, Er), ca && mf(dt, Ar), Wn; + if (Ar === Lt.length) + return L(pt, Er), ca && gf(pt, Ar), jn; if (Er === null) { - for (; Ar < At.length; Ar++) - Er = wr(dt, At[Ar], qt), Er !== null && (Qe = ee(Er, Qe, Ar), Xr === null ? Wn = Er : Xr.sibling = Er, Xr = Er); - return ca && mf(dt, Ar), Wn; + for (; Ar < Lt.length; Ar++) + Er = br(pt, Lt[Ar], Qt), Er !== null && (Ze = $(Er, Ze, Ar), Wr === null ? jn = Er : Wr.sibling = Er, Wr = Er); + return ca && gf(pt, Ar), jn; } - for (Er = H(dt, Er); Ar < At.length; Ar++) - Va = _a(Er, dt, Ar, At[Ar], qt), Va !== null && (y && Va.alternate !== null && Er.delete(Va.key === null ? Ar : Va.key), Qe = ee(Va, Qe, Ar), Xr === null ? Wn = Va : Xr.sibling = Va, Xr = Va); + for (Er = k(pt, Er); Ar < Lt.length; Ar++) + Va = Sa(Er, pt, Ar, Lt[Ar], Qt), Va !== null && (y && Va.alternate !== null && Er.delete(Va.key === null ? Ar : Va.key), Ze = $(Va, Ze, Ar), Wr === null ? jn = Va : Wr.sibling = Va, Wr = Va); return y && Er.forEach(function(hc) { - return x(dt, hc); - }), ca && mf(dt, Ar), Wn; + return x(pt, hc); + }), ca && gf(pt, Ar), jn; } - function Li(dt, Qe, At, qt) { - var Wn = J(At); - if (typeof Wn != "function") + function Li(pt, Ze, Lt, Qt) { + var jn = K(Lt); + if (typeof jn != "function") throw Error(l(150)); - if (At = Wn.call(At), At == null) + if (Lt = jn.call(Lt), Lt == null) throw Error(l(151)); - for (var Xr = Wn = null, Er = Qe, Ar = Qe = 0, Va = null, $r = At.next(); Er !== null && !$r.done; Ar++, $r = At.next()) { + for (var Wr = jn = null, Er = Ze, Ar = Ze = 0, Va = null, Zr = Lt.next(); Er !== null && !Zr.done; Ar++, Zr = Lt.next()) { Er.index > Ar ? (Va = Er, Er = null) : Va = Er.sibling; - var hc = ur(dt, Er, $r.value, qt); + var hc = ur(pt, Er, Zr.value, Qt); if (hc === null) { Er === null && (Er = Va); break; } - y && Er && hc.alternate === null && x(dt, Er), Qe = ee(hc, Qe, Ar), Xr === null ? Wn = hc : Xr.sibling = hc, Xr = hc, Er = Va; + y && Er && hc.alternate === null && x(pt, Er), Ze = $(hc, Ze, Ar), Wr === null ? jn = hc : Wr.sibling = hc, Wr = hc, Er = Va; } - if ($r.done) + if (Zr.done) return L( - dt, + pt, Er - ), ca && mf(dt, Ar), Wn; + ), ca && gf(pt, Ar), jn; if (Er === null) { - for (; !$r.done; Ar++, $r = At.next()) - $r = wr(dt, $r.value, qt), $r !== null && (Qe = ee($r, Qe, Ar), Xr === null ? Wn = $r : Xr.sibling = $r, Xr = $r); - return ca && mf(dt, Ar), Wn; - } - for (Er = H(dt, Er); !$r.done; Ar++, $r = At.next()) - $r = _a(Er, dt, Ar, $r.value, qt), $r !== null && (y && $r.alternate !== null && Er.delete($r.key === null ? Ar : $r.key), Qe = ee($r, Qe, Ar), Xr === null ? Wn = $r : Xr.sibling = $r, Xr = $r); - return y && Er.forEach(function(hd) { - return x(dt, hd); - }), ca && mf(dt, Ar), Wn; - } - function ms(dt, Qe, At, qt) { - if (typeof At == "object" && At !== null && At.type === S && At.key === null && (At = At.props.children), typeof At == "object" && At !== null) { - switch (At.$$typeof) { - case h: + for (; !Zr.done; Ar++, Zr = Lt.next()) + Zr = br(pt, Zr.value, Qt), Zr !== null && (Ze = $(Zr, Ze, Ar), Wr === null ? jn = Zr : Wr.sibling = Zr, Wr = Zr); + return ca && gf(pt, Ar), jn; + } + for (Er = k(pt, Er); !Zr.done; Ar++, Zr = Lt.next()) + Zr = Sa(Er, pt, Ar, Zr.value, Qt), Zr !== null && (y && Zr.alternate !== null && Er.delete(Zr.key === null ? Ar : Zr.key), Ze = $(Zr, Ze, Ar), Wr === null ? jn = Zr : Wr.sibling = Zr, Wr = Zr); + return y && Er.forEach(function(md) { + return x(pt, md); + }), ca && gf(pt, Ar), jn; + } + function vs(pt, Ze, Lt, Qt) { + if (typeof Lt == "object" && Lt !== null && Lt.type === _ && Lt.key === null && (Lt = Lt.props.children), typeof Lt == "object" && Lt !== null) { + switch (Lt.$$typeof) { + case p: e: { - for (var Wn = At.key, Xr = Qe; Xr !== null; ) { - if (Xr.key === Wn) { - if (Wn = At.type, Wn === S) { - if (Xr.tag === 7) { - L(dt, Xr.sibling), Qe = q(Xr, At.props.children), Qe.return = dt, dt = Qe; + for (var jn = Lt.key, Wr = Ze; Wr !== null; ) { + if (Wr.key === jn) { + if (jn = Lt.type, jn === _) { + if (Wr.tag === 7) { + L(pt, Wr.sibling), Ze = X(Wr, Lt.props.children), Ze.return = pt, pt = Ze; break e; } - } else if (Xr.elementType === Wn || typeof Wn == "object" && Wn !== null && Wn.$$typeof === V && tc(Wn) === Xr.type) { - L(dt, Xr.sibling), Qe = q(Xr, At.props), Qe.ref = $f(dt, Xr, At), Qe.return = dt, dt = Qe; + } else if (Wr.elementType === jn || typeof jn == "object" && jn !== null && jn.$$typeof === G && tc(jn) === Wr.type) { + L(pt, Wr.sibling), Ze = X(Wr, Lt.props), Ze.ref = td(pt, Wr, Lt), Ze.return = pt, pt = Ze; break e; } - L(dt, Xr); + L(pt, Wr); break; } else - x(dt, Xr); - Xr = Xr.sibling; + x(pt, Wr); + Wr = Wr.sibling; } - At.type === S ? (Qe = mu(At.props.children, dt.mode, qt, At.key), Qe.return = dt, dt = Qe) : (qt = fd(At.type, At.key, At.props, null, dt.mode, qt), qt.ref = $f(dt, Qe, At), qt.return = dt, dt = qt); + Lt.type === _ ? (Ze = gu(Lt.props.children, pt.mode, Qt, Lt.key), Ze.return = pt, pt = Ze) : (Qt = hd(Lt.type, Lt.key, Lt.props, null, pt.mode, Qt), Qt.ref = td(pt, Ze, Lt), Qt.return = pt, pt = Qt); } - return Ae(dt); - case m: + return Ae(pt); + case g: e: { - for (Xr = At.key; Qe !== null; ) { - if (Qe.key === Xr) - if (Qe.tag === 4 && Qe.stateNode.containerInfo === At.containerInfo && Qe.stateNode.implementation === At.implementation) { - L(dt, Qe.sibling), Qe = q(Qe, At.children || []), Qe.return = dt, dt = Qe; + for (Wr = Lt.key; Ze !== null; ) { + if (Ze.key === Wr) + if (Ze.tag === 4 && Ze.stateNode.containerInfo === Lt.containerInfo && Ze.stateNode.implementation === Lt.implementation) { + L(pt, Ze.sibling), Ze = X(Ze, Lt.children || []), Ze.return = pt, pt = Ze; break e; } else { - L(dt, Qe); + L(pt, Ze); break; } else - x(dt, Qe); - Qe = Qe.sibling; + x(pt, Ze); + Ze = Ze.sibling; } - Qe = ks(At, dt.mode, qt), Qe.return = dt, dt = Qe; + Ze = Is(Lt, pt.mode, Qt), Ze.return = pt, pt = Ze; } - return Ae(dt); - case V: - return Xr = At._init, ms(dt, Qe, Xr(At._payload), qt); + return Ae(pt); + case G: + return Wr = Lt._init, vs(pt, Ze, Wr(Lt._payload), Qt); } - if (Fe(At)) - return Tn(dt, Qe, At, qt); - if (J(At)) - return Li(dt, Qe, At, qt); - Ss(dt, At); + if (De(Lt)) + return Tn(pt, Ze, Lt, Qt); + if (K(Lt)) + return Li(pt, Ze, Lt, Qt); + Ss(pt, Lt); } - return typeof At == "string" && At !== "" || typeof At == "number" ? (At = "" + At, Qe !== null && Qe.tag === 6 ? (L(dt, Qe.sibling), Qe = q(Qe, At), Qe.return = dt, dt = Qe) : (L(dt, Qe), Qe = Ms(At, dt.mode, qt), Qe.return = dt, dt = Qe), Ae(dt)) : L(dt, Qe); + return typeof Lt == "string" && Lt !== "" || typeof Lt == "number" ? (Lt = "" + Lt, Ze !== null && Ze.tag === 6 ? (L(pt, Ze.sibling), Ze = X(Ze, Lt), Ze.return = pt, pt = Ze) : (L(pt, Ze), Ze = Ts(Lt, pt.mode, Qt), Ze.return = pt, pt = Ze), Ae(pt)) : L(pt, Ze); } - return ms; + return vs; } - var wc = vf(!0), Fp = vf(!1), nc = {}, Na = us(nc), Bd = us(nc), ed = us(nc); + var Ec = yf(!0), Bp = yf(!1), nc = {}, Na = cs(nc), Hd = cs(nc), nd = cs(nc); function rc(y) { if (y === nc) throw Error(l(174)); return y; } - function kp(y, x) { - pi(ed, x), pi(Bd, y), pi(Na, nc), y = Be(x), mr(Na), pi(Na, y); + function Hp(y, x) { + di(nd, x), di(Hd, y), di(Na, nc), y = He(x), mr(Na), di(Na, y); } - function xh() { - mr(Na), mr(Bd), mr(ed); + function _h() { + mr(Na), mr(Hd), mr(nd); } - function Ip(y) { - var x = rc(ed.current), L = rc(Na.current); - x = pe(L, y.type, x), L !== x && (pi(Bd, y), pi(Na, x)); + function Vp(y) { + var x = rc(nd.current), L = rc(Na.current); + x = ve(L, y.type, x), L !== x && (di(Hd, y), di(Na, x)); } function Io(y) { - Bd.current === y && (mr(Na), mr(Bd)); + Hd.current === y && (mr(Na), mr(Hd)); } - var Ye = us(0); + var Xe = cs(0); function Bt(y) { for (var x = y; x !== null; ) { if (x.tag === 13) { var L = x.memoizedState; - if (L !== null && (L = L.dehydrated, L === null || ji(L) || Si(L))) + if (L !== null && (L = L.dehydrated, L === null || $r(L) || ai(L))) return x; } else if (x.tag === 19 && x.memoizedProps.revealOrder !== void 0) { if ((x.flags & 128) !== 0) @@ -21388,19 +21388,19 @@ function h9() { } return null; } - var pt = []; + var vt = []; function Mn() { - for (var y = 0; y < pt.length; y++) { - var x = pt[y]; - Rt ? x._workInProgressVersionPrimary = null : x._workInProgressVersionSecondary = null; + for (var y = 0; y < vt.length; y++) { + var x = vt[y]; + gt ? x._workInProgressVersionPrimary = null : x._workInProgressVersionSecondary = null; } - pt.length = 0; + vt.length = 0; } - var Kn = d.ReactCurrentDispatcher, or = d.ReactCurrentBatchConfig, Ta = 0, $n = null, Ui = null, ra = null, Bo = !1, fs = !1, Hd = 0, Ul = 0; + var $n = d.ReactCurrentDispatcher, or = d.ReactCurrentBatchConfig, Ta = 0, er = null, Ui = null, ia = null, Bo = !1, ds = !1, Vd = 0, Nl = 0; function $a() { throw Error(l(321)); } - function pl(y, x) { + function ml(y, x) { if (x === null) return !1; for (var L = 0; L < x.length && L < y.length; L++) @@ -21408,125 +21408,125 @@ function h9() { return !1; return !0; } - function xi(y, x, L, H, q, ee) { - if (Ta = ee, $n = x, x.memoizedState = null, x.updateQueue = null, x.lanes = 0, Kn.current = y === null || y.memoizedState === null ? Lu : rd, y = L(H, q), fs) { - ee = 0; + function _i(y, x, L, k, X, $) { + if (Ta = $, er = x, x.memoizedState = null, x.updateQueue = null, x.lanes = 0, $n.current = y === null || y.memoizedState === null ? Ou : ad, y = L(k, X), ds) { + $ = 0; do { - if (fs = !1, Hd = 0, 25 <= ee) + if (ds = !1, Vd = 0, 25 <= $) throw Error(l(301)); - ee += 1, ra = Ui = null, x.updateQueue = null, Kn.current = uu, y = L(H, q); - } while (fs); + $ += 1, ia = Ui = null, x.updateQueue = null, $n.current = fu, y = L(k, X); + } while (ds); } - if (Kn.current = xf, x = Ui !== null && Ui.next !== null, Ta = 0, ra = Ui = $n = null, Bo = !1, x) + if ($n.current = Sf, x = Ui !== null && Ui.next !== null, Ta = 0, ia = Ui = er = null, Bo = !1, x) throw Error(l(300)); return y; } - function Ec() { - var y = Hd !== 0; - return Hd = 0, y; + function Mc() { + var y = Vd !== 0; + return Vd = 0, y; } - function Au() { + function Lu() { var y = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; - return ra === null ? $n.memoizedState = ra = y : ra = ra.next = y, ra; + return ia === null ? er.memoizedState = ia = y : ia = ia.next = y, ia; } - function ml() { + function vl() { if (Ui === null) { - var y = $n.alternate; + var y = er.alternate; y = y !== null ? y.memoizedState : null; } else y = Ui.next; - var x = ra === null ? $n.memoizedState : ra.next; + var x = ia === null ? er.memoizedState : ia.next; if (x !== null) - ra = x, Ui = y; + ia = x, Ui = y; else { if (y === null) throw Error(l(310)); - Ui = y, y = { memoizedState: Ui.memoizedState, baseState: Ui.baseState, baseQueue: Ui.baseQueue, queue: Ui.queue, next: null }, ra === null ? $n.memoizedState = ra = y : ra = ra.next = y; + Ui = y, y = { memoizedState: Ui.memoizedState, baseState: Ui.baseState, baseQueue: Ui.baseQueue, queue: Ui.queue, next: null }, ia === null ? er.memoizedState = ia = y : ia = ia.next = y; } - return ra; + return ia; } function Ca(y, x) { return typeof x == "function" ? x(y) : x; } function Sh(y) { - var x = ml(), L = x.queue; + var x = vl(), L = x.queue; if (L === null) throw Error(l(311)); L.lastRenderedReducer = y; - var H = Ui, q = H.baseQueue, ee = L.pending; - if (ee !== null) { - if (q !== null) { - var Ae = q.next; - q.next = ee.next, ee.next = Ae; + var k = Ui, X = k.baseQueue, $ = L.pending; + if ($ !== null) { + if (X !== null) { + var Ae = X.next; + X.next = $.next, $.next = Ae; } - H.baseQueue = q = ee, L.pending = null; + k.baseQueue = X = $, L.pending = null; } - if (q !== null) { - ee = q.next, H = H.baseState; - var Ke = Ae = null, kt = null, cn = ee; + if (X !== null) { + $ = X.next, k = k.baseState; + var $e = Ae = null, kt = null, hn = $; do { - var bn = cn.lane; - if ((Ta & bn) === bn) - kt !== null && (kt = kt.next = { lane: 0, action: cn.action, hasEagerState: cn.hasEagerState, eagerState: cn.eagerState, next: null }), H = cn.hasEagerState ? cn.eagerState : y(H, cn.action); + var wn = hn.lane; + if ((Ta & wn) === wn) + kt !== null && (kt = kt.next = { lane: 0, action: hn.action, hasEagerState: hn.hasEagerState, eagerState: hn.eagerState, next: null }), k = hn.hasEagerState ? hn.eagerState : y(k, hn.action); else { - var wr = { - lane: bn, - action: cn.action, - hasEagerState: cn.hasEagerState, - eagerState: cn.eagerState, + var br = { + lane: wn, + action: hn.action, + hasEagerState: hn.hasEagerState, + eagerState: hn.eagerState, next: null }; - kt === null ? (Ke = kt = wr, Ae = H) : kt = kt.next = wr, $n.lanes |= bn, zc |= bn; + kt === null ? ($e = kt = br, Ae = k) : kt = kt.next = br, er.lanes |= wn, Nc |= wn; } - cn = cn.next; - } while (cn !== null && cn !== ee); - kt === null ? Ae = H : kt.next = Ke, Fo(H, x.memoizedState) || (oi = !0), x.memoizedState = H, x.baseState = Ae, x.baseQueue = kt, L.lastRenderedState = H; + hn = hn.next; + } while (hn !== null && hn !== $); + kt === null ? Ae = k : kt.next = $e, Fo(k, x.memoizedState) || (si = !0), x.memoizedState = k, x.baseState = Ae, x.baseQueue = kt, L.lastRenderedState = k; } if (y = L.interleaved, y !== null) { - q = y; + X = y; do - ee = q.lane, $n.lanes |= ee, zc |= ee, q = q.next; - while (q !== y); + $ = X.lane, er.lanes |= $, Nc |= $, X = X.next; + while (X !== y); } else - q === null && (L.lanes = 0); + X === null && (L.lanes = 0); return [x.memoizedState, L.dispatch]; } - function Bp(y) { - var x = ml(), L = x.queue; + function Gp(y) { + var x = vl(), L = x.queue; if (L === null) throw Error(l(311)); L.lastRenderedReducer = y; - var H = L.dispatch, q = L.pending, ee = x.memoizedState; - if (q !== null) { + var k = L.dispatch, X = L.pending, $ = x.memoizedState; + if (X !== null) { L.pending = null; - var Ae = q = q.next; + var Ae = X = X.next; do - ee = y(ee, Ae.action), Ae = Ae.next; - while (Ae !== q); - Fo(ee, x.memoizedState) || (oi = !0), x.memoizedState = ee, x.baseQueue === null && (x.baseState = ee), L.lastRenderedState = ee; + $ = y($, Ae.action), Ae = Ae.next; + while (Ae !== X); + Fo($, x.memoizedState) || (si = !0), x.memoizedState = $, x.baseQueue === null && (x.baseState = $), L.lastRenderedState = $; } - return [ee, H]; + return [$, k]; } - function Mc() { + function Tc() { } - function Tc(y, x) { - var L = $n, H = ml(), q = x(), ee = !Fo(H.memoizedState, q); - if (ee && (H.memoizedState = q, oi = !0), H = H.queue, an(Br.bind(null, L, H, y), [y]), H.getSnapshot !== x || ee || ra !== null && ra.memoizedState.tag & 1) { - if (L.flags |= 2048, td(9, $i.bind(null, L, H, q, x), void 0, null), Ra === null) + function Cc(y, x) { + var L = er, k = vl(), X = x(), $ = !Fo(k.memoizedState, X); + if ($ && (k.memoizedState = X, si = !0), k = k.queue, sn(Br.bind(null, L, k, y), [y]), k.getSnapshot !== x || $ || ia !== null && ia.memoizedState.tag & 1) { + if (L.flags |= 2048, rd(9, $i.bind(null, L, k, X, x), void 0, null), Ra === null) throw Error(l(349)); - (Ta & 30) !== 0 || Mr(L, x, q); + (Ta & 30) !== 0 || Mr(L, x, X); } - return q; + return X; } function Mr(y, x, L) { - y.flags |= 16384, y = { getSnapshot: x, value: L }, x = $n.updateQueue, x === null ? (x = { lastEffect: null, stores: null }, $n.updateQueue = x, x.stores = [y]) : (L = x.stores, L === null ? x.stores = [y] : L.push(y)); + y.flags |= 16384, y = { getSnapshot: x, value: L }, x = er.updateQueue, x === null ? (x = { lastEffect: null, stores: null }, er.updateQueue = x, x.stores = [y]) : (L = x.stores, L === null ? x.stores = [y] : L.push(y)); } - function $i(y, x, L, H) { - x.value = L, x.getSnapshot = H, Fa(x) && jl(y, 1, -1); + function $i(y, x, L, k) { + x.value = L, x.getSnapshot = k, Fa(x) && Xl(y, 1, -1); } function Br(y, x, L) { return L(function() { - Fa(x) && jl(y, 1, -1); + Fa(x) && Xl(y, 1, -1); }); } function Fa(y) { @@ -21539,44 +21539,44 @@ function h9() { return !0; } } - function So(y) { - var x = Au(); - return typeof y == "function" && (y = y()), x.memoizedState = x.baseState = y, y = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Ca, lastRenderedState: y }, x.queue = y, y = y.dispatch = Zs.bind(null, $n, y), [x.memoizedState, y]; + function _o(y) { + var x = Lu(); + return typeof y == "function" && (y = y()), x.memoizedState = x.baseState = y, y = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Ca, lastRenderedState: y }, x.queue = y, y = y.dispatch = Js.bind(null, er, y), [x.memoizedState, y]; } - function td(y, x, L, H) { - return y = { tag: y, create: x, destroy: L, deps: H, next: null }, x = $n.updateQueue, x === null ? (x = { lastEffect: null, stores: null }, $n.updateQueue = x, x.lastEffect = y.next = y) : (L = x.lastEffect, L === null ? x.lastEffect = y.next = y : (H = L.next, L.next = y, y.next = H, x.lastEffect = y)), y; + function rd(y, x, L, k) { + return y = { tag: y, create: x, destroy: L, deps: k, next: null }, x = er.updateQueue, x === null ? (x = { lastEffect: null, stores: null }, er.updateQueue = x, x.lastEffect = y.next = y) : (L = x.lastEffect, L === null ? x.lastEffect = y.next = y : (k = L.next, L.next = y, y.next = k, x.lastEffect = y)), y; } - function _h() { - return ml().memoizedState; + function wh() { + return vl().memoizedState; } - function ic(y, x, L, H) { - var q = Au(); - $n.flags |= y, q.memoizedState = td(1 | x, L, void 0, H === void 0 ? null : H); + function ic(y, x, L, k) { + var X = Lu(); + er.flags |= y, X.memoizedState = rd(1 | x, L, void 0, k === void 0 ? null : k); } - function gf(y, x, L, H) { - var q = ml(); - H = H === void 0 ? null : H; - var ee = void 0; + function xf(y, x, L, k) { + var X = vl(); + k = k === void 0 ? null : k; + var $ = void 0; if (Ui !== null) { var Ae = Ui.memoizedState; - if (ee = Ae.destroy, H !== null && pl(H, Ae.deps)) { - q.memoizedState = td(x, L, ee, H); + if ($ = Ae.destroy, k !== null && ml(k, Ae.deps)) { + X.memoizedState = rd(x, L, $, k); return; } } - $n.flags |= y, q.memoizedState = td(1 | x, L, ee, H); + er.flags |= y, X.memoizedState = rd(1 | x, L, $, k); } - function nd(y, x) { + function id(y, x) { return ic(8390656, 8, y, x); } - function an(y, x) { - return gf(2048, 8, y, x); + function sn(y, x) { + return xf(2048, 8, y, x); } - function Ir(y, x) { - return gf(4, 2, y, x); + function kr(y, x) { + return xf(4, 2, y, x); } function Hr(y, x) { - return gf(4, 4, y, x); + return xf(4, 4, y, x); } function Ho(y, x) { if (typeof x == "function") @@ -21588,80 +21588,80 @@ function h9() { x.current = null; }; } - function nl(y, x, L) { - return L = L != null ? L.concat([y]) : null, gf(4, 4, Ho.bind(null, x, y), L); + function rl(y, x, L) { + return L = L != null ? L.concat([y]) : null, xf(4, 4, Ho.bind(null, x, y), L); } function ac() { } - function Du(y, x) { - var L = ml(); + function Pu(y, x) { + var L = vl(); x = x === void 0 ? null : x; - var H = L.memoizedState; - return H !== null && x !== null && pl(x, H[1]) ? H[0] : (L.memoizedState = [y, x], y); + var k = L.memoizedState; + return k !== null && x !== null && ml(x, k[1]) ? k[0] : (L.memoizedState = [y, x], y); } - function Cc(y, x) { - var L = ml(); + function Rc(y, x) { + var L = vl(); x = x === void 0 ? null : x; - var H = L.memoizedState; - return H !== null && x !== null && pl(x, H[1]) ? H[0] : (y = y(), L.memoizedState = [y, x], y); + var k = L.memoizedState; + return k !== null && x !== null && ml(x, k[1]) ? k[0] : (y = y(), L.memoizedState = [y, x], y); } - function yf(y, x) { + function _f(y, x) { var L = Cr; Cr = L !== 0 && 4 > L ? L : 4, y(!0); - var H = or.transition; + var k = or.transition; or.transition = {}; try { y(!1), x(); } finally { - Cr = L, or.transition = H; + Cr = L, or.transition = k; } } function sc() { - return ml().memoizedState; + return vl().memoizedState; } - function ds(y, x, L) { - var H = Ns(y); - L = { lane: H, action: L, hasEagerState: !1, eagerState: null, next: null }, zm(y) ? Jh(x, L) : (Vd(y, x, L), L = fi(), y = jl(y, H, L), y !== null && bh(y, x, H)); + function hs(y, x, L) { + var k = Fs(y); + L = { lane: k, action: L, hasEagerState: !1, eagerState: null, next: null }, km(y) ? ep(x, L) : (Gd(y, x, L), L = ui(), y = Xl(y, k, L), y !== null && bh(y, x, k)); } - function Zs(y, x, L) { - var H = Ns(y), q = { lane: H, action: L, hasEagerState: !1, eagerState: null, next: null }; - if (zm(y)) - Jh(x, q); + function Js(y, x, L) { + var k = Fs(y), X = { lane: k, action: L, hasEagerState: !1, eagerState: null, next: null }; + if (km(y)) + ep(x, X); else { - Vd(y, x, q); - var ee = y.alternate; - if (y.lanes === 0 && (ee === null || ee.lanes === 0) && (ee = x.lastRenderedReducer, ee !== null)) + Gd(y, x, X); + var $ = y.alternate; + if (y.lanes === 0 && ($ === null || $.lanes === 0) && ($ = x.lastRenderedReducer, $ !== null)) try { - var Ae = x.lastRenderedState, Ke = ee(Ae, L); - if (q.hasEagerState = !0, q.eagerState = Ke, Fo(Ke, Ae)) + var Ae = x.lastRenderedState, $e = $(Ae, L); + if (X.hasEagerState = !0, X.eagerState = $e, Fo($e, Ae)) return; } catch { } finally { } - L = fi(), y = jl(y, H, L), y !== null && bh(y, x, H); + L = ui(), y = Xl(y, k, L), y !== null && bh(y, x, k); } } - function zm(y) { + function km(y) { var x = y.alternate; - return y === $n || x !== null && x === $n; + return y === er || x !== null && x === er; } - function Jh(y, x) { - fs = Bo = !0; + function ep(y, x) { + ds = Bo = !0; var L = y.pending; L === null ? x.next = x : (x.next = L.next, L.next = x), y.pending = x; } - function Vd(y, x, L) { - Ra !== null && (y.mode & 1) !== 0 && (Kr & 2) === 0 ? (y = x.interleaved, y === null ? (L.next = L, xs === null ? xs = [x] : xs.push(x)) : (L.next = y.next, y.next = L), x.interleaved = L) : (y = x.pending, y === null ? L.next = L : (L.next = y.next, y.next = L), x.pending = L); + function Gd(y, x, L) { + Ra !== null && (y.mode & 1) !== 0 && (Qr & 2) === 0 ? (y = x.interleaved, y === null ? (L.next = L, _s === null ? _s = [x] : _s.push(x)) : (L.next = y.next, y.next = L), x.interleaved = L) : (y = x.pending, y === null ? L.next = L : (L.next = y.next, y.next = L), x.pending = L); } function bh(y, x, L) { if ((L & 4194240) !== 0) { - var H = x.lanes; - H &= y.pendingLanes, L |= H, x.lanes = L, ua(y, L); + var k = x.lanes; + k &= y.pendingLanes, L |= k, x.lanes = L, ua(y, L); } } - var xf = { readContext: Jr, useCallback: $a, useContext: $a, useEffect: $a, useImperativeHandle: $a, useInsertionEffect: $a, useLayoutEffect: $a, useMemo: $a, useReducer: $a, useRef: $a, useState: $a, useDebugValue: $a, useDeferredValue: $a, useTransition: $a, useMutableSource: $a, useSyncExternalStore: $a, useId: $a, unstable_isNewReconciler: !1 }, Lu = { readContext: Jr, useCallback: function(y, x) { - return Au().memoizedState = [y, x === void 0 ? null : x], y; - }, useContext: Jr, useEffect: nd, useImperativeHandle: function(y, x, L) { + var Sf = { readContext: qr, useCallback: $a, useContext: $a, useEffect: $a, useImperativeHandle: $a, useInsertionEffect: $a, useLayoutEffect: $a, useMemo: $a, useReducer: $a, useRef: $a, useState: $a, useDebugValue: $a, useDeferredValue: $a, useTransition: $a, useMutableSource: $a, useSyncExternalStore: $a, useId: $a, unstable_isNewReconciler: !1 }, Ou = { readContext: qr, useCallback: function(y, x) { + return Lu().memoizedState = [y, x === void 0 ? null : x], y; + }, useContext: qr, useEffect: id, useImperativeHandle: function(y, x, L) { return L = L != null ? L.concat([y]) : null, ic( 4194308, 4, @@ -21673,31 +21673,31 @@ function h9() { }, useInsertionEffect: function(y, x) { return ic(4, 2, y, x); }, useMemo: function(y, x) { - var L = Au(); + var L = Lu(); return x = x === void 0 ? null : x, y = y(), L.memoizedState = [y, x], y; }, useReducer: function(y, x, L) { - var H = Au(); - return x = L !== void 0 ? L(x) : x, H.memoizedState = H.baseState = x, y = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: y, lastRenderedState: x }, H.queue = y, y = y.dispatch = ds.bind(null, $n, y), [H.memoizedState, y]; + var k = Lu(); + return x = L !== void 0 ? L(x) : x, k.memoizedState = k.baseState = x, y = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: y, lastRenderedState: x }, k.queue = y, y = y.dispatch = hs.bind(null, er, y), [k.memoizedState, y]; }, useRef: function(y) { - var x = Au(); + var x = Lu(); return y = { current: y }, x.memoizedState = y; - }, useState: So, useDebugValue: ac, useDeferredValue: function(y) { - var x = So(y), L = x[0], H = x[1]; - return nd(function() { - var q = or.transition; + }, useState: _o, useDebugValue: ac, useDeferredValue: function(y) { + var x = _o(y), L = x[0], k = x[1]; + return id(function() { + var X = or.transition; or.transition = {}; try { - H(y); + k(y); } finally { - or.transition = q; + or.transition = X; } }, [y]), L; }, useTransition: function() { - var y = So(!1), x = y[0]; - return y = yf.bind(null, y[1]), Au().memoizedState = y, [x, y]; + var y = _o(!1), x = y[0]; + return y = _f.bind(null, y[1]), Lu().memoizedState = y, [x, y]; }, useMutableSource: function() { }, useSyncExternalStore: function(y, x, L) { - var H = $n, q = Au(); + var k = er, X = Lu(); if (ca) { if (L === void 0) throw Error(l(407)); @@ -21705,105 +21705,105 @@ function h9() { } else { if (L = x(), Ra === null) throw Error(l(349)); - (Ta & 30) !== 0 || Mr(H, x, L); + (Ta & 30) !== 0 || Mr(k, x, L); } - q.memoizedState = L; - var ee = { value: L, getSnapshot: x }; - return q.queue = ee, nd(Br.bind(null, H, ee, y), [y]), H.flags |= 2048, td(9, $i.bind(null, H, ee, L, x), void 0, null), L; + X.memoizedState = L; + var $ = { value: L, getSnapshot: x }; + return X.queue = $, id(Br.bind(null, k, $, y), [y]), k.flags |= 2048, rd(9, $i.bind(null, k, $, L, x), void 0, null), L; }, useId: function() { - var y = Au(), x = Ra.identifierPrefix; + var y = Lu(), x = Ra.identifierPrefix; if (ca) { - var L = lu, H = Jf; - L = (H & ~(1 << 32 - Ls(H) - 1)).toString(32) + L, x = ":" + x + "R" + L, L = Hd++, 0 < L && (x += "H" + L.toString(32)), x += ":"; + var L = cu, k = $f; + L = (k & ~(1 << 32 - Ps(k) - 1)).toString(32) + L, x = ":" + x + "R" + L, L = Vd++, 0 < L && (x += "H" + L.toString(32)), x += ":"; } else - L = Ul++, x = ":" + x + "r" + L.toString(32) + ":"; + L = Nl++, x = ":" + x + "r" + L.toString(32) + ":"; return y.memoizedState = x; - }, unstable_isNewReconciler: !1 }, rd = { - readContext: Jr, - useCallback: Du, - useContext: Jr, - useEffect: an, - useImperativeHandle: nl, - useInsertionEffect: Ir, + }, unstable_isNewReconciler: !1 }, ad = { + readContext: qr, + useCallback: Pu, + useContext: qr, + useEffect: sn, + useImperativeHandle: rl, + useInsertionEffect: kr, useLayoutEffect: Hr, - useMemo: Cc, + useMemo: Rc, useReducer: Sh, - useRef: _h, + useRef: wh, useState: function() { return Sh(Ca); }, useDebugValue: ac, useDeferredValue: function(y) { - var x = Sh(Ca), L = x[0], H = x[1]; - return an(function() { - var q = or.transition; + var x = Sh(Ca), L = x[0], k = x[1]; + return sn(function() { + var X = or.transition; or.transition = {}; try { - H(y); + k(y); } finally { - or.transition = q; + or.transition = X; } }, [y]), L; }, useTransition: function() { - var y = Sh(Ca)[0], x = ml().memoizedState; + var y = Sh(Ca)[0], x = vl().memoizedState; return [y, x]; }, - useMutableSource: Mc, - useSyncExternalStore: Tc, + useMutableSource: Tc, + useSyncExternalStore: Cc, useId: sc, unstable_isNewReconciler: !1 - }, uu = { - readContext: Jr, - useCallback: Du, - useContext: Jr, - useEffect: an, - useImperativeHandle: nl, - useInsertionEffect: Ir, + }, fu = { + readContext: qr, + useCallback: Pu, + useContext: qr, + useEffect: sn, + useImperativeHandle: rl, + useInsertionEffect: kr, useLayoutEffect: Hr, - useMemo: Cc, - useReducer: Bp, - useRef: _h, + useMemo: Rc, + useReducer: Gp, + useRef: wh, useState: function() { - return Bp(Ca); + return Gp(Ca); }, useDebugValue: ac, useDeferredValue: function(y) { - var x = Bp(Ca), L = x[0], H = x[1]; - return an(function() { - var q = or.transition; + var x = Gp(Ca), L = x[0], k = x[1]; + return sn(function() { + var X = or.transition; or.transition = {}; try { - H(y); + k(y); } finally { - or.transition = q; + or.transition = X; } }, [y]), L; }, useTransition: function() { - var y = Bp(Ca)[0], x = ml().memoizedState; + var y = Gp(Ca)[0], x = vl().memoizedState; return [y, x]; }, - useMutableSource: Mc, - useSyncExternalStore: Tc, + useMutableSource: Tc, + useSyncExternalStore: Cc, useId: sc, unstable_isNewReconciler: !1 }; - function Sf(y, x) { + function wf(y, x) { try { - var L = "", H = x; + var L = "", k = x; do - L += Mu(H), H = H.return; - while (H); - var q = L; - } catch (ee) { - q = ` -Error generating stack: ` + ee.message + ` -` + ee.stack; + L += Cu(k), k = k.return; + while (k); + var X = L; + } catch ($) { + X = ` +Error generating stack: ` + $.message + ` +` + $.stack; } - return { value: y, source: x, stack: q }; + return { value: y, source: x, stack: X }; } - function Rc(y, x) { + function Ac(y, x) { try { console.error(x.value); } catch (L) { @@ -21812,43 +21812,43 @@ Error generating stack: ` + ee.message + ` }); } } - var Gd = typeof WeakMap == "function" ? WeakMap : Map; - function id(y, x, L) { - L = $o(-1, L), L.tag = 3, L.payload = { element: null }; - var H = x.value; + var Wd = typeof WeakMap == "function" ? WeakMap : Map; + function sd(y, x, L) { + L = el(-1, L), L.tag = 3, L.payload = { element: null }; + var k = x.value; return L.callback = function() { - Mf || (Mf = !0, Vl = H), Rc(y, x); + Cf || (Cf = !0, Wl = k), Ac(y, x); }, L; } - function Ac(y, x, L) { - L = $o(-1, L), L.tag = 3; - var H = y.type.getDerivedStateFromError; - if (typeof H == "function") { - var q = x.value; + function Dc(y, x, L) { + L = el(-1, L), L.tag = 3; + var k = y.type.getDerivedStateFromError; + if (typeof k == "function") { + var X = x.value; L.payload = function() { - return H(q); + return k(X); }, L.callback = function() { - Rc(y, x); + Ac(y, x); }; } - var ee = y.stateNode; - return ee !== null && typeof ee.componentDidCatch == "function" && (L.callback = function() { - Rc(y, x), typeof H != "function" && (Gl === null ? Gl = /* @__PURE__ */ new Set([this]) : Gl.add(this)); + var $ = y.stateNode; + return $ !== null && typeof $.componentDidCatch == "function" && (L.callback = function() { + Ac(y, x), typeof k != "function" && (jl === null ? jl = /* @__PURE__ */ new Set([this]) : jl.add(this)); var Ae = x.stack; this.componentDidCatch(x.value, { componentStack: Ae !== null ? Ae : "" }); }), L; } - function zl(y, x, L) { - var H = y.pingCache; - if (H === null) { - H = y.pingCache = new Gd(); - var q = /* @__PURE__ */ new Set(); - H.set(x, q); + function Fl(y, x, L) { + var k = y.pingCache; + if (k === null) { + k = y.pingCache = new Wd(); + var X = /* @__PURE__ */ new Set(); + k.set(x, X); } else - q = H.get(x), q === void 0 && (q = /* @__PURE__ */ new Set(), H.set(x, q)); - q.has(L) || (q.add(L), y = to.bind(null, y, x, L), x.then(y, y)); + X = k.get(x), X === void 0 && (X = /* @__PURE__ */ new Set(), k.set(x, X)); + X.has(L) || (X.add(L), y = no.bind(null, y, x, L), x.then(y, y)); } - function Dc(y) { + function Lc(y) { do { var x; if ((x = y.tag === 13) && (x = y.memoizedState, x = x !== null ? x.dehydrated !== null : !0), x) @@ -21857,13 +21857,13 @@ Error generating stack: ` + ee.message + ` } while (y !== null); return null; } - function Lc(y, x, L, H, q) { - return (y.mode & 1) === 0 ? (y === x ? y.flags |= 65536 : (y.flags |= 128, L.flags |= 131072, L.flags &= -52805, L.tag === 1 && (L.alternate === null ? L.tag = 17 : (x = $o(-1, 1), x.tag = 2, Ku(L, x))), L.lanes |= 1), y) : (y.flags |= 65536, y.lanes = q, y); + function Pc(y, x, L, k, X) { + return (y.mode & 1) === 0 ? (y === x ? y.flags |= 65536 : (y.flags |= 128, L.flags |= 131072, L.flags &= -52805, L.tag === 1 && (L.alternate === null ? L.tag = 17 : (x = el(-1, 1), x.tag = 2, Ku(L, x))), L.lanes |= 1), y) : (y.flags |= 65536, y.lanes = X, y); } - function Os(y) { + function Us(y) { y.flags |= 4; } - function Pu(y, x) { + function Uu(y, x) { if (y !== null && y.child === x.child) return !0; if ((x.flags & 16) !== 0) @@ -21875,12 +21875,12 @@ Error generating stack: ` + ee.message + ` } return !0; } - var _o, ad, ge, oc; - if (Ot) - _o = function(y, x) { + var So, od, xe, oc; + if (ft) + So = function(y, x) { for (var L = x.child; L !== null; ) { if (L.tag === 5 || L.tag === 6) - we(y, L.stateNode); + Ee(y, L.stateNode); else if (L.tag !== 4 && L.child !== null) { L.child.return = L, L = L.child; continue; @@ -21894,87 +21894,87 @@ Error generating stack: ` + ee.message + ` } L.sibling.return = L.return, L = L.sibling; } - }, ad = function() { - }, ge = function(y, x, L, H, q) { - if (y = y.memoizedProps, y !== H) { - var ee = x.stateNode, Ae = rc(Na.current); - L = Je(ee, L, y, H, q, Ae), (x.updateQueue = L) && Os(x); + }, od = function() { + }, xe = function(y, x, L, k, X) { + if (y = y.memoizedProps, y !== k) { + var $ = x.stateNode, Ae = rc(Na.current); + L = Je($, L, y, k, X, Ae), (x.updateQueue = L) && Us(x); } - }, oc = function(y, x, L, H) { - L !== H && Os(x); + }, oc = function(y, x, L, k) { + L !== k && Us(x); }; - else if (He) { - _o = function(y, x, L, H) { - for (var q = x.child; q !== null; ) { - if (q.tag === 5) { - var ee = q.stateNode; - L && H && (ee = jr(ee, q.type, q.memoizedProps, q)), we(y, ee); - } else if (q.tag === 6) - ee = q.stateNode, L && H && (ee = ti(ee, q.memoizedProps, q)), we(y, ee); - else if (q.tag !== 4) { - if (q.tag === 22 && q.memoizedState !== null) - ee = q.child, ee !== null && (ee.return = q), _o(y, q, !0, !0); - else if (q.child !== null) { - q.child.return = q, q = q.child; + else if (Ie) { + So = function(y, x, L, k) { + for (var X = x.child; X !== null; ) { + if (X.tag === 5) { + var $ = X.stateNode; + L && k && ($ = Mi($, X.type, X.memoizedProps, X)), Ee(y, $); + } else if (X.tag === 6) + $ = X.stateNode, L && k && ($ = yi($, X.memoizedProps, X)), Ee(y, $); + else if (X.tag !== 4) { + if (X.tag === 22 && X.memoizedState !== null) + $ = X.child, $ !== null && ($.return = X), So(y, X, !0, !0); + else if (X.child !== null) { + X.child.return = X, X = X.child; continue; } } - if (q === x) + if (X === x) break; - for (; q.sibling === null; ) { - if (q.return === null || q.return === x) + for (; X.sibling === null; ) { + if (X.return === null || X.return === x) return; - q = q.return; + X = X.return; } - q.sibling.return = q.return, q = q.sibling; + X.sibling.return = X.return, X = X.sibling; } }; - var Js = function(y, x, L, H) { - for (var q = x.child; q !== null; ) { - if (q.tag === 5) { - var ee = q.stateNode; - L && H && (ee = jr(ee, q.type, q.memoizedProps, q)), Ur(y, ee); - } else if (q.tag === 6) - ee = q.stateNode, L && H && (ee = ti(ee, q.memoizedProps, q)), Ur(y, ee); - else if (q.tag !== 4) { - if (q.tag === 22 && q.memoizedState !== null) - ee = q.child, ee !== null && (ee.return = q), Js(y, q, !0, !0); - else if (q.child !== null) { - q.child.return = q, q = q.child; + var Ks = function(y, x, L, k) { + for (var X = x.child; X !== null; ) { + if (X.tag === 5) { + var $ = X.stateNode; + L && k && ($ = Mi($, X.type, X.memoizedProps, X)), Ii(y, $); + } else if (X.tag === 6) + $ = X.stateNode, L && k && ($ = yi($, X.memoizedProps, X)), Ii(y, $); + else if (X.tag !== 4) { + if (X.tag === 22 && X.memoizedState !== null) + $ = X.child, $ !== null && ($.return = X), Ks(y, X, !0, !0); + else if (X.child !== null) { + X.child.return = X, X = X.child; continue; } } - if (q === x) + if (X === x) break; - for (; q.sibling === null; ) { - if (q.return === null || q.return === x) + for (; X.sibling === null; ) { + if (X.return === null || X.return === x) return; - q = q.return; + X = X.return; } - q.sibling.return = q.return, q = q.sibling; + X.sibling.return = X.return, X = X.sibling; } }; - ad = function(y, x) { + od = function(y, x) { var L = x.stateNode; - if (!Pu(y, x)) { + if (!Uu(y, x)) { y = L.containerInfo; - var H = Wr(y); - Js(H, x, !1, !1), L.pendingChildren = H, Os(x), ir(y, H); + var k = Or(y); + Ks(k, x, !1, !1), L.pendingChildren = k, Us(x), Ir(y, k); } - }, ge = function(y, x, L, H, q) { - var ee = y.stateNode, Ae = y.memoizedProps; - if ((y = Pu(y, x)) && Ae === H) - x.stateNode = ee; + }, xe = function(y, x, L, k, X) { + var $ = y.stateNode, Ae = y.memoizedProps; + if ((y = Uu(y, x)) && Ae === k) + x.stateNode = $; else { - var Ke = x.stateNode, kt = rc(Na.current), cn = null; - Ae !== H && (cn = Je(Ke, L, Ae, H, q, kt)), y && cn === null ? x.stateNode = ee : (ee = Gr(ee, cn, L, Ae, H, x, y, Ke), Xe(ee, L, H, q, kt) && Os(x), x.stateNode = ee, y ? Os(x) : _o(ee, x, !1, !1)); + var $e = x.stateNode, kt = rc(Na.current), hn = null; + Ae !== k && (hn = Je($e, L, Ae, k, X, kt)), y && hn === null ? x.stateNode = $ : ($ = ki($, hn, L, Ae, k, x, y, $e), Ve($, L, k, X, kt) && Us(x), x.stateNode = $, y ? Us(x) : So($, x, !1, !1)); } - }, oc = function(y, x, L, H) { - L !== H ? (y = rc(ed.current), L = rc(Na.current), x.stateNode = Ue(H, y, L, x), Os(x)) : x.stateNode = y.stateNode; + }, oc = function(y, x, L, k) { + L !== k ? (y = rc(nd.current), L = rc(Na.current), x.stateNode = Ne(k, y, L, x), Us(x)) : x.stateNode = y.stateNode; }; } else - ad = function() { - }, ge = function() { + od = function() { + }, xe = function() { }, oc = function() { }; function ka(y, x) { @@ -21988,23 +21988,23 @@ Error generating stack: ` + ee.message + ` break; case "collapsed": L = y.tail; - for (var H = null; L !== null; ) - L.alternate !== null && (H = L), L = L.sibling; - H === null ? x || y.tail === null ? y.tail = null : y.tail.sibling = null : H.sibling = null; + for (var k = null; L !== null; ) + L.alternate !== null && (k = L), L = L.sibling; + k === null ? x || y.tail === null ? y.tail = null : y.tail.sibling = null : k.sibling = null; } } - function Hn(y) { - var x = y.alternate !== null && y.alternate.child === y.child, L = 0, H = 0; + function Gn(y) { + var x = y.alternate !== null && y.alternate.child === y.child, L = 0, k = 0; if (x) - for (var q = y.child; q !== null; ) - L |= q.lanes | q.childLanes, H |= q.subtreeFlags & 14680064, H |= q.flags & 14680064, q.return = y, q = q.sibling; + for (var X = y.child; X !== null; ) + L |= X.lanes | X.childLanes, k |= X.subtreeFlags & 14680064, k |= X.flags & 14680064, X.return = y, X = X.sibling; else - for (q = y.child; q !== null; ) - L |= q.lanes | q.childLanes, H |= q.subtreeFlags, H |= q.flags, q.return = y, q = q.sibling; - return y.subtreeFlags |= H, y.childLanes = L, x; + for (X = y.child; X !== null; ) + L |= X.lanes | X.childLanes, k |= X.subtreeFlags, k |= X.flags, X.return = y, X = X.sibling; + return y.subtreeFlags |= k, y.childLanes = L, x; } function vr(y, x, L) { - var H = x.pendingProps; + var k = x.pendingProps; switch (Oi(x), x.tag) { case 2: case 16: @@ -22016,112 +22016,112 @@ Error generating stack: ` + ee.message + ` case 12: case 9: case 14: - return Hn(x), null; + return Gn(x), null; case 1: - return Pa(x.type) && Rl(), Hn(x), null; + return Pa(x.type) && Dl(), Gn(x), null; case 3: - return H = x.stateNode, xh(), mr(Ti), mr(_i), Mn(), H.pendingContext && (H.context = H.pendingContext, H.pendingContext = null), (y === null || y.child === null) && (Np(x) ? Os(x) : y === null || y.memoizedState.isDehydrated && (x.flags & 256) === 0 || (x.flags |= 1024, tl !== null && (Ht(tl), tl = null))), ad(y, x), Hn(x), null; + return k = x.stateNode, _h(), mr(Ti), mr(Si), Mn(), k.pendingContext && (k.context = k.pendingContext, k.pendingContext = null), (y === null || y.child === null) && (Ip(x) ? Us(x) : y === null || y.memoizedState.isDehydrated && (x.flags & 256) === 0 || (x.flags |= 1024, nl !== null && (Ht(nl), nl = null))), od(y, x), Gn(x), null; case 5: - Io(x), L = rc(ed.current); - var q = x.type; + Io(x), L = rc(nd.current); + var X = x.type; if (y !== null && x.stateNode != null) - ge(y, x, q, H, L), y.ref !== x.ref && (x.flags |= 512, x.flags |= 2097152); + xe(y, x, X, k, L), y.ref !== x.ref && (x.flags |= 512, x.flags |= 2097152); else { - if (!H) { + if (!k) { if (x.stateNode === null) throw Error(l(166)); - return Hn(x), null; + return Gn(x), null; } - if (y = rc(Na.current), Np(x)) { - if (!et) + if (y = rc(Na.current), Ip(x)) { + if (!qe) throw Error(l(175)); - y = on(x.stateNode, x.type, x.memoizedProps, L, y, x, !Fd), x.updateQueue = y, y !== null && Os(x); + y = $t(x.stateNode, x.type, x.memoizedProps, L, y, x, !kd), x.updateQueue = y, y !== null && Us(x); } else { - var ee = ye(q, H, L, y, x); - _o(ee, x, !1, !1), x.stateNode = ee, Xe(ee, q, H, L, y) && Os(x); + var $ = ye(X, k, L, y, x); + So($, x, !1, !1), x.stateNode = $, Ve($, X, k, L, y) && Us(x); } x.ref !== null && (x.flags |= 512, x.flags |= 2097152); } - return Hn(x), null; + return Gn(x), null; case 6: if (y && x.stateNode != null) - oc(y, x, y.memoizedProps, H); + oc(y, x, y.memoizedProps, k); else { - if (typeof H != "string" && x.stateNode === null) + if (typeof k != "string" && x.stateNode === null) throw Error(l(166)); - if (y = rc(ed.current), L = rc(Na.current), Np(x)) { - if (!et) + if (y = rc(nd.current), L = rc(Na.current), Ip(x)) { + if (!qe) throw Error(l(176)); - if (y = x.stateNode, H = x.memoizedProps, (L = yn(y, H, x, !Fd)) && (q = Za, q !== null)) - switch (ee = (q.mode & 1) !== 0, q.tag) { + if (y = x.stateNode, k = x.memoizedProps, (L = mn(y, k, x, !kd)) && (X = Za, X !== null)) + switch ($ = (X.mode & 1) !== 0, X.tag) { case 3: - La(q.stateNode.containerInfo, y, H, ee); + La(X.stateNode.containerInfo, y, k, $); break; case 5: - Xs(q.type, q.memoizedProps, q.stateNode, y, H, ee); + qs(X.type, X.memoizedProps, X.stateNode, y, k, $); } - L && Os(x); + L && Us(x); } else - x.stateNode = Ue(H, y, L, x); + x.stateNode = Ne(k, y, L, x); } - return Hn(x), null; + return Gn(x), null; case 13: - if (mr(Ye), H = x.memoizedState, ca && Ma !== null && (x.mode & 1) !== 0 && (x.flags & 128) === 0) { + if (mr(Xe), k = x.memoizedState, ca && Ma !== null && (x.mode & 1) !== 0 && (x.flags & 128) === 0) { for (y = Ma; y; ) - y = ct(y); - return yh(), x.flags |= 98560, x; + y = ot(y); + return xh(), x.flags |= 98560, x; } - if (H !== null && H.dehydrated !== null) { - if (H = Np(x), y === null) { - if (!H) + if (k !== null && k.dehydrated !== null) { + if (k = Ip(x), y === null) { + if (!k) throw Error(l(318)); - if (!et) + if (!qe) throw Error(l(344)); if (y = x.memoizedState, y = y !== null ? y.dehydrated : null, !y) throw Error(l(317)); Rn(y, x); } else - yh(), (x.flags & 128) === 0 && (x.memoizedState = null), x.flags |= 4; - return Hn(x), null; + xh(), (x.flags & 128) === 0 && (x.memoizedState = null), x.flags |= 4; + return Gn(x), null; } - return tl !== null && (Ht(tl), tl = null), (x.flags & 128) !== 0 ? (x.lanes = L, x) : (H = H !== null, L = !1, y === null ? Np(x) : L = y.memoizedState !== null, H && !L && (x.child.flags |= 8192, (x.mode & 1) !== 0 && (y === null || (Ye.current & 1) !== 0 ? ws === 0 && (ws = 3) : Rf())), x.updateQueue !== null && (x.flags |= 4), Hn(x), null); + return nl !== null && (Ht(nl), nl = null), (x.flags & 128) !== 0 ? (x.lanes = L, x) : (k = k !== null, L = !1, y === null ? Ip(x) : L = y.memoizedState !== null, k && !L && (x.child.flags |= 8192, (x.mode & 1) !== 0 && (y === null || (Xe.current & 1) !== 0 ? Es === 0 && (Es = 3) : Df())), x.updateQueue !== null && (x.flags |= 4), Gn(x), null); case 4: - return xh(), ad(y, x), y === null && vt(x.stateNode.containerInfo), Hn(x), null; + return _h(), od(y, x), y === null && ht(x.stateNode.containerInfo), Gn(x), null; case 10: - return Pl(x.type._context), Hn(x), null; + return Ul(x.type._context), Gn(x), null; case 17: - return Pa(x.type) && Rl(), Hn(x), null; + return Pa(x.type) && Dl(), Gn(x), null; case 19: - if (mr(Ye), q = x.memoizedState, q === null) - return Hn(x), null; - if (H = (x.flags & 128) !== 0, ee = q.rendering, ee === null) - if (H) - ka(q, !1); + if (mr(Xe), X = x.memoizedState, X === null) + return Gn(x), null; + if (k = (x.flags & 128) !== 0, $ = X.rendering, $ === null) + if (k) + ka(X, !1); else { - if (ws !== 0 || y !== null && (y.flags & 128) !== 0) + if (Es !== 0 || y !== null && (y.flags & 128) !== 0) for (y = x.child; y !== null; ) { - if (ee = Bt(y), ee !== null) { - for (x.flags |= 128, ka(q, !1), y = ee.updateQueue, y !== null && (x.updateQueue = y, x.flags |= 4), x.subtreeFlags = 0, y = L, H = x.child; H !== null; ) - L = H, q = y, L.flags &= 14680066, ee = L.alternate, ee === null ? (L.childLanes = 0, L.lanes = q, L.child = null, L.subtreeFlags = 0, L.memoizedProps = null, L.memoizedState = null, L.updateQueue = null, L.dependencies = null, L.stateNode = null) : (L.childLanes = ee.childLanes, L.lanes = ee.lanes, L.child = ee.child, L.subtreeFlags = 0, L.deletions = null, L.memoizedProps = ee.memoizedProps, L.memoizedState = ee.memoizedState, L.updateQueue = ee.updateQueue, L.type = ee.type, q = ee.dependencies, L.dependencies = q === null ? null : { lanes: q.lanes, firstContext: q.firstContext }), H = H.sibling; - return pi(Ye, Ye.current & 1 | 2), x.child; + if ($ = Bt(y), $ !== null) { + for (x.flags |= 128, ka(X, !1), y = $.updateQueue, y !== null && (x.updateQueue = y, x.flags |= 4), x.subtreeFlags = 0, y = L, k = x.child; k !== null; ) + L = k, X = y, L.flags &= 14680066, $ = L.alternate, $ === null ? (L.childLanes = 0, L.lanes = X, L.child = null, L.subtreeFlags = 0, L.memoizedProps = null, L.memoizedState = null, L.updateQueue = null, L.dependencies = null, L.stateNode = null) : (L.childLanes = $.childLanes, L.lanes = $.lanes, L.child = $.child, L.subtreeFlags = 0, L.deletions = null, L.memoizedProps = $.memoizedProps, L.memoizedState = $.memoizedState, L.updateQueue = $.updateQueue, L.type = $.type, X = $.dependencies, L.dependencies = X === null ? null : { lanes: X.lanes, firstContext: X.firstContext }), k = k.sibling; + return di(Xe, Xe.current & 1 | 2), x.child; } y = y.sibling; } - q.tail !== null && mi() > Ef && (x.flags |= 128, H = !0, ka(q, !1), x.lanes = 4194304); + X.tail !== null && hi() > Tf && (x.flags |= 128, k = !0, ka(X, !1), x.lanes = 4194304); } else { - if (!H) - if (y = Bt(ee), y !== null) { - if (x.flags |= 128, H = !0, y = y.updateQueue, y !== null && (x.updateQueue = y, x.flags |= 4), ka(q, !0), q.tail === null && q.tailMode === "hidden" && !ee.alternate && !ca) - return Hn(x), null; + if (!k) + if (y = Bt($), y !== null) { + if (x.flags |= 128, k = !0, y = y.updateQueue, y !== null && (x.updateQueue = y, x.flags |= 4), ka(X, !0), X.tail === null && X.tailMode === "hidden" && !$.alternate && !ca) + return Gn(x), null; } else - 2 * mi() - q.renderingStartTime > Ef && L !== 1073741824 && (x.flags |= 128, H = !0, ka(q, !1), x.lanes = 4194304); - q.isBackwards ? (ee.sibling = x.child, x.child = ee) : (y = q.last, y !== null ? y.sibling = ee : x.child = ee, q.last = ee); + 2 * hi() - X.renderingStartTime > Tf && L !== 1073741824 && (x.flags |= 128, k = !0, ka(X, !1), x.lanes = 4194304); + X.isBackwards ? ($.sibling = x.child, x.child = $) : (y = X.last, y !== null ? y.sibling = $ : x.child = $, X.last = $); } - return q.tail !== null ? (x = q.tail, q.rendering = x, q.tail = x.sibling, q.renderingStartTime = mi(), x.sibling = null, y = Ye.current, pi(Ye, H ? y & 1 | 2 : y & 1), x) : (Hn(x), null); + return X.tail !== null ? (x = X.tail, X.rendering = x, X.tail = x.sibling, X.renderingStartTime = hi(), x.sibling = null, y = Xe.current, di(Xe, k ? y & 1 | 2 : y & 1), x) : (Gn(x), null); case 22: case 23: - return Yo(), H = x.memoizedState !== null, y !== null && y.memoizedState !== null !== H && (x.flags |= 8192), H && (x.mode & 1) !== 0 ? (Hl & 1073741824) !== 0 && (Hn(x), Ot && x.subtreeFlags & 6 && (x.flags |= 8192)) : Hn(x), null; + return Yo(), k = x.memoizedState !== null, y !== null && y.memoizedState !== null !== k && (x.flags |= 8192), k && (x.mode & 1) !== 0 ? (Gl & 1073741824) !== 0 && (Gn(x), ft && x.subtreeFlags & 6 && (x.flags |= 8192)) : Gn(x), null; case 24: return null; case 25: @@ -22129,131 +22129,131 @@ Error generating stack: ` + ee.message + ` } throw Error(l(156, x.tag)); } - var Bi = d.ReactCurrentOwner, oi = !1; - function Gn(y, x, L, H) { - x.child = y === null ? Fp(x, null, L, H) : wc(x, y.child, L, H); + var Vi = d.ReactCurrentOwner, si = !1; + function Wn(y, x, L, k) { + x.child = y === null ? Bp(x, null, L, k) : Ec(x, y.child, L, k); } - function bi(y, x, L, H, q) { + function wi(y, x, L, k, X) { L = L.render; - var ee = x.ref; - return qs(x, q), H = xi(y, x, L, H, ee, q), L = Ec(), y !== null && !oi ? (x.updateQueue = y.updateQueue, x.flags &= -2053, y.lanes &= ~q, Vr(y, x, q)) : (ca && L && ec(x), x.flags |= 1, Gn(y, x, H, q), x.child); + var $ = x.ref; + return Qs(x, X), k = _i(y, x, L, k, $, X), L = Mc(), y !== null && !si ? (x.updateQueue = y.updateQueue, x.flags &= -2053, y.lanes &= ~X, Vr(y, x, X)) : (ca && L && ec(x), x.flags |= 1, Wn(y, x, k, X), x.child); } - function zi(y, x, L, H, q) { + function zi(y, x, L, k, X) { if (y === null) { - var ee = L.type; - return typeof ee == "function" && !Bc(ee) && ee.defaultProps === void 0 && L.compare === null && L.defaultProps === void 0 ? (x.tag = 15, x.type = ee, Pc(y, x, ee, H, q)) : (y = fd(L.type, null, H, x, x.mode, q), y.ref = x.ref, y.return = x, x.child = y); + var $ = L.type; + return typeof $ == "function" && !Hc($) && $.defaultProps === void 0 && L.compare === null && L.defaultProps === void 0 ? (x.tag = 15, x.type = $, Oc(y, x, $, k, X)) : (y = hd(L.type, null, k, x, x.mode, X), y.ref = x.ref, y.return = x, x.child = y); } - if (ee = y.child, (y.lanes & q) === 0) { - var Ae = ee.memoizedProps; - if (L = L.compare, L = L !== null ? L : Ki, L(Ae, H) && y.ref === x.ref) - return Vr(y, x, q); + if ($ = y.child, (y.lanes & X) === 0) { + var Ae = $.memoizedProps; + if (L = L.compare, L = L !== null ? L : Ki, L(Ae, k) && y.ref === x.ref) + return Vr(y, x, X); } - return x.flags |= 1, y = Xo(ee, H), y.ref = x.ref, y.return = x, x.child = y; + return x.flags |= 1, y = Xo($, k), y.ref = x.ref, y.return = x, x.child = y; } - function Pc(y, x, L, H, q) { - if (y !== null && Ki(y.memoizedProps, H) && y.ref === x.ref) - if (oi = !1, (y.lanes & q) !== 0) - (y.flags & 131072) !== 0 && (oi = !0); + function Oc(y, x, L, k, X) { + if (y !== null && Ki(y.memoizedProps, k) && y.ref === x.ref) + if (si = !1, (y.lanes & X) !== 0) + (y.flags & 131072) !== 0 && (si = !0); else - return x.lanes = y.lanes, Vr(y, x, q); - return es(y, x, L, H, q); + return x.lanes = y.lanes, Vr(y, x, X); + return es(y, x, L, k, X); } function Rr(y, x, L) { - var H = x.pendingProps, q = H.children, ee = y !== null ? y.memoizedState : null; - if (H.mode === "hidden") + var k = x.pendingProps, X = k.children, $ = y !== null ? y.memoizedState : null; + if (k.mode === "hidden") if ((x.mode & 1) === 0) - x.memoizedState = { baseLanes: 0, cachePool: null }, pi(od, Hl), Hl |= L; + x.memoizedState = { baseLanes: 0, cachePool: null }, di(ud, Gl), Gl |= L; else if ((L & 1073741824) !== 0) - x.memoizedState = { baseLanes: 0, cachePool: null }, H = ee !== null ? ee.baseLanes : L, pi(od, Hl), Hl |= H; + x.memoizedState = { baseLanes: 0, cachePool: null }, k = $ !== null ? $.baseLanes : L, di(ud, Gl), Gl |= k; else - return y = ee !== null ? ee.baseLanes | L : L, x.lanes = x.childLanes = 1073741824, x.memoizedState = { baseLanes: y, cachePool: null }, x.updateQueue = null, pi(od, Hl), Hl |= y, null; + return y = $ !== null ? $.baseLanes | L : L, x.lanes = x.childLanes = 1073741824, x.memoizedState = { baseLanes: y, cachePool: null }, x.updateQueue = null, di(ud, Gl), Gl |= y, null; else - ee !== null ? (H = ee.baseLanes | L, x.memoizedState = null) : H = L, pi(od, Hl), Hl |= H; - return Gn(y, x, q, L), x.child; + $ !== null ? (k = $.baseLanes | L, x.memoizedState = null) : k = L, di(ud, Gl), Gl |= k; + return Wn(y, x, X, L), x.child; } - function hs(y, x) { + function ps(y, x) { var L = x.ref; (y === null && L !== null || y !== null && y.ref !== L) && (x.flags |= 512, x.flags |= 2097152); } - function es(y, x, L, H, q) { - var ee = Pa(L) ? Uo : _i.current; - return ee = zo(x, ee), qs(x, q), L = xi(y, x, L, H, ee, q), H = Ec(), y !== null && !oi ? (x.updateQueue = y.updateQueue, x.flags &= -2053, y.lanes &= ~q, Vr(y, x, q)) : (ca && H && ec(x), x.flags |= 1, Gn(y, x, L, q), x.child); + function es(y, x, L, k, X) { + var $ = Pa(L) ? Uo : Si.current; + return $ = zo(x, $), Qs(x, X), L = _i(y, x, L, k, $, X), k = Mc(), y !== null && !si ? (x.updateQueue = y.updateQueue, x.flags &= -2053, y.lanes &= ~X, Vr(y, x, X)) : (ca && k && ec(x), x.flags |= 1, Wn(y, x, L, X), x.child); } - function Nl(y, x, L, H, q) { + function kl(y, x, L, k, X) { if (Pa(L)) { - var ee = !0; - Al(x); + var $ = !0; + Ll(x); } else - ee = !1; - if (qs(x, q), x.stateNode === null) - y !== null && (y.alternate = null, x.alternate = null, x.flags |= 2), Lm(x, L, H), vh(x, L, H, q), H = !0; + $ = !1; + if (Qs(x, X), x.stateNode === null) + y !== null && (y.alternate = null, x.alternate = null, x.flags |= 2), Um(x, L, k), gh(x, L, k, X), k = !0; else if (y === null) { - var Ae = x.stateNode, Ke = x.memoizedProps; - Ae.props = Ke; - var kt = Ae.context, cn = L.contextType; - typeof cn == "object" && cn !== null ? cn = Jr(cn) : (cn = Pa(L) ? Uo : _i.current, cn = zo(x, cn)); - var bn = L.getDerivedStateFromProps, wr = typeof bn == "function" || typeof Ae.getSnapshotBeforeUpdate == "function"; - wr || typeof Ae.UNSAFE_componentWillReceiveProps != "function" && typeof Ae.componentWillReceiveProps != "function" || (Ke !== H || kt !== cn) && Pm(x, Ae, H, cn), va = !1; + var Ae = x.stateNode, $e = x.memoizedProps; + Ae.props = $e; + var kt = Ae.context, hn = L.contextType; + typeof hn == "object" && hn !== null ? hn = qr(hn) : (hn = Pa(L) ? Uo : Si.current, hn = zo(x, hn)); + var wn = L.getDerivedStateFromProps, br = typeof wn == "function" || typeof Ae.getSnapshotBeforeUpdate == "function"; + br || typeof Ae.UNSAFE_componentWillReceiveProps != "function" && typeof Ae.componentWillReceiveProps != "function" || ($e !== k || kt !== hn) && zm(x, Ae, k, hn), va = !1; var ur = x.memoizedState; - Ae.state = ur, Cu(x, H, Ae, q), kt = x.memoizedState, Ke !== H || ur !== kt || Ti.current || va ? (typeof bn == "function" && (Zh(x, L, bn, H), kt = x.memoizedState), (Ke = va || Dm(x, L, Ke, H, ur, kt, cn)) ? (wr || typeof Ae.UNSAFE_componentWillMount != "function" && typeof Ae.componentWillMount != "function" || (typeof Ae.componentWillMount == "function" && Ae.componentWillMount(), typeof Ae.UNSAFE_componentWillMount == "function" && Ae.UNSAFE_componentWillMount()), typeof Ae.componentDidMount == "function" && (x.flags |= 4194308)) : (typeof Ae.componentDidMount == "function" && (x.flags |= 4194308), x.memoizedProps = H, x.memoizedState = kt), Ae.props = H, Ae.state = kt, Ae.context = cn, H = Ke) : (typeof Ae.componentDidMount == "function" && (x.flags |= 4194308), H = !1); + Ae.state = ur, Au(x, k, Ae, X), kt = x.memoizedState, $e !== k || ur !== kt || Ti.current || va ? (typeof wn == "function" && ($h(x, L, wn, k), kt = x.memoizedState), ($e = va || Om(x, L, $e, k, ur, kt, hn)) ? (br || typeof Ae.UNSAFE_componentWillMount != "function" && typeof Ae.componentWillMount != "function" || (typeof Ae.componentWillMount == "function" && Ae.componentWillMount(), typeof Ae.UNSAFE_componentWillMount == "function" && Ae.UNSAFE_componentWillMount()), typeof Ae.componentDidMount == "function" && (x.flags |= 4194308)) : (typeof Ae.componentDidMount == "function" && (x.flags |= 4194308), x.memoizedProps = k, x.memoizedState = kt), Ae.props = k, Ae.state = kt, Ae.context = hn, k = $e) : (typeof Ae.componentDidMount == "function" && (x.flags |= 4194308), k = !1); } else { - Ae = x.stateNode, Zf(y, x), Ke = x.memoizedProps, cn = x.type === x.elementType ? Ke : Oa(x.type, Ke), Ae.props = cn, wr = x.pendingProps, ur = Ae.context, kt = L.contextType, typeof kt == "object" && kt !== null ? kt = Jr(kt) : (kt = Pa(L) ? Uo : _i.current, kt = zo(x, kt)); - var _a = L.getDerivedStateFromProps; - (bn = typeof _a == "function" || typeof Ae.getSnapshotBeforeUpdate == "function") || typeof Ae.UNSAFE_componentWillReceiveProps != "function" && typeof Ae.componentWillReceiveProps != "function" || (Ke !== wr || ur !== kt) && Pm(x, Ae, H, kt), va = !1, ur = x.memoizedState, Ae.state = ur, Cu(x, H, Ae, q); + Ae = x.stateNode, Kf(y, x), $e = x.memoizedProps, hn = x.type === x.elementType ? $e : Oa(x.type, $e), Ae.props = hn, br = x.pendingProps, ur = Ae.context, kt = L.contextType, typeof kt == "object" && kt !== null ? kt = qr(kt) : (kt = Pa(L) ? Uo : Si.current, kt = zo(x, kt)); + var Sa = L.getDerivedStateFromProps; + (wn = typeof Sa == "function" || typeof Ae.getSnapshotBeforeUpdate == "function") || typeof Ae.UNSAFE_componentWillReceiveProps != "function" && typeof Ae.componentWillReceiveProps != "function" || ($e !== br || ur !== kt) && zm(x, Ae, k, kt), va = !1, ur = x.memoizedState, Ae.state = ur, Au(x, k, Ae, X); var Tn = x.memoizedState; - Ke !== wr || ur !== Tn || Ti.current || va ? (typeof _a == "function" && (Zh(x, L, _a, H), Tn = x.memoizedState), (cn = va || Dm(x, L, cn, H, ur, Tn, kt) || !1) ? (bn || typeof Ae.UNSAFE_componentWillUpdate != "function" && typeof Ae.componentWillUpdate != "function" || (typeof Ae.componentWillUpdate == "function" && Ae.componentWillUpdate( - H, + $e !== br || ur !== Tn || Ti.current || va ? (typeof Sa == "function" && ($h(x, L, Sa, k), Tn = x.memoizedState), (hn = va || Om(x, L, hn, k, ur, Tn, kt) || !1) ? (wn || typeof Ae.UNSAFE_componentWillUpdate != "function" && typeof Ae.componentWillUpdate != "function" || (typeof Ae.componentWillUpdate == "function" && Ae.componentWillUpdate( + k, Tn, kt - ), typeof Ae.UNSAFE_componentWillUpdate == "function" && Ae.UNSAFE_componentWillUpdate(H, Tn, kt)), typeof Ae.componentDidUpdate == "function" && (x.flags |= 4), typeof Ae.getSnapshotBeforeUpdate == "function" && (x.flags |= 1024)) : (typeof Ae.componentDidUpdate != "function" || Ke === y.memoizedProps && ur === y.memoizedState || (x.flags |= 4), typeof Ae.getSnapshotBeforeUpdate != "function" || Ke === y.memoizedProps && ur === y.memoizedState || (x.flags |= 1024), x.memoizedProps = H, x.memoizedState = Tn), Ae.props = H, Ae.state = Tn, Ae.context = kt, H = cn) : (typeof Ae.componentDidUpdate != "function" || Ke === y.memoizedProps && ur === y.memoizedState || (x.flags |= 4), typeof Ae.getSnapshotBeforeUpdate != "function" || Ke === y.memoizedProps && ur === y.memoizedState || (x.flags |= 1024), H = !1); + ), typeof Ae.UNSAFE_componentWillUpdate == "function" && Ae.UNSAFE_componentWillUpdate(k, Tn, kt)), typeof Ae.componentDidUpdate == "function" && (x.flags |= 4), typeof Ae.getSnapshotBeforeUpdate == "function" && (x.flags |= 1024)) : (typeof Ae.componentDidUpdate != "function" || $e === y.memoizedProps && ur === y.memoizedState || (x.flags |= 4), typeof Ae.getSnapshotBeforeUpdate != "function" || $e === y.memoizedProps && ur === y.memoizedState || (x.flags |= 1024), x.memoizedProps = k, x.memoizedState = Tn), Ae.props = k, Ae.state = Tn, Ae.context = kt, k = hn) : (typeof Ae.componentDidUpdate != "function" || $e === y.memoizedProps && ur === y.memoizedState || (x.flags |= 4), typeof Ae.getSnapshotBeforeUpdate != "function" || $e === y.memoizedProps && ur === y.memoizedState || (x.flags |= 1024), k = !1); } - return Ia(y, x, L, H, ee, q); + return Ia(y, x, L, k, $, X); } - function Ia(y, x, L, H, q, ee) { - hs(y, x); + function Ia(y, x, L, k, X, $) { + ps(y, x); var Ae = (x.flags & 128) !== 0; - if (!H && !Ae) - return q && zd(x, L, !1), Vr(y, x, ee); - H = x.stateNode, Bi.current = x; - var Ke = Ae && typeof L.getDerivedStateFromError != "function" ? null : H.render(); - return x.flags |= 1, y !== null && Ae ? (x.child = wc(x, y.child, null, ee), x.child = wc(x, null, Ke, ee)) : Gn(y, x, Ke, ee), x.memoizedState = H.state, q && zd(x, L, !0), x.child; + if (!k && !Ae) + return X && Nd(x, L, !1), Vr(y, x, $); + k = x.stateNode, Vi.current = x; + var $e = Ae && typeof L.getDerivedStateFromError != "function" ? null : k.render(); + return x.flags |= 1, y !== null && Ae ? (x.child = Ec(x, y.child, null, $), x.child = Ec(x, null, $e, $)) : Wn(y, x, $e, $), x.memoizedState = k.state, X && Nd(x, L, !0), x.child; } - function Fl(y) { + function Il(y) { var x = y.stateNode; - x.pendingContext ? vo(y, x.pendingContext, x.pendingContext !== x.context) : x.context && vo(y, x.context, !1), kp(y, x.containerInfo); + x.pendingContext ? vo(y, x.pendingContext, x.pendingContext !== x.context) : x.context && vo(y, x.context, !1), Hp(y, x.containerInfo); } - function _f(y, x, L, H, q) { - return yh(), Id(q), x.flags |= 256, Gn(y, x, L, H), x.child; + function bf(y, x, L, k, X) { + return xh(), Bd(X), x.flags |= 256, Wn(y, x, L, k), x.child; } - var Wd = { dehydrated: null, treeContext: null, retryLane: 0 }; + var jd = { dehydrated: null, treeContext: null, retryLane: 0 }; function Vo(y) { return { baseLanes: y, cachePool: null }; } - function Sv(y, x, L) { - var H = x.pendingProps, q = Ye.current, ee = !1, Ae = (x.flags & 128) !== 0, Ke; - if ((Ke = Ae) || (Ke = y !== null && y.memoizedState === null ? !1 : (q & 2) !== 0), Ke ? (ee = !0, x.flags &= -129) : (y === null || y.memoizedState !== null) && (q |= 1), pi(Ye, q & 1), y === null) - return Kf(x), y = x.memoizedState, y !== null && (y = y.dehydrated, y !== null) ? ((x.mode & 1) === 0 ? x.lanes = 1 : Si(y) ? x.lanes = 8 : x.lanes = 1073741824, null) : (q = H.children, y = H.fallback, ee ? (H = x.mode, ee = x.child, q = { mode: "hidden", children: q }, (H & 1) === 0 && ee !== null ? (ee.childLanes = 0, ee.pendingProps = q) : ee = dd(q, H, 0, null), y = mu(y, H, L, null), ee.return = x, y.return = x, ee.sibling = y, x.child = ee, x.child.memoizedState = Vo(L), x.memoizedState = Wd, y) : vl(x, q)); - if (q = y.memoizedState, q !== null) { - if (Ke = q.dehydrated, Ke !== null) { + function bv(y, x, L) { + var k = x.pendingProps, X = Xe.current, $ = !1, Ae = (x.flags & 128) !== 0, $e; + if (($e = Ae) || ($e = y !== null && y.memoizedState === null ? !1 : (X & 2) !== 0), $e ? ($ = !0, x.flags &= -129) : (y === null || y.memoizedState !== null) && (X |= 1), di(Xe, X & 1), y === null) + return ed(x), y = x.memoizedState, y !== null && (y = y.dehydrated, y !== null) ? ((x.mode & 1) === 0 ? x.lanes = 1 : ai(y) ? x.lanes = 8 : x.lanes = 1073741824, null) : (X = k.children, y = k.fallback, $ ? (k = x.mode, $ = x.child, X = { mode: "hidden", children: X }, (k & 1) === 0 && $ !== null ? ($.childLanes = 0, $.pendingProps = X) : $ = pd(X, k, 0, null), y = gu(y, k, L, null), $.return = x, y.return = x, $.sibling = y, x.child = $, x.child.memoizedState = Vo(L), x.memoizedState = jd, y) : gl(x, X)); + if (X = y.memoizedState, X !== null) { + if ($e = X.dehydrated, $e !== null) { if (Ae) - return x.flags & 256 ? (x.flags &= -257, lc(y, x, L, Error(l(422)))) : x.memoizedState !== null ? (x.child = y.child, x.flags |= 128, null) : (ee = H.fallback, q = x.mode, H = dd({ mode: "visible", children: H.children }, q, 0, null), ee = mu(ee, q, L, null), ee.flags |= 2, H.return = x, ee.return = x, H.sibling = ee, x.child = H, (x.mode & 1) !== 0 && wc( + return x.flags & 256 ? (x.flags &= -257, lc(y, x, L, Error(l(422)))) : x.memoizedState !== null ? (x.child = y.child, x.flags |= 128, null) : ($ = k.fallback, X = x.mode, k = pd({ mode: "visible", children: k.children }, X, 0, null), $ = gu($, X, L, null), $.flags |= 2, k.return = x, $.return = x, k.sibling = $, x.child = k, (x.mode & 1) !== 0 && Ec( x, y.child, null, L - ), x.child.memoizedState = Vo(L), x.memoizedState = Wd, ee); + ), x.child.memoizedState = Vo(L), x.memoizedState = jd, $); if ((x.mode & 1) === 0) x = lc(y, x, L, null); - else if (Si(Ke)) + else if (ai($e)) x = lc(y, x, L, Error(l(419))); - else if (H = (L & y.childLanes) !== 0, oi || H) { - if (H = Ra, H !== null) { + else if (k = (L & y.childLanes) !== 0, si || k) { + if (k = Ra, k !== null) { switch (L & -L) { case 4: - ee = 2; + $ = 2; break; case 16: - ee = 8; + $ = 8; break; case 64: case 128: @@ -22276,62 +22276,62 @@ Error generating stack: ` + ee.message + ` case 16777216: case 33554432: case 67108864: - ee = 32; + $ = 32; break; case 536870912: - ee = 268435456; + $ = 268435456; break; default: - ee = 0; + $ = 0; } - H = (ee & (H.suspendedLanes | L)) !== 0 ? 0 : ee, H !== 0 && H !== q.retryLane && (q.retryLane = H, jl(y, H, -1)); + k = ($ & (k.suspendedLanes | L)) !== 0 ? 0 : $, k !== 0 && k !== X.retryLane && (X.retryLane = k, Xl(y, k, -1)); } - Rf(), x = lc(y, x, L, Error(l(421))); + Df(), x = lc(y, x, L, Error(l(421))); } else - ji(Ke) ? (x.flags |= 128, x.child = y.child, x = Ic.bind(null, y), Te(Ke, x), x = null) : (L = q.treeContext, et && (Ma = qe(Ke), Za = x, ca = !0, tl = null, Fd = !1, L !== null && (hl[el++] = Jf, hl[el++] = lu, hl[el++] = pf, Jf = L.id, lu = L.overflow, pf = x)), x = vl(x, x.pendingProps.children), x.flags |= 4096); + $r($e) ? (x.flags |= 128, x.child = y.child, x = Bc.bind(null, y), Te($e, x), x = null) : (L = X.treeContext, qe && (Ma = Ye($e), Za = x, ca = !0, nl = null, kd = !1, L !== null && (pl[tl++] = $f, pl[tl++] = cu, pl[tl++] = vf, $f = L.id, cu = L.overflow, vf = x)), x = gl(x, x.pendingProps.children), x.flags |= 4096); return x; } - return ee ? (H = Kh(y, x, H.children, H.fallback, L), ee = x.child, q = y.child.memoizedState, ee.memoizedState = q === null ? Vo(L) : { baseLanes: q.baseLanes | L, cachePool: null }, ee.childLanes = y.childLanes & ~L, x.memoizedState = Wd, H) : (L = bo(y, x, H.children, L), x.memoizedState = null, L); + return $ ? (k = tp(y, x, k.children, k.fallback, L), $ = x.child, X = y.child.memoizedState, $.memoizedState = X === null ? Vo(L) : { baseLanes: X.baseLanes | L, cachePool: null }, $.childLanes = y.childLanes & ~L, x.memoizedState = jd, k) : (L = wo(y, x, k.children, L), x.memoizedState = null, L); } - return ee ? (H = Kh(y, x, H.children, H.fallback, L), ee = x.child, q = y.child.memoizedState, ee.memoizedState = q === null ? Vo(L) : { baseLanes: q.baseLanes | L, cachePool: null }, ee.childLanes = y.childLanes & ~L, x.memoizedState = Wd, H) : (L = bo(y, x, H.children, L), x.memoizedState = null, L); + return $ ? (k = tp(y, x, k.children, k.fallback, L), $ = x.child, X = y.child.memoizedState, $.memoizedState = X === null ? Vo(L) : { baseLanes: X.baseLanes | L, cachePool: null }, $.childLanes = y.childLanes & ~L, x.memoizedState = jd, k) : (L = wo(y, x, k.children, L), x.memoizedState = null, L); } - function vl(y, x) { - return x = dd({ mode: "visible", children: x }, y.mode, 0, null), x.return = y, y.child = x; + function gl(y, x) { + return x = pd({ mode: "visible", children: x }, y.mode, 0, null), x.return = y, y.child = x; } - function bo(y, x, L, H) { - var q = y.child; - return y = q.sibling, L = Xo(q, { mode: "visible", children: L }), (x.mode & 1) === 0 && (L.lanes = H), L.return = x, L.sibling = null, y !== null && (H = x.deletions, H === null ? (x.deletions = [y], x.flags |= 16) : H.push(y)), x.child = L; + function wo(y, x, L, k) { + var X = y.child; + return y = X.sibling, L = Xo(X, { mode: "visible", children: L }), (x.mode & 1) === 0 && (L.lanes = k), L.return = x, L.sibling = null, y !== null && (k = x.deletions, k === null ? (x.deletions = [y], x.flags |= 16) : k.push(y)), x.child = L; } - function Kh(y, x, L, H, q) { - var ee = x.mode; + function tp(y, x, L, k, X) { + var $ = x.mode; y = y.child; - var Ae = y.sibling, Ke = { mode: "hidden", children: L }; - return (ee & 1) === 0 && x.child !== y ? (L = x.child, L.childLanes = 0, L.pendingProps = Ke, x.deletions = null) : (L = Xo(y, Ke), L.subtreeFlags = y.subtreeFlags & 14680064), Ae !== null ? H = Xo(Ae, H) : (H = mu(H, ee, q, null), H.flags |= 2), H.return = x, L.return = x, L.sibling = H, x.child = L, H; + var Ae = y.sibling, $e = { mode: "hidden", children: L }; + return ($ & 1) === 0 && x.child !== y ? (L = x.child, L.childLanes = 0, L.pendingProps = $e, x.deletions = null) : (L = Xo(y, $e), L.subtreeFlags = y.subtreeFlags & 14680064), Ae !== null ? k = Xo(Ae, k) : (k = gu(k, $, X, null), k.flags |= 2), k.return = x, L.return = x, L.sibling = k, x.child = L, k; } - function lc(y, x, L, H) { - return H !== null && Id(H), wc(x, y.child, null, L), y = vl(x, x.pendingProps.children), y.flags |= 2, x.memoizedState = null, y; + function lc(y, x, L, k) { + return k !== null && Bd(k), Ec(x, y.child, null, L), y = gl(x, x.pendingProps.children), y.flags |= 2, x.memoizedState = null, y; } - function cu(y, x, L) { + function du(y, x, L) { y.lanes |= x; - var H = y.alternate; - H !== null && (H.lanes |= x), za(y.return, x, L); + var k = y.alternate; + k !== null && (k.lanes |= x), za(y.return, x, L); } - function _s(y, x, L, H, q) { - var ee = y.memoizedState; - ee === null ? y.memoizedState = { isBackwards: x, rendering: null, renderingStartTime: 0, last: H, tail: L, tailMode: q } : (ee.isBackwards = x, ee.rendering = null, ee.renderingStartTime = 0, ee.last = H, ee.tail = L, ee.tailMode = q); + function ws(y, x, L, k, X) { + var $ = y.memoizedState; + $ === null ? y.memoizedState = { isBackwards: x, rendering: null, renderingStartTime: 0, last: k, tail: L, tailMode: X } : ($.isBackwards = x, $.rendering = null, $.renderingStartTime = 0, $.last = k, $.tail = L, $.tailMode = X); } - function Oc(y, x, L) { - var H = x.pendingProps, q = H.revealOrder, ee = H.tail; - if (Gn(y, x, H.children, L), H = Ye.current, (H & 2) !== 0) - H = H & 1 | 2, x.flags |= 128; + function Uc(y, x, L) { + var k = x.pendingProps, X = k.revealOrder, $ = k.tail; + if (Wn(y, x, k.children, L), k = Xe.current, (k & 2) !== 0) + k = k & 1 | 2, x.flags |= 128; else { if (y !== null && (y.flags & 128) !== 0) e: for (y = x.child; y !== null; ) { if (y.tag === 13) - y.memoizedState !== null && cu(y, L, x); + y.memoizedState !== null && du(y, L, x); else if (y.tag === 19) - cu(y, L, x); + du(y, L, x); else if (y.child !== null) { y.child.return = y, y = y.child; continue; @@ -22345,29 +22345,29 @@ Error generating stack: ` + ee.message + ` } y.sibling.return = y.return, y = y.sibling; } - H &= 1; + k &= 1; } - if (pi(Ye, H), (x.mode & 1) === 0) + if (di(Xe, k), (x.mode & 1) === 0) x.memoizedState = null; else - switch (q) { + switch (X) { case "forwards": - for (L = x.child, q = null; L !== null; ) - y = L.alternate, y !== null && Bt(y) === null && (q = L), L = L.sibling; - L = q, L === null ? (q = x.child, x.child = null) : (q = L.sibling, L.sibling = null), _s(x, !1, q, L, ee); + for (L = x.child, X = null; L !== null; ) + y = L.alternate, y !== null && Bt(y) === null && (X = L), L = L.sibling; + L = X, L === null ? (X = x.child, x.child = null) : (X = L.sibling, L.sibling = null), ws(x, !1, X, L, $); break; case "backwards": - for (L = null, q = x.child, x.child = null; q !== null; ) { - if (y = q.alternate, y !== null && Bt(y) === null) { - x.child = q; + for (L = null, X = x.child, x.child = null; X !== null; ) { + if (y = X.alternate, y !== null && Bt(y) === null) { + x.child = X; break; } - y = q.sibling, q.sibling = L, L = q, q = y; + y = X.sibling, X.sibling = L, L = X, X = y; } - _s(x, !0, L, null, ee); + ws(x, !0, L, null, $); break; case "together": - _s(x, !1, null, null, void 0); + ws(x, !1, null, null, void 0); break; default: x.memoizedState = null; @@ -22375,7 +22375,7 @@ Error generating stack: ` + ee.message + ` return x.child; } function Vr(y, x, L) { - if (y !== null && (x.dependencies = y.dependencies), zc |= x.lanes, (L & x.childLanes) === 0) + if (y !== null && (x.dependencies = y.dependencies), Nc |= x.lanes, (L & x.childLanes) === 0) return null; if (y !== null && x.child !== y.child) throw Error(l(153)); @@ -22389,38 +22389,38 @@ Error generating stack: ` + ee.message + ` function uc(y, x, L) { switch (x.tag) { case 3: - Fl(x), yh(); + Il(x), xh(); break; case 5: - Ip(x); + Vp(x); break; case 1: - Pa(x.type) && Al(x); + Pa(x.type) && Ll(x); break; case 4: - kp(x, x.stateNode.containerInfo); + Hp(x, x.stateNode.containerInfo); break; case 10: - Tu(x, x.type._context, x.memoizedProps.value); + Ru(x, x.type._context, x.memoizedProps.value); break; case 13: - var H = x.memoizedState; - if (H !== null) - return H.dehydrated !== null ? (pi(Ye, Ye.current & 1), x.flags |= 128, null) : (L & x.child.childLanes) !== 0 ? Sv(y, x, L) : (pi(Ye, Ye.current & 1), y = Vr(y, x, L), y !== null ? y.sibling : null); - pi(Ye, Ye.current & 1); + var k = x.memoizedState; + if (k !== null) + return k.dehydrated !== null ? (di(Xe, Xe.current & 1), x.flags |= 128, null) : (L & x.child.childLanes) !== 0 ? bv(y, x, L) : (di(Xe, Xe.current & 1), y = Vr(y, x, L), y !== null ? y.sibling : null); + di(Xe, Xe.current & 1); break; case 19: - if (H = (L & x.childLanes) !== 0, (y.flags & 128) !== 0) { - if (H) - return Oc( + if (k = (L & x.childLanes) !== 0, (y.flags & 128) !== 0) { + if (k) + return Uc( y, x, L ); x.flags |= 128; } - var q = x.memoizedState; - if (q !== null && (q.rendering = null, q.tail = null, q.lastEffect = null), pi(Ye, Ye.current), H) + var X = x.memoizedState; + if (X !== null && (X.rendering = null, X.tail = null, X.lastEffect = null), di(Xe, Xe.current), k) break; return null; case 22: @@ -22429,27 +22429,27 @@ Error generating stack: ` + ee.message + ` } return Vr(y, x, L); } - function zr(y, x) { + function Ur(y, x) { switch (Oi(x), x.tag) { case 1: - return Pa(x.type) && Rl(), y = x.flags, y & 65536 ? (x.flags = y & -65537 | 128, x) : null; + return Pa(x.type) && Dl(), y = x.flags, y & 65536 ? (x.flags = y & -65537 | 128, x) : null; case 3: - return xh(), mr(Ti), mr(_i), Mn(), y = x.flags, (y & 65536) !== 0 && (y & 128) === 0 ? (x.flags = y & -65537 | 128, x) : null; + return _h(), mr(Ti), mr(Si), Mn(), y = x.flags, (y & 65536) !== 0 && (y & 128) === 0 ? (x.flags = y & -65537 | 128, x) : null; case 5: return Io(x), null; case 13: - if (mr(Ye), y = x.memoizedState, y !== null && y.dehydrated !== null) { + if (mr(Xe), y = x.memoizedState, y !== null && y.dehydrated !== null) { if (x.alternate === null) throw Error(l(340)); - yh(); + xh(); } return y = x.flags, y & 65536 ? (x.flags = y & -65537 | 128, x) : null; case 19: - return mr(Ye), null; + return mr(Xe), null; case 4: - return xh(), null; + return _h(), null; case 10: - return Pl(x.type._context), null; + return Ul(x.type._context), null; case 22: case 23: return Yo(), null; @@ -22459,34 +22459,34 @@ Error generating stack: ` + ee.message + ` return null; } } - var Ks = !1, ps = !1, Uc = typeof WeakSet == "function" ? WeakSet : Set, pn = null; - function kl(y, x) { + var $s = !1, ms = !1, zc = typeof WeakSet == "function" ? WeakSet : Set, vn = null; + function Bl(y, x) { var L = y.ref; if (L !== null) if (typeof L == "function") try { L(null); - } catch (H) { - wi(y, x, H); + } catch (k) { + bi(y, x, k); } else L.current = null; } - function wo(y, x, L) { + function bo(y, x, L) { try { L(); - } catch (H) { - wi(y, x, H); + } catch (k) { + bi(y, x, k); } } - var Nm = !1; - function wh(y, x) { - for (de(y.containerInfo), pn = x; pn !== null; ) - if (y = pn, x = y.child, (y.subtreeFlags & 1028) !== 0 && x !== null) - x.return = y, pn = x; + var Im = !1; + function Eh(y, x) { + for (fe(y.containerInfo), vn = x; vn !== null; ) + if (y = vn, x = y.child, (y.subtreeFlags & 1028) !== 0 && x !== null) + x.return = y, vn = x; else - for (; pn !== null; ) { - y = pn; + for (; vn !== null; ) { + y = vn; try { var L = y.alternate; if ((y.flags & 1024) !== 0) @@ -22497,12 +22497,12 @@ Error generating stack: ` + ee.message + ` break; case 1: if (L !== null) { - var H = L.memoizedProps, q = L.memoizedState, ee = y.stateNode, Ae = ee.getSnapshotBeforeUpdate(y.elementType === y.type ? H : Oa(y.type, H), q); - ee.__reactInternalSnapshotBeforeUpdate = Ae; + var k = L.memoizedProps, X = L.memoizedState, $ = y.stateNode, Ae = $.getSnapshotBeforeUpdate(y.elementType === y.type ? k : Oa(y.type, k), X); + $.__reactInternalSnapshotBeforeUpdate = Ae; } break; case 3: - Ot && fn(y.stateNode.containerInfo); + ft && cn(y.stateNode.containerInfo); break; case 5: case 6: @@ -22512,28 +22512,28 @@ Error generating stack: ` + ee.message + ` default: throw Error(l(163)); } - } catch (Ke) { - wi(y, y.return, Ke); + } catch ($e) { + bi(y, y.return, $e); } if (x = y.sibling, x !== null) { - x.return = y.return, pn = x; + x.return = y.return, vn = x; break; } - pn = y.return; + vn = y.return; } - return L = Nm, Nm = !1, L; + return L = Im, Im = !1, L; } - function Ou(y, x, L) { - var H = x.updateQueue; - if (H = H !== null ? H.lastEffect : null, H !== null) { - var q = H = H.next; + function zu(y, x, L) { + var k = x.updateQueue; + if (k = k !== null ? k.lastEffect : null, k !== null) { + var X = k = k.next; do { - if ((q.tag & y) === y) { - var ee = q.destroy; - q.destroy = void 0, ee !== void 0 && wo(x, L, ee); + if ((X.tag & y) === y) { + var $ = X.destroy; + X.destroy = void 0, $ !== void 0 && bo(x, L, $); } - q = q.next; - } while (q !== H); + X = X.next; + } while (X !== k); } } function bs(y, x) { @@ -22541,20 +22541,20 @@ Error generating stack: ` + ee.message + ` var L = x = x.next; do { if ((L.tag & y) === y) { - var H = L.create; - L.destroy = H(); + var k = L.create; + L.destroy = k(); } L = L.next; } while (L !== x); } } - function gl(y) { + function yl(y) { var x = y.ref; if (x !== null) { var L = y.stateNode; switch (y.tag) { case 5: - y = Ce(L); + y = Re(L); break; default: y = L; @@ -22563,9 +22563,9 @@ Error generating stack: ` + ee.message + ` } } function ga(y, x, L) { - if (su && typeof su.onCommitFiberUnmount == "function") + if (lu && typeof lu.onCommitFiberUnmount == "function") try { - su.onCommitFiberUnmount(hf, x); + lu.onCommitFiberUnmount(mf, x); } catch { } switch (x.tag) { @@ -22574,19 +22574,19 @@ Error generating stack: ` + ee.message + ` case 14: case 15: if (y = x.updateQueue, y !== null && (y = y.lastEffect, y !== null)) { - var H = y = y.next; + var k = y = y.next; do { - var q = H, ee = q.destroy; - q = q.tag, ee !== void 0 && ((q & 2) !== 0 || (q & 4) !== 0) && wo(x, L, ee), H = H.next; - } while (H !== y); + var X = k, $ = X.destroy; + X = X.tag, $ !== void 0 && ((X & 2) !== 0 || (X & 4) !== 0) && bo(x, L, $), k = k.next; + } while (k !== y); } break; case 1: - if (kl(x, L), y = x.stateNode, typeof y.componentWillUnmount == "function") + if (Bl(x, L), y = x.stateNode, typeof y.componentWillUnmount == "function") try { y.props = x.memoizedProps, y.state = x.memoizedState, y.componentWillUnmount(); } catch (Ae) { - wi( + bi( x, L, Ae @@ -22594,38 +22594,38 @@ Error generating stack: ` + ee.message + ` } break; case 5: - kl(x, L); + Bl(x, L); break; case 4: - Ot ? zs(y, x, L) : He && He && (x = x.stateNode.containerInfo, L = Wr(x), Vn(x, L)); + ft ? Ns(y, x, L) : Ie && Ie && (x = x.stateNode.containerInfo, L = Or(x), Bn(x, L)); } } - function fu(y, x, L) { - for (var H = x; ; ) - if (ga(y, H, L), H.child === null || Ot && H.tag === 4) { - if (H === x) + function hu(y, x, L) { + for (var k = x; ; ) + if (ga(y, k, L), k.child === null || ft && k.tag === 4) { + if (k === x) break; - for (; H.sibling === null; ) { - if (H.return === null || H.return === x) + for (; k.sibling === null; ) { + if (k.return === null || k.return === x) return; - H = H.return; + k = k.return; } - H.sibling.return = H.return, H = H.sibling; + k.sibling.return = k.return, k = k.sibling; } else - H.child.return = H, H = H.child; + k.child.return = k, k = k.child; } - function Us(y) { + function zs(y) { var x = y.alternate; - x !== null && (y.alternate = null, Us(x)), y.child = null, y.deletions = null, y.sibling = null, y.tag === 5 && (x = y.stateNode, x !== null && Qt(x)), y.stateNode = null, y.return = null, y.dependencies = null, y.memoizedProps = null, y.memoizedState = null, y.pendingProps = null, y.stateNode = null, y.updateQueue = null; + x !== null && (y.alternate = null, zs(x)), y.child = null, y.deletions = null, y.sibling = null, y.tag === 5 && (x = y.stateNode, x !== null && Vt(x)), y.stateNode = null, y.return = null, y.dependencies = null, y.memoizedProps = null, y.memoizedState = null, y.pendingProps = null, y.stateNode = null, y.updateQueue = null; } - function sd(y) { + function ld(y) { return y.tag === 5 || y.tag === 3 || y.tag === 4; } - function Il(y) { + function Hl(y) { e: for (; ; ) { for (; y.sibling === null; ) { - if (y.return === null || sd(y.return)) + if (y.return === null || ld(y.return)) return null; y = y.return; } @@ -22639,10 +22639,10 @@ Error generating stack: ` + ee.message + ` } } function Go(y) { - if (Ot) { + if (ft) { e: { for (var x = y.return; x !== null; ) { - if (sd(x)) + if (ld(x)) break e; x = x.return; } @@ -22651,114 +22651,114 @@ Error generating stack: ` + ee.message + ` var L = x; switch (L.tag) { case 5: - x = L.stateNode, L.flags & 32 && (De(x), L.flags &= -33), L = Il(y), rl(y, L, x); + x = L.stateNode, L.flags & 32 && (ze(x), L.flags &= -33), L = Hl(y), il(y, L, x); break; case 3: case 4: - x = L.stateNode.containerInfo, L = Il(y), jd(y, L, x); + x = L.stateNode.containerInfo, L = Hl(y), Yd(y, L, x); break; default: throw Error(l(161)); } } } - function jd(y, x, L) { - var H = y.tag; - if (H === 5 || H === 6) - y = y.stateNode, x ? it(L, y, x) : tt(L, y); - else if (H !== 4 && (y = y.child, y !== null)) - for (jd(y, x, L), y = y.sibling; y !== null; ) - jd(y, x, L), y = y.sibling; + function Yd(y, x, L) { + var k = y.tag; + if (k === 5 || k === 6) + y = y.stateNode, x ? at(L, y, x) : it(L, y); + else if (k !== 4 && (y = y.child, y !== null)) + for (Yd(y, x, L), y = y.sibling; y !== null; ) + Yd(y, x, L), y = y.sibling; } - function rl(y, x, L) { - var H = y.tag; - if (H === 5 || H === 6) - y = y.stateNode, x ? Ie(L, y, x) : Ut(L, y); - else if (H !== 4 && (y = y.child, y !== null)) - for (rl(y, x, L), y = y.sibling; y !== null; ) - rl(y, x, L), y = y.sibling; - } - function zs(y, x, L) { - for (var H = x, q = !1, ee, Ae; ; ) { - if (!q) { - q = H.return; + function il(y, x, L) { + var k = y.tag; + if (k === 5 || k === 6) + y = y.stateNode, x ? Fe(L, y, x) : Wt(L, y); + else if (k !== 4 && (y = y.child, y !== null)) + for (il(y, x, L), y = y.sibling; y !== null; ) + il(y, x, L), y = y.sibling; + } + function Ns(y, x, L) { + for (var k = x, X = !1, $, Ae; ; ) { + if (!X) { + X = k.return; e: for (; ; ) { - if (q === null) + if (X === null) throw Error(l(160)); - switch (ee = q.stateNode, q.tag) { + switch ($ = X.stateNode, X.tag) { case 5: Ae = !1; break e; case 3: - ee = ee.containerInfo, Ae = !0; + $ = $.containerInfo, Ae = !0; break e; case 4: - ee = ee.containerInfo, Ae = !0; + $ = $.containerInfo, Ae = !0; break e; } - q = q.return; + X = X.return; } - q = !0; - } - if (H.tag === 5 || H.tag === 6) - fu(y, H, L), Ae ? hn(ee, H.stateNode) : at(ee, H.stateNode); - else if (H.tag === 18) - Ae ? br(ee, H.stateNode) : nr(ee, H.stateNode); - else if (H.tag === 4) { - if (H.child !== null) { - ee = H.stateNode.containerInfo, Ae = !0, H.child.return = H, H = H.child; + X = !0; + } + if (k.tag === 5 || k.tag === 6) + hu(y, k, L), Ae ? dn($, k.stateNode) : st($, k.stateNode); + else if (k.tag === 18) + Ae ? wr($, k.stateNode) : rr($, k.stateNode); + else if (k.tag === 4) { + if (k.child !== null) { + $ = k.stateNode.containerInfo, Ae = !0, k.child.return = k, k = k.child; continue; } - } else if (ga(y, H, L), H.child !== null) { - H.child.return = H, H = H.child; + } else if (ga(y, k, L), k.child !== null) { + k.child.return = k, k = k.child; continue; } - if (H === x) + if (k === x) break; - for (; H.sibling === null; ) { - if (H.return === null || H.return === x) + for (; k.sibling === null; ) { + if (k.return === null || k.return === x) return; - H = H.return, H.tag === 4 && (q = !1); + k = k.return, k.tag === 4 && (X = !1); } - H.sibling.return = H.return, H = H.sibling; + k.sibling.return = k.return, k = k.sibling; } } function fa(y, x) { - if (Ot) { + if (ft) { switch (x.tag) { case 0: case 11: case 14: case 15: - Ou(3, x, x.return), bs(3, x), Ou(5, x, x.return); + zu(3, x, x.return), bs(3, x), zu(5, x, x.return); return; case 1: return; case 5: var L = x.stateNode; if (L != null) { - var H = x.memoizedProps; - y = y !== null ? y.memoizedProps : H; - var q = x.type, ee = x.updateQueue; - x.updateQueue = null, ee !== null && xe(L, ee, q, y, H, x); + var k = x.memoizedProps; + y = y !== null ? y.memoizedProps : k; + var X = x.type, $ = x.updateQueue; + x.updateQueue = null, $ !== null && pe(L, $, X, y, k, x); } return; case 6: if (x.stateNode === null) throw Error(l(162)); - L = x.memoizedProps, rn(x.stateNode, y !== null ? y.memoizedProps : L, L); + L = x.memoizedProps, an(x.stateNode, y !== null ? y.memoizedProps : L, L); return; case 3: - et && y !== null && y.memoizedState.isDehydrated && vn(x.stateNode.containerInfo); + qe && y !== null && y.memoizedState.isDehydrated && yn(x.stateNode.containerInfo); return; case 12: return; case 13: - Uu(x); + Nu(x); return; case 19: - Uu(x); + Nu(x); return; case 17: return; @@ -22770,25 +22770,25 @@ Error generating stack: ` + ee.message + ` case 11: case 14: case 15: - Ou(3, x, x.return), bs(3, x), Ou(5, x, x.return); + zu(3, x, x.return), bs(3, x), zu(5, x, x.return); return; case 12: return; case 13: - Uu(x); + Nu(x); return; case 19: - Uu(x); + Nu(x); return; case 3: - et && y !== null && y.memoizedState.isDehydrated && vn(x.stateNode.containerInfo); + qe && y !== null && y.memoizedState.isDehydrated && yn(x.stateNode.containerInfo); break; case 22: case 23: return; } e: - if (He) { + if (Ie) { switch (x.tag) { case 1: case 5: @@ -22796,137 +22796,137 @@ Error generating stack: ` + ee.message + ` break e; case 3: case 4: - x = x.stateNode, Vn(x.containerInfo, x.pendingChildren); + x = x.stateNode, Bn(x.containerInfo, x.pendingChildren); break e; } throw Error(l(163)); } } - function Uu(y) { + function Nu(y) { var x = y.updateQueue; if (x !== null) { y.updateQueue = null; var L = y.stateNode; - L === null && (L = y.stateNode = new Uc()), x.forEach(function(H) { - var q = hu.bind(null, y, H); - L.has(H) || (L.add(H), H.then(q, q)); + L === null && (L = y.stateNode = new zc()), x.forEach(function(k) { + var X = mu.bind(null, y, k); + L.has(k) || (L.add(k), k.then(X, X)); }); } } - function Hp(y, x) { - for (pn = x; pn !== null; ) { - x = pn; + function Wp(y, x) { + for (vn = x; vn !== null; ) { + x = vn; var L = x.deletions; if (L !== null) - for (var H = 0; H < L.length; H++) { - var q = L[H]; + for (var k = 0; k < L.length; k++) { + var X = L[k]; try { - var ee = y; - Ot ? zs(ee, q, x) : fu(ee, q, x); - var Ae = q.alternate; - Ae !== null && (Ae.return = null), q.return = null; - } catch (Wn) { - wi(q, x, Wn); + var $ = y; + ft ? Ns($, X, x) : hu($, X, x); + var Ae = X.alternate; + Ae !== null && (Ae.return = null), X.return = null; + } catch (jn) { + bi(X, x, jn); } } if (L = x.child, (x.subtreeFlags & 12854) !== 0 && L !== null) - L.return = x, pn = L; + L.return = x, vn = L; else - for (; pn !== null; ) { - x = pn; + for (; vn !== null; ) { + x = vn; try { - var Ke = x.flags; - if (Ke & 32 && Ot && De(x.stateNode), Ke & 512) { + var $e = x.flags; + if ($e & 32 && ft && ze(x.stateNode), $e & 512) { var kt = x.alternate; if (kt !== null) { - var cn = kt.ref; - cn !== null && (typeof cn == "function" ? cn(null) : cn.current = null); + var hn = kt.ref; + hn !== null && (typeof hn == "function" ? hn(null) : hn.current = null); } } - if (Ke & 8192) + if ($e & 8192) switch (x.tag) { case 13: if (x.memoizedState !== null) { - var bn = x.alternate; - (bn === null || bn.memoizedState === null) && (Fm = mi()); + var wn = x.alternate; + (wn === null || wn.memoizedState === null) && (Bm = hi()); } break; case 22: - var wr = x.memoizedState !== null, ur = x.alternate, _a = ur !== null && ur.memoizedState !== null; - if (L = x, Ot) { + var br = x.memoizedState !== null, ur = x.alternate, Sa = ur !== null && ur.memoizedState !== null; + if (L = x, ft) { e: - if (H = L, q = wr, ee = null, Ot) - for (var Tn = H; ; ) { + if (k = L, X = br, $ = null, ft) + for (var Tn = k; ; ) { if (Tn.tag === 5) { - if (ee === null) { - ee = Tn; + if ($ === null) { + $ = Tn; var Li = Tn.stateNode; - q ? Tt(Li) : Gt(Tn.stateNode, Tn.memoizedProps); + X ? wt(Li) : Gt(Tn.stateNode, Tn.memoizedProps); } } else if (Tn.tag === 6) { - if (ee === null) { - var ms = Tn.stateNode; - q ? Ne(ms) : Pt(ms, Tn.memoizedProps); + if ($ === null) { + var vs = Tn.stateNode; + X ? Pe(vs) : At(vs, Tn.memoizedProps); } - } else if ((Tn.tag !== 22 && Tn.tag !== 23 || Tn.memoizedState === null || Tn === H) && Tn.child !== null) { + } else if ((Tn.tag !== 22 && Tn.tag !== 23 || Tn.memoizedState === null || Tn === k) && Tn.child !== null) { Tn.child.return = Tn, Tn = Tn.child; continue; } - if (Tn === H) + if (Tn === k) break; for (; Tn.sibling === null; ) { - if (Tn.return === null || Tn.return === H) + if (Tn.return === null || Tn.return === k) break e; - ee === Tn && (ee = null), Tn = Tn.return; + $ === Tn && ($ = null), Tn = Tn.return; } - ee === Tn && (ee = null), Tn.sibling.return = Tn.return, Tn = Tn.sibling; + $ === Tn && ($ = null), Tn.sibling.return = Tn.return, Tn = Tn.sibling; } } - if (wr && !_a && (L.mode & 1) !== 0) { - pn = L; - for (var dt = L.child; dt !== null; ) { - for (L = pn = dt; pn !== null; ) { - H = pn; - var Qe = H.child; - switch (H.tag) { + if (br && !Sa && (L.mode & 1) !== 0) { + vn = L; + for (var pt = L.child; pt !== null; ) { + for (L = vn = pt; vn !== null; ) { + k = vn; + var Ze = k.child; + switch (k.tag) { case 0: case 11: case 14: case 15: - Ou(4, H, H.return); + zu(4, k, k.return); break; case 1: - kl(H, H.return); - var At = H.stateNode; - if (typeof At.componentWillUnmount == "function") { - var qt = H.return; + Bl(k, k.return); + var Lt = k.stateNode; + if (typeof Lt.componentWillUnmount == "function") { + var Qt = k.return; try { - At.props = H.memoizedProps, At.state = H.memoizedState, At.componentWillUnmount(); - } catch (Wn) { - wi( - H, - qt, - Wn + Lt.props = k.memoizedProps, Lt.state = k.memoizedState, Lt.componentWillUnmount(); + } catch (jn) { + bi( + k, + Qt, + jn ); } } break; case 5: - kl(H, H.return); + Bl(k, k.return); break; case 22: - if (H.memoizedState !== null) { - bf(L); + if (k.memoizedState !== null) { + Ef(L); continue; } } - Qe !== null ? (Qe.return = H, pn = Qe) : bf(L); + Ze !== null ? (Ze.return = k, vn = Ze) : Ef(L); } - dt = dt.sibling; + pt = pt.sibling; } } } - switch (Ke & 4102) { + switch ($e & 4102) { case 2: Go(x), x.flags &= -3; break; @@ -22942,44 +22942,44 @@ Error generating stack: ` + ee.message + ` case 4: fa(x.alternate, x); } - } catch (Wn) { - wi(x, x.return, Wn); + } catch (jn) { + bi(x, x.return, jn); } if (L = x.sibling, L !== null) { - L.return = x.return, pn = L; + L.return = x.return, vn = L; break; } - pn = x.return; + vn = x.return; } } } - function du(y, x, L) { - pn = y, Bl(y); + function pu(y, x, L) { + vn = y, Vl(y); } - function Bl(y, x, L) { - for (var H = (y.mode & 1) !== 0; pn !== null; ) { - var q = pn, ee = q.child; - if (q.tag === 22 && H) { - var Ae = q.memoizedState !== null || Ks; + function Vl(y, x, L) { + for (var k = (y.mode & 1) !== 0; vn !== null; ) { + var X = vn, $ = X.child; + if (X.tag === 22 && k) { + var Ae = X.memoizedState !== null || $s; if (!Ae) { - var Ke = q.alternate, kt = Ke !== null && Ke.memoizedState !== null || ps; - Ke = Ks; - var cn = ps; - if (Ks = Ae, (ps = kt) && !cn) - for (pn = q; pn !== null; ) - Ae = pn, kt = Ae.child, Ae.tag === 22 && Ae.memoizedState !== null ? $s(q) : kt !== null ? (kt.return = Ae, pn = kt) : $s(q); - for (; ee !== null; ) - pn = ee, Bl(ee), ee = ee.sibling; - pn = q, Ks = Ke, ps = cn; - } - $h(y); + var $e = X.alternate, kt = $e !== null && $e.memoizedState !== null || ms; + $e = $s; + var hn = ms; + if ($s = Ae, (ms = kt) && !hn) + for (vn = X; vn !== null; ) + Ae = vn, kt = Ae.child, Ae.tag === 22 && Ae.memoizedState !== null ? eo(X) : kt !== null ? (kt.return = Ae, vn = kt) : eo(X); + for (; $ !== null; ) + vn = $, Vl($), $ = $.sibling; + vn = X, $s = $e, ms = hn; + } + np(y); } else - (q.subtreeFlags & 8772) !== 0 && ee !== null ? (ee.return = q, pn = ee) : $h(y); + (X.subtreeFlags & 8772) !== 0 && $ !== null ? ($.return = X, vn = $) : np(y); } } - function $h(y) { - for (; pn !== null; ) { - var x = pn; + function np(y) { + for (; vn !== null; ) { + var x = vn; if ((x.flags & 8772) !== 0) { var L = x.alternate; try { @@ -22988,19 +22988,19 @@ Error generating stack: ` + ee.message + ` case 0: case 11: case 15: - ps || bs(5, x); + ms || bs(5, x); break; case 1: - var H = x.stateNode; - if (x.flags & 4 && !ps) + var k = x.stateNode; + if (x.flags & 4 && !ms) if (L === null) - H.componentDidMount(); + k.componentDidMount(); else { - var q = x.elementType === x.type ? L.memoizedProps : Oa(x.type, L.memoizedProps); - H.componentDidUpdate(q, L.memoizedState, H.__reactInternalSnapshotBeforeUpdate); + var X = x.elementType === x.type ? L.memoizedProps : Oa(x.type, L.memoizedProps); + k.componentDidUpdate(X, L.memoizedState, k.__reactInternalSnapshotBeforeUpdate); } - var ee = x.updateQueue; - ee !== null && Up(x, ee, H); + var $ = x.updateQueue; + $ !== null && Fp(x, $, k); break; case 3: var Ae = x.updateQueue; @@ -23008,17 +23008,17 @@ Error generating stack: ` + ee.message + ` if (L = null, x.child !== null) switch (x.child.tag) { case 5: - L = Ce(x.child.stateNode); + L = Re(x.child.stateNode); break; case 1: L = x.child.stateNode; } - Up(x, Ae, L); + Fp(x, Ae, L); } break; case 5: - var Ke = x.stateNode; - L === null && x.flags & 4 && ze(Ke, x.type, x.memoizedProps, x); + var $e = x.stateNode; + L === null && x.flags & 4 && Be($e, x.type, x.memoizedProps, x); break; case 6: break; @@ -23027,13 +23027,13 @@ Error generating stack: ` + ee.message + ` case 12: break; case 13: - if (et && x.memoizedState === null) { + if (qe && x.memoizedState === null) { var kt = x.alternate; if (kt !== null) { - var cn = kt.memoizedState; - if (cn !== null) { - var bn = cn.dehydrated; - bn !== null && Zn(bn); + var hn = kt.memoizedState; + if (hn !== null) { + var wn = hn.dehydrated; + wn !== null && Jn(wn); } } } @@ -23047,40 +23047,40 @@ Error generating stack: ` + ee.message + ` default: throw Error(l(163)); } - ps || x.flags & 512 && gl(x); - } catch (wr) { - wi(x, x.return, wr); + ms || x.flags & 512 && yl(x); + } catch (br) { + bi(x, x.return, br); } } if (x === y) { - pn = null; + vn = null; break; } if (L = x.sibling, L !== null) { - L.return = x.return, pn = L; + L.return = x.return, vn = L; break; } - pn = x.return; + vn = x.return; } } - function bf(y) { - for (; pn !== null; ) { - var x = pn; + function Ef(y) { + for (; vn !== null; ) { + var x = vn; if (x === y) { - pn = null; + vn = null; break; } var L = x.sibling; if (L !== null) { - L.return = x.return, pn = L; + L.return = x.return, vn = L; break; } - pn = x.return; + vn = x.return; } } - function $s(y) { - for (; pn !== null; ) { - var x = pn; + function eo(y) { + for (; vn !== null; ) { + var x = vn; try { switch (x.tag) { case 0: @@ -23090,68 +23090,68 @@ Error generating stack: ` + ee.message + ` try { bs(4, x); } catch (kt) { - wi(x, L, kt); + bi(x, L, kt); } break; case 1: - var H = x.stateNode; - if (typeof H.componentDidMount == "function") { - var q = x.return; + var k = x.stateNode; + if (typeof k.componentDidMount == "function") { + var X = x.return; try { - H.componentDidMount(); + k.componentDidMount(); } catch (kt) { - wi(x, q, kt); + bi(x, X, kt); } } - var ee = x.return; + var $ = x.return; try { - gl(x); + yl(x); } catch (kt) { - wi(x, ee, kt); + bi(x, $, kt); } break; case 5: var Ae = x.return; try { - gl(x); + yl(x); } catch (kt) { - wi(x, Ae, kt); + bi(x, Ae, kt); } } } catch (kt) { - wi(x, x.return, kt); + bi(x, x.return, kt); } if (x === y) { - pn = null; + vn = null; break; } - var Ke = x.sibling; - if (Ke !== null) { - Ke.return = x.return, pn = Ke; + var $e = x.sibling; + if ($e !== null) { + $e.return = x.return, vn = $e; break; } - pn = x.return; + vn = x.return; } } - var Yd = 0, da = 1, Hi = 2, wn = 3, Qi = 4; + var Xd = 0, da = 1, Gi = 2, bn = 3, Qi = 4; if (typeof Symbol == "function" && Symbol.for) { var ya = Symbol.for; - Yd = ya("selector.component"), da = ya("selector.has_pseudo_class"), Hi = ya("selector.role"), wn = ya("selector.test_id"), Qi = ya("selector.text"); + Xd = ya("selector.component"), da = ya("selector.has_pseudo_class"), Gi = ya("selector.role"), bn = ya("selector.test_id"), Qi = ya("selector.text"); } - function ep(y) { - var x = mt(y); + function rp(y) { + var x = dt(y); if (x != null) { if (typeof x.memoizedProps["data-testname"] != "string") throw Error(l(364)); return x; } - if (y = Mt(y), y === null) + if (y = Rt(y), y === null) throw Error(l(362)); return y.stateNode.current; } function Wo(y, x) { switch (x.$$typeof) { - case Yd: + case Xd: if (y.type === x.value) return !0; break; @@ -23159,30 +23159,30 @@ Error generating stack: ` + ee.message + ` e: { x = x.value, y = [y, 0]; for (var L = 0; L < y.length; ) { - var H = y[L++], q = y[L++], ee = x[q]; - if (H.tag !== 5 || !je(H)) { - for (; ee != null && Wo(H, ee); ) - q++, ee = x[q]; - if (q === x.length) { + var k = y[L++], X = y[L++], $ = x[X]; + if (k.tag !== 5 || !Qe(k)) { + for (; $ != null && Wo(k, $); ) + X++, $ = x[X]; + if (X === x.length) { x = !0; break e; } else - for (H = H.child; H !== null; ) - y.push(H, q), H = H.sibling; + for (k = k.child; k !== null; ) + y.push(k, X), k = k.sibling; } } x = !1; } return x; - case Hi: - if (y.tag === 5 && lt(y.stateNode, x.value)) + case Gi: + if (y.tag === 5 && ut(y.stateNode, x.value)) return !0; break; case Qi: if ((y.tag === 5 || y.tag === 6) && (y = oe(y), y !== null && 0 <= y.indexOf(x.value))) return !0; break; - case wn: + case bn: if (y.tag === 5 && (y = y.memoizedProps["data-testname"], typeof y == "string" && y.toLowerCase() === x.value.toLowerCase())) return !0; break; @@ -23193,15 +23193,15 @@ Error generating stack: ` + ee.message + ` } function jo(y) { switch (y.$$typeof) { - case Yd: - return "<" + ($(y.value) || "Unknown") + ">"; + case Xd: + return "<" + (te(y.value) || "Unknown") + ">"; case da: return ":has(" + (jo(y) || "") + ")"; - case Hi: + case Gi: return '[role="' + y.value + '"]'; case Qi: return '"' + y.value + '"'; - case wn: + case bn: return '[data-testname="' + y.value + '"]'; default: throw Error(l(365)); @@ -23210,71 +23210,71 @@ Error generating stack: ` + ee.message + ` function ts(y, x) { var L = []; y = [y, 0]; - for (var H = 0; H < y.length; ) { - var q = y[H++], ee = y[H++], Ae = x[ee]; - if (q.tag !== 5 || !je(q)) { - for (; Ae != null && Wo(q, Ae); ) - ee++, Ae = x[ee]; - if (ee === x.length) - L.push(q); + for (var k = 0; k < y.length; ) { + var X = y[k++], $ = y[k++], Ae = x[$]; + if (X.tag !== 5 || !Qe(X)) { + for (; Ae != null && Wo(X, Ae); ) + $++, Ae = x[$]; + if ($ === x.length) + L.push(X); else - for (q = q.child; q !== null; ) - y.push(q, ee), q = q.sibling; + for (X = X.child; X !== null; ) + y.push(X, $), X = X.sibling; } } return L; } function An(y, x) { - if (!Jt) + if (!Zt) throw Error(l(363)); - y = ep(y), y = ts(y, x), x = [], y = Array.from(y); + y = rp(y), y = ts(y, x), x = [], y = Array.from(y); for (var L = 0; L < y.length; ) { - var H = y[L++]; - if (H.tag === 5) - je(H) || x.push(H.stateNode); + var k = y[L++]; + if (k.tag === 5) + Qe(k) || x.push(k.stateNode); else - for (H = H.child; H !== null; ) - y.push(H), H = H.sibling; + for (k = k.child; k !== null; ) + y.push(k), k = k.sibling; } return x; } - var xa = Math.ceil, ns = d.ReactCurrentDispatcher, wf = d.ReactCurrentOwner, Sa = d.ReactCurrentBatchConfig, Kr = 0, Ra = null, Ba = null, ci = 0, Hl = 0, od = us(0), ws = 0, Xd = null, zc = 0, cc = 0, qd = 0, ld = null, il = null, Fm = 0, Ef = 1 / 0; - function Qd() { - Ef = mi() + 500; + var xa = Math.ceil, ns = d.ReactCurrentDispatcher, Mf = d.ReactCurrentOwner, _a = d.ReactCurrentBatchConfig, Qr = 0, Ra = null, Ba = null, li = 0, Gl = 0, ud = cs(0), Es = 0, qd = null, Nc = 0, cc = 0, Qd = 0, cd = null, al = null, Bm = 0, Tf = 1 / 0; + function Zd() { + Tf = hi() + 500; } - var Mf = !1, Vl = null, Gl = null, ud = !1, Wl = null, Eh = 0, fc = 0, hr = null, Yr = -1, fr = 0; - function fi() { - return (Kr & 6) !== 0 ? mi() : Yr !== -1 ? Yr : Yr = mi(); + var Cf = !1, Wl = null, jl = null, fd = !1, Yl = null, Mh = 0, fc = 0, hr = null, Gr = -1, fr = 0; + function ui() { + return (Qr & 6) !== 0 ? hi() : Gr !== -1 ? Gr : Gr = hi(); } - function Ns(y) { - return (y.mode & 1) === 0 ? 1 : (Kr & 2) !== 0 && ci !== 0 ? ci & -ci : Qf.transition !== null ? (fr === 0 && (y = Dl, Dl <<= 1, (Dl & 4194240) === 0 && (Dl = 64), fr = y), fr) : (y = Cr, y !== 0 ? y : bt()); + function Fs(y) { + return (y.mode & 1) === 0 ? 1 : (Qr & 2) !== 0 && li !== 0 ? li & -li : Jf.transition !== null ? (fr === 0 && (y = Pl, Pl <<= 1, (Pl & 4194240) === 0 && (Pl = 64), fr = y), fr) : (y = Cr, y !== 0 ? y : xt()); } - function jl(y, x, L) { + function Xl(y, x, L) { if (50 < fc) throw fc = 0, hr = null, Error(l(185)); - var H = Nc(y, x); - return H === null ? null : (xr(H, x, L), ((Kr & 2) === 0 || H !== Ra) && (H === Ra && ((Kr & 2) === 0 && (cc |= x), ws === 4 && lr(H, ci)), Sr(H, L), x === 1 && Kr === 0 && (y.mode & 1) === 0 && (Qd(), _c && ko())), H); + var k = Fc(y, x); + return k === null ? null : (xr(k, x, L), ((Qr & 2) === 0 || k !== Ra) && (k === Ra && ((Qr & 2) === 0 && (cc |= x), Es === 4 && lr(k, li)), _r(k, L), x === 1 && Qr === 0 && (y.mode & 1) === 0 && (Zd(), wc && ko())), k); } - function Nc(y, x) { + function Fc(y, x) { y.lanes |= x; var L = y.alternate; for (L !== null && (L.lanes |= x), L = y, y = y.return; y !== null; ) y.childLanes |= x, L = y.alternate, L !== null && (L.childLanes |= x), L = y, y = y.return; return L.tag === 3 ? L.stateNode : null; } - function Sr(y, x) { + function _r(y, x) { var L = y.callbackNode; Ci(y, x); - var H = jf(y, y === Ra ? ci : 0); - if (H === 0) + var k = Xf(y, y === Ra ? li : 0); + if (k === 0) L !== null && Ka(L), y.callbackNode = null, y.callbackPriority = 0; - else if (x = H & -H, y.callbackPriority !== x) { + else if (x = k & -k, y.callbackPriority !== x) { if (L != null && Ka(L), x === 1) - y.tag === 0 ? qf(Fc.bind(null, y)) : Xf(Fc.bind(null, y)), ft ? Vt(function() { - Kr === 0 && ko(); + y.tag === 0 ? Zf(kc.bind(null, y)) : Qf(kc.bind(null, y)), yt ? Nt(function() { + Qr === 0 && ko(); }) : yo(Qa, ko), L = null; else { - switch (fl(H)) { + switch (dl(k)) { case 1: L = Qa; break; @@ -23282,114 +23282,114 @@ Error generating stack: ` + ee.message + ` L = Sc; break; case 16: - L = dl; + L = hl; break; case 536870912: - L = df; + L = pf; break; default: - L = dl; + L = hl; } - L = pu(L, Eo.bind(null, y)); + L = vu(L, Eo.bind(null, y)); } y.callbackPriority = x, y.callbackNode = L; } } function Eo(y, x) { - if (Yr = -1, fr = 0, (Kr & 6) !== 0) + if (Gr = -1, fr = 0, (Qr & 6) !== 0) throw Error(l(327)); var L = y.callbackNode; - if (kc() && y.callbackNode !== L) + if (Ic() && y.callbackNode !== L) return null; - var H = jf(y, y === Ra ? ci : 0); - if (H === 0) + var k = Xf(y, y === Ra ? li : 0); + if (k === 0) return null; - if ((H & 30) !== 0 || (H & y.expiredLanes) !== 0 || x) - x = ia(y, H); + if ((k & 30) !== 0 || (k & y.expiredLanes) !== 0 || x) + x = aa(y, k); else { - x = H; - var q = Kr; - Kr |= 2; - var ee = Cf(); - (Ra !== y || ci !== x) && (Qd(), Di(y, x)); + x = k; + var X = Qr; + Qr |= 2; + var $ = Af(); + (Ra !== y || li !== x) && (Zd(), Di(y, x)); do try { - Af(); + Lf(); break; - } catch (Ke) { - Tf(y, Ke); + } catch ($e) { + Rf(y, $e); } while (1); - xo(), ns.current = ee, Kr = q, Ba !== null ? x = 0 : (Ra = null, ci = 0, x = ws); + xo(), ns.current = $, Qr = X, Ba !== null ? x = 0 : (Ra = null, li = 0, x = Es); } if (x !== 0) { - if (x === 2 && (q = cs(y), q !== 0 && (H = q, x = Ai(y, q))), x === 1) - throw L = Xd, Di(y, 0), lr(y, H), Sr(y, mi()), L; + if (x === 2 && (X = fs(y), X !== 0 && (k = X, x = Ai(y, X))), x === 1) + throw L = qd, Di(y, 0), lr(y, k), _r(y, hi()), L; if (x === 6) - lr(y, H); + lr(y, k); else { - if (q = y.current.alternate, (H & 30) === 0 && !vi(q) && (x = ia(y, H), x === 2 && (ee = cs(y), ee !== 0 && (H = ee, x = Ai(y, ee))), x === 1)) - throw L = Xd, Di(y, 0), lr(y, H), Sr(y, mi()), L; - switch (y.finishedWork = q, y.finishedLanes = H, x) { + if (X = y.current.alternate, (k & 30) === 0 && !pi(X) && (x = aa(y, k), x === 2 && ($ = fs(y), $ !== 0 && (k = $, x = Ai(y, $))), x === 1)) + throw L = qd, Di(y, 0), lr(y, k), _r(y, hi()), L; + switch (y.finishedWork = X, y.finishedLanes = k, x) { case 0: case 1: throw Error(l(345)); case 2: - Yl(y, il); + ql(y, al); break; case 3: - if (lr(y, H), (H & 130023424) === H && (x = Fm + 500 - mi(), 10 < x)) { - if (jf(y, 0) !== 0) + if (lr(y, k), (k & 130023424) === k && (x = Bm + 500 - hi(), 10 < x)) { + if (Xf(y, 0) !== 0) break; - if (q = y.suspendedLanes, (q & H) !== H) { - fi(), y.pingedLanes |= y.suspendedLanes & q; + if (X = y.suspendedLanes, (X & k) !== k) { + ui(), y.pingedLanes |= y.suspendedLanes & X; break; } - y.timeoutHandle = ot(Yl.bind(null, y, il), x); + y.timeoutHandle = ct(ql.bind(null, y, al), x); break; } - Yl(y, il); + ql(y, al); break; case 4: - if (lr(y, H), (H & 4194240) === H) + if (lr(y, k), (k & 4194240) === k) break; - for (x = y.eventTimes, q = -1; 0 < H; ) { - var Ae = 31 - Ls(H); - ee = 1 << Ae, Ae = x[Ae], Ae > q && (q = Ae), H &= ~ee; + for (x = y.eventTimes, X = -1; 0 < k; ) { + var Ae = 31 - Ps(k); + $ = 1 << Ae, Ae = x[Ae], Ae > X && (X = Ae), k &= ~$; } - if (H = q, H = mi() - H, H = (120 > H ? 120 : 480 > H ? 480 : 1080 > H ? 1080 : 1920 > H ? 1920 : 3e3 > H ? 3e3 : 4320 > H ? 4320 : 1960 * xa(H / 1960)) - H, 10 < H) { - y.timeoutHandle = ot(Yl.bind(null, y, il), H); + if (k = X, k = hi() - k, k = (120 > k ? 120 : 480 > k ? 480 : 1080 > k ? 1080 : 1920 > k ? 1920 : 3e3 > k ? 3e3 : 4320 > k ? 4320 : 1960 * xa(k / 1960)) - k, 10 < k) { + y.timeoutHandle = ct(ql.bind(null, y, al), k); break; } - Yl(y, il); + ql(y, al); break; case 5: - Yl(y, il); + ql(y, al); break; default: throw Error(l(329)); } } } - return Sr(y, mi()), y.callbackNode === L ? Eo.bind(null, y) : null; + return _r(y, hi()), y.callbackNode === L ? Eo.bind(null, y) : null; } function Ai(y, x) { - var L = ld; - return y.current.memoizedState.isDehydrated && (Di(y, x).flags |= 256), y = ia(y, x), y !== 2 && (x = il, il = L, x !== null && Ht(x)), y; + var L = cd; + return y.current.memoizedState.isDehydrated && (Di(y, x).flags |= 256), y = aa(y, x), y !== 2 && (x = al, al = L, x !== null && Ht(x)), y; } function Ht(y) { - il === null ? il = y : il.push.apply(il, y); + al === null ? al = y : al.push.apply(al, y); } - function vi(y) { + function pi(y) { for (var x = y; ; ) { if (x.flags & 16384) { var L = x.updateQueue; if (L !== null && (L = L.stores, L !== null)) - for (var H = 0; H < L.length; H++) { - var q = L[H], ee = q.getSnapshot; - q = q.value; + for (var k = 0; k < L.length; k++) { + var X = L[k], $ = X.getSnapshot; + X = X.value; try { - if (!Fo(ee(), q)) + if (!Fo($(), X)) return !1; } catch { return !1; @@ -23412,71 +23412,71 @@ Error generating stack: ` + ee.message + ` return !0; } function lr(y, x) { - for (x &= ~qd, x &= ~cc, y.suspendedLanes |= x, y.pingedLanes &= ~x, y = y.expirationTimes; 0 < x; ) { - var L = 31 - Ls(x), H = 1 << L; - y[L] = -1, x &= ~H; + for (x &= ~Qd, x &= ~cc, y.suspendedLanes |= x, y.pingedLanes &= ~x, y = y.expirationTimes; 0 < x; ) { + var L = 31 - Ps(x), k = 1 << L; + y[L] = -1, x &= ~k; } } - function Fc(y) { - if ((Kr & 6) !== 0) + function kc(y) { + if ((Qr & 6) !== 0) throw Error(l(327)); - kc(); - var x = jf(y, 0); + Ic(); + var x = Xf(y, 0); if ((x & 1) === 0) - return Sr(y, mi()), null; - var L = ia(y, x); + return _r(y, hi()), null; + var L = aa(y, x); if (y.tag !== 0 && L === 2) { - var H = cs(y); - H !== 0 && (x = H, L = Ai(y, H)); + var k = fs(y); + k !== 0 && (x = k, L = Ai(y, k)); } if (L === 1) - throw L = Xd, Di(y, 0), lr(y, x), Sr(y, mi()), L; + throw L = qd, Di(y, 0), lr(y, x), _r(y, hi()), L; if (L === 6) throw Error(l(345)); - return y.finishedWork = y.current.alternate, y.finishedLanes = x, Yl(y, il), Sr(y, mi()), null; + return y.finishedWork = y.current.alternate, y.finishedLanes = x, ql(y, al), _r(y, hi()), null; } function Ha(y) { - Wl !== null && Wl.tag === 0 && (Kr & 6) === 0 && kc(); - var x = Kr; - Kr |= 1; - var L = Sa.transition, H = Cr; + Yl !== null && Yl.tag === 0 && (Qr & 6) === 0 && Ic(); + var x = Qr; + Qr |= 1; + var L = _a.transition, k = Cr; try { - if (Sa.transition = null, Cr = 1, y) + if (_a.transition = null, Cr = 1, y) return y(); } finally { - Cr = H, Sa.transition = L, Kr = x, (Kr & 6) === 0 && ko(); + Cr = k, _a.transition = L, Qr = x, (Qr & 6) === 0 && ko(); } } function Yo() { - Hl = od.current, mr(od); + Gl = ud.current, mr(ud); } function Di(y, x) { y.finishedWork = null, y.finishedLanes = 0; var L = y.timeoutHandle; - if (L !== _t && (y.timeoutHandle = _t, rt(L)), Ba !== null) + if (L !== Tt && (y.timeoutHandle = Tt, tt(L)), Ba !== null) for (L = Ba.return; L !== null; ) { - var H = L; - switch (Oi(H), H.tag) { + var k = L; + switch (Oi(k), k.tag) { case 1: - H = H.type.childContextTypes, H != null && Rl(); + k = k.type.childContextTypes, k != null && Dl(); break; case 3: - xh(), mr(Ti), mr(_i), Mn(); + _h(), mr(Ti), mr(Si), Mn(); break; case 5: - Io(H); + Io(k); break; case 4: - xh(); + _h(); break; case 13: - mr(Ye); + mr(Xe); break; case 19: - mr(Ye); + mr(Xe); break; case 10: - Pl(H.type._context); + Ul(k.type._context); break; case 22: case 23: @@ -23484,47 +23484,47 @@ Error generating stack: ` + ee.message + ` } L = L.return; } - if (Ra = y, Ba = y = Xo(y.current, null), ci = Hl = x, ws = 0, Xd = null, qd = cc = zc = 0, il = ld = null, xs !== null) { - for (x = 0; x < xs.length; x++) - if (L = xs[x], H = L.interleaved, H !== null) { + if (Ra = y, Ba = y = Xo(y.current, null), li = Gl = x, Es = 0, qd = null, Qd = cc = Nc = 0, al = cd = null, _s !== null) { + for (x = 0; x < _s.length; x++) + if (L = _s[x], k = L.interleaved, k !== null) { L.interleaved = null; - var q = H.next, ee = L.pending; - if (ee !== null) { - var Ae = ee.next; - ee.next = q, H.next = Ae; + var X = k.next, $ = L.pending; + if ($ !== null) { + var Ae = $.next; + $.next = X, k.next = Ae; } - L.pending = H; + L.pending = k; } - xs = null; + _s = null; } return y; } - function Tf(y, x) { + function Rf(y, x) { do { var L = Ba; try { - if (xo(), Kn.current = xf, Bo) { - for (var H = $n.memoizedState; H !== null; ) { - var q = H.queue; - q !== null && (q.pending = null), H = H.next; + if (xo(), $n.current = Sf, Bo) { + for (var k = er.memoizedState; k !== null; ) { + var X = k.queue; + X !== null && (X.pending = null), k = k.next; } Bo = !1; } - if (Ta = 0, ra = Ui = $n = null, fs = !1, Hd = 0, wf.current = null, L === null || L.return === null) { - ws = 1, Xd = x, Ba = null; + if (Ta = 0, ia = Ui = er = null, ds = !1, Vd = 0, Mf.current = null, L === null || L.return === null) { + Es = 1, qd = x, Ba = null; break; } e: { - var ee = y, Ae = L.return, Ke = L, kt = x; - if (x = ci, Ke.flags |= 32768, kt !== null && typeof kt == "object" && typeof kt.then == "function") { - var cn = kt, bn = Ke, wr = bn.tag; - if ((bn.mode & 1) === 0 && (wr === 0 || wr === 11 || wr === 15)) { - var ur = bn.alternate; - ur ? (bn.updateQueue = ur.updateQueue, bn.memoizedState = ur.memoizedState, bn.lanes = ur.lanes) : (bn.updateQueue = null, bn.memoizedState = null); + var $ = y, Ae = L.return, $e = L, kt = x; + if (x = li, $e.flags |= 32768, kt !== null && typeof kt == "object" && typeof kt.then == "function") { + var hn = kt, wn = $e, br = wn.tag; + if ((wn.mode & 1) === 0 && (br === 0 || br === 11 || br === 15)) { + var ur = wn.alternate; + ur ? (wn.updateQueue = ur.updateQueue, wn.memoizedState = ur.memoizedState, wn.lanes = ur.lanes) : (wn.updateQueue = null, wn.memoizedState = null); } - var _a = Dc(Ae); - if (_a !== null) { - _a.flags &= -257, Lc(_a, Ae, Ke, ee, x), _a.mode & 1 && zl(ee, cn, x), x = _a, kt = cn; + var Sa = Lc(Ae); + if (Sa !== null) { + Sa.flags &= -257, Pc(Sa, Ae, $e, $, x), Sa.mode & 1 && Fl($, hn, x), x = Sa, kt = hn; var Tn = x.updateQueue; if (Tn === null) { var Li = /* @__PURE__ */ new Set(); @@ -23534,101 +23534,101 @@ Error generating stack: ` + ee.message + ` break e; } else { if ((x & 1) === 0) { - zl(ee, cn, x), Rf(); + Fl($, hn, x), Df(); break e; } kt = Error(l(426)); } - } else if (ca && Ke.mode & 1) { - var ms = Dc(Ae); - if (ms !== null) { - (ms.flags & 65536) === 0 && (ms.flags |= 256), Lc(ms, Ae, Ke, ee, x), Id(kt); + } else if (ca && $e.mode & 1) { + var vs = Lc(Ae); + if (vs !== null) { + (vs.flags & 65536) === 0 && (vs.flags |= 256), Pc(vs, Ae, $e, $, x), Bd(kt); break e; } } - ee = kt, ws !== 4 && (ws = 2), ld === null ? ld = [ee] : ld.push(ee), kt = Sf(kt, Ke), Ke = Ae; + $ = kt, Es !== 4 && (Es = 2), cd === null ? cd = [$] : cd.push($), kt = wf(kt, $e), $e = Ae; do { - switch (Ke.tag) { + switch ($e.tag) { case 3: - Ke.flags |= 65536, x &= -x, Ke.lanes |= x; - var dt = id(Ke, kt, x); - qi(Ke, dt); + $e.flags |= 65536, x &= -x, $e.lanes |= x; + var pt = sd($e, kt, x); + qi($e, pt); break e; case 1: - ee = kt; - var Qe = Ke.type, At = Ke.stateNode; - if ((Ke.flags & 128) === 0 && (typeof Qe.getDerivedStateFromError == "function" || At !== null && typeof At.componentDidCatch == "function" && (Gl === null || !Gl.has(At)))) { - Ke.flags |= 65536, x &= -x, Ke.lanes |= x; - var qt = Ac(Ke, ee, x); - qi(Ke, qt); + $ = kt; + var Ze = $e.type, Lt = $e.stateNode; + if (($e.flags & 128) === 0 && (typeof Ze.getDerivedStateFromError == "function" || Lt !== null && typeof Lt.componentDidCatch == "function" && (jl === null || !jl.has(Lt)))) { + $e.flags |= 65536, x &= -x, $e.lanes |= x; + var Qt = Dc($e, $, x); + qi($e, Qt); break e; } } - Ke = Ke.return; - } while (Ke !== null); + $e = $e.return; + } while ($e !== null); } - eo(L); - } catch (Wn) { - x = Wn, Ba === L && L !== null && (Ba = L = L.return); + to(L); + } catch (jn) { + x = jn, Ba === L && L !== null && (Ba = L = L.return); continue; } break; } while (1); } - function Cf() { + function Af() { var y = ns.current; - return ns.current = xf, y === null ? xf : y; + return ns.current = Sf, y === null ? Sf : y; } - function Rf() { - (ws === 0 || ws === 3 || ws === 2) && (ws = 4), Ra === null || (zc & 268435455) === 0 && (cc & 268435455) === 0 || lr(Ra, ci); + function Df() { + (Es === 0 || Es === 3 || Es === 2) && (Es = 4), Ra === null || (Nc & 268435455) === 0 && (cc & 268435455) === 0 || lr(Ra, li); } - function ia(y, x) { - var L = Kr; - Kr |= 2; - var H = Cf(); - Ra === y && ci === x || Di(y, x); + function aa(y, x) { + var L = Qr; + Qr |= 2; + var k = Af(); + Ra === y && li === x || Di(y, x); do try { - Fs(); + ks(); break; - } catch (q) { - Tf(y, q); + } catch (X) { + Rf(y, X); } while (1); - if (xo(), Kr = L, ns.current = H, Ba !== null) + if (xo(), Qr = L, ns.current = k, Ba !== null) throw Error(l(261)); - return Ra = null, ci = 0, ws; + return Ra = null, li = 0, Es; } - function Fs() { + function ks() { for (; Ba !== null; ) - Zd(Ba); + Jd(Ba); } - function Af() { + function Lf() { for (; Ba !== null && !Xi(); ) - Zd(Ba); + Jd(Ba); } - function Zd(y) { - var x = Df(y.alternate, y, Hl); - y.memoizedProps = y.pendingProps, x === null ? eo(y) : Ba = x, wf.current = null; + function Jd(y) { + var x = Pf(y.alternate, y, Gl); + y.memoizedProps = y.pendingProps, x === null ? to(y) : Ba = x, Mf.current = null; } - function eo(y) { + function to(y) { var x = y; do { var L = x.alternate; if (y = x.return, (x.flags & 32768) === 0) { - if (L = vr(L, x, Hl), L !== null) { + if (L = vr(L, x, Gl), L !== null) { Ba = L; return; } } else { - if (L = zr(L, x), L !== null) { + if (L = Ur(L, x), L !== null) { L.flags &= 32767, Ba = L; return; } if (y !== null) y.flags |= 32768, y.subtreeFlags = 0, y.deletions = null; else { - ws = 6, Ba = null; + Es = 6, Ba = null; return; } } @@ -23638,407 +23638,407 @@ Error generating stack: ` + ee.message + ` } Ba = x = y; } while (x !== null); - ws === 0 && (ws = 5); + Es === 0 && (Es = 5); } - function Yl(y, x) { - var L = Cr, H = Sa.transition; + function ql(y, x) { + var L = Cr, k = _a.transition; try { - Sa.transition = null, Cr = 1, tp(y, x, L); + _a.transition = null, Cr = 1, ip(y, x, L); } finally { - Sa.transition = H, Cr = L; + _a.transition = k, Cr = L; } return null; } - function tp(y, x, L) { + function ip(y, x, L) { do - kc(); - while (Wl !== null); - if ((Kr & 6) !== 0) + Ic(); + while (Yl !== null); + if ((Qr & 6) !== 0) throw Error(l(327)); - var H = y.finishedWork, q = y.finishedLanes; - if (H === null) + var k = y.finishedWork, X = y.finishedLanes; + if (k === null) return null; - if (y.finishedWork = null, y.finishedLanes = 0, H === y.current) + if (y.finishedWork = null, y.finishedLanes = 0, k === y.current) throw Error(l(177)); y.callbackNode = null, y.callbackPriority = 0; - var ee = H.lanes | H.childLanes; - if (Eu(y, ee), y === Ra && (Ba = Ra = null, ci = 0), (H.subtreeFlags & 2064) === 0 && (H.flags & 2064) === 0 || ud || (ud = !0, pu(dl, function() { - return kc(), null; - })), ee = (H.flags & 15990) !== 0, (H.subtreeFlags & 15990) !== 0 || ee) { - ee = Sa.transition, Sa.transition = null; + var $ = k.lanes | k.childLanes; + if (Tu(y, $), y === Ra && (Ba = Ra = null, li = 0), (k.subtreeFlags & 2064) === 0 && (k.flags & 2064) === 0 || fd || (fd = !0, vu(hl, function() { + return Ic(), null; + })), $ = (k.flags & 15990) !== 0, (k.subtreeFlags & 15990) !== 0 || $) { + $ = _a.transition, _a.transition = null; var Ae = Cr; Cr = 1; - var Ke = Kr; - Kr |= 4, wf.current = null, wh(y, H), Hp(y, H), ce(y.containerInfo), y.current = H, du(H), Rm(), Kr = Ke, Cr = Ae, Sa.transition = ee; + var $e = Qr; + Qr |= 4, Mf.current = null, Eh(y, k), Wp(y, k), he(y.containerInfo), y.current = k, pu(k), Lm(), Qr = $e, Cr = Ae, _a.transition = $; } else - y.current = H; - if (ud && (ud = !1, Wl = y, Eh = q), ee = y.pendingLanes, ee === 0 && (Gl = null), Ii(H.stateNode), Sr(y, mi()), x !== null) - for (L = y.onRecoverableError, H = 0; H < x.length; H++) - L(x[H]); - if (Mf) - throw Mf = !1, y = Vl, Vl = null, y; - return (Eh & 1) !== 0 && y.tag !== 0 && kc(), ee = y.pendingLanes, (ee & 1) !== 0 ? y === hr ? fc++ : (fc = 0, hr = y) : fc = 0, ko(), null; - } - function kc() { - if (Wl !== null) { - var y = fl(Eh), x = Sa.transition, L = Cr; + y.current = k; + if (fd && (fd = !1, Yl = y, Mh = X), $ = y.pendingLanes, $ === 0 && (jl = null), Hi(k.stateNode), _r(y, hi()), x !== null) + for (L = y.onRecoverableError, k = 0; k < x.length; k++) + L(x[k]); + if (Cf) + throw Cf = !1, y = Wl, Wl = null, y; + return (Mh & 1) !== 0 && y.tag !== 0 && Ic(), $ = y.pendingLanes, ($ & 1) !== 0 ? y === hr ? fc++ : (fc = 0, hr = y) : fc = 0, ko(), null; + } + function Ic() { + if (Yl !== null) { + var y = dl(Mh), x = _a.transition, L = Cr; try { - if (Sa.transition = null, Cr = 16 > y ? 16 : y, Wl === null) - var H = !1; + if (_a.transition = null, Cr = 16 > y ? 16 : y, Yl === null) + var k = !1; else { - if (y = Wl, Wl = null, Eh = 0, (Kr & 6) !== 0) + if (y = Yl, Yl = null, Mh = 0, (Qr & 6) !== 0) throw Error(l(331)); - var q = Kr; - for (Kr |= 4, pn = y.current; pn !== null; ) { - var ee = pn, Ae = ee.child; - if ((pn.flags & 16) !== 0) { - var Ke = ee.deletions; - if (Ke !== null) { - for (var kt = 0; kt < Ke.length; kt++) { - var cn = Ke[kt]; - for (pn = cn; pn !== null; ) { - var bn = pn; - switch (bn.tag) { + var X = Qr; + for (Qr |= 4, vn = y.current; vn !== null; ) { + var $ = vn, Ae = $.child; + if ((vn.flags & 16) !== 0) { + var $e = $.deletions; + if ($e !== null) { + for (var kt = 0; kt < $e.length; kt++) { + var hn = $e[kt]; + for (vn = hn; vn !== null; ) { + var wn = vn; + switch (wn.tag) { case 0: case 11: case 15: - Ou(8, bn, ee); + zu(8, wn, $); } - var wr = bn.child; - if (wr !== null) - wr.return = bn, pn = wr; + var br = wn.child; + if (br !== null) + br.return = wn, vn = br; else - for (; pn !== null; ) { - bn = pn; - var ur = bn.sibling, _a = bn.return; - if (Us(bn), bn === cn) { - pn = null; + for (; vn !== null; ) { + wn = vn; + var ur = wn.sibling, Sa = wn.return; + if (zs(wn), wn === hn) { + vn = null; break; } if (ur !== null) { - ur.return = _a, pn = ur; + ur.return = Sa, vn = ur; break; } - pn = _a; + vn = Sa; } } } - var Tn = ee.alternate; + var Tn = $.alternate; if (Tn !== null) { var Li = Tn.child; if (Li !== null) { Tn.child = null; do { - var ms = Li.sibling; - Li.sibling = null, Li = ms; + var vs = Li.sibling; + Li.sibling = null, Li = vs; } while (Li !== null); } } - pn = ee; + vn = $; } } - if ((ee.subtreeFlags & 2064) !== 0 && Ae !== null) - Ae.return = ee, pn = Ae; + if (($.subtreeFlags & 2064) !== 0 && Ae !== null) + Ae.return = $, vn = Ae; else e: - for (; pn !== null; ) { - if (ee = pn, (ee.flags & 2048) !== 0) - switch (ee.tag) { + for (; vn !== null; ) { + if ($ = vn, ($.flags & 2048) !== 0) + switch ($.tag) { case 0: case 11: case 15: - Ou(9, ee, ee.return); + zu(9, $, $.return); } - var dt = ee.sibling; - if (dt !== null) { - dt.return = ee.return, pn = dt; + var pt = $.sibling; + if (pt !== null) { + pt.return = $.return, vn = pt; break e; } - pn = ee.return; + vn = $.return; } } - var Qe = y.current; - for (pn = Qe; pn !== null; ) { - Ae = pn; - var At = Ae.child; - if ((Ae.subtreeFlags & 2064) !== 0 && At !== null) - At.return = Ae, pn = At; + var Ze = y.current; + for (vn = Ze; vn !== null; ) { + Ae = vn; + var Lt = Ae.child; + if ((Ae.subtreeFlags & 2064) !== 0 && Lt !== null) + Lt.return = Ae, vn = Lt; else e: - for (Ae = Qe; pn !== null; ) { - if (Ke = pn, (Ke.flags & 2048) !== 0) + for (Ae = Ze; vn !== null; ) { + if ($e = vn, ($e.flags & 2048) !== 0) try { - switch (Ke.tag) { + switch ($e.tag) { case 0: case 11: case 15: - bs(9, Ke); + bs(9, $e); } - } catch (Wn) { - wi(Ke, Ke.return, Wn); + } catch (jn) { + bi($e, $e.return, jn); } - if (Ke === Ae) { - pn = null; + if ($e === Ae) { + vn = null; break e; } - var qt = Ke.sibling; - if (qt !== null) { - qt.return = Ke.return, pn = qt; + var Qt = $e.sibling; + if (Qt !== null) { + Qt.return = $e.return, vn = Qt; break e; } - pn = Ke.return; + vn = $e.return; } } - if (Kr = q, ko(), su && typeof su.onPostCommitFiberRoot == "function") + if (Qr = X, ko(), lu && typeof lu.onPostCommitFiberRoot == "function") try { - su.onPostCommitFiberRoot(hf, y); + lu.onPostCommitFiberRoot(mf, y); } catch { } - H = !0; + k = !0; } - return H; + return k; } finally { - Cr = L, Sa.transition = x; + Cr = L, _a.transition = x; } } return !1; } - function Es(y, x, L) { - x = Sf(L, x), x = id(y, x, 1), Ku(y, x), x = fi(), y = Nc(y, 1), y !== null && (xr(y, 1, x), Sr(y, x)); + function Ms(y, x, L) { + x = wf(L, x), x = sd(y, x, 1), Ku(y, x), x = ui(), y = Fc(y, 1), y !== null && (xr(y, 1, x), _r(y, x)); } - function wi(y, x, L) { + function bi(y, x, L) { if (y.tag === 3) - Es(y, y, L); + Ms(y, y, L); else for (; x !== null; ) { if (x.tag === 3) { - Es(x, y, L); + Ms(x, y, L); break; } else if (x.tag === 1) { - var H = x.stateNode; - if (typeof x.type.getDerivedStateFromError == "function" || typeof H.componentDidCatch == "function" && (Gl === null || !Gl.has(H))) { - y = Sf(L, y), y = Ac(x, y, 1), Ku(x, y), y = fi(), x = Nc(x, 1), x !== null && (xr(x, 1, y), Sr(x, y)); + var k = x.stateNode; + if (typeof x.type.getDerivedStateFromError == "function" || typeof k.componentDidCatch == "function" && (jl === null || !jl.has(k))) { + y = wf(L, y), y = Dc(x, y, 1), Ku(x, y), y = ui(), x = Fc(x, 1), x !== null && (xr(x, 1, y), _r(x, y)); break; } } x = x.return; } } - function to(y, x, L) { - var H = y.pingCache; - H !== null && H.delete(x), x = fi(), y.pingedLanes |= y.suspendedLanes & L, Ra === y && (ci & L) === L && (ws === 4 || ws === 3 && (ci & 130023424) === ci && 500 > mi() - Fm ? Di(y, 0) : qd |= L), Sr(y, x); + function no(y, x, L) { + var k = y.pingCache; + k !== null && k.delete(x), x = ui(), y.pingedLanes |= y.suspendedLanes & L, Ra === y && (li & L) === L && (Es === 4 || Es === 3 && (li & 130023424) === li && 500 > hi() - Bm ? Di(y, 0) : Qd |= L), _r(y, x); } - function Xl(y, x) { - x === 0 && ((y.mode & 1) === 0 ? x = 1 : (x = ri, ri <<= 1, (ri & 130023424) === 0 && (ri = 4194304))); - var L = fi(); - y = Nc(y, x), y !== null && (xr(y, x, L), Sr(y, L)); + function Ql(y, x) { + x === 0 && ((y.mode & 1) === 0 ? x = 1 : (x = ei, ei <<= 1, (ei & 130023424) === 0 && (ei = 4194304))); + var L = ui(); + y = Fc(y, x), y !== null && (xr(y, x, L), _r(y, L)); } - function Ic(y) { + function Bc(y) { var x = y.memoizedState, L = 0; - x !== null && (L = x.retryLane), Xl(y, L); + x !== null && (L = x.retryLane), Ql(y, L); } - function hu(y, x) { + function mu(y, x) { var L = 0; switch (y.tag) { case 13: - var H = y.stateNode, q = y.memoizedState; - q !== null && (L = q.retryLane); + var k = y.stateNode, X = y.memoizedState; + X !== null && (L = X.retryLane); break; case 19: - H = y.stateNode; + k = y.stateNode; break; default: throw Error(l(314)); } - H !== null && H.delete(x), Xl(y, L); + k !== null && k.delete(x), Ql(y, L); } - var Df; - Df = function(y, x, L) { + var Pf; + Pf = function(y, x, L) { if (y !== null) if (y.memoizedProps !== x.pendingProps || Ti.current) - oi = !0; + si = !0; else { if ((y.lanes & L) === 0 && (x.flags & 128) === 0) - return oi = !1, uc(y, x, L); - oi = (y.flags & 131072) !== 0; + return si = !1, uc(y, x, L); + si = (y.flags & 131072) !== 0; } else - oi = !1, ca && (x.flags & 1048576) !== 0 && Ol(x, zp, x.index); + si = !1, ca && (x.flags & 1048576) !== 0 && zl(x, kp, x.index); switch (x.lanes = 0, x.tag) { case 2: - var H = x.type; + var k = x.type; y !== null && (y.alternate = null, x.alternate = null, x.flags |= 2), y = x.pendingProps; - var q = zo(x, _i.current); - qs(x, L), q = xi(null, x, H, y, q, L); - var ee = Ec(); - return x.flags |= 1, typeof q == "object" && q !== null && typeof q.render == "function" && q.$$typeof === void 0 ? (x.tag = 1, x.memoizedState = null, x.updateQueue = null, Pa(H) ? (ee = !0, Al(x)) : ee = !1, x.memoizedState = q.state !== null && q.state !== void 0 ? q.state : null, Qs(x), q.updater = Am, x.stateNode = q, q._reactInternals = x, vh(x, H, y, L), x = Ia(null, x, H, !0, ee, L)) : (x.tag = 0, ca && ee && ec(x), Gn(null, x, q, L), x = x.child), x; + var X = zo(x, Si.current); + Qs(x, L), X = _i(null, x, k, y, X, L); + var $ = Mc(); + return x.flags |= 1, typeof X == "object" && X !== null && typeof X.render == "function" && X.$$typeof === void 0 ? (x.tag = 1, x.memoizedState = null, x.updateQueue = null, Pa(k) ? ($ = !0, Ll(x)) : $ = !1, x.memoizedState = X.state !== null && X.state !== void 0 ? X.state : null, Zs(x), X.updater = Pm, x.stateNode = X, X._reactInternals = x, gh(x, k, y, L), x = Ia(null, x, k, !0, $, L)) : (x.tag = 0, ca && $ && ec(x), Wn(null, x, X, L), x = x.child), x; case 16: - H = x.elementType; + k = x.elementType; e: { - switch (y !== null && (y.alternate = null, x.alternate = null, x.flags |= 2), y = x.pendingProps, q = H._init, H = q(H._payload), x.type = H, q = x.tag = cd(H), y = Oa(H, y), q) { + switch (y !== null && (y.alternate = null, x.alternate = null, x.flags |= 2), y = x.pendingProps, X = k._init, k = X(k._payload), x.type = k, X = x.tag = dd(k), y = Oa(k, y), X) { case 0: - x = es(null, x, H, y, L); + x = es(null, x, k, y, L); break e; case 1: - x = Nl( + x = kl( null, x, - H, + k, y, L ); break e; case 11: - x = bi(null, x, H, y, L); + x = wi(null, x, k, y, L); break e; case 14: - x = zi(null, x, H, Oa(H.type, y), L); + x = zi(null, x, k, Oa(k.type, y), L); break e; } - throw Error(l(306, H, "")); + throw Error(l(306, k, "")); } return x; case 0: - return H = x.type, q = x.pendingProps, q = x.elementType === H ? q : Oa(H, q), es(y, x, H, q, L); + return k = x.type, X = x.pendingProps, X = x.elementType === k ? X : Oa(k, X), es(y, x, k, X, L); case 1: - return H = x.type, q = x.pendingProps, q = x.elementType === H ? q : Oa(H, q), Nl(y, x, H, q, L); + return k = x.type, X = x.pendingProps, X = x.elementType === k ? X : Oa(k, X), kl(y, x, k, X, L); case 3: e: { - if (Fl(x), y === null) + if (Il(x), y === null) throw Error(l(387)); - H = x.pendingProps, ee = x.memoizedState, q = ee.element, Zf(y, x), Cu(x, H, null, L); + k = x.pendingProps, $ = x.memoizedState, X = $.element, Kf(y, x), Au(x, k, null, L); var Ae = x.memoizedState; - if (H = Ae.element, et && ee.isDehydrated) - if (ee = { - element: H, + if (k = Ae.element, qe && $.isDehydrated) + if ($ = { + element: k, isDehydrated: !1, cache: Ae.cache, transitions: Ae.transitions - }, x.updateQueue.baseState = ee, x.memoizedState = ee, x.flags & 256) { - q = Error(l(423)), x = _f(y, x, H, L, q); + }, x.updateQueue.baseState = $, x.memoizedState = $, x.flags & 256) { + X = Error(l(423)), x = bf(y, x, k, L, X); break e; - } else if (H !== q) { - q = Error(l(424)), x = _f(y, x, H, L, q); + } else if (k !== X) { + X = Error(l(424)), x = bf(y, x, k, L, X); break e; } else - for (et && (Ma = Oe(x.stateNode.containerInfo), Za = x, ca = !0, tl = null, Fd = !1), L = Fp(x, null, H, L), x.child = L; L; ) + for (qe && (Ma = Le(x.stateNode.containerInfo), Za = x, ca = !0, nl = null, kd = !1), L = Bp(x, null, k, L), x.child = L; L; ) L.flags = L.flags & -3 | 4096, L = L.sibling; else { - if (yh(), H === q) { + if (xh(), k === X) { x = Vr(y, x, L); break e; } - Gn(y, x, H, L); + Wn(y, x, k, L); } x = x.child; } return x; case 5: - return Ip(x), y === null && Kf(x), H = x.type, q = x.pendingProps, ee = y !== null ? y.memoizedProps : null, Ae = q.children, st(H, q) ? Ae = null : ee !== null && st(H, ee) && (x.flags |= 32), hs(y, x), Gn(y, x, Ae, L), x.child; + return Vp(x), y === null && ed(x), k = x.type, X = x.pendingProps, $ = y !== null ? y.memoizedProps : null, Ae = X.children, rt(k, X) ? Ae = null : $ !== null && rt(k, $) && (x.flags |= 32), ps(y, x), Wn(y, x, Ae, L), x.child; case 6: - return y === null && Kf(x), null; + return y === null && ed(x), null; case 13: - return Sv(y, x, L); + return bv(y, x, L); case 4: - return kp(x, x.stateNode.containerInfo), H = x.pendingProps, y === null ? x.child = wc(x, null, H, L) : Gn(y, x, H, L), x.child; + return Hp(x, x.stateNode.containerInfo), k = x.pendingProps, y === null ? x.child = Ec(x, null, k, L) : Wn(y, x, k, L), x.child; case 11: - return H = x.type, q = x.pendingProps, q = x.elementType === H ? q : Oa(H, q), bi(y, x, H, q, L); + return k = x.type, X = x.pendingProps, X = x.elementType === k ? X : Oa(k, X), wi(y, x, k, X, L); case 7: - return Gn(y, x, x.pendingProps, L), x.child; + return Wn(y, x, x.pendingProps, L), x.child; case 8: - return Gn(y, x, x.pendingProps.children, L), x.child; + return Wn(y, x, x.pendingProps.children, L), x.child; case 12: - return Gn(y, x, x.pendingProps.children, L), x.child; + return Wn(y, x, x.pendingProps.children, L), x.child; case 10: e: { - if (H = x.type._context, q = x.pendingProps, ee = x.memoizedProps, Ae = q.value, Tu(x, H, Ae), ee !== null) - if (Fo(ee.value, Ae)) { - if (ee.children === q.children && !Ti.current) { + if (k = x.type._context, X = x.pendingProps, $ = x.memoizedProps, Ae = X.value, Ru(x, k, Ae), $ !== null) + if (Fo($.value, Ae)) { + if ($.children === X.children && !Ti.current) { x = Vr(y, x, L); break e; } } else - for (ee = x.child, ee !== null && (ee.return = x); ee !== null; ) { - var Ke = ee.dependencies; - if (Ke !== null) { - Ae = ee.child; - for (var kt = Ke.firstContext; kt !== null; ) { - if (kt.context === H) { - if (ee.tag === 1) { - kt = $o(-1, L & -L), kt.tag = 2; - var cn = ee.updateQueue; - if (cn !== null) { - cn = cn.shared; - var bn = cn.pending; - bn === null ? kt.next = kt : (kt.next = bn.next, bn.next = kt), cn.pending = kt; + for ($ = x.child, $ !== null && ($.return = x); $ !== null; ) { + var $e = $.dependencies; + if ($e !== null) { + Ae = $.child; + for (var kt = $e.firstContext; kt !== null; ) { + if (kt.context === k) { + if ($.tag === 1) { + kt = el(-1, L & -L), kt.tag = 2; + var hn = $.updateQueue; + if (hn !== null) { + hn = hn.shared; + var wn = hn.pending; + wn === null ? kt.next = kt : (kt.next = wn.next, wn.next = kt), hn.pending = kt; } } - ee.lanes |= L, kt = ee.alternate, kt !== null && (kt.lanes |= L), za(ee.return, L, x), Ke.lanes |= L; + $.lanes |= L, kt = $.alternate, kt !== null && (kt.lanes |= L), za($.return, L, x), $e.lanes |= L; break; } kt = kt.next; } - } else if (ee.tag === 10) - Ae = ee.type === x.type ? null : ee.child; - else if (ee.tag === 18) { - if (Ae = ee.return, Ae === null) + } else if ($.tag === 10) + Ae = $.type === x.type ? null : $.child; + else if ($.tag === 18) { + if (Ae = $.return, Ae === null) throw Error(l(341)); - Ae.lanes |= L, Ke = Ae.alternate, Ke !== null && (Ke.lanes |= L), za(Ae, L, x), Ae = ee.sibling; + Ae.lanes |= L, $e = Ae.alternate, $e !== null && ($e.lanes |= L), za(Ae, L, x), Ae = $.sibling; } else - Ae = ee.child; + Ae = $.child; if (Ae !== null) - Ae.return = ee; + Ae.return = $; else - for (Ae = ee; Ae !== null; ) { + for (Ae = $; Ae !== null; ) { if (Ae === x) { Ae = null; break; } - if (ee = Ae.sibling, ee !== null) { - ee.return = Ae.return, Ae = ee; + if ($ = Ae.sibling, $ !== null) { + $.return = Ae.return, Ae = $; break; } Ae = Ae.return; } - ee = Ae; + $ = Ae; } - Gn(y, x, q.children, L), x = x.child; + Wn(y, x, X.children, L), x = x.child; } return x; case 9: - return q = x.type, H = x.pendingProps.children, qs(x, L), q = Jr(q), H = H(q), x.flags |= 1, Gn(y, x, H, L), x.child; + return X = x.type, k = x.pendingProps.children, Qs(x, L), X = qr(X), k = k(X), x.flags |= 1, Wn(y, x, k, L), x.child; case 14: - return H = x.type, q = Oa(H, x.pendingProps), q = Oa(H.type, q), zi(y, x, H, q, L); + return k = x.type, X = Oa(k, x.pendingProps), X = Oa(k.type, X), zi(y, x, k, X, L); case 15: - return Pc(y, x, x.type, x.pendingProps, L); + return Oc(y, x, x.type, x.pendingProps, L); case 17: - return H = x.type, q = x.pendingProps, q = x.elementType === H ? q : Oa(H, q), y !== null && (y.alternate = null, x.alternate = null, x.flags |= 2), x.tag = 1, Pa(H) ? (y = !0, Al(x)) : y = !1, qs(x, L), Lm(x, H, q), vh(x, H, q, L), Ia(null, x, H, !0, y, L); + return k = x.type, X = x.pendingProps, X = x.elementType === k ? X : Oa(k, X), y !== null && (y.alternate = null, x.alternate = null, x.flags |= 2), x.tag = 1, Pa(k) ? (y = !0, Ll(x)) : y = !1, Qs(x, L), Um(x, k, X), gh(x, k, X, L), Ia(null, x, k, !0, y, L); case 19: - return Oc(y, x, L); + return Uc(y, x, L); case 22: return Rr(y, x, L); } throw Error(l(156, x.tag)); }; - function pu(y, x) { + function vu(y, x) { return yo(y, x); } - function zu(y, x, L, H) { - this.tag = y, this.key = L, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = x, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = H, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null; + function Fu(y, x, L, k) { + this.tag = y, this.key = L, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = x, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = k, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null; } - function Mo(y, x, L, H) { - return new zu(y, x, L, H); + function Mo(y, x, L, k) { + return new Fu(y, x, L, k); } - function Bc(y) { + function Hc(y) { return y = y.prototype, !(!y || !y.isReactComponent); } - function cd(y) { + function dd(y) { if (typeof y == "function") - return Bc(y) ? 1 : 0; + return Hc(y) ? 1 : 0; if (y != null) { - if (y = y.$$typeof, y === P) + if (y = y.$$typeof, y === O) return 11; - if (y === k) + if (y === I) return 14; } return 2; @@ -24047,75 +24047,75 @@ Error generating stack: ` + ee.message + ` var L = y.alternate; return L === null ? (L = Mo(y.tag, x, y.key, y.mode), L.elementType = y.elementType, L.type = y.type, L.stateNode = y.stateNode, L.alternate = y, y.alternate = L) : (L.pendingProps = x, L.type = y.type, L.flags = 0, L.subtreeFlags = 0, L.deletions = null), L.flags = y.flags & 14680064, L.childLanes = y.childLanes, L.lanes = y.lanes, L.child = y.child, L.memoizedProps = y.memoizedProps, L.memoizedState = y.memoizedState, L.updateQueue = y.updateQueue, x = y.dependencies, L.dependencies = x === null ? null : { lanes: x.lanes, firstContext: x.firstContext }, L.sibling = y.sibling, L.index = y.index, L.ref = y.ref, L; } - function fd(y, x, L, H, q, ee) { + function hd(y, x, L, k, X, $) { var Ae = 2; - if (H = y, typeof y == "function") - Bc(y) && (Ae = 1); + if (k = y, typeof y == "function") + Hc(y) && (Ae = 1); else if (typeof y == "string") Ae = 5; else e: switch (y) { - case S: - return mu(L.children, q, ee, x); case _: - Ae = 8, q |= 8; + return gu(L.children, X, $, x); + case w: + Ae = 8, X |= 8; break; case T: - return y = Mo(12, L, x, q | 2), y.elementType = T, y.lanes = ee, y; + return y = Mo(12, L, x, X | 2), y.elementType = T, y.lanes = $, y; case U: - return y = Mo(13, L, x, q), y.elementType = U, y.lanes = ee, y; + return y = Mo(13, L, x, X), y.elementType = U, y.lanes = $, y; + case H: + return y = Mo(19, L, x, X), y.elementType = H, y.lanes = $, y; case B: - return y = Mo(19, L, x, q), y.elementType = B, y.lanes = ee, y; - case I: - return dd(L, q, ee, x); + return pd(L, X, $, x); default: if (typeof y == "object" && y !== null) switch (y.$$typeof) { - case C: + case R: Ae = 10; break e; case D: Ae = 9; break e; - case P: + case O: Ae = 11; break e; - case k: + case I: Ae = 14; break e; - case V: - Ae = 16, H = null; + case G: + Ae = 16, k = null; break e; } throw Error(l(130, y == null ? y : typeof y, "")); } - return x = Mo(Ae, L, x, q), x.elementType = y, x.type = H, x.lanes = ee, x; + return x = Mo(Ae, L, x, X), x.elementType = y, x.type = k, x.lanes = $, x; } - function mu(y, x, L, H) { - return y = Mo(7, y, H, x), y.lanes = L, y; + function gu(y, x, L, k) { + return y = Mo(7, y, k, x), y.lanes = L, y; } - function dd(y, x, L, H) { - return y = Mo(22, y, H, x), y.elementType = I, y.lanes = L, y.stateNode = {}, y; + function pd(y, x, L, k) { + return y = Mo(22, y, k, x), y.elementType = B, y.lanes = L, y.stateNode = {}, y; } - function Ms(y, x, L) { + function Ts(y, x, L) { return y = Mo(6, y, null, x), y.lanes = L, y; } - function ks(y, x, L) { + function Is(y, x, L) { return x = Mo(4, y.children !== null ? y.children : [], y.key, x), x.lanes = L, x.stateNode = { containerInfo: y.containerInfo, pendingChildren: null, implementation: y.implementation }, x; } - function vu(y, x, L, H, q) { - this.tag = x, this.containerInfo = y, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = _t, this.callbackNode = this.pendingContext = this.context = null, this.callbackPriority = 0, this.eventTimes = Yf(0), this.expirationTimes = Yf(-1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = Yf(0), this.identifierPrefix = H, this.onRecoverableError = q, et && (this.mutableSourceEagerHydrationData = null); + function yu(y, x, L, k, X) { + this.tag = x, this.containerInfo = y, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = Tt, this.callbackNode = this.pendingContext = this.context = null, this.callbackPriority = 0, this.eventTimes = qf(0), this.expirationTimes = qf(-1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = qf(0), this.identifierPrefix = k, this.onRecoverableError = X, qe && (this.mutableSourceEagerHydrationData = null); } - function dg(y, x, L, H, q, ee, Ae, Ke, kt) { - return y = new vu(y, x, L, Ke, kt), x === 1 ? (x = 1, ee === !0 && (x |= 8)) : x = 0, ee = Mo(3, null, null, x), y.current = ee, ee.stateNode = y, ee.memoizedState = { element: H, isDehydrated: L, cache: null, transitions: null }, Qs(ee), y; + function mg(y, x, L, k, X, $, Ae, $e, kt) { + return y = new yu(y, x, L, $e, kt), x === 1 ? (x = 1, $ === !0 && (x |= 8)) : x = 0, $ = Mo(3, null, null, x), y.current = $, $.stateNode = y, $.memoizedState = { element: k, isDehydrated: L, cache: null, transitions: null }, Zs($), y; } - function ii(y) { + function ti(y) { if (!y) return Ea; y = y._reactInternals; e: { - if (ne(y) !== y || y.tag !== 1) + if (re(y) !== y || y.tag !== 1) throw Error(l(170)); var x = y; do { @@ -24136,40 +24136,40 @@ Error generating stack: ` + ee.message + ` if (y.tag === 1) { var L = y.type; if (Pa(L)) - return Wf(y, L, x); + return Yf(y, L, x); } return x; } - function Nu(y) { + function ku(y) { var x = y._reactInternals; if (x === void 0) throw typeof y.render == "function" ? Error(l(188)) : (y = Object.keys(y).join(","), Error(l(268, y))); - return y = le(x), y === null ? null : y.stateNode; + return y = ue(x), y === null ? null : y.stateNode; } - function Lf(y, x) { + function Of(y, x) { if (y = y.memoizedState, y !== null && y.dehydrated !== null) { var L = y.retryLane; y.retryLane = L !== 0 && L < x ? L : x; } } function dc(y, x) { - Lf(y, x), (y = y.alternate) && Lf(y, x); + Of(y, x), (y = y.alternate) && Of(y, x); } - function Pf(y) { - return y = le(y), y === null ? null : y.stateNode; + function Uf(y) { + return y = ue(y), y === null ? null : y.stateNode; } - function Vp() { + function jp() { return null; } return t.attemptContinuousHydration = function(y) { if (y.tag === 13) { - var x = fi(); - jl(y, 134217728, x), dc(y, 134217728); + var x = ui(); + Xl(y, 134217728, x), dc(y, 134217728); } }, t.attemptHydrationAtCurrentPriority = function(y) { if (y.tag === 13) { - var x = fi(), L = Ns(y); - jl(y, L, x), dc(y, L); + var x = ui(), L = Fs(y); + Xl(y, L, x), dc(y, L); } }, t.attemptSynchronousHydration = function(y) { switch (y.tag) { @@ -24177,100 +24177,100 @@ Error generating stack: ` + ee.message + ` var x = y.stateNode; if (x.current.memoizedState.isDehydrated) { var L = go(x.pendingLanes); - L !== 0 && (ua(x, L | 1), Sr(x, mi()), (Kr & 6) === 0 && (Qd(), ko())); + L !== 0 && (ua(x, L | 1), _r(x, hi()), (Qr & 6) === 0 && (Zd(), ko())); } break; case 13: - var H = fi(); + var k = ui(); Ha(function() { - return jl(y, 1, H); + return Xl(y, 1, k); }), dc(y, 1); } }, t.batchedUpdates = function(y, x) { - var L = Kr; - Kr |= 1; + var L = Qr; + Qr |= 1; try { return y(x); } finally { - Kr = L, Kr === 0 && (Qd(), _c && ko()); + Qr = L, Qr === 0 && (Zd(), wc && ko()); } }, t.createComponentSelector = function(y) { - return { $$typeof: Yd, value: y }; - }, t.createContainer = function(y, x, L, H, q, ee, Ae) { - return dg(y, x, !1, null, L, H, q, ee, Ae); + return { $$typeof: Xd, value: y }; + }, t.createContainer = function(y, x, L, k, X, $, Ae) { + return mg(y, x, !1, null, L, k, X, $, Ae); }, t.createHasPseudoClassSelector = function(y) { return { $$typeof: da, value: y }; - }, t.createHydrationContainer = function(y, x, L, H, q, ee, Ae, Ke, kt) { - return y = dg(L, H, !0, y, q, ee, Ae, Ke, kt), y.context = ii(null), L = y.current, H = fi(), q = Ns(L), ee = $o(H, q), ee.callback = x != null ? x : null, Ku(L, ee), y.current.lanes = q, xr(y, q, H), Sr(y, H), y; + }, t.createHydrationContainer = function(y, x, L, k, X, $, Ae, $e, kt) { + return y = mg(L, k, !0, y, X, $, Ae, $e, kt), y.context = ti(null), L = y.current, k = ui(), X = Fs(L), $ = el(k, X), $.callback = x != null ? x : null, Ku(L, $), y.current.lanes = X, xr(y, X, k), _r(y, k), y; }, t.createPortal = function(y, x, L) { - var H = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; - return { $$typeof: m, key: H == null ? null : "" + H, children: y, containerInfo: x, implementation: L }; + var k = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; + return { $$typeof: g, key: k == null ? null : "" + k, children: y, containerInfo: x, implementation: L }; }, t.createRoleSelector = function(y) { - return { $$typeof: Hi, value: y }; + return { $$typeof: Gi, value: y }; }, t.createTestNameSelector = function(y) { - return { $$typeof: wn, value: y }; + return { $$typeof: bn, value: y }; }, t.createTextSelector = function(y) { return { $$typeof: Qi, value: y }; }, t.deferredUpdates = function(y) { - var x = Cr, L = Sa.transition; + var x = Cr, L = _a.transition; try { - return Sa.transition = null, Cr = 16, y(); + return _a.transition = null, Cr = 16, y(); } finally { - Cr = x, Sa.transition = L; + Cr = x, _a.transition = L; } - }, t.discreteUpdates = function(y, x, L, H, q) { - var ee = Cr, Ae = Sa.transition; + }, t.discreteUpdates = function(y, x, L, k, X) { + var $ = Cr, Ae = _a.transition; try { - return Sa.transition = null, Cr = 1, y(x, L, H, q); + return _a.transition = null, Cr = 1, y(x, L, k, X); } finally { - Cr = ee, Sa.transition = Ae, Kr === 0 && Qd(); + Cr = $, _a.transition = Ae, Qr === 0 && Zd(); } }, t.findAllNodes = An, t.findBoundingRects = function(y, x) { - if (!Jt) + if (!Zt) throw Error(l(363)); x = An(y, x), y = []; for (var L = 0; L < x.length; L++) - y.push(Me(x[L])); + y.push(we(x[L])); for (x = y.length - 1; 0 < x; x--) { L = y[x]; - for (var H = L.x, q = H + L.width, ee = L.y, Ae = ee + L.height, Ke = x - 1; 0 <= Ke; Ke--) - if (x !== Ke) { - var kt = y[Ke], cn = kt.x, bn = cn + kt.width, wr = kt.y, ur = wr + kt.height; - if (H >= cn && ee >= wr && q <= bn && Ae <= ur) { + for (var k = L.x, X = k + L.width, $ = L.y, Ae = $ + L.height, $e = x - 1; 0 <= $e; $e--) + if (x !== $e) { + var kt = y[$e], hn = kt.x, wn = hn + kt.width, br = kt.y, ur = br + kt.height; + if (k >= hn && $ >= br && X <= wn && Ae <= ur) { y.splice(x, 1); break; - } else if (H !== cn || L.width !== kt.width || ur < ee || wr > Ae) { - if (!(ee !== wr || L.height !== kt.height || bn < H || cn > q)) { - cn > H && (kt.width += cn - H, kt.x = H), bn < q && (kt.width = q - cn), y.splice(x, 1); + } else if (k !== hn || L.width !== kt.width || ur < $ || br > Ae) { + if (!($ !== br || L.height !== kt.height || wn < k || hn > X)) { + hn > k && (kt.width += hn - k, kt.x = k), wn < X && (kt.width = X - hn), y.splice(x, 1); break; } } else { - wr > ee && (kt.height += wr - ee, kt.y = ee), ur < Ae && (kt.height = Ae - wr), y.splice(x, 1); + br > $ && (kt.height += br - $, kt.y = $), ur < Ae && (kt.height = Ae - br), y.splice(x, 1); break; } } } return y; - }, t.findHostInstance = Nu, t.findHostInstanceWithNoPortals = function(y) { - return y = fe(y), y = y !== null ? he(y) : null, y === null ? null : y.stateNode; + }, t.findHostInstance = ku, t.findHostInstanceWithNoPortals = function(y) { + return y = ce(y), y = y !== null ? me(y) : null, y === null ? null : y.stateNode; }, t.findHostInstanceWithWarning = function(y) { - return Nu(y); + return ku(y); }, t.flushControlled = function(y) { - var x = Kr; - Kr |= 1; - var L = Sa.transition, H = Cr; + var x = Qr; + Qr |= 1; + var L = _a.transition, k = Cr; try { - Sa.transition = null, Cr = 1, y(); + _a.transition = null, Cr = 1, y(); } finally { - Cr = H, Sa.transition = L, Kr = x, Kr === 0 && (Qd(), ko()); + Cr = k, _a.transition = L, Qr = x, Qr === 0 && (Zd(), ko()); } - }, t.flushPassiveEffects = kc, t.flushSync = Ha, t.focusWithin = function(y, x) { - if (!Jt) + }, t.flushPassiveEffects = Ic, t.flushSync = Ha, t.focusWithin = function(y, x) { + if (!Zt) throw Error(l(363)); - for (y = ep(y), x = ts(y, x), x = Array.from(x), y = 0; y < x.length; ) { + for (y = rp(y), x = ts(y, x), x = Array.from(x), y = 0; y < x.length; ) { var L = x[y++]; - if (!je(L)) { - if (L.tag === 5 && zt(L.stateNode)) + if (!Qe(L)) { + if (L.tag === 5 && Ft(L.stateNode)) return !0; for (L = L.child; L !== null; ) x.push(L), L = L.sibling; @@ -24280,21 +24280,21 @@ Error generating stack: ` + ee.message + ` }, t.getCurrentUpdatePriority = function() { return Cr; }, t.getFindAllNodesFailureDescription = function(y, x) { - if (!Jt) + if (!Zt) throw Error(l(363)); - var L = 0, H = []; - y = [ep(y), 0]; - for (var q = 0; q < y.length; ) { - var ee = y[q++], Ae = y[q++], Ke = x[Ae]; - if ((ee.tag !== 5 || !je(ee)) && (Wo(ee, Ke) && (H.push(jo(Ke)), Ae++, Ae > L && (L = Ae)), Ae < x.length)) - for (ee = ee.child; ee !== null; ) - y.push(ee, Ae), ee = ee.sibling; + var L = 0, k = []; + y = [rp(y), 0]; + for (var X = 0; X < y.length; ) { + var $ = y[X++], Ae = y[X++], $e = x[Ae]; + if (($.tag !== 5 || !Qe($)) && (Wo($, $e) && (k.push(jo($e)), Ae++, Ae > L && (L = Ae)), Ae < x.length)) + for ($ = $.child; $ !== null; ) + y.push($, Ae), $ = $.sibling; } if (L < x.length) { for (y = []; L < x.length; L++) y.push(jo(x[L])); return `findAllNodes was able to match part of the selector: - ` + (H.join(" > ") + ` + ` + (k.join(" > ") + ` No matching component was found for: `) + y.join(" > "); @@ -24305,12 +24305,12 @@ No matching component was found for: return null; switch (y.child.tag) { case 5: - return Ce(y.child.stateNode); + return Re(y.child.stateNode); default: return y.child.stateNode; } }, t.injectIntoDevTools = function(y) { - if (y = { bundleType: y.bundleType, version: y.version, rendererPackageName: y.rendererPackageName, rendererConfig: y.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: d.ReactCurrentDispatcher, findHostInstanceByFiber: Pf, findFiberByHostInstance: y.findFiberByHostInstance || Vp, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.0.0-fc46dba67-20220329" }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u") + if (y = { bundleType: y.bundleType, version: y.version, rendererPackageName: y.rendererPackageName, rendererConfig: y.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: d.ReactCurrentDispatcher, findHostInstanceByFiber: Uf, findFiberByHostInstance: y.findFiberByHostInstance || jp, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.0.0-fc46dba67-20220329" }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u") y = !1; else { var x = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -24318,7 +24318,7 @@ No matching component was found for: y = !0; else { try { - hf = x.inject(y), su = x; + mf = x.inject(y), lu = x; } catch { } y = !!x.checkDCE; @@ -24327,13 +24327,13 @@ No matching component was found for: return y; }, t.isAlreadyRendering = function() { return !1; - }, t.observeVisibleRects = function(y, x, L, H) { - if (!Jt) + }, t.observeVisibleRects = function(y, x, L, k) { + if (!Zt) throw Error(l(363)); y = An(y, x); - var q = Nt(y, L, H).disconnect; + var X = Ot(y, L, k).disconnect; return { disconnect: function() { - q(); + X(); } }; }, t.registerMutableSourceForHydration = function(y, x) { var L = x._getVersion; @@ -24349,13 +24349,13 @@ No matching component was found for: return null; }, t.shouldSuspend = function() { return !1; - }, t.updateContainer = function(y, x, L, H) { - var q = x.current, ee = fi(), Ae = Ns(q); - return L = ii(L), x.context === null ? x.context = L : x.pendingContext = L, x = $o(ee, Ae), x.payload = { element: y }, H = H === void 0 ? null : H, H !== null && (x.callback = H), Ku(q, x), y = jl(q, Ae, ee), y !== null && Qh(y, q, Ae), Ae; + }, t.updateContainer = function(y, x, L, k) { + var X = x.current, $ = ui(), Ae = Fs(X); + return L = ti(L), x.context === null ? x.context = L : x.pendingContext = L, x = el($, Ae), x.payload = { element: y }, k = k === void 0 ? null : k, k !== null && (x.callback = k), Ku(X, x), y = Xl(X, Ae, $), y !== null && Kh(y, X, Ae), Ae; }, t; - }), sD; + }), oD; } -var oD = { exports: {} }; +var lD = { exports: {} }; /** * @license React * react-reconciler.development.js @@ -24365,99 +24365,99 @@ var oD = { exports: {} }; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var rz; -function p9() { - return rz || (rz = 1, process.env.NODE_ENV !== "production" && (oD.exports = function(e) { - var t = {}, r = hh, i = jM.exports, o = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, l = !1; +var sz; +function R9() { + return sz || (sz = 1, process.env.NODE_ENV !== "production" && (lD.exports = function(e) { + var t = {}, r = ph, i = YM.exports, s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, l = !1; function d(u) { l = u; } - function h(u) { + function p(u) { if (!l) { for (var f = arguments.length, M = new Array(f > 1 ? f - 1 : 0), A = 1; A < f; A++) M[A - 1] = arguments[A]; - S("warn", u, M); + _("warn", u, M); } } - function m(u) { + function g(u) { if (!l) { for (var f = arguments.length, M = new Array(f > 1 ? f - 1 : 0), A = 1; A < f; A++) M[A - 1] = arguments[A]; - S("error", u, M); + _("error", u, M); } } - function S(u, f, M) { + function _(u, f, M) { { - var A = o.ReactDebugCurrentFrame, z = A.getStackAddendum(); + var A = s.ReactDebugCurrentFrame, z = A.getStackAddendum(); z !== "" && (f += "%s", M = M.concat([z])); - var j = M.map(function(te) { - return String(te); + var W = M.map(function(ee) { + return String(ee); }); - j.unshift("Warning: " + f), Function.prototype.apply.call(console[u], console, j); + W.unshift("Warning: " + f), Function.prototype.apply.call(console[u], console, W); } } - var _ = Object.assign; + var w = Object.assign; function T(u) { return u._reactInternals; } - function C(u, f) { + function R(u, f) { u._reactInternals = f; } - var D = !1, P = !1, U = !1, B = !1, k = !1, V = !1, I = !0, X = !0, J = !0, $ = 0, W = 1, ne = 2, ie = 3, fe = 4, le = 5, Ee = 6, he = 7, Fe = 8, Ce = 9, Be = 10, pe = 11, de = 12, ce = 13, ye = 14, we = 15, Xe = 16, Je = 17, st = 18, Ue = 19, ot = 21, rt = 22, _t = 23, Rt = 24, Ot = 25, He = Symbol.for("react.element"), et = Symbol.for("react.portal"), mt = Symbol.for("react.fragment"), vt = Symbol.for("react.strict_mode"), bt = Symbol.for("react.profiler"), Qt = Symbol.for("react.provider"), ft = Symbol.for("react.context"), Vt = Symbol.for("react.forward_ref"), Jt = Symbol.for("react.suspense"), Mt = Symbol.for("react.suspense_list"), Me = Symbol.for("react.memo"), oe = Symbol.for("react.lazy"), je = Symbol.for("react.scope"), lt = Symbol.for("react.debug_trace_mode"), zt = Symbol.for("react.offscreen"), Nt = Symbol.for("react.legacy_hidden"), Ut = Symbol.for("react.cache"), tt = Symbol.for("react.tracing_marker"), rn = Symbol.iterator, ze = "@@iterator"; - function xe(u) { + var D = !1, O = !1, U = !1, H = !1, I = !1, G = !1, B = !0, Q = !0, K = !0, te = 0, Y = 1, re = 2, se = 3, ce = 4, ue = 5, Me = 6, me = 7, De = 8, Re = 9, He = 10, ve = 11, fe = 12, he = 13, ye = 14, Ee = 15, Ve = 16, Je = 17, rt = 18, Ne = 19, ct = 21, tt = 22, Tt = 23, gt = 24, ft = 25, Ie = Symbol.for("react.element"), qe = Symbol.for("react.portal"), dt = Symbol.for("react.fragment"), ht = Symbol.for("react.strict_mode"), xt = Symbol.for("react.profiler"), Vt = Symbol.for("react.provider"), yt = Symbol.for("react.context"), Nt = Symbol.for("react.forward_ref"), Zt = Symbol.for("react.suspense"), Rt = Symbol.for("react.suspense_list"), we = Symbol.for("react.memo"), oe = Symbol.for("react.lazy"), Qe = Symbol.for("react.scope"), ut = Symbol.for("react.debug_trace_mode"), Ft = Symbol.for("react.offscreen"), Ot = Symbol.for("react.legacy_hidden"), Wt = Symbol.for("react.cache"), it = Symbol.for("react.tracing_marker"), an = Symbol.iterator, Be = "@@iterator"; + function pe(u) { if (u === null || typeof u != "object") return null; - var f = rn && u[rn] || u[ze]; + var f = an && u[an] || u[Be]; return typeof f == "function" ? f : null; } - function Ie(u, f, M) { + function Fe(u, f, M) { var A = u.displayName; if (A) return A; var z = f.displayName || f.name || ""; return z !== "" ? M + "(" + z + ")" : M; } - function it(u) { + function at(u) { return u.displayName || "Context"; } - function at(u) { + function st(u) { if (u == null) return null; - if (typeof u.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function") + if (typeof u.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function") return u.displayName || u.name || null; if (typeof u == "string") return u; switch (u) { - case mt: + case dt: return "Fragment"; - case et: + case qe: return "Portal"; - case bt: + case xt: return "Profiler"; - case vt: + case ht: return "StrictMode"; - case Jt: + case Zt: return "Suspense"; - case Mt: + case Rt: return "SuspenseList"; } if (typeof u == "object") switch (u.$$typeof) { - case ft: + case yt: var f = u; - return it(f) + ".Consumer"; - case Qt: - var M = u; - return it(M._context) + ".Provider"; + return at(f) + ".Consumer"; case Vt: - return Ie(u, u.render, "ForwardRef"); - case Me: + var M = u; + return at(M._context) + ".Provider"; + case Nt: + return Fe(u, u.render, "ForwardRef"); + case we: var A = u.displayName || null; - return A !== null ? A : at(u.type) || "Memo"; + return A !== null ? A : st(u.type) || "Memo"; case oe: { - var z = u, j = z._payload, te = z._init; + var z = u, W = z._payload, ee = z._init; try { - return at(te(j)); + return st(ee(W)); } catch { return null; } @@ -24465,60 +24465,60 @@ function p9() { } return null; } - function hn(u, f, M) { + function dn(u, f, M) { var A = f.displayName || f.name || ""; return u.displayName || (A !== "" ? M + "(" + A + ")" : M); } - function De(u) { + function ze(u) { return u.displayName || "Context"; } - function Tt(u) { + function wt(u) { var f = u.tag, M = u.type; switch (f) { - case Rt: + case gt: return "Cache"; - case Ce: + case Re: var A = M; - return De(A) + ".Consumer"; - case Be: + return ze(A) + ".Consumer"; + case He: var z = M; - return De(z._context) + ".Provider"; - case st: + return ze(z._context) + ".Provider"; + case rt: return "DehydratedFragment"; - case pe: - return hn(M, M.render, "ForwardRef"); - case he: + case ve: + return dn(M, M.render, "ForwardRef"); + case me: return "Fragment"; - case le: + case ue: return M; - case fe: + case ce: return "Portal"; - case ie: + case se: return "Root"; - case Ee: + case Me: return "Text"; - case Xe: - return at(M); - case Fe: - return M === vt ? "StrictMode" : "Mode"; - case rt: + case Ve: + return st(M); + case De: + return M === ht ? "StrictMode" : "Mode"; + case tt: return "Offscreen"; - case de: + case fe: return "Profiler"; - case ot: + case ct: return "Scope"; - case ce: + case he: return "Suspense"; - case Ue: + case Ne: return "SuspenseList"; - case Ot: + case ft: return "TracingMarker"; - case W: - case $: + case Y: + case te: case Je: - case ne: + case re: case ye: - case we: + case Ee: if (typeof M == "function") return M.displayName || M.name || null; if (typeof M == "string") @@ -24527,8 +24527,8 @@ function p9() { } return null; } - var Ne = 0, Gt = 1, Pt = 2, fn = 4, Gr = Pt | fn, Wr = 16, Ur = 32, ir = 64, Vn = 128, jr = 256, ti = 512, ki = 1024, Wi = 2048, ni = 4096, ji = ni | fn, Si = 8192, Te = 16384, ct = Wi | fn | ir | ti | ki | Te, me = 32767, Oe = 32768, qe = 65536, on = 131072, yn = 1048576, Rn = 2097152, mn = 4194304, vn = 8388608, Zn = 16777216, nr = 33554432, br = fn | ki | 0, Yi = Pt | fn | Wr | Ur | ti | ni | Si, La = fn | ir | ti | Si, Xs = Wi | Wr, $t = mn | vn | Rn, Zr = o.ReactCurrentOwner; - function ls(u) { + var Pe = 0, Gt = 1, At = 2, cn = 4, ki = At | cn, Or = 16, Ii = 32, Ir = 64, Bn = 128, Mi = 256, yi = 512, ii = 1024, Bi = 2048, xi = 4096, $r = xi | cn, ai = 8192, Te = 16384, ot = Bi | cn | Ir | yi | ii | Te, de = 32767, Le = 32768, Ye = 65536, $t = 131072, mn = 1048576, Rn = 2097152, gn = 4194304, yn = 8388608, Jn = 16777216, rr = 33554432, wr = cn | ii | 0, Yi = At | cn | Or | Ii | yi | xi | ai, La = cn | Ir | yi | ai, qs = Bi | Or, en = gn | yn | Rn, Xr = s.ReactCurrentOwner; + function us(u) { var f = u, M = u; if (u.alternate) for (; f.return; ) @@ -24536,103 +24536,103 @@ function p9() { else { var A = f; do - f = A, (f.flags & (Pt | ni)) !== Ne && (M = f.return), A = f.return; + f = A, (f.flags & (At | xi)) !== Pe && (M = f.return), A = f.return; while (A); } - return f.tag === ie ? M : null; + return f.tag === se ? M : null; } - function Xn(u) { - return ls(u) === u; + function qn(u) { + return us(u) === u; } function qa(u) { { - var f = Zr.current; - if (f !== null && f.tag === W) { + var f = Xr.current; + if (f !== null && f.tag === Y) { var M = f, A = M.stateNode; - A._warnedAboutRefsInRender || m("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", Tt(M) || "A component"), A._warnedAboutRefsInRender = !0; + A._warnedAboutRefsInRender || g("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", wt(M) || "A component"), A._warnedAboutRefsInRender = !0; } } var z = T(u); - return z ? ls(z) === z : !1; + return z ? us(z) === z : !1; } function mo(u) { - if (ls(u) !== u) + if (us(u) !== u) throw new Error("Unable to find node on an unmounted component."); } - function Ds(u) { + function Ls(u) { var f = u.alternate; if (!f) { - var M = ls(u); + var M = us(u); if (M === null) throw new Error("Unable to find node on an unmounted component."); return M !== u ? null : u; } for (var A = u, z = f; ; ) { - var j = A.return; - if (j === null) + var W = A.return; + if (W === null) break; - var te = j.alternate; - if (te === null) { - var se = j.return; - if (se !== null) { - A = z = se; + var ee = W.alternate; + if (ee === null) { + var ae = W.return; + if (ae !== null) { + A = z = ae; continue; } break; } - if (j.child === te.child) { - for (var Se = j.child; Se; ) { - if (Se === A) - return mo(j), u; - if (Se === z) - return mo(j), f; - Se = Se.sibling; + if (W.child === ee.child) { + for (var _e = W.child; _e; ) { + if (_e === A) + return mo(W), u; + if (_e === z) + return mo(W), f; + _e = _e.sibling; } throw new Error("Unable to find node on an unmounted component."); } if (A.return !== z.return) - A = j, z = te; + A = W, z = ee; else { - for (var Pe = !1, Ge = j.child; Ge; ) { - if (Ge === A) { - Pe = !0, A = j, z = te; + for (var Ue = !1, We = W.child; We; ) { + if (We === A) { + Ue = !0, A = W, z = ee; break; } - if (Ge === z) { - Pe = !0, z = j, A = te; + if (We === z) { + Ue = !0, z = W, A = ee; break; } - Ge = Ge.sibling; + We = We.sibling; } - if (!Pe) { - for (Ge = te.child; Ge; ) { - if (Ge === A) { - Pe = !0, A = te, z = j; + if (!Ue) { + for (We = ee.child; We; ) { + if (We === A) { + Ue = !0, A = ee, z = W; break; } - if (Ge === z) { - Pe = !0, z = te, A = j; + if (We === z) { + Ue = !0, z = ee, A = W; break; } - Ge = Ge.sibling; + We = We.sibling; } - if (!Pe) + if (!Ue) throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); } } if (A.alternate !== z) throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); } - if (A.tag !== ie) + if (A.tag !== se) throw new Error("Unable to find node on an unmounted component."); return A.stateNode.current === A ? u : f; } - function us(u) { - var f = Ds(u); + function cs(u) { + var f = Ls(u); return f !== null ? mr(f) : null; } function mr(u) { - if (u.tag === le || u.tag === Ee) + if (u.tag === ue || u.tag === Me) return u; for (var f = u.child; f !== null; ) { var M = mr(f); @@ -24642,15 +24642,15 @@ function p9() { } return null; } - function pi(u) { - var f = Ds(u); + function di(u) { + var f = Ls(u); return f !== null ? Ea(f) : null; } function Ea(u) { - if (u.tag === le || u.tag === Ee) + if (u.tag === ue || u.tag === Me) return u; for (var f = u.child; f !== null; ) { - if (f.tag !== fe) { + if (f.tag !== ce) { var M = Ea(f); if (M !== null) return M; @@ -24659,30 +24659,30 @@ function p9() { } return null; } - var _i = Array.isArray; + var Si = Array.isArray; function Ti(u) { - return _i(u); + return Si(u); } - var Uo = e.getPublicInstance, zo = e.getRootHostContext, Pa = e.getChildHostContext, Rl = e.prepareForCommit, vo = e.resetAfterCommit, Wf = e.createInstance, Al = e.appendInitialChild, zd = e.finalizeInitialChildren, Ls = e.prepareUpdate, Ju = e.shouldSetTextContent, au = e.createTextInstance, qh = e.scheduleTimeout, Dl = e.cancelTimeout, ri = e.noTimeout; + var Uo = e.getPublicInstance, zo = e.getRootHostContext, Pa = e.getChildHostContext, Dl = e.prepareForCommit, vo = e.resetAfterCommit, Yf = e.createInstance, Ll = e.appendInitialChild, Nd = e.finalizeInitialChildren, Ps = e.prepareUpdate, Ju = e.shouldSetTextContent, ou = e.createTextInstance, Jh = e.scheduleTimeout, Pl = e.cancelTimeout, ei = e.noTimeout; e.now; - var go = e.isPrimaryRenderer, jf = e.warnsIfNotActing, No = e.supportsMutation, Ci = e.supportsPersistence, cs = e.supportsHydration, Yf = e.getInstanceFromNode; + var go = e.isPrimaryRenderer, Xf = e.warnsIfNotActing, No = e.supportsMutation, Ci = e.supportsPersistence, fs = e.supportsHydration, qf = e.getInstanceFromNode; e.beforeActiveInstanceBlur, e.afterActiveInstanceBlur; var xr = e.preparePortalMount; e.preparePortalMount, e.getInstanceFromScope; - var Eu = e.getCurrentEventPriority, ua = e.detachDeletedInstance, Cr = e.supportsMicrotasks, fl = e.scheduleMicrotask, yo = e.supportsTestSelectors, Ka = e.findFiberRoot, Xi = e.getBoundingRect, Rm = e.getTextContent, mi = e.isHiddenSubtree, Qa = e.matchAccessibilityRole, Sc = e.setFocusIfFocusable, dl = e.setupIntersectionObserver, df = e.appendChild, hf = e.appendChildToContainer, su = e.commitTextUpdate, Ii = e.commitMount, Ri = e.commitUpdate, Fo = e.insertBefore, Ps = e.insertInContainerBefore, _c = e.removeChild, Ll = e.removeChildFromContainer, Xf = e.resetTextContent, qf = e.hideInstance, ko = e.hideTextInstance, Qf = e.unhideInstance, Ki = e.unhideTextInstance, Mu = e.clearContainer, Oa = e.cloneInstance, ys = e.createContainerChildSet, ou = e.appendChildToContainerChildSet, Ua = e.finalizeContainerChildren, bc = e.replaceContainerChildren; + var Tu = e.getCurrentEventPriority, ua = e.detachDeletedInstance, Cr = e.supportsMicrotasks, dl = e.scheduleMicrotask, yo = e.supportsTestSelectors, Ka = e.findFiberRoot, Xi = e.getBoundingRect, Lm = e.getTextContent, hi = e.isHiddenSubtree, Qa = e.matchAccessibilityRole, Sc = e.setFocusIfFocusable, hl = e.setupIntersectionObserver, pf = e.appendChild, mf = e.appendChildToContainer, lu = e.commitTextUpdate, Hi = e.commitMount, Ri = e.commitUpdate, Fo = e.insertBefore, Os = e.insertInContainerBefore, wc = e.removeChild, Ol = e.removeChildFromContainer, Qf = e.resetTextContent, Zf = e.hideInstance, ko = e.hideTextInstance, Jf = e.unhideInstance, Ki = e.unhideTextInstance, Cu = e.clearContainer, Oa = e.cloneInstance, xs = e.createContainerChildSet, uu = e.appendChildToContainerChildSet, Ua = e.finalizeContainerChildren, bc = e.replaceContainerChildren; e.getOffscreenContainerType; - var xo = e.getOffscreenContainerProps, Tu = e.cloneHiddenInstance, Pl = e.cloneHiddenTextInstance, za = e.canHydrateInstance, qs = e.canHydrateTextInstance, Jr = e.canHydrateSuspenseInstance, xs = e.isSuspenseInstancePending, va = e.isSuspenseInstanceFallback, Qs = e.registerSuspenseInstanceRetry, Zf = e.getNextHydratableSibling, $o = e.getFirstHydratableChild, Ku = e.getFirstHydratableChildWithinContainer, Qh = e.getFirstHydratableChildWithinSuspenseInstance, qi = e.hydrateInstance, Cu = e.hydrateTextInstance, Up = e.hydrateSuspenseInstance, fg = e.getNextHydratableInstanceAfterSuspenseInstance, Zh = e.commitHydratedContainer, Am = e.commitHydratedSuspenseInstance, Dm = e.clearSuspenseBoundary, Lm = e.clearSuspenseBoundaryFromContainer, Pm = e.shouldDeleteUnhydratedTailInstances, vh = e.didNotMatchHydratedContainerTextInstance, $u = e.didNotMatchHydratedTextInstance, Nd = e.didNotHydrateInstanceWithinContainer, Ru = e.didNotHydrateInstanceWithinSuspenseInstance, zp = e.didNotHydrateInstance, hl = e.didNotFindHydratableInstanceWithinContainer, el = e.didNotFindHydratableTextInstanceWithinContainer, pf = e.didNotFindHydratableSuspenseInstanceWithinContainer, Jf = e.didNotFindHydratableInstanceWithinSuspenseInstance, lu = e.didNotFindHydratableTextInstanceWithinSuspenseInstance, mf = e.didNotFindHydratableSuspenseInstanceWithinSuspenseInstance, Ol = e.didNotFindHydratableInstance, ec = e.didNotFindHydratableTextInstance, Oi = e.didNotFindHydratableSuspenseInstance, Za = e.errorHydratingContainer, Ma = 0, ca, Fd, tl, Om, Um, gh, Kf; - function kd() { + var xo = e.getOffscreenContainerProps, Ru = e.cloneHiddenInstance, Ul = e.cloneHiddenTextInstance, za = e.canHydrateInstance, Qs = e.canHydrateTextInstance, qr = e.canHydrateSuspenseInstance, _s = e.isSuspenseInstancePending, va = e.isSuspenseInstanceFallback, Zs = e.registerSuspenseInstanceRetry, Kf = e.getNextHydratableSibling, el = e.getFirstHydratableChild, Ku = e.getFirstHydratableChildWithinContainer, Kh = e.getFirstHydratableChildWithinSuspenseInstance, qi = e.hydrateInstance, Au = e.hydrateTextInstance, Fp = e.hydrateSuspenseInstance, pg = e.getNextHydratableInstanceAfterSuspenseInstance, $h = e.commitHydratedContainer, Pm = e.commitHydratedSuspenseInstance, Om = e.clearSuspenseBoundary, Um = e.clearSuspenseBoundaryFromContainer, zm = e.shouldDeleteUnhydratedTailInstances, gh = e.didNotMatchHydratedContainerTextInstance, $u = e.didNotMatchHydratedTextInstance, Fd = e.didNotHydrateInstanceWithinContainer, Du = e.didNotHydrateInstanceWithinSuspenseInstance, kp = e.didNotHydrateInstance, pl = e.didNotFindHydratableInstanceWithinContainer, tl = e.didNotFindHydratableTextInstanceWithinContainer, vf = e.didNotFindHydratableSuspenseInstanceWithinContainer, $f = e.didNotFindHydratableInstanceWithinSuspenseInstance, cu = e.didNotFindHydratableTextInstanceWithinSuspenseInstance, gf = e.didNotFindHydratableSuspenseInstanceWithinSuspenseInstance, zl = e.didNotFindHydratableInstance, ec = e.didNotFindHydratableTextInstance, Oi = e.didNotFindHydratableSuspenseInstance, Za = e.errorHydratingContainer, Ma = 0, ca, kd, nl, Nm, Fm, yh, ed; + function Id() { } - kd.__reactDisabledLog = !0; - function Np() { + Id.__reactDisabledLog = !0; + function Ip() { { if (Ma === 0) { - ca = console.log, Fd = console.info, tl = console.warn, Om = console.error, Um = console.group, gh = console.groupCollapsed, Kf = console.groupEnd; + ca = console.log, kd = console.info, nl = console.warn, Nm = console.error, Fm = console.group, yh = console.groupCollapsed, ed = console.groupEnd; var u = { configurable: !0, enumerable: !0, - value: kd, + value: Id, writable: !0 }; Object.defineProperties(console, { @@ -24698,7 +24698,7 @@ function p9() { Ma++; } } - function yh() { + function xh() { { if (Ma--, Ma === 0) { var u = { @@ -24707,56 +24707,56 @@ function p9() { writable: !0 }; Object.defineProperties(console, { - log: _({}, u, { + log: w({}, u, { value: ca }), - info: _({}, u, { - value: Fd + info: w({}, u, { + value: kd }), - warn: _({}, u, { - value: tl + warn: w({}, u, { + value: nl }), - error: _({}, u, { - value: Om + error: w({}, u, { + value: Nm }), - group: _({}, u, { - value: Um + group: w({}, u, { + value: Fm }), - groupCollapsed: _({}, u, { - value: gh + groupCollapsed: w({}, u, { + value: yh }), - groupEnd: _({}, u, { - value: Kf + groupEnd: w({}, u, { + value: ed }) }); } - Ma < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + Ma < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } - var Id = o.ReactCurrentDispatcher, $f; + var Bd = s.ReactCurrentDispatcher, td; function Ss(u, f, M) { { - if ($f === void 0) + if (td === void 0) try { throw Error(); } catch (z) { var A = z.stack.trim().match(/\n( *(at )?)/); - $f = A && A[1] || ""; + td = A && A[1] || ""; } return ` -` + $f + u; +` + td + u; } } - var tc = !1, vf; + var tc = !1, yf; { - var wc = typeof WeakMap == "function" ? WeakMap : Map; - vf = new wc(); + var Ec = typeof WeakMap == "function" ? WeakMap : Map; + yf = new Ec(); } - function Fp(u, f) { + function Bp(u, f) { if (!u || tc) return ""; { - var M = vf.get(u); + var M = yf.get(u); if (M !== void 0) return M; } @@ -24764,228 +24764,228 @@ function p9() { tc = !0; var z = Error.prepareStackTrace; Error.prepareStackTrace = void 0; - var j; - j = Id.current, Id.current = null, Np(); + var W; + W = Bd.current, Bd.current = null, Ip(); try { if (f) { - var te = function() { + var ee = function() { throw Error(); }; - if (Object.defineProperty(te.prototype, "props", { + if (Object.defineProperty(ee.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { - Reflect.construct(te, []); - } catch (dn) { - A = dn; + Reflect.construct(ee, []); + } catch (pn) { + A = pn; } - Reflect.construct(u, [], te); + Reflect.construct(u, [], ee); } else { try { - te.call(); - } catch (dn) { - A = dn; + ee.call(); + } catch (pn) { + A = pn; } - u.call(te.prototype); + u.call(ee.prototype); } } else { try { throw Error(); - } catch (dn) { - A = dn; + } catch (pn) { + A = pn; } u(); } - } catch (dn) { - if (dn && A && typeof dn.stack == "string") { - for (var se = dn.stack.split(` -`), Se = A.stack.split(` -`), Pe = se.length - 1, Ge = Se.length - 1; Pe >= 1 && Ge >= 0 && se[Pe] !== Se[Ge]; ) - Ge--; - for (; Pe >= 1 && Ge >= 0; Pe--, Ge--) - if (se[Pe] !== Se[Ge]) { - if (Pe !== 1 || Ge !== 1) + } catch (pn) { + if (pn && A && typeof pn.stack == "string") { + for (var ae = pn.stack.split(` +`), _e = A.stack.split(` +`), Ue = ae.length - 1, We = _e.length - 1; Ue >= 1 && We >= 0 && ae[Ue] !== _e[We]; ) + We--; + for (; Ue >= 1 && We >= 0; Ue--, We--) + if (ae[Ue] !== _e[We]) { + if (Ue !== 1 || We !== 1) do - if (Pe--, Ge--, Ge < 0 || se[Pe] !== Se[Ge]) { - var yt = ` -` + se[Pe].replace(" at new ", " at "); - return u.displayName && yt.includes("") && (yt = yt.replace("", u.displayName)), typeof u == "function" && vf.set(u, yt), yt; + if (Ue--, We--, We < 0 || ae[Ue] !== _e[We]) { + var St = ` +` + ae[Ue].replace(" at new ", " at "); + return u.displayName && St.includes("") && (St = St.replace("", u.displayName)), typeof u == "function" && yf.set(u, St), St; } - while (Pe >= 1 && Ge >= 0); + while (Ue >= 1 && We >= 0); break; } } } finally { - tc = !1, Id.current = j, yh(), Error.prepareStackTrace = z; + tc = !1, Bd.current = W, xh(), Error.prepareStackTrace = z; } - var It = u ? u.displayName || u.name : "", jt = It ? Ss(It) : ""; - return typeof u == "function" && vf.set(u, jt), jt; + var It = u ? u.displayName || u.name : "", Yt = It ? Ss(It) : ""; + return typeof u == "function" && yf.set(u, Yt), Yt; } function nc(u, f, M) { - return Fp(u, !0); + return Bp(u, !0); } function Na(u, f, M) { - return Fp(u, !1); + return Bp(u, !1); } - function Bd(u) { + function Hd(u) { var f = u.prototype; return !!(f && f.isReactComponent); } - function ed(u, f, M) { + function nd(u, f, M) { if (u == null) return ""; if (typeof u == "function") - return Fp(u, Bd(u)); + return Bp(u, Hd(u)); if (typeof u == "string") return Ss(u); switch (u) { - case Jt: + case Zt: return Ss("Suspense"); - case Mt: + case Rt: return Ss("SuspenseList"); } if (typeof u == "object") switch (u.$$typeof) { - case Vt: + case Nt: return Na(u.render); - case Me: - return ed(u.type, f, M); + case we: + return nd(u.type, f, M); case oe: { - var A = u, z = A._payload, j = A._init; + var A = u, z = A._payload, W = A._init; try { - return ed(j(z), f, M); + return nd(W(z), f, M); } catch { } } } return ""; } - var rc = Object.prototype.hasOwnProperty, kp = {}, xh = o.ReactDebugCurrentFrame; - function Ip(u) { + var rc = Object.prototype.hasOwnProperty, Hp = {}, _h = s.ReactDebugCurrentFrame; + function Vp(u) { if (u) { - var f = u._owner, M = ed(u.type, u._source, f ? f.type : null); - xh.setExtraStackFrame(M); + var f = u._owner, M = nd(u.type, u._source, f ? f.type : null); + _h.setExtraStackFrame(M); } else - xh.setExtraStackFrame(null); + _h.setExtraStackFrame(null); } function Io(u, f, M, A, z) { { - var j = Function.call.bind(rc); - for (var te in u) - if (j(u, te)) { - var se = void 0; + var W = Function.call.bind(rc); + for (var ee in u) + if (W(u, ee)) { + var ae = void 0; try { - if (typeof u[te] != "function") { - var Se = Error((A || "React class") + ": " + M + " type `" + te + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[te] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); - throw Se.name = "Invariant Violation", Se; + if (typeof u[ee] != "function") { + var _e = Error((A || "React class") + ": " + M + " type `" + ee + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[ee] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + throw _e.name = "Invariant Violation", _e; } - se = u[te](f, te, A, M, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); - } catch (Pe) { - se = Pe; + ae = u[ee](f, ee, A, M, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (Ue) { + ae = Ue; } - se && !(se instanceof Error) && (Ip(z), m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", A || "React class", M, te, typeof se), Ip(null)), se instanceof Error && !(se.message in kp) && (kp[se.message] = !0, Ip(z), m("Failed %s type: %s", M, se.message), Ip(null)); + ae && !(ae instanceof Error) && (Vp(z), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", A || "React class", M, ee, typeof ae), Vp(null)), ae instanceof Error && !(ae.message in Hp) && (Hp[ae.message] = !0, Vp(z), g("Failed %s type: %s", M, ae.message), Vp(null)); } } } - var Ye = [], Bt; + var Xe = [], Bt; Bt = []; - var pt = -1; + var vt = -1; function Mn(u) { return { current: u }; } - function Kn(u, f) { - if (pt < 0) { - m("Unexpected pop."); + function $n(u, f) { + if (vt < 0) { + g("Unexpected pop."); return; } - f !== Bt[pt] && m("Unexpected Fiber popped."), u.current = Ye[pt], Ye[pt] = null, Bt[pt] = null, pt--; + f !== Bt[vt] && g("Unexpected Fiber popped."), u.current = Xe[vt], Xe[vt] = null, Bt[vt] = null, vt--; } function or(u, f, M) { - pt++, Ye[pt] = u.current, Bt[pt] = M, u.current = f; + vt++, Xe[vt] = u.current, Bt[vt] = M, u.current = f; } var Ta; Ta = {}; - var $n = {}; - Object.freeze($n); - var Ui = Mn($n), ra = Mn(!1), Bo = $n; - function fs(u, f, M) { - return M && pl(f) ? Bo : Ui.current; + var er = {}; + Object.freeze(er); + var Ui = Mn(er), ia = Mn(!1), Bo = er; + function ds(u, f, M) { + return M && ml(f) ? Bo : Ui.current; } - function Hd(u, f, M) { + function Vd(u, f, M) { { var A = u.stateNode; A.__reactInternalMemoizedUnmaskedChildContext = f, A.__reactInternalMemoizedMaskedChildContext = M; } } - function Ul(u, f) { + function Nl(u, f) { { var M = u.type, A = M.contextTypes; if (!A) - return $n; + return er; var z = u.stateNode; if (z && z.__reactInternalMemoizedUnmaskedChildContext === f) return z.__reactInternalMemoizedMaskedChildContext; - var j = {}; - for (var te in A) - j[te] = f[te]; + var W = {}; + for (var ee in A) + W[ee] = f[ee]; { - var se = Tt(u) || "Unknown"; - Io(A, j, "context", se); + var ae = wt(u) || "Unknown"; + Io(A, W, "context", ae); } - return z && Hd(u, f, j), j; + return z && Vd(u, f, W), W; } } function $a() { - return ra.current; + return ia.current; } - function pl(u) { + function ml(u) { { var f = u.childContextTypes; return f != null; } } - function xi(u) { - Kn(ra, u), Kn(Ui, u); + function _i(u) { + $n(ia, u), $n(Ui, u); } - function Ec(u) { - Kn(ra, u), Kn(Ui, u); + function Mc(u) { + $n(ia, u), $n(Ui, u); } - function Au(u, f, M) { + function Lu(u, f, M) { { - if (Ui.current !== $n) + if (Ui.current !== er) throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."); - or(Ui, f, u), or(ra, M, u); + or(Ui, f, u), or(ia, M, u); } } - function ml(u, f, M) { + function vl(u, f, M) { { var A = u.stateNode, z = f.childContextTypes; if (typeof A.getChildContext != "function") { { - var j = Tt(u) || "Unknown"; - Ta[j] || (Ta[j] = !0, m("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.", j, j)); + var W = wt(u) || "Unknown"; + Ta[W] || (Ta[W] = !0, g("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.", W, W)); } return M; } - var te = A.getChildContext(); - for (var se in te) - if (!(se in z)) - throw new Error((Tt(u) || "Unknown") + '.getChildContext(): key "' + se + '" is not defined in childContextTypes.'); + var ee = A.getChildContext(); + for (var ae in ee) + if (!(ae in z)) + throw new Error((wt(u) || "Unknown") + '.getChildContext(): key "' + ae + '" is not defined in childContextTypes.'); { - var Se = Tt(u) || "Unknown"; - Io(z, te, "child context", Se); + var _e = wt(u) || "Unknown"; + Io(z, ee, "child context", _e); } - return _({}, M, te); + return w({}, M, ee); } } function Ca(u) { { - var f = u.stateNode, M = f && f.__reactInternalMemoizedMergedChildContext || $n; - return Bo = Ui.current, or(Ui, M, u), or(ra, ra.current, u), !0; + var f = u.stateNode, M = f && f.__reactInternalMemoizedMergedChildContext || er; + return Bo = Ui.current, or(Ui, M, u), or(ia, ia.current, u), !0; } } function Sh(u, f, M) { @@ -24994,24 +24994,24 @@ function p9() { if (!A) throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."); if (M) { - var z = ml(u, f, Bo); - A.__reactInternalMemoizedMergedChildContext = z, Kn(ra, u), Kn(Ui, u), or(Ui, z, u), or(ra, M, u); + var z = vl(u, f, Bo); + A.__reactInternalMemoizedMergedChildContext = z, $n(ia, u), $n(Ui, u), or(Ui, z, u), or(ia, M, u); } else - Kn(ra, u), or(ra, M, u); + $n(ia, u), or(ia, M, u); } } - function Bp(u) { + function Gp(u) { { - if (!Xn(u) || u.tag !== W) + if (!qn(u) || u.tag !== Y) throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); var f = u; do { switch (f.tag) { - case ie: + case se: return f.stateNode.context; - case W: { + case Y: { var M = f.type; - if (pl(M)) + if (ml(M)) return f.stateNode.__reactInternalMemoizedMergedChildContext; break; } @@ -25021,127 +25021,127 @@ function p9() { throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."); } } - var Mc = 0, Tc = 1, Mr = 0, $i = 1, Br = 2, Fa = 8, So = 16, td = Math.clz32 ? Math.clz32 : gf, _h = Math.log, ic = Math.LN2; - function gf(u) { + var Tc = 0, Cc = 1, Mr = 0, $i = 1, Br = 2, Fa = 8, _o = 16, rd = Math.clz32 ? Math.clz32 : xf, wh = Math.log, ic = Math.LN2; + function xf(u) { var f = u >>> 0; - return f === 0 ? 32 : 31 - (_h(f) / ic | 0) | 0; + return f === 0 ? 32 : 31 - (wh(f) / ic | 0) | 0; } - var nd = 31, an = 0, Ir = 0, Hr = 1, Ho = 2, nl = 4, ac = 8, Du = 16, Cc = 32, yf = 4194240, sc = 64, ds = 128, Zs = 256, zm = 512, Jh = 1024, Vd = 2048, bh = 4096, xf = 8192, Lu = 16384, rd = 32768, uu = 65536, Sf = 131072, Rc = 262144, Gd = 524288, id = 1048576, Ac = 2097152, zl = 130023424, Dc = 4194304, Lc = 8388608, Os = 16777216, Pu = 33554432, _o = 67108864, ad = Dc, ge = 134217728, oc = 268435455, Js = 268435456, ka = 536870912, Hn = 1073741824; + var id = 31, sn = 0, kr = 0, Hr = 1, Ho = 2, rl = 4, ac = 8, Pu = 16, Rc = 32, _f = 4194240, sc = 64, hs = 128, Js = 256, km = 512, ep = 1024, Gd = 2048, bh = 4096, Sf = 8192, Ou = 16384, ad = 32768, fu = 65536, wf = 131072, Ac = 262144, Wd = 524288, sd = 1048576, Dc = 2097152, Fl = 130023424, Lc = 4194304, Pc = 8388608, Us = 16777216, Uu = 33554432, So = 67108864, od = Lc, xe = 134217728, oc = 268435455, Ks = 268435456, ka = 536870912, Gn = 1073741824; function vr(u) { { if (u & Hr) return "Sync"; if (u & Ho) return "InputContinuousHydration"; - if (u & nl) + if (u & rl) return "InputContinuous"; if (u & ac) return "DefaultHydration"; - if (u & Du) + if (u & Pu) return "Default"; - if (u & Cc) + if (u & Rc) return "TransitionHydration"; - if (u & yf) + if (u & _f) return "Transition"; - if (u & zl) + if (u & Fl) return "Retry"; - if (u & ge) + if (u & xe) return "SelectiveHydration"; - if (u & Js) + if (u & Ks) return "IdleHydration"; if (u & ka) return "Idle"; - if (u & Hn) + if (u & Gn) return "Offscreen"; } } - var Bi = -1, oi = sc, Gn = Dc; - function bi(u) { + var Vi = -1, si = sc, Wn = Lc; + function wi(u) { switch (lc(u)) { case Hr: return Hr; case Ho: return Ho; - case nl: - return nl; + case rl: + return rl; case ac: return ac; - case Du: - return Du; - case Cc: - return Cc; + case Pu: + return Pu; + case Rc: + return Rc; case sc: - case ds: - case Zs: - case zm: - case Jh: - case Vd: + case hs: + case Js: + case km: + case ep: + case Gd: case bh: - case xf: - case Lu: - case rd: - case uu: case Sf: - case Rc: - case Gd: - case id: + case Ou: + case ad: + case fu: + case wf: case Ac: - return u & yf; + case Wd: + case sd: case Dc: + return u & _f; case Lc: - case Os: - case Pu: - case _o: - return u & zl; - case ge: - return ge; - case Js: - return Js; + case Pc: + case Us: + case Uu: + case So: + return u & Fl; + case xe: + return xe; + case Ks: + return Ks; case ka: return ka; - case Hn: - return Hn; + case Gn: + return Gn; default: - return m("Should have found matching lanes. This is a bug in React."), u; + return g("Should have found matching lanes. This is a bug in React."), u; } } function zi(u, f) { var M = u.pendingLanes; - if (M === an) - return an; - var A = an, z = u.suspendedLanes, j = u.pingedLanes, te = M & oc; - if (te !== an) { - var se = te & ~z; - if (se !== an) - A = bi(se); + if (M === sn) + return sn; + var A = sn, z = u.suspendedLanes, W = u.pingedLanes, ee = M & oc; + if (ee !== sn) { + var ae = ee & ~z; + if (ae !== sn) + A = wi(ae); else { - var Se = te & j; - Se !== an && (A = bi(Se)); + var _e = ee & W; + _e !== sn && (A = wi(_e)); } } else { - var Pe = M & ~z; - Pe !== an ? A = bi(Pe) : j !== an && (A = bi(j)); - } - if (A === an) - return an; - if (f !== an && f !== A && (f & z) === an) { - var Ge = lc(A), yt = lc(f); - if (Ge >= yt || Ge === Du && (yt & yf) !== an) + var Ue = M & ~z; + Ue !== sn ? A = wi(Ue) : W !== sn && (A = wi(W)); + } + if (A === sn) + return sn; + if (f !== sn && f !== A && (f & z) === sn) { + var We = lc(A), St = lc(f); + if (We >= St || We === Pu && (St & _f) !== sn) return f; } - (A & nl) !== an && (A |= M & Du); + (A & rl) !== sn && (A |= M & Pu); var It = u.entangledLanes; - if (It !== an) - for (var jt = u.entanglements, dn = A & It; dn > 0; ) { - var Sn = _s(dn), Tr = 1 << Sn; - A |= jt[Sn], dn &= ~Tr; + if (It !== sn) + for (var Yt = u.entanglements, pn = A & It; pn > 0; ) { + var Sn = ws(pn), Tr = 1 << Sn; + A |= Yt[Sn], pn &= ~Tr; } return A; } - function Pc(u, f) { - for (var M = u.eventTimes, A = Bi; f > 0; ) { - var z = _s(f), j = 1 << z, te = M[z]; - te > A && (A = te), f &= ~j; + function Oc(u, f) { + for (var M = u.eventTimes, A = Vi; f > 0; ) { + var z = ws(f), W = 1 << z, ee = M[z]; + ee > A && (A = ee), f &= ~W; } return A; } @@ -25149,280 +25149,280 @@ function p9() { switch (u) { case Hr: case Ho: - case nl: + case rl: return f + 250; case ac: - case Du: - case Cc: + case Pu: + case Rc: case sc: - case ds: - case Zs: - case zm: - case Jh: - case Vd: + case hs: + case Js: + case km: + case ep: + case Gd: case bh: - case xf: - case Lu: - case rd: - case uu: case Sf: - case Rc: - case Gd: - case id: + case Ou: + case ad: + case fu: + case wf: case Ac: - return f + 5e3; + case Wd: + case sd: case Dc: + return f + 5e3; case Lc: - case Os: - case Pu: - case _o: - return Bi; - case ge: - case Js: + case Pc: + case Us: + case Uu: + case So: + return Vi; + case xe: + case Ks: case ka: - case Hn: - return Bi; + case Gn: + return Vi; default: - return m("Should have found matching lanes. This is a bug in React."), Bi; + return g("Should have found matching lanes. This is a bug in React."), Vi; } } - function hs(u, f) { - for (var M = u.pendingLanes, A = u.suspendedLanes, z = u.pingedLanes, j = u.expirationTimes, te = M; te > 0; ) { - var se = _s(te), Se = 1 << se, Pe = j[se]; - Pe === Bi ? ((Se & A) === an || (Se & z) !== an) && (j[se] = Rr(Se, f)) : Pe <= f && (u.expiredLanes |= Se), te &= ~Se; + function ps(u, f) { + for (var M = u.pendingLanes, A = u.suspendedLanes, z = u.pingedLanes, W = u.expirationTimes, ee = M; ee > 0; ) { + var ae = ws(ee), _e = 1 << ae, Ue = W[ae]; + Ue === Vi ? ((_e & A) === sn || (_e & z) !== sn) && (W[ae] = Rr(_e, f)) : Ue <= f && (u.expiredLanes |= _e), ee &= ~_e; } } function es(u) { - return bi(u.pendingLanes); + return wi(u.pendingLanes); } - function Nl(u) { - var f = u.pendingLanes & ~Hn; - return f !== an ? f : f & Hn ? Hn : an; + function kl(u) { + var f = u.pendingLanes & ~Gn; + return f !== sn ? f : f & Gn ? Gn : sn; } function Ia(u) { - return (u & Hr) !== an; + return (u & Hr) !== sn; } - function Fl(u) { - return (u & oc) !== an; + function Il(u) { + return (u & oc) !== sn; } - function _f(u) { - return (u & zl) === u; + function bf(u) { + return (u & Fl) === u; } - function Wd(u) { - return (u & yf) === u; + function jd(u) { + return (u & _f) === u; } function Vo(u, f) { - var M = Ho | nl | ac | Du; - return (f & M) !== an; + var M = Ho | rl | ac | Pu; + return (f & M) !== sn; } - function Sv(u, f) { - return (f & u.expiredLanes) !== an; + function bv(u, f) { + return (f & u.expiredLanes) !== sn; } - function vl(u) { - return (u & yf) !== 0; + function gl(u) { + return (u & _f) !== 0; } - function bo() { - var u = oi; - return oi <<= 1, (oi & yf) === 0 && (oi = sc), u; + function wo() { + var u = si; + return si <<= 1, (si & _f) === 0 && (si = sc), u; } - function Kh() { - var u = Gn; - return Gn <<= 1, (Gn & zl) === 0 && (Gn = Dc), u; + function tp() { + var u = Wn; + return Wn <<= 1, (Wn & Fl) === 0 && (Wn = Lc), u; } function lc(u) { return u & -u; } - function cu(u) { + function du(u) { return lc(u); } - function _s(u) { - return 31 - td(u); + function ws(u) { + return 31 - rd(u); } - function Oc(u) { - return _s(u); + function Uc(u) { + return ws(u); } function Vr(u, f) { - return (u & f) !== an; + return (u & f) !== sn; } function uc(u, f) { return (u & f) === f; } - function zr(u, f) { + function Ur(u, f) { return u | f; } - function Ks(u, f) { + function $s(u, f) { return u & ~f; } - function ps(u, f) { + function ms(u, f) { return u & f; } - function Uc(u) { + function zc(u) { return u; } - function pn(u, f) { - return u !== Ir && u < f ? u : f; + function vn(u, f) { + return u !== kr && u < f ? u : f; } - function kl(u) { - for (var f = [], M = 0; M < nd; M++) + function Bl(u) { + for (var f = [], M = 0; M < id; M++) f.push(u); return f; } - function wo(u, f, M) { - u.pendingLanes |= f, f !== ka && (u.suspendedLanes = an, u.pingedLanes = an); - var A = u.eventTimes, z = Oc(f); + function bo(u, f, M) { + u.pendingLanes |= f, f !== ka && (u.suspendedLanes = sn, u.pingedLanes = sn); + var A = u.eventTimes, z = Uc(f); A[z] = M; } - function Nm(u, f) { + function Im(u, f) { u.suspendedLanes |= f, u.pingedLanes &= ~f; for (var M = u.expirationTimes, A = f; A > 0; ) { - var z = _s(A), j = 1 << z; - M[z] = Bi, A &= ~j; + var z = ws(A), W = 1 << z; + M[z] = Vi, A &= ~W; } } - function wh(u, f, M) { + function Eh(u, f, M) { u.pingedLanes |= u.suspendedLanes & f; } - function Ou(u, f) { + function zu(u, f) { var M = u.pendingLanes & ~f; u.pendingLanes = f, u.suspendedLanes = 0, u.pingedLanes = 0, u.expiredLanes &= f, u.mutableReadLanes &= f, u.entangledLanes &= f; - for (var A = u.entanglements, z = u.eventTimes, j = u.expirationTimes, te = M; te > 0; ) { - var se = _s(te), Se = 1 << se; - A[se] = an, z[se] = Bi, j[se] = Bi, te &= ~Se; + for (var A = u.entanglements, z = u.eventTimes, W = u.expirationTimes, ee = M; ee > 0; ) { + var ae = ws(ee), _e = 1 << ae; + A[ae] = sn, z[ae] = Vi, W[ae] = Vi, ee &= ~_e; } } function bs(u, f) { for (var M = u.entangledLanes |= f, A = u.entanglements, z = M; z; ) { - var j = _s(z), te = 1 << j; - te & f | A[j] & f && (A[j] |= f), z &= ~te; + var W = ws(z), ee = 1 << W; + ee & f | A[W] & f && (A[W] |= f), z &= ~ee; } } - function gl(u, f) { + function yl(u, f) { var M = lc(f), A; switch (M) { - case nl: + case rl: A = Ho; break; - case Du: + case Pu: A = ac; break; case sc: - case ds: - case Zs: - case zm: - case Jh: - case Vd: + case hs: + case Js: + case km: + case ep: + case Gd: case bh: - case xf: - case Lu: - case rd: - case uu: case Sf: - case Rc: - case Gd: - case id: + case Ou: + case ad: + case fu: + case wf: case Ac: + case Wd: + case sd: case Dc: case Lc: - case Os: - case Pu: - case _o: - A = Cc; + case Pc: + case Us: + case Uu: + case So: + A = Rc; break; case ka: - A = Js; + A = Ks; break; default: - A = Ir; + A = kr; break; } - return (A & (u.suspendedLanes | f)) !== Ir ? Ir : A; + return (A & (u.suspendedLanes | f)) !== kr ? kr : A; } function ga(u, f, M) { if (!!ns) for (var A = u.pendingUpdatersLaneMap; M > 0; ) { - var z = Oc(M), j = 1 << z, te = A[z]; - te.add(f), M &= ~j; + var z = Uc(M), W = 1 << z, ee = A[z]; + ee.add(f), M &= ~W; } } - function fu(u, f) { + function hu(u, f) { if (!!ns) for (var M = u.pendingUpdatersLaneMap, A = u.memoizedUpdaters; f > 0; ) { - var z = Oc(f), j = 1 << z, te = M[z]; - te.size > 0 && (te.forEach(function(se) { - var Se = se.alternate; - (Se === null || !A.has(Se)) && A.add(se); - }), te.clear()), f &= ~j; + var z = Uc(f), W = 1 << z, ee = M[z]; + ee.size > 0 && (ee.forEach(function(ae) { + var _e = ae.alternate; + (_e === null || !A.has(_e)) && A.add(ae); + }), ee.clear()), f &= ~W; } } - var Us = Hr, sd = nl, Il = Du, Go = ka, jd = Ir; - function rl() { - return jd; + var zs = Hr, ld = rl, Hl = Pu, Go = ka, Yd = kr; + function il() { + return Yd; } - function zs(u) { - jd = u; + function Ns(u) { + Yd = u; } function fa(u, f) { - var M = jd; + var M = Yd; try { - return jd = u, f(); + return Yd = u, f(); } finally { - jd = M; + Yd = M; } } - function Uu(u, f) { + function Nu(u, f) { return u !== 0 && u < f ? u : f; } - function Hp(u, f) { + function Wp(u, f) { return u === 0 || u > f ? u : f; } - function du(u, f) { + function pu(u, f) { return u !== 0 && u < f; } - function Bl(u) { + function Vl(u) { var f = lc(u); - return du(Us, f) ? du(sd, f) ? Fl(f) ? Il : Go : sd : Us; + return pu(zs, f) ? pu(ld, f) ? Il(f) ? Hl : Go : ld : zs; } - var $h = i.unstable_scheduleCallback, bf = i.unstable_cancelCallback, $s = i.unstable_shouldYield, Yd = i.unstable_requestPaint, da = i.unstable_now, Hi = i.unstable_ImmediatePriority, wn = i.unstable_UserBlockingPriority, Qi = i.unstable_NormalPriority, ya = i.unstable_IdlePriority, ep = i.unstable_yieldValue, Wo = i.unstable_setDisableYieldValue, jo = null, ts = null, An = null, xa = !1, ns = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u"; - function wf(u) { + var np = i.unstable_scheduleCallback, Ef = i.unstable_cancelCallback, eo = i.unstable_shouldYield, Xd = i.unstable_requestPaint, da = i.unstable_now, Gi = i.unstable_ImmediatePriority, bn = i.unstable_UserBlockingPriority, Qi = i.unstable_NormalPriority, ya = i.unstable_IdlePriority, rp = i.unstable_yieldValue, Wo = i.unstable_setDisableYieldValue, jo = null, ts = null, An = null, xa = !1, ns = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u"; + function Mf(u) { if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u") return !1; var f = __REACT_DEVTOOLS_GLOBAL_HOOK__; if (f.isDisabled) return !0; if (!f.supportsFiber) - return m("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"), !0; + return g("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"), !0; try { - I && (u = _({}, u, { - getLaneLabelMap: od, - injectProfilingHooks: Hl + B && (u = w({}, u, { + getLaneLabelMap: ud, + injectProfilingHooks: Gl })), jo = f.inject(u), ts = f; } catch (M) { - m("React instrumentation encountered an error: %s.", M); + g("React instrumentation encountered an error: %s.", M); } return !!f.checkDCE; } - function Sa(u, f) { + function _a(u, f) { if (ts && typeof ts.onScheduleFiberRoot == "function") try { ts.onScheduleFiberRoot(jo, u, f); } catch (M) { - xa || (xa = !0, m("React instrumentation encountered an error: %s", M)); + xa || (xa = !0, g("React instrumentation encountered an error: %s", M)); } } - function Kr(u, f) { + function Qr(u, f) { if (ts && typeof ts.onCommitFiberRoot == "function") try { - var M = (u.current.flags & Vn) === Vn; - if (X) { + var M = (u.current.flags & Bn) === Bn; + if (Q) { var A; switch (f) { - case Us: - A = Hi; + case zs: + A = Gi; break; - case sd: - A = wn; + case ld: + A = bn; break; - case Il: + case Hl: A = Qi; break; case Go: @@ -25435,7 +25435,7 @@ function p9() { ts.onCommitFiberRoot(jo, u, A, M); } } catch (z) { - xa || (xa = !0, m("React instrumentation encountered an error: %s", z)); + xa || (xa = !0, g("React instrumentation encountered an error: %s", z)); } } function Ra(u) { @@ -25443,7 +25443,7 @@ function p9() { try { ts.onPostCommitFiberRoot(jo, u); } catch (f) { - xa || (xa = !0, m("React instrumentation encountered an error: %s", f)); + xa || (xa = !0, g("React instrumentation encountered an error: %s", f)); } } function Ba(u) { @@ -25451,75 +25451,75 @@ function p9() { try { ts.onCommitFiberUnmount(jo, u); } catch (f) { - xa || (xa = !0, m("React instrumentation encountered an error: %s", f)); + xa || (xa = !0, g("React instrumentation encountered an error: %s", f)); } } - function ci(u) { - if (typeof ep == "function" && (Wo(u), d(u)), ts && typeof ts.setStrictMode == "function") + function li(u) { + if (typeof rp == "function" && (Wo(u), d(u)), ts && typeof ts.setStrictMode == "function") try { ts.setStrictMode(jo, u); } catch (f) { - xa || (xa = !0, m("React instrumentation encountered an error: %s", f)); + xa || (xa = !0, g("React instrumentation encountered an error: %s", f)); } } - function Hl(u) { + function Gl(u) { An = u; } - function od() { + function ud() { { - for (var u = /* @__PURE__ */ new Map(), f = 1, M = 0; M < nd; M++) { + for (var u = /* @__PURE__ */ new Map(), f = 1, M = 0; M < id; M++) { var A = vr(f); u.set(f, A), f *= 2; } return u; } } - function ws(u) { + function Es(u) { An !== null && typeof An.markCommitStarted == "function" && An.markCommitStarted(u); } - function Xd() { + function qd() { An !== null && typeof An.markCommitStopped == "function" && An.markCommitStopped(); } - function zc(u) { + function Nc(u) { An !== null && typeof An.markComponentRenderStarted == "function" && An.markComponentRenderStarted(u); } function cc() { An !== null && typeof An.markComponentRenderStopped == "function" && An.markComponentRenderStopped(); } - function qd(u) { + function Qd(u) { An !== null && typeof An.markComponentPassiveEffectMountStarted == "function" && An.markComponentPassiveEffectMountStarted(u); } - function ld() { + function cd() { An !== null && typeof An.markComponentPassiveEffectMountStopped == "function" && An.markComponentPassiveEffectMountStopped(); } - function il(u) { + function al(u) { An !== null && typeof An.markComponentPassiveEffectUnmountStarted == "function" && An.markComponentPassiveEffectUnmountStarted(u); } - function Fm() { + function Bm() { An !== null && typeof An.markComponentPassiveEffectUnmountStopped == "function" && An.markComponentPassiveEffectUnmountStopped(); } - function Ef(u) { + function Tf(u) { An !== null && typeof An.markComponentLayoutEffectMountStarted == "function" && An.markComponentLayoutEffectMountStarted(u); } - function Qd() { + function Zd() { An !== null && typeof An.markComponentLayoutEffectMountStopped == "function" && An.markComponentLayoutEffectMountStopped(); } - function Mf(u) { + function Cf(u) { An !== null && typeof An.markComponentLayoutEffectUnmountStarted == "function" && An.markComponentLayoutEffectUnmountStarted(u); } - function Vl() { + function Wl() { An !== null && typeof An.markComponentLayoutEffectUnmountStopped == "function" && An.markComponentLayoutEffectUnmountStopped(); } - function Gl(u, f, M) { + function jl(u, f, M) { An !== null && typeof An.markComponentErrored == "function" && An.markComponentErrored(u, f, M); } - function ud(u, f, M) { + function fd(u, f, M) { An !== null && typeof An.markComponentSuspended == "function" && An.markComponentSuspended(u, f, M); } - function Wl(u) { + function Yl(u) { An !== null && typeof An.markLayoutEffectsStarted == "function" && An.markLayoutEffectsStarted(u); } - function Eh() { + function Mh() { An !== null && typeof An.markLayoutEffectsStopped == "function" && An.markLayoutEffectsStopped(); } function fc(u) { @@ -25528,54 +25528,54 @@ function p9() { function hr() { An !== null && typeof An.markPassiveEffectsStopped == "function" && An.markPassiveEffectsStopped(); } - function Yr(u) { + function Gr(u) { An !== null && typeof An.markRenderStarted == "function" && An.markRenderStarted(u); } function fr() { An !== null && typeof An.markRenderYielded == "function" && An.markRenderYielded(); } - function fi() { + function ui() { An !== null && typeof An.markRenderStopped == "function" && An.markRenderStopped(); } - function Ns(u) { + function Fs(u) { An !== null && typeof An.markRenderScheduled == "function" && An.markRenderScheduled(u); } - function jl(u, f) { + function Xl(u, f) { An !== null && typeof An.markForceUpdateScheduled == "function" && An.markForceUpdateScheduled(u, f); } - function Nc(u, f) { + function Fc(u, f) { An !== null && typeof An.markStateUpdateScheduled == "function" && An.markStateUpdateScheduled(u, f); } - function Sr(u, f) { + function _r(u, f) { return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f; } - var Eo = typeof Object.is == "function" ? Object.is : Sr, Ai = null, Ht = !1, vi = !1; + var Eo = typeof Object.is == "function" ? Object.is : _r, Ai = null, Ht = !1, pi = !1; function lr(u) { Ai === null ? Ai = [u] : Ai.push(u); } - function Fc(u) { + function kc(u) { Ht = !0, lr(u); } function Ha() { Ht && Yo(); } function Yo() { - if (!vi && Ai !== null) { - vi = !0; - var u = 0, f = rl(); + if (!pi && Ai !== null) { + pi = !0; + var u = 0, f = il(); try { var M = !0, A = Ai; - for (zs(Us); u < A.length; u++) { + for (Ns(zs); u < A.length; u++) { var z = A[u]; do z = z(M); while (z !== null); } Ai = null, Ht = !1; - } catch (j) { - throw Ai !== null && (Ai = Ai.slice(u + 1)), $h(Hi, Yo), j; + } catch (W) { + throw Ai !== null && (Ai = Ai.slice(u + 1)), np(Gi, Yo), W; } finally { - zs(f), vi = !1; + Ns(f), pi = !1; } } return null; @@ -25584,11 +25584,11 @@ function p9() { var f = u.current.memoizedState; return f.isDehydrated; } - var Tf = o.ReactCurrentBatchConfig, Cf = null; - function Rf() { - return Tf.transition; + var Rf = s.ReactCurrentBatchConfig, Af = null; + function Df() { + return Rf.transition; } - function ia(u, f) { + function aa(u, f) { if (Eo(u, f)) return !0; if (typeof u != "object" || u === null || typeof f != "object" || f === null) @@ -25597,39 +25597,39 @@ function p9() { if (M.length !== A.length) return !1; for (var z = 0; z < M.length; z++) { - var j = M[z]; - if (!rc.call(f, j) || !Eo(u[j], f[j])) + var W = M[z]; + if (!rc.call(f, W) || !Eo(u[W], f[W])) return !1; } return !0; } - function Fs(u) { + function ks(u) { switch (u._debugOwner && u._debugOwner.type, u._debugSource, u.tag) { - case le: + case ue: return Ss(u.type); - case Xe: + case Ve: return Ss("Lazy"); - case ce: + case he: return Ss("Suspense"); - case Ue: + case Ne: return Ss("SuspenseList"); - case $: - case ne: - case we: + case te: + case re: + case Ee: return Na(u.type); - case pe: + case ve: return Na(u.type.render); - case W: + case Y: return nc(u.type); default: return ""; } } - function Af(u) { + function Lf(u) { try { var f = "", M = u; do - f += Fs(M), M = M.return; + f += ks(M), M = M.return; while (M); return f; } catch (A) { @@ -25638,30 +25638,30 @@ Error generating stack: ` + A.message + ` ` + A.stack; } } - var Zd = o.ReactDebugCurrentFrame, eo = null, Yl = !1; - function tp() { + var Jd = s.ReactDebugCurrentFrame, to = null, ql = !1; + function ip() { { - if (eo === null) + if (to === null) return null; - var u = eo._debugOwner; + var u = to._debugOwner; if (u !== null && typeof u < "u") - return Tt(u); + return wt(u); } return null; } - function kc() { - return eo === null ? "" : Af(eo); + function Ic() { + return to === null ? "" : Lf(to); } - function Es() { - Zd.getCurrentStack = null, eo = null, Yl = !1; + function Ms() { + Jd.getCurrentStack = null, to = null, ql = !1; } - function wi(u) { - Zd.getCurrentStack = kc, eo = u, Yl = !1; + function bi(u) { + Jd.getCurrentStack = Ic, to = u, ql = !1; } - function to(u) { - Yl = u; + function no(u) { + ql = u; } - var Xl = { + var Ql = { recordUnsafeLifecycleWarnings: function(u, f) { }, flushPendingUnsafeLifecycleWarnings: function() { @@ -25674,117 +25674,117 @@ Error generating stack: ` + A.message + ` } }; { - var Ic = function(u) { + var Bc = function(u) { for (var f = null, M = u; M !== null; ) M.mode & Fa && (f = M), M = M.return; return f; - }, hu = function(u) { + }, mu = function(u) { var f = []; return u.forEach(function(M) { f.push(M); }), f.sort().join(", "); - }, Df = [], pu = [], zu = [], Mo = [], Bc = [], cd = [], Xo = /* @__PURE__ */ new Set(); - Xl.recordUnsafeLifecycleWarnings = function(u, f) { - Xo.has(u.type) || (typeof f.componentWillMount == "function" && f.componentWillMount.__suppressDeprecationWarning !== !0 && Df.push(u), u.mode & Fa && typeof f.UNSAFE_componentWillMount == "function" && pu.push(u), typeof f.componentWillReceiveProps == "function" && f.componentWillReceiveProps.__suppressDeprecationWarning !== !0 && zu.push(u), u.mode & Fa && typeof f.UNSAFE_componentWillReceiveProps == "function" && Mo.push(u), typeof f.componentWillUpdate == "function" && f.componentWillUpdate.__suppressDeprecationWarning !== !0 && Bc.push(u), u.mode & Fa && typeof f.UNSAFE_componentWillUpdate == "function" && cd.push(u)); - }, Xl.flushPendingUnsafeLifecycleWarnings = function() { + }, Pf = [], vu = [], Fu = [], Mo = [], Hc = [], dd = [], Xo = /* @__PURE__ */ new Set(); + Ql.recordUnsafeLifecycleWarnings = function(u, f) { + Xo.has(u.type) || (typeof f.componentWillMount == "function" && f.componentWillMount.__suppressDeprecationWarning !== !0 && Pf.push(u), u.mode & Fa && typeof f.UNSAFE_componentWillMount == "function" && vu.push(u), typeof f.componentWillReceiveProps == "function" && f.componentWillReceiveProps.__suppressDeprecationWarning !== !0 && Fu.push(u), u.mode & Fa && typeof f.UNSAFE_componentWillReceiveProps == "function" && Mo.push(u), typeof f.componentWillUpdate == "function" && f.componentWillUpdate.__suppressDeprecationWarning !== !0 && Hc.push(u), u.mode & Fa && typeof f.UNSAFE_componentWillUpdate == "function" && dd.push(u)); + }, Ql.flushPendingUnsafeLifecycleWarnings = function() { var u = /* @__PURE__ */ new Set(); - Df.length > 0 && (Df.forEach(function(It) { - u.add(Tt(It) || "Component"), Xo.add(It.type); - }), Df = []); + Pf.length > 0 && (Pf.forEach(function(It) { + u.add(wt(It) || "Component"), Xo.add(It.type); + }), Pf = []); var f = /* @__PURE__ */ new Set(); - pu.length > 0 && (pu.forEach(function(It) { - f.add(Tt(It) || "Component"), Xo.add(It.type); - }), pu = []); + vu.length > 0 && (vu.forEach(function(It) { + f.add(wt(It) || "Component"), Xo.add(It.type); + }), vu = []); var M = /* @__PURE__ */ new Set(); - zu.length > 0 && (zu.forEach(function(It) { - M.add(Tt(It) || "Component"), Xo.add(It.type); - }), zu = []); + Fu.length > 0 && (Fu.forEach(function(It) { + M.add(wt(It) || "Component"), Xo.add(It.type); + }), Fu = []); var A = /* @__PURE__ */ new Set(); Mo.length > 0 && (Mo.forEach(function(It) { - A.add(Tt(It) || "Component"), Xo.add(It.type); + A.add(wt(It) || "Component"), Xo.add(It.type); }), Mo = []); var z = /* @__PURE__ */ new Set(); - Bc.length > 0 && (Bc.forEach(function(It) { - z.add(Tt(It) || "Component"), Xo.add(It.type); - }), Bc = []); - var j = /* @__PURE__ */ new Set(); - if (cd.length > 0 && (cd.forEach(function(It) { - j.add(Tt(It) || "Component"), Xo.add(It.type); - }), cd = []), f.size > 0) { - var te = hu(f); - m(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details. + Hc.length > 0 && (Hc.forEach(function(It) { + z.add(wt(It) || "Component"), Xo.add(It.type); + }), Hc = []); + var W = /* @__PURE__ */ new Set(); + if (dd.length > 0 && (dd.forEach(function(It) { + W.add(wt(It) || "Component"), Xo.add(It.type); + }), dd = []), f.size > 0) { + var ee = mu(f); + g(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details. * Move code with side effects to componentDidMount, and set initial state in the constructor. -Please update the following components: %s`, te); +Please update the following components: %s`, ee); } if (A.size > 0) { - var se = hu(A); - m(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details. + var ae = mu(A); + g(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details. * Move data fetching code or side effects to componentDidUpdate. * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state -Please update the following components: %s`, se); +Please update the following components: %s`, ae); } - if (j.size > 0) { - var Se = hu(j); - m(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details. + if (W.size > 0) { + var _e = mu(W); + g(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details. * Move data fetching code or side effects to componentDidUpdate. -Please update the following components: %s`, Se); +Please update the following components: %s`, _e); } if (u.size > 0) { - var Pe = hu(u); - h(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details. + var Ue = mu(u); + p(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details. * Move code with side effects to componentDidMount, and set initial state in the constructor. * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder. -Please update the following components: %s`, Pe); +Please update the following components: %s`, Ue); } if (M.size > 0) { - var Ge = hu(M); - h(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details. + var We = mu(M); + p(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details. * Move data fetching code or side effects to componentDidUpdate. * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder. -Please update the following components: %s`, Ge); +Please update the following components: %s`, We); } if (z.size > 0) { - var yt = hu(z); - h(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details. + var St = mu(z); + p(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details. * Move data fetching code or side effects to componentDidUpdate. * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder. -Please update the following components: %s`, yt); +Please update the following components: %s`, St); } }; - var fd = /* @__PURE__ */ new Map(), mu = /* @__PURE__ */ new Set(); - Xl.recordLegacyContextWarning = function(u, f) { - var M = Ic(u); + var hd = /* @__PURE__ */ new Map(), gu = /* @__PURE__ */ new Set(); + Ql.recordLegacyContextWarning = function(u, f) { + var M = Bc(u); if (M === null) { - m("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."); + g("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."); return; } - if (!mu.has(u.type)) { - var A = fd.get(M); - (u.type.contextTypes != null || u.type.childContextTypes != null || f !== null && typeof f.getChildContext == "function") && (A === void 0 && (A = [], fd.set(M, A)), A.push(u)); + if (!gu.has(u.type)) { + var A = hd.get(M); + (u.type.contextTypes != null || u.type.childContextTypes != null || f !== null && typeof f.getChildContext == "function") && (A === void 0 && (A = [], hd.set(M, A)), A.push(u)); } - }, Xl.flushLegacyContextWarning = function() { - fd.forEach(function(u, f) { + }, Ql.flushLegacyContextWarning = function() { + hd.forEach(function(u, f) { if (u.length !== 0) { var M = u[0], A = /* @__PURE__ */ new Set(); - u.forEach(function(j) { - A.add(Tt(j) || "Component"), mu.add(j.type); + u.forEach(function(W) { + A.add(wt(W) || "Component"), gu.add(W.type); }); - var z = hu(A); + var z = mu(A); try { - wi(M), m(`Legacy context API has been detected within a strict-mode tree. + bi(M), g(`Legacy context API has been detected within a strict-mode tree. The old API will be supported in all 16.x releases, but applications using it should migrate to the new version. @@ -25792,111 +25792,111 @@ Please update the following components: %s Learn more about this warning here: https://reactjs.org/link/legacy-context`, z); } finally { - Es(); + Ms(); } } }); - }, Xl.discardPendingWarnings = function() { - Df = [], pu = [], zu = [], Mo = [], Bc = [], cd = [], fd = /* @__PURE__ */ new Map(); + }, Ql.discardPendingWarnings = function() { + Pf = [], vu = [], Fu = [], Mo = [], Hc = [], dd = [], hd = /* @__PURE__ */ new Map(); }; } - function dd(u) { + function pd(u) { { var f = typeof Symbol == "function" && Symbol.toStringTag, M = f && u[Symbol.toStringTag] || u.constructor.name || "Object"; return M; } } - function Ms(u) { + function Ts(u) { try { - return ks(u), !1; + return Is(u), !1; } catch { return !0; } } - function ks(u) { + function Is(u) { return "" + u; } - function vu(u) { - if (Ms(u)) - return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", dd(u)), ks(u); + function yu(u) { + if (Ts(u)) + return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pd(u)), Is(u); } - function dg(u, f) { - if (Ms(u)) - return m("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.", f, dd(u)), ks(u); + function mg(u, f) { + if (Ts(u)) + return g("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.", f, pd(u)), Is(u); } - function ii(u, f) { + function ti(u, f) { if (u && u.defaultProps) { - var M = _({}, f), A = u.defaultProps; + var M = w({}, f), A = u.defaultProps; for (var z in A) M[z] === void 0 && (M[z] = A[z]); return M; } return f; } - var Nu = Mn(null), Lf; - Lf = {}; - var dc = null, Pf = null, Vp = null, y = !1; + var ku = Mn(null), Of; + Of = {}; + var dc = null, Uf = null, jp = null, y = !1; function x() { - dc = null, Pf = null, Vp = null, y = !1; + dc = null, Uf = null, jp = null, y = !1; } function L() { y = !0; } - function H() { + function k() { y = !1; } - function q(u, f, M) { - go ? (or(Nu, f._currentValue, u), f._currentValue = M, f._currentRenderer !== void 0 && f._currentRenderer !== null && f._currentRenderer !== Lf && m("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."), f._currentRenderer = Lf) : (or(Nu, f._currentValue2, u), f._currentValue2 = M, f._currentRenderer2 !== void 0 && f._currentRenderer2 !== null && f._currentRenderer2 !== Lf && m("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."), f._currentRenderer2 = Lf); + function X(u, f, M) { + go ? (or(ku, f._currentValue, u), f._currentValue = M, f._currentRenderer !== void 0 && f._currentRenderer !== null && f._currentRenderer !== Of && g("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."), f._currentRenderer = Of) : (or(ku, f._currentValue2, u), f._currentValue2 = M, f._currentRenderer2 !== void 0 && f._currentRenderer2 !== null && f._currentRenderer2 !== Of && g("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."), f._currentRenderer2 = Of); } - function ee(u, f) { - var M = Nu.current; - Kn(Nu, f), go ? u._currentValue = M : u._currentValue2 = M; + function $(u, f) { + var M = ku.current; + $n(ku, f), go ? u._currentValue = M : u._currentValue2 = M; } function Ae(u, f, M) { for (var A = u; A !== null; ) { var z = A.alternate; - if (uc(A.childLanes, f) ? z !== null && !uc(z.childLanes, f) && (z.childLanes = zr(z.childLanes, f)) : (A.childLanes = zr(A.childLanes, f), z !== null && (z.childLanes = zr(z.childLanes, f))), A === M) + if (uc(A.childLanes, f) ? z !== null && !uc(z.childLanes, f) && (z.childLanes = Ur(z.childLanes, f)) : (A.childLanes = Ur(A.childLanes, f), z !== null && (z.childLanes = Ur(z.childLanes, f))), A === M) break; A = A.return; } - A !== M && m("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue."); + A !== M && g("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue."); } - function Ke(u, f, M) { + function $e(u, f, M) { kt(u, f, M); } function kt(u, f, M) { var A = u.child; for (A !== null && (A.return = u); A !== null; ) { - var z = void 0, j = A.dependencies; - if (j !== null) { + var z = void 0, W = A.dependencies; + if (W !== null) { z = A.child; - for (var te = j.firstContext; te !== null; ) { - if (te.context === f) { - if (A.tag === W) { - var se = cu(M), Se = Er(Bi, se); - Se.tag = ms; - var Pe = A.updateQueue; - if (Pe !== null) { - var Ge = Pe.shared, yt = Ge.pending; - yt === null ? Se.next = Se : (Se.next = yt.next, yt.next = Se), Ge.pending = Se; + for (var ee = W.firstContext; ee !== null; ) { + if (ee.context === f) { + if (A.tag === Y) { + var ae = du(M), _e = Er(Vi, ae); + _e.tag = vs; + var Ue = A.updateQueue; + if (Ue !== null) { + var We = Ue.shared, St = We.pending; + St === null ? _e.next = _e : (_e.next = St.next, St.next = _e), We.pending = _e; } } - A.lanes = zr(A.lanes, M); + A.lanes = Ur(A.lanes, M); var It = A.alternate; - It !== null && (It.lanes = zr(It.lanes, M)), Ae(A.return, M, u), j.lanes = zr(j.lanes, M); + It !== null && (It.lanes = Ur(It.lanes, M)), Ae(A.return, M, u), W.lanes = Ur(W.lanes, M); break; } - te = te.next; + ee = ee.next; } - } else if (A.tag === Be) + } else if (A.tag === He) z = A.type === u.type ? null : A.child; - else if (A.tag === st) { - var jt = A.return; - if (jt === null) + else if (A.tag === rt) { + var Yt = A.return; + if (Yt === null) throw new Error("We just came from a parent so we must have had a parent. This is a bug in React."); - jt.lanes = zr(jt.lanes, M); - var dn = jt.alternate; - dn !== null && (dn.lanes = zr(dn.lanes, M)), Ae(jt, M, u), z = A.sibling; + Yt.lanes = Ur(Yt.lanes, M); + var pn = Yt.alternate; + pn !== null && (pn.lanes = Ur(pn.lanes, M)), Ae(Yt, M, u), z = A.sibling; } else z = A.child; if (z !== null) @@ -25917,59 +25917,59 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, z) A = z; } } - function cn(u, f) { - dc = u, Pf = null, Vp = null; + function hn(u, f) { + dc = u, Uf = null, jp = null; var M = u.dependencies; if (M !== null) { var A = M.firstContext; A !== null && (Vr(M.lanes, f) && sx(), M.firstContext = null); } } - function bn(u) { - y && m("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); + function wn(u) { + y && g("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); var f = go ? u._currentValue : u._currentValue2; - if (Vp !== u) { + if (jp !== u) { var M = { context: u, memoizedValue: f, next: null }; - if (Pf === null) { + if (Uf === null) { if (dc === null) throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); - Pf = M, dc.dependencies = { - lanes: an, + Uf = M, dc.dependencies = { + lanes: sn, firstContext: M }; } else - Pf = Pf.next = M; + Uf = Uf.next = M; } return f; } - var wr = null; + var br = null; function ur(u) { - wr === null ? wr = [u] : wr.push(u); + br === null ? br = [u] : br.push(u); } - function _a() { - if (wr !== null) { - for (var u = 0; u < wr.length; u++) { - var f = wr[u], M = f.interleaved; + function Sa() { + if (br !== null) { + for (var u = 0; u < br.length; u++) { + var f = br[u], M = f.interleaved; if (M !== null) { f.interleaved = null; var A = M.next, z = f.pending; if (z !== null) { - var j = z.next; - z.next = A, M.next = j; + var W = z.next; + z.next = A, M.next = W; } f.pending = M; } } - wr = null; + br = null; } } - var Tn = 0, Li = 1, ms = 2, dt = 3, Qe = !1, At, qt; - At = !1, qt = null; - function Wn(u) { + var Tn = 0, Li = 1, vs = 2, pt = 3, Ze = !1, Lt, Qt; + Lt = !1, Qt = null; + function jn(u) { var f = { baseState: u.memoizedState, firstBaseUpdate: null, @@ -25977,13 +25977,13 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, z) shared: { pending: null, interleaved: null, - lanes: an + lanes: sn }, effects: null }; u.updateQueue = f; } - function Xr(u, f) { + function Wr(u, f) { var M = f.updateQueue, A = u.updateQueue; if (M === A) { var z = { @@ -26011,586 +26011,586 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, z) var A = u.updateQueue; if (A !== null) { var z = A.shared; - if (N_(u)) { - var j = z.interleaved; - j === null ? (f.next = f, ur(z)) : (f.next = j.next, j.next = f), z.interleaved = f; + if (HS(u)) { + var W = z.interleaved; + W === null ? (f.next = f, ur(z)) : (f.next = W.next, W.next = f), z.interleaved = f; } else { - var te = z.pending; - te === null ? f.next = f : (f.next = te.next, te.next = f), z.pending = f; + var ee = z.pending; + ee === null ? f.next = f : (f.next = ee.next, ee.next = f), z.pending = f; } - qt === z && !At && (m("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."), At = !0); + Qt === z && !Lt && (g("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."), Lt = !0); } } function Va(u, f, M) { var A = f.updateQueue; if (A !== null) { var z = A.shared; - if (vl(M)) { - var j = z.lanes; - j = ps(j, u.pendingLanes); - var te = zr(j, M); - z.lanes = te, bs(u, te); + if (gl(M)) { + var W = z.lanes; + W = ms(W, u.pendingLanes); + var ee = Ur(W, M); + z.lanes = ee, bs(u, ee); } } } - function $r(u, f) { + function Zr(u, f) { var M = u.updateQueue, A = u.alternate; if (A !== null) { var z = A.updateQueue; if (M === z) { - var j = null, te = null, se = M.firstBaseUpdate; - if (se !== null) { - var Se = se; + var W = null, ee = null, ae = M.firstBaseUpdate; + if (ae !== null) { + var _e = ae; do { - var Pe = { - eventTime: Se.eventTime, - lane: Se.lane, - tag: Se.tag, - payload: Se.payload, - callback: Se.callback, + var Ue = { + eventTime: _e.eventTime, + lane: _e.lane, + tag: _e.tag, + payload: _e.payload, + callback: _e.callback, next: null }; - te === null ? j = te = Pe : (te.next = Pe, te = Pe), Se = Se.next; - } while (Se !== null); - te === null ? j = te = f : (te.next = f, te = f); + ee === null ? W = ee = Ue : (ee.next = Ue, ee = Ue), _e = _e.next; + } while (_e !== null); + ee === null ? W = ee = f : (ee.next = f, ee = f); } else - j = te = f; + W = ee = f; M = { baseState: z.baseState, - firstBaseUpdate: j, - lastBaseUpdate: te, + firstBaseUpdate: W, + lastBaseUpdate: ee, shared: z.shared, effects: z.effects }, u.updateQueue = M; return; } } - var Ge = M.lastBaseUpdate; - Ge === null ? M.firstBaseUpdate = f : Ge.next = f, M.lastBaseUpdate = f; + var We = M.lastBaseUpdate; + We === null ? M.firstBaseUpdate = f : We.next = f, M.lastBaseUpdate = f; } - function hc(u, f, M, A, z, j) { + function hc(u, f, M, A, z, W) { switch (M.tag) { case Li: { - var te = M.payload; - if (typeof te == "function") { + var ee = M.payload; + if (typeof ee == "function") { L(); - var se = te.call(j, A, z); + var ae = ee.call(W, A, z); { if (u.mode & Fa) { - ci(!0); + li(!0); try { - te.call(j, A, z); + ee.call(W, A, z); } finally { - ci(!1); + li(!1); } } - H(); + k(); } - return se; + return ae; } - return te; + return ee; } - case dt: - u.flags = u.flags & ~qe | Vn; + case pt: + u.flags = u.flags & ~Ye | Bn; case Tn: { - var Se = M.payload, Pe; - if (typeof Se == "function") { - L(), Pe = Se.call(j, A, z); + var _e = M.payload, Ue; + if (typeof _e == "function") { + L(), Ue = _e.call(W, A, z); { if (u.mode & Fa) { - ci(!0); + li(!0); try { - Se.call(j, A, z); + _e.call(W, A, z); } finally { - ci(!1); + li(!1); } } - H(); + k(); } } else - Pe = Se; - return Pe == null ? A : _({}, A, Pe); + Ue = _e; + return Ue == null ? A : w({}, A, Ue); } - case ms: - return Qe = !0, A; + case vs: + return Ze = !0, A; } return A; } - function hd(u, f, M, A) { + function md(u, f, M, A) { var z = u.updateQueue; - Qe = !1, qt = z.shared; - var j = z.firstBaseUpdate, te = z.lastBaseUpdate, se = z.shared.pending; - if (se !== null) { + Ze = !1, Qt = z.shared; + var W = z.firstBaseUpdate, ee = z.lastBaseUpdate, ae = z.shared.pending; + if (ae !== null) { z.shared.pending = null; - var Se = se, Pe = Se.next; - Se.next = null, te === null ? j = Pe : te.next = Pe, te = Se; - var Ge = u.alternate; - if (Ge !== null) { - var yt = Ge.updateQueue, It = yt.lastBaseUpdate; - It !== te && (It === null ? yt.firstBaseUpdate = Pe : It.next = Pe, yt.lastBaseUpdate = Se); + var _e = ae, Ue = _e.next; + _e.next = null, ee === null ? W = Ue : ee.next = Ue, ee = _e; + var We = u.alternate; + if (We !== null) { + var St = We.updateQueue, It = St.lastBaseUpdate; + It !== ee && (It === null ? St.firstBaseUpdate = Ue : It.next = Ue, St.lastBaseUpdate = _e); } } - if (j !== null) { - var jt = z.baseState, dn = an, Sn = null, Tr = null, yi = null, Pr = j; + if (W !== null) { + var Yt = z.baseState, pn = sn, Sn = null, Tr = null, vi = null, Pr = W; do { - var oo = Pr.lane, lo = Pr.eventTime; - if (uc(A, oo)) { - if (yi !== null) { - var Zt = { - eventTime: lo, - lane: Ir, + var lo = Pr.lane, uo = Pr.eventTime; + if (uc(A, lo)) { + if (vi !== null) { + var Jt = { + eventTime: uo, + lane: kr, tag: Pr.tag, payload: Pr.payload, callback: Pr.callback, next: null }; - yi = yi.next = Zt; + vi = vi.next = Jt; } - jt = hc(u, z, Pr, jt, f, M); - var wt = Pr.callback; - if (wt !== null && Pr.lane !== Ir) { - u.flags |= ir; + Yt = hc(u, z, Pr, Yt, f, M); + var Mt = Pr.callback; + if (Mt !== null && Pr.lane !== kr) { + u.flags |= Ir; var En = z.effects; En === null ? z.effects = [Pr] : En.push(Pr); } } else { - var Et = { - eventTime: lo, - lane: oo, + var Ct = { + eventTime: uo, + lane: lo, tag: Pr.tag, payload: Pr.payload, callback: Pr.callback, next: null }; - yi === null ? (Tr = yi = Et, Sn = jt) : yi = yi.next = Et, dn = zr(dn, oo); + vi === null ? (Tr = vi = Ct, Sn = Yt) : vi = vi.next = Ct, pn = Ur(pn, lo); } if (Pr = Pr.next, Pr === null) { - if (se = z.shared.pending, se === null) + if (ae = z.shared.pending, ae === null) break; - var yr = se, Un = yr.next; - yr.next = null, Pr = Un, z.lastBaseUpdate = yr, z.shared.pending = null; + var yr = ae, Nn = yr.next; + yr.next = null, Pr = Nn, z.lastBaseUpdate = yr, z.shared.pending = null; } } while (!0); - yi === null && (Sn = jt), z.baseState = Sn, z.firstBaseUpdate = Tr, z.lastBaseUpdate = yi; - var ai = z.shared.interleaved; - if (ai !== null) { - var ba = ai; + vi === null && (Sn = Yt), z.baseState = Sn, z.firstBaseUpdate = Tr, z.lastBaseUpdate = vi; + var ni = z.shared.interleaved; + if (ni !== null) { + var wa = ni; do - dn = zr(dn, ba.lane), ba = ba.next; - while (ba !== ai); + pn = Ur(pn, wa.lane), wa = wa.next; + while (wa !== ni); } else - j === null && (z.shared.lanes = an); - gx(dn), u.lanes = dn, u.memoizedState = jt; + W === null && (z.shared.lanes = sn); + gx(pn), u.lanes = pn, u.memoizedState = Yt; } - qt = null; + Qt = null; } - function np(u, f) { + function ap(u, f) { if (typeof u != "function") throw new Error("Invalid argument passed as callback. Expected a function. Instead " + ("received: " + u)); u.call(f); } function gr() { - Qe = !1; + Ze = !1; } - function Gp() { - return Qe; + function Yp() { + return Ze; } - function km(u, f, M) { + function Hm(u, f, M) { var A = f.effects; if (f.effects = null, A !== null) for (var z = 0; z < A.length; z++) { - var j = A[z], te = j.callback; - te !== null && (j.callback = null, np(te, M)); + var W = A[z], ee = W.callback; + ee !== null && (W.callback = null, ap(ee, M)); } } - var Of = {}, hg = new r.Component().refs, qo, Qo, rs, Wp, Mh, pc, no, rp, yl, xy; + var zf = {}, vg = new r.Component().refs, qo, Qo, rs, Xp, Th, pc, ro, sp, xl, _y; { - qo = /* @__PURE__ */ new Set(), Qo = /* @__PURE__ */ new Set(), rs = /* @__PURE__ */ new Set(), Wp = /* @__PURE__ */ new Set(), rp = /* @__PURE__ */ new Set(), Mh = /* @__PURE__ */ new Set(), yl = /* @__PURE__ */ new Set(), xy = /* @__PURE__ */ new Set(); - var pg = /* @__PURE__ */ new Set(); - no = function(u, f) { + qo = /* @__PURE__ */ new Set(), Qo = /* @__PURE__ */ new Set(), rs = /* @__PURE__ */ new Set(), Xp = /* @__PURE__ */ new Set(), sp = /* @__PURE__ */ new Set(), Th = /* @__PURE__ */ new Set(), xl = /* @__PURE__ */ new Set(), _y = /* @__PURE__ */ new Set(); + var gg = /* @__PURE__ */ new Set(); + ro = function(u, f) { if (!(u === null || typeof u == "function")) { var M = f + "_" + u; - pg.has(M) || (pg.add(M), m("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.", f, u)); + gg.has(M) || (gg.add(M), g("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.", f, u)); } }, pc = function(u, f) { if (f === void 0) { - var M = at(u) || "Component"; - Mh.has(M) || (Mh.add(M), m("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", M)); + var M = st(u) || "Component"; + Th.has(M) || (Th.add(M), g("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", M)); } - }, Object.defineProperty(Of, "_processChildContext", { + }, Object.defineProperty(zf, "_processChildContext", { enumerable: !1, value: function() { throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal)."); } - }), Object.freeze(Of); + }), Object.freeze(zf); } - function Fu(u, f, M, A) { - var z = u.memoizedState, j = M(A, z); + function Iu(u, f, M, A) { + var z = u.memoizedState, W = M(A, z); { if (u.mode & Fa) { - ci(!0); + li(!0); try { - j = M(A, z); + W = M(A, z); } finally { - ci(!1); + li(!1); } } - pc(f, j); + pc(f, W); } - var te = j == null ? z : _({}, z, j); - if (u.memoizedState = te, u.lanes === an) { - var se = u.updateQueue; - se.baseState = te; + var ee = W == null ? z : w({}, z, W); + if (u.memoizedState = ee, u.lanes === sn) { + var ae = u.updateQueue; + ae.baseState = ee; } } - var Vi = { + var Wi = { isMounted: qa, enqueueSetState: function(u, f, M) { - var A = T(u), z = yc(), j = Wv(A), te = Er(z, j); - te.payload = f, M != null && (no(M, "setState"), te.callback = M), Ar(A, te); - var se = Ml(A, j, z); - se !== null && Va(se, A, j), Nc(A, j); + var A = T(u), z = yc(), W = Xv(A), ee = Er(z, W); + ee.payload = f, M != null && (ro(M, "setState"), ee.callback = M), Ar(A, ee); + var ae = Tl(A, W, z); + ae !== null && Va(ae, A, W), Fc(A, W); }, enqueueReplaceState: function(u, f, M) { - var A = T(u), z = yc(), j = Wv(A), te = Er(z, j); - te.tag = Li, te.payload = f, M != null && (no(M, "replaceState"), te.callback = M), Ar(A, te); - var se = Ml(A, j, z); - se !== null && Va(se, A, j), Nc(A, j); + var A = T(u), z = yc(), W = Xv(A), ee = Er(z, W); + ee.tag = Li, ee.payload = f, M != null && (ro(M, "replaceState"), ee.callback = M), Ar(A, ee); + var ae = Tl(A, W, z); + ae !== null && Va(ae, A, W), Fc(A, W); }, enqueueForceUpdate: function(u, f) { - var M = T(u), A = yc(), z = Wv(M), j = Er(A, z); - j.tag = ms, f != null && (no(f, "forceUpdate"), j.callback = f), Ar(M, j); - var te = Ml(M, z, A); - te !== null && Va(te, M, z), jl(M, z); + var M = T(u), A = yc(), z = Xv(M), W = Er(A, z); + W.tag = vs, f != null && (ro(f, "forceUpdate"), W.callback = f), Ar(M, W); + var ee = Tl(M, z, A); + ee !== null && Va(ee, M, z), Xl(M, z); } }; - function _v(u, f, M, A, z, j, te) { - var se = u.stateNode; - if (typeof se.shouldComponentUpdate == "function") { - var Se = se.shouldComponentUpdate(A, j, te); + function Ev(u, f, M, A, z, W, ee) { + var ae = u.stateNode; + if (typeof ae.shouldComponentUpdate == "function") { + var _e = ae.shouldComponentUpdate(A, W, ee); { if (u.mode & Fa) { - ci(!0); + li(!0); try { - Se = se.shouldComponentUpdate(A, j, te); + _e = ae.shouldComponentUpdate(A, W, ee); } finally { - ci(!1); + li(!1); } } - Se === void 0 && m("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.", at(f) || "Component"); + _e === void 0 && g("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.", st(f) || "Component"); } - return Se; + return _e; } - return f.prototype && f.prototype.isPureReactComponent ? !ia(M, A) || !ia(z, j) : !0; + return f.prototype && f.prototype.isPureReactComponent ? !aa(M, A) || !aa(z, W) : !0; } - function Jn(u, f, M) { + function Kn(u, f, M) { var A = u.stateNode; { - var z = at(f) || "Component", j = A.render; - j || (f.prototype && typeof f.prototype.render == "function" ? m("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?", z) : m("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.", z)), A.getInitialState && !A.getInitialState.isReactClassApproved && !A.state && m("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", z), A.getDefaultProps && !A.getDefaultProps.isReactClassApproved && m("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", z), A.propTypes && m("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.", z), A.contextType && m("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", z), A.contextTypes && m("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.", z), f.contextType && f.contextTypes && !yl.has(f) && (yl.add(f), m("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.", z)), typeof A.componentShouldUpdate == "function" && m("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", z), f.prototype && f.prototype.isPureReactComponent && typeof A.shouldComponentUpdate < "u" && m("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", at(f) || "A pure component"), typeof A.componentDidUnmount == "function" && m("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", z), typeof A.componentDidReceiveProps == "function" && m("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", z), typeof A.componentWillRecieveProps == "function" && m("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", z), typeof A.UNSAFE_componentWillRecieveProps == "function" && m("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", z); - var te = A.props !== M; - A.props !== void 0 && te && m("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", z, z), A.defaultProps && m("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", z, z), typeof A.getSnapshotBeforeUpdate == "function" && typeof A.componentDidUpdate != "function" && !rs.has(f) && (rs.add(f), m("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", at(f))), typeof A.getDerivedStateFromProps == "function" && m("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", z), typeof A.getDerivedStateFromError == "function" && m("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", z), typeof f.getSnapshotBeforeUpdate == "function" && m("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", z); - var se = A.state; - se && (typeof se != "object" || Ti(se)) && m("%s.state: must be set to an object or null", z), typeof A.getChildContext == "function" && typeof f.childContextTypes != "object" && m("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", z); + var z = st(f) || "Component", W = A.render; + W || (f.prototype && typeof f.prototype.render == "function" ? g("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?", z) : g("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.", z)), A.getInitialState && !A.getInitialState.isReactClassApproved && !A.state && g("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", z), A.getDefaultProps && !A.getDefaultProps.isReactClassApproved && g("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", z), A.propTypes && g("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.", z), A.contextType && g("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", z), A.contextTypes && g("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.", z), f.contextType && f.contextTypes && !xl.has(f) && (xl.add(f), g("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.", z)), typeof A.componentShouldUpdate == "function" && g("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", z), f.prototype && f.prototype.isPureReactComponent && typeof A.shouldComponentUpdate < "u" && g("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", st(f) || "A pure component"), typeof A.componentDidUnmount == "function" && g("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", z), typeof A.componentDidReceiveProps == "function" && g("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", z), typeof A.componentWillRecieveProps == "function" && g("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", z), typeof A.UNSAFE_componentWillRecieveProps == "function" && g("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", z); + var ee = A.props !== M; + A.props !== void 0 && ee && g("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", z, z), A.defaultProps && g("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", z, z), typeof A.getSnapshotBeforeUpdate == "function" && typeof A.componentDidUpdate != "function" && !rs.has(f) && (rs.add(f), g("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", st(f))), typeof A.getDerivedStateFromProps == "function" && g("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", z), typeof A.getDerivedStateFromError == "function" && g("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", z), typeof f.getSnapshotBeforeUpdate == "function" && g("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", z); + var ae = A.state; + ae && (typeof ae != "object" || Ti(ae)) && g("%s.state: must be set to an object or null", z), typeof A.getChildContext == "function" && typeof f.childContextTypes != "object" && g("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", z); } } - function Th(u, f) { - f.updater = Vi, u.stateNode = f, C(f, u), f._reactInternalInstance = Of; + function Ch(u, f) { + f.updater = Wi, u.stateNode = f, R(f, u), f._reactInternalInstance = zf; } - function Im(u, f, M) { - var A = !1, z = $n, j = $n, te = f.contextType; + function Vm(u, f, M) { + var A = !1, z = er, W = er, ee = f.contextType; if ("contextType" in f) { - var se = te === null || te !== void 0 && te.$$typeof === ft && te._context === void 0; - if (!se && !xy.has(f)) { - xy.add(f); - var Se = ""; - te === void 0 ? Se = " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : typeof te != "object" ? Se = " However, it is set to a " + typeof te + "." : te.$$typeof === Qt ? Se = " Did you accidentally pass the Context.Provider instead?" : te._context !== void 0 ? Se = " Did you accidentally pass the Context.Consumer instead?" : Se = " However, it is set to an object with keys {" + Object.keys(te).join(", ") + "}.", m("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", at(f) || "Component", Se); + var ae = ee === null || ee !== void 0 && ee.$$typeof === yt && ee._context === void 0; + if (!ae && !_y.has(f)) { + _y.add(f); + var _e = ""; + ee === void 0 ? _e = " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : typeof ee != "object" ? _e = " However, it is set to a " + typeof ee + "." : ee.$$typeof === Vt ? _e = " Did you accidentally pass the Context.Provider instead?" : ee._context !== void 0 ? _e = " Did you accidentally pass the Context.Consumer instead?" : _e = " However, it is set to an object with keys {" + Object.keys(ee).join(", ") + "}.", g("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", st(f) || "Component", _e); } } - if (typeof te == "object" && te !== null) - j = bn(te); + if (typeof ee == "object" && ee !== null) + W = wn(ee); else { - z = fs(u, f, !0); - var Pe = f.contextTypes; - A = Pe != null, j = A ? Ul(u, z) : $n; + z = ds(u, f, !0); + var Ue = f.contextTypes; + A = Ue != null, W = A ? Nl(u, z) : er; } - var Ge = new f(M, j); + var We = new f(M, W); if (u.mode & Fa) { - ci(!0); + li(!0); try { - Ge = new f(M, j); + We = new f(M, W); } finally { - ci(!1); + li(!1); } } - var yt = u.memoizedState = Ge.state !== null && Ge.state !== void 0 ? Ge.state : null; - Th(u, Ge); + var St = u.memoizedState = We.state !== null && We.state !== void 0 ? We.state : null; + Ch(u, We); { - if (typeof f.getDerivedStateFromProps == "function" && yt === null) { - var It = at(f) || "Component"; - Qo.has(It) || (Qo.add(It), m("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", It, Ge.state === null ? "null" : "undefined", It)); - } - if (typeof f.getDerivedStateFromProps == "function" || typeof Ge.getSnapshotBeforeUpdate == "function") { - var jt = null, dn = null, Sn = null; - if (typeof Ge.componentWillMount == "function" && Ge.componentWillMount.__suppressDeprecationWarning !== !0 ? jt = "componentWillMount" : typeof Ge.UNSAFE_componentWillMount == "function" && (jt = "UNSAFE_componentWillMount"), typeof Ge.componentWillReceiveProps == "function" && Ge.componentWillReceiveProps.__suppressDeprecationWarning !== !0 ? dn = "componentWillReceiveProps" : typeof Ge.UNSAFE_componentWillReceiveProps == "function" && (dn = "UNSAFE_componentWillReceiveProps"), typeof Ge.componentWillUpdate == "function" && Ge.componentWillUpdate.__suppressDeprecationWarning !== !0 ? Sn = "componentWillUpdate" : typeof Ge.UNSAFE_componentWillUpdate == "function" && (Sn = "UNSAFE_componentWillUpdate"), jt !== null || dn !== null || Sn !== null) { - var Tr = at(f) || "Component", yi = typeof f.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; - Wp.has(Tr) || (Wp.add(Tr), m(`Unsafe legacy lifecycles will not be called for components using new component APIs. + if (typeof f.getDerivedStateFromProps == "function" && St === null) { + var It = st(f) || "Component"; + Qo.has(It) || (Qo.add(It), g("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", It, We.state === null ? "null" : "undefined", It)); + } + if (typeof f.getDerivedStateFromProps == "function" || typeof We.getSnapshotBeforeUpdate == "function") { + var Yt = null, pn = null, Sn = null; + if (typeof We.componentWillMount == "function" && We.componentWillMount.__suppressDeprecationWarning !== !0 ? Yt = "componentWillMount" : typeof We.UNSAFE_componentWillMount == "function" && (Yt = "UNSAFE_componentWillMount"), typeof We.componentWillReceiveProps == "function" && We.componentWillReceiveProps.__suppressDeprecationWarning !== !0 ? pn = "componentWillReceiveProps" : typeof We.UNSAFE_componentWillReceiveProps == "function" && (pn = "UNSAFE_componentWillReceiveProps"), typeof We.componentWillUpdate == "function" && We.componentWillUpdate.__suppressDeprecationWarning !== !0 ? Sn = "componentWillUpdate" : typeof We.UNSAFE_componentWillUpdate == "function" && (Sn = "UNSAFE_componentWillUpdate"), Yt !== null || pn !== null || Sn !== null) { + var Tr = st(f) || "Component", vi = typeof f.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; + Xp.has(Tr) || (Xp.add(Tr), g(`Unsafe legacy lifecycles will not be called for components using new component APIs. %s uses %s but also contains the following legacy lifecycles:%s%s%s The above lifecycles should be removed. Learn more about this warning here: -https://reactjs.org/link/unsafe-component-lifecycles`, Tr, yi, jt !== null ? ` - ` + jt : "", dn !== null ? ` - ` + dn : "", Sn !== null ? ` +https://reactjs.org/link/unsafe-component-lifecycles`, Tr, vi, Yt !== null ? ` + ` + Yt : "", pn !== null ? ` + ` + pn : "", Sn !== null ? ` ` + Sn : "")); } } } - return A && Hd(u, z, j), Ge; + return A && Vd(u, z, W), We; } function z0(u, f) { var M = f.state; - typeof f.componentWillMount == "function" && f.componentWillMount(), typeof f.UNSAFE_componentWillMount == "function" && f.UNSAFE_componentWillMount(), M !== f.state && (m("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", Tt(u) || "Component"), Vi.enqueueReplaceState(f, f.state, null)); + typeof f.componentWillMount == "function" && f.componentWillMount(), typeof f.UNSAFE_componentWillMount == "function" && f.UNSAFE_componentWillMount(), M !== f.state && (g("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", wt(u) || "Component"), Wi.enqueueReplaceState(f, f.state, null)); } - function jp(u, f, M, A) { + function qp(u, f, M, A) { var z = f.state; if (typeof f.componentWillReceiveProps == "function" && f.componentWillReceiveProps(M, A), typeof f.UNSAFE_componentWillReceiveProps == "function" && f.UNSAFE_componentWillReceiveProps(M, A), f.state !== z) { { - var j = Tt(u) || "Component"; - qo.has(j) || (qo.add(j), m("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", j)); + var W = wt(u) || "Component"; + qo.has(W) || (qo.add(W), g("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", W)); } - Vi.enqueueReplaceState(f, f.state, null); + Wi.enqueueReplaceState(f, f.state, null); } } - function ip(u, f, M, A) { - Jn(u, f, M); + function op(u, f, M, A) { + Kn(u, f, M); var z = u.stateNode; - z.props = M, z.state = u.memoizedState, z.refs = hg, Wn(u); - var j = f.contextType; - if (typeof j == "object" && j !== null) - z.context = bn(j); + z.props = M, z.state = u.memoizedState, z.refs = vg, jn(u); + var W = f.contextType; + if (typeof W == "object" && W !== null) + z.context = wn(W); else { - var te = fs(u, f, !0); - z.context = Ul(u, te); + var ee = ds(u, f, !0); + z.context = Nl(u, ee); } { if (z.state === M) { - var se = at(f) || "Component"; - rp.has(se) || (rp.add(se), m("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", se)); + var ae = st(f) || "Component"; + sp.has(ae) || (sp.add(ae), g("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", ae)); } - u.mode & Fa && Xl.recordLegacyContextWarning(u, z), Xl.recordUnsafeLifecycleWarnings(u, z); + u.mode & Fa && Ql.recordLegacyContextWarning(u, z), Ql.recordUnsafeLifecycleWarnings(u, z); } z.state = u.memoizedState; - var Se = f.getDerivedStateFromProps; - if (typeof Se == "function" && (Fu(u, f, Se, M), z.state = u.memoizedState), typeof f.getDerivedStateFromProps != "function" && typeof z.getSnapshotBeforeUpdate != "function" && (typeof z.UNSAFE_componentWillMount == "function" || typeof z.componentWillMount == "function") && (z0(u, z), hd(u, M, z, A), z.state = u.memoizedState), typeof z.componentDidMount == "function") { - var Pe = fn; - Pe |= mn, (u.mode & So) !== Mr && (Pe |= Zn), u.flags |= Pe; - } - } - function Bm(u, f, M, A) { - var z = u.stateNode, j = u.memoizedProps; - z.props = j; - var te = z.context, se = f.contextType, Se = $n; - if (typeof se == "object" && se !== null) - Se = bn(se); + var _e = f.getDerivedStateFromProps; + if (typeof _e == "function" && (Iu(u, f, _e, M), z.state = u.memoizedState), typeof f.getDerivedStateFromProps != "function" && typeof z.getSnapshotBeforeUpdate != "function" && (typeof z.UNSAFE_componentWillMount == "function" || typeof z.componentWillMount == "function") && (z0(u, z), md(u, M, z, A), z.state = u.memoizedState), typeof z.componentDidMount == "function") { + var Ue = cn; + Ue |= gn, (u.mode & _o) !== Mr && (Ue |= Jn), u.flags |= Ue; + } + } + function Gm(u, f, M, A) { + var z = u.stateNode, W = u.memoizedProps; + z.props = W; + var ee = z.context, ae = f.contextType, _e = er; + if (typeof ae == "object" && ae !== null) + _e = wn(ae); else { - var Pe = fs(u, f, !0); - Se = Ul(u, Pe); + var Ue = ds(u, f, !0); + _e = Nl(u, Ue); } - var Ge = f.getDerivedStateFromProps, yt = typeof Ge == "function" || typeof z.getSnapshotBeforeUpdate == "function"; - !yt && (typeof z.UNSAFE_componentWillReceiveProps == "function" || typeof z.componentWillReceiveProps == "function") && (j !== M || te !== Se) && jp(u, z, M, Se), gr(); - var It = u.memoizedState, jt = z.state = It; - if (hd(u, M, z, A), jt = u.memoizedState, j === M && It === jt && !$a() && !Gp()) { + var We = f.getDerivedStateFromProps, St = typeof We == "function" || typeof z.getSnapshotBeforeUpdate == "function"; + !St && (typeof z.UNSAFE_componentWillReceiveProps == "function" || typeof z.componentWillReceiveProps == "function") && (W !== M || ee !== _e) && qp(u, z, M, _e), gr(); + var It = u.memoizedState, Yt = z.state = It; + if (md(u, M, z, A), Yt = u.memoizedState, W === M && It === Yt && !$a() && !Yp()) { if (typeof z.componentDidMount == "function") { - var dn = fn; - dn |= mn, (u.mode & So) !== Mr && (dn |= Zn), u.flags |= dn; + var pn = cn; + pn |= gn, (u.mode & _o) !== Mr && (pn |= Jn), u.flags |= pn; } return !1; } - typeof Ge == "function" && (Fu(u, f, Ge, M), jt = u.memoizedState); - var Sn = Gp() || _v(u, f, j, M, It, jt, Se); + typeof We == "function" && (Iu(u, f, We, M), Yt = u.memoizedState); + var Sn = Yp() || Ev(u, f, W, M, It, Yt, _e); if (Sn) { - if (!yt && (typeof z.UNSAFE_componentWillMount == "function" || typeof z.componentWillMount == "function") && (typeof z.componentWillMount == "function" && z.componentWillMount(), typeof z.UNSAFE_componentWillMount == "function" && z.UNSAFE_componentWillMount()), typeof z.componentDidMount == "function") { - var Tr = fn; - Tr |= mn, (u.mode & So) !== Mr && (Tr |= Zn), u.flags |= Tr; + if (!St && (typeof z.UNSAFE_componentWillMount == "function" || typeof z.componentWillMount == "function") && (typeof z.componentWillMount == "function" && z.componentWillMount(), typeof z.UNSAFE_componentWillMount == "function" && z.UNSAFE_componentWillMount()), typeof z.componentDidMount == "function") { + var Tr = cn; + Tr |= gn, (u.mode & _o) !== Mr && (Tr |= Jn), u.flags |= Tr; } } else { if (typeof z.componentDidMount == "function") { - var yi = fn; - yi |= mn, (u.mode & So) !== Mr && (yi |= Zn), u.flags |= yi; + var vi = cn; + vi |= gn, (u.mode & _o) !== Mr && (vi |= Jn), u.flags |= vi; } - u.memoizedProps = M, u.memoizedState = jt; + u.memoizedProps = M, u.memoizedState = Yt; } - return z.props = M, z.state = jt, z.context = Se, Sn; + return z.props = M, z.state = Yt, z.context = _e, Sn; } function Sy(u, f, M, A, z) { - var j = f.stateNode; - Xr(u, f); - var te = f.memoizedProps, se = f.type === f.elementType ? te : ii(f.type, te); - j.props = se; - var Se = f.pendingProps, Pe = j.context, Ge = M.contextType, yt = $n; - if (typeof Ge == "object" && Ge !== null) - yt = bn(Ge); + var W = f.stateNode; + Wr(u, f); + var ee = f.memoizedProps, ae = f.type === f.elementType ? ee : ti(f.type, ee); + W.props = ae; + var _e = f.pendingProps, Ue = W.context, We = M.contextType, St = er; + if (typeof We == "object" && We !== null) + St = wn(We); else { - var It = fs(f, M, !0); - yt = Ul(f, It); - } - var jt = M.getDerivedStateFromProps, dn = typeof jt == "function" || typeof j.getSnapshotBeforeUpdate == "function"; - !dn && (typeof j.UNSAFE_componentWillReceiveProps == "function" || typeof j.componentWillReceiveProps == "function") && (te !== Se || Pe !== yt) && jp(f, j, A, yt), gr(); - var Sn = f.memoizedState, Tr = j.state = Sn; - if (hd(f, A, j, z), Tr = f.memoizedState, te === Se && Sn === Tr && !$a() && !Gp() && !U) - return typeof j.componentDidUpdate == "function" && (te !== u.memoizedProps || Sn !== u.memoizedState) && (f.flags |= fn), typeof j.getSnapshotBeforeUpdate == "function" && (te !== u.memoizedProps || Sn !== u.memoizedState) && (f.flags |= ki), !1; - typeof jt == "function" && (Fu(f, M, jt, A), Tr = f.memoizedState); - var yi = Gp() || _v(f, M, se, A, Sn, Tr, yt) || U; - return yi ? (!dn && (typeof j.UNSAFE_componentWillUpdate == "function" || typeof j.componentWillUpdate == "function") && (typeof j.componentWillUpdate == "function" && j.componentWillUpdate(A, Tr, yt), typeof j.UNSAFE_componentWillUpdate == "function" && j.UNSAFE_componentWillUpdate(A, Tr, yt)), typeof j.componentDidUpdate == "function" && (f.flags |= fn), typeof j.getSnapshotBeforeUpdate == "function" && (f.flags |= ki)) : (typeof j.componentDidUpdate == "function" && (te !== u.memoizedProps || Sn !== u.memoizedState) && (f.flags |= fn), typeof j.getSnapshotBeforeUpdate == "function" && (te !== u.memoizedProps || Sn !== u.memoizedState) && (f.flags |= ki), f.memoizedProps = A, f.memoizedState = Tr), j.props = A, j.state = Tr, j.context = yt, yi; - } - var ap = [], Yp = 0, Xp = null, Jd = 0, ro = [], Gi = 0, is = null, To = 1, xl = ""; - function pd(u) { - return Ch(), (u.flags & yn) !== Ne; - } - function Uf(u) { - return Ch(), Jd; - } - function _y() { - var u = xl, f = To, M = f & ~by(f); + var It = ds(f, M, !0); + St = Nl(f, It); + } + var Yt = M.getDerivedStateFromProps, pn = typeof Yt == "function" || typeof W.getSnapshotBeforeUpdate == "function"; + !pn && (typeof W.UNSAFE_componentWillReceiveProps == "function" || typeof W.componentWillReceiveProps == "function") && (ee !== _e || Ue !== St) && qp(f, W, A, St), gr(); + var Sn = f.memoizedState, Tr = W.state = Sn; + if (md(f, A, W, z), Tr = f.memoizedState, ee === _e && Sn === Tr && !$a() && !Yp() && !U) + return typeof W.componentDidUpdate == "function" && (ee !== u.memoizedProps || Sn !== u.memoizedState) && (f.flags |= cn), typeof W.getSnapshotBeforeUpdate == "function" && (ee !== u.memoizedProps || Sn !== u.memoizedState) && (f.flags |= ii), !1; + typeof Yt == "function" && (Iu(f, M, Yt, A), Tr = f.memoizedState); + var vi = Yp() || Ev(f, M, ae, A, Sn, Tr, St) || U; + return vi ? (!pn && (typeof W.UNSAFE_componentWillUpdate == "function" || typeof W.componentWillUpdate == "function") && (typeof W.componentWillUpdate == "function" && W.componentWillUpdate(A, Tr, St), typeof W.UNSAFE_componentWillUpdate == "function" && W.UNSAFE_componentWillUpdate(A, Tr, St)), typeof W.componentDidUpdate == "function" && (f.flags |= cn), typeof W.getSnapshotBeforeUpdate == "function" && (f.flags |= ii)) : (typeof W.componentDidUpdate == "function" && (ee !== u.memoizedProps || Sn !== u.memoizedState) && (f.flags |= cn), typeof W.getSnapshotBeforeUpdate == "function" && (ee !== u.memoizedProps || Sn !== u.memoizedState) && (f.flags |= ii), f.memoizedProps = A, f.memoizedState = Tr), W.props = A, W.state = Tr, W.context = St, vi; + } + var lp = [], Qp = 0, Zp = null, Kd = 0, io = [], ji = 0, is = null, To = 1, _l = ""; + function vd(u) { + return Rh(), (u.flags & mn) !== Pe; + } + function Nf(u) { + return Rh(), Kd; + } + function wy() { + var u = _l, f = To, M = f & ~by(f); return M.toString(32) + u; } - function al(u, f) { - Ch(), ap[Yp++] = Jd, ap[Yp++] = Xp, Xp = u, Jd = f; + function sl(u, f) { + Rh(), lp[Qp++] = Kd, lp[Qp++] = Zp, Zp = u, Kd = f; } - function mg(u, f, M) { - Ch(), ro[Gi++] = To, ro[Gi++] = xl, ro[Gi++] = is, is = u; - var A = To, z = xl, j = md(A) - 1, te = A & ~(1 << j), se = M + 1, Se = md(f) + j; - if (Se > 30) { - var Pe = j - j % 5, Ge = (1 << Pe) - 1, yt = (te & Ge).toString(32), It = te >> Pe, jt = j - Pe, dn = md(f) + jt, Sn = se << jt, Tr = Sn | It, yi = yt + z; - To = 1 << dn | Tr, xl = yi; + function yg(u, f, M) { + Rh(), io[ji++] = To, io[ji++] = _l, io[ji++] = is, is = u; + var A = To, z = _l, W = gd(A) - 1, ee = A & ~(1 << W), ae = M + 1, _e = gd(f) + W; + if (_e > 30) { + var Ue = W - W % 5, We = (1 << Ue) - 1, St = (ee & We).toString(32), It = ee >> Ue, Yt = W - Ue, pn = gd(f) + Yt, Sn = ae << Yt, Tr = Sn | It, vi = St + z; + To = 1 << pn | Tr, _l = vi; } else { - var Pr = se << j, oo = Pr | te, lo = z; - To = 1 << Se | oo, xl = lo; + var Pr = ae << W, lo = Pr | ee, uo = z; + To = 1 << _e | lo, _l = uo; } } - function ql(u) { - Ch(); + function Zl(u) { + Rh(); var f = u.return; if (f !== null) { var M = 1, A = 0; - al(u, M), mg(u, M, A); + sl(u, M), yg(u, M, A); } } - function md(u) { - return 32 - td(u); + function gd(u) { + return 32 - rd(u); } function by(u) { - return 1 << md(u) - 1; + return 1 << gd(u) - 1; } - function bv(u) { - for (; u === Xp; ) - Xp = ap[--Yp], ap[Yp] = null, Jd = ap[--Yp], ap[Yp] = null; + function Mv(u) { + for (; u === Zp; ) + Zp = lp[--Qp], lp[Qp] = null, Kd = lp[--Qp], lp[Qp] = null; for (; u === is; ) - is = ro[--Gi], ro[Gi] = null, xl = ro[--Gi], ro[Gi] = null, To = ro[--Gi], ro[Gi] = null; + is = io[--ji], io[ji] = null, _l = io[--ji], io[ji] = null, To = io[--ji], io[ji] = null; } - function vg() { - return Ch(), is !== null ? { + function xg() { + return Rh(), is !== null ? { id: To, - overflow: xl + overflow: _l } : null; } - function wv(u, f) { - Ch(), ro[Gi++] = To, ro[Gi++] = xl, ro[Gi++] = is, To = f.id, xl = f.overflow, is = u; + function Tv(u, f) { + Rh(), io[ji++] = To, io[ji++] = _l, io[ji++] = is, To = f.id, _l = f.overflow, is = u; } - function Ch() { - ha() || m("Expected to be hydrating. This is a bug in React. Please file an issue."); + function Rh() { + ha() || g("Expected to be hydrating. This is a bug in React. Please file an issue."); } - var aa = null, Nr = null, ea = !1, Ga = !1, vs = null; - function Hc() { - ea && m("We should not be hydrating here. This is a bug in React. Please file a bug."); + var sa = null, zr = null, ea = !1, Ga = !1, gs = null; + function Vc() { + ea && g("We should not be hydrating here. This is a bug in React. Please file a bug."); } - function Hm() { + function Wm() { Ga = !0; } - function sl(u) { - if (!cs) + function ol(u) { + if (!fs) return !1; var f = u.stateNode.containerInfo; - return Nr = Ku(f), aa = u, ea = !0, vs = null, Ga = !1, !0; + return zr = Ku(f), sa = u, ea = !0, gs = null, Ga = !1, !0; } - function Vm(u, f, M) { - return cs ? (Nr = Qh(f), aa = u, ea = !0, vs = null, Ga = !1, M !== null && wv(u, M), !0) : !1; + function jm(u, f, M) { + return fs ? (zr = Kh(f), sa = u, ea = !0, gs = null, Ga = !1, M !== null && Tv(u, M), !0) : !1; } - function vd(u, f) { + function yd(u, f) { switch (u.tag) { - case ie: - Nd(u.stateNode.containerInfo, f); + case se: + Fd(u.stateNode.containerInfo, f); break; - case le: - zp(u.type, u.memoizedProps, u.stateNode, f); + case ue: + kp(u.type, u.memoizedProps, u.stateNode, f); break; - case ce: + case he: var M = u.memoizedState; - M.dehydrated !== null && Ru(M.dehydrated, f); + M.dehydrated !== null && Du(M.dehydrated, f); break; } } - function Gm(u, f) { - vd(u, f); + function Ym(u, f) { + yd(u, f); var M = gE(); M.stateNode = f, M.return = u; var A = u.deletions; - A === null ? (u.deletions = [M], u.flags |= Wr) : A.push(M); + A === null ? (u.deletions = [M], u.flags |= Or) : A.push(M); } - function sp(u, f) { + function up(u, f) { { if (Ga) return; switch (u.tag) { - case ie: { + case se: { var M = u.stateNode.containerInfo; switch (f.tag) { - case le: + case ue: var A = f.type, z = f.pendingProps; - hl(M, A, z); + pl(M, A, z); break; - case Ee: - var j = f.pendingProps; - el(M, j); + case Me: + var W = f.pendingProps; + tl(M, W); break; - case ce: - pf(M); + case he: + vf(M); break; } break; } - case le: { - var te = u.type, se = u.memoizedProps, Se = u.stateNode; + case ue: { + var ee = u.type, ae = u.memoizedProps, _e = u.stateNode; switch (f.tag) { - case le: - var Pe = f.type, Ge = f.pendingProps; - Ol(te, se, Se, Pe, Ge); + case ue: + var Ue = f.type, We = f.pendingProps; + zl(ee, ae, _e, Ue, We); break; - case Ee: - var yt = f.pendingProps; - ec(te, se, Se, yt); + case Me: + var St = f.pendingProps; + ec(ee, ae, _e, St); break; - case ce: - Oi(te, se, Se); + case he: + Oi(ee, ae, _e); break; } break; } - case ce: { - var It = u.memoizedState, jt = It.dehydrated; - if (jt !== null) + case he: { + var It = u.memoizedState, Yt = It.dehydrated; + if (Yt !== null) switch (f.tag) { - case le: - var dn = f.type, Sn = f.pendingProps; - Jf(jt, dn, Sn); + case ue: + var pn = f.type, Sn = f.pendingProps; + $f(Yt, pn, Sn); break; - case Ee: + case Me: var Tr = f.pendingProps; - lu(jt, Tr); + cu(Yt, Tr); break; - case ce: - mf(jt); + case he: + gf(Yt); break; } break; @@ -26600,31 +26600,31 @@ https://reactjs.org/link/unsafe-component-lifecycles`, Tr, yi, jt !== null ? ` } } } - function op(u, f) { - f.flags = f.flags & ~ni | Pt, sp(u, f); + function cp(u, f) { + f.flags = f.flags & ~xi | At, up(u, f); } - function gu(u, f) { + function xu(u, f) { switch (u.tag) { - case le: { + case ue: { var M = u.type, A = u.pendingProps, z = za(f, M, A); - return z !== null ? (u.stateNode = z, aa = u, Nr = $o(z), !0) : !1; + return z !== null ? (u.stateNode = z, sa = u, zr = el(z), !0) : !1; } - case Ee: { - var j = u.pendingProps, te = qs(f, j); - return te !== null ? (u.stateNode = te, aa = u, Nr = null, !0) : !1; + case Me: { + var W = u.pendingProps, ee = Qs(f, W); + return ee !== null ? (u.stateNode = ee, sa = u, zr = null, !0) : !1; } - case ce: { + case he: { { - var se = Jr(f); - if (se !== null) { - var Se = { - dehydrated: se, - treeContext: vg(), - retryLane: Hn + var ae = qr(f); + if (ae !== null) { + var _e = { + dehydrated: ae, + treeContext: xg(), + retryLane: Gn }; - u.memoizedState = Se; - var Pe = Wa(se); - return Pe.return = u, u.child = Pe, aa = u, Nr = null, !0; + u.memoizedState = _e; + var Ue = Wa(ae); + return Ue.return = u, u.child = Ue, sa = u, zr = null, !0; } } return !1; @@ -26633,65 +26633,65 @@ https://reactjs.org/link/unsafe-component-lifecycles`, Tr, yi, jt !== null ? ` return !1; } } - function Wm(u) { - return (u.mode & $i) !== Mr && (u.flags & Vn) === Ne; + function Xm(u) { + return (u.mode & $i) !== Mr && (u.flags & Bn) === Pe; } - function lp(u) { + function fp(u) { throw new Error("Hydration failed because the initial UI does not match what was rendered on the server."); } - function gd(u) { + function xd(u) { if (!!ea) { - var f = Nr; + var f = zr; if (!f) { - Wm(u) && (sp(aa, u), lp()), op(aa, u), ea = !1, aa = u; + Xm(u) && (up(sa, u), fp()), cp(sa, u), ea = !1, sa = u; return; } var M = f; - if (!gu(u, f)) { - Wm(u) && (sp(aa, u), lp()), f = Zf(M); - var A = aa; - if (!f || !gu(u, f)) { - op(aa, u), ea = !1, aa = u; + if (!xu(u, f)) { + Xm(u) && (up(sa, u), fp()), f = Kf(M); + var A = sa; + if (!f || !xu(u, f)) { + cp(sa, u), ea = !1, sa = u; return; } - Gm(A, M); + Ym(A, M); } } } - function gg(u, f, M) { - if (!cs) + function _g(u, f, M) { + if (!fs) throw new Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); - var A = u.stateNode, z = !Ga, j = qi(A, u.type, u.memoizedProps, f, M, u, z); - return u.updateQueue = j, j !== null; + var A = u.stateNode, z = !Ga, W = qi(A, u.type, u.memoizedProps, f, M, u, z); + return u.updateQueue = W, W !== null; } - function qp(u) { - if (!cs) + function Jp(u) { + if (!fs) throw new Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); - var f = u.stateNode, M = u.memoizedProps, A = !Ga, z = Cu(f, M, u, A); + var f = u.stateNode, M = u.memoizedProps, A = !Ga, z = Au(f, M, u, A); if (z) { - var j = aa; - if (j !== null) { - var te = (j.mode & $i) !== Mr; - switch (j.tag) { - case ie: { - var se = j.stateNode.containerInfo; - vh( - se, + var W = sa; + if (W !== null) { + var ee = (W.mode & $i) !== Mr; + switch (W.tag) { + case se: { + var ae = W.stateNode.containerInfo; + gh( + ae, f, M, - te + ee ); break; } - case le: { - var Se = j.type, Pe = j.memoizedProps, Ge = j.stateNode; + case ue: { + var _e = W.type, Ue = W.memoizedProps, We = W.stateNode; $u( - Se, - Pe, - Ge, + _e, + Ue, + We, f, M, - te + ee ); break; } @@ -26700,100 +26700,100 @@ https://reactjs.org/link/unsafe-component-lifecycles`, Tr, yi, jt !== null ? ` } return z; } - function Kd(u) { - if (!cs) + function $d(u) { + if (!fs) throw new Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); var f = u.memoizedState, M = f !== null ? f.dehydrated : null; if (!M) throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."); - Up(M, u); + Fp(M, u); } - function up(u) { - if (!cs) + function dp(u) { + if (!fs) throw new Error("Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); var f = u.memoizedState, M = f !== null ? f.dehydrated : null; if (!M) throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."); - return fg(M); + return pg(M); } function Zo(u) { - for (var f = u.return; f !== null && f.tag !== le && f.tag !== ie && f.tag !== ce; ) + for (var f = u.return; f !== null && f.tag !== ue && f.tag !== se && f.tag !== he; ) f = f.return; - aa = f; + sa = f; } - function cp(u) { - if (!cs || u !== aa) + function hp(u) { + if (!fs || u !== sa) return !1; if (!ea) return Zo(u), ea = !0, !1; - if (u.tag !== ie && (u.tag !== le || Pm(u.type) && !Ju(u.type, u.memoizedProps))) { - var f = Nr; + if (u.tag !== se && (u.tag !== ue || zm(u.type) && !Ju(u.type, u.memoizedProps))) { + var f = zr; if (f) - if (Wm(u)) - Ev(u), lp(); + if (Xm(u)) + Cv(u), fp(); else for (; f; ) - Gm(u, f), f = Zf(f); + Ym(u, f), f = Kf(f); } - return Zo(u), u.tag === ce ? Nr = up(u) : Nr = aa ? Zf(u.stateNode) : null, !0; + return Zo(u), u.tag === he ? zr = dp(u) : zr = sa ? Kf(u.stateNode) : null, !0; } - function jm() { - return ea && Nr !== null; + function qm() { + return ea && zr !== null; } - function Ev(u) { - for (var f = Nr; f; ) - vd(u, f), f = Zf(f); + function Cv(u) { + for (var f = zr; f; ) + yd(u, f), f = Kf(f); } - function Vc() { - !cs || (aa = null, Nr = null, ea = !1, Ga = !1); + function Gc() { + !fs || (sa = null, zr = null, ea = !1, Ga = !1); } - function fp() { - vs !== null && (rv(vs), vs = null); + function pp() { + gs !== null && (sv(gs), gs = null); } function ha() { return ea; } - function io(u) { - vs === null ? vs = [u] : vs.push(u); + function ao(u) { + gs === null ? gs = [u] : gs.push(u); } - var Sl, Jo, dp, Mv, Qp, yg = function(u, f) { + var Sl, Jo, mp, Rv, Kp, Sg = function(u, f) { }; - Sl = !1, Jo = !1, dp = {}, Mv = {}, Qp = {}, yg = function(u, f) { + Sl = !1, Jo = !1, mp = {}, Rv = {}, Kp = {}, Sg = function(u, f) { if (!(u === null || typeof u != "object") && !(!u._store || u._store.validated || u.key != null)) { if (typeof u._store != "object") throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."); u._store.validated = !0; - var M = Tt(f) || "Component"; - Mv[M] || (Mv[M] = !0, m('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.')); + var M = wt(f) || "Component"; + Rv[M] || (Rv[M] = !0, g('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.')); } }; - function yu(u, f, M) { + function _u(u, f, M) { var A = M.ref; if (A !== null && typeof A != "function" && typeof A != "object") { - if ((u.mode & Fa || V) && !(M._owner && M._self && M._owner.stateNode !== M._self)) { - var z = Tt(u) || "Component"; - dp[z] || (m('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A), dp[z] = !0); + if ((u.mode & Fa || G) && !(M._owner && M._self && M._owner.stateNode !== M._self)) { + var z = wt(u) || "Component"; + mp[z] || (g('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A), mp[z] = !0); } if (M._owner) { - var j = M._owner, te; - if (j) { - var se = j; - if (se.tag !== W) + var W = M._owner, ee; + if (W) { + var ae = W; + if (ae.tag !== Y) throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref"); - te = se.stateNode; + ee = ae.stateNode; } - if (!te) + if (!ee) throw new Error("Missing owner for string ref " + A + ". This error is likely caused by a bug in React. Please file an issue."); - var Se = te; - dg(A, "ref"); - var Pe = "" + A; - if (f !== null && f.ref !== null && typeof f.ref == "function" && f.ref._stringRef === Pe) + var _e = ee; + mg(A, "ref"); + var Ue = "" + A; + if (f !== null && f.ref !== null && typeof f.ref == "function" && f.ref._stringRef === Ue) return f.ref; - var Ge = function(yt) { - var It = Se.refs; - It === hg && (It = Se.refs = {}), yt === null ? delete It[Pe] : It[Pe] = yt; + var We = function(St) { + var It = _e.refs; + It === vg && (It = _e.refs = {}), St === null ? delete It[Ue] : It[Ue] = St; }; - return Ge._stringRef = Pe, Ge; + return We._stringRef = Ue, We; } else { if (typeof A != "string") throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null."); @@ -26807,460 +26807,460 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`); } return A; } - function Tv(u, f) { + function Av(u, f) { var M = Object.prototype.toString.call(f); throw new Error("Objects are not valid as a React child (found: " + (M === "[object Object]" ? "object with keys {" + Object.keys(f).join(", ") + "}" : M) + "). If you meant to render a collection of children, use an array instead."); } - function Rh(u) { + function Ah(u) { { - var f = Tt(u) || "Component"; - if (Qp[f]) + var f = wt(u) || "Component"; + if (Kp[f]) return; - Qp[f] = !0, m("Functions are not valid as a React child. This may happen if you return a Component instead of from render. Or maybe you meant to call this function rather than return it."); + Kp[f] = !0, g("Functions are not valid as a React child. This may happen if you return a Component instead of from render. Or maybe you meant to call this function rather than return it."); } } - function Ah(u) { + function Dh(u) { var f = u._payload, M = u._init; return M(f); } - function xg(u) { - function f(Et, Zt) { + function wg(u) { + function f(Ct, Jt) { if (!!u) { - var wt = Et.deletions; - wt === null ? (Et.deletions = [Zt], Et.flags |= Wr) : wt.push(Zt); + var Mt = Ct.deletions; + Mt === null ? (Ct.deletions = [Jt], Ct.flags |= Or) : Mt.push(Jt); } } - function M(Et, Zt) { + function M(Ct, Jt) { if (!u) return null; - for (var wt = Zt; wt !== null; ) - f(Et, wt), wt = wt.sibling; + for (var Mt = Jt; Mt !== null; ) + f(Ct, Mt), Mt = Mt.sibling; return null; } - function A(Et, Zt) { - for (var wt = /* @__PURE__ */ new Map(), En = Zt; En !== null; ) - En.key !== null ? wt.set(En.key, En) : wt.set(En.index, En), En = En.sibling; - return wt; + function A(Ct, Jt) { + for (var Mt = /* @__PURE__ */ new Map(), En = Jt; En !== null; ) + En.key !== null ? Mt.set(En.key, En) : Mt.set(En.index, En), En = En.sibling; + return Mt; } - function z(Et, Zt) { - var wt = oa(Et, Zt); - return wt.index = 0, wt.sibling = null, wt; + function z(Ct, Jt) { + var Mt = la(Ct, Jt); + return Mt.index = 0, Mt.sibling = null, Mt; } - function j(Et, Zt, wt) { - if (Et.index = wt, !u) - return Et.flags |= yn, Zt; - var En = Et.alternate; + function W(Ct, Jt, Mt) { + if (Ct.index = Mt, !u) + return Ct.flags |= mn, Jt; + var En = Ct.alternate; if (En !== null) { var yr = En.index; - return yr < Zt ? (Et.flags |= Pt, Zt) : yr; + return yr < Jt ? (Ct.flags |= At, Jt) : yr; } else - return Et.flags |= Pt, Zt; + return Ct.flags |= At, Jt; } - function te(Et) { - return u && Et.alternate === null && (Et.flags |= Pt), Et; + function ee(Ct) { + return u && Ct.alternate === null && (Ct.flags |= At), Ct; } - function se(Et, Zt, wt, En) { - if (Zt === null || Zt.tag !== Ee) { - var yr = lv(wt, Et.mode, En); - return yr.return = Et, yr; + function ae(Ct, Jt, Mt, En) { + if (Jt === null || Jt.tag !== Me) { + var yr = fv(Mt, Ct.mode, En); + return yr.return = Ct, yr; } else { - var Un = z(Zt, wt); - return Un.return = Et, Un; + var Nn = z(Jt, Mt); + return Nn.return = Ct, Nn; } } - function Se(Et, Zt, wt, En) { - var yr = wt.type; - if (yr === mt) - return Ge(Et, Zt, wt.props.children, En, wt.key); - if (Zt !== null && (Zt.elementType === yr || u0(Zt, wt) || typeof yr == "object" && yr !== null && yr.$$typeof === oe && Ah(yr) === Zt.type)) { - var Un = z(Zt, wt.props); - return Un.ref = yu(Et, Zt, wt), Un.return = Et, Un._debugSource = wt._source, Un._debugOwner = wt._owner, Un; + function _e(Ct, Jt, Mt, En) { + var yr = Mt.type; + if (yr === dt) + return We(Ct, Jt, Mt.props.children, En, Mt.key); + if (Jt !== null && (Jt.elementType === yr || c0(Jt, Mt) || typeof yr == "object" && yr !== null && yr.$$typeof === oe && Dh(yr) === Jt.type)) { + var Nn = z(Jt, Mt.props); + return Nn.ref = _u(Ct, Jt, Mt), Nn.return = Ct, Nn._debugSource = Mt._source, Nn._debugOwner = Mt._owner, Nn; } - var ai = f0(wt, Et.mode, En); - return ai.ref = yu(Et, Zt, wt), ai.return = Et, ai; + var ni = d0(Mt, Ct.mode, En); + return ni.ref = _u(Ct, Jt, Mt), ni.return = Ct, ni; } - function Pe(Et, Zt, wt, En) { - if (Zt === null || Zt.tag !== fe || Zt.stateNode.containerInfo !== wt.containerInfo || Zt.stateNode.implementation !== wt.implementation) { - var yr = Dn(wt, Et.mode, En); - return yr.return = Et, yr; + function Ue(Ct, Jt, Mt, En) { + if (Jt === null || Jt.tag !== ce || Jt.stateNode.containerInfo !== Mt.containerInfo || Jt.stateNode.implementation !== Mt.implementation) { + var yr = Dn(Mt, Ct.mode, En); + return yr.return = Ct, yr; } else { - var Un = z(Zt, wt.children || []); - return Un.return = Et, Un; + var Nn = z(Jt, Mt.children || []); + return Nn.return = Ct, Nn; } } - function Ge(Et, Zt, wt, En, yr) { - if (Zt === null || Zt.tag !== he) { - var Un = Mp(wt, Et.mode, En, yr); - return Un.return = Et, Un; + function We(Ct, Jt, Mt, En, yr) { + if (Jt === null || Jt.tag !== me) { + var Nn = Rp(Mt, Ct.mode, En, yr); + return Nn.return = Ct, Nn; } else { - var ai = z(Zt, wt); - return ai.return = Et, ai; + var ni = z(Jt, Mt); + return ni.return = Ct, ni; } } - function yt(Et, Zt, wt) { - if (typeof Zt == "string" && Zt !== "" || typeof Zt == "number") { - var En = lv("" + Zt, Et.mode, wt); - return En.return = Et, En; + function St(Ct, Jt, Mt) { + if (typeof Jt == "string" && Jt !== "" || typeof Jt == "number") { + var En = fv("" + Jt, Ct.mode, Mt); + return En.return = Ct, En; } - if (typeof Zt == "object" && Zt !== null) { - switch (Zt.$$typeof) { - case He: { - var yr = f0(Zt, Et.mode, wt); - return yr.ref = yu(Et, null, Zt), yr.return = Et, yr; + if (typeof Jt == "object" && Jt !== null) { + switch (Jt.$$typeof) { + case Ie: { + var yr = d0(Jt, Ct.mode, Mt); + return yr.ref = _u(Ct, null, Jt), yr.return = Ct, yr; } - case et: { - var Un = Dn(Zt, Et.mode, wt); - return Un.return = Et, Un; + case qe: { + var Nn = Dn(Jt, Ct.mode, Mt); + return Nn.return = Ct, Nn; } case oe: { - var ai = Zt._payload, ba = Zt._init; - return yt(Et, ba(ai), wt); + var ni = Jt._payload, wa = Jt._init; + return St(Ct, wa(ni), Mt); } } - if (Ti(Zt) || xe(Zt)) { - var gs = Mp(Zt, Et.mode, wt, null); - return gs.return = Et, gs; + if (Ti(Jt) || pe(Jt)) { + var ys = Rp(Jt, Ct.mode, Mt, null); + return ys.return = Ct, ys; } - Tv(Et, Zt); + Av(Ct, Jt); } - return typeof Zt == "function" && Rh(Et), null; + return typeof Jt == "function" && Ah(Ct), null; } - function It(Et, Zt, wt, En) { - var yr = Zt !== null ? Zt.key : null; - if (typeof wt == "string" && wt !== "" || typeof wt == "number") - return yr !== null ? null : se(Et, Zt, "" + wt, En); - if (typeof wt == "object" && wt !== null) { - switch (wt.$$typeof) { - case He: - return wt.key === yr ? Se(Et, Zt, wt, En) : null; - case et: - return wt.key === yr ? Pe(Et, Zt, wt, En) : null; + function It(Ct, Jt, Mt, En) { + var yr = Jt !== null ? Jt.key : null; + if (typeof Mt == "string" && Mt !== "" || typeof Mt == "number") + return yr !== null ? null : ae(Ct, Jt, "" + Mt, En); + if (typeof Mt == "object" && Mt !== null) { + switch (Mt.$$typeof) { + case Ie: + return Mt.key === yr ? _e(Ct, Jt, Mt, En) : null; + case qe: + return Mt.key === yr ? Ue(Ct, Jt, Mt, En) : null; case oe: { - var Un = wt._payload, ai = wt._init; - return It(Et, Zt, ai(Un), En); + var Nn = Mt._payload, ni = Mt._init; + return It(Ct, Jt, ni(Nn), En); } } - if (Ti(wt) || xe(wt)) - return yr !== null ? null : Ge(Et, Zt, wt, En, null); - Tv(Et, wt); + if (Ti(Mt) || pe(Mt)) + return yr !== null ? null : We(Ct, Jt, Mt, En, null); + Av(Ct, Mt); } - return typeof wt == "function" && Rh(Et), null; + return typeof Mt == "function" && Ah(Ct), null; } - function jt(Et, Zt, wt, En, yr) { + function Yt(Ct, Jt, Mt, En, yr) { if (typeof En == "string" && En !== "" || typeof En == "number") { - var Un = Et.get(wt) || null; - return se(Zt, Un, "" + En, yr); + var Nn = Ct.get(Mt) || null; + return ae(Jt, Nn, "" + En, yr); } if (typeof En == "object" && En !== null) { switch (En.$$typeof) { - case He: { - var ai = Et.get(En.key === null ? wt : En.key) || null; - return Se(Zt, ai, En, yr); + case Ie: { + var ni = Ct.get(En.key === null ? Mt : En.key) || null; + return _e(Jt, ni, En, yr); } - case et: { - var ba = Et.get(En.key === null ? wt : En.key) || null; - return Pe(Zt, ba, En, yr); + case qe: { + var wa = Ct.get(En.key === null ? Mt : En.key) || null; + return Ue(Jt, wa, En, yr); } case oe: { - var gs = En._payload, Nn = En._init; - return jt(Et, Zt, wt, Nn(gs), yr); + var ys = En._payload, kn = En._init; + return Yt(Ct, Jt, Mt, kn(ys), yr); } } - if (Ti(En) || xe(En)) { - var as = Et.get(wt) || null; - return Ge(Zt, as, En, yr, null); + if (Ti(En) || pe(En)) { + var as = Ct.get(Mt) || null; + return We(Jt, as, En, yr, null); } - Tv(Zt, En); + Av(Jt, En); } - return typeof En == "function" && Rh(Zt), null; + return typeof En == "function" && Ah(Jt), null; } - function dn(Et, Zt, wt) { + function pn(Ct, Jt, Mt) { { - if (typeof Et != "object" || Et === null) - return Zt; - switch (Et.$$typeof) { - case He: - case et: - yg(Et, wt); - var En = Et.key; + if (typeof Ct != "object" || Ct === null) + return Jt; + switch (Ct.$$typeof) { + case Ie: + case qe: + Sg(Ct, Mt); + var En = Ct.key; if (typeof En != "string") break; - if (Zt === null) { - Zt = /* @__PURE__ */ new Set(), Zt.add(En); + if (Jt === null) { + Jt = /* @__PURE__ */ new Set(), Jt.add(En); break; } - if (!Zt.has(En)) { - Zt.add(En); + if (!Jt.has(En)) { + Jt.add(En); break; } - m("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.", En); + g("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.", En); break; case oe: { - var yr = Et._payload, Un = Et._init; - dn(Un(yr), Zt, wt); + var yr = Ct._payload, Nn = Ct._init; + pn(Nn(yr), Jt, Mt); break; } } } - return Zt; + return Jt; } - function Sn(Et, Zt, wt, En) { - for (var yr = null, Un = 0; Un < wt.length; Un++) { - var ai = wt[Un]; - yr = dn(ai, yr, Et); + function Sn(Ct, Jt, Mt, En) { + for (var yr = null, Nn = 0; Nn < Mt.length; Nn++) { + var ni = Mt[Nn]; + yr = pn(ni, yr, Ct); } - for (var ba = null, gs = null, Nn = Zt, as = 0, wa = 0, Ei = null; Nn !== null && wa < wt.length; wa++) { - Nn.index > wa ? (Ei = Nn, Nn = null) : Ei = Nn.sibling; - var Ao = It(Et, Nn, wt[wa], En); + for (var wa = null, ys = null, kn = Jt, as = 0, ba = 0, Ei = null; kn !== null && ba < Mt.length; ba++) { + kn.index > ba ? (Ei = kn, kn = null) : Ei = kn.sibling; + var Ao = It(Ct, kn, Mt[ba], En); if (Ao === null) { - Nn === null && (Nn = Ei); + kn === null && (kn = Ei); break; } - u && Nn && Ao.alternate === null && f(Et, Nn), as = j(Ao, as, wa), gs === null ? ba = Ao : gs.sibling = Ao, gs = Ao, Nn = Ei; + u && kn && Ao.alternate === null && f(Ct, kn), as = W(Ao, as, ba), ys === null ? wa = Ao : ys.sibling = Ao, ys = Ao, kn = Ei; } - if (wa === wt.length) { - if (M(Et, Nn), ha()) { - var uo = wa; - al(Et, uo); + if (ba === Mt.length) { + if (M(Ct, kn), ha()) { + var co = ba; + sl(Ct, co); } - return ba; + return wa; } - if (Nn === null) { - for (; wa < wt.length; wa++) { - var nh = yt(Et, wt[wa], En); - nh !== null && (as = j(nh, as, wa), gs === null ? ba = nh : gs.sibling = nh, gs = nh); + if (kn === null) { + for (; ba < Mt.length; ba++) { + var rh = St(Ct, Mt[ba], En); + rh !== null && (as = W(rh, as, ba), ys === null ? wa = rh : ys.sibling = rh, ys = rh); } if (ha()) { - var Su = wa; - al(Et, Su); + var wu = ba; + sl(Ct, wu); } - return ba; + return wa; } - for (var rh = A(Et, Nn); wa < wt.length; wa++) { - var Nh = jt(rh, Et, wa, wt[wa], En); - Nh !== null && (u && Nh.alternate !== null && rh.delete(Nh.key === null ? wa : Nh.key), as = j(Nh, as, wa), gs === null ? ba = Nh : gs.sibling = Nh, gs = Nh); + for (var ih = A(Ct, kn); ba < Mt.length; ba++) { + var Fh = Yt(ih, Ct, ba, Mt[ba], En); + Fh !== null && (u && Fh.alternate !== null && ih.delete(Fh.key === null ? ba : Fh.key), as = W(Fh, as, ba), ys === null ? wa = Fh : ys.sibling = Fh, ys = Fh); } - if (u && rh.forEach(function(Lx) { - return f(Et, Lx); + if (u && ih.forEach(function(Lx) { + return f(Ct, Lx); }), ha()) { - var cv = wa; - al(Et, cv); + var hv = ba; + sl(Ct, hv); } - return ba; + return wa; } - function Tr(Et, Zt, wt, En) { - var yr = xe(wt); + function Tr(Ct, Jt, Mt, En) { + var yr = pe(Mt); if (typeof yr != "function") throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."); { - typeof Symbol == "function" && wt[Symbol.toStringTag] === "Generator" && (Jo || m("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."), Jo = !0), wt.entries === yr && (Sl || m("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Sl = !0); - var Un = yr.call(wt); - if (Un) - for (var ai = null, ba = Un.next(); !ba.done; ba = Un.next()) { - var gs = ba.value; - ai = dn(gs, ai, Et); + typeof Symbol == "function" && Mt[Symbol.toStringTag] === "Generator" && (Jo || g("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."), Jo = !0), Mt.entries === yr && (Sl || g("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Sl = !0); + var Nn = yr.call(Mt); + if (Nn) + for (var ni = null, wa = Nn.next(); !wa.done; wa = Nn.next()) { + var ys = wa.value; + ni = pn(ys, ni, Ct); } } - var Nn = yr.call(wt); - if (Nn == null) + var kn = yr.call(Mt); + if (kn == null) throw new Error("An iterable object provided no iterator."); - for (var as = null, wa = null, Ei = Zt, Ao = 0, uo = 0, nh = null, Su = Nn.next(); Ei !== null && !Su.done; uo++, Su = Nn.next()) { - Ei.index > uo ? (nh = Ei, Ei = null) : nh = Ei.sibling; - var rh = It(Et, Ei, Su.value, En); - if (rh === null) { - Ei === null && (Ei = nh); + for (var as = null, ba = null, Ei = Jt, Ao = 0, co = 0, rh = null, wu = kn.next(); Ei !== null && !wu.done; co++, wu = kn.next()) { + Ei.index > co ? (rh = Ei, Ei = null) : rh = Ei.sibling; + var ih = It(Ct, Ei, wu.value, En); + if (ih === null) { + Ei === null && (Ei = rh); break; } - u && Ei && rh.alternate === null && f(Et, Ei), Ao = j(rh, Ao, uo), wa === null ? as = rh : wa.sibling = rh, wa = rh, Ei = nh; + u && Ei && ih.alternate === null && f(Ct, Ei), Ao = W(ih, Ao, co), ba === null ? as = ih : ba.sibling = ih, ba = ih, Ei = rh; } - if (Su.done) { - if (M(Et, Ei), ha()) { - var Nh = uo; - al(Et, Nh); + if (wu.done) { + if (M(Ct, Ei), ha()) { + var Fh = co; + sl(Ct, Fh); } return as; } if (Ei === null) { - for (; !Su.done; uo++, Su = Nn.next()) { - var cv = yt(Et, Su.value, En); - cv !== null && (Ao = j(cv, Ao, uo), wa === null ? as = cv : wa.sibling = cv, wa = cv); + for (; !wu.done; co++, wu = kn.next()) { + var hv = St(Ct, wu.value, En); + hv !== null && (Ao = W(hv, Ao, co), ba === null ? as = hv : ba.sibling = hv, ba = hv); } if (ha()) { - var Lx = uo; - al(Et, Lx); + var Lx = co; + sl(Ct, Lx); } return as; } - for (var h0 = A(Et, Ei); !Su.done; uo++, Su = Nn.next()) { - var ih = jt(h0, Et, uo, Su.value, En); - ih !== null && (u && ih.alternate !== null && h0.delete(ih.key === null ? uo : ih.key), Ao = j(ih, Ao, uo), wa === null ? as = ih : wa.sibling = ih, wa = ih); + for (var p0 = A(Ct, Ei); !wu.done; co++, wu = kn.next()) { + var ah = Yt(p0, Ct, co, wu.value, En); + ah !== null && (u && ah.alternate !== null && p0.delete(ah.key === null ? co : ah.key), Ao = W(ah, Ao, co), ba === null ? as = ah : ba.sibling = ah, ba = ah); } - if (u && h0.forEach(function(sb) { - return f(Et, sb); + if (u && p0.forEach(function(fw) { + return f(Ct, fw); }), ha()) { - var Yv = uo; - al(Et, Yv); + var Qv = co; + sl(Ct, Qv); } return as; } - function yi(Et, Zt, wt, En) { - if (Zt !== null && Zt.tag === Ee) { - M(Et, Zt.sibling); - var yr = z(Zt, wt); - return yr.return = Et, yr; - } - M(Et, Zt); - var Un = lv(wt, Et.mode, En); - return Un.return = Et, Un; - } - function Pr(Et, Zt, wt, En) { - for (var yr = wt.key, Un = Zt; Un !== null; ) { - if (Un.key === yr) { - var ai = wt.type; - if (ai === mt) { - if (Un.tag === he) { - M(Et, Un.sibling); - var ba = z(Un, wt.props.children); - return ba.return = Et, ba._debugSource = wt._source, ba._debugOwner = wt._owner, ba; + function vi(Ct, Jt, Mt, En) { + if (Jt !== null && Jt.tag === Me) { + M(Ct, Jt.sibling); + var yr = z(Jt, Mt); + return yr.return = Ct, yr; + } + M(Ct, Jt); + var Nn = fv(Mt, Ct.mode, En); + return Nn.return = Ct, Nn; + } + function Pr(Ct, Jt, Mt, En) { + for (var yr = Mt.key, Nn = Jt; Nn !== null; ) { + if (Nn.key === yr) { + var ni = Mt.type; + if (ni === dt) { + if (Nn.tag === me) { + M(Ct, Nn.sibling); + var wa = z(Nn, Mt.props.children); + return wa.return = Ct, wa._debugSource = Mt._source, wa._debugOwner = Mt._owner, wa; } - } else if (Un.elementType === ai || u0(Un, wt) || typeof ai == "object" && ai !== null && ai.$$typeof === oe && Ah(ai) === Un.type) { - M(Et, Un.sibling); - var gs = z(Un, wt.props); - return gs.ref = yu(Et, Un, wt), gs.return = Et, gs._debugSource = wt._source, gs._debugOwner = wt._owner, gs; + } else if (Nn.elementType === ni || c0(Nn, Mt) || typeof ni == "object" && ni !== null && ni.$$typeof === oe && Dh(ni) === Nn.type) { + M(Ct, Nn.sibling); + var ys = z(Nn, Mt.props); + return ys.ref = _u(Ct, Nn, Mt), ys.return = Ct, ys._debugSource = Mt._source, ys._debugOwner = Mt._owner, ys; } - M(Et, Un); + M(Ct, Nn); break; } else - f(Et, Un); - Un = Un.sibling; + f(Ct, Nn); + Nn = Nn.sibling; } - if (wt.type === mt) { - var Nn = Mp(wt.props.children, Et.mode, En, wt.key); - return Nn.return = Et, Nn; + if (Mt.type === dt) { + var kn = Rp(Mt.props.children, Ct.mode, En, Mt.key); + return kn.return = Ct, kn; } else { - var as = f0(wt, Et.mode, En); - return as.ref = yu(Et, Zt, wt), as.return = Et, as; + var as = d0(Mt, Ct.mode, En); + return as.ref = _u(Ct, Jt, Mt), as.return = Ct, as; } } - function oo(Et, Zt, wt, En) { - for (var yr = wt.key, Un = Zt; Un !== null; ) { - if (Un.key === yr) - if (Un.tag === fe && Un.stateNode.containerInfo === wt.containerInfo && Un.stateNode.implementation === wt.implementation) { - M(Et, Un.sibling); - var ai = z(Un, wt.children || []); - return ai.return = Et, ai; + function lo(Ct, Jt, Mt, En) { + for (var yr = Mt.key, Nn = Jt; Nn !== null; ) { + if (Nn.key === yr) + if (Nn.tag === ce && Nn.stateNode.containerInfo === Mt.containerInfo && Nn.stateNode.implementation === Mt.implementation) { + M(Ct, Nn.sibling); + var ni = z(Nn, Mt.children || []); + return ni.return = Ct, ni; } else { - M(Et, Un); + M(Ct, Nn); break; } else - f(Et, Un); - Un = Un.sibling; - } - var ba = Dn(wt, Et.mode, En); - return ba.return = Et, ba; - } - function lo(Et, Zt, wt, En) { - var yr = typeof wt == "object" && wt !== null && wt.type === mt && wt.key === null; - if (yr && (wt = wt.props.children), typeof wt == "object" && wt !== null) { - switch (wt.$$typeof) { - case He: - return te(Pr(Et, Zt, wt, En)); - case et: - return te(oo(Et, Zt, wt, En)); + f(Ct, Nn); + Nn = Nn.sibling; + } + var wa = Dn(Mt, Ct.mode, En); + return wa.return = Ct, wa; + } + function uo(Ct, Jt, Mt, En) { + var yr = typeof Mt == "object" && Mt !== null && Mt.type === dt && Mt.key === null; + if (yr && (Mt = Mt.props.children), typeof Mt == "object" && Mt !== null) { + switch (Mt.$$typeof) { + case Ie: + return ee(Pr(Ct, Jt, Mt, En)); + case qe: + return ee(lo(Ct, Jt, Mt, En)); case oe: { - var Un = wt._payload, ai = wt._init; - return lo(Et, Zt, ai(Un), En); + var Nn = Mt._payload, ni = Mt._init; + return uo(Ct, Jt, ni(Nn), En); } } - if (Ti(wt)) - return Sn(Et, Zt, wt, En); - if (xe(wt)) - return Tr(Et, Zt, wt, En); - Tv(Et, wt); + if (Ti(Mt)) + return Sn(Ct, Jt, Mt, En); + if (pe(Mt)) + return Tr(Ct, Jt, Mt, En); + Av(Ct, Mt); } - return typeof wt == "string" && wt !== "" || typeof wt == "number" ? te(yi(Et, Zt, "" + wt, En)) : (typeof wt == "function" && Rh(Et), M(Et, Zt)); + return typeof Mt == "string" && Mt !== "" || typeof Mt == "number" ? ee(vi(Ct, Jt, "" + Mt, En)) : (typeof Mt == "function" && Ah(Ct), M(Ct, Jt)); } - return lo; + return uo; } - var zf = xg(!0), wy = xg(!1); - function Sg(u, f) { + var Ff = wg(!0), Ey = wg(!1); + function bg(u, f) { if (u !== null && f.child !== u.child) throw new Error("Resuming work not yet implemented."); if (f.child !== null) { - var M = f.child, A = oa(M, M.pendingProps); + var M = f.child, A = la(M, M.pendingProps); for (f.child = A, A.return = f; M.sibling !== null; ) - M = M.sibling, A = A.sibling = oa(M, M.pendingProps), A.return = f; + M = M.sibling, A = A.sibling = la(M, M.pendingProps), A.return = f; A.sibling = null; } } - function Ey(u, f) { + function My(u, f) { for (var M = u.child; M !== null; ) - Wu(M, f), M = M.sibling; + Yu(M, f), M = M.sibling; } - var hp = {}, pp = Mn(hp), Cv = Mn(hp), Rv = Mn(hp); - function Ym(u) { - if (u === hp) + var vp = {}, gp = Mn(vp), Dv = Mn(vp), Lv = Mn(vp); + function Qm(u) { + if (u === vp) throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); return u; } - function Dh() { - var u = Ym(Rv.current); + function Lh() { + var u = Qm(Lv.current); return u; } - function My(u, f) { - or(Rv, f, u), or(Cv, u, u), or(pp, hp, u); + function Ty(u, f) { + or(Lv, f, u), or(Dv, u, u), or(gp, vp, u); var M = zo(f); - Kn(pp, u), or(pp, M, u); + $n(gp, u), or(gp, M, u); } - function Gc(u) { - Kn(pp, u), Kn(Cv, u), Kn(Rv, u); + function Wc(u) { + $n(gp, u), $n(Dv, u), $n(Lv, u); } - function Zp() { - var u = Ym(pp.current); + function $p() { + var u = Qm(gp.current); return u; } - function Is(u) { - var f = Ym(Rv.current), M = Ym(pp.current), A = Pa(M, u.type, f); - M !== A && (or(Cv, u, u), or(pp, A, u)); + function Bs(u) { + var f = Qm(Lv.current), M = Qm(gp.current), A = Pa(M, u.type, f); + M !== A && (or(Dv, u, u), or(gp, A, u)); } - function Ty(u) { - Cv.current === u && (Kn(pp, u), Kn(Cv, u)); + function Cy(u) { + Dv.current === u && ($n(gp, u), $n(Dv, u)); } - var _g = 0, N0 = 1, F0 = 1, Xm = 2, Wc = Mn(_g); - function Cy(u, f) { + var Eg = 0, N0 = 1, F0 = 1, Zm = 2, jc = Mn(Eg); + function Ry(u, f) { return (u & f) !== 0; } - function _l(u) { + function wl(u) { return u & N0; } - function Av(u, f) { + function Pv(u, f) { return u & N0 | f; } - function bg(u, f) { + function Mg(u, f) { return u | f; } - function ku(u, f) { - or(Wc, f, u); + function Bu(u, f) { + or(jc, f, u); } - function Lh(u) { - Kn(Wc, u); + function Ph(u) { + $n(jc, u); } - function Jp(u, f) { + function em(u, f) { var M = u.memoizedState; return M !== null ? M.dehydrated !== null : (u.memoizedProps, !0); } - function mp(u) { + function yp(u) { for (var f = u; f !== null; ) { - if (f.tag === ce) { + if (f.tag === he) { var M = f.memoizedState; if (M !== null) { var A = M.dehydrated; - if (A === null || xs(A) || va(A)) + if (A === null || _s(A) || va(A)) return f; } - } else if (f.tag === Ue && f.memoizedProps.revealOrder !== void 0) { - var z = (f.flags & Vn) !== Ne; + } else if (f.tag === Ne && f.memoizedProps.revealOrder !== void 0) { + var z = (f.flags & Bn) !== Pe; if (z) return f; } else if (f.child !== null) { @@ -27278,47 +27278,47 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`); } return null; } - var mc = 0, Aa = 1, vp = 2, Ts = 4, bl = 8, Dv = []; - function wg() { - for (var u = 0; u < Dv.length; u++) { - var f = Dv[u]; + var mc = 0, Aa = 1, xp = 2, Cs = 4, bl = 8, Ov = []; + function Tg() { + for (var u = 0; u < Ov.length; u++) { + var f = Ov[u]; go ? f._workInProgressVersionPrimary = null : f._workInProgressVersionSecondary = null; } - Dv.length = 0; + Ov.length = 0; } - function Lv(u, f) { + function Uv(u, f) { var M = f._getVersion, A = M(f._source); u.mutableSourceEagerHydrationData == null ? u.mutableSourceEagerHydrationData = [f, A] : u.mutableSourceEagerHydrationData.push(f, A); } - var On = o.ReactCurrentDispatcher, Iu = o.ReactCurrentBatchConfig, Pv, Kp; - Pv = /* @__PURE__ */ new Set(); - var Ph = an, sa = null, Cs = null, Co = null, $p = !1, qm = !1, gp = 0, Eg = 0, u1 = 25, Wt = null, Nf = null, yd = -1, c = !1; - function p() { + var zn = s.ReactCurrentDispatcher, Hu = s.ReactCurrentBatchConfig, zv, tm; + zv = /* @__PURE__ */ new Set(); + var Oh = sn, oa = null, Rs = null, Co = null, nm = !1, Jm = !1, _p = 0, Cg = 0, u1 = 25, jt = null, kf = null, _d = -1, c = !1; + function h() { { - var u = Wt; - Nf === null ? Nf = [u] : Nf.push(u); + var u = jt; + kf === null ? kf = [u] : kf.push(u); } } function E() { { - var u = Wt; - Nf !== null && (yd++, Nf[yd] !== u && G(u)); + var u = jt; + kf !== null && (_d++, kf[_d] !== u && V(u)); } } - function O(u) { - u != null && !Ti(u) && m("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.", Wt, typeof u); + function P(u) { + u != null && !Ti(u) && g("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.", jt, typeof u); } - function G(u) { + function V(u) { { - var f = Tt(sa); - if (!Pv.has(f) && (Pv.add(f), Nf !== null)) { - for (var M = "", A = 30, z = 0; z <= yd; z++) { - for (var j = Nf[z], te = z === yd ? u : j, se = z + 1 + ". " + j; se.length < A; ) - se += " "; - se += te + ` -`, M += se; - } - m(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks + var f = wt(oa); + if (!zv.has(f) && (zv.add(f), kf !== null)) { + for (var M = "", A = 30, z = 0; z <= _d; z++) { + for (var W = kf[z], ee = z === _d ? u : W, ae = z + 1 + ". " + W; ae.length < A; ) + ae += " "; + ae += ee + ` +`, M += ae; + } + g(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks Previous render Next render ------------------------------------------------------ @@ -27327,62 +27327,62 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`); } } } - function Q() { + function q() { throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`); } - function ue(u, f) { + function le(u, f) { if (c) return !1; if (f === null) - return m("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.", Wt), !1; - u.length !== f.length && m(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant. + return g("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.", jt), !1; + u.length !== f.length && g(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant. Previous: %s -Incoming: %s`, Wt, "[" + f.join(", ") + "]", "[" + u.join(", ") + "]"); +Incoming: %s`, jt, "[" + f.join(", ") + "]", "[" + u.join(", ") + "]"); for (var M = 0; M < f.length && M < u.length; M++) if (!Eo(u[M], f[M])) return !1; return !0; } - function Le(u, f, M, A, z, j) { - Ph = j, sa = f, Nf = u !== null ? u._debugHookTypes : null, yd = -1, c = u !== null && u.type !== f.type, f.memoizedState = null, f.updateQueue = null, f.lanes = an, u !== null && u.memoizedState !== null ? On.current = Ni : Nf !== null ? On.current = Oy : On.current = q0; - var te = M(A, z); - if (qm) { - var se = 0; + function Oe(u, f, M, A, z, W) { + Oh = W, oa = f, kf = u !== null ? u._debugHookTypes : null, _d = -1, c = u !== null && u.type !== f.type, f.memoizedState = null, f.updateQueue = null, f.lanes = sn, u !== null && u.memoizedState !== null ? zn.current = Ni : kf !== null ? zn.current = Uy : zn.current = q0; + var ee = M(A, z); + if (Jm) { + var ae = 0; do { - if (qm = !1, gp = 0, se >= u1) + if (Jm = !1, _p = 0, ae >= u1) throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop."); - se += 1, c = !1, Cs = null, Co = null, f.updateQueue = null, yd = -1, On.current = nm, te = M(A, z); - } while (qm); + ae += 1, c = !1, Rs = null, Co = null, f.updateQueue = null, _d = -1, zn.current = am, ee = M(A, z); + } while (Jm); } - On.current = X0, f._debugHookTypes = Nf; - var Se = Cs !== null && Cs.next !== null; - if (Ph = an, sa = null, Cs = null, Co = null, Wt = null, Nf = null, yd = -1, u !== null && (u.flags & $t) !== (f.flags & $t) && (u.mode & $i) !== Mr && m("Internal React error: Expected static flag was missing. Please notify the React team."), $p = !1, Se) + zn.current = X0, f._debugHookTypes = kf; + var _e = Rs !== null && Rs.next !== null; + if (Oh = sn, oa = null, Rs = null, Co = null, jt = null, kf = null, _d = -1, u !== null && (u.flags & en) !== (f.flags & en) && (u.mode & $i) !== Mr && g("Internal React error: Expected static flag was missing. Please notify the React team."), nm = !1, _e) throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement."); - return te; + return ee; } - function Ve() { - var u = gp !== 0; - return gp = 0, u; + function Ge() { + var u = _p !== 0; + return _p = 0, u; } - function Ct(u, f, M) { - f.updateQueue = u.updateQueue, (f.mode & So) !== Mr ? f.flags &= ~(nr | Zn | Wi | fn) : f.flags &= ~(Wi | fn), u.lanes = Ks(u.lanes, M); + function Dt(u, f, M) { + f.updateQueue = u.updateQueue, (f.mode & _o) !== Mr ? f.flags &= ~(rr | Jn | Bi | cn) : f.flags &= ~(Bi | cn), u.lanes = $s(u.lanes, M); } - function un() { - if (On.current = X0, $p) { - for (var u = sa.memoizedState; u !== null; ) { + function fn() { + if (zn.current = X0, nm) { + for (var u = oa.memoizedState; u !== null; ) { var f = u.queue; f !== null && (f.pending = null), u = u.next; } - $p = !1; + nm = !1; } - Ph = an, sa = null, Cs = null, Co = null, Nf = null, yd = -1, Wt = null, ao = !1, qm = !1, gp = 0; + Oh = sn, oa = null, Rs = null, Co = null, kf = null, _d = -1, jt = null, so = !1, Jm = !1, _p = 0; } - function ln() { + function un() { var u = { memoizedState: null, baseState: null, @@ -27390,202 +27390,202 @@ Incoming: %s`, Wt, "[" + f.join(", ") + "]", "[" + u.join(", ") + "]"); queue: null, next: null }; - return Co === null ? sa.memoizedState = Co = u : Co = Co.next = u, Co; + return Co === null ? oa.memoizedState = Co = u : Co = Co.next = u, Co; } - function nn() { + function rn() { var u; - if (Cs === null) { - var f = sa.alternate; + if (Rs === null) { + var f = oa.alternate; f !== null ? u = f.memoizedState : u = null; } else - u = Cs.next; + u = Rs.next; var M; - if (Co === null ? M = sa.memoizedState : M = Co.next, M !== null) - Co = M, M = Co.next, Cs = u; + if (Co === null ? M = oa.memoizedState : M = Co.next, M !== null) + Co = M, M = Co.next, Rs = u; else { if (u === null) throw new Error("Rendered more hooks than during the previous render."); - Cs = u; + Rs = u; var A = { - memoizedState: Cs.memoizedState, - baseState: Cs.baseState, - baseQueue: Cs.baseQueue, - queue: Cs.queue, + memoizedState: Rs.memoizedState, + baseState: Rs.baseState, + baseQueue: Rs.baseQueue, + queue: Rs.queue, next: null }; - Co === null ? sa.memoizedState = Co = A : Co = Co.next = A; + Co === null ? oa.memoizedState = Co = A : Co = Co.next = A; } return Co; } - function kn() { + function Hn() { return { lastEffect: null, stores: null }; } - function qn(u, f) { + function Qn(u, f) { return typeof f == "function" ? f(u) : f; } - function rr(u, f, M) { - var A = ln(), z; + function ir(u, f, M) { + var A = un(), z; M !== void 0 ? z = M(f) : z = f, A.memoizedState = A.baseState = z; - var j = { + var W = { pending: null, interleaved: null, - lanes: an, + lanes: sn, dispatch: null, lastRenderedReducer: u, lastRenderedState: z }; - A.queue = j; - var te = j.dispatch = Qm.bind(null, sa, j); - return [A.memoizedState, te]; + A.queue = W; + var ee = W.dispatch = Km.bind(null, oa, W); + return [A.memoizedState, ee]; } - function Bs(u, f, M) { - var A = nn(), z = A.queue; + function Hs(u, f, M) { + var A = rn(), z = A.queue; if (z === null) throw new Error("Should have a queue. This is likely a bug in React. Please file an issue."); z.lastRenderedReducer = u; - var j = Cs, te = j.baseQueue, se = z.pending; - if (se !== null) { - if (te !== null) { - var Se = te.next, Pe = se.next; - te.next = Pe, se.next = Se; + var W = Rs, ee = W.baseQueue, ae = z.pending; + if (ae !== null) { + if (ee !== null) { + var _e = ee.next, Ue = ae.next; + ee.next = Ue, ae.next = _e; } - j.baseQueue !== te && m("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."), j.baseQueue = te = se, z.pending = null; + W.baseQueue !== ee && g("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."), W.baseQueue = ee = ae, z.pending = null; } - if (te !== null) { - var Ge = te.next, yt = j.baseState, It = null, jt = null, dn = null, Sn = Ge; + if (ee !== null) { + var We = ee.next, St = W.baseState, It = null, Yt = null, pn = null, Sn = We; do { var Tr = Sn.lane; - if (uc(Ph, Tr)) { - if (dn !== null) { + if (uc(Oh, Tr)) { + if (pn !== null) { var Pr = { - lane: Ir, + lane: kr, action: Sn.action, hasEagerState: Sn.hasEagerState, eagerState: Sn.eagerState, next: null }; - dn = dn.next = Pr; + pn = pn.next = Pr; } if (Sn.hasEagerState) - yt = Sn.eagerState; + St = Sn.eagerState; else { - var oo = Sn.action; - yt = u(yt, oo); + var lo = Sn.action; + St = u(St, lo); } } else { - var yi = { + var vi = { lane: Tr, action: Sn.action, hasEagerState: Sn.hasEagerState, eagerState: Sn.eagerState, next: null }; - dn === null ? (jt = dn = yi, It = yt) : dn = dn.next = yi, sa.lanes = zr(sa.lanes, Tr), gx(Tr); + pn === null ? (Yt = pn = vi, It = St) : pn = pn.next = vi, oa.lanes = Ur(oa.lanes, Tr), gx(Tr); } Sn = Sn.next; - } while (Sn !== null && Sn !== Ge); - dn === null ? It = yt : dn.next = jt, Eo(yt, A.memoizedState) || sx(), A.memoizedState = yt, A.baseState = It, A.baseQueue = dn, z.lastRenderedState = yt; + } while (Sn !== null && Sn !== We); + pn === null ? It = St : pn.next = Yt, Eo(St, A.memoizedState) || sx(), A.memoizedState = St, A.baseState = It, A.baseQueue = pn, z.lastRenderedState = St; } - var lo = z.interleaved; - if (lo !== null) { - var Et = lo; + var uo = z.interleaved; + if (uo !== null) { + var Ct = uo; do { - var Zt = Et.lane; - sa.lanes = zr(sa.lanes, Zt), gx(Zt), Et = Et.next; - } while (Et !== lo); + var Jt = Ct.lane; + oa.lanes = Ur(oa.lanes, Jt), gx(Jt), Ct = Ct.next; + } while (Ct !== uo); } else - te === null && (z.lanes = an); - var wt = z.dispatch; - return [A.memoizedState, wt]; + ee === null && (z.lanes = sn); + var Mt = z.dispatch; + return [A.memoizedState, Mt]; } - function ht(u, f, M) { - var A = nn(), z = A.queue; + function mt(u, f, M) { + var A = rn(), z = A.queue; if (z === null) throw new Error("Should have a queue. This is likely a bug in React. Please file an issue."); z.lastRenderedReducer = u; - var j = z.dispatch, te = z.pending, se = A.memoizedState; - if (te !== null) { + var W = z.dispatch, ee = z.pending, ae = A.memoizedState; + if (ee !== null) { z.pending = null; - var Se = te.next, Pe = Se; + var _e = ee.next, Ue = _e; do { - var Ge = Pe.action; - se = u(se, Ge), Pe = Pe.next; - } while (Pe !== Se); - Eo(se, A.memoizedState) || sx(), A.memoizedState = se, A.baseQueue === null && (A.baseState = se), z.lastRenderedState = se; + var We = Ue.action; + ae = u(ae, We), Ue = Ue.next; + } while (Ue !== _e); + Eo(ae, A.memoizedState) || sx(), A.memoizedState = ae, A.baseQueue === null && (A.baseState = ae), z.lastRenderedState = ae; } - return [se, j]; + return [ae, W]; } - function Ze(u, f, M) { + function Ke(u, f, M) { } - function gt(u, f, M) { + function _t(u, f, M) { } - function xn(u, f, M) { - var A = sa, z = ln(), j, te = ha(); - if (te) { + function _n(u, f, M) { + var A = oa, z = un(), W, ee = ha(); + if (ee) { if (M === void 0) throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."); - j = M(), Kp || j !== M() && (m("The result of getServerSnapshot should be cached to avoid an infinite loop"), Kp = !0); + W = M(), tm || W !== M() && (g("The result of getServerSnapshot should be cached to avoid an infinite loop"), tm = !0); } else { - if (j = f(), !Kp) { - var se = f(); - Eo(j, se) || (m("The result of getSnapshot should be cached to avoid an infinite loop"), Kp = !0); + if (W = f(), !tm) { + var ae = f(); + Eo(W, ae) || (g("The result of getSnapshot should be cached to avoid an infinite loop"), tm = !0); } - var Se = z_(); - if (Se === null) + var _e = BS(); + if (_e === null) throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); - Vo(Se, Ph) || Qn(A, f, j); + Vo(_e, Oh) || Zn(A, f, W); } - z.memoizedState = j; - var Pe = { - value: j, + z.memoizedState = W; + var Ue = { + value: W, getSnapshot: f }; - return z.queue = Pe, Ov(Lr.bind(null, A, Pe, u), [u]), A.flags |= Wi, Tg(Aa | bl, pr.bind(null, A, Pe, j, f), void 0, null), j; + return z.queue = Ue, Nv(Lr.bind(null, A, Ue, u), [u]), A.flags |= Bi, Ag(Aa | bl, pr.bind(null, A, Ue, W, f), void 0, null), W; } function ar(u, f, M) { - var A = sa, z = nn(), j = f(); - if (!Kp) { - var te = f(); - Eo(j, te) || (m("The result of getSnapshot should be cached to avoid an infinite loop"), Kp = !0); - } - var se = z.memoizedState, Se = !Eo(se, j); - Se && (z.memoizedState = j, sx()); - var Pe = z.queue; - if (Bu(Lr.bind(null, A, Pe, u), [u]), Pe.getSnapshot !== f || Se || Co !== null && Co.memoizedState.tag & Aa) { - A.flags |= Wi, Tg(Aa | bl, pr.bind(null, A, Pe, j, f), void 0, null); - var Ge = z_(); - if (Ge === null) + var A = oa, z = rn(), W = f(); + if (!tm) { + var ee = f(); + Eo(W, ee) || (g("The result of getSnapshot should be cached to avoid an infinite loop"), tm = !0); + } + var ae = z.memoizedState, _e = !Eo(ae, W); + _e && (z.memoizedState = W, sx()); + var Ue = z.queue; + if (Vu(Lr.bind(null, A, Ue, u), [u]), Ue.getSnapshot !== f || _e || Co !== null && Co.memoizedState.tag & Aa) { + A.flags |= Bi, Ag(Aa | bl, pr.bind(null, A, Ue, W, f), void 0, null); + var We = BS(); + if (We === null) throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); - Vo(Ge, Ph) || Qn(A, f, j); + Vo(We, Oh) || Zn(A, f, W); } - return j; + return W; } - function Qn(u, f, M) { + function Zn(u, f, M) { u.flags |= Te; var A = { getSnapshot: f, value: M - }, z = sa.updateQueue; + }, z = oa.updateQueue; if (z === null) - z = kn(), sa.updateQueue = z, z.stores = [A]; + z = Hn(), oa.updateQueue = z, z.stores = [A]; else { - var j = z.stores; - j === null ? z.stores = [A] : j.push(A); + var W = z.stores; + W === null ? z.stores = [A] : W.push(A); } } function pr(u, f, M, A) { - f.value = M, f.getSnapshot = A, ol(f) && Zi(u); + f.value = M, f.getSnapshot = A, ll(f) && Zi(u); } function Lr(u, f, M) { var A = function() { - ol(f) && Zi(u); + ll(f) && Zi(u); }; return M(A); } - function ol(u) { + function ll(u) { var f = u.getSnapshot, M = u.value; try { var A = f(); @@ -27595,52 +27595,52 @@ Incoming: %s`, Wt, "[" + f.join(", ") + "]", "[" + u.join(", ") + "]"); } } function Zi(u) { - Ml(u, Hr, Bi); + Tl(u, Hr, Vi); } - function Ff(u) { - var f = ln(); + function If(u) { + var f = un(); typeof u == "function" && (u = u()), f.memoizedState = f.baseState = u; var M = { pending: null, interleaved: null, - lanes: an, + lanes: sn, dispatch: null, - lastRenderedReducer: qn, + lastRenderedReducer: Qn, lastRenderedState: u }; f.queue = M; - var A = M.dispatch = xw.bind(null, sa, M); + var A = M.dispatch = xb.bind(null, oa, M); return [f.memoizedState, A]; } - function Mg(u) { - return Bs(qn); + function Rg(u) { + return Hs(Qn); } function k0(u) { - return ht(qn); + return mt(Qn); } - function Tg(u, f, M, A) { + function Ag(u, f, M, A) { var z = { tag: u, create: f, destroy: M, deps: A, next: null - }, j = sa.updateQueue; - if (j === null) - j = kn(), sa.updateQueue = j, j.lastEffect = z.next = z; + }, W = oa.updateQueue; + if (W === null) + W = Hn(), oa.updateQueue = W, W.lastEffect = z.next = z; else { - var te = j.lastEffect; - if (te === null) - j.lastEffect = z.next = z; + var ee = W.lastEffect; + if (ee === null) + W.lastEffect = z.next = z; else { - var se = te.next; - te.next = z, z.next = se, j.lastEffect = z; + var ae = ee.next; + ee.next = z, z.next = ae, W.lastEffect = z; } } return z; } function I0(u) { - var f = ln(); + var f = un(); { var M = { current: u @@ -27649,47 +27649,47 @@ Incoming: %s`, Wt, "[" + f.join(", ") + "]", "[" + u.join(", ") + "]"); } } function B0(u) { - var f = nn(); + var f = rn(); return f.memoizedState; } - function Ry(u, f, M, A) { - var z = ln(), j = A === void 0 ? null : A; - sa.flags |= u, z.memoizedState = Tg(Aa | f, M, void 0, j); - } function Ay(u, f, M, A) { - var z = nn(), j = A === void 0 ? null : A, te = void 0; - if (Cs !== null) { - var se = Cs.memoizedState; - if (te = se.destroy, j !== null) { - var Se = se.deps; - if (ue(j, Se)) { - z.memoizedState = Tg(f, M, te, j); + var z = un(), W = A === void 0 ? null : A; + oa.flags |= u, z.memoizedState = Ag(Aa | f, M, void 0, W); + } + function Dy(u, f, M, A) { + var z = rn(), W = A === void 0 ? null : A, ee = void 0; + if (Rs !== null) { + var ae = Rs.memoizedState; + if (ee = ae.destroy, W !== null) { + var _e = ae.deps; + if (le(W, _e)) { + z.memoizedState = Ag(f, M, ee, W); return; } } } - sa.flags |= u, z.memoizedState = Tg(Aa | f, M, te, j); + oa.flags |= u, z.memoizedState = Ag(Aa | f, M, ee, W); } - function Ov(u, f) { - return (sa.mode & So) !== Mr ? Ry(nr | Wi | vn, bl, u, f) : Ry(Wi | vn, bl, u, f); + function Nv(u, f) { + return (oa.mode & _o) !== Mr ? Ay(rr | Bi | yn, bl, u, f) : Ay(Bi | yn, bl, u, f); } - function Bu(u, f) { - return Ay(Wi, bl, u, f); + function Vu(u, f) { + return Dy(Bi, bl, u, f); } function c1(u, f) { - return Ry(fn, vp, u, f); + return Ay(cn, xp, u, f); } function H0(u, f) { - return Ay(fn, vp, u, f); + return Dy(cn, xp, u, f); } - function em(u, f) { - var M = fn; - return M |= mn, (sa.mode & So) !== Mr && (M |= Zn), Ry(M, Ts, u, f); + function rm(u, f) { + var M = cn; + return M |= gn, (oa.mode & _o) !== Mr && (M |= Jn), Ay(M, Cs, u, f); } - function ei(u, f) { - return Ay(fn, Ts, u, f); + function Jr(u, f) { + return Dy(cn, Cs, u, f); } - function KS(u, f) { + function rS(u, f) { if (typeof f == "function") { var M = f, A = u(); return M(A), function() { @@ -27697,807 +27697,807 @@ Incoming: %s`, Wt, "[" + f.join(", ") + "]", "[" + u.join(", ") + "]"); }; } else if (f != null) { var z = f; - z.hasOwnProperty("current") || m("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(z).join(", ") + "}"); - var j = u(); - return z.current = j, function() { + z.hasOwnProperty("current") || g("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(z).join(", ") + "}"); + var W = u(); + return z.current = W, function() { z.current = null; }; } } - function ll(u, f, M) { - typeof f != "function" && m("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", f !== null ? typeof f : "null"); - var A = M != null ? M.concat([u]) : null, z = fn; - return z |= mn, (sa.mode & So) !== Mr && (z |= Zn), Ry(z, Ts, KS.bind(null, f, u), A); + function ul(u, f, M) { + typeof f != "function" && g("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", f !== null ? typeof f : "null"); + var A = M != null ? M.concat([u]) : null, z = cn; + return z |= gn, (oa.mode & _o) !== Mr && (z |= Jn), Ay(z, Cs, rS.bind(null, f, u), A); } - function Rs(u, f, M) { - typeof f != "function" && m("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", f !== null ? typeof f : "null"); + function As(u, f, M) { + typeof f != "function" && g("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", f !== null ? typeof f : "null"); var A = M != null ? M.concat([u]) : null; - return Ay(fn, Ts, KS.bind(null, f, u), A); + return Dy(cn, Cs, rS.bind(null, f, u), A); } - function Dy(u, f) { + function Ly(u, f) { } - var xd = Dy; + var Sd = Ly; function f1(u, f) { - var M = ln(), A = f === void 0 ? null : f; + var M = un(), A = f === void 0 ? null : f; return M.memoizedState = [u, A], u; } function V0(u, f) { - var M = nn(), A = f === void 0 ? null : f, z = M.memoizedState; + var M = rn(), A = f === void 0 ? null : f, z = M.memoizedState; if (z !== null && A !== null) { - var j = z[1]; - if (ue(A, j)) + var W = z[1]; + if (le(A, W)) return z[0]; } return M.memoizedState = [u, A], u; } function G0(u, f) { - var M = ln(), A = f === void 0 ? null : f, z = u(); + var M = un(), A = f === void 0 ? null : f, z = u(); return M.memoizedState = [z, A], z; } function W0(u, f) { - var M = nn(), A = f === void 0 ? null : f, z = M.memoizedState; + var M = rn(), A = f === void 0 ? null : f, z = M.memoizedState; if (z !== null && A !== null) { - var j = z[1]; - if (ue(A, j)) + var W = z[1]; + if (le(A, W)) return z[0]; } - var te = u(); - return M.memoizedState = [te, A], te; + var ee = u(); + return M.memoizedState = [ee, A], ee; } - function Cg(u) { - var f = Ff(u), M = f[0], A = f[1]; - return Ov(function() { - var z = Iu.transition; - Iu.transition = {}; + function Dg(u) { + var f = If(u), M = f[0], A = f[1]; + return Nv(function() { + var z = Hu.transition; + Hu.transition = {}; try { A(u); } finally { - Iu.transition = z; + Hu.transition = z; } }, [u]), M; } - function tm(u) { - var f = Mg(), M = f[0], A = f[1]; - return Bu(function() { - var z = Iu.transition; - Iu.transition = {}; + function im(u) { + var f = Rg(), M = f[0], A = f[1]; + return Vu(function() { + var z = Hu.transition; + Hu.transition = {}; try { A(u); } finally { - Iu.transition = z; + Hu.transition = z; } }, [u]), M; } function j0(u) { var f = k0(), M = f[0], A = f[1]; - return Bu(function() { - var z = Iu.transition; - Iu.transition = {}; + return Vu(function() { + var z = Hu.transition; + Hu.transition = {}; try { A(u); } finally { - Iu.transition = z; + Hu.transition = z; } }, [u]), M; } - function yp(u, f, M) { - var A = rl(); - zs(Uu(A, sd)), u(!0); - var z = Iu.transition; - Iu.transition = {}; - var j = Iu.transition; - Iu.transition._updatedFibers = /* @__PURE__ */ new Set(); + function Sp(u, f, M) { + var A = il(); + Ns(Nu(A, ld)), u(!0); + var z = Hu.transition; + Hu.transition = {}; + var W = Hu.transition; + Hu.transition._updatedFibers = /* @__PURE__ */ new Set(); try { u(!1), f(); } finally { - if (zs(A), Iu.transition = z, z === null && j._updatedFibers) { - var te = j._updatedFibers.size; - te > 10 && h("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), j._updatedFibers.clear(); + if (Ns(A), Hu.transition = z, z === null && W._updatedFibers) { + var ee = W._updatedFibers.size; + ee > 10 && p("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), W._updatedFibers.clear(); } } } - function Uv() { - var u = Ff(!1), f = u[0], M = u[1], A = yp.bind(null, M), z = ln(); + function Fv() { + var u = If(!1), f = u[0], M = u[1], A = Sp.bind(null, M), z = un(); return z.memoizedState = A, [f, A]; } - function Rg() { - var u = Mg(), f = u[0], M = nn(), A = M.memoizedState; + function Lg() { + var u = Rg(), f = u[0], M = rn(), A = M.memoizedState; return [f, A]; } - function Hs() { - var u = k0(), f = u[0], M = nn(), A = M.memoizedState; + function Vs() { + var u = k0(), f = u[0], M = rn(), A = M.memoizedState; return [f, A]; } - var ao = !1; + var so = !1; function d1() { - return ao; + return so; } function Y0() { - var u = ln(), f = z_(), M = f.identifierPrefix, A; + var u = un(), f = BS(), M = f.identifierPrefix, A; if (ha()) { - var z = _y(); + var z = wy(); A = ":" + M + "R" + z; - var j = gp++; - j > 0 && (A += "H" + j.toString(32)), A += ":"; + var W = _p++; + W > 0 && (A += "H" + W.toString(32)), A += ":"; } else { - var te = Eg++; - A = ":" + M + "r" + te.toString(32) + ":"; + var ee = Cg++; + A = ":" + M + "r" + ee.toString(32) + ":"; } return u.memoizedState = A, A; } - function Ly() { - var u = nn(), f = u.memoizedState; + function Py() { + var u = rn(), f = u.memoizedState; return f; } - function Qm(u, f, M) { - typeof arguments[3] == "function" && m("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."); - var A = Wv(u), z = { + function Km(u, f, M) { + typeof arguments[3] == "function" && g("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."); + var A = Xv(u), z = { lane: A, action: M, hasEagerState: !1, eagerState: null, next: null }; - if ($S(u)) - e_(f, z); + if (iS(u)) + aS(f, z); else { - zv(u, f, z); - var j = yc(), te = Ml(u, A, j); - te !== null && Zm(te, f, A); + kv(u, f, z); + var W = yc(), ee = Tl(u, A, W); + ee !== null && $m(ee, f, A); } - Py(u, A); + Oy(u, A); } - function xw(u, f, M) { - typeof arguments[3] == "function" && m("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."); - var A = Wv(u), z = { + function xb(u, f, M) { + typeof arguments[3] == "function" && g("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."); + var A = Xv(u), z = { lane: A, action: M, hasEagerState: !1, eagerState: null, next: null }; - if ($S(u)) - e_(f, z); + if (iS(u)) + aS(f, z); else { - zv(u, f, z); - var j = u.alternate; - if (u.lanes === an && (j === null || j.lanes === an)) { - var te = f.lastRenderedReducer; - if (te !== null) { - var se; - se = On.current, On.current = jc; + kv(u, f, z); + var W = u.alternate; + if (u.lanes === sn && (W === null || W.lanes === sn)) { + var ee = f.lastRenderedReducer; + if (ee !== null) { + var ae; + ae = zn.current, zn.current = Yc; try { - var Se = f.lastRenderedState, Pe = te(Se, M); - if (z.hasEagerState = !0, z.eagerState = Pe, Eo(Pe, Se)) + var _e = f.lastRenderedState, Ue = ee(_e, M); + if (z.hasEagerState = !0, z.eagerState = Ue, Eo(Ue, _e)) return; } catch { } finally { - On.current = se; + zn.current = ae; } } } - var Ge = yc(), yt = Ml(u, A, Ge); - yt !== null && Zm(yt, f, A); + var We = yc(), St = Tl(u, A, We); + St !== null && $m(St, f, A); } - Py(u, A); + Oy(u, A); } - function $S(u) { + function iS(u) { var f = u.alternate; - return u === sa || f !== null && f === sa; + return u === oa || f !== null && f === oa; } - function e_(u, f) { - qm = $p = !0; + function aS(u, f) { + Jm = nm = !0; var M = u.pending; M === null ? f.next = f : (f.next = M.next, M.next = f), u.pending = f; } - function zv(u, f, M, A) { - if (N_(u)) { + function kv(u, f, M, A) { + if (HS(u)) { var z = f.interleaved; z === null ? (M.next = M, ur(f)) : (M.next = z.next, z.next = M), f.interleaved = M; } else { - var j = f.pending; - j === null ? M.next = M : (M.next = j.next, j.next = M), f.pending = M; + var W = f.pending; + W === null ? M.next = M : (M.next = W.next, W.next = M), f.pending = M; } } - function Zm(u, f, M) { - if (vl(M)) { + function $m(u, f, M) { + if (gl(M)) { var A = f.lanes; - A = ps(A, u.pendingLanes); - var z = zr(A, M); + A = ms(A, u.pendingLanes); + var z = Ur(A, M); f.lanes = z, bs(u, z); } } - function Py(u, f, M) { - Nc(u, f); + function Oy(u, f, M) { + Fc(u, f); } var X0 = { - readContext: bn, - useCallback: Q, - useContext: Q, - useEffect: Q, - useImperativeHandle: Q, - useInsertionEffect: Q, - useLayoutEffect: Q, - useMemo: Q, - useReducer: Q, - useRef: Q, - useState: Q, - useDebugValue: Q, - useDeferredValue: Q, - useTransition: Q, - useMutableSource: Q, - useSyncExternalStore: Q, - useId: Q, - unstable_isNewReconciler: P - }, q0 = null, Oy = null, Ni = null, nm = null, Sd = null, jc = null, Uy = null; + readContext: wn, + useCallback: q, + useContext: q, + useEffect: q, + useImperativeHandle: q, + useInsertionEffect: q, + useLayoutEffect: q, + useMemo: q, + useReducer: q, + useRef: q, + useState: q, + useDebugValue: q, + useDeferredValue: q, + useTransition: q, + useMutableSource: q, + useSyncExternalStore: q, + useId: q, + unstable_isNewReconciler: O + }, q0 = null, Uy = null, Ni = null, am = null, wd = null, Yc = null, zy = null; { var Q0 = function() { - m("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); - }, Fr = function() { - m("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"); + g("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); + }, Nr = function() { + g("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"); }; q0 = { readContext: function(u) { - return bn(u); + return wn(u); }, useCallback: function(u, f) { - return Wt = "useCallback", p(), O(f), f1(u, f); + return jt = "useCallback", h(), P(f), f1(u, f); }, useContext: function(u) { - return Wt = "useContext", p(), bn(u); + return jt = "useContext", h(), wn(u); }, useEffect: function(u, f) { - return Wt = "useEffect", p(), O(f), Ov(u, f); + return jt = "useEffect", h(), P(f), Nv(u, f); }, useImperativeHandle: function(u, f, M) { - return Wt = "useImperativeHandle", p(), O(M), ll(u, f, M); + return jt = "useImperativeHandle", h(), P(M), ul(u, f, M); }, useInsertionEffect: function(u, f) { - return Wt = "useInsertionEffect", p(), O(f), c1(u, f); + return jt = "useInsertionEffect", h(), P(f), c1(u, f); }, useLayoutEffect: function(u, f) { - return Wt = "useLayoutEffect", p(), O(f), em(u, f); + return jt = "useLayoutEffect", h(), P(f), rm(u, f); }, useMemo: function(u, f) { - Wt = "useMemo", p(), O(f); - var M = On.current; - On.current = Sd; + jt = "useMemo", h(), P(f); + var M = zn.current; + zn.current = wd; try { return G0(u, f); } finally { - On.current = M; + zn.current = M; } }, useReducer: function(u, f, M) { - Wt = "useReducer", p(); - var A = On.current; - On.current = Sd; + jt = "useReducer", h(); + var A = zn.current; + zn.current = wd; try { - return rr(u, f, M); + return ir(u, f, M); } finally { - On.current = A; + zn.current = A; } }, useRef: function(u) { - return Wt = "useRef", p(), I0(u); + return jt = "useRef", h(), I0(u); }, useState: function(u) { - Wt = "useState", p(); - var f = On.current; - On.current = Sd; + jt = "useState", h(); + var f = zn.current; + zn.current = wd; try { - return Ff(u); + return If(u); } finally { - On.current = f; + zn.current = f; } }, useDebugValue: function(u, f) { - return Wt = "useDebugValue", p(), void 0; + return jt = "useDebugValue", h(), void 0; }, useDeferredValue: function(u) { - return Wt = "useDeferredValue", p(), Cg(u); + return jt = "useDeferredValue", h(), Dg(u); }, useTransition: function() { - return Wt = "useTransition", p(), Uv(); + return jt = "useTransition", h(), Fv(); }, useMutableSource: function(u, f, M) { - return Wt = "useMutableSource", p(), void 0; + return jt = "useMutableSource", h(), void 0; }, useSyncExternalStore: function(u, f, M) { - return Wt = "useSyncExternalStore", p(), xn(u, f, M); + return jt = "useSyncExternalStore", h(), _n(u, f, M); }, useId: function() { - return Wt = "useId", p(), Y0(); + return jt = "useId", h(), Y0(); }, - unstable_isNewReconciler: P - }, Oy = { + unstable_isNewReconciler: O + }, Uy = { readContext: function(u) { - return bn(u); + return wn(u); }, useCallback: function(u, f) { - return Wt = "useCallback", E(), f1(u, f); + return jt = "useCallback", E(), f1(u, f); }, useContext: function(u) { - return Wt = "useContext", E(), bn(u); + return jt = "useContext", E(), wn(u); }, useEffect: function(u, f) { - return Wt = "useEffect", E(), Ov(u, f); + return jt = "useEffect", E(), Nv(u, f); }, useImperativeHandle: function(u, f, M) { - return Wt = "useImperativeHandle", E(), ll(u, f, M); + return jt = "useImperativeHandle", E(), ul(u, f, M); }, useInsertionEffect: function(u, f) { - return Wt = "useInsertionEffect", E(), c1(u, f); + return jt = "useInsertionEffect", E(), c1(u, f); }, useLayoutEffect: function(u, f) { - return Wt = "useLayoutEffect", E(), em(u, f); + return jt = "useLayoutEffect", E(), rm(u, f); }, useMemo: function(u, f) { - Wt = "useMemo", E(); - var M = On.current; - On.current = Sd; + jt = "useMemo", E(); + var M = zn.current; + zn.current = wd; try { return G0(u, f); } finally { - On.current = M; + zn.current = M; } }, useReducer: function(u, f, M) { - Wt = "useReducer", E(); - var A = On.current; - On.current = Sd; + jt = "useReducer", E(); + var A = zn.current; + zn.current = wd; try { - return rr(u, f, M); + return ir(u, f, M); } finally { - On.current = A; + zn.current = A; } }, useRef: function(u) { - return Wt = "useRef", E(), I0(u); + return jt = "useRef", E(), I0(u); }, useState: function(u) { - Wt = "useState", E(); - var f = On.current; - On.current = Sd; + jt = "useState", E(); + var f = zn.current; + zn.current = wd; try { - return Ff(u); + return If(u); } finally { - On.current = f; + zn.current = f; } }, useDebugValue: function(u, f) { - return Wt = "useDebugValue", E(), void 0; + return jt = "useDebugValue", E(), void 0; }, useDeferredValue: function(u) { - return Wt = "useDeferredValue", E(), Cg(u); + return jt = "useDeferredValue", E(), Dg(u); }, useTransition: function() { - return Wt = "useTransition", E(), Uv(); + return jt = "useTransition", E(), Fv(); }, useMutableSource: function(u, f, M) { - return Wt = "useMutableSource", E(), void 0; + return jt = "useMutableSource", E(), void 0; }, useSyncExternalStore: function(u, f, M) { - return Wt = "useSyncExternalStore", E(), xn(u, f, M); + return jt = "useSyncExternalStore", E(), _n(u, f, M); }, useId: function() { - return Wt = "useId", E(), Y0(); + return jt = "useId", E(), Y0(); }, - unstable_isNewReconciler: P + unstable_isNewReconciler: O }, Ni = { readContext: function(u) { - return bn(u); + return wn(u); }, useCallback: function(u, f) { - return Wt = "useCallback", E(), V0(u, f); + return jt = "useCallback", E(), V0(u, f); }, useContext: function(u) { - return Wt = "useContext", E(), bn(u); + return jt = "useContext", E(), wn(u); }, useEffect: function(u, f) { - return Wt = "useEffect", E(), Bu(u, f); + return jt = "useEffect", E(), Vu(u, f); }, useImperativeHandle: function(u, f, M) { - return Wt = "useImperativeHandle", E(), Rs(u, f, M); + return jt = "useImperativeHandle", E(), As(u, f, M); }, useInsertionEffect: function(u, f) { - return Wt = "useInsertionEffect", E(), H0(u, f); + return jt = "useInsertionEffect", E(), H0(u, f); }, useLayoutEffect: function(u, f) { - return Wt = "useLayoutEffect", E(), ei(u, f); + return jt = "useLayoutEffect", E(), Jr(u, f); }, useMemo: function(u, f) { - Wt = "useMemo", E(); - var M = On.current; - On.current = jc; + jt = "useMemo", E(); + var M = zn.current; + zn.current = Yc; try { return W0(u, f); } finally { - On.current = M; + zn.current = M; } }, useReducer: function(u, f, M) { - Wt = "useReducer", E(); - var A = On.current; - On.current = jc; + jt = "useReducer", E(); + var A = zn.current; + zn.current = Yc; try { - return Bs(u, f, M); + return Hs(u, f, M); } finally { - On.current = A; + zn.current = A; } }, useRef: function(u) { - return Wt = "useRef", E(), B0(); + return jt = "useRef", E(), B0(); }, useState: function(u) { - Wt = "useState", E(); - var f = On.current; - On.current = jc; + jt = "useState", E(); + var f = zn.current; + zn.current = Yc; try { - return Mg(u); + return Rg(u); } finally { - On.current = f; + zn.current = f; } }, useDebugValue: function(u, f) { - return Wt = "useDebugValue", E(), xd(); + return jt = "useDebugValue", E(), Sd(); }, useDeferredValue: function(u) { - return Wt = "useDeferredValue", E(), tm(u); + return jt = "useDeferredValue", E(), im(u); }, useTransition: function() { - return Wt = "useTransition", E(), Rg(); + return jt = "useTransition", E(), Lg(); }, useMutableSource: function(u, f, M) { - return Wt = "useMutableSource", E(), void 0; + return jt = "useMutableSource", E(), void 0; }, useSyncExternalStore: function(u, f, M) { - return Wt = "useSyncExternalStore", E(), ar(u, f); + return jt = "useSyncExternalStore", E(), ar(u, f); }, useId: function() { - return Wt = "useId", E(), Ly(); + return jt = "useId", E(), Py(); }, - unstable_isNewReconciler: P - }, nm = { + unstable_isNewReconciler: O + }, am = { readContext: function(u) { - return bn(u); + return wn(u); }, useCallback: function(u, f) { - return Wt = "useCallback", E(), V0(u, f); + return jt = "useCallback", E(), V0(u, f); }, useContext: function(u) { - return Wt = "useContext", E(), bn(u); + return jt = "useContext", E(), wn(u); }, useEffect: function(u, f) { - return Wt = "useEffect", E(), Bu(u, f); + return jt = "useEffect", E(), Vu(u, f); }, useImperativeHandle: function(u, f, M) { - return Wt = "useImperativeHandle", E(), Rs(u, f, M); + return jt = "useImperativeHandle", E(), As(u, f, M); }, useInsertionEffect: function(u, f) { - return Wt = "useInsertionEffect", E(), H0(u, f); + return jt = "useInsertionEffect", E(), H0(u, f); }, useLayoutEffect: function(u, f) { - return Wt = "useLayoutEffect", E(), ei(u, f); + return jt = "useLayoutEffect", E(), Jr(u, f); }, useMemo: function(u, f) { - Wt = "useMemo", E(); - var M = On.current; - On.current = Uy; + jt = "useMemo", E(); + var M = zn.current; + zn.current = zy; try { return W0(u, f); } finally { - On.current = M; + zn.current = M; } }, useReducer: function(u, f, M) { - Wt = "useReducer", E(); - var A = On.current; - On.current = Uy; + jt = "useReducer", E(); + var A = zn.current; + zn.current = zy; try { - return ht(u, f, M); + return mt(u, f, M); } finally { - On.current = A; + zn.current = A; } }, useRef: function(u) { - return Wt = "useRef", E(), B0(); + return jt = "useRef", E(), B0(); }, useState: function(u) { - Wt = "useState", E(); - var f = On.current; - On.current = Uy; + jt = "useState", E(); + var f = zn.current; + zn.current = zy; try { return k0(u); } finally { - On.current = f; + zn.current = f; } }, useDebugValue: function(u, f) { - return Wt = "useDebugValue", E(), xd(); + return jt = "useDebugValue", E(), Sd(); }, useDeferredValue: function(u) { - return Wt = "useDeferredValue", E(), j0(u); + return jt = "useDeferredValue", E(), j0(u); }, useTransition: function() { - return Wt = "useTransition", E(), Hs(); + return jt = "useTransition", E(), Vs(); }, useMutableSource: function(u, f, M) { - return Wt = "useMutableSource", E(), void 0; + return jt = "useMutableSource", E(), void 0; }, useSyncExternalStore: function(u, f, M) { - return Wt = "useSyncExternalStore", E(), ar(u, f); + return jt = "useSyncExternalStore", E(), ar(u, f); }, useId: function() { - return Wt = "useId", E(), Ly(); + return jt = "useId", E(), Py(); }, - unstable_isNewReconciler: P - }, Sd = { + unstable_isNewReconciler: O + }, wd = { readContext: function(u) { - return Q0(), bn(u); + return Q0(), wn(u); }, useCallback: function(u, f) { - return Wt = "useCallback", Fr(), p(), f1(u, f); + return jt = "useCallback", Nr(), h(), f1(u, f); }, useContext: function(u) { - return Wt = "useContext", Fr(), p(), bn(u); + return jt = "useContext", Nr(), h(), wn(u); }, useEffect: function(u, f) { - return Wt = "useEffect", Fr(), p(), Ov(u, f); + return jt = "useEffect", Nr(), h(), Nv(u, f); }, useImperativeHandle: function(u, f, M) { - return Wt = "useImperativeHandle", Fr(), p(), ll(u, f, M); + return jt = "useImperativeHandle", Nr(), h(), ul(u, f, M); }, useInsertionEffect: function(u, f) { - return Wt = "useInsertionEffect", Fr(), p(), c1(u, f); + return jt = "useInsertionEffect", Nr(), h(), c1(u, f); }, useLayoutEffect: function(u, f) { - return Wt = "useLayoutEffect", Fr(), p(), em(u, f); + return jt = "useLayoutEffect", Nr(), h(), rm(u, f); }, useMemo: function(u, f) { - Wt = "useMemo", Fr(), p(); - var M = On.current; - On.current = Sd; + jt = "useMemo", Nr(), h(); + var M = zn.current; + zn.current = wd; try { return G0(u, f); } finally { - On.current = M; + zn.current = M; } }, useReducer: function(u, f, M) { - Wt = "useReducer", Fr(), p(); - var A = On.current; - On.current = Sd; + jt = "useReducer", Nr(), h(); + var A = zn.current; + zn.current = wd; try { - return rr(u, f, M); + return ir(u, f, M); } finally { - On.current = A; + zn.current = A; } }, useRef: function(u) { - return Wt = "useRef", Fr(), p(), I0(u); + return jt = "useRef", Nr(), h(), I0(u); }, useState: function(u) { - Wt = "useState", Fr(), p(); - var f = On.current; - On.current = Sd; + jt = "useState", Nr(), h(); + var f = zn.current; + zn.current = wd; try { - return Ff(u); + return If(u); } finally { - On.current = f; + zn.current = f; } }, useDebugValue: function(u, f) { - return Wt = "useDebugValue", Fr(), p(), void 0; + return jt = "useDebugValue", Nr(), h(), void 0; }, useDeferredValue: function(u) { - return Wt = "useDeferredValue", Fr(), p(), Cg(u); + return jt = "useDeferredValue", Nr(), h(), Dg(u); }, useTransition: function() { - return Wt = "useTransition", Fr(), p(), Uv(); + return jt = "useTransition", Nr(), h(), Fv(); }, useMutableSource: function(u, f, M) { - return Wt = "useMutableSource", Fr(), p(), void 0; + return jt = "useMutableSource", Nr(), h(), void 0; }, useSyncExternalStore: function(u, f, M) { - return Wt = "useSyncExternalStore", Fr(), p(), xn(u, f, M); + return jt = "useSyncExternalStore", Nr(), h(), _n(u, f, M); }, useId: function() { - return Wt = "useId", Fr(), p(), Y0(); + return jt = "useId", Nr(), h(), Y0(); }, - unstable_isNewReconciler: P - }, jc = { + unstable_isNewReconciler: O + }, Yc = { readContext: function(u) { - return Q0(), bn(u); + return Q0(), wn(u); }, useCallback: function(u, f) { - return Wt = "useCallback", Fr(), E(), V0(u, f); + return jt = "useCallback", Nr(), E(), V0(u, f); }, useContext: function(u) { - return Wt = "useContext", Fr(), E(), bn(u); + return jt = "useContext", Nr(), E(), wn(u); }, useEffect: function(u, f) { - return Wt = "useEffect", Fr(), E(), Bu(u, f); + return jt = "useEffect", Nr(), E(), Vu(u, f); }, useImperativeHandle: function(u, f, M) { - return Wt = "useImperativeHandle", Fr(), E(), Rs(u, f, M); + return jt = "useImperativeHandle", Nr(), E(), As(u, f, M); }, useInsertionEffect: function(u, f) { - return Wt = "useInsertionEffect", Fr(), E(), H0(u, f); + return jt = "useInsertionEffect", Nr(), E(), H0(u, f); }, useLayoutEffect: function(u, f) { - return Wt = "useLayoutEffect", Fr(), E(), ei(u, f); + return jt = "useLayoutEffect", Nr(), E(), Jr(u, f); }, useMemo: function(u, f) { - Wt = "useMemo", Fr(), E(); - var M = On.current; - On.current = jc; + jt = "useMemo", Nr(), E(); + var M = zn.current; + zn.current = Yc; try { return W0(u, f); } finally { - On.current = M; + zn.current = M; } }, useReducer: function(u, f, M) { - Wt = "useReducer", Fr(), E(); - var A = On.current; - On.current = jc; + jt = "useReducer", Nr(), E(); + var A = zn.current; + zn.current = Yc; try { - return Bs(u, f, M); + return Hs(u, f, M); } finally { - On.current = A; + zn.current = A; } }, useRef: function(u) { - return Wt = "useRef", Fr(), E(), B0(); + return jt = "useRef", Nr(), E(), B0(); }, useState: function(u) { - Wt = "useState", Fr(), E(); - var f = On.current; - On.current = jc; + jt = "useState", Nr(), E(); + var f = zn.current; + zn.current = Yc; try { - return Mg(u); + return Rg(u); } finally { - On.current = f; + zn.current = f; } }, useDebugValue: function(u, f) { - return Wt = "useDebugValue", Fr(), E(), xd(); + return jt = "useDebugValue", Nr(), E(), Sd(); }, useDeferredValue: function(u) { - return Wt = "useDeferredValue", Fr(), E(), tm(u); + return jt = "useDeferredValue", Nr(), E(), im(u); }, useTransition: function() { - return Wt = "useTransition", Fr(), E(), Rg(); + return jt = "useTransition", Nr(), E(), Lg(); }, useMutableSource: function(u, f, M) { - return Wt = "useMutableSource", Fr(), E(), void 0; + return jt = "useMutableSource", Nr(), E(), void 0; }, useSyncExternalStore: function(u, f, M) { - return Wt = "useSyncExternalStore", Fr(), E(), ar(u, f); + return jt = "useSyncExternalStore", Nr(), E(), ar(u, f); }, useId: function() { - return Wt = "useId", Fr(), E(), Ly(); + return jt = "useId", Nr(), E(), Py(); }, - unstable_isNewReconciler: P - }, Uy = { + unstable_isNewReconciler: O + }, zy = { readContext: function(u) { - return Q0(), bn(u); + return Q0(), wn(u); }, useCallback: function(u, f) { - return Wt = "useCallback", Fr(), E(), V0(u, f); + return jt = "useCallback", Nr(), E(), V0(u, f); }, useContext: function(u) { - return Wt = "useContext", Fr(), E(), bn(u); + return jt = "useContext", Nr(), E(), wn(u); }, useEffect: function(u, f) { - return Wt = "useEffect", Fr(), E(), Bu(u, f); + return jt = "useEffect", Nr(), E(), Vu(u, f); }, useImperativeHandle: function(u, f, M) { - return Wt = "useImperativeHandle", Fr(), E(), Rs(u, f, M); + return jt = "useImperativeHandle", Nr(), E(), As(u, f, M); }, useInsertionEffect: function(u, f) { - return Wt = "useInsertionEffect", Fr(), E(), H0(u, f); + return jt = "useInsertionEffect", Nr(), E(), H0(u, f); }, useLayoutEffect: function(u, f) { - return Wt = "useLayoutEffect", Fr(), E(), ei(u, f); + return jt = "useLayoutEffect", Nr(), E(), Jr(u, f); }, useMemo: function(u, f) { - Wt = "useMemo", Fr(), E(); - var M = On.current; - On.current = jc; + jt = "useMemo", Nr(), E(); + var M = zn.current; + zn.current = Yc; try { return W0(u, f); } finally { - On.current = M; + zn.current = M; } }, useReducer: function(u, f, M) { - Wt = "useReducer", Fr(), E(); - var A = On.current; - On.current = jc; + jt = "useReducer", Nr(), E(); + var A = zn.current; + zn.current = Yc; try { - return ht(u, f, M); + return mt(u, f, M); } finally { - On.current = A; + zn.current = A; } }, useRef: function(u) { - return Wt = "useRef", Fr(), E(), B0(); + return jt = "useRef", Nr(), E(), B0(); }, useState: function(u) { - Wt = "useState", Fr(), E(); - var f = On.current; - On.current = jc; + jt = "useState", Nr(), E(); + var f = zn.current; + zn.current = Yc; try { return k0(u); } finally { - On.current = f; + zn.current = f; } }, useDebugValue: function(u, f) { - return Wt = "useDebugValue", Fr(), E(), xd(); + return jt = "useDebugValue", Nr(), E(), Sd(); }, useDeferredValue: function(u) { - return Wt = "useDeferredValue", Fr(), E(), j0(u); + return jt = "useDeferredValue", Nr(), E(), j0(u); }, useTransition: function() { - return Wt = "useTransition", Fr(), E(), Hs(); + return jt = "useTransition", Nr(), E(), Vs(); }, useMutableSource: function(u, f, M) { - return Wt = "useMutableSource", Fr(), E(), void 0; + return jt = "useMutableSource", Nr(), E(), void 0; }, useSyncExternalStore: function(u, f, M) { - return Wt = "useSyncExternalStore", Fr(), E(), ar(u, f); + return jt = "useSyncExternalStore", Nr(), E(), ar(u, f); }, useId: function() { - return Wt = "useId", Fr(), E(), Ly(); + return jt = "useId", Nr(), E(), Py(); }, - unstable_isNewReconciler: P + unstable_isNewReconciler: O }; } - var _d = i.unstable_now, xp = 0, qr = -1, Oh = -1, Yc = -1, zy = !1, Z0 = !1; + var bd = i.unstable_now, wp = 0, jr = -1, Uh = -1, Xc = -1, Ny = !1, Z0 = !1; function Da() { - return zy; + return Ny; } - function kf() { + function Bf() { Z0 = !0; } - function Ag() { - zy = !1, Z0 = !1; + function Pg() { + Ny = !1, Z0 = !1; } - function Nv() { - zy = Z0, Z0 = !1; + function Iv() { + Ny = Z0, Z0 = !1; } - function rm() { - return xp; + function sm() { + return wp; } function h1() { - xp = _d(); + wp = bd(); } - function im(u) { - Oh = _d(), u.actualStartTime < 0 && (u.actualStartTime = _d()); + function om(u) { + Uh = bd(), u.actualStartTime < 0 && (u.actualStartTime = bd()); } - function Jm(u) { - Oh = -1; + function ev(u) { + Uh = -1; } - function Fv(u, f) { - if (Oh >= 0) { - var M = _d() - Oh; - u.actualDuration += M, f && (u.selfBaseDuration = M), Oh = -1; + function Bv(u, f) { + if (Uh >= 0) { + var M = bd() - Uh; + u.actualDuration += M, f && (u.selfBaseDuration = M), Uh = -1; } } - function If(u) { - if (qr >= 0) { - var f = _d() - qr; - qr = -1; + function Hf(u) { + if (jr >= 0) { + var f = bd() - jr; + jr = -1; for (var M = u.return; M !== null; ) { switch (M.tag) { - case ie: + case se: var A = M.stateNode; A.effectDuration += f; return; - case de: + case fe: var z = M.stateNode; z.effectDuration += f; return; @@ -28506,17 +28506,17 @@ Incoming: %s`, Wt, "[" + f.join(", ") + "]", "[" + u.join(", ") + "]"); } } } - function Dg(u) { - if (Yc >= 0) { - var f = _d() - Yc; - Yc = -1; + function Og(u) { + if (Xc >= 0) { + var f = bd() - Xc; + Xc = -1; for (var M = u.return; M !== null; ) { switch (M.tag) { - case ie: + case se: var A = M.stateNode; A !== null && (A.passiveEffectDuration += f); return; - case de: + case fe: var z = M.stateNode; z !== null && (z.passiveEffectDuration += f); return; @@ -28526,49 +28526,49 @@ Incoming: %s`, Wt, "[" + f.join(", ") + "]", "[" + u.join(", ") + "]"); } } function vc() { - qr = _d(); + jr = bd(); } function J0() { - Yc = _d(); + Xc = bd(); } - function Lg(u) { + function Ug(u) { for (var f = u.child; f; ) u.actualDuration += f.actualDuration, f = f.sibling; } - function Ny(u, f) { + function Fy(u, f) { return { value: u, source: f, - stack: Af(f) + stack: Lf(f) }; } - function t_(u, f) { + function sS(u, f) { return !0; } function p1(u, f) { try { - var M = t_(u, f); + var M = sS(u, f); if (M === !1) return; - var A = f.value, z = f.source, j = f.stack, te = j !== null ? j : ""; + var A = f.value, z = f.source, W = f.stack, ee = W !== null ? W : ""; if (A != null && A._suppressLogging) { - if (u.tag === W) + if (u.tag === Y) return; console.error(A); } - var se = z ? Tt(z) : null, Se = se ? "The above error occurred in the <" + se + "> component:" : "The above error occurred in one of your React components:", Pe; - if (u.tag === ie) - Pe = `Consider adding an error boundary to your tree to customize error handling behavior. + var ae = z ? wt(z) : null, _e = ae ? "The above error occurred in the <" + ae + "> component:" : "The above error occurred in one of your React components:", Ue; + if (u.tag === se) + Ue = `Consider adding an error boundary to your tree to customize error handling behavior. Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`; else { - var Ge = Tt(u) || "Anonymous"; - Pe = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + Ge + "."); + var We = wt(u) || "Anonymous"; + Ue = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + We + "."); } - var yt = Se + ` -` + te + ` + var St = _e + ` +` + ee + ` -` + ("" + Pe); - console.error(yt); +` + ("" + Ue); + console.error(St); } catch (It) { setTimeout(function() { throw It; @@ -28576,9 +28576,9 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda } } var m1 = typeof WeakMap == "function" ? WeakMap : Map; - function Fy(u, f, M) { - var A = Er(Bi, M); - A.tag = dt, A.payload = { + function ky(u, f, M) { + var A = Er(Vi, M); + A.tag = pt, A.payload = { element: null }; var z = f.value; @@ -28586,170 +28586,170 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda fE(z), p1(u, f); }, A; } - function Km(u, f, M) { - var A = Er(Bi, M); - A.tag = dt; + function tv(u, f, M) { + var A = Er(Vi, M); + A.tag = pt; var z = u.type.getDerivedStateFromError; if (typeof z == "function") { - var j = f.value; + var W = f.value; A.payload = function() { - return z(j); + return z(W); }, A.callback = function() { zT(u), p1(u, f); }; } - var te = u.stateNode; - return te !== null && typeof te.componentDidCatch == "function" && (A.callback = function() { + var ee = u.stateNode; + return ee !== null && typeof ee.componentDidCatch == "function" && (A.callback = function() { zT(u), p1(u, f), typeof z != "function" && uE(this); - var Se = f.value, Pe = f.stack; - this.componentDidCatch(Se, { - componentStack: Pe !== null ? Pe : "" - }), typeof z != "function" && (Vr(u.lanes, Hr) || m("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.", Tt(u) || "Unknown")); + var _e = f.value, Ue = f.stack; + this.componentDidCatch(_e, { + componentStack: Ue !== null ? Ue : "" + }), typeof z != "function" && (Vr(u.lanes, Hr) || g("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.", wt(u) || "Unknown")); }), A; } function v1(u, f, M) { var A = u.pingCache, z; if (A === null ? (A = u.pingCache = new m1(), z = /* @__PURE__ */ new Set(), A.set(f, z)) : (z = A.get(f), z === void 0 && (z = /* @__PURE__ */ new Set(), A.set(f, z))), !z.has(M)) { z.add(M); - var j = Y_.bind(null, u, f, M); - ns && l0(u, M), f.then(j, j); + var W = JS.bind(null, u, f, M); + ns && u0(u, M), f.then(W, W); } } - function Sw(u, f, M, A) { + function _b(u, f, M, A) { var z = u.updateQueue; if (z === null) { - var j = /* @__PURE__ */ new Set(); - j.add(M), u.updateQueue = j; + var W = /* @__PURE__ */ new Set(); + W.add(M), u.updateQueue = W; } else z.add(M); } function K0(u, f) { var M = u.tag; - if ((u.mode & $i) === Mr && (M === $ || M === pe || M === we)) { + if ((u.mode & $i) === Mr && (M === te || M === ve || M === Ee)) { var A = u.alternate; A ? (u.updateQueue = A.updateQueue, u.memoizedState = A.memoizedState, u.lanes = A.lanes) : (u.updateQueue = null, u.memoizedState = null); } } - function Ql(u) { + function Jl(u) { var f = u; do { - if (f.tag === ce && Jp(f)) + if (f.tag === he && em(f)) return f; f = f.return; } while (f !== null); return null; } - function Xc(u, f, M, A, z) { + function qc(u, f, M, A, z) { if ((u.mode & $i) === Mr) { if (u === f) - u.flags |= qe; + u.flags |= Ye; else { - if (u.flags |= Vn, M.flags |= on, M.flags &= ~(ct | Oe), Ci && D) { - var j = u.alternate; - if (j === null) { - var te = u.child, se = te.child; - if (se !== null) { - var Se = se.memoizedProps.children, Pe = xo("hidden", Se); - se.pendingProps = Pe, se.memoizedProps = Pe; + if (u.flags |= Bn, M.flags |= $t, M.flags &= ~(ot | Le), Ci && D) { + var W = u.alternate; + if (W === null) { + var ee = u.child, ae = ee.child; + if (ae !== null) { + var _e = ae.memoizedProps.children, Ue = xo("hidden", _e); + ae.pendingProps = Ue, ae.memoizedProps = Ue; } } } - if (M.tag === W) { - var Ge = M.alternate; - if (Ge === null) + if (M.tag === Y) { + var We = M.alternate; + if (We === null) M.tag = Je; else { - var yt = Er(Bi, Hr); - yt.tag = ms, Ar(M, yt); + var St = Er(Vi, Hr); + St.tag = vs, Ar(M, St); } } - M.lanes = zr(M.lanes, Hr); + M.lanes = Ur(M.lanes, Hr); } return u; } - return u.flags |= qe, u.lanes = z, u; + return u.flags |= Ye, u.lanes = z, u; } - function _w(u, f, M, A, z) { - if (M.flags |= Oe, ns && l0(u, z), A !== null && typeof A == "object" && typeof A.then == "function") { - var j = A; + function Sb(u, f, M, A, z) { + if (M.flags |= Le, ns && u0(u, z), A !== null && typeof A == "object" && typeof A.then == "function") { + var W = A; K0(M); - var te = Ql(f); - if (te !== null) { - te.flags &= ~jr, Xc(te, f, M, u, z), te.mode & $i && v1(u, j, z), Sw(te, u, j); + var ee = Jl(f); + if (ee !== null) { + ee.flags &= ~Mi, qc(ee, f, M, u, z), ee.mode & $i && v1(u, W, z), _b(ee, u, W); return; } else { if (!Ia(z)) { - v1(u, j, z), X1(); + v1(u, W, z), X1(); return; } - var se = new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition."); - A = se; + var ae = new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition."); + A = ae; } } else if (ha() && M.mode & $i) { - Hm(); - var Se = Ql(f); - if (Se !== null) { - (Se.flags & qe) === Ne && (Se.flags |= jr), Xc(Se, f, M, u, z), io(A); + Wm(); + var _e = Jl(f); + if (_e !== null) { + (_e.flags & Ye) === Pe && (_e.flags |= Mi), qc(_e, f, M, u, z), ao(A); return; } } - MT(A), A = Ny(A, M); - var Pe = f; + MT(A), A = Fy(A, M); + var Ue = f; do { - switch (Pe.tag) { - case ie: { - var Ge = A; - Pe.flags |= qe; - var yt = cu(z); - Pe.lanes = zr(Pe.lanes, yt); - var It = Fy(Pe, Ge, yt); - $r(Pe, It); + switch (Ue.tag) { + case se: { + var We = A; + Ue.flags |= Ye; + var St = du(z); + Ue.lanes = Ur(Ue.lanes, St); + var It = ky(Ue, We, St); + Zr(Ue, It); return; } - case W: - var jt = A, dn = Pe.type, Sn = Pe.stateNode; - if ((Pe.flags & Vn) === Ne && (typeof dn.getDerivedStateFromError == "function" || Sn !== null && typeof Sn.componentDidCatch == "function" && !j_(Sn))) { - Pe.flags |= qe; - var Tr = cu(z); - Pe.lanes = zr(Pe.lanes, Tr); - var yi = Km(Pe, jt, Tr); - $r(Pe, yi); + case Y: + var Yt = A, pn = Ue.type, Sn = Ue.stateNode; + if ((Ue.flags & Bn) === Pe && (typeof pn.getDerivedStateFromError == "function" || Sn !== null && typeof Sn.componentDidCatch == "function" && !ZS(Sn))) { + Ue.flags |= Ye; + var Tr = du(z); + Ue.lanes = Ur(Ue.lanes, Tr); + var vi = tv(Ue, Yt, Tr); + Zr(Ue, vi); return; } break; } - Pe = Pe.return; - } while (Pe !== null); + Ue = Ue.return; + } while (Ue !== null); } - function bw() { + function wb() { return null; } - function Sp(u) { - u.flags |= fn; + function bp(u) { + u.flags |= cn; } function g1(u) { - u.flags |= ti, u.flags |= Rn; + u.flags |= yi, u.flags |= Rn; } - function n_(u, f) { + function oS(u, f) { var M = u !== null && u.child === f.child; if (M) return !0; - if ((f.flags & Wr) !== Ne) + if ((f.flags & Or) !== Pe) return !1; for (var A = f.child; A !== null; ) { - if ((A.flags & Yi) !== Ne || (A.subtreeFlags & Yi) !== Ne) + if ((A.flags & Yi) !== Pe || (A.subtreeFlags & Yi) !== Pe) return !1; A = A.sibling; } return !0; } - var ky, Iy, By, Pg; + var Iy, By, Hy, zg; if (No) - ky = function(u, f, M, A) { + Iy = function(u, f, M, A) { for (var z = f.child; z !== null; ) { - if (z.tag === le || z.tag === Ee) - Al(u, z.stateNode); - else if (z.tag !== fe) { + if (z.tag === ue || z.tag === Me) + Ll(u, z.stateNode); + else if (z.tag !== ce) { if (z.child !== null) { z.child.return = z, z = z.child; continue; @@ -28764,37 +28764,37 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda } z.sibling.return = z.return, z = z.sibling; } - }, Iy = function(u, f) { - }, By = function(u, f, M, A, z) { - var j = u.memoizedProps; - if (j !== A) { - var te = f.stateNode, se = Zp(), Se = Ls(te, M, j, A, z, se); - f.updateQueue = Se, Se && Sp(f); + }, By = function(u, f) { + }, Hy = function(u, f, M, A, z) { + var W = u.memoizedProps; + if (W !== A) { + var ee = f.stateNode, ae = $p(), _e = Ps(ee, M, W, A, z, ae); + f.updateQueue = _e, _e && bp(f); } - }, Pg = function(u, f, M, A) { - M !== A && Sp(f); + }, zg = function(u, f, M, A) { + M !== A && bp(f); }; else if (Ci) { - ky = function(u, f, M, A) { + Iy = function(u, f, M, A) { for (var z = f.child; z !== null; ) { - if (z.tag === le) { - var j = z.stateNode; + if (z.tag === ue) { + var W = z.stateNode; if (M && A) { - var te = z.memoizedProps, se = z.type; - j = Tu(j, se, te, z); + var ee = z.memoizedProps, ae = z.type; + W = Ru(W, ae, ee, z); } - Al(u, j); - } else if (z.tag === Ee) { - var Se = z.stateNode; + Ll(u, W); + } else if (z.tag === Me) { + var _e = z.stateNode; if (M && A) { - var Pe = z.memoizedProps; - Se = Pl(Se, Pe, z); + var Ue = z.memoizedProps; + _e = Ul(_e, Ue, z); } - Al(u, Se); - } else if (z.tag !== fe) { - if (z.tag === rt && z.memoizedState !== null) { - var Ge = z.child; - Ge !== null && (Ge.return = z), ky(u, z, !0, !0); + Ll(u, _e); + } else if (z.tag !== ce) { + if (z.tag === tt && z.memoizedState !== null) { + var We = z.child; + We !== null && (We.return = z), Iy(u, z, !0, !0); } else if (z.child !== null) { z.child.return = z, z = z.child; continue; @@ -28812,24 +28812,24 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda }; var $0 = function(u, f, M, A) { for (var z = f.child; z !== null; ) { - if (z.tag === le) { - var j = z.stateNode; + if (z.tag === ue) { + var W = z.stateNode; if (M && A) { - var te = z.memoizedProps, se = z.type; - j = Tu(j, se, te, z); + var ee = z.memoizedProps, ae = z.type; + W = Ru(W, ae, ee, z); } - ou(u, j); - } else if (z.tag === Ee) { - var Se = z.stateNode; + uu(u, W); + } else if (z.tag === Me) { + var _e = z.stateNode; if (M && A) { - var Pe = z.memoizedProps; - Se = Pl(Se, Pe, z); + var Ue = z.memoizedProps; + _e = Ul(_e, Ue, z); } - ou(u, Se); - } else if (z.tag !== fe) { - if (z.tag === rt && z.memoizedState !== null) { - var Ge = z.child; - Ge !== null && (Ge.return = z), $0(u, z, !0, !0); + uu(u, _e); + } else if (z.tag !== ce) { + if (z.tag === tt && z.memoizedState !== null) { + var We = z.child; + We !== null && (We.return = z), $0(u, z, !0, !0); } else if (z.child !== null) { z.child.return = z, z = z.child; continue; @@ -28845,38 +28845,38 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda z.sibling.return = z.return, z = z.sibling; } }; - Iy = function(u, f) { - var M = f.stateNode, A = n_(u, f); + By = function(u, f) { + var M = f.stateNode, A = oS(u, f); if (!A) { - var z = M.containerInfo, j = ys(z); - $0(j, f, !1, !1), M.pendingChildren = j, Sp(f), Ua(z, j); + var z = M.containerInfo, W = xs(z); + $0(W, f, !1, !1), M.pendingChildren = W, bp(f), Ua(z, W); } - }, By = function(u, f, M, A, z) { - var j = u.stateNode, te = u.memoizedProps, se = n_(u, f); - if (se && te === A) { - f.stateNode = j; + }, Hy = function(u, f, M, A, z) { + var W = u.stateNode, ee = u.memoizedProps, ae = oS(u, f); + if (ae && ee === A) { + f.stateNode = W; return; } - var Se = f.stateNode, Pe = Zp(), Ge = null; - if (te !== A && (Ge = Ls(Se, M, te, A, z, Pe)), se && Ge === null) { - f.stateNode = j; + var _e = f.stateNode, Ue = $p(), We = null; + if (ee !== A && (We = Ps(_e, M, ee, A, z, Ue)), ae && We === null) { + f.stateNode = W; return; } - var yt = Oa(j, Ge, M, te, A, f, se, Se); - zd(yt, M, A, z, Pe) && Sp(f), f.stateNode = yt, se ? Sp(f) : ky(yt, f, !1, !1); - }, Pg = function(u, f, M, A) { + var St = Oa(W, We, M, ee, A, f, ae, _e); + Nd(St, M, A, z, Ue) && bp(f), f.stateNode = St, ae ? bp(f) : Iy(St, f, !1, !1); + }, zg = function(u, f, M, A) { if (M !== A) { - var z = Dh(), j = Zp(); - f.stateNode = au(A, z, j, f), Sp(f); + var z = Lh(), W = $p(); + f.stateNode = ou(A, z, W, f), bp(f); } else f.stateNode = u.stateNode; }; } else - Iy = function(u, f) { - }, By = function(u, f, M, A, z) { - }, Pg = function(u, f, M, A) { + By = function(u, f) { + }, Hy = function(u, f, M, A, z) { + }, zg = function(u, f, M, A) { }; - function kv(u, f) { + function Hv(u, f) { if (!ha()) switch (u.tailMode) { case "hidden": { @@ -28886,438 +28886,438 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda break; } case "collapsed": { - for (var z = u.tail, j = null; z !== null; ) - z.alternate !== null && (j = z), z = z.sibling; - j === null ? !f && u.tail !== null ? u.tail.sibling = null : u.tail = null : j.sibling = null; + for (var z = u.tail, W = null; z !== null; ) + z.alternate !== null && (W = z), z = z.sibling; + W === null ? !f && u.tail !== null ? u.tail.sibling = null : u.tail = null : W.sibling = null; break; } } } - function wl(u) { - var f = u.alternate !== null && u.alternate.child === u.child, M = an, A = Ne; + function El(u) { + var f = u.alternate !== null && u.alternate.child === u.child, M = sn, A = Pe; if (f) { if ((u.mode & Br) !== Mr) { - for (var Se = u.selfBaseDuration, Pe = u.child; Pe !== null; ) - M = zr(M, zr(Pe.lanes, Pe.childLanes)), A |= Pe.subtreeFlags & $t, A |= Pe.flags & $t, Se += Pe.treeBaseDuration, Pe = Pe.sibling; - u.treeBaseDuration = Se; + for (var _e = u.selfBaseDuration, Ue = u.child; Ue !== null; ) + M = Ur(M, Ur(Ue.lanes, Ue.childLanes)), A |= Ue.subtreeFlags & en, A |= Ue.flags & en, _e += Ue.treeBaseDuration, Ue = Ue.sibling; + u.treeBaseDuration = _e; } else - for (var Ge = u.child; Ge !== null; ) - M = zr(M, zr(Ge.lanes, Ge.childLanes)), A |= Ge.subtreeFlags & $t, A |= Ge.flags & $t, Ge.return = u, Ge = Ge.sibling; + for (var We = u.child; We !== null; ) + M = Ur(M, Ur(We.lanes, We.childLanes)), A |= We.subtreeFlags & en, A |= We.flags & en, We.return = u, We = We.sibling; u.subtreeFlags |= A; } else { if ((u.mode & Br) !== Mr) { - for (var z = u.actualDuration, j = u.selfBaseDuration, te = u.child; te !== null; ) - M = zr(M, zr(te.lanes, te.childLanes)), A |= te.subtreeFlags, A |= te.flags, z += te.actualDuration, j += te.treeBaseDuration, te = te.sibling; - u.actualDuration = z, u.treeBaseDuration = j; + for (var z = u.actualDuration, W = u.selfBaseDuration, ee = u.child; ee !== null; ) + M = Ur(M, Ur(ee.lanes, ee.childLanes)), A |= ee.subtreeFlags, A |= ee.flags, z += ee.actualDuration, W += ee.treeBaseDuration, ee = ee.sibling; + u.actualDuration = z, u.treeBaseDuration = W; } else - for (var se = u.child; se !== null; ) - M = zr(M, zr(se.lanes, se.childLanes)), A |= se.subtreeFlags, A |= se.flags, se.return = u, se = se.sibling; + for (var ae = u.child; ae !== null; ) + M = Ur(M, Ur(ae.lanes, ae.childLanes)), A |= ae.subtreeFlags, A |= ae.flags, ae.return = u, ae = ae.sibling; u.subtreeFlags |= A; } return u.childLanes = M, f; } function y1(u, f, M) { var A = f.pendingProps; - switch (bv(f), f.tag) { - case ne: - case Xe: - case we: - case $: - case pe: - case he: - case Fe: - case de: - case Ce: + switch (Mv(f), f.tag) { + case re: + case Ve: + case Ee: + case te: + case ve: + case me: + case De: + case fe: + case Re: case ye: - return wl(f), null; - case W: { + return El(f), null; + case Y: { var z = f.type; - return pl(z) && xi(f), wl(f), null; - } - case ie: { - var j = f.stateNode; - if (Gc(f), Ec(f), wg(), j.pendingContext && (j.context = j.pendingContext, j.pendingContext = null), u === null || u.child === null) { - var te = cp(f); - if (te) - Sp(f); + return ml(z) && _i(f), El(f), null; + } + case se: { + var W = f.stateNode; + if (Wc(f), Mc(f), Tg(), W.pendingContext && (W.context = W.pendingContext, W.pendingContext = null), u === null || u.child === null) { + var ee = hp(f); + if (ee) + bp(f); else if (u !== null) { - var se = u.memoizedState; - (!se.isDehydrated || (f.flags & jr) !== Ne) && (f.flags |= ki, fp()); + var ae = u.memoizedState; + (!ae.isDehydrated || (f.flags & Mi) !== Pe) && (f.flags |= ii, pp()); } } - return Iy(u, f), wl(f), null; + return By(u, f), El(f), null; } - case le: { - Ty(f); - var Se = Dh(), Pe = f.type; + case ue: { + Cy(f); + var _e = Lh(), Ue = f.type; if (u !== null && f.stateNode != null) - By(u, f, Pe, A, Se), u.ref !== f.ref && g1(f); + Hy(u, f, Ue, A, _e), u.ref !== f.ref && g1(f); else { if (!A) { if (f.stateNode === null) throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); - return wl(f), null; + return El(f), null; } - var Ge = Zp(), yt = cp(f); - if (yt) - gg(f, Se, Ge) && Sp(f); + var We = $p(), St = hp(f); + if (St) + _g(f, _e, We) && bp(f); else { - var It = Wf(Pe, A, Se, Ge, f); - ky(It, f, !1, !1), f.stateNode = It, zd(It, Pe, A, Se, Ge) && Sp(f); + var It = Yf(Ue, A, _e, We, f); + Iy(It, f, !1, !1), f.stateNode = It, Nd(It, Ue, A, _e, We) && bp(f); } f.ref !== null && g1(f); } - return wl(f), null; + return El(f), null; } - case Ee: { - var jt = A; + case Me: { + var Yt = A; if (u && f.stateNode != null) { - var dn = u.memoizedProps; - Pg(u, f, dn, jt); + var pn = u.memoizedProps; + zg(u, f, pn, Yt); } else { - if (typeof jt != "string" && f.stateNode === null) + if (typeof Yt != "string" && f.stateNode === null) throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); - var Sn = Dh(), Tr = Zp(), yi = cp(f); - yi ? qp(f) && Sp(f) : f.stateNode = au(jt, Sn, Tr, f); + var Sn = Lh(), Tr = $p(), vi = hp(f); + vi ? Jp(f) && bp(f) : f.stateNode = ou(Yt, Sn, Tr, f); } - return wl(f), null; + return El(f), null; } - case ce: { - Lh(f); + case he: { + Ph(f); var Pr = f.memoizedState; { - if (jm() && (f.mode & $i) !== Mr && (f.flags & Vn) === Ne) - return Ev(f), Vc(), f.flags |= jr | Oe | qe, f; + if (qm() && (f.mode & $i) !== Mr && (f.flags & Bn) === Pe) + return Cv(f), Gc(), f.flags |= Mi | Le | Ye, f; if (Pr !== null && Pr.dehydrated !== null) { - var oo = cp(f); + var lo = hp(f); if (u === null) { - if (!oo) + if (!lo) throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."); - if (Kd(f), wl(f), (f.mode & Br) !== Mr) { - var lo = Pr !== null; - if (lo) { - var Et = f.child; - Et !== null && (f.treeBaseDuration -= Et.treeBaseDuration); + if ($d(f), El(f), (f.mode & Br) !== Mr) { + var uo = Pr !== null; + if (uo) { + var Ct = f.child; + Ct !== null && (f.treeBaseDuration -= Ct.treeBaseDuration); } } return null; } else { - if (Vc(), (f.flags & Vn) === Ne && (f.memoizedState = null), f.flags |= fn, wl(f), (f.mode & Br) !== Mr) { - var Zt = Pr !== null; - if (Zt) { - var wt = f.child; - wt !== null && (f.treeBaseDuration -= wt.treeBaseDuration); + if (Gc(), (f.flags & Bn) === Pe && (f.memoizedState = null), f.flags |= cn, El(f), (f.mode & Br) !== Mr) { + var Jt = Pr !== null; + if (Jt) { + var Mt = f.child; + Mt !== null && (f.treeBaseDuration -= Mt.treeBaseDuration); } } return null; } } - fp(); + pp(); } - if ((f.flags & Vn) !== Ne) - return f.lanes = M, (f.mode & Br) !== Mr && Lg(f), f; + if ((f.flags & Bn) !== Pe) + return f.lanes = M, (f.mode & Br) !== Mr && Ug(f), f; var En = Pr !== null, yr = !1; if (u === null) - cp(f); + hp(f); else { - var Un = u.memoizedState; - yr = Un !== null; + var Nn = u.memoizedState; + yr = Nn !== null; } if (En && !yr) { - var ai = f.child; - if (ai.flags |= Si, (f.mode & $i) !== Mr) { - var ba = u === null && (f.memoizedProps.unstable_avoidThisFallback !== !0 || !k); - ba || Cy(Wc.current, F0) ? iE() : X1(); + var ni = f.child; + if (ni.flags |= ai, (f.mode & $i) !== Mr) { + var wa = u === null && (f.memoizedProps.unstable_avoidThisFallback !== !0 || !I); + wa || Ry(jc.current, F0) ? iE() : X1(); } } - var gs = f.updateQueue; - if (gs !== null && (f.flags |= fn), wl(f), (f.mode & Br) !== Mr && En) { - var Nn = f.child; - Nn !== null && (f.treeBaseDuration -= Nn.treeBaseDuration); + var ys = f.updateQueue; + if (ys !== null && (f.flags |= cn), El(f), (f.mode & Br) !== Mr && En) { + var kn = f.child; + kn !== null && (f.treeBaseDuration -= kn.treeBaseDuration); } return null; } - case fe: - return Gc(f), Iy(u, f), u === null && xr(f.stateNode.containerInfo), wl(f), null; - case Be: + case ce: + return Wc(f), By(u, f), u === null && xr(f.stateNode.containerInfo), El(f), null; + case He: var as = f.type._context; - return ee(as, f), wl(f), null; + return $(as, f), El(f), null; case Je: { - var wa = f.type; - return pl(wa) && xi(f), wl(f), null; + var ba = f.type; + return ml(ba) && _i(f), El(f), null; } - case Ue: { - Lh(f); + case Ne: { + Ph(f); var Ei = f.memoizedState; if (Ei === null) - return wl(f), null; - var Ao = (f.flags & Vn) !== Ne, uo = Ei.rendering; - if (uo === null) + return El(f), null; + var Ao = (f.flags & Bn) !== Pe, co = Ei.rendering; + if (co === null) if (Ao) - kv(Ei, !1); + Hv(Ei, !1); else { - var nh = aE() && (u === null || (u.flags & Vn) === Ne); - if (!nh) - for (var Su = f.child; Su !== null; ) { - var rh = mp(Su); - if (rh !== null) { - Ao = !0, f.flags |= Vn, kv(Ei, !1); - var Nh = rh.updateQueue; - return Nh !== null && (f.updateQueue = Nh, f.flags |= fn), f.subtreeFlags = Ne, Ey(f, M), ku(f, Av(Wc.current, Xm)), f.child; + var rh = aE() && (u === null || (u.flags & Bn) === Pe); + if (!rh) + for (var wu = f.child; wu !== null; ) { + var ih = yp(wu); + if (ih !== null) { + Ao = !0, f.flags |= Bn, Hv(Ei, !1); + var Fh = ih.updateQueue; + return Fh !== null && (f.updateQueue = Fh, f.flags |= cn), f.subtreeFlags = Pe, My(f, M), Bu(f, Pv(jc.current, Zm)), f.child; } - Su = Su.sibling; + wu = wu.sibling; } - Ei.tail !== null && da() > $w() && (f.flags |= Vn, Ao = !0, kv(Ei, !1), f.lanes = ad); + Ei.tail !== null && da() > $b() && (f.flags |= Bn, Ao = !0, Hv(Ei, !1), f.lanes = od); } else { if (!Ao) { - var cv = mp(uo); - if (cv !== null) { - f.flags |= Vn, Ao = !0; - var Lx = cv.updateQueue; - if (Lx !== null && (f.updateQueue = Lx, f.flags |= fn), kv(Ei, !0), Ei.tail === null && Ei.tailMode === "hidden" && !uo.alternate && !ha()) - return wl(f), null; + var hv = yp(co); + if (hv !== null) { + f.flags |= Bn, Ao = !0; + var Lx = hv.updateQueue; + if (Lx !== null && (f.updateQueue = Lx, f.flags |= cn), Hv(Ei, !0), Ei.tail === null && Ei.tailMode === "hidden" && !co.alternate && !ha()) + return El(f), null; } else - da() * 2 - Ei.renderingStartTime > $w() && M !== Hn && (f.flags |= Vn, Ao = !0, kv(Ei, !1), f.lanes = ad); + da() * 2 - Ei.renderingStartTime > $b() && M !== Gn && (f.flags |= Bn, Ao = !0, Hv(Ei, !1), f.lanes = od); } if (Ei.isBackwards) - uo.sibling = f.child, f.child = uo; + co.sibling = f.child, f.child = co; else { - var h0 = Ei.last; - h0 !== null ? h0.sibling = uo : f.child = uo, Ei.last = uo; + var p0 = Ei.last; + p0 !== null ? p0.sibling = co : f.child = co, Ei.last = co; } } if (Ei.tail !== null) { - var ih = Ei.tail; - Ei.rendering = ih, Ei.tail = ih.sibling, Ei.renderingStartTime = da(), ih.sibling = null; - var Yv = Wc.current; - return Ao ? Yv = Av(Yv, Xm) : Yv = _l(Yv), ku(f, Yv), ih; + var ah = Ei.tail; + Ei.rendering = ah, Ei.tail = ah.sibling, Ei.renderingStartTime = da(), ah.sibling = null; + var Qv = jc.current; + return Ao ? Qv = Pv(Qv, Zm) : Qv = wl(Qv), Bu(f, Qv), ah; } - return wl(f), null; + return El(f), null; } - case ot: + case ct: break; - case rt: - case _t: { + case tt: + case Tt: { Y1(f); - var sb = f.memoizedState, sS = sb !== null; + var fw = f.memoizedState, s_ = fw !== null; if (u !== null) { - var fv = u.memoizedState, DE = fv !== null; - DE !== sS && !B && (f.flags |= Si); + var pv = u.memoizedState, DE = pv !== null; + DE !== s_ && !H && (f.flags |= ai); } - return !sS || (f.mode & $i) === Mr ? wl(f) : Vr(eh, Hn) && (wl(f), No && f.subtreeFlags & (Pt | fn) && (f.flags |= Si)), null; + return !s_ || (f.mode & $i) === Mr ? El(f) : Vr(th, Gn) && (El(f), No && f.subtreeFlags & (At | cn) && (f.flags |= ai)), null; } - case Rt: + case gt: return null; - case Ot: + case ft: return null; } throw new Error("Unknown unit of work tag (" + f.tag + "). This error is likely caused by a bug in React. Please file an issue."); } - var am = o.ReactCurrentOwner, qc = !1, x1, Og, $m, S1, ex, Iv, _1, Hy; - x1 = {}, Og = {}, $m = {}, S1 = {}, ex = {}, Iv = !1, _1 = {}, Hy = {}; - function Zl(u, f, M, A) { - u === null ? f.child = wy(f, null, M, A) : f.child = zf(f, u.child, M, A); + var lm = s.ReactCurrentOwner, Qc = !1, x1, Ng, nv, _1, ex, Vv, S1, Vy; + x1 = {}, Ng = {}, nv = {}, _1 = {}, ex = {}, Vv = !1, S1 = {}, Vy = {}; + function Kl(u, f, M, A) { + u === null ? f.child = Ey(f, null, M, A) : f.child = Ff(f, u.child, M, A); } - function Vy(u, f, M, A) { - f.child = zf(f, u.child, null, A), f.child = zf(f, null, M, A); + function Gy(u, f, M, A) { + f.child = Ff(f, u.child, null, A), f.child = Ff(f, null, M, A); } - function Gy(u, f, M, A, z) { + function Wy(u, f, M, A, z) { if (f.type !== f.elementType) { - var j = M.propTypes; - j && Io( - j, + var W = M.propTypes; + W && Io( + W, A, "prop", - at(M) + st(M) ); } - var te = M.render, se = f.ref, Se, Pe; - cn(f, z), zc(f); + var ee = M.render, ae = f.ref, _e, Ue; + hn(f, z), Nc(f); { - if (am.current = f, to(!0), Se = Le(u, f, te, A, se, z), Pe = Ve(), f.mode & Fa) { - ci(!0); + if (lm.current = f, no(!0), _e = Oe(u, f, ee, A, ae, z), Ue = Ge(), f.mode & Fa) { + li(!0); try { - Se = Le(u, f, te, A, se, z), Pe = Ve(); + _e = Oe(u, f, ee, A, ae, z), Ue = Ge(); } finally { - ci(!1); + li(!1); } } - to(!1); + no(!1); } - return cc(), u !== null && !qc ? (Ct(u, f, z), sm(u, f, z)) : (ha() && Pe && ql(f), f.flags |= Gt, Zl(u, f, Se, z), f.child); + return cc(), u !== null && !Qc ? (Dt(u, f, z), um(u, f, z)) : (ha() && Ue && Zl(f), f.flags |= Gt, Kl(u, f, _e, z), f.child); } - function Ug(u, f, M, A, z) { + function Fg(u, f, M, A, z) { if (u === null) { - var j = M.type; - if (Mx(j) && M.compare === null && M.defaultProps === void 0) { - var te = j; - return te = Jg(j), f.tag = we, f.type = te, C1(f, j), zg(u, f, te, A, z); + var W = M.type; + if (Mx(W) && M.compare === null && M.defaultProps === void 0) { + var ee = W; + return ee = ey(W), f.tag = Ee, f.type = ee, C1(f, W), kg(u, f, ee, A, z); } { - var se = j.propTypes; - se && Io( - se, + var ae = W.propTypes; + ae && Io( + ae, A, "prop", - at(j) + st(W) ); } - var Se = Tx(M.type, null, A, f, f.mode, z); - return Se.ref = f.ref, Se.return = f, f.child = Se, Se; + var _e = Tx(M.type, null, A, f, f.mode, z); + return _e.ref = f.ref, _e.return = f, f.child = _e, _e; } { - var Pe = M.type, Ge = Pe.propTypes; - Ge && Io( - Ge, + var Ue = M.type, We = Ue.propTypes; + We && Io( + We, A, "prop", - at(Pe) + st(Ue) ); } - var yt = u.child, It = qy(u, z); + var St = u.child, It = Qy(u, z); if (!It) { - var jt = yt.memoizedProps, dn = M.compare; - if (dn = dn !== null ? dn : ia, dn(jt, A) && u.ref === f.ref) - return sm(u, f, z); + var Yt = St.memoizedProps, pn = M.compare; + if (pn = pn !== null ? pn : aa, pn(Yt, A) && u.ref === f.ref) + return um(u, f, z); } f.flags |= Gt; - var Sn = oa(yt, A); + var Sn = la(St, A); return Sn.ref = f.ref, Sn.return = f, f.child = Sn, Sn; } - function zg(u, f, M, A, z) { + function kg(u, f, M, A, z) { if (f.type !== f.elementType) { - var j = f.elementType; - if (j.$$typeof === oe) { - var te = j, se = te._payload, Se = te._init; + var W = f.elementType; + if (W.$$typeof === oe) { + var ee = W, ae = ee._payload, _e = ee._init; try { - j = Se(se); + W = _e(ae); } catch { - j = null; + W = null; } - var Pe = j && j.propTypes; - Pe && Io( - Pe, + var Ue = W && W.propTypes; + Ue && Io( + Ue, A, "prop", - at(j) + st(W) ); } } if (u !== null) { - var Ge = u.memoizedProps; - if (ia(Ge, A) && u.ref === f.ref && f.type === u.type) - if (qc = !1, qy(u, z)) - (u.flags & on) !== Ne && (qc = !0); + var We = u.memoizedProps; + if (aa(We, A) && u.ref === f.ref && f.type === u.type) + if (Qc = !1, Qy(u, z)) + (u.flags & $t) !== Pe && (Qc = !0); else - return f.lanes = u.lanes, sm(u, f, z); + return f.lanes = u.lanes, um(u, f, z); } - return a_(u, f, M, A, z); + return cS(u, f, M, A, z); } - function r_(u, f, M) { - var A = f.pendingProps, z = A.children, j = u !== null ? u.memoizedState : null; - if (A.mode === "hidden" || B) + function lS(u, f, M) { + var A = f.pendingProps, z = A.children, W = u !== null ? u.memoizedState : null; + if (A.mode === "hidden" || H) if ((f.mode & $i) === Mr) { - var te = { - baseLanes: an, + var ee = { + baseLanes: sn, cachePool: null }; - f.memoizedState = te, vx(f, M); - } else if (Vr(M, Hn)) { - var yt = { - baseLanes: an, + f.memoizedState = ee, vx(f, M); + } else if (Vr(M, Gn)) { + var St = { + baseLanes: sn, cachePool: null }; - f.memoizedState = yt; - var It = j !== null ? j.baseLanes : M; + f.memoizedState = St; + var It = W !== null ? W.baseLanes : M; vx(f, It); } else { - var se = null, Se; - if (j !== null) { - var Pe = j.baseLanes; - Se = zr(Pe, M); + var ae = null, _e; + if (W !== null) { + var Ue = W.baseLanes; + _e = Ur(Ue, M); } else - Se = M; - f.lanes = f.childLanes = Hn; - var Ge = { - baseLanes: Se, - cachePool: se + _e = M; + f.lanes = f.childLanes = Gn; + var We = { + baseLanes: _e, + cachePool: ae }; - return f.memoizedState = Ge, f.updateQueue = null, vx(f, Se), null; + return f.memoizedState = We, f.updateQueue = null, vx(f, _e), null; } else { - var jt; - j !== null ? (jt = zr(j.baseLanes, M), f.memoizedState = null) : jt = M, vx(f, jt); + var Yt; + W !== null ? (Yt = Ur(W.baseLanes, M), f.memoizedState = null) : Yt = M, vx(f, Yt); } - return Zl(u, f, z, M), f.child; + return Kl(u, f, z, M), f.child; } - function b1(u, f, M) { + function w1(u, f, M) { var A = f.pendingProps; - return Zl(u, f, A, M), f.child; + return Kl(u, f, A, M), f.child; } - function w1(u, f, M) { + function b1(u, f, M) { var A = f.pendingProps.children; - return Zl(u, f, A, M), f.child; + return Kl(u, f, A, M), f.child; } - function ww(u, f, M) { + function bb(u, f, M) { { - f.flags |= fn; + f.flags |= cn; { var A = f.stateNode; A.effectDuration = 0, A.passiveEffectDuration = 0; } } - var z = f.pendingProps, j = z.children; - return Zl(u, f, j, M), f.child; + var z = f.pendingProps, W = z.children; + return Kl(u, f, W, M), f.child; } - function i_(u, f) { + function uS(u, f) { var M = f.ref; - (u === null && M !== null || u !== null && u.ref !== M) && (f.flags |= ti, f.flags |= Rn); + (u === null && M !== null || u !== null && u.ref !== M) && (f.flags |= yi, f.flags |= Rn); } - function a_(u, f, M, A, z) { + function cS(u, f, M, A, z) { if (f.type !== f.elementType) { - var j = M.propTypes; - j && Io( - j, + var W = M.propTypes; + W && Io( + W, A, "prop", - at(M) + st(M) ); } - var te; + var ee; { - var se = fs(f, M, !0); - te = Ul(f, se); + var ae = ds(f, M, !0); + ee = Nl(f, ae); } - var Se, Pe; - cn(f, z), zc(f); + var _e, Ue; + hn(f, z), Nc(f); { - if (am.current = f, to(!0), Se = Le(u, f, M, A, te, z), Pe = Ve(), f.mode & Fa) { - ci(!0); + if (lm.current = f, no(!0), _e = Oe(u, f, M, A, ee, z), Ue = Ge(), f.mode & Fa) { + li(!0); try { - Se = Le(u, f, M, A, te, z), Pe = Ve(); + _e = Oe(u, f, M, A, ee, z), Ue = Ge(); } finally { - ci(!1); + li(!1); } } - to(!1); + no(!1); } - return cc(), u !== null && !qc ? (Ct(u, f, z), sm(u, f, z)) : (ha() && Pe && ql(f), f.flags |= Gt, Zl(u, f, Se, z), f.child); + return cc(), u !== null && !Qc ? (Dt(u, f, z), um(u, f, z)) : (ha() && Ue && Zl(f), f.flags |= Gt, Kl(u, f, _e, z), f.child); } - function s_(u, f, M, A, z) { + function fS(u, f, M, A, z) { { switch (ME(f)) { case !1: { - var j = f.stateNode, te = f.type, se = new te(f.memoizedProps, j.context), Se = se.state; - j.updater.enqueueSetState(j, Se, null); + var W = f.stateNode, ee = f.type, ae = new ee(f.memoizedProps, W.context), _e = ae.state; + W.updater.enqueueSetState(W, _e, null); break; } case !0: { - f.flags |= Vn, f.flags |= qe; - var Pe = new Error("Simulated error coming from DevTools"), Ge = cu(z); - f.lanes = zr(f.lanes, Ge); - var yt = Km(f, Ny(Pe, f), Ge); - $r(f, yt); + f.flags |= Bn, f.flags |= Ye; + var Ue = new Error("Simulated error coming from DevTools"), We = du(z); + f.lanes = Ur(f.lanes, We); + var St = tv(f, Fy(Ue, f), We); + Zr(f, St); break; } } @@ -29327,340 +29327,340 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda It, A, "prop", - at(M) + st(M) ); } } - var jt; - pl(M) ? (jt = !0, Ca(f)) : jt = !1, cn(f, z); - var dn = f.stateNode, Sn; - dn === null ? (u !== null && (u.alternate = null, f.alternate = null, f.flags |= Pt), Im(f, M, A), ip(f, M, A, z), Sn = !0) : u === null ? Sn = Bm(f, M, A, z) : Sn = Sy(u, f, M, A, z); - var Tr = E1(u, f, M, Sn, jt, z); + var Yt; + ml(M) ? (Yt = !0, Ca(f)) : Yt = !1, hn(f, z); + var pn = f.stateNode, Sn; + pn === null ? (u !== null && (u.alternate = null, f.alternate = null, f.flags |= At), Vm(f, M, A), op(f, M, A, z), Sn = !0) : u === null ? Sn = Gm(f, M, A, z) : Sn = Sy(u, f, M, A, z); + var Tr = E1(u, f, M, Sn, Yt, z); { - var yi = f.stateNode; - Sn && yi.props !== A && (Iv || m("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.", Tt(f) || "a component"), Iv = !0); + var vi = f.stateNode; + Sn && vi.props !== A && (Vv || g("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.", wt(f) || "a component"), Vv = !0); } return Tr; } - function E1(u, f, M, A, z, j) { - i_(u, f); - var te = (f.flags & Vn) !== Ne; - if (!A && !te) - return z && Sh(f, M, !1), sm(u, f, j); - var se = f.stateNode; - am.current = f; - var Se; - if (te && typeof M.getDerivedStateFromError != "function") - Se = null, Jm(); + function E1(u, f, M, A, z, W) { + uS(u, f); + var ee = (f.flags & Bn) !== Pe; + if (!A && !ee) + return z && Sh(f, M, !1), um(u, f, W); + var ae = f.stateNode; + lm.current = f; + var _e; + if (ee && typeof M.getDerivedStateFromError != "function") + _e = null, ev(); else { - zc(f); + Nc(f); { - if (to(!0), Se = se.render(), f.mode & Fa) { - ci(!0); + if (no(!0), _e = ae.render(), f.mode & Fa) { + li(!0); try { - se.render(); + ae.render(); } finally { - ci(!1); + li(!1); } } - to(!1); + no(!1); } cc(); } - return f.flags |= Gt, u !== null && te ? Vy(u, f, Se, j) : Zl(u, f, Se, j), f.memoizedState = se.state, z && Sh(f, M, !0), f.child; + return f.flags |= Gt, u !== null && ee ? Gy(u, f, _e, W) : Kl(u, f, _e, W), f.memoizedState = ae.state, z && Sh(f, M, !0), f.child; } - function o_(u) { + function dS(u) { var f = u.stateNode; - f.pendingContext ? Au(u, f.pendingContext, f.pendingContext !== f.context) : f.context && Au(u, f.context, !1), My(u, f.containerInfo); + f.pendingContext ? Lu(u, f.pendingContext, f.pendingContext !== f.context) : f.context && Lu(u, f.context, !1), Ty(u, f.containerInfo); } - function Ew(u, f, M) { - if (o_(f), u === null) + function Eb(u, f, M) { + if (dS(f), u === null) throw new Error("Should have a current fiber. This is a bug in React."); - var A = f.pendingProps, z = f.memoizedState, j = z.element; - Xr(u, f), hd(f, A, null, M); - var te = f.memoizedState; + var A = f.pendingProps, z = f.memoizedState, W = z.element; + Wr(u, f), md(f, A, null, M); + var ee = f.memoizedState; f.stateNode; - var se = te.element; - if (cs && z.isDehydrated) { - var Se = { - element: se, + var ae = ee.element; + if (fs && z.isDehydrated) { + var _e = { + element: ae, isDehydrated: !1, - cache: te.cache, - transitions: te.transitions - }, Pe = f.updateQueue; - if (Pe.baseState = Se, f.memoizedState = Se, f.flags & jr) { - var Ge = new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."); - return l_(u, f, se, M, Ge); - } else if (se !== j) { - var yt = new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."); - return l_(u, f, se, M, yt); + cache: ee.cache, + transitions: ee.transitions + }, Ue = f.updateQueue; + if (Ue.baseState = _e, f.memoizedState = _e, f.flags & Mi) { + var We = new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."); + return hS(u, f, ae, M, We); + } else if (ae !== W) { + var St = new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."); + return hS(u, f, ae, M, St); } else { - sl(f); - var It = wy(f, null, se, M); + ol(f); + var It = Ey(f, null, ae, M); f.child = It; - for (var jt = It; jt; ) - jt.flags = jt.flags & ~Pt | ni, jt = jt.sibling; + for (var Yt = It; Yt; ) + Yt.flags = Yt.flags & ~At | xi, Yt = Yt.sibling; } } else { - if (Vc(), se === j) - return sm(u, f, M); - Zl(u, f, se, M); + if (Gc(), ae === W) + return um(u, f, M); + Kl(u, f, ae, M); } return f.child; } - function l_(u, f, M, A, z) { - return Vc(), io(z), f.flags |= jr, Zl(u, f, M, A), f.child; + function hS(u, f, M, A, z) { + return Gc(), ao(z), f.flags |= Mi, Kl(u, f, M, A), f.child; } - function Mw(u, f, M) { - Is(f), u === null && gd(f); - var A = f.type, z = f.pendingProps, j = u !== null ? u.memoizedProps : null, te = z.children, se = Ju(A, z); - return se ? te = null : j !== null && Ju(A, j) && (f.flags |= Ur), i_(u, f), Zl(u, f, te, M), f.child; + function Mb(u, f, M) { + Bs(f), u === null && xd(f); + var A = f.type, z = f.pendingProps, W = u !== null ? u.memoizedProps : null, ee = z.children, ae = Ju(A, z); + return ae ? ee = null : W !== null && Ju(A, W) && (f.flags |= Ii), uS(u, f), Kl(u, f, ee, M), f.child; } function M1(u, f) { - return u === null && gd(f), null; - } - function Tw(u, f, M, A) { - u !== null && (u.alternate = null, f.alternate = null, f.flags |= Pt); - var z = f.pendingProps, j = M, te = j._payload, se = j._init, Se = se(te); - f.type = Se; - var Pe = f.tag = c0(Se), Ge = ii(Se, z), yt; - switch (Pe) { - case $: - return C1(f, Se), f.type = Se = Jg(Se), yt = a_(null, f, Se, Ge, A), yt; - case W: - return f.type = Se = mE(Se), yt = s_(null, f, Se, Ge, A), yt; - case pe: - return f.type = Se = sv(Se), yt = Gy(null, f, Se, Ge, A), yt; + return u === null && xd(f), null; + } + function Tb(u, f, M, A) { + u !== null && (u.alternate = null, f.alternate = null, f.flags |= At); + var z = f.pendingProps, W = M, ee = W._payload, ae = W._init, _e = ae(ee); + f.type = _e; + var Ue = f.tag = f0(_e), We = ti(_e, z), St; + switch (Ue) { + case te: + return C1(f, _e), f.type = _e = ey(_e), St = cS(null, f, _e, We, A), St; + case Y: + return f.type = _e = mE(_e), St = fS(null, f, _e, We, A), St; + case ve: + return f.type = _e = uv(_e), St = Wy(null, f, _e, We, A), St; case ye: { if (f.type !== f.elementType) { - var It = Se.propTypes; + var It = _e.propTypes; It && Io( It, - Ge, + We, "prop", - at(Se) + st(_e) ); } - return yt = Ug( + return St = Fg( null, f, - Se, - ii(Se.type, Ge), + _e, + ti(_e.type, We), A - ), yt; + ), St; } } - var jt = ""; - throw Se !== null && typeof Se == "object" && Se.$$typeof === oe && (jt = " Did you wrap a component in React.lazy() more than once?"), new Error("Element type is invalid. Received a promise that resolves to: " + Se + ". " + ("Lazy element type must resolve to a class or function." + jt)); + var Yt = ""; + throw _e !== null && typeof _e == "object" && _e.$$typeof === oe && (Yt = " Did you wrap a component in React.lazy() more than once?"), new Error("Element type is invalid. Received a promise that resolves to: " + _e + ". " + ("Lazy element type must resolve to a class or function." + Yt)); } - function Cw(u, f, M, A, z) { - u !== null && (u.alternate = null, f.alternate = null, f.flags |= Pt), f.tag = W; - var j; - return pl(M) ? (j = !0, Ca(f)) : j = !1, cn(f, z), Im(f, M, A), ip(f, M, A, z), E1(null, f, M, !0, j, z); + function Cb(u, f, M, A, z) { + u !== null && (u.alternate = null, f.alternate = null, f.flags |= At), f.tag = Y; + var W; + return ml(M) ? (W = !0, Ca(f)) : W = !1, hn(f, z), Vm(f, M, A), op(f, M, A, z), E1(null, f, M, !0, W, z); } function T1(u, f, M, A) { - u !== null && (u.alternate = null, f.alternate = null, f.flags |= Pt); - var z = f.pendingProps, j; + u !== null && (u.alternate = null, f.alternate = null, f.flags |= At); + var z = f.pendingProps, W; { - var te = fs(f, M, !1); - j = Ul(f, te); + var ee = ds(f, M, !1); + W = Nl(f, ee); } - cn(f, A); - var se, Se; - zc(f); + hn(f, A); + var ae, _e; + Nc(f); { if (M.prototype && typeof M.prototype.render == "function") { - var Pe = at(M) || "Unknown"; - x1[Pe] || (m("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.", Pe, Pe), x1[Pe] = !0); + var Ue = st(M) || "Unknown"; + x1[Ue] || (g("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.", Ue, Ue), x1[Ue] = !0); } - f.mode & Fa && Xl.recordLegacyContextWarning(f, null), to(!0), am.current = f, se = Le(null, f, M, z, j, A), Se = Ve(), to(!1); + f.mode & Fa && Ql.recordLegacyContextWarning(f, null), no(!0), lm.current = f, ae = Oe(null, f, M, z, W, A), _e = Ge(), no(!1); } - if (cc(), f.flags |= Gt, typeof se == "object" && se !== null && typeof se.render == "function" && se.$$typeof === void 0) { - var Ge = at(M) || "Unknown"; - Og[Ge] || (m("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", Ge, Ge, Ge), Og[Ge] = !0); + if (cc(), f.flags |= Gt, typeof ae == "object" && ae !== null && typeof ae.render == "function" && ae.$$typeof === void 0) { + var We = st(M) || "Unknown"; + Ng[We] || (g("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", We, We, We), Ng[We] = !0); } - if (typeof se == "object" && se !== null && typeof se.render == "function" && se.$$typeof === void 0) { + if (typeof ae == "object" && ae !== null && typeof ae.render == "function" && ae.$$typeof === void 0) { { - var yt = at(M) || "Unknown"; - Og[yt] || (m("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", yt, yt, yt), Og[yt] = !0); + var St = st(M) || "Unknown"; + Ng[St] || (g("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", St, St, St), Ng[St] = !0); } - f.tag = W, f.memoizedState = null, f.updateQueue = null; + f.tag = Y, f.memoizedState = null, f.updateQueue = null; var It = !1; - return pl(M) ? (It = !0, Ca(f)) : It = !1, f.memoizedState = se.state !== null && se.state !== void 0 ? se.state : null, Wn(f), Th(f, se), ip(f, M, z, A), E1(null, f, M, !0, It, A); + return ml(M) ? (It = !0, Ca(f)) : It = !1, f.memoizedState = ae.state !== null && ae.state !== void 0 ? ae.state : null, jn(f), Ch(f, ae), op(f, M, z, A), E1(null, f, M, !0, It, A); } else { - if (f.tag = $, f.mode & Fa) { - ci(!0); + if (f.tag = te, f.mode & Fa) { + li(!0); try { - se = Le(null, f, M, z, j, A), Se = Ve(); + ae = Oe(null, f, M, z, W, A), _e = Ge(); } finally { - ci(!1); + li(!1); } } - return ha() && Se && ql(f), Zl(null, f, se, A), C1(f, M), f.child; + return ha() && _e && Zl(f), Kl(null, f, ae, A), C1(f, M), f.child; } } function C1(u, f) { { - if (f && f.childContextTypes && m("%s(...): childContextTypes cannot be defined on a function component.", f.displayName || f.name || "Component"), u.ref !== null) { - var M = "", A = tp(); + if (f && f.childContextTypes && g("%s(...): childContextTypes cannot be defined on a function component.", f.displayName || f.name || "Component"), u.ref !== null) { + var M = "", A = ip(); A && (M += ` Check the render method of \`` + A + "`."); - var z = A || "", j = u._debugSource; - j && (z = j.fileName + ":" + j.lineNumber), ex[z] || (ex[z] = !0, m("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s", M)); + var z = A || "", W = u._debugSource; + W && (z = W.fileName + ":" + W.lineNumber), ex[z] || (ex[z] = !0, g("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s", M)); } if (typeof f.getDerivedStateFromProps == "function") { - var te = at(f) || "Unknown"; - S1[te] || (m("%s: Function components do not support getDerivedStateFromProps.", te), S1[te] = !0); + var ee = st(f) || "Unknown"; + _1[ee] || (g("%s: Function components do not support getDerivedStateFromProps.", ee), _1[ee] = !0); } if (typeof f.contextType == "object" && f.contextType !== null) { - var se = at(f) || "Unknown"; - $m[se] || (m("%s: Function components do not support contextType.", se), $m[se] = !0); + var ae = st(f) || "Unknown"; + nv[ae] || (g("%s: Function components do not support contextType.", ae), nv[ae] = !0); } } } - var Ng = { + var Ig = { dehydrated: null, treeContext: null, - retryLane: Ir + retryLane: kr }; - function Wy(u) { + function jy(u) { return { baseLanes: u, - cachePool: bw() + cachePool: wb() }; } - function u_(u, f) { + function pS(u, f) { var M = null; return { - baseLanes: zr(u.baseLanes, f), + baseLanes: Ur(u.baseLanes, f), cachePool: M }; } - function Rw(u, f, M, A) { + function Rb(u, f, M, A) { if (f !== null) { var z = f.memoizedState; if (z === null) return !1; } - return Cy(u, Xm); + return Ry(u, Zm); } - function c_(u, f) { - return Ks(u.childLanes, f); + function mS(u, f) { + return $s(u.childLanes, f); } function tx(u, f, M) { var A = f.pendingProps; - CE(f) && (f.flags |= Vn); - var z = Wc.current, j = !1, te = (f.flags & Vn) !== Ne; - if (te || Rw(z, u) ? (j = !0, f.flags &= ~Vn) : (u === null || u.memoizedState !== null) && (z = bg(z, F0)), z = _l(z), ku(f, z), u === null) { - gd(f); + CE(f) && (f.flags |= Bn); + var z = jc.current, W = !1, ee = (f.flags & Bn) !== Pe; + if (ee || Rb(z, u) ? (W = !0, f.flags &= ~Bn) : (u === null || u.memoizedState !== null) && (z = Mg(z, F0)), z = wl(z), Bu(f, z), u === null) { + xd(f); { - var se = f.memoizedState; - if (se !== null) { - var Se = se.dehydrated; - if (Se !== null) - return A1(f, Se); + var ae = f.memoizedState; + if (ae !== null) { + var _e = ae.dehydrated; + if (_e !== null) + return A1(f, _e); } } - var Pe = A.children, Ge = A.fallback; - if (j) { - var yt = f_(f, Pe, Ge, M), It = f.child; - return It.memoizedState = Wy(M), f.memoizedState = Ng, yt; + var Ue = A.children, We = A.fallback; + if (W) { + var St = vS(f, Ue, We, M), It = f.child; + return It.memoizedState = jy(M), f.memoizedState = Ig, St; } else - return jy(f, Pe); + return Yy(f, Ue); } else { - var jt = u.memoizedState; - if (jt !== null) { + var Yt = u.memoizedState; + if (Yt !== null) { { - var dn = jt.dehydrated; - if (dn !== null) - if (te) { - if (f.flags & jr) - return f.flags &= ~jr, rx(u, f, M, new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")); + var pn = Yt.dehydrated; + if (pn !== null) + if (ee) { + if (f.flags & Mi) + return f.flags &= ~Mi, rx(u, f, M, new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")); if (f.memoizedState !== null) - return f.child = u.child, f.flags |= Vn, null; - var Sn = A.children, Tr = A.fallback, yi = Aw(u, f, Sn, Tr, M), Pr = f.child; - return Pr.memoizedState = Wy(M), f.memoizedState = Ng, yi; + return f.child = u.child, f.flags |= Bn, null; + var Sn = A.children, Tr = A.fallback, vi = Ab(u, f, Sn, Tr, M), Pr = f.child; + return Pr.memoizedState = jy(M), f.memoizedState = Ig, vi; } else - return Bf(u, f, dn, jt, M); + return Vf(u, f, pn, Yt, M); } - if (j) { - var oo = A.fallback, lo = A.children, Et = nx(u, f, lo, oo, M), Zt = f.child, wt = u.child.memoizedState; - return Zt.memoizedState = wt === null ? Wy(M) : u_(wt, M), Zt.childLanes = c_(u, M), f.memoizedState = Ng, Et; + if (W) { + var lo = A.fallback, uo = A.children, Ct = nx(u, f, uo, lo, M), Jt = f.child, Mt = u.child.memoizedState; + return Jt.memoizedState = Mt === null ? jy(M) : pS(Mt, M), Jt.childLanes = mS(u, M), f.memoizedState = Ig, Ct; } else { - var En = A.children, yr = h_(u, f, En, M); + var En = A.children, yr = yS(u, f, En, M); return f.memoizedState = null, yr; } - } else if (j) { - var Un = A.fallback, ai = A.children, ba = nx(u, f, ai, Un, M), gs = f.child, Nn = u.child.memoizedState; - return gs.memoizedState = Nn === null ? Wy(M) : u_(Nn, M), gs.childLanes = c_(u, M), f.memoizedState = Ng, ba; + } else if (W) { + var Nn = A.fallback, ni = A.children, wa = nx(u, f, ni, Nn, M), ys = f.child, kn = u.child.memoizedState; + return ys.memoizedState = kn === null ? jy(M) : pS(kn, M), ys.childLanes = mS(u, M), f.memoizedState = Ig, wa; } else { - var as = A.children, wa = h_(u, f, as, M); - return f.memoizedState = null, wa; + var as = A.children, ba = yS(u, f, as, M); + return f.memoizedState = null, ba; } } } - function jy(u, f, M) { + function Yy(u, f, M) { var A = u.mode, z = { mode: "visible", children: f - }, j = R1(z, A); - return j.return = u, u.child = j, j; + }, W = R1(z, A); + return W.return = u, u.child = W, W; } - function f_(u, f, M, A) { - var z = u.mode, j = u.child, te = { + function vS(u, f, M, A) { + var z = u.mode, W = u.child, ee = { mode: "hidden", children: f - }, se, Se; - return (z & $i) === Mr && j !== null ? (se = j, se.childLanes = an, se.pendingProps = te, u.mode & Br && (se.actualDuration = 0, se.actualStartTime = -1, se.selfBaseDuration = 0, se.treeBaseDuration = 0), Se = Mp(M, z, A, null)) : (se = R1(te, z), Se = Mp(M, z, A, null)), se.return = u, Se.return = u, se.sibling = Se, u.child = se, Se; + }, ae, _e; + return (z & $i) === Mr && W !== null ? (ae = W, ae.childLanes = sn, ae.pendingProps = ee, u.mode & Br && (ae.actualDuration = 0, ae.actualStartTime = -1, ae.selfBaseDuration = 0, ae.treeBaseDuration = 0), _e = Rp(M, z, A, null)) : (ae = R1(ee, z), _e = Rp(M, z, A, null)), ae.return = u, _e.return = u, ae.sibling = _e, u.child = ae, _e; } function R1(u, f, M) { - return zh(u, f, an, null); + return Nh(u, f, sn, null); } - function d_(u, f) { - return oa(u, f); + function gS(u, f) { + return la(u, f); } - function h_(u, f, M, A) { - var z = u.child, j = z.sibling, te = d_(z, { + function yS(u, f, M, A) { + var z = u.child, W = z.sibling, ee = gS(z, { mode: "visible", children: M }); - if ((f.mode & $i) === Mr && (te.lanes = A), te.return = f, te.sibling = null, j !== null) { - var se = f.deletions; - se === null ? (f.deletions = [j], f.flags |= Wr) : se.push(j); + if ((f.mode & $i) === Mr && (ee.lanes = A), ee.return = f, ee.sibling = null, W !== null) { + var ae = f.deletions; + ae === null ? (f.deletions = [W], f.flags |= Or) : ae.push(W); } - return f.child = te, te; + return f.child = ee, ee; } function nx(u, f, M, A, z) { - var j = f.mode, te = u.child, se = te.sibling, Se = { + var W = f.mode, ee = u.child, ae = ee.sibling, _e = { mode: "hidden", children: M - }, Pe; - if ((j & $i) === Mr && f.child !== te) { - var Ge = f.child; - Pe = Ge, Pe.childLanes = an, Pe.pendingProps = Se, f.mode & Br && (Pe.actualDuration = 0, Pe.actualStartTime = -1, Pe.selfBaseDuration = te.selfBaseDuration, Pe.treeBaseDuration = te.treeBaseDuration), f.deletions = null; + }, Ue; + if ((W & $i) === Mr && f.child !== ee) { + var We = f.child; + Ue = We, Ue.childLanes = sn, Ue.pendingProps = _e, f.mode & Br && (Ue.actualDuration = 0, Ue.actualStartTime = -1, Ue.selfBaseDuration = ee.selfBaseDuration, Ue.treeBaseDuration = ee.treeBaseDuration), f.deletions = null; } else - Pe = d_(te, Se), Pe.subtreeFlags = te.subtreeFlags & $t; - var yt; - return se !== null ? yt = oa(se, A) : (yt = Mp(A, j, z, null), yt.flags |= Pt), yt.return = f, Pe.return = f, Pe.sibling = yt, f.child = Pe, yt; + Ue = gS(ee, _e), Ue.subtreeFlags = ee.subtreeFlags & en; + var St; + return ae !== null ? St = la(ae, A) : (St = Rp(A, W, z, null), St.flags |= At), St.return = f, Ue.return = f, Ue.sibling = St, f.child = Ue, St; } function rx(u, f, M, A) { - A !== null && io(A), zf(f, u.child, null, M); - var z = f.pendingProps, j = z.children, te = jy(f, j); - return te.flags |= Pt, f.memoizedState = null, te; + A !== null && ao(A), Ff(f, u.child, null, M); + var z = f.pendingProps, W = z.children, ee = Yy(f, W); + return ee.flags |= At, f.memoizedState = null, ee; } - function Aw(u, f, M, A, z) { - var j = f.mode, te = { + function Ab(u, f, M, A, z) { + var W = f.mode, ee = { mode: "visible", children: M - }, se = R1(te, j), Se = Mp(A, j, z, null); - return Se.flags |= Pt, se.return = f, Se.return = f, se.sibling = Se, f.child = se, (f.mode & $i) !== Mr && zf(f, u.child, null, z), Se; + }, ae = R1(ee, W), _e = Rp(A, W, z, null); + return _e.flags |= At, ae.return = f, _e.return = f, ae.sibling = _e, f.child = ae, (f.mode & $i) !== Mr && Ff(f, u.child, null, z), _e; } function A1(u, f, M) { - return (u.mode & $i) === Mr ? (m("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, ).render(element) or remove the Suspense components from the server rendered components."), u.lanes = Hr) : va(f) ? u.lanes = ac : u.lanes = Hn, null; + return (u.mode & $i) === Mr ? (g("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, ).render(element) or remove the Suspense components from the server rendered components."), u.lanes = Hr) : va(f) ? u.lanes = ac : u.lanes = Gn, null; } - function Bf(u, f, M, A, z) { - if (Hc(), (f.mode & $i) === Mr) + function Vf(u, f, M, A, z) { + if (Vc(), (f.mode & $i) === Mr) return rx( u, f, @@ -29674,39 +29674,39 @@ Check the render method of \`` + A + "`."); z, new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.") ); - var j = Vr(z, u.childLanes); - if (qc || j) { - var te = z_(); - if (te !== null) { - var se = gl(te, z); - if (se !== Ir && se !== A.retryLane) { - A.retryLane = se; - var Se = Bi; - Ml(u, se, Se); + var W = Vr(z, u.childLanes); + if (Qc || W) { + var ee = BS(); + if (ee !== null) { + var ae = yl(ee, z); + if (ae !== kr && ae !== A.retryLane) { + A.retryLane = ae; + var _e = Vi; + Tl(u, ae, _e); } } return X1(), rx(u, f, z, new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")); - } else if (xs(M)) { - f.flags |= Vn, f.child = u.child; - var Pe = AT.bind(null, u); - return Qs(M, Pe), null; + } else if (_s(M)) { + f.flags |= Bn, f.child = u.child; + var Ue = AT.bind(null, u); + return Zs(M, Ue), null; } else { - Vm(f, M, A.treeContext); - var Ge = f.pendingProps, yt = Ge.children, It = jy(f, yt); - return It.flags |= ni, It; + jm(f, M, A.treeContext); + var We = f.pendingProps, St = We.children, It = Yy(f, St); + return It.flags |= xi, It; } } function ix(u, f, M) { - u.lanes = zr(u.lanes, f); + u.lanes = Ur(u.lanes, f); var A = u.alternate; - A !== null && (A.lanes = zr(A.lanes, f)), Ae(u.return, f, M); + A !== null && (A.lanes = Ur(A.lanes, f)), Ae(u.return, f, M); } - function Dw(u, f, M) { + function Db(u, f, M) { for (var A = f; A !== null; ) { - if (A.tag === ce) { + if (A.tag === he) { var z = A.memoizedState; z !== null && ix(A, M, u); - } else if (A.tag === Ue) + } else if (A.tag === Ne) ix(A, M, u); else if (A.child !== null) { A.child.return = A, A = A.child; @@ -29722,126 +29722,126 @@ Check the render method of \`` + A + "`."); A.sibling.return = A.return, A = A.sibling; } } - function Lw(u) { + function Lb(u) { for (var f = u, M = null; f !== null; ) { var A = f.alternate; - A !== null && mp(A) === null && (M = f), f = f.sibling; + A !== null && yp(A) === null && (M = f), f = f.sibling; } return M; } - function Pw(u) { - if (u !== void 0 && u !== "forwards" && u !== "backwards" && u !== "together" && !_1[u]) - if (_1[u] = !0, typeof u == "string") + function Pb(u) { + if (u !== void 0 && u !== "forwards" && u !== "backwards" && u !== "together" && !S1[u]) + if (S1[u] = !0, typeof u == "string") switch (u.toLowerCase()) { case "together": case "forwards": case "backwards": { - m('"%s" is not a valid value for revealOrder on . Use lowercase "%s" instead.', u, u.toLowerCase()); + g('"%s" is not a valid value for revealOrder on . Use lowercase "%s" instead.', u, u.toLowerCase()); break; } case "forward": case "backward": { - m('"%s" is not a valid value for revealOrder on . React uses the -s suffix in the spelling. Use "%ss" instead.', u, u.toLowerCase()); + g('"%s" is not a valid value for revealOrder on . React uses the -s suffix in the spelling. Use "%ss" instead.', u, u.toLowerCase()); break; } default: - m('"%s" is not a supported revealOrder on . Did you mean "together", "forwards" or "backwards"?', u); + g('"%s" is not a supported revealOrder on . Did you mean "together", "forwards" or "backwards"?', u); break; } else - m('%s is not a supported value for revealOrder on . Did you mean "together", "forwards" or "backwards"?', u); + g('%s is not a supported value for revealOrder on . Did you mean "together", "forwards" or "backwards"?', u); } - function Ow(u, f) { - u !== void 0 && !Hy[u] && (u !== "collapsed" && u !== "hidden" ? (Hy[u] = !0, m('"%s" is not a supported value for tail on . Did you mean "collapsed" or "hidden"?', u)) : f !== "forwards" && f !== "backwards" && (Hy[u] = !0, m(' is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?', u))); + function Ob(u, f) { + u !== void 0 && !Vy[u] && (u !== "collapsed" && u !== "hidden" ? (Vy[u] = !0, g('"%s" is not a supported value for tail on . Did you mean "collapsed" or "hidden"?', u)) : f !== "forwards" && f !== "backwards" && (Vy[u] = !0, g(' is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?', u))); } function ax(u, f) { { - var M = Ti(u), A = !M && typeof xe(u) == "function"; + var M = Ti(u), A = !M && typeof pe(u) == "function"; if (M || A) { var z = M ? "array" : "iterable"; - return m("A nested %s was passed to row #%s in . Wrap it in an additional SuspenseList to configure its revealOrder: ... {%s} ... ", z, f, z), !1; + return g("A nested %s was passed to row #%s in . Wrap it in an additional SuspenseList to configure its revealOrder: ... {%s} ... ", z, f, z), !1; } } return !0; } - function Uw(u, f) { + function Ub(u, f) { if ((f === "forwards" || f === "backwards") && u !== void 0 && u !== null && u !== !1) if (Ti(u)) { for (var M = 0; M < u.length; M++) if (!ax(u[M], M)) return; } else { - var A = xe(u); + var A = pe(u); if (typeof A == "function") { var z = A.call(u); if (z) - for (var j = z.next(), te = 0; !j.done; j = z.next()) { - if (!ax(j.value, te)) + for (var W = z.next(), ee = 0; !W.done; W = z.next()) { + if (!ax(W.value, ee)) return; - te++; + ee++; } } else - m('A single row was passed to a . This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?', f); + g('A single row was passed to a . This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?', f); } } - function Yy(u, f, M, A, z) { - var j = u.memoizedState; - j === null ? u.memoizedState = { + function Xy(u, f, M, A, z) { + var W = u.memoizedState; + W === null ? u.memoizedState = { isBackwards: f, rendering: null, renderingStartTime: 0, last: A, tail: M, tailMode: z - } : (j.isBackwards = f, j.rendering = null, j.renderingStartTime = 0, j.last = A, j.tail = M, j.tailMode = z); + } : (W.isBackwards = f, W.rendering = null, W.renderingStartTime = 0, W.last = A, W.tail = M, W.tailMode = z); } function D1(u, f, M) { - var A = f.pendingProps, z = A.revealOrder, j = A.tail, te = A.children; - Pw(z), Ow(j, z), Uw(te, z), Zl(u, f, te, M); - var se = Wc.current, Se = Cy(se, Xm); - if (Se) - se = Av(se, Xm), f.flags |= Vn; + var A = f.pendingProps, z = A.revealOrder, W = A.tail, ee = A.children; + Pb(z), Ob(W, z), Ub(ee, z), Kl(u, f, ee, M); + var ae = jc.current, _e = Ry(ae, Zm); + if (_e) + ae = Pv(ae, Zm), f.flags |= Bn; else { - var Pe = u !== null && (u.flags & Vn) !== Ne; - Pe && Dw(f, f.child, M), se = _l(se); + var Ue = u !== null && (u.flags & Bn) !== Pe; + Ue && Db(f, f.child, M), ae = wl(ae); } - if (ku(f, se), (f.mode & $i) === Mr) + if (Bu(f, ae), (f.mode & $i) === Mr) f.memoizedState = null; else switch (z) { case "forwards": { - var Ge = Lw(f.child), yt; - Ge === null ? (yt = f.child, f.child = null) : (yt = Ge.sibling, Ge.sibling = null), Yy( + var We = Lb(f.child), St; + We === null ? (St = f.child, f.child = null) : (St = We.sibling, We.sibling = null), Xy( f, !1, - yt, - Ge, - j + St, + We, + W ); break; } case "backwards": { - var It = null, jt = f.child; - for (f.child = null; jt !== null; ) { - var dn = jt.alternate; - if (dn !== null && mp(dn) === null) { - f.child = jt; + var It = null, Yt = f.child; + for (f.child = null; Yt !== null; ) { + var pn = Yt.alternate; + if (pn !== null && yp(pn) === null) { + f.child = Yt; break; } - var Sn = jt.sibling; - jt.sibling = It, It = jt, jt = Sn; + var Sn = Yt.sibling; + Yt.sibling = It, It = Yt, Yt = Sn; } - Yy( + Xy( f, !0, It, null, - j + W ); break; } case "together": { - Yy( + Xy( f, !1, null, @@ -29856,45 +29856,45 @@ Check the render method of \`` + A + "`."); return f.child; } function L1(u, f, M) { - My(f, f.stateNode.containerInfo); + Ty(f, f.stateNode.containerInfo); var A = f.pendingProps; - return u === null ? f.child = zf(f, null, A, M) : Zl(u, f, A, M), f.child; + return u === null ? f.child = Ff(f, null, A, M) : Kl(u, f, A, M), f.child; } - var p_ = !1; - function zw(u, f, M) { - var A = f.type, z = A._context, j = f.pendingProps, te = f.memoizedProps, se = j.value; + var xS = !1; + function zb(u, f, M) { + var A = f.type, z = A._context, W = f.pendingProps, ee = f.memoizedProps, ae = W.value; { - "value" in j || p_ || (p_ = !0, m("The `value` prop is required for the ``. Did you misspell it or forget to pass it?")); - var Se = f.type.propTypes; - Se && Io(Se, j, "prop", "Context.Provider"); - } - if (q(f, z, se), te !== null) { - var Pe = te.value; - if (Eo(Pe, se)) { - if (te.children === j.children && !$a()) - return sm(u, f, M); + "value" in W || xS || (xS = !0, g("The `value` prop is required for the ``. Did you misspell it or forget to pass it?")); + var _e = f.type.propTypes; + _e && Io(_e, W, "prop", "Context.Provider"); + } + if (X(f, z, ae), ee !== null) { + var Ue = ee.value; + if (Eo(Ue, ae)) { + if (ee.children === W.children && !$a()) + return um(u, f, M); } else - Ke(f, z, M); + $e(f, z, M); } - var Ge = j.children; - return Zl(u, f, Ge, M), f.child; + var We = W.children; + return Kl(u, f, We, M), f.child; } - var Fg = !1; - function Xy(u, f, M) { + var Bg = !1; + function qy(u, f, M) { var A = f.type; - A._context === void 0 ? A !== A.Consumer && (Fg || (Fg = !0, m("Rendering directly is not supported and will be removed in a future major release. Did you mean to render instead?"))) : A = A._context; - var z = f.pendingProps, j = z.children; - typeof j != "function" && m("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."), cn(f, M); - var te = bn(A); - zc(f); - var se; - return am.current = f, to(!0), se = j(te), to(!1), cc(), f.flags |= Gt, Zl(u, f, se, M), f.child; + A._context === void 0 ? A !== A.Consumer && (Bg || (Bg = !0, g("Rendering directly is not supported and will be removed in a future major release. Did you mean to render instead?"))) : A = A._context; + var z = f.pendingProps, W = z.children; + typeof W != "function" && g("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."), hn(f, M); + var ee = wn(A); + Nc(f); + var ae; + return lm.current = f, no(!0), ae = W(ee), no(!1), cc(), f.flags |= Gt, Kl(u, f, ae, M), f.child; } function sx() { - qc = !0; + Qc = !0; } - function sm(u, f, M) { - return u !== null && (f.dependencies = u.dependencies), Jm(), gx(f.lanes), Vr(M, f.childLanes) ? (Sg(u, f), f.child) : null; + function um(u, f, M) { + return u !== null && (f.dependencies = u.dependencies), ev(), gx(f.lanes), Vr(M, f.childLanes) ? (bg(u, f), f.child) : null; } function P1(u, f, M) { { @@ -29912,337 +29912,337 @@ Check the render method of \`` + A + "`."); throw new Error("Expected to find the previous sibling."); z.sibling = M; } - var j = A.deletions; - return j === null ? (A.deletions = [u], A.flags |= Wr) : j.push(u), M.flags |= Pt, M; + var W = A.deletions; + return W === null ? (A.deletions = [u], A.flags |= Or) : W.push(u), M.flags |= At, M; } } - function qy(u, f) { + function Qy(u, f) { var M = u.lanes; return !!Vr(M, f); } - function Nw(u, f, M) { + function Nb(u, f, M) { switch (f.tag) { - case ie: - o_(f), f.stateNode, Vc(); + case se: + dS(f), f.stateNode, Gc(); break; - case le: - Is(f); + case ue: + Bs(f); break; - case W: { + case Y: { var A = f.type; - pl(A) && Ca(f); + ml(A) && Ca(f); break; } - case fe: - My(f, f.stateNode.containerInfo); + case ce: + Ty(f, f.stateNode.containerInfo); break; - case Be: { - var z = f.memoizedProps.value, j = f.type._context; - q(f, j, z); + case He: { + var z = f.memoizedProps.value, W = f.type._context; + X(f, W, z); break; } - case de: + case fe: { - var te = Vr(M, f.childLanes); - te && (f.flags |= fn); + var ee = Vr(M, f.childLanes); + ee && (f.flags |= cn); { - var se = f.stateNode; - se.effectDuration = 0, se.passiveEffectDuration = 0; + var ae = f.stateNode; + ae.effectDuration = 0, ae.passiveEffectDuration = 0; } } break; - case ce: { - var Se = f.memoizedState; - if (Se !== null) { - if (Se.dehydrated !== null) - return ku(f, _l(Wc.current)), f.flags |= Vn, null; - var Pe = f.child, Ge = Pe.childLanes; - if (Vr(M, Ge)) + case he: { + var _e = f.memoizedState; + if (_e !== null) { + if (_e.dehydrated !== null) + return Bu(f, wl(jc.current)), f.flags |= Bn, null; + var Ue = f.child, We = Ue.childLanes; + if (Vr(M, We)) return tx(u, f, M); - ku(f, _l(Wc.current)); - var yt = sm(u, f, M); - return yt !== null ? yt.sibling : null; + Bu(f, wl(jc.current)); + var St = um(u, f, M); + return St !== null ? St.sibling : null; } else - ku(f, _l(Wc.current)); + Bu(f, wl(jc.current)); break; } - case Ue: { - var It = (u.flags & Vn) !== Ne, jt = Vr(M, f.childLanes); + case Ne: { + var It = (u.flags & Bn) !== Pe, Yt = Vr(M, f.childLanes); if (It) { - if (jt) + if (Yt) return D1(u, f, M); - f.flags |= Vn; + f.flags |= Bn; } - var dn = f.memoizedState; - if (dn !== null && (dn.rendering = null, dn.tail = null, dn.lastEffect = null), ku(f, Wc.current), jt) + var pn = f.memoizedState; + if (pn !== null && (pn.rendering = null, pn.tail = null, pn.lastEffect = null), Bu(f, jc.current), Yt) break; return null; } - case rt: - case _t: - return f.lanes = an, r_(u, f, M); + case tt: + case Tt: + return f.lanes = sn, lS(u, f, M); } - return sm(u, f, M); + return um(u, f, M); } - function m_(u, f, M) { + function _S(u, f, M) { if (f._debugNeedsRemount && u !== null) return P1(u, f, Tx(f.type, f.key, f.pendingProps, f._debugOwner || null, f.mode, f.lanes)); if (u !== null) { var A = u.memoizedProps, z = f.pendingProps; if (A !== z || $a() || f.type !== u.type) - qc = !0; + Qc = !0; else { - var j = qy(u, M); - if (!j && (f.flags & Vn) === Ne) - return qc = !1, Nw(u, f, M); - (u.flags & on) !== Ne ? qc = !0 : qc = !1; + var W = Qy(u, M); + if (!W && (f.flags & Bn) === Pe) + return Qc = !1, Nb(u, f, M); + (u.flags & $t) !== Pe ? Qc = !0 : Qc = !1; } - } else if (qc = !1, ha() && pd(f)) { - var te = f.index, se = Uf(); - mg(f, se, te); + } else if (Qc = !1, ha() && vd(f)) { + var ee = f.index, ae = Nf(); + yg(f, ae, ee); } - switch (f.lanes = an, f.tag) { - case ne: + switch (f.lanes = sn, f.tag) { + case re: return T1(u, f, f.type, M); - case Xe: { - var Se = f.elementType; - return Tw(u, f, Se, M); - } - case $: { - var Pe = f.type, Ge = f.pendingProps, yt = f.elementType === Pe ? Ge : ii(Pe, Ge); - return a_(u, f, Pe, yt, M); - } - case W: { - var It = f.type, jt = f.pendingProps, dn = f.elementType === It ? jt : ii(It, jt); - return s_(u, f, It, dn, M); - } - case ie: - return Ew(u, f, M); - case le: - return Mw(u, f, M); - case Ee: + case Ve: { + var _e = f.elementType; + return Tb(u, f, _e, M); + } + case te: { + var Ue = f.type, We = f.pendingProps, St = f.elementType === Ue ? We : ti(Ue, We); + return cS(u, f, Ue, St, M); + } + case Y: { + var It = f.type, Yt = f.pendingProps, pn = f.elementType === It ? Yt : ti(It, Yt); + return fS(u, f, It, pn, M); + } + case se: + return Eb(u, f, M); + case ue: + return Mb(u, f, M); + case Me: return M1(u, f); - case ce: + case he: return tx(u, f, M); - case fe: + case ce: return L1(u, f, M); - case pe: { - var Sn = f.type, Tr = f.pendingProps, yi = f.elementType === Sn ? Tr : ii(Sn, Tr); - return Gy(u, f, Sn, yi, M); + case ve: { + var Sn = f.type, Tr = f.pendingProps, vi = f.elementType === Sn ? Tr : ti(Sn, Tr); + return Wy(u, f, Sn, vi, M); } - case he: - return b1(u, f, M); - case Fe: + case me: return w1(u, f, M); - case de: - return ww(u, f, M); - case Be: - return zw(u, f, M); - case Ce: - return Xy(u, f, M); + case De: + return b1(u, f, M); + case fe: + return bb(u, f, M); + case He: + return zb(u, f, M); + case Re: + return qy(u, f, M); case ye: { - var Pr = f.type, oo = f.pendingProps, lo = ii(Pr, oo); + var Pr = f.type, lo = f.pendingProps, uo = ti(Pr, lo); if (f.type !== f.elementType) { - var Et = Pr.propTypes; - Et && Io( - Et, - lo, + var Ct = Pr.propTypes; + Ct && Io( + Ct, + uo, "prop", - at(Pr) + st(Pr) ); } - return lo = ii(Pr.type, lo), Ug(u, f, Pr, lo, M); + return uo = ti(Pr.type, uo), Fg(u, f, Pr, uo, M); } - case we: - return zg(u, f, f.type, f.pendingProps, M); + case Ee: + return kg(u, f, f.type, f.pendingProps, M); case Je: { - var Zt = f.type, wt = f.pendingProps, En = f.elementType === Zt ? wt : ii(Zt, wt); - return Cw(u, f, Zt, En, M); + var Jt = f.type, Mt = f.pendingProps, En = f.elementType === Jt ? Mt : ti(Jt, Mt); + return Cb(u, f, Jt, En, M); } - case Ue: + case Ne: return D1(u, f, M); - case ot: + case ct: break; - case rt: - return r_(u, f, M); + case tt: + return lS(u, f, M); } throw new Error("Unknown unit of work tag (" + f.tag + "). This error is likely caused by a bug in React. Please file an issue."); } - function Fw(u, f, M) { - switch (bv(f), f.tag) { - case W: { + function Fb(u, f, M) { + switch (Mv(f), f.tag) { + case Y: { var A = f.type; - pl(A) && xi(f); + ml(A) && _i(f); var z = f.flags; - return z & qe ? (f.flags = z & ~qe | Vn, (f.mode & Br) !== Mr && Lg(f), f) : null; + return z & Ye ? (f.flags = z & ~Ye | Bn, (f.mode & Br) !== Mr && Ug(f), f) : null; } - case ie: { - Gc(f), Ec(f), wg(); - var j = f.flags; - return (j & qe) !== Ne && (j & Vn) === Ne ? (f.flags = j & ~qe | Vn, f) : null; + case se: { + Wc(f), Mc(f), Tg(); + var W = f.flags; + return (W & Ye) !== Pe && (W & Bn) === Pe ? (f.flags = W & ~Ye | Bn, f) : null; } - case le: - return Ty(f), null; - case ce: { - Lh(f); + case ue: + return Cy(f), null; + case he: { + Ph(f); { - var te = f.memoizedState; - if (te !== null && te.dehydrated !== null) { + var ee = f.memoizedState; + if (ee !== null && ee.dehydrated !== null) { if (f.alternate === null) throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."); - Vc(); + Gc(); } } - var se = f.flags; - return se & qe ? (f.flags = se & ~qe | Vn, (f.mode & Br) !== Mr && Lg(f), f) : null; + var ae = f.flags; + return ae & Ye ? (f.flags = ae & ~Ye | Bn, (f.mode & Br) !== Mr && Ug(f), f) : null; } - case Ue: - return Lh(f), null; - case fe: - return Gc(f), null; - case Be: - var Se = f.type._context; - return ee(Se, f), null; - case rt: - case _t: + case Ne: + return Ph(f), null; + case ce: + return Wc(f), null; + case He: + var _e = f.type._context; + return $(_e, f), null; + case tt: + case Tt: return Y1(f), null; - case Rt: + case gt: return null; default: return null; } } function O1(u, f, M) { - switch (bv(f), f.tag) { - case W: { + switch (Mv(f), f.tag) { + case Y: { var A = f.type.childContextTypes; - A != null && xi(f); + A != null && _i(f); break; } - case ie: { - Gc(f), Ec(f), wg(); + case se: { + Wc(f), Mc(f), Tg(); break; } - case le: { - Ty(f); + case ue: { + Cy(f); break; } - case fe: - Gc(f); - break; case ce: - Lh(f); + Wc(f); + break; + case he: + Ph(f); break; - case Ue: - Lh(f); + case Ne: + Ph(f); break; - case Be: + case He: var z = f.type._context; - ee(z, f); + $(z, f); break; - case rt: - case _t: + case tt: + case Tt: Y1(f); break; } } - function v_(u, f, M, A, z, j, te, se, Se) { - var Pe = Array.prototype.slice.call(arguments, 3); + function SS(u, f, M, A, z, W, ee, ae, _e) { + var Ue = Array.prototype.slice.call(arguments, 3); try { - f.apply(M, Pe); - } catch (Ge) { - this.onError(Ge); + f.apply(M, Ue); + } catch (We) { + this.onError(We); } } - var g_ = v_; + var wS = SS; if (typeof window < "u" && typeof window.dispatchEvent == "function" && typeof document < "u" && typeof document.createEvent == "function") { var U1 = document.createElement("react"); - g_ = function(f, M, A, z, j, te, se, Se, Pe) { + wS = function(f, M, A, z, W, ee, ae, _e, Ue) { if (typeof document > "u" || document === null) throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous."); - var Ge = document.createEvent("Event"), yt = !1, It = !0, jt = window.event, dn = Object.getOwnPropertyDescriptor(window, "event"); + var We = document.createEvent("Event"), St = !1, It = !0, Yt = window.event, pn = Object.getOwnPropertyDescriptor(window, "event"); function Sn() { - U1.removeEventListener(Zt, yi, !1), typeof window.event < "u" && window.hasOwnProperty("event") && (window.event = jt); + U1.removeEventListener(Jt, vi, !1), typeof window.event < "u" && window.hasOwnProperty("event") && (window.event = Yt); } var Tr = Array.prototype.slice.call(arguments, 3); - function yi() { - yt = !0, Sn(), M.apply(A, Tr), It = !1; + function vi() { + St = !0, Sn(), M.apply(A, Tr), It = !1; } - var Pr, oo = !1, lo = !1; - function Et(wt) { - if (Pr = wt.error, oo = !0, Pr === null && wt.colno === 0 && wt.lineno === 0 && (lo = !0), wt.defaultPrevented && Pr != null && typeof Pr == "object") + var Pr, lo = !1, uo = !1; + function Ct(Mt) { + if (Pr = Mt.error, lo = !0, Pr === null && Mt.colno === 0 && Mt.lineno === 0 && (uo = !0), Mt.defaultPrevented && Pr != null && typeof Pr == "object") try { Pr._suppressLogging = !0; } catch { } } - var Zt = "react-" + (f || "invokeguardedcallback"); - if (window.addEventListener("error", Et), U1.addEventListener(Zt, yi, !1), Ge.initEvent(Zt, !1, !1), U1.dispatchEvent(Ge), dn && Object.defineProperty(window, "event", dn), yt && It && (oo ? lo && (Pr = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : Pr = new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`), this.onError(Pr)), window.removeEventListener("error", Et), !yt) - return Sn(), v_.apply(this, arguments); + var Jt = "react-" + (f || "invokeguardedcallback"); + if (window.addEventListener("error", Ct), U1.addEventListener(Jt, vi, !1), We.initEvent(Jt, !1, !1), U1.dispatchEvent(We), pn && Object.defineProperty(window, "event", pn), St && It && (lo ? uo && (Pr = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : Pr = new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`), this.onError(Pr)), window.removeEventListener("error", Ct), !St) + return Sn(), SS.apply(this, arguments); }; } - var kw = g_, Qy = !1, ox = null, Iw = { + var kb = wS, Zy = !1, ox = null, Ib = { onError: function(u) { - Qy = !0, ox = u; + Zy = !0, ox = u; } }; - function y_(u, f, M, A, z, j, te, se, Se) { - Qy = !1, ox = null, kw.apply(Iw, arguments); + function bS(u, f, M, A, z, W, ee, ae, _e) { + Zy = !1, ox = null, kb.apply(Ib, arguments); } - function Bw() { - return Qy; + function Bb() { + return Zy; } - function x_() { - if (Qy) { + function ES() { + if (Zy) { var u = ox; - return Qy = !1, ox = null, u; + return Zy = !1, ox = null, u; } else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue."); } - var S_ = null; - S_ = /* @__PURE__ */ new Set(); - var lx = !1, ev = !1, Hw = typeof WeakSet == "function" ? WeakSet : Set, In = null, kg = null, Uh = null; - function g(u) { - y_(null, function() { + var MS = null; + MS = /* @__PURE__ */ new Set(); + var lx = !1, rv = !1, Hb = typeof WeakSet == "function" ? WeakSet : Set, Vn = null, Hg = null, zh = null; + function v(u) { + bS(null, function() { throw u; - }), x_(); + }), ES(); } - var w = function(u, f) { + var b = function(u, f) { if (f.props = u.memoizedProps, f.state = u.memoizedState, u.mode & Br) try { vc(), f.componentWillUnmount(); } finally { - If(u); + Hf(u); } else f.componentWillUnmount(); }; function N(u, f) { try { - dr(Ts, u); + dr(Cs, u); } catch (M) { - g(M), $l(u, f, M); + v(M), tu(u, f, M); } } function Z(u, f, M) { try { - w(u, M); + b(u, M); } catch (A) { - g(A), $l(u, f, A); + v(A), tu(u, f, A); } } - function ae(u, f, M) { + function ie(u, f, M) { try { M.componentDidMount(); } catch (A) { - g(A), $l(u, f, A); + v(A), tu(u, f, A); } } function be(u, f) { try { - Hu(u); + Gu(u); } catch (M) { - g(M), $l(u, f, M); + v(M), tu(u, f, M); } } function ke(u, f) { @@ -30251,130 +30251,130 @@ Check the render method of \`` + A + "`."); if (typeof M == "function") { var A; try { - if (X && J && u.mode & Br) + if (Q && K && u.mode & Br) try { vc(), A = M(null); } finally { - If(u); + Hf(u); } else A = M(null); } catch (z) { - g(z), $l(u, f, z); + v(z), tu(u, f, z); } - typeof A == "function" && m("Unexpected return value from a callback ref in %s. A callback ref should not return a function.", Tt(u)); + typeof A == "function" && g("Unexpected return value from a callback ref in %s. A callback ref should not return a function.", wt(u)); } else M.current = null; } - function We(u, f, M) { + function je(u, f, M) { try { M(); } catch (A) { - g(A), $l(u, f, A); + v(A), tu(u, f, A); } } - var ut = !1; - function tn(u, f) { - Rl(u.containerInfo), In = f, Kt(); - var M = ut; - return ut = !1, M; + var lt = !1; + function nn(u, f) { + Dl(u.containerInfo), Vn = f, Kt(); + var M = lt; + return lt = !1, M; } function Kt() { - for (; In !== null; ) { - var u = In, f = u.child; - (u.subtreeFlags & br) !== Ne && f !== null ? (wp(f, u), In = f) : sn(); + for (; Vn !== null; ) { + var u = Vn, f = u.child; + (u.subtreeFlags & wr) !== Pe && f !== null ? (Tp(f, u), Vn = f) : on(); } } - function sn() { - for (; In !== null; ) { - var u = In; - wi(u); + function on() { + for (; Vn !== null; ) { + var u = Vn; + bi(u); try { Cn(u); } catch (M) { - g(M), $l(u, u.return, M); + v(M), tu(u, u.return, M); } - Es(); + Ms(); var f = u.sibling; if (f !== null) { - wp(f, u.return), In = f; + Tp(f, u.return), Vn = f; return; } - In = u.return; + Vn = u.return; } } function Cn(u) { var f = u.alternate, M = u.flags; - if ((M & ki) !== Ne) { - switch (wi(u), u.tag) { - case $: - case pe: - case we: + if ((M & ii) !== Pe) { + switch (bi(u), u.tag) { + case te: + case ve: + case Ee: break; - case W: { + case Y: { if (f !== null) { - var A = f.memoizedProps, z = f.memoizedState, j = u.stateNode; - u.type === u.elementType && !Iv && (j.props !== u.memoizedProps && m("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", Tt(u) || "instance"), j.state !== u.memoizedState && m("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", Tt(u) || "instance")); - var te = j.getSnapshotBeforeUpdate(u.elementType === u.type ? A : ii(u.type, A), z); + var A = f.memoizedProps, z = f.memoizedState, W = u.stateNode; + u.type === u.elementType && !Vv && (W.props !== u.memoizedProps && g("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", wt(u) || "instance"), W.state !== u.memoizedState && g("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", wt(u) || "instance")); + var ee = W.getSnapshotBeforeUpdate(u.elementType === u.type ? A : ti(u.type, A), z); { - var se = S_; - te === void 0 && !se.has(u.type) && (se.add(u.type), m("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.", Tt(u))); + var ae = MS; + ee === void 0 && !ae.has(u.type) && (ae.add(u.type), g("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.", wt(u))); } - j.__reactInternalSnapshotBeforeUpdate = te; + W.__reactInternalSnapshotBeforeUpdate = ee; } break; } - case ie: { + case se: { if (No) { - var Se = u.stateNode; - Mu(Se.containerInfo); + var _e = u.stateNode; + Cu(_e.containerInfo); } break; } - case le: - case Ee: - case fe: + case ue: + case Me: + case ce: case Je: break; default: throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); } - Es(); + Ms(); } } - function Ln(u, f, M) { + function On(u, f, M) { var A = f.updateQueue, z = A !== null ? A.lastEffect : null; if (z !== null) { - var j = z.next, te = j; + var W = z.next, ee = W; do { - if ((te.tag & u) === u) { - var se = te.destroy; - te.destroy = void 0, se !== void 0 && ((u & bl) !== mc ? il(f) : (u & Ts) !== mc && Mf(f), We(f, M, se), (u & bl) !== mc ? Fm() : (u & Ts) !== mc && Vl()); + if ((ee.tag & u) === u) { + var ae = ee.destroy; + ee.destroy = void 0, ae !== void 0 && ((u & bl) !== mc ? al(f) : (u & Cs) !== mc && Cf(f), je(f, M, ae), (u & bl) !== mc ? Bm() : (u & Cs) !== mc && Wl()); } - te = te.next; - } while (te !== j); + ee = ee.next; + } while (ee !== W); } } function dr(u, f) { var M = f.updateQueue, A = M !== null ? M.lastEffect : null; if (A !== null) { - var z = A.next, j = z; + var z = A.next, W = z; do { - if ((j.tag & u) === u) { - (u & bl) !== mc ? qd(f) : (u & Ts) !== mc && Ef(f); - var te = j.create; - j.destroy = te(), (u & bl) !== mc ? ld() : (u & Ts) !== mc && Qd(); + if ((W.tag & u) === u) { + (u & bl) !== mc ? Qd(f) : (u & Cs) !== mc && Tf(f); + var ee = W.create; + W.destroy = ee(), (u & bl) !== mc ? cd() : (u & Cs) !== mc && Zd(); { - var se = j.destroy; - if (se !== void 0 && typeof se != "function") { - var Se = void 0; - (j.tag & Ts) !== Ne ? Se = "useLayoutEffect" : (j.tag & vp) !== Ne ? Se = "useInsertionEffect" : Se = "useEffect"; - var Pe = void 0; - se === null ? Pe = " You returned null. If your effect does not require clean up, return undefined (or nothing)." : typeof se.then == "function" ? Pe = ` + var ae = W.destroy; + if (ae !== void 0 && typeof ae != "function") { + var _e = void 0; + (W.tag & Cs) !== Pe ? _e = "useLayoutEffect" : (W.tag & xp) !== Pe ? _e = "useInsertionEffect" : _e = "useEffect"; + var Ue = void 0; + ae === null ? Ue = " You returned null. If your effect does not require clean up, return undefined (or nothing)." : typeof ae.then == "function" ? Ue = ` -It looks like you wrote ` + Se + `(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately: +It looks like you wrote ` + _e + `(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately: -` + Se + `(() => { +` + _e + `(() => { async function fetchData() { // You can await here const response = await MyAPI.getData(someId); @@ -30383,173 +30383,173 @@ It looks like you wrote ` + Se + `(async () => ...) or returned a Promise. Inste fetchData(); }, [someId]); // Or [] if effect doesn't need props or state -Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching` : Pe = " You returned: " + se, m("%s must not return anything besides a function, which is used for clean-up.%s", Se, Pe); +Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching` : Ue = " You returned: " + ae, g("%s must not return anything besides a function, which is used for clean-up.%s", _e, Ue); } } } - j = j.next; - } while (j !== z); + W = W.next; + } while (W !== z); } } - function gi(u, f) { - if ((f.flags & fn) !== Ne) + function mi(u, f) { + if ((f.flags & cn) !== Pe) switch (f.tag) { - case de: { - var M = f.stateNode.passiveEffectDuration, A = f.memoizedProps, z = A.id, j = A.onPostCommit, te = rm(), se = f.alternate === null ? "mount" : "update"; - Da() && (se = "nested-update"), typeof j == "function" && j(z, se, M, te); - var Se = f.return; + case fe: { + var M = f.stateNode.passiveEffectDuration, A = f.memoizedProps, z = A.id, W = A.onPostCommit, ee = sm(), ae = f.alternate === null ? "mount" : "update"; + Da() && (ae = "nested-update"), typeof W == "function" && W(z, ae, M, ee); + var _e = f.return; e: - for (; Se !== null; ) { - switch (Se.tag) { - case ie: - var Pe = Se.stateNode; - Pe.passiveEffectDuration += M; + for (; _e !== null; ) { + switch (_e.tag) { + case se: + var Ue = _e.stateNode; + Ue.passiveEffectDuration += M; break e; - case de: - var Ge = Se.stateNode; - Ge.passiveEffectDuration += M; + case fe: + var We = _e.stateNode; + We.passiveEffectDuration += M; break e; } - Se = Se.return; + _e = _e.return; } break; } } } - function kr(u, f, M, A) { - if ((M.flags & La) !== Ne) + function Fr(u, f, M, A) { + if ((M.flags & La) !== Pe) switch (M.tag) { - case $: - case pe: - case we: { - if (!ev) + case te: + case ve: + case Ee: { + if (!rv) if (M.mode & Br) try { - vc(), dr(Ts | Aa, M); + vc(), dr(Cs | Aa, M); } finally { - If(M); + Hf(M); } else - dr(Ts | Aa, M); + dr(Cs | Aa, M); break; } - case W: { + case Y: { var z = M.stateNode; - if (M.flags & fn && !ev) + if (M.flags & cn && !rv) if (f === null) - if (M.type === M.elementType && !Iv && (z.props !== M.memoizedProps && m("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", Tt(M) || "instance"), z.state !== M.memoizedState && m("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", Tt(M) || "instance")), M.mode & Br) + if (M.type === M.elementType && !Vv && (z.props !== M.memoizedProps && g("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", wt(M) || "instance"), z.state !== M.memoizedState && g("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", wt(M) || "instance")), M.mode & Br) try { vc(), z.componentDidMount(); } finally { - If(M); + Hf(M); } else z.componentDidMount(); else { - var j = M.elementType === M.type ? f.memoizedProps : ii(M.type, f.memoizedProps), te = f.memoizedState; - if (M.type === M.elementType && !Iv && (z.props !== M.memoizedProps && m("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", Tt(M) || "instance"), z.state !== M.memoizedState && m("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", Tt(M) || "instance")), M.mode & Br) + var W = M.elementType === M.type ? f.memoizedProps : ti(M.type, f.memoizedProps), ee = f.memoizedState; + if (M.type === M.elementType && !Vv && (z.props !== M.memoizedProps && g("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", wt(M) || "instance"), z.state !== M.memoizedState && g("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", wt(M) || "instance")), M.mode & Br) try { - vc(), z.componentDidUpdate(j, te, z.__reactInternalSnapshotBeforeUpdate); + vc(), z.componentDidUpdate(W, ee, z.__reactInternalSnapshotBeforeUpdate); } finally { - If(M); + Hf(M); } else - z.componentDidUpdate(j, te, z.__reactInternalSnapshotBeforeUpdate); + z.componentDidUpdate(W, ee, z.__reactInternalSnapshotBeforeUpdate); } - var se = M.updateQueue; - se !== null && (M.type === M.elementType && !Iv && (z.props !== M.memoizedProps && m("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", Tt(M) || "instance"), z.state !== M.memoizedState && m("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", Tt(M) || "instance")), km(M, se, z)); + var ae = M.updateQueue; + ae !== null && (M.type === M.elementType && !Vv && (z.props !== M.memoizedProps && g("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", wt(M) || "instance"), z.state !== M.memoizedState && g("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", wt(M) || "instance")), Hm(M, ae, z)); break; } - case ie: { - var Se = M.updateQueue; - if (Se !== null) { - var Pe = null; + case se: { + var _e = M.updateQueue; + if (_e !== null) { + var Ue = null; if (M.child !== null) switch (M.child.tag) { - case le: - Pe = Uo(M.child.stateNode); + case ue: + Ue = Uo(M.child.stateNode); break; - case W: - Pe = M.child.stateNode; + case Y: + Ue = M.child.stateNode; break; } - km(M, Se, Pe); + Hm(M, _e, Ue); } break; } - case le: { - var Ge = M.stateNode; - if (f === null && M.flags & fn) { - var yt = M.type, It = M.memoizedProps; - Ii(Ge, yt, It, M); + case ue: { + var We = M.stateNode; + if (f === null && M.flags & cn) { + var St = M.type, It = M.memoizedProps; + Hi(We, St, It, M); } break; } - case Ee: + case Me: break; - case fe: + case ce: break; - case de: { + case fe: { { - var jt = M.memoizedProps, dn = jt.onCommit, Sn = jt.onRender, Tr = M.stateNode.effectDuration, yi = rm(), Pr = f === null ? "mount" : "update"; - Da() && (Pr = "nested-update"), typeof Sn == "function" && Sn(M.memoizedProps.id, Pr, M.actualDuration, M.treeBaseDuration, M.actualStartTime, yi); + var Yt = M.memoizedProps, pn = Yt.onCommit, Sn = Yt.onRender, Tr = M.stateNode.effectDuration, vi = sm(), Pr = f === null ? "mount" : "update"; + Da() && (Pr = "nested-update"), typeof Sn == "function" && Sn(M.memoizedProps.id, Pr, M.actualDuration, M.treeBaseDuration, M.actualStartTime, vi); { - typeof dn == "function" && dn(M.memoizedProps.id, Pr, Tr, yi), cR(M); - var oo = M.return; + typeof pn == "function" && pn(M.memoizedProps.id, Pr, Tr, vi), fR(M); + var lo = M.return; e: - for (; oo !== null; ) { - switch (oo.tag) { - case ie: - var lo = oo.stateNode; - lo.effectDuration += Tr; + for (; lo !== null; ) { + switch (lo.tag) { + case se: + var uo = lo.stateNode; + uo.effectDuration += Tr; break e; - case de: - var Et = oo.stateNode; - Et.effectDuration += Tr; + case fe: + var Ct = lo.stateNode; + Ct.effectDuration += Tr; break e; } - oo = oo.return; + lo = lo.return; } } } break; } - case ce: { - __(u, M); + case he: { + TS(u, M); break; } - case Ue: + case Ne: case Je: - case ot: - case rt: - case _t: + case ct: + case tt: + case Tt: break; default: throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); } - ev || M.flags & ti && Hu(M); + rv || M.flags & yi && Gu(M); } function Fi(u) { switch (u.tag) { - case $: - case pe: - case we: { + case te: + case ve: + case Ee: { if (u.mode & Br) try { vc(), N(u, u.return); } finally { - If(u); + Hf(u); } else N(u, u.return); break; } - case W: { + case Y: { var f = u.stateNode; - typeof f.componentDidMount == "function" && ae(u, u.return, f), be(u, u.return); + typeof f.componentDidMount == "function" && ie(u, u.return, f), be(u, u.return); break; } - case le: { + case ue: { be(u, u.return); break; } @@ -30559,18 +30559,18 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f var M = null; if (No) for (var A = u; ; ) { - if (A.tag === le) { + if (A.tag === ue) { if (M === null) { M = A; var z = A.stateNode; - f ? qf(z) : Qf(A.stateNode, A.memoizedProps); + f ? Zf(z) : Jf(A.stateNode, A.memoizedProps); } - } else if (A.tag === Ee) { + } else if (A.tag === Me) { if (M === null) { - var j = A.stateNode; - f ? ko(j) : Ki(j, A.memoizedProps); + var W = A.stateNode; + f ? ko(W) : Ki(W, A.memoizedProps); } - } else if (!((A.tag === rt || A.tag === _t) && A.memoizedState !== null && A !== u)) { + } else if (!((A.tag === tt || A.tag === Tt) && A.memoizedState !== null && A !== u)) { if (A.child !== null) { A.child.return = A, A = A.child; continue; @@ -30586,12 +30586,12 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f M === A && (M = null), A.sibling.return = A.return, A = A.sibling; } } - function Hu(u) { + function Gu(u) { var f = u.ref; if (f !== null) { var M = u.stateNode, A; switch (u.tag) { - case le: + case ue: A = Uo(M); break; default: @@ -30603,16 +30603,16 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f try { vc(), z = f(A); } finally { - If(u); + Hf(u); } else z = f(A); - typeof z == "function" && m("Unexpected return value from a callback ref in %s. A callback ref should not return a function.", Tt(u)); + typeof z == "function" && g("Unexpected return value from a callback ref in %s. A callback ref should not return a function.", wt(u)); } else - f.hasOwnProperty("current") || m("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", Tt(u)), f.current = A; + f.hasOwnProperty("current") || g("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", wt(u)), f.current = A; } } - function Vs(u) { + function Gs(u) { var f = u.ref; if (f !== null) if (typeof f == "function") @@ -30620,7 +30620,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f try { vc(), f(null); } finally { - If(u); + Hf(u); } else f(null); @@ -30629,46 +30629,46 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f } function gc(u, f, M) { switch (Ba(f), f.tag) { - case $: - case pe: + case te: + case ve: case ye: - case we: { + case Ee: { var A = f.updateQueue; if (A !== null) { var z = A.lastEffect; if (z !== null) { - var j = z.next, te = j; + var W = z.next, ee = W; do { - var se = te, Se = se.destroy, Pe = se.tag; - Se !== void 0 && ((Pe & vp) !== mc ? We(f, M, Se) : (Pe & Ts) !== mc && (Mf(f), f.mode & Br ? (vc(), We(f, M, Se), If(f)) : We(f, M, Se), Vl())), te = te.next; - } while (te !== j); + var ae = ee, _e = ae.destroy, Ue = ae.tag; + _e !== void 0 && ((Ue & xp) !== mc ? je(f, M, _e) : (Ue & Cs) !== mc && (Cf(f), f.mode & Br ? (vc(), je(f, M, _e), Hf(f)) : je(f, M, _e), Wl())), ee = ee.next; + } while (ee !== W); } } return; } - case W: { + case Y: { ke(f, M); - var Ge = f.stateNode; - typeof Ge.componentWillUnmount == "function" && Z(f, M, Ge); + var We = f.stateNode; + typeof We.componentWillUnmount == "function" && Z(f, M, We); return; } - case le: { + case ue: { ke(f, M); return; } - case fe: { - No ? Gw(u, f, M) : Ci && Gu(f); + case ce: { + No ? Gb(u, f, M) : Ci && ju(f); return; } - case st: + case rt: return; - case ot: + case ct: return; } } - function Gs(u, f, M) { + function Ws(u, f, M) { for (var A = f; ; ) { - if (gc(u, A, M), A.child !== null && (!No || A.tag !== fe)) { + if (gc(u, A, M), A.child !== null && (!No || A.tag !== ce)) { A.child.return = A, A = A.child; continue; } @@ -30682,36 +30682,36 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f A.sibling.return = A.return, A = A.sibling; } } - function Jl(u) { + function $l(u) { var f = u.alternate; f !== null && (f.return = null), u.return = null; } - function Vu(u) { + function Wu(u) { var f = u.alternate; - f !== null && (u.alternate = null, Vu(f)); + f !== null && (u.alternate = null, Wu(f)); { - if (u.child = null, u.deletions = null, u.sibling = null, u.tag === le) { + if (u.child = null, u.deletions = null, u.sibling = null, u.tag === ue) { var M = u.stateNode; M !== null && ua(M); } u.stateNode = null, u._debugOwner = null, u.return = null, u.dependencies = null, u.memoizedProps = null, u.memoizedState = null, u.pendingProps = null, u.stateNode = null, u.updateQueue = null; } } - function Gu(u) { + function ju(u) { if (!!Ci) { - var f = u.stateNode, M = f.containerInfo, A = ys(M); + var f = u.stateNode, M = f.containerInfo, A = xs(M); bc(M, A); } } - function Hf(u) { + function Gf(u) { if (!!Ci) { switch (u.tag) { - case W: - case le: - case Ee: + case Y: + case ue: + case Me: return; - case ie: - case fe: { + case se: + case ce: { var f = u.stateNode, M = f.containerInfo, A = f.pendingChildren; bc(M, A); return; @@ -30720,50 +30720,50 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); } } - function Vw(u) { + function Vb(u) { for (var f = u.return; f !== null; ) { - if ($d(f)) + if (eh(f)) return f; f = f.return; } throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); } - function $d(u) { - return u.tag === le || u.tag === ie || u.tag === fe; + function eh(u) { + return u.tag === ue || u.tag === se || u.tag === ce; } - function tv(u) { + function iv(u) { var f = u; e: for (; ; ) { for (; f.sibling === null; ) { - if (f.return === null || $d(f.return)) + if (f.return === null || eh(f.return)) return null; f = f.return; } - for (f.sibling.return = f.return, f = f.sibling; f.tag !== le && f.tag !== Ee && f.tag !== st; ) { - if (f.flags & Pt || f.child === null || f.tag === fe) + for (f.sibling.return = f.return, f = f.sibling; f.tag !== ue && f.tag !== Me && f.tag !== rt; ) { + if (f.flags & At || f.child === null || f.tag === ce) continue e; f.child.return = f, f = f.child; } - if (!(f.flags & Pt)) + if (!(f.flags & At)) return f.stateNode; } } - function om(u) { + function cm(u) { if (!!No) { - var f = Vw(u); + var f = Vb(u); switch (f.tag) { - case le: { + case ue: { var M = f.stateNode; - f.flags & Ur && (Xf(M), f.flags &= ~Ur); - var A = tv(u); - Ig(u, A, M); + f.flags & Ii && (Qf(M), f.flags &= ~Ii); + var A = iv(u); + Vg(u, A, M); break; } - case ie: - case fe: { - var z = f.stateNode.containerInfo, j = tv(u); - z1(u, j, z); + case se: + case ce: { + var z = f.stateNode.containerInfo, W = iv(u); + z1(u, W, z); break; } default: @@ -30772,64 +30772,64 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f } } function z1(u, f, M) { - var A = u.tag, z = A === le || A === Ee; + var A = u.tag, z = A === ue || A === Me; if (z) { - var j = u.stateNode; - f ? Ps(M, j, f) : hf(M, j); - } else if (A !== fe) { - var te = u.child; - if (te !== null) { - z1(te, f, M); - for (var se = te.sibling; se !== null; ) - z1(se, f, M), se = se.sibling; + var W = u.stateNode; + f ? Os(M, W, f) : mf(M, W); + } else if (A !== ce) { + var ee = u.child; + if (ee !== null) { + z1(ee, f, M); + for (var ae = ee.sibling; ae !== null; ) + z1(ae, f, M), ae = ae.sibling; } } } - function Ig(u, f, M) { - var A = u.tag, z = A === le || A === Ee; + function Vg(u, f, M) { + var A = u.tag, z = A === ue || A === Me; if (z) { - var j = u.stateNode; - f ? Fo(M, j, f) : df(M, j); - } else if (A !== fe) { - var te = u.child; - if (te !== null) { - Ig(te, f, M); - for (var se = te.sibling; se !== null; ) - Ig(se, f, M), se = se.sibling; + var W = u.stateNode; + f ? Fo(M, W, f) : pf(M, W); + } else if (A !== ce) { + var ee = u.child; + if (ee !== null) { + Vg(ee, f, M); + for (var ae = ee.sibling; ae !== null; ) + Vg(ae, f, M), ae = ae.sibling; } } } - function Gw(u, f, M) { - for (var A = f, z = !1, j, te; ; ) { + function Gb(u, f, M) { + for (var A = f, z = !1, W, ee; ; ) { if (!z) { - var se = A.return; + var ae = A.return; e: for (; ; ) { - if (se === null) + if (ae === null) throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); - var Se = se.stateNode; - switch (se.tag) { - case le: - j = Se, te = !1; + var _e = ae.stateNode; + switch (ae.tag) { + case ue: + W = _e, ee = !1; break e; - case ie: - j = Se.containerInfo, te = !0; + case se: + W = _e.containerInfo, ee = !0; break e; - case fe: - j = Se.containerInfo, te = !0; + case ce: + W = _e.containerInfo, ee = !0; break e; } - se = se.return; + ae = ae.return; } z = !0; } - if (A.tag === le || A.tag === Ee) - Gs(u, A, M), te ? Ll(j, A.stateNode) : _c(j, A.stateNode); - else if (A.tag === st) - te ? Lm(j, A.stateNode) : Dm(j, A.stateNode); - else if (A.tag === fe) { + if (A.tag === ue || A.tag === Me) + Ws(u, A, M), ee ? Ol(W, A.stateNode) : wc(W, A.stateNode); + else if (A.tag === rt) + ee ? Um(W, A.stateNode) : Om(W, A.stateNode); + else if (A.tag === ce) { if (A.child !== null) { - j = A.stateNode.containerInfo, te = !0, A.child.return = A, A = A.child; + W = A.stateNode.containerInfo, ee = !0, A.child.return = A, A = A.child; continue; } } else if (gc(u, A, M), A.child !== null) { @@ -30841,107 +30841,107 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f for (; A.sibling === null; ) { if (A.return === null || A.return === f) return; - A = A.return, A.tag === fe && (z = !1); + A = A.return, A.tag === ce && (z = !1); } A.sibling.return = A.return, A = A.sibling; } } function ux(u, f, M) { - No ? Gw(u, f, M) : Gs(u, f, M), Jl(f); + No ? Gb(u, f, M) : Ws(u, f, M), $l(f); } function cx(u, f) { if (!No) { switch (f.tag) { - case $: - case pe: + case te: + case ve: case ye: - case we: { - if (Ln(vp | Aa, f, f.return), dr(vp | Aa, f), f.mode & Br) + case Ee: { + if (On(xp | Aa, f, f.return), dr(xp | Aa, f), f.mode & Br) try { - vc(), Ln(Ts | Aa, f, f.return); + vc(), On(Cs | Aa, f, f.return); } finally { - If(f); + Hf(f); } else - Ln(Ts | Aa, f, f.return); + On(Cs | Aa, f, f.return); return; } - case de: + case fe: return; - case ce: { - lm(f), fx(f); + case he: { + fm(f), fx(f); return; } - case Ue: { + case Ne: { fx(f); return; } - case ie: { - if (cs && u !== null) { + case se: { + if (fs && u !== null) { var M = u.memoizedState; if (M.isDehydrated) { var A = f.stateNode; - Zh(A.containerInfo); + $h(A.containerInfo); } } break; } - case rt: - case _t: + case tt: + case Tt: return; } - Hf(f); + Gf(f); return; } switch (f.tag) { - case $: - case pe: + case te: + case ve: case ye: - case we: { - if (Ln(vp | Aa, f, f.return), dr(vp | Aa, f), f.mode & Br) + case Ee: { + if (On(xp | Aa, f, f.return), dr(xp | Aa, f), f.mode & Br) try { - vc(), Ln(Ts | Aa, f, f.return); + vc(), On(Cs | Aa, f, f.return); } finally { - If(f); + Hf(f); } else - Ln(Ts | Aa, f, f.return); + On(Cs | Aa, f, f.return); return; } - case W: + case Y: return; - case le: { + case ue: { var z = f.stateNode; if (z != null) { - var j = f.memoizedProps, te = u !== null ? u.memoizedProps : j, se = f.type, Se = f.updateQueue; - f.updateQueue = null, Se !== null && Ri(z, Se, se, te, j, f); + var W = f.memoizedProps, ee = u !== null ? u.memoizedProps : W, ae = f.type, _e = f.updateQueue; + f.updateQueue = null, _e !== null && Ri(z, _e, ae, ee, W, f); } return; } - case Ee: { + case Me: { if (f.stateNode === null) throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."); - var Pe = f.stateNode, Ge = f.memoizedProps, yt = u !== null ? u.memoizedProps : Ge; - su(Pe, yt, Ge); + var Ue = f.stateNode, We = f.memoizedProps, St = u !== null ? u.memoizedProps : We; + lu(Ue, St, We); return; } - case ie: { - if (cs && u !== null) { + case se: { + if (fs && u !== null) { var It = u.memoizedState; if (It.isDehydrated) { - var jt = f.stateNode; - Zh(jt.containerInfo); + var Yt = f.stateNode; + $h(Yt.containerInfo); } } return; } - case de: + case fe: return; - case ce: { - lm(f), fx(f); + case he: { + fm(f), fx(f); return; } - case Ue: { + case Ne: { fx(f); return; } @@ -30950,19 +30950,19 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f } throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); } - function lm(u) { + function fm(u) { u.memoizedState; } - function __(u, f) { - if (!!cs) { + function TS(u, f) { + if (!!fs) { var M = f.memoizedState; if (M === null) { var A = f.alternate; if (A !== null) { var z = A.memoizedState; if (z !== null) { - var j = z.dehydrated; - j !== null && Am(j); + var W = z.dehydrated; + W !== null && Pm(W); } } } @@ -30973,12 +30973,12 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f if (f !== null) { u.updateQueue = null; var M = u.stateNode; - M === null && (M = u.stateNode = new Hw()), f.forEach(function(A) { + M === null && (M = u.stateNode = new Hb()), f.forEach(function(A) { var z = DT.bind(null, u, A); if (!M.has(A)) { if (M.add(A), ns) - if (kg !== null && Uh !== null) - l0(Uh, kg); + if (Hg !== null && zh !== null) + u0(zh, Hg); else throw Error("Expected finished root and lanes to be set. This is a bug in React."); A.then(z, z); @@ -30987,288 +30987,288 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f } } function oT(u) { - !No || Xf(u.stateNode); + !No || Qf(u.stateNode); } function lT(u, f, M) { - kg = M, Uh = u, In = f, b_(u, M), kg = null, Uh = null; + Hg = M, zh = u, Vn = f, CS(u, M), Hg = null, zh = null; } - function b_(u, f) { - for (; In !== null; ) { - var M = In, A = M.deletions; + function CS(u, f) { + for (; Vn !== null; ) { + var M = Vn, A = M.deletions; if (A !== null) for (var z = 0; z < A.length; z++) { - var j = A[z]; + var W = A[z]; try { - ux(u, j, M); - } catch (se) { - g(se), $l(j, M, se); + ux(u, W, M); + } catch (ae) { + v(ae), tu(W, M, ae); } } - var te = M.child; - (M.subtreeFlags & Yi) !== Ne && te !== null ? (wp(te, M), In = te) : uT(u, f); + var ee = M.child; + (M.subtreeFlags & Yi) !== Pe && ee !== null ? (Tp(ee, M), Vn = ee) : uT(u, f); } } function uT(u, f) { - for (; In !== null; ) { - var M = In; - wi(M); + for (; Vn !== null; ) { + var M = Vn; + bi(M); try { - rR(M, u, f); + iR(M, u, f); } catch (z) { - g(z), $l(M, M.return, z); + v(z), tu(M, M.return, z); } - Es(); + Ms(); var A = M.sibling; if (A !== null) { - wp(A, M.return), In = A; + Tp(A, M.return), Vn = A; return; } - In = M.return; + Vn = M.return; } } - function rR(u, f, M) { + function iR(u, f, M) { var A = u.flags; - if (A & Ur && oT(u), A & ti) { + if (A & Ii && oT(u), A & yi) { var z = u.alternate; - z !== null && Vs(z); + z !== null && Gs(z); } - if (A & Si) + if (A & ai) switch (u.tag) { - case ce: { - var j = u.memoizedState, te = j !== null; - if (te) { - var se = u.alternate, Se = se !== null && se.memoizedState !== null; - Se || W_(); + case he: { + var W = u.memoizedState, ee = W !== null; + if (ee) { + var ae = u.alternate, _e = ae !== null && ae.memoizedState !== null; + _e || QS(); } break; } - case rt: { - var Pe = u.memoizedState, Ge = Pe !== null, yt = u.alternate, It = yt !== null && yt.memoizedState !== null, jt = u; - No && Ji(jt, Ge); + case tt: { + var Ue = u.memoizedState, We = Ue !== null, St = u.alternate, It = St !== null && St.memoizedState !== null, Yt = u; + No && Ji(Yt, We); { - if (Ge && !It && (jt.mode & $i) !== Mr) { - In = jt; - for (var dn = jt.child; dn !== null; ) - In = dn, Ww(dn), dn = dn.sibling; + if (We && !It && (Yt.mode & $i) !== Mr) { + Vn = Yt; + for (var pn = Yt.child; pn !== null; ) + Vn = pn, Wb(pn), pn = pn.sibling; } break; } } } - var Sn = A & (Pt | fn | ni); + var Sn = A & (At | cn | xi); switch (Sn) { - case Pt: { - om(u), u.flags &= ~Pt; + case At: { + cm(u), u.flags &= ~At; break; } - case Gr: { - om(u), u.flags &= ~Pt; + case ki: { + cm(u), u.flags &= ~At; var Tr = u.alternate; cx(Tr, u); break; } - case ni: { - u.flags &= ~ni; + case xi: { + u.flags &= ~xi; break; } - case ji: { - u.flags &= ~ni; - var yi = u.alternate; - cx(yi, u); + case $r: { + u.flags &= ~xi; + var vi = u.alternate; + cx(vi, u); break; } - case fn: { + case cn: { var Pr = u.alternate; cx(Pr, u); break; } } } - function Bg(u, f, M) { - kg = M, Uh = f, In = u, N1(u, f, M), kg = null, Uh = null; + function Gg(u, f, M) { + Hg = M, zh = f, Vn = u, N1(u, f, M), Hg = null, zh = null; } function N1(u, f, M) { - for (var A = (u.mode & $i) !== Mr; In !== null; ) { - var z = In, j = z.child; - if (z.tag === rt && A) { - var te = z.memoizedState !== null, se = te || lx; - if (se) { - um(u, f, M); + for (var A = (u.mode & $i) !== Mr; Vn !== null; ) { + var z = Vn, W = z.child; + if (z.tag === tt && A) { + var ee = z.memoizedState !== null, ae = ee || lx; + if (ae) { + dm(u, f, M); continue; } else { - var Se = z.alternate, Pe = Se !== null && Se.memoizedState !== null, Ge = Pe || ev, yt = lx, It = ev; - lx = se, ev = Ge, ev && !It && (In = z, cT(z)); - for (var jt = j; jt !== null; ) - In = jt, N1( - jt, + var _e = z.alternate, Ue = _e !== null && _e.memoizedState !== null, We = Ue || rv, St = lx, It = rv; + lx = ae, rv = We, rv && !It && (Vn = z, cT(z)); + for (var Yt = W; Yt !== null; ) + Vn = Yt, N1( + Yt, f, M - ), jt = jt.sibling; - In = z, lx = yt, ev = It, um(u, f, M); + ), Yt = Yt.sibling; + Vn = z, lx = St, rv = It, dm(u, f, M); continue; } } - (z.subtreeFlags & La) !== Ne && j !== null ? (wp(j, z), In = j) : um(u, f, M); + (z.subtreeFlags & La) !== Pe && W !== null ? (Tp(W, z), Vn = W) : dm(u, f, M); } } - function um(u, f, M) { - for (; In !== null; ) { - var A = In; - if ((A.flags & La) !== Ne) { + function dm(u, f, M) { + for (; Vn !== null; ) { + var A = Vn; + if ((A.flags & La) !== Pe) { var z = A.alternate; - wi(A); + bi(A); try { - kr(f, z, A, M); - } catch (te) { - g(te), $l(A, A.return, te); + Fr(f, z, A, M); + } catch (ee) { + v(ee), tu(A, A.return, ee); } - Es(); + Ms(); } if (A === u) { - In = null; + Vn = null; return; } - var j = A.sibling; - if (j !== null) { - wp(j, A.return), In = j; + var W = A.sibling; + if (W !== null) { + Tp(W, A.return), Vn = W; return; } - In = A.return; + Vn = A.return; } } - function Ww(u) { - for (; In !== null; ) { - var f = In, M = f.child; + function Wb(u) { + for (; Vn !== null; ) { + var f = Vn, M = f.child; switch (f.tag) { - case $: - case pe: + case te: + case ve: case ye: - case we: { + case Ee: { if (f.mode & Br) try { - vc(), Ln(Ts, f, f.return); + vc(), On(Cs, f, f.return); } finally { - If(f); + Hf(f); } else - Ln(Ts, f, f.return); + On(Cs, f, f.return); break; } - case W: { + case Y: { ke(f, f.return); var A = f.stateNode; typeof A.componentWillUnmount == "function" && Z(f, f.return, A); break; } - case le: { + case ue: { ke(f, f.return); break; } - case rt: { + case tt: { var z = f.memoizedState !== null; if (z) { - w_(u); + RS(u); continue; } break; } } - M !== null ? (M.return = f, In = M) : w_(u); + M !== null ? (M.return = f, Vn = M) : RS(u); } } - function w_(u) { - for (; In !== null; ) { - var f = In; + function RS(u) { + for (; Vn !== null; ) { + var f = Vn; if (f === u) { - In = null; + Vn = null; return; } var M = f.sibling; if (M !== null) { - M.return = f.return, In = M; + M.return = f.return, Vn = M; return; } - In = f.return; + Vn = f.return; } } function cT(u) { - for (; In !== null; ) { - var f = In, M = f.child; - if (f.tag === rt) { + for (; Vn !== null; ) { + var f = Vn, M = f.child; + if (f.tag === tt) { var A = f.memoizedState !== null; if (A) { fT(u); continue; } } - M !== null ? (M.return = f, In = M) : fT(u); + M !== null ? (M.return = f, Vn = M) : fT(u); } } function fT(u) { - for (; In !== null; ) { - var f = In; - wi(f); + for (; Vn !== null; ) { + var f = Vn; + bi(f); try { Fi(f); } catch (A) { - g(A), $l(f, f.return, A); + v(A), tu(f, f.return, A); } - if (Es(), f === u) { - In = null; + if (Ms(), f === u) { + Vn = null; return; } var M = f.sibling; if (M !== null) { - M.return = f.return, In = M; + M.return = f.return, Vn = M; return; } - In = f.return; + Vn = f.return; } } function dT(u, f) { - In = f, Hg(f, u); + Vn = f, Wg(f, u); } - function Hg(u, f) { - for (; In !== null; ) { - var M = In, A = M.child; - (M.subtreeFlags & Xs) !== Ne && A !== null ? (wp(A, M), In = A) : dx(u, f); + function Wg(u, f) { + for (; Vn !== null; ) { + var M = Vn, A = M.child; + (M.subtreeFlags & qs) !== Pe && A !== null ? (Tp(A, M), Vn = A) : dx(u, f); } } function dx(u, f) { - for (; In !== null; ) { - var M = In; - if ((M.flags & Wi) !== Ne) { - wi(M); + for (; Vn !== null; ) { + var M = Vn; + if ((M.flags & Bi) !== Pe) { + bi(M); try { hx(f, M); } catch (z) { - g(z), $l(M, M.return, z); + v(z), tu(M, M.return, z); } - Es(); + Ms(); } if (M === u) { - In = null; + Vn = null; return; } var A = M.sibling; if (A !== null) { - wp(A, M.return), In = A; + Tp(A, M.return), Vn = A; return; } - In = M.return; + Vn = M.return; } } function hx(u, f) { switch (f.tag) { - case $: - case pe: - case we: { + case te: + case ve: + case Ee: { if (f.mode & Br) { J0(); try { dr(bl | Aa, f); } finally { - Dg(f); + Og(f); } } else dr(bl | Aa, f); @@ -31276,128 +31276,128 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f } } } - function E_(u) { - In = u, M_(); + function AS(u) { + Vn = u, DS(); } - function M_() { - for (; In !== null; ) { - var u = In, f = u.child; - if ((In.flags & Wr) !== Ne) { + function DS() { + for (; Vn !== null; ) { + var u = Vn, f = u.child; + if ((Vn.flags & Or) !== Pe) { var M = u.deletions; if (M !== null) { for (var A = 0; A < M.length; A++) { var z = M[A]; - In = z, Zy(z, u); + Vn = z, Jy(z, u); } { - var j = u.alternate; - if (j !== null) { - var te = j.child; - if (te !== null) { - j.child = null; + var W = u.alternate; + if (W !== null) { + var ee = W.child; + if (ee !== null) { + W.child = null; do { - var se = te.sibling; - te.sibling = null, te = se; - } while (te !== null); + var ae = ee.sibling; + ee.sibling = null, ee = ae; + } while (ee !== null); } } } - In = u; + Vn = u; } } - (u.subtreeFlags & Xs) !== Ne && f !== null ? (wp(f, u), In = f) : _p(); + (u.subtreeFlags & qs) !== Pe && f !== null ? (Tp(f, u), Vn = f) : Ep(); } } - function _p() { - for (; In !== null; ) { - var u = In; - (u.flags & Wi) !== Ne && (wi(u), bp(u), Es()); + function Ep() { + for (; Vn !== null; ) { + var u = Vn; + (u.flags & Bi) !== Pe && (bi(u), Mp(u), Ms()); var f = u.sibling; if (f !== null) { - wp(f, u.return), In = f; + Tp(f, u.return), Vn = f; return; } - In = u.return; + Vn = u.return; } } - function bp(u) { + function Mp(u) { switch (u.tag) { - case $: - case pe: - case we: { - u.mode & Br ? (J0(), Ln(bl | Aa, u, u.return), Dg(u)) : Ln(bl | Aa, u, u.return); + case te: + case ve: + case Ee: { + u.mode & Br ? (J0(), On(bl | Aa, u, u.return), Og(u)) : On(bl | Aa, u, u.return); break; } } } - function Zy(u, f) { - for (; In !== null; ) { - var M = In; - wi(M), Hv(M, f), Es(); + function Jy(u, f) { + for (; Vn !== null; ) { + var M = Vn; + bi(M), Wv(M, f), Ms(); var A = M.child; - A !== null ? (wp(A, M), In = A) : Bv(u); + A !== null ? (Tp(A, M), Vn = A) : Gv(u); } } - function Bv(u) { - for (; In !== null; ) { - var f = In, M = f.sibling, A = f.return; - if (Vu(f), f === u) { - In = null; + function Gv(u) { + for (; Vn !== null; ) { + var f = Vn, M = f.sibling, A = f.return; + if (Wu(f), f === u) { + Vn = null; return; } if (M !== null) { - wp(M, A), In = M; + Tp(M, A), Vn = M; return; } - In = A; + Vn = A; } } - function Hv(u, f) { + function Wv(u, f) { switch (u.tag) { - case $: - case pe: - case we: { - u.mode & Br ? (J0(), Ln(bl, u, f), Dg(u)) : Ln(bl, u, f); + case te: + case ve: + case Ee: { + u.mode & Br ? (J0(), On(bl, u, f), Og(u)) : On(bl, u, f); break; } } } var hT = !1; - function wp(u, f) { - !hT && u.return !== f && (hT = !0, m("Internal React error: Return pointer is inconsistent with parent.")), u.return = f; + function Tp(u, f) { + !hT && u.return !== f && (hT = !0, g("Internal React error: Return pointer is inconsistent with parent.")), u.return = f; } - function iR(u) { + function aR(u) { switch (u.tag) { - case $: - case pe: - case we: { + case te: + case ve: + case Ee: { try { - dr(Ts | Aa, u); + dr(Cs | Aa, u); } catch (M) { - g(M), $l(u, u.return, M); + v(M), tu(u, u.return, M); } break; } - case W: { + case Y: { var f = u.stateNode; try { f.componentDidMount(); } catch (M) { - g(M), $l(u, u.return, M); + v(M), tu(u, u.return, M); } break; } } } - function Jy(u) { + function Ky(u) { switch (u.tag) { - case $: - case pe: - case we: { + case te: + case ve: + case Ee: { try { dr(bl | Aa, u); } catch (f) { - g(f), $l(u, u.return, f); + v(f), tu(u, u.return, f); } break; } @@ -31405,72 +31405,72 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f } function pT(u) { switch (u.tag) { - case $: - case pe: - case we: { + case te: + case ve: + case Ee: { try { - Ln(Ts | Aa, u, u.return); + On(Cs | Aa, u, u.return); } catch (M) { - g(M), $l(u, u.return, M); + v(M), tu(u, u.return, M); } break; } - case W: { + case Y: { var f = u.stateNode; typeof f.componentWillUnmount == "function" && Z(u, u.return, f); break; } } } - function jw(u) { + function jb(u) { switch (u.tag) { - case $: - case pe: - case we: + case te: + case ve: + case Ee: try { - Ln(bl | Aa, u, u.return); + On(bl | Aa, u, u.return); } catch (f) { - g(f), $l(u, u.return, f); + v(f), tu(u, u.return, f); } } } - var Ky = 0, T_ = 1, px = 2, C_ = 3, R_ = 4; + var $y = 0, LS = 1, px = 2, PS = 3, OS = 4; if (typeof Symbol == "function" && Symbol.for) { - var cm = Symbol.for; - Ky = cm("selector.component"), T_ = cm("selector.has_pseudo_class"), px = cm("selector.role"), C_ = cm("selector.test_id"), R_ = cm("selector.text"); + var hm = Symbol.for; + $y = hm("selector.component"), LS = hm("selector.has_pseudo_class"), px = hm("selector.role"), PS = hm("selector.test_id"), OS = hm("selector.text"); } - function Qc(u) { + function Zc(u) { return { - $$typeof: Ky, + $$typeof: $y, value: u }; } - function Ep(u) { + function Cp(u) { return { - $$typeof: T_, + $$typeof: LS, value: u }; } - function fm(u) { + function pm(u) { return { $$typeof: px, value: u }; } - function $y(u) { + function e0(u) { return { - $$typeof: R_, + $$typeof: OS, value: u }; } - function Vg(u) { + function jg(u) { return { - $$typeof: C_, + $$typeof: PS, value: u }; } - function Yw(u) { - var f = Yf(u); + function Yb(u) { + var f = qf(u); if (f != null) { if (typeof f.memoizedProps["data-testname"] != "string") throw new Error("Invalid host root specified. Should be either a React container or a node with a testname attribute."); @@ -31482,30 +31482,30 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f return M.stateNode.current; } } - function A_(u, f) { + function US(u, f) { switch (f.$$typeof) { - case Ky: + case $y: if (u.type === f.value) return !0; break; - case T_: - return aR(u, f.value); + case LS: + return sR(u, f.value); case px: - if (u.tag === le) { + if (u.tag === ue) { var M = u.stateNode; if (Qa(M, f.value)) return !0; } break; - case R_: - if (u.tag === le || u.tag === Ee) { - var A = Rm(u); + case OS: + if (u.tag === ue || u.tag === Me) { + var A = Lm(u); if (A !== null && A.indexOf(f.value) >= 0) return !0; } break; - case C_: - if (u.tag === le) { + case PS: + if (u.tag === ue) { var z = u.memoizedProps["data-testname"]; if (typeof z == "string" && z.toLowerCase() === f.value.toLowerCase()) return !0; @@ -31516,18 +31516,18 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f } return !1; } - function Xw(u) { + function Xb(u) { switch (u.$$typeof) { - case Ky: - var f = at(u.value) || "Unknown"; + case $y: + var f = st(u.value) || "Unknown"; return "<" + f + ">"; - case T_: - return ":has(" + (Xw(u) || "") + ")"; + case LS: + return ":has(" + (Xb(u) || "") + ")"; case px: return '[role="' + u.value + '"]'; - case R_: + case OS: return '"' + u.value + '"'; - case C_: + case PS: return '[data-testname="' + u.value + '"]'; default: throw new Error("Invalid selector type specified."); @@ -31535,29 +31535,29 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f } function mT(u, f) { for (var M = [], A = [u, 0], z = 0; z < A.length; ) { - var j = A[z++], te = A[z++], se = f[te]; - if (!(j.tag === le && mi(j))) { - for (; se != null && A_(j, se); ) - te++, se = f[te]; - if (te === f.length) - M.push(j); + var W = A[z++], ee = A[z++], ae = f[ee]; + if (!(W.tag === ue && hi(W))) { + for (; ae != null && US(W, ae); ) + ee++, ae = f[ee]; + if (ee === f.length) + M.push(W); else - for (var Se = j.child; Se !== null; ) - A.push(Se, te), Se = Se.sibling; + for (var _e = W.child; _e !== null; ) + A.push(_e, ee), _e = _e.sibling; } } return M; } - function aR(u, f) { + function sR(u, f) { for (var M = [u, 0], A = 0; A < M.length; ) { - var z = M[A++], j = M[A++], te = f[j]; - if (!(z.tag === le && mi(z))) { - for (; te != null && A_(z, te); ) - j++, te = f[j]; - if (j === f.length) + var z = M[A++], W = M[A++], ee = f[W]; + if (!(z.tag === ue && hi(z))) { + for (; ee != null && US(z, ee); ) + W++, ee = f[W]; + if (W === f.length) return !0; - for (var se = z.child; se !== null; ) - M.push(se, j), se = se.sibling; + for (var ae = z.child; ae !== null; ) + M.push(ae, W), ae = ae.sibling; } } return !1; @@ -31565,55 +31565,55 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f function F1(u, f) { if (!yo) throw new Error("Test selector API is not supported by this renderer."); - for (var M = Yw(u), A = mT(M, f), z = [], j = Array.from(A), te = 0; te < j.length; ) { - var se = j[te++]; - if (se.tag === le) { - if (mi(se)) + for (var M = Yb(u), A = mT(M, f), z = [], W = Array.from(A), ee = 0; ee < W.length; ) { + var ae = W[ee++]; + if (ae.tag === ue) { + if (hi(ae)) continue; - z.push(se.stateNode); + z.push(ae.stateNode); } else - for (var Se = se.child; Se !== null; ) - j.push(Se), Se = Se.sibling; + for (var _e = ae.child; _e !== null; ) + W.push(_e), _e = _e.sibling; } return z; } function vT(u, f) { if (!yo) throw new Error("Test selector API is not supported by this renderer."); - for (var M = Yw(u), A = 0, z = [], j = [M, 0], te = 0; te < j.length; ) { - var se = j[te++], Se = j[te++], Pe = f[Se]; - if (!(se.tag === le && mi(se)) && (A_(se, Pe) && (z.push(Xw(Pe)), Se++, Se > A && (A = Se)), Se < f.length)) - for (var Ge = se.child; Ge !== null; ) - j.push(Ge, Se), Ge = Ge.sibling; + for (var M = Yb(u), A = 0, z = [], W = [M, 0], ee = 0; ee < W.length; ) { + var ae = W[ee++], _e = W[ee++], Ue = f[_e]; + if (!(ae.tag === ue && hi(ae)) && (US(ae, Ue) && (z.push(Xb(Ue)), _e++, _e > A && (A = _e)), _e < f.length)) + for (var We = ae.child; We !== null; ) + W.push(We, _e), We = We.sibling; } if (A < f.length) { - for (var yt = [], It = A; It < f.length; It++) - yt.push(Xw(f[It])); + for (var St = [], It = A; It < f.length; It++) + St.push(Xb(f[It])); return `findAllNodes was able to match part of the selector: ` + (" " + z.join(" > ") + ` `) + `No matching component was found for: -` + (" " + yt.join(" > ")); +` + (" " + St.join(" > ")); } return null; } - function qw(u, f) { + function qb(u, f) { if (!yo) throw new Error("Test selector API is not supported by this renderer."); for (var M = F1(u, f), A = [], z = 0; z < M.length; z++) A.push(Xi(M[z])); - for (var j = A.length - 1; j > 0; j--) - for (var te = A[j], se = te.x, Se = se + te.width, Pe = te.y, Ge = Pe + te.height, yt = j - 1; yt >= 0; yt--) - if (j !== yt) { - var It = A[yt], jt = It.x, dn = jt + It.width, Sn = It.y, Tr = Sn + It.height; - if (se >= jt && Pe >= Sn && Se <= dn && Ge <= Tr) { - A.splice(j, 1); + for (var W = A.length - 1; W > 0; W--) + for (var ee = A[W], ae = ee.x, _e = ae + ee.width, Ue = ee.y, We = Ue + ee.height, St = W - 1; St >= 0; St--) + if (W !== St) { + var It = A[St], Yt = It.x, pn = Yt + It.width, Sn = It.y, Tr = Sn + It.height; + if (ae >= Yt && Ue >= Sn && _e <= pn && We <= Tr) { + A.splice(W, 1); break; - } else if (se === jt && te.width === It.width && !(Tr < Pe) && !(Sn > Ge)) { - Sn > Pe && (It.height += Sn - Pe, It.y = Pe), Tr < Ge && (It.height = Ge - Sn), A.splice(j, 1); + } else if (ae === Yt && ee.width === It.width && !(Tr < Ue) && !(Sn > We)) { + Sn > Ue && (It.height += Sn - Ue, It.y = Ue), Tr < We && (It.height = We - Sn), A.splice(W, 1); break; - } else if (Pe === Sn && te.height === It.height && !(dn < se) && !(jt > Se)) { - jt > se && (It.width += jt - se, It.x = se), dn < Se && (It.width = Se - jt), A.splice(j, 1); + } else if (Ue === Sn && ee.height === It.height && !(pn < ae) && !(Yt > _e)) { + Yt > ae && (It.width += Yt - ae, It.x = ae), pn < _e && (It.width = _e - Yt), A.splice(W, 1); break; } } @@ -31622,265 +31622,265 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f function gT(u, f) { if (!yo) throw new Error("Test selector API is not supported by this renderer."); - for (var M = Yw(u), A = mT(M, f), z = Array.from(A), j = 0; j < z.length; ) { - var te = z[j++]; - if (!mi(te)) { - if (te.tag === le) { - var se = te.stateNode; - if (Sc(se)) + for (var M = Yb(u), A = mT(M, f), z = Array.from(A), W = 0; W < z.length; ) { + var ee = z[W++]; + if (!hi(ee)) { + if (ee.tag === ue) { + var ae = ee.stateNode; + if (Sc(ae)) return !0; } - for (var Se = te.child; Se !== null; ) - z.push(Se), Se = Se.sibling; + for (var _e = ee.child; _e !== null; ) + z.push(_e), _e = _e.sibling; } } return !1; } var k1 = []; - function Qw() { + function Qb() { yo && k1.forEach(function(u) { return u(); }); } - function Zw(u, f, M, A) { + function Zb(u, f, M, A) { if (!yo) throw new Error("Test selector API is not supported by this renderer."); - var z = F1(u, f), j = dl(z, M, A), te = j.disconnect, se = j.observe, Se = j.unobserve, Pe = function() { - var Ge = F1(u, f); - z.forEach(function(yt) { - Ge.indexOf(yt) < 0 && Se(yt); - }), Ge.forEach(function(yt) { - z.indexOf(yt) < 0 && se(yt); + var z = F1(u, f), W = hl(z, M, A), ee = W.disconnect, ae = W.observe, _e = W.unobserve, Ue = function() { + var We = F1(u, f); + z.forEach(function(St) { + We.indexOf(St) < 0 && _e(St); + }), We.forEach(function(St) { + z.indexOf(St) < 0 && ae(St); }); }; - return k1.push(Pe), { + return k1.push(Ue), { disconnect: function() { - var Ge = k1.indexOf(Pe); - Ge >= 0 && k1.splice(Ge, 1), te(); + var We = k1.indexOf(Ue); + We >= 0 && k1.splice(We, 1), ee(); } }; } - var Jw = o.ReactCurrentActQueue; - function sR(u) { + var Jb = s.ReactCurrentActQueue; + function oR(u) { { var f = typeof IS_REACT_ACT_ENVIRONMENT < "u" ? IS_REACT_ACT_ENVIRONMENT : void 0, M = typeof jest < "u"; - return jf && M && f !== !1; + return Xf && M && f !== !1; } } function yT() { { var u = typeof IS_REACT_ACT_ENVIRONMENT < "u" ? IS_REACT_ACT_ENVIRONMENT : void 0; - return !u && Jw.current !== null && m("The current testing environment is not configured to support act(...)"), u; + return !u && Jb.current !== null && g("The current testing environment is not configured to support act(...)"), u; } } - var oR = Math.ceil, Kw = o.ReactCurrentDispatcher, D_ = o.ReactCurrentOwner, so = o.ReactCurrentBatchConfig, dm = o.ReactCurrentActQueue, Kl = 0, Gg = 1, Zc = 2, Ws = 4, hm = 0, I1 = 1, e0 = 2, L_ = 3, bd = 4, xT = 5, Vv = 6, di = Kl, xu = null, js = null, ul = an, eh = an, t0 = Mn(an), Ro = hm, Wg = null, B1 = an, wd = an, mx = an, n0 = null, Jc = null, jg = 0, P_ = 500, H1 = 1 / 0, O_ = 500; - function r0() { - H1 = da() + O_; + var lR = Math.ceil, Kb = s.ReactCurrentDispatcher, zS = s.ReactCurrentOwner, oo = s.ReactCurrentBatchConfig, mm = s.ReactCurrentActQueue, eu = 0, Yg = 1, Jc = 2, js = 4, vm = 0, I1 = 1, t0 = 2, NS = 3, Ed = 4, xT = 5, jv = 6, ci = eu, Su = null, Ys = null, cl = sn, th = sn, n0 = Mn(sn), Ro = vm, Xg = null, B1 = sn, Md = sn, mx = sn, r0 = null, Kc = null, qg = 0, FS = 500, H1 = 1 / 0, kS = 500; + function i0() { + H1 = da() + kS; } - function $w() { + function $b() { return H1; } - var V1 = !1, G1 = null, Yg = null, i0 = !1, Gv = null, nv = an, El = [], a0 = 50, s0 = 0, eE = null, ST = 50, U_ = 0, W1 = Bi, Kc = an; - function z_() { - return xu; + var V1 = !1, G1 = null, Qg = null, a0 = !1, Yv = null, av = sn, Ml = [], s0 = 50, o0 = 0, eE = null, _T = 50, IS = 0, W1 = Vi, $c = sn; + function BS() { + return Su; } function yc() { - return (di & (Zc | Ws)) !== Kl ? da() : (W1 !== Bi || (W1 = da()), W1); + return (ci & (Jc | js)) !== eu ? da() : (W1 !== Vi || (W1 = da()), W1); } - function Wv(u) { + function Xv(u) { var f = u.mode; if ((f & $i) === Mr) return Hr; - if ((di & Zc) !== Kl && ul !== an) - return cu(ul); - var M = Rf() !== Cf; + if ((ci & Jc) !== eu && cl !== sn) + return du(cl); + var M = Df() !== Af; if (M) { - if (so.transition !== null) { - var A = so.transition; + if (oo.transition !== null) { + var A = oo.transition; A._updatedFibers || (A._updatedFibers = /* @__PURE__ */ new Set()), A._updatedFibers.add(u); } - return Kc === Ir && (Kc = bo()), Kc; + return $c === kr && ($c = wo()), $c; } - var z = rl(); - if (z !== Ir) + var z = il(); + if (z !== kr) return z; - var j = Eu(); - return j; + var W = Tu(); + return W; } - function _T(u) { + function ST(u) { var f = u.mode; - return (f & $i) === Mr ? Hr : Kh(); + return (f & $i) === Mr ? Hr : tp(); } - function Ml(u, f, M) { + function Tl(u, f, M) { LT(); - var A = o0(u, f); - return A === null ? null : (wo(A, f, M), (di & Zc) !== an && A === xu ? bx(u) : (ns && ga(A, u, f), UT(u), A === xu && ((di & Zc) === Kl && (wd = zr(wd, f)), Ro === bd && iv(A, ul)), $c(A, M), f === Hr && di === Kl && (u.mode & $i) === Mr && !dm.isBatchingLegacy && (r0(), Ha())), A); + var A = l0(u, f); + return A === null ? null : (bo(A, f, M), (ci & Jc) !== sn && A === Su ? wx(u) : (ns && ga(A, u, f), UT(u), A === Su && ((ci & Jc) === eu && (Md = Ur(Md, f)), Ro === Ed && ov(A, cl)), ef(A, M), f === Hr && ci === eu && (u.mode & $i) === Mr && !mm.isBatchingLegacy && (i0(), Ha())), A); } function tE(u, f, M) { var A = u.current; - A.lanes = f, wo(u, f, M), $c(u, M); + A.lanes = f, bo(u, f, M), ef(u, M); } - function o0(u, f) { - u.lanes = zr(u.lanes, f); + function l0(u, f) { + u.lanes = Ur(u.lanes, f); var M = u.alternate; - M !== null && (M.lanes = zr(M.lanes, f)), M === null && (u.flags & (Pt | ni)) !== Ne && Sx(u); + M !== null && (M.lanes = Ur(M.lanes, f)), M === null && (u.flags & (At | xi)) !== Pe && _x(u); for (var A = u, z = u.return; z !== null; ) - z.childLanes = zr(z.childLanes, f), M = z.alternate, M !== null ? M.childLanes = zr(M.childLanes, f) : (z.flags & (Pt | ni)) !== Ne && Sx(u), A = z, z = z.return; - if (A.tag === ie) { - var j = A.stateNode; - return j; + z.childLanes = Ur(z.childLanes, f), M = z.alternate, M !== null ? M.childLanes = Ur(M.childLanes, f) : (z.flags & (At | xi)) !== Pe && _x(u), A = z, z = z.return; + if (A.tag === se) { + var W = A.stateNode; + return W; } else return null; } - function N_(u, f) { - return xu !== null && (u.mode & $i) !== Mr && (di & Zc) === Kl; + function HS(u, f) { + return Su !== null && (u.mode & $i) !== Mr && (ci & Jc) === eu; } - function $c(u, f) { + function ef(u, f) { var M = u.callbackNode; - hs(u, f); - var A = zi(u, u === xu ? ul : an); - if (A === an) { - M !== null && OT(M), u.callbackNode = null, u.callbackPriority = Ir; + ps(u, f); + var A = zi(u, u === Su ? cl : sn); + if (A === sn) { + M !== null && OT(M), u.callbackNode = null, u.callbackPriority = kr; return; } - var z = lc(A), j = u.callbackPriority; - if (j === z && !(dm.current !== null && M !== q_)) { - M == null && j !== Hr && m("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."); + var z = lc(A), W = u.callbackPriority; + if (W === z && !(mm.current !== null && M !== $S)) { + M == null && W !== Hr && g("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."); return; } M != null && OT(M); - var te; + var ee; if (z === Hr) - u.tag === Mc ? (dm.isBatchingLegacy !== null && (dm.didScheduleLegacyUpdate = !0), Fc(bT.bind(null, u))) : lr(bT.bind(null, u)), Cr ? dm.current !== null ? dm.current.push(Yo) : fl(function() { - di === Kl && Yo(); - }) : wx(Hi, Yo), te = null; + u.tag === Tc ? (mm.isBatchingLegacy !== null && (mm.didScheduleLegacyUpdate = !0), kc(wT.bind(null, u))) : lr(wT.bind(null, u)), Cr ? mm.current !== null ? mm.current.push(Yo) : dl(function() { + ci === eu && Yo(); + }) : bx(Gi, Yo), ee = null; else { - var se; - switch (Bl(A)) { - case Us: - se = Hi; + var ae; + switch (Vl(A)) { + case zs: + ae = Gi; break; - case sd: - se = wn; + case ld: + ae = bn; break; - case Il: - se = Qi; + case Hl: + ae = Qi; break; case Go: - se = ya; + ae = ya; break; default: - se = Qi; + ae = Qi; break; } - te = wx(se, F_.bind(null, u)); + ee = bx(ae, VS.bind(null, u)); } - u.callbackPriority = z, u.callbackNode = te; + u.callbackPriority = z, u.callbackNode = ee; } - function F_(u, f) { - if (Ag(), W1 = Bi, Kc = an, (di & (Zc | Ws)) !== Kl) + function VS(u, f) { + if (Pg(), W1 = Vi, $c = sn, (ci & (Jc | js)) !== eu) throw new Error("Should not already be working."); - var M = u.callbackNode, A = av(); + var M = u.callbackNode, A = lv(); if (A && u.callbackNode !== M) return null; - var z = zi(u, u === xu ? ul : an); - if (z === an) + var z = zi(u, u === Su ? cl : sn); + if (z === sn) return null; - var j = !Vo(u, z) && !Sv(u, z) && !f, te = j ? uR(u, z) : yx(u, z); - if (te !== hm) { - if (te === e0) { - var se = Nl(u); - se !== an && (z = se, te = k_(u, se)); - } - if (te === I1) { - var Se = Wg; - throw jv(u, an), iv(u, z), $c(u, da()), Se; - } - if (te === Vv) - iv(u, z); + var W = !Vo(u, z) && !bv(u, z) && !f, ee = W ? cR(u, z) : yx(u, z); + if (ee !== vm) { + if (ee === t0) { + var ae = kl(u); + ae !== sn && (z = ae, ee = GS(u, ae)); + } + if (ee === I1) { + var _e = Xg; + throw qv(u, sn), ov(u, z), ef(u, da()), _e; + } + if (ee === jv) + ov(u, z); else { - var Pe = !Vo(u, z), Ge = u.current.alternate; - if (Pe && !I_(Ge)) { - if (te = yx(u, z), te === e0) { - var yt = Nl(u); - yt !== an && (z = yt, te = k_(u, yt)); + var Ue = !Vo(u, z), We = u.current.alternate; + if (Ue && !WS(We)) { + if (ee = yx(u, z), ee === t0) { + var St = kl(u); + St !== sn && (z = St, ee = GS(u, St)); } - if (te === I1) { - var It = Wg; - throw jv(u, an), iv(u, z), $c(u, da()), It; + if (ee === I1) { + var It = Xg; + throw qv(u, sn), ov(u, z), ef(u, da()), It; } } - u.finishedWork = Ge, u.finishedLanes = z, Xg(u, te, z); + u.finishedWork = We, u.finishedLanes = z, Zg(u, ee, z); } } - return $c(u, da()), u.callbackNode === M ? F_.bind(null, u) : null; + return ef(u, da()), u.callbackNode === M ? VS.bind(null, u) : null; } - function k_(u, f) { - var M = n0; + function GS(u, f) { + var M = r0; if (Di(u)) { - var A = jv(u, f); - A.flags |= jr, Za(u.containerInfo); + var A = qv(u, f); + A.flags |= Mi, Za(u.containerInfo); } var z = yx(u, f); - if (z !== e0) { - var j = Jc; - Jc = M, j !== null && rv(j); + if (z !== t0) { + var W = Kc; + Kc = M, W !== null && sv(W); } return z; } - function rv(u) { - Jc === null ? Jc = u : Jc.push.apply(Jc, u); + function sv(u) { + Kc === null ? Kc = u : Kc.push.apply(Kc, u); } - function Xg(u, f, M) { + function Zg(u, f, M) { switch (f) { - case hm: + case vm: case I1: throw new Error("Root did not complete. This is a bug in React."); - case e0: { - qg(u, Jc); + case t0: { + Jg(u, Kc); break; } - case L_: { - if (iv(u, M), _f(M) && !pE()) { - var A = jg + P_ - da(); + case NS: { + if (ov(u, M), bf(M) && !pE()) { + var A = qg + FS - da(); if (A > 10) { - var z = zi(u, an); - if (z !== an) + var z = zi(u, sn); + if (z !== sn) break; - var j = u.suspendedLanes; - if (!uc(j, M)) { - yc(), wh(u, j); + var W = u.suspendedLanes; + if (!uc(W, M)) { + yc(), Eh(u, W); break; } - u.timeoutHandle = qh(qg.bind(null, u, Jc), A); + u.timeoutHandle = Jh(Jg.bind(null, u, Kc), A); break; } } - qg(u, Jc); + Jg(u, Kc); break; } - case bd: { - if (iv(u, M), Wd(M)) + case Ed: { + if (ov(u, M), jd(M)) break; if (!pE()) { - var te = Pc(u, M), se = te, Se = da() - se, Pe = xx(Se) - Se; - if (Pe > 10) { - u.timeoutHandle = qh(qg.bind(null, u, Jc), Pe); + var ee = Oc(u, M), ae = ee, _e = da() - ae, Ue = xx(_e) - _e; + if (Ue > 10) { + u.timeoutHandle = Jh(Jg.bind(null, u, Kc), Ue); break; } } - qg(u, Jc); + Jg(u, Kc); break; } case xT: { - qg(u, Jc); + Jg(u, Kc); break; } default: throw new Error("Unknown root exit status."); } } - function I_(u) { + function WS(u) { for (var f = u; ; ) { if (f.flags & Te) { var M = f.updateQueue; @@ -31888,9 +31888,9 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f var A = M.stores; if (A !== null) for (var z = 0; z < A.length; z++) { - var j = A[z], te = j.getSnapshot, se = j.value; + var W = A[z], ee = W.getSnapshot, ae = W.value; try { - if (!Eo(te(), se)) + if (!Eo(ee(), ae)) return !1; } catch { return !1; @@ -31898,9 +31898,9 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f } } } - var Se = f.child; - if (f.subtreeFlags & Te && Se !== null) { - Se.return = f, f = Se; + var _e = f.child; + if (f.subtreeFlags & Te && _e !== null) { + _e.return = f, f = _e; continue; } if (f === u) @@ -31914,402 +31914,402 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f } return !0; } - function iv(u, f) { - f = Ks(f, mx), f = Ks(f, wd), Nm(u, f); + function ov(u, f) { + f = $s(f, mx), f = $s(f, Md), Im(u, f); } - function bT(u) { - if (Nv(), (di & (Zc | Ws)) !== Kl) + function wT(u) { + if (Iv(), (ci & (Jc | js)) !== eu) throw new Error("Should not already be working."); - av(); - var f = zi(u, an); + lv(); + var f = zi(u, sn); if (!Vr(f, Hr)) - return $c(u, da()), null; + return ef(u, da()), null; var M = yx(u, f); - if (u.tag !== Mc && M === e0) { - var A = Nl(u); - A !== an && (f = A, M = k_(u, A)); + if (u.tag !== Tc && M === t0) { + var A = kl(u); + A !== sn && (f = A, M = GS(u, A)); } if (M === I1) { - var z = Wg; - throw jv(u, an), iv(u, f), $c(u, da()), z; + var z = Xg; + throw qv(u, sn), ov(u, f), ef(u, da()), z; } - if (M === Vv) + if (M === jv) throw new Error("Root did not complete. This is a bug in React."); - var j = u.current.alternate; - return u.finishedWork = j, u.finishedLanes = f, qg(u, Jc), $c(u, da()), null; + var W = u.current.alternate; + return u.finishedWork = W, u.finishedLanes = f, Jg(u, Kc), ef(u, da()), null; } - function B_(u, f) { - f !== an && (bs(u, zr(f, Hr)), $c(u, da()), (di & (Zc | Ws)) === Kl && (r0(), Yo())); + function jS(u, f) { + f !== sn && (bs(u, Ur(f, Hr)), ef(u, da()), (ci & (Jc | js)) === eu && (i0(), Yo())); } - function lR(u) { - var f = rl(), M = so.transition; + function uR(u) { + var f = il(), M = oo.transition; try { - return so.transition = null, zs(Il), u(); + return oo.transition = null, Ns(Hl), u(); } finally { - zs(f), so.transition = M; + Ns(f), oo.transition = M; } } - function wT(u, f) { - var M = di; - di |= Gg; + function bT(u, f) { + var M = ci; + ci |= Yg; try { return u(f); } finally { - di = M, di === Kl && !dm.isBatchingLegacy && (r0(), Ha()); + ci = M, ci === eu && !mm.isBatchingLegacy && (i0(), Ha()); } } - function H_(u, f, M, A, z) { - var j = rl(), te = so.transition; + function YS(u, f, M, A, z) { + var W = il(), ee = oo.transition; try { - return so.transition = null, zs(Us), u(f, M, A, z); + return oo.transition = null, Ns(zs), u(f, M, A, z); } finally { - zs(j), so.transition = te, di === Kl && r0(); + Ns(W), oo.transition = ee, ci === eu && i0(); } } function j1(u) { - Gv !== null && Gv.tag === Mc && (di & (Zc | Ws)) === Kl && av(); - var f = di; - di |= Gg; - var M = so.transition, A = rl(); + Yv !== null && Yv.tag === Tc && (ci & (Jc | js)) === eu && lv(); + var f = ci; + ci |= Yg; + var M = oo.transition, A = il(); try { - return so.transition = null, zs(Us), u ? u() : void 0; + return oo.transition = null, Ns(zs), u ? u() : void 0; } finally { - zs(A), so.transition = M, di = f, (di & (Zc | Ws)) === Kl && Yo(); + Ns(A), oo.transition = M, ci = f, (ci & (Jc | js)) === eu && Yo(); } } function nE() { - return (di & (Zc | Ws)) !== Kl; + return (ci & (Jc | js)) !== eu; } function ET(u) { - var f = di; - di |= Gg; - var M = so.transition, A = rl(); + var f = ci; + ci |= Yg; + var M = oo.transition, A = il(); try { - so.transition = null, zs(Us), u(); + oo.transition = null, Ns(zs), u(); } finally { - zs(A), so.transition = M, di = f, di === Kl && (r0(), Yo()); + Ns(A), oo.transition = M, ci = f, ci === eu && (i0(), Yo()); } } function vx(u, f) { - or(t0, eh, u), eh = zr(eh, f); + or(n0, th, u), th = Ur(th, f); } function Y1(u) { - eh = t0.current, Kn(t0, u); + th = n0.current, $n(n0, u); } - function jv(u, f) { - u.finishedWork = null, u.finishedLanes = an; + function qv(u, f) { + u.finishedWork = null, u.finishedLanes = sn; var M = u.timeoutHandle; - if (M !== ri && (u.timeoutHandle = ri, Dl(M)), js !== null) - for (var A = js.return; A !== null; ) { + if (M !== ei && (u.timeoutHandle = ei, Pl(M)), Ys !== null) + for (var A = Ys.return; A !== null; ) { var z = A.alternate; O1(z, A), A = A.return; } - xu = u; - var j = oa(u.current, null); - return js = j, ul = eh = f, Ro = hm, Wg = null, B1 = an, wd = an, mx = an, n0 = null, Jc = null, _a(), Xl.discardPendingWarnings(), j; + Su = u; + var W = la(u.current, null); + return Ys = W, cl = th = f, Ro = vm, Xg = null, B1 = sn, Md = sn, mx = sn, r0 = null, Kc = null, Sa(), Ql.discardPendingWarnings(), W; } - function V_(u, f) { + function XS(u, f) { do { - var M = js; + var M = Ys; try { - if (x(), un(), Es(), D_.current = null, M === null || M.return === null) { - Ro = I1, Wg = f, js = null; + if (x(), fn(), Ms(), zS.current = null, M === null || M.return === null) { + Ro = I1, Xg = f, Ys = null; return; } - if (X && M.mode & Br && Fv(M, !0), I) + if (Q && M.mode & Br && Bv(M, !0), B) if (cc(), f !== null && typeof f == "object" && typeof f.then == "function") { var A = f; - ud(M, A, ul); + fd(M, A, cl); } else - Gl(M, f, ul); - _w(u, M.return, M, f, ul), RT(M); + jl(M, f, cl); + Sb(u, M.return, M, f, cl), RT(M); } catch (z) { - f = z, js === M && M !== null ? (M = M.return, js = M) : M = js; + f = z, Ys === M && M !== null ? (M = M.return, Ys = M) : M = Ys; continue; } return; } while (!0); } - function G_() { - var u = Kw.current; - return Kw.current = X0, u === null ? X0 : u; + function qS() { + var u = Kb.current; + return Kb.current = X0, u === null ? X0 : u; } function rE(u) { - Kw.current = u; + Kb.current = u; } - function W_() { - jg = da(); + function QS() { + qg = da(); } function gx(u) { - B1 = zr(u, B1); + B1 = Ur(u, B1); } function iE() { - Ro === hm && (Ro = L_); + Ro === vm && (Ro = NS); } function X1() { - (Ro === hm || Ro === L_ || Ro === e0) && (Ro = bd), xu !== null && (Fl(B1) || Fl(wd)) && iv(xu, ul); + (Ro === vm || Ro === NS || Ro === t0) && (Ro = Ed), Su !== null && (Il(B1) || Il(Md)) && ov(Su, cl); } function MT(u) { - Ro !== bd && (Ro = e0), n0 === null ? n0 = [u] : n0.push(u); + Ro !== Ed && (Ro = t0), r0 === null ? r0 = [u] : r0.push(u); } function aE() { - return Ro === hm; + return Ro === vm; } function yx(u, f) { - var M = di; - di |= Zc; - var A = G_(); - if (xu !== u || ul !== f) { + var M = ci; + ci |= Jc; + var A = qS(); + if (Su !== u || cl !== f) { if (ns) { var z = u.memoizedUpdaters; - z.size > 0 && (l0(u, ul), z.clear()), fu(u, f); + z.size > 0 && (u0(u, cl), z.clear()), hu(u, f); } - jv(u, f); + qv(u, f); } - Yr(f); + Gr(f); do try { TT(); break; - } catch (j) { - V_(u, j); + } catch (W) { + XS(u, W); } while (!0); - if (x(), di = M, rE(A), js !== null) + if (x(), ci = M, rE(A), Ys !== null) throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."); - return fi(), xu = null, ul = an, Ro; + return ui(), Su = null, cl = sn, Ro; } function TT() { - for (; js !== null; ) - sE(js); - } - function uR(u, f) { - var M = di; - di |= Zc; - var A = G_(); - if (xu !== u || ul !== f) { + for (; Ys !== null; ) + sE(Ys); + } + function cR(u, f) { + var M = ci; + ci |= Jc; + var A = qS(); + if (Su !== u || cl !== f) { if (ns) { var z = u.memoizedUpdaters; - z.size > 0 && (l0(u, ul), z.clear()), fu(u, f); + z.size > 0 && (u0(u, cl), z.clear()), hu(u, f); } - r0(), jv(u, f); + i0(), qv(u, f); } - Yr(f); + Gr(f); do try { CT(); break; - } catch (j) { - V_(u, j); + } catch (W) { + XS(u, W); } while (!0); - return x(), rE(A), di = M, js !== null ? (fr(), hm) : (fi(), xu = null, ul = an, Ro); + return x(), rE(A), ci = M, Ys !== null ? (fr(), vm) : (ui(), Su = null, cl = sn, Ro); } function CT() { - for (; js !== null && !$s(); ) - sE(js); + for (; Ys !== null && !eo(); ) + sE(Ys); } function sE(u) { var f = u.alternate; - wi(u); + bi(u); var M; - (u.mode & Br) !== Mr ? (im(u), M = _x(f, u, eh), Fv(u, !0)) : M = _x(f, u, eh), Es(), u.memoizedProps = u.pendingProps, M === null ? RT(u) : js = M, D_.current = null; + (u.mode & Br) !== Mr ? (om(u), M = Sx(f, u, th), Bv(u, !0)) : M = Sx(f, u, th), Ms(), u.memoizedProps = u.pendingProps, M === null ? RT(u) : Ys = M, zS.current = null; } function RT(u) { var f = u; do { var M = f.alternate, A = f.return; - if ((f.flags & Oe) === Ne) { - wi(f); + if ((f.flags & Le) === Pe) { + bi(f); var z = void 0; - if ((f.mode & Br) === Mr ? z = y1(M, f, eh) : (im(f), z = y1(M, f, eh), Fv(f, !1)), Es(), z !== null) { - js = z; + if ((f.mode & Br) === Mr ? z = y1(M, f, th) : (om(f), z = y1(M, f, th), Bv(f, !1)), Ms(), z !== null) { + Ys = z; return; } } else { - var j = Fw(M, f); - if (j !== null) { - j.flags &= me, js = j; + var W = Fb(M, f); + if (W !== null) { + W.flags &= de, Ys = W; return; } if ((f.mode & Br) !== Mr) { - Fv(f, !1); - for (var te = f.actualDuration, se = f.child; se !== null; ) - te += se.actualDuration, se = se.sibling; - f.actualDuration = te; + Bv(f, !1); + for (var ee = f.actualDuration, ae = f.child; ae !== null; ) + ee += ae.actualDuration, ae = ae.sibling; + f.actualDuration = ee; } if (A !== null) - A.flags |= Oe, A.subtreeFlags = Ne, A.deletions = null; + A.flags |= Le, A.subtreeFlags = Pe, A.deletions = null; else { - Ro = Vv, js = null; + Ro = jv, Ys = null; return; } } - var Se = f.sibling; - if (Se !== null) { - js = Se; + var _e = f.sibling; + if (_e !== null) { + Ys = _e; return; } - f = A, js = f; + f = A, Ys = f; } while (f !== null); - Ro === hm && (Ro = xT); + Ro === vm && (Ro = xT); } - function qg(u, f) { - var M = rl(), A = so.transition; + function Jg(u, f) { + var M = il(), A = oo.transition; try { - so.transition = null, zs(Us), oE(u, f, M); + oo.transition = null, Ns(zs), oE(u, f, M); } finally { - so.transition = A, zs(M); + oo.transition = A, Ns(M); } return null; } function oE(u, f, M) { do - av(); - while (Gv !== null); - if (fR(), (di & (Zc | Ws)) !== Kl) + lv(); + while (Yv !== null); + if (dR(), (ci & (Jc | js)) !== eu) throw new Error("Should not already be working."); var A = u.finishedWork, z = u.finishedLanes; - if (ws(z), A === null) - return Xd(), null; - if (z === an && m("root.finishedLanes should not be empty during a commit. This is a bug in React."), u.finishedWork = null, u.finishedLanes = an, A === u.current) + if (Es(z), A === null) + return qd(), null; + if (z === sn && g("root.finishedLanes should not be empty during a commit. This is a bug in React."), u.finishedWork = null, u.finishedLanes = sn, A === u.current) throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."); - u.callbackNode = null, u.callbackPriority = Ir; - var j = zr(A.lanes, A.childLanes); - Ou(u, j), u === xu && (xu = null, js = null, ul = an), ((A.subtreeFlags & Xs) !== Ne || (A.flags & Xs) !== Ne) && (i0 || (i0 = !0, wx(Qi, function() { - return av(), null; + u.callbackNode = null, u.callbackPriority = kr; + var W = Ur(A.lanes, A.childLanes); + zu(u, W), u === Su && (Su = null, Ys = null, cl = sn), ((A.subtreeFlags & qs) !== Pe || (A.flags & qs) !== Pe) && (a0 || (a0 = !0, bx(Qi, function() { + return lv(), null; }))); - var te = (A.subtreeFlags & (br | Yi | La | Xs)) !== Ne, se = (A.flags & (br | Yi | La | Xs)) !== Ne; - if (te || se) { - var Se = so.transition; - so.transition = null; - var Pe = rl(); - zs(Us); - var Ge = di; - di |= Ws, D_.current = null, tn(u, A), h1(), lT(u, A, z), vo(u.containerInfo), u.current = A, Wl(z), Bg(A, u, z), Eh(), Yd(), di = Ge, zs(Pe), so.transition = Se; + var ee = (A.subtreeFlags & (wr | Yi | La | qs)) !== Pe, ae = (A.flags & (wr | Yi | La | qs)) !== Pe; + if (ee || ae) { + var _e = oo.transition; + oo.transition = null; + var Ue = il(); + Ns(zs); + var We = ci; + ci |= js, zS.current = null, nn(u, A), h1(), lT(u, A, z), vo(u.containerInfo), u.current = A, Yl(z), Gg(A, u, z), Mh(), Xd(), ci = We, Ns(Ue), oo.transition = _e; } else u.current = A, h1(); - var yt = i0; - if (i0 && (i0 = !1, Gv = u, nv = z), j = u.pendingLanes, j === an && (Yg = null), yt || PT(u.current, !1), Kr(A.stateNode, M), ns && u.memoizedUpdaters.clear(), Qw(), $c(u, da()), f !== null) - for (var It = u.onRecoverableError, jt = 0; jt < f.length; jt++) { - var dn = f[jt]; - It(dn); + var St = a0; + if (a0 && (a0 = !1, Yv = u, av = z), W = u.pendingLanes, W === sn && (Qg = null), St || PT(u.current, !1), Qr(A.stateNode, M), ns && u.memoizedUpdaters.clear(), Qb(), ef(u, da()), f !== null) + for (var It = u.onRecoverableError, Yt = 0; Yt < f.length; Yt++) { + var pn = f[Yt]; + It(pn); } if (V1) { V1 = !1; var Sn = G1; throw G1 = null, Sn; } - return Vr(nv, Hr) && u.tag !== Mc && av(), j = u.pendingLanes, Vr(j, Hr) ? (kf(), u === eE ? s0++ : (s0 = 0, eE = u)) : s0 = 0, Yo(), Xd(), null; + return Vr(av, Hr) && u.tag !== Tc && lv(), W = u.pendingLanes, Vr(W, Hr) ? (Bf(), u === eE ? o0++ : (o0 = 0, eE = u)) : o0 = 0, Yo(), qd(), null; } - function av() { - if (Gv !== null) { - var u = Bl(nv), f = Hp(Il, u), M = so.transition, A = rl(); + function lv() { + if (Yv !== null) { + var u = Vl(av), f = Wp(Hl, u), M = oo.transition, A = il(); try { - return so.transition = null, zs(f), lE(); + return oo.transition = null, Ns(f), lE(); } finally { - zs(A), so.transition = M; + Ns(A), oo.transition = M; } } return !1; } - function cR(u) { - El.push(u), i0 || (i0 = !0, wx(Qi, function() { - return av(), null; + function fR(u) { + Ml.push(u), a0 || (a0 = !0, bx(Qi, function() { + return lv(), null; })); } function lE() { - if (Gv === null) + if (Yv === null) return !1; - var u = Gv, f = nv; - if (Gv = null, nv = an, (di & (Zc | Ws)) !== Kl) + var u = Yv, f = av; + if (Yv = null, av = sn, (ci & (Jc | js)) !== eu) throw new Error("Cannot flush passive effects while already rendering."); fc(f); - var M = di; - di |= Ws, E_(u.current), dT(u, u.current); + var M = ci; + ci |= js, AS(u.current), dT(u, u.current); { - var A = El; - El = []; + var A = Ml; + Ml = []; for (var z = 0; z < A.length; z++) { - var j = A[z]; - gi(u, j); + var W = A[z]; + mi(u, W); } } - hr(), PT(u.current, !0), di = M, Yo(), U_ = Gv === null ? 0 : U_ + 1, Ra(u); + hr(), PT(u.current, !0), ci = M, Yo(), IS = Yv === null ? 0 : IS + 1, Ra(u); { - var te = u.current.stateNode; - te.effectDuration = 0, te.passiveEffectDuration = 0; + var ee = u.current.stateNode; + ee.effectDuration = 0, ee.passiveEffectDuration = 0; } return !0; } - function j_(u) { - return Yg !== null && Yg.has(u); + function ZS(u) { + return Qg !== null && Qg.has(u); } function uE(u) { - Yg === null ? Yg = /* @__PURE__ */ new Set([u]) : Yg.add(u); + Qg === null ? Qg = /* @__PURE__ */ new Set([u]) : Qg.add(u); } function cE(u) { V1 || (V1 = !0, G1 = u); } var fE = cE; function dE(u, f, M) { - var A = Ny(M, f), z = Fy(u, A, Hr); + var A = Fy(M, f), z = ky(u, A, Hr); Ar(u, z); - var j = yc(), te = o0(u, Hr); - te !== null && (wo(te, Hr, j), $c(te, j)); + var W = yc(), ee = l0(u, Hr); + ee !== null && (bo(ee, Hr, W), ef(ee, W)); } - function $l(u, f, M) { - if (u.tag === ie) { + function tu(u, f, M) { + if (u.tag === se) { dE(u, u, M); return; } var A = null; for (A = f; A !== null; ) { - if (A.tag === ie) { + if (A.tag === se) { dE(A, u, M); return; - } else if (A.tag === W) { - var z = A.type, j = A.stateNode; - if (typeof z.getDerivedStateFromError == "function" || typeof j.componentDidCatch == "function" && !j_(j)) { - var te = Ny(M, u), se = Km(A, te, Hr); - Ar(A, se); - var Se = yc(), Pe = o0(A, Hr); - Pe !== null && (wo(Pe, Hr, Se), $c(Pe, Se)); + } else if (A.tag === Y) { + var z = A.type, W = A.stateNode; + if (typeof z.getDerivedStateFromError == "function" || typeof W.componentDidCatch == "function" && !ZS(W)) { + var ee = Fy(M, u), ae = tv(A, ee, Hr); + Ar(A, ae); + var _e = yc(), Ue = l0(A, Hr); + Ue !== null && (bo(Ue, Hr, _e), ef(Ue, _e)); return; } } A = A.return; } - m(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer. + g(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer. Error message: %s`, M); } - function Y_(u, f, M) { + function JS(u, f, M) { var A = u.pingCache; A !== null && A.delete(f); var z = yc(); - wh(u, M), Z1(u), xu === u && uc(ul, M) && (Ro === bd || Ro === L_ && _f(ul) && da() - jg < P_ ? jv(u, an) : mx = zr(mx, M)), $c(u, z); + Eh(u, M), Z1(u), Su === u && uc(cl, M) && (Ro === Ed || Ro === NS && bf(cl) && da() - qg < FS ? qv(u, sn) : mx = Ur(mx, M)), ef(u, z); } function q1(u, f) { - f === Ir && (f = _T(u)); - var M = yc(), A = o0(u, f); - A !== null && (wo(A, f, M), $c(A, M)); + f === kr && (f = ST(u)); + var M = yc(), A = l0(u, f); + A !== null && (bo(A, f, M), ef(A, M)); } function AT(u) { - var f = u.memoizedState, M = Ir; + var f = u.memoizedState, M = kr; f !== null && (M = f.retryLane), q1(u, M); } function DT(u, f) { - var M = Ir, A; + var M = kr, A; switch (u.tag) { - case ce: + case he: A = u.stateNode; var z = u.memoizedState; z !== null && (M = z.retryLane); break; - case Ue: + case Ne: A = u.stateNode; break; default: @@ -32318,89 +32318,89 @@ Error message: A !== null && A.delete(f), q1(u, M); } function xx(u) { - return u < 120 ? 120 : u < 480 ? 480 : u < 1080 ? 1080 : u < 1920 ? 1920 : u < 3e3 ? 3e3 : u < 4320 ? 4320 : oR(u / 1960) * 1960; + return u < 120 ? 120 : u < 480 ? 480 : u < 1080 ? 1080 : u < 1920 ? 1920 : u < 3e3 ? 3e3 : u < 4320 ? 4320 : lR(u / 1960) * 1960; } function LT() { - if (s0 > a0) - throw s0 = 0, eE = null, new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); - U_ > ST && (U_ = 0, m("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")); + if (o0 > s0) + throw o0 = 0, eE = null, new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); + IS > _T && (IS = 0, g("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")); } - function fR() { - Xl.flushLegacyContextWarning(), Xl.flushPendingUnsafeLifecycleWarnings(); + function dR() { + Ql.flushLegacyContextWarning(), Ql.flushPendingUnsafeLifecycleWarnings(); } function PT(u, f) { - wi(u), Qg(u, Zn, pT), f && Qg(u, nr, jw), Qg(u, Zn, iR), f && Qg(u, nr, Jy), Es(); + bi(u), Kg(u, Jn, pT), f && Kg(u, rr, jb), Kg(u, Jn, aR), f && Kg(u, rr, Ky), Ms(); } - function Qg(u, f, M) { + function Kg(u, f, M) { for (var A = u, z = null; A !== null; ) { - var j = A.subtreeFlags & f; - A !== z && A.child !== null && j !== Ne ? A = A.child : ((A.flags & f) !== Ne && M(A), A.sibling !== null ? A = A.sibling : A = z = A.return); + var W = A.subtreeFlags & f; + A !== z && A.child !== null && W !== Pe ? A = A.child : ((A.flags & f) !== Pe && M(A), A.sibling !== null ? A = A.sibling : A = z = A.return); } } - var pm = null; - function Sx(u) { + var gm = null; + function _x(u) { { - if ((di & Zc) !== Kl || !(u.mode & $i)) + if ((ci & Jc) !== eu || !(u.mode & $i)) return; var f = u.tag; - if (f !== ne && f !== ie && f !== W && f !== $ && f !== pe && f !== ye && f !== we) + if (f !== re && f !== se && f !== Y && f !== te && f !== ve && f !== ye && f !== Ee) return; - var M = Tt(u) || "ReactComponent"; - if (pm !== null) { - if (pm.has(M)) + var M = wt(u) || "ReactComponent"; + if (gm !== null) { + if (gm.has(M)) return; - pm.add(M); + gm.add(M); } else - pm = /* @__PURE__ */ new Set([M]); - var A = eo; + gm = /* @__PURE__ */ new Set([M]); + var A = to; try { - wi(u), m("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead."); + bi(u), g("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead."); } finally { - A ? wi(u) : Es(); + A ? bi(u) : Ms(); } } } - var _x; + var Sx; { - var X_ = null; - _x = function(u, f, M) { - var A = d0(X_, f); + var KS = null; + Sx = function(u, f, M) { + var A = h0(KS, f); try { - return m_(u, f, M); - } catch (j) { - if (j !== null && typeof j == "object" && typeof j.then == "function") - throw j; - if (x(), un(), O1(u, f), d0(f, A), f.mode & Br && im(f), y_(null, m_, null, u, f, M), Bw()) { - var z = x_(); - typeof z == "object" && z !== null && z._suppressLogging && typeof j == "object" && j !== null && !j._suppressLogging && (j._suppressLogging = !0); + return _S(u, f, M); + } catch (W) { + if (W !== null && typeof W == "object" && typeof W.then == "function") + throw W; + if (x(), fn(), O1(u, f), h0(f, A), f.mode & Br && om(f), bS(null, _S, null, u, f, M), Bb()) { + var z = ES(); + typeof z == "object" && z !== null && z._suppressLogging && typeof W == "object" && W !== null && !W._suppressLogging && (W._suppressLogging = !0); } - throw j; + throw W; } }; } var hE = !1, Q1; Q1 = /* @__PURE__ */ new Set(); - function bx(u) { - if (Yl && !d1()) + function wx(u) { + if (ql && !d1()) switch (u.tag) { - case $: - case pe: - case we: { - var f = js && Tt(js) || "Unknown", M = f; + case te: + case ve: + case Ee: { + var f = Ys && wt(Ys) || "Unknown", M = f; if (!Q1.has(M)) { Q1.add(M); - var A = Tt(u) || "Unknown"; - m("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render", A, f, f); + var A = wt(u) || "Unknown"; + g("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render", A, f, f); } break; } - case W: { - hE || (m("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."), hE = !0); + case Y: { + hE || (g("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."), hE = !0); break; } } } - function l0(u, f) { + function u0(u, f) { if (ns) { var M = u.memoizedUpdaters; M.forEach(function(A) { @@ -32408,31 +32408,31 @@ Error message: }); } } - var q_ = {}; - function wx(u, f) { + var $S = {}; + function bx(u, f) { { - var M = dm.current; - return M !== null ? (M.push(f), q_) : $h(u, f); + var M = mm.current; + return M !== null ? (M.push(f), $S) : np(u, f); } } function OT(u) { - if (u !== q_) - return bf(u); + if (u !== $S) + return Ef(u); } function pE() { - return dm.current !== null; + return mm.current !== null; } function UT(u) { { if (u.mode & $i) { if (!yT()) return; - } else if (!sR() || di !== Kl || u.tag !== $ && u.tag !== pe && u.tag !== we) + } else if (!oR() || ci !== eu || u.tag !== te && u.tag !== ve && u.tag !== Ee) return; - if (dm.current === null) { - var f = eo; + if (mm.current === null) { + var f = to; try { - wi(u), m(`An update to %s inside a test was not wrapped in act(...). + bi(u), g(`An update to %s inside a test was not wrapped in act(...). When testing, code that causes React state updates should be wrapped into act(...): @@ -32441,15 +32441,15 @@ act(() => { }); /* assert on the output */ -This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`, Tt(u)); +This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`, wt(u)); } finally { - f ? wi(u) : Es(); + f ? bi(u) : Ms(); } } } } function Z1(u) { - u.tag !== Mc && yT() && dm.current === null && m(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...). + u.tag !== Tc && yT() && mm.current === null && g(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...). When testing, code that resolves suspended data should be wrapped into act(...): @@ -32460,31 +32460,31 @@ act(() => { This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`); } - var Tl = null, Zg = null, Ex = function(u) { - Tl = u; + var Cl = null, $g = null, Ex = function(u) { + Cl = u; }; - function Jg(u) { + function ey(u) { { - if (Tl === null) + if (Cl === null) return u; - var f = Tl(u); + var f = Cl(u); return f === void 0 ? u : f.current; } } function mE(u) { - return Jg(u); + return ey(u); } - function sv(u) { + function uv(u) { { - if (Tl === null) + if (Cl === null) return u; - var f = Tl(u); + var f = Cl(u); if (f === void 0) { if (u != null && typeof u.render == "function") { - var M = Jg(u.render); + var M = ey(u.render); if (u.render !== M) { var A = { - $$typeof: Vt, + $$typeof: Nt, render: M }; return u.displayName !== void 0 && (A.displayName = u.displayName), A; @@ -32495,35 +32495,35 @@ This ensures that you're testing the behavior the user would see in the browser. return f.current; } } - function u0(u, f) { + function c0(u, f) { { - if (Tl === null) + if (Cl === null) return !1; - var M = u.elementType, A = f.type, z = !1, j = typeof A == "object" && A !== null ? A.$$typeof : null; + var M = u.elementType, A = f.type, z = !1, W = typeof A == "object" && A !== null ? A.$$typeof : null; switch (u.tag) { - case W: { + case Y: { typeof A == "function" && (z = !0); break; } - case $: { - (typeof A == "function" || j === oe) && (z = !0); + case te: { + (typeof A == "function" || W === oe) && (z = !0); break; } - case pe: { - (j === Vt || j === oe) && (z = !0); + case ve: { + (W === Nt || W === oe) && (z = !0); break; } case ye: - case we: { - (j === Me || j === oe) && (z = !0); + case Ee: { + (W === we || W === oe) && (z = !0); break; } default: return !1; } if (z) { - var te = Tl(M); - if (te !== void 0 && te === Tl(A)) + var ee = Cl(M); + if (ee !== void 0 && ee === Cl(A)) return !0; } return !1; @@ -32531,91 +32531,91 @@ This ensures that you're testing the behavior the user would see in the browser. } function zT(u) { { - if (Tl === null || typeof WeakSet != "function") + if (Cl === null || typeof WeakSet != "function") return; - Zg === null && (Zg = /* @__PURE__ */ new WeakSet()), Zg.add(u); + $g === null && ($g = /* @__PURE__ */ new WeakSet()), $g.add(u); } } - var Q_ = function(u, f) { + var ew = function(u, f) { { - if (Tl === null) + if (Cl === null) return; var M = f.staleFamilies, A = f.updatedFamilies; - av(), j1(function() { - eu(u.current, A, M); + lv(), j1(function() { + nu(u.current, A, M); }); } - }, th = function(u, f) { + }, nh = function(u, f) { { - if (u.context !== $n) + if (u.context !== er) return; - av(), j1(function() { - J_(f, u, null, null); + lv(), j1(function() { + nw(f, u, null, null); }); } }; - function eu(u, f, M) { + function nu(u, f, M) { { - var A = u.alternate, z = u.child, j = u.sibling, te = u.tag, se = u.type, Se = null; - switch (te) { - case $: - case we: - case W: - Se = se; + var A = u.alternate, z = u.child, W = u.sibling, ee = u.tag, ae = u.type, _e = null; + switch (ee) { + case te: + case Ee: + case Y: + _e = ae; break; - case pe: - Se = se.render; + case ve: + _e = ae.render; break; } - if (Tl === null) + if (Cl === null) throw new Error("Expected resolveFamily to be set during hot reload."); - var Pe = !1, Ge = !1; - if (Se !== null) { - var yt = Tl(Se); - yt !== void 0 && (M.has(yt) ? Ge = !0 : f.has(yt) && (te === W ? Ge = !0 : Pe = !0)); + var Ue = !1, We = !1; + if (_e !== null) { + var St = Cl(_e); + St !== void 0 && (M.has(St) ? We = !0 : f.has(St) && (ee === Y ? We = !0 : Ue = !0)); } - Zg !== null && (Zg.has(u) || A !== null && Zg.has(A)) && (Ge = !0), Ge && (u._debugNeedsRemount = !0), (Ge || Pe) && Ml(u, Hr, Bi), z !== null && !Ge && eu(z, f, M), j !== null && eu(j, f, M); + $g !== null && ($g.has(u) || A !== null && $g.has(A)) && (We = !0), We && (u._debugNeedsRemount = !0), (We || Ue) && Tl(u, Hr, Vi), z !== null && !We && nu(z, f, M), W !== null && nu(W, f, M); } } - var ov = function(u, f) { + var cv = function(u, f) { { var M = /* @__PURE__ */ new Set(), A = new Set(f.map(function(z) { return z.current; })); - return tu(u.current, A, M), M; + return ru(u.current, A, M), M; } }; - function tu(u, f, M) { + function ru(u, f, M) { { - var A = u.child, z = u.sibling, j = u.tag, te = u.type, se = null; - switch (j) { - case $: - case we: - case W: - se = te; + var A = u.child, z = u.sibling, W = u.tag, ee = u.type, ae = null; + switch (W) { + case te: + case Ee: + case Y: + ae = ee; break; - case pe: - se = te.render; + case ve: + ae = ee.render; break; } - var Se = !1; - se !== null && f.has(se) && (Se = !0), Se ? ef(u, M) : A !== null && tu(A, f, M), z !== null && tu(z, f, M); + var _e = !1; + ae !== null && f.has(ae) && (_e = !0), _e ? tf(u, M) : A !== null && ru(A, f, M), z !== null && ru(z, f, M); } } - function ef(u, f) { + function tf(u, f) { { var M = vE(u, f); if (M) return; for (var A = u; ; ) { switch (A.tag) { - case le: + case ue: f.add(A.stateNode); return; - case fe: + case ce: f.add(A.stateNode.containerInfo); return; - case ie: + case se: f.add(A.stateNode.containerInfo); return; } @@ -32627,7 +32627,7 @@ This ensures that you're testing the behavior the user would see in the browser. } function vE(u, f) { for (var M = u, A = !1; ; ) { - if (M.tag === le) + if (M.tag === ue) A = !0, f.add(M.stateNode); else if (M.child !== null) { M.child.return = M, M = M.child; @@ -32653,11 +32653,11 @@ This ensures that you're testing the behavior the user would see in the browser. J1 = !0; } } - function jn(u, f, M, A) { - this.tag = u, this.key = M, this.elementType = null, this.type = null, this.stateNode = null, this.return = null, this.child = null, this.sibling = null, this.index = 0, this.ref = null, this.pendingProps = f, this.memoizedProps = null, this.updateQueue = null, this.memoizedState = null, this.dependencies = null, this.mode = A, this.flags = Ne, this.subtreeFlags = Ne, this.deletions = null, this.lanes = an, this.childLanes = an, this.alternate = null, this.actualDuration = Number.NaN, this.actualStartTime = Number.NaN, this.selfBaseDuration = Number.NaN, this.treeBaseDuration = Number.NaN, this.actualDuration = 0, this.actualStartTime = -1, this.selfBaseDuration = 0, this.treeBaseDuration = 0, this._debugSource = null, this._debugOwner = null, this._debugNeedsRemount = !1, this._debugHookTypes = null, !J1 && typeof Object.preventExtensions == "function" && Object.preventExtensions(this); + function Yn(u, f, M, A) { + this.tag = u, this.key = M, this.elementType = null, this.type = null, this.stateNode = null, this.return = null, this.child = null, this.sibling = null, this.index = 0, this.ref = null, this.pendingProps = f, this.memoizedProps = null, this.updateQueue = null, this.memoizedState = null, this.dependencies = null, this.mode = A, this.flags = Pe, this.subtreeFlags = Pe, this.deletions = null, this.lanes = sn, this.childLanes = sn, this.alternate = null, this.actualDuration = Number.NaN, this.actualStartTime = Number.NaN, this.selfBaseDuration = Number.NaN, this.treeBaseDuration = Number.NaN, this.actualDuration = 0, this.actualStartTime = -1, this.selfBaseDuration = 0, this.treeBaseDuration = 0, this._debugSource = null, this._debugOwner = null, this._debugNeedsRemount = !1, this._debugHookTypes = null, !J1 && typeof Object.preventExtensions == "function" && Object.preventExtensions(this); } - var tf = function(u, f, M, A) { - return new jn(u, f, M, A); + var nf = function(u, f, M, A) { + return new Yn(u, f, M, A); }; function K1(u) { var f = u.prototype; @@ -32666,47 +32666,47 @@ This ensures that you're testing the behavior the user would see in the browser. function Mx(u) { return typeof u == "function" && !K1(u) && u.defaultProps === void 0; } - function c0(u) { + function f0(u) { if (typeof u == "function") - return K1(u) ? W : $; + return K1(u) ? Y : te; if (u != null) { var f = u.$$typeof; - if (f === Vt) - return pe; - if (f === Me) + if (f === Nt) + return ve; + if (f === we) return ye; } - return ne; + return re; } - function oa(u, f) { + function la(u, f) { var M = u.alternate; - M === null ? (M = tf(u.tag, f, u.key, u.mode), M.elementType = u.elementType, M.type = u.type, M.stateNode = u.stateNode, M._debugSource = u._debugSource, M._debugOwner = u._debugOwner, M._debugHookTypes = u._debugHookTypes, M.alternate = u, u.alternate = M) : (M.pendingProps = f, M.type = u.type, M.flags = Ne, M.subtreeFlags = Ne, M.deletions = null, M.actualDuration = 0, M.actualStartTime = -1), M.flags = u.flags & $t, M.childLanes = u.childLanes, M.lanes = u.lanes, M.child = u.child, M.memoizedProps = u.memoizedProps, M.memoizedState = u.memoizedState, M.updateQueue = u.updateQueue; + M === null ? (M = nf(u.tag, f, u.key, u.mode), M.elementType = u.elementType, M.type = u.type, M.stateNode = u.stateNode, M._debugSource = u._debugSource, M._debugOwner = u._debugOwner, M._debugHookTypes = u._debugHookTypes, M.alternate = u, u.alternate = M) : (M.pendingProps = f, M.type = u.type, M.flags = Pe, M.subtreeFlags = Pe, M.deletions = null, M.actualDuration = 0, M.actualStartTime = -1), M.flags = u.flags & en, M.childLanes = u.childLanes, M.lanes = u.lanes, M.child = u.child, M.memoizedProps = u.memoizedProps, M.memoizedState = u.memoizedState, M.updateQueue = u.updateQueue; var A = u.dependencies; switch (M.dependencies = A === null ? null : { lanes: A.lanes, firstContext: A.firstContext }, M.sibling = u.sibling, M.index = u.index, M.ref = u.ref, M.selfBaseDuration = u.selfBaseDuration, M.treeBaseDuration = u.treeBaseDuration, M._debugNeedsRemount = u._debugNeedsRemount, M.tag) { - case ne: - case $: - case we: - M.type = Jg(u.type); + case re: + case te: + case Ee: + M.type = ey(u.type); break; - case W: + case Y: M.type = mE(u.type); break; - case pe: - M.type = sv(u.type); + case ve: + M.type = uv(u.type); break; } return M; } - function Wu(u, f) { - u.flags &= $t | Pt; + function Yu(u, f) { + u.flags &= en | At; var M = u.alternate; if (M === null) - u.childLanes = an, u.lanes = f, u.child = null, u.subtreeFlags = Ne, u.memoizedProps = null, u.memoizedState = null, u.updateQueue = null, u.dependencies = null, u.stateNode = null, u.selfBaseDuration = 0, u.treeBaseDuration = 0; + u.childLanes = sn, u.lanes = f, u.child = null, u.subtreeFlags = Pe, u.memoizedProps = null, u.memoizedState = null, u.updateQueue = null, u.dependencies = null, u.stateNode = null, u.selfBaseDuration = 0, u.treeBaseDuration = 0; else { - u.childLanes = M.childLanes, u.lanes = M.lanes, u.child = M.child, u.subtreeFlags = Ne, u.deletions = null, u.memoizedProps = M.memoizedProps, u.memoizedState = M.memoizedState, u.updateQueue = M.updateQueue, u.type = M.type; + u.childLanes = M.childLanes, u.lanes = M.lanes, u.child = M.child, u.subtreeFlags = Pe, u.deletions = null, u.memoizedProps = M.memoizedProps, u.memoizedState = M.memoizedState, u.updateQueue = M.updateQueue, u.type = M.type; var A = M.dependencies; u.dependencies = A === null ? null : { lanes: A.lanes, @@ -32715,145 +32715,145 @@ This ensures that you're testing the behavior the user would see in the browser. } return u; } - function ju(u, f, M) { + function Xu(u, f, M) { var A; - return u === Tc ? (A = $i, f === !0 && (A |= Fa, A |= So)) : A = Mr, ns && (A |= Br), tf(ie, null, null, A); + return u === Cc ? (A = $i, f === !0 && (A |= Fa, A |= _o)) : A = Mr, ns && (A |= Br), nf(se, null, null, A); } - function Tx(u, f, M, A, z, j) { - var te = ne, se = u; + function Tx(u, f, M, A, z, W) { + var ee = re, ae = u; if (typeof u == "function") - K1(u) ? (te = W, se = mE(se)) : se = Jg(se); + K1(u) ? (ee = Y, ae = mE(ae)) : ae = ey(ae); else if (typeof u == "string") - te = le; + ee = ue; else { e: switch (u) { - case mt: - return Mp(M.children, z, j, f); - case vt: - te = Fe, z |= Fa, (z & $i) !== Mr && (z |= So); + case dt: + return Rp(M.children, z, W, f); + case ht: + ee = De, z |= Fa, (z & $i) !== Mr && (z |= _o); break; - case bt: - return dR(M, z, j, f); - case Jt: - return hR(M, z, j, f); - case Mt: - return en(M, z, j, f); - case zt: - return zh(M, z, j, f); - case Nt: - case je: - case Ut: - case tt: - case lt: + case xt: + return hR(M, z, W, f); + case Zt: + return pR(M, z, W, f); + case Rt: + return tn(M, z, W, f); + case Ft: + return Nh(M, z, W, f); + case Ot: + case Qe: + case Wt: + case it: + case ut: default: { if (typeof u == "object" && u !== null) switch (u.$$typeof) { - case Qt: - te = Be; + case Vt: + ee = He; break e; - case ft: - te = Ce; + case yt: + ee = Re; break e; - case Vt: - te = pe, se = sv(se); + case Nt: + ee = ve, ae = uv(ae); break e; - case Me: - te = ye; + case we: + ee = ye; break e; case oe: - te = Xe, se = null; + ee = Ve, ae = null; break e; } - var Se = ""; + var _e = ""; { - (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (Se += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); - var Pe = A ? Tt(A) : null; - Pe && (Se += ` + (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (_e += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); + var Ue = A ? wt(A) : null; + Ue && (_e += ` -Check the render method of \`` + Pe + "`."); +Check the render method of \`` + Ue + "`."); } - throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) " + ("but got: " + (u == null ? u : typeof u) + "." + Se)); + throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) " + ("but got: " + (u == null ? u : typeof u) + "." + _e)); } } } - var Ge = tf(te, M, f, z); - return Ge.elementType = u, Ge.type = se, Ge.lanes = j, Ge._debugOwner = A, Ge; + var We = nf(ee, M, f, z); + return We.elementType = u, We.type = ae, We.lanes = W, We._debugOwner = A, We; } - function f0(u, f, M) { + function d0(u, f, M) { var A = null; A = u._owner; - var z = u.type, j = u.key, te = u.props, se = Tx(z, j, te, A, f, M); - return se._debugSource = u._source, se._debugOwner = u._owner, se; + var z = u.type, W = u.key, ee = u.props, ae = Tx(z, W, ee, A, f, M); + return ae._debugSource = u._source, ae._debugOwner = u._owner, ae; } - function Mp(u, f, M, A) { - var z = tf(he, u, A, f); + function Rp(u, f, M, A) { + var z = nf(me, u, A, f); return z.lanes = M, z; } - function dR(u, f, M, A) { - typeof u.id != "string" && m('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.', typeof u.id); - var z = tf(de, u, A, f | Br); - return z.elementType = bt, z.lanes = M, z.stateNode = { + function hR(u, f, M, A) { + typeof u.id != "string" && g('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.', typeof u.id); + var z = nf(fe, u, A, f | Br); + return z.elementType = xt, z.lanes = M, z.stateNode = { effectDuration: 0, passiveEffectDuration: 0 }, z; } - function hR(u, f, M, A) { - var z = tf(ce, u, A, f); - return z.elementType = Jt, z.lanes = M, z; + function pR(u, f, M, A) { + var z = nf(he, u, A, f); + return z.elementType = Zt, z.lanes = M, z; } - function en(u, f, M, A) { - var z = tf(Ue, u, A, f); - return z.elementType = Mt, z.lanes = M, z; + function tn(u, f, M, A) { + var z = nf(Ne, u, A, f); + return z.elementType = Rt, z.lanes = M, z; } - function zh(u, f, M, A) { - var z = tf(rt, u, A, f); - z.elementType = zt, z.lanes = M; - var j = {}; - return z.stateNode = j, z; + function Nh(u, f, M, A) { + var z = nf(tt, u, A, f); + z.elementType = Ft, z.lanes = M; + var W = {}; + return z.stateNode = W, z; } - function lv(u, f, M) { - var A = tf(Ee, u, null, f); + function fv(u, f, M) { + var A = nf(Me, u, null, f); return A.lanes = M, A; } function gE() { - var u = tf(le, null, null, Mr); + var u = nf(ue, null, null, Mr); return u.elementType = "DELETED", u; } function Wa(u) { - var f = tf(st, null, null, Mr); + var f = nf(rt, null, null, Mr); return f.stateNode = u, f; } function Dn(u, f, M) { - var A = u.children !== null ? u.children : [], z = tf(fe, A, u.key, f); + var A = u.children !== null ? u.children : [], z = nf(ce, A, u.key, f); return z.lanes = M, z.stateNode = { containerInfo: u.containerInfo, pendingChildren: null, implementation: u.implementation }, z; } - function d0(u, f) { - return u === null && (u = tf(ne, null, null, Mr)), u.tag = f.tag, u.key = f.key, u.elementType = f.elementType, u.type = f.type, u.stateNode = f.stateNode, u.return = f.return, u.child = f.child, u.sibling = f.sibling, u.index = f.index, u.ref = f.ref, u.pendingProps = f.pendingProps, u.memoizedProps = f.memoizedProps, u.updateQueue = f.updateQueue, u.memoizedState = f.memoizedState, u.dependencies = f.dependencies, u.mode = f.mode, u.flags = f.flags, u.subtreeFlags = f.subtreeFlags, u.deletions = f.deletions, u.lanes = f.lanes, u.childLanes = f.childLanes, u.alternate = f.alternate, u.actualDuration = f.actualDuration, u.actualStartTime = f.actualStartTime, u.selfBaseDuration = f.selfBaseDuration, u.treeBaseDuration = f.treeBaseDuration, u._debugSource = f._debugSource, u._debugOwner = f._debugOwner, u._debugNeedsRemount = f._debugNeedsRemount, u._debugHookTypes = f._debugHookTypes, u; + function h0(u, f) { + return u === null && (u = nf(re, null, null, Mr)), u.tag = f.tag, u.key = f.key, u.elementType = f.elementType, u.type = f.type, u.stateNode = f.stateNode, u.return = f.return, u.child = f.child, u.sibling = f.sibling, u.index = f.index, u.ref = f.ref, u.pendingProps = f.pendingProps, u.memoizedProps = f.memoizedProps, u.updateQueue = f.updateQueue, u.memoizedState = f.memoizedState, u.dependencies = f.dependencies, u.mode = f.mode, u.flags = f.flags, u.subtreeFlags = f.subtreeFlags, u.deletions = f.deletions, u.lanes = f.lanes, u.childLanes = f.childLanes, u.alternate = f.alternate, u.actualDuration = f.actualDuration, u.actualStartTime = f.actualStartTime, u.selfBaseDuration = f.selfBaseDuration, u.treeBaseDuration = f.treeBaseDuration, u._debugSource = f._debugSource, u._debugOwner = f._debugOwner, u._debugNeedsRemount = f._debugNeedsRemount, u._debugHookTypes = f._debugHookTypes, u; } - function pR(u, f, M, A, z) { - this.tag = f, this.containerInfo = u, this.pendingChildren = null, this.current = null, this.pingCache = null, this.finishedWork = null, this.timeoutHandle = ri, this.context = null, this.pendingContext = null, this.callbackNode = null, this.callbackPriority = Ir, this.eventTimes = kl(an), this.expirationTimes = kl(Bi), this.pendingLanes = an, this.suspendedLanes = an, this.pingedLanes = an, this.expiredLanes = an, this.mutableReadLanes = an, this.finishedLanes = an, this.entangledLanes = an, this.entanglements = kl(an), this.identifierPrefix = A, this.onRecoverableError = z, cs && (this.mutableSourceEagerHydrationData = null), this.effectDuration = 0, this.passiveEffectDuration = 0; + function mR(u, f, M, A, z) { + this.tag = f, this.containerInfo = u, this.pendingChildren = null, this.current = null, this.pingCache = null, this.finishedWork = null, this.timeoutHandle = ei, this.context = null, this.pendingContext = null, this.callbackNode = null, this.callbackPriority = kr, this.eventTimes = Bl(sn), this.expirationTimes = Bl(Vi), this.pendingLanes = sn, this.suspendedLanes = sn, this.pingedLanes = sn, this.expiredLanes = sn, this.mutableReadLanes = sn, this.finishedLanes = sn, this.entangledLanes = sn, this.entanglements = Bl(sn), this.identifierPrefix = A, this.onRecoverableError = z, fs && (this.mutableSourceEagerHydrationData = null), this.effectDuration = 0, this.passiveEffectDuration = 0; { this.memoizedUpdaters = /* @__PURE__ */ new Set(); - for (var j = this.pendingUpdatersLaneMap = [], te = 0; te < nd; te++) - j.push(/* @__PURE__ */ new Set()); + for (var W = this.pendingUpdatersLaneMap = [], ee = 0; ee < id; ee++) + W.push(/* @__PURE__ */ new Set()); } switch (f) { - case Tc: + case Cc: this._debugRootType = M ? "hydrateRoot()" : "createRoot()"; break; - case Mc: + case Tc: this._debugRootType = M ? "hydrate()" : "render()"; break; } } - function nf(u, f, M, A, z, j, te, se, Se, Pe) { - var Ge = new pR(u, f, M, se, Se), yt = ju(f, j); - Ge.current = yt, yt.stateNode = Ge; + function rf(u, f, M, A, z, W, ee, ae, _e, Ue) { + var We = new mR(u, f, M, ae, _e), St = Xu(f, W); + We.current = St, St.stateNode = We; { var It = { element: A, @@ -32861,35 +32861,35 @@ Check the render method of \`` + Pe + "`."); cache: null, transitions: null }; - yt.memoizedState = It; + St.memoizedState = It; } - return Wn(yt), Ge; + return jn(St), We; } var yE = "18.0.0-fc46dba67-20220329"; function Cx(u, f, M) { var A = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null; - return vu(A), { - $$typeof: et, + return yu(A), { + $$typeof: qe, key: A == null ? null : "" + A, children: u, containerInfo: f, implementation: M }; } - var Kg, Z_; - Kg = !1, Z_ = {}; + var ty, tw; + ty = !1, tw = {}; function xE(u) { if (!u) - return $n; - var f = T(u), M = Bp(f); - if (f.tag === W) { + return er; + var f = T(u), M = Gp(f); + if (f.tag === Y) { var A = f.type; - if (pl(A)) - return ml(f, A, M); + if (ml(A)) + return vl(f, A, M); } return M; } - function uv(u) { + function dv(u) { var f = T(u); if (f === void 0) { if (typeof u.render == "function") @@ -32897,10 +32897,10 @@ Check the render method of \`` + Pe + "`."); var M = Object.keys(u).join(","); throw new Error("Argument appears to not be a ReactComponent. Keys: " + M); } - var A = us(f); + var A = cs(f); return A === null ? null : A.stateNode; } - function Tp(u, f) { + function Ap(u, f) { { var M = T(u); if (M === void 0) { @@ -32909,102 +32909,102 @@ Check the render method of \`` + Pe + "`."); var A = Object.keys(u).join(","); throw new Error("Argument appears to not be a ReactComponent. Keys: " + A); } - var z = us(M); + var z = cs(M); if (z === null) return null; if (z.mode & Fa) { - var j = Tt(M) || "Component"; - if (!Z_[j]) { - Z_[j] = !0; - var te = eo; + var W = wt(M) || "Component"; + if (!tw[W]) { + tw[W] = !0; + var ee = to; try { - wi(z), M.mode & Fa ? m("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node", f, f, j) : m("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node", f, f, j); + bi(z), M.mode & Fa ? g("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node", f, f, W) : g("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node", f, f, W); } finally { - te ? wi(te) : Es(); + ee ? bi(ee) : Ms(); } } } return z.stateNode; } } - function FT(u, f, M, A, z, j, te, se) { - var Se = !1, Pe = null; - return nf(u, f, Se, Pe, M, A, z, j, te); + function FT(u, f, M, A, z, W, ee, ae) { + var _e = !1, Ue = null; + return rf(u, f, _e, Ue, M, A, z, W, ee); } - function SE(u, f, M, A, z, j, te, se, Se, Pe) { - var Ge = !0, yt = nf(M, A, Ge, u, z, j, te, se, Se); - yt.context = xE(null); - var It = yt.current, jt = yc(), dn = Wv(It), Sn = Er(jt, dn); - return Sn.callback = f != null ? f : null, Ar(It, Sn), tE(yt, dn, jt), yt; + function _E(u, f, M, A, z, W, ee, ae, _e, Ue) { + var We = !0, St = rf(M, A, We, u, z, W, ee, ae, _e); + St.context = xE(null); + var It = St.current, Yt = yc(), pn = Xv(It), Sn = Er(Yt, pn); + return Sn.callback = f != null ? f : null, Ar(It, Sn), tE(St, pn, Yt), St; } - function J_(u, f, M, A) { - Sa(f, u); - var z = f.current, j = yc(), te = Wv(z); - Ns(te); - var se = xE(M); - f.context === null ? f.context = se : f.pendingContext = se, Yl && eo !== null && !Kg && (Kg = !0, m(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. + function nw(u, f, M, A) { + _a(f, u); + var z = f.current, W = yc(), ee = Xv(z); + Fs(ee); + var ae = xE(M); + f.context === null ? f.context = ae : f.pendingContext = ae, ql && to !== null && !ty && (ty = !0, g(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. -Check the render method of %s.`, Tt(eo) || "Unknown")); - var Se = Er(j, te); - Se.payload = { +Check the render method of %s.`, wt(to) || "Unknown")); + var _e = Er(W, ee); + _e.payload = { element: u - }, A = A === void 0 ? null : A, A !== null && (typeof A != "function" && m("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.", A), Se.callback = A), Ar(z, Se); - var Pe = Ml(z, te, j); - return Pe !== null && Va(Pe, z, te), te; + }, A = A === void 0 ? null : A, A !== null && (typeof A != "function" && g("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.", A), _e.callback = A), Ar(z, _e); + var Ue = Tl(z, ee, W); + return Ue !== null && Va(Ue, z, ee), ee; } - function _E(u) { + function SE(u) { var f = u.current; if (!f.child) return null; switch (f.child.tag) { - case le: + case ue: return Uo(f.child.stateNode); default: return f.child.stateNode; } } - function bE(u) { + function wE(u) { switch (u.tag) { - case ie: + case se: var f = u.stateNode; if (Di(f)) { var M = es(f); - B_(f, M); + jS(f, M); } break; - case ce: + case he: var A = yc(); j1(function() { - return Ml(u, Hr, A); + return Tl(u, Hr, A); }); var z = Hr; kT(u, z); break; } } - function mR(u, f) { + function vR(u, f) { var M = u.memoizedState; - M !== null && M.dehydrated !== null && (M.retryLane = pn(M.retryLane, f)); + M !== null && M.dehydrated !== null && (M.retryLane = vn(M.retryLane, f)); } function kT(u, f) { - mR(u, f); + vR(u, f); var M = u.alternate; - M && mR(M, f); + M && vR(M, f); } - function wE(u) { - if (u.tag === ce) { - var f = yc(), M = ge; - Ml(u, M, f), kT(u, M); + function bE(u) { + if (u.tag === he) { + var f = yc(), M = xe; + Tl(u, M, f), kT(u, M); } } - function K_(u) { - if (u.tag === ce) { - var f = yc(), M = Wv(u); - Ml(u, M, f), kT(u, M); + function rw(u) { + if (u.tag === he) { + var f = yc(), M = Xv(u); + Tl(u, M, f), kT(u, M); } } function IT(u) { - var f = pi(u); + var f = di(u); return f === null ? null : f.stateNode; } var EE = function(u) { @@ -33019,126 +33019,126 @@ Check the render method of %s.`, Tt(eo) || "Unknown")); function CE(u) { return TE(u); } - var $1 = null, $_ = null, eb = null, Rx = null, tb = null, eS = null, Ax = null, tS = null, nS = null; + var $1 = null, iw = null, aw = null, Rx = null, sw = null, e_ = null, Ax = null, t_ = null, n_ = null; { var Dx = function(u, f, M) { - var A = f[M], z = Ti(u) ? u.slice() : _({}, u); + var A = f[M], z = Ti(u) ? u.slice() : w({}, u); return M + 1 === f.length ? (Ti(z) ? z.splice(A, 1) : delete z[A], z) : (z[A] = Dx(u[A], f, M + 1), z); - }, nb = function(u, f) { + }, ow = function(u, f) { return Dx(u, f, 0); - }, rS = function(u, f, M, A) { - var z = f[A], j = Ti(u) ? u.slice() : _({}, u); + }, r_ = function(u, f, M, A) { + var z = f[A], W = Ti(u) ? u.slice() : w({}, u); if (A + 1 === f.length) { - var te = M[A]; - j[te] = j[z], Ti(j) ? j.splice(z, 1) : delete j[z]; + var ee = M[A]; + W[ee] = W[z], Ti(W) ? W.splice(z, 1) : delete W[z]; } else - j[z] = rS( + W[z] = r_( u[z], f, M, A + 1 ); - return j; - }, rb = function(u, f, M) { + return W; + }, lw = function(u, f, M) { if (f.length !== M.length) { - h("copyWithRename() expects paths of the same length"); + p("copyWithRename() expects paths of the same length"); return; } else for (var A = 0; A < M.length - 1; A++) if (f[A] !== M[A]) { - h("copyWithRename() expects paths to be the same except for the deepest key"); + p("copyWithRename() expects paths to be the same except for the deepest key"); return; } - return rS(u, f, M, 0); - }, iS = function(u, f, M, A) { + return r_(u, f, M, 0); + }, i_ = function(u, f, M, A) { if (M >= f.length) return A; - var z = f[M], j = Ti(u) ? u.slice() : _({}, u); - return j[z] = iS(u[z], f, M + 1, A), j; + var z = f[M], W = Ti(u) ? u.slice() : w({}, u); + return W[z] = i_(u[z], f, M + 1, A), W; }, RE = function(u, f, M) { - return iS(u, f, 0, M); - }, aS = function(u, f) { + return i_(u, f, 0, M); + }, a_ = function(u, f) { for (var M = u.memoizedState; M !== null && f > 0; ) M = M.next, f--; return M; }; $1 = function(u, f, M, A) { - var z = aS(u, f); + var z = a_(u, f); if (z !== null) { - var j = RE(z.memoizedState, M, A); - z.memoizedState = j, z.baseState = j, u.memoizedProps = _({}, u.memoizedProps), Ml(u, Hr, Bi); + var W = RE(z.memoizedState, M, A); + z.memoizedState = W, z.baseState = W, u.memoizedProps = w({}, u.memoizedProps), Tl(u, Hr, Vi); } - }, $_ = function(u, f, M) { - var A = aS(u, f); + }, iw = function(u, f, M) { + var A = a_(u, f); if (A !== null) { - var z = nb(A.memoizedState, M); - A.memoizedState = z, A.baseState = z, u.memoizedProps = _({}, u.memoizedProps), Ml(u, Hr, Bi); + var z = ow(A.memoizedState, M); + A.memoizedState = z, A.baseState = z, u.memoizedProps = w({}, u.memoizedProps), Tl(u, Hr, Vi); } - }, eb = function(u, f, M, A) { - var z = aS(u, f); + }, aw = function(u, f, M, A) { + var z = a_(u, f); if (z !== null) { - var j = rb(z.memoizedState, M, A); - z.memoizedState = j, z.baseState = j, u.memoizedProps = _({}, u.memoizedProps), Ml(u, Hr, Bi); + var W = lw(z.memoizedState, M, A); + z.memoizedState = W, z.baseState = W, u.memoizedProps = w({}, u.memoizedProps), Tl(u, Hr, Vi); } }, Rx = function(u, f, M) { - u.pendingProps = RE(u.memoizedProps, f, M), u.alternate && (u.alternate.pendingProps = u.pendingProps), Ml(u, Hr, Bi); - }, tb = function(u, f) { - u.pendingProps = nb(u.memoizedProps, f), u.alternate && (u.alternate.pendingProps = u.pendingProps), Ml(u, Hr, Bi); - }, eS = function(u, f, M) { - u.pendingProps = rb(u.memoizedProps, f, M), u.alternate && (u.alternate.pendingProps = u.pendingProps), Ml(u, Hr, Bi); + u.pendingProps = RE(u.memoizedProps, f, M), u.alternate && (u.alternate.pendingProps = u.pendingProps), Tl(u, Hr, Vi); + }, sw = function(u, f) { + u.pendingProps = ow(u.memoizedProps, f), u.alternate && (u.alternate.pendingProps = u.pendingProps), Tl(u, Hr, Vi); + }, e_ = function(u, f, M) { + u.pendingProps = lw(u.memoizedProps, f, M), u.alternate && (u.alternate.pendingProps = u.pendingProps), Tl(u, Hr, Vi); }, Ax = function(u) { - Ml(u, Hr, Bi); - }, tS = function(u) { + Tl(u, Hr, Vi); + }, t_ = function(u) { EE = u; - }, nS = function(u) { + }, n_ = function(u) { TE = u; }; } - function ib(u) { - var f = us(u); + function uw(u) { + var f = cs(u); return f === null ? null : f.stateNode; } - function vR(u) { + function gR(u) { return null; } - function ab() { - return eo; + function cw() { + return to; } function AE(u) { - var f = u.findFiberByHostInstance, M = o.ReactCurrentDispatcher; - return wf({ + var f = u.findFiberByHostInstance, M = s.ReactCurrentDispatcher; + return Mf({ bundleType: u.bundleType, version: u.version, rendererPackageName: u.rendererPackageName, rendererConfig: u.rendererConfig, overrideHookState: $1, - overrideHookStateDeletePath: $_, - overrideHookStateRenamePath: eb, + overrideHookStateDeletePath: iw, + overrideHookStateRenamePath: aw, overrideProps: Rx, - overridePropsDeletePath: tb, - overridePropsRenamePath: eS, - setErrorHandler: tS, - setSuspenseHandler: nS, + overridePropsDeletePath: sw, + overridePropsRenamePath: e_, + setErrorHandler: t_, + setSuspenseHandler: n_, scheduleUpdate: Ax, currentDispatcherRef: M, - findHostInstanceByFiber: ib, - findFiberByHostInstance: f || vR, - findHostInstancesForRefresh: ov, - scheduleRefresh: Q_, - scheduleRoot: th, + findHostInstanceByFiber: uw, + findFiberByHostInstance: f || gR, + findHostInstancesForRefresh: cv, + scheduleRefresh: ew, + scheduleRoot: nh, setRefreshHandler: Ex, - getCurrentFiber: ab, + getCurrentFiber: cw, reconcilerVersion: yE }); } - return t.attemptContinuousHydration = wE, t.attemptHydrationAtCurrentPriority = K_, t.attemptSynchronousHydration = bE, t.batchedUpdates = wT, t.createComponentSelector = Qc, t.createContainer = FT, t.createHasPseudoClassSelector = Ep, t.createHydrationContainer = SE, t.createPortal = Cx, t.createRoleSelector = fm, t.createTestNameSelector = Vg, t.createTextSelector = $y, t.deferredUpdates = lR, t.discreteUpdates = H_, t.findAllNodes = F1, t.findBoundingRects = qw, t.findHostInstance = uv, t.findHostInstanceWithNoPortals = IT, t.findHostInstanceWithWarning = Tp, t.flushControlled = ET, t.flushPassiveEffects = av, t.flushSync = j1, t.focusWithin = gT, t.getCurrentUpdatePriority = rl, t.getFindAllNodesFailureDescription = vT, t.getPublicRootInstance = _E, t.injectIntoDevTools = AE, t.isAlreadyRendering = nE, t.observeVisibleRects = Zw, t.registerMutableSourceForHydration = Lv, t.runWithPriority = fa, t.shouldError = ME, t.shouldSuspend = CE, t.updateContainer = J_, t; - })), oD.exports; + return t.attemptContinuousHydration = bE, t.attemptHydrationAtCurrentPriority = rw, t.attemptSynchronousHydration = wE, t.batchedUpdates = bT, t.createComponentSelector = Zc, t.createContainer = FT, t.createHasPseudoClassSelector = Cp, t.createHydrationContainer = _E, t.createPortal = Cx, t.createRoleSelector = pm, t.createTestNameSelector = jg, t.createTextSelector = e0, t.deferredUpdates = uR, t.discreteUpdates = YS, t.findAllNodes = F1, t.findBoundingRects = qb, t.findHostInstance = dv, t.findHostInstanceWithNoPortals = IT, t.findHostInstanceWithWarning = Ap, t.flushControlled = ET, t.flushPassiveEffects = lv, t.flushSync = j1, t.focusWithin = gT, t.getCurrentUpdatePriority = il, t.getFindAllNodesFailureDescription = vT, t.getPublicRootInstance = SE, t.injectIntoDevTools = AE, t.isAlreadyRendering = nE, t.observeVisibleRects = Zb, t.registerMutableSourceForHydration = Uv, t.runWithPriority = fa, t.shouldError = ME, t.shouldSuspend = CE, t.updateContainer = nw, t; + })), lD.exports; } (function(a) { - process.env.NODE_ENV === "production" ? a.exports = h9() : a.exports = p9(); -})(x4); -const m9 = /* @__PURE__ */ y4(x4.exports); -function v9(a, e, t = (r, i) => r === i) { + process.env.NODE_ENV === "production" ? a.exports = C9() : a.exports = R9(); +})(Pk); +const A9 = /* @__PURE__ */ Lk(Pk.exports); +function D9(a, e, t = (r, i) => r === i) { if (a === e) return !0; if (!a || !e) @@ -33152,33 +33152,33 @@ function v9(a, e, t = (r, i) => r === i) { return !0; } const q2 = []; -function g9(a, e, t = !1, r = {}) { - for (const o of q2) - if (v9(e, o.keys, o.equal)) { +function L9(a, e, t = !1, r = {}) { + for (const s of q2) + if (D9(e, s.keys, s.equal)) { if (t) return; - if (Object.prototype.hasOwnProperty.call(o, "error")) - throw o.error; - if (Object.prototype.hasOwnProperty.call(o, "response")) - return o.response; + if (Object.prototype.hasOwnProperty.call(s, "error")) + throw s.error; + if (Object.prototype.hasOwnProperty.call(s, "response")) + return s.response; if (!t) - throw o.promise; + throw s.promise; } const i = { keys: e, equal: r.equal, - promise: a(...e).then((o) => i.response = o).then(() => { + promise: a(...e).then((s) => i.response = s).then(() => { r.lifespan && r.lifespan > 0 && setTimeout(() => { - const o = q2.indexOf(i); - o !== -1 && q2.splice(o, 1); + const s = q2.indexOf(i); + s !== -1 && q2.splice(s, 1); }, r.lifespan); - }).catch((o) => i.error = o) + }).catch((s) => i.error = s) }; if (q2.push(i), !t) throw i.promise; } -const y9 = (a, e, t) => g9(a, e, !1, t); -var KC = { exports: {} }, aM = {}; +const P9 = (a, e, t) => L9(a, e, !1, t); +var eR = { exports: {} }, aM = {}; /** * @license React * react-jsx-runtime.production.min.js @@ -33188,21 +33188,21 @@ var KC = { exports: {} }, aM = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var iz; -function x9() { - if (iz) +var oz; +function O9() { + if (oz) return aM; - iz = 1; - var a = hh, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 }; - function l(d, h, m) { - var S, _ = {}, T = null, C = null; - m !== void 0 && (T = "" + m), h.key !== void 0 && (T = "" + h.key), h.ref !== void 0 && (C = h.ref); - for (S in h) - r.call(h, S) && !o.hasOwnProperty(S) && (_[S] = h[S]); + oz = 1; + var a = ph, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 }; + function l(d, p, g) { + var _, w = {}, T = null, R = null; + g !== void 0 && (T = "" + g), p.key !== void 0 && (T = "" + p.key), p.ref !== void 0 && (R = p.ref); + for (_ in p) + r.call(p, _) && !s.hasOwnProperty(_) && (w[_] = p[_]); if (d && d.defaultProps) - for (S in h = d.defaultProps, h) - _[S] === void 0 && (_[S] = h[S]); - return { $$typeof: e, type: d, key: T, ref: C, props: _, _owner: i.current }; + for (_ in p = d.defaultProps, p) + w[_] === void 0 && (w[_] = p[_]); + return { $$typeof: e, type: d, key: T, ref: R, props: w, _owner: i.current }; } return aM.Fragment = t, aM.jsx = l, aM.jsxs = l, aM; } @@ -33216,87 +33216,87 @@ var sM = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var az; -function S9() { - return az || (az = 1, process.env.NODE_ENV !== "production" && function() { - var a = hh, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), D = Symbol.iterator, P = "@@iterator"; - function U(me) { - if (me === null || typeof me != "object") +var lz; +function U9() { + return lz || (lz = 1, process.env.NODE_ENV !== "production" && function() { + var a = ph, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), D = Symbol.iterator, O = "@@iterator"; + function U(de) { + if (de === null || typeof de != "object") return null; - var Oe = D && me[D] || me[P]; - return typeof Oe == "function" ? Oe : null; + var Le = D && de[D] || de[O]; + return typeof Le == "function" ? Le : null; } - var B = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - function k(me) { + var H = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + function I(de) { { - for (var Oe = arguments.length, qe = new Array(Oe > 1 ? Oe - 1 : 0), on = 1; on < Oe; on++) - qe[on - 1] = arguments[on]; - V("error", me, qe); + for (var Le = arguments.length, Ye = new Array(Le > 1 ? Le - 1 : 0), $t = 1; $t < Le; $t++) + Ye[$t - 1] = arguments[$t]; + G("error", de, Ye); } } - function V(me, Oe, qe) { + function G(de, Le, Ye) { { - var on = B.ReactDebugCurrentFrame, yn = on.getStackAddendum(); - yn !== "" && (Oe += "%s", qe = qe.concat([yn])); - var Rn = qe.map(function(mn) { - return String(mn); + var $t = H.ReactDebugCurrentFrame, mn = $t.getStackAddendum(); + mn !== "" && (Le += "%s", Ye = Ye.concat([mn])); + var Rn = Ye.map(function(gn) { + return String(gn); }); - Rn.unshift("Warning: " + Oe), Function.prototype.apply.call(console[me], console, Rn); + Rn.unshift("Warning: " + Le), Function.prototype.apply.call(console[de], console, Rn); } } - var I = !1, X = !1, J = !1, $ = !1, W = !1, ne; - ne = Symbol.for("react.module.reference"); - function ie(me) { - return !!(typeof me == "string" || typeof me == "function" || me === r || me === o || W || me === i || me === m || me === S || $ || me === C || I || X || J || typeof me == "object" && me !== null && (me.$$typeof === T || me.$$typeof === _ || me.$$typeof === l || me.$$typeof === d || me.$$typeof === h || me.$$typeof === ne || me.getModuleId !== void 0)); + var B = !1, Q = !1, K = !1, te = !1, Y = !1, re; + re = Symbol.for("react.module.reference"); + function se(de) { + return !!(typeof de == "string" || typeof de == "function" || de === r || de === s || Y || de === i || de === g || de === _ || te || de === R || B || Q || K || typeof de == "object" && de !== null && (de.$$typeof === T || de.$$typeof === w || de.$$typeof === l || de.$$typeof === d || de.$$typeof === p || de.$$typeof === re || de.getModuleId !== void 0)); } - function fe(me, Oe, qe) { - var on = me.displayName; - if (on) - return on; - var yn = Oe.displayName || Oe.name || ""; - return yn !== "" ? qe + "(" + yn + ")" : qe; + function ce(de, Le, Ye) { + var $t = de.displayName; + if ($t) + return $t; + var mn = Le.displayName || Le.name || ""; + return mn !== "" ? Ye + "(" + mn + ")" : Ye; } - function le(me) { - return me.displayName || "Context"; + function ue(de) { + return de.displayName || "Context"; } - function Ee(me) { - if (me == null) + function Me(de) { + if (de == null) return null; - if (typeof me.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof me == "function") - return me.displayName || me.name || null; - if (typeof me == "string") - return me; - switch (me) { + if (typeof de.tag == "number" && I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof de == "function") + return de.displayName || de.name || null; + if (typeof de == "string") + return de; + switch (de) { case r: return "Fragment"; case t: return "Portal"; - case o: + case s: return "Profiler"; case i: return "StrictMode"; - case m: + case g: return "Suspense"; - case S: + case _: return "SuspenseList"; } - if (typeof me == "object") - switch (me.$$typeof) { + if (typeof de == "object") + switch (de.$$typeof) { case d: - var Oe = me; - return le(Oe) + ".Consumer"; + var Le = de; + return ue(Le) + ".Consumer"; case l: - var qe = me; - return le(qe._context) + ".Provider"; - case h: - return fe(me, me.render, "ForwardRef"); - case _: - var on = me.displayName || null; - return on !== null ? on : Ee(me.type) || "Memo"; + var Ye = de; + return ue(Ye._context) + ".Provider"; + case p: + return ce(de, de.render, "ForwardRef"); + case w: + var $t = de.displayName || null; + return $t !== null ? $t : Me(de.type) || "Memo"; case T: { - var yn = me, Rn = yn._payload, mn = yn._init; + var mn = de, Rn = mn._payload, gn = mn._init; try { - return Ee(mn(Rn)); + return Me(gn(Rn)); } catch { return null; } @@ -33304,512 +33304,716 @@ function S9() { } return null; } - var he = Object.assign, Fe = 0, Ce, Be, pe, de, ce, ye, we; - function Xe() { + var me = Object.assign, De = 0, Re, He, ve, fe, he, ye, Ee; + function Ve() { } - Xe.__reactDisabledLog = !0; + Ve.__reactDisabledLog = !0; function Je() { { - if (Fe === 0) { - Ce = console.log, Be = console.info, pe = console.warn, de = console.error, ce = console.group, ye = console.groupCollapsed, we = console.groupEnd; - var me = { + if (De === 0) { + Re = console.log, He = console.info, ve = console.warn, fe = console.error, he = console.group, ye = console.groupCollapsed, Ee = console.groupEnd; + var de = { configurable: !0, enumerable: !0, - value: Xe, + value: Ve, writable: !0 }; Object.defineProperties(console, { - info: me, - log: me, - warn: me, - error: me, - group: me, - groupCollapsed: me, - groupEnd: me + info: de, + log: de, + warn: de, + error: de, + group: de, + groupCollapsed: de, + groupEnd: de }); } - Fe++; + De++; } } - function st() { + function rt() { { - if (Fe--, Fe === 0) { - var me = { + if (De--, De === 0) { + var de = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { - log: he({}, me, { - value: Ce + log: me({}, de, { + value: Re }), - info: he({}, me, { - value: Be + info: me({}, de, { + value: He }), - warn: he({}, me, { - value: pe + warn: me({}, de, { + value: ve }), - error: he({}, me, { - value: de + error: me({}, de, { + value: fe }), - group: he({}, me, { - value: ce + group: me({}, de, { + value: he }), - groupCollapsed: he({}, me, { + groupCollapsed: me({}, de, { value: ye }), - groupEnd: he({}, me, { - value: we + groupEnd: me({}, de, { + value: Ee }) }); } - Fe < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + De < 0 && I("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } - var Ue = B.ReactCurrentDispatcher, ot; - function rt(me, Oe, qe) { + var Ne = H.ReactCurrentDispatcher, ct; + function tt(de, Le, Ye) { { - if (ot === void 0) + if (ct === void 0) try { throw Error(); - } catch (yn) { - var on = yn.stack.trim().match(/\n( *(at )?)/); - ot = on && on[1] || ""; + } catch (mn) { + var $t = mn.stack.trim().match(/\n( *(at )?)/); + ct = $t && $t[1] || ""; } return ` -` + ot + me; +` + ct + de; } } - var _t = !1, Rt; + var Tt = !1, gt; { - var Ot = typeof WeakMap == "function" ? WeakMap : Map; - Rt = new Ot(); + var ft = typeof WeakMap == "function" ? WeakMap : Map; + gt = new ft(); } - function He(me, Oe) { - if (!me || _t) + function Ie(de, Le) { + if (!de || Tt) return ""; { - var qe = Rt.get(me); - if (qe !== void 0) - return qe; + var Ye = gt.get(de); + if (Ye !== void 0) + return Ye; } - var on; - _t = !0; - var yn = Error.prepareStackTrace; + var $t; + Tt = !0; + var mn = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var Rn; - Rn = Ue.current, Ue.current = null, Je(); + Rn = Ne.current, Ne.current = null, Je(); try { - if (Oe) { - var mn = function() { + if (Le) { + var gn = function() { throw Error(); }; - if (Object.defineProperty(mn.prototype, "props", { + if (Object.defineProperty(gn.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { - Reflect.construct(mn, []); - } catch ($t) { - on = $t; + Reflect.construct(gn, []); + } catch (en) { + $t = en; } - Reflect.construct(me, [], mn); + Reflect.construct(de, [], gn); } else { try { - mn.call(); - } catch ($t) { - on = $t; + gn.call(); + } catch (en) { + $t = en; } - me.call(mn.prototype); + de.call(gn.prototype); } } else { try { throw Error(); - } catch ($t) { - on = $t; - } - me(); - } - } catch ($t) { - if ($t && on && typeof $t.stack == "string") { - for (var vn = $t.stack.split(` -`), Zn = on.stack.split(` -`), nr = vn.length - 1, br = Zn.length - 1; nr >= 1 && br >= 0 && vn[nr] !== Zn[br]; ) - br--; - for (; nr >= 1 && br >= 0; nr--, br--) - if (vn[nr] !== Zn[br]) { - if (nr !== 1 || br !== 1) + } catch (en) { + $t = en; + } + de(); + } + } catch (en) { + if (en && $t && typeof en.stack == "string") { + for (var yn = en.stack.split(` +`), Jn = $t.stack.split(` +`), rr = yn.length - 1, wr = Jn.length - 1; rr >= 1 && wr >= 0 && yn[rr] !== Jn[wr]; ) + wr--; + for (; rr >= 1 && wr >= 0; rr--, wr--) + if (yn[rr] !== Jn[wr]) { + if (rr !== 1 || wr !== 1) do - if (nr--, br--, br < 0 || vn[nr] !== Zn[br]) { + if (rr--, wr--, wr < 0 || yn[rr] !== Jn[wr]) { var Yi = ` -` + vn[nr].replace(" at new ", " at "); - return me.displayName && Yi.includes("") && (Yi = Yi.replace("", me.displayName)), typeof me == "function" && Rt.set(me, Yi), Yi; +` + yn[rr].replace(" at new ", " at "); + return de.displayName && Yi.includes("") && (Yi = Yi.replace("", de.displayName)), typeof de == "function" && gt.set(de, Yi), Yi; } - while (nr >= 1 && br >= 0); + while (rr >= 1 && wr >= 0); break; } } } finally { - _t = !1, Ue.current = Rn, st(), Error.prepareStackTrace = yn; + Tt = !1, Ne.current = Rn, rt(), Error.prepareStackTrace = mn; } - var La = me ? me.displayName || me.name : "", Xs = La ? rt(La) : ""; - return typeof me == "function" && Rt.set(me, Xs), Xs; + var La = de ? de.displayName || de.name : "", qs = La ? tt(La) : ""; + return typeof de == "function" && gt.set(de, qs), qs; } - function et(me, Oe, qe) { - return He(me, !1); + function qe(de, Le, Ye) { + return Ie(de, !1); } - function mt(me) { - var Oe = me.prototype; - return !!(Oe && Oe.isReactComponent); + function dt(de) { + var Le = de.prototype; + return !!(Le && Le.isReactComponent); } - function vt(me, Oe, qe) { - if (me == null) + function ht(de, Le, Ye) { + if (de == null) return ""; - if (typeof me == "function") - return He(me, mt(me)); - if (typeof me == "string") - return rt(me); - switch (me) { - case m: - return rt("Suspense"); - case S: - return rt("SuspenseList"); - } - if (typeof me == "object") - switch (me.$$typeof) { - case h: - return et(me.render); - case _: - return vt(me.type, Oe, qe); + if (typeof de == "function") + return Ie(de, dt(de)); + if (typeof de == "string") + return tt(de); + switch (de) { + case g: + return tt("Suspense"); + case _: + return tt("SuspenseList"); + } + if (typeof de == "object") + switch (de.$$typeof) { + case p: + return qe(de.render); + case w: + return ht(de.type, Le, Ye); case T: { - var on = me, yn = on._payload, Rn = on._init; + var $t = de, mn = $t._payload, Rn = $t._init; try { - return vt(Rn(yn), Oe, qe); + return ht(Rn(mn), Le, Ye); } catch { } } } return ""; } - var bt = Object.prototype.hasOwnProperty, Qt = {}, ft = B.ReactDebugCurrentFrame; - function Vt(me) { - if (me) { - var Oe = me._owner, qe = vt(me.type, me._source, Oe ? Oe.type : null); - ft.setExtraStackFrame(qe); + var xt = Object.prototype.hasOwnProperty, Vt = {}, yt = H.ReactDebugCurrentFrame; + function Nt(de) { + if (de) { + var Le = de._owner, Ye = ht(de.type, de._source, Le ? Le.type : null); + yt.setExtraStackFrame(Ye); } else - ft.setExtraStackFrame(null); + yt.setExtraStackFrame(null); } - function Jt(me, Oe, qe, on, yn) { + function Zt(de, Le, Ye, $t, mn) { { - var Rn = Function.call.bind(bt); - for (var mn in me) - if (Rn(me, mn)) { - var vn = void 0; + var Rn = Function.call.bind(xt); + for (var gn in de) + if (Rn(de, gn)) { + var yn = void 0; try { - if (typeof me[mn] != "function") { - var Zn = Error((on || "React class") + ": " + qe + " type `" + mn + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof me[mn] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); - throw Zn.name = "Invariant Violation", Zn; + if (typeof de[gn] != "function") { + var Jn = Error(($t || "React class") + ": " + Ye + " type `" + gn + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof de[gn] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + throw Jn.name = "Invariant Violation", Jn; } - vn = me[mn](Oe, mn, on, qe, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); - } catch (nr) { - vn = nr; + yn = de[gn](Le, gn, $t, Ye, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (rr) { + yn = rr; } - vn && !(vn instanceof Error) && (Vt(yn), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", on || "React class", qe, mn, typeof vn), Vt(null)), vn instanceof Error && !(vn.message in Qt) && (Qt[vn.message] = !0, Vt(yn), k("Failed %s type: %s", qe, vn.message), Vt(null)); + yn && !(yn instanceof Error) && (Nt(mn), I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $t || "React class", Ye, gn, typeof yn), Nt(null)), yn instanceof Error && !(yn.message in Vt) && (Vt[yn.message] = !0, Nt(mn), I("Failed %s type: %s", Ye, yn.message), Nt(null)); } } } - var Mt = Array.isArray; - function Me(me) { - return Mt(me); + var Rt = Array.isArray; + function we(de) { + return Rt(de); } - function oe(me) { + function oe(de) { { - var Oe = typeof Symbol == "function" && Symbol.toStringTag, qe = Oe && me[Symbol.toStringTag] || me.constructor.name || "Object"; - return qe; + var Le = typeof Symbol == "function" && Symbol.toStringTag, Ye = Le && de[Symbol.toStringTag] || de.constructor.name || "Object"; + return Ye; } } - function je(me) { + function Qe(de) { try { - return lt(me), !1; + return ut(de), !1; } catch { return !0; } } - function lt(me) { - return "" + me; + function ut(de) { + return "" + de; } - function zt(me) { - if (je(me)) - return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", oe(me)), lt(me); + function Ft(de) { + if (Qe(de)) + return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", oe(de)), ut(de); } - var Nt = B.ReactCurrentOwner, Ut = { + var Ot = H.ReactCurrentOwner, Wt = { key: !0, ref: !0, __self: !0, __source: !0 - }, tt, rn, ze; - ze = {}; - function xe(me) { - if (bt.call(me, "ref")) { - var Oe = Object.getOwnPropertyDescriptor(me, "ref").get; - if (Oe && Oe.isReactWarning) + }, it, an, Be; + Be = {}; + function pe(de) { + if (xt.call(de, "ref")) { + var Le = Object.getOwnPropertyDescriptor(de, "ref").get; + if (Le && Le.isReactWarning) return !1; } - return me.ref !== void 0; + return de.ref !== void 0; } - function Ie(me) { - if (bt.call(me, "key")) { - var Oe = Object.getOwnPropertyDescriptor(me, "key").get; - if (Oe && Oe.isReactWarning) + function Fe(de) { + if (xt.call(de, "key")) { + var Le = Object.getOwnPropertyDescriptor(de, "key").get; + if (Le && Le.isReactWarning) return !1; } - return me.key !== void 0; + return de.key !== void 0; } - function it(me, Oe) { - if (typeof me.ref == "string" && Nt.current && Oe && Nt.current.stateNode !== Oe) { - var qe = Ee(Nt.current.type); - ze[qe] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Ee(Nt.current.type), me.ref), ze[qe] = !0); + function at(de, Le) { + if (typeof de.ref == "string" && Ot.current && Le && Ot.current.stateNode !== Le) { + var Ye = Me(Ot.current.type); + Be[Ye] || (I('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Me(Ot.current.type), de.ref), Be[Ye] = !0); } } - function at(me, Oe) { + function st(de, Le) { { - var qe = function() { - tt || (tt = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Oe)); + var Ye = function() { + it || (it = !0, I("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Le)); }; - qe.isReactWarning = !0, Object.defineProperty(me, "key", { - get: qe, + Ye.isReactWarning = !0, Object.defineProperty(de, "key", { + get: Ye, configurable: !0 }); } } - function hn(me, Oe) { + function dn(de, Le) { { - var qe = function() { - rn || (rn = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Oe)); + var Ye = function() { + an || (an = !0, I("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Le)); }; - qe.isReactWarning = !0, Object.defineProperty(me, "ref", { - get: qe, + Ye.isReactWarning = !0, Object.defineProperty(de, "ref", { + get: Ye, configurable: !0 }); } } - var De = function(me, Oe, qe, on, yn, Rn, mn) { - var vn = { + var ze = function(de, Le, Ye, $t, mn, Rn, gn) { + var yn = { $$typeof: e, - type: me, - key: Oe, - ref: qe, - props: mn, + type: de, + key: Le, + ref: Ye, + props: gn, _owner: Rn }; - return vn._store = {}, Object.defineProperty(vn._store, "validated", { + return yn._store = {}, Object.defineProperty(yn._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 - }), Object.defineProperty(vn, "_self", { + }), Object.defineProperty(yn, "_self", { configurable: !1, enumerable: !1, writable: !1, - value: on - }), Object.defineProperty(vn, "_source", { + value: $t + }), Object.defineProperty(yn, "_source", { configurable: !1, enumerable: !1, writable: !1, - value: yn - }), Object.freeze && (Object.freeze(vn.props), Object.freeze(vn)), vn; + value: mn + }), Object.freeze && (Object.freeze(yn.props), Object.freeze(yn)), yn; }; - function Tt(me, Oe, qe, on, yn) { + function wt(de, Le, Ye, $t, mn) { { - var Rn, mn = {}, vn = null, Zn = null; - qe !== void 0 && (zt(qe), vn = "" + qe), Ie(Oe) && (zt(Oe.key), vn = "" + Oe.key), xe(Oe) && (Zn = Oe.ref, it(Oe, yn)); - for (Rn in Oe) - bt.call(Oe, Rn) && !Ut.hasOwnProperty(Rn) && (mn[Rn] = Oe[Rn]); - if (me && me.defaultProps) { - var nr = me.defaultProps; - for (Rn in nr) - mn[Rn] === void 0 && (mn[Rn] = nr[Rn]); - } - if (vn || Zn) { - var br = typeof me == "function" ? me.displayName || me.name || "Unknown" : me; - vn && at(mn, br), Zn && hn(mn, br); - } - return De(me, vn, Zn, yn, on, Nt.current, mn); - } - } - var Ne = B.ReactCurrentOwner, Gt = B.ReactDebugCurrentFrame; - function Pt(me) { - if (me) { - var Oe = me._owner, qe = vt(me.type, me._source, Oe ? Oe.type : null); - Gt.setExtraStackFrame(qe); + var Rn, gn = {}, yn = null, Jn = null; + Ye !== void 0 && (Ft(Ye), yn = "" + Ye), Fe(Le) && (Ft(Le.key), yn = "" + Le.key), pe(Le) && (Jn = Le.ref, at(Le, mn)); + for (Rn in Le) + xt.call(Le, Rn) && !Wt.hasOwnProperty(Rn) && (gn[Rn] = Le[Rn]); + if (de && de.defaultProps) { + var rr = de.defaultProps; + for (Rn in rr) + gn[Rn] === void 0 && (gn[Rn] = rr[Rn]); + } + if (yn || Jn) { + var wr = typeof de == "function" ? de.displayName || de.name || "Unknown" : de; + yn && st(gn, wr), Jn && dn(gn, wr); + } + return ze(de, yn, Jn, mn, $t, Ot.current, gn); + } + } + var Pe = H.ReactCurrentOwner, Gt = H.ReactDebugCurrentFrame; + function At(de) { + if (de) { + var Le = de._owner, Ye = ht(de.type, de._source, Le ? Le.type : null); + Gt.setExtraStackFrame(Ye); } else Gt.setExtraStackFrame(null); } - var fn; - fn = !1; - function Gr(me) { - return typeof me == "object" && me !== null && me.$$typeof === e; + var cn; + cn = !1; + function ki(de) { + return typeof de == "object" && de !== null && de.$$typeof === e; } - function Wr() { + function Or() { { - if (Ne.current) { - var me = Ee(Ne.current.type); - if (me) + if (Pe.current) { + var de = Me(Pe.current.type); + if (de) return ` -Check the render method of \`` + me + "`."; +Check the render method of \`` + de + "`."; } return ""; } } - function Ur(me) { + function Ii(de) { { - if (me !== void 0) { - var Oe = me.fileName.replace(/^.*[\\\/]/, ""), qe = me.lineNumber; + if (de !== void 0) { + var Le = de.fileName.replace(/^.*[\\\/]/, ""), Ye = de.lineNumber; return ` -Check your code at ` + Oe + ":" + qe + "."; +Check your code at ` + Le + ":" + Ye + "."; } return ""; } } - var ir = {}; - function Vn(me) { + var Ir = {}; + function Bn(de) { { - var Oe = Wr(); - if (!Oe) { - var qe = typeof me == "string" ? me : me.displayName || me.name; - qe && (Oe = ` + var Le = Or(); + if (!Le) { + var Ye = typeof de == "string" ? de : de.displayName || de.name; + Ye && (Le = ` -Check the top-level render call using <` + qe + ">."); +Check the top-level render call using <` + Ye + ">."); } - return Oe; + return Le; } } - function jr(me, Oe) { + function Mi(de, Le) { { - if (!me._store || me._store.validated || me.key != null) + if (!de._store || de._store.validated || de.key != null) return; - me._store.validated = !0; - var qe = Vn(Oe); - if (ir[qe]) + de._store.validated = !0; + var Ye = Bn(Le); + if (Ir[Ye]) return; - ir[qe] = !0; - var on = ""; - me && me._owner && me._owner !== Ne.current && (on = " It was passed a child from " + Ee(me._owner.type) + "."), Pt(me), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', qe, on), Pt(null); + Ir[Ye] = !0; + var $t = ""; + de && de._owner && de._owner !== Pe.current && ($t = " It was passed a child from " + Me(de._owner.type) + "."), At(de), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Ye, $t), At(null); } } - function ti(me, Oe) { + function yi(de, Le) { { - if (typeof me != "object") + if (typeof de != "object") return; - if (Me(me)) - for (var qe = 0; qe < me.length; qe++) { - var on = me[qe]; - Gr(on) && jr(on, Oe); + if (we(de)) + for (var Ye = 0; Ye < de.length; Ye++) { + var $t = de[Ye]; + ki($t) && Mi($t, Le); } - else if (Gr(me)) - me._store && (me._store.validated = !0); - else if (me) { - var yn = U(me); - if (typeof yn == "function" && yn !== me.entries) - for (var Rn = yn.call(me), mn; !(mn = Rn.next()).done; ) - Gr(mn.value) && jr(mn.value, Oe); + else if (ki(de)) + de._store && (de._store.validated = !0); + else if (de) { + var mn = U(de); + if (typeof mn == "function" && mn !== de.entries) + for (var Rn = mn.call(de), gn; !(gn = Rn.next()).done; ) + ki(gn.value) && Mi(gn.value, Le); } } } - function ki(me) { + function ii(de) { { - var Oe = me.type; - if (Oe == null || typeof Oe == "string") + var Le = de.type; + if (Le == null || typeof Le == "string") return; - var qe; - if (typeof Oe == "function") - qe = Oe.propTypes; - else if (typeof Oe == "object" && (Oe.$$typeof === h || Oe.$$typeof === _)) - qe = Oe.propTypes; + var Ye; + if (typeof Le == "function") + Ye = Le.propTypes; + else if (typeof Le == "object" && (Le.$$typeof === p || Le.$$typeof === w)) + Ye = Le.propTypes; else return; - if (qe) { - var on = Ee(Oe); - Jt(qe, me.props, "prop", on, me); - } else if (Oe.PropTypes !== void 0 && !fn) { - fn = !0; - var yn = Ee(Oe); - k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", yn || "Unknown"); + if (Ye) { + var $t = Me(Le); + Zt(Ye, de.props, "prop", $t, de); + } else if (Le.PropTypes !== void 0 && !cn) { + cn = !0; + var mn = Me(Le); + I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", mn || "Unknown"); } - typeof Oe.getDefaultProps == "function" && !Oe.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); + typeof Le.getDefaultProps == "function" && !Le.getDefaultProps.isReactClassApproved && I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } - function Wi(me) { + function Bi(de) { { - for (var Oe = Object.keys(me.props), qe = 0; qe < Oe.length; qe++) { - var on = Oe[qe]; - if (on !== "children" && on !== "key") { - Pt(me), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", on), Pt(null); + for (var Le = Object.keys(de.props), Ye = 0; Ye < Le.length; Ye++) { + var $t = Le[Ye]; + if ($t !== "children" && $t !== "key") { + At(de), I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", $t), At(null); break; } } - me.ref !== null && (Pt(me), k("Invalid attribute `ref` supplied to `React.Fragment`."), Pt(null)); + de.ref !== null && (At(de), I("Invalid attribute `ref` supplied to `React.Fragment`."), At(null)); } } - function ni(me, Oe, qe, on, yn, Rn) { + function xi(de, Le, Ye, $t, mn, Rn) { { - var mn = ie(me); - if (!mn) { - var vn = ""; - (me === void 0 || typeof me == "object" && me !== null && Object.keys(me).length === 0) && (vn += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); - var Zn = Ur(yn); - Zn ? vn += Zn : vn += Wr(); - var nr; - me === null ? nr = "null" : Me(me) ? nr = "array" : me !== void 0 && me.$$typeof === e ? (nr = "<" + (Ee(me.type) || "Unknown") + " />", vn = " Did you accidentally export a JSX literal instead of a component?") : nr = typeof me, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", nr, vn); - } - var br = Tt(me, Oe, qe, yn, Rn); - if (br == null) - return br; - if (mn) { - var Yi = Oe.children; + var gn = se(de); + if (!gn) { + var yn = ""; + (de === void 0 || typeof de == "object" && de !== null && Object.keys(de).length === 0) && (yn += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); + var Jn = Ii(mn); + Jn ? yn += Jn : yn += Or(); + var rr; + de === null ? rr = "null" : we(de) ? rr = "array" : de !== void 0 && de.$$typeof === e ? (rr = "<" + (Me(de.type) || "Unknown") + " />", yn = " Did you accidentally export a JSX literal instead of a component?") : rr = typeof de, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", rr, yn); + } + var wr = wt(de, Le, Ye, mn, Rn); + if (wr == null) + return wr; + if (gn) { + var Yi = Le.children; if (Yi !== void 0) - if (on) - if (Me(Yi)) { + if ($t) + if (we(Yi)) { for (var La = 0; La < Yi.length; La++) - ti(Yi[La], me); + yi(Yi[La], de); Object.freeze && Object.freeze(Yi); } else - k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); + I("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); else - ti(Yi, me); + yi(Yi, de); } - return me === r ? Wi(br) : ki(br), br; + return de === r ? Bi(wr) : ii(wr), wr; } } - function ji(me, Oe, qe) { - return ni(me, Oe, qe, !0); + function $r(de, Le, Ye) { + return xi(de, Le, Ye, !0); } - function Si(me, Oe, qe) { - return ni(me, Oe, qe, !1); + function ai(de, Le, Ye) { + return xi(de, Le, Ye, !1); } - var Te = Si, ct = ji; - sM.Fragment = r, sM.jsx = Te, sM.jsxs = ct; + var Te = ai, ot = $r; + sM.Fragment = r, sM.jsx = Te, sM.jsxs = ot; }()), sM; } (function(a) { - process.env.NODE_ENV === "production" ? a.exports = x9() : a.exports = S9(); -})(KC); -const rT = KC.exports.Fragment, _n = KC.exports.jsx, dh = KC.exports.jsxs; -var sz, oz; -const S4 = (a) => a && a.isOrthographicCamera, _9 = (a) => a && a.hasOwnProperty("current"), iT = typeof window < "u" && ((sz = window.document) != null && sz.createElement || ((oz = window.navigator) == null ? void 0 : oz.product) === "ReactNative") ? Or.useLayoutEffect : Or.useEffect; -function _4(a) { - const e = Or.useRef(a); + process.env.NODE_ENV === "production" ? a.exports = O9() : a.exports = U9(); +})(eR); +const rT = eR.exports.Fragment, ln = eR.exports.jsx, _c = eR.exports.jsxs, wL = {}, z9 = (a) => void Object.assign(wL, a); +function N9(a, e) { + function t(_, { + args: w = [], + attach: T, + ...R + }, D) { + let O = `${_[0].toUpperCase()}${_.slice(1)}`, U; + if (_ === "primitive") { + if (R.object === void 0) + throw new Error("R3F: Primitives without 'object' are invalid!"); + const H = R.object; + U = Hw(H, { + type: _, + root: D, + attach: T, + primitive: !0 + }); + } else { + const H = wL[O]; + if (!H) + throw new Error(`R3F: ${O} is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively`); + if (!Array.isArray(w)) + throw new Error("R3F: The args prop must be an array!"); + U = Hw(new H(...w), { + type: _, + root: D, + attach: T, + memoizedProps: { + args: w + } + }); + } + return U.__r3f.attach === void 0 && (U instanceof oi ? U.__r3f.attach = "geometry" : U instanceof hf && (U.__r3f.attach = "material")), O !== "inject" && cD(U, R), U; + } + function r(_, w) { + let T = !1; + if (w) { + var R, D; + (R = w.__r3f) != null && R.attach ? uD(_, w, w.__r3f.attach) : w.isObject3D && _.isObject3D && (_.add(w), T = !0), T || (D = _.__r3f) == null || D.objects.push(w), w.__r3f || Hw(w, {}), w.__r3f.parent = _, T3(w), Vw(w); + } + } + function i(_, w, T) { + let R = !1; + if (w) { + var D, O; + if ((D = w.__r3f) != null && D.attach) + uD(_, w, w.__r3f.attach); + else if (w.isObject3D && _.isObject3D) { + w.parent = _, w.dispatchEvent({ + type: "added" + }); + const U = _.children.filter((I) => I !== w), H = U.indexOf(T); + _.children = [...U.slice(0, H), w, ...U.slice(H)], R = !0; + } + R || (O = _.__r3f) == null || O.objects.push(w), w.__r3f || Hw(w, {}), w.__r3f.parent = _, T3(w), Vw(w); + } + } + function s(_, w, T = !1) { + _ && [..._].forEach((R) => l(w, R, T)); + } + function l(_, w, T) { + if (w) { + var R, D, O; + if (w.__r3f && (w.__r3f.parent = null), (R = _.__r3f) != null && R.objects && (_.__r3f.objects = _.__r3f.objects.filter((B) => B !== w)), (D = w.__r3f) != null && D.attach) + hz(_, w, w.__r3f.attach); + else if (w.isObject3D && _.isObject3D) { + var U; + _.remove(w), (U = w.__r3f) != null && U.root && G9(w.__r3f.root, w); + } + const I = (O = w.__r3f) == null ? void 0 : O.primitive, G = T === void 0 ? w.dispose !== null && !I : T; + if (!I) { + var H; + s((H = w.__r3f) == null ? void 0 : H.objects, w, G), s(w.children, w, G); + } + w.__r3f && (delete w.__r3f.root, delete w.__r3f.objects, delete w.__r3f.handlers, delete w.__r3f.memoizedProps, I || delete w.__r3f), G && w.dispose && w.type !== "Scene" && YM.exports.unstable_scheduleCallback(YM.exports.unstable_IdlePriority, () => { + try { + w.dispose(); + } catch { + } + }), Vw(_); + } + } + function d(_, w, T, R) { + var D; + const O = (D = _.__r3f) == null ? void 0 : D.parent; + if (!O) + return; + const U = t(w, T, _.__r3f.root); + if (_.children) { + for (const H of _.children) + H.__r3f && r(U, H); + _.children = _.children.filter((H) => !H.__r3f); + } + _.__r3f.objects.forEach((H) => r(U, H)), _.__r3f.objects = [], _.__r3f.autoRemovedBeforeAppend || l(O, _), U.parent && (U.__r3f.autoRemovedBeforeAppend = !0), r(O, U), U.raycast && U.__r3f.eventCount && U.__r3f.root.getState().internal.interaction.push(U), [R, R.alternate].forEach((H) => { + H !== null && (H.stateNode = U, H.ref && (typeof H.ref == "function" ? H.ref(U) : H.ref.current = U)); + }); + } + const p = () => console.warn("Text is not allowed in the R3F tree! This could be stray whitespace or characters."); + return { + reconciler: A9({ + createInstance: t, + removeChild: l, + appendChild: r, + appendInitialChild: r, + insertBefore: i, + supportsMutation: !0, + isPrimaryRenderer: !1, + supportsPersistence: !1, + supportsHydration: !1, + noTimeout: -1, + appendChildToContainer: (_, w) => { + if (!w) + return; + const T = _.getState().scene; + !T.__r3f || (T.__r3f.root = _, r(T, w)); + }, + removeChildFromContainer: (_, w) => { + !w || l(_.getState().scene, w); + }, + insertInContainerBefore: (_, w, T) => { + if (!w || !T) + return; + const R = _.getState().scene; + !R.__r3f || i(R, w, T); + }, + getRootHostContext: () => null, + getChildHostContext: (_) => _, + finalizeInitialChildren(_) { + var w; + const T = (w = _ == null ? void 0 : _.__r3f) != null ? w : {}; + return Boolean(T.handlers); + }, + prepareUpdate(_, w, T, R) { + if (_.__r3f.primitive && R.object && R.object !== _) + return [!0]; + { + const { + args: D = [], + children: O, + ...U + } = R, { + args: H = [], + children: I, + ...G + } = T; + if (!Array.isArray(D)) + throw new Error("R3F: the args prop must be an array!"); + if (D.some((Q, K) => Q !== H[K])) + return [!0]; + const B = Ik(_, U, G, !0); + return B.changes.length ? [!1, B] : null; + } + }, + commitUpdate(_, [w, T], R, D, O, U) { + w ? d(_, R, O, U) : cD(_, T); + }, + commitMount(_, w, T, R) { + var D; + const O = (D = _.__r3f) != null ? D : {}; + _.raycast && O.handlers && O.eventCount && _.__r3f.root.getState().internal.interaction.push(_); + }, + getPublicInstance: (_) => _, + prepareForCommit: () => null, + preparePortalMount: (_) => Hw(_.getState().scene), + resetAfterCommit: () => { + }, + shouldSetTextContent: () => !1, + clearContainer: () => !1, + hideInstance(_) { + var w; + const { + attach: T, + parent: R + } = (w = _.__r3f) != null ? w : {}; + T && R && hz(R, _, T), _.isObject3D && (_.visible = !1), Vw(_); + }, + unhideInstance(_, w) { + var T; + const { + attach: R, + parent: D + } = (T = _.__r3f) != null ? T : {}; + R && D && uD(D, _, R), (_.isObject3D && w.visible == null || w.visible) && (_.visible = !0), Vw(_); + }, + createTextInstance: p, + hideTextInstance: p, + unhideTextInstance: p, + getCurrentEventPriority: () => e ? e() : I_.exports.DefaultEventPriority, + beforeActiveInstanceBlur: () => { + }, + afterActiveInstanceBlur: () => { + }, + detachDeletedInstance: () => { + }, + now: typeof performance < "u" && Al.fun(performance.now) ? performance.now : Al.fun(Date.now) ? Date.now : () => 0, + scheduleTimeout: Al.fun(setTimeout) ? setTimeout : void 0, + cancelTimeout: Al.fun(clearTimeout) ? clearTimeout : void 0 + }), + applyProps: cD + }; +} +var uz, cz; +const Ok = () => { + var a; + return (a = wL.ColorManagement) != null ? a : null; +}, Uk = (a) => a && a.isOrthographicCamera, F9 = (a) => a && a.hasOwnProperty("current"), iT = typeof window < "u" && ((uz = window.document) != null && uz.createElement || ((cz = window.navigator) == null ? void 0 : cz.product) === "ReactNative") ? Ln.useLayoutEffect : Ln.useEffect; +function zk(a) { + const e = Ln.useRef(a); return iT(() => void (e.current = a), [a]), e; } -function b9({ +function k9({ set: a }) { return iT(() => (a(new Promise(() => null)), () => a(!1)), [a]), null; } -class b4 extends Or.Component { +class Nk extends Ln.Component { constructor(...e) { super(...e), this.state = { error: !1 @@ -33822,18 +34026,19 @@ class b4 extends Or.Component { return this.state.error ? null : this.props.children; } } -b4.getDerivedStateFromError = () => ({ +Nk.getDerivedStateFromError = () => ({ error: !0 }); -const w4 = "__default", w9 = (a) => a && !!a.memoized && !!a.changes; -function E4(a) { - return Array.isArray(a) ? Math.min(Math.max(a[0], window.devicePixelRatio), a[1]) : a; +const Fk = "__default", fz = /* @__PURE__ */ new Map(), I9 = (a) => a && !!a.memoized && !!a.changes; +function kk(a) { + const e = typeof window < "u" ? window.devicePixelRatio : 1; + return Array.isArray(a) ? Math.min(Math.max(a[0], e), a[1]) : a; } const oM = (a) => { var e; return (e = a.__r3f) == null ? void 0 : e.root.getState(); -}, qu = { - obj: (a) => a === Object(a) && !qu.arr(a) && typeof a != "function", +}, Al = { + obj: (a) => a === Object(a) && !Al.arr(a) && typeof a != "function", fun: (a) => typeof a == "function", str: (a) => typeof a == "string", num: (a) => typeof a == "number", @@ -33847,25 +34052,33 @@ const oM = (a) => { } = {}) { if (typeof a != typeof e || !!a != !!e) return !1; - if (qu.str(a) || qu.num(a)) + if (Al.str(a) || Al.num(a)) return a === e; - const o = qu.obj(a); - if (o && r === "reference") + const s = Al.obj(a); + if (s && r === "reference") return a === e; - const l = qu.arr(a); + const l = Al.arr(a); if (l && t === "reference") return a === e; - if ((l || o) && a === e) + if ((l || s) && a === e) return !0; let d; for (d in a) if (!(d in e)) return !1; - for (d in i ? e : a) - if (a[d] !== e[d]) - return !1; - if (qu.und(d)) { - if (l && a.length === 0 && e.length === 0 || o && Object.keys(a).length === 0 && Object.keys(e).length === 0) + if (s && t === "shallow" && r === "shallow") { + for (d in i ? e : a) + if (!Al.equ(a[d], e[d], { + strict: i, + objects: "reference" + })) + return !1; + } else + for (d in i ? e : a) + if (a[d] !== e[d]) + return !1; + if (Al.und(d)) { + if (l && a.length === 0 && e.length === 0 || s && Object.keys(a).length === 0 && Object.keys(e).length === 0) return !0; if (a !== e) return !1; @@ -33873,12 +34086,12 @@ const oM = (a) => { return !0; } }; -function E9(a) { +function B9(a) { a.dispose && a.type !== "Scene" && a.dispose(); for (const e in a) e.dispose == null || e.dispose(), delete a[e]; } -function Fb(a, e) { +function Hw(a, e) { const t = a; return (e != null && e.primitive || !t.__r3f) && (t.__r3f = { type: "", @@ -33892,11 +34105,11 @@ function Fb(a, e) { ...e }), a; } -function w3(a, e) { +function M3(a, e) { let t = a; if (e.includes("-")) { const r = e.split("-"), i = r.pop(); - return t = r.reduce((o, l) => o[l], a), { + return t = r.reduce((s, l) => s[l], a), { target: t, key: i }; @@ -33906,597 +34119,396 @@ function w3(a, e) { key: e }; } -const lz = /-\d+$/; -function lD(a, e, t) { - if (qu.str(t)) { - if (lz.test(t)) { - const o = t.replace(lz, ""), { +const dz = /-\d+$/; +function uD(a, e, t) { + if (Al.str(t)) { + if (dz.test(t)) { + const s = t.replace(dz, ""), { target: l, key: d - } = w3(a, o); + } = M3(a, s); Array.isArray(l[d]) || (l[d] = []); } const { target: r, key: i - } = w3(a, t); + } = M3(a, t); e.__r3f.previousAttach = r[i], r[i] = e; } else e.__r3f.previousAttach = t(a, e); } -function uz(a, e, t) { +function hz(a, e, t) { var r, i; - if (qu.str(t)) { + if (Al.str(t)) { const { - target: o, + target: s, key: l - } = w3(a, t), d = e.__r3f.previousAttach; - d === void 0 ? delete o[l] : o[l] = d; + } = M3(a, t), d = e.__r3f.previousAttach; + d === void 0 ? delete s[l] : s[l] = d; } else (r = e.__r3f) == null || r.previousAttach == null || r.previousAttach(a, e); (i = e.__r3f) == null || delete i.previousAttach; } -function M4(a, { +function Ik(a, { children: e, key: t, ref: r, ...i }, { - children: o, + children: s, key: l, ref: d, - ...h -} = {}, m = !1) { - var S; - const _ = (S = a == null ? void 0 : a.__r3f) != null ? S : {}, T = Object.entries(i), C = []; - if (m) { - const P = Object.keys(h); - for (let U = 0; U < P.length; U++) - i.hasOwnProperty(P[U]) || T.unshift([P[U], w4 + "remove"]); - } - T.forEach(([P, U]) => { - var B; - if ((B = a.__r3f) != null && B.primitive && P === "object" || qu.equ(U, h[P])) + ...p +} = {}, g = !1) { + var _; + const w = (_ = a == null ? void 0 : a.__r3f) != null ? _ : {}, T = Object.entries(i), R = []; + if (g) { + const O = Object.keys(p); + for (let U = 0; U < O.length; U++) + i.hasOwnProperty(O[U]) || T.unshift([O[U], Fk + "remove"]); + } + T.forEach(([O, U]) => { + var H; + if ((H = a.__r3f) != null && H.primitive && O === "object" || Al.equ(U, p[O])) return; - if (/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(P)) - return C.push([P, U, !0, []]); - let k = []; - P.includes("-") && (k = P.split("-")), C.push([P, U, !1, k]); + if (/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(O)) + return R.push([O, U, !0, []]); + let I = []; + O.includes("-") && (I = O.split("-")), R.push([O, U, !1, I]); + for (const G in i) { + const B = i[G]; + G.startsWith(`${O}-`) && R.push([G, B, !1, G.split("-")]); + } }); const D = { ...i }; - return _.memoizedProps && _.memoizedProps.args && (D.args = _.memoizedProps.args), _.memoizedProps && _.memoizedProps.attach && (D.attach = _.memoizedProps.attach), { + return w.memoizedProps && w.memoizedProps.args && (D.args = w.memoizedProps.args), w.memoizedProps && w.memoizedProps.attach && (D.attach = w.memoizedProps.attach), { memoized: D, - changes: C + changes: R }; } -function uD(a, e) { - var t, r; - const i = (t = a.__r3f) != null ? t : {}, o = i.root, l = (r = o == null || o.getState == null ? void 0 : o.getState()) != null ? r : {}, { - memoized: d, - changes: h - } = w9(e) ? e : M4(a, e), m = i.eventCount; - if (a.__r3f && (a.__r3f.memoizedProps = d), h.forEach(([S, _, T, C]) => { - let D = a, P = D[S]; - if (C.length && (P = C.reduce((k, V) => k[V], a), !(P && P.set))) { - const [k, ...V] = C.reverse(); - D = V.reverse().reduce((I, X) => I[X], a), S = k; - } - if (_ === w4 + "remove") - if (P && P.constructor) { - var U; - _ = new P.constructor(...(U = d.args) != null ? U : []); - } else if (D.constructor) { - var B; - const k = new D.constructor(...(B = D.__r3f.memoizedProps.args) != null ? B : []); - _ = k[P], k.dispose && k.dispose(); +function cD(a, e) { + var t, r, i; + const s = (t = a.__r3f) != null ? t : {}, l = s.root, d = (r = l == null || l.getState == null ? void 0 : l.getState()) != null ? r : {}, { + memoized: p, + changes: g + } = I9(e) ? e : Ik(a, e), _ = s.eventCount; + a.__r3f && (a.__r3f.memoizedProps = p); + for (let T = 0; T < g.length; T++) { + let [R, D, O, U] = g[T], H = a, I = H[R]; + if (U.length && (I = U.reduce((G, B) => G[B], a), !(I && I.set))) { + const [G, ...B] = U.reverse(); + H = B.reverse().reduce((Q, K) => Q[K], a), R = G; + } + if (D === Fk + "remove") + if (H.constructor) { + let G = fz.get(H.constructor); + G || (G = new H.constructor(), fz.set(H.constructor, G)), D = G[R]; } else - _ = 0; - if (T) - _ ? i.handlers[S] = _ : delete i.handlers[S], i.eventCount = Object.keys(i.handlers).length; - else if (P && P.set && (P.copy || P instanceof kS)) { - if (Array.isArray(_)) - P.fromArray ? P.fromArray(_) : P.set(..._); - else if (P.copy && _ && _.constructor && P.constructor.name === _.constructor.name) - P.copy(_); - else if (_ !== void 0) { - const k = P instanceof Pn; - !k && P.setScalar ? P.setScalar(_) : P instanceof kS && _ instanceof kS ? P.mask = _.mask : P.set(_), !("ColorManagement" in RC) && !l.linear && k && P.convertSRGBToLinear(); + D = 0; + if (O) + D ? s.handlers[R] = D : delete s.handlers[R], s.eventCount = Object.keys(s.handlers).length; + else if (I && I.set && (I.copy || I instanceof G_)) { + if (Array.isArray(D)) + I.fromArray ? I.fromArray(D) : I.set(...D); + else if (I.copy && D && D.constructor && I.constructor === D.constructor) + I.copy(D); + else if (D !== void 0) { + const G = I instanceof Un; + !G && I.setScalar ? I.setScalar(D) : I instanceof G_ && D instanceof G_ ? I.mask = D.mask : I.set(D), !Ok() && !d.linear && G && I.convertSRGBToLinear(); } } else - D[S] = _, !l.linear && D[S] instanceof iu && (D[S].encoding = Mi); - kb(a); - }), i.parent && l.internal && a.raycast && m !== i.eventCount) { - const S = l.internal.interaction.indexOf(a); - S > -1 && l.internal.interaction.splice(S, 1), i.eventCount && l.internal.interaction.push(a); + H[R] = D, !d.linear && H[R] instanceof su && H[R].format === zp && H[R].type === df && (H[R].encoding = gi); + Vw(a); + } + if (s.parent && d.internal && a.raycast && _ !== s.eventCount) { + const T = d.internal.interaction.indexOf(a); + T > -1 && d.internal.interaction.splice(T, 1), s.eventCount && d.internal.interaction.push(a); } - return h.length && a.parent && E3(a), a; + return !(g.length === 1 && g[0][0] === "onUpdate") && g.length && (i = a.__r3f) != null && i.parent && T3(a), a; } -function kb(a) { +function Vw(a) { var e, t; const r = (e = a.__r3f) == null || (t = e.root) == null || t.getState == null ? void 0 : t.getState(); r && r.internal.frames === 0 && r.invalidate(); } -function E3(a) { +function T3(a) { a.onUpdate == null || a.onUpdate(a); } -function M9(a, e) { - a.manual || (S4(a) ? (a.left = e.width / -2, a.right = e.width / 2, a.top = e.height / 2, a.bottom = e.height / -2) : a.aspect = e.width / e.height, a.updateProjectionMatrix(), a.updateMatrixWorld()); +function H9(a, e) { + a.manual || (Uk(a) ? (a.left = e.width / -2, a.right = e.width / 2, a.top = e.height / 2, a.bottom = e.height / -2) : a.aspect = e.width / e.height, a.updateProjectionMatrix(), a.updateMatrixWorld()); } -function T9(a, e, t) { - const r = t.pop(), i = t.reduce((o, l) => o[l], a); - return i[r] = e; -} -function cD(a) { +function Q2(a) { return (a.eventObject || a.object).uuid + "/" + a.index + a.instanceId; } -function C9() { - var a, e; - switch ((a = window) == null || (e = a.event) == null ? void 0 : e.type) { +function V9() { + var a; + const e = typeof self < "u" && self || typeof window < "u" && window; + if (!e) + return I_.exports.DefaultEventPriority; + switch ((a = e.event) == null ? void 0 : a.type) { case "click": case "contextmenu": case "dblclick": case "pointercancel": case "pointerdown": case "pointerup": - return Xb.exports.DiscreteEventPriority; + return I_.exports.DiscreteEventPriority; case "pointermove": case "pointerout": case "pointerover": case "pointerenter": case "pointerleave": case "wheel": - return Xb.exports.ContinuousEventPriority; + return I_.exports.ContinuousEventPriority; default: - return Xb.exports.DefaultEventPriority; + return I_.exports.DefaultEventPriority; } } -function T4(a, e, t, r) { +function Bk(a, e, t, r) { const i = t.get(e); i && (t.delete(e), t.size === 0 && (a.delete(r), i.target.releasePointerCapture(r))); } -function R9(a, e) { +function G9(a, e) { const { internal: t } = a.getState(); t.interaction = t.interaction.filter((r) => r !== e), t.initialHits = t.initialHits.filter((r) => r !== e), t.hovered.forEach((r, i) => { (r.eventObject === e || r.object === e) && t.hovered.delete(i); }), t.capturedMap.forEach((r, i) => { - T4(t.capturedMap, e, r, i); + Bk(t.capturedMap, e, r, i); }); } -function A9(a) { - function e(h) { +function W9(a) { + function e(p) { const { - internal: m - } = a.getState(), S = h.offsetX - m.initialClick[0], _ = h.offsetY - m.initialClick[1]; - return Math.round(Math.sqrt(S * S + _ * _)); - } - function t(h) { - return h.filter((m) => ["Move", "Over", "Enter", "Out", "Leave"].some((S) => { - var _; - return (_ = m.__r3f) == null ? void 0 : _.handlers["onPointer" + S]; + internal: g + } = a.getState(), _ = p.offsetX - g.initialClick[0], w = p.offsetY - g.initialClick[1]; + return Math.round(Math.sqrt(_ * _ + w * w)); + } + function t(p) { + return p.filter((g) => ["Move", "Over", "Enter", "Out", "Leave"].some((_) => { + var w; + return (w = g.__r3f) == null ? void 0 : w.handlers["onPointer" + _]; })); } - function r(h, m) { - const S = a.getState(), _ = /* @__PURE__ */ new Set(), T = [], C = m ? m(S.internal.interaction) : S.internal.interaction; - C.forEach((U) => { - const B = oM(U); - B && (B.raycaster.camera = void 0); - }), S.previousRoot || S.events.compute == null || S.events.compute(h, S); - let D = C.flatMap((U) => { - const B = oM(U); - if (!B || !B.events.enabled || B.raycaster.camera === null) + function r(p, g) { + const _ = a.getState(), w = /* @__PURE__ */ new Set(), T = [], R = g ? g(_.internal.interaction) : _.internal.interaction; + for (let H = 0; H < R.length; H++) { + const I = oM(R[H]); + I && (I.raycaster.camera = void 0); + } + _.previousRoot || _.events.compute == null || _.events.compute(p, _); + function D(H) { + const I = oM(H); + if (!I || !I.events.enabled || I.raycaster.camera === null) return []; - if (B.raycaster.camera === void 0) { - var k; - B.events.compute == null || B.events.compute(h, B, (k = B.previousRoot) == null ? void 0 : k.getState()), B.raycaster.camera === void 0 && (B.raycaster.camera = null); - } - return B.raycaster.camera ? B.raycaster.intersectObject(U, !0) : []; - }).sort((U, B) => { - const k = oM(U.object), V = oM(B.object); - return !k || !V ? 0 : V.events.priority - k.events.priority || U.distance - B.distance; - }).filter((U) => { - const B = cD(U); - return _.has(B) ? !1 : (_.add(B), !0); + if (I.raycaster.camera === void 0) { + var G; + I.events.compute == null || I.events.compute(p, I, (G = I.previousRoot) == null ? void 0 : G.getState()), I.raycaster.camera === void 0 && (I.raycaster.camera = null); + } + return I.raycaster.camera ? I.raycaster.intersectObject(H, !0) : []; + } + let O = R.flatMap(D).sort((H, I) => { + const G = oM(H.object), B = oM(I.object); + return !G || !B ? H.distance - I.distance : B.events.priority - G.events.priority || H.distance - I.distance; + }).filter((H) => { + const I = Q2(H); + return w.has(I) ? !1 : (w.add(I), !0); }); - S.events.filter && (D = S.events.filter(D, S)); - for (const U of D) { - let B = U.object; - for (; B; ) { - var P; - (P = B.__r3f) != null && P.eventCount && T.push({ - ...U, - eventObject: B - }), B = B.parent; - } - } - if ("pointerId" in h && S.internal.capturedMap.has(h.pointerId)) - for (let U of S.internal.capturedMap.get(h.pointerId).values()) - T.push(U.intersection); + _.events.filter && (O = _.events.filter(O, _)); + for (const H of O) { + let I = H.object; + for (; I; ) { + var U; + (U = I.__r3f) != null && U.eventCount && T.push({ + ...H, + eventObject: I + }), I = I.parent; + } + } + if ("pointerId" in p && _.internal.capturedMap.has(p.pointerId)) + for (let H of _.internal.capturedMap.get(p.pointerId).values()) + w.has(Q2(H.intersection)) || T.push(H.intersection); return T; } - function i(h, m, S, _) { - if (h.length) { - const T = { + function i(p, g, _, w) { + const T = a.getState(); + if (p.length) { + const R = { stopped: !1 }; - for (const C of h) { - const D = oM(C.object); - if (D) { - const { - raycaster: P, - pointer: U, - camera: B, - internal: k - } = D, V = new ve(U.x, U.y, 0).unproject(B), I = (ne) => { - var ie, fe; - return (ie = (fe = k.capturedMap.get(ne)) == null ? void 0 : fe.has(C.eventObject)) != null ? ie : !1; - }, X = (ne) => { - const ie = { - intersection: C, - target: m.target - }; - k.capturedMap.has(ne) ? k.capturedMap.get(ne).set(C.eventObject, ie) : k.capturedMap.set(ne, /* @__PURE__ */ new Map([[C.eventObject, ie]])), m.target.setPointerCapture(ne); - }, J = (ne) => { - const ie = k.capturedMap.get(ne); - ie && T4(k.capturedMap, C.eventObject, ie, ne); - }; - let $ = {}; - for (let ne in m) { - let ie = m[ne]; - typeof ie != "function" && ($[ne] = ie); - } - let W = { - ...C, - ...$, - pointer: U, - intersections: h, - stopped: T.stopped, - delta: S, - unprojectedPoint: V, - ray: P.ray, - camera: B, - stopPropagation: () => { - const ne = "pointerId" in m && k.capturedMap.get(m.pointerId); - if ((!ne || ne.has(C.eventObject)) && (W.stopped = T.stopped = !0, k.hovered.size && Array.from(k.hovered.values()).find((ie) => ie.eventObject === C.eventObject))) { - const ie = h.slice(0, h.indexOf(C)); - o([...ie, C]); - } - }, - target: { - hasPointerCapture: I, - setPointerCapture: X, - releasePointerCapture: J - }, - currentTarget: { - hasPointerCapture: I, - setPointerCapture: X, - releasePointerCapture: J - }, - nativeEvent: m + for (const D of p) { + const O = oM(D.object) || T, { + raycaster: U, + pointer: H, + camera: I, + internal: G + } = O, B = new ge(H.x, H.y, 0).unproject(I), Q = (se) => { + var ce, ue; + return (ce = (ue = G.capturedMap.get(se)) == null ? void 0 : ue.has(D.eventObject)) != null ? ce : !1; + }, K = (se) => { + const ce = { + intersection: D, + target: g.target }; - if (_(W), T.stopped === !0) - break; - } + G.capturedMap.has(se) ? G.capturedMap.get(se).set(D.eventObject, ce) : G.capturedMap.set(se, /* @__PURE__ */ new Map([[D.eventObject, ce]])), g.target.setPointerCapture(se); + }, te = (se) => { + const ce = G.capturedMap.get(se); + ce && Bk(G.capturedMap, D.eventObject, ce, se); + }; + let Y = {}; + for (let se in g) { + let ce = g[se]; + typeof ce != "function" && (Y[se] = ce); + } + let re = { + ...D, + ...Y, + pointer: H, + intersections: p, + stopped: R.stopped, + delta: _, + unprojectedPoint: B, + ray: U.ray, + camera: I, + stopPropagation() { + const se = "pointerId" in g && G.capturedMap.get(g.pointerId); + if ((!se || se.has(D.eventObject)) && (re.stopped = R.stopped = !0, G.hovered.size && Array.from(G.hovered.values()).find((ce) => ce.eventObject === D.eventObject))) { + const ce = p.slice(0, p.indexOf(D)); + s([...ce, D]); + } + }, + target: { + hasPointerCapture: Q, + setPointerCapture: K, + releasePointerCapture: te + }, + currentTarget: { + hasPointerCapture: Q, + setPointerCapture: K, + releasePointerCapture: te + }, + nativeEvent: g + }; + if (w(re), R.stopped === !0) + break; } } - return h; + return p; } - function o(h) { + function s(p) { const { - internal: m + internal: g } = a.getState(); - Array.from(m.hovered.values()).forEach((S) => { - if (!h.length || !h.find((_) => _.object === S.object && _.index === S.index && _.instanceId === S.instanceId)) { - const T = S.eventObject.__r3f, C = T == null ? void 0 : T.handlers; - if (m.hovered.delete(cD(S)), T != null && T.eventCount) { + for (const _ of g.hovered.values()) + if (!p.length || !p.find((w) => w.object === _.object && w.index === _.index && w.instanceId === _.instanceId)) { + const T = _.eventObject.__r3f, R = T == null ? void 0 : T.handlers; + if (g.hovered.delete(Q2(_)), T != null && T.eventCount) { const D = { - ...S, - intersections: h + ..._, + intersections: p }; - C.onPointerOut == null || C.onPointerOut(D), C.onPointerLeave == null || C.onPointerLeave(D); + R.onPointerOut == null || R.onPointerOut(D), R.onPointerLeave == null || R.onPointerLeave(D); } } - }); } - const l = (h) => { - switch (h) { + function l(p, g) { + for (let _ = 0; _ < g.length; _++) { + const w = g[_].__r3f; + w == null || w.handlers.onPointerMissed == null || w.handlers.onPointerMissed(p); + } + } + function d(p) { + switch (p) { case "onPointerLeave": case "onPointerCancel": - return () => o([]); + return () => s([]); case "onLostPointerCapture": - return (m) => { + return (g) => { const { - internal: S + internal: _ } = a.getState(); - "pointerId" in m && !S.capturedMap.has(m.pointerId) && (S.capturedMap.delete(m.pointerId), o([])); + "pointerId" in g && _.capturedMap.has(g.pointerId) && requestAnimationFrame(() => { + _.capturedMap.has(g.pointerId) && (_.capturedMap.delete(g.pointerId), s([])); + }); }; } - return (m) => { + return function(_) { const { - onPointerMissed: S, - internal: _ + onPointerMissed: w, + internal: T } = a.getState(); - _.lastEvent.current = m; - const T = h === "onPointerMove", C = h === "onClick" || h === "onContextMenu" || h === "onDoubleClick", P = r(m, T ? t : void 0), U = C ? e(m) : 0; - h === "onPointerDown" && (_.initialClick = [m.offsetX, m.offsetY], _.initialHits = P.map((B) => B.eventObject)), C && !P.length && U <= 2 && (d(m, _.interaction), S && S(m)), T && o(P), i(P, m, U, (B) => { - const k = B.eventObject, V = k.__r3f, I = V == null ? void 0 : V.handlers; - if (!!(V != null && V.eventCount)) - if (T) { - if (I.onPointerOver || I.onPointerEnter || I.onPointerOut || I.onPointerLeave) { - const X = cD(B), J = _.hovered.get(X); - J ? J.stopped && B.stopPropagation() : (_.hovered.set(X, B), I.onPointerOver == null || I.onPointerOver(B), I.onPointerEnter == null || I.onPointerEnter(B)); + T.lastEvent.current = _; + const R = p === "onPointerMove", D = p === "onClick" || p === "onContextMenu" || p === "onDoubleClick", U = r(_, R ? t : void 0), H = D ? e(_) : 0; + p === "onPointerDown" && (T.initialClick = [_.offsetX, _.offsetY], T.initialHits = U.map((G) => G.eventObject)), D && !U.length && H <= 2 && (l(_, T.interaction), w && w(_)), R && s(U); + function I(G) { + const B = G.eventObject, Q = B.__r3f, K = Q == null ? void 0 : Q.handlers; + if (!!(Q != null && Q.eventCount)) + if (R) { + if (K.onPointerOver || K.onPointerEnter || K.onPointerOut || K.onPointerLeave) { + const te = Q2(G), Y = T.hovered.get(te); + Y ? Y.stopped && G.stopPropagation() : (T.hovered.set(te, G), K.onPointerOver == null || K.onPointerOver(G), K.onPointerEnter == null || K.onPointerEnter(G)); } - I.onPointerMove == null || I.onPointerMove(B); + K.onPointerMove == null || K.onPointerMove(G); } else { - const X = I[h]; - X ? (!C || _.initialHits.includes(k)) && (d(m, _.interaction.filter((J) => !_.initialHits.includes(J))), X(B)) : C && _.initialHits.includes(k) && d(m, _.interaction.filter((J) => !_.initialHits.includes(J))); + const te = K[p]; + te ? (!D || T.initialHits.includes(B)) && (l(_, T.interaction.filter((Y) => !T.initialHits.includes(Y))), te(G)) : D && T.initialHits.includes(B) && l(_, T.interaction.filter((Y) => !T.initialHits.includes(Y))); } - }); + } + i(U, _, H, I); }; - }; - function d(h, m) { - m.forEach((S) => { - var _; - return (_ = S.__r3f) == null || _.handlers.onPointerMissed == null ? void 0 : _.handlers.onPointerMissed(h); - }); } return { - handlePointer: l + handlePointer: d }; } -let M3 = {}, D9 = (a) => void (M3 = { - ...M3, - ...a -}); -function L9(a, e) { - function t(S, { - args: _ = [], - attach: T, - ...C - }, D) { - let P = `${S[0].toUpperCase()}${S.slice(1)}`, U; - if (S === "primitive") { - if (C.object === void 0) - throw new Error("R3F: Primitives without 'object' are invalid!"); - const B = C.object; - U = Fb(B, { - type: S, - root: D, - attach: T, - primitive: !0 - }); - } else { - const B = M3[P]; - if (!B) - throw new Error(`R3F: ${P} is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively`); - if (!Array.isArray(_)) - throw new Error("R3F: The args prop must be an array!"); - U = Fb(new B(..._), { - type: S, - root: D, - attach: T, - memoizedProps: { - args: _ - } - }); - } - return U.__r3f.attach === void 0 && (U instanceof ui ? U.__r3f.attach = "geometry" : U instanceof ff && (U.__r3f.attach = "material")), P !== "inject" && uD(U, C), U; - } - function r(S, _) { - let T = !1; - if (_) { - var C, D; - (C = _.__r3f) != null && C.attach ? lD(S, _, _.__r3f.attach) : _.isObject3D && S.isObject3D && (S.add(_), T = !0), T || (D = S.__r3f) == null || D.objects.push(_), _.__r3f || Fb(_, {}), _.__r3f.parent = S, E3(_), kb(_); - } - } - function i(S, _, T) { - let C = !1; - if (_) { - var D, P; - if ((D = _.__r3f) != null && D.attach) - lD(S, _, _.__r3f.attach); - else if (_.isObject3D && S.isObject3D) { - _.parent = S, _.dispatchEvent({ - type: "added" - }); - const U = S.children.filter((k) => k !== _), B = U.indexOf(T); - S.children = [...U.slice(0, B), _, ...U.slice(B)], C = !0; - } - C || (P = S.__r3f) == null || P.objects.push(_), _.__r3f || Fb(_, {}), _.__r3f.parent = S, E3(_), kb(_); - } - } - function o(S, _, T = !1) { - S && [...S].forEach((C) => l(_, C, T)); - } - function l(S, _, T) { - if (_) { - var C, D, P; - if (_.__r3f && (_.__r3f.parent = null), (C = S.__r3f) != null && C.objects && (S.__r3f.objects = S.__r3f.objects.filter((I) => I !== _)), (D = _.__r3f) != null && D.attach) - uz(S, _, _.__r3f.attach); - else if (_.isObject3D && S.isObject3D) { - var U; - S.remove(_), (U = _.__r3f) != null && U.root && R9(_.__r3f.root, _); - } - const k = (P = _.__r3f) == null ? void 0 : P.primitive, V = T === void 0 ? _.dispose !== null && !k : T; - if (!k) { - var B; - o((B = _.__r3f) == null ? void 0 : B.objects, _, V), o(_.children, _, V); - } - _.__r3f && (delete _.__r3f.root, delete _.__r3f.objects, delete _.__r3f.handlers, delete _.__r3f.memoizedProps, k || delete _.__r3f), V && _.dispose && _.type !== "Scene" && jM.exports.unstable_scheduleCallback(jM.exports.unstable_IdlePriority, () => { - try { - _.dispose(); - } catch { - } - }), kb(S); - } - } - function d(S, _, T, C) { - var D; - const P = (D = S.__r3f) == null ? void 0 : D.parent; - if (!P) - return; - const U = t(_, T, S.__r3f.root); - if (S.children) { - for (const B of S.children) - B.__r3f && r(U, B); - S.children = S.children.filter((B) => !B.__r3f); - } - S.__r3f.objects.forEach((B) => r(U, B)), S.__r3f.objects = [], l(P, S), r(P, U), U.raycast && U.__r3f.eventCount && U.__r3f.root.getState().internal.interaction.push(U), [C, C.alternate].forEach((B) => { - B !== null && (B.stateNode = U, B.ref && (typeof B.ref == "function" ? B.ref(U) : B.ref.current = U)); - }); - } - const h = () => console.warn("Text is not allowed in the R3F tree! This could be stray whitespace or characters."); - return { - reconciler: m9({ - createInstance: t, - removeChild: l, - appendChild: r, - appendInitialChild: r, - insertBefore: i, - supportsMutation: !0, - isPrimaryRenderer: !1, - supportsPersistence: !1, - supportsHydration: !1, - noTimeout: -1, - appendChildToContainer: (S, _) => { - if (!_) - return; - const T = S.getState().scene; - !T.__r3f || (T.__r3f.root = S, r(T, _)); - }, - removeChildFromContainer: (S, _) => { - !_ || l(S.getState().scene, _); - }, - insertInContainerBefore: (S, _, T) => { - if (!_ || !T) - return; - const C = S.getState().scene; - !C.__r3f || i(C, _, T); - }, - getRootHostContext: () => null, - getChildHostContext: (S) => S, - finalizeInitialChildren(S) { - var _; - const T = (_ = S == null ? void 0 : S.__r3f) != null ? _ : {}; - return Boolean(T.handlers); - }, - prepareUpdate(S, _, T, C) { - if (S.__r3f.primitive && C.object && C.object !== S) - return [!0]; - { - const { - args: D = [], - children: P, - ...U - } = C, { - args: B = [], - children: k, - ...V - } = T; - if (!Array.isArray(D)) - throw new Error("R3F: the args prop must be an array!"); - if (D.some((X, J) => X !== B[J])) - return [!0]; - const I = M4(S, U, V, !0); - return I.changes.length ? [!1, I] : null; - } - }, - commitUpdate(S, [_, T], C, D, P, U) { - _ ? d(S, C, P, U) : uD(S, T); - }, - commitMount(S, _, T, C) { - var D; - const P = (D = S.__r3f) != null ? D : {}; - S.raycast && P.handlers && P.eventCount && S.__r3f.root.getState().internal.interaction.push(S); - }, - getPublicInstance: (S) => S, - prepareForCommit: () => null, - preparePortalMount: (S) => Fb(S.getState().scene), - resetAfterCommit: () => { - }, - shouldSetTextContent: () => !1, - clearContainer: () => !1, - hideInstance(S) { - var _; - const { - attach: T, - parent: C - } = (_ = S.__r3f) != null ? _ : {}; - T && C && uz(C, S, T), S.isObject3D && (S.visible = !1), kb(S); - }, - unhideInstance(S, _) { - var T; - const { - attach: C, - parent: D - } = (T = S.__r3f) != null ? T : {}; - C && D && lD(D, S, C), (S.isObject3D && _.visible == null || _.visible) && (S.visible = !0), kb(S); - }, - createTextInstance: h, - hideTextInstance: h, - unhideTextInstance: h, - getCurrentEventPriority: () => e ? e() : Xb.exports.DefaultEventPriority, - beforeActiveInstanceBlur: () => { - }, - afterActiveInstanceBlur: () => { - }, - detachDeletedInstance: () => { - }, - now: typeof performance < "u" && qu.fun(performance.now) ? performance.now : qu.fun(Date.now) ? Date.now : () => 0, - scheduleTimeout: qu.fun(setTimeout) ? setTimeout : void 0, - cancelTimeout: qu.fun(clearTimeout) ? clearTimeout : void 0 - }), - applyProps: uD - }; -} -const C4 = (a) => !!(a != null && a.render), R4 = /* @__PURE__ */ Or.createContext(null), P9 = (a, e) => { - const t = c9((d, h) => { - const m = new ve(), S = new ve(), _ = new ve(); - function T(B = h().camera, k = S, V = h().size) { +const Hk = (a) => !!(a != null && a.render), Vk = /* @__PURE__ */ Ln.createContext(null), j9 = (a, e) => { + const t = E9((d, p) => { + const g = new ge(), _ = new ge(), w = new ge(); + function T(H = p().camera, I = _, G = p().size) { const { - width: I, - height: X, - top: J, - left: $ - } = V, W = I / X; - k instanceof ve ? _.copy(k) : _.set(...k); - const ne = B.getWorldPosition(m).distanceTo(_); - if (S4(B)) + width: B, + height: Q, + top: K, + left: te + } = G, Y = B / Q; + I instanceof ge ? w.copy(I) : w.set(...I); + const re = H.getWorldPosition(g).distanceTo(w); + if (Uk(H)) return { - width: I / B.zoom, - height: X / B.zoom, - top: J, - left: $, + width: B / H.zoom, + height: Q / H.zoom, + top: K, + left: te, factor: 1, - distance: ne, - aspect: W + distance: re, + aspect: Y }; { - const ie = B.fov * Math.PI / 180, fe = 2 * Math.tan(ie / 2) * ne, le = fe * (I / X); + const se = H.fov * Math.PI / 180, ce = 2 * Math.tan(se / 2) * re, ue = ce * (B / Q); return { - width: le, - height: fe, - top: J, - left: $, - factor: I / le, - distance: ne, - aspect: W + width: ue, + height: ce, + top: K, + left: te, + factor: B / ue, + distance: re, + aspect: Y }; } } - let C; - const D = (B) => d((k) => ({ + let R; + const D = (H) => d((I) => ({ performance: { - ...k.performance, - current: B + ...I.performance, + current: H } - })), P = new Ft(); + })), O = new zt(); return { set: d, - get: h, + get: p, gl: null, camera: null, raycaster: null, @@ -34506,16 +34518,16 @@ const C4 = (a) => !!(a != null && a.render), R4 = /* @__PURE__ */ Or.createConte connected: !1 }, xr: null, - invalidate: (B = 1) => a(h(), B), - advance: (B, k) => e(B, k, h()), + invalidate: (H = 1) => a(p(), H), + advance: (H, I) => e(H, I, p()), legacy: !1, linear: !1, flat: !1, - scene: Fb(new zM()), + scene: Hw(new NM()), controls: null, - clock: new yL(), - pointer: P, - mouse: P, + clock: new gL(), + pointer: O, + mouse: O, frameloop: "always", onPointerMissed: void 0, performance: { @@ -34524,8 +34536,8 @@ const C4 = (a) => !!(a != null && a.render), R4 = /* @__PURE__ */ Or.createConte max: 1, debounce: 200, regress: () => { - const B = h(); - C && clearTimeout(C), B.performance.current !== B.performance.min && D(B.performance.min), C = setTimeout(() => D(h().performance.max), B.performance.debounce); + const H = p(); + R && clearTimeout(R), H.performance.current !== H.performance.min && D(H.performance.min), R = setTimeout(() => D(p().performance.max), H.performance.debounce); } }, size: { @@ -34547,43 +34559,43 @@ const C4 = (a) => !!(a != null && a.render), R4 = /* @__PURE__ */ Or.createConte factor: 0, getCurrentViewport: T }, - setEvents: (B) => d((k) => ({ - ...k, + setEvents: (H) => d((I) => ({ + ...I, events: { - ...k.events, - ...B + ...I.events, + ...H } })), - setSize: (B, k, V, I, X) => { - const J = h().camera, $ = { - width: B, - height: k, - top: I || 0, - left: X || 0, - updateStyle: V + setSize: (H, I, G, B, Q) => { + const K = p().camera, te = { + width: H, + height: I, + top: B || 0, + left: Q || 0, + updateStyle: G }; - d((W) => ({ - size: $, + d((Y) => ({ + size: te, viewport: { - ...W.viewport, - ...T(J, S, $) + ...Y.viewport, + ...T(K, _, te) } })); }, - setDpr: (B) => d((k) => { - const V = E4(B); + setDpr: (H) => d((I) => { + const G = kk(H); return { viewport: { - ...k.viewport, - dpr: V, - initialDpr: k.viewport.initialDpr || V + ...I.viewport, + dpr: G, + initialDpr: I.viewport.initialDpr || G } }; }), - setFrameloop: (B = "always") => { - const k = h().clock; - k.stop(), k.elapsedTime = 0, B !== "never" && (k.start(), k.elapsedTime = 0), d(() => ({ - frameloop: B + setFrameloop: (H = "always") => { + const I = p().clock; + I.stop(), I.elapsedTime = 0, H !== "never" && (I.start(), I.elapsedTime = 0), d(() => ({ + frameloop: H })); }, previousRoot: void 0, @@ -34591,116 +34603,131 @@ const C4 = (a) => !!(a != null && a.render), R4 = /* @__PURE__ */ Or.createConte active: !1, priority: 0, frames: 0, - lastEvent: /* @__PURE__ */ Or.createRef(), + lastEvent: /* @__PURE__ */ Ln.createRef(), interaction: [], hovered: /* @__PURE__ */ new Map(), subscribers: [], initialClick: [0, 0], initialHits: [], capturedMap: /* @__PURE__ */ new Map(), - subscribe: (B, k, V) => { - const I = h().internal; - return I.priority = I.priority + (k > 0 ? 1 : 0), I.subscribers.push({ - ref: B, - priority: k, - store: V - }), I.subscribers = I.subscribers.sort((X, J) => X.priority - J.priority), () => { - const X = h().internal; - X != null && X.subscribers && (X.priority = X.priority - (k > 0 ? 1 : 0), X.subscribers = X.subscribers.filter((J) => J.ref !== B)); + subscribe: (H, I, G) => { + const B = p().internal; + return B.priority = B.priority + (I > 0 ? 1 : 0), B.subscribers.push({ + ref: H, + priority: I, + store: G + }), B.subscribers = B.subscribers.sort((Q, K) => Q.priority - K.priority), () => { + const Q = p().internal; + Q != null && Q.subscribers && (Q.priority = Q.priority - (I > 0 ? 1 : 0), Q.subscribers = Q.subscribers.filter((K) => K.ref !== H)); }; } } }; }), r = t.getState(); - let i = r.size, o = r.viewport.dpr, l = r.camera; + let i = r.size, s = r.viewport.dpr, l = r.camera; return t.subscribe(() => { const { camera: d, - size: h, - viewport: m, - gl: S, - set: _ + size: p, + viewport: g, + gl: _, + set: w } = t.getState(); - (h !== i || m.dpr !== o) && (i = h, o = m.dpr, M9(d, h), S.setPixelRatio(m.dpr), S.setSize(h.width, h.height, h.updateStyle)), d !== l && (l = d, _((T) => ({ + if (p !== i || g.dpr !== s) { + var T; + i = p, s = g.dpr, H9(d, p), _.setPixelRatio(g.dpr); + const R = (T = p.updateStyle) != null ? T : typeof HTMLCanvasElement < "u" && _.domElement instanceof HTMLCanvasElement; + _.setSize(p.width, p.height, R); + } + d !== l && (l = d, w((R) => ({ viewport: { - ...T.viewport, - ...T.viewport.getCurrentViewport(d) + ...R.viewport, + ...R.viewport.getCurrentViewport(d) } }))); }), t.subscribe((d) => a(d)), t; }; -let Q2, O9 = /* @__PURE__ */ new Set(), U9 = /* @__PURE__ */ new Set(), z9 = /* @__PURE__ */ new Set(); +let Z2, Y9 = /* @__PURE__ */ new Set(), X9 = /* @__PURE__ */ new Set(), q9 = /* @__PURE__ */ new Set(); function fD(a, e) { - !a.size || a.forEach(({ - callback: t - }) => t(e)); + if (!!a.size) + for (const { + callback: t + } of a.values()) + t(e); } function lM(a, e) { switch (a) { case "before": - return fD(O9, e); + return fD(Y9, e); case "after": - return fD(U9, e); + return fD(X9, e); case "tail": - return fD(z9, e); + return fD(q9, e); } } let dD, hD; function pD(a, e, t) { let r = e.clock.getDelta(); - for (e.frameloop === "never" && typeof a == "number" && (r = a - e.clock.elapsedTime, e.clock.oldTime = e.clock.elapsedTime, e.clock.elapsedTime = a), dD = e.internal.subscribers, Q2 = 0; Q2 < dD.length; Q2++) - hD = dD[Q2], hD.ref.current(hD.store.getState(), r, t); + for (e.frameloop === "never" && typeof a == "number" && (r = a - e.clock.elapsedTime, e.clock.oldTime = e.clock.elapsedTime, e.clock.elapsedTime = a), dD = e.internal.subscribers, Z2 = 0; Z2 < dD.length; Z2++) + hD = dD[Z2], hD.ref.current(hD.store.getState(), r, t); return !e.internal.priority && e.gl.render && e.gl.render(e.scene, e.camera), e.internal.frames = Math.max(0, e.internal.frames - 1), e.frameloop === "always" ? 1 : e.internal.frames; } -function N9(a) { +function Q9(a) { let e = !1, t, r, i; - function o(h) { - if (r = requestAnimationFrame(o), e = !0, t = 0, lM("before", h), a.forEach((m) => { - var S; - i = m.store.getState(), i.internal.active && (i.frameloop === "always" || i.internal.frames > 0) && !((S = i.gl.xr) != null && S.isPresenting) && (t += pD(h, i)); - }), lM("after", h), t === 0) - return lM("tail", h), e = !1, cancelAnimationFrame(r); + function s(p) { + r = requestAnimationFrame(s), e = !0, t = 0, lM("before", p); + for (const _ of a.values()) { + var g; + i = _.store.getState(), i.internal.active && (i.frameloop === "always" || i.internal.frames > 0) && !((g = i.gl.xr) != null && g.isPresenting) && (t += pD(p, i)); + } + if (lM("after", p), t === 0) + return lM("tail", p), e = !1, cancelAnimationFrame(r); } - function l(h, m = 1) { - var S; - if (!h) - return a.forEach((_) => l(_.store.getState()), m); - (S = h.gl.xr) != null && S.isPresenting || !h.internal.active || h.frameloop === "never" || (h.internal.frames = Math.min(60, h.internal.frames + m), e || (e = !0, requestAnimationFrame(o))); + function l(p, g = 1) { + var _; + if (!p) + return a.forEach((w) => l(w.store.getState()), g); + (_ = p.gl.xr) != null && _.isPresenting || !p.internal.active || p.frameloop === "never" || (p.internal.frames = Math.min(60, p.internal.frames + g), e || (e = !0, requestAnimationFrame(s))); } - function d(h, m = !0, S, _) { - m && lM("before", h), S ? pD(h, S, _) : a.forEach((T) => pD(h, T.store.getState())), m && lM("after", h); + function d(p, g = !0, _, w) { + if (g && lM("before", p), _) + pD(p, _, w); + else + for (const T of a.values()) + pD(p, T.store.getState()); + g && lM("after", p); } return { - loop: o, + loop: s, invalidate: l, advance: d }; } -function A4() { - const a = Or.useContext(R4); +function Gk() { + const a = Ln.useContext(Vk); if (!a) throw new Error("R3F: Hooks can only be used within the Canvas component!"); return a; } -function Od(a = (t) => t, e) { - return A4()(a, e); +function jf(a = (t) => t, e) { + return Gk()(a, e); } -function yy(a, e = 0) { - const t = A4(), r = t.getState().internal.subscribe, i = _4(a); +function Am(a, e = 0) { + const t = Gk(), r = t.getState().internal.subscribe, i = zk(a); return iT(() => r(i, e, t), [e, r, t]), null; } -const cw = /* @__PURE__ */ new Map(), { - invalidate: cz, - advance: fz -} = N9(cw), { +const cb = /* @__PURE__ */ new Map(), { + invalidate: pz, + advance: mz +} = Q9(cb), { reconciler: AC, - applyProps: Z2 -} = L9(cw, C9), Ub = { + applyProps: J2 +} = N9(cb, V9), Iw = { objects: "shallow", strict: !1 -}, F9 = (a, e) => { +}, Z9 = (a, e) => { const t = typeof a == "function" ? a(e) : a; - return C4(t) ? t : new $3({ + return Hk(t) ? t : new $3({ powerPreference: "high-performance", canvas: e, antialias: !0, @@ -34708,26 +34735,29 @@ const cw = /* @__PURE__ */ new Map(), { ...a }); }; -function k9(a) { - return a instanceof HTMLCanvasElement; -} -function I9(a, e) { +function J9(a, e) { if (e) return e; - if (k9(a) && a.parentElement) { + if (typeof HTMLCanvasElement < "u" && a instanceof HTMLCanvasElement && a.parentElement) { const { width: t, height: r, top: i, - left: o + left: s } = a.parentElement.getBoundingClientRect(); return { width: t, height: r, top: i, - left: o + left: s + }; + } else if (typeof OffscreenCanvas < "u" && a instanceof OffscreenCanvas) + return { + width: a.width, + height: a.height, + top: 0, + left: 0 }; - } return { width: 0, height: 0, @@ -34735,112 +34765,124 @@ function I9(a, e) { left: 0 }; } -function B9(a) { - const e = cw.get(a), t = e == null ? void 0 : e.fiber, r = e == null ? void 0 : e.store; +function K9(a) { + const e = cb.get(a), t = e == null ? void 0 : e.fiber, r = e == null ? void 0 : e.store; e && console.warn("R3F.createRoot should only be called once!"); - const i = typeof reportError == "function" ? reportError : console.error, o = r || P9(cz, fz), l = t || AC.createContainer(o, Xb.exports.ConcurrentRoot, null, !1, null, "", i, null); - e || cw.set(a, { + const i = typeof reportError == "function" ? reportError : console.error, s = r || j9(pz, mz), l = t || AC.createContainer(s, I_.exports.ConcurrentRoot, null, !1, null, "", i, null); + e || cb.set(a, { fiber: l, - store: o + store: s }); - let d, h = !1; + let d, p = !1, g; return { - configure(m = {}) { + configure(_ = {}) { let { - gl: S, - size: _, - events: T, - onCreated: C, - shadows: D = !1, - linear: P = !1, - flat: U = !1, - legacy: B = !1, - orthographic: k = !1, - frameloop: V = "always", - dpr: I = [1, 2], - performance: X, - raycaster: J, - camera: $, - onPointerMissed: W - } = m, ne = o.getState(), ie = ne.gl; - ne.gl || ne.set({ - gl: ie = F9(S, a) + gl: w, + size: T, + events: R, + onCreated: D, + shadows: O = !1, + linear: U = !1, + flat: H = !1, + legacy: I = !1, + orthographic: G = !1, + frameloop: B = "always", + dpr: Q = [1, 2], + performance: K, + raycaster: te, + camera: Y, + onPointerMissed: re + } = _, se = s.getState(), ce = se.gl; + se.gl || se.set({ + gl: ce = Z9(w, a) }); - let fe = ne.raycaster; - fe || ne.set({ - raycaster: fe = new _L() + let ue = se.raycaster; + ue || se.set({ + raycaster: ue = new _L() }); const { - params: le, - ...Ee - } = J || {}; - if (qu.equ(Ee, fe, Ub) || Z2(fe, { - ...Ee - }), qu.equ(le, fe.params, Ub) || Z2(fe, { + params: Me, + ...me + } = te || {}; + if (Al.equ(me, ue, Iw) || J2(ue, { + ...me + }), Al.equ(Me, ue.params, Iw) || J2(ue, { params: { - ...fe.params, - ...le - } - }), !ne.camera) { - const Be = $ instanceof pw, pe = Be ? $ : k ? new cy(0, 0, 0, 0, 0.1, 1e3) : new ho(75, 0, 0.1, 1e3); - Be || (pe.position.z = 5, $ && Z2(pe, $), $ != null && $.rotation || pe.lookAt(0, 0, 0)), ne.set({ - camera: pe + ...ue.params, + ...Me + } + }), !se.camera || se.camera === g && !Al.equ(g, Y, Iw)) { + g = Y; + const he = Y instanceof pb, ye = he ? Y : G ? new dy(0, 0, 0, 0, 0.1, 1e3) : new ho(75, 0, 0.1, 1e3); + he || (ye.position.z = 5, Y && J2(ye, Y), !se.camera && !(Y != null && Y.rotation) && ye.lookAt(0, 0, 0)), se.set({ + camera: ye }); } - if (!ne.xr) { - const Be = (ce, ye) => { - const we = o.getState(); - we.frameloop !== "never" && fz(ce, !0, we, ye); - }, pe = () => { - const ce = o.getState(); - ce.gl.xr.enabled = ce.gl.xr.isPresenting, ce.gl.xr.setAnimationLoop(ce.gl.xr.isPresenting ? Be : null), ce.gl.xr.isPresenting || cz(ce); - }, de = { + if (!se.xr) { + const he = (Ve, Je) => { + const rt = s.getState(); + rt.frameloop !== "never" && mz(Ve, !0, rt, Je); + }, ye = () => { + const Ve = s.getState(); + Ve.gl.xr.enabled = Ve.gl.xr.isPresenting, Ve.gl.xr.setAnimationLoop(Ve.gl.xr.isPresenting ? he : null), Ve.gl.xr.isPresenting || pz(Ve); + }, Ee = { connect() { - const ce = o.getState().gl; - ce.xr.addEventListener("sessionstart", pe), ce.xr.addEventListener("sessionend", pe); + const Ve = s.getState().gl; + Ve.xr.addEventListener("sessionstart", ye), Ve.xr.addEventListener("sessionend", ye); }, disconnect() { - const ce = o.getState().gl; - ce.xr.removeEventListener("sessionstart", pe), ce.xr.removeEventListener("sessionend", pe); + const Ve = s.getState().gl; + Ve.xr.removeEventListener("sessionstart", ye), Ve.xr.removeEventListener("sessionend", ye); } }; - ie.xr && de.connect(), ne.set({ - xr: de + ce.xr && Ee.connect(), se.set({ + xr: Ee }); } - if (ie.shadowMap) { - const Be = qu.boo(D); - if (Be && ie.shadowMap.enabled !== D || !qu.equ(D, ie.shadowMap, Ub)) { - const pe = ie.shadowMap.enabled; - ie.shadowMap.enabled = !!D, Be ? ie.shadowMap.type = H3 : Object.assign(ie.shadowMap, D), pe !== ie.shadowMap.enabled && (ie.shadowMap.needsUpdate = !0); - } - } - "ColorManagement" in RC && T9(RC, B, ["ColorManagement", "legacyMode"]); - const he = P ? yv : Mi, Fe = U ? ig : G3; - ie.outputEncoding !== he && (ie.outputEncoding = he), ie.toneMapping !== Fe && (ie.toneMapping = Fe), ne.legacy !== B && ne.set(() => ({ - legacy: B - })), ne.linear !== P && ne.set(() => ({ - linear: P - })), ne.flat !== U && ne.set(() => ({ - flat: U - })), S && !qu.fun(S) && !C4(S) && !qu.equ(S, ie, Ub) && Z2(ie, S), T && !ne.events.handlers && ne.set({ - events: T(o) - }), I && ne.viewport.dpr !== E4(I) && ne.setDpr(I); - const Ce = I9(a, _); - return qu.equ(Ce, ne.size, Ub) || ne.setSize(Ce.width, Ce.height, Ce.updateStyle, Ce.top, Ce.left), ne.frameloop !== V && ne.setFrameloop(V), ne.onPointerMissed || ne.set({ - onPointerMissed: W - }), X && !qu.equ(X, ne.performance, Ub) && ne.set((Be) => ({ + if (ce.shadowMap) { + const he = ce.shadowMap.enabled, ye = ce.shadowMap.type; + if (ce.shadowMap.enabled = !!O, Al.boo(O)) + ce.shadowMap.type = _M; + else if (Al.str(O)) { + var De; + const Ee = { + basic: FN, + percentage: UC, + soft: _M, + variance: U_ + }; + ce.shadowMap.type = (De = Ee[O]) != null ? De : _M; + } else + Al.obj(O) && Object.assign(ce.shadowMap, O); + (he !== ce.shadowMap.enabled || ye !== ce.shadowMap.type) && (ce.shadowMap.needsUpdate = !0); + } + const Re = Ok(); + Re && ("enabled" in Re ? Re.enabled = !I : "legacyMode" in Re && (Re.legacyMode = I)); + const He = U ? wv : gi, ve = H ? og : G3; + ce.outputEncoding !== He && (ce.outputEncoding = He), ce.toneMapping !== ve && (ce.toneMapping = ve), se.legacy !== I && se.set(() => ({ + legacy: I + })), se.linear !== U && se.set(() => ({ + linear: U + })), se.flat !== H && se.set(() => ({ + flat: H + })), w && !Al.fun(w) && !Hk(w) && !Al.equ(w, ce, Iw) && J2(ce, w), R && !se.events.handlers && se.set({ + events: R(s) + }); + const fe = J9(a, T); + return Al.equ(fe, se.size, Iw) || se.setSize(fe.width, fe.height, fe.updateStyle, fe.top, fe.left), Q && se.viewport.dpr !== kk(Q) && se.setDpr(Q), se.frameloop !== B && se.setFrameloop(B), se.onPointerMissed || se.set({ + onPointerMissed: re + }), K && !Al.equ(K, se.performance, Iw) && se.set((he) => ({ performance: { - ...Be.performance, - ...X + ...he.performance, + ...K } - })), d = C, h = !0, this; + })), d = D, p = !0, this; }, - render(m) { - return h || this.configure(), AC.updateContainer( - /* @__PURE__ */ _n(H9, { - store: o, - children: m, + render(_) { + return p || this.configure(), AC.updateContainer( + /* @__PURE__ */ ln($9, { + store: s, + children: _, onCreated: d, rootElement: a }), @@ -34848,14 +34890,14 @@ function B9(a) { null, () => { } - ), o; + ), s; }, unmount() { - D4(a); + Wk(a); } }; } -function H9({ +function $9({ store: a, children: e, onCreated: t, @@ -34863,25 +34905,25 @@ function H9({ }) { return iT(() => { const i = a.getState(); - i.set((o) => ({ + i.set((s) => ({ internal: { - ...o.internal, + ...s.internal, active: !0 } })), t && t(i), a.getState().events.connected || i.events.connect == null || i.events.connect(r); - }, []), /* @__PURE__ */ Or.createElement(R4.Provider, { + }, []), /* @__PURE__ */ Ln.createElement(Vk.Provider, { value: a }, e); } -function D4(a, e) { - const t = cw.get(a), r = t == null ? void 0 : t.fiber; +function Wk(a, e) { + const t = cb.get(a), r = t == null ? void 0 : t.fiber; if (r) { const i = t == null ? void 0 : t.store.getState(); i && (i.internal.active = !1), AC.updateContainer(null, r, null, () => { i && setTimeout(() => { try { - var o, l, d, h; - i.events.disconnect == null || i.events.disconnect(), (o = i.gl) == null || (l = o.renderLists) == null || l.dispose == null || l.dispose(), (d = i.gl) == null || d.forceContextLoss == null || d.forceContextLoss(), (h = i.gl) != null && h.xr && i.xr.disconnect(), E9(i), cw.delete(a), e && e(a); + var s, l, d, p; + i.events.disconnect == null || i.events.disconnect(), (s = i.gl) == null || (l = s.renderLists) == null || l.dispose == null || l.dispose(), (d = i.gl) == null || d.forceContextLoss == null || d.forceContextLoss(), (p = i.gl) != null && p.xr && i.xr.disconnect(), B9(i), cb.delete(a), e && e(a); } catch { } }, 500); @@ -34891,29 +34933,39 @@ function D4(a, e) { AC.injectIntoDevTools({ bundleType: process.env.NODE_ENV === "production" ? 0 : 1, rendererPackageName: "@react-three/fiber", - version: Or.version + version: Ln.version }); -function T3(a, e, t) { - var r, i, o, l, d; +function C3() { + return C3 = Object.assign ? Object.assign.bind() : function(a) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) + Object.prototype.hasOwnProperty.call(t, r) && (a[r] = t[r]); + } + return a; + }, C3.apply(this, arguments); +} +function R3(a, e, t) { + var r, i, s, l, d; e == null && (e = 100); - function h() { - var S = Date.now() - l; - S < e && S >= 0 ? r = setTimeout(h, e - S) : (r = null, t || (d = a.apply(o, i), o = i = null)); - } - var m = function() { - o = this, i = arguments, l = Date.now(); - var S = t && !r; - return r || (r = setTimeout(h, e)), S && (d = a.apply(o, i), o = i = null), d; + function p() { + var _ = Date.now() - l; + _ < e && _ >= 0 ? r = setTimeout(p, e - _) : (r = null, t || (d = a.apply(s, i), s = i = null)); + } + var g = function() { + s = this, i = arguments, l = Date.now(); + var _ = t && !r; + return r || (r = setTimeout(p, e)), _ && (d = a.apply(s, i), s = i = null), d; }; - return m.clear = function() { + return g.clear = function() { r && (clearTimeout(r), r = null); - }, m.flush = function() { - r && (d = a.apply(o, i), o = i = null, clearTimeout(r), r = null); - }, m; + }, g.flush = function() { + r && (d = a.apply(s, i), s = i = null, clearTimeout(r), r = null); + }, g; } -T3.debounce = T3; -var dz = T3; -function V9(a) { +R3.debounce = R3; +var vz = R3; +function ej(a) { let { debounce: e, scroll: t, @@ -34924,11 +34976,11 @@ function V9(a) { scroll: !1, offsetSize: !1 } : a; - const o = r || (typeof window > "u" ? class { + const s = r || (typeof window > "u" ? class { } : window.ResizeObserver); - if (!o) + if (!s) throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills"); - const [l, d] = Ib({ + const [l, d] = O_({ left: 0, top: 0, width: 0, @@ -34937,64 +34989,64 @@ function V9(a) { right: 0, x: 0, y: 0 - }), h = co({ + }), p = Xs({ element: null, scrollContainers: null, resizeObserver: null, lastBounds: l - }), m = e ? typeof e == "number" ? e : e.scroll : null, S = e ? typeof e == "number" ? e : e.resize : null, _ = co(!1); - fh(() => (_.current = !0, () => void (_.current = !1))); - const [T, C, D] = Qb(() => { - const k = () => { - if (!h.current.element) + }), g = e ? typeof e == "number" ? e : e.scroll : null, _ = e ? typeof e == "number" ? e : e.resize : null, w = Xs(!1); + hh(() => (w.current = !0, () => void (w.current = !1))); + const [T, R, D] = Qw(() => { + const I = () => { + if (!p.current.element) return; const { - left: V, - top: I, - width: X, - height: J, - bottom: $, - right: W, - x: ne, - y: ie - } = h.current.element.getBoundingClientRect(), fe = { - left: V, - top: I, - width: X, - height: J, - bottom: $, - right: W, - x: ne, - y: ie + left: G, + top: B, + width: Q, + height: K, + bottom: te, + right: Y, + x: re, + y: se + } = p.current.element.getBoundingClientRect(), ce = { + left: G, + top: B, + width: Q, + height: K, + bottom: te, + right: Y, + x: re, + y: se }; - h.current.element instanceof HTMLElement && i && (fe.height = h.current.element.offsetHeight, fe.width = h.current.element.offsetWidth), Object.freeze(fe), _.current && !Y9(h.current.lastBounds, fe) && d(h.current.lastBounds = fe); + p.current.element instanceof HTMLElement && i && (ce.height = p.current.element.offsetHeight, ce.width = p.current.element.offsetWidth), Object.freeze(ce), w.current && !ij(p.current.lastBounds, ce) && d(p.current.lastBounds = ce); }; - return [k, S ? dz(k, S) : k, m ? dz(k, m) : k]; - }, [d, i, m, S]); - function P() { - h.current.scrollContainers && (h.current.scrollContainers.forEach((k) => k.removeEventListener("scroll", D, !0)), h.current.scrollContainers = null), h.current.resizeObserver && (h.current.resizeObserver.disconnect(), h.current.resizeObserver = null); + return [I, _ ? vz(I, _) : I, g ? vz(I, g) : I]; + }, [d, i, g, _]); + function O() { + p.current.scrollContainers && (p.current.scrollContainers.forEach((I) => I.removeEventListener("scroll", D, !0)), p.current.scrollContainers = null), p.current.resizeObserver && (p.current.resizeObserver.disconnect(), p.current.resizeObserver = null); } function U() { - !h.current.element || (h.current.resizeObserver = new o(D), h.current.resizeObserver.observe(h.current.element), t && h.current.scrollContainers && h.current.scrollContainers.forEach((k) => k.addEventListener("scroll", D, { + !p.current.element || (p.current.resizeObserver = new s(D), p.current.resizeObserver.observe(p.current.element), t && p.current.scrollContainers && p.current.scrollContainers.forEach((I) => I.addEventListener("scroll", D, { capture: !0, passive: !0 }))); } - const B = (k) => { - !k || k === h.current.element || (P(), h.current.element = k, h.current.scrollContainers = L4(k), U()); + const H = (I) => { + !I || I === p.current.element || (O(), p.current.element = I, p.current.scrollContainers = jk(I), U()); }; - return W9(D, Boolean(t)), G9(C), fh(() => { - P(), U(); - }, [t, D, C]), fh(() => P, []), [B, l, T]; + return nj(D, Boolean(t)), tj(R), hh(() => { + O(), U(); + }, [t, D, R]), hh(() => O, []), [H, l, T]; } -function G9(a) { - fh(() => { +function tj(a) { + hh(() => { const e = a; return window.addEventListener("resize", e), () => void window.removeEventListener("resize", e); }, [a]); } -function W9(a, e) { - fh(() => { +function nj(a, e) { + hh(() => { if (e) { const t = a; return window.addEventListener("scroll", t, { @@ -35004,7 +35056,7 @@ function W9(a, e) { } }, [a, e]); } -function L4(a) { +function jk(a) { const e = []; if (!a || a === document.body) return e; @@ -35013,9 +35065,100 @@ function L4(a) { overflowX: r, overflowY: i } = window.getComputedStyle(a); - return [t, r, i].some((o) => o === "auto" || o === "scroll") && e.push(a), [...e, ...L4(a.parentElement)]; + return [t, r, i].some((s) => s === "auto" || s === "scroll") && e.push(a), [...e, ...jk(a.parentElement)]; +} +const rj = ["x", "y", "top", "bottom", "left", "right", "width", "height"], ij = (a, e) => rj.every((t) => a[t] === e[t]); +var aj = Object.defineProperty, sj = Object.defineProperties, oj = Object.getOwnPropertyDescriptors, gz = Object.getOwnPropertySymbols, lj = Object.prototype.hasOwnProperty, uj = Object.prototype.propertyIsEnumerable, yz = (a, e, t) => e in a ? aj(a, e, { + enumerable: !0, + configurable: !0, + writable: !0, + value: t +}) : a[e] = t, xz = (a, e) => { + for (var t in e || (e = {})) + lj.call(e, t) && yz(a, t, e[t]); + if (gz) + for (var t of gz(e)) + uj.call(e, t) && yz(a, t, e[t]); + return a; +}, cj = (a, e) => sj(a, oj(e)), _z; +function Yk(a, e, t) { + if (!a) + return; + if (t(a) === !0) + return a; + let r = e ? a.return : a.child; + for (; r; ) { + const i = Yk(r, e, t); + if (i) + return i; + r = e ? null : r.sibling; + } +} +function Xk(a) { + try { + return Object.defineProperties(a, { + _currentRenderer: { + get() { + return null; + }, + set() { + } + }, + _currentRenderer2: { + get() { + return null; + }, + set() { + } + } + }); + } catch { + return a; + } +} +const bL = Xk(Ln.createContext(null)); +class qk extends Ln.Component { + render() { + return /* @__PURE__ */ ln(bL.Provider, { + value: this._reactInternals, + children: this.props.children + }); + } +} +const { + ReactCurrentOwner: Sz, + ReactCurrentDispatcher: wz +} = (_z = Ln.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) != null ? _z : {}; +function fj() { + const a = Ln.useContext(bL), e = Ln.useId(); + return Ln.useMemo(() => { + var r; + return (r = Sz == null ? void 0 : Sz.current) != null ? r : Yk(a, !1, (i) => { + let s = i.memoizedState; + for (; s; ) { + if (s.memoizedState === e) + return !0; + s = s.next; + } + }); + }, [a, e]); } -const j9 = ["x", "y", "top", "bottom", "left", "right", "width", "height"], Y9 = (a, e) => j9.every((t) => a[t] === e[t]), mD = { +function dj() { + var a, e; + const t = fj(), [r] = Ln.useState(() => /* @__PURE__ */ new Map()); + r.clear(); + let i = t; + for (; i; ) { + const s = (a = i.type) == null ? void 0 : a._context; + s && s !== bL && !r.has(s) && r.set(s, (e = wz == null ? void 0 : wz.current) == null ? void 0 : e.readContext(Xk(s))), i = i.return; + } + return Ln.useMemo(() => Array.from(r.keys()).reduce((s, l) => (d) => /* @__PURE__ */ Ln.createElement(s, null, /* @__PURE__ */ Ln.createElement(l.Provider, cj(xz({}, d), { + value: r.get(l) + }))), (s) => /* @__PURE__ */ ln(qk, { + ...xz({}, s) + })), [r]); +} +const mD = { onClick: ["click", !1], onContextMenu: ["contextmenu", !1], onDoubleClick: ["dblclick", !1], @@ -35027,10 +35170,10 @@ const j9 = ["x", "y", "top", "bottom", "left", "right", "width", "height"], Y9 = onPointerCancel: ["pointercancel", !0], onLostPointerCapture: ["lostpointercapture", !0] }; -function X9(a) { +function hj(a) { const { handlePointer: e - } = A9(a); + } = W9(a); return { priority: 1, enabled: !0, @@ -35042,21 +35185,29 @@ function X9(a) { ...t, [r]: e(r) }), {}), + update: () => { + var t; + const { + events: r, + internal: i + } = a.getState(); + (t = i.lastEvent) != null && t.current && r.handlers && r.handlers.onPointerMove(i.lastEvent.current); + }, connect: (t) => { var r; const { set: i, - events: o + events: s } = a.getState(); - o.disconnect == null || o.disconnect(), i((l) => ({ + s.disconnect == null || s.disconnect(), i((l) => ({ events: { ...l.events, connected: t } - })), Object.entries((r = o.handlers) != null ? r : []).forEach(([l, d]) => { - const [h, m] = mD[l]; - t.addEventListener(h, d, { - passive: m + })), Object.entries((r = s.handlers) != null ? r : []).forEach(([l, d]) => { + const [p, g] = mD[l]; + t.addEventListener(p, d, { + passive: g }); }); }, @@ -35067,14 +35218,14 @@ function X9(a) { } = a.getState(); if (r.connected) { var i; - Object.entries((i = r.handlers) != null ? i : []).forEach(([o, l]) => { + Object.entries((i = r.handlers) != null ? i : []).forEach(([s, l]) => { if (r && r.connected instanceof HTMLElement) { - const [d] = mD[o]; + const [d] = mD[s]; r.connected.removeEventListener(d, l); } - }), t((o) => ({ + }), t((s) => ({ events: { - ...o.events, + ...s.events, connected: void 0 } })); @@ -35082,85 +35233,89 @@ function X9(a) { } }; } -const P4 = /* @__PURE__ */ Or.forwardRef(function({ +const pj = /* @__PURE__ */ Ln.forwardRef(function({ children: e, fallback: t, resize: r, style: i, - gl: o, - events: l = X9, + gl: s, + events: l = hj, eventSource: d, - eventPrefix: h, - shadows: m, - linear: S, - flat: _, + eventPrefix: p, + shadows: g, + linear: _, + flat: w, legacy: T, - orthographic: C, + orthographic: R, frameloop: D, - dpr: P, + dpr: O, performance: U, - raycaster: B, - camera: k, - onPointerMissed: V, - onCreated: I, - ...X -}, J) { - Or.useMemo(() => D9(RC), []); - const [$, W] = V9({ + raycaster: H, + camera: I, + onPointerMissed: G, + onCreated: B, + ...Q +}, K) { + Ln.useMemo(() => z9(x9), []); + const te = dj(), [Y, re] = ej({ scroll: !0, debounce: { scroll: 50, resize: 0 }, ...r - }), ne = Or.useRef(null), ie = Or.useRef(null), [fe, le] = Or.useState(null); - Or.useImperativeHandle(J, () => ne.current); - const Ee = _4(V), [he, Fe] = Or.useState(!1), [Ce, Be] = Or.useState(!1); - if (he) - throw he; - if (Ce) - throw Ce; - const pe = Or.useRef(null); - return W.width > 0 && W.height > 0 && fe && (pe.current || (pe.current = B9(fe)), pe.current.configure({ - gl: o, - events: l, - shadows: m, - linear: S, - flat: _, - legacy: T, - orthographic: C, - frameloop: D, - dpr: P, - performance: U, - raycaster: B, - camera: k, - size: W, - onPointerMissed: (...ce) => Ee.current == null ? void 0 : Ee.current(...ce), - onCreated: (ce) => { - ce.events.connect == null || ce.events.connect(d ? _9(d) ? d.current : d : ie.current), h && ce.setEvents({ - compute: (ye, we) => { - const Xe = ye[h + "X"], Je = ye[h + "Y"]; - we.pointer.set(Xe / we.size.width * 2 - 1, -(Je / we.size.height) * 2 + 1), we.raycaster.setFromCamera(we.pointer, we.camera); - } - }), I == null || I(ce); - } - }), pe.current.render( - /* @__PURE__ */ _n(b4, { - set: Be, - children: /* @__PURE__ */ _n(Or.Suspense, { - fallback: /* @__PURE__ */ _n(b9, { - set: Fe - }), - children: e + }), se = Ln.useRef(null), ce = Ln.useRef(null); + Ln.useImperativeHandle(K, () => se.current); + const ue = zk(G), [Me, me] = Ln.useState(!1), [De, Re] = Ln.useState(!1); + if (Me) + throw Me; + if (De) + throw De; + const He = Ln.useRef(null); + return iT(() => { + const fe = se.current; + re.width > 0 && re.height > 0 && fe && (He.current || (He.current = K9(fe)), He.current.configure({ + gl: s, + events: l, + shadows: g, + linear: _, + flat: w, + legacy: T, + orthographic: R, + frameloop: D, + dpr: O, + performance: U, + raycaster: H, + camera: I, + size: re, + onPointerMissed: (...he) => ue.current == null ? void 0 : ue.current(...he), + onCreated: (he) => { + he.events.connect == null || he.events.connect(d ? F9(d) ? d.current : d : ce.current), p && he.setEvents({ + compute: (ye, Ee) => { + const Ve = ye[p + "X"], Je = ye[p + "Y"]; + Ee.pointer.set(Ve / Ee.size.width * 2 - 1, -(Je / Ee.size.height) * 2 + 1), Ee.raycaster.setFromCamera(Ee.pointer, Ee.camera); + } + }), B == null || B(he); + } + }), He.current.render( + /* @__PURE__ */ ln(te, { + children: /* @__PURE__ */ ln(Nk, { + set: Re, + children: /* @__PURE__ */ ln(Ln.Suspense, { + fallback: /* @__PURE__ */ ln(k9, { + set: me + }), + children: e + }) + }) }) - }) - )), iT(() => { - le(ne.current); - }, []), Or.useEffect(() => { + )); + }), Ln.useEffect(() => { + const fe = se.current; if (fe) - return () => D4(fe); - }, [fe]), /* @__PURE__ */ _n("div", { - ref: ie, + return () => Wk(fe); + }, []), /* @__PURE__ */ ln("div", { + ref: ce, style: { position: "relative", width: "100%", @@ -35169,15 +35324,15 @@ const P4 = /* @__PURE__ */ Or.forwardRef(function({ pointerEvents: d ? "none" : "auto", ...i }, - ...X, - children: /* @__PURE__ */ _n("div", { - ref: $, + ...Q, + children: /* @__PURE__ */ ln("div", { + ref: Y, style: { width: "100%", height: "100%" }, - children: /* @__PURE__ */ _n("canvas", { - ref: ne, + children: /* @__PURE__ */ ln("canvas", { + ref: se, style: { display: "block" }, @@ -35185,290 +35340,15 @@ const P4 = /* @__PURE__ */ Or.forwardRef(function({ }) }) }); -}); -var BS = [], q9 = function() { - return BS.some(function(a) { - return a.activeTargets.length > 0; - }); -}, Q9 = function() { - return BS.some(function(a) { - return a.skippedTargets.length > 0; - }); -}, hz = "ResizeObserver loop completed with undelivered notifications.", Z9 = function() { - var a; - typeof ErrorEvent == "function" ? a = new ErrorEvent("error", { - message: hz - }) : (a = document.createEvent("Event"), a.initEvent("error", !1, !1), a.message = hz), window.dispatchEvent(a); -}, YM; -(function(a) { - a.BORDER_BOX = "border-box", a.CONTENT_BOX = "content-box", a.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box"; -})(YM || (YM = {})); -var HS = function(a) { - return Object.freeze(a); -}, J9 = function() { - function a(e, t) { - this.inlineSize = e, this.blockSize = t, HS(this); - } - return a; -}(), O4 = function() { - function a(e, t, r, i) { - return this.x = e, this.y = t, this.width = r, this.height = i, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, HS(this); - } - return a.prototype.toJSON = function() { - var e = this, t = e.x, r = e.y, i = e.top, o = e.right, l = e.bottom, d = e.left, h = e.width, m = e.height; - return { x: t, y: r, top: i, right: o, bottom: l, left: d, width: h, height: m }; - }, a.fromRect = function(e) { - return new a(e.x, e.y, e.width, e.height); - }, a; -}(), wL = function(a) { - return a instanceof SVGElement && "getBBox" in a; -}, U4 = function(a) { - if (wL(a)) { - var e = a.getBBox(), t = e.width, r = e.height; - return !t && !r; - } - var i = a, o = i.offsetWidth, l = i.offsetHeight; - return !(o || l || a.getClientRects().length); -}, pz = function(a) { - var e, t; - if (a instanceof Element) - return !0; - var r = (t = (e = a) === null || e === void 0 ? void 0 : e.ownerDocument) === null || t === void 0 ? void 0 : t.defaultView; - return !!(r && a instanceof r.Element); -}, K9 = function(a) { - switch (a.tagName) { - case "INPUT": - if (a.type !== "image") - break; - case "VIDEO": - case "AUDIO": - case "EMBED": - case "OBJECT": - case "CANVAS": - case "IFRAME": - case "IMG": - return !0; - } - return !1; -}, _M = typeof window < "u" ? window : {}, J2 = /* @__PURE__ */ new WeakMap(), mz = /auto|scroll/, $9 = /^tb|vertical/, ej = /msie|trident/i.test(_M.navigator && _M.navigator.userAgent), ry = function(a) { - return parseFloat(a || "0"); -}, qb = function(a, e, t) { - return a === void 0 && (a = 0), e === void 0 && (e = 0), t === void 0 && (t = !1), new J9((t ? e : a) || 0, (t ? a : e) || 0); -}, vz = HS({ - devicePixelContentBoxSize: qb(), - borderBoxSize: qb(), - contentBoxSize: qb(), - contentRect: new O4(0, 0, 0, 0) -}), z4 = function(a, e) { - if (e === void 0 && (e = !1), J2.has(a) && !e) - return J2.get(a); - if (U4(a)) - return J2.set(a, vz), vz; - var t = getComputedStyle(a), r = wL(a) && a.ownerSVGElement && a.getBBox(), i = !ej && t.boxSizing === "border-box", o = $9.test(t.writingMode || ""), l = !r && mz.test(t.overflowY || ""), d = !r && mz.test(t.overflowX || ""), h = r ? 0 : ry(t.paddingTop), m = r ? 0 : ry(t.paddingRight), S = r ? 0 : ry(t.paddingBottom), _ = r ? 0 : ry(t.paddingLeft), T = r ? 0 : ry(t.borderTopWidth), C = r ? 0 : ry(t.borderRightWidth), D = r ? 0 : ry(t.borderBottomWidth), P = r ? 0 : ry(t.borderLeftWidth), U = _ + m, B = h + S, k = P + C, V = T + D, I = d ? a.offsetHeight - V - a.clientHeight : 0, X = l ? a.offsetWidth - k - a.clientWidth : 0, J = i ? U + k : 0, $ = i ? B + V : 0, W = r ? r.width : ry(t.width) - J - X, ne = r ? r.height : ry(t.height) - $ - I, ie = W + U + X + k, fe = ne + B + I + V, le = HS({ - devicePixelContentBoxSize: qb(Math.round(W * devicePixelRatio), Math.round(ne * devicePixelRatio), o), - borderBoxSize: qb(ie, fe, o), - contentBoxSize: qb(W, ne, o), - contentRect: new O4(_, h, W, ne) - }); - return J2.set(a, le), le; -}, N4 = function(a, e, t) { - var r = z4(a, t), i = r.borderBoxSize, o = r.contentBoxSize, l = r.devicePixelContentBoxSize; - switch (e) { - case YM.DEVICE_PIXEL_CONTENT_BOX: - return l; - case YM.BORDER_BOX: - return i; - default: - return o; - } -}, tj = function() { - function a(e) { - var t = z4(e); - this.target = e, this.contentRect = t.contentRect, this.borderBoxSize = HS([t.borderBoxSize]), this.contentBoxSize = HS([t.contentBoxSize]), this.devicePixelContentBoxSize = HS([t.devicePixelContentBoxSize]); - } - return a; -}(), F4 = function(a) { - if (U4(a)) - return 1 / 0; - for (var e = 0, t = a.parentNode; t; ) - e += 1, t = t.parentNode; - return e; -}, nj = function() { - var a = 1 / 0, e = []; - BS.forEach(function(l) { - if (l.activeTargets.length !== 0) { - var d = []; - l.activeTargets.forEach(function(m) { - var S = new tj(m.target), _ = F4(m.target); - d.push(S), m.lastReportedSize = N4(m.target, m.observedBox), _ < a && (a = _); - }), e.push(function() { - l.callback.call(l.observer, d, l.observer); - }), l.activeTargets.splice(0, l.activeTargets.length); - } - }); - for (var t = 0, r = e; t < r.length; t++) { - var i = r[t]; - i(); - } - return a; -}, gz = function(a) { - BS.forEach(function(t) { - t.activeTargets.splice(0, t.activeTargets.length), t.skippedTargets.splice(0, t.skippedTargets.length), t.observationTargets.forEach(function(i) { - i.isActive() && (F4(i.target) > a ? t.activeTargets.push(i) : t.skippedTargets.push(i)); - }); - }); -}, rj = function() { - var a = 0; - for (gz(a); q9(); ) - a = nj(), gz(a); - return Q9() && Z9(), a > 0; -}, vD, k4 = [], ij = function() { - return k4.splice(0).forEach(function(a) { - return a(); - }); -}, aj = function(a) { - if (!vD) { - var e = 0, t = document.createTextNode(""), r = { characterData: !0 }; - new MutationObserver(function() { - return ij(); - }).observe(t, r), vD = function() { - t.textContent = "" + (e ? e-- : e++); - }; - } - k4.push(a), vD(); -}, sj = function(a) { - aj(function() { - requestAnimationFrame(a); +}), Qk = /* @__PURE__ */ Ln.forwardRef(function(e, t) { + return /* @__PURE__ */ ln(qk, { + children: /* @__PURE__ */ ln(pj, { + ...e, + ref: t + }) }); -}, gC = 0, oj = function() { - return !!gC; -}, lj = 250, uj = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, yz = [ - "resize", - "load", - "transitionend", - "animationend", - "animationstart", - "animationiteration", - "keyup", - "keydown", - "mouseup", - "mousedown", - "mouseover", - "mouseout", - "blur", - "focus" -], xz = function(a) { - return a === void 0 && (a = 0), Date.now() + a; -}, gD = !1, cj = function() { - function a() { - var e = this; - this.stopped = !0, this.listener = function() { - return e.schedule(); - }; - } - return a.prototype.run = function(e) { - var t = this; - if (e === void 0 && (e = lj), !gD) { - gD = !0; - var r = xz(e); - sj(function() { - var i = !1; - try { - i = rj(); - } finally { - if (gD = !1, e = r - xz(), !oj()) - return; - i ? t.run(1e3) : e > 0 ? t.run(e) : t.start(); - } - }); - } - }, a.prototype.schedule = function() { - this.stop(), this.run(); - }, a.prototype.observe = function() { - var e = this, t = function() { - return e.observer && e.observer.observe(document.body, uj); - }; - document.body ? t() : _M.addEventListener("DOMContentLoaded", t); - }, a.prototype.start = function() { - var e = this; - this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), yz.forEach(function(t) { - return _M.addEventListener(t, e.listener, !0); - })); - }, a.prototype.stop = function() { - var e = this; - this.stopped || (this.observer && this.observer.disconnect(), yz.forEach(function(t) { - return _M.removeEventListener(t, e.listener, !0); - }), this.stopped = !0); - }, a; -}(), C3 = new cj(), Sz = function(a) { - !gC && a > 0 && C3.start(), gC += a, !gC && C3.stop(); -}, fj = function(a) { - return !wL(a) && !K9(a) && getComputedStyle(a).display === "inline"; -}, dj = function() { - function a(e, t) { - this.target = e, this.observedBox = t || YM.CONTENT_BOX, this.lastReportedSize = { - inlineSize: 0, - blockSize: 0 - }; - } - return a.prototype.isActive = function() { - var e = N4(this.target, this.observedBox, !0); - return fj(this.target) && (this.lastReportedSize = e), this.lastReportedSize.inlineSize !== e.inlineSize || this.lastReportedSize.blockSize !== e.blockSize; - }, a; -}(), hj = function() { - function a(e, t) { - this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = e, this.callback = t; - } - return a; -}(), K2 = /* @__PURE__ */ new WeakMap(), _z = function(a, e) { - for (var t = 0; t < a.length; t += 1) - if (a[t].target === e) - return t; - return -1; -}, $2 = function() { - function a() { - } - return a.connect = function(e, t) { - var r = new hj(e, t); - K2.set(e, r); - }, a.observe = function(e, t, r) { - var i = K2.get(e), o = i.observationTargets.length === 0; - _z(i.observationTargets, t) < 0 && (o && BS.push(i), i.observationTargets.push(new dj(t, r && r.box)), Sz(1), C3.schedule()); - }, a.unobserve = function(e, t) { - var r = K2.get(e), i = _z(r.observationTargets, t), o = r.observationTargets.length === 1; - i >= 0 && (o && BS.splice(BS.indexOf(r), 1), r.observationTargets.splice(i, 1), Sz(-1)); - }, a.disconnect = function(e) { - var t = this, r = K2.get(e); - r.observationTargets.slice().forEach(function(i) { - return t.unobserve(e, i.target); - }), r.activeTargets.splice(0, r.activeTargets.length); - }, a; -}(), I4 = function() { - function a(e) { - if (arguments.length === 0) - throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present."); - if (typeof e != "function") - throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function."); - $2.connect(this, e); - } - return a.prototype.observe = function(e, t) { - if (arguments.length === 0) - throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present."); - if (!pz(e)) - throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element"); - $2.observe(this, e, t); - }, a.prototype.unobserve = function(e) { - if (arguments.length === 0) - throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present."); - if (!pz(e)) - throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element"); - $2.unobserve(this, e); - }, a.prototype.disconnect = function() { - $2.disconnect(this); - }, a.toString = function() { - return "function ResizeObserver () { [polyfill code] }"; - }, a; -}(), B4 = { exports: {} }, Ap = {}, yD = { exports: {} }, xD = {}; +}); +var Zk = { exports: {} }, Pp = {}, vD = { exports: {} }, gD = {}; /** * @license React * scheduler.production.min.js @@ -35479,50 +35359,50 @@ var HS = function(a) { * LICENSE file in the root directory of this source tree. */ var bz; -function pj() { +function mj() { return bz || (bz = 1, function(a) { - function e(pe, de) { - var ce = pe.length; - pe.push(de); + function e(ve, fe) { + var he = ve.length; + ve.push(fe); e: - for (; 0 < ce; ) { - var ye = ce - 1 >>> 1, we = pe[ye]; - if (0 < i(we, de)) - pe[ye] = de, pe[ce] = we, ce = ye; + for (; 0 < he; ) { + var ye = he - 1 >>> 1, Ee = ve[ye]; + if (0 < i(Ee, fe)) + ve[ye] = fe, ve[he] = Ee, he = ye; else break e; } } - function t(pe) { - return pe.length === 0 ? null : pe[0]; + function t(ve) { + return ve.length === 0 ? null : ve[0]; } - function r(pe) { - if (pe.length === 0) + function r(ve) { + if (ve.length === 0) return null; - var de = pe[0], ce = pe.pop(); - if (ce !== de) { - pe[0] = ce; + var fe = ve[0], he = ve.pop(); + if (he !== fe) { + ve[0] = he; e: - for (var ye = 0, we = pe.length, Xe = we >>> 1; ye < Xe; ) { - var Je = 2 * (ye + 1) - 1, st = pe[Je], Ue = Je + 1, ot = pe[Ue]; - if (0 > i(st, ce)) - Ue < we && 0 > i(ot, st) ? (pe[ye] = ot, pe[Ue] = ce, ye = Ue) : (pe[ye] = st, pe[Je] = ce, ye = Je); - else if (Ue < we && 0 > i(ot, ce)) - pe[ye] = ot, pe[Ue] = ce, ye = Ue; + for (var ye = 0, Ee = ve.length, Ve = Ee >>> 1; ye < Ve; ) { + var Je = 2 * (ye + 1) - 1, rt = ve[Je], Ne = Je + 1, ct = ve[Ne]; + if (0 > i(rt, he)) + Ne < Ee && 0 > i(ct, rt) ? (ve[ye] = ct, ve[Ne] = he, ye = Ne) : (ve[ye] = rt, ve[Je] = he, ye = Je); + else if (Ne < Ee && 0 > i(ct, he)) + ve[ye] = ct, ve[Ne] = he, ye = Ne; else break e; } } - return de; + return fe; } - function i(pe, de) { - var ce = pe.sortIndex - de.sortIndex; - return ce !== 0 ? ce : pe.id - de.id; + function i(ve, fe) { + var he = ve.sortIndex - fe.sortIndex; + return he !== 0 ? he : ve.id - fe.id; } if (typeof performance == "object" && typeof performance.now == "function") { - var o = performance; + var s = performance; a.unstable_now = function() { - return o.now(); + return s.now(); }; } else { var l = Date, d = l.now(); @@ -35530,123 +35410,123 @@ function pj() { return l.now() - d; }; } - var h = [], m = [], S = 1, _ = null, T = 3, C = !1, D = !1, P = !1, U = typeof setTimeout == "function" ? setTimeout : null, B = typeof clearTimeout == "function" ? clearTimeout : null, k = typeof setImmediate < "u" ? setImmediate : null; + var p = [], g = [], _ = 1, w = null, T = 3, R = !1, D = !1, O = !1, U = typeof setTimeout == "function" ? setTimeout : null, H = typeof clearTimeout == "function" ? clearTimeout : null, I = typeof setImmediate < "u" ? setImmediate : null; typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling); - function V(pe) { - for (var de = t(m); de !== null; ) { - if (de.callback === null) - r(m); - else if (de.startTime <= pe) - r(m), de.sortIndex = de.expirationTime, e(h, de); + function G(ve) { + for (var fe = t(g); fe !== null; ) { + if (fe.callback === null) + r(g); + else if (fe.startTime <= ve) + r(g), fe.sortIndex = fe.expirationTime, e(p, fe); else break; - de = t(m); + fe = t(g); } } - function I(pe) { - if (P = !1, V(pe), !D) - if (t(h) !== null) - D = !0, Ce(X); + function B(ve) { + if (O = !1, G(ve), !D) + if (t(p) !== null) + D = !0, Re(Q); else { - var de = t(m); - de !== null && Be(I, de.startTime - pe); + var fe = t(g); + fe !== null && He(B, fe.startTime - ve); } } - function X(pe, de) { - D = !1, P && (P = !1, B(W), W = -1), C = !0; - var ce = T; + function Q(ve, fe) { + D = !1, O && (O = !1, H(Y), Y = -1), R = !0; + var he = T; try { - for (V(de), _ = t(h); _ !== null && (!(_.expirationTime > de) || pe && !fe()); ) { - var ye = _.callback; + for (G(fe), w = t(p); w !== null && (!(w.expirationTime > fe) || ve && !ce()); ) { + var ye = w.callback; if (typeof ye == "function") { - _.callback = null, T = _.priorityLevel; - var we = ye(_.expirationTime <= de); - de = a.unstable_now(), typeof we == "function" ? _.callback = we : _ === t(h) && r(h), V(de); + w.callback = null, T = w.priorityLevel; + var Ee = ye(w.expirationTime <= fe); + fe = a.unstable_now(), typeof Ee == "function" ? w.callback = Ee : w === t(p) && r(p), G(fe); } else - r(h); - _ = t(h); + r(p); + w = t(p); } - if (_ !== null) - var Xe = !0; + if (w !== null) + var Ve = !0; else { - var Je = t(m); - Je !== null && Be(I, Je.startTime - de), Xe = !1; + var Je = t(g); + Je !== null && He(B, Je.startTime - fe), Ve = !1; } - return Xe; + return Ve; } finally { - _ = null, T = ce, C = !1; + w = null, T = he, R = !1; } } - var J = !1, $ = null, W = -1, ne = 5, ie = -1; - function fe() { - return !(a.unstable_now() - ie < ne); + var K = !1, te = null, Y = -1, re = 5, se = -1; + function ce() { + return !(a.unstable_now() - se < re); } - function le() { - if ($ !== null) { - var pe = a.unstable_now(); - ie = pe; - var de = !0; + function ue() { + if (te !== null) { + var ve = a.unstable_now(); + se = ve; + var fe = !0; try { - de = $(!0, pe); + fe = te(!0, ve); } finally { - de ? Ee() : (J = !1, $ = null); + fe ? Me() : (K = !1, te = null); } } else - J = !1; + K = !1; } - var Ee; - if (typeof k == "function") - Ee = function() { - k(le); + var Me; + if (typeof I == "function") + Me = function() { + I(ue); }; else if (typeof MessageChannel < "u") { - var he = new MessageChannel(), Fe = he.port2; - he.port1.onmessage = le, Ee = function() { - Fe.postMessage(null); + var me = new MessageChannel(), De = me.port2; + me.port1.onmessage = ue, Me = function() { + De.postMessage(null); }; } else - Ee = function() { - U(le, 0); + Me = function() { + U(ue, 0); }; - function Ce(pe) { - $ = pe, J || (J = !0, Ee()); + function Re(ve) { + te = ve, K || (K = !0, Me()); } - function Be(pe, de) { - W = U(function() { - pe(a.unstable_now()); - }, de); + function He(ve, fe) { + Y = U(function() { + ve(a.unstable_now()); + }, fe); } - a.unstable_IdlePriority = 5, a.unstable_ImmediatePriority = 1, a.unstable_LowPriority = 4, a.unstable_NormalPriority = 3, a.unstable_Profiling = null, a.unstable_UserBlockingPriority = 2, a.unstable_cancelCallback = function(pe) { - pe.callback = null; + a.unstable_IdlePriority = 5, a.unstable_ImmediatePriority = 1, a.unstable_LowPriority = 4, a.unstable_NormalPriority = 3, a.unstable_Profiling = null, a.unstable_UserBlockingPriority = 2, a.unstable_cancelCallback = function(ve) { + ve.callback = null; }, a.unstable_continueExecution = function() { - D || C || (D = !0, Ce(X)); - }, a.unstable_forceFrameRate = function(pe) { - 0 > pe || 125 < pe ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : ne = 0 < pe ? Math.floor(1e3 / pe) : 5; + D || R || (D = !0, Re(Q)); + }, a.unstable_forceFrameRate = function(ve) { + 0 > ve || 125 < ve ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : re = 0 < ve ? Math.floor(1e3 / ve) : 5; }, a.unstable_getCurrentPriorityLevel = function() { return T; }, a.unstable_getFirstCallbackNode = function() { - return t(h); - }, a.unstable_next = function(pe) { + return t(p); + }, a.unstable_next = function(ve) { switch (T) { case 1: case 2: case 3: - var de = 3; + var fe = 3; break; default: - de = T; + fe = T; } - var ce = T; - T = de; + var he = T; + T = fe; try { - return pe(); + return ve(); } finally { - T = ce; + T = he; } }, a.unstable_pauseExecution = function() { }, a.unstable_requestPaint = function() { - }, a.unstable_runWithPriority = function(pe, de) { - switch (pe) { + }, a.unstable_runWithPriority = function(ve, fe) { + switch (ve) { case 1: case 2: case 3: @@ -35654,49 +35534,49 @@ function pj() { case 5: break; default: - pe = 3; + ve = 3; } - var ce = T; - T = pe; + var he = T; + T = ve; try { - return de(); + return fe(); } finally { - T = ce; + T = he; } - }, a.unstable_scheduleCallback = function(pe, de, ce) { + }, a.unstable_scheduleCallback = function(ve, fe, he) { var ye = a.unstable_now(); - switch (typeof ce == "object" && ce !== null ? (ce = ce.delay, ce = typeof ce == "number" && 0 < ce ? ye + ce : ye) : ce = ye, pe) { + switch (typeof he == "object" && he !== null ? (he = he.delay, he = typeof he == "number" && 0 < he ? ye + he : ye) : he = ye, ve) { case 1: - var we = -1; + var Ee = -1; break; case 2: - we = 250; + Ee = 250; break; case 5: - we = 1073741823; + Ee = 1073741823; break; case 4: - we = 1e4; + Ee = 1e4; break; default: - we = 5e3; + Ee = 5e3; } - return we = ce + we, pe = { id: S++, callback: de, priorityLevel: pe, startTime: ce, expirationTime: we, sortIndex: -1 }, ce > ye ? (pe.sortIndex = ce, e(m, pe), t(h) === null && pe === t(m) && (P ? (B(W), W = -1) : P = !0, Be(I, ce - ye))) : (pe.sortIndex = we, e(h, pe), D || C || (D = !0, Ce(X))), pe; - }, a.unstable_shouldYield = fe, a.unstable_wrapCallback = function(pe) { - var de = T; + return Ee = he + Ee, ve = { id: _++, callback: fe, priorityLevel: ve, startTime: he, expirationTime: Ee, sortIndex: -1 }, he > ye ? (ve.sortIndex = he, e(g, ve), t(p) === null && ve === t(g) && (O ? (H(Y), Y = -1) : O = !0, He(B, he - ye))) : (ve.sortIndex = Ee, e(p, ve), D || R || (D = !0, Re(Q))), ve; + }, a.unstable_shouldYield = ce, a.unstable_wrapCallback = function(ve) { + var fe = T; return function() { - var ce = T; - T = de; + var he = T; + T = fe; try { - return pe.apply(this, arguments); + return ve.apply(this, arguments); } finally { - T = ce; + T = he; } }; }; - }(xD)), xD; + }(gD)), gD; } -var SD = {}; +var yD = {}; /** * @license React * scheduler.development.js @@ -35706,276 +35586,276 @@ var SD = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var wz; -function mj() { - return wz || (wz = 1, function(a) { +var Ez; +function vj() { + return Ez || (Ez = 1, function(a) { process.env.NODE_ENV !== "production" && function() { typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); var e = !1, t = !1, r = 5; - function i(ze, xe) { - var Ie = ze.length; - ze.push(xe), d(ze, xe, Ie); + function i(Be, pe) { + var Fe = Be.length; + Be.push(pe), d(Be, pe, Fe); } - function o(ze) { - return ze.length === 0 ? null : ze[0]; + function s(Be) { + return Be.length === 0 ? null : Be[0]; } - function l(ze) { - if (ze.length === 0) + function l(Be) { + if (Be.length === 0) return null; - var xe = ze[0], Ie = ze.pop(); - return Ie !== xe && (ze[0] = Ie, h(ze, Ie, 0)), xe; - } - function d(ze, xe, Ie) { - for (var it = Ie; it > 0; ) { - var at = it - 1 >>> 1, hn = ze[at]; - if (m(hn, xe) > 0) - ze[at] = xe, ze[it] = hn, it = at; + var pe = Be[0], Fe = Be.pop(); + return Fe !== pe && (Be[0] = Fe, p(Be, Fe, 0)), pe; + } + function d(Be, pe, Fe) { + for (var at = Fe; at > 0; ) { + var st = at - 1 >>> 1, dn = Be[st]; + if (g(dn, pe) > 0) + Be[st] = pe, Be[at] = dn, at = st; else return; } } - function h(ze, xe, Ie) { - for (var it = Ie, at = ze.length, hn = at >>> 1; it < hn; ) { - var De = (it + 1) * 2 - 1, Tt = ze[De], Ne = De + 1, Gt = ze[Ne]; - if (m(Tt, xe) < 0) - Ne < at && m(Gt, Tt) < 0 ? (ze[it] = Gt, ze[Ne] = xe, it = Ne) : (ze[it] = Tt, ze[De] = xe, it = De); - else if (Ne < at && m(Gt, xe) < 0) - ze[it] = Gt, ze[Ne] = xe, it = Ne; + function p(Be, pe, Fe) { + for (var at = Fe, st = Be.length, dn = st >>> 1; at < dn; ) { + var ze = (at + 1) * 2 - 1, wt = Be[ze], Pe = ze + 1, Gt = Be[Pe]; + if (g(wt, pe) < 0) + Pe < st && g(Gt, wt) < 0 ? (Be[at] = Gt, Be[Pe] = pe, at = Pe) : (Be[at] = wt, Be[ze] = pe, at = ze); + else if (Pe < st && g(Gt, pe) < 0) + Be[at] = Gt, Be[Pe] = pe, at = Pe; else return; } } - function m(ze, xe) { - var Ie = ze.sortIndex - xe.sortIndex; - return Ie !== 0 ? Ie : ze.id - xe.id; + function g(Be, pe) { + var Fe = Be.sortIndex - pe.sortIndex; + return Fe !== 0 ? Fe : Be.id - pe.id; } - var S = 1, _ = 2, T = 3, C = 4, D = 5; - function P(ze, xe) { + var _ = 1, w = 2, T = 3, R = 4, D = 5; + function O(Be, pe) { } var U = typeof performance == "object" && typeof performance.now == "function"; if (U) { - var B = performance; + var H = performance; a.unstable_now = function() { - return B.now(); + return H.now(); }; } else { - var k = Date, V = k.now(); + var I = Date, G = I.now(); a.unstable_now = function() { - return k.now() - V; + return I.now() - G; }; } - var I = 1073741823, X = -1, J = 250, $ = 5e3, W = 1e4, ne = I, ie = [], fe = [], le = 1, Ee = null, he = T, Fe = !1, Ce = !1, Be = !1, pe = typeof setTimeout == "function" ? setTimeout : null, de = typeof clearTimeout == "function" ? clearTimeout : null, ce = typeof setImmediate < "u" ? setImmediate : null; + var B = 1073741823, Q = -1, K = 250, te = 5e3, Y = 1e4, re = B, se = [], ce = [], ue = 1, Me = null, me = T, De = !1, Re = !1, He = !1, ve = typeof setTimeout == "function" ? setTimeout : null, fe = typeof clearTimeout == "function" ? clearTimeout : null, he = typeof setImmediate < "u" ? setImmediate : null; typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling); - function ye(ze) { - for (var xe = o(fe); xe !== null; ) { - if (xe.callback === null) - l(fe); - else if (xe.startTime <= ze) - l(fe), xe.sortIndex = xe.expirationTime, i(ie, xe); + function ye(Be) { + for (var pe = s(ce); pe !== null; ) { + if (pe.callback === null) + l(ce); + else if (pe.startTime <= Be) + l(ce), pe.sortIndex = pe.expirationTime, i(se, pe); else return; - xe = o(fe); + pe = s(ce); } } - function we(ze) { - if (Be = !1, ye(ze), !Ce) - if (o(ie) !== null) - Ce = !0, zt(Xe); + function Ee(Be) { + if (He = !1, ye(Be), !Re) + if (s(se) !== null) + Re = !0, Ft(Ve); else { - var xe = o(fe); - xe !== null && Nt(we, xe.startTime - ze); + var pe = s(ce); + pe !== null && Ot(Ee, pe.startTime - Be); } } - function Xe(ze, xe) { - Ce = !1, Be && (Be = !1, Ut()), Fe = !0; - var Ie = he; + function Ve(Be, pe) { + Re = !1, He && (He = !1, Wt()), De = !0; + var Fe = me; try { - var it; + var at; if (!t) - return Je(ze, xe); + return Je(Be, pe); } finally { - Ee = null, he = Ie, Fe = !1; + Me = null, me = Fe, De = !1; } } - function Je(ze, xe) { - var Ie = xe; - for (ye(Ie), Ee = o(ie); Ee !== null && !e && !(Ee.expirationTime > Ie && (!ze || Vt())); ) { - var it = Ee.callback; - if (typeof it == "function") { - Ee.callback = null, he = Ee.priorityLevel; - var at = Ee.expirationTime <= Ie, hn = it(at); - Ie = a.unstable_now(), typeof hn == "function" ? Ee.callback = hn : Ee === o(ie) && l(ie), ye(Ie); + function Je(Be, pe) { + var Fe = pe; + for (ye(Fe), Me = s(se); Me !== null && !e && !(Me.expirationTime > Fe && (!Be || Nt())); ) { + var at = Me.callback; + if (typeof at == "function") { + Me.callback = null, me = Me.priorityLevel; + var st = Me.expirationTime <= Fe, dn = at(st); + Fe = a.unstable_now(), typeof dn == "function" ? Me.callback = dn : Me === s(se) && l(se), ye(Fe); } else - l(ie); - Ee = o(ie); + l(se); + Me = s(se); } - if (Ee !== null) + if (Me !== null) return !0; - var De = o(fe); - return De !== null && Nt(we, De.startTime - Ie), !1; + var ze = s(ce); + return ze !== null && Ot(Ee, ze.startTime - Fe), !1; } - function st(ze, xe) { - switch (ze) { - case S: + function rt(Be, pe) { + switch (Be) { case _: + case w: case T: - case C: + case R: case D: break; default: - ze = T; + Be = T; } - var Ie = he; - he = ze; + var Fe = me; + me = Be; try { - return xe(); + return pe(); } finally { - he = Ie; + me = Fe; } } - function Ue(ze) { - var xe; - switch (he) { - case S: + function Ne(Be) { + var pe; + switch (me) { case _: + case w: case T: - xe = T; + pe = T; break; default: - xe = he; + pe = me; break; } - var Ie = he; - he = xe; + var Fe = me; + me = pe; try { - return ze(); + return Be(); } finally { - he = Ie; + me = Fe; } } - function ot(ze) { - var xe = he; + function ct(Be) { + var pe = me; return function() { - var Ie = he; - he = xe; + var Fe = me; + me = pe; try { - return ze.apply(this, arguments); + return Be.apply(this, arguments); } finally { - he = Ie; + me = Fe; } }; } - function rt(ze, xe, Ie) { - var it = a.unstable_now(), at; - if (typeof Ie == "object" && Ie !== null) { - var hn = Ie.delay; - typeof hn == "number" && hn > 0 ? at = it + hn : at = it; + function tt(Be, pe, Fe) { + var at = a.unstable_now(), st; + if (typeof Fe == "object" && Fe !== null) { + var dn = Fe.delay; + typeof dn == "number" && dn > 0 ? st = at + dn : st = at; } else - at = it; - var De; - switch (ze) { - case S: - De = X; - break; + st = at; + var ze; + switch (Be) { case _: - De = J; + ze = Q; + break; + case w: + ze = K; break; case D: - De = ne; + ze = re; break; - case C: - De = W; + case R: + ze = Y; break; case T: default: - De = $; + ze = te; break; } - var Tt = at + De, Ne = { - id: le++, - callback: xe, - priorityLevel: ze, - startTime: at, - expirationTime: Tt, + var wt = st + ze, Pe = { + id: ue++, + callback: pe, + priorityLevel: Be, + startTime: st, + expirationTime: wt, sortIndex: -1 }; - return at > it ? (Ne.sortIndex = at, i(fe, Ne), o(ie) === null && Ne === o(fe) && (Be ? Ut() : Be = !0, Nt(we, at - it))) : (Ne.sortIndex = Tt, i(ie, Ne), !Ce && !Fe && (Ce = !0, zt(Xe))), Ne; + return st > at ? (Pe.sortIndex = st, i(ce, Pe), s(se) === null && Pe === s(ce) && (He ? Wt() : He = !0, Ot(Ee, st - at))) : (Pe.sortIndex = wt, i(se, Pe), !Re && !De && (Re = !0, Ft(Ve))), Pe; } - function _t() { + function Tt() { } - function Rt() { - !Ce && !Fe && (Ce = !0, zt(Xe)); + function gt() { + !Re && !De && (Re = !0, Ft(Ve)); } - function Ot() { - return o(ie); + function ft() { + return s(se); } - function He(ze) { - ze.callback = null; + function Ie(Be) { + Be.callback = null; } - function et() { - return he; + function qe() { + return me; } - var mt = !1, vt = null, bt = -1, Qt = r, ft = -1; - function Vt() { - var ze = a.unstable_now() - ft; - return !(ze < Qt); + var dt = !1, ht = null, xt = -1, Vt = r, yt = -1; + function Nt() { + var Be = a.unstable_now() - yt; + return !(Be < Vt); } - function Jt() { + function Zt() { } - function Mt(ze) { - if (ze < 0 || ze > 125) { + function Rt(Be) { + if (Be < 0 || Be > 125) { console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"); return; } - ze > 0 ? Qt = Math.floor(1e3 / ze) : Qt = r; + Be > 0 ? Vt = Math.floor(1e3 / Be) : Vt = r; } - var Me = function() { - if (vt !== null) { - var ze = a.unstable_now(); - ft = ze; - var xe = !0, Ie = !0; + var we = function() { + if (ht !== null) { + var Be = a.unstable_now(); + yt = Be; + var pe = !0, Fe = !0; try { - Ie = vt(xe, ze); + Fe = ht(pe, Be); } finally { - Ie ? oe() : (mt = !1, vt = null); + Fe ? oe() : (dt = !1, ht = null); } } else - mt = !1; + dt = !1; }, oe; - if (typeof ce == "function") + if (typeof he == "function") oe = function() { - ce(Me); + he(we); }; else if (typeof MessageChannel < "u") { - var je = new MessageChannel(), lt = je.port2; - je.port1.onmessage = Me, oe = function() { - lt.postMessage(null); + var Qe = new MessageChannel(), ut = Qe.port2; + Qe.port1.onmessage = we, oe = function() { + ut.postMessage(null); }; } else oe = function() { - pe(Me, 0); + ve(we, 0); }; - function zt(ze) { - vt = ze, mt || (mt = !0, oe()); + function Ft(Be) { + ht = Be, dt || (dt = !0, oe()); } - function Nt(ze, xe) { - bt = pe(function() { - ze(a.unstable_now()); - }, xe); + function Ot(Be, pe) { + xt = ve(function() { + Be(a.unstable_now()); + }, pe); } - function Ut() { - de(bt), bt = -1; + function Wt() { + fe(xt), xt = -1; } - var tt = Jt, rn = null; - a.unstable_IdlePriority = D, a.unstable_ImmediatePriority = S, a.unstable_LowPriority = C, a.unstable_NormalPriority = T, a.unstable_Profiling = rn, a.unstable_UserBlockingPriority = _, a.unstable_cancelCallback = He, a.unstable_continueExecution = Rt, a.unstable_forceFrameRate = Mt, a.unstable_getCurrentPriorityLevel = et, a.unstable_getFirstCallbackNode = Ot, a.unstable_next = Ue, a.unstable_pauseExecution = _t, a.unstable_requestPaint = tt, a.unstable_runWithPriority = st, a.unstable_scheduleCallback = rt, a.unstable_shouldYield = Vt, a.unstable_wrapCallback = ot, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + var it = Zt, an = null; + a.unstable_IdlePriority = D, a.unstable_ImmediatePriority = _, a.unstable_LowPriority = R, a.unstable_NormalPriority = T, a.unstable_Profiling = an, a.unstable_UserBlockingPriority = w, a.unstable_cancelCallback = Ie, a.unstable_continueExecution = gt, a.unstable_forceFrameRate = Rt, a.unstable_getCurrentPriorityLevel = qe, a.unstable_getFirstCallbackNode = ft, a.unstable_next = Ne, a.unstable_pauseExecution = Tt, a.unstable_requestPaint = it, a.unstable_runWithPriority = rt, a.unstable_scheduleCallback = tt, a.unstable_shouldYield = Nt, a.unstable_wrapCallback = ct, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); }(); - }(SD)), SD; + }(yD)), yD; } -var Ez; -function H4() { - return Ez || (Ez = 1, function(a) { - process.env.NODE_ENV === "production" ? a.exports = pj() : a.exports = mj(); - }(yD)), yD.exports; +var Mz; +function Jk() { + return Mz || (Mz = 1, function(a) { + process.env.NODE_ENV === "production" ? a.exports = mj() : a.exports = vj(); + }(vD)), vD.exports; } /** * @license React @@ -35986,195 +35866,195 @@ function H4() { * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var Mz; -function vj() { - if (Mz) - return Ap; - Mz = 1; - var a = hh, e = H4(); +var Tz; +function gj() { + if (Tz) + return Pp; + Tz = 1; + var a = ph, e = Jk(); function t(c) { - for (var p = "https://reactjs.org/docs/error-decoder.html?invariant=" + c, E = 1; E < arguments.length; E++) - p += "&args[]=" + encodeURIComponent(arguments[E]); - return "Minified React error #" + c + "; visit " + p + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + for (var h = "https://reactjs.org/docs/error-decoder.html?invariant=" + c, E = 1; E < arguments.length; E++) + h += "&args[]=" + encodeURIComponent(arguments[E]); + return "Minified React error #" + c + "; visit " + h + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } var r = /* @__PURE__ */ new Set(), i = {}; - function o(c, p) { - l(c, p), l(c + "Capture", p); + function s(c, h) { + l(c, h), l(c + "Capture", h); } - function l(c, p) { - for (i[c] = p, c = 0; c < p.length; c++) - r.add(p[c]); + function l(c, h) { + for (i[c] = h, c = 0; c < h.length; c++) + r.add(h[c]); } - var d = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), h = Object.prototype.hasOwnProperty, m = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, S = {}, _ = {}; + var d = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), p = Object.prototype.hasOwnProperty, g = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, _ = {}, w = {}; function T(c) { - return h.call(_, c) ? !0 : h.call(S, c) ? !1 : m.test(c) ? _[c] = !0 : (S[c] = !0, !1); + return p.call(w, c) ? !0 : p.call(_, c) ? !1 : g.test(c) ? w[c] = !0 : (_[c] = !0, !1); } - function C(c, p, E, O) { + function R(c, h, E, P) { if (E !== null && E.type === 0) return !1; - switch (typeof p) { + switch (typeof h) { case "function": case "symbol": return !0; case "boolean": - return O ? !1 : E !== null ? !E.acceptsBooleans : (c = c.toLowerCase().slice(0, 5), c !== "data-" && c !== "aria-"); + return P ? !1 : E !== null ? !E.acceptsBooleans : (c = c.toLowerCase().slice(0, 5), c !== "data-" && c !== "aria-"); default: return !1; } } - function D(c, p, E, O) { - if (p === null || typeof p > "u" || C(c, p, E, O)) + function D(c, h, E, P) { + if (h === null || typeof h > "u" || R(c, h, E, P)) return !0; - if (O) + if (P) return !1; if (E !== null) switch (E.type) { case 3: - return !p; + return !h; case 4: - return p === !1; + return h === !1; case 5: - return isNaN(p); + return isNaN(h); case 6: - return isNaN(p) || 1 > p; + return isNaN(h) || 1 > h; } return !1; } - function P(c, p, E, O, G, Q, ue) { - this.acceptsBooleans = p === 2 || p === 3 || p === 4, this.attributeName = O, this.attributeNamespace = G, this.mustUseProperty = E, this.propertyName = c, this.type = p, this.sanitizeURL = Q, this.removeEmptyString = ue; + function O(c, h, E, P, V, q, le) { + this.acceptsBooleans = h === 2 || h === 3 || h === 4, this.attributeName = P, this.attributeNamespace = V, this.mustUseProperty = E, this.propertyName = c, this.type = h, this.sanitizeURL = q, this.removeEmptyString = le; } var U = {}; "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(c) { - U[c] = new P(c, 0, !1, c, null, !1, !1); + U[c] = new O(c, 0, !1, c, null, !1, !1); }), [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(c) { - var p = c[0]; - U[p] = new P(p, 1, !1, c[1], null, !1, !1); + var h = c[0]; + U[h] = new O(h, 1, !1, c[1], null, !1, !1); }), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(c) { - U[c] = new P(c, 2, !1, c.toLowerCase(), null, !1, !1); + U[c] = new O(c, 2, !1, c.toLowerCase(), null, !1, !1); }), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(c) { - U[c] = new P(c, 2, !1, c, null, !1, !1); + U[c] = new O(c, 2, !1, c, null, !1, !1); }), "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(c) { - U[c] = new P(c, 3, !1, c.toLowerCase(), null, !1, !1); + U[c] = new O(c, 3, !1, c.toLowerCase(), null, !1, !1); }), ["checked", "multiple", "muted", "selected"].forEach(function(c) { - U[c] = new P(c, 3, !0, c, null, !1, !1); + U[c] = new O(c, 3, !0, c, null, !1, !1); }), ["capture", "download"].forEach(function(c) { - U[c] = new P(c, 4, !1, c, null, !1, !1); + U[c] = new O(c, 4, !1, c, null, !1, !1); }), ["cols", "rows", "size", "span"].forEach(function(c) { - U[c] = new P(c, 6, !1, c, null, !1, !1); + U[c] = new O(c, 6, !1, c, null, !1, !1); }), ["rowSpan", "start"].forEach(function(c) { - U[c] = new P(c, 5, !1, c.toLowerCase(), null, !1, !1); + U[c] = new O(c, 5, !1, c.toLowerCase(), null, !1, !1); }); - var B = /[\-:]([a-z])/g; - function k(c) { + var H = /[\-:]([a-z])/g; + function I(c) { return c[1].toUpperCase(); } "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(c) { - var p = c.replace( - B, - k + var h = c.replace( + H, + I ); - U[p] = new P(p, 1, !1, c, null, !1, !1); + U[h] = new O(h, 1, !1, c, null, !1, !1); }), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(c) { - var p = c.replace(B, k); - U[p] = new P(p, 1, !1, c, "http://www.w3.org/1999/xlink", !1, !1); + var h = c.replace(H, I); + U[h] = new O(h, 1, !1, c, "http://www.w3.org/1999/xlink", !1, !1); }), ["xml:base", "xml:lang", "xml:space"].forEach(function(c) { - var p = c.replace(B, k); - U[p] = new P(p, 1, !1, c, "http://www.w3.org/XML/1998/namespace", !1, !1); + var h = c.replace(H, I); + U[h] = new O(h, 1, !1, c, "http://www.w3.org/XML/1998/namespace", !1, !1); }), ["tabIndex", "crossOrigin"].forEach(function(c) { - U[c] = new P(c, 1, !1, c.toLowerCase(), null, !1, !1); - }), U.xlinkHref = new P("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), ["src", "href", "action", "formAction"].forEach(function(c) { - U[c] = new P(c, 1, !1, c.toLowerCase(), null, !0, !0); + U[c] = new O(c, 1, !1, c.toLowerCase(), null, !1, !1); + }), U.xlinkHref = new O("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), ["src", "href", "action", "formAction"].forEach(function(c) { + U[c] = new O(c, 1, !1, c.toLowerCase(), null, !0, !0); }); - function V(c, p, E, O) { - var G = U.hasOwnProperty(p) ? U[p] : null; - (G !== null ? G.type !== 0 : O || !(2 < p.length) || p[0] !== "o" && p[0] !== "O" || p[1] !== "n" && p[1] !== "N") && (D(p, E, G, O) && (E = null), O || G === null ? T(p) && (E === null ? c.removeAttribute(p) : c.setAttribute(p, "" + E)) : G.mustUseProperty ? c[G.propertyName] = E === null ? G.type === 3 ? !1 : "" : E : (p = G.attributeName, O = G.attributeNamespace, E === null ? c.removeAttribute(p) : (G = G.type, E = G === 3 || G === 4 && E === !0 ? "" : "" + E, O ? c.setAttributeNS(O, p, E) : c.setAttribute(p, E)))); + function G(c, h, E, P) { + var V = U.hasOwnProperty(h) ? U[h] : null; + (V !== null ? V.type !== 0 : P || !(2 < h.length) || h[0] !== "o" && h[0] !== "O" || h[1] !== "n" && h[1] !== "N") && (D(h, E, V, P) && (E = null), P || V === null ? T(h) && (E === null ? c.removeAttribute(h) : c.setAttribute(h, "" + E)) : V.mustUseProperty ? c[V.propertyName] = E === null ? V.type === 3 ? !1 : "" : E : (h = V.attributeName, P = V.attributeNamespace, E === null ? c.removeAttribute(h) : (V = V.type, E = V === 3 || V === 4 && E === !0 ? "" : "" + E, P ? c.setAttributeNS(P, h, E) : c.setAttribute(h, E)))); } - var I = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, X = Symbol.for("react.element"), J = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), ne = Symbol.for("react.profiler"), ie = Symbol.for("react.provider"), fe = Symbol.for("react.context"), le = Symbol.for("react.forward_ref"), Ee = Symbol.for("react.suspense"), he = Symbol.for("react.suspense_list"), Fe = Symbol.for("react.memo"), Ce = Symbol.for("react.lazy"), Be = Symbol.for("react.offscreen"), pe = Symbol.iterator; - function de(c) { - return c === null || typeof c != "object" ? null : (c = pe && c[pe] || c["@@iterator"], typeof c == "function" ? c : null); + var B = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, Q = Symbol.for("react.element"), K = Symbol.for("react.portal"), te = Symbol.for("react.fragment"), Y = Symbol.for("react.strict_mode"), re = Symbol.for("react.profiler"), se = Symbol.for("react.provider"), ce = Symbol.for("react.context"), ue = Symbol.for("react.forward_ref"), Me = Symbol.for("react.suspense"), me = Symbol.for("react.suspense_list"), De = Symbol.for("react.memo"), Re = Symbol.for("react.lazy"), He = Symbol.for("react.offscreen"), ve = Symbol.iterator; + function fe(c) { + return c === null || typeof c != "object" ? null : (c = ve && c[ve] || c["@@iterator"], typeof c == "function" ? c : null); } - var ce = Object.assign, ye; - function we(c) { + var he = Object.assign, ye; + function Ee(c) { if (ye === void 0) try { throw Error(); } catch (E) { - var p = E.stack.trim().match(/\n( *(at )?)/); - ye = p && p[1] || ""; + var h = E.stack.trim().match(/\n( *(at )?)/); + ye = h && h[1] || ""; } return ` ` + ye + c; } - var Xe = !1; - function Je(c, p) { - if (!c || Xe) + var Ve = !1; + function Je(c, h) { + if (!c || Ve) return ""; - Xe = !0; + Ve = !0; var E = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { - if (p) - if (p = function() { + if (h) + if (h = function() { throw Error(); - }, Object.defineProperty(p.prototype, "props", { set: function() { + }, Object.defineProperty(h.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { - Reflect.construct(p, []); - } catch (Ct) { - var O = Ct; + Reflect.construct(h, []); + } catch (Dt) { + var P = Dt; } - Reflect.construct(c, [], p); + Reflect.construct(c, [], h); } else { try { - p.call(); - } catch (Ct) { - O = Ct; + h.call(); + } catch (Dt) { + P = Dt; } - c.call(p.prototype); + c.call(h.prototype); } else { try { throw Error(); - } catch (Ct) { - O = Ct; + } catch (Dt) { + P = Dt; } c(); } - } catch (Ct) { - if (Ct && O && typeof Ct.stack == "string") { - for (var G = Ct.stack.split(` -`), Q = O.stack.split(` -`), ue = G.length - 1, Le = Q.length - 1; 1 <= ue && 0 <= Le && G[ue] !== Q[Le]; ) - Le--; - for (; 1 <= ue && 0 <= Le; ue--, Le--) - if (G[ue] !== Q[Le]) { - if (ue !== 1 || Le !== 1) + } catch (Dt) { + if (Dt && P && typeof Dt.stack == "string") { + for (var V = Dt.stack.split(` +`), q = P.stack.split(` +`), le = V.length - 1, Oe = q.length - 1; 1 <= le && 0 <= Oe && V[le] !== q[Oe]; ) + Oe--; + for (; 1 <= le && 0 <= Oe; le--, Oe--) + if (V[le] !== q[Oe]) { + if (le !== 1 || Oe !== 1) do - if (ue--, Le--, 0 > Le || G[ue] !== Q[Le]) { - var Ve = ` -` + G[ue].replace(" at new ", " at "); - return c.displayName && Ve.includes("") && (Ve = Ve.replace("", c.displayName)), Ve; + if (le--, Oe--, 0 > Oe || V[le] !== q[Oe]) { + var Ge = ` +` + V[le].replace(" at new ", " at "); + return c.displayName && Ge.includes("") && (Ge = Ge.replace("", c.displayName)), Ge; } - while (1 <= ue && 0 <= Le); + while (1 <= le && 0 <= Oe); break; } } } finally { - Xe = !1, Error.prepareStackTrace = E; + Ve = !1, Error.prepareStackTrace = E; } - return (c = c ? c.displayName || c.name : "") ? we(c) : ""; + return (c = c ? c.displayName || c.name : "") ? Ee(c) : ""; } - function st(c) { + function rt(c) { switch (c.tag) { case 5: - return we(c.type); + return Ee(c.type); case 16: - return we("Lazy"); + return Ee("Lazy"); case 13: - return we("Suspense"); + return Ee("Suspense"); case 19: - return we("SuspenseList"); + return Ee("SuspenseList"); case 0: case 2: case 15: @@ -36187,7 +36067,7 @@ function vj() { return ""; } } - function Ue(c) { + function Ne(c) { if (c == null) return null; if (typeof c == "function") @@ -36195,56 +36075,56 @@ function vj() { if (typeof c == "string") return c; switch (c) { - case $: + case te: return "Fragment"; - case J: + case K: return "Portal"; - case ne: + case re: return "Profiler"; - case W: + case Y: return "StrictMode"; - case Ee: + case Me: return "Suspense"; - case he: + case me: return "SuspenseList"; } if (typeof c == "object") switch (c.$$typeof) { - case fe: + case ce: return (c.displayName || "Context") + ".Consumer"; - case ie: + case se: return (c._context.displayName || "Context") + ".Provider"; - case le: - var p = c.render; - return c = c.displayName, c || (c = p.displayName || p.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c; - case Fe: - return p = c.displayName || null, p !== null ? p : Ue(c.type) || "Memo"; - case Ce: - p = c._payload, c = c._init; + case ue: + var h = c.render; + return c = c.displayName, c || (c = h.displayName || h.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c; + case De: + return h = c.displayName || null, h !== null ? h : Ne(c.type) || "Memo"; + case Re: + h = c._payload, c = c._init; try { - return Ue(c(p)); + return Ne(c(h)); } catch { } } return null; } - function ot(c) { - var p = c.type; + function ct(c) { + var h = c.type; switch (c.tag) { case 24: return "Cache"; case 9: - return (p.displayName || "Context") + ".Consumer"; + return (h.displayName || "Context") + ".Consumer"; case 10: - return (p._context.displayName || "Context") + ".Provider"; + return (h._context.displayName || "Context") + ".Provider"; case 18: return "DehydratedFragment"; case 11: - return c = p.render, c = c.displayName || c.name || "", p.displayName || (c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"); + return c = h.render, c = c.displayName || c.name || "", h.displayName || (c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"); case 7: return "Fragment"; case 5: - return p; + return h; case 4: return "Portal"; case 3: @@ -36252,9 +36132,9 @@ function vj() { case 6: return "Text"; case 16: - return Ue(p); + return Ne(h); case 8: - return p === W ? "StrictMode" : "Mode"; + return h === Y ? "StrictMode" : "Mode"; case 22: return "Offscreen"; case 12: @@ -36273,14 +36153,14 @@ function vj() { case 2: case 14: case 15: - if (typeof p == "function") - return p.displayName || p.name || null; - if (typeof p == "string") - return p; + if (typeof h == "function") + return h.displayName || h.name || null; + if (typeof h == "string") + return h; } return null; } - function rt(c) { + function tt(c) { switch (typeof c) { case "boolean": case "number": @@ -36293,40 +36173,40 @@ function vj() { return ""; } } - function _t(c) { - var p = c.type; - return (c = c.nodeName) && c.toLowerCase() === "input" && (p === "checkbox" || p === "radio"); - } - function Rt(c) { - var p = _t(c) ? "checked" : "value", E = Object.getOwnPropertyDescriptor(c.constructor.prototype, p), O = "" + c[p]; - if (!c.hasOwnProperty(p) && typeof E < "u" && typeof E.get == "function" && typeof E.set == "function") { - var G = E.get, Q = E.set; - return Object.defineProperty(c, p, { configurable: !0, get: function() { - return G.call(this); - }, set: function(ue) { - O = "" + ue, Q.call(this, ue); - } }), Object.defineProperty(c, p, { enumerable: E.enumerable }), { getValue: function() { - return O; - }, setValue: function(ue) { - O = "" + ue; + function Tt(c) { + var h = c.type; + return (c = c.nodeName) && c.toLowerCase() === "input" && (h === "checkbox" || h === "radio"); + } + function gt(c) { + var h = Tt(c) ? "checked" : "value", E = Object.getOwnPropertyDescriptor(c.constructor.prototype, h), P = "" + c[h]; + if (!c.hasOwnProperty(h) && typeof E < "u" && typeof E.get == "function" && typeof E.set == "function") { + var V = E.get, q = E.set; + return Object.defineProperty(c, h, { configurable: !0, get: function() { + return V.call(this); + }, set: function(le) { + P = "" + le, q.call(this, le); + } }), Object.defineProperty(c, h, { enumerable: E.enumerable }), { getValue: function() { + return P; + }, setValue: function(le) { + P = "" + le; }, stopTracking: function() { - c._valueTracker = null, delete c[p]; + c._valueTracker = null, delete c[h]; } }; } } - function Ot(c) { - c._valueTracker || (c._valueTracker = Rt(c)); + function ft(c) { + c._valueTracker || (c._valueTracker = gt(c)); } - function He(c) { + function Ie(c) { if (!c) return !1; - var p = c._valueTracker; - if (!p) + var h = c._valueTracker; + if (!h) return !0; - var E = p.getValue(), O = ""; - return c && (O = _t(c) ? c.checked ? "true" : "false" : c.value), c = O, c !== E ? (p.setValue(c), !0) : !1; + var E = h.getValue(), P = ""; + return c && (P = Tt(c) ? c.checked ? "true" : "false" : c.value), c = P, c !== E ? (h.setValue(c), !0) : !1; } - function et(c) { + function qe(c) { if (c = c || (typeof document < "u" ? document : void 0), typeof c > "u") return null; try { @@ -36335,90 +36215,90 @@ function vj() { return c.body; } } - function mt(c, p) { - var E = p.checked; - return ce({}, p, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: E != null ? E : c._wrapperState.initialChecked }); + function dt(c, h) { + var E = h.checked; + return he({}, h, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: E != null ? E : c._wrapperState.initialChecked }); } - function vt(c, p) { - var E = p.defaultValue == null ? "" : p.defaultValue, O = p.checked != null ? p.checked : p.defaultChecked; - E = rt(p.value != null ? p.value : E), c._wrapperState = { initialChecked: O, initialValue: E, controlled: p.type === "checkbox" || p.type === "radio" ? p.checked != null : p.value != null }; + function ht(c, h) { + var E = h.defaultValue == null ? "" : h.defaultValue, P = h.checked != null ? h.checked : h.defaultChecked; + E = tt(h.value != null ? h.value : E), c._wrapperState = { initialChecked: P, initialValue: E, controlled: h.type === "checkbox" || h.type === "radio" ? h.checked != null : h.value != null }; } - function bt(c, p) { - p = p.checked, p != null && V(c, "checked", p, !1); + function xt(c, h) { + h = h.checked, h != null && G(c, "checked", h, !1); } - function Qt(c, p) { - bt(c, p); - var E = rt(p.value), O = p.type; + function Vt(c, h) { + xt(c, h); + var E = tt(h.value), P = h.type; if (E != null) - O === "number" ? (E === 0 && c.value === "" || c.value != E) && (c.value = "" + E) : c.value !== "" + E && (c.value = "" + E); - else if (O === "submit" || O === "reset") { + P === "number" ? (E === 0 && c.value === "" || c.value != E) && (c.value = "" + E) : c.value !== "" + E && (c.value = "" + E); + else if (P === "submit" || P === "reset") { c.removeAttribute("value"); return; } - p.hasOwnProperty("value") ? Vt(c, p.type, E) : p.hasOwnProperty("defaultValue") && Vt(c, p.type, rt(p.defaultValue)), p.checked == null && p.defaultChecked != null && (c.defaultChecked = !!p.defaultChecked); + h.hasOwnProperty("value") ? Nt(c, h.type, E) : h.hasOwnProperty("defaultValue") && Nt(c, h.type, tt(h.defaultValue)), h.checked == null && h.defaultChecked != null && (c.defaultChecked = !!h.defaultChecked); } - function ft(c, p, E) { - if (p.hasOwnProperty("value") || p.hasOwnProperty("defaultValue")) { - var O = p.type; - if (!(O !== "submit" && O !== "reset" || p.value !== void 0 && p.value !== null)) + function yt(c, h, E) { + if (h.hasOwnProperty("value") || h.hasOwnProperty("defaultValue")) { + var P = h.type; + if (!(P !== "submit" && P !== "reset" || h.value !== void 0 && h.value !== null)) return; - p = "" + c._wrapperState.initialValue, E || p === c.value || (c.value = p), c.defaultValue = p; + h = "" + c._wrapperState.initialValue, E || h === c.value || (c.value = h), c.defaultValue = h; } E = c.name, E !== "" && (c.name = ""), c.defaultChecked = !!c._wrapperState.initialChecked, E !== "" && (c.name = E); } - function Vt(c, p, E) { - (p !== "number" || et(c.ownerDocument) !== c) && (E == null ? c.defaultValue = "" + c._wrapperState.initialValue : c.defaultValue !== "" + E && (c.defaultValue = "" + E)); + function Nt(c, h, E) { + (h !== "number" || qe(c.ownerDocument) !== c) && (E == null ? c.defaultValue = "" + c._wrapperState.initialValue : c.defaultValue !== "" + E && (c.defaultValue = "" + E)); } - var Jt = Array.isArray; - function Mt(c, p, E, O) { - if (c = c.options, p) { - p = {}; - for (var G = 0; G < E.length; G++) - p["$" + E[G]] = !0; + var Zt = Array.isArray; + function Rt(c, h, E, P) { + if (c = c.options, h) { + h = {}; + for (var V = 0; V < E.length; V++) + h["$" + E[V]] = !0; for (E = 0; E < c.length; E++) - G = p.hasOwnProperty("$" + c[E].value), c[E].selected !== G && (c[E].selected = G), G && O && (c[E].defaultSelected = !0); + V = h.hasOwnProperty("$" + c[E].value), c[E].selected !== V && (c[E].selected = V), V && P && (c[E].defaultSelected = !0); } else { - for (E = "" + rt(E), p = null, G = 0; G < c.length; G++) { - if (c[G].value === E) { - c[G].selected = !0, O && (c[G].defaultSelected = !0); + for (E = "" + tt(E), h = null, V = 0; V < c.length; V++) { + if (c[V].value === E) { + c[V].selected = !0, P && (c[V].defaultSelected = !0); return; } - p !== null || c[G].disabled || (p = c[G]); + h !== null || c[V].disabled || (h = c[V]); } - p !== null && (p.selected = !0); + h !== null && (h.selected = !0); } } - function Me(c, p) { - if (p.dangerouslySetInnerHTML != null) + function we(c, h) { + if (h.dangerouslySetInnerHTML != null) throw Error(t(91)); - return ce({}, p, { value: void 0, defaultValue: void 0, children: "" + c._wrapperState.initialValue }); + return he({}, h, { value: void 0, defaultValue: void 0, children: "" + c._wrapperState.initialValue }); } - function oe(c, p) { - var E = p.value; + function oe(c, h) { + var E = h.value; if (E == null) { - if (E = p.children, p = p.defaultValue, E != null) { - if (p != null) + if (E = h.children, h = h.defaultValue, E != null) { + if (h != null) throw Error(t(92)); - if (Jt(E)) { + if (Zt(E)) { if (1 < E.length) throw Error(t(93)); E = E[0]; } - p = E; + h = E; } - p == null && (p = ""), E = p; + h == null && (h = ""), E = h; } - c._wrapperState = { initialValue: rt(E) }; + c._wrapperState = { initialValue: tt(E) }; } - function je(c, p) { - var E = rt(p.value), O = rt(p.defaultValue); - E != null && (E = "" + E, E !== c.value && (c.value = E), p.defaultValue == null && c.defaultValue !== E && (c.defaultValue = E)), O != null && (c.defaultValue = "" + O); + function Qe(c, h) { + var E = tt(h.value), P = tt(h.defaultValue); + E != null && (E = "" + E, E !== c.value && (c.value = E), h.defaultValue == null && c.defaultValue !== E && (c.defaultValue = E)), P != null && (c.defaultValue = "" + P); } - function lt(c) { - var p = c.textContent; - p === c._wrapperState.initialValue && p !== "" && p !== null && (c.value = p); + function ut(c) { + var h = c.textContent; + h === c._wrapperState.initialValue && h !== "" && h !== null && (c.value = h); } - function zt(c) { + function Ft(c) { switch (c) { case "svg": return "http://www.w3.org/2000/svg"; @@ -36428,36 +36308,36 @@ function vj() { return "http://www.w3.org/1999/xhtml"; } } - function Nt(c, p) { - return c == null || c === "http://www.w3.org/1999/xhtml" ? zt(p) : c === "http://www.w3.org/2000/svg" && p === "foreignObject" ? "http://www.w3.org/1999/xhtml" : c; + function Ot(c, h) { + return c == null || c === "http://www.w3.org/1999/xhtml" ? Ft(h) : c === "http://www.w3.org/2000/svg" && h === "foreignObject" ? "http://www.w3.org/1999/xhtml" : c; } - var Ut, tt = function(c) { - return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(p, E, O, G) { + var Wt, it = function(c) { + return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(h, E, P, V) { MSApp.execUnsafeLocalFunction(function() { - return c(p, E, O, G); + return c(h, E, P, V); }); } : c; - }(function(c, p) { + }(function(c, h) { if (c.namespaceURI !== "http://www.w3.org/2000/svg" || "innerHTML" in c) - c.innerHTML = p; + c.innerHTML = h; else { - for (Ut = Ut || document.createElement("div"), Ut.innerHTML = "" + p.valueOf().toString() + "", p = Ut.firstChild; c.firstChild; ) + for (Wt = Wt || document.createElement("div"), Wt.innerHTML = "" + h.valueOf().toString() + "", h = Wt.firstChild; c.firstChild; ) c.removeChild(c.firstChild); - for (; p.firstChild; ) - c.appendChild(p.firstChild); + for (; h.firstChild; ) + c.appendChild(h.firstChild); } }); - function rn(c, p) { - if (p) { + function an(c, h) { + if (h) { var E = c.firstChild; if (E && E === c.lastChild && E.nodeType === 3) { - E.nodeValue = p; + E.nodeValue = h; return; } } - c.textContent = p; + c.textContent = h; } - var ze = { + var Be = { animationIterationCount: !0, aspectRatio: !0, borderImageOutset: !0, @@ -36501,41 +36381,41 @@ function vj() { strokeMiterlimit: !0, strokeOpacity: !0, strokeWidth: !0 - }, xe = ["Webkit", "ms", "Moz", "O"]; - Object.keys(ze).forEach(function(c) { - xe.forEach(function(p) { - p = p + c.charAt(0).toUpperCase() + c.substring(1), ze[p] = ze[c]; + }, pe = ["Webkit", "ms", "Moz", "O"]; + Object.keys(Be).forEach(function(c) { + pe.forEach(function(h) { + h = h + c.charAt(0).toUpperCase() + c.substring(1), Be[h] = Be[c]; }); }); - function Ie(c, p, E) { - return p == null || typeof p == "boolean" || p === "" ? "" : E || typeof p != "number" || p === 0 || ze.hasOwnProperty(c) && ze[c] ? ("" + p).trim() : p + "px"; + function Fe(c, h, E) { + return h == null || typeof h == "boolean" || h === "" ? "" : E || typeof h != "number" || h === 0 || Be.hasOwnProperty(c) && Be[c] ? ("" + h).trim() : h + "px"; } - function it(c, p) { + function at(c, h) { c = c.style; - for (var E in p) - if (p.hasOwnProperty(E)) { - var O = E.indexOf("--") === 0, G = Ie(E, p[E], O); - E === "float" && (E = "cssFloat"), O ? c.setProperty(E, G) : c[E] = G; + for (var E in h) + if (h.hasOwnProperty(E)) { + var P = E.indexOf("--") === 0, V = Fe(E, h[E], P); + E === "float" && (E = "cssFloat"), P ? c.setProperty(E, V) : c[E] = V; } } - var at = ce({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 }); - function hn(c, p) { - if (p) { - if (at[c] && (p.children != null || p.dangerouslySetInnerHTML != null)) + var st = he({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 }); + function dn(c, h) { + if (h) { + if (st[c] && (h.children != null || h.dangerouslySetInnerHTML != null)) throw Error(t(137, c)); - if (p.dangerouslySetInnerHTML != null) { - if (p.children != null) + if (h.dangerouslySetInnerHTML != null) { + if (h.children != null) throw Error(t(60)); - if (typeof p.dangerouslySetInnerHTML != "object" || !("__html" in p.dangerouslySetInnerHTML)) + if (typeof h.dangerouslySetInnerHTML != "object" || !("__html" in h.dangerouslySetInnerHTML)) throw Error(t(61)); } - if (p.style != null && typeof p.style != "object") + if (h.style != null && typeof h.style != "object") throw Error(t(62)); } } - function De(c, p) { + function ze(c, h) { if (c.indexOf("-") === -1) - return typeof p.is == "string"; + return typeof h.is == "string"; switch (c) { case "annotation-xml": case "color-profile": @@ -36550,56 +36430,56 @@ function vj() { return !0; } } - var Tt = null; - function Ne(c) { + var wt = null; + function Pe(c) { return c = c.target || c.srcElement || window, c.correspondingUseElement && (c = c.correspondingUseElement), c.nodeType === 3 ? c.parentNode : c; } - var Gt = null, Pt = null, fn = null; - function Gr(c) { + var Gt = null, At = null, cn = null; + function ki(c) { if (c = ka(c)) { if (typeof Gt != "function") throw Error(t(280)); - var p = c.stateNode; - p && (p = vr(p), Gt(c.stateNode, c.type, p)); + var h = c.stateNode; + h && (h = vr(h), Gt(c.stateNode, c.type, h)); } } - function Wr(c) { - Pt ? fn ? fn.push(c) : fn = [c] : Pt = c; + function Or(c) { + At ? cn ? cn.push(c) : cn = [c] : At = c; } - function Ur() { - if (Pt) { - var c = Pt, p = fn; - if (fn = Pt = null, Gr(c), p) - for (c = 0; c < p.length; c++) - Gr(p[c]); + function Ii() { + if (At) { + var c = At, h = cn; + if (cn = At = null, ki(c), h) + for (c = 0; c < h.length; c++) + ki(h[c]); } } - function ir(c, p) { - return c(p); + function Ir(c, h) { + return c(h); } - function Vn() { + function Bn() { } - var jr = !1; - function ti(c, p, E) { - if (jr) - return c(p, E); - jr = !0; + var Mi = !1; + function yi(c, h, E) { + if (Mi) + return c(h, E); + Mi = !0; try { - return ir(c, p, E); + return Ir(c, h, E); } finally { - jr = !1, (Pt !== null || fn !== null) && (Vn(), Ur()); + Mi = !1, (At !== null || cn !== null) && (Bn(), Ii()); } } - function ki(c, p) { + function ii(c, h) { var E = c.stateNode; if (E === null) return null; - var O = vr(E); - if (O === null) + var P = vr(E); + if (P === null) return null; - E = O[p]; + E = P[h]; e: - switch (p) { + switch (h) { case "onClick": case "onClickCapture": case "onDoubleClick": @@ -36611,7 +36491,7 @@ function vj() { case "onMouseUp": case "onMouseUpCapture": case "onMouseEnter": - (O = !O.disabled) || (c = c.type, O = !(c === "button" || c === "input" || c === "select" || c === "textarea")), c = !O; + (P = !P.disabled) || (c = c.type, P = !(c === "button" || c === "input" || c === "select" || c === "textarea")), c = !P; break e; default: c = !1; @@ -36619,162 +36499,162 @@ function vj() { if (c) return null; if (E && typeof E != "function") - throw Error(t(231, p, typeof E)); + throw Error(t(231, h, typeof E)); return E; } - var Wi = !1; + var Bi = !1; if (d) try { - var ni = {}; - Object.defineProperty(ni, "passive", { get: function() { - Wi = !0; - } }), window.addEventListener("test", ni, ni), window.removeEventListener("test", ni, ni); + var xi = {}; + Object.defineProperty(xi, "passive", { get: function() { + Bi = !0; + } }), window.addEventListener("test", xi, xi), window.removeEventListener("test", xi, xi); } catch { - Wi = !1; + Bi = !1; } - function ji(c, p, E, O, G, Q, ue, Le, Ve) { - var Ct = Array.prototype.slice.call(arguments, 3); + function $r(c, h, E, P, V, q, le, Oe, Ge) { + var Dt = Array.prototype.slice.call(arguments, 3); try { - p.apply(E, Ct); - } catch (un) { - this.onError(un); + h.apply(E, Dt); + } catch (fn) { + this.onError(fn); } } - var Si = !1, Te = null, ct = !1, me = null, Oe = { onError: function(c) { - Si = !0, Te = c; + var ai = !1, Te = null, ot = !1, de = null, Le = { onError: function(c) { + ai = !0, Te = c; } }; - function qe(c, p, E, O, G, Q, ue, Le, Ve) { - Si = !1, Te = null, ji.apply(Oe, arguments); - } - function on(c, p, E, O, G, Q, ue, Le, Ve) { - if (qe.apply(this, arguments), Si) { - if (Si) { - var Ct = Te; - Si = !1, Te = null; + function Ye(c, h, E, P, V, q, le, Oe, Ge) { + ai = !1, Te = null, $r.apply(Le, arguments); + } + function $t(c, h, E, P, V, q, le, Oe, Ge) { + if (Ye.apply(this, arguments), ai) { + if (ai) { + var Dt = Te; + ai = !1, Te = null; } else throw Error(t(198)); - ct || (ct = !0, me = Ct); + ot || (ot = !0, de = Dt); } } - function yn(c) { - var p = c, E = c; + function mn(c) { + var h = c, E = c; if (c.alternate) - for (; p.return; ) - p = p.return; + for (; h.return; ) + h = h.return; else { - c = p; + c = h; do - p = c, (p.flags & 4098) !== 0 && (E = p.return), c = p.return; + h = c, (h.flags & 4098) !== 0 && (E = h.return), c = h.return; while (c); } - return p.tag === 3 ? E : null; + return h.tag === 3 ? E : null; } function Rn(c) { if (c.tag === 13) { - var p = c.memoizedState; - if (p === null && (c = c.alternate, c !== null && (p = c.memoizedState)), p !== null) - return p.dehydrated; + var h = c.memoizedState; + if (h === null && (c = c.alternate, c !== null && (h = c.memoizedState)), h !== null) + return h.dehydrated; } return null; } - function mn(c) { - if (yn(c) !== c) + function gn(c) { + if (mn(c) !== c) throw Error(t(188)); } - function vn(c) { - var p = c.alternate; - if (!p) { - if (p = yn(c), p === null) + function yn(c) { + var h = c.alternate; + if (!h) { + if (h = mn(c), h === null) throw Error(t(188)); - return p !== c ? null : c; + return h !== c ? null : c; } - for (var E = c, O = p; ; ) { - var G = E.return; - if (G === null) + for (var E = c, P = h; ; ) { + var V = E.return; + if (V === null) break; - var Q = G.alternate; - if (Q === null) { - if (O = G.return, O !== null) { - E = O; + var q = V.alternate; + if (q === null) { + if (P = V.return, P !== null) { + E = P; continue; } break; } - if (G.child === Q.child) { - for (Q = G.child; Q; ) { - if (Q === E) - return mn(G), c; - if (Q === O) - return mn(G), p; - Q = Q.sibling; + if (V.child === q.child) { + for (q = V.child; q; ) { + if (q === E) + return gn(V), c; + if (q === P) + return gn(V), h; + q = q.sibling; } throw Error(t(188)); } - if (E.return !== O.return) - E = G, O = Q; + if (E.return !== P.return) + E = V, P = q; else { - for (var ue = !1, Le = G.child; Le; ) { - if (Le === E) { - ue = !0, E = G, O = Q; + for (var le = !1, Oe = V.child; Oe; ) { + if (Oe === E) { + le = !0, E = V, P = q; break; } - if (Le === O) { - ue = !0, O = G, E = Q; + if (Oe === P) { + le = !0, P = V, E = q; break; } - Le = Le.sibling; + Oe = Oe.sibling; } - if (!ue) { - for (Le = Q.child; Le; ) { - if (Le === E) { - ue = !0, E = Q, O = G; + if (!le) { + for (Oe = q.child; Oe; ) { + if (Oe === E) { + le = !0, E = q, P = V; break; } - if (Le === O) { - ue = !0, O = Q, E = G; + if (Oe === P) { + le = !0, P = q, E = V; break; } - Le = Le.sibling; + Oe = Oe.sibling; } - if (!ue) + if (!le) throw Error(t(189)); } } - if (E.alternate !== O) + if (E.alternate !== P) throw Error(t(190)); } if (E.tag !== 3) throw Error(t(188)); - return E.stateNode.current === E ? c : p; + return E.stateNode.current === E ? c : h; } - function Zn(c) { - return c = vn(c), c !== null ? nr(c) : null; + function Jn(c) { + return c = yn(c), c !== null ? rr(c) : null; } - function nr(c) { + function rr(c) { if (c.tag === 5 || c.tag === 6) return c; for (c = c.child; c !== null; ) { - var p = nr(c); - if (p !== null) - return p; + var h = rr(c); + if (h !== null) + return h; c = c.sibling; } return null; } - var br = e.unstable_scheduleCallback, Yi = e.unstable_cancelCallback, La = e.unstable_shouldYield, Xs = e.unstable_requestPaint, $t = e.unstable_now, Zr = e.unstable_getCurrentPriorityLevel, ls = e.unstable_ImmediatePriority, Xn = e.unstable_UserBlockingPriority, qa = e.unstable_NormalPriority, mo = e.unstable_LowPriority, Ds = e.unstable_IdlePriority, us = null, mr = null; - function pi(c) { + var wr = e.unstable_scheduleCallback, Yi = e.unstable_cancelCallback, La = e.unstable_shouldYield, qs = e.unstable_requestPaint, en = e.unstable_now, Xr = e.unstable_getCurrentPriorityLevel, us = e.unstable_ImmediatePriority, qn = e.unstable_UserBlockingPriority, qa = e.unstable_NormalPriority, mo = e.unstable_LowPriority, Ls = e.unstable_IdlePriority, cs = null, mr = null; + function di(c) { if (mr && typeof mr.onCommitFiberRoot == "function") try { - mr.onCommitFiberRoot(us, c, void 0, (c.current.flags & 128) === 128); + mr.onCommitFiberRoot(cs, c, void 0, (c.current.flags & 128) === 128); } catch { } } - var Ea = Math.clz32 ? Math.clz32 : Uo, _i = Math.log, Ti = Math.LN2; + var Ea = Math.clz32 ? Math.clz32 : Uo, Si = Math.log, Ti = Math.LN2; function Uo(c) { - return c >>>= 0, c === 0 ? 32 : 31 - (_i(c) / Ti | 0) | 0; + return c >>>= 0, c === 0 ? 32 : 31 - (Si(c) / Ti | 0) | 0; } var zo = 64, Pa = 4194304; - function Rl(c) { + function Dl(c) { switch (c & -c) { case 1: return 1; @@ -36823,31 +36703,31 @@ function vj() { return c; } } - function vo(c, p) { + function vo(c, h) { var E = c.pendingLanes; if (E === 0) return 0; - var O = 0, G = c.suspendedLanes, Q = c.pingedLanes, ue = E & 268435455; - if (ue !== 0) { - var Le = ue & ~G; - Le !== 0 ? O = Rl(Le) : (Q &= ue, Q !== 0 && (O = Rl(Q))); + var P = 0, V = c.suspendedLanes, q = c.pingedLanes, le = E & 268435455; + if (le !== 0) { + var Oe = le & ~V; + Oe !== 0 ? P = Dl(Oe) : (q &= le, q !== 0 && (P = Dl(q))); } else - ue = E & ~G, ue !== 0 ? O = Rl(ue) : Q !== 0 && (O = Rl(Q)); - if (O === 0) + le = E & ~V, le !== 0 ? P = Dl(le) : q !== 0 && (P = Dl(q)); + if (P === 0) return 0; - if (p !== 0 && p !== O && (p & G) === 0 && (G = O & -O, Q = p & -p, G >= Q || G === 16 && (Q & 4194240) !== 0)) - return p; - if ((O & 4) !== 0 && (O |= E & 16), p = c.entangledLanes, p !== 0) - for (c = c.entanglements, p &= O; 0 < p; ) - E = 31 - Ea(p), G = 1 << E, O |= c[E], p &= ~G; - return O; + if (h !== 0 && h !== P && (h & V) === 0 && (V = P & -P, q = h & -h, V >= q || V === 16 && (q & 4194240) !== 0)) + return h; + if ((P & 4) !== 0 && (P |= E & 16), h = c.entangledLanes, h !== 0) + for (c = c.entanglements, h &= P; 0 < h; ) + E = 31 - Ea(h), V = 1 << E, P |= c[E], h &= ~V; + return P; } - function Wf(c, p) { + function Yf(c, h) { switch (c) { case 1: case 2: case 4: - return p + 250; + return h + 250; case 8: case 16: case 32: @@ -36867,7 +36747,7 @@ function vj() { case 524288: case 1048576: case 2097152: - return p + 5e3; + return h + 5e3; case 4194304: case 8388608: case 16777216: @@ -36883,49 +36763,49 @@ function vj() { return -1; } } - function Al(c, p) { - for (var E = c.suspendedLanes, O = c.pingedLanes, G = c.expirationTimes, Q = c.pendingLanes; 0 < Q; ) { - var ue = 31 - Ea(Q), Le = 1 << ue, Ve = G[ue]; - Ve === -1 ? ((Le & E) === 0 || (Le & O) !== 0) && (G[ue] = Wf(Le, p)) : Ve <= p && (c.expiredLanes |= Le), Q &= ~Le; + function Ll(c, h) { + for (var E = c.suspendedLanes, P = c.pingedLanes, V = c.expirationTimes, q = c.pendingLanes; 0 < q; ) { + var le = 31 - Ea(q), Oe = 1 << le, Ge = V[le]; + Ge === -1 ? ((Oe & E) === 0 || (Oe & P) !== 0) && (V[le] = Yf(Oe, h)) : Ge <= h && (c.expiredLanes |= Oe), q &= ~Oe; } } - function zd(c) { + function Nd(c) { return c = c.pendingLanes & -1073741825, c !== 0 ? c : c & 1073741824 ? 1073741824 : 0; } - function Ls() { + function Ps() { var c = zo; return zo <<= 1, (zo & 4194240) === 0 && (zo = 64), c; } function Ju(c) { - for (var p = [], E = 0; 31 > E; E++) - p.push(c); - return p; + for (var h = [], E = 0; 31 > E; E++) + h.push(c); + return h; } - function au(c, p, E) { - c.pendingLanes |= p, p !== 536870912 && (c.suspendedLanes = 0, c.pingedLanes = 0), c = c.eventTimes, p = 31 - Ea(p), c[p] = E; + function ou(c, h, E) { + c.pendingLanes |= h, h !== 536870912 && (c.suspendedLanes = 0, c.pingedLanes = 0), c = c.eventTimes, h = 31 - Ea(h), c[h] = E; } - function qh(c, p) { - var E = c.pendingLanes & ~p; - c.pendingLanes = p, c.suspendedLanes = 0, c.pingedLanes = 0, c.expiredLanes &= p, c.mutableReadLanes &= p, c.entangledLanes &= p, p = c.entanglements; - var O = c.eventTimes; + function Jh(c, h) { + var E = c.pendingLanes & ~h; + c.pendingLanes = h, c.suspendedLanes = 0, c.pingedLanes = 0, c.expiredLanes &= h, c.mutableReadLanes &= h, c.entangledLanes &= h, h = c.entanglements; + var P = c.eventTimes; for (c = c.expirationTimes; 0 < E; ) { - var G = 31 - Ea(E), Q = 1 << G; - p[G] = 0, O[G] = -1, c[G] = -1, E &= ~Q; + var V = 31 - Ea(E), q = 1 << V; + h[V] = 0, P[V] = -1, c[V] = -1, E &= ~q; } } - function Dl(c, p) { - var E = c.entangledLanes |= p; + function Pl(c, h) { + var E = c.entangledLanes |= h; for (c = c.entanglements; E; ) { - var O = 31 - Ea(E), G = 1 << O; - G & p | c[O] & p && (c[O] |= p), E &= ~G; + var P = 31 - Ea(E), V = 1 << P; + V & h | c[P] & h && (c[P] |= h), E &= ~V; } } - var ri = 0; + var ei = 0; function go(c) { return c &= -c, 1 < c ? 4 < c ? (c & 268435455) !== 0 ? 16 : 536870912 : 4 : 1; } - var jf, No, Ci, cs, Yf, xr = !1, Eu = [], ua = null, Cr = null, fl = null, yo = /* @__PURE__ */ new Map(), Ka = /* @__PURE__ */ new Map(), Xi = [], Rm = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); - function mi(c, p) { + var Xf, No, Ci, fs, qf, xr = !1, Tu = [], ua = null, Cr = null, dl = null, yo = /* @__PURE__ */ new Map(), Ka = /* @__PURE__ */ new Map(), Xi = [], Lm = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); + function hi(c, h) { switch (c) { case "focusin": case "focusout": @@ -36937,49 +36817,49 @@ function vj() { break; case "mouseover": case "mouseout": - fl = null; + dl = null; break; case "pointerover": case "pointerout": - yo.delete(p.pointerId); + yo.delete(h.pointerId); break; case "gotpointercapture": case "lostpointercapture": - Ka.delete(p.pointerId); + Ka.delete(h.pointerId); } } - function Qa(c, p, E, O, G, Q) { - return c === null || c.nativeEvent !== Q ? (c = { blockedOn: p, domEventName: E, eventSystemFlags: O, nativeEvent: Q, targetContainers: [G] }, p !== null && (p = ka(p), p !== null && No(p)), c) : (c.eventSystemFlags |= O, p = c.targetContainers, G !== null && p.indexOf(G) === -1 && p.push(G), c); + function Qa(c, h, E, P, V, q) { + return c === null || c.nativeEvent !== q ? (c = { blockedOn: h, domEventName: E, eventSystemFlags: P, nativeEvent: q, targetContainers: [V] }, h !== null && (h = ka(h), h !== null && No(h)), c) : (c.eventSystemFlags |= P, h = c.targetContainers, V !== null && h.indexOf(V) === -1 && h.push(V), c); } - function Sc(c, p, E, O, G) { - switch (p) { + function Sc(c, h, E, P, V) { + switch (h) { case "focusin": - return ua = Qa(ua, c, p, E, O, G), !0; + return ua = Qa(ua, c, h, E, P, V), !0; case "dragenter": - return Cr = Qa(Cr, c, p, E, O, G), !0; + return Cr = Qa(Cr, c, h, E, P, V), !0; case "mouseover": - return fl = Qa(fl, c, p, E, O, G), !0; + return dl = Qa(dl, c, h, E, P, V), !0; case "pointerover": - var Q = G.pointerId; - return yo.set(Q, Qa(yo.get(Q) || null, c, p, E, O, G)), !0; + var q = V.pointerId; + return yo.set(q, Qa(yo.get(q) || null, c, h, E, P, V)), !0; case "gotpointercapture": - return Q = G.pointerId, Ka.set(Q, Qa(Ka.get(Q) || null, c, p, E, O, G)), !0; + return q = V.pointerId, Ka.set(q, Qa(Ka.get(q) || null, c, h, E, P, V)), !0; } return !1; } - function dl(c) { - var p = Js(c.target); - if (p !== null) { - var E = yn(p); + function hl(c) { + var h = Ks(c.target); + if (h !== null) { + var E = mn(h); if (E !== null) { - if (p = E.tag, p === 13) { - if (p = Rn(E), p !== null) { - c.blockedOn = p, Yf(c.priority, function() { + if (h = E.tag, h === 13) { + if (h = Rn(E), h !== null) { + c.blockedOn = h, qf(c.priority, function() { Ci(E); }); return; } - } else if (p === 3 && E.stateNode.current.memoizedState.isDehydrated) { + } else if (h === 3 && E.stateNode.current.memoizedState.isDehydrated) { c.blockedOn = E.tag === 3 ? E.stateNode.containerInfo : null; return; } @@ -36987,102 +36867,102 @@ function vj() { } c.blockedOn = null; } - function df(c) { + function pf(c) { if (c.blockedOn !== null) return !1; - for (var p = c.targetContainers; 0 < p.length; ) { - var E = ko(c.domEventName, c.eventSystemFlags, p[0], c.nativeEvent); + for (var h = c.targetContainers; 0 < h.length; ) { + var E = ko(c.domEventName, c.eventSystemFlags, h[0], c.nativeEvent); if (E === null) { E = c.nativeEvent; - var O = new E.constructor(E.type, E); - Tt = O, E.target.dispatchEvent(O), Tt = null; + var P = new E.constructor(E.type, E); + wt = P, E.target.dispatchEvent(P), wt = null; } else - return p = ka(E), p !== null && No(p), c.blockedOn = E, !1; - p.shift(); + return h = ka(E), h !== null && No(h), c.blockedOn = E, !1; + h.shift(); } return !0; } - function hf(c, p, E) { - df(c) && E.delete(p); + function mf(c, h, E) { + pf(c) && E.delete(h); } - function su() { - xr = !1, ua !== null && df(ua) && (ua = null), Cr !== null && df(Cr) && (Cr = null), fl !== null && df(fl) && (fl = null), yo.forEach(hf), Ka.forEach(hf); + function lu() { + xr = !1, ua !== null && pf(ua) && (ua = null), Cr !== null && pf(Cr) && (Cr = null), dl !== null && pf(dl) && (dl = null), yo.forEach(mf), Ka.forEach(mf); } - function Ii(c, p) { - c.blockedOn === p && (c.blockedOn = null, xr || (xr = !0, e.unstable_scheduleCallback(e.unstable_NormalPriority, su))); + function Hi(c, h) { + c.blockedOn === h && (c.blockedOn = null, xr || (xr = !0, e.unstable_scheduleCallback(e.unstable_NormalPriority, lu))); } function Ri(c) { - function p(G) { - return Ii(G, c); + function h(V) { + return Hi(V, c); } - if (0 < Eu.length) { - Ii(Eu[0], c); - for (var E = 1; E < Eu.length; E++) { - var O = Eu[E]; - O.blockedOn === c && (O.blockedOn = null); + if (0 < Tu.length) { + Hi(Tu[0], c); + for (var E = 1; E < Tu.length; E++) { + var P = Tu[E]; + P.blockedOn === c && (P.blockedOn = null); } } - for (ua !== null && Ii(ua, c), Cr !== null && Ii(Cr, c), fl !== null && Ii(fl, c), yo.forEach(p), Ka.forEach(p), E = 0; E < Xi.length; E++) - O = Xi[E], O.blockedOn === c && (O.blockedOn = null); + for (ua !== null && Hi(ua, c), Cr !== null && Hi(Cr, c), dl !== null && Hi(dl, c), yo.forEach(h), Ka.forEach(h), E = 0; E < Xi.length; E++) + P = Xi[E], P.blockedOn === c && (P.blockedOn = null); for (; 0 < Xi.length && (E = Xi[0], E.blockedOn === null); ) - dl(E), E.blockedOn === null && Xi.shift(); + hl(E), E.blockedOn === null && Xi.shift(); } - var Fo = I.ReactCurrentBatchConfig, Ps = !0; - function _c(c, p, E, O) { - var G = ri, Q = Fo.transition; + var Fo = B.ReactCurrentBatchConfig, Os = !0; + function wc(c, h, E, P) { + var V = ei, q = Fo.transition; Fo.transition = null; try { - ri = 1, Xf(c, p, E, O); + ei = 1, Qf(c, h, E, P); } finally { - ri = G, Fo.transition = Q; + ei = V, Fo.transition = q; } } - function Ll(c, p, E, O) { - var G = ri, Q = Fo.transition; + function Ol(c, h, E, P) { + var V = ei, q = Fo.transition; Fo.transition = null; try { - ri = 4, Xf(c, p, E, O); + ei = 4, Qf(c, h, E, P); } finally { - ri = G, Fo.transition = Q; - } - } - function Xf(c, p, E, O) { - if (Ps) { - var G = ko(c, p, E, O); - if (G === null) - Du(c, p, O, qf, E), mi(c, O); - else if (Sc(G, c, p, E, O)) - O.stopPropagation(); - else if (mi(c, O), p & 4 && -1 < Rm.indexOf(c)) { - for (; G !== null; ) { - var Q = ka(G); - if (Q !== null && jf(Q), Q = ko(c, p, E, O), Q === null && Du(c, p, O, qf, E), Q === G) + ei = V, Fo.transition = q; + } + } + function Qf(c, h, E, P) { + if (Os) { + var V = ko(c, h, E, P); + if (V === null) + Pu(c, h, P, Zf, E), hi(c, P); + else if (Sc(V, c, h, E, P)) + P.stopPropagation(); + else if (hi(c, P), h & 4 && -1 < Lm.indexOf(c)) { + for (; V !== null; ) { + var q = ka(V); + if (q !== null && Xf(q), q = ko(c, h, E, P), q === null && Pu(c, h, P, Zf, E), q === V) break; - G = Q; + V = q; } - G !== null && O.stopPropagation(); + V !== null && P.stopPropagation(); } else - Du(c, p, O, null, E); + Pu(c, h, P, null, E); } } - var qf = null; - function ko(c, p, E, O) { - if (qf = null, c = Ne(O), c = Js(c), c !== null) - if (p = yn(c), p === null) + var Zf = null; + function ko(c, h, E, P) { + if (Zf = null, c = Pe(P), c = Ks(c), c !== null) + if (h = mn(c), h === null) c = null; - else if (E = p.tag, E === 13) { - if (c = Rn(p), c !== null) + else if (E = h.tag, E === 13) { + if (c = Rn(h), c !== null) return c; c = null; } else if (E === 3) { - if (p.stateNode.current.memoizedState.isDehydrated) - return p.tag === 3 ? p.stateNode.containerInfo : null; + if (h.stateNode.current.memoizedState.isDehydrated) + return h.tag === 3 ? h.stateNode.containerInfo : null; c = null; } else - p !== c && (c = null); - return qf = c, null; + h !== c && (c = null); + return Zf = c, null; } - function Qf(c) { + function Jf(c) { switch (c) { case "cancel": case "click": @@ -37157,15 +37037,15 @@ function vj() { case "pointerleave": return 4; case "message": - switch (Zr()) { - case ls: + switch (Xr()) { + case us: return 1; - case Xn: + case qn: return 4; case qa: case mo: return 16; - case Ds: + case Ls: return 536870912; default: return 16; @@ -37174,21 +37054,21 @@ function vj() { return 16; } } - var Ki = null, Mu = null, Oa = null; - function ys() { + var Ki = null, Cu = null, Oa = null; + function xs() { if (Oa) return Oa; - var c, p = Mu, E = p.length, O, G = "value" in Ki ? Ki.value : Ki.textContent, Q = G.length; - for (c = 0; c < E && p[c] === G[c]; c++) + var c, h = Cu, E = h.length, P, V = "value" in Ki ? Ki.value : Ki.textContent, q = V.length; + for (c = 0; c < E && h[c] === V[c]; c++) ; - var ue = E - c; - for (O = 1; O <= ue && p[E - O] === G[Q - O]; O++) + var le = E - c; + for (P = 1; P <= le && h[E - P] === V[q - P]; P++) ; - return Oa = G.slice(c, 1 < O ? 1 - O : void 0); + return Oa = V.slice(c, 1 < P ? 1 - P : void 0); } - function ou(c) { - var p = c.keyCode; - return "charCode" in c ? (c = c.charCode, c === 0 && p === 13 && (c = 13)) : c = p, c === 10 && (c = 13), 32 <= c || c === 13 ? c : 0; + function uu(c) { + var h = c.keyCode; + return "charCode" in c ? (c = c.charCode, c === 0 && h === 13 && (c = 13)) : c = h, c === 10 && (c = 13), 32 <= c || c === 13 ? c : 0; } function Ua() { return !0; @@ -37197,13 +37077,13 @@ function vj() { return !1; } function xo(c) { - function p(E, O, G, Q, ue) { - this._reactName = E, this._targetInst = G, this.type = O, this.nativeEvent = Q, this.target = ue, this.currentTarget = null; - for (var Le in c) - c.hasOwnProperty(Le) && (E = c[Le], this[Le] = E ? E(Q) : Q[Le]); - return this.isDefaultPrevented = (Q.defaultPrevented != null ? Q.defaultPrevented : Q.returnValue === !1) ? Ua : bc, this.isPropagationStopped = bc, this; + function h(E, P, V, q, le) { + this._reactName = E, this._targetInst = V, this.type = P, this.nativeEvent = q, this.target = le, this.currentTarget = null; + for (var Oe in c) + c.hasOwnProperty(Oe) && (E = c[Oe], this[Oe] = E ? E(q) : q[Oe]); + return this.isDefaultPrevented = (q.defaultPrevented != null ? q.defaultPrevented : q.returnValue === !1) ? Ua : bc, this.isPropagationStopped = bc, this; } - return ce(p.prototype, { preventDefault: function() { + return he(h.prototype, { preventDefault: function() { this.defaultPrevented = !0; var E = this.nativeEvent; E && (E.preventDefault ? E.preventDefault() : typeof E.returnValue != "unknown" && (E.returnValue = !1), this.isDefaultPrevented = Ua); @@ -37211,19 +37091,19 @@ function vj() { var E = this.nativeEvent; E && (E.stopPropagation ? E.stopPropagation() : typeof E.cancelBubble != "unknown" && (E.cancelBubble = !0), this.isPropagationStopped = Ua); }, persist: function() { - }, isPersistent: Ua }), p; + }, isPersistent: Ua }), h; } - var Tu = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(c) { + var Ru = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(c) { return c.timeStamp || Date.now(); - }, defaultPrevented: 0, isTrusted: 0 }, Pl = xo(Tu), za = ce({}, Tu, { view: 0, detail: 0 }), qs = xo(za), Jr, xs, va, Qs = ce({}, za, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: Nd, button: 0, buttons: 0, relatedTarget: function(c) { + }, defaultPrevented: 0, isTrusted: 0 }, Ul = xo(Ru), za = he({}, Ru, { view: 0, detail: 0 }), Qs = xo(za), qr, _s, va, Zs = he({}, za, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: Fd, button: 0, buttons: 0, relatedTarget: function(c) { return c.relatedTarget === void 0 ? c.fromElement === c.srcElement ? c.toElement : c.fromElement : c.relatedTarget; }, movementX: function(c) { - return "movementX" in c ? c.movementX : (c !== va && (va && c.type === "mousemove" ? (Jr = c.screenX - va.screenX, xs = c.screenY - va.screenY) : xs = Jr = 0, va = c), Jr); + return "movementX" in c ? c.movementX : (c !== va && (va && c.type === "mousemove" ? (qr = c.screenX - va.screenX, _s = c.screenY - va.screenY) : _s = qr = 0, va = c), qr); }, movementY: function(c) { - return "movementY" in c ? c.movementY : xs; - } }), Zf = xo(Qs), $o = ce({}, Qs, { dataTransfer: 0 }), Ku = xo($o), Qh = ce({}, za, { relatedTarget: 0 }), qi = xo(Qh), Cu = ce({}, Tu, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), Up = xo(Cu), fg = ce({}, Tu, { clipboardData: function(c) { + return "movementY" in c ? c.movementY : _s; + } }), Kf = xo(Zs), el = he({}, Zs, { dataTransfer: 0 }), Ku = xo(el), Kh = he({}, za, { relatedTarget: 0 }), qi = xo(Kh), Au = he({}, Ru, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), Fp = xo(Au), pg = he({}, Ru, { clipboardData: function(c) { return "clipboardData" in c ? c.clipboardData : window.clipboardData; - } }), Zh = xo(fg), Am = ce({}, Tu, { data: 0 }), Dm = xo(Am), Lm = { + } }), $h = xo(pg), Pm = he({}, Ru, { data: 0 }), Om = xo(Pm), Um = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", @@ -37236,7 +37116,7 @@ function vj() { Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" - }, Pm = { + }, zm = { 8: "Backspace", 9: "Tab", 12: "Clear", @@ -37273,28 +37153,28 @@ function vj() { 144: "NumLock", 145: "ScrollLock", 224: "Meta" - }, vh = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; + }, gh = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; function $u(c) { - var p = this.nativeEvent; - return p.getModifierState ? p.getModifierState(c) : (c = vh[c]) ? !!p[c] : !1; + var h = this.nativeEvent; + return h.getModifierState ? h.getModifierState(c) : (c = gh[c]) ? !!h[c] : !1; } - function Nd() { + function Fd() { return $u; } - var Ru = ce({}, za, { key: function(c) { + var Du = he({}, za, { key: function(c) { if (c.key) { - var p = Lm[c.key] || c.key; - if (p !== "Unidentified") - return p; + var h = Um[c.key] || c.key; + if (h !== "Unidentified") + return h; } - return c.type === "keypress" ? (c = ou(c), c === 13 ? "Enter" : String.fromCharCode(c)) : c.type === "keydown" || c.type === "keyup" ? Pm[c.keyCode] || "Unidentified" : ""; - }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: Nd, charCode: function(c) { - return c.type === "keypress" ? ou(c) : 0; + return c.type === "keypress" ? (c = uu(c), c === 13 ? "Enter" : String.fromCharCode(c)) : c.type === "keydown" || c.type === "keyup" ? zm[c.keyCode] || "Unidentified" : ""; + }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: Fd, charCode: function(c) { + return c.type === "keypress" ? uu(c) : 0; }, keyCode: function(c) { return c.type === "keydown" || c.type === "keyup" ? c.keyCode : 0; }, which: function(c) { - return c.type === "keypress" ? ou(c) : c.type === "keydown" || c.type === "keyup" ? c.keyCode : 0; - } }), zp = xo(Ru), hl = ce({}, Qs, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), el = xo(hl), pf = ce({}, za, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: Nd }), Jf = xo(pf), lu = ce({}, Tu, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), mf = xo(lu), Ol = ce({}, Qs, { + return c.type === "keypress" ? uu(c) : c.type === "keydown" || c.type === "keyup" ? c.keyCode : 0; + } }), kp = xo(Du), pl = he({}, Zs, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), tl = xo(pl), vf = he({}, za, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: Fd }), $f = xo(vf), cu = he({}, Ru, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), gf = xo(cu), zl = he({}, Zs, { deltaX: function(c) { return "deltaX" in c ? c.deltaX : "wheelDeltaX" in c ? -c.wheelDeltaX : 0; }, @@ -37303,15 +37183,15 @@ function vj() { }, deltaZ: 0, deltaMode: 0 - }), ec = xo(Ol), Oi = [9, 13, 27, 32], Za = d && "CompositionEvent" in window, Ma = null; + }), ec = xo(zl), Oi = [9, 13, 27, 32], Za = d && "CompositionEvent" in window, Ma = null; d && "documentMode" in document && (Ma = document.documentMode); - var ca = d && "TextEvent" in window && !Ma, Fd = d && (!Za || Ma && 8 < Ma && 11 >= Ma), tl = String.fromCharCode(32), Om = !1; - function Um(c, p) { + var ca = d && "TextEvent" in window && !Ma, kd = d && (!Za || Ma && 8 < Ma && 11 >= Ma), nl = String.fromCharCode(32), Nm = !1; + function Fm(c, h) { switch (c) { case "keyup": - return Oi.indexOf(p.keyCode) !== -1; + return Oi.indexOf(h.keyCode) !== -1; case "keydown": - return p.keyCode !== 229; + return h.keyCode !== 229; case "keypress": case "mousedown": case "focusout": @@ -37320,133 +37200,133 @@ function vj() { return !1; } } - function gh(c) { + function yh(c) { return c = c.detail, typeof c == "object" && "data" in c ? c.data : null; } - var Kf = !1; - function kd(c, p) { + var ed = !1; + function Id(c, h) { switch (c) { case "compositionend": - return gh(p); + return yh(h); case "keypress": - return p.which !== 32 ? null : (Om = !0, tl); + return h.which !== 32 ? null : (Nm = !0, nl); case "textInput": - return c = p.data, c === tl && Om ? null : c; + return c = h.data, c === nl && Nm ? null : c; default: return null; } } - function Np(c, p) { - if (Kf) - return c === "compositionend" || !Za && Um(c, p) ? (c = ys(), Oa = Mu = Ki = null, Kf = !1, c) : null; + function Ip(c, h) { + if (ed) + return c === "compositionend" || !Za && Fm(c, h) ? (c = xs(), Oa = Cu = Ki = null, ed = !1, c) : null; switch (c) { case "paste": return null; case "keypress": - if (!(p.ctrlKey || p.altKey || p.metaKey) || p.ctrlKey && p.altKey) { - if (p.char && 1 < p.char.length) - return p.char; - if (p.which) - return String.fromCharCode(p.which); + if (!(h.ctrlKey || h.altKey || h.metaKey) || h.ctrlKey && h.altKey) { + if (h.char && 1 < h.char.length) + return h.char; + if (h.which) + return String.fromCharCode(h.which); } return null; case "compositionend": - return Fd && p.locale !== "ko" ? null : p.data; + return kd && h.locale !== "ko" ? null : h.data; default: return null; } } - var yh = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 }; - function Id(c) { - var p = c && c.nodeName && c.nodeName.toLowerCase(); - return p === "input" ? !!yh[c.type] : p === "textarea"; + var xh = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 }; + function Bd(c) { + var h = c && c.nodeName && c.nodeName.toLowerCase(); + return h === "input" ? !!xh[c.type] : h === "textarea"; } - function $f(c, p, E, O) { - Wr(O), p = yf(p, "onChange"), 0 < p.length && (E = new Pl("onChange", "change", null, E, O), c.push({ event: E, listeners: p })); + function td(c, h, E, P) { + Or(P), h = _f(h, "onChange"), 0 < h.length && (E = new Ul("onChange", "change", null, E, P), c.push({ event: E, listeners: h })); } var Ss = null, tc = null; - function vf(c) { - an(c, 0); + function yf(c) { + sn(c, 0); } - function wc(c) { - var p = Hn(c); - if (He(p)) + function Ec(c) { + var h = Gn(c); + if (Ie(h)) return c; } - function Fp(c, p) { + function Bp(c, h) { if (c === "change") - return p; + return h; } var nc = !1; if (d) { var Na; if (d) { - var Bd = "oninput" in document; - if (!Bd) { - var ed = document.createElement("div"); - ed.setAttribute("oninput", "return;"), Bd = typeof ed.oninput == "function"; + var Hd = "oninput" in document; + if (!Hd) { + var nd = document.createElement("div"); + nd.setAttribute("oninput", "return;"), Hd = typeof nd.oninput == "function"; } - Na = Bd; + Na = Hd; } else Na = !1; nc = Na && (!document.documentMode || 9 < document.documentMode); } function rc() { - Ss && (Ss.detachEvent("onpropertychange", kp), tc = Ss = null); + Ss && (Ss.detachEvent("onpropertychange", Hp), tc = Ss = null); } - function kp(c) { - if (c.propertyName === "value" && wc(tc)) { - var p = []; - $f(p, tc, c, Ne(c)), ti(vf, p); + function Hp(c) { + if (c.propertyName === "value" && Ec(tc)) { + var h = []; + td(h, tc, c, Pe(c)), yi(yf, h); } } - function xh(c, p, E) { - c === "focusin" ? (rc(), Ss = p, tc = E, Ss.attachEvent("onpropertychange", kp)) : c === "focusout" && rc(); + function _h(c, h, E) { + c === "focusin" ? (rc(), Ss = h, tc = E, Ss.attachEvent("onpropertychange", Hp)) : c === "focusout" && rc(); } - function Ip(c) { + function Vp(c) { if (c === "selectionchange" || c === "keyup" || c === "keydown") - return wc(tc); + return Ec(tc); } - function Io(c, p) { + function Io(c, h) { if (c === "click") - return wc(p); + return Ec(h); } - function Ye(c, p) { + function Xe(c, h) { if (c === "input" || c === "change") - return wc(p); + return Ec(h); } - function Bt(c, p) { - return c === p && (c !== 0 || 1 / c === 1 / p) || c !== c && p !== p; + function Bt(c, h) { + return c === h && (c !== 0 || 1 / c === 1 / h) || c !== c && h !== h; } - var pt = typeof Object.is == "function" ? Object.is : Bt; - function Mn(c, p) { - if (pt(c, p)) + var vt = typeof Object.is == "function" ? Object.is : Bt; + function Mn(c, h) { + if (vt(c, h)) return !0; - if (typeof c != "object" || c === null || typeof p != "object" || p === null) + if (typeof c != "object" || c === null || typeof h != "object" || h === null) return !1; - var E = Object.keys(c), O = Object.keys(p); - if (E.length !== O.length) + var E = Object.keys(c), P = Object.keys(h); + if (E.length !== P.length) return !1; - for (O = 0; O < E.length; O++) { - var G = E[O]; - if (!h.call(p, G) || !pt(c[G], p[G])) + for (P = 0; P < E.length; P++) { + var V = E[P]; + if (!p.call(h, V) || !vt(c[V], h[V])) return !1; } return !0; } - function Kn(c) { + function $n(c) { for (; c && c.firstChild; ) c = c.firstChild; return c; } - function or(c, p) { - var E = Kn(c); + function or(c, h) { + var E = $n(c); c = 0; - for (var O; E; ) { + for (var P; E; ) { if (E.nodeType === 3) { - if (O = c + E.textContent.length, c <= p && O >= p) - return { node: E, offset: p - c }; - c = O; + if (P = c + E.textContent.length, c <= h && P >= h) + return { node: E, offset: h - c }; + c = P; } e: { for (; E; ) { @@ -37458,202 +37338,202 @@ function vj() { } E = void 0; } - E = Kn(E); + E = $n(E); } } - function Ta(c, p) { - return c && p ? c === p ? !0 : c && c.nodeType === 3 ? !1 : p && p.nodeType === 3 ? Ta(c, p.parentNode) : "contains" in c ? c.contains(p) : c.compareDocumentPosition ? !!(c.compareDocumentPosition(p) & 16) : !1 : !1; + function Ta(c, h) { + return c && h ? c === h ? !0 : c && c.nodeType === 3 ? !1 : h && h.nodeType === 3 ? Ta(c, h.parentNode) : "contains" in c ? c.contains(h) : c.compareDocumentPosition ? !!(c.compareDocumentPosition(h) & 16) : !1 : !1; } - function $n() { - for (var c = window, p = et(); p instanceof c.HTMLIFrameElement; ) { + function er() { + for (var c = window, h = qe(); h instanceof c.HTMLIFrameElement; ) { try { - var E = typeof p.contentWindow.location.href == "string"; + var E = typeof h.contentWindow.location.href == "string"; } catch { E = !1; } if (E) - c = p.contentWindow; + c = h.contentWindow; else break; - p = et(c.document); + h = qe(c.document); } - return p; + return h; } function Ui(c) { - var p = c && c.nodeName && c.nodeName.toLowerCase(); - return p && (p === "input" && (c.type === "text" || c.type === "search" || c.type === "tel" || c.type === "url" || c.type === "password") || p === "textarea" || c.contentEditable === "true"); - } - function ra(c) { - var p = $n(), E = c.focusedElem, O = c.selectionRange; - if (p !== E && E && E.ownerDocument && Ta(E.ownerDocument.documentElement, E)) { - if (O !== null && Ui(E)) { - if (p = O.start, c = O.end, c === void 0 && (c = p), "selectionStart" in E) - E.selectionStart = p, E.selectionEnd = Math.min(c, E.value.length); - else if (c = (p = E.ownerDocument || document) && p.defaultView || window, c.getSelection) { + var h = c && c.nodeName && c.nodeName.toLowerCase(); + return h && (h === "input" && (c.type === "text" || c.type === "search" || c.type === "tel" || c.type === "url" || c.type === "password") || h === "textarea" || c.contentEditable === "true"); + } + function ia(c) { + var h = er(), E = c.focusedElem, P = c.selectionRange; + if (h !== E && E && E.ownerDocument && Ta(E.ownerDocument.documentElement, E)) { + if (P !== null && Ui(E)) { + if (h = P.start, c = P.end, c === void 0 && (c = h), "selectionStart" in E) + E.selectionStart = h, E.selectionEnd = Math.min(c, E.value.length); + else if (c = (h = E.ownerDocument || document) && h.defaultView || window, c.getSelection) { c = c.getSelection(); - var G = E.textContent.length, Q = Math.min(O.start, G); - O = O.end === void 0 ? Q : Math.min(O.end, G), !c.extend && Q > O && (G = O, O = Q, Q = G), G = or(E, Q); - var ue = or( + var V = E.textContent.length, q = Math.min(P.start, V); + P = P.end === void 0 ? q : Math.min(P.end, V), !c.extend && q > P && (V = P, P = q, q = V), V = or(E, q); + var le = or( E, - O + P ); - G && ue && (c.rangeCount !== 1 || c.anchorNode !== G.node || c.anchorOffset !== G.offset || c.focusNode !== ue.node || c.focusOffset !== ue.offset) && (p = p.createRange(), p.setStart(G.node, G.offset), c.removeAllRanges(), Q > O ? (c.addRange(p), c.extend(ue.node, ue.offset)) : (p.setEnd(ue.node, ue.offset), c.addRange(p))); + V && le && (c.rangeCount !== 1 || c.anchorNode !== V.node || c.anchorOffset !== V.offset || c.focusNode !== le.node || c.focusOffset !== le.offset) && (h = h.createRange(), h.setStart(V.node, V.offset), c.removeAllRanges(), q > P ? (c.addRange(h), c.extend(le.node, le.offset)) : (h.setEnd(le.node, le.offset), c.addRange(h))); } } - for (p = [], c = E; c = c.parentNode; ) - c.nodeType === 1 && p.push({ element: c, left: c.scrollLeft, top: c.scrollTop }); - for (typeof E.focus == "function" && E.focus(), E = 0; E < p.length; E++) - c = p[E], c.element.scrollLeft = c.left, c.element.scrollTop = c.top; + for (h = [], c = E; c = c.parentNode; ) + c.nodeType === 1 && h.push({ element: c, left: c.scrollLeft, top: c.scrollTop }); + for (typeof E.focus == "function" && E.focus(), E = 0; E < h.length; E++) + c = h[E], c.element.scrollLeft = c.left, c.element.scrollTop = c.top; } } - var Bo = d && "documentMode" in document && 11 >= document.documentMode, fs = null, Hd = null, Ul = null, $a = !1; - function pl(c, p, E) { - var O = E.window === E ? E.document : E.nodeType === 9 ? E : E.ownerDocument; - $a || fs == null || fs !== et(O) || (O = fs, "selectionStart" in O && Ui(O) ? O = { start: O.selectionStart, end: O.selectionEnd } : (O = (O.ownerDocument && O.ownerDocument.defaultView || window).getSelection(), O = { anchorNode: O.anchorNode, anchorOffset: O.anchorOffset, focusNode: O.focusNode, focusOffset: O.focusOffset }), Ul && Mn(Ul, O) || (Ul = O, O = yf(Hd, "onSelect"), 0 < O.length && (p = new Pl("onSelect", "select", null, p, E), c.push({ event: p, listeners: O }), p.target = fs))); + var Bo = d && "documentMode" in document && 11 >= document.documentMode, ds = null, Vd = null, Nl = null, $a = !1; + function ml(c, h, E) { + var P = E.window === E ? E.document : E.nodeType === 9 ? E : E.ownerDocument; + $a || ds == null || ds !== qe(P) || (P = ds, "selectionStart" in P && Ui(P) ? P = { start: P.selectionStart, end: P.selectionEnd } : (P = (P.ownerDocument && P.ownerDocument.defaultView || window).getSelection(), P = { anchorNode: P.anchorNode, anchorOffset: P.anchorOffset, focusNode: P.focusNode, focusOffset: P.focusOffset }), Nl && Mn(Nl, P) || (Nl = P, P = _f(Vd, "onSelect"), 0 < P.length && (h = new Ul("onSelect", "select", null, h, E), c.push({ event: h, listeners: P }), h.target = ds))); } - function xi(c, p) { + function _i(c, h) { var E = {}; - return E[c.toLowerCase()] = p.toLowerCase(), E["Webkit" + c] = "webkit" + p, E["Moz" + c] = "moz" + p, E; + return E[c.toLowerCase()] = h.toLowerCase(), E["Webkit" + c] = "webkit" + h, E["Moz" + c] = "moz" + h, E; } - var Ec = { animationend: xi("Animation", "AnimationEnd"), animationiteration: xi("Animation", "AnimationIteration"), animationstart: xi("Animation", "AnimationStart"), transitionend: xi("Transition", "TransitionEnd") }, Au = {}, ml = {}; - d && (ml = document.createElement("div").style, "AnimationEvent" in window || (delete Ec.animationend.animation, delete Ec.animationiteration.animation, delete Ec.animationstart.animation), "TransitionEvent" in window || delete Ec.transitionend.transition); + var Mc = { animationend: _i("Animation", "AnimationEnd"), animationiteration: _i("Animation", "AnimationIteration"), animationstart: _i("Animation", "AnimationStart"), transitionend: _i("Transition", "TransitionEnd") }, Lu = {}, vl = {}; + d && (vl = document.createElement("div").style, "AnimationEvent" in window || (delete Mc.animationend.animation, delete Mc.animationiteration.animation, delete Mc.animationstart.animation), "TransitionEvent" in window || delete Mc.transitionend.transition); function Ca(c) { - if (Au[c]) - return Au[c]; - if (!Ec[c]) + if (Lu[c]) + return Lu[c]; + if (!Mc[c]) return c; - var p = Ec[c], E; - for (E in p) - if (p.hasOwnProperty(E) && E in ml) - return Au[c] = p[E]; + var h = Mc[c], E; + for (E in h) + if (h.hasOwnProperty(E) && E in vl) + return Lu[c] = h[E]; return c; } - var Sh = Ca("animationend"), Bp = Ca("animationiteration"), Mc = Ca("animationstart"), Tc = Ca("transitionend"), Mr = /* @__PURE__ */ new Map(), $i = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); - function Br(c, p) { - Mr.set(c, p), o(p, [c]); + var Sh = Ca("animationend"), Gp = Ca("animationiteration"), Tc = Ca("animationstart"), Cc = Ca("transitionend"), Mr = /* @__PURE__ */ new Map(), $i = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); + function Br(c, h) { + Mr.set(c, h), s(h, [c]); } for (var Fa = 0; Fa < $i.length; Fa++) { - var So = $i[Fa], td = So.toLowerCase(), _h = So[0].toUpperCase() + So.slice(1); - Br(td, "on" + _h); + var _o = $i[Fa], rd = _o.toLowerCase(), wh = _o[0].toUpperCase() + _o.slice(1); + Br(rd, "on" + wh); } - Br(Sh, "onAnimationEnd"), Br(Bp, "onAnimationIteration"), Br(Mc, "onAnimationStart"), Br("dblclick", "onDoubleClick"), Br("focusin", "onFocus"), Br("focusout", "onBlur"), Br(Tc, "onTransitionEnd"), l("onMouseEnter", ["mouseout", "mouseover"]), l("onMouseLeave", ["mouseout", "mouseover"]), l("onPointerEnter", ["pointerout", "pointerover"]), l("onPointerLeave", ["pointerout", "pointerover"]), o("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), o("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), o("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), o("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), o("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), o("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); - var ic = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), gf = new Set("cancel close invalid load scroll toggle".split(" ").concat(ic)); - function nd(c, p, E) { - var O = c.type || "unknown-event"; - c.currentTarget = E, on(O, p, void 0, c), c.currentTarget = null; + Br(Sh, "onAnimationEnd"), Br(Gp, "onAnimationIteration"), Br(Tc, "onAnimationStart"), Br("dblclick", "onDoubleClick"), Br("focusin", "onFocus"), Br("focusout", "onBlur"), Br(Cc, "onTransitionEnd"), l("onMouseEnter", ["mouseout", "mouseover"]), l("onMouseLeave", ["mouseout", "mouseover"]), l("onPointerEnter", ["pointerout", "pointerover"]), l("onPointerLeave", ["pointerout", "pointerover"]), s("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), s("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), s("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]), s("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), s("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), s("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); + var ic = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), xf = new Set("cancel close invalid load scroll toggle".split(" ").concat(ic)); + function id(c, h, E) { + var P = c.type || "unknown-event"; + c.currentTarget = E, $t(P, h, void 0, c), c.currentTarget = null; } - function an(c, p) { - p = (p & 4) !== 0; + function sn(c, h) { + h = (h & 4) !== 0; for (var E = 0; E < c.length; E++) { - var O = c[E], G = O.event; - O = O.listeners; + var P = c[E], V = P.event; + P = P.listeners; e: { - var Q = void 0; - if (p) - for (var ue = O.length - 1; 0 <= ue; ue--) { - var Le = O[ue], Ve = Le.instance, Ct = Le.currentTarget; - if (Le = Le.listener, Ve !== Q && G.isPropagationStopped()) + var q = void 0; + if (h) + for (var le = P.length - 1; 0 <= le; le--) { + var Oe = P[le], Ge = Oe.instance, Dt = Oe.currentTarget; + if (Oe = Oe.listener, Ge !== q && V.isPropagationStopped()) break e; - nd(G, Le, Ct), Q = Ve; + id(V, Oe, Dt), q = Ge; } else - for (ue = 0; ue < O.length; ue++) { - if (Le = O[ue], Ve = Le.instance, Ct = Le.currentTarget, Le = Le.listener, Ve !== Q && G.isPropagationStopped()) + for (le = 0; le < P.length; le++) { + if (Oe = P[le], Ge = Oe.instance, Dt = Oe.currentTarget, Oe = Oe.listener, Ge !== q && V.isPropagationStopped()) break e; - nd(G, Le, Ct), Q = Ve; + id(V, Oe, Dt), q = Ge; } } } - if (ct) - throw c = me, ct = !1, me = null, c; + if (ot) + throw c = de, ot = !1, de = null, c; } - function Ir(c, p) { - var E = p[ad]; - E === void 0 && (E = p[ad] = /* @__PURE__ */ new Set()); - var O = c + "__bubble"; - E.has(O) || (ac(p, c, 2, !1), E.add(O)); + function kr(c, h) { + var E = h[od]; + E === void 0 && (E = h[od] = /* @__PURE__ */ new Set()); + var P = c + "__bubble"; + E.has(P) || (ac(h, c, 2, !1), E.add(P)); } - function Hr(c, p, E) { - var O = 0; - p && (O |= 4), ac(E, c, O, p); + function Hr(c, h, E) { + var P = 0; + h && (P |= 4), ac(E, c, P, h); } var Ho = "_reactListening" + Math.random().toString(36).slice(2); - function nl(c) { + function rl(c) { if (!c[Ho]) { c[Ho] = !0, r.forEach(function(E) { - E !== "selectionchange" && (gf.has(E) || Hr(E, !1, c), Hr(E, !0, c)); + E !== "selectionchange" && (xf.has(E) || Hr(E, !1, c), Hr(E, !0, c)); }); - var p = c.nodeType === 9 ? c : c.ownerDocument; - p === null || p[Ho] || (p[Ho] = !0, Hr("selectionchange", !1, p)); + var h = c.nodeType === 9 ? c : c.ownerDocument; + h === null || h[Ho] || (h[Ho] = !0, Hr("selectionchange", !1, h)); } } - function ac(c, p, E, O) { - switch (Qf(p)) { + function ac(c, h, E, P) { + switch (Jf(h)) { case 1: - var G = _c; + var V = wc; break; case 4: - G = Ll; + V = Ol; break; default: - G = Xf; + V = Qf; } - E = G.bind(null, p, E, c), G = void 0, !Wi || p !== "touchstart" && p !== "touchmove" && p !== "wheel" || (G = !0), O ? G !== void 0 ? c.addEventListener(p, E, { capture: !0, passive: G }) : c.addEventListener(p, E, !0) : G !== void 0 ? c.addEventListener(p, E, { passive: G }) : c.addEventListener(p, E, !1); + E = V.bind(null, h, E, c), V = void 0, !Bi || h !== "touchstart" && h !== "touchmove" && h !== "wheel" || (V = !0), P ? V !== void 0 ? c.addEventListener(h, E, { capture: !0, passive: V }) : c.addEventListener(h, E, !0) : V !== void 0 ? c.addEventListener(h, E, { passive: V }) : c.addEventListener(h, E, !1); } - function Du(c, p, E, O, G) { - var Q = O; - if ((p & 1) === 0 && (p & 2) === 0 && O !== null) + function Pu(c, h, E, P, V) { + var q = P; + if ((h & 1) === 0 && (h & 2) === 0 && P !== null) e: for (; ; ) { - if (O === null) + if (P === null) return; - var ue = O.tag; - if (ue === 3 || ue === 4) { - var Le = O.stateNode.containerInfo; - if (Le === G || Le.nodeType === 8 && Le.parentNode === G) + var le = P.tag; + if (le === 3 || le === 4) { + var Oe = P.stateNode.containerInfo; + if (Oe === V || Oe.nodeType === 8 && Oe.parentNode === V) break; - if (ue === 4) - for (ue = O.return; ue !== null; ) { - var Ve = ue.tag; - if ((Ve === 3 || Ve === 4) && (Ve = ue.stateNode.containerInfo, Ve === G || Ve.nodeType === 8 && Ve.parentNode === G)) + if (le === 4) + for (le = P.return; le !== null; ) { + var Ge = le.tag; + if ((Ge === 3 || Ge === 4) && (Ge = le.stateNode.containerInfo, Ge === V || Ge.nodeType === 8 && Ge.parentNode === V)) return; - ue = ue.return; + le = le.return; } - for (; Le !== null; ) { - if (ue = Js(Le), ue === null) + for (; Oe !== null; ) { + if (le = Ks(Oe), le === null) return; - if (Ve = ue.tag, Ve === 5 || Ve === 6) { - O = Q = ue; + if (Ge = le.tag, Ge === 5 || Ge === 6) { + P = q = le; continue e; } - Le = Le.parentNode; + Oe = Oe.parentNode; } } - O = O.return; + P = P.return; } - ti(function() { - var Ct = Q, un = Ne(E), ln = []; + yi(function() { + var Dt = q, fn = Pe(E), un = []; e: { - var nn = Mr.get(c); - if (nn !== void 0) { - var kn = Pl, qn = c; + var rn = Mr.get(c); + if (rn !== void 0) { + var Hn = Ul, Qn = c; switch (c) { case "keypress": - if (ou(E) === 0) + if (uu(E) === 0) break e; case "keydown": case "keyup": - kn = zp; + Hn = kp; break; case "focusin": - qn = "focus", kn = qi; + Qn = "focus", Hn = qi; break; case "focusout": - qn = "blur", kn = qi; + Qn = "blur", Hn = qi; break; case "beforeblur": case "afterblur": - kn = qi; + Hn = qi; break; case "click": if (E.button === 2) @@ -37666,7 +37546,7 @@ function vj() { case "mouseout": case "mouseover": case "contextmenu": - kn = Zf; + Hn = Kf; break; case "drag": case "dragend": @@ -37676,32 +37556,32 @@ function vj() { case "dragover": case "dragstart": case "drop": - kn = Ku; + Hn = Ku; break; case "touchcancel": case "touchend": case "touchmove": case "touchstart": - kn = Jf; + Hn = $f; break; case Sh: - case Bp: - case Mc: - kn = Up; - break; + case Gp: case Tc: - kn = mf; + Hn = Fp; + break; + case Cc: + Hn = gf; break; case "scroll": - kn = qs; + Hn = Qs; break; case "wheel": - kn = ec; + Hn = ec; break; case "copy": case "cut": case "paste": - kn = Zh; + Hn = $h; break; case "gotpointercapture": case "lostpointercapture": @@ -37711,71 +37591,71 @@ function vj() { case "pointerout": case "pointerover": case "pointerup": - kn = el; - } - var rr = (p & 4) !== 0, Bs = !rr && c === "scroll", ht = rr ? nn !== null ? nn + "Capture" : null : nn; - rr = []; - for (var Ze = Ct, gt; Ze !== null; ) { - gt = Ze; - var xn = gt.stateNode; - if (gt.tag === 5 && xn !== null && (gt = xn, ht !== null && (xn = ki(Ze, ht), xn != null && rr.push(Cc(Ze, xn, gt)))), Bs) + Hn = tl; + } + var ir = (h & 4) !== 0, Hs = !ir && c === "scroll", mt = ir ? rn !== null ? rn + "Capture" : null : rn; + ir = []; + for (var Ke = Dt, _t; Ke !== null; ) { + _t = Ke; + var _n = _t.stateNode; + if (_t.tag === 5 && _n !== null && (_t = _n, mt !== null && (_n = ii(Ke, mt), _n != null && ir.push(Rc(Ke, _n, _t)))), Hs) break; - Ze = Ze.return; + Ke = Ke.return; } - 0 < rr.length && (nn = new kn(nn, qn, null, E, un), ln.push({ event: nn, listeners: rr })); + 0 < ir.length && (rn = new Hn(rn, Qn, null, E, fn), un.push({ event: rn, listeners: ir })); } } - if ((p & 7) === 0) { + if ((h & 7) === 0) { e: { - if (nn = c === "mouseover" || c === "pointerover", kn = c === "mouseout" || c === "pointerout", nn && E !== Tt && (qn = E.relatedTarget || E.fromElement) && (Js(qn) || qn[_o])) + if (rn = c === "mouseover" || c === "pointerover", Hn = c === "mouseout" || c === "pointerout", rn && E !== wt && (Qn = E.relatedTarget || E.fromElement) && (Ks(Qn) || Qn[So])) break e; - if ((kn || nn) && (nn = un.window === un ? un : (nn = un.ownerDocument) ? nn.defaultView || nn.parentWindow : window, kn ? (qn = E.relatedTarget || E.toElement, kn = Ct, qn = qn ? Js(qn) : null, qn !== null && (Bs = yn(qn), qn !== Bs || qn.tag !== 5 && qn.tag !== 6) && (qn = null)) : (kn = null, qn = Ct), kn !== qn)) { - if (rr = Zf, xn = "onMouseLeave", ht = "onMouseEnter", Ze = "mouse", (c === "pointerout" || c === "pointerover") && (rr = el, xn = "onPointerLeave", ht = "onPointerEnter", Ze = "pointer"), Bs = kn == null ? nn : Hn(kn), gt = qn == null ? nn : Hn(qn), nn = new rr(xn, Ze + "leave", kn, E, un), nn.target = Bs, nn.relatedTarget = gt, xn = null, Js(un) === Ct && (rr = new rr(ht, Ze + "enter", qn, E, un), rr.target = gt, rr.relatedTarget = Bs, xn = rr), Bs = xn, kn && qn) + if ((Hn || rn) && (rn = fn.window === fn ? fn : (rn = fn.ownerDocument) ? rn.defaultView || rn.parentWindow : window, Hn ? (Qn = E.relatedTarget || E.toElement, Hn = Dt, Qn = Qn ? Ks(Qn) : null, Qn !== null && (Hs = mn(Qn), Qn !== Hs || Qn.tag !== 5 && Qn.tag !== 6) && (Qn = null)) : (Hn = null, Qn = Dt), Hn !== Qn)) { + if (ir = Kf, _n = "onMouseLeave", mt = "onMouseEnter", Ke = "mouse", (c === "pointerout" || c === "pointerover") && (ir = tl, _n = "onPointerLeave", mt = "onPointerEnter", Ke = "pointer"), Hs = Hn == null ? rn : Gn(Hn), _t = Qn == null ? rn : Gn(Qn), rn = new ir(_n, Ke + "leave", Hn, E, fn), rn.target = Hs, rn.relatedTarget = _t, _n = null, Ks(fn) === Dt && (ir = new ir(mt, Ke + "enter", Qn, E, fn), ir.target = _t, ir.relatedTarget = Hs, _n = ir), Hs = _n, Hn && Qn) t: { - for (rr = kn, ht = qn, Ze = 0, gt = rr; gt; gt = sc(gt)) - Ze++; - for (gt = 0, xn = ht; xn; xn = sc(xn)) - gt++; - for (; 0 < Ze - gt; ) - rr = sc(rr), Ze--; - for (; 0 < gt - Ze; ) - ht = sc(ht), gt--; - for (; Ze--; ) { - if (rr === ht || ht !== null && rr === ht.alternate) + for (ir = Hn, mt = Qn, Ke = 0, _t = ir; _t; _t = sc(_t)) + Ke++; + for (_t = 0, _n = mt; _n; _n = sc(_n)) + _t++; + for (; 0 < Ke - _t; ) + ir = sc(ir), Ke--; + for (; 0 < _t - Ke; ) + mt = sc(mt), _t--; + for (; Ke--; ) { + if (ir === mt || mt !== null && ir === mt.alternate) break t; - rr = sc(rr), ht = sc(ht); + ir = sc(ir), mt = sc(mt); } - rr = null; + ir = null; } else - rr = null; - kn !== null && ds(ln, nn, kn, rr, !1), qn !== null && Bs !== null && ds(ln, Bs, qn, rr, !0); + ir = null; + Hn !== null && hs(un, rn, Hn, ir, !1), Qn !== null && Hs !== null && hs(un, Hs, Qn, ir, !0); } } e: { - if (nn = Ct ? Hn(Ct) : window, kn = nn.nodeName && nn.nodeName.toLowerCase(), kn === "select" || kn === "input" && nn.type === "file") - var ar = Fp; - else if (Id(nn)) + if (rn = Dt ? Gn(Dt) : window, Hn = rn.nodeName && rn.nodeName.toLowerCase(), Hn === "select" || Hn === "input" && rn.type === "file") + var ar = Bp; + else if (Bd(rn)) if (nc) - ar = Ye; + ar = Xe; else { - ar = Ip; - var Qn = xh; + ar = Vp; + var Zn = _h; } else - (kn = nn.nodeName) && kn.toLowerCase() === "input" && (nn.type === "checkbox" || nn.type === "radio") && (ar = Io); - if (ar && (ar = ar(c, Ct))) { - $f(ln, ar, E, un); + (Hn = rn.nodeName) && Hn.toLowerCase() === "input" && (rn.type === "checkbox" || rn.type === "radio") && (ar = Io); + if (ar && (ar = ar(c, Dt))) { + td(un, ar, E, fn); break e; } - Qn && Qn(c, nn, Ct), c === "focusout" && (Qn = nn._wrapperState) && Qn.controlled && nn.type === "number" && Vt(nn, "number", nn.value); + Zn && Zn(c, rn, Dt), c === "focusout" && (Zn = rn._wrapperState) && Zn.controlled && rn.type === "number" && Nt(rn, "number", rn.value); } - switch (Qn = Ct ? Hn(Ct) : window, c) { + switch (Zn = Dt ? Gn(Dt) : window, c) { case "focusin": - (Id(Qn) || Qn.contentEditable === "true") && (fs = Qn, Hd = Ct, Ul = null); + (Bd(Zn) || Zn.contentEditable === "true") && (ds = Zn, Vd = Dt, Nl = null); break; case "focusout": - Ul = Hd = fs = null; + Nl = Vd = ds = null; break; case "mousedown": $a = !0; @@ -37783,14 +37663,14 @@ function vj() { case "contextmenu": case "mouseup": case "dragend": - $a = !1, pl(ln, E, un); + $a = !1, ml(un, E, fn); break; case "selectionchange": if (Bo) break; case "keydown": case "keyup": - pl(ln, E, un); + ml(un, E, fn); } var pr; if (Za) @@ -37809,21 +37689,21 @@ function vj() { Lr = void 0; } else - Kf ? Um(c, E) && (Lr = "onCompositionEnd") : c === "keydown" && E.keyCode === 229 && (Lr = "onCompositionStart"); - Lr && (Fd && E.locale !== "ko" && (Kf || Lr !== "onCompositionStart" ? Lr === "onCompositionEnd" && Kf && (pr = ys()) : (Ki = un, Mu = "value" in Ki ? Ki.value : Ki.textContent, Kf = !0)), Qn = yf(Ct, Lr), 0 < Qn.length && (Lr = new Dm(Lr, c, null, E, un), ln.push({ event: Lr, listeners: Qn }), pr ? Lr.data = pr : (pr = gh(E), pr !== null && (Lr.data = pr)))), (pr = ca ? kd(c, E) : Np(c, E)) && (Ct = yf(Ct, "onBeforeInput"), 0 < Ct.length && (un = new Dm("onBeforeInput", "beforeinput", null, E, un), ln.push({ event: un, listeners: Ct }), un.data = pr)); + ed ? Fm(c, E) && (Lr = "onCompositionEnd") : c === "keydown" && E.keyCode === 229 && (Lr = "onCompositionStart"); + Lr && (kd && E.locale !== "ko" && (ed || Lr !== "onCompositionStart" ? Lr === "onCompositionEnd" && ed && (pr = xs()) : (Ki = fn, Cu = "value" in Ki ? Ki.value : Ki.textContent, ed = !0)), Zn = _f(Dt, Lr), 0 < Zn.length && (Lr = new Om(Lr, c, null, E, fn), un.push({ event: Lr, listeners: Zn }), pr ? Lr.data = pr : (pr = yh(E), pr !== null && (Lr.data = pr)))), (pr = ca ? Id(c, E) : Ip(c, E)) && (Dt = _f(Dt, "onBeforeInput"), 0 < Dt.length && (fn = new Om("onBeforeInput", "beforeinput", null, E, fn), un.push({ event: fn, listeners: Dt }), fn.data = pr)); } - an(ln, p); + sn(un, h); }); } - function Cc(c, p, E) { - return { instance: c, listener: p, currentTarget: E }; + function Rc(c, h, E) { + return { instance: c, listener: h, currentTarget: E }; } - function yf(c, p) { - for (var E = p + "Capture", O = []; c !== null; ) { - var G = c, Q = G.stateNode; - G.tag === 5 && Q !== null && (G = Q, Q = ki(c, E), Q != null && O.unshift(Cc(c, Q, G)), Q = ki(c, p), Q != null && O.push(Cc(c, Q, G))), c = c.return; + function _f(c, h) { + for (var E = h + "Capture", P = []; c !== null; ) { + var V = c, q = V.stateNode; + V.tag === 5 && q !== null && (V = q, q = ii(c, E), q != null && P.unshift(Rc(c, q, V)), q = ii(c, h), q != null && P.push(Rc(c, q, V))), c = c.return; } - return O; + return P; } function sc(c) { if (c === null) @@ -37833,537 +37713,537 @@ function vj() { while (c && c.tag !== 5); return c || null; } - function ds(c, p, E, O, G) { - for (var Q = p._reactName, ue = []; E !== null && E !== O; ) { - var Le = E, Ve = Le.alternate, Ct = Le.stateNode; - if (Ve !== null && Ve === O) + function hs(c, h, E, P, V) { + for (var q = h._reactName, le = []; E !== null && E !== P; ) { + var Oe = E, Ge = Oe.alternate, Dt = Oe.stateNode; + if (Ge !== null && Ge === P) break; - Le.tag === 5 && Ct !== null && (Le = Ct, G ? (Ve = ki(E, Q), Ve != null && ue.unshift(Cc(E, Ve, Le))) : G || (Ve = ki(E, Q), Ve != null && ue.push(Cc(E, Ve, Le)))), E = E.return; + Oe.tag === 5 && Dt !== null && (Oe = Dt, V ? (Ge = ii(E, q), Ge != null && le.unshift(Rc(E, Ge, Oe))) : V || (Ge = ii(E, q), Ge != null && le.push(Rc(E, Ge, Oe)))), E = E.return; } - ue.length !== 0 && c.push({ event: p, listeners: ue }); + le.length !== 0 && c.push({ event: h, listeners: le }); } - var Zs = /\r\n?/g, zm = /\u0000|\uFFFD/g; - function Jh(c) { - return (typeof c == "string" ? c : "" + c).replace(Zs, ` -`).replace(zm, ""); + var Js = /\r\n?/g, km = /\u0000|\uFFFD/g; + function ep(c) { + return (typeof c == "string" ? c : "" + c).replace(Js, ` +`).replace(km, ""); } - function Vd(c, p, E) { - if (p = Jh(p), Jh(c) !== p && E) + function Gd(c, h, E) { + if (h = ep(h), ep(c) !== h && E) throw Error(t(425)); } function bh() { } - var xf = null, Lu = null; - function rd(c, p) { - return c === "textarea" || c === "noscript" || typeof p.children == "string" || typeof p.children == "number" || typeof p.dangerouslySetInnerHTML == "object" && p.dangerouslySetInnerHTML !== null && p.dangerouslySetInnerHTML.__html != null; + var Sf = null, Ou = null; + function ad(c, h) { + return c === "textarea" || c === "noscript" || typeof h.children == "string" || typeof h.children == "number" || typeof h.dangerouslySetInnerHTML == "object" && h.dangerouslySetInnerHTML !== null && h.dangerouslySetInnerHTML.__html != null; } - var uu = typeof setTimeout == "function" ? setTimeout : void 0, Sf = typeof clearTimeout == "function" ? clearTimeout : void 0, Rc = typeof Promise == "function" ? Promise : void 0, Gd = typeof queueMicrotask == "function" ? queueMicrotask : typeof Rc < "u" ? function(c) { - return Rc.resolve(null).then(c).catch(id); - } : uu; - function id(c) { + var fu = typeof setTimeout == "function" ? setTimeout : void 0, wf = typeof clearTimeout == "function" ? clearTimeout : void 0, Ac = typeof Promise == "function" ? Promise : void 0, Wd = typeof queueMicrotask == "function" ? queueMicrotask : typeof Ac < "u" ? function(c) { + return Ac.resolve(null).then(c).catch(sd); + } : fu; + function sd(c) { setTimeout(function() { throw c; }); } - function Ac(c, p) { - var E = p, O = 0; + function Dc(c, h) { + var E = h, P = 0; do { - var G = E.nextSibling; - if (c.removeChild(E), G && G.nodeType === 8) - if (E = G.data, E === "/$") { - if (O === 0) { - c.removeChild(G), Ri(p); + var V = E.nextSibling; + if (c.removeChild(E), V && V.nodeType === 8) + if (E = V.data, E === "/$") { + if (P === 0) { + c.removeChild(V), Ri(h); return; } - O--; + P--; } else - E !== "$" && E !== "$?" && E !== "$!" || O++; - E = G; + E !== "$" && E !== "$?" && E !== "$!" || P++; + E = V; } while (E); - Ri(p); + Ri(h); } - function zl(c) { + function Fl(c) { for (; c != null; c = c.nextSibling) { - var p = c.nodeType; - if (p === 1 || p === 3) + var h = c.nodeType; + if (h === 1 || h === 3) break; - if (p === 8) { - if (p = c.data, p === "$" || p === "$!" || p === "$?") + if (h === 8) { + if (h = c.data, h === "$" || h === "$!" || h === "$?") break; - if (p === "/$") + if (h === "/$") return null; } } return c; } - function Dc(c) { + function Lc(c) { c = c.previousSibling; - for (var p = 0; c; ) { + for (var h = 0; c; ) { if (c.nodeType === 8) { var E = c.data; if (E === "$" || E === "$!" || E === "$?") { - if (p === 0) + if (h === 0) return c; - p--; + h--; } else - E === "/$" && p++; + E === "/$" && h++; } c = c.previousSibling; } return null; } - var Lc = Math.random().toString(36).slice(2), Os = "__reactFiber$" + Lc, Pu = "__reactProps$" + Lc, _o = "__reactContainer$" + Lc, ad = "__reactEvents$" + Lc, ge = "__reactListeners$" + Lc, oc = "__reactHandles$" + Lc; - function Js(c) { - var p = c[Os]; - if (p) - return p; + var Pc = Math.random().toString(36).slice(2), Us = "__reactFiber$" + Pc, Uu = "__reactProps$" + Pc, So = "__reactContainer$" + Pc, od = "__reactEvents$" + Pc, xe = "__reactListeners$" + Pc, oc = "__reactHandles$" + Pc; + function Ks(c) { + var h = c[Us]; + if (h) + return h; for (var E = c.parentNode; E; ) { - if (p = E[_o] || E[Os]) { - if (E = p.alternate, p.child !== null || E !== null && E.child !== null) - for (c = Dc(c); c !== null; ) { - if (E = c[Os]) + if (h = E[So] || E[Us]) { + if (E = h.alternate, h.child !== null || E !== null && E.child !== null) + for (c = Lc(c); c !== null; ) { + if (E = c[Us]) return E; - c = Dc(c); + c = Lc(c); } - return p; + return h; } c = E, E = c.parentNode; } return null; } function ka(c) { - return c = c[Os] || c[_o], !c || c.tag !== 5 && c.tag !== 6 && c.tag !== 13 && c.tag !== 3 ? null : c; + return c = c[Us] || c[So], !c || c.tag !== 5 && c.tag !== 6 && c.tag !== 13 && c.tag !== 3 ? null : c; } - function Hn(c) { + function Gn(c) { if (c.tag === 5 || c.tag === 6) return c.stateNode; throw Error(t(33)); } function vr(c) { - return c[Pu] || null; + return c[Uu] || null; } - var Bi = [], oi = -1; - function Gn(c) { + var Vi = [], si = -1; + function Wn(c) { return { current: c }; } - function bi(c) { - 0 > oi || (c.current = Bi[oi], Bi[oi] = null, oi--); + function wi(c) { + 0 > si || (c.current = Vi[si], Vi[si] = null, si--); } - function zi(c, p) { - oi++, Bi[oi] = c.current, c.current = p; + function zi(c, h) { + si++, Vi[si] = c.current, c.current = h; } - var Pc = {}, Rr = Gn(Pc), hs = Gn(!1), es = Pc; - function Nl(c, p) { + var Oc = {}, Rr = Wn(Oc), ps = Wn(!1), es = Oc; + function kl(c, h) { var E = c.type.contextTypes; if (!E) - return Pc; - var O = c.stateNode; - if (O && O.__reactInternalMemoizedUnmaskedChildContext === p) - return O.__reactInternalMemoizedMaskedChildContext; - var G = {}, Q; - for (Q in E) - G[Q] = p[Q]; - return O && (c = c.stateNode, c.__reactInternalMemoizedUnmaskedChildContext = p, c.__reactInternalMemoizedMaskedChildContext = G), G; + return Oc; + var P = c.stateNode; + if (P && P.__reactInternalMemoizedUnmaskedChildContext === h) + return P.__reactInternalMemoizedMaskedChildContext; + var V = {}, q; + for (q in E) + V[q] = h[q]; + return P && (c = c.stateNode, c.__reactInternalMemoizedUnmaskedChildContext = h, c.__reactInternalMemoizedMaskedChildContext = V), V; } function Ia(c) { return c = c.childContextTypes, c != null; } - function Fl() { - bi(hs), bi(Rr); + function Il() { + wi(ps), wi(Rr); } - function _f(c, p, E) { - if (Rr.current !== Pc) + function bf(c, h, E) { + if (Rr.current !== Oc) throw Error(t(168)); - zi(Rr, p), zi(hs, E); + zi(Rr, h), zi(ps, E); } - function Wd(c, p, E) { - var O = c.stateNode; - if (p = p.childContextTypes, typeof O.getChildContext != "function") + function jd(c, h, E) { + var P = c.stateNode; + if (h = h.childContextTypes, typeof P.getChildContext != "function") return E; - O = O.getChildContext(); - for (var G in O) - if (!(G in p)) - throw Error(t(108, ot(c) || "Unknown", G)); - return ce({}, E, O); + P = P.getChildContext(); + for (var V in P) + if (!(V in h)) + throw Error(t(108, ct(c) || "Unknown", V)); + return he({}, E, P); } function Vo(c) { - return c = (c = c.stateNode) && c.__reactInternalMemoizedMergedChildContext || Pc, es = Rr.current, zi(Rr, c), zi(hs, hs.current), !0; + return c = (c = c.stateNode) && c.__reactInternalMemoizedMergedChildContext || Oc, es = Rr.current, zi(Rr, c), zi(ps, ps.current), !0; } - function Sv(c, p, E) { - var O = c.stateNode; - if (!O) + function bv(c, h, E) { + var P = c.stateNode; + if (!P) throw Error(t(169)); - E ? (c = Wd(c, p, es), O.__reactInternalMemoizedMergedChildContext = c, bi(hs), bi(Rr), zi(Rr, c)) : bi(hs), zi(hs, E); + E ? (c = jd(c, h, es), P.__reactInternalMemoizedMergedChildContext = c, wi(ps), wi(Rr), zi(Rr, c)) : wi(ps), zi(ps, E); } - var vl = null, bo = !1, Kh = !1; + var gl = null, wo = !1, tp = !1; function lc(c) { - vl === null ? vl = [c] : vl.push(c); + gl === null ? gl = [c] : gl.push(c); } - function cu(c) { - bo = !0, lc(c); + function du(c) { + wo = !0, lc(c); } - function _s() { - if (!Kh && vl !== null) { - Kh = !0; - var c = 0, p = ri; + function ws() { + if (!tp && gl !== null) { + tp = !0; + var c = 0, h = ei; try { - var E = vl; - for (ri = 1; c < E.length; c++) { - var O = E[c]; + var E = gl; + for (ei = 1; c < E.length; c++) { + var P = E[c]; do - O = O(!0); - while (O !== null); + P = P(!0); + while (P !== null); } - vl = null, bo = !1; - } catch (G) { - throw vl !== null && (vl = vl.slice(c + 1)), br(ls, _s), G; + gl = null, wo = !1; + } catch (V) { + throw gl !== null && (gl = gl.slice(c + 1)), wr(us, ws), V; } finally { - ri = p, Kh = !1; + ei = h, tp = !1; } } return null; } - var Oc = [], Vr = 0, uc = null, zr = 0, Ks = [], ps = 0, Uc = null, pn = 1, kl = ""; - function wo(c, p) { - Oc[Vr++] = zr, Oc[Vr++] = uc, uc = c, zr = p; - } - function Nm(c, p, E) { - Ks[ps++] = pn, Ks[ps++] = kl, Ks[ps++] = Uc, Uc = c; - var O = pn; - c = kl; - var G = 32 - Ea(O) - 1; - O &= ~(1 << G), E += 1; - var Q = 32 - Ea(p) + G; - if (30 < Q) { - var ue = G - G % 5; - Q = (O & (1 << ue) - 1).toString(32), O >>= ue, G -= ue, pn = 1 << 32 - Ea(p) + G | E << G | O, kl = Q + c; + var Uc = [], Vr = 0, uc = null, Ur = 0, $s = [], ms = 0, zc = null, vn = 1, Bl = ""; + function bo(c, h) { + Uc[Vr++] = Ur, Uc[Vr++] = uc, uc = c, Ur = h; + } + function Im(c, h, E) { + $s[ms++] = vn, $s[ms++] = Bl, $s[ms++] = zc, zc = c; + var P = vn; + c = Bl; + var V = 32 - Ea(P) - 1; + P &= ~(1 << V), E += 1; + var q = 32 - Ea(h) + V; + if (30 < q) { + var le = V - V % 5; + q = (P & (1 << le) - 1).toString(32), P >>= le, V -= le, vn = 1 << 32 - Ea(h) + V | E << V | P, Bl = q + c; } else - pn = 1 << Q | E << G | O, kl = c; + vn = 1 << q | E << V | P, Bl = c; } - function wh(c) { - c.return !== null && (wo(c, 1), Nm(c, 1, 0)); + function Eh(c) { + c.return !== null && (bo(c, 1), Im(c, 1, 0)); } - function Ou(c) { + function zu(c) { for (; c === uc; ) - uc = Oc[--Vr], Oc[Vr] = null, zr = Oc[--Vr], Oc[Vr] = null; - for (; c === Uc; ) - Uc = Ks[--ps], Ks[ps] = null, kl = Ks[--ps], Ks[ps] = null, pn = Ks[--ps], Ks[ps] = null; + uc = Uc[--Vr], Uc[Vr] = null, Ur = Uc[--Vr], Uc[Vr] = null; + for (; c === zc; ) + zc = $s[--ms], $s[ms] = null, Bl = $s[--ms], $s[ms] = null, vn = $s[--ms], $s[ms] = null; } - var bs = null, gl = null, ga = !1, fu = null; - function Us(c, p) { - var E = _l(5, null, null, 0); - E.elementType = "DELETED", E.stateNode = p, E.return = c, p = c.deletions, p === null ? (c.deletions = [E], c.flags |= 16) : p.push(E); + var bs = null, yl = null, ga = !1, hu = null; + function zs(c, h) { + var E = wl(5, null, null, 0); + E.elementType = "DELETED", E.stateNode = h, E.return = c, h = c.deletions, h === null ? (c.deletions = [E], c.flags |= 16) : h.push(E); } - function sd(c, p) { + function ld(c, h) { switch (c.tag) { case 5: var E = c.type; - return p = p.nodeType !== 1 || E.toLowerCase() !== p.nodeName.toLowerCase() ? null : p, p !== null ? (c.stateNode = p, bs = c, gl = zl(p.firstChild), !0) : !1; + return h = h.nodeType !== 1 || E.toLowerCase() !== h.nodeName.toLowerCase() ? null : h, h !== null ? (c.stateNode = h, bs = c, yl = Fl(h.firstChild), !0) : !1; case 6: - return p = c.pendingProps === "" || p.nodeType !== 3 ? null : p, p !== null ? (c.stateNode = p, bs = c, gl = null, !0) : !1; + return h = c.pendingProps === "" || h.nodeType !== 3 ? null : h, h !== null ? (c.stateNode = h, bs = c, yl = null, !0) : !1; case 13: - return p = p.nodeType !== 8 ? null : p, p !== null ? (E = Uc !== null ? { id: pn, overflow: kl } : null, c.memoizedState = { dehydrated: p, treeContext: E, retryLane: 1073741824 }, E = _l(18, null, null, 0), E.stateNode = p, E.return = c, c.child = E, bs = c, gl = null, !0) : !1; + return h = h.nodeType !== 8 ? null : h, h !== null ? (E = zc !== null ? { id: vn, overflow: Bl } : null, c.memoizedState = { dehydrated: h, treeContext: E, retryLane: 1073741824 }, E = wl(18, null, null, 0), E.stateNode = h, E.return = c, c.child = E, bs = c, yl = null, !0) : !1; default: return !1; } } - function Il(c) { + function Hl(c) { return (c.mode & 1) !== 0 && (c.flags & 128) === 0; } function Go(c) { if (ga) { - var p = gl; - if (p) { - var E = p; - if (!sd(c, p)) { - if (Il(c)) + var h = yl; + if (h) { + var E = h; + if (!ld(c, h)) { + if (Hl(c)) throw Error(t(418)); - p = zl(E.nextSibling); - var O = bs; - p && sd(c, p) ? Us(O, E) : (c.flags = c.flags & -4097 | 2, ga = !1, bs = c); + h = Fl(E.nextSibling); + var P = bs; + h && ld(c, h) ? zs(P, E) : (c.flags = c.flags & -4097 | 2, ga = !1, bs = c); } } else { - if (Il(c)) + if (Hl(c)) throw Error(t(418)); c.flags = c.flags & -4097 | 2, ga = !1, bs = c; } } } - function jd(c) { + function Yd(c) { for (c = c.return; c !== null && c.tag !== 5 && c.tag !== 3 && c.tag !== 13; ) c = c.return; bs = c; } - function rl(c) { + function il(c) { if (c !== bs) return !1; if (!ga) - return jd(c), ga = !0, !1; - var p; - if ((p = c.tag !== 3) && !(p = c.tag !== 5) && (p = c.type, p = p !== "head" && p !== "body" && !rd(c.type, c.memoizedProps)), p && (p = gl)) { - if (Il(c)) - throw zs(), Error(t(418)); - for (; p; ) - Us(c, p), p = zl(p.nextSibling); - } - if (jd(c), c.tag === 13) { + return Yd(c), ga = !0, !1; + var h; + if ((h = c.tag !== 3) && !(h = c.tag !== 5) && (h = c.type, h = h !== "head" && h !== "body" && !ad(c.type, c.memoizedProps)), h && (h = yl)) { + if (Hl(c)) + throw Ns(), Error(t(418)); + for (; h; ) + zs(c, h), h = Fl(h.nextSibling); + } + if (Yd(c), c.tag === 13) { if (c = c.memoizedState, c = c !== null ? c.dehydrated : null, !c) throw Error(t(317)); e: { - for (c = c.nextSibling, p = 0; c; ) { + for (c = c.nextSibling, h = 0; c; ) { if (c.nodeType === 8) { var E = c.data; if (E === "/$") { - if (p === 0) { - gl = zl(c.nextSibling); + if (h === 0) { + yl = Fl(c.nextSibling); break e; } - p--; + h--; } else - E !== "$" && E !== "$!" && E !== "$?" || p++; + E !== "$" && E !== "$!" && E !== "$?" || h++; } c = c.nextSibling; } - gl = null; + yl = null; } } else - gl = bs ? zl(c.stateNode.nextSibling) : null; + yl = bs ? Fl(c.stateNode.nextSibling) : null; return !0; } - function zs() { - for (var c = gl; c; ) - c = zl(c.nextSibling); + function Ns() { + for (var c = yl; c; ) + c = Fl(c.nextSibling); } function fa() { - gl = bs = null, ga = !1; + yl = bs = null, ga = !1; } - function Uu(c) { - fu === null ? fu = [c] : fu.push(c); + function Nu(c) { + hu === null ? hu = [c] : hu.push(c); } - var Hp = I.ReactCurrentBatchConfig; - function du(c, p) { + var Wp = B.ReactCurrentBatchConfig; + function pu(c, h) { if (c && c.defaultProps) { - p = ce({}, p), c = c.defaultProps; + h = he({}, h), c = c.defaultProps; for (var E in c) - p[E] === void 0 && (p[E] = c[E]); - return p; + h[E] === void 0 && (h[E] = c[E]); + return h; } - return p; + return h; } - var Bl = Gn(null), $h = null, bf = null, $s = null; - function Yd() { - $s = bf = $h = null; + var Vl = Wn(null), np = null, Ef = null, eo = null; + function Xd() { + eo = Ef = np = null; } function da(c) { - var p = Bl.current; - bi(Bl), c._currentValue = p; + var h = Vl.current; + wi(Vl), c._currentValue = h; } - function Hi(c, p, E) { + function Gi(c, h, E) { for (; c !== null; ) { - var O = c.alternate; - if ((c.childLanes & p) !== p ? (c.childLanes |= p, O !== null && (O.childLanes |= p)) : O !== null && (O.childLanes & p) !== p && (O.childLanes |= p), c === E) + var P = c.alternate; + if ((c.childLanes & h) !== h ? (c.childLanes |= h, P !== null && (P.childLanes |= h)) : P !== null && (P.childLanes & h) !== h && (P.childLanes |= h), c === E) break; c = c.return; } } - function wn(c, p) { - $h = c, $s = bf = null, c = c.dependencies, c !== null && c.firstContext !== null && ((c.lanes & p) !== 0 && (Tn = !0), c.firstContext = null); + function bn(c, h) { + np = c, eo = Ef = null, c = c.dependencies, c !== null && c.firstContext !== null && ((c.lanes & h) !== 0 && (Tn = !0), c.firstContext = null); } function Qi(c) { - var p = c._currentValue; - if ($s !== c) - if (c = { context: c, memoizedValue: p, next: null }, bf === null) { - if ($h === null) + var h = c._currentValue; + if (eo !== c) + if (c = { context: c, memoizedValue: h, next: null }, Ef === null) { + if (np === null) throw Error(t(308)); - bf = c, $h.dependencies = { lanes: 0, firstContext: c }; + Ef = c, np.dependencies = { lanes: 0, firstContext: c }; } else - bf = bf.next = c; - return p; + Ef = Ef.next = c; + return h; } var ya = null; - function ep(c) { + function rp(c) { ya === null ? ya = [c] : ya.push(c); } - function Wo(c, p, E, O) { - var G = p.interleaved; - return G === null ? (E.next = E, ep(p)) : (E.next = G.next, G.next = E), p.interleaved = E, jo(c, O); + function Wo(c, h, E, P) { + var V = h.interleaved; + return V === null ? (E.next = E, rp(h)) : (E.next = V.next, V.next = E), h.interleaved = E, jo(c, P); } - function jo(c, p) { - c.lanes |= p; + function jo(c, h) { + c.lanes |= h; var E = c.alternate; - for (E !== null && (E.lanes |= p), E = c, c = c.return; c !== null; ) - c.childLanes |= p, E = c.alternate, E !== null && (E.childLanes |= p), E = c, c = c.return; + for (E !== null && (E.lanes |= h), E = c, c = c.return; c !== null; ) + c.childLanes |= h, E = c.alternate, E !== null && (E.childLanes |= h), E = c, c = c.return; return E.tag === 3 ? E.stateNode : null; } var ts = !1; function An(c) { c.updateQueue = { baseState: c.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null }; } - function xa(c, p) { - c = c.updateQueue, p.updateQueue === c && (p.updateQueue = { baseState: c.baseState, firstBaseUpdate: c.firstBaseUpdate, lastBaseUpdate: c.lastBaseUpdate, shared: c.shared, effects: c.effects }); + function xa(c, h) { + c = c.updateQueue, h.updateQueue === c && (h.updateQueue = { baseState: c.baseState, firstBaseUpdate: c.firstBaseUpdate, lastBaseUpdate: c.lastBaseUpdate, shared: c.shared, effects: c.effects }); } - function ns(c, p) { - return { eventTime: c, lane: p, tag: 0, payload: null, callback: null, next: null }; + function ns(c, h) { + return { eventTime: c, lane: h, tag: 0, payload: null, callback: null, next: null }; } - function wf(c, p, E) { - var O = c.updateQueue; - if (O === null) + function Mf(c, h, E) { + var P = c.updateQueue; + if (P === null) return null; - if (O = O.shared, (Nr & 2) !== 0) { - var G = O.pending; - return G === null ? p.next = p : (p.next = G.next, G.next = p), O.pending = p, jo(c, E); + if (P = P.shared, (zr & 2) !== 0) { + var V = P.pending; + return V === null ? h.next = h : (h.next = V.next, V.next = h), P.pending = h, jo(c, E); } - return G = O.interleaved, G === null ? (p.next = p, ep(O)) : (p.next = G.next, G.next = p), O.interleaved = p, jo(c, E); + return V = P.interleaved, V === null ? (h.next = h, rp(P)) : (h.next = V.next, V.next = h), P.interleaved = h, jo(c, E); } - function Sa(c, p, E) { - if (p = p.updateQueue, p !== null && (p = p.shared, (E & 4194240) !== 0)) { - var O = p.lanes; - O &= c.pendingLanes, E |= O, p.lanes = E, Dl(c, E); + function _a(c, h, E) { + if (h = h.updateQueue, h !== null && (h = h.shared, (E & 4194240) !== 0)) { + var P = h.lanes; + P &= c.pendingLanes, E |= P, h.lanes = E, Pl(c, E); } } - function Kr(c, p) { - var E = c.updateQueue, O = c.alternate; - if (O !== null && (O = O.updateQueue, E === O)) { - var G = null, Q = null; + function Qr(c, h) { + var E = c.updateQueue, P = c.alternate; + if (P !== null && (P = P.updateQueue, E === P)) { + var V = null, q = null; if (E = E.firstBaseUpdate, E !== null) { do { - var ue = { eventTime: E.eventTime, lane: E.lane, tag: E.tag, payload: E.payload, callback: E.callback, next: null }; - Q === null ? G = Q = ue : Q = Q.next = ue, E = E.next; + var le = { eventTime: E.eventTime, lane: E.lane, tag: E.tag, payload: E.payload, callback: E.callback, next: null }; + q === null ? V = q = le : q = q.next = le, E = E.next; } while (E !== null); - Q === null ? G = Q = p : Q = Q.next = p; + q === null ? V = q = h : q = q.next = h; } else - G = Q = p; - E = { baseState: O.baseState, firstBaseUpdate: G, lastBaseUpdate: Q, shared: O.shared, effects: O.effects }, c.updateQueue = E; + V = q = h; + E = { baseState: P.baseState, firstBaseUpdate: V, lastBaseUpdate: q, shared: P.shared, effects: P.effects }, c.updateQueue = E; return; } - c = E.lastBaseUpdate, c === null ? E.firstBaseUpdate = p : c.next = p, E.lastBaseUpdate = p; + c = E.lastBaseUpdate, c === null ? E.firstBaseUpdate = h : c.next = h, E.lastBaseUpdate = h; } - function Ra(c, p, E, O) { - var G = c.updateQueue; + function Ra(c, h, E, P) { + var V = c.updateQueue; ts = !1; - var Q = G.firstBaseUpdate, ue = G.lastBaseUpdate, Le = G.shared.pending; - if (Le !== null) { - G.shared.pending = null; - var Ve = Le, Ct = Ve.next; - Ve.next = null, ue === null ? Q = Ct : ue.next = Ct, ue = Ve; - var un = c.alternate; - un !== null && (un = un.updateQueue, Le = un.lastBaseUpdate, Le !== ue && (Le === null ? un.firstBaseUpdate = Ct : Le.next = Ct, un.lastBaseUpdate = Ve)); - } - if (Q !== null) { - var ln = G.baseState; - ue = 0, un = Ct = Ve = null, Le = Q; + var q = V.firstBaseUpdate, le = V.lastBaseUpdate, Oe = V.shared.pending; + if (Oe !== null) { + V.shared.pending = null; + var Ge = Oe, Dt = Ge.next; + Ge.next = null, le === null ? q = Dt : le.next = Dt, le = Ge; + var fn = c.alternate; + fn !== null && (fn = fn.updateQueue, Oe = fn.lastBaseUpdate, Oe !== le && (Oe === null ? fn.firstBaseUpdate = Dt : Oe.next = Dt, fn.lastBaseUpdate = Ge)); + } + if (q !== null) { + var un = V.baseState; + le = 0, fn = Dt = Ge = null, Oe = q; do { - var nn = Le.lane, kn = Le.eventTime; - if ((O & nn) === nn) { - un !== null && (un = un.next = { - eventTime: kn, + var rn = Oe.lane, Hn = Oe.eventTime; + if ((P & rn) === rn) { + fn !== null && (fn = fn.next = { + eventTime: Hn, lane: 0, - tag: Le.tag, - payload: Le.payload, - callback: Le.callback, + tag: Oe.tag, + payload: Oe.payload, + callback: Oe.callback, next: null }); e: { - var qn = c, rr = Le; - switch (nn = p, kn = E, rr.tag) { + var Qn = c, ir = Oe; + switch (rn = h, Hn = E, ir.tag) { case 1: - if (qn = rr.payload, typeof qn == "function") { - ln = qn.call(kn, ln, nn); + if (Qn = ir.payload, typeof Qn == "function") { + un = Qn.call(Hn, un, rn); break e; } - ln = qn; + un = Qn; break e; case 3: - qn.flags = qn.flags & -65537 | 128; + Qn.flags = Qn.flags & -65537 | 128; case 0: - if (qn = rr.payload, nn = typeof qn == "function" ? qn.call(kn, ln, nn) : qn, nn == null) + if (Qn = ir.payload, rn = typeof Qn == "function" ? Qn.call(Hn, un, rn) : Qn, rn == null) break e; - ln = ce({}, ln, nn); + un = he({}, un, rn); break e; case 2: ts = !0; } } - Le.callback !== null && Le.lane !== 0 && (c.flags |= 64, nn = G.effects, nn === null ? G.effects = [Le] : nn.push(Le)); + Oe.callback !== null && Oe.lane !== 0 && (c.flags |= 64, rn = V.effects, rn === null ? V.effects = [Oe] : rn.push(Oe)); } else - kn = { eventTime: kn, lane: nn, tag: Le.tag, payload: Le.payload, callback: Le.callback, next: null }, un === null ? (Ct = un = kn, Ve = ln) : un = un.next = kn, ue |= nn; - if (Le = Le.next, Le === null) { - if (Le = G.shared.pending, Le === null) + Hn = { eventTime: Hn, lane: rn, tag: Oe.tag, payload: Oe.payload, callback: Oe.callback, next: null }, fn === null ? (Dt = fn = Hn, Ge = un) : fn = fn.next = Hn, le |= rn; + if (Oe = Oe.next, Oe === null) { + if (Oe = V.shared.pending, Oe === null) break; - nn = Le, Le = nn.next, nn.next = null, G.lastBaseUpdate = nn, G.shared.pending = null; + rn = Oe, Oe = rn.next, rn.next = null, V.lastBaseUpdate = rn, V.shared.pending = null; } } while (1); - if (un === null && (Ve = ln), G.baseState = Ve, G.firstBaseUpdate = Ct, G.lastBaseUpdate = un, p = G.shared.interleaved, p !== null) { - G = p; + if (fn === null && (Ge = un), V.baseState = Ge, V.firstBaseUpdate = Dt, V.lastBaseUpdate = fn, h = V.shared.interleaved, h !== null) { + V = h; do - ue |= G.lane, G = G.next; - while (G !== p); + le |= V.lane, V = V.next; + while (V !== h); } else - Q === null && (G.shared.lanes = 0); - vd |= ue, c.lanes = ue, c.memoizedState = ln; + q === null && (V.shared.lanes = 0); + yd |= le, c.lanes = le, c.memoizedState = un; } } - function Ba(c, p, E) { - if (c = p.effects, p.effects = null, c !== null) - for (p = 0; p < c.length; p++) { - var O = c[p], G = O.callback; - if (G !== null) { - if (O.callback = null, O = E, typeof G != "function") - throw Error(t(191, G)); - G.call(O); + function Ba(c, h, E) { + if (c = h.effects, h.effects = null, c !== null) + for (h = 0; h < c.length; h++) { + var P = c[h], V = P.callback; + if (V !== null) { + if (P.callback = null, P = E, typeof V != "function") + throw Error(t(191, V)); + V.call(P); } } } - var ci = new a.Component().refs; - function Hl(c, p, E, O) { - p = c.memoizedState, E = E(O, p), E = E == null ? p : ce({}, p, E), c.memoizedState = E, c.lanes === 0 && (c.updateQueue.baseState = E); + var li = new a.Component().refs; + function Gl(c, h, E, P) { + h = c.memoizedState, E = E(P, h), E = E == null ? h : he({}, h, E), c.memoizedState = E, c.lanes === 0 && (c.updateQueue.baseState = E); } - var od = { isMounted: function(c) { - return (c = c._reactInternals) ? yn(c) === c : !1; - }, enqueueSetState: function(c, p, E) { + var ud = { isMounted: function(c) { + return (c = c._reactInternals) ? mn(c) === c : !1; + }, enqueueSetState: function(c, h, E) { c = c._reactInternals; - var O = ha(), G = io(c), Q = ns(O, G); - Q.payload = p, E != null && (Q.callback = E), p = wf(c, Q, G), p !== null && (Sl(p, c, G, O), Sa(p, c, G)); - }, enqueueReplaceState: function(c, p, E) { + var P = ha(), V = ao(c), q = ns(P, V); + q.payload = h, E != null && (q.callback = E), h = Mf(c, q, V), h !== null && (Sl(h, c, V, P), _a(h, c, V)); + }, enqueueReplaceState: function(c, h, E) { c = c._reactInternals; - var O = ha(), G = io(c), Q = ns(O, G); - Q.tag = 1, Q.payload = p, E != null && (Q.callback = E), p = wf(c, Q, G), p !== null && (Sl(p, c, G, O), Sa(p, c, G)); - }, enqueueForceUpdate: function(c, p) { + var P = ha(), V = ao(c), q = ns(P, V); + q.tag = 1, q.payload = h, E != null && (q.callback = E), h = Mf(c, q, V), h !== null && (Sl(h, c, V, P), _a(h, c, V)); + }, enqueueForceUpdate: function(c, h) { c = c._reactInternals; - var E = ha(), O = io(c), G = ns(E, O); - G.tag = 2, p != null && (G.callback = p), p = wf(c, G, O), p !== null && (Sl(p, c, O, E), Sa(p, c, O)); + var E = ha(), P = ao(c), V = ns(E, P); + V.tag = 2, h != null && (V.callback = h), h = Mf(c, V, P), h !== null && (Sl(h, c, P, E), _a(h, c, P)); } }; - function ws(c, p, E, O, G, Q, ue) { - return c = c.stateNode, typeof c.shouldComponentUpdate == "function" ? c.shouldComponentUpdate(O, Q, ue) : p.prototype && p.prototype.isPureReactComponent ? !Mn(E, O) || !Mn(G, Q) : !0; + function Es(c, h, E, P, V, q, le) { + return c = c.stateNode, typeof c.shouldComponentUpdate == "function" ? c.shouldComponentUpdate(P, q, le) : h.prototype && h.prototype.isPureReactComponent ? !Mn(E, P) || !Mn(V, q) : !0; } - function Xd(c, p, E) { - var O = !1, G = Pc, Q = p.contextType; - return typeof Q == "object" && Q !== null ? Q = Qi(Q) : (G = Ia(p) ? es : Rr.current, O = p.contextTypes, Q = (O = O != null) ? Nl(c, G) : Pc), p = new p(E, Q), c.memoizedState = p.state !== null && p.state !== void 0 ? p.state : null, p.updater = od, c.stateNode = p, p._reactInternals = c, O && (c = c.stateNode, c.__reactInternalMemoizedUnmaskedChildContext = G, c.__reactInternalMemoizedMaskedChildContext = Q), p; + function qd(c, h, E) { + var P = !1, V = Oc, q = h.contextType; + return typeof q == "object" && q !== null ? q = Qi(q) : (V = Ia(h) ? es : Rr.current, P = h.contextTypes, q = (P = P != null) ? kl(c, V) : Oc), h = new h(E, q), c.memoizedState = h.state !== null && h.state !== void 0 ? h.state : null, h.updater = ud, c.stateNode = h, h._reactInternals = c, P && (c = c.stateNode, c.__reactInternalMemoizedUnmaskedChildContext = V, c.__reactInternalMemoizedMaskedChildContext = q), h; } - function zc(c, p, E, O) { - c = p.state, typeof p.componentWillReceiveProps == "function" && p.componentWillReceiveProps(E, O), typeof p.UNSAFE_componentWillReceiveProps == "function" && p.UNSAFE_componentWillReceiveProps(E, O), p.state !== c && od.enqueueReplaceState(p, p.state, null); + function Nc(c, h, E, P) { + c = h.state, typeof h.componentWillReceiveProps == "function" && h.componentWillReceiveProps(E, P), typeof h.UNSAFE_componentWillReceiveProps == "function" && h.UNSAFE_componentWillReceiveProps(E, P), h.state !== c && ud.enqueueReplaceState(h, h.state, null); } - function cc(c, p, E, O) { - var G = c.stateNode; - G.props = E, G.state = c.memoizedState, G.refs = ci, An(c); - var Q = p.contextType; - typeof Q == "object" && Q !== null ? G.context = Qi(Q) : (Q = Ia(p) ? es : Rr.current, G.context = Nl(c, Q)), G.state = c.memoizedState, Q = p.getDerivedStateFromProps, typeof Q == "function" && (Hl(c, p, Q, E), G.state = c.memoizedState), typeof p.getDerivedStateFromProps == "function" || typeof G.getSnapshotBeforeUpdate == "function" || typeof G.UNSAFE_componentWillMount != "function" && typeof G.componentWillMount != "function" || (p = G.state, typeof G.componentWillMount == "function" && G.componentWillMount(), typeof G.UNSAFE_componentWillMount == "function" && G.UNSAFE_componentWillMount(), p !== G.state && od.enqueueReplaceState(G, G.state, null), Ra(c, E, G, O), G.state = c.memoizedState), typeof G.componentDidMount == "function" && (c.flags |= 4194308); + function cc(c, h, E, P) { + var V = c.stateNode; + V.props = E, V.state = c.memoizedState, V.refs = li, An(c); + var q = h.contextType; + typeof q == "object" && q !== null ? V.context = Qi(q) : (q = Ia(h) ? es : Rr.current, V.context = kl(c, q)), V.state = c.memoizedState, q = h.getDerivedStateFromProps, typeof q == "function" && (Gl(c, h, q, E), V.state = c.memoizedState), typeof h.getDerivedStateFromProps == "function" || typeof V.getSnapshotBeforeUpdate == "function" || typeof V.UNSAFE_componentWillMount != "function" && typeof V.componentWillMount != "function" || (h = V.state, typeof V.componentWillMount == "function" && V.componentWillMount(), typeof V.UNSAFE_componentWillMount == "function" && V.UNSAFE_componentWillMount(), h !== V.state && ud.enqueueReplaceState(V, V.state, null), Ra(c, E, V, P), V.state = c.memoizedState), typeof V.componentDidMount == "function" && (c.flags |= 4194308); } - function qd(c, p, E) { + function Qd(c, h, E) { if (c = E.ref, c !== null && typeof c != "function" && typeof c != "object") { if (E._owner) { if (E = E._owner, E) { if (E.tag !== 1) throw Error(t(309)); - var O = E.stateNode; + var P = E.stateNode; } - if (!O) + if (!P) throw Error(t(147, c)); - var G = O, Q = "" + c; - return p !== null && p.ref !== null && typeof p.ref == "function" && p.ref._stringRef === Q ? p.ref : (p = function(ue) { - var Le = G.refs; - Le === ci && (Le = G.refs = {}), ue === null ? delete Le[Q] : Le[Q] = ue; - }, p._stringRef = Q, p); + var V = P, q = "" + c; + return h !== null && h.ref !== null && typeof h.ref == "function" && h.ref._stringRef === q ? h.ref : (h = function(le) { + var Oe = V.refs; + Oe === li && (Oe = V.refs = {}), le === null ? delete Oe[q] : Oe[q] = le; + }, h._stringRef = q, h); } if (typeof c != "string") throw Error(t(284)); @@ -38372,861 +38252,861 @@ function vj() { } return c; } - function ld(c, p) { - throw c = Object.prototype.toString.call(p), Error(t(31, c === "[object Object]" ? "object with keys {" + Object.keys(p).join(", ") + "}" : c)); + function cd(c, h) { + throw c = Object.prototype.toString.call(h), Error(t(31, c === "[object Object]" ? "object with keys {" + Object.keys(h).join(", ") + "}" : c)); } - function il(c) { - var p = c._init; - return p(c._payload); + function al(c) { + var h = c._init; + return h(c._payload); } - function Fm(c) { - function p(ht, Ze) { + function Bm(c) { + function h(mt, Ke) { if (c) { - var gt = ht.deletions; - gt === null ? (ht.deletions = [Ze], ht.flags |= 16) : gt.push(Ze); + var _t = mt.deletions; + _t === null ? (mt.deletions = [Ke], mt.flags |= 16) : _t.push(Ke); } } - function E(ht, Ze) { + function E(mt, Ke) { if (!c) return null; - for (; Ze !== null; ) - p(ht, Ze), Ze = Ze.sibling; + for (; Ke !== null; ) + h(mt, Ke), Ke = Ke.sibling; return null; } - function O(ht, Ze) { - for (ht = /* @__PURE__ */ new Map(); Ze !== null; ) - Ze.key !== null ? ht.set(Ze.key, Ze) : ht.set(Ze.index, Ze), Ze = Ze.sibling; - return ht; + function P(mt, Ke) { + for (mt = /* @__PURE__ */ new Map(); Ke !== null; ) + Ke.key !== null ? mt.set(Ke.key, Ke) : mt.set(Ke.index, Ke), Ke = Ke.sibling; + return mt; } - function G(ht, Ze) { - return ht = ku(ht, Ze), ht.index = 0, ht.sibling = null, ht; + function V(mt, Ke) { + return mt = Bu(mt, Ke), mt.index = 0, mt.sibling = null, mt; } - function Q(ht, Ze, gt) { - return ht.index = gt, c ? (gt = ht.alternate, gt !== null ? (gt = gt.index, gt < Ze ? (ht.flags |= 2, Ze) : gt) : (ht.flags |= 2, Ze)) : (ht.flags |= 1048576, Ze); + function q(mt, Ke, _t) { + return mt.index = _t, c ? (_t = mt.alternate, _t !== null ? (_t = _t.index, _t < Ke ? (mt.flags |= 2, Ke) : _t) : (mt.flags |= 2, Ke)) : (mt.flags |= 1048576, Ke); } - function ue(ht) { - return c && ht.alternate === null && (ht.flags |= 2), ht; + function le(mt) { + return c && mt.alternate === null && (mt.flags |= 2), mt; } - function Le(ht, Ze, gt, xn) { - return Ze === null || Ze.tag !== 6 ? (Ze = mc(gt, ht.mode, xn), Ze.return = ht, Ze) : (Ze = G(Ze, gt), Ze.return = ht, Ze); + function Oe(mt, Ke, _t, _n) { + return Ke === null || Ke.tag !== 6 ? (Ke = mc(_t, mt.mode, _n), Ke.return = mt, Ke) : (Ke = V(Ke, _t), Ke.return = mt, Ke); } - function Ve(ht, Ze, gt, xn) { - var ar = gt.type; - return ar === $ ? un(ht, Ze, gt.props.children, xn, gt.key) : Ze !== null && (Ze.elementType === ar || typeof ar == "object" && ar !== null && ar.$$typeof === Ce && il(ar) === Ze.type) ? (xn = G(Ze, gt.props), xn.ref = qd(ht, Ze, gt), xn.return = ht, xn) : (xn = Lh(gt.type, gt.key, gt.props, null, ht.mode, xn), xn.ref = qd(ht, Ze, gt), xn.return = ht, xn); + function Ge(mt, Ke, _t, _n) { + var ar = _t.type; + return ar === te ? fn(mt, Ke, _t.props.children, _n, _t.key) : Ke !== null && (Ke.elementType === ar || typeof ar == "object" && ar !== null && ar.$$typeof === Re && al(ar) === Ke.type) ? (_n = V(Ke, _t.props), _n.ref = Qd(mt, Ke, _t), _n.return = mt, _n) : (_n = Ph(_t.type, _t.key, _t.props, null, mt.mode, _n), _n.ref = Qd(mt, Ke, _t), _n.return = mt, _n); } - function Ct(ht, Ze, gt, xn) { - return Ze === null || Ze.tag !== 4 || Ze.stateNode.containerInfo !== gt.containerInfo || Ze.stateNode.implementation !== gt.implementation ? (Ze = Aa(gt, ht.mode, xn), Ze.return = ht, Ze) : (Ze = G(Ze, gt.children || []), Ze.return = ht, Ze); + function Dt(mt, Ke, _t, _n) { + return Ke === null || Ke.tag !== 4 || Ke.stateNode.containerInfo !== _t.containerInfo || Ke.stateNode.implementation !== _t.implementation ? (Ke = Aa(_t, mt.mode, _n), Ke.return = mt, Ke) : (Ke = V(Ke, _t.children || []), Ke.return = mt, Ke); } - function un(ht, Ze, gt, xn, ar) { - return Ze === null || Ze.tag !== 7 ? (Ze = Jp(gt, ht.mode, xn, ar), Ze.return = ht, Ze) : (Ze = G(Ze, gt), Ze.return = ht, Ze); + function fn(mt, Ke, _t, _n, ar) { + return Ke === null || Ke.tag !== 7 ? (Ke = em(_t, mt.mode, _n, ar), Ke.return = mt, Ke) : (Ke = V(Ke, _t), Ke.return = mt, Ke); } - function ln(ht, Ze, gt) { - if (typeof Ze == "string" && Ze !== "" || typeof Ze == "number") - return Ze = mc("" + Ze, ht.mode, gt), Ze.return = ht, Ze; - if (typeof Ze == "object" && Ze !== null) { - switch (Ze.$$typeof) { - case X: - return gt = Lh(Ze.type, Ze.key, Ze.props, null, ht.mode, gt), gt.ref = qd(ht, null, Ze), gt.return = ht, gt; - case J: - return Ze = Aa(Ze, ht.mode, gt), Ze.return = ht, Ze; - case Ce: - var xn = Ze._init; - return ln(ht, xn(Ze._payload), gt); + function un(mt, Ke, _t) { + if (typeof Ke == "string" && Ke !== "" || typeof Ke == "number") + return Ke = mc("" + Ke, mt.mode, _t), Ke.return = mt, Ke; + if (typeof Ke == "object" && Ke !== null) { + switch (Ke.$$typeof) { + case Q: + return _t = Ph(Ke.type, Ke.key, Ke.props, null, mt.mode, _t), _t.ref = Qd(mt, null, Ke), _t.return = mt, _t; + case K: + return Ke = Aa(Ke, mt.mode, _t), Ke.return = mt, Ke; + case Re: + var _n = Ke._init; + return un(mt, _n(Ke._payload), _t); } - if (Jt(Ze) || de(Ze)) - return Ze = Jp(Ze, ht.mode, gt, null), Ze.return = ht, Ze; - ld(ht, Ze); + if (Zt(Ke) || fe(Ke)) + return Ke = em(Ke, mt.mode, _t, null), Ke.return = mt, Ke; + cd(mt, Ke); } return null; } - function nn(ht, Ze, gt, xn) { - var ar = Ze !== null ? Ze.key : null; - if (typeof gt == "string" && gt !== "" || typeof gt == "number") - return ar !== null ? null : Le(ht, Ze, "" + gt, xn); - if (typeof gt == "object" && gt !== null) { - switch (gt.$$typeof) { - case X: - return gt.key === ar ? Ve(ht, Ze, gt, xn) : null; - case J: - return gt.key === ar ? Ct(ht, Ze, gt, xn) : null; - case Ce: - return ar = gt._init, nn( - ht, - Ze, - ar(gt._payload), - xn + function rn(mt, Ke, _t, _n) { + var ar = Ke !== null ? Ke.key : null; + if (typeof _t == "string" && _t !== "" || typeof _t == "number") + return ar !== null ? null : Oe(mt, Ke, "" + _t, _n); + if (typeof _t == "object" && _t !== null) { + switch (_t.$$typeof) { + case Q: + return _t.key === ar ? Ge(mt, Ke, _t, _n) : null; + case K: + return _t.key === ar ? Dt(mt, Ke, _t, _n) : null; + case Re: + return ar = _t._init, rn( + mt, + Ke, + ar(_t._payload), + _n ); } - if (Jt(gt) || de(gt)) - return ar !== null ? null : un(ht, Ze, gt, xn, null); - ld(ht, gt); + if (Zt(_t) || fe(_t)) + return ar !== null ? null : fn(mt, Ke, _t, _n, null); + cd(mt, _t); } return null; } - function kn(ht, Ze, gt, xn, ar) { - if (typeof xn == "string" && xn !== "" || typeof xn == "number") - return ht = ht.get(gt) || null, Le(Ze, ht, "" + xn, ar); - if (typeof xn == "object" && xn !== null) { - switch (xn.$$typeof) { - case X: - return ht = ht.get(xn.key === null ? gt : xn.key) || null, Ve(Ze, ht, xn, ar); - case J: - return ht = ht.get(xn.key === null ? gt : xn.key) || null, Ct(Ze, ht, xn, ar); - case Ce: - var Qn = xn._init; - return kn(ht, Ze, gt, Qn(xn._payload), ar); - } - if (Jt(xn) || de(xn)) - return ht = ht.get(gt) || null, un(Ze, ht, xn, ar, null); - ld(Ze, xn); + function Hn(mt, Ke, _t, _n, ar) { + if (typeof _n == "string" && _n !== "" || typeof _n == "number") + return mt = mt.get(_t) || null, Oe(Ke, mt, "" + _n, ar); + if (typeof _n == "object" && _n !== null) { + switch (_n.$$typeof) { + case Q: + return mt = mt.get(_n.key === null ? _t : _n.key) || null, Ge(Ke, mt, _n, ar); + case K: + return mt = mt.get(_n.key === null ? _t : _n.key) || null, Dt(Ke, mt, _n, ar); + case Re: + var Zn = _n._init; + return Hn(mt, Ke, _t, Zn(_n._payload), ar); + } + if (Zt(_n) || fe(_n)) + return mt = mt.get(_t) || null, fn(Ke, mt, _n, ar, null); + cd(Ke, _n); } return null; } - function qn(ht, Ze, gt, xn) { - for (var ar = null, Qn = null, pr = Ze, Lr = Ze = 0, ol = null; pr !== null && Lr < gt.length; Lr++) { - pr.index > Lr ? (ol = pr, pr = null) : ol = pr.sibling; - var Zi = nn(ht, pr, gt[Lr], xn); + function Qn(mt, Ke, _t, _n) { + for (var ar = null, Zn = null, pr = Ke, Lr = Ke = 0, ll = null; pr !== null && Lr < _t.length; Lr++) { + pr.index > Lr ? (ll = pr, pr = null) : ll = pr.sibling; + var Zi = rn(mt, pr, _t[Lr], _n); if (Zi === null) { - pr === null && (pr = ol); + pr === null && (pr = ll); break; } - c && pr && Zi.alternate === null && p(ht, pr), Ze = Q(Zi, Ze, Lr), Qn === null ? ar = Zi : Qn.sibling = Zi, Qn = Zi, pr = ol; + c && pr && Zi.alternate === null && h(mt, pr), Ke = q(Zi, Ke, Lr), Zn === null ? ar = Zi : Zn.sibling = Zi, Zn = Zi, pr = ll; } - if (Lr === gt.length) - return E(ht, pr), ga && wo(ht, Lr), ar; + if (Lr === _t.length) + return E(mt, pr), ga && bo(mt, Lr), ar; if (pr === null) { - for (; Lr < gt.length; Lr++) - pr = ln(ht, gt[Lr], xn), pr !== null && (Ze = Q(pr, Ze, Lr), Qn === null ? ar = pr : Qn.sibling = pr, Qn = pr); - return ga && wo(ht, Lr), ar; - } - for (pr = O(ht, pr); Lr < gt.length; Lr++) - ol = kn(pr, ht, Lr, gt[Lr], xn), ol !== null && (c && ol.alternate !== null && pr.delete(ol.key === null ? Lr : ol.key), Ze = Q(ol, Ze, Lr), Qn === null ? ar = ol : Qn.sibling = ol, Qn = ol); - return c && pr.forEach(function(Ff) { - return p(ht, Ff); - }), ga && wo(ht, Lr), ar; - } - function rr(ht, Ze, gt, xn) { - var ar = de(gt); + for (; Lr < _t.length; Lr++) + pr = un(mt, _t[Lr], _n), pr !== null && (Ke = q(pr, Ke, Lr), Zn === null ? ar = pr : Zn.sibling = pr, Zn = pr); + return ga && bo(mt, Lr), ar; + } + for (pr = P(mt, pr); Lr < _t.length; Lr++) + ll = Hn(pr, mt, Lr, _t[Lr], _n), ll !== null && (c && ll.alternate !== null && pr.delete(ll.key === null ? Lr : ll.key), Ke = q(ll, Ke, Lr), Zn === null ? ar = ll : Zn.sibling = ll, Zn = ll); + return c && pr.forEach(function(If) { + return h(mt, If); + }), ga && bo(mt, Lr), ar; + } + function ir(mt, Ke, _t, _n) { + var ar = fe(_t); if (typeof ar != "function") throw Error(t(150)); - if (gt = ar.call(gt), gt == null) + if (_t = ar.call(_t), _t == null) throw Error(t(151)); - for (var Qn = ar = null, pr = Ze, Lr = Ze = 0, ol = null, Zi = gt.next(); pr !== null && !Zi.done; Lr++, Zi = gt.next()) { - pr.index > Lr ? (ol = pr, pr = null) : ol = pr.sibling; - var Ff = nn(ht, pr, Zi.value, xn); - if (Ff === null) { - pr === null && (pr = ol); + for (var Zn = ar = null, pr = Ke, Lr = Ke = 0, ll = null, Zi = _t.next(); pr !== null && !Zi.done; Lr++, Zi = _t.next()) { + pr.index > Lr ? (ll = pr, pr = null) : ll = pr.sibling; + var If = rn(mt, pr, Zi.value, _n); + if (If === null) { + pr === null && (pr = ll); break; } - c && pr && Ff.alternate === null && p(ht, pr), Ze = Q(Ff, Ze, Lr), Qn === null ? ar = Ff : Qn.sibling = Ff, Qn = Ff, pr = ol; + c && pr && If.alternate === null && h(mt, pr), Ke = q(If, Ke, Lr), Zn === null ? ar = If : Zn.sibling = If, Zn = If, pr = ll; } if (Zi.done) return E( - ht, + mt, pr - ), ga && wo(ht, Lr), ar; + ), ga && bo(mt, Lr), ar; if (pr === null) { - for (; !Zi.done; Lr++, Zi = gt.next()) - Zi = ln(ht, Zi.value, xn), Zi !== null && (Ze = Q(Zi, Ze, Lr), Qn === null ? ar = Zi : Qn.sibling = Zi, Qn = Zi); - return ga && wo(ht, Lr), ar; - } - for (pr = O(ht, pr); !Zi.done; Lr++, Zi = gt.next()) - Zi = kn(pr, ht, Lr, Zi.value, xn), Zi !== null && (c && Zi.alternate !== null && pr.delete(Zi.key === null ? Lr : Zi.key), Ze = Q(Zi, Ze, Lr), Qn === null ? ar = Zi : Qn.sibling = Zi, Qn = Zi); - return c && pr.forEach(function(Mg) { - return p(ht, Mg); - }), ga && wo(ht, Lr), ar; - } - function Bs(ht, Ze, gt, xn) { - if (typeof gt == "object" && gt !== null && gt.type === $ && gt.key === null && (gt = gt.props.children), typeof gt == "object" && gt !== null) { - switch (gt.$$typeof) { - case X: + for (; !Zi.done; Lr++, Zi = _t.next()) + Zi = un(mt, Zi.value, _n), Zi !== null && (Ke = q(Zi, Ke, Lr), Zn === null ? ar = Zi : Zn.sibling = Zi, Zn = Zi); + return ga && bo(mt, Lr), ar; + } + for (pr = P(mt, pr); !Zi.done; Lr++, Zi = _t.next()) + Zi = Hn(pr, mt, Lr, Zi.value, _n), Zi !== null && (c && Zi.alternate !== null && pr.delete(Zi.key === null ? Lr : Zi.key), Ke = q(Zi, Ke, Lr), Zn === null ? ar = Zi : Zn.sibling = Zi, Zn = Zi); + return c && pr.forEach(function(Rg) { + return h(mt, Rg); + }), ga && bo(mt, Lr), ar; + } + function Hs(mt, Ke, _t, _n) { + if (typeof _t == "object" && _t !== null && _t.type === te && _t.key === null && (_t = _t.props.children), typeof _t == "object" && _t !== null) { + switch (_t.$$typeof) { + case Q: e: { - for (var ar = gt.key, Qn = Ze; Qn !== null; ) { - if (Qn.key === ar) { - if (ar = gt.type, ar === $) { - if (Qn.tag === 7) { - E(ht, Qn.sibling), Ze = G(Qn, gt.props.children), Ze.return = ht, ht = Ze; + for (var ar = _t.key, Zn = Ke; Zn !== null; ) { + if (Zn.key === ar) { + if (ar = _t.type, ar === te) { + if (Zn.tag === 7) { + E(mt, Zn.sibling), Ke = V(Zn, _t.props.children), Ke.return = mt, mt = Ke; break e; } - } else if (Qn.elementType === ar || typeof ar == "object" && ar !== null && ar.$$typeof === Ce && il(ar) === Qn.type) { - E(ht, Qn.sibling), Ze = G(Qn, gt.props), Ze.ref = qd(ht, Qn, gt), Ze.return = ht, ht = Ze; + } else if (Zn.elementType === ar || typeof ar == "object" && ar !== null && ar.$$typeof === Re && al(ar) === Zn.type) { + E(mt, Zn.sibling), Ke = V(Zn, _t.props), Ke.ref = Qd(mt, Zn, _t), Ke.return = mt, mt = Ke; break e; } - E(ht, Qn); + E(mt, Zn); break; } else - p(ht, Qn); - Qn = Qn.sibling; + h(mt, Zn); + Zn = Zn.sibling; } - gt.type === $ ? (Ze = Jp(gt.props.children, ht.mode, xn, gt.key), Ze.return = ht, ht = Ze) : (xn = Lh(gt.type, gt.key, gt.props, null, ht.mode, xn), xn.ref = qd(ht, Ze, gt), xn.return = ht, ht = xn); + _t.type === te ? (Ke = em(_t.props.children, mt.mode, _n, _t.key), Ke.return = mt, mt = Ke) : (_n = Ph(_t.type, _t.key, _t.props, null, mt.mode, _n), _n.ref = Qd(mt, Ke, _t), _n.return = mt, mt = _n); } - return ue(ht); - case J: + return le(mt); + case K: e: { - for (Qn = gt.key; Ze !== null; ) { - if (Ze.key === Qn) - if (Ze.tag === 4 && Ze.stateNode.containerInfo === gt.containerInfo && Ze.stateNode.implementation === gt.implementation) { - E(ht, Ze.sibling), Ze = G(Ze, gt.children || []), Ze.return = ht, ht = Ze; + for (Zn = _t.key; Ke !== null; ) { + if (Ke.key === Zn) + if (Ke.tag === 4 && Ke.stateNode.containerInfo === _t.containerInfo && Ke.stateNode.implementation === _t.implementation) { + E(mt, Ke.sibling), Ke = V(Ke, _t.children || []), Ke.return = mt, mt = Ke; break e; } else { - E(ht, Ze); + E(mt, Ke); break; } else - p(ht, Ze); - Ze = Ze.sibling; + h(mt, Ke); + Ke = Ke.sibling; } - Ze = Aa(gt, ht.mode, xn), Ze.return = ht, ht = Ze; + Ke = Aa(_t, mt.mode, _n), Ke.return = mt, mt = Ke; } - return ue(ht); - case Ce: - return Qn = gt._init, Bs(ht, Ze, Qn(gt._payload), xn); + return le(mt); + case Re: + return Zn = _t._init, Hs(mt, Ke, Zn(_t._payload), _n); } - if (Jt(gt)) - return qn(ht, Ze, gt, xn); - if (de(gt)) - return rr(ht, Ze, gt, xn); - ld(ht, gt); + if (Zt(_t)) + return Qn(mt, Ke, _t, _n); + if (fe(_t)) + return ir(mt, Ke, _t, _n); + cd(mt, _t); } - return typeof gt == "string" && gt !== "" || typeof gt == "number" ? (gt = "" + gt, Ze !== null && Ze.tag === 6 ? (E(ht, Ze.sibling), Ze = G(Ze, gt), Ze.return = ht, ht = Ze) : (E(ht, Ze), Ze = mc(gt, ht.mode, xn), Ze.return = ht, ht = Ze), ue(ht)) : E(ht, Ze); + return typeof _t == "string" && _t !== "" || typeof _t == "number" ? (_t = "" + _t, Ke !== null && Ke.tag === 6 ? (E(mt, Ke.sibling), Ke = V(Ke, _t), Ke.return = mt, mt = Ke) : (E(mt, Ke), Ke = mc(_t, mt.mode, _n), Ke.return = mt, mt = Ke), le(mt)) : E(mt, Ke); } - return Bs; + return Hs; } - var Ef = Fm(!0), Qd = Fm(!1), Mf = {}, Vl = Gn(Mf), Gl = Gn(Mf), ud = Gn(Mf); - function Wl(c) { - if (c === Mf) + var Tf = Bm(!0), Zd = Bm(!1), Cf = {}, Wl = Wn(Cf), jl = Wn(Cf), fd = Wn(Cf); + function Yl(c) { + if (c === Cf) throw Error(t(174)); return c; } - function Eh(c, p) { - switch (zi(ud, p), zi(Gl, c), zi(Vl, Mf), c = p.nodeType, c) { + function Mh(c, h) { + switch (zi(fd, h), zi(jl, c), zi(Wl, Cf), c = h.nodeType, c) { case 9: case 11: - p = (p = p.documentElement) ? p.namespaceURI : Nt(null, ""); + h = (h = h.documentElement) ? h.namespaceURI : Ot(null, ""); break; default: - c = c === 8 ? p.parentNode : p, p = c.namespaceURI || null, c = c.tagName, p = Nt(p, c); + c = c === 8 ? h.parentNode : h, h = c.namespaceURI || null, c = c.tagName, h = Ot(h, c); } - bi(Vl), zi(Vl, p); + wi(Wl), zi(Wl, h); } function fc() { - bi(Vl), bi(Gl), bi(ud); + wi(Wl), wi(jl), wi(fd); } function hr(c) { - Wl(ud.current); - var p = Wl(Vl.current), E = Nt(p, c.type); - p !== E && (zi(Gl, c), zi(Vl, E)); - } - function Yr(c) { - Gl.current === c && (bi(Vl), bi(Gl)); - } - var fr = Gn(0); - function fi(c) { - for (var p = c; p !== null; ) { - if (p.tag === 13) { - var E = p.memoizedState; + Yl(fd.current); + var h = Yl(Wl.current), E = Ot(h, c.type); + h !== E && (zi(jl, c), zi(Wl, E)); + } + function Gr(c) { + jl.current === c && (wi(Wl), wi(jl)); + } + var fr = Wn(0); + function ui(c) { + for (var h = c; h !== null; ) { + if (h.tag === 13) { + var E = h.memoizedState; if (E !== null && (E = E.dehydrated, E === null || E.data === "$?" || E.data === "$!")) - return p; - } else if (p.tag === 19 && p.memoizedProps.revealOrder !== void 0) { - if ((p.flags & 128) !== 0) - return p; - } else if (p.child !== null) { - p.child.return = p, p = p.child; + return h; + } else if (h.tag === 19 && h.memoizedProps.revealOrder !== void 0) { + if ((h.flags & 128) !== 0) + return h; + } else if (h.child !== null) { + h.child.return = h, h = h.child; continue; } - if (p === c) + if (h === c) break; - for (; p.sibling === null; ) { - if (p.return === null || p.return === c) + for (; h.sibling === null; ) { + if (h.return === null || h.return === c) return null; - p = p.return; + h = h.return; } - p.sibling.return = p.return, p = p.sibling; + h.sibling.return = h.return, h = h.sibling; } return null; } - var Ns = []; - function jl() { - for (var c = 0; c < Ns.length; c++) - Ns[c]._workInProgressVersionPrimary = null; - Ns.length = 0; + var Fs = []; + function Xl() { + for (var c = 0; c < Fs.length; c++) + Fs[c]._workInProgressVersionPrimary = null; + Fs.length = 0; } - var Nc = I.ReactCurrentDispatcher, Sr = I.ReactCurrentBatchConfig, Eo = 0, Ai = null, Ht = null, vi = null, lr = !1, Fc = !1, Ha = 0, Yo = 0; + var Fc = B.ReactCurrentDispatcher, _r = B.ReactCurrentBatchConfig, Eo = 0, Ai = null, Ht = null, pi = null, lr = !1, kc = !1, Ha = 0, Yo = 0; function Di() { throw Error(t(321)); } - function Tf(c, p) { - if (p === null) + function Rf(c, h) { + if (h === null) return !1; - for (var E = 0; E < p.length && E < c.length; E++) - if (!pt(c[E], p[E])) + for (var E = 0; E < h.length && E < c.length; E++) + if (!vt(c[E], h[E])) return !1; return !0; } - function Cf(c, p, E, O, G, Q) { - if (Eo = Q, Ai = p, p.memoizedState = null, p.updateQueue = null, p.lanes = 0, Nc.current = c === null || c.memoizedState === null ? x : L, c = E(O, G), Fc) { - Q = 0; + function Af(c, h, E, P, V, q) { + if (Eo = q, Ai = h, h.memoizedState = null, h.updateQueue = null, h.lanes = 0, Fc.current = c === null || c.memoizedState === null ? x : L, c = E(P, V), kc) { + q = 0; do { - if (Fc = !1, Ha = 0, 25 <= Q) + if (kc = !1, Ha = 0, 25 <= q) throw Error(t(301)); - Q += 1, vi = Ht = null, p.updateQueue = null, Nc.current = H, c = E(O, G); - } while (Fc); + q += 1, pi = Ht = null, h.updateQueue = null, Fc.current = k, c = E(P, V); + } while (kc); } - if (Nc.current = y, p = Ht !== null && Ht.next !== null, Eo = 0, vi = Ht = Ai = null, lr = !1, p) + if (Fc.current = y, h = Ht !== null && Ht.next !== null, Eo = 0, pi = Ht = Ai = null, lr = !1, h) throw Error(t(300)); return c; } - function Rf() { + function Df() { var c = Ha !== 0; return Ha = 0, c; } - function ia() { + function aa() { var c = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; - return vi === null ? Ai.memoizedState = vi = c : vi = vi.next = c, vi; + return pi === null ? Ai.memoizedState = pi = c : pi = pi.next = c, pi; } - function Fs() { + function ks() { if (Ht === null) { var c = Ai.alternate; c = c !== null ? c.memoizedState : null; } else c = Ht.next; - var p = vi === null ? Ai.memoizedState : vi.next; - if (p !== null) - vi = p, Ht = c; + var h = pi === null ? Ai.memoizedState : pi.next; + if (h !== null) + pi = h, Ht = c; else { if (c === null) throw Error(t(310)); - Ht = c, c = { memoizedState: Ht.memoizedState, baseState: Ht.baseState, baseQueue: Ht.baseQueue, queue: Ht.queue, next: null }, vi === null ? Ai.memoizedState = vi = c : vi = vi.next = c; + Ht = c, c = { memoizedState: Ht.memoizedState, baseState: Ht.baseState, baseQueue: Ht.baseQueue, queue: Ht.queue, next: null }, pi === null ? Ai.memoizedState = pi = c : pi = pi.next = c; } - return vi; + return pi; } - function Af(c, p) { - return typeof p == "function" ? p(c) : p; + function Lf(c, h) { + return typeof h == "function" ? h(c) : h; } - function Zd(c) { - var p = Fs(), E = p.queue; + function Jd(c) { + var h = ks(), E = h.queue; if (E === null) throw Error(t(311)); E.lastRenderedReducer = c; - var O = Ht, G = O.baseQueue, Q = E.pending; - if (Q !== null) { - if (G !== null) { - var ue = G.next; - G.next = Q.next, Q.next = ue; + var P = Ht, V = P.baseQueue, q = E.pending; + if (q !== null) { + if (V !== null) { + var le = V.next; + V.next = q.next, q.next = le; } - O.baseQueue = G = Q, E.pending = null; + P.baseQueue = V = q, E.pending = null; } - if (G !== null) { - Q = G.next, O = O.baseState; - var Le = ue = null, Ve = null, Ct = Q; + if (V !== null) { + q = V.next, P = P.baseState; + var Oe = le = null, Ge = null, Dt = q; do { - var un = Ct.lane; - if ((Eo & un) === un) - Ve !== null && (Ve = Ve.next = { lane: 0, action: Ct.action, hasEagerState: Ct.hasEagerState, eagerState: Ct.eagerState, next: null }), O = Ct.hasEagerState ? Ct.eagerState : c(O, Ct.action); + var fn = Dt.lane; + if ((Eo & fn) === fn) + Ge !== null && (Ge = Ge.next = { lane: 0, action: Dt.action, hasEagerState: Dt.hasEagerState, eagerState: Dt.eagerState, next: null }), P = Dt.hasEagerState ? Dt.eagerState : c(P, Dt.action); else { - var ln = { - lane: un, - action: Ct.action, - hasEagerState: Ct.hasEagerState, - eagerState: Ct.eagerState, + var un = { + lane: fn, + action: Dt.action, + hasEagerState: Dt.hasEagerState, + eagerState: Dt.eagerState, next: null }; - Ve === null ? (Le = Ve = ln, ue = O) : Ve = Ve.next = ln, Ai.lanes |= un, vd |= un; + Ge === null ? (Oe = Ge = un, le = P) : Ge = Ge.next = un, Ai.lanes |= fn, yd |= fn; } - Ct = Ct.next; - } while (Ct !== null && Ct !== Q); - Ve === null ? ue = O : Ve.next = Le, pt(O, p.memoizedState) || (Tn = !0), p.memoizedState = O, p.baseState = ue, p.baseQueue = Ve, E.lastRenderedState = O; + Dt = Dt.next; + } while (Dt !== null && Dt !== q); + Ge === null ? le = P : Ge.next = Oe, vt(P, h.memoizedState) || (Tn = !0), h.memoizedState = P, h.baseState = le, h.baseQueue = Ge, E.lastRenderedState = P; } if (c = E.interleaved, c !== null) { - G = c; + V = c; do - Q = G.lane, Ai.lanes |= Q, vd |= Q, G = G.next; - while (G !== c); + q = V.lane, Ai.lanes |= q, yd |= q, V = V.next; + while (V !== c); } else - G === null && (E.lanes = 0); - return [p.memoizedState, E.dispatch]; + V === null && (E.lanes = 0); + return [h.memoizedState, E.dispatch]; } - function eo(c) { - var p = Fs(), E = p.queue; + function to(c) { + var h = ks(), E = h.queue; if (E === null) throw Error(t(311)); E.lastRenderedReducer = c; - var O = E.dispatch, G = E.pending, Q = p.memoizedState; - if (G !== null) { + var P = E.dispatch, V = E.pending, q = h.memoizedState; + if (V !== null) { E.pending = null; - var ue = G = G.next; + var le = V = V.next; do - Q = c(Q, ue.action), ue = ue.next; - while (ue !== G); - pt(Q, p.memoizedState) || (Tn = !0), p.memoizedState = Q, p.baseQueue === null && (p.baseState = Q), E.lastRenderedState = Q; + q = c(q, le.action), le = le.next; + while (le !== V); + vt(q, h.memoizedState) || (Tn = !0), h.memoizedState = q, h.baseQueue === null && (h.baseState = q), E.lastRenderedState = q; } - return [Q, O]; + return [q, P]; } - function Yl() { + function ql() { } - function tp(c, p) { - var E = Ai, O = Fs(), G = p(), Q = !pt(O.memoizedState, G); - if (Q && (O.memoizedState = G, Tn = !0), O = O.queue, Bc(wi.bind(null, E, O, c), [c]), O.getSnapshot !== p || Q || vi !== null && vi.memoizedState.tag & 1) { - if (E.flags |= 2048, hu(9, Es.bind(null, E, O, G, p), void 0, null), ea === null) + function ip(c, h) { + var E = Ai, P = ks(), V = h(), q = !vt(P.memoizedState, V); + if (q && (P.memoizedState = V, Tn = !0), P = P.queue, Hc(bi.bind(null, E, P, c), [c]), P.getSnapshot !== h || q || pi !== null && pi.memoizedState.tag & 1) { + if (E.flags |= 2048, mu(9, Ms.bind(null, E, P, V, h), void 0, null), ea === null) throw Error(t(349)); - (Eo & 30) !== 0 || kc(E, p, G); + (Eo & 30) !== 0 || Ic(E, h, V); } - return G; + return V; } - function kc(c, p, E) { - c.flags |= 16384, c = { getSnapshot: p, value: E }, p = Ai.updateQueue, p === null ? (p = { lastEffect: null, stores: null }, Ai.updateQueue = p, p.stores = [c]) : (E = p.stores, E === null ? p.stores = [c] : E.push(c)); + function Ic(c, h, E) { + c.flags |= 16384, c = { getSnapshot: h, value: E }, h = Ai.updateQueue, h === null ? (h = { lastEffect: null, stores: null }, Ai.updateQueue = h, h.stores = [c]) : (E = h.stores, E === null ? h.stores = [c] : E.push(c)); } - function Es(c, p, E, O) { - p.value = E, p.getSnapshot = O, to(p) && Xl(c); + function Ms(c, h, E, P) { + h.value = E, h.getSnapshot = P, no(h) && Ql(c); } - function wi(c, p, E) { + function bi(c, h, E) { return E(function() { - to(p) && Xl(c); + no(h) && Ql(c); }); } - function to(c) { - var p = c.getSnapshot; + function no(c) { + var h = c.getSnapshot; c = c.value; try { - var E = p(); - return !pt(c, E); + var E = h(); + return !vt(c, E); } catch { return !0; } } - function Xl(c) { - var p = jo(c, 1); - p !== null && Sl(p, c, 1, -1); + function Ql(c) { + var h = jo(c, 1); + h !== null && Sl(h, c, 1, -1); } - function Ic(c) { - var p = ia(); - return typeof c == "function" && (c = c()), p.memoizedState = p.baseState = c, c = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Af, lastRenderedState: c }, p.queue = c, c = c.dispatch = Lf.bind(null, Ai, c), [p.memoizedState, c]; + function Bc(c) { + var h = aa(); + return typeof c == "function" && (c = c()), h.memoizedState = h.baseState = c, c = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Lf, lastRenderedState: c }, h.queue = c, c = c.dispatch = Of.bind(null, Ai, c), [h.memoizedState, c]; } - function hu(c, p, E, O) { - return c = { tag: c, create: p, destroy: E, deps: O, next: null }, p = Ai.updateQueue, p === null ? (p = { lastEffect: null, stores: null }, Ai.updateQueue = p, p.lastEffect = c.next = c) : (E = p.lastEffect, E === null ? p.lastEffect = c.next = c : (O = E.next, E.next = c, c.next = O, p.lastEffect = c)), c; + function mu(c, h, E, P) { + return c = { tag: c, create: h, destroy: E, deps: P, next: null }, h = Ai.updateQueue, h === null ? (h = { lastEffect: null, stores: null }, Ai.updateQueue = h, h.lastEffect = c.next = c) : (E = h.lastEffect, E === null ? h.lastEffect = c.next = c : (P = E.next, E.next = c, c.next = P, h.lastEffect = c)), c; } - function Df() { - return Fs().memoizedState; + function Pf() { + return ks().memoizedState; } - function pu(c, p, E, O) { - var G = ia(); - Ai.flags |= c, G.memoizedState = hu(1 | p, E, void 0, O === void 0 ? null : O); + function vu(c, h, E, P) { + var V = aa(); + Ai.flags |= c, V.memoizedState = mu(1 | h, E, void 0, P === void 0 ? null : P); } - function zu(c, p, E, O) { - var G = Fs(); - O = O === void 0 ? null : O; - var Q = void 0; + function Fu(c, h, E, P) { + var V = ks(); + P = P === void 0 ? null : P; + var q = void 0; if (Ht !== null) { - var ue = Ht.memoizedState; - if (Q = ue.destroy, O !== null && Tf(O, ue.deps)) { - G.memoizedState = hu(p, E, Q, O); + var le = Ht.memoizedState; + if (q = le.destroy, P !== null && Rf(P, le.deps)) { + V.memoizedState = mu(h, E, q, P); return; } } - Ai.flags |= c, G.memoizedState = hu(1 | p, E, Q, O); + Ai.flags |= c, V.memoizedState = mu(1 | h, E, q, P); } - function Mo(c, p) { - return pu(8390656, 8, c, p); + function Mo(c, h) { + return vu(8390656, 8, c, h); } - function Bc(c, p) { - return zu(2048, 8, c, p); + function Hc(c, h) { + return Fu(2048, 8, c, h); } - function cd(c, p) { - return zu(4, 2, c, p); + function dd(c, h) { + return Fu(4, 2, c, h); } - function Xo(c, p) { - return zu(4, 4, c, p); + function Xo(c, h) { + return Fu(4, 4, c, h); } - function fd(c, p) { - if (typeof p == "function") - return c = c(), p(c), function() { - p(null); + function hd(c, h) { + if (typeof h == "function") + return c = c(), h(c), function() { + h(null); }; - if (p != null) - return c = c(), p.current = c, function() { - p.current = null; + if (h != null) + return c = c(), h.current = c, function() { + h.current = null; }; } - function mu(c, p, E) { - return E = E != null ? E.concat([c]) : null, zu(4, 4, fd.bind(null, p, c), E); + function gu(c, h, E) { + return E = E != null ? E.concat([c]) : null, Fu(4, 4, hd.bind(null, h, c), E); } - function dd() { + function pd() { } - function Ms(c, p) { - var E = Fs(); - p = p === void 0 ? null : p; - var O = E.memoizedState; - return O !== null && p !== null && Tf(p, O[1]) ? O[0] : (E.memoizedState = [c, p], c); + function Ts(c, h) { + var E = ks(); + h = h === void 0 ? null : h; + var P = E.memoizedState; + return P !== null && h !== null && Rf(h, P[1]) ? P[0] : (E.memoizedState = [c, h], c); } - function ks(c, p) { - var E = Fs(); - p = p === void 0 ? null : p; - var O = E.memoizedState; - return O !== null && p !== null && Tf(p, O[1]) ? O[0] : (c = c(), E.memoizedState = [c, p], c); + function Is(c, h) { + var E = ks(); + h = h === void 0 ? null : h; + var P = E.memoizedState; + return P !== null && h !== null && Rf(h, P[1]) ? P[0] : (c = c(), E.memoizedState = [c, h], c); } - function vu(c, p, E) { - return (Eo & 21) === 0 ? (c.baseState && (c.baseState = !1, Tn = !0), c.memoizedState = E) : (pt(E, p) || (E = Ls(), Ai.lanes |= E, vd |= E, c.baseState = !0), p); + function yu(c, h, E) { + return (Eo & 21) === 0 ? (c.baseState && (c.baseState = !1, Tn = !0), c.memoizedState = E) : (vt(E, h) || (E = Ps(), Ai.lanes |= E, yd |= E, c.baseState = !0), h); } - function dg(c, p) { - var E = ri; - ri = E !== 0 && 4 > E ? E : 4, c(!0); - var O = Sr.transition; - Sr.transition = {}; + function mg(c, h) { + var E = ei; + ei = E !== 0 && 4 > E ? E : 4, c(!0); + var P = _r.transition; + _r.transition = {}; try { - c(!1), p(); + c(!1), h(); } finally { - ri = E, Sr.transition = O; + ei = E, _r.transition = P; } } - function ii() { - return Fs().memoizedState; + function ti() { + return ks().memoizedState; } - function Nu(c, p, E) { - var O = io(c); - if (E = { lane: O, action: E, hasEagerState: !1, eagerState: null, next: null }, dc(c)) - Pf(p, E); - else if (E = Wo(c, p, E, O), E !== null) { - var G = ha(); - Sl(E, c, O, G), Vp(E, p, O); + function ku(c, h, E) { + var P = ao(c); + if (E = { lane: P, action: E, hasEagerState: !1, eagerState: null, next: null }, dc(c)) + Uf(h, E); + else if (E = Wo(c, h, E, P), E !== null) { + var V = ha(); + Sl(E, c, P, V), jp(E, h, P); } } - function Lf(c, p, E) { - var O = io(c), G = { lane: O, action: E, hasEagerState: !1, eagerState: null, next: null }; + function Of(c, h, E) { + var P = ao(c), V = { lane: P, action: E, hasEagerState: !1, eagerState: null, next: null }; if (dc(c)) - Pf(p, G); + Uf(h, V); else { - var Q = c.alternate; - if (c.lanes === 0 && (Q === null || Q.lanes === 0) && (Q = p.lastRenderedReducer, Q !== null)) + var q = c.alternate; + if (c.lanes === 0 && (q === null || q.lanes === 0) && (q = h.lastRenderedReducer, q !== null)) try { - var ue = p.lastRenderedState, Le = Q(ue, E); - if (G.hasEagerState = !0, G.eagerState = Le, pt(Le, ue)) { - var Ve = p.interleaved; - Ve === null ? (G.next = G, ep(p)) : (G.next = Ve.next, Ve.next = G), p.interleaved = G; + var le = h.lastRenderedState, Oe = q(le, E); + if (V.hasEagerState = !0, V.eagerState = Oe, vt(Oe, le)) { + var Ge = h.interleaved; + Ge === null ? (V.next = V, rp(h)) : (V.next = Ge.next, Ge.next = V), h.interleaved = V; return; } } catch { } finally { } - E = Wo(c, p, G, O), E !== null && (G = ha(), Sl(E, c, O, G), Vp(E, p, O)); + E = Wo(c, h, V, P), E !== null && (V = ha(), Sl(E, c, P, V), jp(E, h, P)); } } function dc(c) { - var p = c.alternate; - return c === Ai || p !== null && p === Ai; + var h = c.alternate; + return c === Ai || h !== null && h === Ai; } - function Pf(c, p) { - Fc = lr = !0; + function Uf(c, h) { + kc = lr = !0; var E = c.pending; - E === null ? p.next = p : (p.next = E.next, E.next = p), c.pending = p; + E === null ? h.next = h : (h.next = E.next, E.next = h), c.pending = h; } - function Vp(c, p, E) { + function jp(c, h, E) { if ((E & 4194240) !== 0) { - var O = p.lanes; - O &= c.pendingLanes, E |= O, p.lanes = E, Dl(c, E); + var P = h.lanes; + P &= c.pendingLanes, E |= P, h.lanes = E, Pl(c, E); } } - var y = { readContext: Qi, useCallback: Di, useContext: Di, useEffect: Di, useImperativeHandle: Di, useInsertionEffect: Di, useLayoutEffect: Di, useMemo: Di, useReducer: Di, useRef: Di, useState: Di, useDebugValue: Di, useDeferredValue: Di, useTransition: Di, useMutableSource: Di, useSyncExternalStore: Di, useId: Di, unstable_isNewReconciler: !1 }, x = { readContext: Qi, useCallback: function(c, p) { - return ia().memoizedState = [c, p === void 0 ? null : p], c; - }, useContext: Qi, useEffect: Mo, useImperativeHandle: function(c, p, E) { - return E = E != null ? E.concat([c]) : null, pu( + var y = { readContext: Qi, useCallback: Di, useContext: Di, useEffect: Di, useImperativeHandle: Di, useInsertionEffect: Di, useLayoutEffect: Di, useMemo: Di, useReducer: Di, useRef: Di, useState: Di, useDebugValue: Di, useDeferredValue: Di, useTransition: Di, useMutableSource: Di, useSyncExternalStore: Di, useId: Di, unstable_isNewReconciler: !1 }, x = { readContext: Qi, useCallback: function(c, h) { + return aa().memoizedState = [c, h === void 0 ? null : h], c; + }, useContext: Qi, useEffect: Mo, useImperativeHandle: function(c, h, E) { + return E = E != null ? E.concat([c]) : null, vu( 4194308, 4, - fd.bind(null, p, c), + hd.bind(null, h, c), E ); - }, useLayoutEffect: function(c, p) { - return pu(4194308, 4, c, p); - }, useInsertionEffect: function(c, p) { - return pu(4, 2, c, p); - }, useMemo: function(c, p) { - var E = ia(); - return p = p === void 0 ? null : p, c = c(), E.memoizedState = [c, p], c; - }, useReducer: function(c, p, E) { - var O = ia(); - return p = E !== void 0 ? E(p) : p, O.memoizedState = O.baseState = p, c = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: c, lastRenderedState: p }, O.queue = c, c = c.dispatch = Nu.bind(null, Ai, c), [O.memoizedState, c]; + }, useLayoutEffect: function(c, h) { + return vu(4194308, 4, c, h); + }, useInsertionEffect: function(c, h) { + return vu(4, 2, c, h); + }, useMemo: function(c, h) { + var E = aa(); + return h = h === void 0 ? null : h, c = c(), E.memoizedState = [c, h], c; + }, useReducer: function(c, h, E) { + var P = aa(); + return h = E !== void 0 ? E(h) : h, P.memoizedState = P.baseState = h, c = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: c, lastRenderedState: h }, P.queue = c, c = c.dispatch = ku.bind(null, Ai, c), [P.memoizedState, c]; }, useRef: function(c) { - var p = ia(); - return c = { current: c }, p.memoizedState = c; - }, useState: Ic, useDebugValue: dd, useDeferredValue: function(c) { - return ia().memoizedState = c; + var h = aa(); + return c = { current: c }, h.memoizedState = c; + }, useState: Bc, useDebugValue: pd, useDeferredValue: function(c) { + return aa().memoizedState = c; }, useTransition: function() { - var c = Ic(!1), p = c[0]; - return c = dg.bind(null, c[1]), ia().memoizedState = c, [p, c]; + var c = Bc(!1), h = c[0]; + return c = mg.bind(null, c[1]), aa().memoizedState = c, [h, c]; }, useMutableSource: function() { - }, useSyncExternalStore: function(c, p, E) { - var O = Ai, G = ia(); + }, useSyncExternalStore: function(c, h, E) { + var P = Ai, V = aa(); if (ga) { if (E === void 0) throw Error(t(407)); E = E(); } else { - if (E = p(), ea === null) + if (E = h(), ea === null) throw Error(t(349)); - (Eo & 30) !== 0 || kc(O, p, E); + (Eo & 30) !== 0 || Ic(P, h, E); } - G.memoizedState = E; - var Q = { value: E, getSnapshot: p }; - return G.queue = Q, Mo(wi.bind( + V.memoizedState = E; + var q = { value: E, getSnapshot: h }; + return V.queue = q, Mo(bi.bind( null, - O, - Q, + P, + q, c - ), [c]), O.flags |= 2048, hu(9, Es.bind(null, O, Q, E, p), void 0, null), E; + ), [c]), P.flags |= 2048, mu(9, Ms.bind(null, P, q, E, h), void 0, null), E; }, useId: function() { - var c = ia(), p = ea.identifierPrefix; + var c = aa(), h = ea.identifierPrefix; if (ga) { - var E = kl, O = pn; - E = (O & ~(1 << 32 - Ea(O) - 1)).toString(32) + E, p = ":" + p + "R" + E, E = Ha++, 0 < E && (p += "H" + E.toString(32)), p += ":"; + var E = Bl, P = vn; + E = (P & ~(1 << 32 - Ea(P) - 1)).toString(32) + E, h = ":" + h + "R" + E, E = Ha++, 0 < E && (h += "H" + E.toString(32)), h += ":"; } else - E = Yo++, p = ":" + p + "r" + E.toString(32) + ":"; - return c.memoizedState = p; + E = Yo++, h = ":" + h + "r" + E.toString(32) + ":"; + return c.memoizedState = h; }, unstable_isNewReconciler: !1 }, L = { readContext: Qi, - useCallback: Ms, + useCallback: Ts, useContext: Qi, - useEffect: Bc, - useImperativeHandle: mu, - useInsertionEffect: cd, + useEffect: Hc, + useImperativeHandle: gu, + useInsertionEffect: dd, useLayoutEffect: Xo, - useMemo: ks, - useReducer: Zd, - useRef: Df, + useMemo: Is, + useReducer: Jd, + useRef: Pf, useState: function() { - return Zd(Af); + return Jd(Lf); }, - useDebugValue: dd, + useDebugValue: pd, useDeferredValue: function(c) { - var p = Fs(); - return vu(p, Ht.memoizedState, c); + var h = ks(); + return yu(h, Ht.memoizedState, c); }, useTransition: function() { - var c = Zd(Af)[0], p = Fs().memoizedState; - return [c, p]; + var c = Jd(Lf)[0], h = ks().memoizedState; + return [c, h]; }, - useMutableSource: Yl, - useSyncExternalStore: tp, - useId: ii, + useMutableSource: ql, + useSyncExternalStore: ip, + useId: ti, unstable_isNewReconciler: !1 - }, H = { readContext: Qi, useCallback: Ms, useContext: Qi, useEffect: Bc, useImperativeHandle: mu, useInsertionEffect: cd, useLayoutEffect: Xo, useMemo: ks, useReducer: eo, useRef: Df, useState: function() { - return eo(Af); - }, useDebugValue: dd, useDeferredValue: function(c) { - var p = Fs(); - return Ht === null ? p.memoizedState = c : vu(p, Ht.memoizedState, c); + }, k = { readContext: Qi, useCallback: Ts, useContext: Qi, useEffect: Hc, useImperativeHandle: gu, useInsertionEffect: dd, useLayoutEffect: Xo, useMemo: Is, useReducer: to, useRef: Pf, useState: function() { + return to(Lf); + }, useDebugValue: pd, useDeferredValue: function(c) { + var h = ks(); + return Ht === null ? h.memoizedState = c : yu(h, Ht.memoizedState, c); }, useTransition: function() { - var c = eo(Af)[0], p = Fs().memoizedState; - return [c, p]; - }, useMutableSource: Yl, useSyncExternalStore: tp, useId: ii, unstable_isNewReconciler: !1 }; - function q(c, p) { + var c = to(Lf)[0], h = ks().memoizedState; + return [c, h]; + }, useMutableSource: ql, useSyncExternalStore: ip, useId: ti, unstable_isNewReconciler: !1 }; + function X(c, h) { try { - var E = "", O = p; + var E = "", P = h; do - E += st(O), O = O.return; - while (O); - var G = E; - } catch (Q) { - G = ` -Error generating stack: ` + Q.message + ` -` + Q.stack; + E += rt(P), P = P.return; + while (P); + var V = E; + } catch (q) { + V = ` +Error generating stack: ` + q.message + ` +` + q.stack; } - return { value: c, source: p, stack: G, digest: null }; + return { value: c, source: h, stack: V, digest: null }; } - function ee(c, p, E) { - return { value: c, source: null, stack: E != null ? E : null, digest: p != null ? p : null }; + function $(c, h, E) { + return { value: c, source: null, stack: E != null ? E : null, digest: h != null ? h : null }; } - function Ae(c, p) { + function Ae(c, h) { try { - console.error(p.value); + console.error(h.value); } catch (E) { setTimeout(function() { throw E; }); } } - var Ke = typeof WeakMap == "function" ? WeakMap : Map; - function kt(c, p, E) { + var $e = typeof WeakMap == "function" ? WeakMap : Map; + function kt(c, h, E) { E = ns(-1, E), E.tag = 3, E.payload = { element: null }; - var O = p.value; + var P = h.value; return E.callback = function() { - gg || (gg = !0, qp = O), Ae(c, p); + _g || (_g = !0, Jp = P), Ae(c, h); }, E; } - function cn(c, p, E) { + function hn(c, h, E) { E = ns(-1, E), E.tag = 3; - var O = c.type.getDerivedStateFromError; - if (typeof O == "function") { - var G = p.value; + var P = c.type.getDerivedStateFromError; + if (typeof P == "function") { + var V = h.value; E.payload = function() { - return O(G); + return P(V); }, E.callback = function() { - Ae(c, p); + Ae(c, h); }; } - var Q = c.stateNode; - return Q !== null && typeof Q.componentDidCatch == "function" && (E.callback = function() { - Ae(c, p), typeof O != "function" && (Kd === null ? Kd = /* @__PURE__ */ new Set([this]) : Kd.add(this)); - var ue = p.stack; - this.componentDidCatch(p.value, { componentStack: ue !== null ? ue : "" }); + var q = c.stateNode; + return q !== null && typeof q.componentDidCatch == "function" && (E.callback = function() { + Ae(c, h), typeof P != "function" && ($d === null ? $d = /* @__PURE__ */ new Set([this]) : $d.add(this)); + var le = h.stack; + this.componentDidCatch(h.value, { componentStack: le !== null ? le : "" }); }), E; } - function bn(c, p, E) { - var O = c.pingCache; - if (O === null) { - O = c.pingCache = new Ke(); - var G = /* @__PURE__ */ new Set(); - O.set(p, G); + function wn(c, h, E) { + var P = c.pingCache; + if (P === null) { + P = c.pingCache = new $e(); + var V = /* @__PURE__ */ new Set(); + P.set(h, V); } else - G = O.get(p), G === void 0 && (G = /* @__PURE__ */ new Set(), O.set(p, G)); - G.has(E) || (G.add(E), c = Ty.bind(null, c, p, E), p.then(c, c)); + V = P.get(h), V === void 0 && (V = /* @__PURE__ */ new Set(), P.set(h, V)); + V.has(E) || (V.add(E), c = Cy.bind(null, c, h, E), h.then(c, c)); } - function wr(c) { + function br(c) { do { - var p; - if ((p = c.tag === 13) && (p = c.memoizedState, p = p !== null ? p.dehydrated !== null : !0), p) + var h; + if ((h = c.tag === 13) && (h = c.memoizedState, h = h !== null ? h.dehydrated !== null : !0), h) return c; c = c.return; } while (c !== null); return null; } - function ur(c, p, E, O, G) { - return (c.mode & 1) === 0 ? (c === p ? c.flags |= 65536 : (c.flags |= 128, E.flags |= 131072, E.flags &= -52805, E.tag === 1 && (E.alternate === null ? E.tag = 17 : (p = ns(-1, 1), p.tag = 2, wf(E, p, 1))), E.lanes |= 1), c) : (c.flags |= 65536, c.lanes = G, c); + function ur(c, h, E, P, V) { + return (c.mode & 1) === 0 ? (c === h ? c.flags |= 65536 : (c.flags |= 128, E.flags |= 131072, E.flags &= -52805, E.tag === 1 && (E.alternate === null ? E.tag = 17 : (h = ns(-1, 1), h.tag = 2, Mf(E, h, 1))), E.lanes |= 1), c) : (c.flags |= 65536, c.lanes = V, c); } - var _a = I.ReactCurrentOwner, Tn = !1; - function Li(c, p, E, O) { - p.child = c === null ? Qd(p, null, E, O) : Ef(p, c.child, E, O); + var Sa = B.ReactCurrentOwner, Tn = !1; + function Li(c, h, E, P) { + h.child = c === null ? Zd(h, null, E, P) : Tf(h, c.child, E, P); } - function ms(c, p, E, O, G) { + function vs(c, h, E, P, V) { E = E.render; - var Q = p.ref; - return wn(p, G), O = Cf(c, p, E, O, Q, G), E = Rf(), c !== null && !Tn ? (p.updateQueue = c.updateQueue, p.flags &= -2053, c.lanes &= ~G, Qo(c, p, G)) : (ga && E && wh(p), p.flags |= 1, Li(c, p, O, G), p.child); + var q = h.ref; + return bn(h, V), P = Af(c, h, E, P, q, V), E = Df(), c !== null && !Tn ? (h.updateQueue = c.updateQueue, h.flags &= -2053, c.lanes &= ~V, Qo(c, h, V)) : (ga && E && Eh(h), h.flags |= 1, Li(c, h, P, V), h.child); } - function dt(c, p, E, O, G) { + function pt(c, h, E, P, V) { if (c === null) { - var Q = E.type; - return typeof Q == "function" && !Av(Q) && Q.defaultProps === void 0 && E.compare === null && E.defaultProps === void 0 ? (p.tag = 15, p.type = Q, Qe(c, p, Q, O, G)) : (c = Lh(E.type, null, O, p, p.mode, G), c.ref = p.ref, c.return = p, p.child = c); + var q = E.type; + return typeof q == "function" && !Pv(q) && q.defaultProps === void 0 && E.compare === null && E.defaultProps === void 0 ? (h.tag = 15, h.type = q, Ze(c, h, q, P, V)) : (c = Ph(E.type, null, P, h, h.mode, V), c.ref = h.ref, c.return = h, h.child = c); } - if (Q = c.child, (c.lanes & G) === 0) { - var ue = Q.memoizedProps; - if (E = E.compare, E = E !== null ? E : Mn, E(ue, O) && c.ref === p.ref) - return Qo(c, p, G); + if (q = c.child, (c.lanes & V) === 0) { + var le = q.memoizedProps; + if (E = E.compare, E = E !== null ? E : Mn, E(le, P) && c.ref === h.ref) + return Qo(c, h, V); } - return p.flags |= 1, c = ku(Q, O), c.ref = p.ref, c.return = p, p.child = c; + return h.flags |= 1, c = Bu(q, P), c.ref = h.ref, c.return = h, h.child = c; } - function Qe(c, p, E, O, G) { + function Ze(c, h, E, P, V) { if (c !== null) { - var Q = c.memoizedProps; - if (Mn(Q, O) && c.ref === p.ref) - if (Tn = !1, p.pendingProps = O = Q, (c.lanes & G) !== 0) + var q = c.memoizedProps; + if (Mn(q, P) && c.ref === h.ref) + if (Tn = !1, h.pendingProps = P = q, (c.lanes & V) !== 0) (c.flags & 131072) !== 0 && (Tn = !0); else - return p.lanes = c.lanes, Qo(c, p, G); + return h.lanes = c.lanes, Qo(c, h, V); } - return Wn(c, p, E, O, G); + return jn(c, h, E, P, V); } - function At(c, p, E) { - var O = p.pendingProps, G = O.children, Q = c !== null ? c.memoizedState : null; - if (O.mode === "hidden") - if ((p.mode & 1) === 0) - p.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, zi(Hm, Hc), Hc |= E; + function Lt(c, h, E) { + var P = h.pendingProps, V = P.children, q = c !== null ? c.memoizedState : null; + if (P.mode === "hidden") + if ((h.mode & 1) === 0) + h.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, zi(Wm, Vc), Vc |= E; else { if ((E & 1073741824) === 0) - return c = Q !== null ? Q.baseLanes | E : E, p.lanes = p.childLanes = 1073741824, p.memoizedState = { baseLanes: c, cachePool: null, transitions: null }, p.updateQueue = null, zi(Hm, Hc), Hc |= c, null; - p.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, O = Q !== null ? Q.baseLanes : E, zi(Hm, Hc), Hc |= O; + return c = q !== null ? q.baseLanes | E : E, h.lanes = h.childLanes = 1073741824, h.memoizedState = { baseLanes: c, cachePool: null, transitions: null }, h.updateQueue = null, zi(Wm, Vc), Vc |= c, null; + h.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, P = q !== null ? q.baseLanes : E, zi(Wm, Vc), Vc |= P; } else - Q !== null ? (O = Q.baseLanes | E, p.memoizedState = null) : O = E, zi(Hm, Hc), Hc |= O; - return Li(c, p, G, E), p.child; + q !== null ? (P = q.baseLanes | E, h.memoizedState = null) : P = E, zi(Wm, Vc), Vc |= P; + return Li(c, h, V, E), h.child; } - function qt(c, p) { - var E = p.ref; - (c === null && E !== null || c !== null && c.ref !== E) && (p.flags |= 512, p.flags |= 2097152); + function Qt(c, h) { + var E = h.ref; + (c === null && E !== null || c !== null && c.ref !== E) && (h.flags |= 512, h.flags |= 2097152); } - function Wn(c, p, E, O, G) { - var Q = Ia(E) ? es : Rr.current; - return Q = Nl(p, Q), wn(p, G), E = Cf(c, p, E, O, Q, G), O = Rf(), c !== null && !Tn ? (p.updateQueue = c.updateQueue, p.flags &= -2053, c.lanes &= ~G, Qo(c, p, G)) : (ga && O && wh(p), p.flags |= 1, Li(c, p, E, G), p.child); + function jn(c, h, E, P, V) { + var q = Ia(E) ? es : Rr.current; + return q = kl(h, q), bn(h, V), E = Af(c, h, E, P, q, V), P = Df(), c !== null && !Tn ? (h.updateQueue = c.updateQueue, h.flags &= -2053, c.lanes &= ~V, Qo(c, h, V)) : (ga && P && Eh(h), h.flags |= 1, Li(c, h, E, V), h.child); } - function Xr(c, p, E, O, G) { + function Wr(c, h, E, P, V) { if (Ia(E)) { - var Q = !0; - Vo(p); + var q = !0; + Vo(h); } else - Q = !1; - if (wn(p, G), p.stateNode === null) - qo(c, p), Xd(p, E, O), cc(p, E, O, G), O = !0; + q = !1; + if (bn(h, V), h.stateNode === null) + qo(c, h), qd(h, E, P), cc(h, E, P, V), P = !0; else if (c === null) { - var ue = p.stateNode, Le = p.memoizedProps; - ue.props = Le; - var Ve = ue.context, Ct = E.contextType; - typeof Ct == "object" && Ct !== null ? Ct = Qi(Ct) : (Ct = Ia(E) ? es : Rr.current, Ct = Nl(p, Ct)); - var un = E.getDerivedStateFromProps, ln = typeof un == "function" || typeof ue.getSnapshotBeforeUpdate == "function"; - ln || typeof ue.UNSAFE_componentWillReceiveProps != "function" && typeof ue.componentWillReceiveProps != "function" || (Le !== O || Ve !== Ct) && zc(p, ue, O, Ct), ts = !1; - var nn = p.memoizedState; - ue.state = nn, Ra(p, O, ue, G), Ve = p.memoizedState, Le !== O || nn !== Ve || hs.current || ts ? (typeof un == "function" && (Hl(p, E, un, O), Ve = p.memoizedState), (Le = ts || ws(p, E, Le, O, nn, Ve, Ct)) ? (ln || typeof ue.UNSAFE_componentWillMount != "function" && typeof ue.componentWillMount != "function" || (typeof ue.componentWillMount == "function" && ue.componentWillMount(), typeof ue.UNSAFE_componentWillMount == "function" && ue.UNSAFE_componentWillMount()), typeof ue.componentDidMount == "function" && (p.flags |= 4194308)) : (typeof ue.componentDidMount == "function" && (p.flags |= 4194308), p.memoizedProps = O, p.memoizedState = Ve), ue.props = O, ue.state = Ve, ue.context = Ct, O = Le) : (typeof ue.componentDidMount == "function" && (p.flags |= 4194308), O = !1); + var le = h.stateNode, Oe = h.memoizedProps; + le.props = Oe; + var Ge = le.context, Dt = E.contextType; + typeof Dt == "object" && Dt !== null ? Dt = Qi(Dt) : (Dt = Ia(E) ? es : Rr.current, Dt = kl(h, Dt)); + var fn = E.getDerivedStateFromProps, un = typeof fn == "function" || typeof le.getSnapshotBeforeUpdate == "function"; + un || typeof le.UNSAFE_componentWillReceiveProps != "function" && typeof le.componentWillReceiveProps != "function" || (Oe !== P || Ge !== Dt) && Nc(h, le, P, Dt), ts = !1; + var rn = h.memoizedState; + le.state = rn, Ra(h, P, le, V), Ge = h.memoizedState, Oe !== P || rn !== Ge || ps.current || ts ? (typeof fn == "function" && (Gl(h, E, fn, P), Ge = h.memoizedState), (Oe = ts || Es(h, E, Oe, P, rn, Ge, Dt)) ? (un || typeof le.UNSAFE_componentWillMount != "function" && typeof le.componentWillMount != "function" || (typeof le.componentWillMount == "function" && le.componentWillMount(), typeof le.UNSAFE_componentWillMount == "function" && le.UNSAFE_componentWillMount()), typeof le.componentDidMount == "function" && (h.flags |= 4194308)) : (typeof le.componentDidMount == "function" && (h.flags |= 4194308), h.memoizedProps = P, h.memoizedState = Ge), le.props = P, le.state = Ge, le.context = Dt, P = Oe) : (typeof le.componentDidMount == "function" && (h.flags |= 4194308), P = !1); } else { - ue = p.stateNode, xa(c, p), Le = p.memoizedProps, Ct = p.type === p.elementType ? Le : du(p.type, Le), ue.props = Ct, ln = p.pendingProps, nn = ue.context, Ve = E.contextType, typeof Ve == "object" && Ve !== null ? Ve = Qi(Ve) : (Ve = Ia(E) ? es : Rr.current, Ve = Nl(p, Ve)); - var kn = E.getDerivedStateFromProps; - (un = typeof kn == "function" || typeof ue.getSnapshotBeforeUpdate == "function") || typeof ue.UNSAFE_componentWillReceiveProps != "function" && typeof ue.componentWillReceiveProps != "function" || (Le !== ln || nn !== Ve) && zc(p, ue, O, Ve), ts = !1, nn = p.memoizedState, ue.state = nn, Ra(p, O, ue, G); - var qn = p.memoizedState; - Le !== ln || nn !== qn || hs.current || ts ? (typeof kn == "function" && (Hl(p, E, kn, O), qn = p.memoizedState), (Ct = ts || ws(p, E, Ct, O, nn, qn, Ve) || !1) ? (un || typeof ue.UNSAFE_componentWillUpdate != "function" && typeof ue.componentWillUpdate != "function" || (typeof ue.componentWillUpdate == "function" && ue.componentWillUpdate(O, qn, Ve), typeof ue.UNSAFE_componentWillUpdate == "function" && ue.UNSAFE_componentWillUpdate(O, qn, Ve)), typeof ue.componentDidUpdate == "function" && (p.flags |= 4), typeof ue.getSnapshotBeforeUpdate == "function" && (p.flags |= 1024)) : (typeof ue.componentDidUpdate != "function" || Le === c.memoizedProps && nn === c.memoizedState || (p.flags |= 4), typeof ue.getSnapshotBeforeUpdate != "function" || Le === c.memoizedProps && nn === c.memoizedState || (p.flags |= 1024), p.memoizedProps = O, p.memoizedState = qn), ue.props = O, ue.state = qn, ue.context = Ve, O = Ct) : (typeof ue.componentDidUpdate != "function" || Le === c.memoizedProps && nn === c.memoizedState || (p.flags |= 4), typeof ue.getSnapshotBeforeUpdate != "function" || Le === c.memoizedProps && nn === c.memoizedState || (p.flags |= 1024), O = !1); - } - return Er(c, p, E, O, Q, G); - } - function Er(c, p, E, O, G, Q) { - qt(c, p); - var ue = (p.flags & 128) !== 0; - if (!O && !ue) - return G && Sv(p, E, !1), Qo(c, p, Q); - O = p.stateNode, _a.current = p; - var Le = ue && typeof E.getDerivedStateFromError != "function" ? null : O.render(); - return p.flags |= 1, c !== null && ue ? (p.child = Ef(p, c.child, null, Q), p.child = Ef(p, null, Le, Q)) : Li(c, p, Le, Q), p.memoizedState = O.state, G && Sv(p, E, !0), p.child; + le = h.stateNode, xa(c, h), Oe = h.memoizedProps, Dt = h.type === h.elementType ? Oe : pu(h.type, Oe), le.props = Dt, un = h.pendingProps, rn = le.context, Ge = E.contextType, typeof Ge == "object" && Ge !== null ? Ge = Qi(Ge) : (Ge = Ia(E) ? es : Rr.current, Ge = kl(h, Ge)); + var Hn = E.getDerivedStateFromProps; + (fn = typeof Hn == "function" || typeof le.getSnapshotBeforeUpdate == "function") || typeof le.UNSAFE_componentWillReceiveProps != "function" && typeof le.componentWillReceiveProps != "function" || (Oe !== un || rn !== Ge) && Nc(h, le, P, Ge), ts = !1, rn = h.memoizedState, le.state = rn, Ra(h, P, le, V); + var Qn = h.memoizedState; + Oe !== un || rn !== Qn || ps.current || ts ? (typeof Hn == "function" && (Gl(h, E, Hn, P), Qn = h.memoizedState), (Dt = ts || Es(h, E, Dt, P, rn, Qn, Ge) || !1) ? (fn || typeof le.UNSAFE_componentWillUpdate != "function" && typeof le.componentWillUpdate != "function" || (typeof le.componentWillUpdate == "function" && le.componentWillUpdate(P, Qn, Ge), typeof le.UNSAFE_componentWillUpdate == "function" && le.UNSAFE_componentWillUpdate(P, Qn, Ge)), typeof le.componentDidUpdate == "function" && (h.flags |= 4), typeof le.getSnapshotBeforeUpdate == "function" && (h.flags |= 1024)) : (typeof le.componentDidUpdate != "function" || Oe === c.memoizedProps && rn === c.memoizedState || (h.flags |= 4), typeof le.getSnapshotBeforeUpdate != "function" || Oe === c.memoizedProps && rn === c.memoizedState || (h.flags |= 1024), h.memoizedProps = P, h.memoizedState = Qn), le.props = P, le.state = Qn, le.context = Ge, P = Dt) : (typeof le.componentDidUpdate != "function" || Oe === c.memoizedProps && rn === c.memoizedState || (h.flags |= 4), typeof le.getSnapshotBeforeUpdate != "function" || Oe === c.memoizedProps && rn === c.memoizedState || (h.flags |= 1024), P = !1); + } + return Er(c, h, E, P, q, V); + } + function Er(c, h, E, P, V, q) { + Qt(c, h); + var le = (h.flags & 128) !== 0; + if (!P && !le) + return V && bv(h, E, !1), Qo(c, h, q); + P = h.stateNode, Sa.current = h; + var Oe = le && typeof E.getDerivedStateFromError != "function" ? null : P.render(); + return h.flags |= 1, c !== null && le ? (h.child = Tf(h, c.child, null, q), h.child = Tf(h, null, Oe, q)) : Li(c, h, Oe, q), h.memoizedState = P.state, V && bv(h, E, !0), h.child; } function Ar(c) { - var p = c.stateNode; - p.pendingContext ? _f(c, p.pendingContext, p.pendingContext !== p.context) : p.context && _f(c, p.context, !1), Eh(c, p.containerInfo); + var h = c.stateNode; + h.pendingContext ? bf(c, h.pendingContext, h.pendingContext !== h.context) : h.context && bf(c, h.context, !1), Mh(c, h.containerInfo); } - function Va(c, p, E, O, G) { - return fa(), Uu(G), p.flags |= 256, Li(c, p, E, O), p.child; + function Va(c, h, E, P, V) { + return fa(), Nu(V), h.flags |= 256, Li(c, h, E, P), h.child; } - var $r = { dehydrated: null, treeContext: null, retryLane: 0 }; + var Zr = { dehydrated: null, treeContext: null, retryLane: 0 }; function hc(c) { return { baseLanes: c, cachePool: null, transitions: null }; } - function hd(c, p, E) { - var O = p.pendingProps, G = fr.current, Q = !1, ue = (p.flags & 128) !== 0, Le; - if ((Le = ue) || (Le = c !== null && c.memoizedState === null ? !1 : (G & 2) !== 0), Le ? (Q = !0, p.flags &= -129) : (c === null || c.memoizedState !== null) && (G |= 1), zi(fr, G & 1), c === null) - return Go(p), c = p.memoizedState, c !== null && (c = c.dehydrated, c !== null) ? ((p.mode & 1) === 0 ? p.lanes = 1 : c.data === "$!" ? p.lanes = 8 : p.lanes = 1073741824, null) : (ue = O.children, c = O.fallback, Q ? (O = p.mode, Q = p.child, ue = { mode: "hidden", children: ue }, (O & 1) === 0 && Q !== null ? (Q.childLanes = 0, Q.pendingProps = ue) : Q = mp(ue, O, 0, null), c = Jp(c, O, E, null), Q.return = p, c.return = p, Q.sibling = c, p.child = Q, p.child.memoizedState = hc(E), p.memoizedState = $r, c) : np(p, ue)); - if (G = c.memoizedState, G !== null && (Le = G.dehydrated, Le !== null)) - return Gp(c, p, ue, O, Le, G, E); - if (Q) { - Q = O.fallback, ue = p.mode, G = c.child, Le = G.sibling; - var Ve = { mode: "hidden", children: O.children }; - return (ue & 1) === 0 && p.child !== G ? (O = p.child, O.childLanes = 0, O.pendingProps = Ve, p.deletions = null) : (O = ku(G, Ve), O.subtreeFlags = G.subtreeFlags & 14680064), Le !== null ? Q = ku(Le, Q) : (Q = Jp(Q, ue, E, null), Q.flags |= 2), Q.return = p, O.return = p, O.sibling = Q, p.child = O, O = Q, Q = p.child, ue = c.child.memoizedState, ue = ue === null ? hc(E) : { baseLanes: ue.baseLanes | E, cachePool: null, transitions: ue.transitions }, Q.memoizedState = ue, Q.childLanes = c.childLanes & ~E, p.memoizedState = $r, O; + function md(c, h, E) { + var P = h.pendingProps, V = fr.current, q = !1, le = (h.flags & 128) !== 0, Oe; + if ((Oe = le) || (Oe = c !== null && c.memoizedState === null ? !1 : (V & 2) !== 0), Oe ? (q = !0, h.flags &= -129) : (c === null || c.memoizedState !== null) && (V |= 1), zi(fr, V & 1), c === null) + return Go(h), c = h.memoizedState, c !== null && (c = c.dehydrated, c !== null) ? ((h.mode & 1) === 0 ? h.lanes = 1 : c.data === "$!" ? h.lanes = 8 : h.lanes = 1073741824, null) : (le = P.children, c = P.fallback, q ? (P = h.mode, q = h.child, le = { mode: "hidden", children: le }, (P & 1) === 0 && q !== null ? (q.childLanes = 0, q.pendingProps = le) : q = yp(le, P, 0, null), c = em(c, P, E, null), q.return = h, c.return = h, q.sibling = c, h.child = q, h.child.memoizedState = hc(E), h.memoizedState = Zr, c) : ap(h, le)); + if (V = c.memoizedState, V !== null && (Oe = V.dehydrated, Oe !== null)) + return Yp(c, h, le, P, Oe, V, E); + if (q) { + q = P.fallback, le = h.mode, V = c.child, Oe = V.sibling; + var Ge = { mode: "hidden", children: P.children }; + return (le & 1) === 0 && h.child !== V ? (P = h.child, P.childLanes = 0, P.pendingProps = Ge, h.deletions = null) : (P = Bu(V, Ge), P.subtreeFlags = V.subtreeFlags & 14680064), Oe !== null ? q = Bu(Oe, q) : (q = em(q, le, E, null), q.flags |= 2), q.return = h, P.return = h, P.sibling = q, h.child = P, P = q, q = h.child, le = c.child.memoizedState, le = le === null ? hc(E) : { baseLanes: le.baseLanes | E, cachePool: null, transitions: le.transitions }, q.memoizedState = le, q.childLanes = c.childLanes & ~E, h.memoizedState = Zr, P; } - return Q = c.child, c = Q.sibling, O = ku(Q, { mode: "visible", children: O.children }), (p.mode & 1) === 0 && (O.lanes = E), O.return = p, O.sibling = null, c !== null && (E = p.deletions, E === null ? (p.deletions = [c], p.flags |= 16) : E.push(c)), p.child = O, p.memoizedState = null, O; + return q = c.child, c = q.sibling, P = Bu(q, { mode: "visible", children: P.children }), (h.mode & 1) === 0 && (P.lanes = E), P.return = h, P.sibling = null, c !== null && (E = h.deletions, E === null ? (h.deletions = [c], h.flags |= 16) : E.push(c)), h.child = P, h.memoizedState = null, P; } - function np(c, p) { - return p = mp({ mode: "visible", children: p }, c.mode, 0, null), p.return = c, c.child = p; + function ap(c, h) { + return h = yp({ mode: "visible", children: h }, c.mode, 0, null), h.return = c, c.child = h; } - function gr(c, p, E, O) { - return O !== null && Uu(O), Ef(p, c.child, null, E), c = np(p, p.pendingProps.children), c.flags |= 2, p.memoizedState = null, c; + function gr(c, h, E, P) { + return P !== null && Nu(P), Tf(h, c.child, null, E), c = ap(h, h.pendingProps.children), c.flags |= 2, h.memoizedState = null, c; } - function Gp(c, p, E, O, G, Q, ue) { + function Yp(c, h, E, P, V, q, le) { if (E) - return p.flags & 256 ? (p.flags &= -257, O = ee(Error(t(422))), gr(c, p, ue, O)) : p.memoizedState !== null ? (p.child = c.child, p.flags |= 128, null) : (Q = O.fallback, G = p.mode, O = mp({ mode: "visible", children: O.children }, G, 0, null), Q = Jp(Q, G, ue, null), Q.flags |= 2, O.return = p, Q.return = p, O.sibling = Q, p.child = O, (p.mode & 1) !== 0 && Ef(p, c.child, null, ue), p.child.memoizedState = hc(ue), p.memoizedState = $r, Q); - if ((p.mode & 1) === 0) - return gr(c, p, ue, null); - if (G.data === "$!") { - if (O = G.nextSibling && G.nextSibling.dataset, O) - var Le = O.dgst; - return O = Le, Q = Error(t(419)), O = ee(Q, O, void 0), gr(c, p, ue, O); - } - if (Le = (ue & c.childLanes) !== 0, Tn || Le) { - if (O = ea, O !== null) { - switch (ue & -ue) { + return h.flags & 256 ? (h.flags &= -257, P = $(Error(t(422))), gr(c, h, le, P)) : h.memoizedState !== null ? (h.child = c.child, h.flags |= 128, null) : (q = P.fallback, V = h.mode, P = yp({ mode: "visible", children: P.children }, V, 0, null), q = em(q, V, le, null), q.flags |= 2, P.return = h, q.return = h, P.sibling = q, h.child = P, (h.mode & 1) !== 0 && Tf(h, c.child, null, le), h.child.memoizedState = hc(le), h.memoizedState = Zr, q); + if ((h.mode & 1) === 0) + return gr(c, h, le, null); + if (V.data === "$!") { + if (P = V.nextSibling && V.nextSibling.dataset, P) + var Oe = P.dgst; + return P = Oe, q = Error(t(419)), P = $(q, P, void 0), gr(c, h, le, P); + } + if (Oe = (le & c.childLanes) !== 0, Tn || Oe) { + if (P = ea, P !== null) { + switch (le & -le) { case 4: - G = 2; + V = 2; break; case 16: - G = 8; + V = 8; break; case 64: case 128: @@ -39249,237 +39129,237 @@ Error generating stack: ` + Q.message + ` case 16777216: case 33554432: case 67108864: - G = 32; + V = 32; break; case 536870912: - G = 268435456; + V = 268435456; break; default: - G = 0; + V = 0; } - G = (G & (O.suspendedLanes | ue)) !== 0 ? 0 : G, G !== 0 && G !== Q.retryLane && (Q.retryLane = G, jo(c, G), Sl(O, c, G, -1)); + V = (V & (P.suspendedLanes | le)) !== 0 ? 0 : V, V !== 0 && V !== q.retryLane && (q.retryLane = V, jo(c, V), Sl(P, c, V, -1)); } - return Ey(), O = ee(Error(t(421))), gr(c, p, ue, O); + return My(), P = $(Error(t(421))), gr(c, h, le, P); } - return G.data === "$?" ? (p.flags |= 128, p.child = c.child, p = N0.bind(null, c), G._reactRetry = p, null) : (c = Q.treeContext, gl = zl(G.nextSibling), bs = p, ga = !0, fu = null, c !== null && (Ks[ps++] = pn, Ks[ps++] = kl, Ks[ps++] = Uc, pn = c.id, kl = c.overflow, Uc = p), p = np(p, O.children), p.flags |= 4096, p); + return V.data === "$?" ? (h.flags |= 128, h.child = c.child, h = N0.bind(null, c), V._reactRetry = h, null) : (c = q.treeContext, yl = Fl(V.nextSibling), bs = h, ga = !0, hu = null, c !== null && ($s[ms++] = vn, $s[ms++] = Bl, $s[ms++] = zc, vn = c.id, Bl = c.overflow, zc = h), h = ap(h, P.children), h.flags |= 4096, h); } - function km(c, p, E) { - c.lanes |= p; - var O = c.alternate; - O !== null && (O.lanes |= p), Hi(c.return, p, E); + function Hm(c, h, E) { + c.lanes |= h; + var P = c.alternate; + P !== null && (P.lanes |= h), Gi(c.return, h, E); } - function Of(c, p, E, O, G) { - var Q = c.memoizedState; - Q === null ? c.memoizedState = { isBackwards: p, rendering: null, renderingStartTime: 0, last: O, tail: E, tailMode: G } : (Q.isBackwards = p, Q.rendering = null, Q.renderingStartTime = 0, Q.last = O, Q.tail = E, Q.tailMode = G); + function zf(c, h, E, P, V) { + var q = c.memoizedState; + q === null ? c.memoizedState = { isBackwards: h, rendering: null, renderingStartTime: 0, last: P, tail: E, tailMode: V } : (q.isBackwards = h, q.rendering = null, q.renderingStartTime = 0, q.last = P, q.tail = E, q.tailMode = V); } - function hg(c, p, E) { - var O = p.pendingProps, G = O.revealOrder, Q = O.tail; - if (Li(c, p, O.children, E), O = fr.current, (O & 2) !== 0) - O = O & 1 | 2, p.flags |= 128; + function vg(c, h, E) { + var P = h.pendingProps, V = P.revealOrder, q = P.tail; + if (Li(c, h, P.children, E), P = fr.current, (P & 2) !== 0) + P = P & 1 | 2, h.flags |= 128; else { if (c !== null && (c.flags & 128) !== 0) e: - for (c = p.child; c !== null; ) { + for (c = h.child; c !== null; ) { if (c.tag === 13) - c.memoizedState !== null && km(c, E, p); + c.memoizedState !== null && Hm(c, E, h); else if (c.tag === 19) - km(c, E, p); + Hm(c, E, h); else if (c.child !== null) { c.child.return = c, c = c.child; continue; } - if (c === p) + if (c === h) break e; for (; c.sibling === null; ) { - if (c.return === null || c.return === p) + if (c.return === null || c.return === h) break e; c = c.return; } c.sibling.return = c.return, c = c.sibling; } - O &= 1; + P &= 1; } - if (zi(fr, O), (p.mode & 1) === 0) - p.memoizedState = null; + if (zi(fr, P), (h.mode & 1) === 0) + h.memoizedState = null; else - switch (G) { + switch (V) { case "forwards": - for (E = p.child, G = null; E !== null; ) - c = E.alternate, c !== null && fi(c) === null && (G = E), E = E.sibling; - E = G, E === null ? (G = p.child, p.child = null) : (G = E.sibling, E.sibling = null), Of(p, !1, G, E, Q); + for (E = h.child, V = null; E !== null; ) + c = E.alternate, c !== null && ui(c) === null && (V = E), E = E.sibling; + E = V, E === null ? (V = h.child, h.child = null) : (V = E.sibling, E.sibling = null), zf(h, !1, V, E, q); break; case "backwards": - for (E = null, G = p.child, p.child = null; G !== null; ) { - if (c = G.alternate, c !== null && fi(c) === null) { - p.child = G; + for (E = null, V = h.child, h.child = null; V !== null; ) { + if (c = V.alternate, c !== null && ui(c) === null) { + h.child = V; break; } - c = G.sibling, G.sibling = E, E = G, G = c; + c = V.sibling, V.sibling = E, E = V, V = c; } - Of(p, !0, E, null, Q); + zf(h, !0, E, null, q); break; case "together": - Of(p, !1, null, null, void 0); + zf(h, !1, null, null, void 0); break; default: - p.memoizedState = null; + h.memoizedState = null; } - return p.child; + return h.child; } - function qo(c, p) { - (p.mode & 1) === 0 && c !== null && (c.alternate = null, p.alternate = null, p.flags |= 2); + function qo(c, h) { + (h.mode & 1) === 0 && c !== null && (c.alternate = null, h.alternate = null, h.flags |= 2); } - function Qo(c, p, E) { - if (c !== null && (p.dependencies = c.dependencies), vd |= p.lanes, (E & p.childLanes) === 0) + function Qo(c, h, E) { + if (c !== null && (h.dependencies = c.dependencies), yd |= h.lanes, (E & h.childLanes) === 0) return null; - if (c !== null && p.child !== c.child) + if (c !== null && h.child !== c.child) throw Error(t(153)); - if (p.child !== null) { - for (c = p.child, E = ku(c, c.pendingProps), p.child = E, E.return = p; c.sibling !== null; ) - c = c.sibling, E = E.sibling = ku(c, c.pendingProps), E.return = p; + if (h.child !== null) { + for (c = h.child, E = Bu(c, c.pendingProps), h.child = E, E.return = h; c.sibling !== null; ) + c = c.sibling, E = E.sibling = Bu(c, c.pendingProps), E.return = h; E.sibling = null; } - return p.child; + return h.child; } - function rs(c, p, E) { - switch (p.tag) { + function rs(c, h, E) { + switch (h.tag) { case 3: - Ar(p), fa(); + Ar(h), fa(); break; case 5: - hr(p); + hr(h); break; case 1: - Ia(p.type) && Vo(p); + Ia(h.type) && Vo(h); break; case 4: - Eh(p, p.stateNode.containerInfo); + Mh(h, h.stateNode.containerInfo); break; case 10: - var O = p.type._context, G = p.memoizedProps.value; - zi(Bl, O._currentValue), O._currentValue = G; + var P = h.type._context, V = h.memoizedProps.value; + zi(Vl, P._currentValue), P._currentValue = V; break; case 13: - if (O = p.memoizedState, O !== null) - return O.dehydrated !== null ? (zi(fr, fr.current & 1), p.flags |= 128, null) : (E & p.child.childLanes) !== 0 ? hd(c, p, E) : (zi(fr, fr.current & 1), c = Qo(c, p, E), c !== null ? c.sibling : null); + if (P = h.memoizedState, P !== null) + return P.dehydrated !== null ? (zi(fr, fr.current & 1), h.flags |= 128, null) : (E & h.child.childLanes) !== 0 ? md(c, h, E) : (zi(fr, fr.current & 1), c = Qo(c, h, E), c !== null ? c.sibling : null); zi(fr, fr.current & 1); break; case 19: - if (O = (E & p.childLanes) !== 0, (c.flags & 128) !== 0) { - if (O) - return hg(c, p, E); - p.flags |= 128; + if (P = (E & h.childLanes) !== 0, (c.flags & 128) !== 0) { + if (P) + return vg(c, h, E); + h.flags |= 128; } - if (G = p.memoizedState, G !== null && (G.rendering = null, G.tail = null, G.lastEffect = null), zi(fr, fr.current), O) + if (V = h.memoizedState, V !== null && (V.rendering = null, V.tail = null, V.lastEffect = null), zi(fr, fr.current), P) break; return null; case 22: case 23: - return p.lanes = 0, At(c, p, E); + return h.lanes = 0, Lt(c, h, E); } - return Qo(c, p, E); + return Qo(c, h, E); } - var Wp, Mh, pc, no; - Wp = function(c, p) { - for (var E = p.child; E !== null; ) { + var Xp, Th, pc, ro; + Xp = function(c, h) { + for (var E = h.child; E !== null; ) { if (E.tag === 5 || E.tag === 6) c.appendChild(E.stateNode); else if (E.tag !== 4 && E.child !== null) { E.child.return = E, E = E.child; continue; } - if (E === p) + if (E === h) break; for (; E.sibling === null; ) { - if (E.return === null || E.return === p) + if (E.return === null || E.return === h) return; E = E.return; } E.sibling.return = E.return, E = E.sibling; } - }, Mh = function() { - }, pc = function(c, p, E, O) { - var G = c.memoizedProps; - if (G !== O) { - c = p.stateNode, Wl(Vl.current); - var Q = null; + }, Th = function() { + }, pc = function(c, h, E, P) { + var V = c.memoizedProps; + if (V !== P) { + c = h.stateNode, Yl(Wl.current); + var q = null; switch (E) { case "input": - G = mt(c, G), O = mt(c, O), Q = []; + V = dt(c, V), P = dt(c, P), q = []; break; case "select": - G = ce({}, G, { value: void 0 }), O = ce({}, O, { value: void 0 }), Q = []; + V = he({}, V, { value: void 0 }), P = he({}, P, { value: void 0 }), q = []; break; case "textarea": - G = Me(c, G), O = Me(c, O), Q = []; + V = we(c, V), P = we(c, P), q = []; break; default: - typeof G.onClick != "function" && typeof O.onClick == "function" && (c.onclick = bh); + typeof V.onClick != "function" && typeof P.onClick == "function" && (c.onclick = bh); } - hn(E, O); - var ue; + dn(E, P); + var le; E = null; - for (Ct in G) - if (!O.hasOwnProperty(Ct) && G.hasOwnProperty(Ct) && G[Ct] != null) - if (Ct === "style") { - var Le = G[Ct]; - for (ue in Le) - Le.hasOwnProperty(ue) && (E || (E = {}), E[ue] = ""); + for (Dt in V) + if (!P.hasOwnProperty(Dt) && V.hasOwnProperty(Dt) && V[Dt] != null) + if (Dt === "style") { + var Oe = V[Dt]; + for (le in Oe) + Oe.hasOwnProperty(le) && (E || (E = {}), E[le] = ""); } else - Ct !== "dangerouslySetInnerHTML" && Ct !== "children" && Ct !== "suppressContentEditableWarning" && Ct !== "suppressHydrationWarning" && Ct !== "autoFocus" && (i.hasOwnProperty(Ct) ? Q || (Q = []) : (Q = Q || []).push(Ct, null)); - for (Ct in O) { - var Ve = O[Ct]; - if (Le = G != null ? G[Ct] : void 0, O.hasOwnProperty(Ct) && Ve !== Le && (Ve != null || Le != null)) - if (Ct === "style") - if (Le) { - for (ue in Le) - !Le.hasOwnProperty(ue) || Ve && Ve.hasOwnProperty(ue) || (E || (E = {}), E[ue] = ""); - for (ue in Ve) - Ve.hasOwnProperty(ue) && Le[ue] !== Ve[ue] && (E || (E = {}), E[ue] = Ve[ue]); + Dt !== "dangerouslySetInnerHTML" && Dt !== "children" && Dt !== "suppressContentEditableWarning" && Dt !== "suppressHydrationWarning" && Dt !== "autoFocus" && (i.hasOwnProperty(Dt) ? q || (q = []) : (q = q || []).push(Dt, null)); + for (Dt in P) { + var Ge = P[Dt]; + if (Oe = V != null ? V[Dt] : void 0, P.hasOwnProperty(Dt) && Ge !== Oe && (Ge != null || Oe != null)) + if (Dt === "style") + if (Oe) { + for (le in Oe) + !Oe.hasOwnProperty(le) || Ge && Ge.hasOwnProperty(le) || (E || (E = {}), E[le] = ""); + for (le in Ge) + Ge.hasOwnProperty(le) && Oe[le] !== Ge[le] && (E || (E = {}), E[le] = Ge[le]); } else - E || (Q || (Q = []), Q.push( - Ct, + E || (q || (q = []), q.push( + Dt, E - )), E = Ve; + )), E = Ge; else - Ct === "dangerouslySetInnerHTML" ? (Ve = Ve ? Ve.__html : void 0, Le = Le ? Le.__html : void 0, Ve != null && Le !== Ve && (Q = Q || []).push(Ct, Ve)) : Ct === "children" ? typeof Ve != "string" && typeof Ve != "number" || (Q = Q || []).push(Ct, "" + Ve) : Ct !== "suppressContentEditableWarning" && Ct !== "suppressHydrationWarning" && (i.hasOwnProperty(Ct) ? (Ve != null && Ct === "onScroll" && Ir("scroll", c), Q || Le === Ve || (Q = [])) : (Q = Q || []).push(Ct, Ve)); + Dt === "dangerouslySetInnerHTML" ? (Ge = Ge ? Ge.__html : void 0, Oe = Oe ? Oe.__html : void 0, Ge != null && Oe !== Ge && (q = q || []).push(Dt, Ge)) : Dt === "children" ? typeof Ge != "string" && typeof Ge != "number" || (q = q || []).push(Dt, "" + Ge) : Dt !== "suppressContentEditableWarning" && Dt !== "suppressHydrationWarning" && (i.hasOwnProperty(Dt) ? (Ge != null && Dt === "onScroll" && kr("scroll", c), q || Oe === Ge || (q = [])) : (q = q || []).push(Dt, Ge)); } - E && (Q = Q || []).push("style", E); - var Ct = Q; - (p.updateQueue = Ct) && (p.flags |= 4); + E && (q = q || []).push("style", E); + var Dt = q; + (h.updateQueue = Dt) && (h.flags |= 4); } - }, no = function(c, p, E, O) { - E !== O && (p.flags |= 4); + }, ro = function(c, h, E, P) { + E !== P && (h.flags |= 4); }; - function rp(c, p) { + function sp(c, h) { if (!ga) switch (c.tailMode) { case "hidden": - p = c.tail; - for (var E = null; p !== null; ) - p.alternate !== null && (E = p), p = p.sibling; + h = c.tail; + for (var E = null; h !== null; ) + h.alternate !== null && (E = h), h = h.sibling; E === null ? c.tail = null : E.sibling = null; break; case "collapsed": E = c.tail; - for (var O = null; E !== null; ) - E.alternate !== null && (O = E), E = E.sibling; - O === null ? p || c.tail === null ? c.tail = null : c.tail.sibling = null : O.sibling = null; + for (var P = null; E !== null; ) + E.alternate !== null && (P = E), E = E.sibling; + P === null ? h || c.tail === null ? c.tail = null : c.tail.sibling = null : P.sibling = null; } } - function yl(c) { - var p = c.alternate !== null && c.alternate.child === c.child, E = 0, O = 0; - if (p) - for (var G = c.child; G !== null; ) - E |= G.lanes | G.childLanes, O |= G.subtreeFlags & 14680064, O |= G.flags & 14680064, G.return = c, G = G.sibling; + function xl(c) { + var h = c.alternate !== null && c.alternate.child === c.child, E = 0, P = 0; + if (h) + for (var V = c.child; V !== null; ) + E |= V.lanes | V.childLanes, P |= V.subtreeFlags & 14680064, P |= V.flags & 14680064, V.return = c, V = V.sibling; else - for (G = c.child; G !== null; ) - E |= G.lanes | G.childLanes, O |= G.subtreeFlags, O |= G.flags, G.return = c, G = G.sibling; - return c.subtreeFlags |= O, c.childLanes = E, p; + for (V = c.child; V !== null; ) + E |= V.lanes | V.childLanes, P |= V.subtreeFlags, P |= V.flags, V.return = c, V = V.sibling; + return c.subtreeFlags |= P, c.childLanes = E, h; } - function xy(c, p, E) { - var O = p.pendingProps; - switch (Ou(p), p.tag) { + function _y(c, h, E) { + var P = h.pendingProps; + switch (zu(h), h.tag) { case 2: case 16: case 15: @@ -39490,376 +39370,376 @@ Error generating stack: ` + Q.message + ` case 12: case 9: case 14: - return yl(p), null; + return xl(h), null; case 1: - return Ia(p.type) && Fl(), yl(p), null; + return Ia(h.type) && Il(), xl(h), null; case 3: - return O = p.stateNode, fc(), bi(hs), bi(Rr), jl(), O.pendingContext && (O.context = O.pendingContext, O.pendingContext = null), (c === null || c.child === null) && (rl(p) ? p.flags |= 4 : c === null || c.memoizedState.isDehydrated && (p.flags & 256) === 0 || (p.flags |= 1024, fu !== null && (Qp(fu), fu = null))), Mh(c, p), yl(p), null; + return P = h.stateNode, fc(), wi(ps), wi(Rr), Xl(), P.pendingContext && (P.context = P.pendingContext, P.pendingContext = null), (c === null || c.child === null) && (il(h) ? h.flags |= 4 : c === null || c.memoizedState.isDehydrated && (h.flags & 256) === 0 || (h.flags |= 1024, hu !== null && (Kp(hu), hu = null))), Th(c, h), xl(h), null; case 5: - Yr(p); - var G = Wl(ud.current); - if (E = p.type, c !== null && p.stateNode != null) - pc(c, p, E, O, G), c.ref !== p.ref && (p.flags |= 512, p.flags |= 2097152); + Gr(h); + var V = Yl(fd.current); + if (E = h.type, c !== null && h.stateNode != null) + pc(c, h, E, P, V), c.ref !== h.ref && (h.flags |= 512, h.flags |= 2097152); else { - if (!O) { - if (p.stateNode === null) + if (!P) { + if (h.stateNode === null) throw Error(t(166)); - return yl(p), null; + return xl(h), null; } - if (c = Wl(Vl.current), rl(p)) { - O = p.stateNode, E = p.type; - var Q = p.memoizedProps; - switch (O[Os] = p, O[Pu] = Q, c = (p.mode & 1) !== 0, E) { + if (c = Yl(Wl.current), il(h)) { + P = h.stateNode, E = h.type; + var q = h.memoizedProps; + switch (P[Us] = h, P[Uu] = q, c = (h.mode & 1) !== 0, E) { case "dialog": - Ir("cancel", O), Ir("close", O); + kr("cancel", P), kr("close", P); break; case "iframe": case "object": case "embed": - Ir("load", O); + kr("load", P); break; case "video": case "audio": - for (G = 0; G < ic.length; G++) - Ir(ic[G], O); + for (V = 0; V < ic.length; V++) + kr(ic[V], P); break; case "source": - Ir("error", O); + kr("error", P); break; case "img": case "image": case "link": - Ir( + kr( "error", - O - ), Ir("load", O); + P + ), kr("load", P); break; case "details": - Ir("toggle", O); + kr("toggle", P); break; case "input": - vt(O, Q), Ir("invalid", O); + ht(P, q), kr("invalid", P); break; case "select": - O._wrapperState = { wasMultiple: !!Q.multiple }, Ir("invalid", O); + P._wrapperState = { wasMultiple: !!q.multiple }, kr("invalid", P); break; case "textarea": - oe(O, Q), Ir("invalid", O); + oe(P, q), kr("invalid", P); } - hn(E, Q), G = null; - for (var ue in Q) - if (Q.hasOwnProperty(ue)) { - var Le = Q[ue]; - ue === "children" ? typeof Le == "string" ? O.textContent !== Le && (Q.suppressHydrationWarning !== !0 && Vd(O.textContent, Le, c), G = ["children", Le]) : typeof Le == "number" && O.textContent !== "" + Le && (Q.suppressHydrationWarning !== !0 && Vd( - O.textContent, - Le, + dn(E, q), V = null; + for (var le in q) + if (q.hasOwnProperty(le)) { + var Oe = q[le]; + le === "children" ? typeof Oe == "string" ? P.textContent !== Oe && (q.suppressHydrationWarning !== !0 && Gd(P.textContent, Oe, c), V = ["children", Oe]) : typeof Oe == "number" && P.textContent !== "" + Oe && (q.suppressHydrationWarning !== !0 && Gd( + P.textContent, + Oe, c - ), G = ["children", "" + Le]) : i.hasOwnProperty(ue) && Le != null && ue === "onScroll" && Ir("scroll", O); + ), V = ["children", "" + Oe]) : i.hasOwnProperty(le) && Oe != null && le === "onScroll" && kr("scroll", P); } switch (E) { case "input": - Ot(O), ft(O, Q, !0); + ft(P), yt(P, q, !0); break; case "textarea": - Ot(O), lt(O); + ft(P), ut(P); break; case "select": case "option": break; default: - typeof Q.onClick == "function" && (O.onclick = bh); + typeof q.onClick == "function" && (P.onclick = bh); } - O = G, p.updateQueue = O, O !== null && (p.flags |= 4); + P = V, h.updateQueue = P, P !== null && (h.flags |= 4); } else { - ue = G.nodeType === 9 ? G : G.ownerDocument, c === "http://www.w3.org/1999/xhtml" && (c = zt(E)), c === "http://www.w3.org/1999/xhtml" ? E === "script" ? (c = ue.createElement("div"), c.innerHTML = "