@famibee/skynovel 1.64.21 → 1.64.22

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/TxtLayer.js CHANGED
@@ -1,12 +1,12 @@
1
- import { e as F, l as v, y as lt, q as T, a as j, R as A, G as B, x as G, M as X, z as tt, N as rt, w as V, S as et, u as O, r as ot } from "./web2.js";
2
- import { C as ct } from "./CmnTween.js";
1
+ import { e as F, l as S, y as rt, q as P, a as j, R as A, G as B, x as G, M as X, z as tt, N as ot, w as V, S as et, u as M, r as ct } from "./web2.js";
2
+ import { C as dt } from "./CmnTween.js";
3
3
  import { S as I } from "./SpritesMng.js";
4
4
  import { D as K } from "./DebugMng.js";
5
- import { a as W, T as dt } from "./Reading.js";
5
+ import { a as W, T as pt } from "./Reading.js";
6
6
  import { R as st } from "./RubySpliter.js";
7
- import { Button as pt } from "./Button.js";
8
- const H = "、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々", q = "[({〈「『【〔“〝", U = "─‥…", Y = H, it = new RegExp(`[${H}]`), ft = new RegExp(`[${q}]`), ut = new RegExp(`[${U}]`), gt = it;
9
- class _t {
7
+ import { Button as ft } from "./Button.js";
8
+ const H = "、。,.)]}〉」』】〕”〟ぁぃぅぇぉっゃゅょゎァィゥェォッャュョヮヵヶ!?!?‼⁉・ーゝゞヽヾ々", q = "[({〈「『【〔“〝", U = "─‥…", Y = H, it = new RegExp(`[${H}]`), ut = new RegExp(`[${q}]`), gt = new RegExp(`[${U}]`), _t = it;
9
+ class yt {
10
10
  #c = H;
11
11
  #n = q;
12
12
  #r = U;
@@ -24,15 +24,15 @@ class _t {
24
24
  return this.#a;
25
25
  }
26
26
  #e = it;
27
- #h = ft;
28
- #d = ut;
29
- #k = gt;
27
+ #h = ut;
28
+ #p = gt;
29
+ #k = _t;
30
30
  break_fixed = !1;
31
31
  break_fixed_left = 0;
32
32
  break_fixed_top = 0;
33
33
  bura = !1;
34
34
  lay(t) {
35
- t.kinsoku_sol && (this.#c = t.kinsoku_sol, this.#e = new RegExp(`[${this.#c}]`)), t.kinsoku_eol && (this.#n = t.kinsoku_eol, this.#l(), this.#h = new RegExp(`[${this.#n}]`)), t.kinsoku_dns && (this.#r = t.kinsoku_dns, this.#y(), this.#d = new RegExp(`[${this.#r}]`)), t.kinsoku_bura && (this.#a = t.kinsoku_bura, this.#l(), this.#y(), this.#k = new RegExp(`[${this.#a}]`)), "bura" in t && (this.bura = F(t, "bura", !1)), this.break_fixed = F(t, "break_fixed", this.break_fixed), this.break_fixed_left = v(t, "break_fixed_left", this.break_fixed_left), this.break_fixed_top = v(t, "break_fixed_top", this.break_fixed_top);
35
+ t.kinsoku_sol && (this.#c = t.kinsoku_sol, this.#e = new RegExp(`[${this.#c}]`)), t.kinsoku_eol && (this.#n = t.kinsoku_eol, this.#l(), this.#h = new RegExp(`[${this.#n}]`)), t.kinsoku_dns && (this.#r = t.kinsoku_dns, this.#g(), this.#p = new RegExp(`[${this.#r}]`)), t.kinsoku_bura && (this.#a = t.kinsoku_bura, this.#l(), this.#g(), this.#k = new RegExp(`[${this.#a}]`)), "bura" in t && (this.bura = F(t, "bura", !1)), this.break_fixed = F(t, "break_fixed", this.break_fixed), this.break_fixed_left = S(t, "break_fixed_left", this.break_fixed_left), this.break_fixed_top = S(t, "break_fixed_top", this.break_fixed_top);
36
36
  }
37
37
  // 禁則の競合(ぶら下げ と 行末禁則 の両方に含まれる文字があってはならない)
38
38
  #l() {
@@ -49,7 +49,7 @@ class _t {
49
49
  }
50
50
  }
51
51
  // 禁則の競合(ぶら下げ と 分割禁止 の両方に含まれる文字があってはならない)
52
- #y() {
52
+ #g() {
53
53
  const t = this.#r.length, e = this.#a.length;
54
54
  if (t < e)
55
55
  for (let s = 0; s < t; ++s) {
@@ -66,7 +66,7 @@ class _t {
66
66
  t.#t(this.#c, this.#n, this.#r, this.#a), t.break_fixed = this.break_fixed, t.break_fixed_left = this.break_fixed_left, t.break_fixed_top = this.break_fixed_top, t.bura = this.bura;
67
67
  }
68
68
  #t(t, e, s, i) {
69
- this.#c !== t && (this.#c = t, this.#e = new RegExp(`[${t}]`)), this.#n !== e && (this.#n = e, this.#h = new RegExp(`[${e}]`)), this.#r !== s && (this.#r = s, this.#d = new RegExp(`[${s}]`)), this.#a !== i && (this.#a = i, this.#k = new RegExp(`[${i}]`));
69
+ this.#c !== t && (this.#c = t, this.#e = new RegExp(`[${t}]`)), this.#n !== e && (this.#n = e, this.#h = new RegExp(`[${e}]`)), this.#r !== s && (this.#r = s, this.#p = new RegExp(`[${s}]`)), this.#a !== i && (this.#a = i, this.#k = new RegExp(`[${i}]`));
70
70
  }
71
71
  record() {
72
72
  const t = {
@@ -88,32 +88,32 @@ class _t {
88
88
  hyph(t, e, s, i, a) {
89
89
  let n, l = 0, h = 2, r = (b) => (r = () => !1, i === b ? (i > 0 && (t.innerHTML = a.replaceAll('class="sn_ch"', 'class="sn_ch sn_ch_in_default"')), !0) : b < 2);
90
90
  do {
91
- if (n = this.#g(t, e), l = n.length, r(l)) break;
91
+ if (n = this.#_(t, e), l = n.length, r(l)) break;
92
92
  let b = -1 / 0;
93
93
  for (; h < l; ++h) {
94
- const { elm: _, rect: w, ch: E } = n[h];
95
- if (_.tagName === "RT") continue;
94
+ const { elm: y, rect: w, ch: C } = n[h];
95
+ if (y.tagName === "RT") continue;
96
96
  const x = s ? w.y : w.x;
97
- if (b <= x || _.previousElementSibling?.tagName === "SPAN" && _.previousElementSibling?.innerHTML.includes("<br>") || _.parentElement?.previousElementSibling?.tagName === "SPAN" && _.parentElement?.previousElementSibling?.innerHTML.includes("<br>")) {
97
+ if (b <= x || y.previousElementSibling?.tagName === "SPAN" && y.previousElementSibling?.innerHTML.includes("<br>") || y.parentElement?.previousElementSibling?.tagName === "SPAN" && y.parentElement?.previousElementSibling?.innerHTML.includes("<br>")) {
98
98
  b = x, this.break_fixed || (this.break_fixed_left = w.x, this.break_fixed_top = w.y);
99
99
  continue;
100
100
  }
101
- const u = this.#u(n, h), { elm: $, rect: S, ch: d } = n[u];
101
+ const N = this.#u(n, h), { elm: g, rect: $, ch: o } = n[N];
102
102
  if (!this.break_fixed) {
103
- this.break_fixed_left = S.x, this.break_fixed_top = S.y;
104
- const g = globalThis.getComputedStyle($), C = parseFloat(g.fontSize);
105
- s ? this.break_fixed_top += C : this.break_fixed_left += C;
103
+ this.break_fixed_left = $.x, this.break_fixed_top = $.y;
104
+ const p = globalThis.getComputedStyle(g), E = parseFloat(p.fontSize);
105
+ s ? this.break_fixed_top += E : this.break_fixed_left += E;
106
106
  }
107
107
  b = -1 / 0;
108
- const o = h, { cont: m, ins: y } = this.bura ? this.hyph_alg_bura(n, u, d, h) : this.hyph_alg(n, u, d, h, E);
109
- if (h = y, m) continue;
110
- const R = n[h].elm, f = R.parentElement, p = document.createElement("br");
111
- if (f.classList.contains("sn_tx")) f.insertBefore(p, R);
108
+ const d = h, { cont: u, ins: m } = this.bura ? this.hyph_alg_bura(n, N, o, h) : this.hyph_alg(n, N, o, h, C);
109
+ if (h = m, u) continue;
110
+ const v = n[h].elm, _ = v.parentElement, f = document.createElement("br");
111
+ if (_.classList.contains("sn_tx")) _.insertBefore(f, v);
112
112
  else {
113
- const g = f.parentElement;
114
- g.classList.contains("sn_ch") ? g.parentElement.insertBefore(p, g) : g.insertBefore(p, f);
113
+ const p = _.parentElement;
114
+ p.classList.contains("sn_ch") ? p.parentElement.insertBefore(f, p) : p.insertBefore(f, _);
115
115
  }
116
- h += 2, h < o && (h = o), l = -1;
116
+ h += 2, h < d && (h = d), l = -1;
117
117
  break;
118
118
  }
119
119
  } while (l < 0);
@@ -124,9 +124,9 @@ class _t {
124
124
  const s = e - 1, { elm: i } = t[s];
125
125
  return i.tagName !== "RT" ? s - (i.style.textCombineUpright === "all" ? Array.from(i.textContent).length - 1 : 0) : s - Array.from(i.textContent).length;
126
126
  }
127
- #g(t, e) {
127
+ #_(t, e) {
128
128
  const s = [];
129
- if (t.nodeType !== t.TEXT_NODE) return Array.from(t.childNodes).map((l) => this.#g(l, e)).flat();
129
+ if (t.nodeType !== t.TEXT_NODE) return Array.from(t.childNodes).map((l) => this.#_(l, e)).flat();
130
130
  const i = t.ownerDocument.createRange();
131
131
  i.selectNodeContents(t);
132
132
  let a = 0;
@@ -160,7 +160,7 @@ class _t {
160
160
  if (this.#e.test(a))
161
161
  for (; (n = this.#u(t, n)) >= 0 && this.#e.test(t[n].ch); )
162
162
  ;
163
- else if (!(s === a && this.#d.test(s))) return { cont: !0, ins: n + 1 };
163
+ else if (!(s === a && this.#p.test(s))) return { cont: !0, ins: n + 1 };
164
164
  }
165
165
  for (n = e; (n = this.#u(t, n)) >= 0 && this.#h.test(t[n].ch); )
166
166
  ;
@@ -182,8 +182,8 @@ class _t {
182
182
  if (this.#k.test(n) || this.#e.test(n)) {
183
183
  let h = e;
184
184
  (this.#k.test(s) || this.#e.test(s)) && ++h;
185
- const r = this.#u(t, h), { ch: b } = t[r], { ch: _ } = t[h];
186
- if (b === _ && this.#d.test(_)) return { cont: !1, ins: r };
185
+ const r = this.#u(t, h), { ch: b } = t[r], { ch: y } = t[h];
186
+ if (b === y && this.#p.test(y)) return { cont: !1, ins: r };
187
187
  if (!this.#h.test(b)) return { cont: !1, ins: h };
188
188
  h = r;
189
189
  do
@@ -194,7 +194,7 @@ class _t {
194
194
  const l = this.#u(t, a);
195
195
  if (i >= 3) {
196
196
  const { ch: h } = t[l];
197
- if (this.#d.test(n) && h === n)
197
+ if (this.#p.test(n) && h === n)
198
198
  return { cont: !1, ins: l };
199
199
  if (this.#h.test(h)) {
200
200
  let r = l;
@@ -206,184 +206,184 @@ class _t {
206
206
  return { cont: !1, ins: a };
207
207
  }
208
208
  }
209
- function yt(Q, t, e, s, i, a = !0) {
209
+ function mt(Q, t, e, s, i, a = !0) {
210
210
  const n = {
211
- escape: (d) => d.replaceAll(/([.*+?^${}()|[\]/\\])/g, "\\$1"),
212
- mimeType: (d) => {
213
- const o = _(d).toLowerCase();
214
- return l()[o] || "";
211
+ escape: (o) => o.replaceAll(/([.*+?^${}()|[\]/\\])/g, "\\$1"),
212
+ mimeType: (o) => {
213
+ const d = y(o).toLowerCase();
214
+ return l()[d] || "";
215
215
  },
216
- dataAsUrl: u,
216
+ dataAsUrl: N,
217
217
  isDataUrl: w,
218
- resolveUrl: E,
218
+ resolveUrl: C,
219
219
  getAndEncode: x,
220
- asArray: (d) => {
221
- const o = [], m = d.length;
222
- for (let y = 0; y < m; ++y) o.push(d[y]);
223
- return o;
220
+ asArray: (o) => {
221
+ const d = [], u = o.length;
222
+ for (let m = 0; m < u; ++m) d.push(o[m]);
223
+ return d;
224
224
  }
225
225
  };
226
226
  function l() {
227
- const d = "application/font-woff", o = "image/jpeg";
227
+ const o = "application/font-woff", d = "image/jpeg";
228
228
  return {
229
- woff: d,
230
- woff2: d,
229
+ woff: o,
230
+ woff2: o,
231
231
  ttf: "application/font-truetype",
232
232
  eot: "application/vnd.ms-fontobject",
233
233
  png: "image/png",
234
- jpg: o,
235
- jpeg: o,
234
+ jpg: d,
235
+ jpeg: d,
236
236
  gif: "image/gif",
237
237
  tiff: "image/tiff",
238
238
  svg: "image/svg+xml"
239
239
  };
240
240
  }
241
- const h = $(), r = S();
242
- function b(d) {
243
- return r.resolveAll().then((o) => {
244
- const m = document.createElement("style");
245
- return d.appendChild(m), m.appendChild(document.createTextNode(o)), d;
241
+ const h = g(), r = $();
242
+ function b(o) {
243
+ return r.resolveAll().then((d) => {
244
+ const u = document.createElement("style");
245
+ return o.appendChild(u), u.appendChild(document.createTextNode(d)), o;
246
246
  });
247
247
  }
248
- function _(d) {
249
- return /\.([^./]*?)$/g.exec(d)?.[1] ?? "";
250
- }
251
- function w(d) {
252
- return d.search(/^(data:)/) !== -1;
253
- }
254
- function E(d, o) {
255
- const m = document.implementation.createHTMLDocument(), y = m.createElement("base");
256
- m.head.appendChild(y);
257
- const R = m.createElement("a");
258
- return m.body.appendChild(R), y.href = o, R.href = d, R.href;
259
- }
260
- function x(d) {
261
- return new Promise(function(m) {
262
- const y = new XMLHttpRequest();
263
- y.onreadystatechange = R, y.ontimeout = f, y.responseType = "blob", y.timeout = 3e4, y.open("GET", d, !0), y.send();
264
- function R() {
265
- if (y.readyState !== 4) return;
266
- if (y.status !== 200) {
267
- p("cannot fetch resource: " + d + ", status: " + y.status);
248
+ function y(o) {
249
+ return /\.([^./]*?)$/g.exec(o)?.[1] ?? "";
250
+ }
251
+ function w(o) {
252
+ return o.search(/^(data:)/) !== -1;
253
+ }
254
+ function C(o, d) {
255
+ const u = document.implementation.createHTMLDocument(), m = u.createElement("base");
256
+ u.head.appendChild(m);
257
+ const v = u.createElement("a");
258
+ return u.body.appendChild(v), m.href = d, v.href = o, v.href;
259
+ }
260
+ function x(o) {
261
+ return new Promise(function(u) {
262
+ const m = new XMLHttpRequest();
263
+ m.onreadystatechange = v, m.ontimeout = _, m.responseType = "blob", m.timeout = 3e4, m.open("GET", o, !0), m.send();
264
+ function v() {
265
+ if (m.readyState !== 4) return;
266
+ if (m.status !== 200) {
267
+ f("cannot fetch resource: " + o + ", status: " + m.status);
268
268
  return;
269
269
  }
270
- const g = new FileReader();
271
- g.onloadend = function() {
272
- const C = g.result.toString().split(/,/)[1];
273
- m(C);
274
- }, g.readAsDataURL(y.response);
270
+ const p = new FileReader();
271
+ p.onloadend = function() {
272
+ const E = p.result.toString().split(/,/)[1];
273
+ u(E);
274
+ }, p.readAsDataURL(m.response);
275
275
  }
276
- function f() {
277
- p("timeout of 30000ms occured while fetching resource: " + d);
276
+ function _() {
277
+ f("timeout of 30000ms occured while fetching resource: " + o);
278
278
  }
279
- function p(g) {
280
- console.error(g), m("");
279
+ function f(p) {
280
+ console.error(p), u("");
281
281
  }
282
282
  });
283
283
  }
284
- function u(d, o) {
285
- return "data:" + o + ";base64," + d;
284
+ function N(o, d) {
285
+ return "data:" + d + ";base64," + o;
286
286
  }
287
- function $() {
288
- const d = /url\(['"]?([^'"]+?)['"]?\)/g;
287
+ function g() {
288
+ const o = /url\(['"]?([^'"]+?)['"]?\)/g;
289
289
  return {
290
- inlineAll: R,
291
- shouldProcess: o
290
+ inlineAll: v,
291
+ shouldProcess: d
292
292
  };
293
- function o(f) {
294
- return f.search(d) !== -1;
293
+ function d(_) {
294
+ return _.search(o) !== -1;
295
295
  }
296
- function m(f) {
297
- const p = [];
298
- let g;
299
- for (; g = d.exec(f); )
300
- p.push(g[1]);
301
- return p.filter(function(C) {
302
- return !n.isDataUrl(C);
296
+ function u(_) {
297
+ const f = [];
298
+ let p;
299
+ for (; p = o.exec(_); )
300
+ f.push(p[1]);
301
+ return f.filter(function(E) {
302
+ return !n.isDataUrl(E);
303
303
  });
304
304
  }
305
- function y(f, p, g, C) {
306
- return Promise.resolve(p).then((N) => g ? n.resolveUrl(N, g) : N).then(C || n.getAndEncode).then((N) => n.dataAsUrl(N, n.mimeType(p))).then((N) => f.replace(M(p), "$1" + N + "$3"));
307
- function M(N) {
308
- return new RegExp(`(url\\(['"]?)(` + n.escape(N) + `)(['"]?\\))`, "g");
305
+ function m(_, f, p, E) {
306
+ return Promise.resolve(f).then((R) => p ? n.resolveUrl(R, p) : R).then(E || n.getAndEncode).then((R) => n.dataAsUrl(R, n.mimeType(f))).then((R) => _.replace(T(f), "$1" + R + "$3"));
307
+ function T(R) {
308
+ return new RegExp(`(url\\(['"]?)(` + n.escape(R) + `)(['"]?\\))`, "g");
309
309
  }
310
310
  }
311
- function R(f, p, g) {
312
- if (C()) return Promise.resolve(f);
313
- return Promise.resolve(f).then(m).then((M) => {
314
- let N = Promise.resolve(f);
315
- for (const P of M) N = N.then((J) => y(J, P, p, g));
316
- return N;
311
+ function v(_, f, p) {
312
+ if (E()) return Promise.resolve(_);
313
+ return Promise.resolve(_).then(u).then((T) => {
314
+ let R = Promise.resolve(_);
315
+ for (const J of T) R = R.then((O) => m(O, J, f, p));
316
+ return R;
317
317
  });
318
- function C() {
319
- return !o(f);
318
+ function E() {
319
+ return !d(_);
320
320
  }
321
321
  }
322
322
  }
323
- function S() {
323
+ function $() {
324
324
  return {
325
- resolveAll: d,
326
- impl: { readAll: o }
325
+ resolveAll: o,
326
+ impl: { readAll: d }
327
327
  };
328
- function d() {
329
- return o().then((m) => Promise.allSettled(
330
- m.map((y) => y.resolve())
331
- )).then((m) => m.join(`
328
+ function o() {
329
+ return d().then((u) => Promise.allSettled(
330
+ u.map((m) => m.resolve())
331
+ )).then((u) => u.join(`
332
332
  `));
333
333
  }
334
- function o() {
335
- return Promise.resolve(n.asArray(document.styleSheets)).then(y).then(m).then((f) => f.map(R));
336
- function m(f) {
337
- return f.filter((p) => p.type === CSSRule.FONT_FACE_RULE).filter((p) => h.shouldProcess(p.style.getPropertyValue("src")));
334
+ function d() {
335
+ return Promise.resolve(n.asArray(document.styleSheets)).then(m).then(u).then((_) => _.map(v));
336
+ function u(_) {
337
+ return _.filter((f) => f.type === CSSRule.FONT_FACE_RULE).filter((f) => h.shouldProcess(f.style.getPropertyValue("src")));
338
338
  }
339
- function y(f) {
340
- const p = [];
341
- for (const g of f)
339
+ function m(_) {
340
+ const f = [];
341
+ for (const p of _)
342
342
  try {
343
- if (g.href) continue;
344
- n.asArray(g.cssRules || []).forEach(p.push.bind(p));
345
- } catch (C) {
346
- console.error("Error while reading CSS rules from " + g.href, String(C));
343
+ if (p.href) continue;
344
+ n.asArray(p.cssRules || []).forEach(f.push.bind(f));
345
+ } catch (E) {
346
+ console.error("Error while reading CSS rules from " + p.href, String(E));
347
347
  }
348
- return p;
348
+ return f;
349
349
  }
350
- function R(f) {
350
+ function v(_) {
351
351
  return {
352
352
  resolve: function() {
353
- const g = (f.parentStyleSheet || {}).href;
354
- return h.inlineAll(f.cssText, g);
353
+ const p = (_.parentStyleSheet || {}).href;
354
+ return h.inlineAll(_.cssText, p);
355
355
  },
356
356
  src() {
357
- return f.style.getPropertyValue("src");
357
+ return _.style.getPropertyValue("src");
358
358
  }
359
359
  };
360
360
  }
361
361
  }
362
362
  }
363
- Promise.resolve(t).then((d) => {
364
- const o = d.cloneNode(!0);
365
- return o.style.padding = "0px", o.style.paddingRight = s + "px", o.style.paddingTop = i + "px", o.style.left = "0px", o.style.top = "0px", o.style.width = e.$width - e.pad_left - e.pad_right + "px", o.style.height = e.$height - e.pad_top - e.pad_bottom + "px", t.hidden = a, o;
366
- }).then(b).then((d) => {
367
- d.setAttribute("xmlns", "http://www.w3.org/1999/xhtml");
368
- const o = new Image();
369
- return o.src = `data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="${String(e.$width)}px" height="${String(e.$height)}px"><foreignObject x="0" y="0" width="100%" height="100%">${new XMLSerializer().serializeToString(d).replaceAll("#", "%23").replaceAll(`
370
- `, "%0A")}</foreignObject></svg>`, new Promise((m) => {
371
- o.onload = () => m(o);
363
+ Promise.resolve(t).then((o) => {
364
+ const d = o.cloneNode(!0);
365
+ return d.style.padding = "0px", d.style.paddingRight = s + "px", d.style.paddingTop = i + "px", d.style.left = "0px", d.style.top = "0px", d.style.width = e.$width - e.pad_left - e.pad_right + "px", d.style.height = e.$height - e.pad_top - e.pad_bottom + "px", t.hidden = a, d;
366
+ }).then(b).then((o) => {
367
+ o.setAttribute("xmlns", "http://www.w3.org/1999/xhtml");
368
+ const d = new Image();
369
+ return d.src = `data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="${String(e.$width)}px" height="${String(e.$height)}px"><foreignObject x="0" y="0" width="100%" height="100%">${new XMLSerializer().serializeToString(o).replaceAll("#", "%23").replaceAll(`
370
+ `, "%0A")}</foreignObject></svg>`, new Promise((u) => {
371
+ d.onload = () => u(d);
372
372
  });
373
- }).then((d) => new Promise((o) => setTimeout(() => o(d), 100))).then((d) => {
374
- const o = document.createElement("canvas");
375
- o.width = e.$width, o.height = e.$height, o.getContext("2d").drawImage(d, 0, 0), Q(lt.from(o));
376
- }).catch((d) => K.myTrace(`goTxt() = ${String(d)}`));
373
+ }).then((o) => new Promise((d) => setTimeout(() => d(o), 100))).then((o) => {
374
+ const d = document.createElement("canvas");
375
+ d.width = e.$width, d.height = e.$height, d.getContext("2d").drawImage(o, 0, 0), Q(rt.from(d));
376
+ }).catch((o) => K.myTrace(`goTxt() = ${String(o)}`));
377
377
  }
378
- class c extends T {
378
+ class c extends P {
379
379
  constructor(t, e, s) {
380
- super(), this.ctn = t, this.canFocus = e, this.sys = s, this.#e.classList.add("sn_tx"), this.#e.style.position = "absolute", c.#n.view.parentElement.appendChild(this.#e), this.addChild(this.#h), this.addChild(this.#d), this.#d.name = "grpDbgMasume";
380
+ super(), this.ctn = t, this.canFocus = e, this.sys = s, this.#e.classList.add("sn_tx"), this.#e.style.position = "absolute", c.#n.view.parentElement.appendChild(this.#e), this.addChild(this.#h), this.addChild(this.#p), this.#p.name = "grpDbgMasume";
381
381
  const i = j.debugLog ? ({ ch: a, rect: { x: n, y: l, width: h, height: r } }) => console.log(`🍌 masume ch:${a} x:${String(n)} y:${String(l)} w:${String(h)} h:${String(r)}`) : () => {
382
382
  };
383
- this.#y = c.#c.oCfg.debug.masume ? (a) => {
383
+ this.#g = c.#c.oCfg.debug.masume ? (a) => {
384
384
  i(a);
385
385
  const { x: n, y: l, width: h, height: r } = a.rect;
386
- this.#d.beginFill(6737151, 0.5).lineStyle(2, 16724736, 1).drawRect(n, l, h, r).endFill();
386
+ this.#p.beginFill(6737151, 0.5).lineStyle(2, 16724736, 1).drawRect(n, l, h, r).endFill();
387
387
  } : () => {
388
388
  }, this.noticeCompTxt = s.isApp && c.#c.oCfg.debug.dumpHtm ? () => {
389
389
  W.notifyEndProc(A);
@@ -411,13 +411,13 @@ $1
411
411
  c.#r = t, c.#a = e;
412
412
  }
413
413
  static destroy() {
414
- c.#$ = /* @__PURE__ */ Object.create(null), c.#v = /* @__PURE__ */ Object.create(null), c.delBreak();
414
+ c.#$ = /* @__PURE__ */ Object.create(null), c.#E = /* @__PURE__ */ Object.create(null), c.delBreak();
415
415
  }
416
416
  #e = document.createElement("span");
417
417
  // サンプリング元
418
- #h = new T();
418
+ #h = new P();
419
419
  // サンプリング先
420
- #d = new B();
420
+ #p = new B();
421
421
  static #k = {
422
422
  "background-color": 0,
423
423
  "border-bottom-width": 0,
@@ -429,10 +429,10 @@ $1
429
429
  "margin-right": 0,
430
430
  "margin-top": 0
431
431
  };
432
- #l = new _t();
432
+ #l = new yt();
433
433
  noticeCompTxt = () => {
434
434
  };
435
- #y;
435
+ #g;
436
436
  // readonly #idc :TxtLayDesignCast;
437
437
  // readonly #idcCh = new TxtLayPadDesignCast(this);
438
438
  #t = {
@@ -467,31 +467,31 @@ $1
467
467
  !s.style.opacity && "alpha" in t && (e.opacity = String(this.ctn.alpha));
468
468
  } else this.#e.style.cssText = "";
469
469
  else "alpha" in t && (e.opacity = String(this.ctn.alpha));
470
- if ("width" in t && (e.width = String(t.width ?? "0") + "px"), "height" in t && (e.height = String(t.height ?? "0") + "px"), "pl" in t && (e.paddingLeft = String(t.pl ?? "0") + "px"), "pr" in t && (e.paddingRight = String(t.pr ?? "0") + "px"), "pt" in t && (e.paddingTop = String(t.pt ?? "0") + "px"), "pb" in t && (e.paddingBottom = String(t.pb ?? "0") + "px"), this.#l.lay(t), this.#g(), this.#o = this.ctn.position.x, e.transformOrigin = `${String(this.ctn.pivot.x)}px ${String(this.ctn.pivot.y)}px`, this.cvsResize(), e.display = this.ctn.visible ? "inline" : "none", ":redraw" in t && this.#m > 0) {
470
+ if ("width" in t && (e.width = String(t.width ?? "0") + "px"), "height" in t && (e.height = String(t.height ?? "0") + "px"), "pl" in t && (e.paddingLeft = String(t.pl ?? "0") + "px"), "pr" in t && (e.paddingRight = String(t.pr ?? "0") + "px"), "pt" in t && (e.paddingTop = String(t.pt ?? "0") + "px"), "pb" in t && (e.paddingBottom = String(t.pb ?? "0") + "px"), this.#l.lay(t), this.#_(), this.#o = this.ctn.position.x, e.transformOrigin = `${String(this.ctn.pivot.x)}px ${String(this.ctn.pivot.y)}px`, this.cvsResize(), e.display = this.ctn.visible ? "inline" : "none", ":redraw" in t && this.#y > 0) {
471
471
  const s = [
472
472
  this.#e.innerHTML.replaceAll(/(animation-delay: )\d+ms/g, "$10ms"),
473
473
  `<span class='sn_ch' data-add='{"ch_in_style":"default"}'>&emsp;</span>`
474
474
  ];
475
- this.#H(), this.goTxt(s, !0);
475
+ this.#z(), this.goTxt(s, !0);
476
476
  }
477
477
  }
478
478
  // oxlint-disable-next-line no-unused-private-class-members
479
479
  #u = 0;
480
480
  // 「g」などで下が欠ける問題対策
481
- #g() {
481
+ #_() {
482
482
  const t = this.#e.style, e = parseFloat(t.fontSize || "0");
483
- this.#t.fontsize = e, this.#t.pad_left = parseFloat(t.paddingLeft || "0"), this.#t.pad_right = parseFloat(t.paddingRight || "0"), this.#t.pad_top = parseFloat(t.paddingTop || "0"), this.#t.pad_bottom = parseFloat(t.paddingBottom || "0"), this.#t.$width = parseFloat(t.width || "0"), this.#t.$height = parseFloat(t.height || "0"), this.position.set(this.#t.pad_left, this.#t.pad_top), this.#p = t.writingMode === "vertical-rl", this.#i = 0, this.#b = 0;
483
+ this.#t.fontsize = e, this.#t.pad_left = parseFloat(t.paddingLeft || "0"), this.#t.pad_right = parseFloat(t.paddingRight || "0"), this.#t.pad_top = parseFloat(t.paddingTop || "0"), this.#t.pad_bottom = parseFloat(t.paddingBottom || "0"), this.#t.$width = parseFloat(t.width || "0"), this.#t.$height = parseFloat(t.height || "0"), this.position.set(this.#t.pad_left, this.#t.pad_top), this.#f = t.writingMode === "vertical-rl", this.#i = 0, this.#b = 0;
484
484
  const s = t.lineHeight ?? "0";
485
- this.#u = this.#p ? 0 : (s.endsWith("px") ? parseFloat(s) : e * parseFloat(s) - e) / 2;
485
+ this.#u = this.#f ? 0 : (s.endsWith("px") ? parseFloat(s) : e * parseFloat(s) - e) / 2;
486
486
  }
487
487
  cvsResize() {
488
488
  const t = this.#e.style, e = this.sys.cvsScale;
489
489
  t.left = `${String(this.sys.ofsLeft4elm + this.#o * e)}px`, t.top = `${String(this.sys.ofsTop4elm + this.ctn.position.y * e)}px`, t.transform = `rotate(${String(this.ctn.angle)}deg) scale(${String(this.ctn.scale.x * e)}, ${String(this.ctn.scale.y * e)})`;
490
490
  }
491
491
  #o = 0;
492
- #p = !1;
492
+ #f = !1;
493
493
  get tategaki() {
494
- return this.#p;
494
+ return this.#f;
495
495
  }
496
496
  #i = 0;
497
497
  #b = 0;
@@ -510,121 +510,124 @@ $1
510
510
  #s = [];
511
511
  // FIFO実行バッファ
512
512
  goTxt(t, e) {
513
- const s = () => this.#_(t, e);
513
+ const s = () => this.#m(t, e);
514
514
  this.#s.push(s) === 1 && s();
515
515
  }
516
- #F = [];
517
- #m = 0;
516
+ #v = [];
517
+ #y = 0;
518
518
  static #q = "<span class='sn_ch sn_ch_last'>&emsp;</span>";
519
- #_(t, e) {
520
- c.#j.visible = !1;
521
- let s = this.#F.length, i = "";
519
+ #m(t, e) {
520
+ c.#O.visible = !1;
521
+ let s = this.#v.length, i = "";
522
522
  if (s === 0) {
523
- if (c.#c.oCfg.debug.masume && (j.debugLog && console.log(`🍌 masume ${this.name} v:${String(this.visible)} l:${String(this.x)} t:${String(this.y)} a:${String(this.alpha)} pl:${String(this.#t.pad_left)} pr:${String(this.#t.pad_right)} pt:${String(this.#t.pad_top)} pb:${String(this.#t.pad_bottom)} w:${String(this.#t.$width)} h:${String(this.#t.$height)}`), this.#d.clear().beginFill(3407616, 0.2).lineStyle(1, 3407616, 1).drawRect(-this.#t.pad_left, -this.#t.pad_top, this.#t.$width, this.#t.$height).endFill().beginFill(13311, 0.2).lineStyle(2, 13311, 1).drawRect(
523
+ if (c.#c.oCfg.debug.masume && (j.debugLog && console.log(`🍌 masume ${this.name} v:${String(this.visible)} l:${String(this.x)} t:${String(this.y)} a:${String(this.alpha)} pl:${String(this.#t.pad_left)} pr:${String(this.#t.pad_right)} pt:${String(this.#t.pad_top)} pb:${String(this.#t.pad_bottom)} w:${String(this.#t.$width)} h:${String(this.#t.$height)}`), this.#p.clear().beginFill(3407616, 0.2).lineStyle(1, 3407616, 1).drawRect(-this.#t.pad_left, -this.#t.pad_top, this.#t.$width, this.#t.$height).endFill().beginFill(13311, 0.2).lineStyle(2, 13311, 1).drawRect(
524
524
  0,
525
525
  0,
526
526
  this.#t.$width - this.#t.pad_left - this.#t.pad_right,
527
527
  this.#t.$height - this.#t.pad_top - this.#t.pad_bottom
528
528
  ).endFill()), this.#e.innerHTML = [...t].join("").replaceAll(/[\n\t]/g, "") + c.#q, !this.#l.break_fixed) {
529
- const u = globalThis.getComputedStyle(this.#e), $ = parseFloat(u.fontSize);
530
- this.#p ? (this.#l.break_fixed_left = (this.#t.$width - this.#t.pad_left - this.#t.pad_right - $ * 1.5) * this.sys.cvsScale, this.#l.break_fixed_top = 0) : (this.#l.break_fixed_left = 0, this.#l.break_fixed_top = $ / 2 * this.sys.cvsScale);
529
+ const g = globalThis.getComputedStyle(this.#e), $ = parseFloat(g.fontSize);
530
+ this.#f ? (this.#l.break_fixed_left = (this.#t.$width - this.#t.pad_left - this.#t.pad_right - $ * 1.5) * this.sys.cvsScale, this.#l.break_fixed_top = 0) : (this.#l.break_fixed_left = 0, this.#l.break_fixed_top = $ / 2 * this.sys.cvsScale);
531
531
  }
532
532
  } else
533
- i = this.#e.innerHTML, --s, this.#e.getElementsByClassName("sn_ch_last").item(0)?.remove(), this.#e.querySelectorAll(":scope > br").forEach((u) => u.remove()), this.#e.insertAdjacentHTML(
533
+ i = this.#e.innerHTML, --s, this.#e.getElementsByClassName("sn_ch_last").item(0)?.remove(), this.#e.querySelectorAll(":scope > br").forEach((g) => g.remove()), this.#e.insertAdjacentHTML(
534
534
  "beforeend",
535
- t.slice(this.#m).join("").replaceAll(/[\n\t]/g, "") + c.#q
535
+ t.slice(this.#y).join("").replaceAll(/[\n\t]/g, "") + c.#q
536
536
  // 末尾改行削除挙動対策
537
537
  );
538
- this.#e.querySelectorAll(".sn_ch:has(> ruby)").forEach((u) => {
539
- u.style.background = "";
540
- }), this.#m = t.length;
538
+ this.#e.querySelectorAll(".sn_ch:has(> ruby)").forEach((g) => {
539
+ g.style.background = "";
540
+ }), this.#y = t.length;
541
541
  const a = this.sys.cvsScale, n = this.#e.getBoundingClientRect(), l = n.left + this.#t.pad_left, h = n.top + this.#t.pad_top;
542
542
  let r;
543
- if (a === 1) r = (u, $) => {
544
- const S = u.getBoundingClientRect();
543
+ if (a === 1) r = (g, $) => {
544
+ const o = g.getBoundingClientRect();
545
545
  return new X(
546
- S.left - l,
547
- S.top - h,
548
- S.width,
549
- S.height + ("gjqy".includes($) ? this.#u : 0)
546
+ o.left - l,
547
+ o.top - h,
548
+ o.width,
549
+ o.height + ("gjqy".includes($) ? this.#u : 0)
550
550
  );
551
551
  };
552
552
  else {
553
- const u = this.sys.ofsPadLeft_Dom2PIXI + n.left * (1 - a), $ = this.sys.ofsPadTop_Dom2PIXI + n.top * (1 - a);
554
- r = (S, d) => {
555
- const o = S.getBoundingClientRect();
553
+ const g = this.sys.ofsPadLeft_Dom2PIXI + n.left * (1 - a), $ = this.sys.ofsPadTop_Dom2PIXI + n.top * (1 - a);
554
+ r = (o, d) => {
555
+ const u = o.getBoundingClientRect();
556
556
  return new X(
557
- (o.left - u) / a - l,
558
- (o.top - $) / a - h,
559
- o.width / a,
560
- (o.height + ("gjqy".includes(d) ? this.#u : 0)) / a
557
+ (u.left - g) / a - l,
558
+ (u.top - $) / a - h,
559
+ u.width / a,
560
+ (u.height + ("gjqy".includes(d) ? this.#u : 0)) / a
561
561
  );
562
562
  };
563
563
  }
564
- const [b, _] = this.#l.hyph(this.#e, r, this.#p, s, i);
565
- this.#F = b;
566
- const w = ct.ease(this.#C);
567
- for (let u = s; u < _; ++u) {
568
- const $ = this.#F[u], { elm: { dataset: S, parentElement: d }, rect: o } = $, m = JSON.parse(S.arg ?? '{"delay": 0}'), y = JSON.parse(S.add ?? "{}"), R = c.#$[y.ch_in_style];
569
- if (this.#y($), S.cmd === "grp") {
570
- const f = new T();
564
+ const [b, y] = this.#l.hyph(this.#e, r, this.#f, s, i);
565
+ this.#v = b;
566
+ const w = dt.ease(this.#C);
567
+ for (let g = s; g < y; ++g) {
568
+ const $ = this.#v[g], { elm: { dataset: o, parentElement: d }, rect: u } = $, m = JSON.parse(o.arg ?? '{"delay": 0}'), v = JSON.parse(o.add ?? "{}"), _ = c.#$[v.ch_in_style];
569
+ if (this.#g($), o.cmd === "grp") {
570
+ const f = new P();
571
571
  this.#h.addChild(f), new I(m.pic, f, (p) => {
572
- this.#P(f, m, y, o, w, R ?? {}), f.parent || f.removeChild(p);
572
+ this.#B(f, m, v, u, w, _ ?? {}), f.parent || f.removeChild(p);
573
573
  });
574
574
  }
575
- if (S.lnk) {
575
+ if (o.lnk) {
576
576
  const f = d.closest("[data-arg]"), p = JSON.parse(f.dataset.arg ?? "{}");
577
- p.key = `lnk=[${String(u)}] ` + this.name;
578
- const g = new G();
579
- this.#P(g, p, y, o, w, R ?? {});
580
- const C = p.style ?? "", M = C + (p.style_hover ?? ""), N = C + (p.style_clicked ?? ""), P = p.r_style ?? "", J = P + (p.r_style_hover ?? ""), nt = P + (p.r_style_clicked ?? ""), Z = Array.from(f.getElementsByTagName("rt"));
577
+ p.key = `lnk=[${String(g)}] ` + this.name;
578
+ const E = new G();
579
+ this.#B(E, p, v, u, w, _ ?? {});
580
+ const T = p.style ?? "", R = T + (p.style_hover ?? ""), J = T + (p.style_clicked ?? ""), O = p.r_style ?? "", nt = O + (p.r_style_hover ?? ""), at = O + (p.r_style_clicked ?? ""), Z = Array.from(f.getElementsByTagName("rt"));
581
581
  for (const z of Z) z.dataset.st_r_bk = z.style.cssText;
582
- const at = f.style.cssText, D = (z, ht) => {
583
- f.style.cssText = at + z;
584
- for (const L of Z) L.style.cssText = L.dataset.st_r_bk + ht;
582
+ const ht = f.style.cssText, D = (z, lt) => {
583
+ f.style.cssText = ht + z;
584
+ for (const L of Z) L.style.cssText = L.dataset.st_r_bk + lt;
585
585
  };
586
586
  F(p, "enabled", !0) ? c.#r.button(
587
587
  p,
588
- g,
589
- () => D(C, P),
590
- () => this.canFocus() ? (D(M, J), !0) : !1,
591
- () => D(N, nt)
588
+ E,
589
+ () => D(T, O),
590
+ () => this.canFocus() ? (D(R, nt), !0) : !1,
591
+ () => D(J, at)
592
592
  ) : D(
593
- C + (p.style_disable ?? "color: gray;"),
594
- P + (p.r_style_disable ?? "color: gray;")
595
- ), this.#h.addChild(g);
593
+ T + (p.style_disable ?? "color: gray;"),
594
+ O + (p.r_style_disable ?? "color: gray;")
595
+ ), this.#h.addChild(E);
596
596
  }
597
597
  }
598
- const E = Array.from(this.#e.getElementsByClassName("sn_ch_yet"));
598
+ const C = Array.from(this.#e.getElementsByClassName("sn_ch_yet"));
599
599
  this.#S = () => {
600
600
  this.#S = () => !1;
601
- for (const $ of E) $.className = "sn_ch";
602
- c.#j.position.set(
601
+ for (const $ of C) $.className = "sn_ch";
602
+ c.#O.position.set(
603
603
  this.#l.break_fixed_left,
604
604
  this.#l.break_fixed_top
605
- ), c.#j.visible = !0, this.noticeCompTxt();
606
- const u = this.#s.shift();
607
- return this.#s.length > 0 && u(), !0;
605
+ ), c.#O.visible = !0, this.noticeCompTxt();
606
+ const g = this.#s.shift();
607
+ return this.#s.length > 0 && g(), !0;
608
608
  };
609
- for (const u of E) u.className = u.className.replace("sn_ch_yet sn", "go");
609
+ for (const g of C) g.className = g.className.replace("sn_ch_yet sn", "go");
610
610
  s > 0 && ++s;
611
611
  let x;
612
- for (let u = _ - 2; u >= 0; --u) {
613
- const { elm: $ } = this.#F[u];
612
+ for (let g = y - 2; g >= 0; --g) {
613
+ const { elm: $ } = this.#v[g];
614
614
  if ($.tagName === "SPAN") {
615
615
  x = $.parentElement?.tagName === "RUBY" ? $.parentElement.parentElement ?? $ : $;
616
616
  break;
617
617
  }
618
618
  }
619
- if (!x || e || s === _) {
619
+ if (!x || e || s === y) {
620
620
  this.#S();
621
621
  return;
622
622
  }
623
- x.addEventListener("animationend", () => this.#S(), { once: !0 });
623
+ const N = () => {
624
+ x.removeEventListener("animationend", N), this.#S();
625
+ };
626
+ x.addEventListener("animationend", N, { once: !0, signal: this.#N.signal });
624
627
  }
625
628
  #S = () => !1;
626
629
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
627
- #P(t, e, s, i, a, n) {
630
+ #B(t, e, s, i, a, n) {
628
631
  t.alpha = 0, e.x && (i.x = e.x.startsWith("=") ? i.x + parseInt(e.x.slice(1)) : parseInt(e.x)), e.y && (i.y = e.y.startsWith("=") ? i.y + parseInt(e.y.slice(1)) : parseInt(e.y)), e.width && (i.width = parseInt(e.width)), e.height && (i.height = parseInt(e.height)), e.wait && (n.wait = e.wait), t.width = i.width, t.height = i.height, n.x ? t.position.set(
629
632
  // eslint-disable-next-line @typescript-eslint/no-unsafe-call
630
633
  n.x.startsWith("=") ? i.x + t.width * n.nx : n.nx,
@@ -633,25 +636,25 @@ $1
633
636
  ) : t.position.set(i.x, i.y);
634
637
  const l = {
635
638
  sp: t,
636
- tw: new dt(t).to({ alpha: 1, x: i.x, y: i.y, width: i.width, height: i.height, angle: 0 }, n.wait ?? 0).easing(a).delay((s.wait ?? 0) + (e.delay ?? 0)).onComplete(() => {
639
+ tw: new pt(t).to({ alpha: 1, x: i.x, y: i.y, width: i.width, height: i.height, angle: 0 }, n.wait ?? 0).easing(a).delay((s.wait ?? 0) + (e.delay ?? 0)).onComplete(() => {
637
640
  l.tw = void 0;
638
641
  }).start()
639
642
  };
640
- this.#O.push(l);
643
+ this.#P.push(l);
641
644
  }
642
- #O = [];
645
+ #P = [];
643
646
  skipChIn() {
644
647
  let t = this.#S();
645
- for (const e of this.#O)
648
+ for (const e of this.#P)
646
649
  e.tw && (e.tw.stop().end(), t = !0);
647
- return this.#O = [], t;
650
+ return this.#P = [], t;
648
651
  }
649
652
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
650
653
  static #$ = /* @__PURE__ */ Object.create(null);
651
- static #I = /[{\s.,*{]/;
654
+ static #W = /[{\s.,*{]/;
652
655
  // https://regex101.com/r/APC91I/1
653
656
  static initChStyle() {
654
- c.#$ = /* @__PURE__ */ Object.create(null), c.#v = /* @__PURE__ */ Object.create(null);
657
+ c.#$ = /* @__PURE__ */ Object.create(null), c.#E = /* @__PURE__ */ Object.create(null);
655
658
  }
656
659
  static getChInStyle(t) {
657
660
  return c.#$[t];
@@ -659,13 +662,13 @@ $1
659
662
  static ch_in_style(t) {
660
663
  const { name: e } = t;
661
664
  if (!e) throw "nameは必須です";
662
- if (c.#I.test(e)) throw `name【${e}】に使えない文字が含まれます`;
665
+ if (c.#W.test(e)) throw `name【${e}】に使えない文字が含まれます`;
663
666
  if (e in c.#$) throw `name【${e}】はすでにあります`;
664
667
  const s = String(t.x ?? "=0"), i = String(t.y ?? "=0");
665
668
  return c.#$[e] = {
666
- wait: v(t, "wait", 500),
669
+ wait: S(t, "wait", 500),
667
670
  // アニメ・FI時間
668
- alpha: v(t, "alpha", 0),
671
+ alpha: S(t, "alpha", 0),
669
672
  x: s,
670
673
  // 初期x値
671
674
  y: i,
@@ -677,29 +680,29 @@ $1
677
680
  // {x:'=250,500'} +250から+500までの間でランダムな値を現在のX位置に加算
678
681
  nx: parseFloat(s.at(0) === "=" ? s.slice(1) : s),
679
682
  ny: parseFloat(i.at(0) === "=" ? i.slice(1) : i),
680
- scale_x: v(t, "scale_x", 1),
681
- scale_y: v(t, "scale_y", 1),
682
- rotate: v(t, "rotate", 0),
683
+ scale_x: S(t, "scale_x", 1),
684
+ scale_y: S(t, "scale_y", 1),
685
+ rotate: S(t, "rotate", 0),
683
686
  join: F(t, "join", !0),
684
687
  // 文字を順番に出すか(true)同時か(false)
685
688
  ease: t.ease ?? "ease-out"
686
689
  };
687
690
  }
688
691
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
689
- static #v = /* @__PURE__ */ Object.create(null);
692
+ static #E = /* @__PURE__ */ Object.create(null);
690
693
  static getChOutStyle(t) {
691
- return c.#v[t];
694
+ return c.#E[t];
692
695
  }
693
696
  static ch_out_style(t) {
694
697
  const { name: e } = t;
695
698
  if (!e) throw "nameは必須です";
696
- if (c.#I.test(e)) throw `name【${e}】に使えない文字が含まれます`;
697
- if (e in c.#v) throw `name【${e}】はすでにあります`;
699
+ if (c.#W.test(e)) throw `name【${e}】に使えない文字が含まれます`;
700
+ if (e in c.#E) throw `name【${e}】はすでにあります`;
698
701
  const s = String(t.x ?? "=0"), i = String(t.y ?? "=0");
699
- return c.#v[e] = {
700
- wait: v(t, "wait", 500),
702
+ return c.#E[e] = {
703
+ wait: S(t, "wait", 500),
701
704
  // アニメ・FI時間
702
- alpha: v(t, "alpha", 0),
705
+ alpha: S(t, "alpha", 0),
703
706
  x: s,
704
707
  // 初期x値
705
708
  y: i,
@@ -711,33 +714,34 @@ $1
711
714
  // {x:'=250,500'} +250から+500までの間でランダムな値を現在のX位置に加算
712
715
  nx: parseFloat(s.at(0) === "=" ? s.slice(1) : s),
713
716
  ny: parseFloat(i.at(0) === "=" ? i.slice(1) : i),
714
- scale_x: v(t, "scale_x", 1),
715
- scale_y: v(t, "scale_y", 1),
716
- rotate: v(t, "rotate", 0),
717
+ scale_x: S(t, "scale_x", 1),
718
+ scale_y: S(t, "scale_y", 1),
719
+ rotate: S(t, "rotate", 0),
717
720
  join: F(t, "join", !1),
718
721
  // 文字を順番に出すか(true)同時か(false)
719
722
  ease: t.ease ?? "ease-out"
720
723
  };
721
724
  }
722
- static #j = new T();
723
- static #W = new I();
725
+ static #O = new P();
726
+ static #H = new I();
724
727
  dispBreak(t) {
725
728
  c.delBreak();
726
- const e = c.#j;
727
- e.visible = !1, this.addChild(e), c.#W.destroy(), c.#W = new I(t.pic, e, (s) => {
728
- e.parent ? (s.x = v(t, "x", 0), s.y = v(t, "y", 0), s.width = v(t, "width", this.#t.fontsize), s.height = v(t, "height", this.#t.fontsize)) : e.removeChild(s);
729
+ const e = c.#O;
730
+ e.visible = !1, this.addChild(e), c.#H.destroy(), c.#H = new I(t.pic, e, (s) => {
731
+ e.parent ? (s.x = S(t, "x", 0), s.y = S(t, "y", 0), s.width = S(t, "width", this.#t.fontsize), s.height = S(t, "height", this.#t.fontsize)) : e.removeChild(s);
729
732
  });
730
733
  }
731
734
  static delBreak() {
732
- const t = c.#j;
733
- t.parent?.removeChild(t), c.#W.destroy();
735
+ const t = c.#O;
736
+ t.parent?.removeChild(t), c.#H.destroy();
734
737
  }
735
738
  #C = "Quadratic.Out";
736
- #E = "Quadratic.Out";
737
- #H() {
738
- this.#d.clear(), this.#F = [], this.#m = 0, this.#s = [], this.skipChIn();
739
- const t = this.#e.cloneNode(!0);
740
- t.textContent = "";
739
+ #R = "Quadratic.Out";
740
+ #N = new AbortController();
741
+ #z() {
742
+ this.#p.clear(), this.#v = [], this.#y = 0, this.#s = [], this.#N.abort(), this.#N = new AbortController(), this.skipChIn();
743
+ const t = document.createElement("span");
744
+ t.style.cssText = this.#e.style.cssText, t.classList.value = this.#e.classList.value;
741
745
  const e = this.#e, s = Array.from(e.getElementsByClassName("sn_ch"));
742
746
  e.parentElement.insertBefore(t, e);
743
747
  let i = 0;
@@ -749,7 +753,7 @@ $1
749
753
  // 縦中横
750
754
  );
751
755
  if (!l.ch_out_style) return;
752
- const h = c.#v[l.ch_out_style];
756
+ const h = c.#E[l.ch_out_style];
753
757
  if (h) {
754
758
  if (h.wait === 0) {
755
759
  n.style.display = "none";
@@ -761,17 +765,28 @@ $1
761
765
  const a = () => {
762
766
  e.parentElement.removeChild(e);
763
767
  for (const n of this.#h.removeChildren())
764
- n instanceof T && c.#r.unButton(n), n.destroy();
768
+ n instanceof P && c.#r.unButton(n), n.destroy();
765
769
  };
766
- i === 0 ? (this.#e.textContent = "", a()) : e.lastElementChild?.addEventListener("animationend", a, { once: !0 }), this.#e = t;
770
+ if (i === 0)
771
+ this.#e.textContent = "", this.#e = document.createElement("span"), a();
772
+ else {
773
+ const n = e.lastElementChild;
774
+ if (n) {
775
+ const l = () => {
776
+ n.removeEventListener("animationend", l), a();
777
+ };
778
+ n.addEventListener("animationend", l, { once: !0, signal: this.#N.signal });
779
+ } else a();
780
+ }
781
+ this.#e = t;
767
782
  }
768
783
  reNew() {
769
- this.#H();
770
- const t = new c(this.ctn, () => this.canFocus(), this.sys);
771
- return t.#t = this.#t, t.#e.style.cssText = this.#e.style.cssText, t.#o = this.#o, t.name = this.name, t.#g(), t.#M = this.#M, t.#C = this.#C, t.#E = this.#E, this.#l.reNew(t.#l), this.destroy(), t;
784
+ this.#z();
785
+ const t = new c(this.ctn, this.canFocus, this.sys);
786
+ return t.#t = this.#t, t.#e.style.cssText = this.#e.style.cssText, t.#o = this.#o, t.name = this.name, t.#_(), t.#F = this.#F, t.#C = this.#C, t.#R = this.#R, this.#l.reNew(t.#l), this.destroy(), t;
772
787
  }
773
788
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
774
- #M = void 0;
789
+ #F = void 0;
775
790
  // 文字にかけるフィルター
776
791
  record() {
777
792
  return {
@@ -779,14 +794,14 @@ $1
779
794
  cssText: this.#e.style.cssText,
780
795
  left: this.#o,
781
796
  // idc_hArg : this.#idc.gethArg(),
782
- ch_filter: this.#M,
797
+ ch_filter: this.#F,
783
798
  fi_easing: this.#C,
784
- fo_easing: this.#E,
799
+ fo_easing: this.#R,
785
800
  hyph: this.#l.record()
786
801
  };
787
802
  }
788
803
  playback(t) {
789
- this.#t = t.infTL, this.position.set(this.#t.pad_left, this.#t.pad_top), this.#e.style.cssText = t.cssText, this.#o = t.left, this.#g(), this.#M = t.ch_filter, this.#C = t.fi_easing, this.#E = t.fo_easing, this.#l.playback(t.hyph);
804
+ this.#t = t.infTL, this.position.set(this.#t.pad_left, this.#t.pad_top), this.#e.style.cssText = t.cssText, this.#o = t.left, this.#_(), this.#F = t.ch_filter, this.#C = t.fi_easing, this.#R = t.fo_easing, this.#l.playback(t.hyph);
790
805
  }
791
806
  get cssText() {
792
807
  return this.#e.style.cssText;
@@ -794,19 +809,19 @@ $1
794
809
  set cssText(t) {
795
810
  this.#e.style.cssText = t;
796
811
  }
797
- #f = void 0;
812
+ #d = void 0;
798
813
  snapshot(t, e) {
799
- yt((s) => {
800
- this.#f = G.from(s), this.#p && (this.#f.x += j.stageW - (this.#o + this.#t.$width)), this.#f.y -= this.#b, this.#f.texture.frame = new X(
814
+ mt((s) => {
815
+ this.#d = G.from(s), this.#f && (this.#d.x += j.stageW - (this.#o + this.#t.$width)), this.#d.y -= this.#b, this.#d.texture.frame = new X(
801
816
  0,
802
817
  0,
803
- Math.min(this.#f.width, this.#t.$width - this.#o),
804
- Math.min(this.#f.height, this.#t.$height)
805
- ), this.#h.addChild(this.#f), t.render(this.#f, { clear: !1 }), e();
818
+ Math.min(this.#d.width, this.#t.$width - this.#o),
819
+ Math.min(this.#d.height, this.#t.$height)
820
+ ), this.#h.addChild(this.#d), t.render(this.#d, { clear: !1 }), e();
806
821
  }, this.#e, this.#t, this.#i, this.#b, !1);
807
822
  }
808
823
  snapshot_end() {
809
- this.#f && (this.#h.removeChild(this.#f), this.#f = void 0);
824
+ this.#d && (this.#h.removeChild(this.#d), this.#d = void 0);
810
825
  }
811
826
  makeDesignCast(t) {
812
827
  }
@@ -822,7 +837,8 @@ $1
822
837
  return `"txt":"${this.#e.textContent.replaceAll(/(["\\])/g, "\\$1")}", "style":{${t.join(",")}}`;
823
838
  }
824
839
  destroy() {
825
- c.delBreak(), this.#e.parentElement.removeChild(this.#e), this.removeChild(this.#h), this.removeChild(this.#d), super.destroy();
840
+ c.delBreak(), this.#e.parentElement.removeChild(this.#e), this.#e = document.createElement("span"), this.removeChild(this.#h), this.removeChild(this.#p), this.#p.clear(), this.#g = () => {
841
+ }, this.#s = [], this.#v = [], this.#y = 0, this.#P = [], this.#N.abort(), this.#F = void 0, super.destroy();
826
842
  }
827
843
  }
828
844
  class k extends tt {
@@ -831,7 +847,7 @@ class k extends tt {
831
847
  static #r;
832
848
  static #a;
833
849
  static init(t, e, s, i, a, n) {
834
- this.#c = t, c.init(t, n), this.#n = s, this.#a = i, this.#r = a, s.setDoRecProc((l) => this.chgDoRec(l)), e.autowc = (l) => this.#u(l), e.autowc({ enabled: !1, text: "", time: 0 }), e.ch_in_style = (l) => this.#e(l), e.ch_out_style = (l) => this.#h(l), c.initChStyle(), rt(), V(
850
+ this.#c = t, c.init(t, n), this.#n = s, this.#a = i, this.#r = a, s.setDoRecProc((l) => this.chgDoRec(l)), e.autowc = (l) => this.#u(l), e.autowc({ enabled: !1, text: "", time: 0 }), e.ch_in_style = (l) => this.#e(l), e.ch_out_style = (l) => this.#h(l), c.initChStyle(), ot(), V(
835
851
  t.matchPath(".+", et.FONT).flatMap((l) => Object.values(l).map((h) => `
836
852
  @font-face {
837
853
  font-family: '${String(h)}';
@@ -876,7 +892,7 @@ class k extends tt {
876
892
  }
877
893
  // 文字出現演出
878
894
  static #e(t) {
879
- const { x: e, y: s, nx: i, ny: a, alpha: n, wait: l, ease: h, rotate: r, scale_x: b, scale_y: _ } = c.ch_in_style(t), w = e.startsWith("=") ? `${String(i * 100)}%` : `${String(i)}px`, E = s.startsWith("=") ? `${String(a * 100)}%` : `${String(a)}px`, { name: x = "" } = t;
895
+ const { x: e, y: s, nx: i, ny: a, alpha: n, wait: l, ease: h, rotate: r, scale_x: b, scale_y: y } = c.ch_in_style(t), w = e.startsWith("=") ? `${String(i * 100)}%` : `${String(i)}px`, C = s.startsWith("=") ? `${String(a * 100)}%` : `${String(a)}px`, { name: x = "" } = t;
880
896
  return V(`
881
897
  .sn_ch_in_${x} {
882
898
  position: relative;
@@ -889,14 +905,14 @@ class k extends tt {
889
905
  animation: sn_ch_in_${x} ${String(l)}ms ${h} 0s both;
890
906
  }
891
907
  @keyframes sn_ch_in_${x} {
892
- from {transform: rotate(${String(r)}deg) scale(${String(b)}, ${String(_)}) translate(${w}, ${E})}
908
+ from {transform: rotate(${String(r)}deg) scale(${String(b)}, ${String(y)}) translate(${w}, ${C})}
893
909
  to {opacity: 1; transform: none;}
894
910
  }
895
911
  `), !1;
896
912
  }
897
913
  // 文字消去演出
898
914
  static #h(t) {
899
- const { x: e, y: s, nx: i, ny: a, alpha: n, wait: l, ease: h, rotate: r, scale_x: b, scale_y: _ } = c.ch_out_style(t), w = e.startsWith("=") ? `${String(i * 100)}%` : `${String(i)}px`, E = s.startsWith("=") ? `${String(a * 100)}%` : `${String(a)}px`, { name: x = "" } = t;
915
+ const { x: e, y: s, nx: i, ny: a, alpha: n, wait: l, ease: h, rotate: r, scale_x: b, scale_y: y } = c.ch_out_style(t), w = e.startsWith("=") ? `${String(i * 100)}%` : `${String(i)}px`, C = s.startsWith("=") ? `${String(a * 100)}%` : `${String(a)}px`, { name: x = "" } = t;
900
916
  return V(`
901
917
  .go_ch_out_${x} {
902
918
  position: relative;
@@ -906,16 +922,16 @@ class k extends tt {
906
922
  @keyframes go_ch_out_${x} {
907
923
  to {
908
924
  opacity: ${String(n)};
909
- transform: rotate(${String(r)}deg) scale(${String(b)}, ${String(_)}) translate(${w}, ${E});
925
+ transform: rotate(${String(r)}deg) scale(${String(b)}, ${String(y)}) translate(${w}, ${C});
910
926
  }
911
927
  `), !1;
912
928
  }
913
- static #d = 10;
929
+ static #p = 10;
914
930
  static set msecChWait(t) {
915
- k.#d = t;
931
+ k.#p = t;
916
932
  }
917
933
  static get msecChWait() {
918
- return k.#d;
934
+ return k.#p;
919
935
  }
920
936
  static #k;
921
937
  static #l;
@@ -923,33 +939,33 @@ class k extends tt {
923
939
  this.#k = t, this.#l = e, c.setEvtMng(t, s);
924
940
  }
925
941
  // 文字ごとのウェイト
926
- static #y = !1;
942
+ static #g = !1;
927
943
  static #t = {};
928
944
  static #u(t) {
929
- this.#y = F(t, "enabled", this.#y), this.#n.setVal_Nochk("save", "const.sn.autowc.enabled", this.#y);
945
+ this.#g = F(t, "enabled", this.#g), this.#n.setVal_Nochk("save", "const.sn.autowc.enabled", this.#g);
930
946
  const { text: e } = t;
931
947
  if ("text" in t != "time" in t) throw "[autowc] textとtimeは同時指定必須です";
932
948
  if (this.#n.setVal_Nochk("save", "const.sn.autowc.text", e), !e)
933
949
  return this.#n.setVal_Nochk("save", "const.sn.autowc.time", ""), !1;
934
950
  const s = e.length;
935
- if (this.#y && s === 0) throw '[autowc] enabled === false かつ text === "" は許されません';
951
+ if (this.#g && s === 0) throw '[autowc] enabled === false かつ text === "" は許されません';
936
952
  const i = String(t.time).split(",");
937
953
  if (i.length !== s) throw "[autowc] text文字数とtimeに記述された待ち時間(コンマ区切り)は同数にして下さい";
938
954
  this.#t = {};
939
- for (let a = 0; a < s; ++a) this.#t[e[a]] = O(i[a]);
955
+ for (let a = 0; a < s; ++a) this.#t[e[a]] = M(i[a]);
940
956
  return this.#n.setVal_Nochk("save", "const.sn.autowc.time", t.time), !1;
941
957
  }
942
958
  // バック
943
- #g = 0;
959
+ #_ = 0;
944
960
  #o = 0;
945
- #p = !1;
961
+ #f = !1;
946
962
  #i = void 0;
947
963
  #b = "";
948
964
  // 背景画像無し(=単色塗り)
949
965
  // 文字表示
950
966
  #s = new c(this.ctn, () => this.canFocus(), k.#l);
951
- #F = new st();
952
- #m = document.createElement("span");
967
+ #v = new st();
968
+ #y = document.createElement("span");
953
969
  // cssチェック・保存用
954
970
  static #q = {
955
971
  "text-align": 0,
@@ -961,15 +977,15 @@ class k extends tt {
961
977
  "padding-top": 0,
962
978
  "padding-bottom": 0
963
979
  };
964
- #_ = new T();
980
+ #m = new P();
965
981
  constructor() {
966
- super(), this.ctn.addChild(this.#s), this.#F.init(this.#Y), this.ctn.addChild(this.#_), this.#_.name = "cntBtn", this.lay({ style: `width: ${String(j.stageW)}px; height: ${String(j.stageH)}px; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif; color: white; font-size: 24px; line-height: 1.5; padding: ${String(16)}px;`, in_style: "default", out_style: "default", back_clear: "true" });
982
+ super(), this.ctn.addChild(this.#s), this.#v.init(this.#Y), this.ctn.addChild(this.#m), this.#m.name = "cntBtn", this.lay({ style: `width: ${String(j.stageW)}px; height: ${String(j.stageH)}px; font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック Medium', meiryo, sans-serif; color: white; font-size: 24px; line-height: 1.5; padding: ${String(16)}px;`, in_style: "default", out_style: "default", back_clear: "true" });
967
983
  }
968
984
  destroy() {
969
985
  this.#i && (this.ctn.removeChild(this.#i).destroy(), this.#i = void 0), k.#a.pagebreak(), this.#s.destroy();
970
986
  }
971
987
  static destroy() {
972
- this.#y = !1, this.#t = {}, this.#f = (t) => t;
988
+ this.#g = !1, this.#t = {}, this.#F = (t) => t;
973
989
  }
974
990
  set name(t) {
975
991
  this.name_ = t, this.#s.name = t;
@@ -982,7 +998,7 @@ class k extends tt {
982
998
  this.#s.cvsResize();
983
999
  }
984
1000
  cvsResizeChildren() {
985
- for (const t of this.#_.children) t.cvsResize();
1001
+ for (const t of this.#m.children) t.cvsResize();
986
1002
  }
987
1003
  procSetX(t) {
988
1004
  this.#s.lay({ x: t });
@@ -991,11 +1007,11 @@ class k extends tt {
991
1007
  this.#s.lay({ y: t });
992
1008
  }
993
1009
  lay(t) {
994
- if (super.lay(t), tt.setXY(this.ctn, t, this.ctn), t[":id_tag"] = this.name_.slice(0, -7), st.setting(t), this.#W(t), this.#s.lay(t), "r_align" in t && (this.#x = t.r_align ?? ""), this.#z = j.isSafari ? this.#s.tategaki ? (i, a) => `text-align: start; height: ${String(a)}em; padding-top: ${i}; padding-bottom: ${i};` : (i, a) => `text-align: start; width: ${String(a)}em; padding-left: ${i}; padding-right: ${i};` : this.#s.tategaki ? (i) => `text-align: justify; text-align-last: justify; padding-top: ${i}; padding-bottom: ${i};` : (i) => `text-align: justify; text-align-last: justify; padding-left: ${i}; padding-right: ${i};`, j.isFirefox && (this.#U = this.#Z), "r_style" in t)
1010
+ if (super.lay(t), tt.setXY(this.ctn, t, this.ctn), t[":id_tag"] = this.name_.slice(0, -7), st.setting(t), this.#H(t), this.#s.lay(t), "r_align" in t && (this.#x = t.r_align ?? ""), this.#d = j.isSafari ? this.#s.tategaki ? (i, a) => `text-align: start; height: ${String(a)}em; padding-top: ${i}; padding-bottom: ${i};` : (i, a) => `text-align: start; width: ${String(a)}em; padding-left: ${i}; padding-right: ${i};` : this.#s.tategaki ? (i) => `text-align: justify; text-align-last: justify; padding-top: ${i}; padding-bottom: ${i};` : (i) => `text-align: justify; text-align-last: justify; padding-left: ${i}; padding-right: ${i};`, j.isFirefox && (this.#U = this.#Z), "r_style" in t)
995
1011
  if (t.r_style) {
996
1012
  const i = document.createElement("span");
997
1013
  i.style.cssText = t.r_style;
998
- const a = i.style.length, n = this.#m.style;
1014
+ const a = i.style.length, n = this.#y.style;
999
1015
  for (let l = 0; l < a; ++l) {
1000
1016
  const h = i.style[l];
1001
1017
  if (h in k.#q) {
@@ -1005,10 +1021,10 @@ class k extends tt {
1005
1021
  const r = i.style[h];
1006
1022
  r && (n[h] = r);
1007
1023
  }
1008
- } else this.#m.style.cssText = "";
1009
- if ("alpha" in t) for (const i of this.#_.children) i.alpha = this.ctn.alpha;
1024
+ } else this.#y.style.cssText = "";
1025
+ if ("alpha" in t) for (const i of this.#m.children) i.alpha = this.ctn.alpha;
1010
1026
  this.#S(t), this.#$(t);
1011
- const e = W.procID + `TxtLayer lay name:${this.name_}`, s = this.#j(t, (i) => {
1027
+ const e = W.procID + `TxtLayer lay name:${this.name_}`, s = this.#O(t, (i) => {
1012
1028
  i && W.endProc(e);
1013
1029
  });
1014
1030
  return s && W.beginProc(e), s;
@@ -1018,10 +1034,10 @@ class k extends tt {
1018
1034
  if (!e) return;
1019
1035
  const s = c.getChInStyle(e);
1020
1036
  if (!s) throw `存在しないin_style【${e}】です`;
1021
- this.#P = e, this.#O = s.join;
1037
+ this.#B = e, this.#P = s.join;
1022
1038
  }
1023
- #P = "";
1024
- #O = !0;
1039
+ #B = "";
1040
+ #P = !0;
1025
1041
  get width() {
1026
1042
  return this.#s.getWidth;
1027
1043
  }
@@ -1032,48 +1048,48 @@ class k extends tt {
1032
1048
  const { out_style: e } = t;
1033
1049
  if (!e) return;
1034
1050
  if (!c.getChOutStyle(e)) throw `存在しないout_style【${e}】です`;
1035
- this.#I = e;
1051
+ this.#W = e;
1036
1052
  }
1037
- #I = "";
1038
- #v = new I();
1039
- #j(t, e) {
1053
+ #W = "";
1054
+ #E = new I();
1055
+ #O(t, e) {
1040
1056
  if ("back_clear" in t)
1041
- return F(t, "back_clear", !1) && (this.#g = 0, this.#o = 0, this.#p = !1, this.#b = ""), e(!1), !1;
1042
- this.#o = v(t, "b_alpha", this.#o), this.#p = F(t, "b_alpha_isfixed", this.#p);
1043
- const s = (this.#p ? 1 : Number(k.#n.getVal("sys:TextLayer.Back.Alpha"))) * this.#o;
1057
+ return F(t, "back_clear", !1) && (this.#_ = 0, this.#o = 0, this.#f = !1, this.#b = ""), e(!1), !1;
1058
+ this.#o = S(t, "b_alpha", this.#o), this.#f = F(t, "b_alpha_isfixed", this.#f);
1059
+ const s = (this.#f ? 1 : Number(k.#n.getVal("sys:TextLayer.Back.Alpha"))) * this.#o;
1044
1060
  if (t.b_pic) {
1045
1061
  if (this.#b !== t.b_pic)
1046
- return this.#b = t.b_pic, this.#i && (this.ctn.removeChild(this.#i), this.#i.destroy()), this.#v = new I(this.#b, this.ctn, (i) => {
1062
+ return this.#b = t.b_pic, this.#i && (this.ctn.removeChild(this.#i), this.#i.destroy()), this.#E = new I(this.#b, this.ctn, (i) => {
1047
1063
  this.#i = i, i.name = "back(pic)", i.visible = s > 0, i.alpha = s, this.#s.setMySize(i.width, i.height), this.ctn.setChildIndex(i, 0), e(!0);
1048
- }), this.#v.ret;
1049
- } else "b_color" in t && (this.#g = ot(t, "b_color", 0), this.#i && (this.ctn.removeChild(this.#i), this.#i.destroy()), this.#b = "", this.ctn.addChildAt(
1050
- (this.#i = new B()).beginFill(this.#g, s).lineStyle(void 0).drawRect(0, 0, this.#s.getWidth, this.#s.getHeight).endFill(),
1064
+ }), this.#E.ret;
1065
+ } else "b_color" in t && (this.#_ = ct(t, "b_color", 0), this.#i && (this.ctn.removeChild(this.#i), this.#i.destroy()), this.#b = "", this.ctn.addChildAt(
1066
+ (this.#i = new B()).beginFill(this.#_, s).lineStyle(void 0).drawRect(0, 0, this.#s.getWidth, this.#s.getHeight).endFill(),
1051
1067
  0
1052
1068
  ), this.#i.name = "back(color)");
1053
1069
  return this.#i && (this.#i.visible = s > 0, this.#i.alpha = s), e(!1), !1;
1054
1070
  }
1055
1071
  chgBackAlpha(t) {
1056
- const e = this.#p ? this.#o : t * this.#o;
1072
+ const e = this.#f ? this.#o : t * this.#o;
1057
1073
  this.#i instanceof B && (this.#i && (this.ctn.removeChild(this.#i), this.#i.destroy()), this.ctn.addChildAt(
1058
- (this.#i = new B()).beginFill(this.#g, e).lineStyle(void 0).drawRect(0, 0, this.#s.getWidth, this.#s.getHeight).endFill(),
1074
+ (this.#i = new B()).beginFill(this.#_, e).lineStyle(void 0).drawRect(0, 0, this.#s.getWidth, this.#s.getHeight).endFill(),
1059
1075
  0
1060
1076
  ), this.#i.name = "back(color)"), this.#i && (this.#i.visible = e > 0, this.#i.alpha = e);
1061
1077
  }
1062
- #W(t) {
1063
- "noffs" in t && (this.#H = t.noffs ?? "", this.#M = new RegExp(`[ ${this.#H}]`)), "ffs" in t && (this.#C ??= "", this.#E = this.#C === "" ? () => "" : (e) => this.#M.test(e) ? "" : ` font-feature-settings: ${this.#C};`);
1078
+ #H(t) {
1079
+ "noffs" in t && (this.#N = t.noffs ?? "", this.#z = new RegExp(`[ ${this.#N}]`)), "ffs" in t && (this.#C ??= "", this.#R = this.#C === "" ? () => "" : (e) => this.#z.test(e) ? "" : ` font-feature-settings: ${this.#C};`);
1064
1080
  }
1065
1081
  #C = "";
1066
- #E = (t) => "";
1067
- #H = "";
1082
+ #R = (t) => "";
1083
+ #N = "";
1068
1084
  // eslint-disable-next-line no-irregular-whitespace
1069
- #M = /[ ]/;
1085
+ #z = /[ ]/;
1070
1086
  // Safariが全体に「font-feature-settings」した後、特定文字の「font-feature-settings: initial;」を受け付けてくれないのでわざわざ一つずつ指定
1071
1087
  static chgDoRec(t) {
1072
- this.#f = t ? (e) => e : (e) => `<span class='offrec'>${e}</span>`;
1088
+ this.#F = t ? (e) => e : (e) => `<span class='offrec'>${e}</span>`;
1073
1089
  }
1074
- static #f = (t) => t;
1090
+ static #F = (t) => t;
1075
1091
  isCur = !1;
1076
- #z = () => "";
1092
+ #d = () => "";
1077
1093
  #U = (t, e, s, i = "") => {
1078
1094
  if (!s) return ` style='${i}'`;
1079
1095
  const a = t.length * 2;
@@ -1081,16 +1097,16 @@ class k extends tt {
1081
1097
  let n = "";
1082
1098
  switch (s) {
1083
1099
  case "justify":
1084
- n = this.#z("0", a);
1100
+ n = this.#d("0", a);
1085
1101
  break;
1086
1102
  case "121":
1087
- n = this.#z(`calc(${String((a - e.length) / (e.length * 2))}em)`, a);
1103
+ n = this.#d(`calc(${String((a - e.length) / (e.length * 2))}em)`, a);
1088
1104
  break;
1089
1105
  case "even":
1090
- n = this.#z(`calc(${String((a - e.length) / (e.length + 1))}em)`, a);
1106
+ n = this.#d(`calc(${String((a - e.length) / (e.length + 1))}em)`, a);
1091
1107
  break;
1092
1108
  case "1ruby":
1093
- n = this.#z("1em", a);
1109
+ n = this.#d("1em", a);
1094
1110
  break;
1095
1111
  default:
1096
1112
  n = `text-align: ${s};`;
@@ -1134,7 +1150,7 @@ class k extends tt {
1134
1150
  return ` style='${n} ${i}'`;
1135
1151
  }
1136
1152
  tagCh(t) {
1137
- this.#F.putTxt(t);
1153
+ this.#v.putTxt(t);
1138
1154
  }
1139
1155
  #w = !1;
1140
1156
  get needGoTxt() {
@@ -1150,10 +1166,10 @@ class k extends tt {
1150
1166
  case 1:
1151
1167
  if (this.#w = !0, t === `
1152
1168
  `) {
1153
- this.#T ? (this.#T = !1, a = "<ruby>&emsp;<rt>&emsp;</rt></ruby><br/>") : a = "<br/>";
1169
+ this.#M ? (this.#M = !1, a = "<ruby>&emsp;<rt>&emsp;</rt></ruby><br/>") : a = "<br/>";
1154
1170
  break;
1155
1171
  }
1156
- this.#T && (this.#T = !1, s === "" && (s = "&emsp;")), a = this.#X(t, s, this.#x);
1172
+ this.#M && (this.#M = !1, s === "" && (s = "&emsp;")), a = this.#X(t, s, this.#x);
1157
1173
  break;
1158
1174
  default:
1159
1175
  switch (n) {
@@ -1173,54 +1189,54 @@ class k extends tt {
1173
1189
  case "even":
1174
1190
  //(均等アキ)ルビの前後、ルビ間も均等にあける
1175
1191
  case "1ruby":
1176
- this.#T = !1, this.#w = !0, a = this.#X(t, h, n);
1192
+ this.#M = !1, this.#w = !0, a = this.#X(t, h, n);
1177
1193
  break;
1178
1194
  case "gotxt":
1179
1195
  this.#V(), this.#w ? (this.isCur && k.#a.recText(
1180
- this.#R.join("").replace(/^<ruby>&emsp;<rt>&emsp;<\/rt><\/ruby>(<br\/>)+/, "").replaceAll(/style='(anim\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;'")
1181
- ), this.#s.goTxt(this.#R, this.#B === 0), this.#w = !1, this.#B = 0) : this.isCur && this.#s.noticeCompTxt();
1196
+ this.#T.join("").replace(/^<ruby>&emsp;<rt>&emsp;<\/rt><\/ruby>(<br\/>)+/, "").replaceAll(/style='(anim\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;'")
1197
+ ), this.#s.goTxt(this.#T, this.#I === 0), this.#w = !1, this.#I = 0) : this.isCur && this.#s.noticeCompTxt();
1182
1198
  return;
1183
1199
  // breakではない
1184
1200
  case "add":
1185
1201
  {
1186
- const r = JSON.parse(h), { style: b = "", wait: _ = null } = r, { cl: w, sty: E } = this.#D(!0, _ ? O(_) : null);
1187
- this.#R.push(`<span${w} style='${E} display: inline; ${b}'>`), delete r.style, this.#K(r);
1202
+ const r = JSON.parse(h), { style: b = "", wait: y = null } = r, { cl: w, sty: C } = this.#D(!0, y ? M(y) : null);
1203
+ this.#T.push(`<span${w} style='${C} display: inline; ${b}'>`), delete r.style, this.#K(r);
1188
1204
  }
1189
1205
  return;
1190
1206
  // breakではない
1191
1207
  case "add_close":
1192
- this.#R.push("</span>"), this.#V();
1208
+ this.#T.push("</span>"), this.#V();
1193
1209
  return;
1194
1210
  // breakではない
1195
1211
  case "grp":
1196
1212
  this.#w = !0;
1197
1213
  {
1198
1214
  const r = JSON.parse(h);
1199
- if (r.id ??= String(this.#R.length), r.id === "break") {
1215
+ if (r.id ??= String(this.#T.length), r.id === "break") {
1200
1216
  this.#s.dispBreak(r);
1201
1217
  return;
1202
1218
  }
1203
- this.#T = !1, r.delay = this.#B, r.r ??= "", r.style ??= "", r.r_style ??= "";
1204
- const { r: b, wait: _ = null, r_style: w } = r, { cl: E, sty: x, lnk: u } = this.#D(!0, _ ? O(_) : null);
1205
- a = `<span${E} style='${x} ${r.style}'><ruby><span data-cmd='grp' data-arg='${JSON.stringify(r)}'${u} style='${x} display: inline;'>&emsp;</span><rt${u}${this.#U(
1219
+ this.#M = !1, r.delay = this.#I, r.r ??= "", r.style ??= "", r.r_style ??= "";
1220
+ const { r: b, wait: y = null, r_style: w } = r, { cl: C, sty: x, lnk: N } = this.#D(!0, y ? M(y) : null);
1221
+ a = `<span${C} style='${x} ${r.style}'><ruby><span data-cmd='grp' data-arg='${JSON.stringify(r)}'${N} style='${x} display: inline;'>&emsp;</span><rt${N}${this.#U(
1206
1222
  " ",
1207
1223
  b,
1208
1224
  this.#x,
1209
- this.#m.style.cssText + (this.#N.at(-1)?.o.r_style ?? "") + w
1225
+ this.#y.style.cssText + (this.#j.at(-1)?.o.r_style ?? "") + w
1210
1226
  )}>${r.r}</rt></ruby></span>`;
1211
1227
  }
1212
1228
  break;
1213
1229
  case "tcy":
1214
- this.#T = !1, this.#w = !0;
1230
+ this.#M = !1, this.#w = !0;
1215
1231
  {
1216
- const { t: r = "", r: b = "", wait: _ = null, style: w = "", r_style: E = "" } = JSON.parse(h);
1232
+ const { t: r = "", r: b = "", wait: y = null, style: w = "", r_style: C = "" } = JSON.parse(h);
1217
1233
  k.#n.doRecLog() && (this.#G += t + (s ? `《${s}》` : ""), this.#J += r);
1218
- const x = j.isSafari ? b.replaceAll(/[A-Za-z0-9]/g, (d) => String.fromCharCode(d.charCodeAt(0) + 65248)) : b, { cl: u, sty: $, lnk: S } = this.#D(!0, _ ? O(_) : null);
1219
- a = `<span${u} style='${$}${this.#E(r)} ${w}'><ruby><span${S} style='${$} display: inline; text-combine-upright: all;'>${r}</span><rt${S}${this.#U(
1234
+ const x = j.isSafari ? b.replaceAll(/[A-Za-z0-9]/g, (o) => String.fromCharCode(o.charCodeAt(0) + 65248)) : b, { cl: N, sty: g, lnk: $ } = this.#D(!0, y ? M(y) : null);
1235
+ a = `<span${N} style='${g}${this.#R(r)} ${w}'><ruby><span${$} style='${g} display: inline; text-combine-upright: all;'>${r}</span><rt${$}${this.#U(
1220
1236
  r,
1221
1237
  x,
1222
1238
  this.#x,
1223
- this.#m.style.cssText + (this.#N.at(-1)?.o.r_style ?? "") + E
1239
+ this.#y.style.cssText + (this.#j.at(-1)?.o.r_style ?? "") + C
1224
1240
  )}>${x}</rt></ruby></span>`;
1225
1241
  }
1226
1242
  break;
@@ -1237,13 +1253,13 @@ class k extends tt {
1237
1253
  {
1238
1254
  const r = JSON.parse(h);
1239
1255
  r[":link"] = " data-lnk='@'";
1240
- const { cl: b, sty: _, curpos: w } = this.#D(!1, r.wait ? O(r.wait) : null);
1241
- this.#R.push(`<span${b} style='${_} display: inline; ${r.style ?? ""}' ${w} data-arg='${h}'>`), delete r.style, this.#Q(r);
1256
+ const { cl: b, sty: y, curpos: w } = this.#D(!1, r.wait ? M(r.wait) : null);
1257
+ this.#T.push(`<span${b} style='${y} display: inline; ${r.style ?? ""}' ${w} data-arg='${h}'>`), delete r.style, this.#Q(r);
1242
1258
  }
1243
1259
  return;
1244
1260
  // breakではない
1245
1261
  case "endlink":
1246
- this.#w = !0, this.#R.push("</span>"), this.#V();
1262
+ this.#w = !0, this.#T.push("</span>"), this.#V();
1247
1263
  return;
1248
1264
  // breakではない
1249
1265
  default:
@@ -1251,52 +1267,52 @@ class k extends tt {
1251
1267
  }
1252
1268
  break;
1253
1269
  }
1254
- this.#R.push(k.#f(a));
1270
+ this.#T.push(k.#F(a));
1255
1271
  };
1256
1272
  #X(t, e, s) {
1257
1273
  const i = t === " " ? "&nbsp;" : t === " " ? "&emsp;" : t;
1258
1274
  k.#n.doRecLog() && (this.#G += i + (e ? `《${e}》` : ""), t !== " " && (this.#J += t));
1259
1275
  const { cl: a, sty: n, lnk: l } = this.#D(!0, null, t);
1260
- return e ? `<span${a} style='${n} ${this.#E(t)}'><ruby>${// 文字個別に出現させるため以下にも ${cl} が必要
1276
+ return e ? `<span${a} style='${n} ${this.#R(t)}'><ruby>${// 文字個別に出現させるため以下にも ${cl} が必要
1261
1277
  Array.from(t).map((h, r) => `<span${a}${l} style='${r > 0 ? this.#D(!0, null, t).sty : n} display: inline;'>${h === " " ? "&nbsp;" : h === " " ? "&emsp;" : h}</span>`).join("")}<rt${l}${this.#U(
1262
1278
  t,
1263
1279
  e,
1264
1280
  s,
1265
- this.#m.style.cssText + (this.#N.at(-1)?.o.r_style ?? "")
1266
- )}>${e}</rt></ruby></span>` : `<span${a} style='${n} ${this.#E(t)}'${l}>${i}</span>`;
1281
+ this.#y.style.cssText + (this.#j.at(-1)?.o.r_style ?? "")
1282
+ )}>${e}</rt></ruby></span>` : `<span${a} style='${n} ${this.#R(t)}'${l}>${i}</span>`;
1267
1283
  }
1268
1284
  #D(t, e, s = `
1269
1285
  `) {
1270
- const i = this.#O ? e ?? this.#N.at(0)?.o.wait ?? (k.#y ? k.#t[s.at(0) ?? ""] ?? 0 : k.msecChWait) : 0;
1271
- k.#k.isSkipping ? this.#B = 0 : t && this.#O && (this.#B += O(i));
1272
- const a = `data-add='{"ch_in_style":"${this.#P}", "ch_out_style":"${this.#I}"}'`;
1286
+ const i = this.#P ? e ?? this.#j.at(0)?.o.wait ?? (k.#g ? k.#t[s.at(0) ?? ""] ?? 0 : k.msecChWait) : 0;
1287
+ k.#k.isSkipping ? this.#I = 0 : t && this.#P && (this.#I += M(i));
1288
+ const a = `data-add='{"ch_in_style":"${this.#B}", "ch_out_style":"${this.#W}"}'`;
1273
1289
  return {
1274
- cl: ` class='sn_ch sn_ch_yet sn_ch_in_${this.#P}'`,
1290
+ cl: ` class='sn_ch sn_ch_yet sn_ch_in_${this.#B}'`,
1275
1291
  // TxtStage.goTxt()はこれ単位で文字出現させる
1276
- sty: `animation-delay: ${String(this.#B)}ms;${this.#N.at(-1)?.o.style ?? ""}`,
1292
+ sty: `animation-delay: ${String(this.#I)}ms;${this.#j.at(-1)?.o.style ?? ""}`,
1277
1293
  // TxtStage.goTxt()はこれ単位で文字出現させる
1278
- lnk: (this.#N.at(0)?.o[":link"] ?? "") + " " + a,
1294
+ lnk: (this.#j.at(0)?.o[":link"] ?? "") + " " + a,
1279
1295
  curpos: a
1280
1296
  };
1281
1297
  }
1282
- #B = 0;
1283
- #T = !0;
1284
- #R = [];
1285
- #N = [];
1298
+ #I = 0;
1299
+ #M = !0;
1300
+ #T = [];
1301
+ #j = [];
1286
1302
  #K(t) {
1287
- this.#N.push({
1303
+ this.#j.push({
1288
1304
  o: t,
1289
1305
  r_align: this.#x,
1290
- ch_in_style: this.#P,
1291
- ch_out_style: this.#I
1306
+ ch_in_style: this.#B,
1307
+ ch_out_style: this.#W
1292
1308
  }), t.r_align && (this.#x = t.r_align), this.#S(t), this.#$(t);
1293
1309
  }
1294
1310
  #V() {
1295
- const t = this.#N.pop();
1311
+ const t = this.#j.pop();
1296
1312
  t && (this.#x = t.r_align, this.#S({ in_style: t.ch_in_style }), this.#$({ out_style: t.ch_out_style }));
1297
1313
  }
1298
1314
  #Q(t) {
1299
- const e = this.#N.at(-1);
1315
+ const e = this.#j.at(-1);
1300
1316
  if (!e) {
1301
1317
  this.#K(t);
1302
1318
  return;
@@ -1305,7 +1321,7 @@ class k extends tt {
1305
1321
  }
1306
1322
  click = () => !this.ctn.interactiveChildren || !this.ctn.visible ? !1 : this.#s.skipChIn();
1307
1323
  clearText() {
1308
- this.ctn.addChild(this.#s = this.#s.reNew()), this.#B = 0, this.#T = !0, this.#R = [], this.#G = "", this.#J = "", k.#a.pagebreak();
1324
+ this.ctn.removeChild(this.#s), this.ctn.addChild(this.#s = this.#s.reNew()), this.#I = 0, this.#M = !0, this.#T = [], this.#G = "", this.#J = "", k.#a.pagebreak();
1309
1325
  }
1310
1326
  #G = "";
1311
1327
  #J = "";
@@ -1322,38 +1338,38 @@ class k extends tt {
1322
1338
  this.ctn.interactiveChildren = t;
1323
1339
  }
1324
1340
  addButton = (t) => new Promise((e) => {
1325
- t.key = `btn=[${String(this.#_.children.length)}] ` + this.name_, t[":id_tag"] = t.key.slice(0, -7), F(t, "hint_tate", this.#s.tategaki);
1326
- const s = new pt(t, k.#k, () => e(), () => this.canFocus());
1327
- s.name = JSON.stringify(t).replaceAll('"', "'"), this.#_.addChild(s);
1341
+ t.key = `btn=[${String(this.#m.children.length)}] ` + this.name_, t[":id_tag"] = t.key.slice(0, -7), F(t, "hint_tate", this.#s.tategaki);
1342
+ const s = new ft(t, k.#k, () => e(), () => this.canFocus());
1343
+ s.name = JSON.stringify(t).replaceAll('"', "'"), this.#m.addChild(s);
1328
1344
  });
1329
1345
  canFocus() {
1330
1346
  return (this.ctn.interactiveChildren ?? !1) && this.ctn.visible && k.#r(this);
1331
1347
  }
1332
1348
  clearLay(t) {
1333
1349
  super.clearLay(t), this.clearText();
1334
- for (const e of this.#_.removeChildren()) e.destroy();
1350
+ for (const e of this.#m.removeChildren()) e.destroy();
1335
1351
  }
1336
1352
  record = () => ({
1337
1353
  ...super.record(),
1338
1354
  enabled: this.enabled,
1339
- r_cssText: this.#m.style.cssText,
1355
+ r_cssText: this.#y.style.cssText,
1340
1356
  r_align: this.#x,
1341
1357
  // バック
1342
1358
  b_do: this.#i === void 0 ? void 0 : this.#i instanceof G ? "Sprite" : "Graphics",
1343
1359
  b_pic: this.#b,
1344
- b_color: this.#g,
1360
+ b_color: this.#_,
1345
1361
  b_alpha: this.#o,
1346
- b_alpha_isfixed: this.#p,
1362
+ b_alpha_isfixed: this.#f,
1347
1363
  ffs: this.#C,
1348
1364
  txs: this.#s.record(),
1349
- strNoFFS: this.#H,
1350
- btns: this.#_.children.map((t) => t.name)
1365
+ strNoFFS: this.#N,
1366
+ btns: this.#m.children.map((t) => t.name)
1351
1367
  });
1352
1368
  playback(t, e) {
1353
- super.playback(t, e), this.enabled = t.enabled, this.#m.style.cssText = t.r_cssText, this.#x = t.r_align, this.cvsResize(), this.#W(t), this.#s.playback(t.txs), this.#o = t.b_alpha, this.#p = t.b_alpha_isfixed, e.push(
1369
+ super.playback(t, e), this.enabled = t.enabled, this.#y.style.cssText = t.r_cssText, this.#x = t.r_align, this.cvsResize(), this.#H(t), this.#s.playback(t.txs), this.#o = t.b_alpha, this.#f = t.b_alpha_isfixed, e.push(
1354
1370
  new Promise((s) => {
1355
1371
  const i = t.b_do ? t.b_do === "Sprite" ? { b_pic: t.b_pic } : { b_color: t.b_color } : { b_pic: "" };
1356
- i.b_alpha = t.b_alpha, i.b_alpha_isfixed = t.b_alpha_isfixed, this.#j(i, (a) => {
1372
+ i.b_alpha = t.b_alpha, i.b_alpha_isfixed = t.b_alpha_isfixed, this.#O(i, (a) => {
1357
1373
  a && s();
1358
1374
  }) || s();
1359
1375
  }),
@@ -1377,25 +1393,25 @@ class k extends tt {
1377
1393
  }
1378
1394
  makeDesignCastChildren(t) {
1379
1395
  if (this.ctn.visible)
1380
- for (const e of this.#_.children) e.makeDesignCast(t);
1396
+ for (const e of this.#m.children) e.makeDesignCast(t);
1381
1397
  }
1382
1398
  showDesignCast() {
1383
1399
  this.#s.showDesignCast();
1384
1400
  }
1385
1401
  showDesignCastChildren() {
1386
- for (const t of this.#_.children) t.showDesignCast();
1402
+ for (const t of this.#m.children) t.showDesignCast();
1387
1403
  }
1388
1404
  dump() {
1389
- return this.#Y("", "gotxt|"), super.dump() + `, "enabled":"${String(this.enabled)}", ${this.#s.dump()}, "b_pic":"${this.#b}", "b_color":"${String(this.#g)}", "b_alpha":${String(this.#o)}, "b_alpha_isfixed":"${String(this.#p)}", "width":${String(this.#s.getWidth)}, "height":${String(this.#s.getHeight)}, "pixi_obj":[${this.ctn.children.map((t) => `{"class":"${t instanceof G ? "Sprite" : t instanceof B ? "Graphics" : t instanceof T ? "Container" : "?"}", "name":"${t.name}", "alpha":${String(t.alpha)}, "x":${String(t.x)}, "y":${String(t.y)}, "visible":"${String(t.visible)}"}`).join(",")}], "button":[${this.#_.children.map((t) => t.children[0]?.name ?? "{}").join(",")}]`;
1405
+ return this.#Y("", "gotxt|"), super.dump() + `, "enabled":"${String(this.enabled)}", ${this.#s.dump()}, "b_pic":"${this.#b}", "b_color":"${String(this.#_)}", "b_alpha":${String(this.#o)}, "b_alpha_isfixed":"${String(this.#f)}", "width":${String(this.#s.getWidth)}, "height":${String(this.#s.getHeight)}, "pixi_obj":[${this.ctn.children.map((t) => `{"class":"${t instanceof G ? "Sprite" : t instanceof B ? "Graphics" : t instanceof P ? "Container" : "?"}", "name":"${t.name}", "alpha":${String(t.alpha)}, "x":${String(t.x)}, "y":${String(t.y)}, "visible":"${String(t.visible)}"}`).join(",")}], "button":[${this.#m.children.map((t) => t.children[0]?.name ?? "{}").join(",")}]`;
1390
1406
  }
1391
1407
  }
1392
- const vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1408
+ const Et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1393
1409
  __proto__: null,
1394
1410
  TxtLayer: k
1395
1411
  }, Symbol.toStringTag, { value: "Module" }));
1396
1412
  export {
1397
1413
  k as T,
1398
1414
  c as a,
1399
- vt as b
1415
+ Et as b
1400
1416
  };
1401
1417
  //# sourceMappingURL=TxtLayer.js.map