threedviewer 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/simple-viewer.es.js +655 -649
- package/dist/simple-viewer.umd.js +2 -2
- package/dist/types.d.ts +3 -3
- package/package.json +2 -2
package/dist/simple-viewer.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Go, { useRef as
|
|
1
|
+
import Go, { useRef as Ht, useState as Ei, useCallback as En, useEffect as ko, useMemo as T_ } from "react";
|
|
2
2
|
import * as W from "three";
|
|
3
|
-
import { TrianglesDrawMode as w_, TriangleFanDrawMode as Cc, TriangleStripDrawMode as Fh, Quaternion as Kr, Matrix4 as Je, Loader as A_, LoaderUtils as xs, FileLoader as Lh, Color as sn, LinearSRGBColorSpace as Xn, SpotLight as S_, PointLight as R_, DirectionalLight as E_, MeshBasicMaterial as
|
|
4
|
-
var
|
|
3
|
+
import { TrianglesDrawMode as w_, TriangleFanDrawMode as Cc, TriangleStripDrawMode as Fh, Quaternion as Kr, Matrix4 as Je, Loader as A_, LoaderUtils as xs, FileLoader as Lh, Color as sn, LinearSRGBColorSpace as Xn, SpotLight as S_, PointLight as R_, DirectionalLight as E_, MeshBasicMaterial as Mi, SRGBColorSpace as ws, MeshPhysicalMaterial as Cn, Vector2 as ye, Vector3 as X, InstancedMesh as M_, InstancedBufferAttribute as C_, Object3D as Nh, TextureLoader as P_, ImageBitmapLoader as I_, BufferAttribute as _t, InterleavedBuffer as D_, InterleavedBufferAttribute as O_, LinearFilter as Wt, LinearMipmapLinearFilter as Bh, RepeatWrapping as vn, PointsMaterial as F_, Material as oc, LineBasicMaterial as L_, MeshStandardMaterial as kh, DoubleSide as Yc, PropertyBinding as N_, BufferGeometry as gr, SkinnedMesh as B_, Mesh as Kc, LineSegments as k_, Line as U_, LineLoop as z_, Points as H_, Group as ac, PerspectiveCamera as $c, MathUtils as Xc, OrthographicCamera as Uh, Skeleton as W_, AnimationClip as G_, Bone as j_, InterpolateLinear as zh, ColorManagement as Of, NearestFilter as ze, NearestMipmapNearestFilter as V_, LinearMipmapNearestFilter as q_, NearestMipmapLinearFilter as Y_, ClampToEdgeWrapping as Zn, MirroredRepeatWrapping as K_, InterpolateDiscrete as $_, FrontSide as Uo, Texture as Ff, VectorKeyframeTrack as Lf, NumberKeyframeTrack as Nf, QuaternionKeyframeTrack as Bf, Box3 as _n, Sphere as Hh, Interpolant as X_, Ray as Wh, Plane as jo, Controls as Gh, MOUSE as xt, TOUCH as Ct, Spherical as As, Line3 as $n, Triangle as vs, BackSide as jh, UnsignedIntType as bs, DataTexture as Vt, IntType as cc, FloatType as tt, UnsignedByteType as Pc, UnsignedShortType as Z_, ByteType as kf, ShortType as Q_, RGBAFormat as Ke, RGBAIntegerFormat as Ic, RGFormat as Vh, RedFormat as zo, RGIntegerFormat as qh, RedIntegerFormat as J_, Matrix3 as ex, Vector4 as Di, Float32BufferAttribute as Uf, ShaderMaterial as Vo, NoBlending as Ss, WebGLRenderTarget as Pi, DataUtils as Mn, HalfFloatType as gn, Source as tx, DataArrayTexture as nx, WebGLArrayRenderTarget as rx, NoToneMapping as ix, NormalBlending as Yh, EquirectangularReflectionMapping as Zc, LinearMipMapLinearFilter as sx, Clock as ox, Scene as ax, AdditiveBlending as cx, PMREMGenerator as lx } from "three";
|
|
4
|
+
var ss = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Dc = { exports: {} }, os = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.min.js
|
|
@@ -11,10 +11,10 @@ var is = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
11
11
|
* This source code is licensed under the MIT license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
14
|
+
var zf;
|
|
15
15
|
function ux() {
|
|
16
|
-
if (
|
|
17
|
-
|
|
16
|
+
if (zf) return os;
|
|
17
|
+
zf = 1;
|
|
18
18
|
var a = Go, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, s = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
19
|
function o(f, u, m) {
|
|
20
20
|
var g, p = {}, h = null, b = null;
|
|
@@ -23,9 +23,9 @@ function ux() {
|
|
|
23
23
|
if (f && f.defaultProps) for (g in u = f.defaultProps, u) p[g] === void 0 && (p[g] = u[g]);
|
|
24
24
|
return { $$typeof: t, type: f, key: h, ref: b, props: p, _owner: s.current };
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return os.Fragment = n, os.jsx = o, os.jsxs = o, os;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var as = {};
|
|
29
29
|
/**
|
|
30
30
|
* @license React
|
|
31
31
|
* react-jsx-runtime.development.js
|
|
@@ -63,14 +63,14 @@ function fx() {
|
|
|
63
63
|
se.unshift("Warning: " + P), Function.prototype.apply.call(console[v], console, se);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
var I = !1, O = !1, B = !1, L = !1,
|
|
67
|
-
|
|
66
|
+
var I = !1, O = !1, B = !1, L = !1, U = !1, z;
|
|
67
|
+
z = Symbol.for("react.module.reference");
|
|
68
68
|
function V(v) {
|
|
69
|
-
return !!(typeof v == "string" || typeof v == "function" || v === i || v === l ||
|
|
69
|
+
return !!(typeof v == "string" || typeof v == "function" || v === i || v === l || U || v === s || v === m || v === g || L || v === b || I || O || B || typeof v == "object" && v !== null && (v.$$typeof === h || v.$$typeof === p || v.$$typeof === o || v.$$typeof === f || v.$$typeof === u || // This needs to include all possible module reference object
|
|
70
70
|
// types supported by any Flight configuration anywhere since
|
|
71
71
|
// we don't know which Flight build this will end up being used
|
|
72
72
|
// with.
|
|
73
|
-
v.$$typeof ===
|
|
73
|
+
v.$$typeof === z || v.getModuleId !== void 0));
|
|
74
74
|
}
|
|
75
75
|
function Z(v, P, N) {
|
|
76
76
|
var K = v.displayName;
|
|
@@ -127,14 +127,14 @@ function fx() {
|
|
|
127
127
|
}
|
|
128
128
|
return null;
|
|
129
129
|
}
|
|
130
|
-
var ee = Object.assign, oe = 0, Ae, Ne, Be, st,
|
|
130
|
+
var ee = Object.assign, oe = 0, Ae, Ne, Be, st, It, Ve, yr;
|
|
131
131
|
function _r() {
|
|
132
132
|
}
|
|
133
133
|
_r.__reactDisabledLog = !0;
|
|
134
|
-
function
|
|
134
|
+
function Fi() {
|
|
135
135
|
{
|
|
136
136
|
if (oe === 0) {
|
|
137
|
-
Ae = console.log, Ne = console.info, Be = console.warn, st = console.error,
|
|
137
|
+
Ae = console.log, Ne = console.info, Be = console.warn, st = console.error, It = console.group, Ve = console.groupCollapsed, yr = console.groupEnd;
|
|
138
138
|
var v = {
|
|
139
139
|
configurable: !0,
|
|
140
140
|
enumerable: !0,
|
|
@@ -176,7 +176,7 @@ function fx() {
|
|
|
176
176
|
value: st
|
|
177
177
|
}),
|
|
178
178
|
group: ee({}, v, {
|
|
179
|
-
value:
|
|
179
|
+
value: It
|
|
180
180
|
}),
|
|
181
181
|
groupCollapsed: ee({}, v, {
|
|
182
182
|
value: Ve
|
|
@@ -203,13 +203,13 @@ function fx() {
|
|
|
203
203
|
` + Pn + v;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
var
|
|
206
|
+
var Dt = !1, on;
|
|
207
207
|
{
|
|
208
208
|
var Jn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
209
209
|
on = new Jn();
|
|
210
210
|
}
|
|
211
211
|
function bn(v, P) {
|
|
212
|
-
if (!v ||
|
|
212
|
+
if (!v || Dt)
|
|
213
213
|
return "";
|
|
214
214
|
{
|
|
215
215
|
var N = on.get(v);
|
|
@@ -217,11 +217,11 @@ function fx() {
|
|
|
217
217
|
return N;
|
|
218
218
|
}
|
|
219
219
|
var K;
|
|
220
|
-
|
|
220
|
+
Dt = !0;
|
|
221
221
|
var re = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
223
|
var se;
|
|
224
|
-
se = qt.current, qt.current = null,
|
|
224
|
+
se = qt.current, qt.current = null, Fi();
|
|
225
225
|
try {
|
|
226
226
|
if (P) {
|
|
227
227
|
var te = function() {
|
|
@@ -274,7 +274,7 @@ function fx() {
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
} finally {
|
|
277
|
-
|
|
277
|
+
Dt = !1, qt.current = se, xn(), Error.prepareStackTrace = re;
|
|
278
278
|
}
|
|
279
279
|
var pt = v ? v.displayName || v.name : "", qe = pt ? lt(pt) : "";
|
|
280
280
|
return typeof v == "function" && on.set(v, qe), qe;
|
|
@@ -315,7 +315,7 @@ function fx() {
|
|
|
315
315
|
}
|
|
316
316
|
return "";
|
|
317
317
|
}
|
|
318
|
-
var
|
|
318
|
+
var Ot = Object.prototype.hasOwnProperty, ht = {}, er = S.ReactDebugCurrentFrame;
|
|
319
319
|
function an(v) {
|
|
320
320
|
if (v) {
|
|
321
321
|
var P = v._owner, N = ft(v.type, v._source, P ? P.type : null);
|
|
@@ -325,7 +325,7 @@ function fx() {
|
|
|
325
325
|
}
|
|
326
326
|
function In(v, P, N, K, re) {
|
|
327
327
|
{
|
|
328
|
-
var se = Function.call.bind(
|
|
328
|
+
var se = Function.call.bind(Ot);
|
|
329
329
|
for (var te in v)
|
|
330
330
|
if (se(v, te)) {
|
|
331
331
|
var J = void 0;
|
|
@@ -343,7 +343,7 @@ function fx() {
|
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
var dt = Array.isArray;
|
|
346
|
-
function
|
|
346
|
+
function Ft(v) {
|
|
347
347
|
return dt(v);
|
|
348
348
|
}
|
|
349
349
|
function tr(v) {
|
|
@@ -352,7 +352,7 @@ function fx() {
|
|
|
352
352
|
return N;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Li(v) {
|
|
356
356
|
try {
|
|
357
357
|
return cn(v), !1;
|
|
358
358
|
} catch {
|
|
@@ -363,7 +363,7 @@ function fx() {
|
|
|
363
363
|
return "" + v;
|
|
364
364
|
}
|
|
365
365
|
function xr(v) {
|
|
366
|
-
if (
|
|
366
|
+
if (Li(v))
|
|
367
367
|
return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tr(v)), cn(v);
|
|
368
368
|
}
|
|
369
369
|
var nt = S.ReactCurrentOwner, Tn = {
|
|
@@ -374,7 +374,7 @@ function fx() {
|
|
|
374
374
|
}, Dn, On, ln;
|
|
375
375
|
ln = {};
|
|
376
376
|
function br(v) {
|
|
377
|
-
if (
|
|
377
|
+
if (Ot.call(v, "ref")) {
|
|
378
378
|
var P = Object.getOwnPropertyDescriptor(v, "ref").get;
|
|
379
379
|
if (P && P.isReactWarning)
|
|
380
380
|
return !1;
|
|
@@ -382,7 +382,7 @@ function fx() {
|
|
|
382
382
|
return v.ref !== void 0;
|
|
383
383
|
}
|
|
384
384
|
function Tr(v) {
|
|
385
|
-
if (
|
|
385
|
+
if (Ot.call(v, "key")) {
|
|
386
386
|
var P = Object.getOwnPropertyDescriptor(v, "key").get;
|
|
387
387
|
if (P && P.isReactWarning)
|
|
388
388
|
return !1;
|
|
@@ -446,12 +446,12 @@ function fx() {
|
|
|
446
446
|
value: re
|
|
447
447
|
}), Object.freeze && (Object.freeze(J.props), Object.freeze(J)), J;
|
|
448
448
|
};
|
|
449
|
-
function
|
|
449
|
+
function Ni(v, P, N, K, re) {
|
|
450
450
|
{
|
|
451
451
|
var se, te = {}, J = null, we = null;
|
|
452
452
|
N !== void 0 && (xr(N), J = "" + N), Tr(P) && (xr(P.key), J = "" + P.key), br(P) && (we = P.ref, wr(P, re));
|
|
453
453
|
for (se in P)
|
|
454
|
-
|
|
454
|
+
Ot.call(P, se) && !Tn.hasOwnProperty(se) && (te[se] = P[se]);
|
|
455
455
|
if (v && v.defaultProps) {
|
|
456
456
|
var ue = v.defaultProps;
|
|
457
457
|
for (se in ue)
|
|
@@ -489,7 +489,7 @@ Check the render method of \`` + v + "`.";
|
|
|
489
489
|
return "";
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function Bi(v) {
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
495
|
var Cr = {};
|
|
@@ -522,7 +522,7 @@ Check the top-level render call using <` + N + ">.");
|
|
|
522
522
|
{
|
|
523
523
|
if (typeof v != "object")
|
|
524
524
|
return;
|
|
525
|
-
if (
|
|
525
|
+
if (Ft(v))
|
|
526
526
|
for (var N = 0; N < v.length; N++) {
|
|
527
527
|
var K = v[N];
|
|
528
528
|
Ln(K) && Pr(K, P);
|
|
@@ -537,7 +537,7 @@ Check the top-level render call using <` + N + ">.");
|
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function ki(v) {
|
|
541
541
|
{
|
|
542
542
|
var P = v.type;
|
|
543
543
|
if (P == null || typeof P == "string")
|
|
@@ -581,19 +581,19 @@ Check the top-level render call using <` + N + ">.");
|
|
|
581
581
|
if (!te) {
|
|
582
582
|
var J = "";
|
|
583
583
|
(v === void 0 || typeof v == "object" && v !== null && Object.keys(v).length === 0) && (J += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
584
|
-
var we =
|
|
584
|
+
var we = Bi();
|
|
585
585
|
we ? J += we : J += Mr();
|
|
586
586
|
var ue;
|
|
587
|
-
v === null ? ue = "null" :
|
|
587
|
+
v === null ? ue = "null" : Ft(v) ? ue = "array" : v !== void 0 && v.$$typeof === t ? (ue = "<" + ($(v.type) || "Unknown") + " />", J = " Did you accidentally export a JSX literal instead of a component?") : ue = typeof v, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ue, J);
|
|
588
588
|
}
|
|
589
|
-
var he =
|
|
589
|
+
var he = Ni(v, P, N, re, se);
|
|
590
590
|
if (he == null)
|
|
591
591
|
return he;
|
|
592
592
|
if (te) {
|
|
593
593
|
var Ee = P.children;
|
|
594
594
|
if (Ee !== void 0)
|
|
595
595
|
if (K)
|
|
596
|
-
if (
|
|
596
|
+
if (Ft(Ee)) {
|
|
597
597
|
for (var pt = 0; pt < Ee.length; pt++)
|
|
598
598
|
Ir(Ee[pt], v);
|
|
599
599
|
Object.freeze && Object.freeze(Ee);
|
|
@@ -602,35 +602,35 @@ Check the top-level render call using <` + N + ">.");
|
|
|
602
602
|
else
|
|
603
603
|
Ir(Ee, v);
|
|
604
604
|
}
|
|
605
|
-
if (
|
|
605
|
+
if (Ot.call(P, "key")) {
|
|
606
606
|
var qe = $(v), Se = Object.keys(P).filter(function(Qr) {
|
|
607
607
|
return Qr !== "key";
|
|
608
608
|
}), Bn = Se.length > 0 ? "{key: someKey, " + Se.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
609
609
|
if (!Or[qe + Bn]) {
|
|
610
|
-
var
|
|
610
|
+
var Gi = Se.length > 0 ? "{" + Se.join(": ..., ") + ": ...}" : "{}";
|
|
611
611
|
A(`A props object containing a "key" prop is being spread into JSX:
|
|
612
612
|
let props = %s;
|
|
613
613
|
<%s {...props} />
|
|
614
614
|
React keys must be passed directly to JSX without using spread:
|
|
615
615
|
let props = %s;
|
|
616
|
-
<%s key={someKey} {...props} />`, Bn, qe,
|
|
616
|
+
<%s key={someKey} {...props} />`, Bn, qe, Gi, qe), Or[qe + Bn] = !0;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
return v === i ? Dr(he) :
|
|
619
|
+
return v === i ? Dr(he) : ki(he), he;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Ui(v, P, N) {
|
|
623
623
|
return Nn(v, P, N, !0);
|
|
624
624
|
}
|
|
625
625
|
function zi(v, P, N) {
|
|
626
626
|
return Nn(v, P, N, !1);
|
|
627
627
|
}
|
|
628
|
-
var
|
|
629
|
-
|
|
630
|
-
}()),
|
|
628
|
+
var Hi = zi, Wi = Ui;
|
|
629
|
+
as.Fragment = i, as.jsx = Hi, as.jsxs = Wi;
|
|
630
|
+
}()), as;
|
|
631
631
|
}
|
|
632
632
|
process.env.NODE_ENV === "production" ? Dc.exports = ux() : Dc.exports = fx();
|
|
633
|
-
var
|
|
633
|
+
var cs = Dc.exports;
|
|
634
634
|
function Wf(a, t) {
|
|
635
635
|
if (t === w_)
|
|
636
636
|
return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), a;
|
|
@@ -896,7 +896,7 @@ class mx {
|
|
|
896
896
|
this.name = _e.KHR_MATERIALS_UNLIT;
|
|
897
897
|
}
|
|
898
898
|
getMaterialType() {
|
|
899
|
-
return
|
|
899
|
+
return Mi;
|
|
900
900
|
}
|
|
901
901
|
extendParams(t, n, i) {
|
|
902
902
|
const s = [];
|
|
@@ -1233,11 +1233,11 @@ class Ix {
|
|
|
1233
1233
|
}));
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
|
-
const Kh = "glTF",
|
|
1236
|
+
const Kh = "glTF", ls = 12, Gf = { JSON: 1313821514, BIN: 5130562 };
|
|
1237
1237
|
class Dx {
|
|
1238
1238
|
constructor(t) {
|
|
1239
1239
|
this.name = _e.KHR_BINARY_GLTF, this.content = null, this.body = null;
|
|
1240
|
-
const n = new DataView(t, 0,
|
|
1240
|
+
const n = new DataView(t, 0, ls), i = new TextDecoder();
|
|
1241
1241
|
if (this.header = {
|
|
1242
1242
|
magic: i.decode(new Uint8Array(t.slice(0, 4))),
|
|
1243
1243
|
version: n.getUint32(4, !0),
|
|
@@ -1246,17 +1246,17 @@ class Dx {
|
|
|
1246
1246
|
throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");
|
|
1247
1247
|
if (this.header.version < 2)
|
|
1248
1248
|
throw new Error("THREE.GLTFLoader: Legacy binary file detected.");
|
|
1249
|
-
const s = this.header.length -
|
|
1249
|
+
const s = this.header.length - ls, l = new DataView(t, ls);
|
|
1250
1250
|
let o = 0;
|
|
1251
1251
|
for (; o < s; ) {
|
|
1252
1252
|
const f = l.getUint32(o, !0);
|
|
1253
1253
|
o += 4;
|
|
1254
1254
|
const u = l.getUint32(o, !0);
|
|
1255
1255
|
if (o += 4, u === Gf.JSON) {
|
|
1256
|
-
const m = new Uint8Array(t,
|
|
1256
|
+
const m = new Uint8Array(t, ls + o, f);
|
|
1257
1257
|
this.content = i.decode(m);
|
|
1258
1258
|
} else if (u === Gf.BIN) {
|
|
1259
|
-
const m =
|
|
1259
|
+
const m = ls + o;
|
|
1260
1260
|
this.body = t.slice(m, m + f);
|
|
1261
1261
|
}
|
|
1262
1262
|
o += f;
|
|
@@ -1280,7 +1280,7 @@ class Ox {
|
|
|
1280
1280
|
for (const g in t.attributes) {
|
|
1281
1281
|
const p = Oc[g] || g.toLowerCase();
|
|
1282
1282
|
if (o[g] !== void 0) {
|
|
1283
|
-
const h = i.accessors[t.attributes[g]], b =
|
|
1283
|
+
const h = i.accessors[t.attributes[g]], b = Ii[h.componentType];
|
|
1284
1284
|
m[p] = b.name, u[p] = h.normalized === !0;
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
@@ -1323,8 +1323,8 @@ class $h extends X_ {
|
|
|
1323
1323
|
interpolate_(t, n, i, s) {
|
|
1324
1324
|
const l = this.resultBuffer, o = this.sampleValues, f = this.valueSize, u = f * 2, m = f * 3, g = s - n, p = (i - n) / g, h = p * p, b = h * p, w = t * m, E = w - m, _ = -2 * b + 3 * h, S = b - h, A = 1 - _, M = S - h + p;
|
|
1325
1325
|
for (let I = 0; I !== f; I++) {
|
|
1326
|
-
const O = o[E + I + f], B = o[E + I + u] * g, L = o[w + I + f],
|
|
1327
|
-
l[I] = A * O + M * B + _ * L + S *
|
|
1326
|
+
const O = o[E + I + f], B = o[E + I + u] * g, L = o[w + I + f], U = o[w + I] * g;
|
|
1327
|
+
l[I] = A * O + M * B + _ * L + S * U;
|
|
1328
1328
|
}
|
|
1329
1329
|
return l;
|
|
1330
1330
|
}
|
|
@@ -1356,7 +1356,7 @@ const tn = {
|
|
|
1356
1356
|
TRIANGLE_FAN: 6,
|
|
1357
1357
|
UNSIGNED_BYTE: 5121,
|
|
1358
1358
|
UNSIGNED_SHORT: 5123
|
|
1359
|
-
},
|
|
1359
|
+
}, Ii = {
|
|
1360
1360
|
5120: Int8Array,
|
|
1361
1361
|
5121: Uint8Array,
|
|
1362
1362
|
5122: Int16Array,
|
|
@@ -1364,7 +1364,7 @@ const tn = {
|
|
|
1364
1364
|
5125: Uint32Array,
|
|
1365
1365
|
5126: Float32Array
|
|
1366
1366
|
}, jf = {
|
|
1367
|
-
9728:
|
|
1367
|
+
9728: ze,
|
|
1368
1368
|
9729: Wt,
|
|
1369
1369
|
9984: V_,
|
|
1370
1370
|
9985: q_,
|
|
@@ -1402,14 +1402,14 @@ const tn = {
|
|
|
1402
1402
|
CUBICSPLINE: void 0,
|
|
1403
1403
|
// We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
|
|
1404
1404
|
// keyframe track will be initialized with a default interpolation type, then modified.
|
|
1405
|
-
LINEAR:
|
|
1405
|
+
LINEAR: zh,
|
|
1406
1406
|
STEP: $_
|
|
1407
1407
|
}, uc = {
|
|
1408
1408
|
OPAQUE: "OPAQUE",
|
|
1409
1409
|
MASK: "MASK",
|
|
1410
1410
|
BLEND: "BLEND"
|
|
1411
1411
|
};
|
|
1412
|
-
function
|
|
1412
|
+
function Ux(a) {
|
|
1413
1413
|
return a.DefaultMaterial === void 0 && (a.DefaultMaterial = new kh({
|
|
1414
1414
|
color: 16777215,
|
|
1415
1415
|
emissive: 0,
|
|
@@ -1417,7 +1417,7 @@ function zx(a) {
|
|
|
1417
1417
|
roughness: 1,
|
|
1418
1418
|
transparent: !1,
|
|
1419
1419
|
depthTest: !0,
|
|
1420
|
-
side:
|
|
1420
|
+
side: Uo
|
|
1421
1421
|
})), a.DefaultMaterial;
|
|
1422
1422
|
}
|
|
1423
1423
|
function Gr(a, t, n) {
|
|
@@ -1427,7 +1427,7 @@ function Gr(a, t, n) {
|
|
|
1427
1427
|
function Kn(a, t) {
|
|
1428
1428
|
t.extras !== void 0 && (typeof t.extras == "object" ? Object.assign(a.userData, t.extras) : console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, " + t.extras));
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function zx(a, t, n) {
|
|
1431
1431
|
let i = !1, s = !1, l = !1;
|
|
1432
1432
|
for (let m = 0, g = t.length; m < g; m++) {
|
|
1433
1433
|
const p = t[m];
|
|
@@ -1732,12 +1732,12 @@ class Vx {
|
|
|
1732
1732
|
loadAccessor(t) {
|
|
1733
1733
|
const n = this, i = this.json, s = this.json.accessors[t];
|
|
1734
1734
|
if (s.bufferView === void 0 && s.sparse === void 0) {
|
|
1735
|
-
const o = lc[s.type], f =
|
|
1735
|
+
const o = lc[s.type], f = Ii[s.componentType], u = s.normalized === !0, m = new f(s.count * o);
|
|
1736
1736
|
return Promise.resolve(new _t(m, o, u));
|
|
1737
1737
|
}
|
|
1738
1738
|
const l = [];
|
|
1739
1739
|
return s.bufferView !== void 0 ? l.push(this.getDependency("bufferView", s.bufferView)) : l.push(null), s.sparse !== void 0 && (l.push(this.getDependency("bufferView", s.sparse.indices.bufferView)), l.push(this.getDependency("bufferView", s.sparse.values.bufferView))), Promise.all(l).then(function(o) {
|
|
1740
|
-
const f = o[0], u = lc[s.type], m =
|
|
1740
|
+
const f = o[0], u = lc[s.type], m = Ii[s.componentType], g = m.BYTES_PER_ELEMENT, p = g * u, h = s.byteOffset || 0, b = s.bufferView !== void 0 ? i.bufferViews[s.bufferView].byteStride : void 0, w = s.normalized === !0;
|
|
1741
1741
|
let E, _;
|
|
1742
1742
|
if (b && b !== p) {
|
|
1743
1743
|
const S = Math.floor(h / b), A = "InterleavedBuffer:" + s.bufferView + ":" + s.componentType + ":" + S + ":" + s.count;
|
|
@@ -1746,11 +1746,11 @@ class Vx {
|
|
|
1746
1746
|
} else
|
|
1747
1747
|
f === null ? E = new m(s.count * u) : E = new m(f, h, s.count * u), _ = new _t(E, u, w);
|
|
1748
1748
|
if (s.sparse !== void 0) {
|
|
1749
|
-
const S = lc.SCALAR, A =
|
|
1749
|
+
const S = lc.SCALAR, A = Ii[s.sparse.indices.componentType], M = s.sparse.indices.byteOffset || 0, I = s.sparse.values.byteOffset || 0, O = new A(o[1], M, s.sparse.count * S), B = new m(o[2], I, s.sparse.count * u);
|
|
1750
1750
|
f !== null && (_ = new _t(_.array.slice(), _.itemSize, _.normalized));
|
|
1751
|
-
for (let L = 0,
|
|
1752
|
-
const
|
|
1753
|
-
if (_.setX(
|
|
1751
|
+
for (let L = 0, U = O.length; L < U; L++) {
|
|
1752
|
+
const z = O[L];
|
|
1753
|
+
if (_.setX(z, B[L * u]), u >= 2 && _.setY(z, B[L * u + 1]), u >= 3 && _.setZ(z, B[L * u + 2]), u >= 4 && _.setW(z, B[L * u + 3]), u >= 5) throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
1756
|
return _;
|
|
@@ -1891,15 +1891,15 @@ class Vx {
|
|
|
1891
1891
|
}
|
|
1892
1892
|
l.doubleSided === !0 && (f.side = Yc);
|
|
1893
1893
|
const g = l.alphaMode || uc.OPAQUE;
|
|
1894
|
-
if (g === uc.BLEND ? (f.transparent = !0, f.depthWrite = !1) : (f.transparent = !1, g === uc.MASK && (f.alphaTest = l.alphaCutoff !== void 0 ? l.alphaCutoff : 0.5)), l.normalTexture !== void 0 && o !==
|
|
1894
|
+
if (g === uc.BLEND ? (f.transparent = !0, f.depthWrite = !1) : (f.transparent = !1, g === uc.MASK && (f.alphaTest = l.alphaCutoff !== void 0 ? l.alphaCutoff : 0.5)), l.normalTexture !== void 0 && o !== Mi && (m.push(n.assignTexture(f, "normalMap", l.normalTexture)), f.normalScale = new ye(1, 1), l.normalTexture.scale !== void 0)) {
|
|
1895
1895
|
const p = l.normalTexture.scale;
|
|
1896
1896
|
f.normalScale.set(p, p);
|
|
1897
1897
|
}
|
|
1898
|
-
if (l.occlusionTexture !== void 0 && o !==
|
|
1898
|
+
if (l.occlusionTexture !== void 0 && o !== Mi && (m.push(n.assignTexture(f, "aoMap", l.occlusionTexture)), l.occlusionTexture.strength !== void 0 && (f.aoMapIntensity = l.occlusionTexture.strength)), l.emissiveFactor !== void 0 && o !== Mi) {
|
|
1899
1899
|
const p = l.emissiveFactor;
|
|
1900
1900
|
f.emissive = new sn().setRGB(p[0], p[1], p[2], Xn);
|
|
1901
1901
|
}
|
|
1902
|
-
return l.emissiveTexture !== void 0 && o !==
|
|
1902
|
+
return l.emissiveTexture !== void 0 && o !== Mi && m.push(n.assignTexture(f, "emissiveMap", l.emissiveTexture, ws)), Promise.all(m).then(function() {
|
|
1903
1903
|
const p = new o(f);
|
|
1904
1904
|
return l.name && (p.name = l.name), Kn(p, l), n.associations.set(p, { materials: t }), l.extensions && Gr(s, p, l), p;
|
|
1905
1905
|
});
|
|
@@ -1944,7 +1944,7 @@ class Vx {
|
|
|
1944
1944
|
loadMesh(t) {
|
|
1945
1945
|
const n = this, i = this.json, s = this.extensions, l = i.meshes[t], o = l.primitives, f = [];
|
|
1946
1946
|
for (let u = 0, m = o.length; u < m; u++) {
|
|
1947
|
-
const g = o[u].material === void 0 ?
|
|
1947
|
+
const g = o[u].material === void 0 ? Ux(this.cache) : this.getDependency("material", o[u].material);
|
|
1948
1948
|
f.push(g);
|
|
1949
1949
|
}
|
|
1950
1950
|
return f.push(n.loadGeometries(o)), Promise.all(f).then(function(u) {
|
|
@@ -1958,9 +1958,9 @@ class Vx {
|
|
|
1958
1958
|
else if (_.mode === tn.LINES)
|
|
1959
1959
|
S = new k_(E, A);
|
|
1960
1960
|
else if (_.mode === tn.LINE_STRIP)
|
|
1961
|
-
S = new z_(E, A);
|
|
1962
|
-
else if (_.mode === tn.LINE_LOOP)
|
|
1963
1961
|
S = new U_(E, A);
|
|
1962
|
+
else if (_.mode === tn.LINE_LOOP)
|
|
1963
|
+
S = new z_(E, A);
|
|
1964
1964
|
else if (_.mode === tn.POINTS)
|
|
1965
1965
|
S = new H_(E, A);
|
|
1966
1966
|
else
|
|
@@ -1993,7 +1993,7 @@ class Vx {
|
|
|
1993
1993
|
console.warn("THREE.GLTFLoader: Missing camera parameters.");
|
|
1994
1994
|
return;
|
|
1995
1995
|
}
|
|
1996
|
-
return i.type === "perspective" ? n = new $c(Xc.radToDeg(s.yfov), s.aspectRatio || 1, s.znear || 1, s.zfar || 2e6) : i.type === "orthographic" && (n = new
|
|
1996
|
+
return i.type === "perspective" ? n = new $c(Xc.radToDeg(s.yfov), s.aspectRatio || 1, s.znear || 1, s.zfar || 2e6) : i.type === "orthographic" && (n = new Uh(-s.xmag, s.xmag, s.ymag, -s.ymag, s.znear, s.zfar)), i.name && (n.name = this.createUniqueName(i.name)), Kn(n, i), Promise.resolve(n);
|
|
1997
1997
|
}
|
|
1998
1998
|
/**
|
|
1999
1999
|
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
|
|
@@ -2038,13 +2038,13 @@ class Vx {
|
|
|
2038
2038
|
]).then(function(p) {
|
|
2039
2039
|
const h = p[0], b = p[1], w = p[2], E = p[3], _ = p[4], S = [];
|
|
2040
2040
|
for (let A = 0, M = h.length; A < M; A++) {
|
|
2041
|
-
const I = h[A], O = b[A], B = w[A], L = E[A],
|
|
2041
|
+
const I = h[A], O = b[A], B = w[A], L = E[A], U = _[A];
|
|
2042
2042
|
if (I === void 0) continue;
|
|
2043
2043
|
I.updateMatrix && I.updateMatrix();
|
|
2044
|
-
const
|
|
2045
|
-
if (
|
|
2046
|
-
for (let V = 0; V <
|
|
2047
|
-
S.push(
|
|
2044
|
+
const z = i._createAnimationTracks(I, O, B, L, U);
|
|
2045
|
+
if (z)
|
|
2046
|
+
for (let V = 0; V < z.length; V++)
|
|
2047
|
+
S.push(z[V]);
|
|
2048
2048
|
}
|
|
2049
2049
|
return new G_(l, void 0, S);
|
|
2050
2050
|
});
|
|
@@ -2168,7 +2168,7 @@ class Vx {
|
|
|
2168
2168
|
}
|
|
2169
2169
|
break;
|
|
2170
2170
|
}
|
|
2171
|
-
const g = s.interpolation !== void 0 ? kx[s.interpolation] :
|
|
2171
|
+
const g = s.interpolation !== void 0 ? kx[s.interpolation] : zh, p = this._getArrayFromAccessor(i);
|
|
2172
2172
|
for (let h = 0, b = u.length; h < b; h++) {
|
|
2173
2173
|
const w = new m(
|
|
2174
2174
|
u[h] + "." + fr[l.path],
|
|
@@ -2206,7 +2206,7 @@ function qx(a, t, n) {
|
|
|
2206
2206
|
new X(u[0], u[1], u[2]),
|
|
2207
2207
|
new X(m[0], m[1], m[2])
|
|
2208
2208
|
), f.normalized) {
|
|
2209
|
-
const g = Fc(
|
|
2209
|
+
const g = Fc(Ii[f.componentType]);
|
|
2210
2210
|
s.min.multiplyScalar(g), s.max.multiplyScalar(g);
|
|
2211
2211
|
}
|
|
2212
2212
|
} else {
|
|
@@ -2224,7 +2224,7 @@ function qx(a, t, n) {
|
|
|
2224
2224
|
const h = n.json.accessors[p.POSITION], b = h.min, w = h.max;
|
|
2225
2225
|
if (b !== void 0 && w !== void 0) {
|
|
2226
2226
|
if (u.setX(Math.max(Math.abs(b[0]), Math.abs(w[0]))), u.setY(Math.max(Math.abs(b[1]), Math.abs(w[1]))), u.setZ(Math.max(Math.abs(b[2]), Math.abs(w[2]))), h.normalized) {
|
|
2227
|
-
const E = Fc(
|
|
2227
|
+
const E = Fc(Ii[h.componentType]);
|
|
2228
2228
|
u.multiplyScalar(E);
|
|
2229
2229
|
}
|
|
2230
2230
|
f.max(u);
|
|
@@ -2256,7 +2256,7 @@ function qf(a, t, n) {
|
|
|
2256
2256
|
s.push(o);
|
|
2257
2257
|
}
|
|
2258
2258
|
return Of.workingColorSpace !== Xn && "COLOR_0" in i && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${Of.workingColorSpace}" not supported.`), Kn(a, t), qx(a, t, n), Promise.all(s).then(function() {
|
|
2259
|
-
return t.targets !== void 0 ?
|
|
2259
|
+
return t.targets !== void 0 ? zx(a, t.targets, n) : a;
|
|
2260
2260
|
});
|
|
2261
2261
|
}
|
|
2262
2262
|
(function() {
|
|
@@ -2269,7 +2269,7 @@ function qf(a, t, n) {
|
|
|
2269
2269
|
console.error("vite-plugin-css-injected-by-js", t);
|
|
2270
2270
|
}
|
|
2271
2271
|
})();
|
|
2272
|
-
var Lc = { exports: {} },
|
|
2272
|
+
var Lc = { exports: {} }, us = {};
|
|
2273
2273
|
/**
|
|
2274
2274
|
* @license React
|
|
2275
2275
|
* react-jsx-runtime.production.min.js
|
|
@@ -2281,7 +2281,7 @@ var Lc = { exports: {} }, ls = {};
|
|
|
2281
2281
|
*/
|
|
2282
2282
|
var Yf;
|
|
2283
2283
|
function Yx() {
|
|
2284
|
-
if (Yf) return
|
|
2284
|
+
if (Yf) return us;
|
|
2285
2285
|
Yf = 1;
|
|
2286
2286
|
var a = Go, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, s = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
2287
2287
|
function o(f, u, m) {
|
|
@@ -2291,7 +2291,7 @@ function Yx() {
|
|
|
2291
2291
|
if (f && f.defaultProps) for (g in u = f.defaultProps, u) p[g] === void 0 && (p[g] = u[g]);
|
|
2292
2292
|
return { $$typeof: t, type: f, key: h, ref: b, props: p, _owner: s.current };
|
|
2293
2293
|
}
|
|
2294
|
-
return
|
|
2294
|
+
return us.Fragment = n, us.jsx = o, us.jsxs = o, us;
|
|
2295
2295
|
}
|
|
2296
2296
|
var ho = {};
|
|
2297
2297
|
/**
|
|
@@ -2331,14 +2331,14 @@ function Kx() {
|
|
|
2331
2331
|
se.unshift("Warning: " + P), Function.prototype.apply.call(console[v], console, se);
|
|
2332
2332
|
}
|
|
2333
2333
|
}
|
|
2334
|
-
var I = !1, O = !1, B = !1, L = !1,
|
|
2335
|
-
|
|
2334
|
+
var I = !1, O = !1, B = !1, L = !1, U = !1, z;
|
|
2335
|
+
z = Symbol.for("react.module.reference");
|
|
2336
2336
|
function V(v) {
|
|
2337
|
-
return !!(typeof v == "string" || typeof v == "function" || v === i || v === l ||
|
|
2337
|
+
return !!(typeof v == "string" || typeof v == "function" || v === i || v === l || U || v === s || v === m || v === g || L || v === b || I || O || B || typeof v == "object" && v !== null && (v.$$typeof === h || v.$$typeof === p || v.$$typeof === o || v.$$typeof === f || v.$$typeof === u || // This needs to include all possible module reference object
|
|
2338
2338
|
// types supported by any Flight configuration anywhere since
|
|
2339
2339
|
// we don't know which Flight build this will end up being used
|
|
2340
2340
|
// with.
|
|
2341
|
-
v.$$typeof ===
|
|
2341
|
+
v.$$typeof === z || v.getModuleId !== void 0));
|
|
2342
2342
|
}
|
|
2343
2343
|
function Z(v, P, N) {
|
|
2344
2344
|
var K = v.displayName;
|
|
@@ -2395,14 +2395,14 @@ function Kx() {
|
|
|
2395
2395
|
}
|
|
2396
2396
|
return null;
|
|
2397
2397
|
}
|
|
2398
|
-
var ee = Object.assign, oe = 0, Ae, Ne, Be, st,
|
|
2398
|
+
var ee = Object.assign, oe = 0, Ae, Ne, Be, st, It, Ve, yr;
|
|
2399
2399
|
function _r() {
|
|
2400
2400
|
}
|
|
2401
2401
|
_r.__reactDisabledLog = !0;
|
|
2402
|
-
function
|
|
2402
|
+
function Fi() {
|
|
2403
2403
|
{
|
|
2404
2404
|
if (oe === 0) {
|
|
2405
|
-
Ae = console.log, Ne = console.info, Be = console.warn, st = console.error,
|
|
2405
|
+
Ae = console.log, Ne = console.info, Be = console.warn, st = console.error, It = console.group, Ve = console.groupCollapsed, yr = console.groupEnd;
|
|
2406
2406
|
var v = {
|
|
2407
2407
|
configurable: !0,
|
|
2408
2408
|
enumerable: !0,
|
|
@@ -2444,7 +2444,7 @@ function Kx() {
|
|
|
2444
2444
|
value: st
|
|
2445
2445
|
}),
|
|
2446
2446
|
group: ee({}, v, {
|
|
2447
|
-
value:
|
|
2447
|
+
value: It
|
|
2448
2448
|
}),
|
|
2449
2449
|
groupCollapsed: ee({}, v, {
|
|
2450
2450
|
value: Ve
|
|
@@ -2471,13 +2471,13 @@ function Kx() {
|
|
|
2471
2471
|
` + Pn + v;
|
|
2472
2472
|
}
|
|
2473
2473
|
}
|
|
2474
|
-
var
|
|
2474
|
+
var Dt = !1, on;
|
|
2475
2475
|
{
|
|
2476
2476
|
var Jn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
2477
2477
|
on = new Jn();
|
|
2478
2478
|
}
|
|
2479
2479
|
function bn(v, P) {
|
|
2480
|
-
if (!v ||
|
|
2480
|
+
if (!v || Dt)
|
|
2481
2481
|
return "";
|
|
2482
2482
|
{
|
|
2483
2483
|
var N = on.get(v);
|
|
@@ -2485,11 +2485,11 @@ function Kx() {
|
|
|
2485
2485
|
return N;
|
|
2486
2486
|
}
|
|
2487
2487
|
var K;
|
|
2488
|
-
|
|
2488
|
+
Dt = !0;
|
|
2489
2489
|
var re = Error.prepareStackTrace;
|
|
2490
2490
|
Error.prepareStackTrace = void 0;
|
|
2491
2491
|
var se;
|
|
2492
|
-
se = qt.current, qt.current = null,
|
|
2492
|
+
se = qt.current, qt.current = null, Fi();
|
|
2493
2493
|
try {
|
|
2494
2494
|
if (P) {
|
|
2495
2495
|
var te = function() {
|
|
@@ -2542,7 +2542,7 @@ function Kx() {
|
|
|
2542
2542
|
}
|
|
2543
2543
|
}
|
|
2544
2544
|
} finally {
|
|
2545
|
-
|
|
2545
|
+
Dt = !1, qt.current = se, xn(), Error.prepareStackTrace = re;
|
|
2546
2546
|
}
|
|
2547
2547
|
var pt = v ? v.displayName || v.name : "", qe = pt ? lt(pt) : "";
|
|
2548
2548
|
return typeof v == "function" && on.set(v, qe), qe;
|
|
@@ -2583,7 +2583,7 @@ function Kx() {
|
|
|
2583
2583
|
}
|
|
2584
2584
|
return "";
|
|
2585
2585
|
}
|
|
2586
|
-
var
|
|
2586
|
+
var Ot = Object.prototype.hasOwnProperty, ht = {}, er = S.ReactDebugCurrentFrame;
|
|
2587
2587
|
function an(v) {
|
|
2588
2588
|
if (v) {
|
|
2589
2589
|
var P = v._owner, N = ft(v.type, v._source, P ? P.type : null);
|
|
@@ -2593,7 +2593,7 @@ function Kx() {
|
|
|
2593
2593
|
}
|
|
2594
2594
|
function In(v, P, N, K, re) {
|
|
2595
2595
|
{
|
|
2596
|
-
var se = Function.call.bind(
|
|
2596
|
+
var se = Function.call.bind(Ot);
|
|
2597
2597
|
for (var te in v)
|
|
2598
2598
|
if (se(v, te)) {
|
|
2599
2599
|
var J = void 0;
|
|
@@ -2611,7 +2611,7 @@ function Kx() {
|
|
|
2611
2611
|
}
|
|
2612
2612
|
}
|
|
2613
2613
|
var dt = Array.isArray;
|
|
2614
|
-
function
|
|
2614
|
+
function Ft(v) {
|
|
2615
2615
|
return dt(v);
|
|
2616
2616
|
}
|
|
2617
2617
|
function tr(v) {
|
|
@@ -2620,7 +2620,7 @@ function Kx() {
|
|
|
2620
2620
|
return N;
|
|
2621
2621
|
}
|
|
2622
2622
|
}
|
|
2623
|
-
function
|
|
2623
|
+
function Li(v) {
|
|
2624
2624
|
try {
|
|
2625
2625
|
return cn(v), !1;
|
|
2626
2626
|
} catch {
|
|
@@ -2631,7 +2631,7 @@ function Kx() {
|
|
|
2631
2631
|
return "" + v;
|
|
2632
2632
|
}
|
|
2633
2633
|
function xr(v) {
|
|
2634
|
-
if (
|
|
2634
|
+
if (Li(v))
|
|
2635
2635
|
return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tr(v)), cn(v);
|
|
2636
2636
|
}
|
|
2637
2637
|
var nt = S.ReactCurrentOwner, Tn = {
|
|
@@ -2642,7 +2642,7 @@ function Kx() {
|
|
|
2642
2642
|
}, Dn, On, ln;
|
|
2643
2643
|
ln = {};
|
|
2644
2644
|
function br(v) {
|
|
2645
|
-
if (
|
|
2645
|
+
if (Ot.call(v, "ref")) {
|
|
2646
2646
|
var P = Object.getOwnPropertyDescriptor(v, "ref").get;
|
|
2647
2647
|
if (P && P.isReactWarning)
|
|
2648
2648
|
return !1;
|
|
@@ -2650,7 +2650,7 @@ function Kx() {
|
|
|
2650
2650
|
return v.ref !== void 0;
|
|
2651
2651
|
}
|
|
2652
2652
|
function Tr(v) {
|
|
2653
|
-
if (
|
|
2653
|
+
if (Ot.call(v, "key")) {
|
|
2654
2654
|
var P = Object.getOwnPropertyDescriptor(v, "key").get;
|
|
2655
2655
|
if (P && P.isReactWarning)
|
|
2656
2656
|
return !1;
|
|
@@ -2714,12 +2714,12 @@ function Kx() {
|
|
|
2714
2714
|
value: re
|
|
2715
2715
|
}), Object.freeze && (Object.freeze(J.props), Object.freeze(J)), J;
|
|
2716
2716
|
};
|
|
2717
|
-
function
|
|
2717
|
+
function Ni(v, P, N, K, re) {
|
|
2718
2718
|
{
|
|
2719
2719
|
var se, te = {}, J = null, we = null;
|
|
2720
2720
|
N !== void 0 && (xr(N), J = "" + N), Tr(P) && (xr(P.key), J = "" + P.key), br(P) && (we = P.ref, wr(P, re));
|
|
2721
2721
|
for (se in P)
|
|
2722
|
-
|
|
2722
|
+
Ot.call(P, se) && !Tn.hasOwnProperty(se) && (te[se] = P[se]);
|
|
2723
2723
|
if (v && v.defaultProps) {
|
|
2724
2724
|
var ue = v.defaultProps;
|
|
2725
2725
|
for (se in ue)
|
|
@@ -2757,7 +2757,7 @@ Check the render method of \`` + v + "`.";
|
|
|
2757
2757
|
return "";
|
|
2758
2758
|
}
|
|
2759
2759
|
}
|
|
2760
|
-
function
|
|
2760
|
+
function Bi(v) {
|
|
2761
2761
|
return "";
|
|
2762
2762
|
}
|
|
2763
2763
|
var Cr = {};
|
|
@@ -2790,7 +2790,7 @@ Check the top-level render call using <` + N + ">.");
|
|
|
2790
2790
|
{
|
|
2791
2791
|
if (typeof v != "object")
|
|
2792
2792
|
return;
|
|
2793
|
-
if (
|
|
2793
|
+
if (Ft(v))
|
|
2794
2794
|
for (var N = 0; N < v.length; N++) {
|
|
2795
2795
|
var K = v[N];
|
|
2796
2796
|
Ln(K) && Pr(K, P);
|
|
@@ -2805,7 +2805,7 @@ Check the top-level render call using <` + N + ">.");
|
|
|
2805
2805
|
}
|
|
2806
2806
|
}
|
|
2807
2807
|
}
|
|
2808
|
-
function
|
|
2808
|
+
function ki(v) {
|
|
2809
2809
|
{
|
|
2810
2810
|
var P = v.type;
|
|
2811
2811
|
if (P == null || typeof P == "string")
|
|
@@ -2849,19 +2849,19 @@ Check the top-level render call using <` + N + ">.");
|
|
|
2849
2849
|
if (!te) {
|
|
2850
2850
|
var J = "";
|
|
2851
2851
|
(v === void 0 || typeof v == "object" && v !== null && Object.keys(v).length === 0) && (J += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
2852
|
-
var we =
|
|
2852
|
+
var we = Bi();
|
|
2853
2853
|
we ? J += we : J += Mr();
|
|
2854
2854
|
var ue;
|
|
2855
|
-
v === null ? ue = "null" :
|
|
2855
|
+
v === null ? ue = "null" : Ft(v) ? ue = "array" : v !== void 0 && v.$$typeof === t ? (ue = "<" + ($(v.type) || "Unknown") + " />", J = " Did you accidentally export a JSX literal instead of a component?") : ue = typeof v, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ue, J);
|
|
2856
2856
|
}
|
|
2857
|
-
var he =
|
|
2857
|
+
var he = Ni(v, P, N, re, se);
|
|
2858
2858
|
if (he == null)
|
|
2859
2859
|
return he;
|
|
2860
2860
|
if (te) {
|
|
2861
2861
|
var Ee = P.children;
|
|
2862
2862
|
if (Ee !== void 0)
|
|
2863
2863
|
if (K)
|
|
2864
|
-
if (
|
|
2864
|
+
if (Ft(Ee)) {
|
|
2865
2865
|
for (var pt = 0; pt < Ee.length; pt++)
|
|
2866
2866
|
Ir(Ee[pt], v);
|
|
2867
2867
|
Object.freeze && Object.freeze(Ee);
|
|
@@ -2870,31 +2870,31 @@ Check the top-level render call using <` + N + ">.");
|
|
|
2870
2870
|
else
|
|
2871
2871
|
Ir(Ee, v);
|
|
2872
2872
|
}
|
|
2873
|
-
if (
|
|
2873
|
+
if (Ot.call(P, "key")) {
|
|
2874
2874
|
var qe = $(v), Se = Object.keys(P).filter(function(Qr) {
|
|
2875
2875
|
return Qr !== "key";
|
|
2876
2876
|
}), Bn = Se.length > 0 ? "{key: someKey, " + Se.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
2877
2877
|
if (!Or[qe + Bn]) {
|
|
2878
|
-
var
|
|
2878
|
+
var Gi = Se.length > 0 ? "{" + Se.join(": ..., ") + ": ...}" : "{}";
|
|
2879
2879
|
A(`A props object containing a "key" prop is being spread into JSX:
|
|
2880
2880
|
let props = %s;
|
|
2881
2881
|
<%s {...props} />
|
|
2882
2882
|
React keys must be passed directly to JSX without using spread:
|
|
2883
2883
|
let props = %s;
|
|
2884
|
-
<%s key={someKey} {...props} />`, Bn, qe,
|
|
2884
|
+
<%s key={someKey} {...props} />`, Bn, qe, Gi, qe), Or[qe + Bn] = !0;
|
|
2885
2885
|
}
|
|
2886
2886
|
}
|
|
2887
|
-
return v === i ? Dr(he) :
|
|
2887
|
+
return v === i ? Dr(he) : ki(he), he;
|
|
2888
2888
|
}
|
|
2889
2889
|
}
|
|
2890
|
-
function
|
|
2890
|
+
function Ui(v, P, N) {
|
|
2891
2891
|
return Nn(v, P, N, !0);
|
|
2892
2892
|
}
|
|
2893
2893
|
function zi(v, P, N) {
|
|
2894
2894
|
return Nn(v, P, N, !1);
|
|
2895
2895
|
}
|
|
2896
|
-
var
|
|
2897
|
-
ho.Fragment = i, ho.jsx =
|
|
2896
|
+
var Hi = zi, Wi = Ui;
|
|
2897
|
+
ho.Fragment = i, ho.jsx = Hi, ho.jsxs = Wi;
|
|
2898
2898
|
}()), ho;
|
|
2899
2899
|
}
|
|
2900
2900
|
process.env.NODE_ENV === "production" ? Lc.exports = Yx() : Lc.exports = Kx();
|
|
@@ -2933,7 +2933,7 @@ const Xh = ({ sourceCamera: a, targetCamera: t, distance: n, controls: i }) => {
|
|
|
2933
2933
|
}, hc = 1e-6;
|
|
2934
2934
|
class eb extends Gh {
|
|
2935
2935
|
constructor(t, n = null) {
|
|
2936
|
-
super(t, n), this.state = Pe.NONE, this.enabled = !0, this.target = new X(), this.cursor = new X(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: xt.ROTATE, MIDDLE: xt.DOLLY, RIGHT: xt.PAN }, this.touches = { ONE:
|
|
2936
|
+
super(t, n), this.state = Pe.NONE, this.enabled = !0, this.target = new X(), this.cursor = new X(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: xt.ROTATE, MIDDLE: xt.DOLLY, RIGHT: xt.PAN }, this.touches = { ONE: Ct.ROTATE, TWO: Ct.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new X(), this._lastQuaternion = new Kr(), this._lastTargetPosition = new X(), this._quat = new Kr().setFromUnitVectors(t.up, new X(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new As(), this._sphericalDelta = new As(), this._scale = 1, this._panOffset = new X(), this._rotateStart = new ye(), this._rotateEnd = new ye(), this._rotateDelta = new ye(), this._panStart = new ye(), this._panEnd = new ye(), this._panDelta = new ye(), this._dollyStart = new ye(), this._dollyEnd = new ye(), this._dollyDelta = new ye(), this._dollyDirection = new X(), this._mouse = new ye(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = nb.bind(this), this._onPointerDown = tb.bind(this), this._onPointerUp = rb.bind(this), this._onContextMenu = ub.bind(this), this._onMouseWheel = ob.bind(this), this._onKeyDown = ab.bind(this), this._onTouchStart = cb.bind(this), this._onTouchMove = lb.bind(this), this._onMouseDown = ib.bind(this), this._onMouseMove = sb.bind(this), this._interceptControlDown = fb.bind(this), this._interceptControlUp = hb.bind(this), this.domElement !== null && this.connect(), this.update();
|
|
2937
2937
|
}
|
|
2938
2938
|
connect() {
|
|
2939
2939
|
this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
|
|
@@ -3276,11 +3276,11 @@ function cb(a) {
|
|
|
3276
3276
|
switch (this._trackPointer(a), this._pointers.length) {
|
|
3277
3277
|
case 1:
|
|
3278
3278
|
switch (this.touches.ONE) {
|
|
3279
|
-
case
|
|
3279
|
+
case Ct.ROTATE:
|
|
3280
3280
|
if (this.enableRotate === !1) return;
|
|
3281
3281
|
this._handleTouchStartRotate(a), this.state = Pe.TOUCH_ROTATE;
|
|
3282
3282
|
break;
|
|
3283
|
-
case
|
|
3283
|
+
case Ct.PAN:
|
|
3284
3284
|
if (this.enablePan === !1) return;
|
|
3285
3285
|
this._handleTouchStartPan(a), this.state = Pe.TOUCH_PAN;
|
|
3286
3286
|
break;
|
|
@@ -3290,11 +3290,11 @@ function cb(a) {
|
|
|
3290
3290
|
break;
|
|
3291
3291
|
case 2:
|
|
3292
3292
|
switch (this.touches.TWO) {
|
|
3293
|
-
case
|
|
3293
|
+
case Ct.DOLLY_PAN:
|
|
3294
3294
|
if (this.enableZoom === !1 && this.enablePan === !1) return;
|
|
3295
3295
|
this._handleTouchStartDollyPan(a), this.state = Pe.TOUCH_DOLLY_PAN;
|
|
3296
3296
|
break;
|
|
3297
|
-
case
|
|
3297
|
+
case Ct.DOLLY_ROTATE:
|
|
3298
3298
|
if (this.enableZoom === !1 && this.enableRotate === !1) return;
|
|
3299
3299
|
this._handleTouchStartDollyRotate(a), this.state = Pe.TOUCH_DOLLY_ROTATE;
|
|
3300
3300
|
break;
|
|
@@ -3600,63 +3600,63 @@ class mb {
|
|
|
3600
3600
|
}
|
|
3601
3601
|
}
|
|
3602
3602
|
const gb = ({ camera: a, controls: t, className: n, render: i }) => {
|
|
3603
|
-
const s =
|
|
3603
|
+
const s = Ht(null), l = Ht(new W.Scene()).current, [o] = Ei(() => Qx()), f = Ht(new W.PerspectiveCamera(50, 1, 0.1, 100)).current, u = Ht(null), [m, g] = Ei(!1), p = Ht(null), h = Ht(null), b = Ht(new W.Raycaster()).current, w = Ht(new W.Vector2()).current, E = En(() => {
|
|
3604
3604
|
o && (i(), o.render(l, f));
|
|
3605
|
-
}, [i, o, l, f]), _ = (
|
|
3605
|
+
}, [i, o, l, f]), _ = (U, z, V, Z) => {
|
|
3606
3606
|
const Y = performance.now(), $ = () => {
|
|
3607
3607
|
const ee = performance.now() - Y, oe = Math.min(ee / V, 1);
|
|
3608
|
-
a.position.lerpVectors(
|
|
3608
|
+
a.position.lerpVectors(U, z, oe), t == null || t.update(), Z(), oe < 1 && requestAnimationFrame($);
|
|
3609
3609
|
};
|
|
3610
3610
|
requestAnimationFrame($);
|
|
3611
|
-
}, S = En((
|
|
3611
|
+
}, S = En((U) => {
|
|
3612
3612
|
if (!a || !t) return;
|
|
3613
|
-
const
|
|
3613
|
+
const z = a.position.length(), V = U.clone().multiplyScalar(z);
|
|
3614
3614
|
_(a.position.clone(), V, 400, E), a.lookAt(new W.Vector3(0, 0, 0)), a.up.set(0, 1, 0), t.target.set(0, 0, 0);
|
|
3615
|
-
}, [a, t, E]), A = En((
|
|
3615
|
+
}, [a, t, E]), A = En((U) => {
|
|
3616
3616
|
if (!o) return;
|
|
3617
|
-
const
|
|
3618
|
-
w.x = (
|
|
3617
|
+
const z = o.domElement.getBoundingClientRect();
|
|
3618
|
+
w.x = (U.clientX - z.left) / z.width * 2 - 1, w.y = -((U.clientY - z.top) / z.height) * 2 + 1;
|
|
3619
3619
|
}, [o, w]), M = En(() => {
|
|
3620
|
-
var
|
|
3620
|
+
var U;
|
|
3621
3621
|
if (!f || !l) return null;
|
|
3622
3622
|
b.setFromCamera(w, f);
|
|
3623
|
-
const
|
|
3624
|
-
return ((
|
|
3625
|
-
}, [f, l, b, w]), I = En((
|
|
3626
|
-
const
|
|
3627
|
-
if (
|
|
3628
|
-
|
|
3629
|
-
const V =
|
|
3623
|
+
const z = b.intersectObjects(l.children, !0), V = ["Wireframe", ""];
|
|
3624
|
+
return ((U = z.find((Z) => !V.includes(Z.object.name))) == null ? void 0 : U.object) || null;
|
|
3625
|
+
}, [f, l, b, w]), I = En((U) => {
|
|
3626
|
+
const z = U == null ? void 0 : U.userData.gizmoCube;
|
|
3627
|
+
if (U && z) {
|
|
3628
|
+
z.handleClick();
|
|
3629
|
+
const V = z.vectorToCube;
|
|
3630
3630
|
V && S(V);
|
|
3631
3631
|
}
|
|
3632
|
-
}, [S]), O = En((
|
|
3633
|
-
p.current = Date.now(), h.current = { x:
|
|
3634
|
-
}, []), B = En((
|
|
3632
|
+
}, [S]), O = En((U) => {
|
|
3633
|
+
p.current = Date.now(), h.current = { x: U.clientX, y: U.clientY }, g(!1);
|
|
3634
|
+
}, []), B = En((U) => {
|
|
3635
3635
|
if (!u.current) return;
|
|
3636
|
-
A(
|
|
3637
|
-
const
|
|
3638
|
-
if (
|
|
3639
|
-
|
|
3636
|
+
A(U);
|
|
3637
|
+
const z = M();
|
|
3638
|
+
if (z && z.userData.gizmoCube)
|
|
3639
|
+
z.userData.gizmoCube.highlightObject(z);
|
|
3640
3640
|
else {
|
|
3641
3641
|
const V = l.children[0];
|
|
3642
3642
|
V && V.userData.gizmoCube && V.userData.gizmoCube.highlightObject(null);
|
|
3643
3643
|
}
|
|
3644
3644
|
E();
|
|
3645
|
-
}, [A, M, l, E]), L = En((
|
|
3646
|
-
const
|
|
3647
|
-
if (!m &&
|
|
3648
|
-
A(
|
|
3645
|
+
}, [A, M, l, E]), L = En((U) => {
|
|
3646
|
+
const z = p.current ? Date.now() - p.current : 0;
|
|
3647
|
+
if (!m && z < 200) {
|
|
3648
|
+
A(U);
|
|
3649
3649
|
const V = M();
|
|
3650
3650
|
I(V);
|
|
3651
3651
|
}
|
|
3652
3652
|
p.current = null, h.current = null, g(!1);
|
|
3653
3653
|
}, [m, A, M, I]);
|
|
3654
3654
|
return ko(() => {
|
|
3655
|
-
const
|
|
3656
|
-
if (!
|
|
3655
|
+
const U = s.current;
|
|
3656
|
+
if (!U || !a || !t || !o) return;
|
|
3657
3657
|
u.current && u.current.dispose();
|
|
3658
|
-
const
|
|
3659
|
-
gizmoDiv:
|
|
3658
|
+
const z = {
|
|
3659
|
+
gizmoDiv: U,
|
|
3660
3660
|
gizmoScene: l,
|
|
3661
3661
|
gizmoRenderer: o,
|
|
3662
3662
|
gizmoCamera: f
|
|
@@ -3669,11 +3669,11 @@ const gb = ({ camera: a, controls: t, className: n, render: i }) => {
|
|
|
3669
3669
|
syncMainCameraWithGizmo: Xx
|
|
3670
3670
|
};
|
|
3671
3671
|
return u.current = new mb({
|
|
3672
|
-
gizmoParams:
|
|
3672
|
+
gizmoParams: z,
|
|
3673
3673
|
mainParams: V,
|
|
3674
3674
|
syncFunctions: Z
|
|
3675
|
-
}),
|
|
3676
|
-
u.current && (u.current.dispose(), u.current = null),
|
|
3675
|
+
}), U.addEventListener("mousedown", O), U.addEventListener("mousemove", B), U.addEventListener("mouseup", L), () => {
|
|
3676
|
+
u.current && (u.current.dispose(), u.current = null), U.removeEventListener("mousedown", O), U.removeEventListener("mousemove", B), U.removeEventListener("mouseup", L);
|
|
3677
3677
|
};
|
|
3678
3678
|
}, [a, t, E, B, O, L]), ko(() => {
|
|
3679
3679
|
a && ($f(f, a), E());
|
|
@@ -3702,7 +3702,7 @@ const gb = ({ camera: a, controls: t, className: n, render: i }) => {
|
|
|
3702
3702
|
function td(a) {
|
|
3703
3703
|
return a.index ? a.index.count : a.attributes.position.count;
|
|
3704
3704
|
}
|
|
3705
|
-
function
|
|
3705
|
+
function Oi(a) {
|
|
3706
3706
|
return td(a) / 3;
|
|
3707
3707
|
}
|
|
3708
3708
|
function nd(a, t = ArrayBuffer) {
|
|
@@ -3717,7 +3717,7 @@ function Tb(a, t) {
|
|
|
3717
3717
|
}
|
|
3718
3718
|
}
|
|
3719
3719
|
function rd(a, t) {
|
|
3720
|
-
const n =
|
|
3720
|
+
const n = Oi(a), i = t || a.drawRange, s = i.start / 3, l = (i.start + i.count) / 3, o = Math.max(0, s), f = Math.min(n, l) - o;
|
|
3721
3721
|
return [{
|
|
3722
3722
|
offset: Math.floor(o),
|
|
3723
3723
|
count: Math.floor(f)
|
|
@@ -3742,7 +3742,7 @@ function id(a, t) {
|
|
|
3742
3742
|
return n;
|
|
3743
3743
|
}
|
|
3744
3744
|
function wb(a, t) {
|
|
3745
|
-
const n =
|
|
3745
|
+
const n = Oi(a), i = id(a, t).sort((o, f) => o.offset - f.offset), s = i[i.length - 1];
|
|
3746
3746
|
s.count = Math.min(n - s.offset, s.count);
|
|
3747
3747
|
let l = 0;
|
|
3748
3748
|
return i.forEach(({ count: o }) => l += o), n !== l;
|
|
@@ -3752,15 +3752,15 @@ function mc(a, t, n, i, s) {
|
|
|
3752
3752
|
for (let S = t * 6, A = (t + n) * 6; S < A; S += 6) {
|
|
3753
3753
|
const M = a[S + 0], I = a[S + 1], O = M - I, B = M + I;
|
|
3754
3754
|
O < l && (l = O), B > u && (u = B), M < p && (p = M), M > w && (w = M);
|
|
3755
|
-
const L = a[S + 2],
|
|
3756
|
-
|
|
3755
|
+
const L = a[S + 2], U = a[S + 3], z = L - U, V = L + U;
|
|
3756
|
+
z < o && (o = z), V > m && (m = V), L < h && (h = L), L > E && (E = L);
|
|
3757
3757
|
const Z = a[S + 4], Y = a[S + 5], $ = Z - Y, ee = Z + Y;
|
|
3758
3758
|
$ < f && (f = $), ee > g && (g = ee), Z < b && (b = Z), Z > _ && (_ = Z);
|
|
3759
3759
|
}
|
|
3760
3760
|
i[0] = l, i[1] = o, i[2] = f, i[3] = u, i[4] = m, i[5] = g, s[0] = p, s[1] = h, s[2] = b, s[3] = w, s[4] = E, s[5] = _;
|
|
3761
3761
|
}
|
|
3762
3762
|
function Ab(a, t = null, n = null, i = null) {
|
|
3763
|
-
const s = a.attributes.position, l = a.index ? a.index.array : null, o =
|
|
3763
|
+
const s = a.attributes.position, l = a.index ? a.index.array : null, o = Oi(a), f = s.normalized;
|
|
3764
3764
|
let u;
|
|
3765
3765
|
t === null ? (u = new Float32Array(o * 6 * 4), n = 0, i = o) : (u = t, n = n || 0, i = i || o);
|
|
3766
3766
|
const m = s.array, g = s.offset || 0;
|
|
@@ -3776,10 +3776,10 @@ function Ab(a, t = null, n = null, i = null) {
|
|
|
3776
3776
|
f ? (I = s[h[M]](_), O = s[h[M]](S), B = s[h[M]](A)) : (I = m[_ + M], O = m[S + M], B = m[A + M]);
|
|
3777
3777
|
let L = I;
|
|
3778
3778
|
O < L && (L = O), B < L && (L = B);
|
|
3779
|
-
let
|
|
3780
|
-
O >
|
|
3781
|
-
const
|
|
3782
|
-
u[E + V + 0] = L +
|
|
3779
|
+
let U = I;
|
|
3780
|
+
O > U && (U = O), B > U && (U = B);
|
|
3781
|
+
const z = (U - L) / 2, V = M * 2;
|
|
3782
|
+
u[E + V + 0] = L + z, u[E + V + 1] = z + (Math.abs(L) + z) * bb;
|
|
3783
3783
|
}
|
|
3784
3784
|
}
|
|
3785
3785
|
return u;
|
|
@@ -3811,7 +3811,7 @@ function go(a, t, n) {
|
|
|
3811
3811
|
o < n[i] && (n[i] = o), f > n[i + 3] && (n[i + 3] = f);
|
|
3812
3812
|
}
|
|
3813
3813
|
}
|
|
3814
|
-
function
|
|
3814
|
+
function fs(a) {
|
|
3815
3815
|
const t = a[3] - a[0], n = a[4] - a[1], i = a[5] - a[2];
|
|
3816
3816
|
return 2 * (t * n + n * i + i * t);
|
|
3817
3817
|
}
|
|
@@ -3829,7 +3829,7 @@ function Rb(a, t, n, i, s, l) {
|
|
|
3829
3829
|
else if (l === xb)
|
|
3830
3830
|
o = eh(a), o !== -1 && (f = Eb(n, i, s, o));
|
|
3831
3831
|
else if (l === ed) {
|
|
3832
|
-
const u =
|
|
3832
|
+
const u = fs(a);
|
|
3833
3833
|
let m = dc * s;
|
|
3834
3834
|
const g = i * 6, p = (i + s) * 6;
|
|
3835
3835
|
for (let h = 0; h < 3; h++) {
|
|
@@ -3844,10 +3844,10 @@ function Rb(a, t, n, i, s, l) {
|
|
|
3844
3844
|
const {
|
|
3845
3845
|
bounds: B,
|
|
3846
3846
|
leftCacheBounds: L,
|
|
3847
|
-
rightCacheBounds:
|
|
3847
|
+
rightCacheBounds: U
|
|
3848
3848
|
} = O;
|
|
3849
|
-
for (let
|
|
3850
|
-
z
|
|
3849
|
+
for (let z = 0; z < 3; z++)
|
|
3850
|
+
U[z] = 1 / 0, U[z + 3] = -1 / 0, L[z] = 1 / 0, L[z + 3] = -1 / 0, B[z] = 1 / 0, B[z + 3] = -1 / 0;
|
|
3851
3851
|
go(I, n, B);
|
|
3852
3852
|
}
|
|
3853
3853
|
S.sort(Sb);
|
|
@@ -3865,11 +3865,11 @@ function Rb(a, t, n, i, s, l) {
|
|
|
3865
3865
|
}
|
|
3866
3866
|
}
|
|
3867
3867
|
for (let I = 0; I < M; I++) {
|
|
3868
|
-
const O = S[I], B = O.count, L = s - O.count,
|
|
3868
|
+
const O = S[I], B = O.count, L = s - O.count, U = O.leftCacheBounds, z = O.rightCacheBounds;
|
|
3869
3869
|
let V = 0;
|
|
3870
|
-
B !== 0 && (V =
|
|
3870
|
+
B !== 0 && (V = fs(U) / u);
|
|
3871
3871
|
let Z = 0;
|
|
3872
|
-
L !== 0 && (Z =
|
|
3872
|
+
L !== 0 && (Z = fs(z) / u);
|
|
3873
3873
|
const Y = Jf + dc * (V * B + Z * L);
|
|
3874
3874
|
Y < m && (o = h, m = Y, f = O.candidate);
|
|
3875
3875
|
}
|
|
@@ -3895,13 +3895,13 @@ function Rb(a, t, n, i, s, l) {
|
|
|
3895
3895
|
}
|
|
3896
3896
|
let A = 0;
|
|
3897
3897
|
for (let M = 0; M < Yn - 1; M++) {
|
|
3898
|
-
const I = hr[M], O = I.count, B = I.bounds,
|
|
3898
|
+
const I = hr[M], O = I.count, B = I.bounds, U = hr[M + 1].rightCacheBounds;
|
|
3899
3899
|
O !== 0 && (A === 0 ? th(B, vo) : nh(B, vo, vo)), A += O;
|
|
3900
|
-
let
|
|
3901
|
-
A !== 0 && (
|
|
3900
|
+
let z = 0, V = 0;
|
|
3901
|
+
A !== 0 && (z = fs(vo) / u);
|
|
3902
3902
|
const Z = s - A;
|
|
3903
|
-
Z !== 0 && (V =
|
|
3904
|
-
const Y = Jf + dc * (
|
|
3903
|
+
Z !== 0 && (V = fs(U) / u);
|
|
3904
|
+
const Y = Jf + dc * (z * A + V * Z);
|
|
3905
3905
|
Y < m && (o = h, m = Y, f = I.candidate);
|
|
3906
3906
|
}
|
|
3907
3907
|
}
|
|
@@ -3966,7 +3966,7 @@ function Cb(a, t, n, i, s, l) {
|
|
|
3966
3966
|
function yt(a, t) {
|
|
3967
3967
|
return t[a + 15] === 65535;
|
|
3968
3968
|
}
|
|
3969
|
-
function
|
|
3969
|
+
function Pt(a, t) {
|
|
3970
3970
|
return t[a + 6];
|
|
3971
3971
|
}
|
|
3972
3972
|
function Gt(a, t) {
|
|
@@ -4028,17 +4028,17 @@ function Ob(a, t, n, i, s) {
|
|
|
4028
4028
|
strategy: u,
|
|
4029
4029
|
onProgress: m,
|
|
4030
4030
|
indirect: g
|
|
4031
|
-
} = s, p = a._indirectBuffer, h = a.geometry, b = h.index ? h.index.array : null, w = g ? Cb : Mb, E =
|
|
4031
|
+
} = s, p = a._indirectBuffer, h = a.geometry, b = h.index ? h.index.array : null, w = g ? Cb : Mb, E = Oi(h), _ = new Float32Array(6);
|
|
4032
4032
|
let S = !1;
|
|
4033
4033
|
const A = new gc();
|
|
4034
4034
|
return mc(t, n, i, A.boundingData, _), I(A, n, i, _), A;
|
|
4035
4035
|
function M(O) {
|
|
4036
4036
|
m && m(O / E);
|
|
4037
4037
|
}
|
|
4038
|
-
function I(O, B, L,
|
|
4039
|
-
if (!S &&
|
|
4038
|
+
function I(O, B, L, U = null, z = 0) {
|
|
4039
|
+
if (!S && z >= l && (S = !0, o && (console.warn(`MeshBVH: Max depth of ${l} reached when generating BVH. Consider increasing maxDepth.`), console.warn(h))), L <= f || z >= l)
|
|
4040
4040
|
return M(B + L), O.offset = B, O.count = L, O;
|
|
4041
|
-
const V = Rb(O.boundingData,
|
|
4041
|
+
const V = Rb(O.boundingData, U, t, B, L, u);
|
|
4042
4042
|
if (V.axis === -1)
|
|
4043
4043
|
return M(B + L), O.offset = B, O.count = L, O;
|
|
4044
4044
|
const Z = w(p, b, t, B, L, V);
|
|
@@ -4047,9 +4047,9 @@ function Ob(a, t, n, i, s) {
|
|
|
4047
4047
|
else {
|
|
4048
4048
|
O.splitAxis = V.axis;
|
|
4049
4049
|
const Y = new gc(), $ = B, ee = Z - B;
|
|
4050
|
-
O.left = Y, mc(t, $, ee, Y.boundingData, _), I(Y, $, ee, _,
|
|
4050
|
+
O.left = Y, mc(t, $, ee, Y.boundingData, _), I(Y, $, ee, _, z + 1);
|
|
4051
4051
|
const oe = new gc(), Ae = Z, Ne = L - ee;
|
|
4052
|
-
O.right = oe, mc(t, Ae, Ne, oe.boundingData, _), I(oe, Ae, Ne, _,
|
|
4052
|
+
O.right = oe, mc(t, Ae, Ne, oe.boundingData, _), I(oe, Ae, Ne, _, z + 1);
|
|
4053
4053
|
}
|
|
4054
4054
|
return O;
|
|
4055
4055
|
}
|
|
@@ -4196,15 +4196,15 @@ yn.prototype.intersectsTriangle = function() {
|
|
|
4196
4196
|
for (let O = 0; O < 3; O++) {
|
|
4197
4197
|
const { start: B, end: L } = g;
|
|
4198
4198
|
B.copy(A[O]), L.copy(A[(O + 1) % 3]), g.delta(o);
|
|
4199
|
-
const
|
|
4200
|
-
if (vc(_.normal.dot(o)) &&
|
|
4199
|
+
const U = vc(_.distanceToPoint(B));
|
|
4200
|
+
if (vc(_.normal.dot(o)) && U) {
|
|
4201
4201
|
S.copy(g), M = 2;
|
|
4202
4202
|
break;
|
|
4203
4203
|
}
|
|
4204
|
-
const
|
|
4205
|
-
if (!
|
|
4204
|
+
const z = _.intersectLine(g, b);
|
|
4205
|
+
if (!z && U && b.copy(B), (z || U) && !vc(b.distanceTo(L))) {
|
|
4206
4206
|
if (M <= 1)
|
|
4207
|
-
(M === 1 ? S.start : S.end).copy(b),
|
|
4207
|
+
(M === 1 ? S.start : S.end).copy(b), U && (I = M);
|
|
4208
4208
|
else if (M >= 2) {
|
|
4209
4209
|
(I === 1 ? S.start : S.end).copy(b), M = 2;
|
|
4210
4210
|
break;
|
|
@@ -4221,20 +4221,20 @@ yn.prototype.intersectsTriangle = function() {
|
|
|
4221
4221
|
if (Math.abs(M.normal.dot(I.normal)) > 1 - 1e-10) {
|
|
4222
4222
|
const O = this.satBounds, B = this.satAxes;
|
|
4223
4223
|
n[0] = _.a, n[1] = _.b, n[2] = _.c;
|
|
4224
|
-
for (let
|
|
4225
|
-
const V = O[
|
|
4224
|
+
for (let z = 0; z < 4; z++) {
|
|
4225
|
+
const V = O[z], Z = B[z];
|
|
4226
4226
|
if (i.setFromPoints(Z, n), V.isSeparated(i)) return !1;
|
|
4227
4227
|
}
|
|
4228
|
-
const L = _.satBounds,
|
|
4228
|
+
const L = _.satBounds, U = _.satAxes;
|
|
4229
4229
|
t[0] = this.a, t[1] = this.b, t[2] = this.c;
|
|
4230
|
-
for (let
|
|
4231
|
-
const V = L[
|
|
4230
|
+
for (let z = 0; z < 4; z++) {
|
|
4231
|
+
const V = L[z], Z = U[z];
|
|
4232
4232
|
if (i.setFromPoints(Z, t), V.isSeparated(i)) return !1;
|
|
4233
4233
|
}
|
|
4234
|
-
for (let
|
|
4235
|
-
const V = B[
|
|
4234
|
+
for (let z = 0; z < 4; z++) {
|
|
4235
|
+
const V = B[z];
|
|
4236
4236
|
for (let Z = 0; Z < 4; Z++) {
|
|
4237
|
-
const Y =
|
|
4237
|
+
const Y = U[Z];
|
|
4238
4238
|
if (l.crossVectors(V, Y), i.setFromPoints(l, t), s.setFromPoints(l, n), i.isSeparated(s)) return !1;
|
|
4239
4239
|
}
|
|
4240
4240
|
}
|
|
@@ -4254,8 +4254,8 @@ yn.prototype.intersectsTriangle = function() {
|
|
|
4254
4254
|
let $ = h.start;
|
|
4255
4255
|
h.start = h.end, h.end = $;
|
|
4256
4256
|
}
|
|
4257
|
-
const L = p.start.dot(f),
|
|
4258
|
-
return L !== V &&
|
|
4257
|
+
const L = p.start.dot(f), U = p.end.dot(f), z = h.start.dot(f), V = h.end.dot(f), Z = U < z, Y = L < V;
|
|
4258
|
+
return L !== V && z !== U && Z === Y ? !1 : (S && (m.subVectors(p.start, h.start), m.dot(f) > 0 ? S.start.copy(p.start) : S.start.copy(h.start), m.subVectors(p.end, h.end), m.dot(f) < 0 ? S.end.copy(p.end) : S.end.copy(h.end)), !0);
|
|
4259
4259
|
}
|
|
4260
4260
|
};
|
|
4261
4261
|
}();
|
|
@@ -4388,8 +4388,8 @@ bt.prototype.distanceToBox = function() {
|
|
|
4388
4388
|
for (let _ = 0; _ < 3; _++)
|
|
4389
4389
|
for (let S = 0; S <= 1; S++)
|
|
4390
4390
|
for (let A = 0; A <= 1; A++) {
|
|
4391
|
-
const M = (_ + 1) % 3, I = (_ + 2) % 3, O = S << M | A << I, B = 1 << _ | S << M | A << I, L = b[O],
|
|
4392
|
-
t[E].set(L,
|
|
4391
|
+
const M = (_ + 1) % 3, I = (_ + 2) % 3, O = S << M | A << I, B = 1 << _ | S << M | A << I, L = b[O], U = b[B];
|
|
4392
|
+
t[E].set(L, U);
|
|
4393
4393
|
const V = a[_], Z = a[M], Y = a[I], $ = n[E], ee = $.start, oe = $.end;
|
|
4394
4394
|
ee[V] = p[V], ee[Z] = S ? p[Z] : h[Z], ee[Y] = A ? p[Y] : h[Z], oe[V] = h[V], oe[Z] = S ? p[Z] : h[Z], oe[Y] = A ? p[Y] : h[Z], E++;
|
|
4395
4395
|
}
|
|
@@ -4432,7 +4432,7 @@ class kb extends tl {
|
|
|
4432
4432
|
}
|
|
4433
4433
|
}
|
|
4434
4434
|
const rn = /* @__PURE__ */ new kb();
|
|
4435
|
-
class
|
|
4435
|
+
class Ub {
|
|
4436
4436
|
constructor() {
|
|
4437
4437
|
this.float32Array = null, this.uint16Array = null, this.uint32Array = null;
|
|
4438
4438
|
const t = [];
|
|
@@ -4444,21 +4444,21 @@ class zb {
|
|
|
4444
4444
|
};
|
|
4445
4445
|
}
|
|
4446
4446
|
}
|
|
4447
|
-
const Le = new
|
|
4448
|
-
let pr,
|
|
4447
|
+
const Le = new Ub();
|
|
4448
|
+
let pr, Ci;
|
|
4449
4449
|
const di = [], yo = /* @__PURE__ */ new tl(() => new _n());
|
|
4450
|
-
function
|
|
4451
|
-
pr = yo.getPrimitive(),
|
|
4450
|
+
function zb(a, t, n, i, s, l) {
|
|
4451
|
+
pr = yo.getPrimitive(), Ci = yo.getPrimitive(), di.push(pr, Ci), Le.setBuffer(a._roots[t]);
|
|
4452
4452
|
const o = kc(0, a.geometry, n, i, s, l);
|
|
4453
|
-
Le.clearBuffer(), yo.releasePrimitive(pr), yo.releasePrimitive(
|
|
4453
|
+
Le.clearBuffer(), yo.releasePrimitive(pr), yo.releasePrimitive(Ci), di.pop(), di.pop();
|
|
4454
4454
|
const f = di.length;
|
|
4455
|
-
return f > 0 && (
|
|
4455
|
+
return f > 0 && (Ci = di[f - 1], pr = di[f - 2]), o;
|
|
4456
4456
|
}
|
|
4457
4457
|
function kc(a, t, n, i, s = null, l = 0, o = 0) {
|
|
4458
4458
|
const { float32Array: f, uint16Array: u, uint32Array: m } = Le;
|
|
4459
4459
|
let g = a * 2;
|
|
4460
4460
|
if (yt(g, u)) {
|
|
4461
|
-
const h =
|
|
4461
|
+
const h = Pt(a, m), b = Gt(g, u);
|
|
4462
4462
|
return We(a, f, pr), i(h, b, !1, o, l + a, pr);
|
|
4463
4463
|
} else {
|
|
4464
4464
|
let V = function(Y) {
|
|
@@ -4466,17 +4466,17 @@ function kc(a, t, n, i, s = null, l = 0, o = 0) {
|
|
|
4466
4466
|
let oe = Y * 2;
|
|
4467
4467
|
for (; !yt(oe, $); )
|
|
4468
4468
|
Y = nn(Y), oe = Y * 2;
|
|
4469
|
-
return
|
|
4469
|
+
return Pt(Y, ee);
|
|
4470
4470
|
}, Z = function(Y) {
|
|
4471
4471
|
const { uint16Array: $, uint32Array: ee } = Le;
|
|
4472
4472
|
let oe = Y * 2;
|
|
4473
4473
|
for (; !yt(oe, $); )
|
|
4474
4474
|
Y = jt(Y, ee), oe = Y * 2;
|
|
4475
|
-
return
|
|
4475
|
+
return Pt(Y, ee) + Gt(oe, $);
|
|
4476
4476
|
};
|
|
4477
4477
|
const h = nn(a), b = jt(a, m);
|
|
4478
4478
|
let w = h, E = b, _, S, A, M;
|
|
4479
|
-
if (s && (A = pr, M =
|
|
4479
|
+
if (s && (A = pr, M = Ci, We(w, f, A), We(E, f, M), _ = s(A), S = s(M), S < _)) {
|
|
4480
4480
|
w = b, E = h;
|
|
4481
4481
|
const Y = _;
|
|
4482
4482
|
_ = S, S = Y, A = M;
|
|
@@ -4498,14 +4498,14 @@ function kc(a, t, n, i, s = null, l = 0, o = 0) {
|
|
|
4498
4498
|
o + 1
|
|
4499
4499
|
);
|
|
4500
4500
|
if (B) return !0;
|
|
4501
|
-
M =
|
|
4502
|
-
const L = yt(E * 2, u),
|
|
4503
|
-
let
|
|
4504
|
-
if (
|
|
4501
|
+
M = Ci, We(E, f, M);
|
|
4502
|
+
const L = yt(E * 2, u), U = n(M, L, S, o + 1, l + E);
|
|
4503
|
+
let z;
|
|
4504
|
+
if (U === Qf) {
|
|
4505
4505
|
const Y = V(E), ee = Z(E) - Y;
|
|
4506
|
-
|
|
4506
|
+
z = i(Y, ee, !0, o + 1, l + E, M);
|
|
4507
4507
|
} else
|
|
4508
|
-
|
|
4508
|
+
z = U && kc(
|
|
4509
4509
|
E,
|
|
4510
4510
|
t,
|
|
4511
4511
|
n,
|
|
@@ -4514,21 +4514,21 @@ function kc(a, t, n, i, s = null, l = 0, o = 0) {
|
|
|
4514
4514
|
l,
|
|
4515
4515
|
o + 1
|
|
4516
4516
|
);
|
|
4517
|
-
return !!
|
|
4517
|
+
return !!z;
|
|
4518
4518
|
}
|
|
4519
4519
|
}
|
|
4520
|
-
const
|
|
4520
|
+
const hs = /* @__PURE__ */ new X(), yc = /* @__PURE__ */ new X();
|
|
4521
4521
|
function Hb(a, t, n = {}, i = 0, s = 1 / 0) {
|
|
4522
4522
|
const l = i * i, o = s * s;
|
|
4523
4523
|
let f = 1 / 0, u = null;
|
|
4524
4524
|
if (a.shapecast(
|
|
4525
4525
|
{
|
|
4526
|
-
boundsTraverseOrder: (g) => (
|
|
4526
|
+
boundsTraverseOrder: (g) => (hs.copy(t).clamp(g.min, g.max), hs.distanceToSquared(t)),
|
|
4527
4527
|
intersectsBounds: (g, p, h) => h < f && h < o,
|
|
4528
4528
|
intersectsTriangle: (g, p) => {
|
|
4529
|
-
g.closestPointToPoint(t,
|
|
4530
|
-
const h = t.distanceToSquared(
|
|
4531
|
-
return h < f && (yc.copy(
|
|
4529
|
+
g.closestPointToPoint(t, hs);
|
|
4530
|
+
const h = t.distanceToSquared(hs);
|
|
4531
|
+
return h < f && (yc.copy(hs), f = h, u = p), h < l;
|
|
4532
4532
|
}
|
|
4533
4533
|
}
|
|
4534
4534
|
), f === 1 / 0) return null;
|
|
@@ -4608,22 +4608,22 @@ function Yb(a, t = null) {
|
|
|
4608
4608
|
const E = h * 2;
|
|
4609
4609
|
if (f[E + 15] === qo) {
|
|
4610
4610
|
const S = o[h + 6], A = f[E + 14];
|
|
4611
|
-
let M = 1 / 0, I = 1 / 0, O = 1 / 0, B = -1 / 0, L = -1 / 0,
|
|
4612
|
-
for (let
|
|
4613
|
-
let Z = i[
|
|
4611
|
+
let M = 1 / 0, I = 1 / 0, O = 1 / 0, B = -1 / 0, L = -1 / 0, U = -1 / 0;
|
|
4612
|
+
for (let z = 3 * S, V = 3 * (S + A); z < V; z++) {
|
|
4613
|
+
let Z = i[z];
|
|
4614
4614
|
const Y = s.getX(Z), $ = s.getY(Z), ee = s.getZ(Z);
|
|
4615
|
-
Y < M && (M = Y), Y > B && (B = Y), $ < I && (I = $), $ > L && (L = $), ee < O && (O = ee), ee >
|
|
4615
|
+
Y < M && (M = Y), Y > B && (B = Y), $ < I && (I = $), $ > L && (L = $), ee < O && (O = ee), ee > U && (U = ee);
|
|
4616
4616
|
}
|
|
4617
|
-
return u[h + 0] !== M || u[h + 1] !== I || u[h + 2] !== O || u[h + 3] !== B || u[h + 4] !== L || u[h + 5] !==
|
|
4617
|
+
return u[h + 0] !== M || u[h + 1] !== I || u[h + 2] !== O || u[h + 3] !== B || u[h + 4] !== L || u[h + 5] !== U ? (u[h + 0] = M, u[h + 1] = I, u[h + 2] = O, u[h + 3] = B, u[h + 4] = L, u[h + 5] = U, !0) : !1;
|
|
4618
4618
|
} else {
|
|
4619
4619
|
const S = h + 8, A = o[h + 6], M = S + b, I = A + b;
|
|
4620
4620
|
let O = w, B = !1, L = !1;
|
|
4621
4621
|
t ? O || (B = t.has(M), L = t.has(I), O = !B && !L) : (B = !0, L = !0);
|
|
4622
|
-
const
|
|
4622
|
+
const U = O || B, z = O || L;
|
|
4623
4623
|
let V = !1;
|
|
4624
|
-
|
|
4624
|
+
U && (V = p(S, b, O));
|
|
4625
4625
|
let Z = !1;
|
|
4626
|
-
|
|
4626
|
+
z && (Z = p(A, b, O));
|
|
4627
4627
|
const Y = V || Z;
|
|
4628
4628
|
if (Y)
|
|
4629
4629
|
for (let $ = 0; $ < 3; $++) {
|
|
@@ -4666,37 +4666,37 @@ function Xb(a, t, n, i, s, l, o) {
|
|
|
4666
4666
|
return !1;
|
|
4667
4667
|
}
|
|
4668
4668
|
function Zb(a, t, n, i, s, l, o) {
|
|
4669
|
-
Le.setBuffer(a._roots[t]),
|
|
4669
|
+
Le.setBuffer(a._roots[t]), Uc(0, a, n, i, s, l, o), Le.clearBuffer();
|
|
4670
4670
|
}
|
|
4671
|
-
function
|
|
4671
|
+
function Uc(a, t, n, i, s, l, o) {
|
|
4672
4672
|
const { float32Array: f, uint16Array: u, uint32Array: m } = Le, g = a * 2;
|
|
4673
4673
|
if (yt(g, u)) {
|
|
4674
|
-
const h =
|
|
4674
|
+
const h = Pt(a, m), b = Gt(g, u);
|
|
4675
4675
|
jb(t, n, i, h, b, s, l, o);
|
|
4676
4676
|
} else {
|
|
4677
4677
|
const h = nn(a);
|
|
4678
|
-
vr(h, f, i, l, o) &&
|
|
4678
|
+
vr(h, f, i, l, o) && Uc(h, t, n, i, s, l, o);
|
|
4679
4679
|
const b = jt(a, m);
|
|
4680
|
-
vr(b, f, i, l, o) &&
|
|
4680
|
+
vr(b, f, i, l, o) && Uc(b, t, n, i, s, l, o);
|
|
4681
4681
|
}
|
|
4682
4682
|
}
|
|
4683
4683
|
const Qb = ["x", "y", "z"];
|
|
4684
4684
|
function Jb(a, t, n, i, s, l) {
|
|
4685
4685
|
Le.setBuffer(a._roots[t]);
|
|
4686
|
-
const o =
|
|
4686
|
+
const o = zc(0, a, n, i, s, l);
|
|
4687
4687
|
return Le.clearBuffer(), o;
|
|
4688
4688
|
}
|
|
4689
|
-
function
|
|
4689
|
+
function zc(a, t, n, i, s, l) {
|
|
4690
4690
|
const { float32Array: o, uint16Array: f, uint32Array: u } = Le;
|
|
4691
4691
|
let m = a * 2;
|
|
4692
4692
|
if (yt(m, f)) {
|
|
4693
|
-
const p =
|
|
4693
|
+
const p = Pt(a, u), h = Gt(m, f);
|
|
4694
4694
|
return Vb(t, n, i, p, h, s, l);
|
|
4695
4695
|
} else {
|
|
4696
4696
|
const p = Jc(a, u), h = Qb[p], w = i.direction[h] >= 0;
|
|
4697
4697
|
let E, _;
|
|
4698
4698
|
w ? (E = nn(a), _ = jt(a, u)) : (E = jt(a, u), _ = nn(a));
|
|
4699
|
-
const A = vr(E, o, i, s, l) ?
|
|
4699
|
+
const A = vr(E, o, i, s, l) ? zc(E, t, n, i, s, l) : null;
|
|
4700
4700
|
if (A) {
|
|
4701
4701
|
const O = A.point[h];
|
|
4702
4702
|
if (w ? O <= o[_ + p] : (
|
|
@@ -4705,11 +4705,11 @@ function Uc(a, t, n, i, s, l) {
|
|
|
4705
4705
|
))
|
|
4706
4706
|
return A;
|
|
4707
4707
|
}
|
|
4708
|
-
const I = vr(_, o, i, s, l) ?
|
|
4708
|
+
const I = vr(_, o, i, s, l) ? zc(_, t, n, i, s, l) : null;
|
|
4709
4709
|
return A && I ? A.distance <= I.distance ? A : I : A || I || null;
|
|
4710
4710
|
}
|
|
4711
4711
|
}
|
|
4712
|
-
const wo = /* @__PURE__ */ new _n(), vi = /* @__PURE__ */ new yn(), yi = /* @__PURE__ */ new yn(),
|
|
4712
|
+
const wo = /* @__PURE__ */ new _n(), vi = /* @__PURE__ */ new yn(), yi = /* @__PURE__ */ new yn(), ds = /* @__PURE__ */ new Je(), oh = /* @__PURE__ */ new bt(), Ao = /* @__PURE__ */ new bt();
|
|
4713
4713
|
function eT(a, t, n, i) {
|
|
4714
4714
|
Le.setBuffer(a._roots[t]);
|
|
4715
4715
|
const s = Hc(0, a, n, i);
|
|
@@ -4719,9 +4719,9 @@ function Hc(a, t, n, i, s = null) {
|
|
|
4719
4719
|
const { float32Array: l, uint16Array: o, uint32Array: f } = Le;
|
|
4720
4720
|
let u = a * 2;
|
|
4721
4721
|
if (s === null && (n.boundingBox || n.computeBoundingBox(), oh.set(n.boundingBox.min, n.boundingBox.max, i), s = oh), yt(u, o)) {
|
|
4722
|
-
const g = t.geometry, p = g.index, h = g.attributes.position, b = n.index, w = n.attributes.position, E =
|
|
4723
|
-
if (
|
|
4724
|
-
return We(a, l, Ao), Ao.matrix.copy(
|
|
4722
|
+
const g = t.geometry, p = g.index, h = g.attributes.position, b = n.index, w = n.attributes.position, E = Pt(a, f), _ = Gt(u, o);
|
|
4723
|
+
if (ds.copy(i).invert(), n.boundsTree)
|
|
4724
|
+
return We(a, l, Ao), Ao.matrix.copy(ds), Ao.needsUpdate = !0, n.boundsTree.shapecast({
|
|
4725
4725
|
intersectsBounds: (A) => Ao.intersectsBox(A),
|
|
4726
4726
|
intersectsTriangle: (A) => {
|
|
4727
4727
|
A.a.applyMatrix4(i), A.b.applyMatrix4(i), A.c.applyMatrix4(i), A.needsUpdate = !0;
|
|
@@ -4732,7 +4732,7 @@ function Hc(a, t, n, i, s = null) {
|
|
|
4732
4732
|
}
|
|
4733
4733
|
});
|
|
4734
4734
|
for (let S = E * 3, A = (_ + E) * 3; S < A; S += 3) {
|
|
4735
|
-
Ye(vi, S, p, h), vi.a.applyMatrix4(
|
|
4735
|
+
Ye(vi, S, p, h), vi.a.applyMatrix4(ds), vi.b.applyMatrix4(ds), vi.c.applyMatrix4(ds), vi.needsUpdate = !0;
|
|
4736
4736
|
for (let M = 0, I = b.count; M < I; M += 3)
|
|
4737
4737
|
if (Ye(yi, M, b, w), yi.needsUpdate = !0, vi.intersectsTriangle(yi))
|
|
4738
4738
|
return !0;
|
|
@@ -4742,24 +4742,24 @@ function Hc(a, t, n, i, s = null) {
|
|
|
4742
4742
|
return We(g, l, wo), !!(s.intersectsBox(wo) && Hc(g, t, n, i, s) || (We(p, l, wo), s.intersectsBox(wo) && Hc(p, t, n, i, s)));
|
|
4743
4743
|
}
|
|
4744
4744
|
}
|
|
4745
|
-
const So = /* @__PURE__ */ new Je(), _c = /* @__PURE__ */ new bt(),
|
|
4745
|
+
const So = /* @__PURE__ */ new Je(), _c = /* @__PURE__ */ new bt(), ps = /* @__PURE__ */ new bt(), tT = /* @__PURE__ */ new X(), nT = /* @__PURE__ */ new X(), rT = /* @__PURE__ */ new X(), iT = /* @__PURE__ */ new X();
|
|
4746
4746
|
function sT(a, t, n, i = {}, s = {}, l = 0, o = 1 / 0) {
|
|
4747
4747
|
t.boundingBox || t.computeBoundingBox(), _c.set(t.boundingBox.min, t.boundingBox.max, n), _c.needsUpdate = !0;
|
|
4748
4748
|
const f = a.geometry, u = f.attributes.position, m = f.index, g = t.attributes.position, p = t.index, h = rn.getPrimitive(), b = rn.getPrimitive();
|
|
4749
4749
|
let w = tT, E = nT, _ = null, S = null;
|
|
4750
4750
|
s && (_ = rT, S = iT);
|
|
4751
4751
|
let A = 1 / 0, M = null, I = null;
|
|
4752
|
-
return So.copy(n).invert(),
|
|
4752
|
+
return So.copy(n).invert(), ps.matrix.copy(So), a.shapecast(
|
|
4753
4753
|
{
|
|
4754
4754
|
boundsTraverseOrder: (O) => _c.distanceToBox(O),
|
|
4755
|
-
intersectsBounds: (O, B, L) => L < A && L < o ? (B && (
|
|
4755
|
+
intersectsBounds: (O, B, L) => L < A && L < o ? (B && (ps.min.copy(O.min), ps.max.copy(O.max), ps.needsUpdate = !0), !0) : !1,
|
|
4756
4756
|
intersectsRange: (O, B) => {
|
|
4757
4757
|
if (t.boundsTree)
|
|
4758
4758
|
return t.boundsTree.shapecast({
|
|
4759
|
-
boundsTraverseOrder: (
|
|
4760
|
-
intersectsBounds: (
|
|
4761
|
-
intersectsRange: (
|
|
4762
|
-
for (let V =
|
|
4759
|
+
boundsTraverseOrder: (U) => ps.distanceToBox(U),
|
|
4760
|
+
intersectsBounds: (U, z, V) => V < A && V < o,
|
|
4761
|
+
intersectsRange: (U, z) => {
|
|
4762
|
+
for (let V = U, Z = U + z; V < Z; V++) {
|
|
4763
4763
|
Ye(b, 3 * V, p, g), b.a.applyMatrix4(n), b.b.applyMatrix4(n), b.c.applyMatrix4(n), b.needsUpdate = !0;
|
|
4764
4764
|
for (let Y = O, $ = O + B; Y < $; Y++) {
|
|
4765
4765
|
Ye(h, 3 * Y, m, u), h.needsUpdate = !0;
|
|
@@ -4771,13 +4771,13 @@ function sT(a, t, n, i = {}, s = {}, l = 0, o = 1 / 0) {
|
|
|
4771
4771
|
}
|
|
4772
4772
|
});
|
|
4773
4773
|
{
|
|
4774
|
-
const L =
|
|
4775
|
-
for (let
|
|
4776
|
-
Ye(b, 3 *
|
|
4774
|
+
const L = Oi(t);
|
|
4775
|
+
for (let U = 0, z = L; U < z; U++) {
|
|
4776
|
+
Ye(b, 3 * U, p, g), b.a.applyMatrix4(n), b.b.applyMatrix4(n), b.c.applyMatrix4(n), b.needsUpdate = !0;
|
|
4777
4777
|
for (let V = O, Z = O + B; V < Z; V++) {
|
|
4778
4778
|
Ye(h, 3 * V, m, u), h.needsUpdate = !0;
|
|
4779
4779
|
const Y = h.distanceToTriangle(b, w, _);
|
|
4780
|
-
if (Y < A && (E.copy(w), S && S.copy(_), A = Y, M = V, I =
|
|
4780
|
+
if (Y < A && (E.copy(w), S && S.copy(_), A = Y, M = V, I = U), Y < l)
|
|
4781
4781
|
return !0;
|
|
4782
4782
|
}
|
|
4783
4783
|
}
|
|
@@ -4797,26 +4797,26 @@ function oT(a, t = null) {
|
|
|
4797
4797
|
const E = h * 2;
|
|
4798
4798
|
if (f[E + 15] === qo) {
|
|
4799
4799
|
const S = o[h + 6], A = f[E + 14];
|
|
4800
|
-
let M = 1 / 0, I = 1 / 0, O = 1 / 0, B = -1 / 0, L = -1 / 0,
|
|
4801
|
-
for (let
|
|
4802
|
-
const Z = 3 * a.resolveTriangleIndex(
|
|
4800
|
+
let M = 1 / 0, I = 1 / 0, O = 1 / 0, B = -1 / 0, L = -1 / 0, U = -1 / 0;
|
|
4801
|
+
for (let z = S, V = S + A; z < V; z++) {
|
|
4802
|
+
const Z = 3 * a.resolveTriangleIndex(z);
|
|
4803
4803
|
for (let Y = 0; Y < 3; Y++) {
|
|
4804
4804
|
let $ = Z + Y;
|
|
4805
4805
|
$ = i ? i[$] : $;
|
|
4806
4806
|
const ee = s.getX($), oe = s.getY($), Ae = s.getZ($);
|
|
4807
|
-
ee < M && (M = ee), ee > B && (B = ee), oe < I && (I = oe), oe > L && (L = oe), Ae < O && (O = Ae), Ae >
|
|
4807
|
+
ee < M && (M = ee), ee > B && (B = ee), oe < I && (I = oe), oe > L && (L = oe), Ae < O && (O = Ae), Ae > U && (U = Ae);
|
|
4808
4808
|
}
|
|
4809
4809
|
}
|
|
4810
|
-
return u[h + 0] !== M || u[h + 1] !== I || u[h + 2] !== O || u[h + 3] !== B || u[h + 4] !== L || u[h + 5] !==
|
|
4810
|
+
return u[h + 0] !== M || u[h + 1] !== I || u[h + 2] !== O || u[h + 3] !== B || u[h + 4] !== L || u[h + 5] !== U ? (u[h + 0] = M, u[h + 1] = I, u[h + 2] = O, u[h + 3] = B, u[h + 4] = L, u[h + 5] = U, !0) : !1;
|
|
4811
4811
|
} else {
|
|
4812
4812
|
const S = h + 8, A = o[h + 6], M = S + b, I = A + b;
|
|
4813
4813
|
let O = w, B = !1, L = !1;
|
|
4814
4814
|
t ? O || (B = t.has(M), L = t.has(I), O = !B && !L) : (B = !0, L = !0);
|
|
4815
|
-
const
|
|
4815
|
+
const U = O || B, z = O || L;
|
|
4816
4816
|
let V = !1;
|
|
4817
|
-
|
|
4817
|
+
U && (V = p(S, b, O));
|
|
4818
4818
|
let Z = !1;
|
|
4819
|
-
|
|
4819
|
+
z && (Z = p(A, b, O));
|
|
4820
4820
|
const Y = V || Z;
|
|
4821
4821
|
if (Y)
|
|
4822
4822
|
for (let $ = 0; $ < 3; $++) {
|
|
@@ -4833,7 +4833,7 @@ function aT(a, t, n, i, s, l, o) {
|
|
|
4833
4833
|
function Wc(a, t, n, i, s, l, o) {
|
|
4834
4834
|
const { float32Array: f, uint16Array: u, uint32Array: m } = Le, g = a * 2;
|
|
4835
4835
|
if (yt(g, u)) {
|
|
4836
|
-
const h =
|
|
4836
|
+
const h = Pt(a, m), b = Gt(g, u);
|
|
4837
4837
|
Kb(t, n, i, h, b, s, l, o);
|
|
4838
4838
|
} else {
|
|
4839
4839
|
const h = nn(a);
|
|
@@ -4852,7 +4852,7 @@ function Gc(a, t, n, i, s, l) {
|
|
|
4852
4852
|
const { float32Array: o, uint16Array: f, uint32Array: u } = Le;
|
|
4853
4853
|
let m = a * 2;
|
|
4854
4854
|
if (yt(m, f)) {
|
|
4855
|
-
const p =
|
|
4855
|
+
const p = Pt(a, u), h = Gt(m, f);
|
|
4856
4856
|
return $b(t, n, i, p, h, s, l);
|
|
4857
4857
|
} else {
|
|
4858
4858
|
const p = Jc(a, u), h = cT[p], w = i.direction[h] >= 0;
|
|
@@ -4871,7 +4871,7 @@ function Gc(a, t, n, i, s, l) {
|
|
|
4871
4871
|
return A && I ? A.distance <= I.distance ? A : I : A || I || null;
|
|
4872
4872
|
}
|
|
4873
4873
|
}
|
|
4874
|
-
const Ro = /* @__PURE__ */ new _n(), _i = /* @__PURE__ */ new yn(), xi = /* @__PURE__ */ new yn(),
|
|
4874
|
+
const Ro = /* @__PURE__ */ new _n(), _i = /* @__PURE__ */ new yn(), xi = /* @__PURE__ */ new yn(), ms = /* @__PURE__ */ new Je(), ah = /* @__PURE__ */ new bt(), Eo = /* @__PURE__ */ new bt();
|
|
4875
4875
|
function uT(a, t, n, i) {
|
|
4876
4876
|
Le.setBuffer(a._roots[t]);
|
|
4877
4877
|
const s = jc(0, a, n, i);
|
|
@@ -4881,9 +4881,9 @@ function jc(a, t, n, i, s = null) {
|
|
|
4881
4881
|
const { float32Array: l, uint16Array: o, uint32Array: f } = Le;
|
|
4882
4882
|
let u = a * 2;
|
|
4883
4883
|
if (s === null && (n.boundingBox || n.computeBoundingBox(), ah.set(n.boundingBox.min, n.boundingBox.max, i), s = ah), yt(u, o)) {
|
|
4884
|
-
const g = t.geometry, p = g.index, h = g.attributes.position, b = n.index, w = n.attributes.position, E =
|
|
4885
|
-
if (
|
|
4886
|
-
return We(a, l, Eo), Eo.matrix.copy(
|
|
4884
|
+
const g = t.geometry, p = g.index, h = g.attributes.position, b = n.index, w = n.attributes.position, E = Pt(a, f), _ = Gt(u, o);
|
|
4885
|
+
if (ms.copy(i).invert(), n.boundsTree)
|
|
4886
|
+
return We(a, l, Eo), Eo.matrix.copy(ms), Eo.needsUpdate = !0, n.boundsTree.shapecast({
|
|
4887
4887
|
intersectsBounds: (A) => Eo.intersectsBox(A),
|
|
4888
4888
|
intersectsTriangle: (A) => {
|
|
4889
4889
|
A.a.applyMatrix4(i), A.b.applyMatrix4(i), A.c.applyMatrix4(i), A.needsUpdate = !0;
|
|
@@ -4895,7 +4895,7 @@ function jc(a, t, n, i, s = null) {
|
|
|
4895
4895
|
});
|
|
4896
4896
|
for (let S = E, A = _ + E; S < A; S++) {
|
|
4897
4897
|
const M = t.resolveTriangleIndex(S);
|
|
4898
|
-
Ye(_i, 3 * M, p, h), _i.a.applyMatrix4(
|
|
4898
|
+
Ye(_i, 3 * M, p, h), _i.a.applyMatrix4(ms), _i.b.applyMatrix4(ms), _i.c.applyMatrix4(ms), _i.needsUpdate = !0;
|
|
4899
4899
|
for (let I = 0, O = b.count; I < O; I += 3)
|
|
4900
4900
|
if (Ye(xi, I, b, w), xi.needsUpdate = !0, _i.intersectsTriangle(xi))
|
|
4901
4901
|
return !0;
|
|
@@ -4905,25 +4905,25 @@ function jc(a, t, n, i, s = null) {
|
|
|
4905
4905
|
return We(g, l, Ro), !!(s.intersectsBox(Ro) && jc(g, t, n, i, s) || (We(p, l, Ro), s.intersectsBox(Ro) && jc(p, t, n, i, s)));
|
|
4906
4906
|
}
|
|
4907
4907
|
}
|
|
4908
|
-
const Mo = /* @__PURE__ */ new Je(), xc = /* @__PURE__ */ new bt(),
|
|
4908
|
+
const Mo = /* @__PURE__ */ new Je(), xc = /* @__PURE__ */ new bt(), gs = /* @__PURE__ */ new bt(), fT = /* @__PURE__ */ new X(), hT = /* @__PURE__ */ new X(), dT = /* @__PURE__ */ new X(), pT = /* @__PURE__ */ new X();
|
|
4909
4909
|
function mT(a, t, n, i = {}, s = {}, l = 0, o = 1 / 0) {
|
|
4910
4910
|
t.boundingBox || t.computeBoundingBox(), xc.set(t.boundingBox.min, t.boundingBox.max, n), xc.needsUpdate = !0;
|
|
4911
4911
|
const f = a.geometry, u = f.attributes.position, m = f.index, g = t.attributes.position, p = t.index, h = rn.getPrimitive(), b = rn.getPrimitive();
|
|
4912
4912
|
let w = fT, E = hT, _ = null, S = null;
|
|
4913
4913
|
s && (_ = dT, S = pT);
|
|
4914
4914
|
let A = 1 / 0, M = null, I = null;
|
|
4915
|
-
return Mo.copy(n).invert(),
|
|
4915
|
+
return Mo.copy(n).invert(), gs.matrix.copy(Mo), a.shapecast(
|
|
4916
4916
|
{
|
|
4917
4917
|
boundsTraverseOrder: (O) => xc.distanceToBox(O),
|
|
4918
|
-
intersectsBounds: (O, B, L) => L < A && L < o ? (B && (
|
|
4918
|
+
intersectsBounds: (O, B, L) => L < A && L < o ? (B && (gs.min.copy(O.min), gs.max.copy(O.max), gs.needsUpdate = !0), !0) : !1,
|
|
4919
4919
|
intersectsRange: (O, B) => {
|
|
4920
4920
|
if (t.boundsTree) {
|
|
4921
4921
|
const L = t.boundsTree;
|
|
4922
4922
|
return L.shapecast({
|
|
4923
|
-
boundsTraverseOrder: (
|
|
4924
|
-
intersectsBounds: (
|
|
4925
|
-
intersectsRange: (
|
|
4926
|
-
for (let V =
|
|
4923
|
+
boundsTraverseOrder: (U) => gs.distanceToBox(U),
|
|
4924
|
+
intersectsBounds: (U, z, V) => V < A && V < o,
|
|
4925
|
+
intersectsRange: (U, z) => {
|
|
4926
|
+
for (let V = U, Z = U + z; V < Z; V++) {
|
|
4927
4927
|
const Y = L.resolveTriangleIndex(V);
|
|
4928
4928
|
Ye(b, 3 * Y, p, g), b.a.applyMatrix4(n), b.b.applyMatrix4(n), b.c.applyMatrix4(n), b.needsUpdate = !0;
|
|
4929
4929
|
for (let $ = O, ee = O + B; $ < ee; $++) {
|
|
@@ -4937,14 +4937,14 @@ function mT(a, t, n, i = {}, s = {}, l = 0, o = 1 / 0) {
|
|
|
4937
4937
|
}
|
|
4938
4938
|
});
|
|
4939
4939
|
} else {
|
|
4940
|
-
const L =
|
|
4941
|
-
for (let
|
|
4942
|
-
Ye(b, 3 *
|
|
4940
|
+
const L = Oi(t);
|
|
4941
|
+
for (let U = 0, z = L; U < z; U++) {
|
|
4942
|
+
Ye(b, 3 * U, p, g), b.a.applyMatrix4(n), b.b.applyMatrix4(n), b.c.applyMatrix4(n), b.needsUpdate = !0;
|
|
4943
4943
|
for (let V = O, Z = O + B; V < Z; V++) {
|
|
4944
4944
|
const Y = a.resolveTriangleIndex(V);
|
|
4945
4945
|
Ye(h, 3 * Y, m, u), h.needsUpdate = !0;
|
|
4946
4946
|
const $ = h.distanceToTriangle(b, w, _);
|
|
4947
|
-
if ($ < A && (E.copy(w), S && S.copy(_), A = $, M = V, I =
|
|
4947
|
+
if ($ < A && (E.copy(w), S && S.copy(_), A = $, M = V, I = U), $ < l)
|
|
4948
4948
|
return !0;
|
|
4949
4949
|
}
|
|
4950
4950
|
}
|
|
@@ -4994,18 +4994,18 @@ function mn(a, t, n, i, s, l = 0, o = 0, f = 0, u = 0, m = null, g = !1) {
|
|
|
4994
4994
|
let L = !1;
|
|
4995
4995
|
if (B && O)
|
|
4996
4996
|
g ? L = s(
|
|
4997
|
-
|
|
4997
|
+
Pt(t, S),
|
|
4998
4998
|
Gt(t * 2, A),
|
|
4999
|
-
|
|
4999
|
+
Pt(a, w),
|
|
5000
5000
|
Gt(a * 2, E),
|
|
5001
5001
|
u,
|
|
5002
5002
|
o + t,
|
|
5003
5003
|
f,
|
|
5004
5004
|
l + a
|
|
5005
5005
|
) : L = s(
|
|
5006
|
-
|
|
5006
|
+
Pt(a, w),
|
|
5007
5007
|
Gt(a * 2, E),
|
|
5008
|
-
|
|
5008
|
+
Pt(t, S),
|
|
5009
5009
|
Gt(t * 2, A),
|
|
5010
5010
|
f,
|
|
5011
5011
|
l + a,
|
|
@@ -5013,14 +5013,14 @@ function mn(a, t, n, i, s, l = 0, o = 0, f = 0, u = 0, m = null, g = !1) {
|
|
|
5013
5013
|
o + t
|
|
5014
5014
|
);
|
|
5015
5015
|
else if (B) {
|
|
5016
|
-
const
|
|
5017
|
-
We(t, _,
|
|
5018
|
-
const
|
|
5019
|
-
We(
|
|
5020
|
-
const Z =
|
|
5016
|
+
const U = dr.getPrimitive();
|
|
5017
|
+
We(t, _, U), U.applyMatrix4(n);
|
|
5018
|
+
const z = nn(a), V = jt(a, w);
|
|
5019
|
+
We(z, b, bi), We(V, b, Ti);
|
|
5020
|
+
const Z = U.intersectsBox(bi), Y = U.intersectsBox(Ti);
|
|
5021
5021
|
L = Z && mn(
|
|
5022
5022
|
t,
|
|
5023
|
-
|
|
5023
|
+
z,
|
|
5024
5024
|
i,
|
|
5025
5025
|
n,
|
|
5026
5026
|
s,
|
|
@@ -5028,7 +5028,7 @@ function mn(a, t, n, i, s, l = 0, o = 0, f = 0, u = 0, m = null, g = !1) {
|
|
|
5028
5028
|
l,
|
|
5029
5029
|
u,
|
|
5030
5030
|
f + 1,
|
|
5031
|
-
|
|
5031
|
+
U,
|
|
5032
5032
|
!g
|
|
5033
5033
|
) || Y && mn(
|
|
5034
5034
|
t,
|
|
@@ -5040,17 +5040,17 @@ function mn(a, t, n, i, s, l = 0, o = 0, f = 0, u = 0, m = null, g = !1) {
|
|
|
5040
5040
|
l,
|
|
5041
5041
|
u,
|
|
5042
5042
|
f + 1,
|
|
5043
|
-
|
|
5043
|
+
U,
|
|
5044
5044
|
!g
|
|
5045
|
-
), dr.releasePrimitive(
|
|
5045
|
+
), dr.releasePrimitive(U);
|
|
5046
5046
|
} else {
|
|
5047
|
-
const
|
|
5048
|
-
We(
|
|
5047
|
+
const U = nn(t), z = jt(t, S);
|
|
5048
|
+
We(U, _, bc), We(z, _, Tc);
|
|
5049
5049
|
const V = m.intersectsBox(bc), Z = m.intersectsBox(Tc);
|
|
5050
5050
|
if (V && Z)
|
|
5051
5051
|
L = mn(
|
|
5052
5052
|
a,
|
|
5053
|
-
|
|
5053
|
+
U,
|
|
5054
5054
|
n,
|
|
5055
5055
|
i,
|
|
5056
5056
|
s,
|
|
@@ -5062,7 +5062,7 @@ function mn(a, t, n, i, s, l = 0, o = 0, f = 0, u = 0, m = null, g = !1) {
|
|
|
5062
5062
|
g
|
|
5063
5063
|
) || mn(
|
|
5064
5064
|
a,
|
|
5065
|
-
|
|
5065
|
+
z,
|
|
5066
5066
|
n,
|
|
5067
5067
|
i,
|
|
5068
5068
|
s,
|
|
@@ -5077,7 +5077,7 @@ function mn(a, t, n, i, s, l = 0, o = 0, f = 0, u = 0, m = null, g = !1) {
|
|
|
5077
5077
|
if (O)
|
|
5078
5078
|
L = mn(
|
|
5079
5079
|
a,
|
|
5080
|
-
|
|
5080
|
+
U,
|
|
5081
5081
|
n,
|
|
5082
5082
|
i,
|
|
5083
5083
|
s,
|
|
@@ -5095,7 +5095,7 @@ function mn(a, t, n, i, s, l = 0, o = 0, f = 0, u = 0, m = null, g = !1) {
|
|
|
5095
5095
|
We($, b, bi), We(ee, b, Ti);
|
|
5096
5096
|
const oe = Y.intersectsBox(bi), Ae = Y.intersectsBox(Ti);
|
|
5097
5097
|
L = oe && mn(
|
|
5098
|
-
|
|
5098
|
+
U,
|
|
5099
5099
|
$,
|
|
5100
5100
|
i,
|
|
5101
5101
|
n,
|
|
@@ -5107,7 +5107,7 @@ function mn(a, t, n, i, s, l = 0, o = 0, f = 0, u = 0, m = null, g = !1) {
|
|
|
5107
5107
|
Y,
|
|
5108
5108
|
!g
|
|
5109
5109
|
) || Ae && mn(
|
|
5110
|
-
|
|
5110
|
+
U,
|
|
5111
5111
|
ee,
|
|
5112
5112
|
i,
|
|
5113
5113
|
n,
|
|
@@ -5124,7 +5124,7 @@ function mn(a, t, n, i, s, l = 0, o = 0, f = 0, u = 0, m = null, g = !1) {
|
|
|
5124
5124
|
if (O)
|
|
5125
5125
|
L = mn(
|
|
5126
5126
|
a,
|
|
5127
|
-
|
|
5127
|
+
z,
|
|
5128
5128
|
n,
|
|
5129
5129
|
i,
|
|
5130
5130
|
s,
|
|
@@ -5142,7 +5142,7 @@ function mn(a, t, n, i, s, l = 0, o = 0, f = 0, u = 0, m = null, g = !1) {
|
|
|
5142
5142
|
We($, b, bi), We(ee, b, Ti);
|
|
5143
5143
|
const oe = Y.intersectsBox(bi), Ae = Y.intersectsBox(Ti);
|
|
5144
5144
|
L = oe && mn(
|
|
5145
|
-
|
|
5145
|
+
z,
|
|
5146
5146
|
$,
|
|
5147
5147
|
i,
|
|
5148
5148
|
n,
|
|
@@ -5154,7 +5154,7 @@ function mn(a, t, n, i, s, l = 0, o = 0, f = 0, u = 0, m = null, g = !1) {
|
|
|
5154
5154
|
Y,
|
|
5155
5155
|
!g
|
|
5156
5156
|
) || Ae && mn(
|
|
5157
|
-
|
|
5157
|
+
z,
|
|
5158
5158
|
ee,
|
|
5159
5159
|
i,
|
|
5160
5160
|
n,
|
|
@@ -5250,7 +5250,7 @@ class nl {
|
|
|
5250
5250
|
}
|
|
5251
5251
|
}
|
|
5252
5252
|
/* Core Cast Functions */
|
|
5253
|
-
raycast(t, n =
|
|
5253
|
+
raycast(t, n = Uo, i = 0, s = 1 / 0) {
|
|
5254
5254
|
const l = this._roots, o = this.geometry, f = [], u = n.isMaterial, m = Array.isArray(n), g = o.groups, p = u ? n.side : n, h = this.indirect ? aT : Zb;
|
|
5255
5255
|
for (let b = 0, w = l.length; b < w; b++) {
|
|
5256
5256
|
const E = m ? n[g[b].materialIndex].side : p, _ = f.length;
|
|
@@ -5262,7 +5262,7 @@ class nl {
|
|
|
5262
5262
|
}
|
|
5263
5263
|
return f;
|
|
5264
5264
|
}
|
|
5265
|
-
raycastFirst(t, n =
|
|
5265
|
+
raycastFirst(t, n = Uo, i = 0, s = 1 / 0) {
|
|
5266
5266
|
const l = this._roots, o = this.geometry, f = n.isMaterial, u = Array.isArray(n);
|
|
5267
5267
|
let m = null;
|
|
5268
5268
|
const g = o.groups, p = f ? n.side : n, h = this.indirect ? lT : Jb;
|
|
@@ -5295,7 +5295,7 @@ class nl {
|
|
|
5295
5295
|
const g = this._roots;
|
|
5296
5296
|
for (let p = 0, h = g.length; p < h; p++) {
|
|
5297
5297
|
const b = g[p];
|
|
5298
|
-
if (u =
|
|
5298
|
+
if (u = zb(this, p, l, o, s, m), u)
|
|
5299
5299
|
break;
|
|
5300
5300
|
m += b.byteLength;
|
|
5301
5301
|
}
|
|
@@ -5319,10 +5319,10 @@ class nl {
|
|
|
5319
5319
|
};
|
|
5320
5320
|
if (l) {
|
|
5321
5321
|
const w = (E, _, S, A, M, I, O, B) => {
|
|
5322
|
-
for (let L = S,
|
|
5322
|
+
for (let L = S, U = S + A; L < U; L++) {
|
|
5323
5323
|
b(L), g.a.applyMatrix4(n), g.b.applyMatrix4(n), g.c.applyMatrix4(n), g.needsUpdate = !0;
|
|
5324
|
-
for (let
|
|
5325
|
-
if (m(
|
|
5324
|
+
for (let z = E, V = E + _; z < V; z++)
|
|
5325
|
+
if (m(z), o.needsUpdate = !0, l(o, g, z, L, M, I, O, B))
|
|
5326
5326
|
return !0;
|
|
5327
5327
|
}
|
|
5328
5328
|
return !1;
|
|
@@ -5396,7 +5396,7 @@ function _T(a) {
|
|
|
5396
5396
|
function xT(a) {
|
|
5397
5397
|
switch (a) {
|
|
5398
5398
|
case 1:
|
|
5399
|
-
return
|
|
5399
|
+
return zo;
|
|
5400
5400
|
case 2:
|
|
5401
5401
|
return Vh;
|
|
5402
5402
|
case 3:
|
|
@@ -5419,7 +5419,7 @@ function lh(a) {
|
|
|
5419
5419
|
}
|
|
5420
5420
|
class ad extends Vt {
|
|
5421
5421
|
constructor() {
|
|
5422
|
-
super(), this.minFilter =
|
|
5422
|
+
super(), this.minFilter = ze, this.magFilter = ze, this.generateMipmaps = !1, this.overrideItemSize = null, this._forcedType = null;
|
|
5423
5423
|
}
|
|
5424
5424
|
updateFrom(t) {
|
|
5425
5425
|
const n = this.overrideItemSize, i = t.itemSize, s = t.count;
|
|
@@ -5520,14 +5520,14 @@ function wT(a, t, n) {
|
|
|
5520
5520
|
for (let S = 0; S < 3; S++)
|
|
5521
5521
|
g[8 * b + 0 + S] = f[_ + 0 + S], g[8 * b + 4 + S] = f[_ + 3 + S];
|
|
5522
5522
|
if (yt(E, l)) {
|
|
5523
|
-
const S = Gt(E, l), A =
|
|
5523
|
+
const S = Gt(E, l), A = Pt(w, o), M = 4294901760 | S;
|
|
5524
5524
|
h[b * 2 + 0] = M, h[b * 2 + 1] = A;
|
|
5525
5525
|
} else {
|
|
5526
5526
|
const S = 4 * jt(w, o) / mr, A = Jc(w, o);
|
|
5527
5527
|
h[b * 2 + 0] = A, h[b * 2 + 1] = S;
|
|
5528
5528
|
}
|
|
5529
5529
|
}
|
|
5530
|
-
t.image.data = g, t.image.width = m, t.image.height = m, t.format = Ke, t.type = tt, t.internalFormat = "RGBA32F", t.minFilter =
|
|
5530
|
+
t.image.data = g, t.image.width = m, t.image.height = m, t.format = Ke, t.type = tt, t.internalFormat = "RGBA32F", t.minFilter = ze, t.magFilter = ze, t.generateMipmaps = !1, t.needsUpdate = !0, t.dispose(), n.image.data = h, n.image.width = p, n.image.height = p, n.format = qh, n.type = bs, n.internalFormat = "RG32UI", n.minFilter = ze, n.magFilter = ze, n.generateMipmaps = !1, n.needsUpdate = !0, n.dispose();
|
|
5531
5531
|
}
|
|
5532
5532
|
const AT = (
|
|
5533
5533
|
/* glsl */
|
|
@@ -6026,7 +6026,7 @@ class FT {
|
|
|
6026
6026
|
return !(this.matrixWorld.equals(t.matrixWorld) && this.geometryHash === uh(n) && this.skeletonHash === fh(t) && this.primitiveCount === i);
|
|
6027
6027
|
}
|
|
6028
6028
|
}
|
|
6029
|
-
const jr = /* @__PURE__ */ new X(), Vr = /* @__PURE__ */ new X(), qr = /* @__PURE__ */ new X(), hh = /* @__PURE__ */ new
|
|
6029
|
+
const jr = /* @__PURE__ */ new X(), Vr = /* @__PURE__ */ new X(), qr = /* @__PURE__ */ new X(), hh = /* @__PURE__ */ new Di(), Po = /* @__PURE__ */ new X(), Ac = /* @__PURE__ */ new X(), dh = /* @__PURE__ */ new Di(), ph = /* @__PURE__ */ new Di(), Io = /* @__PURE__ */ new Je(), mh = /* @__PURE__ */ new Je();
|
|
6030
6030
|
function gh(a, t, n) {
|
|
6031
6031
|
const i = a.skeleton, s = a.geometry, l = i.bones, o = i.boneInverses;
|
|
6032
6032
|
dh.fromBufferAttribute(s.attributes.skinIndex, t), ph.fromBufferAttribute(s.attributes.skinWeight, t), Io.elements.fill(0);
|
|
@@ -6111,13 +6111,13 @@ class kT extends gr {
|
|
|
6111
6111
|
}
|
|
6112
6112
|
}
|
|
6113
6113
|
const Vc = 0, fd = 1, hd = 2;
|
|
6114
|
-
function
|
|
6114
|
+
function UT(a, t) {
|
|
6115
6115
|
for (let n = 0, i = a.length; n < i; n++)
|
|
6116
6116
|
a[n].traverseVisible((l) => {
|
|
6117
6117
|
l.isMesh && t(l);
|
|
6118
6118
|
});
|
|
6119
6119
|
}
|
|
6120
|
-
function
|
|
6120
|
+
function zT(a) {
|
|
6121
6121
|
const t = [];
|
|
6122
6122
|
for (let n = 0, i = a.length; n < i; n++) {
|
|
6123
6123
|
const s = a[n];
|
|
@@ -6144,14 +6144,14 @@ class WT {
|
|
|
6144
6144
|
}
|
|
6145
6145
|
_getDummyMesh() {
|
|
6146
6146
|
if (!this._dummyMesh) {
|
|
6147
|
-
const t = new
|
|
6147
|
+
const t = new Mi(), n = new gr();
|
|
6148
6148
|
n.setAttribute("position", new _t(new Float32Array(9), 3)), this._dummyMesh = new Kc(n, t);
|
|
6149
6149
|
}
|
|
6150
6150
|
return this._dummyMesh;
|
|
6151
6151
|
}
|
|
6152
6152
|
_getMeshes() {
|
|
6153
6153
|
const t = [];
|
|
6154
|
-
return
|
|
6154
|
+
return UT(this.objects, (n) => {
|
|
6155
6155
|
t.push(n);
|
|
6156
6156
|
}), t.sort((n, i) => n.uuid > i.uuid ? 1 : n.uuid < i.uuid ? -1 : 0), t.length === 0 && t.push(this._getDummyMesh()), t;
|
|
6157
6157
|
}
|
|
@@ -6191,7 +6191,7 @@ class WT {
|
|
|
6191
6191
|
let p = Vc;
|
|
6192
6192
|
return g ? p = hd : f.includes(!1) && (p = fd), {
|
|
6193
6193
|
changeType: p,
|
|
6194
|
-
materials:
|
|
6194
|
+
materials: zT(o),
|
|
6195
6195
|
geometry: t
|
|
6196
6196
|
};
|
|
6197
6197
|
}
|
|
@@ -6274,10 +6274,10 @@ class VT {
|
|
|
6274
6274
|
};
|
|
6275
6275
|
}
|
|
6276
6276
|
}
|
|
6277
|
-
const qT = new
|
|
6277
|
+
const qT = new Uh(-1, 1, 1, -1, 0, 1);
|
|
6278
6278
|
class YT extends gr {
|
|
6279
6279
|
constructor() {
|
|
6280
|
-
super(), this.setAttribute("position", new
|
|
6280
|
+
super(), this.setAttribute("position", new Uf([-1, 3, 0, -1, -1, 0, 3, -1, 0], 3)), this.setAttribute("uv", new Uf([0, 2, 0, 0, 2, 0], 2));
|
|
6281
6281
|
}
|
|
6282
6282
|
}
|
|
6283
6283
|
const KT = new YT();
|
|
@@ -6642,11 +6642,11 @@ class QT extends Ko {
|
|
|
6642
6642
|
}
|
|
6643
6643
|
class JT {
|
|
6644
6644
|
generate(t, n = 256) {
|
|
6645
|
-
const i = new
|
|
6645
|
+
const i = new Pi(n, n, {
|
|
6646
6646
|
type: tt,
|
|
6647
6647
|
format: Ke,
|
|
6648
|
-
minFilter:
|
|
6649
|
-
magFilter:
|
|
6648
|
+
minFilter: ze,
|
|
6649
|
+
magFilter: ze,
|
|
6650
6650
|
generateMipmaps: !1
|
|
6651
6651
|
}), s = t.getRenderTarget();
|
|
6652
6652
|
t.setRenderTarget(i);
|
|
@@ -6725,9 +6725,9 @@ class rw {
|
|
|
6725
6725
|
const t = new Vt(Rc(new Float32Array([0, 0, 0, 0])), 1, 1);
|
|
6726
6726
|
t.type = gn, t.format = Ke, t.minFilter = Wt, t.magFilter = Wt, t.wrapS = vn, t.wrapT = vn, t.generateMipmaps = !1, t.needsUpdate = !0;
|
|
6727
6727
|
const n = new Vt(Rc(new Float32Array([0, 1])), 1, 2);
|
|
6728
|
-
n.type = gn, n.format =
|
|
6728
|
+
n.type = gn, n.format = zo, n.minFilter = Wt, n.magFilter = Wt, n.generateMipmaps = !1, n.needsUpdate = !0;
|
|
6729
6729
|
const i = new Vt(Rc(new Float32Array([0, 0, 1, 1])), 2, 2);
|
|
6730
|
-
i.type = gn, i.format =
|
|
6730
|
+
i.type = gn, i.format = zo, i.minFilter = Wt, i.magFilter = Wt, i.generateMipmaps = !1, i.needsUpdate = !0, this.map = t, this.marginalWeights = n, this.conditionalWeights = i, this.totalSum = 0;
|
|
6731
6731
|
}
|
|
6732
6732
|
dispose() {
|
|
6733
6733
|
this.marginalWeights.dispose(), this.conditionalWeights.dispose(), this.map.dispose();
|
|
@@ -6770,7 +6770,7 @@ const Ec = 6, iw = 0, sw = 1, ow = 2, aw = 3, cw = 4, pn = new X(), Et = new X()
|
|
|
6770
6770
|
class uw {
|
|
6771
6771
|
constructor() {
|
|
6772
6772
|
const t = new Vt(new Float32Array(4), 1, 1);
|
|
6773
|
-
t.format = Ke, t.type = tt, t.wrapS = Zn, t.wrapT = Zn, t.generateMipmaps = !1, t.minFilter =
|
|
6773
|
+
t.format = Ke, t.type = tt, t.wrapS = Zn, t.wrapT = Zn, t.generateMipmaps = !1, t.minFilter = ze, t.magFilter = ze, this.tex = t, this.count = 0;
|
|
6774
6774
|
}
|
|
6775
6775
|
updateFrom(t, n = []) {
|
|
6776
6776
|
const i = this.tex, s = Math.max(t.length * Ec, 1), l = Math.ceil(Math.sqrt(s));
|
|
@@ -6933,7 +6933,7 @@ class vw {
|
|
|
6933
6933
|
}
|
|
6934
6934
|
class yw extends Vt {
|
|
6935
6935
|
constructor() {
|
|
6936
|
-
super(new Float32Array(4), 1, 1), this.format = Ke, this.type = tt, this.wrapS = Zn, this.wrapT = Zn, this.minFilter =
|
|
6936
|
+
super(new Float32Array(4), 1, 1), this.format = Ke, this.type = tt, this.wrapS = Zn, this.wrapT = Zn, this.minFilter = ze, this.magFilter = ze, this.generateMipmaps = !1, this.features = new vw();
|
|
6937
6937
|
}
|
|
6938
6938
|
updateFrom(t, n) {
|
|
6939
6939
|
function i(w, E, _ = -1) {
|
|
@@ -6980,7 +6980,7 @@ class yw extends Vt {
|
|
|
6980
6980
|
h[o++] = 0;
|
|
6981
6981
|
else
|
|
6982
6982
|
switch (_.side) {
|
|
6983
|
-
case
|
|
6983
|
+
case Uo:
|
|
6984
6984
|
h[o++] = 1;
|
|
6985
6985
|
break;
|
|
6986
6986
|
case jh:
|
|
@@ -7144,7 +7144,7 @@ class Sw {
|
|
|
7144
7144
|
}
|
|
7145
7145
|
class Rw extends Vt {
|
|
7146
7146
|
constructor(t = 1, n = 1, i = 8) {
|
|
7147
|
-
super(new Float32Array(1), 1, 1, Ke, tt), this.minFilter =
|
|
7147
|
+
super(new Float32Array(1), 1, 1, Ke, tt), this.minFilter = ze, this.magFilter = ze, this.strata = i, this.sampler = null, this.generator = new Sw(), this.stableNoise = !1, this.random = () => this.stableNoise ? this.generator.nextFloat() : Math.random(), this.init(t, n, i);
|
|
7148
7148
|
}
|
|
7149
7149
|
init(t = this.image.height, n = this.image.width, i = this.strata) {
|
|
7150
7150
|
const { image: s } = this;
|
|
@@ -7300,7 +7300,7 @@ function Pw(a) {
|
|
|
7300
7300
|
function Iw(a) {
|
|
7301
7301
|
switch (a) {
|
|
7302
7302
|
case 1:
|
|
7303
|
-
return
|
|
7303
|
+
return zo;
|
|
7304
7304
|
case 2:
|
|
7305
7305
|
return Vh;
|
|
7306
7306
|
default:
|
|
@@ -7309,7 +7309,7 @@ function Iw(a) {
|
|
|
7309
7309
|
}
|
|
7310
7310
|
class Dw extends Vt {
|
|
7311
7311
|
constructor(t = 64, n = 1) {
|
|
7312
|
-
super(new Float32Array(4), 1, 1, Ke, tt), this.minFilter =
|
|
7312
|
+
super(new Float32Array(4), 1, 1, Ke, tt), this.minFilter = ze, this.magFilter = ze, this.size = t, this.channels = n, this.update();
|
|
7313
7313
|
}
|
|
7314
7314
|
update() {
|
|
7315
7315
|
const t = this.channels, n = this.size, i = new Cw();
|
|
@@ -7791,7 +7791,7 @@ const Ow = (
|
|
|
7791
7791
|
|
|
7792
7792
|
}
|
|
7793
7793
|
`
|
|
7794
|
-
),
|
|
7794
|
+
), Uw = (
|
|
7795
7795
|
/* glsl */
|
|
7796
7796
|
`
|
|
7797
7797
|
|
|
@@ -8009,7 +8009,7 @@ const Ow = (
|
|
|
8009
8009
|
}
|
|
8010
8010
|
|
|
8011
8011
|
`
|
|
8012
|
-
),
|
|
8012
|
+
), zw = (
|
|
8013
8013
|
/* glsl */
|
|
8014
8014
|
`
|
|
8015
8015
|
|
|
@@ -10470,9 +10470,9 @@ class i1 extends Ko {
|
|
|
10470
10470
|
float lightsDenom;
|
|
10471
10471
|
|
|
10472
10472
|
// sampling
|
|
10473
|
-
${Uw}
|
|
10474
|
-
${kw}
|
|
10475
10473
|
${zw}
|
|
10474
|
+
${kw}
|
|
10475
|
+
${Uw}
|
|
10476
10476
|
|
|
10477
10477
|
${Zw}
|
|
10478
10478
|
${Kw}
|
|
@@ -10824,13 +10824,13 @@ function* s1() {
|
|
|
10824
10824
|
_subframe: o,
|
|
10825
10825
|
alpha: f,
|
|
10826
10826
|
material: u
|
|
10827
|
-
} = this, m = new
|
|
10827
|
+
} = this, m = new Di(), g = new Di(), p = n.material;
|
|
10828
10828
|
let [h, b] = s;
|
|
10829
10829
|
for (; ; ) {
|
|
10830
10830
|
f ? (p.opacity = this._opacityFactor / (this.samples + 1), u.blending = Ss, u.opacity = 1) : (u.opacity = this._opacityFactor / (this.samples + 1), u.blending = Yh);
|
|
10831
10831
|
const [w, E, _, S] = o, A = i.width, M = i.height;
|
|
10832
10832
|
u.resolution.set(A * _, M * S), u.sobolTexture = l.texture, u.stratifiedTexture.init(20, u.bounces + u.transmissiveBounces + 5), u.stratifiedTexture.next(), u.seed++;
|
|
10833
|
-
const I = this.tiles.x || 1, O = this.tiles.y || 1, B = I * O, L = Math.ceil(A * _),
|
|
10833
|
+
const I = this.tiles.x || 1, O = this.tiles.y || 1, B = I * O, L = Math.ceil(A * _), U = Math.ceil(M * S), z = Math.floor(w * A), V = Math.floor(E * M), Z = Math.ceil(L / I), Y = Math.ceil(U / O);
|
|
10834
10834
|
for (let $ = 0; $ < O; $++)
|
|
10835
10835
|
for (let ee = 0; ee < I; ee++) {
|
|
10836
10836
|
const oe = a.getRenderTarget(), Ae = a.autoClear, Ne = a.getScissorTest();
|
|
@@ -10840,17 +10840,17 @@ function* s1() {
|
|
|
10840
10840
|
const Ve = this._currentTile % (I * O);
|
|
10841
10841
|
Be = Ve % I, st = ~~(Ve / I), this._currentTile = Ve + 1;
|
|
10842
10842
|
}
|
|
10843
|
-
const
|
|
10843
|
+
const It = O - st - 1;
|
|
10844
10844
|
i.scissor.set(
|
|
10845
|
-
|
|
10846
|
-
V +
|
|
10845
|
+
z + Be * Z,
|
|
10846
|
+
V + It * Y,
|
|
10847
10847
|
Math.min(Z, L - Be * Z),
|
|
10848
|
-
Math.min(Y,
|
|
10848
|
+
Math.min(Y, U - It * Y)
|
|
10849
10849
|
), i.viewport.set(
|
|
10850
|
-
|
|
10850
|
+
z,
|
|
10851
10851
|
V,
|
|
10852
10852
|
L,
|
|
10853
|
-
|
|
10853
|
+
U
|
|
10854
10854
|
), a.setRenderTarget(i), a.setScissorTest(!0), a.autoClear = !1, t.render(a), a.setViewport(g), a.setScissor(m), a.setScissorTest(Ne), a.setRenderTarget(oe), a.autoClear = Ae, f && (p.target1 = h.texture, p.target2 = i.texture, a.setRenderTarget(b), n.render(a), a.setRenderTarget(oe)), this.samples += 1 / B, ee === I - 1 && $ === O - 1 && (this.samples = Math.round(this.samples)), yield;
|
|
10855
10855
|
}
|
|
10856
10856
|
[h, b] = [b, h];
|
|
@@ -10877,23 +10877,23 @@ class Eh {
|
|
|
10877
10877
|
return !!this._compilePromise;
|
|
10878
10878
|
}
|
|
10879
10879
|
constructor(t) {
|
|
10880
|
-
this.camera = null, this.tiles = new ye(3, 3), this.stableNoise = !1, this.stableTiles = !0, this.samples = 0, this._subframe = new
|
|
10880
|
+
this.camera = null, this.tiles = new ye(3, 3), this.stableNoise = !1, this.stableTiles = !0, this.samples = 0, this._subframe = new Di(0, 0, 1, 1), this._opacityFactor = 1, this._renderer = t, this._alpha = !1, this._fsQuad = new $r(new i1()), this._blendQuad = new $r(new $T()), this._task = null, this._currentTile = 0, this._compilePromise = null, this._sobolTarget = new JT().generate(t), this._primaryTarget = new Pi(1, 1, {
|
|
10881
10881
|
format: Ke,
|
|
10882
10882
|
type: tt,
|
|
10883
|
-
magFilter:
|
|
10884
|
-
minFilter:
|
|
10883
|
+
magFilter: ze,
|
|
10884
|
+
minFilter: ze
|
|
10885
10885
|
}), this._blendTargets = [
|
|
10886
|
-
new
|
|
10886
|
+
new Pi(1, 1, {
|
|
10887
10887
|
format: Ke,
|
|
10888
10888
|
type: tt,
|
|
10889
|
-
magFilter:
|
|
10890
|
-
minFilter:
|
|
10889
|
+
magFilter: ze,
|
|
10890
|
+
minFilter: ze
|
|
10891
10891
|
}),
|
|
10892
|
-
new
|
|
10892
|
+
new Pi(1, 1, {
|
|
10893
10893
|
format: Ke,
|
|
10894
10894
|
type: tt,
|
|
10895
|
-
magFilter:
|
|
10896
|
-
minFilter:
|
|
10895
|
+
magFilter: ze,
|
|
10896
|
+
minFilter: ze
|
|
10897
10897
|
})
|
|
10898
10898
|
], this._compileFunction = () => {
|
|
10899
10899
|
const n = this.compileMaterial(this._fsQuad._mesh);
|
|
@@ -11110,7 +11110,7 @@ class Ph {
|
|
|
11110
11110
|
throw new Error("CubeToEquirectMaterial: Source can only be cube textures.");
|
|
11111
11111
|
const s = t.images[0], l = this._renderer, o = this._quad;
|
|
11112
11112
|
n === null && (n = 4 * s.height), i === null && (i = 2 * s.height);
|
|
11113
|
-
const f = new
|
|
11113
|
+
const f = new Pi(n, i, {
|
|
11114
11114
|
type: tt,
|
|
11115
11115
|
colorSpace: s.colorSpace
|
|
11116
11116
|
}), u = s.height, m = Math.log2(u) - 2, g = 1 / u, p = 1 / (3 * Math.max(Math.pow(2, m), 7 * 16));
|
|
@@ -11342,7 +11342,7 @@ class h1 extends Ko {
|
|
|
11342
11342
|
}
|
|
11343
11343
|
class d1 {
|
|
11344
11344
|
constructor(t) {
|
|
11345
|
-
this.renderer = t, this.pmremGenerator = new lx(t), this.copyQuad = new $r(new h1()), this.renderTarget = new
|
|
11345
|
+
this.renderer = t, this.pmremGenerator = new lx(t), this.copyQuad = new $r(new h1()), this.renderTarget = new Pi(1, 1, { type: tt, format: Ke });
|
|
11346
11346
|
}
|
|
11347
11347
|
dispose() {
|
|
11348
11348
|
this.pmremGenerator.dispose(), this.copyQuad.dispose(), this.renderTarget.dispose();
|
|
@@ -11415,7 +11415,7 @@ const Ih = { type: "change" }, ol = { type: "start" }, gd = { type: "end" }, No
|
|
|
11415
11415
|
}, Mc = 1e-6;
|
|
11416
11416
|
class vd extends Gh {
|
|
11417
11417
|
constructor(t, n = null) {
|
|
11418
|
-
super(t, n), this.state = Ie.NONE, this.enabled = !0, this.target = new X(), this.cursor = new X(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: xt.ROTATE, MIDDLE: xt.DOLLY, RIGHT: xt.PAN }, this.touches = { ONE:
|
|
11418
|
+
super(t, n), this.state = Ie.NONE, this.enabled = !0, this.target = new X(), this.cursor = new X(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: xt.ROTATE, MIDDLE: xt.DOLLY, RIGHT: xt.PAN }, this.touches = { ONE: Ct.ROTATE, TWO: Ct.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new X(), this._lastQuaternion = new Kr(), this._lastTargetPosition = new X(), this._quat = new Kr().setFromUnitVectors(t.up, new X(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new As(), this._sphericalDelta = new As(), this._scale = 1, this._panOffset = new X(), this._rotateStart = new ye(), this._rotateEnd = new ye(), this._rotateDelta = new ye(), this._panStart = new ye(), this._panEnd = new ye(), this._panDelta = new ye(), this._dollyStart = new ye(), this._dollyEnd = new ye(), this._dollyDelta = new ye(), this._dollyDirection = new X(), this._mouse = new ye(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = x1.bind(this), this._onPointerDown = _1.bind(this), this._onPointerUp = b1.bind(this), this._onContextMenu = M1.bind(this), this._onMouseWheel = A1.bind(this), this._onKeyDown = S1.bind(this), this._onTouchStart = R1.bind(this), this._onTouchMove = E1.bind(this), this._onMouseDown = T1.bind(this), this._onMouseMove = w1.bind(this), this._interceptControlDown = C1.bind(this), this._interceptControlUp = P1.bind(this), this.domElement !== null && this.connect(), this.update();
|
|
11419
11419
|
}
|
|
11420
11420
|
connect() {
|
|
11421
11421
|
this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
|
|
@@ -11758,11 +11758,11 @@ function R1(a) {
|
|
|
11758
11758
|
switch (this._trackPointer(a), this._pointers.length) {
|
|
11759
11759
|
case 1:
|
|
11760
11760
|
switch (this.touches.ONE) {
|
|
11761
|
-
case
|
|
11761
|
+
case Ct.ROTATE:
|
|
11762
11762
|
if (this.enableRotate === !1) return;
|
|
11763
11763
|
this._handleTouchStartRotate(a), this.state = Ie.TOUCH_ROTATE;
|
|
11764
11764
|
break;
|
|
11765
|
-
case
|
|
11765
|
+
case Ct.PAN:
|
|
11766
11766
|
if (this.enablePan === !1) return;
|
|
11767
11767
|
this._handleTouchStartPan(a), this.state = Ie.TOUCH_PAN;
|
|
11768
11768
|
break;
|
|
@@ -11772,11 +11772,11 @@ function R1(a) {
|
|
|
11772
11772
|
break;
|
|
11773
11773
|
case 2:
|
|
11774
11774
|
switch (this.touches.TWO) {
|
|
11775
|
-
case
|
|
11775
|
+
case Ct.DOLLY_PAN:
|
|
11776
11776
|
if (this.enableZoom === !1 && this.enablePan === !1) return;
|
|
11777
11777
|
this._handleTouchStartDollyPan(a), this.state = Ie.TOUCH_DOLLY_PAN;
|
|
11778
11778
|
break;
|
|
11779
|
-
case
|
|
11779
|
+
case Ct.DOLLY_ROTATE:
|
|
11780
11780
|
if (this.enableZoom === !1 && this.enableRotate === !1) return;
|
|
11781
11781
|
this._handleTouchStartDollyRotate(a), this.state = Ie.TOUCH_DOLLY_ROTATE;
|
|
11782
11782
|
break;
|
|
@@ -11822,7 +11822,7 @@ function P1(a) {
|
|
|
11822
11822
|
}
|
|
11823
11823
|
class I1 extends vd {
|
|
11824
11824
|
constructor(t, n) {
|
|
11825
|
-
super(t, n), this.screenSpacePanning = !1, this.mouseButtons = { LEFT: xt.PAN, MIDDLE: xt.DOLLY, RIGHT: xt.ROTATE }, this.touches = { ONE:
|
|
11825
|
+
super(t, n), this.screenSpacePanning = !1, this.mouseButtons = { LEFT: xt.PAN, MIDDLE: xt.DOLLY, RIGHT: xt.ROTATE }, this.touches = { ONE: Ct.PAN, TWO: Ct.DOLLY_ROTATE };
|
|
11826
11826
|
}
|
|
11827
11827
|
}
|
|
11828
11828
|
var al = /* @__PURE__ */ ((a) => (a.MapsControls = "MapControls", a.OrbitControls = "OrbitControls", a))(al || {});
|
|
@@ -11901,34 +11901,40 @@ const L1 = (a, t, n) => {
|
|
|
11901
11901
|
a.add(i);
|
|
11902
11902
|
}
|
|
11903
11903
|
}, N1 = (a, t) => {
|
|
11904
|
-
|
|
11905
|
-
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
|
|
11910
|
-
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
|
|
11917
|
-
|
|
11918
|
-
|
|
11919
|
-
|
|
11904
|
+
if (t.ambientLight) {
|
|
11905
|
+
const n = new W.AmbientLight(
|
|
11906
|
+
t.ambientLight.color,
|
|
11907
|
+
t.ambientLight.intensity
|
|
11908
|
+
);
|
|
11909
|
+
a.add(n);
|
|
11910
|
+
}
|
|
11911
|
+
if (t.hemisphereLight) {
|
|
11912
|
+
const n = new W.HemisphereLight(
|
|
11913
|
+
t.hemisphereLight.skyColor,
|
|
11914
|
+
t.hemisphereLight.groundColor,
|
|
11915
|
+
t.hemisphereLight.intensity
|
|
11916
|
+
);
|
|
11917
|
+
a.add(n);
|
|
11918
|
+
}
|
|
11919
|
+
if (t.directionalLight) {
|
|
11920
|
+
const n = new W.DirectionalLight(
|
|
11921
|
+
t.directionalLight.color,
|
|
11922
|
+
t.directionalLight.intensity
|
|
11923
|
+
);
|
|
11924
|
+
n.position.copy(t.directionalLight.position), n.castShadow = t.directionalLight.castShadow, n.castShadow && (n.shadow.mapSize.width = t.directionalLight.shadow.mapSize.width, n.shadow.mapSize.height = t.directionalLight.shadow.mapSize.height, n.shadow.camera.near = t.directionalLight.shadow.camera.near, n.shadow.camera.far = t.directionalLight.shadow.camera.far, n.shadow.camera.left = t.directionalLight.shadow.camera.left, n.shadow.camera.right = t.directionalLight.shadow.camera.right, n.shadow.camera.top = t.directionalLight.shadow.camera.top, n.shadow.camera.bottom = t.directionalLight.shadow.camera.bottom, n.shadow.bias = t.directionalLight.shadow.bias, n.shadow.radius = t.directionalLight.shadow.radius), a.add(n);
|
|
11925
|
+
}
|
|
11920
11926
|
}, B1 = (a) => {
|
|
11921
11927
|
const t = a.getContext("2d");
|
|
11922
11928
|
if (!t) throw new Error("Canvas 2d context is not supported");
|
|
11923
11929
|
return t;
|
|
11924
|
-
}, k1 = 10,
|
|
11930
|
+
}, k1 = 10, U1 = 0.75, z1 = 300, H1 = 250, W1 = 1, G1 = "rgba(34, 34, 34, 0.95)", j1 = "rgba(0, 0, 0, 1)", V1 = "rgba(15, 15, 15, 1)", q1 = (a, t) => {
|
|
11925
11931
|
const n = document.createElement("canvas");
|
|
11926
11932
|
n.width = t.x, n.height = t.y;
|
|
11927
11933
|
const i = B1(n);
|
|
11928
11934
|
i.fillStyle = V1, i.fillRect(0, 0, t.x, t.y);
|
|
11929
11935
|
const s = i.getImageData(0, 0, t.x, t.y), l = s.data;
|
|
11930
11936
|
for (let u = 0; u < l.length; u += 4) {
|
|
11931
|
-
const m = Math.random() *
|
|
11937
|
+
const m = Math.random() * z1;
|
|
11932
11938
|
l[u] += m, l[u + 1] += m, l[u + 2] += m, l[u + 3] = H1;
|
|
11933
11939
|
}
|
|
11934
11940
|
i.putImageData(s, 0, 0), i.filter = `blur(${W1}px)`, i.drawImage(n, 0, 0), i.filter = "none";
|
|
@@ -11939,7 +11945,7 @@ const L1 = (a, t, n) => {
|
|
|
11939
11945
|
// Используем небольшой радиус для центра
|
|
11940
11946
|
t.x / 2,
|
|
11941
11947
|
t.y / 2,
|
|
11942
|
-
t.y *
|
|
11948
|
+
t.y * U1
|
|
11943
11949
|
// Радиус для краев
|
|
11944
11950
|
);
|
|
11945
11951
|
o.addColorStop(0, G1), o.addColorStop(1, j1), i.fillStyle = o, i.fillRect(0, 0, t.x, t.y);
|
|
@@ -12030,17 +12036,17 @@ var Wo = { exports: {} };
|
|
|
12030
12036
|
Wo.exports;
|
|
12031
12037
|
(function(a, t) {
|
|
12032
12038
|
(function() {
|
|
12033
|
-
var n, i = "4.17.21", s = 200, l = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", o = "Expected a function", f = "Invalid `variable` option passed into `_.template`", u = "__lodash_hash_undefined__", m = 500, g = "__lodash_placeholder__", p = 1, h = 2, b = 4, w = 1, E = 2, _ = 1, S = 2, A = 4, M = 8, I = 16, O = 32, B = 64, L = 128,
|
|
12039
|
+
var n, i = "4.17.21", s = 200, l = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", o = "Expected a function", f = "Invalid `variable` option passed into `_.template`", u = "__lodash_hash_undefined__", m = 500, g = "__lodash_placeholder__", p = 1, h = 2, b = 4, w = 1, E = 2, _ = 1, S = 2, A = 4, M = 8, I = 16, O = 32, B = 64, L = 128, U = 256, z = 512, V = 30, Z = "...", Y = 800, $ = 16, ee = 1, oe = 2, Ae = 3, Ne = 1 / 0, Be = 9007199254740991, st = 17976931348623157e292, It = NaN, Ve = 4294967295, yr = Ve - 1, _r = Ve >>> 1, Fi = [
|
|
12034
12040
|
["ary", L],
|
|
12035
12041
|
["bind", _],
|
|
12036
12042
|
["bindKey", S],
|
|
12037
12043
|
["curry", M],
|
|
12038
12044
|
["curryRight", I],
|
|
12039
|
-
["flip",
|
|
12045
|
+
["flip", z],
|
|
12040
12046
|
["partial", O],
|
|
12041
12047
|
["partialRight", B],
|
|
12042
|
-
["rearg",
|
|
12043
|
-
], xn = "[object Arguments]", qt = "[object Array]", Pn = "[object AsyncFunction]", lt = "[object Boolean]",
|
|
12048
|
+
["rearg", U]
|
|
12049
|
+
], xn = "[object Arguments]", qt = "[object Array]", Pn = "[object AsyncFunction]", lt = "[object Boolean]", Dt = "[object Date]", on = "[object DOMException]", Jn = "[object Error]", bn = "[object Function]", Xr = "[object GeneratorFunction]", ut = "[object Map]", ft = "[object Number]", Ot = "[object Null]", ht = "[object Object]", er = "[object Promise]", an = "[object Proxy]", In = "[object RegExp]", dt = "[object Set]", Ft = "[object String]", tr = "[object Symbol]", Li = "[object Undefined]", cn = "[object WeakMap]", xr = "[object WeakSet]", nt = "[object ArrayBuffer]", Tn = "[object DataView]", Dn = "[object Float32Array]", On = "[object Float64Array]", ln = "[object Int8Array]", br = "[object Int16Array]", Tr = "[object Int32Array]", wr = "[object Uint8Array]", Ar = "[object Uint8ClampedArray]", Sr = "[object Uint16Array]", Rr = "[object Uint32Array]", Ni = /\b__p \+= '';/g, Fn = /\b(__p \+=) '' \+/g, Er = /(__e\(.*?\)|\b__t\)) \+\n'';/g, ot = /&(?:amp|lt|gt|quot|#39);/g, wn = /[&<>"']/g, Ln = RegExp(ot.source), Mr = RegExp(wn.source), Bi = /<%-([\s\S]+?)%>/g, Cr = /<%([\s\S]+?)%>/g, Zr = /<%=([\s\S]+?)%>/g, Pr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ir = /^\w*$/, ki = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Dr = /[\\^$.*+?()[\]{}|]/g, Or = RegExp(Dr.source), Nn = /^\s+/, Ui = /\s/, zi = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Hi = /\{\n\/\* \[wrapped with (.+)\] \*/, Wi = /,? & /, v = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, P = /[()=,{}\[\]\/\s]/, N = /\\(\\)?/g, K = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, re = /\w*$/, se = /^[-+]0x[0-9a-f]+$/i, te = /^0b[01]+$/i, J = /^\[object .+?Constructor\]$/, we = /^0o[0-7]+$/i, ue = /^(?:0|[1-9]\d*)$/, he = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ee = /($^)/, pt = /['\n\r\u2028\u2029\\]/g, qe = "\\ud800-\\udfff", Se = "\\u0300-\\u036f", Bn = "\\ufe20-\\ufe2f", Gi = "\\u20d0-\\u20ff", Qr = Se + Bn + Gi, cl = "\\u2700-\\u27bf", ll = "a-z\\xdf-\\xf6\\xf8-\\xff", yd = "\\xac\\xb1\\xd7\\xf7", _d = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", xd = "\\u2000-\\u206f", bd = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ul = "A-Z\\xc0-\\xd6\\xd8-\\xde", fl = "\\ufe0e\\ufe0f", hl = yd + _d + xd + bd, Xo = "['’]", Td = "[" + qe + "]", dl = "[" + hl + "]", Rs = "[" + Qr + "]", pl = "\\d+", wd = "[" + cl + "]", ml = "[" + ll + "]", gl = "[^" + qe + hl + pl + cl + ll + ul + "]", Zo = "\\ud83c[\\udffb-\\udfff]", Ad = "(?:" + Rs + "|" + Zo + ")", vl = "[^" + qe + "]", Qo = "(?:\\ud83c[\\udde6-\\uddff]){2}", Jo = "[\\ud800-\\udbff][\\udc00-\\udfff]", Jr = "[" + ul + "]", yl = "\\u200d", _l = "(?:" + ml + "|" + gl + ")", Sd = "(?:" + Jr + "|" + gl + ")", xl = "(?:" + Xo + "(?:d|ll|m|re|s|t|ve))?", bl = "(?:" + Xo + "(?:D|LL|M|RE|S|T|VE))?", Tl = Ad + "?", wl = "[" + fl + "]?", Rd = "(?:" + yl + "(?:" + [vl, Qo, Jo].join("|") + ")" + wl + Tl + ")*", Ed = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Md = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Al = wl + Tl + Rd, Cd = "(?:" + [wd, Qo, Jo].join("|") + ")" + Al, Pd = "(?:" + [vl + Rs + "?", Rs, Qo, Jo, Td].join("|") + ")", Id = RegExp(Xo, "g"), Dd = RegExp(Rs, "g"), ea = RegExp(Zo + "(?=" + Zo + ")|" + Pd + Al, "g"), Od = RegExp([
|
|
12044
12050
|
Jr + "?" + ml + "+" + xl + "(?=" + [dl, Jr, "$"].join("|") + ")",
|
|
12045
12051
|
Sd + "+" + bl + "(?=" + [dl, Jr + _l, "$"].join("|") + ")",
|
|
12046
12052
|
Jr + "?" + _l + "+" + xl,
|
|
@@ -12081,9 +12087,9 @@ Wo.exports;
|
|
|
12081
12087
|
"parseInt",
|
|
12082
12088
|
"setTimeout"
|
|
12083
12089
|
], Bd = -1, Fe = {};
|
|
12084
|
-
Fe[Dn] = Fe[On] = Fe[ln] = Fe[br] = Fe[Tr] = Fe[wr] = Fe[Ar] = Fe[Sr] = Fe[Rr] = !0, Fe[xn] = Fe[qt] = Fe[nt] = Fe[lt] = Fe[Tn] = Fe[
|
|
12090
|
+
Fe[Dn] = Fe[On] = Fe[ln] = Fe[br] = Fe[Tr] = Fe[wr] = Fe[Ar] = Fe[Sr] = Fe[Rr] = !0, Fe[xn] = Fe[qt] = Fe[nt] = Fe[lt] = Fe[Tn] = Fe[Dt] = Fe[Jn] = Fe[bn] = Fe[ut] = Fe[ft] = Fe[ht] = Fe[In] = Fe[dt] = Fe[Ft] = Fe[cn] = !1;
|
|
12085
12091
|
var Oe = {};
|
|
12086
|
-
Oe[xn] = Oe[qt] = Oe[nt] = Oe[Tn] = Oe[lt] = Oe[
|
|
12092
|
+
Oe[xn] = Oe[qt] = Oe[nt] = Oe[Tn] = Oe[lt] = Oe[Dt] = Oe[Dn] = Oe[On] = Oe[ln] = Oe[br] = Oe[Tr] = Oe[ut] = Oe[ft] = Oe[ht] = Oe[In] = Oe[dt] = Oe[Ft] = Oe[tr] = Oe[wr] = Oe[Ar] = Oe[Sr] = Oe[Rr] = !0, Oe[Jn] = Oe[bn] = Oe[cn] = !1;
|
|
12087
12093
|
var kd = {
|
|
12088
12094
|
// Latin-1 Supplement block.
|
|
12089
12095
|
À: "A",
|
|
@@ -12277,13 +12283,13 @@ Wo.exports;
|
|
|
12277
12283
|
œ: "oe",
|
|
12278
12284
|
ʼn: "'n",
|
|
12279
12285
|
ſ: "s"
|
|
12280
|
-
},
|
|
12286
|
+
}, Ud = {
|
|
12281
12287
|
"&": "&",
|
|
12282
12288
|
"<": "<",
|
|
12283
12289
|
">": ">",
|
|
12284
12290
|
'"': """,
|
|
12285
12291
|
"'": "'"
|
|
12286
|
-
},
|
|
12292
|
+
}, zd = {
|
|
12287
12293
|
"&": "&",
|
|
12288
12294
|
"<": "<",
|
|
12289
12295
|
">": ">",
|
|
@@ -12296,14 +12302,14 @@ Wo.exports;
|
|
|
12296
12302
|
"\r": "r",
|
|
12297
12303
|
"\u2028": "u2028",
|
|
12298
12304
|
"\u2029": "u2029"
|
|
12299
|
-
}, Wd = parseFloat, Gd = parseInt, Sl = typeof
|
|
12305
|
+
}, Wd = parseFloat, Gd = parseInt, Sl = typeof ss == "object" && ss && ss.Object === Object && ss, jd = typeof self == "object" && self && self.Object === Object && self, rt = Sl || jd || Function("return this")(), ta = t && !t.nodeType && t, Fr = ta && !0 && a && !a.nodeType && a, Rl = Fr && Fr.exports === ta, na = Rl && Sl.process, Yt = function() {
|
|
12300
12306
|
try {
|
|
12301
12307
|
var D = Fr && Fr.require && Fr.require("util").types;
|
|
12302
12308
|
return D || na && na.binding && na.binding("util");
|
|
12303
12309
|
} catch {
|
|
12304
12310
|
}
|
|
12305
12311
|
}(), El = Yt && Yt.isArrayBuffer, Ml = Yt && Yt.isDate, Cl = Yt && Yt.isMap, Pl = Yt && Yt.isRegExp, Il = Yt && Yt.isSet, Dl = Yt && Yt.isTypedArray;
|
|
12306
|
-
function
|
|
12312
|
+
function Lt(D, H, k) {
|
|
12307
12313
|
switch (k.length) {
|
|
12308
12314
|
case 0:
|
|
12309
12315
|
return D.call(H);
|
|
@@ -12418,7 +12424,7 @@ Wo.exports;
|
|
|
12418
12424
|
}
|
|
12419
12425
|
function Nl(D, H) {
|
|
12420
12426
|
var k = D == null ? 0 : D.length;
|
|
12421
|
-
return k ? ca(D, H) / k :
|
|
12427
|
+
return k ? ca(D, H) / k : It;
|
|
12422
12428
|
}
|
|
12423
12429
|
function oa(D) {
|
|
12424
12430
|
return function(H) {
|
|
@@ -12461,7 +12467,7 @@ Wo.exports;
|
|
|
12461
12467
|
function kl(D) {
|
|
12462
12468
|
return D && D.slice(0, Wl(D) + 1).replace(Nn, "");
|
|
12463
12469
|
}
|
|
12464
|
-
function
|
|
12470
|
+
function Nt(D) {
|
|
12465
12471
|
return function(H) {
|
|
12466
12472
|
return D(H);
|
|
12467
12473
|
};
|
|
@@ -12471,15 +12477,15 @@ Wo.exports;
|
|
|
12471
12477
|
return D[k];
|
|
12472
12478
|
});
|
|
12473
12479
|
}
|
|
12474
|
-
function
|
|
12480
|
+
function ji(D, H) {
|
|
12475
12481
|
return D.has(H);
|
|
12476
12482
|
}
|
|
12477
|
-
function
|
|
12483
|
+
function Ul(D, H) {
|
|
12478
12484
|
for (var k = -1, ne = D.length; ++k < ne && ei(H, D[k], 0) > -1; )
|
|
12479
12485
|
;
|
|
12480
12486
|
return k;
|
|
12481
12487
|
}
|
|
12482
|
-
function
|
|
12488
|
+
function zl(D, H) {
|
|
12483
12489
|
for (var k = D.length; k-- && ei(H, D[k], 0) > -1; )
|
|
12484
12490
|
;
|
|
12485
12491
|
return k;
|
|
@@ -12489,7 +12495,7 @@ Wo.exports;
|
|
|
12489
12495
|
D[k] === H && ++ne;
|
|
12490
12496
|
return ne;
|
|
12491
12497
|
}
|
|
12492
|
-
var tp = aa(kd), np = aa(
|
|
12498
|
+
var tp = aa(kd), np = aa(Ud);
|
|
12493
12499
|
function rp(D) {
|
|
12494
12500
|
return "\\" + Hd[D];
|
|
12495
12501
|
}
|
|
@@ -12556,11 +12562,11 @@ Wo.exports;
|
|
|
12556
12562
|
return ti(D) ? hp(D) : $d(D);
|
|
12557
12563
|
}
|
|
12558
12564
|
function Wl(D) {
|
|
12559
|
-
for (var H = D.length; H-- &&
|
|
12565
|
+
for (var H = D.length; H-- && Ui.test(D.charAt(H)); )
|
|
12560
12566
|
;
|
|
12561
12567
|
return H;
|
|
12562
12568
|
}
|
|
12563
|
-
var up = aa(
|
|
12569
|
+
var up = aa(zd);
|
|
12564
12570
|
function fp(D) {
|
|
12565
12571
|
for (var H = ea.lastIndex = 0; ea.test(D); )
|
|
12566
12572
|
++H;
|
|
@@ -12579,13 +12585,13 @@ Wo.exports;
|
|
|
12579
12585
|
return e ? "Symbol(src)_1." + e : "";
|
|
12580
12586
|
}(), Os = ii.toString, yp = Ds.call(De), _p = rt._, xp = ha(
|
|
12581
12587
|
"^" + Ds.call(Ce).replace(Dr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
12582
|
-
), Fs = Rl ? H.Buffer : n, sr = H.Symbol, Ls = H.Uint8Array, jl = Fs ? Fs.allocUnsafe : n, Ns = Hl(De.getPrototypeOf, De), Vl = De.create, ql = ii.propertyIsEnumerable, Bs = Ps.splice, Yl = sr ? sr.isConcatSpreadable : n,
|
|
12588
|
+
), Fs = Rl ? H.Buffer : n, sr = H.Symbol, Ls = H.Uint8Array, jl = Fs ? Fs.allocUnsafe : n, Ns = Hl(De.getPrototypeOf, De), Vl = De.create, ql = ii.propertyIsEnumerable, Bs = Ps.splice, Yl = sr ? sr.isConcatSpreadable : n, Vi = sr ? sr.iterator : n, Lr = sr ? sr.toStringTag : n, ks = function() {
|
|
12583
12589
|
try {
|
|
12584
|
-
var e =
|
|
12590
|
+
var e = zr(De, "defineProperty");
|
|
12585
12591
|
return e({}, "", {}), e;
|
|
12586
12592
|
} catch {
|
|
12587
12593
|
}
|
|
12588
|
-
}(), bp = H.clearTimeout !== rt.clearTimeout && H.clearTimeout, Tp = ne && ne.now !== rt.Date.now && ne.now, wp = H.setTimeout !== rt.setTimeout && H.setTimeout,
|
|
12594
|
+
}(), bp = H.clearTimeout !== rt.clearTimeout && H.clearTimeout, Tp = ne && ne.now !== rt.Date.now && ne.now, wp = H.setTimeout !== rt.setTimeout && H.setTimeout, Us = $e.ceil, zs = $e.floor, da = De.getOwnPropertySymbols, Ap = Fs ? Fs.isBuffer : n, Kl = H.isFinite, Sp = Ps.join, Rp = Hl(De.keys, De), Xe = $e.max, at = $e.min, Ep = ne.now, Mp = H.parseInt, $l = $e.random, Cp = Ps.reverse, pa = zr(H, "DataView"), qi = zr(H, "Map"), ma = zr(H, "Promise"), si = zr(H, "Set"), Yi = zr(H, "WeakMap"), Ki = zr(De, "create"), Hs = Yi && new Yi(), oi = {}, Pp = Hr(pa), Ip = Hr(qi), Dp = Hr(ma), Op = Hr(si), Fp = Hr(Yi), Ws = sr ? sr.prototype : n, $i = Ws ? Ws.valueOf : n, Xl = Ws ? Ws.toString : n;
|
|
12589
12595
|
function x(e) {
|
|
12590
12596
|
if (He(e) && !de(e) && !(e instanceof xe)) {
|
|
12591
12597
|
if (e instanceof Xt)
|
|
@@ -12599,7 +12605,7 @@ Wo.exports;
|
|
|
12599
12605
|
function e() {
|
|
12600
12606
|
}
|
|
12601
12607
|
return function(r) {
|
|
12602
|
-
if (!
|
|
12608
|
+
if (!Ue(r))
|
|
12603
12609
|
return {};
|
|
12604
12610
|
if (Vl)
|
|
12605
12611
|
return Vl(r);
|
|
@@ -12620,7 +12626,7 @@ Wo.exports;
|
|
|
12620
12626
|
* @memberOf _.templateSettings
|
|
12621
12627
|
* @type {RegExp}
|
|
12622
12628
|
*/
|
|
12623
|
-
escape:
|
|
12629
|
+
escape: Bi,
|
|
12624
12630
|
/**
|
|
12625
12631
|
* Used to detect code to be evaluated.
|
|
12626
12632
|
*
|
|
@@ -12704,15 +12710,15 @@ Wo.exports;
|
|
|
12704
12710
|
}
|
|
12705
12711
|
}
|
|
12706
12712
|
function kp() {
|
|
12707
|
-
this.__data__ =
|
|
12713
|
+
this.__data__ = Ki ? Ki(null) : {}, this.size = 0;
|
|
12708
12714
|
}
|
|
12709
|
-
function
|
|
12715
|
+
function Up(e) {
|
|
12710
12716
|
var r = this.has(e) && delete this.__data__[e];
|
|
12711
12717
|
return this.size -= r ? 1 : 0, r;
|
|
12712
12718
|
}
|
|
12713
|
-
function
|
|
12719
|
+
function zp(e) {
|
|
12714
12720
|
var r = this.__data__;
|
|
12715
|
-
if (
|
|
12721
|
+
if (Ki) {
|
|
12716
12722
|
var c = r[e];
|
|
12717
12723
|
return c === u ? n : c;
|
|
12718
12724
|
}
|
|
@@ -12720,13 +12726,13 @@ Wo.exports;
|
|
|
12720
12726
|
}
|
|
12721
12727
|
function Hp(e) {
|
|
12722
12728
|
var r = this.__data__;
|
|
12723
|
-
return
|
|
12729
|
+
return Ki ? r[e] !== n : Ce.call(r, e);
|
|
12724
12730
|
}
|
|
12725
12731
|
function Wp(e, r) {
|
|
12726
12732
|
var c = this.__data__;
|
|
12727
|
-
return this.size += this.has(e) ? 0 : 1, c[e] =
|
|
12733
|
+
return this.size += this.has(e) ? 0 : 1, c[e] = Ki && r === n ? u : r, this;
|
|
12728
12734
|
}
|
|
12729
|
-
Nr.prototype.clear = kp, Nr.prototype.delete =
|
|
12735
|
+
Nr.prototype.clear = kp, Nr.prototype.delete = Up, Nr.prototype.get = zp, Nr.prototype.has = Hp, Nr.prototype.set = Wp;
|
|
12730
12736
|
function kn(e) {
|
|
12731
12737
|
var r = -1, c = e == null ? 0 : e.length;
|
|
12732
12738
|
for (this.clear(); ++r < c; ) {
|
|
@@ -12756,7 +12762,7 @@ Wo.exports;
|
|
|
12756
12762
|
return d < 0 ? (++this.size, c.push([e, r])) : c[d][1] = r, this;
|
|
12757
12763
|
}
|
|
12758
12764
|
kn.prototype.clear = Gp, kn.prototype.delete = jp, kn.prototype.get = Vp, kn.prototype.has = qp, kn.prototype.set = Yp;
|
|
12759
|
-
function
|
|
12765
|
+
function Un(e) {
|
|
12760
12766
|
var r = -1, c = e == null ? 0 : e.length;
|
|
12761
12767
|
for (this.clear(); ++r < c; ) {
|
|
12762
12768
|
var d = e[r];
|
|
@@ -12766,7 +12772,7 @@ Wo.exports;
|
|
|
12766
12772
|
function Kp() {
|
|
12767
12773
|
this.size = 0, this.__data__ = {
|
|
12768
12774
|
hash: new Nr(),
|
|
12769
|
-
map: new (
|
|
12775
|
+
map: new (qi || kn)(),
|
|
12770
12776
|
string: new Nr()
|
|
12771
12777
|
};
|
|
12772
12778
|
}
|
|
@@ -12784,10 +12790,10 @@ Wo.exports;
|
|
|
12784
12790
|
var c = no(this, e), d = c.size;
|
|
12785
12791
|
return c.set(e, r), this.size += c.size == d ? 0 : 1, this;
|
|
12786
12792
|
}
|
|
12787
|
-
|
|
12793
|
+
Un.prototype.clear = Kp, Un.prototype.delete = $p, Un.prototype.get = Xp, Un.prototype.has = Zp, Un.prototype.set = Qp;
|
|
12788
12794
|
function Br(e) {
|
|
12789
12795
|
var r = -1, c = e == null ? 0 : e.length;
|
|
12790
|
-
for (this.__data__ = new
|
|
12796
|
+
for (this.__data__ = new Un(); ++r < c; )
|
|
12791
12797
|
this.add(e[r]);
|
|
12792
12798
|
}
|
|
12793
12799
|
function Jp(e) {
|
|
@@ -12818,9 +12824,9 @@ Wo.exports;
|
|
|
12818
12824
|
var c = this.__data__;
|
|
12819
12825
|
if (c instanceof kn) {
|
|
12820
12826
|
var d = c.__data__;
|
|
12821
|
-
if (!
|
|
12827
|
+
if (!qi || d.length < s - 1)
|
|
12822
12828
|
return d.push([e, r]), this.size = ++c.size, this;
|
|
12823
|
-
c = this.__data__ = new
|
|
12829
|
+
c = this.__data__ = new Un(d);
|
|
12824
12830
|
}
|
|
12825
12831
|
return c.set(e, r), this.size = c.size, this;
|
|
12826
12832
|
}
|
|
@@ -12846,11 +12852,11 @@ Wo.exports;
|
|
|
12846
12852
|
return ro(Tt(e));
|
|
12847
12853
|
}
|
|
12848
12854
|
function ga(e, r, c) {
|
|
12849
|
-
(c !== n && !hn(e[r], c) || c === n && !(r in e)) &&
|
|
12855
|
+
(c !== n && !hn(e[r], c) || c === n && !(r in e)) && zn(e, r, c);
|
|
12850
12856
|
}
|
|
12851
|
-
function
|
|
12857
|
+
function Xi(e, r, c) {
|
|
12852
12858
|
var d = e[r];
|
|
12853
|
-
(!(Ce.call(e, r) && hn(d, c)) || c === n && !(r in e)) &&
|
|
12859
|
+
(!(Ce.call(e, r) && hn(d, c)) || c === n && !(r in e)) && zn(e, r, c);
|
|
12854
12860
|
}
|
|
12855
12861
|
function js(e, r) {
|
|
12856
12862
|
for (var c = e.length; c--; )
|
|
@@ -12869,7 +12875,7 @@ Wo.exports;
|
|
|
12869
12875
|
function lm(e, r) {
|
|
12870
12876
|
return e && Sn(r, At(r), e);
|
|
12871
12877
|
}
|
|
12872
|
-
function
|
|
12878
|
+
function zn(e, r, c) {
|
|
12873
12879
|
r == "__proto__" && ks ? ks(e, r, {
|
|
12874
12880
|
configurable: !0,
|
|
12875
12881
|
enumerable: !0,
|
|
@@ -12889,7 +12895,7 @@ Wo.exports;
|
|
|
12889
12895
|
var R, C = r & p, F = r & h, G = r & b;
|
|
12890
12896
|
if (c && (R = y ? c(e, d, y, T) : c(e)), R !== n)
|
|
12891
12897
|
return R;
|
|
12892
|
-
if (!
|
|
12898
|
+
if (!Ue(e))
|
|
12893
12899
|
return e;
|
|
12894
12900
|
var j = de(e);
|
|
12895
12901
|
if (j) {
|
|
@@ -12901,7 +12907,7 @@ Wo.exports;
|
|
|
12901
12907
|
return wu(e, C);
|
|
12902
12908
|
if (q == ht || q == xn || Q && !y) {
|
|
12903
12909
|
if (R = F || Q ? {} : Wu(e), !C)
|
|
12904
|
-
return F ?
|
|
12910
|
+
return F ? zm(e, lm(R, e)) : Um(e, Jl(R, e));
|
|
12905
12911
|
} else {
|
|
12906
12912
|
if (!Oe[q])
|
|
12907
12913
|
return y ? e : {};
|
|
@@ -12919,7 +12925,7 @@ Wo.exports;
|
|
|
12919
12925
|
});
|
|
12920
12926
|
var ce = G ? F ? Ba : Na : F ? At : et, me = j ? n : ce(e);
|
|
12921
12927
|
return Kt(me || e, function(le, ve) {
|
|
12922
|
-
me && (ve = le, le = e[ve]),
|
|
12928
|
+
me && (ve = le, le = e[ve]), Xi(R, ve, Zt(le, r, c, ve, e, T));
|
|
12923
12929
|
}), R;
|
|
12924
12930
|
}
|
|
12925
12931
|
function um(e) {
|
|
@@ -12942,15 +12948,15 @@ Wo.exports;
|
|
|
12942
12948
|
function tu(e, r, c) {
|
|
12943
12949
|
if (typeof e != "function")
|
|
12944
12950
|
throw new $t(o);
|
|
12945
|
-
return
|
|
12951
|
+
return rs(function() {
|
|
12946
12952
|
e.apply(n, c);
|
|
12947
12953
|
}, r);
|
|
12948
12954
|
}
|
|
12949
|
-
function
|
|
12955
|
+
function Zi(e, r, c, d) {
|
|
12950
12956
|
var y = -1, T = Es, R = !0, C = e.length, F = [], G = r.length;
|
|
12951
12957
|
if (!C)
|
|
12952
12958
|
return F;
|
|
12953
|
-
c && (r = ke(r,
|
|
12959
|
+
c && (r = ke(r, Nt(c))), d ? (T = ra, R = !1) : r.length >= s && (T = ji, R = !1, r = new Br(r));
|
|
12954
12960
|
e:
|
|
12955
12961
|
for (; ++y < C; ) {
|
|
12956
12962
|
var j = e[y], q = c == null ? j : c(j);
|
|
@@ -12973,7 +12979,7 @@ Wo.exports;
|
|
|
12973
12979
|
function Vs(e, r, c) {
|
|
12974
12980
|
for (var d = -1, y = e.length; ++d < y; ) {
|
|
12975
12981
|
var T = e[d], R = r(T);
|
|
12976
|
-
if (R != null && (C === n ? R === R && !
|
|
12982
|
+
if (R != null && (C === n ? R === R && !kt(R) : c(R, C)))
|
|
12977
12983
|
var C = R, F = T;
|
|
12978
12984
|
}
|
|
12979
12985
|
return F;
|
|
@@ -13010,7 +13016,7 @@ Wo.exports;
|
|
|
13010
13016
|
return jn(e[c]);
|
|
13011
13017
|
});
|
|
13012
13018
|
}
|
|
13013
|
-
function
|
|
13019
|
+
function Ur(e, r) {
|
|
13014
13020
|
r = cr(r, e);
|
|
13015
13021
|
for (var c = 0, d = r.length; e != null && c < d; )
|
|
13016
13022
|
e = e[Rn(r[c++])];
|
|
@@ -13021,7 +13027,7 @@ Wo.exports;
|
|
|
13021
13027
|
return de(e) ? d : rr(d, c(e));
|
|
13022
13028
|
}
|
|
13023
13029
|
function mt(e) {
|
|
13024
|
-
return e == null ? e === n ?
|
|
13030
|
+
return e == null ? e === n ? Li : Ot : Lr && Lr in De(e) ? Km(e) : ag(e);
|
|
13025
13031
|
}
|
|
13026
13032
|
function xa(e, r) {
|
|
13027
13033
|
return e > r;
|
|
@@ -13038,17 +13044,17 @@ Wo.exports;
|
|
|
13038
13044
|
function ba(e, r, c) {
|
|
13039
13045
|
for (var d = c ? ra : Es, y = e[0].length, T = e.length, R = T, C = k(T), F = 1 / 0, G = []; R--; ) {
|
|
13040
13046
|
var j = e[R];
|
|
13041
|
-
R && r && (j = ke(j,
|
|
13047
|
+
R && r && (j = ke(j, Nt(r))), F = at(j.length, F), C[R] = !c && (r || y >= 120 && j.length >= 120) ? new Br(R && j) : n;
|
|
13042
13048
|
}
|
|
13043
13049
|
j = e[0];
|
|
13044
13050
|
var q = -1, Q = C[0];
|
|
13045
13051
|
e:
|
|
13046
13052
|
for (; ++q < y && G.length < F; ) {
|
|
13047
13053
|
var ie = j[q], ce = r ? r(ie) : ie;
|
|
13048
|
-
if (ie = c || ie !== 0 ? ie : 0, !(Q ?
|
|
13054
|
+
if (ie = c || ie !== 0 ? ie : 0, !(Q ? ji(Q, ce) : d(G, ce, c))) {
|
|
13049
13055
|
for (R = T; --R; ) {
|
|
13050
13056
|
var me = C[R];
|
|
13051
|
-
if (!(me ?
|
|
13057
|
+
if (!(me ? ji(me, ce) : d(e[R], ce, c)))
|
|
13052
13058
|
continue e;
|
|
13053
13059
|
}
|
|
13054
13060
|
Q && Q.push(ce), G.push(ie);
|
|
@@ -13061,10 +13067,10 @@ Wo.exports;
|
|
|
13061
13067
|
r(d, c(y), T, R);
|
|
13062
13068
|
}), d;
|
|
13063
13069
|
}
|
|
13064
|
-
function
|
|
13070
|
+
function Qi(e, r, c) {
|
|
13065
13071
|
r = cr(r, e), e = qu(e, r);
|
|
13066
13072
|
var d = e == null ? e : e[Rn(Jt(r))];
|
|
13067
|
-
return d == null ? n :
|
|
13073
|
+
return d == null ? n : Lt(d, e, c);
|
|
13068
13074
|
}
|
|
13069
13075
|
function ou(e) {
|
|
13070
13076
|
return He(e) && mt(e) == xn;
|
|
@@ -13073,10 +13079,10 @@ Wo.exports;
|
|
|
13073
13079
|
return He(e) && mt(e) == nt;
|
|
13074
13080
|
}
|
|
13075
13081
|
function ym(e) {
|
|
13076
|
-
return He(e) && mt(e) ==
|
|
13082
|
+
return He(e) && mt(e) == Dt;
|
|
13077
13083
|
}
|
|
13078
|
-
function
|
|
13079
|
-
return e === r ? !0 : e == null || r == null || !He(e) && !He(r) ? e !== e && r !== r : _m(e, r, c, d,
|
|
13084
|
+
function Ji(e, r, c, d, y) {
|
|
13085
|
+
return e === r ? !0 : e == null || r == null || !He(e) && !He(r) ? e !== e && r !== r : _m(e, r, c, d, Ji, y);
|
|
13080
13086
|
}
|
|
13081
13087
|
function _m(e, r, c, d, y, T) {
|
|
13082
13088
|
var R = de(e), C = de(r), F = R ? qt : ct(e), G = C ? qt : ct(r);
|
|
@@ -13088,7 +13094,7 @@ Wo.exports;
|
|
|
13088
13094
|
R = !0, j = !1;
|
|
13089
13095
|
}
|
|
13090
13096
|
if (Q && !j)
|
|
13091
|
-
return T || (T = new fn()), R || fi(e) ?
|
|
13097
|
+
return T || (T = new fn()), R || fi(e) ? Uu(e, r, c, d, y, T) : qm(e, r, F, c, d, y, T);
|
|
13092
13098
|
if (!(c & w)) {
|
|
13093
13099
|
var ie = j && Ce.call(e, "__wrapped__"), ce = q && Ce.call(r, "__wrapped__");
|
|
13094
13100
|
if (ie || ce) {
|
|
@@ -13120,14 +13126,14 @@ Wo.exports;
|
|
|
13120
13126
|
var q = new fn();
|
|
13121
13127
|
if (d)
|
|
13122
13128
|
var Q = d(G, j, F, e, r, q);
|
|
13123
|
-
if (!(Q === n ?
|
|
13129
|
+
if (!(Q === n ? Ji(j, G, w | E, d, q) : Q))
|
|
13124
13130
|
return !1;
|
|
13125
13131
|
}
|
|
13126
13132
|
}
|
|
13127
13133
|
return !0;
|
|
13128
13134
|
}
|
|
13129
13135
|
function au(e) {
|
|
13130
|
-
if (!
|
|
13136
|
+
if (!Ue(e) || ng(e))
|
|
13131
13137
|
return !1;
|
|
13132
13138
|
var r = jn(e) ? xp : J;
|
|
13133
13139
|
return r.test(Hr(e));
|
|
@@ -13145,7 +13151,7 @@ Wo.exports;
|
|
|
13145
13151
|
return typeof e == "function" ? e : e == null ? St : typeof e == "object" ? de(e) ? fu(e[0], e[1]) : uu(e) : If(e);
|
|
13146
13152
|
}
|
|
13147
13153
|
function wa(e) {
|
|
13148
|
-
if (!
|
|
13154
|
+
if (!ns(e))
|
|
13149
13155
|
return Rp(e);
|
|
13150
13156
|
var r = [];
|
|
13151
13157
|
for (var c in De(e))
|
|
@@ -13153,9 +13159,9 @@ Wo.exports;
|
|
|
13153
13159
|
return r;
|
|
13154
13160
|
}
|
|
13155
13161
|
function Am(e) {
|
|
13156
|
-
if (!
|
|
13162
|
+
if (!Ue(e))
|
|
13157
13163
|
return og(e);
|
|
13158
|
-
var r =
|
|
13164
|
+
var r = ns(e), c = [];
|
|
13159
13165
|
for (var d in e)
|
|
13160
13166
|
d == "constructor" && (r || !Ce.call(e, d)) || c.push(d);
|
|
13161
13167
|
return c;
|
|
@@ -13170,7 +13176,7 @@ Wo.exports;
|
|
|
13170
13176
|
}), d;
|
|
13171
13177
|
}
|
|
13172
13178
|
function uu(e) {
|
|
13173
|
-
var r =
|
|
13179
|
+
var r = Ua(e);
|
|
13174
13180
|
return r.length == 1 && r[0][2] ? ju(r[0][0], r[0][1]) : function(c) {
|
|
13175
13181
|
return c === e || Ta(c, e, r);
|
|
13176
13182
|
};
|
|
@@ -13178,12 +13184,12 @@ Wo.exports;
|
|
|
13178
13184
|
function fu(e, r) {
|
|
13179
13185
|
return Ha(e) && Gu(r) ? ju(Rn(e), r) : function(c) {
|
|
13180
13186
|
var d = Za(c, e);
|
|
13181
|
-
return d === n && d === r ? Qa(c, e) :
|
|
13187
|
+
return d === n && d === r ? Qa(c, e) : Ji(r, d, w | E);
|
|
13182
13188
|
};
|
|
13183
13189
|
}
|
|
13184
13190
|
function Ys(e, r, c, d, y) {
|
|
13185
13191
|
e !== r && ya(r, function(T, R) {
|
|
13186
|
-
if (y || (y = new fn()),
|
|
13192
|
+
if (y || (y = new fn()), Ue(T))
|
|
13187
13193
|
Sm(e, r, R, c, Ys, d, y);
|
|
13188
13194
|
else {
|
|
13189
13195
|
var C = d ? d(Ga(e, R), T, R + "", e, r, y) : n;
|
|
@@ -13200,7 +13206,7 @@ Wo.exports;
|
|
|
13200
13206
|
var j = T ? T(C, F, c + "", e, r, R) : n, q = j === n;
|
|
13201
13207
|
if (q) {
|
|
13202
13208
|
var Q = de(F), ie = !Q && ur(F), ce = !Q && !ie && fi(F);
|
|
13203
|
-
j = F, Q || ie || ce ? de(C) ? j = C : Ge(C) ? j = Tt(C) : ie ? (q = !1, j = wu(F, !0)) : ce ? (q = !1, j = Au(F, !0)) : j = [] :
|
|
13209
|
+
j = F, Q || ie || ce ? de(C) ? j = C : Ge(C) ? j = Tt(C) : ie ? (q = !1, j = wu(F, !0)) : ce ? (q = !1, j = Au(F, !0)) : j = [] : is(F) || Wr(F) ? (j = C, Wr(C) ? j = bf(C) : (!Ue(C) || jn(C)) && (j = Wu(F))) : q = !1;
|
|
13204
13210
|
}
|
|
13205
13211
|
q && (R.set(F, j), y(j, F, d, T, R), R.delete(F)), ga(e, c, j);
|
|
13206
13212
|
}
|
|
@@ -13212,11 +13218,11 @@ Wo.exports;
|
|
|
13212
13218
|
function du(e, r, c) {
|
|
13213
13219
|
r.length ? r = ke(r, function(T) {
|
|
13214
13220
|
return de(T) ? function(R) {
|
|
13215
|
-
return
|
|
13221
|
+
return Ur(R, T.length === 1 ? T[0] : T);
|
|
13216
13222
|
} : T;
|
|
13217
13223
|
}) : r = [St];
|
|
13218
13224
|
var d = -1;
|
|
13219
|
-
r = ke(r,
|
|
13225
|
+
r = ke(r, Nt(ae()));
|
|
13220
13226
|
var y = lu(e, function(T, R, C) {
|
|
13221
13227
|
var F = ke(r, function(G) {
|
|
13222
13228
|
return G(T);
|
|
@@ -13234,19 +13240,19 @@ Wo.exports;
|
|
|
13234
13240
|
}
|
|
13235
13241
|
function pu(e, r, c) {
|
|
13236
13242
|
for (var d = -1, y = r.length, T = {}; ++d < y; ) {
|
|
13237
|
-
var R = r[d], C =
|
|
13238
|
-
c(C, R) &&
|
|
13243
|
+
var R = r[d], C = Ur(e, R);
|
|
13244
|
+
c(C, R) && es(T, cr(R, e), C);
|
|
13239
13245
|
}
|
|
13240
13246
|
return T;
|
|
13241
13247
|
}
|
|
13242
13248
|
function Em(e) {
|
|
13243
13249
|
return function(r) {
|
|
13244
|
-
return
|
|
13250
|
+
return Ur(r, e);
|
|
13245
13251
|
};
|
|
13246
13252
|
}
|
|
13247
13253
|
function Sa(e, r, c, d) {
|
|
13248
13254
|
var y = d ? Zd : ei, T = -1, R = r.length, C = e;
|
|
13249
|
-
for (e === r && (r = Tt(r)), c && (C = ke(e,
|
|
13255
|
+
for (e === r && (r = Tt(r)), c && (C = ke(e, Nt(c))); ++T < R; )
|
|
13250
13256
|
for (var F = 0, G = r[T], j = c ? c(G) : G; (F = y(C, j, F, d)) > -1; )
|
|
13251
13257
|
C !== e && Bs.call(C, F, 1), Bs.call(e, F, 1);
|
|
13252
13258
|
return e;
|
|
@@ -13262,10 +13268,10 @@ Wo.exports;
|
|
|
13262
13268
|
return e;
|
|
13263
13269
|
}
|
|
13264
13270
|
function Ra(e, r) {
|
|
13265
|
-
return e +
|
|
13271
|
+
return e + zs($l() * (r - e + 1));
|
|
13266
13272
|
}
|
|
13267
13273
|
function Mm(e, r, c, d) {
|
|
13268
|
-
for (var y = -1, T = Xe(
|
|
13274
|
+
for (var y = -1, T = Xe(Us((r - e) / (c || 1)), 0), R = k(T); T--; )
|
|
13269
13275
|
R[d ? T : ++y] = e, e += c;
|
|
13270
13276
|
return R;
|
|
13271
13277
|
}
|
|
@@ -13274,7 +13280,7 @@ Wo.exports;
|
|
|
13274
13280
|
if (!e || r < 1 || r > Be)
|
|
13275
13281
|
return c;
|
|
13276
13282
|
do
|
|
13277
|
-
r % 2 && (c += e), r =
|
|
13283
|
+
r % 2 && (c += e), r = zs(r / 2), r && (e += e);
|
|
13278
13284
|
while (r);
|
|
13279
13285
|
return c;
|
|
13280
13286
|
}
|
|
@@ -13288,8 +13294,8 @@ Wo.exports;
|
|
|
13288
13294
|
var c = hi(e);
|
|
13289
13295
|
return ro(c, kr(r, 0, c.length));
|
|
13290
13296
|
}
|
|
13291
|
-
function
|
|
13292
|
-
if (!
|
|
13297
|
+
function es(e, r, c, d) {
|
|
13298
|
+
if (!Ue(e))
|
|
13293
13299
|
return e;
|
|
13294
13300
|
r = cr(r, e);
|
|
13295
13301
|
for (var y = -1, T = r.length, R = T - 1, C = e; C != null && ++y < T; ) {
|
|
@@ -13298,9 +13304,9 @@ Wo.exports;
|
|
|
13298
13304
|
return e;
|
|
13299
13305
|
if (y != R) {
|
|
13300
13306
|
var j = C[F];
|
|
13301
|
-
G = d ? d(j, F, C) : n, G === n && (G =
|
|
13307
|
+
G = d ? d(j, F, C) : n, G === n && (G = Ue(j) ? j : Gn(r[y + 1]) ? [] : {});
|
|
13302
13308
|
}
|
|
13303
|
-
|
|
13309
|
+
Xi(C, F, G), C = C[F];
|
|
13304
13310
|
}
|
|
13305
13311
|
return e;
|
|
13306
13312
|
}
|
|
@@ -13335,7 +13341,7 @@ Wo.exports;
|
|
|
13335
13341
|
if (typeof r == "number" && r === r && y <= _r) {
|
|
13336
13342
|
for (; d < y; ) {
|
|
13337
13343
|
var T = d + y >>> 1, R = e[T];
|
|
13338
|
-
R !== null && !
|
|
13344
|
+
R !== null && !kt(R) && (c ? R <= r : R < r) ? d = T + 1 : y = T;
|
|
13339
13345
|
}
|
|
13340
13346
|
return y;
|
|
13341
13347
|
}
|
|
@@ -13346,8 +13352,8 @@ Wo.exports;
|
|
|
13346
13352
|
if (T === 0)
|
|
13347
13353
|
return 0;
|
|
13348
13354
|
r = c(r);
|
|
13349
|
-
for (var R = r !== r, C = r === null, F =
|
|
13350
|
-
var j =
|
|
13355
|
+
for (var R = r !== r, C = r === null, F = kt(r), G = r === n; y < T; ) {
|
|
13356
|
+
var j = zs((y + T) / 2), q = c(e[j]), Q = q !== n, ie = q === null, ce = q === q, me = kt(q);
|
|
13351
13357
|
if (R)
|
|
13352
13358
|
var le = d || ce;
|
|
13353
13359
|
else G ? le = ce && (d || Q) : C ? le = ce && Q && (d || !ie) : F ? le = ce && Q && !ie && (d || !me) : ie || me ? le = !1 : le = d ? q <= r : q < r;
|
|
@@ -13366,14 +13372,14 @@ Wo.exports;
|
|
|
13366
13372
|
return T;
|
|
13367
13373
|
}
|
|
13368
13374
|
function yu(e) {
|
|
13369
|
-
return typeof e == "number" ? e :
|
|
13375
|
+
return typeof e == "number" ? e : kt(e) ? It : +e;
|
|
13370
13376
|
}
|
|
13371
|
-
function
|
|
13377
|
+
function Bt(e) {
|
|
13372
13378
|
if (typeof e == "string")
|
|
13373
13379
|
return e;
|
|
13374
13380
|
if (de(e))
|
|
13375
|
-
return ke(e,
|
|
13376
|
-
if (
|
|
13381
|
+
return ke(e, Bt) + "";
|
|
13382
|
+
if (kt(e))
|
|
13377
13383
|
return Xl ? Xl.call(e) : "";
|
|
13378
13384
|
var r = e + "";
|
|
13379
13385
|
return r == "0" && 1 / e == -Ne ? "-0" : r;
|
|
@@ -13386,7 +13392,7 @@ Wo.exports;
|
|
|
13386
13392
|
var G = r ? null : jm(e);
|
|
13387
13393
|
if (G)
|
|
13388
13394
|
return Cs(G);
|
|
13389
|
-
R = !1, y =
|
|
13395
|
+
R = !1, y = ji, F = new Br();
|
|
13390
13396
|
} else
|
|
13391
13397
|
F = r ? [] : C;
|
|
13392
13398
|
e:
|
|
@@ -13405,7 +13411,7 @@ Wo.exports;
|
|
|
13405
13411
|
return r = cr(r, e), e = qu(e, r), e == null || delete e[Rn(Jt(r))];
|
|
13406
13412
|
}
|
|
13407
13413
|
function _u(e, r, c, d) {
|
|
13408
|
-
return
|
|
13414
|
+
return es(e, r, c(Ur(e, r)), d);
|
|
13409
13415
|
}
|
|
13410
13416
|
function $s(e, r, c, d) {
|
|
13411
13417
|
for (var y = e.length, T = d ? y : -1; (d ? T-- : ++T < y) && r(e[T], T, e); )
|
|
@@ -13424,7 +13430,7 @@ Wo.exports;
|
|
|
13424
13430
|
return d ? ar(e[0]) : [];
|
|
13425
13431
|
for (var y = -1, T = k(d); ++y < d; )
|
|
13426
13432
|
for (var R = e[y], C = -1; ++C < d; )
|
|
13427
|
-
C != y && (T[y] =
|
|
13433
|
+
C != y && (T[y] = Zi(T[y] || R, e[C], r, c));
|
|
13428
13434
|
return ar(it(T, 1), r, c);
|
|
13429
13435
|
}
|
|
13430
13436
|
function bu(e, r, c) {
|
|
@@ -13470,7 +13476,7 @@ Wo.exports;
|
|
|
13470
13476
|
return r.lastIndex = e.lastIndex, r;
|
|
13471
13477
|
}
|
|
13472
13478
|
function Bm(e) {
|
|
13473
|
-
return
|
|
13479
|
+
return $i ? De($i.call(e)) : {};
|
|
13474
13480
|
}
|
|
13475
13481
|
function Au(e, r) {
|
|
13476
13482
|
var c = r ? Oa(e.buffer) : e.buffer;
|
|
@@ -13478,7 +13484,7 @@ Wo.exports;
|
|
|
13478
13484
|
}
|
|
13479
13485
|
function Su(e, r) {
|
|
13480
13486
|
if (e !== r) {
|
|
13481
|
-
var c = e !== n, d = e === null, y = e === e, T =
|
|
13487
|
+
var c = e !== n, d = e === null, y = e === e, T = kt(e), R = r !== n, C = r === null, F = r === r, G = kt(r);
|
|
13482
13488
|
if (!C && !G && !T && e > r || T && R && F && !C && !G || d && R && F || !c && F || !y)
|
|
13483
13489
|
return 1;
|
|
13484
13490
|
if (!d && !T && !G && e < r || G && c && y && !d && !T || C && c && y || !R && y || !F)
|
|
@@ -13527,15 +13533,15 @@ Wo.exports;
|
|
|
13527
13533
|
c || (c = {});
|
|
13528
13534
|
for (var T = -1, R = r.length; ++T < R; ) {
|
|
13529
13535
|
var C = r[T], F = d ? d(c[C], e[C], C, c, e) : n;
|
|
13530
|
-
F === n && (F = e[C]), y ?
|
|
13536
|
+
F === n && (F = e[C]), y ? zn(c, C, F) : Xi(c, C, F);
|
|
13531
13537
|
}
|
|
13532
13538
|
return c;
|
|
13533
13539
|
}
|
|
13534
|
-
function zm(e, r) {
|
|
13535
|
-
return Sn(e, Ua(e), r);
|
|
13536
|
-
}
|
|
13537
13540
|
function Um(e, r) {
|
|
13538
|
-
return Sn(e,
|
|
13541
|
+
return Sn(e, za(e), r);
|
|
13542
|
+
}
|
|
13543
|
+
function zm(e, r) {
|
|
13544
|
+
return Sn(e, zu(e), r);
|
|
13539
13545
|
}
|
|
13540
13546
|
function Xs(e, r) {
|
|
13541
13547
|
return function(c, d) {
|
|
@@ -13575,7 +13581,7 @@ Wo.exports;
|
|
|
13575
13581
|
};
|
|
13576
13582
|
}
|
|
13577
13583
|
function Hm(e, r, c) {
|
|
13578
|
-
var d = r & _, y =
|
|
13584
|
+
var d = r & _, y = ts(e);
|
|
13579
13585
|
function T() {
|
|
13580
13586
|
var R = this && this !== rt && this instanceof T ? y : e;
|
|
13581
13587
|
return R.apply(d ? c : this, arguments);
|
|
@@ -13594,7 +13600,7 @@ Wo.exports;
|
|
|
13594
13600
|
return ia(Cf(Mf(r).replace(Id, "")), e, "");
|
|
13595
13601
|
};
|
|
13596
13602
|
}
|
|
13597
|
-
function
|
|
13603
|
+
function ts(e) {
|
|
13598
13604
|
return function() {
|
|
13599
13605
|
var r = arguments;
|
|
13600
13606
|
switch (r.length) {
|
|
@@ -13616,11 +13622,11 @@ Wo.exports;
|
|
|
13616
13622
|
return new e(r[0], r[1], r[2], r[3], r[4], r[5], r[6]);
|
|
13617
13623
|
}
|
|
13618
13624
|
var c = ai(e.prototype), d = e.apply(c, r);
|
|
13619
|
-
return
|
|
13625
|
+
return Ue(d) ? d : c;
|
|
13620
13626
|
};
|
|
13621
13627
|
}
|
|
13622
13628
|
function Wm(e, r, c) {
|
|
13623
|
-
var d =
|
|
13629
|
+
var d = ts(e);
|
|
13624
13630
|
function y() {
|
|
13625
13631
|
for (var T = arguments.length, R = k(T), C = T, F = ui(y); C--; )
|
|
13626
13632
|
R[C] = arguments[C];
|
|
@@ -13639,7 +13645,7 @@ Wo.exports;
|
|
|
13639
13645
|
c - T
|
|
13640
13646
|
);
|
|
13641
13647
|
var j = this && this !== rt && this instanceof y ? d : e;
|
|
13642
|
-
return
|
|
13648
|
+
return Lt(j, this, R);
|
|
13643
13649
|
}
|
|
13644
13650
|
return y;
|
|
13645
13651
|
}
|
|
@@ -13669,7 +13675,7 @@ Wo.exports;
|
|
|
13669
13675
|
for (d = R ? d : c; ++d < c; ) {
|
|
13670
13676
|
T = r[d];
|
|
13671
13677
|
var C = to(T), F = C == "wrapper" ? ka(T) : n;
|
|
13672
|
-
F && Wa(F[0]) && F[1] == (L | M | O |
|
|
13678
|
+
F && Wa(F[0]) && F[1] == (L | M | O | U) && !F[4].length && F[9] == 1 ? R = R[to(F[0])].apply(R, F[3]) : R = T.length == 1 && Wa(T) ? R[C]() : R.thru(T);
|
|
13673
13679
|
}
|
|
13674
13680
|
return function() {
|
|
13675
13681
|
var G = arguments, j = G[0];
|
|
@@ -13682,13 +13688,13 @@ Wo.exports;
|
|
|
13682
13688
|
});
|
|
13683
13689
|
}
|
|
13684
13690
|
function Zs(e, r, c, d, y, T, R, C, F, G) {
|
|
13685
|
-
var j = r & L, q = r & _, Q = r & S, ie = r & (M | I), ce = r &
|
|
13691
|
+
var j = r & L, q = r & _, Q = r & S, ie = r & (M | I), ce = r & z, me = Q ? n : ts(e);
|
|
13686
13692
|
function le() {
|
|
13687
13693
|
for (var ve = arguments.length, be = k(ve), Ut = ve; Ut--; )
|
|
13688
13694
|
be[Ut] = arguments[Ut];
|
|
13689
13695
|
if (ie)
|
|
13690
|
-
var vt = ui(le),
|
|
13691
|
-
if (d && (be = Ru(be, d, y, ie)), T && (be = Eu(be, T, R, ie)), ve -=
|
|
13696
|
+
var vt = ui(le), zt = ep(be, vt);
|
|
13697
|
+
if (d && (be = Ru(be, d, y, ie)), T && (be = Eu(be, T, R, ie)), ve -= zt, ie && ve < G) {
|
|
13692
13698
|
var je = ir(be, vt);
|
|
13693
13699
|
return Lu(
|
|
13694
13700
|
e,
|
|
@@ -13704,7 +13710,7 @@ Wo.exports;
|
|
|
13704
13710
|
);
|
|
13705
13711
|
}
|
|
13706
13712
|
var dn = q ? c : this, qn = Q ? dn[e] : e;
|
|
13707
|
-
return ve = be.length, C ? be = cg(be, C) : ce && ve > 1 && be.reverse(), j && F < ve && (be.length = F), this && this !== rt && this instanceof le && (qn = me ||
|
|
13713
|
+
return ve = be.length, C ? be = cg(be, C) : ce && ve > 1 && be.reverse(), j && F < ve && (be.length = F), this && this !== rt && this instanceof le && (qn = me || ts(qn)), qn.apply(dn, be);
|
|
13708
13714
|
}
|
|
13709
13715
|
return le;
|
|
13710
13716
|
}
|
|
@@ -13721,37 +13727,37 @@ Wo.exports;
|
|
|
13721
13727
|
if (c !== n && (y = c), d !== n) {
|
|
13722
13728
|
if (y === n)
|
|
13723
13729
|
return d;
|
|
13724
|
-
typeof c == "string" || typeof d == "string" ? (c =
|
|
13730
|
+
typeof c == "string" || typeof d == "string" ? (c = Bt(c), d = Bt(d)) : (c = yu(c), d = yu(d)), y = e(c, d);
|
|
13725
13731
|
}
|
|
13726
13732
|
return y;
|
|
13727
13733
|
};
|
|
13728
13734
|
}
|
|
13729
13735
|
function Fa(e) {
|
|
13730
13736
|
return Wn(function(r) {
|
|
13731
|
-
return r = ke(r,
|
|
13737
|
+
return r = ke(r, Nt(ae())), ge(function(c) {
|
|
13732
13738
|
var d = this;
|
|
13733
13739
|
return e(r, function(y) {
|
|
13734
|
-
return
|
|
13740
|
+
return Lt(y, d, c);
|
|
13735
13741
|
});
|
|
13736
13742
|
});
|
|
13737
13743
|
});
|
|
13738
13744
|
}
|
|
13739
13745
|
function Js(e, r) {
|
|
13740
|
-
r = r === n ? " " :
|
|
13746
|
+
r = r === n ? " " : Bt(r);
|
|
13741
13747
|
var c = r.length;
|
|
13742
13748
|
if (c < 2)
|
|
13743
13749
|
return c ? Ea(r, e) : r;
|
|
13744
|
-
var d = Ea(r,
|
|
13750
|
+
var d = Ea(r, Us(e / ni(r)));
|
|
13745
13751
|
return ti(r) ? lr(un(d), 0, e).join("") : d.slice(0, e);
|
|
13746
13752
|
}
|
|
13747
13753
|
function Gm(e, r, c, d) {
|
|
13748
|
-
var y = r & _, T =
|
|
13754
|
+
var y = r & _, T = ts(e);
|
|
13749
13755
|
function R() {
|
|
13750
13756
|
for (var C = -1, F = arguments.length, G = -1, j = d.length, q = k(j + F), Q = this && this !== rt && this instanceof R ? T : e; ++G < j; )
|
|
13751
13757
|
q[G] = d[G];
|
|
13752
13758
|
for (; F--; )
|
|
13753
13759
|
q[G++] = arguments[++C];
|
|
13754
|
-
return
|
|
13760
|
+
return Lt(Q, y ? c : this, q);
|
|
13755
13761
|
}
|
|
13756
13762
|
return R;
|
|
13757
13763
|
}
|
|
@@ -13832,12 +13838,12 @@ Wo.exports;
|
|
|
13832
13838
|
return e === n || hn(e, ii[c]) && !Ce.call(d, c) ? r : e;
|
|
13833
13839
|
}
|
|
13834
13840
|
function ku(e, r, c, d, y, T) {
|
|
13835
|
-
return
|
|
13841
|
+
return Ue(e) && Ue(r) && (T.set(r, e), Ys(e, r, n, ku, T), T.delete(r)), e;
|
|
13836
13842
|
}
|
|
13837
13843
|
function Vm(e) {
|
|
13838
|
-
return
|
|
13844
|
+
return is(e) ? n : e;
|
|
13839
13845
|
}
|
|
13840
|
-
function
|
|
13846
|
+
function Uu(e, r, c, d, y, T) {
|
|
13841
13847
|
var R = c & w, C = e.length, F = r.length;
|
|
13842
13848
|
if (C != F && !(R && F > C))
|
|
13843
13849
|
return !1;
|
|
@@ -13857,7 +13863,7 @@ Wo.exports;
|
|
|
13857
13863
|
}
|
|
13858
13864
|
if (ie) {
|
|
13859
13865
|
if (!sa(r, function(ve, be) {
|
|
13860
|
-
if (!
|
|
13866
|
+
if (!ji(ie, be) && (ce === ve || y(ce, ve, c, d, T)))
|
|
13861
13867
|
return ie.push(be);
|
|
13862
13868
|
})) {
|
|
13863
13869
|
Q = !1;
|
|
@@ -13879,13 +13885,13 @@ Wo.exports;
|
|
|
13879
13885
|
case nt:
|
|
13880
13886
|
return !(e.byteLength != r.byteLength || !T(new Ls(e), new Ls(r)));
|
|
13881
13887
|
case lt:
|
|
13882
|
-
case
|
|
13888
|
+
case Dt:
|
|
13883
13889
|
case ft:
|
|
13884
13890
|
return hn(+e, +r);
|
|
13885
13891
|
case Jn:
|
|
13886
13892
|
return e.name == r.name && e.message == r.message;
|
|
13887
13893
|
case In:
|
|
13888
|
-
case
|
|
13894
|
+
case Ft:
|
|
13889
13895
|
return e == r + "";
|
|
13890
13896
|
case ut:
|
|
13891
13897
|
var C = fa;
|
|
@@ -13897,11 +13903,11 @@ Wo.exports;
|
|
|
13897
13903
|
if (G)
|
|
13898
13904
|
return G == r;
|
|
13899
13905
|
d |= E, R.set(e, r);
|
|
13900
|
-
var j =
|
|
13906
|
+
var j = Uu(C(e), C(r), d, y, T, R);
|
|
13901
13907
|
return R.delete(e), j;
|
|
13902
13908
|
case tr:
|
|
13903
|
-
if (
|
|
13904
|
-
return
|
|
13909
|
+
if ($i)
|
|
13910
|
+
return $i.call(e) == $i.call(r);
|
|
13905
13911
|
}
|
|
13906
13912
|
return !1;
|
|
13907
13913
|
}
|
|
@@ -13931,8 +13937,8 @@ Wo.exports;
|
|
|
13931
13937
|
le || (le = Q == "constructor");
|
|
13932
13938
|
}
|
|
13933
13939
|
if (me && !le) {
|
|
13934
|
-
var vt = e.constructor,
|
|
13935
|
-
vt !=
|
|
13940
|
+
var vt = e.constructor, zt = r.constructor;
|
|
13941
|
+
vt != zt && "constructor" in e && "constructor" in r && !(typeof vt == "function" && vt instanceof vt && typeof zt == "function" && zt instanceof zt) && (me = !1);
|
|
13936
13942
|
}
|
|
13937
13943
|
return T.delete(e), T.delete(r), me;
|
|
13938
13944
|
}
|
|
@@ -13940,10 +13946,10 @@ Wo.exports;
|
|
|
13940
13946
|
return ja(Vu(e, n, ef), e + "");
|
|
13941
13947
|
}
|
|
13942
13948
|
function Na(e) {
|
|
13943
|
-
return su(e, et,
|
|
13949
|
+
return su(e, et, za);
|
|
13944
13950
|
}
|
|
13945
13951
|
function Ba(e) {
|
|
13946
|
-
return su(e, At,
|
|
13952
|
+
return su(e, At, zu);
|
|
13947
13953
|
}
|
|
13948
13954
|
var ka = Hs ? function(e) {
|
|
13949
13955
|
return Hs.get(e);
|
|
@@ -13968,14 +13974,14 @@ Wo.exports;
|
|
|
13968
13974
|
var c = e.__data__;
|
|
13969
13975
|
return tg(r) ? c[typeof r == "string" ? "string" : "hash"] : c.map;
|
|
13970
13976
|
}
|
|
13971
|
-
function
|
|
13977
|
+
function Ua(e) {
|
|
13972
13978
|
for (var r = et(e), c = r.length; c--; ) {
|
|
13973
13979
|
var d = r[c], y = e[d];
|
|
13974
13980
|
r[c] = [d, y, Gu(y)];
|
|
13975
13981
|
}
|
|
13976
13982
|
return r;
|
|
13977
13983
|
}
|
|
13978
|
-
function
|
|
13984
|
+
function zr(e, r) {
|
|
13979
13985
|
var c = ip(e, r);
|
|
13980
13986
|
return au(c) ? c : n;
|
|
13981
13987
|
}
|
|
@@ -13989,16 +13995,16 @@ Wo.exports;
|
|
|
13989
13995
|
var y = Os.call(e);
|
|
13990
13996
|
return d && (r ? e[Lr] = c : delete e[Lr]), y;
|
|
13991
13997
|
}
|
|
13992
|
-
var
|
|
13998
|
+
var za = da ? function(e) {
|
|
13993
13999
|
return e == null ? [] : (e = De(e), nr(da(e), function(r) {
|
|
13994
14000
|
return ql.call(e, r);
|
|
13995
14001
|
}));
|
|
13996
|
-
} : ic,
|
|
14002
|
+
} : ic, zu = da ? function(e) {
|
|
13997
14003
|
for (var r = []; e; )
|
|
13998
|
-
rr(r,
|
|
14004
|
+
rr(r, za(e)), e = Ns(e);
|
|
13999
14005
|
return r;
|
|
14000
14006
|
} : ic, ct = mt;
|
|
14001
|
-
(pa && ct(new pa(new ArrayBuffer(1))) != Tn ||
|
|
14007
|
+
(pa && ct(new pa(new ArrayBuffer(1))) != Tn || qi && ct(new qi()) != ut || ma && ct(ma.resolve()) != er || si && ct(new si()) != dt || Yi && ct(new Yi()) != cn) && (ct = function(e) {
|
|
14002
14008
|
var r = mt(e), c = r == ht ? e.constructor : n, d = c ? Hr(c) : "";
|
|
14003
14009
|
if (d)
|
|
14004
14010
|
switch (d) {
|
|
@@ -14036,8 +14042,8 @@ Wo.exports;
|
|
|
14036
14042
|
return { start: e, end: r };
|
|
14037
14043
|
}
|
|
14038
14044
|
function Xm(e) {
|
|
14039
|
-
var r = e.match(
|
|
14040
|
-
return r ? r[1].split(
|
|
14045
|
+
var r = e.match(Hi);
|
|
14046
|
+
return r ? r[1].split(Wi) : [];
|
|
14041
14047
|
}
|
|
14042
14048
|
function Hu(e, r, c) {
|
|
14043
14049
|
r = cr(r, e);
|
|
@@ -14054,7 +14060,7 @@ Wo.exports;
|
|
|
14054
14060
|
return r && typeof e[0] == "string" && Ce.call(e, "index") && (c.index = e.index, c.input = e.input), c;
|
|
14055
14061
|
}
|
|
14056
14062
|
function Wu(e) {
|
|
14057
|
-
return typeof e.constructor == "function" && !
|
|
14063
|
+
return typeof e.constructor == "function" && !ns(e) ? ai(Ns(e)) : {};
|
|
14058
14064
|
}
|
|
14059
14065
|
function Qm(e, r, c) {
|
|
14060
14066
|
var d = e.constructor;
|
|
@@ -14062,7 +14068,7 @@ Wo.exports;
|
|
|
14062
14068
|
case nt:
|
|
14063
14069
|
return Oa(e);
|
|
14064
14070
|
case lt:
|
|
14065
|
-
case
|
|
14071
|
+
case Dt:
|
|
14066
14072
|
return new d(+e);
|
|
14067
14073
|
case Tn:
|
|
14068
14074
|
return Lm(e, c);
|
|
@@ -14079,7 +14085,7 @@ Wo.exports;
|
|
|
14079
14085
|
case ut:
|
|
14080
14086
|
return new d();
|
|
14081
14087
|
case ft:
|
|
14082
|
-
case
|
|
14088
|
+
case Ft:
|
|
14083
14089
|
return new d(e);
|
|
14084
14090
|
case In:
|
|
14085
14091
|
return Nm(e);
|
|
@@ -14106,7 +14112,7 @@ Wo.exports;
|
|
|
14106
14112
|
return r = r ?? Be, !!r && (c == "number" || c != "symbol" && ue.test(e)) && e > -1 && e % 1 == 0 && e < r;
|
|
14107
14113
|
}
|
|
14108
14114
|
function gt(e, r, c) {
|
|
14109
|
-
if (!
|
|
14115
|
+
if (!Ue(c))
|
|
14110
14116
|
return !1;
|
|
14111
14117
|
var d = typeof r;
|
|
14112
14118
|
return (d == "number" ? wt(c) && Gn(r, c.length) : d == "string" && r in c) ? hn(c[r], e) : !1;
|
|
@@ -14115,7 +14121,7 @@ Wo.exports;
|
|
|
14115
14121
|
if (de(e))
|
|
14116
14122
|
return !1;
|
|
14117
14123
|
var c = typeof e;
|
|
14118
|
-
return c == "number" || c == "symbol" || c == "boolean" || e == null ||
|
|
14124
|
+
return c == "number" || c == "symbol" || c == "boolean" || e == null || kt(e) ? !0 : Ir.test(e) || !Pr.test(e) || r != null && e in De(r);
|
|
14119
14125
|
}
|
|
14120
14126
|
function tg(e) {
|
|
14121
14127
|
var r = typeof e;
|
|
@@ -14134,12 +14140,12 @@ Wo.exports;
|
|
|
14134
14140
|
return !!Gl && Gl in e;
|
|
14135
14141
|
}
|
|
14136
14142
|
var rg = Is ? jn : sc;
|
|
14137
|
-
function
|
|
14143
|
+
function ns(e) {
|
|
14138
14144
|
var r = e && e.constructor, c = typeof r == "function" && r.prototype || ii;
|
|
14139
14145
|
return e === c;
|
|
14140
14146
|
}
|
|
14141
14147
|
function Gu(e) {
|
|
14142
|
-
return e === e && !
|
|
14148
|
+
return e === e && !Ue(e);
|
|
14143
14149
|
}
|
|
14144
14150
|
function ju(e, r) {
|
|
14145
14151
|
return function(c) {
|
|
@@ -14153,7 +14159,7 @@ Wo.exports;
|
|
|
14153
14159
|
return r;
|
|
14154
14160
|
}
|
|
14155
14161
|
function sg(e, r) {
|
|
14156
|
-
var c = e[1], d = r[1], y = c | d, T = y < (_ | S | L), R = d == L && c == M || d == L && c ==
|
|
14162
|
+
var c = e[1], d = r[1], y = c | d, T = y < (_ | S | L), R = d == L && c == M || d == L && c == U && e[7].length <= r[8] || d == (L | U) && r[7].length <= r[8] && c == M;
|
|
14157
14163
|
if (!(T || R))
|
|
14158
14164
|
return e;
|
|
14159
14165
|
d & _ && (e[2] = r[2], y |= c & _ ? 0 : A);
|
|
@@ -14181,11 +14187,11 @@ Wo.exports;
|
|
|
14181
14187
|
y = -1;
|
|
14182
14188
|
for (var C = k(r + 1); ++y < r; )
|
|
14183
14189
|
C[y] = d[y];
|
|
14184
|
-
return C[r] = c(R),
|
|
14190
|
+
return C[r] = c(R), Lt(e, this, C);
|
|
14185
14191
|
};
|
|
14186
14192
|
}
|
|
14187
14193
|
function qu(e, r) {
|
|
14188
|
-
return r.length < 2 ? e :
|
|
14194
|
+
return r.length < 2 ? e : Ur(e, Qt(r, 0, -1));
|
|
14189
14195
|
}
|
|
14190
14196
|
function cg(e, r) {
|
|
14191
14197
|
for (var c = e.length, d = at(r.length, c), y = Tt(e); d--; ) {
|
|
@@ -14198,7 +14204,7 @@ Wo.exports;
|
|
|
14198
14204
|
if (!(r === "constructor" && typeof e[r] == "function") && r != "__proto__")
|
|
14199
14205
|
return e[r];
|
|
14200
14206
|
}
|
|
14201
|
-
var Yu = $u(gu),
|
|
14207
|
+
var Yu = $u(gu), rs = wp || function(e, r) {
|
|
14202
14208
|
return rt.setTimeout(e, r);
|
|
14203
14209
|
}, ja = $u(Im);
|
|
14204
14210
|
function Ku(e, r, c) {
|
|
@@ -14227,12 +14233,12 @@ Wo.exports;
|
|
|
14227
14233
|
}
|
|
14228
14234
|
var Xu = ig(function(e) {
|
|
14229
14235
|
var r = [];
|
|
14230
|
-
return e.charCodeAt(0) === 46 && r.push(""), e.replace(
|
|
14236
|
+
return e.charCodeAt(0) === 46 && r.push(""), e.replace(ki, function(c, d, y, T) {
|
|
14231
14237
|
r.push(y ? T.replace(N, "$1") : d || c);
|
|
14232
14238
|
}), r;
|
|
14233
14239
|
});
|
|
14234
14240
|
function Rn(e) {
|
|
14235
|
-
if (typeof e == "string" ||
|
|
14241
|
+
if (typeof e == "string" || kt(e))
|
|
14236
14242
|
return e;
|
|
14237
14243
|
var r = e + "";
|
|
14238
14244
|
return r == "0" && 1 / e == -Ne ? "-0" : r;
|
|
@@ -14251,7 +14257,7 @@ Wo.exports;
|
|
|
14251
14257
|
return "";
|
|
14252
14258
|
}
|
|
14253
14259
|
function lg(e, r) {
|
|
14254
|
-
return Kt(
|
|
14260
|
+
return Kt(Fi, function(c) {
|
|
14255
14261
|
var d = "_." + c[0];
|
|
14256
14262
|
r & c[1] && !Es(e, d) && e.push(d);
|
|
14257
14263
|
}), e.sort();
|
|
@@ -14267,7 +14273,7 @@ Wo.exports;
|
|
|
14267
14273
|
var d = e == null ? 0 : e.length;
|
|
14268
14274
|
if (!d || r < 1)
|
|
14269
14275
|
return [];
|
|
14270
|
-
for (var y = 0, T = 0, R = k(
|
|
14276
|
+
for (var y = 0, T = 0, R = k(Us(d / r)); y < d; )
|
|
14271
14277
|
R[T++] = Qt(e, y, y += r);
|
|
14272
14278
|
return R;
|
|
14273
14279
|
}
|
|
@@ -14287,13 +14293,13 @@ Wo.exports;
|
|
|
14287
14293
|
return rr(de(c) ? Tt(c) : [c], it(r, 1));
|
|
14288
14294
|
}
|
|
14289
14295
|
var dg = ge(function(e, r) {
|
|
14290
|
-
return Ge(e) ?
|
|
14296
|
+
return Ge(e) ? Zi(e, it(r, 1, Ge, !0)) : [];
|
|
14291
14297
|
}), pg = ge(function(e, r) {
|
|
14292
14298
|
var c = Jt(r);
|
|
14293
|
-
return Ge(c) && (c = n), Ge(e) ?
|
|
14299
|
+
return Ge(c) && (c = n), Ge(e) ? Zi(e, it(r, 1, Ge, !0), ae(c, 2)) : [];
|
|
14294
14300
|
}), mg = ge(function(e, r) {
|
|
14295
14301
|
var c = Jt(r);
|
|
14296
|
-
return Ge(c) && (c = n), Ge(e) ?
|
|
14302
|
+
return Ge(c) && (c = n), Ge(e) ? Zi(e, it(r, 1, Ge, !0), n, c) : [];
|
|
14297
14303
|
});
|
|
14298
14304
|
function gg(e, r, c) {
|
|
14299
14305
|
var d = e == null ? 0 : e.length;
|
|
@@ -14424,10 +14430,10 @@ Wo.exports;
|
|
|
14424
14430
|
function kg(e, r) {
|
|
14425
14431
|
return Ks(e, r);
|
|
14426
14432
|
}
|
|
14427
|
-
function
|
|
14433
|
+
function Ug(e, r, c) {
|
|
14428
14434
|
return Ma(e, r, ae(c, 2));
|
|
14429
14435
|
}
|
|
14430
|
-
function
|
|
14436
|
+
function zg(e, r) {
|
|
14431
14437
|
var c = e == null ? 0 : e.length;
|
|
14432
14438
|
if (c) {
|
|
14433
14439
|
var d = Ks(e, r);
|
|
@@ -14508,11 +14514,11 @@ Wo.exports;
|
|
|
14508
14514
|
return [];
|
|
14509
14515
|
var c = qa(e);
|
|
14510
14516
|
return r == null ? c : ke(c, function(d) {
|
|
14511
|
-
return
|
|
14517
|
+
return Lt(r, n, d);
|
|
14512
14518
|
});
|
|
14513
14519
|
}
|
|
14514
14520
|
var r0 = ge(function(e, r) {
|
|
14515
|
-
return Ge(e) ?
|
|
14521
|
+
return Ge(e) ? Zi(e, r) : [];
|
|
14516
14522
|
}), i0 = ge(function(e) {
|
|
14517
14523
|
return Pa(nr(e, Ge));
|
|
14518
14524
|
}), s0 = ge(function(e) {
|
|
@@ -14523,10 +14529,10 @@ Wo.exports;
|
|
|
14523
14529
|
return r = typeof r == "function" ? r : n, Pa(nr(e, Ge), n, r);
|
|
14524
14530
|
}), a0 = ge(qa);
|
|
14525
14531
|
function c0(e, r) {
|
|
14526
|
-
return bu(e || [], r || [],
|
|
14532
|
+
return bu(e || [], r || [], Xi);
|
|
14527
14533
|
}
|
|
14528
14534
|
function l0(e, r) {
|
|
14529
|
-
return bu(e || [], r || [],
|
|
14535
|
+
return bu(e || [], r || [], es);
|
|
14530
14536
|
}
|
|
14531
14537
|
var u0 = ge(function(e) {
|
|
14532
14538
|
var r = e.length, c = r > 1 ? e[r - 1] : n;
|
|
@@ -14593,7 +14599,7 @@ Wo.exports;
|
|
|
14593
14599
|
return xu(this.__wrapped__, this.__actions__);
|
|
14594
14600
|
}
|
|
14595
14601
|
var x0 = Xs(function(e, r, c) {
|
|
14596
|
-
Ce.call(e, c) ? ++e[c] :
|
|
14602
|
+
Ce.call(e, c) ? ++e[c] : zn(e, c, 1);
|
|
14597
14603
|
});
|
|
14598
14604
|
function b0(e, r, c) {
|
|
14599
14605
|
var d = de(e) ? Ol : fm;
|
|
@@ -14622,7 +14628,7 @@ Wo.exports;
|
|
|
14622
14628
|
return c(e, ae(r, 3));
|
|
14623
14629
|
}
|
|
14624
14630
|
var M0 = Xs(function(e, r, c) {
|
|
14625
|
-
Ce.call(e, c) ? e[c].push(r) :
|
|
14631
|
+
Ce.call(e, c) ? e[c].push(r) : zn(e, c, [r]);
|
|
14626
14632
|
});
|
|
14627
14633
|
function C0(e, r, c, d) {
|
|
14628
14634
|
e = wt(e) ? e : hi(e), c = c && !d ? pe(c) : 0;
|
|
@@ -14632,10 +14638,10 @@ Wo.exports;
|
|
|
14632
14638
|
var P0 = ge(function(e, r, c) {
|
|
14633
14639
|
var d = -1, y = typeof r == "function", T = wt(e) ? k(e.length) : [];
|
|
14634
14640
|
return or(e, function(R) {
|
|
14635
|
-
T[++d] = y ?
|
|
14641
|
+
T[++d] = y ? Lt(r, R, c) : Qi(R, r, c);
|
|
14636
14642
|
}), T;
|
|
14637
14643
|
}), I0 = Xs(function(e, r, c) {
|
|
14638
|
-
|
|
14644
|
+
zn(e, c, r);
|
|
14639
14645
|
});
|
|
14640
14646
|
function so(e, r) {
|
|
14641
14647
|
var c = de(e) ? ke : lu;
|
|
@@ -14670,11 +14676,11 @@ Wo.exports;
|
|
|
14670
14676
|
var d = de(e) ? om : Pm;
|
|
14671
14677
|
return d(e, r);
|
|
14672
14678
|
}
|
|
14673
|
-
function
|
|
14679
|
+
function U0(e) {
|
|
14674
14680
|
var r = de(e) ? am : Dm;
|
|
14675
14681
|
return r(e);
|
|
14676
14682
|
}
|
|
14677
|
-
function
|
|
14683
|
+
function z0(e) {
|
|
14678
14684
|
if (e == null)
|
|
14679
14685
|
return 0;
|
|
14680
14686
|
if (wt(e))
|
|
@@ -14742,13 +14748,13 @@ Wo.exports;
|
|
|
14742
14748
|
var d, y, T, R, C, F, G = 0, j = !1, q = !1, Q = !0;
|
|
14743
14749
|
if (typeof e != "function")
|
|
14744
14750
|
throw new $t(o);
|
|
14745
|
-
r = en(r) || 0,
|
|
14751
|
+
r = en(r) || 0, Ue(c) && (j = !!c.leading, q = "maxWait" in c, T = q ? Xe(en(c.maxWait) || 0, r) : T, Q = "trailing" in c ? !!c.trailing : Q);
|
|
14746
14752
|
function ie(je) {
|
|
14747
14753
|
var dn = d, qn = y;
|
|
14748
14754
|
return d = y = n, G = je, R = e.apply(qn, dn), R;
|
|
14749
14755
|
}
|
|
14750
14756
|
function ce(je) {
|
|
14751
|
-
return G = je, C =
|
|
14757
|
+
return G = je, C = rs(ve, r), j ? ie(je) : R;
|
|
14752
14758
|
}
|
|
14753
14759
|
function me(je) {
|
|
14754
14760
|
var dn = je - F, qn = je - G, Df = r - dn;
|
|
@@ -14762,7 +14768,7 @@ Wo.exports;
|
|
|
14762
14768
|
var je = oo();
|
|
14763
14769
|
if (le(je))
|
|
14764
14770
|
return be(je);
|
|
14765
|
-
C =
|
|
14771
|
+
C = rs(ve, me(je));
|
|
14766
14772
|
}
|
|
14767
14773
|
function be(je) {
|
|
14768
14774
|
return C = n, Q && d ? ie(je) : (d = y = n, R);
|
|
@@ -14773,17 +14779,17 @@ Wo.exports;
|
|
|
14773
14779
|
function vt() {
|
|
14774
14780
|
return C === n ? R : be(oo());
|
|
14775
14781
|
}
|
|
14776
|
-
function
|
|
14782
|
+
function zt() {
|
|
14777
14783
|
var je = oo(), dn = le(je);
|
|
14778
14784
|
if (d = arguments, y = this, F = je, dn) {
|
|
14779
14785
|
if (C === n)
|
|
14780
14786
|
return ce(F);
|
|
14781
14787
|
if (q)
|
|
14782
|
-
return Tu(C), C =
|
|
14788
|
+
return Tu(C), C = rs(ve, r), ie(F);
|
|
14783
14789
|
}
|
|
14784
|
-
return C === n && (C =
|
|
14790
|
+
return C === n && (C = rs(ve, r)), R;
|
|
14785
14791
|
}
|
|
14786
|
-
return
|
|
14792
|
+
return zt.cancel = Ut, zt.flush = vt, zt;
|
|
14787
14793
|
}
|
|
14788
14794
|
var j0 = ge(function(e, r) {
|
|
14789
14795
|
return tu(e, 1, r);
|
|
@@ -14791,7 +14797,7 @@ Wo.exports;
|
|
|
14791
14797
|
return tu(e, en(r) || 0, c);
|
|
14792
14798
|
});
|
|
14793
14799
|
function q0(e) {
|
|
14794
|
-
return Hn(e,
|
|
14800
|
+
return Hn(e, z);
|
|
14795
14801
|
}
|
|
14796
14802
|
function ao(e, r) {
|
|
14797
14803
|
if (typeof e != "function" || r != null && typeof r != "function")
|
|
@@ -14803,9 +14809,9 @@ Wo.exports;
|
|
|
14803
14809
|
var R = e.apply(this, d);
|
|
14804
14810
|
return c.cache = T.set(y, R) || T, R;
|
|
14805
14811
|
};
|
|
14806
|
-
return c.cache = new (ao.Cache ||
|
|
14812
|
+
return c.cache = new (ao.Cache || Un)(), c;
|
|
14807
14813
|
}
|
|
14808
|
-
ao.Cache =
|
|
14814
|
+
ao.Cache = Un;
|
|
14809
14815
|
function co(e) {
|
|
14810
14816
|
if (typeof e != "function")
|
|
14811
14817
|
throw new $t(o);
|
|
@@ -14828,12 +14834,12 @@ Wo.exports;
|
|
|
14828
14834
|
return lf(2, e);
|
|
14829
14835
|
}
|
|
14830
14836
|
var K0 = Fm(function(e, r) {
|
|
14831
|
-
r = r.length == 1 && de(r[0]) ? ke(r[0],
|
|
14837
|
+
r = r.length == 1 && de(r[0]) ? ke(r[0], Nt(ae())) : ke(it(r, 1), Nt(ae()));
|
|
14832
14838
|
var c = r.length;
|
|
14833
14839
|
return ge(function(d) {
|
|
14834
14840
|
for (var y = -1, T = at(d.length, c); ++y < T; )
|
|
14835
14841
|
d[y] = r[y].call(this, d[y]);
|
|
14836
|
-
return
|
|
14842
|
+
return Lt(e, this, d);
|
|
14837
14843
|
});
|
|
14838
14844
|
}), Ka = ge(function(e, r) {
|
|
14839
14845
|
var c = ir(r, ui(Ka));
|
|
@@ -14842,7 +14848,7 @@ Wo.exports;
|
|
|
14842
14848
|
var c = ir(r, ui(pf));
|
|
14843
14849
|
return Hn(e, B, n, r, c);
|
|
14844
14850
|
}), $0 = Wn(function(e, r) {
|
|
14845
|
-
return Hn(e,
|
|
14851
|
+
return Hn(e, U, n, n, n, r);
|
|
14846
14852
|
});
|
|
14847
14853
|
function X0(e, r) {
|
|
14848
14854
|
if (typeof e != "function")
|
|
@@ -14854,14 +14860,14 @@ Wo.exports;
|
|
|
14854
14860
|
throw new $t(o);
|
|
14855
14861
|
return r = r == null ? 0 : Xe(pe(r), 0), ge(function(c) {
|
|
14856
14862
|
var d = c[r], y = lr(c, 0, r);
|
|
14857
|
-
return d && rr(y, d),
|
|
14863
|
+
return d && rr(y, d), Lt(e, this, y);
|
|
14858
14864
|
});
|
|
14859
14865
|
}
|
|
14860
14866
|
function Q0(e, r, c) {
|
|
14861
14867
|
var d = !0, y = !0;
|
|
14862
14868
|
if (typeof e != "function")
|
|
14863
14869
|
throw new $t(o);
|
|
14864
|
-
return
|
|
14870
|
+
return Ue(c) && (d = "leading" in c ? !!c.leading : d, y = "trailing" in c ? !!c.trailing : y), df(e, r, {
|
|
14865
14871
|
leading: d,
|
|
14866
14872
|
maxWait: r,
|
|
14867
14873
|
trailing: y
|
|
@@ -14903,7 +14909,7 @@ Wo.exports;
|
|
|
14903
14909
|
return arguments;
|
|
14904
14910
|
}()) ? ou : function(e) {
|
|
14905
14911
|
return He(e) && Ce.call(e, "callee") && !ql.call(e, "callee");
|
|
14906
|
-
}, de = k.isArray, lv = El ?
|
|
14912
|
+
}, de = k.isArray, lv = El ? Nt(El) : vm;
|
|
14907
14913
|
function wt(e) {
|
|
14908
14914
|
return e != null && lo(e.length) && !jn(e);
|
|
14909
14915
|
}
|
|
@@ -14913,9 +14919,9 @@ Wo.exports;
|
|
|
14913
14919
|
function uv(e) {
|
|
14914
14920
|
return e === !0 || e === !1 || He(e) && mt(e) == lt;
|
|
14915
14921
|
}
|
|
14916
|
-
var ur = Ap || sc, fv = Ml ?
|
|
14922
|
+
var ur = Ap || sc, fv = Ml ? Nt(Ml) : ym;
|
|
14917
14923
|
function hv(e) {
|
|
14918
|
-
return He(e) && e.nodeType === 1 && !
|
|
14924
|
+
return He(e) && e.nodeType === 1 && !is(e);
|
|
14919
14925
|
}
|
|
14920
14926
|
function dv(e) {
|
|
14921
14927
|
if (e == null)
|
|
@@ -14925,7 +14931,7 @@ Wo.exports;
|
|
|
14925
14931
|
var r = ct(e);
|
|
14926
14932
|
if (r == ut || r == dt)
|
|
14927
14933
|
return !e.size;
|
|
14928
|
-
if (
|
|
14934
|
+
if (ns(e))
|
|
14929
14935
|
return !wa(e).length;
|
|
14930
14936
|
for (var c in e)
|
|
14931
14937
|
if (Ce.call(e, c))
|
|
@@ -14933,24 +14939,24 @@ Wo.exports;
|
|
|
14933
14939
|
return !0;
|
|
14934
14940
|
}
|
|
14935
14941
|
function pv(e, r) {
|
|
14936
|
-
return
|
|
14942
|
+
return Ji(e, r);
|
|
14937
14943
|
}
|
|
14938
14944
|
function mv(e, r, c) {
|
|
14939
14945
|
c = typeof c == "function" ? c : n;
|
|
14940
14946
|
var d = c ? c(e, r) : n;
|
|
14941
|
-
return d === n ?
|
|
14947
|
+
return d === n ? Ji(e, r, n, c) : !!d;
|
|
14942
14948
|
}
|
|
14943
14949
|
function $a(e) {
|
|
14944
14950
|
if (!He(e))
|
|
14945
14951
|
return !1;
|
|
14946
14952
|
var r = mt(e);
|
|
14947
|
-
return r == Jn || r == on || typeof e.message == "string" && typeof e.name == "string" && !
|
|
14953
|
+
return r == Jn || r == on || typeof e.message == "string" && typeof e.name == "string" && !is(e);
|
|
14948
14954
|
}
|
|
14949
14955
|
function gv(e) {
|
|
14950
14956
|
return typeof e == "number" && Kl(e);
|
|
14951
14957
|
}
|
|
14952
14958
|
function jn(e) {
|
|
14953
|
-
if (!
|
|
14959
|
+
if (!Ue(e))
|
|
14954
14960
|
return !1;
|
|
14955
14961
|
var r = mt(e);
|
|
14956
14962
|
return r == bn || r == Xr || r == Pn || r == an;
|
|
@@ -14961,19 +14967,19 @@ Wo.exports;
|
|
|
14961
14967
|
function lo(e) {
|
|
14962
14968
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Be;
|
|
14963
14969
|
}
|
|
14964
|
-
function
|
|
14970
|
+
function Ue(e) {
|
|
14965
14971
|
var r = typeof e;
|
|
14966
14972
|
return e != null && (r == "object" || r == "function");
|
|
14967
14973
|
}
|
|
14968
14974
|
function He(e) {
|
|
14969
14975
|
return e != null && typeof e == "object";
|
|
14970
14976
|
}
|
|
14971
|
-
var gf = Cl ?
|
|
14977
|
+
var gf = Cl ? Nt(Cl) : xm;
|
|
14972
14978
|
function vv(e, r) {
|
|
14973
|
-
return e === r || Ta(e, r,
|
|
14979
|
+
return e === r || Ta(e, r, Ua(r));
|
|
14974
14980
|
}
|
|
14975
14981
|
function yv(e, r, c) {
|
|
14976
|
-
return c = typeof c == "function" ? c : n, Ta(e, r,
|
|
14982
|
+
return c = typeof c == "function" ? c : n, Ta(e, r, Ua(r), c);
|
|
14977
14983
|
}
|
|
14978
14984
|
function _v(e) {
|
|
14979
14985
|
return vf(e) && e != +e;
|
|
@@ -14992,7 +14998,7 @@ Wo.exports;
|
|
|
14992
14998
|
function vf(e) {
|
|
14993
14999
|
return typeof e == "number" || He(e) && mt(e) == ft;
|
|
14994
15000
|
}
|
|
14995
|
-
function
|
|
15001
|
+
function is(e) {
|
|
14996
15002
|
if (!He(e) || mt(e) != ht)
|
|
14997
15003
|
return !1;
|
|
14998
15004
|
var r = Ns(e);
|
|
@@ -15001,18 +15007,18 @@ Wo.exports;
|
|
|
15001
15007
|
var c = Ce.call(r, "constructor") && r.constructor;
|
|
15002
15008
|
return typeof c == "function" && c instanceof c && Ds.call(c) == yp;
|
|
15003
15009
|
}
|
|
15004
|
-
var Xa = Pl ?
|
|
15010
|
+
var Xa = Pl ? Nt(Pl) : bm;
|
|
15005
15011
|
function wv(e) {
|
|
15006
15012
|
return mf(e) && e >= -Be && e <= Be;
|
|
15007
15013
|
}
|
|
15008
|
-
var yf = Il ?
|
|
15014
|
+
var yf = Il ? Nt(Il) : Tm;
|
|
15009
15015
|
function uo(e) {
|
|
15010
|
-
return typeof e == "string" || !de(e) && He(e) && mt(e) ==
|
|
15016
|
+
return typeof e == "string" || !de(e) && He(e) && mt(e) == Ft;
|
|
15011
15017
|
}
|
|
15012
|
-
function
|
|
15018
|
+
function kt(e) {
|
|
15013
15019
|
return typeof e == "symbol" || He(e) && mt(e) == tr;
|
|
15014
15020
|
}
|
|
15015
|
-
var fi = Dl ?
|
|
15021
|
+
var fi = Dl ? Nt(Dl) : wm;
|
|
15016
15022
|
function Av(e) {
|
|
15017
15023
|
return e === n;
|
|
15018
15024
|
}
|
|
@@ -15030,8 +15036,8 @@ Wo.exports;
|
|
|
15030
15036
|
return [];
|
|
15031
15037
|
if (wt(e))
|
|
15032
15038
|
return uo(e) ? un(e) : Tt(e);
|
|
15033
|
-
if (
|
|
15034
|
-
return op(e[
|
|
15039
|
+
if (Vi && e[Vi])
|
|
15040
|
+
return op(e[Vi]());
|
|
15035
15041
|
var r = ct(e), c = r == ut ? fa : r == dt ? Cs : hi;
|
|
15036
15042
|
return c(e);
|
|
15037
15043
|
}
|
|
@@ -15054,17 +15060,17 @@ Wo.exports;
|
|
|
15054
15060
|
function en(e) {
|
|
15055
15061
|
if (typeof e == "number")
|
|
15056
15062
|
return e;
|
|
15057
|
-
if (
|
|
15058
|
-
return
|
|
15059
|
-
if (
|
|
15063
|
+
if (kt(e))
|
|
15064
|
+
return It;
|
|
15065
|
+
if (Ue(e)) {
|
|
15060
15066
|
var r = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
15061
|
-
e =
|
|
15067
|
+
e = Ue(r) ? r + "" : r;
|
|
15062
15068
|
}
|
|
15063
15069
|
if (typeof e != "string")
|
|
15064
15070
|
return e === 0 ? e : +e;
|
|
15065
15071
|
e = kl(e);
|
|
15066
15072
|
var c = te.test(e);
|
|
15067
|
-
return c || we.test(e) ? Gd(e.slice(2), c ? 2 : 8) : se.test(e) ?
|
|
15073
|
+
return c || we.test(e) ? Gd(e.slice(2), c ? 2 : 8) : se.test(e) ? It : +e;
|
|
15068
15074
|
}
|
|
15069
15075
|
function bf(e) {
|
|
15070
15076
|
return Sn(e, At(e));
|
|
@@ -15073,15 +15079,15 @@ Wo.exports;
|
|
|
15073
15079
|
return e ? kr(pe(e), -Be, Be) : e === 0 ? e : 0;
|
|
15074
15080
|
}
|
|
15075
15081
|
function Me(e) {
|
|
15076
|
-
return e == null ? "" :
|
|
15082
|
+
return e == null ? "" : Bt(e);
|
|
15077
15083
|
}
|
|
15078
15084
|
var Pv = ci(function(e, r) {
|
|
15079
|
-
if (
|
|
15085
|
+
if (ns(r) || wt(r)) {
|
|
15080
15086
|
Sn(r, et(r), e);
|
|
15081
15087
|
return;
|
|
15082
15088
|
}
|
|
15083
15089
|
for (var c in r)
|
|
15084
|
-
Ce.call(r, c) &&
|
|
15090
|
+
Ce.call(r, c) && Xi(e, c, r[c]);
|
|
15085
15091
|
}), Tf = ci(function(e, r) {
|
|
15086
15092
|
Sn(r, At(r), e);
|
|
15087
15093
|
}), fo = ci(function(e, r, c, d) {
|
|
@@ -15103,7 +15109,7 @@ Wo.exports;
|
|
|
15103
15109
|
}
|
|
15104
15110
|
return e;
|
|
15105
15111
|
}), Lv = ge(function(e) {
|
|
15106
|
-
return e.push(n, ku),
|
|
15112
|
+
return e.push(n, ku), Lt(wf, n, e);
|
|
15107
15113
|
});
|
|
15108
15114
|
function Nv(e, r) {
|
|
15109
15115
|
return Fl(e, ae(r, 3), An);
|
|
@@ -15114,10 +15120,10 @@ Wo.exports;
|
|
|
15114
15120
|
function kv(e, r) {
|
|
15115
15121
|
return e == null ? e : ya(e, ae(r, 3), At);
|
|
15116
15122
|
}
|
|
15117
|
-
function
|
|
15123
|
+
function Uv(e, r) {
|
|
15118
15124
|
return e == null ? e : iu(e, ae(r, 3), At);
|
|
15119
15125
|
}
|
|
15120
|
-
function
|
|
15126
|
+
function zv(e, r) {
|
|
15121
15127
|
return e && An(e, ae(r, 3));
|
|
15122
15128
|
}
|
|
15123
15129
|
function Hv(e, r) {
|
|
@@ -15130,7 +15136,7 @@ Wo.exports;
|
|
|
15130
15136
|
return e == null ? [] : qs(e, At(e));
|
|
15131
15137
|
}
|
|
15132
15138
|
function Za(e, r, c) {
|
|
15133
|
-
var d = e == null ? n :
|
|
15139
|
+
var d = e == null ? n : Ur(e, r);
|
|
15134
15140
|
return d === n ? c : d;
|
|
15135
15141
|
}
|
|
15136
15142
|
function jv(e, r) {
|
|
@@ -15143,7 +15149,7 @@ Wo.exports;
|
|
|
15143
15149
|
r != null && typeof r.toString != "function" && (r = Os.call(r)), e[r] = c;
|
|
15144
15150
|
}, ec(St)), qv = Ou(function(e, r, c) {
|
|
15145
15151
|
r != null && typeof r.toString != "function" && (r = Os.call(r)), Ce.call(e, r) ? e[r].push(c) : e[r] = [c];
|
|
15146
|
-
}, ae), Yv = ge(
|
|
15152
|
+
}, ae), Yv = ge(Qi);
|
|
15147
15153
|
function et(e) {
|
|
15148
15154
|
return wt(e) ? Zl(e) : wa(e);
|
|
15149
15155
|
}
|
|
@@ -15153,13 +15159,13 @@ Wo.exports;
|
|
|
15153
15159
|
function Kv(e, r) {
|
|
15154
15160
|
var c = {};
|
|
15155
15161
|
return r = ae(r, 3), An(e, function(d, y, T) {
|
|
15156
|
-
|
|
15162
|
+
zn(c, r(d, y, T), d);
|
|
15157
15163
|
}), c;
|
|
15158
15164
|
}
|
|
15159
15165
|
function $v(e, r) {
|
|
15160
15166
|
var c = {};
|
|
15161
15167
|
return r = ae(r, 3), An(e, function(d, y, T) {
|
|
15162
|
-
|
|
15168
|
+
zn(c, y, r(d, y, T));
|
|
15163
15169
|
}), c;
|
|
15164
15170
|
}
|
|
15165
15171
|
var Xv = ci(function(e, r, c) {
|
|
@@ -15204,17 +15210,17 @@ Wo.exports;
|
|
|
15204
15210
|
return e;
|
|
15205
15211
|
}
|
|
15206
15212
|
function ty(e, r, c) {
|
|
15207
|
-
return e == null ? e :
|
|
15213
|
+
return e == null ? e : es(e, r, c);
|
|
15208
15214
|
}
|
|
15209
15215
|
function ny(e, r, c, d) {
|
|
15210
|
-
return d = typeof d == "function" ? d : n, e == null ? e :
|
|
15216
|
+
return d = typeof d == "function" ? d : n, e == null ? e : es(e, r, c, d);
|
|
15211
15217
|
}
|
|
15212
15218
|
var Sf = Nu(et), Rf = Nu(At);
|
|
15213
15219
|
function ry(e, r, c) {
|
|
15214
15220
|
var d = de(e), y = d || ur(e) || fi(e);
|
|
15215
15221
|
if (r = ae(r, 4), c == null) {
|
|
15216
15222
|
var T = e && e.constructor;
|
|
15217
|
-
y ? c = d ? new T() : [] :
|
|
15223
|
+
y ? c = d ? new T() : [] : Ue(e) ? c = jn(T) ? ai(Ns(e)) : {} : c = {};
|
|
15218
15224
|
}
|
|
15219
15225
|
return (y ? Kt : An)(e, function(R, C, F) {
|
|
15220
15226
|
return r(c, R, C, F);
|
|
@@ -15262,7 +15268,7 @@ Wo.exports;
|
|
|
15262
15268
|
return e = Me(e), e && e.replace(he, tp).replace(Dd, "");
|
|
15263
15269
|
}
|
|
15264
15270
|
function hy(e, r, c) {
|
|
15265
|
-
e = Me(e), r =
|
|
15271
|
+
e = Me(e), r = Bt(r);
|
|
15266
15272
|
var d = e.length;
|
|
15267
15273
|
c = c === n ? d : kr(pe(c), 0, d);
|
|
15268
15274
|
var y = c;
|
|
@@ -15285,7 +15291,7 @@ Wo.exports;
|
|
|
15285
15291
|
if (!r || d >= r)
|
|
15286
15292
|
return e;
|
|
15287
15293
|
var y = (r - d) / 2;
|
|
15288
|
-
return Js(
|
|
15294
|
+
return Js(zs(y), c) + e + Js(Us(y), c);
|
|
15289
15295
|
}
|
|
15290
15296
|
function _y(e, r, c) {
|
|
15291
15297
|
e = Me(e), r = pe(r);
|
|
@@ -15311,13 +15317,13 @@ Wo.exports;
|
|
|
15311
15317
|
return e + (c ? "_" : "") + r.toLowerCase();
|
|
15312
15318
|
});
|
|
15313
15319
|
function Sy(e, r, c) {
|
|
15314
|
-
return c && typeof c != "number" && gt(e, r, c) && (r = c = n), c = c === n ? Ve : c >>> 0, c ? (e = Me(e), e && (typeof r == "string" || r != null && !Xa(r)) && (r =
|
|
15320
|
+
return c && typeof c != "number" && gt(e, r, c) && (r = c = n), c = c === n ? Ve : c >>> 0, c ? (e = Me(e), e && (typeof r == "string" || r != null && !Xa(r)) && (r = Bt(r), !r && ti(e)) ? lr(un(e), 0, c) : e.split(r, c)) : [];
|
|
15315
15321
|
}
|
|
15316
15322
|
var Ry = li(function(e, r, c) {
|
|
15317
15323
|
return e + (c ? " " : "") + Ja(r);
|
|
15318
15324
|
});
|
|
15319
15325
|
function Ey(e, r, c) {
|
|
15320
|
-
return e = Me(e), c = c == null ? 0 : kr(pe(c), 0, e.length), r =
|
|
15326
|
+
return e = Me(e), c = c == null ? 0 : kr(pe(c), 0, e.length), r = Bt(r), e.slice(c, c + r.length) == r;
|
|
15321
15327
|
}
|
|
15322
15328
|
function My(e, r, c) {
|
|
15323
15329
|
var d = x.templateSettings;
|
|
@@ -15327,14 +15333,14 @@ Wo.exports;
|
|
|
15327
15333
|
"g"
|
|
15328
15334
|
), ie = "//# sourceURL=" + (Ce.call(r, "sourceURL") ? (r.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++Bd + "]") + `
|
|
15329
15335
|
`;
|
|
15330
|
-
e.replace(Q, function(le, ve, be, Ut, vt,
|
|
15331
|
-
return be || (be = Ut), q += e.slice(G,
|
|
15336
|
+
e.replace(Q, function(le, ve, be, Ut, vt, zt) {
|
|
15337
|
+
return be || (be = Ut), q += e.slice(G, zt).replace(pt, rp), ve && (C = !0, q += `' +
|
|
15332
15338
|
__e(` + ve + `) +
|
|
15333
15339
|
'`), vt && (F = !0, q += `';
|
|
15334
15340
|
` + vt + `;
|
|
15335
15341
|
__p += '`), be && (q += `' +
|
|
15336
15342
|
((__t = (` + be + `)) == null ? '' : __t) +
|
|
15337
|
-
'`), G =
|
|
15343
|
+
'`), G = zt + le.length, le;
|
|
15338
15344
|
}), q += `';
|
|
15339
15345
|
`;
|
|
15340
15346
|
var ce = Ce.call(r, "variable") && r.variable;
|
|
@@ -15345,7 +15351,7 @@ __p += '`), be && (q += `' +
|
|
|
15345
15351
|
`;
|
|
15346
15352
|
else if (P.test(ce))
|
|
15347
15353
|
throw new fe(f);
|
|
15348
|
-
q = (F ? q.replace(
|
|
15354
|
+
q = (F ? q.replace(Ni, "") : q).replace(Fn, "$1").replace(Er, "$1;"), q = "function(" + (ce || "obj") + `) {
|
|
15349
15355
|
` + (ce ? "" : `obj || (obj = {});
|
|
15350
15356
|
`) + "var __t, __p = ''" + (C ? ", __e = _.escape" : "") + (F ? `, __j = Array.prototype.join;
|
|
15351
15357
|
function print() { __p += __j.call(arguments, '') }
|
|
@@ -15368,32 +15374,32 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
15368
15374
|
function Iy(e, r, c) {
|
|
15369
15375
|
if (e = Me(e), e && (c || r === n))
|
|
15370
15376
|
return kl(e);
|
|
15371
|
-
if (!e || !(r =
|
|
15377
|
+
if (!e || !(r = Bt(r)))
|
|
15372
15378
|
return e;
|
|
15373
|
-
var d = un(e), y = un(r), T =
|
|
15379
|
+
var d = un(e), y = un(r), T = Ul(d, y), R = zl(d, y) + 1;
|
|
15374
15380
|
return lr(d, T, R).join("");
|
|
15375
15381
|
}
|
|
15376
15382
|
function Dy(e, r, c) {
|
|
15377
15383
|
if (e = Me(e), e && (c || r === n))
|
|
15378
15384
|
return e.slice(0, Wl(e) + 1);
|
|
15379
|
-
if (!e || !(r =
|
|
15385
|
+
if (!e || !(r = Bt(r)))
|
|
15380
15386
|
return e;
|
|
15381
|
-
var d = un(e), y =
|
|
15387
|
+
var d = un(e), y = zl(d, un(r)) + 1;
|
|
15382
15388
|
return lr(d, 0, y).join("");
|
|
15383
15389
|
}
|
|
15384
15390
|
function Oy(e, r, c) {
|
|
15385
15391
|
if (e = Me(e), e && (c || r === n))
|
|
15386
15392
|
return e.replace(Nn, "");
|
|
15387
|
-
if (!e || !(r =
|
|
15393
|
+
if (!e || !(r = Bt(r)))
|
|
15388
15394
|
return e;
|
|
15389
|
-
var d = un(e), y =
|
|
15395
|
+
var d = un(e), y = Ul(d, un(r));
|
|
15390
15396
|
return lr(d, y).join("");
|
|
15391
15397
|
}
|
|
15392
15398
|
function Fy(e, r) {
|
|
15393
15399
|
var c = V, d = Z;
|
|
15394
|
-
if (
|
|
15400
|
+
if (Ue(r)) {
|
|
15395
15401
|
var y = "separator" in r ? r.separator : y;
|
|
15396
|
-
c = "length" in r ? pe(r.length) : c, d = "omission" in r ?
|
|
15402
|
+
c = "length" in r ? pe(r.length) : c, d = "omission" in r ? Bt(r.omission) : d;
|
|
15397
15403
|
}
|
|
15398
15404
|
e = Me(e);
|
|
15399
15405
|
var T = e.length;
|
|
@@ -15416,7 +15422,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
15416
15422
|
var q = G.index;
|
|
15417
15423
|
F = F.slice(0, q === n ? C : q);
|
|
15418
15424
|
}
|
|
15419
|
-
} else if (e.indexOf(
|
|
15425
|
+
} else if (e.indexOf(Bt(y), C) != C) {
|
|
15420
15426
|
var Q = F.lastIndexOf(y);
|
|
15421
15427
|
Q > -1 && (F = F.slice(0, Q));
|
|
15422
15428
|
}
|
|
@@ -15433,13 +15439,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
15433
15439
|
}
|
|
15434
15440
|
var Pf = ge(function(e, r) {
|
|
15435
15441
|
try {
|
|
15436
|
-
return
|
|
15442
|
+
return Lt(e, n, r);
|
|
15437
15443
|
} catch (c) {
|
|
15438
15444
|
return $a(c) ? c : new fe(c);
|
|
15439
15445
|
}
|
|
15440
15446
|
}), By = Wn(function(e, r) {
|
|
15441
15447
|
return Kt(r, function(c) {
|
|
15442
|
-
c = Rn(c),
|
|
15448
|
+
c = Rn(c), zn(e, c, Ya(e[c], e));
|
|
15443
15449
|
}), e;
|
|
15444
15450
|
});
|
|
15445
15451
|
function ky(e) {
|
|
@@ -15451,12 +15457,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
15451
15457
|
}) : [], ge(function(d) {
|
|
15452
15458
|
for (var y = -1; ++y < r; ) {
|
|
15453
15459
|
var T = e[y];
|
|
15454
|
-
if (
|
|
15455
|
-
return
|
|
15460
|
+
if (Lt(T[0], this, d))
|
|
15461
|
+
return Lt(T[1], this, d);
|
|
15456
15462
|
}
|
|
15457
15463
|
});
|
|
15458
15464
|
}
|
|
15459
|
-
function
|
|
15465
|
+
function Uy(e) {
|
|
15460
15466
|
return um(Zt(e, p));
|
|
15461
15467
|
}
|
|
15462
15468
|
function ec(e) {
|
|
@@ -15464,7 +15470,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
15464
15470
|
return e;
|
|
15465
15471
|
};
|
|
15466
15472
|
}
|
|
15467
|
-
function
|
|
15473
|
+
function zy(e, r) {
|
|
15468
15474
|
return e == null || e !== e ? r : e;
|
|
15469
15475
|
}
|
|
15470
15476
|
var Hy = Du(), Wy = Du(!0);
|
|
@@ -15482,17 +15488,17 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
15482
15488
|
}
|
|
15483
15489
|
var Vy = ge(function(e, r) {
|
|
15484
15490
|
return function(c) {
|
|
15485
|
-
return
|
|
15491
|
+
return Qi(c, e, r);
|
|
15486
15492
|
};
|
|
15487
15493
|
}), qy = ge(function(e, r) {
|
|
15488
15494
|
return function(c) {
|
|
15489
|
-
return
|
|
15495
|
+
return Qi(e, c, r);
|
|
15490
15496
|
};
|
|
15491
15497
|
});
|
|
15492
15498
|
function nc(e, r, c) {
|
|
15493
15499
|
var d = et(r), y = qs(r, d);
|
|
15494
|
-
c == null && !(
|
|
15495
|
-
var T = !(
|
|
15500
|
+
c == null && !(Ue(r) && (y.length || !d.length)) && (c = r, r = e, e = this, y = qs(r, et(r)));
|
|
15501
|
+
var T = !(Ue(c) && "chain" in c) || !!c.chain, R = jn(e);
|
|
15496
15502
|
return Kt(y, function(C) {
|
|
15497
15503
|
var F = r[C];
|
|
15498
15504
|
e[C] = F, R && (e.prototype[C] = function() {
|
|
@@ -15521,7 +15527,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
15521
15527
|
}
|
|
15522
15528
|
function Qy(e) {
|
|
15523
15529
|
return function(r) {
|
|
15524
|
-
return e == null ? n :
|
|
15530
|
+
return e == null ? n : Ur(e, r);
|
|
15525
15531
|
};
|
|
15526
15532
|
}
|
|
15527
15533
|
var Jy = Fu(), e_ = Fu(!0);
|
|
@@ -15550,7 +15556,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
15550
15556
|
return y;
|
|
15551
15557
|
}
|
|
15552
15558
|
function s_(e) {
|
|
15553
|
-
return de(e) ? ke(e, Rn) :
|
|
15559
|
+
return de(e) ? ke(e, Rn) : kt(e) ? [e] : Tt(Xu(Me(e)));
|
|
15554
15560
|
}
|
|
15555
15561
|
function o_(e) {
|
|
15556
15562
|
var r = ++vp;
|
|
@@ -15590,7 +15596,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
15590
15596
|
function b_(e, r) {
|
|
15591
15597
|
return e && e.length ? ca(e, ae(r, 2)) : 0;
|
|
15592
15598
|
}
|
|
15593
|
-
return x.after = G0, x.ary = cf, x.assign = Pv, x.assignIn = Tf, x.assignInWith = fo, x.assignWith = Iv, x.at = Dv, x.before = lf, x.bind = Ya, x.bindAll = By, x.bindKey = uf, x.castArray = tv, x.chain = sf, x.chunk = ug, x.compact = fg, x.concat = hg, x.cond = ky, x.conforms =
|
|
15599
|
+
return x.after = G0, x.ary = cf, x.assign = Pv, x.assignIn = Tf, x.assignInWith = fo, x.assignWith = Iv, x.at = Dv, x.before = lf, x.bind = Ya, x.bindAll = By, x.bindKey = uf, x.castArray = tv, x.chain = sf, x.chunk = ug, x.compact = fg, x.concat = hg, x.cond = ky, x.conforms = Uy, x.constant = ec, x.countBy = x0, x.create = Ov, x.curry = ff, x.curryRight = hf, x.debounce = df, x.defaults = Fv, x.defaultsDeep = Lv, x.defer = j0, x.delay = V0, x.difference = dg, x.differenceBy = pg, x.differenceWith = mg, x.drop = gg, x.dropRight = vg, x.dropRightWhile = yg, x.dropWhile = _g, x.fill = xg, x.filter = T0, x.flatMap = S0, x.flatMapDeep = R0, x.flatMapDepth = E0, x.flatten = ef, x.flattenDeep = bg, x.flattenDepth = Tg, x.flip = q0, x.flow = Hy, x.flowRight = Wy, x.fromPairs = wg, x.functions = Wv, x.functionsIn = Gv, x.groupBy = M0, x.initial = Sg, x.intersection = Rg, x.intersectionBy = Eg, x.intersectionWith = Mg, x.invert = Vv, x.invertBy = qv, x.invokeMap = P0, x.iteratee = tc, x.keyBy = I0, x.keys = et, x.keysIn = At, x.map = so, x.mapKeys = Kv, x.mapValues = $v, x.matches = Gy, x.matchesProperty = jy, x.memoize = ao, x.merge = Xv, x.mergeWith = wf, x.method = Vy, x.methodOf = qy, x.mixin = nc, x.negate = co, x.nthArg = Ky, x.omit = Zv, x.omitBy = Qv, x.once = Y0, x.orderBy = D0, x.over = $y, x.overArgs = K0, x.overEvery = Xy, x.overSome = Zy, x.partial = Ka, x.partialRight = pf, x.partition = O0, x.pick = Jv, x.pickBy = Af, x.property = If, x.propertyOf = Qy, x.pull = Dg, x.pullAll = nf, x.pullAllBy = Og, x.pullAllWith = Fg, x.pullAt = Lg, x.range = Jy, x.rangeRight = e_, x.rearg = $0, x.reject = N0, x.remove = Ng, x.rest = X0, x.reverse = Va, x.sampleSize = k0, x.set = ty, x.setWith = ny, x.shuffle = U0, x.slice = Bg, x.sortBy = W0, x.sortedUniq = jg, x.sortedUniqBy = Vg, x.split = Sy, x.spread = Z0, x.tail = qg, x.take = Yg, x.takeRight = Kg, x.takeRightWhile = $g, x.takeWhile = Xg, x.tap = f0, x.throttle = Q0, x.thru = io, x.toArray = _f, x.toPairs = Sf, x.toPairsIn = Rf, x.toPath = s_, x.toPlainObject = bf, x.transform = ry, x.unary = J0, x.union = Zg, x.unionBy = Qg, x.unionWith = Jg, x.uniq = e0, x.uniqBy = t0, x.uniqWith = n0, x.unset = iy, x.unzip = qa, x.unzipWith = rf, x.update = sy, x.updateWith = oy, x.values = hi, x.valuesIn = ay, x.without = r0, x.words = Cf, x.wrap = ev, x.xor = i0, x.xorBy = s0, x.xorWith = o0, x.zip = a0, x.zipObject = c0, x.zipObjectDeep = l0, x.zipWith = u0, x.entries = Sf, x.entriesIn = Rf, x.extend = Tf, x.extendWith = fo, nc(x, x), x.add = a_, x.attempt = Pf, x.camelCase = fy, x.capitalize = Ef, x.ceil = c_, x.clamp = cy, x.clone = nv, x.cloneDeep = iv, x.cloneDeepWith = sv, x.cloneWith = rv, x.conformsTo = ov, x.deburr = Mf, x.defaultTo = zy, x.divide = l_, x.endsWith = hy, x.eq = hn, x.escape = dy, x.escapeRegExp = py, x.every = b0, x.find = w0, x.findIndex = Qu, x.findKey = Nv, x.findLast = A0, x.findLastIndex = Ju, x.findLastKey = Bv, x.floor = u_, x.forEach = of, x.forEachRight = af, x.forIn = kv, x.forInRight = Uv, x.forOwn = zv, x.forOwnRight = Hv, x.get = Za, x.gt = av, x.gte = cv, x.has = jv, x.hasIn = Qa, x.head = tf, x.identity = St, x.includes = C0, x.indexOf = Ag, x.inRange = ly, x.invoke = Yv, x.isArguments = Wr, x.isArray = de, x.isArrayBuffer = lv, x.isArrayLike = wt, x.isArrayLikeObject = Ge, x.isBoolean = uv, x.isBuffer = ur, x.isDate = fv, x.isElement = hv, x.isEmpty = dv, x.isEqual = pv, x.isEqualWith = mv, x.isError = $a, x.isFinite = gv, x.isFunction = jn, x.isInteger = mf, x.isLength = lo, x.isMap = gf, x.isMatch = vv, x.isMatchWith = yv, x.isNaN = _v, x.isNative = xv, x.isNil = Tv, x.isNull = bv, x.isNumber = vf, x.isObject = Ue, x.isObjectLike = He, x.isPlainObject = is, x.isRegExp = Xa, x.isSafeInteger = wv, x.isSet = yf, x.isString = uo, x.isSymbol = kt, x.isTypedArray = fi, x.isUndefined = Av, x.isWeakMap = Sv, x.isWeakSet = Rv, x.join = Cg, x.kebabCase = my, x.last = Jt, x.lastIndexOf = Pg, x.lowerCase = gy, x.lowerFirst = vy, x.lt = Ev, x.lte = Mv, x.max = f_, x.maxBy = h_, x.mean = d_, x.meanBy = p_, x.min = m_, x.minBy = g_, x.stubArray = ic, x.stubFalse = sc, x.stubObject = t_, x.stubString = n_, x.stubTrue = r_, x.multiply = v_, x.nth = Ig, x.noConflict = Yy, x.noop = rc, x.now = oo, x.pad = yy, x.padEnd = _y, x.padStart = xy, x.parseInt = by, x.random = uy, x.reduce = F0, x.reduceRight = L0, x.repeat = Ty, x.replace = wy, x.result = ey, x.round = y_, x.runInContext = D, x.sample = B0, x.size = z0, x.snakeCase = Ay, x.some = H0, x.sortedIndex = kg, x.sortedIndexBy = Ug, x.sortedIndexOf = zg, x.sortedLastIndex = Hg, x.sortedLastIndexBy = Wg, x.sortedLastIndexOf = Gg, x.startCase = Ry, x.startsWith = Ey, x.subtract = __, x.sum = x_, x.sumBy = b_, x.template = My, x.times = i_, x.toFinite = Vn, x.toInteger = pe, x.toLength = xf, x.toLower = Cy, x.toNumber = en, x.toSafeInteger = Cv, x.toString = Me, x.toUpper = Py, x.trim = Iy, x.trimEnd = Dy, x.trimStart = Oy, x.truncate = Fy, x.unescape = Ly, x.uniqueId = o_, x.upperCase = Ny, x.upperFirst = Ja, x.each = of, x.eachRight = af, x.first = tf, nc(x, function() {
|
|
15594
15600
|
var e = {};
|
|
15595
15601
|
return An(x, function(r, c) {
|
|
15596
15602
|
Ce.call(x.prototype, c) || (e[c] = r);
|
|
@@ -15635,7 +15641,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
15635
15641
|
return this.reverse().find(e);
|
|
15636
15642
|
}, xe.prototype.invokeMap = ge(function(e, r) {
|
|
15637
15643
|
return typeof e == "function" ? new xe(this) : this.map(function(c) {
|
|
15638
|
-
return
|
|
15644
|
+
return Qi(c, e, r);
|
|
15639
15645
|
});
|
|
15640
15646
|
}), xe.prototype.reject = function(e) {
|
|
15641
15647
|
return this.filter(co(ae(e)));
|
|
@@ -15684,10 +15690,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
15684
15690
|
}), oi[Zs(n, S).name] = [{
|
|
15685
15691
|
name: "wrapper",
|
|
15686
15692
|
func: n
|
|
15687
|
-
}], xe.prototype.clone = Lp, xe.prototype.reverse = Np, xe.prototype.value = Bp, x.prototype.at = h0, x.prototype.chain = d0, x.prototype.commit = p0, x.prototype.next = m0, x.prototype.plant = v0, x.prototype.reverse = y0, x.prototype.toJSON = x.prototype.valueOf = x.prototype.value = _0, x.prototype.first = x.prototype.head,
|
|
15693
|
+
}], xe.prototype.clone = Lp, xe.prototype.reverse = Np, xe.prototype.value = Bp, x.prototype.at = h0, x.prototype.chain = d0, x.prototype.commit = p0, x.prototype.next = m0, x.prototype.plant = v0, x.prototype.reverse = y0, x.prototype.toJSON = x.prototype.valueOf = x.prototype.value = _0, x.prototype.first = x.prototype.head, Vi && (x.prototype[Vi] = g0), x;
|
|
15688
15694
|
}, ri = pp();
|
|
15689
15695
|
Fr ? ((Fr.exports = ri)._ = ri, ta._ = ri) : rt._ = ri;
|
|
15690
|
-
}).call(
|
|
15696
|
+
}).call(ss);
|
|
15691
15697
|
})(Wo, Wo.exports);
|
|
15692
15698
|
var eA = Wo.exports;
|
|
15693
15699
|
const tA = 1e3 / 60;
|
|
@@ -15898,7 +15904,7 @@ const iA = (a, t, n, i) => {
|
|
|
15898
15904
|
animationLoop: null,
|
|
15899
15905
|
replaceWithScreenshotOnComplete: !1
|
|
15900
15906
|
}, lA = ({ object: a, options: t = Oh }) => {
|
|
15901
|
-
const n = t.threeBaseRefs.mountPoint ||
|
|
15907
|
+
const n = t.threeBaseRefs.mountPoint || Ht(null), i = t.threeBaseRefs.renderer || Ht(null), s = t.threeBaseRefs.camera || Ht(null), l = t.threeBaseRefs.scene || Ht(null), o = t.threeBaseRefs.controls || Ht(null), f = () => typeof a == "string" ? null : a, [u, m] = Ei(f()), [g, p] = Ei(0), [h, b] = Ei(null), [w, E] = Ei(null);
|
|
15902
15908
|
ko(() => {
|
|
15903
15909
|
if (typeof a == "string") {
|
|
15904
15910
|
const M = new hx();
|
|
@@ -15922,16 +15928,16 @@ const iA = (a, t, n, i) => {
|
|
|
15922
15928
|
const {
|
|
15923
15929
|
renderer: B,
|
|
15924
15930
|
scene: L,
|
|
15925
|
-
camera:
|
|
15926
|
-
controls:
|
|
15931
|
+
camera: U,
|
|
15932
|
+
controls: z
|
|
15927
15933
|
} = O.getSceneElements();
|
|
15928
|
-
return i.current = B, l.current = L, s.current =
|
|
15934
|
+
return i.current = B, l.current = L, s.current = U, o.current = z, S(), window.addEventListener("resize", M), () => yb(n, B, M);
|
|
15929
15935
|
}, [a, _, S, u]);
|
|
15930
15936
|
const A = En(() => {
|
|
15931
15937
|
i.current && o.current && (o.current.update(), _.usePathTracing && w && w.pathTracingManager ? (w.pathTracingManager.updatePathTracerRenderer(), w.pathTracingManager.ptRenderer.renderSample()) : i.current.render(l.current, s.current));
|
|
15932
15938
|
}, [w]);
|
|
15933
|
-
return _.replaceWithScreenshotOnComplete && h ? /* @__PURE__ */
|
|
15934
|
-
t.helpers.addGizmo ? /* @__PURE__ */
|
|
15939
|
+
return _.replaceWithScreenshotOnComplete && h ? /* @__PURE__ */ cs.jsx("img", { src: h, alt: "Render Complete" }) : /* @__PURE__ */ cs.jsxs(cs.Fragment, { children: [
|
|
15940
|
+
t.helpers.addGizmo ? /* @__PURE__ */ cs.jsx(
|
|
15935
15941
|
gb,
|
|
15936
15942
|
{
|
|
15937
15943
|
camera: s.current,
|
|
@@ -15939,7 +15945,7 @@ const iA = (a, t, n, i) => {
|
|
|
15939
15945
|
render: A
|
|
15940
15946
|
}
|
|
15941
15947
|
) : null,
|
|
15942
|
-
/* @__PURE__ */
|
|
15948
|
+
/* @__PURE__ */ cs.jsx("div", { style: { width: "100%", height: "100%" }, ref: n })
|
|
15943
15949
|
] });
|
|
15944
15950
|
};
|
|
15945
15951
|
export {
|