@famibee/skynovel 1.65.0 → 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.
- package/README.md +3 -3
- package/dist/Button.js +131 -163
- package/dist/Button.js.map +1 -1
- package/dist/CallStack.js +19 -22
- package/dist/CallStack.js.map +1 -1
- package/dist/CmnInterface.js +91 -0
- package/dist/CmnInterface.js.map +1 -0
- package/dist/CmnLib.js +94 -0
- package/dist/CmnLib.js.map +1 -0
- package/dist/Config.js +26 -0
- package/dist/Config.js.map +1 -0
- package/dist/ConfigBase.js +152 -0
- package/dist/ConfigBase.js.map +1 -0
- package/dist/DebugMng.js +89 -102
- package/dist/DebugMng.js.map +1 -1
- package/dist/EventListenerCtn.js +21 -0
- package/dist/EventListenerCtn.js.map +1 -0
- package/dist/EventMng.js +1435 -1577
- package/dist/EventMng.js.map +1 -1
- package/dist/Grammar.js +194 -0
- package/dist/Grammar.js.map +1 -0
- package/dist/GrpLayer.js +163 -195
- package/dist/GrpLayer.js.map +1 -1
- package/dist/Layer.js +260 -0
- package/dist/Layer.js.map +1 -0
- package/dist/LayerMng.js +810 -991
- package/dist/LayerMng.js.map +1 -1
- package/dist/Main.js +144 -393
- package/dist/Main.js.map +1 -1
- package/dist/PropParser.js +936 -834
- package/dist/PropParser.js.map +1 -1
- package/dist/Reading.js +918 -786
- package/dist/Reading.js.map +1 -1
- package/dist/RubySpliter.js +59 -92
- package/dist/RubySpliter.js.map +1 -1
- package/dist/ScriptIterator.js +805 -1034
- package/dist/ScriptIterator.js.map +1 -1
- package/dist/SndBuf.js +1097 -1332
- package/dist/SndBuf.js.map +1 -1
- package/dist/SoundMng.js +124 -135
- package/dist/SoundMng.js.map +1 -1
- package/dist/SpritesMng.js +220 -232
- package/dist/SpritesMng.js.map +1 -1
- package/dist/SysBase.js +1729 -0
- package/dist/SysBase.js.map +1 -0
- package/dist/TxtLayer.js +1212 -1397
- package/dist/TxtLayer.js.map +1 -1
- package/dist/Variable.js +398 -466
- package/dist/Variable.js.map +1 -1
- package/dist/chunk.js +18 -0
- package/dist/gamepad.js +723 -511
- package/dist/gamepad.js.map +1 -1
- package/dist/pixi.js +13422 -0
- package/dist/pixi.js.map +1 -0
- package/dist/platform.js +424 -369
- package/dist/platform.js.map +1 -1
- package/dist/sn/AnalyzeTagArg.d.ts +1 -1
- package/dist/sn/AnalyzeTagArg.d.ts.map +1 -1
- package/dist/sn/CmnInterface.d.ts +3 -1
- package/dist/sn/CmnInterface.d.ts.map +1 -1
- package/dist/sn/CmnLib.d.ts.map +1 -1
- package/dist/sn/CmnTween.d.ts +3 -3
- package/dist/sn/CmnTween.d.ts.map +1 -1
- package/dist/sn/EventMng.d.ts.map +1 -1
- package/dist/sn/Grammar.d.ts +1 -1
- package/dist/sn/Grammar.d.ts.map +1 -1
- package/dist/sn/PropParser.d.ts +2 -2
- package/dist/sn/PropParser.d.ts.map +1 -1
- package/dist/sn/Reading.d.ts +6 -0
- package/dist/sn/Reading.d.ts.map +1 -1
- package/dist/sn/ScriptIterator.d.ts.map +1 -1
- package/dist/sn/SndBuf.d.ts +27 -16
- package/dist/sn/SndBuf.d.ts.map +1 -1
- package/dist/sn/SoundMng.d.ts +4 -1
- package/dist/sn/SoundMng.d.ts.map +1 -1
- package/dist/sn/SysBase.d.ts.map +1 -1
- package/dist/sn/TxtStage.d.ts +2 -1
- package/dist/sn/TxtStage.d.ts.map +1 -1
- package/dist/test/ValTest.d.ts +1 -1
- package/dist/test/ValTest.d.ts.map +1 -1
- package/dist/web.js +653 -8
- package/dist/web.js.map +1 -1
- package/dist_app/Button.js +131 -163
- package/dist_app/Button.js.map +1 -1
- package/dist_app/CallStack.js +19 -22
- package/dist_app/CallStack.js.map +1 -1
- package/dist_app/CmnInterface.js +91 -0
- package/dist_app/CmnInterface.js.map +1 -0
- package/dist_app/CmnLib.js +94 -0
- package/dist_app/CmnLib.js.map +1 -0
- package/dist_app/Config.js +26 -0
- package/dist_app/Config.js.map +1 -0
- package/dist_app/ConfigBase.js +152 -0
- package/dist_app/ConfigBase.js.map +1 -0
- package/dist_app/DebugMng.js +92 -0
- package/dist_app/DebugMng.js.map +1 -0
- package/dist_app/EventListenerCtn.js +21 -0
- package/dist_app/EventListenerCtn.js.map +1 -0
- package/dist_app/EventMng.js +1435 -1577
- package/dist_app/EventMng.js.map +1 -1
- package/dist_app/Grammar.js +194 -0
- package/dist_app/Grammar.js.map +1 -0
- package/dist_app/GrpLayer.js +163 -195
- package/dist_app/GrpLayer.js.map +1 -1
- package/dist_app/Layer.js +260 -0
- package/dist_app/Layer.js.map +1 -0
- package/dist_app/LayerMng.js +810 -991
- package/dist_app/LayerMng.js.map +1 -1
- package/dist_app/Main.js +144 -392
- package/dist_app/Main.js.map +1 -1
- package/dist_app/PropParser.js +936 -834
- package/dist_app/PropParser.js.map +1 -1
- package/dist_app/Reading.js +918 -786
- package/dist_app/Reading.js.map +1 -1
- package/dist_app/RubySpliter.js +59 -92
- package/dist_app/RubySpliter.js.map +1 -1
- package/dist_app/ScriptIterator.js +805 -1033
- package/dist_app/ScriptIterator.js.map +1 -1
- package/dist_app/SndBuf.js +1097 -1332
- package/dist_app/SndBuf.js.map +1 -1
- package/dist_app/SoundMng.js +124 -135
- package/dist_app/SoundMng.js.map +1 -1
- package/dist_app/SpritesMng.js +220 -231
- package/dist_app/SpritesMng.js.map +1 -1
- package/dist_app/SysBase.js +1729 -0
- package/dist_app/SysBase.js.map +1 -0
- package/dist_app/TxtLayer.js +1212 -1396
- package/dist_app/TxtLayer.js.map +1 -1
- package/dist_app/Variable.js +398 -466
- package/dist_app/Variable.js.map +1 -1
- package/dist_app/app.js +211 -8
- package/dist_app/app.js.map +1 -1
- package/dist_app/appMain.js +20 -21
- package/dist_app/appMain.js.map +1 -1
- package/dist_app/chunk.js +18 -0
- package/dist_app/gamepad.js +723 -511
- package/dist_app/gamepad.js.map +1 -1
- package/dist_app/pixi.js +11181 -0
- package/dist_app/pixi.js.map +1 -0
- package/dist_app/platform.js +424 -369
- package/dist_app/platform.js.map +1 -1
- package/dist_app/preload.js +2 -2
- package/dist_app/preload.js.map +1 -1
- package/dist_app/sn/AnalyzeTagArg.d.ts +1 -1
- package/dist_app/sn/AnalyzeTagArg.d.ts.map +1 -1
- package/dist_app/sn/CmnInterface.d.ts +3 -1
- package/dist_app/sn/CmnInterface.d.ts.map +1 -1
- package/dist_app/sn/CmnLib.d.ts.map +1 -1
- package/dist_app/sn/CmnTween.d.ts +3 -3
- package/dist_app/sn/CmnTween.d.ts.map +1 -1
- package/dist_app/sn/EventMng.d.ts.map +1 -1
- package/dist_app/sn/Grammar.d.ts +1 -1
- package/dist_app/sn/Grammar.d.ts.map +1 -1
- package/dist_app/sn/PropParser.d.ts +2 -2
- package/dist_app/sn/PropParser.d.ts.map +1 -1
- package/dist_app/sn/Reading.d.ts +6 -0
- package/dist_app/sn/Reading.d.ts.map +1 -1
- package/dist_app/sn/ScriptIterator.d.ts.map +1 -1
- package/dist_app/sn/SndBuf.d.ts +27 -16
- package/dist_app/sn/SndBuf.d.ts.map +1 -1
- package/dist_app/sn/SoundMng.d.ts +4 -1
- package/dist_app/sn/SoundMng.d.ts.map +1 -1
- package/dist_app/sn/SysBase.d.ts.map +1 -1
- package/dist_app/sn/TxtStage.d.ts +2 -1
- package/dist_app/sn/TxtStage.d.ts.map +1 -1
- package/dist_app/test/ValTest.d.ts +1 -1
- package/dist_app/test/ValTest.d.ts.map +1 -1
- package/package.json +23 -13
- package/dist/CmnTween.js +0 -1005
- package/dist/CmnTween.js.map +0 -1
- package/dist/web2.js +0 -21644
- package/dist/web2.js.map +0 -1
- package/dist_app/CmnTween.js +0 -1005
- package/dist_app/CmnTween.js.map +0 -1
- package/dist_app/app2.js +0 -18547
- package/dist_app/app2.js.map +0 -1
package/dist/ScriptIterator.js
CHANGED
|
@@ -1,1035 +1,806 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
}
|
|
804
|
-
#a = /* @__PURE__ */ Object.create(null);
|
|
805
|
-
//{} シナリオキャッシュ
|
|
806
|
-
#ft(t) {
|
|
807
|
-
let s = "";
|
|
808
|
-
try {
|
|
809
|
-
s = "ScriptIterator.resolveScript";
|
|
810
|
-
const i = this.#l.resolveScript(t);
|
|
811
|
-
s = "ScriptIterator.replaceScript_Wildcard", this.#mt(i), this.#a[this.#i] = this.#s = i;
|
|
812
|
-
} catch (i) {
|
|
813
|
-
i instanceof Error ? s += `例外 mes=${i.message}(${i.name})` : s = String(i), this.main.errScript(s, !1);
|
|
814
|
-
}
|
|
815
|
-
this.val.touchAreaKidoku(this.#i);
|
|
816
|
-
}
|
|
817
|
-
#z(t) {
|
|
818
|
-
this.#i = t.fn, this.#t = t.idx;
|
|
819
|
-
const s = this.#a[this.#i];
|
|
820
|
-
s && (this.#s = s), this.#e = this.#s.aLNum[t.idx];
|
|
821
|
-
}
|
|
822
|
-
#ut = /^\[(call|loadplugin)\s/;
|
|
823
|
-
#pt = /\bfn\s*=\s*[^\s\]]+/;
|
|
824
|
-
#mt(t) {
|
|
825
|
-
for (let s = t.len - 1; s >= 0; --s) {
|
|
826
|
-
const i = t.aToken[s];
|
|
827
|
-
if (!this.#ut.test(i)) continue;
|
|
828
|
-
const [h, n] = x(i);
|
|
829
|
-
this.#r.parse(n);
|
|
830
|
-
const r = this.#r.hPrm.fn;
|
|
831
|
-
if (!r) continue;
|
|
832
|
-
const { val: a } = r;
|
|
833
|
-
if (!a.endsWith("*")) continue;
|
|
834
|
-
t.aToken.splice(s, 1, " ", "; " + i), t.aLNum.splice(s, 1, NaN, NaN);
|
|
835
|
-
const l = h === "loadplugin" ? S.CSS : S.SN, e = this.cfg.matchPath("^" + a.slice(0, -1) + ".*", l);
|
|
836
|
-
for (const c of e) {
|
|
837
|
-
const f = i.replace(
|
|
838
|
-
this.#pt,
|
|
839
|
-
"fn=" + decodeURIComponent(w(c[l]))
|
|
840
|
-
);
|
|
841
|
-
t.aToken.splice(s, 0, f), t.aLNum.splice(s, 0, NaN);
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
t.len = t.aToken.length;
|
|
845
|
-
}
|
|
846
|
-
#dt() {
|
|
847
|
-
const t = this.val.touchAreaKidoku(this.#i);
|
|
848
|
-
if (this.#n.length > 0) {
|
|
849
|
-
t.record(this.#t);
|
|
850
|
-
return;
|
|
851
|
-
}
|
|
852
|
-
this.#d = t.search(this.#t), this.val.setVal_Nochk("tmp", "const.sn.isKidoku", this.#d), !this.#d && t.record(this.#t);
|
|
853
|
-
}
|
|
854
|
-
#d = !1;
|
|
855
|
-
get isKidoku() {
|
|
856
|
-
return this.#d;
|
|
857
|
-
}
|
|
858
|
-
#V() {
|
|
859
|
-
this.val.getAreaKidoku(this.#i)?.erase(this.#t), this.#d = !1;
|
|
860
|
-
}
|
|
861
|
-
get isNextKidoku() {
|
|
862
|
-
let t = this.#i, s = this.#t, i = this.#s.len;
|
|
863
|
-
if (this.#n.length > 0) {
|
|
864
|
-
const n = this.#n[0];
|
|
865
|
-
t = n.fn, s = n.idx;
|
|
866
|
-
const r = this.#a[t];
|
|
867
|
-
r && (i = r.len);
|
|
868
|
-
}
|
|
869
|
-
return s === i ? !1 : this.val.getAreaKidoku(t)?.search(s) ?? !1;
|
|
870
|
-
}
|
|
871
|
-
get normalWait() {
|
|
872
|
-
return this.#d ? this.val.tagCh_doWait_Kidoku ? this.val.tagCh_msecWait_Kidoku : 0 : this.val.tagCh_doWait ? this.val.tagCh_msecWait : 0;
|
|
873
|
-
}
|
|
874
|
-
//MARK: 括弧マクロの定義
|
|
875
|
-
#kt(t) {
|
|
876
|
-
return this.#l.bracket2macro(t, this.hTag, this.#s, this.#t), !1;
|
|
877
|
-
}
|
|
878
|
-
//MARK: 一文字マクロの定義
|
|
879
|
-
#gt(t) {
|
|
880
|
-
return this.#l.char2macro(t, this.hTag, this.#s, this.#t), !1;
|
|
881
|
-
}
|
|
882
|
-
//MARK: マクロ定義の開始
|
|
883
|
-
// eslint-disable-next-line no-irregular-whitespace
|
|
884
|
-
#_t = /["'#;\\] ]+/;
|
|
885
|
-
#bt(t) {
|
|
886
|
-
const { name: s } = t;
|
|
887
|
-
if (!s) throw "nameは必須です";
|
|
888
|
-
if (s in this.hTag) throw `[${s}]はタグかすでに定義済みのマクロです`;
|
|
889
|
-
if (this.#_t.test(s)) throw `[${s}]はマクロ名として異常です`;
|
|
890
|
-
const i = this.#e, h = new L(this.#i, this.#t);
|
|
891
|
-
for (this.#G += "|" + s, this.#N = new RegExp(`\\[(${this.#G})\\b`), this.hTag[s] = (n) => (n.design_unit = t.design_unit, this.#M(n), this.val.setMp({
|
|
892
|
-
...n,
|
|
893
|
-
"const.sn.macro": JSON.stringify({ name: t.name }),
|
|
894
|
-
// ムダに大きいスクリプター用情報を削除、名前だけに
|
|
895
|
-
"const.sn.me_call_scriptFn": this.#i
|
|
896
|
-
}), this.val.setVal_Nochk("mp", "const.sn.me_call_scriptFn", this.#i), this.#e = i, this.#z(h), !1); this.#t < this.#s.len; ++this.#t) {
|
|
897
|
-
this.#s.aLNum[this.#t] ||= this.#e;
|
|
898
|
-
const n = this.#s.aToken[this.#t];
|
|
899
|
-
if (n.search(this.#K) > -1)
|
|
900
|
-
return ++this.#t, !1;
|
|
901
|
-
const r = n.charCodeAt(0);
|
|
902
|
-
r === 10 ? this.#e += n.length : r === 91 && (this.#e += (n.match(/\n/g) ?? []).length);
|
|
903
|
-
}
|
|
904
|
-
throw `マクロ[${s}]定義の終端・[endmacro]がありません`;
|
|
905
|
-
}
|
|
906
|
-
#G = "call";
|
|
907
|
-
#N = /\[(call)\b/;
|
|
908
|
-
// https://regex101.com/r/Lk9ASK/1
|
|
909
|
-
//MARK: しおりの読込
|
|
910
|
-
#vt(t) {
|
|
911
|
-
if ("fn" in t != "label" in t) throw "fnとlabelはセットで指定して下さい";
|
|
912
|
-
const s = C(t, "place", 0), i = this.val.getMark(s);
|
|
913
|
-
if (!i) throw `place=${String(s)} は存在しません`;
|
|
914
|
-
return this.loadFromMark(
|
|
915
|
-
t,
|
|
916
|
-
i,
|
|
917
|
-
2
|
|
918
|
-
/* ALL_STOP_AND_PLAY */
|
|
919
|
-
);
|
|
920
|
-
}
|
|
921
|
-
loadFromMark(t, s, i = 0) {
|
|
922
|
-
this.hTag.clear_event({}), this.val.mark2save(s), this.val.setMp($()), this.#m.recPagebreak();
|
|
923
|
-
let h = [];
|
|
924
|
-
i !== 1 && (h = this.sndMng.playLoopFromSaveObj(
|
|
925
|
-
i === 2
|
|
926
|
-
/* ALL_STOP_AND_PLAY */
|
|
927
|
-
)), d(t, "do_rec", !0) && (this.#u = {
|
|
928
|
-
hSave: this.val.cloneSave(),
|
|
929
|
-
hPages: { ...s.hPages },
|
|
930
|
-
aIfStk: [...s.aIfStk]
|
|
931
|
-
});
|
|
932
|
-
const n = {
|
|
933
|
-
enabled: !!this.val.getVal("save:const.sn.autowc.enabled"),
|
|
934
|
-
text: String(this.val.getVal("save:const.sn.autowc.text")),
|
|
935
|
-
time: Number(this.val.getVal("save:const.sn.autowc.time"))
|
|
936
|
-
};
|
|
937
|
-
this.hTag.autowc(n), this.#o = [...this.#u.aIfStk], this.#n = [], y.stopAllTw();
|
|
938
|
-
const r = Promise.allSettled([...h, ...this.#m.playback(this.#u.hPages)]).then(() => this.#m.cover(!1)), { index: a, fn: l } = t;
|
|
939
|
-
if (a)
|
|
940
|
-
return v.debugLog && console.log(`📜 %cloadFromMark index:${String(a)} move!%c fn:${l ?? ""}`, "color:#3B0;", ""), r.then(() => {
|
|
941
|
-
this.#f(l, "", a) || this.main.resume();
|
|
942
|
-
}).catch((o) => console.error("loadFromMark e:%o", o)), !0;
|
|
943
|
-
this.#m.cover(!0);
|
|
944
|
-
const e = String(this.val.getVal("save:const.sn.scriptFn")), c = Number(this.val.getVal("save:const.sn.scriptIdx"));
|
|
945
|
-
delete this.#a[e];
|
|
946
|
-
const { label: f } = t;
|
|
947
|
-
return r.then(f ? () => {
|
|
948
|
-
this.#i = e, this.#t = c, this.hTag.call({ fn: l, label: f }) || this.main.resume();
|
|
949
|
-
} : () => {
|
|
950
|
-
this.#f(e, "", c) || this.main.resume();
|
|
951
|
-
}).catch((o) => console.error("loadFromMark e:%o", o)), !0;
|
|
952
|
-
}
|
|
953
|
-
//MARK: スクリプト再読込
|
|
954
|
-
#St(t) {
|
|
955
|
-
const s = this.val.getMark(0);
|
|
956
|
-
if (!s) return !1;
|
|
957
|
-
delete this.#a[w(s.hSave["const.sn.scriptFn"])];
|
|
958
|
-
const i = {};
|
|
959
|
-
for (const h in this.#a)
|
|
960
|
-
try {
|
|
961
|
-
this.#g(h + "@");
|
|
962
|
-
} catch {
|
|
963
|
-
i[h] = this.#a[h];
|
|
964
|
-
}
|
|
965
|
-
return this.#a = i, t.do_rec = !1, this.loadFromMark(
|
|
966
|
-
t,
|
|
967
|
-
s,
|
|
968
|
-
1
|
|
969
|
-
/* NO_TOUCH */
|
|
970
|
-
);
|
|
971
|
-
}
|
|
972
|
-
//MARK: セーブポイント指定
|
|
973
|
-
#u = {
|
|
974
|
-
hSave: D(),
|
|
975
|
-
hPages: {},
|
|
976
|
-
aIfStk: [-1]
|
|
977
|
-
};
|
|
978
|
-
#q = () => {
|
|
979
|
-
const { fn: t, idx: s } = this.nowScrIdx();
|
|
980
|
-
return this.val.setVal_Nochk("save", "const.sn.scriptFn", t), this.val.setVal_Nochk("save", "const.sn.scriptIdx", s), this.#u = {
|
|
981
|
-
hSave: this.val.cloneSave(),
|
|
982
|
-
hPages: this.#m.record(),
|
|
983
|
-
aIfStk: this.#o.slice(this.#n.length)
|
|
984
|
-
}, !1;
|
|
985
|
-
};
|
|
986
|
-
nowScrIdx() {
|
|
987
|
-
if (this.#n.length === 0) return {
|
|
988
|
-
fn: this.#i,
|
|
989
|
-
idx: this.#t
|
|
990
|
-
};
|
|
991
|
-
const s = this.#n[0];
|
|
992
|
-
return {
|
|
993
|
-
fn: s.fn,
|
|
994
|
-
idx: s.idx
|
|
995
|
-
};
|
|
996
|
-
}
|
|
997
|
-
nowMark() {
|
|
998
|
-
return { ...this.#u };
|
|
999
|
-
}
|
|
1000
|
-
// コピーはここでする
|
|
1001
|
-
//MARK: スクリプト停止位置(マクロなどなら最上位の呼び元)
|
|
1002
|
-
nowScrFnLn() {
|
|
1003
|
-
const { fn: t, idx: s } = this.nowScrIdx(), i = this.#a[t], h = this.#c(i, s);
|
|
1004
|
-
return { fn: t, ...h };
|
|
1005
|
-
}
|
|
1006
|
-
//MARK: しおりの保存
|
|
1007
|
-
#wt(t) {
|
|
1008
|
-
if (!("place" in t)) throw "placeは必須です";
|
|
1009
|
-
const s = Number(t.place);
|
|
1010
|
-
delete t[":タグ名"], delete t.place, t.text = t.text ?? "", this.#u.json = t, this.val.setMark(s, this.#u);
|
|
1011
|
-
const i = Number(this.val.getVal("sys:const.sn.save.place"));
|
|
1012
|
-
return s === i && this.val.setVal_Nochk("sys", "const.sn.save.place", i + 1), !1;
|
|
1013
|
-
}
|
|
1014
|
-
recodeDesign(t) {
|
|
1015
|
-
let s = "", i = 0;
|
|
1016
|
-
const h = this.#n.length;
|
|
1017
|
-
if (t.design_unit && h > 0) {
|
|
1018
|
-
const l = this.#n[0];
|
|
1019
|
-
s = l.fn, i = l.idx;
|
|
1020
|
-
} else
|
|
1021
|
-
s = this.#i, i = this.#t;
|
|
1022
|
-
t[":path"] = this.#_(s);
|
|
1023
|
-
const n = this.#a[s], r = this.#c(n, i);
|
|
1024
|
-
t[":ln"] = r.ln, t[":col_s"] = r.col_s, t[":col_e"] = r.col_e;
|
|
1025
|
-
const a = i - 1;
|
|
1026
|
-
t[":idx_tkn"] = a, t[":token"] = n.aToken[a], this.sys.send2Dbg("_recodeDesign", t);
|
|
1027
|
-
}
|
|
1028
|
-
replace(t, s) {
|
|
1029
|
-
this.#s.aToken[t] = s;
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
export {
|
|
1033
|
-
p as ScriptIterator
|
|
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 {
|
|
17
|
+
#e = {
|
|
18
|
+
aToken: [""],
|
|
19
|
+
len: 1,
|
|
20
|
+
aLNum: [1]
|
|
21
|
+
};
|
|
22
|
+
#t = "";
|
|
23
|
+
get scriptFn() {
|
|
24
|
+
return this.#t;
|
|
25
|
+
}
|
|
26
|
+
#n = 0;
|
|
27
|
+
get idxToken() {
|
|
28
|
+
return this.#n;
|
|
29
|
+
}
|
|
30
|
+
subIdxToken() {
|
|
31
|
+
--this.#n;
|
|
32
|
+
}
|
|
33
|
+
#r = 0;
|
|
34
|
+
get lineNum() {
|
|
35
|
+
return this.#r;
|
|
36
|
+
}
|
|
37
|
+
addLineNum = (e) => {
|
|
38
|
+
this.#r += e;
|
|
39
|
+
};
|
|
40
|
+
jumpJustBefore() {
|
|
41
|
+
this.#Y(this.#t, "", --this.#n);
|
|
42
|
+
}
|
|
43
|
+
#i = [];
|
|
44
|
+
#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
|
+
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);
|
|
53
|
+
let e = () => this.analyzeInit();
|
|
54
|
+
this.analyzeInit = () => {
|
|
55
|
+
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);
|
|
67
|
+
}
|
|
68
|
+
this.sys.callHook("stopOnEntry", {}), this.analyzeInit = e, this.analyzeInit();
|
|
69
|
+
} else this.noticeWait = () => {
|
|
70
|
+
this.noticeWait = () => {}, this.sys.callHook("stopOnEntry", {});
|
|
71
|
+
}, this.analyzeInit = e, this.analyzeInit();
|
|
72
|
+
};
|
|
73
|
+
} else this.recodeDesign = () => {};
|
|
74
|
+
}
|
|
75
|
+
noticeWait = () => {};
|
|
76
|
+
#s(e, u) {
|
|
77
|
+
C.#g[this.#u(e)] = u;
|
|
78
|
+
}
|
|
79
|
+
destroy() {
|
|
80
|
+
this.isBreak = this.#xe = () => !1;
|
|
81
|
+
}
|
|
82
|
+
#c = {
|
|
83
|
+
auth: () => {},
|
|
84
|
+
disconnect: () => {
|
|
85
|
+
C.#g = {}, C.#_ = {}, this.isBreak = () => !1, this.#c.continue({}), this.#v = BreakState.Running;
|
|
86
|
+
},
|
|
87
|
+
restart: () => {
|
|
88
|
+
this.isBreak = () => !1;
|
|
89
|
+
},
|
|
90
|
+
add_break: (e) => this.#s(e.fn, e.o),
|
|
91
|
+
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", {}));
|
|
93
|
+
},
|
|
94
|
+
set_func_break: (e) => {
|
|
95
|
+
C.#_ = {};
|
|
96
|
+
for (let u of e.a) C.#_[u.name] = 1;
|
|
97
|
+
this.sys.send2Dbg(e.ri, {});
|
|
98
|
+
},
|
|
99
|
+
stack: (e) => this.sys.send2Dbg(e.ri, { a: this.#x() }),
|
|
100
|
+
eval: (e) => {
|
|
101
|
+
this.sys.send2Dbg(e.ri, { v: this.prpPrs.parse(e.txt) });
|
|
102
|
+
},
|
|
103
|
+
continue: () => {
|
|
104
|
+
this.#h() || (this.#n -= this.#m, this.#v = BreakState.Breaking, this.main.setLoop(!0), this.main.resume());
|
|
105
|
+
},
|
|
106
|
+
stepover: (e) => this.#d(e),
|
|
107
|
+
stepin: () => {
|
|
108
|
+
if (this.#h()) return;
|
|
109
|
+
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();
|
|
111
|
+
},
|
|
112
|
+
stepout: (e) => {
|
|
113
|
+
this.#h() || (this.#i.length > 0 ? this.#f(!0) : this.#d(e));
|
|
114
|
+
},
|
|
115
|
+
pause: () => {
|
|
116
|
+
this.#v = BreakState.Step, this.main.setLoop(!1, "一時停止"), this.sys.send2Dbg("stopOnStep", {});
|
|
117
|
+
},
|
|
118
|
+
stopOnEntry: () => {
|
|
119
|
+
this.#v = BreakState.Step, this.main.setLoop(!1, "一時停止"), this.sys.send2Dbg("stopOnEntry", {});
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
#l = (e) => this.cfg.searchPath(e, SEARCH_PATH_ARG_EXT.SCRIPT);
|
|
123
|
+
#u = (e) => this.sys.pathBaseCnvSnPath4Dbg + this.#l(e);
|
|
124
|
+
#d(e) {
|
|
125
|
+
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));
|
|
128
|
+
}
|
|
129
|
+
#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();
|
|
131
|
+
}
|
|
132
|
+
#p = 0;
|
|
133
|
+
get #m() {
|
|
134
|
+
return this.#v === BreakState.Break || this.#v === BreakState.Step ? 1 : 0;
|
|
135
|
+
}
|
|
136
|
+
#h() {
|
|
137
|
+
return this.#n < this.#e.len ? !1 : (this.sys.callHook("stopOnEntry", {}), this.main.setLoop(!1, "スクリプト終端です isIdxOverLast"), !0);
|
|
138
|
+
}
|
|
139
|
+
static #g = {};
|
|
140
|
+
static #_ = {};
|
|
141
|
+
#v = BreakState.Running;
|
|
142
|
+
isBreak = (e) => !1;
|
|
143
|
+
#y(e) {
|
|
144
|
+
switch (this.#v) {
|
|
145
|
+
case BreakState.StepOuting:
|
|
146
|
+
this.#b(), this.#v = BreakState.StepOut;
|
|
147
|
+
break;
|
|
148
|
+
case BreakState.StepOut:
|
|
149
|
+
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
|
+
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
|
+
break;
|
|
158
|
+
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;
|
|
160
|
+
{
|
|
161
|
+
let e = C.#g[this.#u(this.#t)];
|
|
162
|
+
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, {});
|
|
172
|
+
}
|
|
173
|
+
return !0;
|
|
174
|
+
}
|
|
175
|
+
return !1;
|
|
176
|
+
}
|
|
177
|
+
#b() {
|
|
178
|
+
let e = C.#g[getFn(this.#t)]?.[this.#r];
|
|
179
|
+
e?.hitCondition && --e.hitCondition;
|
|
180
|
+
}
|
|
181
|
+
#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") ?? "{}");
|
|
183
|
+
if (this.#n === 0) return [{
|
|
184
|
+
fn: d,
|
|
185
|
+
ln: 1,
|
|
186
|
+
col: 1,
|
|
187
|
+
nm: p,
|
|
188
|
+
ma: m
|
|
189
|
+
}];
|
|
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"]
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
return g;
|
|
213
|
+
}
|
|
214
|
+
#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;
|
|
222
|
+
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;
|
|
225
|
+
}
|
|
226
|
+
let h = {}, g = this.#i.at(-1)?.csArg ?? creCSArg(), _ = this.#i.length;
|
|
227
|
+
if (this.#o.isKomeParam) {
|
|
228
|
+
if (_ === 0) throw "属性「*」はマクロのみ有効です";
|
|
229
|
+
h = { ...g };
|
|
230
|
+
}
|
|
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;
|
|
239
|
+
continue;
|
|
240
|
+
}
|
|
241
|
+
if (d === void 0 || d === "null") continue;
|
|
242
|
+
f = d;
|
|
243
|
+
}
|
|
244
|
+
if (f = this.prpPrs.getValAmpersand(f ?? ""), f !== "undefined") {
|
|
245
|
+
h[e] = f;
|
|
246
|
+
continue;
|
|
247
|
+
}
|
|
248
|
+
d !== void 0 && (f = this.prpPrs.getValAmpersand(d), f !== "undefined" && (h[e] = f));
|
|
249
|
+
}
|
|
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
|
+
}
|
|
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
|
+
}
|
|
258
|
+
#C = new Set([
|
|
259
|
+
"trans",
|
|
260
|
+
"wt",
|
|
261
|
+
"wait_tsy",
|
|
262
|
+
"wv",
|
|
263
|
+
"l",
|
|
264
|
+
"p",
|
|
265
|
+
"s",
|
|
266
|
+
"wait",
|
|
267
|
+
"waitclick",
|
|
268
|
+
"wb",
|
|
269
|
+
"wf",
|
|
270
|
+
"wl",
|
|
271
|
+
"ws",
|
|
272
|
+
"quake",
|
|
273
|
+
"wq"
|
|
274
|
+
]);
|
|
275
|
+
#w = new Set([
|
|
276
|
+
"finish_trans",
|
|
277
|
+
"trans",
|
|
278
|
+
"quake",
|
|
279
|
+
"stop_quake",
|
|
280
|
+
"add_filter"
|
|
281
|
+
]);
|
|
282
|
+
#T = {
|
|
283
|
+
wt: () => (CmnTween.stopEndTrans(), !1),
|
|
284
|
+
wait_tsy: (e) => this.hTag.stop_tsy(e),
|
|
285
|
+
wait: () => !1,
|
|
286
|
+
wb: () => this.hTag.stopfadese({ buf: "BGM" }),
|
|
287
|
+
wf: (e) => this.hTag.stopfadese(e),
|
|
288
|
+
wq: () => this.hTag.stop_quake({}),
|
|
289
|
+
quake: () => !1
|
|
290
|
+
};
|
|
291
|
+
#E = {
|
|
292
|
+
wt: !0,
|
|
293
|
+
wait_tsy: !0,
|
|
294
|
+
wv: !0,
|
|
295
|
+
wait: !0,
|
|
296
|
+
playbgm: !1,
|
|
297
|
+
playse: !0,
|
|
298
|
+
wb: !1,
|
|
299
|
+
wf: !1,
|
|
300
|
+
ws: !1,
|
|
301
|
+
wq: !0
|
|
302
|
+
};
|
|
303
|
+
#D;
|
|
304
|
+
#O;
|
|
305
|
+
setOtherObj(e, u) {
|
|
306
|
+
this.#D = e, this.#O = u;
|
|
307
|
+
}
|
|
308
|
+
#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;
|
|
314
|
+
}
|
|
315
|
+
#A() {
|
|
316
|
+
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} ...]をコール`);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
return console.groupEnd(), !1;
|
|
328
|
+
}
|
|
329
|
+
#j(e, u) {
|
|
330
|
+
let d = {
|
|
331
|
+
ln: 1,
|
|
332
|
+
col_s: 0,
|
|
333
|
+
col_e: 0
|
|
334
|
+
};
|
|
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;
|
|
342
|
+
}
|
|
343
|
+
if (--f < 0) break;
|
|
344
|
+
}
|
|
345
|
+
return d;
|
|
346
|
+
}
|
|
347
|
+
#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}が見つかりません`;
|
|
352
|
+
return this.#N = () => {}, !1;
|
|
353
|
+
}
|
|
354
|
+
if (this.noticeBreak = (e) => {
|
|
355
|
+
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.#P = () => {};
|
|
360
|
+
}
|
|
361
|
+
return !1;
|
|
362
|
+
}
|
|
363
|
+
#N = () => {};
|
|
364
|
+
#P = () => {};
|
|
365
|
+
#F = "";
|
|
366
|
+
#I = {};
|
|
367
|
+
noticeBreak = (e) => {};
|
|
368
|
+
#L = 5;
|
|
369
|
+
dumpErrForeLine() {
|
|
370
|
+
if (this.#n === 0) {
|
|
371
|
+
console.group(`🥟 Error line (from 0 rows before) fn:${this.#t}`), console.groupEnd();
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
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;");
|
|
382
|
+
}
|
|
383
|
+
console.groupEnd();
|
|
384
|
+
}
|
|
385
|
+
#R = [-1];
|
|
386
|
+
#z() {
|
|
387
|
+
let e = this.#R[0];
|
|
388
|
+
if (!e) throw "this.#aIfStk が異常です";
|
|
389
|
+
if (e === -1) throw "ifブロック内ではありません";
|
|
390
|
+
return this.#n = e, this.#R.shift(), !1;
|
|
391
|
+
}
|
|
392
|
+
#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) {
|
|
398
|
+
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;
|
|
405
|
+
continue;
|
|
406
|
+
}
|
|
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) {
|
|
411
|
+
case "if":
|
|
412
|
+
++d;
|
|
413
|
+
break;
|
|
414
|
+
case "elsif":
|
|
415
|
+
{
|
|
416
|
+
if (d > 0 || f > -1) break;
|
|
417
|
+
let e = this.#o.hPrm.exp?.val;
|
|
418
|
+
if (!e) throw "expは必須です";
|
|
419
|
+
if (e.startsWith("&")) throw "属性expは「&」が不要です";
|
|
420
|
+
this.prpPrs.parse(e) && (f = this.#n + 1);
|
|
421
|
+
}
|
|
422
|
+
break;
|
|
423
|
+
case "else":
|
|
424
|
+
if (d > 0) break;
|
|
425
|
+
f === -1 && (f = this.#n + 1);
|
|
426
|
+
break;
|
|
427
|
+
case "endif":
|
|
428
|
+
if (d > 0) {
|
|
429
|
+
--d;
|
|
430
|
+
break;
|
|
431
|
+
}
|
|
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;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
throw "[endif]がないままスクリプト終端です";
|
|
436
|
+
}
|
|
437
|
+
#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
|
+
}
|
|
442
|
+
#H(e, u) {
|
|
443
|
+
let d = {
|
|
444
|
+
...e,
|
|
445
|
+
...u ? { ":hEvt1Time": u } : {},
|
|
446
|
+
":hMp": this.val.cloneMp(),
|
|
447
|
+
":lenIfStk": this.#R.length
|
|
448
|
+
};
|
|
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);
|
|
450
|
+
}
|
|
451
|
+
#U(e) {
|
|
452
|
+
return argChk_Boolean(e, "count", !0) || this.#de(), this.#R[0] = -1, this.#Y(e.fn, e.label);
|
|
453
|
+
}
|
|
454
|
+
#W(e) {
|
|
455
|
+
if (argChk_Boolean(e, "clear", !1)) this.#i = [];
|
|
456
|
+
else if (!this.#i.pop()) throw "スタックが空です";
|
|
457
|
+
return this.#q(), this.#R = [-1], this.val.setMp(creMP()), !1;
|
|
458
|
+
}
|
|
459
|
+
#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);
|
|
470
|
+
}
|
|
471
|
+
#K = "";
|
|
472
|
+
#q() {
|
|
473
|
+
this.#K = "", this.nextToken = () => this.#X();
|
|
474
|
+
}
|
|
475
|
+
#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;
|
|
478
|
+
if (e.includes("@")) throw "[jump系] fn には文字「@」は禁止です";
|
|
479
|
+
let f = this.#l(e);
|
|
480
|
+
if (e === this.#t) return this.analyzeInit(), !1;
|
|
481
|
+
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();
|
|
487
|
+
try {
|
|
488
|
+
_ = this.#l(e + "@"), v.add({
|
|
489
|
+
name: e + ":base",
|
|
490
|
+
url: f
|
|
491
|
+
}), v.add({
|
|
492
|
+
name: e,
|
|
493
|
+
url: _
|
|
494
|
+
});
|
|
495
|
+
} catch {
|
|
496
|
+
v.add({
|
|
497
|
+
name: e,
|
|
498
|
+
url: f
|
|
499
|
+
});
|
|
500
|
+
}
|
|
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();
|
|
506
|
+
});
|
|
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"];
|
|
512
|
+
}
|
|
513
|
+
this.nextToken = this.#X, this.#r = 1, this.#ie(d[e].data), this.hTag.record_place({}), this.analyzeInit();
|
|
514
|
+
}), !0;
|
|
515
|
+
}
|
|
516
|
+
analyzeInit() {
|
|
517
|
+
CmnLib.debugLog && console.log(`📜 %c9:analyzeInit%c fn:${this.#t} lbl:${this.#J} idx:${String(this.#n)}`, "color:#3B0;", "");
|
|
518
|
+
let e = this.#ne(this.#e, !!this.val.getVal("mp:const.sn.macro.name"), this.#r, this.#J, this.#n);
|
|
519
|
+
this.#n = e.idx, this.#r = e.ln;
|
|
520
|
+
}
|
|
521
|
+
nextToken = () => "";
|
|
522
|
+
#X() {
|
|
523
|
+
if (this.#Q()) return "";
|
|
524
|
+
this.#le(), this.#e.aLNum[this.#n] ||= this.#r;
|
|
525
|
+
let e = this.#e.aToken[this.#n];
|
|
526
|
+
return this.#Z(e), ++this.#n, e;
|
|
527
|
+
}
|
|
528
|
+
#Z = (e) => {};
|
|
529
|
+
#Q() {
|
|
530
|
+
return this.#n < this.#e.len ? !1 : (this.main.errScript("スクリプト終端です errOverScr"), !0);
|
|
531
|
+
}
|
|
532
|
+
#$ = /(\*{2,})([^|]*)/;
|
|
533
|
+
#ee = /^\[macro\s/;
|
|
534
|
+
#te = /^\[endmacro[\s\]]/;
|
|
535
|
+
#ne(e, u, d, f, p) {
|
|
536
|
+
let m = e.aToken.length, h = d, g = f;
|
|
537
|
+
if (!g) {
|
|
538
|
+
if (this.#Q()) return {
|
|
539
|
+
idx: p,
|
|
540
|
+
ln: h
|
|
541
|
+
};
|
|
542
|
+
if (e.aLNum[p]) h = e.aLNum[p];
|
|
543
|
+
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;
|
|
549
|
+
}
|
|
550
|
+
e.aLNum[p] = h;
|
|
551
|
+
}
|
|
552
|
+
return {
|
|
553
|
+
idx: p,
|
|
554
|
+
ln: h
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
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]) {
|
|
563
|
+
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");
|
|
566
|
+
return {
|
|
567
|
+
idx: d + 1,
|
|
568
|
+
ln: e.aLNum[d]
|
|
569
|
+
};
|
|
570
|
+
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");
|
|
572
|
+
return {
|
|
573
|
+
idx: d + 1,
|
|
574
|
+
ln: e.aLNum[d]
|
|
575
|
+
};
|
|
576
|
+
default: DebugMng.myTrace("[jump系] 無名ラベル指定【label=" + g + "】が間違っています", "ET");
|
|
577
|
+
}
|
|
578
|
+
}
|
|
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;
|
|
586
|
+
continue;
|
|
587
|
+
}
|
|
588
|
+
let f = d.charCodeAt(0);
|
|
589
|
+
if (f === 10) {
|
|
590
|
+
h += d.length;
|
|
591
|
+
continue;
|
|
592
|
+
}
|
|
593
|
+
if (f === 42) {
|
|
594
|
+
if (d.search(y) > -1) return {
|
|
595
|
+
idx: u + 1,
|
|
596
|
+
ln: h
|
|
597
|
+
};
|
|
598
|
+
continue;
|
|
599
|
+
}
|
|
600
|
+
f === 91 && (h += (d.match(/\n/g) ?? []).length, this.#a.testTagLetml(d) && (b = !0));
|
|
601
|
+
}
|
|
602
|
+
throw b ? "[let_ml]の終端・[endlet_ml]がありません" : (DebugMng.myTrace(`[jump系] ラベル【${g}】がありません`, "ET"), "Dummy");
|
|
603
|
+
}
|
|
604
|
+
#re = Object.create(null);
|
|
605
|
+
#ie(e) {
|
|
606
|
+
let u = "";
|
|
607
|
+
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
|
+
} catch (e) {
|
|
612
|
+
e instanceof Error ? u += `例外 mes=${e.message}(${e.name})` : u = String(e), this.main.errScript(u, !1);
|
|
613
|
+
}
|
|
614
|
+
this.val.touchAreaKidoku(this.#t);
|
|
615
|
+
}
|
|
616
|
+
#ae(e) {
|
|
617
|
+
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];
|
|
620
|
+
}
|
|
621
|
+
#oe = /^\[(call|loadplugin)\s/;
|
|
622
|
+
#se = /\bfn\s*=\s*[^\s\]]+/;
|
|
623
|
+
#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);
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
e.len = e.aToken.length;
|
|
641
|
+
}
|
|
642
|
+
#le() {
|
|
643
|
+
let e = this.val.touchAreaKidoku(this.#t);
|
|
644
|
+
if (this.#i.length > 0) {
|
|
645
|
+
e.record(this.#n);
|
|
646
|
+
return;
|
|
647
|
+
}
|
|
648
|
+
this.#ue = e.search(this.#n), this.val.setVal_Nochk("tmp", "const.sn.isKidoku", this.#ue), !this.#ue && e.record(this.#n);
|
|
649
|
+
}
|
|
650
|
+
#ue = !1;
|
|
651
|
+
get isKidoku() {
|
|
652
|
+
return this.#ue;
|
|
653
|
+
}
|
|
654
|
+
#de() {
|
|
655
|
+
this.val.getAreaKidoku(this.#t)?.erase(this.#n), this.#ue = !1;
|
|
656
|
+
}
|
|
657
|
+
get isNextKidoku() {
|
|
658
|
+
let e = this.#t, u = this.#n, d = this.#e.len;
|
|
659
|
+
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);
|
|
664
|
+
}
|
|
665
|
+
return u === d ? !1 : this.val.getAreaKidoku(e)?.search(u) ?? !1;
|
|
666
|
+
}
|
|
667
|
+
get normalWait() {
|
|
668
|
+
return this.#ue ? this.val.tagCh_doWait_Kidoku ? this.val.tagCh_msecWait_Kidoku : 0 : this.val.tagCh_doWait ? this.val.tagCh_msecWait : 0;
|
|
669
|
+
}
|
|
670
|
+
#fe(e) {
|
|
671
|
+
return this.#a.bracket2macro(e, this.hTag, this.#e, this.#n), !1;
|
|
672
|
+
}
|
|
673
|
+
#pe(e) {
|
|
674
|
+
return this.#a.char2macro(e, this.hTag, this.#e, this.#n), !1;
|
|
675
|
+
}
|
|
676
|
+
#me = /["'#;\\] ]+/;
|
|
677
|
+
#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,
|
|
685
|
+
"const.sn.macro": JSON.stringify({ name: e.name }),
|
|
686
|
+
"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) {
|
|
688
|
+
this.#e.aLNum[this.#n] ||= this.#r;
|
|
689
|
+
let e = this.#e.aToken[this.#n];
|
|
690
|
+
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);
|
|
693
|
+
}
|
|
694
|
+
throw `マクロ[${u}]定義の終端・[endmacro]がありません`;
|
|
695
|
+
}
|
|
696
|
+
#ge = "call";
|
|
697
|
+
#_e = /\[(call)\b/;
|
|
698
|
+
#ve(e) {
|
|
699
|
+
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 = {
|
|
708
|
+
hSave: this.val.cloneSave(),
|
|
709
|
+
hPages: { ...u.hPages },
|
|
710
|
+
aIfStk: [...u.aIfStk]
|
|
711
|
+
});
|
|
712
|
+
let h = {
|
|
713
|
+
enabled: !!this.val.getVal("save:const.sn.autowc.enabled"),
|
|
714
|
+
text: String(this.val.getVal("save:const.sn.autowc.text")),
|
|
715
|
+
time: Number(this.val.getVal("save:const.sn.autowc.time"))
|
|
716
|
+
};
|
|
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();
|
|
721
|
+
}).catch((e) => console.error("loadFromMark e:%o", e)), !0;
|
|
722
|
+
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
|
|
730
|
+
}) || this.main.resume();
|
|
731
|
+
} : () => {
|
|
732
|
+
this.#Y(b, "", x) || this.main.resume();
|
|
733
|
+
}).catch((e) => console.error("loadFromMark e:%o", e)), !0;
|
|
734
|
+
}
|
|
735
|
+
#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 = {};
|
|
740
|
+
for (let e in this.#re) try {
|
|
741
|
+
this.#l(e + "@");
|
|
742
|
+
} catch {
|
|
743
|
+
f[e] = this.#re[e];
|
|
744
|
+
}
|
|
745
|
+
return this.#re = f, e.do_rec = !1, this.loadFromMark(e, d, SndProcOnLoad.NO_TOUCH);
|
|
746
|
+
}
|
|
747
|
+
#be = {
|
|
748
|
+
hSave: creSAVEDATA(),
|
|
749
|
+
hPages: {},
|
|
750
|
+
aIfStk: [-1]
|
|
751
|
+
};
|
|
752
|
+
#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 = {
|
|
755
|
+
hSave: this.val.cloneSave(),
|
|
756
|
+
hPages: this.#O.record(),
|
|
757
|
+
aIfStk: this.#R.slice(this.#i.length)
|
|
758
|
+
}, !1;
|
|
759
|
+
};
|
|
760
|
+
nowScrIdx() {
|
|
761
|
+
if (this.#i.length === 0) return {
|
|
762
|
+
fn: this.#t,
|
|
763
|
+
idx: this.#n
|
|
764
|
+
};
|
|
765
|
+
let e = this.#i[0];
|
|
766
|
+
return {
|
|
767
|
+
fn: e.fn,
|
|
768
|
+
idx: e.idx
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
nowMark() {
|
|
772
|
+
return { ...this.#be };
|
|
773
|
+
}
|
|
774
|
+
nowScrFnLn() {
|
|
775
|
+
let { fn: e, idx: u } = this.nowScrIdx(), d = this.#re[e];
|
|
776
|
+
return {
|
|
777
|
+
fn: e,
|
|
778
|
+
...this.#j(d, u)
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
#Se(e) {
|
|
782
|
+
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;
|
|
787
|
+
}
|
|
788
|
+
recodeDesign(e) {
|
|
789
|
+
let u = "", d = 0, f = this.#i.length;
|
|
790
|
+
if (e.design_unit && f > 0) {
|
|
791
|
+
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);
|
|
799
|
+
}
|
|
800
|
+
replace(e, u) {
|
|
801
|
+
this.#e.aToken[e] = u;
|
|
802
|
+
}
|
|
1034
803
|
};
|
|
1035
|
-
|
|
804
|
+
export { ScriptIterator };
|
|
805
|
+
|
|
806
|
+
//# sourceMappingURL=ScriptIterator.js.map
|