@famibee/skynovel 1.64.22 → 2.0.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.
Files changed (186) hide show
  1. package/README.md +3 -3
  2. package/dist/Button.js +131 -163
  3. package/dist/Button.js.map +1 -1
  4. package/dist/CallStack.js +19 -22
  5. package/dist/CallStack.js.map +1 -1
  6. package/dist/CmnInterface.js +91 -0
  7. package/dist/CmnInterface.js.map +1 -0
  8. package/dist/CmnLib.js +94 -0
  9. package/dist/CmnLib.js.map +1 -0
  10. package/dist/Config.js +26 -0
  11. package/dist/Config.js.map +1 -0
  12. package/dist/ConfigBase.js +152 -0
  13. package/dist/ConfigBase.js.map +1 -0
  14. package/dist/DebugMng.js +89 -102
  15. package/dist/DebugMng.js.map +1 -1
  16. package/dist/EventListenerCtn.js +21 -0
  17. package/dist/EventListenerCtn.js.map +1 -0
  18. package/dist/EventMng.js +1435 -1577
  19. package/dist/EventMng.js.map +1 -1
  20. package/dist/Grammar.js +194 -0
  21. package/dist/Grammar.js.map +1 -0
  22. package/dist/GrpLayer.js +163 -195
  23. package/dist/GrpLayer.js.map +1 -1
  24. package/dist/Layer.js +260 -0
  25. package/dist/Layer.js.map +1 -0
  26. package/dist/LayerMng.js +810 -992
  27. package/dist/LayerMng.js.map +1 -1
  28. package/dist/Main.js +144 -393
  29. package/dist/Main.js.map +1 -1
  30. package/dist/PropParser.js +936 -834
  31. package/dist/PropParser.js.map +1 -1
  32. package/dist/Reading.js +918 -786
  33. package/dist/Reading.js.map +1 -1
  34. package/dist/RubySpliter.js +59 -89
  35. package/dist/RubySpliter.js.map +1 -1
  36. package/dist/ScriptIterator.js +805 -1035
  37. package/dist/ScriptIterator.js.map +1 -1
  38. package/dist/SndBuf.js +1097 -1326
  39. package/dist/SndBuf.js.map +1 -1
  40. package/dist/SoundMng.js +124 -135
  41. package/dist/SoundMng.js.map +1 -1
  42. package/dist/SpritesMng.js +220 -232
  43. package/dist/SpritesMng.js.map +1 -1
  44. package/dist/SysBase.js +1729 -0
  45. package/dist/SysBase.js.map +1 -0
  46. package/dist/TxtLayer.js +1212 -1398
  47. package/dist/TxtLayer.js.map +1 -1
  48. package/dist/Variable.js +398 -466
  49. package/dist/Variable.js.map +1 -1
  50. package/dist/chunk.js +18 -0
  51. package/dist/gamepad.js +723 -511
  52. package/dist/gamepad.js.map +1 -1
  53. package/dist/pixi.js +13422 -0
  54. package/dist/pixi.js.map +1 -0
  55. package/dist/platform.js +424 -369
  56. package/dist/platform.js.map +1 -1
  57. package/dist/sn/AnalyzeTagArg.d.ts +1 -1
  58. package/dist/sn/AnalyzeTagArg.d.ts.map +1 -1
  59. package/dist/sn/CmnInterface.d.ts +3 -1
  60. package/dist/sn/CmnInterface.d.ts.map +1 -1
  61. package/dist/sn/CmnLib.d.ts.map +1 -1
  62. package/dist/sn/CmnTween.d.ts +7 -7
  63. package/dist/sn/CmnTween.d.ts.map +1 -1
  64. package/dist/sn/EventMng.d.ts.map +1 -1
  65. package/dist/sn/FocusMng.d.ts.map +1 -1
  66. package/dist/sn/Grammar.d.ts +1 -1
  67. package/dist/sn/Grammar.d.ts.map +1 -1
  68. package/dist/sn/Log.d.ts.map +1 -1
  69. package/dist/sn/Main.d.ts.map +1 -1
  70. package/dist/sn/Pages.d.ts.map +1 -1
  71. package/dist/sn/PropParser.d.ts +2 -2
  72. package/dist/sn/PropParser.d.ts.map +1 -1
  73. package/dist/sn/Reading.d.ts +7 -0
  74. package/dist/sn/Reading.d.ts.map +1 -1
  75. package/dist/sn/RubySpliter.d.ts.map +1 -1
  76. package/dist/sn/ScriptIterator.d.ts.map +1 -1
  77. package/dist/sn/SndBuf.d.ts +27 -16
  78. package/dist/sn/SndBuf.d.ts.map +1 -1
  79. package/dist/sn/SoundMng.d.ts +4 -1
  80. package/dist/sn/SoundMng.d.ts.map +1 -1
  81. package/dist/sn/SysBase.d.ts.map +1 -1
  82. package/dist/sn/TxtStage.d.ts +4 -1
  83. package/dist/sn/TxtStage.d.ts.map +1 -1
  84. package/dist/test/ValTest.d.ts +1 -1
  85. package/dist/test/ValTest.d.ts.map +1 -1
  86. package/dist/web.js +653 -8
  87. package/dist/web.js.map +1 -1
  88. package/dist_app/Button.js +131 -163
  89. package/dist_app/Button.js.map +1 -1
  90. package/dist_app/CallStack.js +19 -22
  91. package/dist_app/CallStack.js.map +1 -1
  92. package/dist_app/CmnInterface.js +91 -0
  93. package/dist_app/CmnInterface.js.map +1 -0
  94. package/dist_app/CmnLib.js +94 -0
  95. package/dist_app/CmnLib.js.map +1 -0
  96. package/dist_app/Config.js +26 -0
  97. package/dist_app/Config.js.map +1 -0
  98. package/dist_app/ConfigBase.js +152 -0
  99. package/dist_app/ConfigBase.js.map +1 -0
  100. package/dist_app/DebugMng.js +92 -0
  101. package/dist_app/DebugMng.js.map +1 -0
  102. package/dist_app/EventListenerCtn.js +21 -0
  103. package/dist_app/EventListenerCtn.js.map +1 -0
  104. package/dist_app/EventMng.js +1435 -1577
  105. package/dist_app/EventMng.js.map +1 -1
  106. package/dist_app/Grammar.js +194 -0
  107. package/dist_app/Grammar.js.map +1 -0
  108. package/dist_app/GrpLayer.js +163 -195
  109. package/dist_app/GrpLayer.js.map +1 -1
  110. package/dist_app/Layer.js +260 -0
  111. package/dist_app/Layer.js.map +1 -0
  112. package/dist_app/LayerMng.js +810 -992
  113. package/dist_app/LayerMng.js.map +1 -1
  114. package/dist_app/Main.js +144 -392
  115. package/dist_app/Main.js.map +1 -1
  116. package/dist_app/PropParser.js +936 -834
  117. package/dist_app/PropParser.js.map +1 -1
  118. package/dist_app/Reading.js +918 -786
  119. package/dist_app/Reading.js.map +1 -1
  120. package/dist_app/RubySpliter.js +59 -89
  121. package/dist_app/RubySpliter.js.map +1 -1
  122. package/dist_app/ScriptIterator.js +805 -1034
  123. package/dist_app/ScriptIterator.js.map +1 -1
  124. package/dist_app/SndBuf.js +1097 -1326
  125. package/dist_app/SndBuf.js.map +1 -1
  126. package/dist_app/SoundMng.js +124 -135
  127. package/dist_app/SoundMng.js.map +1 -1
  128. package/dist_app/SpritesMng.js +220 -231
  129. package/dist_app/SpritesMng.js.map +1 -1
  130. package/dist_app/SysBase.js +1729 -0
  131. package/dist_app/SysBase.js.map +1 -0
  132. package/dist_app/TxtLayer.js +1212 -1397
  133. package/dist_app/TxtLayer.js.map +1 -1
  134. package/dist_app/Variable.js +398 -466
  135. package/dist_app/Variable.js.map +1 -1
  136. package/dist_app/app.js +211 -8
  137. package/dist_app/app.js.map +1 -1
  138. package/dist_app/appMain.js +20 -21
  139. package/dist_app/appMain.js.map +1 -1
  140. package/dist_app/chunk.js +18 -0
  141. package/dist_app/gamepad.js +723 -511
  142. package/dist_app/gamepad.js.map +1 -1
  143. package/dist_app/pixi.js +11181 -0
  144. package/dist_app/pixi.js.map +1 -0
  145. package/dist_app/platform.js +424 -369
  146. package/dist_app/platform.js.map +1 -1
  147. package/dist_app/preload.js +2 -2
  148. package/dist_app/preload.js.map +1 -1
  149. package/dist_app/sn/AnalyzeTagArg.d.ts +1 -1
  150. package/dist_app/sn/AnalyzeTagArg.d.ts.map +1 -1
  151. package/dist_app/sn/CmnInterface.d.ts +3 -1
  152. package/dist_app/sn/CmnInterface.d.ts.map +1 -1
  153. package/dist_app/sn/CmnLib.d.ts.map +1 -1
  154. package/dist_app/sn/CmnTween.d.ts +7 -7
  155. package/dist_app/sn/CmnTween.d.ts.map +1 -1
  156. package/dist_app/sn/EventMng.d.ts.map +1 -1
  157. package/dist_app/sn/FocusMng.d.ts.map +1 -1
  158. package/dist_app/sn/Grammar.d.ts +1 -1
  159. package/dist_app/sn/Grammar.d.ts.map +1 -1
  160. package/dist_app/sn/Log.d.ts.map +1 -1
  161. package/dist_app/sn/Main.d.ts.map +1 -1
  162. package/dist_app/sn/Pages.d.ts.map +1 -1
  163. package/dist_app/sn/PropParser.d.ts +2 -2
  164. package/dist_app/sn/PropParser.d.ts.map +1 -1
  165. package/dist_app/sn/Reading.d.ts +7 -0
  166. package/dist_app/sn/Reading.d.ts.map +1 -1
  167. package/dist_app/sn/RubySpliter.d.ts.map +1 -1
  168. package/dist_app/sn/ScriptIterator.d.ts.map +1 -1
  169. package/dist_app/sn/SndBuf.d.ts +27 -16
  170. package/dist_app/sn/SndBuf.d.ts.map +1 -1
  171. package/dist_app/sn/SoundMng.d.ts +4 -1
  172. package/dist_app/sn/SoundMng.d.ts.map +1 -1
  173. package/dist_app/sn/SysBase.d.ts.map +1 -1
  174. package/dist_app/sn/TxtStage.d.ts +4 -1
  175. package/dist_app/sn/TxtStage.d.ts.map +1 -1
  176. package/dist_app/test/ValTest.d.ts +1 -1
  177. package/dist_app/test/ValTest.d.ts.map +1 -1
  178. package/package.json +24 -14
  179. package/dist/CmnTween.js +0 -193
  180. package/dist/CmnTween.js.map +0 -1
  181. package/dist/web2.js +0 -21644
  182. package/dist/web2.js.map +0 -1
  183. package/dist_app/CmnTween.js +0 -193
  184. package/dist_app/CmnTween.js.map +0 -1
  185. package/dist_app/app2.js +0 -18547
  186. package/dist_app/app2.js.map +0 -1
@@ -1,467 +1,399 @@
1
- import { u as b, f as p, h as w, i as f, j as N, k as r, e as S } from "./app2.js";
2
- import { c as O } from "./CallStack.js";
3
- import { PropParser as C } from "./PropParser.js";
4
- import { R as W } from "./Reading.js";
5
- class m {
6
- #t = {};
7
- clear() {
8
- this.#t = {};
9
- }
10
- static from(t) {
11
- const s = new m();
12
- return s.#t = { ...t }, s;
13
- }
14
- val() {
15
- return { ...this.#t };
16
- }
17
- search(t) {
18
- return Object.entries(this.#t).some(([s, e]) => t >= parseInt(s) && t <= e);
19
- }
20
- record(t) {
21
- if (!this.search(t)) {
22
- for (const [s, e] of Object.entries(this.#t))
23
- if (e + 1 === t) {
24
- String(t + 1) in this.#t ? (this.#t[s] = this.#t[t + 1], delete this.#t[t + 1]) : this.#t[s] = t;
25
- return;
26
- }
27
- if (String(t + 1) in this.#t) {
28
- this.#t[t] = this.#t[t + 1], delete this.#t[t + 1];
29
- return;
30
- }
31
- this.#t[t] = t;
32
- }
33
- }
34
- erase(t) {
35
- if (this.search(t)) {
36
- if (String(t) in this.#t) {
37
- this.#t[t] > t && (this.#t[t + 1] = this.#t[t]), delete this.#t[t];
38
- return;
39
- }
40
- for (const [s, e] of Object.entries(this.#t))
41
- if (!(t < parseInt(s) || e < t)) {
42
- if (this.#t[s] === t) {
43
- this.#t[s] = t - 1;
44
- return;
45
- }
46
- this.#t[t + 1] = e, this.#t[s] = t - 1;
47
- return;
48
- }
49
- }
50
- }
51
- get count() {
52
- return Object.keys(this.#t).length;
53
- }
54
- // 4tst
55
- toString() {
56
- let t = "";
57
- for (const s of Object.keys(this.#t).map((e) => parseInt(e)).sort((e, i) => e - i))
58
- t += s === this.#t[s] ? "," + String(s) : "," + String(s) + "~" + String(this.#t[String(s)]);
59
- return t;
60
- }
61
- }
62
- class g {
63
- constructor(t, s, e) {
64
- this.sys = t, this.cfg = s, e.let = (i) => this.#i(i), e.let_abs = (i) => this.#V(i), e.let_char_at = (i) => this.#j(i), e.let_index_of = (i) => this.#P(i), e.let_length = (i) => this.#R(i), e.let_replace = (i) => this.#L(i), e.let_round = (i) => this.#K(i), e.let_search = (i) => this.#F(i), e.let_substr = (i) => this.#M(i), e.clearsysvar = () => this.#p(), e.clearvar = () => this.#D(), e.dump_val = () => this.#E(), e.copybookmark = (i) => this.#W(i), e.erasebookmark = (i) => this.#O(i), this.defTmp("const.sn.bookmark.json", () => {
65
- const i = [];
66
- for (const [c, n] of Object.entries(this.#e.mark)) {
67
- const h = { ...n.json };
68
- h.place = b(c), i.push(h);
69
- }
70
- return JSON.stringify(i);
71
- }), this.#o["const.sn.config.window.width"] = s.oCfg.window.width, this.#o["const.sn.config.window.height"] = s.oCfg.window.height, this.#o["const.sn.config.book.title"] = s.oCfg.book.title, this.#o["const.sn.config.book.version"] = s.oCfg.book.version;
72
- }
73
- #t = p();
74
- #o = w();
75
- #s = {
76
- sys: {},
77
- // clearsysvarを呼ぶので
78
- save: this.#t,
79
- tmp: this.#o,
80
- mp: {},
81
- mark: {}
82
- };
83
- #e = {
84
- sys: {},
85
- // clearsysvarを呼ぶので
86
- mark: {},
87
- kidoku: {}
88
- };
89
- #n;
90
- #a = {};
91
- #_;
92
- async init() {
93
- return this.sys.initVal(this.#o, (t) => {
94
- this.updateData(t), this.cfg.oCfg.debug.variable ? this.#N(this.sys) : this.flush = () => this.sys.flush(), this.flush(), this.#_ = (e, i) => this.sys.callHook(e, i), this.sys.addHook((e, i) => this.#C[e]?.(e, i)), f(this.getVal("sys:sn.tagCh.msecWait", -1)) === -1 && this.#p(!0), this.#l = !!this.getVal("sys:sn.tagCh.doWait"), this.#f = !!this.getVal("sys:sn.tagCh.doWait_Kidoku"), this.#u = f(this.getVal("sys:sn.tagCh.msecWait")), this.#g = f(this.getVal("sys:sn.tagCh.msecWait_Kidoku")), this.#m();
95
- });
96
- }
97
- //MARK: SessionStorage で確認できるデバッグ機能
98
- #N(t) {
99
- sessionStorage.clear();
100
- const s = this.cfg.headNs;
101
- this.flush = () => {
102
- const e = N();
103
- for (const [a, o] of Object.entries(this.#n))
104
- o instanceof Function || (e[a] = o);
105
- sessionStorage[s + "sys"] = JSON.stringify(e);
106
- const i = p();
107
- for (const [a, o] of Object.entries(this.#t))
108
- i[a] = o;
109
- sessionStorage[s + "save"] = JSON.stringify(i);
110
- const c = w();
111
- for (const [a, o] of Object.entries(this.#o))
112
- c[a] = o instanceof Function ? o() : o;
113
- sessionStorage[s + "tmp"] = JSON.stringify(c);
114
- const n = O();
115
- for (const [a, o] of Object.entries(this.#s.mp))
116
- n[a] = o;
117
- sessionStorage[s + "mp"] = JSON.stringify(n);
118
- const h = {};
119
- for (const [a, o] of Object.entries(this.#e.mark))
120
- h[f(a)] = o instanceof Function ? o() : o;
121
- sessionStorage[s + "mark"] = JSON.stringify(h), sessionStorage[s + "kidoku"] = structuredClone(this.#e.kidoku), t.flush();
122
- };
123
- }
124
- #m() {
125
- W.playbackPage(
126
- String(this.getVal("sys:const.sn.aPageLog", "[]")),
127
- String(this.getVal("save:const.sn.styPaging", W.INI_STYPAGE))
128
- );
129
- }
130
- #C = {
131
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
132
- auth: (t, s) => this.#y(s.hBreakpoint.aData),
133
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
134
- var: (t, s) => this.sys.send2Dbg(s.ri, { v: this.#s[s.scope] ?? {} }),
135
- set_var: (t, s) => {
136
- try {
137
- this.#S(s.nm, s.val), this.sys.send2Dbg(s.ri, {});
138
- } catch {
139
- }
140
- },
141
- set_data_break: (t, s) => {
142
- this.#y(s.a), this.sys.send2Dbg(s.ri, {});
143
- },
144
- disconnect: (t) => {
145
- g.#r = {};
146
- }
147
- };
148
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
149
- #y(t) {
150
- g.#r = {};
151
- for (const s of t) g.#r[s.dataId] = 1;
152
- }
153
- //MARK: 外からのデータで保持データを更新
154
- // 初期化時やインポートなどで使用
155
- updateData(t) {
156
- this.#e = t, this.#n = this.#s.sys = t.sys, this.#a = {};
157
- for (const [s, e] of Object.entries(t.kidoku))
158
- this.#a[s] = m.from(e);
159
- }
160
- flush = () => {
161
- };
162
- setDoRecProc(t) {
163
- this.#d = t;
164
- }
165
- #d = (t) => {
166
- };
167
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
168
- defTmp(t, s) {
169
- this.#o[t] = s;
170
- }
171
- cloneMp() {
172
- return { ...this.#s.mp };
173
- }
174
- setMp(t) {
175
- this.#s.mp = t;
176
- }
177
- setMark(t, s) {
178
- this.#e.mark[t] = s, this.flush();
179
- }
180
- getMark(t) {
181
- const s = this.#e.mark[t];
182
- if (!s) throw `place【${String(t)}】は存在しません`;
183
- return s;
184
- }
185
- cloneSave() {
186
- return { ...this.#s.save };
187
- }
188
- mark2save(t) {
189
- this.#t = this.#s.save = { ...t.hSave }, this.#h = this.#t["sn.doRecLog"];
190
- }
191
- // 既読系
192
- touchAreaKidoku(t) {
193
- const s = this.#a[t];
194
- return s || (this.#e.kidoku[t] = {}, this.#a[t] = new m());
195
- }
196
- getAreaKidoku(t) {
197
- const s = this.#a[t];
198
- if (!s) throw `hAreaKidoku${t}】は存在しません`;
199
- return s;
200
- }
201
- saveKidoku() {
202
- for (const [t, s] of Object.entries(this.#a))
203
- this.#e.kidoku[t] = s.val();
204
- this.flush();
205
- }
206
- // // しおり
207
- // しおりの複写
208
- #W(t) {
209
- const s = r(t, "from", NaN), e = r(t, "to", NaN);
210
- if (s === e) return !1;
211
- const i = this.#e.mark[s];
212
- if (!i) throw `from:${String(s)} のセーブデータは存在しません`;
213
- return this.setMark(e, { ...i }), this.sys.copyBMFolder(s, e), !1;
214
- }
215
- // しおりの消去
216
- #O(t) {
217
- const s = r(t, "place", NaN);
218
- return delete this.#e.mark[s], this.flush(), this.sys.eraseBMFolder(s), !1;
219
- }
220
- // // 変数操作
221
- // 変数代入・演算
222
- #i(t) {
223
- if (!t.name) throw "nameは必須です";
224
- let s = !0;
225
- if (t.cast)
226
- switch (t.cast) {
227
- case "num":
228
- r(t, "text", NaN);
229
- break;
230
- case "int":
231
- t.text = String(f(r(t, "text", NaN)));
232
- break;
233
- case "uint":
234
- t.text = String(b(r(t, "text", NaN)));
235
- break;
236
- case "bool":
237
- S(t, "text", !1);
238
- break;
239
- case "str":
240
- s = !1;
241
- break;
242
- default:
243
- throw "cast【" + t.cast + "】は未定義です";
244
- }
245
- return this.#S(t.name, t.text, s), !1;
246
- }
247
- // 絶対値
248
- #V(t) {
249
- const s = r(t, "text", 0);
250
- return t.text = String(s < 0 ? -s : s), this.#i(t), !1;
251
- }
252
- // 文字列から一字取りだし
253
- #j(t) {
254
- return t.text = (t.text ?? "").charAt(r(t, "pos", 0)), this.#i(t), !1;
255
- }
256
- // 文字列で検索
257
- #P(t) {
258
- const { val: s } = t;
259
- if (!s) throw "valは必須です";
260
- const e = r(t, "start", 0);
261
- return t.text = String((t.text ?? "").indexOf(s, e)), this.#i(t), !1;
262
- }
263
- // 文字列の長さ
264
- #R(t) {
265
- return t.text = String((t.text ?? "").length), this.#i(t), !1;
266
- }
267
- // 正規表現で置換
268
- #L(t) {
269
- if (!t.reg) throw "regは必須です";
270
- const { flags: s } = t, e = s ? new RegExp(t.reg, s) : new RegExp(t.reg);
271
- return t.text = (t.text ?? "").replace(e, String(t.val)), this.#i(t), !1;
272
- }
273
- // 四捨五入
274
- #K(t) {
275
- const s = r(t, "text", 0);
276
- return t.text = String(Math.round(s)), this.#i(t), !1;
277
- }
278
- // 正規表現で検索
279
- #F(t) {
280
- if (!t.reg) throw "regは必須です";
281
- const { flags: s } = t, e = s ? new RegExp(t.reg, s) : new RegExp(t.reg);
282
- return t.text = String((t.text ?? "").search(e)), this.#i(t), !1;
283
- }
284
- // 文字列から抜きだし
285
- #M(t) {
286
- const s = r(t, "pos", 0);
287
- return t.text = t.len !== "all" ? (t.text ?? "").slice(s, s + f(r(t, "len", 1))) : (t.text ?? "").slice(s), this.#i(t), !1;
288
- }
289
- // // デバッグ・その他
290
- // システム変数の全消去
291
- #p(t = !1) {
292
- const s = this.#n = this.#s.sys = this.#e.sys = N();
293
- typeof process < "u" || (this.setVal_Nochk("sys", "const.sn.window.x", 0), this.setVal_Nochk("sys", "const.sn.window.y", 0)), this.setVal_Nochk("sys", "sn.tagCh.msecWait", this.cfg.oCfg.init.tagch_msecwait), this.setVal_Nochk("sys", "sn.tagCh.msecWait_Kidoku", this.cfg.oCfg.init.tagch_msecwait), this.setVal_Nochk("sys", "sn.auto.msecPageWait", r(s, "sn.auto.msecPageWait", this.cfg.oCfg.init.auto_msecpagewait)), this.setVal_Nochk("sys", "sn.auto.msecPageWait_Kidoku", r(s, "sn.auto.msecPageWait", this.cfg.oCfg.init.auto_msecpagewait));
294
- for (const i of Object.values(this.#a)) i.clear();
295
- return this.#s.mark = this.#e.mark = {}, t || this.#m(), this.flush(), !1;
296
- }
297
- // ゲーム変数の全消去
298
- #D() {
299
- const t = this.#t["const.sn.mesLayer"], s = this.#t["sn.doRecLog"], e = this.#t["const.sn.sLog"], i = this.#t["const.sn.styPaging"];
300
- return this.#t = this.#s.save = p(), this.setVal_Nochk("save", "const.sn.mesLayer", t), this.setVal_Nochk("save", "sn.doRecLog", s), this.setVal_Nochk("save", "const.sn.sLog", e), this.setVal_Nochk("save", "const.sn.styPaging", i), !1;
301
- }
302
- #S(t, s, e = !0) {
303
- if (!t) throw "[変数に値セット] nameは必須です";
304
- if (s === void 0) throw "[変数に値セット] textは必須です(空文字はOK)";
305
- const i = C.getValName(t);
306
- if (!i) throw `[変数参照] name(${t})が変数名として異常です`;
307
- const { scope: c, name: n } = i, h = this.#s[c];
308
- if (n.startsWith("const.") && n in h)
309
- throw `[変数に値セット] 変数【${n}】は書き換え不可です`;
310
- this.setVal_Nochk(c, n, s, e);
311
- }
312
- setVal_Nochk(t, s, e, i = !1) {
313
- const c = this.#s[t], n = i ? this.#c(e) : e, h = t + ":" + s;
314
- if (h in g.#r) {
315
- const a = c[s];
316
- a != n && this.#_("data_break", {
317
- dataId: h,
318
- old_v: a,
319
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
320
- new_v: n
321
- });
322
- }
323
- c[s] = n, this.#v[h]?.(s, n ?? "");
324
- }
325
- // reload 再生成 Main に受け渡すため static
326
- static #r = {};
327
- // readonly getVal_save = (arg_name: string, def?: number | string)=> {
328
- // if (! arg_name) throw '[変数参照] nameは必須です';
329
- getVal(t, s, e = !1) {
330
- if (!t) throw "[変数参照] nameは必須です";
331
- const i = C.getValName(t);
332
- if (!i) throw "[変数参照] name(" + t + ")が変数名として異常です";
333
- const { scope: c, name: n, at: h } = i, a = this.#s[c];
334
- let o = a[n];
335
- if (!(n in a)) {
336
- if (o = s, e)
337
- return a[n] = s, h === "@str" ? o : this.#c(o);
338
- let k = "";
339
- const y = n.split("."), _ = y.length;
340
- for (let u = 0; u < _; ++u, k += ".") {
341
- if (k += y[u], !(k in a)) continue;
342
- let l = JSON.parse(a[k]);
343
- if (Object.prototype.toString.call(l) !== "[object Object]") {
344
- if (u + 1 === _) {
345
- o = l;
346
- break;
347
- }
348
- continue;
349
- }
350
- let d = u;
351
- for (; ++d < _; ) {
352
- const v = y[d];
353
- if (!(v in l)) {
354
- o = s;
355
- break;
356
- }
357
- if (l = l[v], Object.prototype.toString.call(l) !== "[object Object]" || d + 1 === _) {
358
- o = l;
359
- break;
360
- }
361
- }
362
- o instanceof Object && (o = JSON.stringify(o));
363
- break;
364
- }
365
- }
366
- return o instanceof Function && (o = o()), h === "@str" ? o : this.#c(o);
367
- }
368
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
369
- #c(t) {
370
- const s = t;
371
- if (s === "true") return !0;
372
- if (s === "false") return !1;
373
- if (s === "null") return null;
374
- if (s !== "undefined")
375
- return this.#x.test(s) ? parseFloat(s) : t;
376
- }
377
- #x = /^-?[\d.]+$/;
378
- // 変数のダンプ
379
- #E() {
380
- const t = { tmp: {}, sys: {}, save: {}, mp: {} };
381
- for (const s in t) {
382
- const e = this.#s[s], i = t[s];
383
- for (const [c, n] of Object.entries(e))
384
- n instanceof Function || (i[c] = n);
385
- }
386
- return console.info("🥟 [dump_val]", t), !1;
387
- }
388
- #h = !1;
389
- doRecLog() {
390
- return this.#h;
391
- }
392
- #l = !1;
393
- get tagCh_doWait() {
394
- return this.#l;
395
- }
396
- #f = !1;
397
- get tagCh_doWait_Kidoku() {
398
- return this.#f;
399
- }
400
- #u = 0;
401
- get tagCh_msecWait() {
402
- return this.#u;
403
- }
404
- #g = 0;
405
- get tagCh_msecWait_Kidoku() {
406
- return this.#g;
407
- }
408
- #v = {
409
- // sys
410
- "sys:sn.tagCh.doWait": (t) => {
411
- this.#l = this.#k(t);
412
- },
413
- "sys:sn.tagCh.doWait_Kidoku": (t) => {
414
- this.#f = this.#k(t);
415
- },
416
- "sys:sn.tagCh.msecWait": (t) => {
417
- this.#u = this.#I(t);
418
- },
419
- "sys:sn.tagCh.msecWait_Kidoku": (t) => {
420
- this.#g = this.#B(t);
421
- },
422
- "sys:sn.tagCh.canskip": (t) => this.#k(t),
423
- "sys:sn.auto.msecPageWait": (t) => this.#b(t),
424
- "sys:sn.auto.msecPageWait_Kidoku": (t) => this.#b(t),
425
- "sys:sn.auto.msecLineWait": (t) => this.#w(t),
426
- "sys:sn.auto.msecLineWait_Kidoku": (t) => this.#w(t),
427
- // save
428
- "save:sn.doRecLog": (t) => {
429
- this.#d(
430
- this.#h = this.#J(t)
431
- );
432
- },
433
- "save:sn.userFnTail": (t, s) => {
434
- const e = String(s);
435
- if (e.includes("@")) throw "この変数では文字「@」は禁止です";
436
- this.cfg.userFnTail = e;
437
- },
438
- // tmp
439
- "tmp:flash.desktop.NativeApplication.nativeApplication.systemIdleMode": () => {
440
- }
441
- };
442
- defValTrg(t, s) {
443
- this.#v[t] = s;
444
- }
445
- #k = (t) => S(this.#n, t, !0);
446
- #I = (t) => r(this.#n, t, 10);
447
- #B = (t) => r(
448
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
449
- this.#n,
450
- t,
451
- this.cfg.oCfg.init.tagch_msecwait ?? 10
452
- );
453
- #b = (t) => r(
454
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
455
- this.#n,
456
- t,
457
- this.cfg.oCfg.init.auto_msecpagewait ?? 3500
458
- );
459
- #w = (t) => r(this.#n, t, 500);
460
- #J(t) {
461
- return S(this.#t, t, !0);
462
- }
463
- }
464
- export {
465
- g as Variable
1
+ import { g as uint, l as argChk_Num, p as int, s as argChk_Boolean } from "./CmnLib.js";
2
+ import { n as creSYS_DATA, r as creTMP_DATA, t as creSAVEDATA } from "./CmnInterface.js";
3
+ import "./pixi.js";
4
+ import "./EventListenerCtn.js";
5
+ import { n as ReadingState } from "./Reading.js";
6
+ import { PropParser } from "./PropParser.js";
7
+ import { n as creCSArg } from "./CallStack.js";
8
+ var Areas = class e {
9
+ #e = {};
10
+ clear() {
11
+ this.#e = {};
12
+ }
13
+ static from(t) {
14
+ let n = new e();
15
+ return n.#e = { ...t }, n;
16
+ }
17
+ val() {
18
+ return { ...this.#e };
19
+ }
20
+ search(e) {
21
+ return Object.entries(this.#e).some(([t, n]) => e >= parseInt(t) && e <= n);
22
+ }
23
+ record(e) {
24
+ if (!this.search(e)) {
25
+ for (let [t, n] of Object.entries(this.#e)) if (n + 1 === e) {
26
+ String(e + 1) in this.#e ? (this.#e[t] = this.#e[e + 1], delete this.#e[e + 1]) : this.#e[t] = e;
27
+ return;
28
+ }
29
+ if (String(e + 1) in this.#e) {
30
+ this.#e[e] = this.#e[e + 1], delete this.#e[e + 1];
31
+ return;
32
+ }
33
+ this.#e[e] = e;
34
+ }
35
+ }
36
+ erase(e) {
37
+ if (this.search(e)) {
38
+ if (String(e) in this.#e) {
39
+ this.#e[e] > e && (this.#e[e + 1] = this.#e[e]), delete this.#e[e];
40
+ return;
41
+ }
42
+ for (let [t, n] of Object.entries(this.#e)) if (!(e < parseInt(t) || n < e)) {
43
+ if (this.#e[t] === e) {
44
+ this.#e[t] = e - 1;
45
+ return;
46
+ }
47
+ this.#e[e + 1] = n, this.#e[t] = e - 1;
48
+ return;
49
+ }
50
+ }
51
+ }
52
+ get count() {
53
+ return Object.keys(this.#e).length;
54
+ }
55
+ toString() {
56
+ let e = "";
57
+ for (let t of Object.keys(this.#e).map((e) => parseInt(e)).sort((e, t) => e - t)) e += t === this.#e[t] ? "," + String(t) : "," + String(t) + "~" + String(this.#e[String(t)]);
58
+ return e;
59
+ }
60
+ }, Variable = class d {
61
+ #e = creSAVEDATA();
62
+ #t = creTMP_DATA();
63
+ #n = {
64
+ sys: {},
65
+ save: this.#e,
66
+ tmp: this.#t,
67
+ mp: {},
68
+ mark: {}
69
+ };
70
+ constructor(t, n, r) {
71
+ this.sys = t, this.cfg = n, r.let = (e) => this.#m(e), r.let_abs = (e) => this.#h(e), r.let_char_at = (e) => this.#g(e), r.let_index_of = (e) => this.#_(e), r.let_length = (e) => this.#v(e), r.let_replace = (e) => this.#y(e), r.let_round = (e) => this.#b(e), r.let_search = (e) => this.#x(e), r.let_substr = (e) => this.#S(e), r.clearsysvar = () => this.#C(), r.clearvar = () => this.#w(), r.dump_val = () => this.#k(), r.copybookmark = (e) => this.#f(e), r.erasebookmark = (e) => this.#p(e), this.defTmp("const.sn.bookmark.json", () => {
72
+ let t = [];
73
+ for (let [n, r] of Object.entries(this.#r.mark)) {
74
+ let i = { ...r.json };
75
+ i.place = uint(n), t.push(i);
76
+ }
77
+ return JSON.stringify(t);
78
+ }), this.#t["const.sn.config.window.width"] = n.oCfg.window.width, this.#t["const.sn.config.window.height"] = n.oCfg.window.height, this.#t["const.sn.config.book.title"] = n.oCfg.book.title, this.#t["const.sn.config.book.version"] = n.oCfg.book.version;
79
+ }
80
+ #r = {
81
+ sys: {},
82
+ mark: {},
83
+ kidoku: {}
84
+ };
85
+ #i;
86
+ #a = {};
87
+ #o;
88
+ async init() {
89
+ return this.sys.initVal(this.#t, (e) => {
90
+ this.updateData(e), this.cfg.oCfg.debug.variable ? this.#s(this.sys) : this.flush = () => this.sys.flush(), this.flush(), this.#o = (e, t) => this.sys.callHook(e, t), this.sys.addHook((e, t) => this.#l[e]?.(e, t)), int(this.getVal("sys:sn.tagCh.msecWait", -1)) === -1 && this.#C(!0), this.#j = !!this.getVal("sys:sn.tagCh.doWait"), this.#M = !!this.getVal("sys:sn.tagCh.doWait_Kidoku"), this.#N = int(this.getVal("sys:sn.tagCh.msecWait")), this.#P = int(this.getVal("sys:sn.tagCh.msecWait_Kidoku")), this.#c();
91
+ });
92
+ }
93
+ #s(e) {
94
+ sessionStorage.clear();
95
+ let t = this.cfg.headNs;
96
+ this.flush = () => {
97
+ let r = creSYS_DATA();
98
+ for (let [e, t] of Object.entries(this.#i)) t instanceof Function || (r[e] = t);
99
+ sessionStorage[t + "sys"] = JSON.stringify(r);
100
+ let s = creSAVEDATA();
101
+ for (let [e, t] of Object.entries(this.#e)) s[e] = t;
102
+ sessionStorage[t + "save"] = JSON.stringify(s);
103
+ let c = creTMP_DATA();
104
+ for (let [e, t] of Object.entries(this.#t)) c[e] = t instanceof Function ? t() : t;
105
+ sessionStorage[t + "tmp"] = JSON.stringify(c);
106
+ let u = creCSArg();
107
+ for (let [e, t] of Object.entries(this.#n.mp)) u[e] = t;
108
+ sessionStorage[t + "mp"] = JSON.stringify(u);
109
+ let d = {};
110
+ for (let [e, t] of Object.entries(this.#r.mark)) d[int(e)] = t instanceof Function ? t() : t;
111
+ sessionStorage[t + "mark"] = JSON.stringify(d), sessionStorage[t + "kidoku"] = structuredClone(this.#r.kidoku), e.flush();
112
+ };
113
+ }
114
+ #c() {
115
+ ReadingState.playbackPage(String(this.getVal("sys:const.sn.aPageLog", "[]")), String(this.getVal("save:const.sn.styPaging", ReadingState.INI_STYPAGE)));
116
+ }
117
+ #l = {
118
+ auth: (e, t) => this.#u(t.hBreakpoint.aData),
119
+ var: (e, t) => this.sys.send2Dbg(t.ri, { v: this.#n[t.scope] ?? {} }),
120
+ set_var: (e, t) => {
121
+ try {
122
+ this.#T(t.nm, t.val), this.sys.send2Dbg(t.ri, {});
123
+ } catch {}
124
+ },
125
+ set_data_break: (e, t) => {
126
+ this.#u(t.a), this.sys.send2Dbg(t.ri, {});
127
+ },
128
+ disconnect: (e) => {
129
+ d.#E = {};
130
+ }
131
+ };
132
+ #u(e) {
133
+ d.#E = {};
134
+ for (let t of e) d.#E[t.dataId] = 1;
135
+ }
136
+ updateData(e) {
137
+ this.#r = e, this.#i = this.#n.sys = e.sys, this.#a = {};
138
+ for (let [t, n] of Object.entries(e.kidoku)) this.#a[t] = Areas.from(n);
139
+ }
140
+ flush = () => {};
141
+ setDoRecProc(e) {
142
+ this.#d = e;
143
+ }
144
+ #d = (e) => {};
145
+ defTmp(e, t) {
146
+ this.#t[e] = t;
147
+ }
148
+ cloneMp() {
149
+ return { ...this.#n.mp };
150
+ }
151
+ setMp(e) {
152
+ this.#n.mp = e;
153
+ }
154
+ setMark(e, t) {
155
+ this.#r.mark[e] = t, this.flush();
156
+ }
157
+ getMark(e) {
158
+ let t = this.#r.mark[e];
159
+ if (!t) throw `place【${String(e)}】は存在しません`;
160
+ return t;
161
+ }
162
+ cloneSave() {
163
+ return { ...this.#n.save };
164
+ }
165
+ mark2save(e) {
166
+ this.#e = this.#n.save = { ...e.hSave }, this.#A = this.#e["sn.doRecLog"];
167
+ }
168
+ touchAreaKidoku(e) {
169
+ return this.#a[e] || (this.#r.kidoku[e] = {}, this.#a[e] = new Areas());
170
+ }
171
+ getAreaKidoku(e) {
172
+ let t = this.#a[e];
173
+ if (!t) throw `hAreaKidoku${e}】は存在しません`;
174
+ return t;
175
+ }
176
+ saveKidoku() {
177
+ for (let [e, t] of Object.entries(this.#a)) this.#r.kidoku[e] = t.val();
178
+ this.flush();
179
+ }
180
+ #f(e) {
181
+ let n = argChk_Num(e, "from", NaN), r = argChk_Num(e, "to", NaN);
182
+ if (n === r) return !1;
183
+ let i = this.#r.mark[n];
184
+ if (!i) throw `from:${String(n)} のセーブデータは存在しません`;
185
+ return this.setMark(r, { ...i }), this.sys.copyBMFolder(n, r), !1;
186
+ }
187
+ #p(e) {
188
+ let n = argChk_Num(e, "place", NaN);
189
+ return delete this.#r.mark[n], this.flush(), this.sys.eraseBMFolder(n), !1;
190
+ }
191
+ #m(i) {
192
+ if (!i.name) throw "nameは必須です";
193
+ let a = !0;
194
+ if (i.cast) switch (i.cast) {
195
+ case "num":
196
+ argChk_Num(i, "text", NaN);
197
+ break;
198
+ case "int":
199
+ i.text = String(int(argChk_Num(i, "text", NaN)));
200
+ break;
201
+ case "uint":
202
+ i.text = String(uint(argChk_Num(i, "text", NaN)));
203
+ break;
204
+ case "bool":
205
+ argChk_Boolean(i, "text", !1);
206
+ break;
207
+ case "str":
208
+ a = !1;
209
+ break;
210
+ default: throw "cast【" + i.cast + "】は未定義です";
211
+ }
212
+ return this.#T(i.name, i.text, a), !1;
213
+ }
214
+ #h(e) {
215
+ let n = argChk_Num(e, "text", 0);
216
+ return e.text = String(n < 0 ? -n : n), this.#m(e), !1;
217
+ }
218
+ #g(e) {
219
+ return e.text = (e.text ?? "").charAt(argChk_Num(e, "pos", 0)), this.#m(e), !1;
220
+ }
221
+ #_(e) {
222
+ let { val: n } = e;
223
+ if (!n) throw "valは必須です";
224
+ let r = argChk_Num(e, "start", 0);
225
+ return e.text = String((e.text ?? "").indexOf(n, r)), this.#m(e), !1;
226
+ }
227
+ #v(e) {
228
+ return e.text = String((e.text ?? "").length), this.#m(e), !1;
229
+ }
230
+ #y(e) {
231
+ if (!e.reg) throw "regは必須です";
232
+ let { flags: t } = e, n = t ? new RegExp(e.reg, t) : new RegExp(e.reg);
233
+ return e.text = (e.text ?? "").replace(n, String(e.val)), this.#m(e), !1;
234
+ }
235
+ #b(e) {
236
+ let n = argChk_Num(e, "text", 0);
237
+ return e.text = String(Math.round(n)), this.#m(e), !1;
238
+ }
239
+ #x(e) {
240
+ if (!e.reg) throw "regは必須です";
241
+ let { flags: t } = e, n = t ? new RegExp(e.reg, t) : new RegExp(e.reg);
242
+ return e.text = String((e.text ?? "").search(n)), this.#m(e), !1;
243
+ }
244
+ #S(e) {
245
+ let r = argChk_Num(e, "pos", 0);
246
+ return e.text = e.len === "all" ? (e.text ?? "").slice(r) : (e.text ?? "").slice(r, r + int(argChk_Num(e, "len", 1))), this.#m(e), !1;
247
+ }
248
+ #C(e = !1) {
249
+ let n = this.#i = this.#n.sys = this.#r.sys = creSYS_DATA();
250
+ typeof process < "u" || (this.setVal_Nochk("sys", "const.sn.window.x", 0), this.setVal_Nochk("sys", "const.sn.window.y", 0)), this.setVal_Nochk("sys", "sn.tagCh.msecWait", this.cfg.oCfg.init.tagch_msecwait), this.setVal_Nochk("sys", "sn.tagCh.msecWait_Kidoku", this.cfg.oCfg.init.tagch_msecwait), this.setVal_Nochk("sys", "sn.auto.msecPageWait", argChk_Num(n, "sn.auto.msecPageWait", this.cfg.oCfg.init.auto_msecpagewait)), this.setVal_Nochk("sys", "sn.auto.msecPageWait_Kidoku", argChk_Num(n, "sn.auto.msecPageWait", this.cfg.oCfg.init.auto_msecpagewait));
251
+ for (let e of Object.values(this.#a)) e.clear();
252
+ return this.#n.mark = this.#r.mark = {}, e || this.#c(), this.flush(), !1;
253
+ }
254
+ #w() {
255
+ let e = this.#e["const.sn.mesLayer"], t = this.#e["sn.doRecLog"], n = this.#e["const.sn.sLog"], r = this.#e["const.sn.styPaging"];
256
+ return this.#e = this.#n.save = creSAVEDATA(), this.setVal_Nochk("save", "const.sn.mesLayer", e), this.setVal_Nochk("save", "sn.doRecLog", t), this.setVal_Nochk("save", "const.sn.sLog", n), this.setVal_Nochk("save", "const.sn.styPaging", r), !1;
257
+ }
258
+ #T(e, t, n = !0) {
259
+ if (!e) throw "[変数に値セット] nameは必須です";
260
+ if (t === void 0) throw "[変数に値セット] textは必須です(空文字はOK)";
261
+ let r = PropParser.getValName(e);
262
+ if (!r) throw `[変数参照] name(${e})が変数名として異常です`;
263
+ let { scope: i = "tmp", name: a } = r, o = this.#n[i];
264
+ if (a.startsWith("const.") && a in o) throw `[変数に値セット] 変数【${a}】は書き換え不可です`;
265
+ this.setVal_Nochk(i, a, t, n);
266
+ }
267
+ setVal_Nochk(e, t, n, r = !1) {
268
+ let i = this.#n[e], a = r ? this.#D(n) : n, o = e + ":" + t;
269
+ if (o in d.#E) {
270
+ let e = i[t];
271
+ e != a && this.#o("data_break", {
272
+ dataId: o,
273
+ old_v: e,
274
+ new_v: a
275
+ });
276
+ }
277
+ i[t] = a, this.#F[o]?.(t, a ?? "");
278
+ }
279
+ static #E = {};
280
+ getVal(e, t, n = !1) {
281
+ if (!e) throw "[変数参照] nameは必須です";
282
+ let r = PropParser.getValName(e);
283
+ if (!r) throw "[変数参照] name(" + e + ")が変数名として異常です";
284
+ let { scope: i = "tmp", name: a, at: o } = r, s = this.#n[i], l = s[a];
285
+ if (!(a in s)) {
286
+ if (l = t, n) return s[a] = t, o === "@str" ? l : this.#D(l);
287
+ let e = "", r = a.split("."), i = r.length;
288
+ for (let n = 0; n < i; ++n, e += ".") {
289
+ if (e += r[n], !(e in s)) continue;
290
+ let a = JSON.parse(s[e]);
291
+ if (Object.prototype.toString.call(a) !== "[object Object]") {
292
+ if (n + 1 === i) {
293
+ l = a;
294
+ break;
295
+ }
296
+ continue;
297
+ }
298
+ let o = n;
299
+ for (; ++o < i;) {
300
+ let e = r[o];
301
+ if (!(e in a)) {
302
+ l = t;
303
+ break;
304
+ }
305
+ if (a = a[e], Object.prototype.toString.call(a) !== "[object Object]" || o + 1 === i) {
306
+ l = a;
307
+ break;
308
+ }
309
+ }
310
+ l instanceof Object && (l = JSON.stringify(l));
311
+ break;
312
+ }
313
+ }
314
+ return l instanceof Function && (l = l()), o === "@str" ? l : this.#D(l);
315
+ }
316
+ #D(e) {
317
+ let t = e;
318
+ if (t === "true") return !0;
319
+ if (t === "false") return !1;
320
+ if (t === "null") return null;
321
+ if (t !== "undefined") return this.#O.test(t) ? parseFloat(t) : e;
322
+ }
323
+ #O = /^-?[\d.]+$/;
324
+ #k() {
325
+ let e = {
326
+ tmp: {},
327
+ sys: {},
328
+ save: {},
329
+ mp: {}
330
+ };
331
+ for (let t in e) {
332
+ let n = this.#n[t], r = e[t];
333
+ for (let [e, t] of Object.entries(n)) t instanceof Function || (r[e] = t);
334
+ }
335
+ return console.info("🥟 [dump_val]", e), !1;
336
+ }
337
+ #A = !1;
338
+ doRecLog() {
339
+ return this.#A;
340
+ }
341
+ #j = !1;
342
+ get tagCh_doWait() {
343
+ return this.#j;
344
+ }
345
+ #M = !1;
346
+ get tagCh_doWait_Kidoku() {
347
+ return this.#M;
348
+ }
349
+ #N = 0;
350
+ get tagCh_msecWait() {
351
+ return this.#N;
352
+ }
353
+ #P = 0;
354
+ get tagCh_msecWait_Kidoku() {
355
+ return this.#P;
356
+ }
357
+ #F = {
358
+ "sys:sn.tagCh.doWait": (e) => {
359
+ this.#j = this.#I(e);
360
+ },
361
+ "sys:sn.tagCh.doWait_Kidoku": (e) => {
362
+ this.#M = this.#I(e);
363
+ },
364
+ "sys:sn.tagCh.msecWait": (e) => {
365
+ this.#N = this.#L(e);
366
+ },
367
+ "sys:sn.tagCh.msecWait_Kidoku": (e) => {
368
+ this.#P = this.#R(e);
369
+ },
370
+ "sys:sn.tagCh.canskip": (e) => this.#I(e),
371
+ "sys:sn.auto.msecPageWait": (e) => this.#z(e),
372
+ "sys:sn.auto.msecPageWait_Kidoku": (e) => this.#z(e),
373
+ "sys:sn.auto.msecLineWait": (e) => this.#B(e),
374
+ "sys:sn.auto.msecLineWait_Kidoku": (e) => this.#B(e),
375
+ "save:sn.doRecLog": (e) => {
376
+ this.#d(this.#A = this.#V(e));
377
+ },
378
+ "save:sn.userFnTail": (e, t) => {
379
+ let n = String(t);
380
+ if (n.includes("@")) throw "この変数では文字「@」は禁止です";
381
+ this.cfg.userFnTail = n;
382
+ },
383
+ "tmp:flash.desktop.NativeApplication.nativeApplication.systemIdleMode": () => {}
384
+ };
385
+ defValTrg(e, t) {
386
+ this.#F[e] = t;
387
+ }
388
+ #I = (e) => argChk_Boolean(this.#i, e, !0);
389
+ #L = (e) => argChk_Num(this.#i, e, 10);
390
+ #R = (e) => argChk_Num(this.#i, e, this.cfg.oCfg.init.tagch_msecwait ?? 10);
391
+ #z = (e) => argChk_Num(this.#i, e, this.cfg.oCfg.init.auto_msecpagewait ?? 3500);
392
+ #B = (e) => argChk_Num(this.#i, e, 500);
393
+ #V(e) {
394
+ return argChk_Boolean(this.#e, e, !0);
395
+ }
466
396
  };
467
- //# sourceMappingURL=Variable.js.map
397
+ export { Variable };
398
+
399
+ //# sourceMappingURL=Variable.js.map