@famibee/skynovel 1.27.0 → 1.27.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,44 @@
1
+ ## [1.27.4](https://github.com/famibee/SKYNovel/compare/v1.27.3...v1.27.4) (2022-01-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * ライブラリ更新 ([59c131a](https://github.com/famibee/SKYNovel/commit/59c131aa4fa58a964031037918567bdca9bc2f30))
7
+
8
+ - fix: ライブラリ更新
9
+
10
+
11
+ ## [1.27.3](https://github.com/famibee/SKYNovel/compare/v1.27.2...v1.27.3) (2022-01-15)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * ウインドウ位置が保存されない件 ([95f0786](https://github.com/famibee/SKYNovel/commit/95f0786e10a0ba4cc28c46f85e2ce5dd9a1359ad))
17
+
18
+ - fix: ウインドウ位置が保存されない件
19
+
20
+
21
+ ## [1.27.2](https://github.com/famibee/SKYNovel/compare/v1.27.1...v1.27.2) (2022-01-13)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * [r]を挟むと[span]色変更がキャンセルされる件 ([88224d3](https://github.com/famibee/SKYNovel/commit/88224d3f5c59a0d1501fc94b125fdad6e004a3e5))
27
+
28
+ - fix: [r]を挟むと[span]色変更がキャンセルされる件
29
+ - fix: [tcy]で[tcy t='Day 1']と半角を入れると表示が変になる件
30
+ - fix: (問題ないか確認しつつ)Promise.all を Promise.allSettled に
31
+
32
+ ## [1.27.1](https://github.com/famibee/SKYNovel/compare/v1.27.0...v1.27.1) (2022-01-12)
33
+
34
+
35
+ ### Bug Fixes
36
+
37
+ * [playse][stopse][fadeoutse]にてObjの扱いでエラーになる件 ([ed92d0b](https://github.com/famibee/SKYNovel/commit/ed92d0b82942f3fbaf0c9da338b76d21a29339d8))
38
+
39
+ - fix: [playse][stopse][fadeoutse]にてオブジェクトの扱いによりエラーになる場合に対応
40
+
41
+
1
42
  # [1.27.0](https://github.com/famibee/SKYNovel/compare/v1.26.0...v1.27.0) (2022-01-11)
2
43
 
3
44
 
@@ -5,7 +46,7 @@
5
46
 
6
47
  * [update_check]DLでアーキテクチャ(x32、x64など)別の対応が可能に ([b8e569f](https://github.com/famibee/SKYNovel/commit/b8e569febb418f69c58879cab036d370fa66a3f1))
7
48
 
8
- - feat: [update_check]のアプリダウンロードでアーキテクチャ(x32、x64など)別の対応が可能に
49
+ - feat: [update_check]のアプリダウンロードでアーキテクチャ(ia32、x64など)別の対応が可能に
9
50
  - 拡張機能により生成された _index.json ファイルを使用
10
51
  - 旧版の .yml ファイルもしばらく対応する
11
52
  - feat: アプリ実行時に OSや CPU アーキテクチャに対応するファイルが見つからない場合、同じOSのファイルをすべてダウンロードさせる
package/app.js CHANGED
@@ -43280,6 +43280,72 @@ function getCenter(points) {
43280
43280
  //# sourceMappingURL=matrix.esm.js.map
43281
43281
 
43282
43282
 
43283
+ /***/ }),
43284
+
43285
+ /***/ "./node_modules/@socket.io/base64-arraybuffer/dist/base64-arraybuffer.es5.js":
43286
+ /*!***********************************************************************************!*\
43287
+ !*** ./node_modules/@socket.io/base64-arraybuffer/dist/base64-arraybuffer.es5.js ***!
43288
+ \***********************************************************************************/
43289
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
43290
+
43291
+ "use strict";
43292
+ __webpack_require__.r(__webpack_exports__);
43293
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
43294
+ /* harmony export */ "decode": () => (/* binding */ decode),
43295
+ /* harmony export */ "encode": () => (/* binding */ encode)
43296
+ /* harmony export */ });
43297
+ /*
43298
+ * base64-arraybuffer 1.0.1 <https://github.com/niklasvh/base64-arraybuffer>
43299
+ * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
43300
+ * Released under MIT License
43301
+ */
43302
+ var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
43303
+ // Use a lookup table to find the index.
43304
+ var lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
43305
+ for (var i = 0; i < chars.length; i++) {
43306
+ lookup[chars.charCodeAt(i)] = i;
43307
+ }
43308
+ var encode = function (arraybuffer) {
43309
+ var bytes = new Uint8Array(arraybuffer), i, len = bytes.length, base64 = '';
43310
+ for (i = 0; i < len; i += 3) {
43311
+ base64 += chars[bytes[i] >> 2];
43312
+ base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];
43313
+ base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];
43314
+ base64 += chars[bytes[i + 2] & 63];
43315
+ }
43316
+ if (len % 3 === 2) {
43317
+ base64 = base64.substring(0, base64.length - 1) + '=';
43318
+ }
43319
+ else if (len % 3 === 1) {
43320
+ base64 = base64.substring(0, base64.length - 2) + '==';
43321
+ }
43322
+ return base64;
43323
+ };
43324
+ var decode = function (base64) {
43325
+ var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;
43326
+ if (base64[base64.length - 1] === '=') {
43327
+ bufferLength--;
43328
+ if (base64[base64.length - 2] === '=') {
43329
+ bufferLength--;
43330
+ }
43331
+ }
43332
+ var arraybuffer = new ArrayBuffer(bufferLength), bytes = new Uint8Array(arraybuffer);
43333
+ for (i = 0; i < len; i += 4) {
43334
+ encoded1 = lookup[base64.charCodeAt(i)];
43335
+ encoded2 = lookup[base64.charCodeAt(i + 1)];
43336
+ encoded3 = lookup[base64.charCodeAt(i + 2)];
43337
+ encoded4 = lookup[base64.charCodeAt(i + 3)];
43338
+ bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);
43339
+ bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);
43340
+ bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);
43341
+ }
43342
+ return arraybuffer;
43343
+ };
43344
+
43345
+
43346
+ //# sourceMappingURL=base64-arraybuffer.es5.js.map
43347
+
43348
+
43283
43349
  /***/ }),
43284
43350
 
43285
43351
  /***/ "./node_modules/@socket.io/component-emitter/index.js":
@@ -44392,72 +44458,6 @@ Backoff.prototype.setJitter = function(jitter){
44392
44458
 
44393
44459
 
44394
44460
 
44395
- /***/ }),
44396
-
44397
- /***/ "./node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js":
44398
- /*!************************************************************************!*\
44399
- !*** ./node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js ***!
44400
- \************************************************************************/
44401
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
44402
-
44403
- "use strict";
44404
- __webpack_require__.r(__webpack_exports__);
44405
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
44406
- /* harmony export */ "decode": () => (/* binding */ decode),
44407
- /* harmony export */ "encode": () => (/* binding */ encode)
44408
- /* harmony export */ });
44409
- /*
44410
- * base64-arraybuffer 1.0.1 <https://github.com/niklasvh/base64-arraybuffer>
44411
- * Copyright (c) 2021 Niklas von Hertzen <https://hertzen.com>
44412
- * Released under MIT License
44413
- */
44414
- var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
44415
- // Use a lookup table to find the index.
44416
- var lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
44417
- for (var i = 0; i < chars.length; i++) {
44418
- lookup[chars.charCodeAt(i)] = i;
44419
- }
44420
- var encode = function (arraybuffer) {
44421
- var bytes = new Uint8Array(arraybuffer), i, len = bytes.length, base64 = '';
44422
- for (i = 0; i < len; i += 3) {
44423
- base64 += chars[bytes[i] >> 2];
44424
- base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];
44425
- base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];
44426
- base64 += chars[bytes[i + 2] & 63];
44427
- }
44428
- if (len % 3 === 2) {
44429
- base64 = base64.substring(0, base64.length - 1) + '=';
44430
- }
44431
- else if (len % 3 === 1) {
44432
- base64 = base64.substring(0, base64.length - 2) + '==';
44433
- }
44434
- return base64;
44435
- };
44436
- var decode = function (base64) {
44437
- var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;
44438
- if (base64[base64.length - 1] === '=') {
44439
- bufferLength--;
44440
- if (base64[base64.length - 2] === '=') {
44441
- bufferLength--;
44442
- }
44443
- }
44444
- var arraybuffer = new ArrayBuffer(bufferLength), bytes = new Uint8Array(arraybuffer);
44445
- for (i = 0; i < len; i += 4) {
44446
- encoded1 = lookup[base64.charCodeAt(i)];
44447
- encoded2 = lookup[base64.charCodeAt(i + 1)];
44448
- encoded3 = lookup[base64.charCodeAt(i + 2)];
44449
- encoded4 = lookup[base64.charCodeAt(i + 3)];
44450
- bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);
44451
- bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);
44452
- bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);
44453
- }
44454
- return arraybuffer;
44455
- };
44456
-
44457
-
44458
- //# sourceMappingURL=base64-arraybuffer.es5.js.map
44459
-
44460
-
44461
44461
  /***/ }),
44462
44462
 
44463
44463
  /***/ "./node_modules/css-styled/dist/styled.esm.js":
@@ -70216,7 +70216,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70216
70216
  }));
70217
70217
  else
70218
70218
  __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this, hArg.layer).forEach(v => a.push(new Promise(re => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[v][pg].snapshot(rnd, () => re()))));
70219
- Promise.all(a).then(async () => {
70219
+ Promise.allSettled(a).then(async () => {
70220
70220
  const renTx = pixi_js_1.RenderTexture.create({ width: rnd.width, height: rnd.height, transform: true });
70221
70221
  rnd.render(__classPrivateFieldGet(this, _LayerMng_stage, "f"), { renderTexture: renTx });
70222
70222
  await this.sys.savePic(fn, rnd.plugins.extract.base64(pixi_js_1.Sprite.from(renTx)));
@@ -70630,7 +70630,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70630
70630
  hArg.wait = 0;
70631
70631
  else if ('wait' in hArg)
70632
70632
  (0, CmnLib_1.argChk_Num)(hArg, 'wait', NaN);
70633
- __classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, 'add|' + JSON.stringify(hArg), tl);
70634
70633
  const record = (0, CmnLib_1.argChk_Boolean)(hArg, 'record', true);
70635
70634
  const doRecLog = this.val.doRecLog();
70636
70635
  if (!record)
@@ -70638,7 +70637,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70638
70637
  tl.tagCh(txt.replaceAll('[r]', '\n'));
70639
70638
  if (!record)
70640
70639
  this.val.setVal_Nochk('save', 'sn.doRecLog', doRecLog);
70641
- __classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, `add_close|`, tl);
70642
70640
  return false;
70643
70641
  }, _LayerMng_$getTxtLayer = function _LayerMng_$getTxtLayer(hArg) {
70644
70642
  const layer = __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_argChk_layer).call(this, hArg, __classPrivateFieldGet(this, _LayerMng_curTxtlay, "f"));
@@ -70722,7 +70720,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
70722
70720
  }, _LayerMng_tcy = function _LayerMng_tcy(hArg) {
70723
70721
  if (!hArg.t)
70724
70722
  throw '[tcy] tは必須です';
70725
- hArg.text = '| |《tcy|' + hArg.t + '|' + (hArg.r ?? '') + '》';
70723
+ hArg.text = '| tcy|' + hArg.t + '|' + (hArg.r ?? '') + '》';
70726
70724
  return __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_ch).call(this, hArg);
70727
70725
  }, _LayerMng_dump_lay = function _LayerMng_dump_lay(hArg) {
70728
70726
  console.group('🥟 [dump_lay]');
@@ -70921,7 +70919,7 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
70921
70919
  }
70922
70920
  __classPrivateFieldSet(this, _Main_val, new Variable_1.Variable(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f")), "f");
70923
70921
  __classPrivateFieldSet(this, _Main_prpPrs, new PropParser_1.PropParser(__classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.escape ?? '\\'), "f");
70924
- await Promise.all(this.sys.init(__classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this));
70922
+ await Promise.allSettled(this.sys.init(__classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this));
70925
70923
  __classPrivateFieldGet(this, _Main_hTag, "f").title({ text: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.book.title || 'SKYNovel' });
70926
70924
  __classPrivateFieldSet(this, _Main_sndMng, new SoundMng_1.SoundMng(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this, this.sys), "f");
70927
70925
  __classPrivateFieldSet(this, _Main_scrItr, new ScriptIterator_1.ScriptIterator(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f"), this, __classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_alzTagArg, "f"), () => __classPrivateFieldGet(this, _Main_instances, "m", _Main_runAnalyze).call(this), __classPrivateFieldGet(this, _Main_prpPrs, "f"), __classPrivateFieldGet(this, _Main_sndMng, "f"), this.sys), "f");
@@ -72747,7 +72745,7 @@ class SoundMng {
72747
72745
  [hArg.clickse, hArg.enterse, hArg.leavese].forEach(fn => {
72748
72746
  if (!fn || sound_1.sound.exists(fn))
72749
72747
  return;
72750
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, { preload: true, autoPlay: false });
72748
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, '', fn, { preload: true, autoPlay: false });
72751
72749
  });
72752
72750
  }
72753
72751
  playLoopFromSaveObj() {
@@ -72858,7 +72856,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
72858
72856
  __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, { buf });
72859
72857
  const fn = hArg.fn;
72860
72858
  if (!fn)
72861
- throw '[playse] fnは必須です(buf=' + buf + ')';
72859
+ throw `[playse] fnは必須です buf:${buf}`;
72862
72860
  if ((0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true)
72863
72861
  && __classPrivateFieldGet(this, _SoundMng_evtMng, "f").isSkippingByKeyDown())
72864
72862
  return false;
@@ -72889,11 +72887,11 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
72889
72887
  const snd = sound_1.sound.find(fn);
72890
72888
  const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf] = {
72891
72889
  now_buf: buf,
72892
- snd: snd,
72893
- loop: loop,
72894
- start_ms: start_ms,
72895
- end_ms: end_ms,
72896
- ret_ms: ret_ms,
72890
+ snd,
72891
+ loop,
72892
+ start_ms,
72893
+ end_ms,
72894
+ ret_ms,
72897
72895
  resume: false,
72898
72896
  playing: () => true,
72899
72897
  onend: () => {
@@ -72908,7 +72906,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
72908
72906
  },
72909
72907
  };
72910
72908
  const o = {
72911
- loop: loop,
72909
+ loop,
72912
72910
  volume: vol,
72913
72911
  speed: (0, CmnLib_1.argChk_Num)(hArg, 'speed', 1),
72914
72912
  sprites: {},
@@ -72993,14 +72991,14 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
72993
72991
  }
72994
72992
  if (o2s.start >= d)
72995
72993
  throw `[playse] ret_ms:${ret_ms} >= 音声ファイル再生時間:${d} は異常値です`;
72996
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o2);
72994
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o2);
72997
72995
  };
72998
72996
  }
72999
72997
  __classPrivateFieldGet(this, _SoundMng_initVol, "f").call(this);
73000
72998
  if (snd) {
73001
72999
  snd.volume = vol;
73002
73000
  if (sp_nm)
73003
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o);
73001
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o);
73004
73002
  else if (snd.isPlayable) {
73005
73003
  const ab = snd.options.source;
73006
73004
  if (!(ab instanceof ArrayBuffer)
@@ -73020,13 +73018,15 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
73020
73018
  const old = o.loaded;
73021
73019
  o.loaded = (e, snd) => { old?.(e, snd); this.main.resume(); };
73022
73020
  }
73023
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o);
73021
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o);
73024
73022
  return join;
73025
- }, _SoundMng_playseSub = function _SoundMng_playseSub(fn, o) {
73023
+ }, _SoundMng_playseSub = function _SoundMng_playseSub(buf, fn, o) {
73026
73024
  const url = this.cfg.searchPath(fn, Config_1.Config.EXT_SOUND);
73027
73025
  if (url.slice(-4) !== '.bin') {
73028
73026
  o.url = url;
73029
73027
  const snd = sound_1.Sound.from(o);
73028
+ if (buf)
73029
+ __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf].snd = snd;
73030
73030
  if (!o.loop)
73031
73031
  sound_1.sound.add(fn, snd);
73032
73032
  return;
@@ -73040,6 +73040,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
73040
73040
  .load((_ldr, hRes) => {
73041
73041
  o.source = hRes[fn]?.data;
73042
73042
  const snd = sound_1.Sound.from(o);
73043
+ if (buf)
73044
+ __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf].snd = snd;
73043
73045
  if (!o.loop)
73044
73046
  sound_1.sound.add(fn, snd);
73045
73047
  });
@@ -73051,9 +73053,12 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
73051
73053
  return false;
73052
73054
  }, _SoundMng_stopbgm = function _SoundMng_stopbgm(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, hArg); }, _SoundMng_stopse = function _SoundMng_stopse(hArg) {
73053
73055
  const buf = hArg.buf ?? 'SE';
73054
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopfadese).call(this, hArg);
73055
73056
  __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_delLoopPlay).call(this, buf);
73056
- __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf]?.snd?.stop();
73057
+ const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
73058
+ if (oSb) {
73059
+ oSb.snd?.stop();
73060
+ oSb.onend();
73061
+ }
73057
73062
  return false;
73058
73063
  }, _SoundMng_wb = function _SoundMng_wb(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_wf).call(this, hArg); }, _SoundMng_wf = function _SoundMng_wf(hArg) {
73059
73064
  const buf = hArg.buf ?? 'SE';
@@ -73292,11 +73297,11 @@ class SysApp extends SysNode_1.SysNode {
73292
73297
  await to_app.setSimpleFullScreen(true, screen.width, screen.height);
73293
73298
  st.width = (CmnLib_1.CmnLib.stageW * ratio) + 'px';
73294
73299
  st.height = (CmnLib_1.CmnLib.stageH * ratio) + 'px';
73295
- if (ratioWidth < ratioHeight) {
73296
- st.marginTop = (h - CmnLib_1.CmnLib.stageH * ratio) / 2 + 'px';
73300
+ if (ratioWidth >= ratioHeight) {
73301
+ st.marginLeft = (w - CmnLib_1.CmnLib.stageW * ratio) / 2 + 'px';
73297
73302
  }
73298
73303
  else
73299
- st.marginLeft = (w - CmnLib_1.CmnLib.stageW * ratio) / 2 + 'px';
73304
+ st.marginTop = (h - CmnLib_1.CmnLib.stageH * ratio) / 2 + 'px';
73300
73305
  await to_app.win_setContentSize(screen.width, screen.height);
73301
73306
  const cr = this.appPixi.view.getBoundingClientRect();
73302
73307
  this.reso4frame = cr.width / CmnLib_1.CmnLib.stageW;
@@ -73380,7 +73385,7 @@ class SysApp extends SysNode_1.SysNode {
73380
73385
  const di = await to_app.showMessageBox(mbo);
73381
73386
  if (di.response > 0)
73382
73387
  return;
73383
- await Promise.all(aApp.map(ap => __classPrivateFieldGet(this, _SysApp_instances, "m", _SysApp_dl_app).call(this, ap.url, ap.urlApp, ap.fn)));
73388
+ await Promise.allSettled(aApp.map(ap => __classPrivateFieldGet(this, _SysApp_instances, "m", _SysApp_dl_app).call(this, ap.url, ap.urlApp, ap.fn)));
73384
73389
  }
73385
73390
  }
73386
73391
  else {
@@ -73448,7 +73453,9 @@ class SysApp extends SysNode_1.SysNode {
73448
73453
  });
73449
73454
  this.flush = () => to_app.flush(this.data);
73450
73455
  (async () => {
73451
- if (hTmp['const.sn.isFirstBoot'] = await to_app.Store_isEmpty()) {
73456
+ const first = hTmp['const.sn.isFirstBoot']
73457
+ = await to_app.Store_isEmpty();
73458
+ if (first) {
73452
73459
  this.data.sys = data.sys;
73453
73460
  this.data.mark = data.mark;
73454
73461
  this.data.kidoku = data.kidoku;
@@ -73460,6 +73467,14 @@ class SysApp extends SysNode_1.SysNode {
73460
73467
  this.data.mark = store.mark;
73461
73468
  this.data.kidoku = store.kidoku;
73462
73469
  }
73470
+ const x = this.data.sys['const.sn.nativeWindow.x'] ?? 0;
73471
+ const y = this.data.sys['const.sn.nativeWindow.y'] ?? 0;
73472
+ to_app.window(first, x, y, CmnLib_1.CmnLib.stageW, CmnLib_1.CmnLib.stageH);
73473
+ to_app.on('save_win_pos', (_e, x, y) => {
73474
+ this.val.setVal_Nochk('sys', 'const.sn.nativeWindow.x', x);
73475
+ this.val.setVal_Nochk('sys', 'const.sn.nativeWindow.y', y);
73476
+ this.flush();
73477
+ });
73463
73478
  comp(this.data);
73464
73479
  })();
73465
73480
  }
@@ -75420,7 +75435,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
75420
75435
  };
75421
75436
  function resolveAll() {
75422
75437
  return readAll()
75423
- .then(webFonts => Promise.all(webFonts.map((webFont) => webFont.resolve())))
75438
+ .then(webFonts => Promise.allSettled(webFonts.map((webFont) => webFont.resolve())))
75424
75439
  .then(cssStrings => cssStrings.join('\n'));
75425
75440
  }
75426
75441
  function readAll() {
@@ -79160,7 +79175,7 @@ exports.ERROR_PACKET = ERROR_PACKET;
79160
79175
 
79161
79176
  Object.defineProperty(exports, "__esModule", ({ value: true }));
79162
79177
  const commons_js_1 = __webpack_require__(/*! ./commons.js */ "./node_modules/engine.io-parser/build/cjs/commons.js");
79163
- const base64_arraybuffer_1 = __webpack_require__(/*! base64-arraybuffer */ "./node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js");
79178
+ const base64_arraybuffer_1 = __webpack_require__(/*! @socket.io/base64-arraybuffer */ "./node_modules/@socket.io/base64-arraybuffer/dist/base64-arraybuffer.es5.js");
79164
79179
  const withNativeArrayBuffer = typeof ArrayBuffer === "function";
79165
79180
  const decodePacket = (encodedPacket, binaryType) => {
79166
79181
  if (typeof encodedPacket !== "string") {
package/appMain.js CHANGED
@@ -383,7 +383,7 @@ Object.defineProperty(exports, "CodeGen", ({ enumerable: true, get: function ()
383
383
  "use strict";
384
384
 
385
385
  Object.defineProperty(exports, "__esModule", ({ value: true }));
386
- exports.regexpCode = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
386
+ exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
387
387
  class _CodeOrName {
388
388
  }
389
389
  exports._CodeOrName = _CodeOrName;
@@ -523,6 +523,14 @@ function getProperty(key) {
523
523
  return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`;
524
524
  }
525
525
  exports.getProperty = getProperty;
526
+ //Does best effort to format the name properly
527
+ function getEsmExportName(key) {
528
+ if (typeof key == "string" && exports.IDENTIFIER.test(key)) {
529
+ return new _Code(`${key}`);
530
+ }
531
+ throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);
532
+ }
533
+ exports.getEsmExportName = getEsmExportName;
526
534
  function regexpCode(rx) {
527
535
  return new _Code(rx.toString());
528
536
  }
@@ -5351,6 +5359,8 @@ exports["default"] = def;
5351
5359
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5352
5360
  const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ "./node_modules/ajv/dist/compile/codegen/index.js");
5353
5361
  const types_1 = __webpack_require__(/*! ../discriminator/types */ "./node_modules/ajv/dist/vocabularies/discriminator/types.js");
5362
+ const compile_1 = __webpack_require__(/*! ../../compile */ "./node_modules/ajv/dist/compile/index.js");
5363
+ const util_1 = __webpack_require__(/*! ../../compile/util */ "./node_modules/ajv/dist/compile/util.js");
5354
5364
  const error = {
5355
5365
  message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag
5356
5366
  ? `tag "${tagName}" must be string`
@@ -5402,10 +5412,15 @@ const def = {
5402
5412
  const topRequired = hasRequired(parentSchema);
5403
5413
  let tagRequired = true;
5404
5414
  for (let i = 0; i < oneOf.length; i++) {
5405
- const sch = oneOf[i];
5406
- const propSch = (_a = sch.properties) === null || _a === void 0 ? void 0 : _a[tagName];
5415
+ let sch = oneOf[i];
5416
+ if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {
5417
+ sch = compile_1.resolveRef.call(it.self, it.schemaEnv, it.baseId, sch === null || sch === void 0 ? void 0 : sch.$ref);
5418
+ if (sch instanceof compile_1.SchemaEnv)
5419
+ sch = sch.schema;
5420
+ }
5421
+ const propSch = (_a = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a === void 0 ? void 0 : _a[tagName];
5407
5422
  if (typeof propSch != "object") {
5408
- throw new Error(`discriminator: oneOf schemas must have "properties/${tagName}"`);
5423
+ throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"`);
5409
5424
  }
5410
5425
  tagRequired = tagRequired && (topRequired || hasRequired(sch));
5411
5426
  addMappings(propSch, i);
@@ -23612,11 +23627,11 @@ _a = appMain, _appMain_dsp = new WeakMap(), _appMain_screenRX = new WeakMap(), _
23612
23627
  setTimeout(() => __classPrivateFieldGet(this, _appMain_instances, "m", _appMain_delayWinPos).call(this), 500);
23613
23628
  return;
23614
23629
  }
23630
+ __classPrivateFieldSet(this, _appMain_isMovingWin, false, "f");
23615
23631
  __classPrivateFieldGet(this, _appMain_instances, "m", _appMain_window).call(this, false, rct.x, rct.y, rct.width, rct.height);
23616
23632
  }, _appMain_window = function _appMain_window(centering, x, y, w, h) {
23617
23633
  if (__classPrivateFieldGet(this, _appMain_isMovingWin, "f"))
23618
23634
  return;
23619
- __classPrivateFieldSet(this, _appMain_isMovingWin, true, "f");
23620
23635
  if (centering) {
23621
23636
  const s = this.bw.getPosition();
23622
23637
  x = (__classPrivateFieldGet(this, _appMain_screenRX, "f") - s[0]) * 0.5;
@@ -23636,7 +23651,7 @@ _a = appMain, _appMain_dsp = new WeakMap(), _appMain_screenRX = new WeakMap(), _
23636
23651
  this.bw.setContentSize(w, h);
23637
23652
  const hz = this.bw.getContentSize()[1];
23638
23653
  this.bw.setContentSize(w, h * 2 - hz);
23639
- __classPrivateFieldSet(this, _appMain_isMovingWin, false, "f");
23654
+ this.bw.webContents.send('save_win_pos', x, y);
23640
23655
  };
23641
23656
  _appMain_ins = { value: void 0 };
23642
23657
  _appMain_menu_height = { value: 0 };
@@ -32,6 +32,7 @@ export declare type HPROC = {
32
32
  Store_get: () => Promise<any>;
33
33
  tarFs_pack: (path: string) => Promise<Pack>;
34
34
  tarFs_extract: (path: string) => Promise<Extract>;
35
+ on: (channel: string, callback: Function) => void;
35
36
  };
36
37
  export declare type HINFO = {
37
38
  getAppPath: string;
@@ -1 +1 @@
1
- {"version":3,"file":"preload.d.ts","sourceRoot":"","sources":["../src/preload.ts"],"names":[],"mappings":";AAQA,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AACjD,OAAO,EAAC,IAAI,EAAE,OAAO,EAAC,MAAM,QAAQ,CAAC;AAErC,oBAAY,KAAK,GAAG;IACnB,OAAO,EAAI,MAAK,OAAO,CAAC,KAAK,CAAC,CAAC;IAE/B,UAAU,EAAG,CAAC,IAAI,EAAE,MAAM,KAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/C,QAAQ,EAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAI,IAAI,CAAC;IACvD,UAAU,EAAG,CAAC,IAAI,EAAE,MAAM,KAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,aAAa,EAAG,CAAC,IAAI,EAAE,MAAM,KAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,cAAc,EAAG,CAAC,IAAI,EAAE,MAAM,KAAI,OAA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AAI,CAAC;IACzB,sBAAsB,EAAG,CAAC,GAAG,EAAE,MAAK,IAAI,KAAI,IAAI,CAAC;IAEjD,KAAK,EAAG,CAAC,CAAC,EAAE,MAAM,KAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,KAAK,EAAG,CAAC,CAAC,EAAE,MAAM,KAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,aAAa,EAAG,MAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACtC,SAAS,EAAG,MAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAE9B,UAAU,EAAI,CAAC,IAAI,EAAE,MAAM,KAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,aAAa,EAAG,CAAC,IAAI,EAAE,MAAM,KAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAGlD,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF,oBAAY,KAAK,GAAG;IACnB,UAAU,EAAG,MAAM,CAAC;IACpB,UAAU,EAAG,OAAO,CAAC;IACrB,SAAS,EAAG,MAAM,CAAC;IACnB,QAAQ,EAAG,MAAM,CAAC;IAClB,UAAU,EAAG,MAAM,CAAC;IACpB,GAAG,EAAK;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC;IAC9B,QAAQ,EAAG,MAAM,CAAC;IAClB,IAAI,EAAI,MAAM,CAAC;IACf,iBAAiB,EAAG,MAAM,CAAC;IAC3B,iBAAiB,EAAG,MAAM,CAAC;CAC3B,CAAA;AAID,eAAO,MAAM,KAAK,EAAG,KAgEpB,CAAC"}
@@ -44,6 +44,13 @@ exports.hProc = {
44
44
  Store_get: () => ipcRenderer.invoke('Store_get').catch(fncE),
45
45
  tarFs_pack: path => ipcRenderer.invoke('tarFs_pack', path).catch(fncE),
46
46
  tarFs_extract: path => ipcRenderer.invoke('tarFs_extract', path).catch(fncE),
47
+ on: (ch, cb) => {
48
+ switch (ch) {
49
+ case 'save_win_pos':
50
+ ipcRenderer.on(ch, (e, x, y) => cb(e, x, y));
51
+ break;
52
+ }
53
+ },
47
54
  };
48
55
  contextBridge.exposeInMainWorld('to_app', exports.hProc);
49
56
 
@@ -1 +1 @@
1
- {"version":3,"file":"LayerMng.d.ts","sourceRoot":"","sources":["../../src/sn/LayerMng.ts"],"names":[],"mappings":"AAOA,OAAO,EAA2B,OAAO,EAAsF,MAAM,UAAU,CAAC;AAEhJ,OAAO,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAQ,OAAO,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3F,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAG9B,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAGpC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAGlC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAGxC,OAAO,EAAY,WAAW,EAAsF,MAAM,SAAS,CAAC;AAEpI,MAAM,WAAW,eAAe;IAAG,CAAC,GAAG,EAAG,UAAU,GAAG,IAAI,CAAC;CAAE;AAE9D,MAAM,WAAW,KAAK;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAAA;CAAC;AAE9C,qBAAa,QAAS,YAAW,OAAO;;IAO3B,OAAO,CAAC,QAAQ,CAAC,GAAG;IAAU,OAAO,CAAC,QAAQ,CAAC,IAAI;IAAS,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAe,OAAO,CAAC,QAAQ,CAAC,GAAG;IAAa,OAAO,CA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S9B,mBAAmB,IAAI,IAAI;CAwC3B"}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { SysNode } from './SysNode';
3
2
  import { ITag, IHTag, IVariable, IData4Vari, IMain, HPlugin, HSysBaseArg } from './CmnInterface';
4
3
  import { Application } from 'pixi.js';
@@ -22,8 +21,8 @@ export declare class SysApp extends SysNode {
22
21
  copyBMFolder: (from: number, to: number) => Promise<void>;
23
22
  eraseBMFolder: (place: number) => Promise<void>;
24
23
  protected readonly close: () => boolean;
25
- protected readonly _export: ITag;
26
- protected readonly _import: ITag;
24
+ protected readonly _export: () => boolean;
25
+ protected readonly _import: () => boolean;
27
26
  protected readonly navigate_to: ITag;
28
27
  protected titleSub(title: string): void;
29
28
  protected readonly tgl_full_scr: ITag;
@@ -1 +1 @@
1
- {"version":3,"file":"SysApp.d.ts","sourceRoot":"","sources":["../../src/sn/SysApp.ts"],"names":[],"mappings":";AAOA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAGlC,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAI/F,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAOpC,qBAAa,MAAO,SAAQ,OAAO;;gBACtB,IAAI,KAAK,EAAE,GAAG;;;;KAAwC;cAKzC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW;IA6B/D,UAAmB,YAAY,oCAAuB;IACtD,UAAmB,aAAa,iGAAwB;IAC/C,UAAU,gFAAsB;IAChC,cAAc,kCAAyB;IAEhD,UAAoB,cAAc,SAAO;IACzC,UAAmB,eAAe,SAAM;IAE/B,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,UAAU,KAAI,IAAI;cAqDpD,GAAG;IAWnB,IAAI,CAAC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U,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,UAAU,KAAI,IAAI;cAsEpD,GAAG;IAWnB,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE;IAcrF,YAAY,SAAgB,MAAM,MAAM,MAAM,mBAMrD;IACO,aAAa,UAAiB,MAAM,mBAE3C;IAGF,mBAA4B,KAAK,gBAA2C;IAG5E,mBAA4B,OAAO,gBAclC;IAGD,mBAA4B,OAAO,gBAwClC;IAGD,mBAA4B,WAAW,EAAE,IAAI,CAO5C;cAEkB,QAAQ,CAAC,KAAK,EAAE,MAAM;IAEzC,mBAA4B,YAAY,EAAE,IAAI,CAe7C;IACD,SAAS,CAAC,QAAQ,CAAC,gBAAgB,sBAkClC;IAED,mBAA4B,YAAY,EAAE,IAAI,CAqG7C;IAoBD,mBAA4B,MAAM,EAAE,IAAI,CASvC;IAED,SAAkB,cAAc,OAAQ,MAAM,aAG7C;CAED"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@famibee/skynovel",
3
- "version": "1.27.0",
3
+ "version": "1.27.4",
4
4
  "description": "webgl novelgame framework",
5
5
  "main": "core/web.js",
6
6
  "types": "core/lib/index.d.ts",
@@ -29,24 +29,24 @@
29
29
  "@types/electron-json-storage": "^4.5.0",
30
30
  "@types/fs-extra": "^9.0.13",
31
31
  "@types/mocha": "^9.0.0",
32
- "@types/node": "^17.0.8",
32
+ "@types/node": "^17.0.10",
33
33
  "@types/parsimmon": "^1.10.6",
34
34
  "@types/platform": "^1.3.4",
35
35
  "@types/power-assert": "^1.5.8",
36
36
  "@types/store": "^2.0.2",
37
37
  "@types/tar-fs": "^2.0.1",
38
38
  "@types/xml2js": "^0.4.9",
39
- "electron": "^16.0.6",
40
- "mocha": "^9.1.3",
39
+ "electron": "^16.0.7",
40
+ "mocha": "^9.1.4",
41
41
  "power-assert": "^1.6.1",
42
42
  "rimraf": "^3.0.2",
43
- "semantic-release": "^18.0.1",
43
+ "semantic-release": "^19.0.2",
44
44
  "ts-loader": "^9.2.6",
45
45
  "ts-node": "^10.4.0",
46
46
  "typescript": "^4.5.4",
47
- "webpack": "^5.65.0",
47
+ "webpack": "^5.66.0",
48
48
  "webpack-cli": "^4.9.1",
49
- "webpack-dev-server": "^4.7.2"
49
+ "webpack-dev-server": "^4.7.3"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "npm run wp && npm run test",
package/web.js CHANGED
@@ -43280,6 +43280,72 @@ function getCenter(points) {
43280
43280
  //# sourceMappingURL=matrix.esm.js.map
43281
43281
 
43282
43282
 
43283
+ /***/ }),
43284
+
43285
+ /***/ "./node_modules/@socket.io/base64-arraybuffer/dist/base64-arraybuffer.es5.js":
43286
+ /*!***********************************************************************************!*\
43287
+ !*** ./node_modules/@socket.io/base64-arraybuffer/dist/base64-arraybuffer.es5.js ***!
43288
+ \***********************************************************************************/
43289
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
43290
+
43291
+ "use strict";
43292
+ __webpack_require__.r(__webpack_exports__);
43293
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
43294
+ /* harmony export */ "decode": () => (/* binding */ decode),
43295
+ /* harmony export */ "encode": () => (/* binding */ encode)
43296
+ /* harmony export */ });
43297
+ /*
43298
+ * base64-arraybuffer 1.0.1 <https://github.com/niklasvh/base64-arraybuffer>
43299
+ * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
43300
+ * Released under MIT License
43301
+ */
43302
+ var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
43303
+ // Use a lookup table to find the index.
43304
+ var lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
43305
+ for (var i = 0; i < chars.length; i++) {
43306
+ lookup[chars.charCodeAt(i)] = i;
43307
+ }
43308
+ var encode = function (arraybuffer) {
43309
+ var bytes = new Uint8Array(arraybuffer), i, len = bytes.length, base64 = '';
43310
+ for (i = 0; i < len; i += 3) {
43311
+ base64 += chars[bytes[i] >> 2];
43312
+ base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];
43313
+ base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];
43314
+ base64 += chars[bytes[i + 2] & 63];
43315
+ }
43316
+ if (len % 3 === 2) {
43317
+ base64 = base64.substring(0, base64.length - 1) + '=';
43318
+ }
43319
+ else if (len % 3 === 1) {
43320
+ base64 = base64.substring(0, base64.length - 2) + '==';
43321
+ }
43322
+ return base64;
43323
+ };
43324
+ var decode = function (base64) {
43325
+ var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;
43326
+ if (base64[base64.length - 1] === '=') {
43327
+ bufferLength--;
43328
+ if (base64[base64.length - 2] === '=') {
43329
+ bufferLength--;
43330
+ }
43331
+ }
43332
+ var arraybuffer = new ArrayBuffer(bufferLength), bytes = new Uint8Array(arraybuffer);
43333
+ for (i = 0; i < len; i += 4) {
43334
+ encoded1 = lookup[base64.charCodeAt(i)];
43335
+ encoded2 = lookup[base64.charCodeAt(i + 1)];
43336
+ encoded3 = lookup[base64.charCodeAt(i + 2)];
43337
+ encoded4 = lookup[base64.charCodeAt(i + 3)];
43338
+ bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);
43339
+ bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);
43340
+ bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);
43341
+ }
43342
+ return arraybuffer;
43343
+ };
43344
+
43345
+
43346
+ //# sourceMappingURL=base64-arraybuffer.es5.js.map
43347
+
43348
+
43283
43349
  /***/ }),
43284
43350
 
43285
43351
  /***/ "./node_modules/@socket.io/component-emitter/index.js":
@@ -44392,72 +44458,6 @@ Backoff.prototype.setJitter = function(jitter){
44392
44458
 
44393
44459
 
44394
44460
 
44395
- /***/ }),
44396
-
44397
- /***/ "./node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js":
44398
- /*!************************************************************************!*\
44399
- !*** ./node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js ***!
44400
- \************************************************************************/
44401
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
44402
-
44403
- "use strict";
44404
- __webpack_require__.r(__webpack_exports__);
44405
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
44406
- /* harmony export */ "decode": () => (/* binding */ decode),
44407
- /* harmony export */ "encode": () => (/* binding */ encode)
44408
- /* harmony export */ });
44409
- /*
44410
- * base64-arraybuffer 1.0.1 <https://github.com/niklasvh/base64-arraybuffer>
44411
- * Copyright (c) 2021 Niklas von Hertzen <https://hertzen.com>
44412
- * Released under MIT License
44413
- */
44414
- var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
44415
- // Use a lookup table to find the index.
44416
- var lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
44417
- for (var i = 0; i < chars.length; i++) {
44418
- lookup[chars.charCodeAt(i)] = i;
44419
- }
44420
- var encode = function (arraybuffer) {
44421
- var bytes = new Uint8Array(arraybuffer), i, len = bytes.length, base64 = '';
44422
- for (i = 0; i < len; i += 3) {
44423
- base64 += chars[bytes[i] >> 2];
44424
- base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];
44425
- base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];
44426
- base64 += chars[bytes[i + 2] & 63];
44427
- }
44428
- if (len % 3 === 2) {
44429
- base64 = base64.substring(0, base64.length - 1) + '=';
44430
- }
44431
- else if (len % 3 === 1) {
44432
- base64 = base64.substring(0, base64.length - 2) + '==';
44433
- }
44434
- return base64;
44435
- };
44436
- var decode = function (base64) {
44437
- var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;
44438
- if (base64[base64.length - 1] === '=') {
44439
- bufferLength--;
44440
- if (base64[base64.length - 2] === '=') {
44441
- bufferLength--;
44442
- }
44443
- }
44444
- var arraybuffer = new ArrayBuffer(bufferLength), bytes = new Uint8Array(arraybuffer);
44445
- for (i = 0; i < len; i += 4) {
44446
- encoded1 = lookup[base64.charCodeAt(i)];
44447
- encoded2 = lookup[base64.charCodeAt(i + 1)];
44448
- encoded3 = lookup[base64.charCodeAt(i + 2)];
44449
- encoded4 = lookup[base64.charCodeAt(i + 3)];
44450
- bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);
44451
- bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);
44452
- bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);
44453
- }
44454
- return arraybuffer;
44455
- };
44456
-
44457
-
44458
- //# sourceMappingURL=base64-arraybuffer.es5.js.map
44459
-
44460
-
44461
44461
  /***/ }),
44462
44462
 
44463
44463
  /***/ "./node_modules/css-styled/dist/styled.esm.js":
@@ -71564,7 +71564,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71564
71564
  }));
71565
71565
  else
71566
71566
  __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_getLayers).call(this, hArg.layer).forEach(v => a.push(new Promise(re => __classPrivateFieldGet(this, _LayerMng_hPages, "f")[v][pg].snapshot(rnd, () => re()))));
71567
- Promise.all(a).then(async () => {
71567
+ Promise.allSettled(a).then(async () => {
71568
71568
  const renTx = pixi_js_1.RenderTexture.create({ width: rnd.width, height: rnd.height, transform: true });
71569
71569
  rnd.render(__classPrivateFieldGet(this, _LayerMng_stage, "f"), { renderTexture: renTx });
71570
71570
  await this.sys.savePic(fn, rnd.plugins.extract.base64(pixi_js_1.Sprite.from(renTx)));
@@ -71978,7 +71978,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71978
71978
  hArg.wait = 0;
71979
71979
  else if ('wait' in hArg)
71980
71980
  (0, CmnLib_1.argChk_Num)(hArg, 'wait', NaN);
71981
- __classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, 'add|' + JSON.stringify(hArg), tl);
71982
71981
  const record = (0, CmnLib_1.argChk_Boolean)(hArg, 'record', true);
71983
71982
  const doRecLog = this.val.doRecLog();
71984
71983
  if (!record)
@@ -71986,7 +71985,6 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
71986
71985
  tl.tagCh(txt.replaceAll('[r]', '\n'));
71987
71986
  if (!record)
71988
71987
  this.val.setVal_Nochk('save', 'sn.doRecLog', doRecLog);
71989
- __classPrivateFieldGet(this, _LayerMng_cmdTxt, "f").call(this, `add_close|`, tl);
71990
71988
  return false;
71991
71989
  }, _LayerMng_$getTxtLayer = function _LayerMng_$getTxtLayer(hArg) {
71992
71990
  const layer = __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_argChk_layer).call(this, hArg, __classPrivateFieldGet(this, _LayerMng_curTxtlay, "f"));
@@ -72070,7 +72068,7 @@ _a = LayerMng, _LayerMng_stage = new WeakMap(), _LayerMng_fore = new WeakMap(),
72070
72068
  }, _LayerMng_tcy = function _LayerMng_tcy(hArg) {
72071
72069
  if (!hArg.t)
72072
72070
  throw '[tcy] tは必須です';
72073
- hArg.text = '| |《tcy|' + hArg.t + '|' + (hArg.r ?? '') + '》';
72071
+ hArg.text = '| tcy|' + hArg.t + '|' + (hArg.r ?? '') + '》';
72074
72072
  return __classPrivateFieldGet(this, _LayerMng_instances, "m", _LayerMng_ch).call(this, hArg);
72075
72073
  }, _LayerMng_dump_lay = function _LayerMng_dump_lay(hArg) {
72076
72074
  console.group('🥟 [dump_lay]');
@@ -72269,7 +72267,7 @@ _Main_cfg = new WeakMap(), _Main_appPixi = new WeakMap(), _Main_hTag = new WeakM
72269
72267
  }
72270
72268
  __classPrivateFieldSet(this, _Main_val, new Variable_1.Variable(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f")), "f");
72271
72269
  __classPrivateFieldSet(this, _Main_prpPrs, new PropParser_1.PropParser(__classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.init.escape ?? '\\'), "f");
72272
- await Promise.all(this.sys.init(__classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this));
72270
+ await Promise.allSettled(this.sys.init(__classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_appPixi, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this));
72273
72271
  __classPrivateFieldGet(this, _Main_hTag, "f").title({ text: __classPrivateFieldGet(this, _Main_cfg, "f").oCfg.book.title || 'SKYNovel' });
72274
72272
  __classPrivateFieldSet(this, _Main_sndMng, new SoundMng_1.SoundMng(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f"), __classPrivateFieldGet(this, _Main_val, "f"), this, this.sys), "f");
72275
72273
  __classPrivateFieldSet(this, _Main_scrItr, new ScriptIterator_1.ScriptIterator(__classPrivateFieldGet(this, _Main_cfg, "f"), __classPrivateFieldGet(this, _Main_hTag, "f"), this, __classPrivateFieldGet(this, _Main_val, "f"), __classPrivateFieldGet(this, _Main_alzTagArg, "f"), () => __classPrivateFieldGet(this, _Main_instances, "m", _Main_runAnalyze).call(this), __classPrivateFieldGet(this, _Main_prpPrs, "f"), __classPrivateFieldGet(this, _Main_sndMng, "f"), this.sys), "f");
@@ -74095,7 +74093,7 @@ class SoundMng {
74095
74093
  [hArg.clickse, hArg.enterse, hArg.leavese].forEach(fn => {
74096
74094
  if (!fn || sound_1.sound.exists(fn))
74097
74095
  return;
74098
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, { preload: true, autoPlay: false });
74096
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, '', fn, { preload: true, autoPlay: false });
74099
74097
  });
74100
74098
  }
74101
74099
  playLoopFromSaveObj() {
@@ -74206,7 +74204,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74206
74204
  __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, { buf });
74207
74205
  const fn = hArg.fn;
74208
74206
  if (!fn)
74209
- throw '[playse] fnは必須です(buf=' + buf + ')';
74207
+ throw `[playse] fnは必須です buf:${buf}`;
74210
74208
  if ((0, CmnLib_1.argChk_Boolean)(hArg, 'canskip', true)
74211
74209
  && __classPrivateFieldGet(this, _SoundMng_evtMng, "f").isSkippingByKeyDown())
74212
74210
  return false;
@@ -74237,11 +74235,11 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74237
74235
  const snd = sound_1.sound.find(fn);
74238
74236
  const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf] = {
74239
74237
  now_buf: buf,
74240
- snd: snd,
74241
- loop: loop,
74242
- start_ms: start_ms,
74243
- end_ms: end_ms,
74244
- ret_ms: ret_ms,
74238
+ snd,
74239
+ loop,
74240
+ start_ms,
74241
+ end_ms,
74242
+ ret_ms,
74245
74243
  resume: false,
74246
74244
  playing: () => true,
74247
74245
  onend: () => {
@@ -74256,7 +74254,7 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74256
74254
  },
74257
74255
  };
74258
74256
  const o = {
74259
- loop: loop,
74257
+ loop,
74260
74258
  volume: vol,
74261
74259
  speed: (0, CmnLib_1.argChk_Num)(hArg, 'speed', 1),
74262
74260
  sprites: {},
@@ -74341,14 +74339,14 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74341
74339
  }
74342
74340
  if (o2s.start >= d)
74343
74341
  throw `[playse] ret_ms:${ret_ms} >= 音声ファイル再生時間:${d} は異常値です`;
74344
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o2);
74342
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o2);
74345
74343
  };
74346
74344
  }
74347
74345
  __classPrivateFieldGet(this, _SoundMng_initVol, "f").call(this);
74348
74346
  if (snd) {
74349
74347
  snd.volume = vol;
74350
74348
  if (sp_nm)
74351
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o);
74349
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o);
74352
74350
  else if (snd.isPlayable) {
74353
74351
  const ab = snd.options.source;
74354
74352
  if (!(ab instanceof ArrayBuffer)
@@ -74368,13 +74366,15 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74368
74366
  const old = o.loaded;
74369
74367
  o.loaded = (e, snd) => { old?.(e, snd); this.main.resume(); };
74370
74368
  }
74371
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, fn, o);
74369
+ __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_playseSub).call(this, buf, fn, o);
74372
74370
  return join;
74373
- }, _SoundMng_playseSub = function _SoundMng_playseSub(fn, o) {
74371
+ }, _SoundMng_playseSub = function _SoundMng_playseSub(buf, fn, o) {
74374
74372
  const url = this.cfg.searchPath(fn, Config_1.Config.EXT_SOUND);
74375
74373
  if (url.slice(-4) !== '.bin') {
74376
74374
  o.url = url;
74377
74375
  const snd = sound_1.Sound.from(o);
74376
+ if (buf)
74377
+ __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf].snd = snd;
74378
74378
  if (!o.loop)
74379
74379
  sound_1.sound.add(fn, snd);
74380
74380
  return;
@@ -74388,6 +74388,8 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74388
74388
  .load((_ldr, hRes) => {
74389
74389
  o.source = hRes[fn]?.data;
74390
74390
  const snd = sound_1.Sound.from(o);
74391
+ if (buf)
74392
+ __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf].snd = snd;
74391
74393
  if (!o.loop)
74392
74394
  sound_1.sound.add(fn, snd);
74393
74395
  });
@@ -74399,9 +74401,12 @@ _a = SoundMng, _SoundMng_hSndBuf = new WeakMap(), _SoundMng_hLP = new WeakMap(),
74399
74401
  return false;
74400
74402
  }, _SoundMng_stopbgm = function _SoundMng_stopbgm(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopse).call(this, hArg); }, _SoundMng_stopse = function _SoundMng_stopse(hArg) {
74401
74403
  const buf = hArg.buf ?? 'SE';
74402
- __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_stopfadese).call(this, hArg);
74403
74404
  __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_delLoopPlay).call(this, buf);
74404
- __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf]?.snd?.stop();
74405
+ const oSb = __classPrivateFieldGet(this, _SoundMng_hSndBuf, "f")[buf];
74406
+ if (oSb) {
74407
+ oSb.snd?.stop();
74408
+ oSb.onend();
74409
+ }
74405
74410
  return false;
74406
74411
  }, _SoundMng_wb = function _SoundMng_wb(hArg) { hArg.buf = 'BGM'; return __classPrivateFieldGet(this, _SoundMng_instances, "m", _SoundMng_wf).call(this, hArg); }, _SoundMng_wf = function _SoundMng_wf(hArg) {
74407
74412
  const buf = hArg.buf ?? 'SE';
@@ -74997,7 +75002,7 @@ class SysWeb extends SysBase_1.SysBase {
74997
75002
  }
74998
75003
  }
74999
75004
  initVal(data, hTmp, comp) {
75000
- const hn = document.location.hostname;
75005
+ const hn = encodeURIComponent(document.location.hostname);
75001
75006
  hTmp['const.sn.isDebugger'] = (hn === 'localhost' || hn === '127.0.0.1');
75002
75007
  this.val.defTmp('const.sn.displayState', () => __classPrivateFieldGet(this, _SysWeb_isFullScr, "f"));
75003
75008
  const ns = this.cfg.getNs();
@@ -76641,7 +76646,7 @@ _a = TxtStage, _TxtStage_htmTxt = new WeakMap(), _TxtStage_cntTxt = new WeakMap(
76641
76646
  };
76642
76647
  function resolveAll() {
76643
76648
  return readAll()
76644
- .then(webFonts => Promise.all(webFonts.map((webFont) => webFont.resolve())))
76649
+ .then(webFonts => Promise.allSettled(webFonts.map((webFont) => webFont.resolve())))
76645
76650
  .then(cssStrings => cssStrings.join('\n'));
76646
76651
  }
76647
76652
  function readAll() {
@@ -80381,7 +80386,7 @@ exports.ERROR_PACKET = ERROR_PACKET;
80381
80386
 
80382
80387
  Object.defineProperty(exports, "__esModule", ({ value: true }));
80383
80388
  const commons_js_1 = __webpack_require__(/*! ./commons.js */ "./node_modules/engine.io-parser/build/cjs/commons.js");
80384
- const base64_arraybuffer_1 = __webpack_require__(/*! base64-arraybuffer */ "./node_modules/base64-arraybuffer/dist/base64-arraybuffer.es5.js");
80389
+ const base64_arraybuffer_1 = __webpack_require__(/*! @socket.io/base64-arraybuffer */ "./node_modules/@socket.io/base64-arraybuffer/dist/base64-arraybuffer.es5.js");
80385
80390
  const withNativeArrayBuffer = typeof ArrayBuffer === "function";
80386
80391
  const decodePacket = (encodedPacket, binaryType) => {
80387
80392
  if (typeof encodedPacket !== "string") {