@famibee/skynovel 2.0.2 → 2.0.3

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.
Files changed (121) hide show
  1. package/dist/Button.js +36 -34
  2. package/dist/Button.js.map +1 -1
  3. package/dist/CallStack.js +11 -6
  4. package/dist/CallStack.js.map +1 -1
  5. package/dist/CmnInterface.js +13 -11
  6. package/dist/CmnInterface.js.map +1 -1
  7. package/dist/CmnLib.js +58 -56
  8. package/dist/CmnLib.js.map +1 -1
  9. package/dist/Config.js +9 -7
  10. package/dist/Config.js.map +1 -1
  11. package/dist/ConfigBase.js +52 -49
  12. package/dist/ConfigBase.js.map +1 -1
  13. package/dist/DebugMng.js +9 -6
  14. package/dist/DebugMng.js.map +1 -1
  15. package/dist/EventListenerCtn.js +6 -4
  16. package/dist/EventListenerCtn.js.map +1 -1
  17. package/dist/EventMng.js +522 -417
  18. package/dist/EventMng.js.map +1 -1
  19. package/dist/Grammar.js +22 -20
  20. package/dist/Grammar.js.map +1 -1
  21. package/dist/GrpLayer.js +58 -57
  22. package/dist/GrpLayer.js.map +1 -1
  23. package/dist/Layer.js +66 -64
  24. package/dist/Layer.js.map +1 -1
  25. package/dist/LayerMng.js +461 -441
  26. package/dist/LayerMng.js.map +1 -1
  27. package/dist/Main.js +69 -67
  28. package/dist/Main.js.map +1 -1
  29. package/dist/PropParser.js +23 -19
  30. package/dist/PropParser.js.map +1 -1
  31. package/dist/Reading.js +422 -418
  32. package/dist/Reading.js.map +1 -1
  33. package/dist/RubySpliter.js +4 -2
  34. package/dist/RubySpliter.js.map +1 -1
  35. package/dist/ScriptIterator.js +374 -370
  36. package/dist/ScriptIterator.js.map +1 -1
  37. package/dist/SndBuf.js +643 -622
  38. package/dist/SndBuf.js.map +1 -1
  39. package/dist/SoundMng.js +59 -60
  40. package/dist/SoundMng.js.map +1 -1
  41. package/dist/SpritesMng.js +135 -129
  42. package/dist/SpritesMng.js.map +1 -1
  43. package/dist/SysBase.js +985 -950
  44. package/dist/SysBase.js.map +1 -1
  45. package/dist/TxtLayer.js +558 -551
  46. package/dist/TxtLayer.js.map +1 -1
  47. package/dist/Variable.js +47 -45
  48. package/dist/Variable.js.map +1 -1
  49. package/dist/chunk.js +11 -9
  50. package/dist/gamepad.js +396 -660
  51. package/dist/gamepad.js.map +1 -1
  52. package/dist/pixi.js +2631 -2593
  53. package/dist/pixi.js.map +1 -1
  54. package/dist/platform.js +6 -4
  55. package/dist/platform.js.map +1 -1
  56. package/dist/rolldown-runtime.js +20 -0
  57. package/dist/web.js +418 -418
  58. package/dist/web.js.map +1 -1
  59. package/dist_app/Button.js +36 -34
  60. package/dist_app/Button.js.map +1 -1
  61. package/dist_app/CallStack.js +11 -6
  62. package/dist_app/CallStack.js.map +1 -1
  63. package/dist_app/CmnInterface.js +13 -11
  64. package/dist_app/CmnInterface.js.map +1 -1
  65. package/dist_app/CmnLib.js +58 -56
  66. package/dist_app/CmnLib.js.map +1 -1
  67. package/dist_app/Config.js +9 -7
  68. package/dist_app/Config.js.map +1 -1
  69. package/dist_app/ConfigBase.js +52 -49
  70. package/dist_app/ConfigBase.js.map +1 -1
  71. package/dist_app/DebugMng.js +9 -6
  72. package/dist_app/DebugMng.js.map +1 -1
  73. package/dist_app/EventListenerCtn.js +6 -4
  74. package/dist_app/EventListenerCtn.js.map +1 -1
  75. package/dist_app/EventMng.js +522 -417
  76. package/dist_app/EventMng.js.map +1 -1
  77. package/dist_app/Grammar.js +22 -20
  78. package/dist_app/Grammar.js.map +1 -1
  79. package/dist_app/GrpLayer.js +58 -57
  80. package/dist_app/GrpLayer.js.map +1 -1
  81. package/dist_app/Layer.js +66 -64
  82. package/dist_app/Layer.js.map +1 -1
  83. package/dist_app/LayerMng.js +461 -441
  84. package/dist_app/LayerMng.js.map +1 -1
  85. package/dist_app/Main.js +69 -67
  86. package/dist_app/Main.js.map +1 -1
  87. package/dist_app/PropParser.js +23 -19
  88. package/dist_app/PropParser.js.map +1 -1
  89. package/dist_app/Reading.js +422 -418
  90. package/dist_app/Reading.js.map +1 -1
  91. package/dist_app/RubySpliter.js +4 -2
  92. package/dist_app/RubySpliter.js.map +1 -1
  93. package/dist_app/ScriptIterator.js +374 -370
  94. package/dist_app/ScriptIterator.js.map +1 -1
  95. package/dist_app/SndBuf.js +643 -622
  96. package/dist_app/SndBuf.js.map +1 -1
  97. package/dist_app/SoundMng.js +59 -60
  98. package/dist_app/SoundMng.js.map +1 -1
  99. package/dist_app/SpritesMng.js +135 -129
  100. package/dist_app/SpritesMng.js.map +1 -1
  101. package/dist_app/SysBase.js +985 -950
  102. package/dist_app/SysBase.js.map +1 -1
  103. package/dist_app/TxtLayer.js +558 -551
  104. package/dist_app/TxtLayer.js.map +1 -1
  105. package/dist_app/Variable.js +47 -45
  106. package/dist_app/Variable.js.map +1 -1
  107. package/dist_app/app.js +62 -63
  108. package/dist_app/app.js.map +1 -1
  109. package/dist_app/appMain.js +11 -11
  110. package/dist_app/appMain.js.map +1 -1
  111. package/dist_app/chunk.js +11 -9
  112. package/dist_app/gamepad.js +396 -660
  113. package/dist_app/gamepad.js.map +1 -1
  114. package/dist_app/pixi.js +2028 -1990
  115. package/dist_app/pixi.js.map +1 -1
  116. package/dist_app/platform.js +6 -4
  117. package/dist_app/platform.js.map +1 -1
  118. package/dist_app/preload.js +1 -1
  119. package/dist_app/preload.js.map +1 -1
  120. package/dist_app/rolldown-runtime.js +20 -0
  121. package/package.json +20 -21
@@ -1,19 +1,22 @@
1
- import { a as RPN_COMP_CHIN, d as getFn, l as argChk_Num, s as argChk_Boolean, t as CmnLib } from "./CmnLib.js";
2
- import { t as creSAVEDATA } from "./CmnInterface.js";
3
- import { c as Loader } from "./pixi.js";
4
- import "./EventListenerCtn.js";
5
- import { n as SEARCH_PATH_ARG_EXT } from "./ConfigBase.js";
6
- import { t as DebugMng } from "./DebugMng.js";
7
- import { n as ReadingState, r as CmnTween, t as Reading } from "./Reading.js";
8
- import { t as RubySpliter } from "./RubySpliter.js";
9
- import { a as AnalyzeTagArg, i as tagToken2Name_Args, r as tagToken2Name, t as Grammar } from "./Grammar.js";
10
- import { n as creCSArg, r as creMP, t as CallStack } from "./CallStack.js";
11
- import { t as BUF_BGM } from "./SndBuf.js";
12
- var BreakState = /* @__PURE__ */ function(e) {
13
- return e[e.Running = 0] = "Running", e[e.Wait = 1] = "Wait", e[e.Break = 2] = "Break", e[e.Breaking = 3] = "Breaking", e[e.Step = 4] = "Step", e[e.Stepping = 5] = "Stepping", e[e.StepOuting = 6] = "StepOuting", e[e.StepOut = 7] = "StepOut", e;
14
- }(BreakState || {}), SndProcOnLoad = /* @__PURE__ */ function(e) {
15
- return e[e.MINIMAL_STOP = 0] = "MINIMAL_STOP", e[e.NO_TOUCH = 1] = "NO_TOUCH", e[e.ALL_STOP_AND_PLAY = 2] = "ALL_STOP_AND_PLAY", e;
16
- }(SndProcOnLoad || {}), ScriptIterator = class C {
1
+ import { a as e, d as t, l as n, s as r, t as i } from "./CmnLib.js";
2
+ import { t as a } from "./CmnInterface.js";
3
+ import { c as o } from "./pixi.js";
4
+ import { n as s } from "./ConfigBase.js";
5
+ import { t as c } from "./DebugMng.js";
6
+ import { n as l, r as u, t as d } from "./Reading.js";
7
+ import { t as f } from "./RubySpliter.js";
8
+ import { a as p, i as m, r as h, t as g } from "./Grammar.js";
9
+ import { n as _, r as v, t as y } from "./CallStack.js";
10
+ import "./SndBuf.js";
11
+ //#region src/sn/ScriptIterator.ts
12
+ var b = class b {
13
+ cfg;
14
+ hTag;
15
+ main;
16
+ val;
17
+ prpPrs;
18
+ sndMng;
19
+ sys;
17
20
  #e = {
18
21
  aToken: [""],
19
22
  len: 1,
@@ -42,28 +45,28 @@ var BreakState = /* @__PURE__ */ function(e) {
42
45
  }
43
46
  #i = [];
44
47
  #a;
45
- #o = new AnalyzeTagArg();
46
- constructor(e, u, d, f, m, h, g) {
47
- this.cfg = e, this.hTag = u, this.main = d, this.val = f, this.prpPrs = m, this.sndMng = h, this.sys = g, u.let_ml = (e) => this.#k(e), u.endlet_ml = () => !1, u.dump_stack = () => this.#A(), u.dump_script = (e) => this.#M(e), u.else = u.elsif = u.endif = () => this.#z(), u.if = (e) => this.#B(e), u.call = (e) => this.#V(e), u.jump = (e) => this.#U(e), u.pop_stack = (e) => this.#W(e), u.return = (e) => this.#G(e), u.bracket2macro = (e) => this.#fe(e), u.char2macro = (e) => this.#pe(e), u.endmacro = (e) => this.#G(e), u.macro = (e) => this.#he(e), u.load = (e) => this.#ve(e), u.reload_script = (e) => this.#ye(e), u.record_place = () => this.#xe(), u.save = (e) => this.#Se(e), e.oCfg.debug.token && (this.#Z = (e) => {
48
+ #o = new p();
49
+ constructor(e, t, n, r, a, o, s) {
50
+ this.cfg = e, this.hTag = t, this.main = n, this.val = r, this.prpPrs = a, this.sndMng = o, this.sys = s, t.let_ml = (e) => this.#k(e), t.endlet_ml = () => !1, t.dump_stack = () => this.#A(), t.dump_script = (e) => this.#M(e), t.else = t.elsif = t.endif = () => this.#z(), t.if = (e) => this.#B(e), t.call = (e) => this.#V(e), t.jump = (e) => this.#U(e), t.pop_stack = (e) => this.#W(e), t.return = (e) => this.#G(e), t.bracket2macro = (e) => this.#fe(e), t.char2macro = (e) => this.#pe(e), t.endmacro = (e) => this.#G(e), t.macro = (e) => this.#he(e), t.load = (e) => this.#ve(e), t.reload_script = (e) => this.#ye(e), t.record_place = () => this.#xe(), t.save = (e) => this.#Se(e), e.oCfg.debug.token && (this.#Z = (e) => {
48
51
  e.trim() !== "" && console.log(`🌱 トークン ${this.#t}:${String(this.#r)} (i:${String(this.#n)} cs:${String(this.#i.length)}) %c【${e}】`, "background-color:#350;");
49
- }), e.oCfg.debug.tag && (this.#S = (e) => console.log(`🌲 タグ解析 ${this.#t}:${String(this.#r)} (i:${String(this.#n)} cs:${String(this.#i.length)}) %c[${e} %o]`, "background-color:#30B;", this.#o.hPrm)), f.defTmp("const.sn.aIfStk.length", () => this.#R.length), f.defTmp("const.sn.vctCallStk.length", () => this.#i.length), this.#a = new Grammar(e);
50
- let _ = e.oCfg.init.escape;
51
- if (this.#a.setEscape(_), RubySpliter.setEscape(_), CmnLib.isDbg) {
52
- this.#c, g.addHook((e, u) => this.#c[e]?.(u)), this.isBreak = (e) => this.#y(e);
52
+ }), e.oCfg.debug.tag && (this.#S = (e) => console.log(`🌲 タグ解析 ${this.#t}:${String(this.#r)} (i:${String(this.#n)} cs:${String(this.#i.length)}) %c[${e} %o]`, "background-color:#30B;", this.#o.hPrm)), r.defTmp("const.sn.aIfStk.length", () => this.#R.length), r.defTmp("const.sn.vctCallStk.length", () => this.#i.length), this.#a = new g(e);
53
+ let c = e.oCfg.init.escape;
54
+ if (this.#a.setEscape(c), f.setEscape(c), i.isDbg) {
55
+ this.#c, s.addHook((e, t) => this.#c[e]?.(t)), this.isBreak = (e) => this.#y(e);
53
56
  let e = () => this.analyzeInit();
54
57
  this.analyzeInit = () => {
55
58
  this.analyzeInit = () => {}, this.sys.send2Dbg("hi", {});
56
- }, this.#c.auth = (u) => {
57
- let d = u.hBreakpoint.hFn2hLineBP;
58
- for (let [e, u] of Object.entries(d)) this.#s(e, u);
59
- C.#_ = {};
60
- for (let e of u.hBreakpoint.aFunc) C.#_[e.name] = 1;
61
- if (u.stopOnEntry) {
62
- let u;
63
- for (; u = this.nextToken();) {
64
- let e = u.charCodeAt(0);
65
- if (e === 91 || e === 38 || e === 42 && u.length === 1) break;
66
- e === 10 && (this.#r += u.length);
59
+ }, this.#c.auth = (t) => {
60
+ let n = t.hBreakpoint.hFn2hLineBP;
61
+ for (let [e, t] of Object.entries(n)) this.#s(e, t);
62
+ b.#_ = {};
63
+ for (let e of t.hBreakpoint.aFunc) b.#_[e.name] = 1;
64
+ if (t.stopOnEntry) {
65
+ let t;
66
+ for (; t = this.nextToken();) {
67
+ let e = t.charCodeAt(0);
68
+ if (e === 91 || e === 38 || e === 42 && t.length === 1) break;
69
+ e === 10 && (this.#r += t.length);
67
70
  }
68
71
  this.sys.callHook("stopOnEntry", {}), this.analyzeInit = e, this.analyzeInit();
69
72
  } else this.noticeWait = () => {
@@ -73,8 +76,8 @@ var BreakState = /* @__PURE__ */ function(e) {
73
76
  } else this.recodeDesign = () => {};
74
77
  }
75
78
  noticeWait = () => {};
76
- #s(e, u) {
77
- C.#g[this.#u(e)] = u;
79
+ #s(e, t) {
80
+ b.#g[this.#u(e)] = t;
78
81
  }
79
82
  destroy() {
80
83
  this.isBreak = this.#xe = () => !1;
@@ -82,18 +85,18 @@ var BreakState = /* @__PURE__ */ function(e) {
82
85
  #c = {
83
86
  auth: () => {},
84
87
  disconnect: () => {
85
- C.#g = {}, C.#_ = {}, this.isBreak = () => !1, this.#c.continue({}), this.#v = BreakState.Running;
88
+ b.#g = {}, b.#_ = {}, this.isBreak = () => !1, this.#c.continue({}), this.#v = 0;
86
89
  },
87
90
  restart: () => {
88
91
  this.isBreak = () => !1;
89
92
  },
90
93
  add_break: (e) => this.#s(e.fn, e.o),
91
94
  data_break: (e) => {
92
- this.#v === BreakState.Running && (this.#v = BreakState.Wait, this.main.setLoop(!1, `変数 ${String(e.dataId)}【${String(e.old_v)}】→【${String(e.new_v)}】データブレーク`), this.sys.callHook("stopOnDataBreakpoint", {}), this.sys.send2Dbg("stopOnDataBreakpoint", {}));
95
+ this.#v === 0 && (this.#v = 1, this.main.setLoop(!1, `変数 ${String(e.dataId)}【${String(e.old_v)}】→【${String(e.new_v)}】データブレーク`), this.sys.callHook("stopOnDataBreakpoint", {}), this.sys.send2Dbg("stopOnDataBreakpoint", {}));
93
96
  },
94
97
  set_func_break: (e) => {
95
- C.#_ = {};
96
- for (let u of e.a) C.#_[u.name] = 1;
98
+ b.#_ = {};
99
+ for (let t of e.a) b.#_[t.name] = 1;
97
100
  this.sys.send2Dbg(e.ri, {});
98
101
  },
99
102
  stack: (e) => this.sys.send2Dbg(e.ri, { a: this.#x() }),
@@ -101,161 +104,161 @@ var BreakState = /* @__PURE__ */ function(e) {
101
104
  this.sys.send2Dbg(e.ri, { v: this.prpPrs.parse(e.txt) });
102
105
  },
103
106
  continue: () => {
104
- this.#h() || (this.#n -= this.#m, this.#v = BreakState.Breaking, this.main.setLoop(!0), this.main.resume());
107
+ this.#h() || (this.#n -= this.#m, this.#v = 3, this.main.setLoop(!0), this.main.resume());
105
108
  },
106
109
  stepover: (e) => this.#d(e),
107
110
  stepin: () => {
108
111
  if (this.#h()) return;
109
112
  let e = this.#e.aToken[this.#n - this.#m];
110
- this.sys.callHook(`stopOnStep${this.#_e.test(e ?? "") ? "In" : ""}`, {}), this.#n -= this.#m, this.#v = this.#v === BreakState.Wait ? BreakState.Step : BreakState.Stepping, this.main.setLoop(!0), this.main.resume();
113
+ this.sys.callHook(`stopOnStep${this.#_e.test(e ?? "") ? "In" : ""}`, {}), this.#n -= this.#m, this.#v = this.#v === 1 ? 4 : 5, this.main.setLoop(!0), this.main.resume();
111
114
  },
112
115
  stepout: (e) => {
113
116
  this.#h() || (this.#i.length > 0 ? this.#f(!0) : this.#d(e));
114
117
  },
115
118
  pause: () => {
116
- this.#v = BreakState.Step, this.main.setLoop(!1, "一時停止"), this.sys.send2Dbg("stopOnStep", {});
119
+ this.#v = 4, this.main.setLoop(!1, "一時停止"), this.sys.send2Dbg("stopOnStep", {});
117
120
  },
118
121
  stopOnEntry: () => {
119
- this.#v = BreakState.Step, this.main.setLoop(!1, "一時停止"), this.sys.send2Dbg("stopOnEntry", {});
122
+ this.#v = 4, this.main.setLoop(!1, "一時停止"), this.sys.send2Dbg("stopOnEntry", {});
120
123
  }
121
124
  };
122
- #l = (e) => this.cfg.searchPath(e, SEARCH_PATH_ARG_EXT.SCRIPT);
125
+ #l = (e) => this.cfg.searchPath(e, s.SCRIPT);
123
126
  #u = (e) => this.sys.pathBaseCnvSnPath4Dbg + this.#l(e);
124
127
  #d(e) {
125
128
  if (this.#h()) return;
126
- let u = this.#e.aToken[this.#n - this.#m];
127
- this.#_e.test(u ?? "") ? this.#f(!1) : (this.sys.callHook("stopOnStep", {}), this.#c.stepin(e));
129
+ let t = this.#e.aToken[this.#n - this.#m];
130
+ this.#_e.test(t ?? "") ? this.#f(!1) : (this.sys.callHook("stopOnStep", {}), this.#c.stepin(e));
128
131
  }
129
132
  #f(e) {
130
- this.sys.callHook(`stopOnStep${e ? "Out" : ""}`, {}), this.#p = this.#i.length - (e ? 1 : 0), this.#n -= this.#m, this.#v = e ? BreakState.StepOut : BreakState.StepOuting, this.main.setLoop(!0), this.main.resume();
133
+ this.sys.callHook(`stopOnStep${e ? "Out" : ""}`, {}), this.#p = this.#i.length - +!!e, this.#n -= this.#m, this.#v = e ? 7 : 6, this.main.setLoop(!0), this.main.resume();
131
134
  }
132
135
  #p = 0;
133
136
  get #m() {
134
- return this.#v === BreakState.Break || this.#v === BreakState.Step ? 1 : 0;
137
+ return +(this.#v === 2 || this.#v === 4);
135
138
  }
136
139
  #h() {
137
140
  return this.#n < this.#e.len ? !1 : (this.sys.callHook("stopOnEntry", {}), this.main.setLoop(!1, "スクリプト終端です isIdxOverLast"), !0);
138
141
  }
139
142
  static #g = {};
140
143
  static #_ = {};
141
- #v = BreakState.Running;
144
+ #v = 0;
142
145
  isBreak = (e) => !1;
143
146
  #y(e) {
144
147
  switch (this.#v) {
145
- case BreakState.StepOuting:
146
- this.#b(), this.#v = BreakState.StepOut;
148
+ case 6:
149
+ this.#b(), this.#v = 7;
147
150
  break;
148
- case BreakState.StepOut:
151
+ case 7:
149
152
  if (this.#i.length !== this.#p) break;
150
- return this.#v = BreakState.Step, this.main.setLoop(!1, "ステップ実行"), this.sys.send2Dbg("stopOnStep", {}), !0;
151
- case BreakState.Stepping:
152
- this.#b(), this.#v = BreakState.Step;
153
+ return this.#v = 4, this.main.setLoop(!1, "ステップ実行"), this.sys.send2Dbg("stopOnStep", {}), !0;
154
+ case 5:
155
+ this.#b(), this.#v = 4;
153
156
  break;
154
- case BreakState.Step: return this.#b(), this.main.setLoop(!1, "ステップ実行"), this.sys.send2Dbg("stopOnStep", {}), !0;
155
- case BreakState.Breaking:
156
- this.#b(), this.#v = BreakState.Running;
157
+ case 4: return this.#b(), this.main.setLoop(!1, "ステップ実行"), this.sys.send2Dbg("stopOnStep", {}), !0;
158
+ case 3:
159
+ this.#b(), this.#v = 0;
157
160
  break;
158
161
  default:
159
- if (tagToken2Name(e) in C.#_) return this.#v = BreakState.Break, this.main.setLoop(!1, `関数 ${e} ブレーク`), this.sys.callHook("stopOnBreakpoint", {}), this.sys.send2Dbg("stopOnBreakpoint", {}), !0;
162
+ if (h(e) in b.#_) return this.#v = 2, this.main.setLoop(!1, `関数 ${e} ブレーク`), this.sys.callHook("stopOnBreakpoint", {}), this.sys.send2Dbg("stopOnBreakpoint", {}), !0;
160
163
  {
161
- let e = C.#g[this.#u(this.#t)];
164
+ let e = b.#g[this.#u(this.#t)];
162
165
  if (!e) break;
163
- let u = e[this.#r];
164
- if (!u) break;
165
- if (u.condition) {
166
- if (!this.prpPrs.parse(u.condition)) break;
167
- } else if ("hitCondition" in u && --u.hitCondition > 0) break;
168
- let d = this.#v === BreakState.Running;
169
- this.#v = BreakState.Break, this.main.setLoop(!1, d ? (u.condition ? "条件" : "ヒットカウント") + "ブレーク" : "ステップ実行");
170
- let f = d ? "stopOnBreakpoint" : "stopOnStep";
171
- this.sys.callHook(f, {}), this.sys.send2Dbg(f, {});
166
+ let t = e[this.#r];
167
+ if (!t) break;
168
+ if (t.condition) {
169
+ if (!this.prpPrs.parse(t.condition)) break;
170
+ } else if ("hitCondition" in t && --t.hitCondition > 0) break;
171
+ let n = this.#v === 0;
172
+ this.#v = 2, this.main.setLoop(!1, n ? (t.condition ? "条件" : "ヒットカウント") + "ブレーク" : "ステップ実行");
173
+ let r = n ? "stopOnBreakpoint" : "stopOnStep";
174
+ this.sys.callHook(r, {}), this.sys.send2Dbg(r, {});
172
175
  }
173
176
  return !0;
174
177
  }
175
178
  return !1;
176
179
  }
177
180
  #b() {
178
- let e = C.#g[getFn(this.#t)]?.[this.#r];
181
+ let e = b.#g[t(this.#t)]?.[this.#r];
179
182
  e?.hitCondition && --e.hitCondition;
180
183
  }
181
184
  #x() {
182
- let e = this.#v === BreakState.Breaking ? 1 : 0, u = this.#e.aToken[this.#n - 1 + e], d = this.#u(this.#t), f = tagToken2Name(u), p = f ? `[${f}]` : u, m = String(this.val.getVal("mp:const.sn.macro") ?? "{}");
185
+ let e = +(this.#v === 3), t = this.#e.aToken[this.#n - 1 + e], n = this.#u(this.#t), r = h(t), i = r ? `[${r}]` : t, a = String(this.val.getVal("mp:const.sn.macro") ?? "{}");
183
186
  if (this.#n === 0) return [{
184
- fn: d,
187
+ fn: n,
185
188
  ln: 1,
186
189
  col: 1,
187
- nm: p,
188
- ma: m
190
+ nm: i,
191
+ ma: a
189
192
  }];
190
- let h = this.#j(this.#e, this.#n), g = [{
191
- fn: d,
192
- ln: h.ln,
193
- col: h.col_s + 1,
194
- nm: p,
195
- ma: m
196
- }], _ = this.#i.length;
197
- if (_ === 0) return g;
198
- for (let e = _ - 1; e >= 0; --e) {
199
- let u = this.#i[e], d = this.#re[u.fn];
200
- if (!d) continue;
201
- let f = d.aToken[u.idx - 1];
202
- if (!f) continue;
203
- let p = this.#j(d, u.idx), m = tagToken2Name(f);
204
- g.push({
205
- fn: this.#u(u.fn),
206
- ln: p.ln,
207
- col: p.col_s + 1,
208
- nm: m ? `[${m}]` : f,
209
- ma: u.csArg[":hMp"]["const.sn.macro"]
193
+ let o = this.#j(this.#e, this.#n), s = [{
194
+ fn: n,
195
+ ln: o.ln,
196
+ col: o.col_s + 1,
197
+ nm: i,
198
+ ma: a
199
+ }], c = this.#i.length;
200
+ if (c === 0) return s;
201
+ for (let e = c - 1; e >= 0; --e) {
202
+ let t = this.#i[e], n = this.#re[t.fn];
203
+ if (!n) continue;
204
+ let r = n.aToken[t.idx - 1];
205
+ if (!r) continue;
206
+ let i = this.#j(n, t.idx), a = h(r);
207
+ s.push({
208
+ fn: this.#u(t.fn),
209
+ ln: i.ln,
210
+ col: i.col_s + 1,
211
+ nm: a ? `[${a}]` : r,
212
+ ma: t.csArg[":hMp"]["const.sn.macro"]
210
213
  });
211
214
  }
212
- return g;
215
+ return s;
213
216
  }
214
217
  #S = (e) => {};
215
- async タグ解析(u, d) {
216
- let p = this.hTag[u];
217
- if (!p) throw `未定義のタグ【${u}】です`;
218
- this.#o.parse(d), this.#S(u);
219
- let m = this.#o.hPrm;
220
- if (m.cond) {
221
- let e = m.cond.val;
218
+ async タグ解析(t, n) {
219
+ let i = this.hTag[t];
220
+ if (!i) throw `未定義のタグ【${t}】です`;
221
+ this.#o.parse(n), this.#S(t);
222
+ let a = this.#o.hPrm;
223
+ if (a.cond) {
224
+ let e = a.cond.val;
222
225
  if (!e || e.startsWith("&")) throw "属性condは「&」が不要です";
223
- let u = this.prpPrs.parse(e), d = String(u);
224
- if (d === "null" || d === "undefined" || !u) return !1;
226
+ let t = this.prpPrs.parse(e), n = String(t);
227
+ if (n === "null" || n === "undefined" || !t) return !1;
225
228
  }
226
- let h = {}, g = this.#i.at(-1)?.csArg ?? creCSArg(), _ = this.#i.length;
229
+ let o = {}, s = this.#i.at(-1)?.csArg ?? _(), c = this.#i.length;
227
230
  if (this.#o.isKomeParam) {
228
- if (_ === 0) throw "属性「*」はマクロのみ有効です";
229
- h = { ...g };
231
+ if (c === 0) throw "属性「*」はマクロのみ有効です";
232
+ o = { ...s };
230
233
  }
231
- h[":タグ名"] = u;
232
- for (let [e, { val: u, def: d }] of Object.entries(m)) {
233
- let f = u;
234
- if (u.startsWith("%")) {
235
- if (_ === 0) throw "属性「%」はマクロ定義内でのみ使用できます(そのマクロの引数を示す簡略文法であるため)";
236
- let u = g[f.slice(1)];
237
- if (u) {
238
- h[e] = u;
234
+ o[":タグ名"] = t;
235
+ for (let [e, { val: t, def: n }] of Object.entries(a)) {
236
+ let r = t;
237
+ if (t.startsWith("%")) {
238
+ if (c === 0) throw "属性「%」はマクロ定義内でのみ使用できます(そのマクロの引数を示す簡略文法であるため)";
239
+ let t = s[r.slice(1)];
240
+ if (t) {
241
+ o[e] = t;
239
242
  continue;
240
243
  }
241
- if (d === void 0 || d === "null") continue;
242
- f = d;
244
+ if (n === void 0 || n === "null") continue;
245
+ r = n;
243
246
  }
244
- if (f = this.prpPrs.getValAmpersand(f ?? ""), f !== "undefined") {
245
- h[e] = f;
247
+ if (r = this.prpPrs.getValAmpersand(r ?? ""), r !== "undefined") {
248
+ o[e] = r;
246
249
  continue;
247
250
  }
248
- d !== void 0 && (f = this.prpPrs.getValAmpersand(d), f !== "undefined" && (h[e] = f));
251
+ n !== void 0 && (r = this.prpPrs.getValAmpersand(n), r !== "undefined" && (o[e] = r));
249
252
  }
250
- if (Reading.needGoTxt && this.#C.has(u)) {
251
- let { promise: u, resolve: d } = Promise.withResolvers();
252
- Reading.beginProc(RPN_COMP_CHIN, () => d(0), !1, () => d(0)), Reading.goTxt(), this.val.saveKidoku(), await u;
253
+ if (d.needGoTxt && this.#C.has(t)) {
254
+ let { promise: t, resolve: n } = Promise.withResolvers();
255
+ d.beginProc(e, () => n(0), !1, () => n(0)), d.goTxt(), this.val.saveKidoku(), await t;
253
256
  }
254
- this.#w.has(u) && (this.#D.hideHint(), CmnTween.stopEndTrans());
255
- let v = this.#T[u];
256
- return v && argChk_Boolean(h, "canskip", this.#E[u] ?? !0) && this.#D.isSkipping ? v(h) : p(h);
257
+ this.#w.has(t) && (this.#D.hideHint(), u.stopEndTrans());
258
+ let l = this.#T[t];
259
+ return l && r(o, "canskip", this.#E[t] ?? !0) && this.#D.isSkipping ? l(o) : i(o);
257
260
  }
258
- #C = new Set([
261
+ #C = /* @__PURE__ */ new Set([
259
262
  "trans",
260
263
  "wt",
261
264
  "wait_tsy",
@@ -272,7 +275,7 @@ var BreakState = /* @__PURE__ */ function(e) {
272
275
  "quake",
273
276
  "wq"
274
277
  ]);
275
- #w = new Set([
278
+ #w = /* @__PURE__ */ new Set([
276
279
  "finish_trans",
277
280
  "trans",
278
281
  "quake",
@@ -280,7 +283,7 @@ var BreakState = /* @__PURE__ */ function(e) {
280
283
  "add_filter"
281
284
  ]);
282
285
  #T = {
283
- wt: () => (CmnTween.stopEndTrans(), !1),
286
+ wt: () => (u.stopEndTrans(), !1),
284
287
  wait_tsy: (e) => this.hTag.stop_tsy(e),
285
288
  wait: () => !1,
286
289
  wb: () => this.hTag.stopfadese({ buf: "BGM" }),
@@ -302,60 +305,60 @@ var BreakState = /* @__PURE__ */ function(e) {
302
305
  };
303
306
  #D;
304
307
  #O;
305
- setOtherObj(e, u) {
306
- this.#D = e, this.#O = u;
308
+ setOtherObj(e, t) {
309
+ this.#D = e, this.#O = t;
307
310
  }
308
311
  #k(e) {
309
- let { name: u } = e;
310
- if (!u) throw "nameは必須です";
311
- let d = "", f = this.#e.len;
312
- for (; this.#n < f && (d = this.#e.aToken[this.#n], d === ""); ++this.#n);
313
- return e.text = d, e.cast = "str", this.hTag.let(e), this.#n += 2, this.#r += (d.match(/\n/g) ?? []).length, !1;
312
+ let { name: t } = e;
313
+ if (!t) throw "nameは必須です";
314
+ let n = "", r = this.#e.len;
315
+ for (; this.#n < r && (n = this.#e.aToken[this.#n], n === ""); ++this.#n);
316
+ return e.text = n, e.cast = "str", this.hTag.let(e), this.#n += 2, this.#r += (n.match(/\n/g) ?? []).length, !1;
314
317
  }
315
318
  #A() {
316
319
  if (this.#n === 0) return console.group(`🥟 [dump_stack] スクリプト現在地 fn:${this.#t} line:1 col:0`), console.groupEnd(), !1;
317
- let e = this.#j(this.#e, this.#n), u = `スクリプト現在地 fn:${this.#t} line:${String(e.ln)} col:${String(e.col_s + 1)}`;
318
- console.group(`🥟 [dump_stack] ${u}`);
319
- let d = this.#i.length;
320
- if (d > 0) {
321
- console.info(u);
322
- for (let e = d - 1; e >= 0; --e) {
323
- let u = this.#i[e], f = u.csArg[":hMp"], p = f ? f[":タグ名"] : void 0, m = u.csArg[":タグ名"] ?? "", h = this.#j(this.#re[u.fn], u.idx);
324
- console.info(`${String(d - e)}つ前のコール元 fn:${u.fn} line:${String(h.ln)} col:${String(h.col_s + 1)}${p ? "([" + p + "]マクロ内)" : " "}で [${m} ...]をコール`);
320
+ let e = this.#j(this.#e, this.#n), t = `スクリプト現在地 fn:${this.#t} line:${String(e.ln)} col:${String(e.col_s + 1)}`;
321
+ console.group(`🥟 [dump_stack] ${t}`);
322
+ let n = this.#i.length;
323
+ if (n > 0) {
324
+ console.info(t);
325
+ for (let e = n - 1; e >= 0; --e) {
326
+ let t = this.#i[e], r = t.csArg[":hMp"], i = r ? r[":タグ名"] : void 0, a = t.csArg[":タグ名"] ?? "", o = this.#j(this.#re[t.fn], t.idx);
327
+ console.info(`${String(n - e)}つ前のコール元 fn:${t.fn} line:${String(o.ln)} col:${String(o.col_s + 1)}${i ? "([" + i + "]マクロ内)" : " "}で [${a} ...]をコール`);
325
328
  }
326
329
  }
327
330
  return console.groupEnd(), !1;
328
331
  }
329
- #j(e, u) {
330
- let d = {
332
+ #j(e, t) {
333
+ let n = {
331
334
  ln: 1,
332
335
  col_s: 0,
333
336
  col_e: 0
334
337
  };
335
- if (!e) return d;
336
- let f = u - 1, p = d.ln = e.aLNum[f];
337
- for (; e.aLNum[f] === p;) {
338
- let u = e.aToken[f];
339
- if (!u.startsWith("\n")) {
340
- let e = u.length;
341
- d.col_e > 0 && (d.col_s += e), d.col_e += e;
338
+ if (!e) return n;
339
+ let r = t - 1, i = n.ln = e.aLNum[r];
340
+ for (; e.aLNum[r] === i;) {
341
+ let t = e.aToken[r];
342
+ if (!t.startsWith("\n")) {
343
+ let e = t.length;
344
+ n.col_e > 0 && (n.col_s += e), n.col_e += e;
342
345
  }
343
- if (--f < 0) break;
346
+ if (--r < 0) break;
344
347
  }
345
- return d;
348
+ return n;
346
349
  }
347
350
  #M(e) {
348
- let { set_fnc: u, break_fnc: d } = e;
349
- if (!u) throw "set_fncは必須です";
350
- if (this.#N = globalThis[u], !this.#N) {
351
- if (argChk_Boolean(e, "need_err", !0)) throw `HTML内に関数${u}が見つかりません`;
351
+ let { set_fnc: t, break_fnc: n } = e;
352
+ if (!t) throw "set_fncは必須です";
353
+ if (this.#N = globalThis[t], !this.#N) {
354
+ if (r(e, "need_err", !0)) throw `HTML内に関数${t}が見つかりません`;
352
355
  return this.#N = () => {}, !1;
353
356
  }
354
357
  if (this.noticeBreak = (e) => {
355
358
  this.#F !== this.#t && (this.#F = this.#t, this.#N(this.#I[this.#t] ??= this.#e.aToken.join(""))), this.#P(this.#r, e);
356
- }, this.noticeBreak(!0), !d) return !1;
357
- if (this.#P = globalThis[d], !this.#P) {
358
- if (argChk_Boolean(e, "need_err", !0)) throw `HTML内に関数${d}が見つかりません`;
359
+ }, this.noticeBreak(!0), !n) return !1;
360
+ if (this.#P = globalThis[n], !this.#P) {
361
+ if (r(e, "need_err", !0)) throw `HTML内に関数${n}が見つかりません`;
359
362
  this.#P = () => {};
360
363
  }
361
364
  return !1;
@@ -372,13 +375,13 @@ var BreakState = /* @__PURE__ */ function(e) {
372
375
  return;
373
376
  }
374
377
  let e = "";
375
- for (let u = this.#n - 1; u >= 0 && (e = String(this.#e.aToken[u]) + e, !((e.match(/\n/g) ?? []).length >= this.#L)); --u);
376
- let u = e.split("\n").slice(-this.#L), d = u.length;
377
- console.group(`🥟 Error line (from ${String(d)} rows before) fn:${this.#t}`);
378
- let f = String(this.#r).length, p = this.#j(this.#e, this.#n);
379
- for (let e = 0; e < d; ++e) {
380
- let m = this.#r - d + e + 1, h = `${String(m).padStart(f, " ")}: %c`, g = u[e], _ = g.length > 75 ? g.slice(0, 75) + "…" : g;
381
- e === d - 1 ? console.info(h + _.slice(0, p.col_s) + "%c" + _.slice(p.col_s), "color: black; background-color: skyblue;", "color: black; background-color: pink;") : console.info(h + _, "color: black; background-color: skyblue;");
378
+ for (let t = this.#n - 1; t >= 0 && (e = String(this.#e.aToken[t]) + e, !((e.match(/\n/g) ?? []).length >= this.#L)); --t);
379
+ let t = e.split("\n").slice(-this.#L), n = t.length;
380
+ console.group(`🥟 Error line (from ${String(n)} rows before) fn:${this.#t}`);
381
+ let r = String(this.#r).length, i = this.#j(this.#e, this.#n);
382
+ for (let e = 0; e < n; ++e) {
383
+ let a = this.#r - n + e + 1, o = `${String(a).padStart(r, " ")}: %c`, s = t[e], c = s.length > 75 ? s.slice(0, 75) + "…" : s;
384
+ e === n - 1 ? console.info(o + c.slice(0, i.col_s) + "%c" + c.slice(i.col_s), "color: black; background-color: skyblue;", "color: black; background-color: pink;") : console.info(o + c, "color: black; background-color: skyblue;");
382
385
  }
383
386
  console.groupEnd();
384
387
  }
@@ -390,131 +393,131 @@ var BreakState = /* @__PURE__ */ function(e) {
390
393
  return this.#n = e, this.#R.shift(), !1;
391
394
  }
392
395
  #B(e) {
393
- let { exp: u } = e;
394
- if (!u) throw "expは必須です";
395
- if (u.startsWith("&")) throw "属性expは「&」が不要です";
396
- let d = 0, f = this.prpPrs.parse(u) ? this.#n : -1, p = this.#e.aLNum[this.#n], m = this.#r - ((p ?? 0) || 0), h = this.#e.len;
397
- for (; this.#n < h; ++this.#n) {
396
+ let { exp: t } = e;
397
+ if (!t) throw "expは必須です";
398
+ if (t.startsWith("&")) throw "属性expは「&」が不要です";
399
+ let n = 0, r = this.prpPrs.parse(t) ? this.#n : -1, i = this.#e.aLNum[this.#n], a = this.#r - ((i ?? 0) || 0), o = this.#e.len;
400
+ for (; this.#n < o; ++this.#n) {
398
401
  let e = this.#e.aLNum[this.#n];
399
- this.#e.aLNum[this.#n] = ((e ?? 0) || 0) + m;
400
- let u = this.#e.aToken[this.#n];
401
- if (!u) continue;
402
- let p = u.charCodeAt(0);
403
- if (p === 10) {
404
- this.#r += u.length;
402
+ this.#e.aLNum[this.#n] = ((e ?? 0) || 0) + a;
403
+ let t = this.#e.aToken[this.#n];
404
+ if (!t) continue;
405
+ let i = t.charCodeAt(0);
406
+ if (i === 10) {
407
+ this.#r += t.length;
405
408
  continue;
406
409
  }
407
- if (p !== 91) continue;
408
- let [h, g] = tagToken2Name_Args(u);
409
- if (!(h in this.hTag)) throw `未定義のタグ[${h}]です`;
410
- switch (this.#o.parse(g), h) {
410
+ if (i !== 91) continue;
411
+ let [o, s] = m(t);
412
+ if (!(o in this.hTag)) throw `未定義のタグ[${o}]です`;
413
+ switch (this.#o.parse(s), o) {
411
414
  case "if":
412
- ++d;
415
+ ++n;
413
416
  break;
414
417
  case "elsif":
415
418
  {
416
- if (d > 0 || f > -1) break;
419
+ if (n > 0 || r > -1) break;
417
420
  let e = this.#o.hPrm.exp?.val;
418
421
  if (!e) throw "expは必須です";
419
422
  if (e.startsWith("&")) throw "属性expは「&」が不要です";
420
- this.prpPrs.parse(e) && (f = this.#n + 1);
423
+ this.prpPrs.parse(e) && (r = this.#n + 1);
421
424
  }
422
425
  break;
423
426
  case "else":
424
- if (d > 0) break;
425
- f === -1 && (f = this.#n + 1);
427
+ if (n > 0) break;
428
+ r === -1 && (r = this.#n + 1);
426
429
  break;
427
430
  case "endif":
428
- if (d > 0) {
429
- --d;
431
+ if (n > 0) {
432
+ --n;
430
433
  break;
431
434
  }
432
- return f === -1 ? (++this.#n, this.#e.aLNum[this.#n] += m) : (this.#R.unshift(this.#n + 1), this.#n = f, this.#r = this.#e.aLNum[this.#n]), !1;
435
+ return r === -1 ? (++this.#n, this.#e.aLNum[this.#n] += a) : (this.#R.unshift(this.#n + 1), this.#n = r, this.#r = this.#e.aLNum[this.#n]), !1;
433
436
  }
434
437
  }
435
438
  throw "[endif]がないままスクリプト終端です";
436
439
  }
437
440
  #V(e) {
438
- argChk_Boolean(e, "count", !1) || this.#de();
439
- let { fn: u } = e;
440
- return u && this.#l(u), this.#H({ ...e }, ReadingState.popLocalEvts()), argChk_Boolean(e, "clear_local_event", !1) && this.hTag.clear_event({}), this.#Y(u, e.label);
441
+ r(e, "count", !1) || this.#de();
442
+ let { fn: t } = e;
443
+ return t && this.#l(t), this.#H({ ...e }, l.popLocalEvts()), r(e, "clear_local_event", !1) && this.hTag.clear_event({}), this.#Y(t, e.label);
441
444
  }
442
- #H(e, u) {
443
- let d = {
445
+ #H(e, t) {
446
+ let n = {
444
447
  ...e,
445
- ...u ? { ":hEvt1Time": u } : {},
448
+ ...t ? { ":hEvt1Time": t } : {},
446
449
  ":hMp": this.val.cloneMp(),
447
450
  ":lenIfStk": this.#R.length
448
451
  };
449
- this.#e.aLNum[this.#n] = this.#r, this.#K || (d[":resvToken"] = "", this.#q()), this.#i.push(new CallStack(this.#t, this.#n, d)), this.#R.unshift(-1);
452
+ this.#e.aLNum[this.#n] = this.#r, this.#K || (n[":resvToken"] = "", this.#q()), this.#i.push(new y(this.#t, this.#n, n)), this.#R.unshift(-1);
450
453
  }
451
454
  #U(e) {
452
- return argChk_Boolean(e, "count", !0) || this.#de(), this.#R[0] = -1, this.#Y(e.fn, e.label);
455
+ return r(e, "count", !0) || this.#de(), this.#R[0] = -1, this.#Y(e.fn, e.label);
453
456
  }
454
457
  #W(e) {
455
- if (argChk_Boolean(e, "clear", !1)) this.#i = [];
458
+ if (r(e, "clear", !1)) this.#i = [];
456
459
  else if (!this.#i.pop()) throw "スタックが空です";
457
- return this.#q(), this.#R = [-1], this.val.setMp(creMP()), !1;
460
+ return this.#q(), this.#R = [-1], this.val.setMp(v()), !1;
458
461
  }
459
462
  #G(e) {
460
- let u = this.#i.pop();
461
- if (!u) throw "スタックが空です";
462
- let d = u.csArg;
463
- this.#R = this.#R.slice(-d[":lenIfStk"]);
464
- let f = d[":hMp"];
465
- f && this.val.setMp(f);
466
- let p = d[":resvToken"];
467
- p ? this.nextToken = () => (this.#q(), p) : this.#q(), d[":hEvt1Time"] && ReadingState.pushLocalEvts(d[":hEvt1Time"]);
468
- let { fn: m, label: h } = e;
469
- return m || h ? this.#Y(m, h) : u.fn in this.#re ? (this.#ae(u), !1) : this.#Y(u.fn, "", u.idx);
463
+ let t = this.#i.pop();
464
+ if (!t) throw "スタックが空です";
465
+ let n = t.csArg;
466
+ this.#R = this.#R.slice(-n[":lenIfStk"]);
467
+ let r = n[":hMp"];
468
+ r && this.val.setMp(r);
469
+ let i = n[":resvToken"];
470
+ i ? this.nextToken = () => (this.#q(), i) : this.#q(), n[":hEvt1Time"] && l.pushLocalEvts(n[":hEvt1Time"]);
471
+ let { fn: a, label: o } = e;
472
+ return a || o ? this.#Y(a, o) : t.fn in this.#re ? (this.#ae(t), !1) : this.#Y(t.fn, "", t.idx);
470
473
  }
471
474
  #K = "";
472
475
  #q() {
473
476
  this.#K = "", this.nextToken = () => this.#X();
474
477
  }
475
478
  #J = "";
476
- #Y(e = "", u = "", d = 0) {
477
- if (CmnLib.debugLog && console.log(`📜 %c1:jumpWork%c fn:${e} lbl:${u} idx:${String(d)}`, "color:#3B0;", ""), !e && !u && this.main.errScript("[jump系] fnまたはlabelは必須です"), u ? (u.startsWith("*") || this.main.errScript("[jump系] labelは*で始まります"), this.#J = u, this.#J.startsWith("**") || (this.#n = d)) : (this.#J = "", this.#n = d), !e) return this.analyzeInit(), !1;
479
+ #Y(e = "", t = "", n = 0) {
480
+ if (i.debugLog && console.log(`📜 %c1:jumpWork%c fn:${e} lbl:${t} idx:${String(n)}`, "color:#3B0;", ""), !e && !t && this.main.errScript("[jump系] fnまたはlabelは必須です"), t ? (t.startsWith("*") || this.main.errScript("[jump系] labelは*で始まります"), this.#J = t, this.#J.startsWith("**") || (this.#n = n)) : (this.#J = "", this.#n = n), !e) return this.analyzeInit(), !1;
478
481
  if (e.includes("@")) throw "[jump系] fn には文字「@」は禁止です";
479
- let f = this.#l(e);
482
+ let r = this.#l(e);
480
483
  if (e === this.#t) return this.analyzeInit(), !1;
481
484
  this.#t = e;
482
- let m = this.#re[e];
483
- if (m) return this.#e = m, this.analyzeInit(), !1;
484
- let g = `jumpWork fn:${e}`;
485
- Reading.beginProc(g);
486
- let _ = "", v = new Loader();
485
+ let a = this.#re[e];
486
+ if (a) return this.#e = a, this.analyzeInit(), !1;
487
+ let s = `jumpWork fn:${e}`;
488
+ d.beginProc(s);
489
+ let c = "", l = new o();
487
490
  try {
488
- _ = this.#l(e + "@"), v.add({
491
+ c = this.#l(e + "@"), l.add({
489
492
  name: e + ":base",
490
- url: f
491
- }), v.add({
493
+ url: r
494
+ }), l.add({
492
495
  name: e,
493
- url: _
496
+ url: c
494
497
  });
495
498
  } catch {
496
- v.add({
499
+ l.add({
497
500
  name: e,
498
- url: f
501
+ url: r
499
502
  });
500
503
  }
501
- return v.use((e, u) => {
502
- this.sys.dec(e.extension, e.data).then((d) => {
503
- e.data = d, u();
504
- }).catch((d) => {
505
- this.main.errScript(`[jump系]snロード失敗です fn:${e.name} ${String(d)}`, !1), u();
504
+ return l.use((e, t) => {
505
+ this.sys.dec(e.extension, e.data).then((n) => {
506
+ e.data = n, t();
507
+ }).catch((n) => {
508
+ this.main.errScript(`[jump系]snロード失敗です fn:${e.name} ${String(n)}`, !1), t();
506
509
  });
507
- }).load((u, d) => {
508
- if (Reading.endProc(g), _) {
509
- let u = d[e + ":base"].data, f = d[e].data, p = u.split("\n"), m = f.split("\n"), h = p.length, g = m.length;
510
- for (let e = 0; e < g && e < h; ++e) m[e] ||= p[e] ?? "";
511
- d[e].data = m.join("\n"), delete d[e + ":base"];
510
+ }).load((t, n) => {
511
+ if (d.endProc(s), c) {
512
+ let t = n[e + ":base"].data, r = n[e].data, i = t.split("\n"), a = r.split("\n"), o = i.length, s = a.length;
513
+ for (let e = 0; e < s && e < o; ++e) a[e] ||= i[e] ?? "";
514
+ n[e].data = a.join("\n"), delete n[e + ":base"];
512
515
  }
513
- this.nextToken = this.#X, this.#r = 1, this.#ie(d[e].data), this.hTag.record_place({}), this.analyzeInit();
516
+ this.nextToken = this.#X, this.#r = 1, this.#ie(n[e].data), this.hTag.record_place({}), this.analyzeInit();
514
517
  }), !0;
515
518
  }
516
519
  analyzeInit() {
517
- CmnLib.debugLog && console.log(`📜 %c9:analyzeInit%c fn:${this.#t} lbl:${this.#J} idx:${String(this.#n)}`, "color:#3B0;", "");
520
+ i.debugLog && console.log(`📜 %c9:analyzeInit%c fn:${this.#t} lbl:${this.#J} idx:${String(this.#n)}`, "color:#3B0;", "");
518
521
  let e = this.#ne(this.#e, !!this.val.getVal("mp:const.sn.macro.name"), this.#r, this.#J, this.#n);
519
522
  this.#n = e.idx, this.#r = e.ln;
520
523
  }
@@ -532,109 +535,109 @@ var BreakState = /* @__PURE__ */ function(e) {
532
535
  #$ = /(\*{2,})([^|]*)/;
533
536
  #ee = /^\[macro\s/;
534
537
  #te = /^\[endmacro[\s\]]/;
535
- #ne(e, u, d, f, p) {
536
- let m = e.aToken.length, h = d, g = f;
537
- if (!g) {
538
+ #ne(e, t, n, r, i) {
539
+ let a = e.aToken.length, o = n, s = r;
540
+ if (!s) {
538
541
  if (this.#Q()) return {
539
- idx: p,
540
- ln: h
542
+ idx: i,
543
+ ln: o
541
544
  };
542
- if (e.aLNum[p]) h = e.aLNum[p];
545
+ if (e.aLNum[i]) o = e.aLNum[i];
543
546
  else {
544
- h = 1;
545
- for (let u = 0; u < p; ++u) {
546
- e.aLNum[u] ||= h;
547
- let d = e.aToken[u];
548
- d.startsWith("\n") ? h += d.length : h += (d.match(/\n/g) ?? []).length;
547
+ o = 1;
548
+ for (let t = 0; t < i; ++t) {
549
+ e.aLNum[t] ||= o;
550
+ let n = e.aToken[t];
551
+ n.startsWith("\n") ? o += n.length : o += (n.match(/\n/g) ?? []).length;
549
552
  }
550
- e.aLNum[p] = h;
553
+ e.aLNum[i] = o;
551
554
  }
552
555
  return {
553
- idx: p,
554
- ln: h
556
+ idx: i,
557
+ ln: o
555
558
  };
556
559
  }
557
560
  e.aLNum[0] = 1;
558
- let v = g.match(this.#$);
559
- if (v) {
560
- g = v[1];
561
- let d = p;
562
- switch (v[2]) {
561
+ let l = s.match(this.#$);
562
+ if (l) {
563
+ s = l[1];
564
+ let n = i;
565
+ switch (l[2]) {
563
566
  case "before":
564
- for (; e.aToken[--d] !== g;) d === 0 && DebugMng.myTrace(`[jump系 無名ラベルbefore]
565
- ${String(h)} 行目以前で ${u ? "マクロ内に" : ""} ラベル【 ${g} 】がありません`, "ET"), u && e.aToken[d].search(this.#ee) > -1 && DebugMng.myTrace("[jump系 無名ラベルbefore] マクロ内にラベル【" + g + "】がありません", "ET");
567
+ for (; e.aToken[--n] !== s;) n === 0 && c.myTrace(`[jump系 無名ラベルbefore]
568
+ ${String(o)} 行目以前で ${t ? "マクロ内に" : ""} ラベル【 ${s} 】がありません`, "ET"), t && e.aToken[n].search(this.#ee) > -1 && c.myTrace("[jump系 無名ラベルbefore] マクロ内にラベル【" + s + "】がありません", "ET");
566
569
  return {
567
- idx: d + 1,
568
- ln: e.aLNum[d]
570
+ idx: n + 1,
571
+ ln: e.aLNum[n]
569
572
  };
570
573
  case "after":
571
- for (; e.aToken[++d] !== g;) d === m && DebugMng.myTrace(`[jump系 無名ラベルafter] ${String(h)} 行目以後でマクロ内にラベル【${g}】がありません`, "ET"), e.aToken[d].search(this.#te) > -1 && DebugMng.myTrace(`[jump系 無名ラベルafter] ${String(h)} 行目以後でマクロ内にラベル【 ${g} 】がありません`, "ET");
574
+ for (; e.aToken[++n] !== s;) n === a && c.myTrace(`[jump系 無名ラベルafter] ${String(o)} 行目以後でマクロ内にラベル【${s}】がありません`, "ET"), e.aToken[n].search(this.#te) > -1 && c.myTrace(`[jump系 無名ラベルafter] ${String(o)} 行目以後でマクロ内にラベル【 ${s} 】がありません`, "ET");
572
575
  return {
573
- idx: d + 1,
574
- ln: e.aLNum[d]
576
+ idx: n + 1,
577
+ ln: e.aLNum[n]
575
578
  };
576
- default: DebugMng.myTrace("[jump系] 無名ラベル指定【label=" + g + "】が間違っています", "ET");
579
+ default: c.myTrace("[jump系] 無名ラベル指定【label=" + s + "】が間違っています", "ET");
577
580
  }
578
581
  }
579
- h = 1;
580
- let y = /* @__PURE__ */ RegExp("^" + g.replaceAll("*", "\\*") + "(?=\\s|;|\\[|\\||$)"), b = !1;
581
- for (let u = 0; u < m; ++u) {
582
- e.aLNum[u] ||= h;
583
- let d = e.aToken[u];
584
- if (b) {
585
- this.#a.testTagEndLetml(d) ? b = !1 : h += (d.match(/\n/g) ?? []).length;
582
+ o = 1;
583
+ let u = RegExp("^" + s.replaceAll("*", "\\*") + "(?=\\s|;|\\[|\\||$)"), d = !1;
584
+ for (let t = 0; t < a; ++t) {
585
+ e.aLNum[t] ||= o;
586
+ let n = e.aToken[t];
587
+ if (d) {
588
+ this.#a.testTagEndLetml(n) ? d = !1 : o += (n.match(/\n/g) ?? []).length;
586
589
  continue;
587
590
  }
588
- let f = d.charCodeAt(0);
589
- if (f === 10) {
590
- h += d.length;
591
+ let r = n.charCodeAt(0);
592
+ if (r === 10) {
593
+ o += n.length;
591
594
  continue;
592
595
  }
593
- if (f === 42) {
594
- if (d.search(y) > -1) return {
595
- idx: u + 1,
596
- ln: h
596
+ if (r === 42) {
597
+ if (n.search(u) > -1) return {
598
+ idx: t + 1,
599
+ ln: o
597
600
  };
598
601
  continue;
599
602
  }
600
- f === 91 && (h += (d.match(/\n/g) ?? []).length, this.#a.testTagLetml(d) && (b = !0));
603
+ r === 91 && (o += (n.match(/\n/g) ?? []).length, this.#a.testTagLetml(n) && (d = !0));
601
604
  }
602
- throw b ? "[let_ml]の終端・[endlet_ml]がありません" : (DebugMng.myTrace(`[jump系] ラベル【${g}】がありません`, "ET"), "Dummy");
605
+ throw d ? "[let_ml]の終端・[endlet_ml]がありません" : (c.myTrace(`[jump系] ラベル【${s}】がありません`, "ET"), "Dummy");
603
606
  }
604
607
  #re = Object.create(null);
605
608
  #ie(e) {
606
- let u = "";
609
+ let t = "";
607
610
  try {
608
- u = "ScriptIterator.resolveScript";
609
- let d = this.#a.resolveScript(e);
610
- u = "ScriptIterator.replaceScript_Wildcard", this.#ce(d), this.#re[this.#t] = this.#e = d;
611
+ t = "ScriptIterator.resolveScript";
612
+ let n = this.#a.resolveScript(e);
613
+ t = "ScriptIterator.replaceScript_Wildcard", this.#ce(n), this.#re[this.#t] = this.#e = n;
611
614
  } catch (e) {
612
- e instanceof Error ? u += `例外 mes=${e.message}(${e.name})` : u = String(e), this.main.errScript(u, !1);
615
+ e instanceof Error ? t += `例外 mes=${e.message}(${e.name})` : t = String(e), this.main.errScript(t, !1);
613
616
  }
614
617
  this.val.touchAreaKidoku(this.#t);
615
618
  }
616
619
  #ae(e) {
617
620
  this.#t = e.fn, this.#n = e.idx;
618
- let u = this.#re[this.#t];
619
- u && (this.#e = u), this.#r = this.#e.aLNum[e.idx];
621
+ let t = this.#re[this.#t];
622
+ t && (this.#e = t), this.#r = this.#e.aLNum[e.idx];
620
623
  }
621
624
  #oe = /^\[(call|loadplugin)\s/;
622
625
  #se = /\bfn\s*=\s*[^\s\]]+/;
623
626
  #ce(e) {
624
- for (let d = e.len - 1; d >= 0; --d) {
625
- let f = e.aToken[d];
626
- if (!this.#oe.test(f)) continue;
627
- let [p, m] = tagToken2Name_Args(f);
628
- this.#o.parse(m);
629
- let h = this.#o.hPrm.fn;
630
- if (!h) continue;
631
- let { val: _ } = h;
632
- if (!_.endsWith("*")) continue;
633
- e.aToken.splice(d, 1, " ", "; " + f), e.aLNum.splice(d, 1, NaN, NaN);
634
- let v = p === "loadplugin" ? SEARCH_PATH_ARG_EXT.CSS : SEARCH_PATH_ARG_EXT.SN, y = this.cfg.matchPath("^" + _.slice(0, -1) + ".*", v);
635
- for (let p of y) {
636
- let m = f.replace(this.#se, "fn=" + decodeURIComponent(getFn(p[v])));
637
- e.aToken.splice(d, 0, m), e.aLNum.splice(d, 0, NaN);
627
+ for (let n = e.len - 1; n >= 0; --n) {
628
+ let r = e.aToken[n];
629
+ if (!this.#oe.test(r)) continue;
630
+ let [i, a] = m(r);
631
+ this.#o.parse(a);
632
+ let o = this.#o.hPrm.fn;
633
+ if (!o) continue;
634
+ let { val: c } = o;
635
+ if (!c.endsWith("*")) continue;
636
+ e.aToken.splice(n, 1, " ", "; " + r), e.aLNum.splice(n, 1, NaN, NaN);
637
+ let l = i === "loadplugin" ? s.CSS : s.SN, u = this.cfg.matchPath("^" + c.slice(0, -1) + ".*", l);
638
+ for (let i of u) {
639
+ let a = r.replace(this.#se, "fn=" + decodeURIComponent(t(i[l])));
640
+ e.aToken.splice(n, 0, a), e.aLNum.splice(n, 0, NaN);
638
641
  }
639
642
  }
640
643
  e.len = e.aToken.length;
@@ -655,14 +658,14 @@ var BreakState = /* @__PURE__ */ function(e) {
655
658
  this.val.getAreaKidoku(this.#t)?.erase(this.#n), this.#ue = !1;
656
659
  }
657
660
  get isNextKidoku() {
658
- let e = this.#t, u = this.#n, d = this.#e.len;
661
+ let e = this.#t, t = this.#n, n = this.#e.len;
659
662
  if (this.#i.length > 0) {
660
- let f = this.#i[0];
661
- e = f.fn, u = f.idx;
662
- let p = this.#re[e];
663
- p && (d = p.len);
663
+ let r = this.#i[0];
664
+ e = r.fn, t = r.idx;
665
+ let i = this.#re[e];
666
+ i && (n = i.len);
664
667
  }
665
- return u === d ? !1 : this.val.getAreaKidoku(e)?.search(u) ?? !1;
668
+ return t === n ? !1 : this.val.getAreaKidoku(e)?.search(t) ?? !1;
666
669
  }
667
670
  get normalWait() {
668
671
  return this.#ue ? this.val.tagCh_doWait_Kidoku ? this.val.tagCh_msecWait_Kidoku : 0 : this.val.tagCh_doWait ? this.val.tagCh_msecWait : 0;
@@ -675,83 +678,83 @@ var BreakState = /* @__PURE__ */ function(e) {
675
678
  }
676
679
  #me = /["'#;\\] ]+/;
677
680
  #he(e) {
678
- let { name: u } = e;
679
- if (!u) throw "nameは必須です";
680
- if (u in this.hTag) throw `[${u}]はタグかすでに定義済みのマクロです`;
681
- if (this.#me.test(u)) throw `[${u}]はマクロ名として異常です`;
682
- let d = this.#r, f = new CallStack(this.#t, this.#n);
683
- for (this.#ge += "|" + u, this.#_e = /* @__PURE__ */ RegExp(`\\[(${this.#ge})\\b`), this.hTag[u] = (u) => (this.#H(u), this.val.setMp({
684
- ...u,
681
+ let { name: t } = e;
682
+ if (!t) throw "nameは必須です";
683
+ if (t in this.hTag) throw `[${t}]はタグかすでに定義済みのマクロです`;
684
+ if (this.#me.test(t)) throw `[${t}]はマクロ名として異常です`;
685
+ let n = this.#r, r = new y(this.#t, this.#n);
686
+ for (this.#ge += "|" + t, this.#_e = RegExp(`\\[(${this.#ge})\\b`), this.hTag[t] = (t) => (this.#H(t), this.val.setMp({
687
+ ...t,
685
688
  "const.sn.macro": JSON.stringify({ name: e.name }),
686
689
  "const.sn.me_call_scriptFn": this.#t
687
- }), this.val.setVal_Nochk("mp", "const.sn.me_call_scriptFn", this.#t), this.#r = d, this.#ae(f), !1); this.#n < this.#e.len; ++this.#n) {
690
+ }), this.val.setVal_Nochk("mp", "const.sn.me_call_scriptFn", this.#t), this.#r = n, this.#ae(r), !1); this.#n < this.#e.len; ++this.#n) {
688
691
  this.#e.aLNum[this.#n] ||= this.#r;
689
692
  let e = this.#e.aToken[this.#n];
690
693
  if (e.search(this.#te) > -1) return ++this.#n, !1;
691
- let u = e.charCodeAt(0);
692
- u === 10 ? this.#r += e.length : u === 91 && (this.#r += (e.match(/\n/g) ?? []).length);
694
+ let t = e.charCodeAt(0);
695
+ t === 10 ? this.#r += e.length : t === 91 && (this.#r += (e.match(/\n/g) ?? []).length);
693
696
  }
694
- throw `マクロ[${u}]定義の終端・[endmacro]がありません`;
697
+ throw `マクロ[${t}]定義の終端・[endmacro]がありません`;
695
698
  }
696
699
  #ge = "call";
697
700
  #_e = /\[(call)\b/;
698
701
  #ve(e) {
699
702
  if ("fn" in e != "label" in e) throw "fnとlabelはセットで指定して下さい";
700
- let u = argChk_Num(e, "place", 0), f = this.val.getMark(u);
701
- if (!f) throw `place=${String(u)} は存在しません`;
702
- return this.loadFromMark(e, f, SndProcOnLoad.ALL_STOP_AND_PLAY);
703
- }
704
- loadFromMark(e, u, d = SndProcOnLoad.MINIMAL_STOP) {
705
- this.hTag.clear_event({}), this.val.mark2save(u), this.val.setMp(creMP()), this.#O.recPagebreak();
706
- let m = [];
707
- d !== SndProcOnLoad.NO_TOUCH && (m = this.sndMng.playLoopFromSaveObj(d === SndProcOnLoad.ALL_STOP_AND_PLAY)), argChk_Boolean(e, "do_rec", !0) && (this.#be = {
703
+ let t = n(e, "place", 0), r = this.val.getMark(t);
704
+ if (!r) throw `place=${String(t)} は存在しません`;
705
+ return this.loadFromMark(e, r, 2);
706
+ }
707
+ loadFromMark(e, t, n = 0) {
708
+ this.hTag.clear_event({}), this.val.mark2save(t), this.val.setMp(v()), this.#O.recPagebreak();
709
+ let a = [];
710
+ n !== 1 && (a = this.sndMng.playLoopFromSaveObj(n === 2)), r(e, "do_rec", !0) && (this.#be = {
708
711
  hSave: this.val.cloneSave(),
709
- hPages: { ...u.hPages },
710
- aIfStk: [...u.aIfStk]
712
+ hPages: { ...t.hPages },
713
+ aIfStk: [...t.aIfStk]
711
714
  });
712
- let h = {
715
+ let o = {
713
716
  enabled: !!this.val.getVal("save:const.sn.autowc.enabled"),
714
717
  text: String(this.val.getVal("save:const.sn.autowc.text")),
715
718
  time: Number(this.val.getVal("save:const.sn.autowc.time"))
716
719
  };
717
- this.hTag.autowc(h), this.#R = [...this.#be.aIfStk], this.#i = [], CmnTween.stopAllTw();
718
- let g = Promise.allSettled([...m, ...this.#O.playback(this.#be.hPages)]).then(() => this.#O.cover(!1)), { index: _, fn: v } = e;
719
- if (_) return CmnLib.debugLog && console.log(`📜 %cloadFromMark index:${String(_)} move!%c fn:${v ?? ""}`, "color:#3B0;", ""), g.then(() => {
720
- this.#Y(v, "", _) || this.main.resume();
720
+ this.hTag.autowc(o), this.#R = [...this.#be.aIfStk], this.#i = [], u.stopAllTw();
721
+ let s = Promise.allSettled([...a, ...this.#O.playback(this.#be.hPages)]).then(() => this.#O.cover(!1)), { index: c, fn: l } = e;
722
+ if (c) return i.debugLog && console.log(`📜 %cloadFromMark index:${String(c)} move!%c fn:${l ?? ""}`, "color:#3B0;", ""), s.then(() => {
723
+ this.#Y(l, "", c) || this.main.resume();
721
724
  }).catch((e) => console.error("loadFromMark e:%o", e)), !0;
722
725
  this.#O.cover(!0);
723
- let b = String(this.val.getVal("save:const.sn.scriptFn")), x = Number(this.val.getVal("save:const.sn.scriptIdx"));
724
- delete this.#re[b];
725
- let { label: S } = e;
726
- return g.then(S ? () => {
727
- this.#t = b, this.#n = x, this.hTag.call({
728
- ...v ? { fn: v } : {},
729
- label: S
726
+ let d = String(this.val.getVal("save:const.sn.scriptFn")), f = Number(this.val.getVal("save:const.sn.scriptIdx"));
727
+ delete this.#re[d];
728
+ let { label: p } = e;
729
+ return s.then(p ? () => {
730
+ this.#t = d, this.#n = f, this.hTag.call({
731
+ ...l ? { fn: l } : {},
732
+ label: p
730
733
  }) || this.main.resume();
731
734
  } : () => {
732
- this.#Y(b, "", x) || this.main.resume();
735
+ this.#Y(d, "", f) || this.main.resume();
733
736
  }).catch((e) => console.error("loadFromMark e:%o", e)), !0;
734
737
  }
735
738
  #ye(e) {
736
- let d = this.val.getMark(0);
737
- if (!d) return !1;
738
- delete this.#re[getFn(d.hSave["const.sn.scriptFn"])];
739
- let f = {};
739
+ let n = this.val.getMark(0);
740
+ if (!n) return !1;
741
+ delete this.#re[t(n.hSave["const.sn.scriptFn"])];
742
+ let r = {};
740
743
  for (let e in this.#re) try {
741
744
  this.#l(e + "@");
742
745
  } catch {
743
- f[e] = this.#re[e];
746
+ r[e] = this.#re[e];
744
747
  }
745
- return this.#re = f, e.do_rec = !1, this.loadFromMark(e, d, SndProcOnLoad.NO_TOUCH);
748
+ return this.#re = r, e.do_rec = !1, this.loadFromMark(e, n, 1);
746
749
  }
747
750
  #be = {
748
- hSave: creSAVEDATA(),
751
+ hSave: a(),
749
752
  hPages: {},
750
753
  aIfStk: [-1]
751
754
  };
752
755
  #xe = () => {
753
- let { fn: e, idx: u } = this.nowScrIdx();
754
- return this.val.setVal_Nochk("save", "const.sn.scriptFn", e), this.val.setVal_Nochk("save", "const.sn.scriptIdx", u), this.#be = {
756
+ let { fn: e, idx: t } = this.nowScrIdx();
757
+ return this.val.setVal_Nochk("save", "const.sn.scriptFn", e), this.val.setVal_Nochk("save", "const.sn.scriptIdx", t), this.#be = {
755
758
  hSave: this.val.cloneSave(),
756
759
  hPages: this.#O.record(),
757
760
  aIfStk: this.#R.slice(this.#i.length)
@@ -772,35 +775,36 @@ var BreakState = /* @__PURE__ */ function(e) {
772
775
  return { ...this.#be };
773
776
  }
774
777
  nowScrFnLn() {
775
- let { fn: e, idx: u } = this.nowScrIdx(), d = this.#re[e];
778
+ let { fn: e, idx: t } = this.nowScrIdx(), n = this.#re[e];
776
779
  return {
777
780
  fn: e,
778
- ...this.#j(d, u)
781
+ ...this.#j(n, t)
779
782
  };
780
783
  }
781
784
  #Se(e) {
782
785
  if (!("place" in e)) throw "placeは必須です";
783
- let u = e.place;
784
- delete e[":タグ名"], delete e.place, e.text = e.text ?? "", this.#be.json = e, this.val.setMark(u, this.#be);
785
- let d = Number(this.val.getVal("sys:const.sn.save.place"));
786
- return u === d && this.val.setVal_Nochk("sys", "const.sn.save.place", d + 1), !1;
786
+ let t = e.place;
787
+ delete e[":タグ名"], delete e.place, e.text = e.text ?? "", this.#be.json = e, this.val.setMark(t, this.#be);
788
+ let n = Number(this.val.getVal("sys:const.sn.save.place"));
789
+ return t === n && this.val.setVal_Nochk("sys", "const.sn.save.place", n + 1), !1;
787
790
  }
788
791
  recodeDesign(e) {
789
- let u = "", d = 0, f = this.#i.length;
790
- if (e.design_unit && f > 0) {
792
+ let t = "", n = 0, r = this.#i.length;
793
+ if (e.design_unit && r > 0) {
791
794
  let e = this.#i[0];
792
- u = e.fn, d = e.idx;
793
- } else u = this.#t, d = this.#n;
794
- e[":path"] = this.#u(u);
795
- let p = this.#re[u], m = this.#j(p, d);
796
- e[":ln"] = m.ln, e[":col_s"] = m.col_s, e[":col_e"] = m.col_e;
797
- let h = d - 1;
798
- e[":idx_tkn"] = h, e[":token"] = p.aToken[h] ?? "", this.sys.send2Dbg("_recodeDesign", e);
795
+ t = e.fn, n = e.idx;
796
+ } else t = this.#t, n = this.#n;
797
+ e[":path"] = this.#u(t);
798
+ let i = this.#re[t], a = this.#j(i, n);
799
+ e[":ln"] = a.ln, e[":col_s"] = a.col_s, e[":col_e"] = a.col_e;
800
+ let o = n - 1;
801
+ e[":idx_tkn"] = o, e[":token"] = i.aToken[o] ?? "", this.sys.send2Dbg("_recodeDesign", e);
799
802
  }
800
- replace(e, u) {
801
- this.#e.aToken[e] = u;
803
+ replace(e, t) {
804
+ this.#e.aToken[e] = t;
802
805
  }
803
806
  };
804
- export { ScriptIterator };
807
+ //#endregion
808
+ export { b as ScriptIterator };
805
809
 
806
810
  //# sourceMappingURL=ScriptIterator.js.map