@famibee/skynovel 1.29.2 → 1.29.5

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/dist/app.js CHANGED
@@ -3060,9 +3060,7 @@ const _SysBase = class {
3060
3060
  addLayCls: () => {
3061
3061
  },
3062
3062
  searchPath: () => "",
3063
- getVal: () => {
3064
- return {};
3065
- },
3063
+ getVal: () => ({}),
3066
3064
  resume: () => {
3067
3065
  },
3068
3066
  render: () => {
@@ -3412,7 +3410,6 @@ const _Config = class {
3412
3410
  this.sys = sys;
3413
3411
  this.oCfg = {
3414
3412
  save_ns: "",
3415
- coder: { len: 864 },
3416
3413
  window: {
3417
3414
  width: 300,
3418
3415
  height: 300
@@ -3428,7 +3425,7 @@ const _Config = class {
3428
3425
  },
3429
3426
  log: { max_len: 1024 },
3430
3427
  init: {
3431
- bg_color: 0,
3428
+ bg_color: "#000000",
3432
3429
  tagch_msecwait: 10,
3433
3430
  auto_msecpagewait: 3500,
3434
3431
  escape: ""
@@ -3461,15 +3458,13 @@ const _Config = class {
3461
3458
  return c2;
3462
3459
  }
3463
3460
  async load(oCfg) {
3464
- var _a3, _b3, _c3, _d2, _e, _f, _g, _h, _i;
3461
+ var _a3, _b3, _c3, _d2, _e, _f, _g, _h;
3465
3462
  this.oCfg.save_ns = (_a3 = oCfg == null ? void 0 : oCfg.save_ns) != null ? _a3 : this.oCfg.save_ns;
3466
- this.oCfg.coder = (_b3 = oCfg == null ? void 0 : oCfg.coder) != null ? _b3 : this.oCfg.coder;
3467
- CmnLib.stageW = this.oCfg.window.width = Number((_d2 = (_c3 = oCfg == null ? void 0 : oCfg.window) == null ? void 0 : _c3.width) != null ? _d2 : this.oCfg.window.width);
3468
- CmnLib.stageH = this.oCfg.window.height = Number((_f = (_e = oCfg == null ? void 0 : oCfg.window) == null ? void 0 : _e.height) != null ? _f : this.oCfg.window.height);
3463
+ CmnLib.stageW = this.oCfg.window.width = Number((_c3 = (_b3 = oCfg == null ? void 0 : oCfg.window) == null ? void 0 : _b3.width) != null ? _c3 : this.oCfg.window.width);
3464
+ CmnLib.stageH = this.oCfg.window.height = Number((_e = (_d2 = oCfg == null ? void 0 : oCfg.window) == null ? void 0 : _d2.height) != null ? _e : this.oCfg.window.height);
3469
3465
  this.oCfg.book = __spreadValues(__spreadValues({}, this.oCfg.book), oCfg.book);
3470
- this.oCfg.log.max_len = (_i = (_h = (_g = oCfg.log) == null ? void 0 : _g.max_len) == null ? void 0 : _h.max_len) != null ? _i : this.oCfg.log.max_len;
3466
+ this.oCfg.log.max_len = (_h = (_g = (_f = oCfg.log) == null ? void 0 : _f.max_len) == null ? void 0 : _g.max_len) != null ? _h : this.oCfg.log.max_len;
3471
3467
  this.oCfg.init = __spreadValues(__spreadValues({}, this.oCfg.init), oCfg.init);
3472
- this.oCfg.init.bg_color = parseColor(String(this.oCfg.init.bg_color));
3473
3468
  this.oCfg.debug = __spreadValues(__spreadValues({}, this.oCfg.debug), oCfg.debug);
3474
3469
  CmnLib.debugLog = this.oCfg.debug.debugLog;
3475
3470
  this.oCfg.debuger_token = oCfg.debuger_token;
@@ -3516,7 +3511,6 @@ const _Config = class {
3516
3511
  this.sys.ensureFileSync(fp);
3517
3512
  return fp;
3518
3513
  }
3519
- __privateGet$5(this, _REG_PATH).lastIndex = 0;
3520
3514
  const a2 = path.match(__privateGet$5(this, _REG_PATH));
3521
3515
  let fn = a2 ? a2[1] : path;
3522
3516
  const ext = a2 ? a2[2] : "";
@@ -3727,7 +3721,6 @@ class Grammar {
3727
3721
  return;
3728
3722
  for (let i2 = scr.len - 1; i2 >= start_idx; --i2) {
3729
3723
  const token = scr.aToken[i2];
3730
- this.REG_TOKEN_NOTXT.lastIndex = 0;
3731
3724
  if (this.REG_TOKEN_NOTXT.test(token.charAt(0)))
3732
3725
  continue;
3733
3726
  const lnum = scr.aLNum[i2];
@@ -3779,10 +3772,8 @@ class Grammar {
3779
3772
  throw "[bracket2macro] text\u3010" + op + "\u3011\u304C\u767B\u9332\u6E08\u307F\u306E\u62EC\u5F27\u30DE\u30AF\u30ED\u307E\u305F\u306F\u4E00\u6587\u5B57\u30DE\u30AF\u30ED\u3067\u3059";
3780
3773
  if (cl in __privateGet(this, _hC2M))
3781
3774
  throw "[bracket2macro] text\u3010" + cl + "\u3011\u304C\u767B\u9332\u6E08\u307F\u306E\u62EC\u5F27\u30DE\u30AF\u30ED\u307E\u305F\u306F\u4E00\u6587\u5B57\u30DE\u30AF\u30ED\u3067\u3059";
3782
- __privateGet(this, _REG_CANTC2M).lastIndex = 0;
3783
3775
  if (__privateGet(this, _REG_CANTC2M).test(op))
3784
3776
  throw "[bracket2macro] text\u3010" + op + "\u3011\u306F\u62EC\u5F27\u30DE\u30AF\u30ED\u306B\u4F7F\u7528\u3067\u304D\u306A\u3044\u6587\u5B57\u3067\u3059";
3785
- __privateGet(this, _REG_CANTC2M).lastIndex = 0;
3786
3777
  if (__privateGet(this, _REG_CANTC2M).test(cl))
3787
3778
  throw "[bracket2macro] text\u3010" + cl + "\u3011\u306F\u62EC\u5F27\u30DE\u30AF\u30ED\u306B\u4F7F\u7528\u3067\u304D\u306A\u3044\u6587\u5B57\u3067\u3059";
3788
3779
  __privateGet(this, _hC2M)[cl] = "0";
@@ -3798,7 +3789,6 @@ class Grammar {
3798
3789
  (_a3 = __privateGet(this, _hC2M)) != null ? _a3 : __privateSet(this, _hC2M, {});
3799
3790
  if (char in __privateGet(this, _hC2M))
3800
3791
  throw "[char2macro] char\u3010" + char + "\u3011\u304C\u767B\u9332\u6E08\u307F\u306E\u62EC\u5F27\u30DE\u30AF\u30ED\u307E\u305F\u306F\u4E00\u6587\u5B57\u30DE\u30AF\u30ED\u3067\u3059";
3801
- __privateGet(this, _REG_CANTC2M).lastIndex = 0;
3802
3792
  if (__privateGet(this, _REG_CANTC2M).test(char))
3803
3793
  throw "[char2macro] char\u3010" + char + "\u3011\u306F\u4E00\u6587\u5B57\u30DE\u30AF\u30ED\u306B\u4F7F\u7528\u3067\u304D\u306A\u3044\u6587\u5B57\u3067\u3059";
3804
3794
  if (!name)
@@ -5505,7 +5495,6 @@ castAuto_fn = function(val) {
5505
5495
  return null;
5506
5496
  if (s_val === "undefined")
5507
5497
  return void 0;
5508
- __privateGet(this, _REG_NUMERICLITERAL).lastIndex = 0;
5509
5498
  if (__privateGet(this, _REG_NUMERICLITERAL).test(s_val))
5510
5499
  return parseFloat(s_val);
5511
5500
  return val;
@@ -6361,13 +6350,13 @@ function isMobile$1(param) {
6361
6350
  return result;
6362
6351
  }
6363
6352
  /*!
6364
- * @pixi/settings - v6.2.2
6365
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
6353
+ * @pixi/settings - v6.3.0
6354
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
6366
6355
  *
6367
6356
  * @pixi/settings is licensed under the MIT License.
6368
6357
  * http://www.opensource.org/licenses/mit-license
6369
6358
  */
6370
- var isMobile = isMobile$1(self.navigator);
6359
+ var isMobile = isMobile$1(globalThis.navigator);
6371
6360
  function maxRecommendedTextures(max) {
6372
6361
  var allowMax = true;
6373
6362
  if (isMobile.tablet || isMobile.phone) {
@@ -6396,8 +6385,8 @@ function canUploadSameBuffer() {
6396
6385
  return !isMobile.apple.device;
6397
6386
  }
6398
6387
  /*!
6399
- * @pixi/constants - v6.2.2
6400
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
6388
+ * @pixi/constants - v6.3.0
6389
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
6401
6390
  *
6402
6391
  * @pixi/constants is licensed under the MIT License.
6403
6392
  * http://www.opensource.org/licenses/mit-license
@@ -6619,8 +6608,8 @@ var settings = {
6619
6608
  ROUND_PIXELS: false
6620
6609
  };
6621
6610
  /*!
6622
- * @pixi/constants - v6.2.2
6623
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
6611
+ * @pixi/constants - v6.3.0
6612
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
6624
6613
  *
6625
6614
  * @pixi/constants is licensed under the MIT License.
6626
6615
  * http://www.opensource.org/licenses/mit-license
@@ -7449,8 +7438,8 @@ earcut.flatten = function(data) {
7449
7438
  };
7450
7439
  var earcut$1 = earcut$2.exports;
7451
7440
  /*!
7452
- * @pixi/utils - v6.2.2
7453
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
7441
+ * @pixi/utils - v6.3.0
7442
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
7454
7443
  *
7455
7444
  * @pixi/utils is licensed under the MIT License.
7456
7445
  * http://www.opensource.org/licenses/mit-license
@@ -7463,7 +7452,7 @@ var url = {
7463
7452
  settings.RETINA_PREFIX = /@([0-9\.]+)x/;
7464
7453
  settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = false;
7465
7454
  var saidHello = false;
7466
- var VERSION = "6.2.2";
7455
+ var VERSION = "6.3.0";
7467
7456
  function skipHello() {
7468
7457
  saidHello = true;
7469
7458
  }
@@ -7485,9 +7474,9 @@ function sayHello(type) {
7485
7474
  "color: #ff2424; background: #fff; padding:5px 0;",
7486
7475
  "color: #ff2424; background: #fff; padding:5px 0;"
7487
7476
  ];
7488
- (_a3 = self.console).log.apply(_a3, args);
7489
- } else if (self.console) {
7490
- self.console.log("PixiJS " + VERSION + " - " + type + " - http://www.pixijs.com/");
7477
+ (_a3 = globalThis.console).log.apply(_a3, args);
7478
+ } else if (globalThis.console) {
7479
+ globalThis.console.log("PixiJS " + VERSION + " - " + type + " - http://www.pixijs.com/");
7491
7480
  }
7492
7481
  saidHello = true;
7493
7482
  }
@@ -7500,7 +7489,7 @@ function isWebGLSupported() {
7500
7489
  failIfMajorPerformanceCaveat: settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT
7501
7490
  };
7502
7491
  try {
7503
- if (!self.WebGLRenderingContext) {
7492
+ if (!globalThis.WebGLRenderingContext) {
7504
7493
  return false;
7505
7494
  }
7506
7495
  var canvas2 = document.createElement("canvas");
@@ -7830,14 +7819,14 @@ function hex2rgb(hex, out) {
7830
7819
  }
7831
7820
  function hex2string(hex) {
7832
7821
  var hexString = hex.toString(16);
7833
- hexString = "000000".substr(0, 6 - hexString.length) + hexString;
7822
+ hexString = "000000".substring(0, 6 - hexString.length) + hexString;
7834
7823
  return "#" + hexString;
7835
7824
  }
7836
7825
  function string2hex(string) {
7837
7826
  if (typeof string === "string") {
7838
7827
  string = cssColorNames[string.toLowerCase()] || string;
7839
7828
  if (string[0] === "#") {
7840
- string = string.substr(1);
7829
+ string = string.slice(1);
7841
7830
  }
7842
7831
  }
7843
7832
  return parseInt(string, 16);
@@ -8126,12 +8115,12 @@ function trimCanvas(canvas2) {
8126
8115
  var tempAnchor$1;
8127
8116
  function determineCrossOrigin(url$12, loc) {
8128
8117
  if (loc === void 0) {
8129
- loc = self.location;
8118
+ loc = globalThis.location;
8130
8119
  }
8131
8120
  if (url$12.indexOf("data:") === 0) {
8132
8121
  return "";
8133
8122
  }
8134
- loc = loc || self.location;
8123
+ loc = loc || globalThis.location;
8135
8124
  if (!tempAnchor$1) {
8136
8125
  tempAnchor$1 = document.createElement("a");
8137
8126
  }
@@ -8151,8 +8140,8 @@ function getResolutionOfUrl(url2, defaultValue2) {
8151
8140
  return defaultValue2 !== void 0 ? defaultValue2 : 1;
8152
8141
  }
8153
8142
  /*!
8154
- * @pixi/runner - v6.2.2
8155
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
8143
+ * @pixi/runner - v6.3.0
8144
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
8156
8145
  *
8157
8146
  * @pixi/runner is licensed under the MIT License.
8158
8147
  * http://www.opensource.org/licenses/mit-license
@@ -8233,8 +8222,8 @@ Object.defineProperties(Runner.prototype, {
8233
8222
  run: { value: Runner.prototype.emit }
8234
8223
  });
8235
8224
  /*!
8236
- * @pixi/ticker - v6.2.2
8237
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
8225
+ * @pixi/ticker - v6.3.0
8226
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
8238
8227
  *
8239
8228
  * @pixi/ticker is licensed under the MIT License.
8240
8229
  * http://www.opensource.org/licenses/mit-license
@@ -8590,8 +8579,8 @@ var TickerPlugin = function() {
8590
8579
  return TickerPlugin2;
8591
8580
  }();
8592
8581
  /*!
8593
- * @pixi/math - v6.2.2
8594
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
8582
+ * @pixi/math - v6.3.0
8583
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
8595
8584
  *
8596
8585
  * @pixi/math is licensed under the MIT License.
8597
8586
  * http://www.opensource.org/licenses/mit-license
@@ -8607,6 +8596,50 @@ var SHAPES;
8607
8596
  SHAPES2[SHAPES2["ELIP"] = 3] = "ELIP";
8608
8597
  SHAPES2[SHAPES2["RREC"] = 4] = "RREC";
8609
8598
  })(SHAPES || (SHAPES = {}));
8599
+ var Point = function() {
8600
+ function Point2(x, y2) {
8601
+ if (x === void 0) {
8602
+ x = 0;
8603
+ }
8604
+ if (y2 === void 0) {
8605
+ y2 = 0;
8606
+ }
8607
+ this.x = 0;
8608
+ this.y = 0;
8609
+ this.x = x;
8610
+ this.y = y2;
8611
+ }
8612
+ Point2.prototype.clone = function() {
8613
+ return new Point2(this.x, this.y);
8614
+ };
8615
+ Point2.prototype.copyFrom = function(p) {
8616
+ this.set(p.x, p.y);
8617
+ return this;
8618
+ };
8619
+ Point2.prototype.copyTo = function(p) {
8620
+ p.set(this.x, this.y);
8621
+ return p;
8622
+ };
8623
+ Point2.prototype.equals = function(p) {
8624
+ return p.x === this.x && p.y === this.y;
8625
+ };
8626
+ Point2.prototype.set = function(x, y2) {
8627
+ if (x === void 0) {
8628
+ x = 0;
8629
+ }
8630
+ if (y2 === void 0) {
8631
+ y2 = x;
8632
+ }
8633
+ this.x = x;
8634
+ this.y = y2;
8635
+ return this;
8636
+ };
8637
+ Point2.prototype.toString = function() {
8638
+ return "[@pixi/math:Point x=" + this.x + " y=" + this.y + "]";
8639
+ };
8640
+ return Point2;
8641
+ }();
8642
+ var tempPoints$1 = [new Point(), new Point(), new Point(), new Point()];
8610
8643
  var Rectangle = function() {
8611
8644
  function Rectangle2(x, y2, width, height) {
8612
8645
  if (x === void 0) {
@@ -8690,6 +8723,62 @@ var Rectangle = function() {
8690
8723
  }
8691
8724
  return false;
8692
8725
  };
8726
+ Rectangle2.prototype.intersects = function(other, transform) {
8727
+ if (!transform) {
8728
+ var x0_1 = this.x < other.x ? other.x : this.x;
8729
+ var x1_1 = this.right > other.right ? other.right : this.right;
8730
+ if (x1_1 <= x0_1) {
8731
+ return false;
8732
+ }
8733
+ var y0_1 = this.y < other.y ? other.y : this.y;
8734
+ var y1_1 = this.bottom > other.bottom ? other.bottom : this.bottom;
8735
+ return y1_1 > y0_1;
8736
+ }
8737
+ var x0 = this.left;
8738
+ var x1 = this.right;
8739
+ var y0 = this.top;
8740
+ var y1 = this.bottom;
8741
+ if (x1 <= x0 || y1 <= y0) {
8742
+ return false;
8743
+ }
8744
+ var lt = tempPoints$1[0].set(other.left, other.top);
8745
+ var lb = tempPoints$1[1].set(other.left, other.bottom);
8746
+ var rt = tempPoints$1[2].set(other.right, other.top);
8747
+ var rb = tempPoints$1[3].set(other.right, other.bottom);
8748
+ if (rt.x <= lt.x || lb.y <= lt.y) {
8749
+ return false;
8750
+ }
8751
+ var s2 = Math.sign(transform.a * transform.d - transform.b * transform.c);
8752
+ if (s2 === 0) {
8753
+ return false;
8754
+ }
8755
+ transform.apply(lt, lt);
8756
+ transform.apply(lb, lb);
8757
+ transform.apply(rt, rt);
8758
+ transform.apply(rb, rb);
8759
+ if (Math.max(lt.x, lb.x, rt.x, rb.x) <= x0 || Math.min(lt.x, lb.x, rt.x, rb.x) >= x1 || Math.max(lt.y, lb.y, rt.y, rb.y) <= y0 || Math.min(lt.y, lb.y, rt.y, rb.y) >= y1) {
8760
+ return false;
8761
+ }
8762
+ var nx = s2 * (lb.y - lt.y);
8763
+ var ny = s2 * (lt.x - lb.x);
8764
+ var n00 = nx * x0 + ny * y0;
8765
+ var n10 = nx * x1 + ny * y0;
8766
+ var n01 = nx * x0 + ny * y1;
8767
+ var n11 = nx * x1 + ny * y1;
8768
+ if (Math.max(n00, n10, n01, n11) <= nx * lt.x + ny * lt.y || Math.min(n00, n10, n01, n11) >= nx * rb.x + ny * rb.y) {
8769
+ return false;
8770
+ }
8771
+ var mx = s2 * (lt.y - rt.y);
8772
+ var my = s2 * (rt.x - lt.x);
8773
+ var m00 = mx * x0 + my * y0;
8774
+ var m10 = mx * x1 + my * y0;
8775
+ var m01 = mx * x0 + my * y1;
8776
+ var m11 = mx * x1 + my * y1;
8777
+ if (Math.max(m00, m10, m01, m11) <= mx * lt.x + my * lt.y || Math.min(m00, m10, m01, m11) >= mx * rb.x + my * rb.y) {
8778
+ return false;
8779
+ }
8780
+ return true;
8781
+ };
8693
8782
  Rectangle2.prototype.pad = function(paddingX, paddingY) {
8694
8783
  if (paddingX === void 0) {
8695
8784
  paddingX = 0;
@@ -8935,49 +9024,6 @@ var RoundedRectangle = function() {
8935
9024
  };
8936
9025
  return RoundedRectangle2;
8937
9026
  }();
8938
- var Point = function() {
8939
- function Point2(x, y2) {
8940
- if (x === void 0) {
8941
- x = 0;
8942
- }
8943
- if (y2 === void 0) {
8944
- y2 = 0;
8945
- }
8946
- this.x = 0;
8947
- this.y = 0;
8948
- this.x = x;
8949
- this.y = y2;
8950
- }
8951
- Point2.prototype.clone = function() {
8952
- return new Point2(this.x, this.y);
8953
- };
8954
- Point2.prototype.copyFrom = function(p) {
8955
- this.set(p.x, p.y);
8956
- return this;
8957
- };
8958
- Point2.prototype.copyTo = function(p) {
8959
- p.set(this.x, this.y);
8960
- return p;
8961
- };
8962
- Point2.prototype.equals = function(p) {
8963
- return p.x === this.x && p.y === this.y;
8964
- };
8965
- Point2.prototype.set = function(x, y2) {
8966
- if (x === void 0) {
8967
- x = 0;
8968
- }
8969
- if (y2 === void 0) {
8970
- y2 = x;
8971
- }
8972
- this.x = x;
8973
- this.y = y2;
8974
- return this;
8975
- };
8976
- Point2.prototype.toString = function() {
8977
- return "[@pixi/math:Point x=" + this.x + " y=" + this.y + "]";
8978
- };
8979
- return Point2;
8980
- }();
8981
9027
  var ObservablePoint = function() {
8982
9028
  function ObservablePoint2(cb, scope, x, y2) {
8983
9029
  if (x === void 0) {
@@ -9506,8 +9552,8 @@ var Transform = function() {
9506
9552
  return Transform2;
9507
9553
  }();
9508
9554
  /*!
9509
- * @pixi/core - v6.2.2
9510
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
9555
+ * @pixi/core - v6.3.0
9556
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
9511
9557
  *
9512
9558
  * @pixi/core is licensed under the MIT License.
9513
9559
  * http://www.opensource.org/licenses/mit-license
@@ -10146,6 +10192,15 @@ var BaseImageResource = function(_super) {
10146
10192
  var width = baseTexture.realWidth;
10147
10193
  var height = baseTexture.realHeight;
10148
10194
  source = source || this.source;
10195
+ if (source instanceof HTMLImageElement) {
10196
+ if (!source.complete || source.naturalWidth === 0) {
10197
+ return false;
10198
+ }
10199
+ } else if (source instanceof HTMLVideoElement) {
10200
+ if (source.readyState <= 1) {
10201
+ return false;
10202
+ }
10203
+ }
10149
10204
  gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, baseTexture.alphaMode === ALPHA_MODES$3.UNPACK);
10150
10205
  if (!this.noSubImage && baseTexture.target === gl.TEXTURE_2D && glTexture.width === width && glTexture.height === height) {
10151
10206
  gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, baseTexture.format, glTexture.type, source);
@@ -10177,11 +10232,11 @@ var CanvasResource = function(_super) {
10177
10232
  return _super.call(this, source) || this;
10178
10233
  }
10179
10234
  CanvasResource2.test = function(source) {
10180
- var OffscreenCanvas2 = self.OffscreenCanvas;
10235
+ var OffscreenCanvas2 = globalThis.OffscreenCanvas;
10181
10236
  if (OffscreenCanvas2 && source instanceof OffscreenCanvas2) {
10182
10237
  return true;
10183
10238
  }
10184
- return self.HTMLCanvasElement && source instanceof HTMLCanvasElement;
10239
+ return globalThis.HTMLCanvasElement && source instanceof HTMLCanvasElement;
10185
10240
  };
10186
10241
  return CanvasResource2;
10187
10242
  }(BaseImageResource);
@@ -10272,7 +10327,7 @@ var ImageResource = function(_super) {
10272
10327
  _this.url = source.src;
10273
10328
  _this._process = null;
10274
10329
  _this.preserveBitmap = false;
10275
- _this.createBitmap = (options.createBitmap !== void 0 ? options.createBitmap : settings.CREATE_IMAGE_BITMAP) && !!self.createImageBitmap;
10330
+ _this.createBitmap = (options.createBitmap !== void 0 ? options.createBitmap : settings.CREATE_IMAGE_BITMAP) && !!globalThis.createImageBitmap;
10276
10331
  _this.alphaMode = typeof options.alphaMode === "number" ? options.alphaMode : null;
10277
10332
  _this.bitmap = null;
10278
10333
  _this._load = null;
@@ -10324,10 +10379,10 @@ var ImageResource = function(_super) {
10324
10379
  if (this._process !== null) {
10325
10380
  return this._process;
10326
10381
  }
10327
- if (this.bitmap !== null || !self.createImageBitmap) {
10382
+ if (this.bitmap !== null || !globalThis.createImageBitmap) {
10328
10383
  return Promise.resolve(this);
10329
10384
  }
10330
- var createImageBitmap = self.createImageBitmap;
10385
+ var createImageBitmap = globalThis.createImageBitmap;
10331
10386
  var cors = !source.crossOrigin || source.crossOrigin === "anonymous";
10332
10387
  this._process = fetch(source.src, {
10333
10388
  mode: cors ? "cors" : "no-cors"
@@ -10516,7 +10571,7 @@ var VideoResource = function(_super) {
10516
10571
  var _a3 = source[i2], src = _a3.src, mime = _a3.mime;
10517
10572
  src = src || source[i2];
10518
10573
  var baseSrc = src.split("?").shift().toLowerCase();
10519
- var ext = baseSrc.substr(baseSrc.lastIndexOf(".") + 1);
10574
+ var ext = baseSrc.slice(baseSrc.lastIndexOf(".") + 1);
10520
10575
  mime = mime || VideoResource2.MIME_TYPES[ext] || "video/" + ext;
10521
10576
  sourceElement.src = src;
10522
10577
  sourceElement.type = mime;
@@ -10667,7 +10722,7 @@ var VideoResource = function(_super) {
10667
10722
  configurable: true
10668
10723
  });
10669
10724
  VideoResource2.test = function(source, extension) {
10670
- return self.HTMLVideoElement && source instanceof HTMLVideoElement || VideoResource2.TYPES.indexOf(extension) > -1;
10725
+ return globalThis.HTMLVideoElement && source instanceof HTMLVideoElement || VideoResource2.TYPES.indexOf(extension) > -1;
10671
10726
  };
10672
10727
  VideoResource2.TYPES = ["mp4", "m4v", "webm", "ogg", "ogv", "h264", "avi", "mov"];
10673
10728
  VideoResource2.MIME_TYPES = {
@@ -10683,7 +10738,7 @@ var ImageBitmapResource = function(_super) {
10683
10738
  return _super.call(this, source) || this;
10684
10739
  }
10685
10740
  ImageBitmapResource2.test = function(source) {
10686
- return !!self.createImageBitmap && source instanceof ImageBitmap;
10741
+ return !!globalThis.createImageBitmap && source instanceof ImageBitmap;
10687
10742
  };
10688
10743
  return ImageBitmapResource2;
10689
10744
  }(BaseImageResource);
@@ -10824,6 +10879,9 @@ var Framebuffer = function() {
10824
10879
  var BaseRenderTexture = function(_super) {
10825
10880
  __extends$q(BaseRenderTexture2, _super);
10826
10881
  function BaseRenderTexture2(options) {
10882
+ if (options === void 0) {
10883
+ options = {};
10884
+ }
10827
10885
  var _this = this;
10828
10886
  if (typeof options === "number") {
10829
10887
  var width = arguments[0];
@@ -11321,8 +11379,8 @@ var RenderTexturePool = function() {
11321
11379
  multisample = MSAA_QUALITY$3.NONE;
11322
11380
  }
11323
11381
  var key;
11324
- minWidth = Math.ceil(minWidth * resolution);
11325
- minHeight = Math.ceil(minHeight * resolution);
11382
+ minWidth = Math.ceil(minWidth * resolution - 1e-6);
11383
+ minHeight = Math.ceil(minHeight * resolution - 1e-6);
11326
11384
  if (!this.enableFullScreen || minWidth !== this._pixelsWidth || minHeight !== this._pixelsHeight) {
11327
11385
  minWidth = nextPow2(minWidth);
11328
11386
  minHeight = nextPow2(minHeight);
@@ -12305,7 +12363,7 @@ var ContextSystem = function() {
12305
12363
  };
12306
12364
  ContextSystem2.prototype.validateContext = function(gl) {
12307
12365
  var attributes = gl.getContextAttributes();
12308
- var isWebGl2 = "WebGL2RenderingContext" in self && gl instanceof self.WebGL2RenderingContext;
12366
+ var isWebGl2 = "WebGL2RenderingContext" in globalThis && gl instanceof globalThis.WebGL2RenderingContext;
12309
12367
  if (isWebGl2) {
12310
12368
  this.webGLVersion = 2;
12311
12369
  }
@@ -12624,7 +12682,7 @@ var FramebufferSystem = function() {
12624
12682
  var sameSize = sourcePixels.width === destPixels.width && sourcePixels.height === destPixels.height;
12625
12683
  this.bind(framebuffer);
12626
12684
  gl.bindFramebuffer(gl.READ_FRAMEBUFFER, fbo.framebuffer);
12627
- gl.blitFramebuffer(sourcePixels.x, sourcePixels.y, sourcePixels.width, sourcePixels.height, destPixels.x, destPixels.y, destPixels.width, destPixels.height, gl.COLOR_BUFFER_BIT, sameSize ? gl.NEAREST : gl.LINEAR);
12685
+ gl.blitFramebuffer(sourcePixels.left, sourcePixels.top, sourcePixels.right, sourcePixels.bottom, destPixels.left, destPixels.top, destPixels.right, destPixels.bottom, gl.COLOR_BUFFER_BIT, sameSize ? gl.NEAREST : gl.LINEAR);
12628
12686
  };
12629
12687
  FramebufferSystem2.prototype.disposeFramebuffer = function(framebuffer, contextLost) {
12630
12688
  var fbo = framebuffer.glFramebuffers[this.CONTEXT_UID];
@@ -14902,7 +14960,7 @@ var TextureGCSystem = function() {
14902
14960
  function mapTypeAndFormatToInternalFormat(gl) {
14903
14961
  var _a3, _b3, _c3, _d2, _e, _f, _g, _h, _j, _k, _l2, _m, _o, _p2, _q, _r2, _s, _t, _u, _v, _w, _x;
14904
14962
  var table;
14905
- if ("WebGL2RenderingContext" in self && gl instanceof self.WebGL2RenderingContext) {
14963
+ if ("WebGL2RenderingContext" in globalThis && gl instanceof globalThis.WebGL2RenderingContext) {
14906
14964
  table = (_a3 = {}, _a3[TYPES$3.UNSIGNED_BYTE] = (_b3 = {}, _b3[FORMATS$3.RGBA] = gl.RGBA8, _b3[FORMATS$3.RGB] = gl.RGB8, _b3[FORMATS$3.RG] = gl.RG8, _b3[FORMATS$3.RED] = gl.R8, _b3[FORMATS$3.RGBA_INTEGER] = gl.RGBA8UI, _b3[FORMATS$3.RGB_INTEGER] = gl.RGB8UI, _b3[FORMATS$3.RG_INTEGER] = gl.RG8UI, _b3[FORMATS$3.RED_INTEGER] = gl.R8UI, _b3[FORMATS$3.ALPHA] = gl.ALPHA, _b3[FORMATS$3.LUMINANCE] = gl.LUMINANCE, _b3[FORMATS$3.LUMINANCE_ALPHA] = gl.LUMINANCE_ALPHA, _b3), _a3[TYPES$3.BYTE] = (_c3 = {}, _c3[FORMATS$3.RGBA] = gl.RGBA8_SNORM, _c3[FORMATS$3.RGB] = gl.RGB8_SNORM, _c3[FORMATS$3.RG] = gl.RG8_SNORM, _c3[FORMATS$3.RED] = gl.R8_SNORM, _c3[FORMATS$3.RGBA_INTEGER] = gl.RGBA8I, _c3[FORMATS$3.RGB_INTEGER] = gl.RGB8I, _c3[FORMATS$3.RG_INTEGER] = gl.RG8I, _c3[FORMATS$3.RED_INTEGER] = gl.R8I, _c3), _a3[TYPES$3.UNSIGNED_SHORT] = (_d2 = {}, _d2[FORMATS$3.RGBA_INTEGER] = gl.RGBA16UI, _d2[FORMATS$3.RGB_INTEGER] = gl.RGB16UI, _d2[FORMATS$3.RG_INTEGER] = gl.RG16UI, _d2[FORMATS$3.RED_INTEGER] = gl.R16UI, _d2[FORMATS$3.DEPTH_COMPONENT] = gl.DEPTH_COMPONENT16, _d2), _a3[TYPES$3.SHORT] = (_e = {}, _e[FORMATS$3.RGBA_INTEGER] = gl.RGBA16I, _e[FORMATS$3.RGB_INTEGER] = gl.RGB16I, _e[FORMATS$3.RG_INTEGER] = gl.RG16I, _e[FORMATS$3.RED_INTEGER] = gl.R16I, _e), _a3[TYPES$3.UNSIGNED_INT] = (_f = {}, _f[FORMATS$3.RGBA_INTEGER] = gl.RGBA32UI, _f[FORMATS$3.RGB_INTEGER] = gl.RGB32UI, _f[FORMATS$3.RG_INTEGER] = gl.RG32UI, _f[FORMATS$3.RED_INTEGER] = gl.R32UI, _f[FORMATS$3.DEPTH_COMPONENT] = gl.DEPTH_COMPONENT24, _f), _a3[TYPES$3.INT] = (_g = {}, _g[FORMATS$3.RGBA_INTEGER] = gl.RGBA32I, _g[FORMATS$3.RGB_INTEGER] = gl.RGB32I, _g[FORMATS$3.RG_INTEGER] = gl.RG32I, _g[FORMATS$3.RED_INTEGER] = gl.R32I, _g), _a3[TYPES$3.FLOAT] = (_h = {}, _h[FORMATS$3.RGBA] = gl.RGBA32F, _h[FORMATS$3.RGB] = gl.RGB32F, _h[FORMATS$3.RG] = gl.RG32F, _h[FORMATS$3.RED] = gl.R32F, _h[FORMATS$3.DEPTH_COMPONENT] = gl.DEPTH_COMPONENT32F, _h), _a3[TYPES$3.HALF_FLOAT] = (_j = {}, _j[FORMATS$3.RGBA] = gl.RGBA16F, _j[FORMATS$3.RGB] = gl.RGB16F, _j[FORMATS$3.RG] = gl.RG16F, _j[FORMATS$3.RED] = gl.R16F, _j), _a3[TYPES$3.UNSIGNED_SHORT_5_6_5] = (_k = {}, _k[FORMATS$3.RGB] = gl.RGB565, _k), _a3[TYPES$3.UNSIGNED_SHORT_4_4_4_4] = (_l2 = {}, _l2[FORMATS$3.RGBA] = gl.RGBA4, _l2), _a3[TYPES$3.UNSIGNED_SHORT_5_5_5_1] = (_m = {}, _m[FORMATS$3.RGBA] = gl.RGB5_A1, _m), _a3[TYPES$3.UNSIGNED_INT_2_10_10_10_REV] = (_o = {}, _o[FORMATS$3.RGBA] = gl.RGB10_A2, _o[FORMATS$3.RGBA_INTEGER] = gl.RGB10_A2UI, _o), _a3[TYPES$3.UNSIGNED_INT_10F_11F_11F_REV] = (_p2 = {}, _p2[FORMATS$3.RGB] = gl.R11F_G11F_B10F, _p2), _a3[TYPES$3.UNSIGNED_INT_5_9_9_9_REV] = (_q = {}, _q[FORMATS$3.RGB] = gl.RGB9_E5, _q), _a3[TYPES$3.UNSIGNED_INT_24_8] = (_r2 = {}, _r2[FORMATS$3.DEPTH_STENCIL] = gl.DEPTH24_STENCIL8, _r2), _a3[TYPES$3.FLOAT_32_UNSIGNED_INT_24_8_REV] = (_s = {}, _s[FORMATS$3.DEPTH_STENCIL] = gl.DEPTH32F_STENCIL8, _s), _a3);
14907
14965
  } else {
14908
14966
  table = (_t = {}, _t[TYPES$3.UNSIGNED_BYTE] = (_u = {}, _u[FORMATS$3.RGBA] = gl.RGBA, _u[FORMATS$3.RGB] = gl.RGB, _u[FORMATS$3.ALPHA] = gl.ALPHA, _u[FORMATS$3.LUMINANCE] = gl.LUMINANCE, _u[FORMATS$3.LUMINANCE_ALPHA] = gl.LUMINANCE_ALPHA, _u), _t[TYPES$3.UNSIGNED_SHORT_5_6_5] = (_v = {}, _v[FORMATS$3.RGB] = gl.RGB, _v), _t[TYPES$3.UNSIGNED_SHORT_4_4_4_4] = (_w = {}, _w[FORMATS$3.RGBA] = gl.RGBA, _w), _t[TYPES$3.UNSIGNED_SHORT_5_5_5_1] = (_x = {}, _x[FORMATS$3.RGBA] = gl.RGBA, _x), _t);
@@ -16096,8 +16154,8 @@ for (var name in _systems) {
16096
16154
  _loop_2(name);
16097
16155
  }
16098
16156
  /*!
16099
- * @pixi/loaders - v6.2.2
16100
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
16157
+ * @pixi/loaders - v6.3.0
16158
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
16101
16159
  *
16102
16160
  * @pixi/loaders is licensed under the MIT License.
16103
16161
  * http://www.opensource.org/licenses/mit-license
@@ -16261,7 +16319,7 @@ function parseUri(str, opts) {
16261
16319
  });
16262
16320
  return uri;
16263
16321
  }
16264
- var useXdr = !!(self.XDomainRequest && !("withCredentials" in new XMLHttpRequest()));
16322
+ var useXdr = !!(globalThis.XDomainRequest && !("withCredentials" in new XMLHttpRequest()));
16265
16323
  var tempAnchor = null;
16266
16324
  var STATUS_NONE = 0;
16267
16325
  var STATUS_OK = 200;
@@ -16466,7 +16524,7 @@ var LoaderResource = function() {
16466
16524
  LoaderResource2.prototype._loadElement = function(type) {
16467
16525
  if (this.metadata.loadElement) {
16468
16526
  this.data = this.metadata.loadElement;
16469
- } else if (type === "image" && typeof self.Image !== "undefined") {
16527
+ } else if (type === "image" && typeof globalThis.Image !== "undefined") {
16470
16528
  this.data = new Image();
16471
16529
  } else {
16472
16530
  this.data = document.createElement(type);
@@ -16487,7 +16545,7 @@ var LoaderResource = function() {
16487
16545
  LoaderResource2.prototype._loadSourceElement = function(type) {
16488
16546
  if (this.metadata.loadElement) {
16489
16547
  this.data = this.metadata.loadElement;
16490
- } else if (type === "audio" && typeof self.Audio !== "undefined") {
16548
+ } else if (type === "audio" && typeof globalThis.Audio !== "undefined") {
16491
16549
  this.data = new Audio();
16492
16550
  } else {
16493
16551
  this.data = document.createElement(type);
@@ -16526,6 +16584,9 @@ var LoaderResource = function() {
16526
16584
  this.xhrType = this._determineXhrType();
16527
16585
  }
16528
16586
  var xhr = this.xhr = new XMLHttpRequest();
16587
+ if (this.crossOrigin === "use-credentials") {
16588
+ xhr.withCredentials = true;
16589
+ }
16529
16590
  xhr.open("GET", this.url, true);
16530
16591
  xhr.timeout = this.timeout;
16531
16592
  if (this.xhrType === LoaderResource2.XHR_RESPONSE_TYPE.JSON || this.xhrType === LoaderResource2.XHR_RESPONSE_TYPE.DOCUMENT) {
@@ -16544,7 +16605,7 @@ var LoaderResource = function() {
16544
16605
  if (typeof this.xhrType !== "string") {
16545
16606
  this.xhrType = this._determineXhrType();
16546
16607
  }
16547
- var xdr = this.xhr = new self.XDomainRequest();
16608
+ var xdr = this.xhr = new globalThis.XDomainRequest();
16548
16609
  xdr.timeout = this.timeout || 5e3;
16549
16610
  xdr.onerror = this._boundXhrOnError;
16550
16611
  xdr.ontimeout = this._boundXhrOnTimeout;
@@ -16614,7 +16675,7 @@ var LoaderResource = function() {
16614
16675
  }
16615
16676
  } else if (this.xhrType === LoaderResource2.XHR_RESPONSE_TYPE.DOCUMENT) {
16616
16677
  try {
16617
- if (self.DOMParser) {
16678
+ if (globalThis.DOMParser) {
16618
16679
  var domparser = new DOMParser();
16619
16680
  this.data = domparser.parseFromString(text, "text/xml");
16620
16681
  } else {
@@ -16640,10 +16701,10 @@ var LoaderResource = function() {
16640
16701
  if (url2.indexOf("data:") === 0) {
16641
16702
  return "";
16642
16703
  }
16643
- if (self.origin !== self.location.origin) {
16704
+ if (globalThis.origin !== globalThis.location.origin) {
16644
16705
  return "anonymous";
16645
16706
  }
16646
- loc = loc || self.location;
16707
+ loc = loc || globalThis.location;
16647
16708
  if (!tempAnchor) {
16648
16709
  tempAnchor = document.createElement("a");
16649
16710
  }
@@ -17079,7 +17140,7 @@ var Loader = function() {
17079
17140
  }
17080
17141
  if (this.defaultQueryString) {
17081
17142
  var hash2 = rgxExtractUrlHash.exec(result)[0];
17082
- result = result.substr(0, result.length - hash2.length);
17143
+ result = result.slice(0, result.length - hash2.length);
17083
17144
  if (result.indexOf("?") !== -1) {
17084
17145
  result += "&" + this.defaultQueryString;
17085
17146
  } else {
@@ -18568,14 +18629,21 @@ var objectAssign = shouldUseNative() ? Object.assign : function(target, source)
18568
18629
  return to;
18569
18630
  };
18570
18631
  /*!
18571
- * @pixi/polyfill - v6.2.2
18572
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
18632
+ * @pixi/polyfill - v6.3.0
18633
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
18573
18634
  *
18574
18635
  * @pixi/polyfill is licensed under the MIT License.
18575
18636
  * http://www.opensource.org/licenses/mit-license
18576
18637
  */
18577
- if (!self.Promise) {
18578
- self.Promise = Promise$1;
18638
+ if (typeof globalThis === "undefined") {
18639
+ if (typeof self !== "undefined") {
18640
+ self.globalThis = self;
18641
+ } else if (typeof global !== "undefined") {
18642
+ global.globalThis = global;
18643
+ }
18644
+ }
18645
+ if (!globalThis.Promise) {
18646
+ globalThis.Promise = Promise$1;
18579
18647
  }
18580
18648
  if (!Object.assign) {
18581
18649
  Object.assign = objectAssign;
@@ -18586,24 +18654,24 @@ if (!(Date.now && Date.prototype.getTime)) {
18586
18654
  return new Date().getTime();
18587
18655
  };
18588
18656
  }
18589
- if (!(self.performance && self.performance.now)) {
18657
+ if (!(globalThis.performance && globalThis.performance.now)) {
18590
18658
  var startTime_1 = Date.now();
18591
- if (!self.performance) {
18592
- self.performance = {};
18659
+ if (!globalThis.performance) {
18660
+ globalThis.performance = {};
18593
18661
  }
18594
- self.performance.now = function() {
18662
+ globalThis.performance.now = function() {
18595
18663
  return Date.now() - startTime_1;
18596
18664
  };
18597
18665
  }
18598
18666
  var lastTime = Date.now();
18599
18667
  var vendors = ["ms", "moz", "webkit", "o"];
18600
- for (var x = 0; x < vendors.length && !self.requestAnimationFrame; ++x) {
18668
+ for (var x = 0; x < vendors.length && !globalThis.requestAnimationFrame; ++x) {
18601
18669
  var p = vendors[x];
18602
- self.requestAnimationFrame = self[p + "RequestAnimationFrame"];
18603
- self.cancelAnimationFrame = self[p + "CancelAnimationFrame"] || self[p + "CancelRequestAnimationFrame"];
18670
+ globalThis.requestAnimationFrame = globalThis[p + "RequestAnimationFrame"];
18671
+ globalThis.cancelAnimationFrame = globalThis[p + "CancelAnimationFrame"] || globalThis[p + "CancelRequestAnimationFrame"];
18604
18672
  }
18605
- if (!self.requestAnimationFrame) {
18606
- self.requestAnimationFrame = function(callback) {
18673
+ if (!globalThis.requestAnimationFrame) {
18674
+ globalThis.requestAnimationFrame = function(callback) {
18607
18675
  if (typeof callback !== "function") {
18608
18676
  throw new TypeError(callback + "is not a function");
18609
18677
  }
@@ -18613,14 +18681,14 @@ if (!self.requestAnimationFrame) {
18613
18681
  delay = 0;
18614
18682
  }
18615
18683
  lastTime = currentTime;
18616
- return self.setTimeout(function() {
18684
+ return globalThis.self.setTimeout(function() {
18617
18685
  lastTime = Date.now();
18618
18686
  callback(performance.now());
18619
18687
  }, delay);
18620
18688
  };
18621
18689
  }
18622
- if (!self.cancelAnimationFrame) {
18623
- self.cancelAnimationFrame = function(id) {
18690
+ if (!globalThis.cancelAnimationFrame) {
18691
+ globalThis.cancelAnimationFrame = function(id) {
18624
18692
  return clearTimeout(id);
18625
18693
  };
18626
18694
  }
@@ -18638,27 +18706,27 @@ if (!Number.isInteger) {
18638
18706
  return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
18639
18707
  };
18640
18708
  }
18641
- if (!self.ArrayBuffer) {
18642
- self.ArrayBuffer = Array;
18709
+ if (!globalThis.ArrayBuffer) {
18710
+ globalThis.ArrayBuffer = Array;
18643
18711
  }
18644
- if (!self.Float32Array) {
18645
- self.Float32Array = Array;
18712
+ if (!globalThis.Float32Array) {
18713
+ globalThis.Float32Array = Array;
18646
18714
  }
18647
- if (!self.Uint32Array) {
18648
- self.Uint32Array = Array;
18715
+ if (!globalThis.Uint32Array) {
18716
+ globalThis.Uint32Array = Array;
18649
18717
  }
18650
- if (!self.Uint16Array) {
18651
- self.Uint16Array = Array;
18718
+ if (!globalThis.Uint16Array) {
18719
+ globalThis.Uint16Array = Array;
18652
18720
  }
18653
- if (!self.Uint8Array) {
18654
- self.Uint8Array = Array;
18721
+ if (!globalThis.Uint8Array) {
18722
+ globalThis.Uint8Array = Array;
18655
18723
  }
18656
- if (!self.Int32Array) {
18657
- self.Int32Array = Array;
18724
+ if (!globalThis.Int32Array) {
18725
+ globalThis.Int32Array = Array;
18658
18726
  }
18659
18727
  /*!
18660
- * @pixi/display - v6.2.2
18661
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
18728
+ * @pixi/display - v6.3.0
18729
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
18662
18730
  *
18663
18731
  * @pixi/display is licensed under the MIT License.
18664
18732
  * http://www.opensource.org/licenses/mit-license
@@ -18951,6 +19019,8 @@ var DisplayObject = function(_super) {
18951
19019
  _this.alpha = 1;
18952
19020
  _this.visible = true;
18953
19021
  _this.renderable = true;
19022
+ _this.cullable = false;
19023
+ _this.cullArea = null;
18954
19024
  _this.parent = null;
18955
19025
  _this.worldAlpha = 1;
18956
19026
  _this._lastSortedIndex = 0;
@@ -19132,6 +19202,7 @@ var DisplayObject = function(_super) {
19132
19202
  this.parent = null;
19133
19203
  this._bounds = null;
19134
19204
  this.mask = null;
19205
+ this.cullArea = null;
19135
19206
  this.filters = null;
19136
19207
  this.filterArea = null;
19137
19208
  this.hitArea = null;
@@ -19320,8 +19391,8 @@ var TemporaryDisplayObject = function(_super) {
19320
19391
  }(DisplayObject);
19321
19392
  DisplayObject.prototype.displayObjectUpdateTransform = DisplayObject.prototype.updateTransform;
19322
19393
  /*!
19323
- * @pixi/constants - v6.2.2
19324
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
19394
+ * @pixi/constants - v6.3.0
19395
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
19325
19396
  *
19326
19397
  * @pixi/constants is licensed under the MIT License.
19327
19398
  * http://www.opensource.org/licenses/mit-license
@@ -19736,12 +19807,40 @@ var Container = function(_super) {
19736
19807
  };
19737
19808
  Container2.prototype._calculateBounds = function() {
19738
19809
  };
19810
+ Container2.prototype._renderWithCulling = function(renderer) {
19811
+ var sourceFrame = renderer.renderTexture.sourceFrame;
19812
+ if (!(sourceFrame.width > 0 && sourceFrame.height > 0)) {
19813
+ return;
19814
+ }
19815
+ var bounds;
19816
+ var transform;
19817
+ if (this.cullArea) {
19818
+ bounds = this.cullArea;
19819
+ transform = this.worldTransform;
19820
+ } else if (this._render !== Container2.prototype._render) {
19821
+ bounds = this.getBounds(true);
19822
+ }
19823
+ if (bounds && sourceFrame.intersects(bounds, transform)) {
19824
+ this._render(renderer);
19825
+ } else if (this.cullArea) {
19826
+ return;
19827
+ }
19828
+ for (var i2 = 0, j2 = this.children.length; i2 < j2; ++i2) {
19829
+ var child = this.children[i2];
19830
+ var childCullable = child.cullable;
19831
+ child.cullable = childCullable || !this.cullArea;
19832
+ child.render(renderer);
19833
+ child.cullable = childCullable;
19834
+ }
19835
+ };
19739
19836
  Container2.prototype.render = function(renderer) {
19740
19837
  if (!this.visible || this.worldAlpha <= 0 || !this.renderable) {
19741
19838
  return;
19742
19839
  }
19743
19840
  if (this._mask || this.filters && this.filters.length) {
19744
19841
  this.renderAdvanced(renderer);
19842
+ } else if (this.cullable) {
19843
+ this._renderWithCulling(renderer);
19745
19844
  } else {
19746
19845
  this._render(renderer);
19747
19846
  for (var i2 = 0, j2 = this.children.length; i2 < j2; ++i2) {
@@ -19773,9 +19872,13 @@ var Container = function(_super) {
19773
19872
  if (mask) {
19774
19873
  renderer.mask.push(this, this._mask);
19775
19874
  }
19776
- this._render(renderer);
19777
- for (var i2 = 0, j2 = this.children.length; i2 < j2; i2++) {
19778
- this.children[i2].render(renderer);
19875
+ if (this.cullable) {
19876
+ this._renderWithCulling(renderer);
19877
+ } else {
19878
+ this._render(renderer);
19879
+ for (var i2 = 0, j2 = this.children.length; i2 < j2; ++i2) {
19880
+ this.children[i2].render(renderer);
19881
+ }
19779
19882
  }
19780
19883
  if (flush) {
19781
19884
  renderer.batch.flush();
@@ -19836,8 +19939,8 @@ var Container = function(_super) {
19836
19939
  }(DisplayObject);
19837
19940
  Container.prototype.containerUpdateTransform = Container.prototype.updateTransform;
19838
19941
  /*!
19839
- * @pixi/accessibility - v6.2.2
19840
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
19942
+ * @pixi/accessibility - v6.3.0
19943
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
19841
19944
  *
19842
19945
  * @pixi/accessibility is licensed under the MIT License.
19843
19946
  * http://www.opensource.org/licenses/mit-license
@@ -19889,7 +19992,7 @@ var AccessibilityManager = function() {
19889
19992
  this.renderer = renderer;
19890
19993
  this._onKeyDown = this._onKeyDown.bind(this);
19891
19994
  this._onMouseMove = this._onMouseMove.bind(this);
19892
- self.addEventListener("keydown", this._onKeyDown, false);
19995
+ globalThis.addEventListener("keydown", this._onKeyDown, false);
19893
19996
  }
19894
19997
  Object.defineProperty(AccessibilityManager2.prototype, "isActive", {
19895
19998
  get: function() {
@@ -19937,8 +20040,8 @@ var AccessibilityManager = function() {
19937
20040
  return;
19938
20041
  }
19939
20042
  this._isActive = true;
19940
- self.document.addEventListener("mousemove", this._onMouseMove, true);
19941
- self.removeEventListener("keydown", this._onKeyDown, false);
20043
+ globalThis.document.addEventListener("mousemove", this._onMouseMove, true);
20044
+ globalThis.removeEventListener("keydown", this._onKeyDown, false);
19942
20045
  this.renderer.on("postrender", this.update, this);
19943
20046
  (_a3 = this.renderer.view.parentNode) === null || _a3 === void 0 ? void 0 : _a3.appendChild(this.div);
19944
20047
  };
@@ -19948,8 +20051,8 @@ var AccessibilityManager = function() {
19948
20051
  return;
19949
20052
  }
19950
20053
  this._isActive = false;
19951
- self.document.removeEventListener("mousemove", this._onMouseMove, true);
19952
- self.addEventListener("keydown", this._onKeyDown, false);
20054
+ globalThis.document.removeEventListener("mousemove", this._onMouseMove, true);
20055
+ globalThis.addEventListener("keydown", this._onKeyDown, false);
19953
20056
  this.renderer.off("postrender", this.update);
19954
20057
  (_a3 = this.div.parentNode) === null || _a3 === void 0 ? void 0 : _a3.removeChild(this.div);
19955
20058
  };
@@ -20139,8 +20242,8 @@ var AccessibilityManager = function() {
20139
20242
  AccessibilityManager2.prototype.destroy = function() {
20140
20243
  this.destroyTouchHook();
20141
20244
  this.div = null;
20142
- self.document.removeEventListener("mousemove", this._onMouseMove, true);
20143
- self.removeEventListener("keydown", this._onKeyDown);
20245
+ globalThis.document.removeEventListener("mousemove", this._onMouseMove, true);
20246
+ globalThis.removeEventListener("keydown", this._onKeyDown);
20144
20247
  this.pool = null;
20145
20248
  this.children = null;
20146
20249
  this.renderer = null;
@@ -20148,8 +20251,8 @@ var AccessibilityManager = function() {
20148
20251
  return AccessibilityManager2;
20149
20252
  }();
20150
20253
  /*!
20151
- * @pixi/interaction - v6.2.2
20152
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
20254
+ * @pixi/interaction - v6.3.0
20255
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
20153
20256
  *
20154
20257
  * @pixi/interaction is licensed under the MIT License.
20155
20258
  * http://www.opensource.org/licenses/mit-license
@@ -20464,9 +20567,9 @@ var InteractionManager = function(_super) {
20464
20567
  _this.moveWhenInside = false;
20465
20568
  _this.eventsAdded = false;
20466
20569
  _this.tickerAdded = false;
20467
- _this.mouseOverRenderer = !("PointerEvent" in self);
20468
- _this.supportsTouchEvents = "ontouchstart" in self;
20469
- _this.supportsPointerEvents = !!self.PointerEvent;
20570
+ _this.mouseOverRenderer = !("PointerEvent" in globalThis);
20571
+ _this.supportsTouchEvents = "ontouchstart" in globalThis;
20572
+ _this.supportsPointerEvents = !!globalThis.PointerEvent;
20470
20573
  _this.onPointerUp = _this.onPointerUp.bind(_this);
20471
20574
  _this.processPointerUp = _this.processPointerUp.bind(_this);
20472
20575
  _this.onPointerCancel = _this.onPointerCancel.bind(_this);
@@ -20554,25 +20657,25 @@ var InteractionManager = function(_super) {
20554
20657
  return;
20555
20658
  }
20556
20659
  var style = this.interactionDOMElement.style;
20557
- if (self.navigator.msPointerEnabled) {
20660
+ if (globalThis.navigator.msPointerEnabled) {
20558
20661
  style.msContentZooming = "none";
20559
20662
  style.msTouchAction = "none";
20560
20663
  } else if (this.supportsPointerEvents) {
20561
20664
  style.touchAction = "none";
20562
20665
  }
20563
20666
  if (this.supportsPointerEvents) {
20564
- self.document.addEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
20667
+ globalThis.document.addEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
20565
20668
  this.interactionDOMElement.addEventListener("pointerdown", this.onPointerDown, this._eventListenerOptions);
20566
20669
  this.interactionDOMElement.addEventListener("pointerleave", this.onPointerOut, this._eventListenerOptions);
20567
20670
  this.interactionDOMElement.addEventListener("pointerover", this.onPointerOver, this._eventListenerOptions);
20568
- self.addEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
20569
- self.addEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
20671
+ globalThis.addEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
20672
+ globalThis.addEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
20570
20673
  } else {
20571
- self.document.addEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
20674
+ globalThis.document.addEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
20572
20675
  this.interactionDOMElement.addEventListener("mousedown", this.onPointerDown, this._eventListenerOptions);
20573
20676
  this.interactionDOMElement.addEventListener("mouseout", this.onPointerOut, this._eventListenerOptions);
20574
20677
  this.interactionDOMElement.addEventListener("mouseover", this.onPointerOver, this._eventListenerOptions);
20575
- self.addEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
20678
+ globalThis.addEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
20576
20679
  }
20577
20680
  if (this.supportsTouchEvents) {
20578
20681
  this.interactionDOMElement.addEventListener("touchstart", this.onPointerDown, this._eventListenerOptions);
@@ -20587,25 +20690,25 @@ var InteractionManager = function(_super) {
20587
20690
  return;
20588
20691
  }
20589
20692
  var style = this.interactionDOMElement.style;
20590
- if (self.navigator.msPointerEnabled) {
20693
+ if (globalThis.navigator.msPointerEnabled) {
20591
20694
  style.msContentZooming = "";
20592
20695
  style.msTouchAction = "";
20593
20696
  } else if (this.supportsPointerEvents) {
20594
20697
  style.touchAction = "";
20595
20698
  }
20596
20699
  if (this.supportsPointerEvents) {
20597
- self.document.removeEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
20700
+ globalThis.document.removeEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
20598
20701
  this.interactionDOMElement.removeEventListener("pointerdown", this.onPointerDown, this._eventListenerOptions);
20599
20702
  this.interactionDOMElement.removeEventListener("pointerleave", this.onPointerOut, this._eventListenerOptions);
20600
20703
  this.interactionDOMElement.removeEventListener("pointerover", this.onPointerOver, this._eventListenerOptions);
20601
- self.removeEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
20602
- self.removeEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
20704
+ globalThis.removeEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
20705
+ globalThis.removeEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
20603
20706
  } else {
20604
- self.document.removeEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
20707
+ globalThis.document.removeEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
20605
20708
  this.interactionDOMElement.removeEventListener("mousedown", this.onPointerDown, this._eventListenerOptions);
20606
20709
  this.interactionDOMElement.removeEventListener("mouseout", this.onPointerOut, this._eventListenerOptions);
20607
20710
  this.interactionDOMElement.removeEventListener("mouseover", this.onPointerOver, this._eventListenerOptions);
20608
- self.removeEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
20711
+ globalThis.removeEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
20609
20712
  }
20610
20713
  if (this.supportsTouchEvents) {
20611
20714
  this.interactionDOMElement.removeEventListener("touchstart", this.onPointerDown, this._eventListenerOptions);
@@ -20647,7 +20750,7 @@ var InteractionManager = function(_super) {
20647
20750
  InteractionManager2.prototype.setCursorMode = function(mode) {
20648
20751
  mode = mode || "default";
20649
20752
  var applyStyles = true;
20650
- if (self.OffscreenCanvas && this.interactionDOMElement instanceof OffscreenCanvas) {
20753
+ if (globalThis.OffscreenCanvas && this.interactionDOMElement instanceof OffscreenCanvas) {
20651
20754
  applyStyles = false;
20652
20755
  }
20653
20756
  if (this.currentCursorMode === mode) {
@@ -21065,7 +21168,7 @@ var InteractionManager = function(_super) {
21065
21168
  touch.isNormalized = true;
21066
21169
  normalizedEvents.push(touch);
21067
21170
  }
21068
- } else if (!self.MouseEvent || event instanceof MouseEvent && (!this.supportsPointerEvents || !(event instanceof self.PointerEvent))) {
21171
+ } else if (!globalThis.MouseEvent || event instanceof MouseEvent && (!this.supportsPointerEvents || !(event instanceof globalThis.PointerEvent))) {
21069
21172
  var tempEvent = event;
21070
21173
  if (typeof tempEvent.isPrimary === "undefined") {
21071
21174
  tempEvent.isPrimary = true;
@@ -21128,8 +21231,8 @@ var InteractionManager = function(_super) {
21128
21231
  return InteractionManager2;
21129
21232
  }(EventEmitter$3);
21130
21233
  /*!
21131
- * @pixi/app - v6.2.2
21132
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
21234
+ * @pixi/app - v6.3.0
21235
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
21133
21236
  *
21134
21237
  * @pixi/app is licensed under the MIT License.
21135
21238
  * http://www.opensource.org/licenses/mit-license
@@ -21188,10 +21291,10 @@ var ResizePlugin = function() {
21188
21291
  var _this = this;
21189
21292
  Object.defineProperty(this, "resizeTo", {
21190
21293
  set: function(dom) {
21191
- self.removeEventListener("resize", this.queueResize);
21294
+ globalThis.removeEventListener("resize", this.queueResize);
21192
21295
  this._resizeTo = dom;
21193
21296
  if (dom) {
21194
- self.addEventListener("resize", this.queueResize);
21297
+ globalThis.addEventListener("resize", this.queueResize);
21195
21298
  this.resize();
21196
21299
  }
21197
21300
  },
@@ -21221,9 +21324,9 @@ var ResizePlugin = function() {
21221
21324
  _this.cancelResize();
21222
21325
  var width;
21223
21326
  var height;
21224
- if (_this._resizeTo === self) {
21225
- width = self.innerWidth;
21226
- height = self.innerHeight;
21327
+ if (_this._resizeTo === globalThis.window) {
21328
+ width = globalThis.innerWidth;
21329
+ height = globalThis.innerHeight;
21227
21330
  } else {
21228
21331
  var _a3 = _this._resizeTo, clientWidth = _a3.clientWidth, clientHeight = _a3.clientHeight;
21229
21332
  width = clientWidth;
@@ -21236,7 +21339,7 @@ var ResizePlugin = function() {
21236
21339
  this.resizeTo = options.resizeTo || null;
21237
21340
  };
21238
21341
  ResizePlugin2.destroy = function() {
21239
- self.removeEventListener("resize", this.queueResize);
21342
+ globalThis.removeEventListener("resize", this.queueResize);
21240
21343
  this.cancelResize();
21241
21344
  this.cancelResize = null;
21242
21345
  this.queueResize = null;
@@ -21247,8 +21350,8 @@ var ResizePlugin = function() {
21247
21350
  }();
21248
21351
  Application.registerPlugin(ResizePlugin);
21249
21352
  /*!
21250
- * @pixi/extract - v6.2.2
21251
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
21353
+ * @pixi/extract - v6.3.0
21354
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
21252
21355
  *
21253
21356
  * @pixi/extract is licensed under the MIT License.
21254
21357
  * http://www.opensource.org/licenses/mit-license
@@ -21372,8 +21475,8 @@ var Extract = function() {
21372
21475
  return Extract2;
21373
21476
  }();
21374
21477
  /*!
21375
- * @pixi/compressed-textures - v6.2.2
21376
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
21478
+ * @pixi/compressed-textures - v6.3.0
21479
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
21377
21480
  *
21378
21481
  * @pixi/compressed-textures is licensed under the MIT License.
21379
21482
  * http://www.opensource.org/licenses/mit-license
@@ -22086,8 +22189,8 @@ var KTX_FIELDS = {
22086
22189
  BYTES_OF_KEY_VALUE_DATA: 60
22087
22190
  };
22088
22191
  var FILE_HEADER_SIZE = 64;
22089
- var TYPES_TO_BYTES_PER_COMPONENT = (_a$2 = {}, _a$2[TYPES$3.UNSIGNED_BYTE] = 1, _a$2[TYPES$3.UNSIGNED_SHORT] = 2, _a$2[TYPES$3.FLOAT] = 4, _a$2[TYPES$3.HALF_FLOAT] = 8, _a$2);
22090
- var FORMATS_TO_COMPONENTS = (_b$1 = {}, _b$1[FORMATS$3.RGBA] = 4, _b$1[FORMATS$3.RGB] = 3, _b$1[FORMATS$3.LUMINANCE] = 1, _b$1[FORMATS$3.LUMINANCE_ALPHA] = 2, _b$1[FORMATS$3.ALPHA] = 1, _b$1);
22192
+ var TYPES_TO_BYTES_PER_COMPONENT = (_a$2 = {}, _a$2[TYPES$3.UNSIGNED_BYTE] = 1, _a$2[TYPES$3.UNSIGNED_SHORT] = 2, _a$2[TYPES$3.INT] = 4, _a$2[TYPES$3.UNSIGNED_INT] = 4, _a$2[TYPES$3.FLOAT] = 4, _a$2[TYPES$3.HALF_FLOAT] = 8, _a$2);
22193
+ var FORMATS_TO_COMPONENTS = (_b$1 = {}, _b$1[FORMATS$3.RGBA] = 4, _b$1[FORMATS$3.RGB] = 3, _b$1[FORMATS$3.RG] = 2, _b$1[FORMATS$3.RED] = 1, _b$1[FORMATS$3.LUMINANCE] = 1, _b$1[FORMATS$3.LUMINANCE_ALPHA] = 2, _b$1[FORMATS$3.ALPHA] = 1, _b$1);
22091
22194
  var TYPES_TO_BYTES_PER_PIXEL = (_c = {}, _c[TYPES$3.UNSIGNED_SHORT_4_4_4_4] = 2, _c[TYPES$3.UNSIGNED_SHORT_5_5_5_1] = 2, _c[TYPES$3.UNSIGNED_SHORT_5_6_5] = 2, _c);
22092
22195
  var KTXLoader = function() {
22093
22196
  function KTXLoader2() {
@@ -22095,8 +22198,31 @@ var KTXLoader = function() {
22095
22198
  KTXLoader2.use = function(resource, next) {
22096
22199
  if (resource.extension === "ktx" && resource.data) {
22097
22200
  try {
22098
- var url2 = resource.name || resource.url;
22099
- Object.assign(resource, registerCompressedTextures(url2, KTXLoader2.parse(url2, resource.data), resource.metadata));
22201
+ var url_1 = resource.name || resource.url;
22202
+ var _a3 = KTXLoader2.parse(url_1, resource.data), compressed = _a3.compressed, uncompressed = _a3.uncompressed;
22203
+ if (compressed) {
22204
+ Object.assign(resource, registerCompressedTextures(url_1, compressed, resource.metadata));
22205
+ } else if (uncompressed) {
22206
+ var textures_1 = {};
22207
+ uncompressed.forEach(function(image, i2) {
22208
+ var texture = new Texture(new BaseTexture(image.resource, {
22209
+ mipmap: MIPMAP_MODES$3.OFF,
22210
+ alphaMode: ALPHA_MODES$3.NO_PREMULTIPLIED_ALPHA,
22211
+ type: image.type,
22212
+ format: image.format
22213
+ }));
22214
+ var cacheID = url_1 + "-" + (i2 + 1);
22215
+ BaseTexture.addToCache(texture.baseTexture, cacheID);
22216
+ Texture.addToCache(texture, cacheID);
22217
+ if (i2 === 0) {
22218
+ textures_1[url_1] = texture;
22219
+ BaseTexture.addToCache(texture.baseTexture, url_1);
22220
+ Texture.addToCache(texture, url_1);
22221
+ }
22222
+ textures_1[cacheID] = texture;
22223
+ });
22224
+ Object.assign(resource, { textures: textures_1 });
22225
+ }
22100
22226
  } catch (err) {
22101
22227
  next(err);
22102
22228
  return;
@@ -22168,8 +22294,8 @@ var KTXLoader = function() {
22168
22294
  }
22169
22295
  mips[mipmapLevel] = {
22170
22296
  levelID: mipmapLevel,
22171
- levelWidth: numberOfMipmapLevels > 1 ? mipWidth : alignedMipWidth,
22172
- levelHeight: numberOfMipmapLevels > 1 ? mipHeight : alignedMipHeight,
22297
+ levelWidth: numberOfMipmapLevels > 1 || glType !== 0 ? mipWidth : alignedMipWidth,
22298
+ levelHeight: numberOfMipmapLevels > 1 || glType !== 0 ? mipHeight : alignedMipHeight,
22173
22299
  levelBuffer: new Uint8Array(arrayBuffer, elementOffset, mipByteSize)
22174
22300
  };
22175
22301
  elementOffset += mipByteSize;
@@ -22183,17 +22309,41 @@ var KTXLoader = function() {
22183
22309
  mipByteSize = alignedMipWidth * alignedMipHeight * imagePixelByteSize;
22184
22310
  }
22185
22311
  if (glType !== 0) {
22186
- throw new Error("TODO: Uncompressed");
22187
- }
22188
- return imageBuffers.map(function(levelBuffers) {
22189
- return new CompressedTextureResource(null, {
22190
- format: glInternalFormat,
22191
- width: pixelWidth,
22192
- height: pixelHeight,
22193
- levels: numberOfMipmapLevels,
22194
- levelBuffers
22195
- });
22196
- });
22312
+ return {
22313
+ uncompressed: imageBuffers.map(function(levelBuffers) {
22314
+ var buffer = levelBuffers[0].levelBuffer;
22315
+ var convertToInt = false;
22316
+ if (glType === TYPES$3.FLOAT) {
22317
+ buffer = new Float32Array(levelBuffers[0].levelBuffer.buffer, levelBuffers[0].levelBuffer.byteOffset, levelBuffers[0].levelBuffer.byteLength / 4);
22318
+ } else if (glType === TYPES$3.UNSIGNED_INT) {
22319
+ convertToInt = true;
22320
+ buffer = new Uint32Array(levelBuffers[0].levelBuffer.buffer, levelBuffers[0].levelBuffer.byteOffset, levelBuffers[0].levelBuffer.byteLength / 4);
22321
+ } else if (glType === TYPES$3.INT) {
22322
+ convertToInt = true;
22323
+ buffer = new Int32Array(levelBuffers[0].levelBuffer.buffer, levelBuffers[0].levelBuffer.byteOffset, levelBuffers[0].levelBuffer.byteLength / 4);
22324
+ }
22325
+ return {
22326
+ resource: new BufferResource(buffer, {
22327
+ width: levelBuffers[0].levelWidth,
22328
+ height: levelBuffers[0].levelHeight
22329
+ }),
22330
+ type: glType,
22331
+ format: convertToInt ? KTXLoader2.convertFormatToInteger(glFormat) : glFormat
22332
+ };
22333
+ })
22334
+ };
22335
+ }
22336
+ return {
22337
+ compressed: imageBuffers.map(function(levelBuffers) {
22338
+ return new CompressedTextureResource(null, {
22339
+ format: glInternalFormat,
22340
+ width: pixelWidth,
22341
+ height: pixelHeight,
22342
+ levels: numberOfMipmapLevels,
22343
+ levelBuffers
22344
+ });
22345
+ })
22346
+ };
22197
22347
  };
22198
22348
  KTXLoader2.validate = function(url2, dataView) {
22199
22349
  for (var i2 = 0; i2 < FILE_IDENTIFIER.length; i2++) {
@@ -22204,11 +22354,25 @@ var KTXLoader = function() {
22204
22354
  }
22205
22355
  return true;
22206
22356
  };
22357
+ KTXLoader2.convertFormatToInteger = function(format2) {
22358
+ switch (format2) {
22359
+ case FORMATS$3.RGBA:
22360
+ return FORMATS$3.RGBA_INTEGER;
22361
+ case FORMATS$3.RGB:
22362
+ return FORMATS$3.RGB_INTEGER;
22363
+ case FORMATS$3.RG:
22364
+ return FORMATS$3.RG_INTEGER;
22365
+ case FORMATS$3.RED:
22366
+ return FORMATS$3.RED_INTEGER;
22367
+ default:
22368
+ return format2;
22369
+ }
22370
+ };
22207
22371
  return KTXLoader2;
22208
22372
  }();
22209
22373
  /*!
22210
- * @pixi/particle-container - v6.2.2
22211
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
22374
+ * @pixi/particle-container - v6.3.0
22375
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
22212
22376
  *
22213
22377
  * @pixi/particle-container is licensed under the MIT License.
22214
22378
  * http://www.opensource.org/licenses/mit-license
@@ -22656,8 +22820,8 @@ var ParticleRenderer = function(_super) {
22656
22820
  return ParticleRenderer2;
22657
22821
  }(ObjectRenderer);
22658
22822
  /*!
22659
- * @pixi/graphics - v6.2.2
22660
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
22823
+ * @pixi/graphics - v6.3.0
22824
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
22661
22825
  *
22662
22826
  * @pixi/graphics is licensed under the MIT License.
22663
22827
  * http://www.opensource.org/licenses/mit-license
@@ -22760,6 +22924,35 @@ function __extends$l(d2, b2) {
22760
22924
  }
22761
22925
  d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
22762
22926
  }
22927
+ function fixOrientation(points, hole) {
22928
+ var _a3, _b3;
22929
+ if (hole === void 0) {
22930
+ hole = false;
22931
+ }
22932
+ var m2 = points.length;
22933
+ if (m2 < 6) {
22934
+ return;
22935
+ }
22936
+ var area2 = 0;
22937
+ for (var i2 = 0, x1 = points[m2 - 2], y1 = points[m2 - 1]; i2 < m2; i2 += 2) {
22938
+ var x2 = points[i2];
22939
+ var y2 = points[i2 + 1];
22940
+ area2 += (x2 - x1) * (y2 + y1);
22941
+ x1 = x2;
22942
+ y1 = y2;
22943
+ }
22944
+ if (!hole && area2 > 0 || hole && area2 <= 0) {
22945
+ var n = m2 / 2;
22946
+ for (var i2 = n + n % 2; i2 < m2; i2 += 2) {
22947
+ var i1 = m2 - i2 - 2;
22948
+ var i22 = m2 - i2 - 1;
22949
+ var i3 = i2;
22950
+ var i4 = i2 + 1;
22951
+ _a3 = [points[i3], points[i1]], points[i1] = _a3[0], points[i3] = _a3[1];
22952
+ _b3 = [points[i4], points[i22]], points[i22] = _b3[0], points[i4] = _b3[1];
22953
+ }
22954
+ }
22955
+ }
22763
22956
  var buildPoly = {
22764
22957
  build: function(graphicsData) {
22765
22958
  graphicsData.points = graphicsData.shape.points.slice();
@@ -22770,9 +22963,11 @@ var buildPoly = {
22770
22963
  var verts = graphicsGeometry.points;
22771
22964
  var indices2 = graphicsGeometry.indices;
22772
22965
  if (points.length >= 6) {
22966
+ fixOrientation(points, false);
22773
22967
  var holeArray = [];
22774
22968
  for (var i2 = 0; i2 < holes.length; i2++) {
22775
22969
  var hole = holes[i2];
22970
+ fixOrientation(hole.points, true);
22776
22971
  holeArray.push(points.length / 2);
22777
22972
  points = points.concat(hole.points);
22778
22973
  }
@@ -22794,31 +22989,107 @@ var buildPoly = {
22794
22989
  };
22795
22990
  var buildCircle = {
22796
22991
  build: function(graphicsData) {
22797
- var circleData = graphicsData.shape;
22798
22992
  var points = graphicsData.points;
22799
- var x = circleData.x;
22800
- var y2 = circleData.y;
22801
- var width;
22802
- var height;
22803
- points.length = 0;
22993
+ var x;
22994
+ var y2;
22995
+ var dx;
22996
+ var dy;
22997
+ var rx;
22998
+ var ry;
22804
22999
  if (graphicsData.type === SHAPES.CIRC) {
22805
- width = circleData.radius;
22806
- height = circleData.radius;
23000
+ var circle = graphicsData.shape;
23001
+ x = circle.x;
23002
+ y2 = circle.y;
23003
+ rx = ry = circle.radius;
23004
+ dx = dy = 0;
23005
+ } else if (graphicsData.type === SHAPES.ELIP) {
23006
+ var ellipse = graphicsData.shape;
23007
+ x = ellipse.x;
23008
+ y2 = ellipse.y;
23009
+ rx = ellipse.width;
23010
+ ry = ellipse.height;
23011
+ dx = dy = 0;
22807
23012
  } else {
22808
- var ellipseData = graphicsData.shape;
22809
- width = ellipseData.width;
22810
- height = ellipseData.height;
23013
+ var roundedRect = graphicsData.shape;
23014
+ var halfWidth = roundedRect.width / 2;
23015
+ var halfHeight = roundedRect.height / 2;
23016
+ x = roundedRect.x + halfWidth;
23017
+ y2 = roundedRect.y + halfHeight;
23018
+ rx = ry = Math.max(0, Math.min(roundedRect.radius, Math.min(halfWidth, halfHeight)));
23019
+ dx = halfWidth - rx;
23020
+ dy = halfHeight - ry;
23021
+ }
23022
+ var n = Math.ceil(2.3 * Math.sqrt(rx + ry));
23023
+ var m2 = n * 8 + (dx ? 4 : 0) + (dy ? 4 : 0);
23024
+ points.length = m2;
23025
+ if (m2 === 0) {
23026
+ return;
22811
23027
  }
22812
- if (width === 0 || height === 0) {
23028
+ if (n === 0) {
23029
+ points.length = 8;
23030
+ points[0] = points[6] = x + dx;
23031
+ points[1] = points[3] = y2 + dy;
23032
+ points[2] = points[4] = x - dx;
23033
+ points[5] = points[7] = y2 - dy;
22813
23034
  return;
22814
23035
  }
22815
- var totalSegs = Math.floor(30 * Math.sqrt(circleData.radius)) || Math.floor(15 * Math.sqrt(width + height));
22816
- totalSegs /= 2.3;
22817
- var seg = Math.PI * 2 / totalSegs;
22818
- for (var i2 = 0; i2 < totalSegs - 0.5; i2++) {
22819
- points.push(x + Math.sin(-seg * i2) * width, y2 + Math.cos(-seg * i2) * height);
23036
+ var j1 = 0;
23037
+ var j2 = n * 4 + (dx ? 2 : 0) + 2;
23038
+ var j3 = j2;
23039
+ var j4 = m2;
23040
+ {
23041
+ var x0 = dx + rx;
23042
+ var y0 = dy;
23043
+ var x1 = x + x0;
23044
+ var x2 = x - x0;
23045
+ var y1 = y2 + y0;
23046
+ points[j1++] = x1;
23047
+ points[j1++] = y1;
23048
+ points[--j2] = y1;
23049
+ points[--j2] = x2;
23050
+ if (dy) {
23051
+ var y22 = y2 - y0;
23052
+ points[j3++] = x2;
23053
+ points[j3++] = y22;
23054
+ points[--j4] = y22;
23055
+ points[--j4] = x1;
23056
+ }
23057
+ }
23058
+ for (var i2 = 1; i2 < n; i2++) {
23059
+ var a2 = Math.PI / 2 * (i2 / n);
23060
+ var x0 = dx + Math.cos(a2) * rx;
23061
+ var y0 = dy + Math.sin(a2) * ry;
23062
+ var x1 = x + x0;
23063
+ var x2 = x - x0;
23064
+ var y1 = y2 + y0;
23065
+ var y22 = y2 - y0;
23066
+ points[j1++] = x1;
23067
+ points[j1++] = y1;
23068
+ points[--j2] = y1;
23069
+ points[--j2] = x2;
23070
+ points[j3++] = x2;
23071
+ points[j3++] = y22;
23072
+ points[--j4] = y22;
23073
+ points[--j4] = x1;
23074
+ }
23075
+ {
23076
+ var x0 = dx;
23077
+ var y0 = dy + ry;
23078
+ var x1 = x + x0;
23079
+ var x2 = x - x0;
23080
+ var y1 = y2 + y0;
23081
+ var y22 = y2 - y0;
23082
+ points[j1++] = x1;
23083
+ points[j1++] = y1;
23084
+ points[--j4] = y22;
23085
+ points[--j4] = x1;
23086
+ if (dx) {
23087
+ points[j1++] = x2;
23088
+ points[j1++] = y1;
23089
+ points[--j4] = y22;
23090
+ points[--j4] = x2;
23091
+ }
22820
23092
  }
22821
- points.push(points[0], points[1]);
22822
23093
  },
22823
23094
  triangulate: function(graphicsData, graphicsGeometry) {
22824
23095
  var points = graphicsData.points;
@@ -22826,15 +23097,26 @@ var buildCircle = {
22826
23097
  var indices2 = graphicsGeometry.indices;
22827
23098
  var vertPos = verts.length / 2;
22828
23099
  var center = vertPos;
22829
- var circle = graphicsData.shape;
23100
+ var x;
23101
+ var y2;
23102
+ if (graphicsData.type !== SHAPES.RREC) {
23103
+ var circle = graphicsData.shape;
23104
+ x = circle.x;
23105
+ y2 = circle.y;
23106
+ } else {
23107
+ var roundedRect = graphicsData.shape;
23108
+ x = roundedRect.x + roundedRect.width / 2;
23109
+ y2 = roundedRect.y + roundedRect.height / 2;
23110
+ }
22830
23111
  var matrix = graphicsData.matrix;
22831
- var x = circle.x;
22832
- var y2 = circle.y;
22833
23112
  verts.push(graphicsData.matrix ? matrix.a * x + matrix.c * y2 + matrix.tx : x, graphicsData.matrix ? matrix.b * x + matrix.d * y2 + matrix.ty : y2);
22834
- for (var i2 = 0; i2 < points.length; i2 += 2) {
23113
+ vertPos++;
23114
+ verts.push(points[0], points[1]);
23115
+ for (var i2 = 2; i2 < points.length; i2 += 2) {
22835
23116
  verts.push(points[i2], points[i2 + 1]);
22836
23117
  indices2.push(vertPos++, center, vertPos);
22837
23118
  }
23119
+ indices2.push(center + 1, center, vertPos);
22838
23120
  }
22839
23121
  };
22840
23122
  var buildRectangle = {
@@ -22889,6 +23171,10 @@ function quadraticBezierCurve(fromX, fromY, cpX, cpY, toX, toY, out) {
22889
23171
  }
22890
23172
  var buildRoundedRectangle = {
22891
23173
  build: function(graphicsData) {
23174
+ if (Graphics.nextRoundedRectBehavior) {
23175
+ buildCircle.build(graphicsData);
23176
+ return;
23177
+ }
22892
23178
  var rrectData = graphicsData.shape;
22893
23179
  var points = graphicsData.points;
22894
23180
  var x = rrectData.x;
@@ -22907,6 +23193,10 @@ var buildRoundedRectangle = {
22907
23193
  }
22908
23194
  },
22909
23195
  triangulate: function(graphicsData, graphicsGeometry) {
23196
+ if (Graphics.nextRoundedRectBehavior) {
23197
+ buildCircle.triangulate(graphicsData, graphicsGeometry);
23198
+ return;
23199
+ }
22910
23200
  var points = graphicsData.points;
22911
23201
  var verts = graphicsGeometry.points;
22912
23202
  var indices2 = graphicsGeometry.indices;
@@ -23386,14 +23676,6 @@ var _a;
23386
23676
  var FILL_COMMANDS = (_a = {}, _a[SHAPES.POLY] = buildPoly, _a[SHAPES.CIRC] = buildCircle, _a[SHAPES.ELIP] = buildCircle, _a[SHAPES.RECT] = buildRectangle, _a[SHAPES.RREC] = buildRoundedRectangle, _a);
23387
23677
  var BATCH_POOL = [];
23388
23678
  var DRAW_CALL_POOL = [];
23389
- function isPolygonClockwise(polygon) {
23390
- var points = polygon.points;
23391
- var sum2 = 0;
23392
- for (var i2 = 0; i2 < points.length - 2; i2 += 2) {
23393
- sum2 += (points[i2 + 2] - points[i2]) * (points[i2 + 3] + points[i2 + 1]);
23394
- }
23395
- return sum2 > 0;
23396
- }
23397
23679
  var GraphicsData = function() {
23398
23680
  function GraphicsData2(shape, fillStyle, lineStyle, matrix) {
23399
23681
  if (fillStyle === void 0) {
@@ -23607,6 +23889,9 @@ var GraphicsGeometry = function(_super) {
23607
23889
  if (data.matrix) {
23608
23890
  this.transformPoints(data.points, data.matrix);
23609
23891
  }
23892
+ if (fillStyle.visible || lineStyle.visible) {
23893
+ this.processHoles(data.holes);
23894
+ }
23610
23895
  for (var j2 = 0; j2 < 2; j2++) {
23611
23896
  var style = j2 === 0 ? fillStyle : lineStyle;
23612
23897
  if (!style.visible) {
@@ -23811,7 +24096,6 @@ var GraphicsGeometry = function(_super) {
23811
24096
  };
23812
24097
  GraphicsGeometry2.prototype.processFill = function(data) {
23813
24098
  if (data.holes.length) {
23814
- this.processHoles(data.holes);
23815
24099
  buildPoly.triangulate(data, this);
23816
24100
  } else {
23817
24101
  var command = FILL_COMMANDS[data.type];
@@ -23848,17 +24132,7 @@ var GraphicsGeometry = function(_super) {
23848
24132
  var nextMatrix = data.matrix || Matrix.IDENTITY;
23849
24133
  var lineWidth = 0;
23850
24134
  if (lineStyle && lineStyle.visible) {
23851
- var alignment = lineStyle.alignment;
23852
- lineWidth = lineStyle.width;
23853
- if (type === SHAPES.POLY) {
23854
- if (isPolygonClockwise(shape)) {
23855
- lineWidth = lineWidth * (1 - alignment);
23856
- } else {
23857
- lineWidth = lineWidth * alignment;
23858
- }
23859
- } else {
23860
- lineWidth = lineWidth * Math.max(0, alignment);
23861
- }
24135
+ lineWidth = lineStyle.width * Math.max(0, lineStyle.alignment);
23862
24136
  }
23863
24137
  if (curMatrix !== nextMatrix) {
23864
24138
  if (!sequenceBounds.isEmpty()) {
@@ -24526,12 +24800,13 @@ var Graphics = function(_super) {
24526
24800
  this.batches = null;
24527
24801
  _super.prototype.destroy.call(this, options);
24528
24802
  };
24803
+ Graphics2.nextRoundedRectBehavior = false;
24529
24804
  Graphics2._TEMP_POINT = new Point();
24530
24805
  return Graphics2;
24531
24806
  }(Container);
24532
24807
  /*!
24533
- * @pixi/sprite - v6.2.2
24534
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
24808
+ * @pixi/sprite - v6.3.0
24809
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
24535
24810
  *
24536
24811
  * @pixi/sprite is licensed under the MIT License.
24537
24812
  * http://www.opensource.org/licenses/mit-license
@@ -24847,8 +25122,8 @@ var Sprite = function(_super) {
24847
25122
  return Sprite2;
24848
25123
  }(Container);
24849
25124
  /*!
24850
- * @pixi/text - v6.2.2
24851
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
25125
+ * @pixi/text - v6.3.0
25126
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
24852
25127
  *
24853
25128
  * @pixi/text is licensed under the MIT License.
24854
25129
  * http://www.opensource.org/licenses/mit-license
@@ -25838,7 +26113,7 @@ var Text = function(_super) {
25838
26113
  }
25839
26114
  var style = this._style;
25840
26115
  var letterSpacing = style.letterSpacing;
25841
- var supportLetterSpacing = "letterSpacing" in CanvasRenderingContext2D.prototype || "textLetterSpacing" in CanvasRenderingContext2D.prototype;
26116
+ var supportLetterSpacing = Text2.experimentalLetterSpacing && ("letterSpacing" in CanvasRenderingContext2D.prototype || "textLetterSpacing" in CanvasRenderingContext2D.prototype);
25842
26117
  if (letterSpacing === 0 || supportLetterSpacing) {
25843
26118
  if (supportLetterSpacing) {
25844
26119
  this.context.letterSpacing = letterSpacing;
@@ -26073,11 +26348,12 @@ var Text = function(_super) {
26073
26348
  configurable: true
26074
26349
  });
26075
26350
  Text2.nextLineHeightBehavior = false;
26351
+ Text2.experimentalLetterSpacing = false;
26076
26352
  return Text2;
26077
26353
  }(Sprite);
26078
26354
  /*!
26079
- * @pixi/prepare - v6.2.2
26080
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
26355
+ * @pixi/prepare - v6.3.0
26356
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
26081
26357
  *
26082
26358
  * @pixi/prepare is licensed under the MIT License.
26083
26359
  * http://www.opensource.org/licenses/mit-license
@@ -26369,8 +26645,8 @@ var Prepare = function(_super) {
26369
26645
  return Prepare2;
26370
26646
  }(BasePrepare);
26371
26647
  /*!
26372
- * @pixi/spritesheet - v6.2.2
26373
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
26648
+ * @pixi/spritesheet - v6.3.0
26649
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
26374
26650
  *
26375
26651
  * @pixi/spritesheet is licensed under the MIT License.
26376
26652
  * http://www.opensource.org/licenses/mit-license
@@ -26560,8 +26836,8 @@ var SpritesheetLoader = function() {
26560
26836
  return SpritesheetLoader2;
26561
26837
  }();
26562
26838
  /*!
26563
- * @pixi/sprite-tiling - v6.2.2
26564
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
26839
+ * @pixi/sprite-tiling - v6.3.0
26840
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
26565
26841
  *
26566
26842
  * @pixi/sprite-tiling is licensed under the MIT License.
26567
26843
  * http://www.opensource.org/licenses/mit-license
@@ -26810,8 +27086,8 @@ var TilingSpriteRenderer = function(_super) {
26810
27086
  return TilingSpriteRenderer2;
26811
27087
  }(ObjectRenderer);
26812
27088
  /*!
26813
- * @pixi/mesh - v6.2.2
26814
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
27089
+ * @pixi/mesh - v6.3.0
27090
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
26815
27091
  *
26816
27092
  * @pixi/mesh is licensed under the MIT License.
26817
27093
  * http://www.opensource.org/licenses/mit-license
@@ -27221,8 +27497,8 @@ var MeshGeometry = function(_super) {
27221
27497
  return MeshGeometry2;
27222
27498
  }(Geometry);
27223
27499
  /*!
27224
- * @pixi/text-bitmap - v6.2.2
27225
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
27500
+ * @pixi/text-bitmap - v6.3.0
27501
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
27226
27502
  *
27227
27503
  * @pixi/text-bitmap is licensed under the MIT License.
27228
27504
  * http://www.opensource.org/licenses/mit-license
@@ -27418,13 +27694,13 @@ var XMLStringFormat = function() {
27418
27694
  }
27419
27695
  XMLStringFormat2.test = function(data) {
27420
27696
  if (typeof data === "string" && data.indexOf("<font>") > -1) {
27421
- var xml = new self.DOMParser().parseFromString(data, "text/xml");
27697
+ var xml = new globalThis.DOMParser().parseFromString(data, "text/xml");
27422
27698
  return XMLFormat.test(xml);
27423
27699
  }
27424
27700
  return false;
27425
27701
  };
27426
27702
  XMLStringFormat2.parse = function(xmlTxt) {
27427
- var xml = new self.DOMParser().parseFromString(xmlTxt, "text/xml");
27703
+ var xml = new globalThis.DOMParser().parseFromString(xmlTxt, "text/xml");
27428
27704
  return XMLFormat.parse(xml);
27429
27705
  };
27430
27706
  return XMLStringFormat2;
@@ -27884,7 +28160,7 @@ var charRenderDataPool = [];
27884
28160
  charRenderData.position.y = pos.y + charData.yOffset;
27885
28161
  charRenderData.prevSpaces = spaceCount;
27886
28162
  chars2.push(charRenderData);
27887
- lastLineWidth = charRenderData.position.x + charData.texture.orig.width;
28163
+ lastLineWidth = charRenderData.position.x + Math.max(charData.xAdvance, charData.texture.orig.width);
27888
28164
  pos.x += charData.xAdvance + this._letterSpacing;
27889
28165
  maxLineHeight = Math.max(maxLineHeight, charData.yOffset + charData.texture.height);
27890
28166
  prevCharCode = charCode;
@@ -28350,8 +28626,8 @@ var BitmapFontLoader = function() {
28350
28626
  return BitmapFontLoader2;
28351
28627
  }();
28352
28628
  /*!
28353
- * @pixi/filter-alpha - v6.2.2
28354
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
28629
+ * @pixi/filter-alpha - v6.3.0
28630
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
28355
28631
  *
28356
28632
  * @pixi/filter-alpha is licensed under the MIT License.
28357
28633
  * http://www.opensource.org/licenses/mit-license
@@ -28413,8 +28689,8 @@ var fragment$4 = "varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nun
28413
28689
  return AlphaFilter;
28414
28690
  })(Filter);
28415
28691
  /*!
28416
- * @pixi/filter-blur - v6.2.2
28417
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
28692
+ * @pixi/filter-blur - v6.3.0
28693
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
28418
28694
  *
28419
28695
  * @pixi/filter-blur is licensed under the MIT License.
28420
28696
  * http://www.opensource.org/licenses/mit-license
@@ -28512,8 +28788,8 @@ function generateBlurFragSource(kernelSize) {
28512
28788
  return fragSource;
28513
28789
  }
28514
28790
  /*!
28515
- * @pixi/constants - v6.2.2
28516
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
28791
+ * @pixi/constants - v6.3.0
28792
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
28517
28793
  *
28518
28794
  * @pixi/constants is licensed under the MIT License.
28519
28795
  * http://www.opensource.org/licenses/mit-license
@@ -28903,8 +29179,8 @@ var BlurFilterPass = function(_super) {
28903
29179
  return BlurFilter;
28904
29180
  })(Filter);
28905
29181
  /*!
28906
- * @pixi/filter-color-matrix - v6.2.2
28907
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
29182
+ * @pixi/filter-color-matrix - v6.3.0
29183
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
28908
29184
  *
28909
29185
  * @pixi/filter-color-matrix is licensed under the MIT License.
28910
29186
  * http://www.opensource.org/licenses/mit-license
@@ -29581,8 +29857,8 @@ var ColorMatrixFilter = function(_super) {
29581
29857
  }(Filter);
29582
29858
  ColorMatrixFilter.prototype.grayscale = ColorMatrixFilter.prototype.greyscale;
29583
29859
  /*!
29584
- * @pixi/filter-displacement - v6.2.2
29585
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
29860
+ * @pixi/filter-displacement - v6.3.0
29861
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29586
29862
  *
29587
29863
  * @pixi/filter-displacement is licensed under the MIT License.
29588
29864
  * http://www.opensource.org/licenses/mit-license
@@ -29670,8 +29946,8 @@ var vertex$1 = "attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix
29670
29946
  return DisplacementFilter;
29671
29947
  })(Filter);
29672
29948
  /*!
29673
- * @pixi/filter-fxaa - v6.2.2
29674
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
29949
+ * @pixi/filter-fxaa - v6.3.0
29950
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29675
29951
  *
29676
29952
  * @pixi/filter-fxaa is licensed under the MIT License.
29677
29953
  * http://www.opensource.org/licenses/mit-license
@@ -29840,8 +30116,8 @@ void main() {
29840
30116
  return FXAAFilter;
29841
30117
  })(Filter);
29842
30118
  /*!
29843
- * @pixi/filter-noise - v6.2.2
29844
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30119
+ * @pixi/filter-noise - v6.3.0
30120
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29845
30121
  *
29846
30122
  * @pixi/filter-noise is licensed under the MIT License.
29847
30123
  * http://www.opensource.org/licenses/mit-license
@@ -29920,15 +30196,15 @@ var fragment = "precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying v
29920
30196
  return NoiseFilter;
29921
30197
  })(Filter);
29922
30198
  /*!
29923
- * @pixi/mixin-cache-as-bitmap - v6.2.2
29924
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30199
+ * @pixi/mixin-cache-as-bitmap - v6.3.0
30200
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29925
30201
  *
29926
30202
  * @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
29927
30203
  * http://www.opensource.org/licenses/mit-license
29928
30204
  */
29929
30205
  /*!
29930
- * @pixi/constants - v6.2.2
29931
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30206
+ * @pixi/constants - v6.3.0
30207
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29932
30208
  *
29933
30209
  * @pixi/constants is licensed under the MIT License.
29934
30210
  * http://www.opensource.org/licenses/mit-license
@@ -30358,8 +30634,8 @@ DisplayObject.prototype._cacheAsBitmapDestroy = function _cacheAsBitmapDestroy(o
30358
30634
  this.destroy(options);
30359
30635
  };
30360
30636
  /*!
30361
- * @pixi/mixin-get-child-by-name - v6.2.2
30362
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30637
+ * @pixi/mixin-get-child-by-name - v6.3.0
30638
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30363
30639
  *
30364
30640
  * @pixi/mixin-get-child-by-name is licensed under the MIT License.
30365
30641
  * http://www.opensource.org/licenses/mit-license
@@ -30386,8 +30662,8 @@ Container.prototype.getChildByName = function getChildByName(name, deep) {
30386
30662
  return null;
30387
30663
  };
30388
30664
  /*!
30389
- * @pixi/mixin-get-global-position - v6.2.2
30390
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30665
+ * @pixi/mixin-get-global-position - v6.3.0
30666
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30391
30667
  *
30392
30668
  * @pixi/mixin-get-global-position is licensed under the MIT License.
30393
30669
  * http://www.opensource.org/licenses/mit-license
@@ -30408,8 +30684,8 @@ DisplayObject.prototype.getGlobalPosition = function getGlobalPosition(point, sk
30408
30684
  return point;
30409
30685
  };
30410
30686
  /*!
30411
- * @pixi/mesh-extras - v6.2.2
30412
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30687
+ * @pixi/mesh-extras - v6.3.0
30688
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30413
30689
  *
30414
30690
  * @pixi/mesh-extras is licensed under the MIT License.
30415
30691
  * http://www.opensource.org/licenses/mit-license
@@ -30890,8 +31166,8 @@ var DEFAULT_BORDER_SIZE = 10;
30890
31166
  return NineSlicePlane;
30891
31167
  })(SimplePlane);
30892
31168
  /*!
30893
- * @pixi/sprite-animated - v6.2.2
30894
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
31169
+ * @pixi/sprite-animated - v6.3.0
31170
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30895
31171
  *
30896
31172
  * @pixi/sprite-animated is licensed under the MIT License.
30897
31173
  * http://www.opensource.org/licenses/mit-license
@@ -31141,8 +31417,8 @@ var AnimatedSprite = function(_super) {
31141
31417
  return AnimatedSprite2;
31142
31418
  }(Sprite);
31143
31419
  /*!
31144
- * pixi.js - v6.2.2
31145
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
31420
+ * pixi.js - v6.3.0
31421
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
31146
31422
  *
31147
31423
  * pixi.js is licensed under the MIT License.
31148
31424
  * http://www.opensource.org/licenses/mit-license
@@ -33623,15 +33899,18 @@ var OS_PRESETS = [{
33623
33899
  }, {
33624
33900
  test: "windows nt",
33625
33901
  id: "window"
33902
+ }, {
33903
+ test: "win32|windows",
33904
+ id: "window"
33626
33905
  }, {
33627
33906
  test: "iphone|ipad|ipod",
33628
33907
  id: "ios",
33629
33908
  versionTest: "iphone os|cpu os"
33630
33909
  }, {
33631
- test: "mac os x",
33910
+ test: "macos|macintel|mac os x",
33632
33911
  id: "mac"
33633
33912
  }, {
33634
- test: "android",
33913
+ test: "android|linux armv81",
33635
33914
  id: "android"
33636
33915
  }, {
33637
33916
  test: "tizen",
@@ -33645,6 +33924,7 @@ function parseUserAgentData(osData) {
33645
33924
  var brands = (userAgentData.uaList || userAgentData.brands).slice();
33646
33925
  var isMobile2 = userAgentData.mobile || false;
33647
33926
  var firstBrand = brands[0];
33927
+ var platform2 = (osData && osData.platform || userAgentData.platform || navigator.platform).toLowerCase();
33648
33928
  var browser = {
33649
33929
  name: firstBrand.brand,
33650
33930
  version: firstBrand.version,
@@ -33671,12 +33951,11 @@ function parseUserAgentData(osData) {
33671
33951
  browser.webkit = !!webkitBrand.brand;
33672
33952
  browser.webkitVersion = webkitBrand.version;
33673
33953
  }
33954
+ var platfomResult = find(OS_PRESETS, function(preset) {
33955
+ return new RegExp("" + preset.test, "g").exec(platform2);
33956
+ });
33957
+ os.name = platfomResult ? platfomResult.id : "";
33674
33958
  if (osData) {
33675
- var platform_1 = osData.platform.toLowerCase();
33676
- var result = find(OS_PRESETS, function(preset) {
33677
- return new RegExp("" + preset.test, "g").exec(platform_1);
33678
- });
33679
- os.name = result ? result.id : platform_1;
33680
33959
  os.version = osData.platformVersion;
33681
33960
  }
33682
33961
  var browserBrand = findPresetBrand(BROWSER_PRESETS, brands);
@@ -33684,9 +33963,7 @@ function parseUserAgentData(osData) {
33684
33963
  browser.name = browserBrand.brand;
33685
33964
  browser.version = osData ? osData.uaFullVersion : browserBrand.version;
33686
33965
  }
33687
- if (navigator.platform === "Linux armv8l") {
33688
- os.name = "android";
33689
- } else if (browser.webkit) {
33966
+ if (browser.webkit) {
33690
33967
  os.name = isMobile2 ? "ios" : "mac";
33691
33968
  }
33692
33969
  if (os.name === "ios" && browser.webview) {
@@ -46250,7 +46527,6 @@ const _TxtStage = class extends Container {
46250
46527
  const { name } = hArg;
46251
46528
  if (!name)
46252
46529
  throw "name\u306F\u5FC5\u9808\u3067\u3059";
46253
- __privateGet(_TxtStage, _REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
46254
46530
  if (__privateGet(_TxtStage, _REG_NG_CHSTYLE_NAME_CHR).test(name))
46255
46531
  throw `name\u3010${name}\u3011\u306B\u4F7F\u3048\u306A\u3044\u6587\u5B57\u304C\u542B\u307E\u308C\u307E\u3059`;
46256
46532
  if (name in __privateGet(_TxtStage, _hChInStyle))
@@ -46279,7 +46555,6 @@ const _TxtStage = class extends Container {
46279
46555
  const { name } = hArg;
46280
46556
  if (!name)
46281
46557
  throw "name\u306F\u5FC5\u9808\u3067\u3059";
46282
- __privateGet(_TxtStage, _REG_NG_CHSTYLE_NAME_CHR).lastIndex = 0;
46283
46558
  if (__privateGet(_TxtStage, _REG_NG_CHSTYLE_NAME_CHR).test(name))
46284
46559
  throw `name\u3010${name}\u3011\u306B\u4F7F\u3048\u306A\u3044\u6587\u5B57\u304C\u542B\u307E\u308C\u307E\u3059`;
46285
46560
  if (name in __privateGet(_TxtStage, _hChOutStyle))
@@ -46830,8 +47105,9 @@ var __privateMethod$1 = (obj, member, method) => {
46830
47105
  var _procMasume4txt, _procMasume4pic, _rctBtnTxt, _idc, _sp_b_pic, _sp_pic, _loaded_b_pic, loaded_b_pic_fn, _normal, _hover, _clicked, _loaded_pic, loaded_pic_fn;
46831
47106
  const _Button = class extends Container {
46832
47107
  constructor(hArg, evtMng, resolve2, canFocus) {
46833
- super();
46834
47108
  var _a4, _b3, _c3;
47109
+ var _a3;
47110
+ super();
46835
47111
  this.hArg = hArg;
46836
47112
  this.evtMng = evtMng;
46837
47113
  this.resolve = resolve2;
@@ -46848,7 +47124,6 @@ const _Button = class extends Container {
46848
47124
  __privateAdd$1(this, _hover, () => false);
46849
47125
  __privateAdd$1(this, _clicked, () => {
46850
47126
  });
46851
- var _a3;
46852
47127
  if (CmnLib.isDbg) {
46853
47128
  this.makeDesignCast = (gdc) => gdc(__privateGet$1(this, _idc));
46854
47129
  this.cvsResize = () => __privateGet$1(this, _idc).cvsResize();
@@ -50628,7 +50903,6 @@ const _ScriptIterator = class {
50628
50903
  __privateSet(this, _replaceScript_Wildcard, () => {
50629
50904
  for (let i2 = __privateGet(this, _script).len - 1; i2 >= 0; --i2) {
50630
50905
  const token = __privateGet(this, _script).aToken[i2];
50631
- __privateGet(this, _REG_WILDCARD).lastIndex = 0;
50632
50906
  if (!__privateGet(this, _REG_WILDCARD).test(token))
50633
50907
  continue;
50634
50908
  const [tag_name, args] = tagToken2Name_Args(token);
@@ -51896,7 +52170,7 @@ init_fn = async function() {
51896
52170
  const hApp = {
51897
52171
  width: __privateGet(this, _cfg3).oCfg.window.width,
51898
52172
  height: __privateGet(this, _cfg3).oCfg.window.height,
51899
- backgroundColor: __privateGet(this, _cfg3).oCfg.init.bg_color = parseColor(String(__privateGet(this, _cfg3).oCfg.init.bg_color)),
52173
+ backgroundColor: parseColor(String(__privateGet(this, _cfg3).oCfg.init.bg_color)),
51900
52174
  resolution: (_b3 = globalThis.devicePixelRatio) != null ? _b3 : 1,
51901
52175
  autoResize: true
51902
52176
  };