@famibee/skynovel 1.42.0 → 1.43.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 +1282 -1252
- package/dist/app.js.map +1 -1
- package/dist/sn/ScriptIterator.d.ts.map +1 -1
- package/dist/sn/Variable.d.ts.map +1 -1
- package/dist/web.js +821 -791
- package/dist/web.js.map +1 -1
- package/package.json +3 -3
package/dist/web.js
CHANGED
|
@@ -253,8 +253,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
255
|
function Qt(de) {
|
|
256
|
-
return et(de, function(fe, ne,
|
|
257
|
-
return fe || (ne[Bt] || ne[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Bt)] || RegExp("\\b" + Q(
|
|
256
|
+
return et(de, function(fe, ne, Ve) {
|
|
257
|
+
return fe || (ne[Bt] || ne[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Bt)] || RegExp("\\b" + Q(Ve) + "(?:\\b|\\w*\\d)", "i").exec(st)) && Ve;
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
260
|
function Kt(de) {
|
|
@@ -264,17 +264,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
264
264
|
}
|
|
265
265
|
function Se(de) {
|
|
266
266
|
return et(de, function(fe, ne) {
|
|
267
|
-
var
|
|
268
|
-
return !fe && (fe = RegExp("\\b" +
|
|
267
|
+
var Ve = ne.pattern || Q(ne);
|
|
268
|
+
return !fe && (fe = RegExp("\\b" + Ve + "(?:/[\\d.]+|[ \\w.]*)", "i").exec(st)) && (fe = Y(fe, Ve, ne.label || ne)), fe;
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
function Oe(de) {
|
|
272
272
|
return et(de, function(fe, ne) {
|
|
273
|
-
var
|
|
274
|
-
return !fe && (fe = RegExp("\\b" +
|
|
273
|
+
var Ve = ne.pattern || Q(ne);
|
|
274
|
+
return !fe && (fe = RegExp("\\b" + Ve + " *\\d+[.\\w_]*", "i").exec(st) || RegExp("\\b" + Ve + " *\\w+-[\\w]*", "i").exec(st) || RegExp("\\b" + Ve + "(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)", "i").exec(st)) && ((fe = String(ne.label && !RegExp(Ve, "i").test(ne.label) ? ne.label : fe).split("/"))[1] && !/[\d.]+/.test(fe[0]) && (fe[0] += " " + fe[1]), ne = ne.label || ne, fe = W(fe[0].replace(RegExp(Ve, "i"), ne).replace(RegExp("; *(?:" + ne + "[_-])?", "i"), " ").replace(RegExp("(" + ne + ")[-_.]?(\\w)", "i"), "$1 $2"))), fe;
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function ue(de) {
|
|
278
278
|
return et(de, function(fe, ne) {
|
|
279
279
|
return fe || (RegExp(ne + "(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)", "i").exec(st) || 0)[1] || null;
|
|
280
280
|
});
|
|
@@ -282,7 +282,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
282
282
|
function _e() {
|
|
283
283
|
return this.description || "";
|
|
284
284
|
}
|
|
285
|
-
if (kt && (kt = [kt]), /\bAndroid\b/.test(Ct) && !Bt && (dt = /\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(st)) && (Bt = nt(dt[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i, "") || null), jt && !Bt ? Bt = Oe([jt]) : jt && Bt && (Bt = Bt.replace(RegExp("^(" + Q(jt) + ")[-_.\\s]", "i"), jt + " ").replace(RegExp("^(" + Q(jt) + ")[-_.]?(\\w)", "i"), jt + " $2")), (dt = /\bGoogle TV\b/.exec(Bt)) && (Bt = dt[0]), /\bSimulator\b/i.test(st) && (Bt = (Bt ? Bt + " " : "") + "Simulator"), wt == "Opera Mini" && /\bOPiOS\b/.test(st) && Dt.push("running in Turbo/Uncompressed mode"), wt == "IE" && /\blike iPhone OS\b/.test(st) ? (dt = tt(st.replace(/like iPhone OS/, "")), jt = dt.manufacturer, Bt = dt.product) : /^iP/.test(Bt) ? (wt || (wt = "Safari"), Ct = "iOS" + ((dt = / OS ([\d_]+)/i.exec(st)) ? " " + dt[1].replace(/_/g, ".") : "")) : wt == "Konqueror" && /^Linux\b/i.test(Ct) ? Ct = "Kubuntu" : jt && jt != "Google" && (/Chrome/.test(wt) && !/\bMobile Safari\b/i.test(st) || /\bVita\b/.test(Bt)) || /\bAndroid\b/.test(Ct) && /^Chrome/.test(wt) && /\bVersion\//i.test(st) ? (wt = "Android Browser", Ct = /\bAndroid\b/.test(Ct) ? Ct : "Android") : wt == "Silk" ? (/\bMobi/i.test(st) || (Ct = "Android", Dt.unshift("desktop mode")), /Accelerated *= *true/i.test(st) && Dt.unshift("accelerated")) : wt == "UC Browser" && /\bUCWEB\b/.test(st) ? Dt.push("speed mode") : wt == "PaleMoon" && (dt = /\bFirefox\/([\d.]+)\b/.exec(st)) ? Dt.push("identifying as Firefox " + dt[1]) : wt == "Firefox" && (dt = /\b(Mobile|Tablet|TV)\b/i.exec(st)) ? (Ct || (Ct = "Firefox OS"), Bt || (Bt = dt[1])) : !wt || (dt = !/\bMinefield\b/i.test(st) && /\b(?:Firefox|Safari)\b/.exec(wt)) ? (wt && !Bt && /[\/,]|^[^(]+?\)/.test(st.slice(st.indexOf(dt + "/") + 8)) && (wt = null), (dt = Bt || jt || Ct) && (Bt || jt || /\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Ct)) && (wt = /[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Ct) ? Ct : dt) + " Browser")) : wt == "Electron" && (dt = (/\bChrome\/([\d.]+)\b/.exec(st) || 0)[1]) && Dt.push("Chromium " + dt), Et || (Et =
|
|
285
|
+
if (kt && (kt = [kt]), /\bAndroid\b/.test(Ct) && !Bt && (dt = /\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(st)) && (Bt = nt(dt[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i, "") || null), jt && !Bt ? Bt = Oe([jt]) : jt && Bt && (Bt = Bt.replace(RegExp("^(" + Q(jt) + ")[-_.\\s]", "i"), jt + " ").replace(RegExp("^(" + Q(jt) + ")[-_.]?(\\w)", "i"), jt + " $2")), (dt = /\bGoogle TV\b/.exec(Bt)) && (Bt = dt[0]), /\bSimulator\b/i.test(st) && (Bt = (Bt ? Bt + " " : "") + "Simulator"), wt == "Opera Mini" && /\bOPiOS\b/.test(st) && Dt.push("running in Turbo/Uncompressed mode"), wt == "IE" && /\blike iPhone OS\b/.test(st) ? (dt = tt(st.replace(/like iPhone OS/, "")), jt = dt.manufacturer, Bt = dt.product) : /^iP/.test(Bt) ? (wt || (wt = "Safari"), Ct = "iOS" + ((dt = / OS ([\d_]+)/i.exec(st)) ? " " + dt[1].replace(/_/g, ".") : "")) : wt == "Konqueror" && /^Linux\b/i.test(Ct) ? Ct = "Kubuntu" : jt && jt != "Google" && (/Chrome/.test(wt) && !/\bMobile Safari\b/i.test(st) || /\bVita\b/.test(Bt)) || /\bAndroid\b/.test(Ct) && /^Chrome/.test(wt) && /\bVersion\//i.test(st) ? (wt = "Android Browser", Ct = /\bAndroid\b/.test(Ct) ? Ct : "Android") : wt == "Silk" ? (/\bMobi/i.test(st) || (Ct = "Android", Dt.unshift("desktop mode")), /Accelerated *= *true/i.test(st) && Dt.unshift("accelerated")) : wt == "UC Browser" && /\bUCWEB\b/.test(st) ? Dt.push("speed mode") : wt == "PaleMoon" && (dt = /\bFirefox\/([\d.]+)\b/.exec(st)) ? Dt.push("identifying as Firefox " + dt[1]) : wt == "Firefox" && (dt = /\b(Mobile|Tablet|TV)\b/i.exec(st)) ? (Ct || (Ct = "Firefox OS"), Bt || (Bt = dt[1])) : !wt || (dt = !/\bMinefield\b/i.test(st) && /\b(?:Firefox|Safari)\b/.exec(wt)) ? (wt && !Bt && /[\/,]|^[^(]+?\)/.test(st.slice(st.indexOf(dt + "/") + 8)) && (wt = null), (dt = Bt || jt || Ct) && (Bt || jt || /\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Ct)) && (wt = /[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Ct) ? Ct : dt) + " Browser")) : wt == "Electron" && (dt = (/\bChrome\/([\d.]+)\b/.exec(st) || 0)[1]) && Dt.push("Chromium " + dt), Et || (Et = ue([
|
|
286
286
|
"(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)",
|
|
287
287
|
"Version",
|
|
288
288
|
Q(wt),
|
|
@@ -318,7 +318,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
318
318
|
}
|
|
319
319
|
else
|
|
320
320
|
(/\bBlackBerry\b/.test(Bt) || /\bBB10\b/.test(st)) && (dt = (RegExp(Bt.replace(/ +/g, " *") + "/([.\\d]+)", "i").exec(st) || 0)[1] || Et) ? (dt = [dt, /BB10/.test(st)], Ct = (dt[1] ? (Bt = null, jt = "BlackBerry") : "Device Software") + " " + dt[0], Et = null) : this != K && Bt != "Wii" && (Lt && It || /Opera/.test(wt) && /\b(?:MSIE|Firefox)\b/i.test(st) || wt == "Firefox" && /\bOS X (?:\d+\.){2,}/.test(Ct) || wt == "IE" && (Ct && !/^Win/.test(Ct) && Et > 5.5 || /\bWindows XP\b/.test(Ct) && Et > 8 || Et == 8 && !/\bTrident\b/.test(st))) && !G.test(dt = tt.call(K, st.replace(G, "") + ";")) && dt.name && (dt = "ing as " + dt.name + ((dt = dt.version) ? " " + dt : ""), G.test(wt) ? (/\bIE\b/.test(dt) && Ct == "Mac OS" && (Ct = null), dt = "identify" + dt) : (dt = "mask" + dt, Mt ? wt = W(Mt.replace(/([a-z])([A-Z])/g, "$1 $2")) : wt = "Opera", /\bIE\b/.test(dt) && (Ct = null), Lt || (Et = null)), kt = ["Presto"], Dt.push(dt));
|
|
321
|
-
(dt = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(st) || 0)[1]) && (dt = [parseFloat(dt.replace(/\.(\d)$/, ".0$1")), dt], wt == "Safari" && dt[1].slice(-1) == "+" ? (wt = "WebKit Nightly", Vt = "alpha", Et = dt[1].slice(0, -1)) : (Et == dt[1] || Et == (dt[2] = (/\bSafari\/([\d.]+\+?)/i.exec(st) || 0)[1])) && (Et = null), dt[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(st) || 0)[1], dt[0] == 537.36 && dt[2] == 537.36 && parseFloat(dt[1]) >= 28 && kt == "WebKit" && (kt = ["Blink"]), !Lt || !vt && !dt[1] ? (kt && (kt[1] = "like Safari"), dt = (dt = dt[0], dt < 400 ? 1 : dt < 500 ? 2 : dt < 526 ? 3 : dt < 533 ? 4 : dt < 534 ? "4+" : dt < 535 ? 5 : dt < 537 ? 6 : dt < 538 ? 7 : dt < 601 ? 8 : dt < 602 ? 9 : dt < 604 ? 10 : dt < 606 ? 11 : dt < 608 ? 12 : "12")) : (kt && (kt[1] = "like Chrome"), dt = dt[1] || (dt = dt[0], dt < 530 ? 1 : dt < 532 ? 2 : dt < 532.05 ? 3 : dt < 533 ? 4 : dt < 534.03 ? 5 : dt < 534.07 ? 6 : dt < 534.1 ? 7 : dt < 534.13 ? 8 : dt < 534.16 ? 9 : dt < 534.24 ? 10 : dt < 534.3 ? 11 : dt < 535.01 ? 12 : dt < 535.02 ? "13+" : dt < 535.07 ? 15 : dt < 535.11 ? 16 : dt < 535.19 ? 17 : dt < 536.05 ? 18 : dt < 536.1 ? 19 : dt < 537.01 ? 20 : dt < 537.11 ? "21+" : dt < 537.13 ? 23 : dt < 537.18 ? 24 : dt < 537.24 ? 25 : dt < 537.36 ? 26 : kt != "Blink" ? "27" : "28")), kt && (kt[1] += " " + (dt += typeof dt == "number" ? ".x" : /[.+]/.test(dt) ? "" : "+")), wt == "Safari" && (!Et || parseInt(Et) > 45) ? Et = dt : wt == "Chrome" && /\bHeadlessChrome/i.test(st) && Dt.unshift("headless")), wt == "Opera" && (dt = /\bzbov|zvav$/.exec(Ct)) ? (wt += " ", Dt.unshift("desktop mode"), dt == "zvav" ? (wt += "Mini", Et = null) : wt += "Mobile", Ct = Ct.replace(RegExp(" *" + dt + "$"), "")) : wt == "Safari" && /\bChrome\b/.exec(kt && kt[1]) ? (Dt.unshift("desktop mode"), wt = "Chrome Mobile", Et = null, /\bOS X\b/.test(Ct) ? (jt = "Apple", Ct = "iOS 4.3+") : Ct = null) : /\bSRWare Iron\b/.test(wt) && !Et && (Et =
|
|
321
|
+
(dt = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(st) || 0)[1]) && (dt = [parseFloat(dt.replace(/\.(\d)$/, ".0$1")), dt], wt == "Safari" && dt[1].slice(-1) == "+" ? (wt = "WebKit Nightly", Vt = "alpha", Et = dt[1].slice(0, -1)) : (Et == dt[1] || Et == (dt[2] = (/\bSafari\/([\d.]+\+?)/i.exec(st) || 0)[1])) && (Et = null), dt[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(st) || 0)[1], dt[0] == 537.36 && dt[2] == 537.36 && parseFloat(dt[1]) >= 28 && kt == "WebKit" && (kt = ["Blink"]), !Lt || !vt && !dt[1] ? (kt && (kt[1] = "like Safari"), dt = (dt = dt[0], dt < 400 ? 1 : dt < 500 ? 2 : dt < 526 ? 3 : dt < 533 ? 4 : dt < 534 ? "4+" : dt < 535 ? 5 : dt < 537 ? 6 : dt < 538 ? 7 : dt < 601 ? 8 : dt < 602 ? 9 : dt < 604 ? 10 : dt < 606 ? 11 : dt < 608 ? 12 : "12")) : (kt && (kt[1] = "like Chrome"), dt = dt[1] || (dt = dt[0], dt < 530 ? 1 : dt < 532 ? 2 : dt < 532.05 ? 3 : dt < 533 ? 4 : dt < 534.03 ? 5 : dt < 534.07 ? 6 : dt < 534.1 ? 7 : dt < 534.13 ? 8 : dt < 534.16 ? 9 : dt < 534.24 ? 10 : dt < 534.3 ? 11 : dt < 535.01 ? 12 : dt < 535.02 ? "13+" : dt < 535.07 ? 15 : dt < 535.11 ? 16 : dt < 535.19 ? 17 : dt < 536.05 ? 18 : dt < 536.1 ? 19 : dt < 537.01 ? 20 : dt < 537.11 ? "21+" : dt < 537.13 ? 23 : dt < 537.18 ? 24 : dt < 537.24 ? 25 : dt < 537.36 ? 26 : kt != "Blink" ? "27" : "28")), kt && (kt[1] += " " + (dt += typeof dt == "number" ? ".x" : /[.+]/.test(dt) ? "" : "+")), wt == "Safari" && (!Et || parseInt(Et) > 45) ? Et = dt : wt == "Chrome" && /\bHeadlessChrome/i.test(st) && Dt.unshift("headless")), wt == "Opera" && (dt = /\bzbov|zvav$/.exec(Ct)) ? (wt += " ", Dt.unshift("desktop mode"), dt == "zvav" ? (wt += "Mini", Et = null) : wt += "Mobile", Ct = Ct.replace(RegExp(" *" + dt + "$"), "")) : wt == "Safari" && /\bChrome\b/.exec(kt && kt[1]) ? (Dt.unshift("desktop mode"), wt = "Chrome Mobile", Et = null, /\bOS X\b/.test(Ct) ? (jt = "Apple", Ct = "iOS 4.3+") : Ct = null) : /\bSRWare Iron\b/.test(wt) && !Et && (Et = ue("Chrome")), Et && Et.indexOf(dt = /[\d.]+$/.exec(Ct)) == 0 && st.indexOf("/" + dt + "-") > -1 && (Ct = nt(Ct.replace(dt, ""))), Ct && Ct.indexOf(wt) != -1 && !RegExp(wt + " OS").test(Ct) && (Ct = Ct.replace(RegExp(" *" + Q(wt) + " *"), "")), kt && !/\b(?:Avant|Nook)\b/.test(wt) && (/Browser|Lunascape|Maxthon/.test(wt) || wt != "Safari" && /^iOS/.test(Ct) && /\bSafari\b/.test(kt[1]) || /^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(wt) && kt[1]) && (dt = kt[kt.length - 1]) && Dt.push(dt), Dt.length && (Dt = ["(" + Dt.join("; ") + ")"]), jt && Bt && Bt.indexOf(jt) < 0 && Dt.push("on " + jt), Bt && Dt.push((/^on /.test(Dt[Dt.length - 1]) ? "" : "on ") + Bt), Ct && (dt = / ([\d.+]+)$/.exec(Ct), Ht = dt && Ct.charAt(Ct.length - dt[0].length - 1) == "/", Ct = {
|
|
322
322
|
architecture: 32,
|
|
323
323
|
family: dt && !Ht ? Ct.replace(dt[0], "") : Ct,
|
|
324
324
|
version: dt ? dt[1] : null,
|
|
@@ -13824,8 +13824,8 @@ void main(void)\r
|
|
|
13824
13824
|
for (var qt = 0, Qt = this._textWidth * this.anchor.x, Kt = this._textHeight * this.anchor.y, Se = 0; Se < bt.total; Se++)
|
|
13825
13825
|
bt.vertices[qt++] -= Qt, bt.vertices[qt++] -= Kt, bt.vertices[qt++] -= Qt, bt.vertices[qt++] -= Kt, bt.vertices[qt++] -= Qt, bt.vertices[qt++] -= Kt, bt.vertices[qt++] -= Qt, bt.vertices[qt++] -= Kt;
|
|
13826
13826
|
this._maxLineHeight = nt * N;
|
|
13827
|
-
var Oe = bt.mesh.geometry.getBuffer("aVertexPosition"),
|
|
13828
|
-
Oe.data = bt.vertices,
|
|
13827
|
+
var Oe = bt.mesh.geometry.getBuffer("aVertexPosition"), ue = bt.mesh.geometry.getBuffer("aTextureCoord"), _e = bt.mesh.geometry.getIndex();
|
|
13828
|
+
Oe.data = bt.vertices, ue.data = bt.uvs, _e.data = bt.indices, Oe.update(), ue.update(), _e.update();
|
|
13829
13829
|
}
|
|
13830
13830
|
for (var it = 0; it < $.length; it++)
|
|
13831
13831
|
charRenderDataPool.push($[it]);
|
|
@@ -16452,28 +16452,28 @@ function splitAmpersand(o) {
|
|
|
16452
16452
|
cast: e === 3 ? t[2].trim() : void 0
|
|
16453
16453
|
};
|
|
16454
16454
|
}
|
|
16455
|
-
var
|
|
16455
|
+
var hn, cn, io, no, so, Ye, ao, Rs, iu;
|
|
16456
16456
|
class Grammar {
|
|
16457
16457
|
constructor() {
|
|
16458
|
-
rt(this,
|
|
16459
|
-
rt(this, un, void 0);
|
|
16458
|
+
rt(this, Rs);
|
|
16460
16459
|
rt(this, hn, void 0);
|
|
16460
|
+
rt(this, cn, void 0);
|
|
16461
16461
|
rt(this, io, new RegExp(""));
|
|
16462
16462
|
rt(this, no, "");
|
|
16463
16463
|
rt(this, so, "");
|
|
16464
|
-
rt(this,
|
|
16464
|
+
rt(this, Ye, void 0);
|
|
16465
16465
|
rt(this, ao, void 0);
|
|
16466
16466
|
this.setEscape("");
|
|
16467
16467
|
}
|
|
16468
16468
|
setEscape(t) {
|
|
16469
|
-
if (H(this,
|
|
16469
|
+
if (H(this, Ye) && t in H(this, Ye))
|
|
16470
16470
|
throw "[エスケープ文字] char【" + t + "】が登録済みの括弧マクロまたは一文字マクロです";
|
|
16471
|
-
ot(this,
|
|
16471
|
+
ot(this, hn, new RegExp(
|
|
16472
16472
|
(t ? `\\${t}\\S|` : "") + // エスケープシーケンス
|
|
16473
16473
|
`\\n+|\\t+|\\[let_ml\\s+[^\\]]+\\].+?(?=\\[endlet_ml[\\]\\s])|\\[(?:(?=([^"'#;\\]]+))\\1|(["'#]).*?\\2|;[^\\n]*)*?]|;[^\\n]*|&[^&\\n]+&|&&?[^&;\\n\\t]+|^\\*[^\\s\\[&;\\\\]+|[^\\n\\t\\[;${t ? `\\${t}` : ""}]+`,
|
|
16474
16474
|
// 本文
|
|
16475
16475
|
"gs"
|
|
16476
|
-
)), ot(this,
|
|
16476
|
+
)), ot(this, cn, new RegExp(`[\\w\\s;[\\]*=&|《》${t ? `\\${t}` : ""}]`)), ot(this, ao, new RegExp(`[\\n\\t;\\[*&${t ? `\\${t}` : ""}]`));
|
|
16477
16477
|
}
|
|
16478
16478
|
// 括弧マクロの定義
|
|
16479
16479
|
bracket2macro(t, e, r, D) {
|
|
@@ -16489,32 +16489,32 @@ class Grammar {
|
|
|
16489
16489
|
throw "[bracket2macro] textは括弧の前後を示す二文字を指定してください";
|
|
16490
16490
|
if (!(N in e))
|
|
16491
16491
|
throw `[bracket2macro] 未定義のタグ又はマクロ[${N}]です`;
|
|
16492
|
-
H(this,
|
|
16492
|
+
H(this, Ye) ?? ot(this, Ye, {});
|
|
16493
16493
|
const G = k.charAt(1);
|
|
16494
|
-
if ($ in H(this,
|
|
16494
|
+
if ($ in H(this, Ye))
|
|
16495
16495
|
throw "[bracket2macro] text【" + $ + "】が登録済みの括弧マクロまたは一文字マクロです";
|
|
16496
|
-
if (G in H(this,
|
|
16496
|
+
if (G in H(this, Ye))
|
|
16497
16497
|
throw "[bracket2macro] text【" + G + "】が登録済みの括弧マクロまたは一文字マクロです";
|
|
16498
|
-
if (H(this,
|
|
16498
|
+
if (H(this, cn).test($))
|
|
16499
16499
|
throw "[bracket2macro] text【" + $ + "】は括弧マクロに使用できない文字です";
|
|
16500
|
-
if (H(this,
|
|
16500
|
+
if (H(this, cn).test(G))
|
|
16501
16501
|
throw "[bracket2macro] text【" + G + "】は括弧マクロに使用できない文字です";
|
|
16502
|
-
H(this,
|
|
16502
|
+
H(this, Ye)[G] = "0", H(this, Ye)[$] = `[${N} text=`, this.addC2M(`\\${$}[^\\${G}]*\\${G}`, `\\${$}\\${G}`), lt(this, Rs, iu).call(this, r, D);
|
|
16503
16503
|
}
|
|
16504
16504
|
// 一文字マクロの定義
|
|
16505
16505
|
char2macro(t, e, r, D) {
|
|
16506
16506
|
const { char: N, name: k } = t;
|
|
16507
16507
|
if (!N)
|
|
16508
16508
|
throw "[char2macro] charは必須です";
|
|
16509
|
-
if (H(this,
|
|
16509
|
+
if (H(this, Ye) ?? ot(this, Ye, {}), N in H(this, Ye))
|
|
16510
16510
|
throw "[char2macro] char【" + N + "】が登録済みの括弧マクロまたは一文字マクロです";
|
|
16511
|
-
if (H(this,
|
|
16511
|
+
if (H(this, cn).test(N))
|
|
16512
16512
|
throw "[char2macro] char【" + N + "】は一文字マクロに使用できない文字です";
|
|
16513
16513
|
if (!k)
|
|
16514
16514
|
throw "[char2macro] nameは必須です";
|
|
16515
16515
|
if (!(k in e))
|
|
16516
16516
|
throw `[char2macro] 未定義のタグ又はマクロ[${k}]です`;
|
|
16517
|
-
H(this,
|
|
16517
|
+
H(this, Ye)[N] = `[${k}]`, this.addC2M(`\\${N}`, `\\${N}`), lt(this, Rs, iu).call(this, r, D);
|
|
16518
16518
|
}
|
|
16519
16519
|
addC2M(t, e) {
|
|
16520
16520
|
ot(this, no, H(this, no) + `${t}|`), ot(this, so, H(this, so) + `${e}`), ot(this, io, new RegExp(
|
|
@@ -16525,7 +16525,7 @@ class Grammar {
|
|
|
16525
16525
|
resolveScript(t) {
|
|
16526
16526
|
var D;
|
|
16527
16527
|
const e = ((D = t.replaceAll(/(\r\n|\r)/g, `
|
|
16528
|
-
`).match(H(this,
|
|
16528
|
+
`).match(H(this, hn))) == null ? void 0 : D.flatMap((N) => {
|
|
16529
16529
|
if (!this.testTagLetml(N))
|
|
16530
16530
|
return N;
|
|
16531
16531
|
const k = /^([^\]]+?])(.*)$/s.exec(N);
|
|
@@ -16534,7 +16534,7 @@ class Grammar {
|
|
|
16534
16534
|
const [, $, G] = k;
|
|
16535
16535
|
return [$, G];
|
|
16536
16536
|
})) ?? [], r = { aToken: e, len: e.length, aLNum: [] };
|
|
16537
|
-
return lt(this,
|
|
16537
|
+
return lt(this, Rs, iu).call(this, r), r;
|
|
16538
16538
|
}
|
|
16539
16539
|
testTagLetml(t) {
|
|
16540
16540
|
return /^\[let_ml\s/.test(t);
|
|
@@ -16543,15 +16543,15 @@ class Grammar {
|
|
|
16543
16543
|
return /^\[endlet_ml\s*]/.test(t);
|
|
16544
16544
|
}
|
|
16545
16545
|
analyzToken(t) {
|
|
16546
|
-
return H(this,
|
|
16546
|
+
return H(this, hn).lastIndex = 0, H(this, hn).exec(t);
|
|
16547
16547
|
}
|
|
16548
16548
|
testNoTxt(t) {
|
|
16549
16549
|
return H(this, ao).test(t);
|
|
16550
16550
|
}
|
|
16551
16551
|
//4tst
|
|
16552
16552
|
}
|
|
16553
|
-
|
|
16554
|
-
if (H(this,
|
|
16553
|
+
hn = new WeakMap(), cn = new WeakMap(), io = new WeakMap(), no = new WeakMap(), so = new WeakMap(), Ye = new WeakMap(), ao = new WeakMap(), Rs = new WeakSet(), iu = function(t, e = 0) {
|
|
16554
|
+
if (H(this, Ye)) {
|
|
16555
16555
|
for (let r = t.len - 1; r >= e; --r) {
|
|
16556
16556
|
const D = t.aToken[r];
|
|
16557
16557
|
if (this.testNoTxt(D.at(0) ?? `
|
|
@@ -16563,17 +16563,17 @@ un = new WeakMap(), hn = new WeakMap(), io = new WeakMap(), no = new WeakMap(),
|
|
|
16563
16563
|
let $ = 1;
|
|
16564
16564
|
for (let G = k.length - 1; G >= 0; --G) {
|
|
16565
16565
|
let U = k[G];
|
|
16566
|
-
const z = H(this,
|
|
16566
|
+
const z = H(this, Ye)[U.at(0) ?? " "];
|
|
16567
16567
|
z && (U = z + (z.slice(-1) === "]" ? "" : `'${U.slice(1, -1)}']`)), t.aToken.splice(r, $, U), t.aLNum.splice(r, $, N), $ = 0;
|
|
16568
16568
|
}
|
|
16569
16569
|
}
|
|
16570
16570
|
t.len = t.aToken.length;
|
|
16571
16571
|
}
|
|
16572
16572
|
};
|
|
16573
|
-
var oo,
|
|
16573
|
+
var oo, Os, nu, fn, Is;
|
|
16574
16574
|
class AnalyzeTagArg {
|
|
16575
16575
|
constructor() {
|
|
16576
|
-
rt(this,
|
|
16576
|
+
rt(this, Os);
|
|
16577
16577
|
// 87 match 2725 step(0.5ms) PCRE2 https://regex101.com/r/aeN57J/1
|
|
16578
16578
|
/*
|
|
16579
16579
|
;[^\n]*
|
|
@@ -16589,18 +16589,18 @@ class AnalyzeTagArg {
|
|
|
16589
16589
|
| (?<literal>[^\s;]+)
|
|
16590
16590
|
*/
|
|
16591
16591
|
rt(this, oo, /;[^\n]*|(?<key>[^\s="'#|;]+)(?:\s|;[^\n]*\n)*=(?:\s|;[^\n]*\n)*(?:(?<val>[^\s"'#|;]+)|(["'#])(?<val2>.*?)\3)(?:\|(?:(?<def>[^\s"'#;]+)|(["'#])(?<def2>.*?)\6))?|(?<literal>[^\s;]+)/g);
|
|
16592
|
-
rt(this,
|
|
16593
|
-
rt(this,
|
|
16592
|
+
rt(this, fn, {});
|
|
16593
|
+
rt(this, Is, !1);
|
|
16594
16594
|
}
|
|
16595
16595
|
// 【属性 = 値 | 省略値】の分析
|
|
16596
16596
|
parse(t) {
|
|
16597
|
-
ot(this,
|
|
16597
|
+
ot(this, fn, {}), ot(this, Is, !1);
|
|
16598
16598
|
for (const { groups: e } of t.matchAll(H(this, oo))) {
|
|
16599
16599
|
const { key: r, val: D, val2: N, def: k, def2: $, literal: G } = e;
|
|
16600
|
-
r ? H(this,
|
|
16600
|
+
r ? H(this, fn)[r] = {
|
|
16601
16601
|
val: D ?? N,
|
|
16602
16602
|
def: k ?? $
|
|
16603
|
-
} : G && (G === "*" ? ot(this,
|
|
16603
|
+
} : G && (G === "*" ? ot(this, Is, !0) : H(this, fn)[G] = { val: "1" });
|
|
16604
16604
|
}
|
|
16605
16605
|
}
|
|
16606
16606
|
// 属性と値の位置をまとめて返す
|
|
@@ -16612,7 +16612,7 @@ class AnalyzeTagArg {
|
|
|
16612
16612
|
const { key: z, val: X, val2: V, literal: Y } = $;
|
|
16613
16613
|
if (Y) {
|
|
16614
16614
|
if (Y.slice(-1) === "=") {
|
|
16615
|
-
const J = Y.length - 1, { ch: Q } = lt(this,
|
|
16615
|
+
const J = Y.length - 1, { ch: Q } = lt(this, Os, nu).call(this, e, r, D, k, G + J);
|
|
16616
16616
|
N[Y.slice(0, -1)] = {
|
|
16617
16617
|
k_ln: r,
|
|
16618
16618
|
k_ch: Q - J,
|
|
@@ -16626,26 +16626,26 @@ class AnalyzeTagArg {
|
|
|
16626
16626
|
}
|
|
16627
16627
|
if (!z)
|
|
16628
16628
|
continue;
|
|
16629
|
-
const { ln: q, ch: W } = lt(this,
|
|
16629
|
+
const { ln: q, ch: W } = lt(this, Os, nu).call(this, e, r, D, k, G), { ln: K, ch: Z } = lt(this, Os, nu).call(this, e, r, D, k, G + U.lastIndexOf(X ?? V) - (X ? 0 : 1));
|
|
16630
16630
|
N[z] = { k_ln: q, k_ch: W, v_ln: K, v_ch: Z, v_len: X ? X.length : V.length + 2 };
|
|
16631
16631
|
}
|
|
16632
16632
|
return N;
|
|
16633
16633
|
}
|
|
16634
16634
|
get hPrm() {
|
|
16635
|
-
return H(this,
|
|
16635
|
+
return H(this, fn);
|
|
16636
16636
|
}
|
|
16637
16637
|
get isKomeParam() {
|
|
16638
|
-
return H(this,
|
|
16638
|
+
return H(this, Is);
|
|
16639
16639
|
}
|
|
16640
16640
|
}
|
|
16641
|
-
oo = new WeakMap(),
|
|
16641
|
+
oo = new WeakMap(), Os = new WeakSet(), nu = function(t, e, r, D, N) {
|
|
16642
16642
|
const $ = D.slice(0, N).split(`
|
|
16643
16643
|
`), G = $.length;
|
|
16644
16644
|
return {
|
|
16645
16645
|
ln: e + G - 1,
|
|
16646
16646
|
ch: G < 2 ? r + 1 + t + N : $.at(-1).length
|
|
16647
16647
|
};
|
|
16648
|
-
},
|
|
16648
|
+
}, fn = new WeakMap(), Is = new WeakMap();
|
|
16649
16649
|
var parsimmon_umd_minExports = {}, parsimmon_umd_min = {
|
|
16650
16650
|
get exports() {
|
|
16651
16651
|
return parsimmon_umd_minExports;
|
|
@@ -16710,8 +16710,8 @@ var parsimmon_umd_minExports = {}, parsimmon_umd_min = {
|
|
|
16710
16710
|
return $(ht, function() {
|
|
16711
16711
|
var Rt;
|
|
16712
16712
|
xt = { v: xt.v << 1 | (Rt = xt.buf, Rt[0] >> 7), buf: function(Ft) {
|
|
16713
|
-
var Gt = G(function(Ut, ee, Ee,
|
|
16714
|
-
return Ut.concat(Ee ===
|
|
16713
|
+
var Gt = G(function(Ut, ee, Ee, Xe) {
|
|
16714
|
+
return Ut.concat(Ee === Xe.length - 1 ? Buffer.from([ee, 0]).readUInt16BE(0) : Xe.readUInt16BE(Ee));
|
|
16715
16715
|
}, [], Ft);
|
|
16716
16716
|
return Buffer.from(U(function(Ut) {
|
|
16717
16717
|
return (Ut << 1 & 65535) >> 8;
|
|
@@ -16742,8 +16742,8 @@ var parsimmon_umd_minExports = {}, parsimmon_umd_min = {
|
|
|
16742
16742
|
throw new Error(Ft + " bit range requested exceeds 48 bit (6 byte) Number max.");
|
|
16743
16743
|
return new N(function(Gt, Ut) {
|
|
16744
16744
|
var ee = Rt + Ut;
|
|
16745
|
-
return ee > Gt.length ? st(Ut, Rt.toString() + " bytes") : it(ee, G(function(Ee,
|
|
16746
|
-
var Fe = z(
|
|
16745
|
+
return ee > Gt.length ? st(Ut, Rt.toString() + " bytes") : it(ee, G(function(Ee, Xe) {
|
|
16746
|
+
var Fe = z(Xe, Ee.buf);
|
|
16747
16747
|
return { coll: Ee.coll.concat(Fe.v), buf: Fe.buf };
|
|
16748
16748
|
}, { coll: [], buf: Gt.slice(Ut, ee) }, ht).coll);
|
|
16749
16749
|
});
|
|
@@ -16808,8 +16808,8 @@ var parsimmon_umd_minExports = {}, parsimmon_umd_min = {
|
|
|
16808
16808
|
var ee = Array.from(Gt);
|
|
16809
16809
|
return ee.sort(), ee;
|
|
16810
16810
|
}
|
|
16811
|
-
for (var Ee = {},
|
|
16812
|
-
Ee[Rt[
|
|
16811
|
+
for (var Ee = {}, Xe = 0; Xe < Rt.length; Xe++)
|
|
16812
|
+
Ee[Rt[Xe]] = !0;
|
|
16813
16813
|
for (var Fe = 0; Fe < Ft.length; Fe++)
|
|
16814
16814
|
Ee[Ft[Fe]] = !0;
|
|
16815
16815
|
var ri = [];
|
|
@@ -16867,35 +16867,35 @@ var parsimmon_umd_minExports = {}, parsimmon_umd_min = {
|
|
|
16867
16867
|
return { from: ht - pt > 0 ? ht - pt : 0, to: ht + xt > Rt ? Rt : ht + xt };
|
|
16868
16868
|
}
|
|
16869
16869
|
function dt(ht, pt) {
|
|
16870
|
-
var xt, Rt, Ft, Gt, Ut, ee = pt.index, Ee = ee.offset,
|
|
16870
|
+
var xt, Rt, Ft, Gt, Ut, ee = pt.index, Ee = ee.offset, Xe = 1;
|
|
16871
16871
|
if (Ee === ht.length)
|
|
16872
16872
|
return "Got the end of the input";
|
|
16873
16873
|
if (tt(ht)) {
|
|
16874
16874
|
var Fe = Ee - Ee % St, ri = Ee - Fe, nr = Mt(Fe, gt, bt + St, ht.length), ii = U(function(Le) {
|
|
16875
|
-
return U(function(
|
|
16876
|
-
return It(
|
|
16875
|
+
return U(function(_s) {
|
|
16876
|
+
return It(_s.toString(16), 2, "0");
|
|
16877
16877
|
}, Le);
|
|
16878
|
-
}, function(Le,
|
|
16879
|
-
var
|
|
16880
|
-
if (
|
|
16878
|
+
}, function(Le, _s) {
|
|
16879
|
+
var ys = Le.length, nn = [], bs = 0;
|
|
16880
|
+
if (ys <= _s)
|
|
16881
16881
|
return [Le.slice()];
|
|
16882
|
-
for (var
|
|
16883
|
-
|
|
16884
|
-
return
|
|
16882
|
+
for (var xs = 0; xs < ys; xs++)
|
|
16883
|
+
nn[bs] || nn.push([]), nn[bs].push(Le[xs]), (xs + 1) % _s == 0 && bs++;
|
|
16884
|
+
return nn;
|
|
16885
16885
|
}(ht.slice(nr.from, nr.to).toJSON().data, St));
|
|
16886
16886
|
Gt = function(Le) {
|
|
16887
16887
|
return Le.from === 0 && Le.to === 1 ? { from: Le.from, to: Le.to } : { from: Le.from / St, to: Math.floor(Le.to / St) };
|
|
16888
|
-
}(nr), Rt = Fe / St, xt = 3 * ri, ri >= 4 && (xt += 1),
|
|
16888
|
+
}(nr), Rt = Fe / St, xt = 3 * ri, ri >= 4 && (xt += 1), Xe = 2, Ft = U(function(Le) {
|
|
16889
16889
|
return Le.length <= 4 ? Le.join(" ") : Le.slice(0, 4).join(" ") + " " + Le.slice(4).join(" ");
|
|
16890
16890
|
}, ii), (Ut = (8 * (Gt.to > 0 ? Gt.to - 1 : Gt.to)).toString(16).length) < 2 && (Ut = 2);
|
|
16891
16891
|
} else {
|
|
16892
|
-
var
|
|
16893
|
-
xt = ee.column - 1, Rt = ee.line - 1, Gt = Mt(Rt, Tt, Pt,
|
|
16892
|
+
var ms = ht.split(/\r\n|[\n\r\u2028\u2029]/);
|
|
16893
|
+
xt = ee.column - 1, Rt = ee.line - 1, Gt = Mt(Rt, Tt, Pt, ms.length), Ft = ms.slice(Gt.from, Gt.to), Ut = Gt.to.toString().length;
|
|
16894
16894
|
}
|
|
16895
16895
|
var Ap = Rt - Gt.from;
|
|
16896
|
-
return tt(ht) && (Ut = (8 * (Gt.to > 0 ? Gt.to - 1 : Gt.to)).toString(16).length) < 2 && (Ut = 2), G(function(Le,
|
|
16897
|
-
var
|
|
16898
|
-
return
|
|
16896
|
+
return tt(ht) && (Ut = (8 * (Gt.to > 0 ? Gt.to - 1 : Gt.to)).toString(16).length) < 2 && (Ut = 2), G(function(Le, _s, ys) {
|
|
16897
|
+
var nn, bs = ys === Ap, xs = bs ? "> " : Nt;
|
|
16898
|
+
return nn = tt(ht) ? It((8 * (Gt.from + ys)).toString(16), Ut, "0") : It((Gt.from + ys + 1).toString(), Ut, " "), [].concat(Le, [xs + nn + " | " + _s], bs ? [Nt + At(" ", Ut) + " | " + It("", xt, " ") + At("^", Xe)] : []);
|
|
16899
16899
|
}, [], Ft).join(`
|
|
16900
16900
|
`);
|
|
16901
16901
|
}
|
|
@@ -17133,11 +17133,11 @@ var parsimmon_umd_minExports = {}, parsimmon_umd_min = {
|
|
|
17133
17133
|
return pt[0];
|
|
17134
17134
|
});
|
|
17135
17135
|
}, k.mark = function() {
|
|
17136
|
-
return Lt(
|
|
17136
|
+
return Lt(ue, this, ue, function(ht, pt, xt) {
|
|
17137
17137
|
return { start: ht, value: pt, end: xt };
|
|
17138
17138
|
});
|
|
17139
17139
|
}, k.node = function(ht) {
|
|
17140
|
-
return Lt(
|
|
17140
|
+
return Lt(ue, this, ue, function(pt, xt, Rt) {
|
|
17141
17141
|
return { name: ht, value: xt, start: pt, end: Rt };
|
|
17142
17142
|
});
|
|
17143
17143
|
}, k.sepBy = function(ht) {
|
|
@@ -17168,7 +17168,7 @@ var parsimmon_umd_minExports = {}, parsimmon_umd_min = {
|
|
|
17168
17168
|
return Ft.status ? at(ht(Ft.value)._(xt, Ft.index), Ft) : Ft;
|
|
17169
17169
|
});
|
|
17170
17170
|
}, k.concat = k.or, k.empty = Oe, k.of = jt, k["fantasy-land/ap"] = k.ap, k["fantasy-land/chain"] = k.chain, k["fantasy-land/concat"] = k.concat, k["fantasy-land/empty"] = k.empty, k["fantasy-land/of"] = k.of, k["fantasy-land/map"] = k.map;
|
|
17171
|
-
var
|
|
17171
|
+
var ue = N(function(ht, pt) {
|
|
17172
17172
|
return it(pt, ft(ht, pt));
|
|
17173
17173
|
}), _e = N(function(ht, pt) {
|
|
17174
17174
|
return pt >= ht.length ? st(pt, "any character/byte") : it(pt + 1, vt(ht, pt));
|
|
@@ -17176,9 +17176,9 @@ var parsimmon_umd_minExports = {}, parsimmon_umd_min = {
|
|
|
17176
17176
|
return it(ht.length, ht.slice(pt));
|
|
17177
17177
|
}), de = N(function(ht, pt) {
|
|
17178
17178
|
return pt < ht.length ? st(pt, "EOF") : it(pt, null);
|
|
17179
|
-
}), fe = Bt(/[0-9]/).desc("a digit"), ne = Bt(/[0-9]*/).desc("optional digits"),
|
|
17179
|
+
}), fe = Bt(/[0-9]/).desc("a digit"), ne = Bt(/[0-9]*/).desc("optional digits"), Ve = Bt(/[a-z]/i).desc("a letter"), vs = Bt(/[a-z]*/i).desc("optional letters"), Ua = Bt(/\s*/).desc("optional whitespace"), zc = Bt(/\s+/).desc("whitespace"), ja = wt("\r"), gs = wt(`
|
|
17180
17180
|
`), eu = wt(`\r
|
|
17181
|
-
`), ru = Et(eu,
|
|
17181
|
+
`), ru = Et(eu, gs, ja).desc("newline"), Hc = Et(ru, de);
|
|
17182
17182
|
N.all = ve, N.alt = Et, N.any = _e, N.cr = ja, N.createLanguage = function(ht) {
|
|
17183
17183
|
var pt = {};
|
|
17184
17184
|
for (var xt in ht)
|
|
@@ -17190,7 +17190,7 @@ var parsimmon_umd_minExports = {}, parsimmon_umd_min = {
|
|
|
17190
17190
|
return pt;
|
|
17191
17191
|
}, N.crlf = eu, N.custom = function(ht) {
|
|
17192
17192
|
return N(ht(it, st));
|
|
17193
|
-
}, N.digit = fe, N.digits = ne, N.empty = Oe, N.end = Hc, N.eof = de, N.fail = Ct, N.formatError = $t, N.index =
|
|
17193
|
+
}, N.digit = fe, N.digits = ne, N.empty = Oe, N.end = Hc, N.eof = de, N.fail = Ct, N.formatError = $t, N.index = ue, N.isParser = et, N.lazy = Se, N.letter = Ve, N.letters = vs, N.lf = gs, N.lookahead = qt, N.makeFailure = st, N.makeSuccess = it, N.newline = ru, N.noneOf = function(ht) {
|
|
17194
17194
|
return Kt(function(pt) {
|
|
17195
17195
|
return ht.indexOf(pt) < 0;
|
|
17196
17196
|
}).desc("none of '" + ht + "'");
|
|
@@ -17220,14 +17220,14 @@ var parsimmon_umd_minExports = {}, parsimmon_umd_min = {
|
|
|
17220
17220
|
}
|
|
17221
17221
|
if (xt === 0)
|
|
17222
17222
|
throw new Error("seqObj expects at least one named parser, found zero");
|
|
17223
|
-
return N(function(Ee,
|
|
17223
|
+
return N(function(Ee, Xe) {
|
|
17224
17224
|
for (var Fe, ri = {}, nr = 0; nr < Ft; nr += 1) {
|
|
17225
|
-
var ii,
|
|
17226
|
-
if (nt(Rt[nr]) ? (ii = Rt[nr][0],
|
|
17225
|
+
var ii, ms;
|
|
17226
|
+
if (nt(Rt[nr]) ? (ii = Rt[nr][0], ms = Rt[nr][1]) : (ii = null, ms = Rt[nr]), !(Fe = at(ms._(Ee, Xe), Fe)).status)
|
|
17227
17227
|
return Fe;
|
|
17228
|
-
ii && (ri[ii] = Fe.value),
|
|
17228
|
+
ii && (ri[ii] = Fe.value), Xe = Fe.index;
|
|
17229
17229
|
}
|
|
17230
|
-
return at(it(
|
|
17230
|
+
return at(it(Xe, ri), Fe);
|
|
17231
17231
|
});
|
|
17232
17232
|
}, N.string = wt, N.succeed = jt, N.takeWhile = function(ht) {
|
|
17233
17233
|
return mt(ht), N(function(pt, xt) {
|
|
@@ -17290,13 +17290,13 @@ var parsimmon_umd_minExports = {}, parsimmon_umd_min = {
|
|
|
17290
17290
|
}]);
|
|
17291
17291
|
});
|
|
17292
17292
|
})(parsimmon_umd_min);
|
|
17293
|
-
var
|
|
17293
|
+
var dn, Zt, Jt, Ni, Li, Ss, Eu, lo, Xc, Tu, wu, $f;
|
|
17294
17294
|
const Lf = class {
|
|
17295
17295
|
constructor(t, e = "\\") {
|
|
17296
17296
|
rt(this, Zt);
|
|
17297
17297
|
rt(this, Li);
|
|
17298
17298
|
rt(this, lo);
|
|
17299
|
-
rt(this,
|
|
17299
|
+
rt(this, dn, null);
|
|
17300
17300
|
rt(this, Ni, {
|
|
17301
17301
|
"!num!": (t) => t.shift(),
|
|
17302
17302
|
"!str!": (t) => lt(this, lo, Xc).call(this, t.shift()),
|
|
@@ -17321,15 +17321,15 @@ const Lf = class {
|
|
|
17321
17321
|
},
|
|
17322
17322
|
"-": (t) => Number(lt(this, Zt, Jt).call(this, t.shift())) - Number(lt(this, Zt, Jt).call(this, t.shift())),
|
|
17323
17323
|
// 関数
|
|
17324
|
-
int: (t) => int(lt(this, Li,
|
|
17324
|
+
int: (t) => int(lt(this, Li, Ss).call(this, t.shift())),
|
|
17325
17325
|
parseInt: (t) => int(H(this, Ni).Number(t)),
|
|
17326
17326
|
Number: (t) => {
|
|
17327
17327
|
const e = lt(this, Zt, Jt).call(this, t.shift());
|
|
17328
|
-
return Object.prototype.toString.call(e) !== "[object String]" ? Number(e) : lt(this, Li,
|
|
17328
|
+
return Object.prototype.toString.call(e) !== "[object String]" ? Number(e) : lt(this, Li, Ss).call(this, H(this, dn).parse(String(e)).value);
|
|
17329
17329
|
},
|
|
17330
|
-
ceil: (t) => Math.ceil(lt(this, Li,
|
|
17331
|
-
floor: (t) => Math.floor(lt(this, Li,
|
|
17332
|
-
round: (t) => Math.round(lt(this, Li,
|
|
17330
|
+
ceil: (t) => Math.ceil(lt(this, Li, Ss).call(this, t.shift())),
|
|
17331
|
+
floor: (t) => Math.floor(lt(this, Li, Ss).call(this, t.shift())),
|
|
17332
|
+
round: (t) => Math.round(lt(this, Li, Ss).call(this, t.shift())),
|
|
17333
17333
|
isNaN: (t) => isNaN(Number(lt(this, Zt, Jt).call(this, t.shift()))),
|
|
17334
17334
|
// ビットシフト
|
|
17335
17335
|
"<<": (t) => Number(lt(this, Zt, Jt).call(this, t.shift())) << Number(lt(this, Zt, Jt).call(this, t.shift())),
|
|
@@ -17433,7 +17433,7 @@ const Lf = class {
|
|
|
17433
17433
|
const J = this.val.getVal(Z);
|
|
17434
17434
|
return J == null ? ["!str!", J] : typeof J == "boolean" ? ["!bool!", J] : Object.prototype.toString.call(J) === "[object String]" ? ["!str!", String(J)] : ["!num!", Number(J)];
|
|
17435
17435
|
}).desc("string"), Y = parsimmon_umd_minExports.lazy(
|
|
17436
|
-
() => parsimmon_umd_minExports.string("(").then(H(this,
|
|
17436
|
+
() => parsimmon_umd_minExports.string("(").then(H(this, dn)).skip(parsimmon_umd_minExports.string(")")).or($).or(G).or(U).or(z).or(V)
|
|
17437
17437
|
), W = [
|
|
17438
17438
|
// 優先順位:19(メンバーへのアクセス、計算値によるメンバーへのアクセス)
|
|
17439
17439
|
// a.b a[b]
|
|
@@ -17461,10 +17461,10 @@ const Lf = class {
|
|
|
17461
17461
|
(K, Z) => Z.type(Z.ops, K),
|
|
17462
17462
|
Y
|
|
17463
17463
|
);
|
|
17464
|
-
ot(this,
|
|
17464
|
+
ot(this, dn, W.trim(parsimmon_umd_minExports.optWhitespace));
|
|
17465
17465
|
}
|
|
17466
17466
|
parse(t) {
|
|
17467
|
-
const e = H(this,
|
|
17467
|
+
const e = H(this, dn).parse(t);
|
|
17468
17468
|
if (!e.status)
|
|
17469
17469
|
throw Error("(PropParser)文法エラー【" + t + "】");
|
|
17470
17470
|
const r = e.value;
|
|
@@ -17486,13 +17486,13 @@ const Lf = class {
|
|
|
17486
17486
|
}
|
|
17487
17487
|
};
|
|
17488
17488
|
let PropParser = Lf;
|
|
17489
|
-
|
|
17489
|
+
dn = new WeakMap(), Zt = new WeakSet(), Jt = function(t) {
|
|
17490
17490
|
const e = t.shift();
|
|
17491
17491
|
if (e instanceof Array)
|
|
17492
17492
|
return lt(this, Zt, Jt).call(this, e);
|
|
17493
17493
|
const r = H(this, Ni)[e];
|
|
17494
17494
|
return r ? r(t) : Object(null);
|
|
17495
|
-
}, Ni = new WeakMap(), Li = new WeakSet(),
|
|
17495
|
+
}, Ni = new WeakMap(), Li = new WeakSet(), Ss = function(t) {
|
|
17496
17496
|
const e = lt(this, Zt, Jt).call(this, t);
|
|
17497
17497
|
if (Object.prototype.toString.call(e) !== "[object Number]")
|
|
17498
17498
|
throw Error("(PropParser)引数【" + e + "】が数値ではありません");
|
|
@@ -17514,20 +17514,20 @@ fn = new WeakMap(), Zt = new WeakSet(), Jt = function(t) {
|
|
|
17514
17514
|
}
|
|
17515
17515
|
return t;
|
|
17516
17516
|
}, rt(PropParser, wu), rt(PropParser, Tu, /^((?<scope>\w+?):)?(?<name>[^\s :@]+)(?<at>\@str)?$/);
|
|
17517
|
-
var wr,
|
|
17517
|
+
var wr, pn, Ds, Cr, uo, Cu, Gf, Pu, Uf, Mu, jf, Ru, zf;
|
|
17518
17518
|
const pe = class {
|
|
17519
17519
|
constructor(t, e, r) {
|
|
17520
17520
|
rt(this, Cu);
|
|
17521
17521
|
rt(this, Pu);
|
|
17522
17522
|
// ログ出力
|
|
17523
17523
|
rt(this, uo, !0);
|
|
17524
|
-
this.sys = t, ot(pe, wr, r), ot(pe,
|
|
17524
|
+
this.sys = t, ot(pe, wr, r), ot(pe, pn, e), ot(pe, Ds, e.title), pe.myTrace = lt(pe, Mu, jf), e.log = (D) => lt(this, Cu, Gf).call(this, D), e.trace = (D) => lt(this, Pu, Uf).call(this, D), ot(pe, Cr, document.createElement("span")), H(pe, Cr).hidden = !0, H(pe, Cr).textContent = "", H(pe, Cr).style.cssText = ` z-index: ${Number.MAX_SAFE_INTEGER};
|
|
17525
17525
|
position: absolute; left: 0; top: 0;
|
|
17526
17526
|
color: black;
|
|
17527
17527
|
background-color: rgba(255, 255, 255, 0.7);`, document.body.appendChild(H(pe, Cr));
|
|
17528
17528
|
}
|
|
17529
17529
|
destroy() {
|
|
17530
|
-
ot(pe,
|
|
17530
|
+
ot(pe, Ds, () => !1), document.body.removeChild(H(pe, Cr)), pe.myTrace = pe.trace_beforeNew;
|
|
17531
17531
|
}
|
|
17532
17532
|
// private禁止、galleryでエラーになる
|
|
17533
17533
|
static trace_beforeNew(t, e = "E") {
|
|
@@ -17554,7 +17554,7 @@ const pe = class {
|
|
|
17554
17554
|
}
|
|
17555
17555
|
};
|
|
17556
17556
|
let DebugMng = pe;
|
|
17557
|
-
wr = new WeakMap(),
|
|
17557
|
+
wr = new WeakMap(), pn = new WeakMap(), Ds = new WeakMap(), Cr = new WeakMap(), uo = new WeakMap(), Cu = new WeakSet(), Gf = function(t) {
|
|
17558
17558
|
let e = "";
|
|
17559
17559
|
return H(this, uo) && (ot(this, uo, !1), e = `== ${platformExports.description} ==
|
|
17560
17560
|
`), this.sys.appendFile(
|
|
@@ -17585,7 +17585,7 @@ ${t.text || `(text is ${t.text})`}
|
|
|
17585
17585
|
break;
|
|
17586
17586
|
case "ET":
|
|
17587
17587
|
case "E":
|
|
17588
|
-
if (H(k = pe,
|
|
17588
|
+
if (H(k = pe, Ds).call(k, { text: t }), H(this, pn).dump_lay({}), H(this, pn).dump_val({}), H(pe, wr).dumpErrForeLine(), H(this, pn).dump_stack({}), e === "ET")
|
|
17589
17589
|
throw r;
|
|
17590
17590
|
console.error("%c" + r, "color:#F30;");
|
|
17591
17591
|
return;
|
|
@@ -17613,7 +17613,7 @@ ${t.text || `(text is ${t.text})`}
|
|
|
17613
17613
|
r = "";
|
|
17614
17614
|
}
|
|
17615
17615
|
H(pe, Cr).innerHTML += `<span style='${r}'>${t}</span><br/>`, H(pe, Cr).hidden = !1;
|
|
17616
|
-
}, rt(DebugMng, Mu), rt(DebugMng, Ru), rt(DebugMng, wr, void 0), rt(DebugMng,
|
|
17616
|
+
}, rt(DebugMng, Mu), rt(DebugMng, Ru), rt(DebugMng, wr, void 0), rt(DebugMng, pn, void 0), rt(DebugMng, Ds, void 0), rt(DebugMng, Cr, void 0), Ot(DebugMng, "myTrace", pe.trace_beforeNew), Ot(DebugMng, "strPos", () => H(pe, wr) && H(pe, wr).lineNum > 0 ? `(fn:${H(pe, wr).scriptFn} line:${H(pe, wr).lineNum}) ` : "");
|
|
17617
17617
|
class Areas {
|
|
17618
17618
|
constructor() {
|
|
17619
17619
|
Ot(this, "hAreas", /* @__PURE__ */ Object.create(null));
|
|
@@ -17666,8 +17666,8 @@ class Areas {
|
|
|
17666
17666
|
return t.slice(1);
|
|
17667
17667
|
}
|
|
17668
17668
|
}
|
|
17669
|
-
var ke, pr, we, ni, De, or, $r, ho, Ou, co, Yc, fo, po, Iu, Hf, Du, Vf, vr, Fr, Au, Xf, Nu, Yf, Lu, Wf, ku, qf, Bu, Kf, Fu, Zf, $u, Jf, Gu, Qf,
|
|
17670
|
-
const
|
|
17669
|
+
var ke, pr, we, ni, De, or, $r, ho, Ou, co, Yc, fo, po, Iu, Hf, Du, Vf, vr, Fr, Au, Xf, Nu, Yf, Lu, Wf, ku, qf, Bu, Kf, Fu, Zf, $u, Jf, Gu, Qf, As, su, vo, Wc, go, vn, mo, qc, Uu, ju, Ns, _o, Ls, au, zu, td, Hu, ed, yo, Kc, bo, Zc, Vu, rd, Xu, id, ks, ou;
|
|
17670
|
+
const Ps = class {
|
|
17671
17671
|
constructor(t, e) {
|
|
17672
17672
|
rt(this, co);
|
|
17673
17673
|
// // しおり
|
|
@@ -17696,18 +17696,18 @@ const Cs = class {
|
|
|
17696
17696
|
rt(this, Gu);
|
|
17697
17697
|
// // デバッグ・その他
|
|
17698
17698
|
// システム変数の全消去
|
|
17699
|
-
rt(this,
|
|
17699
|
+
rt(this, As);
|
|
17700
17700
|
// ゲーム変数の全消去
|
|
17701
17701
|
rt(this, vo);
|
|
17702
17702
|
rt(this, mo);
|
|
17703
|
-
rt(this,
|
|
17703
|
+
rt(this, Ls);
|
|
17704
17704
|
rt(this, zu);
|
|
17705
17705
|
rt(this, Hu);
|
|
17706
17706
|
rt(this, yo);
|
|
17707
17707
|
rt(this, bo);
|
|
17708
17708
|
rt(this, Vu);
|
|
17709
17709
|
rt(this, Xu);
|
|
17710
|
-
rt(this,
|
|
17710
|
+
rt(this, ks);
|
|
17711
17711
|
rt(this, ke, { sys: {}, save: {}, tmp: {}, mp: {} });
|
|
17712
17712
|
rt(this, pr, H(this, ke).save);
|
|
17713
17713
|
rt(this, we, H(this, ke).tmp);
|
|
@@ -17728,7 +17728,7 @@ const Cs = class {
|
|
|
17728
17728
|
set_data_break: (t, e) => {
|
|
17729
17729
|
lt(this, co, Yc).call(this, e.a), H(this, ni).send2Dbg(e.ri, {});
|
|
17730
17730
|
},
|
|
17731
|
-
disconnect: (t) => ot(
|
|
17731
|
+
disconnect: (t) => ot(Ps, vn, {})
|
|
17732
17732
|
});
|
|
17733
17733
|
rt(this, fo, () => {
|
|
17734
17734
|
});
|
|
@@ -17806,39 +17806,43 @@ const Cs = class {
|
|
|
17806
17806
|
}
|
|
17807
17807
|
return console.info("🥟 [dump_val]", t), !1;
|
|
17808
17808
|
});
|
|
17809
|
-
rt(this,
|
|
17809
|
+
rt(this, Ns, !1);
|
|
17810
17810
|
rt(this, _o, {
|
|
17811
17811
|
// sys
|
|
17812
|
-
"sys:sn.tagCh.doWait": (t) => lt(this,
|
|
17813
|
-
"sys:sn.tagCh.doWait_Kidoku": (t) => lt(this,
|
|
17812
|
+
"sys:sn.tagCh.doWait": (t) => lt(this, Ls, au).call(this, t),
|
|
17813
|
+
"sys:sn.tagCh.doWait_Kidoku": (t) => lt(this, Ls, au).call(this, t),
|
|
17814
17814
|
"sys:sn.tagCh.msecWait": (t) => lt(this, zu, td).call(this, t),
|
|
17815
17815
|
"sys:sn.tagCh.msecWait_Kidoku": (t) => lt(this, Hu, ed).call(this, t),
|
|
17816
|
-
"sys:sn.tagCh.canskip": (t) => lt(this,
|
|
17816
|
+
"sys:sn.tagCh.canskip": (t) => lt(this, Ls, au).call(this, t),
|
|
17817
17817
|
"sys:sn.auto.msecPageWait": (t) => lt(this, yo, Kc).call(this, t),
|
|
17818
17818
|
"sys:sn.auto.msecPageWait_Kidoku": (t) => lt(this, yo, Kc).call(this, t),
|
|
17819
17819
|
"sys:sn.auto.msecLineWait": (t) => lt(this, bo, Zc).call(this, t),
|
|
17820
17820
|
"sys:sn.auto.msecLineWait_Kidoku": (t) => lt(this, bo, Zc).call(this, t),
|
|
17821
17821
|
// save
|
|
17822
17822
|
"save:sn.doRecLog": (t) => {
|
|
17823
|
-
H(this, po).call(this, ot(this,
|
|
17823
|
+
H(this, po).call(this, ot(this, Ns, lt(this, Vu, rd).call(this, t)));
|
|
17824
|
+
},
|
|
17825
|
+
"save:sn.userFnTail": (t, e) => {
|
|
17826
|
+
if (e.includes("@"))
|
|
17827
|
+
throw "この変数では文字「@」は禁止です";
|
|
17828
|
+
this.cfg.userFnTail = e;
|
|
17824
17829
|
},
|
|
17825
|
-
"save:sn.userFnTail": (t, e) => this.cfg.userFnTail = e,
|
|
17826
17830
|
// tmp
|
|
17827
17831
|
"tmp:sn.tagL.enabled": (t) => lt(this, Xu, id).call(this, t),
|
|
17828
|
-
"tmp:sn.skip.all": (t) => lt(this,
|
|
17829
|
-
"tmp:sn.skip.enabled": (t) => lt(this,
|
|
17830
|
-
"tmp:sn.auto.enabled": (t) => lt(this,
|
|
17832
|
+
"tmp:sn.skip.all": (t) => lt(this, ks, ou).call(this, t),
|
|
17833
|
+
"tmp:sn.skip.enabled": (t) => lt(this, ks, ou).call(this, t),
|
|
17834
|
+
"tmp:sn.auto.enabled": (t) => lt(this, ks, ou).call(this, t),
|
|
17831
17835
|
"tmp:flash.desktop.NativeApplication.nativeApplication.systemIdleMode": () => {
|
|
17832
17836
|
}
|
|
17833
17837
|
});
|
|
17834
|
-
if (this.cfg = t, e.let = (N) => lt(this, vr, Fr).call(this, N), e.let_abs = (N) => lt(this, Au, Xf).call(this, N), e.let_char_at = (N) => lt(this, Nu, Yf).call(this, N), e.let_index_of = (N) => lt(this, Lu, Wf).call(this, N), e.let_length = (N) => lt(this, ku, qf).call(this, N), e.let_replace = (N) => lt(this, Bu, Kf).call(this, N), e.let_round = (N) => lt(this, Fu, Zf).call(this, N), e.let_search = (N) => lt(this, $u, Jf).call(this, N), e.let_substr = (N) => lt(this, Gu, Qf).call(this, N), e.clearsysvar = () => lt(this,
|
|
17838
|
+
if (this.cfg = t, e.let = (N) => lt(this, vr, Fr).call(this, N), e.let_abs = (N) => lt(this, Au, Xf).call(this, N), e.let_char_at = (N) => lt(this, Nu, Yf).call(this, N), e.let_index_of = (N) => lt(this, Lu, Wf).call(this, N), e.let_length = (N) => lt(this, ku, qf).call(this, N), e.let_replace = (N) => lt(this, Bu, Kf).call(this, N), e.let_round = (N) => lt(this, Fu, Zf).call(this, N), e.let_search = (N) => lt(this, $u, Jf).call(this, N), e.let_substr = (N) => lt(this, Gu, Qf).call(this, N), e.clearsysvar = () => lt(this, As, su).call(this), e.clearvar = () => lt(this, vo, Wc).call(this), e.dump_val = () => H(this, ju).call(this), e.copybookmark = (N) => lt(this, Iu, Hf).call(this, N), e.erasebookmark = (N) => lt(this, Du, Vf).call(this, N), H(this, pr)["sn.userFnTail"] = "", this.defTmp("const.sn.bookmark.json", () => {
|
|
17835
17839
|
const N = [];
|
|
17836
17840
|
for (const k of Object.keys(H(this, De).mark).sort()) {
|
|
17837
17841
|
const $ = { ...H(this, De).mark[k].json };
|
|
17838
17842
|
$.place = k, N.push($);
|
|
17839
17843
|
}
|
|
17840
17844
|
return JSON.stringify(N);
|
|
17841
|
-
}), H(this, we)["const.sn.isFirstBoot"] = !0, H(this, we)["sn.tagL.enabled"] = !0, H(this, we)["sn.skip.all"] = !1, H(this, we)["sn.skip.enabled"] = !1, H(this, we)["sn.auto.enabled"] = !1, H(this, we)["const.sn.last_page_text"] = "", H(this, we)["const.sn.displayState"] = !1, H(this, we)["const.Date.getTime"] = () => (/* @__PURE__ */ new Date()).getTime(), H(this, we)["const.Date.getDateStr"] = () => getDateStr(), H(this, we)["const.sn.platform"] = JSON.stringify(platformExports), lt(this,
|
|
17845
|
+
}), H(this, we)["const.sn.isFirstBoot"] = !0, H(this, we)["sn.tagL.enabled"] = !0, H(this, we)["sn.skip.all"] = !1, H(this, we)["sn.skip.enabled"] = !1, H(this, we)["sn.auto.enabled"] = !1, H(this, we)["const.sn.last_page_text"] = "", H(this, we)["const.sn.displayState"] = !1, H(this, we)["const.Date.getTime"] = () => (/* @__PURE__ */ new Date()).getTime(), H(this, we)["const.Date.getDateStr"] = () => getDateStr(), H(this, we)["const.sn.platform"] = JSON.stringify(platformExports), lt(this, As, su).call(this), lt(this, vo, Wc).call(this), H(this, we)["const.sn.config.window.width"] = t.oCfg.window.width, H(this, we)["const.sn.config.window.height"] = t.oCfg.window.height, H(this, we)["const.sn.config.book.title"] = t.oCfg.book.title, H(this, we)["const.sn.config.book.version"] = t.oCfg.book.version, H(this, we)["const.sn.Math.PI"] = Math.PI, typeof window > "u")
|
|
17842
17846
|
return;
|
|
17843
17847
|
const r = window, D = r.AudioContext ?? r.webkitAudioContext;
|
|
17844
17848
|
H(this, we)["const.sn.needClick2Play"] = () => new D().state === "suspended";
|
|
@@ -17877,7 +17881,7 @@ const Cs = class {
|
|
|
17877
17881
|
return (G = ($ = H(this, Ou))[N]) == null ? void 0 : G.call($, N, k);
|
|
17878
17882
|
});
|
|
17879
17883
|
const D = this.getVal("sys:sn.tagCh.msecWait", -1);
|
|
17880
|
-
(H(this, we)["const.sn.isFirstBoot"] || D === -1) && lt(this,
|
|
17884
|
+
(H(this, we)["const.sn.isFirstBoot"] || D === -1) && lt(this, As, su).call(this);
|
|
17881
17885
|
});
|
|
17882
17886
|
}
|
|
17883
17887
|
updateData(t) {
|
|
@@ -17910,7 +17914,7 @@ const Cs = class {
|
|
|
17910
17914
|
return { ...H(this, ke).save };
|
|
17911
17915
|
}
|
|
17912
17916
|
mark2save(t) {
|
|
17913
|
-
ot(this, pr, H(this, ke).save = { ...t.hSave }), ot(this,
|
|
17917
|
+
ot(this, pr, H(this, ke).save = { ...t.hSave }), ot(this, Ns, H(this, pr)["sn.doRecLog"] ?? !1);
|
|
17914
17918
|
}
|
|
17915
17919
|
// 既読系
|
|
17916
17920
|
loadScrWork(t) {
|
|
@@ -17926,7 +17930,7 @@ const Cs = class {
|
|
|
17926
17930
|
const N = H(this, ke)[t];
|
|
17927
17931
|
D && (r = lt(this, mo, qc).call(this, r));
|
|
17928
17932
|
const k = t + ":" + e;
|
|
17929
|
-
if (k in H(
|
|
17933
|
+
if (k in H(Ps, vn)) {
|
|
17930
17934
|
const U = N[e], z = r;
|
|
17931
17935
|
U != z && H(this, ho).call(this, "data_break", {
|
|
17932
17936
|
dataId: k,
|
|
@@ -17937,17 +17941,17 @@ const Cs = class {
|
|
|
17937
17941
|
N[e] = r, (G = ($ = H(this, _o))[k]) == null || G.call($, e, r);
|
|
17938
17942
|
}
|
|
17939
17943
|
doRecLog() {
|
|
17940
|
-
return H(this,
|
|
17944
|
+
return H(this, Ns);
|
|
17941
17945
|
}
|
|
17942
17946
|
defValTrg(t, e) {
|
|
17943
17947
|
H(this, _o)[t] = e;
|
|
17944
17948
|
}
|
|
17945
17949
|
};
|
|
17946
|
-
let Variable =
|
|
17950
|
+
let Variable = Ps;
|
|
17947
17951
|
ke = new WeakMap(), pr = new WeakMap(), we = new WeakMap(), ni = new WeakMap(), De = new WeakMap(), or = new WeakMap(), $r = new WeakMap(), ho = new WeakMap(), Ou = new WeakMap(), co = new WeakSet(), Yc = function(t) {
|
|
17948
|
-
ot(
|
|
17952
|
+
ot(Ps, vn, {});
|
|
17949
17953
|
for (const e of t)
|
|
17950
|
-
H(
|
|
17954
|
+
H(Ps, vn)[e.dataId] = 1;
|
|
17951
17955
|
}, fo = new WeakMap(), po = new WeakMap(), Iu = new WeakSet(), Hf = function(t) {
|
|
17952
17956
|
if (!("from" in t))
|
|
17953
17957
|
throw "fromは必須です";
|
|
@@ -18018,7 +18022,7 @@ ke = new WeakMap(), pr = new WeakMap(), we = new WeakMap(), ni = new WeakMap(),
|
|
|
18018
18022
|
}, Gu = new WeakSet(), Qf = function(t) {
|
|
18019
18023
|
const e = argChk_Num(t, "pos", 0);
|
|
18020
18024
|
return t.text = t.len !== "all" ? (t.text ?? "").slice(e, e + int(argChk_Num(t, "len", 1))) : (t.text ?? "").slice(e), lt(this, vr, Fr).call(this, t), !1;
|
|
18021
|
-
},
|
|
18025
|
+
}, As = new WeakSet(), su = function() {
|
|
18022
18026
|
const t = ot(this, or, H(this, ke).sys = H(this, De).sys = {});
|
|
18023
18027
|
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", argChk_Num(t, "sn.auto.msecPageWait", this.cfg.oCfg.init.auto_msecpagewait ?? 3500)), this.setVal_Nochk("sys", "sn.auto.msecPageWait_Kidoku", argChk_Num(t, "sn.auto.msecPageWait", this.cfg.oCfg.init.auto_msecpagewait ?? 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);
|
|
18024
18028
|
for (const [r, D] of Object.entries(H(this, De).kidoku))
|
|
@@ -18027,7 +18031,7 @@ ke = new WeakMap(), pr = new WeakMap(), we = new WeakMap(), ni = new WeakMap(),
|
|
|
18027
18031
|
}, vo = new WeakSet(), Wc = function() {
|
|
18028
18032
|
const t = H(this, pr)["const.sn.mesLayer"] ?? "", e = H(this, pr)["sn.doRecLog"] ?? !1, r = H(this, pr)["const.sn.sLog"] ?? "[]";
|
|
18029
18033
|
return ot(this, pr, H(this, ke).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;
|
|
18030
|
-
}, go = new WeakMap(),
|
|
18034
|
+
}, go = new WeakMap(), vn = new WeakMap(), mo = new WeakSet(), qc = function(t) {
|
|
18031
18035
|
const e = t;
|
|
18032
18036
|
if (e === "true")
|
|
18033
18037
|
return !0;
|
|
@@ -18037,7 +18041,7 @@ ke = new WeakMap(), pr = new WeakMap(), we = new WeakMap(), ni = new WeakMap(),
|
|
|
18037
18041
|
return null;
|
|
18038
18042
|
if (e !== "undefined")
|
|
18039
18043
|
return H(this, Uu).test(e) ? parseFloat(e) : t;
|
|
18040
|
-
}, Uu = new WeakMap(), ju = new WeakMap(),
|
|
18044
|
+
}, Uu = new WeakMap(), ju = new WeakMap(), Ns = new WeakMap(), _o = new WeakMap(), Ls = new WeakSet(), au = function(t) {
|
|
18041
18045
|
argChk_Boolean(H(this, or), t, !0);
|
|
18042
18046
|
}, zu = new WeakSet(), td = function(t) {
|
|
18043
18047
|
argChk_Num(H(this, or), t, 10), H(this, or)["sn.tagCh.doWait"];
|
|
@@ -18059,10 +18063,10 @@ ke = new WeakMap(), pr = new WeakMap(), we = new WeakMap(), ni = new WeakMap(),
|
|
|
18059
18063
|
return argChk_Boolean(H(this, pr), t, !0);
|
|
18060
18064
|
}, Xu = new WeakSet(), id = function(t) {
|
|
18061
18065
|
argChk_Boolean(H(this, we), t, !0);
|
|
18062
|
-
},
|
|
18066
|
+
}, ks = new WeakSet(), ou = function(t) {
|
|
18063
18067
|
argChk_Boolean(H(this, we), t, !1);
|
|
18064
18068
|
}, // reload 再生成 Main に受け渡すため static
|
|
18065
|
-
rt(Variable,
|
|
18069
|
+
rt(Variable, vn, {});
|
|
18066
18070
|
var Easing = Object.freeze({
|
|
18067
18071
|
Linear: Object.freeze({
|
|
18068
18072
|
None: function(o) {
|
|
@@ -19432,12 +19436,12 @@ var y = p.filter(function(o) {
|
|
|
19432
19436
|
return s = o, o;
|
|
19433
19437
|
}(new S());
|
|
19434
19438
|
"extensions" in n ? extensions.add(m) : Loader.registerPlugin(m);
|
|
19435
|
-
var Pe, $e, ki, Wu, nd,
|
|
19439
|
+
var Pe, $e, ki, Wu, nd, Bs, lu, qu, sd, Ku, ad, So, Jc, gn, za, Eo, Qc, Fs, $s, uu, To, tf, wo, Gs, hu, Zu, od, Gr, Ri, Ju, ld, Co, ef, mn, Ha, Qu, ud, Po, rf, th, hd, eh, cd, Us, cu;
|
|
19436
19440
|
const to = class {
|
|
19437
19441
|
constructor(t, e, r, D, N) {
|
|
19438
19442
|
// 音量設定(独自拡張)
|
|
19439
19443
|
rt(this, Wu);
|
|
19440
|
-
rt(this,
|
|
19444
|
+
rt(this, Bs);
|
|
19441
19445
|
// BGM/効果音のフェードアウト(loadから使うのでマクロ化禁止)
|
|
19442
19446
|
rt(this, qu);
|
|
19443
19447
|
// 効果音のフェードアウト(loadから使うのでマクロ化禁止)
|
|
@@ -19445,13 +19449,13 @@ const to = class {
|
|
|
19445
19449
|
// BGMのフェード(loadから使うのでマクロ化禁止)
|
|
19446
19450
|
rt(this, So);
|
|
19447
19451
|
// 効果音のフェード
|
|
19448
|
-
rt(this,
|
|
19452
|
+
rt(this, gn);
|
|
19449
19453
|
// BGM の演奏
|
|
19450
19454
|
rt(this, Eo);
|
|
19451
|
-
rt(this,
|
|
19455
|
+
rt(this, $s);
|
|
19452
19456
|
rt(this, To);
|
|
19453
19457
|
// 全効果音再生の停止
|
|
19454
|
-
rt(this,
|
|
19458
|
+
rt(this, Gs);
|
|
19455
19459
|
// BGM 演奏の停止(loadから使うのでマクロ化禁止)
|
|
19456
19460
|
rt(this, Zu);
|
|
19457
19461
|
// 効果音再生の停止
|
|
@@ -19461,7 +19465,7 @@ const to = class {
|
|
|
19461
19465
|
// 効果音フェードの終了待ち
|
|
19462
19466
|
rt(this, Co);
|
|
19463
19467
|
// 音声フェードの停止
|
|
19464
|
-
rt(this,
|
|
19468
|
+
rt(this, mn);
|
|
19465
19469
|
// BGM 再生の終了待ち
|
|
19466
19470
|
rt(this, Qu);
|
|
19467
19471
|
// 効果音再生の終了待ち
|
|
@@ -19469,7 +19473,7 @@ const to = class {
|
|
|
19469
19473
|
// 再生トラックの交換
|
|
19470
19474
|
rt(this, th);
|
|
19471
19475
|
rt(this, eh);
|
|
19472
|
-
rt(this,
|
|
19476
|
+
rt(this, Us);
|
|
19473
19477
|
rt(this, Pe, {});
|
|
19474
19478
|
rt(this, $e, {});
|
|
19475
19479
|
rt(this, ki, void 0);
|
|
@@ -19477,7 +19481,7 @@ const to = class {
|
|
|
19477
19481
|
R.volumeAll = Number(this.val.getVal("sys:sn.sound.global_volume", 1)), ot(this, wo, () => {
|
|
19478
19482
|
});
|
|
19479
19483
|
});
|
|
19480
|
-
this.cfg = t, this.val = r, this.main = D, this.sys = N, e.volume = (k) => lt(this, Wu, nd).call(this, k), e.fadebgm = (k) => lt(this, So, Jc).call(this, k), e.fadeoutbgm = (k) => lt(this, qu, sd).call(this, k), e.fadeoutse = (k) => lt(this, Ku, ad).call(this, k), e.fadese = (k) => lt(this,
|
|
19484
|
+
this.cfg = t, this.val = r, this.main = D, this.sys = N, e.volume = (k) => lt(this, Wu, nd).call(this, k), e.fadebgm = (k) => lt(this, So, Jc).call(this, k), e.fadeoutbgm = (k) => lt(this, qu, sd).call(this, k), e.fadeoutse = (k) => lt(this, Ku, ad).call(this, k), e.fadese = (k) => lt(this, gn, za).call(this, k), e.playbgm = (k) => lt(this, Eo, Qc).call(this, k), e.playse = (k) => lt(this, $s, uu).call(this, k), e.stop_allse = () => lt(this, Gs, hu).call(this), e.stopbgm = (k) => lt(this, Zu, od).call(this, k), e.stopse = (k) => lt(this, Gr, Ri).call(this, k), e.wb = (k) => lt(this, Ju, ld).call(this, k), e.wf = (k) => lt(this, Co, ef).call(this, k), e.stopfadese = (k) => lt(this, mn, Ha).call(this, k), e.wl = (k) => lt(this, Qu, ud).call(this, k), e.ws = (k) => lt(this, Po, rf).call(this, k), e.xchgbuf = (k) => lt(this, th, hd).call(this, k), this.val.setVal_Nochk("save", "const.sn.loopPlaying", "{}"), r.setVal_Nochk("tmp", "const.sn.sound.codecs", JSON.stringify(B.supported));
|
|
19481
19485
|
}
|
|
19482
19486
|
setEvtMng(t) {
|
|
19483
19487
|
ot(this, ki, t);
|
|
@@ -19492,7 +19496,7 @@ const to = class {
|
|
|
19492
19496
|
playLoopFromSaveObj() {
|
|
19493
19497
|
const t = String(this.val.getVal("save:const.sn.loopPlaying", "{}"));
|
|
19494
19498
|
if (this.val.flush(), t === "{}") {
|
|
19495
|
-
lt(this,
|
|
19499
|
+
lt(this, Gs, hu).call(this);
|
|
19496
19500
|
return;
|
|
19497
19501
|
}
|
|
19498
19502
|
ot(this, $e, JSON.parse(t));
|
|
@@ -19507,35 +19511,35 @@ const to = class {
|
|
|
19507
19511
|
end_ms: Number(this.val.getVal(D + "end_ms")),
|
|
19508
19512
|
ret_ms: Number(this.val.getVal(D + "ret_ms"))
|
|
19509
19513
|
};
|
|
19510
|
-
N.buf === "BGM" ? lt(this, Eo, Qc).call(this, N) : lt(this,
|
|
19514
|
+
N.buf === "BGM" ? lt(this, Eo, Qc).call(this, N) : lt(this, $s, uu).call(this, N);
|
|
19511
19515
|
});
|
|
19512
|
-
lt(this,
|
|
19516
|
+
lt(this, Gs, hu).call(this);
|
|
19513
19517
|
for (const r of e)
|
|
19514
19518
|
r();
|
|
19515
19519
|
}
|
|
19516
19520
|
};
|
|
19517
19521
|
let SoundMng = to;
|
|
19518
19522
|
Pe = new WeakMap(), $e = new WeakMap(), ki = new WeakMap(), Wu = new WeakSet(), nd = function(t) {
|
|
19519
|
-
const { buf: e = "SE" } = t, r = "const.sn.sound." + e + ".volume", D = lt(this,
|
|
19520
|
-
return Number(this.val.getVal("sys:" + r)) === D ? !1 : (this.val.setVal_Nochk("sys", r, D), this.val.flush(), t.time = 0, t.volume = Number(this.val.getVal("save:" + r)), lt(this,
|
|
19521
|
-
},
|
|
19523
|
+
const { buf: e = "SE" } = t, r = "const.sn.sound." + e + ".volume", D = lt(this, Bs, lu).call(this, t, 1);
|
|
19524
|
+
return Number(this.val.getVal("sys:" + r)) === D ? !1 : (this.val.setVal_Nochk("sys", r, D), this.val.flush(), t.time = 0, t.volume = Number(this.val.getVal("save:" + r)), lt(this, gn, za).call(this, t));
|
|
19525
|
+
}, Bs = new WeakSet(), lu = function(t, e) {
|
|
19522
19526
|
const r = argChk_Num(t, "volume", e);
|
|
19523
19527
|
return r < 0 ? 0 : r > 1 ? 1 : r;
|
|
19524
19528
|
}, qu = new WeakSet(), sd = function(t) {
|
|
19525
19529
|
return t.volume = 0, lt(this, So, Jc).call(this, t);
|
|
19526
19530
|
}, Ku = new WeakSet(), ad = function(t) {
|
|
19527
|
-
return t.volume = 0, lt(this,
|
|
19531
|
+
return t.volume = 0, lt(this, gn, za).call(this, t);
|
|
19528
19532
|
}, So = new WeakSet(), Jc = function(t) {
|
|
19529
|
-
return t.buf = "BGM", lt(this,
|
|
19530
|
-
},
|
|
19531
|
-
lt(this,
|
|
19533
|
+
return t.buf = "BGM", lt(this, gn, za).call(this, t);
|
|
19534
|
+
}, gn = new WeakSet(), za = function(t) {
|
|
19535
|
+
lt(this, mn, Ha).call(this, t);
|
|
19532
19536
|
const { buf: e = "SE" } = t, r = H(this, Pe)[e];
|
|
19533
19537
|
if (!(r != null && r.playing()) || !r.snd)
|
|
19534
19538
|
return !1;
|
|
19535
|
-
const D = "const.sn.sound." + e + ".", N = D + "volume", k = lt(this,
|
|
19539
|
+
const D = "const.sn.sound." + e + ".", N = D + "volume", k = lt(this, Bs, lu).call(this, t, NaN);
|
|
19536
19540
|
this.val.setVal_Nochk("save", N, k);
|
|
19537
19541
|
const $ = k * Number(this.val.getVal("sys:" + N, 1)), G = argChk_Boolean(t, "stop", k === 0);
|
|
19538
|
-
G && (lt(this,
|
|
19542
|
+
G && (lt(this, Us, cu).call(this, e), this.val.setVal_Nochk("save", D + "fn", "")), this.val.flush();
|
|
19539
19543
|
const U = argChk_Num(t, "time", NaN), z = argChk_Num(t, "delay", 0);
|
|
19540
19544
|
if (U === 0 && z === 0 || this.val.getVal("tmp:sn.skip.enabled") || H(this, ki).isSkippingByKeyDown())
|
|
19541
19545
|
return r.snd.volume = $, G && lt(this, Gr, Ri).call(this, t), !1;
|
|
@@ -19546,8 +19550,8 @@ Pe = new WeakMap(), $e = new WeakMap(), ki = new WeakMap(), Wu = new WeakSet(),
|
|
|
19546
19550
|
}, remove$6(V.twFade), delete V.twFade, G && (t.buf = r.now_buf, lt(this, Gr, Ri).call(this, t)), V.resumeFade && this.main.resume());
|
|
19547
19551
|
}).start(), !1;
|
|
19548
19552
|
}, Eo = new WeakSet(), Qc = function(t) {
|
|
19549
|
-
return t.buf = "BGM", t.canskip = !1, argChk_Boolean(t, "loop", !0), lt(this,
|
|
19550
|
-
},
|
|
19553
|
+
return t.buf = "BGM", t.canskip = !1, argChk_Boolean(t, "loop", !0), lt(this, $s, uu).call(this, t);
|
|
19554
|
+
}, Fs = new WeakMap(), $s = new WeakSet(), uu = function(t) {
|
|
19551
19555
|
const { buf: e = "SE", fn: r } = t;
|
|
19552
19556
|
if (lt(this, Gr, Ri).call(this, { buf: e }), !r)
|
|
19553
19557
|
throw `[playse] fnは必須です buf:${e}`;
|
|
@@ -19557,9 +19561,9 @@ Pe = new WeakMap(), $e = new WeakMap(), ki = new WeakMap(), Wu = new WeakSet(),
|
|
|
19557
19561
|
lt(this, eh, cd).call(this, e, D);
|
|
19558
19562
|
const N = "const.sn.sound." + e + ".";
|
|
19559
19563
|
this.val.setVal_Nochk("save", N + "fn", r);
|
|
19560
|
-
const k = lt(this,
|
|
19564
|
+
const k = lt(this, Bs, lu).call(this, t, 1);
|
|
19561
19565
|
this.val.setVal_Nochk("save", N + "volume", k);
|
|
19562
|
-
const $ = k * Number(this.val.getVal("sys:" + N + "volume", 1)), G = argChk_Num(t, "start_ms", 0), U = argChk_Num(t, "end_ms", H(to,
|
|
19566
|
+
const $ = k * Number(this.val.getVal("sys:" + N + "volume", 1)), G = argChk_Num(t, "start_ms", 0), U = argChk_Num(t, "end_ms", H(to, Fs)), z = argChk_Num(t, "ret_ms", 0), X = argChk_Num(t, "pan", 0), V = argChk_Num(t, "speed", 1);
|
|
19563
19567
|
if (G < 0)
|
|
19564
19568
|
throw `[playse] start_ms:${G} が負の値です`;
|
|
19565
19569
|
if (z < 0)
|
|
@@ -19590,7 +19594,7 @@ Pe = new WeakMap(), $e = new WeakMap(), ki = new WeakMap(), Wu = new WeakSet(),
|
|
|
19590
19594
|
return;
|
|
19591
19595
|
delete H(this, Pe)[J], Q.playing = () => !1;
|
|
19592
19596
|
const et = "const.sn.sound." + J + ".";
|
|
19593
|
-
this.val.setVal_Nochk("tmp", et + "playing", !1), t.buf = J, lt(this,
|
|
19597
|
+
this.val.setVal_Nochk("tmp", et + "playing", !1), t.buf = J, lt(this, mn, Ha).call(this, t), Q.resume && this.main.resume();
|
|
19594
19598
|
}
|
|
19595
19599
|
};
|
|
19596
19600
|
this.val.setVal_Nochk("tmp", N + "playing", !0);
|
|
@@ -19610,7 +19614,7 @@ Pe = new WeakMap(), $e = new WeakMap(), ki = new WeakMap(), Wu = new WeakSet(),
|
|
|
19610
19614
|
}
|
|
19611
19615
|
};
|
|
19612
19616
|
let K = "";
|
|
19613
|
-
if (G > 0 || U < H(to,
|
|
19617
|
+
if (G > 0 || U < H(to, Fs)) {
|
|
19614
19618
|
K = `${r};${G};${U};${z}`;
|
|
19615
19619
|
const J = (W.sprites ?? (W.sprites = {}))[K] = {
|
|
19616
19620
|
start: G / 1e3,
|
|
@@ -19629,7 +19633,7 @@ Pe = new WeakMap(), $e = new WeakMap(), ki = new WeakMap(), Wu = new WeakSet(),
|
|
|
19629
19633
|
}
|
|
19630
19634
|
if (J.start >= it)
|
|
19631
19635
|
throw `[playse] start_ms:${G} >= 音声ファイル再生時間:${it} は異常値です`;
|
|
19632
|
-
if (U !== H(to,
|
|
19636
|
+
if (U !== H(to, Fs) && J.end >= it)
|
|
19633
19637
|
throw `[playse] end_ms:${U} >= 音声ファイル再生時間:${it} は異常値です`;
|
|
19634
19638
|
tt.play(K, W.complete);
|
|
19635
19639
|
};
|
|
@@ -19710,7 +19714,7 @@ Pe = new WeakMap(), $e = new WeakMap(), ki = new WeakMap(), Wu = new WeakSet(),
|
|
|
19710
19714
|
}
|
|
19711
19715
|
r.loop || R.add(e, $);
|
|
19712
19716
|
});
|
|
19713
|
-
}, wo = new WeakMap(),
|
|
19717
|
+
}, wo = new WeakMap(), Gs = new WeakSet(), hu = function() {
|
|
19714
19718
|
for (const t of Object.keys(H(this, Pe)))
|
|
19715
19719
|
lt(this, Gr, Ri).call(this, { buf: t });
|
|
19716
19720
|
return ot(this, Pe, {}), R.stopAll(), !1;
|
|
@@ -19719,7 +19723,7 @@ Pe = new WeakMap(), $e = new WeakMap(), ki = new WeakMap(), Wu = new WeakSet(),
|
|
|
19719
19723
|
}, Gr = new WeakSet(), Ri = function(t) {
|
|
19720
19724
|
var D;
|
|
19721
19725
|
const { buf: e = "SE" } = t;
|
|
19722
|
-
lt(this,
|
|
19726
|
+
lt(this, Us, cu).call(this, e);
|
|
19723
19727
|
const r = H(this, Pe)[e];
|
|
19724
19728
|
return r && ((D = r.snd) == null || D.stop(), r.onend()), !1;
|
|
19725
19729
|
}, Ju = new WeakSet(), ld = function(t) {
|
|
@@ -19727,11 +19731,11 @@ Pe = new WeakMap(), $e = new WeakMap(), ki = new WeakMap(), Wu = new WeakSet(),
|
|
|
19727
19731
|
}, Co = new WeakSet(), ef = function(t) {
|
|
19728
19732
|
const { buf: e = "SE" } = t, r = H(this, Pe)[e];
|
|
19729
19733
|
return !(r != null && r.twFade) || !r.playing() ? !1 : r.resumeFade = H(this, ki).waitEvent(
|
|
19730
|
-
() => lt(this,
|
|
19734
|
+
() => lt(this, mn, Ha).call(this, t),
|
|
19731
19735
|
argChk_Boolean(t, "canskip", !0),
|
|
19732
19736
|
argChk_Boolean(t, "global", !1)
|
|
19733
19737
|
);
|
|
19734
|
-
},
|
|
19738
|
+
}, mn = new WeakSet(), Ha = function(t) {
|
|
19735
19739
|
var r, D;
|
|
19736
19740
|
const { buf: e = "SE" } = t;
|
|
19737
19741
|
return (D = (r = H(this, Pe)[e]) == null ? void 0 : r.twFade) == null || D.stop().end(), !1;
|
|
@@ -19760,14 +19764,14 @@ Pe = new WeakMap(), $e = new WeakMap(), ki = new WeakMap(), Wu = new WeakSet(),
|
|
|
19760
19764
|
return this.val.setVal_Nochk("save", k + "volume", X), this.val.setVal_Nochk("save", z + "volume", $), this.val.setVal_Nochk("save", k + "fn", V), this.val.setVal_Nochk("save", z + "fn", G), this.val.setVal_Nochk("tmp", k + "playing", Y), this.val.setVal_Nochk("tmp", z + "playing", U), e in H(this, $e) == r in H(this, $e) && (e in H(this, $e) ? (delete H(this, $e)[e], H(this, $e)[r] = 0) : (delete H(this, $e)[r], H(this, $e)[e] = 0), this.val.setVal_Nochk("save", "const.sn.loopPlaying", JSON.stringify(H(this, $e)))), this.val.flush(), !1;
|
|
19761
19765
|
}, eh = new WeakSet(), cd = function(t, e) {
|
|
19762
19766
|
if (!e) {
|
|
19763
|
-
lt(this,
|
|
19767
|
+
lt(this, Us, cu).call(this, t);
|
|
19764
19768
|
return;
|
|
19765
19769
|
}
|
|
19766
19770
|
H(this, $e)[t] = 0, this.val.setVal_Nochk("save", "const.sn.loopPlaying", JSON.stringify(H(this, $e))), this.val.flush();
|
|
19767
|
-
},
|
|
19771
|
+
}, Us = new WeakSet(), cu = function(t) {
|
|
19768
19772
|
delete H(this, $e)[t], this.val.setVal_Nochk("save", "const.sn.loopPlaying", JSON.stringify(H(this, $e))), this.val.flush();
|
|
19769
19773
|
}, // 効果音の再生
|
|
19770
|
-
rt(SoundMng,
|
|
19774
|
+
rt(SoundMng, Fs, 999e3);
|
|
19771
19775
|
var ye;
|
|
19772
19776
|
const kf = class {
|
|
19773
19777
|
constructor(t, e, r, D, N, k, $, G) {
|
|
@@ -25816,27 +25820,27 @@ var Draggable = {
|
|
|
25816
25820
|
!At[0] && !At[1] && (It = [1, 1]);
|
|
25817
25821
|
var $t = nt && (k ?? Tt.keepRatio) || !1;
|
|
25818
25822
|
function Dt() {
|
|
25819
|
-
var
|
|
25823
|
+
var ue = r.fixedDirection, _e = getOffsetSizeDist(It, $t, r, t);
|
|
25820
25824
|
Mt = _e.distWidth, dt = _e.distHeight;
|
|
25821
|
-
var ve = It[0] -
|
|
25825
|
+
var ve = It[0] - ue[0] || $t ? Math.max(tt + Mt, TINY_NUM) : tt, de = It[1] - ue[1] || $t ? Math.max(it + dt, TINY_NUM) : it;
|
|
25822
25826
|
return $t && tt && it && (st ? de = ve / nt : ve = de * nt), [ve, de];
|
|
25823
25827
|
}
|
|
25824
25828
|
var Vt = Dt(), Lt = Vt[0], Et = Vt[1];
|
|
25825
25829
|
X || (r.setFixedDirection(r.fixedDirection), triggerEvent(o, "onBeforeResize", fillParams(o, t, {
|
|
25826
25830
|
startFixedDirection: r.startFixedDirection,
|
|
25827
25831
|
startFixedPosition: r.startFixedPosition,
|
|
25828
|
-
setFixedDirection: function(
|
|
25832
|
+
setFixedDirection: function(ue) {
|
|
25829
25833
|
var _e;
|
|
25830
|
-
return r.setFixedDirection(
|
|
25834
|
+
return r.setFixedDirection(ue), _e = Dt(), Lt = _e[0], Et = _e[1], [Lt, Et];
|
|
25831
25835
|
},
|
|
25832
|
-
setFixedPosition: function(
|
|
25836
|
+
setFixedPosition: function(ue) {
|
|
25833
25837
|
var _e;
|
|
25834
|
-
return r.setFixedPosition(
|
|
25838
|
+
return r.setFixedPosition(ue), _e = Dt(), Lt = _e[0], Et = _e[1], [Lt, Et];
|
|
25835
25839
|
},
|
|
25836
25840
|
boundingWidth: Lt,
|
|
25837
25841
|
boundingHeight: Et,
|
|
25838
|
-
setSize: function(
|
|
25839
|
-
Lt =
|
|
25842
|
+
setSize: function(ue) {
|
|
25843
|
+
Lt = ue[0], Et = ue[1];
|
|
25840
25844
|
}
|
|
25841
25845
|
}, !0)));
|
|
25842
25846
|
var Ht = $;
|
|
@@ -25844,8 +25848,8 @@ var Draggable = {
|
|
|
25844
25848
|
var kt = [0, 0];
|
|
25845
25849
|
N || (kt = checkSnapResize(o, Lt, Et, At, Ht, U, r)), G && (!G[0] && (kt[0] = 0), !G[1] && (kt[1] = 0));
|
|
25846
25850
|
function wt() {
|
|
25847
|
-
var
|
|
25848
|
-
Pt && (
|
|
25851
|
+
var ue;
|
|
25852
|
+
Pt && (ue = Pt([Lt, Et]), Lt = ue[0], Et = ue[1]), Lt = throttle(Lt, gt), Et = throttle(Et, gt);
|
|
25849
25853
|
}
|
|
25850
25854
|
if ($t) {
|
|
25851
25855
|
It[0] && It[1] && kt[0] && kt[1] && (Math.abs(kt[0]) > Math.abs(kt[1]) ? kt[1] = 0 : kt[0] = 0);
|
|
@@ -25857,10 +25861,10 @@ var Draggable = {
|
|
|
25857
25861
|
var jt = [Mt - Z, dt - J];
|
|
25858
25862
|
r.prevWidth = Mt, r.prevHeight = dt;
|
|
25859
25863
|
var Ct = getResizeDist(o, Lt, Et, Ht, q, r);
|
|
25860
|
-
if (!(!bt && jt.every(function(
|
|
25861
|
-
return !
|
|
25862
|
-
}) && Ct.every(function(
|
|
25863
|
-
return !
|
|
25864
|
+
if (!(!bt && jt.every(function(ue) {
|
|
25865
|
+
return !ue;
|
|
25866
|
+
}) && Ct.every(function(ue) {
|
|
25867
|
+
return !ue;
|
|
25864
25868
|
}))) {
|
|
25865
25869
|
var qt = Draggable.drag(o, setCustomDrag(t, o.state, Ct, !!N, !1, "draggable")), Qt = qt.transform, Kt = W + Mt, Se = K + dt, Oe = fillParams(o, t, __assign$1({
|
|
25866
25870
|
width: Kt,
|
|
@@ -27752,13 +27756,13 @@ var Clippable = {
|
|
|
27752
27756
|
bottom: tt
|
|
27753
27757
|
}, Lt, Et, 5), jt = Bt.horizontal, Ct = Bt.vertical, qt = jt.offset, Qt = Ct.offset;
|
|
27754
27758
|
if (jt.isBound && (wt[1] += qt), Ct.isBound && (wt[0] += Qt), (Nt || bt) && yt[0][0] === 0 && yt[0][1] === 0) {
|
|
27755
|
-
var At = getRect(St), Kt = At.bottom - At.top, Se = Nt ? At.right - At.left : Kt, Oe = Ct.isBound ? Math.abs(Qt) : Ct.snapIndex === 0 ? -Qt : Qt,
|
|
27756
|
-
Se -= Oe, Kt -=
|
|
27759
|
+
var At = getRect(St), Kt = At.bottom - At.top, Se = Nt ? At.right - At.left : Kt, Oe = Ct.isBound ? Math.abs(Qt) : Ct.snapIndex === 0 ? -Qt : Qt, ue = jt.isBound ? Math.abs(qt) : jt.snapIndex === 0 ? -qt : qt;
|
|
27760
|
+
Se -= Oe, Kt -= ue, bt && (Kt = checkSnapBoundPriority(Ct, jt) > 0 ? Kt : Se, Se = Kt);
|
|
27757
27761
|
var _e = gt[0];
|
|
27758
27762
|
gt[1][1] = _e[1] - Kt, gt[2][0] = _e[0] + Se, gt[3][1] = _e[1] + Kt, gt[4][0] = _e[0] - Se;
|
|
27759
27763
|
} else if (vt && q && G) {
|
|
27760
|
-
var ve = getControlSize(at), de = ve[0], fe = ve[1], ne = de && fe ? de / fe : 0,
|
|
27761
|
-
qt <= Qt ? qt = Qt / ne : Qt = qt * ne,
|
|
27764
|
+
var ve = getControlSize(at), de = ve[0], fe = ve[1], ne = de && fe ? de / fe : 0, Ve = at[X], vs = Ve.direction || "", Ua = gt[1][1], dt = gt[5][1], $t = gt[7][0], Dt = gt[3][0];
|
|
27765
|
+
qt <= Qt ? qt = Qt / ne : Qt = qt * ne, vs.indexOf("w") > -1 ? $t -= Qt : vs.indexOf("e") > -1 ? Dt -= Qt : ($t += Qt / 2, Dt -= Qt / 2), vs.indexOf("n") > -1 ? Ua -= qt : vs.indexOf("s") > -1 ? dt -= qt : (Ua += qt / 2, dt -= qt / 2);
|
|
27762
27766
|
var zc = getRectPoses(Ua, Dt, dt, $t);
|
|
27763
27767
|
gt.forEach(function(Ft, Gt) {
|
|
27764
27768
|
var Ut;
|
|
@@ -27769,8 +27773,8 @@ var Clippable = {
|
|
|
27769
27773
|
var Rt = yt[xt];
|
|
27770
27774
|
Rt[0] && (pt[0] -= Qt), Rt[1] && (pt[1] -= qt);
|
|
27771
27775
|
});
|
|
27772
|
-
var ja = getClipStyles(o, V, St),
|
|
27773
|
-
if (et.clipPathState =
|
|
27776
|
+
var ja = getClipStyles(o, V, St), gs = "".concat(st, "(").concat(ja.join(ut), ")");
|
|
27777
|
+
if (et.clipPathState = gs, bt || Nt)
|
|
27774
27778
|
Lt = [gt[4][0], gt[2][0]], Et = [gt[1][1], gt[3][1]];
|
|
27775
27779
|
else if (vt) {
|
|
27776
27780
|
var Ht = [gt[0], gt[2], gt[4], gt[6]];
|
|
@@ -27798,11 +27802,11 @@ var Clippable = {
|
|
|
27798
27802
|
clipEventType: "changed",
|
|
27799
27803
|
clipType: st,
|
|
27800
27804
|
poses: St,
|
|
27801
|
-
clipStyle:
|
|
27805
|
+
clipStyle: gs,
|
|
27802
27806
|
clipStyles: ja,
|
|
27803
27807
|
distX: W,
|
|
27804
27808
|
distY: K
|
|
27805
|
-
}, fillCSSObject((r = {}, r[st === "rect" ? "clip" : "clipPath"] =
|
|
27809
|
+
}, fillCSSObject((r = {}, r[st === "rect" ? "clip" : "clipPath"] = gs, r), t)))), !0;
|
|
27806
27810
|
},
|
|
27807
27811
|
dragControlEnd: function(o, t) {
|
|
27808
27812
|
this.unset(o);
|
|
@@ -29886,7 +29890,7 @@ var InnerMoveable = /* @__PURE__ */ function(o) {
|
|
|
29886
29890
|
return o !== null && o.apply(this, arguments) || this;
|
|
29887
29891
|
}
|
|
29888
29892
|
return t;
|
|
29889
|
-
}(MoveableManager), Ur,
|
|
29893
|
+
}(MoveableManager), Ur, js, zs, Hs, Vs, Mo, _n, yn, Ro, nf;
|
|
29890
29894
|
const zt = class {
|
|
29891
29895
|
constructor(t, e = !1) {
|
|
29892
29896
|
// divでmovを更新
|
|
@@ -29927,7 +29931,7 @@ const zt = class {
|
|
|
29927
29931
|
this.bg_col = t, this.isLay = e;
|
|
29928
29932
|
}
|
|
29929
29933
|
static init(t, e, r, D, N, k, $) {
|
|
29930
|
-
zt.sys = e, ot(zt,
|
|
29934
|
+
zt.sys = e, ot(zt, js, r), zt.prpPrs = D, ot(zt, zs, N), ot(zt, Hs, k), zt.hPages = $, Main.cvs.insertAdjacentHTML("beforebegin", `<div id="${H(zt, Vs)}" style="width: ${CmnLib.stageW * e.cvsScale}px; height: ${CmnLib.stageH * e.cvsScale}px; background: rgba(0,0,0,0); position: absolute; touch-action: none; user-select: none; display: none;"></div>`), ot(zt, Ur, document.getElementById(H(zt, Vs))), zt.divHint.classList.add("sn_design_hint"), t.view.parentElement.appendChild(zt.divHint), addStyle(`
|
|
29931
29935
|
.sn_design_cast {
|
|
29932
29936
|
position: absolute; touch-action: none; user-select: none;
|
|
29933
29937
|
opacity: 0.6; border-radius: 8px;
|
|
@@ -29975,7 +29979,7 @@ const zt = class {
|
|
|
29975
29979
|
return;
|
|
29976
29980
|
this.id_tag || (this.id_tag = t[":id_tag"] ?? ""), this.hArg = t;
|
|
29977
29981
|
const e = t[":id_dc"] ?? this.id_tag;
|
|
29978
|
-
H(zt,
|
|
29982
|
+
H(zt, _n)[e] = this;
|
|
29979
29983
|
}
|
|
29980
29984
|
includeDesignArg(t) {
|
|
29981
29985
|
return Object.keys(t).some((e) => e in this.hDesignArg);
|
|
@@ -29999,16 +30003,16 @@ const zt = class {
|
|
|
29999
30003
|
this.child = t, t.parent = this;
|
|
30000
30004
|
}
|
|
30001
30005
|
static enterMode() {
|
|
30002
|
-
zt.leaveMode(), H(zt, Ur).style.display = "inline", ot(zt, Mo, 0), ot(zt,
|
|
30006
|
+
zt.leaveMode(), H(zt, Ur).style.display = "inline", ot(zt, Mo, 0), ot(zt, _n, {});
|
|
30003
30007
|
}
|
|
30004
30008
|
static allHide() {
|
|
30005
|
-
H(zt,
|
|
30009
|
+
H(zt, yn).forEach((t) => t.visible = !1);
|
|
30006
30010
|
}
|
|
30007
30011
|
set visible(t) {
|
|
30008
30012
|
!this.div || !this.mov || (this.div.style.display = t ? "inline" : "none", this.mov.updateTarget());
|
|
30009
30013
|
}
|
|
30010
30014
|
static leaveMode() {
|
|
30011
|
-
H(zt, Ur).textContent = "", H(zt, Ur).style.display = "none", H(zt,
|
|
30015
|
+
H(zt, Ur).textContent = "", H(zt, Ur).style.display = "none", H(zt, yn).forEach((t) => t.destroy()), ot(zt, yn, []);
|
|
30012
30016
|
}
|
|
30013
30017
|
cvsResize() {
|
|
30014
30018
|
var t;
|
|
@@ -30018,9 +30022,9 @@ const zt = class {
|
|
|
30018
30022
|
}
|
|
30019
30023
|
make() {
|
|
30020
30024
|
const t = this.hArg[":id_dc"] ?? this.id_tag;
|
|
30021
|
-
H(zt,
|
|
30025
|
+
H(zt, _n)[t] = this;
|
|
30022
30026
|
const e = this.div = document.createElement("div");
|
|
30023
|
-
e.id = H(zt,
|
|
30027
|
+
e.id = H(zt, Vs) + "_" + ++Ie(zt, Mo)._, 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(), lt(this, Ro, nf).call(this), (this.parent ? document.querySelector(
|
|
30024
30028
|
`[data-id_dc="${this.parent.id_tag}"]`
|
|
30025
30029
|
// 親なので
|
|
30026
30030
|
) ?? H(zt, Ur) : H(zt, Ur)).appendChild(e);
|
|
@@ -30096,7 +30100,7 @@ const zt = class {
|
|
|
30096
30100
|
}).on("render", () => {
|
|
30097
30101
|
const { aPos: G, roDeg: U, trOrg: z } = r;
|
|
30098
30102
|
e.style.transformOrigin = z, e.style.transform = `translate(${G[0]}px, ${G[1]}px) rotate(${U}deg)`;
|
|
30099
|
-
}), H(zt,
|
|
30103
|
+
}), H(zt, yn).push(this), e.addEventListener("dragenter", () => e.classList.add("drag_border")), e.addEventListener("dragover", (G) => {
|
|
30100
30104
|
G.stopPropagation(), G.preventDefault(), G.dataTransfer && (G.dataTransfer.dropEffect = "copy");
|
|
30101
30105
|
}), e.addEventListener("dragleave", () => e.classList.remove("drag_border")), e.addEventListener("drop", (G) => {
|
|
30102
30106
|
G.stopPropagation(), G.preventDefault(), e.classList.remove("drag_border");
|
|
@@ -30110,13 +30114,13 @@ const zt = class {
|
|
|
30110
30114
|
url: "",
|
|
30111
30115
|
buf: new ArrayBuffer(0),
|
|
30112
30116
|
old_fn: this.oldFn(),
|
|
30113
|
-
old_url: H(zt,
|
|
30117
|
+
old_url: H(zt, Hs).searchPath(this.oldFn(), SEARCH_PATH_ARG_EXT.SP_GSM)
|
|
30114
30118
|
};
|
|
30115
30119
|
z.arrayBuffer().then((V) => {
|
|
30116
30120
|
X.buf = V;
|
|
30117
30121
|
try {
|
|
30118
|
-
X.url = H(zt,
|
|
30119
|
-
H(zt,
|
|
30122
|
+
X.url = H(zt, js).cnvPath4Dbg(
|
|
30123
|
+
H(zt, Hs).searchPath(z.name, SEARCH_PATH_ARG_EXT.SP_GSM)
|
|
30120
30124
|
);
|
|
30121
30125
|
} catch {
|
|
30122
30126
|
}
|
|
@@ -30145,14 +30149,14 @@ const zt = class {
|
|
|
30145
30149
|
}
|
|
30146
30150
|
static replaceToken(t) {
|
|
30147
30151
|
var z, X, V, Y, q, W, K, Z;
|
|
30148
|
-
const r = t[":id_tag"], D = H(zt,
|
|
30152
|
+
const r = t[":id_tag"], D = H(zt, _n)[r];
|
|
30149
30153
|
if (!document.querySelector(`div[data-id_dc='${r}']`) || !D)
|
|
30150
30154
|
return;
|
|
30151
30155
|
const k = t[":token"];
|
|
30152
|
-
H(zt,
|
|
30156
|
+
H(zt, js).replace(t[":idx_tkn"], k);
|
|
30153
30157
|
const [$, G] = tagToken2Name_Args(k);
|
|
30154
|
-
D.child && (D.child.hArg[":token"] = D.hArg[":token"]), H(zt,
|
|
30155
|
-
const U = H(zt,
|
|
30158
|
+
D.child && (D.child.hArg[":token"] = D.hArg[":token"]), H(zt, zs).parse(G);
|
|
30159
|
+
const U = H(zt, zs).hPrm;
|
|
30156
30160
|
if ("pivot_x" in U || "pivot_y" in U) {
|
|
30157
30161
|
const J = Number(zt.prpPrs.getValAmpersand(U.pivot_x.val)), Q = Number(zt.prpPrs.getValAmpersand(U.pivot_y.val));
|
|
30158
30162
|
(isNaN(J) || isNaN(Q)) && DebugMng.myTrace(`pivot_xかpivot_yが数値ではありません
|
|
@@ -30187,7 +30191,7 @@ ${k}`, "F"), D.rotation = J;
|
|
|
30187
30191
|
}
|
|
30188
30192
|
};
|
|
30189
30193
|
let DesignCast = zt;
|
|
30190
|
-
Ur = new WeakMap(),
|
|
30194
|
+
Ur = new WeakMap(), js = new WeakMap(), zs = new WeakMap(), Hs = new WeakMap(), Vs = new WeakMap(), Mo = new WeakMap(), _n = new WeakMap(), yn = new WeakMap(), Ro = new WeakSet(), nf = function() {
|
|
30191
30195
|
this.fncLay(), this.div && Object.assign(this.div.style, {
|
|
30192
30196
|
left: `${this.lx + this.rect.x * zt.sys.cvsScale}px`,
|
|
30193
30197
|
top: `${this.ly + this.rect.y * zt.sys.cvsScale}px`,
|
|
@@ -30196,7 +30200,7 @@ Ur = new WeakMap(), Us = new WeakMap(), js = new WeakMap(), zs = new WeakMap(),
|
|
|
30196
30200
|
transformOrigin: `${this.pivot.x * zt.sys.cvsScale}px ${this.pivot.y * zt.sys.cvsScale}px`,
|
|
30197
30201
|
transform: `scale(${this.scale.x}, ${this.scale.y}) rotate(${this.rotation}deg)`
|
|
30198
30202
|
});
|
|
30199
|
-
}, rt(DesignCast, Ur, void 0), Ot(DesignCast, "sys"), rt(DesignCast,
|
|
30203
|
+
}, rt(DesignCast, Ur, void 0), Ot(DesignCast, "sys"), rt(DesignCast, js, void 0), Ot(DesignCast, "prpPrs"), rt(DesignCast, zs, void 0), rt(DesignCast, Hs, void 0), Ot(DesignCast, "hPages"), Ot(DesignCast, "divHint", document.createElement("div")), rt(DesignCast, Vs, "DesignMode"), rt(DesignCast, Mo, 0), rt(DesignCast, _n, {}), rt(DesignCast, yn, []);
|
|
30200
30204
|
var Bi;
|
|
30201
30205
|
class GrpLayDesignCast extends DesignCast {
|
|
30202
30206
|
constructor(e, r) {
|
|
@@ -30429,7 +30433,7 @@ class PicBtnDesignCast extends BtnDesignCast {
|
|
|
30429
30433
|
}
|
|
30430
30434
|
}
|
|
30431
30435
|
si = new WeakMap();
|
|
30432
|
-
var nh, Fi, ai,
|
|
30436
|
+
var nh, Fi, ai, bn, xn, jr, Xs, Sn, Io, Ys, zr, oi, li, $i, Do, Ao, No, sh, fd, ah, dd, Lo, af, oh, pd, Ws, fu, qs, Pr, Ks, lh, En, ko;
|
|
30433
30437
|
const Yt = class extends Layer {
|
|
30434
30438
|
constructor() {
|
|
30435
30439
|
super();
|
|
@@ -30442,9 +30446,9 @@ const Yt = class extends Layer {
|
|
|
30442
30446
|
}));
|
|
30443
30447
|
rt(this, Do, 0);
|
|
30444
30448
|
rt(this, Ao, 0);
|
|
30445
|
-
rt(this,
|
|
30449
|
+
rt(this, qs, void 0);
|
|
30446
30450
|
rt(this, Pr, void 0);
|
|
30447
|
-
rt(this,
|
|
30451
|
+
rt(this, Ks, () => {
|
|
30448
30452
|
});
|
|
30449
30453
|
Ot(this, "record", () => ({
|
|
30450
30454
|
...super.record(),
|
|
@@ -30459,15 +30463,15 @@ const Yt = class extends Layer {
|
|
|
30459
30463
|
});
|
|
30460
30464
|
}
|
|
30461
30465
|
static init(e, r, D, N, k, $) {
|
|
30462
|
-
ot(Yt, ai, e), ot(Yt,
|
|
30466
|
+
ot(Yt, ai, e), ot(Yt, bn, r), ot(Yt, xn, D), ot(Yt, jr, N), ot(Yt, Xs, $);
|
|
30463
30467
|
const G = () => {
|
|
30464
|
-
const U = H(Yt,
|
|
30468
|
+
const U = H(Yt, Sn) * H(Yt, Io);
|
|
30465
30469
|
for (const z of Object.values(Yt.hFn2VElm))
|
|
30466
30470
|
z.volume = U;
|
|
30467
30471
|
};
|
|
30468
30472
|
k.setNoticeChgVolume(
|
|
30469
30473
|
(U) => {
|
|
30470
|
-
ot(Yt,
|
|
30474
|
+
ot(Yt, Sn, U), G();
|
|
30471
30475
|
},
|
|
30472
30476
|
(U) => {
|
|
30473
30477
|
ot(Yt, Io, U), G();
|
|
@@ -30475,7 +30479,7 @@ const Yt = class extends Layer {
|
|
|
30475
30479
|
), H(Yt, jr).crypto && ot(Yt, No, lt(Yt, ah, dd));
|
|
30476
30480
|
}
|
|
30477
30481
|
static setEvtMng(e) {
|
|
30478
|
-
ot(Yt,
|
|
30482
|
+
ot(Yt, Ys, e);
|
|
30479
30483
|
}
|
|
30480
30484
|
static destroy() {
|
|
30481
30485
|
H(Yt, nh).clear(), ot(Yt, Fi, {}), Yt.hFn2ResAniSpr = {}, Yt.hFn2VElm = {};
|
|
@@ -30484,7 +30488,7 @@ const Yt = class extends Layer {
|
|
|
30484
30488
|
}
|
|
30485
30489
|
laySub(e, r) {
|
|
30486
30490
|
var G;
|
|
30487
|
-
lt(G = Yt,
|
|
30491
|
+
lt(G = Yt, Ws, fu).call(G, H(this, li));
|
|
30488
30492
|
const { fn: D, face: N = "" } = e;
|
|
30489
30493
|
if (H(this, zr).sethArg(e), !D)
|
|
30490
30494
|
return super.lay(e), this.spLay.children.length > 0 && this.setPos(e), ot(this, li, ""), ot(this, oi, ot(this, $i, N)), r(!1), !1;
|
|
@@ -30532,7 +30536,7 @@ const Yt = class extends Layer {
|
|
|
30532
30536
|
if ($.push({ fn: W, fnc: K }), W in Yt.hFn2ResAniSpr || W in TextureCache || W in Loader.shared.resources)
|
|
30533
30537
|
return;
|
|
30534
30538
|
k = !0;
|
|
30535
|
-
const Z = H(Yt,
|
|
30539
|
+
const Z = H(Yt, bn).searchPath(W, SEARCH_PATH_ARG_EXT.SP_GSM), J = H(this, jr).crypto ? { xhrType: Z.slice(-5) === ".json" ? LoaderResource.XHR_RESPONSE_TYPE.TEXT : LoaderResource.XHR_RESPONSE_TYPE.BUFFER } : {};
|
|
30536
30540
|
G.add({ ...J, name: W, url: Z });
|
|
30537
30541
|
});
|
|
30538
30542
|
const U = (z) => {
|
|
@@ -30558,13 +30562,13 @@ const Yt = class extends Layer {
|
|
|
30558
30562
|
const D = Yt.hFn2VElm[r];
|
|
30559
30563
|
if (!D || D.loop)
|
|
30560
30564
|
return !1;
|
|
30561
|
-
if (H(this,
|
|
30562
|
-
return lt(k = Yt,
|
|
30565
|
+
if (H(this, Xs).getVal("tmp:sn.skip.enabled") || H(this, Ys).isSkippingByKeyDown() || D.ended)
|
|
30566
|
+
return lt(k = Yt, Ws, fu).call(k, r), !1;
|
|
30563
30567
|
const N = () => {
|
|
30564
30568
|
var $;
|
|
30565
|
-
lt($ = Yt,
|
|
30569
|
+
lt($ = Yt, Ws, fu).call($, r), H(this, ai).resume();
|
|
30566
30570
|
};
|
|
30567
|
-
return D.addEventListener("ended", N, { once: !0, passive: !0 }), H(Yt,
|
|
30571
|
+
return D.addEventListener("ended", N, { once: !0, passive: !0 }), H(Yt, Ys).waitEvent(
|
|
30568
30572
|
() => {
|
|
30569
30573
|
D.removeEventListener("ended", N), N();
|
|
30570
30574
|
},
|
|
@@ -30573,16 +30577,16 @@ const Yt = class extends Layer {
|
|
|
30573
30577
|
);
|
|
30574
30578
|
}
|
|
30575
30579
|
renderStart() {
|
|
30576
|
-
ot(this,
|
|
30580
|
+
ot(this, qs, RenderTexture.create({
|
|
30577
30581
|
width: CmnLib.stageW,
|
|
30578
30582
|
height: CmnLib.stageH
|
|
30579
|
-
})), ot(this, Pr, new Sprite(H(this,
|
|
30583
|
+
})), ot(this, Pr, new Sprite(H(this, qs))), H(this, Pr).visible = !1, this.spLay.addChildAt(H(this, Pr), 0), H(this, Pr).position.set(-this.spLay.x, -this.spLay.y);
|
|
30580
30584
|
let e = () => {
|
|
30581
30585
|
const r = this.spLay.alpha;
|
|
30582
30586
|
this.spLay.alpha = 1;
|
|
30583
30587
|
for (const D of this.spLay.children)
|
|
30584
30588
|
D.visible = !0;
|
|
30585
|
-
H(this, Pr).visible = !1, H(Yt,
|
|
30589
|
+
H(this, Pr).visible = !1, H(Yt, xn).renderer.render(this.spLay, { renderTexture: H(this, qs) }), this.spLay.alpha = r;
|
|
30586
30590
|
for (const D of this.spLay.children)
|
|
30587
30591
|
D.visible = !1;
|
|
30588
30592
|
};
|
|
@@ -30593,12 +30597,12 @@ const Yt = class extends Layer {
|
|
|
30593
30597
|
}, r();
|
|
30594
30598
|
};
|
|
30595
30599
|
}
|
|
30596
|
-
ot(this,
|
|
30600
|
+
ot(this, Ks, () => {
|
|
30597
30601
|
e(), H(this, Pr).visible = !0;
|
|
30598
|
-
}), H(Yt,
|
|
30602
|
+
}), H(Yt, xn).ticker.add(H(this, Ks));
|
|
30599
30603
|
}
|
|
30600
30604
|
renderEnd() {
|
|
30601
|
-
H(Yt,
|
|
30605
|
+
H(Yt, xn).ticker.remove(H(this, Ks)), this.spLay.removeChild(H(this, Pr));
|
|
30602
30606
|
for (const e of this.spLay.children)
|
|
30603
30607
|
e.visible = !0;
|
|
30604
30608
|
H(this, Pr).destroy(!0);
|
|
@@ -30610,13 +30614,13 @@ const Yt = class extends Layer {
|
|
|
30610
30614
|
r.src = $;
|
|
30611
30615
|
return;
|
|
30612
30616
|
}
|
|
30613
|
-
const G = H(this,
|
|
30617
|
+
const G = H(this, En)[e];
|
|
30614
30618
|
if (G) {
|
|
30615
30619
|
G.push(r);
|
|
30616
30620
|
return;
|
|
30617
30621
|
}
|
|
30618
|
-
H(this,
|
|
30619
|
-
const U = H(Yt,
|
|
30622
|
+
H(this, En)[e] = [r];
|
|
30623
|
+
const U = H(Yt, bn).searchPath(N, SEARCH_PATH_ARG_EXT.SP_GSM), z = new Loader().add({ name: e, url: U, xhrType: LoaderResource.XHR_RESPONSE_TYPE.BUFFER });
|
|
30620
30624
|
H(Yt, jr).crypto && getExt(U) === "bin" && z.use((X, V) => {
|
|
30621
30625
|
H(Yt, jr).dec(X.extension, X.data).then((Y) => {
|
|
30622
30626
|
if (X.extension !== "bin") {
|
|
@@ -30628,9 +30632,9 @@ const Yt = class extends Layer {
|
|
|
30628
30632
|
}), z.load((X, V) => {
|
|
30629
30633
|
for (const [Y, { data: { src: q } }] of Object.entries(V)) {
|
|
30630
30634
|
const W = H(this, ko)[Y] = q + (q.slice(0, 5) === "blob:" ? "" : k);
|
|
30631
|
-
for (const K of H(this,
|
|
30635
|
+
for (const K of H(this, En)[Y])
|
|
30632
30636
|
K.src = W, D && (K.onload = () => D(K));
|
|
30633
|
-
delete H(this,
|
|
30637
|
+
delete H(this, En)[Y];
|
|
30634
30638
|
}
|
|
30635
30639
|
});
|
|
30636
30640
|
}
|
|
@@ -30699,7 +30703,7 @@ const Yt = class extends Layer {
|
|
|
30699
30703
|
}
|
|
30700
30704
|
};
|
|
30701
30705
|
let GrpLayer = Yt;
|
|
30702
|
-
nh = new WeakMap(), Fi = new WeakMap(), ai = new WeakMap(),
|
|
30706
|
+
nh = new WeakMap(), Fi = new WeakMap(), ai = new WeakMap(), bn = new WeakMap(), xn = new WeakMap(), jr = new WeakMap(), Xs = new WeakMap(), Sn = new WeakMap(), Io = new WeakMap(), Ys = new WeakMap(), zr = new WeakMap(), oi = new WeakMap(), li = new WeakMap(), $i = new WeakMap(), Do = new WeakMap(), Ao = new WeakMap(), No = new WeakMap(), sh = new WeakSet(), fd = function(e) {
|
|
30703
30707
|
const r = /([^\d]+)\d+\.(\w+)/.exec(e[0]);
|
|
30704
30708
|
if (!r)
|
|
30705
30709
|
return [];
|
|
@@ -30709,7 +30713,7 @@ nh = new WeakMap(), Fi = new WeakMap(), ai = new WeakMap(), yn = new WeakMap(),
|
|
|
30709
30713
|
);
|
|
30710
30714
|
}, ah = new WeakSet(), dd = function(e, r, D) {
|
|
30711
30715
|
var U;
|
|
30712
|
-
if (r.data = e, r.extension === "bin" && (e instanceof HTMLImageElement ? (r.texture = Texture.fromLoader(e, r.url, r.name), r.type = LoaderResource.TYPE.IMAGE) : e instanceof HTMLVideoElement && (e.volume = H(Yt,
|
|
30716
|
+
if (r.data = e, r.extension === "bin" && (e instanceof HTMLImageElement ? (r.texture = Texture.fromLoader(e, r.url, r.name), r.type = LoaderResource.TYPE.IMAGE) : e instanceof HTMLVideoElement && (e.volume = H(Yt, Sn), Yt.hFn2VElm[r.name] = lt(U = Yt, Lo, af).call(U, e), r.type = LoaderResource.TYPE.VIDEO)), r.extension !== "json") {
|
|
30713
30717
|
D();
|
|
30714
30718
|
return;
|
|
30715
30719
|
}
|
|
@@ -30722,7 +30726,7 @@ nh = new WeakMap(), Fi = new WeakMap(), ai = new WeakMap(), yn = new WeakMap(),
|
|
|
30722
30726
|
D();
|
|
30723
30727
|
return;
|
|
30724
30728
|
}
|
|
30725
|
-
const $ = getFn(N.image), G = H(Yt,
|
|
30729
|
+
const $ = getFn(N.image), G = H(Yt, bn).searchPath($, SEARCH_PATH_ARG_EXT.SP_GSM);
|
|
30726
30730
|
new Loader().use((z, X) => {
|
|
30727
30731
|
H(this, jr).dec(z.extension, z.data).then((V) => {
|
|
30728
30732
|
z.data = V, V instanceof HTMLImageElement && (z.type = LoaderResource.TYPE.IMAGE, URL.revokeObjectURL(V.src)), X == null || X();
|
|
@@ -30741,7 +30745,7 @@ nh = new WeakMap(), Fi = new WeakMap(), ai = new WeakMap(), yn = new WeakMap(),
|
|
|
30741
30745
|
D();
|
|
30742
30746
|
});
|
|
30743
30747
|
}, Lo = new WeakSet(), af = function(e) {
|
|
30744
|
-
return H(Yt,
|
|
30748
|
+
return H(Yt, Xs).getVal("const.sn.needClick2Play") && (DebugMng.trace_beforeNew(`[lay系] ${DebugMng.strPos()}未クリック状態で動画を自動再生します。音声はミュートされます`, "W"), e.muted = !0), e.setAttribute("playsinline", ""), e;
|
|
30745
30749
|
}, oh = new WeakSet(), pd = function(e, r) {
|
|
30746
30750
|
const D = Yt.hFn2ResAniSpr[e];
|
|
30747
30751
|
if (D) {
|
|
@@ -30749,10 +30753,10 @@ nh = new WeakMap(), Fi = new WeakMap(), ai = new WeakMap(), yn = new WeakMap(),
|
|
|
30749
30753
|
return N.animationSpeed = D.meta.animationSpeed ?? 1, N.play(), N;
|
|
30750
30754
|
}
|
|
30751
30755
|
return e in TextureCache ? Sprite.from(e) : e in Yt.hFn2VElm ? Sprite.from(Yt.hFn2VElm[e]) : e in r ? new Sprite(r[e].texture) : new Sprite();
|
|
30752
|
-
},
|
|
30756
|
+
}, Ws = new WeakSet(), fu = function(e) {
|
|
30753
30757
|
const r = Yt.hFn2VElm[e];
|
|
30754
30758
|
r && (delete Yt.hFn2VElm[e], r.pause(), r.currentTime = r.duration);
|
|
30755
|
-
},
|
|
30759
|
+
}, qs = new WeakMap(), Pr = new WeakMap(), Ks = new WeakMap(), lh = new WeakMap(), En = new WeakMap(), ko = new WeakMap(), rt(GrpLayer, sh), rt(GrpLayer, ah), rt(GrpLayer, Lo), rt(GrpLayer, oh), rt(GrpLayer, Ws), rt(GrpLayer, nh, new EventListenerCtn()), rt(GrpLayer, Fi, {}), rt(GrpLayer, ai, void 0), rt(GrpLayer, bn, void 0), rt(GrpLayer, xn, void 0), rt(GrpLayer, jr, void 0), rt(GrpLayer, Xs, void 0), rt(GrpLayer, Sn, 1), rt(GrpLayer, Io, 1), rt(GrpLayer, Ys, void 0), Ot(GrpLayer, "hFn2ResAniSpr", {}), rt(GrpLayer, No, (e, r, D) => {
|
|
30756
30760
|
var N, k;
|
|
30757
30761
|
switch (r.type) {
|
|
30758
30762
|
case LoaderResource.TYPE.JSON:
|
|
@@ -30764,15 +30768,15 @@ nh = new WeakMap(), Fi = new WeakMap(), ai = new WeakMap(), yn = new WeakMap(),
|
|
|
30764
30768
|
break;
|
|
30765
30769
|
case LoaderResource.TYPE.VIDEO:
|
|
30766
30770
|
const G = r.data;
|
|
30767
|
-
G.volume = H(Yt,
|
|
30771
|
+
G.volume = H(Yt, Sn), Yt.hFn2VElm[r.name] = lt(k = Yt, Lo, af).call(k, G);
|
|
30768
30772
|
}
|
|
30769
30773
|
D();
|
|
30770
|
-
}), Ot(GrpLayer, "hFn2VElm", {}), rt(GrpLayer, lh, /\?([^?]+)$/), rt(GrpLayer,
|
|
30771
|
-
var
|
|
30774
|
+
}), Ot(GrpLayer, "hFn2VElm", {}), rt(GrpLayer, lh, /\?([^?]+)$/), rt(GrpLayer, En, {}), rt(GrpLayer, ko, {});
|
|
30775
|
+
var Zs, Bo, Tn, se, Hr, ui, uh, lr, Gi, Wt, gr, We, qe, Js, du, Mr, hi, Fo, Qs, hh, vd, wn, ta, Ui, Cn, Pn, Mn, ea, $o, ji, Go, of, ci, Uo, fi, Vr, ra, jo, lf, zi, Rn, zo, uf, Qe;
|
|
30772
30776
|
const te = class extends Container {
|
|
30773
30777
|
constructor(e, r, D) {
|
|
30774
30778
|
super();
|
|
30775
|
-
rt(this,
|
|
30779
|
+
rt(this, Js);
|
|
30776
30780
|
rt(this, hh);
|
|
30777
30781
|
rt(this, Go);
|
|
30778
30782
|
// 「g」などで下が欠ける問題対策
|
|
@@ -30800,29 +30804,29 @@ const te = class extends Container {
|
|
|
30800
30804
|
// paddingBottom
|
|
30801
30805
|
});
|
|
30802
30806
|
rt(this, gr, !1);
|
|
30803
|
-
rt(this, Ye, 0);
|
|
30804
30807
|
rt(this, We, 0);
|
|
30808
|
+
rt(this, qe, 0);
|
|
30805
30809
|
rt(this, Mr, 0);
|
|
30806
30810
|
rt(this, hi, !1);
|
|
30807
30811
|
rt(this, Fo, 0);
|
|
30808
|
-
rt(this,
|
|
30809
|
-
rt(this,
|
|
30812
|
+
rt(this, Qs, 0);
|
|
30813
|
+
rt(this, wn, void 0);
|
|
30810
30814
|
// 文字にかけるフィルター
|
|
30811
|
-
rt(this,
|
|
30815
|
+
rt(this, ta, []);
|
|
30812
30816
|
rt(this, Ui, []);
|
|
30813
|
-
rt(this,
|
|
30817
|
+
rt(this, Cn, 0);
|
|
30814
30818
|
rt(this, ji, () => !1);
|
|
30815
|
-
rt(this,
|
|
30819
|
+
rt(this, ra, 0);
|
|
30816
30820
|
rt(this, zi, "Quadratic.Out");
|
|
30817
|
-
rt(this,
|
|
30818
|
-
rt(this,
|
|
30821
|
+
rt(this, Rn, "Quadratic.Out");
|
|
30822
|
+
rt(this, Qe, void 0);
|
|
30819
30823
|
this.spLay = e, this.canFocus = r, this.sys = D, H(this, se).classList.add("sn_tx"), H(this, se).style.position = "absolute", H(te, Bo).view.parentElement.appendChild(H(this, se)), this.addChild(H(this, Hr)), this.addChild(H(this, ui)), H(this, ui).name = "grpDbgMasume", H(this, lr).adopt(H(this, Gi));
|
|
30820
30824
|
}
|
|
30821
30825
|
static init(e, r) {
|
|
30822
|
-
ot(te,
|
|
30826
|
+
ot(te, Zs, e), ot(te, Bo, r), ot(te, Pn, /[、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々]/), ot(te, Mn, /[[({〈「『【〔“〝]/), ot(te, ea, /[─‥…]/);
|
|
30823
30827
|
}
|
|
30824
30828
|
static setEvtMng(e) {
|
|
30825
|
-
ot(te,
|
|
30829
|
+
ot(te, Tn, e);
|
|
30826
30830
|
}
|
|
30827
30831
|
static destroy() {
|
|
30828
30832
|
ot(te, ci, /* @__PURE__ */ Object.create(null)), ot(te, fi, /* @__PURE__ */ Object.create(null)), ot(te, Vr, new Container());
|
|
@@ -30847,7 +30851,7 @@ const te = class extends Container {
|
|
|
30847
30851
|
H(this, se).style.cssText = "";
|
|
30848
30852
|
else
|
|
30849
30853
|
"alpha" in e && (r.opacity = String(this.spLay.alpha));
|
|
30850
|
-
if ("width" in e && (r.width = (e.width ?? "0") + "px"), "height" in e && (r.height = (e.height ?? "0") + "px"), "pl" in e && (r.paddingLeft = (e.pl ?? "0") + "px"), "pr" in e && (r.paddingRight = (e.pr ?? "0") + "px"), "pt" in e && (r.paddingTop = (e.pt ?? "0") + "px"), "pb" in e && (r.paddingBottom = (e.pb ?? "0") + "px"), "kinsoku_sol" in e && ot(te,
|
|
30854
|
+
if ("width" in e && (r.width = (e.width ?? "0") + "px"), "height" in e && (r.height = (e.height ?? "0") + "px"), "pl" in e && (r.paddingLeft = (e.pl ?? "0") + "px"), "pr" in e && (r.paddingRight = (e.pr ?? "0") + "px"), "pt" in e && (r.paddingTop = (e.pt ?? "0") + "px"), "pb" in e && (r.paddingBottom = (e.pb ?? "0") + "px"), "kinsoku_sol" in e && ot(te, Pn, new RegExp(`[${e.kinsoku_sol}]`)), "kinsoku_eol" in e && ot(te, Mn, new RegExp(`[${e.kinsoku_eol}]`)), "kinsoku_dns" in e && ot(te, ea, new RegExp(`[${e.kinsoku_dns}]`)), lt(this, Js, du).call(this), H(this, lr).sethArg(e), ot(this, Mr, 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 = e.filter ?? r.textShadow ?? "", ot(this, gr, argChk_Boolean(e, "break_fixed", H(this, gr))), ot(this, We, argChk_Num(e, "break_fixed_left", H(this, We))), ot(this, qe, argChk_Num(e, "break_fixed_top", H(this, qe))), ":redraw" in e && H(this, Cn) > 0) {
|
|
30851
30855
|
const D = [
|
|
30852
30856
|
H(this, se).innerHTML.replaceAll(/(animation-delay: )\d+ms/g, "$10ms"),
|
|
30853
30857
|
`<span class='sn_ch' data-add='{"ch_in_style":"default"}'> </span>`
|
|
@@ -30879,22 +30883,22 @@ const te = class extends Container {
|
|
|
30879
30883
|
H(te, Vr).visible = !1;
|
|
30880
30884
|
let D = H(this, Ui).length, N = "";
|
|
30881
30885
|
if (D === 0) {
|
|
30882
|
-
if (H(te,
|
|
30886
|
+
if (H(te, Zs).oCfg.debug.masume && (CmnLib.debugLog && console.log(`🍌 masume ${this.name} v:${this.visible} l:${this.x} t:${this.y} a:${this.alpha} pl:${H(this, Wt).pad_left} pr:${H(this, Wt).pad_right} pt:${H(this, Wt).pad_top} pb:${H(this, Wt).pad_bottom} w:${H(this, Wt).$width} h:${H(this, Wt).$height}`), H(this, ui).clear().beginFill(3407616, 0.2).lineStyle(1, 3407616, 1).drawRect(-H(this, Wt).pad_left, -H(this, Wt).pad_top, H(this, Wt).$width, H(this, Wt).$height).endFill().beginFill(13311, 0.2).lineStyle(2, 13311, 1).drawRect(
|
|
30883
30887
|
0,
|
|
30884
30888
|
0,
|
|
30885
30889
|
H(this, Wt).$width - H(this, Wt).pad_left - H(this, Wt).pad_right,
|
|
30886
30890
|
H(this, Wt).$height - H(this, Wt).pad_top - H(this, Wt).pad_bottom
|
|
30887
30891
|
).endFill()), H(this, se).innerHTML = [...e].join("").replaceAll(/[\n\t]/g, "") + H(te, $o), !H(this, gr)) {
|
|
30888
30892
|
const tt = globalThis.getComputedStyle(H(this, se)), it = parseFloat(tt.fontSize);
|
|
30889
|
-
H(this, hi) ? (ot(this,
|
|
30893
|
+
H(this, hi) ? (ot(this, We, (H(this, Wt).$width - H(this, Wt).pad_left - H(this, Wt).pad_right - it * 1.5) * this.sys.cvsScale), ot(this, qe, 0)) : (ot(this, We, 0), ot(this, qe, it / 2 * this.sys.cvsScale));
|
|
30890
30894
|
}
|
|
30891
30895
|
} else
|
|
30892
30896
|
N = H(this, se).innerHTML, H(this, se).querySelectorAll(":scope > br").forEach((tt) => H(this, se).removeChild(tt)), H(this, se).insertAdjacentHTML(
|
|
30893
30897
|
"beforeend",
|
|
30894
|
-
e.slice(H(this,
|
|
30898
|
+
e.slice(H(this, Cn)).join("").replaceAll(/[\n\t]/g, "") + H(te, $o)
|
|
30895
30899
|
// 末尾改行削除挙動対策
|
|
30896
30900
|
), --D, (Q = H(this, se).querySelector(".sn_ch_last")) == null || Q.remove();
|
|
30897
|
-
ot(this,
|
|
30901
|
+
ot(this, Cn, e.length);
|
|
30898
30902
|
const k = this.sys.cvsScale, $ = H(this, se).getBoundingClientRect(), G = $.left + H(this, Wt).pad_left, U = $.top + H(this, Wt).pad_top;
|
|
30899
30903
|
let z;
|
|
30900
30904
|
if (k === 1)
|
|
@@ -30902,7 +30906,7 @@ const te = class extends Container {
|
|
|
30902
30906
|
tt.left - G,
|
|
30903
30907
|
tt.top - U,
|
|
30904
30908
|
tt.width,
|
|
30905
|
-
tt.height + ("gjqy".includes(it) ? H(this,
|
|
30909
|
+
tt.height + ("gjqy".includes(it) ? H(this, ra) : 0)
|
|
30906
30910
|
);
|
|
30907
30911
|
else {
|
|
30908
30912
|
const tt = this.sys.ofsPadLeft_Dom2PIXI + $.left * (1 - k), it = this.sys.ofsPadTop_Dom2PIXI + $.top * (1 - k);
|
|
@@ -30910,7 +30914,7 @@ const te = class extends Container {
|
|
|
30910
30914
|
(st.left - tt) / k - G,
|
|
30911
30915
|
(st.top - it) / k - U,
|
|
30912
30916
|
st.width / k,
|
|
30913
|
-
(st.height + ("gjqy".includes(at) ? H(this,
|
|
30917
|
+
(st.height + ("gjqy".includes(at) ? H(this, ra) : 0)) / k
|
|
30914
30918
|
);
|
|
30915
30919
|
}
|
|
30916
30920
|
let X = 0, V = 2, Y = !1;
|
|
@@ -30928,7 +30932,7 @@ const te = class extends Container {
|
|
|
30928
30932
|
continue;
|
|
30929
30933
|
const at = this.tategaki ? st.rect.y : st.rect.x;
|
|
30930
30934
|
if (it <= at || ((nt = (et = st.elm.previousElementSibling) == null ? void 0 : et.children[0]) == null ? void 0 : nt.tagName) === "BR") {
|
|
30931
|
-
it = at, H(this, gr) || (ot(this,
|
|
30935
|
+
it = at, H(this, gr) || (ot(this, We, st.rect.x), ot(this, qe, st.rect.y));
|
|
30932
30936
|
continue;
|
|
30933
30937
|
}
|
|
30934
30938
|
let ut = V - 1;
|
|
@@ -30936,25 +30940,25 @@ const te = class extends Container {
|
|
|
30936
30940
|
--ut;
|
|
30937
30941
|
const ft = tt[ut], ct = ft.ch;
|
|
30938
30942
|
if (!H(this, gr)) {
|
|
30939
|
-
ot(this,
|
|
30943
|
+
ot(this, We, ft.rect.x), ot(this, qe, ft.rect.y);
|
|
30940
30944
|
const _t = globalThis.getComputedStyle(ft.elm), Tt = parseFloat(_t.fontSize);
|
|
30941
|
-
H(this, hi) ? ot(this,
|
|
30945
|
+
H(this, hi) ? ot(this, qe, H(this, qe) + Tt) : ot(this, We, H(this, We) + Tt);
|
|
30942
30946
|
}
|
|
30943
30947
|
it = -1 / 0;
|
|
30944
30948
|
const vt = V;
|
|
30945
|
-
if (H(te,
|
|
30949
|
+
if (H(te, ea).test(ct) && ct === st.ch)
|
|
30946
30950
|
V = ut;
|
|
30947
30951
|
else {
|
|
30948
|
-
if (H(te,
|
|
30952
|
+
if (H(te, Mn).test(ct))
|
|
30949
30953
|
V = ut;
|
|
30950
|
-
else if (H(te,
|
|
30951
|
-
for (V = ut + 1; V > 0 && H(te,
|
|
30954
|
+
else if (H(te, Pn).test(st.ch))
|
|
30955
|
+
for (V = ut + 1; V > 0 && H(te, Pn).test(tt[--V].ch); )
|
|
30952
30956
|
;
|
|
30953
30957
|
else {
|
|
30954
30958
|
++V;
|
|
30955
30959
|
continue;
|
|
30956
30960
|
}
|
|
30957
|
-
for (V = ut + 1; V > 0 && H(te,
|
|
30961
|
+
for (V = ut + 1; V > 0 && H(te, Mn).test(tt[--V].ch); )
|
|
30958
30962
|
;
|
|
30959
30963
|
}
|
|
30960
30964
|
const yt = tt[V].elm.parentElement, mt = document.createElement("br");
|
|
@@ -30969,7 +30973,7 @@ const te = class extends Container {
|
|
|
30969
30973
|
}
|
|
30970
30974
|
} while (X < 0);
|
|
30971
30975
|
const q = CmnLib.debugLog ? (tt, it) => console.log(`🍌 masume ch:${tt.ch} x:${it.x} y:${it.y} w:${it.width} h:${it.height}`) : () => {
|
|
30972
|
-
}, W = H(te,
|
|
30976
|
+
}, W = H(te, Zs).oCfg.debug.masume ? (tt, it) => {
|
|
30973
30977
|
q(tt, it), H(this, ui).beginFill(6737151, 0.5).lineStyle(2, 16724736, 1).drawRect(it.x, it.y, it.width, it.height).endFill();
|
|
30974
30978
|
} : () => {
|
|
30975
30979
|
}, K = CmnTween.ease(H(this, zi));
|
|
@@ -30991,7 +30995,7 @@ const te = class extends Container {
|
|
|
30991
30995
|
const Nt = ct.style.cssText, At = (Mt, dt) => {
|
|
30992
30996
|
ct.style.cssText = Nt + Mt, bt.forEach(($t) => $t.style.cssText = $t.dataset.st_r_bk + dt);
|
|
30993
30997
|
};
|
|
30994
|
-
argChk_Boolean(vt, "enabled", !0) ? H(te,
|
|
30998
|
+
argChk_Boolean(vt, "enabled", !0) ? H(te, Tn).button(
|
|
30995
30999
|
vt,
|
|
30996
31000
|
yt,
|
|
30997
31001
|
() => At(mt, Pt),
|
|
@@ -31005,9 +31009,9 @@ const te = class extends Container {
|
|
|
31005
31009
|
}
|
|
31006
31010
|
const Z = H(this, se).querySelectorAll("span.sn_ch");
|
|
31007
31011
|
ot(this, ji, () => (ot(this, ji, () => !1), Z.forEach((tt) => tt.className = tt.className.replaceAll(/ go_ch_in_[^\s"]+/g, "")), H(te, Vr).position.set(
|
|
31008
|
-
H(this,
|
|
31009
|
-
H(this,
|
|
31010
|
-
), H(te, Vr).visible = !0, H(te,
|
|
31012
|
+
H(this, We),
|
|
31013
|
+
H(this, qe)
|
|
31014
|
+
), H(te, Vr).visible = !0, H(te, Tn).noticeCompTxt(), !0)), Z.forEach((tt) => tt.className = tt.className.replaceAll(/sn_ch_in_([^\s"]+)/g, "go_ch_in_$1")), D > 0 && ++D;
|
|
31011
31015
|
let J;
|
|
31012
31016
|
for (let tt = X - 2; tt >= 0; --tt) {
|
|
31013
31017
|
const it = H(this, Ui)[tt];
|
|
@@ -31024,9 +31028,9 @@ const te = class extends Container {
|
|
|
31024
31028
|
}
|
|
31025
31029
|
skipChIn() {
|
|
31026
31030
|
let e = H(this, ji).call(this);
|
|
31027
|
-
for (const r of H(this,
|
|
31031
|
+
for (const r of H(this, ta))
|
|
31028
31032
|
r.tw && (r.tw.stop().end(), e = !0);
|
|
31029
|
-
return ot(this,
|
|
31033
|
+
return ot(this, ta, []), e;
|
|
31030
31034
|
}
|
|
31031
31035
|
static initChStyle() {
|
|
31032
31036
|
ot(te, ci, /* @__PURE__ */ Object.create(null)), ot(te, fi, /* @__PURE__ */ Object.create(null));
|
|
@@ -31115,7 +31119,7 @@ const te = class extends Container {
|
|
|
31115
31119
|
var r;
|
|
31116
31120
|
lt(this, zo, uf).call(this);
|
|
31117
31121
|
const e = new te(this.spLay, () => this.canFocus(), this.sys);
|
|
31118
|
-
return ot(e, Wt, H(this, Wt)), H(e, se).style.cssText = H(this, se).style.cssText, ot(e, Mr, H(this, Mr)), e.name = this.name, lt(r = e,
|
|
31122
|
+
return ot(e, Wt, H(this, Wt)), H(e, se).style.cssText = H(this, se).style.cssText, ot(e, Mr, H(this, Mr)), e.name = this.name, lt(r = e, Js, du).call(r), H(e, lr).sethArg(H(this, lr).gethArg()), ot(e, wn, H(this, wn)), ot(e, zi, H(this, zi)), ot(e, Rn, H(this, Rn)), ot(e, gr, H(this, gr)), ot(e, We, H(this, We)), ot(e, qe, H(this, qe)), this.destroy(), e;
|
|
31119
31123
|
}
|
|
31120
31124
|
record() {
|
|
31121
31125
|
return {
|
|
@@ -31123,29 +31127,29 @@ const te = class extends Container {
|
|
|
31123
31127
|
cssText: H(this, se).style.cssText,
|
|
31124
31128
|
left: H(this, Mr),
|
|
31125
31129
|
idc_hArg: H(this, lr).gethArg(),
|
|
31126
|
-
ch_filter: H(this,
|
|
31130
|
+
ch_filter: H(this, wn),
|
|
31127
31131
|
fi_easing: H(this, zi),
|
|
31128
|
-
fo_easing: H(this,
|
|
31132
|
+
fo_easing: H(this, Rn),
|
|
31129
31133
|
break_fixed: H(this, gr),
|
|
31130
|
-
break_fixed_left: H(this,
|
|
31131
|
-
break_fixed_top: H(this,
|
|
31134
|
+
break_fixed_left: H(this, We),
|
|
31135
|
+
break_fixed_top: H(this, qe)
|
|
31132
31136
|
};
|
|
31133
31137
|
}
|
|
31134
31138
|
playback(e) {
|
|
31135
|
-
ot(this, Wt, e.infTL), this.position.set(H(this, Wt).pad_left, H(this, Wt).pad_top), H(this, se).style.cssText = e.cssText, ot(this, Mr, e.left), lt(this,
|
|
31139
|
+
ot(this, Wt, e.infTL), this.position.set(H(this, Wt).pad_left, H(this, Wt).pad_top), H(this, se).style.cssText = e.cssText, ot(this, Mr, e.left), lt(this, Js, du).call(this), H(this, lr).sethArg(e.idc_hArg), ot(this, wn, e.ch_filter), ot(this, zi, e.fi_easing), ot(this, Rn, e.fo_easing), ot(this, gr, e.break_fixed ?? !1), ot(this, We, e.break_fixed_left ?? 0), ot(this, qe, e.break_fixed_top ?? 0);
|
|
31136
31140
|
}
|
|
31137
31141
|
snapshot(e, r) {
|
|
31138
31142
|
lt(this, hh, vd).call(this, (D) => {
|
|
31139
|
-
ot(this,
|
|
31143
|
+
ot(this, Qe, new Sprite(D)), H(this, hi) && (H(this, Qe).x += CmnLib.stageW - (H(this, Mr) + H(this, Wt).$width)), H(this, Qe).y -= H(this, Qs), H(this, Qe).texture.frame = new Rectangle(
|
|
31140
31144
|
0,
|
|
31141
31145
|
0,
|
|
31142
|
-
Math.min(H(this,
|
|
31143
|
-
Math.min(H(this,
|
|
31144
|
-
), H(this, Hr).addChild(H(this,
|
|
31146
|
+
Math.min(H(this, Qe).width, H(this, Wt).$width - H(this, Mr)),
|
|
31147
|
+
Math.min(H(this, Qe).height, H(this, Wt).$height)
|
|
31148
|
+
), H(this, Hr).addChild(H(this, Qe)), e.render(H(this, Qe), { clear: !1 }), r();
|
|
31145
31149
|
}, !1);
|
|
31146
31150
|
}
|
|
31147
31151
|
snapshot_end() {
|
|
31148
|
-
H(this,
|
|
31152
|
+
H(this, Qe) && (H(this, Hr).removeChild(H(this, Qe)), ot(this, Qe, void 0));
|
|
31149
31153
|
}
|
|
31150
31154
|
makeDesignCast(e) {
|
|
31151
31155
|
e(H(this, lr));
|
|
@@ -31168,12 +31172,12 @@ const te = class extends Container {
|
|
|
31168
31172
|
}
|
|
31169
31173
|
};
|
|
31170
31174
|
let TxtStage = te;
|
|
31171
|
-
|
|
31175
|
+
Zs = new WeakMap(), Bo = new WeakMap(), Tn = new WeakMap(), se = new WeakMap(), Hr = new WeakMap(), ui = new WeakMap(), uh = new WeakMap(), lr = new WeakMap(), Gi = new WeakMap(), Wt = new WeakMap(), gr = new WeakMap(), We = new WeakMap(), qe = new WeakMap(), Js = new WeakSet(), du = function() {
|
|
31172
31176
|
const e = H(this, se).style, r = parseFloat(e.fontSize || "0");
|
|
31173
|
-
H(this, Wt).fontsize = r, H(this, Wt).pad_left = parseFloat(e.paddingLeft || "0"), H(this, Wt).pad_right = parseFloat(e.paddingRight || "0"), H(this, Wt).pad_top = parseFloat(e.paddingTop || "0"), H(this, Wt).pad_bottom = parseFloat(e.paddingBottom || "0"), H(this, Wt).$width = parseFloat(e.width || "0"), H(this, Wt).$height = parseFloat(e.height || "0"), this.position.set(H(this, Wt).pad_left, H(this, Wt).pad_top), ot(this, hi, e.writingMode === "vertical-rl"), ot(this, Fo, 0), ot(this,
|
|
31177
|
+
H(this, Wt).fontsize = r, H(this, Wt).pad_left = parseFloat(e.paddingLeft || "0"), H(this, Wt).pad_right = parseFloat(e.paddingRight || "0"), H(this, Wt).pad_top = parseFloat(e.paddingTop || "0"), H(this, Wt).pad_bottom = parseFloat(e.paddingBottom || "0"), H(this, Wt).$width = parseFloat(e.width || "0"), H(this, Wt).$height = parseFloat(e.height || "0"), this.position.set(H(this, Wt).pad_left, H(this, Wt).pad_top), ot(this, hi, e.writingMode === "vertical-rl"), ot(this, Fo, 0), ot(this, Qs, 0);
|
|
31174
31178
|
const D = e.lineHeight ?? "0";
|
|
31175
|
-
ot(this,
|
|
31176
|
-
}, Mr = new WeakMap(), hi = new WeakMap(), Fo = new WeakMap(),
|
|
31179
|
+
ot(this, ra, H(this, hi) ? 0 : (D.slice(-2) === "px" ? parseFloat(D) : r * parseFloat(D) - r) / 2);
|
|
31180
|
+
}, Mr = new WeakMap(), hi = new WeakMap(), Fo = new WeakMap(), Qs = new WeakMap(), hh = new WeakSet(), vd = function(e, r = !0) {
|
|
31177
31181
|
const D = {
|
|
31178
31182
|
escape: (K) => K.replaceAll(/([.*+?^${}()|\[\]\/\\])/g, "\\$1"),
|
|
31179
31183
|
mimeType: (K) => {
|
|
@@ -31336,7 +31340,7 @@ Ks = new WeakMap(), Bo = new WeakMap(), En = new WeakMap(), se = new WeakMap(),
|
|
|
31336
31340
|
}
|
|
31337
31341
|
Promise.resolve(H(this, se)).then((K) => {
|
|
31338
31342
|
const Z = K.cloneNode(!0);
|
|
31339
|
-
return Z.style.padding = "0px", Z.style.paddingRight = H(this, Fo) + "px", Z.style.paddingTop = H(this,
|
|
31343
|
+
return Z.style.padding = "0px", Z.style.paddingRight = H(this, Fo) + "px", Z.style.paddingTop = H(this, Qs) + "px", Z.style.left = "0px", Z.style.top = "0px", Z.style.width = H(this, Wt).$width - H(this, Wt).pad_left - H(this, Wt).pad_right + "px", Z.style.height = H(this, Wt).$height - H(this, Wt).pad_top - H(this, Wt).pad_bottom + "px", H(this, se).hidden = r, Z;
|
|
31340
31344
|
}).then(G).then((K) => {
|
|
31341
31345
|
K.setAttribute("xmlns", "http://www.w3.org/1999/xhtml");
|
|
31342
31346
|
const Z = new Image();
|
|
@@ -31353,7 +31357,7 @@ Ks = new WeakMap(), Bo = new WeakMap(), En = new WeakMap(), se = new WeakMap(),
|
|
|
31353
31357
|
});
|
|
31354
31358
|
});
|
|
31355
31359
|
}).catch((K) => DebugMng.myTrace(`goTxt() = ${K}`));
|
|
31356
|
-
},
|
|
31360
|
+
}, wn = new WeakMap(), ta = new WeakMap(), Ui = new WeakMap(), Cn = new WeakMap(), Pn = new WeakMap(), Mn = new WeakMap(), ea = new WeakMap(), $o = new WeakMap(), ji = new WeakMap(), Go = new WeakSet(), of = function(e, r, D, N, k, $) {
|
|
31357
31361
|
e.alpha = 0, r.x && (N.x = r.x.at(0) === "=" ? N.x + parseInt(r.x.slice(1)) : parseInt(r.x)), r.y && (N.y = r.y.at(0) === "=" ? N.y + parseInt(r.y.slice(1)) : parseInt(r.y)), r.width && (N.width = parseInt(r.width)), r.height && (N.height = parseInt(r.height)), r.wait && ($.wait = parseInt(r.wait)), e.width = N.width, e.height = N.height, $.x ? e.position.set(
|
|
31358
31362
|
$.x.at(0) === "=" ? N.x + e.width * $.nx : $.nx,
|
|
31359
31363
|
$.y.at(0) === "=" ? N.y + e.height * $.ny : $.ny
|
|
@@ -31364,8 +31368,8 @@ Ks = new WeakMap(), Bo = new WeakMap(), En = new WeakMap(), se = new WeakMap(),
|
|
|
31364
31368
|
G.tw = void 0;
|
|
31365
31369
|
}).start()
|
|
31366
31370
|
};
|
|
31367
|
-
H(this,
|
|
31368
|
-
}, ci = new WeakMap(), Uo = new WeakMap(), fi = new WeakMap(), Vr = new WeakMap(),
|
|
31371
|
+
H(this, ta).push(G);
|
|
31372
|
+
}, ci = new WeakMap(), Uo = new WeakMap(), fi = new WeakMap(), Vr = new WeakMap(), ra = new WeakMap(), jo = new WeakSet(), lf = function(e, r) {
|
|
31369
31373
|
const D = [];
|
|
31370
31374
|
if (e.nodeType !== e.TEXT_NODE)
|
|
31371
31375
|
return Array.from(e.childNodes).map((G) => lt(this, jo, lf).call(this, G, r)).flat();
|
|
@@ -31383,9 +31387,9 @@ Ks = new WeakMap(), Bo = new WeakMap(), En = new WeakMap(), se = new WeakMap(),
|
|
|
31383
31387
|
});
|
|
31384
31388
|
}
|
|
31385
31389
|
return N.detach(), D;
|
|
31386
|
-
}, zi = new WeakMap(),
|
|
31390
|
+
}, zi = new WeakMap(), Rn = new WeakMap(), zo = new WeakSet(), uf = function() {
|
|
31387
31391
|
var k;
|
|
31388
|
-
H(this, ui).clear(), ot(this, Ui, []), ot(this,
|
|
31392
|
+
H(this, ui).clear(), ot(this, Ui, []), ot(this, Cn, 0), this.skipChIn();
|
|
31389
31393
|
const e = H(this, se).cloneNode(!0);
|
|
31390
31394
|
e.textContent = "";
|
|
31391
31395
|
const r = H(this, se);
|
|
@@ -31413,10 +31417,10 @@ Ks = new WeakMap(), Bo = new WeakMap(), En = new WeakMap(), se = new WeakMap(),
|
|
|
31413
31417
|
const N = () => {
|
|
31414
31418
|
r.parentElement.removeChild(r);
|
|
31415
31419
|
for (const $ of H(this, Hr).removeChildren())
|
|
31416
|
-
$ instanceof Container && H(te,
|
|
31420
|
+
$ instanceof Container && H(te, Tn).unButton($), $.destroy();
|
|
31417
31421
|
};
|
|
31418
31422
|
D === 0 ? (H(this, se).textContent = "", N()) : (k = r.lastElementChild) == null || k.addEventListener("animationend", N, { once: !0, passive: !0 }), ot(this, se, e);
|
|
31419
|
-
},
|
|
31423
|
+
}, Qe = new WeakMap(), rt(TxtStage, Zs, void 0), rt(TxtStage, Bo, void 0), rt(TxtStage, Tn, void 0), rt(TxtStage, uh, {
|
|
31420
31424
|
"background-color": 0,
|
|
31421
31425
|
"border-bottom-width": 0,
|
|
31422
31426
|
"border-left-width": 0,
|
|
@@ -31426,21 +31430,21 @@ Ks = new WeakMap(), Bo = new WeakMap(), En = new WeakMap(), se = new WeakMap(),
|
|
|
31426
31430
|
"margin-left": 0,
|
|
31427
31431
|
"margin-right": 0,
|
|
31428
31432
|
"margin-top": 0
|
|
31429
|
-
}), rt(TxtStage,
|
|
31430
|
-
var
|
|
31433
|
+
}), rt(TxtStage, Pn, void 0), rt(TxtStage, Mn, void 0), rt(TxtStage, ea, void 0), rt(TxtStage, $o, "<span class='sn_ch sn_ch_last'> </span>"), rt(TxtStage, ci, /* @__PURE__ */ Object.create(null)), rt(TxtStage, Uo, /[\s\.,]/), rt(TxtStage, fi, /* @__PURE__ */ Object.create(null)), rt(TxtStage, Vr, new Container());
|
|
31434
|
+
var On, Xr, Ho;
|
|
31431
31435
|
const Ii = class {
|
|
31432
31436
|
constructor() {
|
|
31433
31437
|
rt(this, Xr, () => {
|
|
31434
31438
|
});
|
|
31435
31439
|
}
|
|
31436
31440
|
static setting(t) {
|
|
31437
|
-
t.sesame && ot(Ii,
|
|
31441
|
+
t.sesame && ot(Ii, On, t.sesame);
|
|
31438
31442
|
}
|
|
31439
31443
|
static getSesame() {
|
|
31440
|
-
return H(Ii,
|
|
31444
|
+
return H(Ii, On);
|
|
31441
31445
|
}
|
|
31442
31446
|
static destroy() {
|
|
31443
|
-
ot(Ii,
|
|
31447
|
+
ot(Ii, On, "ヽ");
|
|
31444
31448
|
}
|
|
31445
31449
|
init(t) {
|
|
31446
31450
|
ot(this, Xr, t);
|
|
@@ -31477,7 +31481,7 @@ const Ii = class {
|
|
|
31477
31481
|
}
|
|
31478
31482
|
const r = Array.from(t), D = r.length;
|
|
31479
31483
|
if (/^\*.?$/.test(e)) {
|
|
31480
|
-
const G = "center|" + (e === "*" ? H(Ii,
|
|
31484
|
+
const G = "center|" + (e === "*" ? H(Ii, On) : e.charAt(1));
|
|
31481
31485
|
for (let U = 0; U < D; ++U)
|
|
31482
31486
|
H(this, Xr).call(this, r[U], G);
|
|
31483
31487
|
return;
|
|
@@ -31492,7 +31496,7 @@ const Ii = class {
|
|
|
31492
31496
|
}
|
|
31493
31497
|
};
|
|
31494
31498
|
let RubySpliter = Ii;
|
|
31495
|
-
|
|
31499
|
+
On = new WeakMap(), Xr = new WeakMap(), Ho = new WeakMap(), rt(RubySpliter, On, "ヽ"), /*
|
|
31496
31500
|
★Unicodeで「漢字」の正規表現 – ものかの http://tama-san.com/kanji-regex/
|
|
31497
31501
|
2E80..2FDF CJK部首補助+康熙部首
|
|
31498
31502
|
3005 々(漢字の踊り字)
|
|
@@ -31516,8 +31520,8 @@ Rn = new WeakMap(), Xr = new WeakMap(), Ho = new WeakMap(), rt(RubySpliter, Rn,
|
|
|
31516
31520
|
・Unicode文字一覧表 - instant tools https://tools.m-bsys.com/ex/unicode_table.php
|
|
31517
31521
|
*/
|
|
31518
31522
|
rt(RubySpliter, Ho, void 0);
|
|
31519
|
-
var Vo, Xo, Rr, di,
|
|
31520
|
-
const
|
|
31523
|
+
var Vo, Xo, Rr, di, ia, na, Yo, hf, sa, aa, Wo, cf;
|
|
31524
|
+
const un = class extends Container {
|
|
31521
31525
|
constructor(e, r, D, N) {
|
|
31522
31526
|
var q;
|
|
31523
31527
|
super();
|
|
@@ -31527,12 +31531,12 @@ const ln = class extends Container {
|
|
|
31527
31531
|
// 文字ボタンは背景画像を含まない位置指定なので、その当たり判定用
|
|
31528
31532
|
rt(this, Rr, new Rectangle());
|
|
31529
31533
|
rt(this, di, void 0);
|
|
31530
|
-
rt(this, ra, void 0);
|
|
31531
31534
|
rt(this, ia, void 0);
|
|
31535
|
+
rt(this, na, void 0);
|
|
31532
31536
|
Ot(this, "normal", () => {
|
|
31533
31537
|
});
|
|
31534
|
-
rt(this,
|
|
31535
|
-
rt(this,
|
|
31538
|
+
rt(this, sa, () => !1);
|
|
31539
|
+
rt(this, aa, () => {
|
|
31536
31540
|
});
|
|
31537
31541
|
this.hArg = e, this.evtMng = r, this.resolve = D, this.canFocus = N, CmnLib.isDbg && (this.makeDesignCast = (W) => W(H(this, di)), this.cvsResize = () => H(this, di).cvsResize());
|
|
31538
31542
|
let k = {
|
|
@@ -31550,7 +31554,7 @@ const ln = class extends Container {
|
|
|
31550
31554
|
};
|
|
31551
31555
|
this.getBtnBounds = () => (H(this, Rr).x = k.x, H(this, Rr).y = k.y, H(this, Rr));
|
|
31552
31556
|
const $ = k.enabled = argChk_Boolean(e, "enabled", !0);
|
|
31553
|
-
if ($ && r.button(this.hArg, this, () => this.normal(), () => H(this,
|
|
31557
|
+
if ($ && r.button(this.hArg, this, () => this.normal(), () => H(this, sa).call(this), () => H(this, aa).call(this)), e.pic) {
|
|
31554
31558
|
k.type = "pic", ot(this, di, new PicBtnDesignCast(this, e)), GrpLayer.csv2Sprites(
|
|
31555
31559
|
e.pic,
|
|
31556
31560
|
this,
|
|
@@ -31571,7 +31575,7 @@ const ln = class extends Container {
|
|
|
31571
31575
|
dropShadowBlur: 7,
|
|
31572
31576
|
dropShadowDistance: 0,
|
|
31573
31577
|
fill: $ ? "black" : "gray",
|
|
31574
|
-
fontFamily:
|
|
31578
|
+
fontFamily: un.fontFamily,
|
|
31575
31579
|
fontSize: G,
|
|
31576
31580
|
padding: 5
|
|
31577
31581
|
});
|
|
@@ -31595,7 +31599,7 @@ const ln = class extends Container {
|
|
|
31595
31599
|
(W) => {
|
|
31596
31600
|
Layer.setBlendmode(this, e), W && D();
|
|
31597
31601
|
}
|
|
31598
|
-
)), z.name = JSON.stringify(k), this.addChild(z), H(this, Rr).width = z.width, H(this, Rr).height = z.height, e.b_pic || Layer.setBlendmode(this, e), H(q =
|
|
31602
|
+
)), z.name = JSON.stringify(k), this.addChild(z), H(this, Rr).width = z.width, H(this, Rr).height = z.height, e.b_pic || Layer.setBlendmode(this, e), H(q = un, Vo).call(q, this, z), !$) {
|
|
31599
31603
|
X || D();
|
|
31600
31604
|
return;
|
|
31601
31605
|
}
|
|
@@ -31621,12 +31625,12 @@ const ln = class extends Container {
|
|
|
31621
31625
|
}
|
|
31622
31626
|
else
|
|
31623
31627
|
Y.dropShadow = !1;
|
|
31624
|
-
this.normal = () => z.style = U, ot(this,
|
|
31628
|
+
this.normal = () => z.style = U, ot(this, sa, () => N() ? (z.style = V, !0) : !1), ot(this, aa, () => z.style = Y), X || D();
|
|
31625
31629
|
}
|
|
31626
31630
|
static init(e) {
|
|
31627
|
-
e.oCfg.debug.masume && (ot(
|
|
31631
|
+
e.oCfg.debug.masume && (ot(un, Vo, (r, D) => r.addChild(
|
|
31628
31632
|
new Graphics().beginFill(8926088, 0.2).lineStyle(1, 8926088, 1).drawRect(D.x, D.y, D.width, D.height).endFill()
|
|
31629
|
-
)), ot(
|
|
31633
|
+
)), ot(un, Xo, (r, D, N, k) => r.addChild(
|
|
31630
31634
|
new Graphics().beginFill(8926088, 0.2).lineStyle(1, 8926088, 1).drawRect(D.x, D.y, N, k).endFill()
|
|
31631
31635
|
)));
|
|
31632
31636
|
}
|
|
@@ -31644,7 +31648,7 @@ const ln = class extends Container {
|
|
|
31644
31648
|
}
|
|
31645
31649
|
update_b_pic(e, r) {
|
|
31646
31650
|
const D = JSON.parse(r.name ?? "{}");
|
|
31647
|
-
H(this,
|
|
31651
|
+
H(this, ia) && this.removeChild(H(this, ia)), this.hArg.b_pic = D.b_pic = e, r.name = JSON.stringify(D), e && GrpLayer.csv2Sprites(
|
|
31648
31652
|
e,
|
|
31649
31653
|
this,
|
|
31650
31654
|
(N) => lt(this, Yo, hf).call(this, N, r),
|
|
@@ -31653,7 +31657,7 @@ const ln = class extends Container {
|
|
|
31653
31657
|
}
|
|
31654
31658
|
update_pic(e, r) {
|
|
31655
31659
|
const D = JSON.parse(r.name ?? "{}");
|
|
31656
|
-
H(this,
|
|
31660
|
+
H(this, na) && this.removeChild(H(this, na)), this.hArg.pic = D.pic = e, r.name = JSON.stringify(D), e && GrpLayer.csv2Sprites(
|
|
31657
31661
|
e,
|
|
31658
31662
|
this,
|
|
31659
31663
|
(N) => lt(this, Wo, cf).call(this, N, D),
|
|
@@ -31661,9 +31665,9 @@ const ln = class extends Container {
|
|
|
31661
31665
|
);
|
|
31662
31666
|
}
|
|
31663
31667
|
};
|
|
31664
|
-
let Button =
|
|
31665
|
-
Vo = new WeakMap(), Xo = new WeakMap(), Rr = new WeakMap(), di = new WeakMap(),
|
|
31666
|
-
ot(this,
|
|
31668
|
+
let Button = un;
|
|
31669
|
+
Vo = new WeakMap(), Xo = new WeakMap(), Rr = new WeakMap(), di = new WeakMap(), ia = new WeakMap(), na = new WeakMap(), Yo = new WeakSet(), hf = function(e, r) {
|
|
31670
|
+
ot(this, ia, e), this.setChildIndex(e, 0), e.alpha = r.alpha, e.setTransform(
|
|
31667
31671
|
r.x,
|
|
31668
31672
|
r.y,
|
|
31669
31673
|
1,
|
|
@@ -31674,27 +31678,27 @@ Vo = new WeakMap(), Xo = new WeakMap(), Rr = new WeakMap(), di = new WeakMap(),
|
|
|
31674
31678
|
(e.width - r.width) / 2,
|
|
31675
31679
|
(e.height - r.height) / 2
|
|
31676
31680
|
), e.name = r.name;
|
|
31677
|
-
},
|
|
31681
|
+
}, sa = new WeakMap(), aa = new WeakMap(), Wo = new WeakSet(), cf = function(e, r) {
|
|
31678
31682
|
var X;
|
|
31679
|
-
ot(this,
|
|
31683
|
+
ot(this, na, e), r.alpha = e.alpha = argChk_Num(this.hArg, "alpha", e.alpha), H(this, di).setSp(e);
|
|
31680
31684
|
const D = e.width / 3, N = e.height, k = e.texture.baseTexture, $ = new Texture(k, new Rectangle(0, 0, D, N)), G = new Texture(k, new Rectangle(D, 0, D, N)), U = new Texture(k, new Rectangle(D * 2, 0, D, N)), z = () => e.texture = $;
|
|
31681
|
-
z(), this.normal = z, ot(this,
|
|
31685
|
+
z(), this.normal = z, ot(this, sa, () => this.canFocus() ? (e.texture = U, !0) : !1), ot(this, aa, () => e.texture = G), "width" in this.hArg ? (r.width = uint(this.hArg.width), this.scale.x *= r.width / D) : r.width = D, "height" in this.hArg ? (r.height = uint(this.hArg.height), this.scale.y *= r.height / N) : r.height = N, e.name = JSON.stringify(r), H(X = un, Xo).call(X, this, e, D, N);
|
|
31682
31686
|
}, Ot(Button, "fontFamily", "'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif"), rt(Button, Vo, (e, r) => {
|
|
31683
31687
|
}), rt(Button, Xo, (e, r, D, N) => {
|
|
31684
31688
|
});
|
|
31685
|
-
var
|
|
31689
|
+
var oa, Or, qo, la, Ko, ff, Zo, df, Jo, In, Qo, pi, Dn, ch, gd, vi, mr, Ir, ge, Yr, he, tl, Wr, fh, tr, An, Va, Nn, ua, Ln, Xa, ha, el, pf, rl, vf, kn, Bn, ca, il, fa, Hi, er, dh, md, ur, nl, da, pu, gi, sn, qr, Dr, _r, yr, sl, gf, pa, vu, al, mf, Fn;
|
|
31686
31690
|
const ie = class extends Layer {
|
|
31687
31691
|
constructor() {
|
|
31688
31692
|
super();
|
|
31689
|
-
rt(this,
|
|
31690
|
-
rt(this,
|
|
31693
|
+
rt(this, An);
|
|
31694
|
+
rt(this, Ln);
|
|
31691
31695
|
rt(this, el);
|
|
31692
31696
|
rt(this, rl);
|
|
31693
31697
|
rt(this, dh);
|
|
31694
|
-
rt(this,
|
|
31698
|
+
rt(this, da);
|
|
31695
31699
|
rt(this, gi);
|
|
31696
31700
|
rt(this, sl);
|
|
31697
|
-
rt(this,
|
|
31701
|
+
rt(this, pa);
|
|
31698
31702
|
rt(this, al);
|
|
31699
31703
|
// バック
|
|
31700
31704
|
rt(this, vi, 0);
|
|
@@ -31704,24 +31708,24 @@ const ie = class extends Layer {
|
|
|
31704
31708
|
rt(this, Yr, "");
|
|
31705
31709
|
// 背景画像無し(=単色塗り)
|
|
31706
31710
|
// 文字表示
|
|
31707
|
-
rt(this,
|
|
31711
|
+
rt(this, he, new TxtStage(this.spLay, () => this.canFocus(), H(ie, Qo)));
|
|
31708
31712
|
rt(this, tl, new RubySpliter());
|
|
31709
31713
|
rt(this, Wr, document.createElement("span"));
|
|
31710
|
-
rt(this,
|
|
31711
|
-
rt(this,
|
|
31712
|
-
rt(this,
|
|
31713
|
-
rt(this, ua, "");
|
|
31714
|
-
rt(this, Ln, "");
|
|
31715
|
-
rt(this, kn, (e) => "");
|
|
31714
|
+
rt(this, tr, new Container());
|
|
31715
|
+
rt(this, Nn, "");
|
|
31716
|
+
rt(this, ua, !0);
|
|
31716
31717
|
rt(this, ha, "");
|
|
31718
|
+
rt(this, kn, "");
|
|
31719
|
+
rt(this, Bn, (e) => "");
|
|
31720
|
+
rt(this, ca, "");
|
|
31717
31721
|
rt(this, il, new RegExp("[ ]"));
|
|
31718
31722
|
Ot(this, "isCur", !1);
|
|
31719
31723
|
rt(this, Hi, () => "");
|
|
31720
|
-
rt(this,
|
|
31724
|
+
rt(this, er, "");
|
|
31721
31725
|
rt(this, ur, !1);
|
|
31722
31726
|
rt(this, nl, (e, r) => {
|
|
31723
31727
|
var U, z, X;
|
|
31724
|
-
H(ie,
|
|
31728
|
+
H(ie, oa).oCfg.debug.putCh && console.log(`🖊 文字表示 text:\`${e}\` ruby:\`${r}\` name:\`${this.name_}\``);
|
|
31725
31729
|
const D = r.split("|");
|
|
31726
31730
|
let N = "";
|
|
31727
31731
|
const [k, ...$] = D, G = $.join("|");
|
|
@@ -31732,7 +31736,7 @@ const ie = class extends Layer {
|
|
|
31732
31736
|
H(this, Dr) ? (ot(this, Dr, !1), N = "<ruby> <rt> </rt></ruby><br/>") : N = "<br/>";
|
|
31733
31737
|
break;
|
|
31734
31738
|
}
|
|
31735
|
-
H(this, Dr) && (ot(this, Dr, !1), r === "" && (r = " ")), N = lt(this,
|
|
31739
|
+
H(this, Dr) && (ot(this, Dr, !1), r === "" && (r = " ")), N = lt(this, da, pu).call(this, e, r, H(this, er));
|
|
31736
31740
|
break;
|
|
31737
31741
|
default:
|
|
31738
31742
|
switch (k) {
|
|
@@ -31744,37 +31748,37 @@ const ie = class extends Layer {
|
|
|
31744
31748
|
case "121":
|
|
31745
31749
|
case "even":
|
|
31746
31750
|
case "1ruby":
|
|
31747
|
-
ot(this, Dr, !1), ot(this, ur, !0), N = lt(this,
|
|
31751
|
+
ot(this, Dr, !1), ot(this, ur, !0), N = lt(this, da, pu).call(this, e, G, k);
|
|
31748
31752
|
break;
|
|
31749
31753
|
case "gotxt":
|
|
31750
|
-
lt(this,
|
|
31754
|
+
lt(this, pa, vu).call(this), H(this, ur) ? (this.isCur && H(ie, la).recText(
|
|
31751
31755
|
H(this, _r).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;'")
|
|
31752
31756
|
// 囲んだ領域は履歴で非表示
|
|
31753
|
-
), H(this,
|
|
31757
|
+
), H(this, he).goTxt(H(this, _r), H(this, qr) === 0), ot(this, ur, !1), ot(this, qr, 0)) : this.isCur && H(ie, In).noticeCompTxt();
|
|
31754
31758
|
return;
|
|
31755
31759
|
case "add":
|
|
31756
31760
|
{
|
|
31757
|
-
const V = JSON.parse(G), { style: Y = "", wait: q = null } = V, { cl: W, sty: K } = lt(this, gi,
|
|
31761
|
+
const V = JSON.parse(G), { style: Y = "", wait: q = null } = V, { cl: W, sty: K } = lt(this, gi, sn).call(this, !0, q);
|
|
31758
31762
|
H(this, _r).push(`<span${W} style='${K} display: inline; ${Y}'>`), delete V.style, lt(this, sl, gf).call(this, V);
|
|
31759
31763
|
}
|
|
31760
31764
|
return;
|
|
31761
31765
|
case "add_close":
|
|
31762
|
-
H(this, _r).push("</span>"), lt(this,
|
|
31766
|
+
H(this, _r).push("</span>"), lt(this, pa, vu).call(this);
|
|
31763
31767
|
return;
|
|
31764
31768
|
case "grp":
|
|
31765
31769
|
ot(this, ur, !0);
|
|
31766
31770
|
{
|
|
31767
31771
|
const V = JSON.parse(G);
|
|
31768
31772
|
if (V.id ?? (V.id = H(this, _r).length), V.id === "break") {
|
|
31769
|
-
H(this,
|
|
31773
|
+
H(this, he).dispBreak(V.pic);
|
|
31770
31774
|
return;
|
|
31771
31775
|
}
|
|
31772
31776
|
ot(this, Dr, !1), V.delay = H(this, qr), V.r ?? (V.r = ""), V.style ?? (V.style = ""), V.r_style ?? (V.r_style = "");
|
|
31773
|
-
const { cl: Y, sty: q, lnk: W } = lt(this, gi,
|
|
31777
|
+
const { cl: Y, sty: q, lnk: W } = lt(this, gi, sn).call(this, !0, V.wait);
|
|
31774
31778
|
N = `<span${Y} style='${q} ${V.style}'><ruby><span data-cmd='grp' data-arg='${JSON.stringify(V)}'${W} style='${q} display: inline;'> </span><rt${W}${this.mkStyle_r_align(
|
|
31775
31779
|
" ",
|
|
31776
31780
|
V.r,
|
|
31777
|
-
H(this,
|
|
31781
|
+
H(this, er),
|
|
31778
31782
|
H(this, Wr).style.cssText + (((U = H(this, yr).at(-1)) == null ? void 0 : U.o.r_style) ?? "") + V.r_style
|
|
31779
31783
|
)}>${V.r}</rt></ruby></span>`;
|
|
31780
31784
|
}
|
|
@@ -31782,14 +31786,14 @@ const ie = class extends Layer {
|
|
|
31782
31786
|
case "tcy":
|
|
31783
31787
|
ot(this, Dr, !1), ot(this, ur, !0);
|
|
31784
31788
|
{
|
|
31785
|
-
H(ie, Or).doRecLog() && ot(this,
|
|
31786
|
-
const { t: V, r: Y = "", wait: q = null, style: W = "", r_style: K = "" } = JSON.parse(G), Z = CmnLib.isSafari ? Y.replaceAll(/[A-Za-z0-9]/g, (nt) => String.fromCharCode(nt.charCodeAt(0) + 65248)) : Y, { cl: J, sty: Q, lnk: et } = lt(this, gi,
|
|
31787
|
-
N = `<span${J} style='${Q}${H(this,
|
|
31789
|
+
H(ie, Or).doRecLog() && ot(this, Fn, H(this, Fn) + (e + (r ? `《${r}》` : "")));
|
|
31790
|
+
const { t: V, r: Y = "", wait: q = null, style: W = "", r_style: K = "" } = JSON.parse(G), Z = CmnLib.isSafari ? Y.replaceAll(/[A-Za-z0-9]/g, (nt) => String.fromCharCode(nt.charCodeAt(0) + 65248)) : Y, { cl: J, sty: Q, lnk: et } = lt(this, gi, sn).call(this, !0, q);
|
|
31791
|
+
N = `<span${J} style='${Q}${H(this, Bn).call(this, V)} ${W}'><ruby><span${et} style='${Q} display: inline;
|
|
31788
31792
|
text-combine-upright: all;
|
|
31789
31793
|
-webkit-text-combine: horizontal;'>${V}</span><rt${et}${this.mkStyle_r_align(
|
|
31790
31794
|
V,
|
|
31791
31795
|
Z,
|
|
31792
|
-
H(this,
|
|
31796
|
+
H(this, er),
|
|
31793
31797
|
H(this, Wr).style.cssText + (((z = H(this, yr).at(-1)) == null ? void 0 : z.o.r_style) ?? "") + K
|
|
31794
31798
|
)}>${Z}</rt></ruby></span>`;
|
|
31795
31799
|
}
|
|
@@ -31805,54 +31809,54 @@ text-combine-upright: all;
|
|
|
31805
31809
|
{
|
|
31806
31810
|
const V = JSON.parse(G);
|
|
31807
31811
|
V[":link"] = " data-lnk='@'";
|
|
31808
|
-
const { cl: Y, sty: q, curpos: W } = lt(this, gi,
|
|
31812
|
+
const { cl: Y, sty: q, curpos: W } = lt(this, gi, sn).call(this, !1, V.wait);
|
|
31809
31813
|
H(this, _r).push(`<span${Y} style='${q} display: inline; ${V.style ?? ""}' ${W} data-arg='${G}'>`), delete V.style, lt(this, al, mf).call(this, V);
|
|
31810
31814
|
}
|
|
31811
31815
|
return;
|
|
31812
31816
|
case "endlink":
|
|
31813
|
-
ot(this, ur, !0), H(this, _r).push("</span>"), lt(this,
|
|
31817
|
+
ot(this, ur, !0), H(this, _r).push("</span>"), lt(this, pa, vu).call(this);
|
|
31814
31818
|
return;
|
|
31815
31819
|
default:
|
|
31816
|
-
ot(this, ur, !0), N = lt(this,
|
|
31820
|
+
ot(this, ur, !0), N = lt(this, da, pu).call(this, e, r, H(this, er));
|
|
31817
31821
|
}
|
|
31818
31822
|
break;
|
|
31819
31823
|
}
|
|
31820
|
-
H(this, _r).push(H(X = ie,
|
|
31824
|
+
H(this, _r).push(H(X = ie, fa).call(X, N));
|
|
31821
31825
|
});
|
|
31822
31826
|
rt(this, qr, 0);
|
|
31823
31827
|
rt(this, Dr, !0);
|
|
31824
31828
|
rt(this, _r, []);
|
|
31825
31829
|
rt(this, yr, []);
|
|
31826
|
-
Ot(this, "click", () => !this.spLay.interactiveChildren || !this.spLay.visible ? !1 : H(this,
|
|
31827
|
-
rt(this,
|
|
31830
|
+
Ot(this, "click", () => !this.spLay.interactiveChildren || !this.spLay.visible ? !1 : H(this, he).skipChIn());
|
|
31831
|
+
rt(this, Fn, "");
|
|
31828
31832
|
Ot(this, "addButton", (e) => new Promise((r) => {
|
|
31829
|
-
e.key = `btn=[${H(this,
|
|
31830
|
-
const D = new Button(e, H(ie,
|
|
31831
|
-
D.name = JSON.stringify(e).replaceAll('"', "'"), H(this,
|
|
31833
|
+
e.key = `btn=[${H(this, tr).children.length}] ` + this.name_, e[":id_tag"] = e.key.slice(0, -7), argChk_Boolean(e, "hint_tate", H(this, he).tategaki);
|
|
31834
|
+
const D = new Button(e, H(ie, In), () => r(), () => this.canFocus());
|
|
31835
|
+
D.name = JSON.stringify(e).replaceAll('"', "'"), H(this, tr).addChild(D);
|
|
31832
31836
|
}));
|
|
31833
31837
|
Ot(this, "record", () => ({
|
|
31834
31838
|
...super.record(),
|
|
31835
31839
|
enabled: this.enabled,
|
|
31836
31840
|
r_cssText: H(this, Wr).style.cssText,
|
|
31837
|
-
r_align: H(this,
|
|
31841
|
+
r_align: H(this, er),
|
|
31838
31842
|
// バック
|
|
31839
31843
|
b_do: H(this, ge) === void 0 ? void 0 : H(this, ge) instanceof Sprite ? "Sprite" : "Graphics",
|
|
31840
31844
|
b_pic: H(this, Yr),
|
|
31841
31845
|
b_color: H(this, vi),
|
|
31842
31846
|
b_alpha: H(this, mr),
|
|
31843
31847
|
b_alpha_isfixed: H(this, Ir),
|
|
31844
|
-
ffs: H(this,
|
|
31845
|
-
txs: H(this,
|
|
31846
|
-
strNoFFS: H(this,
|
|
31847
|
-
btns: H(this,
|
|
31848
|
+
ffs: H(this, kn),
|
|
31849
|
+
txs: H(this, he).record(),
|
|
31850
|
+
strNoFFS: H(this, ca),
|
|
31851
|
+
btns: H(this, tr).children.map((e) => e.name)
|
|
31848
31852
|
}));
|
|
31849
|
-
this.spLay.addChild(H(this,
|
|
31853
|
+
this.spLay.addChild(H(this, he)), H(this, tl).init(H(this, nl)), this.spLay.addChild(H(this, tr)), H(this, tr).name = "cntBtn";
|
|
31850
31854
|
const e = 16;
|
|
31851
31855
|
this.lay({ style: `width: ${CmnLib.stageW}px; height: ${CmnLib.stageH}px; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック 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" });
|
|
31852
31856
|
}
|
|
31853
31857
|
static init(e, r, D, N, k, $) {
|
|
31854
31858
|
var G, U;
|
|
31855
|
-
ot(ie,
|
|
31859
|
+
ot(ie, oa, e), TxtStage.init(e, $), ot(ie, Or, D), ot(ie, la, N), ot(ie, qo, k), D.setDoRecProc(ie.chgDoRec), r.autowc = (z) => {
|
|
31856
31860
|
var X;
|
|
31857
31861
|
return lt(X = ie, ch, gd).call(X, z);
|
|
31858
31862
|
}, r.autowc({ enabled: !1, text: "", time: 0 }), r.ch_in_style = (z) => {
|
|
@@ -31865,7 +31869,7 @@ text-combine-upright: all;
|
|
|
31865
31869
|
e.matchPath(".+", SEARCH_PATH_ARG_EXT.FONT).flatMap((z) => Object.values(z).map((X) => `
|
|
31866
31870
|
@font-face {
|
|
31867
31871
|
font-family: '${X}';
|
|
31868
|
-
src: url('${H(this,
|
|
31872
|
+
src: url('${H(this, oa).searchPath(X, SEARCH_PATH_ARG_EXT.FONT)}');
|
|
31869
31873
|
}
|
|
31870
31874
|
`)).join("") + `
|
|
31871
31875
|
.sn_tx {
|
|
@@ -31905,30 +31909,30 @@ text-combine-upright: all;
|
|
|
31905
31909
|
});
|
|
31906
31910
|
}
|
|
31907
31911
|
static setEvtMng(e, r, D) {
|
|
31908
|
-
ot(ie, Jo, e), ot(ie,
|
|
31912
|
+
ot(ie, Jo, e), ot(ie, In, r), ot(ie, Qo, D), TxtStage.setEvtMng(r);
|
|
31909
31913
|
}
|
|
31910
31914
|
destroy() {
|
|
31911
|
-
H(this, ge) && (this.spLay.removeChild(H(this, ge)).destroy(), ot(this, ge, void 0)), this.clearText(), H(this,
|
|
31915
|
+
H(this, ge) && (this.spLay.removeChild(H(this, ge)).destroy(), ot(this, ge, void 0)), this.clearText(), H(this, he).destroy();
|
|
31912
31916
|
}
|
|
31913
31917
|
static destroy() {
|
|
31914
|
-
ot(ie, pi, !1), ot(ie,
|
|
31918
|
+
ot(ie, pi, !1), ot(ie, Dn, {}), ot(ie, fa, (e) => e);
|
|
31915
31919
|
}
|
|
31916
31920
|
set name(e) {
|
|
31917
|
-
this.name_ = e, H(this,
|
|
31921
|
+
this.name_ = e, H(this, he).name = e;
|
|
31918
31922
|
}
|
|
31919
31923
|
get name() {
|
|
31920
31924
|
return this.name_;
|
|
31921
31925
|
}
|
|
31922
31926
|
// getは継承しないらしい
|
|
31923
31927
|
cvsResize() {
|
|
31924
|
-
H(this,
|
|
31928
|
+
H(this, he).cvsResize();
|
|
31925
31929
|
}
|
|
31926
31930
|
cvsResizeChildren() {
|
|
31927
|
-
for (const e of H(this,
|
|
31931
|
+
for (const e of H(this, tr).children)
|
|
31928
31932
|
e.cvsResize();
|
|
31929
31933
|
}
|
|
31930
31934
|
lay(e) {
|
|
31931
|
-
if (super.lay(e), Layer.setXY(this.spLay, e, this.spLay), e[":id_tag"] = this.name_.slice(0, -7), RubySpliter.setting(e), lt(this, rl, vf).call(this, e), H(this,
|
|
31935
|
+
if (super.lay(e), Layer.setXY(this.spLay, e, this.spLay), e[":id_tag"] = this.name_.slice(0, -7), RubySpliter.setting(e), lt(this, rl, vf).call(this, e), H(this, he).lay(e), "r_align" in e && ot(this, er, e.r_align ?? ""), ot(this, Hi, CmnLib.isSafari ? H(this, he).tategaki ? (r, D) => `text-align: start; height: ${D}em; padding-top: ${r}; padding-bottom: ${r};` : (r, D) => `text-align: start; width: ${D}em; padding-left: ${r}; padding-right: ${r};` : H(this, he).tategaki ? (r) => `text-align: justify; text-align-last: justify; padding-top: ${r}; padding-bottom: ${r};` : (r) => `text-align: justify; text-align-last: justify; padding-left: ${r}; padding-right: ${r};`), CmnLib.isFirefox && (this.mkStyle_r_align = lt(this, dh, md)), "r_style" in e)
|
|
31932
31936
|
if (e.r_style) {
|
|
31933
31937
|
const r = document.createElement("span");
|
|
31934
31938
|
r.style.cssText = e.r_style;
|
|
@@ -31944,28 +31948,28 @@ text-combine-upright: all;
|
|
|
31944
31948
|
} else
|
|
31945
31949
|
H(this, Wr).style.cssText = "";
|
|
31946
31950
|
if ("alpha" in e)
|
|
31947
|
-
for (const r of H(this,
|
|
31951
|
+
for (const r of H(this, tr).children)
|
|
31948
31952
|
r.alpha = this.spLay.alpha;
|
|
31949
|
-
return lt(this,
|
|
31953
|
+
return lt(this, An, Va).call(this, e), lt(this, Ln, Xa).call(this, e), lt(this, el, pf).call(this, e, (r) => {
|
|
31950
31954
|
r && H(ie, Jo).resume();
|
|
31951
31955
|
});
|
|
31952
31956
|
}
|
|
31953
31957
|
get width() {
|
|
31954
|
-
return H(this,
|
|
31958
|
+
return H(this, he).getWidth;
|
|
31955
31959
|
}
|
|
31956
31960
|
get height() {
|
|
31957
|
-
return H(this,
|
|
31961
|
+
return H(this, he).getHeight;
|
|
31958
31962
|
}
|
|
31959
31963
|
chgBackAlpha(e) {
|
|
31960
31964
|
const r = H(this, Ir) ? H(this, mr) : e * H(this, mr);
|
|
31961
31965
|
H(this, ge) instanceof Graphics && (H(this, ge) && (this.spLay.removeChild(H(this, ge)), H(this, ge).destroy()), this.spLay.addChildAt(
|
|
31962
|
-
ot(this, ge, new Graphics()).beginFill(H(this, vi)).lineStyle(void 0).drawRect(0, 0, H(this,
|
|
31966
|
+
ot(this, ge, new Graphics()).beginFill(H(this, vi)).lineStyle(void 0).drawRect(0, 0, H(this, he).getWidth, H(this, he).getHeight).endFill(),
|
|
31963
31967
|
0
|
|
31964
31968
|
), H(this, ge).name = "back(color)"), H(this, ge) && (H(this, ge).visible = r > 0, H(this, ge).alpha = r);
|
|
31965
31969
|
}
|
|
31966
31970
|
// Safariが全体に「font-feature-settings」した後、特定文字の「font-feature-settings: initial;」を受け付けてくれないのでわざわざ一つずつ指定
|
|
31967
31971
|
static chgDoRec(e) {
|
|
31968
|
-
ot(ie,
|
|
31972
|
+
ot(ie, fa, e ? (r) => r : (r) => `<span class='offrec'>${r}</span>`);
|
|
31969
31973
|
}
|
|
31970
31974
|
mkStyle_r_align(e, r, D, N = "") {
|
|
31971
31975
|
if (!D)
|
|
@@ -31996,10 +32000,10 @@ text-combine-upright: all;
|
|
|
31996
32000
|
H(this, tl).putTxt(e);
|
|
31997
32001
|
}
|
|
31998
32002
|
clearText() {
|
|
31999
|
-
this.spLay.addChild(ot(this,
|
|
32003
|
+
this.spLay.addChild(ot(this, he, H(this, he).reNew())), ot(this, qr, 0), ot(this, Dr, !0), ot(this, _r, []), ot(this, Fn, ""), H(ie, la).recPagebreak();
|
|
32000
32004
|
}
|
|
32001
32005
|
get pageText() {
|
|
32002
|
-
return H(this,
|
|
32006
|
+
return H(this, Fn).replace("《 》", "");
|
|
32003
32007
|
}
|
|
32004
32008
|
get enabled() {
|
|
32005
32009
|
return this.spLay.interactiveChildren;
|
|
@@ -32013,11 +32017,11 @@ text-combine-upright: all;
|
|
|
32013
32017
|
}
|
|
32014
32018
|
clearLay(e) {
|
|
32015
32019
|
super.clearLay(e), this.clearText();
|
|
32016
|
-
for (const r of H(this,
|
|
32020
|
+
for (const r of H(this, tr).removeChildren())
|
|
32017
32021
|
r.destroy();
|
|
32018
32022
|
}
|
|
32019
32023
|
playback(e, r) {
|
|
32020
|
-
super.playback(e, r), this.enabled = e.enabled, H(this, Wr).style.cssText = e.r_cssText, ot(this,
|
|
32024
|
+
super.playback(e, r), this.enabled = e.enabled, H(this, Wr).style.cssText = e.r_cssText, ot(this, er, e.r_align), this.cvsResize(), lt(this, rl, vf).call(this, e), H(this, he).playback(e.txs), ot(this, mr, e.b_alpha), ot(this, Ir, e.b_alpha_isfixed), r.push(new Promise((N) => {
|
|
32021
32025
|
const k = e.b_do ? e.b_do === "Sprite" ? { b_pic: e.b_pic } : { b_color: e.b_color } : { b_pic: "" };
|
|
32022
32026
|
k.b_alpha = e.b_alpha, k.b_alpha_isfixed = e.b_alpha_isfixed, lt(this, el, pf).call(this, k, ($) => {
|
|
32023
32027
|
$ && N();
|
|
@@ -32027,32 +32031,32 @@ text-combine-upright: all;
|
|
|
32027
32031
|
r = r.concat(D.map((N) => this.addButton(JSON.parse(N.replaceAll("'", '"')))));
|
|
32028
32032
|
}
|
|
32029
32033
|
snapshot(e, r) {
|
|
32030
|
-
e.render(this.spLay, { clear: !1 }), H(this,
|
|
32034
|
+
e.render(this.spLay, { clear: !1 }), H(this, he).snapshot(e, r);
|
|
32031
32035
|
}
|
|
32032
32036
|
snapshot_end() {
|
|
32033
|
-
H(this,
|
|
32037
|
+
H(this, he).snapshot_end();
|
|
32034
32038
|
}
|
|
32035
32039
|
makeDesignCast(e) {
|
|
32036
|
-
this.spLay.visible && H(this,
|
|
32040
|
+
this.spLay.visible && H(this, he).makeDesignCast(e);
|
|
32037
32041
|
}
|
|
32038
32042
|
makeDesignCastChildren(e) {
|
|
32039
32043
|
if (this.spLay.visible)
|
|
32040
|
-
for (const r of H(this,
|
|
32044
|
+
for (const r of H(this, tr).children)
|
|
32041
32045
|
r.makeDesignCast(e);
|
|
32042
32046
|
}
|
|
32043
32047
|
showDesignCast() {
|
|
32044
|
-
H(this,
|
|
32048
|
+
H(this, he).showDesignCast();
|
|
32045
32049
|
}
|
|
32046
32050
|
showDesignCastChildren() {
|
|
32047
|
-
for (const e of H(this,
|
|
32051
|
+
for (const e of H(this, tr).children)
|
|
32048
32052
|
e.showDesignCast();
|
|
32049
32053
|
}
|
|
32050
32054
|
dump() {
|
|
32051
|
-
return H(this, nl).call(this, "", "gotxt|"), super.dump() + `, "enabled":"${this.enabled}", ${H(this,
|
|
32055
|
+
return H(this, nl).call(this, "", "gotxt|"), super.dump() + `, "enabled":"${this.enabled}", ${H(this, he).dump()}, "b_pic":"${H(this, Yr)}", "b_color":"${H(this, vi)}", "b_alpha":${H(this, mr)}, "b_alpha_isfixed":"${H(this, Ir)}", "width":${H(this, he).getWidth}, "height":${H(this, he).getHeight}, "pixi_obj":[${this.spLay.children.map((e) => `{"class":"${e instanceof Sprite ? "Sprite" : e instanceof Graphics ? "Graphics" : e instanceof Container ? "Container" : "?"}", "name":"${e.name}", "alpha":${e.alpha}, "x":${e.x}, "y":${e.y}, "visible":"${e.visible}"}`).join(",")}], "button":[${H(this, tr).children.map((e) => e.children[0].name ?? "{}").join(",")}]`;
|
|
32052
32056
|
}
|
|
32053
32057
|
};
|
|
32054
32058
|
let TxtLayer = ie;
|
|
32055
|
-
|
|
32059
|
+
oa = new WeakMap(), Or = new WeakMap(), qo = new WeakMap(), la = new WeakMap(), Ko = new WeakSet(), ff = function(e) {
|
|
32056
32060
|
const r = TxtStage.ch_in_style(e), D = r.x.at(0) === "=" ? `${r.nx * 100}%` : `${r.nx}px`, N = r.y.at(0) === "=" ? `${r.ny * 100}%` : `${r.ny}px`, { name: k } = e;
|
|
32057
32061
|
return addStyle(`
|
|
32058
32062
|
.sn_ch_in_${k} {
|
|
@@ -32084,7 +32088,7 @@ aa = new WeakMap(), Or = new WeakMap(), qo = new WeakMap(), oa = new WeakMap(),
|
|
|
32084
32088
|
transform: rotate(${r.rotate}deg) scale(${r.scale_x}, ${r.scale_y}) translate(${D}, ${N});
|
|
32085
32089
|
}
|
|
32086
32090
|
`), !1;
|
|
32087
|
-
}, Jo = new WeakMap(),
|
|
32091
|
+
}, Jo = new WeakMap(), In = new WeakMap(), Qo = new WeakMap(), pi = new WeakMap(), Dn = new WeakMap(), ch = new WeakSet(), gd = function(e) {
|
|
32088
32092
|
ot(ie, pi, argChk_Boolean(e, "enabled", H(ie, pi))), H(ie, Or).setVal_Nochk("save", "const.sn.autowc.enabled", H(ie, pi));
|
|
32089
32093
|
const { text: r } = e;
|
|
32090
32094
|
if ("text" in e != "time" in e)
|
|
@@ -32097,23 +32101,23 @@ aa = new WeakMap(), Or = new WeakMap(), qo = new WeakMap(), oa = new WeakMap(),
|
|
|
32097
32101
|
const N = String(e.time).split(",");
|
|
32098
32102
|
if (N.length !== D)
|
|
32099
32103
|
throw "[autowc] text文字数とtimeに記述された待ち時間(コンマ区切り)は同数にして下さい";
|
|
32100
|
-
return ot(ie,
|
|
32101
|
-
}, vi = new WeakMap(), mr = new WeakMap(), Ir = new WeakMap(), ge = new WeakMap(), Yr = new WeakMap(),
|
|
32104
|
+
return ot(ie, Dn, {}), N.forEach((k, $) => H(ie, Dn)[r[$]] = uint(k)), H(ie, Or).setVal_Nochk("save", "const.sn.autowc.time", e.time), !1;
|
|
32105
|
+
}, vi = new WeakMap(), mr = new WeakMap(), Ir = new WeakMap(), ge = new WeakMap(), Yr = new WeakMap(), he = new WeakMap(), tl = new WeakMap(), Wr = new WeakMap(), fh = new WeakMap(), tr = new WeakMap(), An = new WeakSet(), Va = function(e) {
|
|
32102
32106
|
const { in_style: r } = e;
|
|
32103
32107
|
if (!r)
|
|
32104
32108
|
return;
|
|
32105
32109
|
const D = TxtStage.getChInStyle(r);
|
|
32106
32110
|
if (!D)
|
|
32107
32111
|
throw `存在しないin_style【${r}】です`;
|
|
32108
|
-
ot(this,
|
|
32109
|
-
},
|
|
32112
|
+
ot(this, Nn, r), ot(this, ua, D.join);
|
|
32113
|
+
}, Nn = new WeakMap(), ua = new WeakMap(), Ln = new WeakSet(), Xa = function(e) {
|
|
32110
32114
|
const { out_style: r } = e;
|
|
32111
32115
|
if (!r)
|
|
32112
32116
|
return;
|
|
32113
32117
|
if (!TxtStage.getChOutStyle(r))
|
|
32114
32118
|
throw `存在しないout_style【${r}】です`;
|
|
32115
|
-
ot(this,
|
|
32116
|
-
},
|
|
32119
|
+
ot(this, ha, r);
|
|
32120
|
+
}, ha = new WeakMap(), el = new WeakSet(), pf = function(e, r) {
|
|
32117
32121
|
if ("back_clear" in e)
|
|
32118
32122
|
return argChk_Boolean(e, "back_clear", !1) && (ot(this, vi, 0), ot(this, mr, 0), ot(this, Ir, !1), ot(this, Yr, "")), r(!1), !1;
|
|
32119
32123
|
ot(this, mr, argChk_Num(e, "b_alpha", H(this, mr))), ot(this, Ir, argChk_Boolean(e, "b_alpha_isfixed", H(this, Ir)));
|
|
@@ -32121,17 +32125,17 @@ aa = new WeakMap(), Or = new WeakMap(), qo = new WeakMap(), oa = new WeakMap(),
|
|
|
32121
32125
|
if (e.b_pic) {
|
|
32122
32126
|
if (H(this, Yr) !== e.b_pic)
|
|
32123
32127
|
return ot(this, Yr, e.b_pic), H(this, ge) && (this.spLay.removeChild(H(this, ge)), H(this, ge).destroy()), GrpLayer.csv2Sprites(H(this, Yr), this.spLay, (N) => {
|
|
32124
|
-
ot(this, ge, N), N.name = "back(pic)", N.visible = D > 0, N.alpha = D, H(this,
|
|
32128
|
+
ot(this, ge, N), N.name = "back(pic)", N.visible = D > 0, N.alpha = D, H(this, he).setSize(N.width, N.height), this.spLay.setChildIndex(N, 0), r(!0);
|
|
32125
32129
|
});
|
|
32126
32130
|
} else
|
|
32127
32131
|
"b_color" in e && (ot(this, vi, argChk_Color(e, "b_color", 0)), H(this, ge) && (this.spLay.removeChild(H(this, ge)), H(this, ge).destroy()), ot(this, Yr, ""), this.spLay.addChildAt(
|
|
32128
|
-
ot(this, ge, new Graphics()).beginFill(H(this, vi)).lineStyle(void 0).drawRect(0, 0, H(this,
|
|
32132
|
+
ot(this, ge, new Graphics()).beginFill(H(this, vi)).lineStyle(void 0).drawRect(0, 0, H(this, he).getWidth, H(this, he).getHeight).endFill(),
|
|
32129
32133
|
0
|
|
32130
32134
|
), H(this, ge).name = "back(color)");
|
|
32131
32135
|
return H(this, ge) && (H(this, ge).visible = D > 0, H(this, ge).alpha = D), r(!1), !1;
|
|
32132
32136
|
}, rl = new WeakSet(), vf = function(e) {
|
|
32133
|
-
"noffs" in e && (ot(this,
|
|
32134
|
-
},
|
|
32137
|
+
"noffs" in e && (ot(this, ca, e.noffs ?? ""), ot(this, il, new RegExp(`[ ${H(this, ca)}]`))), "ffs" in e && (H(this, kn) ?? ot(this, kn, ""), ot(this, Bn, H(this, kn) === "" ? () => "" : (r) => H(this, il).test(r) ? "" : ` font-feature-settings: ${H(this, kn)};`));
|
|
32138
|
+
}, kn = new WeakMap(), Bn = new WeakMap(), ca = new WeakMap(), il = new WeakMap(), fa = new WeakMap(), Hi = new WeakMap(), er = new WeakMap(), dh = new WeakSet(), md = function(e, r, D, N = "") {
|
|
32135
32139
|
if (!D)
|
|
32136
32140
|
return ` style='${N}'`;
|
|
32137
32141
|
const k = e.length * 2;
|
|
@@ -32156,35 +32160,35 @@ aa = new WeakMap(), Or = new WeakMap(), qo = new WeakMap(), oa = new WeakMap(),
|
|
|
32156
32160
|
break;
|
|
32157
32161
|
case "even":
|
|
32158
32162
|
const G = (k - r.length) / (r.length + 1);
|
|
32159
|
-
$ = "ruby-align: space-between; " + (H(this,
|
|
32163
|
+
$ = "ruby-align: space-between; " + (H(this, he).tategaki ? `padding-top: ${G}em; padding-bottom: ${G}em;` : `padding-left: ${G}em; padding-right: ${G}em;`);
|
|
32160
32164
|
break;
|
|
32161
32165
|
case "1ruby":
|
|
32162
|
-
$ = "ruby-align: space-between; " + (H(this,
|
|
32166
|
+
$ = "ruby-align: space-between; " + (H(this, he).tategaki ? "padding-top: 1em; padding-bottom: 1em;" : "padding-left: 1em; padding-right: 1em;");
|
|
32163
32167
|
break;
|
|
32164
32168
|
default:
|
|
32165
32169
|
$ = `text-align: ${D};`;
|
|
32166
32170
|
}
|
|
32167
32171
|
return ` style='${$} ${N}'`;
|
|
32168
|
-
}, ur = new WeakMap(), nl = new WeakMap(),
|
|
32172
|
+
}, ur = new WeakMap(), nl = new WeakMap(), da = new WeakSet(), pu = function(e, r, D) {
|
|
32169
32173
|
var U;
|
|
32170
32174
|
const N = e === " " ? " " : e;
|
|
32171
|
-
H(ie, Or).doRecLog() && ot(this,
|
|
32172
|
-
const { cl: k, sty: $, lnk: G } = lt(this, gi,
|
|
32173
|
-
return r ? `<span${k} style='${$} ${H(this,
|
|
32174
|
-
Array.from(e).map((z, X) => `<span${k}${G} style='${X > 0 ? lt(this, gi,
|
|
32175
|
+
H(ie, Or).doRecLog() && ot(this, Fn, H(this, Fn) + (N + (r ? `《${r}》` : "")));
|
|
32176
|
+
const { cl: k, sty: $, lnk: G } = lt(this, gi, sn).call(this, !0, null, e);
|
|
32177
|
+
return r ? `<span${k} style='${$} ${H(this, Bn).call(this, e)}'><ruby>${// 文字個別に出現させるため以下にも ${cl} が必要
|
|
32178
|
+
Array.from(e).map((z, X) => `<span${k}${G} style='${X > 0 ? lt(this, gi, sn).call(this, !0, null, e).sty : $} display: inline;'>${z === " " ? " " : z}</span>`).join("")}<rt${G}${this.mkStyle_r_align(
|
|
32175
32179
|
e,
|
|
32176
32180
|
r,
|
|
32177
32181
|
D,
|
|
32178
32182
|
H(this, Wr).style.cssText + (((U = H(this, yr).at(-1)) == null ? void 0 : U.o.r_style) ?? "")
|
|
32179
|
-
)}>${r}</rt></ruby></span>` : `<span${k} style='${$} ${H(this,
|
|
32180
|
-
}, gi = new WeakSet(),
|
|
32183
|
+
)}>${r}</rt></ruby></span>` : `<span${k} style='${$} ${H(this, Bn).call(this, e)}'${G}>${N}</span>`;
|
|
32184
|
+
}, gi = new WeakSet(), sn = function(e, r, D = `
|
|
32181
32185
|
`) {
|
|
32182
32186
|
var $, G, U;
|
|
32183
|
-
const N = H(this,
|
|
32184
|
-
H(ie,
|
|
32185
|
-
const k = `data-add='{"ch_in_style":"${H(this,
|
|
32187
|
+
const N = H(this, ua) ? r ?? (($ = H(this, yr).at(0)) == null ? void 0 : $.o.wait) ?? (H(ie, pi) ? H(ie, Dn)[D.at(0) ?? ""] ?? 0 : LayerMng.msecChWait) : 0;
|
|
32188
|
+
H(ie, In).isSkippingByKeyDown() ? ot(this, qr, 0) : e && H(this, ua) && ot(this, qr, H(this, qr) + Number(N));
|
|
32189
|
+
const k = `data-add='{"ch_in_style":"${H(this, Nn)}", "ch_out_style":"${H(this, ha)}"}'`;
|
|
32186
32190
|
return {
|
|
32187
|
-
cl: ` class='sn_ch${N > 0 ? ` sn_ch_in_${H(this,
|
|
32191
|
+
cl: ` class='sn_ch${N > 0 ? ` sn_ch_in_${H(this, Nn)}` : ""}'`,
|
|
32188
32192
|
// TxtStage.goTxt()はこれ単位で文字出現させる
|
|
32189
32193
|
sty: `animation-delay: ${H(this, qr)}ms;${((G = H(this, yr).at(-1)) == null ? void 0 : G.o.style) ?? ""}`,
|
|
32190
32194
|
// TxtStage.goTxt()はこれ単位で文字出現させる
|
|
@@ -32194,24 +32198,24 @@ aa = new WeakMap(), Or = new WeakMap(), qo = new WeakMap(), oa = new WeakMap(),
|
|
|
32194
32198
|
}, qr = new WeakMap(), Dr = new WeakMap(), _r = new WeakMap(), yr = new WeakMap(), sl = new WeakSet(), gf = function(e) {
|
|
32195
32199
|
H(this, yr).push({
|
|
32196
32200
|
o: e,
|
|
32197
|
-
r_align: H(this,
|
|
32198
|
-
ch_in_style: H(this,
|
|
32199
|
-
ch_out_style: H(this,
|
|
32200
|
-
}), "r_align" in e && ot(this,
|
|
32201
|
-
},
|
|
32201
|
+
r_align: H(this, er),
|
|
32202
|
+
ch_in_style: H(this, Nn),
|
|
32203
|
+
ch_out_style: H(this, ha)
|
|
32204
|
+
}), "r_align" in e && ot(this, er, e.r_align), lt(this, An, Va).call(this, e), lt(this, Ln, Xa).call(this, e);
|
|
32205
|
+
}, pa = new WeakSet(), vu = function() {
|
|
32202
32206
|
const e = H(this, yr).pop();
|
|
32203
|
-
e && (ot(this,
|
|
32207
|
+
e && (ot(this, er, e.r_align), lt(this, An, Va).call(this, { in_style: e.ch_in_style }), lt(this, Ln, Xa).call(this, { out_style: e.ch_out_style }));
|
|
32204
32208
|
}, al = new WeakSet(), mf = function(e) {
|
|
32205
32209
|
const r = H(this, yr).at(-1);
|
|
32206
32210
|
if (!r) {
|
|
32207
32211
|
lt(this, sl, gf).call(this, e);
|
|
32208
32212
|
return;
|
|
32209
32213
|
}
|
|
32210
|
-
r.o = { ...r.o, ...e }, !e.style && !e.r_style && (r.o.style = "", r.o.r_style = ""), "r_align" in e && ot(this,
|
|
32211
|
-
},
|
|
32214
|
+
r.o = { ...r.o, ...e }, !e.style && !e.r_style && (r.o.style = "", r.o.r_style = ""), "r_align" in e && ot(this, er, e.r_align), lt(this, An, Va).call(this, e), lt(this, Ln, Xa).call(this, e);
|
|
32215
|
+
}, Fn = new WeakMap(), // 文字出現演出
|
|
32212
32216
|
rt(TxtLayer, Ko), // 文字消去演出
|
|
32213
|
-
rt(TxtLayer, Zo), rt(TxtLayer, ch), rt(TxtLayer,
|
|
32214
|
-
rt(TxtLayer, pi, !1), rt(TxtLayer,
|
|
32217
|
+
rt(TxtLayer, Zo), rt(TxtLayer, ch), rt(TxtLayer, oa, void 0), rt(TxtLayer, Or, void 0), rt(TxtLayer, qo, void 0), rt(TxtLayer, la, void 0), rt(TxtLayer, Jo, void 0), rt(TxtLayer, In, void 0), rt(TxtLayer, Qo, void 0), // 文字ごとのウェイト
|
|
32218
|
+
rt(TxtLayer, pi, !1), rt(TxtLayer, Dn, {}), // cssチェック・保存用
|
|
32215
32219
|
rt(TxtLayer, fh, {
|
|
32216
32220
|
"text-align": 0,
|
|
32217
32221
|
"text-align-last": 0,
|
|
@@ -32221,14 +32225,14 @@ rt(TxtLayer, fh, {
|
|
|
32221
32225
|
"padding-right": 0,
|
|
32222
32226
|
"padding-top": 0,
|
|
32223
32227
|
"padding-bottom": 0
|
|
32224
|
-
}), rt(TxtLayer,
|
|
32225
|
-
var
|
|
32228
|
+
}), rt(TxtLayer, fa, (e) => e);
|
|
32229
|
+
var va, $n, ph, _d, ga, ma, gu, vh, yd, gh, bd, ol, mh, xd, _h, Sd;
|
|
32226
32230
|
class FrameMng {
|
|
32227
32231
|
constructor(t, e, r, D, N, k, $) {
|
|
32228
32232
|
// HTMLフレーム
|
|
32229
32233
|
// フレーム追加
|
|
32230
32234
|
rt(this, ph);
|
|
32231
|
-
rt(this,
|
|
32235
|
+
rt(this, ma);
|
|
32232
32236
|
// フレーム変数を取得
|
|
32233
32237
|
rt(this, vh);
|
|
32234
32238
|
// フレーム変数に設定
|
|
@@ -32236,32 +32240,32 @@ class FrameMng {
|
|
|
32236
32240
|
rt(this, mh);
|
|
32237
32241
|
// フレームをトゥイーン開始
|
|
32238
32242
|
rt(this, _h);
|
|
32239
|
-
rt(this,
|
|
32240
|
-
rt(this,
|
|
32241
|
-
rt(this,
|
|
32243
|
+
rt(this, va, void 0);
|
|
32244
|
+
rt(this, $n, /* @__PURE__ */ Object.create(null));
|
|
32245
|
+
rt(this, ga, {});
|
|
32242
32246
|
// フレームに設定
|
|
32243
32247
|
rt(this, ol, 1);
|
|
32244
32248
|
this.cfg = t, this.appPixi = r, this.val = D, this.main = N, this.sys = k, this.hTwInf = $, e.add_frame = (G) => lt(this, ph, _d).call(this, G), e.let_frame = (G) => lt(this, vh, yd).call(this, G), e.set_frame = (G) => lt(this, gh, bd).call(this, G), e.frame = (G) => lt(this, mh, xd).call(this, G), e.tsy_frame = (G) => lt(this, _h, Sd).call(this, G);
|
|
32245
32249
|
}
|
|
32246
32250
|
setEvtMng(t) {
|
|
32247
|
-
ot(this,
|
|
32251
|
+
ot(this, va, t);
|
|
32248
32252
|
}
|
|
32249
32253
|
destroy() {
|
|
32250
|
-
for (const t of Object.values(H(this,
|
|
32254
|
+
for (const t of Object.values(H(this, $n)))
|
|
32251
32255
|
t.parentElement.removeChild(t);
|
|
32252
|
-
ot(this,
|
|
32256
|
+
ot(this, $n, /* @__PURE__ */ Object.create(null));
|
|
32253
32257
|
}
|
|
32254
32258
|
getFrmDisabled(t) {
|
|
32255
|
-
return H(this,
|
|
32259
|
+
return H(this, ga)[t];
|
|
32256
32260
|
}
|
|
32257
32261
|
cvsResize() {
|
|
32258
|
-
for (const [t, e] of Object.entries(H(this,
|
|
32262
|
+
for (const [t, e] of Object.entries(H(this, $n))) {
|
|
32259
32263
|
const r = "const.sn.frm." + t, D = Number(this.val.getVal(r + ".x")), N = Number(this.val.getVal(r + ".y")), k = Number(this.val.getVal(r + ".width")), $ = Number(this.val.getVal(r + ".height"));
|
|
32260
32264
|
e.style.left = `${this.sys.ofsLeft4elm + D * this.sys.cvsScale}px`, e.style.top = `${this.sys.ofsTop4elm + N * this.sys.cvsScale}px`, e.width = String(k * this.sys.cvsScale), e.height = String($ * this.sys.cvsScale);
|
|
32261
32265
|
}
|
|
32262
32266
|
}
|
|
32263
32267
|
}
|
|
32264
|
-
|
|
32268
|
+
va = new WeakMap(), $n = new WeakMap(), ph = new WeakSet(), _d = function(t) {
|
|
32265
32269
|
const { id: e, src: r, alpha: D = 1, scale_x: N = 1, scale_y: k = 1, rotate: $ = 0 } = t;
|
|
32266
32270
|
if (!e)
|
|
32267
32271
|
throw "idは必須です";
|
|
@@ -32270,7 +32274,7 @@ pa = new WeakMap(), Fn = new WeakMap(), ph = new WeakSet(), _d = function(t) {
|
|
|
32270
32274
|
const G = "const.sn.frm." + e;
|
|
32271
32275
|
if (this.val.getVal(`tmp:${G}`))
|
|
32272
32276
|
throw `frame【${e}】はすでにあります`;
|
|
32273
|
-
const U = argChk_Boolean(t, "visible", !0), z = t.b_color ? ` background-color: ${t.b_color};` : "", X = lt(this,
|
|
32277
|
+
const U = argChk_Boolean(t, "visible", !0), z = t.b_color ? ` background-color: ${t.b_color};` : "", X = lt(this, ma, gu).call(this, t);
|
|
32274
32278
|
Main.cvs.insertAdjacentHTML("beforebegin", `<iframe id="${e}" sandbox="allow-scripts allow-same-origin" style="opacity: ${D}; position: absolute; left:${this.sys.ofsLeft4elm + X.x * this.sys.cvsScale}px; top: ${this.sys.ofsTop4elm + X.y * this.sys.cvsScale}px; z-index: 1; ${z} border: 0px; overflow: hidden; display: ${U ? "inline" : "none"}; transform: scale(${N}, ${k}) rotate(${$}deg);" width="${X.width * this.sys.cvsScale}" height="${X.height * this.sys.cvsScale}"></iframe>`);
|
|
32275
32279
|
const V = this.cfg.searchPath(r, SEARCH_PATH_ARG_EXT.HTML), Y = new Loader().add({ name: r, url: V, xhrType: LoaderResource.XHR_RESPONSE_TYPE.TEXT });
|
|
32276
32280
|
return this.sys.crypto && Y.use((q, W) => {
|
|
@@ -32283,17 +32287,17 @@ pa = new WeakMap(), Fn = new WeakMap(), ph = new WeakSet(), _d = function(t) {
|
|
|
32283
32287
|
}), Y.load((q, W) => {
|
|
32284
32288
|
var Z;
|
|
32285
32289
|
const K = document.getElementById(e);
|
|
32286
|
-
H(this,
|
|
32290
|
+
H(this, $n)[e] = K, H(this, ga)[e] = !1, K.srcdoc = String((Z = W[r]) == null ? void 0 : Z.data).replace("sn_repRes();", "").replaceAll(
|
|
32287
32291
|
/\s(?:src|href)=(["'])(\S+)\1/g,
|
|
32288
32292
|
(J, Q, et) => et.slice(0, 3) === "../" ? this.sys.cur + et.slice(4) : J.replace(Q, Q + V.slice(0, V.lastIndexOf("/") + 1))
|
|
32289
32293
|
), K.onload = () => {
|
|
32290
32294
|
var Q;
|
|
32291
32295
|
this.val.setVal_Nochk("tmp", G, !0), this.val.setVal_Nochk("tmp", G + ".alpha", D), this.val.setVal_Nochk("tmp", G + ".x", X.x), this.val.setVal_Nochk("tmp", G + ".y", X.y), this.val.setVal_Nochk("tmp", G + ".scale_x", N), this.val.setVal_Nochk("tmp", G + ".scale_y", k), this.val.setVal_Nochk("tmp", G + ".rotate", $), this.val.setVal_Nochk("tmp", G + ".width", X.width), this.val.setVal_Nochk("tmp", G + ".height", X.height), this.val.setVal_Nochk("tmp", G + ".visible", U);
|
|
32292
32296
|
const J = K.contentWindow;
|
|
32293
|
-
H(this,
|
|
32297
|
+
H(this, va).resvFlameEvent(J), (Q = J.sn_repRes) == null || Q.call(J, (et) => GrpLayer.loadPic2Img(et.dataset.src ?? "", et)), this.main.resume();
|
|
32294
32298
|
};
|
|
32295
32299
|
}), !0;
|
|
32296
|
-
},
|
|
32300
|
+
}, ga = new WeakMap(), ma = new WeakSet(), gu = function(t) {
|
|
32297
32301
|
const e = { ...t }, r = this.sys.resolution;
|
|
32298
32302
|
return new DOMRect(
|
|
32299
32303
|
argChk_Num(e, "x", 0) * r,
|
|
@@ -32354,7 +32358,7 @@ pa = new WeakMap(), Fn = new WeakMap(), ph = new WeakSet(), _d = function(t) {
|
|
|
32354
32358
|
const $ = N.opacity = String(t.alpha);
|
|
32355
32359
|
this.val.setVal_Nochk("tmp", D + ".alpha", $);
|
|
32356
32360
|
}
|
|
32357
|
-
const k = lt(this,
|
|
32361
|
+
const k = lt(this, ma, gu).call(this, t);
|
|
32358
32362
|
if (("x" in t || "y" in t) && (N.left = `${this.sys.ofsLeft4elm + k.x * this.sys.cvsScale}px`, N.top = `${this.sys.ofsTop4elm + k.y * this.sys.cvsScale}px`, this.val.setVal_Nochk("tmp", D + ".x", k.x), this.val.setVal_Nochk("tmp", D + ".y", k.y)), "scale_x" in t || "scale_y" in t || "rotate" in t) {
|
|
32359
32363
|
const $ = argChk_Num(t, "scale_x", 1), G = argChk_Num(t, "scale_y", 1), U = argChk_Num(t, "rotate", 0);
|
|
32360
32364
|
N.transform = `scale(${$}, ${G}) rotate(${U}deg)`, this.val.setVal_Nochk("tmp", D + ".scale_x", $), this.val.setVal_Nochk("tmp", D + ".scale_y", G), this.val.setVal_Nochk("tmp", D + ".rotate", U);
|
|
@@ -32364,7 +32368,7 @@ pa = new WeakMap(), Fn = new WeakMap(), ph = new WeakSet(), _d = function(t) {
|
|
|
32364
32368
|
N.display = $ ? "inline" : "none", this.val.setVal_Nochk("tmp", D + ".visible", $);
|
|
32365
32369
|
}
|
|
32366
32370
|
if ("b_color" in t && (N.backgroundColor = t.b_color), "disabled" in t) {
|
|
32367
|
-
const $ = H(this,
|
|
32371
|
+
const $ = H(this, ga)[e] = argChk_Boolean(t, "disabled", !0);
|
|
32368
32372
|
r.contentDocument.body.querySelectorAll("input,select").forEach((U) => U.disabled = $);
|
|
32369
32373
|
}
|
|
32370
32374
|
return !1;
|
|
@@ -32388,7 +32392,7 @@ pa = new WeakMap(), Fn = new WeakMap(), ph = new WeakSet(), _d = function(t) {
|
|
|
32388
32392
|
});
|
|
32389
32393
|
let et = () => {
|
|
32390
32394
|
};
|
|
32391
|
-
const nt = lt(this,
|
|
32395
|
+
const nt = lt(this, ma, gu).call(this, Z);
|
|
32392
32396
|
(D || N || k || $ || G) && (J.x = nt.x, J.y = nt.y, J.sx = argChk_Num(Z, "scale_x", 1), J.sy = argChk_Num(Z, "scale_y", 1), J.r = argChk_Num(Z, "rotate", 0), et = () => {
|
|
32393
32397
|
q.style.left = this.sys.ofsLeft4elm + K.x * this.sys.cvsScale + "px", q.style.top = this.sys.ofsTop4elm + K.y * this.sys.cvsScale + "px", q.style.transform = `scale(${K.sx}, ${K.sy}) rotate(${K.r}deg)`, this.val.setVal_Nochk("tmp", W + ".x", K.x), this.val.setVal_Nochk("tmp", W + ".y", K.y), this.val.setVal_Nochk("tmp", W + ".scale_x", K.sx), this.val.setVal_Nochk("tmp", W + ".scale_y", K.sy), this.val.setVal_Nochk("tmp", W + ".rotate", K.r);
|
|
32394
32398
|
});
|
|
@@ -32408,7 +32412,7 @@ ${e}`, at = () => {
|
|
|
32408
32412
|
this.appPixi.stage.interactive = !0;
|
|
32409
32413
|
const Pt = this.hTwInf[st];
|
|
32410
32414
|
Pt && (delete this.hTwInf[st], (St = Pt.tw) == null || St.stop(), Pt.resume && this.main.resume(), (gt = Pt.onEnd) == null || gt.call(Pt));
|
|
32411
|
-
}, ut = argChk_Num(t, "time", NaN) * (this.val.getVal("tmp:sn.skip.enabled") || H(this,
|
|
32415
|
+
}, ut = argChk_Num(t, "time", NaN) * (this.val.getVal("tmp:sn.skip.enabled") || H(this, va).isSkippingByKeyDown() ? 0 : 1), ft = CmnTween.ease(X), ct = argChk_Num(t, "repeat", 1), vt = ct === 0 ? 1 / 0 : ct - 1, yt = argChk_Boolean(t, "yoyo", !1), mt = argChk_Num(t, "delay", 0), _t = new Tween(K).to(J, ut).easing(ft).repeat(vt).yoyo(yt).delay(mt).onUpdate(() => {
|
|
32412
32416
|
Q(), et(), tt(), it();
|
|
32413
32417
|
});
|
|
32414
32418
|
let Tt = _t;
|
|
@@ -32442,7 +32446,7 @@ ${e}`, at = () => {
|
|
|
32442
32446
|
_t.start();
|
|
32443
32447
|
return this.hTwInf[st] = { tw: Tt, resume: !1 }, !1;
|
|
32444
32448
|
};
|
|
32445
|
-
var br,
|
|
32449
|
+
var br, le, Te, Vi, Gn, ya, ll, ul, hl, ba, cl, _f, Xi, Ar, yh, Ed, rr, bh, Td, xh, wd, Sh, Cd, ae, Kr, Zr, fl, Eh, Pd, xa, mu, Th, Md, wh, dl, Ch, Un, jn, mi, Ae, zn, Ph, Rd, Ne, Ke, sr, Mh, Od, Rh, Id, Oh, Dd, Hn, Ya, Ih, Ad, hr, Dh, Nd, Ah, Ld, Nh, kd, Lh, Bd, kh, Fd, Yi, Vn, Wa, cr, Bh, $d, pl, Fh, Gd, Jr, Xn, Wi, Es, Nr, Qr, $h, Ud, Gh, jd, Uh, zd, jh, Hd, zh, Vd, Hh, Xd, Vh, Yd, vl, yf, Xh, Wd, Yh, qd, Wh, Kd, qh, Zd, Kh, Jd, Zh, Qd, Jh, tp;
|
|
32446
32450
|
const Di = class {
|
|
32447
32451
|
constructor(t, e, r, D, N, k, $, G, U, z) {
|
|
32448
32452
|
rt(this, cl);
|
|
@@ -32457,18 +32461,18 @@ const Di = class {
|
|
|
32457
32461
|
// レイヤを追加する
|
|
32458
32462
|
rt(this, Sh);
|
|
32459
32463
|
rt(this, Eh);
|
|
32460
|
-
rt(this,
|
|
32464
|
+
rt(this, xa);
|
|
32461
32465
|
// レイヤ設定の消去
|
|
32462
32466
|
rt(this, Th);
|
|
32463
32467
|
// ページ裏表を交換
|
|
32464
32468
|
rt(this, Ph);
|
|
32465
|
-
rt(this,
|
|
32469
|
+
rt(this, Ke);
|
|
32466
32470
|
rt(this, Mh);
|
|
32467
32471
|
rt(this, Rh);
|
|
32468
32472
|
// トランス終了待ち
|
|
32469
32473
|
rt(this, Oh);
|
|
32470
32474
|
// レイヤのトランジションの停止
|
|
32471
|
-
rt(this,
|
|
32475
|
+
rt(this, Hn);
|
|
32472
32476
|
// 画面を揺らす
|
|
32473
32477
|
rt(this, Ih);
|
|
32474
32478
|
rt(this, Dh);
|
|
@@ -32481,7 +32485,7 @@ const Di = class {
|
|
|
32481
32485
|
// 一時停止再開
|
|
32482
32486
|
rt(this, kh);
|
|
32483
32487
|
// 文字を追加する
|
|
32484
|
-
rt(this,
|
|
32488
|
+
rt(this, Vn);
|
|
32485
32489
|
rt(this, Bh);
|
|
32486
32490
|
rt(this, Fh);
|
|
32487
32491
|
rt(this, Wi);
|
|
@@ -32515,11 +32519,11 @@ const Di = class {
|
|
|
32515
32519
|
// ボタンを表示
|
|
32516
32520
|
rt(this, Jh);
|
|
32517
32521
|
rt(this, br, void 0);
|
|
32518
|
-
rt(this,
|
|
32522
|
+
rt(this, le, new Container());
|
|
32519
32523
|
rt(this, Te, new Container());
|
|
32520
32524
|
rt(this, Vi, void 0);
|
|
32521
|
-
rt(this,
|
|
32522
|
-
rt(this,
|
|
32525
|
+
rt(this, Gn, void 0);
|
|
32526
|
+
rt(this, ya, new EventListenerCtn());
|
|
32523
32527
|
rt(this, ll, () => update());
|
|
32524
32528
|
rt(this, ul, {
|
|
32525
32529
|
attach: (t) => (DesignCast.leaveMode(), !1),
|
|
@@ -32537,11 +32541,11 @@ const Di = class {
|
|
|
32537
32541
|
_selectNode: (t, e) => (lt(this, cl, _f).call(this, e.node), !1)
|
|
32538
32542
|
});
|
|
32539
32543
|
rt(this, hl, "");
|
|
32540
|
-
rt(this,
|
|
32544
|
+
rt(this, ba, "");
|
|
32541
32545
|
Ot(this, "getFrmDisabled", (t) => H(this, Vi).getFrmDisabled(t));
|
|
32542
32546
|
rt(this, Xi, void 0);
|
|
32543
32547
|
rt(this, Ar, void 0);
|
|
32544
|
-
rt(this,
|
|
32548
|
+
rt(this, rr, (t, e = this.currentTxtlayForeNeedErr, r = !0) => e.tagCh("| 《" + t + "》"));
|
|
32545
32549
|
Ot(this, "goTxt", () => {
|
|
32546
32550
|
});
|
|
32547
32551
|
Ot(this, "breakLine", () => {
|
|
@@ -32591,37 +32595,37 @@ void main(void) {
|
|
|
32591
32595
|
tick: 0
|
|
32592
32596
|
});
|
|
32593
32597
|
rt(this, Ch, new Filter(void 0, H(this, wh), H(this, dl)));
|
|
32594
|
-
rt(this,
|
|
32598
|
+
rt(this, Un, RenderTexture.create({
|
|
32595
32599
|
width: CmnLib.stageW,
|
|
32596
32600
|
height: CmnLib.stageH
|
|
32597
32601
|
}));
|
|
32598
|
-
rt(this,
|
|
32602
|
+
rt(this, jn, new Sprite(H(this, Un)));
|
|
32599
32603
|
rt(this, mi, RenderTexture.create({
|
|
32600
32604
|
width: CmnLib.stageW,
|
|
32601
32605
|
height: CmnLib.stageH
|
|
32602
32606
|
}));
|
|
32603
32607
|
rt(this, Ae, new Sprite(H(this, mi)));
|
|
32604
|
-
rt(this,
|
|
32608
|
+
rt(this, zn, []);
|
|
32605
32609
|
rt(this, Ne, { tw: void 0, resume: !1 });
|
|
32606
32610
|
// トゥイーン開始
|
|
32607
32611
|
rt(this, hr, {});
|
|
32608
32612
|
rt(this, cr, (t) => {
|
|
32609
|
-
throw H(this,
|
|
32613
|
+
throw H(this, Xn).call(this), 0;
|
|
32610
32614
|
});
|
|
32611
32615
|
// 操作対象のメッセージレイヤの指定
|
|
32612
32616
|
rt(this, pl, (t) => {
|
|
32613
|
-
throw H(this,
|
|
32617
|
+
throw H(this, Xn).call(this), 0;
|
|
32614
32618
|
});
|
|
32615
32619
|
rt(this, Jr, void 0);
|
|
32616
32620
|
// カレントテキストレイヤ
|
|
32617
|
-
rt(this,
|
|
32621
|
+
rt(this, Xn, () => {
|
|
32618
32622
|
throw "文字レイヤーがありません。文字表示や操作する前に、[add_lay layer=(レイヤ名) class=txt]で文字レイヤを追加して下さい";
|
|
32619
32623
|
});
|
|
32620
32624
|
rt(this, Nr, "");
|
|
32621
32625
|
rt(this, Qr, []);
|
|
32622
32626
|
this.cfg = t, this.hTag = e, this.appPixi = r, this.val = D, this.main = N, this.scrItr = k, this.sys = $, this.sndMng = G, this.alzTagArg = U, this.prpPrs = z;
|
|
32623
32627
|
const X = () => {
|
|
32624
|
-
if ($.cvsResize(), this.cvsResizeDesign(), H(this,
|
|
32628
|
+
if ($.cvsResize(), this.cvsResizeDesign(), H(this, ba))
|
|
32625
32629
|
for (const W of H(this, Kr))
|
|
32626
32630
|
H(this, ae)[W].fore.cvsResizeChildren();
|
|
32627
32631
|
else
|
|
@@ -32630,18 +32634,18 @@ void main(void) {
|
|
|
32630
32634
|
H(this, Vi).cvsResize(), H(this, Ar).cvsResize();
|
|
32631
32635
|
};
|
|
32632
32636
|
if (CmnLib.isMobile)
|
|
32633
|
-
H(this,
|
|
32637
|
+
H(this, ya).add(globalThis, "orientationchange", X, { passive: !0 });
|
|
32634
32638
|
else {
|
|
32635
32639
|
let W;
|
|
32636
|
-
H(this,
|
|
32640
|
+
H(this, ya).add(globalThis, "resize", () => {
|
|
32637
32641
|
W || (W = setTimeout(() => {
|
|
32638
32642
|
W = void 0, X();
|
|
32639
32643
|
}, 1e3 / 60 * 10));
|
|
32640
32644
|
}, { passive: !0 });
|
|
32641
32645
|
}
|
|
32642
|
-
$.cvsResize(), TxtLayer.init(t, e, D, this, (W) => H(this, ae)[W.layname].fore === W, r), GrpLayer.init(N, t, r, $, G, D), Button.init(t), ot(this, Vi, new FrameMng(t, e, r, D, N, $, H(this, hr))), $.hFactoryCls.grp = () => new GrpLayer(), $.hFactoryCls.txt = () => new TxtLayer(), e.loadplugin = (W) => lt(this, xh, wd).call(this, W), e.snapshot = (W) => lt(this, bh, Td).call(this, W), e.add_lay = (W) => lt(this, Sh, Cd).call(this, W), e.clear_lay = (W) => lt(this, Th, Md).call(this, W), e.finish_trans = () => lt(this,
|
|
32646
|
+
$.cvsResize(), TxtLayer.init(t, e, D, this, (W) => H(this, ae)[W.layname].fore === W, r), GrpLayer.init(N, t, r, $, G, D), Button.init(t), ot(this, Vi, new FrameMng(t, e, r, D, N, $, H(this, hr))), $.hFactoryCls.grp = () => new GrpLayer(), $.hFactoryCls.txt = () => new TxtLayer(), e.loadplugin = (W) => lt(this, xh, wd).call(this, W), e.snapshot = (W) => lt(this, bh, Td).call(this, W), e.add_lay = (W) => lt(this, Sh, Cd).call(this, W), e.clear_lay = (W) => lt(this, Th, Md).call(this, W), e.finish_trans = () => lt(this, Hn, Ya).call(this), e.lay = (W) => lt(this, Eh, Pd).call(this, W), e.trans = (W) => lt(this, Ph, Rd).call(this, W), e.wt = (W) => lt(this, Oh, Dd).call(this, W), e.quake = (W) => lt(this, Ih, Ad).call(this, W), e.stop_quake = (W) => e.finish_trans(W), e.wq = (W) => e.wt(W), e.pause_tsy = (W) => lt(this, Lh, Bd).call(this, W), e.resume_tsy = (W) => lt(this, kh, Fd).call(this, W), e.stop_tsy = (W) => lt(this, Nh, kd).call(this, W), e.tsy = (W) => lt(this, Dh, Nd).call(this, W), e.wait_tsy = (W) => lt(this, Ah, Ld).call(this, W), e.ch = (W) => lt(this, Vn, Wa).call(this, W), e.clear_text = (W) => lt(this, $h, Ud).call(this, W), e.current = (W) => H(this, pl).call(this, W), e.endlink = (W) => lt(this, Gh, jd).call(this, W), e.er = (W) => lt(this, Uh, zd).call(this, W), e.graph = (W) => lt(this, jh, Hd).call(this, W), e.link = (W) => lt(this, zh, Vd).call(this, W), e.r = (W) => lt(this, Hh, Xd).call(this, W), e.rec_ch = (W) => lt(this, vl, yf).call(this, W), e.rec_r = (W) => lt(this, Vh, Yd).call(this, W), e.reset_rec = (W) => lt(this, Xh, Wd).call(this, W), e.ruby2 = (W) => lt(this, Yh, qd).call(this, W), e.span = (W) => lt(this, Wh, Kd).call(this, W), e.tcy = (W) => lt(this, qh, Zd).call(this, W), e.add_face = (W) => GrpLayer.add_face(W), e.wv = (W) => GrpLayer.wv(W), e.dump_lay = (W) => lt(this, Kh, Jd).call(this, W), e.enable_event = (W) => lt(this, Zh, Qd).call(this, W), e.button = (W) => lt(this, Jh, tp).call(this, W), t.existsBreakline && (this.breakLine = () => H(this, rr).call(this, 'grp|{"id":"break","pic":"breakline"}')), t.existsBreakpage && (this.breakPage = () => H(this, rr).call(this, 'grp|{"id":"break","pic":"breakpage"}')), ot(this, Gn, parseColor(String(t.oCfg.init.bg_color)));
|
|
32643
32647
|
const V = new Graphics();
|
|
32644
|
-
V.beginFill(H(this,
|
|
32648
|
+
V.beginFill(H(this, Gn), 1).lineStyle(0, H(this, Gn)).drawRect(0, 0, CmnLib.stageW, CmnLib.stageH).endFill(), H(this, le).addChild(V.clone()), H(this, Te).addChild(V), H(this, Te).visible = !1, H(this, le).name = "page:A", H(this, Te).name = "page:B", ot(this, br, r.stage), H(this, br).addChild(H(this, Te)), H(this, br).addChild(H(this, le)), H(this, br).addChild(H(this, jn)), H(this, br).addChild(H(this, Ae)), H(this, br).name = "stage", r.ticker.add(H(this, ll));
|
|
32645
32649
|
const Y = (W, K) => {
|
|
32646
32650
|
lt(this, yh, Ed).call(this, Number(K));
|
|
32647
32651
|
};
|
|
@@ -32672,17 +32676,17 @@ void main(void) {
|
|
|
32672
32676
|
t.destroy();
|
|
32673
32677
|
}
|
|
32674
32678
|
destroy() {
|
|
32675
|
-
H(this,
|
|
32679
|
+
H(this, ya).clear(), GrpLayer.destroy(), RubySpliter.destroy(), TxtStage.destroy(), TxtLayer.destroy(), H(this, Vi).destroy(), this.stopAllTw(), this.appPixi.ticker.remove(H(this, ll)), ot(Di, Yi, 10);
|
|
32676
32680
|
}
|
|
32677
32681
|
// トゥイーン全停止
|
|
32678
32682
|
stopAllTw() {
|
|
32679
32683
|
ot(this, hr, {}), removeAll();
|
|
32680
32684
|
}
|
|
32681
32685
|
clearBreak() {
|
|
32682
|
-
this.currentTxtlayFore && (this.clearBreak = () => H(this,
|
|
32686
|
+
this.currentTxtlayFore && (this.clearBreak = () => H(this, rr).call(this, "del|break"), this.clearBreak());
|
|
32683
32687
|
}
|
|
32684
32688
|
clickTxtLay() {
|
|
32685
|
-
return this.currentTxtlayFore ? lt(this,
|
|
32689
|
+
return this.currentTxtlayFore ? lt(this, Ke, sr).call(this).some((t) => {
|
|
32686
32690
|
const e = H(this, ae)[t].fore;
|
|
32687
32691
|
return e instanceof TxtLayer && e.click();
|
|
32688
32692
|
}) : !1;
|
|
@@ -32697,7 +32701,7 @@ void main(void) {
|
|
|
32697
32701
|
ot(Di, Yi, this.scrItr.normalWait);
|
|
32698
32702
|
}
|
|
32699
32703
|
get currentTxtlayForeNeedErr() {
|
|
32700
|
-
return H(this,
|
|
32704
|
+
return H(this, Xn).call(this), this.currentTxtlayFore;
|
|
32701
32705
|
}
|
|
32702
32706
|
get currentTxtlayFore() {
|
|
32703
32707
|
return H(this, Jr) ? H(this, Jr).fore : null;
|
|
@@ -32734,37 +32738,37 @@ void main(void) {
|
|
|
32734
32738
|
const r = [], D = [];
|
|
32735
32739
|
for (const [$, { fore: G, fore: { idx: U }, back: z, cls: X }] of Object.entries(t)) {
|
|
32736
32740
|
D.push({ layer: $, idx: U });
|
|
32737
|
-
const V = (k = H(this, ae))[$] ?? (k[$] = new Pages($, X, H(this,
|
|
32741
|
+
const V = (k = H(this, ae))[$] ?? (k[$] = new Pages($, X, H(this, le), H(this, Te), {}, this.sys, this.val, { isWait: !1 }));
|
|
32738
32742
|
V.fore.playback(G, r), V.back.playback(z, r);
|
|
32739
32743
|
}
|
|
32740
|
-
const N = H(this,
|
|
32744
|
+
const N = H(this, le).children.length;
|
|
32741
32745
|
Promise.allSettled(r).then(() => {
|
|
32742
32746
|
for (const { layer: $, idx: G } of D.sort(({ idx: U }, { idx: z }) => U === z ? 0 : U < z ? -1 : 1)) {
|
|
32743
32747
|
const { fore: U, back: z } = H(this, ae)[$];
|
|
32744
32748
|
if (!U)
|
|
32745
32749
|
return;
|
|
32746
32750
|
const X = N > G ? G : N - 1;
|
|
32747
|
-
H(this,
|
|
32751
|
+
H(this, le).setChildIndex(U.spLay, X), H(this, Te).setChildIndex(z.spLay, X);
|
|
32748
32752
|
}
|
|
32749
32753
|
e();
|
|
32750
32754
|
}).catch(($) => console.error("fn:LayerMng.ts playback e:%o", $));
|
|
32751
32755
|
}
|
|
32752
32756
|
};
|
|
32753
32757
|
let LayerMng = Di;
|
|
32754
|
-
br = new WeakMap(),
|
|
32755
|
-
[Ie(this, hl)._, this.
|
|
32758
|
+
br = new WeakMap(), le = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(), Gn = new WeakMap(), ya = new WeakMap(), ll = new WeakMap(), ul = new WeakMap(), hl = new WeakMap(), ba = new WeakMap(), cl = new WeakSet(), _f = function(t) {
|
|
32759
|
+
[Ie(this, hl)._, this.ba = ""] = t.split("/");
|
|
32756
32760
|
const e = H(this, ae)[H(this, hl)];
|
|
32757
|
-
e && (DesignCast.allHide(), H(this,
|
|
32761
|
+
e && (DesignCast.allHide(), H(this, ba) ? e.fore.showDesignCastChildren() : e.fore.showDesignCast());
|
|
32758
32762
|
}, Xi = new WeakMap(), Ar = new WeakMap(), yh = new WeakSet(), Ed = function(t) {
|
|
32759
|
-
for (const e of lt(this,
|
|
32763
|
+
for (const e of lt(this, Ke, sr).call(this)) {
|
|
32760
32764
|
const r = H(this, ae)[e];
|
|
32761
32765
|
r.fore instanceof TxtLayer && (r.fore.chgBackAlpha(t), r.back.chgBackAlpha(t));
|
|
32762
32766
|
}
|
|
32763
|
-
},
|
|
32767
|
+
}, rr = new WeakMap(), bh = new WeakSet(), Td = function(t) {
|
|
32764
32768
|
const e = t.fn ? t.fn.slice(0, 10) === "userdata:/" ? t.fn : `downloads:/${t.fn + getDateStr("-", "_", "", "_")}.png` : `downloads:/snapshot${getDateStr("-", "_", "", "_")}.png`, r = this.cfg.searchPath(e);
|
|
32765
32769
|
if (!("layer" in t) && this.sys.canCapturePage(r, () => this.main.resume()))
|
|
32766
32770
|
return !0;
|
|
32767
|
-
const D = getExt(r), N = argChk_Color(t, "b_color", H(this,
|
|
32771
|
+
const D = getExt(r), N = argChk_Color(t, "b_color", H(this, Gn)), k = autoDetectRenderer({
|
|
32768
32772
|
width: argChk_Num(t, "width", CmnLib.stageW),
|
|
32769
32773
|
height: argChk_Num(t, "height", CmnLib.stageH),
|
|
32770
32774
|
backgroundAlpha: N > 16777216 && D === "png" ? 0 : 1,
|
|
@@ -32776,12 +32780,12 @@ br = new WeakMap(), ue = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32776
32780
|
if (H(this, Ne).tw)
|
|
32777
32781
|
$.push(new Promise((U) => {
|
|
32778
32782
|
H(this, Te).visible = !0;
|
|
32779
|
-
for (const z of H(this,
|
|
32783
|
+
for (const z of H(this, zn))
|
|
32780
32784
|
k.render(z, { clear: !1 });
|
|
32781
|
-
H(this, Te).visible = !1, H(this,
|
|
32785
|
+
H(this, Te).visible = !1, H(this, jn).visible = !0, H(this, le).filters = H(this, Ae).filters, H(this, le).visible = !0, k.render(H(this, le), { clear: !1 }), H(this, le).visible = !1, H(this, le).filters = [], U();
|
|
32782
32786
|
}));
|
|
32783
32787
|
else
|
|
32784
|
-
for (const U of lt(this,
|
|
32788
|
+
for (const U of lt(this, Ke, sr).call(this, t.layer))
|
|
32785
32789
|
$.push(
|
|
32786
32790
|
new Promise((z) => H(this, ae)[U][G].snapshot(k, () => z()))
|
|
32787
32791
|
);
|
|
@@ -32791,7 +32795,7 @@ br = new WeakMap(), ue = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32791
32795
|
r,
|
|
32792
32796
|
k.plugins.extract.base64(Sprite.from(U))
|
|
32793
32797
|
), !H(this, Ne).tw)
|
|
32794
|
-
for (const z of lt(this,
|
|
32798
|
+
for (const z of lt(this, Ke, sr).call(this, t.layer))
|
|
32795
32799
|
H(this, ae)[z][G].snapshot_end();
|
|
32796
32800
|
k.destroy(!0), this.main.resume();
|
|
32797
32801
|
}), !0;
|
|
@@ -32824,14 +32828,14 @@ br = new WeakMap(), ue = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32824
32828
|
if (!r)
|
|
32825
32829
|
throw "clsは必須です";
|
|
32826
32830
|
const D = { isWait: !1 };
|
|
32827
|
-
switch (H(this, ae)[e] = new Pages(e, r, H(this,
|
|
32831
|
+
switch (H(this, ae)[e] = new Pages(e, r, H(this, le), H(this, Te), t, this.sys, this.val, D), H(this, Kr).push(e), r) {
|
|
32828
32832
|
case "txt":
|
|
32829
|
-
H(this, Zr) || (ot(this,
|
|
32833
|
+
H(this, Zr) || (ot(this, Xn, () => {
|
|
32830
32834
|
}), ot(this, cr, lt(this, Bh, $d)), ot(this, pl, lt(this, Fh, Gd)), this.hTag.current({ layer: e }), this.goTxt = () => {
|
|
32831
32835
|
this.val.getVal("sn.skip.enabled") ? ot(Di, Yi, 0) : this.setNormalChWait();
|
|
32832
|
-
for (const N of lt(this,
|
|
32836
|
+
for (const N of lt(this, Ke, sr).call(this)) {
|
|
32833
32837
|
const k = H(this, ae)[N].fore;
|
|
32834
|
-
k instanceof TxtLayer && H(this,
|
|
32838
|
+
k instanceof TxtLayer && H(this, rr).call(this, "gotxt|", k, !1);
|
|
32835
32839
|
}
|
|
32836
32840
|
}), this.val.setVal_Nochk(
|
|
32837
32841
|
"save",
|
|
@@ -32847,11 +32851,11 @@ br = new WeakMap(), ue = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32847
32851
|
}
|
|
32848
32852
|
return this.scrItr.recodeDesign(t), D.isWait;
|
|
32849
32853
|
}, ae = new WeakMap(), Kr = new WeakMap(), Zr = new WeakMap(), fl = new WeakMap(), Eh = new WeakSet(), Pd = function(t) {
|
|
32850
|
-
const e = lt(this, Wi,
|
|
32854
|
+
const e = lt(this, Wi, Es).call(this, t), r = H(this, ae)[e], D = r.back.spLay, N = r.fore.spLay;
|
|
32851
32855
|
if (argChk_Boolean(t, "float", !1))
|
|
32852
|
-
H(this, Te).setChildIndex(D, H(this, Te).children.length - 1), H(this,
|
|
32856
|
+
H(this, Te).setChildIndex(D, H(this, Te).children.length - 1), H(this, le).setChildIndex(N, H(this, le).children.length - 1), lt(this, xa, mu).call(this);
|
|
32853
32857
|
else if (t.index)
|
|
32854
|
-
argChk_Num(t, "index", 0) && (H(this, Te).setChildIndex(D, t.index), H(this,
|
|
32858
|
+
argChk_Num(t, "index", 0) && (H(this, Te).setChildIndex(D, t.index), H(this, le).setChildIndex(N, t.index), lt(this, xa, mu).call(this));
|
|
32855
32859
|
else if (t.dive) {
|
|
32856
32860
|
const { dive: k } = t;
|
|
32857
32861
|
let $ = 0;
|
|
@@ -32860,34 +32864,34 @@ br = new WeakMap(), ue = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32860
32864
|
const G = H(this, ae)[k];
|
|
32861
32865
|
if (!G)
|
|
32862
32866
|
throw "[lay] 属性 dive【" + k + "】が不正です。レイヤーがありません";
|
|
32863
|
-
const U = G.back, z = G.fore, X = H(this, Te).getChildIndex(U.spLay), V = H(this,
|
|
32864
|
-
$ = X < V ? X : V, $ > H(this, Te).getChildIndex(D) && --$, H(this,
|
|
32867
|
+
const U = G.back, z = G.fore, X = H(this, Te).getChildIndex(U.spLay), V = H(this, le).getChildIndex(z.spLay);
|
|
32868
|
+
$ = X < V ? X : V, $ > H(this, Te).getChildIndex(D) && --$, H(this, le).setChildIndex(N, $), H(this, Te).setChildIndex(D, $), lt(this, xa, mu).call(this);
|
|
32865
32869
|
}
|
|
32866
32870
|
return t[":id_tag"] = r.fore.name.slice(0, -7), this.scrItr.recodeDesign(t), r.lay(t);
|
|
32867
|
-
},
|
|
32871
|
+
}, xa = new WeakSet(), mu = function() {
|
|
32868
32872
|
ot(this, Kr, lt(this, Rh, Id).call(this));
|
|
32869
32873
|
}, Th = new WeakSet(), Md = function(t) {
|
|
32870
32874
|
return lt(this, Mh, Od).call(this, t, (e) => {
|
|
32871
|
-
const r = H(this, ae)[lt(this, Wi,
|
|
32875
|
+
const r = H(this, ae)[lt(this, Wi, Es).call(this, { layer: e })];
|
|
32872
32876
|
t.page === "both" ? (r.fore.clearLay(t), r.back.clearLay(t)) : r.getPage(t).clearLay(t);
|
|
32873
32877
|
}), !1;
|
|
32874
|
-
}, wh = new WeakMap(), dl = new WeakMap(), Ch = new WeakMap(),
|
|
32875
|
-
lt(this,
|
|
32878
|
+
}, wh = new WeakMap(), dl = new WeakMap(), Ch = new WeakMap(), Un = new WeakMap(), jn = new WeakMap(), mi = new WeakMap(), Ae = new WeakMap(), zn = new WeakMap(), Ph = new WeakSet(), Rd = function(t) {
|
|
32879
|
+
lt(this, Hn, Ya).call(this), H(this, Ar).hideHint();
|
|
32876
32880
|
const { layer: e } = t;
|
|
32877
|
-
ot(this,
|
|
32881
|
+
ot(this, zn, []);
|
|
32878
32882
|
const r = {}, D = [];
|
|
32879
|
-
for (const K of lt(this,
|
|
32883
|
+
for (const K of lt(this, Ke, sr).call(this, e))
|
|
32880
32884
|
r[K] = !0, D.push(H(this, ae)[K].fore);
|
|
32881
32885
|
const N = [];
|
|
32882
|
-
for (const K of lt(this,
|
|
32886
|
+
for (const K of lt(this, Ke, sr).call(this)) {
|
|
32883
32887
|
const Z = H(this, ae)[K][r[K] ? "back" : "fore"];
|
|
32884
|
-
H(this,
|
|
32888
|
+
H(this, zn).push(Z.spLay), N.push(Z);
|
|
32885
32889
|
}
|
|
32886
|
-
H(this,
|
|
32890
|
+
H(this, Un).resize(CmnLib.stageW, CmnLib.stageH), this.appPixi.renderer.render(H(this, Te), { renderTexture: H(this, Un) });
|
|
32887
32891
|
let k = () => {
|
|
32888
32892
|
H(this, Te).visible = !0;
|
|
32889
|
-
for (const K of H(this,
|
|
32890
|
-
this.appPixi.renderer.render(K, { renderTexture: H(this,
|
|
32893
|
+
for (const K of H(this, zn))
|
|
32894
|
+
this.appPixi.renderer.render(K, { renderTexture: H(this, Un), clear: !1 });
|
|
32891
32895
|
H(this, Te).visible = !1;
|
|
32892
32896
|
};
|
|
32893
32897
|
if (!N.some((K) => K.containMovement)) {
|
|
@@ -32897,9 +32901,9 @@ br = new WeakMap(), ue = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32897
32901
|
}, K();
|
|
32898
32902
|
};
|
|
32899
32903
|
}
|
|
32900
|
-
H(this, mi).resize(CmnLib.stageW, CmnLib.stageH), this.appPixi.renderer.render(H(this,
|
|
32904
|
+
H(this, mi).resize(CmnLib.stageW, CmnLib.stageH), this.appPixi.renderer.render(H(this, le), { renderTexture: H(this, mi) });
|
|
32901
32905
|
let $ = () => {
|
|
32902
|
-
H(this,
|
|
32906
|
+
H(this, le).visible = !0, this.appPixi.renderer.render(H(this, le), { renderTexture: H(this, mi) }), H(this, le).visible = !1;
|
|
32903
32907
|
};
|
|
32904
32908
|
if (!D.some((K) => K.containMovement)) {
|
|
32905
32909
|
let K = $;
|
|
@@ -32909,22 +32913,22 @@ br = new WeakMap(), ue = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32909
32913
|
};
|
|
32910
32914
|
}
|
|
32911
32915
|
const G = () => {
|
|
32912
|
-
k(), H(this,
|
|
32916
|
+
k(), H(this, jn).visible = !0, $(), H(this, Ae).visible = !0;
|
|
32913
32917
|
};
|
|
32914
32918
|
H(this, Ae).alpha = 1;
|
|
32915
32919
|
const U = () => {
|
|
32916
32920
|
var Z;
|
|
32917
|
-
this.appPixi.ticker && this.appPixi.ticker.remove(G), [Ie(this,
|
|
32921
|
+
this.appPixi.ticker && this.appPixi.ticker.remove(G), [Ie(this, le)._, Ie(this, Te)._] = [H(this, Te), H(this, le)];
|
|
32918
32922
|
const K = [];
|
|
32919
32923
|
for (const [J, Q] of Object.entries(H(this, ae))) {
|
|
32920
32924
|
if (r[J]) {
|
|
32921
32925
|
Q.transPage(K);
|
|
32922
32926
|
continue;
|
|
32923
32927
|
}
|
|
32924
|
-
const { fore: { spLay: et }, back: { spLay: nt } } = Q, tt = H(this,
|
|
32925
|
-
H(this,
|
|
32928
|
+
const { fore: { spLay: et }, back: { spLay: nt } } = Q, tt = H(this, le).getChildIndex(nt);
|
|
32929
|
+
H(this, le).removeChild(nt), H(this, Te).removeChild(et), H(this, le).addChildAt(et, tt), H(this, Te).addChildAt(nt, tt);
|
|
32926
32930
|
}
|
|
32927
|
-
Promise.allSettled(K), H(this,
|
|
32931
|
+
Promise.allSettled(K), H(this, le).visible = !0, H(this, Te).visible = !1, H(this, jn).visible = !1, H(this, Ae).visible = !1, (Z = H(this, Ne).tw) == null || Z.stop(), H(this, Ne).resume && this.main.resume(), ot(this, Ne, { tw: void 0, resume: !1 });
|
|
32928
32932
|
};
|
|
32929
32933
|
ot(this, Ne, { tw: void 0, resume: !1 });
|
|
32930
32934
|
const z = argChk_Num(t, "time", 0);
|
|
@@ -32942,10 +32946,10 @@ br = new WeakMap(), ue = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32942
32946
|
var Z;
|
|
32943
32947
|
W.uniforms.rule = K.texture, K.destroy(), (Z = H(this, Ne).tw) == null || Z.start(), this.appPixi.ticker.add(G);
|
|
32944
32948
|
}), !1;
|
|
32945
|
-
}, Ne = new WeakMap(),
|
|
32949
|
+
}, Ne = new WeakMap(), Ke = new WeakSet(), sr = function(t = "") {
|
|
32946
32950
|
return t ? t.split(",") : H(this, Kr);
|
|
32947
32951
|
}, Mh = new WeakSet(), Od = function(t, e) {
|
|
32948
|
-
const r = lt(this,
|
|
32952
|
+
const r = lt(this, Ke, sr).call(this, t.layer);
|
|
32949
32953
|
for (const D of r) {
|
|
32950
32954
|
if (!D)
|
|
32951
32955
|
continue;
|
|
@@ -32956,32 +32960,32 @@ br = new WeakMap(), ue = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32956
32960
|
}
|
|
32957
32961
|
return r;
|
|
32958
32962
|
}, Rh = new WeakSet(), Id = function(t = "") {
|
|
32959
|
-
return lt(this,
|
|
32960
|
-
const D = H(this,
|
|
32963
|
+
return lt(this, Ke, sr).call(this, t).sort((e, r) => {
|
|
32964
|
+
const D = H(this, le).getChildIndex(H(this, ae)[e].fore.spLay), N = H(this, le).getChildIndex(H(this, ae)[r].fore.spLay);
|
|
32961
32965
|
return D < N ? -1 : D > N ? 1 : 0;
|
|
32962
32966
|
});
|
|
32963
32967
|
}, Oh = new WeakSet(), Dd = function(t) {
|
|
32964
|
-
return H(this, Ne).tw ? (H(this, Ne).resume = !0, H(this, Ar).waitLimitedEvent(t, () => lt(this,
|
|
32965
|
-
},
|
|
32968
|
+
return H(this, Ne).tw ? (H(this, Ne).resume = !0, H(this, Ar).waitLimitedEvent(t, () => lt(this, Hn, Ya).call(this))) : !1;
|
|
32969
|
+
}, Hn = new WeakSet(), Ya = function() {
|
|
32966
32970
|
var t;
|
|
32967
32971
|
return (t = H(this, Ne).tw) == null || t.end(), !1;
|
|
32968
32972
|
}, Ih = new WeakSet(), Ad = function(t) {
|
|
32969
|
-
lt(this,
|
|
32973
|
+
lt(this, Hn, Ya).call(this);
|
|
32970
32974
|
const e = argChk_Num(t, "time", NaN);
|
|
32971
32975
|
if (e === 0 || this.val.getVal("tmp:sn.skip.enabled") || H(this, Ar).isSkippingByKeyDown())
|
|
32972
32976
|
return !1;
|
|
32973
32977
|
const { layer: r, ease: D } = t, N = [];
|
|
32974
|
-
for (const Y of lt(this,
|
|
32978
|
+
for (const Y of lt(this, Ke, sr).call(this, r))
|
|
32975
32979
|
N.push(H(this, ae)[Y].fore.spLay);
|
|
32976
32980
|
H(this, mi).resize(CmnLib.stageW, CmnLib.stageH);
|
|
32977
32981
|
const k = () => {
|
|
32978
|
-
H(this,
|
|
32982
|
+
H(this, le).visible = !0;
|
|
32979
32983
|
for (const Y of N)
|
|
32980
32984
|
this.appPixi.renderer.render(
|
|
32981
32985
|
Y,
|
|
32982
32986
|
{ renderTexture: H(this, mi), clear: !1 }
|
|
32983
32987
|
);
|
|
32984
|
-
H(this,
|
|
32988
|
+
H(this, le).visible = !1;
|
|
32985
32989
|
};
|
|
32986
32990
|
H(this, Ae).visible = !0, H(this, Ae).alpha = 1;
|
|
32987
32991
|
const $ = uint(argChk_Num(t, "hmax", 10)), G = uint(argChk_Num(t, "vmax", 10)), U = $ === 0 ? () => {
|
|
@@ -32992,14 +32996,14 @@ br = new WeakMap(), ue = new WeakMap(), Te = new WeakMap(), Vi = new WeakMap(),
|
|
|
32992
32996
|
U(), z();
|
|
32993
32997
|
}).repeat(X === 0 ? 1 / 0 : X - 1).yoyo(argChk_Boolean(t, "yoyo", !1)).onComplete(() => {
|
|
32994
32998
|
var Y, q;
|
|
32995
|
-
(Y = this.appPixi.ticker) == null || Y.remove(k), H(this,
|
|
32999
|
+
(Y = this.appPixi.ticker) == null || Y.remove(k), H(this, le).visible = !0, H(this, Ae).visible = !1, H(this, Ae).x = 0, H(this, Ae).y = 0, (q = H(this, Ne).tw) == null || q.stop(), H(this, Ne).resume && this.main.resume(), ot(this, Ne, { tw: void 0, resume: !1 });
|
|
32996
33000
|
}).start();
|
|
32997
33001
|
return ot(this, Ne, { tw: V, resume: !1 }), this.appPixi.ticker.add(k), !1;
|
|
32998
33002
|
}, hr = new WeakMap(), Dh = new WeakSet(), Nd = function(t) {
|
|
32999
33003
|
const { layer: e, render: r, path: D, name: N, ease: k, chain: $ } = t;
|
|
33000
33004
|
if (!e)
|
|
33001
33005
|
throw "layerは必須です";
|
|
33002
|
-
const G = lt(this, Wi,
|
|
33006
|
+
const G = lt(this, Wi, Es).call(this, t);
|
|
33003
33007
|
let U = H(this, ae)[G].fore, z = () => {
|
|
33004
33008
|
};
|
|
33005
33009
|
const X = H(this, Ar).isSkippingByKeyDown();
|
|
@@ -33082,19 +33086,19 @@ ${r}` : D ?? e;
|
|
|
33082
33086
|
if (!N)
|
|
33083
33087
|
throw "トゥイーンが指定されていません";
|
|
33084
33088
|
return ($ = (k = H(this, hr)[N]) == null ? void 0 : k.tw) == null || $.resume(), !1;
|
|
33085
|
-
}, Yi = new WeakMap(),
|
|
33089
|
+
}, Yi = new WeakMap(), Vn = new WeakSet(), Wa = function(t) {
|
|
33086
33090
|
const { text: e } = t;
|
|
33087
33091
|
if (!e)
|
|
33088
33092
|
throw "textは必須です";
|
|
33089
33093
|
const r = H(this, cr).call(this, t);
|
|
33090
33094
|
delete t.text, this.val.getVal("tmp:sn.skip.enabled") ? t.wait = 0 : "wait" in t && argChk_Num(t, "wait", NaN);
|
|
33091
33095
|
const D = encodeURIComponent(JSON.stringify(t));
|
|
33092
|
-
H(this,
|
|
33096
|
+
H(this, rr).call(this, "add|" + D, r);
|
|
33093
33097
|
const N = argChk_Boolean(t, "record", !0), k = this.val.doRecLog();
|
|
33094
33098
|
return N || this.val.setVal_Nochk("save", "sn.doRecLog", N), r.tagCh(e.replaceAll("[r]", `
|
|
33095
|
-
`)), this.val.setVal_Nochk("save", "sn.doRecLog", k), H(this,
|
|
33099
|
+
`)), this.val.setVal_Nochk("save", "sn.doRecLog", k), H(this, rr).call(this, "add_close|", r), !1;
|
|
33096
33100
|
}, cr = new WeakMap(), Bh = new WeakSet(), $d = function(t) {
|
|
33097
|
-
const e = lt(this, Wi,
|
|
33101
|
+
const e = lt(this, Wi, Es).call(this, t, H(this, Zr)), D = H(this, ae)[e].getPage(t);
|
|
33098
33102
|
if (!(D instanceof TxtLayer))
|
|
33099
33103
|
throw e + "はTxtLayerではありません";
|
|
33100
33104
|
return D;
|
|
@@ -33105,12 +33109,12 @@ ${r}` : D ?? e;
|
|
|
33105
33109
|
if (ot(this, Jr, H(this, ae)[e]), !(H(this, Jr).getPage(t) instanceof TxtLayer))
|
|
33106
33110
|
throw `${e}はTxtLayerではありません`;
|
|
33107
33111
|
this.recPagebreak(), ot(this, Zr, e), this.val.setVal_Nochk("save", "const.sn.mesLayer", e);
|
|
33108
|
-
for (const r of lt(this,
|
|
33112
|
+
for (const r of lt(this, Ke, sr).call(this)) {
|
|
33109
33113
|
const D = H(this, ae)[r];
|
|
33110
33114
|
D.fore instanceof TxtLayer && (D.fore.isCur = D.back.isCur = r === e);
|
|
33111
33115
|
}
|
|
33112
33116
|
return !1;
|
|
33113
|
-
}, Jr = new WeakMap(),
|
|
33117
|
+
}, Jr = new WeakMap(), Xn = new WeakMap(), Wi = new WeakSet(), Es = function(t, e = "") {
|
|
33114
33118
|
const r = t.layer ?? e;
|
|
33115
33119
|
if (r.includes(","))
|
|
33116
33120
|
throw "layer名に「,」は使えません";
|
|
@@ -33121,25 +33125,25 @@ ${r}` : D ?? e;
|
|
|
33121
33125
|
const e = H(this, cr).call(this, t);
|
|
33122
33126
|
return t.layer === H(this, Zr) && t.page === "fore" && this.recPagebreak(), e.clearText(), !1;
|
|
33123
33127
|
}, Gh = new WeakSet(), jd = function(t) {
|
|
33124
|
-
return H(this,
|
|
33128
|
+
return H(this, rr).call(this, "endlink|", H(this, cr).call(this, t)), !1;
|
|
33125
33129
|
}, Uh = new WeakSet(), zd = function(t) {
|
|
33126
33130
|
return argChk_Boolean(t, "rec_page_break", !0) && this.recPagebreak(), H(this, Jr) && (H(this, Jr).fore.clearLay(t), H(this, Jr).back.clearLay(t)), !1;
|
|
33127
33131
|
}, jh = new WeakSet(), Hd = function(t) {
|
|
33128
33132
|
if (!t.pic)
|
|
33129
33133
|
throw "[graph] picは必須です";
|
|
33130
33134
|
const e = encodeURIComponent(JSON.stringify(t));
|
|
33131
|
-
return H(this,
|
|
33135
|
+
return H(this, rr).call(this, "grp|" + e, H(this, cr).call(this, t)), !1;
|
|
33132
33136
|
}, zh = new WeakSet(), Vd = function(t) {
|
|
33133
33137
|
t.style ?? (t.style = "background-color: rgba(255,0,0,0.5);"), t.style_hover ?? (t.style_hover = "background-color: rgba(255,0,0,0.9);"), t.style_clicked ?? (t.style_clicked = t.style);
|
|
33134
33138
|
const e = encodeURIComponent(JSON.stringify(t));
|
|
33135
|
-
return H(this,
|
|
33139
|
+
return H(this, rr).call(this, "link|" + e, H(this, cr).call(this, t)), !1;
|
|
33136
33140
|
}, Hh = new WeakSet(), Xd = function(t) {
|
|
33137
33141
|
return t.text = `
|
|
33138
|
-
`, lt(this,
|
|
33142
|
+
`, lt(this, Vn, Wa).call(this, t);
|
|
33139
33143
|
}, Vh = new WeakSet(), Yd = function(t) {
|
|
33140
33144
|
return lt(this, vl, yf).call(this, { ...t, text: "[r]" });
|
|
33141
33145
|
}, vl = new WeakSet(), yf = function(t) {
|
|
33142
|
-
return t.text ? (t.record = !0, t.style ?? (t.style = ""), t.style += "display: none;", t.wait = 0, lt(this,
|
|
33146
|
+
return t.text ? (t.record = !0, t.style ?? (t.style = ""), t.style += "display: none;", t.wait = 0, lt(this, Vn, Wa).call(this, t)) : !1;
|
|
33143
33147
|
}, Xh = new WeakSet(), Wd = function(t) {
|
|
33144
33148
|
return ot(this, Qr, []), ot(this, Nr, t.text ?? ""), this.val.setVal_Nochk(
|
|
33145
33149
|
"save",
|
|
@@ -33152,18 +33156,18 @@ ${r}` : D ?? e;
|
|
|
33152
33156
|
throw "[ruby2] tは必須です";
|
|
33153
33157
|
if (!r)
|
|
33154
33158
|
throw "[ruby2] rは必須です";
|
|
33155
|
-
return t.text = "|" + encodeURIComponent(e) + "《" + encodeURIComponent(r) + "》", delete t.t, delete t.r, lt(this,
|
|
33159
|
+
return t.text = "|" + encodeURIComponent(e) + "《" + encodeURIComponent(r) + "》", delete t.t, delete t.r, lt(this, Vn, Wa).call(this, t);
|
|
33156
33160
|
}, Wh = new WeakSet(), Kd = function(t) {
|
|
33157
33161
|
const e = encodeURIComponent(JSON.stringify(t));
|
|
33158
|
-
return H(this,
|
|
33162
|
+
return H(this, rr).call(this, "span|" + e, H(this, cr).call(this, t)), !1;
|
|
33159
33163
|
}, qh = new WeakSet(), Zd = function(t) {
|
|
33160
33164
|
if (!t.t)
|
|
33161
33165
|
throw "[tcy] tは必須です";
|
|
33162
33166
|
const e = encodeURIComponent(JSON.stringify(t));
|
|
33163
|
-
return H(this,
|
|
33167
|
+
return H(this, rr).call(this, "tcy|" + e, H(this, cr).call(this, t)), !1;
|
|
33164
33168
|
}, Kh = new WeakSet(), Jd = function(t) {
|
|
33165
33169
|
console.group("🥟 [dump_lay]");
|
|
33166
|
-
for (const e of lt(this,
|
|
33170
|
+
for (const e of lt(this, Ke, sr).call(this, t.layer)) {
|
|
33167
33171
|
const r = H(this, ae)[e];
|
|
33168
33172
|
try {
|
|
33169
33173
|
console.info(
|
|
@@ -33177,7 +33181,7 @@ ${r}` : D ?? e;
|
|
|
33177
33181
|
}
|
|
33178
33182
|
return console.groupEnd(), !1;
|
|
33179
33183
|
}, Zh = new WeakSet(), Qd = function(t) {
|
|
33180
|
-
const e = lt(this, Wi,
|
|
33184
|
+
const e = lt(this, Wi, Es).call(this, t, H(this, Zr)), r = argChk_Boolean(t, "enabled", !0);
|
|
33181
33185
|
return H(this, cr).call(this, t).enabled = r, this.val.setVal_Nochk("save", "const.sn.layer." + e + ".enabled", r), !1;
|
|
33182
33186
|
}, Jh = new WeakSet(), tp = function(t) {
|
|
33183
33187
|
return Pages.argChk_page(t, "back"), t.clicksebuf ?? (t.clicksebuf = "SYS"), t.entersebuf ?? (t.entersebuf = "SYS"), t.leavesebuf ?? (t.leavesebuf = "SYS"), t.fn || (t.fn = this.scrItr.scriptFn), H(this, cr).call(this, t).addButton(t), this.scrItr.recodeDesign(t), !1;
|
|
@@ -33200,19 +33204,19 @@ ${r}` : D ?? e;
|
|
|
33200
33204
|
*/
|
|
33201
33205
|
Ot(LayerMng, "REG_TSY_PATH", /\(\s*(?:(?<x>[-=\d\.]+)|(['"])(?<x2>.*?)\2)?(?:\s*,\s*(?:(?<y>[-=\d\.]+)|(['"])(?<y2>.*?)\5)?(?:\s*,\s*(?:(?<o>[-=\d\.]+)|(['"])(?<o2>.*?)\8))?)?|(?<json>\{[^{}]*})/g), // // 文字・文字レイヤ
|
|
33202
33206
|
rt(LayerMng, Yi, 10);
|
|
33203
|
-
var Ce, be,
|
|
33207
|
+
var Ce, be, Sa, Qh, ep, gl, Yn, qa;
|
|
33204
33208
|
class FocusMng {
|
|
33205
33209
|
constructor() {
|
|
33206
33210
|
rt(this, Qh);
|
|
33207
|
-
rt(this,
|
|
33211
|
+
rt(this, Yn);
|
|
33208
33212
|
rt(this, Ce, []);
|
|
33209
33213
|
rt(this, be, -1);
|
|
33210
|
-
rt(this,
|
|
33214
|
+
rt(this, Sa, new EventListenerCtn());
|
|
33211
33215
|
rt(this, gl, CmnLib.debugLog ? (t) => console.log(`👾 <FocusMng idx:${t} btn:%o`, H(this, Ce)[t].btn) : () => {
|
|
33212
33216
|
});
|
|
33213
33217
|
}
|
|
33214
33218
|
destroy() {
|
|
33215
|
-
ot(this, Ce, []), ot(this, be, -1), H(this,
|
|
33219
|
+
ot(this, Ce, []), ot(this, be, -1), H(this, Sa).clear();
|
|
33216
33220
|
}
|
|
33217
33221
|
add(t, e, r) {
|
|
33218
33222
|
if (H(this, Ce).findIndex(($) => $.btn === t) >= 0)
|
|
@@ -33228,7 +33232,7 @@ class FocusMng {
|
|
|
33228
33232
|
}), H(this, Ce).push({ btn: t, on: e, off: r });
|
|
33229
33233
|
return;
|
|
33230
33234
|
}
|
|
33231
|
-
H(this,
|
|
33235
|
+
H(this, Sa).add(t, "focus", () => {
|
|
33232
33236
|
for (let $ = H(this, Ce).length - 1; $ >= 0; --$)
|
|
33233
33237
|
if (H(this, Ce)[$].btn === t) {
|
|
33234
33238
|
ot(this, be, $);
|
|
@@ -33261,7 +33265,7 @@ class FocusMng {
|
|
|
33261
33265
|
};
|
|
33262
33266
|
break;
|
|
33263
33267
|
}
|
|
33264
|
-
H(this,
|
|
33268
|
+
H(this, Sa).add(t, "keydown", ($) => {
|
|
33265
33269
|
if (!($.key !== "ArrowUp" && $.key !== "ArrowDown" && $.key !== "Enter")) {
|
|
33266
33270
|
if ($.stopPropagation(), $.stopImmediatePropagation(), N($)) {
|
|
33267
33271
|
t.dispatchEvent(new MouseEvent("click"));
|
|
@@ -33279,7 +33283,7 @@ class FocusMng {
|
|
|
33279
33283
|
return H(this, be) < 0 ? !1 : H(this, Ce)[H(this, be)].btn === t;
|
|
33280
33284
|
}
|
|
33281
33285
|
prev() {
|
|
33282
|
-
lt(this,
|
|
33286
|
+
lt(this, Yn, qa).call(this);
|
|
33283
33287
|
const t = H(this, Ce).length;
|
|
33284
33288
|
if (t !== 0) {
|
|
33285
33289
|
--Ie(this, be)._ < 0 && ot(this, be, t - 1);
|
|
@@ -33294,7 +33298,7 @@ class FocusMng {
|
|
|
33294
33298
|
}
|
|
33295
33299
|
}
|
|
33296
33300
|
next() {
|
|
33297
|
-
lt(this,
|
|
33301
|
+
lt(this, Yn, qa).call(this);
|
|
33298
33302
|
const t = H(this, Ce).length;
|
|
33299
33303
|
if (t !== 0) {
|
|
33300
33304
|
++Ie(this, be)._ >= t && ot(this, be, 0);
|
|
@@ -33311,22 +33315,22 @@ class FocusMng {
|
|
|
33311
33315
|
getFocus() {
|
|
33312
33316
|
if (H(this, be) < 0)
|
|
33313
33317
|
return null;
|
|
33314
|
-
lt(this,
|
|
33318
|
+
lt(this, Yn, qa).call(this), H(this, be) >= H(this, Ce).length && ot(this, be, 0);
|
|
33315
33319
|
const t = H(this, Ce)[H(this, be)];
|
|
33316
33320
|
return t.on() ? t.btn : null;
|
|
33317
33321
|
}
|
|
33318
33322
|
blur() {
|
|
33319
|
-
lt(this,
|
|
33323
|
+
lt(this, Yn, qa).call(this), ot(this, be, -1), globalThis.focus();
|
|
33320
33324
|
}
|
|
33321
33325
|
}
|
|
33322
|
-
Ce = new WeakMap(), be = new WeakMap(),
|
|
33326
|
+
Ce = new WeakMap(), be = new WeakMap(), Sa = new WeakMap(), Qh = new WeakSet(), ep = function(t, e) {
|
|
33323
33327
|
const r = t.querySelectorAll("input[type]"), D = r.length;
|
|
33324
33328
|
for (let N = 0; N < D; ++N)
|
|
33325
33329
|
if (r[N].checked) {
|
|
33326
33330
|
r[(N + D + (e === "ArrowUp" ? -1 : 1)) % D].checked = !0;
|
|
33327
33331
|
break;
|
|
33328
33332
|
}
|
|
33329
|
-
}, gl = new WeakMap(),
|
|
33333
|
+
}, gl = new WeakMap(), Yn = new WeakSet(), qa = function() {
|
|
33330
33334
|
for (let t = H(this, Ce).length - 1; t >= 0; --t) {
|
|
33331
33335
|
const e = H(this, Ce)[t];
|
|
33332
33336
|
!(e.btn instanceof Container) || e.btn.parent ? e.off() : H(this, Ce).splice(t, 1);
|
|
@@ -34047,7 +34051,7 @@ function preventOverflow(o) {
|
|
|
34047
34051
|
tt[et] = jt, ct[et] = jt - Tt;
|
|
34048
34052
|
}
|
|
34049
34053
|
if ($) {
|
|
34050
|
-
var Ct, qt = et === "x" ? top : left, Qt = et === "x" ? bottom : right, Kt = tt[nt], Se = nt === "y" ? "height" : "width", Oe = Kt + K[qt],
|
|
34054
|
+
var Ct, qt = et === "x" ? top : left, Qt = et === "x" ? bottom : right, Kt = tt[nt], Se = nt === "y" ? "height" : "width", Oe = Kt + K[qt], ue = Kt - K[Qt], _e = [top, left].indexOf(Z) !== -1, ve = (Ct = ft == null ? void 0 : ft[nt]) != null ? Ct : 0, de = _e ? Oe : Kt - it[Se] - st[Se] - ve + ut.altAxis, fe = _e ? Kt + it[Se] + st[Se] - ve - ut.altAxis : ue, ne = Y && _e ? withinMaxClamp(de, Kt, fe) : within(Y ? de : Oe, Kt, Y ? fe : ue);
|
|
34051
34055
|
tt[nt] = ne, ct[nt] = ne - Kt;
|
|
34052
34056
|
}
|
|
34053
34057
|
t.modifiersData[r] = ct;
|
|
@@ -34336,7 +34340,7 @@ var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyS
|
|
|
34336
34340
|
defaultModifiers
|
|
34337
34341
|
});
|
|
34338
34342
|
const { GamepadListener } = require("gamepad.js");
|
|
34339
|
-
var
|
|
34343
|
+
var Ze, qi, Be, ml, _l, bf, yl, xf, bl, Sf, Ea, Ta, xl, Ef, Me, xr, _i, yi, Sl, Ki, Ts, El, Tl, ze, wa, Ca, wl, tc, rp, Cl, Wn, ec, ip, Pl, Tf, rc, np, Ml, wf, qn, Ka, Kn, ic, sp, nc, ap, Sr, sc, op, ac, lp, Pa, _u, bi, Zn, Jn, oc, up, Je;
|
|
34340
34344
|
class EventMng {
|
|
34341
34345
|
constructor(t, e, r, D, N, k, $, G, U) {
|
|
34342
34346
|
rt(this, _l);
|
|
@@ -34351,7 +34355,7 @@ class EventMng {
|
|
|
34351
34355
|
// イベントを予約
|
|
34352
34356
|
rt(this, rc);
|
|
34353
34357
|
rt(this, Ml);
|
|
34354
|
-
rt(this,
|
|
34358
|
+
rt(this, qn);
|
|
34355
34359
|
// 行末クリック待ち
|
|
34356
34360
|
rt(this, ic);
|
|
34357
34361
|
// 改ページクリック待ち
|
|
@@ -34360,10 +34364,10 @@ class EventMng {
|
|
|
34360
34364
|
// フォーカス移動
|
|
34361
34365
|
rt(this, ac);
|
|
34362
34366
|
// ウェイトを入れる
|
|
34363
|
-
rt(this,
|
|
34367
|
+
rt(this, Pa);
|
|
34364
34368
|
// クリックを待つ
|
|
34365
34369
|
rt(this, oc);
|
|
34366
|
-
rt(this,
|
|
34370
|
+
rt(this, Ze, new EventListenerCtn());
|
|
34367
34371
|
rt(this, qi, new GamepadListener({
|
|
34368
34372
|
analog: !1,
|
|
34369
34373
|
deadZone: 0.3
|
|
@@ -34371,8 +34375,8 @@ class EventMng {
|
|
|
34371
34375
|
rt(this, Be, new FocusMng());
|
|
34372
34376
|
rt(this, ml, (t) => {
|
|
34373
34377
|
});
|
|
34374
|
-
rt(this, Sa, !1);
|
|
34375
34378
|
rt(this, Ea, !1);
|
|
34379
|
+
rt(this, Ta, !1);
|
|
34376
34380
|
rt(this, Me, {});
|
|
34377
34381
|
rt(this, xr, {});
|
|
34378
34382
|
rt(this, _i, !1);
|
|
@@ -34386,25 +34390,25 @@ class EventMng {
|
|
|
34386
34390
|
rt(this, Tl, {
|
|
34387
34391
|
getBoundingClientRect: (t = 0, e = 0) => DOMRect.fromRect({ x: t, y: e, width: 0, height: 0 })
|
|
34388
34392
|
});
|
|
34389
|
-
rt(this,
|
|
34390
|
-
rt(this, Ta, void 0);
|
|
34393
|
+
rt(this, ze, void 0);
|
|
34391
34394
|
rt(this, wa, void 0);
|
|
34395
|
+
rt(this, Ca, void 0);
|
|
34392
34396
|
rt(this, wl, {
|
|
34393
34397
|
placement: "bottom",
|
|
34394
34398
|
fallbackPlacements: ["top", "bottom"]
|
|
34395
34399
|
});
|
|
34396
34400
|
rt(this, Cl, (t, e) => {
|
|
34397
34401
|
});
|
|
34398
|
-
rt(this,
|
|
34399
|
-
rt(this,
|
|
34402
|
+
rt(this, Wn, new EventListenerCtn());
|
|
34403
|
+
rt(this, Kn, () => this.layMng.goTxt());
|
|
34400
34404
|
// スキップ中断予約
|
|
34401
34405
|
rt(this, Sr, () => !1);
|
|
34402
34406
|
rt(this, bi, () => {
|
|
34403
34407
|
});
|
|
34404
|
-
rt(this,
|
|
34405
|
-
rt(this,
|
|
34408
|
+
rt(this, Zn, new eventemitter3Exports());
|
|
34409
|
+
rt(this, Jn, "sn:notice_comp_txt");
|
|
34406
34410
|
// 0:no push 1:one push 2:push repeating
|
|
34407
|
-
rt(this,
|
|
34411
|
+
rt(this, Je, {
|
|
34408
34412
|
Alt: 0,
|
|
34409
34413
|
Meta: 0,
|
|
34410
34414
|
// COMMANDキー
|
|
@@ -34418,14 +34422,14 @@ class EventMng {
|
|
|
34418
34422
|
// AndroidのBackキーだと思う
|
|
34419
34423
|
});
|
|
34420
34424
|
var W, K;
|
|
34421
|
-
if (this.cfg = t, this.hTag = e, this.appPixi = r, this.main = D, this.layMng = N, this.val = k, this.sndMng = $, this.scrItr = G, this.sys = U, e.clear_event = (Z) => lt(this, ec, ip).call(this, Z), e.event = (Z) => lt(this, rc, np).call(this, Z), e.l = (Z) => lt(this, ic, sp).call(this, Z), e.p = (Z) => lt(this, nc, ap).call(this, Z), e.s = () => (
|
|
34422
|
-
}, !1, !0)), e.set_cancel_skip = () => lt(this, sc, op).call(this), e.set_focus = (Z) => lt(this, ac, lp).call(this, Z), e.wait = (Z) => lt(this,
|
|
34425
|
+
if (this.cfg = t, this.hTag = e, this.appPixi = r, this.main = D, this.layMng = N, this.val = k, this.sndMng = $, this.scrItr = G, this.sys = U, e.clear_event = (Z) => lt(this, ec, ip).call(this, Z), e.event = (Z) => lt(this, rc, np).call(this, Z), e.l = (Z) => lt(this, ic, sp).call(this, Z), e.p = (Z) => lt(this, nc, ap).call(this, Z), e.s = () => (G.recodePage(), lt(this, Ki, Ts).call(this, () => {
|
|
34426
|
+
}, !1, !0)), e.set_cancel_skip = () => lt(this, sc, op).call(this), e.set_focus = (Z) => lt(this, ac, lp).call(this, Z), e.wait = (Z) => lt(this, Pa, _u).call(this, Z), e.waitclick = () => lt(this, oc, up).call(this), $.setEvtMng(this), G.setOtherObj(this, N), TxtLayer.setEvtMng(D, this, U), N.setEvtMng(this), U.setFire((Z, J) => this.fire(Z, J)), CmnLib.isDbg) {
|
|
34423
34427
|
const Z = {
|
|
34424
34428
|
pause: () => {
|
|
34425
34429
|
if (ot(this, _i, !0), !H(this, yi))
|
|
34426
34430
|
return;
|
|
34427
34431
|
const J = {};
|
|
34428
|
-
|
|
34432
|
+
G.recodeDesign(J), U.callHook("_enterDesign", J), U.send2Dbg("_enterDesign", J);
|
|
34429
34433
|
},
|
|
34430
34434
|
stopOnBreakpoint: () => ot(this, _i, !0),
|
|
34431
34435
|
stopOnDataBreakpoint: () => ot(this, _i, !0),
|
|
@@ -34476,7 +34480,7 @@ class EventMng {
|
|
|
34476
34480
|
<div class="sn_hint" role="tooltip">
|
|
34477
34481
|
<span>Dummy</span>
|
|
34478
34482
|
<div class="sn_hint_ar" data-popper-arrow></div>
|
|
34479
|
-
</div>`), ot(this,
|
|
34483
|
+
</div>`), ot(this, ze, document.querySelector(".sn_hint")), ot(this, wa, H(this, ze).querySelector("span")), ot(this, Ca, createPopper(H(this, Tl), H(this, ze))), H(this, ze).hidden = !0, r.stage.interactive = !0, CmnLib.isMobile ? r.stage.on("pointerdown", (Z) => this.fire("click", Z)) : H(this, Ze).add(r.stage, "pointerdown", (Z) => {
|
|
34480
34484
|
switch (Z.data.button) {
|
|
34481
34485
|
case 0:
|
|
34482
34486
|
this.fire("click", Z);
|
|
@@ -34485,17 +34489,17 @@ class EventMng {
|
|
|
34485
34489
|
this.fire("middleclick", Z);
|
|
34486
34490
|
break;
|
|
34487
34491
|
}
|
|
34488
|
-
}), H(this,
|
|
34492
|
+
}), H(this, Ze).add(window, "keydown", (Z) => lt(this, _l, bf).call(this, Z)), H(this, Ze).add(Main.cvs, "contextmenu", (Z) => lt(this, yl, xf).call(this, Z));
|
|
34489
34493
|
const z = () => k.setVal_Nochk("tmp", "const.sn.navigator.language", navigator.language);
|
|
34490
|
-
H(this,
|
|
34494
|
+
H(this, Ze).add(window, "languagechange", (Z) => {
|
|
34491
34495
|
z(), this.fire("sn:chgNavLang", Z), clearTextureCache();
|
|
34492
34496
|
}), z();
|
|
34493
34497
|
const X = (Z) => {
|
|
34494
34498
|
CmnLib.isDarkMode = Z.matches, k.setVal_Nochk("tmp", "const.sn.isDarkMode", CmnLib.isDarkMode);
|
|
34495
34499
|
}, V = globalThis.matchMedia("(prefers-color-scheme: dark)");
|
|
34496
|
-
X(V), H(this,
|
|
34500
|
+
X(V), H(this, Ze).add(V, "change", (Z) => {
|
|
34497
34501
|
X(Z), this.fire("sn:chgDarkMode", Z);
|
|
34498
|
-
}), "WheelEvent" in window && (H(this,
|
|
34502
|
+
}), "WheelEvent" in window && (H(this, Ze).add(Main.cvs, "wheel", (Z) => lt(this, bl, Sf).call(this, Z), { passive: !0 }), ot(this, ml, (Z) => H(this, Ze).add(Z, "wheel", (J) => lt(this, bl, Sf).call(this, J), { passive: !0 })), ot(this, Cl, (Z, J) => Z.add(Main.cvs, "wheel", (Q) => {
|
|
34499
34503
|
Q.isComposing || Q.deltaY <= 0 || (Q.stopPropagation(), J());
|
|
34500
34504
|
}))), CmnLib.debugLog && (H(this, qi).on("gamepad:connected", (Z) => console.log(`👺<'gamepad:connected' index:${Z.detail.index} id:${Z.detail.gamepad.id}`)), H(this, qi).on("gamepad:disconnected", (Z) => console.log(`👺<'gamepad:disconnected' index:${Z.detail.index} id:${Z.detail.gamepad.id}`)));
|
|
34501
34505
|
const Y = [
|
|
@@ -34528,15 +34532,15 @@ class EventMng {
|
|
|
34528
34532
|
(!J || J instanceof Container ? globalThis : J).dispatchEvent(new KeyboardEvent("keydown", { key: "Enter", bubbles: !0 }));
|
|
34529
34533
|
} else
|
|
34530
34534
|
Main.cvs.dispatchEvent(new Event("contextmenu"));
|
|
34531
|
-
}), H(this, qi).start(), H(this,
|
|
34532
|
-
Z.isComposing || Z.key in H(this,
|
|
34533
|
-
}), k.defTmp("const.sn.key.alternate", () => H(this,
|
|
34535
|
+
}), H(this, qi).start(), H(this, Ze).add(window, "keyup", (Z) => {
|
|
34536
|
+
Z.isComposing || Z.key in H(this, Je) && (H(this, Je)[Z.key] = 0);
|
|
34537
|
+
}), k.defTmp("const.sn.key.alternate", () => H(this, Je).Alt > 0), k.defTmp("const.sn.key.command", () => H(this, Je).Meta > 0), k.defTmp("const.sn.key.control", () => H(this, Je).Control > 0), k.defTmp("const.sn.key.end", () => H(this, Je).End > 0), k.defTmp("const.sn.key.escape", () => H(this, Je).Escape > 0), k.defTmp("const.sn.key.back", () => H(this, Je).GoBack > 0);
|
|
34534
34538
|
}
|
|
34535
34539
|
resvFlameEvent(t) {
|
|
34536
|
-
H(this,
|
|
34540
|
+
H(this, Ze).add(t, "keydown", (e) => lt(this, _l, bf).call(this, e)), H(this, Ze).add(t, "contextmenu", (e) => lt(this, yl, xf).call(this, e)), H(this, ml).call(this, t);
|
|
34537
34541
|
}
|
|
34538
34542
|
destroy() {
|
|
34539
|
-
H(this, Be).destroy(), H(this,
|
|
34543
|
+
H(this, Be).destroy(), H(this, Ze).clear();
|
|
34540
34544
|
}
|
|
34541
34545
|
fire(t, e) {
|
|
34542
34546
|
var N;
|
|
@@ -34575,7 +34579,7 @@ class EventMng {
|
|
|
34575
34579
|
return t(), !1;
|
|
34576
34580
|
H(this, Sr).call(this);
|
|
34577
34581
|
}
|
|
34578
|
-
return lt(this, Ki,
|
|
34582
|
+
return lt(this, Ki, Ts).call(this, t, e, r);
|
|
34579
34583
|
}
|
|
34580
34584
|
unButton(t) {
|
|
34581
34585
|
H(this, Be).remove(t);
|
|
@@ -34589,12 +34593,12 @@ class EventMng {
|
|
|
34589
34593
|
$ ? H(this, xr)[k] = () => this.main.resumeByJumpOrCall(t) : H(this, Me)[k] = () => this.main.resumeByJumpOrCall(t), e.on("pointerdown", (V) => this.fire(k, V));
|
|
34590
34594
|
const G = t.hint ? () => lt(this, tc, rp).call(this, t, e) : () => {
|
|
34591
34595
|
}, U = () => {
|
|
34592
|
-
r(), H(this,
|
|
34596
|
+
r(), H(this, ze).hidden = !0;
|
|
34593
34597
|
}, z = () => (G(), D());
|
|
34594
34598
|
if (e.on("pointerover", z), e.on("pointerout", () => {
|
|
34595
34599
|
H(this, Be).isFocus(e) ? z() : U();
|
|
34596
34600
|
}), e.on("pointerdown", () => {
|
|
34597
|
-
H(this,
|
|
34601
|
+
H(this, ze).hidden = !0;
|
|
34598
34602
|
const V = H(this, Be).getFocus();
|
|
34599
34603
|
N(), V instanceof Button && V.normal();
|
|
34600
34604
|
}), e.on(
|
|
@@ -34621,16 +34625,16 @@ class EventMng {
|
|
|
34621
34625
|
}
|
|
34622
34626
|
}
|
|
34623
34627
|
hideHint() {
|
|
34624
|
-
H(this,
|
|
34628
|
+
H(this, ze).hidden = !0;
|
|
34625
34629
|
}
|
|
34626
34630
|
cvsResize() {
|
|
34627
|
-
H(this,
|
|
34631
|
+
H(this, ze).hidden = !0;
|
|
34628
34632
|
}
|
|
34629
34633
|
// 予約イベントの発生待ちしない waitEvent()
|
|
34630
34634
|
waitLimitedEvent(t, e) {
|
|
34631
|
-
H(this,
|
|
34635
|
+
H(this, Kn).call(this), this.val.saveKidoku();
|
|
34632
34636
|
const r = () => {
|
|
34633
|
-
H(this,
|
|
34637
|
+
H(this, Wn).clear(), e();
|
|
34634
34638
|
};
|
|
34635
34639
|
if (this.val.getVal("tmp:sn.skip.enabled"))
|
|
34636
34640
|
if (!this.val.getVal("tmp:sn.skip.all") && // 未読で停止
|
|
@@ -34638,24 +34642,24 @@ class EventMng {
|
|
|
34638
34642
|
H(this, Sr).call(this);
|
|
34639
34643
|
else
|
|
34640
34644
|
return r(), !1;
|
|
34641
|
-
return argChk_Boolean(t, "canskip", !0) && (H(this,
|
|
34645
|
+
return argChk_Boolean(t, "canskip", !0) && (H(this, Wn).add(window, "pointerdown", (D) => {
|
|
34642
34646
|
D.stopPropagation(), r();
|
|
34643
|
-
}), H(this,
|
|
34647
|
+
}), H(this, Wn).add(window, "keydown", (D) => {
|
|
34644
34648
|
D.isComposing || (D.stopPropagation(), r());
|
|
34645
|
-
}), H(this, Cl).call(this, H(this,
|
|
34649
|
+
}), H(this, Cl).call(this, H(this, Wn), r)), !0;
|
|
34646
34650
|
}
|
|
34647
34651
|
noticeCompTxt() {
|
|
34648
|
-
H(this,
|
|
34652
|
+
H(this, Zn).emit(H(this, Jn));
|
|
34649
34653
|
}
|
|
34650
34654
|
// キー押下によるスキップ中か
|
|
34651
34655
|
isSkippingByKeyDown() {
|
|
34652
|
-
return this.scrItr.skip4page ? !0 : Object.keys(H(this,
|
|
34656
|
+
return this.scrItr.skip4page ? !0 : Object.keys(H(this, Je)).some((t) => H(this, Je)[t] === 2);
|
|
34653
34657
|
}
|
|
34654
34658
|
}
|
|
34655
|
-
|
|
34659
|
+
Ze = new WeakMap(), qi = new WeakMap(), Be = new WeakMap(), ml = new WeakMap(), _l = new WeakSet(), bf = function(t) {
|
|
34656
34660
|
if (t.isComposing)
|
|
34657
34661
|
return;
|
|
34658
|
-
t.key in H(this,
|
|
34662
|
+
t.key in H(this, Je) && (H(this, Je)[t.key] = t.repeat ? 2 : 1);
|
|
34659
34663
|
const e = (t.altKey ? t.key === "Alt" ? "" : "alt+" : "") + (t.ctrlKey ? t.key === "Control" ? "" : "ctrl+" : "") + (t.shiftKey ? t.key === "Shift" ? "" : "shift+" : "") + t.key;
|
|
34660
34664
|
this.fire(e, t);
|
|
34661
34665
|
}, yl = new WeakSet(), xf = function(t) {
|
|
@@ -34664,23 +34668,23 @@ Ke = new WeakMap(), qi = new WeakMap(), Be = new WeakMap(), ml = new WeakMap(),
|
|
|
34664
34668
|
}, bl = new WeakSet(), Sf = function(t) {
|
|
34665
34669
|
if (t.isComposing)
|
|
34666
34670
|
return;
|
|
34667
|
-
if (H(this,
|
|
34668
|
-
ot(this,
|
|
34671
|
+
if (H(this, Ea)) {
|
|
34672
|
+
ot(this, Ta, !0);
|
|
34669
34673
|
return;
|
|
34670
34674
|
}
|
|
34671
|
-
ot(this,
|
|
34675
|
+
ot(this, Ea, !0), lt(this, xl, Ef).call(this);
|
|
34672
34676
|
const e = (t.altKey ? "alt+" : "") + (t.ctrlKey ? "ctrl+" : "") + (t.shiftKey ? "shift+" : "") + (t.deltaY > 0 ? "downwheel" : "upwheel");
|
|
34673
34677
|
this.fire(e, t);
|
|
34674
|
-
},
|
|
34678
|
+
}, Ea = new WeakMap(), Ta = new WeakMap(), xl = new WeakSet(), Ef = function() {
|
|
34675
34679
|
setTimeout(() => {
|
|
34676
|
-
if (H(this,
|
|
34677
|
-
ot(this,
|
|
34680
|
+
if (H(this, Ta)) {
|
|
34681
|
+
ot(this, Ta, !1), lt(this, xl, Ef).call(this);
|
|
34678
34682
|
return;
|
|
34679
34683
|
}
|
|
34680
|
-
ot(this,
|
|
34684
|
+
ot(this, Ea, !1);
|
|
34681
34685
|
}, 250);
|
|
34682
|
-
}, Me = new WeakMap(), xr = new WeakMap(), _i = new WeakMap(), yi = new WeakMap(), Sl = new WeakMap(), Ki = new WeakSet(),
|
|
34683
|
-
if (H(this,
|
|
34686
|
+
}, Me = new WeakMap(), xr = new WeakMap(), _i = new WeakMap(), yi = new WeakMap(), Sl = new WeakMap(), Ki = new WeakSet(), Ts = function(t, e = !0, r = !0) {
|
|
34687
|
+
if (H(this, Kn).call(this), this.val.saveKidoku(), e ? H(this, Me).click = //this.hTag.event({key:'enter', breakout: fnc});
|
|
34684
34688
|
//hTag.event({key:'down', breakout: fnc});
|
|
34685
34689
|
// hTag.event()は内部で使わず、こうする
|
|
34686
34690
|
H(this, Me).enter = H(this, Me).arrowdown = // hTag.event({key:'downwheel', breakout: fnc});
|
|
@@ -34690,20 +34694,20 @@ Ke = new WeakMap(), qi = new WeakMap(), Be = new WeakMap(), ml = new WeakMap(),
|
|
|
34690
34694
|
D.local = Object.keys(H(this, Me)), D.global = Object.keys(H(this, xr)), console.log("🎍 wait event... %o", D);
|
|
34691
34695
|
}
|
|
34692
34696
|
return !0;
|
|
34693
|
-
}, El = new WeakMap(), Tl = new WeakMap(),
|
|
34697
|
+
}, El = new WeakMap(), Tl = new WeakMap(), ze = new WeakMap(), wa = new WeakMap(), Ca = new WeakMap(), wl = new WeakMap(), tc = new WeakSet(), rp = function(t, e) {
|
|
34694
34698
|
const r = e instanceof Button ? e.getBtnBounds() : e.getBounds();
|
|
34695
34699
|
if (!(t[":タグ名"] === "link")) {
|
|
34696
34700
|
const N = e.parent.parent;
|
|
34697
34701
|
r.x += N.x, r.y += N.y;
|
|
34698
34702
|
}
|
|
34699
34703
|
if (!t.hint) {
|
|
34700
|
-
H(this,
|
|
34704
|
+
H(this, ze).hidden = !0;
|
|
34701
34705
|
return;
|
|
34702
34706
|
}
|
|
34703
|
-
H(this,
|
|
34707
|
+
H(this, ze).style.cssText = `position:${H(this, ze).style.position}; transform:${H(this, ze).style.transform};` + (t.hint_style ?? ""), H(this, wa).style.cssText = "", H(this, wa).textContent = t.hint ?? "";
|
|
34704
34708
|
try {
|
|
34705
34709
|
const N = t.hint_opt ? { ...H(this, wl), ...JSON.parse(t.hint_opt) } : H(this, wl);
|
|
34706
|
-
H(this,
|
|
34710
|
+
H(this, Ca).setOptions(N);
|
|
34707
34711
|
} catch (N) {
|
|
34708
34712
|
console.error(mesErrJSON(t, "hint_opt", N.message));
|
|
34709
34713
|
}
|
|
@@ -34712,14 +34716,14 @@ Ke = new WeakMap(), qi = new WeakMap(), Be = new WeakMap(), ml = new WeakMap(),
|
|
|
34712
34716
|
y: this.sys.ofsTop4elm + r.y * this.sys.cvsScale,
|
|
34713
34717
|
width: r.width,
|
|
34714
34718
|
height: r.height
|
|
34715
|
-
}), H(this,
|
|
34716
|
-
}, Cl = new WeakMap(),
|
|
34719
|
+
}), H(this, Ca).update(), H(this, ze).hidden = !1;
|
|
34720
|
+
}, Cl = new WeakMap(), Wn = new WeakMap(), ec = new WeakSet(), ip = function(t) {
|
|
34717
34721
|
const e = argChk_Boolean(t, "global", !1), r = e ? H(this, xr) : H(this, Me);
|
|
34718
34722
|
for (const [D, N] of Object.entries(r))
|
|
34719
34723
|
lt(this, Pl, Tf).call(this, D, N);
|
|
34720
34724
|
return e ? ot(this, xr, {}) : ot(this, Me, {}), ot(this, yi, !1), !1;
|
|
34721
34725
|
}, Pl = new WeakSet(), Tf = function(t, e) {
|
|
34722
|
-
t.slice(0, 4) === "dom=" && lt(this,
|
|
34726
|
+
t.slice(0, 4) === "dom=" && lt(this, qn, Ka).call(this, t).el.forEach((r) => r.removeEventListener("click", e));
|
|
34723
34727
|
}, rc = new WeakSet(), np = function(t) {
|
|
34724
34728
|
const e = t.key;
|
|
34725
34729
|
if (!e)
|
|
@@ -34731,7 +34735,7 @@ Ke = new WeakMap(), qi = new WeakMap(), Be = new WeakMap(), ml = new WeakMap(),
|
|
|
34731
34735
|
return lt(this, Pl, Tf).call(this, e, N[r]), delete N[r], !1;
|
|
34732
34736
|
}
|
|
34733
34737
|
if (t.fn ?? (t.fn = this.scrItr.scriptFn), e.slice(0, 4) === "dom=") {
|
|
34734
|
-
const k = lt(this,
|
|
34738
|
+
const k = lt(this, qn, Ka).call(this, e);
|
|
34735
34739
|
if (k.el.length === 0) {
|
|
34736
34740
|
if (argChk_Boolean(t, "need_err", !0))
|
|
34737
34741
|
throw `HTML内にセレクタ(${k.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
|
|
@@ -34751,7 +34755,7 @@ Ke = new WeakMap(), qi = new WeakMap(), Be = new WeakMap(), ml = new WeakMap(),
|
|
|
34751
34755
|
break;
|
|
34752
34756
|
}
|
|
34753
34757
|
$.forEach((U, z) => k.el.forEach((X) => {
|
|
34754
|
-
H(this,
|
|
34758
|
+
H(this, Ze).add(X, U, (V) => {
|
|
34755
34759
|
if (!H(this, yi) || this.layMng.getFrmDisabled(k.id) || U === "keydown" && V.key !== "Enter")
|
|
34756
34760
|
return;
|
|
34757
34761
|
const Y = X.dataset;
|
|
@@ -34777,7 +34781,7 @@ Ke = new WeakMap(), qi = new WeakMap(), Be = new WeakMap(), ml = new WeakMap(),
|
|
|
34777
34781
|
e = e.parentElement;
|
|
34778
34782
|
} while (e !== null);
|
|
34779
34783
|
return !0;
|
|
34780
|
-
},
|
|
34784
|
+
}, qn = new WeakSet(), Ka = function(t) {
|
|
34781
34785
|
const e = t.indexOf(":");
|
|
34782
34786
|
let r = "";
|
|
34783
34787
|
if (e >= 0) {
|
|
@@ -34788,11 +34792,11 @@ Ke = new WeakMap(), qi = new WeakMap(), Be = new WeakMap(), ml = new WeakMap(),
|
|
|
34788
34792
|
return r = t.slice(e + 1), { el: $.document.querySelectorAll(r), id: D, sel: r };
|
|
34789
34793
|
}
|
|
34790
34794
|
return r = t.slice(4), { el: document.querySelectorAll(r), id: "", sel: r };
|
|
34791
|
-
},
|
|
34795
|
+
}, Kn = new WeakMap(), ic = new WeakSet(), sp = function(t) {
|
|
34792
34796
|
if (this.scrItr.skip4page)
|
|
34793
34797
|
return !1;
|
|
34794
34798
|
if (!this.val.getVal("tmp:sn.tagL.enabled"))
|
|
34795
|
-
return H(this,
|
|
34799
|
+
return H(this, Kn).call(this), !1;
|
|
34796
34800
|
if (this.val.getVal("tmp:sn.skip.enabled")) {
|
|
34797
34801
|
if (!this.val.getVal("tmp:sn.skip.all") && // 未読で停止
|
|
34798
34802
|
!this.scrItr.isNextKidoku)
|
|
@@ -34800,26 +34804,26 @@ Ke = new WeakMap(), qi = new WeakMap(), Be = new WeakMap(), ml = new WeakMap(),
|
|
|
34800
34804
|
else if ("ps".includes(this.val.getVal("sys:sn.skip.mode")))
|
|
34801
34805
|
return !1;
|
|
34802
34806
|
}
|
|
34803
|
-
return this.val.getVal("tmp:sn.auto.enabled") ? lt(this,
|
|
34807
|
+
return this.val.getVal("tmp:sn.auto.enabled") ? lt(this, Pa, _u).call(this, {
|
|
34804
34808
|
time: Number(this.scrItr.isKidoku ? this.val.getVal("sys:sn.auto.msecLineWait_Kidoku") : this.val.getVal("sys:sn.auto.msecLineWait"))
|
|
34805
|
-
}) : (argChk_Boolean(t, "visible", !0) && this.layMng.breakLine(), lt(this, Ki,
|
|
34809
|
+
}) : (argChk_Boolean(t, "visible", !0) && this.layMng.breakLine(), lt(this, Ki, Ts).call(this, () => this.main.resume()));
|
|
34806
34810
|
}, nc = new WeakSet(), ap = function(t) {
|
|
34807
34811
|
if (this.scrItr.recodePage(), this.val.getVal("tmp:sn.skip.enabled")) {
|
|
34808
34812
|
if (!this.val.getVal("tmp:sn.skip.all") && // 未読で停止
|
|
34809
34813
|
!this.scrItr.isNextKidoku)
|
|
34810
34814
|
H(this, Sr).call(this);
|
|
34811
34815
|
else if (this.val.getVal("sys:sn.skip.mode") == "s")
|
|
34812
|
-
return H(this,
|
|
34816
|
+
return H(this, Kn).call(this), !1;
|
|
34813
34817
|
}
|
|
34814
34818
|
if (this.val.getVal("tmp:sn.auto.enabled"))
|
|
34815
|
-
return lt(this,
|
|
34819
|
+
return lt(this, Pa, _u).call(this, {
|
|
34816
34820
|
time: Number(this.scrItr.isKidoku ? this.val.getVal("sys:sn.auto.msecPageWait_Kidoku") : this.val.getVal("sys:sn.auto.msecPageWait"))
|
|
34817
34821
|
});
|
|
34818
34822
|
argChk_Boolean(t, "visible", !0) && this.layMng.breakPage();
|
|
34819
34823
|
const e = () => {
|
|
34820
34824
|
this.sndMng.clearCache(), this.main.resume();
|
|
34821
34825
|
};
|
|
34822
|
-
return lt(this, Ki,
|
|
34826
|
+
return lt(this, Ki, Ts).call(this, argChk_Boolean(t, "er", !1) && this.layMng.currentTxtlayFore ? () => {
|
|
34823
34827
|
this.hTag.er(t), e();
|
|
34824
34828
|
} : e);
|
|
34825
34829
|
}, Sr = new WeakMap(), sc = new WeakSet(), op = function() {
|
|
@@ -34827,7 +34831,7 @@ Ke = new WeakMap(), qi = new WeakMap(), Be = new WeakMap(), ml = new WeakMap(),
|
|
|
34827
34831
|
}, ac = new WeakSet(), lp = function(t) {
|
|
34828
34832
|
const { add: e, del: r, to: D } = t;
|
|
34829
34833
|
if ((e == null ? void 0 : e.slice(0, 4)) === "dom=") {
|
|
34830
|
-
const N = lt(this,
|
|
34834
|
+
const N = lt(this, qn, Ka).call(this, e);
|
|
34831
34835
|
if (N.el.length === 0 && argChk_Boolean(t, "need_err", !0))
|
|
34832
34836
|
throw `HTML内にセレクタ(${N.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
|
|
34833
34837
|
return N.el.forEach((k) => H(this, Be).add(
|
|
@@ -34838,7 +34842,7 @@ Ke = new WeakMap(), qi = new WeakMap(), Be = new WeakMap(), ml = new WeakMap(),
|
|
|
34838
34842
|
)), !1;
|
|
34839
34843
|
}
|
|
34840
34844
|
if ((r == null ? void 0 : r.slice(0, 4)) === "dom=") {
|
|
34841
|
-
const N = lt(this,
|
|
34845
|
+
const N = lt(this, qn, Ka).call(this, r);
|
|
34842
34846
|
if (N.el.length === 0 && argChk_Boolean(t, "need_err", !0))
|
|
34843
34847
|
throw `HTML内にセレクタ(${N.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
|
|
34844
34848
|
return N.el.forEach((k) => H(this, Be).remove(k)), !1;
|
|
@@ -34857,11 +34861,11 @@ Ke = new WeakMap(), qi = new WeakMap(), Be = new WeakMap(), ml = new WeakMap(),
|
|
|
34857
34861
|
break;
|
|
34858
34862
|
}
|
|
34859
34863
|
return !1;
|
|
34860
|
-
},
|
|
34864
|
+
}, Pa = new WeakSet(), _u = function(t) {
|
|
34861
34865
|
const e = argChk_Num(t, "time", NaN);
|
|
34862
34866
|
return this.scrItr.skip4page ? !1 : this.val.getVal("tmp:sn.skip.enabled") ? (!this.val.getVal("tmp:sn.skip.all") && // 未読で停止
|
|
34863
|
-
!this.scrItr.isNextKidoku && H(this, Sr).call(this), !1) : (H(this,
|
|
34864
|
-
H(this,
|
|
34867
|
+
!this.scrItr.isNextKidoku && H(this, Sr).call(this), !1) : (H(this, Zn).once(H(this, Jn), () => {
|
|
34868
|
+
H(this, Zn).off(H(this, Jn));
|
|
34865
34869
|
const r = new Tween({}).to({}, e).onComplete(() => {
|
|
34866
34870
|
ot(this, bi, () => {
|
|
34867
34871
|
}), r.stop(), this.main.resume();
|
|
@@ -34869,32 +34873,32 @@ Ke = new WeakMap(), qi = new WeakMap(), Be = new WeakMap(), ml = new WeakMap(),
|
|
|
34869
34873
|
ot(this, bi, () => r.end());
|
|
34870
34874
|
}), ot(this, bi, () => {
|
|
34871
34875
|
ot(this, bi, () => {
|
|
34872
|
-
}), H(this,
|
|
34876
|
+
}), H(this, Zn).off(H(this, Jn));
|
|
34873
34877
|
}), this.waitEvent(
|
|
34874
34878
|
() => H(this, bi).call(this),
|
|
34875
34879
|
argChk_Boolean(t, "canskip", !0),
|
|
34876
34880
|
// スキップ中は利かない
|
|
34877
34881
|
argChk_Boolean(t, "global", !1)
|
|
34878
34882
|
));
|
|
34879
|
-
}, bi = new WeakMap(),
|
|
34880
|
-
return this.scrItr.skip4page ? !1 : ((this.val.getVal("tmp:sn.skip.enabled") || this.val.getVal("tmp:sn.auto.enabled")) && H(this, Sr).call(this), lt(this, Ki,
|
|
34881
|
-
},
|
|
34883
|
+
}, bi = new WeakMap(), Zn = new WeakMap(), Jn = new WeakMap(), oc = new WeakSet(), up = function() {
|
|
34884
|
+
return this.scrItr.skip4page ? !1 : ((this.val.getVal("tmp:sn.skip.enabled") || this.val.getVal("tmp:sn.auto.enabled")) && H(this, Sr).call(this), lt(this, Ki, Ts).call(this, () => this.main.resume()));
|
|
34885
|
+
}, Je = new WeakMap();
|
|
34882
34886
|
class CallStack {
|
|
34883
34887
|
constructor(t = "", e = 0, r = { ":hEvt1Time": {}, ":hMp": {} }) {
|
|
34884
34888
|
Ot(this, "toString", () => `[fn:${this.fn}, idx:${this.idx}, csArg:${this.csArg}]`);
|
|
34885
34889
|
this.fn = t, this.idx = e, this.csArg = r;
|
|
34886
34890
|
}
|
|
34887
34891
|
}
|
|
34888
|
-
var oe,
|
|
34892
|
+
var oe, ce, Xt, xe, me, xi, Rl, Cf, Qn, Zi, lc, Ji, Ol, Pf, Il, Mf, Dl, Qi, ws, ts, Za, es, Si, Re, uc, hp, rs, Ja, hc, cp, Al, Ma, fr, cc, fp, fc, dp, Ei, an, dc, pp, is, ns, Nl, Ll, kl, dr, pc, vp, vc, gp, gc, mp, Bl, Rf, mc, _p, yc, yp, bc, bp, Fl, Of, $l, ss, Qa, as, Ti, ln, Gl, If, Ul, jl, Df, xc, Sc, zl, Ec, xp, Ge, Tc, Sp, Hl, Af, wc, Cc, Pc, Ep, Mc, Tp, wi, Vl, Nf, Rc, wp, Oc, Cp, Ic, Dc, Pp, Xl, Ra, Ac, Mp, Oa, yu, Ia, Nc, Rp, Lr, Lc, Op, Da, bu, kc, Ip, kr, Ue;
|
|
34889
34893
|
const ar = class {
|
|
34890
34894
|
constructor(t, e, r, D, N, k, $, G, U) {
|
|
34891
34895
|
rt(this, Rl);
|
|
34892
34896
|
rt(this, Ol);
|
|
34893
34897
|
rt(this, Il);
|
|
34894
|
-
rt(this,
|
|
34895
|
-
rt(this,
|
|
34898
|
+
rt(this, Qi);
|
|
34899
|
+
rt(this, ts);
|
|
34896
34900
|
rt(this, uc);
|
|
34897
|
-
rt(this,
|
|
34901
|
+
rt(this, rs);
|
|
34898
34902
|
rt(this, hc);
|
|
34899
34903
|
// // 変数操作
|
|
34900
34904
|
// インラインテキスト代入
|
|
@@ -34920,7 +34924,7 @@ const ar = class {
|
|
|
34920
34924
|
rt(this, bc);
|
|
34921
34925
|
// サブルーチンから戻る
|
|
34922
34926
|
rt(this, Fl);
|
|
34923
|
-
rt(this,
|
|
34927
|
+
rt(this, ss);
|
|
34924
34928
|
rt(this, Ti);
|
|
34925
34929
|
// 初期化前に終了した場合向け
|
|
34926
34930
|
rt(this, Gl);
|
|
@@ -34950,7 +34954,7 @@ const ar = class {
|
|
|
34950
34954
|
// しおりの保存
|
|
34951
34955
|
rt(this, kc);
|
|
34952
34956
|
rt(this, oe, { aToken: [""], len: 1, aLNum: [1] });
|
|
34953
|
-
rt(this,
|
|
34957
|
+
rt(this, ce, "");
|
|
34954
34958
|
rt(this, Xt, 0);
|
|
34955
34959
|
rt(this, xe, 0);
|
|
34956
34960
|
Ot(this, "addLineNum", (t) => ot(this, xe, H(this, xe) + t));
|
|
@@ -34959,11 +34963,11 @@ const ar = class {
|
|
|
34959
34963
|
rt(this, xi, new Grammar());
|
|
34960
34964
|
Ot(this, "firstWait", () => {
|
|
34961
34965
|
});
|
|
34962
|
-
rt(this,
|
|
34966
|
+
rt(this, Qn, {
|
|
34963
34967
|
//auth: // constructorで
|
|
34964
34968
|
//launch: // ここでは冒頭停止に間に合わないのでanalyzeInit()で
|
|
34965
34969
|
disconnect: () => {
|
|
34966
|
-
ot(ar,
|
|
34970
|
+
ot(ar, es, {}), ot(ar, Si, {}), this.isBreak = () => !1, H(this, Qn).continue({}), ot(this, Re, 0);
|
|
34967
34971
|
},
|
|
34968
34972
|
restart: () => this.isBreak = () => !1,
|
|
34969
34973
|
// ブレークポイント登録
|
|
@@ -34984,17 +34988,17 @@ const ar = class {
|
|
|
34984
34988
|
},
|
|
34985
34989
|
// デバッガからの操作系
|
|
34986
34990
|
continue: () => {
|
|
34987
|
-
lt(this,
|
|
34991
|
+
lt(this, ts, Za).call(this) || (ot(this, Xt, H(this, Xt) - H(this, Qi, ws)), ot(this, Re, 3), this.main.setLoop(!0), this.main.resume());
|
|
34988
34992
|
},
|
|
34989
34993
|
stepover: (t) => lt(this, Ol, Pf).call(this, t),
|
|
34990
34994
|
stepin: () => {
|
|
34991
|
-
if (lt(this,
|
|
34995
|
+
if (lt(this, ts, Za).call(this))
|
|
34992
34996
|
return;
|
|
34993
|
-
const t = H(this, oe).aToken[H(this, Xt) - H(this,
|
|
34994
|
-
this.sys.callHook(`stopOnStep${H(this, Ra).test(t) ? "In" : ""}`, {}), ot(this, Xt, H(this, Xt) - H(this,
|
|
34997
|
+
const t = H(this, oe).aToken[H(this, Xt) - H(this, Qi, ws)];
|
|
34998
|
+
this.sys.callHook(`stopOnStep${H(this, Ra).test(t) ? "In" : ""}`, {}), ot(this, Xt, H(this, Xt) - H(this, Qi, ws)), ot(this, Re, H(this, Re) === 1 ? 4 : 5), this.main.setLoop(!0), this.main.resume();
|
|
34995
34999
|
},
|
|
34996
35000
|
stepout: (t) => {
|
|
34997
|
-
lt(this,
|
|
35001
|
+
lt(this, ts, Za).call(this) || (H(this, me).length > 0 ? lt(this, Il, Mf).call(this, !0) : lt(this, Ol, Pf).call(this, t));
|
|
34998
35002
|
},
|
|
34999
35003
|
pause: () => {
|
|
35000
35004
|
ot(this, Re, 4), this.main.setLoop(!1, "一時停止"), this.sys.send2Dbg("stopOnStep", {});
|
|
@@ -35003,9 +35007,9 @@ const ar = class {
|
|
|
35003
35007
|
ot(this, Re, 4), this.main.setLoop(!1, "一時停止"), this.sys.send2Dbg("stopOnEntry", {});
|
|
35004
35008
|
}
|
|
35005
35009
|
});
|
|
35006
|
-
rt(this,
|
|
35010
|
+
rt(this, Zi, (t) => this.cfg.searchPath(t, SEARCH_PATH_ARG_EXT.SCRIPT));
|
|
35007
35011
|
// https://regex101.com/r/Km54EK/1 141 steps (~0ms)
|
|
35008
|
-
rt(this,
|
|
35012
|
+
rt(this, Ji, (t) => (this.sys.pathBaseCnvSnPath4Dbg + H(this, Zi).call(this, t)).replace(H(ar, lc), `$1/prj/$2/${H(this, ce)}$3`));
|
|
35009
35013
|
Ot(this, "cnvPath4Dbg", (t) => this.sys.pathBaseCnvSnPath4Dbg + t.replace("/crypto_prj/", "/prj/"));
|
|
35010
35014
|
rt(this, Dl, 0);
|
|
35011
35015
|
rt(this, Re, 0);
|
|
@@ -35016,10 +35020,10 @@ const ar = class {
|
|
|
35016
35020
|
});
|
|
35017
35021
|
rt(this, Ma, void 0);
|
|
35018
35022
|
rt(this, fr, void 0);
|
|
35019
|
-
rt(this, rs, () => {
|
|
35020
|
-
});
|
|
35021
35023
|
rt(this, is, () => {
|
|
35022
35024
|
});
|
|
35025
|
+
rt(this, ns, () => {
|
|
35026
|
+
});
|
|
35023
35027
|
rt(this, Nl, "");
|
|
35024
35028
|
rt(this, Ll, {});
|
|
35025
35029
|
Ot(this, "noticeBreak", (t) => {
|
|
@@ -35028,7 +35032,7 @@ const ar = class {
|
|
|
35028
35032
|
// // 条件分岐
|
|
35029
35033
|
rt(this, dr, [-1]);
|
|
35030
35034
|
rt(this, $l, "");
|
|
35031
|
-
rt(this,
|
|
35035
|
+
rt(this, as, "");
|
|
35032
35036
|
// シナリオ解析処理ループ・冒頭処理
|
|
35033
35037
|
Ot(this, "nextToken", () => "");
|
|
35034
35038
|
rt(this, Ul, (t) => {
|
|
@@ -35036,7 +35040,7 @@ const ar = class {
|
|
|
35036
35040
|
rt(this, xc, /(\*{2,})([^\|]*)/);
|
|
35037
35041
|
rt(this, Sc, /\[macro\s/);
|
|
35038
35042
|
rt(this, zl, /\[endmacro[\s\]]/);
|
|
35039
|
-
rt(this,
|
|
35043
|
+
rt(this, Ge, /* @__PURE__ */ Object.create(null));
|
|
35040
35044
|
rt(this, wc, /^\[(call|loadplugin)\s/);
|
|
35041
35045
|
rt(this, Cc, /\bfn\s*=\s*[^\s\]]+/);
|
|
35042
35046
|
rt(this, wi, !1);
|
|
@@ -35052,21 +35056,21 @@ const ar = class {
|
|
|
35052
35056
|
aIfStk: [-1]
|
|
35053
35057
|
});
|
|
35054
35058
|
rt(this, kr, []);
|
|
35055
|
-
rt(this,
|
|
35059
|
+
rt(this, Ue, -1);
|
|
35056
35060
|
this.cfg = t, this.hTag = e, this.main = r, this.val = D, this.alzTagArg = N, this.runAnalyze = k, this.prpPrs = $, this.sndMng = G, this.sys = U, e.let_ml = (X) => lt(this, cc, fp).call(this, X), e.endlet_ml = () => !1, e.dump_stack = () => lt(this, fc, dp).call(this), e.dump_script = (X) => lt(this, dc, pp).call(this, X), e.else = // その他ifブロック開始
|
|
35057
35061
|
e.elsif = // 別条件のifブロック開始
|
|
35058
|
-
e.endif = () => lt(this, pc, vp).call(this), e.if = (X) => lt(this, vc, gp).call(this, X), e.call = (X) => lt(this, gc, mp).call(this, X), e.jump = (X) => lt(this, mc, _p).call(this, X), e.page = (X) => lt(this, yc, yp).call(this, X), e.pop_stack = (X) => lt(this, bc, bp).call(this, X), e.return = (X) => lt(this, Fl, Of).call(this, X), e.bracket2macro = (X) => lt(this, Rc, wp).call(this, X), e.char2macro = (X) => lt(this, Oc, Cp).call(this, X), e.endmacro = (X) => lt(this, Fl, Of).call(this, X), e.macro = (X) => lt(this, Dc, Pp).call(this, X), e.load = (X) => lt(this, Ac, Mp).call(this, X), e.reload_script = (X) => lt(this, Nc, Rp).call(this, X), e.record_place = () => lt(this, Lc, Op).call(this), e.save = (X) => lt(this, kc, Ip).call(this, X), t.oCfg.debug.token && ot(this, Ul, (X) => console.log(`🌱 トークン fn:${H(this,
|
|
35062
|
+
e.endif = () => lt(this, pc, vp).call(this), e.if = (X) => lt(this, vc, gp).call(this, X), e.call = (X) => lt(this, gc, mp).call(this, X), e.jump = (X) => lt(this, mc, _p).call(this, X), e.page = (X) => lt(this, yc, yp).call(this, X), e.pop_stack = (X) => lt(this, bc, bp).call(this, X), e.return = (X) => lt(this, Fl, Of).call(this, X), e.bracket2macro = (X) => lt(this, Rc, wp).call(this, X), e.char2macro = (X) => lt(this, Oc, Cp).call(this, X), e.endmacro = (X) => lt(this, Fl, Of).call(this, X), e.macro = (X) => lt(this, Dc, Pp).call(this, X), e.load = (X) => lt(this, Ac, Mp).call(this, X), e.reload_script = (X) => lt(this, Nc, Rp).call(this, X), e.record_place = () => lt(this, Lc, Op).call(this), e.save = (X) => lt(this, kc, Ip).call(this, X), t.oCfg.debug.token && ot(this, Ul, (X) => console.log(`🌱 トークン fn:${H(this, ce)} idx:${H(this, Xt)} ln:${H(this, xe)} token【${X}】`)), D.defTmp("const.sn.vctCallStk.length", () => H(this, me).length);
|
|
35059
35063
|
const z = t.oCfg.init.escape;
|
|
35060
35064
|
if (H(this, xi).setEscape(z), RubySpliter.setEscape(z), CmnLib.isDbg) {
|
|
35061
35065
|
U.addHook((V, Y) => {
|
|
35062
35066
|
var q, W;
|
|
35063
|
-
return (W = (q = H(this,
|
|
35067
|
+
return (W = (q = H(this, Qn))[V]) == null ? void 0 : W.call(q, Y);
|
|
35064
35068
|
}), this.isBreak = lt(this, uc, hp);
|
|
35065
35069
|
const X = this.analyzeInit;
|
|
35066
35070
|
this.analyzeInit = () => {
|
|
35067
35071
|
this.analyzeInit = () => {
|
|
35068
35072
|
}, this.sys.send2Dbg("hi", {});
|
|
35069
|
-
}, H(this,
|
|
35073
|
+
}, H(this, Qn).auth = (V) => {
|
|
35070
35074
|
const Y = V.hBreakpoint.hFn2hLineBP;
|
|
35071
35075
|
for (const [q, W] of Object.entries(Y))
|
|
35072
35076
|
lt(this, Rl, Cf).call(this, q, W);
|
|
@@ -35092,10 +35096,10 @@ const ar = class {
|
|
|
35092
35096
|
} else
|
|
35093
35097
|
this.recodeDesign = () => {
|
|
35094
35098
|
};
|
|
35095
|
-
t.oCfg.debug.tag && ot(this, Al, (X) => console.log(`🌲 タグ解析 fn:${H(this,
|
|
35099
|
+
t.oCfg.debug.tag && ot(this, Al, (X) => console.log(`🌲 タグ解析 fn:${H(this, ce)} idx:${H(this, Xt)} ln:${H(this, xe)} [${X} %o]`, this.alzTagArg.hPrm));
|
|
35096
35100
|
}
|
|
35097
35101
|
get scriptFn() {
|
|
35098
|
-
return H(this,
|
|
35102
|
+
return H(this, ce);
|
|
35099
35103
|
}
|
|
35100
35104
|
subIdxToken() {
|
|
35101
35105
|
--Ie(this, Xt)._;
|
|
@@ -35155,7 +35159,7 @@ const ar = class {
|
|
|
35155
35159
|
}
|
|
35156
35160
|
dumpErrForeLine() {
|
|
35157
35161
|
if (H(this, Xt) === 0) {
|
|
35158
|
-
console.group(`🥟 Error line (from 0 rows before) fn:${H(this,
|
|
35162
|
+
console.group(`🥟 Error line (from 0 rows before) fn:${H(this, ce)}`), console.groupEnd();
|
|
35159
35163
|
return;
|
|
35160
35164
|
}
|
|
35161
35165
|
let t = "";
|
|
@@ -35163,8 +35167,8 @@ const ar = class {
|
|
|
35163
35167
|
;
|
|
35164
35168
|
const e = t.split(`
|
|
35165
35169
|
`).slice(-H(this, kl)), r = e.length;
|
|
35166
|
-
console.group(`🥟 Error line (from ${r} rows before) fn:${H(this,
|
|
35167
|
-
const D = String(H(this, xe)).length, N = lt(this, Ei,
|
|
35170
|
+
console.group(`🥟 Error line (from ${r} rows before) fn:${H(this, ce)}`);
|
|
35171
|
+
const D = String(H(this, xe)).length, N = lt(this, Ei, an).call(this, H(this, oe), H(this, Xt));
|
|
35168
35172
|
for (let k = 0; k < r; ++k) {
|
|
35169
35173
|
const $ = H(this, xe) - r + k + 1, G = `${String($).padStart(D, " ")}: %c`, U = e[k], z = U.length > 75 ? U.slice(0, 75) + "…" : U;
|
|
35170
35174
|
k === r - 1 ? console.info(
|
|
@@ -35176,18 +35180,18 @@ const ar = class {
|
|
|
35176
35180
|
console.groupEnd();
|
|
35177
35181
|
}
|
|
35178
35182
|
analyzeInit() {
|
|
35179
|
-
const t = lt(this, Ec, xp).call(this, H(this, oe), !!this.val.getVal("mp:const.sn.macro.name"), H(this, xe), H(this,
|
|
35183
|
+
const t = lt(this, Ec, xp).call(this, H(this, oe), !!this.val.getVal("mp:const.sn.macro.name"), H(this, xe), H(this, as), H(this, Xt));
|
|
35180
35184
|
ot(this, Xt, t.idx), ot(this, xe, t.ln), this.runAnalyze();
|
|
35181
35185
|
}
|
|
35182
35186
|
get isKidoku() {
|
|
35183
35187
|
return H(this, wi);
|
|
35184
35188
|
}
|
|
35185
35189
|
get isNextKidoku() {
|
|
35186
|
-
let t = H(this,
|
|
35190
|
+
let t = H(this, ce), e = H(this, Xt), r = H(this, oe).len;
|
|
35187
35191
|
if (H(this, me).length > 0) {
|
|
35188
35192
|
const N = H(this, me)[0];
|
|
35189
35193
|
t = N.fn, e = N.idx;
|
|
35190
|
-
const k = H(this,
|
|
35194
|
+
const k = H(this, Ge)[t];
|
|
35191
35195
|
k && (r = k.len);
|
|
35192
35196
|
}
|
|
35193
35197
|
const D = this.val.getAreaKidoku(t);
|
|
@@ -35204,7 +35208,7 @@ const ar = class {
|
|
|
35204
35208
|
return;
|
|
35205
35209
|
const { fn: t, idx: e } = lt(this, Da, bu).call(this), r = e - 1, D = r + ":" + t, N = H(this, kr).findIndex(($) => $.key === D);
|
|
35206
35210
|
if (N > -1) {
|
|
35207
|
-
ot(this,
|
|
35211
|
+
ot(this, Ue, N);
|
|
35208
35212
|
return;
|
|
35209
35213
|
}
|
|
35210
35214
|
const k = {
|
|
@@ -35215,11 +35219,11 @@ const ar = class {
|
|
|
35215
35219
|
retIdx: 0,
|
|
35216
35220
|
retMark: { ...H(this, Lr) }
|
|
35217
35221
|
};
|
|
35218
|
-
if (H(this,
|
|
35219
|
-
const $ = H(this, kr)[H(this,
|
|
35222
|
+
if (H(this, Ue) >= 0) {
|
|
35223
|
+
const $ = H(this, kr)[H(this, Ue)];
|
|
35220
35224
|
k.retFn = $.fn, k.retIdx = $.idx + 1;
|
|
35221
35225
|
}
|
|
35222
|
-
++Ie(this,
|
|
35226
|
+
++Ie(this, Ue)._ === H(this, kr).length ? H(this, kr).push(k) : H(this, kr)[H(this, Ue)] = k;
|
|
35223
35227
|
}
|
|
35224
35228
|
recodeDesign(t) {
|
|
35225
35229
|
let e = "", r = 0;
|
|
@@ -35228,53 +35232,53 @@ const ar = class {
|
|
|
35228
35232
|
const $ = H(this, me)[0];
|
|
35229
35233
|
e = $.fn, r = $.idx;
|
|
35230
35234
|
} else
|
|
35231
|
-
e = H(this,
|
|
35232
|
-
t[":path"] = H(this,
|
|
35233
|
-
const N = lt(this, Ei,
|
|
35235
|
+
e = H(this, ce), r = H(this, Xt);
|
|
35236
|
+
t[":path"] = H(this, Ji).call(this, e);
|
|
35237
|
+
const N = lt(this, Ei, an).call(this, H(this, Ge)[e], r);
|
|
35234
35238
|
t[":ln"] = N.ln, t[":col_s"] = N.col_s, t[":col_e"] = N.col_e;
|
|
35235
35239
|
const k = r - 1;
|
|
35236
|
-
t[":idx_tkn"] = k, t[":token"] = H(this,
|
|
35240
|
+
t[":idx_tkn"] = k, t[":token"] = H(this, Ge)[e].aToken[k], this.sys.send2Dbg("_recodeDesign", t);
|
|
35237
35241
|
}
|
|
35238
35242
|
replace(t, e) {
|
|
35239
35243
|
H(this, oe).aToken[t] = e;
|
|
35240
35244
|
}
|
|
35241
35245
|
};
|
|
35242
35246
|
let ScriptIterator = ar;
|
|
35243
|
-
oe = new WeakMap(),
|
|
35244
|
-
H(ar,
|
|
35245
|
-
},
|
|
35246
|
-
if (lt(this,
|
|
35247
|
+
oe = new WeakMap(), ce = new WeakMap(), Xt = new WeakMap(), xe = new WeakMap(), me = new WeakMap(), xi = new WeakMap(), Rl = new WeakSet(), Cf = function(t, e) {
|
|
35248
|
+
H(ar, es)[H(this, Ji).call(this, t)] = e;
|
|
35249
|
+
}, Qn = new WeakMap(), Zi = new WeakMap(), lc = new WeakMap(), Ji = new WeakMap(), Ol = new WeakSet(), Pf = function(t) {
|
|
35250
|
+
if (lt(this, ts, Za).call(this))
|
|
35247
35251
|
return;
|
|
35248
|
-
const e = H(this, oe).aToken[H(this, Xt) - H(this,
|
|
35249
|
-
H(this, Ra).test(e) ? lt(this, Il, Mf).call(this, !1) : (this.sys.callHook("stopOnStep", {}), H(this,
|
|
35252
|
+
const e = H(this, oe).aToken[H(this, Xt) - H(this, Qi, ws)];
|
|
35253
|
+
H(this, Ra).test(e) ? lt(this, Il, Mf).call(this, !1) : (this.sys.callHook("stopOnStep", {}), H(this, Qn).stepin(t));
|
|
35250
35254
|
}, Il = new WeakSet(), Mf = function(t) {
|
|
35251
|
-
this.sys.callHook(`stopOnStep${t ? "Out" : ""}`, {}), ot(this, Dl, H(this, me).length - (t ? 1 : 0)), ot(this, Xt, H(this, Xt) - H(this,
|
|
35252
|
-
}, Dl = new WeakMap(),
|
|
35255
|
+
this.sys.callHook(`stopOnStep${t ? "Out" : ""}`, {}), ot(this, Dl, H(this, me).length - (t ? 1 : 0)), ot(this, Xt, H(this, Xt) - H(this, Qi, ws)), ot(this, Re, t ? 7 : 6), this.main.setLoop(!0), this.main.resume();
|
|
35256
|
+
}, Dl = new WeakMap(), Qi = new WeakSet(), ws = function() {
|
|
35253
35257
|
return H(this, Re) === 2 || H(this, Re) === 4 ? 1 : 0;
|
|
35254
|
-
},
|
|
35258
|
+
}, ts = new WeakSet(), Za = function() {
|
|
35255
35259
|
return H(this, Xt) < H(this, oe).len ? !1 : (this.sys.callHook("stopOnEntry", {}), this.main.setLoop(!1, "スクリプト終端です"), !0);
|
|
35256
|
-
},
|
|
35260
|
+
}, es = new WeakMap(), Si = new WeakMap(), Re = new WeakMap(), uc = new WeakSet(), hp = function(t) {
|
|
35257
35261
|
switch (H(this, Re)) {
|
|
35258
35262
|
case 6:
|
|
35259
|
-
lt(this,
|
|
35263
|
+
lt(this, rs, Ja).call(this), ot(this, Re, 7);
|
|
35260
35264
|
break;
|
|
35261
35265
|
case 7:
|
|
35262
35266
|
if (H(this, me).length !== H(this, Dl))
|
|
35263
35267
|
break;
|
|
35264
35268
|
return ot(this, Re, 4), this.main.setLoop(!1, "ステップ実行"), this.sys.send2Dbg("stopOnStep", {}), !0;
|
|
35265
35269
|
case 5:
|
|
35266
|
-
lt(this,
|
|
35270
|
+
lt(this, rs, Ja).call(this), ot(this, Re, 4);
|
|
35267
35271
|
break;
|
|
35268
35272
|
case 4:
|
|
35269
|
-
return lt(this,
|
|
35273
|
+
return lt(this, rs, Ja).call(this), this.main.setLoop(!1, "ステップ実行"), this.sys.send2Dbg("stopOnStep", {}), !0;
|
|
35270
35274
|
case 3:
|
|
35271
|
-
lt(this,
|
|
35275
|
+
lt(this, rs, Ja).call(this), ot(this, Re, 0);
|
|
35272
35276
|
break;
|
|
35273
35277
|
default:
|
|
35274
35278
|
if (tagToken2Name(t) in H(ar, Si))
|
|
35275
35279
|
return ot(this, Re, 2), this.main.setLoop(!1, `関数 ${t} ブレーク`), this.sys.callHook("stopOnBreakpoint", {}), this.sys.send2Dbg("stopOnBreakpoint", {}), !0;
|
|
35276
35280
|
{
|
|
35277
|
-
const e = H(ar,
|
|
35281
|
+
const e = H(ar, es)[H(this, Ji).call(this, H(this, ce))];
|
|
35278
35282
|
if (!e)
|
|
35279
35283
|
break;
|
|
35280
35284
|
const r = e[H(this, xe)];
|
|
@@ -35293,21 +35297,21 @@ oe = new WeakMap(), le = new WeakMap(), Xt = new WeakMap(), xe = new WeakMap(),
|
|
|
35293
35297
|
return !0;
|
|
35294
35298
|
}
|
|
35295
35299
|
return !1;
|
|
35296
|
-
},
|
|
35300
|
+
}, rs = new WeakSet(), Ja = function() {
|
|
35297
35301
|
var e;
|
|
35298
|
-
const t = (e = H(ar,
|
|
35302
|
+
const t = (e = H(ar, es)[getFn(H(this, ce))]) == null ? void 0 : e[H(this, xe)];
|
|
35299
35303
|
t != null && t.hitCondition && --t.hitCondition;
|
|
35300
35304
|
}, hc = new WeakSet(), cp = function() {
|
|
35301
|
-
const t = H(this, Re) === 3 ? 1 : 0, e = H(this, oe).aToken[H(this, Xt) - 1 + t], r = H(this,
|
|
35305
|
+
const t = H(this, Re) === 3 ? 1 : 0, e = H(this, oe).aToken[H(this, Xt) - 1 + t], r = H(this, Ji).call(this, H(this, ce)), D = tagToken2Name(e), N = D ? `[${D}]` : e, k = this.val.getVal("mp:const.sn.macro") ?? "{}";
|
|
35302
35306
|
if (H(this, Xt) === 0)
|
|
35303
35307
|
return [{ fn: r, ln: 1, col: 1, nm: N, ma: k }];
|
|
35304
|
-
const $ = lt(this, Ei,
|
|
35308
|
+
const $ = lt(this, Ei, an).call(this, H(this, oe), H(this, Xt)), G = [{ fn: r, ln: $.ln, col: $.col_s + 1, nm: N, ma: k }], U = H(this, me).length;
|
|
35305
35309
|
if (U === 0)
|
|
35306
35310
|
return G;
|
|
35307
35311
|
for (let z = U - 1; z >= 0; --z) {
|
|
35308
|
-
const X = H(this, me)[z], V = H(this,
|
|
35312
|
+
const X = H(this, me)[z], V = H(this, Ge)[X.fn], Y = V.aToken[X.idx - 1], q = lt(this, Ei, an).call(this, V, X.idx), W = tagToken2Name(Y);
|
|
35309
35313
|
G.push({
|
|
35310
|
-
fn: H(this,
|
|
35314
|
+
fn: H(this, Ji).call(this, X.fn),
|
|
35311
35315
|
ln: q.ln,
|
|
35312
35316
|
col: q.col_s + 1,
|
|
35313
35317
|
nm: W ? `[${W}]` : Y,
|
|
@@ -35326,21 +35330,21 @@ oe = new WeakMap(), le = new WeakMap(), Xt = new WeakMap(), xe = new WeakMap(),
|
|
|
35326
35330
|
return t.text = r, t.cast = "str", this.hTag.let(t), ot(this, Xt, H(this, Xt) + 2), ot(this, xe, H(this, xe) + (r.match(/\n/g) ?? []).length), !1;
|
|
35327
35331
|
}, fc = new WeakSet(), dp = function() {
|
|
35328
35332
|
if (H(this, Xt) === 0)
|
|
35329
|
-
return console.group(`🥟 [dump_stack] スクリプト現在地 fn:${H(this,
|
|
35330
|
-
const t = lt(this, Ei,
|
|
35333
|
+
return console.group(`🥟 [dump_stack] スクリプト現在地 fn:${H(this, ce)} line:1 col:0`), console.groupEnd(), !1;
|
|
35334
|
+
const t = lt(this, Ei, an).call(this, H(this, oe), H(this, Xt)), e = `スクリプト現在地 fn:${H(this, ce)} line:${t.ln} col:${t.col_s + 1}`;
|
|
35331
35335
|
console.group(`🥟 [dump_stack] ${e}`);
|
|
35332
35336
|
const r = H(this, me).length;
|
|
35333
35337
|
if (r > 0) {
|
|
35334
35338
|
console.info(e);
|
|
35335
35339
|
for (let D = r - 1; D >= 0; --D) {
|
|
35336
|
-
const N = H(this, me)[D], k = N.csArg[":hMp"], $ = k ? k[":タグ名"] : void 0, G = N.csArg[":タグ名"] ?? "", U = lt(this, Ei,
|
|
35340
|
+
const N = H(this, me)[D], k = N.csArg[":hMp"], $ = k ? k[":タグ名"] : void 0, G = N.csArg[":タグ名"] ?? "", U = lt(this, Ei, an).call(this, H(this, Ge)[N.fn], N.idx);
|
|
35337
35341
|
console.info(
|
|
35338
35342
|
`${r - D}つ前のコール元 fn:${N.fn} line:${U.ln} col:${U.col_s + 1}` + ($ ? "([" + $ + "]マクロ内)" : " ") + `で [${G} ...]をコール`
|
|
35339
35343
|
);
|
|
35340
35344
|
}
|
|
35341
35345
|
}
|
|
35342
35346
|
return console.groupEnd(), !1;
|
|
35343
|
-
}, Ei = new WeakSet(),
|
|
35347
|
+
}, Ei = new WeakSet(), an = function(t, e) {
|
|
35344
35348
|
const r = { ln: 1, col_s: 0, col_e: 0 };
|
|
35345
35349
|
if (!t)
|
|
35346
35350
|
return r;
|
|
@@ -35360,24 +35364,24 @@ oe = new WeakMap(), le = new WeakMap(), Xt = new WeakMap(), xe = new WeakMap(),
|
|
|
35360
35364
|
const { set_fnc: e, break_fnc: r } = t;
|
|
35361
35365
|
if (!e)
|
|
35362
35366
|
throw "set_fncは必須です";
|
|
35363
|
-
if (ot(this,
|
|
35367
|
+
if (ot(this, is, globalThis[e]), !H(this, is)) {
|
|
35364
35368
|
if (argChk_Boolean(t, "need_err", !0))
|
|
35365
35369
|
throw `HTML内に関数${e}が見つかりません`;
|
|
35366
|
-
return ot(this,
|
|
35370
|
+
return ot(this, is, () => {
|
|
35367
35371
|
}), !1;
|
|
35368
35372
|
}
|
|
35369
35373
|
if (this.noticeBreak = (D) => {
|
|
35370
|
-
H(this, Nl) !== H(this,
|
|
35374
|
+
H(this, Nl) !== H(this, ce) && (ot(this, Nl, H(this, ce)), H(this, is).call(this, H(this, Ll)[H(this, ce)] = H(this, Ll)[H(this, ce)] ?? H(this, oe).aToken.join(""))), H(this, ns).call(this, H(this, xe), D);
|
|
35371
35375
|
}, this.noticeBreak(!0), !r)
|
|
35372
35376
|
return !1;
|
|
35373
|
-
if (ot(this,
|
|
35377
|
+
if (ot(this, ns, globalThis[r]), !H(this, ns)) {
|
|
35374
35378
|
if (argChk_Boolean(t, "need_err", !0))
|
|
35375
35379
|
throw `HTML内に関数${r}が見つかりません`;
|
|
35376
|
-
ot(this,
|
|
35380
|
+
ot(this, ns, () => {
|
|
35377
35381
|
});
|
|
35378
35382
|
}
|
|
35379
35383
|
return !1;
|
|
35380
|
-
},
|
|
35384
|
+
}, is = new WeakMap(), ns = new WeakMap(), Nl = new WeakMap(), Ll = new WeakMap(), kl = new WeakMap(), dr = new WeakMap(), pc = new WeakSet(), vp = function() {
|
|
35381
35385
|
if (H(this, dr)[0] === -1)
|
|
35382
35386
|
throw "ifブロック内ではありません";
|
|
35383
35387
|
return ot(this, Xt, H(this, dr)[0]), H(this, dr).shift(), !1;
|
|
@@ -35436,41 +35440,41 @@ oe = new WeakMap(), le = new WeakMap(), Xt = new WeakMap(), xe = new WeakMap(),
|
|
|
35436
35440
|
}, gc = new WeakSet(), mp = function(t) {
|
|
35437
35441
|
argChk_Boolean(t, "count", !1) || lt(this, Vl, Nf).call(this);
|
|
35438
35442
|
const { fn: e } = t;
|
|
35439
|
-
return e && H(this,
|
|
35443
|
+
return e && H(this, Zi).call(this, e), lt(this, Bl, Rf).call(this, { ":hEvt1Time": H(this, Ma).popLocalEvts(), ":hMp": this.val.cloneMp() }), argChk_Boolean(t, "clear_local_event", !1) && this.hTag.clear_event({}), lt(this, Ti, ln).call(this, e, t.label), !0;
|
|
35440
35444
|
}, Bl = new WeakSet(), Rf = function(t) {
|
|
35441
|
-
H(this, oe).aLNum[H(this, Xt)] = H(this, xe), H(this, $l) || (t[":resvToken"] = "", lt(this,
|
|
35445
|
+
H(this, oe).aLNum[H(this, Xt)] = H(this, xe), H(this, $l) || (t[":resvToken"] = "", lt(this, ss, Qa).call(this)), H(this, me).push(new CallStack(H(this, ce), H(this, Xt), t)), H(this, dr).unshift(-1);
|
|
35442
35446
|
}, mc = new WeakSet(), _p = function(t) {
|
|
35443
|
-
return argChk_Boolean(t, "count", !0) || lt(this, Vl, Nf).call(this), H(this, dr)[0] = -1, lt(this, Ti,
|
|
35447
|
+
return argChk_Boolean(t, "count", !0) || lt(this, Vl, Nf).call(this), H(this, dr)[0] = -1, lt(this, Ti, ln).call(this, t.fn, t.label), !0;
|
|
35444
35448
|
}, yc = new WeakSet(), yp = function(t) {
|
|
35445
|
-
if (H(this,
|
|
35449
|
+
if (H(this, Ue) === -1)
|
|
35446
35450
|
return !1;
|
|
35447
35451
|
if (argChk_Boolean(t, "clear", !1))
|
|
35448
|
-
return ot(this, kr, []), ot(this,
|
|
35452
|
+
return ot(this, kr, []), ot(this, Ue, -1), !1;
|
|
35449
35453
|
const { to: e } = t;
|
|
35450
35454
|
if (!e)
|
|
35451
35455
|
throw "clearかtoは必須です";
|
|
35452
|
-
const r = H(this,
|
|
35456
|
+
const r = H(this, Ue);
|
|
35453
35457
|
switch (e) {
|
|
35454
35458
|
case "prev":
|
|
35455
|
-
H(this,
|
|
35459
|
+
H(this, Ue) > 0 && --Ie(this, Ue)._;
|
|
35456
35460
|
break;
|
|
35457
35461
|
case "next":
|
|
35458
35462
|
const $ = H(this, kr).length;
|
|
35459
|
-
H(this,
|
|
35463
|
+
H(this, Ue) < $ - 1 && ++Ie(this, Ue)._;
|
|
35460
35464
|
break;
|
|
35461
35465
|
default:
|
|
35462
35466
|
throw `属性to「${e}」は異常です`;
|
|
35463
35467
|
}
|
|
35464
|
-
if (r === H(this,
|
|
35468
|
+
if (r === H(this, Ue))
|
|
35465
35469
|
return !1;
|
|
35466
|
-
const D = H(this, kr)[H(this,
|
|
35470
|
+
const D = H(this, kr)[H(this, Ue)], { fn: N, idx: k } = lt(this, Da, bu).call(this);
|
|
35467
35471
|
return D.key === k + ":" + N ? !1 : lt(this, Oa, yu).call(this, { fn: D.retFn, index: D.retIdx }, D.retMark);
|
|
35468
35472
|
}, bc = new WeakSet(), bp = function(t) {
|
|
35469
35473
|
if (argChk_Boolean(t, "clear", !1))
|
|
35470
35474
|
ot(this, me, []);
|
|
35471
35475
|
else if (!H(this, me).pop())
|
|
35472
35476
|
throw "[pop_stack] スタックが空です";
|
|
35473
|
-
return lt(this,
|
|
35477
|
+
return lt(this, ss, Qa).call(this), ot(this, dr, [-1]), this.val.setMp({}), !1;
|
|
35474
35478
|
}, Fl = new WeakSet(), Of = function(t) {
|
|
35475
35479
|
const e = H(this, me).pop();
|
|
35476
35480
|
if (!e)
|
|
@@ -35480,36 +35484,54 @@ oe = new WeakMap(), le = new WeakMap(), Xt = new WeakMap(), xe = new WeakMap(),
|
|
|
35480
35484
|
const D = r[":hMp"];
|
|
35481
35485
|
D && this.val.setMp(D);
|
|
35482
35486
|
const N = r[":resvToken"];
|
|
35483
|
-
N ? this.nextToken = () => (lt(this,
|
|
35487
|
+
N ? this.nextToken = () => (lt(this, ss, Qa).call(this), N) : lt(this, ss, Qa).call(this), r[":hEvt1Time"] && H(this, Ma).pushLocalEvts(r[":hEvt1Time"]);
|
|
35484
35488
|
const { fn: k, label: $ } = t;
|
|
35485
|
-
return k || $ ? (lt(this, Ti,
|
|
35486
|
-
}, $l = new WeakMap(),
|
|
35489
|
+
return k || $ ? (lt(this, Ti, ln).call(this, k, $), !0) : e.fn in H(this, Ge) ? (lt(this, Hl, Af).call(this, e), !1) : (lt(this, Ti, ln).call(this, e.fn, "", e.idx), !0);
|
|
35490
|
+
}, $l = new WeakMap(), ss = new WeakSet(), Qa = function() {
|
|
35487
35491
|
ot(this, $l, ""), this.nextToken = lt(this, Gl, If);
|
|
35488
|
-
},
|
|
35489
|
-
if (!t && !e && this.main.errScript("[jump系] fnまたはlabelは必須です"), e ? (e.at(0) !== "*" && this.main.errScript("[jump系] labelは*で始まります"), ot(this,
|
|
35492
|
+
}, as = new WeakMap(), Ti = new WeakSet(), ln = function(t = "", e = "", r = 0) {
|
|
35493
|
+
if (!t && !e && this.main.errScript("[jump系] fnまたはlabelは必須です"), e ? (e.at(0) !== "*" && this.main.errScript("[jump系] labelは*で始まります"), ot(this, as, e), H(this, as).slice(0, 2) !== "**" && ot(this, Xt, r)) : (ot(this, as, ""), ot(this, Xt, r)), !t) {
|
|
35490
35494
|
this.analyzeInit();
|
|
35491
35495
|
return;
|
|
35492
35496
|
}
|
|
35493
|
-
|
|
35494
|
-
|
|
35497
|
+
if (t.includes("@"))
|
|
35498
|
+
throw "[jump系] fn には文字「@」は禁止です";
|
|
35499
|
+
const D = H(this, Zi).call(this, t);
|
|
35500
|
+
if (t === H(this, ce)) {
|
|
35495
35501
|
this.analyzeInit();
|
|
35496
35502
|
return;
|
|
35497
35503
|
}
|
|
35498
|
-
ot(this,
|
|
35499
|
-
const N = H(this,
|
|
35504
|
+
ot(this, ce, t);
|
|
35505
|
+
const N = H(this, Ge)[t];
|
|
35500
35506
|
if (N) {
|
|
35501
35507
|
ot(this, oe, N), this.analyzeInit();
|
|
35502
35508
|
return;
|
|
35503
35509
|
}
|
|
35504
|
-
|
|
35510
|
+
const k = new Loader();
|
|
35511
|
+
let $ = "";
|
|
35512
|
+
try {
|
|
35513
|
+
$ = H(this, Zi).call(this, t + "@"), k.add({ name: t + ":base", url: D }), k.add({ name: t, url: $ });
|
|
35514
|
+
} catch {
|
|
35515
|
+
k.add({ name: t, url: D });
|
|
35516
|
+
}
|
|
35517
|
+
k.use((G, U) => {
|
|
35505
35518
|
try {
|
|
35506
|
-
|
|
35507
|
-
} catch (
|
|
35508
|
-
this.main.errScript(`[jump系]snロード失敗です fn:${
|
|
35519
|
+
G.data = this.sys.decStr(G.extension, G.data);
|
|
35520
|
+
} catch (z) {
|
|
35521
|
+
this.main.errScript(`[jump系]snロード失敗です fn:${G.name} ${z}`, !1);
|
|
35509
35522
|
}
|
|
35510
|
-
|
|
35511
|
-
}).load((
|
|
35512
|
-
|
|
35523
|
+
U == null || U();
|
|
35524
|
+
}).load((G, U) => {
|
|
35525
|
+
if ($) {
|
|
35526
|
+
const z = U[t + ":base"].data, X = U[t].data, V = z.split(`
|
|
35527
|
+
`), Y = X.split(`
|
|
35528
|
+
`), q = V.length, W = Y.length;
|
|
35529
|
+
for (let K = 0; K < W && K < q; ++K)
|
|
35530
|
+
Y[K] || (Y[K] = V[K]);
|
|
35531
|
+
U[t].data = Y.join(`
|
|
35532
|
+
`), delete U[t + ":base"];
|
|
35533
|
+
}
|
|
35534
|
+
this.nextToken = lt(this, Gl, If), ot(this, xe, 1), lt(this, Tc, Sp).call(this, U[t].data), this.hTag.record_place({}), this.main.resume(() => this.analyzeInit());
|
|
35513
35535
|
}), this.main.stop();
|
|
35514
35536
|
}, Gl = new WeakSet(), If = function() {
|
|
35515
35537
|
var e, r;
|
|
@@ -35582,19 +35604,19 @@ oe = new WeakMap(), le = new WeakMap(), Xt = new WeakMap(), xe = new WeakMap(),
|
|
|
35582
35604
|
q === 91 && (r += (Y.match(/\n/g) ?? []).length, H(this, xi).testTagLetml(Y) && (U = !0));
|
|
35583
35605
|
}
|
|
35584
35606
|
throw U ? "[let_ml]の終端・[endlet_ml]がありません" : (DebugMng.myTrace(`[jump系] ラベル【${D}】がありません`, "ET"), "Dummy");
|
|
35585
|
-
},
|
|
35607
|
+
}, Ge = new WeakMap(), Tc = new WeakSet(), Sp = function(t) {
|
|
35586
35608
|
let e = "";
|
|
35587
35609
|
try {
|
|
35588
35610
|
e = "ScriptIterator.resolveScript";
|
|
35589
35611
|
const r = H(this, xi).resolveScript(t);
|
|
35590
|
-
e = "ScriptIterator.replaceScript_Wildcard", lt(this, Pc, Ep).call(this, r), H(this,
|
|
35612
|
+
e = "ScriptIterator.replaceScript_Wildcard", lt(this, Pc, Ep).call(this, r), H(this, Ge)[H(this, ce)] = ot(this, oe, r);
|
|
35591
35613
|
} catch (r) {
|
|
35592
35614
|
r instanceof Error ? e += `例外 mes=${r.message}(${r.name})` : e = r, this.main.errScript(e, !1);
|
|
35593
35615
|
}
|
|
35594
|
-
this.val.loadScrWork(H(this,
|
|
35616
|
+
this.val.loadScrWork(H(this, ce));
|
|
35595
35617
|
}, Hl = new WeakSet(), Af = function(t) {
|
|
35596
|
-
ot(this,
|
|
35597
|
-
const e = H(this,
|
|
35618
|
+
ot(this, ce, t.fn), ot(this, Xt, t.idx);
|
|
35619
|
+
const e = H(this, Ge)[H(this, ce)];
|
|
35598
35620
|
e && ot(this, oe, e), ot(this, xe, H(this, oe).aLNum[t.idx]);
|
|
35599
35621
|
}, wc = new WeakMap(), Cc = new WeakMap(), Pc = new WeakSet(), Ep = function(t) {
|
|
35600
35622
|
for (let e = t.len - 1; e >= 0; --e) {
|
|
@@ -35621,9 +35643,9 @@ oe = new WeakMap(), le = new WeakMap(), Xt = new WeakMap(), xe = new WeakMap(),
|
|
|
35621
35643
|
}
|
|
35622
35644
|
t.len = t.aToken.length;
|
|
35623
35645
|
}, Mc = new WeakSet(), Tp = function() {
|
|
35624
|
-
const t = this.val.getAreaKidoku(H(this,
|
|
35646
|
+
const t = this.val.getAreaKidoku(H(this, ce));
|
|
35625
35647
|
if (!t)
|
|
35626
|
-
throw `recordKidoku fn:'${H(this,
|
|
35648
|
+
throw `recordKidoku fn:'${H(this, ce)}' (areas === null)`;
|
|
35627
35649
|
if (H(this, me).length > 0) {
|
|
35628
35650
|
t.record(H(this, Xt));
|
|
35629
35651
|
return;
|
|
@@ -35631,7 +35653,7 @@ oe = new WeakMap(), le = new WeakMap(), Xt = new WeakMap(), xe = new WeakMap(),
|
|
|
35631
35653
|
ot(this, wi, t.search(H(this, Xt))), this.val.setVal_Nochk("tmp", "const.sn.isKidoku", H(this, wi)), !H(this, wi) && t.record(H(this, Xt));
|
|
35632
35654
|
}, wi = new WeakMap(), Vl = new WeakSet(), Nf = function() {
|
|
35633
35655
|
var t;
|
|
35634
|
-
(t = this.val.getAreaKidoku(H(this,
|
|
35656
|
+
(t = this.val.getAreaKidoku(H(this, ce))) == null || t.erase(H(this, Xt)), ot(this, wi, !1);
|
|
35635
35657
|
}, Rc = new WeakSet(), wp = function(t) {
|
|
35636
35658
|
return H(this, xi).bracket2macro(t, this.hTag, H(this, oe), H(this, Xt)), !1;
|
|
35637
35659
|
}, Oc = new WeakSet(), Cp = function(t) {
|
|
@@ -35645,8 +35667,8 @@ oe = new WeakMap(), le = new WeakMap(), Xt = new WeakMap(), xe = new WeakMap(),
|
|
|
35645
35667
|
throw `[${e}]はタグかすでに定義済みのマクロです`;
|
|
35646
35668
|
if (H(this, Ic).test(e))
|
|
35647
35669
|
throw `[${e}]はマクロ名として異常です`;
|
|
35648
|
-
const r = H(this, xe), D = new CallStack(H(this,
|
|
35649
|
-
for (ot(this, Xl, H(this, Xl) + ("|" + e)), ot(this, Ra, new RegExp(`\\[(${H(this, Xl)})\\b`)), this.hTag[e] = ($) => ($.design_unit = t.design_unit, lt(this, Bl, Rf).call(this, { ...$, ":hMp": this.val.cloneMp() }), this.val.setMp($), this.val.setVal_Nochk("mp", "const.sn.macro", JSON.stringify(t)), this.val.setVal_Nochk("mp", "const.sn.me_call_scriptFn", H(this,
|
|
35670
|
+
const r = H(this, xe), D = new CallStack(H(this, ce), H(this, Xt));
|
|
35671
|
+
for (ot(this, Xl, H(this, Xl) + ("|" + e)), ot(this, Ra, new RegExp(`\\[(${H(this, Xl)})\\b`)), this.hTag[e] = ($) => ($.design_unit = t.design_unit, lt(this, Bl, Rf).call(this, { ...$, ":hMp": this.val.cloneMp() }), this.val.setMp($), this.val.setVal_Nochk("mp", "const.sn.macro", JSON.stringify(t)), this.val.setVal_Nochk("mp", "const.sn.me_call_scriptFn", H(this, ce)), ot(this, xe, r), lt(this, Hl, Af).call(this, D), !1); H(this, Xt) < H(this, oe).len; ++Ie(this, Xt)._) {
|
|
35650
35672
|
(N = H(this, oe).aLNum)[k = H(this, Xt)] || (N[k] = H(this, xe));
|
|
35651
35673
|
const $ = H(this, oe).aToken[H(this, Xt)];
|
|
35652
35674
|
if ($.search(H(this, zl)) > -1)
|
|
@@ -35679,18 +35701,26 @@ oe = new WeakMap(), le = new WeakMap(), Xt = new WeakMap(), xe = new WeakMap(),
|
|
|
35679
35701
|
this.hTag.autowc(D);
|
|
35680
35702
|
const N = String(this.val.getVal("save:const.sn.scriptFn")), k = Number(this.val.getVal("save:const.sn.scriptIdx"));
|
|
35681
35703
|
return ot(this, dr, [...H(this, Lr).aIfStk]), ot(this, me, []), H(this, fr).cover(!0), H(this, fr).stopAllTw(), "index" in t ? (H(this, fr).playback(H(this, Lr).hPages, () => {
|
|
35682
|
-
H(this, fr).cover(!1), ot(this, Ia, !0), lt(this, Ti,
|
|
35683
|
-
}), !0) : (delete H(this,
|
|
35704
|
+
H(this, fr).cover(!1), ot(this, Ia, !0), lt(this, Ti, ln).call(this, t.fn ?? N, "", t.index ?? k);
|
|
35705
|
+
}), !0) : (delete H(this, Ge)[N], H(this, fr).playback(
|
|
35684
35706
|
H(this, Lr).hPages,
|
|
35685
35707
|
"label" in t ? () => {
|
|
35686
|
-
H(this, fr).cover(!1), ot(this,
|
|
35708
|
+
H(this, fr).cover(!1), ot(this, ce, N), ot(this, Xt, k), this.hTag.call({ fn: t.fn, label: t.label });
|
|
35687
35709
|
} : () => {
|
|
35688
|
-
H(this, fr).cover(!1), lt(this, Ti,
|
|
35710
|
+
H(this, fr).cover(!1), lt(this, Ti, ln).call(this, N, "", k);
|
|
35689
35711
|
}
|
|
35690
35712
|
), !0);
|
|
35691
35713
|
}, Ia = new WeakMap(), Nc = new WeakSet(), Rp = function(t) {
|
|
35692
35714
|
const e = this.val.getMark(0);
|
|
35693
|
-
|
|
35715
|
+
delete H(this, Ge)[getFn(e.hSave["const.sn.scriptFn"])];
|
|
35716
|
+
const r = {};
|
|
35717
|
+
for (const D in H(this, Ge))
|
|
35718
|
+
try {
|
|
35719
|
+
H(this, Zi).call(this, D + "@");
|
|
35720
|
+
} catch {
|
|
35721
|
+
r[D] = H(this, Ge)[D];
|
|
35722
|
+
}
|
|
35723
|
+
return ot(this, Ge, r), t.do_rec = !1, lt(this, Oa, yu).call(this, t, e, !1);
|
|
35694
35724
|
}, Lr = new WeakMap(), Lc = new WeakSet(), Op = function() {
|
|
35695
35725
|
if (this.main.isDestroyed())
|
|
35696
35726
|
return !1;
|
|
@@ -35703,7 +35733,7 @@ oe = new WeakMap(), le = new WeakMap(), Xt = new WeakMap(), xe = new WeakMap(),
|
|
|
35703
35733
|
}, Da = new WeakSet(), bu = function() {
|
|
35704
35734
|
if (H(this, me).length === 0)
|
|
35705
35735
|
return {
|
|
35706
|
-
fn: H(this,
|
|
35736
|
+
fn: H(this, ce),
|
|
35707
35737
|
idx: H(this, Xt)
|
|
35708
35738
|
};
|
|
35709
35739
|
const e = H(this, me)[0];
|
|
@@ -35718,45 +35748,45 @@ oe = new WeakMap(), le = new WeakMap(), Xt = new WeakMap(), xe = new WeakMap(),
|
|
|
35718
35748
|
delete t[":タグ名"], delete t.place, t.text = (t.text ?? "").replace(/^(<br\/>)+/, ""), H(this, Lr).json = t, this.val.setMark(e, H(this, Lr));
|
|
35719
35749
|
const r = Number(this.val.getVal("sys:const.sn.save.place"));
|
|
35720
35750
|
return e === r && this.val.setVal_Nochk("sys", "const.sn.save.place", r + 1), !1;
|
|
35721
|
-
}, kr = new WeakMap(),
|
|
35722
|
-
rt(ScriptIterator,
|
|
35723
|
-
var ir, Er,
|
|
35724
|
-
const
|
|
35751
|
+
}, kr = new WeakMap(), Ue = new WeakMap(), rt(ScriptIterator, lc, /(.+)\/crypto_prj\/([^\/]+)\/[^\.]+(\.\w+)/), // reload 再生成 Main に受け渡すため static
|
|
35752
|
+
rt(ScriptIterator, es, {}), rt(ScriptIterator, Si, {});
|
|
35753
|
+
var ir, Er, He, Tr, Ci, os, je, Yl, Pi, Aa, ls, Wl, ql, Na, Bc, Dp, Kl, Zl, La, ka, xu, us, hs;
|
|
35754
|
+
const Ms = class {
|
|
35725
35755
|
constructor(t) {
|
|
35726
35756
|
rt(this, Bc);
|
|
35727
35757
|
rt(this, ka);
|
|
35728
35758
|
rt(this, ir, void 0);
|
|
35729
35759
|
rt(this, Er, void 0);
|
|
35730
|
-
rt(this,
|
|
35760
|
+
rt(this, He, /* @__PURE__ */ Object.create(null));
|
|
35731
35761
|
// タグ処理辞書
|
|
35732
35762
|
rt(this, Tr, void 0);
|
|
35733
35763
|
rt(this, Ci, void 0);
|
|
35734
|
-
rt(this,
|
|
35735
|
-
rt(this,
|
|
35764
|
+
rt(this, os, void 0);
|
|
35765
|
+
rt(this, je, void 0);
|
|
35736
35766
|
rt(this, Yl, void 0);
|
|
35737
35767
|
rt(this, Pi, void 0);
|
|
35738
35768
|
rt(this, Aa, void 0);
|
|
35739
|
-
rt(this,
|
|
35769
|
+
rt(this, ls, () => {
|
|
35740
35770
|
});
|
|
35741
35771
|
rt(this, Wl, new AnalyzeTagArg());
|
|
35742
35772
|
rt(this, ql, !1);
|
|
35743
35773
|
rt(this, Na, "skynovel");
|
|
35744
|
-
rt(this, Kl, () => H(this,
|
|
35774
|
+
rt(this, Kl, () => H(this, ls).call(this));
|
|
35745
35775
|
// メイン処理(シナリオ解析)
|
|
35746
35776
|
rt(this, Zl, (t = lt(this, ka, xu)) => {
|
|
35747
|
-
H(this,
|
|
35748
|
-
ot(this,
|
|
35749
|
-
}, H(this,
|
|
35777
|
+
H(this, us) || (H(this, Pi).clearBreak(), ot(this, ls, t), this.resume = (e = lt(this, ka, xu)) => {
|
|
35778
|
+
ot(this, ls, e);
|
|
35779
|
+
}, H(this, je).noticeBreak(!1));
|
|
35750
35780
|
});
|
|
35751
35781
|
Ot(this, "resume", H(this, Zl));
|
|
35752
35782
|
Ot(this, "stop", () => {
|
|
35753
|
-
ot(this,
|
|
35754
|
-
}), this.resume = H(this, Zl), H(this,
|
|
35783
|
+
ot(this, ls, () => {
|
|
35784
|
+
}), this.resume = H(this, Zl), H(this, je).noticeBreak(!0);
|
|
35755
35785
|
});
|
|
35756
35786
|
rt(this, La, !0);
|
|
35757
|
-
rt(this,
|
|
35758
|
-
Ot(this, "isDestroyed", () => H(this,
|
|
35759
|
-
rt(this,
|
|
35787
|
+
rt(this, us, !1);
|
|
35788
|
+
Ot(this, "isDestroyed", () => H(this, us));
|
|
35789
|
+
rt(this, hs, void 0);
|
|
35760
35790
|
this.sys = t, skipHello(), Config.generate(t).then((e) => ot(this, ir, e)).then(() => lt(this, Bc, Dp).call(this)).catch((e) => console.error("load err fn:prj.json e:%o", e));
|
|
35761
35791
|
}
|
|
35762
35792
|
// thisの扱いによりメソッド代入はダメ
|
|
@@ -35769,7 +35799,7 @@ const Ps = class {
|
|
|
35769
35799
|
globalThis.open(t.url);
|
|
35770
35800
|
return;
|
|
35771
35801
|
}
|
|
35772
|
-
H(this, Tr).setVal_Nochk("tmp", "sn.eventArg", t.arg ?? ""), H(this, Tr).setVal_Nochk("tmp", "sn.eventLabel", t.label ?? ""), argChk_Boolean(t, "call", !1) ? (H(this,
|
|
35802
|
+
H(this, Tr).setVal_Nochk("tmp", "sn.eventArg", t.arg ?? ""), H(this, Tr).setVal_Nochk("tmp", "sn.eventLabel", t.label ?? ""), argChk_Boolean(t, "call", !1) ? (H(this, je).subIdxToken(), this.resume(() => H(this, He).call(t))) : (H(this, He).clear_event({}), this.resume(() => H(this, He).jump(t)));
|
|
35773
35803
|
}
|
|
35774
35804
|
setLoop(t, e = "") {
|
|
35775
35805
|
ot(this, La, t) ? this.resume() : this.stop(), this.sys.setTitleInfo(e ? ` -- ${e}中` : "");
|
|
@@ -35778,11 +35808,11 @@ const Ps = class {
|
|
|
35778
35808
|
H(this, Aa).fire(t, e);
|
|
35779
35809
|
}
|
|
35780
35810
|
async destroy(t = 0) {
|
|
35781
|
-
H(this,
|
|
35811
|
+
H(this, us) || (ot(this, us, !0), H(this, ql) && (this.stop(), ot(this, La, !1), H(this, Pi).before_destroy(), t > 0 && await new Promise((e) => setTimeout(e, t)), ot(this, He, {}), H(this, Aa).destroy(), H(this, je).destroy(), H(this, Pi).destroy(), H(this, Yl).destroy(), H(this, Er).ticker.remove(H(this, Kl)), H(this, hs) && H(this, Er) && Ms.cvs.parentNode.appendChild(H(this, hs)), clearTextureCache(), H(this, Er).destroy(!0), this.sys.destroy()));
|
|
35782
35812
|
}
|
|
35783
35813
|
};
|
|
35784
|
-
let Main =
|
|
35785
|
-
ir = new WeakMap(), Er = new WeakMap(),
|
|
35814
|
+
let Main = Ms;
|
|
35815
|
+
ir = new WeakMap(), Er = new WeakMap(), He = new WeakMap(), Tr = new WeakMap(), Ci = new WeakMap(), os = new WeakMap(), je = new WeakMap(), Yl = new WeakMap(), Pi = new WeakMap(), Aa = new WeakMap(), ls = new WeakMap(), Wl = new WeakMap(), ql = new WeakMap(), Na = new WeakMap(), Bc = new WeakSet(), Dp = async function() {
|
|
35786
35816
|
var D;
|
|
35787
35817
|
const t = (D = document.createElement("canvas")) == null ? void 0 : D.getContext("2d");
|
|
35788
35818
|
if (!t)
|
|
@@ -35797,24 +35827,24 @@ ir = new WeakMap(), Er = new WeakMap(), ze = new WeakMap(), Tr = new WeakMap(),
|
|
|
35797
35827
|
resolution: globalThis.devicePixelRatio ?? 1
|
|
35798
35828
|
// 理想
|
|
35799
35829
|
}, r = document.getElementById(H(this, Na));
|
|
35800
|
-
r && (ot(this,
|
|
35830
|
+
r && (ot(this, hs, r.cloneNode(!0)), H(this, hs).id = H(this, Na), e.view = r), ot(this, Er, new Application(e)), Ms.cvs = H(this, Er).view, r || (document.body.appendChild(Ms.cvs), Ms.cvs.id = H(this, Na)), ot(this, Tr, new Variable(H(this, ir), H(this, He))), ot(this, Ci, new PropParser(H(this, Tr), H(this, ir).oCfg.init.escape ?? "\\")), await Promise.allSettled(this.sys.init(H(this, He), H(this, Er), H(this, Tr), this)), H(this, He).title({ text: H(this, ir).oCfg.book.title || "SKYNovel" }), ot(this, os, new SoundMng(H(this, ir), H(this, He), H(this, Tr), this, this.sys)), ot(this, je, new ScriptIterator(H(this, ir), H(this, He), this, H(this, Tr), H(this, Wl), () => lt(this, ka, xu).call(this), H(this, Ci), H(this, os), this.sys)), ot(this, Yl, new DebugMng(this.sys, H(this, He), H(this, je))), ot(this, Pi, new LayerMng(H(this, ir), H(this, He), H(this, Er), H(this, Tr), this, H(this, je), this.sys, H(this, os), H(this, Wl), H(this, Ci))), ot(this, Aa, new EventMng(H(this, ir), H(this, He), H(this, Er), this, H(this, Pi), H(this, Tr), H(this, os), H(this, je), this.sys)), H(this, Er).ticker.add(H(this, Kl)), this.resumeByJumpOrCall({ fn: "main" }), ot(this, ql, !0);
|
|
35801
35831
|
}, Kl = new WeakMap(), Zl = new WeakMap(), La = new WeakMap(), ka = new WeakSet(), xu = function() {
|
|
35802
35832
|
for (; H(this, La); ) {
|
|
35803
|
-
let t = H(this,
|
|
35833
|
+
let t = H(this, je).nextToken();
|
|
35804
35834
|
if (!t)
|
|
35805
35835
|
break;
|
|
35806
35836
|
const e = t.charCodeAt(0);
|
|
35807
35837
|
if (e !== 9) {
|
|
35808
35838
|
if (e === 10) {
|
|
35809
|
-
H(this,
|
|
35839
|
+
H(this, je).addLineNum(t.length);
|
|
35810
35840
|
continue;
|
|
35811
35841
|
}
|
|
35812
35842
|
if (e === 91) {
|
|
35813
|
-
if (H(this,
|
|
35843
|
+
if (H(this, je).isBreak(t))
|
|
35814
35844
|
return;
|
|
35815
35845
|
try {
|
|
35816
35846
|
const r = (t.match(/\n/g) ?? []).length;
|
|
35817
|
-
if (r > 0 && H(this,
|
|
35847
|
+
if (r > 0 && H(this, je).addLineNum(r), H(this, je).タグ解析(t)) {
|
|
35818
35848
|
this.stop();
|
|
35819
35849
|
break;
|
|
35820
35850
|
}
|
|
@@ -35827,10 +35857,10 @@ ir = new WeakMap(), Er = new WeakMap(), ze = new WeakMap(), Tr = new WeakMap(),
|
|
|
35827
35857
|
if (e === 38)
|
|
35828
35858
|
try {
|
|
35829
35859
|
if (t.slice(-1) !== "&") {
|
|
35830
|
-
if (H(this,
|
|
35860
|
+
if (H(this, je).isBreak(t))
|
|
35831
35861
|
return;
|
|
35832
35862
|
const r = splitAmpersand(t.slice(1));
|
|
35833
|
-
r.name = H(this, Ci).getValAmpersand(r.name), r.text = String(H(this, Ci).parse(r.text)), H(this,
|
|
35863
|
+
r.name = H(this, Ci).getValAmpersand(r.name), r.text = String(H(this, Ci).parse(r.text)), H(this, He).let(r);
|
|
35834
35864
|
continue;
|
|
35835
35865
|
}
|
|
35836
35866
|
if (t.charAt(1) === "&")
|
|
@@ -35860,7 +35890,7 @@ ir = new WeakMap(), Er = new WeakMap(), ze = new WeakMap(), Tr = new WeakMap(),
|
|
|
35860
35890
|
}
|
|
35861
35891
|
}
|
|
35862
35892
|
}
|
|
35863
|
-
},
|
|
35893
|
+
}, us = new WeakMap(), hs = new WeakMap(), Ot(Main, "cvs");
|
|
35864
35894
|
const PACKET_TYPES = /* @__PURE__ */ Object.create(null);
|
|
35865
35895
|
PACKET_TYPES.open = "0";
|
|
35866
35896
|
PACKET_TYPES.close = "1";
|
|
@@ -36517,7 +36547,7 @@ function queryKey(o, t) {
|
|
|
36517
36547
|
D && (e[D] = N);
|
|
36518
36548
|
}), e;
|
|
36519
36549
|
}
|
|
36520
|
-
let Socket$1 = class
|
|
36550
|
+
let Socket$1 = class Cs extends Emitter {
|
|
36521
36551
|
/**
|
|
36522
36552
|
* Socket constructor.
|
|
36523
36553
|
*
|
|
@@ -36573,7 +36603,7 @@ let Socket$1 = class ws extends Emitter {
|
|
|
36573
36603
|
*/
|
|
36574
36604
|
open() {
|
|
36575
36605
|
let t;
|
|
36576
|
-
if (this.opts.rememberUpgrade &&
|
|
36606
|
+
if (this.opts.rememberUpgrade && Cs.priorWebsocketSuccess && this.transports.indexOf("websocket") !== -1)
|
|
36577
36607
|
t = "websocket";
|
|
36578
36608
|
else if (this.transports.length === 0) {
|
|
36579
36609
|
this.setTimeoutFn(() => {
|
|
@@ -36607,14 +36637,14 @@ let Socket$1 = class ws extends Emitter {
|
|
|
36607
36637
|
*/
|
|
36608
36638
|
probe(t) {
|
|
36609
36639
|
let e = this.createTransport(t), r = !1;
|
|
36610
|
-
|
|
36640
|
+
Cs.priorWebsocketSuccess = !1;
|
|
36611
36641
|
const D = () => {
|
|
36612
36642
|
r || (e.send([{ type: "ping", data: "probe" }]), e.once("packet", (X) => {
|
|
36613
36643
|
if (!r)
|
|
36614
36644
|
if (X.type === "pong" && X.data === "probe") {
|
|
36615
36645
|
if (this.upgrading = !0, this.emitReserved("upgrading", e), !e)
|
|
36616
36646
|
return;
|
|
36617
|
-
|
|
36647
|
+
Cs.priorWebsocketSuccess = e.name === "websocket", this.transport.pause(() => {
|
|
36618
36648
|
r || this.readyState !== "closed" && (z(), this.setTransport(e), e.send([{ type: "upgrade" }]), this.emitReserved("upgrade", e), e = null, this.upgrading = !1, this.flush());
|
|
36619
36649
|
});
|
|
36620
36650
|
} else {
|
|
@@ -36650,7 +36680,7 @@ let Socket$1 = class ws extends Emitter {
|
|
|
36650
36680
|
* @private
|
|
36651
36681
|
*/
|
|
36652
36682
|
onOpen() {
|
|
36653
|
-
if (this.readyState = "open",
|
|
36683
|
+
if (this.readyState = "open", Cs.priorWebsocketSuccess = this.transport.name === "websocket", this.emitReserved("open"), this.flush(), this.readyState === "open" && this.opts.upgrade) {
|
|
36654
36684
|
let t = 0;
|
|
36655
36685
|
const e = this.upgrades.length;
|
|
36656
36686
|
for (; t < e; t++)
|
|
@@ -36791,7 +36821,7 @@ let Socket$1 = class ws extends Emitter {
|
|
|
36791
36821
|
* @private
|
|
36792
36822
|
*/
|
|
36793
36823
|
onError(t) {
|
|
36794
|
-
|
|
36824
|
+
Cs.priorWebsocketSuccess = !1, this.emitReserved("error", t), this.onClose("transport error", t);
|
|
36795
36825
|
}
|
|
36796
36826
|
/**
|
|
36797
36827
|
* Called upon transport close.
|
|
@@ -37933,7 +37963,7 @@ Object.assign(lookup, {
|
|
|
37933
37963
|
io: lookup,
|
|
37934
37964
|
connect: lookup
|
|
37935
37965
|
});
|
|
37936
|
-
var Br, ti, ei,
|
|
37966
|
+
var Br, ti, ei, cs, fs, tn, en, rn, Fc, $c, Jl, Ba, Gc, Fa, ds, Uc, ps, $a;
|
|
37937
37967
|
const jc = class {
|
|
37938
37968
|
constructor(t = {}, e) {
|
|
37939
37969
|
Ot(this, "hFactoryCls", {});
|
|
@@ -37947,13 +37977,13 @@ const jc = class {
|
|
|
37947
37977
|
rt(this, Br, 0);
|
|
37948
37978
|
rt(this, ti, 0);
|
|
37949
37979
|
rt(this, ei, 1);
|
|
37950
|
-
rt(this, hs, 0);
|
|
37951
37980
|
rt(this, cs, 0);
|
|
37952
|
-
rt(this,
|
|
37981
|
+
rt(this, fs, 0);
|
|
37953
37982
|
rt(this, tn, 0);
|
|
37983
|
+
rt(this, en, 0);
|
|
37954
37984
|
Ot(this, "isFullScr", !1);
|
|
37955
37985
|
Ot(this, "extPort", 3776);
|
|
37956
|
-
rt(this,
|
|
37986
|
+
rt(this, rn, void 0);
|
|
37957
37987
|
rt(this, Fc, {
|
|
37958
37988
|
auth: (t) => {
|
|
37959
37989
|
if (t.t !== this.cfg.oCfg.debuger_token) {
|
|
@@ -37984,7 +38014,7 @@ const jc = class {
|
|
|
37984
38014
|
});
|
|
37985
38015
|
Ot(this, "send2Dbg", (t, e) => {
|
|
37986
38016
|
var r;
|
|
37987
|
-
(r = H(this,
|
|
38017
|
+
(r = H(this, rn)) == null || r.emit("data", t, e);
|
|
37988
38018
|
});
|
|
37989
38019
|
Ot(this, "copyBMFolder", (t, e) => {
|
|
37990
38020
|
});
|
|
@@ -38012,12 +38042,12 @@ const jc = class {
|
|
|
38012
38042
|
Ot(this, "update_check", () => !1);
|
|
38013
38043
|
Ot(this, "window", () => !1);
|
|
38014
38044
|
rt(this, Fa, "");
|
|
38015
|
-
rt(this,
|
|
38045
|
+
rt(this, ds, (t, e) => ({ ret: e.toString(), ext_num: 0 }));
|
|
38016
38046
|
rt(this, Uc, {
|
|
38017
|
-
1: { ext: "jpeg", fnc: (t) => H(this,
|
|
38018
|
-
2: { ext: "png", fnc: (t) => H(this,
|
|
38019
|
-
3: { ext: "svg", fnc: (t) => H(this,
|
|
38020
|
-
4: { ext: "webp", fnc: (t) => H(this,
|
|
38047
|
+
1: { ext: "jpeg", fnc: (t) => H(this, ps).call(this, t), mime: "image/jpeg" },
|
|
38048
|
+
2: { ext: "png", fnc: (t) => H(this, ps).call(this, t), mime: "image/png" },
|
|
38049
|
+
3: { ext: "svg", fnc: (t) => H(this, ps).call(this, t), mime: "image/svg+xml" },
|
|
38050
|
+
4: { ext: "webp", fnc: (t) => H(this, ps).call(this, t), mime: "image/webp" },
|
|
38021
38051
|
10: { ext: "mp3", fnc: (t) => t.arrayBuffer(), mime: "audio/mpeg" },
|
|
38022
38052
|
11: { ext: "m4a", fnc: (t) => t.arrayBuffer(), mime: "audio/aac" },
|
|
38023
38053
|
12: { ext: "ogg", fnc: (t) => t.arrayBuffer(), mime: "audio/ogg" },
|
|
@@ -38028,7 +38058,7 @@ const jc = class {
|
|
|
38028
38058
|
21: { ext: "webm", fnc: (t) => H(this, $a).call(this, t), mime: "video/webm" },
|
|
38029
38059
|
22: { ext: "ogv", fnc: (t) => H(this, $a).call(this, t), mime: "video/ogv" }
|
|
38030
38060
|
});
|
|
38031
|
-
rt(this,
|
|
38061
|
+
rt(this, ps, (t) => new Promise((e, r) => {
|
|
38032
38062
|
const D = new Image();
|
|
38033
38063
|
D.onload = () => e(D), D.onerror = (N) => r(N), D.src = URL.createObjectURL(t);
|
|
38034
38064
|
}));
|
|
@@ -38060,7 +38090,7 @@ const jc = class {
|
|
|
38060
38090
|
},
|
|
38061
38091
|
render: () => {
|
|
38062
38092
|
},
|
|
38063
|
-
setDec: (D) => ot(this,
|
|
38093
|
+
setDec: (D) => ot(this, ds, D),
|
|
38064
38094
|
setEnc: (D) => this.enc = D,
|
|
38065
38095
|
getStK: (D) => this.stk = D,
|
|
38066
38096
|
getHash: (D) => this.hash = D
|
|
@@ -38107,7 +38137,7 @@ const jc = class {
|
|
|
38107
38137
|
getVal: r.getVal,
|
|
38108
38138
|
resume: () => D.resume(),
|
|
38109
38139
|
render: ($, G, U = !1) => this.appPixi.renderer.render($, { renderTexture: G, clear: U }),
|
|
38110
|
-
setDec: ($) => ot(this,
|
|
38140
|
+
setDec: ($) => ot(this, ds, $),
|
|
38111
38141
|
setEnc: ($) => this.enc = $,
|
|
38112
38142
|
getStK: ($) => this.stk = $,
|
|
38113
38143
|
getHash: ($) => this.hash = $
|
|
@@ -38123,16 +38153,16 @@ const jc = class {
|
|
|
38123
38153
|
return H(this, ei);
|
|
38124
38154
|
}
|
|
38125
38155
|
get ofsLeft4elm() {
|
|
38126
|
-
return H(this,
|
|
38156
|
+
return H(this, cs);
|
|
38127
38157
|
}
|
|
38128
38158
|
get ofsTop4elm() {
|
|
38129
|
-
return H(this,
|
|
38159
|
+
return H(this, fs);
|
|
38130
38160
|
}
|
|
38131
38161
|
get ofsPadLeft_Dom2PIXI() {
|
|
38132
|
-
return H(this,
|
|
38162
|
+
return H(this, tn);
|
|
38133
38163
|
}
|
|
38134
38164
|
get ofsPadTop_Dom2PIXI() {
|
|
38135
|
-
return H(this,
|
|
38165
|
+
return H(this, en);
|
|
38136
38166
|
}
|
|
38137
38167
|
cvsResize() {
|
|
38138
38168
|
var G;
|
|
@@ -38149,17 +38179,17 @@ const jc = class {
|
|
|
38149
38179
|
const N = r.getBoundingClientRect();
|
|
38150
38180
|
if (argChk_Boolean(CmnLib.hDip, "expanding", !0) || D || CmnLib.stageW > t || CmnLib.stageH > e)
|
|
38151
38181
|
if (CmnLib.stageW / CmnLib.stageH <= t / e ? (ot(this, ti, e), ot(this, Br, CmnLib.stageW / CmnLib.stageH * e)) : (ot(this, Br, t), ot(this, ti, CmnLib.stageH / CmnLib.stageW * t)), ot(this, ei, H(this, Br) / CmnLib.stageW), D)
|
|
38152
|
-
ot(this,
|
|
38182
|
+
ot(this, tn, 0), ot(this, en, 0);
|
|
38153
38183
|
else {
|
|
38154
38184
|
const U = 1 - H(this, ei);
|
|
38155
|
-
CmnLib.isMobile ? (ot(this,
|
|
38185
|
+
CmnLib.isMobile ? (ot(this, tn, (t - H(this, Br)) / 2 * U), ot(this, en, (e - H(this, ti)) / 2 * U)) : (ot(this, tn, N.left * U), ot(this, en, N.top * U));
|
|
38156
38186
|
}
|
|
38157
38187
|
else
|
|
38158
|
-
ot(this, Br, CmnLib.stageW), ot(this, ti, CmnLib.stageH), ot(this, ei, 1), ot(this,
|
|
38188
|
+
ot(this, Br, CmnLib.stageW), ot(this, ti, CmnLib.stageH), ot(this, ei, 1), ot(this, tn, 0), ot(this, en, 0);
|
|
38159
38189
|
const k = r.parentElement.style;
|
|
38160
38190
|
D || (k.position = "relative", k.width = `${H(this, Br)}px`, k.height = `${H(this, ti)}px`);
|
|
38161
38191
|
const $ = r.style;
|
|
38162
|
-
$.width = k.width, $.height = k.height, D ? (ot(this,
|
|
38192
|
+
$.width = k.width, $.height = k.height, D ? (ot(this, cs, N.left), ot(this, fs, N.top)) : (ot(this, cs, 0), ot(this, fs, 0)), this.isFullScr && (ot(this, cs, H(this, cs) + (t - H(this, Br)) / 2), ot(this, fs, H(this, fs) + (e - H(this, ti)) / 2));
|
|
38163
38193
|
}
|
|
38164
38194
|
// デバッガ接続
|
|
38165
38195
|
attach_debug(t) {
|
|
@@ -38194,7 +38224,7 @@ const jc = class {
|
|
|
38194
38224
|
}`, document.getElementsByTagName("head")[0].appendChild(e), this.addHook((r, D) => {
|
|
38195
38225
|
var N, k;
|
|
38196
38226
|
return (k = (N = H(this, Fc))[r]) == null ? void 0 : k.call(N, D);
|
|
38197
|
-
}), ot(this,
|
|
38227
|
+
}), ot(this, rn, lookup(`http://localhost:${this.extPort}`)), H(this, rn).on("data", (r, D) => {
|
|
38198
38228
|
this.callHook(r, D);
|
|
38199
38229
|
}).on("disconnect", () => t.setLoop(!0)), this.callHook = (r, D) => {
|
|
38200
38230
|
for (const N of H(this, Jl))
|
|
@@ -38203,7 +38233,7 @@ const jc = class {
|
|
|
38203
38233
|
}
|
|
38204
38234
|
end() {
|
|
38205
38235
|
var t;
|
|
38206
|
-
(t = H(this,
|
|
38236
|
+
(t = H(this, rn)) == null || t.disconnect(), ot(this, rn, void 0);
|
|
38207
38237
|
}
|
|
38208
38238
|
toast(t) {
|
|
38209
38239
|
const e = document.body;
|
|
@@ -38229,10 +38259,10 @@ top: ${(CmnLib.stageH - N) / 2 * H(this, ei) + N * (D.dy ?? 0)}px;`, r.classList
|
|
|
38229
38259
|
ot(this, Fa, t), this.titleSub(H(this, Ba) + H(this, Fa));
|
|
38230
38260
|
}
|
|
38231
38261
|
decStr(t, e) {
|
|
38232
|
-
return H(this,
|
|
38262
|
+
return H(this, ds).call(this, t, e).ret;
|
|
38233
38263
|
}
|
|
38234
38264
|
async dec(t, e) {
|
|
38235
|
-
const { ret: r, ext_num: D } = H(this,
|
|
38265
|
+
const { ret: r, ext_num: D } = H(this, ds).call(this, t, e), N = H(this, Uc)[D];
|
|
38236
38266
|
return N != null && N.fnc ? await N.fnc(new Blob([r], { type: N.mime })) : r;
|
|
38237
38267
|
}
|
|
38238
38268
|
get path_downloads() {
|
|
@@ -38252,7 +38282,7 @@ top: ${(CmnLib.stageH - N) / 2 * H(this, ei) + N * (D.dy ?? 0)}px;`, r.classList
|
|
|
38252
38282
|
}
|
|
38253
38283
|
};
|
|
38254
38284
|
let SysBase = jc;
|
|
38255
|
-
Br = new WeakMap(), ti = new WeakMap(), ei = new WeakMap(),
|
|
38285
|
+
Br = new WeakMap(), ti = new WeakMap(), ei = new WeakMap(), cs = new WeakMap(), fs = new WeakMap(), tn = new WeakMap(), en = new WeakMap(), rn = new WeakMap(), Fc = new WeakMap(), $c = new WeakMap(), Jl = new WeakMap(), Ba = new WeakMap(), Gc = new WeakMap(), Fa = new WeakMap(), ds = new WeakMap(), Uc = new WeakMap(), ps = new WeakMap(), $a = new WeakMap(), Ot(SysBase, "VALNM_CFG_NS", "const.sn.cfg.ns"), rt(SysBase, $c, {
|
|
38256
38286
|
// Thanks ICOOON MONO https://icooon-mono.com/ 、 https://vectr.com/ で 640x640化、ImageOptim経由、Base64エンコーダー https://lab.syncer.jp/Tool/Base64-encode/
|
|
38257
38287
|
接続: { dx: -1, dat: "PHN2ZyBoZWlnaHQ9IjY0MCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDY0MCA2NDAiIHdpZHRoPSI2NDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtNjQwIDMyMGMwIDE3Ni43My0xNDMuMjcgMzIwLTMyMCAzMjBzLTMyMC0xNDMuMjctMzIwLTMyMCAxNDMuMjctMzIwIDMyMC0zMjAgMzIwIDE0My4yNyAzMjAgMzIweiIvPjxwYXRoIGlkPSJiIiBkPSJtMCAyOTJ2NTUuODhoMTI3LjEzYzEyLjM3IDQ2IDU0LjEyIDc5Ljg3IDEwNCA3OS44N2g3Ny44N3YtMjE1LjYyYy00Ni43MyAwLTcyLjY4IDAtNzcuODggMC00OS43NCAwLTkxLjYyIDMzLjg3LTEwMy45OSA3OS44Ny0xNi45NSAwLTU5LjMzIDAtMTI3LjEzIDB6Ii8+PHBhdGggaWQ9ImMiIGQ9Im01MTIuODggMjkyYy0xMi4zOC00Ni01NC4xMy03OS44Ny0xMDQtNzkuODctNS4yMSAwLTMxLjIxIDAtNzggMHYyMTUuNzRoNzcuODdjNDkuODggMCA5MS43NS0zMy44NyAxMDQtNzkuODdoMTI3LjI1di01NmMtNzYuMjcgMC0xMTguNjUgMC0xMjcuMTIgMHoiLz48L2RlZnM+PHVzZSBmaWxsPSIjMmUyZTJlIiB4bGluazpocmVmPSIjYSIvPjx1c2UgZmlsbD0ibm9uZSIgeGxpbms6aHJlZj0iI2EiLz48dXNlIGZpbGw9IiMzYWFiZDIiIHhsaW5rOmhyZWY9IiNiIi8+PHVzZSBmaWxsPSJub25lIiB4bGluazpocmVmPSIjYiIvPjx1c2UgZmlsbD0iIzNhYWJkMiIgeGxpbms6aHJlZj0iI2MiLz48dXNlIGZpbGw9Im5vbmUiIHhsaW5rOmhyZWY9IiNjIi8+PC9zdmc+" },
|
|
38258
38288
|
切断: { dat: "PHN2ZyBoZWlnaHQ9IjY0MCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgdmlld0JveD0iMCAwIDY0MCA2NDAiIHdpZHRoPSI2NDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtNjQwIDMyMGMwIDE3Ni43My0xNDMuMjcgMzIwLTMyMCAzMjBzLTMyMC0xNDMuMjctMzIwLTMyMCAxNDMuMjctMzIwIDMyMC0zMjAgMzIwIDE0My4yNyAzMjAgMzIweiIvPjxwYXRoIGlkPSJiIiBkPSJtMTkxLjUzIDIyMS4yNGMtNDUuNjggMC04NC4wMSAzMS4wNC05NS4zIDczLjE2LTYuNDEgMC0zOC40OSAwLTk2LjIzIDB2NTEuMjFoOTYuMjNjMTEuMyA0Mi4xMSA0OS42MyA3My4xNiA5NS4zIDczLjE2aDcxLjMzdi00OC4yNGg1My43OHYtMTAxLjA1aC01My43OHYtNDguMjRjLTQyLjggMC02Ni41NyAwLTcxLjMzIDB6Ii8+PHBhdGggaWQ9ImMiIGQ9Im00NDguNDcgMjIxLjIzYy00Ljc2IDAtMjguNTMgMC03MS4zMyAwdjE5Ny41M2g3MS4zM2M0NS42OCAwIDgzLjk5LTMxLjA0IDk1LjI5LTczLjE1aDk2LjI0di01MS4yMWgtOTYuMjRjLTMzLjA4LTQ4Ljc4LTY0Ljg0LTczLjE3LTk1LjI5LTczLjE3eiIvPjwvZGVmcz48dXNlIGZpbGw9IiMyZTJlMmUiIHhsaW5rOmhyZWY9IiNhIi8+PHVzZSBmaWxsPSJub25lIiB4bGluazpocmVmPSIjYSIvPjx1c2UgZmlsbD0iI2RmNTY1NiIgeGxpbms6aHJlZj0iI2IiLz48dXNlIGZpbGw9Im5vbmUiIHhsaW5rOmhyZWY9IiNiIi8+PHVzZSBmaWxsPSIjZGY1NjU2IiB4bGluazpocmVmPSIjYyIvPjx1c2UgZmlsbD0ibm9uZSIgeGxpbms6aHJlZj0iI2MiLz48L3N2Zz4=" },
|