@famibee/skynovel 1.29.2 → 1.29.3

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;
@@ -6361,13 +6356,13 @@ function isMobile$1(param) {
6361
6356
  return result;
6362
6357
  }
6363
6358
  /*!
6364
- * @pixi/settings - v6.2.2
6365
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
6359
+ * @pixi/settings - v6.3.0
6360
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
6366
6361
  *
6367
6362
  * @pixi/settings is licensed under the MIT License.
6368
6363
  * http://www.opensource.org/licenses/mit-license
6369
6364
  */
6370
- var isMobile = isMobile$1(self.navigator);
6365
+ var isMobile = isMobile$1(globalThis.navigator);
6371
6366
  function maxRecommendedTextures(max) {
6372
6367
  var allowMax = true;
6373
6368
  if (isMobile.tablet || isMobile.phone) {
@@ -6396,8 +6391,8 @@ function canUploadSameBuffer() {
6396
6391
  return !isMobile.apple.device;
6397
6392
  }
6398
6393
  /*!
6399
- * @pixi/constants - v6.2.2
6400
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
6394
+ * @pixi/constants - v6.3.0
6395
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
6401
6396
  *
6402
6397
  * @pixi/constants is licensed under the MIT License.
6403
6398
  * http://www.opensource.org/licenses/mit-license
@@ -6619,8 +6614,8 @@ var settings = {
6619
6614
  ROUND_PIXELS: false
6620
6615
  };
6621
6616
  /*!
6622
- * @pixi/constants - v6.2.2
6623
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
6617
+ * @pixi/constants - v6.3.0
6618
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
6624
6619
  *
6625
6620
  * @pixi/constants is licensed under the MIT License.
6626
6621
  * http://www.opensource.org/licenses/mit-license
@@ -7449,8 +7444,8 @@ earcut.flatten = function(data) {
7449
7444
  };
7450
7445
  var earcut$1 = earcut$2.exports;
7451
7446
  /*!
7452
- * @pixi/utils - v6.2.2
7453
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
7447
+ * @pixi/utils - v6.3.0
7448
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
7454
7449
  *
7455
7450
  * @pixi/utils is licensed under the MIT License.
7456
7451
  * http://www.opensource.org/licenses/mit-license
@@ -7463,7 +7458,7 @@ var url = {
7463
7458
  settings.RETINA_PREFIX = /@([0-9\.]+)x/;
7464
7459
  settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = false;
7465
7460
  var saidHello = false;
7466
- var VERSION = "6.2.2";
7461
+ var VERSION = "6.3.0";
7467
7462
  function skipHello() {
7468
7463
  saidHello = true;
7469
7464
  }
@@ -7485,9 +7480,9 @@ function sayHello(type) {
7485
7480
  "color: #ff2424; background: #fff; padding:5px 0;",
7486
7481
  "color: #ff2424; background: #fff; padding:5px 0;"
7487
7482
  ];
7488
- (_a3 = self.console).log.apply(_a3, args);
7489
- } else if (self.console) {
7490
- self.console.log("PixiJS " + VERSION + " - " + type + " - http://www.pixijs.com/");
7483
+ (_a3 = globalThis.console).log.apply(_a3, args);
7484
+ } else if (globalThis.console) {
7485
+ globalThis.console.log("PixiJS " + VERSION + " - " + type + " - http://www.pixijs.com/");
7491
7486
  }
7492
7487
  saidHello = true;
7493
7488
  }
@@ -7500,7 +7495,7 @@ function isWebGLSupported() {
7500
7495
  failIfMajorPerformanceCaveat: settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT
7501
7496
  };
7502
7497
  try {
7503
- if (!self.WebGLRenderingContext) {
7498
+ if (!globalThis.WebGLRenderingContext) {
7504
7499
  return false;
7505
7500
  }
7506
7501
  var canvas2 = document.createElement("canvas");
@@ -7830,14 +7825,14 @@ function hex2rgb(hex, out) {
7830
7825
  }
7831
7826
  function hex2string(hex) {
7832
7827
  var hexString = hex.toString(16);
7833
- hexString = "000000".substr(0, 6 - hexString.length) + hexString;
7828
+ hexString = "000000".substring(0, 6 - hexString.length) + hexString;
7834
7829
  return "#" + hexString;
7835
7830
  }
7836
7831
  function string2hex(string) {
7837
7832
  if (typeof string === "string") {
7838
7833
  string = cssColorNames[string.toLowerCase()] || string;
7839
7834
  if (string[0] === "#") {
7840
- string = string.substr(1);
7835
+ string = string.slice(1);
7841
7836
  }
7842
7837
  }
7843
7838
  return parseInt(string, 16);
@@ -8126,12 +8121,12 @@ function trimCanvas(canvas2) {
8126
8121
  var tempAnchor$1;
8127
8122
  function determineCrossOrigin(url$12, loc) {
8128
8123
  if (loc === void 0) {
8129
- loc = self.location;
8124
+ loc = globalThis.location;
8130
8125
  }
8131
8126
  if (url$12.indexOf("data:") === 0) {
8132
8127
  return "";
8133
8128
  }
8134
- loc = loc || self.location;
8129
+ loc = loc || globalThis.location;
8135
8130
  if (!tempAnchor$1) {
8136
8131
  tempAnchor$1 = document.createElement("a");
8137
8132
  }
@@ -8151,8 +8146,8 @@ function getResolutionOfUrl(url2, defaultValue2) {
8151
8146
  return defaultValue2 !== void 0 ? defaultValue2 : 1;
8152
8147
  }
8153
8148
  /*!
8154
- * @pixi/runner - v6.2.2
8155
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
8149
+ * @pixi/runner - v6.3.0
8150
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
8156
8151
  *
8157
8152
  * @pixi/runner is licensed under the MIT License.
8158
8153
  * http://www.opensource.org/licenses/mit-license
@@ -8233,8 +8228,8 @@ Object.defineProperties(Runner.prototype, {
8233
8228
  run: { value: Runner.prototype.emit }
8234
8229
  });
8235
8230
  /*!
8236
- * @pixi/ticker - v6.2.2
8237
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
8231
+ * @pixi/ticker - v6.3.0
8232
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
8238
8233
  *
8239
8234
  * @pixi/ticker is licensed under the MIT License.
8240
8235
  * http://www.opensource.org/licenses/mit-license
@@ -8590,8 +8585,8 @@ var TickerPlugin = function() {
8590
8585
  return TickerPlugin2;
8591
8586
  }();
8592
8587
  /*!
8593
- * @pixi/math - v6.2.2
8594
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
8588
+ * @pixi/math - v6.3.0
8589
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
8595
8590
  *
8596
8591
  * @pixi/math is licensed under the MIT License.
8597
8592
  * http://www.opensource.org/licenses/mit-license
@@ -8607,6 +8602,50 @@ var SHAPES;
8607
8602
  SHAPES2[SHAPES2["ELIP"] = 3] = "ELIP";
8608
8603
  SHAPES2[SHAPES2["RREC"] = 4] = "RREC";
8609
8604
  })(SHAPES || (SHAPES = {}));
8605
+ var Point = function() {
8606
+ function Point2(x, y2) {
8607
+ if (x === void 0) {
8608
+ x = 0;
8609
+ }
8610
+ if (y2 === void 0) {
8611
+ y2 = 0;
8612
+ }
8613
+ this.x = 0;
8614
+ this.y = 0;
8615
+ this.x = x;
8616
+ this.y = y2;
8617
+ }
8618
+ Point2.prototype.clone = function() {
8619
+ return new Point2(this.x, this.y);
8620
+ };
8621
+ Point2.prototype.copyFrom = function(p) {
8622
+ this.set(p.x, p.y);
8623
+ return this;
8624
+ };
8625
+ Point2.prototype.copyTo = function(p) {
8626
+ p.set(this.x, this.y);
8627
+ return p;
8628
+ };
8629
+ Point2.prototype.equals = function(p) {
8630
+ return p.x === this.x && p.y === this.y;
8631
+ };
8632
+ Point2.prototype.set = function(x, y2) {
8633
+ if (x === void 0) {
8634
+ x = 0;
8635
+ }
8636
+ if (y2 === void 0) {
8637
+ y2 = x;
8638
+ }
8639
+ this.x = x;
8640
+ this.y = y2;
8641
+ return this;
8642
+ };
8643
+ Point2.prototype.toString = function() {
8644
+ return "[@pixi/math:Point x=" + this.x + " y=" + this.y + "]";
8645
+ };
8646
+ return Point2;
8647
+ }();
8648
+ var tempPoints$1 = [new Point(), new Point(), new Point(), new Point()];
8610
8649
  var Rectangle = function() {
8611
8650
  function Rectangle2(x, y2, width, height) {
8612
8651
  if (x === void 0) {
@@ -8690,6 +8729,62 @@ var Rectangle = function() {
8690
8729
  }
8691
8730
  return false;
8692
8731
  };
8732
+ Rectangle2.prototype.intersects = function(other, transform) {
8733
+ if (!transform) {
8734
+ var x0_1 = this.x < other.x ? other.x : this.x;
8735
+ var x1_1 = this.right > other.right ? other.right : this.right;
8736
+ if (x1_1 <= x0_1) {
8737
+ return false;
8738
+ }
8739
+ var y0_1 = this.y < other.y ? other.y : this.y;
8740
+ var y1_1 = this.bottom > other.bottom ? other.bottom : this.bottom;
8741
+ return y1_1 > y0_1;
8742
+ }
8743
+ var x0 = this.left;
8744
+ var x1 = this.right;
8745
+ var y0 = this.top;
8746
+ var y1 = this.bottom;
8747
+ if (x1 <= x0 || y1 <= y0) {
8748
+ return false;
8749
+ }
8750
+ var lt = tempPoints$1[0].set(other.left, other.top);
8751
+ var lb = tempPoints$1[1].set(other.left, other.bottom);
8752
+ var rt = tempPoints$1[2].set(other.right, other.top);
8753
+ var rb = tempPoints$1[3].set(other.right, other.bottom);
8754
+ if (rt.x <= lt.x || lb.y <= lt.y) {
8755
+ return false;
8756
+ }
8757
+ var s2 = Math.sign(transform.a * transform.d - transform.b * transform.c);
8758
+ if (s2 === 0) {
8759
+ return false;
8760
+ }
8761
+ transform.apply(lt, lt);
8762
+ transform.apply(lb, lb);
8763
+ transform.apply(rt, rt);
8764
+ transform.apply(rb, rb);
8765
+ 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) {
8766
+ return false;
8767
+ }
8768
+ var nx = s2 * (lb.y - lt.y);
8769
+ var ny = s2 * (lt.x - lb.x);
8770
+ var n00 = nx * x0 + ny * y0;
8771
+ var n10 = nx * x1 + ny * y0;
8772
+ var n01 = nx * x0 + ny * y1;
8773
+ var n11 = nx * x1 + ny * y1;
8774
+ 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) {
8775
+ return false;
8776
+ }
8777
+ var mx = s2 * (lt.y - rt.y);
8778
+ var my = s2 * (rt.x - lt.x);
8779
+ var m00 = mx * x0 + my * y0;
8780
+ var m10 = mx * x1 + my * y0;
8781
+ var m01 = mx * x0 + my * y1;
8782
+ var m11 = mx * x1 + my * y1;
8783
+ 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) {
8784
+ return false;
8785
+ }
8786
+ return true;
8787
+ };
8693
8788
  Rectangle2.prototype.pad = function(paddingX, paddingY) {
8694
8789
  if (paddingX === void 0) {
8695
8790
  paddingX = 0;
@@ -8935,49 +9030,6 @@ var RoundedRectangle = function() {
8935
9030
  };
8936
9031
  return RoundedRectangle2;
8937
9032
  }();
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
9033
  var ObservablePoint = function() {
8982
9034
  function ObservablePoint2(cb, scope, x, y2) {
8983
9035
  if (x === void 0) {
@@ -9506,8 +9558,8 @@ var Transform = function() {
9506
9558
  return Transform2;
9507
9559
  }();
9508
9560
  /*!
9509
- * @pixi/core - v6.2.2
9510
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
9561
+ * @pixi/core - v6.3.0
9562
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
9511
9563
  *
9512
9564
  * @pixi/core is licensed under the MIT License.
9513
9565
  * http://www.opensource.org/licenses/mit-license
@@ -10146,6 +10198,15 @@ var BaseImageResource = function(_super) {
10146
10198
  var width = baseTexture.realWidth;
10147
10199
  var height = baseTexture.realHeight;
10148
10200
  source = source || this.source;
10201
+ if (source instanceof HTMLImageElement) {
10202
+ if (!source.complete || source.naturalWidth === 0) {
10203
+ return false;
10204
+ }
10205
+ } else if (source instanceof HTMLVideoElement) {
10206
+ if (source.readyState <= 1) {
10207
+ return false;
10208
+ }
10209
+ }
10149
10210
  gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, baseTexture.alphaMode === ALPHA_MODES$3.UNPACK);
10150
10211
  if (!this.noSubImage && baseTexture.target === gl.TEXTURE_2D && glTexture.width === width && glTexture.height === height) {
10151
10212
  gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, baseTexture.format, glTexture.type, source);
@@ -10177,11 +10238,11 @@ var CanvasResource = function(_super) {
10177
10238
  return _super.call(this, source) || this;
10178
10239
  }
10179
10240
  CanvasResource2.test = function(source) {
10180
- var OffscreenCanvas2 = self.OffscreenCanvas;
10241
+ var OffscreenCanvas2 = globalThis.OffscreenCanvas;
10181
10242
  if (OffscreenCanvas2 && source instanceof OffscreenCanvas2) {
10182
10243
  return true;
10183
10244
  }
10184
- return self.HTMLCanvasElement && source instanceof HTMLCanvasElement;
10245
+ return globalThis.HTMLCanvasElement && source instanceof HTMLCanvasElement;
10185
10246
  };
10186
10247
  return CanvasResource2;
10187
10248
  }(BaseImageResource);
@@ -10272,7 +10333,7 @@ var ImageResource = function(_super) {
10272
10333
  _this.url = source.src;
10273
10334
  _this._process = null;
10274
10335
  _this.preserveBitmap = false;
10275
- _this.createBitmap = (options.createBitmap !== void 0 ? options.createBitmap : settings.CREATE_IMAGE_BITMAP) && !!self.createImageBitmap;
10336
+ _this.createBitmap = (options.createBitmap !== void 0 ? options.createBitmap : settings.CREATE_IMAGE_BITMAP) && !!globalThis.createImageBitmap;
10276
10337
  _this.alphaMode = typeof options.alphaMode === "number" ? options.alphaMode : null;
10277
10338
  _this.bitmap = null;
10278
10339
  _this._load = null;
@@ -10324,10 +10385,10 @@ var ImageResource = function(_super) {
10324
10385
  if (this._process !== null) {
10325
10386
  return this._process;
10326
10387
  }
10327
- if (this.bitmap !== null || !self.createImageBitmap) {
10388
+ if (this.bitmap !== null || !globalThis.createImageBitmap) {
10328
10389
  return Promise.resolve(this);
10329
10390
  }
10330
- var createImageBitmap = self.createImageBitmap;
10391
+ var createImageBitmap = globalThis.createImageBitmap;
10331
10392
  var cors = !source.crossOrigin || source.crossOrigin === "anonymous";
10332
10393
  this._process = fetch(source.src, {
10333
10394
  mode: cors ? "cors" : "no-cors"
@@ -10516,7 +10577,7 @@ var VideoResource = function(_super) {
10516
10577
  var _a3 = source[i2], src = _a3.src, mime = _a3.mime;
10517
10578
  src = src || source[i2];
10518
10579
  var baseSrc = src.split("?").shift().toLowerCase();
10519
- var ext = baseSrc.substr(baseSrc.lastIndexOf(".") + 1);
10580
+ var ext = baseSrc.slice(baseSrc.lastIndexOf(".") + 1);
10520
10581
  mime = mime || VideoResource2.MIME_TYPES[ext] || "video/" + ext;
10521
10582
  sourceElement.src = src;
10522
10583
  sourceElement.type = mime;
@@ -10667,7 +10728,7 @@ var VideoResource = function(_super) {
10667
10728
  configurable: true
10668
10729
  });
10669
10730
  VideoResource2.test = function(source, extension) {
10670
- return self.HTMLVideoElement && source instanceof HTMLVideoElement || VideoResource2.TYPES.indexOf(extension) > -1;
10731
+ return globalThis.HTMLVideoElement && source instanceof HTMLVideoElement || VideoResource2.TYPES.indexOf(extension) > -1;
10671
10732
  };
10672
10733
  VideoResource2.TYPES = ["mp4", "m4v", "webm", "ogg", "ogv", "h264", "avi", "mov"];
10673
10734
  VideoResource2.MIME_TYPES = {
@@ -10683,7 +10744,7 @@ var ImageBitmapResource = function(_super) {
10683
10744
  return _super.call(this, source) || this;
10684
10745
  }
10685
10746
  ImageBitmapResource2.test = function(source) {
10686
- return !!self.createImageBitmap && source instanceof ImageBitmap;
10747
+ return !!globalThis.createImageBitmap && source instanceof ImageBitmap;
10687
10748
  };
10688
10749
  return ImageBitmapResource2;
10689
10750
  }(BaseImageResource);
@@ -10824,6 +10885,9 @@ var Framebuffer = function() {
10824
10885
  var BaseRenderTexture = function(_super) {
10825
10886
  __extends$q(BaseRenderTexture2, _super);
10826
10887
  function BaseRenderTexture2(options) {
10888
+ if (options === void 0) {
10889
+ options = {};
10890
+ }
10827
10891
  var _this = this;
10828
10892
  if (typeof options === "number") {
10829
10893
  var width = arguments[0];
@@ -11321,8 +11385,8 @@ var RenderTexturePool = function() {
11321
11385
  multisample = MSAA_QUALITY$3.NONE;
11322
11386
  }
11323
11387
  var key;
11324
- minWidth = Math.ceil(minWidth * resolution);
11325
- minHeight = Math.ceil(minHeight * resolution);
11388
+ minWidth = Math.ceil(minWidth * resolution - 1e-6);
11389
+ minHeight = Math.ceil(minHeight * resolution - 1e-6);
11326
11390
  if (!this.enableFullScreen || minWidth !== this._pixelsWidth || minHeight !== this._pixelsHeight) {
11327
11391
  minWidth = nextPow2(minWidth);
11328
11392
  minHeight = nextPow2(minHeight);
@@ -12305,7 +12369,7 @@ var ContextSystem = function() {
12305
12369
  };
12306
12370
  ContextSystem2.prototype.validateContext = function(gl) {
12307
12371
  var attributes = gl.getContextAttributes();
12308
- var isWebGl2 = "WebGL2RenderingContext" in self && gl instanceof self.WebGL2RenderingContext;
12372
+ var isWebGl2 = "WebGL2RenderingContext" in globalThis && gl instanceof globalThis.WebGL2RenderingContext;
12309
12373
  if (isWebGl2) {
12310
12374
  this.webGLVersion = 2;
12311
12375
  }
@@ -12624,7 +12688,7 @@ var FramebufferSystem = function() {
12624
12688
  var sameSize = sourcePixels.width === destPixels.width && sourcePixels.height === destPixels.height;
12625
12689
  this.bind(framebuffer);
12626
12690
  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);
12691
+ 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
12692
  };
12629
12693
  FramebufferSystem2.prototype.disposeFramebuffer = function(framebuffer, contextLost) {
12630
12694
  var fbo = framebuffer.glFramebuffers[this.CONTEXT_UID];
@@ -14902,7 +14966,7 @@ var TextureGCSystem = function() {
14902
14966
  function mapTypeAndFormatToInternalFormat(gl) {
14903
14967
  var _a3, _b3, _c3, _d2, _e, _f, _g, _h, _j, _k, _l2, _m, _o, _p2, _q, _r2, _s, _t, _u, _v, _w, _x;
14904
14968
  var table;
14905
- if ("WebGL2RenderingContext" in self && gl instanceof self.WebGL2RenderingContext) {
14969
+ if ("WebGL2RenderingContext" in globalThis && gl instanceof globalThis.WebGL2RenderingContext) {
14906
14970
  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
14971
  } else {
14908
14972
  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 +16160,8 @@ for (var name in _systems) {
16096
16160
  _loop_2(name);
16097
16161
  }
16098
16162
  /*!
16099
- * @pixi/loaders - v6.2.2
16100
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
16163
+ * @pixi/loaders - v6.3.0
16164
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
16101
16165
  *
16102
16166
  * @pixi/loaders is licensed under the MIT License.
16103
16167
  * http://www.opensource.org/licenses/mit-license
@@ -16261,7 +16325,7 @@ function parseUri(str, opts) {
16261
16325
  });
16262
16326
  return uri;
16263
16327
  }
16264
- var useXdr = !!(self.XDomainRequest && !("withCredentials" in new XMLHttpRequest()));
16328
+ var useXdr = !!(globalThis.XDomainRequest && !("withCredentials" in new XMLHttpRequest()));
16265
16329
  var tempAnchor = null;
16266
16330
  var STATUS_NONE = 0;
16267
16331
  var STATUS_OK = 200;
@@ -16466,7 +16530,7 @@ var LoaderResource = function() {
16466
16530
  LoaderResource2.prototype._loadElement = function(type) {
16467
16531
  if (this.metadata.loadElement) {
16468
16532
  this.data = this.metadata.loadElement;
16469
- } else if (type === "image" && typeof self.Image !== "undefined") {
16533
+ } else if (type === "image" && typeof globalThis.Image !== "undefined") {
16470
16534
  this.data = new Image();
16471
16535
  } else {
16472
16536
  this.data = document.createElement(type);
@@ -16487,7 +16551,7 @@ var LoaderResource = function() {
16487
16551
  LoaderResource2.prototype._loadSourceElement = function(type) {
16488
16552
  if (this.metadata.loadElement) {
16489
16553
  this.data = this.metadata.loadElement;
16490
- } else if (type === "audio" && typeof self.Audio !== "undefined") {
16554
+ } else if (type === "audio" && typeof globalThis.Audio !== "undefined") {
16491
16555
  this.data = new Audio();
16492
16556
  } else {
16493
16557
  this.data = document.createElement(type);
@@ -16526,6 +16590,9 @@ var LoaderResource = function() {
16526
16590
  this.xhrType = this._determineXhrType();
16527
16591
  }
16528
16592
  var xhr = this.xhr = new XMLHttpRequest();
16593
+ if (this.crossOrigin === "use-credentials") {
16594
+ xhr.withCredentials = true;
16595
+ }
16529
16596
  xhr.open("GET", this.url, true);
16530
16597
  xhr.timeout = this.timeout;
16531
16598
  if (this.xhrType === LoaderResource2.XHR_RESPONSE_TYPE.JSON || this.xhrType === LoaderResource2.XHR_RESPONSE_TYPE.DOCUMENT) {
@@ -16544,7 +16611,7 @@ var LoaderResource = function() {
16544
16611
  if (typeof this.xhrType !== "string") {
16545
16612
  this.xhrType = this._determineXhrType();
16546
16613
  }
16547
- var xdr = this.xhr = new self.XDomainRequest();
16614
+ var xdr = this.xhr = new globalThis.XDomainRequest();
16548
16615
  xdr.timeout = this.timeout || 5e3;
16549
16616
  xdr.onerror = this._boundXhrOnError;
16550
16617
  xdr.ontimeout = this._boundXhrOnTimeout;
@@ -16614,7 +16681,7 @@ var LoaderResource = function() {
16614
16681
  }
16615
16682
  } else if (this.xhrType === LoaderResource2.XHR_RESPONSE_TYPE.DOCUMENT) {
16616
16683
  try {
16617
- if (self.DOMParser) {
16684
+ if (globalThis.DOMParser) {
16618
16685
  var domparser = new DOMParser();
16619
16686
  this.data = domparser.parseFromString(text, "text/xml");
16620
16687
  } else {
@@ -16640,10 +16707,10 @@ var LoaderResource = function() {
16640
16707
  if (url2.indexOf("data:") === 0) {
16641
16708
  return "";
16642
16709
  }
16643
- if (self.origin !== self.location.origin) {
16710
+ if (globalThis.origin !== globalThis.location.origin) {
16644
16711
  return "anonymous";
16645
16712
  }
16646
- loc = loc || self.location;
16713
+ loc = loc || globalThis.location;
16647
16714
  if (!tempAnchor) {
16648
16715
  tempAnchor = document.createElement("a");
16649
16716
  }
@@ -17079,7 +17146,7 @@ var Loader = function() {
17079
17146
  }
17080
17147
  if (this.defaultQueryString) {
17081
17148
  var hash2 = rgxExtractUrlHash.exec(result)[0];
17082
- result = result.substr(0, result.length - hash2.length);
17149
+ result = result.slice(0, result.length - hash2.length);
17083
17150
  if (result.indexOf("?") !== -1) {
17084
17151
  result += "&" + this.defaultQueryString;
17085
17152
  } else {
@@ -18568,14 +18635,21 @@ var objectAssign = shouldUseNative() ? Object.assign : function(target, source)
18568
18635
  return to;
18569
18636
  };
18570
18637
  /*!
18571
- * @pixi/polyfill - v6.2.2
18572
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
18638
+ * @pixi/polyfill - v6.3.0
18639
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
18573
18640
  *
18574
18641
  * @pixi/polyfill is licensed under the MIT License.
18575
18642
  * http://www.opensource.org/licenses/mit-license
18576
18643
  */
18577
- if (!self.Promise) {
18578
- self.Promise = Promise$1;
18644
+ if (typeof globalThis === "undefined") {
18645
+ if (typeof self !== "undefined") {
18646
+ self.globalThis = self;
18647
+ } else if (typeof global !== "undefined") {
18648
+ global.globalThis = global;
18649
+ }
18650
+ }
18651
+ if (!globalThis.Promise) {
18652
+ globalThis.Promise = Promise$1;
18579
18653
  }
18580
18654
  if (!Object.assign) {
18581
18655
  Object.assign = objectAssign;
@@ -18586,24 +18660,24 @@ if (!(Date.now && Date.prototype.getTime)) {
18586
18660
  return new Date().getTime();
18587
18661
  };
18588
18662
  }
18589
- if (!(self.performance && self.performance.now)) {
18663
+ if (!(globalThis.performance && globalThis.performance.now)) {
18590
18664
  var startTime_1 = Date.now();
18591
- if (!self.performance) {
18592
- self.performance = {};
18665
+ if (!globalThis.performance) {
18666
+ globalThis.performance = {};
18593
18667
  }
18594
- self.performance.now = function() {
18668
+ globalThis.performance.now = function() {
18595
18669
  return Date.now() - startTime_1;
18596
18670
  };
18597
18671
  }
18598
18672
  var lastTime = Date.now();
18599
18673
  var vendors = ["ms", "moz", "webkit", "o"];
18600
- for (var x = 0; x < vendors.length && !self.requestAnimationFrame; ++x) {
18674
+ for (var x = 0; x < vendors.length && !globalThis.requestAnimationFrame; ++x) {
18601
18675
  var p = vendors[x];
18602
- self.requestAnimationFrame = self[p + "RequestAnimationFrame"];
18603
- self.cancelAnimationFrame = self[p + "CancelAnimationFrame"] || self[p + "CancelRequestAnimationFrame"];
18676
+ globalThis.requestAnimationFrame = globalThis[p + "RequestAnimationFrame"];
18677
+ globalThis.cancelAnimationFrame = globalThis[p + "CancelAnimationFrame"] || globalThis[p + "CancelRequestAnimationFrame"];
18604
18678
  }
18605
- if (!self.requestAnimationFrame) {
18606
- self.requestAnimationFrame = function(callback) {
18679
+ if (!globalThis.requestAnimationFrame) {
18680
+ globalThis.requestAnimationFrame = function(callback) {
18607
18681
  if (typeof callback !== "function") {
18608
18682
  throw new TypeError(callback + "is not a function");
18609
18683
  }
@@ -18613,14 +18687,14 @@ if (!self.requestAnimationFrame) {
18613
18687
  delay = 0;
18614
18688
  }
18615
18689
  lastTime = currentTime;
18616
- return self.setTimeout(function() {
18690
+ return globalThis.self.setTimeout(function() {
18617
18691
  lastTime = Date.now();
18618
18692
  callback(performance.now());
18619
18693
  }, delay);
18620
18694
  };
18621
18695
  }
18622
- if (!self.cancelAnimationFrame) {
18623
- self.cancelAnimationFrame = function(id) {
18696
+ if (!globalThis.cancelAnimationFrame) {
18697
+ globalThis.cancelAnimationFrame = function(id) {
18624
18698
  return clearTimeout(id);
18625
18699
  };
18626
18700
  }
@@ -18638,27 +18712,27 @@ if (!Number.isInteger) {
18638
18712
  return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
18639
18713
  };
18640
18714
  }
18641
- if (!self.ArrayBuffer) {
18642
- self.ArrayBuffer = Array;
18715
+ if (!globalThis.ArrayBuffer) {
18716
+ globalThis.ArrayBuffer = Array;
18643
18717
  }
18644
- if (!self.Float32Array) {
18645
- self.Float32Array = Array;
18718
+ if (!globalThis.Float32Array) {
18719
+ globalThis.Float32Array = Array;
18646
18720
  }
18647
- if (!self.Uint32Array) {
18648
- self.Uint32Array = Array;
18721
+ if (!globalThis.Uint32Array) {
18722
+ globalThis.Uint32Array = Array;
18649
18723
  }
18650
- if (!self.Uint16Array) {
18651
- self.Uint16Array = Array;
18724
+ if (!globalThis.Uint16Array) {
18725
+ globalThis.Uint16Array = Array;
18652
18726
  }
18653
- if (!self.Uint8Array) {
18654
- self.Uint8Array = Array;
18727
+ if (!globalThis.Uint8Array) {
18728
+ globalThis.Uint8Array = Array;
18655
18729
  }
18656
- if (!self.Int32Array) {
18657
- self.Int32Array = Array;
18730
+ if (!globalThis.Int32Array) {
18731
+ globalThis.Int32Array = Array;
18658
18732
  }
18659
18733
  /*!
18660
- * @pixi/display - v6.2.2
18661
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
18734
+ * @pixi/display - v6.3.0
18735
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
18662
18736
  *
18663
18737
  * @pixi/display is licensed under the MIT License.
18664
18738
  * http://www.opensource.org/licenses/mit-license
@@ -18951,6 +19025,8 @@ var DisplayObject = function(_super) {
18951
19025
  _this.alpha = 1;
18952
19026
  _this.visible = true;
18953
19027
  _this.renderable = true;
19028
+ _this.cullable = false;
19029
+ _this.cullArea = null;
18954
19030
  _this.parent = null;
18955
19031
  _this.worldAlpha = 1;
18956
19032
  _this._lastSortedIndex = 0;
@@ -19132,6 +19208,7 @@ var DisplayObject = function(_super) {
19132
19208
  this.parent = null;
19133
19209
  this._bounds = null;
19134
19210
  this.mask = null;
19211
+ this.cullArea = null;
19135
19212
  this.filters = null;
19136
19213
  this.filterArea = null;
19137
19214
  this.hitArea = null;
@@ -19320,8 +19397,8 @@ var TemporaryDisplayObject = function(_super) {
19320
19397
  }(DisplayObject);
19321
19398
  DisplayObject.prototype.displayObjectUpdateTransform = DisplayObject.prototype.updateTransform;
19322
19399
  /*!
19323
- * @pixi/constants - v6.2.2
19324
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
19400
+ * @pixi/constants - v6.3.0
19401
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
19325
19402
  *
19326
19403
  * @pixi/constants is licensed under the MIT License.
19327
19404
  * http://www.opensource.org/licenses/mit-license
@@ -19736,12 +19813,40 @@ var Container = function(_super) {
19736
19813
  };
19737
19814
  Container2.prototype._calculateBounds = function() {
19738
19815
  };
19816
+ Container2.prototype._renderWithCulling = function(renderer) {
19817
+ var sourceFrame = renderer.renderTexture.sourceFrame;
19818
+ if (!(sourceFrame.width > 0 && sourceFrame.height > 0)) {
19819
+ return;
19820
+ }
19821
+ var bounds;
19822
+ var transform;
19823
+ if (this.cullArea) {
19824
+ bounds = this.cullArea;
19825
+ transform = this.worldTransform;
19826
+ } else if (this._render !== Container2.prototype._render) {
19827
+ bounds = this.getBounds(true);
19828
+ }
19829
+ if (bounds && sourceFrame.intersects(bounds, transform)) {
19830
+ this._render(renderer);
19831
+ } else if (this.cullArea) {
19832
+ return;
19833
+ }
19834
+ for (var i2 = 0, j2 = this.children.length; i2 < j2; ++i2) {
19835
+ var child = this.children[i2];
19836
+ var childCullable = child.cullable;
19837
+ child.cullable = childCullable || !this.cullArea;
19838
+ child.render(renderer);
19839
+ child.cullable = childCullable;
19840
+ }
19841
+ };
19739
19842
  Container2.prototype.render = function(renderer) {
19740
19843
  if (!this.visible || this.worldAlpha <= 0 || !this.renderable) {
19741
19844
  return;
19742
19845
  }
19743
19846
  if (this._mask || this.filters && this.filters.length) {
19744
19847
  this.renderAdvanced(renderer);
19848
+ } else if (this.cullable) {
19849
+ this._renderWithCulling(renderer);
19745
19850
  } else {
19746
19851
  this._render(renderer);
19747
19852
  for (var i2 = 0, j2 = this.children.length; i2 < j2; ++i2) {
@@ -19773,9 +19878,13 @@ var Container = function(_super) {
19773
19878
  if (mask) {
19774
19879
  renderer.mask.push(this, this._mask);
19775
19880
  }
19776
- this._render(renderer);
19777
- for (var i2 = 0, j2 = this.children.length; i2 < j2; i2++) {
19778
- this.children[i2].render(renderer);
19881
+ if (this.cullable) {
19882
+ this._renderWithCulling(renderer);
19883
+ } else {
19884
+ this._render(renderer);
19885
+ for (var i2 = 0, j2 = this.children.length; i2 < j2; ++i2) {
19886
+ this.children[i2].render(renderer);
19887
+ }
19779
19888
  }
19780
19889
  if (flush) {
19781
19890
  renderer.batch.flush();
@@ -19836,8 +19945,8 @@ var Container = function(_super) {
19836
19945
  }(DisplayObject);
19837
19946
  Container.prototype.containerUpdateTransform = Container.prototype.updateTransform;
19838
19947
  /*!
19839
- * @pixi/accessibility - v6.2.2
19840
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
19948
+ * @pixi/accessibility - v6.3.0
19949
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
19841
19950
  *
19842
19951
  * @pixi/accessibility is licensed under the MIT License.
19843
19952
  * http://www.opensource.org/licenses/mit-license
@@ -19889,7 +19998,7 @@ var AccessibilityManager = function() {
19889
19998
  this.renderer = renderer;
19890
19999
  this._onKeyDown = this._onKeyDown.bind(this);
19891
20000
  this._onMouseMove = this._onMouseMove.bind(this);
19892
- self.addEventListener("keydown", this._onKeyDown, false);
20001
+ globalThis.addEventListener("keydown", this._onKeyDown, false);
19893
20002
  }
19894
20003
  Object.defineProperty(AccessibilityManager2.prototype, "isActive", {
19895
20004
  get: function() {
@@ -19937,8 +20046,8 @@ var AccessibilityManager = function() {
19937
20046
  return;
19938
20047
  }
19939
20048
  this._isActive = true;
19940
- self.document.addEventListener("mousemove", this._onMouseMove, true);
19941
- self.removeEventListener("keydown", this._onKeyDown, false);
20049
+ globalThis.document.addEventListener("mousemove", this._onMouseMove, true);
20050
+ globalThis.removeEventListener("keydown", this._onKeyDown, false);
19942
20051
  this.renderer.on("postrender", this.update, this);
19943
20052
  (_a3 = this.renderer.view.parentNode) === null || _a3 === void 0 ? void 0 : _a3.appendChild(this.div);
19944
20053
  };
@@ -19948,8 +20057,8 @@ var AccessibilityManager = function() {
19948
20057
  return;
19949
20058
  }
19950
20059
  this._isActive = false;
19951
- self.document.removeEventListener("mousemove", this._onMouseMove, true);
19952
- self.addEventListener("keydown", this._onKeyDown, false);
20060
+ globalThis.document.removeEventListener("mousemove", this._onMouseMove, true);
20061
+ globalThis.addEventListener("keydown", this._onKeyDown, false);
19953
20062
  this.renderer.off("postrender", this.update);
19954
20063
  (_a3 = this.div.parentNode) === null || _a3 === void 0 ? void 0 : _a3.removeChild(this.div);
19955
20064
  };
@@ -20139,8 +20248,8 @@ var AccessibilityManager = function() {
20139
20248
  AccessibilityManager2.prototype.destroy = function() {
20140
20249
  this.destroyTouchHook();
20141
20250
  this.div = null;
20142
- self.document.removeEventListener("mousemove", this._onMouseMove, true);
20143
- self.removeEventListener("keydown", this._onKeyDown);
20251
+ globalThis.document.removeEventListener("mousemove", this._onMouseMove, true);
20252
+ globalThis.removeEventListener("keydown", this._onKeyDown);
20144
20253
  this.pool = null;
20145
20254
  this.children = null;
20146
20255
  this.renderer = null;
@@ -20148,8 +20257,8 @@ var AccessibilityManager = function() {
20148
20257
  return AccessibilityManager2;
20149
20258
  }();
20150
20259
  /*!
20151
- * @pixi/interaction - v6.2.2
20152
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
20260
+ * @pixi/interaction - v6.3.0
20261
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
20153
20262
  *
20154
20263
  * @pixi/interaction is licensed under the MIT License.
20155
20264
  * http://www.opensource.org/licenses/mit-license
@@ -20464,9 +20573,9 @@ var InteractionManager = function(_super) {
20464
20573
  _this.moveWhenInside = false;
20465
20574
  _this.eventsAdded = false;
20466
20575
  _this.tickerAdded = false;
20467
- _this.mouseOverRenderer = !("PointerEvent" in self);
20468
- _this.supportsTouchEvents = "ontouchstart" in self;
20469
- _this.supportsPointerEvents = !!self.PointerEvent;
20576
+ _this.mouseOverRenderer = !("PointerEvent" in globalThis);
20577
+ _this.supportsTouchEvents = "ontouchstart" in globalThis;
20578
+ _this.supportsPointerEvents = !!globalThis.PointerEvent;
20470
20579
  _this.onPointerUp = _this.onPointerUp.bind(_this);
20471
20580
  _this.processPointerUp = _this.processPointerUp.bind(_this);
20472
20581
  _this.onPointerCancel = _this.onPointerCancel.bind(_this);
@@ -20554,25 +20663,25 @@ var InteractionManager = function(_super) {
20554
20663
  return;
20555
20664
  }
20556
20665
  var style = this.interactionDOMElement.style;
20557
- if (self.navigator.msPointerEnabled) {
20666
+ if (globalThis.navigator.msPointerEnabled) {
20558
20667
  style.msContentZooming = "none";
20559
20668
  style.msTouchAction = "none";
20560
20669
  } else if (this.supportsPointerEvents) {
20561
20670
  style.touchAction = "none";
20562
20671
  }
20563
20672
  if (this.supportsPointerEvents) {
20564
- self.document.addEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
20673
+ globalThis.document.addEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
20565
20674
  this.interactionDOMElement.addEventListener("pointerdown", this.onPointerDown, this._eventListenerOptions);
20566
20675
  this.interactionDOMElement.addEventListener("pointerleave", this.onPointerOut, this._eventListenerOptions);
20567
20676
  this.interactionDOMElement.addEventListener("pointerover", this.onPointerOver, this._eventListenerOptions);
20568
- self.addEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
20569
- self.addEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
20677
+ globalThis.addEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
20678
+ globalThis.addEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
20570
20679
  } else {
20571
- self.document.addEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
20680
+ globalThis.document.addEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
20572
20681
  this.interactionDOMElement.addEventListener("mousedown", this.onPointerDown, this._eventListenerOptions);
20573
20682
  this.interactionDOMElement.addEventListener("mouseout", this.onPointerOut, this._eventListenerOptions);
20574
20683
  this.interactionDOMElement.addEventListener("mouseover", this.onPointerOver, this._eventListenerOptions);
20575
- self.addEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
20684
+ globalThis.addEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
20576
20685
  }
20577
20686
  if (this.supportsTouchEvents) {
20578
20687
  this.interactionDOMElement.addEventListener("touchstart", this.onPointerDown, this._eventListenerOptions);
@@ -20587,25 +20696,25 @@ var InteractionManager = function(_super) {
20587
20696
  return;
20588
20697
  }
20589
20698
  var style = this.interactionDOMElement.style;
20590
- if (self.navigator.msPointerEnabled) {
20699
+ if (globalThis.navigator.msPointerEnabled) {
20591
20700
  style.msContentZooming = "";
20592
20701
  style.msTouchAction = "";
20593
20702
  } else if (this.supportsPointerEvents) {
20594
20703
  style.touchAction = "";
20595
20704
  }
20596
20705
  if (this.supportsPointerEvents) {
20597
- self.document.removeEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
20706
+ globalThis.document.removeEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
20598
20707
  this.interactionDOMElement.removeEventListener("pointerdown", this.onPointerDown, this._eventListenerOptions);
20599
20708
  this.interactionDOMElement.removeEventListener("pointerleave", this.onPointerOut, this._eventListenerOptions);
20600
20709
  this.interactionDOMElement.removeEventListener("pointerover", this.onPointerOver, this._eventListenerOptions);
20601
- self.removeEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
20602
- self.removeEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
20710
+ globalThis.removeEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
20711
+ globalThis.removeEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
20603
20712
  } else {
20604
- self.document.removeEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
20713
+ globalThis.document.removeEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
20605
20714
  this.interactionDOMElement.removeEventListener("mousedown", this.onPointerDown, this._eventListenerOptions);
20606
20715
  this.interactionDOMElement.removeEventListener("mouseout", this.onPointerOut, this._eventListenerOptions);
20607
20716
  this.interactionDOMElement.removeEventListener("mouseover", this.onPointerOver, this._eventListenerOptions);
20608
- self.removeEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
20717
+ globalThis.removeEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
20609
20718
  }
20610
20719
  if (this.supportsTouchEvents) {
20611
20720
  this.interactionDOMElement.removeEventListener("touchstart", this.onPointerDown, this._eventListenerOptions);
@@ -20647,7 +20756,7 @@ var InteractionManager = function(_super) {
20647
20756
  InteractionManager2.prototype.setCursorMode = function(mode) {
20648
20757
  mode = mode || "default";
20649
20758
  var applyStyles = true;
20650
- if (self.OffscreenCanvas && this.interactionDOMElement instanceof OffscreenCanvas) {
20759
+ if (globalThis.OffscreenCanvas && this.interactionDOMElement instanceof OffscreenCanvas) {
20651
20760
  applyStyles = false;
20652
20761
  }
20653
20762
  if (this.currentCursorMode === mode) {
@@ -21065,7 +21174,7 @@ var InteractionManager = function(_super) {
21065
21174
  touch.isNormalized = true;
21066
21175
  normalizedEvents.push(touch);
21067
21176
  }
21068
- } else if (!self.MouseEvent || event instanceof MouseEvent && (!this.supportsPointerEvents || !(event instanceof self.PointerEvent))) {
21177
+ } else if (!globalThis.MouseEvent || event instanceof MouseEvent && (!this.supportsPointerEvents || !(event instanceof globalThis.PointerEvent))) {
21069
21178
  var tempEvent = event;
21070
21179
  if (typeof tempEvent.isPrimary === "undefined") {
21071
21180
  tempEvent.isPrimary = true;
@@ -21128,8 +21237,8 @@ var InteractionManager = function(_super) {
21128
21237
  return InteractionManager2;
21129
21238
  }(EventEmitter$3);
21130
21239
  /*!
21131
- * @pixi/app - v6.2.2
21132
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
21240
+ * @pixi/app - v6.3.0
21241
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
21133
21242
  *
21134
21243
  * @pixi/app is licensed under the MIT License.
21135
21244
  * http://www.opensource.org/licenses/mit-license
@@ -21188,10 +21297,10 @@ var ResizePlugin = function() {
21188
21297
  var _this = this;
21189
21298
  Object.defineProperty(this, "resizeTo", {
21190
21299
  set: function(dom) {
21191
- self.removeEventListener("resize", this.queueResize);
21300
+ globalThis.removeEventListener("resize", this.queueResize);
21192
21301
  this._resizeTo = dom;
21193
21302
  if (dom) {
21194
- self.addEventListener("resize", this.queueResize);
21303
+ globalThis.addEventListener("resize", this.queueResize);
21195
21304
  this.resize();
21196
21305
  }
21197
21306
  },
@@ -21221,9 +21330,9 @@ var ResizePlugin = function() {
21221
21330
  _this.cancelResize();
21222
21331
  var width;
21223
21332
  var height;
21224
- if (_this._resizeTo === self) {
21225
- width = self.innerWidth;
21226
- height = self.innerHeight;
21333
+ if (_this._resizeTo === globalThis.window) {
21334
+ width = globalThis.innerWidth;
21335
+ height = globalThis.innerHeight;
21227
21336
  } else {
21228
21337
  var _a3 = _this._resizeTo, clientWidth = _a3.clientWidth, clientHeight = _a3.clientHeight;
21229
21338
  width = clientWidth;
@@ -21236,7 +21345,7 @@ var ResizePlugin = function() {
21236
21345
  this.resizeTo = options.resizeTo || null;
21237
21346
  };
21238
21347
  ResizePlugin2.destroy = function() {
21239
- self.removeEventListener("resize", this.queueResize);
21348
+ globalThis.removeEventListener("resize", this.queueResize);
21240
21349
  this.cancelResize();
21241
21350
  this.cancelResize = null;
21242
21351
  this.queueResize = null;
@@ -21247,8 +21356,8 @@ var ResizePlugin = function() {
21247
21356
  }();
21248
21357
  Application.registerPlugin(ResizePlugin);
21249
21358
  /*!
21250
- * @pixi/extract - v6.2.2
21251
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
21359
+ * @pixi/extract - v6.3.0
21360
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
21252
21361
  *
21253
21362
  * @pixi/extract is licensed under the MIT License.
21254
21363
  * http://www.opensource.org/licenses/mit-license
@@ -21372,8 +21481,8 @@ var Extract = function() {
21372
21481
  return Extract2;
21373
21482
  }();
21374
21483
  /*!
21375
- * @pixi/compressed-textures - v6.2.2
21376
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
21484
+ * @pixi/compressed-textures - v6.3.0
21485
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
21377
21486
  *
21378
21487
  * @pixi/compressed-textures is licensed under the MIT License.
21379
21488
  * http://www.opensource.org/licenses/mit-license
@@ -22086,8 +22195,8 @@ var KTX_FIELDS = {
22086
22195
  BYTES_OF_KEY_VALUE_DATA: 60
22087
22196
  };
22088
22197
  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);
22198
+ 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);
22199
+ 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
22200
  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
22201
  var KTXLoader = function() {
22093
22202
  function KTXLoader2() {
@@ -22095,8 +22204,31 @@ var KTXLoader = function() {
22095
22204
  KTXLoader2.use = function(resource, next) {
22096
22205
  if (resource.extension === "ktx" && resource.data) {
22097
22206
  try {
22098
- var url2 = resource.name || resource.url;
22099
- Object.assign(resource, registerCompressedTextures(url2, KTXLoader2.parse(url2, resource.data), resource.metadata));
22207
+ var url_1 = resource.name || resource.url;
22208
+ var _a3 = KTXLoader2.parse(url_1, resource.data), compressed = _a3.compressed, uncompressed = _a3.uncompressed;
22209
+ if (compressed) {
22210
+ Object.assign(resource, registerCompressedTextures(url_1, compressed, resource.metadata));
22211
+ } else if (uncompressed) {
22212
+ var textures_1 = {};
22213
+ uncompressed.forEach(function(image, i2) {
22214
+ var texture = new Texture(new BaseTexture(image.resource, {
22215
+ mipmap: MIPMAP_MODES$3.OFF,
22216
+ alphaMode: ALPHA_MODES$3.NO_PREMULTIPLIED_ALPHA,
22217
+ type: image.type,
22218
+ format: image.format
22219
+ }));
22220
+ var cacheID = url_1 + "-" + (i2 + 1);
22221
+ BaseTexture.addToCache(texture.baseTexture, cacheID);
22222
+ Texture.addToCache(texture, cacheID);
22223
+ if (i2 === 0) {
22224
+ textures_1[url_1] = texture;
22225
+ BaseTexture.addToCache(texture.baseTexture, url_1);
22226
+ Texture.addToCache(texture, url_1);
22227
+ }
22228
+ textures_1[cacheID] = texture;
22229
+ });
22230
+ Object.assign(resource, { textures: textures_1 });
22231
+ }
22100
22232
  } catch (err) {
22101
22233
  next(err);
22102
22234
  return;
@@ -22168,8 +22300,8 @@ var KTXLoader = function() {
22168
22300
  }
22169
22301
  mips[mipmapLevel] = {
22170
22302
  levelID: mipmapLevel,
22171
- levelWidth: numberOfMipmapLevels > 1 ? mipWidth : alignedMipWidth,
22172
- levelHeight: numberOfMipmapLevels > 1 ? mipHeight : alignedMipHeight,
22303
+ levelWidth: numberOfMipmapLevels > 1 || glType !== 0 ? mipWidth : alignedMipWidth,
22304
+ levelHeight: numberOfMipmapLevels > 1 || glType !== 0 ? mipHeight : alignedMipHeight,
22173
22305
  levelBuffer: new Uint8Array(arrayBuffer, elementOffset, mipByteSize)
22174
22306
  };
22175
22307
  elementOffset += mipByteSize;
@@ -22183,17 +22315,41 @@ var KTXLoader = function() {
22183
22315
  mipByteSize = alignedMipWidth * alignedMipHeight * imagePixelByteSize;
22184
22316
  }
22185
22317
  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
- });
22318
+ return {
22319
+ uncompressed: imageBuffers.map(function(levelBuffers) {
22320
+ var buffer = levelBuffers[0].levelBuffer;
22321
+ var convertToInt = false;
22322
+ if (glType === TYPES$3.FLOAT) {
22323
+ buffer = new Float32Array(levelBuffers[0].levelBuffer.buffer, levelBuffers[0].levelBuffer.byteOffset, levelBuffers[0].levelBuffer.byteLength / 4);
22324
+ } else if (glType === TYPES$3.UNSIGNED_INT) {
22325
+ convertToInt = true;
22326
+ buffer = new Uint32Array(levelBuffers[0].levelBuffer.buffer, levelBuffers[0].levelBuffer.byteOffset, levelBuffers[0].levelBuffer.byteLength / 4);
22327
+ } else if (glType === TYPES$3.INT) {
22328
+ convertToInt = true;
22329
+ buffer = new Int32Array(levelBuffers[0].levelBuffer.buffer, levelBuffers[0].levelBuffer.byteOffset, levelBuffers[0].levelBuffer.byteLength / 4);
22330
+ }
22331
+ return {
22332
+ resource: new BufferResource(buffer, {
22333
+ width: levelBuffers[0].levelWidth,
22334
+ height: levelBuffers[0].levelHeight
22335
+ }),
22336
+ type: glType,
22337
+ format: convertToInt ? KTXLoader2.convertFormatToInteger(glFormat) : glFormat
22338
+ };
22339
+ })
22340
+ };
22341
+ }
22342
+ return {
22343
+ compressed: imageBuffers.map(function(levelBuffers) {
22344
+ return new CompressedTextureResource(null, {
22345
+ format: glInternalFormat,
22346
+ width: pixelWidth,
22347
+ height: pixelHeight,
22348
+ levels: numberOfMipmapLevels,
22349
+ levelBuffers
22350
+ });
22351
+ })
22352
+ };
22197
22353
  };
22198
22354
  KTXLoader2.validate = function(url2, dataView) {
22199
22355
  for (var i2 = 0; i2 < FILE_IDENTIFIER.length; i2++) {
@@ -22204,11 +22360,25 @@ var KTXLoader = function() {
22204
22360
  }
22205
22361
  return true;
22206
22362
  };
22363
+ KTXLoader2.convertFormatToInteger = function(format2) {
22364
+ switch (format2) {
22365
+ case FORMATS$3.RGBA:
22366
+ return FORMATS$3.RGBA_INTEGER;
22367
+ case FORMATS$3.RGB:
22368
+ return FORMATS$3.RGB_INTEGER;
22369
+ case FORMATS$3.RG:
22370
+ return FORMATS$3.RG_INTEGER;
22371
+ case FORMATS$3.RED:
22372
+ return FORMATS$3.RED_INTEGER;
22373
+ default:
22374
+ return format2;
22375
+ }
22376
+ };
22207
22377
  return KTXLoader2;
22208
22378
  }();
22209
22379
  /*!
22210
- * @pixi/particle-container - v6.2.2
22211
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
22380
+ * @pixi/particle-container - v6.3.0
22381
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
22212
22382
  *
22213
22383
  * @pixi/particle-container is licensed under the MIT License.
22214
22384
  * http://www.opensource.org/licenses/mit-license
@@ -22656,8 +22826,8 @@ var ParticleRenderer = function(_super) {
22656
22826
  return ParticleRenderer2;
22657
22827
  }(ObjectRenderer);
22658
22828
  /*!
22659
- * @pixi/graphics - v6.2.2
22660
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
22829
+ * @pixi/graphics - v6.3.0
22830
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
22661
22831
  *
22662
22832
  * @pixi/graphics is licensed under the MIT License.
22663
22833
  * http://www.opensource.org/licenses/mit-license
@@ -22760,6 +22930,35 @@ function __extends$l(d2, b2) {
22760
22930
  }
22761
22931
  d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
22762
22932
  }
22933
+ function fixOrientation(points, hole) {
22934
+ var _a3, _b3;
22935
+ if (hole === void 0) {
22936
+ hole = false;
22937
+ }
22938
+ var m2 = points.length;
22939
+ if (m2 < 6) {
22940
+ return;
22941
+ }
22942
+ var area2 = 0;
22943
+ for (var i2 = 0, x1 = points[m2 - 2], y1 = points[m2 - 1]; i2 < m2; i2 += 2) {
22944
+ var x2 = points[i2];
22945
+ var y2 = points[i2 + 1];
22946
+ area2 += (x2 - x1) * (y2 + y1);
22947
+ x1 = x2;
22948
+ y1 = y2;
22949
+ }
22950
+ if (!hole && area2 > 0 || hole && area2 <= 0) {
22951
+ var n = m2 / 2;
22952
+ for (var i2 = n + n % 2; i2 < m2; i2 += 2) {
22953
+ var i1 = m2 - i2 - 2;
22954
+ var i22 = m2 - i2 - 1;
22955
+ var i3 = i2;
22956
+ var i4 = i2 + 1;
22957
+ _a3 = [points[i3], points[i1]], points[i1] = _a3[0], points[i3] = _a3[1];
22958
+ _b3 = [points[i4], points[i22]], points[i22] = _b3[0], points[i4] = _b3[1];
22959
+ }
22960
+ }
22961
+ }
22763
22962
  var buildPoly = {
22764
22963
  build: function(graphicsData) {
22765
22964
  graphicsData.points = graphicsData.shape.points.slice();
@@ -22770,9 +22969,11 @@ var buildPoly = {
22770
22969
  var verts = graphicsGeometry.points;
22771
22970
  var indices2 = graphicsGeometry.indices;
22772
22971
  if (points.length >= 6) {
22972
+ fixOrientation(points, false);
22773
22973
  var holeArray = [];
22774
22974
  for (var i2 = 0; i2 < holes.length; i2++) {
22775
22975
  var hole = holes[i2];
22976
+ fixOrientation(hole.points, true);
22776
22977
  holeArray.push(points.length / 2);
22777
22978
  points = points.concat(hole.points);
22778
22979
  }
@@ -22794,31 +22995,107 @@ var buildPoly = {
22794
22995
  };
22795
22996
  var buildCircle = {
22796
22997
  build: function(graphicsData) {
22797
- var circleData = graphicsData.shape;
22798
22998
  var points = graphicsData.points;
22799
- var x = circleData.x;
22800
- var y2 = circleData.y;
22801
- var width;
22802
- var height;
22803
- points.length = 0;
22999
+ var x;
23000
+ var y2;
23001
+ var dx;
23002
+ var dy;
23003
+ var rx;
23004
+ var ry;
22804
23005
  if (graphicsData.type === SHAPES.CIRC) {
22805
- width = circleData.radius;
22806
- height = circleData.radius;
23006
+ var circle = graphicsData.shape;
23007
+ x = circle.x;
23008
+ y2 = circle.y;
23009
+ rx = ry = circle.radius;
23010
+ dx = dy = 0;
23011
+ } else if (graphicsData.type === SHAPES.ELIP) {
23012
+ var ellipse = graphicsData.shape;
23013
+ x = ellipse.x;
23014
+ y2 = ellipse.y;
23015
+ rx = ellipse.width;
23016
+ ry = ellipse.height;
23017
+ dx = dy = 0;
22807
23018
  } else {
22808
- var ellipseData = graphicsData.shape;
22809
- width = ellipseData.width;
22810
- height = ellipseData.height;
23019
+ var roundedRect = graphicsData.shape;
23020
+ var halfWidth = roundedRect.width / 2;
23021
+ var halfHeight = roundedRect.height / 2;
23022
+ x = roundedRect.x + halfWidth;
23023
+ y2 = roundedRect.y + halfHeight;
23024
+ rx = ry = Math.max(0, Math.min(roundedRect.radius, Math.min(halfWidth, halfHeight)));
23025
+ dx = halfWidth - rx;
23026
+ dy = halfHeight - ry;
23027
+ }
23028
+ var n = Math.ceil(2.3 * Math.sqrt(rx + ry));
23029
+ var m2 = n * 8 + (dx ? 4 : 0) + (dy ? 4 : 0);
23030
+ points.length = m2;
23031
+ if (m2 === 0) {
23032
+ return;
22811
23033
  }
22812
- if (width === 0 || height === 0) {
23034
+ if (n === 0) {
23035
+ points.length = 8;
23036
+ points[0] = points[6] = x + dx;
23037
+ points[1] = points[3] = y2 + dy;
23038
+ points[2] = points[4] = x - dx;
23039
+ points[5] = points[7] = y2 - dy;
22813
23040
  return;
22814
23041
  }
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);
23042
+ var j1 = 0;
23043
+ var j2 = n * 4 + (dx ? 2 : 0) + 2;
23044
+ var j3 = j2;
23045
+ var j4 = m2;
23046
+ {
23047
+ var x0 = dx + rx;
23048
+ var y0 = dy;
23049
+ var x1 = x + x0;
23050
+ var x2 = x - x0;
23051
+ var y1 = y2 + y0;
23052
+ points[j1++] = x1;
23053
+ points[j1++] = y1;
23054
+ points[--j2] = y1;
23055
+ points[--j2] = x2;
23056
+ if (dy) {
23057
+ var y22 = y2 - y0;
23058
+ points[j3++] = x2;
23059
+ points[j3++] = y22;
23060
+ points[--j4] = y22;
23061
+ points[--j4] = x1;
23062
+ }
23063
+ }
23064
+ for (var i2 = 1; i2 < n; i2++) {
23065
+ var a2 = Math.PI / 2 * (i2 / n);
23066
+ var x0 = dx + Math.cos(a2) * rx;
23067
+ var y0 = dy + Math.sin(a2) * ry;
23068
+ var x1 = x + x0;
23069
+ var x2 = x - x0;
23070
+ var y1 = y2 + y0;
23071
+ var y22 = y2 - y0;
23072
+ points[j1++] = x1;
23073
+ points[j1++] = y1;
23074
+ points[--j2] = y1;
23075
+ points[--j2] = x2;
23076
+ points[j3++] = x2;
23077
+ points[j3++] = y22;
23078
+ points[--j4] = y22;
23079
+ points[--j4] = x1;
23080
+ }
23081
+ {
23082
+ var x0 = dx;
23083
+ var y0 = dy + ry;
23084
+ var x1 = x + x0;
23085
+ var x2 = x - x0;
23086
+ var y1 = y2 + y0;
23087
+ var y22 = y2 - y0;
23088
+ points[j1++] = x1;
23089
+ points[j1++] = y1;
23090
+ points[--j4] = y22;
23091
+ points[--j4] = x1;
23092
+ if (dx) {
23093
+ points[j1++] = x2;
23094
+ points[j1++] = y1;
23095
+ points[--j4] = y22;
23096
+ points[--j4] = x2;
23097
+ }
22820
23098
  }
22821
- points.push(points[0], points[1]);
22822
23099
  },
22823
23100
  triangulate: function(graphicsData, graphicsGeometry) {
22824
23101
  var points = graphicsData.points;
@@ -22826,15 +23103,26 @@ var buildCircle = {
22826
23103
  var indices2 = graphicsGeometry.indices;
22827
23104
  var vertPos = verts.length / 2;
22828
23105
  var center = vertPos;
22829
- var circle = graphicsData.shape;
23106
+ var x;
23107
+ var y2;
23108
+ if (graphicsData.type !== SHAPES.RREC) {
23109
+ var circle = graphicsData.shape;
23110
+ x = circle.x;
23111
+ y2 = circle.y;
23112
+ } else {
23113
+ var roundedRect = graphicsData.shape;
23114
+ x = roundedRect.x + roundedRect.width / 2;
23115
+ y2 = roundedRect.y + roundedRect.height / 2;
23116
+ }
22830
23117
  var matrix = graphicsData.matrix;
22831
- var x = circle.x;
22832
- var y2 = circle.y;
22833
23118
  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) {
23119
+ vertPos++;
23120
+ verts.push(points[0], points[1]);
23121
+ for (var i2 = 2; i2 < points.length; i2 += 2) {
22835
23122
  verts.push(points[i2], points[i2 + 1]);
22836
23123
  indices2.push(vertPos++, center, vertPos);
22837
23124
  }
23125
+ indices2.push(center + 1, center, vertPos);
22838
23126
  }
22839
23127
  };
22840
23128
  var buildRectangle = {
@@ -22889,6 +23177,10 @@ function quadraticBezierCurve(fromX, fromY, cpX, cpY, toX, toY, out) {
22889
23177
  }
22890
23178
  var buildRoundedRectangle = {
22891
23179
  build: function(graphicsData) {
23180
+ if (Graphics.nextRoundedRectBehavior) {
23181
+ buildCircle.build(graphicsData);
23182
+ return;
23183
+ }
22892
23184
  var rrectData = graphicsData.shape;
22893
23185
  var points = graphicsData.points;
22894
23186
  var x = rrectData.x;
@@ -22907,6 +23199,10 @@ var buildRoundedRectangle = {
22907
23199
  }
22908
23200
  },
22909
23201
  triangulate: function(graphicsData, graphicsGeometry) {
23202
+ if (Graphics.nextRoundedRectBehavior) {
23203
+ buildCircle.triangulate(graphicsData, graphicsGeometry);
23204
+ return;
23205
+ }
22910
23206
  var points = graphicsData.points;
22911
23207
  var verts = graphicsGeometry.points;
22912
23208
  var indices2 = graphicsGeometry.indices;
@@ -23386,14 +23682,6 @@ var _a;
23386
23682
  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
23683
  var BATCH_POOL = [];
23388
23684
  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
23685
  var GraphicsData = function() {
23398
23686
  function GraphicsData2(shape, fillStyle, lineStyle, matrix) {
23399
23687
  if (fillStyle === void 0) {
@@ -23607,6 +23895,9 @@ var GraphicsGeometry = function(_super) {
23607
23895
  if (data.matrix) {
23608
23896
  this.transformPoints(data.points, data.matrix);
23609
23897
  }
23898
+ if (fillStyle.visible || lineStyle.visible) {
23899
+ this.processHoles(data.holes);
23900
+ }
23610
23901
  for (var j2 = 0; j2 < 2; j2++) {
23611
23902
  var style = j2 === 0 ? fillStyle : lineStyle;
23612
23903
  if (!style.visible) {
@@ -23811,7 +24102,6 @@ var GraphicsGeometry = function(_super) {
23811
24102
  };
23812
24103
  GraphicsGeometry2.prototype.processFill = function(data) {
23813
24104
  if (data.holes.length) {
23814
- this.processHoles(data.holes);
23815
24105
  buildPoly.triangulate(data, this);
23816
24106
  } else {
23817
24107
  var command = FILL_COMMANDS[data.type];
@@ -23848,17 +24138,7 @@ var GraphicsGeometry = function(_super) {
23848
24138
  var nextMatrix = data.matrix || Matrix.IDENTITY;
23849
24139
  var lineWidth = 0;
23850
24140
  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
- }
24141
+ lineWidth = lineStyle.width * Math.max(0, lineStyle.alignment);
23862
24142
  }
23863
24143
  if (curMatrix !== nextMatrix) {
23864
24144
  if (!sequenceBounds.isEmpty()) {
@@ -24526,12 +24806,13 @@ var Graphics = function(_super) {
24526
24806
  this.batches = null;
24527
24807
  _super.prototype.destroy.call(this, options);
24528
24808
  };
24809
+ Graphics2.nextRoundedRectBehavior = false;
24529
24810
  Graphics2._TEMP_POINT = new Point();
24530
24811
  return Graphics2;
24531
24812
  }(Container);
24532
24813
  /*!
24533
- * @pixi/sprite - v6.2.2
24534
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
24814
+ * @pixi/sprite - v6.3.0
24815
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
24535
24816
  *
24536
24817
  * @pixi/sprite is licensed under the MIT License.
24537
24818
  * http://www.opensource.org/licenses/mit-license
@@ -24847,8 +25128,8 @@ var Sprite = function(_super) {
24847
25128
  return Sprite2;
24848
25129
  }(Container);
24849
25130
  /*!
24850
- * @pixi/text - v6.2.2
24851
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
25131
+ * @pixi/text - v6.3.0
25132
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
24852
25133
  *
24853
25134
  * @pixi/text is licensed under the MIT License.
24854
25135
  * http://www.opensource.org/licenses/mit-license
@@ -25838,7 +26119,7 @@ var Text = function(_super) {
25838
26119
  }
25839
26120
  var style = this._style;
25840
26121
  var letterSpacing = style.letterSpacing;
25841
- var supportLetterSpacing = "letterSpacing" in CanvasRenderingContext2D.prototype || "textLetterSpacing" in CanvasRenderingContext2D.prototype;
26122
+ var supportLetterSpacing = Text2.experimentalLetterSpacing && ("letterSpacing" in CanvasRenderingContext2D.prototype || "textLetterSpacing" in CanvasRenderingContext2D.prototype);
25842
26123
  if (letterSpacing === 0 || supportLetterSpacing) {
25843
26124
  if (supportLetterSpacing) {
25844
26125
  this.context.letterSpacing = letterSpacing;
@@ -26073,11 +26354,12 @@ var Text = function(_super) {
26073
26354
  configurable: true
26074
26355
  });
26075
26356
  Text2.nextLineHeightBehavior = false;
26357
+ Text2.experimentalLetterSpacing = false;
26076
26358
  return Text2;
26077
26359
  }(Sprite);
26078
26360
  /*!
26079
- * @pixi/prepare - v6.2.2
26080
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
26361
+ * @pixi/prepare - v6.3.0
26362
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
26081
26363
  *
26082
26364
  * @pixi/prepare is licensed under the MIT License.
26083
26365
  * http://www.opensource.org/licenses/mit-license
@@ -26369,8 +26651,8 @@ var Prepare = function(_super) {
26369
26651
  return Prepare2;
26370
26652
  }(BasePrepare);
26371
26653
  /*!
26372
- * @pixi/spritesheet - v6.2.2
26373
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
26654
+ * @pixi/spritesheet - v6.3.0
26655
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
26374
26656
  *
26375
26657
  * @pixi/spritesheet is licensed under the MIT License.
26376
26658
  * http://www.opensource.org/licenses/mit-license
@@ -26560,8 +26842,8 @@ var SpritesheetLoader = function() {
26560
26842
  return SpritesheetLoader2;
26561
26843
  }();
26562
26844
  /*!
26563
- * @pixi/sprite-tiling - v6.2.2
26564
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
26845
+ * @pixi/sprite-tiling - v6.3.0
26846
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
26565
26847
  *
26566
26848
  * @pixi/sprite-tiling is licensed under the MIT License.
26567
26849
  * http://www.opensource.org/licenses/mit-license
@@ -26810,8 +27092,8 @@ var TilingSpriteRenderer = function(_super) {
26810
27092
  return TilingSpriteRenderer2;
26811
27093
  }(ObjectRenderer);
26812
27094
  /*!
26813
- * @pixi/mesh - v6.2.2
26814
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
27095
+ * @pixi/mesh - v6.3.0
27096
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
26815
27097
  *
26816
27098
  * @pixi/mesh is licensed under the MIT License.
26817
27099
  * http://www.opensource.org/licenses/mit-license
@@ -27221,8 +27503,8 @@ var MeshGeometry = function(_super) {
27221
27503
  return MeshGeometry2;
27222
27504
  }(Geometry);
27223
27505
  /*!
27224
- * @pixi/text-bitmap - v6.2.2
27225
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
27506
+ * @pixi/text-bitmap - v6.3.0
27507
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
27226
27508
  *
27227
27509
  * @pixi/text-bitmap is licensed under the MIT License.
27228
27510
  * http://www.opensource.org/licenses/mit-license
@@ -27418,13 +27700,13 @@ var XMLStringFormat = function() {
27418
27700
  }
27419
27701
  XMLStringFormat2.test = function(data) {
27420
27702
  if (typeof data === "string" && data.indexOf("<font>") > -1) {
27421
- var xml = new self.DOMParser().parseFromString(data, "text/xml");
27703
+ var xml = new globalThis.DOMParser().parseFromString(data, "text/xml");
27422
27704
  return XMLFormat.test(xml);
27423
27705
  }
27424
27706
  return false;
27425
27707
  };
27426
27708
  XMLStringFormat2.parse = function(xmlTxt) {
27427
- var xml = new self.DOMParser().parseFromString(xmlTxt, "text/xml");
27709
+ var xml = new globalThis.DOMParser().parseFromString(xmlTxt, "text/xml");
27428
27710
  return XMLFormat.parse(xml);
27429
27711
  };
27430
27712
  return XMLStringFormat2;
@@ -27884,7 +28166,7 @@ var charRenderDataPool = [];
27884
28166
  charRenderData.position.y = pos.y + charData.yOffset;
27885
28167
  charRenderData.prevSpaces = spaceCount;
27886
28168
  chars2.push(charRenderData);
27887
- lastLineWidth = charRenderData.position.x + charData.texture.orig.width;
28169
+ lastLineWidth = charRenderData.position.x + Math.max(charData.xAdvance, charData.texture.orig.width);
27888
28170
  pos.x += charData.xAdvance + this._letterSpacing;
27889
28171
  maxLineHeight = Math.max(maxLineHeight, charData.yOffset + charData.texture.height);
27890
28172
  prevCharCode = charCode;
@@ -28350,8 +28632,8 @@ var BitmapFontLoader = function() {
28350
28632
  return BitmapFontLoader2;
28351
28633
  }();
28352
28634
  /*!
28353
- * @pixi/filter-alpha - v6.2.2
28354
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
28635
+ * @pixi/filter-alpha - v6.3.0
28636
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
28355
28637
  *
28356
28638
  * @pixi/filter-alpha is licensed under the MIT License.
28357
28639
  * http://www.opensource.org/licenses/mit-license
@@ -28413,8 +28695,8 @@ var fragment$4 = "varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nun
28413
28695
  return AlphaFilter;
28414
28696
  })(Filter);
28415
28697
  /*!
28416
- * @pixi/filter-blur - v6.2.2
28417
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
28698
+ * @pixi/filter-blur - v6.3.0
28699
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
28418
28700
  *
28419
28701
  * @pixi/filter-blur is licensed under the MIT License.
28420
28702
  * http://www.opensource.org/licenses/mit-license
@@ -28512,8 +28794,8 @@ function generateBlurFragSource(kernelSize) {
28512
28794
  return fragSource;
28513
28795
  }
28514
28796
  /*!
28515
- * @pixi/constants - v6.2.2
28516
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
28797
+ * @pixi/constants - v6.3.0
28798
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
28517
28799
  *
28518
28800
  * @pixi/constants is licensed under the MIT License.
28519
28801
  * http://www.opensource.org/licenses/mit-license
@@ -28903,8 +29185,8 @@ var BlurFilterPass = function(_super) {
28903
29185
  return BlurFilter;
28904
29186
  })(Filter);
28905
29187
  /*!
28906
- * @pixi/filter-color-matrix - v6.2.2
28907
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
29188
+ * @pixi/filter-color-matrix - v6.3.0
29189
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
28908
29190
  *
28909
29191
  * @pixi/filter-color-matrix is licensed under the MIT License.
28910
29192
  * http://www.opensource.org/licenses/mit-license
@@ -29581,8 +29863,8 @@ var ColorMatrixFilter = function(_super) {
29581
29863
  }(Filter);
29582
29864
  ColorMatrixFilter.prototype.grayscale = ColorMatrixFilter.prototype.greyscale;
29583
29865
  /*!
29584
- * @pixi/filter-displacement - v6.2.2
29585
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
29866
+ * @pixi/filter-displacement - v6.3.0
29867
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29586
29868
  *
29587
29869
  * @pixi/filter-displacement is licensed under the MIT License.
29588
29870
  * http://www.opensource.org/licenses/mit-license
@@ -29670,8 +29952,8 @@ var vertex$1 = "attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix
29670
29952
  return DisplacementFilter;
29671
29953
  })(Filter);
29672
29954
  /*!
29673
- * @pixi/filter-fxaa - v6.2.2
29674
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
29955
+ * @pixi/filter-fxaa - v6.3.0
29956
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29675
29957
  *
29676
29958
  * @pixi/filter-fxaa is licensed under the MIT License.
29677
29959
  * http://www.opensource.org/licenses/mit-license
@@ -29840,8 +30122,8 @@ void main() {
29840
30122
  return FXAAFilter;
29841
30123
  })(Filter);
29842
30124
  /*!
29843
- * @pixi/filter-noise - v6.2.2
29844
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30125
+ * @pixi/filter-noise - v6.3.0
30126
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29845
30127
  *
29846
30128
  * @pixi/filter-noise is licensed under the MIT License.
29847
30129
  * http://www.opensource.org/licenses/mit-license
@@ -29920,15 +30202,15 @@ var fragment = "precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying v
29920
30202
  return NoiseFilter;
29921
30203
  })(Filter);
29922
30204
  /*!
29923
- * @pixi/mixin-cache-as-bitmap - v6.2.2
29924
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30205
+ * @pixi/mixin-cache-as-bitmap - v6.3.0
30206
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29925
30207
  *
29926
30208
  * @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
29927
30209
  * http://www.opensource.org/licenses/mit-license
29928
30210
  */
29929
30211
  /*!
29930
- * @pixi/constants - v6.2.2
29931
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30212
+ * @pixi/constants - v6.3.0
30213
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29932
30214
  *
29933
30215
  * @pixi/constants is licensed under the MIT License.
29934
30216
  * http://www.opensource.org/licenses/mit-license
@@ -30358,8 +30640,8 @@ DisplayObject.prototype._cacheAsBitmapDestroy = function _cacheAsBitmapDestroy(o
30358
30640
  this.destroy(options);
30359
30641
  };
30360
30642
  /*!
30361
- * @pixi/mixin-get-child-by-name - v6.2.2
30362
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30643
+ * @pixi/mixin-get-child-by-name - v6.3.0
30644
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30363
30645
  *
30364
30646
  * @pixi/mixin-get-child-by-name is licensed under the MIT License.
30365
30647
  * http://www.opensource.org/licenses/mit-license
@@ -30386,8 +30668,8 @@ Container.prototype.getChildByName = function getChildByName(name, deep) {
30386
30668
  return null;
30387
30669
  };
30388
30670
  /*!
30389
- * @pixi/mixin-get-global-position - v6.2.2
30390
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30671
+ * @pixi/mixin-get-global-position - v6.3.0
30672
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30391
30673
  *
30392
30674
  * @pixi/mixin-get-global-position is licensed under the MIT License.
30393
30675
  * http://www.opensource.org/licenses/mit-license
@@ -30408,8 +30690,8 @@ DisplayObject.prototype.getGlobalPosition = function getGlobalPosition(point, sk
30408
30690
  return point;
30409
30691
  };
30410
30692
  /*!
30411
- * @pixi/mesh-extras - v6.2.2
30412
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30693
+ * @pixi/mesh-extras - v6.3.0
30694
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30413
30695
  *
30414
30696
  * @pixi/mesh-extras is licensed under the MIT License.
30415
30697
  * http://www.opensource.org/licenses/mit-license
@@ -30890,8 +31172,8 @@ var DEFAULT_BORDER_SIZE = 10;
30890
31172
  return NineSlicePlane;
30891
31173
  })(SimplePlane);
30892
31174
  /*!
30893
- * @pixi/sprite-animated - v6.2.2
30894
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
31175
+ * @pixi/sprite-animated - v6.3.0
31176
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30895
31177
  *
30896
31178
  * @pixi/sprite-animated is licensed under the MIT License.
30897
31179
  * http://www.opensource.org/licenses/mit-license
@@ -31141,8 +31423,8 @@ var AnimatedSprite = function(_super) {
31141
31423
  return AnimatedSprite2;
31142
31424
  }(Sprite);
31143
31425
  /*!
31144
- * pixi.js - v6.2.2
31145
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
31426
+ * pixi.js - v6.3.0
31427
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
31146
31428
  *
31147
31429
  * pixi.js is licensed under the MIT License.
31148
31430
  * http://www.opensource.org/licenses/mit-license
@@ -33623,15 +33905,18 @@ var OS_PRESETS = [{
33623
33905
  }, {
33624
33906
  test: "windows nt",
33625
33907
  id: "window"
33908
+ }, {
33909
+ test: "win32|windows",
33910
+ id: "window"
33626
33911
  }, {
33627
33912
  test: "iphone|ipad|ipod",
33628
33913
  id: "ios",
33629
33914
  versionTest: "iphone os|cpu os"
33630
33915
  }, {
33631
- test: "mac os x",
33916
+ test: "macos|macintel|mac os x",
33632
33917
  id: "mac"
33633
33918
  }, {
33634
- test: "android",
33919
+ test: "android|linux armv81",
33635
33920
  id: "android"
33636
33921
  }, {
33637
33922
  test: "tizen",
@@ -33645,6 +33930,7 @@ function parseUserAgentData(osData) {
33645
33930
  var brands = (userAgentData.uaList || userAgentData.brands).slice();
33646
33931
  var isMobile2 = userAgentData.mobile || false;
33647
33932
  var firstBrand = brands[0];
33933
+ var platform2 = (osData && osData.platform || userAgentData.platform || navigator.platform).toLowerCase();
33648
33934
  var browser = {
33649
33935
  name: firstBrand.brand,
33650
33936
  version: firstBrand.version,
@@ -33671,12 +33957,11 @@ function parseUserAgentData(osData) {
33671
33957
  browser.webkit = !!webkitBrand.brand;
33672
33958
  browser.webkitVersion = webkitBrand.version;
33673
33959
  }
33960
+ var platfomResult = find(OS_PRESETS, function(preset) {
33961
+ return new RegExp("" + preset.test, "g").exec(platform2);
33962
+ });
33963
+ os.name = platfomResult ? platfomResult.id : "";
33674
33964
  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
33965
  os.version = osData.platformVersion;
33681
33966
  }
33682
33967
  var browserBrand = findPresetBrand(BROWSER_PRESETS, brands);
@@ -33684,9 +33969,7 @@ function parseUserAgentData(osData) {
33684
33969
  browser.name = browserBrand.brand;
33685
33970
  browser.version = osData ? osData.uaFullVersion : browserBrand.version;
33686
33971
  }
33687
- if (navigator.platform === "Linux armv8l") {
33688
- os.name = "android";
33689
- } else if (browser.webkit) {
33972
+ if (browser.webkit) {
33690
33973
  os.name = isMobile2 ? "ios" : "mac";
33691
33974
  }
33692
33975
  if (os.name === "ios" && browser.webview) {
@@ -51896,7 +52179,7 @@ init_fn = async function() {
51896
52179
  const hApp = {
51897
52180
  width: __privateGet(this, _cfg3).oCfg.window.width,
51898
52181
  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)),
52182
+ backgroundColor: parseColor(__privateGet(this, _cfg3).oCfg.init.bg_color),
51900
52183
  resolution: (_b3 = globalThis.devicePixelRatio) != null ? _b3 : 1,
51901
52184
  autoResize: true
51902
52185
  };