chbim-plugins 0.0.26 → 0.0.27
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/chbim-plugins.js +535 -535
- package/chbim-plugins.umd.cjs +2 -2
- package/package.json +2 -5
package/chbim-plugins.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var Mm = Object.defineProperty;
|
|
2
|
-
var Sm = (T,
|
|
3
|
-
var kh = (T,
|
|
2
|
+
var Sm = (T, J, p) => J in T ? Mm(T, J, { enumerable: !0, configurable: !0, writable: !0, value: p }) : T[J] = p;
|
|
3
|
+
var kh = (T, J, p) => (Sm(T, typeof J != "symbol" ? J + "" : J, p), p);
|
|
4
4
|
import { openBlock as sh, createElementBlock as ah, normalizeClass as Fu, renderSlot as Gu, defineComponent as Gh, ref as Uh, onMounted as Hh, createElementVNode as lr, toDisplayString as Em, createApp as Uu } from "vue";
|
|
5
|
-
const bm = (T,
|
|
5
|
+
const bm = (T, J) => {
|
|
6
6
|
const p = T.__vccOpts || T;
|
|
7
|
-
for (const [
|
|
8
|
-
p[
|
|
7
|
+
for (const [$, G] of J)
|
|
8
|
+
p[$] = G;
|
|
9
9
|
return p;
|
|
10
10
|
}, Am = {
|
|
11
11
|
name: "MukButton"
|
|
@@ -21,10 +21,10 @@ const bm = (T, $) => {
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
setup(T) {
|
|
24
|
-
return (
|
|
24
|
+
return (J, p) => (sh(), ah("button", {
|
|
25
25
|
class: Fu(["muk-btn", [T.size, T.type]])
|
|
26
26
|
}, [
|
|
27
|
-
Gu(
|
|
27
|
+
Gu(J.$slots, "default", {}, void 0, !0)
|
|
28
28
|
], 2));
|
|
29
29
|
}
|
|
30
30
|
}), Cm = /* @__PURE__ */ bm(Pm, [["__scopeId", "data-v-0e6d93cd"]]);
|
|
@@ -168,15 +168,15 @@ const Rm = { class: "mask js-mask" }, Im = /* @__PURE__ */ lr("div", { class: "m
|
|
|
168
168
|
default: "CHBIM云平台"
|
|
169
169
|
}
|
|
170
170
|
},
|
|
171
|
-
setup(T, { expose:
|
|
172
|
-
const p = Uh(null),
|
|
171
|
+
setup(T, { expose: J }) {
|
|
172
|
+
const p = Uh(null), $ = () => {
|
|
173
173
|
p.value === null && (p.value = new Lm());
|
|
174
174
|
}, G = () => {
|
|
175
|
-
|
|
175
|
+
$(), p.value.continuation();
|
|
176
176
|
};
|
|
177
177
|
return Hh(() => {
|
|
178
|
-
|
|
179
|
-
}),
|
|
178
|
+
$();
|
|
179
|
+
}), J({
|
|
180
180
|
continuation: G
|
|
181
181
|
}), (m, P) => (sh(), ah("div", Rm, [
|
|
182
182
|
Im,
|
|
@@ -209,8 +209,8 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
209
209
|
sn._gsDefine(
|
|
210
210
|
"TweenMax",
|
|
211
211
|
["core.Animation", "core.SimpleTimeline", "TweenLite"],
|
|
212
|
-
function(T,
|
|
213
|
-
var
|
|
212
|
+
function(T, J, p) {
|
|
213
|
+
var $ = function(b) {
|
|
214
214
|
var A, d = [], g = b.length;
|
|
215
215
|
for (A = 0; A !== g; d.push(b[A++]))
|
|
216
216
|
;
|
|
@@ -267,7 +267,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
267
267
|
var z, V, ht, ft, gt = 0, Nt = [], lt = function() {
|
|
268
268
|
d.onComplete && d.onComplete.apply(d.onCompleteScope || this, arguments), M.apply(F || d.callbackScope || this, x || H);
|
|
269
269
|
}, Et = d.cycle, D = d.startAt && d.startAt.cycle;
|
|
270
|
-
for (U(b) || (typeof b == "string" && (b = p.selector(b) || b), E(b) && (b =
|
|
270
|
+
for (U(b) || (typeof b == "string" && (b = p.selector(b) || b), E(b) && (b = $(b))), b = b || [], 0 > g && (b = $(b), b.reverse(), g *= -1), z = b.length - 1, ht = 0; z >= ht; ht++) {
|
|
271
271
|
V = {};
|
|
272
272
|
for (ft in d)
|
|
273
273
|
V[ft] = d[ft];
|
|
@@ -312,11 +312,11 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
312
312
|
A == null && (A = !0), d == null && (d = !0);
|
|
313
313
|
var M, x, F, z = B(g != 0), V = z.length, ht = A && d && g;
|
|
314
314
|
for (F = 0; V > F; F++)
|
|
315
|
-
x = z[F], (ht || x instanceof
|
|
315
|
+
x = z[F], (ht || x instanceof J || (M = x.target === x.vars.onComplete) && d || A && !M) && (b ? x.totalTime(x._reversed ? 0 : x.totalDuration()) : x._enabled(!1, !1));
|
|
316
316
|
}, m.killChildTweensOf = function(b, A) {
|
|
317
317
|
if (b != null) {
|
|
318
318
|
var d, g, M, x, F, z = O.tweenLookup;
|
|
319
|
-
if (typeof b == "string" && (b = p.selector(b) || b), E(b) && (b =
|
|
319
|
+
if (typeof b == "string" && (b = p.selector(b) || b), E(b) && (b = $(b)), U(b))
|
|
320
320
|
for (x = b.length; --x > -1; )
|
|
321
321
|
m.killChildTweensOf(b[x], A);
|
|
322
322
|
else {
|
|
@@ -332,7 +332,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
332
332
|
var q = function(b, A, d, g) {
|
|
333
333
|
A = A !== !1, d = d !== !1, g = g !== !1;
|
|
334
334
|
for (var M, x, F = B(g), z = A && d && g, V = F.length; --V > -1; )
|
|
335
|
-
x = F[V], (z || x instanceof
|
|
335
|
+
x = F[V], (z || x instanceof J || (M = x.target === x.vars.onComplete) && d || A && !M) && x.paused(b);
|
|
336
336
|
};
|
|
337
337
|
return m.pauseAll = function(b, A, d) {
|
|
338
338
|
q(!0, b, A, d);
|
|
@@ -368,14 +368,14 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
368
368
|
), sn._gsDefine(
|
|
369
369
|
"TimelineLite",
|
|
370
370
|
["core.Animation", "core.SimpleTimeline", "TweenLite"],
|
|
371
|
-
function(T,
|
|
372
|
-
var
|
|
373
|
-
|
|
371
|
+
function(T, J, p) {
|
|
372
|
+
var $ = function(d) {
|
|
373
|
+
J.call(this, d), this._labels = {}, this.autoRemoveChildren = this.vars.autoRemoveChildren === !0, this.smoothChildTiming = this.vars.smoothChildTiming === !0, this._sortChildren = !0, this._onUpdate = this.vars.onUpdate;
|
|
374
374
|
var g, M, x = this.vars;
|
|
375
375
|
for (M in x)
|
|
376
376
|
g = x[M], E(g) && g.join("").indexOf("{self}") !== -1 && (x[M] = this._swapSelfInParams(g));
|
|
377
377
|
E(x.tweens) && this.add(x.tweens, 0, x.align, x.stagger);
|
|
378
|
-
}, G = 1e-10, m = p._internals, P =
|
|
378
|
+
}, G = 1e-10, m = p._internals, P = $._internals = {}, O = m.isSelector, E = m.isArray, U = m.lazyTweens, Y = m.lazyRender, H = sn._gsDefine.globals, K = function(d) {
|
|
379
379
|
var g, M = {};
|
|
380
380
|
for (g in d)
|
|
381
381
|
M[g] = d[g];
|
|
@@ -391,8 +391,8 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
391
391
|
for (g = 0; g !== x; M.push(d[g++]))
|
|
392
392
|
;
|
|
393
393
|
return M;
|
|
394
|
-
}, A =
|
|
395
|
-
return
|
|
394
|
+
}, A = $.prototype = new J();
|
|
395
|
+
return $.version = "2.0.2", A.constructor = $, A.kill()._gc = A._forcingPlayhead = A._hasPause = !1, A.to = function(d, g, M, x) {
|
|
396
396
|
var F = M.repeat && H.TweenMax || p;
|
|
397
397
|
return g ? this.add(new F(d, g, M), x) : this.set(d, M, x);
|
|
398
398
|
}, A.from = function(d, g, M, x) {
|
|
@@ -401,7 +401,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
401
401
|
var z = x.repeat && H.TweenMax || p;
|
|
402
402
|
return g ? this.add(z.fromTo(d, g, M, x), F) : this.set(d, x, F);
|
|
403
403
|
}, A.staggerTo = function(d, g, M, x, F, z, V, ht) {
|
|
404
|
-
var ft, gt, Nt = new
|
|
404
|
+
var ft, gt, Nt = new $({
|
|
405
405
|
onComplete: z,
|
|
406
406
|
onCompleteParams: V,
|
|
407
407
|
callbackScope: ht,
|
|
@@ -418,9 +418,9 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
418
418
|
return this.add(p.delayedCall(0, d, g, M), x);
|
|
419
419
|
}, A.set = function(d, g, M) {
|
|
420
420
|
return M = this._parseTimeOrLabel(M, 0, !0), g.immediateRender == null && (g.immediateRender = M === this._time && !this._paused), this.add(new p(d, 0, g), M);
|
|
421
|
-
},
|
|
421
|
+
}, $.exportRoot = function(d, g) {
|
|
422
422
|
d = d || {}, d.smoothChildTiming == null && (d.smoothChildTiming = !0);
|
|
423
|
-
var M, x, F, z, V = new
|
|
423
|
+
var M, x, F, z, V = new $(d), ht = V._timeline;
|
|
424
424
|
for (g == null && (g = !0), ht._remove(V, !0), V._startTime = 0, V._rawPrevTime = V._time = V._totalTime = ht._time, F = ht._first; F; )
|
|
425
425
|
z = F._next, g && F instanceof p && F.target === F.vars.onComplete || (x = F._startTime - F._delay, 0 > x && (M = 1), V.add(F, x)), F = z;
|
|
426
426
|
return ht.add(V, 0), M && V.totalDuration(), V;
|
|
@@ -429,7 +429,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
429
429
|
if (typeof g != "number" && (g = this._parseTimeOrLabel(g, 0, !0, d)), !(d instanceof T)) {
|
|
430
430
|
if (d instanceof Array || d && d.push && E(d)) {
|
|
431
431
|
for (M = M || "normal", x = x || 0, F = g, z = d.length, V = 0; z > V; V++)
|
|
432
|
-
E(ht = d[V]) && (ht = new
|
|
432
|
+
E(ht = d[V]) && (ht = new $({ tweens: ht })), this.add(ht, F), typeof ht != "string" && typeof ht != "function" && (M === "sequence" ? F = ht._startTime + ht.totalDuration() / ht._timeScale : M === "start" && (ht._startTime -= ht.delay())), F += x;
|
|
433
433
|
return this._uncache(!0);
|
|
434
434
|
}
|
|
435
435
|
if (typeof d == "string")
|
|
@@ -438,7 +438,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
438
438
|
throw "Cannot add " + d + " into the timeline; it is not a tween, timeline, function, or string.";
|
|
439
439
|
d = p.delayedCall(0, d);
|
|
440
440
|
}
|
|
441
|
-
if (
|
|
441
|
+
if (J.prototype.add.call(this, d, g), d._time && (F = Math.max(
|
|
442
442
|
0,
|
|
443
443
|
Math.min(
|
|
444
444
|
d.totalDuration(),
|
|
@@ -461,7 +461,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
461
461
|
}
|
|
462
462
|
return typeof d == "string" ? this.removeLabel(d) : this.kill(null, d);
|
|
463
463
|
}, A._remove = function(d, g) {
|
|
464
|
-
|
|
464
|
+
J.prototype._remove.call(this, d, g);
|
|
465
465
|
var M = this._last;
|
|
466
466
|
return M ? this._time > this.duration() && (this._time = this._duration, this._totalTime = this._totalDuration) : this._time = this._totalTime = this._duration = this._totalDuration = 0, this;
|
|
467
467
|
}, A.append = function(d, g) {
|
|
@@ -569,7 +569,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
569
569
|
}
|
|
570
570
|
}, A._hasPausedChild = function() {
|
|
571
571
|
for (var d = this._first; d; ) {
|
|
572
|
-
if (d._paused || d instanceof
|
|
572
|
+
if (d._paused || d instanceof $ && d._hasPausedChild())
|
|
573
573
|
return !0;
|
|
574
574
|
d = d._next;
|
|
575
575
|
}
|
|
@@ -620,7 +620,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
620
620
|
if (d === this._gc)
|
|
621
621
|
for (var M = this._first; M; )
|
|
622
622
|
M._enabled(d, !0), M = M._next;
|
|
623
|
-
return
|
|
623
|
+
return J.prototype._enabled.call(this, d, g);
|
|
624
624
|
}, A.totalTime = function(d, g, M) {
|
|
625
625
|
this._forcingPlayhead = !0;
|
|
626
626
|
var x = T.prototype.totalTime.apply(this, arguments);
|
|
@@ -648,20 +648,20 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
648
648
|
return d === T._rootFramesTimeline;
|
|
649
649
|
}, A.rawTime = function(d) {
|
|
650
650
|
return d && (this._paused || this._repeat && this.time() > 0 && this.totalProgress() < 1) ? this._totalTime % (this._duration + this._repeatDelay) : this._paused ? this._totalTime : (this._timeline.rawTime(d) - this._startTime) * this._timeScale;
|
|
651
|
-
},
|
|
651
|
+
}, $;
|
|
652
652
|
},
|
|
653
653
|
!0
|
|
654
654
|
), sn._gsDefine(
|
|
655
655
|
"TimelineMax",
|
|
656
656
|
["TimelineLite", "TweenLite", "easing.Ease"],
|
|
657
|
-
function(T,
|
|
658
|
-
var
|
|
657
|
+
function(T, J, p) {
|
|
658
|
+
var $ = function(H) {
|
|
659
659
|
T.call(this, H), this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._cycle = 0, this._yoyo = this.vars.yoyo === !0, this._dirty = !0;
|
|
660
|
-
}, G = 1e-10, m =
|
|
661
|
-
return Y.constructor =
|
|
660
|
+
}, G = 1e-10, m = J._internals, P = m.lazyTweens, O = m.lazyRender, E = sn._gsDefine.globals, U = new p(null, null, 1, 0), Y = $.prototype = new T();
|
|
661
|
+
return Y.constructor = $, Y.kill()._gc = !1, $.version = "2.0.2", Y.invalidate = function() {
|
|
662
662
|
return this._yoyo = this.vars.yoyo === !0, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._uncache(!0), T.prototype.invalidate.call(this);
|
|
663
663
|
}, Y.addCallback = function(H, K, B, q) {
|
|
664
|
-
return this.add(
|
|
664
|
+
return this.add(J.delayedCall(0, H, B, q), K);
|
|
665
665
|
}, Y.removeCallback = function(H, K) {
|
|
666
666
|
if (H)
|
|
667
667
|
if (K == null)
|
|
@@ -679,7 +679,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
679
679
|
useFrames: this.usesFrames(),
|
|
680
680
|
immediateRender: !1,
|
|
681
681
|
lazy: !1
|
|
682
|
-
}, d = K.repeat && E.TweenMax ||
|
|
682
|
+
}, d = K.repeat && E.TweenMax || J;
|
|
683
683
|
for (q in K)
|
|
684
684
|
A[q] = K[q];
|
|
685
685
|
return A.time = this._parseTimeOrLabel(H), B = Math.abs(Number(A.time) - this._time) / this._timeScale || 1e-3, b = new d(this, B, A), A.onStart = function() {
|
|
@@ -804,11 +804,11 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
804
804
|
return arguments.length ? (this._yoyo = H, this) : this._yoyo;
|
|
805
805
|
}, Y.currentLabel = function(H) {
|
|
806
806
|
return arguments.length ? this.seek(H, !0) : this.getLabelBefore(this._time + 1e-8);
|
|
807
|
-
},
|
|
807
|
+
}, $;
|
|
808
808
|
},
|
|
809
809
|
!0
|
|
810
810
|
), function() {
|
|
811
|
-
var T = 180 / Math.PI,
|
|
811
|
+
var T = 180 / Math.PI, J = [], p = [], $ = [], G = {}, m = sn._gsDefine.globals, P = function(d, g, M, x) {
|
|
812
812
|
M === x && (M = x - (x - g) / 1e6), d === g && (g = d + (M - d) / 1e6), this.a = d, this.b = g, this.c = M, this.d = x, this.da = x - d, this.ca = M - d, this.ba = g - d;
|
|
813
813
|
}, O = ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,", E = function(d, g, M, x) {
|
|
814
814
|
var F = { a: d }, z = {}, V = {}, ht = { c: x }, ft = (d + g) / 2, gt = (g + M) / 2, Nt = (M + x) / 2, lt = (ft + gt) / 2, Et = (gt + Nt) / 2, D = (Et - lt) / 8;
|
|
@@ -816,7 +816,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
816
816
|
}, U = function(d, g, M, x, F) {
|
|
817
817
|
var z, V, ht, ft, gt, Nt, lt, Et, D, zt, Pt, Rt, ge, ue = d.length - 1, Ft = 0, Dt = d[0].a;
|
|
818
818
|
for (z = 0; ue > z; z++)
|
|
819
|
-
gt = d[Ft], V = gt.a, ht = gt.d, ft = d[Ft + 1].d, F ? (Pt =
|
|
819
|
+
gt = d[Ft], V = gt.a, ht = gt.d, ft = d[Ft + 1].d, F ? (Pt = J[z], Rt = p[z], ge = (Rt + Pt) * g * 0.25 / (x ? 0.5 : $[z] || 0.5), Nt = ht - (ht - V) * (x ? 0.5 * g : Pt !== 0 ? ge / Pt : 0), lt = ht + (ft - ht) * (x ? 0.5 * g : Rt !== 0 ? ge / Rt : 0), Et = ht - (Nt + ((lt - Nt) * (3 * Pt / (Pt + Rt) + 0.5) / 4 || 0))) : (Nt = ht - (ht - V) * g * 0.5, lt = ht + (ft - ht) * g * 0.5, Et = ht - (Nt + lt) / 2), Nt += Et, lt += Et, gt.c = D = Nt, z !== 0 ? gt.b = Dt : gt.b = Dt = gt.a + 0.6 * (gt.c - gt.a), gt.da = ht - V, gt.ca = D - V, gt.ba = Dt - V, M ? (zt = E(V, Dt, D, ht), d.splice(Ft, 1, zt[0], zt[1], zt[2], zt[3]), Ft += 4) : Ft++, Dt = lt;
|
|
820
820
|
gt = d[Ft], gt.b = Dt, gt.c = Dt + 0.4 * (gt.d - Dt), gt.da = gt.d - gt.a, gt.ca = gt.c - gt.a, gt.ba = Dt - gt.a, M && (zt = E(gt.a, Dt, gt.c, gt.d), d.splice(Ft, 1, zt[0], zt[1], zt[2], zt[3]));
|
|
821
821
|
}, Y = function(d, g, M, x) {
|
|
822
822
|
var F, z, V, ht, ft, gt, Nt = [];
|
|
@@ -826,7 +826,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
826
826
|
if (F = d.length - 2, 0 > F)
|
|
827
827
|
return Nt[0] = new P(d[0][g], 0, 0, d[0][g]), Nt;
|
|
828
828
|
for (z = 0; F > z; z++)
|
|
829
|
-
V = d[z][g], ht = d[z + 1][g], Nt[z] = new P(V, 0, 0, ht), M && (ft = d[z + 2][g],
|
|
829
|
+
V = d[z][g], ht = d[z + 1][g], Nt[z] = new P(V, 0, 0, ht), M && (ft = d[z + 2][g], J[z] = (J[z] || 0) + (ht - V) * (ht - V), p[z] = (p[z] || 0) + (ft - ht) * (ft - ht));
|
|
830
830
|
return Nt[z] = new P(d[z][g], 0, 0, d[z + 1][g]), Nt;
|
|
831
831
|
}, H = function(d, g, M, x, F, z) {
|
|
832
832
|
var V, ht, ft, gt, Nt, lt, Et, D, zt = {}, Pt = [], Rt = z || d[0];
|
|
@@ -841,17 +841,17 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
841
841
|
}
|
|
842
842
|
Et && (d = d.concat(), z && d.unshift(z), d.push(d[1]), z = d[d.length - 3]);
|
|
843
843
|
}
|
|
844
|
-
for (
|
|
844
|
+
for (J.length = p.length = $.length = 0, V = Pt.length; --V > -1; )
|
|
845
845
|
ht = Pt[V], G[ht] = F.indexOf("," + ht + ",") !== -1, zt[ht] = Y(d, ht, G[ht], z);
|
|
846
|
-
for (V =
|
|
847
|
-
|
|
846
|
+
for (V = J.length; --V > -1; )
|
|
847
|
+
J[V] = Math.sqrt(J[V]), p[V] = Math.sqrt(p[V]);
|
|
848
848
|
if (!x) {
|
|
849
849
|
for (V = Pt.length; --V > -1; )
|
|
850
850
|
if (G[ht])
|
|
851
851
|
for (ft = zt[Pt[V]], lt = ft.length - 1, gt = 0; lt > gt; gt++)
|
|
852
|
-
Nt = ft[gt + 1].da / p[gt] + ft[gt].da /
|
|
853
|
-
for (V =
|
|
854
|
-
|
|
852
|
+
Nt = ft[gt + 1].da / p[gt] + ft[gt].da / J[gt] || 0, $[gt] = ($[gt] || 0) + Nt * Nt;
|
|
853
|
+
for (V = $.length; --V > -1; )
|
|
854
|
+
$[V] = Math.sqrt($[V]);
|
|
855
855
|
}
|
|
856
856
|
for (V = Pt.length, gt = M ? 4 : 1; --V > -1; )
|
|
857
857
|
ht = Pt[V], ft = zt[ht], U(ft, g, M, x, G[ht]), Et && (ft.splice(0, gt), ft.splice(ft.length - gt, gt));
|
|
@@ -986,8 +986,8 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
986
986
|
}(), sn._gsDefine(
|
|
987
987
|
"plugins.CSSPlugin",
|
|
988
988
|
["plugins.TweenPlugin", "TweenLite"],
|
|
989
|
-
function(T,
|
|
990
|
-
var p,
|
|
989
|
+
function(T, J) {
|
|
990
|
+
var p, $, G, m, P = function() {
|
|
991
991
|
T.call(this, "css"), this._overwriteProps.length = 0, this.setRatio = P.prototype.setRatio;
|
|
992
992
|
}, O = sn._gsDefine.globals, E = {}, U = P.prototype = new T("css");
|
|
993
993
|
U.constructor = P, P.version = "2.0.2", P.API = 2, P.defaultTransformPerspective = 0, P.defaultSkewType = "compensated", P.defaultSmoothOrigin = !0, U = "px", P.suffixMap = {
|
|
@@ -1045,7 +1045,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1045
1045
|
if (Tt.cssText = "border:0 solid red;position:" + ct(L, "position") + ";line-height:0;", rt !== "%" && Ot.appendChild && rt.charAt(0) !== "v" && rt !== "rem")
|
|
1046
1046
|
Tt[Ht ? "borderLeftWidth" : "borderTopWidth"] = ot + rt;
|
|
1047
1047
|
else {
|
|
1048
|
-
if (Ot = L.parentNode || xe.body, ct(Ot, "display").indexOf("flex") !== -1 && (Tt.position = "absolute"), st = Ot._gsCache, Ct =
|
|
1048
|
+
if (Ot = L.parentNode || xe.body, ct(Ot, "display").indexOf("flex") !== -1 && (Tt.position = "absolute"), st = Ot._gsCache, Ct = J.ticker.frame, st && Ht && st.time === Ct)
|
|
1049
1049
|
return st.width * ot / 100;
|
|
1050
1050
|
Tt[Ht ? "width" : "height"] = ot + rt;
|
|
1051
1051
|
}
|
|
@@ -1168,7 +1168,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1168
1168
|
we = new RegExp(we + ")", "gi"), P.colorStringFilter = function(L) {
|
|
1169
1169
|
var Z, ot = L[0] + " " + L[1];
|
|
1170
1170
|
we.test(ot) && (Z = ot.indexOf("hsl(") !== -1 || ot.indexOf("hsla(") !== -1, L[0] = de(L[0], Z), L[1] = de(L[1], Z)), we.lastIndex = 0;
|
|
1171
|
-
},
|
|
1171
|
+
}, J.defaultStringFilter || (J.defaultStringFilter = P.colorStringFilter);
|
|
1172
1172
|
var vi = function(L, Z, ot, rt) {
|
|
1173
1173
|
if (L == null)
|
|
1174
1174
|
return function(oe) {
|
|
@@ -1454,9 +1454,9 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1454
1454
|
for (Mt in Tt)
|
|
1455
1455
|
Tt[Mt] < oe && Tt[Mt] > -oe && (Tt[Mt] = 0);
|
|
1456
1456
|
}
|
|
1457
|
-
return ot && (L._gsTransform = Tt, Tt.svg && (Rr && L.style[dn] ?
|
|
1457
|
+
return ot && (L._gsTransform = Tt, Tt.svg && (Rr && L.style[dn] ? J.delayedCall(1e-3, function() {
|
|
1458
1458
|
Ro(L.style, dn);
|
|
1459
|
-
}) : !Rr && L.getAttribute("transform") &&
|
|
1459
|
+
}) : !Rr && L.getAttribute("transform") && J.delayedCall(1e-3, function() {
|
|
1460
1460
|
L.removeAttribute("transform");
|
|
1461
1461
|
}))), Tt;
|
|
1462
1462
|
}, Ea = function(L) {
|
|
@@ -1599,7 +1599,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1599
1599
|
"borderBottomLeftRadius"
|
|
1600
1600
|
], di = L.style;
|
|
1601
1601
|
for (ve = parseFloat(L.offsetWidth), he = parseFloat(L.offsetHeight), st = Z.split(" "), Ct = 0; Ct < ce.length; Ct++)
|
|
1602
|
-
this.p.indexOf("border") && (ce[Ct] = Jt(ce[Ct])), Tt = Ot = ct(L, ce[Ct], G, !1, "0px"), Tt.indexOf(" ") !== -1 && (Ot = Tt.split(" "), Tt = Ot[0], Ot = Ot[1]), le = Ht = st[Ct], oe = parseFloat(Tt), He = Tt.substr((oe + "").length), ui = le.charAt(1) === "=", ui ? (te = parseInt(le.charAt(0) + "1", 10), le = le.substr(2), te *= parseFloat(le), Ve = le.substr((te + "").length - (0 > te ? 1 : 0)) || "") : (te = parseFloat(le), Ve = le.substr((te + "").length)), Ve === "" && (Ve =
|
|
1602
|
+
this.p.indexOf("border") && (ce[Ct] = Jt(ce[Ct])), Tt = Ot = ct(L, ce[Ct], G, !1, "0px"), Tt.indexOf(" ") !== -1 && (Ot = Tt.split(" "), Tt = Ot[0], Ot = Ot[1]), le = Ht = st[Ct], oe = parseFloat(Tt), He = Tt.substr((oe + "").length), ui = le.charAt(1) === "=", ui ? (te = parseInt(le.charAt(0) + "1", 10), le = le.substr(2), te *= parseFloat(le), Ve = le.substr((te + "").length - (0 > te ? 1 : 0)) || "") : (te = parseFloat(le), Ve = le.substr((te + "").length)), Ve === "" && (Ve = $[ot] || He), Ve !== He && (Be = pt(L, "borderLeft", oe, He), ye = pt(L, "borderTop", oe, He), Ve === "%" ? (Tt = Be / ve * 100 + "%", Ot = ye / he * 100 + "%") : Ve === "em" ? (ke = pt(L, "borderLeft", 1, "em"), Tt = Be / ke + "em", Ot = ye / ke + "em") : (Tt = Be + "px", Ot = ye + "px"), ui && (le = parseFloat(Tt) + te + Ve, Ht = parseFloat(Ot) + te + Ve)), I = jn(di, ce[Ct], Tt + " " + Ot, le + " " + Ht, !1, "0px", I);
|
|
1603
1603
|
return I;
|
|
1604
1604
|
},
|
|
1605
1605
|
prefix: !0,
|
|
@@ -1756,7 +1756,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1756
1756
|
U = P.prototype, U._firstPT = U._lastParsedTransform = U._transform = null, U._onInitTween = function(L, Z, ot, rt) {
|
|
1757
1757
|
if (!L.nodeType)
|
|
1758
1758
|
return !1;
|
|
1759
|
-
this._target = A = L, this._tween = ot, this._vars = Z, d = rt, Y = Z.autoRound, p = !1,
|
|
1759
|
+
this._target = A = L, this._tween = ot, this._vars = Z, d = rt, Y = Z.autoRound, p = !1, $ = Z.suffixMap || P.suffixMap, G = jt(L, ""), m = this._overwriteProps;
|
|
1760
1760
|
var I, Mt, st, Ct, Ht, Ot, Tt, le, oe, te = L.style;
|
|
1761
1761
|
if (H && te.zIndex === "" && (I = ct(L, "zIndex", G), (I === "auto" || I === "") && this._addLazySet(te, "zIndex", 0)), typeof Z == "string" && (Ct = te.cssText, I = ie(L, G), te.cssText = Ct + ";" + Z, I = Kt(L, I, ie(L)).difs, !pi && ht.test(Z) && (I.opacity = parseFloat(RegExp.$1)), Z = I, te.cssText = Ct), Z.className ? this._firstPT = Mt = E.className.parse(
|
|
1762
1762
|
L,
|
|
@@ -1803,7 +1803,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1803
1803
|
);
|
|
1804
1804
|
continue;
|
|
1805
1805
|
}
|
|
1806
|
-
Ht = ct(L, I, G) + "", oe = typeof Ot == "string", I === "color" || I === "fill" || I === "stroke" || I.indexOf("Color") !== -1 || oe && gt.test(Ot) ? (oe || (Ot = Re(Ot), Ot = (Ot.length > 3 ? "rgba(" : "rgb(") + Ot.join(",") + ")"), ot = jn(ve, I, Ht, Ot, !0, "transparent", ot, 0, rt)) : oe && ue.test(Ot) ? ot = jn(ve, I, Ht, Ot, !0, null, ot, 0, rt) : (st = parseFloat(Ht), Tt = st || st === 0 ? Ht.substr((st + "").length) : "", (Ht === "" || Ht === "auto") && (I === "width" || I === "height" ? (st = nt(L, I, G), Tt = "px") : I === "left" || I === "top" ? (st = Lt(L, I, G), Tt = "px") : (st = I !== "opacity" ? 0 : 1, Tt = "")), te = oe && Ot.charAt(1) === "=", te ? (Ct = parseInt(Ot.charAt(0) + "1", 10), Ot = Ot.substr(2), Ct *= parseFloat(Ot), le = Ot.replace(z, "")) : (Ct = parseFloat(Ot), le = oe ? Ot.replace(z, "") : ""), le === "" && (le = I in
|
|
1806
|
+
Ht = ct(L, I, G) + "", oe = typeof Ot == "string", I === "color" || I === "fill" || I === "stroke" || I.indexOf("Color") !== -1 || oe && gt.test(Ot) ? (oe || (Ot = Re(Ot), Ot = (Ot.length > 3 ? "rgba(" : "rgb(") + Ot.join(",") + ")"), ot = jn(ve, I, Ht, Ot, !0, "transparent", ot, 0, rt)) : oe && ue.test(Ot) ? ot = jn(ve, I, Ht, Ot, !0, null, ot, 0, rt) : (st = parseFloat(Ht), Tt = st || st === 0 ? Ht.substr((st + "").length) : "", (Ht === "" || Ht === "auto") && (I === "width" || I === "height" ? (st = nt(L, I, G), Tt = "px") : I === "left" || I === "top" ? (st = Lt(L, I, G), Tt = "px") : (st = I !== "opacity" ? 0 : 1, Tt = "")), te = oe && Ot.charAt(1) === "=", te ? (Ct = parseInt(Ot.charAt(0) + "1", 10), Ot = Ot.substr(2), Ct *= parseFloat(Ot), le = Ot.replace(z, "")) : (Ct = parseFloat(Ot), le = oe ? Ot.replace(z, "") : ""), le === "" && (le = I in $ ? $[I] : Tt), Ot = Ct || Ct === 0 ? (te ? Ct + st : Ct) + le : Z[I], Tt !== le && (le !== "" || I === "lineHeight") && (Ct || Ct === 0) && st && (st = pt(L, I, st, Tt), le === "%" ? (st /= pt(L, I, 100, "%") / 100, Z.strictUnits !== !0 && (Ht = st + "%")) : le === "em" || le === "rem" || le === "vw" || le === "vh" ? st /= pt(L, I, 1, le) : le !== "px" && (Ct = pt(L, I, Ct, le), le = "px"), te && (Ct || Ct === 0) && (Ot = Ct + st + le)), te && (Ct += st), !st && st !== 0 || !Ct && Ct !== 0 ? ve[I] !== void 0 && (Ot || Ot + "" != "NaN" && Ot != null) ? (ot = new Si(
|
|
1807
1807
|
ve,
|
|
1808
1808
|
I,
|
|
1809
1809
|
Ct || st || 0,
|
|
@@ -1915,7 +1915,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1915
1915
|
Mt = rt[I], st = Mt.type, Mt.style && (Z.push(ie(Mt)), ot && ot.push(Mt)), st !== 1 && st !== 9 && st !== 11 || !Mt.childNodes.length || Tr(Mt, Z, ot);
|
|
1916
1916
|
};
|
|
1917
1917
|
return P.cascadeTo = function(L, Z, ot) {
|
|
1918
|
-
var rt, I, Mt, st, Ct =
|
|
1918
|
+
var rt, I, Mt, st, Ct = J.to(L, Z, ot), Ht = [Ct], Ot = [], Tt = [], le = [], oe = J._internals.reservedProps;
|
|
1919
1919
|
for (L = Ct._targets || Ct.target, Tr(L, Ot, le), Ct.render(Z, !0, !0), Tr(L, Tt), Ct.render(0, !0, !0), Ct._enabled(!0), rt = le.length; --rt > -1; )
|
|
1920
1920
|
if (I = Kt(le[rt], Ot[rt], Tt[rt]), I.firstMPT) {
|
|
1921
1921
|
I = I.difs;
|
|
@@ -1924,7 +1924,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1924
1924
|
st = {};
|
|
1925
1925
|
for (Mt in I)
|
|
1926
1926
|
st[Mt] = Ot[rt][Mt];
|
|
1927
|
-
Ht.push(
|
|
1927
|
+
Ht.push(J.fromTo(le[rt], Z, st, I));
|
|
1928
1928
|
}
|
|
1929
1929
|
return Ht;
|
|
1930
1930
|
}, T.activate([P]), P;
|
|
@@ -1939,7 +1939,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1939
1939
|
init: function(G, m, P) {
|
|
1940
1940
|
return this._tween = P, !0;
|
|
1941
1941
|
}
|
|
1942
|
-
}),
|
|
1942
|
+
}), J = function(G) {
|
|
1943
1943
|
var m = 1 > G ? Math.pow(10, (G + "").length - 2) : 1;
|
|
1944
1944
|
return function(P) {
|
|
1945
1945
|
return (Math.round(P / G) * G * m | 0) / m;
|
|
@@ -1947,20 +1947,20 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1947
1947
|
}, p = function(G, m) {
|
|
1948
1948
|
for (; G; )
|
|
1949
1949
|
G.f || G.blob || (G.m = m || Math.round), G = G._next;
|
|
1950
|
-
},
|
|
1951
|
-
|
|
1950
|
+
}, $ = T.prototype;
|
|
1951
|
+
$._onInitAllProps = function() {
|
|
1952
1952
|
var G, m, P, O, E = this._tween, U = E.vars.roundProps, Y = {}, H = E._propLookup.roundProps;
|
|
1953
1953
|
if (typeof U != "object" || U.push)
|
|
1954
1954
|
for (typeof U == "string" && (U = U.split(",")), P = U.length; --P > -1; )
|
|
1955
1955
|
Y[U[P]] = Math.round;
|
|
1956
1956
|
else
|
|
1957
1957
|
for (O in U)
|
|
1958
|
-
Y[O] =
|
|
1958
|
+
Y[O] = J(U[O]);
|
|
1959
1959
|
for (O in Y)
|
|
1960
1960
|
for (G = E._firstPT; G; )
|
|
1961
1961
|
m = G._next, G.pg ? G.t._mod(Y) : G.n === O && (G.f === 2 && G.t ? p(G.t._firstPT, Y[O]) : (this._add(G.t, O, G.s, G.c, Y[O]), m && (m._prev = G._prev), G._prev ? G._prev._next = m : E._firstPT === G && (E._firstPT = m), G._next = G._prev = null, E._propLookup[O] = H)), G = m;
|
|
1962
1962
|
return !1;
|
|
1963
|
-
},
|
|
1963
|
+
}, $._add = function(G, m, P, O, E) {
|
|
1964
1964
|
this._addTween(G, m, P, P + O, m, E || Math.round), this._overwriteProps.push(m);
|
|
1965
1965
|
};
|
|
1966
1966
|
}(), function() {
|
|
@@ -1968,12 +1968,12 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1968
1968
|
propName: "attr",
|
|
1969
1969
|
API: 2,
|
|
1970
1970
|
version: "0.6.1",
|
|
1971
|
-
init: function(T,
|
|
1971
|
+
init: function(T, J, p, $) {
|
|
1972
1972
|
var G, m;
|
|
1973
1973
|
if (typeof T.setAttribute != "function")
|
|
1974
1974
|
return !1;
|
|
1975
|
-
for (G in
|
|
1976
|
-
m =
|
|
1975
|
+
for (G in J)
|
|
1976
|
+
m = J[G], typeof m == "function" && (m = m($, T)), this._addTween(
|
|
1977
1977
|
T,
|
|
1978
1978
|
"setAttribute",
|
|
1979
1979
|
T.getAttribute(G) + "",
|
|
@@ -1989,28 +1989,28 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
1989
1989
|
propName: "directionalRotation",
|
|
1990
1990
|
version: "0.3.1",
|
|
1991
1991
|
API: 2,
|
|
1992
|
-
init: function(T,
|
|
1993
|
-
typeof
|
|
1994
|
-
var G, m, P, O, E, U, Y =
|
|
1995
|
-
for (G in
|
|
1996
|
-
G !== "useRadians" && (O =
|
|
1992
|
+
init: function(T, J, p, $) {
|
|
1993
|
+
typeof J != "object" && (J = { rotation: J }), this.finals = {};
|
|
1994
|
+
var G, m, P, O, E, U, Y = J.useRadians === !0 ? 2 * Math.PI : 360, H = 1e-6;
|
|
1995
|
+
for (G in J)
|
|
1996
|
+
G !== "useRadians" && (O = J[G], typeof O == "function" && (O = O($, T)), U = (O + "").split("_"), m = U[0], P = parseFloat(
|
|
1997
1997
|
typeof T[G] != "function" ? T[G] : T[G.indexOf("set") || typeof T["get" + G.substr(3)] != "function" ? G : "get" + G.substr(3)]()
|
|
1998
1998
|
), O = this.finals[G] = typeof m == "string" && m.charAt(1) === "=" ? P + parseInt(m.charAt(0) + "1", 10) * Number(m.substr(2)) : Number(m) || 0, E = O - P, U.length && (m = U.join("_"), m.indexOf("short") !== -1 && (E %= Y, E !== E % (Y / 2) && (E = 0 > E ? E + Y : E - Y)), m.indexOf("_cw") !== -1 && 0 > E ? E = (E + 9999999999 * Y) % Y - (E / Y | 0) * Y : m.indexOf("ccw") !== -1 && E > 0 && (E = (E - 9999999999 * Y) % Y - (E / Y | 0) * Y)), (E > H || -H > E) && (this._addTween(T, G, P, P + E, G), this._overwriteProps.push(G)));
|
|
1999
1999
|
return !0;
|
|
2000
2000
|
},
|
|
2001
2001
|
set: function(T) {
|
|
2002
|
-
var
|
|
2002
|
+
var J;
|
|
2003
2003
|
if (T !== 1)
|
|
2004
2004
|
this._super.setRatio.call(this, T);
|
|
2005
2005
|
else
|
|
2006
|
-
for (
|
|
2007
|
-
|
|
2006
|
+
for (J = this._firstPT; J; )
|
|
2007
|
+
J.f ? J.t[J.p](this.finals[J.p]) : J.t[J.p] = this.finals[J.p], J = J._next;
|
|
2008
2008
|
}
|
|
2009
2009
|
})._autoCSS = !0, sn._gsDefine(
|
|
2010
2010
|
"easing.Back",
|
|
2011
2011
|
["easing.Ease"],
|
|
2012
2012
|
function(T) {
|
|
2013
|
-
var
|
|
2013
|
+
var J, p, $, G, m = sn.GreenSockGlobals || sn, P = m.com.greensock, O = 2 * Math.PI, E = Math.PI / 2, U = P._class, Y = function(g, M) {
|
|
2014
2014
|
var x = U("easing." + g, function() {
|
|
2015
2015
|
}, !0), F = x.prototype = new T();
|
|
2016
2016
|
return F.constructor = x, F.getRatio = M, x;
|
|
@@ -2058,16 +2058,16 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2058
2058
|
return g < this._p1 ? this._calcEnd ? 1 - (g = 1 - g / this._p1) * g : M - (g = 1 - g / this._p1) * g * g * g * M : g > this._p3 ? this._calcEnd ? g === 1 ? 0 : 1 - (g = (g - this._p3) / this._p1) * g : M + (g - M) * (g = (g - this._p3) / this._p1) * g * g * g : this._calcEnd ? 1 : M;
|
|
2059
2059
|
}, A.ease = new A(0.7, 0.7), d.config = A.config = function(g, M, x) {
|
|
2060
2060
|
return new A(g, M, x);
|
|
2061
|
-
},
|
|
2061
|
+
}, J = U(
|
|
2062
2062
|
"easing.SteppedEase",
|
|
2063
2063
|
function(g, M) {
|
|
2064
2064
|
g = g || 1, this._p1 = 1 / g, this._p2 = g + (M ? 0 : 1), this._p3 = M ? 1 : 0;
|
|
2065
2065
|
},
|
|
2066
2066
|
!0
|
|
2067
|
-
), d =
|
|
2067
|
+
), d = J.prototype = new T(), d.constructor = J, d.getRatio = function(g) {
|
|
2068
2068
|
return 0 > g ? g = 0 : g >= 1 && (g = 0.999999999), ((this._p2 * g | 0) + this._p3) * this._p1;
|
|
2069
|
-
}, d.config =
|
|
2070
|
-
return new
|
|
2069
|
+
}, d.config = J.config = function(g, M) {
|
|
2070
|
+
return new J(g, M);
|
|
2071
2071
|
}, p = U(
|
|
2072
2072
|
"easing.ExpoScaleEase",
|
|
2073
2073
|
function(g, M, x) {
|
|
@@ -2078,7 +2078,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2078
2078
|
return this._ease && (g = this._ease.getRatio(g)), (this._p3 * Math.exp(this._p1 * g) - this._p3) / this._p2;
|
|
2079
2079
|
}, d.config = p.config = function(g, M, x) {
|
|
2080
2080
|
return new p(g, M, x);
|
|
2081
|
-
},
|
|
2081
|
+
}, $ = U(
|
|
2082
2082
|
"easing.RoughEase",
|
|
2083
2083
|
function(g) {
|
|
2084
2084
|
g = g || {};
|
|
@@ -2091,7 +2091,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2091
2091
|
this._prev = new B(0, 0, ht.t !== 0 ? ht : ht.next);
|
|
2092
2092
|
},
|
|
2093
2093
|
!0
|
|
2094
|
-
), d =
|
|
2094
|
+
), d = $.prototype = new T(), d.constructor = $, d.getRatio = function(g) {
|
|
2095
2095
|
var M = this._prev;
|
|
2096
2096
|
if (g > M.t) {
|
|
2097
2097
|
for (; M.next && g >= M.t; )
|
|
@@ -2102,8 +2102,8 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2102
2102
|
M = M.prev;
|
|
2103
2103
|
return this._prev = M, M.v + (g - M.t) / M.gap * M.c;
|
|
2104
2104
|
}, d.config = function(g) {
|
|
2105
|
-
return new
|
|
2106
|
-
},
|
|
2105
|
+
return new $(g);
|
|
2106
|
+
}, $.ease = new $(), K(
|
|
2107
2107
|
"Bounce",
|
|
2108
2108
|
Y("BounceOut", function(g) {
|
|
2109
2109
|
return 1 / 2.75 > g ? 7.5625 * g * g : 2 / 2.75 > g ? 7.5625 * (g -= 1.5 / 2.75) * g + 0.75 : 2.5 / 2.75 > g ? 7.5625 * (g -= 2.25 / 2.75) * g + 0.9375 : 7.5625 * (g -= 2.625 / 2.75) * g + 0.984375;
|
|
@@ -2190,12 +2190,12 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2190
2190
|
}
|
|
2191
2191
|
},
|
|
2192
2192
|
!0
|
|
2193
|
-
), H(m.SlowMo, "SlowMo", "ease,"), H(
|
|
2193
|
+
), H(m.SlowMo, "SlowMo", "ease,"), H($, "RoughEase", "ease,"), H(J, "SteppedEase", "ease,"), b;
|
|
2194
2194
|
},
|
|
2195
2195
|
!0
|
|
2196
2196
|
);
|
|
2197
|
-
}), sn._gsDefine && sn._gsQueue.pop()(), function(T,
|
|
2198
|
-
var p = {},
|
|
2197
|
+
}), sn._gsDefine && sn._gsQueue.pop()(), function(T, J) {
|
|
2198
|
+
var p = {}, $ = T.document, G = T.GreenSockGlobals = T.GreenSockGlobals || T, m = G[J];
|
|
2199
2199
|
if (m)
|
|
2200
2200
|
return typeof module < "u" && module.exports && (module.exports = m), m;
|
|
2201
2201
|
var P, O, E, U, Y, H = function(w) {
|
|
@@ -2223,12 +2223,12 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2223
2223
|
if (we === 0 && nt) {
|
|
2224
2224
|
if (Vt = ("com.greensock." + w).split("."), Ne = Vt.pop(), Re = H(Vt.join("."))[Ne] = this.gsClass = nt.apply(nt, vt), tt)
|
|
2225
2225
|
if (G[Ne] = p[Ne] = Re, typeof module < "u" && module.exports)
|
|
2226
|
-
if (w ===
|
|
2227
|
-
module.exports = p[
|
|
2226
|
+
if (w === J) {
|
|
2227
|
+
module.exports = p[J] = Re;
|
|
2228
2228
|
for (de in p)
|
|
2229
2229
|
Re[de] = p[de];
|
|
2230
2230
|
} else
|
|
2231
|
-
p[
|
|
2231
|
+
p[J] && (p[J][Ne] = Re);
|
|
2232
2232
|
else
|
|
2233
2233
|
typeof define == "function" && define.amd && define(
|
|
2234
2234
|
(T.GreenSockAMDPath ? T.GreenSockAMDPath + "/" : "") + w.split(".").pop(),
|
|
@@ -2321,7 +2321,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2321
2321
|
}, Vt.useRAF = function(ni) {
|
|
2322
2322
|
return arguments.length ? (Vt.sleep(), Re = ni, void Vt.fps(nt)) : Re;
|
|
2323
2323
|
}, Vt.fps(w), setTimeout(function() {
|
|
2324
|
-
Re === "auto" && Vt.frame < 5 && (
|
|
2324
|
+
Re === "auto" && Vt.frame < 5 && ($ || {}).visibilityState !== "hidden" && Vt.useRAF(!1);
|
|
2325
2325
|
}, 1500);
|
|
2326
2326
|
}), E = K.Ticker.prototype = new K.events.EventDispatcher(), E.constructor = K.Ticker;
|
|
2327
2327
|
var D = x("core.Animation", function(w, X) {
|
|
@@ -2333,7 +2333,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2333
2333
|
});
|
|
2334
2334
|
U = D.ticker = new K.Ticker(), E = D.prototype, E._dirty = E._gc = E._initted = E._paused = !1, E._totalTime = E._time = 0, E._rawPrevTime = -1, E._next = E._last = E._onUpdate = E._timeline = E.timeline = null, E._paused = !1;
|
|
2335
2335
|
var zt = function() {
|
|
2336
|
-
Y && lt() - Et > 2e3 && ((
|
|
2336
|
+
Y && lt() - Et > 2e3 && (($ || {}).visibilityState !== "hidden" || !U.lagSmoothing()) && U.wake();
|
|
2337
2337
|
var w = setTimeout(zt, 2e3);
|
|
2338
2338
|
w.unref && w.unref();
|
|
2339
2339
|
};
|
|
@@ -2488,7 +2488,7 @@ var sn = typeof module < "u" && module.exports && typeof global < "u" ? global :
|
|
|
2488
2488
|
U.lagSmoothing(w, X);
|
|
2489
2489
|
}, Rt.selector = T.$ || T.jQuery || function(w) {
|
|
2490
2490
|
var X = T.$ || T.jQuery;
|
|
2491
|
-
return X ? (Rt.selector = X, X(w)) : (
|
|
2491
|
+
return X ? (Rt.selector = X, X(w)) : ($ || ($ = T.document), $ ? $.querySelectorAll ? $.querySelectorAll(w) : $.getElementById(w.charAt(0) === "#" ? w.substr(1) : w) : w);
|
|
2492
2492
|
};
|
|
2493
2493
|
var Ft = [], Dt = {}, kt = /(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi, Fe = /[\+-]=-?[\.\d]/, xe = function(w) {
|
|
2494
2494
|
for (var X, nt = this._firstPT, tt = 1e-6; nt; )
|
|
@@ -2916,15 +2916,15 @@ const Gm = { class: "modal-background" }, Hm = ["innerHTML"], Wm = {
|
|
|
2916
2916
|
// default: "CHBIM云平台",
|
|
2917
2917
|
// },
|
|
2918
2918
|
},
|
|
2919
|
-
setup(T, { expose:
|
|
2920
|
-
const p = Uh(""),
|
|
2921
|
-
|
|
2919
|
+
setup(T, { expose: J }) {
|
|
2920
|
+
const p = Uh(""), $ = Uh(""), G = (P) => {
|
|
2921
|
+
$.value = P, p.value = "five";
|
|
2922
2922
|
}, m = () => {
|
|
2923
2923
|
p.value = p.value + " out";
|
|
2924
2924
|
};
|
|
2925
2925
|
return Hh(() => {
|
|
2926
|
-
}),
|
|
2927
|
-
text:
|
|
2926
|
+
}), J({
|
|
2927
|
+
text: $,
|
|
2928
2928
|
show: G,
|
|
2929
2929
|
hide: m
|
|
2930
2930
|
}), (P, O) => (sh(), ah("div", {
|
|
@@ -2941,7 +2941,7 @@ const Gm = { class: "modal-background" }, Hm = ["innerHTML"], Wm = {
|
|
|
2941
2941
|
}, [
|
|
2942
2942
|
lr("p", {
|
|
2943
2943
|
style: { "white-space": "pre-line", "line-height": "1", margin: "0", color: "#fff" },
|
|
2944
|
-
innerHTML:
|
|
2944
|
+
innerHTML: $.value
|
|
2945
2945
|
}, null, 8, Hm)
|
|
2946
2946
|
])
|
|
2947
2947
|
])
|
|
@@ -2953,7 +2953,7 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
2953
2953
|
}, $m = /* @__PURE__ */ Gh({
|
|
2954
2954
|
...Jm,
|
|
2955
2955
|
setup(T) {
|
|
2956
|
-
const
|
|
2956
|
+
const J = () => {
|
|
2957
2957
|
let G = `
|
|
2958
2958
|
vec3 mod289(vec3 x)
|
|
2959
2959
|
{
|
|
@@ -3289,11 +3289,11 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
3289
3289
|
},
|
|
3290
3290
|
0.1
|
|
3291
3291
|
);
|
|
3292
|
-
},
|
|
3293
|
-
|
|
3292
|
+
}, $ = () => {
|
|
3293
|
+
J(), p();
|
|
3294
3294
|
};
|
|
3295
3295
|
return Hh(() => {
|
|
3296
|
-
|
|
3296
|
+
$();
|
|
3297
3297
|
}), (G, m) => (sh(), ah("div", Vm, [
|
|
3298
3298
|
lr("div", Xm, [
|
|
3299
3299
|
qm,
|
|
@@ -3305,15 +3305,15 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
3305
3305
|
]));
|
|
3306
3306
|
}
|
|
3307
3307
|
});
|
|
3308
|
-
(function(T,
|
|
3309
|
-
typeof exports == "object" && typeof module < "u" ?
|
|
3308
|
+
(function(T, J) {
|
|
3309
|
+
typeof exports == "object" && typeof module < "u" ? J(exports) : typeof define == "function" && define.amd ? define(["exports"], J) : J(T.THREE = {});
|
|
3310
3310
|
})(window, function(T) {
|
|
3311
|
-
function
|
|
3311
|
+
function J() {
|
|
3312
3312
|
}
|
|
3313
3313
|
function p(t, e) {
|
|
3314
3314
|
this.x = t || 0, this.y = e || 0;
|
|
3315
3315
|
}
|
|
3316
|
-
function
|
|
3316
|
+
function $() {
|
|
3317
3317
|
this.elements = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], 0 < arguments.length && console.error(
|
|
3318
3318
|
"THREE.Matrix4: the constructor no longer reads arguments. use .set() instead."
|
|
3319
3319
|
);
|
|
@@ -3458,9 +3458,9 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
3458
3458
|
rotation: { configurable: !0, enumerable: !0, value: e },
|
|
3459
3459
|
quaternion: { configurable: !0, enumerable: !0, value: i },
|
|
3460
3460
|
scale: { configurable: !0, enumerable: !0, value: n },
|
|
3461
|
-
modelViewMatrix: { value: new
|
|
3461
|
+
modelViewMatrix: { value: new $() },
|
|
3462
3462
|
normalMatrix: { value: new P() }
|
|
3463
|
-
}), this.matrix = new
|
|
3463
|
+
}), this.matrix = new $(), this.matrixWorld = new $(), this.matrixAutoUpdate = z.DefaultMatrixAutoUpdate, this.matrixWorldNeedsUpdate = !1, this.layers = new F(), this.visible = !0, this.receiveShadow = this.castShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.userData = {};
|
|
3464
3464
|
}
|
|
3465
3465
|
function V() {
|
|
3466
3466
|
Object.defineProperty(this, "id", { value: ch += 2 }), this.uuid = fi.generateUUID(), this.name = "", this.type = "Geometry", this.vertices = [], this.colors = [], this.faces = [], this.faceVertexUvs = [[]], this.morphTargets = [], this.morphNormals = [], this.skinWeights = [], this.skinIndices = [], this.lineDistances = [], this.boundingSphere = this.boundingBox = null, this.groupsNeedUpdate = this.lineDistancesNeedUpdate = this.colorsNeedUpdate = this.normalsNeedUpdate = this.uvsNeedUpdate = this.verticesNeedUpdate = this.elementsNeedUpdate = !1;
|
|
@@ -4792,7 +4792,7 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
4792
4792
|
pointShadowMap: [],
|
|
4793
4793
|
pointShadowMatrix: [],
|
|
4794
4794
|
hemi: []
|
|
4795
|
-
}, i = new m(), n = new
|
|
4795
|
+
}, i = new m(), n = new $(), o = new $();
|
|
4796
4796
|
return {
|
|
4797
4797
|
setup: function(s, l, h) {
|
|
4798
4798
|
var c = 0, f = 0, v = 0, y = 0, S = 0, C = 0, N = 0, j = 0;
|
|
@@ -4880,7 +4880,7 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
4880
4880
|
o(W[$t], it, It, ee);
|
|
4881
4881
|
}
|
|
4882
4882
|
}
|
|
4883
|
-
var s = new b(), l = new
|
|
4883
|
+
var s = new b(), l = new $(), h = new p(), c = new p(i, i), f = new m(), v = new m(), y = Array(4), S = Array(4), C = {}, N = { 0: 1, 1: 0, 2: 2 }, j = [
|
|
4884
4884
|
new m(1, 0, 0),
|
|
4885
4885
|
new m(-1, 0, 0),
|
|
4886
4886
|
new m(0, 0, 1),
|
|
@@ -5653,7 +5653,7 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
5653
5653
|
z.call(this), this.type = "Group";
|
|
5654
5654
|
}
|
|
5655
5655
|
function Be() {
|
|
5656
|
-
z.call(this), this.type = "Camera", this.matrixWorldInverse = new
|
|
5656
|
+
z.call(this), this.type = "Camera", this.matrixWorldInverse = new $(), this.projectionMatrix = new $(), this.projectionMatrixInverse = new $();
|
|
5657
5657
|
}
|
|
5658
5658
|
function ye(t, e, i, n) {
|
|
5659
5659
|
Be.call(this), this.type = "PerspectiveCamera", this.fov = t !== void 0 ? t : 50, this.zoom = 1, this.near = i !== void 0 ? i : 0.1, this.far = n !== void 0 ? n : 2e3, this.focus = 10, this.aspect = e !== void 0 ? e : 1, this.view = null, this.filmGauge = 35, this.filmOffset = 0, this.updateProjectionMatrix();
|
|
@@ -5686,9 +5686,9 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
5686
5686
|
} else
|
|
5687
5687
|
n.enabled && t.setDrawingBufferSize(mt.width, mt.height, bt), Wt.stop();
|
|
5688
5688
|
}
|
|
5689
|
-
var n = this, o = null, s = null, l = null, h = [], c = new
|
|
5689
|
+
var n = this, o = null, s = null, l = null, h = [], c = new $(), f = new $(), v = 1, y = "stage";
|
|
5690
5690
|
typeof window < "u" && "VRFrameData" in window && (s = new window.VRFrameData(), window.addEventListener("vrdisplaypresentchange", i, !1));
|
|
5691
|
-
var S = new
|
|
5691
|
+
var S = new $(), C = new G(), N = new m(), j = new ye();
|
|
5692
5692
|
j.bounds = new E(0, 0, 0.5, 1), j.layers.enable(1);
|
|
5693
5693
|
var et = new ye();
|
|
5694
5694
|
et.bounds = new E(0.5, 0, 0.5, 1), et.layers.enable(2);
|
|
@@ -5997,7 +5997,7 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
5997
5997
|
console.log("THREE.WebGLRenderer", "98"), t = t || {};
|
|
5998
5998
|
var et = t.canvas !== void 0 ? t.canvas : document.createElementNS("http://www.w3.org/1999/xhtml", "canvas"), _t = t.context !== void 0 ? t.context : null, mt = t.alpha !== void 0 ? t.alpha : !1, bt = t.depth !== void 0 ? t.depth : !0, xt = t.stencil !== void 0 ? t.stencil : !0, Wt = t.antialias !== void 0 ? t.antialias : !1, W = t.premultipliedAlpha !== void 0 ? t.premultipliedAlpha : !0, it = t.preserveDrawingBuffer !== void 0 ? t.preserveDrawingBuffer : !1, It = t.powerPreference !== void 0 ? t.powerPreference : "default", ee = null, $t = null;
|
|
5999
5999
|
this.domElement = et, this.context = null, this.sortObjects = this.autoClearStencil = this.autoClearDepth = this.autoClearColor = this.autoClear = !0, this.clippingPlanes = [], this.localClippingEnabled = !1, this.gammaFactor = 2, this.physicallyCorrectLights = this.gammaOutput = this.gammaInput = !1, this.toneMappingWhitePoint = this.toneMappingExposure = this.toneMapping = 1, this.maxMorphTargets = 8, this.maxMorphNormals = 4;
|
|
6000
|
-
var qt = this, Te = !1, pe = null, Oe = null, be = null, se = -1, je = e = null, Ke = !1, ci = null, yn = null, cn = new E(), ji = new E(), Fi = null, Qi = 0, _n = et.width, Ae = et.height, Qe = 1, Ut = new E(0, 0, _n, Ae), Ye = new E(0, 0, _n, Ae), ei = !1, Gi = new b(), Pe = new R(), Xe = !1, ri = !1, Ai = new
|
|
6000
|
+
var qt = this, Te = !1, pe = null, Oe = null, be = null, se = -1, je = e = null, Ke = !1, ci = null, yn = null, cn = new E(), ji = new E(), Fi = null, Qi = 0, _n = et.width, Ae = et.height, Qe = 1, Ut = new E(0, 0, _n, Ae), Ye = new E(0, 0, _n, Ae), ei = !1, Gi = new b(), Pe = new R(), Xe = !1, ri = !1, Ai = new $(), bi = new m();
|
|
6001
6001
|
try {
|
|
6002
6002
|
mt = {
|
|
6003
6003
|
alpha: mt,
|
|
@@ -6323,13 +6323,13 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
6323
6323
|
this.boneInverses = e.slice(0);
|
|
6324
6324
|
else
|
|
6325
6325
|
for (console.warn("THREE.Skeleton boneInverses is the wrong length."), this.boneInverses = [], t = 0, e = this.bones.length; t < e; t++)
|
|
6326
|
-
this.boneInverses.push(new
|
|
6326
|
+
this.boneInverses.push(new $());
|
|
6327
6327
|
}
|
|
6328
6328
|
function rn() {
|
|
6329
6329
|
z.call(this), this.type = "Bone";
|
|
6330
6330
|
}
|
|
6331
6331
|
function ki(t, e) {
|
|
6332
|
-
pi.call(this, t, e), this.type = "SkinnedMesh", this.bindMode = "attached", this.bindMatrix = new
|
|
6332
|
+
pi.call(this, t, e), this.type = "SkinnedMesh", this.bindMode = "attached", this.bindMatrix = new $(), this.bindMatrixInverse = new $(), t = this.initBones(), t = new nn(t), this.bind(t, this.matrixWorld), this.normalizeSkinWeights();
|
|
6333
6333
|
}
|
|
6334
6334
|
function Di(t) {
|
|
6335
6335
|
Zt.call(this), this.type = "LineBasicMaterial", this.color = new A(16777215), this.linewidth = 1, this.linejoin = this.linecap = "round", this.lights = !1, this.setValues(t);
|
|
@@ -7733,7 +7733,7 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
7733
7733
|
Ji.call(this, t, i), this.type = "HemisphereLight", this.castShadow = void 0, this.position.copy(z.DefaultUp), this.updateMatrix(), this.groundColor = new A(e);
|
|
7734
7734
|
}
|
|
7735
7735
|
function Hr(t) {
|
|
7736
|
-
this.camera = t, this.bias = 0, this.radius = 1, this.mapSize = new p(512, 512), this.map = null, this.matrix = new
|
|
7736
|
+
this.camera = t, this.bias = 0, this.radius = 1, this.mapSize = new p(512, 512), this.map = null, this.matrix = new $();
|
|
7737
7737
|
}
|
|
7738
7738
|
function ia() {
|
|
7739
7739
|
Hr.call(this, new ye(50, 1, 0.5, 500));
|
|
@@ -8261,7 +8261,7 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
8261
8261
|
}
|
|
8262
8262
|
return e;
|
|
8263
8263
|
};
|
|
8264
|
-
}(), Object.assign(
|
|
8264
|
+
}(), Object.assign(J.prototype, {
|
|
8265
8265
|
addEventListener: function(t, e) {
|
|
8266
8266
|
this._listeners === void 0 && (this._listeners = {});
|
|
8267
8267
|
var i = this._listeners;
|
|
@@ -8539,7 +8539,7 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
8539
8539
|
var n = this.x - t.x, o = this.y - t.y;
|
|
8540
8540
|
return this.x = n * i - o * e + t.x, this.y = n * e + o * i + t.y, this;
|
|
8541
8541
|
}
|
|
8542
|
-
}), Object.assign(
|
|
8542
|
+
}), Object.assign($.prototype, {
|
|
8543
8543
|
isMatrix4: !0,
|
|
8544
8544
|
set: function(t, e, i, n, o, s, l, h, c, f, v, y, S, C, N, j) {
|
|
8545
8545
|
var et = this.elements;
|
|
@@ -8549,7 +8549,7 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
8549
8549
|
return this.set(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1), this;
|
|
8550
8550
|
},
|
|
8551
8551
|
clone: function() {
|
|
8552
|
-
return new
|
|
8552
|
+
return new $().fromArray(this.elements);
|
|
8553
8553
|
},
|
|
8554
8554
|
copy: function(t) {
|
|
8555
8555
|
var e = this.elements;
|
|
@@ -8747,7 +8747,7 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
8747
8747
|
return i = i.z, n[0] = (1 - (S + l)) * v, n[1] = (y + h) * v, n[2] = (o - f) * v, n[3] = 0, n[4] = (y - h) * C, n[5] = (1 - (e + l)) * C, n[6] = (s + c) * C, n[7] = 0, n[8] = (o + f) * i, n[9] = (s - c) * i, n[10] = (1 - (e + S)) * i, n[11] = 0, n[12] = t.x, n[13] = t.y, n[14] = t.z, n[15] = 1, this;
|
|
8748
8748
|
},
|
|
8749
8749
|
decompose: function() {
|
|
8750
|
-
var t = new m(), e = new
|
|
8750
|
+
var t = new m(), e = new $();
|
|
8751
8751
|
return function(i, n, o) {
|
|
8752
8752
|
var s = this.elements, l = t.set(s[0], s[1], s[2]).length(), h = t.set(s[4], s[5], s[6]).length(), c = t.set(s[8], s[9], s[10]).length();
|
|
8753
8753
|
0 > this.determinant() && (l = -l), i.x = s[12], i.y = s[13], i.z = s[14], e.copy(this), i = 1 / l, s = 1 / h;
|
|
@@ -9066,7 +9066,7 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
9066
9066
|
);
|
|
9067
9067
|
},
|
|
9068
9068
|
unproject: function() {
|
|
9069
|
-
var t = new
|
|
9069
|
+
var t = new $();
|
|
9070
9070
|
return function(e) {
|
|
9071
9071
|
return this.applyMatrix4(t.getInverse(e.projectionMatrix)).applyMatrix4(
|
|
9072
9072
|
e.matrixWorld
|
|
@@ -9365,7 +9365,7 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
9365
9365
|
return 2048 < e.width || 2048 < e.height ? e.toDataURL("image/jpeg", 0.6) : e.toDataURL("image/png");
|
|
9366
9366
|
}
|
|
9367
9367
|
}, Qo = 0;
|
|
9368
|
-
O.DEFAULT_IMAGE = void 0, O.DEFAULT_MAPPING = 300, O.prototype = Object.assign(Object.create(
|
|
9368
|
+
O.DEFAULT_IMAGE = void 0, O.DEFAULT_MAPPING = 300, O.prototype = Object.assign(Object.create(J.prototype), {
|
|
9369
9369
|
constructor: O,
|
|
9370
9370
|
isTexture: !0,
|
|
9371
9371
|
updateMatrix: function() {
|
|
@@ -9637,7 +9637,7 @@ const Vm = { class: "bim_background_plate" }, Xm = { class: "content" }, qm = /*
|
|
|
9637
9637
|
"THREE.Vector4: offset has been removed from .fromBufferAttribute()."
|
|
9638
9638
|
), this.x = t.getX(e), this.y = t.getY(e), this.z = t.getZ(e), this.w = t.getW(e), this;
|
|
9639
9639
|
}
|
|
9640
|
-
}), U.prototype = Object.assign(Object.create(
|
|
9640
|
+
}), U.prototype = Object.assign(Object.create(J.prototype), {
|
|
9641
9641
|
constructor: U,
|
|
9642
9642
|
isWebGLRenderTarget: !0,
|
|
9643
9643
|
setSize: function(t, e) {
|
|
@@ -13145,7 +13145,7 @@ void main() {
|
|
|
13145
13145
|
), this._order = e, i !== !1 && this.onChangeCallback(), this;
|
|
13146
13146
|
},
|
|
13147
13147
|
setFromQuaternion: function() {
|
|
13148
|
-
var t = new
|
|
13148
|
+
var t = new $();
|
|
13149
13149
|
return function(e, i, n) {
|
|
13150
13150
|
return t.makeRotationFromQuaternion(e), this.setFromRotationMatrix(t, i, n);
|
|
13151
13151
|
};
|
|
@@ -13194,7 +13194,7 @@ void main() {
|
|
|
13194
13194
|
}
|
|
13195
13195
|
});
|
|
13196
13196
|
var uh = 0;
|
|
13197
|
-
z.DefaultUp = new m(0, 1, 0), z.DefaultMatrixAutoUpdate = !0, z.prototype = Object.assign(Object.create(
|
|
13197
|
+
z.DefaultUp = new m(0, 1, 0), z.DefaultMatrixAutoUpdate = !0, z.prototype = Object.assign(Object.create(J.prototype), {
|
|
13198
13198
|
constructor: z,
|
|
13199
13199
|
isObject3D: !0,
|
|
13200
13200
|
onBeforeRender: function() {
|
|
@@ -13277,13 +13277,13 @@ void main() {
|
|
|
13277
13277
|
return t.applyMatrix4(this.matrixWorld);
|
|
13278
13278
|
},
|
|
13279
13279
|
worldToLocal: function() {
|
|
13280
|
-
var t = new
|
|
13280
|
+
var t = new $();
|
|
13281
13281
|
return function(e) {
|
|
13282
13282
|
return e.applyMatrix4(t.getInverse(this.matrixWorld));
|
|
13283
13283
|
};
|
|
13284
13284
|
}(),
|
|
13285
13285
|
lookAt: function() {
|
|
13286
|
-
var t = new G(), e = new
|
|
13286
|
+
var t = new G(), e = new $(), i = new m(), n = new m();
|
|
13287
13287
|
return function(o, s, l) {
|
|
13288
13288
|
o.isVector3 ? i.copy(o) : i.set(o, s, l), o = this.parent, this.updateWorldMatrix(!0, !1), n.setFromMatrixPosition(this.matrixWorld), this.isCamera ? e.lookAt(n, i, this.up) : e.lookAt(i, n, this.up), this.quaternion.setFromRotationMatrix(e), o && (e.extractRotation(o.matrixWorld), t.setFromRotationMatrix(e), this.quaternion.premultiply(t.inverse()));
|
|
13289
13289
|
};
|
|
@@ -13454,7 +13454,7 @@ void main() {
|
|
|
13454
13454
|
}
|
|
13455
13455
|
});
|
|
13456
13456
|
var ch = 0;
|
|
13457
|
-
V.prototype = Object.assign(Object.create(
|
|
13457
|
+
V.prototype = Object.assign(Object.create(J.prototype), {
|
|
13458
13458
|
constructor: V,
|
|
13459
13459
|
isGeometry: !0,
|
|
13460
13460
|
applyMatrix: function(t) {
|
|
@@ -13468,31 +13468,31 @@ void main() {
|
|
|
13468
13468
|
return this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this.normalsNeedUpdate = this.verticesNeedUpdate = !0, this;
|
|
13469
13469
|
},
|
|
13470
13470
|
rotateX: function() {
|
|
13471
|
-
var t = new
|
|
13471
|
+
var t = new $();
|
|
13472
13472
|
return function(e) {
|
|
13473
13473
|
return t.makeRotationX(e), this.applyMatrix(t), this;
|
|
13474
13474
|
};
|
|
13475
13475
|
}(),
|
|
13476
13476
|
rotateY: function() {
|
|
13477
|
-
var t = new
|
|
13477
|
+
var t = new $();
|
|
13478
13478
|
return function(e) {
|
|
13479
13479
|
return t.makeRotationY(e), this.applyMatrix(t), this;
|
|
13480
13480
|
};
|
|
13481
13481
|
}(),
|
|
13482
13482
|
rotateZ: function() {
|
|
13483
|
-
var t = new
|
|
13483
|
+
var t = new $();
|
|
13484
13484
|
return function(e) {
|
|
13485
13485
|
return t.makeRotationZ(e), this.applyMatrix(t), this;
|
|
13486
13486
|
};
|
|
13487
13487
|
}(),
|
|
13488
13488
|
translate: function() {
|
|
13489
|
-
var t = new
|
|
13489
|
+
var t = new $();
|
|
13490
13490
|
return function(e, i, n) {
|
|
13491
13491
|
return t.makeTranslation(e, i, n), this.applyMatrix(t), this;
|
|
13492
13492
|
};
|
|
13493
13493
|
}(),
|
|
13494
13494
|
scale: function() {
|
|
13495
|
-
var t = new
|
|
13495
|
+
var t = new $();
|
|
13496
13496
|
return function(e, i, n) {
|
|
13497
13497
|
return t.makeScale(e, i, n), this.applyMatrix(t), this;
|
|
13498
13498
|
};
|
|
@@ -13550,7 +13550,7 @@ void main() {
|
|
|
13550
13550
|
this.computeBoundingSphere();
|
|
13551
13551
|
var t = this.boundingSphere.center, e = this.boundingSphere.radius;
|
|
13552
13552
|
e = e === 0 ? 1 : 1 / e;
|
|
13553
|
-
var i = new
|
|
13553
|
+
var i = new $();
|
|
13554
13554
|
return i.set(
|
|
13555
13555
|
e,
|
|
13556
13556
|
0,
|
|
@@ -13969,7 +13969,7 @@ void main() {
|
|
|
13969
13969
|
}
|
|
13970
13970
|
});
|
|
13971
13971
|
var fh = 1;
|
|
13972
|
-
Ft.prototype = Object.assign(Object.create(
|
|
13972
|
+
Ft.prototype = Object.assign(Object.create(J.prototype), {
|
|
13973
13973
|
constructor: Ft,
|
|
13974
13974
|
isBufferGeometry: !0,
|
|
13975
13975
|
getIndex: function() {
|
|
@@ -14009,31 +14009,31 @@ void main() {
|
|
|
14009
14009
|
return e !== void 0 && (t.applyToBufferAttribute(e), e.needsUpdate = !0), e = this.attributes.normal, e !== void 0 && (new P().getNormalMatrix(t).applyToBufferAttribute(e), e.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this;
|
|
14010
14010
|
},
|
|
14011
14011
|
rotateX: function() {
|
|
14012
|
-
var t = new
|
|
14012
|
+
var t = new $();
|
|
14013
14013
|
return function(e) {
|
|
14014
14014
|
return t.makeRotationX(e), this.applyMatrix(t), this;
|
|
14015
14015
|
};
|
|
14016
14016
|
}(),
|
|
14017
14017
|
rotateY: function() {
|
|
14018
|
-
var t = new
|
|
14018
|
+
var t = new $();
|
|
14019
14019
|
return function(e) {
|
|
14020
14020
|
return t.makeRotationY(e), this.applyMatrix(t), this;
|
|
14021
14021
|
};
|
|
14022
14022
|
}(),
|
|
14023
14023
|
rotateZ: function() {
|
|
14024
|
-
var t = new
|
|
14024
|
+
var t = new $();
|
|
14025
14025
|
return function(e) {
|
|
14026
14026
|
return t.makeRotationZ(e), this.applyMatrix(t), this;
|
|
14027
14027
|
};
|
|
14028
14028
|
}(),
|
|
14029
14029
|
translate: function() {
|
|
14030
|
-
var t = new
|
|
14030
|
+
var t = new $();
|
|
14031
14031
|
return function(e, i, n) {
|
|
14032
14032
|
return t.makeTranslation(e, i, n), this.applyMatrix(t), this;
|
|
14033
14033
|
};
|
|
14034
14034
|
}(),
|
|
14035
14035
|
scale: function() {
|
|
14036
|
-
var t = new
|
|
14036
|
+
var t = new $();
|
|
14037
14037
|
return function(e, i, n) {
|
|
14038
14038
|
return t.makeScale(e, i, n), this.applyMatrix(t), this;
|
|
14039
14039
|
};
|
|
@@ -14247,7 +14247,7 @@ void main() {
|
|
|
14247
14247
|
}
|
|
14248
14248
|
}), Dt.prototype = Object.create(V.prototype), Dt.prototype.constructor = Dt, kt.prototype = Object.create(Ft.prototype), kt.prototype.constructor = kt, Fe.prototype = Object.create(V.prototype), Fe.prototype.constructor = Fe, xe.prototype = Object.create(Ft.prototype), xe.prototype.constructor = xe;
|
|
14249
14249
|
var Nl = 0;
|
|
14250
|
-
Zt.prototype = Object.assign(Object.create(
|
|
14250
|
+
Zt.prototype = Object.assign(Object.create(J.prototype), {
|
|
14251
14251
|
constructor: Zt,
|
|
14252
14252
|
isMaterial: !0,
|
|
14253
14253
|
onBeforeCompile: function() {
|
|
@@ -14565,7 +14565,7 @@ void main() {
|
|
|
14565
14565
|
function e(et, _t, mt, bt, xt, Wt, W, it, It) {
|
|
14566
14566
|
return s.fromBufferAttribute(xt, W), l.fromBufferAttribute(xt, it), h.fromBufferAttribute(xt, It), (et = t(et, _t, mt, bt, s, l, h, N)) && (Wt && (y.fromBufferAttribute(Wt, W), S.fromBufferAttribute(Wt, it), C.fromBufferAttribute(Wt, It), et.uv = Ie.getUV(N, s, l, h, y, S, C, new p())), Wt = new M(W, it, It), Ie.getNormal(s, l, h, Wt.normal), et.face = Wt), et;
|
|
14567
14567
|
}
|
|
14568
|
-
var i = new
|
|
14568
|
+
var i = new $(), n = new Ni(), o = new B(), s = new m(), l = new m(), h = new m(), c = new m(), f = new m(), v = new m(), y = new p(), S = new p(), C = new p(), N = new m(), j = new m();
|
|
14569
14569
|
return function(et, _t) {
|
|
14570
14570
|
var mt = this.geometry, bt = this.material, xt = this.matrixWorld;
|
|
14571
14571
|
if (bt !== void 0 && (mt.boundingSphere === null && mt.computeBoundingSphere(), o.copy(mt.boundingSphere), o.applyMatrix4(xt), et.ray.intersectsSphere(o) !== !1 && (i.getInverse(xt), n.copy(et.ray).applyMatrix4(i), mt.boundingBox === null || n.intersectsBox(mt.boundingBox) !== !1))) {
|
|
@@ -14855,7 +14855,7 @@ void main() {
|
|
|
14855
14855
|
function t(C, N, j, et, _t, mt) {
|
|
14856
14856
|
o.subVectors(C, j).addScalar(0.5).multiply(et), _t !== void 0 ? (s.x = mt * o.x - _t * o.y, s.y = _t * o.x + mt * o.y) : s.copy(o), C.copy(N), C.x += s.x, C.y += s.y, C.applyMatrix4(l);
|
|
14857
14857
|
}
|
|
14858
|
-
var e = new m(), i = new m(), n = new m(), o = new p(), s = new p(), l = new
|
|
14858
|
+
var e = new m(), i = new m(), n = new m(), o = new p(), s = new p(), l = new $(), h = new m(), c = new m(), f = new m(), v = new p(), y = new p(), S = new p();
|
|
14859
14859
|
return function(C, N) {
|
|
14860
14860
|
i.setFromMatrixScale(this.matrixWorld), l.getInverse(this.modelViewMatrix).premultiply(this.matrixWorld), n.setFromMatrixPosition(this.modelViewMatrix);
|
|
14861
14861
|
var j = this.material.rotation;
|
|
@@ -14932,7 +14932,7 @@ void main() {
|
|
|
14932
14932
|
calculateInverses: function() {
|
|
14933
14933
|
this.boneInverses = [];
|
|
14934
14934
|
for (var t = 0, e = this.bones.length; t < e; t++) {
|
|
14935
|
-
var i = new
|
|
14935
|
+
var i = new $();
|
|
14936
14936
|
this.bones[t] && i.getInverse(this.bones[t].matrixWorld), this.boneInverses.push(i);
|
|
14937
14937
|
}
|
|
14938
14938
|
},
|
|
@@ -14944,7 +14944,7 @@ void main() {
|
|
|
14944
14944
|
(t = this.bones[i]) && (t.parent && t.parent.isBone ? (t.matrix.getInverse(t.parent.matrixWorld), t.matrix.multiply(t.matrixWorld)) : t.matrix.copy(t.matrixWorld), t.matrix.decompose(t.position, t.quaternion, t.scale));
|
|
14945
14945
|
},
|
|
14946
14946
|
update: function() {
|
|
14947
|
-
var t = new
|
|
14947
|
+
var t = new $(), e = new $();
|
|
14948
14948
|
return function() {
|
|
14949
14949
|
for (var i = this.bones, n = this.boneInverses, o = this.boneMatrices, s = this.boneTexture, l = 0, h = i.length; l < h; l++)
|
|
14950
14950
|
t.multiplyMatrices(i[l] ? i[l].matrixWorld : e, n[l]), t.toArray(o, 16 * l);
|
|
@@ -15033,7 +15033,7 @@ void main() {
|
|
|
15033
15033
|
};
|
|
15034
15034
|
}(),
|
|
15035
15035
|
raycast: function() {
|
|
15036
|
-
var t = new
|
|
15036
|
+
var t = new $(), e = new Ni(), i = new B();
|
|
15037
15037
|
return function(n, o) {
|
|
15038
15038
|
var s = n.linePrecision, l = this.geometry, h = this.matrixWorld;
|
|
15039
15039
|
if (l.boundingSphere === null && l.computeBoundingSphere(), i.copy(l.boundingSphere), i.applyMatrix4(h), i.radius += s, n.ray.intersectsSphere(i) !== !1) {
|
|
@@ -15116,7 +15116,7 @@ void main() {
|
|
|
15116
15116
|
constructor: ps,
|
|
15117
15117
|
isPoints: !0,
|
|
15118
15118
|
raycast: function() {
|
|
15119
|
-
var t = new
|
|
15119
|
+
var t = new $(), e = new Ni(), i = new B();
|
|
15120
15120
|
return function(n, o) {
|
|
15121
15121
|
function s(et, _t) {
|
|
15122
15122
|
var mt = e.distanceSqToPoint(et);
|
|
@@ -16138,7 +16138,7 @@ void main() {
|
|
|
16138
16138
|
return t = this.getUtoTmapping(t), this.getTangent(t);
|
|
16139
16139
|
},
|
|
16140
16140
|
computeFrenetFrames: function(t, e) {
|
|
16141
|
-
var i = new m(), n = [], o = [], s = [], l = new m(), h = new
|
|
16141
|
+
var i = new m(), n = [], o = [], s = [], l = new m(), h = new $(), c;
|
|
16142
16142
|
for (c = 0; c <= t; c++) {
|
|
16143
16143
|
var f = c / t;
|
|
16144
16144
|
n[c] = this.getTangentAt(f), n[c].normalize();
|
|
@@ -16626,7 +16626,7 @@ void main() {
|
|
|
16626
16626
|
n.uniforms[o].value = new E().fromArray(s.value);
|
|
16627
16627
|
break;
|
|
16628
16628
|
case "m4":
|
|
16629
|
-
n.uniforms[o].value = new
|
|
16629
|
+
n.uniforms[o].value = new $().fromArray(s.value);
|
|
16630
16630
|
break;
|
|
16631
16631
|
default:
|
|
16632
16632
|
n.uniforms[o].value = s.value;
|
|
@@ -17682,7 +17682,7 @@ void main() {
|
|
|
17682
17682
|
}
|
|
17683
17683
|
}), Object.assign(In.prototype, {
|
|
17684
17684
|
update: function() {
|
|
17685
|
-
var t, e, i, n, o, s, l, h, c = new
|
|
17685
|
+
var t, e, i, n, o, s, l, h, c = new $(), f = new $();
|
|
17686
17686
|
return function(v) {
|
|
17687
17687
|
if (t !== this || e !== v.focus || i !== v.fov || n !== v.aspect * this.aspect || o !== v.near || s !== v.far || l !== v.zoom || h !== this.eyeSep) {
|
|
17688
17688
|
t = this, e = v.focus, i = v.fov, n = v.aspect * this.aspect, o = v.near, s = v.far, l = v.zoom;
|
|
@@ -18464,7 +18464,7 @@ void main() {
|
|
|
18464
18464
|
var n = this._mixer, o = n.time, s = this._weightInterpolant;
|
|
18465
18465
|
return s === null && (this._weightInterpolant = s = n._lendControlInterpolant()), n = s.parameterPositions, s = s.sampleValues, n[0] = o, s[0] = e, n[1] = o + t, s[1] = i, this;
|
|
18466
18466
|
}
|
|
18467
|
-
}), Mo.prototype = Object.assign(Object.create(
|
|
18467
|
+
}), Mo.prototype = Object.assign(Object.create(J.prototype), {
|
|
18468
18468
|
constructor: Mo,
|
|
18469
18469
|
_bindAction: function(t, e) {
|
|
18470
18470
|
var i = t._localRoot || this._root, n = t._clip.tracks, o = n.length, s = t._propertyBindings;
|
|
@@ -18894,7 +18894,7 @@ void main() {
|
|
|
18894
18894
|
this.cone.scale.set(n, n, i), t.setFromMatrixPosition(this.light.matrixWorld), e.setFromMatrixPosition(this.light.target.matrixWorld), this.cone.lookAt(e.sub(t)), this.color !== void 0 ? this.cone.material.color.set(this.color) : this.cone.material.color.copy(this.light.color);
|
|
18895
18895
|
};
|
|
18896
18896
|
}(), Is.prototype = Object.create(mi.prototype), Is.prototype.constructor = Is, Is.prototype.updateMatrixWorld = function() {
|
|
18897
|
-
var t = new m(), e = new
|
|
18897
|
+
var t = new m(), e = new $(), i = new $();
|
|
18898
18898
|
return function(n) {
|
|
18899
18899
|
var o = this.bones, s = this.geometry, l = s.getAttribute("position");
|
|
18900
18900
|
i.getInverse(this.root.matrixWorld);
|
|
@@ -19139,7 +19139,7 @@ void main() {
|
|
|
19139
19139
|
applyToVector3Array: function() {
|
|
19140
19140
|
console.error("THREE.Matrix3: .applyToVector3Array() has been removed.");
|
|
19141
19141
|
}
|
|
19142
|
-
}), Object.assign(
|
|
19142
|
+
}), Object.assign($.prototype, {
|
|
19143
19143
|
extractPosition: function(t) {
|
|
19144
19144
|
return console.warn(
|
|
19145
19145
|
"THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."
|
|
@@ -19984,7 +19984,7 @@ void main() {
|
|
|
19984
19984
|
console.error(
|
|
19985
19985
|
"THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead."
|
|
19986
19986
|
);
|
|
19987
|
-
}, T.WebGLRenderTargetCube = Y, T.WebGLRenderTarget = U, T.WebGLRenderer = _e, T.ShaderLib = jr, T.UniformsLib = qe, T.UniformsUtils = bn, T.ShaderChunk = Ei, T.FogExp2 = Le, T.Fog = mn, T.Scene = On, T.Sprite = $i, T.LOD = Ki, T.SkinnedMesh = ki, T.Skeleton = nn, T.Bone = rn, T.Mesh = pi, T.LineSegments = mi, T.LineLoop = zr, T.Line = Hi, T.Points = ps, T.Group = ui, T.VideoTexture = tl, T.DataTexture = H, T.DataTexture3D = X, T.CompressedTexture = fo, T.CubeTexture = w, T.CanvasTexture = Vs, T.DepthTexture = Xs, T.Texture = O, T.AnimationLoader = Qt, T.CompressedTextureLoader = Yt, T.DataTextureLoader = Ue, T.CubeTextureLoader = zi, T.TextureLoader = on, T.ObjectLoader = ra, T.MaterialLoader = Ba, T.BufferGeometryLoader = nl, T.DefaultLoadingManager = Gn, T.LoadingManager = xo, T.JSONLoader = Zo, T.ImageLoader = si, T.ImageBitmapLoader = rl, T.FontLoader = Il, T.FileLoader = At, T.Loader = no, T.LoaderUtils = ts, T.Cache = Xr, T.AudioLoader = hn, T.SpotLightShadow = ia, T.SpotLight = na, T.PointLight = qo, T.RectAreaLight = za, T.HemisphereLight = ea, T.DirectionalLightShadow = To, T.DirectionalLight = Wr, T.AmbientLight = Yo, T.LightShadow = Hr, T.Light = Ji, T.StereoCamera = In, T.PerspectiveCamera = ye, T.OrthographicCamera = As, T.CubeCamera = oa, T.ArrayCamera = ke, T.Camera = Be, T.AudioListener = ka, T.PositionalAudio = sa, T.AudioContext = gl, T.AudioAnalyser = Jo, T.Audio = Ps, T.VectorKeyframeTrack = Es, T.StringKeyframeTrack = Da, T.QuaternionKeyframeTrack = Ss, T.NumberKeyframeTrack = Er, T.ColorKeyframeTrack = Oa, T.BooleanKeyframeTrack = Ia, T.PropertyMixer = aa, T.PropertyBinding = gn, T.KeyframeTrack = Rn, T.AnimationUtils = zn, T.AnimationObjectGroup = Cs, T.AnimationMixer = Mo, T.AnimationClip = ir, T.Uniform = Ua, T.InstancedBufferGeometry = al, T.BufferGeometry = Ft, T.Geometry = V, T.InterleavedBufferAttribute = Oi, T.InstancedInterleavedBuffer = ll, T.InterleavedBuffer = Ii, T.InstancedBufferAttribute = hl, T.Face3 = M, T.Object3D = z, T.Raycaster = Ol, T.Layers = F, T.EventDispatcher =
|
|
19987
|
+
}, T.WebGLRenderTargetCube = Y, T.WebGLRenderTarget = U, T.WebGLRenderer = _e, T.ShaderLib = jr, T.UniformsLib = qe, T.UniformsUtils = bn, T.ShaderChunk = Ei, T.FogExp2 = Le, T.Fog = mn, T.Scene = On, T.Sprite = $i, T.LOD = Ki, T.SkinnedMesh = ki, T.Skeleton = nn, T.Bone = rn, T.Mesh = pi, T.LineSegments = mi, T.LineLoop = zr, T.Line = Hi, T.Points = ps, T.Group = ui, T.VideoTexture = tl, T.DataTexture = H, T.DataTexture3D = X, T.CompressedTexture = fo, T.CubeTexture = w, T.CanvasTexture = Vs, T.DepthTexture = Xs, T.Texture = O, T.AnimationLoader = Qt, T.CompressedTextureLoader = Yt, T.DataTextureLoader = Ue, T.CubeTextureLoader = zi, T.TextureLoader = on, T.ObjectLoader = ra, T.MaterialLoader = Ba, T.BufferGeometryLoader = nl, T.DefaultLoadingManager = Gn, T.LoadingManager = xo, T.JSONLoader = Zo, T.ImageLoader = si, T.ImageBitmapLoader = rl, T.FontLoader = Il, T.FileLoader = At, T.Loader = no, T.LoaderUtils = ts, T.Cache = Xr, T.AudioLoader = hn, T.SpotLightShadow = ia, T.SpotLight = na, T.PointLight = qo, T.RectAreaLight = za, T.HemisphereLight = ea, T.DirectionalLightShadow = To, T.DirectionalLight = Wr, T.AmbientLight = Yo, T.LightShadow = Hr, T.Light = Ji, T.StereoCamera = In, T.PerspectiveCamera = ye, T.OrthographicCamera = As, T.CubeCamera = oa, T.ArrayCamera = ke, T.Camera = Be, T.AudioListener = ka, T.PositionalAudio = sa, T.AudioContext = gl, T.AudioAnalyser = Jo, T.Audio = Ps, T.VectorKeyframeTrack = Es, T.StringKeyframeTrack = Da, T.QuaternionKeyframeTrack = Ss, T.NumberKeyframeTrack = Er, T.ColorKeyframeTrack = Oa, T.BooleanKeyframeTrack = Ia, T.PropertyMixer = aa, T.PropertyBinding = gn, T.KeyframeTrack = Rn, T.AnimationUtils = zn, T.AnimationObjectGroup = Cs, T.AnimationMixer = Mo, T.AnimationClip = ir, T.Uniform = Ua, T.InstancedBufferGeometry = al, T.BufferGeometry = Ft, T.Geometry = V, T.InterleavedBufferAttribute = Oi, T.InstancedInterleavedBuffer = ll, T.InterleavedBuffer = Ii, T.InstancedBufferAttribute = hl, T.Face3 = M, T.Object3D = z, T.Raycaster = Ol, T.Layers = F, T.EventDispatcher = J, T.Clock = sl, T.QuaternionLinearInterpolant = Vn, T.LinearInterpolant = fr, T.DiscreteInterpolant = Xo, T.CubicInterpolant = ta, T.Interpolant = kn, T.Triangle = Ie, T.Math = fi, T.Spherical = ul, T.Cylindrical = Q, T.Plane = q, T.Frustum = b, T.Sphere = B, T.Ray = Ni, T.Matrix4 = $, T.Matrix3 = P, T.Box3 = K, T.Box2 = So, T.Line3 = Ls, T.Euler = x, T.Vector4 = E, T.Vector3 = m, T.Vector2 = p, T.Quaternion = G, T.Color = A, T.ImmediateRenderObject = Dn, T.VertexNormalsHelper = yi, T.SpotLightHelper = Rs, T.SkeletonHelper = Is, T.PointLightHelper = dr, T.RectAreaLightHelper = Os, T.HemisphereLightHelper = Ds, T.GridHelper = ua, T.PolarGridHelper = Fa, T.FaceNormalsHelper = ca, T.DirectionalLightHelper = $n, T.CameraHelper = fa, T.BoxHelper = ro, T.Box3Helper = pa, T.PlaneHelper = da, T.ArrowHelper = oo, T.AxesHelper = nr, T.Shape = Fn, T.Path = Jn, T.ShapePath = Na, T.Font = ol, T.CurvePath = io, T.Curve = Ee, T.ImageUtils = Eo, T.ShapeUtils = Vr, T.WebGLUtils = He, T.WireframeGeometry = ds, T.ParametricGeometry = qs, T.ParametricBufferGeometry = ms, T.TetrahedronGeometry = Ys, T.TetrahedronBufferGeometry = gs, T.OctahedronGeometry = Zs, T.OctahedronBufferGeometry = Oo, T.IcosahedronGeometry = Js, T.IcosahedronBufferGeometry = vs, T.DodecahedronGeometry = ys, T.DodecahedronBufferGeometry = _s, T.PolyhedronGeometry = Wi, T.PolyhedronBufferGeometry = _i, T.TubeGeometry = ln, T.TubeBufferGeometry = po, T.TorusKnotGeometry = Mr, T.TorusKnotBufferGeometry = Do, T.TorusGeometry = zo, T.TorusBufferGeometry = Cn, T.TextGeometry = Ks, T.TextBufferGeometry = No, T.SphereGeometry = mo, T.SphereBufferGeometry = ur, T.RingGeometry = Qs, T.RingBufferGeometry = ko, T.PlaneGeometry = Fe, T.PlaneBufferGeometry = xe, T.LatheGeometry = Ts, T.LatheBufferGeometry = go, T.ShapeGeometry = Qr, T.ShapeBufferGeometry = vo, T.ExtrudeGeometry = Kr, T.ExtrudeBufferGeometry = Nr, T.EdgesGeometry = yo, T.ConeGeometry = Ms, T.ConeBufferGeometry = Ln, T.CylinderGeometry = to, T.CylinderBufferGeometry = eo, T.CircleGeometry = Uo, T.CircleBufferGeometry = kr, T.BoxGeometry = Dt, T.BoxBufferGeometry = kt, T.ShadowMaterial = _o, T.SpriteMaterial = Ui, T.RawShaderMaterial = Fo, T.ShaderMaterial = ti, T.PointsMaterial = Pn, T.MeshPhysicalMaterial = Go, T.MeshStandardMaterial = Ur, T.MeshPhongMaterial = Sr, T.MeshToonMaterial = Ho, T.MeshNormalMaterial = Wo, T.MeshLambertMaterial = cr, T.MeshDepthMaterial = oe, T.MeshDistanceMaterial = te, T.MeshBasicMaterial = Ge, T.MeshMatcapMaterial = jo, T.LineDashedMaterial = Vo, T.LineBasicMaterial = Di, T.Material = Zt, T.Float64BufferAttribute = Rt, T.Float32BufferAttribute = Pt, T.Uint32BufferAttribute = zt, T.Int32BufferAttribute = D, T.Uint16BufferAttribute = Et, T.Int16BufferAttribute = lt, T.Uint8ClampedBufferAttribute = Nt, T.Uint8BufferAttribute = gt, T.Int8BufferAttribute = ft, T.BufferAttribute = ht, T.ArcCurve = bs, T.CatmullRomCurve3 = Tn, T.CubicBezierCurve = qn, T.CubicBezierCurve3 = wi, T.EllipseCurve = Un, T.LineCurve = Yn, T.LineCurve3 = pr, T.QuadraticBezierCurve = Zn, T.QuadraticBezierCurve3 = Gr, T.SplineCurve = br, T.REVISION = "98", T.MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2 }, T.CullFaceNone = 0, T.CullFaceBack = 1, T.CullFaceFront = 2, T.CullFaceFrontBack = 3, T.FrontFaceDirectionCW = 0, T.FrontFaceDirectionCCW = 1, T.BasicShadowMap = 0, T.PCFShadowMap = 1, T.PCFSoftShadowMap = 2, T.FrontSide = 0, T.BackSide = 1, T.DoubleSide = 2, T.FlatShading = 1, T.SmoothShading = 2, T.NoColors = 0, T.FaceColors = 1, T.VertexColors = 2, T.NoBlending = 0, T.NormalBlending = 1, T.AdditiveBlending = 2, T.SubtractiveBlending = 3, T.MultiplyBlending = 4, T.CustomBlending = 5, T.AddEquation = 100, T.SubtractEquation = 101, T.ReverseSubtractEquation = 102, T.MinEquation = 103, T.MaxEquation = 104, T.ZeroFactor = 200, T.OneFactor = 201, T.SrcColorFactor = 202, T.OneMinusSrcColorFactor = 203, T.SrcAlphaFactor = 204, T.OneMinusSrcAlphaFactor = 205, T.DstAlphaFactor = 206, T.OneMinusDstAlphaFactor = 207, T.DstColorFactor = 208, T.OneMinusDstColorFactor = 209, T.SrcAlphaSaturateFactor = 210, T.NeverDepth = 0, T.AlwaysDepth = 1, T.LessDepth = 2, T.LessEqualDepth = 3, T.EqualDepth = 4, T.GreaterEqualDepth = 5, T.GreaterDepth = 6, T.NotEqualDepth = 7, T.MultiplyOperation = 0, T.MixOperation = 1, T.AddOperation = 2, T.NoToneMapping = 0, T.LinearToneMapping = 1, T.ReinhardToneMapping = 2, T.Uncharted2ToneMapping = 3, T.CineonToneMapping = 4, T.UVMapping = 300, T.CubeReflectionMapping = 301, T.CubeRefractionMapping = 302, T.EquirectangularReflectionMapping = 303, T.EquirectangularRefractionMapping = 304, T.SphericalReflectionMapping = 305, T.CubeUVReflectionMapping = 306, T.CubeUVRefractionMapping = 307, T.RepeatWrapping = 1e3, T.ClampToEdgeWrapping = 1001, T.MirroredRepeatWrapping = 1002, T.NearestFilter = 1003, T.NearestMipMapNearestFilter = 1004, T.NearestMipMapLinearFilter = 1005, T.LinearFilter = 1006, T.LinearMipMapNearestFilter = 1007, T.LinearMipMapLinearFilter = 1008, T.UnsignedByteType = 1009, T.ByteType = 1010, T.ShortType = 1011, T.UnsignedShortType = 1012, T.IntType = 1013, T.UnsignedIntType = 1014, T.FloatType = 1015, T.HalfFloatType = 1016, T.UnsignedShort4444Type = 1017, T.UnsignedShort5551Type = 1018, T.UnsignedShort565Type = 1019, T.UnsignedInt248Type = 1020, T.AlphaFormat = 1021, T.RGBFormat = 1022, T.RGBAFormat = 1023, T.LuminanceFormat = 1024, T.LuminanceAlphaFormat = 1025, T.RGBEFormat = 1023, T.DepthFormat = 1026, T.DepthStencilFormat = 1027, T.RedFormat = 1028, T.RGB_S3TC_DXT1_Format = 33776, T.RGBA_S3TC_DXT1_Format = 33777, T.RGBA_S3TC_DXT3_Format = 33778, T.RGBA_S3TC_DXT5_Format = 33779, T.RGB_PVRTC_4BPPV1_Format = 35840, T.RGB_PVRTC_2BPPV1_Format = 35841, T.RGBA_PVRTC_4BPPV1_Format = 35842, T.RGBA_PVRTC_2BPPV1_Format = 35843, T.RGB_ETC1_Format = 36196, T.RGBA_ASTC_4x4_Format = 37808, T.RGBA_ASTC_5x4_Format = 37809, T.RGBA_ASTC_5x5_Format = 37810, T.RGBA_ASTC_6x5_Format = 37811, T.RGBA_ASTC_6x6_Format = 37812, T.RGBA_ASTC_8x5_Format = 37813, T.RGBA_ASTC_8x6_Format = 37814, T.RGBA_ASTC_8x8_Format = 37815, T.RGBA_ASTC_10x5_Format = 37816, T.RGBA_ASTC_10x6_Format = 37817, T.RGBA_ASTC_10x8_Format = 37818, T.RGBA_ASTC_10x10_Format = 37819, T.RGBA_ASTC_12x10_Format = 37820, T.RGBA_ASTC_12x12_Format = 37821, T.LoopOnce = 2200, T.LoopRepeat = 2201, T.LoopPingPong = 2202, T.InterpolateDiscrete = 2300, T.InterpolateLinear = 2301, T.InterpolateSmooth = 2302, T.ZeroCurvatureEnding = 2400, T.ZeroSlopeEnding = 2401, T.WrapAroundEnding = 2402, T.TrianglesDrawMode = 0, T.TriangleStripDrawMode = 1, T.TriangleFanDrawMode = 2, T.LinearEncoding = 3e3, T.sRGBEncoding = 3001, T.GammaEncoding = 3007, T.RGBEEncoding = 3002, T.LogLuvEncoding = 3003, T.RGBM7Encoding = 3004, T.RGBM16Encoding = 3005, T.RGBDEncoding = 3006, T.BasicDepthPacking = 3200, T.RGBADepthPacking = 3201, T.TangentSpaceNormalMap = 0, T.ObjectSpaceNormalMap = 1, T.CubeGeometry = Dt, T.Face4 = function(t, e, i, n, o, s, l) {
|
|
19988
19988
|
return console.warn(
|
|
19989
19989
|
"THREE.Face4 has been removed. A THREE.Face3 will be created instead."
|
|
19990
19990
|
), new M(t, e, i, o, s, l);
|
|
@@ -20139,13 +20139,13 @@ void main() {
|
|
|
20139
20139
|
}, Object.defineProperty(T, "__esModule", { value: !0 });
|
|
20140
20140
|
});
|
|
20141
20141
|
THREE.Sky = function() {
|
|
20142
|
-
var T = THREE.Sky.SkyShader,
|
|
20142
|
+
var T = THREE.Sky.SkyShader, J = new THREE.ShaderMaterial({
|
|
20143
20143
|
fragmentShader: T.fragmentShader,
|
|
20144
20144
|
vertexShader: T.vertexShader,
|
|
20145
20145
|
uniforms: THREE.UniformsUtils.clone(T.uniforms),
|
|
20146
20146
|
side: THREE.BackSide
|
|
20147
20147
|
});
|
|
20148
|
-
THREE.Mesh.call(this, new THREE.BoxBufferGeometry(1, 1, 1),
|
|
20148
|
+
THREE.Mesh.call(this, new THREE.BoxBufferGeometry(1, 1, 1), J);
|
|
20149
20149
|
};
|
|
20150
20150
|
THREE.Sky.prototype = Object.create(THREE.Mesh.prototype);
|
|
20151
20151
|
THREE.Sky.SkyShader = {
|
|
@@ -20298,12 +20298,12 @@ THREE.Sky.SkyShader = {
|
|
|
20298
20298
|
};
|
|
20299
20299
|
(function(T) {
|
|
20300
20300
|
typeof module > "u" ? window.charming = T : module.exports = T;
|
|
20301
|
-
})(function(T,
|
|
20302
|
-
|
|
20303
|
-
var p =
|
|
20301
|
+
})(function(T, J) {
|
|
20302
|
+
J = J || {};
|
|
20303
|
+
var p = J.tagName || "span", $ = J.classPrefix != null ? J.classPrefix : "char", G = 1, m = function(P) {
|
|
20304
20304
|
for (var O = P.parentNode, E = P.nodeValue, U = E.length, Y = -1; ++Y < U; ) {
|
|
20305
20305
|
var H = document.createElement(p);
|
|
20306
|
-
|
|
20306
|
+
$ && (H.className = $ + G, G++), H.appendChild(document.createTextNode(E[Y])), O.insertBefore(H, P);
|
|
20307
20307
|
}
|
|
20308
20308
|
O.removeChild(P);
|
|
20309
20309
|
};
|
|
@@ -20314,8 +20314,8 @@ THREE.Sky.SkyShader = {
|
|
|
20314
20314
|
}(T), T;
|
|
20315
20315
|
});
|
|
20316
20316
|
class sg {
|
|
20317
|
-
constructor(
|
|
20318
|
-
mars3d ? (this.map =
|
|
20317
|
+
constructor(J, p = []) {
|
|
20318
|
+
mars3d ? (this.map = J, this.tilesetLayer, this.modelArr = p, this.bimObliquePhotographyId = [], this.editDate = {
|
|
20319
20319
|
id: null
|
|
20320
20320
|
}) : console.error("未引入指定插件");
|
|
20321
20321
|
}
|
|
@@ -20323,28 +20323,28 @@ class sg {
|
|
|
20323
20323
|
* 给 modelArr 添加数据
|
|
20324
20324
|
* @param { Object } mode 模型数据
|
|
20325
20325
|
*/
|
|
20326
|
-
pushModel(
|
|
20327
|
-
this.modelArr.push(
|
|
20326
|
+
pushModel(J) {
|
|
20327
|
+
this.modelArr.push(J);
|
|
20328
20328
|
}
|
|
20329
20329
|
/**
|
|
20330
20330
|
* add 模型方法
|
|
20331
20331
|
* @param { Object || String } modelParameter 模型属性 或者 模型id
|
|
20332
20332
|
* @param { Object } fn 自定义注册事件
|
|
20333
20333
|
*/
|
|
20334
|
-
add(
|
|
20335
|
-
const
|
|
20334
|
+
add(J, p) {
|
|
20335
|
+
const $ = /* @__PURE__ */ new Map([["click", mars3d.EventType.click]]);
|
|
20336
20336
|
return new Promise((G, m) => {
|
|
20337
20337
|
let P, O, E, U, Y, H, K, B, q;
|
|
20338
|
-
if (typeof
|
|
20339
|
-
let A = this.query(
|
|
20338
|
+
if (typeof J != "object") {
|
|
20339
|
+
let A = this.query(J);
|
|
20340
20340
|
A || m("缺少树结构");
|
|
20341
20341
|
let { id: d, bimModelExcavationDetails: g, bimModel: M } = A;
|
|
20342
20342
|
P = d, O = M.modelType, E = M.tender, U = M.releasedDistance, Y = M.modelName, H = M.isDynamicReleased, K = {
|
|
20343
20343
|
bimModelExcavationDetails: g
|
|
20344
20344
|
}, B = A.url, q = M.modelColor;
|
|
20345
20345
|
} else
|
|
20346
|
-
P =
|
|
20347
|
-
let b = this.map.getLayer(
|
|
20346
|
+
P = J.modelId, O = J.modelType, E = J.tender, U = J.releasedDistance, Y = J.modelTitle, H = J.permission, K = J.customize, B = J.url, q = J.color;
|
|
20347
|
+
let b = this.map.getLayer(J, "modelId");
|
|
20348
20348
|
if (b)
|
|
20349
20349
|
return G(b), !1;
|
|
20350
20350
|
if (B.indexOf("tileset.json") < 0)
|
|
@@ -20359,7 +20359,7 @@ class sg {
|
|
|
20359
20359
|
}).fetchJson().then((d) => {
|
|
20360
20360
|
let g = null, M = { enabled: !0, precise: !1 }, x = [];
|
|
20361
20361
|
q && (g = {
|
|
20362
|
-
color: { conditions: [["true",
|
|
20362
|
+
color: { conditions: [["true", q]] }
|
|
20363
20363
|
}), window.bimClip && window.bimClip.activeObj[P] && (Object.keys(window.bimClip.activeObj[P]).forEach((F) => {
|
|
20364
20364
|
let { item: z } = window.bimClip.activeObj[P][F], { bimModelExcavationDetails: V } = z, { excavationDetails: ht } = V;
|
|
20365
20365
|
x.push({
|
|
@@ -20412,14 +20412,14 @@ class sg {
|
|
|
20412
20412
|
}).catch((F) => {
|
|
20413
20413
|
G();
|
|
20414
20414
|
}), this.tilesetLayer.on("click", (F) => {
|
|
20415
|
-
F.layer.style == null && F.layer.openHighlight(
|
|
20415
|
+
F.layer.style == null && map.bimMapEdit == "0" && F.layer.openHighlight(
|
|
20416
20416
|
{
|
|
20417
20417
|
color: "rgba(255,0,0,1)"
|
|
20418
20418
|
},
|
|
20419
20419
|
!0
|
|
20420
20420
|
);
|
|
20421
20421
|
}), p && Object.keys(p).forEach((F) => {
|
|
20422
|
-
this.tilesetLayer.on(
|
|
20422
|
+
this.tilesetLayer.on($.get(F), (z) => {
|
|
20423
20423
|
p[F](z);
|
|
20424
20424
|
});
|
|
20425
20425
|
}), O == 0 && this.bimObliquePhotographyId.push(P), this.map.addLayer(this.tilesetLayer);
|
|
@@ -20438,29 +20438,29 @@ class sg {
|
|
|
20438
20438
|
* @param { String } id 模型id
|
|
20439
20439
|
*
|
|
20440
20440
|
*/
|
|
20441
|
-
remove(
|
|
20442
|
-
this.map.getLayer(
|
|
20441
|
+
remove(J) {
|
|
20442
|
+
this.map.getLayer(J, "modelId") && (this.map.getLayer(J, "modelId").closeHighlight(), this.map.removeLayer(this.map.getLayer(J, "modelId")));
|
|
20443
20443
|
}
|
|
20444
20444
|
/**
|
|
20445
20445
|
* 选中模型
|
|
20446
20446
|
* @param { String } id 模型id
|
|
20447
20447
|
*
|
|
20448
20448
|
*/
|
|
20449
|
-
selected(
|
|
20450
|
-
return new Promise((
|
|
20451
|
-
let m = this.map.getLayer(
|
|
20452
|
-
m ? (p && m.flyTo(), m.style == null && m.openHighlight(
|
|
20449
|
+
selected(J, p = !0) {
|
|
20450
|
+
return new Promise(($, G) => {
|
|
20451
|
+
let m = this.map.getLayer(J, "modelId");
|
|
20452
|
+
m ? (p && m.flyTo(), m.style == null && map.bimMapEdit == "0" && m.openHighlight(
|
|
20453
20453
|
{
|
|
20454
20454
|
color: "rgba(255,0,0,1)"
|
|
20455
20455
|
},
|
|
20456
20456
|
!0
|
|
20457
|
-
),
|
|
20458
|
-
P && (p && P.flyTo(), P.style == null && P.openHighlight(
|
|
20457
|
+
), $(m)) : this.add(J).then((P) => {
|
|
20458
|
+
P && (p && P.flyTo(), P.style == null && map.bimMapEdit == "0" && P.openHighlight(
|
|
20459
20459
|
{
|
|
20460
20460
|
color: "rgba(255,0,0,1)"
|
|
20461
20461
|
},
|
|
20462
20462
|
!0
|
|
20463
|
-
),
|
|
20463
|
+
), $(P));
|
|
20464
20464
|
});
|
|
20465
20465
|
});
|
|
20466
20466
|
}
|
|
@@ -20477,16 +20477,16 @@ class sg {
|
|
|
20477
20477
|
* @param { String } id 模型属性
|
|
20478
20478
|
* @returns { Object || Boolean } 查询出来的树对象 或者 false
|
|
20479
20479
|
*/
|
|
20480
|
-
query(
|
|
20481
|
-
return this.modelArr.length == 0 ? !1 : this.modelArr.find((p) => p.id ==
|
|
20480
|
+
query(J) {
|
|
20481
|
+
return this.modelArr.length == 0 ? !1 : this.modelArr.find((p) => p.id == J);
|
|
20482
20482
|
}
|
|
20483
20483
|
/**
|
|
20484
20484
|
* 用户操作的模型
|
|
20485
20485
|
* @param { String } id 模型属性
|
|
20486
20486
|
*/
|
|
20487
|
-
postEditDate(
|
|
20487
|
+
postEditDate(J) {
|
|
20488
20488
|
this.editDate = {
|
|
20489
|
-
id:
|
|
20489
|
+
id: J
|
|
20490
20490
|
};
|
|
20491
20491
|
}
|
|
20492
20492
|
/**
|
|
@@ -20495,18 +20495,18 @@ class sg {
|
|
|
20495
20495
|
* @param { String | Number } newColor 需要着色的颜色
|
|
20496
20496
|
* @param { String } selectcontent 判断逻辑 默认是全部染色
|
|
20497
20497
|
*/
|
|
20498
|
-
editColor(
|
|
20499
|
-
let G = this.map.getLayer(
|
|
20500
|
-
if (this.postEditDate(
|
|
20498
|
+
editColor(J, p, $ = "true") {
|
|
20499
|
+
let G = this.map.getLayer(J, "modelId");
|
|
20500
|
+
if (this.postEditDate(J), p)
|
|
20501
20501
|
G.style = {
|
|
20502
20502
|
color: {
|
|
20503
|
-
conditions: [[
|
|
20503
|
+
conditions: [[$, p]]
|
|
20504
20504
|
}
|
|
20505
20505
|
};
|
|
20506
20506
|
else {
|
|
20507
|
-
let m = this.query(
|
|
20507
|
+
let m = this.query(J).modelColor;
|
|
20508
20508
|
m ? G.style = {
|
|
20509
|
-
color: { conditions: [[
|
|
20509
|
+
color: { conditions: [[$, m]] }
|
|
20510
20510
|
} : G.style = null;
|
|
20511
20511
|
}
|
|
20512
20512
|
}
|
|
@@ -20515,22 +20515,22 @@ class sg {
|
|
|
20515
20515
|
* @param { String } id 模型属性
|
|
20516
20516
|
* @param { String | Number } opacity 透明度值
|
|
20517
20517
|
*/
|
|
20518
|
-
editOpacity(
|
|
20519
|
-
this.map.getLayer(
|
|
20518
|
+
editOpacity(J, p) {
|
|
20519
|
+
this.map.getLayer(J, "modelId").opacity = p;
|
|
20520
20520
|
}
|
|
20521
20521
|
/**
|
|
20522
20522
|
* 模型挖洞
|
|
20523
20523
|
*/
|
|
20524
|
-
addClip(
|
|
20525
|
-
return new Promise((p,
|
|
20526
|
-
window.bimClip ? p(bimClip.clipModelAdd(
|
|
20524
|
+
addClip(J) {
|
|
20525
|
+
return new Promise((p, $) => {
|
|
20526
|
+
window.bimClip ? p(bimClip.clipModelAdd(J)) : $("挖洞工具未初始化");
|
|
20527
20527
|
});
|
|
20528
20528
|
}
|
|
20529
20529
|
/**
|
|
20530
20530
|
* 模型挖洞 移除
|
|
20531
20531
|
*/
|
|
20532
|
-
removeClip(
|
|
20533
|
-
window.bimClip ? window.bimClip.clipModelremoveClip(
|
|
20532
|
+
removeClip(J) {
|
|
20533
|
+
window.bimClip ? window.bimClip.clipModelremoveClip(J) : console.log("挖洞工具未初始化");
|
|
20534
20534
|
}
|
|
20535
20535
|
// tilesetLayer.clip.clear()
|
|
20536
20536
|
}
|
|
@@ -20539,24 +20539,24 @@ function rh() {
|
|
|
20539
20539
|
const T = Array.from(arguments);
|
|
20540
20540
|
if (T.length < 2)
|
|
20541
20541
|
return T[0];
|
|
20542
|
-
let
|
|
20542
|
+
let J = T[0];
|
|
20543
20543
|
return T.shift(), T.forEach((p) => {
|
|
20544
20544
|
if (ih(p)) {
|
|
20545
|
-
ih(
|
|
20546
|
-
for (let
|
|
20547
|
-
$
|
|
20545
|
+
ih(J) || (J = {});
|
|
20546
|
+
for (let $ in p)
|
|
20547
|
+
J[$] && ih(p[$]) ? J[$] = rh(J[$], p[$]) : J[$] = p[$];
|
|
20548
20548
|
} else
|
|
20549
|
-
p instanceof Array && (
|
|
20550
|
-
ih(
|
|
20549
|
+
p instanceof Array && (J instanceof Array || (J = []), p.forEach(($, G) => {
|
|
20550
|
+
ih($) ? J[G] = rh(J[G]) : J[G] = $;
|
|
20551
20551
|
}));
|
|
20552
|
-
}),
|
|
20552
|
+
}), J;
|
|
20553
20553
|
}
|
|
20554
20554
|
let El = {};
|
|
20555
|
-
const Hu = (T,
|
|
20555
|
+
const Hu = (T, J, p) => {
|
|
20556
20556
|
El = {};
|
|
20557
|
-
let { vectorStyle:
|
|
20558
|
-
if (
|
|
20559
|
-
let { divType: m } =
|
|
20557
|
+
let { vectorStyle: $, difference: G } = T;
|
|
20558
|
+
if ($) {
|
|
20559
|
+
let { divType: m } = $, P = "";
|
|
20560
20560
|
if (m) {
|
|
20561
20561
|
let {
|
|
20562
20562
|
theme_color: O,
|
|
@@ -20575,7 +20575,7 @@ const Hu = (T, $, p) => {
|
|
|
20575
20575
|
divStyle: x
|
|
20576
20576
|
// theme_color2,
|
|
20577
20577
|
// theme_color3,
|
|
20578
|
-
} =
|
|
20578
|
+
} = $, { theme_color2: F, theme_color3: z } = x;
|
|
20579
20579
|
switch (m) {
|
|
20580
20580
|
case "1":
|
|
20581
20581
|
P = `<div class="entity-div-style entity-div-style1" style="--theme-color1:${O};--theme-font-color1:${U};">
|
|
@@ -20650,12 +20650,12 @@ const Hu = (T, $, p) => {
|
|
|
20650
20650
|
} else
|
|
20651
20651
|
T.difference && T.difference.length > 0 && T.difference.forEach((O) => {
|
|
20652
20652
|
rh(El, {
|
|
20653
|
-
[O]:
|
|
20653
|
+
[O]: $[O]
|
|
20654
20654
|
});
|
|
20655
|
-
}),
|
|
20655
|
+
}), J && J.difference && J.difference.length > 0 && J.difference.forEach((O) => {
|
|
20656
20656
|
rh(El, {
|
|
20657
20657
|
label: {
|
|
20658
|
-
[O]:
|
|
20658
|
+
[O]: J.labelStyle[O]
|
|
20659
20659
|
}
|
|
20660
20660
|
});
|
|
20661
20661
|
});
|
|
@@ -20676,9 +20676,9 @@ var oh = { exports: {} };
|
|
|
20676
20676
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
20677
20677
|
*/
|
|
20678
20678
|
oh.exports;
|
|
20679
|
-
(function(T,
|
|
20679
|
+
(function(T, J) {
|
|
20680
20680
|
(function() {
|
|
20681
|
-
var p,
|
|
20681
|
+
var p, $ = "4.17.21", G = 200, m = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", P = "Expected a function", O = "Invalid `variable` option passed into `_.template`", E = "__lodash_hash_undefined__", U = 500, Y = "__lodash_placeholder__", H = 1, K = 2, B = 4, q = 1, b = 2, A = 1, d = 2, g = 4, M = 8, x = 16, F = 32, z = 64, V = 128, ht = 256, ft = 512, gt = 30, Nt = "...", lt = 800, Et = 16, D = 1, zt = 2, Pt = 3, Rt = 1 / 0, ge = 9007199254740991, ue = 17976931348623157e292, Ft = 0 / 0, Dt = 4294967295, kt = Dt - 1, Fe = Dt >>> 1, xe = [
|
|
20682
20682
|
["ary", V],
|
|
20683
20683
|
["bind", A],
|
|
20684
20684
|
["bindKey", d],
|
|
@@ -20944,7 +20944,7 @@ oh.exports;
|
|
|
20944
20944
|
"\r": "r",
|
|
20945
20945
|
"\u2028": "u2028",
|
|
20946
20946
|
"\u2029": "u2029"
|
|
20947
|
-
}, Js = parseFloat, vs = parseInt, ys = typeof xr == "object" && xr && xr.Object === Object && xr, _s = typeof self == "object" && self && self.Object === Object && self, ln = ys || _s || Function("return this")(), po =
|
|
20947
|
+
}, Js = parseFloat, vs = parseInt, ys = typeof xr == "object" && xr && xr.Object === Object && xr, _s = typeof self == "object" && self && self.Object === Object && self, ln = ys || _s || Function("return this")(), po = J && !J.nodeType && J, Mr = po && !0 && T && !T.nodeType && T, Do = Mr && Mr.exports === po, zo = Do && ys.process, Cn = function() {
|
|
20948
20948
|
try {
|
|
20949
20949
|
var At = Mr && Mr.require && Mr.require("util").types;
|
|
20950
20950
|
return At || zo && zo.binding && zo.binding("util");
|
|
@@ -24247,7 +24247,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
24247
24247
|
return gr(Q, function(a, u) {
|
|
24248
24248
|
wi.call(Q.prototype, u) || (r[u] = a);
|
|
24249
24249
|
}), r;
|
|
24250
|
-
}(), { chain: !1 }), Q.VERSION =
|
|
24250
|
+
}(), { chain: !1 }), Q.VERSION = $, qi(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(r) {
|
|
24251
24251
|
Q[r].placeholder = Q;
|
|
24252
24252
|
}), qi(["drop", "take"], function(r, a) {
|
|
24253
24253
|
yi.prototype[r] = function(u) {
|
|
@@ -24344,24 +24344,24 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
24344
24344
|
var Km = oh.exports;
|
|
24345
24345
|
const Fh = /* @__PURE__ */ Wh(Km);
|
|
24346
24346
|
class ag {
|
|
24347
|
-
constructor(
|
|
24347
|
+
constructor(J, p = []) {
|
|
24348
24348
|
/**
|
|
24349
24349
|
* 矢量数据简化
|
|
24350
24350
|
* @param {*} geojson geojson数据
|
|
24351
24351
|
* @returns { Object }
|
|
24352
24352
|
*/
|
|
24353
|
-
kh(this, "simplifyFunc", (
|
|
24353
|
+
kh(this, "simplifyFunc", (J) => {
|
|
24354
24354
|
try {
|
|
24355
|
-
|
|
24355
|
+
J = turf.simplify(J, {
|
|
24356
24356
|
tolerance: 5e-4,
|
|
24357
24357
|
highQuality: !1,
|
|
24358
24358
|
mutate: !0
|
|
24359
24359
|
});
|
|
24360
24360
|
} catch {
|
|
24361
24361
|
}
|
|
24362
|
-
return
|
|
24362
|
+
return J;
|
|
24363
24363
|
});
|
|
24364
|
-
mars3d ? (this.map =
|
|
24364
|
+
mars3d ? (this.map = J, this.vectorArr = p, this.geoJsonType = /* @__PURE__ */ new Map([
|
|
24365
24365
|
["Point"],
|
|
24366
24366
|
["LineString"],
|
|
24367
24367
|
["Polygon"],
|
|
@@ -24377,27 +24377,27 @@ class ag {
|
|
|
24377
24377
|
* @param { String } id 矢量数据id
|
|
24378
24378
|
*
|
|
24379
24379
|
*/
|
|
24380
|
-
remove(
|
|
24381
|
-
this.map.removeLayer(this.map.getLayer(
|
|
24380
|
+
remove(J) {
|
|
24381
|
+
this.map.removeLayer(this.map.getLayer(J, "vectorId")), window.dynamicMasking.remove(J);
|
|
24382
24382
|
}
|
|
24383
24383
|
/**
|
|
24384
24384
|
* add 矢量数据
|
|
24385
24385
|
* @param { String } modelParameter 模型属性 或者 模型id
|
|
24386
24386
|
* @param { Object } fn 自定义注册事件
|
|
24387
24387
|
*/
|
|
24388
|
-
add(
|
|
24389
|
-
return new Promise((
|
|
24388
|
+
add(J, p) {
|
|
24389
|
+
return new Promise(($, G) => {
|
|
24390
24390
|
let m;
|
|
24391
|
-
if (typeof
|
|
24392
|
-
let H = this.map.getLayer(
|
|
24391
|
+
if (typeof J != "object") {
|
|
24392
|
+
let H = this.map.getLayer(J, "vectorId");
|
|
24393
24393
|
if (H)
|
|
24394
|
-
return
|
|
24395
|
-
m = this.query(
|
|
24394
|
+
return $(H);
|
|
24395
|
+
m = this.query(J);
|
|
24396
24396
|
} else {
|
|
24397
|
-
let H = this.map.getLayer(
|
|
24397
|
+
let H = this.map.getLayer(J.id, "vectorId");
|
|
24398
24398
|
if (H)
|
|
24399
|
-
return
|
|
24400
|
-
m =
|
|
24399
|
+
return $(H);
|
|
24400
|
+
m = J;
|
|
24401
24401
|
}
|
|
24402
24402
|
let { value: P, url: O, id: E, title: U } = m;
|
|
24403
24403
|
new Cesium.Resource({
|
|
@@ -24511,9 +24511,9 @@ class ag {
|
|
|
24511
24511
|
console.log("测试shp矢量加载完成"), window.dynamicMasking.add(kt, JSON.parse(b));
|
|
24512
24512
|
}, 500);
|
|
24513
24513
|
Ft.readyPromise.then((kt) => {
|
|
24514
|
-
Dt(kt),
|
|
24514
|
+
Dt(kt), $(kt);
|
|
24515
24515
|
}).catch((kt) => {
|
|
24516
|
-
console.error("测试shp矢量加载失败", kt),
|
|
24516
|
+
console.error("测试shp矢量加载失败", kt), $({
|
|
24517
24517
|
tite: "【矢量】" + modelTitle + "加载失败",
|
|
24518
24518
|
type: "error",
|
|
24519
24519
|
id: modelId,
|
|
@@ -24521,7 +24521,7 @@ class ag {
|
|
|
24521
24521
|
});
|
|
24522
24522
|
});
|
|
24523
24523
|
}).catch((H) => {
|
|
24524
|
-
console.error("数据有误", H),
|
|
24524
|
+
console.error("数据有误", H), $({
|
|
24525
24525
|
tite: "【矢量】" + modelTitle + "数据有误",
|
|
24526
24526
|
type: "error",
|
|
24527
24527
|
id: modelId,
|
|
@@ -24535,16 +24535,16 @@ class ag {
|
|
|
24535
24535
|
* @param { String } modelParameter 模型属性 或者 模型id
|
|
24536
24536
|
* @param { Object } fn 自定义注册事件
|
|
24537
24537
|
*/
|
|
24538
|
-
updateData(
|
|
24539
|
-
this.vectorArr =
|
|
24538
|
+
updateData(J) {
|
|
24539
|
+
this.vectorArr = J;
|
|
24540
24540
|
}
|
|
24541
24541
|
/**
|
|
24542
24542
|
* 处理kml数据
|
|
24543
24543
|
* @param { Object } item 查询出来的对象
|
|
24544
24544
|
* @returns { Object } 样式对象
|
|
24545
24545
|
*/
|
|
24546
|
-
processingKML(
|
|
24547
|
-
let p,
|
|
24546
|
+
processingKML(J) {
|
|
24547
|
+
let p, $ = 2e3, G = !0, { kmlInfo: m } = J, {
|
|
24548
24548
|
fill: P,
|
|
24549
24549
|
areaColor: O,
|
|
24550
24550
|
areaSideColor: E,
|
|
@@ -24595,7 +24595,7 @@ class ag {
|
|
|
24595
24595
|
backgroundColor: M || "",
|
|
24596
24596
|
visibleDepth: G,
|
|
24597
24597
|
clampToGround: x || !1,
|
|
24598
|
-
disableDepthTestDistance:
|
|
24598
|
+
disableDepthTestDistance: $
|
|
24599
24599
|
};
|
|
24600
24600
|
return {
|
|
24601
24601
|
...F,
|
|
@@ -24607,16 +24607,16 @@ class ag {
|
|
|
24607
24607
|
* @param { String } id 模型id
|
|
24608
24608
|
*
|
|
24609
24609
|
*/
|
|
24610
|
-
selected(
|
|
24611
|
-
this.map.getLayer(
|
|
24610
|
+
selected(J) {
|
|
24611
|
+
this.map.getLayer(J, "vectorId").flyTo();
|
|
24612
24612
|
}
|
|
24613
24613
|
/**
|
|
24614
24614
|
* 查询矢量数据的对象
|
|
24615
24615
|
* @param { String } id 矢量id
|
|
24616
24616
|
* @returns { Object || Boolean } 查询出来的树对象 或者 false
|
|
24617
24617
|
*/
|
|
24618
|
-
query(
|
|
24619
|
-
return this.vectorArr.length == 0 ? !1 : this.vectorArr.find((p) => p.id ==
|
|
24618
|
+
query(J) {
|
|
24619
|
+
return this.vectorArr.length == 0 ? !1 : this.vectorArr.find((p) => p.id == J);
|
|
24620
24620
|
}
|
|
24621
24621
|
/**
|
|
24622
24622
|
* 批量编辑矢量
|
|
@@ -24625,13 +24625,13 @@ class ag {
|
|
|
24625
24625
|
* @param { Object } label 注记对象
|
|
24626
24626
|
* @returns { Object }
|
|
24627
24627
|
*/
|
|
24628
|
-
editVector(
|
|
24629
|
-
let G = this.map.getLayer(
|
|
24628
|
+
editVector(J, p, $) {
|
|
24629
|
+
let G = this.map.getLayer(J, "vectorId"), m = Hu(p, $);
|
|
24630
24630
|
console.log("编辑数据", m), G && (G.eachGraphic((P) => {
|
|
24631
24631
|
P.label.show === !1 && (delete P.label.outline, delete P.label.background, delete P.label.outlineColor, delete P.label.backgroundColor), P.setStyle({
|
|
24632
24632
|
...m
|
|
24633
24633
|
});
|
|
24634
|
-
}), dynamicMasking.modify(
|
|
24634
|
+
}), dynamicMasking.modify(J, m));
|
|
24635
24635
|
}
|
|
24636
24636
|
/**
|
|
24637
24637
|
* 加载国家边界线
|
|
@@ -24639,12 +24639,12 @@ class ag {
|
|
|
24639
24639
|
* @returns { any }
|
|
24640
24640
|
*/
|
|
24641
24641
|
nationalBoundaries() {
|
|
24642
|
-
let
|
|
24642
|
+
let J = "./gis/nationalBoundaries.json", p = new mars3d.layer.GeoJsonLayer({
|
|
24643
24643
|
name: "国界",
|
|
24644
|
-
url:
|
|
24645
|
-
format: (
|
|
24644
|
+
url: J,
|
|
24645
|
+
format: ($) => {
|
|
24646
24646
|
try {
|
|
24647
|
-
|
|
24647
|
+
$ = turf.simplify($, {
|
|
24648
24648
|
tolerance: 1e-5,
|
|
24649
24649
|
highQuality: !1,
|
|
24650
24650
|
mutate: !0
|
|
@@ -24652,7 +24652,7 @@ class ag {
|
|
|
24652
24652
|
} catch (G) {
|
|
24653
24653
|
console.error(G);
|
|
24654
24654
|
}
|
|
24655
|
-
return
|
|
24655
|
+
return $;
|
|
24656
24656
|
},
|
|
24657
24657
|
symbol: {
|
|
24658
24658
|
type: "polylineC",
|
|
@@ -24674,12 +24674,12 @@ class ag {
|
|
|
24674
24674
|
}
|
|
24675
24675
|
}
|
|
24676
24676
|
class lg {
|
|
24677
|
-
constructor(
|
|
24678
|
-
mars3d ? (this.map =
|
|
24679
|
-
console.error("地形服务加载失败",
|
|
24677
|
+
constructor(J, p = []) {
|
|
24678
|
+
mars3d ? (this.map = J, this.terrainProviderArr = p, this.terrainProviderId = "", this.events = {}, this.map.on(mars3d.EventType.terrainLoadError, ($) => {
|
|
24679
|
+
console.error("地形服务加载失败", $), this.hide();
|
|
24680
24680
|
}), this.map.viewer.scene.globe.tileLoadProgressEvent.addEventListener(
|
|
24681
|
-
(
|
|
24682
|
-
this.map.viewer.scene.globe.tilesLoaded && this.emit("load",
|
|
24681
|
+
($) => {
|
|
24682
|
+
this.map.viewer.scene.globe.tilesLoaded && this.emit("load", $);
|
|
24683
24683
|
}
|
|
24684
24684
|
)) : console.error("未引入指定插件");
|
|
24685
24685
|
}
|
|
@@ -24687,18 +24687,18 @@ class lg {
|
|
|
24687
24687
|
* add 添加地形
|
|
24688
24688
|
* @param { Object || String } terrainProviderParameter 地形属性 或者 地形id
|
|
24689
24689
|
*/
|
|
24690
|
-
add(
|
|
24691
|
-
let { url: p, id:
|
|
24692
|
-
if (this.terrainProviderId ==
|
|
24690
|
+
add(J) {
|
|
24691
|
+
let { url: p, id: $ } = J;
|
|
24692
|
+
if (this.terrainProviderId == $ && this.map.terrainProvider._layers)
|
|
24693
24693
|
return !1;
|
|
24694
24694
|
this.map.terrainProvider = mars3d.LayerUtil.createTerrainProvider({
|
|
24695
|
-
imageXyzId:
|
|
24695
|
+
imageXyzId: $,
|
|
24696
24696
|
type: "xyz",
|
|
24697
24697
|
url: p,
|
|
24698
24698
|
//item.gisInfo.gisUrl,
|
|
24699
24699
|
requestVertexNormals: !0,
|
|
24700
24700
|
requestMetadata: !0
|
|
24701
|
-
}), this.terrainProviderId =
|
|
24701
|
+
}), this.terrainProviderId = $;
|
|
24702
24702
|
}
|
|
24703
24703
|
/**
|
|
24704
24704
|
* 开启地形
|
|
@@ -24721,8 +24721,8 @@ class lg {
|
|
|
24721
24721
|
* @param { function } fn - 回调函数
|
|
24722
24722
|
* @returns { any }
|
|
24723
24723
|
*/
|
|
24724
|
-
on(
|
|
24725
|
-
|
|
24724
|
+
on(J, p) {
|
|
24725
|
+
J == "load" ? this.events[J] ? this.events[J].push(p) : this.events[J] = [p] : console.log("未开放自定义");
|
|
24726
24726
|
}
|
|
24727
24727
|
/**
|
|
24728
24728
|
* events
|
|
@@ -24730,8 +24730,8 @@ class lg {
|
|
|
24730
24730
|
* @param { object | array } event - 事件名
|
|
24731
24731
|
* @returns { any }
|
|
24732
24732
|
*/
|
|
24733
|
-
emit(
|
|
24734
|
-
this.events[
|
|
24733
|
+
emit(J, ...p) {
|
|
24734
|
+
this.events[J] != null && this.events[J].forEach(($) => $(...p));
|
|
24735
24735
|
}
|
|
24736
24736
|
/**
|
|
24737
24737
|
* events
|
|
@@ -24740,8 +24740,8 @@ class lg {
|
|
|
24740
24740
|
* @param { function } callback - 回调函数
|
|
24741
24741
|
* @returns { any }
|
|
24742
24742
|
*/
|
|
24743
|
-
off(
|
|
24744
|
-
this.events[
|
|
24743
|
+
off(J, p) {
|
|
24744
|
+
this.events[J] = this.events[J].filter(($) => $ !== p);
|
|
24745
24745
|
}
|
|
24746
24746
|
/**
|
|
24747
24747
|
* events
|
|
@@ -24750,24 +24750,24 @@ class lg {
|
|
|
24750
24750
|
* @param { function } fn - 回调函数
|
|
24751
24751
|
* @returns { any }
|
|
24752
24752
|
*/
|
|
24753
|
-
once(
|
|
24754
|
-
const
|
|
24755
|
-
p(), this.off(
|
|
24753
|
+
once(J, p) {
|
|
24754
|
+
const $ = () => {
|
|
24755
|
+
p(), this.off(J, $);
|
|
24756
24756
|
};
|
|
24757
|
-
this.on(
|
|
24757
|
+
this.on(J, $);
|
|
24758
24758
|
}
|
|
24759
24759
|
/**
|
|
24760
24760
|
* 地形裁剪
|
|
24761
24761
|
*/
|
|
24762
|
-
addClip(
|
|
24763
|
-
return new Promise((p,
|
|
24764
|
-
window.bimClip ? p(bimClip.clipGisAdd(
|
|
24762
|
+
addClip(J) {
|
|
24763
|
+
return new Promise((p, $) => {
|
|
24764
|
+
window.bimClip ? p(bimClip.clipGisAdd(J)) : $("挖洞工具未初始化");
|
|
24765
24765
|
});
|
|
24766
24766
|
}
|
|
24767
24767
|
}
|
|
24768
24768
|
class hg {
|
|
24769
|
-
constructor(
|
|
24770
|
-
mars3d ? (this.map =
|
|
24769
|
+
constructor(J, p = []) {
|
|
24770
|
+
mars3d ? (this.map = J, this.elevationImageArr = p, this.elevationImageLayer, this.form = {
|
|
24771
24771
|
brightnessVal: 1.3,
|
|
24772
24772
|
//环境亮度配置
|
|
24773
24773
|
msaaSamples: 4,
|
|
@@ -24792,8 +24792,8 @@ class hg {
|
|
|
24792
24792
|
* 给影像数组添加数据
|
|
24793
24793
|
* @param { Object } data 集合数据
|
|
24794
24794
|
*/
|
|
24795
|
-
pushVector(
|
|
24796
|
-
this.elevationImageArr.push(
|
|
24795
|
+
pushVector(J) {
|
|
24796
|
+
this.elevationImageArr.push(J);
|
|
24797
24797
|
}
|
|
24798
24798
|
/**
|
|
24799
24799
|
* 添加影像
|
|
@@ -24801,9 +24801,9 @@ class hg {
|
|
|
24801
24801
|
* @param { Object } fn 监听函数
|
|
24802
24802
|
*
|
|
24803
24803
|
*/
|
|
24804
|
-
add(
|
|
24805
|
-
let
|
|
24806
|
-
if (typeof
|
|
24804
|
+
add(J, p) {
|
|
24805
|
+
let $;
|
|
24806
|
+
if (typeof J != "object" ? $ = J : $ = J.imageXyzId, this.map.getLayer($, "imageXyzId"))
|
|
24807
24807
|
return !1;
|
|
24808
24808
|
const {
|
|
24809
24809
|
layerOpacity: G,
|
|
@@ -24816,13 +24816,13 @@ class hg {
|
|
|
24816
24816
|
} = this.exposureEnvironmentSettings();
|
|
24817
24817
|
return new Promise((H, K) => {
|
|
24818
24818
|
let B, q, b, A, d;
|
|
24819
|
-
if (typeof
|
|
24820
|
-
let g = this.query(
|
|
24819
|
+
if (typeof J != "object") {
|
|
24820
|
+
let g = this.query(J);
|
|
24821
24821
|
g || K("缺少树结构");
|
|
24822
24822
|
let { gisInfo: M } = g;
|
|
24823
24823
|
B = M.id, b = M.order, q = g.url, A = M.minLevel, d = M.maxLevel;
|
|
24824
24824
|
} else
|
|
24825
|
-
B =
|
|
24825
|
+
B = J.imageXyzId, q = J.url, b = J.zIndex, A = J.minimumLevel, d = J.maximumLevel;
|
|
24826
24826
|
this.elevationImageLayer = new mars3d.layer.XyzLayer({
|
|
24827
24827
|
imageXyzId: B,
|
|
24828
24828
|
type: "xyz",
|
|
@@ -24857,16 +24857,16 @@ class hg {
|
|
|
24857
24857
|
* @param { String } id 影像id
|
|
24858
24858
|
*
|
|
24859
24859
|
*/
|
|
24860
|
-
remove(
|
|
24861
|
-
console.log(
|
|
24860
|
+
remove(J) {
|
|
24861
|
+
console.log(J), this.map.removeLayer(this.map.getLayer(J, "imageXyzId"));
|
|
24862
24862
|
}
|
|
24863
24863
|
/**
|
|
24864
24864
|
* 查询影像方法
|
|
24865
24865
|
* @param { String } id 模型属性
|
|
24866
24866
|
* @returns { Object || Boolean } 查询出来的对象 或者 false
|
|
24867
24867
|
*/
|
|
24868
|
-
query(
|
|
24869
|
-
return this.elevationImageArr.length == 0 ? !1 : this.elevationImageArr.find((p) => p.id ==
|
|
24868
|
+
query(J) {
|
|
24869
|
+
return this.elevationImageArr.length == 0 ? !1 : this.elevationImageArr.find((p) => p.id == J);
|
|
24870
24870
|
}
|
|
24871
24871
|
/**
|
|
24872
24872
|
*
|
|
@@ -24886,23 +24886,23 @@ class hg {
|
|
|
24886
24886
|
}
|
|
24887
24887
|
}
|
|
24888
24888
|
class ug {
|
|
24889
|
-
constructor(
|
|
24889
|
+
constructor(J, p, ...$) {
|
|
24890
24890
|
/**
|
|
24891
24891
|
* 手动释放 1秒防抖
|
|
24892
24892
|
* @param { object } data - 模型的树形结构
|
|
24893
24893
|
* @returns { any }
|
|
24894
24894
|
*/
|
|
24895
24895
|
kh(this, "manualFreed", Fh.debounce(() => {
|
|
24896
|
-
let { lng:
|
|
24896
|
+
let { lng: J, lat: p, alt: $, pitch: G } = this.map.getCameraView(), m;
|
|
24897
24897
|
this.modelArray.forEach((P) => {
|
|
24898
24898
|
m = P.releasedDistance ? P.releasedDistance : 1e4, this.disTance(
|
|
24899
|
-
[
|
|
24899
|
+
[J, p, $],
|
|
24900
24900
|
[P.center._lng, P.center._lat, P.center._alt],
|
|
24901
24901
|
this.calculateDistance(G, m)
|
|
24902
24902
|
) ? this.map.getLayer(P.id, "modelId") && this.emit("leave", P) : this.map.getLayer(P.id, "modelId") || this.emit("enter", P);
|
|
24903
24903
|
});
|
|
24904
24904
|
}, 200));
|
|
24905
|
-
mars3d ? (
|
|
24905
|
+
mars3d ? (J && J != null && (this.modelArray = J), this.showModelArray = [], p && p != null && (this.map = p), this.Cesium = mars3d.Cesium, this.events = {}) : console.error("未引入指定插件");
|
|
24906
24906
|
}
|
|
24907
24907
|
/**
|
|
24908
24908
|
* events
|
|
@@ -24911,8 +24911,8 @@ class ug {
|
|
|
24911
24911
|
* @param { function } fn - 回调函数
|
|
24912
24912
|
* @returns { any }
|
|
24913
24913
|
*/
|
|
24914
|
-
on(
|
|
24915
|
-
|
|
24914
|
+
on(J, p) {
|
|
24915
|
+
J == "enter" || J == "leave" ? this.events[J] ? this.events[J].push(p) : this.events[J] = [p] : console.log("未开放自定义");
|
|
24916
24916
|
}
|
|
24917
24917
|
/**
|
|
24918
24918
|
* events
|
|
@@ -24920,8 +24920,8 @@ class ug {
|
|
|
24920
24920
|
* @param { object | array } event - 事件名
|
|
24921
24921
|
* @returns { any }
|
|
24922
24922
|
*/
|
|
24923
|
-
emit(
|
|
24924
|
-
this.events[
|
|
24923
|
+
emit(J, ...p) {
|
|
24924
|
+
this.events[J] != null && this.events[J].forEach(($) => $(...p));
|
|
24925
24925
|
}
|
|
24926
24926
|
/**
|
|
24927
24927
|
* events
|
|
@@ -24930,8 +24930,8 @@ class ug {
|
|
|
24930
24930
|
* @param { function } callback - 回调函数
|
|
24931
24931
|
* @returns { any }
|
|
24932
24932
|
*/
|
|
24933
|
-
off(
|
|
24934
|
-
this.events[
|
|
24933
|
+
off(J, p) {
|
|
24934
|
+
this.events[J] = this.events[J].filter(($) => $ !== p);
|
|
24935
24935
|
}
|
|
24936
24936
|
/**
|
|
24937
24937
|
* events
|
|
@@ -24940,11 +24940,11 @@ class ug {
|
|
|
24940
24940
|
* @param { function } fn - 回调函数
|
|
24941
24941
|
* @returns { any }
|
|
24942
24942
|
*/
|
|
24943
|
-
once(
|
|
24944
|
-
const
|
|
24945
|
-
p(), this.off(
|
|
24943
|
+
once(J, p) {
|
|
24944
|
+
const $ = () => {
|
|
24945
|
+
p(), this.off(J, $);
|
|
24946
24946
|
};
|
|
24947
|
-
this.on(
|
|
24947
|
+
this.on(J, $);
|
|
24948
24948
|
}
|
|
24949
24949
|
/**
|
|
24950
24950
|
* modelArray
|
|
@@ -24952,8 +24952,8 @@ class ug {
|
|
|
24952
24952
|
* @param { string | number } key - 需要查询对象的key 目前只有 modelArray 和 showModelIdArray
|
|
24953
24953
|
* @returns { any }
|
|
24954
24954
|
*/
|
|
24955
|
-
say(
|
|
24956
|
-
return this[
|
|
24955
|
+
say(J) {
|
|
24956
|
+
return this[J];
|
|
24957
24957
|
}
|
|
24958
24958
|
/**
|
|
24959
24959
|
* modelArray
|
|
@@ -24962,8 +24962,8 @@ class ug {
|
|
|
24962
24962
|
* @param { object | array } item - 添加的数据item
|
|
24963
24963
|
* @returns { any }
|
|
24964
24964
|
*/
|
|
24965
|
-
add(
|
|
24966
|
-
this[
|
|
24965
|
+
add(J, p) {
|
|
24966
|
+
this[J].push(p);
|
|
24967
24967
|
}
|
|
24968
24968
|
/**
|
|
24969
24969
|
* modelArray
|
|
@@ -24972,9 +24972,9 @@ class ug {
|
|
|
24972
24972
|
* @param { object | array } item - 添加的数据item
|
|
24973
24973
|
* @returns { any }
|
|
24974
24974
|
*/
|
|
24975
|
-
remove(
|
|
24976
|
-
this[
|
|
24977
|
-
return
|
|
24975
|
+
remove(J, p) {
|
|
24976
|
+
this[J] = this[J].filter(function($) {
|
|
24977
|
+
return $ !== p;
|
|
24978
24978
|
});
|
|
24979
24979
|
}
|
|
24980
24980
|
/**
|
|
@@ -24995,12 +24995,12 @@ class ug {
|
|
|
24995
24995
|
* @param { object | array } data - 更新的数据
|
|
24996
24996
|
* @returns { object }
|
|
24997
24997
|
*/
|
|
24998
|
-
updateCustomExcavationDetails(
|
|
24998
|
+
updateCustomExcavationDetails(J, p, $, G = [], m = {}) {
|
|
24999
24999
|
let P, O, E;
|
|
25000
|
-
switch (P = this.modelArray.find((U) => U.modelId ==
|
|
25000
|
+
switch (P = this.modelArray.find((U) => U.modelId == J).customize.bimModelExcavationDetails, E = P.find((U, Y) => {
|
|
25001
25001
|
if (U.id == p)
|
|
25002
25002
|
return O = Y, U;
|
|
25003
|
-
}),
|
|
25003
|
+
}), $) {
|
|
25004
25004
|
case "delete":
|
|
25005
25005
|
P.splice(O, 1);
|
|
25006
25006
|
break;
|
|
@@ -25034,13 +25034,13 @@ class ug {
|
|
|
25034
25034
|
* @returns { any }
|
|
25035
25035
|
*/
|
|
25036
25036
|
freed() {
|
|
25037
|
-
let { alt:
|
|
25038
|
-
|
|
25039
|
-
let { lng: p, lat:
|
|
25037
|
+
let { alt: J } = this.map.getCameraView();
|
|
25038
|
+
J < 2e4 && (this.freed = Fh.throttle(() => {
|
|
25039
|
+
let { lng: p, lat: $, alt: G, pitch: m } = this.map.getCameraView();
|
|
25040
25040
|
this.modelArray && this.modelArray.forEach((P) => {
|
|
25041
25041
|
let O = P.bimModel.releasedDistance ? P.bimModel.releasedDistance : 1e4;
|
|
25042
25042
|
P.center && this.disTance(
|
|
25043
|
-
[p,
|
|
25043
|
+
[p, $, G],
|
|
25044
25044
|
[P.center._lng, P.center._lat, P.center._alt],
|
|
25045
25045
|
this.calculateDistance(m, O)
|
|
25046
25046
|
) ? this.map.getLayer(P.id, "modelId") && this.emit("leave", P) : this.showModelArray.indexOf(P.id) >= 0 && !this.map.getLayer(P.id, "modelId") && this.emit("enter", P);
|
|
@@ -25054,14 +25054,14 @@ class ug {
|
|
|
25054
25054
|
* @param { string } type - 查找类型
|
|
25055
25055
|
* @returns { boolean }
|
|
25056
25056
|
*/
|
|
25057
|
-
findPnodeId(
|
|
25057
|
+
findPnodeId(J, p, $ = "id") {
|
|
25058
25058
|
let G;
|
|
25059
|
-
if (
|
|
25060
|
-
for (var m = 0; m <
|
|
25061
|
-
let P =
|
|
25062
|
-
if (P[
|
|
25059
|
+
if (J) {
|
|
25060
|
+
for (var m = 0; m < J.length; m++) {
|
|
25061
|
+
let P = J[m];
|
|
25062
|
+
if (P[$] == p)
|
|
25063
25063
|
return G = P, G;
|
|
25064
|
-
if (P.children && P.children.length > 0 && (G = this.findPnodeId(P.children, p,
|
|
25064
|
+
if (P.children && P.children.length > 0 && (G = this.findPnodeId(P.children, p, $), G))
|
|
25065
25065
|
return G;
|
|
25066
25066
|
}
|
|
25067
25067
|
return G;
|
|
@@ -25075,9 +25075,9 @@ class ug {
|
|
|
25075
25075
|
* @param { number } limit - 设置的长度
|
|
25076
25076
|
* @returns { boolean }
|
|
25077
25077
|
*/
|
|
25078
|
-
disTance(
|
|
25078
|
+
disTance(J, p, $) {
|
|
25079
25079
|
let G, m, P;
|
|
25080
|
-
return G = Cesium.Cartesian3.fromDegrees(
|
|
25080
|
+
return G = Cesium.Cartesian3.fromDegrees(...J), m = Cesium.Cartesian3.fromDegrees(...p), P = Cesium.Cartesian3.distance(G, m), P > $;
|
|
25081
25081
|
}
|
|
25082
25082
|
/**
|
|
25083
25083
|
* @function 获取模型的可视范围
|
|
@@ -25085,16 +25085,16 @@ class ug {
|
|
|
25085
25085
|
* @param { number } maxDistance 最大可视距离
|
|
25086
25086
|
* @returns { number } 当前可视距离
|
|
25087
25087
|
* */
|
|
25088
|
-
calculateDistance(
|
|
25089
|
-
let
|
|
25090
|
-
|
|
25091
|
-
let G = (p - p / 5) * (Math.abs(
|
|
25088
|
+
calculateDistance(J, p) {
|
|
25089
|
+
let $ = (J + 180) % 360 - 180;
|
|
25090
|
+
$ = Math.max(-90, Math.min($, 90));
|
|
25091
|
+
let G = (p - p / 5) * (Math.abs($) / 90) + p / 5;
|
|
25092
25092
|
return Math.round(G);
|
|
25093
25093
|
}
|
|
25094
25094
|
}
|
|
25095
25095
|
class cg {
|
|
25096
|
-
constructor(
|
|
25097
|
-
mars3d ? (this.map =
|
|
25096
|
+
constructor(J, p = [], $) {
|
|
25097
|
+
mars3d ? (this.map = J, this.entityArr = p, this.entityLayer = J.getLayer("bimEntity", "entityId"), this.entityItem = null, this.events = {}) : console.error("未引入指定插件");
|
|
25098
25098
|
}
|
|
25099
25099
|
/**
|
|
25100
25100
|
* events
|
|
@@ -25103,8 +25103,8 @@ class cg {
|
|
|
25103
25103
|
* @param { function } fn - 回调函数
|
|
25104
25104
|
* @returns { any }
|
|
25105
25105
|
*/
|
|
25106
|
-
on(
|
|
25107
|
-
|
|
25106
|
+
on(J, p) {
|
|
25107
|
+
J == "change" ? this.events[J] ? this.events[J].push(p) : this.events[J] = [p] : console.log("未开放自定义");
|
|
25108
25108
|
}
|
|
25109
25109
|
/**
|
|
25110
25110
|
* events
|
|
@@ -25112,8 +25112,8 @@ class cg {
|
|
|
25112
25112
|
* @param { object | array } event - 事件名
|
|
25113
25113
|
* @returns { any }
|
|
25114
25114
|
*/
|
|
25115
|
-
emit(
|
|
25116
|
-
this.events[
|
|
25115
|
+
emit(J, ...p) {
|
|
25116
|
+
this.events[J] != null && this.events[J].forEach(($) => $(...p));
|
|
25117
25117
|
}
|
|
25118
25118
|
/**
|
|
25119
25119
|
* events
|
|
@@ -25122,8 +25122,8 @@ class cg {
|
|
|
25122
25122
|
* @param { function } callback - 回调函数
|
|
25123
25123
|
* @returns { any }
|
|
25124
25124
|
*/
|
|
25125
|
-
off(
|
|
25126
|
-
this.events[
|
|
25125
|
+
off(J, p) {
|
|
25126
|
+
this.events[J] = this.events[J].filter(($) => $ !== p);
|
|
25127
25127
|
}
|
|
25128
25128
|
/**
|
|
25129
25129
|
* events
|
|
@@ -25132,35 +25132,35 @@ class cg {
|
|
|
25132
25132
|
* @param { function } fn - 回调函数
|
|
25133
25133
|
* @returns { any }
|
|
25134
25134
|
*/
|
|
25135
|
-
once(
|
|
25136
|
-
const
|
|
25137
|
-
p(), this.off(
|
|
25135
|
+
once(J, p) {
|
|
25136
|
+
const $ = () => {
|
|
25137
|
+
p(), this.off(J, $);
|
|
25138
25138
|
};
|
|
25139
|
-
this.on(
|
|
25139
|
+
this.on(J, $);
|
|
25140
25140
|
}
|
|
25141
25141
|
/**
|
|
25142
25142
|
* 添加标会实例
|
|
25143
25143
|
* @param { String } modelParameter 标绘实例id 或者 标绘参数
|
|
25144
25144
|
*
|
|
25145
25145
|
*/
|
|
25146
|
-
add(
|
|
25147
|
-
return new Promise((
|
|
25146
|
+
add(J, p) {
|
|
25147
|
+
return new Promise(($, G) => {
|
|
25148
25148
|
var m;
|
|
25149
25149
|
if (this.entityLayer) {
|
|
25150
25150
|
let P, O, E;
|
|
25151
|
-
if (typeof
|
|
25152
|
-
|
|
25151
|
+
if (typeof J != "object" ? (P = this.entityLayer.getGraphicByAttr(
|
|
25152
|
+
J,
|
|
25153
25153
|
"entityId"
|
|
25154
|
-
), O = this.query(
|
|
25155
|
-
|
|
25154
|
+
), O = this.query(J), E = JSON.parse(O.bimPlanPainting.graphic), E.attr = E.attr || {}, E.attr.entityId = E.attr.entityId || J) : (P = this.entityLayer.getGraphicByAttr(
|
|
25155
|
+
J.id,
|
|
25156
25156
|
"entityId"
|
|
25157
|
-
), E = JSON.parse(JSON.stringify(
|
|
25158
|
-
entityId:
|
|
25157
|
+
), E = JSON.parse(JSON.stringify(J)), E.attr = E.attr || {}, E.attr.entityId = E.attr.entityId || p, E.attr == null ? E.attr = {
|
|
25158
|
+
entityId: J
|
|
25159
25159
|
} : ((m = E.attr) == null ? void 0 : m.entityId) == null && p && (E.attr.entityId = p)), P)
|
|
25160
|
-
return
|
|
25161
|
-
console.log(E), this.entityLayer.addGraphic(E),
|
|
25160
|
+
return $();
|
|
25161
|
+
console.log(E), this.entityLayer.addGraphic(E), $(E);
|
|
25162
25162
|
} else
|
|
25163
|
-
|
|
25163
|
+
$(), console.error("未初始化标绘实例图层");
|
|
25164
25164
|
});
|
|
25165
25165
|
}
|
|
25166
25166
|
/**
|
|
@@ -25168,25 +25168,25 @@ class cg {
|
|
|
25168
25168
|
* @param { String } id 矢量id
|
|
25169
25169
|
* @returns { Object || Boolean } 查询出来的树对象 或者 false
|
|
25170
25170
|
*/
|
|
25171
|
-
query(
|
|
25172
|
-
return this.entityArr.length == 0 ? !1 : this.entityArr.find((p) => p.id ==
|
|
25171
|
+
query(J) {
|
|
25172
|
+
return this.entityArr.length == 0 ? !1 : this.entityArr.find((p) => p.id == J);
|
|
25173
25173
|
}
|
|
25174
25174
|
/**
|
|
25175
25175
|
* 查询矢量数据的实体
|
|
25176
25176
|
* @param { String } id 矢量id
|
|
25177
25177
|
* @returns { Object || Boolean } 返回标绘实体
|
|
25178
25178
|
*/
|
|
25179
|
-
queryEntity(
|
|
25179
|
+
queryEntity(J) {
|
|
25180
25180
|
if (bimEntity.entityLayer)
|
|
25181
|
-
return bimEntity.entityLayer.getGraphicByAttr(
|
|
25181
|
+
return bimEntity.entityLayer.getGraphicByAttr(J, "entityId");
|
|
25182
25182
|
}
|
|
25183
25183
|
/**
|
|
25184
25184
|
* 选中标绘
|
|
25185
25185
|
* @param { String } id 模型id
|
|
25186
25186
|
*
|
|
25187
25187
|
*/
|
|
25188
|
-
selected(
|
|
25189
|
-
let p = this.entityLayer.getGraphicByAttr(
|
|
25188
|
+
selected(J) {
|
|
25189
|
+
let p = this.entityLayer.getGraphicByAttr(J, "entityId");
|
|
25190
25190
|
p._point && p._point._alt > 0 ? p.flyTo({
|
|
25191
25191
|
radius: p._point._alt + 500
|
|
25192
25192
|
}) : p.flyTo();
|
|
@@ -25196,8 +25196,8 @@ class cg {
|
|
|
25196
25196
|
* @param { String } id 模型id
|
|
25197
25197
|
*
|
|
25198
25198
|
*/
|
|
25199
|
-
remove(
|
|
25200
|
-
this.entityLayer.getGraphicByAttr(
|
|
25199
|
+
remove(J) {
|
|
25200
|
+
this.entityLayer.getGraphicByAttr(J, "entityId") && (this.entityLayer.getGraphicByAttr(J, "entityId").remove(), this.entityItem && this.entityItem.options.attr.entityId == J && (this.entityItem = null));
|
|
25201
25201
|
}
|
|
25202
25202
|
/**
|
|
25203
25203
|
* 移除当前标绘对象
|
|
@@ -25212,16 +25212,16 @@ class cg {
|
|
|
25212
25212
|
* @param { String } modelParameter 模型属性 或者 模型id
|
|
25213
25213
|
* @param { Object } fn 自定义注册事件
|
|
25214
25214
|
*/
|
|
25215
|
-
updateData(
|
|
25216
|
-
this.entityArr =
|
|
25215
|
+
updateData(J) {
|
|
25216
|
+
this.entityArr = J;
|
|
25217
25217
|
}
|
|
25218
25218
|
/**
|
|
25219
25219
|
* 开始绘制标绘
|
|
25220
25220
|
* @param { Object } data 标绘参数
|
|
25221
25221
|
*
|
|
25222
25222
|
*/
|
|
25223
|
-
startDrawGraphic(
|
|
25224
|
-
let { type: p, style:
|
|
25223
|
+
startDrawGraphic(J) {
|
|
25224
|
+
let { type: p, style: $ } = J;
|
|
25225
25225
|
if (p == "div") {
|
|
25226
25226
|
let {
|
|
25227
25227
|
title: G,
|
|
@@ -25237,7 +25237,7 @@ class cg {
|
|
|
25237
25237
|
distanceDisplayCondition_far: q,
|
|
25238
25238
|
distanceDisplayCondition_near: b,
|
|
25239
25239
|
clampToGround: A
|
|
25240
|
-
} =
|
|
25240
|
+
} = $, d = {
|
|
25241
25241
|
type: "div",
|
|
25242
25242
|
style: {
|
|
25243
25243
|
pointerEvents: !0,
|
|
@@ -25267,7 +25267,7 @@ class cg {
|
|
|
25267
25267
|
}, 500);
|
|
25268
25268
|
});
|
|
25269
25269
|
} else
|
|
25270
|
-
console.log(
|
|
25270
|
+
console.log(J), this.entityLayer.startDraw(J).then((G) => {
|
|
25271
25271
|
setTimeout(() => {
|
|
25272
25272
|
this.entityItem = G, this.entityLayer.startEditing(G);
|
|
25273
25273
|
}, 500);
|
|
@@ -25277,16 +25277,16 @@ class cg {
|
|
|
25277
25277
|
* 停止绘制标绘
|
|
25278
25278
|
*
|
|
25279
25279
|
*/
|
|
25280
|
-
stopDraw() {
|
|
25281
|
-
this.entityLayer && this.entityLayer.stopDraw(), this.entityItem && (this.entityItem.stopEditing(), this.entityItem.remove(), this.entityItem = null);
|
|
25280
|
+
stopDraw(J = !0) {
|
|
25281
|
+
this.entityLayer && this.entityLayer.stopDraw(), J && this.entityItem && (this.entityItem.stopEditing(), this.entityItem.remove(), this.entityItem = null);
|
|
25282
25282
|
}
|
|
25283
25283
|
/**
|
|
25284
25284
|
* 更新标绘
|
|
25285
25285
|
* @param { Object } data 标绘参数
|
|
25286
25286
|
*
|
|
25287
25287
|
*/
|
|
25288
|
-
updateEntityItem(
|
|
25289
|
-
let p = this.entityLayer.getGraphicByAttr(
|
|
25288
|
+
updateEntityItem(J) {
|
|
25289
|
+
let p = this.entityLayer.getGraphicByAttr(J, "entityId");
|
|
25290
25290
|
p && (this.entityItem = p);
|
|
25291
25291
|
}
|
|
25292
25292
|
/**
|
|
@@ -25296,8 +25296,8 @@ class cg {
|
|
|
25296
25296
|
* @param { Object } label 标绘label
|
|
25297
25297
|
* @param { String } 自定义类型 目前有div
|
|
25298
25298
|
*/
|
|
25299
|
-
edit(
|
|
25300
|
-
let m = Hu(p,
|
|
25299
|
+
edit(J, p, $, G) {
|
|
25300
|
+
let m = Hu(p, $);
|
|
25301
25301
|
p.vectorStyle && this.entityItem && (console.log("edit", p.vectorStyle.divType, this.entityItem), p.vectorStyle.divType == 5 ? this.entityItem.setStyle({
|
|
25302
25302
|
...m,
|
|
25303
25303
|
horizontalOrigin: Cesium.HorizontalOrigin.LEFT
|
|
@@ -25310,8 +25310,8 @@ class cg {
|
|
|
25310
25310
|
* 开启拖动/关闭拖动
|
|
25311
25311
|
* @param { Boolean } isEnableDragging 是否开启
|
|
25312
25312
|
*/
|
|
25313
|
-
enableDragging(
|
|
25314
|
-
|
|
25313
|
+
enableDragging(J = !0) {
|
|
25314
|
+
J ? this.entityLayer.startEditing(this.entityItem) : (this.entityLayer.stopDraw(), this.entityItem && this.entityItem.stopEditing());
|
|
25315
25315
|
}
|
|
25316
25316
|
/**
|
|
25317
25317
|
* 添加右键菜单
|
|
@@ -25321,8 +25321,8 @@ class cg {
|
|
|
25321
25321
|
this.entityLayer.bindContextMenu([
|
|
25322
25322
|
{
|
|
25323
25323
|
text: "编辑对象",
|
|
25324
|
-
callback: (
|
|
25325
|
-
this.emit("change",
|
|
25324
|
+
callback: (J) => {
|
|
25325
|
+
this.emit("change", J);
|
|
25326
25326
|
}
|
|
25327
25327
|
}
|
|
25328
25328
|
]);
|
|
@@ -25339,13 +25339,13 @@ class cg {
|
|
|
25339
25339
|
* @param { String } htmlString HTML字符串
|
|
25340
25340
|
* @returns { Object } 返回的是表单数据
|
|
25341
25341
|
*/
|
|
25342
|
-
processDivData(
|
|
25342
|
+
processDivData(J) {
|
|
25343
25343
|
let p = {
|
|
25344
25344
|
"--theme-color1": "theme_color",
|
|
25345
25345
|
"--theme-font-color1": "font_color",
|
|
25346
25346
|
"--theme-color2": "theme_color2",
|
|
25347
25347
|
"--theme-color3": "theme_color3"
|
|
25348
|
-
},
|
|
25348
|
+
}, $ = {
|
|
25349
25349
|
title: "",
|
|
25350
25350
|
theme_color: "",
|
|
25351
25351
|
font_color: "",
|
|
@@ -25354,11 +25354,11 @@ class cg {
|
|
|
25354
25354
|
divStyle: {}
|
|
25355
25355
|
};
|
|
25356
25356
|
const G = document.createElement("div");
|
|
25357
|
-
G.innerHTML =
|
|
25357
|
+
G.innerHTML = J;
|
|
25358
25358
|
const m = G.querySelector(".entity-div-style");
|
|
25359
25359
|
return console.log("解耦", m), Object.keys(p).forEach((P) => {
|
|
25360
|
-
P == "--theme-color2" || P == "--theme-color3" ?
|
|
25361
|
-
}),
|
|
25360
|
+
P == "--theme-color2" || P == "--theme-color3" ? $.divStyle[p[P]] = m.style.getPropertyValue(P) || "#fff" : $[p[P]] = m.style.getPropertyValue(P);
|
|
25361
|
+
}), $.title = m.querySelector(".title") ? m.querySelector(".title").innerText : "标题", $.content = m.querySelector(".content") ? m.querySelector(".content").innerText : "内容", $.divType = m.classList[1] ? m.classList[1].replace("entity-div-style", "") : "", $;
|
|
25362
25362
|
}
|
|
25363
25363
|
/**
|
|
25364
25364
|
* 更新html数据
|
|
@@ -25366,33 +25366,33 @@ class cg {
|
|
|
25366
25366
|
* @param { Object } list 配合类型的样式参数
|
|
25367
25367
|
* @returns { Object } html 字符串
|
|
25368
25368
|
*/
|
|
25369
|
-
updateHtml(
|
|
25370
|
-
let { theme_color:
|
|
25371
|
-
switch (
|
|
25369
|
+
updateHtml(J, p) {
|
|
25370
|
+
let { theme_color: $, font_color: G, title: m, content: P, divStyle: O } = p, { theme_color2: E, theme_color3: U } = O, Y = "";
|
|
25371
|
+
switch (J) {
|
|
25372
25372
|
case "1":
|
|
25373
|
-
Y = `<div class="entity-div-style entity-div-style1" style="--theme-color1:${
|
|
25373
|
+
Y = `<div class="entity-div-style entity-div-style1" style="--theme-color1:${$};--theme-font-color1:${G};">
|
|
25374
25374
|
<div class="title">${m}</div>
|
|
25375
25375
|
</div>`;
|
|
25376
25376
|
break;
|
|
25377
25377
|
case "2":
|
|
25378
|
-
Y = `<div class="entity-div-style entity-div-style2" style="--theme-color1:${
|
|
25378
|
+
Y = `<div class="entity-div-style entity-div-style2" style="--theme-color1:${$};--theme-font-color1:${G};">
|
|
25379
25379
|
<div class="title">${m}</div>
|
|
25380
25380
|
<div class="mars3d-divUpLabel-line"></div>
|
|
25381
25381
|
</div>`;
|
|
25382
25382
|
break;
|
|
25383
25383
|
case "3":
|
|
25384
|
-
Y = `<div class="entity-div-style entity-div-style3" style="--theme-color1:${
|
|
25384
|
+
Y = `<div class="entity-div-style entity-div-style3" style="--theme-color1:${$};--theme-font-color1:${G};--theme-color2:${E};--theme-color3:${U}">
|
|
25385
25385
|
<div class="image"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div>
|
|
25386
25386
|
<div class="infotop"><div class="title">${m}</div><div class="content overflow-auto scrollbar h-full">${P}</div></div>
|
|
25387
25387
|
</div >`;
|
|
25388
25388
|
break;
|
|
25389
25389
|
case "4":
|
|
25390
|
-
Y = `<div class="entity-div-style entity-div-style4" style="--theme-color1:${
|
|
25390
|
+
Y = `<div class="entity-div-style entity-div-style4" style="--theme-color1:${$};--theme-font-color1:${G};">
|
|
25391
25391
|
<div class="title">${m}</div>
|
|
25392
25392
|
</div >`;
|
|
25393
25393
|
break;
|
|
25394
25394
|
case "5":
|
|
25395
|
-
Y = `<div class="entity-div-style entity-div-style5 marsTiltPanel marsTiltPanel-theme-green" style="--theme-color1:${
|
|
25395
|
+
Y = `<div class="entity-div-style entity-div-style5 marsTiltPanel marsTiltPanel-theme-green" style="--theme-color1:${$};--theme-font-color1:${G};--theme-color2:${E};">
|
|
25396
25396
|
<div class="marsTiltPanel-wrap">
|
|
25397
25397
|
<div class="area">
|
|
25398
25398
|
<div class="arrow-lt"></div>
|
|
@@ -25413,12 +25413,12 @@ class cg {
|
|
|
25413
25413
|
</div >`;
|
|
25414
25414
|
break;
|
|
25415
25415
|
case "6":
|
|
25416
|
-
Y = `<div class="entity-div-style entity-div-style6" style="--theme-color1:${
|
|
25416
|
+
Y = `<div class="entity-div-style entity-div-style6" style="--theme-color1:${$};--theme-font-color1:${G};--theme-color2:${E};">
|
|
25417
25417
|
<div class="title">${m}</div>
|
|
25418
25418
|
</div >`;
|
|
25419
25419
|
break;
|
|
25420
25420
|
case "7":
|
|
25421
|
-
Y = `<div class="entity-div-style entity-div-style7" style="--theme-color1:${
|
|
25421
|
+
Y = `<div class="entity-div-style entity-div-style7" style="--theme-color1:${$};--theme-font-color1:${G};">
|
|
25422
25422
|
<div class="title">${m}</div>
|
|
25423
25423
|
<div class="pile-number">
|
|
25424
25424
|
<div class="circular"></div>
|
|
@@ -25445,14 +25445,14 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js
|
|
|
25445
25445
|
JSZip uses the library pako released under the MIT license :
|
|
25446
25446
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
25447
25447
|
*/
|
|
25448
|
-
(function(T,
|
|
25448
|
+
(function(T, J) {
|
|
25449
25449
|
(function(p) {
|
|
25450
25450
|
T.exports = p();
|
|
25451
25451
|
})(function() {
|
|
25452
|
-
return function p(
|
|
25452
|
+
return function p($, G, m) {
|
|
25453
25453
|
function P(U, Y) {
|
|
25454
25454
|
if (!G[U]) {
|
|
25455
|
-
if (
|
|
25455
|
+
if (!$[U]) {
|
|
25456
25456
|
var H = typeof nh == "function" && nh;
|
|
25457
25457
|
if (!Y && H)
|
|
25458
25458
|
return H(U, !0);
|
|
@@ -25462,17 +25462,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25462
25462
|
throw K.code = "MODULE_NOT_FOUND", K;
|
|
25463
25463
|
}
|
|
25464
25464
|
var B = G[U] = { exports: {} };
|
|
25465
|
-
|
|
25466
|
-
var b =
|
|
25465
|
+
$[U][0].call(B.exports, function(q) {
|
|
25466
|
+
var b = $[U][1][q];
|
|
25467
25467
|
return P(b || q);
|
|
25468
|
-
}, B, B.exports, p,
|
|
25468
|
+
}, B, B.exports, p, $, G, m);
|
|
25469
25469
|
}
|
|
25470
25470
|
return G[U].exports;
|
|
25471
25471
|
}
|
|
25472
25472
|
for (var O = typeof nh == "function" && nh, E = 0; E < m.length; E++)
|
|
25473
25473
|
P(m[E]);
|
|
25474
25474
|
return P;
|
|
25475
|
-
}({ 1: [function(p,
|
|
25475
|
+
}({ 1: [function(p, $, G) {
|
|
25476
25476
|
var m = p("./utils"), P = p("./support"), O = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
25477
25477
|
G.encode = function(E) {
|
|
25478
25478
|
for (var U, Y, H, K, B, q, b, A = [], d = 0, g = E.length, M = g, x = m.getTypeOf(E) !== "string"; d < E.length; )
|
|
@@ -25489,7 +25489,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25489
25489
|
U = O.indexOf(E.charAt(b++)) << 2 | (K = O.indexOf(E.charAt(b++))) >> 4, Y = (15 & K) << 4 | (B = O.indexOf(E.charAt(b++))) >> 2, H = (3 & B) << 6 | (q = O.indexOf(E.charAt(b++))), g[A++] = U, B !== 64 && (g[A++] = Y), q !== 64 && (g[A++] = H);
|
|
25490
25490
|
return g;
|
|
25491
25491
|
};
|
|
25492
|
-
}, { "./support": 30, "./utils": 32 }], 2: [function(p,
|
|
25492
|
+
}, { "./support": 30, "./utils": 32 }], 2: [function(p, $, G) {
|
|
25493
25493
|
var m = p("./external"), P = p("./stream/DataWorker"), O = p("./stream/Crc32Probe"), E = p("./stream/DataLengthProbe");
|
|
25494
25494
|
function U(Y, H, K, B, q) {
|
|
25495
25495
|
this.compressedSize = Y, this.uncompressedSize = H, this.crc32 = K, this.compression = B, this.compressedContent = q;
|
|
@@ -25504,15 +25504,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25504
25504
|
return new P(m.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
|
|
25505
25505
|
} }, U.createWorkerFrom = function(Y, H, K) {
|
|
25506
25506
|
return Y.pipe(new O()).pipe(new E("uncompressedSize")).pipe(H.compressWorker(K)).pipe(new E("compressedSize")).withStreamInfo("compression", H);
|
|
25507
|
-
},
|
|
25508
|
-
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(p,
|
|
25507
|
+
}, $.exports = U;
|
|
25508
|
+
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(p, $, G) {
|
|
25509
25509
|
var m = p("./stream/GenericWorker");
|
|
25510
25510
|
G.STORE = { magic: "\0\0", compressWorker: function() {
|
|
25511
25511
|
return new m("STORE compression");
|
|
25512
25512
|
}, uncompressWorker: function() {
|
|
25513
25513
|
return new m("STORE decompression");
|
|
25514
25514
|
} }, G.DEFLATE = p("./flate");
|
|
25515
|
-
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(p,
|
|
25515
|
+
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(p, $, G) {
|
|
25516
25516
|
var m = p("./utils"), P = function() {
|
|
25517
25517
|
for (var O, E = [], U = 0; U < 256; U++) {
|
|
25518
25518
|
O = U;
|
|
@@ -25522,7 +25522,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25522
25522
|
}
|
|
25523
25523
|
return E;
|
|
25524
25524
|
}();
|
|
25525
|
-
|
|
25525
|
+
$.exports = function(O, E) {
|
|
25526
25526
|
return O !== void 0 && O.length ? m.getTypeOf(O) !== "string" ? function(U, Y, H, K) {
|
|
25527
25527
|
var B = P, q = K + H;
|
|
25528
25528
|
U ^= -1;
|
|
@@ -25537,12 +25537,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25537
25537
|
return -1 ^ U;
|
|
25538
25538
|
}(0 | E, O, O.length, 0) : 0;
|
|
25539
25539
|
};
|
|
25540
|
-
}, { "./utils": 32 }], 5: [function(p,
|
|
25540
|
+
}, { "./utils": 32 }], 5: [function(p, $, G) {
|
|
25541
25541
|
G.base64 = !1, G.binary = !1, G.dir = !1, G.createFolders = !0, G.date = null, G.compression = null, G.compressionOptions = null, G.comment = null, G.unixPermissions = null, G.dosPermissions = null;
|
|
25542
|
-
}, {}], 6: [function(p,
|
|
25542
|
+
}, {}], 6: [function(p, $, G) {
|
|
25543
25543
|
var m = null;
|
|
25544
|
-
m = typeof Promise < "u" ? Promise : p("lie"),
|
|
25545
|
-
}, { lie: 37 }], 7: [function(p,
|
|
25544
|
+
m = typeof Promise < "u" ? Promise : p("lie"), $.exports = { Promise: m };
|
|
25545
|
+
}, { lie: 37 }], 7: [function(p, $, G) {
|
|
25546
25546
|
var m = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", P = p("pako"), O = p("./utils"), E = p("./stream/GenericWorker"), U = m ? "uint8array" : "array";
|
|
25547
25547
|
function Y(H, K) {
|
|
25548
25548
|
E.call(this, "FlateWorker/" + H), this._pako = null, this._pakoAction = H, this._pakoOptions = K, this.meta = {};
|
|
@@ -25564,7 +25564,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25564
25564
|
}, G.uncompressWorker = function() {
|
|
25565
25565
|
return new Y("Inflate", {});
|
|
25566
25566
|
};
|
|
25567
|
-
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(p,
|
|
25567
|
+
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(p, $, G) {
|
|
25568
25568
|
function m(B, q) {
|
|
25569
25569
|
var b, A = "";
|
|
25570
25570
|
for (b = 0; b < q; b++)
|
|
@@ -25649,8 +25649,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25649
25649
|
E.prototype.lock.call(this);
|
|
25650
25650
|
for (var B = this._sources, q = 0; q < B.length; q++)
|
|
25651
25651
|
B[q].lock();
|
|
25652
|
-
},
|
|
25653
|
-
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(p,
|
|
25652
|
+
}, $.exports = K;
|
|
25653
|
+
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(p, $, G) {
|
|
25654
25654
|
var m = p("../compressions"), P = p("./ZipFileWorker");
|
|
25655
25655
|
G.generateWorker = function(O, E, U) {
|
|
25656
25656
|
var Y = new P(E.streamFiles, U, E.platform, E.encodeFileName), H = 0;
|
|
@@ -25670,7 +25670,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25670
25670
|
}
|
|
25671
25671
|
return Y;
|
|
25672
25672
|
};
|
|
25673
|
-
}, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(p,
|
|
25673
|
+
}, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(p, $, G) {
|
|
25674
25674
|
function m() {
|
|
25675
25675
|
if (!(this instanceof m))
|
|
25676
25676
|
return new m();
|
|
@@ -25685,8 +25685,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25685
25685
|
}
|
|
25686
25686
|
(m.prototype = p("./object")).loadAsync = p("./load"), m.support = p("./support"), m.defaults = p("./defaults"), m.version = "3.10.1", m.loadAsync = function(P, O) {
|
|
25687
25687
|
return new m().loadAsync(P, O);
|
|
25688
|
-
}, m.external = p("./external"),
|
|
25689
|
-
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(p,
|
|
25688
|
+
}, m.external = p("./external"), $.exports = m;
|
|
25689
|
+
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(p, $, G) {
|
|
25690
25690
|
var m = p("./utils"), P = p("./external"), O = p("./utf8"), E = p("./zipEntries"), U = p("./stream/Crc32Probe"), Y = p("./nodejsUtils");
|
|
25691
25691
|
function H(K) {
|
|
25692
25692
|
return new P.Promise(function(B, q) {
|
|
@@ -25698,7 +25698,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25698
25698
|
}).resume();
|
|
25699
25699
|
});
|
|
25700
25700
|
}
|
|
25701
|
-
|
|
25701
|
+
$.exports = function(K, B) {
|
|
25702
25702
|
var q = this;
|
|
25703
25703
|
return B = m.extend(B || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: O.utf8decode }), Y.isNode && Y.isStream(K) ? P.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : m.prepareContent("the loaded zip file", K, !0, B.optimizedBinaryString, B.base64).then(function(b) {
|
|
25704
25704
|
var A = new E(B);
|
|
@@ -25717,7 +25717,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25717
25717
|
return A.zipComment.length && (q.comment = A.zipComment), q;
|
|
25718
25718
|
});
|
|
25719
25719
|
};
|
|
25720
|
-
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(p,
|
|
25720
|
+
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(p, $, G) {
|
|
25721
25721
|
var m = p("../utils"), P = p("../stream/GenericWorker");
|
|
25722
25722
|
function O(E, U) {
|
|
25723
25723
|
P.call(this, "Nodejs stream input adapter for " + E), this._upstreamEnded = !1, this._bindStream(U);
|
|
@@ -25735,8 +25735,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25735
25735
|
return !!P.prototype.pause.call(this) && (this._stream.pause(), !0);
|
|
25736
25736
|
}, O.prototype.resume = function() {
|
|
25737
25737
|
return !!P.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
|
|
25738
|
-
},
|
|
25739
|
-
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(p,
|
|
25738
|
+
}, $.exports = O;
|
|
25739
|
+
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(p, $, G) {
|
|
25740
25740
|
var m = p("readable-stream").Readable;
|
|
25741
25741
|
function P(O, E, U) {
|
|
25742
25742
|
m.call(this, E), this._helper = O;
|
|
@@ -25751,9 +25751,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25751
25751
|
}
|
|
25752
25752
|
p("../utils").inherits(P, m), P.prototype._read = function() {
|
|
25753
25753
|
this._helper.resume();
|
|
25754
|
-
},
|
|
25755
|
-
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(p,
|
|
25756
|
-
|
|
25754
|
+
}, $.exports = P;
|
|
25755
|
+
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(p, $, G) {
|
|
25756
|
+
$.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(m, P) {
|
|
25757
25757
|
if (Buffer.from && Buffer.from !== Uint8Array.from)
|
|
25758
25758
|
return Buffer.from(m, P);
|
|
25759
25759
|
if (typeof m == "number")
|
|
@@ -25769,7 +25769,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25769
25769
|
}, isStream: function(m) {
|
|
25770
25770
|
return m && typeof m.on == "function" && typeof m.pause == "function" && typeof m.resume == "function";
|
|
25771
25771
|
} };
|
|
25772
|
-
}, {}], 15: [function(p,
|
|
25772
|
+
}, {}], 15: [function(p, $, G) {
|
|
25773
25773
|
function m(F, z, V) {
|
|
25774
25774
|
var ht, ft = O.getTypeOf(z), gt = O.extend(V || {}, Y);
|
|
25775
25775
|
gt.date = gt.date || /* @__PURE__ */ new Date(), gt.compression !== null && (gt.compression = gt.compression.toUpperCase()), typeof gt.unixPermissions == "string" && (gt.unixPermissions = parseInt(gt.unixPermissions, 8)), gt.unixPermissions && 16384 & gt.unixPermissions && (gt.dir = !0), gt.dosPermissions && 16 & gt.dosPermissions && (gt.dir = !0), gt.dir && (F = d(F)), gt.createFolders && (ht = A(F)) && g.call(this, ht, !0);
|
|
@@ -25853,10 +25853,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25853
25853
|
}, generateNodeStream: function(F, z) {
|
|
25854
25854
|
return (F = F || {}).type || (F.type = "nodebuffer"), this.generateInternalStream(F).toNodejsStream(z);
|
|
25855
25855
|
} };
|
|
25856
|
-
|
|
25857
|
-
}, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(p,
|
|
25858
|
-
|
|
25859
|
-
}, { stream: void 0 }], 17: [function(p,
|
|
25856
|
+
$.exports = x;
|
|
25857
|
+
}, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(p, $, G) {
|
|
25858
|
+
$.exports = p("stream");
|
|
25859
|
+
}, { stream: void 0 }], 17: [function(p, $, G) {
|
|
25860
25860
|
var m = p("./DataReader");
|
|
25861
25861
|
function P(O) {
|
|
25862
25862
|
m.call(this, O);
|
|
@@ -25878,8 +25878,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25878
25878
|
return [];
|
|
25879
25879
|
var E = this.data.slice(this.zero + this.index, this.zero + this.index + O);
|
|
25880
25880
|
return this.index += O, E;
|
|
25881
|
-
},
|
|
25882
|
-
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(p,
|
|
25881
|
+
}, $.exports = P;
|
|
25882
|
+
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(p, $, G) {
|
|
25883
25883
|
var m = p("../utils");
|
|
25884
25884
|
function P(O) {
|
|
25885
25885
|
this.data = O, this.length = O.length, this.index = 0, this.zero = 0;
|
|
@@ -25907,8 +25907,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25907
25907
|
}, readDate: function() {
|
|
25908
25908
|
var O = this.readInt(4);
|
|
25909
25909
|
return new Date(Date.UTC(1980 + (O >> 25 & 127), (O >> 21 & 15) - 1, O >> 16 & 31, O >> 11 & 31, O >> 5 & 63, (31 & O) << 1));
|
|
25910
|
-
} },
|
|
25911
|
-
}, { "../utils": 32 }], 19: [function(p,
|
|
25910
|
+
} }, $.exports = P;
|
|
25911
|
+
}, { "../utils": 32 }], 19: [function(p, $, G) {
|
|
25912
25912
|
var m = p("./Uint8ArrayReader");
|
|
25913
25913
|
function P(O) {
|
|
25914
25914
|
m.call(this, O);
|
|
@@ -25917,8 +25917,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25917
25917
|
this.checkOffset(O);
|
|
25918
25918
|
var E = this.data.slice(this.zero + this.index, this.zero + this.index + O);
|
|
25919
25919
|
return this.index += O, E;
|
|
25920
|
-
},
|
|
25921
|
-
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(p,
|
|
25920
|
+
}, $.exports = P;
|
|
25921
|
+
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(p, $, G) {
|
|
25922
25922
|
var m = p("./DataReader");
|
|
25923
25923
|
function P(O) {
|
|
25924
25924
|
m.call(this, O);
|
|
@@ -25933,8 +25933,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25933
25933
|
this.checkOffset(O);
|
|
25934
25934
|
var E = this.data.slice(this.zero + this.index, this.zero + this.index + O);
|
|
25935
25935
|
return this.index += O, E;
|
|
25936
|
-
},
|
|
25937
|
-
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(p,
|
|
25936
|
+
}, $.exports = P;
|
|
25937
|
+
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(p, $, G) {
|
|
25938
25938
|
var m = p("./ArrayReader");
|
|
25939
25939
|
function P(O) {
|
|
25940
25940
|
m.call(this, O);
|
|
@@ -25944,32 +25944,32 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25944
25944
|
return new Uint8Array(0);
|
|
25945
25945
|
var E = this.data.subarray(this.zero + this.index, this.zero + this.index + O);
|
|
25946
25946
|
return this.index += O, E;
|
|
25947
|
-
},
|
|
25948
|
-
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(p,
|
|
25947
|
+
}, $.exports = P;
|
|
25948
|
+
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(p, $, G) {
|
|
25949
25949
|
var m = p("../utils"), P = p("../support"), O = p("./ArrayReader"), E = p("./StringReader"), U = p("./NodeBufferReader"), Y = p("./Uint8ArrayReader");
|
|
25950
|
-
|
|
25950
|
+
$.exports = function(H) {
|
|
25951
25951
|
var K = m.getTypeOf(H);
|
|
25952
25952
|
return m.checkSupport(K), K !== "string" || P.uint8array ? K === "nodebuffer" ? new U(H) : P.uint8array ? new Y(m.transformTo("uint8array", H)) : new O(m.transformTo("array", H)) : new E(H);
|
|
25953
25953
|
};
|
|
25954
|
-
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(p,
|
|
25954
|
+
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(p, $, G) {
|
|
25955
25955
|
G.LOCAL_FILE_HEADER = "PK", G.CENTRAL_FILE_HEADER = "PK", G.CENTRAL_DIRECTORY_END = "PK", G.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", G.ZIP64_CENTRAL_DIRECTORY_END = "PK", G.DATA_DESCRIPTOR = "PK\x07\b";
|
|
25956
|
-
}, {}], 24: [function(p,
|
|
25956
|
+
}, {}], 24: [function(p, $, G) {
|
|
25957
25957
|
var m = p("./GenericWorker"), P = p("../utils");
|
|
25958
25958
|
function O(E) {
|
|
25959
25959
|
m.call(this, "ConvertWorker to " + E), this.destType = E;
|
|
25960
25960
|
}
|
|
25961
25961
|
P.inherits(O, m), O.prototype.processChunk = function(E) {
|
|
25962
25962
|
this.push({ data: P.transformTo(this.destType, E.data), meta: E.meta });
|
|
25963
|
-
},
|
|
25964
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(p,
|
|
25963
|
+
}, $.exports = O;
|
|
25964
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(p, $, G) {
|
|
25965
25965
|
var m = p("./GenericWorker"), P = p("../crc32");
|
|
25966
25966
|
function O() {
|
|
25967
25967
|
m.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
|
|
25968
25968
|
}
|
|
25969
25969
|
p("../utils").inherits(O, m), O.prototype.processChunk = function(E) {
|
|
25970
25970
|
this.streamInfo.crc32 = P(E.data, this.streamInfo.crc32 || 0), this.push(E);
|
|
25971
|
-
},
|
|
25972
|
-
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(p,
|
|
25971
|
+
}, $.exports = O;
|
|
25972
|
+
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(p, $, G) {
|
|
25973
25973
|
var m = p("../utils"), P = p("./GenericWorker");
|
|
25974
25974
|
function O(E) {
|
|
25975
25975
|
P.call(this, "DataLengthProbe for " + E), this.propName = E, this.withStreamInfo(E, 0);
|
|
@@ -25980,8 +25980,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25980
25980
|
this.streamInfo[this.propName] = U + E.data.length;
|
|
25981
25981
|
}
|
|
25982
25982
|
P.prototype.processChunk.call(this, E);
|
|
25983
|
-
},
|
|
25984
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(p,
|
|
25983
|
+
}, $.exports = O;
|
|
25984
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(p, $, G) {
|
|
25985
25985
|
var m = p("../utils"), P = p("./GenericWorker");
|
|
25986
25986
|
function O(E) {
|
|
25987
25987
|
P.call(this, "DataWorker");
|
|
@@ -26016,8 +26016,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26016
26016
|
E = this.data.slice(this.index, U);
|
|
26017
26017
|
}
|
|
26018
26018
|
return this.index = U, this.push({ data: E, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
|
|
26019
|
-
},
|
|
26020
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(p,
|
|
26019
|
+
}, $.exports = O;
|
|
26020
|
+
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(p, $, G) {
|
|
26021
26021
|
function m(P) {
|
|
26022
26022
|
this.name = P || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = { data: [], end: [], error: [] }, this.previous = null;
|
|
26023
26023
|
}
|
|
@@ -26079,8 +26079,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26079
26079
|
}, toString: function() {
|
|
26080
26080
|
var P = "Worker " + this.name;
|
|
26081
26081
|
return this.previous ? this.previous + " -> " + P : P;
|
|
26082
|
-
} },
|
|
26083
|
-
}, {}], 29: [function(p,
|
|
26082
|
+
} }, $.exports = m;
|
|
26083
|
+
}, {}], 29: [function(p, $, G) {
|
|
26084
26084
|
var m = p("../utils"), P = p("./ConvertWorker"), O = p("./GenericWorker"), E = p("../base64"), U = p("../support"), Y = p("../external"), H = null;
|
|
26085
26085
|
if (U.nodestream)
|
|
26086
26086
|
try {
|
|
@@ -26165,8 +26165,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26165
26165
|
if (m.checkSupport("nodestream"), this._outputType !== "nodebuffer")
|
|
26166
26166
|
throw new Error(this._outputType + " is not supported by this method");
|
|
26167
26167
|
return new H(this, { objectMode: this._outputType !== "nodebuffer" }, q);
|
|
26168
|
-
} },
|
|
26169
|
-
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(p,
|
|
26168
|
+
} }, $.exports = B;
|
|
26169
|
+
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(p, $, G) {
|
|
26170
26170
|
if (G.base64 = !0, G.array = !0, G.string = !0, G.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", G.nodebuffer = typeof Buffer < "u", G.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u")
|
|
26171
26171
|
G.blob = !1;
|
|
26172
26172
|
else {
|
|
@@ -26187,7 +26187,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26187
26187
|
} catch {
|
|
26188
26188
|
G.nodestream = !1;
|
|
26189
26189
|
}
|
|
26190
|
-
}, { "readable-stream": 16 }], 31: [function(p,
|
|
26190
|
+
}, { "readable-stream": 16 }], 31: [function(p, $, G) {
|
|
26191
26191
|
for (var m = p("./utils"), P = p("./support"), O = p("./nodejsUtils"), E = p("./stream/GenericWorker"), U = new Array(256), Y = 0; Y < 256; Y++)
|
|
26192
26192
|
U[Y] = 252 <= Y ? 6 : 248 <= Y ? 5 : 240 <= Y ? 4 : 224 <= Y ? 3 : 192 <= Y ? 2 : 1;
|
|
26193
26193
|
U[254] = U[254] = 1;
|
|
@@ -26243,7 +26243,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26243
26243
|
}, G.Utf8DecodeWorker = H, m.inherits(K, E), K.prototype.processChunk = function(B) {
|
|
26244
26244
|
this.push({ data: G.utf8encode(B.data), meta: B.meta });
|
|
26245
26245
|
}, G.Utf8EncodeWorker = K;
|
|
26246
|
-
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(p,
|
|
26246
|
+
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(p, $, G) {
|
|
26247
26247
|
var m = p("./support"), P = p("./base64"), O = p("./nodejsUtils"), E = p("./external");
|
|
26248
26248
|
function U(b) {
|
|
26249
26249
|
return b;
|
|
@@ -26395,7 +26395,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26395
26395
|
}(x))), x) : E.Promise.reject(new Error("Can't read the data of '" + b + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
26396
26396
|
});
|
|
26397
26397
|
};
|
|
26398
|
-
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(p,
|
|
26398
|
+
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(p, $, G) {
|
|
26399
26399
|
var m = p("./reader/readerFor"), P = p("./utils"), O = p("./signature"), E = p("./zipEntry"), U = p("./support");
|
|
26400
26400
|
function Y(H) {
|
|
26401
26401
|
this.files = [], this.loadOptions = H;
|
|
@@ -26456,8 +26456,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26456
26456
|
this.reader = m(H);
|
|
26457
26457
|
}, load: function(H) {
|
|
26458
26458
|
this.prepareReader(H), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
26459
|
-
} },
|
|
26460
|
-
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(p,
|
|
26459
|
+
} }, $.exports = Y;
|
|
26460
|
+
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(p, $, G) {
|
|
26461
26461
|
var m = p("./reader/readerFor"), P = p("./utils"), O = p("./compressedObject"), E = p("./crc32"), U = p("./utf8"), Y = p("./compressions"), H = p("./support");
|
|
26462
26462
|
function K(B, q) {
|
|
26463
26463
|
this.options = B, this.loadOptions = q;
|
|
@@ -26532,8 +26532,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26532
26532
|
return q.readInt(1) !== 1 || E(this.fileComment) !== q.readInt(4) ? null : U.utf8decode(q.readData(B.length - 5));
|
|
26533
26533
|
}
|
|
26534
26534
|
return null;
|
|
26535
|
-
} },
|
|
26536
|
-
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(p,
|
|
26535
|
+
} }, $.exports = K;
|
|
26536
|
+
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(p, $, G) {
|
|
26537
26537
|
function m(q, b, A) {
|
|
26538
26538
|
this.name = q, this.dir = A.dir, this.date = A.date, this.comment = A.comment, this.unixPermissions = A.unixPermissions, this.dosPermissions = A.dosPermissions, this._data = b, this._dataBinary = A.binary, this.options = { compression: A.compression, compressionOptions: A.compressionOptions };
|
|
26539
26539
|
}
|
|
@@ -26567,8 +26567,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26567
26567
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
26568
26568
|
}, B = 0; B < H.length; B++)
|
|
26569
26569
|
m.prototype[H[B]] = K;
|
|
26570
|
-
|
|
26571
|
-
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(p,
|
|
26570
|
+
$.exports = m;
|
|
26571
|
+
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(p, $, G) {
|
|
26572
26572
|
(function(m) {
|
|
26573
26573
|
var P, O, E = m.MutationObserver || m.WebKitMutationObserver;
|
|
26574
26574
|
if (E) {
|
|
@@ -26602,11 +26602,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26602
26602
|
}
|
|
26603
26603
|
O = !1;
|
|
26604
26604
|
}
|
|
26605
|
-
|
|
26605
|
+
$.exports = function(b) {
|
|
26606
26606
|
B.push(b) !== 1 || O || P();
|
|
26607
26607
|
};
|
|
26608
26608
|
}).call(this, typeof xr < "u" ? xr : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
26609
|
-
}, {}], 37: [function(p,
|
|
26609
|
+
}, {}], 37: [function(p, $, G) {
|
|
26610
26610
|
var m = p("immediate");
|
|
26611
26611
|
function P() {
|
|
26612
26612
|
}
|
|
@@ -26659,7 +26659,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26659
26659
|
}
|
|
26660
26660
|
return M;
|
|
26661
26661
|
}
|
|
26662
|
-
(
|
|
26662
|
+
($.exports = H).prototype.finally = function(d) {
|
|
26663
26663
|
if (typeof d != "function")
|
|
26664
26664
|
return this;
|
|
26665
26665
|
var g = this.constructor;
|
|
@@ -26743,10 +26743,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26743
26743
|
var V;
|
|
26744
26744
|
return z;
|
|
26745
26745
|
};
|
|
26746
|
-
}, { immediate: 36 }], 38: [function(p,
|
|
26746
|
+
}, { immediate: 36 }], 38: [function(p, $, G) {
|
|
26747
26747
|
var m = {};
|
|
26748
|
-
(0, p("./lib/utils/common").assign)(m, p("./lib/deflate"), p("./lib/inflate"), p("./lib/zlib/constants")),
|
|
26749
|
-
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(p,
|
|
26748
|
+
(0, p("./lib/utils/common").assign)(m, p("./lib/deflate"), p("./lib/inflate"), p("./lib/zlib/constants")), $.exports = m;
|
|
26749
|
+
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(p, $, G) {
|
|
26750
26750
|
var m = p("./zlib/deflate"), P = p("./utils/common"), O = p("./utils/strings"), E = p("./zlib/messages"), U = p("./zlib/zstream"), Y = Object.prototype.toString, H = 0, K = -1, B = 0, q = 8;
|
|
26751
26751
|
function b(d) {
|
|
26752
26752
|
if (!(this instanceof b))
|
|
@@ -26790,7 +26790,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26790
26790
|
}, G.gzip = function(d, g) {
|
|
26791
26791
|
return (g = g || {}).gzip = !0, A(d, g);
|
|
26792
26792
|
};
|
|
26793
|
-
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(p,
|
|
26793
|
+
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(p, $, G) {
|
|
26794
26794
|
var m = p("./zlib/inflate"), P = p("./utils/common"), O = p("./utils/strings"), E = p("./zlib/constants"), U = p("./zlib/messages"), Y = p("./zlib/zstream"), H = p("./zlib/gzheader"), K = Object.prototype.toString;
|
|
26795
26795
|
function B(b) {
|
|
26796
26796
|
if (!(this instanceof B))
|
|
@@ -26827,7 +26827,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26827
26827
|
}, G.Inflate = B, G.inflate = q, G.inflateRaw = function(b, A) {
|
|
26828
26828
|
return (A = A || {}).raw = !0, q(b, A);
|
|
26829
26829
|
}, G.ungzip = q;
|
|
26830
|
-
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(p,
|
|
26830
|
+
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(p, $, G) {
|
|
26831
26831
|
var m = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
26832
26832
|
G.assign = function(E) {
|
|
26833
26833
|
for (var U = Array.prototype.slice.call(arguments, 1); U.length; ) {
|
|
@@ -26865,7 +26865,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26865
26865
|
G.setTyped = function(E) {
|
|
26866
26866
|
E ? (G.Buf8 = Uint8Array, G.Buf16 = Uint16Array, G.Buf32 = Int32Array, G.assign(G, P)) : (G.Buf8 = Array, G.Buf16 = Array, G.Buf32 = Array, G.assign(G, O));
|
|
26867
26867
|
}, G.setTyped(m);
|
|
26868
|
-
}, {}], 42: [function(p,
|
|
26868
|
+
}, {}], 42: [function(p, $, G) {
|
|
26869
26869
|
var m = p("./common"), P = !0, O = !0;
|
|
26870
26870
|
try {
|
|
26871
26871
|
String.fromCharCode.apply(null, [0]);
|
|
@@ -26918,8 +26918,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26918
26918
|
B--;
|
|
26919
26919
|
return B < 0 || B === 0 ? K : B + E[H[B]] > K ? B : K;
|
|
26920
26920
|
};
|
|
26921
|
-
}, { "./common": 41 }], 43: [function(p,
|
|
26922
|
-
|
|
26921
|
+
}, { "./common": 41 }], 43: [function(p, $, G) {
|
|
26922
|
+
$.exports = function(m, P, O, E) {
|
|
26923
26923
|
for (var U = 65535 & m | 0, Y = m >>> 16 & 65535 | 0, H = 0; O !== 0; ) {
|
|
26924
26924
|
for (O -= H = 2e3 < O ? 2e3 : O; Y = Y + (U = U + P[E++] | 0) | 0, --H; )
|
|
26925
26925
|
;
|
|
@@ -26927,9 +26927,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26927
26927
|
}
|
|
26928
26928
|
return U | Y << 16 | 0;
|
|
26929
26929
|
};
|
|
26930
|
-
}, {}], 44: [function(p,
|
|
26931
|
-
|
|
26932
|
-
}, {}], 45: [function(p,
|
|
26930
|
+
}, {}], 44: [function(p, $, G) {
|
|
26931
|
+
$.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
|
|
26932
|
+
}, {}], 45: [function(p, $, G) {
|
|
26933
26933
|
var m = function() {
|
|
26934
26934
|
for (var P, O = [], E = 0; E < 256; E++) {
|
|
26935
26935
|
P = E;
|
|
@@ -26939,14 +26939,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26939
26939
|
}
|
|
26940
26940
|
return O;
|
|
26941
26941
|
}();
|
|
26942
|
-
|
|
26942
|
+
$.exports = function(P, O, E, U) {
|
|
26943
26943
|
var Y = m, H = U + E;
|
|
26944
26944
|
P ^= -1;
|
|
26945
26945
|
for (var K = U; K < H; K++)
|
|
26946
26946
|
P = P >>> 8 ^ Y[255 & (P ^ O[K])];
|
|
26947
26947
|
return -1 ^ P;
|
|
26948
26948
|
};
|
|
26949
|
-
}, {}], 46: [function(p,
|
|
26949
|
+
}, {}], 46: [function(p, $, G) {
|
|
26950
26950
|
var m, P = p("../utils/common"), O = p("./trees"), E = p("./adler32"), U = p("./crc32"), Y = p("./messages"), H = 0, K = 4, B = 0, q = -2, b = -1, A = 4, d = 2, g = 8, M = 9, x = 286, F = 30, z = 19, V = 2 * x + 1, ht = 15, ft = 3, gt = 258, Nt = gt + ft + 1, lt = 42, Et = 113, D = 1, zt = 2, Pt = 3, Rt = 4;
|
|
26951
26951
|
function ge(R, Jt) {
|
|
26952
26952
|
return R.msg = Y[Jt], Jt;
|
|
@@ -27199,12 +27199,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27199
27199
|
}
|
|
27200
27200
|
return jt.strstart += jt.lookahead, jt.block_start = jt.strstart, jt.insert = jt.lookahead, jt.lookahead = 0, jt.match_length = jt.prev_length = ft - 1, jt.match_available = 0, R.next_in = Kt, R.input = w, R.avail_in = ie, jt.wrap = Lt, B;
|
|
27201
27201
|
}, G.deflateInfo = "pako deflate (from Nodeca project)";
|
|
27202
|
-
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(p,
|
|
27203
|
-
|
|
27202
|
+
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(p, $, G) {
|
|
27203
|
+
$.exports = function() {
|
|
27204
27204
|
this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
|
|
27205
27205
|
};
|
|
27206
|
-
}, {}], 48: [function(p,
|
|
27207
|
-
|
|
27206
|
+
}, {}], 48: [function(p, $, G) {
|
|
27207
|
+
$.exports = function(m, P) {
|
|
27208
27208
|
var O, E, U, Y, H, K, B, q, b, A, d, g, M, x, F, z, V, ht, ft, gt, Nt, lt, Et, D, zt;
|
|
27209
27209
|
O = m.state, E = m.next_in, D = m.input, U = E + (m.avail_in - 5), Y = m.next_out, zt = m.output, H = Y - (P - m.avail_out), K = Y + (m.avail_out - 257), B = O.dmax, q = O.wsize, b = O.whave, A = O.wnext, d = O.window, g = O.hold, M = O.bits, x = O.lencode, F = O.distcode, z = (1 << O.lenbits) - 1, V = (1 << O.distbits) - 1;
|
|
27210
27210
|
t:
|
|
@@ -27284,7 +27284,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27284
27284
|
} while (E < U && Y < K);
|
|
27285
27285
|
E -= gt = M >> 3, g &= (1 << (M -= gt << 3)) - 1, m.next_in = E, m.next_out = Y, m.avail_in = E < U ? U - E + 5 : 5 - (E - U), m.avail_out = Y < K ? K - Y + 257 : 257 - (Y - K), O.hold = g, O.bits = M;
|
|
27286
27286
|
};
|
|
27287
|
-
}, {}], 49: [function(p,
|
|
27287
|
+
}, {}], 49: [function(p, $, G) {
|
|
27288
27288
|
var m = p("../utils/common"), P = p("./adler32"), O = p("./crc32"), E = p("./inffast"), U = p("./inftrees"), Y = 1, H = 2, K = 0, B = -2, q = 1, b = 852, A = 592;
|
|
27289
27289
|
function d(lt) {
|
|
27290
27290
|
return (lt >>> 24 & 255) + (lt >>> 8 & 65280) + ((65280 & lt) << 8) + ((255 & lt) << 24);
|
|
@@ -27751,9 +27751,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27751
27751
|
var D, zt = Et.length;
|
|
27752
27752
|
return lt && lt.state ? (D = lt.state).wrap !== 0 && D.mode !== 11 ? B : D.mode === 11 && P(1, Et, zt, 0) !== D.check ? -3 : Nt(lt, Et, zt, zt) ? (D.mode = 31, -4) : (D.havedict = 1, K) : B;
|
|
27753
27753
|
}, G.inflateInfo = "pako inflate (from Nodeca project)";
|
|
27754
|
-
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(p,
|
|
27754
|
+
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(p, $, G) {
|
|
27755
27755
|
var m = p("../utils/common"), P = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], O = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], E = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], U = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
27756
|
-
|
|
27756
|
+
$.exports = function(Y, H, K, B, q, b, A, d) {
|
|
27757
27757
|
var g, M, x, F, z, V, ht, ft, gt, Nt = d.bits, lt = 0, Et = 0, D = 0, zt = 0, Pt = 0, Rt = 0, ge = 0, ue = 0, Ft = 0, Dt = 0, kt = null, Fe = 0, xe = new m.Buf16(16), Zt = new m.Buf16(16), ti = null, Ni = 0;
|
|
27758
27758
|
for (lt = 0; lt <= 15; lt++)
|
|
27759
27759
|
xe[lt] = 0;
|
|
@@ -27796,9 +27796,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27796
27796
|
}
|
|
27797
27797
|
return Dt !== 0 && (q[z + Dt] = lt - ge << 24 | 64 << 16 | 0), d.bits = Pt, 0;
|
|
27798
27798
|
};
|
|
27799
|
-
}, { "../utils/common": 41 }], 51: [function(p,
|
|
27800
|
-
|
|
27801
|
-
}, {}], 52: [function(p,
|
|
27799
|
+
}, { "../utils/common": 41 }], 51: [function(p, $, G) {
|
|
27800
|
+
$.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
|
|
27801
|
+
}, {}], 52: [function(p, $, G) {
|
|
27802
27802
|
var m = p("../utils/common"), P = 0, O = 1;
|
|
27803
27803
|
function E(pt) {
|
|
27804
27804
|
for (var Lt = pt.length; 0 <= --Lt; )
|
|
@@ -27985,11 +27985,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27985
27985
|
Lt.bi_valid === 16 ? (Fe(Lt, Lt.bi_buf), Lt.bi_buf = 0, Lt.bi_valid = 0) : 8 <= Lt.bi_valid && (Lt.pending_buf[Lt.pending++] = 255 & Lt.bi_buf, Lt.bi_buf >>= 8, Lt.bi_valid -= 8);
|
|
27986
27986
|
}(pt);
|
|
27987
27987
|
};
|
|
27988
|
-
}, { "../utils/common": 41 }], 53: [function(p,
|
|
27989
|
-
|
|
27988
|
+
}, { "../utils/common": 41 }], 53: [function(p, $, G) {
|
|
27989
|
+
$.exports = function() {
|
|
27990
27990
|
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
|
|
27991
27991
|
};
|
|
27992
|
-
}, {}], 54: [function(p,
|
|
27992
|
+
}, {}], 54: [function(p, $, G) {
|
|
27993
27993
|
(function(m) {
|
|
27994
27994
|
(function(P, O) {
|
|
27995
27995
|
if (!P.setImmediate) {
|
|
@@ -28073,14 +28073,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
28073
28073
|
var Qm = Wu.exports;
|
|
28074
28074
|
const tg = /* @__PURE__ */ Wh(Qm);
|
|
28075
28075
|
var ju = { exports: {} };
|
|
28076
|
-
(function(T,
|
|
28077
|
-
(function(p,
|
|
28078
|
-
|
|
28076
|
+
(function(T, J) {
|
|
28077
|
+
(function(p, $) {
|
|
28078
|
+
$();
|
|
28079
28079
|
})(xr, function() {
|
|
28080
28080
|
function p(U, Y) {
|
|
28081
28081
|
return typeof Y > "u" ? Y = { autoBom: !1 } : typeof Y != "object" && (console.warn("Deprecated: Expected third argument to be a object"), Y = { autoBom: !Y }), Y.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(U.type) ? new Blob(["\uFEFF", U], { type: U.type }) : U;
|
|
28082
28082
|
}
|
|
28083
|
-
function
|
|
28083
|
+
function $(U, Y, H) {
|
|
28084
28084
|
var K = new XMLHttpRequest();
|
|
28085
28085
|
K.open("GET", U), K.responseType = "blob", K.onload = function() {
|
|
28086
28086
|
E(K.response, Y, H);
|
|
@@ -28108,7 +28108,7 @@ var ju = { exports: {} };
|
|
|
28108
28108
|
var P = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof xr == "object" && xr.global === xr ? xr : void 0, O = P.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), E = P.saveAs || (typeof window != "object" || window !== P ? function() {
|
|
28109
28109
|
} : "download" in HTMLAnchorElement.prototype && !O ? function(U, Y, H) {
|
|
28110
28110
|
var K = P.URL || P.webkitURL, B = document.createElement("a");
|
|
28111
|
-
Y = Y || U.name || "download", B.download = Y, B.rel = "noopener", typeof U == "string" ? (B.href = U, B.origin === location.origin ? m(B) : G(B.href) ?
|
|
28111
|
+
Y = Y || U.name || "download", B.download = Y, B.rel = "noopener", typeof U == "string" ? (B.href = U, B.origin === location.origin ? m(B) : G(B.href) ? $(U, Y, H) : m(B, B.target = "_blank")) : (B.href = K.createObjectURL(U), setTimeout(function() {
|
|
28112
28112
|
K.revokeObjectURL(B.href);
|
|
28113
28113
|
}, 4e4), setTimeout(function() {
|
|
28114
28114
|
m(B);
|
|
@@ -28117,7 +28117,7 @@ var ju = { exports: {} };
|
|
|
28117
28117
|
if (Y = Y || U.name || "download", typeof U != "string")
|
|
28118
28118
|
navigator.msSaveOrOpenBlob(p(U, H), Y);
|
|
28119
28119
|
else if (G(U))
|
|
28120
|
-
|
|
28120
|
+
$(U, Y, H);
|
|
28121
28121
|
else {
|
|
28122
28122
|
var K = document.createElement("a");
|
|
28123
28123
|
K.href = U, K.target = "_blank", setTimeout(function() {
|
|
@@ -28126,7 +28126,7 @@ var ju = { exports: {} };
|
|
|
28126
28126
|
}
|
|
28127
28127
|
} : function(U, Y, H, K) {
|
|
28128
28128
|
if (K = K || open("", "_blank"), K && (K.document.title = K.document.body.innerText = "downloading..."), typeof U == "string")
|
|
28129
|
-
return
|
|
28129
|
+
return $(U, Y, H);
|
|
28130
28130
|
var B = U.type === "application/octet-stream", q = /constructor/i.test(P.HTMLElement) || P.safari, b = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
28131
28131
|
if ((b || B && q || O) && typeof FileReader < "u") {
|
|
28132
28132
|
var A = new FileReader();
|
|
@@ -28147,8 +28147,8 @@ var ju = { exports: {} };
|
|
|
28147
28147
|
var eg = ju.exports;
|
|
28148
28148
|
const ig = /* @__PURE__ */ Wh(eg);
|
|
28149
28149
|
class fg {
|
|
28150
|
-
constructor(
|
|
28151
|
-
window.mars3d ? (this.map =
|
|
28150
|
+
constructor(J, p) {
|
|
28151
|
+
window.mars3d ? (this.map = J, this.panoramicViewClass = p, this.coordinate = [
|
|
28152
28152
|
{
|
|
28153
28153
|
heading: 0,
|
|
28154
28154
|
pitch: 0,
|
|
@@ -28185,9 +28185,9 @@ class fg {
|
|
|
28185
28185
|
* 开启全景图下载
|
|
28186
28186
|
* @returns { any }
|
|
28187
28187
|
*/
|
|
28188
|
-
start(
|
|
28189
|
-
var p,
|
|
28190
|
-
if (
|
|
28188
|
+
start(J = !0) {
|
|
28189
|
+
var p, $;
|
|
28190
|
+
if (J) {
|
|
28191
28191
|
this.timestamp = (/* @__PURE__ */ new Date()).getTime();
|
|
28192
28192
|
const G = document.getElementById("app"), m = window.innerHeight, P = document.getElementById("mars3dContainer");
|
|
28193
28193
|
P && (P.style.width = m.toString() + "px", P.style.height = m.toString() + "px"), G !== null && G.classList.add(this.panoramicViewClass);
|
|
@@ -28199,7 +28199,7 @@ class fg {
|
|
|
28199
28199
|
lat: this.lat,
|
|
28200
28200
|
lng: this.lng,
|
|
28201
28201
|
alt: this.alt,
|
|
28202
|
-
...this.coordinate[(
|
|
28202
|
+
...this.coordinate[($ = this.screenshotArray) == null ? void 0 : $.length]
|
|
28203
28203
|
},
|
|
28204
28204
|
{
|
|
28205
28205
|
complete: () => {
|
|
@@ -28217,16 +28217,16 @@ class fg {
|
|
|
28217
28217
|
* 截图
|
|
28218
28218
|
* @returns { any }
|
|
28219
28219
|
*/
|
|
28220
|
-
async screenshot(
|
|
28221
|
-
const p = await this.map.expImage({ download: !1 }),
|
|
28220
|
+
async screenshot(J) {
|
|
28221
|
+
const p = await this.map.expImage({ download: !1 }), $ = this.map.container.getElementsByClassName(
|
|
28222
28222
|
"cesium-viewer-cesiumWidgetContainer"
|
|
28223
28223
|
), G = await window.domtoimage.toPng(this.map.container, {
|
|
28224
|
-
filter: (m) => m !==
|
|
28224
|
+
filter: (m) => m !== $[0]
|
|
28225
28225
|
});
|
|
28226
28226
|
this.mergeImage(p.image, G, p.width, p.height).then(
|
|
28227
28227
|
(m) => {
|
|
28228
28228
|
var E;
|
|
28229
|
-
let P = Number(
|
|
28229
|
+
let P = Number(J) + 1, O = {
|
|
28230
28230
|
src: m,
|
|
28231
28231
|
name: "全景图_" + this.timestamp + "_" + P + ".jpg"
|
|
28232
28232
|
};
|
|
@@ -28240,22 +28240,22 @@ class fg {
|
|
|
28240
28240
|
* @param {any} height
|
|
28241
28241
|
* @returns {any}
|
|
28242
28242
|
*/
|
|
28243
|
-
mergeImage(
|
|
28243
|
+
mergeImage(J, p, $, G) {
|
|
28244
28244
|
return new Promise((m, P) => {
|
|
28245
28245
|
const O = document.createElement("canvas");
|
|
28246
|
-
O.width =
|
|
28246
|
+
O.width = $, O.height = G;
|
|
28247
28247
|
const E = O.getContext("2d");
|
|
28248
28248
|
if (O && E) {
|
|
28249
28249
|
const U = new Image();
|
|
28250
28250
|
U.crossOrigin = "Anonymous", U.onload = () => {
|
|
28251
|
-
E.drawImage(U, 0, 0,
|
|
28251
|
+
E.drawImage(U, 0, 0, $, G);
|
|
28252
28252
|
const Y = new Image();
|
|
28253
28253
|
Y.crossOrigin = "Anonymous", Y.onload = () => {
|
|
28254
|
-
E.drawImage(Y, 0, 0,
|
|
28254
|
+
E.drawImage(Y, 0, 0, $, G);
|
|
28255
28255
|
const H = O.toDataURL("image/png");
|
|
28256
28256
|
m(H);
|
|
28257
28257
|
}, Y.src = p;
|
|
28258
|
-
}, U.src =
|
|
28258
|
+
}, U.src = J;
|
|
28259
28259
|
} else
|
|
28260
28260
|
P();
|
|
28261
28261
|
});
|
|
@@ -28265,8 +28265,8 @@ class fg {
|
|
|
28265
28265
|
* @returns {any}
|
|
28266
28266
|
*/
|
|
28267
28267
|
download() {
|
|
28268
|
-
this.screenshotArray && this.screenshotArray.forEach((
|
|
28269
|
-
window.mars3d.Util.downloadBase64Image(
|
|
28268
|
+
this.screenshotArray && this.screenshotArray.forEach((J) => {
|
|
28269
|
+
window.mars3d.Util.downloadBase64Image(J.name, J.src);
|
|
28270
28270
|
});
|
|
28271
28271
|
}
|
|
28272
28272
|
/**
|
|
@@ -28275,9 +28275,9 @@ class fg {
|
|
|
28275
28275
|
*/
|
|
28276
28276
|
async downloadImagesAsZip() {
|
|
28277
28277
|
if (this.screenshotArray) {
|
|
28278
|
-
const
|
|
28279
|
-
this.screenshotArray.forEach((
|
|
28280
|
-
const G =
|
|
28278
|
+
const J = new tg();
|
|
28279
|
+
this.screenshotArray.forEach(($) => {
|
|
28280
|
+
const G = $.src.split(",")[1], m = atob(G), P = [];
|
|
28281
28281
|
for (let U = 0; U < m.length; U += 1024) {
|
|
28282
28282
|
const Y = m.slice(U, U + 1024), H = new Array(Y.length);
|
|
28283
28283
|
for (let B = 0; B < Y.length; B++)
|
|
@@ -28285,10 +28285,10 @@ class fg {
|
|
|
28285
28285
|
const K = new Uint8Array(H);
|
|
28286
28286
|
P.push(K);
|
|
28287
28287
|
}
|
|
28288
|
-
const O = new Blob(P, { type: "image/jpeg" }), E = `${
|
|
28289
|
-
|
|
28288
|
+
const O = new Blob(P, { type: "image/jpeg" }), E = `${$.name}`;
|
|
28289
|
+
J.file(E, O, { binary: !0 });
|
|
28290
28290
|
});
|
|
28291
|
-
const p = await
|
|
28291
|
+
const p = await J.generateAsync({ type: "blob" });
|
|
28292
28292
|
ig(p, "CHBIM-Panorama.zip"), this.emit("state", {
|
|
28293
28293
|
type: "success",
|
|
28294
28294
|
schedule: 100
|
|
@@ -28299,8 +28299,8 @@ class fg {
|
|
|
28299
28299
|
* 初始化
|
|
28300
28300
|
*/
|
|
28301
28301
|
init() {
|
|
28302
|
-
const
|
|
28303
|
-
|
|
28302
|
+
const J = document.getElementById("app");
|
|
28303
|
+
J && J.classList.remove(this.panoramicViewClass);
|
|
28304
28304
|
const p = document.getElementById("mars3dContainer");
|
|
28305
28305
|
p && (p.style.width = "", p.style.height = "");
|
|
28306
28306
|
}
|
|
@@ -28311,8 +28311,8 @@ class fg {
|
|
|
28311
28311
|
* @param { Function } fn - 回调函数
|
|
28312
28312
|
* @returns { any }
|
|
28313
28313
|
*/
|
|
28314
|
-
on(
|
|
28315
|
-
this.events[
|
|
28314
|
+
on(J, p) {
|
|
28315
|
+
this.events[J] ? this.events[J].push(p) : this.events[J] = [p];
|
|
28316
28316
|
}
|
|
28317
28317
|
/**
|
|
28318
28318
|
* events
|
|
@@ -28320,8 +28320,8 @@ class fg {
|
|
|
28320
28320
|
* @param { string } event - 事件名
|
|
28321
28321
|
* @returns { any }
|
|
28322
28322
|
*/
|
|
28323
|
-
emit(
|
|
28324
|
-
this.events[
|
|
28323
|
+
emit(J, ...p) {
|
|
28324
|
+
this.events[J] != null && this.events[J].forEach(($) => $(...p));
|
|
28325
28325
|
}
|
|
28326
28326
|
/**
|
|
28327
28327
|
* events
|
|
@@ -28330,9 +28330,9 @@ class fg {
|
|
|
28330
28330
|
* @param { function } callback - 回调函数
|
|
28331
28331
|
* @returns { any }
|
|
28332
28332
|
*/
|
|
28333
|
-
off(
|
|
28334
|
-
this.events[
|
|
28335
|
-
(
|
|
28333
|
+
off(J, p) {
|
|
28334
|
+
this.events[J] = this.events[J].filter(
|
|
28335
|
+
($) => $ !== p
|
|
28336
28336
|
);
|
|
28337
28337
|
}
|
|
28338
28338
|
}
|
|
@@ -28346,13 +28346,13 @@ const ng = [Cm, $m], pg = {
|
|
|
28346
28346
|
T.config.globalProperties.$continuation = this.continuation;
|
|
28347
28347
|
return;
|
|
28348
28348
|
}
|
|
28349
|
-
let
|
|
28350
|
-
if (
|
|
28349
|
+
let J = Uu(Fm), p = document.createElement("div"), $ = document.body;
|
|
28350
|
+
if ($.appendChild(p), this.loading = J.mount(p), T.config.globalProperties.$loading = this.loading, window.$continuation = this.loading, this.mapModali) {
|
|
28351
28351
|
T.config.globalProperties.$mapModali = this.mapModali;
|
|
28352
28352
|
return;
|
|
28353
28353
|
}
|
|
28354
28354
|
let G = Uu(jm), m = document.createElement("div");
|
|
28355
|
-
|
|
28355
|
+
$.appendChild(m), this.mapModali = G.mount(m), T.config.globalProperties.$mapModali = this.mapModali, window.$mapModali = this.mapModali;
|
|
28356
28356
|
}
|
|
28357
28357
|
};
|
|
28358
28358
|
export {
|