@famibee/skynovel 1.38.3 → 1.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.js +715 -721
- package/dist/app.js.map +1 -1
- package/dist/sn/CmnInterface.d.ts +2 -1
- package/dist/sn/CmnInterface.d.ts.map +1 -1
- package/dist/sn/SoundMng.d.ts.map +1 -1
- package/dist/sn/Variable.d.ts +2 -2
- package/dist/sn/Variable.d.ts.map +1 -1
- package/dist/web.js +301 -307
- package/dist/web.js.map +1 -1
- package/package.json +6 -6
package/dist/app.js
CHANGED
|
@@ -8,7 +8,7 @@ var c = (i, t, e) => (am(i, t, "read from private field"), e ? e.call(i) : t.get
|
|
|
8
8
|
if (t.has(i))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
t instanceof WeakSet ? t.add(i) : t.set(i, e);
|
|
11
|
-
}, M = (i, t, e, r) => (am(i, t, "write to private field"), r ? r.call(i, e) : t.set(i, e), e),
|
|
11
|
+
}, M = (i, t, e, r) => (am(i, t, "write to private field"), r ? r.call(i, e) : t.set(i, e), e), $e = (i, t, e, r) => ({
|
|
12
12
|
set _(n) {
|
|
13
13
|
M(i, t, n, e);
|
|
14
14
|
},
|
|
@@ -208,7 +208,7 @@ var fp = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
208
208
|
Samsung: { "Galaxy S": 1, "Galaxy S2": 1, "Galaxy S3": 1, "Galaxy S4": 1 },
|
|
209
209
|
Sony: { PlayStation: 1, "PlayStation Vita": 1 },
|
|
210
210
|
Xiaomi: { Mi: 1, Redmi: 1 }
|
|
211
|
-
}), X =
|
|
211
|
+
}), X = je([
|
|
212
212
|
"Windows Phone",
|
|
213
213
|
"KaiOS",
|
|
214
214
|
"Android",
|
|
@@ -256,7 +256,7 @@ var fp = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
256
256
|
return ne || RegExp("\\b" + (Ht.pattern || b(Ht)) + "\\b", "i").exec(T) && (Ht.label || Ht);
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function je(ae) {
|
|
260
260
|
return x(ae, function(ne, Ht) {
|
|
261
261
|
var nr = Ht.pattern || b(Ht);
|
|
262
262
|
return !ne && (ne = RegExp("\\b" + nr + "(?:/[\\d.]+|[ \\w.]*)", "i").exec(T)) && (ne = p(ne, nr, Ht.label || Ht)), ne;
|
|
@@ -341,7 +341,7 @@ const QE = Ra.exports;
|
|
|
341
341
|
function jt(i) {
|
|
342
342
|
return parseInt(String(i), 10);
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function ei(i) {
|
|
345
345
|
const t = parseInt(String(i), 10);
|
|
346
346
|
return t < 0 ? -t : t;
|
|
347
347
|
}
|
|
@@ -512,8 +512,8 @@ function SM(i, t) {
|
|
|
512
512
|
i.apply(t, arguments);
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
if (!(this instanceof
|
|
515
|
+
function Ge(i) {
|
|
516
|
+
if (!(this instanceof Ge))
|
|
517
517
|
throw new TypeError("Promises must be constructed via new");
|
|
518
518
|
if (typeof i != "function")
|
|
519
519
|
throw new TypeError("not a function");
|
|
@@ -526,7 +526,7 @@ function nw(i, t) {
|
|
|
526
526
|
i._deferreds.push(t);
|
|
527
527
|
return;
|
|
528
528
|
}
|
|
529
|
-
i._handled = !0,
|
|
529
|
+
i._handled = !0, Ge._immediateFn(function() {
|
|
530
530
|
var e = i._state === 1 ? t.onFulfilled : t.onRejected;
|
|
531
531
|
if (e === null) {
|
|
532
532
|
(i._state === 1 ? Km : Wh)(t.promise, i._value);
|
|
@@ -548,7 +548,7 @@ function Km(i, t) {
|
|
|
548
548
|
throw new TypeError("A promise cannot be resolved with itself.");
|
|
549
549
|
if (t && (typeof t == "object" || typeof t == "function")) {
|
|
550
550
|
var e = t.then;
|
|
551
|
-
if (t instanceof
|
|
551
|
+
if (t instanceof Ge) {
|
|
552
552
|
i._state = 3, i._value = t, Jm(i);
|
|
553
553
|
return;
|
|
554
554
|
} else if (typeof e == "function") {
|
|
@@ -565,8 +565,8 @@ function Wh(i, t) {
|
|
|
565
565
|
i._state = 2, i._value = t, Jm(i);
|
|
566
566
|
}
|
|
567
567
|
function Jm(i) {
|
|
568
|
-
i._state === 2 && i._deferreds.length === 0 &&
|
|
569
|
-
i._handled ||
|
|
568
|
+
i._state === 2 && i._deferreds.length === 0 && Ge._immediateFn(function() {
|
|
569
|
+
i._handled || Ge._unhandledRejectionFn(i._value);
|
|
570
570
|
});
|
|
571
571
|
for (var t = 0, e = i._deferreds.length; t < e; t++)
|
|
572
572
|
nw(i, i._deferreds[t]);
|
|
@@ -592,16 +592,16 @@ function sw(i, t) {
|
|
|
592
592
|
e = !0, Wh(t, r);
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
|
|
595
|
+
Ge.prototype.catch = function(i) {
|
|
596
596
|
return this.then(null, i);
|
|
597
597
|
};
|
|
598
|
-
|
|
598
|
+
Ge.prototype.then = function(i, t) {
|
|
599
599
|
var e = new this.constructor(wM);
|
|
600
600
|
return nw(this, new TM(i, t, e)), e;
|
|
601
601
|
};
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
return new
|
|
602
|
+
Ge.prototype.finally = bM;
|
|
603
|
+
Ge.all = function(i) {
|
|
604
|
+
return new Ge(function(t, e) {
|
|
605
605
|
if (!iw(i))
|
|
606
606
|
return e(new TypeError("Promise.all accepts an array"));
|
|
607
607
|
var r = Array.prototype.slice.call(i);
|
|
@@ -632,31 +632,31 @@ Ue.all = function(i) {
|
|
|
632
632
|
s(a, r[a]);
|
|
633
633
|
});
|
|
634
634
|
};
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
return i && typeof i == "object" && i.constructor ===
|
|
635
|
+
Ge.allSettled = xM;
|
|
636
|
+
Ge.resolve = function(i) {
|
|
637
|
+
return i && typeof i == "object" && i.constructor === Ge ? i : new Ge(function(t) {
|
|
638
638
|
t(i);
|
|
639
639
|
});
|
|
640
640
|
};
|
|
641
|
-
|
|
642
|
-
return new
|
|
641
|
+
Ge.reject = function(i) {
|
|
642
|
+
return new Ge(function(t, e) {
|
|
643
643
|
e(i);
|
|
644
644
|
});
|
|
645
645
|
};
|
|
646
|
-
|
|
647
|
-
return new
|
|
646
|
+
Ge.race = function(i) {
|
|
647
|
+
return new Ge(function(t, e) {
|
|
648
648
|
if (!iw(i))
|
|
649
649
|
return e(new TypeError("Promise.race accepts an array"));
|
|
650
650
|
for (var r = 0, n = i.length; r < n; r++)
|
|
651
|
-
|
|
651
|
+
Ge.resolve(i[r]).then(t, e);
|
|
652
652
|
});
|
|
653
653
|
};
|
|
654
|
-
|
|
654
|
+
Ge._immediateFn = typeof setImmediate == "function" && function(i) {
|
|
655
655
|
setImmediate(i);
|
|
656
656
|
} || function(i) {
|
|
657
657
|
EM(i, 0);
|
|
658
658
|
};
|
|
659
|
-
|
|
659
|
+
Ge._unhandledRejectionFn = function(t) {
|
|
660
660
|
typeof console < "u" && console && console.warn("Possible Unhandled Promise Rejection:", t);
|
|
661
661
|
};
|
|
662
662
|
/*
|
|
@@ -713,7 +713,7 @@ var IM = OM() ? Object.assign : function(i, t) {
|
|
|
713
713
|
* http://www.opensource.org/licenses/mit-license
|
|
714
714
|
*/
|
|
715
715
|
typeof globalThis > "u" && (typeof self < "u" ? self.globalThis = self : typeof global < "u" && (global.globalThis = global));
|
|
716
|
-
globalThis.Promise || (globalThis.Promise =
|
|
716
|
+
globalThis.Promise || (globalThis.Promise = Ge);
|
|
717
717
|
Object.assign || (Object.assign = IM);
|
|
718
718
|
var DM = 16;
|
|
719
719
|
Date.now && Date.prototype.getTime || (Date.now = function() {
|
|
@@ -820,22 +820,22 @@ var Zp;
|
|
|
820
820
|
(function(i) {
|
|
821
821
|
i[i.AUTO = 0] = "AUTO", i[i.MANUAL = 1] = "MANUAL";
|
|
822
822
|
})(Zp || (Zp = {}));
|
|
823
|
-
var
|
|
823
|
+
var ri;
|
|
824
824
|
(function(i) {
|
|
825
825
|
i.LOW = "lowp", i.MEDIUM = "mediump", i.HIGH = "highp";
|
|
826
|
-
})(
|
|
827
|
-
var
|
|
826
|
+
})(ri || (ri = {}));
|
|
827
|
+
var qe;
|
|
828
828
|
(function(i) {
|
|
829
829
|
i[i.NONE = 0] = "NONE", i[i.SCISSOR = 1] = "SCISSOR", i[i.STENCIL = 2] = "STENCIL", i[i.SPRITE = 3] = "SPRITE", i[i.COLOR = 4] = "COLOR";
|
|
830
|
-
})(
|
|
830
|
+
})(qe || (qe = {}));
|
|
831
831
|
var kx;
|
|
832
832
|
(function(i) {
|
|
833
833
|
i[i.RED = 1] = "RED", i[i.GREEN = 2] = "GREEN", i[i.BLUE = 4] = "BLUE", i[i.ALPHA = 8] = "ALPHA";
|
|
834
834
|
})(kx || (kx = {}));
|
|
835
|
-
var
|
|
835
|
+
var ke;
|
|
836
836
|
(function(i) {
|
|
837
837
|
i[i.NONE = 0] = "NONE", i[i.LOW = 2] = "LOW", i[i.MEDIUM = 4] = "MEDIUM", i[i.HIGH = 8] = "HIGH";
|
|
838
|
-
})(
|
|
838
|
+
})(ke || (ke = {}));
|
|
839
839
|
var Sn;
|
|
840
840
|
(function(i) {
|
|
841
841
|
i[i.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", i[i.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", i[i.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER";
|
|
@@ -957,7 +957,7 @@ var vt = {
|
|
|
957
957
|
ANISOTROPIC_LEVEL: 0,
|
|
958
958
|
RESOLUTION: 1,
|
|
959
959
|
FILTER_RESOLUTION: 1,
|
|
960
|
-
FILTER_MULTISAMPLE:
|
|
960
|
+
FILTER_MULTISAMPLE: ke.NONE,
|
|
961
961
|
SPRITE_MAX_TEXTURES: NM(32),
|
|
962
962
|
SPRITE_BATCH_SIZE: 4096,
|
|
963
963
|
RENDER_OPTIONS: {
|
|
@@ -978,8 +978,8 @@ var vt = {
|
|
|
978
978
|
GC_MAX_CHECK_COUNT: 60 * 10,
|
|
979
979
|
WRAP_MODE: wn.CLAMP,
|
|
980
980
|
SCALE_MODE: xn.LINEAR,
|
|
981
|
-
PRECISION_VERTEX:
|
|
982
|
-
PRECISION_FRAGMENT: En.apple.device ?
|
|
981
|
+
PRECISION_VERTEX: ri.HIGH,
|
|
982
|
+
PRECISION_FRAGMENT: En.apple.device ? ri.HIGH : ri.MEDIUM,
|
|
983
983
|
CAN_UPLOAD_SAME_BUFFER: kM(),
|
|
984
984
|
CREATE_IMAGE_BITMAP: !1,
|
|
985
985
|
ROUND_PIXELS: !1
|
|
@@ -1660,7 +1660,7 @@ function Wo() {
|
|
|
1660
1660
|
return ++XI;
|
|
1661
1661
|
}
|
|
1662
1662
|
var Jx = {};
|
|
1663
|
-
function
|
|
1663
|
+
function Lr(i, t, e) {
|
|
1664
1664
|
if (e === void 0 && (e = 3), !Jx[t]) {
|
|
1665
1665
|
var r = new Error().stack;
|
|
1666
1666
|
typeof r > "u" ? console.warn("PixiJS Deprecation Warning: ", t + `
|
|
@@ -1671,11 +1671,11 @@ Deprecated since v` + i), console.warn(r), console.groupEnd()) : (console.warn("
|
|
|
1671
1671
|
Deprecated since v` + i), console.warn(r))), Jx[t] = !0;
|
|
1672
1672
|
}
|
|
1673
1673
|
}
|
|
1674
|
-
var Qx = {},
|
|
1674
|
+
var Qx = {}, Nr = /* @__PURE__ */ Object.create(null), Gn = /* @__PURE__ */ Object.create(null);
|
|
1675
1675
|
function WI() {
|
|
1676
1676
|
var i;
|
|
1677
|
-
for (i in
|
|
1678
|
-
delete
|
|
1677
|
+
for (i in Nr)
|
|
1678
|
+
delete Nr[i];
|
|
1679
1679
|
for (i in Gn)
|
|
1680
1680
|
delete Gn[i];
|
|
1681
1681
|
}
|
|
@@ -2224,7 +2224,7 @@ function ob(i, t) {
|
|
|
2224
2224
|
}
|
|
2225
2225
|
i.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
2226
2226
|
}
|
|
2227
|
-
var
|
|
2227
|
+
var He = function(i) {
|
|
2228
2228
|
ob(t, i);
|
|
2229
2229
|
function t() {
|
|
2230
2230
|
var e = i.call(this) || this;
|
|
@@ -2409,8 +2409,8 @@ var $e = function(i) {
|
|
|
2409
2409
|
return e.sortDirty = null, e;
|
|
2410
2410
|
}
|
|
2411
2411
|
return t;
|
|
2412
|
-
}(
|
|
2413
|
-
|
|
2412
|
+
}(He);
|
|
2413
|
+
He.prototype.displayObjectUpdateTransform = He.prototype.updateTransform;
|
|
2414
2414
|
function rD(i, t) {
|
|
2415
2415
|
return i.zIndex === t.zIndex ? i._lastSortedIndex - t._lastSortedIndex : i.zIndex - t.zIndex;
|
|
2416
2416
|
}
|
|
@@ -2550,7 +2550,7 @@ var ve = function(i) {
|
|
|
2550
2550
|
for (var s = 0; s < r.length; s++)
|
|
2551
2551
|
r[s].enabled && this._enabledFilters.push(r[s]);
|
|
2552
2552
|
}
|
|
2553
|
-
var a = r && this._enabledFilters && this._enabledFilters.length || n && (!n.isMaskData || n.enabled && (n.autoDetect || n.type !==
|
|
2553
|
+
var a = r && this._enabledFilters && this._enabledFilters.length || n && (!n.isMaskData || n.enabled && (n.autoDetect || n.type !== qe.NONE));
|
|
2554
2554
|
if (a && e.batch.flush(), r && this._enabledFilters && this._enabledFilters.length && e.filter.push(this, this._enabledFilters), n && e.mask.push(this, this._mask), this.cullable)
|
|
2555
2555
|
this._renderWithCulling(e);
|
|
2556
2556
|
else {
|
|
@@ -2587,7 +2587,7 @@ var ve = function(i) {
|
|
|
2587
2587
|
enumerable: !1,
|
|
2588
2588
|
configurable: !0
|
|
2589
2589
|
}), t;
|
|
2590
|
-
}(
|
|
2590
|
+
}(He);
|
|
2591
2591
|
ve.prototype.containerUpdateTransform = ve.prototype.updateTransform;
|
|
2592
2592
|
/*!
|
|
2593
2593
|
* @pixi/extensions - v6.5.8
|
|
@@ -2765,7 +2765,7 @@ var dm = function() {
|
|
|
2765
2765
|
var e = this.next;
|
|
2766
2766
|
return this.next = t ? null : e, this.previous = null, e;
|
|
2767
2767
|
}, i;
|
|
2768
|
-
}(),
|
|
2768
|
+
}(), Ne = function() {
|
|
2769
2769
|
function i() {
|
|
2770
2770
|
var t = this;
|
|
2771
2771
|
this.autoStart = !1, this.deltaTime = 1, this.lastTime = -1, this.speed = 1, this.started = !1, this._requestId = null, this._maxElapsedMS = 100, this._minElapsedMS = 0, this._protected = !1, this._lastFrame = -1, this._head = new dm(null, null, 1 / 0), this.deltaMS = 1 / vt.TARGET_FPMS, this.elapsedMS = 1 / vt.TARGET_FPMS, this._tick = function(e) {
|
|
@@ -2909,7 +2909,7 @@ var dm = function() {
|
|
|
2909
2909
|
e._ticker.stop();
|
|
2910
2910
|
}, this.start = function() {
|
|
2911
2911
|
e._ticker.start();
|
|
2912
|
-
}, this._ticker = null, this.ticker = t.sharedTicker ?
|
|
2912
|
+
}, this._ticker = null, this.ticker = t.sharedTicker ? Ne.shared : new Ne(), t.autoStart && this.start();
|
|
2913
2913
|
}, i.destroy = function() {
|
|
2914
2914
|
if (this._ticker) {
|
|
2915
2915
|
var t = this._ticker;
|
|
@@ -2964,7 +2964,7 @@ var sy = function(i, t) {
|
|
|
2964
2964
|
r.hasOwnProperty(n) && (e[n] = r[n]);
|
|
2965
2965
|
}, sy(i, t);
|
|
2966
2966
|
};
|
|
2967
|
-
function
|
|
2967
|
+
function Ee(i, t) {
|
|
2968
2968
|
sy(i, t);
|
|
2969
2969
|
function e() {
|
|
2970
2970
|
this.constructor = i;
|
|
@@ -3031,7 +3031,7 @@ var Yo = function() {
|
|
|
3031
3031
|
return !1;
|
|
3032
3032
|
}, i;
|
|
3033
3033
|
}(), eu = function(i) {
|
|
3034
|
-
|
|
3034
|
+
Ee(t, i);
|
|
3035
3035
|
function t(e, r) {
|
|
3036
3036
|
var n = this, s = r || {}, a = s.width, o = s.height;
|
|
3037
3037
|
if (!a || !o)
|
|
@@ -3053,7 +3053,7 @@ var Yo = function() {
|
|
|
3053
3053
|
format: ut.RGBA,
|
|
3054
3054
|
alphaMode: Ki.NPM
|
|
3055
3055
|
}, Wt = function(i) {
|
|
3056
|
-
|
|
3056
|
+
Ee(t, i);
|
|
3057
3057
|
function t(e, r) {
|
|
3058
3058
|
e === void 0 && (e = null), r === void 0 && (r = null);
|
|
3059
3059
|
var n = i.call(this) || this;
|
|
@@ -3123,7 +3123,7 @@ var Yo = function() {
|
|
|
3123
3123
|
}, t.prototype.onError = function(e) {
|
|
3124
3124
|
this.emit("error", this, e);
|
|
3125
3125
|
}, t.prototype.destroy = function() {
|
|
3126
|
-
this.resource && (this.resource.unbind(this), this.resource.internal && this.resource.destroy(), this.resource = null), this.cacheId && (delete Gn[this.cacheId], delete
|
|
3126
|
+
this.resource && (this.resource.unbind(this), this.resource.internal && this.resource.destroy(), this.resource = null), this.cacheId && (delete Gn[this.cacheId], delete Nr[this.cacheId], this.cacheId = null), this.dispose(), t.removeFromCache(this), this.textureCacheIds = null, this.destroyed = !0;
|
|
3127
3127
|
}, t.prototype.dispose = function() {
|
|
3128
3128
|
this.emit("dispose", this);
|
|
3129
3129
|
}, t.prototype.castToBaseTexture = function() {
|
|
@@ -3165,7 +3165,7 @@ var Yo = function() {
|
|
|
3165
3165
|
return null;
|
|
3166
3166
|
}, t._globalBatch = 0, t;
|
|
3167
3167
|
}(wi), jg = function(i) {
|
|
3168
|
-
|
|
3168
|
+
Ee(t, i);
|
|
3169
3169
|
function t(e, r) {
|
|
3170
3170
|
var n = this, s = r || {}, a = s.width, o = s.height;
|
|
3171
3171
|
n = i.call(this, a, o) || this, n.items = [], n.itemDirtyIds = [];
|
|
@@ -3213,7 +3213,7 @@ var Yo = function() {
|
|
|
3213
3213
|
}), this._load;
|
|
3214
3214
|
}, t;
|
|
3215
3215
|
}(Yo), ub = function(i) {
|
|
3216
|
-
|
|
3216
|
+
Ee(t, i);
|
|
3217
3217
|
function t(e, r) {
|
|
3218
3218
|
var n = this, s = r || {}, a = s.width, o = s.height, u, l;
|
|
3219
3219
|
return Array.isArray(e) ? (u = e, l = e.length) : l = e, n = i.call(this, l, { width: a, height: o }) || this, u && n.initFromArray(u, r), n;
|
|
@@ -3248,7 +3248,7 @@ var Yo = function() {
|
|
|
3248
3248
|
return !0;
|
|
3249
3249
|
}, t;
|
|
3250
3250
|
}(jg), Mn = function(i) {
|
|
3251
|
-
|
|
3251
|
+
Ee(t, i);
|
|
3252
3252
|
function t(e) {
|
|
3253
3253
|
var r = this, n = e, s = n.naturalWidth || n.videoWidth || n.width, a = n.naturalHeight || n.videoHeight || n.height;
|
|
3254
3254
|
return r = i.call(this, s, a) || this, r.source = e, r.noSubImage = !1, r;
|
|
@@ -3272,7 +3272,7 @@ var Yo = function() {
|
|
|
3272
3272
|
this.source = null;
|
|
3273
3273
|
}, t;
|
|
3274
3274
|
}(Yo), lb = function(i) {
|
|
3275
|
-
|
|
3275
|
+
Ee(t, i);
|
|
3276
3276
|
function t(e) {
|
|
3277
3277
|
return i.call(this, e) || this;
|
|
3278
3278
|
}
|
|
@@ -3281,7 +3281,7 @@ var Yo = function() {
|
|
|
3281
3281
|
return r && e instanceof r ? !0 : globalThis.HTMLCanvasElement && e instanceof HTMLCanvasElement;
|
|
3282
3282
|
}, t;
|
|
3283
3283
|
}(Mn), hb = function(i) {
|
|
3284
|
-
|
|
3284
|
+
Ee(t, i);
|
|
3285
3285
|
function t(e, r) {
|
|
3286
3286
|
var n = this, s = r || {}, a = s.width, o = s.height, u = s.autoLoad, l = s.linkBaseTexture;
|
|
3287
3287
|
if (e && e.length !== t.SIDES)
|
|
@@ -3314,7 +3314,7 @@ var Yo = function() {
|
|
|
3314
3314
|
return Array.isArray(e) && e.length === t.SIDES;
|
|
3315
3315
|
}, t.SIDES = 6, t;
|
|
3316
3316
|
}(jg), zg = function(i) {
|
|
3317
|
-
|
|
3317
|
+
Ee(t, i);
|
|
3318
3318
|
function t(e, r) {
|
|
3319
3319
|
var n = this;
|
|
3320
3320
|
if (r = r || {}, !(e instanceof HTMLImageElement)) {
|
|
@@ -3376,7 +3376,7 @@ var Yo = function() {
|
|
|
3376
3376
|
return typeof e == "string" || e instanceof HTMLImageElement;
|
|
3377
3377
|
}, t;
|
|
3378
3378
|
}(Mn), cb = function(i) {
|
|
3379
|
-
|
|
3379
|
+
Ee(t, i);
|
|
3380
3380
|
function t(e, r) {
|
|
3381
3381
|
var n = this;
|
|
3382
3382
|
return r = r || {}, n = i.call(this, vt.ADAPTER.createCanvas()) || this, n._width = 0, n._height = 0, n.svg = e, n.scale = r.scale || 1, n._overrideWidth = r.width, n._overrideHeight = r.height, n._resolve = null, n._crossorigin = r.crossorigin, n._load = null, r.autoLoad !== !1 && n.load(), n;
|
|
@@ -3417,7 +3417,7 @@ var Yo = function() {
|
|
|
3417
3417
|
return r === "svg" || typeof e == "string" && e.startsWith("data:image/svg+xml") || typeof e == "string" && t.SVG_XML.test(e);
|
|
3418
3418
|
}, t.SVG_XML = /^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m, t.SVG_SIZE = /<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i, t;
|
|
3419
3419
|
}(Mn), fb = function(i) {
|
|
3420
|
-
|
|
3420
|
+
Ee(t, i);
|
|
3421
3421
|
function t(e, r) {
|
|
3422
3422
|
var n = this;
|
|
3423
3423
|
if (r = r || {}, !(e instanceof HTMLVideoElement)) {
|
|
@@ -3437,7 +3437,7 @@ var Yo = function() {
|
|
|
3437
3437
|
}
|
|
3438
3438
|
return t.prototype.update = function(e) {
|
|
3439
3439
|
if (!this.destroyed) {
|
|
3440
|
-
var r =
|
|
3440
|
+
var r = Ne.shared.elapsedMS * this.source.playbackRate;
|
|
3441
3441
|
this._msToNextUpdate = Math.floor(this._msToNextUpdate - r), (!this._updateFPS || this._msToNextUpdate <= 0) && (i.prototype.update.call(this), this._msToNextUpdate = this._updateFPS ? Math.floor(1e3 / this._updateFPS) : 0);
|
|
3442
3442
|
}
|
|
3443
3443
|
}, t.prototype.load = function() {
|
|
@@ -3457,16 +3457,16 @@ var Yo = function() {
|
|
|
3457
3457
|
var e = this.source;
|
|
3458
3458
|
return e.readyState > 2;
|
|
3459
3459
|
}, t.prototype._onPlayStart = function() {
|
|
3460
|
-
this.valid || this._onCanPlay(), this.autoUpdate && !this._isConnectedToTicker && (
|
|
3460
|
+
this.valid || this._onCanPlay(), this.autoUpdate && !this._isConnectedToTicker && (Ne.shared.add(this.update, this), this._isConnectedToTicker = !0);
|
|
3461
3461
|
}, t.prototype._onPlayStop = function() {
|
|
3462
|
-
this._isConnectedToTicker && (
|
|
3462
|
+
this._isConnectedToTicker && (Ne.shared.remove(this.update, this), this._isConnectedToTicker = !1);
|
|
3463
3463
|
}, t.prototype._onCanPlay = function() {
|
|
3464
3464
|
var e = this.source;
|
|
3465
3465
|
e.removeEventListener("canplay", this._onCanPlay), e.removeEventListener("canplaythrough", this._onCanPlay);
|
|
3466
3466
|
var r = this.valid;
|
|
3467
3467
|
this.resize(e.videoWidth, e.videoHeight), !r && this._resolve && (this._resolve(this), this._resolve = null), this._isSourcePlaying() ? this._onPlayStart() : this.autoPlay && e.play();
|
|
3468
3468
|
}, t.prototype.dispose = function() {
|
|
3469
|
-
this._isConnectedToTicker && (
|
|
3469
|
+
this._isConnectedToTicker && (Ne.shared.remove(this.update, this), this._isConnectedToTicker = !1);
|
|
3470
3470
|
var e = this.source;
|
|
3471
3471
|
e && (e.removeEventListener("error", this._onError, !0), e.pause(), e.src = "", e.load()), i.prototype.dispose.call(this);
|
|
3472
3472
|
}, Object.defineProperty(t.prototype, "autoUpdate", {
|
|
@@ -3474,7 +3474,7 @@ var Yo = function() {
|
|
|
3474
3474
|
return this._autoUpdate;
|
|
3475
3475
|
},
|
|
3476
3476
|
set: function(e) {
|
|
3477
|
-
e !== this._autoUpdate && (this._autoUpdate = e, !this._autoUpdate && this._isConnectedToTicker ? (
|
|
3477
|
+
e !== this._autoUpdate && (this._autoUpdate = e, !this._autoUpdate && this._isConnectedToTicker ? (Ne.shared.remove(this.update, this), this._isConnectedToTicker = !1) : this._autoUpdate && !this._isConnectedToTicker && this._isSourcePlaying() && (Ne.shared.add(this.update, this), this._isConnectedToTicker = !0));
|
|
3478
3478
|
},
|
|
3479
3479
|
enumerable: !1,
|
|
3480
3480
|
configurable: !0
|
|
@@ -3495,7 +3495,7 @@ var Yo = function() {
|
|
|
3495
3495
|
m4v: "video/mp4"
|
|
3496
3496
|
}, t;
|
|
3497
3497
|
}(Mn), db = function(i) {
|
|
3498
|
-
|
|
3498
|
+
Ee(t, i);
|
|
3499
3499
|
function t(e) {
|
|
3500
3500
|
return i.call(this, e) || this;
|
|
3501
3501
|
}
|
|
@@ -3520,7 +3520,7 @@ var _w = {
|
|
|
3520
3520
|
VideoResource: fb,
|
|
3521
3521
|
ImageBitmapResource: db
|
|
3522
3522
|
}, aD = function(i) {
|
|
3523
|
-
|
|
3523
|
+
Ee(t, i);
|
|
3524
3524
|
function t() {
|
|
3525
3525
|
return i !== null && i.apply(this, arguments) || this;
|
|
3526
3526
|
}
|
|
@@ -3532,7 +3532,7 @@ var _w = {
|
|
|
3532
3532
|
}, t;
|
|
3533
3533
|
}(eu), ev = function() {
|
|
3534
3534
|
function i(t, e) {
|
|
3535
|
-
this.width = Math.round(t || 100), this.height = Math.round(e || 100), this.stencil = !1, this.depth = !1, this.dirtyId = 0, this.dirtyFormat = 0, this.dirtySize = 0, this.depthTexture = null, this.colorTextures = [], this.glFramebuffers = {}, this.disposeRunner = new dr("disposeFramebuffer"), this.multisample =
|
|
3535
|
+
this.width = Math.round(t || 100), this.height = Math.round(e || 100), this.stencil = !1, this.depth = !1, this.dirtyId = 0, this.dirtyFormat = 0, this.dirtySize = 0, this.depthTexture = null, this.colorTextures = [], this.glFramebuffers = {}, this.disposeRunner = new dr("disposeFramebuffer"), this.multisample = ke.NONE;
|
|
3536
3536
|
}
|
|
3537
3537
|
return Object.defineProperty(i.prototype, "colorTexture", {
|
|
3538
3538
|
get: function() {
|
|
@@ -3580,7 +3580,7 @@ var _w = {
|
|
|
3580
3580
|
this.depthTexture && (this.depthTexture.destroy(), this.depthTexture = null, ++this.dirtyId, ++this.dirtyFormat);
|
|
3581
3581
|
}, i;
|
|
3582
3582
|
}(), pb = function(i) {
|
|
3583
|
-
|
|
3583
|
+
Ee(t, i);
|
|
3584
3584
|
function t(e) {
|
|
3585
3585
|
e === void 0 && (e = {});
|
|
3586
3586
|
var r = this;
|
|
@@ -3588,7 +3588,7 @@ var _w = {
|
|
|
3588
3588
|
var n = arguments[0], s = arguments[1], a = arguments[2], o = arguments[3];
|
|
3589
3589
|
e = { width: n, height: s, scaleMode: a, resolution: o };
|
|
3590
3590
|
}
|
|
3591
|
-
return e.width = e.width || 100, e.height = e.height || 100, e.multisample = e.multisample !== void 0 ? e.multisample :
|
|
3591
|
+
return e.width = e.width || 100, e.height = e.height || 100, e.multisample = e.multisample !== void 0 ? e.multisample : ke.NONE, r = i.call(this, null, e) || this, r.mipmap = Zi.OFF, r.valid = !0, r.clearColor = [0, 0, 0, 0], r.framebuffer = new ev(r.realWidth, r.realHeight).addColorTexture(0, r), r.framebuffer.multisample = e.multisample, r.maskStack = [], r.filterStack = [{}], r;
|
|
3592
3592
|
}
|
|
3593
3593
|
return t.prototype.resize = function(e, r) {
|
|
3594
3594
|
this.framebuffer.resize(e * this.resolution, r * this.resolution), this.setRealSize(this.framebuffer.width, this.framebuffer.height);
|
|
@@ -3621,7 +3621,7 @@ function Dd(i) {
|
|
|
3621
3621
|
};
|
|
3622
3622
|
}
|
|
3623
3623
|
var St = function(i) {
|
|
3624
|
-
|
|
3624
|
+
Ee(t, i);
|
|
3625
3625
|
function t(e, r, n, s, a, o) {
|
|
3626
3626
|
var u = i.call(this) || this;
|
|
3627
3627
|
if (u.noFrame = !1, r || (u.noFrame = !0, r = new Ot(0, 0, 1, 1)), e instanceof t && (e = e.baseTexture), u.baseTexture = e, u._frame = r, u.trim = s, u.valid = !1, u._uvs = r1, u.uvMatrix = null, u.orig = n || r, u._rotate = Number(a || 0), a === !0)
|
|
@@ -3644,7 +3644,7 @@ var St = function(i) {
|
|
|
3644
3644
|
if (this.baseTexture) {
|
|
3645
3645
|
if (e) {
|
|
3646
3646
|
var r = this.baseTexture.resource;
|
|
3647
|
-
r && r.url &&
|
|
3647
|
+
r && r.url && Nr[r.url] && t.removeFromCache(r.url), this.baseTexture.destroy();
|
|
3648
3648
|
}
|
|
3649
3649
|
this.baseTexture.off("loaded", this.onBaseTextureUpdated, this), this.baseTexture.off("update", this.onBaseTextureUpdated, this), this.baseTexture = null;
|
|
3650
3650
|
}
|
|
@@ -3672,7 +3672,7 @@ var St = function(i) {
|
|
|
3672
3672
|
}
|
|
3673
3673
|
a = e._pixiId;
|
|
3674
3674
|
}
|
|
3675
|
-
var u =
|
|
3675
|
+
var u = Nr[a];
|
|
3676
3676
|
if (s && n && !u)
|
|
3677
3677
|
throw new Error('The cacheId "' + a + '" does not exist in TextureCache.');
|
|
3678
3678
|
return !u && !(e instanceof Wt) ? (r.resolution || (r.resolution = Jp(e)), u = new t(new Wt(e, r)), u.baseTexture.cacheId = a, Wt.addToCache(u.baseTexture, a), t.addToCache(u, a)) : !u && e instanceof Wt && (u = new t(e), t.addToCache(u, a)), u;
|
|
@@ -3696,17 +3696,17 @@ var St = function(i) {
|
|
|
3696
3696
|
});
|
|
3697
3697
|
});
|
|
3698
3698
|
}, t.addToCache = function(e, r) {
|
|
3699
|
-
r && (e.textureCacheIds.indexOf(r) === -1 && e.textureCacheIds.push(r),
|
|
3699
|
+
r && (e.textureCacheIds.indexOf(r) === -1 && e.textureCacheIds.push(r), Nr[r] && console.warn("Texture added to the cache with an id [" + r + "] that already had an entry"), Nr[r] = e);
|
|
3700
3700
|
}, t.removeFromCache = function(e) {
|
|
3701
3701
|
if (typeof e == "string") {
|
|
3702
|
-
var r =
|
|
3702
|
+
var r = Nr[e];
|
|
3703
3703
|
if (r) {
|
|
3704
3704
|
var n = r.textureCacheIds.indexOf(e);
|
|
3705
|
-
return n > -1 && r.textureCacheIds.splice(n, 1), delete
|
|
3705
|
+
return n > -1 && r.textureCacheIds.splice(n, 1), delete Nr[e], r;
|
|
3706
3706
|
}
|
|
3707
3707
|
} else if (e && e.textureCacheIds) {
|
|
3708
3708
|
for (var s = 0; s < e.textureCacheIds.length; ++s)
|
|
3709
|
-
|
|
3709
|
+
Nr[e.textureCacheIds[s]] === e && delete Nr[e.textureCacheIds[s]];
|
|
3710
3710
|
return e.textureCacheIds.length = 0, e;
|
|
3711
3711
|
}
|
|
3712
3712
|
return null;
|
|
@@ -3772,7 +3772,7 @@ var St = function(i) {
|
|
|
3772
3772
|
configurable: !0
|
|
3773
3773
|
}), t;
|
|
3774
3774
|
}(wi), gi = function(i) {
|
|
3775
|
-
|
|
3775
|
+
Ee(t, i);
|
|
3776
3776
|
function t(e, r) {
|
|
3777
3777
|
var n = i.call(this, e, r) || this;
|
|
3778
3778
|
return n.valid = !0, n.filterFrame = null, n.filterPoolKey = null, n.updateUvs(), n;
|
|
@@ -3802,7 +3802,7 @@ var St = function(i) {
|
|
|
3802
3802
|
}, t.create = function(e) {
|
|
3803
3803
|
for (var r = arguments, n = [], s = 1; s < arguments.length; s++)
|
|
3804
3804
|
n[s - 1] = r[s];
|
|
3805
|
-
return typeof e == "number" && (
|
|
3805
|
+
return typeof e == "number" && (Lr("6.0.0", "Arguments (width, height, scaleMode, resolution) have been deprecated."), e = {
|
|
3806
3806
|
width: e,
|
|
3807
3807
|
height: n[0],
|
|
3808
3808
|
scaleMode: n[1],
|
|
@@ -3814,7 +3814,7 @@ var St = function(i) {
|
|
|
3814
3814
|
this.texturePool = {}, this.textureOptions = t || {}, this.enableFullScreen = !1, this._pixelsWidth = 0, this._pixelsHeight = 0;
|
|
3815
3815
|
}
|
|
3816
3816
|
return i.prototype.createTexture = function(t, e, r) {
|
|
3817
|
-
r === void 0 && (r =
|
|
3817
|
+
r === void 0 && (r = ke.NONE);
|
|
3818
3818
|
var n = new pb(Object.assign({
|
|
3819
3819
|
width: t,
|
|
3820
3820
|
height: e,
|
|
@@ -3823,13 +3823,13 @@ var St = function(i) {
|
|
|
3823
3823
|
}, this.textureOptions));
|
|
3824
3824
|
return new gi(n);
|
|
3825
3825
|
}, i.prototype.getOptimalTexture = function(t, e, r, n) {
|
|
3826
|
-
r === void 0 && (r = 1), n === void 0 && (n =
|
|
3826
|
+
r === void 0 && (r = 1), n === void 0 && (n = ke.NONE);
|
|
3827
3827
|
var s;
|
|
3828
3828
|
t = Math.ceil(t * r - 1e-6), e = Math.ceil(e * r - 1e-6), !this.enableFullScreen || t !== this._pixelsWidth || e !== this._pixelsHeight ? (t = Kp(t), e = Kp(e), s = ((t & 65535) << 16 | e & 65535) >>> 0, n > 1 && (s += n * 4294967296)) : s = n > 1 ? -n : -1, this.texturePool[s] || (this.texturePool[s] = []);
|
|
3829
3829
|
var a = this.texturePool[s].pop();
|
|
3830
3830
|
return a || (a = this.createTexture(t, e, n)), a.filterPoolKey = s, a.setResolution(r), a;
|
|
3831
3831
|
}, i.prototype.getFilterTexture = function(t, e, r) {
|
|
3832
|
-
var n = this.getOptimalTexture(t.width, t.height, e || t.resolution, r ||
|
|
3832
|
+
var n = this.getOptimalTexture(t.width, t.height, e || t.resolution, r || ke.NONE);
|
|
3833
3833
|
return n.filterFrame = t.filterFrame, n;
|
|
3834
3834
|
}, i.prototype.returnTexture = function(t) {
|
|
3835
3835
|
var e = t.filterPoolKey;
|
|
@@ -3868,7 +3868,7 @@ var St = function(i) {
|
|
|
3868
3868
|
}, i.from = function(t, e, r, n, s) {
|
|
3869
3869
|
return new i(t, e, r, n, s);
|
|
3870
3870
|
}, i;
|
|
3871
|
-
}(), oD = 0,
|
|
3871
|
+
}(), oD = 0, Ze = function() {
|
|
3872
3872
|
function i(t, e, r) {
|
|
3873
3873
|
e === void 0 && (e = !0), r === void 0 && (r = !1), this.data = t || new Float32Array(1), this._glBuffers = {}, this._updateID = 0, this.index = r, this.static = e, this.id = oD++, this.disposeRunner = new dr("disposeBuffer");
|
|
3874
3874
|
}
|
|
@@ -3923,7 +3923,7 @@ var i1 = { 5126: 4, 5123: 2, 5121: 1 }, hD = 0, cD = {
|
|
|
3923
3923
|
return i.prototype.addAttribute = function(t, e, r, n, s, a, o, u) {
|
|
3924
3924
|
if (r === void 0 && (r = 0), n === void 0 && (n = !1), u === void 0 && (u = !1), !e)
|
|
3925
3925
|
throw new Error("You must pass a buffer when creating an attribute");
|
|
3926
|
-
e instanceof
|
|
3926
|
+
e instanceof Ze || (e instanceof Array && (e = new Float32Array(e)), e = new Ze(e));
|
|
3927
3927
|
var l = t.split("|");
|
|
3928
3928
|
if (l.length > 1) {
|
|
3929
3929
|
for (var h = 0; h < l.length; h++)
|
|
@@ -3937,13 +3937,13 @@ var i1 = { 5126: 4, 5123: 2, 5121: 1 }, hD = 0, cD = {
|
|
|
3937
3937
|
}, i.prototype.getBuffer = function(t) {
|
|
3938
3938
|
return this.buffers[this.getAttribute(t).buffer];
|
|
3939
3939
|
}, i.prototype.addIndex = function(t) {
|
|
3940
|
-
return t instanceof
|
|
3940
|
+
return t instanceof Ze || (t instanceof Array && (t = new Uint16Array(t)), t = new Ze(t)), t.type = Sn.ELEMENT_ARRAY_BUFFER, this.indexBuffer = t, this.buffers.indexOf(t) === -1 && this.buffers.push(t), this;
|
|
3941
3941
|
}, i.prototype.getIndex = function() {
|
|
3942
3942
|
return this.indexBuffer;
|
|
3943
3943
|
}, i.prototype.interleave = function() {
|
|
3944
3944
|
if (this.buffers.length === 1 || this.buffers.length === 2 && this.indexBuffer)
|
|
3945
3945
|
return this;
|
|
3946
|
-
var t = [], e = [], r = new
|
|
3946
|
+
var t = [], e = [], r = new Ze(), n;
|
|
3947
3947
|
for (n in this.attributes) {
|
|
3948
3948
|
var s = this.attributes[n], a = this.buffers[s.buffer];
|
|
3949
3949
|
t.push(a.data), e.push(s.size * i1[s.type] / 4), s.buffer = 0;
|
|
@@ -3963,7 +3963,7 @@ var i1 = { 5126: 4, 5123: 2, 5121: 1 }, hD = 0, cD = {
|
|
|
3963
3963
|
this.dispose(), this.buffers = null, this.indexBuffer = null, this.attributes = null;
|
|
3964
3964
|
}, i.prototype.clone = function() {
|
|
3965
3965
|
for (var t = new i(), e = 0; e < this.buffers.length; e++)
|
|
3966
|
-
t.buffers[e] = new
|
|
3966
|
+
t.buffers[e] = new Ze(this.buffers[e].data.slice(0));
|
|
3967
3967
|
for (var e in this.attributes) {
|
|
3968
3968
|
var r = this.attributes[e];
|
|
3969
3969
|
t.attributes[e] = new oy(r.buffer, r.size, r.normalized, r.type, r.stride, r.start, r.instance);
|
|
@@ -3976,7 +3976,7 @@ var i1 = { 5126: 4, 5123: 2, 5121: 1 }, hD = 0, cD = {
|
|
|
3976
3976
|
n[u] = n[u] || 0, n[u] += a.buffers[u].data.length, s[u] = 0;
|
|
3977
3977
|
}
|
|
3978
3978
|
for (var o = 0; o < a.buffers.length; o++)
|
|
3979
|
-
r[o] = new cD[vw(a.buffers[o].data)](n[o]), e.buffers[o] = new
|
|
3979
|
+
r[o] = new cD[vw(a.buffers[o].data)](n[o]), e.buffers[o] = new Ze(r[o]);
|
|
3980
3980
|
for (var o = 0; o < t.length; o++) {
|
|
3981
3981
|
a = t[o];
|
|
3982
3982
|
for (var u = 0; u < a.buffers.length; u++)
|
|
@@ -4002,7 +4002,7 @@ var i1 = { 5126: 4, 5123: 2, 5121: 1 }, hD = 0, cD = {
|
|
|
4002
4002
|
return e;
|
|
4003
4003
|
}, i;
|
|
4004
4004
|
}(), xw = function(i) {
|
|
4005
|
-
|
|
4005
|
+
Ee(t, i);
|
|
4006
4006
|
function t() {
|
|
4007
4007
|
var e = i.call(this) || this;
|
|
4008
4008
|
return e.addAttribute("aVertexPosition", new Float32Array([
|
|
@@ -4018,7 +4018,7 @@ var i1 = { 5126: 4, 5123: 2, 5121: 1 }, hD = 0, cD = {
|
|
|
4018
4018
|
}
|
|
4019
4019
|
return t;
|
|
4020
4020
|
}(Jl), gb = function(i) {
|
|
4021
|
-
|
|
4021
|
+
Ee(t, i);
|
|
4022
4022
|
function t() {
|
|
4023
4023
|
var e = i.call(this) || this;
|
|
4024
4024
|
return e.vertices = new Float32Array([
|
|
@@ -4039,7 +4039,7 @@ var i1 = { 5126: 4, 5123: 2, 5121: 1 }, hD = 0, cD = {
|
|
|
4039
4039
|
1,
|
|
4040
4040
|
0,
|
|
4041
4041
|
1
|
|
4042
|
-
]), e.vertexBuffer = new
|
|
4042
|
+
]), e.vertexBuffer = new Ze(e.vertices), e.uvBuffer = new Ze(e.uvs), e.addAttribute("aVertexPosition", e.vertexBuffer).addAttribute("aTextureCoord", e.uvBuffer).addIndex([0, 1, 2, 0, 2, 3]), e;
|
|
4043
4043
|
}
|
|
4044
4044
|
return t.prototype.map = function(e, r) {
|
|
4045
4045
|
var n = 0, s = 0;
|
|
@@ -4049,7 +4049,7 @@ var i1 = { 5126: 4, 5123: 2, 5121: 1 }, hD = 0, cD = {
|
|
|
4049
4049
|
}, t;
|
|
4050
4050
|
}(Jl), fD = 0, aa = function() {
|
|
4051
4051
|
function i(t, e, r) {
|
|
4052
|
-
this.group = !0, this.syncUniforms = {}, this.dirtyId = 0, this.id = fD++, this.static = !!e, this.ubo = !!r, t instanceof
|
|
4052
|
+
this.group = !0, this.syncUniforms = {}, this.dirtyId = 0, this.id = fD++, this.static = !!e, this.ubo = !!r, t instanceof Ze ? (this.buffer = t, this.buffer.type = Sn.UNIFORM_BUFFER, this.autoManage = !1, this.ubo = !0) : (this.uniforms = t, this.ubo && (this.buffer = new Ze(new Float32Array(1)), this.buffer.type = Sn.UNIFORM_BUFFER, this.autoManage = !0));
|
|
4053
4053
|
}
|
|
4054
4054
|
return i.prototype.update = function() {
|
|
4055
4055
|
this.dirtyId++, !this.autoManage && this.buffer && this.buffer.update();
|
|
@@ -4065,7 +4065,7 @@ var i1 = { 5126: 4, 5123: 2, 5121: 1 }, hD = 0, cD = {
|
|
|
4065
4065
|
}, i;
|
|
4066
4066
|
}(), Ew = function() {
|
|
4067
4067
|
function i() {
|
|
4068
|
-
this.renderTexture = null, this.target = null, this.legacy = !1, this.resolution = 1, this.multisample =
|
|
4068
|
+
this.renderTexture = null, this.target = null, this.legacy = !1, this.resolution = 1, this.multisample = ke.NONE, this.sourceFrame = new Ot(), this.destinationFrame = new Ot(), this.bindingSourceFrame = new Ot(), this.bindingDestinationFrame = new Ot(), this.filters = [], this.transform = null;
|
|
4069
4069
|
}
|
|
4070
4070
|
return i.prototype.clear = function() {
|
|
4071
4071
|
this.target = null, this.filters = null, this.renderTexture = null;
|
|
@@ -4137,14 +4137,14 @@ var i1 = { 5126: 4, 5123: 2, 5121: 1 }, hD = 0, cD = {
|
|
|
4137
4137
|
}, i.prototype.destroy = function() {
|
|
4138
4138
|
this.renderer = null, this.texturePool.clear(!1);
|
|
4139
4139
|
}, i.prototype.getOptimalFilterTexture = function(t, e, r, n) {
|
|
4140
|
-
return r === void 0 && (r = 1), n === void 0 && (n =
|
|
4140
|
+
return r === void 0 && (r = 1), n === void 0 && (n = ke.NONE), this.texturePool.getOptimalTexture(t, e, r, n);
|
|
4141
4141
|
}, i.prototype.getFilterTexture = function(t, e, r) {
|
|
4142
4142
|
if (typeof t == "number") {
|
|
4143
4143
|
var n = t;
|
|
4144
4144
|
t = e, e = n;
|
|
4145
4145
|
}
|
|
4146
4146
|
t = t || this.activeState.renderTexture;
|
|
4147
|
-
var s = this.texturePool.getOptimalTexture(t.width, t.height, e || t.resolution, r ||
|
|
4147
|
+
var s = this.texturePool.getOptimalTexture(t.width, t.height, e || t.resolution, r || ke.NONE);
|
|
4148
4148
|
return s.filterFrame = t.filterFrame, s;
|
|
4149
4149
|
}, i.prototype.returnFilterTexture = function(t) {
|
|
4150
4150
|
this.texturePool.returnTexture(t);
|
|
@@ -4280,7 +4280,7 @@ var i1 = { 5126: 4, 5123: 2, 5121: 1 }, hD = 0, cD = {
|
|
|
4280
4280
|
}, i;
|
|
4281
4281
|
}(), ww = function() {
|
|
4282
4282
|
function i(t) {
|
|
4283
|
-
this.framebuffer = t, this.stencil = null, this.dirtyId = -1, this.dirtyFormat = -1, this.dirtySize = -1, this.multisample =
|
|
4283
|
+
this.framebuffer = t, this.stencil = null, this.dirtyId = -1, this.dirtyFormat = -1, this.dirtySize = -1, this.multisample = ke.NONE, this.msaaBuffer = null, this.blitFramebuffer = null, this.mipLevel = 0;
|
|
4284
4284
|
}
|
|
4285
4285
|
return i;
|
|
4286
4286
|
}(), dD = new Ot(), bb = function() {
|
|
@@ -4360,7 +4360,7 @@ var i1 = { 5126: 4, 5123: 2, 5121: 1 }, hD = 0, cD = {
|
|
|
4360
4360
|
}, i.prototype.canMultisampleFramebuffer = function(t) {
|
|
4361
4361
|
return this.renderer.context.webGLVersion !== 1 && t.colorTextures.length <= 1 && !t.depthTexture;
|
|
4362
4362
|
}, i.prototype.detectSamples = function(t) {
|
|
4363
|
-
var e = this.msaaSamples, r =
|
|
4363
|
+
var e = this.msaaSamples, r = ke.NONE;
|
|
4364
4364
|
if (t <= 1 || e === null)
|
|
4365
4365
|
return r;
|
|
4366
4366
|
for (var n = 0; n < e.length; n++)
|
|
@@ -4368,7 +4368,7 @@ var i1 = { 5126: 4, 5123: 2, 5121: 1 }, hD = 0, cD = {
|
|
|
4368
4368
|
r = e[n];
|
|
4369
4369
|
break;
|
|
4370
4370
|
}
|
|
4371
|
-
return r === 1 && (r =
|
|
4371
|
+
return r === 1 && (r = ke.NONE), r;
|
|
4372
4372
|
}, i.prototype.blit = function(t, e, r) {
|
|
4373
4373
|
var n = this, s = n.current, a = n.renderer, o = n.gl, u = n.CONTEXT_UID;
|
|
4374
4374
|
if (a.context.webGLVersion === 2 && !!s) {
|
|
@@ -4548,7 +4548,7 @@ var i1 = { 5126: 4, 5123: 2, 5121: 1 }, hD = 0, cD = {
|
|
|
4548
4548
|
}, i;
|
|
4549
4549
|
}(), Sw = function() {
|
|
4550
4550
|
function i(t) {
|
|
4551
|
-
t === void 0 && (t = null), this.type =
|
|
4551
|
+
t === void 0 && (t = null), this.type = qe.NONE, this.autoDetect = !0, this.maskObject = t || null, this.pooled = !1, this.isMaskData = !0, this.resolution = null, this.multisample = vt.FILTER_MULTISAMPLE, this.enabled = !0, this.colorMask = 15, this._filters = null, this._stencilCounter = 0, this._scissorCounter = 0, this._scissorRect = null, this._scissorRectLocal = null, this._colorMask = 15, this._target = null;
|
|
4552
4552
|
}
|
|
4553
4553
|
return Object.defineProperty(i.prototype, "filter", {
|
|
4554
4554
|
get: function() {
|
|
@@ -4560,7 +4560,7 @@ var i1 = { 5126: 4, 5123: 2, 5121: 1 }, hD = 0, cD = {
|
|
|
4560
4560
|
enumerable: !1,
|
|
4561
4561
|
configurable: !0
|
|
4562
4562
|
}), i.prototype.reset = function() {
|
|
4563
|
-
this.pooled && (this.maskObject = null, this.type =
|
|
4563
|
+
this.pooled && (this.maskObject = null, this.type = qe.NONE, this.autoDetect = !0), this._target = null, this._scissorRectLocal = null;
|
|
4564
4564
|
}, i.prototype.copyCountersOrReset = function(t) {
|
|
4565
4565
|
t ? (this._stencilCounter = t._stencilCounter, this._scissorCounter = t._scissorCounter, this._scissorRect = t._scissorRect) : (this._stencilCounter = 0, this._scissorCounter = 0, this._scissorRect = null);
|
|
4566
4566
|
}, i;
|
|
@@ -4681,11 +4681,11 @@ function Mw() {
|
|
|
4681
4681
|
var Ad;
|
|
4682
4682
|
function vD() {
|
|
4683
4683
|
if (!Ad) {
|
|
4684
|
-
Ad =
|
|
4684
|
+
Ad = ri.MEDIUM;
|
|
4685
4685
|
var i = Mw();
|
|
4686
4686
|
if (i && i.getShaderPrecisionFormat) {
|
|
4687
4687
|
var t = i.getShaderPrecisionFormat(i.FRAGMENT_SHADER, i.HIGH_FLOAT);
|
|
4688
|
-
Ad = t.precision ?
|
|
4688
|
+
Ad = t.precision ? ri.HIGH : ri.MEDIUM;
|
|
4689
4689
|
}
|
|
4690
4690
|
}
|
|
4691
4691
|
return Ad;
|
|
@@ -4693,9 +4693,9 @@ function vD() {
|
|
|
4693
4693
|
function o1(i, t, e) {
|
|
4694
4694
|
if (i.substring(0, 9) !== "precision") {
|
|
4695
4695
|
var r = t;
|
|
4696
|
-
return t ===
|
|
4696
|
+
return t === ri.HIGH && e !== ri.HIGH && (r = ri.MEDIUM), "precision " + r + ` float;
|
|
4697
4697
|
` + i;
|
|
4698
|
-
} else if (e !==
|
|
4698
|
+
} else if (e !== ri.HIGH && i.substring(0, 15) === "precision highp")
|
|
4699
4699
|
return i.replace("precision highp", "precision mediump");
|
|
4700
4700
|
return i;
|
|
4701
4701
|
}
|
|
@@ -5194,7 +5194,7 @@ void main(void){
|
|
|
5194
5194
|
function i(t, e, r) {
|
|
5195
5195
|
r === void 0 && (r = "pixi-shader"), this.id = TD++, this.vertexSrc = t || i.defaultVertexSrc, this.fragmentSrc = e || i.defaultFragmentSrc, this.vertexSrc = this.vertexSrc.trim(), this.fragmentSrc = this.fragmentSrc.trim(), this.vertexSrc.substring(0, 8) !== "#version" && (r = r.replace(/\s+/g, "-"), Bd[r] ? (Bd[r]++, r += "-" + Bd[r]) : Bd[r] = 1, this.vertexSrc = "#define SHADER_NAME " + r + `
|
|
5196
5196
|
` + this.vertexSrc, this.fragmentSrc = "#define SHADER_NAME " + r + `
|
|
5197
|
-
` + this.fragmentSrc, this.vertexSrc = o1(this.vertexSrc, vt.PRECISION_VERTEX,
|
|
5197
|
+
` + this.fragmentSrc, this.vertexSrc = o1(this.vertexSrc, vt.PRECISION_VERTEX, ri.HIGH), this.fragmentSrc = o1(this.fragmentSrc, vt.PRECISION_FRAGMENT, vD())), this.glPrograms = {}, this.syncUniforms = null;
|
|
5198
5198
|
}
|
|
5199
5199
|
return Object.defineProperty(i, "defaultVertexSrc", {
|
|
5200
5200
|
get: function() {
|
|
@@ -5353,7 +5353,7 @@ void main(void)
|
|
|
5353
5353
|
vTextureCoord = filterTextureCoord();
|
|
5354
5354
|
}
|
|
5355
5355
|
`, Ji = function(i) {
|
|
5356
|
-
|
|
5356
|
+
Ee(t, i);
|
|
5357
5357
|
function t(e, r, n) {
|
|
5358
5358
|
var s = this, a = Ql.from(e || t.defaultVertexSrc, r || t.defaultFragmentSrc);
|
|
5359
5359
|
return s = i.call(this, a, n) || this, s.padding = 0, s.resolution = vt.FILTER_RESOLUTION, s.multisample = vt.FILTER_MULTISAMPLE, s.enabled = !0, s.autoFit = !0, s.state = new fa(), s;
|
|
@@ -5465,7 +5465,7 @@ void main(void)
|
|
|
5465
5465
|
return o[0] = (e._frame.x + u + l) / a.width, o[1] = (e._frame.y + u + l) / a.height, o[2] = (e._frame.x + e._frame.width - u + l) / a.width, o[3] = (e._frame.y + e._frame.height - u + l) / a.height, this.uClampOffset[0] = l / a.realWidth, this.uClampOffset[1] = l / a.realHeight, this.isSimple = e._frame.width === a.width && e._frame.height === a.height && e.rotate === 0, !0;
|
|
5466
5466
|
}, i;
|
|
5467
5467
|
}(), Dw = function(i) {
|
|
5468
|
-
|
|
5468
|
+
Ee(t, i);
|
|
5469
5469
|
function t(e, r, n) {
|
|
5470
5470
|
var s = this, a = null;
|
|
5471
5471
|
return typeof e != "string" && r === void 0 && n === void 0 && (a = e, e = void 0, r = void 0, n = void 0), s = i.call(this, e || PD, r || OD, n) || this, s.maskSprite = a, s.maskMatrix = new ir(), s;
|
|
@@ -5496,48 +5496,48 @@ void main(void)
|
|
|
5496
5496
|
n.pooled = !0, n.maskObject = e, r = n;
|
|
5497
5497
|
}
|
|
5498
5498
|
var s = this.maskStack.length !== 0 ? this.maskStack[this.maskStack.length - 1] : null;
|
|
5499
|
-
if (r.copyCountersOrReset(s), r._colorMask = s ? s._colorMask : 15, r.autoDetect && this.detect(r), r._target = t, r.type !==
|
|
5499
|
+
if (r.copyCountersOrReset(s), r._colorMask = s ? s._colorMask : 15, r.autoDetect && this.detect(r), r._target = t, r.type !== qe.SPRITE && this.maskStack.push(r), r.enabled)
|
|
5500
5500
|
switch (r.type) {
|
|
5501
|
-
case
|
|
5501
|
+
case qe.SCISSOR:
|
|
5502
5502
|
this.renderer.scissor.push(r);
|
|
5503
5503
|
break;
|
|
5504
|
-
case
|
|
5504
|
+
case qe.STENCIL:
|
|
5505
5505
|
this.renderer.stencil.push(r);
|
|
5506
5506
|
break;
|
|
5507
|
-
case
|
|
5507
|
+
case qe.SPRITE:
|
|
5508
5508
|
r.copyCountersOrReset(null), this.pushSpriteMask(r);
|
|
5509
5509
|
break;
|
|
5510
|
-
case
|
|
5510
|
+
case qe.COLOR:
|
|
5511
5511
|
this.pushColorMask(r);
|
|
5512
5512
|
break;
|
|
5513
5513
|
}
|
|
5514
|
-
r.type ===
|
|
5514
|
+
r.type === qe.SPRITE && this.maskStack.push(r);
|
|
5515
5515
|
}, i.prototype.pop = function(t) {
|
|
5516
5516
|
var e = this.maskStack.pop();
|
|
5517
5517
|
if (!(!e || e._target !== t)) {
|
|
5518
5518
|
if (e.enabled)
|
|
5519
5519
|
switch (e.type) {
|
|
5520
|
-
case
|
|
5520
|
+
case qe.SCISSOR:
|
|
5521
5521
|
this.renderer.scissor.pop(e);
|
|
5522
5522
|
break;
|
|
5523
|
-
case
|
|
5523
|
+
case qe.STENCIL:
|
|
5524
5524
|
this.renderer.stencil.pop(e.maskObject);
|
|
5525
5525
|
break;
|
|
5526
|
-
case
|
|
5526
|
+
case qe.SPRITE:
|
|
5527
5527
|
this.popSpriteMask(e);
|
|
5528
5528
|
break;
|
|
5529
|
-
case
|
|
5529
|
+
case qe.COLOR:
|
|
5530
5530
|
this.popColorMask(e);
|
|
5531
5531
|
break;
|
|
5532
5532
|
}
|
|
5533
5533
|
if (e.reset(), e.pooled && this.maskDataPool.push(e), this.maskStack.length !== 0) {
|
|
5534
5534
|
var r = this.maskStack[this.maskStack.length - 1];
|
|
5535
|
-
r.type ===
|
|
5535
|
+
r.type === qe.SPRITE && r._filters && (r._filters[0].maskSprite = r.maskObject);
|
|
5536
5536
|
}
|
|
5537
5537
|
}
|
|
5538
5538
|
}, i.prototype.detect = function(t) {
|
|
5539
5539
|
var e = t.maskObject;
|
|
5540
|
-
e ? e.isSprite ? t.type =
|
|
5540
|
+
e ? e.isSprite ? t.type = qe.SPRITE : this.enableScissor && this.renderer.scissor.testScissor(t) ? t.type = qe.SCISSOR : t.type = qe.STENCIL : t.type = qe.COLOR;
|
|
5541
5541
|
}, i.prototype.pushSpriteMask = function(t) {
|
|
5542
5542
|
var e, r, n = t.maskObject, s = t._target, a = t._filters;
|
|
5543
5543
|
a || (a = this.alphaMaskPool[this.alphaMaskIndex], a || (a = this.alphaMaskPool[this.alphaMaskIndex] = [new Dw()]));
|
|
@@ -5577,7 +5577,7 @@ void main(void)
|
|
|
5577
5577
|
this.renderer = null, this.maskStack = null;
|
|
5578
5578
|
}, i;
|
|
5579
5579
|
}(), h1 = new ir(), c1 = [], wb = function(i) {
|
|
5580
|
-
|
|
5580
|
+
Ee(t, i);
|
|
5581
5581
|
function t(e) {
|
|
5582
5582
|
var r = i.call(this, e) || this;
|
|
5583
5583
|
return r.glConst = vt.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST, r;
|
|
@@ -5617,7 +5617,7 @@ void main(void)
|
|
|
5617
5617
|
this.renderer.renderTexture.current ? r = e.y : r = this.renderer.height - e.height - e.y, this.renderer.gl.scissor(e.x, r, e.width, e.height);
|
|
5618
5618
|
}, t;
|
|
5619
5619
|
}(Rw), Sb = function(i) {
|
|
5620
|
-
|
|
5620
|
+
Ee(t, i);
|
|
5621
5621
|
function t(e) {
|
|
5622
5622
|
var r = i.call(this, e) || this;
|
|
5623
5623
|
return r.glConst = vt.ADAPTER.getWebGLRenderingContext().STENCIL_TEST, r;
|
|
@@ -6164,11 +6164,11 @@ var vp = function() {
|
|
|
6164
6164
|
TextureGCSystem: Ob,
|
|
6165
6165
|
TextureSystem: Ib
|
|
6166
6166
|
}, wm = new ir(), Uw = function(i) {
|
|
6167
|
-
|
|
6167
|
+
Ee(t, i);
|
|
6168
6168
|
function t(e, r) {
|
|
6169
6169
|
e === void 0 && (e = Yh.UNKNOWN);
|
|
6170
6170
|
var n = i.call(this) || this;
|
|
6171
|
-
return r = Object.assign({}, vt.RENDER_OPTIONS, r), n.options = r, n.type = e, n.screen = new Ot(0, 0, r.width, r.height), n.view = r.view || vt.ADAPTER.createCanvas(), n.resolution = r.resolution || vt.RESOLUTION, n.useContextAlpha = r.useContextAlpha, n.autoDensity = !!r.autoDensity, n.preserveDrawingBuffer = r.preserveDrawingBuffer, n.clearBeforeRender = r.clearBeforeRender, n._backgroundColor = 0, n._backgroundColorRgba = [0, 0, 0, 1], n._backgroundColorString = "#000000", n.backgroundColor = r.backgroundColor || n._backgroundColor, n.backgroundAlpha = r.backgroundAlpha, r.transparent !== void 0 && (
|
|
6171
|
+
return r = Object.assign({}, vt.RENDER_OPTIONS, r), n.options = r, n.type = e, n.screen = new Ot(0, 0, r.width, r.height), n.view = r.view || vt.ADAPTER.createCanvas(), n.resolution = r.resolution || vt.RESOLUTION, n.useContextAlpha = r.useContextAlpha, n.autoDensity = !!r.autoDensity, n.preserveDrawingBuffer = r.preserveDrawingBuffer, n.clearBeforeRender = r.clearBeforeRender, n._backgroundColor = 0, n._backgroundColorRgba = [0, 0, 0, 1], n._backgroundColorString = "#000000", n.backgroundColor = r.backgroundColor || n._backgroundColor, n.backgroundAlpha = r.backgroundAlpha, r.transparent !== void 0 && (Lr("6.0.0", "Option transparent is deprecated, please use backgroundAlpha instead."), n.useContextAlpha = r.transparent, n.backgroundAlpha = r.transparent ? 0 : 1), n._lastObjectRendered = null, n.plugins = {}, n;
|
|
6172
6172
|
}
|
|
6173
6173
|
return t.prototype.initPlugins = function(e) {
|
|
6174
6174
|
for (var r in e)
|
|
@@ -6190,7 +6190,7 @@ var vp = function() {
|
|
|
6190
6190
|
var n = this.view.width / this.resolution, s = this.view.height / this.resolution;
|
|
6191
6191
|
this.screen.width = n, this.screen.height = s, this.autoDensity && (this.view.style.width = n + "px", this.view.style.height = s + "px"), this.emit("resize", n, s);
|
|
6192
6192
|
}, t.prototype.generateTexture = function(e, r, n, s) {
|
|
6193
|
-
r === void 0 && (r = {}), typeof r == "number" && (
|
|
6193
|
+
r === void 0 && (r = {}), typeof r == "number" && (Lr("6.1.0", "generateTexture options (scaleMode, resolution, region) are now object options."), r = { scaleMode: r, resolution: n, region: s });
|
|
6194
6194
|
var a = r.region, o = nD(r, ["region"]);
|
|
6195
6195
|
s = a || e.getLocalBounds(null, !0), s.width === 0 && (s.width = 1), s.height === 0 && (s.height = 1);
|
|
6196
6196
|
var u = gi.create(ay({ width: s.width, height: s.height }, o));
|
|
@@ -6275,7 +6275,7 @@ var vp = function() {
|
|
|
6275
6275
|
return t._glBuffers[r] = new $D(n.createBuffer()), this.managedBuffers[t.id] = t, t.disposeRunner.add(this), t._glBuffers[r];
|
|
6276
6276
|
}, i;
|
|
6277
6277
|
}(), Db = function(i) {
|
|
6278
|
-
|
|
6278
|
+
Ee(t, i);
|
|
6279
6279
|
function t(e) {
|
|
6280
6280
|
var r = i.call(this, Yh.WEBGL, e) || this;
|
|
6281
6281
|
return e = r.options, r.gl = null, r.CONTEXT_UID = 0, r.runners = {
|
|
@@ -6310,7 +6310,7 @@ var vp = function() {
|
|
|
6310
6310
|
var n = e.getParameter(e.DRAW_FRAMEBUFFER_BINDING);
|
|
6311
6311
|
e.bindFramebuffer(e.DRAW_FRAMEBUFFER, null), r = e.getParameter(e.SAMPLES), e.bindFramebuffer(e.DRAW_FRAMEBUFFER, n);
|
|
6312
6312
|
}
|
|
6313
|
-
r >=
|
|
6313
|
+
r >= ke.HIGH ? this.multisample = ke.HIGH : r >= ke.MEDIUM ? this.multisample = ke.MEDIUM : r >= ke.LOW ? this.multisample = ke.LOW : this.multisample = ke.NONE;
|
|
6314
6314
|
}, t.prototype.addSystem = function(e, r) {
|
|
6315
6315
|
var n = new e(this);
|
|
6316
6316
|
if (this[r])
|
|
@@ -6321,7 +6321,7 @@ var vp = function() {
|
|
|
6321
6321
|
return this;
|
|
6322
6322
|
}, t.prototype.render = function(e, r) {
|
|
6323
6323
|
var n, s, a, o;
|
|
6324
|
-
if (r && (r instanceof gi ? (
|
|
6324
|
+
if (r && (r instanceof gi ? (Lr("6.0.0", "Renderer#render arguments changed, use options instead."), n = r, s = arguments[2], a = arguments[3], o = arguments[4]) : (n = r.renderTexture, s = r.clear, a = r.transform, o = r.skipUpdateTransform)), this.renderingToScreen = !n, this.runners.prerender.emit(), this.emit("prerender"), this.projection.transform = a, !this.context.isLost) {
|
|
6325
6325
|
if (n || (this._lastObjectRendered = e), !o) {
|
|
6326
6326
|
var u = e.enableTempParent();
|
|
6327
6327
|
e.updateTransform(), e.disableTempParent(u);
|
|
@@ -6345,12 +6345,12 @@ var vp = function() {
|
|
|
6345
6345
|
i.prototype.destroy.call(this, e), this.gl = null;
|
|
6346
6346
|
}, Object.defineProperty(t.prototype, "extract", {
|
|
6347
6347
|
get: function() {
|
|
6348
|
-
return
|
|
6348
|
+
return Lr("6.0.0", "Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."), this.plugins.extract;
|
|
6349
6349
|
},
|
|
6350
6350
|
enumerable: !1,
|
|
6351
6351
|
configurable: !0
|
|
6352
6352
|
}), t.registerPlugin = function(e, r) {
|
|
6353
|
-
|
|
6353
|
+
Lr("6.5.0", "Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."), tn.add({
|
|
6354
6354
|
name: e,
|
|
6355
6355
|
type: fe.RendererPlugin,
|
|
6356
6356
|
ref: r
|
|
@@ -6400,7 +6400,7 @@ void main(void)
|
|
|
6400
6400
|
}
|
|
6401
6401
|
`, jw = XD, Ab = WD, YD = function() {
|
|
6402
6402
|
function i(t) {
|
|
6403
|
-
|
|
6403
|
+
Lr("6.1.0", "System class is deprecated, implemement ISystem interface instead."), this.renderer = t;
|
|
6404
6404
|
}
|
|
6405
6405
|
return i.prototype.destroy = function() {
|
|
6406
6406
|
this.renderer = null;
|
|
@@ -6474,7 +6474,7 @@ void main(void)
|
|
|
6474
6474
|
}
|
|
6475
6475
|
}, i;
|
|
6476
6476
|
}(), zw = function(i) {
|
|
6477
|
-
|
|
6477
|
+
Ee(t, i);
|
|
6478
6478
|
function t(e) {
|
|
6479
6479
|
var r = i.call(this, e) || this;
|
|
6480
6480
|
return r.shaderGenerator = null, r.geometryClass = null, r.vertexSize = null, r.state = fa.for2d(), r.size = vt.SPRITE_BATCH_SIZE * 4, r._vertexCount = 0, r._indexCount = 0, r._bufferedElements = [], r._bufferedTextures = [], r._bufferSize = 0, r._shader = null, r._packedGeometries = [], r._packedGeometryPoolSize = 2, r._flushId = 0, r._aBuffers = {}, r._iBuffers = {}, r.MAX_TEXTURES = 1, r.renderer.on("prerender", r.onPrerender, r), e.runners.contextChange.add(r), r._dcIndex = 0, r._aIndex = 0, r._iIndex = 0, r._attributeBuffer = null, r._indexBuffer = null, r._tempBoundTextures = [], r;
|
|
@@ -6590,11 +6590,11 @@ else `), r < t - 1 && (e += "if(vTextureId < " + r + ".5)"), e += `
|
|
|
6590
6590
|
`, e;
|
|
6591
6591
|
}, i;
|
|
6592
6592
|
}(), Fb = function(i) {
|
|
6593
|
-
|
|
6593
|
+
Ee(t, i);
|
|
6594
6594
|
function t(e) {
|
|
6595
6595
|
e === void 0 && (e = !1);
|
|
6596
6596
|
var r = i.call(this) || this;
|
|
6597
|
-
return r._buffer = new
|
|
6597
|
+
return r._buffer = new Ze(null, e, !1), r._indexBuffer = new Ze(null, e, !0), r.addAttribute("aVertexPosition", r._buffer, 2, !1, Tt.FLOAT).addAttribute("aTextureCoord", r._buffer, 2, !1, Tt.FLOAT).addAttribute("aColor", r._buffer, 4, !0, Tt.UNSIGNED_BYTE).addAttribute("aTextureId", r._buffer, 1, !0, Tt.FLOAT).addIndex(r._indexBuffer), r;
|
|
6598
6598
|
}
|
|
6599
6599
|
return t;
|
|
6600
6600
|
}(Jl), f1 = `precision highp float;
|
|
@@ -6639,7 +6639,7 @@ void main(void){
|
|
|
6639
6639
|
vertexSize: 6
|
|
6640
6640
|
}, t), r = e.vertex, n = e.fragment, s = e.vertexSize, a = e.geometryClass;
|
|
6641
6641
|
return function(o) {
|
|
6642
|
-
|
|
6642
|
+
Ee(u, o);
|
|
6643
6643
|
function u(l) {
|
|
6644
6644
|
var h = o.call(this, l) || this;
|
|
6645
6645
|
return h.shaderGenerator = new Hw(r, n), h.geometryClass = a, h.vertexSize = s, h;
|
|
@@ -6669,7 +6669,7 @@ Object.assign(Bb, {
|
|
|
6669
6669
|
var Vw = {}, qD = function(i) {
|
|
6670
6670
|
Object.defineProperty(Vw, i, {
|
|
6671
6671
|
get: function() {
|
|
6672
|
-
return
|
|
6672
|
+
return Lr("6.0.0", "PIXI.systems." + i + " has moved to PIXI." + i), _w[i];
|
|
6673
6673
|
}
|
|
6674
6674
|
});
|
|
6675
6675
|
};
|
|
@@ -6678,7 +6678,7 @@ for (var kb in _w)
|
|
|
6678
6678
|
var Xw = {}, ZD = function(i) {
|
|
6679
6679
|
Object.defineProperty(Xw, i, {
|
|
6680
6680
|
get: function() {
|
|
6681
|
-
return
|
|
6681
|
+
return Lr("6.0.0", "PIXI.resources." + i + " has moved to PIXI." + i), Gw[i];
|
|
6682
6682
|
}
|
|
6683
6683
|
});
|
|
6684
6684
|
};
|
|
@@ -6702,7 +6702,7 @@ const JD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6702
6702
|
BatchShaderGenerator: Hw,
|
|
6703
6703
|
BatchSystem: yb,
|
|
6704
6704
|
BatchTextureArray: iv,
|
|
6705
|
-
Buffer:
|
|
6705
|
+
Buffer: Ze,
|
|
6706
6706
|
BufferResource: eu,
|
|
6707
6707
|
CanvasResource: lb,
|
|
6708
6708
|
ContextSystem: _b,
|
|
@@ -6788,7 +6788,7 @@ var QD = {
|
|
|
6788
6788
|
accessibleChildren: !0,
|
|
6789
6789
|
renderId: -1
|
|
6790
6790
|
};
|
|
6791
|
-
|
|
6791
|
+
He.mixin(QD);
|
|
6792
6792
|
var tR = 9, Nd = 100, eR = 0, rR = 0, p1 = 2, v1 = 1, iR = -1e3, nR = -1e3, sR = 2, aR = function() {
|
|
6793
6793
|
function i(t) {
|
|
6794
6794
|
this.debug = !1, this._isActive = !1, this._isMobileAccessibility = !1, this.pool = [], this.renderId = 0, this.children = [], this.androidUpdateCount = 0, this.androidUpdateFrequency = 500, this._hookDiv = null, (En.tablet || En.phone) && this.createTouchHook();
|
|
@@ -7051,7 +7051,7 @@ var uR = function() {
|
|
|
7051
7051
|
},
|
|
7052
7052
|
_trackedPointers: void 0
|
|
7053
7053
|
};
|
|
7054
|
-
|
|
7054
|
+
He.mixin(hR);
|
|
7055
7055
|
var Ld = 1, Gd = {
|
|
7056
7056
|
target: null,
|
|
7057
7057
|
data: {
|
|
@@ -7086,9 +7086,9 @@ var Ld = 1, Gd = {
|
|
|
7086
7086
|
}, t.prototype.setTargetElement = function(e, r) {
|
|
7087
7087
|
r === void 0 && (r = 1), this.removeTickerListener(), this.removeEvents(), this.interactionDOMElement = e, this.resolution = r, this.addEvents(), this.addTickerListener();
|
|
7088
7088
|
}, t.prototype.addTickerListener = function() {
|
|
7089
|
-
this.tickerAdded || !this.interactionDOMElement || !this._useSystemTicker || (
|
|
7089
|
+
this.tickerAdded || !this.interactionDOMElement || !this._useSystemTicker || (Ne.system.add(this.tickerUpdate, this, ys.INTERACTION), this.tickerAdded = !0);
|
|
7090
7090
|
}, t.prototype.removeTickerListener = function() {
|
|
7091
|
-
!this.tickerAdded || (
|
|
7091
|
+
!this.tickerAdded || (Ne.system.remove(this.tickerUpdate, this), this.tickerAdded = !1);
|
|
7092
7092
|
}, t.prototype.addEvents = function() {
|
|
7093
7093
|
if (!(this.eventsAdded || !this.interactionDOMElement)) {
|
|
7094
7094
|
var e = this.interactionDOMElement.style;
|
|
@@ -7749,7 +7749,7 @@ var yR = function() {
|
|
|
7749
7749
|
}, i.queue = function(t, e) {
|
|
7750
7750
|
return new i(t, e);
|
|
7751
7751
|
}, i;
|
|
7752
|
-
}(), Pm = 100, _R = /(#[\w-]+)?$/,
|
|
7752
|
+
}(), Pm = 100, _R = /(#[\w-]+)?$/, ti = function() {
|
|
7753
7753
|
function i(t, e) {
|
|
7754
7754
|
var r = this;
|
|
7755
7755
|
t === void 0 && (t = ""), e === void 0 && (e = 10), this.progress = 0, this.loading = !1, this.defaultQueryString = "", this._beforeMiddleware = [], this._afterMiddleware = [], this._resourcesParsing = [], this._boundLoadResource = function(u, l) {
|
|
@@ -7790,7 +7790,7 @@ var yR = function() {
|
|
|
7790
7790
|
}
|
|
7791
7791
|
return this.resources = {}, this;
|
|
7792
7792
|
}, i.prototype.load = function(t) {
|
|
7793
|
-
if (
|
|
7793
|
+
if (Lr("6.5.0", "@pixi/loaders is being replaced with @pixi/assets in the next major release."), typeof t == "function" && this.onComplete.once(t), this.loading)
|
|
7794
7794
|
return this;
|
|
7795
7795
|
if (this._queue.idle())
|
|
7796
7796
|
this._onStart(), this._onComplete();
|
|
@@ -7846,14 +7846,14 @@ var yR = function() {
|
|
|
7846
7846
|
enumerable: !1,
|
|
7847
7847
|
configurable: !0
|
|
7848
7848
|
}), i.registerPlugin = function(t) {
|
|
7849
|
-
return
|
|
7849
|
+
return Lr("6.5.0", "Loader.registerPlugin() is deprecated, use extensions.add() instead."), tn.add({
|
|
7850
7850
|
type: fe.Loader,
|
|
7851
7851
|
ref: t
|
|
7852
7852
|
}), i;
|
|
7853
7853
|
}, i._plugins = [], i;
|
|
7854
7854
|
}();
|
|
7855
|
-
tn.handleByList(fe.Loader,
|
|
7856
|
-
|
|
7855
|
+
tn.handleByList(fe.Loader, ti._plugins);
|
|
7856
|
+
ti.prototype.add = function(t, e, r, n) {
|
|
7857
7857
|
if (Array.isArray(t)) {
|
|
7858
7858
|
for (var s = 0; s < t.length; ++s)
|
|
7859
7859
|
this.add(t[s]);
|
|
@@ -7869,7 +7869,7 @@ var bR = function() {
|
|
|
7869
7869
|
return i.init = function(t) {
|
|
7870
7870
|
t = Object.assign({
|
|
7871
7871
|
sharedLoader: !1
|
|
7872
|
-
}, t), this.loader = t.sharedLoader ?
|
|
7872
|
+
}, t), this.loader = t.sharedLoader ? ti.shared : new ti();
|
|
7873
7873
|
}, i.destroy = function() {
|
|
7874
7874
|
this.loader && (this.loader.destroy(), this.loader = null);
|
|
7875
7875
|
}, i.extension = fe.Application, i;
|
|
@@ -8568,13 +8568,13 @@ var C1 = function() {
|
|
|
8568
8568
|
}
|
|
8569
8569
|
return i.prototype.initBuffers = function() {
|
|
8570
8570
|
var t = this.geometry, e = 0;
|
|
8571
|
-
this.indexBuffer = new
|
|
8571
|
+
this.indexBuffer = new Ze(VI(this.size), !0, !0), t.addIndex(this.indexBuffer), this.dynamicStride = 0;
|
|
8572
8572
|
for (var r = 0; r < this.dynamicProperties.length; ++r) {
|
|
8573
8573
|
var n = this.dynamicProperties[r];
|
|
8574
8574
|
n.offset = e, e += n.size, this.dynamicStride += n.size;
|
|
8575
8575
|
}
|
|
8576
8576
|
var s = new ArrayBuffer(this.size * this.dynamicStride * 4 * 4);
|
|
8577
|
-
this.dynamicData = new Float32Array(s), this.dynamicDataUint32 = new Uint32Array(s), this.dynamicBuffer = new
|
|
8577
|
+
this.dynamicData = new Float32Array(s), this.dynamicDataUint32 = new Uint32Array(s), this.dynamicBuffer = new Ze(this.dynamicData, !1, !1);
|
|
8578
8578
|
var a = 0;
|
|
8579
8579
|
this.staticStride = 0;
|
|
8580
8580
|
for (var r = 0; r < this.staticProperties.length; ++r) {
|
|
@@ -8582,7 +8582,7 @@ var C1 = function() {
|
|
|
8582
8582
|
n.offset = a, a += n.size, this.staticStride += n.size;
|
|
8583
8583
|
}
|
|
8584
8584
|
var o = new ArrayBuffer(this.size * this.staticStride * 4 * 4);
|
|
8585
|
-
this.staticData = new Float32Array(o), this.staticDataUint32 = new Uint32Array(o), this.staticBuffer = new
|
|
8585
|
+
this.staticData = new Float32Array(o), this.staticDataUint32 = new Uint32Array(o), this.staticBuffer = new Ze(this.staticData, !0, !1);
|
|
8586
8586
|
for (var r = 0; r < this.dynamicProperties.length; ++r) {
|
|
8587
8587
|
var n = this.dynamicProperties[r];
|
|
8588
8588
|
t.addAttribute(n.attributeName, this.dynamicBuffer, 0, n.type === Tt.UNSIGNED_BYTE, n.type, this.dynamicStride * 4, n.offset * 4);
|
|
@@ -8922,7 +8922,7 @@ function Vd(i, t, e, r, n, s, a) {
|
|
|
8922
8922
|
}
|
|
8923
8923
|
var a2 = {
|
|
8924
8924
|
build: function(i) {
|
|
8925
|
-
if (
|
|
8925
|
+
if (ii.nextRoundedRectBehavior) {
|
|
8926
8926
|
av.build(i);
|
|
8927
8927
|
return;
|
|
8928
8928
|
}
|
|
@@ -8930,7 +8930,7 @@ var a2 = {
|
|
|
8930
8930
|
e.length = 0, o ? (Vd(r, n + o, r, n, r + o, n, e), Vd(r + s - o, n, r + s, n, r + s, n + o, e), Vd(r + s, n + a - o, r + s, n + a, r + s - o, n + a, e), Vd(r + o, n + a, r, n + a, r, n + a - o, e)) : e.push(r, n, r + s, n, r + s, n + a, r, n + a);
|
|
8931
8931
|
},
|
|
8932
8932
|
triangulate: function(i, t) {
|
|
8933
|
-
if (
|
|
8933
|
+
if (ii.nextRoundedRectBehavior) {
|
|
8934
8934
|
av.triangulate(i, t);
|
|
8935
8935
|
return;
|
|
8936
8936
|
}
|
|
@@ -9266,7 +9266,7 @@ var I1 = function() {
|
|
|
9266
9266
|
}, t.prototype.reset = function() {
|
|
9267
9267
|
i.prototype.reset.call(this), this.color = 0, this.alignment = 0.5, this.width = 0, this.native = !1;
|
|
9268
9268
|
}, t;
|
|
9269
|
-
}(Kw), p2 = new Float32Array(3), Dm = {},
|
|
9269
|
+
}(Kw), p2 = new Float32Array(3), Dm = {}, ii = function(i) {
|
|
9270
9270
|
Nb(t, i);
|
|
9271
9271
|
function t(e) {
|
|
9272
9272
|
e === void 0 && (e = null);
|
|
@@ -9536,7 +9536,7 @@ function v2(i, t) {
|
|
|
9536
9536
|
}
|
|
9537
9537
|
i.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
9538
9538
|
}
|
|
9539
|
-
var dh = new ye(), g2 = new Uint16Array([0, 1, 2, 0, 2, 3]),
|
|
9539
|
+
var dh = new ye(), g2 = new Uint16Array([0, 1, 2, 0, 2, 3]), ze = function(i) {
|
|
9540
9540
|
v2(t, i);
|
|
9541
9541
|
function t(e) {
|
|
9542
9542
|
var r = i.call(this) || this;
|
|
@@ -10374,7 +10374,7 @@ var b2 = {
|
|
|
10374
10374
|
enumerable: !1,
|
|
10375
10375
|
configurable: !0
|
|
10376
10376
|
}), t.nextLineHeightBehavior = !1, t.experimentalLetterSpacing = !1, t;
|
|
10377
|
-
}(
|
|
10377
|
+
}(ze);
|
|
10378
10378
|
/*!
|
|
10379
10379
|
* @pixi/prepare - v6.5.8
|
|
10380
10380
|
* Compiled Sun, 23 Oct 2022 23:01:45 UTC
|
|
@@ -10477,12 +10477,12 @@ var I2 = function() {
|
|
|
10477
10477
|
}
|
|
10478
10478
|
return i.prototype.upload = function(t, e) {
|
|
10479
10479
|
var r = this;
|
|
10480
|
-
return typeof t == "function" && (e = t, t = null), e &&
|
|
10480
|
+
return typeof t == "function" && (e = t, t = null), e && Lr("6.5.0", "BasePrepare.upload callback is deprecated, use the return Promise instead."), new Promise(function(n) {
|
|
10481
10481
|
t && r.add(t);
|
|
10482
10482
|
var s = function() {
|
|
10483
10483
|
e == null || e(), n();
|
|
10484
10484
|
};
|
|
10485
|
-
r.queue.length ? (r.completes.push(s), r.ticking || (r.ticking = !0,
|
|
10485
|
+
r.queue.length ? (r.completes.push(s), r.ticking || (r.ticking = !0, Ne.system.addOnce(r.tick, r, ys.UTILITY))) : s();
|
|
10486
10486
|
});
|
|
10487
10487
|
}, i.prototype.tick = function() {
|
|
10488
10488
|
setTimeout(this.delayedTick, 0);
|
|
@@ -10499,7 +10499,7 @@ var I2 = function() {
|
|
|
10499
10499
|
e || this.queue.shift();
|
|
10500
10500
|
}
|
|
10501
10501
|
if (this.queue.length)
|
|
10502
|
-
|
|
10502
|
+
Ne.system.addOnce(this.tick, this, ys.UTILITY);
|
|
10503
10503
|
else {
|
|
10504
10504
|
this.ticking = !1;
|
|
10505
10505
|
var s = this.completes.slice(0);
|
|
@@ -10519,14 +10519,14 @@ var I2 = function() {
|
|
|
10519
10519
|
this.add(t.children[e]);
|
|
10520
10520
|
return this;
|
|
10521
10521
|
}, i.prototype.destroy = function() {
|
|
10522
|
-
this.ticking &&
|
|
10522
|
+
this.ticking && Ne.system.remove(this.tick, this), this.ticking = !1, this.addHooks = null, this.uploadHooks = null, this.renderer = null, this.completes = null, this.queue = null, this.limiter = null, this.uploadHookHelper = null;
|
|
10523
10523
|
}, i;
|
|
10524
10524
|
}();
|
|
10525
10525
|
function Qw(i, t) {
|
|
10526
10526
|
return t instanceof Wt ? (t._glTextures[i.CONTEXT_UID] || i.texture.bind(t), !0) : !1;
|
|
10527
10527
|
}
|
|
10528
10528
|
function D2(i, t) {
|
|
10529
|
-
if (!(t instanceof
|
|
10529
|
+
if (!(t instanceof ii))
|
|
10530
10530
|
return !1;
|
|
10531
10531
|
var e = t.geometry;
|
|
10532
10532
|
t.finishPoly(), e.updateBatches();
|
|
@@ -10537,7 +10537,7 @@ function D2(i, t) {
|
|
|
10537
10537
|
return e.batchable || i.geometry.bind(e, t._resolveDirectShader(i)), !0;
|
|
10538
10538
|
}
|
|
10539
10539
|
function R2(i, t) {
|
|
10540
|
-
return i instanceof
|
|
10540
|
+
return i instanceof ii ? (t.push(i), !0) : !1;
|
|
10541
10541
|
}
|
|
10542
10542
|
var A2 = function(i) {
|
|
10543
10543
|
x2(t, i);
|
|
@@ -10569,7 +10569,7 @@ var F2 = function() {
|
|
|
10569
10569
|
return r === null && (r = e !== void 0 ? parseFloat(e) : 1), r !== 1 && this.baseTexture.setResolution(r), r;
|
|
10570
10570
|
}, i.prototype.parse = function(t) {
|
|
10571
10571
|
var e = this;
|
|
10572
|
-
return t &&
|
|
10572
|
+
return t && Lr("6.5.0", "Spritesheet.parse callback is deprecated, use the return Promise instead."), new Promise(function(r) {
|
|
10573
10573
|
e._callback = function(n) {
|
|
10574
10574
|
t == null || t(n), r(n);
|
|
10575
10575
|
}, e._batchIndex = 0, e._frameKeys.length <= i.BATCH_SIZE ? (e._processFrames(0), e._processAnimations(), e._parseComplete()) : e._nextBatch();
|
|
@@ -10771,7 +10771,7 @@ var ph = new ye();
|
|
|
10771
10771
|
enumerable: !1,
|
|
10772
10772
|
configurable: !0
|
|
10773
10773
|
}), t;
|
|
10774
|
-
})(
|
|
10774
|
+
})(ze);
|
|
10775
10775
|
var k2 = `#version 100
|
|
10776
10776
|
#define SHADER_NAME Tiling-Sprite-Simple-100
|
|
10777
10777
|
|
|
@@ -11148,7 +11148,7 @@ void main(void)
|
|
|
11148
11148
|
}(ps), $g = function(i) {
|
|
11149
11149
|
Gb(t, i);
|
|
11150
11150
|
function t(e, r, n) {
|
|
11151
|
-
var s = i.call(this) || this, a = new
|
|
11151
|
+
var s = i.call(this) || this, a = new Ze(e), o = new Ze(r, !0), u = new Ze(n, !0, !0);
|
|
11152
11152
|
return s.addAttribute("aVertexPosition", a, 2, !1, Tt.FLOAT).addAttribute("aTextureCoord", o, 2, !1, Tt.FLOAT).addIndex(u), s._updateId = -1, s;
|
|
11153
11153
|
}
|
|
11154
11154
|
return Object.defineProperty(t.prototype, "vertexDirtyId", {
|
|
@@ -11656,7 +11656,7 @@ void main(void)\r
|
|
|
11656
11656
|
for (var C in U) {
|
|
11657
11657
|
var Y = U[C];
|
|
11658
11658
|
if (this.anchor.x !== 0 || this.anchor.y !== 0)
|
|
11659
|
-
for (var Dt = 0, Rt = this._textWidth * this.anchor.x, Qt = this._textHeight * this.anchor.y,
|
|
11659
|
+
for (var Dt = 0, Rt = this._textWidth * this.anchor.x, Qt = this._textHeight * this.anchor.y, je = 0; je < Y.total; je++)
|
|
11660
11660
|
Y.vertices[Dt++] -= Rt, Y.vertices[Dt++] -= Qt, Y.vertices[Dt++] -= Rt, Y.vertices[Dt++] -= Qt, Y.vertices[Dt++] -= Rt, Y.vertices[Dt++] -= Qt, Y.vertices[Dt++] -= Rt, Y.vertices[Dt++] -= Qt;
|
|
11661
11661
|
this._maxLineHeight = S * s;
|
|
11662
11662
|
var ur = Y.mesh.geometry.getBuffer("aVertexPosition"), $t = Y.mesh.geometry.getBuffer("aTextureCoord"), Be = Y.mesh.geometry.getIndex();
|
|
@@ -13206,17 +13206,17 @@ void main()
|
|
|
13206
13206
|
* http://www.opensource.org/licenses/mit-license
|
|
13207
13207
|
*/
|
|
13208
13208
|
var n3 = new ir();
|
|
13209
|
-
|
|
13210
|
-
|
|
13211
|
-
|
|
13212
|
-
|
|
13209
|
+
He.prototype._cacheAsBitmap = !1;
|
|
13210
|
+
He.prototype._cacheData = null;
|
|
13211
|
+
He.prototype._cacheAsBitmapResolution = null;
|
|
13212
|
+
He.prototype._cacheAsBitmapMultisample = ke.NONE;
|
|
13213
13213
|
var gA = function() {
|
|
13214
13214
|
function i() {
|
|
13215
13215
|
this.textureCacheId = null, this.originalRender = null, this.originalRenderCanvas = null, this.originalCalculateBounds = null, this.originalGetLocalBounds = null, this.originalUpdateTransform = null, this.originalDestroy = null, this.originalMask = null, this.originalFilterArea = null, this.originalContainsPoint = null, this.sprite = null;
|
|
13216
13216
|
}
|
|
13217
13217
|
return i;
|
|
13218
13218
|
}();
|
|
13219
|
-
Object.defineProperties(
|
|
13219
|
+
Object.defineProperties(He.prototype, {
|
|
13220
13220
|
cacheAsBitmapResolution: {
|
|
13221
13221
|
get: function() {
|
|
13222
13222
|
return this._cacheAsBitmapResolution;
|
|
@@ -13246,10 +13246,10 @@ Object.defineProperties($e.prototype, {
|
|
|
13246
13246
|
}
|
|
13247
13247
|
}
|
|
13248
13248
|
});
|
|
13249
|
-
|
|
13249
|
+
He.prototype._renderCached = function(t) {
|
|
13250
13250
|
!this.visible || this.worldAlpha <= 0 || !this.renderable || (this._initCachedDisplayObject(t), this._cacheData.sprite.transform._worldID = this.transform._worldID, this._cacheData.sprite.worldAlpha = this.worldAlpha, this._cacheData.sprite._render(t));
|
|
13251
13251
|
};
|
|
13252
|
-
|
|
13252
|
+
He.prototype._initCachedDisplayObject = function(t) {
|
|
13253
13253
|
var e;
|
|
13254
13254
|
if (!(this._cacheData && this._cacheData.sprite)) {
|
|
13255
13255
|
var r = this.alpha;
|
|
@@ -13269,14 +13269,14 @@ $e.prototype._initCachedDisplayObject = function(t) {
|
|
|
13269
13269
|
this._cacheData.textureCacheId = f, Wt.addToCache(h.baseTexture, f), St.addToCache(h, f);
|
|
13270
13270
|
var d = this.transform.localTransform.copyTo(n3).invert().translate(-n.x, -n.y);
|
|
13271
13271
|
this.render = this._cacheData.originalRender, t.render(this, { renderTexture: h, clear: !0, transform: d, skipUpdateTransform: !1 }), t.framebuffer.blit(), t.projection.transform = l, t.renderTexture.bind(a, o, u), this.render = this._renderCached, this.updateTransform = this.displayObjectUpdateTransform, this.calculateBounds = this._calculateCachedBounds, this.getLocalBounds = this._getCachedLocalBounds, this._mask = null, this.filterArea = null, this.alpha = r;
|
|
13272
|
-
var p = new
|
|
13272
|
+
var p = new ze(h);
|
|
13273
13273
|
p.transform.worldTransform = this.transform.worldTransform, p.anchor.x = -(n.x / n.width), p.anchor.y = -(n.y / n.height), p.alpha = r, p._bounds = this._bounds, this._cacheData.sprite = p, this.transform._parentID = -1, this.parent ? this.updateTransform() : (this.enableTempParent(), this.updateTransform(), this.disableTempParent(null)), this.containsPoint = p.containsPoint.bind(p);
|
|
13274
13274
|
}
|
|
13275
13275
|
};
|
|
13276
|
-
|
|
13276
|
+
He.prototype._renderCachedCanvas = function(t) {
|
|
13277
13277
|
!this.visible || this.worldAlpha <= 0 || !this.renderable || (this._initCachedDisplayObjectCanvas(t), this._cacheData.sprite.worldAlpha = this.worldAlpha, this._cacheData.sprite._renderCanvas(t));
|
|
13278
13278
|
};
|
|
13279
|
-
|
|
13279
|
+
He.prototype._initCachedDisplayObjectCanvas = function(t) {
|
|
13280
13280
|
if (!(this._cacheData && this._cacheData.sprite)) {
|
|
13281
13281
|
var e = this.getLocalBounds(null, !0), r = this.alpha;
|
|
13282
13282
|
this.alpha = 1;
|
|
@@ -13286,20 +13286,20 @@ $e.prototype._initCachedDisplayObjectCanvas = function(t) {
|
|
|
13286
13286
|
this._cacheData.textureCacheId = o, Wt.addToCache(a.baseTexture, o), St.addToCache(a, o);
|
|
13287
13287
|
var u = n3;
|
|
13288
13288
|
this.transform.localTransform.copyTo(u), u.invert(), u.tx -= e.x, u.ty -= e.y, this.renderCanvas = this._cacheData.originalRenderCanvas, t.render(this, { renderTexture: a, clear: !0, transform: u, skipUpdateTransform: !1 }), t.context = n, t._projTransform = s, this.renderCanvas = this._renderCachedCanvas, this.updateTransform = this.displayObjectUpdateTransform, this.calculateBounds = this._calculateCachedBounds, this.getLocalBounds = this._getCachedLocalBounds, this._mask = null, this.filterArea = null, this.alpha = r;
|
|
13289
|
-
var l = new
|
|
13289
|
+
var l = new ze(a);
|
|
13290
13290
|
l.transform.worldTransform = this.transform.worldTransform, l.anchor.x = -(e.x / e.width), l.anchor.y = -(e.y / e.height), l.alpha = r, l._bounds = this._bounds, this._cacheData.sprite = l, this.transform._parentID = -1, this.parent ? this.updateTransform() : (this.parent = t._tempDisplayObjectParent, this.updateTransform(), this.parent = null), this.containsPoint = l.containsPoint.bind(l);
|
|
13291
13291
|
}
|
|
13292
13292
|
};
|
|
13293
|
-
|
|
13293
|
+
He.prototype._calculateCachedBounds = function() {
|
|
13294
13294
|
this._bounds.clear(), this._cacheData.sprite.transform._worldID = this.transform._worldID, this._cacheData.sprite._calculateBounds(), this._bounds.updateID = this._boundsID;
|
|
13295
13295
|
};
|
|
13296
|
-
|
|
13296
|
+
He.prototype._getCachedLocalBounds = function() {
|
|
13297
13297
|
return this._cacheData.sprite.getLocalBounds(null);
|
|
13298
13298
|
};
|
|
13299
|
-
|
|
13299
|
+
He.prototype._destroyCachedDisplayObject = function() {
|
|
13300
13300
|
this._cacheData.sprite._texture.destroy(!0), this._cacheData.sprite = null, Wt.removeFromCache(this._cacheData.textureCacheId), St.removeFromCache(this._cacheData.textureCacheId), this._cacheData.textureCacheId = null;
|
|
13301
13301
|
};
|
|
13302
|
-
|
|
13302
|
+
He.prototype._cacheAsBitmapDestroy = function(t) {
|
|
13303
13303
|
this.cacheAsBitmap = !1, this.destroy(t);
|
|
13304
13304
|
};
|
|
13305
13305
|
/*!
|
|
@@ -13309,7 +13309,7 @@ $e.prototype._cacheAsBitmapDestroy = function(t) {
|
|
|
13309
13309
|
* @pixi/mixin-get-child-by-name is licensed under the MIT License.
|
|
13310
13310
|
* http://www.opensource.org/licenses/mit-license
|
|
13311
13311
|
*/
|
|
13312
|
-
|
|
13312
|
+
He.prototype.name = null;
|
|
13313
13313
|
ve.prototype.getChildByName = function(t, e) {
|
|
13314
13314
|
for (var r = 0, n = this.children.length; r < n; r++)
|
|
13315
13315
|
if (this.children[r].name === t)
|
|
@@ -13332,7 +13332,7 @@ ve.prototype.getChildByName = function(t, e) {
|
|
|
13332
13332
|
* @pixi/mixin-get-global-position is licensed under the MIT License.
|
|
13333
13333
|
* http://www.opensource.org/licenses/mit-license
|
|
13334
13334
|
*/
|
|
13335
|
-
|
|
13335
|
+
He.prototype.getGlobalPosition = function(t, e) {
|
|
13336
13336
|
return t === void 0 && (t = new ye()), e === void 0 && (e = !1), this.parent ? this.parent.toGlobal(this.position, t, e) : (t.x = this.position.x, t.y = this.position.y), t;
|
|
13337
13337
|
};
|
|
13338
13338
|
/*!
|
|
@@ -13390,7 +13390,7 @@ var mA = function() {
|
|
|
13390
13390
|
});
|
|
13391
13391
|
}
|
|
13392
13392
|
return i.registerPlugin = function(t) {
|
|
13393
|
-
|
|
13393
|
+
Lr("6.5.0", "Application.registerPlugin() is deprecated, use extensions.add()"), tn.add({
|
|
13394
13394
|
type: fe.Application,
|
|
13395
13395
|
ref: t
|
|
13396
13396
|
});
|
|
@@ -13715,9 +13715,9 @@ var j1 = function(i) {
|
|
|
13715
13715
|
return n._textures = null, n._durations = null, n._autoUpdate = r, n._isConnectedToTicker = !1, n.animationSpeed = 1, n.loop = !0, n.updateAnchor = !1, n.onComplete = null, n.onFrameChange = null, n.onLoop = null, n._currentTime = 0, n._playing = !1, n._previousFrame = null, n.textures = e, n;
|
|
13716
13716
|
}
|
|
13717
13717
|
return t.prototype.stop = function() {
|
|
13718
|
-
!this._playing || (this._playing = !1, this._autoUpdate && this._isConnectedToTicker && (
|
|
13718
|
+
!this._playing || (this._playing = !1, this._autoUpdate && this._isConnectedToTicker && (Ne.shared.remove(this.update, this), this._isConnectedToTicker = !1));
|
|
13719
13719
|
}, t.prototype.play = function() {
|
|
13720
|
-
this._playing || (this._playing = !0, this._autoUpdate && !this._isConnectedToTicker && (
|
|
13720
|
+
this._playing || (this._playing = !0, this._autoUpdate && !this._isConnectedToTicker && (Ne.shared.add(this.update, this, ys.HIGH), this._isConnectedToTicker = !0));
|
|
13721
13721
|
}, t.prototype.gotoAndStop = function(e) {
|
|
13722
13722
|
this.stop();
|
|
13723
13723
|
var r = this.currentFrame;
|
|
@@ -13793,12 +13793,12 @@ var j1 = function(i) {
|
|
|
13793
13793
|
return this._autoUpdate;
|
|
13794
13794
|
},
|
|
13795
13795
|
set: function(e) {
|
|
13796
|
-
e !== this._autoUpdate && (this._autoUpdate = e, !this._autoUpdate && this._isConnectedToTicker ? (
|
|
13796
|
+
e !== this._autoUpdate && (this._autoUpdate = e, !this._autoUpdate && this._isConnectedToTicker ? (Ne.shared.remove(this.update, this), this._isConnectedToTicker = !1) : this._autoUpdate && !this._isConnectedToTicker && this._playing && (Ne.shared.add(this.update, this), this._isConnectedToTicker = !0));
|
|
13797
13797
|
},
|
|
13798
13798
|
enumerable: !1,
|
|
13799
13799
|
configurable: !0
|
|
13800
13800
|
}), t;
|
|
13801
|
-
}(
|
|
13801
|
+
}(ze);
|
|
13802
13802
|
/*!
|
|
13803
13803
|
* pixi.js - v6.5.8
|
|
13804
13804
|
* Compiled Sun, 23 Oct 2022 23:01:45 UTC
|
|
@@ -13930,25 +13930,25 @@ const CA = (i) => {
|
|
|
13930
13930
|
}
|
|
13931
13931
|
return r;
|
|
13932
13932
|
}, h3 = 4;
|
|
13933
|
-
function
|
|
13933
|
+
function Je(i) {
|
|
13934
13934
|
if (i)
|
|
13935
13935
|
return DA(i);
|
|
13936
13936
|
}
|
|
13937
13937
|
function DA(i) {
|
|
13938
|
-
for (var t in
|
|
13939
|
-
i[t] =
|
|
13938
|
+
for (var t in Je.prototype)
|
|
13939
|
+
i[t] = Je.prototype[t];
|
|
13940
13940
|
return i;
|
|
13941
13941
|
}
|
|
13942
|
-
|
|
13942
|
+
Je.prototype.on = Je.prototype.addEventListener = function(i, t) {
|
|
13943
13943
|
return this._callbacks = this._callbacks || {}, (this._callbacks["$" + i] = this._callbacks["$" + i] || []).push(t), this;
|
|
13944
13944
|
};
|
|
13945
|
-
|
|
13945
|
+
Je.prototype.once = function(i, t) {
|
|
13946
13946
|
function e() {
|
|
13947
13947
|
this.off(i, e), t.apply(this, arguments);
|
|
13948
13948
|
}
|
|
13949
13949
|
return e.fn = t, this.on(i, e), this;
|
|
13950
13950
|
};
|
|
13951
|
-
|
|
13951
|
+
Je.prototype.off = Je.prototype.removeListener = Je.prototype.removeAllListeners = Je.prototype.removeEventListener = function(i, t) {
|
|
13952
13952
|
if (this._callbacks = this._callbacks || {}, arguments.length == 0)
|
|
13953
13953
|
return this._callbacks = {}, this;
|
|
13954
13954
|
var e = this._callbacks["$" + i];
|
|
@@ -13963,7 +13963,7 @@ Qe.prototype.off = Qe.prototype.removeListener = Qe.prototype.removeAllListeners
|
|
|
13963
13963
|
}
|
|
13964
13964
|
return e.length === 0 && delete this._callbacks["$" + i], this;
|
|
13965
13965
|
};
|
|
13966
|
-
|
|
13966
|
+
Je.prototype.emit = function(i) {
|
|
13967
13967
|
this._callbacks = this._callbacks || {};
|
|
13968
13968
|
for (var t = new Array(arguments.length - 1), e = this._callbacks["$" + i], r = 1; r < arguments.length; r++)
|
|
13969
13969
|
t[r - 1] = arguments[r];
|
|
@@ -13974,11 +13974,11 @@ Qe.prototype.emit = function(i) {
|
|
|
13974
13974
|
}
|
|
13975
13975
|
return this;
|
|
13976
13976
|
};
|
|
13977
|
-
|
|
13978
|
-
|
|
13977
|
+
Je.prototype.emitReserved = Je.prototype.emit;
|
|
13978
|
+
Je.prototype.listeners = function(i) {
|
|
13979
13979
|
return this._callbacks = this._callbacks || {}, this._callbacks["$" + i] || [];
|
|
13980
13980
|
};
|
|
13981
|
-
|
|
13981
|
+
Je.prototype.hasListeners = function(i) {
|
|
13982
13982
|
return !!this.listeners(i).length;
|
|
13983
13983
|
};
|
|
13984
13984
|
const ea = (() => typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")())();
|
|
@@ -14004,7 +14004,7 @@ class NA extends Error {
|
|
|
14004
14004
|
super(t), this.description = e, this.context = r, this.type = "TransportError";
|
|
14005
14005
|
}
|
|
14006
14006
|
}
|
|
14007
|
-
class f3 extends
|
|
14007
|
+
class f3 extends Je {
|
|
14008
14008
|
constructor(t) {
|
|
14009
14009
|
super(), this.writable = !1, Vg(this, t), this.opts = t, this.query = t.query, this.readyState = "", this.socket = t.socket;
|
|
14010
14010
|
}
|
|
@@ -14171,7 +14171,7 @@ class HA extends f3 {
|
|
|
14171
14171
|
}), this.pollXhr = t;
|
|
14172
14172
|
}
|
|
14173
14173
|
}
|
|
14174
|
-
class Tn extends
|
|
14174
|
+
class Tn extends Je {
|
|
14175
14175
|
constructor(t, e) {
|
|
14176
14176
|
super(), Vg(this, e), this.opts = e, this.method = e.method || "GET", this.uri = t, this.async = e.async !== !1, this.data = e.data !== void 0 ? e.data : null, this.create();
|
|
14177
14177
|
}
|
|
@@ -14342,7 +14342,7 @@ function ZA(i, t) {
|
|
|
14342
14342
|
n && (e[n] = s);
|
|
14343
14343
|
}), e;
|
|
14344
14344
|
}
|
|
14345
|
-
class Ds extends
|
|
14345
|
+
class Ds extends Je {
|
|
14346
14346
|
constructor(t, e = {}) {
|
|
14347
14347
|
super(), t && typeof t == "object" && (e = t, t = null), t ? (t = Dy(t), e.hostname = t.host, e.secure = t.protocol === "https" || t.protocol === "wss", e.port = t.port, t.query && (e.query = t.query)) : e.host && (e.hostname = Dy(e.host).host), Vg(this, e), this.secure = e.secure != null ? e.secure : typeof location < "u" && location.protocol === "https:", e.hostname && !e.port && (e.port = this.secure ? "443" : "80"), this.hostname = e.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = e.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = e.transports || ["polling", "websocket"], this.readyState = "", this.writeBuffer = [], this.prevBufferLen = 0, this.opts = Object.assign({
|
|
14348
14348
|
path: "/engine.io",
|
|
@@ -14629,7 +14629,7 @@ class sF {
|
|
|
14629
14629
|
return n.unshift(r), n;
|
|
14630
14630
|
}
|
|
14631
14631
|
}
|
|
14632
|
-
class jb extends
|
|
14632
|
+
class jb extends Je {
|
|
14633
14633
|
constructor(t) {
|
|
14634
14634
|
super(), this.reviver = t;
|
|
14635
14635
|
}
|
|
@@ -14757,7 +14757,7 @@ const uF = Object.freeze({
|
|
|
14757
14757
|
newListener: 1,
|
|
14758
14758
|
removeListener: 1
|
|
14759
14759
|
});
|
|
14760
|
-
class b3 extends
|
|
14760
|
+
class b3 extends Je {
|
|
14761
14761
|
constructor(t, e, r) {
|
|
14762
14762
|
super(), this.connected = !1, this.receiveBuffer = [], this.sendBuffer = [], this.ids = 0, this.acks = {}, this.flags = {}, this.io = t, this.nsp = e, r && r.auth && (this.auth = r.auth), this.io._autoConnect && this.open();
|
|
14763
14763
|
}
|
|
@@ -14989,7 +14989,7 @@ eh.prototype.setMax = function(i) {
|
|
|
14989
14989
|
eh.prototype.setJitter = function(i) {
|
|
14990
14990
|
this.jitter = i;
|
|
14991
14991
|
};
|
|
14992
|
-
class Fy extends
|
|
14992
|
+
class Fy extends Je {
|
|
14993
14993
|
constructor(t, e) {
|
|
14994
14994
|
var r;
|
|
14995
14995
|
super(), this.nsps = {}, this.subs = [], t && typeof t == "object" && (e = t, t = void 0), e = e || {}, e.path = e.path || "/socket.io", this.opts = e, Vg(this, e), this.reconnection(e.reconnection !== !1), this.reconnectionAttempts(e.reconnectionAttempts || 1 / 0), this.reconnectionDelay(e.reconnectionDelay || 1e3), this.reconnectionDelayMax(e.reconnectionDelayMax || 5e3), this.randomizationFactor((r = e.randomizationFactor) !== null && r !== void 0 ? r : 0.5), this.backoff = new eh({
|
|
@@ -16014,8 +16014,8 @@ var me = { exports: {} };
|
|
|
16014
16014
|
for (var lr = 0; lr < rt.length; lr++)
|
|
16015
16015
|
be[rt[lr]] = !0;
|
|
16016
16016
|
var Bn = [];
|
|
16017
|
-
for (var
|
|
16018
|
-
({}).hasOwnProperty.call(be,
|
|
16017
|
+
for (var zr in be)
|
|
16018
|
+
({}).hasOwnProperty.call(be, zr) && Bn.push(zr);
|
|
16019
16019
|
return Bn.sort(), Bn;
|
|
16020
16020
|
}(D.expected, N.expected) : N.expected;
|
|
16021
16021
|
return { status: D.status, index: D.index, value: D.value, furthest: N.furthest, expected: z };
|
|
@@ -16072,31 +16072,31 @@ var me = { exports: {} };
|
|
|
16072
16072
|
if (be === D.length)
|
|
16073
16073
|
return "Got the end of the input";
|
|
16074
16074
|
if (w(D)) {
|
|
16075
|
-
var lr = be - be % L, Bn = be - lr,
|
|
16075
|
+
var lr = be - be % L, Bn = be - lr, zr = ot(lr, $, Y + L, D.length), kn = l(function(Qe) {
|
|
16076
16076
|
return l(function(au) {
|
|
16077
16077
|
return tt(au.toString(16), 2, "0");
|
|
16078
|
-
},
|
|
16079
|
-
}, function(
|
|
16080
|
-
var ou =
|
|
16078
|
+
}, Qe);
|
|
16079
|
+
}, function(Qe, au) {
|
|
16080
|
+
var ou = Qe.length, pa = [], uu = 0;
|
|
16081
16081
|
if (ou <= au)
|
|
16082
|
-
return [
|
|
16082
|
+
return [Qe.slice()];
|
|
16083
16083
|
for (var lu = 0; lu < ou; lu++)
|
|
16084
|
-
pa[uu] || pa.push([]), pa[uu].push(
|
|
16084
|
+
pa[uu] || pa.push([]), pa[uu].push(Qe[lu]), (lu + 1) % au == 0 && uu++;
|
|
16085
16085
|
return pa;
|
|
16086
|
-
}(D.slice(
|
|
16087
|
-
at = function(
|
|
16088
|
-
return
|
|
16089
|
-
}(
|
|
16090
|
-
return
|
|
16086
|
+
}(D.slice(zr.from, zr.to).toJSON().data, L));
|
|
16087
|
+
at = function(Qe) {
|
|
16088
|
+
return Qe.from === 0 && Qe.to === 1 ? { from: Qe.from, to: Qe.to } : { from: Qe.from / L, to: Math.floor(Qe.to / L) };
|
|
16089
|
+
}(zr), J = lr / L, z = 3 * Bn, Bn >= 4 && (z += 1), br = 2, rt = l(function(Qe) {
|
|
16090
|
+
return Qe.length <= 4 ? Qe.join(" ") : Qe.slice(0, 4).join(" ") + " " + Qe.slice(4).join(" ");
|
|
16091
16091
|
}, kn), (lt = (8 * (at.to > 0 ? at.to - 1 : at.to)).toString(16).length) < 2 && (lt = 2);
|
|
16092
16092
|
} else {
|
|
16093
16093
|
var su = D.split(/\r\n|[\n\r\u2028\u2029]/);
|
|
16094
16094
|
z = At.column - 1, J = At.line - 1, at = ot(J, H, K, su.length), rt = su.slice(at.from, at.to), lt = at.to.toString().length;
|
|
16095
16095
|
}
|
|
16096
16096
|
var hM = J - at.from;
|
|
16097
|
-
return w(D) && (lt = (8 * (at.to > 0 ? at.to - 1 : at.to)).toString(16).length) < 2 && (lt = 2), u(function(
|
|
16097
|
+
return w(D) && (lt = (8 * (at.to > 0 ? at.to - 1 : at.to)).toString(16).length) < 2 && (lt = 2), u(function(Qe, au, ou) {
|
|
16098
16098
|
var pa, uu = ou === hM, lu = uu ? "> " : ht;
|
|
16099
|
-
return pa = w(D) ? tt((8 * (at.from + ou)).toString(16), lt, "0") : tt((at.from + ou + 1).toString(), lt, " "), [].concat(
|
|
16099
|
+
return pa = w(D) ? tt((8 * (at.from + ou)).toString(16), lt, "0") : tt((at.from + ou + 1).toString(), lt, " "), [].concat(Qe, [lu + pa + " | " + au], uu ? [ht + dt(" ", lt) + " | " + tt("", z, " ") + dt("^", br)] : []);
|
|
16100
16100
|
}, [], rt).join(`
|
|
16101
16101
|
`);
|
|
16102
16102
|
}
|
|
@@ -16226,7 +16226,7 @@ var me = { exports: {} };
|
|
|
16226
16226
|
return z < N.length && D(J) ? C(z + 1, J) : T(z, "a character/byte matching " + D);
|
|
16227
16227
|
});
|
|
16228
16228
|
}
|
|
16229
|
-
function
|
|
16229
|
+
function je(D, N) {
|
|
16230
16230
|
arguments.length < 2 && (N = D, D = void 0);
|
|
16231
16231
|
var z = s(function(J, rt) {
|
|
16232
16232
|
return z._ = N()._, z._(J, rt);
|
|
@@ -16384,14 +16384,14 @@ var me = { exports: {} };
|
|
|
16384
16384
|
var N = {};
|
|
16385
16385
|
for (var z in D)
|
|
16386
16386
|
({}).hasOwnProperty.call(D, z) && function(J) {
|
|
16387
|
-
N[J] =
|
|
16387
|
+
N[J] = je(function() {
|
|
16388
16388
|
return D[J](N);
|
|
16389
16389
|
});
|
|
16390
16390
|
}(z);
|
|
16391
16391
|
return N;
|
|
16392
16392
|
}, s.crlf = wd, s.custom = function(D) {
|
|
16393
16393
|
return s(D(C, T));
|
|
16394
|
-
}, s.digit = ne, s.digits = Ht, s.empty = ur, s.end = oh, s.eof = ae, s.fail = X, s.formatError = gt, s.index = $t, s.isParser = x, s.lazy =
|
|
16394
|
+
}, s.digit = ne, s.digits = Ht, s.empty = ur, s.end = oh, s.eof = ae, s.fail = X, s.formatError = gt, s.index = $t, s.isParser = x, s.lazy = je, s.letter = nr, s.letters = sh, s.lf = Ed, s.lookahead = Dt, s.makeFailure = T, s.makeSuccess = C, s.newline = Sd, s.noneOf = function(D) {
|
|
16395
16395
|
return Qt(function(N) {
|
|
16396
16396
|
return D.indexOf(N) < 0;
|
|
16397
16397
|
}).desc("none of '" + D + "'");
|
|
@@ -16422,9 +16422,9 @@ var me = { exports: {} };
|
|
|
16422
16422
|
if (z === 0)
|
|
16423
16423
|
throw new Error("seqObj expects at least one named parser, found zero");
|
|
16424
16424
|
return s(function(be, br) {
|
|
16425
|
-
for (var lr, Bn = {},
|
|
16425
|
+
for (var lr, Bn = {}, zr = 0; zr < rt; zr += 1) {
|
|
16426
16426
|
var kn, su;
|
|
16427
|
-
if (S(J[
|
|
16427
|
+
if (S(J[zr]) ? (kn = J[zr][0], su = J[zr][1]) : (kn = null, su = J[zr]), !(lr = O(su._(be, br), lr)).status)
|
|
16428
16428
|
return lr;
|
|
16429
16429
|
kn && (Bn[kn] = lr.value), br = lr.index;
|
|
16430
16430
|
}
|
|
@@ -16844,7 +16844,7 @@ class Z1 {
|
|
|
16844
16844
|
return t.slice(1);
|
|
16845
16845
|
}
|
|
16846
16846
|
}
|
|
16847
|
-
var
|
|
16847
|
+
var tr, oi, we, Un, Xe, Xr, sn, bc, Dv, xc, ky, Ec, wc, Rv, M3, Av, P3, ui, en, Fv, O3, Bv, I3, kv, D3, Nv, R3, Lv, A3, Gv, F3, Uv, B3, jv, k3, Gu, Tp, Sc, Ny, Tc, Va, Cc, Ly, zv, Hv, Uu, Mc, ju, Cp, $v, N3, Vv, L3, Pc, Gy, Oc, Uy, Xv, G3, Wv, U3, zu, Mp;
|
|
16848
16848
|
const Mu = class {
|
|
16849
16849
|
constructor(t, e) {
|
|
16850
16850
|
E(this, xc);
|
|
@@ -16870,19 +16870,19 @@ const Mu = class {
|
|
|
16870
16870
|
E(this, Xv);
|
|
16871
16871
|
E(this, Wv);
|
|
16872
16872
|
E(this, zu);
|
|
16873
|
-
E(this,
|
|
16874
|
-
E(this,
|
|
16875
|
-
E(this,
|
|
16873
|
+
E(this, tr, { sys: {}, save: {}, tmp: {}, mp: {} });
|
|
16874
|
+
E(this, oi, c(this, tr).save);
|
|
16875
|
+
E(this, we, c(this, tr).tmp);
|
|
16876
16876
|
E(this, Un, void 0);
|
|
16877
|
-
E(this,
|
|
16878
|
-
E(this,
|
|
16877
|
+
E(this, Xe, { sys: {}, mark: {}, kidoku: {} });
|
|
16878
|
+
E(this, Xr, void 0);
|
|
16879
16879
|
E(this, sn, {});
|
|
16880
16880
|
E(this, bc, void 0);
|
|
16881
16881
|
E(this, Dv, {
|
|
16882
16882
|
auth: (t, e) => P(this, xc, ky).call(this, e.hBreakpoint.aData),
|
|
16883
16883
|
var: (t, e) => {
|
|
16884
16884
|
var r;
|
|
16885
|
-
return c(this, Un).send2Dbg(e.ri, { v: (r = c(this,
|
|
16885
|
+
return c(this, Un).send2Dbg(e.ri, { v: (r = c(this, tr)[e.scope]) != null ? r : {} });
|
|
16886
16886
|
},
|
|
16887
16887
|
set_var: (t, e) => {
|
|
16888
16888
|
try {
|
|
@@ -16899,7 +16899,7 @@ const Mu = class {
|
|
|
16899
16899
|
});
|
|
16900
16900
|
E(this, wc, (t) => {
|
|
16901
16901
|
});
|
|
16902
|
-
Z(this, "getMark", (t) => c(this,
|
|
16902
|
+
Z(this, "getMark", (t) => c(this, Xe).mark[t]);
|
|
16903
16903
|
Z(this, "getAreaKidoku", (t) => c(this, sn)[t]);
|
|
16904
16904
|
E(this, Tc, (t, e, r = !0) => {
|
|
16905
16905
|
if (!t)
|
|
@@ -16909,7 +16909,7 @@ const Mu = class {
|
|
|
16909
16909
|
const n = Aa.getValName(t);
|
|
16910
16910
|
if (n === void 0)
|
|
16911
16911
|
throw "[\u5909\u6570\u53C2\u7167] name(" + t + ")\u304C\u5909\u6570\u540D\u3068\u3057\u3066\u7570\u5E38\u3067\u3059";
|
|
16912
|
-
const s = c(this,
|
|
16912
|
+
const s = c(this, tr)[n.scope];
|
|
16913
16913
|
if (!s)
|
|
16914
16914
|
throw "[\u5909\u6570\u306B\u5024\u30BB\u30C3\u30C8] scope\u304C\u7570\u5E38\u3010" + n.scope + "\u3011\u3067\u3059";
|
|
16915
16915
|
const a = n.name;
|
|
@@ -16923,7 +16923,7 @@ const Mu = class {
|
|
|
16923
16923
|
const r = Aa.getValName(t);
|
|
16924
16924
|
if (r === void 0)
|
|
16925
16925
|
throw "[\u5909\u6570\u53C2\u7167] name(" + t + ")\u304C\u5909\u6570\u540D\u3068\u3057\u3066\u7570\u5E38\u3067\u3059";
|
|
16926
|
-
const n = c(this,
|
|
16926
|
+
const n = c(this, tr)[r.scope];
|
|
16927
16927
|
if (!n)
|
|
16928
16928
|
throw "[\u5909\u6570\u53C2\u7167] scope\u304C\u7570\u5E38\u3010" + r.scope + "\u3011\u3067\u3059";
|
|
16929
16929
|
const s = r.name;
|
|
@@ -16964,7 +16964,7 @@ const Mu = class {
|
|
|
16964
16964
|
E(this, Hv, () => {
|
|
16965
16965
|
const t = { tmp: {}, sys: {}, save: {}, mp: {} };
|
|
16966
16966
|
for (let e in t) {
|
|
16967
|
-
const r = c(this,
|
|
16967
|
+
const r = c(this, tr)[e], n = t[e];
|
|
16968
16968
|
for (let [s, a] of Object.entries(r))
|
|
16969
16969
|
n[s] = Object.prototype.toString.call(a) === "[object Function]" ? a() : a;
|
|
16970
16970
|
}
|
|
@@ -16993,70 +16993,58 @@ const Mu = class {
|
|
|
16993
16993
|
}
|
|
16994
16994
|
});
|
|
16995
16995
|
var s;
|
|
16996
|
-
if (this.cfg = t, e.let = (a) => P(this, ui, en).call(this, a), e.let_abs = (a) => P(this, Fv, O3).call(this, a), e.let_char_at = (a) => P(this, Bv, I3).call(this, a), e.let_index_of = (a) => P(this, kv, D3).call(this, a), e.let_length = (a) => P(this, Nv, R3).call(this, a), e.let_replace = (a) => P(this, Lv, A3).call(this, a), e.let_round = (a) => P(this, Gv, F3).call(this, a), e.let_search = (a) => P(this, Uv, B3).call(this, a), e.let_substr = (a) => P(this, jv, k3).call(this, a), e.clearsysvar = () => P(this, Gu, Tp).call(this), e.clearvar = () => P(this, Sc, Ny).call(this), e.dump_val = () => c(this, Hv).call(this), e.copybookmark = (a) => P(this, Rv, M3).call(this, a), e.erasebookmark = (a) => P(this, Av, P3).call(this, a), c(this,
|
|
16996
|
+
if (this.cfg = t, e.let = (a) => P(this, ui, en).call(this, a), e.let_abs = (a) => P(this, Fv, O3).call(this, a), e.let_char_at = (a) => P(this, Bv, I3).call(this, a), e.let_index_of = (a) => P(this, kv, D3).call(this, a), e.let_length = (a) => P(this, Nv, R3).call(this, a), e.let_replace = (a) => P(this, Lv, A3).call(this, a), e.let_round = (a) => P(this, Gv, F3).call(this, a), e.let_search = (a) => P(this, Uv, B3).call(this, a), e.let_substr = (a) => P(this, jv, k3).call(this, a), e.clearsysvar = () => P(this, Gu, Tp).call(this), e.clearvar = () => P(this, Sc, Ny).call(this), e.dump_val = () => c(this, Hv).call(this), e.copybookmark = (a) => P(this, Rv, M3).call(this, a), e.erasebookmark = (a) => P(this, Av, P3).call(this, a), c(this, oi)["sn.userFnTail"] = "", this.defTmp("const.sn.bookmark.json", () => {
|
|
16997
16997
|
const a = [];
|
|
16998
|
-
for (const o of Object.keys(c(this,
|
|
16999
|
-
const u = { ...c(this,
|
|
16998
|
+
for (const o of Object.keys(c(this, Xe).mark).sort()) {
|
|
16999
|
+
const u = { ...c(this, Xe).mark[o].json };
|
|
17000
17000
|
u.place = o, a.push(u);
|
|
17001
17001
|
}
|
|
17002
17002
|
return JSON.stringify(a);
|
|
17003
|
-
}), c(this,
|
|
17003
|
+
}), c(this, we)["const.sn.isFirstBoot"] = !0, c(this, we)["sn.tagL.enabled"] = !0, c(this, we)["sn.skip.all"] = !1, c(this, we)["sn.skip.enabled"] = !1, c(this, we)["sn.auto.enabled"] = !1, c(this, we)["const.sn.last_page_text"] = "", c(this, we)["const.sn.displayState"] = !1, c(this, we)["const.Date.getTime"] = () => new Date().getTime(), c(this, we)["const.Date.getDateStr"] = () => Xh(), c(this, we)["const.sn.platform"] = JSON.stringify(QE), P(this, Gu, Tp).call(this), P(this, Sc, Ny).call(this), c(this, we)["const.sn.config.window.width"] = t.oCfg.window.width, c(this, we)["const.sn.config.window.height"] = t.oCfg.window.height, c(this, we)["const.sn.config.book.title"] = t.oCfg.book.title, c(this, we)["const.sn.config.book.version"] = t.oCfg.book.version, c(this, we)["const.sn.Math.PI"] = Math.PI, typeof window > "u")
|
|
17004
17004
|
return;
|
|
17005
17005
|
const r = window, n = (s = r.AudioContext) != null ? s : r.webkitAudioContext;
|
|
17006
|
-
c(this,
|
|
17006
|
+
c(this, we)["const.sn.needClick2Play"] = () => new n().state === "suspended";
|
|
17007
17007
|
}
|
|
17008
17008
|
setSys(t) {
|
|
17009
|
-
M(this, Un, t), t.initVal(c(this,
|
|
17009
|
+
M(this, Un, t), t.initVal(c(this, Xe), c(this, we), (e) => {
|
|
17010
17010
|
this.updateData(e), sessionStorage.clear();
|
|
17011
17011
|
const r = this.cfg.getNs();
|
|
17012
17012
|
M(this, Ec, this.cfg.oCfg.debug.variable ? () => {
|
|
17013
17013
|
const s = {};
|
|
17014
|
-
for (const f of Object.
|
|
17015
|
-
const d = c(this, Or)[f];
|
|
17014
|
+
for (const [f, d] of Object.entries(c(this, Xr)))
|
|
17016
17015
|
s["sys:" + f] = d instanceof Function ? d() : d;
|
|
17017
|
-
}
|
|
17018
17016
|
sessionStorage[r + "sys"] = JSON.stringify(s);
|
|
17019
17017
|
const a = {};
|
|
17020
|
-
for (const f of Object.
|
|
17021
|
-
const d = c(this, Wr)[f];
|
|
17018
|
+
for (const [f, d] of Object.entries(c(this, oi)))
|
|
17022
17019
|
a["save:" + f] = d instanceof Function ? d() : d;
|
|
17023
|
-
}
|
|
17024
17020
|
sessionStorage[r + "save"] = JSON.stringify(a);
|
|
17025
17021
|
const o = {};
|
|
17026
|
-
for (const f of Object.
|
|
17027
|
-
const d = c(this, xe)[f];
|
|
17022
|
+
for (const [f, d] of Object.entries(c(this, we)))
|
|
17028
17023
|
o[f] = d instanceof Function ? d() : d;
|
|
17029
|
-
}
|
|
17030
17024
|
sessionStorage[r + "tmp"] = JSON.stringify(o);
|
|
17031
17025
|
const u = {};
|
|
17032
|
-
for (const f of Object.
|
|
17033
|
-
const d = c(this, We).mp[f];
|
|
17026
|
+
for (const [f, d] of Object.entries(c(this, tr).mp))
|
|
17034
17027
|
u[f] = d instanceof Function ? d() : d;
|
|
17035
|
-
}
|
|
17036
17028
|
sessionStorage[r + "mp"] = JSON.stringify(u);
|
|
17037
17029
|
const l = {};
|
|
17038
|
-
for (const f of Object.
|
|
17039
|
-
const d = c(this, ke).mark[f];
|
|
17030
|
+
for (const [f, d] of Object.entries(c(this, Xe).mark))
|
|
17040
17031
|
l[f] = d instanceof Function ? d() : d;
|
|
17041
|
-
}
|
|
17042
17032
|
sessionStorage[r + "mark"] = JSON.stringify(l);
|
|
17043
17033
|
const h = {};
|
|
17044
|
-
for (const f of Object.
|
|
17045
|
-
const d = c(this, ke).kidoku[f];
|
|
17034
|
+
for (const [f, d] of Object.entries(c(this, Xe).kidoku))
|
|
17046
17035
|
h[f] = d instanceof Function ? d() : d;
|
|
17047
|
-
}
|
|
17048
17036
|
sessionStorage[r + "kidoku"] = JSON.stringify(h), t.flush();
|
|
17049
17037
|
} : () => t.flush()), M(this, bc, (s, a) => t.callHook(s, a)), t.addHook((s, a) => {
|
|
17050
17038
|
var o, u;
|
|
17051
17039
|
return (u = (o = c(this, Dv))[s]) == null ? void 0 : u.call(o, s, a);
|
|
17052
17040
|
});
|
|
17053
17041
|
const n = this.getVal("sys:sn.tagCh.msecWait", -1);
|
|
17054
|
-
(c(this,
|
|
17042
|
+
(c(this, we)["const.sn.isFirstBoot"] || n === -1) && P(this, Gu, Tp).call(this);
|
|
17055
17043
|
});
|
|
17056
17044
|
}
|
|
17057
17045
|
updateData(t) {
|
|
17058
|
-
M(this,
|
|
17059
|
-
for (const [e, r] of Object.entries(c(this,
|
|
17046
|
+
M(this, Xe, t), M(this, Xr, c(this, tr).sys = c(this, Xe).sys), M(this, sn, {});
|
|
17047
|
+
for (const [e, r] of Object.entries(c(this, Xe).kidoku)) {
|
|
17060
17048
|
const n = new Z1();
|
|
17061
17049
|
n.hAreas = { ...r }, c(this, sn)[e] = n;
|
|
17062
17050
|
}
|
|
@@ -17068,35 +17056,35 @@ const Mu = class {
|
|
|
17068
17056
|
M(this, wc, t);
|
|
17069
17057
|
}
|
|
17070
17058
|
defTmp(t, e) {
|
|
17071
|
-
c(this,
|
|
17059
|
+
c(this, we)[t] = e;
|
|
17072
17060
|
}
|
|
17073
17061
|
cloneMp() {
|
|
17074
|
-
return { ...c(this,
|
|
17062
|
+
return { ...c(this, tr).mp };
|
|
17075
17063
|
}
|
|
17076
17064
|
setMp(t) {
|
|
17077
|
-
c(this,
|
|
17065
|
+
c(this, tr).mp = t;
|
|
17078
17066
|
}
|
|
17079
17067
|
setMark(t, e) {
|
|
17080
|
-
c(this,
|
|
17068
|
+
c(this, Xe).mark[t] = e, this.flush();
|
|
17081
17069
|
}
|
|
17082
17070
|
cloneSave() {
|
|
17083
|
-
return { ...c(this,
|
|
17071
|
+
return { ...c(this, tr).save };
|
|
17084
17072
|
}
|
|
17085
17073
|
mark2save(t) {
|
|
17086
17074
|
var e;
|
|
17087
|
-
M(this,
|
|
17075
|
+
M(this, oi, c(this, tr).save = { ...t.hSave }), M(this, Uu, (e = c(this, oi)["sn.doRecLog"]) != null ? e : !1);
|
|
17088
17076
|
}
|
|
17089
17077
|
loadScrWork(t) {
|
|
17090
17078
|
t in c(this, sn) || (c(this, sn)[t] = new Z1());
|
|
17091
17079
|
}
|
|
17092
17080
|
saveKidoku() {
|
|
17093
17081
|
for (const [t, { hAreas: e }] of Object.entries(c(this, sn)))
|
|
17094
|
-
c(this,
|
|
17082
|
+
c(this, Xe).kidoku[t] = { ...e };
|
|
17095
17083
|
this.flush();
|
|
17096
17084
|
}
|
|
17097
17085
|
setVal_Nochk(t, e, r, n = !1) {
|
|
17098
17086
|
var o, u;
|
|
17099
|
-
const s = c(this,
|
|
17087
|
+
const s = c(this, tr)[t];
|
|
17100
17088
|
n && (r = P(this, Cc, Ly).call(this, r));
|
|
17101
17089
|
const a = t + ":" + e;
|
|
17102
17090
|
if (a in c(Mu, Va)) {
|
|
@@ -17117,7 +17105,7 @@ const Mu = class {
|
|
|
17117
17105
|
}
|
|
17118
17106
|
};
|
|
17119
17107
|
let Sp = Mu;
|
|
17120
|
-
|
|
17108
|
+
tr = new WeakMap(), oi = new WeakMap(), we = new WeakMap(), Un = new WeakMap(), Xe = new WeakMap(), Xr = new WeakMap(), sn = new WeakMap(), bc = new WeakMap(), Dv = new WeakMap(), xc = new WeakSet(), ky = function(t) {
|
|
17121
17109
|
M(Mu, Va, {});
|
|
17122
17110
|
for (const e of t)
|
|
17123
17111
|
c(Mu, Va)[e.dataId] = 1;
|
|
@@ -17129,14 +17117,14 @@ We = new WeakMap(), Wr = new WeakMap(), xe = new WeakMap(), Un = new WeakMap(),
|
|
|
17129
17117
|
const e = Number(t.from), r = Number(t.to);
|
|
17130
17118
|
if (e === r)
|
|
17131
17119
|
return !1;
|
|
17132
|
-
if (!(e in c(this,
|
|
17120
|
+
if (!(e in c(this, Xe).mark))
|
|
17133
17121
|
throw `from:${e} \u306E\u30BB\u30FC\u30D6\u30C7\u30FC\u30BF\u306F\u5B58\u5728\u3057\u307E\u305B\u3093`;
|
|
17134
|
-
return this.setMark(r, { ...c(this,
|
|
17122
|
+
return this.setMark(r, { ...c(this, Xe).mark[e] }), c(this, Un).copyBMFolder(e, r), !1;
|
|
17135
17123
|
}, Av = new WeakSet(), P3 = function(t) {
|
|
17136
17124
|
const { place: e } = t;
|
|
17137
17125
|
if (!e)
|
|
17138
17126
|
throw "place\u306F\u5FC5\u9808\u3067\u3059";
|
|
17139
|
-
return delete c(this,
|
|
17127
|
+
return delete c(this, Xe).mark[e], this.flush(), c(this, Un).eraseBMFolder(e), !1;
|
|
17140
17128
|
}, ui = new WeakSet(), en = function(t) {
|
|
17141
17129
|
if (!t.name)
|
|
17142
17130
|
throw "name\u306F\u5FC5\u9808\u3067\u3059";
|
|
@@ -17150,7 +17138,7 @@ We = new WeakMap(), Wr = new WeakMap(), xe = new WeakMap(), Un = new WeakMap(),
|
|
|
17150
17138
|
t.text = String(jt(Q(t, "text", NaN)));
|
|
17151
17139
|
break;
|
|
17152
17140
|
case "uint":
|
|
17153
|
-
t.text = String(
|
|
17141
|
+
t.text = String(ei(Q(t, "text", NaN)));
|
|
17154
17142
|
break;
|
|
17155
17143
|
case "bool":
|
|
17156
17144
|
ft(t, "text", !1);
|
|
@@ -17199,15 +17187,15 @@ We = new WeakMap(), Wr = new WeakMap(), xe = new WeakMap(), Un = new WeakMap(),
|
|
|
17199
17187
|
return t.text = t.len !== "all" ? ((r = t.text) != null ? r : "").slice(e, e + jt(Q(t, "len", 1))) : ((n = t.text) != null ? n : "").slice(e), P(this, ui, en).call(this, t), !1;
|
|
17200
17188
|
}, Gu = new WeakSet(), Tp = function() {
|
|
17201
17189
|
var r, n;
|
|
17202
|
-
const t = M(this,
|
|
17190
|
+
const t = M(this, Xr, c(this, tr).sys = c(this, Xe).sys = {});
|
|
17203
17191
|
typeof process < "u" || (this.setVal_Nochk("sys", "const.sn.window.x", 0), this.setVal_Nochk("sys", "const.sn.window.y", 0)), this.setVal_Nochk("sys", "sn.tagCh.doWait", !0), this.setVal_Nochk("sys", "sn.tagCh.doWait_Kidoku", !0), this.setVal_Nochk("sys", "sn.tagCh.msecWait", this.cfg.oCfg.init.tagch_msecwait), this.setVal_Nochk("sys", "sn.tagCh.msecWait_Kidoku", this.cfg.oCfg.init.tagch_msecwait), this.setVal_Nochk("sys", "sn.tagCh.canskip", !0), this.setVal_Nochk("sys", "sn.skip.mode", "s"), this.setVal_Nochk("sys", "sn.auto.msecPageWait", Q(t, "sn.auto.msecPageWait", (r = this.cfg.oCfg.init.auto_msecpagewait) != null ? r : 3500)), this.setVal_Nochk("sys", "sn.auto.msecPageWait_Kidoku", Q(t, "sn.auto.msecPageWait", (n = this.cfg.oCfg.init.auto_msecpagewait) != null ? n : 3500)), this.setVal_Nochk("sys", "sn.auto.msecLineWait", 500), this.setVal_Nochk("sys", "sn.auto.msecLineWait_Kidoku", 500), this.setVal_Nochk("sys", "const.sn.sound.BGM.volume", 1), this.setVal_Nochk("sys", "const.sn.sound.SE.volume", 1), this.setVal_Nochk("sys", "const.sn.sound.SYS.volume", 1);
|
|
17204
|
-
for (const [s, a] of Object.entries(c(this,
|
|
17192
|
+
for (const [s, a] of Object.entries(c(this, Xe).kidoku))
|
|
17205
17193
|
a.hAreas = {}, c(this, sn)[s].clear();
|
|
17206
|
-
return this.setVal_Nochk("sys", "TextLayer.Back.Alpha", 0.5), c(this,
|
|
17194
|
+
return this.setVal_Nochk("sys", "TextLayer.Back.Alpha", 0.5), c(this, tr).mark = c(this, Xe).mark = {}, this.setVal_Nochk("sys", "const.sn.save.place", 1), this.flush(), !1;
|
|
17207
17195
|
}, Sc = new WeakSet(), Ny = function() {
|
|
17208
17196
|
var n, s, a;
|
|
17209
|
-
const t = (n = c(this,
|
|
17210
|
-
return M(this,
|
|
17197
|
+
const t = (n = c(this, oi)["const.sn.mesLayer"]) != null ? n : "", e = (s = c(this, oi)["sn.doRecLog"]) != null ? s : !1, r = (a = c(this, oi)["const.sn.sLog"]) != null ? a : "[]";
|
|
17198
|
+
return M(this, oi, c(this, tr).save = {}), this.setVal_Nochk("save", "const.sn.mesLayer", t), this.setVal_Nochk("save", "sn.doRecLog", e), this.setVal_Nochk("save", "const.sn.sLog", r), !1;
|
|
17211
17199
|
}, Tc = new WeakMap(), Va = new WeakMap(), Cc = new WeakSet(), Ly = function(t) {
|
|
17212
17200
|
const e = t;
|
|
17213
17201
|
if (e === "true")
|
|
@@ -17219,29 +17207,29 @@ We = new WeakMap(), Wr = new WeakMap(), xe = new WeakMap(), Un = new WeakMap(),
|
|
|
17219
17207
|
if (e !== "undefined")
|
|
17220
17208
|
return c(this, zv).test(e) ? parseFloat(e) : t;
|
|
17221
17209
|
}, zv = new WeakMap(), Hv = new WeakMap(), Uu = new WeakMap(), Mc = new WeakMap(), ju = new WeakSet(), Cp = function(t) {
|
|
17222
|
-
ft(c(this,
|
|
17210
|
+
ft(c(this, Xr), t, !0);
|
|
17223
17211
|
}, $v = new WeakSet(), N3 = function(t) {
|
|
17224
|
-
Q(c(this,
|
|
17212
|
+
Q(c(this, Xr), t, 10), c(this, Xr)["sn.tagCh.doWait"];
|
|
17225
17213
|
}, Vv = new WeakSet(), L3 = function(t) {
|
|
17226
17214
|
Q(
|
|
17227
|
-
c(this,
|
|
17215
|
+
c(this, Xr),
|
|
17228
17216
|
t,
|
|
17229
17217
|
this.cfg.oCfg.init.tagch_msecwait === void 0 ? 10 : this.cfg.oCfg.init.tagch_msecwait
|
|
17230
|
-
), c(this,
|
|
17218
|
+
), c(this, Xr)["sn.tagCh.doWait_Kidoku"];
|
|
17231
17219
|
}, Pc = new WeakSet(), Gy = function(t) {
|
|
17232
17220
|
Q(
|
|
17233
|
-
c(this,
|
|
17221
|
+
c(this, Xr),
|
|
17234
17222
|
t,
|
|
17235
17223
|
this.cfg.oCfg.init.auto_msecpagewait === void 0 ? 3500 : this.cfg.oCfg.init.auto_msecpagewait
|
|
17236
17224
|
);
|
|
17237
17225
|
}, Oc = new WeakSet(), Uy = function(t) {
|
|
17238
|
-
Q(c(this,
|
|
17226
|
+
Q(c(this, Xr), t, 500);
|
|
17239
17227
|
}, Xv = new WeakSet(), G3 = function(t) {
|
|
17240
|
-
return ft(c(this,
|
|
17228
|
+
return ft(c(this, oi), t, !0);
|
|
17241
17229
|
}, Wv = new WeakSet(), U3 = function(t) {
|
|
17242
|
-
ft(c(this,
|
|
17230
|
+
ft(c(this, we), t, !0);
|
|
17243
17231
|
}, zu = new WeakSet(), Mp = function(t) {
|
|
17244
|
-
ft(c(this,
|
|
17232
|
+
ft(c(this, we), t, !1);
|
|
17245
17233
|
}, E(Sp, Va, {});
|
|
17246
17234
|
var Zt = {
|
|
17247
17235
|
Linear: {
|
|
@@ -17634,7 +17622,7 @@ var $3 = function(i, t) {
|
|
|
17634
17622
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
17635
17623
|
})(i, t);
|
|
17636
17624
|
};
|
|
17637
|
-
function
|
|
17625
|
+
function Qr(i, t) {
|
|
17638
17626
|
if (typeof t != "function" && t !== null)
|
|
17639
17627
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
17640
17628
|
function e() {
|
|
@@ -17699,7 +17687,7 @@ var jy = function() {
|
|
|
17699
17687
|
var r = i.call(this) || this;
|
|
17700
17688
|
return r.id = yF++, r.init(e), r;
|
|
17701
17689
|
}
|
|
17702
|
-
return
|
|
17690
|
+
return Qr(t, i), t.prototype.set = function(e, r) {
|
|
17703
17691
|
if (this[e] === void 0)
|
|
17704
17692
|
throw new Error("Property with name ".concat(e, " does not exist."));
|
|
17705
17693
|
switch (e) {
|
|
@@ -17767,14 +17755,14 @@ var jy = function() {
|
|
|
17767
17755
|
}, t.prototype.play = function(e) {
|
|
17768
17756
|
var r = this, n = e.start, s = e.end, a = e.speed, o = e.loop, u = e.volume, l = e.muted;
|
|
17769
17757
|
this._speed = a, this._volume = u, this._loop = !!o, this._muted = l, this.refresh(), this.loop && s !== null && (this.loop = !1), this._start = n, this._end = s || this._duration, this._start = Math.max(0, this._start - t.PADDING), this._end = Math.min(this._end + t.PADDING, this._duration), this._source.onloadedmetadata = function() {
|
|
17770
|
-
r._source && (r._source.currentTime = n, r._source.onloadedmetadata = null, r.emit("progress", n, r._duration),
|
|
17758
|
+
r._source && (r._source.currentTime = n, r._source.onloadedmetadata = null, r.emit("progress", n, r._duration), Ne.shared.add(r._onUpdate, r));
|
|
17771
17759
|
}, this._source.onended = this._onComplete.bind(this), this._source.play(), this.emit("start");
|
|
17772
17760
|
}, t.prototype._onUpdate = function() {
|
|
17773
17761
|
this.emit("progress", this.progress, this._duration), this._source.currentTime >= this._end && !this._source.loop && this._onComplete();
|
|
17774
17762
|
}, t.prototype._onComplete = function() {
|
|
17775
|
-
|
|
17763
|
+
Ne.shared.remove(this._onUpdate, this), this._internalStop(), this.emit("progress", 1, this._duration), this.emit("end", this);
|
|
17776
17764
|
}, t.prototype.destroy = function() {
|
|
17777
|
-
|
|
17765
|
+
Ne.shared.remove(this._onUpdate, this), this.removeAllListeners();
|
|
17778
17766
|
var e = this._source;
|
|
17779
17767
|
e && (e.onended = null, e.onplay = null, e.onpause = null, this._internalStop()), this._source = null, this._speed = 1, this._volume = 1, this._loop = !1, this._end = null, this._start = 0, this._duration = 0, this._playing = !1, this._pausedReal = !1, this._paused = !1, this._muted = !1, this._media && (this._media.context.off("refresh", this.refresh, this), this._media.context.off("refreshPaused", this.refreshPaused, this), this._media = null);
|
|
17780
17768
|
}, t.prototype.toString = function() {
|
|
@@ -17784,7 +17772,7 @@ var jy = function() {
|
|
|
17784
17772
|
function t() {
|
|
17785
17773
|
return i !== null && i.apply(this, arguments) || this;
|
|
17786
17774
|
}
|
|
17787
|
-
return
|
|
17775
|
+
return Qr(t, i), t.prototype.init = function(e) {
|
|
17788
17776
|
this.parent = e, this._source = e.options.source || new Audio(), e.url && (this._source.src = e.url);
|
|
17789
17777
|
}, t.prototype.create = function() {
|
|
17790
17778
|
return new _F(this);
|
|
@@ -17839,7 +17827,7 @@ var jy = function() {
|
|
|
17839
17827
|
}, i.prototype.destroy = function() {
|
|
17840
17828
|
this.parent = null;
|
|
17841
17829
|
}, i;
|
|
17842
|
-
}(),
|
|
17830
|
+
}(), ai = function() {
|
|
17843
17831
|
function i() {
|
|
17844
17832
|
}
|
|
17845
17833
|
return i.setParamValue = function(t, e) {
|
|
@@ -17855,7 +17843,7 @@ var jy = function() {
|
|
|
17855
17843
|
var r = i.call(this) || this;
|
|
17856
17844
|
return r.id = EF++, r._media = null, r._paused = !1, r._muted = !1, r._elapsed = 0, r.init(e), r;
|
|
17857
17845
|
}
|
|
17858
|
-
return
|
|
17846
|
+
return Qr(t, i), t.prototype.set = function(e, r) {
|
|
17859
17847
|
if (this[e] === void 0)
|
|
17860
17848
|
throw new Error("Property with name ".concat(e, " does not exist."));
|
|
17861
17849
|
switch (e) {
|
|
@@ -17907,7 +17895,7 @@ var jy = function() {
|
|
|
17907
17895
|
var e = this._media.context, r = this._media.parent;
|
|
17908
17896
|
this._source.loop = this._loop || r.loop;
|
|
17909
17897
|
var n = e.volume * (e.muted ? 0 : 1), s = r.volume * (r.muted ? 0 : 1), a = this._volume * (this._muted ? 0 : 1);
|
|
17910
|
-
|
|
17898
|
+
ai.setParamValue(this._gain.gain, a * s * n), ai.setParamValue(this._source.playbackRate, this._speed * r.speed * e.speed), this.applyFilters();
|
|
17911
17899
|
}
|
|
17912
17900
|
}, t.prototype.applyFilters = function() {
|
|
17913
17901
|
var e;
|
|
@@ -17929,7 +17917,7 @@ var jy = function() {
|
|
|
17929
17917
|
var p = this._source.buffer.duration;
|
|
17930
17918
|
this._duration = p, this._end = n, this._lastUpdate = this._now(), this._elapsed = r, this._source.onended = this._onComplete.bind(this), this._loop ? (this._source.loopEnd = n, this._source.loopStart = r, this._source.start(0, r)) : n ? this._source.start(0, r, n - r) : this._source.start(0, r), this.emit("start"), this._update(!0), this.enableTicker(!0);
|
|
17931
17919
|
}, t.prototype.enableTicker = function(e) {
|
|
17932
|
-
|
|
17920
|
+
Ne.shared.remove(this._updateListener, this), e && Ne.shared.add(this._updateListener, this);
|
|
17933
17921
|
}, Object.defineProperty(t.prototype, "progress", { get: function() {
|
|
17934
17922
|
return this._progress;
|
|
17935
17923
|
}, enumerable: !1, configurable: !0 }), Object.defineProperty(t.prototype, "paused", { get: function() {
|
|
@@ -18010,13 +17998,13 @@ var jy = function() {
|
|
|
18010
17998
|
var r = this, n = e.audioContext, s = n.createBufferSource(), a = n.createGain(), o = n.createAnalyser();
|
|
18011
17999
|
return s.connect(o), o.connect(a), a.connect(e.destination), (r = i.call(this, o, a) || this).context = e, r.bufferSource = s, r.gain = a, r.analyser = o, r;
|
|
18012
18000
|
}
|
|
18013
|
-
return
|
|
18001
|
+
return Qr(t, i), Object.defineProperty(t.prototype, "script", { get: function() {
|
|
18014
18002
|
return this._script || (this._script = this.context.audioContext.createScriptProcessor(t.BUFFER_SIZE), this._script.connect(this.context.destination)), this._script;
|
|
18015
18003
|
}, enumerable: !1, configurable: !0 }), t.prototype.destroy = function() {
|
|
18016
18004
|
i.prototype.destroy.call(this), this.bufferSource.disconnect(), this._script && this._script.disconnect(), this.gain.disconnect(), this.analyser.disconnect(), this.bufferSource = null, this._script = null, this.gain = null, this.analyser = null, this.context = null;
|
|
18017
18005
|
}, t.prototype.cloneBufferSource = function() {
|
|
18018
18006
|
var e = this.bufferSource, r = this.context.audioContext.createBufferSource();
|
|
18019
|
-
r.buffer = e.buffer,
|
|
18007
|
+
r.buffer = e.buffer, ai.setParamValue(r.playbackRate, e.playbackRate.value), r.loop = e.loop;
|
|
18020
18008
|
var n = this.context.audioContext.createGain();
|
|
18021
18009
|
return r.connect(n), n.connect(this.destination), { source: r, gain: n };
|
|
18022
18010
|
}, Object.defineProperty(t.prototype, "bufferSize", { get: function() {
|
|
@@ -18198,7 +18186,7 @@ var jy = function() {
|
|
|
18198
18186
|
var e = i !== null && i.apply(this, arguments) || this;
|
|
18199
18187
|
return e.speed = 1, e.muted = !1, e.volume = 1, e.paused = !1, e;
|
|
18200
18188
|
}
|
|
18201
|
-
return
|
|
18189
|
+
return Qr(t, i), t.prototype.refresh = function() {
|
|
18202
18190
|
this.emit("refresh");
|
|
18203
18191
|
}, t.prototype.refreshPaused = function() {
|
|
18204
18192
|
this.emit("refreshPaused");
|
|
@@ -18219,7 +18207,7 @@ var jy = function() {
|
|
|
18219
18207
|
var e = this, r = window, n = new t.AudioContext(), s = n.createDynamicsCompressor(), a = n.createAnalyser();
|
|
18220
18208
|
return a.connect(s), s.connect(n.destination), (e = i.call(this, a, s) || this)._ctx = n, e._offlineCtx = new t.OfflineAudioContext(1, 2, r.OfflineAudioContext ? Math.max(8e3, Math.min(96e3, n.sampleRate)) : 44100), e._unlocked = !1, e.compressor = s, e.analyser = a, e.events = new wi(), e.volume = 1, e.speed = 1, e.muted = !1, e.paused = !1, n.state !== "running" && (e._unlock(), e._unlock = e._unlock.bind(e), document.addEventListener("mousedown", e._unlock, !0), document.addEventListener("touchstart", e._unlock, !0), document.addEventListener("touchend", e._unlock, !0)), e;
|
|
18221
18209
|
}
|
|
18222
|
-
return
|
|
18210
|
+
return Qr(t, i), t.prototype._unlock = function() {
|
|
18223
18211
|
this._unlocked || (this.playEmptySound(), this._ctx.state === "running" && (document.removeEventListener("mousedown", this._unlock, !0), document.removeEventListener("touchend", this._unlock, !0), document.removeEventListener("touchstart", this._unlock, !0), this._unlocked = !0));
|
|
18224
18212
|
}, t.prototype.playEmptySound = function() {
|
|
18225
18213
|
var e = this._ctx.createBufferSource();
|
|
@@ -18365,7 +18353,7 @@ var jy = function() {
|
|
|
18365
18353
|
if (!Oe().useLegacy) {
|
|
18366
18354
|
var p = [{ f: t.F32, type: "lowshelf", gain: e }, { f: t.F64, type: "peaking", gain: r }, { f: t.F125, type: "peaking", gain: n }, { f: t.F250, type: "peaking", gain: s }, { f: t.F500, type: "peaking", gain: a }, { f: t.F1K, type: "peaking", gain: o }, { f: t.F2K, type: "peaking", gain: u }, { f: t.F4K, type: "peaking", gain: l }, { f: t.F8K, type: "peaking", gain: h }, { f: t.F16K, type: "highshelf", gain: f }].map(function(m) {
|
|
18367
18355
|
var y = Oe().context.audioContext.createBiquadFilter();
|
|
18368
|
-
return y.type = m.type,
|
|
18356
|
+
return y.type = m.type, ai.setParamValue(y.Q, 1), y.frequency.value = m.f, ai.setParamValue(y.gain, m.gain), y;
|
|
18369
18357
|
});
|
|
18370
18358
|
(d = i.call(this, p[0], p[p.length - 1]) || this).bands = p, d.bandsMap = {};
|
|
18371
18359
|
for (var v = 0; v < d.bands.length; v++) {
|
|
@@ -18376,10 +18364,10 @@ var jy = function() {
|
|
|
18376
18364
|
}
|
|
18377
18365
|
d = i.call(this, null) || this;
|
|
18378
18366
|
}
|
|
18379
|
-
return
|
|
18367
|
+
return Qr(t, i), t.prototype.setGain = function(e, r) {
|
|
18380
18368
|
if (r === void 0 && (r = 0), !this.bandsMap[e])
|
|
18381
18369
|
throw new Error("No band found for frequency ".concat(e));
|
|
18382
|
-
|
|
18370
|
+
ai.setParamValue(this.bandsMap[e].gain, r);
|
|
18383
18371
|
}, t.prototype.getGain = function(e) {
|
|
18384
18372
|
if (!this.bandsMap[e])
|
|
18385
18373
|
throw new Error("No band found for frequency ".concat(e));
|
|
@@ -18426,7 +18414,7 @@ var jy = function() {
|
|
|
18426
18414
|
this.setGain(t.F16K, e);
|
|
18427
18415
|
}, enumerable: !1, configurable: !0 }), t.prototype.reset = function() {
|
|
18428
18416
|
this.bands.forEach(function(e) {
|
|
18429
|
-
|
|
18417
|
+
ai.setParamValue(e.gain, 0);
|
|
18430
18418
|
});
|
|
18431
18419
|
}, t.prototype.destroy = function() {
|
|
18432
18420
|
this.bands.forEach(function(e) {
|
|
@@ -18443,7 +18431,7 @@ var jy = function() {
|
|
|
18443
18431
|
}
|
|
18444
18432
|
r = i.call(this, null) || this;
|
|
18445
18433
|
}
|
|
18446
|
-
return
|
|
18434
|
+
return Qr(t, i), Object.defineProperty(t.prototype, "amount", { get: function() {
|
|
18447
18435
|
return this._amount;
|
|
18448
18436
|
}, set: function(e) {
|
|
18449
18437
|
this._amount = e;
|
|
@@ -18463,10 +18451,10 @@ var jy = function() {
|
|
|
18463
18451
|
}
|
|
18464
18452
|
r = i.call(this, null) || this;
|
|
18465
18453
|
}
|
|
18466
|
-
return
|
|
18454
|
+
return Qr(t, i), Object.defineProperty(t.prototype, "pan", { get: function() {
|
|
18467
18455
|
return this._pan;
|
|
18468
18456
|
}, set: function(e) {
|
|
18469
|
-
this._pan = e, this._stereo ?
|
|
18457
|
+
this._pan = e, this._stereo ? ai.setParamValue(this._stereo.pan, e) : this._panner.setPosition(e, 0, 1 - Math.abs(e));
|
|
18470
18458
|
}, enumerable: !1, configurable: !0 }), t.prototype.destroy = function() {
|
|
18471
18459
|
i.prototype.destroy.call(this), this._stereo = null, this._panner = null;
|
|
18472
18460
|
}, t;
|
|
@@ -18478,7 +18466,7 @@ var jy = function() {
|
|
|
18478
18466
|
return (s = i.call(this, null) || this)._seconds = s._clamp(e, 1, 50), s._decay = s._clamp(r, 0, 100), s._reverse = n, s._rebuild(), s;
|
|
18479
18467
|
s = i.call(this, null) || this;
|
|
18480
18468
|
}
|
|
18481
|
-
return
|
|
18469
|
+
return Qr(t, i), t.prototype._clamp = function(e, r, n) {
|
|
18482
18470
|
return Math.min(n, Math.max(r, e));
|
|
18483
18471
|
}, Object.defineProperty(t.prototype, "seconds", { get: function() {
|
|
18484
18472
|
return this._seconds;
|
|
@@ -18507,7 +18495,7 @@ var jy = function() {
|
|
|
18507
18495
|
}
|
|
18508
18496
|
e = i.call(this, null) || this;
|
|
18509
18497
|
}
|
|
18510
|
-
return
|
|
18498
|
+
return Qr(t, i), t.prototype.destroy = function() {
|
|
18511
18499
|
this._merger.disconnect(), this._merger = null, i.prototype.destroy.call(this);
|
|
18512
18500
|
}, t;
|
|
18513
18501
|
}(Es), StreamFilter: function(i) {
|
|
@@ -18519,7 +18507,7 @@ var jy = function() {
|
|
|
18519
18507
|
}
|
|
18520
18508
|
e = i.call(this, null) || this;
|
|
18521
18509
|
}
|
|
18522
|
-
return
|
|
18510
|
+
return Qr(t, i), Object.defineProperty(t.prototype, "stream", { get: function() {
|
|
18523
18511
|
return this._stream;
|
|
18524
18512
|
}, enumerable: !1, configurable: !0 }), t.prototype.destroy = function() {
|
|
18525
18513
|
this._stream = null, i.prototype.destroy.call(this);
|
|
@@ -18528,11 +18516,11 @@ var jy = function() {
|
|
|
18528
18516
|
function t() {
|
|
18529
18517
|
if (!Oe().useLegacy) {
|
|
18530
18518
|
var e = Oe().context.audioContext, r = e.createBiquadFilter(), n = e.createBiquadFilter(), s = e.createBiquadFilter(), a = e.createBiquadFilter();
|
|
18531
|
-
return r.type = "lowpass",
|
|
18519
|
+
return r.type = "lowpass", ai.setParamValue(r.frequency, 2e3), n.type = "lowpass", ai.setParamValue(n.frequency, 2e3), s.type = "highpass", ai.setParamValue(s.frequency, 500), a.type = "highpass", ai.setParamValue(a.frequency, 500), r.connect(n), n.connect(s), s.connect(a), i.call(this, r, a) || this;
|
|
18532
18520
|
}
|
|
18533
18521
|
i.call(this, null);
|
|
18534
18522
|
}
|
|
18535
|
-
return
|
|
18523
|
+
return Qr(t, i), t;
|
|
18536
18524
|
}(Es) }, J1 = 0, MF = { __proto__: null, playOnce: function(i, t) {
|
|
18537
18525
|
var e = "alias".concat(J1++);
|
|
18538
18526
|
return Oe().add(e, { url: i, preload: !0, autoPlay: !0, loaded: function(r) {
|
|
@@ -18571,7 +18559,7 @@ var jy = function() {
|
|
|
18571
18559
|
}, validateFormats: V3, supported: Hb, extensions: uv }, ws = function(i) {
|
|
18572
18560
|
return H3 = i, i;
|
|
18573
18561
|
}(new CF());
|
|
18574
|
-
"extensions" in JD ? tn.add(jy) :
|
|
18562
|
+
"extensions" in JD ? tn.add(jy) : ti.registerPlugin(jy);
|
|
18575
18563
|
var Ce, hr, Ls, qv, W3, Hu, Op, Zv, Y3, Kv, q3, Dc, Hy, Xa, Eh, Rc, $y, $u, Vu, Ip, Wa, wh, Ac, Xu, Dp, Jv, Z3, an, Ms, Qv, K3, Fc, Vy, Ya, Sh, t0, J3, Bc, Xy, e0, Q3, r0, tS, Wu, Rp;
|
|
18576
18564
|
const Vh = class {
|
|
18577
18565
|
constructor(t, e, r, n, s) {
|
|
@@ -18661,19 +18649,19 @@ Ce = new WeakMap(), hr = new WeakMap(), Ls = new WeakMap(), qv = new WeakSet(),
|
|
|
18661
18649
|
const { buf: e = "SE" } = t, r = c(this, Ce)[e];
|
|
18662
18650
|
if (!(r != null && r.playing()) || !r.snd)
|
|
18663
18651
|
return !1;
|
|
18664
|
-
const n = "const.sn.sound." + e + ".
|
|
18665
|
-
this.val.setVal_Nochk("save",
|
|
18666
|
-
const
|
|
18667
|
-
|
|
18668
|
-
const
|
|
18669
|
-
if (
|
|
18670
|
-
return r.snd.volume =
|
|
18671
|
-
const
|
|
18672
|
-
return r.twFade = new bn({ v: r.snd.volume }).to({ v:
|
|
18673
|
-
r.playing() && (r.snd.volume =
|
|
18652
|
+
const n = "const.sn.sound." + e + ".", s = n + "volume", a = P(this, Hu, Op).call(this, t, NaN);
|
|
18653
|
+
this.val.setVal_Nochk("save", s, a);
|
|
18654
|
+
const o = a * Number(this.val.getVal("sys:" + s, 1)), u = ft(t, "stop", a === 0);
|
|
18655
|
+
u && (P(this, Wu, Rp).call(this, e), this.val.setVal_Nochk("save", n + "fn", "")), this.val.flush();
|
|
18656
|
+
const l = Q(t, "time", NaN), h = Q(t, "delay", 0);
|
|
18657
|
+
if (l === 0 && h === 0 || this.val.getVal("tmp:sn.skip.enabled") || c(this, Ls).isSkippingByKeyDown())
|
|
18658
|
+
return r.snd.volume = o, u && P(this, an, Ms).call(this, t), !1;
|
|
18659
|
+
const f = Q(t, "repeat", 1);
|
|
18660
|
+
return r.twFade = new bn({ v: r.snd.volume }).to({ v: o }, l).delay(h).easing(vs.ease(t.ease)).repeat(f === 0 ? 1 / 0 : f - 1).yoyo(ft(t, "yoyo", !1)).onUpdate((d) => {
|
|
18661
|
+
r.playing() && (r.snd.volume = d.v);
|
|
18674
18662
|
}).onComplete(() => {
|
|
18675
|
-
const
|
|
18676
|
-
!(
|
|
18663
|
+
const d = c(this, Ce)[t.buf = r.now_buf];
|
|
18664
|
+
!(d != null && d.twFade) || (delete d.twFade, u && P(this, an, Ms).call(this, t), d.resumeFade && this.main.resume());
|
|
18677
18665
|
}).start(), !1;
|
|
18678
18666
|
}, Rc = new WeakSet(), $y = function(t) {
|
|
18679
18667
|
return t.buf = "BGM", t.canskip = !1, ft(t, "loop", !0), P(this, Vu, Ip).call(this, t);
|
|
@@ -18713,10 +18701,16 @@ Ce = new WeakMap(), hr = new WeakMap(), Ls = new WeakMap(), qv = new WeakSet(),
|
|
|
18713
18701
|
pan: f,
|
|
18714
18702
|
playing: () => !0,
|
|
18715
18703
|
onend: () => {
|
|
18716
|
-
const _ = c(this, Ce)[
|
|
18717
|
-
|
|
18704
|
+
const _ = p.now_buf, b = c(this, Ce)[_];
|
|
18705
|
+
if (!b)
|
|
18706
|
+
return;
|
|
18707
|
+
delete c(this, Ce)[_], b.playing = () => !1;
|
|
18708
|
+
const x = "const.sn.sound." + _ + ".";
|
|
18709
|
+
this.val.setVal_Nochk("tmp", x + "playing", !1), t.buf = _, P(this, Ya, Sh).call(this, t), b.resume && this.main.resume();
|
|
18718
18710
|
}
|
|
18719
|
-
}
|
|
18711
|
+
};
|
|
18712
|
+
this.val.setVal_Nochk("tmp", s + "playing", !0);
|
|
18713
|
+
const v = {
|
|
18720
18714
|
loop: n,
|
|
18721
18715
|
volume: o,
|
|
18722
18716
|
loaded: (_, b) => {
|
|
@@ -18818,7 +18812,7 @@ Ce = new WeakMap(), hr = new WeakMap(), Ls = new WeakMap(), qv = new WeakSet(),
|
|
|
18818
18812
|
r.loop || ws.add(e, s);
|
|
18819
18813
|
return;
|
|
18820
18814
|
}
|
|
18821
|
-
new
|
|
18815
|
+
new ti().add({ name: e, url: n, xhrType: Nt.XHR_RESPONSE_TYPE.BUFFER }).use((s, a) => {
|
|
18822
18816
|
this.sys.dec(s.extension, s.data).then((o) => {
|
|
18823
18817
|
s.data = o, a == null || a();
|
|
18824
18818
|
}).catch((o) => this.main.errScript(`Sound \u30ED\u30FC\u30C9\u5931\u6557\u3067\u3059 fn:${s.name} ${o}`, !1));
|
|
@@ -18878,8 +18872,8 @@ Ce = new WeakMap(), hr = new WeakMap(), Ls = new WeakMap(), qv = new WeakSet(),
|
|
|
18878
18872
|
n && (n.now_buf = r);
|
|
18879
18873
|
const s = c(this, Ce)[r];
|
|
18880
18874
|
s && (s.now_buf = e), [c(this, Ce)[e], c(this, Ce)[r]] = [s, n];
|
|
18881
|
-
const a = "const.sn.sound." + e + ".", o = Number(this.val.getVal("save:" + a + "volume")), u = Number(this.val.getVal("save:" + a + "fn")), l = "const.sn.sound." + r + ".",
|
|
18882
|
-
return this.val.setVal_Nochk("save", a + "volume",
|
|
18875
|
+
const a = "const.sn.sound." + e + ".", o = Number(this.val.getVal("save:" + a + "volume")), u = Number(this.val.getVal("save:" + a + "fn")), l = String(this.val.getVal("tmp:" + a + "playing")) === "true", h = "const.sn.sound." + r + ".", f = Number(this.val.getVal("save:" + h + "volume")), d = Number(this.val.getVal("save:" + h + "fn")), p = String(this.val.getVal("tmp:" + h + "playing")) === "true";
|
|
18876
|
+
return this.val.setVal_Nochk("save", a + "volume", f), this.val.setVal_Nochk("save", h + "volume", o), this.val.setVal_Nochk("save", a + "fn", d), this.val.setVal_Nochk("save", h + "fn", u), this.val.setVal_Nochk("tmp", a + "playing", p), this.val.setVal_Nochk("tmp", h + "playing", l), e in c(this, hr) == r in c(this, hr) && (e in c(this, hr) ? (delete c(this, hr)[e], c(this, hr)[r] = 0) : (delete c(this, hr)[r], c(this, hr)[e] = 0), this.val.setVal_Nochk("save", "const.sn.loopPlaying", JSON.stringify(c(this, hr)))), this.val.flush(), !1;
|
|
18883
18877
|
}, r0 = new WeakSet(), tS = function(t, e) {
|
|
18884
18878
|
if (!e) {
|
|
18885
18879
|
P(this, Wu, Rp).call(this, t);
|
|
@@ -18932,7 +18926,7 @@ const Ps = class {
|
|
|
18932
18926
|
constructor() {
|
|
18933
18927
|
Z(this, "layname", "");
|
|
18934
18928
|
Z(this, "name_", "");
|
|
18935
|
-
Z(this, "spLay", new
|
|
18929
|
+
Z(this, "spLay", new ze(St.EMPTY));
|
|
18936
18930
|
}
|
|
18937
18931
|
set name(t) {
|
|
18938
18932
|
this.name_ = t;
|
|
@@ -18998,9 +18992,9 @@ const Ps = class {
|
|
|
18998
18992
|
if (!r)
|
|
18999
18993
|
return;
|
|
19000
18994
|
const n = Ps.getBlendmodeNum(r);
|
|
19001
|
-
t instanceof
|
|
18995
|
+
t instanceof ze && (t.blendMode = n);
|
|
19002
18996
|
for (const s of t.children)
|
|
19003
|
-
s instanceof
|
|
18997
|
+
s instanceof ze && (s.blendMode = n);
|
|
19004
18998
|
}
|
|
19005
18999
|
static getBlendmodeNum(t) {
|
|
19006
19000
|
if (!t)
|
|
@@ -19272,7 +19266,7 @@ var NF = /* @__PURE__ */ function() {
|
|
|
19272
19266
|
}, {
|
|
19273
19267
|
open: "\\'",
|
|
19274
19268
|
close: "\\'"
|
|
19275
|
-
}],
|
|
19269
|
+
}], Ke = 1e-7, Jd = {
|
|
19276
19270
|
cm: function(i) {
|
|
19277
19271
|
return i * 96 / 2.54;
|
|
19278
19272
|
},
|
|
@@ -19516,9 +19510,9 @@ function Yy(i, t, e) {
|
|
|
19516
19510
|
return Math.max(t, Math.min(i, e));
|
|
19517
19511
|
}
|
|
19518
19512
|
function tE(i, t, e, r) {
|
|
19519
|
-
return r === void 0 && (r = i[0] / i[1]), [[Yt(t[0],
|
|
19513
|
+
return r === void 0 && (r = i[0] / i[1]), [[Yt(t[0], Ke), Yt(t[0] / r, Ke)], [Yt(t[1] * r, Ke), Yt(t[1], Ke)]].filter(function(n) {
|
|
19520
19514
|
return n.every(function(s, a) {
|
|
19521
|
-
var o = t[a], u = Yt(o,
|
|
19515
|
+
var o = t[a], u = Yt(o, Ke);
|
|
19522
19516
|
return e ? s <= o || s <= u : s >= o || s >= u;
|
|
19523
19517
|
});
|
|
19524
19518
|
})[0] || i;
|
|
@@ -19541,7 +19535,7 @@ function qy(i) {
|
|
|
19541
19535
|
e += i[r];
|
|
19542
19536
|
return t ? e / t : 0;
|
|
19543
19537
|
}
|
|
19544
|
-
function
|
|
19538
|
+
function Ue(i, t) {
|
|
19545
19539
|
var e = t[0] - i[0], r = t[1] - i[1], n = Math.atan2(r, e);
|
|
19546
19540
|
return n >= 0 ? n : n + Math.PI * 2;
|
|
19547
19541
|
}
|
|
@@ -19553,7 +19547,7 @@ function ZF(i) {
|
|
|
19553
19547
|
});
|
|
19554
19548
|
}
|
|
19555
19549
|
function Zy(i) {
|
|
19556
|
-
var t = ZF(i), e =
|
|
19550
|
+
var t = ZF(i), e = Ue(t, i[0]), r = Ue(t, i[1]);
|
|
19557
19551
|
return e < r && r - e < Math.PI || e > r && r - e < -Math.PI ? 1 : -1;
|
|
19558
19552
|
}
|
|
19559
19553
|
function Wi(i, t) {
|
|
@@ -19584,7 +19578,7 @@ function lS(i, t) {
|
|
|
19584
19578
|
i.className = i.className.replace(e, " ");
|
|
19585
19579
|
}
|
|
19586
19580
|
}
|
|
19587
|
-
function
|
|
19581
|
+
function Hr(i, t, e, r) {
|
|
19588
19582
|
i.addEventListener(t, e, r);
|
|
19589
19583
|
}
|
|
19590
19584
|
function Pr(i, t, e, r) {
|
|
@@ -20299,19 +20293,19 @@ function In(i, t) {
|
|
|
20299
20293
|
t === void 0 && (t = Math.sqrt(i.length));
|
|
20300
20294
|
for (var e = i.slice(), r = Ae(t), n = 0; n < t; ++n) {
|
|
20301
20295
|
var s = t * n + n;
|
|
20302
|
-
if (!Yt(e[s],
|
|
20296
|
+
if (!Yt(e[s], Ke)) {
|
|
20303
20297
|
for (var a = n + 1; a < t; ++a)
|
|
20304
20298
|
if (e[t * n + a]) {
|
|
20305
20299
|
mB(e, r, n, a, t);
|
|
20306
20300
|
break;
|
|
20307
20301
|
}
|
|
20308
20302
|
}
|
|
20309
|
-
if (!Yt(e[s],
|
|
20303
|
+
if (!Yt(e[s], Ke))
|
|
20310
20304
|
return [];
|
|
20311
20305
|
yB(e, r, n, t, e[s]);
|
|
20312
20306
|
for (var a = 0; a < t; ++a) {
|
|
20313
20307
|
var o = a, u = a + n * t, l = e[u];
|
|
20314
|
-
!Yt(l,
|
|
20308
|
+
!Yt(l, Ke) || n === a || gB(e, r, o, n, t, -l);
|
|
20315
20309
|
}
|
|
20316
20310
|
}
|
|
20317
20311
|
return r;
|
|
@@ -20583,16 +20577,16 @@ function IB() {
|
|
|
20583
20577
|
r[n] = s[a];
|
|
20584
20578
|
return r;
|
|
20585
20579
|
}
|
|
20586
|
-
function
|
|
20587
|
-
return Yt(i,
|
|
20580
|
+
function kr(i) {
|
|
20581
|
+
return Yt(i, Ke);
|
|
20588
20582
|
}
|
|
20589
20583
|
function DB(i, t) {
|
|
20590
20584
|
return i.every(function(e, r) {
|
|
20591
|
-
return
|
|
20585
|
+
return kr(e - t[r]) === 0;
|
|
20592
20586
|
});
|
|
20593
20587
|
}
|
|
20594
20588
|
function RB(i, t) {
|
|
20595
|
-
return !
|
|
20589
|
+
return !kr(i[0] - t[0]) && !kr(i[1] - t[1]);
|
|
20596
20590
|
}
|
|
20597
20591
|
function MS(i) {
|
|
20598
20592
|
return i.length < 3 ? 0 : Math.abs(qF(i.map(function(t, e) {
|
|
@@ -20638,7 +20632,7 @@ function n_(i, t, e) {
|
|
|
20638
20632
|
pos: _,
|
|
20639
20633
|
line: v,
|
|
20640
20634
|
type: "point"
|
|
20641
|
-
}) :
|
|
20635
|
+
}) : kr(m[1] - n) !== 0 && f.push({
|
|
20642
20636
|
pos: _,
|
|
20643
20637
|
line: v,
|
|
20644
20638
|
type: "intersection"
|
|
@@ -20669,7 +20663,7 @@ function n_(i, t, e) {
|
|
|
20669
20663
|
}
|
|
20670
20664
|
function hv(i, t) {
|
|
20671
20665
|
var e = i[0], r = i[1], n = t[0], s = t[1], a = n - e, o = s - r;
|
|
20672
|
-
Math.abs(a) <
|
|
20666
|
+
Math.abs(a) < Ke && (a = 0), Math.abs(o) < Ke && (o = 0);
|
|
20673
20667
|
var u = 0, l = 0, h = 0;
|
|
20674
20668
|
return a ? o ? (u = -o / a, l = 1, h = -u * e - r) : (l = 1, h = -r) : o && (u = -1, h = e), [u, l, h];
|
|
20675
20669
|
}
|
|
@@ -20711,14 +20705,14 @@ function PS(i, t) {
|
|
|
20711
20705
|
}), r = [];
|
|
20712
20706
|
if (i.length === 2) {
|
|
20713
20707
|
var n = i[0], s = n[0], a = n[1];
|
|
20714
|
-
if (
|
|
20715
|
-
if (!
|
|
20708
|
+
if (kr(s - i[1][0])) {
|
|
20709
|
+
if (!kr(a - i[1][1])) {
|
|
20716
20710
|
var l = Math.max.apply(Math, e.map(function(f) {
|
|
20717
20711
|
return f[0][0];
|
|
20718
20712
|
})), h = Math.min.apply(Math, e.map(function(f) {
|
|
20719
20713
|
return f[0][1];
|
|
20720
20714
|
}));
|
|
20721
|
-
if (
|
|
20715
|
+
if (kr(l - h) > 0)
|
|
20722
20716
|
return [];
|
|
20723
20717
|
r = [[l, a], [h, a]];
|
|
20724
20718
|
}
|
|
@@ -20728,7 +20722,7 @@ function PS(i, t) {
|
|
|
20728
20722
|
})), u = Math.min.apply(Math, e.map(function(f) {
|
|
20729
20723
|
return f[1][1];
|
|
20730
20724
|
}));
|
|
20731
|
-
if (
|
|
20725
|
+
if (kr(o - u) > 0)
|
|
20732
20726
|
return [];
|
|
20733
20727
|
r = [[s, o], [s, u]];
|
|
20734
20728
|
}
|
|
@@ -20736,10 +20730,10 @@ function PS(i, t) {
|
|
|
20736
20730
|
return r.length || (r = i.filter(function(f) {
|
|
20737
20731
|
var d = f[0], p = f[1];
|
|
20738
20732
|
return e.every(function(v) {
|
|
20739
|
-
return 0 <=
|
|
20733
|
+
return 0 <= kr(d - v[0][0]) && 0 <= kr(v[0][1] - d) && 0 <= kr(p - v[1][0]) && 0 <= kr(v[1][1] - p);
|
|
20740
20734
|
});
|
|
20741
20735
|
})), r.map(function(f) {
|
|
20742
|
-
return [
|
|
20736
|
+
return [kr(f[0]), kr(f[1])];
|
|
20743
20737
|
});
|
|
20744
20738
|
}
|
|
20745
20739
|
function s_(i) {
|
|
@@ -21088,15 +21082,15 @@ function WB(i, t) {
|
|
|
21088
21082
|
}
|
|
21089
21083
|
i.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
21090
21084
|
}
|
|
21091
|
-
var
|
|
21092
|
-
return
|
|
21085
|
+
var Ve = function() {
|
|
21086
|
+
return Ve = Object.assign || function(t) {
|
|
21093
21087
|
for (var e, r = 1, n = arguments.length; r < n; r++) {
|
|
21094
21088
|
e = arguments[r];
|
|
21095
21089
|
for (var s in e)
|
|
21096
21090
|
Object.prototype.hasOwnProperty.call(e, s) && (t[s] = e[s]);
|
|
21097
21091
|
}
|
|
21098
21092
|
return t;
|
|
21099
|
-
},
|
|
21093
|
+
}, Ve.apply(this, arguments);
|
|
21100
21094
|
};
|
|
21101
21095
|
function YB(i, t) {
|
|
21102
21096
|
var e = t[0] - i[0], r = t[1] - i[1], n = Math.atan2(r, e);
|
|
@@ -21212,10 +21206,10 @@ var Hm = /* @__PURE__ */ function() {
|
|
|
21212
21206
|
var k = I.tagName.toLowerCase();
|
|
21213
21207
|
(I.isContentEditable || lE.indexOf(k) > -1) && I.blur();
|
|
21214
21208
|
}
|
|
21215
|
-
(S || w || C) &&
|
|
21209
|
+
(S || w || C) && Hr(window, "click", s._onClick, !0);
|
|
21216
21210
|
}
|
|
21217
21211
|
s.clientStores = [new Hm(ep(d))], s.flag = !0, s.isDrag = !1, s._dragFlag = !0, s.data = {}, s.doubleFlag = lv() - s.prevTime < 200, s._isMouseEvent = ZB(d), !s._isMouseEvent && s._preventMouseEvent && (s._preventMouseEvent = !1);
|
|
21218
|
-
var U = s._preventMouseEvent || s.emit("dragStart",
|
|
21212
|
+
var U = s._preventMouseEvent || s.emit("dragStart", Ve(Ve({
|
|
21219
21213
|
data: s.data,
|
|
21220
21214
|
datas: s.data,
|
|
21221
21215
|
inputEvent: d,
|
|
@@ -21237,7 +21231,7 @@ var Hm = /* @__PURE__ */ function() {
|
|
|
21237
21231
|
return !1;
|
|
21238
21232
|
var H = 0;
|
|
21239
21233
|
if (O ? (s._attchDragEvent(), T && m && (H = setTimeout(function() {
|
|
21240
|
-
|
|
21234
|
+
Hr(g, "touchstart", s.onDragStart, {
|
|
21241
21235
|
passive: !1
|
|
21242
21236
|
});
|
|
21243
21237
|
}))) : T && m && Pr(g, "touchstart", s.onDragStart), s.flag && qB(d)) {
|
|
@@ -21253,7 +21247,7 @@ var Hm = /* @__PURE__ */ function() {
|
|
|
21253
21247
|
var g = ep(d), m = s.moveClients(g, d, !1);
|
|
21254
21248
|
if (s._dragFlag) {
|
|
21255
21249
|
if (s.pinchFlag || m.deltaX || m.deltaY) {
|
|
21256
|
-
var y = s._preventMouseEvent || s.emit("drag",
|
|
21250
|
+
var y = s._preventMouseEvent || s.emit("drag", Ve(Ve({}, m), {
|
|
21257
21251
|
isScroll: !!p,
|
|
21258
21252
|
inputEvent: d
|
|
21259
21253
|
}));
|
|
@@ -21275,7 +21269,7 @@ var Hm = /* @__PURE__ */ function() {
|
|
|
21275
21269
|
var x = d != null && d.touches ? ep(d) : [], S = x.length;
|
|
21276
21270
|
S === 0 || !s.options.keepDragging ? s.flag = !1 : s._addStore(new Hm(x));
|
|
21277
21271
|
var w = s._getPosition(), C = lv(), T = !b && s.doubleFlag;
|
|
21278
|
-
s.prevTime = b || T ? 0 : C, s.flag || (s._dettachDragEvent(), s._preventMouseEvent || s.emit("dragEnd",
|
|
21272
|
+
s.prevTime = b || T ? 0 : C, s.flag || (s._dettachDragEvent(), s._preventMouseEvent || s.emit("dragEnd", Ve({
|
|
21279
21273
|
data: s.data,
|
|
21280
21274
|
datas: s.data,
|
|
21281
21275
|
isDouble: T,
|
|
@@ -21304,7 +21298,7 @@ var Hm = /* @__PURE__ */ function() {
|
|
|
21304
21298
|
}, s._passCallback = function() {
|
|
21305
21299
|
};
|
|
21306
21300
|
var a = [].concat(r);
|
|
21307
|
-
s.options =
|
|
21301
|
+
s.options = Ve({
|
|
21308
21302
|
checkInput: !1,
|
|
21309
21303
|
container: a.length > 1 ? window : a[0],
|
|
21310
21304
|
preventRightClick: !0,
|
|
@@ -21320,13 +21314,13 @@ var Hm = /* @__PURE__ */ function() {
|
|
|
21320
21314
|
}, n);
|
|
21321
21315
|
var o = s.options, u = o.container, l = o.events, h = o.checkWindowBlur;
|
|
21322
21316
|
if (s.isTouch = l.indexOf("touch") > -1, s.isMouse = l.indexOf("mouse") > -1, s.targets = a, s.isMouse && (a.forEach(function(d) {
|
|
21323
|
-
|
|
21324
|
-
}),
|
|
21317
|
+
Hr(d, "mousedown", s.onDragStart), Hr(d, "mousemove", s._passCallback);
|
|
21318
|
+
}), Hr(u, "contextmenu", s._onContextMenu)), h && Hr(window, "blur", s.onBlur), s.isTouch) {
|
|
21325
21319
|
var f = {
|
|
21326
21320
|
passive: !1
|
|
21327
21321
|
};
|
|
21328
21322
|
a.forEach(function(d) {
|
|
21329
|
-
|
|
21323
|
+
Hr(d, "touchstart", s.onDragStart, f), Hr(d, "touchmove", s._passCallback, f);
|
|
21330
21324
|
});
|
|
21331
21325
|
}
|
|
21332
21326
|
return s;
|
|
@@ -21371,7 +21365,7 @@ var Hm = /* @__PURE__ */ function() {
|
|
|
21371
21365
|
}, e.setEventDatas = function(r) {
|
|
21372
21366
|
return this.setEventData(r);
|
|
21373
21367
|
}, e.getCurrentEvent = function(r) {
|
|
21374
|
-
return
|
|
21368
|
+
return Ve(Ve({
|
|
21375
21369
|
data: this.data,
|
|
21376
21370
|
datas: this.data
|
|
21377
21371
|
}, this._getPosition()), {
|
|
@@ -21397,7 +21391,7 @@ var Hm = /* @__PURE__ */ function() {
|
|
|
21397
21391
|
if (!(this.isDrag && this.getMovement() > n)) {
|
|
21398
21392
|
var s = new Hm(ep(r));
|
|
21399
21393
|
this.pinchFlag = !0, this._addStore(s);
|
|
21400
|
-
var a = this.emit("pinchStart",
|
|
21394
|
+
var a = this.emit("pinchStart", Ve(Ve({
|
|
21401
21395
|
data: this.data,
|
|
21402
21396
|
datas: this.data,
|
|
21403
21397
|
angle: s.getAngle(),
|
|
@@ -21410,7 +21404,7 @@ var Hm = /* @__PURE__ */ function() {
|
|
|
21410
21404
|
}, e.onPinch = function(r, n) {
|
|
21411
21405
|
if (!(!this.flag || !this.pinchFlag || n.length < 2)) {
|
|
21412
21406
|
var s = this.getCurrentStore();
|
|
21413
|
-
this.isPinch = !0, this.emit("pinch",
|
|
21407
|
+
this.isPinch = !0, this.emit("pinch", Ve(Ve({
|
|
21414
21408
|
data: this.data,
|
|
21415
21409
|
datas: this.data,
|
|
21416
21410
|
movement: this.getMovement(n),
|
|
@@ -21428,7 +21422,7 @@ var Hm = /* @__PURE__ */ function() {
|
|
|
21428
21422
|
var n = this.isPinch;
|
|
21429
21423
|
this.isPinch = !1, this.pinchFlag = !1;
|
|
21430
21424
|
var s = this.getCurrentStore();
|
|
21431
|
-
this.emit("pinchEnd",
|
|
21425
|
+
this.emit("pinchEnd", Ve(Ve({
|
|
21432
21426
|
data: this.data,
|
|
21433
21427
|
datas: this.data,
|
|
21434
21428
|
isPinch: n,
|
|
@@ -21441,7 +21435,7 @@ var Hm = /* @__PURE__ */ function() {
|
|
|
21441
21435
|
return this.clientStores[0];
|
|
21442
21436
|
}, e.moveClients = function(r, n, s) {
|
|
21443
21437
|
var a = this._getPosition(r, s);
|
|
21444
|
-
return (a.deltaX || a.deltaY) && (this.isDrag = !0),
|
|
21438
|
+
return (a.deltaX || a.deltaY) && (this.isDrag = !0), Ve(Ve({
|
|
21445
21439
|
data: this.data,
|
|
21446
21440
|
datas: this.data
|
|
21447
21441
|
}, a), {
|
|
@@ -21460,7 +21454,7 @@ var Hm = /* @__PURE__ */ function() {
|
|
|
21460
21454
|
var d = f.getPosition();
|
|
21461
21455
|
return h.distX += d.distX, h.distY += d.distY, h;
|
|
21462
21456
|
}, a), u = o.distX, l = o.distY;
|
|
21463
|
-
return
|
|
21457
|
+
return Ve(Ve({}, a), {
|
|
21464
21458
|
distX: u,
|
|
21465
21459
|
distY: l
|
|
21466
21460
|
});
|
|
@@ -21468,7 +21462,7 @@ var Hm = /* @__PURE__ */ function() {
|
|
|
21468
21462
|
var r = this.options.container, n = {
|
|
21469
21463
|
passive: !1
|
|
21470
21464
|
};
|
|
21471
|
-
this.isMouse && (
|
|
21465
|
+
this.isMouse && (Hr(r, "mousemove", this.onDrag), Hr(r, "mouseup", this.onDragEnd)), this.isTouch && (Hr(r, "touchmove", this.onDrag, n), Hr(r, "touchend", this.onDragEnd, n), Hr(r, "touchcancel", this.onDragEnd, n));
|
|
21472
21466
|
}, e._dettachDragEvent = function() {
|
|
21473
21467
|
var r = this.options.container;
|
|
21474
21468
|
this.isMouse && (Pr(r, "mousemove", this.onDrag), Pr(r, "mouseup", this.onDragEnd)), this.isTouch && (Pr(r, "touchstart", this.onDragStart), Pr(r, "touchmove", this.onDrag), Pr(r, "touchend", this.onDragEnd), Pr(r, "touchcancel", this.onDragEnd));
|
|
@@ -21954,12 +21948,12 @@ function Sk(i, t) {
|
|
|
21954
21948
|
return i[e];
|
|
21955
21949
|
});
|
|
21956
21950
|
}
|
|
21957
|
-
function
|
|
21951
|
+
function Le(i, t) {
|
|
21958
21952
|
var e = (t[0] + 1) / 2, r = (t[1] + 1) / 2, n = [Sa(i[0][0], i[1][0], e, 1 - e), Sa(i[0][1], i[1][1], e, 1 - e)], s = [Sa(i[2][0], i[3][0], e, 1 - e), Sa(i[2][1], i[3][1], e, 1 - e)];
|
|
21959
21953
|
return [Sa(n[0], s[0], r, 1 - r), Sa(n[1], s[1], r, 1 - r)];
|
|
21960
21954
|
}
|
|
21961
21955
|
function Tk(i, t, e, r, n, s) {
|
|
21962
|
-
var a = nu(t, e, r, n), o =
|
|
21956
|
+
var a = nu(t, e, r, n), o = Le(a, s), u = i[0] - o[0], l = i[1] - o[1];
|
|
21963
21957
|
return [u, l];
|
|
21964
21958
|
}
|
|
21965
21959
|
function yd(i, t, e, r) {
|
|
@@ -22055,7 +22049,7 @@ function Dk(i, t, e, r, n, s) {
|
|
|
22055
22049
|
return Bt(w, [b, x]);
|
|
22056
22050
|
}
|
|
22057
22051
|
function $S(i, t) {
|
|
22058
|
-
return
|
|
22052
|
+
return Le(jr(i.state), t);
|
|
22059
22053
|
}
|
|
22060
22054
|
function Rk(i, t) {
|
|
22061
22055
|
var e = i.targetGesto, r = i.controlGesto, n;
|
|
@@ -22320,7 +22314,7 @@ function YS(i, t) {
|
|
|
22320
22314
|
return Yi([t[0] - i[0], t[1] - i[1]]);
|
|
22321
22315
|
}
|
|
22322
22316
|
function Ch(i, t, e, r) {
|
|
22323
|
-
e === void 0 && (e = 1), r === void 0 && (r =
|
|
22317
|
+
e === void 0 && (e = 1), r === void 0 && (r = Ue(i, t));
|
|
22324
22318
|
var n = YS(i, t);
|
|
22325
22319
|
return {
|
|
22326
22320
|
transform: "translateY(-50%) translate(".concat(i[0], "px, ").concat(i[1], "px) rotate(").concat(r, "rad) scaleY(").concat(e, ")"),
|
|
@@ -22389,7 +22383,7 @@ function qS(i, t) {
|
|
|
22389
22383
|
};
|
|
22390
22384
|
}
|
|
22391
22385
|
function ZS(i, t) {
|
|
22392
|
-
return
|
|
22386
|
+
return Ue(t > 0 ? i[0] : i[1], t > 0 ? i[1] : i[0]);
|
|
22393
22387
|
}
|
|
22394
22388
|
function sp() {
|
|
22395
22389
|
return {
|
|
@@ -22452,7 +22446,7 @@ function JS(i, t) {
|
|
|
22452
22446
|
function lx(i, t) {
|
|
22453
22447
|
return [Jt(t, i[0]), Jt(t, i[1]), Jt(t, i[2]), Jt(t, i[3])];
|
|
22454
22448
|
}
|
|
22455
|
-
function
|
|
22449
|
+
function jr(i) {
|
|
22456
22450
|
var t = i.left, e = i.top, r = i.pos1, n = i.pos2, s = i.pos3, a = i.pos4;
|
|
22457
22451
|
return lx([r, n, s, a], [t, e]);
|
|
22458
22452
|
}
|
|
@@ -22502,7 +22496,7 @@ function Lt(i, t, e, r) {
|
|
|
22502
22496
|
});
|
|
22503
22497
|
return n.isStartEvent ? r || (n.lastEvent = s) : n.isStartEvent = !0, s;
|
|
22504
22498
|
}
|
|
22505
|
-
function
|
|
22499
|
+
function si(i, t, e) {
|
|
22506
22500
|
var r = t.datas, n = "isDrag" in e ? e.isDrag : t.isDrag;
|
|
22507
22501
|
return r.datas || (r.datas = {}), j(j({
|
|
22508
22502
|
isDrag: n
|
|
@@ -22662,7 +22656,7 @@ function dx(i, t) {
|
|
|
22662
22656
|
}, []);
|
|
22663
22657
|
}
|
|
22664
22658
|
function Zk(i, t, e) {
|
|
22665
|
-
var r =
|
|
22659
|
+
var r = Ue(i, t) / Math.PI * 180;
|
|
22666
22660
|
return r = e >= 0 ? r : 180 - r, r = r >= 0 ? r : 360 + r, r;
|
|
22667
22661
|
}
|
|
22668
22662
|
function fE(i, t) {
|
|
@@ -22672,13 +22666,13 @@ function fE(i, t) {
|
|
|
22672
22666
|
function iT(i, t, e, r, n) {
|
|
22673
22667
|
var s = i[0], a = i[1], o = 0, u = 0;
|
|
22674
22668
|
if (n && s && a) {
|
|
22675
|
-
var l =
|
|
22669
|
+
var l = Ue([0, 0], t), h = Ue([0, 0], r), f = Yi(t), d = Math.cos(l - h) * f;
|
|
22676
22670
|
if (!r[0])
|
|
22677
22671
|
u = d, o = u * e;
|
|
22678
22672
|
else if (!r[1])
|
|
22679
22673
|
o = d, u = o / e;
|
|
22680
22674
|
else {
|
|
22681
|
-
var p = r[0] * 2 * s, v = r[1] * 2 * a, g = Yi([p + t[0], v + t[1]]) - Yi([p, v]), m =
|
|
22675
|
+
var p = r[0] * 2 * s, v = r[1] * 2 * a, g = Yi([p + t[0], v + t[1]]) - Yi([p, v]), m = Ue([0, 0], [e, 1]);
|
|
22682
22676
|
o = Math.cos(m) * g, u = Math.sin(m) * g;
|
|
22683
22677
|
}
|
|
22684
22678
|
} else
|
|
@@ -22775,7 +22769,7 @@ var Kk = gd("pinchable", {
|
|
|
22775
22769
|
pinchEnd: function(i, t) {
|
|
22776
22770
|
var e = t.datas, r = t.isPinch, n = t.inputEvent, s = t.targets, a = t.originalDatas;
|
|
22777
22771
|
if (!!e.isPinch) {
|
|
22778
|
-
var o = "onPinch".concat(s ? "Group" : "", "End"), u =
|
|
22772
|
+
var o = "onPinch".concat(s ? "Group" : "", "End"), u = si(i, t, {
|
|
22779
22773
|
isDrag: r
|
|
22780
22774
|
});
|
|
22781
22775
|
s && (u.targets = s), _t(i, o, u);
|
|
@@ -22900,10 +22894,10 @@ function eN(i, t, e) {
|
|
|
22900
22894
|
}
|
|
22901
22895
|
function rN(i) {
|
|
22902
22896
|
var t = i[0], e = i[1], r = e[0] - t[0], n = e[1] - t[1];
|
|
22903
|
-
Math.abs(r) <
|
|
22897
|
+
Math.abs(r) < Ke && (r = 0), Math.abs(n) < Ke && (n = 0);
|
|
22904
22898
|
var s = 0, a = 0, o = 0;
|
|
22905
22899
|
return r ? n ? (s = -n / r, a = 1, o = s * t[0] - t[1]) : (a = 1, o = -t[1]) : (s = -1, o = t[0]), [s, a, o].map(function(u) {
|
|
22906
|
-
return Yt(u,
|
|
22900
|
+
return Yt(u, Ke);
|
|
22907
22901
|
});
|
|
22908
22902
|
}
|
|
22909
22903
|
function tm(i, t, e, r) {
|
|
@@ -23019,14 +23013,14 @@ function nN(i, t, e) {
|
|
|
23019
23013
|
var r = [];
|
|
23020
23014
|
if (e[0] && e[1])
|
|
23021
23015
|
r = [e, [-e[0], e[1]], [e[0], -e[1]]].map(function(a) {
|
|
23022
|
-
return
|
|
23016
|
+
return Le(t, a);
|
|
23023
23017
|
});
|
|
23024
23018
|
else if (!e[0] && !e[1])
|
|
23025
23019
|
for (var n = [t[0], t[1], t[3], t[2], t[0]], s = 0; s < 4; ++s)
|
|
23026
23020
|
r.push(n[s]), r.push([(n[s][0] + n[s + 1][0]) / 2, (n[s][1] + n[s + 1][1]) / 2]);
|
|
23027
23021
|
else
|
|
23028
23022
|
i.props.keepRatio ? r = [[-1, -1], [-1, 1], [1, -1], [1, 1], e].map(function(a) {
|
|
23029
|
-
return
|
|
23023
|
+
return Le(t, a);
|
|
23030
23024
|
}) : (r = Sk(t, e), r.length > 1 && r.push([(r[0][0] + r[1][0]) / 2, (r[0][1] + r[1][1]) / 2]));
|
|
23031
23025
|
return tm(i, r.map(function(a) {
|
|
23032
23026
|
return a[0];
|
|
@@ -23235,16 +23229,16 @@ function uN(i, t) {
|
|
|
23235
23229
|
return r && n ? e.push([[0, n * 2], i, [-r, n]], [[r * 2, 0], i, [r, -n]]) : r ? (e.push([[r * 2, 0], [r, 1], [r, -1]]), t && e.push([[0, -1], [r, -1], [-r, -1]], [[0, 1], [r, 1], [-r, 1]])) : n ? (e.push([[0, n * 2], [1, n], [-1, n]]), t && e.push([[-1, 0], [-1, n], [-1, -n]], [[1, 0], [1, n], [1, -n]])) : e.push([[-1, 0], [-1, -1], [-1, 1]], [[1, 0], [1, -1], [1, 1]], [[0, -1], [-1, -1], [1, -1]], [[0, 1], [-1, 1], [1, 1]]), e;
|
|
23236
23230
|
}
|
|
23237
23231
|
function mx(i, t, e, r) {
|
|
23238
|
-
var n = i.state, s = n.allMatrix, a = n.is3d, o = nu(s, 100, 100, a ? 4 : 3), u =
|
|
23232
|
+
var n = i.state, s = n.allMatrix, a = n.is3d, o = nu(s, 100, 100, a ? 4 : 3), u = Le(o, [0, 0]);
|
|
23239
23233
|
return uN(e, r).map(function(l) {
|
|
23240
|
-
var h = l[0], f = l[1], d = l[2], p = [
|
|
23234
|
+
var h = l[0], f = l[1], d = l[2], p = [Le(o, f), Le(o, d)], v = rN(p), g = oT(u, p), m = g.vertical, y = g.horizontal, _ = gx(u, p) <= 0;
|
|
23241
23235
|
return {
|
|
23242
23236
|
multiple: h,
|
|
23243
23237
|
centerSign: _,
|
|
23244
23238
|
verticalSign: m,
|
|
23245
23239
|
horizontalSign: y,
|
|
23246
23240
|
lineConstants: v,
|
|
23247
|
-
line: [
|
|
23241
|
+
line: [Le(t, f), Le(t, d)]
|
|
23248
23242
|
};
|
|
23249
23243
|
});
|
|
23250
23244
|
}
|
|
@@ -23279,14 +23273,14 @@ function cN(i, t, e, r, n) {
|
|
|
23279
23273
|
var s = i.props.innerBounds, a = n * Math.PI / 180;
|
|
23280
23274
|
if (!s)
|
|
23281
23275
|
return [];
|
|
23282
|
-
var o = s.left, u = s.top, l = s.width, h = s.height, f = o - r[0], d = o + l - r[0], p = u - r[1], v = u + h - r[1], g = [[f, p], [d, p], [f, v], [d, v]], m =
|
|
23276
|
+
var o = s.left, u = s.top, l = s.width, h = s.height, f = o - r[0], d = o + l - r[0], p = u - r[1], v = u + h - r[1], g = [[f, p], [d, p], [f, v], [d, v]], m = Le(e, [0, 0]);
|
|
23283
23277
|
if (!gE(e, g, m, 0))
|
|
23284
23278
|
return [];
|
|
23285
23279
|
var y = [], _ = g.map(function(b) {
|
|
23286
|
-
return [Yi(b),
|
|
23280
|
+
return [Yi(b), Ue([0, 0], b)];
|
|
23287
23281
|
});
|
|
23288
23282
|
return [[e[0], e[1]], [e[1], e[3]], [e[3], e[2]], [e[2], e[0]]].forEach(function(b) {
|
|
23289
|
-
var x =
|
|
23283
|
+
var x = Ue([0, 0], hN(b)), S = lN(b);
|
|
23290
23284
|
y.push.apply(y, _.filter(function(w) {
|
|
23291
23285
|
var C = w[0];
|
|
23292
23286
|
return C && S <= C;
|
|
@@ -23309,7 +23303,7 @@ function fN(i) {
|
|
|
23309
23303
|
vertical: [],
|
|
23310
23304
|
horizontal: []
|
|
23311
23305
|
};
|
|
23312
|
-
var e = i.getRect(), r = e.pos1, n = e.pos2, s = e.pos3, a = e.pos4, o = [r, n, s, a], u =
|
|
23306
|
+
var e = i.getRect(), r = e.pos1, n = e.pos2, s = e.pos3, a = e.pos4, o = [r, n, s, a], u = Le(o, [0, 0]), l = t.left, h = t.top, f = t.width, d = t.height, p = [[l, h], [l, h + d]], v = [[l, h], [l + f, h]], g = [[l + f, h], [l + f, h + d]], m = [[l, h + d], [l + f, h + d]], y = mx(i, o, [0, 0], !1), _ = [], b = [], x = {
|
|
23313
23307
|
top: !1,
|
|
23314
23308
|
bottom: !1,
|
|
23315
23309
|
left: !1,
|
|
@@ -23406,7 +23400,7 @@ function pN(i, t, e) {
|
|
|
23406
23400
|
return [n, -n].sort(function(s, a) {
|
|
23407
23401
|
return Math.abs(s - i[e ? 0 : 1]) - Math.abs(a - i[e ? 0 : 1]);
|
|
23408
23402
|
}).map(function(s) {
|
|
23409
|
-
return
|
|
23403
|
+
return Ue([0, 0], e ? [s, t] : [t, s]);
|
|
23410
23404
|
});
|
|
23411
23405
|
}
|
|
23412
23406
|
function vN(i, t, e, r, n) {
|
|
@@ -23424,7 +23418,7 @@ function vN(i, t, e, r, n) {
|
|
|
23424
23418
|
return [[f, 0], [d, 0], [p, 1], [v, 1]].forEach(function(y) {
|
|
23425
23419
|
var _ = y[0], b = y[1];
|
|
23426
23420
|
e.forEach(function(x) {
|
|
23427
|
-
var S =
|
|
23421
|
+
var S = Ue([0, 0], x);
|
|
23428
23422
|
m.push.apply(m, pN(x, _, b).map(function(w) {
|
|
23429
23423
|
return s + w - S;
|
|
23430
23424
|
}).filter(function(w) {
|
|
@@ -23619,7 +23613,7 @@ function _N(i, t, e, r, n) {
|
|
|
23619
23613
|
}
|
|
23620
23614
|
function bN(i, t, e, r) {
|
|
23621
23615
|
var n = t[0] - i[0], s = t[1] - i[1];
|
|
23622
|
-
if (Math.abs(n) <
|
|
23616
|
+
if (Math.abs(n) < Ke && (n = 0), Math.abs(s) < Ke && (s = 0), !n)
|
|
23623
23617
|
return r ? [0, 0] : [0, e];
|
|
23624
23618
|
if (!s)
|
|
23625
23619
|
return r ? [e, 0] : [0, 0];
|
|
@@ -23662,17 +23656,17 @@ function xN(i, t, e, r, n) {
|
|
|
23662
23656
|
return Yi(Bt([s, a], b)) - Yi(Bt([s, a], x));
|
|
23663
23657
|
});
|
|
23664
23658
|
var m = g[0];
|
|
23665
|
-
if (m[0] && Math.abs(s) >
|
|
23659
|
+
if (m[0] && Math.abs(s) > Ke)
|
|
23666
23660
|
p = -m[0], v = a * Math.abs(s + p) / Math.abs(s) - a;
|
|
23667
|
-
else if (m[1] && Math.abs(a) >
|
|
23661
|
+
else if (m[1] && Math.abs(a) > Ke) {
|
|
23668
23662
|
var y = a;
|
|
23669
23663
|
v = -m[1], p = s * Math.abs(a + v) / Math.abs(y) - s;
|
|
23670
23664
|
}
|
|
23671
23665
|
if (i && u && o)
|
|
23672
|
-
if (Math.abs(p) >
|
|
23666
|
+
if (Math.abs(p) > Ke && Math.abs(p) < Math.abs(f)) {
|
|
23673
23667
|
var _ = Math.abs(f) / Math.abs(p);
|
|
23674
23668
|
p *= _, v *= _;
|
|
23675
|
-
} else if (Math.abs(v) >
|
|
23669
|
+
} else if (Math.abs(v) > Ke && Math.abs(v) < Math.abs(d)) {
|
|
23676
23670
|
var _ = Math.abs(d) / Math.abs(v);
|
|
23677
23671
|
p *= _, v *= _;
|
|
23678
23672
|
} else
|
|
@@ -23775,12 +23769,12 @@ function xE(i, t, e, r, n) {
|
|
|
23775
23769
|
};
|
|
23776
23770
|
}
|
|
23777
23771
|
function wN(i, t, e, r) {
|
|
23778
|
-
var n =
|
|
23772
|
+
var n = Ue(i, t) / Math.PI * 180, s = e.vertical, a = s.isBound, o = s.isSnap, u = s.dist, l = e.horizontal, h = l.isBound, f = l.isSnap, d = l.dist, p = n % 180, v = p < 3 || p > 177, g = p > 87 && p < 93;
|
|
23779
23773
|
return d < u && (a || o && !g && (!r || !v)) ? "vertical" : h || f && !v && (!r || !g) ? "horizontal" : "";
|
|
23780
23774
|
}
|
|
23781
23775
|
function SN(i, t, e, r, n, s) {
|
|
23782
23776
|
return e.map(function(a) {
|
|
23783
|
-
var o = a[0], u = a[1], l =
|
|
23777
|
+
var o = a[0], u = a[1], l = Le(t, o), h = Le(t, u), f = r ? TN(i, l, h, n) : rm(i, n, {
|
|
23784
23778
|
vertical: [h[0]],
|
|
23785
23779
|
horizontal: [h[1]]
|
|
23786
23780
|
}), d = f.horizontal, p = d.offset, v = d.isBound, g = d.isSnap, m = f.vertical, y = m.offset, _ = m.isBound, b = m.isSnap, x = Bt(u, o);
|
|
@@ -23846,7 +23840,7 @@ function CN(i, t, e, r, n) {
|
|
|
23846
23840
|
if (l) {
|
|
23847
23841
|
var d = [[e[0], -e[1]], [-e[0], e[1]]], p = l.left, v = p === void 0 ? -1 / 0 : p, g = l.top, m = g === void 0 ? -1 / 0 : g, y = l.right, _ = y === void 0 ? 1 / 0 : y, b = l.bottom, x = b === void 0 ? 1 / 0 : b;
|
|
23848
23842
|
d.forEach(function(S) {
|
|
23849
|
-
var w = S[0] !== s[0], C = S[1] !== s[1], T =
|
|
23843
|
+
var w = S[0] !== s[0], C = S[1] !== s[1], T = Le(t, S), O = Ue(r, T) * 360 / Math.PI;
|
|
23850
23844
|
if (C) {
|
|
23851
23845
|
var I = T.slice();
|
|
23852
23846
|
(Math.abs(O - 360) < 2 || Math.abs(O - 180) < 2) && (I[1] = r[1]);
|
|
@@ -23867,7 +23861,7 @@ function CN(i, t, e, r, n) {
|
|
|
23867
23861
|
};
|
|
23868
23862
|
}
|
|
23869
23863
|
function __(i) {
|
|
23870
|
-
var t = i.state, e = t.snapOffset, r = t.containerClientRect, n = r.overflow, s = r.scrollHeight, a = r.scrollWidth, o = r.clientHeight, u = r.clientWidth, l = r.clientLeft, h = r.clientTop, f = i.props, d = f.snapGap, p = d === void 0 ? !0 : d, v = f.verticalGuidelines, g = f.horizontalGuidelines, m = f.snapThreshold, y = m === void 0 ? 5 : m, _ = f.snapGridWidth, b = _ === void 0 ? 0 : _, x = f.snapGridHeight, S = x === void 0 ? 0 : x, w = f.maxSnapElementGuidelineDistance, C = w === void 0 ? 1 / 0 : w, T = yi(
|
|
23864
|
+
var t = i.state, e = t.snapOffset, r = t.containerClientRect, n = r.overflow, s = r.scrollHeight, a = r.scrollWidth, o = r.clientHeight, u = r.clientWidth, l = r.clientLeft, h = r.clientTop, f = i.props, d = f.snapGap, p = d === void 0 ? !0 : d, v = f.verticalGuidelines, g = f.horizontalGuidelines, m = f.snapThreshold, y = m === void 0 ? 5 : m, _ = f.snapGridWidth, b = _ === void 0 ? 0 : _, x = f.snapGridHeight, S = x === void 0 ? 0 : x, w = f.maxSnapElementGuidelineDistance, C = w === void 0 ? 1 / 0 : w, T = yi(jr(i.state)), O = T.top, I = T.left, R = T.bottom, A = T.right, F = {
|
|
23871
23865
|
top: O,
|
|
23872
23866
|
left: I,
|
|
23873
23867
|
bottom: R,
|
|
@@ -24050,7 +24044,7 @@ function cT(i, t, e, r, n, s, a) {
|
|
|
24050
24044
|
function IN(i, t) {
|
|
24051
24045
|
if (!t.length)
|
|
24052
24046
|
return [];
|
|
24053
|
-
var e = i.state, r = e.containerClientRect, n = e.targetClientRect, s = n.top, a = n.left, o = e.rootMatrix, u = e.is3d, l = u ? 4 : 3, h = eN(o, r, l), f = h[0], d = h[1], p =
|
|
24047
|
+
var e = i.state, r = e.containerClientRect, n = e.targetClientRect, s = n.top, a = n.left, o = e.rootMatrix, u = e.is3d, l = u ? 4 : 3, h = eN(o, r, l), f = h[0], d = h[1], p = jr(e), v = pd(p), g = v.minX, m = v.minY, y = Bt([g, m], Du(o, [a - f, s - d], l)).map(function(x) {
|
|
24054
24048
|
return $k(x);
|
|
24055
24049
|
}), _ = y[0], b = y[1];
|
|
24056
24050
|
return t.map(function(x) {
|
|
@@ -24087,7 +24081,7 @@ function Vm(i) {
|
|
|
24087
24081
|
}
|
|
24088
24082
|
}
|
|
24089
24083
|
function fT(i, t, e, r, n, s) {
|
|
24090
|
-
var a = nu(i, t, e, s ? 4 : 3), o =
|
|
24084
|
+
var a = nu(i, t, e, s ? 4 : 3), o = Le(a, r);
|
|
24091
24085
|
return lx(a, Bt(n, o));
|
|
24092
24086
|
}
|
|
24093
24087
|
function DN(i, t, e, r, n, s) {
|
|
@@ -24104,7 +24098,7 @@ function DN(i, t, e, r, n, s) {
|
|
|
24104
24098
|
};
|
|
24105
24099
|
}
|
|
24106
24100
|
function RN(i, t, e, r, n, s, a, o, u) {
|
|
24107
|
-
var l =
|
|
24101
|
+
var l = Le(t, a), h = rm(i, o, {
|
|
24108
24102
|
vertical: [l[0]],
|
|
24109
24103
|
horizontal: [l[1]]
|
|
24110
24104
|
}), f = h.horizontal.offset, d = h.vertical.offset;
|
|
@@ -24119,7 +24113,7 @@ function RN(i, t, e, r, n, s, a, o, u) {
|
|
|
24119
24113
|
return [0, 0];
|
|
24120
24114
|
}
|
|
24121
24115
|
function dT(i, t, e, r, n, s, a, o) {
|
|
24122
|
-
for (var u =
|
|
24116
|
+
for (var u = jr(i.state), l = i.props.keepRatio, h = 0, f = 0, d = 0; d < 2; ++d) {
|
|
24123
24117
|
var p = t(h, f), v = DN(i, p, n, l, a, o), g = v.width, m = v.height, y = g.isBound, _ = m.isBound, b = g.offset, x = m.offset;
|
|
24124
24118
|
if (d === 1 && (y || (b = 0), _ || (x = 0)), d === 0 && a && !y && !_)
|
|
24125
24119
|
return [0, 0];
|
|
@@ -24176,7 +24170,7 @@ function BN(i, t, e, r, n) {
|
|
|
24176
24170
|
return [h[0] / s, h[1] / a];
|
|
24177
24171
|
}
|
|
24178
24172
|
function kN(i, t) {
|
|
24179
|
-
t.absolutePoses =
|
|
24173
|
+
t.absolutePoses = jr(i.state);
|
|
24180
24174
|
}
|
|
24181
24175
|
function wE(i) {
|
|
24182
24176
|
var t = [];
|
|
@@ -24292,7 +24286,7 @@ var NN = fx("", ["resizable", "scalable"]), LN = {
|
|
|
24292
24286
|
if (!l || !nh(i, ""))
|
|
24293
24287
|
return [];
|
|
24294
24288
|
e.guidelines = __(i);
|
|
24295
|
-
var h = Math.min(s[0], a[0], o[0], u[0]), f = Math.min(s[1], a[1], o[1], u[1]), d = l.externalPoses || [], p =
|
|
24289
|
+
var h = Math.min(s[0], a[0], o[0], u[0]), f = Math.min(s[1], a[1], o[1], u[1]), d = l.externalPoses || [], p = jr(i.state), v = [], g = [], m = [], y = [], _ = [], b = yi(p), x = b.width, S = b.height, w = b.top, C = b.left, T = b.bottom, O = b.right, I = {
|
|
24296
24290
|
left: C,
|
|
24297
24291
|
right: O,
|
|
24298
24292
|
top: w,
|
|
@@ -24467,7 +24461,7 @@ function GN(i, t) {
|
|
|
24467
24461
|
function ac(i, t, e, r, n, s) {
|
|
24468
24462
|
for (var a = [], o = 6; o < arguments.length; o++)
|
|
24469
24463
|
a[o - 6] = arguments[o];
|
|
24470
|
-
var u =
|
|
24464
|
+
var u = Ue(e, r), l = t ? Yt(u / Math.PI * 180, 15) % 180 : -1;
|
|
24471
24465
|
return i.createElement("div", {
|
|
24472
24466
|
key: "line-".concat(s),
|
|
24473
24467
|
className: wt.apply(void 0, Mt(["line", "direction", t ? "edge" : "", t], a, !1)),
|
|
@@ -24521,7 +24515,7 @@ var Cr = {
|
|
|
24521
24515
|
var u = a.dist;
|
|
24522
24516
|
if (!u[0] && !u[1])
|
|
24523
24517
|
return [];
|
|
24524
|
-
var l = Yi(u), h =
|
|
24518
|
+
var l = Yi(u), h = Ue(u, [0, 0]);
|
|
24525
24519
|
return [t.createElement("div", {
|
|
24526
24520
|
className: wt("line", "horizontal", "dragline", "dashed"),
|
|
24527
24521
|
key: "dragRotateGuideline",
|
|
@@ -24556,7 +24550,7 @@ var Cr = {
|
|
|
24556
24550
|
o && (u += o[0], l += o[1]);
|
|
24557
24551
|
var v = i.props, g = v.parentMoveable, m = r ? 0 : v.throttleDrag || 0, y = r ? 0 : v.throttleDragRotate || 0, _ = !1, b = 0;
|
|
24558
24552
|
if (!r && y > 0 && (u || l)) {
|
|
24559
|
-
var x = v.startDragRotate || 0, S = Yt(x +
|
|
24553
|
+
var x = v.startDragRotate || 0, S = Yt(x + Ue([0, 0], [u, l]) * 180 / Math.PI, y) - x, w = l * Math.abs(Math.cos((S - 90) / 180 * Math.PI)), C = u * Math.abs(Math.cos(S / 180 * Math.PI)), T = Yi([C, w]);
|
|
24560
24554
|
b = S * Math.PI / 180, u = T * Math.cos(b), l = T * Math.sin(b);
|
|
24561
24555
|
}
|
|
24562
24556
|
if (!s && !r && !n && (!y || u || l)) {
|
|
@@ -24614,7 +24608,7 @@ var Cr = {
|
|
|
24614
24608
|
var e = t.parentEvent, r = t.datas;
|
|
24615
24609
|
if (i.state.dragInfo = null, !!r.isDrag) {
|
|
24616
24610
|
r.isDrag = !1;
|
|
24617
|
-
var n =
|
|
24611
|
+
var n = si(i, t, {});
|
|
24618
24612
|
return !e && _t(i, "onDragEnd", n), n;
|
|
24619
24613
|
}
|
|
24620
24614
|
},
|
|
@@ -24646,7 +24640,7 @@ var Cr = {
|
|
|
24646
24640
|
if (!!r.isDrag) {
|
|
24647
24641
|
this.dragEnd(i, t);
|
|
24648
24642
|
var n = $m(i, this, "dragEnd", [0, 0], t, !1, "draggable");
|
|
24649
|
-
return _t(i, "onDragGroupEnd",
|
|
24643
|
+
return _t(i, "onDragGroupEnd", si(i, t, {
|
|
24650
24644
|
targets: i.props.targets,
|
|
24651
24645
|
events: n
|
|
24652
24646
|
})), e;
|
|
@@ -24715,9 +24709,9 @@ var Cr = {
|
|
|
24715
24709
|
function _(T) {
|
|
24716
24710
|
u.ratio = T && isFinite(T) ? T : 0;
|
|
24717
24711
|
}
|
|
24718
|
-
u.startPositions =
|
|
24712
|
+
u.startPositions = jr(i.state);
|
|
24719
24713
|
function b(T) {
|
|
24720
|
-
u.fixedDirection = T, u.fixedPosition =
|
|
24714
|
+
u.fixedDirection = T, u.fixedPosition = Le(u.startPositions, T);
|
|
24721
24715
|
}
|
|
24722
24716
|
function x(T) {
|
|
24723
24717
|
u.minSize = [Re("".concat(T[0]), 0) || 0, Re("".concat(T[1]), 0) || 0];
|
|
@@ -24803,9 +24797,9 @@ var Cr = {
|
|
|
24803
24797
|
}) && X.every(function($t) {
|
|
24804
24798
|
return !$t;
|
|
24805
24799
|
}))) {
|
|
24806
|
-
var Dt = Cr.drag(i, md(t, i.state, X, !!s, !1, "draggable")), Rt = Dt.transform, Qt = g + ot,
|
|
24800
|
+
var Dt = Cr.drag(i, md(t, i.state, X, !!s, !1, "draggable")), Rt = Dt.transform, Qt = g + ot, je = m + B, ur = Lt(i, t, j({
|
|
24807
24801
|
width: Qt,
|
|
24808
|
-
height:
|
|
24802
|
+
height: je,
|
|
24809
24803
|
offsetWidth: Math.round(et),
|
|
24810
24804
|
offsetHeight: Math.round(q),
|
|
24811
24805
|
startRatio: S,
|
|
@@ -24819,7 +24813,7 @@ var Cr = {
|
|
|
24819
24813
|
}, QS({
|
|
24820
24814
|
style: {
|
|
24821
24815
|
width: "".concat(Qt, "px"),
|
|
24822
|
-
height: "".concat(
|
|
24816
|
+
height: "".concat(je, "px")
|
|
24823
24817
|
},
|
|
24824
24818
|
transform: Rt
|
|
24825
24819
|
}, Dt, t)));
|
|
@@ -24838,7 +24832,7 @@ var Cr = {
|
|
|
24838
24832
|
var e = t.datas, r = t.parentEvent;
|
|
24839
24833
|
if (!!e.isResize) {
|
|
24840
24834
|
e.isResize = !1;
|
|
24841
|
-
var n =
|
|
24835
|
+
var n = si(i, t, {});
|
|
24842
24836
|
return !r && _t(i, "onResizeEnd", n), n;
|
|
24843
24837
|
}
|
|
24844
24838
|
},
|
|
@@ -24851,7 +24845,7 @@ var Cr = {
|
|
|
24851
24845
|
return !1;
|
|
24852
24846
|
var n = la(i, "resizable", t);
|
|
24853
24847
|
function s(v, g) {
|
|
24854
|
-
var m = e.fixedDirection, y = e.fixedPosition, _ = g.datas.startPositions ||
|
|
24848
|
+
var m = e.fixedDirection, y = e.fixedPosition, _ = g.datas.startPositions || jr(v.state), b = Le(_, m), x = gr($l(-i.rotation / 180 * Math.PI, 3), [b[0] - y[0], b[1] - y[1], 1], 3), S = x[0], w = x[1];
|
|
24855
24849
|
return g.datas.originalX = S, g.datas.originalY = w, g;
|
|
24856
24850
|
}
|
|
24857
24851
|
var a = e.startOffsetWidth, o = e.startOffsetHeight;
|
|
@@ -24934,7 +24928,7 @@ var Cr = {
|
|
|
24934
24928
|
var e = t.isDrag, r = t.datas;
|
|
24935
24929
|
if (!!r.isResize) {
|
|
24936
24930
|
this.dragControlEnd(i, t);
|
|
24937
|
-
var n = gs(i, this, "dragControlEnd", t), s =
|
|
24931
|
+
var n = gs(i, this, "dragControlEnd", t), s = si(i, t, {
|
|
24938
24932
|
targets: i.props.targets,
|
|
24939
24933
|
events: n
|
|
24940
24934
|
});
|
|
@@ -24978,7 +24972,7 @@ function Xm(i, t, e, r, n) {
|
|
|
24978
24972
|
Bt([u[0], u[1]], s ? [0, 0] : [a.left, a.top]),
|
|
24979
24973
|
o
|
|
24980
24974
|
), h = Jt([n.left, n.top], l);
|
|
24981
|
-
t.startAbsoluteOrigin = h, t.prevDeg =
|
|
24975
|
+
t.startAbsoluteOrigin = h, t.prevDeg = Ue(h, [e, r]) / Math.PI * 180, t.defaultDeg = t.prevDeg, t.prevSnapDeg = 0, t.loop = 0, t.startDist = Wi(h, [e, r]);
|
|
24982
24976
|
}
|
|
24983
24977
|
function Bp(i, t, e) {
|
|
24984
24978
|
var r = e.defaultDeg, n = e.prevDeg, s = n % 360, a = Math.floor(n / 360);
|
|
@@ -24987,7 +24981,7 @@ function Bp(i, t, e) {
|
|
|
24987
24981
|
return e.prevDeg = r + o, o;
|
|
24988
24982
|
}
|
|
24989
24983
|
function Wm(i, t, e, r) {
|
|
24990
|
-
return Bp(
|
|
24984
|
+
return Bp(Ue(r.startAbsoluteOrigin, [i, t]) / Math.PI * 180, e, r);
|
|
24991
24985
|
}
|
|
24992
24986
|
function Ym(i, t, e, r, n, s) {
|
|
24993
24987
|
var a = i.props.throttleRotate, o = a === void 0 ? 0 : a, u = e.prevSnapDeg, l = 0, h = !1;
|
|
@@ -25179,7 +25173,7 @@ var zN = ix.map(function(i) {
|
|
|
25179
25173
|
var U = F.getAttribute("data-resolve");
|
|
25180
25174
|
U && (n.resolveAble = U);
|
|
25181
25175
|
var H = Hk(f.rootMatrix, f.renderPoses, _);
|
|
25182
|
-
e =
|
|
25176
|
+
e = Le(H, k), I = e[0], R = e[1];
|
|
25183
25177
|
}
|
|
25184
25178
|
}
|
|
25185
25179
|
n.beforeInfo = {
|
|
@@ -25192,7 +25186,7 @@ var zN = ix.map(function(i) {
|
|
|
25192
25186
|
};
|
|
25193
25187
|
var K = O;
|
|
25194
25188
|
O = function(tt) {
|
|
25195
|
-
var ot = f.is3d ? 4 : 3, B =
|
|
25189
|
+
var ot = f.is3d ? 4 : 3, B = Le([[0, 0], [w, 0], [0, C], [w, C]], tt), gt = Jt(ES(x, ot), B), st = gt[0], pt = gt[1], et = gr(b, Ko([st, pt], ot)), q = gr(S, Ko([B[0], B[1]], ot));
|
|
25196
25190
|
K(tt), n.beforeInfo.origin = et, n.afterInfo.origin = q, n.absoluteInfo.origin = q, Xm(i, n.beforeInfo, I, R, _), Xm(i, n.afterInfo, I, R, _), Xm(i, n.absoluteInfo, I, R, _);
|
|
25197
25191
|
};
|
|
25198
25192
|
}
|
|
@@ -25274,7 +25268,7 @@ var zN = ix.map(function(i) {
|
|
|
25274
25268
|
var e = t.datas;
|
|
25275
25269
|
if (!!e.isRotate) {
|
|
25276
25270
|
e.isRotate = !1;
|
|
25277
|
-
var r =
|
|
25271
|
+
var r = si(i, t, {});
|
|
25278
25272
|
return _t(i, "onRotateEnd", r), r;
|
|
25279
25273
|
}
|
|
25280
25274
|
},
|
|
@@ -25331,7 +25325,7 @@ var zN = ix.map(function(i) {
|
|
|
25331
25325
|
var e = t.isDrag, r = t.datas;
|
|
25332
25326
|
if (!!r.isRotate) {
|
|
25333
25327
|
this.dragControlEnd(i, t);
|
|
25334
|
-
var n = gs(i, this, "dragControlEnd", t), s =
|
|
25328
|
+
var n = gs(i, this, "dragControlEnd", t), s = si(i, t, {
|
|
25335
25329
|
targets: i.props.targets,
|
|
25336
25330
|
events: n
|
|
25337
25331
|
});
|
|
@@ -25395,9 +25389,9 @@ var zN = ix.map(function(i) {
|
|
|
25395
25389
|
function _(w) {
|
|
25396
25390
|
e.ratio = w && isFinite(w) ? w : 0;
|
|
25397
25391
|
}
|
|
25398
|
-
e.startPositions =
|
|
25392
|
+
e.startPositions = jr(i.state);
|
|
25399
25393
|
function b(w) {
|
|
25400
|
-
e.fixedDirection = w, e.fixedPosition =
|
|
25394
|
+
e.fixedDirection = w, e.fixedPosition = Le(e.startPositions, w);
|
|
25401
25395
|
}
|
|
25402
25396
|
e.setFixedDirection = b, _(Wi(d, p) / Wi(p, v)), b([-a[0], -a[1]]);
|
|
25403
25397
|
var x = Lt(i, t, j(j({
|
|
@@ -25484,7 +25478,7 @@ var zN = ix.map(function(i) {
|
|
|
25484
25478
|
if (!e.isScale)
|
|
25485
25479
|
return !1;
|
|
25486
25480
|
e.isScale = !1;
|
|
25487
|
-
var r =
|
|
25481
|
+
var r = si(i, t, {});
|
|
25488
25482
|
return _t(i, "onScaleEnd", r), r;
|
|
25489
25483
|
},
|
|
25490
25484
|
dragGroupControlCondition: CE,
|
|
@@ -25494,7 +25488,7 @@ var zN = ix.map(function(i) {
|
|
|
25494
25488
|
return !1;
|
|
25495
25489
|
var n = la(i, "resizable", t);
|
|
25496
25490
|
function s(h, f) {
|
|
25497
|
-
var d = e.fixedDirection, p = e.fixedPosition, v = f.datas.startPositions ||
|
|
25491
|
+
var d = e.fixedDirection, p = e.fixedPosition, v = f.datas.startPositions || jr(h.state), g = Le(v, d), m = gr($l(-i.rotation / 180 * Math.PI, 3), [g[0] - p[0], g[1] - p[1], 1], 3), y = m[0], _ = m[1];
|
|
25498
25492
|
return f.datas.originalX = y, f.datas.originalY = _, f;
|
|
25499
25493
|
}
|
|
25500
25494
|
e.moveableScale = i.scale;
|
|
@@ -25545,7 +25539,7 @@ var zN = ix.map(function(i) {
|
|
|
25545
25539
|
var e = t.isDrag, r = t.datas;
|
|
25546
25540
|
if (!!r.isScale) {
|
|
25547
25541
|
this.dragControlEnd(i, t);
|
|
25548
|
-
var n = gs(i, this, "dragControlEnd", t), s =
|
|
25542
|
+
var n = gs(i, this, "dragControlEnd", t), s = si(i, t, {
|
|
25549
25543
|
targets: i.props.targets,
|
|
25550
25544
|
events: n
|
|
25551
25545
|
});
|
|
@@ -25584,7 +25578,7 @@ function Ss(i, t) {
|
|
|
25584
25578
|
});
|
|
25585
25579
|
}
|
|
25586
25580
|
function ME(i, t, e) {
|
|
25587
|
-
var r =
|
|
25581
|
+
var r = Ue(i, t), n = Ue(i, e), s = n - r;
|
|
25588
25582
|
return s >= 0 ? s : s + 2 * Math.PI;
|
|
25589
25583
|
}
|
|
25590
25584
|
function XN(i, t) {
|
|
@@ -25644,7 +25638,7 @@ var WN = {
|
|
|
25644
25638
|
}), e.nextPoses = e.poses.map(function(_) {
|
|
25645
25639
|
var b = _[0], x = _[1];
|
|
25646
25640
|
return gr(e.warpTargetMatrix, [b, x, 0, 1], 4);
|
|
25647
|
-
}), e.startValue = Ae(4), e.prevMatrix = Ae(4), e.absolutePoses =
|
|
25641
|
+
}), e.startValue = Ae(4), e.prevMatrix = Ae(4), e.absolutePoses = jr(o), e.posIndexes = GS(a), iu(i, t), Jg(t, "matrix3d"), o.snapRenderInfo = {
|
|
25648
25642
|
request: t.isRequest,
|
|
25649
25643
|
direction: a
|
|
25650
25644
|
};
|
|
@@ -25705,7 +25699,7 @@ var WN = {
|
|
|
25705
25699
|
},
|
|
25706
25700
|
dragControlEnd: function(i, t) {
|
|
25707
25701
|
var e = t.datas, r = t.isDrag;
|
|
25708
|
-
return e.isWarp ? (e.isWarp = !1, _t(i, "onWarpEnd",
|
|
25702
|
+
return e.isWarp ? (e.isWarp = !1, _t(i, "onWarpEnd", si(i, t, {})), r) : !1;
|
|
25709
25703
|
}
|
|
25710
25704
|
}, YN = /* @__PURE__ */ wt("area-pieces"), up = /* @__PURE__ */ wt("area-piece"), _T = /* @__PURE__ */ wt("avoid"), qN = wt("view-dragging");
|
|
25711
25705
|
function qm(i) {
|
|
@@ -26411,7 +26405,7 @@ var hL = {
|
|
|
26411
26405
|
if (F || G || k) {
|
|
26412
26406
|
var U = G ? I.slice(0, 8) : I;
|
|
26413
26407
|
A = U.map(function(V, nt) {
|
|
26414
|
-
var yt = nt === 0 ? U[U.length - 1] : U[nt - 1], X =
|
|
26408
|
+
var yt = nt === 0 ? U[U.length - 1] : U[nt - 1], X = Ue(yt, V), Dt = YS(yt, V);
|
|
26415
26409
|
return t.createElement("div", {
|
|
26416
26410
|
key: "clipLine".concat(nt),
|
|
26417
26411
|
className: wt("line", "clip-line", "snap-control"),
|
|
@@ -26484,11 +26478,11 @@ var hL = {
|
|
|
26484
26478
|
return x && ["vertical", "horizontal"].forEach(function(V) {
|
|
26485
26479
|
var nt = x[V], yt = V === "horizontal";
|
|
26486
26480
|
nt.isSnap && A.push.apply(A, nt.snap.posInfos.map(function(X, Dt) {
|
|
26487
|
-
var Rt = X.pos, Qt = Bt(ar(f, yt ? [0, Rt] : [Rt, 0], C), [p, v]),
|
|
26488
|
-
return ac(t, "", Qt,
|
|
26481
|
+
var Rt = X.pos, Qt = Bt(ar(f, yt ? [0, Rt] : [Rt, 0], C), [p, v]), je = Bt(ar(f, yt ? [l, Rt] : [Rt, h], C), [p, v]);
|
|
26482
|
+
return ac(t, "", Qt, je, a, "clip".concat(V, "snap").concat(Dt), "guideline");
|
|
26489
26483
|
})), nt.isBound && A.push.apply(A, nt.bounds.map(function(X, Dt) {
|
|
26490
|
-
var Rt = X.pos, Qt = Bt(ar(f, yt ? [0, Rt] : [Rt, 0], C), [p, v]),
|
|
26491
|
-
return ac(t, "", Qt,
|
|
26484
|
+
var Rt = X.pos, Qt = Bt(ar(f, yt ? [0, Rt] : [Rt, 0], C), [p, v]), je = Bt(ar(f, yt ? [l, Rt] : [Rt, h], C), [p, v]);
|
|
26485
|
+
return ac(t, "", Qt, je, a, "clip".concat(V, "bounds").concat(Dt), "guideline", "bounds", "bold");
|
|
26492
26486
|
}));
|
|
26493
26487
|
}), Mt(Mt([], R, !0), A, !0);
|
|
26494
26488
|
},
|
|
@@ -26587,8 +26581,8 @@ var hL = {
|
|
|
26587
26581
|
bottom: S
|
|
26588
26582
|
}, pt, et, 5), nt = V.horizontal, yt = V.vertical, X = nt.offset, Dt = yt.offset;
|
|
26589
26583
|
if (nt.isBound && (it[1] += X), yt.isBound && (it[0] += Dt), (Y || $) && F[0][0] === 0 && F[0][1] === 0) {
|
|
26590
|
-
var ht = yi(K), Rt = ht.bottom - ht.top, Qt = Y ? ht.right - ht.left : Rt,
|
|
26591
|
-
Qt -=
|
|
26584
|
+
var ht = yi(K), Rt = ht.bottom - ht.top, Qt = Y ? ht.right - ht.left : Rt, je = yt.isBound ? Math.abs(Dt) : yt.snapIndex === 0 ? -Dt : Dt, ur = nt.isBound ? Math.abs(X) : nt.snapIndex === 0 ? -X : X;
|
|
26585
|
+
Qt -= je, Rt -= ur, $ && (Rt = aT(yt, nt) > 0 ? Rt : Qt, Qt = Rt);
|
|
26592
26586
|
var $t = L[0];
|
|
26593
26587
|
L[1][1] = $t[1] - Rt, L[2][0] = $t[0] + Qt, L[3][1] = $t[1] + Rt, L[4][0] = $t[0] - Qt;
|
|
26594
26588
|
} else if (A && p && o) {
|
|
@@ -26642,7 +26636,7 @@ var hL = {
|
|
|
26642
26636
|
dragControlEnd: function(i, t) {
|
|
26643
26637
|
this.unset(i);
|
|
26644
26638
|
var e = t.isDrag, r = t.datas, n = t.isDouble, s = r.isLine, a = r.isClipStart, o = r.isControl;
|
|
26645
|
-
return a ? (_t(i, "onClipEnd",
|
|
26639
|
+
return a ? (_t(i, "onClipEnd", si(i, t, {})), n && (o ? lL(i, t) : s && uL(i, t)), n || e) : !1;
|
|
26646
26640
|
},
|
|
26647
26641
|
unset: function(i) {
|
|
26648
26642
|
i.state.clipPathState = "", i.state.snapBoundInfos = null;
|
|
@@ -26696,7 +26690,7 @@ var hL = {
|
|
|
26696
26690
|
},
|
|
26697
26691
|
dragControlEnd: function(i, t) {
|
|
26698
26692
|
var e = t.datas;
|
|
26699
|
-
return e.isDragOrigin ? (_t(i, "onDragOriginEnd",
|
|
26693
|
+
return e.isDragOrigin ? (_t(i, "onDragOriginEnd", si(i, t, {})), !0) : !1;
|
|
26700
26694
|
},
|
|
26701
26695
|
dragGroupControlCondition: function(i, t) {
|
|
26702
26696
|
return this.dragControlCondition(i, t);
|
|
@@ -26923,7 +26917,7 @@ var vL = {
|
|
|
26923
26917
|
return y;
|
|
26924
26918
|
}).length && RE(i, t, [0, 0], [0, 0], l);
|
|
26925
26919
|
}
|
|
26926
|
-
return _t(i, "onRoundEnd",
|
|
26920
|
+
return _t(i, "onRoundEnd", si(i, t, {})), e.borderRadiusState = "", !0;
|
|
26927
26921
|
},
|
|
26928
26922
|
unset: function(i) {
|
|
26929
26923
|
i.state.borderRadiusState = "";
|
|
@@ -27556,7 +27550,7 @@ var Wl = /* @__PURE__ */ function(i) {
|
|
|
27556
27550
|
}, e.updateTarget = function(r) {
|
|
27557
27551
|
this.updateRect(r, !0);
|
|
27558
27552
|
}, e.getRect = function() {
|
|
27559
|
-
var r = this.state, n =
|
|
27553
|
+
var r = this.state, n = jr(this.state), s = n[0], a = n[1], o = n[2], u = n[3], l = yi(n), h = r.width, f = r.height, d = l.width, p = l.height, v = l.left, g = l.top, m = [r.left, r.top], y = Jt(m, r.origin), _ = Jt(m, r.beforeOrigin), b = r.transformOrigin;
|
|
27560
27554
|
return {
|
|
27561
27555
|
width: d,
|
|
27562
27556
|
height: p,
|
|
@@ -28086,7 +28080,7 @@ var OL = /* @__PURE__ */ function(i) {
|
|
|
28086
28080
|
};
|
|
28087
28081
|
} else
|
|
28088
28082
|
return {
|
|
28089
|
-
poses:
|
|
28083
|
+
poses: jr(pt.state),
|
|
28090
28084
|
rotation: pt.getRotation()
|
|
28091
28085
|
};
|
|
28092
28086
|
}), dt = ht.map(function(pt) {
|
|
@@ -28106,7 +28100,7 @@ var OL = /* @__PURE__ */ function(i) {
|
|
|
28106
28100
|
p && (this.rotation = g.rotation, this.transformOrigin = o.defaultGroupOrigin || "50% 50%", this.scale = [1, 1]), this.renderGroupRects = d;
|
|
28107
28101
|
var m = this.rotation, y = this.scale, _ = g.width, b = g.height, x = g.minX, S = g.minY, w = "rotate(".concat(m, "deg) scale(").concat(y[0] >= 0 ? 1 : -1, ", ").concat(y[1] >= 0 ? 1 : -1, ")");
|
|
28108
28102
|
l.style.cssText += "left:0px;top:0px; transform-origin: ".concat(this.transformOrigin, "; width:").concat(_, "px; height:").concat(b, "px;") + "transform:".concat(w), a.width = _, a.height = b;
|
|
28109
|
-
var C = this.getContainer(), T = w_(this.controlBox.getElement(), l, this.controlBox.getElement(), this.getContainer(), this._rootContainer || C), O = [T.left, T.top], I =
|
|
28103
|
+
var C = this.getContainer(), T = w_(this.controlBox.getElement(), l, this.controlBox.getElement(), this.getContainer(), this._rootContainer || C), O = [T.left, T.top], I = jr(T), R = I[0], A = I[1], F = I[2], G = I[3], k = pd([R, A, F, G]), U = [k.minX, k.minY];
|
|
28110
28104
|
T.pos1 = Bt(R, U), T.pos2 = Bt(A, U), T.pos3 = Bt(F, U), T.pos4 = Bt(G, U), T.left = x - T.left + U[0], T.top = S - T.top + U[1], T.origin = Bt(Jt(O, T.origin), U), T.beforeOrigin = Bt(Jt(O, T.beforeOrigin), U), T.originalBeforeOrigin = Jt(O, T.originalBeforeOrigin);
|
|
28111
28105
|
var H = T.targetClientRect, K = y[0] * y[1] > 0 ? 1 : -1;
|
|
28112
28106
|
H.top += T.top - a.top, H.left += T.left - a.left, l.style.transform = "translate(".concat(-U[0], "px, ").concat(-U[1], "px) ").concat(w), this.updateState(j(j({}, T), {
|
|
@@ -28591,7 +28585,7 @@ const ct = class {
|
|
|
28591
28585
|
const t = (u = this.hArg[":id_dc"]) != null ? u : this.id_tag;
|
|
28592
28586
|
c(ct, qa)[t] = this;
|
|
28593
28587
|
const e = this.div = document.createElement("div");
|
|
28594
|
-
e.id = c(ct, Ku) + "_" +
|
|
28588
|
+
e.id = c(ct, Ku) + "_" + ++$e(ct, kc)._, e.classList.add("sn_design_cast"), e.dataset.id_dc = t, e.style.backgroundColor = `${this.bg_col}`, e.style.display = "none", this.rect = this.getRect(), P(this, Nc, T_).call(this), (this.parent && (l = document.querySelector(
|
|
28595
28589
|
`[data-id_dc="${this.parent.id_tag}"]`
|
|
28596
28590
|
)) != null ? l : c(ct, on)).appendChild(e);
|
|
28597
28591
|
const r = {
|
|
@@ -28616,7 +28610,7 @@ const ct = class {
|
|
|
28616
28610
|
}
|
|
28617
28611
|
const d = jt(this.rect.x += h / ct.sys.cvsScale + this.pivot.x), p = jt(this.rect.y += f / ct.sys.cvsScale + this.pivot.y);
|
|
28618
28612
|
this.setPos(d, p);
|
|
28619
|
-
const v =
|
|
28613
|
+
const v = ei(this.rect.width), g = ei(this.rect.height);
|
|
28620
28614
|
this.setSize(v, g), s({
|
|
28621
28615
|
...this.cnvPosArg(d, p),
|
|
28622
28616
|
...this.cnvSizeArg(v, g)
|
|
@@ -29087,12 +29081,12 @@ const Et = class extends _r {
|
|
|
29087
29081
|
let a = !1;
|
|
29088
29082
|
if (e.slice(0, 5) === "data:") {
|
|
29089
29083
|
const h = () => {
|
|
29090
|
-
const f =
|
|
29084
|
+
const f = ze.from(e);
|
|
29091
29085
|
r == null || r.addChild(f), n(f), s(a);
|
|
29092
29086
|
};
|
|
29093
|
-
return e in
|
|
29087
|
+
return e in Nr ? h() : (a = !0, new ti().add(e, e).load(h)), a;
|
|
29094
29088
|
}
|
|
29095
|
-
const o = [], u = new
|
|
29089
|
+
const o = [], u = new ti();
|
|
29096
29090
|
e.split(",").forEach((h, f) => {
|
|
29097
29091
|
if (!h)
|
|
29098
29092
|
throw "face\u5C5E\u6027\u306B\u7A7A\u8981\u7D20\u304C\u542B\u307E\u308C\u307E\u3059";
|
|
@@ -29104,7 +29098,7 @@ const Et = class extends _r {
|
|
|
29104
29098
|
}, p = f === 0 ? n : (m) => {
|
|
29105
29099
|
m.x = d.dx, m.y = d.dy, m.blendMode = d.blendmode;
|
|
29106
29100
|
};
|
|
29107
|
-
if (o.push({ fn: d.fn, fnc: p }), d.fn in Et.hFn2ResAniSpr || d.fn in
|
|
29101
|
+
if (o.push({ fn: d.fn, fnc: p }), d.fn in Et.hFn2ResAniSpr || d.fn in Nr || d.fn in ti.shared.resources)
|
|
29108
29102
|
return;
|
|
29109
29103
|
a = !0;
|
|
29110
29104
|
const v = c(Et, Ka).searchPath(d.fn, pr.SP_GSM), g = c(this, un).crypto ? { xhrType: v.slice(-5) === ".json" ? Nt.XHR_RESPONSE_TYPE.TEXT : Nt.XHR_RESPONSE_TYPE.BUFFER } : {};
|
|
@@ -29149,7 +29143,7 @@ const Et = class extends _r {
|
|
|
29149
29143
|
M(this, Ju, gi.create({
|
|
29150
29144
|
width: W.stageW,
|
|
29151
29145
|
height: W.stageH
|
|
29152
|
-
})), M(this, Di, new
|
|
29146
|
+
})), M(this, Di, new ze(c(this, Ju))), c(this, Di).visible = !1, this.spLay.addChildAt(c(this, Di), 0), c(this, Di).position.set(-this.spLay.x, -this.spLay.y);
|
|
29153
29147
|
let e = () => {
|
|
29154
29148
|
const r = this.spLay.alpha;
|
|
29155
29149
|
this.spLay.alpha = 1;
|
|
@@ -29188,7 +29182,7 @@ const Et = class extends _r {
|
|
|
29188
29182
|
return;
|
|
29189
29183
|
}
|
|
29190
29184
|
c(this, to)[e] = [r];
|
|
29191
|
-
const o = c(Et, Ka).searchPath(e, pr.SP_GSM), u = new
|
|
29185
|
+
const o = c(Et, Ka).searchPath(e, pr.SP_GSM), u = new ti().add({ name: e, url: o, xhrType: Nt.XHR_RESPONSE_TYPE.BUFFER });
|
|
29192
29186
|
c(Et, un).crypto && u.use((l, h) => {
|
|
29193
29187
|
c(Et, un).dec(l.extension, l.data).then((f) => {
|
|
29194
29188
|
if (l.extension !== "bin") {
|
|
@@ -29292,7 +29286,7 @@ s0 = new WeakMap(), Us = new WeakMap(), zn = new WeakMap(), Ka = new WeakMap(),
|
|
|
29292
29286
|
return;
|
|
29293
29287
|
}
|
|
29294
29288
|
const o = Lh(s.image), u = c(Et, Ka).searchPath(o, pr.SP_GSM);
|
|
29295
|
-
new
|
|
29289
|
+
new ti().use((h, f) => {
|
|
29296
29290
|
c(this, un).dec(h.extension, h.data).then((d) => {
|
|
29297
29291
|
h.data = d, d instanceof HTMLImageElement && (h.type = Nt.TYPE.IMAGE, URL.revokeObjectURL(d.src)), f == null || f();
|
|
29298
29292
|
}).catch((d) => c(this, zn).errScript(`Graphic \u30ED\u30FC\u30C9\u5931\u6557\u3067\u3059 dec2res4Cripto fn:${h.name} ${d}`, !1));
|
|
@@ -29318,7 +29312,7 @@ s0 = new WeakMap(), Us = new WeakMap(), zn = new WeakMap(), Ka = new WeakMap(),
|
|
|
29318
29312
|
const a = new j1(n.aTex);
|
|
29319
29313
|
return a.animationSpeed = (s = n.meta.animationSpeed) != null ? s : 1, a.play(), a;
|
|
29320
29314
|
}
|
|
29321
|
-
return e in
|
|
29315
|
+
return e in Nr ? ze.from(e) : e in Et.hFn2VElm ? ze.from(Et.hFn2VElm[e]) : e in r ? new ze(r[e].texture) : new ze();
|
|
29322
29316
|
}, Ju = new WeakMap(), Di = new WeakMap(), Qu = new WeakMap(), to = new WeakMap(), Xc = new WeakMap(), E(Kt, a0), E(Kt, o0), E(Kt, Vc), E(Kt, u0), E(Kt, s0, new Hl()), E(Kt, Us, {}), E(Kt, zn, void 0), E(Kt, Ka, void 0), E(Kt, Ja, void 0), E(Kt, un, void 0), E(Kt, Gc, void 0), E(Kt, Qa, 1), E(Kt, Uc, 1), E(Kt, jc, void 0), Z(Kt, "hFn2ResAniSpr", {}), E(Kt, $c, (e, r, n) => {
|
|
29323
29317
|
var s, a;
|
|
29324
29318
|
switch (r.type) {
|
|
@@ -29335,7 +29329,7 @@ s0 = new WeakMap(), Us = new WeakMap(), zn = new WeakMap(), Ka = new WeakMap(),
|
|
|
29335
29329
|
}
|
|
29336
29330
|
n();
|
|
29337
29331
|
}), Z(Kt, "hFn2VElm", {}), E(Kt, to, {}), E(Kt, Xc, {});
|
|
29338
|
-
var tl, Wc, eo, ie, hn, $n, l0,
|
|
29332
|
+
var tl, Wc, eo, ie, hn, $n, l0, Wr, Hs, bt, Vn, Er, wr, el, kp, Ri, Ai, Yc, rl, h0, NT, ro, il, Xn, io, no, so, nl, Wn, qc, P_, Yn, Zc, qn, cn, sl, Kc, O_, $s, ao, Jc, I_, li;
|
|
29339
29333
|
const It = class extends ve {
|
|
29340
29334
|
constructor(e, r, n) {
|
|
29341
29335
|
super();
|
|
@@ -29346,8 +29340,8 @@ const It = class extends ve {
|
|
|
29346
29340
|
E(this, Jc);
|
|
29347
29341
|
E(this, ie, document.createElement("span"));
|
|
29348
29342
|
E(this, hn, new ve());
|
|
29349
|
-
E(this, $n, new
|
|
29350
|
-
E(this,
|
|
29343
|
+
E(this, $n, new ii());
|
|
29344
|
+
E(this, Wr, new zL(this.spLay, this));
|
|
29351
29345
|
E(this, Hs, new HL(this));
|
|
29352
29346
|
E(this, bt, {
|
|
29353
29347
|
fontsize: 24,
|
|
@@ -29374,7 +29368,7 @@ const It = class extends ve {
|
|
|
29374
29368
|
E(this, $s, "Quadratic.Out");
|
|
29375
29369
|
E(this, ao, "Quadratic.Out");
|
|
29376
29370
|
E(this, li, void 0);
|
|
29377
|
-
this.spLay = e, this.canFocus = r, this.sys = n, c(this, ie).classList.add("sn_tx"), c(this, ie).style.position = "absolute", c(It, Wc).view.parentElement.appendChild(c(this, ie)), this.addChild(c(this, hn)), this.addChild(c(this, $n)), c(this, $n).name = "grpDbgMasume", c(this,
|
|
29371
|
+
this.spLay = e, this.canFocus = r, this.sys = n, c(this, ie).classList.add("sn_tx"), c(this, ie).style.position = "absolute", c(It, Wc).view.parentElement.appendChild(c(this, ie)), this.addChild(c(this, hn)), this.addChild(c(this, $n)), c(this, $n).name = "grpDbgMasume", c(this, Wr).adopt(c(this, Hs));
|
|
29378
29372
|
}
|
|
29379
29373
|
static init(e, r) {
|
|
29380
29374
|
M(It, tl, e), M(It, Wc, r), M(It, no, /[、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々]/), M(It, so, /[[({〈「『【〔“〝]/), M(It, nl, /[─‥…]/);
|
|
@@ -29406,7 +29400,7 @@ const It = class extends ve {
|
|
|
29406
29400
|
c(this, ie).style.cssText = "";
|
|
29407
29401
|
else
|
|
29408
29402
|
"alpha" in e && (r.opacity = String(this.spLay.alpha));
|
|
29409
|
-
if ("width" in e && (r.width = ((n = e.width) != null ? n : "0") + "px"), "height" in e && (r.height = ((s = e.height) != null ? s : "0") + "px"), "pl" in e && (r.paddingLeft = ((a = e.pl) != null ? a : "0") + "px"), "pr" in e && (r.paddingRight = ((o = e.pr) != null ? o : "0") + "px"), "pt" in e && (r.paddingTop = ((u = e.pt) != null ? u : "0") + "px"), "pb" in e && (r.paddingBottom = ((l = e.pb) != null ? l : "0") + "px"), "kinsoku_sol" in e && M(It, no, new RegExp(`[${e.kinsoku_sol}]`)), "kinsoku_eol" in e && M(It, so, new RegExp(`[${e.kinsoku_eol}]`)), "kinsoku_dns" in e && M(It, nl, new RegExp(`[${e.kinsoku_dns}]`)), P(this, el, kp).call(this), c(this,
|
|
29403
|
+
if ("width" in e && (r.width = ((n = e.width) != null ? n : "0") + "px"), "height" in e && (r.height = ((s = e.height) != null ? s : "0") + "px"), "pl" in e && (r.paddingLeft = ((a = e.pl) != null ? a : "0") + "px"), "pr" in e && (r.paddingRight = ((o = e.pr) != null ? o : "0") + "px"), "pt" in e && (r.paddingTop = ((u = e.pt) != null ? u : "0") + "px"), "pb" in e && (r.paddingBottom = ((l = e.pb) != null ? l : "0") + "px"), "kinsoku_sol" in e && M(It, no, new RegExp(`[${e.kinsoku_sol}]`)), "kinsoku_eol" in e && M(It, so, new RegExp(`[${e.kinsoku_eol}]`)), "kinsoku_dns" in e && M(It, nl, new RegExp(`[${e.kinsoku_dns}]`)), P(this, el, kp).call(this), c(this, Wr).sethArg(e), M(this, Ri, this.spLay.position.x), r.transformOrigin = `${this.spLay.pivot.x}px ${this.spLay.pivot.y}px`, this.cvsResize(), r.display = this.spLay.visible ? "inline" : "none", r.textShadow = (f = (h = e.filter) != null ? h : r.textShadow) != null ? f : "", M(this, Vn, ft(e, "break_fixed", c(this, Vn))), M(this, Er, Q(e, "break_fixed_left", c(this, Er))), M(this, wr, Q(e, "break_fixed_top", c(this, wr))), ":redraw" in e && c(this, io) > 0) {
|
|
29410
29404
|
const d = [
|
|
29411
29405
|
c(this, ie).innerHTML.replaceAll(/(animation-delay: )\d+ms/g, "$10ms"),
|
|
29412
29406
|
`<span class='sn_ch' data-add='{"ch_in_style":"default"}'>\u3000</span>`
|
|
@@ -29416,7 +29410,7 @@ const It = class extends ve {
|
|
|
29416
29410
|
}
|
|
29417
29411
|
cvsResize() {
|
|
29418
29412
|
const e = c(this, ie).style, r = this.sys.cvsScale;
|
|
29419
|
-
e.left = `${this.sys.ofsLeft4elm + c(this, Ri) * r}px`, e.top = `${this.sys.ofsTop4elm + this.spLay.position.y * r}px`, e.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x * r}, ${this.spLay.scale.y * r})`, c(this,
|
|
29413
|
+
e.left = `${this.sys.ofsLeft4elm + c(this, Ri) * r}px`, e.top = `${this.sys.ofsTop4elm + this.spLay.position.y * r}px`, e.transform = `rotate(${this.spLay.angle}deg) scale(${this.spLay.scale.x * r}, ${this.spLay.scale.y * r})`, c(this, Wr).cvsResize(), c(this, Hs).cvsResize();
|
|
29420
29414
|
}
|
|
29421
29415
|
get tategaki() {
|
|
29422
29416
|
return c(this, Ai);
|
|
@@ -29525,7 +29519,7 @@ const It = class extends ve {
|
|
|
29525
29519
|
if (G.elm.dataset.lnk) {
|
|
29526
29520
|
const L = G.elm.parentElement.closest("[data-arg]"), $ = JSON.parse((w = L.dataset.arg) != null ? w : "{}");
|
|
29527
29521
|
$.key = `lnk=[${F}] ` + this.name;
|
|
29528
|
-
const Y = new
|
|
29522
|
+
const Y = new ze();
|
|
29529
29523
|
P(this, qc, P_).call(this, Y, $, H, k, v, K != null ? K : {});
|
|
29530
29524
|
const ht = (C = $.style) != null ? C : "", dt = ht + ((T = $.style_hover) != null ? T : ""), tt = ht + ((O = $.style_clicked) != null ? O : ""), ot = (I = $.r_style) != null ? I : "", B = ot + ((R = $.r_style_hover) != null ? R : ""), gt = ot + ((A = $.r_style_clicked) != null ? A : ""), st = L.querySelectorAll("rt");
|
|
29531
29525
|
st.forEach((q) => q.dataset.st_r_bk = q.style.cssText);
|
|
@@ -29647,14 +29641,14 @@ const It = class extends ve {
|
|
|
29647
29641
|
var r;
|
|
29648
29642
|
P(this, Jc, I_).call(this);
|
|
29649
29643
|
const e = new It(this.spLay, () => this.canFocus(), this.sys);
|
|
29650
|
-
return M(e, bt, c(this, bt)), c(e, ie).style.cssText = c(this, ie).style.cssText, M(e, Ri, c(this, Ri)), e.name = this.name, P(r = e, el, kp).call(r), c(e,
|
|
29644
|
+
return M(e, bt, c(this, bt)), c(e, ie).style.cssText = c(this, ie).style.cssText, M(e, Ri, c(this, Ri)), e.name = this.name, P(r = e, el, kp).call(r), c(e, Wr).sethArg(c(this, Wr).gethArg()), M(e, ro, c(this, ro)), M(e, $s, c(this, $s)), M(e, ao, c(this, ao)), M(e, Vn, c(this, Vn)), M(e, Er, c(this, Er)), M(e, wr, c(this, wr)), this.destroy(), e;
|
|
29651
29645
|
}
|
|
29652
29646
|
record() {
|
|
29653
29647
|
return {
|
|
29654
29648
|
infTL: c(this, bt),
|
|
29655
29649
|
cssText: c(this, ie).style.cssText,
|
|
29656
29650
|
left: c(this, Ri),
|
|
29657
|
-
idc_hArg: c(this,
|
|
29651
|
+
idc_hArg: c(this, Wr).gethArg(),
|
|
29658
29652
|
ch_filter: c(this, ro),
|
|
29659
29653
|
fi_easing: c(this, $s),
|
|
29660
29654
|
fo_easing: c(this, ao),
|
|
@@ -29665,23 +29659,23 @@ const It = class extends ve {
|
|
|
29665
29659
|
}
|
|
29666
29660
|
playback(e) {
|
|
29667
29661
|
var r, n, s;
|
|
29668
|
-
M(this, bt, e.infTL), this.position.set(c(this, bt).pad_left, c(this, bt).pad_top), c(this, ie).style.cssText = e.cssText, M(this, Ri, e.left), P(this, el, kp).call(this), c(this,
|
|
29662
|
+
M(this, bt, e.infTL), this.position.set(c(this, bt).pad_left, c(this, bt).pad_top), c(this, ie).style.cssText = e.cssText, M(this, Ri, e.left), P(this, el, kp).call(this), c(this, Wr).sethArg(e.idc_hArg), M(this, ro, e.ch_filter), M(this, $s, e.fi_easing), M(this, ao, e.fo_easing), M(this, Vn, (r = e.break_fixed) != null ? r : !1), M(this, Er, (n = e.break_fixed_left) != null ? n : 0), M(this, wr, (s = e.break_fixed_top) != null ? s : 0);
|
|
29669
29663
|
}
|
|
29670
29664
|
snapshot(e, r) {
|
|
29671
29665
|
P(this, h0, NT).call(this, (n) => {
|
|
29672
|
-
M(this, li, new
|
|
29666
|
+
M(this, li, new ze(n)), c(this, Ai) && (c(this, li).x += W.stageW - (c(this, Ri) + c(this, bt).$width)), c(this, li).y -= c(this, rl), c(this, li).texture.frame = new Ot(0, 0, c(this, bt).$width - c(this, Ri), c(this, bt).$height), c(this, hn).addChild(c(this, li)), e.render(c(this, li), void 0, !1), r();
|
|
29673
29667
|
}, !1);
|
|
29674
29668
|
}
|
|
29675
29669
|
snapshot_end() {
|
|
29676
29670
|
c(this, li) && (c(this, hn).removeChild(c(this, li)), M(this, li, void 0));
|
|
29677
29671
|
}
|
|
29678
29672
|
makeDesignCast(e) {
|
|
29679
|
-
e(c(this,
|
|
29680
|
-
const r = c(this,
|
|
29673
|
+
e(c(this, Wr));
|
|
29674
|
+
const r = c(this, Wr).gethArg();
|
|
29681
29675
|
c(this, Hs).sethArg({ ...r, ":id_dc": r[":id_tag"] + "_pad" }), e(c(this, Hs));
|
|
29682
29676
|
}
|
|
29683
29677
|
showDesignCast() {
|
|
29684
|
-
c(this,
|
|
29678
|
+
c(this, Wr).visible = !0, c(this, Hs).visible = !0;
|
|
29685
29679
|
}
|
|
29686
29680
|
dump() {
|
|
29687
29681
|
const e = [], r = c(this, ie).style, n = r.length;
|
|
@@ -29696,7 +29690,7 @@ const It = class extends ve {
|
|
|
29696
29690
|
}
|
|
29697
29691
|
};
|
|
29698
29692
|
let De = It;
|
|
29699
|
-
tl = new WeakMap(), Wc = new WeakMap(), eo = new WeakMap(), ie = new WeakMap(), hn = new WeakMap(), $n = new WeakMap(), l0 = new WeakMap(),
|
|
29693
|
+
tl = new WeakMap(), Wc = new WeakMap(), eo = new WeakMap(), ie = new WeakMap(), hn = new WeakMap(), $n = new WeakMap(), l0 = new WeakMap(), Wr = new WeakMap(), Hs = new WeakMap(), bt = new WeakMap(), Vn = new WeakMap(), Er = new WeakMap(), wr = new WeakMap(), el = new WeakSet(), kp = function() {
|
|
29700
29694
|
var s;
|
|
29701
29695
|
const e = c(this, ie).style, r = parseFloat(e.fontSize || "0");
|
|
29702
29696
|
c(this, bt).fontsize = r, c(this, bt).pad_left = parseFloat(e.paddingLeft || "0"), c(this, bt).pad_right = parseFloat(e.paddingRight || "0"), c(this, bt).pad_top = parseFloat(e.paddingTop || "0"), c(this, bt).pad_bottom = parseFloat(e.paddingBottom || "0"), c(this, bt).$width = parseFloat(e.width || "0"), c(this, bt).$height = parseFloat(e.height || "0"), this.position.set(c(this, bt).pad_left, c(this, bt).pad_top), M(this, Ai, e.writingMode === "vertical-rl"), M(this, Yc, 0), M(this, rl, 0);
|
|
@@ -30040,8 +30034,8 @@ const Da = class extends ve {
|
|
|
30040
30034
|
});
|
|
30041
30035
|
this.hArg = e, this.evtMng = r, this.resolve = n, this.canFocus = s, W.isDbg && (this.makeDesignCast = (_) => _(c(this, Zn)), this.cvsResize = () => c(this, Zn).cvsResize());
|
|
30042
30036
|
let a = {
|
|
30043
|
-
x: this.x =
|
|
30044
|
-
y: this.y =
|
|
30037
|
+
x: this.x = ei((v = e.left) != null ? v : 0),
|
|
30038
|
+
y: this.y = ei((g = e.top) != null ? g : 0),
|
|
30045
30039
|
rotation: this.angle = Q(e, "rotation", this.angle),
|
|
30046
30040
|
pivot_x: this.pivot.x = Q(e, "pivot_x", this.pivot.x),
|
|
30047
30041
|
pivot_y: this.pivot.y = Q(e, "pivot_y", this.pivot.y),
|
|
@@ -30127,9 +30121,9 @@ const Da = class extends ve {
|
|
|
30127
30121
|
}
|
|
30128
30122
|
static init(e) {
|
|
30129
30123
|
!e.oCfg.debug.masume || (M(Da, tf, (r, n) => r.addChild(
|
|
30130
|
-
new
|
|
30124
|
+
new ii().beginFill(8926088, 0.2).lineStyle(1, 8926088, 1).drawRect(n.x, n.y, n.width, n.height).endFill()
|
|
30131
30125
|
)), M(Da, ef, (r, n, s, a) => r.addChild(
|
|
30132
|
-
new
|
|
30126
|
+
new ii().beginFill(8926088, 0.2).lineStyle(1, 8926088, 1).drawRect(n.x, n.y, s, a).endFill()
|
|
30133
30127
|
)));
|
|
30134
30128
|
}
|
|
30135
30129
|
setText(e) {
|
|
@@ -30182,11 +30176,11 @@ tf = new WeakMap(), ef = new WeakMap(), Fi = new WeakMap(), Zn = new WeakMap(),
|
|
|
30182
30176
|
var f;
|
|
30183
30177
|
M(this, ol, e), r.alpha = e.alpha = Q(this.hArg, "alpha", e.alpha), c(this, Zn).setSp(e);
|
|
30184
30178
|
const n = e.width / 3, s = e.height, a = e.texture.baseTexture, o = new St(a, new Ot(0, 0, n, s)), u = new St(a, new Ot(n, 0, n, s)), l = new St(a, new Ot(n * 2, 0, n, s)), h = () => e.texture = o;
|
|
30185
|
-
h(), this.normal = h, M(this, ul, () => this.canFocus() ? (e.texture = l, !0) : !1), M(this, ll, () => e.texture = u), "width" in this.hArg ? (r.width =
|
|
30179
|
+
h(), this.normal = h, M(this, ul, () => this.canFocus() ? (e.texture = l, !0) : !1), M(this, ll, () => e.texture = u), "width" in this.hArg ? (r.width = ei(this.hArg.width), this.scale.x *= r.width / n) : r.width = n, "height" in this.hArg ? (r.height = ei(this.hArg.height), this.scale.y *= r.height / n) : r.height = n, e.name = JSON.stringify(r), c(f = Da, ef).call(f, this, e, n, s);
|
|
30186
30180
|
}, Z(Vi, "fontFamily", "'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '\u6E38\u30B4\u30B7\u30C3\u30AF Medium', meiryo, sans-serif"), E(Vi, tf, (e, r) => {
|
|
30187
30181
|
}), E(Vi, ef, (e, r, n, s) => {
|
|
30188
30182
|
});
|
|
30189
|
-
var hl, Bi, sf, cl, af, A_, of, F_, uf, uo, lf, Kn, lo, c0, LT, Jn, hi, ki, he, dn, te, hf, pn, f0,
|
|
30183
|
+
var hl, Bi, sf, cl, af, A_, of, F_, uf, uo, lf, Kn, lo, c0, LT, Jn, hi, ki, he, dn, te, hf, pn, f0, Or, ho, Oh, co, fl, fo, Ih, dl, cf, B_, ff, k_, po, vo, pl, df, vl, Vs, Ir, d0, GT, Yr, pf, gl, Np, Qn, Ta, ts, Ni, ci, fi, vf, N_, ml, Lp, gf, L_, go;
|
|
30190
30184
|
const Ft = class extends _r {
|
|
30191
30185
|
constructor() {
|
|
30192
30186
|
super();
|
|
@@ -30208,7 +30202,7 @@ const Ft = class extends _r {
|
|
|
30208
30202
|
E(this, te, new De(this.spLay, () => this.canFocus(), c(Ft, lf)));
|
|
30209
30203
|
E(this, hf, new sa());
|
|
30210
30204
|
E(this, pn, document.createElement("span"));
|
|
30211
|
-
E(this,
|
|
30205
|
+
E(this, Or, new ve());
|
|
30212
30206
|
E(this, co, "");
|
|
30213
30207
|
E(this, fl, !0);
|
|
30214
30208
|
E(this, dl, "");
|
|
@@ -30218,8 +30212,8 @@ const Ft = class extends _r {
|
|
|
30218
30212
|
E(this, df, new RegExp("[\u3000]"));
|
|
30219
30213
|
Z(this, "isCur", !1);
|
|
30220
30214
|
E(this, Vs, () => "");
|
|
30221
|
-
E(this,
|
|
30222
|
-
E(this,
|
|
30215
|
+
E(this, Ir, "");
|
|
30216
|
+
E(this, Yr, !1);
|
|
30223
30217
|
E(this, pf, (e, r) => {
|
|
30224
30218
|
var l, h, f, d, p, v, g, m, y, _;
|
|
30225
30219
|
c(Ft, hl).oCfg.debug.putCh && console.log(`\u{1F58A} \u6587\u5B57\u8868\u793A text:\`${e}\` ruby:\`${r}\` name:\`${this.name_}\``);
|
|
@@ -30228,12 +30222,12 @@ const Ft = class extends _r {
|
|
|
30228
30222
|
const [a, ...o] = n, u = o.join("\uFF5C");
|
|
30229
30223
|
switch (n.length) {
|
|
30230
30224
|
case 1:
|
|
30231
|
-
if (M(this,
|
|
30225
|
+
if (M(this, Yr, !0), e === `
|
|
30232
30226
|
`) {
|
|
30233
30227
|
c(this, Ni) ? (M(this, Ni, !1), s = "<ruby>\u3000<rt>\u3000</rt></ruby><br/>") : s = "<br/>";
|
|
30234
30228
|
break;
|
|
30235
30229
|
}
|
|
30236
|
-
c(this, Ni) && (M(this, Ni, !1), r === "" && (r = "\u3000")), s = P(this, gl, Np).call(this, e, r, c(this,
|
|
30230
|
+
c(this, Ni) && (M(this, Ni, !1), r === "" && (r = "\u3000")), s = P(this, gl, Np).call(this, e, r, c(this, Ir));
|
|
30237
30231
|
break;
|
|
30238
30232
|
default:
|
|
30239
30233
|
switch (a) {
|
|
@@ -30245,12 +30239,12 @@ const Ft = class extends _r {
|
|
|
30245
30239
|
case "121":
|
|
30246
30240
|
case "even":
|
|
30247
30241
|
case "1ruby":
|
|
30248
|
-
M(this, Ni, !1), M(this,
|
|
30242
|
+
M(this, Ni, !1), M(this, Yr, !0), s = P(this, gl, Np).call(this, e, u, a);
|
|
30249
30243
|
break;
|
|
30250
30244
|
case "gotxt":
|
|
30251
|
-
P(this, ml, Lp).call(this), c(this,
|
|
30245
|
+
P(this, ml, Lp).call(this), c(this, Yr) ? (this.isCur && c(Ft, cl).recText(
|
|
30252
30246
|
c(this, ci).join("").replace(/^<ruby> <rt> <\/rt><\/ruby>(<br\/>)+/, "").replaceAll(/style='(anim\S+ \S+?;\s*)+/g, "style='").replaceAll(/( style=''| data-(add|arg|cmd)='.+?'|\n+|\t+)/g, "").replaceAll(/class='sn_ch .+?'/g, "class='sn_ch'").replaceAll("display: none;", "").replaceAll("class='offrec'", "style='display: none;'")
|
|
30253
|
-
), c(this, te).goTxt(c(this, ci)), M(this,
|
|
30247
|
+
), c(this, te).goTxt(c(this, ci)), M(this, Yr, !1), M(this, ts, 0)) : this.isCur && c(Ft, uo).noticeCompTxt();
|
|
30254
30248
|
return;
|
|
30255
30249
|
case "add":
|
|
30256
30250
|
{
|
|
@@ -30262,7 +30256,7 @@ const Ft = class extends _r {
|
|
|
30262
30256
|
c(this, ci).push("</span>"), P(this, ml, Lp).call(this);
|
|
30263
30257
|
return;
|
|
30264
30258
|
case "grp":
|
|
30265
|
-
M(this,
|
|
30259
|
+
M(this, Yr, !0);
|
|
30266
30260
|
{
|
|
30267
30261
|
const b = JSON.parse(u);
|
|
30268
30262
|
if ((l = b.id) != null || (b.id = c(this, ci).length), b.id === "break") {
|
|
@@ -30274,13 +30268,13 @@ const Ft = class extends _r {
|
|
|
30274
30268
|
s = `<span${x} style='${S} ${b.style}'><ruby><span data-cmd='grp' data-arg='${JSON.stringify(b)}'${w} style='${S} display: inline;'>\u3000</span><rt${w}${this.mkStyle_r_align(
|
|
30275
30269
|
"\u3000",
|
|
30276
30270
|
b.r,
|
|
30277
|
-
c(this,
|
|
30271
|
+
c(this, Ir),
|
|
30278
30272
|
c(this, pn).style.cssText + ((v = (p = c(this, fi).at(-1)) == null ? void 0 : p.o.r_style) != null ? v : "") + b.r_style
|
|
30279
30273
|
)}>${b.r}</rt></ruby></span>`;
|
|
30280
30274
|
}
|
|
30281
30275
|
break;
|
|
30282
30276
|
case "tcy":
|
|
30283
|
-
M(this, Ni, !1), M(this,
|
|
30277
|
+
M(this, Ni, !1), M(this, Yr, !0);
|
|
30284
30278
|
{
|
|
30285
30279
|
c(Ft, Bi).doRecLog() && M(this, go, c(this, go) + (e + (r ? `\u300A${r}\u300B` : "")));
|
|
30286
30280
|
const { t: b, r: x = "", wait: S = null, style: w = "", r_style: C = "" } = JSON.parse(u), T = W.isSafari ? x.replaceAll(/[A-Za-z0-9]/g, (A) => String.fromCharCode(A.charCodeAt(0) + 65248)) : x, { cl: O, sty: I, lnk: R } = P(this, Qn, Ta).call(this, !0, S);
|
|
@@ -30289,7 +30283,7 @@ text-combine-upright: all;
|
|
|
30289
30283
|
-webkit-text-combine: horizontal;'>${b}</span><rt${R}${this.mkStyle_r_align(
|
|
30290
30284
|
b,
|
|
30291
30285
|
T,
|
|
30292
|
-
c(this,
|
|
30286
|
+
c(this, Ir),
|
|
30293
30287
|
c(this, pn).style.cssText + ((m = (g = c(this, fi).at(-1)) == null ? void 0 : g.o.r_style) != null ? m : "") + C
|
|
30294
30288
|
)}>${T}</rt></ruby></span>`;
|
|
30295
30289
|
}
|
|
@@ -30298,10 +30292,10 @@ text-combine-upright: all;
|
|
|
30298
30292
|
De.delBreak();
|
|
30299
30293
|
return;
|
|
30300
30294
|
case "span":
|
|
30301
|
-
M(this,
|
|
30295
|
+
M(this, Yr, !0), P(this, gf, L_).call(this, JSON.parse(u));
|
|
30302
30296
|
return;
|
|
30303
30297
|
case "link":
|
|
30304
|
-
M(this,
|
|
30298
|
+
M(this, Yr, !0);
|
|
30305
30299
|
{
|
|
30306
30300
|
const b = JSON.parse(u);
|
|
30307
30301
|
b[":link"] = " data-lnk='@'";
|
|
@@ -30310,10 +30304,10 @@ text-combine-upright: all;
|
|
|
30310
30304
|
}
|
|
30311
30305
|
return;
|
|
30312
30306
|
case "endlink":
|
|
30313
|
-
M(this,
|
|
30307
|
+
M(this, Yr, !0), c(this, ci).push("</span>"), P(this, ml, Lp).call(this);
|
|
30314
30308
|
return;
|
|
30315
30309
|
default:
|
|
30316
|
-
M(this,
|
|
30310
|
+
M(this, Yr, !0), s = P(this, gl, Np).call(this, e, r, c(this, Ir));
|
|
30317
30311
|
}
|
|
30318
30312
|
break;
|
|
30319
30313
|
}
|
|
@@ -30326,16 +30320,16 @@ text-combine-upright: all;
|
|
|
30326
30320
|
Z(this, "click", () => !this.spLay.interactiveChildren || !this.spLay.visible ? !1 : c(this, te).skipChIn());
|
|
30327
30321
|
E(this, go, "");
|
|
30328
30322
|
Z(this, "addButton", (e) => new Promise((r) => {
|
|
30329
|
-
e.key = `btn=[${c(this,
|
|
30323
|
+
e.key = `btn=[${c(this, Or).children.length}] ` + this.name_, e[":id_tag"] = e.key.slice(0, -7), ft(e, "hint_tate", c(this, te).tategaki);
|
|
30330
30324
|
const n = new Vi(e, c(Ft, uo), () => r(), () => this.canFocus());
|
|
30331
|
-
n.name = JSON.stringify(e).replaceAll('"', "'"), c(this,
|
|
30325
|
+
n.name = JSON.stringify(e).replaceAll('"', "'"), c(this, Or).addChild(n);
|
|
30332
30326
|
}));
|
|
30333
30327
|
Z(this, "record", () => ({
|
|
30334
30328
|
...super.record(),
|
|
30335
30329
|
enabled: this.enabled,
|
|
30336
30330
|
r_cssText: c(this, pn).style.cssText,
|
|
30337
|
-
r_align: c(this,
|
|
30338
|
-
b_do: c(this, he) === void 0 ? void 0 : c(this, he) instanceof
|
|
30331
|
+
r_align: c(this, Ir),
|
|
30332
|
+
b_do: c(this, he) === void 0 ? void 0 : c(this, he) instanceof ze ? "Sprite" : "Graphics",
|
|
30339
30333
|
b_pic: c(this, dn),
|
|
30340
30334
|
b_color: c(this, Jn),
|
|
30341
30335
|
b_alpha: c(this, hi),
|
|
@@ -30343,9 +30337,9 @@ text-combine-upright: all;
|
|
|
30343
30337
|
ffs: c(this, po),
|
|
30344
30338
|
txs: c(this, te).record(),
|
|
30345
30339
|
strNoFFS: c(this, pl),
|
|
30346
|
-
btns: c(this,
|
|
30340
|
+
btns: c(this, Or).children.map((e) => e.name)
|
|
30347
30341
|
}));
|
|
30348
|
-
this.spLay.addChild(c(this, te)), c(this, hf).init(c(this, pf)), this.spLay.addChild(c(this,
|
|
30342
|
+
this.spLay.addChild(c(this, te)), c(this, hf).init(c(this, pf)), this.spLay.addChild(c(this, Or)), c(this, Or).name = "cntBtn";
|
|
30349
30343
|
const e = 16;
|
|
30350
30344
|
this.lay({ style: `width: ${W.stageW}px; height: ${W.stageH}px; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '\u6E38\u30B4\u30B7\u30C3\u30AF Medium', meiryo, sans-serif; color: white; font-size: 24px; line-height: 1.5; padding: ${e}px;`, in_style: "default", out_style: "default", back_clear: "true" });
|
|
30351
30345
|
}
|
|
@@ -30421,12 +30415,12 @@ text-combine-upright: all;
|
|
|
30421
30415
|
c(this, te).cvsResize();
|
|
30422
30416
|
}
|
|
30423
30417
|
cvsResizeChildren() {
|
|
30424
|
-
for (const e of c(this,
|
|
30418
|
+
for (const e of c(this, Or).children)
|
|
30425
30419
|
e.cvsResize();
|
|
30426
30420
|
}
|
|
30427
30421
|
lay(e) {
|
|
30428
30422
|
var r;
|
|
30429
|
-
if (super.lay(e), _r.setXY(this.spLay, e, this.spLay), e[":id_tag"] = this.name_.slice(0, -7), sa.setting(e), P(this, ff, k_).call(this, e), c(this, te).lay(e), "r_align" in e && M(this,
|
|
30423
|
+
if (super.lay(e), _r.setXY(this.spLay, e, this.spLay), e[":id_tag"] = this.name_.slice(0, -7), sa.setting(e), P(this, ff, k_).call(this, e), c(this, te).lay(e), "r_align" in e && M(this, Ir, (r = e.r_align) != null ? r : ""), M(this, Vs, W.isSafari ? c(this, te).tategaki ? (n, s) => `text-align: start; height: ${s}em; padding-top: ${n}; padding-bottom: ${n};` : (n, s) => `text-align: start; width: ${s}em; padding-left: ${n}; padding-right: ${n};` : c(this, te).tategaki ? (n) => `text-align: justify; text-align-last: justify; padding-top: ${n}; padding-bottom: ${n};` : (n) => `text-align: justify; text-align-last: justify; padding-left: ${n}; padding-right: ${n};`), W.isFirefox && (this.mkStyle_r_align = P(this, d0, GT)), "r_style" in e)
|
|
30430
30424
|
if (e.r_style) {
|
|
30431
30425
|
const n = document.createElement("span");
|
|
30432
30426
|
n.style.cssText = e.r_style;
|
|
@@ -30442,7 +30436,7 @@ text-combine-upright: all;
|
|
|
30442
30436
|
} else
|
|
30443
30437
|
c(this, pn).style.cssText = "";
|
|
30444
30438
|
if ("alpha" in e)
|
|
30445
|
-
for (const n of c(this,
|
|
30439
|
+
for (const n of c(this, Or).children)
|
|
30446
30440
|
n.alpha = this.spLay.alpha;
|
|
30447
30441
|
return P(this, ho, Oh).call(this, e), P(this, fo, Ih).call(this, e), P(this, cf, B_).call(this, e, (n) => {
|
|
30448
30442
|
n && c(Ft, uf).resume();
|
|
@@ -30456,8 +30450,8 @@ text-combine-upright: all;
|
|
|
30456
30450
|
}
|
|
30457
30451
|
chgBackAlpha(e) {
|
|
30458
30452
|
const r = c(this, ki) ? c(this, hi) : e * c(this, hi);
|
|
30459
|
-
c(this, he) instanceof
|
|
30460
|
-
M(this, he, new
|
|
30453
|
+
c(this, he) instanceof ii && (c(this, he) && (this.spLay.removeChild(c(this, he)), c(this, he).destroy()), this.spLay.addChildAt(
|
|
30454
|
+
M(this, he, new ii()).beginFill(c(this, Jn)).lineStyle(void 0).drawRect(0, 0, c(this, te).getWidth, c(this, te).getHeight).endFill(),
|
|
30461
30455
|
0
|
|
30462
30456
|
), c(this, he).name = "back(color)"), c(this, he) && (c(this, he).visible = r > 0, c(this, he).alpha = r);
|
|
30463
30457
|
}
|
|
@@ -30510,11 +30504,11 @@ text-combine-upright: all;
|
|
|
30510
30504
|
}
|
|
30511
30505
|
clearLay(e) {
|
|
30512
30506
|
super.clearLay(e), this.clearText();
|
|
30513
|
-
for (const r of c(this,
|
|
30507
|
+
for (const r of c(this, Or).removeChildren())
|
|
30514
30508
|
r.destroy();
|
|
30515
30509
|
}
|
|
30516
30510
|
playback(e, r) {
|
|
30517
|
-
super.playback(e, r), this.enabled = e.enabled, c(this, pn).style.cssText = e.r_cssText, M(this,
|
|
30511
|
+
super.playback(e, r), this.enabled = e.enabled, c(this, pn).style.cssText = e.r_cssText, M(this, Ir, e.r_align), this.cvsResize(), P(this, ff, k_).call(this, e), c(this, te).playback(e.txs), M(this, hi, e.b_alpha), M(this, ki, e.b_alpha_isfixed), r.push(new Promise((s) => {
|
|
30518
30512
|
const a = e.b_do ? e.b_do === "Sprite" ? { b_pic: e.b_pic } : { b_color: e.b_color } : { b_pic: "" };
|
|
30519
30513
|
a.b_alpha = e.b_alpha, a.b_alpha_isfixed = e.b_alpha_isfixed, P(this, cf, B_).call(this, a, (o) => {
|
|
30520
30514
|
o && s();
|
|
@@ -30534,24 +30528,24 @@ text-combine-upright: all;
|
|
|
30534
30528
|
}
|
|
30535
30529
|
makeDesignCastChildren(e) {
|
|
30536
30530
|
if (!!this.spLay.visible)
|
|
30537
|
-
for (const r of c(this,
|
|
30531
|
+
for (const r of c(this, Or).children)
|
|
30538
30532
|
r.makeDesignCast(e);
|
|
30539
30533
|
}
|
|
30540
30534
|
showDesignCast() {
|
|
30541
30535
|
c(this, te).showDesignCast();
|
|
30542
30536
|
}
|
|
30543
30537
|
showDesignCastChildren() {
|
|
30544
|
-
for (const e of c(this,
|
|
30538
|
+
for (const e of c(this, Or).children)
|
|
30545
30539
|
e.showDesignCast();
|
|
30546
30540
|
}
|
|
30547
30541
|
dump() {
|
|
30548
|
-
return c(this, pf).call(this, "", "gotxt\uFF5C"), super.dump() + `, "enabled":"${this.enabled}", ${c(this, te).dump()}, "b_pic":"${c(this, dn)}", "b_color":"${c(this, Jn)}", "b_alpha":${c(this, hi)}, "b_alpha_isfixed":"${c(this, ki)}", "width":${c(this, te).getWidth}, "height":${c(this, te).getHeight}, "pixi_obj":[${this.spLay.children.map((e) => `{"class":"${e instanceof
|
|
30542
|
+
return c(this, pf).call(this, "", "gotxt\uFF5C"), super.dump() + `, "enabled":"${this.enabled}", ${c(this, te).dump()}, "b_pic":"${c(this, dn)}", "b_color":"${c(this, Jn)}", "b_alpha":${c(this, hi)}, "b_alpha_isfixed":"${c(this, ki)}", "width":${c(this, te).getWidth}, "height":${c(this, te).getHeight}, "pixi_obj":[${this.spLay.children.map((e) => `{"class":"${e instanceof ze ? "Sprite" : e instanceof ii ? "Graphics" : e instanceof ve ? "Container" : "?"}", "name":"${e.name}", "alpha":${e.alpha}, "x":${e.x}, "y":${e.y}, "visible":"${e.visible}"}`).join(",")}], "button":[${c(this, Or).children.map((e) => {
|
|
30549
30543
|
var r;
|
|
30550
30544
|
return (r = e.children[0].name) != null ? r : "{}";
|
|
30551
30545
|
}).join(",")}]`;
|
|
30552
30546
|
}
|
|
30553
30547
|
};
|
|
30554
|
-
let
|
|
30548
|
+
let xe = Ft;
|
|
30555
30549
|
hl = new WeakMap(), Bi = new WeakMap(), sf = new WeakMap(), cl = new WeakMap(), af = new WeakSet(), A_ = function(e) {
|
|
30556
30550
|
const r = De.ch_in_style(e), n = r.x.at(0) === "=" ? `${r.nx * 100}%` : `${r.nx}px`, s = r.y.at(0) === "=" ? `${r.ny * 100}%` : `${r.ny}px`, { name: a } = e;
|
|
30557
30551
|
return Pu(`
|
|
@@ -30597,8 +30591,8 @@ hl = new WeakMap(), Bi = new WeakMap(), sf = new WeakMap(), cl = new WeakMap(),
|
|
|
30597
30591
|
const s = String(e.time).split(",");
|
|
30598
30592
|
if (s.length !== n)
|
|
30599
30593
|
throw "[autowc] text\u6587\u5B57\u6570\u3068time\u306B\u8A18\u8FF0\u3055\u308C\u305F\u5F85\u3061\u6642\u9593\uFF08\u30B3\u30F3\u30DE\u533A\u5207\u308A\uFF09\u306F\u540C\u6570\u306B\u3057\u3066\u4E0B\u3055\u3044";
|
|
30600
|
-
return M(Ft, lo, {}), s.forEach((a, o) => c(Ft, lo)[r[o]] =
|
|
30601
|
-
}, Jn = new WeakMap(), hi = new WeakMap(), ki = new WeakMap(), he = new WeakMap(), dn = new WeakMap(), te = new WeakMap(), hf = new WeakMap(), pn = new WeakMap(), f0 = new WeakMap(),
|
|
30594
|
+
return M(Ft, lo, {}), s.forEach((a, o) => c(Ft, lo)[r[o]] = ei(a)), c(Ft, Bi).setVal_Nochk("save", "const.sn.autowc.time", e.time), !1;
|
|
30595
|
+
}, Jn = new WeakMap(), hi = new WeakMap(), ki = new WeakMap(), he = new WeakMap(), dn = new WeakMap(), te = new WeakMap(), hf = new WeakMap(), pn = new WeakMap(), f0 = new WeakMap(), Or = new WeakMap(), ho = new WeakSet(), Oh = function(e) {
|
|
30602
30596
|
const { in_style: r } = e;
|
|
30603
30597
|
if (!r)
|
|
30604
30598
|
return;
|
|
@@ -30625,14 +30619,14 @@ hl = new WeakMap(), Bi = new WeakMap(), sf = new WeakMap(), cl = new WeakMap(),
|
|
|
30625
30619
|
});
|
|
30626
30620
|
} else
|
|
30627
30621
|
"b_color" in e && (M(this, Jn, rw(e, "b_color", 0)), c(this, he) && (this.spLay.removeChild(c(this, he)), c(this, he).destroy()), M(this, dn, ""), this.spLay.addChildAt(
|
|
30628
|
-
M(this, he, new
|
|
30622
|
+
M(this, he, new ii()).beginFill(c(this, Jn)).lineStyle(void 0).drawRect(0, 0, c(this, te).getWidth, c(this, te).getHeight).endFill(),
|
|
30629
30623
|
0
|
|
30630
30624
|
), c(this, he).name = "back(color)");
|
|
30631
30625
|
return c(this, he) && (c(this, he).visible = n > 0, c(this, he).alpha = n), r(!1), !1;
|
|
30632
30626
|
}, ff = new WeakSet(), k_ = function(e) {
|
|
30633
30627
|
var r, n;
|
|
30634
30628
|
"noffs" in e && (M(this, pl, (r = e.noffs) != null ? r : ""), M(this, df, new RegExp(`[\u3000${c(this, pl)}]`))), "ffs" in e && ((n = c(this, po)) != null || M(this, po, ""), M(this, vo, c(this, po) === "" ? () => "" : (s) => c(this, df).test(s) ? "" : ` font-feature-settings: ${c(this, po)};`));
|
|
30635
|
-
}, po = new WeakMap(), vo = new WeakMap(), pl = new WeakMap(), df = new WeakMap(), vl = new WeakMap(), Vs = new WeakMap(),
|
|
30629
|
+
}, po = new WeakMap(), vo = new WeakMap(), pl = new WeakMap(), df = new WeakMap(), vl = new WeakMap(), Vs = new WeakMap(), Ir = new WeakMap(), d0 = new WeakSet(), GT = function(e, r, n, s = "") {
|
|
30636
30630
|
if (!n)
|
|
30637
30631
|
return ` style='${s}'`;
|
|
30638
30632
|
const a = e.length * 2;
|
|
@@ -30666,7 +30660,7 @@ hl = new WeakMap(), Bi = new WeakMap(), sf = new WeakMap(), cl = new WeakMap(),
|
|
|
30666
30660
|
o = `text-align: ${n};`;
|
|
30667
30661
|
}
|
|
30668
30662
|
return ` style='${o} ${s}'`;
|
|
30669
|
-
},
|
|
30663
|
+
}, Yr = new WeakMap(), pf = new WeakMap(), gl = new WeakSet(), Np = function(e, r, n) {
|
|
30670
30664
|
var l, h;
|
|
30671
30665
|
const s = e === " " ? " " : e;
|
|
30672
30666
|
c(Ft, Bi).doRecLog() && M(this, go, c(this, go) + (s + (r ? `\u300A${r}\u300B` : "")));
|
|
@@ -30692,21 +30686,21 @@ hl = new WeakMap(), Bi = new WeakMap(), sf = new WeakMap(), cl = new WeakMap(),
|
|
|
30692
30686
|
}, ts = new WeakMap(), Ni = new WeakMap(), ci = new WeakMap(), fi = new WeakMap(), vf = new WeakSet(), N_ = function(e) {
|
|
30693
30687
|
c(this, fi).push({
|
|
30694
30688
|
o: e,
|
|
30695
|
-
r_align: c(this,
|
|
30689
|
+
r_align: c(this, Ir),
|
|
30696
30690
|
ch_in_style: c(this, co),
|
|
30697
30691
|
ch_out_style: c(this, dl)
|
|
30698
|
-
}), "r_align" in e && M(this,
|
|
30692
|
+
}), "r_align" in e && M(this, Ir, e.r_align), P(this, ho, Oh).call(this, e), P(this, fo, Ih).call(this, e);
|
|
30699
30693
|
}, ml = new WeakSet(), Lp = function() {
|
|
30700
30694
|
const e = c(this, fi).pop();
|
|
30701
|
-
!e || (M(this,
|
|
30695
|
+
!e || (M(this, Ir, e.r_align), P(this, ho, Oh).call(this, { in_style: e.ch_in_style }), P(this, fo, Ih).call(this, { out_style: e.ch_out_style }));
|
|
30702
30696
|
}, gf = new WeakSet(), L_ = function(e) {
|
|
30703
30697
|
const r = c(this, fi).at(-1);
|
|
30704
30698
|
if (!r) {
|
|
30705
30699
|
P(this, vf, N_).call(this, e);
|
|
30706
30700
|
return;
|
|
30707
30701
|
}
|
|
30708
|
-
r.o = { ...r.o, ...e }, !e.style && !e.r_style && (r.o.style = "", r.o.r_style = ""), "r_align" in e && M(this,
|
|
30709
|
-
}, go = new WeakMap(), E(
|
|
30702
|
+
r.o = { ...r.o, ...e }, !e.style && !e.r_style && (r.o.style = "", r.o.r_style = ""), "r_align" in e && M(this, Ir, e.r_align), P(this, ho, Oh).call(this, e), P(this, fo, Ih).call(this, e);
|
|
30703
|
+
}, go = new WeakMap(), E(xe, af), E(xe, of), E(xe, c0), E(xe, hl, void 0), E(xe, Bi, void 0), E(xe, sf, void 0), E(xe, cl, void 0), E(xe, uf, void 0), E(xe, uo, void 0), E(xe, lf, void 0), E(xe, Kn, !1), E(xe, lo, {}), E(xe, f0, {
|
|
30710
30704
|
"text-align": 0,
|
|
30711
30705
|
"text-align-last": 0,
|
|
30712
30706
|
height: 0,
|
|
@@ -30715,7 +30709,7 @@ hl = new WeakMap(), Bi = new WeakMap(), sf = new WeakMap(), cl = new WeakMap(),
|
|
|
30715
30709
|
"padding-right": 0,
|
|
30716
30710
|
"padding-top": 0,
|
|
30717
30711
|
"padding-bottom": 0
|
|
30718
|
-
}), E(
|
|
30712
|
+
}), E(xe, vl, (e) => e);
|
|
30719
30713
|
var yl, mo, p0, UT, _l, bl, Gp, v0, jT, g0, zT, mf, m0, HT, y0, $T;
|
|
30720
30714
|
class XL {
|
|
30721
30715
|
constructor(t, e, r, n, s, a, o) {
|
|
@@ -30760,7 +30754,7 @@ yl = new WeakMap(), mo = new WeakMap(), p0 = new WeakSet(), UT = function(t) {
|
|
|
30760
30754
|
throw `frame\u3010${e}\u3011\u306F\u3059\u3067\u306B\u3042\u308A\u307E\u3059`;
|
|
30761
30755
|
const l = ft(t, "visible", !0), h = t.b_color ? ` background-color: ${t.b_color};` : "", f = P(this, bl, Gp).call(this, t);
|
|
30762
30756
|
this.appPixi.view.insertAdjacentHTML("beforebegin", `<iframe id="${e}" sandbox="allow-scripts allow-same-origin" style="opacity: ${n}; position: absolute; left:${this.sys.ofsLeft4elm + f.x * this.sys.cvsScale}px; top: ${this.sys.ofsTop4elm + f.y * this.sys.cvsScale}px; z-index: 1; ${h} border: 0px; overflow: hidden; display: ${l ? "inline" : "none"}; transform: scale(${s}, ${a}) rotate(${o}deg);" width="${f.width * this.sys.cvsScale}" height="${f.height * this.sys.cvsScale}"></iframe>`);
|
|
30763
|
-
const d = this.cfg.searchPath(r, pr.HTML), p = new
|
|
30757
|
+
const d = this.cfg.searchPath(r, pr.HTML), p = new ti().add({ name: r, url: d, xhrType: Nt.XHR_RESPONSE_TYPE.TEXT });
|
|
30764
30758
|
return this.sys.crypto && p.use((v, g) => {
|
|
30765
30759
|
try {
|
|
30766
30760
|
v.data = this.sys.decStr(v.extension, v.data);
|
|
@@ -30841,7 +30835,7 @@ yl = new WeakMap(), mo = new WeakMap(), p0 = new WeakSet(), UT = function(t) {
|
|
|
30841
30835
|
if (!this.val.getVal("tmp:" + n))
|
|
30842
30836
|
throw `frame\u3010${e}\u3011\u304C\u8AAD\u307F\u8FBC\u307E\u308C\u3066\u3044\u307E\u305B\u3093`;
|
|
30843
30837
|
const s = r.style;
|
|
30844
|
-
if (ft(t, "float", !1) ? s.zIndex = `${
|
|
30838
|
+
if (ft(t, "float", !1) ? s.zIndex = `${++$e(this, mf)._}` : "index" in t ? s.zIndex = `${Q(t, "index", 0)}` : t.dive && (s.zIndex = `-${++$e(this, mf)._}`), "alpha" in t) {
|
|
30845
30839
|
const o = s.opacity = String(t.alpha);
|
|
30846
30840
|
this.val.setVal_Nochk("tmp", n + ".alpha", o);
|
|
30847
30841
|
}
|
|
@@ -30933,7 +30927,7 @@ ${e}`, O = () => {
|
|
|
30933
30927
|
U.start();
|
|
30934
30928
|
return this.hTwInf[T] = { tw: H, resume: !1 }, !1;
|
|
30935
30929
|
};
|
|
30936
|
-
var Li, ee, Se, Xs, yo, xl, yf, _f, bf, El, xf, G_, Ws, vn, _0, VT,
|
|
30930
|
+
var Li, ee, Se, Xs, yo, xl, yf, _f, bf, El, xf, G_, Ws, vn, _0, VT, Dr, b0, XT, x0, WT, E0, YT, Vt, gn, mn, Ef, w0, qT, wl, Up, S0, ZT, T0, wf, C0, _o, bo, es, We, xo, M0, KT, Ye, Sr, $r, P0, JT, O0, QT, I0, tC, Eo, Dh, D0, eC, qr, R0, rC, A0, iC, F0, nC, B0, sC, k0, aC, Ys, wo, Rh, Zr, N0, oC, Sf, L0, uC, yn, So, qs, mu, Gi, _n, G0, lC, U0, hC, j0, cC, z0, fC, H0, dC, $0, pC, V0, vC, Tf, U_, X0, gC, W0, mC, Y0, yC, q0, _C, Z0, bC, K0, xC, J0, EC;
|
|
30937
30931
|
const Is = class {
|
|
30938
30932
|
constructor(t, e, r, n, s, a, o, u, l, h) {
|
|
30939
30933
|
E(this, xf);
|
|
@@ -31002,7 +30996,7 @@ const Is = class {
|
|
|
31002
30996
|
Z(this, "getFrmDisabled", (t) => c(this, Xs).getFrmDisabled(t));
|
|
31003
30997
|
E(this, Ws, void 0);
|
|
31004
30998
|
E(this, vn, void 0);
|
|
31005
|
-
E(this,
|
|
30999
|
+
E(this, Dr, (t, e = this.currentTxtlayForeNeedErr, r = !0) => e.tagCh("\uFF5C\u3000\u300A" + t + "\u300B"));
|
|
31006
31000
|
Z(this, "goTxt", () => {
|
|
31007
31001
|
});
|
|
31008
31002
|
Z(this, "breakLine", () => {
|
|
@@ -31054,16 +31048,16 @@ void main(void) {
|
|
|
31054
31048
|
width: W.stageW,
|
|
31055
31049
|
height: W.stageH
|
|
31056
31050
|
}));
|
|
31057
|
-
E(this, bo, new
|
|
31051
|
+
E(this, bo, new ze(c(this, _o)));
|
|
31058
31052
|
E(this, es, gi.create({
|
|
31059
31053
|
width: W.stageW,
|
|
31060
31054
|
height: W.stageH
|
|
31061
31055
|
}));
|
|
31062
|
-
E(this,
|
|
31056
|
+
E(this, We, new ze(c(this, es)));
|
|
31063
31057
|
E(this, xo, []);
|
|
31064
|
-
E(this,
|
|
31065
|
-
E(this,
|
|
31066
|
-
E(this,
|
|
31058
|
+
E(this, Ye, { tw: void 0, resume: !1 });
|
|
31059
|
+
E(this, qr, {});
|
|
31060
|
+
E(this, Zr, (t) => {
|
|
31067
31061
|
throw c(this, So).call(this), 0;
|
|
31068
31062
|
});
|
|
31069
31063
|
E(this, Sf, (t) => {
|
|
@@ -31095,9 +31089,9 @@ void main(void) {
|
|
|
31095
31089
|
}, 1e3 / 60 * 10));
|
|
31096
31090
|
}, { passive: !0 });
|
|
31097
31091
|
}
|
|
31098
|
-
o.cvsResize(),
|
|
31099
|
-
const d = new
|
|
31100
|
-
d.beginFill(c(this, yo), 1).lineStyle(0, c(this, yo)).drawRect(0, 0, W.stageW, W.stageH).endFill(), c(this, ee).addChild(d.clone()), c(this, Se).addChild(d), c(this, Se).visible = !1, M(this, Li, this.appPixi.stage), c(this, Li).addChild(c(this, Se)), c(this, Li).addChild(c(this, ee)), c(this, Li).addChild(c(this, bo)), c(this, Li).addChild(c(this,
|
|
31092
|
+
o.cvsResize(), xe.init(t, e, n, this, (g) => c(this, Vt)[g.layname].fore === g, r), Kt.init(s, t, r, o, u, n), Vi.init(t), M(this, Xs, new XL(this.cfg, this.hTag, this.appPixi, this.val, s, this.sys, c(this, qr))), o.hFactoryCls.grp = () => new Kt(), o.hFactoryCls.txt = () => new xe(), e.loadplugin = (g) => P(this, x0, WT).call(this, g), e.snapshot = (g) => P(this, b0, XT).call(this, g), e.add_lay = (g) => P(this, E0, YT).call(this, g), e.clear_lay = (g) => P(this, S0, ZT).call(this, g), e.finish_trans = () => P(this, Eo, Dh).call(this), e.lay = (g) => P(this, w0, qT).call(this, g), e.trans = (g) => P(this, M0, KT).call(this, g), e.wt = (g) => P(this, I0, tC).call(this, g), e.quake = (g) => P(this, D0, eC).call(this, g), e.stop_quake = (g) => e.finish_trans(g), e.wq = (g) => e.wt(g), e.pause_tsy = (g) => P(this, B0, sC).call(this, g), e.resume_tsy = (g) => P(this, k0, aC).call(this, g), e.stop_tsy = (g) => P(this, F0, nC).call(this, g), e.tsy = (g) => P(this, R0, rC).call(this, g), e.wait_tsy = (g) => P(this, A0, iC).call(this, g), e.ch = (g) => P(this, wo, Rh).call(this, g), e.clear_text = (g) => P(this, G0, lC).call(this, g), e.current = (g) => c(this, Sf).call(this, g), e.endlink = (g) => P(this, U0, hC).call(this, g), e.er = (g) => P(this, j0, cC).call(this, g), e.graph = (g) => P(this, z0, fC).call(this, g), e.link = (g) => P(this, H0, dC).call(this, g), e.r = (g) => P(this, $0, pC).call(this, g), e.rec_ch = (g) => P(this, Tf, U_).call(this, g), e.rec_r = (g) => P(this, V0, vC).call(this, g), e.reset_rec = (g) => P(this, X0, gC).call(this, g), e.ruby2 = (g) => P(this, W0, mC).call(this, g), e.span = (g) => P(this, Y0, yC).call(this, g), e.tcy = (g) => P(this, q0, _C).call(this, g), e.add_face = (g) => Kt.add_face(g), e.wv = (g) => Kt.wv(g), e.dump_lay = (g) => P(this, Z0, bC).call(this, g), e.enable_event = (g) => P(this, K0, xC).call(this, g), e.button = (g) => P(this, J0, EC).call(this, g), t.existsBreakline && (this.breakLine = () => c(this, Dr).call(this, 'grp\uFF5C{"id":"break","pic":"breakline"}')), t.existsBreakpage && (this.breakPage = () => c(this, Dr).call(this, 'grp\uFF5C{"id":"break","pic":"breakpage"}')), M(this, yo, sb(String(t.oCfg.init.bg_color)));
|
|
31093
|
+
const d = new ii();
|
|
31094
|
+
d.beginFill(c(this, yo), 1).lineStyle(0, c(this, yo)).drawRect(0, 0, W.stageW, W.stageH).endFill(), c(this, ee).addChild(d.clone()), c(this, Se).addChild(d), c(this, Se).visible = !1, M(this, Li, this.appPixi.stage), c(this, Li).addChild(c(this, Se)), c(this, Li).addChild(c(this, ee)), c(this, Li).addChild(c(this, bo)), c(this, Li).addChild(c(this, We)), this.appPixi.ticker.add(c(this, yf));
|
|
31101
31095
|
const p = (g, m) => {
|
|
31102
31096
|
P(this, _0, VT).call(this, Number(m));
|
|
31103
31097
|
};
|
|
@@ -31117,7 +31111,7 @@ void main(void) {
|
|
|
31117
31111
|
}
|
|
31118
31112
|
cover(t, e = 0) {
|
|
31119
31113
|
c(this, Ws) && (c(this, Li).removeChild(c(this, Ws)), c(this, Ws).destroy(), M(this, Ws, void 0)), t && c(this, Li).addChild(
|
|
31120
|
-
M(this, Ws, new
|
|
31114
|
+
M(this, Ws, new ii()).beginFill(e).lineStyle(0, e).drawRect(0, 0, W.stageW, W.stageH).endFill()
|
|
31121
31115
|
);
|
|
31122
31116
|
}
|
|
31123
31117
|
setEvtMng(t) {
|
|
@@ -31128,18 +31122,18 @@ void main(void) {
|
|
|
31128
31122
|
t.destroy();
|
|
31129
31123
|
}
|
|
31130
31124
|
destroy() {
|
|
31131
|
-
c(this, xl).clear(), Kt.destroy(), sa.destroy(), De.destroy(),
|
|
31125
|
+
c(this, xl).clear(), Kt.destroy(), sa.destroy(), De.destroy(), xe.destroy(), c(this, Xs).destroy(), this.stopAllTw(), this.appPixi.ticker.remove(c(this, yf)), M(Is, Ys, 10);
|
|
31132
31126
|
}
|
|
31133
31127
|
stopAllTw() {
|
|
31134
|
-
M(this,
|
|
31128
|
+
M(this, qr, {}), vF();
|
|
31135
31129
|
}
|
|
31136
31130
|
clearBreak() {
|
|
31137
|
-
!this.currentTxtlayFore || (this.clearBreak = () => c(this,
|
|
31131
|
+
!this.currentTxtlayFore || (this.clearBreak = () => c(this, Dr).call(this, "del\uFF5Cbreak"), this.clearBreak());
|
|
31138
31132
|
}
|
|
31139
31133
|
clickTxtLay() {
|
|
31140
|
-
return this.currentTxtlayFore ? P(this, Sr,
|
|
31134
|
+
return this.currentTxtlayFore ? P(this, Sr, $r).call(this).some((t) => {
|
|
31141
31135
|
const e = c(this, Vt)[t].fore;
|
|
31142
|
-
return e instanceof
|
|
31136
|
+
return e instanceof xe && e.click();
|
|
31143
31137
|
}) : !1;
|
|
31144
31138
|
}
|
|
31145
31139
|
static get msecChWait() {
|
|
@@ -31207,15 +31201,15 @@ void main(void) {
|
|
|
31207
31201
|
};
|
|
31208
31202
|
let Ba = Is;
|
|
31209
31203
|
Li = new WeakMap(), ee = new WeakMap(), Se = new WeakMap(), Xs = new WeakMap(), yo = new WeakMap(), xl = new WeakMap(), yf = new WeakMap(), _f = new WeakMap(), bf = new WeakMap(), El = new WeakMap(), xf = new WeakSet(), G_ = function(t) {
|
|
31210
|
-
[
|
|
31204
|
+
[$e(this, bf)._, this.El = ""] = t.split("/");
|
|
31211
31205
|
const e = c(this, Vt)[c(this, bf)];
|
|
31212
31206
|
!e || (zt.allHide(), c(this, El) ? e.fore.showDesignCastChildren() : e.fore.showDesignCast());
|
|
31213
31207
|
}, Ws = new WeakMap(), vn = new WeakMap(), _0 = new WeakSet(), VT = function(t) {
|
|
31214
|
-
for (const e of P(this, Sr,
|
|
31208
|
+
for (const e of P(this, Sr, $r).call(this)) {
|
|
31215
31209
|
const r = c(this, Vt)[e];
|
|
31216
|
-
r.fore instanceof
|
|
31210
|
+
r.fore instanceof xe && (r.fore.chgBackAlpha(t), r.back.chgBackAlpha(t));
|
|
31217
31211
|
}
|
|
31218
|
-
},
|
|
31212
|
+
}, Dr = new WeakMap(), b0 = new WeakSet(), XT = function(t) {
|
|
31219
31213
|
const e = t.fn ? t.fn.slice(0, 10) === "userdata:/" ? t.fn : `downloads:/${t.fn + Xh("-", "_", "", "_")}.png` : `downloads:/snapshot${Xh("-", "_", "", "_")}.png`, r = this.cfg.searchPath(e);
|
|
31220
31214
|
if (this.sys.canCapturePage(r))
|
|
31221
31215
|
return !1;
|
|
@@ -31228,15 +31222,15 @@ Li = new WeakMap(), ee = new WeakMap(), Se = new WeakMap(), Xs = new WeakMap(),
|
|
|
31228
31222
|
backgroundColor: s & 16777215,
|
|
31229
31223
|
autoDensity: !0
|
|
31230
31224
|
}), o = [], u = t.page !== "back" ? "fore" : "back";
|
|
31231
|
-
if (c(this,
|
|
31225
|
+
if (c(this, Ye).tw)
|
|
31232
31226
|
o.push(new Promise((l) => {
|
|
31233
31227
|
c(this, Se).visible = !0;
|
|
31234
31228
|
for (const h of c(this, xo))
|
|
31235
31229
|
a.render(h, { clear: !1 });
|
|
31236
|
-
c(this, Se).visible = !1, c(this, bo).visible = !0, c(this, ee).filters = c(this,
|
|
31230
|
+
c(this, Se).visible = !1, c(this, bo).visible = !0, c(this, ee).filters = c(this, We).filters, c(this, ee).visible = !0, a.render(c(this, ee), { clear: !1 }), c(this, ee).visible = !1, c(this, ee).filters = [], l();
|
|
31237
31231
|
}));
|
|
31238
31232
|
else
|
|
31239
|
-
for (const l of P(this, Sr,
|
|
31233
|
+
for (const l of P(this, Sr, $r).call(this, t.layer))
|
|
31240
31234
|
o.push(
|
|
31241
31235
|
new Promise((h) => c(this, Vt)[l][u].snapshot(a, () => h()))
|
|
31242
31236
|
);
|
|
@@ -31244,9 +31238,9 @@ Li = new WeakMap(), ee = new WeakMap(), Se = new WeakMap(), Xs = new WeakMap(),
|
|
|
31244
31238
|
const l = gi.create({ width: a.width, height: a.height, transform: !0 });
|
|
31245
31239
|
if (a.render(c(this, Li), { renderTexture: l }), await this.sys.savePic(
|
|
31246
31240
|
r,
|
|
31247
|
-
a.plugins.extract.base64(
|
|
31248
|
-
), !c(this,
|
|
31249
|
-
for (const h of P(this, Sr,
|
|
31241
|
+
a.plugins.extract.base64(ze.from(l))
|
|
31242
|
+
), !c(this, Ye).tw)
|
|
31243
|
+
for (const h of P(this, Sr, $r).call(this, t.layer))
|
|
31250
31244
|
c(this, Vt)[h][u].snapshot_end();
|
|
31251
31245
|
a.destroy(!0);
|
|
31252
31246
|
}), !1;
|
|
@@ -31282,11 +31276,11 @@ Li = new WeakMap(), ee = new WeakMap(), Se = new WeakMap(), Xs = new WeakMap(),
|
|
|
31282
31276
|
switch (c(this, Vt)[e] = new Uh(e, r, c(this, ee), c(this, Se), t, this.sys, this.val, n), c(this, gn).push(e), r) {
|
|
31283
31277
|
case "txt":
|
|
31284
31278
|
c(this, mn) || (M(this, So, () => {
|
|
31285
|
-
}), M(this,
|
|
31279
|
+
}), M(this, Zr, P(this, N0, oC)), M(this, Sf, P(this, L0, uC)), this.hTag.current({ layer: e }), this.goTxt = () => {
|
|
31286
31280
|
this.val.getVal("sn.skip.enabled") ? M(Is, Ys, 0) : this.setNormalChWait();
|
|
31287
|
-
for (const s of P(this, Sr,
|
|
31281
|
+
for (const s of P(this, Sr, $r).call(this)) {
|
|
31288
31282
|
const a = c(this, Vt)[s].fore;
|
|
31289
|
-
a instanceof
|
|
31283
|
+
a instanceof xe && c(this, Dr).call(this, "gotxt\uFF5C", a, !1);
|
|
31290
31284
|
}
|
|
31291
31285
|
}), this.val.setVal_Nochk(
|
|
31292
31286
|
"save",
|
|
@@ -31326,15 +31320,15 @@ Li = new WeakMap(), ee = new WeakMap(), Se = new WeakMap(), Xs = new WeakMap(),
|
|
|
31326
31320
|
const r = c(this, Vt)[P(this, qs, mu).call(this, { layer: e })];
|
|
31327
31321
|
t.page === "both" ? (r.fore.clearLay(t), r.back.clearLay(t)) : r.getPage(t).clearLay(t);
|
|
31328
31322
|
}), !1;
|
|
31329
|
-
}, T0 = new WeakMap(), wf = new WeakMap(), C0 = new WeakMap(), _o = new WeakMap(), bo = new WeakMap(), es = new WeakMap(),
|
|
31323
|
+
}, T0 = new WeakMap(), wf = new WeakMap(), C0 = new WeakMap(), _o = new WeakMap(), bo = new WeakMap(), es = new WeakMap(), We = new WeakMap(), xo = new WeakMap(), M0 = new WeakSet(), KT = function(t) {
|
|
31330
31324
|
P(this, Eo, Dh).call(this);
|
|
31331
31325
|
const { layer: e } = t;
|
|
31332
31326
|
M(this, xo, []);
|
|
31333
31327
|
const r = {}, n = [];
|
|
31334
|
-
for (const m of P(this, Sr,
|
|
31328
|
+
for (const m of P(this, Sr, $r).call(this, e))
|
|
31335
31329
|
r[m] = !0, n.push(c(this, Vt)[m].fore);
|
|
31336
31330
|
const s = [];
|
|
31337
|
-
for (const m of P(this, Sr,
|
|
31331
|
+
for (const m of P(this, Sr, $r).call(this)) {
|
|
31338
31332
|
const y = c(this, Vt)[m][r[m] ? "back" : "fore"];
|
|
31339
31333
|
c(this, xo).push(y.spLay), s.push(y);
|
|
31340
31334
|
}
|
|
@@ -31364,12 +31358,12 @@ Li = new WeakMap(), ee = new WeakMap(), Se = new WeakMap(), Xs = new WeakMap(),
|
|
|
31364
31358
|
};
|
|
31365
31359
|
}
|
|
31366
31360
|
const u = () => {
|
|
31367
|
-
a(), c(this, bo).visible = !0, o(), c(this,
|
|
31361
|
+
a(), c(this, bo).visible = !0, o(), c(this, We).visible = !0;
|
|
31368
31362
|
};
|
|
31369
|
-
c(this,
|
|
31363
|
+
c(this, We).alpha = 1;
|
|
31370
31364
|
const l = () => {
|
|
31371
31365
|
var y;
|
|
31372
|
-
this.appPixi.ticker && this.appPixi.ticker.remove(u), [
|
|
31366
|
+
this.appPixi.ticker && this.appPixi.ticker.remove(u), [$e(this, ee)._, $e(this, Se)._] = [c(this, Se), c(this, ee)];
|
|
31373
31367
|
const m = [];
|
|
31374
31368
|
for (const [_, b] of Object.entries(c(this, Vt))) {
|
|
31375
31369
|
if (r[_]) {
|
|
@@ -31379,28 +31373,28 @@ Li = new WeakMap(), ee = new WeakMap(), Se = new WeakMap(), Xs = new WeakMap(),
|
|
|
31379
31373
|
const { fore: { spLay: x }, back: { spLay: S } } = b, w = c(this, ee).getChildIndex(S);
|
|
31380
31374
|
c(this, ee).removeChild(S), c(this, Se).removeChild(x), c(this, ee).addChildAt(x, w), c(this, Se).addChildAt(S, w);
|
|
31381
31375
|
}
|
|
31382
|
-
Promise.allSettled(m), c(this, ee).visible = !0, c(this, Se).visible = !1, c(this, bo).visible = !1, c(this,
|
|
31376
|
+
Promise.allSettled(m), c(this, ee).visible = !0, c(this, Se).visible = !1, c(this, bo).visible = !1, c(this, We).visible = !1, (y = c(this, Ye).tw) == null || y.stop(), c(this, Ye).resume && this.main.resume(), M(this, Ye, { tw: void 0, resume: !1 });
|
|
31383
31377
|
};
|
|
31384
|
-
M(this,
|
|
31378
|
+
M(this, Ye, { tw: void 0, resume: !1 });
|
|
31385
31379
|
const h = Q(t, "time", 0);
|
|
31386
31380
|
if (h === 0 || c(this, vn).isSkippingByKeyDown())
|
|
31387
31381
|
return l(), !1;
|
|
31388
31382
|
const { ease: f, glsl: d, rule: p } = t, v = vs.ease(f);
|
|
31389
31383
|
if (!d && !p)
|
|
31390
|
-
return c(this,
|
|
31384
|
+
return c(this, We).filters = [], c(this, Ye).tw = new bn(c(this, We)).to({ alpha: 0 }, h).delay(Q(t, "delay", 0)).easing(v).onComplete(l).start(), this.appPixi.ticker.add(u), !1;
|
|
31391
31385
|
const g = d ? new Ji(void 0, d, c(this, wf)) : c(this, C0);
|
|
31392
|
-
if (g.uniforms.vague = Q(t, "vague", 0.04), g.uniforms.tick = 0, c(this,
|
|
31393
|
-
return c(this,
|
|
31386
|
+
if (g.uniforms.vague = Q(t, "vague", 0.04), g.uniforms.tick = 0, c(this, Ye).tw = new bn(g.uniforms).to({ tick: 1 }, h).delay(Q(t, "delay", 0)).easing(v).onComplete(l), c(this, We).filters = [g], d)
|
|
31387
|
+
return c(this, Ye).tw.start(), this.appPixi.ticker.add(u), !1;
|
|
31394
31388
|
if (!p)
|
|
31395
31389
|
throw "rule\u304C\u6307\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093";
|
|
31396
31390
|
return Kt.csv2Sprites(p, void 0, (m) => {
|
|
31397
31391
|
var y;
|
|
31398
|
-
g.uniforms.rule = m.texture, m.destroy(), (y = c(this,
|
|
31392
|
+
g.uniforms.rule = m.texture, m.destroy(), (y = c(this, Ye).tw) == null || y.start(), this.appPixi.ticker.add(u);
|
|
31399
31393
|
}), !1;
|
|
31400
|
-
},
|
|
31394
|
+
}, Ye = new WeakMap(), Sr = new WeakSet(), $r = function(t = "") {
|
|
31401
31395
|
return t ? t.split(",") : c(this, gn);
|
|
31402
31396
|
}, P0 = new WeakSet(), JT = function(t, e) {
|
|
31403
|
-
const r = P(this, Sr,
|
|
31397
|
+
const r = P(this, Sr, $r).call(this, t.layer);
|
|
31404
31398
|
for (const n of r) {
|
|
31405
31399
|
if (!n)
|
|
31406
31400
|
continue;
|
|
@@ -31411,22 +31405,22 @@ Li = new WeakMap(), ee = new WeakMap(), Se = new WeakMap(), Xs = new WeakMap(),
|
|
|
31411
31405
|
}
|
|
31412
31406
|
return r;
|
|
31413
31407
|
}, O0 = new WeakSet(), QT = function(t = "") {
|
|
31414
|
-
return P(this, Sr,
|
|
31408
|
+
return P(this, Sr, $r).call(this, t).sort((e, r) => {
|
|
31415
31409
|
const n = c(this, ee).getChildIndex(c(this, Vt)[e].fore.spLay), s = c(this, ee).getChildIndex(c(this, Vt)[r].fore.spLay);
|
|
31416
31410
|
return n < s ? -1 : n > s ? 1 : 0;
|
|
31417
31411
|
});
|
|
31418
31412
|
}, I0 = new WeakSet(), tC = function(t) {
|
|
31419
|
-
return c(this,
|
|
31413
|
+
return c(this, Ye).tw ? (c(this, Ye).resume = !0, c(this, vn).waitLimitedEvent(t, () => P(this, Eo, Dh).call(this))) : !1;
|
|
31420
31414
|
}, Eo = new WeakSet(), Dh = function() {
|
|
31421
31415
|
var t;
|
|
31422
|
-
return (t = c(this,
|
|
31416
|
+
return (t = c(this, Ye).tw) == null || t.end(), !1;
|
|
31423
31417
|
}, D0 = new WeakSet(), eC = function(t) {
|
|
31424
31418
|
P(this, Eo, Dh).call(this);
|
|
31425
31419
|
const e = Q(t, "time", NaN);
|
|
31426
31420
|
if (e === 0 || this.val.getVal("tmp:sn.skip.enabled") || c(this, vn).isSkippingByKeyDown())
|
|
31427
31421
|
return !1;
|
|
31428
31422
|
const { layer: r, ease: n } = t, s = [];
|
|
31429
|
-
for (const p of P(this, Sr,
|
|
31423
|
+
for (const p of P(this, Sr, $r).call(this, r))
|
|
31430
31424
|
s.push(c(this, Vt)[p].fore.spLay);
|
|
31431
31425
|
c(this, es).resize(W.stageW, W.stageH);
|
|
31432
31426
|
const a = () => {
|
|
@@ -31438,19 +31432,19 @@ Li = new WeakMap(), ee = new WeakMap(), Se = new WeakMap(), Xs = new WeakMap(),
|
|
|
31438
31432
|
);
|
|
31439
31433
|
c(this, ee).visible = !1;
|
|
31440
31434
|
};
|
|
31441
|
-
c(this,
|
|
31442
|
-
const o =
|
|
31443
|
-
} : () => c(this,
|
|
31444
|
-
} : () => c(this,
|
|
31445
|
-
c(this,
|
|
31446
|
-
const f = Q(t, "repeat", 1), d = new bn(c(this,
|
|
31435
|
+
c(this, We).visible = !0, c(this, We).alpha = 1;
|
|
31436
|
+
const o = ei(Q(t, "hmax", 10)), u = ei(Q(t, "vmax", 10)), l = o === 0 ? () => {
|
|
31437
|
+
} : () => c(this, We).x = Math.round(Math.random() * o * 2) - o, h = u === 0 ? () => {
|
|
31438
|
+
} : () => c(this, We).y = Math.round(Math.random() * u * 2) - u;
|
|
31439
|
+
c(this, We).filters = [];
|
|
31440
|
+
const f = Q(t, "repeat", 1), d = new bn(c(this, We)).to({ x: 0, y: 0 }, e).delay(Q(t, "delay", 0)).easing(vs.ease(n)).onUpdate(() => {
|
|
31447
31441
|
l(), h();
|
|
31448
31442
|
}).repeat(f === 0 ? 1 / 0 : f - 1).yoyo(ft(t, "yoyo", !1)).onComplete(() => {
|
|
31449
31443
|
var p, v;
|
|
31450
|
-
(p = this.appPixi.ticker) == null || p.remove(a), c(this, ee).visible = !0, c(this,
|
|
31444
|
+
(p = this.appPixi.ticker) == null || p.remove(a), c(this, ee).visible = !0, c(this, We).visible = !1, c(this, We).x = 0, c(this, We).y = 0, (v = c(this, Ye).tw) == null || v.stop(), c(this, Ye).resume && this.main.resume(), M(this, Ye, { tw: void 0, resume: !1 });
|
|
31451
31445
|
}).start();
|
|
31452
|
-
return M(this,
|
|
31453
|
-
},
|
|
31446
|
+
return M(this, Ye, { tw: d, resume: !1 }), this.appPixi.ticker.add(a), !1;
|
|
31447
|
+
}, qr = new WeakMap(), R0 = new WeakSet(), rC = function(t) {
|
|
31454
31448
|
const { layer: e, render: r, path: n, name: s, ease: a, chain: o } = t;
|
|
31455
31449
|
if (!e)
|
|
31456
31450
|
throw "layer\u306F\u5FC5\u9808\u3067\u3059";
|
|
@@ -31461,8 +31455,8 @@ Li = new WeakMap(), ee = new WeakMap(), Se = new WeakMap(), Xs = new WeakMap(),
|
|
|
31461
31455
|
!f && r && (l.renderStart(), h = () => l.renderEnd());
|
|
31462
31456
|
const d = s != null ? s : e, p = () => {
|
|
31463
31457
|
var I, R;
|
|
31464
|
-
const O = c(this,
|
|
31465
|
-
!O || (h(), delete c(this,
|
|
31458
|
+
const O = c(this, qr)[d];
|
|
31459
|
+
!O || (h(), delete c(this, qr)[d], (I = O.tw) == null || I.stop(), O.resume && this.main.resume(), (R = O.onEnd) == null || R.call(O));
|
|
31466
31460
|
}, v = Wp(t, l), g = Q(t, "time", NaN) * (Boolean(this.val.getVal("tmp:sn.skip.enabled") || f) ? 0 : 1), m = vs.ease(a), y = Q(t, "repeat", 1), _ = y === 0 ? 1 / 0 : y - 1, b = ft(t, "yoyo", !1), x = Q(t, "delay", 0), S = new bn(l).to(v, g).easing(m).repeat(_).yoyo(b).delay(x);
|
|
31467
31461
|
let w = S;
|
|
31468
31462
|
if (n) {
|
|
@@ -31487,14 +31481,14 @@ Li = new WeakMap(), ee = new WeakMap(), Se = new WeakMap(), Xs = new WeakMap(),
|
|
|
31487
31481
|
W.debugLog && console.groupEnd();
|
|
31488
31482
|
}
|
|
31489
31483
|
if (w.onComplete(p), o) {
|
|
31490
|
-
const O = c(this,
|
|
31484
|
+
const O = c(this, qr)[o != null ? o : ""];
|
|
31491
31485
|
if (!(O != null && O.tw))
|
|
31492
31486
|
throw `${o}\u306F\u5B58\u5728\u3057\u306A\u3044\u30FB\u307E\u305F\u306F\u7D42\u4E86\u3057\u305F\u30C8\u30A5\u30A4\u30FC\u30F3\u3067\u3059`;
|
|
31493
31487
|
delete O.onEnd, O.tw.chain(S);
|
|
31494
31488
|
} else
|
|
31495
31489
|
S.start();
|
|
31496
31490
|
const C = ft(t, "arrive", !1), T = ft(t, "backlay", !1);
|
|
31497
|
-
return c(this,
|
|
31491
|
+
return c(this, qr)[d] = { tw: w, resume: !1, onEnd: () => {
|
|
31498
31492
|
if (C && Object.assign(l, v), T) {
|
|
31499
31493
|
const O = c(this, Vt)[u].back.spLay;
|
|
31500
31494
|
for (const I of Object.keys(tw))
|
|
@@ -31506,7 +31500,7 @@ Li = new WeakMap(), ee = new WeakMap(), Se = new WeakMap(), Xs = new WeakMap(),
|
|
|
31506
31500
|
${r}` : n != null ? n : e;
|
|
31507
31501
|
if (!s)
|
|
31508
31502
|
throw "\u30C8\u30A5\u30A4\u30FC\u30F3\u304C\u6307\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093";
|
|
31509
|
-
const a = c(this,
|
|
31503
|
+
const a = c(this, qr)[s];
|
|
31510
31504
|
return a != null && a.tw ? a.resume = c(this, vn).waitEvent(
|
|
31511
31505
|
() => {
|
|
31512
31506
|
var o;
|
|
@@ -31521,47 +31515,47 @@ ${r}` : n != null ? n : e;
|
|
|
31521
31515
|
${r}` : n != null ? n : e;
|
|
31522
31516
|
if (!s)
|
|
31523
31517
|
throw "\u30C8\u30A5\u30A4\u30FC\u30F3\u304C\u6307\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093";
|
|
31524
|
-
return (o = (a = c(this,
|
|
31518
|
+
return (o = (a = c(this, qr)[s]) == null ? void 0 : a.tw) == null || o.end(), !1;
|
|
31525
31519
|
}, B0 = new WeakSet(), sC = function(t) {
|
|
31526
31520
|
var a, o;
|
|
31527
31521
|
const { layer: e = "", id: r, name: n } = t, s = r ? `frm
|
|
31528
31522
|
${r}` : n != null ? n : e;
|
|
31529
31523
|
if (!s)
|
|
31530
31524
|
throw "\u30C8\u30A5\u30A4\u30FC\u30F3\u304C\u6307\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093";
|
|
31531
|
-
return (o = (a = c(this,
|
|
31525
|
+
return (o = (a = c(this, qr)[s]) == null ? void 0 : a.tw) == null || o.pause(), !1;
|
|
31532
31526
|
}, k0 = new WeakSet(), aC = function(t) {
|
|
31533
31527
|
var a, o;
|
|
31534
31528
|
const { layer: e = "", id: r, name: n } = t, s = r ? `frm
|
|
31535
31529
|
${r}` : n != null ? n : e;
|
|
31536
31530
|
if (!s)
|
|
31537
31531
|
throw "\u30C8\u30A5\u30A4\u30FC\u30F3\u304C\u6307\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093";
|
|
31538
|
-
return (o = (a = c(this,
|
|
31532
|
+
return (o = (a = c(this, qr)[s]) == null ? void 0 : a.tw) == null || o.resume(), !1;
|
|
31539
31533
|
}, Ys = new WeakMap(), wo = new WeakSet(), Rh = function(t) {
|
|
31540
31534
|
const { text: e } = t;
|
|
31541
31535
|
if (!e)
|
|
31542
31536
|
throw "text\u306F\u5FC5\u9808\u3067\u3059";
|
|
31543
|
-
const r = c(this,
|
|
31537
|
+
const r = c(this, Zr).call(this, t);
|
|
31544
31538
|
delete t.text, this.val.getVal("tmp:sn.skip.enabled") ? t.wait = 0 : "wait" in t && Q(t, "wait", NaN);
|
|
31545
31539
|
const n = encodeURIComponent(JSON.stringify(t));
|
|
31546
|
-
c(this,
|
|
31540
|
+
c(this, Dr).call(this, "add\uFF5C" + n, r);
|
|
31547
31541
|
const s = ft(t, "record", !0), a = this.val.doRecLog();
|
|
31548
31542
|
return s || this.val.setVal_Nochk("save", "sn.doRecLog", s), r.tagCh(e.replaceAll("[r]", `
|
|
31549
|
-
`)), this.val.setVal_Nochk("save", "sn.doRecLog", a), c(this,
|
|
31550
|
-
},
|
|
31543
|
+
`)), this.val.setVal_Nochk("save", "sn.doRecLog", a), c(this, Dr).call(this, "add_close\uFF5C", r), !1;
|
|
31544
|
+
}, Zr = new WeakMap(), N0 = new WeakSet(), oC = function(t) {
|
|
31551
31545
|
const e = P(this, qs, mu).call(this, t, c(this, mn)), n = c(this, Vt)[e].getPage(t);
|
|
31552
|
-
if (!(n instanceof
|
|
31546
|
+
if (!(n instanceof xe))
|
|
31553
31547
|
throw e + "\u306FTxtLayer\u3067\u306F\u3042\u308A\u307E\u305B\u3093";
|
|
31554
31548
|
return n;
|
|
31555
31549
|
}, Sf = new WeakMap(), L0 = new WeakSet(), uC = function(t) {
|
|
31556
31550
|
const { layer: e } = t;
|
|
31557
31551
|
if (!e)
|
|
31558
31552
|
throw "[current] layer\u306F\u5FC5\u9808\u3067\u3059";
|
|
31559
|
-
if (M(this, yn, c(this, Vt)[e]), !(c(this, yn).getPage(t) instanceof
|
|
31553
|
+
if (M(this, yn, c(this, Vt)[e]), !(c(this, yn).getPage(t) instanceof xe))
|
|
31560
31554
|
throw `${e}\u306FTxtLayer\u3067\u306F\u3042\u308A\u307E\u305B\u3093`;
|
|
31561
31555
|
this.recPagebreak(), M(this, mn, e), this.val.setVal_Nochk("save", "const.sn.mesLayer", e);
|
|
31562
|
-
for (const r of P(this, Sr,
|
|
31556
|
+
for (const r of P(this, Sr, $r).call(this)) {
|
|
31563
31557
|
const n = c(this, Vt)[r];
|
|
31564
|
-
n.fore instanceof
|
|
31558
|
+
n.fore instanceof xe && (n.fore.isCur = n.back.isCur = r === e);
|
|
31565
31559
|
}
|
|
31566
31560
|
return !1;
|
|
31567
31561
|
}, yn = new WeakMap(), So = new WeakMap(), qs = new WeakSet(), mu = function(t, e = "") {
|
|
@@ -31573,22 +31567,22 @@ ${r}` : n != null ? n : e;
|
|
|
31573
31567
|
throw "\u5C5E\u6027 layer\u3010" + r + "\u3011\u304C\u4E0D\u6B63\u3067\u3059\u3002\u30EC\u30A4\u30E4\u30FC\u304C\u3042\u308A\u307E\u305B\u3093";
|
|
31574
31568
|
return t.layer = r;
|
|
31575
31569
|
}, Gi = new WeakMap(), _n = new WeakMap(), G0 = new WeakSet(), lC = function(t) {
|
|
31576
|
-
const e = c(this,
|
|
31570
|
+
const e = c(this, Zr).call(this, t);
|
|
31577
31571
|
return t.layer === c(this, mn) && t.page === "fore" && this.recPagebreak(), e.clearText(), !1;
|
|
31578
31572
|
}, U0 = new WeakSet(), hC = function(t) {
|
|
31579
|
-
return c(this,
|
|
31573
|
+
return c(this, Dr).call(this, "endlink\uFF5C", c(this, Zr).call(this, t)), !1;
|
|
31580
31574
|
}, j0 = new WeakSet(), cC = function(t) {
|
|
31581
31575
|
return ft(t, "rec_page_break", !0) && this.recPagebreak(), c(this, yn) && (c(this, yn).fore.clearLay(t), c(this, yn).back.clearLay(t)), !1;
|
|
31582
31576
|
}, z0 = new WeakSet(), fC = function(t) {
|
|
31583
31577
|
if (!t.pic)
|
|
31584
31578
|
throw "[graph] pic\u306F\u5FC5\u9808\u3067\u3059";
|
|
31585
31579
|
const e = encodeURIComponent(JSON.stringify(t));
|
|
31586
|
-
return c(this,
|
|
31580
|
+
return c(this, Dr).call(this, "grp\uFF5C" + e, c(this, Zr).call(this, t)), !1;
|
|
31587
31581
|
}, H0 = new WeakSet(), dC = function(t) {
|
|
31588
31582
|
var r, n, s;
|
|
31589
31583
|
(r = t.style) != null || (t.style = "background-color: rgba(255,0,0,0.5);"), (n = t.style_hover) != null || (t.style_hover = "background-color: rgba(255,0,0,0.9);"), (s = t.style_clicked) != null || (t.style_clicked = t.style);
|
|
31590
31584
|
const e = encodeURIComponent(JSON.stringify(t));
|
|
31591
|
-
return c(this,
|
|
31585
|
+
return c(this, Dr).call(this, "link\uFF5C" + e, c(this, Zr).call(this, t)), !1;
|
|
31592
31586
|
}, $0 = new WeakSet(), pC = function(t) {
|
|
31593
31587
|
return t.text = `
|
|
31594
31588
|
`, P(this, wo, Rh).call(this, t);
|
|
@@ -31613,15 +31607,15 @@ ${r}` : n != null ? n : e;
|
|
|
31613
31607
|
return t.text = "\uFF5C" + encodeURIComponent(e) + "\u300A" + encodeURIComponent(r) + "\u300B", delete t.t, delete t.r, P(this, wo, Rh).call(this, t);
|
|
31614
31608
|
}, Y0 = new WeakSet(), yC = function(t) {
|
|
31615
31609
|
const e = encodeURIComponent(JSON.stringify(t));
|
|
31616
|
-
return c(this,
|
|
31610
|
+
return c(this, Dr).call(this, "span\uFF5C" + e, c(this, Zr).call(this, t)), !1;
|
|
31617
31611
|
}, q0 = new WeakSet(), _C = function(t) {
|
|
31618
31612
|
if (!t.t)
|
|
31619
31613
|
throw "[tcy] t\u306F\u5FC5\u9808\u3067\u3059";
|
|
31620
31614
|
const e = encodeURIComponent(JSON.stringify(t));
|
|
31621
|
-
return c(this,
|
|
31615
|
+
return c(this, Dr).call(this, "tcy\uFF5C" + e, c(this, Zr).call(this, t)), !1;
|
|
31622
31616
|
}, Z0 = new WeakSet(), bC = function(t) {
|
|
31623
31617
|
console.group("\u{1F95F} [dump_lay]");
|
|
31624
|
-
for (const e of P(this, Sr,
|
|
31618
|
+
for (const e of P(this, Sr, $r).call(this, t.layer)) {
|
|
31625
31619
|
const r = c(this, Vt)[e];
|
|
31626
31620
|
try {
|
|
31627
31621
|
console.info(
|
|
@@ -31636,10 +31630,10 @@ ${r}` : n != null ? n : e;
|
|
|
31636
31630
|
return console.groupEnd(), !1;
|
|
31637
31631
|
}, K0 = new WeakSet(), xC = function(t) {
|
|
31638
31632
|
const e = P(this, qs, mu).call(this, t, c(this, mn)), r = ft(t, "enabled", !0);
|
|
31639
|
-
return c(this,
|
|
31633
|
+
return c(this, Zr).call(this, t).enabled = r, this.val.setVal_Nochk("save", "const.sn.layer." + e + ".enabled", r), !1;
|
|
31640
31634
|
}, J0 = new WeakSet(), EC = function(t) {
|
|
31641
31635
|
var e, r, n;
|
|
31642
|
-
return Uh.argChk_page(t, "back"), (e = t.clicksebuf) != null || (t.clicksebuf = "SYS"), (r = t.entersebuf) != null || (t.entersebuf = "SYS"), (n = t.leavesebuf) != null || (t.leavesebuf = "SYS"), t.fn || (t.fn = this.scrItr.scriptFn), c(this,
|
|
31636
|
+
return Uh.argChk_page(t, "back"), (e = t.clicksebuf) != null || (t.clicksebuf = "SYS"), (r = t.entersebuf) != null || (t.entersebuf = "SYS"), (n = t.leavesebuf) != null || (t.leavesebuf = "SYS"), t.fn || (t.fn = this.scrItr.scriptFn), c(this, Zr).call(this, t).addButton(t), this.scrItr.recodeDesign(t), !1;
|
|
31643
31637
|
}, Z(Ba, "REG_TSY_PATH", /\(\s*(?:(?<x>[-=\d\.]+)|(['"])(?<x2>.*?)\2)?(?:\s*,\s*(?:(?<y>[-=\d\.]+)|(['"])(?<y2>.*?)\5)?(?:\s*,\s*(?:(?<o>[-=\d\.]+)|(['"])(?<o2>.*?)\8))?)?|(?<json>\{[^{}]*})/g), E(Ba, Ys, 10);
|
|
31644
31638
|
var Te, de, Sl, Q0, wC, Cf, To, Ah;
|
|
31645
31639
|
class WL {
|
|
@@ -31716,7 +31710,7 @@ class WL {
|
|
|
31716
31710
|
}
|
|
31717
31711
|
remove(t) {
|
|
31718
31712
|
const e = c(this, Te).findIndex((r) => r.btn === t);
|
|
31719
|
-
e < 0 || (c(this, Te).splice(e, 1), c(this, Te).length === 0 ? M(this, de, -1) : e <= c(this, de) &&
|
|
31713
|
+
e < 0 || (c(this, Te).splice(e, 1), c(this, Te).length === 0 ? M(this, de, -1) : e <= c(this, de) && --$e(this, de)._);
|
|
31720
31714
|
}
|
|
31721
31715
|
isFocus(t) {
|
|
31722
31716
|
return c(this, de) < 0 ? !1 : c(this, Te)[c(this, de)].btn === t;
|
|
@@ -31725,7 +31719,7 @@ class WL {
|
|
|
31725
31719
|
P(this, To, Ah).call(this);
|
|
31726
31720
|
const t = c(this, Te).length;
|
|
31727
31721
|
if (t !== 0) {
|
|
31728
|
-
|
|
31722
|
+
--$e(this, de)._ < 0 && M(this, de, t - 1);
|
|
31729
31723
|
for (let e = t; e >= 1; --e) {
|
|
31730
31724
|
const r = (c(this, de) + e) % t;
|
|
31731
31725
|
if (c(this, Te)[r].on()) {
|
|
@@ -31740,7 +31734,7 @@ class WL {
|
|
|
31740
31734
|
P(this, To, Ah).call(this);
|
|
31741
31735
|
const t = c(this, Te).length;
|
|
31742
31736
|
if (t !== 0) {
|
|
31743
|
-
|
|
31737
|
+
++$e(this, de)._ >= t && M(this, de, 0);
|
|
31744
31738
|
for (let e = 0; e < t; ++e) {
|
|
31745
31739
|
const r = (c(this, de) + e) % t;
|
|
31746
31740
|
if (c(this, Te)[r].on()) {
|
|
@@ -31775,7 +31769,7 @@ Te = new WeakMap(), de = new WeakMap(), Sl = new WeakMap(), Q0 = new WeakSet(),
|
|
|
31775
31769
|
!(e.btn instanceof ve) || e.btn.parent ? e.off() : c(this, Te).splice(t, 1);
|
|
31776
31770
|
}
|
|
31777
31771
|
};
|
|
31778
|
-
var
|
|
31772
|
+
var Gr = "top", xi = "bottom", Ei = "right", Ur = "left", im = "auto", _d = [Gr, xi, Ei, Ur], Yl = "start", uc = "end", YL = "clippingParents", SC = "viewport", mh = "popper", qL = "reference", NE = /* @__PURE__ */ _d.reduce(function(i, t) {
|
|
31779
31773
|
return i.concat([t + "-" + Yl, t + "-" + uc]);
|
|
31780
31774
|
}, []), TC = /* @__PURE__ */ [].concat(_d, [im]).reduce(function(i, t) {
|
|
31781
31775
|
return i.concat([t, t + "-" + Yl, t + "-" + uc]);
|
|
@@ -31796,7 +31790,7 @@ function tu(i) {
|
|
|
31796
31790
|
var t = Si(i).Element;
|
|
31797
31791
|
return i instanceof t || i instanceof Element;
|
|
31798
31792
|
}
|
|
31799
|
-
function
|
|
31793
|
+
function ni(i) {
|
|
31800
31794
|
var t = Si(i).HTMLElement;
|
|
31801
31795
|
return i instanceof t || i instanceof HTMLElement;
|
|
31802
31796
|
}
|
|
@@ -31810,7 +31804,7 @@ function s5(i) {
|
|
|
31810
31804
|
var t = i.state;
|
|
31811
31805
|
Object.keys(t.elements).forEach(function(e) {
|
|
31812
31806
|
var r = t.styles[e] || {}, n = t.attributes[e] || {}, s = t.elements[e];
|
|
31813
|
-
!
|
|
31807
|
+
!ni(s) || !Rn(s) || (Object.assign(s.style, r), Object.keys(n).forEach(function(a) {
|
|
31814
31808
|
var o = n[a];
|
|
31815
31809
|
o === !1 ? s.removeAttribute(a) : s.setAttribute(a, o === !0 ? "" : o);
|
|
31816
31810
|
}));
|
|
@@ -31834,7 +31828,7 @@ function a5(i) {
|
|
|
31834
31828
|
var n = t.elements[r], s = t.attributes[r] || {}, a = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : e[r]), o = a.reduce(function(u, l) {
|
|
31835
31829
|
return u[l] = "", u;
|
|
31836
31830
|
}, {});
|
|
31837
|
-
!
|
|
31831
|
+
!ni(n) || !Rn(n) || (Object.assign(n.style, o), Object.keys(s).forEach(function(u) {
|
|
31838
31832
|
n.removeAttribute(u);
|
|
31839
31833
|
}));
|
|
31840
31834
|
});
|
|
@@ -31864,7 +31858,7 @@ function CC() {
|
|
|
31864
31858
|
function Zl(i, t, e) {
|
|
31865
31859
|
t === void 0 && (t = !1), e === void 0 && (e = !1);
|
|
31866
31860
|
var r = i.getBoundingClientRect(), n = 1, s = 1;
|
|
31867
|
-
t &&
|
|
31861
|
+
t && ni(i) && (n = i.offsetWidth > 0 && ql(r.width) / i.offsetWidth || 1, s = i.offsetHeight > 0 && ql(r.height) / i.offsetHeight || 1);
|
|
31868
31862
|
var a = tu(i) ? Si(i) : window, o = a.visualViewport, u = !CC() && e, l = (r.left + (u && o ? o.offsetLeft : 0)) / n, h = (r.top + (u && o ? o.offsetTop : 0)) / s, f = r.width / n, d = r.height / s;
|
|
31869
31863
|
return {
|
|
31870
31864
|
width: f,
|
|
@@ -31913,17 +31907,17 @@ function nm(i) {
|
|
|
31913
31907
|
return Rn(i) === "html" ? i : i.assignedSlot || i.parentNode || (Cx(i) ? i.host : null) || da(i);
|
|
31914
31908
|
}
|
|
31915
31909
|
function LE(i) {
|
|
31916
|
-
return !
|
|
31910
|
+
return !ni(i) || Qi(i).position === "fixed" ? null : i.offsetParent;
|
|
31917
31911
|
}
|
|
31918
31912
|
function l5(i) {
|
|
31919
31913
|
var t = /firefox/i.test(z_()), e = /Trident/i.test(z_());
|
|
31920
|
-
if (e &&
|
|
31914
|
+
if (e && ni(i)) {
|
|
31921
31915
|
var r = Qi(i);
|
|
31922
31916
|
if (r.position === "fixed")
|
|
31923
31917
|
return null;
|
|
31924
31918
|
}
|
|
31925
31919
|
var n = nm(i);
|
|
31926
|
-
for (Cx(n) && (n = n.host);
|
|
31920
|
+
for (Cx(n) && (n = n.host); ni(n) && ["html", "body"].indexOf(Rn(n)) < 0; ) {
|
|
31927
31921
|
var s = Qi(n);
|
|
31928
31922
|
if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || t && s.willChange === "filter" || t && s.filter && s.filter !== "none")
|
|
31929
31923
|
return n;
|
|
@@ -31968,16 +31962,16 @@ var c5 = function(t, e) {
|
|
|
31968
31962
|
})) : t, OC(typeof t != "number" ? t : IC(t, _d));
|
|
31969
31963
|
};
|
|
31970
31964
|
function f5(i) {
|
|
31971
|
-
var t, e = i.state, r = i.name, n = i.options, s = e.elements.arrow, a = e.modifiersData.popperOffsets, o = qi(e.placement), u = Px(o), l = [
|
|
31965
|
+
var t, e = i.state, r = i.name, n = i.options, s = e.elements.arrow, a = e.modifiersData.popperOffsets, o = qi(e.placement), u = Px(o), l = [Ur, Ei].indexOf(o) >= 0, h = l ? "height" : "width";
|
|
31972
31966
|
if (!(!s || !a)) {
|
|
31973
|
-
var f = c5(n.padding, e), d = Mx(s), p = u === "y" ?
|
|
31967
|
+
var f = c5(n.padding, e), d = Mx(s), p = u === "y" ? Gr : Ur, v = u === "y" ? xi : Ei, g = e.rects.reference[h] + e.rects.reference[u] - a[u] - e.rects.popper[h], m = a[u] - e.rects.reference[u], y = bd(s), _ = y ? u === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, b = g / 2 - m / 2, x = f[p], S = _ - d[h] - f[v], w = _ / 2 - d[h] / 2 + b, C = Hh(x, w, S), T = u;
|
|
31974
31968
|
e.modifiersData[r] = (t = {}, t[T] = C, t.centerOffset = C - w, t);
|
|
31975
31969
|
}
|
|
31976
31970
|
}
|
|
31977
31971
|
function d5(i) {
|
|
31978
31972
|
var t = i.state, e = i.options, r = e.element, n = r === void 0 ? "[data-popper-arrow]" : r;
|
|
31979
31973
|
if (n != null && !(typeof n == "string" && (n = t.elements.popper.querySelector(n), !n))) {
|
|
31980
|
-
if (process.env.NODE_ENV !== "production" && (
|
|
31974
|
+
if (process.env.NODE_ENV !== "production" && (ni(n) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !MC(t.elements.popper, n)) {
|
|
31981
31975
|
process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
|
|
31982
31976
|
return;
|
|
31983
31977
|
}
|
|
@@ -32018,15 +32012,15 @@ function GE(i) {
|
|
|
32018
32012
|
y: g
|
|
32019
32013
|
};
|
|
32020
32014
|
p = m.x, g = m.y;
|
|
32021
|
-
var y = a.hasOwnProperty("x"), _ = a.hasOwnProperty("y"), b =
|
|
32015
|
+
var y = a.hasOwnProperty("x"), _ = a.hasOwnProperty("y"), b = Ur, x = Gr, S = window;
|
|
32022
32016
|
if (l) {
|
|
32023
32017
|
var w = bd(e), C = "clientHeight", T = "clientWidth";
|
|
32024
|
-
if (w === Si(e) && (w = da(e), Qi(w).position !== "static" && o === "absolute" && (C = "scrollHeight", T = "scrollWidth")), w = w, n ===
|
|
32018
|
+
if (w === Si(e) && (w = da(e), Qi(w).position !== "static" && o === "absolute" && (C = "scrollHeight", T = "scrollWidth")), w = w, n === Gr || (n === Ur || n === Ei) && s === uc) {
|
|
32025
32019
|
x = xi;
|
|
32026
32020
|
var O = f && w === S && S.visualViewport ? S.visualViewport.height : w[C];
|
|
32027
32021
|
g -= O - r.height, g *= u ? 1 : -1;
|
|
32028
32022
|
}
|
|
32029
|
-
if (n ===
|
|
32023
|
+
if (n === Ur || (n === Gr || n === xi) && s === uc) {
|
|
32030
32024
|
b = Ei;
|
|
32031
32025
|
var I = f && w === S && S.visualViewport ? S.visualViewport.width : w[T];
|
|
32032
32026
|
p -= I - r.width, p *= u ? 1 : -1;
|
|
@@ -32168,7 +32162,7 @@ function Dx(i) {
|
|
|
32168
32162
|
return /auto|scroll|overlay|hidden/.test(e + n + r);
|
|
32169
32163
|
}
|
|
32170
32164
|
function DC(i) {
|
|
32171
|
-
return ["html", "body", "#document"].indexOf(Rn(i)) >= 0 ? i.ownerDocument.body :
|
|
32165
|
+
return ["html", "body", "#document"].indexOf(Rn(i)) >= 0 ? i.ownerDocument.body : ni(i) && Dx(i) ? i : DC(nm(i));
|
|
32172
32166
|
}
|
|
32173
32167
|
function $h(i, t) {
|
|
32174
32168
|
var e;
|
|
@@ -32192,7 +32186,7 @@ function jE(i, t, e) {
|
|
|
32192
32186
|
return t === SC ? H_(w5(i, e)) : tu(t) ? T5(t, e) : H_(S5(da(i)));
|
|
32193
32187
|
}
|
|
32194
32188
|
function C5(i) {
|
|
32195
|
-
var t = $h(nm(i)), e = ["absolute", "fixed"].indexOf(Qi(i).position) >= 0, r = e &&
|
|
32189
|
+
var t = $h(nm(i)), e = ["absolute", "fixed"].indexOf(Qi(i).position) >= 0, r = e && ni(i) ? bd(i) : i;
|
|
32196
32190
|
return tu(r) ? t.filter(function(n) {
|
|
32197
32191
|
return tu(n) && MC(n, r) && Rn(n) !== "body";
|
|
32198
32192
|
}) : [];
|
|
@@ -32207,7 +32201,7 @@ function M5(i, t, e, r) {
|
|
|
32207
32201
|
function RC(i) {
|
|
32208
32202
|
var t = i.reference, e = i.element, r = i.placement, n = r ? qi(r) : null, s = r ? Kl(r) : null, a = t.x + t.width / 2 - e.width / 2, o = t.y + t.height / 2 - e.height / 2, u;
|
|
32209
32203
|
switch (n) {
|
|
32210
|
-
case
|
|
32204
|
+
case Gr:
|
|
32211
32205
|
u = {
|
|
32212
32206
|
x: a,
|
|
32213
32207
|
y: t.y - e.height
|
|
@@ -32225,7 +32219,7 @@ function RC(i) {
|
|
|
32225
32219
|
y: o
|
|
32226
32220
|
};
|
|
32227
32221
|
break;
|
|
32228
|
-
case
|
|
32222
|
+
case Ur:
|
|
32229
32223
|
u = {
|
|
32230
32224
|
x: t.x - e.width,
|
|
32231
32225
|
y: o
|
|
@@ -32267,7 +32261,7 @@ function lc(i, t) {
|
|
|
32267
32261
|
if (d === mh && R) {
|
|
32268
32262
|
var A = R[n];
|
|
32269
32263
|
Object.keys(I).forEach(function(F) {
|
|
32270
|
-
var G = [Ei, xi].indexOf(F) >= 0 ? 1 : -1, k = [
|
|
32264
|
+
var G = [Ei, xi].indexOf(F) >= 0 ? 1 : -1, k = [Gr, xi].indexOf(F) >= 0 ? "y" : "x";
|
|
32271
32265
|
I[F] += A[k] * G;
|
|
32272
32266
|
});
|
|
32273
32267
|
}
|
|
@@ -32312,13 +32306,13 @@ function I5(i) {
|
|
|
32312
32306
|
allowedAutoPlacements: g
|
|
32313
32307
|
}) : ot);
|
|
32314
32308
|
}, []), S = t.rects.reference, w = t.rects.popper, C = /* @__PURE__ */ new Map(), T = !0, O = x[0], I = 0; I < x.length; I++) {
|
|
32315
|
-
var R = x[I], A = qi(R), F = Kl(R) === Yl, G = [
|
|
32309
|
+
var R = x[I], A = qi(R), F = Kl(R) === Yl, G = [Gr, xi].indexOf(A) >= 0, k = G ? "width" : "height", U = lc(t, {
|
|
32316
32310
|
placement: R,
|
|
32317
32311
|
boundary: h,
|
|
32318
32312
|
rootBoundary: f,
|
|
32319
32313
|
altBoundary: d,
|
|
32320
32314
|
padding: l
|
|
32321
|
-
}), H = G ? F ? Ei :
|
|
32315
|
+
}), H = G ? F ? Ei : Ur : F ? xi : Gr;
|
|
32322
32316
|
S[k] > w[k] && (H = jp(H));
|
|
32323
32317
|
var K = jp(H), L = [];
|
|
32324
32318
|
if (s && L.push(U[A] <= 0), o && L.push(U[H] <= 0, U[K] <= 0), L.every(function(tt) {
|
|
@@ -32370,7 +32364,7 @@ function zE(i, t, e) {
|
|
|
32370
32364
|
};
|
|
32371
32365
|
}
|
|
32372
32366
|
function HE(i) {
|
|
32373
|
-
return [
|
|
32367
|
+
return [Gr, Ei, xi, Ur].some(function(t) {
|
|
32374
32368
|
return i[t] >= 0;
|
|
32375
32369
|
});
|
|
32376
32370
|
}
|
|
@@ -32398,10 +32392,10 @@ const A5 = {
|
|
|
32398
32392
|
fn: R5
|
|
32399
32393
|
};
|
|
32400
32394
|
function F5(i, t, e) {
|
|
32401
|
-
var r = qi(i), n = [
|
|
32395
|
+
var r = qi(i), n = [Ur, Gr].indexOf(r) >= 0 ? -1 : 1, s = typeof e == "function" ? e(Object.assign({}, t, {
|
|
32402
32396
|
placement: i
|
|
32403
32397
|
})) : e, a = s[0], o = s[1];
|
|
32404
|
-
return a = a || 0, o = (o || 0) * n, [
|
|
32398
|
+
return a = a || 0, o = (o || 0) * n, [Ur, Ei].indexOf(r) >= 0 ? {
|
|
32405
32399
|
x: o,
|
|
32406
32400
|
y: a
|
|
32407
32401
|
} : {
|
|
@@ -32461,14 +32455,14 @@ function U5(i) {
|
|
|
32461
32455
|
};
|
|
32462
32456
|
if (!!w) {
|
|
32463
32457
|
if (s) {
|
|
32464
|
-
var F, G = x === "y" ?
|
|
32458
|
+
var F, G = x === "y" ? Gr : Ur, k = x === "y" ? xi : Ei, U = x === "y" ? "height" : "width", H = w[x], K = H + m[G], L = H - m[k], $ = p ? -T[U] / 2 : 0, Y = _ === Yl ? C[U] : T[U], ht = _ === Yl ? -T[U] : -C[U], dt = t.elements.arrow, tt = p && dt ? Mx(dt) : {
|
|
32465
32459
|
width: 0,
|
|
32466
32460
|
height: 0
|
|
32467
32461
|
}, ot = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : PC(), B = ot[G], gt = ot[k], st = Hh(0, C[U], tt[U]), pt = b ? C[U] / 2 - $ - st - B - I.mainAxis : Y - st - B - I.mainAxis, et = b ? -C[U] / 2 + $ + st + gt + I.mainAxis : ht + st + gt + I.mainAxis, q = t.elements.arrow && bd(t.elements.arrow), kt = q ? x === "y" ? q.clientTop || 0 : q.clientLeft || 0 : 0, it = (F = R == null ? void 0 : R[x]) != null ? F : 0, V = H + pt - it - kt, nt = H + et - it, yt = Hh(p ? mv(K, V) : K, H, p ? Vo(L, nt) : L);
|
|
32468
32462
|
w[x] = yt, A[x] = yt - H;
|
|
32469
32463
|
}
|
|
32470
32464
|
if (o) {
|
|
32471
|
-
var X, Dt = x === "x" ?
|
|
32465
|
+
var X, Dt = x === "x" ? Gr : Ur, Rt = x === "x" ? xi : Ei, Qt = w[S], je = S === "y" ? "height" : "width", ur = Qt + m[Dt], $t = Qt - m[Rt], Be = [Gr, Ur].indexOf(y) !== -1, ge = (X = R == null ? void 0 : R[S]) != null ? X : 0, ae = Be ? ur : Qt - C[je] - T[je] - ge + I.altAxis, ne = Be ? Qt + C[je] + T[je] - ge - I.altAxis : $t, Ht = p && Be ? h5(ae, Qt, ne) : Hh(p ? ae : ur, Qt, p ? ne : $t);
|
|
32472
32466
|
w[S] = Ht, A[S] = Ht - Qt;
|
|
32473
32467
|
}
|
|
32474
32468
|
t.modifiersData[r] = A;
|
|
@@ -32488,7 +32482,7 @@ function z5(i) {
|
|
|
32488
32482
|
};
|
|
32489
32483
|
}
|
|
32490
32484
|
function H5(i) {
|
|
32491
|
-
return i === Si(i) || !
|
|
32485
|
+
return i === Si(i) || !ni(i) ? Ox(i) : z5(i);
|
|
32492
32486
|
}
|
|
32493
32487
|
function $5(i) {
|
|
32494
32488
|
var t = i.getBoundingClientRect(), e = ql(t.width) / i.offsetWidth || 1, r = ql(t.height) / i.offsetHeight || 1;
|
|
@@ -32496,14 +32490,14 @@ function $5(i) {
|
|
|
32496
32490
|
}
|
|
32497
32491
|
function V5(i, t, e) {
|
|
32498
32492
|
e === void 0 && (e = !1);
|
|
32499
|
-
var r =
|
|
32493
|
+
var r = ni(t), n = ni(t) && $5(t), s = da(t), a = Zl(i, n, e), o = {
|
|
32500
32494
|
scrollLeft: 0,
|
|
32501
32495
|
scrollTop: 0
|
|
32502
32496
|
}, u = {
|
|
32503
32497
|
x: 0,
|
|
32504
32498
|
y: 0
|
|
32505
32499
|
};
|
|
32506
|
-
return (r || !r && !e) && ((Rn(t) !== "body" || Dx(s)) && (o = H5(t)),
|
|
32500
|
+
return (r || !r && !e) && ((Rn(t) !== "body" || Dx(s)) && (o = H5(t)), ni(t) ? (u = Zl(t, !0), u.x += t.clientLeft, u.y += t.clientTop) : s && (u.x = Ix(s))), {
|
|
32507
32501
|
x: a.left + o.scrollLeft - u.x,
|
|
32508
32502
|
y: a.top + o.scrollTop - u.y,
|
|
32509
32503
|
width: a.width,
|
|
@@ -32749,7 +32743,7 @@ var e4 = [b5, L5, y5, o5, k5, D5, j5, p5, A5], r4 = /* @__PURE__ */ t4({
|
|
|
32749
32743
|
defaultModifiers: e4
|
|
32750
32744
|
});
|
|
32751
32745
|
const { GamepadListener: i4 } = require("gamepad.js");
|
|
32752
|
-
var
|
|
32746
|
+
var Rr, Zs, sr, Mf, Pf, $_, Of, V_, If, X_, Tl, Cl, Df, W_, Me, di, rs, is, Rf, Ks, yu, Af, Ff, mr, Ml, Pl, Bf, tg, AC, kf, Co, eg, FC, Nf, Y_, rg, BC, Lf, q_, Mo, Fh, Po, ig, kC, ng, NC, pi, sg, LC, ag, GC, Ol, zp, ns, Oo, Io, og, UC, Tr;
|
|
32753
32747
|
class n4 {
|
|
32754
32748
|
constructor(t, e, r, n, s, a, o, u, l) {
|
|
32755
32749
|
E(this, Pf);
|
|
@@ -32769,7 +32763,7 @@ class n4 {
|
|
|
32769
32763
|
E(this, ag);
|
|
32770
32764
|
E(this, Ol);
|
|
32771
32765
|
E(this, og);
|
|
32772
|
-
E(this,
|
|
32766
|
+
E(this, Rr, new Hl());
|
|
32773
32767
|
E(this, Zs, new i4({
|
|
32774
32768
|
analog: !1,
|
|
32775
32769
|
deadZone: 0.3
|
|
@@ -32823,7 +32817,7 @@ class n4 {
|
|
|
32823
32817
|
});
|
|
32824
32818
|
var v, g;
|
|
32825
32819
|
if (this.cfg = t, this.hTag = e, this.appPixi = r, this.main = n, this.layMng = s, this.val = a, this.sndMng = o, this.scrItr = u, this.sys = l, e.clear_event = (m) => P(this, eg, FC).call(this, m), e.event = (m) => P(this, rg, BC).call(this, m), e.l = (m) => P(this, ig, kC).call(this, m), e.p = (m) => P(this, ng, NC).call(this, m), e.s = () => (this.scrItr.recodePage(), P(this, Ks, yu).call(this, () => {
|
|
32826
|
-
}, !1, !0)), e.set_cancel_skip = () => P(this, sg, LC).call(this), e.set_focus = (m) => P(this, ag, GC).call(this, m), e.wait = (m) => P(this, Ol, zp).call(this, m), e.waitclick = () => P(this, og, UC).call(this), o.setEvtMng(this), u.setOtherObj(this, s),
|
|
32820
|
+
}, !1, !0)), e.set_cancel_skip = () => P(this, sg, LC).call(this), e.set_focus = (m) => P(this, ag, GC).call(this, m), e.wait = (m) => P(this, Ol, zp).call(this, m), e.waitclick = () => P(this, og, UC).call(this), o.setEvtMng(this), u.setOtherObj(this, s), xe.setEvtMng(n, this, l), s.setEvtMng(this), l.setFire((m, y) => this.fire(m, y)), W.isDbg) {
|
|
32827
32821
|
const m = {
|
|
32828
32822
|
pause: () => {
|
|
32829
32823
|
if (M(this, rs, !0), !c(this, is))
|
|
@@ -32880,7 +32874,7 @@ class n4 {
|
|
|
32880
32874
|
<div class="sn_hint" role="tooltip">
|
|
32881
32875
|
<span>Dummy</span>
|
|
32882
32876
|
<div class="sn_hint_ar" data-popper-arrow></div>
|
|
32883
|
-
</div>`), M(this, mr, document.querySelector(".sn_hint")), M(this, Ml, c(this, mr).querySelector("span")), M(this, Pl, r4(c(this, Ff), c(this, mr))), c(this, mr).hidden = !0, r.stage.interactive = !0, W.isMobile ? r.stage.on("pointerdown", (m) => this.fire("click", m)) : c(this,
|
|
32877
|
+
</div>`), M(this, mr, document.querySelector(".sn_hint")), M(this, Ml, c(this, mr).querySelector("span")), M(this, Pl, r4(c(this, Ff), c(this, mr))), c(this, mr).hidden = !0, r.stage.interactive = !0, W.isMobile ? r.stage.on("pointerdown", (m) => this.fire("click", m)) : c(this, Rr).add(r.stage, "pointerdown", (m) => {
|
|
32884
32878
|
switch (m.data.button) {
|
|
32885
32879
|
case 0:
|
|
32886
32880
|
this.fire("click", m);
|
|
@@ -32889,13 +32883,13 @@ class n4 {
|
|
|
32889
32883
|
this.fire("middleclick", m);
|
|
32890
32884
|
break;
|
|
32891
32885
|
}
|
|
32892
|
-
}), c(this,
|
|
32886
|
+
}), c(this, Rr).add(window, "keydown", (m) => P(this, Pf, $_).call(this, m)), c(this, Rr).add(r.view, "contextmenu", (m) => P(this, Of, V_).call(this, m));
|
|
32893
32887
|
const h = (m) => {
|
|
32894
32888
|
W.isDarkMode = m.matches, a.setVal_Nochk("tmp", "const.sn.isDarkMode", W.isDarkMode);
|
|
32895
32889
|
}, f = globalThis.matchMedia("(prefers-color-scheme: dark)");
|
|
32896
|
-
h(f), c(this,
|
|
32890
|
+
h(f), c(this, Rr).add(f, "change", (m) => {
|
|
32897
32891
|
h(m), this.fire("sn:chgDarkMode", m);
|
|
32898
|
-
}), "WheelEvent" in window && (c(this,
|
|
32892
|
+
}), "WheelEvent" in window && (c(this, Rr).add(r.view, "wheel", (m) => P(this, If, X_).call(this, m), { passive: !0 }), M(this, Mf, (m) => c(this, Rr).add(m, "wheel", (y) => P(this, If, X_).call(this, y), { passive: !0 })), M(this, kf, (m, y) => m.add(r.view, "wheel", (_) => {
|
|
32899
32893
|
_.isComposing || _.deltaY <= 0 || (_.stopPropagation(), y());
|
|
32900
32894
|
}))), W.debugLog && (c(this, Zs).on("gamepad:connected", (m) => console.log(`\u{1F47A}<'gamepad:connected' index:${m.detail.index} id:${m.detail.gamepad.id}`)), c(this, Zs).on("gamepad:disconnected", (m) => console.log(`\u{1F47A}<'gamepad:disconnected' index:${m.detail.index} id:${m.detail.gamepad.id}`)));
|
|
32901
32895
|
const d = [
|
|
@@ -32925,15 +32919,15 @@ class n4 {
|
|
|
32925
32919
|
(!y || y instanceof ve ? globalThis : y).dispatchEvent(new KeyboardEvent("keydown", { key: "Enter", bubbles: !0 }));
|
|
32926
32920
|
} else
|
|
32927
32921
|
r.view.dispatchEvent(new Event("contextmenu"));
|
|
32928
|
-
}), c(this, Zs).start(), c(this,
|
|
32922
|
+
}), c(this, Zs).start(), c(this, Rr).add(window, "keyup", (m) => {
|
|
32929
32923
|
m.isComposing || m.key in c(this, Tr) && (c(this, Tr)[m.key] = 0);
|
|
32930
32924
|
}), a.defTmp("const.sn.key.alternate", () => c(this, Tr).Alt > 0), a.defTmp("const.sn.key.command", () => c(this, Tr).Meta > 0), a.defTmp("const.sn.key.control", () => c(this, Tr).Control > 0), a.defTmp("const.sn.key.end", () => c(this, Tr).End > 0), a.defTmp("const.sn.key.escape", () => c(this, Tr).Escape > 0), a.defTmp("const.sn.key.back", () => c(this, Tr).GoBack > 0);
|
|
32931
32925
|
}
|
|
32932
32926
|
resvFlameEvent(t) {
|
|
32933
|
-
c(this,
|
|
32927
|
+
c(this, Rr).add(t, "keydown", (e) => P(this, Pf, $_).call(this, e)), c(this, Rr).add(t, "contextmenu", (e) => P(this, Of, V_).call(this, e)), c(this, Mf).call(this, t);
|
|
32934
32928
|
}
|
|
32935
32929
|
destroy() {
|
|
32936
|
-
c(this, sr).destroy(), c(this,
|
|
32930
|
+
c(this, sr).destroy(), c(this, Rr).clear();
|
|
32937
32931
|
}
|
|
32938
32932
|
fire(t, e) {
|
|
32939
32933
|
var s;
|
|
@@ -33044,7 +33038,7 @@ class n4 {
|
|
|
33044
33038
|
return this.scrItr.skip4page ? !0 : Object.keys(c(this, Tr)).some((t) => c(this, Tr)[t] === 2);
|
|
33045
33039
|
}
|
|
33046
33040
|
}
|
|
33047
|
-
|
|
33041
|
+
Rr = new WeakMap(), Zs = new WeakMap(), sr = new WeakMap(), Mf = new WeakMap(), Pf = new WeakSet(), $_ = function(t) {
|
|
33048
33042
|
if (t.isComposing)
|
|
33049
33043
|
return;
|
|
33050
33044
|
t.key in c(this, Tr) && (c(this, Tr)[t.key] = t.repeat ? 2 : 1);
|
|
@@ -33143,7 +33137,7 @@ Ar = new WeakMap(), Zs = new WeakMap(), sr = new WeakMap(), Mf = new WeakMap(),
|
|
|
33143
33137
|
break;
|
|
33144
33138
|
}
|
|
33145
33139
|
l.forEach((f, d) => u.el.forEach((p) => {
|
|
33146
|
-
c(this,
|
|
33140
|
+
c(this, Rr).add(p, f, (v) => {
|
|
33147
33141
|
if (!c(this, is) || this.layMng.getFrmDisabled(u.id) || f === "keydown" && v.key !== "Enter")
|
|
33148
33142
|
return;
|
|
33149
33143
|
const g = p.dataset;
|
|
@@ -33273,8 +33267,8 @@ class YE {
|
|
|
33273
33267
|
this.fn = t, this.idx = e, this.csArg = r;
|
|
33274
33268
|
}
|
|
33275
33269
|
}
|
|
33276
|
-
var Xt, qt, mt, pe, ce, ss, Gf, Z_, Do, Il, ug, Js, Uf, K_, jf, J_, zf, Qs, bu, Ro, Bh, Ao, as, Pe, lg, jC, Fo, kh, hg, zC, Hf, Dl,
|
|
33277
|
-
const
|
|
33270
|
+
var Xt, qt, mt, pe, ce, ss, Gf, Z_, Do, Il, ug, Js, Uf, K_, jf, J_, zf, Qs, bu, Ro, Bh, Ao, as, Pe, lg, jC, Fo, kh, hg, zC, Hf, Dl, Kr, cg, HC, fg, $C, os, Ca, dg, VC, Bo, ko, $f, Vf, Xf, Jr, pg, XC, vg, WC, gg, YC, Wf, Q_, mg, qC, yg, ZC, _g, KC, Yf, tb, qf, No, Nh, Lo, us, Ma, Zf, eb, Kf, Jf, rb, bg, xg, Qf, Eg, JC, Ar, wg, QC, td, ib, Sg, Tg, Cg, tM, Mg, eM, ls, ed, nb, Pg, rM, Og, iM, Ig, Dg, nM, rd, Rl, Rg, sM, Al, Hp, Fl, Ag, aM, Ui, Fg, oM, Bl, $p, Bg, uM, ji, cr;
|
|
33271
|
+
const Vr = class {
|
|
33278
33272
|
constructor(t, e, r, n, s, a, o, u, l) {
|
|
33279
33273
|
E(this, Gf);
|
|
33280
33274
|
E(this, Uf);
|
|
@@ -33326,7 +33320,7 @@ const Xr = class {
|
|
|
33326
33320
|
});
|
|
33327
33321
|
E(this, Do, {
|
|
33328
33322
|
disconnect: () => {
|
|
33329
|
-
M(
|
|
33323
|
+
M(Vr, Ao, {}), M(Vr, as, {}), this.isBreak = () => !1, c(this, Do).continue({}), M(this, Pe, 0);
|
|
33330
33324
|
},
|
|
33331
33325
|
restart: () => this.isBreak = () => !1,
|
|
33332
33326
|
add_break: (t) => P(this, Gf, Z_).call(this, t.fn, t.o),
|
|
@@ -33334,9 +33328,9 @@ const Xr = class {
|
|
|
33334
33328
|
c(this, Pe) === 0 && (M(this, Pe, 1), this.main.setLoop(!1, `\u5909\u6570 ${t.dataId}\u3010${t.old_v}\u3011\u2192\u3010${t.new_v}\u3011\u30C7\u30FC\u30BF\u30D6\u30EC\u30FC\u30AF`), this.sys.callHook("stopOnDataBreakpoint", {}), this.sys.send2Dbg("stopOnDataBreakpoint", {}));
|
|
33335
33329
|
},
|
|
33336
33330
|
set_func_break: (t) => {
|
|
33337
|
-
M(
|
|
33331
|
+
M(Vr, as, {});
|
|
33338
33332
|
for (const e of t.a)
|
|
33339
|
-
c(
|
|
33333
|
+
c(Vr, as)[e.name] = 1;
|
|
33340
33334
|
this.sys.send2Dbg(t.ri, {});
|
|
33341
33335
|
},
|
|
33342
33336
|
stack: (t) => this.sys.send2Dbg(t.ri, { a: P(this, hg, zC).call(this) }),
|
|
@@ -33364,7 +33358,7 @@ const Xr = class {
|
|
|
33364
33358
|
}
|
|
33365
33359
|
});
|
|
33366
33360
|
E(this, Il, (t) => this.cfg.searchPath(t, pr.SCRIPT));
|
|
33367
|
-
E(this, Js, (t) => (this.sys.pathBaseCnvSnPath4Dbg + c(this, Il).call(this, t)).replace(c(
|
|
33361
|
+
E(this, Js, (t) => (this.sys.pathBaseCnvSnPath4Dbg + c(this, Il).call(this, t)).replace(c(Vr, ug), `$1/prj/$2/${c(this, qt)}$3`));
|
|
33368
33362
|
Z(this, "cnvPath4Dbg", (t) => this.sys.pathBaseCnvSnPath4Dbg + t.replace("/crypto_prj/", "/prj/"));
|
|
33369
33363
|
E(this, zf, 0);
|
|
33370
33364
|
E(this, Pe, 0);
|
|
@@ -33372,7 +33366,7 @@ const Xr = class {
|
|
|
33372
33366
|
E(this, Hf, (t) => {
|
|
33373
33367
|
});
|
|
33374
33368
|
E(this, Dl, void 0);
|
|
33375
|
-
E(this,
|
|
33369
|
+
E(this, Kr, void 0);
|
|
33376
33370
|
E(this, Bo, () => {
|
|
33377
33371
|
});
|
|
33378
33372
|
E(this, ko, () => {
|
|
@@ -33382,7 +33376,7 @@ const Xr = class {
|
|
|
33382
33376
|
Z(this, "noticeBreak", (t) => {
|
|
33383
33377
|
});
|
|
33384
33378
|
E(this, Xf, 5);
|
|
33385
|
-
E(this,
|
|
33379
|
+
E(this, Jr, [-1]);
|
|
33386
33380
|
E(this, qf, "");
|
|
33387
33381
|
E(this, Lo, "");
|
|
33388
33382
|
Z(this, "nextToken", () => "");
|
|
@@ -33391,7 +33385,7 @@ const Xr = class {
|
|
|
33391
33385
|
E(this, bg, /(\*{2,})([^\|]*)/);
|
|
33392
33386
|
E(this, xg, /\[macro\s/);
|
|
33393
33387
|
E(this, Qf, /\[endmacro[\s\]]/);
|
|
33394
|
-
E(this,
|
|
33388
|
+
E(this, Ar, /* @__PURE__ */ Object.create(null));
|
|
33395
33389
|
E(this, Sg, /^\[(call|loadplugin)\s/);
|
|
33396
33390
|
E(this, Tg, /\bfn\s*=\s*[^\s\]]+/);
|
|
33397
33391
|
E(this, ls, !1);
|
|
@@ -33421,9 +33415,9 @@ const Xr = class {
|
|
|
33421
33415
|
const p = d.hBreakpoint.hFn2hLineBP;
|
|
33422
33416
|
for (const [v, g] of Object.entries(p))
|
|
33423
33417
|
P(this, Gf, Z_).call(this, v, g);
|
|
33424
|
-
M(
|
|
33418
|
+
M(Vr, as, {});
|
|
33425
33419
|
for (const v of d.hBreakpoint.aFunc)
|
|
33426
|
-
c(
|
|
33420
|
+
c(Vr, as)[v.name] = 1;
|
|
33427
33421
|
if (d.stopOnEntry) {
|
|
33428
33422
|
for (; ; ) {
|
|
33429
33423
|
let v = this.nextToken();
|
|
@@ -33449,7 +33443,7 @@ const Xr = class {
|
|
|
33449
33443
|
return c(this, qt);
|
|
33450
33444
|
}
|
|
33451
33445
|
subIdxToken() {
|
|
33452
|
-
|
|
33446
|
+
--$e(this, mt)._;
|
|
33453
33447
|
}
|
|
33454
33448
|
get lineNum() {
|
|
33455
33449
|
return c(this, pe);
|
|
@@ -33502,7 +33496,7 @@ const Xr = class {
|
|
|
33502
33496
|
return n(a);
|
|
33503
33497
|
}
|
|
33504
33498
|
setOtherObj(t, e) {
|
|
33505
|
-
M(this, Dl, t), M(this,
|
|
33499
|
+
M(this, Dl, t), M(this, Kr, e);
|
|
33506
33500
|
}
|
|
33507
33501
|
dumpErrForeLine() {
|
|
33508
33502
|
var a;
|
|
@@ -33539,14 +33533,14 @@ const Xr = class {
|
|
|
33539
33533
|
if (c(this, ce).length > 0) {
|
|
33540
33534
|
const s = c(this, ce)[0];
|
|
33541
33535
|
t = s.fn, e = s.idx;
|
|
33542
|
-
const a = c(this,
|
|
33536
|
+
const a = c(this, Ar)[t];
|
|
33543
33537
|
a && (r = a.len);
|
|
33544
33538
|
}
|
|
33545
33539
|
const n = this.val.getAreaKidoku(t);
|
|
33546
33540
|
return !n || e === r ? !1 : n.search(e);
|
|
33547
33541
|
}
|
|
33548
33542
|
get normalWait() {
|
|
33549
|
-
return c(this, ls) ? this.val.getVal("sys:sn.tagCh.doWait_Kidoku") ?
|
|
33543
|
+
return c(this, ls) ? this.val.getVal("sys:sn.tagCh.doWait_Kidoku") ? ei(this.val.getVal("sys:sn.tagCh.msecWait_Kidoku")) : 0 : this.val.getVal("sys:sn.tagCh.doWait") ? ei(this.val.getVal("sys:sn.tagCh.msecWait")) : 0;
|
|
33550
33544
|
}
|
|
33551
33545
|
get skip4page() {
|
|
33552
33546
|
return c(this, Fl);
|
|
@@ -33571,7 +33565,7 @@ const Xr = class {
|
|
|
33571
33565
|
const o = c(this, ji)[c(this, cr)];
|
|
33572
33566
|
a.retFn = o.fn, a.retIdx = o.idx + 1;
|
|
33573
33567
|
}
|
|
33574
|
-
|
|
33568
|
+
++$e(this, cr)._ === c(this, ji).length ? c(this, ji).push(a) : c(this, ji)[c(this, cr)] = a;
|
|
33575
33569
|
}
|
|
33576
33570
|
recodeDesign(t) {
|
|
33577
33571
|
let e = "", r = 0;
|
|
@@ -33582,18 +33576,18 @@ const Xr = class {
|
|
|
33582
33576
|
} else
|
|
33583
33577
|
e = c(this, qt), r = c(this, mt);
|
|
33584
33578
|
t[":path"] = c(this, Js).call(this, e);
|
|
33585
|
-
const s = P(this, os, Ca).call(this, c(this,
|
|
33579
|
+
const s = P(this, os, Ca).call(this, c(this, Ar)[e], r);
|
|
33586
33580
|
t[":ln"] = s.ln, t[":col_s"] = s.col_s, t[":col_e"] = s.col_e;
|
|
33587
33581
|
const a = r - 1;
|
|
33588
|
-
t[":idx_tkn"] = a, t[":token"] = c(this,
|
|
33582
|
+
t[":idx_tkn"] = a, t[":token"] = c(this, Ar)[e].aToken[a], this.sys.send2Dbg("_recodeDesign", t);
|
|
33589
33583
|
}
|
|
33590
33584
|
replace(t, e) {
|
|
33591
33585
|
c(this, Xt).aToken[t] = e;
|
|
33592
33586
|
}
|
|
33593
33587
|
};
|
|
33594
|
-
let _u =
|
|
33588
|
+
let _u = Vr;
|
|
33595
33589
|
Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(), ce = new WeakMap(), ss = new WeakMap(), Gf = new WeakSet(), Z_ = function(t, e) {
|
|
33596
|
-
c(
|
|
33590
|
+
c(Vr, Ao)[c(this, Js).call(this, t)] = e;
|
|
33597
33591
|
}, Do = new WeakMap(), Il = new WeakMap(), ug = new WeakMap(), Js = new WeakMap(), Uf = new WeakSet(), K_ = function(t) {
|
|
33598
33592
|
if (P(this, Ro, Bh).call(this))
|
|
33599
33593
|
return;
|
|
@@ -33623,10 +33617,10 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
33623
33617
|
P(this, Fo, kh).call(this), M(this, Pe, 0);
|
|
33624
33618
|
break;
|
|
33625
33619
|
default:
|
|
33626
|
-
if (xp(t) in c(
|
|
33620
|
+
if (xp(t) in c(Vr, as))
|
|
33627
33621
|
return M(this, Pe, 2), this.main.setLoop(!1, `\u95A2\u6570 ${t} \u30D6\u30EC\u30FC\u30AF`), this.sys.callHook("stopOnBreakpoint", {}), this.sys.send2Dbg("stopOnBreakpoint", {}), !0;
|
|
33628
33622
|
{
|
|
33629
|
-
const e = c(
|
|
33623
|
+
const e = c(Vr, Ao)[c(this, Js).call(this, c(this, qt))];
|
|
33630
33624
|
if (!e)
|
|
33631
33625
|
break;
|
|
33632
33626
|
const r = e[c(this, pe)];
|
|
@@ -33647,7 +33641,7 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
33647
33641
|
return !1;
|
|
33648
33642
|
}, Fo = new WeakSet(), kh = function() {
|
|
33649
33643
|
var e;
|
|
33650
|
-
const t = (e = c(
|
|
33644
|
+
const t = (e = c(Vr, Ao)[Lh(c(this, qt))]) == null ? void 0 : e[c(this, pe)];
|
|
33651
33645
|
t != null && t.hitCondition && --t.hitCondition;
|
|
33652
33646
|
}, hg = new WeakSet(), zC = function() {
|
|
33653
33647
|
var h, f;
|
|
@@ -33658,7 +33652,7 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
33658
33652
|
if (l === 0)
|
|
33659
33653
|
return u;
|
|
33660
33654
|
for (let d = l - 1; d >= 0; --d) {
|
|
33661
|
-
const p = c(this, ce)[d], v = c(this,
|
|
33655
|
+
const p = c(this, ce)[d], v = c(this, Ar)[p.fn], g = v.aToken[p.idx - 1], m = P(this, os, Ca).call(this, v, p.idx), y = xp(g);
|
|
33662
33656
|
u.push({
|
|
33663
33657
|
fn: c(this, Js).call(this, p.fn),
|
|
33664
33658
|
ln: m.ln,
|
|
@@ -33668,14 +33662,14 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
33668
33662
|
});
|
|
33669
33663
|
}
|
|
33670
33664
|
return u;
|
|
33671
|
-
}, Hf = new WeakMap(), Dl = new WeakMap(),
|
|
33665
|
+
}, Hf = new WeakMap(), Dl = new WeakMap(), Kr = new WeakMap(), cg = new WeakSet(), HC = function(t) {
|
|
33672
33666
|
var s;
|
|
33673
33667
|
const { name: e } = t;
|
|
33674
33668
|
if (!e)
|
|
33675
33669
|
throw "name\u306F\u5FC5\u9808\u3067\u3059";
|
|
33676
33670
|
let r = "";
|
|
33677
33671
|
const n = c(this, Xt).len;
|
|
33678
|
-
for (; c(this, mt) < n && (r = c(this, Xt).aToken[c(this, mt)], r === "");
|
|
33672
|
+
for (; c(this, mt) < n && (r = c(this, Xt).aToken[c(this, mt)], r === ""); ++$e(this, mt)._)
|
|
33679
33673
|
;
|
|
33680
33674
|
return t.text = r, t.cast = "str", this.hTag.let(t), M(this, mt, c(this, mt) + 2), M(this, pe, c(this, pe) + ((s = r.match(/\n/g)) != null ? s : []).length), !1;
|
|
33681
33675
|
}, fg = new WeakSet(), $C = function() {
|
|
@@ -33688,7 +33682,7 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
33688
33682
|
if (r > 0) {
|
|
33689
33683
|
console.info(e);
|
|
33690
33684
|
for (let s = r - 1; s >= 0; --s) {
|
|
33691
|
-
const a = c(this, ce)[s], o = a.csArg[":hMp"], u = o ? o[":\u30BF\u30B0\u540D"] : void 0, l = (n = a.csArg[":\u30BF\u30B0\u540D"]) != null ? n : "", h = P(this, os, Ca).call(this, c(this,
|
|
33685
|
+
const a = c(this, ce)[s], o = a.csArg[":hMp"], u = o ? o[":\u30BF\u30B0\u540D"] : void 0, l = (n = a.csArg[":\u30BF\u30B0\u540D"]) != null ? n : "", h = P(this, os, Ca).call(this, c(this, Ar)[a.fn], a.idx);
|
|
33692
33686
|
console.info(
|
|
33693
33687
|
`${r - s}\u3064\u524D\u306E\u30B3\u30FC\u30EB\u5143 fn:${a.fn} line:${h.ln} col:${h.col_s + 1}` + (u ? "\uFF08[" + u + "]\u30DE\u30AF\u30ED\u5185\uFF09" : " ") + `\u3067 [${l} ...]\u3092\u30B3\u30FC\u30EB`
|
|
33694
33688
|
);
|
|
@@ -33733,10 +33727,10 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
33733
33727
|
});
|
|
33734
33728
|
}
|
|
33735
33729
|
return !1;
|
|
33736
|
-
}, Bo = new WeakMap(), ko = new WeakMap(), $f = new WeakMap(), Vf = new WeakMap(), Xf = new WeakMap(),
|
|
33737
|
-
if (c(this,
|
|
33730
|
+
}, Bo = new WeakMap(), ko = new WeakMap(), $f = new WeakMap(), Vf = new WeakMap(), Xf = new WeakMap(), Jr = new WeakMap(), pg = new WeakSet(), XC = function() {
|
|
33731
|
+
if (c(this, Jr)[0] === -1)
|
|
33738
33732
|
throw "if\u30D6\u30ED\u30C3\u30AF\u5185\u3067\u306F\u3042\u308A\u307E\u305B\u3093";
|
|
33739
|
-
return M(this, mt, c(this,
|
|
33733
|
+
return M(this, mt, c(this, Jr)[0]), c(this, Jr).shift(), !1;
|
|
33740
33734
|
}, vg = new WeakSet(), WC = function(t) {
|
|
33741
33735
|
const { exp: e } = t;
|
|
33742
33736
|
if (!e)
|
|
@@ -33747,7 +33741,7 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
33747
33741
|
const s = c(this, Xt).aLNum[c(this, mt)];
|
|
33748
33742
|
let a = c(this, pe) - (s || 0);
|
|
33749
33743
|
const o = c(this, Xt).len;
|
|
33750
|
-
for (; c(this, mt) < o;
|
|
33744
|
+
for (; c(this, mt) < o; ++$e(this, mt)._) {
|
|
33751
33745
|
const u = c(this, Xt).aLNum[c(this, mt)];
|
|
33752
33746
|
c(this, Xt).aLNum[c(this, mt)] = (u || 0) + a;
|
|
33753
33747
|
const l = c(this, Xt).aToken[c(this, mt)];
|
|
@@ -33785,7 +33779,7 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
33785
33779
|
--r;
|
|
33786
33780
|
break;
|
|
33787
33781
|
}
|
|
33788
|
-
return n === -1 ? (
|
|
33782
|
+
return n === -1 ? (++$e(this, mt)._, c(this, Xt).aLNum[c(this, mt)] += a) : (c(this, Jr).unshift(c(this, mt) + 1), M(this, mt, n), M(this, pe, c(this, Xt).aLNum[c(this, mt)])), !1;
|
|
33789
33783
|
}
|
|
33790
33784
|
}
|
|
33791
33785
|
throw "[endif]\u304C\u306A\u3044\u307E\u307E\u30B9\u30AF\u30EA\u30D7\u30C8\u7D42\u7AEF\u3067\u3059";
|
|
@@ -33794,9 +33788,9 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
33794
33788
|
const { fn: e } = t;
|
|
33795
33789
|
return e && c(this, Il).call(this, e), P(this, Wf, Q_).call(this, { ":hEvt1Time": c(this, Dl).popLocalEvts(), ":hMp": this.val.cloneMp() }), ft(t, "clear_local_event", !1) && this.hTag.clear_event({}), P(this, us, Ma).call(this, e, t.label), !0;
|
|
33796
33790
|
}, Wf = new WeakSet(), Q_ = function(t) {
|
|
33797
|
-
c(this, Xt).aLNum[c(this, mt)] = c(this, pe), c(this, qf) || (t[":resvToken"] = "", P(this, No, Nh).call(this)), c(this, ce).push(new YE(c(this, qt), c(this, mt), t)), c(this,
|
|
33791
|
+
c(this, Xt).aLNum[c(this, mt)] = c(this, pe), c(this, qf) || (t[":resvToken"] = "", P(this, No, Nh).call(this)), c(this, ce).push(new YE(c(this, qt), c(this, mt), t)), c(this, Jr).unshift(-1);
|
|
33798
33792
|
}, mg = new WeakSet(), qC = function(t) {
|
|
33799
|
-
return ft(t, "count", !0) || P(this, ed, nb).call(this), c(this,
|
|
33793
|
+
return ft(t, "count", !0) || P(this, ed, nb).call(this), c(this, Jr)[0] = -1, P(this, us, Ma).call(this, t.fn, t.label), !0;
|
|
33800
33794
|
}, yg = new WeakSet(), ZC = function(t) {
|
|
33801
33795
|
if (c(this, cr) === -1)
|
|
33802
33796
|
return !1;
|
|
@@ -33808,11 +33802,11 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
33808
33802
|
const r = c(this, cr);
|
|
33809
33803
|
switch (e) {
|
|
33810
33804
|
case "prev":
|
|
33811
|
-
c(this, cr) > 0 &&
|
|
33805
|
+
c(this, cr) > 0 && --$e(this, cr)._;
|
|
33812
33806
|
break;
|
|
33813
33807
|
case "next":
|
|
33814
33808
|
const o = c(this, ji).length;
|
|
33815
|
-
c(this, cr) < o - 1 &&
|
|
33809
|
+
c(this, cr) < o - 1 && ++$e(this, cr)._;
|
|
33816
33810
|
break;
|
|
33817
33811
|
default:
|
|
33818
33812
|
throw `\u5C5E\u6027to\u300C${e}\u300D\u306F\u7570\u5E38\u3067\u3059`;
|
|
@@ -33826,19 +33820,19 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
33826
33820
|
M(this, ce, []);
|
|
33827
33821
|
else if (!c(this, ce).pop())
|
|
33828
33822
|
throw "[pop_stack] \u30B9\u30BF\u30C3\u30AF\u304C\u7A7A\u3067\u3059";
|
|
33829
|
-
return P(this, No, Nh).call(this), M(this,
|
|
33823
|
+
return P(this, No, Nh).call(this), M(this, Jr, [-1]), this.val.setMp({}), !1;
|
|
33830
33824
|
}, Yf = new WeakSet(), tb = function(t) {
|
|
33831
33825
|
const e = c(this, ce).pop();
|
|
33832
33826
|
if (!e)
|
|
33833
33827
|
throw "[return] \u30B9\u30BF\u30C3\u30AF\u304C\u7A7A\u3067\u3059";
|
|
33834
33828
|
const r = e.csArg;
|
|
33835
|
-
c(this,
|
|
33829
|
+
c(this, Jr).shift();
|
|
33836
33830
|
const n = r[":hMp"];
|
|
33837
33831
|
n && this.val.setMp(n);
|
|
33838
33832
|
const s = r[":resvToken"];
|
|
33839
33833
|
s ? this.nextToken = () => (P(this, No, Nh).call(this), s) : P(this, No, Nh).call(this), r[":hEvt1Time"] && c(this, Dl).pushLocalEvts(r[":hEvt1Time"]);
|
|
33840
33834
|
const { fn: a, label: o } = t;
|
|
33841
|
-
return a || o ? (P(this, us, Ma).call(this, a, o), !0) : e.fn in c(this,
|
|
33835
|
+
return a || o ? (P(this, us, Ma).call(this, a, o), !0) : e.fn in c(this, Ar) ? (P(this, td, ib).call(this, e), !1) : (P(this, us, Ma).call(this, e.fn, "", e.idx), !0);
|
|
33842
33836
|
}, qf = new WeakMap(), No = new WeakSet(), Nh = function() {
|
|
33843
33837
|
M(this, qf, ""), this.nextToken = P(this, Zf, eb);
|
|
33844
33838
|
}, Lo = new WeakMap(), us = new WeakSet(), Ma = function(t = "", e = "", r = 0) {
|
|
@@ -33852,12 +33846,12 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
33852
33846
|
return;
|
|
33853
33847
|
}
|
|
33854
33848
|
M(this, qt, t);
|
|
33855
|
-
const s = c(this,
|
|
33849
|
+
const s = c(this, Ar)[c(this, qt)];
|
|
33856
33850
|
if (s) {
|
|
33857
33851
|
M(this, Xt, s), this.analyzeInit();
|
|
33858
33852
|
return;
|
|
33859
33853
|
}
|
|
33860
|
-
new
|
|
33854
|
+
new ti().add({ name: c(this, qt), url: n }).use((a, o) => {
|
|
33861
33855
|
try {
|
|
33862
33856
|
a.data = this.sys.decStr(a.extension, a.data);
|
|
33863
33857
|
} catch (u) {
|
|
@@ -33873,7 +33867,7 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
33873
33867
|
return "";
|
|
33874
33868
|
P(this, Mg, eM).call(this), (e = c(this, Xt).aLNum)[r = c(this, mt)] || (e[r] = c(this, pe));
|
|
33875
33869
|
const t = c(this, Xt).aToken[c(this, mt)];
|
|
33876
|
-
return c(this, Kf).call(this, t),
|
|
33870
|
+
return c(this, Kf).call(this, t), ++$e(this, mt)._, t;
|
|
33877
33871
|
}, Kf = new WeakMap(), Jf = new WeakSet(), rb = function() {
|
|
33878
33872
|
return c(this, mt) < c(this, Xt).len ? !1 : (this.main.errScript("\u30B9\u30AF\u30EA\u30D7\u30C8\u7D42\u7AEF\u3067\u3059"), !0);
|
|
33879
33873
|
}, bg = new WeakMap(), xg = new WeakMap(), Qf = new WeakMap(), Eg = new WeakSet(), JC = function(t, e, r, n, s) {
|
|
@@ -33938,19 +33932,19 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
33938
33932
|
y === 91 && (r += ((v = m.match(/\n/g)) != null ? v : []).length, c(this, ss).testTagLetml(m) && (l = !0));
|
|
33939
33933
|
}
|
|
33940
33934
|
throw l ? "[let_ml]\u306E\u7D42\u7AEF\u30FB[endlet_ml]\u304C\u3042\u308A\u307E\u305B\u3093" : (Ut.myTrace(`[jump\u7CFB] \u30E9\u30D9\u30EB\u3010${n}\u3011\u304C\u3042\u308A\u307E\u305B\u3093`, "ET"), "Dummy");
|
|
33941
|
-
},
|
|
33935
|
+
}, Ar = new WeakMap(), wg = new WeakSet(), QC = function(t) {
|
|
33942
33936
|
let e = "";
|
|
33943
33937
|
try {
|
|
33944
33938
|
e = "ScriptIterator.resolveScript";
|
|
33945
33939
|
const r = c(this, ss).resolveScript(t);
|
|
33946
|
-
e = "ScriptIterator.replaceScript_Wildcard", P(this, Cg, tM).call(this, r), c(this,
|
|
33940
|
+
e = "ScriptIterator.replaceScript_Wildcard", P(this, Cg, tM).call(this, r), c(this, Ar)[c(this, qt)] = M(this, Xt, r);
|
|
33947
33941
|
} catch (r) {
|
|
33948
33942
|
r instanceof Error ? e += `\u4F8B\u5916 mes=${r.message}(${r.name})` : e = r, this.main.errScript(e, !1);
|
|
33949
33943
|
}
|
|
33950
33944
|
this.val.loadScrWork(c(this, qt));
|
|
33951
33945
|
}, td = new WeakSet(), ib = function(t) {
|
|
33952
33946
|
M(this, qt, t.fn), M(this, mt, t.idx);
|
|
33953
|
-
const e = c(this,
|
|
33947
|
+
const e = c(this, Ar)[c(this, qt)];
|
|
33954
33948
|
e && M(this, Xt, e), M(this, pe, c(this, Xt).aLNum[t.idx]);
|
|
33955
33949
|
}, Sg = new WeakMap(), Tg = new WeakMap(), Cg = new WeakSet(), tM = function(t) {
|
|
33956
33950
|
for (let e = t.len - 1; e >= 0; --e) {
|
|
@@ -34002,11 +33996,11 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
34002
33996
|
if (c(this, Ig).test(e))
|
|
34003
33997
|
throw `[${e}]\u306F\u30DE\u30AF\u30ED\u540D\u3068\u3057\u3066\u7570\u5E38\u3067\u3059`;
|
|
34004
33998
|
const r = c(this, pe), n = new YE(c(this, qt), c(this, mt));
|
|
34005
|
-
for (M(this, rd, c(this, rd) + ("|" + e)), M(this, Rl, new RegExp(`\\[(${c(this, rd)})\\b`)), this.hTag[e] = (u) => (u.design_unit = t.design_unit, P(this, Wf, Q_).call(this, { ...u, ":hMp": this.val.cloneMp() }), this.val.setMp(u), this.val.setVal_Nochk("mp", "const.sn.macro", JSON.stringify(t)), this.val.setVal_Nochk("mp", "const.sn.me_call_scriptFn", c(this, qt)), M(this, pe, r), P(this, td, ib).call(this, n), !1); c(this, mt) < c(this, Xt).len;
|
|
33999
|
+
for (M(this, rd, c(this, rd) + ("|" + e)), M(this, Rl, new RegExp(`\\[(${c(this, rd)})\\b`)), this.hTag[e] = (u) => (u.design_unit = t.design_unit, P(this, Wf, Q_).call(this, { ...u, ":hMp": this.val.cloneMp() }), this.val.setMp(u), this.val.setVal_Nochk("mp", "const.sn.macro", JSON.stringify(t)), this.val.setVal_Nochk("mp", "const.sn.me_call_scriptFn", c(this, qt)), M(this, pe, r), P(this, td, ib).call(this, n), !1); c(this, mt) < c(this, Xt).len; ++$e(this, mt)._) {
|
|
34006
34000
|
(s = c(this, Xt).aLNum)[a = c(this, mt)] || (s[a] = c(this, pe));
|
|
34007
34001
|
const u = c(this, Xt).aToken[c(this, mt)];
|
|
34008
34002
|
if (u.search(c(this, Qf)) > -1)
|
|
34009
|
-
return
|
|
34003
|
+
return ++$e(this, mt)._, !1;
|
|
34010
34004
|
const l = u.charCodeAt(0);
|
|
34011
34005
|
l === 10 ? M(this, pe, c(this, pe) + u.length) : l === 91 && M(this, pe, c(this, pe) + ((o = u.match(/\n/g)) != null ? o : []).length);
|
|
34012
34006
|
}
|
|
@@ -34022,7 +34016,7 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
34022
34016
|
throw `place\u3010${e}\u3011\u306F\u5B58\u5728\u3057\u307E\u305B\u3093`;
|
|
34023
34017
|
return P(this, Al, Hp).call(this, t, r);
|
|
34024
34018
|
}, Al = new WeakSet(), Hp = function(t, e, r = !0) {
|
|
34025
|
-
this.hTag.clear_event({}), this.val.mark2save(e), this.val.setMp({}), c(this,
|
|
34019
|
+
this.hTag.clear_event({}), this.val.mark2save(e), this.val.setMp({}), c(this, Kr).recPagebreak(), r && this.sndMng.playLoopFromSaveObj(), ft(t, "do_rec", !0) && M(this, Ui, {
|
|
34026
34020
|
hSave: this.val.cloneSave(),
|
|
34027
34021
|
hPages: { ...e.hPages },
|
|
34028
34022
|
aIfStk: [...e.aIfStk]
|
|
@@ -34034,28 +34028,28 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
34034
34028
|
};
|
|
34035
34029
|
this.hTag.autowc(n);
|
|
34036
34030
|
const s = String(this.val.getVal("save:const.sn.scriptFn")), a = Number(this.val.getVal("save:const.sn.scriptIdx"));
|
|
34037
|
-
return M(this,
|
|
34031
|
+
return M(this, Jr, [...c(this, Ui).aIfStk]), M(this, ce, []), c(this, Kr).cover(!0), c(this, Kr).stopAllTw(), "index" in t ? (c(this, Kr).playback(c(this, Ui).hPages, () => {
|
|
34038
34032
|
var o, u;
|
|
34039
|
-
c(this,
|
|
34040
|
-
}), !0) : (delete c(this,
|
|
34033
|
+
c(this, Kr).cover(!1), M(this, Fl, !0), P(this, us, Ma).call(this, (o = t.fn) != null ? o : s, "", (u = t.index) != null ? u : a);
|
|
34034
|
+
}), !0) : (delete c(this, Ar)[s], c(this, Kr).playback(
|
|
34041
34035
|
c(this, Ui).hPages,
|
|
34042
34036
|
"label" in t ? () => {
|
|
34043
|
-
c(this,
|
|
34037
|
+
c(this, Kr).cover(!1), M(this, qt, s), M(this, mt, a), this.hTag.call({ fn: t.fn, label: t.label });
|
|
34044
34038
|
} : () => {
|
|
34045
|
-
c(this,
|
|
34039
|
+
c(this, Kr).cover(!1), P(this, us, Ma).call(this, s, "", a);
|
|
34046
34040
|
}
|
|
34047
34041
|
), !0);
|
|
34048
34042
|
}, Fl = new WeakMap(), Ag = new WeakSet(), aM = function(t) {
|
|
34049
34043
|
const e = this.val.getMark(0);
|
|
34050
|
-
return delete c(this,
|
|
34044
|
+
return delete c(this, Ar)[Lh(e.hSave["const.sn.scriptFn"])], t.do_rec = !1, P(this, Al, Hp).call(this, t, e, !1);
|
|
34051
34045
|
}, Ui = new WeakMap(), Fg = new WeakSet(), oM = function() {
|
|
34052
34046
|
if (this.main.isDestroyed())
|
|
34053
34047
|
return !1;
|
|
34054
34048
|
const { fn: t, idx: e } = P(this, Bl, $p).call(this);
|
|
34055
34049
|
return this.val.setVal_Nochk("save", "const.sn.scriptFn", t), this.val.setVal_Nochk("save", "const.sn.scriptIdx", e), M(this, Ui, {
|
|
34056
34050
|
hSave: this.val.cloneSave(),
|
|
34057
|
-
hPages: c(this,
|
|
34058
|
-
aIfStk: c(this,
|
|
34051
|
+
hPages: c(this, Kr).record(),
|
|
34052
|
+
aIfStk: c(this, Jr).slice(c(this, ce).length)
|
|
34059
34053
|
}), !1;
|
|
34060
34054
|
}, Bl = new WeakSet(), $p = function() {
|
|
34061
34055
|
if (c(this, ce).length === 0)
|
|
@@ -34077,13 +34071,13 @@ Xt = new WeakMap(), qt = new WeakMap(), mt = new WeakMap(), pe = new WeakMap(),
|
|
|
34077
34071
|
const r = Number(this.val.getVal("sys:const.sn.save.place"));
|
|
34078
34072
|
return e === r && this.val.setVal_Nochk("sys", "const.sn.save.place", r + 1), !1;
|
|
34079
34073
|
}, ji = new WeakMap(), cr = new WeakMap(), E(_u, ug, /(.+)\/crypto_prj\/([^\/]+)\/[^\.]+(\.\w+)/), E(_u, Ao, {}), E(_u, as, {});
|
|
34080
|
-
var
|
|
34074
|
+
var Fr, Br, yr, vi, hs, Go, fr, id, cs, kl, Uo, nd, sd, Nl, kg, lM, ad, od, Ll, Gl, Vp, jo, zo;
|
|
34081
34075
|
class s4 {
|
|
34082
34076
|
constructor(t) {
|
|
34083
34077
|
E(this, kg);
|
|
34084
34078
|
E(this, Gl);
|
|
34079
|
+
E(this, Fr, void 0);
|
|
34085
34080
|
E(this, Br, void 0);
|
|
34086
|
-
E(this, kr, void 0);
|
|
34087
34081
|
E(this, yr, /* @__PURE__ */ Object.create(null));
|
|
34088
34082
|
E(this, vi, void 0);
|
|
34089
34083
|
E(this, hs, void 0);
|
|
@@ -34112,7 +34106,7 @@ class s4 {
|
|
|
34112
34106
|
E(this, jo, !1);
|
|
34113
34107
|
Z(this, "isDestroyed", () => c(this, jo));
|
|
34114
34108
|
E(this, zo, void 0);
|
|
34115
|
-
this.sys = t, QM(), zb.generate(t).then((e) => M(this,
|
|
34109
|
+
this.sys = t, QM(), zb.generate(t).then((e) => M(this, Fr, e)).then(() => P(this, kg, lM).call(this)).catch((e) => console.error("load err fn:prj.json e:%o", e));
|
|
34116
34110
|
}
|
|
34117
34111
|
errScript(t, e = !0) {
|
|
34118
34112
|
if (this.stop(), Ut.myTrace(t), W.debugLog && console.log("\u{1F35C} SKYNovel err!"), e)
|
|
@@ -34133,23 +34127,23 @@ class s4 {
|
|
|
34133
34127
|
c(this, kl).fire(t, e);
|
|
34134
34128
|
}
|
|
34135
34129
|
async destroy(t = 0) {
|
|
34136
|
-
c(this, jo) || (M(this, jo, !0), c(this, sd) && (this.stop(), M(this, Ll, !1), c(this, cs).before_destroy(), t > 0 && await new Promise((e) => setTimeout(e, t)), M(this, yr, {}), c(this, kl).destroy(), c(this, fr).destroy(), c(this, cs).destroy(), c(this, id).destroy(), c(this,
|
|
34130
|
+
c(this, jo) || (M(this, jo, !0), c(this, sd) && (this.stop(), M(this, Ll, !1), c(this, cs).before_destroy(), t > 0 && await new Promise((e) => setTimeout(e, t)), M(this, yr, {}), c(this, kl).destroy(), c(this, fr).destroy(), c(this, cs).destroy(), c(this, id).destroy(), c(this, Br).ticker.remove(c(this, ad)), c(this, zo) && c(this, Br) && c(this, Br).view.parentNode.appendChild(c(this, zo)), WI(), c(this, Br).destroy(!0), this.sys.destroy()));
|
|
34137
34131
|
}
|
|
34138
34132
|
}
|
|
34139
|
-
|
|
34133
|
+
Fr = new WeakMap(), Br = new WeakMap(), yr = new WeakMap(), vi = new WeakMap(), hs = new WeakMap(), Go = new WeakMap(), fr = new WeakMap(), id = new WeakMap(), cs = new WeakMap(), kl = new WeakMap(), Uo = new WeakMap(), nd = new WeakMap(), sd = new WeakMap(), Nl = new WeakMap(), kg = new WeakSet(), lM = async function() {
|
|
34140
34134
|
var n, s, a;
|
|
34141
34135
|
const t = (n = document.createElement("canvas")) == null ? void 0 : n.getContext("2d");
|
|
34142
34136
|
if (!t)
|
|
34143
34137
|
throw "argChk_Color err";
|
|
34144
34138
|
W.cc4ColorName = t;
|
|
34145
34139
|
const e = {
|
|
34146
|
-
width: c(this,
|
|
34147
|
-
height: c(this,
|
|
34148
|
-
backgroundColor: sb(String(c(this,
|
|
34140
|
+
width: c(this, Fr).oCfg.window.width,
|
|
34141
|
+
height: c(this, Fr).oCfg.window.height,
|
|
34142
|
+
backgroundColor: sb(String(c(this, Fr).oCfg.init.bg_color)),
|
|
34149
34143
|
resolution: (s = globalThis.devicePixelRatio) != null ? s : 1,
|
|
34150
34144
|
autoResize: !0
|
|
34151
34145
|
}, r = document.getElementById(c(this, Nl));
|
|
34152
|
-
r && (M(this, zo, r.cloneNode(!0)), c(this, zo).id = c(this, Nl), e.view = r), M(this,
|
|
34146
|
+
r && (M(this, zo, r.cloneNode(!0)), c(this, zo).id = c(this, Nl), e.view = r), M(this, Br, new s3(e)), r || (document.body.appendChild(c(this, Br).view), c(this, Br).view.id = c(this, Nl)), M(this, vi, new Sp(c(this, Fr), c(this, yr))), M(this, hs, new Aa(c(this, vi), (a = c(this, Fr).oCfg.init.escape) != null ? a : "\\")), await Promise.allSettled(this.sys.init(c(this, yr), c(this, Br), c(this, vi), this)), c(this, yr).title({ text: c(this, Fr).oCfg.book.title || "SKYNovel" }), M(this, Go, new Pp(c(this, Fr), c(this, yr), c(this, vi), this, this.sys)), M(this, fr, new _u(c(this, Fr), c(this, yr), this, c(this, vi), c(this, nd), () => P(this, Gl, Vp).call(this), c(this, hs), c(this, Go), this.sys)), M(this, id, new Ut(this.sys, c(this, yr), c(this, fr))), M(this, cs, new Ba(c(this, Fr), c(this, yr), c(this, Br), c(this, vi), this, c(this, fr), this.sys, c(this, Go), c(this, nd), c(this, hs))), M(this, kl, new n4(c(this, Fr), c(this, yr), c(this, Br), this, c(this, cs), c(this, vi), c(this, Go), c(this, fr), this.sys)), c(this, Br).ticker.add(c(this, ad)), this.resumeByJumpOrCall({ fn: "main" }), M(this, sd, !0);
|
|
34153
34147
|
}, ad = new WeakMap(), od = new WeakMap(), Ll = new WeakMap(), Gl = new WeakSet(), Vp = function() {
|
|
34154
34148
|
var t;
|
|
34155
34149
|
for (; c(this, Ll); ) {
|
|
@@ -34361,7 +34355,7 @@ class u4 extends lF {
|
|
|
34361
34355
|
}
|
|
34362
34356
|
async loaded(e, r) {
|
|
34363
34357
|
var n;
|
|
34364
|
-
await super.loaded(e, r), M(this, er, await oe.getInfo()), W.isPackaged = c(this, er).isPackaged, this.arg = r = { ...r, cur: c(this, er).getAppPath.replaceAll("\\", "/") + (W.isPackaged ? "/doc/" : "/") + r.cur }, this.$path_downloads = c(this, er).downloads.replaceAll("\\", "/") + "/", W.isDbg = Boolean(c(this, er).env.SKYNOVEL_DBG) && !W.isPackaged, W.isDbg && (this.extPort =
|
|
34358
|
+
await super.loaded(e, r), M(this, er, await oe.getInfo()), W.isPackaged = c(this, er).isPackaged, this.arg = r = { ...r, cur: c(this, er).getAppPath.replaceAll("\\", "/") + (W.isPackaged ? "/doc/" : "/") + r.cur }, this.$path_downloads = c(this, er).downloads.replaceAll("\\", "/") + "/", W.isDbg = Boolean(c(this, er).env.SKYNOVEL_DBG) && !W.isPackaged, W.isDbg && (this.extPort = ei((n = c(this, er).env.SKYNOVEL_PORT) != null ? n : "3776")), this.run();
|
|
34365
34359
|
}
|
|
34366
34360
|
initVal(e, r, n) {
|
|
34367
34361
|
r["const.sn.isDebugger"] = !1, r["const.sn.screenResolutionX"] = screen.width, r["const.sn.screenResolutionY"] = screen.height, this.$path_userdata = W.isDbg ? c(this, er).getAppPath.slice(0, -3) + ".vscode/" : c(this, er).userData.replaceAll("\\", "/") + "/", this.flush = () => oe.flush(this.data), c(this, ud).call(this).then(async () => {
|