@famibee/skynovel 1.44.0 → 1.45.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 CHANGED
@@ -3311,7 +3311,7 @@ var ig = function(r) {
3311
3311
  * @pixi/runner is licensed under the MIT License.
3312
3312
  * http://www.opensource.org/licenses/mit-license
3313
3313
  */
3314
- var Ve = (
3314
+ var Xe = (
3315
3315
  /** @class */
3316
3316
  function() {
3317
3317
  function r(t) {
@@ -3361,21 +3361,21 @@ var Ve = (
3361
3361
  }), r;
3362
3362
  }()
3363
3363
  );
3364
- Object.defineProperties(Ve.prototype, {
3364
+ Object.defineProperties(Xe.prototype, {
3365
3365
  /**
3366
3366
  * Alias for `emit`
3367
3367
  * @memberof PIXI.Runner#
3368
3368
  * @method dispatch
3369
3369
  * @see PIXI.Runner#emit
3370
3370
  */
3371
- dispatch: { value: Ve.prototype.emit },
3371
+ dispatch: { value: Xe.prototype.emit },
3372
3372
  /**
3373
3373
  * Alias for `emit`
3374
3374
  * @memberof PIXI.Runner#
3375
3375
  * @method run
3376
3376
  * @see PIXI.Runner#emit
3377
3377
  */
3378
- run: { value: Ve.prototype.emit }
3378
+ run: { value: Xe.prototype.emit }
3379
3379
  });
3380
3380
  /*!
3381
3381
  * @pixi/ticker - v6.5.9
@@ -3725,7 +3725,7 @@ var Xo = (
3725
3725
  /** @class */
3726
3726
  function() {
3727
3727
  function r(t, e) {
3728
- t === void 0 && (t = 0), e === void 0 && (e = 0), this._width = t, this._height = e, this.destroyed = !1, this.internal = !1, this.onResize = new Ve("setRealSize"), this.onUpdate = new Ve("update"), this.onError = new Ve("onError");
3728
+ t === void 0 && (t = 0), e === void 0 && (e = 0), this._width = t, this._height = e, this.destroyed = !1, this.internal = !1, this.onResize = new Xe("setRealSize"), this.onUpdate = new Xe("update"), this.onError = new Xe("onError");
3729
3729
  }
3730
3730
  return r.prototype.bind = function(t) {
3731
3731
  this.onResize.add(t), this.onUpdate.add(t), this.onError.add(t), (this._width || this._height) && this.onResize.emit(this._width, this._height);
@@ -4344,7 +4344,7 @@ var F0 = {
4344
4344
  /** @class */
4345
4345
  function() {
4346
4346
  function r(t, e) {
4347
- this.width = Math.round(t || 100), this.height = Math.round(e || 100), this.stencil = !1, this.depth = !1, this.dirtyId = 0, this.dirtyFormat = 0, this.dirtySize = 0, this.depthTexture = null, this.colorTextures = [], this.glFramebuffers = {}, this.disposeRunner = new Ve("disposeFramebuffer"), this.multisample = le.NONE;
4347
+ this.width = Math.round(t || 100), this.height = Math.round(e || 100), this.stencil = !1, this.depth = !1, this.dirtyId = 0, this.dirtyFormat = 0, this.dirtySize = 0, this.depthTexture = null, this.colorTextures = [], this.glFramebuffers = {}, this.disposeRunner = new Xe("disposeFramebuffer"), this.multisample = le.NONE;
4348
4348
  }
4349
4349
  return Object.defineProperty(r.prototype, "colorTexture", {
4350
4350
  /**
@@ -4734,7 +4734,7 @@ var lt = (
4734
4734
  /** @class */
4735
4735
  function() {
4736
4736
  function r(t, e, i) {
4737
- e === void 0 && (e = !0), i === void 0 && (i = !1), this.data = t || new Float32Array(1), this._glBuffers = {}, this._updateID = 0, this.index = i, this.static = e, this.id = rP++, this.disposeRunner = new Ve("disposeBuffer");
4737
+ e === void 0 && (e = !0), i === void 0 && (i = !1), this.data = t || new Float32Array(1), this._glBuffers = {}, this._updateID = 0, this.index = i, this.static = e, this.id = rP++, this.disposeRunner = new Xe("disposeBuffer");
4738
4738
  }
4739
4739
  return r.prototype.update = function(t) {
4740
4740
  t instanceof Array && (t = new Float32Array(t)), this.data = t || this.data, this._updateID++;
@@ -4793,7 +4793,7 @@ var ng = { 5126: 4, 5123: 2, 5121: 1 }, oP = 0, aP = {
4793
4793
  /** @class */
4794
4794
  function() {
4795
4795
  function r(t, e) {
4796
- t === void 0 && (t = []), e === void 0 && (e = {}), this.buffers = t, this.indexBuffer = null, this.attributes = e, this.glVertexArrayObjects = {}, this.id = oP++, this.instanced = !1, this.instanceCount = 1, this.disposeRunner = new Ve("disposeGeometry"), this.refCount = 0;
4796
+ t === void 0 && (t = []), e === void 0 && (e = {}), this.buffers = t, this.indexBuffer = null, this.attributes = e, this.glVertexArrayObjects = {}, this.id = oP++, this.instanced = !1, this.instanceCount = 1, this.disposeRunner = new Xe("disposeGeometry"), this.refCount = 0;
4797
4797
  }
4798
4798
  return r.prototype.addAttribute = function(t, e, i, n, s, o, a, l) {
4799
4799
  if (i === void 0 && (i = 0), n === void 0 && (n = !1), l === void 0 && (l = !1), !e)
@@ -6166,7 +6166,7 @@ void main(void){
6166
6166
  /** @class */
6167
6167
  function() {
6168
6168
  function r(t, e) {
6169
- this.uniformBindCount = 0, this.program = t, e ? e instanceof ms ? this.uniformGroup = e : this.uniformGroup = new ms(e) : this.uniformGroup = new ms({}), this.disposeRunner = new Ve("disposeShader");
6169
+ this.uniformBindCount = 0, this.program = t, e ? e instanceof ms ? this.uniformGroup = e : this.uniformGroup = new ms(e) : this.uniformGroup = new ms({}), this.disposeRunner = new Xe("disposeShader");
6170
6170
  }
6171
6171
  return r.prototype.checkUniformExists = function(t, e) {
6172
6172
  if (e.uniforms[t])
@@ -7373,13 +7373,13 @@ var ef = (
7373
7373
  function t(e) {
7374
7374
  var i = r.call(this, fl.WEBGL, e) || this;
7375
7375
  return e = i.options, i.gl = null, i.CONTEXT_UID = 0, i.runners = {
7376
- destroy: new Ve("destroy"),
7377
- contextChange: new Ve("contextChange"),
7378
- reset: new Ve("reset"),
7379
- update: new Ve("update"),
7380
- postrender: new Ve("postrender"),
7381
- prerender: new Ve("prerender"),
7382
- resize: new Ve("resize")
7376
+ destroy: new Xe("destroy"),
7377
+ contextChange: new Xe("contextChange"),
7378
+ reset: new Xe("reset"),
7379
+ update: new Xe("update"),
7380
+ postrender: new Xe("postrender"),
7381
+ prerender: new Xe("prerender"),
7382
+ resize: new Xe("resize")
7383
7383
  }, i.runners.contextChange.add(i), i.globalUniforms = new ms({
7384
7384
  projectionMatrix: new Be()
7385
7385
  }, !0), i.addSystem(t_, "mask").addSystem(Ky, "context").addSystem(o_, "state").addSystem(s_, "shader").addSystem(h_, "texture").addSystem(jP, "buffer").addSystem(Qy, "geometry").addSystem(Jy, "framebuffer").addSystem(e_, "scissor").addSystem(i_, "stencil").addSystem(r_, "projection").addSystem(a_, "textureGC").addSystem(qy, "filter").addSystem(n_, "renderTexture").addSystem(Zy, "batch"), i.initPlugins(t.__plugins), i.multisample = void 0, e.context ? i.context.initFromContext(e.context) : i.context.initFromOptions({
@@ -19097,7 +19097,7 @@ var im = g_.filter(function(r) {
19097
19097
  }(new FC());
19098
19098
  "extensions" in YP ? Or.add(Vm) : Ii.registerPlugin(Vm);
19099
19099
  let zg, jt, ir, Vg;
19100
- var Xe, ye, Oa, zl, Vl, Wm;
19100
+ var We, ye, Oa, zl, Vl, Wm;
19101
19101
  const Se = class {
19102
19102
  constructor() {
19103
19103
  _(this, Vl);
@@ -19111,12 +19111,12 @@ const Se = class {
19111
19111
  B(this, "stopfadese", (t) => h(this, ye).stt.stopfadese(h(this, ye), t));
19112
19112
  }
19113
19113
  static init(t, e, i, n) {
19114
- b(Se, Xe, {}), zg = t, jt = e, ir = i, Vg = n;
19114
+ b(Se, We, {}), zg = t, jt = e, ir = i, Vg = n;
19115
19115
  }
19116
19116
  static delLoopPlay(t) {
19117
- delete h(Se, Xe)[t];
19117
+ delete h(Se, We)[t];
19118
19118
  const e = "const.sn.sound." + t + ".";
19119
- jt.setVal_Nochk("save", e + "fn", ""), jt.setVal_Nochk("save", "const.sn.loopPlaying", JSON.stringify(h(Se, Xe))), jt.flush();
19119
+ jt.setVal_Nochk("save", e + "fn", ""), jt.setVal_Nochk("save", "const.sn.loopPlaying", JSON.stringify(h(Se, We))), jt.flush();
19120
19120
  }
19121
19121
  static getVol(t, e) {
19122
19122
  const i = j(t, "volume", e);
@@ -19127,7 +19127,7 @@ const Se = class {
19127
19127
  if (e === i)
19128
19128
  return;
19129
19129
  const n = "const.sn.sound." + e + ".", s = Number(jt.getVal("save:" + n + "volume")), o = String(jt.getVal("save:" + n + "fn")), a = "const.sn.sound." + i + ".", l = Number(jt.getVal("save:" + a + "volume")), u = String(jt.getVal("save:" + a + "fn"));
19130
- jt.setVal_Nochk("save", n + "volume", l), jt.setVal_Nochk("save", a + "volume", s), jt.setVal_Nochk("save", n + "fn", u), jt.setVal_Nochk("save", a + "fn", o), e in h(Se, Xe) != i in h(Se, Xe) && (e in h(Se, Xe) ? (delete h(Se, Xe)[e], h(Se, Xe)[i] = 0) : (delete h(Se, Xe)[i], h(Se, Xe)[e] = 0), jt.setVal_Nochk("save", "const.sn.loopPlaying", JSON.stringify(h(Se, Xe)))), jt.flush();
19130
+ jt.setVal_Nochk("save", n + "volume", l), jt.setVal_Nochk("save", a + "volume", s), jt.setVal_Nochk("save", n + "fn", u), jt.setVal_Nochk("save", a + "fn", o), e in h(Se, We) != i in h(Se, We) && (e in h(Se, We) ? (delete h(Se, We)[e], h(Se, We)[i] = 0) : (delete h(Se, We)[i], h(Se, We)[e] = 0), jt.setVal_Nochk("save", "const.sn.loopPlaying", JSON.stringify(h(Se, We)))), jt.flush();
19131
19131
  }
19132
19132
  init(t) {
19133
19133
  const { buf: e = "SE", fn: i = "" } = t, n = j(t, "start_ms", 0), s = j(t, "end_ms", h(Se, Oa)), o = j(t, "ret_ms", 0), a = j(t, "pan", 0), l = j(t, "speed", 1);
@@ -19146,7 +19146,7 @@ const Se = class {
19146
19146
  const c = Se.getVol(t, 1);
19147
19147
  jt.setVal_Nochk("save", u + "volume", c);
19148
19148
  const f = c * Number(jt.getVal("sys:" + u + "volume", 1)), d = K(t, "loop", !1);
19149
- d ? (h(Se, Xe)[e] = 0, jt.setVal_Nochk("save", "const.sn.loopPlaying", JSON.stringify(h(Se, Xe)))) : Se.delLoopPlay(e), jt.setVal_Nochk("save", u + "start_ms", n), jt.setVal_Nochk("save", u + "end_ms", s), jt.setVal_Nochk("save", u + "ret_ms", o), jt.setVal_Nochk("tmp", u + "playing", !0), jt.flush();
19149
+ d ? (h(Se, We)[e] = 0, jt.setVal_Nochk("save", "const.sn.loopPlaying", JSON.stringify(h(Se, We)))) : Se.delLoopPlay(e), jt.setVal_Nochk("save", u + "start_ms", n), jt.setVal_Nochk("save", u + "end_ms", s), jt.setVal_Nochk("save", u + "ret_ms", o), jt.setVal_Nochk("tmp", u + "playing", !0), jt.flush();
19150
19150
  const p = sl.find(i);
19151
19151
  b(this, ye, {
19152
19152
  fn: i,
@@ -19239,7 +19239,7 @@ const Se = class {
19239
19239
  }
19240
19240
  };
19241
19241
  let qr = Se;
19242
- Xe = new WeakMap(), ye = new WeakMap(), Oa = new WeakMap(), zl = new WeakMap(), Vl = new WeakSet(), Wm = function(t, e) {
19242
+ We = new WeakMap(), ye = new WeakMap(), Oa = new WeakMap(), zl = new WeakMap(), Vl = new WeakSet(), Wm = function(t, e) {
19243
19243
  const i = zg.searchPath(t, ii.SOUND);
19244
19244
  if (i.slice(-4) !== ".bin") {
19245
19245
  e.url = i, _a.from(e);
@@ -19253,7 +19253,7 @@ Xe = new WeakMap(), ye = new WeakMap(), Oa = new WeakMap(), zl = new WeakMap(),
19253
19253
  var o;
19254
19254
  e.source = (o = s[t]) == null ? void 0 : o.data, _a.from(e);
19255
19255
  });
19256
- }, _(qr, Xe, {}), _(qr, Oa, 999e3);
19256
+ }, _(qr, We, {}), _(qr, Oa, 999e3);
19257
19257
  function Ym(r, t) {
19258
19258
  if (r.loop)
19259
19259
  qr.delLoopPlay(t);
@@ -19911,7 +19911,7 @@ class qC extends nx {
19911
19911
  }
19912
19912
  }
19913
19913
  var Pd, qn, dn, $s, zs, Rr, Ca, Vs, Ql, Ma, kr, pn, vn, Zn, tu, eu, iu, Od, sx, Id, ox, ru, ey, Cd, ax, Ra, ff, ka, or, Na, Md, Xs, nu;
19914
- const nt = class extends ui {
19914
+ const st = class extends ui {
19915
19915
  constructor() {
19916
19916
  super();
19917
19917
  _(this, kr, new VC(this.spLay, this));
@@ -19919,7 +19919,7 @@ const nt = class extends ui {
19919
19919
  _(this, vn, "");
19920
19920
  _(this, Zn, "");
19921
19921
  B(this, "lay", (e) => this.laySub(e, (i) => {
19922
- i && h(nt, dn).resume();
19922
+ i && h(st, dn).resume();
19923
19923
  }));
19924
19924
  _(this, tu, 0);
19925
19925
  _(this, eu, 0);
@@ -19940,37 +19940,37 @@ const nt = class extends ui {
19940
19940
  });
19941
19941
  }
19942
19942
  static init(e, i, n, s, o, a) {
19943
- b(nt, dn, e), b(nt, $s, i), b(nt, zs, n), b(nt, Rr, s), b(nt, Ca, a);
19943
+ b(st, dn, e), b(st, $s, i), b(st, zs, n), b(st, Rr, s), b(st, Ca, a);
19944
19944
  const l = () => {
19945
- const u = h(nt, Vs) * h(nt, Ql);
19946
- for (const c of Object.values(nt.hFn2VElm))
19945
+ const u = h(st, Vs) * h(st, Ql);
19946
+ for (const c of Object.values(st.hFn2VElm))
19947
19947
  c.volume = u;
19948
19948
  };
19949
19949
  o.setNoticeChgVolume(
19950
19950
  (u) => {
19951
- b(nt, Vs, u), l();
19951
+ b(st, Vs, u), l();
19952
19952
  },
19953
19953
  (u) => {
19954
- b(nt, Ql, u), l();
19954
+ b(st, Ql, u), l();
19955
19955
  }
19956
- ), h(nt, Rr).crypto && b(nt, iu, x(nt, Id, ox));
19956
+ ), h(st, Rr).crypto && b(st, iu, x(st, Id, ox));
19957
19957
  }
19958
19958
  static setEvtMng(e) {
19959
- b(nt, Ma, e);
19959
+ b(st, Ma, e);
19960
19960
  }
19961
19961
  static destroy() {
19962
- h(nt, Pd).clear(), b(nt, qn, {}), nt.hFn2ResAniSpr = {}, nt.hFn2VElm = {};
19962
+ h(st, Pd).clear(), b(st, qn, {}), st.hFn2ResAniSpr = {}, st.hFn2VElm = {};
19963
19963
  }
19964
19964
  setSp(e) {
19965
19965
  }
19966
19966
  laySub(e, i) {
19967
19967
  var l;
19968
- x(l = nt, Ra, ff).call(l, h(this, vn));
19968
+ x(l = st, Ra, ff).call(l, h(this, vn));
19969
19969
  const { fn: n, face: s = "" } = e;
19970
19970
  if (h(this, kr).sethArg(e), !n)
19971
19971
  return super.lay(e), this.spLay.children.length > 0 && this.setPos(e), b(this, vn, ""), b(this, pn, b(this, Zn, s)), i(!1), !1;
19972
19972
  const o = "fn" in e, a = "face" in e;
19973
- return this.clearLay({ filter: "true" }), o && b(this, vn, n), a && b(this, Zn, s), super.lay(e), e.dx = 0, e.dy = 0, nt.csv2Sprites(
19973
+ return this.clearLay({ filter: "true" }), o && b(this, vn, n), a && b(this, Zn, s), super.lay(e), e.dx = 0, e.dy = 0, st.csv2Sprites(
19974
19974
  b(this, pn, n + (s ? "," + s : "")),
19975
19975
  this.spLay,
19976
19976
  (u) => {
@@ -20002,7 +20002,7 @@ const nt = class extends ui {
20002
20002
  e.split(",").forEach((c, f) => {
20003
20003
  if (!c)
20004
20004
  throw "face属性に空要素が含まれます";
20005
- const { dx: d, dy: p, blendmode: m, fn: v } = h(nt, qn)[c] || {
20005
+ const { dx: d, dy: p, blendmode: m, fn: v } = h(st, qn)[c] || {
20006
20006
  fn: c,
20007
20007
  dx: 0,
20008
20008
  dy: 0,
@@ -20010,16 +20010,16 @@ const nt = class extends ui {
20010
20010
  }, y = f === 0 ? n : (T) => {
20011
20011
  T.x = d, T.y = p, T.blendMode = m;
20012
20012
  };
20013
- if (a.push({ fn: v, fnc: y }), v in nt.hFn2ResAniSpr || v in li || v in Ii.shared.resources)
20013
+ if (a.push({ fn: v, fnc: y }), v in st.hFn2ResAniSpr || v in li || v in Ii.shared.resources)
20014
20014
  return;
20015
20015
  o = !0;
20016
- const g = h(nt, $s).searchPath(v, ii.SP_GSM), w = h(this, Rr).crypto ? { xhrType: g.slice(-5) === ".json" ? _t.XHR_RESPONSE_TYPE.TEXT : _t.XHR_RESPONSE_TYPE.BUFFER } : {};
20016
+ const g = h(st, $s).searchPath(v, ii.SP_GSM), w = h(this, Rr).crypto ? { xhrType: g.slice(-5) === ".json" ? _t.XHR_RESPONSE_TYPE.TEXT : _t.XHR_RESPONSE_TYPE.BUFFER } : {};
20017
20017
  l.add({ ...w, name: v, url: g });
20018
20018
  });
20019
20019
  const u = (c) => {
20020
20020
  var f;
20021
20021
  for (const { fn: d, fnc: p } of a) {
20022
- const m = x(f = nt, Cd, ax).call(f, d, c);
20022
+ const m = x(f = st, Cd, ax).call(f, d, c);
20023
20023
  m.name = d, i == null || i.addChild(m), p(m);
20024
20024
  }
20025
20025
  s(o);
@@ -20027,7 +20027,7 @@ const nt = class extends ui {
20027
20027
  return o ? l.use((c, f) => {
20028
20028
  h(this, Rr).dec(c.extension, c.data).then((d) => {
20029
20029
  var p;
20030
- return h(p = nt, iu).call(p, d, c, () => f == null ? void 0 : f());
20030
+ return h(p = st, iu).call(p, d, c, () => f == null ? void 0 : f());
20031
20031
  }).catch((d) => h(this, dn).errScript(`Graphic ロード失敗です fn:${c.name} ${d}`, !1));
20032
20032
  }).load((c, f) => u(f)) : u({}), o;
20033
20033
  }
@@ -20036,16 +20036,16 @@ const nt = class extends ui {
20036
20036
  const { fn: i } = e;
20037
20037
  if (!i)
20038
20038
  throw "fnは必須です";
20039
- const n = nt.hFn2VElm[i];
20039
+ const n = st.hFn2VElm[i];
20040
20040
  if (!n || n.loop)
20041
20041
  return !1;
20042
20042
  if (h(this, Ca).getVal("tmp:sn.skip.enabled") || h(this, Ma).isSkippingByKeyDown() || n.ended)
20043
- return x(o = nt, Ra, ff).call(o, i), !1;
20043
+ return x(o = st, Ra, ff).call(o, i), !1;
20044
20044
  const s = () => {
20045
20045
  var a;
20046
- x(a = nt, Ra, ff).call(a, i), h(this, dn).resume();
20046
+ x(a = st, Ra, ff).call(a, i), h(this, dn).resume();
20047
20047
  };
20048
- return n.addEventListener("ended", s, { once: !0, passive: !0 }), h(nt, Ma).waitEvent(
20048
+ return n.addEventListener("ended", s, { once: !0, passive: !0 }), h(st, Ma).waitEvent(
20049
20049
  () => {
20050
20050
  n.removeEventListener("ended", s), s();
20051
20051
  },
@@ -20063,7 +20063,7 @@ const nt = class extends ui {
20063
20063
  this.spLay.alpha = 1;
20064
20064
  for (const n of this.spLay.children)
20065
20065
  n.visible = !0;
20066
- h(this, or).visible = !1, h(nt, zs).renderer.render(this.spLay, { renderTexture: h(this, ka) }), this.spLay.alpha = i;
20066
+ h(this, or).visible = !1, h(st, zs).renderer.render(this.spLay, { renderTexture: h(this, ka) }), this.spLay.alpha = i;
20067
20067
  for (const n of this.spLay.children)
20068
20068
  n.visible = !1;
20069
20069
  };
@@ -20076,17 +20076,17 @@ const nt = class extends ui {
20076
20076
  }
20077
20077
  b(this, Na, () => {
20078
20078
  e(), h(this, or).visible = !0;
20079
- }), h(nt, zs).ticker.add(h(this, Na));
20079
+ }), h(st, zs).ticker.add(h(this, Na));
20080
20080
  }
20081
20081
  renderEnd() {
20082
- h(nt, zs).ticker.remove(h(this, Na)), this.spLay.removeChild(h(this, or));
20082
+ h(st, zs).ticker.remove(h(this, Na)), this.spLay.removeChild(h(this, or));
20083
20083
  for (const e of this.spLay.children)
20084
20084
  e.visible = !0;
20085
20085
  h(this, or).destroy(!0);
20086
20086
  }
20087
20087
  // https://regex101.com/r/ZUnoFq/1
20088
20088
  static loadPic2Img(e, i, n) {
20089
- const s = e.replace(h(nt, Md), ""), o = e === s ? "" : e.slice(s.length), a = h(this, nu)[e];
20089
+ const s = e.replace(h(st, Md), ""), o = e === s ? "" : e.slice(s.length), a = h(this, nu)[e];
20090
20090
  if (a) {
20091
20091
  i.src = a;
20092
20092
  return;
@@ -20097,15 +20097,15 @@ const nt = class extends ui {
20097
20097
  return;
20098
20098
  }
20099
20099
  h(this, Xs)[e] = [i];
20100
- const u = h(nt, $s).searchPath(s, ii.SP_GSM), c = new Ii().add({ name: e, url: u, xhrType: _t.XHR_RESPONSE_TYPE.BUFFER });
20101
- h(nt, Rr).crypto && nm(u) === "bin" && c.use((f, d) => {
20102
- h(nt, Rr).dec(f.extension, f.data).then((p) => {
20100
+ const u = h(st, $s).searchPath(s, ii.SP_GSM), c = new Ii().add({ name: e, url: u, xhrType: _t.XHR_RESPONSE_TYPE.BUFFER });
20101
+ h(st, Rr).crypto && nm(u) === "bin" && c.use((f, d) => {
20102
+ h(st, Rr).dec(f.extension, f.data).then((p) => {
20103
20103
  if (f.extension !== "bin") {
20104
20104
  d == null || d();
20105
20105
  return;
20106
20106
  }
20107
20107
  f.data = p, p instanceof HTMLImageElement && (f.type = _t.TYPE.IMAGE), d == null || d();
20108
- }).catch((p) => h(nt, dn).errScript(`GrpLayer loadPic ロード失敗です fn:${f.name} ${p}`, !1));
20108
+ }).catch((p) => h(st, dn).errScript(`GrpLayer loadPic ロード失敗です fn:${f.name} ${p}`, !1));
20109
20109
  }), c.load((f, d) => {
20110
20110
  for (const [p, { data: { src: m } }] of Object.entries(d)) {
20111
20111
  const v = h(this, nu)[p] = m + (m.slice(0, 5) === "blob:" ? "" : o);
@@ -20127,10 +20127,10 @@ const nt = class extends ui {
20127
20127
  const { name: i } = e;
20128
20128
  if (!i)
20129
20129
  throw "nameは必須です";
20130
- if (i in h(nt, qn))
20130
+ if (i in h(st, qn))
20131
20131
  throw "一つのname(" + i + ")に対して同じ画像を複数割り当てられません";
20132
20132
  const { fn: n = i } = e;
20133
- return h(nt, qn)[i] = {
20133
+ return h(st, qn)[i] = {
20134
20134
  fn: n,
20135
20135
  dx: j(e, "dx", 0),
20136
20136
  dy: j(e, "dy", 0),
@@ -20138,7 +20138,7 @@ const nt = class extends ui {
20138
20138
  }, !1;
20139
20139
  }
20140
20140
  static clearFace2Name() {
20141
- b(nt, qn, {});
20141
+ b(st, qn, {});
20142
20142
  }
20143
20143
  // アニメ・動画を含むか
20144
20144
  get containMovement() {
@@ -20146,7 +20146,7 @@ const nt = class extends ui {
20146
20146
  return !1;
20147
20147
  const e = this.spLay.children;
20148
20148
  return h(this, pn).split(",").some(
20149
- (i, n) => e[n] instanceof Gg || nt.hFn2VElm[i]
20149
+ (i, n) => e[n] instanceof Gg || st.hFn2VElm[i]
20150
20150
  );
20151
20151
  }
20152
20152
  clearLay(e) {
@@ -20179,7 +20179,7 @@ const nt = class extends ui {
20179
20179
  h(this, kr).visible = !0;
20180
20180
  }
20181
20181
  };
20182
- let Rt = nt;
20182
+ let Rt = st;
20183
20183
  Pd = new WeakMap(), qn = new WeakMap(), dn = new WeakMap(), $s = new WeakMap(), zs = new WeakMap(), Rr = new WeakMap(), Ca = new WeakMap(), Vs = new WeakMap(), Ql = new WeakMap(), Ma = new WeakMap(), kr = new WeakMap(), pn = new WeakMap(), vn = new WeakMap(), Zn = new WeakMap(), tu = new WeakMap(), eu = new WeakMap(), iu = new WeakMap(), Od = new WeakSet(), sx = function(e) {
20184
20184
  const i = /([^\d]+)\d+\.(\w+)/.exec(e[0]);
20185
20185
  if (!i)
@@ -20190,7 +20190,7 @@ Pd = new WeakMap(), qn = new WeakMap(), dn = new WeakMap(), $s = new WeakMap(),
20190
20190
  );
20191
20191
  }, Id = new WeakSet(), ox = function(e, i, n) {
20192
20192
  var u;
20193
- if (i.data = e, i.extension === "bin" && (e instanceof HTMLImageElement ? (i.texture = lt.fromLoader(e, i.url, i.name), i.type = _t.TYPE.IMAGE) : e instanceof HTMLVideoElement && (e.volume = h(nt, Vs), nt.hFn2VElm[i.name] = x(u = nt, ru, ey).call(u, e), i.type = _t.TYPE.VIDEO)), i.extension !== "json") {
20193
+ if (i.data = e, i.extension === "bin" && (e instanceof HTMLImageElement ? (i.texture = lt.fromLoader(e, i.url, i.name), i.type = _t.TYPE.IMAGE) : e instanceof HTMLVideoElement && (e.volume = h(st, Vs), st.hFn2VElm[i.name] = x(u = st, ru, ey).call(u, e), i.type = _t.TYPE.VIDEO)), i.extension !== "json") {
20194
20194
  n();
20195
20195
  return;
20196
20196
  }
@@ -20203,7 +20203,7 @@ Pd = new WeakMap(), qn = new WeakMap(), dn = new WeakMap(), $s = new WeakMap(),
20203
20203
  n();
20204
20204
  return;
20205
20205
  }
20206
- const a = Qc(s.image), l = h(nt, $s).searchPath(a, ii.SP_GSM);
20206
+ const a = Qc(s.image), l = h(st, $s).searchPath(a, ii.SP_GSM);
20207
20207
  new Ii().use((c, f) => {
20208
20208
  h(this, Rr).dec(c.extension, c.data).then((d) => {
20209
20209
  c.data = d, d instanceof HTMLImageElement && (c.type = _t.TYPE.IMAGE, URL.revokeObjectURL(d.src)), f == null || f();
@@ -20211,7 +20211,7 @@ Pd = new WeakMap(), qn = new WeakMap(), dn = new WeakMap(), $s = new WeakMap(),
20211
20211
  }).add({ name: a, url: l, xhrType: _t.XHR_RESPONSE_TYPE.BUFFER }).load((c, f) => {
20212
20212
  for (const { data: d } of Object.values(c.resources)) {
20213
20213
  const { baseTexture: p } = lt.from(d), m = Object.values(o);
20214
- nt.hFn2ResAniSpr[i.name] = {
20214
+ st.hFn2ResAniSpr[i.name] = {
20215
20215
  aTex: m.map(({ frame: { x: v, y, w: g, h: w } }) => new lt(
20216
20216
  p,
20217
20217
  new gt(v, y, g, w)
@@ -20222,34 +20222,34 @@ Pd = new WeakMap(), qn = new WeakMap(), dn = new WeakMap(), $s = new WeakMap(),
20222
20222
  n();
20223
20223
  });
20224
20224
  }, ru = new WeakSet(), ey = function(e) {
20225
- return h(nt, Ca).getVal("const.sn.needClick2Play") && (kt.trace_beforeNew(`[lay系] ${kt.strPos()}未クリック状態で動画を自動再生します。音声はミュートされます`, "W"), e.muted = !0), e.setAttribute("playsinline", ""), e;
20225
+ return h(st, Ca).getVal("const.sn.needClick2Play") && (kt.trace_beforeNew(`[lay系] ${kt.strPos()}未クリック状態で動画を自動再生します。音声はミュートされます`, "W"), e.muted = !0), e.setAttribute("playsinline", ""), e;
20226
20226
  }, Cd = new WeakSet(), ax = function(e, i) {
20227
- const n = nt.hFn2ResAniSpr[e];
20227
+ const n = st.hFn2ResAniSpr[e];
20228
20228
  if (n) {
20229
20229
  const s = new Gg(n.aTex);
20230
20230
  return s.animationSpeed = n.meta.animationSpeed ?? 1, s.play(), s;
20231
20231
  }
20232
- return e in li ? ge.from(e) : e in nt.hFn2VElm ? ge.from(nt.hFn2VElm[e]) : e in i ? new ge(i[e].texture) : new ge();
20232
+ return e in li ? ge.from(e) : e in st.hFn2VElm ? ge.from(st.hFn2VElm[e]) : e in i ? new ge(i[e].texture) : new ge();
20233
20233
  }, Ra = new WeakSet(), ff = function(e) {
20234
- const i = nt.hFn2VElm[e];
20235
- i && (delete nt.hFn2VElm[e], i.pause(), i.currentTime = i.duration);
20234
+ const i = st.hFn2VElm[e];
20235
+ i && (delete st.hFn2VElm[e], i.pause(), i.currentTime = i.duration);
20236
20236
  }, ka = new WeakMap(), or = new WeakMap(), Na = new WeakMap(), Md = new WeakMap(), Xs = new WeakMap(), nu = new WeakMap(), _(Rt, Od), _(Rt, Id), _(Rt, ru), _(Rt, Cd), _(Rt, Ra), _(Rt, Pd, new Eh()), _(Rt, qn, {}), _(Rt, dn, void 0), _(Rt, $s, void 0), _(Rt, zs, void 0), _(Rt, Rr, void 0), _(Rt, Ca, void 0), _(Rt, Vs, 1), _(Rt, Ql, 1), _(Rt, Ma, void 0), B(Rt, "hFn2ResAniSpr", {}), _(Rt, iu, (e, i, n) => {
20237
20237
  var s, o;
20238
20238
  switch (i.type) {
20239
20239
  case _t.TYPE.JSON:
20240
20240
  const a = i.spritesheet._frameKeys;
20241
- x(s = nt, Od, sx).call(s, a), nt.hFn2ResAniSpr[i.name] = {
20241
+ x(s = st, Od, sx).call(s, a), st.hFn2ResAniSpr[i.name] = {
20242
20242
  aTex: a.map((u) => lt.from(u)),
20243
20243
  meta: i.data.meta
20244
20244
  };
20245
20245
  break;
20246
20246
  case _t.TYPE.VIDEO:
20247
20247
  const l = i.data;
20248
- l.volume = h(nt, Vs), nt.hFn2VElm[i.name] = x(o = nt, ru, ey).call(o, l);
20248
+ l.volume = h(st, Vs), st.hFn2VElm[i.name] = x(o = st, ru, ey).call(o, l);
20249
20249
  }
20250
20250
  n();
20251
20251
  }), B(Rt, "hFn2VElm", {}), _(Rt, Md, /\?([^?]+)$/), _(Rt, Xs, {}), _(Rt, nu, {});
20252
- var La, su, Ws, Tt, Nr, mn, Rd, xi, Kn, st, Ui, Ke, Je, Aa, df, ar, yn, ou, Da, kd, hx, Ys, Ba, Jn, qs, Zs, Ks, Fa, au, Qn, hu, iy, _n, lu, gn, Lr, Ua, uu, ry, ts, Js, cu, ny, ni;
20252
+ var La, su, Ws, Tt, Nr, mn, Rd, xi, Kn, nt, Ui, Ke, Je, Aa, df, ar, yn, ou, Da, kd, hx, Ys, Ba, Jn, qs, Zs, Ks, Fa, au, Qn, hu, iy, _n, lu, gn, Lr, Ua, uu, ry, ts, Js, cu, ny, ni;
20253
20253
  const pt = class extends Jt {
20254
20254
  constructor(e, i, n) {
20255
20255
  super();
@@ -20266,7 +20266,7 @@ const pt = class extends Jt {
20266
20266
  _(this, mn, new Ri());
20267
20267
  _(this, xi, new XC(this.spLay, this));
20268
20268
  _(this, Kn, new WC(this));
20269
- _(this, st, {
20269
+ _(this, nt, {
20270
20270
  fontsize: 24,
20271
20271
  $width: 0,
20272
20272
  // レイヤサイズであり、背景色(画像)サイズ
@@ -20344,30 +20344,30 @@ const pt = class extends Jt {
20344
20344
  return h(this, yn);
20345
20345
  }
20346
20346
  get infTL() {
20347
- return h(this, st);
20347
+ return h(this, nt);
20348
20348
  }
20349
20349
  get getWidth() {
20350
- return h(this, st).$width;
20350
+ return h(this, nt).$width;
20351
20351
  }
20352
20352
  get getHeight() {
20353
- return h(this, st).$height;
20353
+ return h(this, nt).$height;
20354
20354
  }
20355
20355
  setSize(e, i) {
20356
- h(this, st).$width = e, h(this, st).$height = i, h(this, Tt).style.width = h(this, st).$width + "px", h(this, Tt).style.height = h(this, st).$height + "px";
20356
+ h(this, nt).$width = e, h(this, nt).$height = i, h(this, Tt).style.width = h(this, nt).$width + "px", h(this, Tt).style.height = h(this, nt).$height + "px";
20357
20357
  }
20358
20358
  goTxt(e, i) {
20359
20359
  var T, P, O, C;
20360
20360
  h(pt, Lr).visible = !1;
20361
20361
  let n = h(this, Jn).length, s = "";
20362
20362
  if (n === 0) {
20363
- if (h(pt, La).oCfg.debug.masume && (A.debugLog && console.log(`🍌 masume ${this.name} v:${this.visible} l:${this.x} t:${this.y} a:${this.alpha} pl:${h(this, st).pad_left} pr:${h(this, st).pad_right} pt:${h(this, st).pad_top} pb:${h(this, st).pad_bottom} w:${h(this, st).$width} h:${h(this, st).$height}`), h(this, mn).clear().beginFill(3407616, 0.2).lineStyle(1, 3407616, 1).drawRect(-h(this, st).pad_left, -h(this, st).pad_top, h(this, st).$width, h(this, st).$height).endFill().beginFill(13311, 0.2).lineStyle(2, 13311, 1).drawRect(
20363
+ if (h(pt, La).oCfg.debug.masume && (A.debugLog && console.log(`🍌 masume ${this.name} v:${this.visible} l:${this.x} t:${this.y} a:${this.alpha} pl:${h(this, nt).pad_left} pr:${h(this, nt).pad_right} pt:${h(this, nt).pad_top} pb:${h(this, nt).pad_bottom} w:${h(this, nt).$width} h:${h(this, nt).$height}`), h(this, mn).clear().beginFill(3407616, 0.2).lineStyle(1, 3407616, 1).drawRect(-h(this, nt).pad_left, -h(this, nt).pad_top, h(this, nt).$width, h(this, nt).$height).endFill().beginFill(13311, 0.2).lineStyle(2, 13311, 1).drawRect(
20364
20364
  0,
20365
20365
  0,
20366
- h(this, st).$width - h(this, st).pad_left - h(this, st).pad_right,
20367
- h(this, st).$height - h(this, st).pad_top - h(this, st).pad_bottom
20366
+ h(this, nt).$width - h(this, nt).pad_left - h(this, nt).pad_right,
20367
+ h(this, nt).$height - h(this, nt).pad_top - h(this, nt).pad_bottom
20368
20368
  ).endFill()), h(this, Tt).innerHTML = [...e].join("").replaceAll(/[\n\t]/g, "") + h(pt, au), !h(this, Ui)) {
20369
20369
  const I = globalThis.getComputedStyle(h(this, Tt)), S = parseFloat(I.fontSize);
20370
- h(this, yn) ? (b(this, Ke, (h(this, st).$width - h(this, st).pad_left - h(this, st).pad_right - S * 1.5) * this.sys.cvsScale), b(this, Je, 0)) : (b(this, Ke, 0), b(this, Je, S / 2 * this.sys.cvsScale));
20370
+ h(this, yn) ? (b(this, Ke, (h(this, nt).$width - h(this, nt).pad_left - h(this, nt).pad_right - S * 1.5) * this.sys.cvsScale), b(this, Je, 0)) : (b(this, Ke, 0), b(this, Je, S / 2 * this.sys.cvsScale));
20371
20371
  }
20372
20372
  } else
20373
20373
  s = h(this, Tt).innerHTML, h(this, Tt).querySelectorAll(":scope > br").forEach((I) => h(this, Tt).removeChild(I)), h(this, Tt).insertAdjacentHTML(
@@ -20376,7 +20376,7 @@ const pt = class extends Jt {
20376
20376
  // 末尾改行削除挙動対策
20377
20377
  ), --n, (T = h(this, Tt).querySelector(".sn_ch_last")) == null || T.remove();
20378
20378
  b(this, qs, e.length);
20379
- const o = this.sys.cvsScale, a = h(this, Tt).getBoundingClientRect(), l = a.left + h(this, st).pad_left, u = a.top + h(this, st).pad_top;
20379
+ const o = this.sys.cvsScale, a = h(this, Tt).getBoundingClientRect(), l = a.left + h(this, nt).pad_left, u = a.top + h(this, nt).pad_top;
20380
20380
  let c;
20381
20381
  if (o === 1)
20382
20382
  c = (I, S) => new gt(
@@ -20584,8 +20584,8 @@ const pt = class extends Jt {
20584
20584
  }
20585
20585
  dispBreak(e) {
20586
20586
  const i = h(pt, Lr);
20587
- i.visible = !1, this.addChild(i), Rt.csv2Sprites(e, i, (n) => {
20588
- i.parent || i.removeChild(n);
20587
+ i.visible = !1, this.addChild(i), Rt.csv2Sprites(e.pic, i, (n) => {
20588
+ i.parent ? (n.x = j(e, "x", 0), n.y = j(e, "y", 0), n.width = j(e, "width", h(this, nt).fontsize), n.height = j(e, "height", h(this, nt).fontsize)) : i.removeChild(n);
20589
20589
  });
20590
20590
  }
20591
20591
  static delBreak() {
@@ -20596,11 +20596,11 @@ const pt = class extends Jt {
20596
20596
  var i;
20597
20597
  x(this, cu, ny).call(this);
20598
20598
  const e = new pt(this.spLay, () => this.canFocus(), this.sys);
20599
- return b(e, st, h(this, st)), h(e, Tt).style.cssText = h(this, Tt).style.cssText, b(e, ar, h(this, ar)), e.name = this.name, x(i = e, Aa, df).call(i), h(e, xi).sethArg(h(this, xi).gethArg()), b(e, Ys, h(this, Ys)), b(e, ts, h(this, ts)), b(e, Js, h(this, Js)), b(e, Ui, h(this, Ui)), b(e, Ke, h(this, Ke)), b(e, Je, h(this, Je)), this.destroy(), e;
20599
+ return b(e, nt, h(this, nt)), h(e, Tt).style.cssText = h(this, Tt).style.cssText, b(e, ar, h(this, ar)), e.name = this.name, x(i = e, Aa, df).call(i), h(e, xi).sethArg(h(this, xi).gethArg()), b(e, Ys, h(this, Ys)), b(e, ts, h(this, ts)), b(e, Js, h(this, Js)), b(e, Ui, h(this, Ui)), b(e, Ke, h(this, Ke)), b(e, Je, h(this, Je)), this.destroy(), e;
20600
20600
  }
20601
20601
  record() {
20602
20602
  return {
20603
- infTL: h(this, st),
20603
+ infTL: h(this, nt),
20604
20604
  cssText: h(this, Tt).style.cssText,
20605
20605
  left: h(this, ar),
20606
20606
  idc_hArg: h(this, xi).gethArg(),
@@ -20613,15 +20613,15 @@ const pt = class extends Jt {
20613
20613
  };
20614
20614
  }
20615
20615
  playback(e) {
20616
- b(this, st, e.infTL), this.position.set(h(this, st).pad_left, h(this, st).pad_top), h(this, Tt).style.cssText = e.cssText, b(this, ar, e.left), x(this, Aa, df).call(this), h(this, xi).sethArg(e.idc_hArg), b(this, Ys, e.ch_filter), b(this, ts, e.fi_easing), b(this, Js, e.fo_easing), b(this, Ui, e.break_fixed ?? !1), b(this, Ke, e.break_fixed_left ?? 0), b(this, Je, e.break_fixed_top ?? 0);
20616
+ b(this, nt, e.infTL), this.position.set(h(this, nt).pad_left, h(this, nt).pad_top), h(this, Tt).style.cssText = e.cssText, b(this, ar, e.left), x(this, Aa, df).call(this), h(this, xi).sethArg(e.idc_hArg), b(this, Ys, e.ch_filter), b(this, ts, e.fi_easing), b(this, Js, e.fo_easing), b(this, Ui, e.break_fixed ?? !1), b(this, Ke, e.break_fixed_left ?? 0), b(this, Je, e.break_fixed_top ?? 0);
20617
20617
  }
20618
20618
  snapshot(e, i) {
20619
20619
  x(this, kd, hx).call(this, (n) => {
20620
- b(this, ni, new ge(n)), h(this, yn) && (h(this, ni).x += A.stageW - (h(this, ar) + h(this, st).$width)), h(this, ni).y -= h(this, Da), h(this, ni).texture.frame = new gt(
20620
+ b(this, ni, new ge(n)), h(this, yn) && (h(this, ni).x += A.stageW - (h(this, ar) + h(this, nt).$width)), h(this, ni).y -= h(this, Da), h(this, ni).texture.frame = new gt(
20621
20621
  0,
20622
20622
  0,
20623
- Math.min(h(this, ni).width, h(this, st).$width - h(this, ar)),
20624
- Math.min(h(this, ni).height, h(this, st).$height)
20623
+ Math.min(h(this, ni).width, h(this, nt).$width - h(this, ar)),
20624
+ Math.min(h(this, ni).height, h(this, nt).$height)
20625
20625
  ), h(this, Nr).addChild(h(this, ni)), e.render(h(this, ni), { clear: !1 }), i();
20626
20626
  }, !1);
20627
20627
  }
@@ -20649,9 +20649,9 @@ const pt = class extends Jt {
20649
20649
  }
20650
20650
  };
20651
20651
  let he = pt;
20652
- La = new WeakMap(), su = new WeakMap(), Ws = new WeakMap(), Tt = new WeakMap(), Nr = new WeakMap(), mn = new WeakMap(), Rd = new WeakMap(), xi = new WeakMap(), Kn = new WeakMap(), st = new WeakMap(), Ui = new WeakMap(), Ke = new WeakMap(), Je = new WeakMap(), Aa = new WeakSet(), df = function() {
20652
+ La = new WeakMap(), su = new WeakMap(), Ws = new WeakMap(), Tt = new WeakMap(), Nr = new WeakMap(), mn = new WeakMap(), Rd = new WeakMap(), xi = new WeakMap(), Kn = new WeakMap(), nt = new WeakMap(), Ui = new WeakMap(), Ke = new WeakMap(), Je = new WeakMap(), Aa = new WeakSet(), df = function() {
20653
20653
  const e = h(this, Tt).style, i = parseFloat(e.fontSize || "0");
20654
- h(this, st).fontsize = i, h(this, st).pad_left = parseFloat(e.paddingLeft || "0"), h(this, st).pad_right = parseFloat(e.paddingRight || "0"), h(this, st).pad_top = parseFloat(e.paddingTop || "0"), h(this, st).pad_bottom = parseFloat(e.paddingBottom || "0"), h(this, st).$width = parseFloat(e.width || "0"), h(this, st).$height = parseFloat(e.height || "0"), this.position.set(h(this, st).pad_left, h(this, st).pad_top), b(this, yn, e.writingMode === "vertical-rl"), b(this, ou, 0), b(this, Da, 0);
20654
+ h(this, nt).fontsize = i, h(this, nt).pad_left = parseFloat(e.paddingLeft || "0"), h(this, nt).pad_right = parseFloat(e.paddingRight || "0"), h(this, nt).pad_top = parseFloat(e.paddingTop || "0"), h(this, nt).pad_bottom = parseFloat(e.paddingBottom || "0"), h(this, nt).$width = parseFloat(e.width || "0"), h(this, nt).$height = parseFloat(e.height || "0"), this.position.set(h(this, nt).pad_left, h(this, nt).pad_top), b(this, yn, e.writingMode === "vertical-rl"), b(this, ou, 0), b(this, Da, 0);
20655
20655
  const n = e.lineHeight ?? "0";
20656
20656
  b(this, Ua, h(this, yn) ? 0 : (n.slice(-2) === "px" ? parseFloat(n) : i * parseFloat(n) - i) / 2);
20657
20657
  }, ar = new WeakMap(), yn = new WeakMap(), ou = new WeakMap(), Da = new WeakMap(), kd = new WeakSet(), hx = function(e, i = !0) {
@@ -20817,15 +20817,15 @@ La = new WeakMap(), su = new WeakMap(), Ws = new WeakMap(), Tt = new WeakMap(),
20817
20817
  }
20818
20818
  Promise.resolve(h(this, Tt)).then((y) => {
20819
20819
  const g = y.cloneNode(!0);
20820
- return g.style.padding = "0px", g.style.paddingRight = h(this, ou) + "px", g.style.paddingTop = h(this, Da) + "px", g.style.left = "0px", g.style.top = "0px", g.style.width = h(this, st).$width - h(this, st).pad_left - h(this, st).pad_right + "px", g.style.height = h(this, st).$height - h(this, st).pad_top - h(this, st).pad_bottom + "px", h(this, Tt).hidden = i, g;
20820
+ return g.style.padding = "0px", g.style.paddingRight = h(this, ou) + "px", g.style.paddingTop = h(this, Da) + "px", g.style.left = "0px", g.style.top = "0px", g.style.width = h(this, nt).$width - h(this, nt).pad_left - h(this, nt).pad_right + "px", g.style.height = h(this, nt).$height - h(this, nt).pad_top - h(this, nt).pad_bottom + "px", h(this, Tt).hidden = i, g;
20821
20821
  }).then(l).then((y) => {
20822
20822
  y.setAttribute("xmlns", "http://www.w3.org/1999/xhtml");
20823
20823
  const g = new Image();
20824
- return g.src = `data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="${h(this, st).$width}px" height="${h(this, st).$height}px"><foreignObject x="0" y="0" width="100%" height="100%">${new XMLSerializer().serializeToString(y).replaceAll("#", "%23").replaceAll(`
20824
+ return g.src = `data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="${h(this, nt).$width}px" height="${h(this, nt).$height}px"><foreignObject x="0" y="0" width="100%" height="100%">${new XMLSerializer().serializeToString(y).replaceAll("#", "%23").replaceAll(`
20825
20825
  `, "%0A")}</foreignObject></svg>`, new Promise((w) => g.onload = () => w(g));
20826
20826
  }).then((y) => new Promise((g) => setTimeout(() => g(y), 100))).then((y) => {
20827
20827
  const g = document.createElement("canvas");
20828
- g.width = h(this, st).$width, g.height = h(this, st).$height, g.getContext("2d").drawImage(y, 0, 0), g.toBlob((w) => {
20828
+ g.width = h(this, nt).$width, g.height = h(this, nt).$height, g.getContext("2d").drawImage(y, 0, 0), g.toBlob((w) => {
20829
20829
  if (!w)
20830
20830
  return;
20831
20831
  const T = URL.createObjectURL(w);
@@ -21229,7 +21229,7 @@ const yt = class extends ui {
21229
21229
  {
21230
21230
  const d = JSON.parse(l);
21231
21231
  if (d.id ?? (d.id = h(this, ji).length), d.id === "break") {
21232
- h(this, Mt).dispBreak(d.pic);
21232
+ h(this, Mt).dispBreak(d);
21233
21233
  return;
21234
21234
  }
21235
21235
  b(this, cr, !1), d.delay = h(this, Fr), d.r ?? (d.r = ""), d.style ?? (d.style = ""), d.r_style ?? (d.r_style = "");
@@ -22017,9 +22017,9 @@ const Xn = class {
22017
22017
  _(this, ai, (t, e = this.currentTxtlayForeNeedErr, i = !0) => e.tagCh("| 《" + t + "》"));
22018
22018
  B(this, "goTxt", () => {
22019
22019
  });
22020
- B(this, "breakLine", () => {
22020
+ B(this, "breakLine", (t) => {
22021
22021
  });
22022
- B(this, "breakPage", () => {
22022
+ B(this, "breakPage", (t) => {
22023
22023
  });
22024
22024
  _(this, St, {});
22025
22025
  // しおりLoad時再読込
@@ -22112,7 +22112,15 @@ void main(void) {
22112
22112
  }, 1e3 / 60 * 10));
22113
22113
  }, { passive: !0 });
22114
22114
  }
22115
- a.cvsResize(), re.init(t, e, n, this, (v) => h(this, St)[v.layname].fore === v, i), Rt.init(s, t, i, a, l, n), gr.init(t), b(this, is, new ZC(t, e, i, n, s, a, h(this, Ei))), a.hFactoryCls.grp = () => new Rt(), a.hFactoryCls.txt = () => new re(), e.loadplugin = (v) => x(this, Vd, bx).call(this, v), e.snapshot = (v) => x(this, zd, gx).call(this, v), e.add_lay = (v) => x(this, Xd, xx).call(this, v), e.clear_lay = (v) => x(this, Yd, Ex).call(this, v), e.finish_trans = () => x(this, vo, Yh).call(this), e.lay = (v) => x(this, Wd, wx).call(this, v), e.trans = (v) => x(this, Kd, Tx).call(this, v), e.wt = (v) => x(this, tp, Ox).call(this, v), e.quake = (v) => x(this, ep, Ix).call(this, v), e.stop_quake = (v) => e.finish_trans(v), e.wq = (v) => e.wt(v), e.pause_tsy = (v) => x(this, sp, kx).call(this, v), e.resume_tsy = (v) => x(this, op, Nx).call(this, v), e.stop_tsy = (v) => x(this, np, Rx).call(this, v), e.tsy = (v) => x(this, ip, Cx).call(this, v), e.wait_tsy = (v) => x(this, rp, Mx).call(this, v), e.ch = (v) => x(this, mo, qh).call(this, v), e.clear_text = (v) => x(this, lp, Dx).call(this, v), e.current = (v) => h(this, Lu).call(this, v), e.endlink = (v) => x(this, up, Bx).call(this, v), e.er = (v) => x(this, cp, Fx).call(this, v), e.graph = (v) => x(this, fp, Ux).call(this, v), e.link = (v) => x(this, dp, Gx).call(this, v), e.r = (v) => x(this, pp, jx).call(this, v), e.rec_ch = (v) => x(this, Au, fy).call(this, v), e.rec_r = (v) => x(this, vp, Hx).call(this, v), e.reset_rec = (v) => x(this, mp, $x).call(this, v), e.ruby2 = (v) => x(this, yp, zx).call(this, v), e.span = (v) => x(this, _p, Vx).call(this, v), e.tcy = (v) => x(this, gp, Xx).call(this, v), e.add_face = (v) => Rt.add_face(v), e.wv = (v) => Rt.wv(v), e.dump_lay = (v) => x(this, bp, Wx).call(this, v), e.enable_event = (v) => x(this, xp, Yx).call(this, v), e.button = (v) => x(this, wp, qx).call(this, v), t.existsBreakline && (this.breakLine = () => h(this, ai).call(this, 'grp|{"id":"break","pic":"breakline"}')), t.existsBreakpage && (this.breakPage = () => h(this, ai).call(this, 'grp|{"id":"break","pic":"breakpage"}')), b(this, uo, Dy(String(t.oCfg.init.bg_color)));
22115
+ a.cvsResize(), re.init(t, e, n, this, (v) => h(this, St)[v.layname].fore === v, i), Rt.init(s, t, i, a, l, n), gr.init(t), b(this, is, new ZC(t, e, i, n, s, a, h(this, Ei))), a.hFactoryCls.grp = () => new Rt(), a.hFactoryCls.txt = () => new re(), e.loadplugin = (v) => x(this, Vd, bx).call(this, v), e.snapshot = (v) => x(this, zd, gx).call(this, v), e.add_lay = (v) => x(this, Xd, xx).call(this, v), e.clear_lay = (v) => x(this, Yd, Ex).call(this, v), e.finish_trans = () => x(this, vo, Yh).call(this), e.lay = (v) => x(this, Wd, wx).call(this, v), e.trans = (v) => x(this, Kd, Tx).call(this, v), e.wt = (v) => x(this, tp, Ox).call(this, v), e.quake = (v) => x(this, ep, Ix).call(this, v), e.stop_quake = (v) => e.finish_trans(v), e.wq = (v) => e.wt(v), e.pause_tsy = (v) => x(this, sp, kx).call(this, v), e.resume_tsy = (v) => x(this, op, Nx).call(this, v), e.stop_tsy = (v) => x(this, np, Rx).call(this, v), e.tsy = (v) => x(this, ip, Cx).call(this, v), e.wait_tsy = (v) => x(this, rp, Mx).call(this, v), e.ch = (v) => x(this, mo, qh).call(this, v), e.clear_text = (v) => x(this, lp, Dx).call(this, v), e.current = (v) => h(this, Lu).call(this, v), e.endlink = (v) => x(this, up, Bx).call(this, v), e.er = (v) => x(this, cp, Fx).call(this, v), e.graph = (v) => x(this, fp, Ux).call(this, v), e.link = (v) => x(this, dp, Gx).call(this, v), e.r = (v) => x(this, pp, jx).call(this, v), e.rec_ch = (v) => x(this, Au, fy).call(this, v), e.rec_r = (v) => x(this, vp, Hx).call(this, v), e.reset_rec = (v) => x(this, mp, $x).call(this, v), e.ruby2 = (v) => x(this, yp, zx).call(this, v), e.span = (v) => x(this, _p, Vx).call(this, v), e.tcy = (v) => x(this, gp, Xx).call(this, v), e.add_face = (v) => Rt.add_face(v), e.wv = (v) => Rt.wv(v), e.dump_lay = (v) => x(this, bp, Wx).call(this, v), e.enable_event = (v) => x(this, xp, Yx).call(this, v), e.button = (v) => x(this, wp, qx).call(this, v), t.existsBreakline && (this.breakLine = (v) => {
22116
+ delete v.visible, v.id = "break", v.pic = "breakline";
22117
+ const y = encodeURIComponent(JSON.stringify(v));
22118
+ h(this, ai).call(this, "grp|" + y);
22119
+ }), t.existsBreakpage && (this.breakPage = (v) => {
22120
+ delete v.visible, v.id = "break", v.pic = "breakpage";
22121
+ const y = encodeURIComponent(JSON.stringify(v));
22122
+ h(this, ai).call(this, "grp|" + y);
22123
+ }), b(this, uo, Dy(String(t.oCfg.init.bg_color)));
22116
22124
  const d = new Ri();
22117
22125
  d.beginFill(h(this, uo), 1).lineStyle(0, h(this, uo)).drawRect(0, 0, A.stageW, A.stageH).endFill(), h(this, Lt).addChild(d.clone()), h(this, ie).addChild(d), h(this, ie).visible = !1, h(this, Lt).name = "page:A", h(this, ie).name = "page:B", b(this, $i, i.stage), h(this, $i).addChild(h(this, ie)), h(this, $i).addChild(h(this, Lt)), h(this, $i).addChild(h(this, fo)), h(this, $i).addChild(h(this, Oe)), h(this, $i).name = "stage", i.ticker.add(h(this, Iu));
22118
22126
  const p = (v, y) => {
@@ -23814,7 +23822,7 @@ var sR = [TM, HM, wM, cM, GM, AM, VM, _M, BM], oR = /* @__PURE__ */ nR({
23814
23822
  defaultModifiers: sR
23815
23823
  });
23816
23824
  const { GamepadListener: aR } = require("gamepad.js");
23817
- var ti, os, Fe, Bu, Fu, my, Uu, yy, Gu, _y, rh, nh, ju, gy, ae, zi, Sn, Pn, Hu, as, oa, $u, zu, We, sh, oh, Vu, Tp, ow, Xu, go, Sp, aw, Wu, by, Pp, hw, Yu, xy, bo, Kh, xo, Op, lw, Ip, uw, Vi, Cp, cw, Mp, fw, ah, gf, On, wo, Eo, Rp, dw, ei;
23825
+ var ti, os, Fe, Bu, Fu, my, Uu, yy, Gu, _y, rh, nh, ju, gy, ae, zi, Sn, Pn, Hu, as, oa, $u, zu, He, sh, oh, Vu, Tp, ow, Xu, go, Sp, aw, Wu, by, Pp, hw, Yu, xy, bo, Kh, xo, Op, lw, Ip, uw, Vi, Cp, cw, Mp, fw, ah, gf, On, wo, Eo, Rp, dw, ei;
23818
23826
  class hR {
23819
23827
  constructor(t, e, i, n, s, o, a, l, u) {
23820
23828
  _(this, Fu);
@@ -23864,12 +23872,20 @@ class hR {
23864
23872
  _(this, zu, {
23865
23873
  getBoundingClientRect: (t = 0, e = 0) => DOMRect.fromRect({ x: t, y: e, width: 0, height: 0 })
23866
23874
  });
23867
- _(this, We, void 0);
23875
+ _(this, He, void 0);
23868
23876
  _(this, sh, void 0);
23869
23877
  _(this, oh, void 0);
23870
23878
  _(this, Vu, {
23871
23879
  placement: "bottom",
23872
- fallbackPlacements: ["top", "bottom"]
23880
+ modifiers: [
23881
+ {
23882
+ // Flip | Popper https://popper.js.org/docs/v2/modifiers/flip/
23883
+ name: "flip",
23884
+ options: {
23885
+ fallbackPlacements: ["top", "bottom"]
23886
+ }
23887
+ }
23888
+ ]
23873
23889
  });
23874
23890
  _(this, Xu, (t, e) => {
23875
23891
  });
@@ -23954,7 +23970,7 @@ class hR {
23954
23970
  <div class="sn_hint" role="tooltip">
23955
23971
  <span>Dummy</span>
23956
23972
  <div class="sn_hint_ar" data-popper-arrow></div>
23957
- </div>`), b(this, We, document.querySelector(".sn_hint")), b(this, sh, h(this, We).querySelector("span")), b(this, oh, oR(h(this, zu), h(this, We))), h(this, We).hidden = !0, i.stage.interactive = !0, A.isMobile ? i.stage.on("pointerdown", (g) => this.fire("click", g)) : h(this, ti).add(i.stage, "pointerdown", (g) => {
23973
+ </div>`), b(this, He, document.querySelector(".sn_hint")), b(this, sh, h(this, He).querySelector("span")), b(this, oh, oR(h(this, zu), h(this, He))), h(this, He).hidden = !0, i.stage.interactive = !0, A.isMobile ? i.stage.on("pointerdown", (g) => this.fire("click", g)) : h(this, ti).add(i.stage, "pointerdown", (g) => {
23958
23974
  switch (g.data.button) {
23959
23975
  case 0:
23960
23976
  this.fire("click", g);
@@ -24065,12 +24081,12 @@ class hR {
24065
24081
  a ? h(this, zi)[o] = () => this.main.resumeByJumpOrCall(t) : h(this, ae)[o] = () => this.main.resumeByJumpOrCall(t), e.on("pointerdown", (d) => this.fire(o, d));
24066
24082
  const l = t.hint ? () => x(this, Tp, ow).call(this, t, e) : () => {
24067
24083
  }, u = () => {
24068
- i(), h(this, We).hidden = !0;
24084
+ i(), h(this, He).hidden = !0;
24069
24085
  }, c = () => (l(), n());
24070
24086
  if (e.on("pointerover", c), e.on("pointerout", () => {
24071
24087
  h(this, Fe).isFocus(e) ? c() : u();
24072
24088
  }), e.on("pointerdown", () => {
24073
- h(this, We).hidden = !0;
24089
+ h(this, He).hidden = !0;
24074
24090
  const d = h(this, Fe).getFocus();
24075
24091
  s(), d instanceof gr && d.normal();
24076
24092
  }), e.on(
@@ -24094,10 +24110,10 @@ class hR {
24094
24110
  }
24095
24111
  }
24096
24112
  hideHint() {
24097
- h(this, We).hidden = !0;
24113
+ h(this, He).hidden = !0;
24098
24114
  }
24099
24115
  cvsResize() {
24100
- h(this, We).hidden = !0;
24116
+ h(this, He).hidden = !0;
24101
24117
  }
24102
24118
  // 予約イベントの発生待ちしない waitEvent()
24103
24119
  waitLimitedEvent(t, e) {
@@ -24163,17 +24179,17 @@ ti = new WeakMap(), os = new WeakMap(), Fe = new WeakMap(), Bu = new WeakMap(),
24163
24179
  n.local = Object.keys(h(this, ae)), n.global = Object.keys(h(this, zi)), console.log("🎍 wait event... %o", n);
24164
24180
  }
24165
24181
  return !0;
24166
- }, $u = new WeakMap(), zu = new WeakMap(), We = new WeakMap(), sh = new WeakMap(), oh = new WeakMap(), Vu = new WeakMap(), Tp = new WeakSet(), ow = function(t, e) {
24182
+ }, $u = new WeakMap(), zu = new WeakMap(), He = new WeakMap(), sh = new WeakMap(), oh = new WeakMap(), Vu = new WeakMap(), Tp = new WeakSet(), ow = function(t, e) {
24167
24183
  const i = e instanceof gr ? e.getBtnBounds() : e.getBounds();
24168
24184
  if (!(t[":タグ名"] === "link")) {
24169
24185
  const s = e.parent.parent;
24170
24186
  i.x += s.x, i.y += s.y;
24171
24187
  }
24172
24188
  if (!t.hint) {
24173
- h(this, We).hidden = !0;
24189
+ h(this, He).hidden = !0;
24174
24190
  return;
24175
24191
  }
24176
- h(this, We).style.cssText = `position:${h(this, We).style.position}; transform:${h(this, We).style.transform};` + (t.hint_style ?? ""), h(this, sh).style.cssText = "", h(this, sh).textContent = t.hint ?? "";
24192
+ h(this, He).style.cssText = `position:${h(this, He).style.position}; transform:${h(this, He).style.transform};` + (t.hint_style ?? ""), h(this, sh).style.cssText = "", h(this, sh).textContent = t.hint ?? "";
24177
24193
  try {
24178
24194
  const s = t.hint_opt ? { ...h(this, Vu), ...JSON.parse(t.hint_opt) } : h(this, Vu);
24179
24195
  h(this, oh).setOptions(s);
@@ -24185,7 +24201,7 @@ ti = new WeakMap(), os = new WeakMap(), Fe = new WeakMap(), Bu = new WeakMap(),
24185
24201
  y: this.sys.ofsTop4elm + i.y * this.sys.cvsScale,
24186
24202
  width: i.width,
24187
24203
  height: i.height
24188
- }), h(this, oh).update(), h(this, We).hidden = !1;
24204
+ }), h(this, oh).update(), h(this, He).hidden = !1;
24189
24205
  }, Xu = new WeakMap(), go = new WeakMap(), Sp = new WeakSet(), aw = function(t) {
24190
24206
  const e = K(t, "global", !1), i = e ? h(this, zi) : h(this, ae);
24191
24207
  for (const [n, s] of Object.entries(i))
@@ -24277,7 +24293,7 @@ ti = new WeakMap(), os = new WeakMap(), Fe = new WeakMap(), Bu = new WeakMap(),
24277
24293
  }
24278
24294
  return this.val.getVal("tmp:sn.auto.enabled") ? x(this, ah, gf).call(this, {
24279
24295
  time: Number(this.scrItr.isKidoku ? this.val.getVal("sys:sn.auto.msecLineWait_Kidoku") : this.val.getVal("sys:sn.auto.msecLineWait"))
24280
- }) : (K(t, "visible", !0) && this.layMng.breakLine(), x(this, as, oa).call(this, () => this.main.resume()));
24296
+ }) : (K(t, "visible", !0) && this.layMng.breakLine(t), x(this, as, oa).call(this, () => this.main.resume()));
24281
24297
  }, Ip = new WeakSet(), uw = function(t) {
24282
24298
  if (this.scrItr.recodePage(), this.val.getVal("tmp:sn.skip.enabled")) {
24283
24299
  if (!this.val.getVal("tmp:sn.skip.all") && // 未読で停止
@@ -24290,9 +24306,9 @@ ti = new WeakMap(), os = new WeakMap(), Fe = new WeakMap(), Bu = new WeakMap(),
24290
24306
  return x(this, ah, gf).call(this, {
24291
24307
  time: Number(this.scrItr.isKidoku ? this.val.getVal("sys:sn.auto.msecPageWait_Kidoku") : this.val.getVal("sys:sn.auto.msecPageWait"))
24292
24308
  });
24293
- K(t, "visible", !0) && this.layMng.breakPage();
24309
+ K(t, "visible", !0) && this.layMng.breakPage(t);
24294
24310
  const e = () => {
24295
- this.sndMng.clearCache(), this.main.resume();
24311
+ this.sndMng.clearCache(), h(this, He).hidden = !0, this.main.resume();
24296
24312
  };
24297
24313
  return x(this, as, oa).call(this, K(t, "er", !1) && this.layMng.currentTxtlayFore ? () => {
24298
24314
  this.hTag.er(t), e();
@@ -24360,7 +24376,7 @@ class r0 {
24360
24376
  this.fn = t, this.idx = e, this.csArg = i;
24361
24377
  }
24362
24378
  }
24363
- var Pt, At, et, Kt, Vt, In, qu, wy, To, hs, kp, ls, Zu, Ey, Ku, Ty, Ju, us, ha, So, Jh, Po, Cn, ce, Np, pw, Oo, Qh, Lp, vw, Qu, hh, Si, Ap, mw, Dp, yw, Mn, Rs, Bp, _w, Io, Co, tc, ec, ic, Pi, Fp, gw, Up, bw, Gp, xw, rc, Sy, jp, ww, Hp, Ew, $p, Tw, nc, Py, sc, Mo, tl, Ro, $r, zn, oc, Oy, ac, hc, Iy, zp, Vp, lc, Xp, Sw, He, Wp, Pw, uc, Cy, Yp, qp, Zp, Ow, Kp, Iw, Rn, cc, My, Jp, Cw, Qp, Mw, tv, ev, Rw, fc, lh, iv, kw, uh, bf, ch, rv, Nw, pr, nv, Lw, fh, xf, sv, Aw, vr, $e;
24379
+ var Pt, At, et, Kt, Vt, In, qu, wy, To, hs, kp, ls, Zu, Ey, Ku, Ty, Ju, us, ha, So, Jh, Po, Cn, ce, Np, pw, Oo, Qh, Lp, vw, Qu, hh, Si, Ap, mw, Dp, yw, Mn, Rs, Bp, _w, Io, Co, tc, ec, ic, Pi, Fp, gw, Up, bw, Gp, xw, rc, Sy, jp, ww, Hp, Ew, $p, Tw, nc, Py, sc, Mo, tl, Ro, $r, zn, oc, Oy, ac, hc, Iy, zp, Vp, lc, Xp, Sw, $e, Wp, Pw, uc, Cy, Yp, qp, Zp, Ow, Kp, Iw, Rn, cc, My, Jp, Cw, Qp, Mw, tv, ev, Rw, fc, lh, iv, kw, uh, bf, ch, rv, Nw, pr, nv, Lw, fh, xf, sv, Aw, vr, ze;
24364
24380
  const gi = class {
24365
24381
  constructor(t, e, i, n, s, o, a, l, u) {
24366
24382
  _(this, qu);
@@ -24512,7 +24528,7 @@ const gi = class {
24512
24528
  _(this, zp, /(\*{2,})([^\|]*)/);
24513
24529
  _(this, Vp, /\[macro\s/);
24514
24530
  _(this, lc, /\[endmacro[\s\]]/);
24515
- _(this, He, /* @__PURE__ */ Object.create(null));
24531
+ _(this, $e, /* @__PURE__ */ Object.create(null));
24516
24532
  _(this, Yp, /^\[(call|loadplugin)\s/);
24517
24533
  _(this, qp, /\bfn\s*=\s*[^\s\]]+/);
24518
24534
  _(this, Rn, !1);
@@ -24528,7 +24544,7 @@ const gi = class {
24528
24544
  aIfStk: [-1]
24529
24545
  });
24530
24546
  _(this, vr, []);
24531
- _(this, $e, -1);
24547
+ _(this, ze, -1);
24532
24548
  this.cfg = t, this.hTag = e, this.main = i, this.val = n, this.alzTagArg = s, this.runAnalyze = o, this.prpPrs = a, this.sndMng = l, this.sys = u, e.let_ml = (f) => x(this, Ap, mw).call(this, f), e.endlet_ml = () => !1, e.dump_stack = () => x(this, Dp, yw).call(this), e.dump_script = (f) => x(this, Bp, _w).call(this, f), e.else = // その他ifブロック開始
24533
24549
  e.elsif = // 別条件のifブロック開始
24534
24550
  e.endif = () => x(this, Fp, gw).call(this), e.if = (f) => x(this, Up, bw).call(this, f), e.call = (f) => x(this, Gp, xw).call(this, f), e.jump = (f) => x(this, jp, ww).call(this, f), e.page = (f) => x(this, Hp, Ew).call(this, f), e.pop_stack = (f) => x(this, $p, Tw).call(this, f), e.return = (f) => x(this, nc, Py).call(this, f), e.bracket2macro = (f) => x(this, Jp, Cw).call(this, f), e.char2macro = (f) => x(this, Qp, Mw).call(this, f), e.endmacro = (f) => x(this, nc, Py).call(this, f), e.macro = (f) => x(this, ev, Rw).call(this, f), e.load = (f) => x(this, iv, kw).call(this, f), e.reload_script = (f) => x(this, rv, Nw).call(this, f), e.record_place = () => x(this, nv, Lw).call(this), e.save = (f) => x(this, sv, Aw).call(this, f), t.oCfg.debug.token && b(this, ac, (f) => console.log(`🌱 トークン fn:${h(this, At)} idx:${h(this, et)} ln:${h(this, Kt)} token【${f}】`)), n.defTmp("const.sn.vctCallStk.length", () => h(this, Vt).length);
@@ -24666,7 +24682,7 @@ const gi = class {
24666
24682
  if (h(this, Vt).length > 0) {
24667
24683
  const s = h(this, Vt)[0];
24668
24684
  t = s.fn, e = s.idx;
24669
- const o = h(this, He)[t];
24685
+ const o = h(this, $e)[t];
24670
24686
  o && (i = o.len);
24671
24687
  }
24672
24688
  const n = this.val.getAreaKidoku(t);
@@ -24683,7 +24699,7 @@ const gi = class {
24683
24699
  return;
24684
24700
  const { fn: t, idx: e } = x(this, fh, xf).call(this), i = e - 1, n = i + ":" + t, s = h(this, vr).findIndex((a) => a.key === n);
24685
24701
  if (s > -1) {
24686
- b(this, $e, s);
24702
+ b(this, ze, s);
24687
24703
  return;
24688
24704
  }
24689
24705
  const o = {
@@ -24694,11 +24710,11 @@ const gi = class {
24694
24710
  retIdx: 0,
24695
24711
  retMark: { ...h(this, pr) }
24696
24712
  };
24697
- if (h(this, $e) >= 0) {
24698
- const a = h(this, vr)[h(this, $e)];
24713
+ if (h(this, ze) >= 0) {
24714
+ const a = h(this, vr)[h(this, ze)];
24699
24715
  o.retFn = a.fn, o.retIdx = a.idx + 1;
24700
24716
  }
24701
- ++Te(this, $e)._ === h(this, vr).length ? h(this, vr).push(o) : h(this, vr)[h(this, $e)] = o;
24717
+ ++Te(this, ze)._ === h(this, vr).length ? h(this, vr).push(o) : h(this, vr)[h(this, ze)] = o;
24702
24718
  }
24703
24719
  recodeDesign(t) {
24704
24720
  let e = "", i = 0;
@@ -24709,10 +24725,10 @@ const gi = class {
24709
24725
  } else
24710
24726
  e = h(this, At), i = h(this, et);
24711
24727
  t[":path"] = h(this, ls).call(this, e);
24712
- const s = x(this, Mn, Rs).call(this, h(this, He)[e], i);
24728
+ const s = x(this, Mn, Rs).call(this, h(this, $e)[e], i);
24713
24729
  t[":ln"] = s.ln, t[":col_s"] = s.col_s, t[":col_e"] = s.col_e;
24714
24730
  const o = i - 1;
24715
- t[":idx_tkn"] = o, t[":token"] = h(this, He)[e].aToken[o], this.sys.send2Dbg("_recodeDesign", t);
24731
+ t[":idx_tkn"] = o, t[":token"] = h(this, $e)[e].aToken[o], this.sys.send2Dbg("_recodeDesign", t);
24716
24732
  }
24717
24733
  replace(t, e) {
24718
24734
  h(this, Pt).aToken[t] = e;
@@ -24784,7 +24800,7 @@ Pt = new WeakMap(), At = new WeakMap(), et = new WeakMap(), Kt = new WeakMap(),
24784
24800
  if (u === 0)
24785
24801
  return l;
24786
24802
  for (let c = u - 1; c >= 0; --c) {
24787
- const f = h(this, Vt)[c], d = h(this, He)[f.fn], p = d.aToken[f.idx - 1], m = x(this, Mn, Rs).call(this, d, f.idx), v = nf(p);
24803
+ const f = h(this, Vt)[c], d = h(this, $e)[f.fn], p = d.aToken[f.idx - 1], m = x(this, Mn, Rs).call(this, d, f.idx), v = nf(p);
24788
24804
  l.push({
24789
24805
  fn: h(this, ls).call(this, f.fn),
24790
24806
  ln: m.ln,
@@ -24812,7 +24828,7 @@ Pt = new WeakMap(), At = new WeakMap(), et = new WeakMap(), Kt = new WeakMap(),
24812
24828
  if (i > 0) {
24813
24829
  console.info(e);
24814
24830
  for (let n = i - 1; n >= 0; --n) {
24815
- const s = h(this, Vt)[n], o = s.csArg[":hMp"], a = o ? o[":タグ名"] : void 0, l = s.csArg[":タグ名"] ?? "", u = x(this, Mn, Rs).call(this, h(this, He)[s.fn], s.idx);
24831
+ const s = h(this, Vt)[n], o = s.csArg[":hMp"], a = o ? o[":タグ名"] : void 0, l = s.csArg[":タグ名"] ?? "", u = x(this, Mn, Rs).call(this, h(this, $e)[s.fn], s.idx);
24816
24832
  console.info(
24817
24833
  `${i - n}つ前のコール元 fn:${s.fn} line:${u.ln} col:${u.col_s + 1}` + (a ? "([" + a + "]マクロ内)" : " ") + `で [${l} ...]をコール`
24818
24834
  );
@@ -24921,28 +24937,28 @@ Pt = new WeakMap(), At = new WeakMap(), et = new WeakMap(), Kt = new WeakMap(),
24921
24937
  }, jp = new WeakSet(), ww = function(t) {
24922
24938
  return K(t, "count", !0) || x(this, cc, My).call(this), h(this, Pi)[0] = -1, x(this, $r, zn).call(this, t.fn, t.label), !0;
24923
24939
  }, Hp = new WeakSet(), Ew = function(t) {
24924
- if (h(this, $e) === -1)
24940
+ if (h(this, ze) === -1)
24925
24941
  return !1;
24926
24942
  if (K(t, "clear", !1))
24927
- return b(this, vr, []), b(this, $e, -1), !1;
24943
+ return b(this, vr, []), b(this, ze, -1), !1;
24928
24944
  const { to: e } = t;
24929
24945
  if (!e)
24930
24946
  throw "clearかtoは必須です";
24931
- const i = h(this, $e);
24947
+ const i = h(this, ze);
24932
24948
  switch (e) {
24933
24949
  case "prev":
24934
- h(this, $e) > 0 && --Te(this, $e)._;
24950
+ h(this, ze) > 0 && --Te(this, ze)._;
24935
24951
  break;
24936
24952
  case "next":
24937
24953
  const a = h(this, vr).length;
24938
- h(this, $e) < a - 1 && ++Te(this, $e)._;
24954
+ h(this, ze) < a - 1 && ++Te(this, ze)._;
24939
24955
  break;
24940
24956
  default:
24941
24957
  throw `属性to「${e}」は異常です`;
24942
24958
  }
24943
- if (i === h(this, $e))
24959
+ if (i === h(this, ze))
24944
24960
  return !1;
24945
- const n = h(this, vr)[h(this, $e)], { fn: s, idx: o } = x(this, fh, xf).call(this);
24961
+ const n = h(this, vr)[h(this, ze)], { fn: s, idx: o } = x(this, fh, xf).call(this);
24946
24962
  return n.key === o + ":" + s ? !1 : x(this, uh, bf).call(this, { fn: n.retFn, index: n.retIdx }, n.retMark);
24947
24963
  }, $p = new WeakSet(), Tw = function(t) {
24948
24964
  if (K(t, "clear", !1))
@@ -24961,7 +24977,7 @@ Pt = new WeakMap(), At = new WeakMap(), et = new WeakMap(), Kt = new WeakMap(),
24961
24977
  const s = i[":resvToken"];
24962
24978
  s ? this.nextToken = () => (x(this, Mo, tl).call(this), s) : x(this, Mo, tl).call(this), i[":hEvt1Time"] && h(this, hh).pushLocalEvts(i[":hEvt1Time"]);
24963
24979
  const { fn: o, label: a } = t;
24964
- return o || a ? (x(this, $r, zn).call(this, o, a), !0) : e.fn in h(this, He) ? (x(this, uc, Cy).call(this, e), !1) : (x(this, $r, zn).call(this, e.fn, "", e.idx), !0);
24980
+ return o || a ? (x(this, $r, zn).call(this, o, a), !0) : e.fn in h(this, $e) ? (x(this, uc, Cy).call(this, e), !1) : (x(this, $r, zn).call(this, e.fn, "", e.idx), !0);
24965
24981
  }, sc = new WeakMap(), Mo = new WeakSet(), tl = function() {
24966
24982
  b(this, sc, ""), this.nextToken = x(this, oc, Oy);
24967
24983
  }, Ro = new WeakMap(), $r = new WeakSet(), zn = function(t = "", e = "", i = 0) {
@@ -24977,7 +24993,7 @@ Pt = new WeakMap(), At = new WeakMap(), et = new WeakMap(), Kt = new WeakMap(),
24977
24993
  return;
24978
24994
  }
24979
24995
  b(this, At, t);
24980
- const s = h(this, He)[t];
24996
+ const s = h(this, $e)[t];
24981
24997
  if (s) {
24982
24998
  b(this, Pt, s), this.analyzeInit();
24983
24999
  return;
@@ -25079,19 +25095,19 @@ Pt = new WeakMap(), At = new WeakMap(), et = new WeakMap(), Kt = new WeakMap(),
25079
25095
  m === 91 && (i += (p.match(/\n/g) ?? []).length, h(this, In).testTagLetml(p) && (u = !0));
25080
25096
  }
25081
25097
  throw u ? "[let_ml]の終端・[endlet_ml]がありません" : (kt.myTrace(`[jump系] ラベル【${n}】がありません`, "ET"), "Dummy");
25082
- }, He = new WeakMap(), Wp = new WeakSet(), Pw = function(t) {
25098
+ }, $e = new WeakMap(), Wp = new WeakSet(), Pw = function(t) {
25083
25099
  let e = "";
25084
25100
  try {
25085
25101
  e = "ScriptIterator.resolveScript";
25086
25102
  const i = h(this, In).resolveScript(t);
25087
- e = "ScriptIterator.replaceScript_Wildcard", x(this, Zp, Ow).call(this, i), h(this, He)[h(this, At)] = b(this, Pt, i);
25103
+ e = "ScriptIterator.replaceScript_Wildcard", x(this, Zp, Ow).call(this, i), h(this, $e)[h(this, At)] = b(this, Pt, i);
25088
25104
  } catch (i) {
25089
25105
  i instanceof Error ? e += `例外 mes=${i.message}(${i.name})` : e = i, this.main.errScript(e, !1);
25090
25106
  }
25091
25107
  this.val.loadScrWork(h(this, At));
25092
25108
  }, uc = new WeakSet(), Cy = function(t) {
25093
25109
  b(this, At, t.fn), b(this, et, t.idx);
25094
- const e = h(this, He)[h(this, At)];
25110
+ const e = h(this, $e)[h(this, At)];
25095
25111
  e && b(this, Pt, e), b(this, Kt, h(this, Pt).aLNum[t.idx]);
25096
25112
  }, Yp = new WeakMap(), qp = new WeakMap(), Zp = new WeakSet(), Ow = function(t) {
25097
25113
  for (let e = t.len - 1; e >= 0; --e) {
@@ -25177,7 +25193,7 @@ Pt = new WeakMap(), At = new WeakMap(), et = new WeakMap(), Kt = new WeakMap(),
25177
25193
  const s = String(this.val.getVal("save:const.sn.scriptFn")), o = Number(this.val.getVal("save:const.sn.scriptIdx"));
25178
25194
  return b(this, Pi, [...h(this, pr).aIfStk]), b(this, Vt, []), h(this, Si).cover(!0), h(this, Si).stopAllTw(), "index" in t ? (h(this, Si).playback(h(this, pr).hPages, () => {
25179
25195
  h(this, Si).cover(!1), b(this, ch, !0), x(this, $r, zn).call(this, t.fn ?? s, "", t.index ?? o);
25180
- }), !0) : (delete h(this, He)[s], h(this, Si).playback(
25196
+ }), !0) : (delete h(this, $e)[s], h(this, Si).playback(
25181
25197
  h(this, pr).hPages,
25182
25198
  "label" in t ? () => {
25183
25199
  h(this, Si).cover(!1), b(this, At, s), b(this, et, o), this.hTag.call({ fn: t.fn, label: t.label });
@@ -25187,15 +25203,15 @@ Pt = new WeakMap(), At = new WeakMap(), et = new WeakMap(), Kt = new WeakMap(),
25187
25203
  ), !0);
25188
25204
  }, ch = new WeakMap(), rv = new WeakSet(), Nw = function(t) {
25189
25205
  const e = this.val.getMark(0);
25190
- delete h(this, He)[Qc(e.hSave["const.sn.scriptFn"])];
25206
+ delete h(this, $e)[Qc(e.hSave["const.sn.scriptFn"])];
25191
25207
  const i = {};
25192
- for (const n in h(this, He))
25208
+ for (const n in h(this, $e))
25193
25209
  try {
25194
25210
  h(this, hs).call(this, n + "@");
25195
25211
  } catch {
25196
- i[n] = h(this, He)[n];
25212
+ i[n] = h(this, $e)[n];
25197
25213
  }
25198
- return b(this, He, i), t.do_rec = !1, x(this, uh, bf).call(this, t, e, !1);
25214
+ return b(this, $e, i), t.do_rec = !1, x(this, uh, bf).call(this, t, e, !1);
25199
25215
  }, pr = new WeakMap(), nv = new WeakSet(), Lw = function() {
25200
25216
  if (this.main.isDestroyed())
25201
25217
  return !1;
@@ -25223,16 +25239,16 @@ Pt = new WeakMap(), At = new WeakMap(), et = new WeakMap(), Kt = new WeakMap(),
25223
25239
  delete t[":タグ名"], delete t.place, t.text = t.text ?? "", h(this, pr).json = t, this.val.setMark(e, h(this, pr));
25224
25240
  const i = Number(this.val.getVal("sys:const.sn.save.place"));
25225
25241
  return e === i && this.val.setVal_Nochk("sys", "const.sn.save.place", i + 1), !1;
25226
- }, vr = new WeakMap(), $e = new WeakMap(), _(aa, kp, /(.+)\/crypto_prj\/([^\/]+)\/[^\.]+(\.\w+)/), // reload 再生成 Main に受け渡すため static
25242
+ }, vr = new WeakMap(), ze = new WeakMap(), _(aa, kp, /(.+)\/crypto_prj\/([^\/]+)\/[^\.]+(\.\w+)/), // reload 再生成 Main に受け渡すため static
25227
25243
  _(aa, Po, {}), _(aa, Cn, {});
25228
- var hi, Xi, ze, Wi, kn, ko, Ue, dc, Nn, dh, No, pc, vc, ph, ov, Dw, mc, yc, vh, mh, wf, Lo, Ao;
25244
+ var hi, Xi, Ve, Wi, kn, ko, Ue, dc, Nn, dh, No, pc, vc, ph, ov, Dw, mc, yc, vh, mh, wf, Lo, Ao;
25229
25245
  const ma = class {
25230
25246
  constructor(t) {
25231
25247
  _(this, ov);
25232
25248
  _(this, mh);
25233
25249
  _(this, hi, void 0);
25234
25250
  _(this, Xi, void 0);
25235
- _(this, ze, /* @__PURE__ */ Object.create(null));
25251
+ _(this, Ve, /* @__PURE__ */ Object.create(null));
25236
25252
  // タグ処理辞書
25237
25253
  _(this, Wi, void 0);
25238
25254
  _(this, kn, void 0);
@@ -25271,10 +25287,10 @@ const ma = class {
25271
25287
  }
25272
25288
  resumeByJumpOrCall(t) {
25273
25289
  if (t.url) {
25274
- h(this, ze).navigate_to(t), h(this, Ue).jumpJustBefore();
25290
+ h(this, Ve).navigate_to(t), h(this, Ue).jumpJustBefore();
25275
25291
  return;
25276
25292
  }
25277
- h(this, Wi).setVal_Nochk("tmp", "sn.eventArg", t.arg ?? ""), h(this, Wi).setVal_Nochk("tmp", "sn.eventLabel", t.label ?? ""), K(t, "call", !1) ? (h(this, Ue).subIdxToken(), this.resume(() => h(this, ze).call(t))) : (h(this, ze).clear_event({}), this.resume(() => h(this, ze).jump(t)));
25293
+ h(this, Wi).setVal_Nochk("tmp", "sn.eventArg", t.arg ?? ""), h(this, Wi).setVal_Nochk("tmp", "sn.eventLabel", t.label ?? ""), K(t, "call", !1) ? (h(this, Ue).subIdxToken(), this.resume(() => h(this, Ve).call(t))) : (h(this, Ve).clear_event({}), this.resume(() => h(this, Ve).jump(t)));
25278
25294
  }
25279
25295
  setLoop(t, e = "") {
25280
25296
  b(this, vh, t) ? this.resume() : this.stop(), this.sys.setTitleInfo(e ? ` -- ${e}中` : "");
@@ -25283,11 +25299,11 @@ const ma = class {
25283
25299
  h(this, dh).fire(t, e);
25284
25300
  }
25285
25301
  async destroy(t = 0) {
25286
- h(this, Lo) || (b(this, Lo, !0), h(this, vc) && (this.stop(), b(this, vh, !1), h(this, Nn).before_destroy(), t > 0 && await new Promise((e) => setTimeout(e, t)), b(this, ze, {}), h(this, dh).destroy(), h(this, Ue).destroy(), h(this, Nn).destroy(), h(this, dc).destroy(), h(this, Xi).ticker.remove(h(this, mc)), h(this, Ao) && h(this, Xi) && ma.cvs.parentNode.appendChild(h(this, Ao)), L0(), h(this, Xi).destroy(!0), this.sys.destroy()));
25302
+ h(this, Lo) || (b(this, Lo, !0), h(this, vc) && (this.stop(), b(this, vh, !1), h(this, Nn).before_destroy(), t > 0 && await new Promise((e) => setTimeout(e, t)), b(this, Ve, {}), h(this, dh).destroy(), h(this, Ue).destroy(), h(this, Nn).destroy(), h(this, dc).destroy(), h(this, Xi).ticker.remove(h(this, mc)), h(this, Ao) && h(this, Xi) && ma.cvs.parentNode.appendChild(h(this, Ao)), L0(), h(this, Xi).destroy(!0), this.sys.destroy()));
25287
25303
  }
25288
25304
  };
25289
25305
  let Ci = ma;
25290
- hi = new WeakMap(), Xi = new WeakMap(), ze = new WeakMap(), Wi = new WeakMap(), kn = new WeakMap(), ko = new WeakMap(), Ue = new WeakMap(), dc = new WeakMap(), Nn = new WeakMap(), dh = new WeakMap(), No = new WeakMap(), pc = new WeakMap(), vc = new WeakMap(), ph = new WeakMap(), ov = new WeakSet(), Dw = async function() {
25306
+ hi = new WeakMap(), Xi = new WeakMap(), Ve = new WeakMap(), Wi = new WeakMap(), kn = new WeakMap(), ko = new WeakMap(), Ue = new WeakMap(), dc = new WeakMap(), Nn = new WeakMap(), dh = new WeakMap(), No = new WeakMap(), pc = new WeakMap(), vc = new WeakMap(), ph = new WeakMap(), ov = new WeakSet(), Dw = async function() {
25291
25307
  var n;
25292
25308
  const t = (n = document.createElement("canvas")) == null ? void 0 : n.getContext("2d");
25293
25309
  if (!t)
@@ -25302,7 +25318,7 @@ hi = new WeakMap(), Xi = new WeakMap(), ze = new WeakMap(), Wi = new WeakMap(),
25302
25318
  resolution: globalThis.devicePixelRatio ?? 1
25303
25319
  // 理想
25304
25320
  }, i = document.getElementById(h(this, ph));
25305
- i && (b(this, Ao, i.cloneNode(!0)), h(this, Ao).id = h(this, ph), e.view = i), b(this, Xi, new Tb(e)), ma.cvs = h(this, Xi).view, i || (document.body.appendChild(ma.cvs), ma.cvs.id = h(this, ph)), b(this, Wi, new af(h(this, hi), h(this, ze))), b(this, kn, new Ns(h(this, Wi), h(this, hi).oCfg.init.escape ?? "\\")), await Promise.allSettled(this.sys.init(h(this, ze), h(this, Xi), h(this, Wi), this)), h(this, ze).title({ text: h(this, hi).oCfg.book.title || "SKYNovel" }), b(this, ko, new zC(h(this, hi), h(this, ze), h(this, Wi), this, this.sys)), b(this, Ue, new aa(h(this, hi), h(this, ze), this, h(this, Wi), h(this, pc), () => x(this, mh, wf).call(this), h(this, kn), h(this, ko), this.sys)), b(this, dc, new kt(this.sys, h(this, ze), h(this, Ue))), b(this, Nn, new Ls(h(this, hi), h(this, ze), h(this, Xi), h(this, Wi), this, h(this, Ue), this.sys, h(this, ko), h(this, pc), h(this, kn))), b(this, dh, new hR(h(this, hi), h(this, ze), h(this, Xi), this, h(this, Nn), h(this, Wi), h(this, ko), h(this, Ue), this.sys)), h(this, Xi).ticker.add(h(this, mc)), this.resumeByJumpOrCall({ fn: "main" }), b(this, vc, !0);
25321
+ i && (b(this, Ao, i.cloneNode(!0)), h(this, Ao).id = h(this, ph), e.view = i), b(this, Xi, new Tb(e)), ma.cvs = h(this, Xi).view, i || (document.body.appendChild(ma.cvs), ma.cvs.id = h(this, ph)), b(this, Wi, new af(h(this, hi), h(this, Ve))), b(this, kn, new Ns(h(this, Wi), h(this, hi).oCfg.init.escape ?? "\\")), await Promise.allSettled(this.sys.init(h(this, Ve), h(this, Xi), h(this, Wi), this)), h(this, Ve).title({ text: h(this, hi).oCfg.book.title || "SKYNovel" }), b(this, ko, new zC(h(this, hi), h(this, Ve), h(this, Wi), this, this.sys)), b(this, Ue, new aa(h(this, hi), h(this, Ve), this, h(this, Wi), h(this, pc), () => x(this, mh, wf).call(this), h(this, kn), h(this, ko), this.sys)), b(this, dc, new kt(this.sys, h(this, Ve), h(this, Ue))), b(this, Nn, new Ls(h(this, hi), h(this, Ve), h(this, Xi), h(this, Wi), this, h(this, Ue), this.sys, h(this, ko), h(this, pc), h(this, kn))), b(this, dh, new hR(h(this, hi), h(this, Ve), h(this, Xi), this, h(this, Nn), h(this, Wi), h(this, ko), h(this, Ue), this.sys)), h(this, Xi).ticker.add(h(this, mc)), this.resumeByJumpOrCall({ fn: "main" }), b(this, vc, !0);
25306
25322
  }, mc = new WeakMap(), yc = new WeakMap(), vh = new WeakMap(), mh = new WeakSet(), wf = function() {
25307
25323
  for (; h(this, vh); ) {
25308
25324
  let t = h(this, Ue).nextToken();
@@ -25335,7 +25351,7 @@ hi = new WeakMap(), Xi = new WeakMap(), ze = new WeakMap(), Wi = new WeakMap(),
25335
25351
  if (h(this, Ue).isBreak(t))
25336
25352
  return;
25337
25353
  const i = xC(t.slice(1));
25338
- i.name = h(this, kn).getValAmpersand(i.name), i.text = String(h(this, kn).parse(i.text)), h(this, ze).let(i);
25354
+ i.name = h(this, kn).getValAmpersand(i.name), i.text = String(h(this, kn).parse(i.text)), h(this, Ve).let(i);
25339
25355
  continue;
25340
25356
  }
25341
25357
  if (t.charAt(1) === "&")