@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.
- 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 -992
- 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 -89
- package/dist/RubySpliter.js.map +1 -1
- package/dist/ScriptIterator.js +805 -1035
- package/dist/ScriptIterator.js.map +1 -1
- package/dist/SndBuf.js +1097 -1326
- 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 -1398
- 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 +7 -7
- package/dist/sn/CmnTween.d.ts.map +1 -1
- package/dist/sn/EventMng.d.ts.map +1 -1
- package/dist/sn/FocusMng.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/Log.d.ts.map +1 -1
- package/dist/sn/Main.d.ts.map +1 -1
- package/dist/sn/Pages.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 +7 -0
- package/dist/sn/Reading.d.ts.map +1 -1
- package/dist/sn/RubySpliter.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 +4 -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 -992
- 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 -89
- package/dist_app/RubySpliter.js.map +1 -1
- package/dist_app/ScriptIterator.js +805 -1034
- package/dist_app/ScriptIterator.js.map +1 -1
- package/dist_app/SndBuf.js +1097 -1326
- 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 -1397
- 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 +7 -7
- package/dist_app/sn/CmnTween.d.ts.map +1 -1
- package/dist_app/sn/EventMng.d.ts.map +1 -1
- package/dist_app/sn/FocusMng.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/Log.d.ts.map +1 -1
- package/dist_app/sn/Main.d.ts.map +1 -1
- package/dist_app/sn/Pages.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 +7 -0
- package/dist_app/sn/Reading.d.ts.map +1 -1
- package/dist_app/sn/RubySpliter.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 +4 -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 +24 -14
- package/dist/CmnTween.js +0 -193
- 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 -193
- 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_app/Reading.js
CHANGED
|
@@ -1,787 +1,919 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
var
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
class
|
|
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
|
-
|
|
1
|
+
import { i as EVNM_KEY, l as argChk_Num, r as EVNM_CLICK, s as argChk_Boolean, t as CmnLib } from "./CmnLib.js";
|
|
2
|
+
import { m as Container } from "./pixi.js";
|
|
3
|
+
import { t as EventListenerCtn } from "./EventListenerCtn.js";
|
|
4
|
+
var Easing = Object.freeze({
|
|
5
|
+
Linear: Object.freeze({
|
|
6
|
+
None: function(e) {
|
|
7
|
+
return e;
|
|
8
|
+
},
|
|
9
|
+
In: function(e) {
|
|
10
|
+
return e;
|
|
11
|
+
},
|
|
12
|
+
Out: function(e) {
|
|
13
|
+
return e;
|
|
14
|
+
},
|
|
15
|
+
InOut: function(e) {
|
|
16
|
+
return e;
|
|
17
|
+
}
|
|
18
|
+
}),
|
|
19
|
+
Quadratic: Object.freeze({
|
|
20
|
+
In: function(e) {
|
|
21
|
+
return e * e;
|
|
22
|
+
},
|
|
23
|
+
Out: function(e) {
|
|
24
|
+
return e * (2 - e);
|
|
25
|
+
},
|
|
26
|
+
InOut: function(e) {
|
|
27
|
+
return (e *= 2) < 1 ? .5 * e * e : -.5 * (--e * (e - 2) - 1);
|
|
28
|
+
}
|
|
29
|
+
}),
|
|
30
|
+
Cubic: Object.freeze({
|
|
31
|
+
In: function(e) {
|
|
32
|
+
return e * e * e;
|
|
33
|
+
},
|
|
34
|
+
Out: function(e) {
|
|
35
|
+
return --e * e * e + 1;
|
|
36
|
+
},
|
|
37
|
+
InOut: function(e) {
|
|
38
|
+
return (e *= 2) < 1 ? .5 * e * e * e : .5 * ((e -= 2) * e * e + 2);
|
|
39
|
+
}
|
|
40
|
+
}),
|
|
41
|
+
Quartic: Object.freeze({
|
|
42
|
+
In: function(e) {
|
|
43
|
+
return e * e * e * e;
|
|
44
|
+
},
|
|
45
|
+
Out: function(e) {
|
|
46
|
+
return 1 - --e * e * e * e;
|
|
47
|
+
},
|
|
48
|
+
InOut: function(e) {
|
|
49
|
+
return (e *= 2) < 1 ? .5 * e * e * e * e : -.5 * ((e -= 2) * e * e * e - 2);
|
|
50
|
+
}
|
|
51
|
+
}),
|
|
52
|
+
Quintic: Object.freeze({
|
|
53
|
+
In: function(e) {
|
|
54
|
+
return e * e * e * e * e;
|
|
55
|
+
},
|
|
56
|
+
Out: function(e) {
|
|
57
|
+
return --e * e * e * e * e + 1;
|
|
58
|
+
},
|
|
59
|
+
InOut: function(e) {
|
|
60
|
+
return (e *= 2) < 1 ? .5 * e * e * e * e * e : .5 * ((e -= 2) * e * e * e * e + 2);
|
|
61
|
+
}
|
|
62
|
+
}),
|
|
63
|
+
Sinusoidal: Object.freeze({
|
|
64
|
+
In: function(e) {
|
|
65
|
+
return 1 - Math.sin((1 - e) * Math.PI / 2);
|
|
66
|
+
},
|
|
67
|
+
Out: function(e) {
|
|
68
|
+
return Math.sin(e * Math.PI / 2);
|
|
69
|
+
},
|
|
70
|
+
InOut: function(e) {
|
|
71
|
+
return .5 * (1 - Math.sin(Math.PI * (.5 - e)));
|
|
72
|
+
}
|
|
73
|
+
}),
|
|
74
|
+
Exponential: Object.freeze({
|
|
75
|
+
In: function(e) {
|
|
76
|
+
return e === 0 ? 0 : 1024 ** (e - 1);
|
|
77
|
+
},
|
|
78
|
+
Out: function(e) {
|
|
79
|
+
return e === 1 ? 1 : 1 - 2 ** (-10 * e);
|
|
80
|
+
},
|
|
81
|
+
InOut: function(e) {
|
|
82
|
+
return e === 0 ? 0 : e === 1 ? 1 : (e *= 2) < 1 ? .5 * 1024 ** (e - 1) : .5 * (-(2 ** (-10 * (e - 1))) + 2);
|
|
83
|
+
}
|
|
84
|
+
}),
|
|
85
|
+
Circular: Object.freeze({
|
|
86
|
+
In: function(e) {
|
|
87
|
+
return 1 - Math.sqrt(1 - e * e);
|
|
88
|
+
},
|
|
89
|
+
Out: function(e) {
|
|
90
|
+
return Math.sqrt(1 - --e * e);
|
|
91
|
+
},
|
|
92
|
+
InOut: function(e) {
|
|
93
|
+
return (e *= 2) < 1 ? -.5 * (Math.sqrt(1 - e * e) - 1) : .5 * (Math.sqrt(1 - (e -= 2) * e) + 1);
|
|
94
|
+
}
|
|
95
|
+
}),
|
|
96
|
+
Elastic: Object.freeze({
|
|
97
|
+
In: function(e) {
|
|
98
|
+
return e === 0 ? 0 : e === 1 ? 1 : -(2 ** (10 * (e - 1))) * Math.sin((e - 1.1) * 5 * Math.PI);
|
|
99
|
+
},
|
|
100
|
+
Out: function(e) {
|
|
101
|
+
return e === 0 ? 0 : e === 1 ? 1 : 2 ** (-10 * e) * Math.sin((e - .1) * 5 * Math.PI) + 1;
|
|
102
|
+
},
|
|
103
|
+
InOut: function(e) {
|
|
104
|
+
return e === 0 ? 0 : e === 1 ? 1 : (e *= 2, e < 1 ? -.5 * 2 ** (10 * (e - 1)) * Math.sin((e - 1.1) * 5 * Math.PI) : .5 * 2 ** (-10 * (e - 1)) * Math.sin((e - 1.1) * 5 * Math.PI) + 1);
|
|
105
|
+
}
|
|
106
|
+
}),
|
|
107
|
+
Back: Object.freeze({
|
|
108
|
+
In: function(e) {
|
|
109
|
+
var s = 1.70158;
|
|
110
|
+
return e === 1 ? 1 : e * e * ((s + 1) * e - s);
|
|
111
|
+
},
|
|
112
|
+
Out: function(e) {
|
|
113
|
+
var s = 1.70158;
|
|
114
|
+
return e === 0 ? 0 : --e * e * ((s + 1) * e + s) + 1;
|
|
115
|
+
},
|
|
116
|
+
InOut: function(e) {
|
|
117
|
+
var s = 1.70158 * 1.525;
|
|
118
|
+
return (e *= 2) < 1 ? .5 * (e * e * ((s + 1) * e - s)) : .5 * ((e -= 2) * e * ((s + 1) * e + s) + 2);
|
|
119
|
+
}
|
|
120
|
+
}),
|
|
121
|
+
Bounce: Object.freeze({
|
|
122
|
+
In: function(e) {
|
|
123
|
+
return 1 - Easing.Bounce.Out(1 - e);
|
|
124
|
+
},
|
|
125
|
+
Out: function(e) {
|
|
126
|
+
return e < 1 / 2.75 ? 7.5625 * e * e : e < 2 / 2.75 ? 7.5625 * (e -= 1.5 / 2.75) * e + .75 : e < 2.5 / 2.75 ? 7.5625 * (e -= 2.25 / 2.75) * e + .9375 : 7.5625 * (e -= 2.625 / 2.75) * e + .984375;
|
|
127
|
+
},
|
|
128
|
+
InOut: function(e) {
|
|
129
|
+
return e < .5 ? Easing.Bounce.In(e * 2) * .5 : Easing.Bounce.Out(e * 2 - 1) * .5 + .5;
|
|
130
|
+
}
|
|
131
|
+
}),
|
|
132
|
+
generatePow: function(e) {
|
|
133
|
+
return e === void 0 && (e = 4), e = e < 2 ** -52 ? 2 ** -52 : e, e = e > 1e4 ? 1e4 : e, {
|
|
134
|
+
In: function(s) {
|
|
135
|
+
return s ** +e;
|
|
136
|
+
},
|
|
137
|
+
Out: function(s) {
|
|
138
|
+
return 1 - (1 - s) ** e;
|
|
139
|
+
},
|
|
140
|
+
InOut: function(s) {
|
|
141
|
+
return s < .5 ? (s * 2) ** e / 2 : (1 - (2 - s * 2) ** e) / 2 + .5;
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
}), now = function() {
|
|
146
|
+
return performance.now();
|
|
147
|
+
}, Group = function() {
|
|
148
|
+
function e() {
|
|
149
|
+
var e = [...arguments];
|
|
150
|
+
this._tweens = {}, this._tweensAddedDuringUpdate = {}, this.add.apply(this, e);
|
|
151
|
+
}
|
|
152
|
+
return e.prototype.getAll = function() {
|
|
153
|
+
var e = this;
|
|
154
|
+
return Object.keys(this._tweens).map(function(s) {
|
|
155
|
+
return e._tweens[s];
|
|
156
|
+
});
|
|
157
|
+
}, e.prototype.removeAll = function() {
|
|
158
|
+
this._tweens = {};
|
|
159
|
+
}, e.prototype.add = function() {
|
|
160
|
+
for (var e, s = [], c = 0; c < arguments.length; c++) s[c] = arguments[c];
|
|
161
|
+
for (var l = 0, u = s; l < u.length; l++) {
|
|
162
|
+
var d = u[l];
|
|
163
|
+
(e = d._group) == null || e.remove(d), d._group = this, this._tweens[d.getId()] = d, this._tweensAddedDuringUpdate[d.getId()] = d;
|
|
164
|
+
}
|
|
165
|
+
}, e.prototype.remove = function() {
|
|
166
|
+
for (var e = [...arguments], s = 0, c = e; s < c.length; s++) {
|
|
167
|
+
var l = c[s];
|
|
168
|
+
l._group = void 0, delete this._tweens[l.getId()], delete this._tweensAddedDuringUpdate[l.getId()];
|
|
169
|
+
}
|
|
170
|
+
}, e.prototype.allStopped = function() {
|
|
171
|
+
return this.getAll().every(function(e) {
|
|
172
|
+
return !e.isPlaying();
|
|
173
|
+
});
|
|
174
|
+
}, e.prototype.update = function(e, s) {
|
|
175
|
+
e === void 0 && (e = now()), s === void 0 && (s = !0);
|
|
176
|
+
var c = Object.keys(this._tweens);
|
|
177
|
+
if (c.length !== 0) for (; c.length > 0;) {
|
|
178
|
+
this._tweensAddedDuringUpdate = {};
|
|
179
|
+
for (var l = 0; l < c.length; l++) {
|
|
180
|
+
var u = this._tweens[c[l]], d = !s;
|
|
181
|
+
u && u.update(e, d) === !1 && !s && this.remove(u);
|
|
182
|
+
}
|
|
183
|
+
c = Object.keys(this._tweensAddedDuringUpdate);
|
|
184
|
+
}
|
|
185
|
+
}, e;
|
|
186
|
+
}(), Interpolation = {
|
|
187
|
+
Linear: function(e, s) {
|
|
188
|
+
var c = e.length - 1, l = c * s, u = Math.floor(l), d = Interpolation.Utils.Linear;
|
|
189
|
+
return s < 0 ? d(e[0], e[1], l) : s > 1 ? d(e[c], e[c - 1], c - l) : d(e[u], e[u + 1 > c ? c : u + 1], l - u);
|
|
190
|
+
},
|
|
191
|
+
Bezier: function(e, s) {
|
|
192
|
+
for (var c = 0, l = e.length - 1, u = Math.pow, d = Interpolation.Utils.Bernstein, f = 0; f <= l; f++) c += u(1 - s, l - f) * u(s, f) * e[f] * d(l, f);
|
|
193
|
+
return c;
|
|
194
|
+
},
|
|
195
|
+
CatmullRom: function(e, s) {
|
|
196
|
+
var c = e.length - 1, l = c * s, u = Math.floor(l), d = Interpolation.Utils.CatmullRom;
|
|
197
|
+
return e[0] === e[c] ? (s < 0 && (u = Math.floor(l = c * (1 + s))), d(e[(u - 1 + c) % c], e[u], e[(u + 1) % c], e[(u + 2) % c], l - u)) : s < 0 ? e[0] - (d(e[0], e[0], e[1], e[1], -l) - e[0]) : s > 1 ? e[c] - (d(e[c], e[c], e[c - 1], e[c - 1], l - c) - e[c]) : d(e[u ? u - 1 : 0], e[u], e[c < u + 1 ? c : u + 1], e[c < u + 2 ? c : u + 2], l - u);
|
|
198
|
+
},
|
|
199
|
+
Utils: {
|
|
200
|
+
Linear: function(e, s, c) {
|
|
201
|
+
return (s - e) * c + e;
|
|
202
|
+
},
|
|
203
|
+
Bernstein: function(e, s) {
|
|
204
|
+
var c = Interpolation.Utils.Factorial;
|
|
205
|
+
return c(e) / c(s) / c(e - s);
|
|
206
|
+
},
|
|
207
|
+
Factorial: (function() {
|
|
208
|
+
var e = [1];
|
|
209
|
+
return function(s) {
|
|
210
|
+
var c = 1;
|
|
211
|
+
if (e[s]) return e[s];
|
|
212
|
+
for (var l = s; l > 1; l--) c *= l;
|
|
213
|
+
return e[s] = c, c;
|
|
214
|
+
};
|
|
215
|
+
})(),
|
|
216
|
+
CatmullRom: function(e, s, c, l, u) {
|
|
217
|
+
var d = (c - e) * .5, f = (l - s) * .5, p = u * u, m = u * p;
|
|
218
|
+
return (2 * s - 2 * c + d + f) * m + (-3 * s + 3 * c - 2 * d - f) * p + d * u + s;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}, Sequence = function() {
|
|
222
|
+
function e() {}
|
|
223
|
+
return e.nextId = function() {
|
|
224
|
+
return e._nextId++;
|
|
225
|
+
}, e._nextId = 0, e;
|
|
226
|
+
}(), mainGroup = new Group(), Tween = function() {
|
|
227
|
+
function e(e, s) {
|
|
228
|
+
this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = Easing.Linear.None, this._interpolationFunction = Interpolation.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = Sequence.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1, this._object = e, typeof s == "object" ? (this._group = s, s.add(this)) : s === !0 && (this._group = mainGroup, mainGroup.add(this));
|
|
229
|
+
}
|
|
230
|
+
return e.prototype.getId = function() {
|
|
231
|
+
return this._id;
|
|
232
|
+
}, e.prototype.isPlaying = function() {
|
|
233
|
+
return this._isPlaying;
|
|
234
|
+
}, e.prototype.isPaused = function() {
|
|
235
|
+
return this._isPaused;
|
|
236
|
+
}, e.prototype.getDuration = function() {
|
|
237
|
+
return this._duration;
|
|
238
|
+
}, e.prototype.to = function(e, s) {
|
|
239
|
+
if (s === void 0 && (s = 1e3), this._isPlaying) throw Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");
|
|
240
|
+
return this._valuesEnd = e, this._propertiesAreSetUp = !1, this._duration = s < 0 ? 0 : s, this;
|
|
241
|
+
}, e.prototype.duration = function(e) {
|
|
242
|
+
return e === void 0 && (e = 1e3), this._duration = e < 0 ? 0 : e, this;
|
|
243
|
+
}, e.prototype.dynamic = function(e) {
|
|
244
|
+
return e === void 0 && (e = !1), this._isDynamic = e, this;
|
|
245
|
+
}, e.prototype.start = function(e, s) {
|
|
246
|
+
if (e === void 0 && (e = now()), s === void 0 && (s = !1), this._isPlaying) return this;
|
|
247
|
+
if (this._repeat = this._initialRepeat, this._reversed) for (var c in this._reversed = !1, this._valuesStartRepeat) this._swapEndStartRepeatValues(c), this._valuesStart[c] = this._valuesStartRepeat[c];
|
|
248
|
+
if (this._isPlaying = !0, this._isPaused = !1, this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._isChainStopped = !1, this._startTime = e, this._startTime += this._delayTime, !this._propertiesAreSetUp || s) {
|
|
249
|
+
if (this._propertiesAreSetUp = !0, !this._isDynamic) {
|
|
250
|
+
var l = {};
|
|
251
|
+
for (var u in this._valuesEnd) l[u] = this._valuesEnd[u];
|
|
252
|
+
this._valuesEnd = l;
|
|
253
|
+
}
|
|
254
|
+
this._setupProperties(this._object, this._valuesStart, this._valuesEnd, this._valuesStartRepeat, s);
|
|
255
|
+
}
|
|
256
|
+
return this;
|
|
257
|
+
}, e.prototype.startFromCurrentValues = function(e) {
|
|
258
|
+
return this.start(e, !0);
|
|
259
|
+
}, e.prototype._setupProperties = function(e, s, c, l, u) {
|
|
260
|
+
for (var d in c) {
|
|
261
|
+
var f = e[d], p = Array.isArray(f), m = p ? "array" : typeof f, h = !p && Array.isArray(c[d]);
|
|
262
|
+
if (!(m === "undefined" || m === "function")) {
|
|
263
|
+
if (h) {
|
|
264
|
+
var g = c[d];
|
|
265
|
+
if (g.length === 0) continue;
|
|
266
|
+
for (var _ = [f], v = 0, y = g.length; v < y; v += 1) {
|
|
267
|
+
var b = this._handleRelativeValue(f, g[v]);
|
|
268
|
+
if (isNaN(b)) {
|
|
269
|
+
h = !1, console.warn("Found invalid interpolation list. Skipping.");
|
|
270
|
+
break;
|
|
271
|
+
}
|
|
272
|
+
_.push(b);
|
|
273
|
+
}
|
|
274
|
+
h && (c[d] = _);
|
|
275
|
+
}
|
|
276
|
+
if ((m === "object" || p) && f && !h) {
|
|
277
|
+
s[d] = p ? [] : {};
|
|
278
|
+
var x = f;
|
|
279
|
+
for (var S in x) s[d][S] = x[S];
|
|
280
|
+
l[d] = p ? [] : {};
|
|
281
|
+
var g = c[d];
|
|
282
|
+
if (!this._isDynamic) {
|
|
283
|
+
var C = {};
|
|
284
|
+
for (var S in g) C[S] = g[S];
|
|
285
|
+
c[d] = g = C;
|
|
286
|
+
}
|
|
287
|
+
this._setupProperties(x, s[d], g, l[d], u);
|
|
288
|
+
} else (s[d] === void 0 || u) && (s[d] = f), p || (s[d] *= 1), h ? l[d] = c[d].slice().reverse() : l[d] = s[d] || 0;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}, e.prototype.stop = function() {
|
|
292
|
+
return this._isChainStopped || (this._isChainStopped = !0, this.stopChainedTweens()), this._isPlaying ? (this._isPlaying = !1, this._isPaused = !1, this._onStopCallback && this._onStopCallback(this._object), this) : this;
|
|
293
|
+
}, e.prototype.end = function() {
|
|
294
|
+
return this._goToEnd = !0, this.update(this._startTime + this._duration), this;
|
|
295
|
+
}, e.prototype.pause = function(e) {
|
|
296
|
+
return e === void 0 && (e = now()), this._isPaused || !this._isPlaying ? this : (this._isPaused = !0, this._pauseStart = e, this);
|
|
297
|
+
}, e.prototype.resume = function(e) {
|
|
298
|
+
return e === void 0 && (e = now()), !this._isPaused || !this._isPlaying ? this : (this._isPaused = !1, this._startTime += e - this._pauseStart, this._pauseStart = 0, this);
|
|
299
|
+
}, e.prototype.stopChainedTweens = function() {
|
|
300
|
+
for (var e = 0, s = this._chainedTweens.length; e < s; e++) this._chainedTweens[e].stop();
|
|
301
|
+
return this;
|
|
302
|
+
}, e.prototype.group = function(e) {
|
|
303
|
+
return e ? (e.add(this), this) : (console.warn("tween.group() without args has been removed, use group.add(tween) instead."), this);
|
|
304
|
+
}, e.prototype.remove = function() {
|
|
305
|
+
var e;
|
|
306
|
+
return (e = this._group) == null || e.remove(this), this;
|
|
307
|
+
}, e.prototype.delay = function(e) {
|
|
308
|
+
return e === void 0 && (e = 0), this._delayTime = e, this;
|
|
309
|
+
}, e.prototype.repeat = function(e) {
|
|
310
|
+
return e === void 0 && (e = 0), this._initialRepeat = e, this._repeat = e, this;
|
|
311
|
+
}, e.prototype.repeatDelay = function(e) {
|
|
312
|
+
return this._repeatDelayTime = e, this;
|
|
313
|
+
}, e.prototype.yoyo = function(e) {
|
|
314
|
+
return e === void 0 && (e = !1), this._yoyo = e, this;
|
|
315
|
+
}, e.prototype.easing = function(e) {
|
|
316
|
+
return e === void 0 && (e = Easing.Linear.None), this._easingFunction = e, this;
|
|
317
|
+
}, e.prototype.interpolation = function(e) {
|
|
318
|
+
return e === void 0 && (e = Interpolation.Linear), this._interpolationFunction = e, this;
|
|
319
|
+
}, e.prototype.chain = function() {
|
|
320
|
+
return this._chainedTweens = [...arguments], this;
|
|
321
|
+
}, e.prototype.onStart = function(e) {
|
|
322
|
+
return this._onStartCallback = e, this;
|
|
323
|
+
}, e.prototype.onEveryStart = function(e) {
|
|
324
|
+
return this._onEveryStartCallback = e, this;
|
|
325
|
+
}, e.prototype.onUpdate = function(e) {
|
|
326
|
+
return this._onUpdateCallback = e, this;
|
|
327
|
+
}, e.prototype.onRepeat = function(e) {
|
|
328
|
+
return this._onRepeatCallback = e, this;
|
|
329
|
+
}, e.prototype.onComplete = function(e) {
|
|
330
|
+
return this._onCompleteCallback = e, this;
|
|
331
|
+
}, e.prototype.onStop = function(e) {
|
|
332
|
+
return this._onStopCallback = e, this;
|
|
333
|
+
}, e.prototype.update = function(s, c) {
|
|
334
|
+
var l = this;
|
|
335
|
+
if (s === void 0 && (s = now()), c === void 0 && (c = e.autoStartOnUpdate), this._isPaused) return !0;
|
|
336
|
+
var u;
|
|
337
|
+
if (!this._goToEnd && !this._isPlaying) if (c) this.start(s, !0);
|
|
338
|
+
else return !1;
|
|
339
|
+
if (this._goToEnd = !1, s < this._startTime) return !0;
|
|
340
|
+
this._onStartCallbackFired === !1 && (this._onStartCallback && this._onStartCallback(this._object), this._onStartCallbackFired = !0), this._onEveryStartCallbackFired === !1 && (this._onEveryStartCallback && this._onEveryStartCallback(this._object), this._onEveryStartCallbackFired = !0);
|
|
341
|
+
var d = s - this._startTime, f = this._duration + (this._repeatDelayTime ?? this._delayTime), p = this._duration + this._repeat * f, h = function() {
|
|
342
|
+
if (l._duration === 0 || d > p) return 1;
|
|
343
|
+
var e = d - Math.trunc(d / f) * f, s = Math.min(e / l._duration, 1);
|
|
344
|
+
return s === 0 && d === l._duration ? 1 : s;
|
|
345
|
+
}(), g = this._easingFunction(h);
|
|
346
|
+
if (this._updateProperties(this._object, this._valuesStart, this._valuesEnd, g), this._onUpdateCallback && this._onUpdateCallback(this._object, h), this._duration === 0 || d >= this._duration) if (this._repeat > 0) {
|
|
347
|
+
var _ = Math.min(Math.trunc((d - this._duration) / f) + 1, this._repeat);
|
|
348
|
+
for (u in isFinite(this._repeat) && (this._repeat -= _), this._valuesStartRepeat) !this._yoyo && typeof this._valuesEnd[u] == "string" && (this._valuesStartRepeat[u] = this._valuesStartRepeat[u] + parseFloat(this._valuesEnd[u])), this._yoyo && this._swapEndStartRepeatValues(u), this._valuesStart[u] = this._valuesStartRepeat[u];
|
|
349
|
+
return this._yoyo && (this._reversed = !this._reversed), this._startTime += f * _, this._onRepeatCallback && this._onRepeatCallback(this._object), this._onEveryStartCallbackFired = !1, !0;
|
|
350
|
+
} else {
|
|
351
|
+
this._onCompleteCallback && this._onCompleteCallback(this._object);
|
|
352
|
+
for (var v = 0, y = this._chainedTweens.length; v < y; v++) this._chainedTweens[v].start(this._startTime + this._duration, !1);
|
|
353
|
+
return this._isPlaying = !1, !1;
|
|
354
|
+
}
|
|
355
|
+
return !0;
|
|
356
|
+
}, e.prototype._updateProperties = function(e, s, c, l) {
|
|
357
|
+
for (var u in c) if (s[u] !== void 0) {
|
|
358
|
+
var d = s[u] || 0, f = c[u];
|
|
359
|
+
!Array.isArray(e[u]) && Array.isArray(f) ? e[u] = this._interpolationFunction(f, l) : typeof f == "object" && f ? this._updateProperties(e[u], d, f, l) : (f = this._handleRelativeValue(d, f), typeof f == "number" && (e[u] = d + (f - d) * l));
|
|
360
|
+
}
|
|
361
|
+
}, e.prototype._handleRelativeValue = function(e, s) {
|
|
362
|
+
return typeof s == "string" ? s.charAt(0) === "+" || s.charAt(0) === "-" ? e + parseFloat(s) : parseFloat(s) : s;
|
|
363
|
+
}, e.prototype._swapEndStartRepeatValues = function(e) {
|
|
364
|
+
var s = this._valuesStartRepeat[e], c = this._valuesEnd[e];
|
|
365
|
+
typeof c == "string" ? this._valuesStartRepeat[e] = this._valuesStartRepeat[e] + parseFloat(c) : this._valuesStartRepeat[e] = this._valuesEnd[e], this._valuesEnd[e] = s;
|
|
366
|
+
}, e.autoStartOnUpdate = !1, e;
|
|
367
|
+
}();
|
|
368
|
+
Sequence.nextId;
|
|
369
|
+
var TWEEN = mainGroup;
|
|
370
|
+
TWEEN.getAll.bind(TWEEN), TWEEN.removeAll.bind(TWEEN), TWEEN.add.bind(TWEEN), TWEEN.remove.bind(TWEEN), TWEEN.update.bind(TWEEN);
|
|
371
|
+
const TW_NM_TRANS = "trans\n";
|
|
372
|
+
var PID_HD_TW = "tsy nm:", CmnTween = class e {
|
|
373
|
+
static #e = {};
|
|
374
|
+
static #t;
|
|
375
|
+
static init(s) {
|
|
376
|
+
e.#e = {}, e.#t = s, e.addGrp(e.#r);
|
|
377
|
+
function c(s) {
|
|
378
|
+
for (let c of e.#i) c.update(s);
|
|
379
|
+
e.#n(c);
|
|
380
|
+
}
|
|
381
|
+
e.#n = (e) => requestAnimationFrame(e), e.#n(c);
|
|
382
|
+
}
|
|
383
|
+
static #n;
|
|
384
|
+
static #r = new Group();
|
|
385
|
+
static #i = [];
|
|
386
|
+
static addGrp(s) {
|
|
387
|
+
e.#i.push(s);
|
|
388
|
+
}
|
|
389
|
+
static destroy() {
|
|
390
|
+
e.#r.removeAll(), e.#n = () => 0, e.stopAllTw();
|
|
391
|
+
}
|
|
392
|
+
static stopAllTw() {
|
|
393
|
+
e.#e = {};
|
|
394
|
+
for (let s of e.#i) s.removeAll();
|
|
395
|
+
e.#i = [];
|
|
396
|
+
}
|
|
397
|
+
static setTwProp(e, c) {
|
|
398
|
+
let u = argChk_Num(c, "repeat", 1);
|
|
399
|
+
return e.delay(argChk_Num(c, "delay", 0)).easing(this.ease(c.ease)).repeat(u > 0 ? u - 1 : Infinity).yoyo(argChk_Boolean(c, "yoyo", !1));
|
|
400
|
+
}
|
|
401
|
+
static #a = {
|
|
402
|
+
"Back.In": (e) => Easing.Back.In(e),
|
|
403
|
+
"Back.InOut": (e) => Easing.Back.InOut(e),
|
|
404
|
+
"Back.Out": (e) => Easing.Back.Out(e),
|
|
405
|
+
"Bounce.In": (e) => Easing.Bounce.In(e),
|
|
406
|
+
"Bounce.InOut": (e) => Easing.Bounce.InOut(e),
|
|
407
|
+
"Bounce.Out": (e) => Easing.Bounce.Out(e),
|
|
408
|
+
"Circular.In": (e) => Easing.Circular.In(e),
|
|
409
|
+
"Circular.InOut": (e) => Easing.Circular.InOut(e),
|
|
410
|
+
"Circular.Out": (e) => Easing.Circular.Out(e),
|
|
411
|
+
"Cubic.In": (e) => Easing.Cubic.In(e),
|
|
412
|
+
"Cubic.InOut": (e) => Easing.Cubic.InOut(e),
|
|
413
|
+
"Cubic.Out": (e) => Easing.Cubic.Out(e),
|
|
414
|
+
"Elastic.In": (e) => Easing.Elastic.In(e),
|
|
415
|
+
"Elastic.InOut": (e) => Easing.Elastic.InOut(e),
|
|
416
|
+
"Elastic.Out": (e) => Easing.Elastic.Out(e),
|
|
417
|
+
"Exponential.In": (e) => Easing.Exponential.In(e),
|
|
418
|
+
"Exponential.InOut": (e) => Easing.Exponential.InOut(e),
|
|
419
|
+
"Exponential.Out": (e) => Easing.Exponential.Out(e),
|
|
420
|
+
"Linear.None": (e) => Easing.Linear.None(e),
|
|
421
|
+
"Quadratic.In": (e) => Easing.Quadratic.In(e),
|
|
422
|
+
"Quadratic.InOut": (e) => Easing.Quadratic.InOut(e),
|
|
423
|
+
"Quadratic.Out": (e) => Easing.Quadratic.Out(e),
|
|
424
|
+
"Quartic.In": (e) => Easing.Quartic.In(e),
|
|
425
|
+
"Quartic.InOut": (e) => Easing.Quartic.InOut(e),
|
|
426
|
+
"Quartic.Out": (e) => Easing.Quartic.Out(e),
|
|
427
|
+
"Quintic.In": (e) => Easing.Quintic.In(e),
|
|
428
|
+
"Quintic.InOut": (e) => Easing.Quintic.InOut(e),
|
|
429
|
+
"Quintic.Out": (e) => Easing.Quintic.Out(e),
|
|
430
|
+
"Sinusoidal.In": (e) => Easing.Sinusoidal.In(e),
|
|
431
|
+
"Sinusoidal.InOut": (e) => Easing.Sinusoidal.InOut(e),
|
|
432
|
+
"Sinusoidal.Out": (e) => Easing.Sinusoidal.Out(e)
|
|
433
|
+
};
|
|
434
|
+
static ease(e) {
|
|
435
|
+
if (!e) return (e) => Easing.Linear.None(e);
|
|
436
|
+
let s = this.#a[e];
|
|
437
|
+
if (!s) throw "異常なease指定です";
|
|
438
|
+
return s;
|
|
439
|
+
}
|
|
440
|
+
static aLayerPrpNm = [
|
|
441
|
+
"alpha",
|
|
442
|
+
"height",
|
|
443
|
+
"rotation",
|
|
444
|
+
"scale_x",
|
|
445
|
+
"scale_y",
|
|
446
|
+
"pivot_x",
|
|
447
|
+
"pivot_y",
|
|
448
|
+
"width",
|
|
449
|
+
"x",
|
|
450
|
+
"y"
|
|
451
|
+
];
|
|
452
|
+
static cnvTweenArg(s, c) {
|
|
453
|
+
let l = {};
|
|
454
|
+
for (let u of e.aLayerPrpNm) {
|
|
455
|
+
let e = s[u];
|
|
456
|
+
if (!e) continue;
|
|
457
|
+
let d = String(e), f = d.startsWith("="), p = f ? d.slice(1) : d;
|
|
458
|
+
if (!p) continue;
|
|
459
|
+
let [m = "0", h] = p.split(","), g = l[u] = parseFloat(m);
|
|
460
|
+
h && (l[u] += Math.round(Math.random() * (parseFloat(h) - g + 1))), f && (l[u] += parseFloat(c[u]));
|
|
461
|
+
}
|
|
462
|
+
return l;
|
|
463
|
+
}
|
|
464
|
+
static tween(c, l, d, f, p, m, h, g = !0) {
|
|
465
|
+
let _ = this.#t.isSkipping ? 0 : argChk_Num(l, "time", NaN), v = new Tween(d).to(f, _).onUpdate((e) => p(e));
|
|
466
|
+
this.setTwProp(v, l), this.#e[c] = {
|
|
467
|
+
tw: v,
|
|
468
|
+
onEnd: h
|
|
469
|
+
}, e.#r.add(v);
|
|
470
|
+
let { path: b } = l, x = v;
|
|
471
|
+
if (b) {
|
|
472
|
+
CmnLib.debugLog && console.group(`🍝 [${l[":タグ名"] ?? ""}] path=${b}= start(${String(d.x)},${String(d.y)},${String(d.alpha)})`);
|
|
473
|
+
for (let { groups: e } of b.matchAll(this.#o)) {
|
|
474
|
+
let { x: s, x2: c, y: f, y2: p, o: m, o2: h, json: g } = e, v = {};
|
|
475
|
+
if (g) try {
|
|
476
|
+
v = JSON.parse(g);
|
|
477
|
+
} catch (e) {
|
|
478
|
+
console.error(`🍝 json=${g} ` + String(e));
|
|
479
|
+
continue;
|
|
480
|
+
}
|
|
481
|
+
else {
|
|
482
|
+
let e = s ?? c;
|
|
483
|
+
e && (v.x = e);
|
|
484
|
+
let l = f ?? p;
|
|
485
|
+
l && (v.y = l);
|
|
486
|
+
let u = m ?? h;
|
|
487
|
+
u && (v.alpha = Number(u));
|
|
488
|
+
}
|
|
489
|
+
let b = this.cnvTweenArg(v, d);
|
|
490
|
+
CmnLib.debugLog && console.info(`🍝 ${g ?? `{x:${String(s)} y:${String(f)} o:${String(m)}}`} => hTo:${JSON.stringify(b)}`);
|
|
491
|
+
let S = new Tween(d).to(b, _);
|
|
492
|
+
this.setTwProp(S, l), x.chain(S), x = S;
|
|
493
|
+
}
|
|
494
|
+
CmnLib.debugLog && console.groupEnd();
|
|
495
|
+
}
|
|
496
|
+
x.onComplete(() => {
|
|
497
|
+
let e = this.#e[c];
|
|
498
|
+
e?.tw && (delete this.#e[c], e.tw = void 0, v.stop(), e.onEnd?.(), m(), Reading.notifyEndProc(PID_HD_TW + c));
|
|
499
|
+
});
|
|
500
|
+
let { chain: C } = l;
|
|
501
|
+
if (C) {
|
|
502
|
+
let e = this.#e[C];
|
|
503
|
+
if (!e?.tw) throw `${C}は存在しない・または終了したトゥイーンです`;
|
|
504
|
+
delete e.onEnd, e.tw.chain(v);
|
|
505
|
+
} else g && v.start();
|
|
506
|
+
return v;
|
|
507
|
+
}
|
|
508
|
+
static #o = /\(\s*(?:(?<x>[-=\d.]+)|(['"])(?<x2>.*?)\2)?(?:\s*,\s*(?:(?<y>[-=\d.]+)|(['"])(?<y2>.*?)\5)?(?:\s*,\s*(?:(?<o>[-=\d.]+)|(['"])(?<o2>.*?)\8))?)?|(?<json>\{[^{}]*})/g;
|
|
509
|
+
static wt(e) {
|
|
510
|
+
if (!this.#e["trans\n"]?.tw) return !1;
|
|
511
|
+
let s = () => this.stopEndTrans();
|
|
512
|
+
return Reading.beginProc(TW_NM_TRANS, s, !0, argChk_Boolean(e, "canskip", !0) ? s : void 0), !0;
|
|
513
|
+
}
|
|
514
|
+
static stopEndTrans() {
|
|
515
|
+
this.#e[TW_NM_TRANS]?.tw?.stop().end();
|
|
516
|
+
}
|
|
517
|
+
static wait_tsy(e) {
|
|
518
|
+
let s = this.#s(e), c = this.#e[s]?.tw;
|
|
519
|
+
if (!c) return !1;
|
|
520
|
+
let u = () => c.end();
|
|
521
|
+
return Reading.beginProc(PID_HD_TW + s, u, !0, argChk_Boolean(e, "canskip", !0) ? u : void 0), new ReadingState_wait4Tag(e), !0;
|
|
522
|
+
}
|
|
523
|
+
static #s(e) {
|
|
524
|
+
let { layer: s = "", id: c, name: l } = e, u = c ? `frm\n${c}` : l ?? s;
|
|
525
|
+
if (!u) throw "トゥイーンが指定されていません";
|
|
526
|
+
return u;
|
|
527
|
+
}
|
|
528
|
+
static stop_tsy(e) {
|
|
529
|
+
let s = this.#s(e);
|
|
530
|
+
return this.#e[s]?.tw?.stop().end(), !1;
|
|
531
|
+
}
|
|
532
|
+
static pause_tsy(e) {
|
|
533
|
+
let s = this.#s(e);
|
|
534
|
+
return this.#e[s]?.tw?.pause(), !1;
|
|
535
|
+
}
|
|
536
|
+
static resume_tsy(e) {
|
|
537
|
+
let s = this.#s(e);
|
|
538
|
+
return this.#e[s]?.tw?.resume(), !1;
|
|
539
|
+
}
|
|
540
|
+
}, ReadingState = class e {
|
|
541
|
+
static #e = new Group();
|
|
542
|
+
static init() {
|
|
543
|
+
CmnTween.addGrp(e.#e);
|
|
544
|
+
}
|
|
545
|
+
static #t;
|
|
546
|
+
static get rs() {
|
|
547
|
+
return this.#t;
|
|
548
|
+
}
|
|
549
|
+
constructor() {
|
|
550
|
+
e.#t = this;
|
|
551
|
+
}
|
|
552
|
+
static #n = {};
|
|
553
|
+
static #r = {};
|
|
554
|
+
static setEvt2Fnc(e, s, c) {
|
|
555
|
+
e ? this.#r[s] = c : this.#n[s] = c;
|
|
556
|
+
}
|
|
557
|
+
static getEvt2Fnc = (e) => this.#n[e] ?? this.#r[e];
|
|
558
|
+
static clear_eventer(e, s, c) {
|
|
559
|
+
if (!e.startsWith("dom=")) return;
|
|
560
|
+
let l = s ? this.#r[c] : this.#n[c];
|
|
561
|
+
l && this.getHtmlElmList(e).el.forEach((e) => e.removeEventListener("click", l)), s ? delete this.#r[c] : delete this.#n[c];
|
|
562
|
+
}
|
|
563
|
+
static popLocalEvts() {
|
|
564
|
+
let e = this.#n;
|
|
565
|
+
return this.#n = {}, e;
|
|
566
|
+
}
|
|
567
|
+
static pushLocalEvts(e) {
|
|
568
|
+
this.#n = e;
|
|
569
|
+
}
|
|
570
|
+
static clear_event(e) {
|
|
571
|
+
let s = argChk_Boolean(e, "global", !1), c = s ? this.#r : this.#n;
|
|
572
|
+
for (let [e, s] of Object.entries(c)) e.startsWith("dom=") && this.getHtmlElmList(e).el.forEach((e) => e.removeEventListener("click", s));
|
|
573
|
+
return s ? this.#r = {} : this.#n = {}, !1;
|
|
574
|
+
}
|
|
575
|
+
static getHtmlElmList(e) {
|
|
576
|
+
let s = e.indexOf(":"), c = "";
|
|
577
|
+
if (s >= 0) {
|
|
578
|
+
let l = e.slice(4, s), u = `const.sn.frm.${l}`;
|
|
579
|
+
if (!Reading.val.getVal(`tmp:${u}`, 0)) throw `HTML【${l}】が読み込まれていません`;
|
|
580
|
+
let d = document.getElementById(l);
|
|
581
|
+
if (!d) throw `HTML【${l}】の要素(id=${l})がありません`;
|
|
582
|
+
let f = d.contentWindow;
|
|
583
|
+
return c = e.slice(s + 1), {
|
|
584
|
+
el: f.document.querySelectorAll(c),
|
|
585
|
+
id: l,
|
|
586
|
+
sel: c
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
return c = e.slice(4), {
|
|
590
|
+
el: document.querySelectorAll(c),
|
|
591
|
+
id: "",
|
|
592
|
+
sel: c
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
static waitRsvEvent(e, s) {
|
|
596
|
+
Reading.val.saveKidoku(), s ? this.#n.click = this.#n.enter = this.#n.arrowdown = this.#n["wheel.y>0"] = () => s() : (delete this.#n.click, delete this.#n.enter, delete this.#n.arrowdown, delete this.#n["wheel.y>0"]), this.getEvt2Fnc = e ? (e) => this.#n[e] ?? this.#r[e] : (e) => this.#n[e], Reading.scrItr.noticeWait(), CmnLib.debugLog && console.log("🎍 wait event... %o", {
|
|
597
|
+
local: Object.keys(this.#n),
|
|
598
|
+
global: Object.keys(this.#r)
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
static waitRsvEvent4Paging() {
|
|
602
|
+
if (this.waitRsvEvent(!0), this.aKeysAtPaging.length === 0) {
|
|
603
|
+
this.getEvt2Fnc = (e) => this.#n[e] ?? this.#r[e];
|
|
604
|
+
return;
|
|
605
|
+
}
|
|
606
|
+
let e = {};
|
|
607
|
+
for (let s of this.aKeysAtPaging) {
|
|
608
|
+
let c = this.#r[s];
|
|
609
|
+
c && (e[s] = c);
|
|
610
|
+
}
|
|
611
|
+
this.getEvt2Fnc = (s) => this.#n[s] ?? e[s];
|
|
612
|
+
}
|
|
613
|
+
fire(s, l) {
|
|
614
|
+
let u = e.#i.exec(s)?.[0] ?? "", f = s.toLowerCase();
|
|
615
|
+
switch (u) {
|
|
616
|
+
case "click":
|
|
617
|
+
case "rightclick":
|
|
618
|
+
case "middleclick":
|
|
619
|
+
case "enter":
|
|
620
|
+
case "arrowdown":
|
|
621
|
+
case "btn":
|
|
622
|
+
if (Reading.evtMng.isSkipping) break;
|
|
623
|
+
if (!e.isFirstFire()) return;
|
|
624
|
+
break;
|
|
625
|
+
}
|
|
626
|
+
if (u === "enter") {
|
|
627
|
+
let e = Reading.fcs.getFocus();
|
|
628
|
+
if (e instanceof Container) {
|
|
629
|
+
e.emit(EVNM_CLICK, new PointerEvent(EVNM_CLICK));
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
let p = e.getEvt2Fnc(f);
|
|
634
|
+
p && (l.stopImmediatePropagation?.(), !(!f.startsWith("dom=") && Reading.layMng.clickTxtLay()) && p(l));
|
|
635
|
+
}
|
|
636
|
+
static #i = /btn|\w+$/;
|
|
637
|
+
get skip_enabled() {
|
|
638
|
+
return Reading.skip_enabled;
|
|
639
|
+
}
|
|
640
|
+
isWait = !1;
|
|
641
|
+
static #a = !1;
|
|
642
|
+
static isFirstFire() {
|
|
643
|
+
return e.#a ? !1 : (e.#a = !0, !0);
|
|
644
|
+
}
|
|
645
|
+
static resetFired() {
|
|
646
|
+
e.#a = !1;
|
|
647
|
+
}
|
|
648
|
+
static aPage;
|
|
649
|
+
static lenPage = 0;
|
|
650
|
+
static posPage = 0;
|
|
651
|
+
static styPaging;
|
|
652
|
+
static INI_STYPAGE = "color: yellow; text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;";
|
|
653
|
+
static aKeysAtPaging = [];
|
|
654
|
+
static recodePage(e = !1) {
|
|
655
|
+
if (!Reading.val.getVal("save:sn.doRecLog")) return;
|
|
656
|
+
let { fn: s, idx: c } = Reading.scrItr.nowScrIdx(), l = `${String(c - 1)}:` + s;
|
|
657
|
+
if (this.aPage.findIndex((e) => e.key === l) > -1) return;
|
|
658
|
+
CmnLib.debugLog && console.log(`📜 %crecodePage === week:${String(e)} lenPage:${String(this.lenPage)} len:${String(this.aPage.length)} POP:${String(this.aPage.at(-1)?.week)}`, "color:#3B0;"), this.aPage.at(-1)?.week && this.aPage.pop();
|
|
659
|
+
let { max_len: d } = Reading.cfg.oCfg.log, f = Reading.scrItr.nowMark();
|
|
660
|
+
f.hSave["const.sn.sLog"] = "[]", this.aPage.push({
|
|
661
|
+
key: l,
|
|
662
|
+
week: e,
|
|
663
|
+
fn: Reading.val.getVal("save:const.sn.scriptFn", s),
|
|
664
|
+
index: Reading.val.getVal("save:const.sn.scriptIdx", 0),
|
|
665
|
+
mark: f
|
|
666
|
+
}) > d && (this.aPage = this.aPage.slice(-d)), this.lenPage = this.aPage.length, CmnLib.debugLog && (console.log(` %clenPage:${String(this.lenPage)} (base=${f.hPages.base.fore.sBkFn} 0=${f.hPages[0].fore.sBkFn} mes=${String(/color: \w+;/.exec((f.hPages.mes?.fore).txs.cssText))})%c mark:%o`, "color:#3B0;", "", f), console.table(this.aPage)), Reading.val.setVal_Nochk("sys", "const.sn.aPageLog", JSON.stringify(this.aPage));
|
|
667
|
+
}
|
|
668
|
+
static playbackPage(e, s) {
|
|
669
|
+
this.aPage = JSON.parse(e), this.lenPage = this.aPage.length, this.posPage >= this.lenPage && (this.posPage = this.lenPage - 1), this.styPaging = s;
|
|
670
|
+
}
|
|
671
|
+
beginProc() {
|
|
672
|
+
new ReadingState_proc();
|
|
673
|
+
}
|
|
674
|
+
endProc() {
|
|
675
|
+
new ReadingState_go();
|
|
676
|
+
}
|
|
677
|
+
l(s) {
|
|
678
|
+
if (!Reading.tagL_enabled) return !1;
|
|
679
|
+
if (e.recodePage(!0), Reading.auto_enabled) return s.time = Number(Reading.val.getVal(`sys:sn.auto.msecLineWait${Reading.scrItr.isKidoku ? "_Kidoku" : ""}`)), this.wait(s);
|
|
680
|
+
if (Reading.skip_enabled) {
|
|
681
|
+
if (!Reading.skip_all && !Reading.scrItr.isNextKidoku) Reading.cancelAutoSkip();
|
|
682
|
+
else if ("ps".includes(String(Reading.val.getVal("sys:sn.skip.mode")))) return s.time = 50, this.wait(s);
|
|
683
|
+
}
|
|
684
|
+
return argChk_Boolean(s, "visible", !0) && (Reading.layMng.breakLine(s), Reading.goTxt()), new ReadingState_wait4Tag(s), !0;
|
|
685
|
+
}
|
|
686
|
+
p(s) {
|
|
687
|
+
if (e.recodePage(), Reading.auto_enabled) return s.time = Number(Reading.val.getVal(`sys:sn.auto.msecPageWait${Reading.scrItr.isKidoku ? "_Kidoku" : ""}`)), this.wait(s);
|
|
688
|
+
if (Reading.skip_enabled) {
|
|
689
|
+
if (!Reading.skip_all && !Reading.scrItr.isNextKidoku) Reading.cancelAutoSkip();
|
|
690
|
+
else if (String(Reading.val.getVal("sys:sn.skip.mode")) === "s") return s.time = 50, this.wait(s);
|
|
691
|
+
}
|
|
692
|
+
return argChk_Boolean(s, "visible", !0) && (Reading.layMng.breakPage(s), Reading.goTxt()), new ReadingState_wait4Tag(s), !0;
|
|
693
|
+
}
|
|
694
|
+
s(s) {
|
|
695
|
+
return e.recodePage(), Reading.cancelAutoSkip(), new ReadingState_wait4Tag(s), !0;
|
|
696
|
+
}
|
|
697
|
+
wait(c) {
|
|
698
|
+
let u = argChk_Num(c, "time", NaN);
|
|
699
|
+
if (Reading.skip_enabled) return !Reading.skip_all && !Reading.scrItr.isNextKidoku && Reading.cancelAutoSkip(), !1;
|
|
700
|
+
let d = new Tween({}), f = "wait", p = () => {
|
|
701
|
+
e.#e.remove(d), Reading.notifyEndProc(f);
|
|
702
|
+
};
|
|
703
|
+
d.to({}, u).onComplete(p).start(), e.#e.add(d);
|
|
704
|
+
let m = argChk_Boolean(c, "canskip", !0);
|
|
705
|
+
return Reading.beginProc(f, p, !0, m ? p : void 0), !0;
|
|
706
|
+
}
|
|
707
|
+
page(s) {
|
|
708
|
+
if (!("clear" in s || "to" in s || "style" in s)) throw "clear,style,to いずれかは必須です";
|
|
709
|
+
let { key: c, style: u } = s;
|
|
710
|
+
return c && (e.aKeysAtPaging = c.split(",")), u ? (e.styPaging = u, Reading.val.setVal_Nochk("save", "const.sn.styPaging", u), !1) : argChk_Boolean(s, "clear", !1) ? (e.aPage = [], e.lenPage = 0, e.posPage = 0, Reading.val.setVal_Nochk("sys", "const.sn.aPageLog", "[]"), Reading.val.setVal_Nochk("save", "const.sn.styPaging", e.INI_STYPAGE), !1) : !1;
|
|
711
|
+
}
|
|
712
|
+
static destroy() {
|
|
713
|
+
e.#e.removeAll(), this.#n = {}, this.#r = {}, this.aPage = [], this.lenPage = 0, this.posPage = 0;
|
|
714
|
+
}
|
|
715
|
+
}, ReadingState_go = class extends ReadingState {
|
|
716
|
+
constructor() {
|
|
717
|
+
super(), CmnLib.debugLog && console.log("📖 => %cReadingState_go", "color:#3B0;"), Reading.main.resume();
|
|
718
|
+
}
|
|
719
|
+
fire(e, s) {}
|
|
720
|
+
}, ReadingState_proc = class extends ReadingState {
|
|
721
|
+
constructor() {
|
|
722
|
+
super(), CmnLib.debugLog && console.log("📖 => %cReadingState_proc", "color:#3B0;");
|
|
723
|
+
}
|
|
724
|
+
fire(e, s) {}
|
|
725
|
+
}, ReadingState_wait4Tag = class extends ReadingState {
|
|
726
|
+
constructor(e) {
|
|
727
|
+
super(), CmnLib.debugLog && console.log("📖 => %cReadingState_wait", "color:#3B0;");
|
|
728
|
+
let s = () => {}, c = argChk_Boolean(e, "global", !0);
|
|
729
|
+
switch (e[":タグ名"]) {
|
|
730
|
+
case "wait": return;
|
|
731
|
+
case "s":
|
|
732
|
+
ReadingState.waitRsvEvent(c);
|
|
733
|
+
return;
|
|
734
|
+
case "p":
|
|
735
|
+
s = () => {
|
|
736
|
+
argChk_Boolean(e, "er", !1) && Reading.hTag.er(e), new ReadingState_go();
|
|
737
|
+
};
|
|
738
|
+
break;
|
|
739
|
+
default: s = () => new ReadingState_go();
|
|
740
|
+
}
|
|
741
|
+
ReadingState.waitRsvEvent(c, s);
|
|
742
|
+
}
|
|
743
|
+
isWait = !0;
|
|
744
|
+
page(e) {
|
|
745
|
+
let s = super.page(e), { to: c } = e;
|
|
746
|
+
if (!c) return s;
|
|
747
|
+
if (ReadingState.lenPage < 2) return !1;
|
|
748
|
+
switch (c) {
|
|
749
|
+
case "oldest":
|
|
750
|
+
e.to = "prev", ReadingState.posPage = 1;
|
|
751
|
+
break;
|
|
752
|
+
case "newest":
|
|
753
|
+
case "prev":
|
|
754
|
+
e.to = "prev", ReadingState.posPage = ReadingState.lenPage - 1;
|
|
755
|
+
break;
|
|
756
|
+
default: return !1;
|
|
757
|
+
}
|
|
758
|
+
return ReadingState_page.go(e);
|
|
759
|
+
}
|
|
760
|
+
}, ReadingState_page = class e extends ReadingState {
|
|
761
|
+
constructor() {
|
|
762
|
+
super(), CmnLib.debugLog && console.log("📖 => %cReadingState_page", "color:#3B0;"), Reading.val.setVal_Nochk("tmp", "const.sn.isPaging", !0);
|
|
763
|
+
}
|
|
764
|
+
static go(s) {
|
|
765
|
+
return new e().page(s);
|
|
766
|
+
}
|
|
767
|
+
#e = !0;
|
|
768
|
+
get skip_enabled() {
|
|
769
|
+
return this.#e;
|
|
770
|
+
}
|
|
771
|
+
isWait = !1;
|
|
772
|
+
beginProc() {
|
|
773
|
+
Reading.main.stop();
|
|
774
|
+
}
|
|
775
|
+
endProc() {
|
|
776
|
+
Reading.main.resume();
|
|
777
|
+
}
|
|
778
|
+
l(e) {
|
|
779
|
+
return this.#e ? ReadingState.posPage === ReadingState.lenPage - 1 ? (this.#t(), new ReadingState_go().l(e)) : (argChk_Boolean(e, "visible", !0) && Reading.layMng.breakLine(e), Reading.layMng.setAllStyle2TxtLay(ReadingState.styPaging), Reading.goTxt(), ReadingState.aPage[ReadingState.posPage]?.week ? (ReadingState.waitRsvEvent4Paging(), !0) : !1) : super.l(e);
|
|
780
|
+
}
|
|
781
|
+
p(e) {
|
|
782
|
+
return this.#e ? ReadingState.posPage === ReadingState.lenPage - 1 ? (this.#t(), new ReadingState_go().p(e)) : (argChk_Boolean(e, "visible", !0) && Reading.layMng.breakPage(e), Reading.layMng.setAllStyle2TxtLay(ReadingState.styPaging), Reading.goTxt(), ReadingState.waitRsvEvent4Paging(), !0) : super.p(e);
|
|
783
|
+
}
|
|
784
|
+
s(e) {
|
|
785
|
+
return new ReadingState_wait4Tag(e), !0;
|
|
786
|
+
}
|
|
787
|
+
wait() {
|
|
788
|
+
return !1;
|
|
789
|
+
}
|
|
790
|
+
page(e) {
|
|
791
|
+
let { to: s, style: c, clear: l } = e;
|
|
792
|
+
if (c || l) return !1;
|
|
793
|
+
switch (CmnLib.debugLog && console.log(`📜 %cpage() pos:${String(ReadingState.posPage)}%c len:${String(ReadingState.lenPage)} to:${String(s)}`, "color:#3B0;", ""), s) {
|
|
794
|
+
case "oldest":
|
|
795
|
+
if (ReadingState.posPage === 0) return !1;
|
|
796
|
+
ReadingState.posPage = 0;
|
|
797
|
+
break;
|
|
798
|
+
case "prev":
|
|
799
|
+
if (ReadingState.posPage === 0) return !1;
|
|
800
|
+
--ReadingState.posPage;
|
|
801
|
+
break;
|
|
802
|
+
case "next":
|
|
803
|
+
if (ReadingState.posPage === ReadingState.lenPage - 1) return !1;
|
|
804
|
+
++ReadingState.posPage;
|
|
805
|
+
break;
|
|
806
|
+
case "newest":
|
|
807
|
+
if (ReadingState.posPage === ReadingState.lenPage - 1) return !1;
|
|
808
|
+
ReadingState.posPage = ReadingState.lenPage - 1;
|
|
809
|
+
break;
|
|
810
|
+
case "exit":
|
|
811
|
+
ReadingState.posPage = ReadingState.lenPage - 1;
|
|
812
|
+
break;
|
|
813
|
+
case "load":
|
|
814
|
+
ReadingState.lenPage = ReadingState.posPage + 1, ReadingState.aPage = ReadingState.aPage.slice(0, ReadingState.lenPage), this.#t();
|
|
815
|
+
break;
|
|
816
|
+
default: throw `属性to「${String(s)}」は異常です`;
|
|
817
|
+
}
|
|
818
|
+
ReadingState.posPage === ReadingState.lenPage - 1 && this.#t();
|
|
819
|
+
let d = ReadingState.aPage[ReadingState.posPage];
|
|
820
|
+
if (!d) throw `posPage異常:${String(ReadingState.posPage)}`;
|
|
821
|
+
let { fn: f, index: p, mark: m } = d;
|
|
822
|
+
if (CmnLib.debugLog) {
|
|
823
|
+
let e = Reading.scrItr.nowMark(), { week: s } = ReadingState.aPage[ReadingState.posPage] ?? { week: !1 };
|
|
824
|
+
console.log(` -- fn:${f} i:${String(p)} pos:${String(ReadingState.posPage)} (base=%c${(e.hPages.base?.fore).sBkFn}%c 0=%c${(e.hPages[0]?.fore).sBkFn}%c mes=%c${String(/color: \w+;/.exec((e.hPages.mes?.fore).txs.cssText))}%c) week:${String(s)} A:${String(ReadingState.posPage === ReadingState.lenPage - 1)}\n styPaging=%c${ReadingState.styPaging}%c\n mark:%o`, "background-color:#3B0; color:#000;", "", "background-color:#B4F; color:#000;", "", "color:#B68;", "", ReadingState.styPaging, "", m);
|
|
825
|
+
}
|
|
826
|
+
return Reading.scrItr.loadFromMark({
|
|
827
|
+
fn: f,
|
|
828
|
+
index: p
|
|
829
|
+
}, m);
|
|
830
|
+
}
|
|
831
|
+
#t() {
|
|
832
|
+
Reading.val.setVal_Nochk("tmp", "const.sn.isPaging", !1), this.#e = !1;
|
|
833
|
+
}
|
|
834
|
+
}, Reading = class {
|
|
835
|
+
static beginProc(s, l, d = !0, f) {
|
|
836
|
+
if (CmnLib.debugLog && console.log(`📖.beginProc id:%c${s}%c onNotify:${String(l)} endProc:${String(d)} onClickSkip:${String(f)}`, "color:#3B0;", ""), this.#e(), this.#r = s, l) {
|
|
837
|
+
let { promise: e, resolve: s } = Promise.withResolvers();
|
|
838
|
+
e.then((e) => {
|
|
839
|
+
CmnLib.debugLog && console.log(`📖.callBack id:%c${e}%c`, "color:#3B0;", ""), l(), d ? this.endProc(e) : this.#e();
|
|
840
|
+
}), this.#n = s;
|
|
841
|
+
}
|
|
842
|
+
if (f) {
|
|
843
|
+
let l = () => {
|
|
844
|
+
this.cancelAutoSkip(), f(), d && this.endProc(s);
|
|
845
|
+
};
|
|
846
|
+
this.#t.add(this.main.cvs, EVNM_CLICK, (e) => {
|
|
847
|
+
e.stopPropagation(), l();
|
|
848
|
+
}), this.#t.add(document, EVNM_KEY, (e) => {
|
|
849
|
+
e.isComposing || (e.stopPropagation(), l());
|
|
850
|
+
}), this.procWheel4wle(this.#t, l);
|
|
851
|
+
}
|
|
852
|
+
ReadingState.rs.beginProc();
|
|
853
|
+
}
|
|
854
|
+
static #e() {
|
|
855
|
+
this.#r = "", this.#n = () => {}, this.#t.clear();
|
|
856
|
+
}
|
|
857
|
+
static #t = new EventListenerCtn();
|
|
858
|
+
static #n = () => {};
|
|
859
|
+
static notifyEndProc(e) {
|
|
860
|
+
CmnLib.debugLog && console.log(`📖.notifyEndProc id:%c${e}%c=${String(this.#r === e)}`, "color:#3B0;", ""), this.#r === e && this.#n(e);
|
|
861
|
+
}
|
|
862
|
+
static endProc(e) {
|
|
863
|
+
CmnLib.debugLog && console.log(`📖.endProc id:%c${e}%c=${String(this.#r === e)}`, "color:#3B0;", ""), this.#r === e && (ReadingState.rs.endProc(), this.#e());
|
|
864
|
+
}
|
|
865
|
+
static #r = "";
|
|
866
|
+
static get procID() {
|
|
867
|
+
return `RP_${this.scrItr.scriptFn}:${String(this.scrItr.idxToken)}_`;
|
|
868
|
+
}
|
|
869
|
+
static fire(e, s, c = !1) {
|
|
870
|
+
c && this.cancelAutoSkip(), ReadingState.rs.fire(e, s);
|
|
871
|
+
}
|
|
872
|
+
static get isSkipping() {
|
|
873
|
+
return ReadingState.rs.skip_enabled;
|
|
874
|
+
}
|
|
875
|
+
static get isWait() {
|
|
876
|
+
return ReadingState.rs.isWait;
|
|
877
|
+
}
|
|
878
|
+
static tagL_enabled = !0;
|
|
879
|
+
static skip_all = !1;
|
|
880
|
+
static skip_enabled = !1;
|
|
881
|
+
static auto_enabled = !1;
|
|
882
|
+
static cfg;
|
|
883
|
+
static hTag;
|
|
884
|
+
static main;
|
|
885
|
+
static val;
|
|
886
|
+
static scrItr;
|
|
887
|
+
static layMng;
|
|
888
|
+
static goTxt = () => {};
|
|
889
|
+
static get needGoTxt() {
|
|
890
|
+
return this.layMng.needGoTxt;
|
|
891
|
+
}
|
|
892
|
+
static evtMng;
|
|
893
|
+
static sndMng;
|
|
894
|
+
static procWheel4wle;
|
|
895
|
+
static fcs;
|
|
896
|
+
static init(e, s, c, l, u, d, f, p, m) {
|
|
897
|
+
this.cfg = e, this.hTag = s, this.main = c, this.val = l, this.scrItr = u, this.layMng = d, this.goTxt = () => d.goTxt(), this.evtMng = f, this.sndMng = p, this.procWheel4wle = m, l.defTmp("sn.tagL.enabled", () => this.tagL_enabled), l.defValTrg("tmp:sn.tagL.enabled", (e, s) => {
|
|
898
|
+
this.tagL_enabled = String(s) !== "false";
|
|
899
|
+
}), l.defTmp("sn.skip.all", () => this.skip_all), l.defValTrg("tmp:sn.skip.all", (e, s) => {
|
|
900
|
+
this.skip_all = String(s) !== "false";
|
|
901
|
+
}), l.defTmp("sn.skip.enabled", () => this.skip_enabled), l.defValTrg("tmp:sn.skip.enabled", (e, s) => {
|
|
902
|
+
this.skip_enabled = String(s) !== "false";
|
|
903
|
+
}), l.defTmp("sn.auto.enabled", () => this.auto_enabled), l.defValTrg("tmp:sn.auto.enabled", (e, s) => {
|
|
904
|
+
this.auto_enabled = String(s) !== "false";
|
|
905
|
+
}), s.l = (e) => ReadingState.rs.l(e), s.p = (e) => ReadingState.rs.p(e), s.s = (e) => ReadingState.rs.s(e), s.wait = (e) => ReadingState.rs.wait(e), s.waitclick = (e) => ReadingState.rs.s(e), s.page = (e) => ReadingState.rs.page(e), ReadingState.init(), new ReadingState_proc(), s.jump({ fn: "main" });
|
|
906
|
+
}
|
|
907
|
+
static setFcs(e) {
|
|
908
|
+
this.fcs = e;
|
|
909
|
+
}
|
|
910
|
+
static destroy() {
|
|
911
|
+
ReadingState.destroy();
|
|
912
|
+
}
|
|
913
|
+
static cancelAutoSkip() {
|
|
914
|
+
this.tagL_enabled || (this.tagL_enabled = !0, this.val.setVal_Nochk("tmp", "sn.tagL.enabled", !0)), this.skip_enabled && (this.skip_enabled = !1, this.val.setVal_Nochk("tmp", "sn.skip.enabled", !1)), this.auto_enabled && (this.auto_enabled = !1, this.val.setVal_Nochk("tmp", "sn.auto.enabled", !1));
|
|
915
|
+
}
|
|
786
916
|
};
|
|
787
|
-
|
|
917
|
+
export { Group as a, TW_NM_TRANS as i, ReadingState as n, Tween as o, CmnTween as r, Reading as t };
|
|
918
|
+
|
|
919
|
+
//# sourceMappingURL=Reading.js.map
|