@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/web.js CHANGED
@@ -3059,9 +3059,7 @@ const _SysBase = class {
3059
3059
  addLayCls: () => {
3060
3060
  },
3061
3061
  searchPath: () => "",
3062
- getVal: () => {
3063
- return {};
3064
- },
3062
+ getVal: () => ({}),
3065
3063
  resume: () => {
3066
3064
  },
3067
3065
  render: () => {
@@ -3378,7 +3376,6 @@ const _Config = class {
3378
3376
  this.sys = sys;
3379
3377
  this.oCfg = {
3380
3378
  save_ns: "",
3381
- coder: { len: 864 },
3382
3379
  window: {
3383
3380
  width: 300,
3384
3381
  height: 300
@@ -3394,7 +3391,7 @@ const _Config = class {
3394
3391
  },
3395
3392
  log: { max_len: 1024 },
3396
3393
  init: {
3397
- bg_color: 0,
3394
+ bg_color: "#000000",
3398
3395
  tagch_msecwait: 10,
3399
3396
  auto_msecpagewait: 3500,
3400
3397
  escape: ""
@@ -3427,15 +3424,13 @@ const _Config = class {
3427
3424
  return c2;
3428
3425
  }
3429
3426
  async load(oCfg) {
3430
- var _a3, _b3, _c3, _d2, _e, _f, _g, _h, _i;
3427
+ var _a3, _b3, _c3, _d2, _e, _f, _g, _h;
3431
3428
  this.oCfg.save_ns = (_a3 = oCfg == null ? void 0 : oCfg.save_ns) != null ? _a3 : this.oCfg.save_ns;
3432
- this.oCfg.coder = (_b3 = oCfg == null ? void 0 : oCfg.coder) != null ? _b3 : this.oCfg.coder;
3433
- 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);
3434
- 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);
3429
+ 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);
3430
+ 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);
3435
3431
  this.oCfg.book = __spreadValues(__spreadValues({}, this.oCfg.book), oCfg.book);
3436
- 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;
3432
+ 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;
3437
3433
  this.oCfg.init = __spreadValues(__spreadValues({}, this.oCfg.init), oCfg.init);
3438
- this.oCfg.init.bg_color = parseColor(String(this.oCfg.init.bg_color));
3439
3434
  this.oCfg.debug = __spreadValues(__spreadValues({}, this.oCfg.debug), oCfg.debug);
3440
3435
  CmnLib.debugLog = this.oCfg.debug.debugLog;
3441
3436
  this.oCfg.debuger_token = oCfg.debuger_token;
@@ -6327,13 +6322,13 @@ function isMobile$1(param) {
6327
6322
  return result;
6328
6323
  }
6329
6324
  /*!
6330
- * @pixi/settings - v6.2.2
6331
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
6325
+ * @pixi/settings - v6.3.0
6326
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
6332
6327
  *
6333
6328
  * @pixi/settings is licensed under the MIT License.
6334
6329
  * http://www.opensource.org/licenses/mit-license
6335
6330
  */
6336
- var isMobile = isMobile$1(self.navigator);
6331
+ var isMobile = isMobile$1(globalThis.navigator);
6337
6332
  function maxRecommendedTextures(max) {
6338
6333
  var allowMax = true;
6339
6334
  if (isMobile.tablet || isMobile.phone) {
@@ -6362,8 +6357,8 @@ function canUploadSameBuffer() {
6362
6357
  return !isMobile.apple.device;
6363
6358
  }
6364
6359
  /*!
6365
- * @pixi/constants - v6.2.2
6366
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
6360
+ * @pixi/constants - v6.3.0
6361
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
6367
6362
  *
6368
6363
  * @pixi/constants is licensed under the MIT License.
6369
6364
  * http://www.opensource.org/licenses/mit-license
@@ -6585,8 +6580,8 @@ var settings = {
6585
6580
  ROUND_PIXELS: false
6586
6581
  };
6587
6582
  /*!
6588
- * @pixi/constants - v6.2.2
6589
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
6583
+ * @pixi/constants - v6.3.0
6584
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
6590
6585
  *
6591
6586
  * @pixi/constants is licensed under the MIT License.
6592
6587
  * http://www.opensource.org/licenses/mit-license
@@ -8198,8 +8193,8 @@ Url$1.prototype.parseHost = function() {
8198
8193
  this.hostname = host;
8199
8194
  };
8200
8195
  /*!
8201
- * @pixi/utils - v6.2.2
8202
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
8196
+ * @pixi/utils - v6.3.0
8197
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
8203
8198
  *
8204
8199
  * @pixi/utils is licensed under the MIT License.
8205
8200
  * http://www.opensource.org/licenses/mit-license
@@ -8212,7 +8207,7 @@ var url = {
8212
8207
  settings.RETINA_PREFIX = /@([0-9\.]+)x/;
8213
8208
  settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = false;
8214
8209
  var saidHello = false;
8215
- var VERSION = "6.2.2";
8210
+ var VERSION = "6.3.0";
8216
8211
  function skipHello() {
8217
8212
  saidHello = true;
8218
8213
  }
@@ -8234,9 +8229,9 @@ function sayHello(type) {
8234
8229
  "color: #ff2424; background: #fff; padding:5px 0;",
8235
8230
  "color: #ff2424; background: #fff; padding:5px 0;"
8236
8231
  ];
8237
- (_a3 = self.console).log.apply(_a3, args);
8238
- } else if (self.console) {
8239
- self.console.log("PixiJS " + VERSION + " - " + type + " - http://www.pixijs.com/");
8232
+ (_a3 = globalThis.console).log.apply(_a3, args);
8233
+ } else if (globalThis.console) {
8234
+ globalThis.console.log("PixiJS " + VERSION + " - " + type + " - http://www.pixijs.com/");
8240
8235
  }
8241
8236
  saidHello = true;
8242
8237
  }
@@ -8249,7 +8244,7 @@ function isWebGLSupported() {
8249
8244
  failIfMajorPerformanceCaveat: settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT
8250
8245
  };
8251
8246
  try {
8252
- if (!self.WebGLRenderingContext) {
8247
+ if (!globalThis.WebGLRenderingContext) {
8253
8248
  return false;
8254
8249
  }
8255
8250
  var canvas2 = document.createElement("canvas");
@@ -8579,14 +8574,14 @@ function hex2rgb(hex, out) {
8579
8574
  }
8580
8575
  function hex2string(hex) {
8581
8576
  var hexString = hex.toString(16);
8582
- hexString = "000000".substr(0, 6 - hexString.length) + hexString;
8577
+ hexString = "000000".substring(0, 6 - hexString.length) + hexString;
8583
8578
  return "#" + hexString;
8584
8579
  }
8585
8580
  function string2hex(string) {
8586
8581
  if (typeof string === "string") {
8587
8582
  string = cssColorNames[string.toLowerCase()] || string;
8588
8583
  if (string[0] === "#") {
8589
- string = string.substr(1);
8584
+ string = string.slice(1);
8590
8585
  }
8591
8586
  }
8592
8587
  return parseInt(string, 16);
@@ -8875,12 +8870,12 @@ function trimCanvas(canvas2) {
8875
8870
  var tempAnchor$1;
8876
8871
  function determineCrossOrigin(url$12, loc) {
8877
8872
  if (loc === void 0) {
8878
- loc = self.location;
8873
+ loc = globalThis.location;
8879
8874
  }
8880
8875
  if (url$12.indexOf("data:") === 0) {
8881
8876
  return "";
8882
8877
  }
8883
- loc = loc || self.location;
8878
+ loc = loc || globalThis.location;
8884
8879
  if (!tempAnchor$1) {
8885
8880
  tempAnchor$1 = document.createElement("a");
8886
8881
  }
@@ -8900,8 +8895,8 @@ function getResolutionOfUrl(url2, defaultValue2) {
8900
8895
  return defaultValue2 !== void 0 ? defaultValue2 : 1;
8901
8896
  }
8902
8897
  /*!
8903
- * @pixi/runner - v6.2.2
8904
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
8898
+ * @pixi/runner - v6.3.0
8899
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
8905
8900
  *
8906
8901
  * @pixi/runner is licensed under the MIT License.
8907
8902
  * http://www.opensource.org/licenses/mit-license
@@ -8982,8 +8977,8 @@ Object.defineProperties(Runner.prototype, {
8982
8977
  run: { value: Runner.prototype.emit }
8983
8978
  });
8984
8979
  /*!
8985
- * @pixi/ticker - v6.2.2
8986
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
8980
+ * @pixi/ticker - v6.3.0
8981
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
8987
8982
  *
8988
8983
  * @pixi/ticker is licensed under the MIT License.
8989
8984
  * http://www.opensource.org/licenses/mit-license
@@ -9339,8 +9334,8 @@ var TickerPlugin = function() {
9339
9334
  return TickerPlugin2;
9340
9335
  }();
9341
9336
  /*!
9342
- * @pixi/math - v6.2.2
9343
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
9337
+ * @pixi/math - v6.3.0
9338
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
9344
9339
  *
9345
9340
  * @pixi/math is licensed under the MIT License.
9346
9341
  * http://www.opensource.org/licenses/mit-license
@@ -9356,6 +9351,50 @@ var SHAPES;
9356
9351
  SHAPES2[SHAPES2["ELIP"] = 3] = "ELIP";
9357
9352
  SHAPES2[SHAPES2["RREC"] = 4] = "RREC";
9358
9353
  })(SHAPES || (SHAPES = {}));
9354
+ var Point = function() {
9355
+ function Point2(x2, y2) {
9356
+ if (x2 === void 0) {
9357
+ x2 = 0;
9358
+ }
9359
+ if (y2 === void 0) {
9360
+ y2 = 0;
9361
+ }
9362
+ this.x = 0;
9363
+ this.y = 0;
9364
+ this.x = x2;
9365
+ this.y = y2;
9366
+ }
9367
+ Point2.prototype.clone = function() {
9368
+ return new Point2(this.x, this.y);
9369
+ };
9370
+ Point2.prototype.copyFrom = function(p2) {
9371
+ this.set(p2.x, p2.y);
9372
+ return this;
9373
+ };
9374
+ Point2.prototype.copyTo = function(p2) {
9375
+ p2.set(this.x, this.y);
9376
+ return p2;
9377
+ };
9378
+ Point2.prototype.equals = function(p2) {
9379
+ return p2.x === this.x && p2.y === this.y;
9380
+ };
9381
+ Point2.prototype.set = function(x2, y2) {
9382
+ if (x2 === void 0) {
9383
+ x2 = 0;
9384
+ }
9385
+ if (y2 === void 0) {
9386
+ y2 = x2;
9387
+ }
9388
+ this.x = x2;
9389
+ this.y = y2;
9390
+ return this;
9391
+ };
9392
+ Point2.prototype.toString = function() {
9393
+ return "[@pixi/math:Point x=" + this.x + " y=" + this.y + "]";
9394
+ };
9395
+ return Point2;
9396
+ }();
9397
+ var tempPoints$1 = [new Point(), new Point(), new Point(), new Point()];
9359
9398
  var Rectangle = function() {
9360
9399
  function Rectangle2(x2, y2, width, height) {
9361
9400
  if (x2 === void 0) {
@@ -9439,6 +9478,62 @@ var Rectangle = function() {
9439
9478
  }
9440
9479
  return false;
9441
9480
  };
9481
+ Rectangle2.prototype.intersects = function(other, transform) {
9482
+ if (!transform) {
9483
+ var x0_1 = this.x < other.x ? other.x : this.x;
9484
+ var x1_1 = this.right > other.right ? other.right : this.right;
9485
+ if (x1_1 <= x0_1) {
9486
+ return false;
9487
+ }
9488
+ var y0_1 = this.y < other.y ? other.y : this.y;
9489
+ var y1_1 = this.bottom > other.bottom ? other.bottom : this.bottom;
9490
+ return y1_1 > y0_1;
9491
+ }
9492
+ var x0 = this.left;
9493
+ var x1 = this.right;
9494
+ var y0 = this.top;
9495
+ var y1 = this.bottom;
9496
+ if (x1 <= x0 || y1 <= y0) {
9497
+ return false;
9498
+ }
9499
+ var lt = tempPoints$1[0].set(other.left, other.top);
9500
+ var lb = tempPoints$1[1].set(other.left, other.bottom);
9501
+ var rt = tempPoints$1[2].set(other.right, other.top);
9502
+ var rb = tempPoints$1[3].set(other.right, other.bottom);
9503
+ if (rt.x <= lt.x || lb.y <= lt.y) {
9504
+ return false;
9505
+ }
9506
+ var s2 = Math.sign(transform.a * transform.d - transform.b * transform.c);
9507
+ if (s2 === 0) {
9508
+ return false;
9509
+ }
9510
+ transform.apply(lt, lt);
9511
+ transform.apply(lb, lb);
9512
+ transform.apply(rt, rt);
9513
+ transform.apply(rb, rb);
9514
+ 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) {
9515
+ return false;
9516
+ }
9517
+ var nx = s2 * (lb.y - lt.y);
9518
+ var ny = s2 * (lt.x - lb.x);
9519
+ var n00 = nx * x0 + ny * y0;
9520
+ var n10 = nx * x1 + ny * y0;
9521
+ var n01 = nx * x0 + ny * y1;
9522
+ var n11 = nx * x1 + ny * y1;
9523
+ 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) {
9524
+ return false;
9525
+ }
9526
+ var mx = s2 * (lt.y - rt.y);
9527
+ var my = s2 * (rt.x - lt.x);
9528
+ var m00 = mx * x0 + my * y0;
9529
+ var m10 = mx * x1 + my * y0;
9530
+ var m01 = mx * x0 + my * y1;
9531
+ var m11 = mx * x1 + my * y1;
9532
+ 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) {
9533
+ return false;
9534
+ }
9535
+ return true;
9536
+ };
9442
9537
  Rectangle2.prototype.pad = function(paddingX, paddingY) {
9443
9538
  if (paddingX === void 0) {
9444
9539
  paddingX = 0;
@@ -9684,49 +9779,6 @@ var RoundedRectangle = function() {
9684
9779
  };
9685
9780
  return RoundedRectangle2;
9686
9781
  }();
9687
- var Point = function() {
9688
- function Point2(x2, y2) {
9689
- if (x2 === void 0) {
9690
- x2 = 0;
9691
- }
9692
- if (y2 === void 0) {
9693
- y2 = 0;
9694
- }
9695
- this.x = 0;
9696
- this.y = 0;
9697
- this.x = x2;
9698
- this.y = y2;
9699
- }
9700
- Point2.prototype.clone = function() {
9701
- return new Point2(this.x, this.y);
9702
- };
9703
- Point2.prototype.copyFrom = function(p2) {
9704
- this.set(p2.x, p2.y);
9705
- return this;
9706
- };
9707
- Point2.prototype.copyTo = function(p2) {
9708
- p2.set(this.x, this.y);
9709
- return p2;
9710
- };
9711
- Point2.prototype.equals = function(p2) {
9712
- return p2.x === this.x && p2.y === this.y;
9713
- };
9714
- Point2.prototype.set = function(x2, y2) {
9715
- if (x2 === void 0) {
9716
- x2 = 0;
9717
- }
9718
- if (y2 === void 0) {
9719
- y2 = x2;
9720
- }
9721
- this.x = x2;
9722
- this.y = y2;
9723
- return this;
9724
- };
9725
- Point2.prototype.toString = function() {
9726
- return "[@pixi/math:Point x=" + this.x + " y=" + this.y + "]";
9727
- };
9728
- return Point2;
9729
- }();
9730
9782
  var ObservablePoint = function() {
9731
9783
  function ObservablePoint2(cb, scope, x2, y2) {
9732
9784
  if (x2 === void 0) {
@@ -10255,8 +10307,8 @@ var Transform = function() {
10255
10307
  return Transform2;
10256
10308
  }();
10257
10309
  /*!
10258
- * @pixi/core - v6.2.2
10259
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
10310
+ * @pixi/core - v6.3.0
10311
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
10260
10312
  *
10261
10313
  * @pixi/core is licensed under the MIT License.
10262
10314
  * http://www.opensource.org/licenses/mit-license
@@ -10895,6 +10947,15 @@ var BaseImageResource = function(_super) {
10895
10947
  var width = baseTexture.realWidth;
10896
10948
  var height = baseTexture.realHeight;
10897
10949
  source = source || this.source;
10950
+ if (source instanceof HTMLImageElement) {
10951
+ if (!source.complete || source.naturalWidth === 0) {
10952
+ return false;
10953
+ }
10954
+ } else if (source instanceof HTMLVideoElement) {
10955
+ if (source.readyState <= 1) {
10956
+ return false;
10957
+ }
10958
+ }
10898
10959
  gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, baseTexture.alphaMode === ALPHA_MODES$3.UNPACK);
10899
10960
  if (!this.noSubImage && baseTexture.target === gl.TEXTURE_2D && glTexture.width === width && glTexture.height === height) {
10900
10961
  gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, baseTexture.format, glTexture.type, source);
@@ -10926,11 +10987,11 @@ var CanvasResource = function(_super) {
10926
10987
  return _super.call(this, source) || this;
10927
10988
  }
10928
10989
  CanvasResource2.test = function(source) {
10929
- var OffscreenCanvas2 = self.OffscreenCanvas;
10990
+ var OffscreenCanvas2 = globalThis.OffscreenCanvas;
10930
10991
  if (OffscreenCanvas2 && source instanceof OffscreenCanvas2) {
10931
10992
  return true;
10932
10993
  }
10933
- return self.HTMLCanvasElement && source instanceof HTMLCanvasElement;
10994
+ return globalThis.HTMLCanvasElement && source instanceof HTMLCanvasElement;
10934
10995
  };
10935
10996
  return CanvasResource2;
10936
10997
  }(BaseImageResource);
@@ -11021,7 +11082,7 @@ var ImageResource = function(_super) {
11021
11082
  _this.url = source.src;
11022
11083
  _this._process = null;
11023
11084
  _this.preserveBitmap = false;
11024
- _this.createBitmap = (options.createBitmap !== void 0 ? options.createBitmap : settings.CREATE_IMAGE_BITMAP) && !!self.createImageBitmap;
11085
+ _this.createBitmap = (options.createBitmap !== void 0 ? options.createBitmap : settings.CREATE_IMAGE_BITMAP) && !!globalThis.createImageBitmap;
11025
11086
  _this.alphaMode = typeof options.alphaMode === "number" ? options.alphaMode : null;
11026
11087
  _this.bitmap = null;
11027
11088
  _this._load = null;
@@ -11073,10 +11134,10 @@ var ImageResource = function(_super) {
11073
11134
  if (this._process !== null) {
11074
11135
  return this._process;
11075
11136
  }
11076
- if (this.bitmap !== null || !self.createImageBitmap) {
11137
+ if (this.bitmap !== null || !globalThis.createImageBitmap) {
11077
11138
  return Promise.resolve(this);
11078
11139
  }
11079
- var createImageBitmap = self.createImageBitmap;
11140
+ var createImageBitmap = globalThis.createImageBitmap;
11080
11141
  var cors = !source.crossOrigin || source.crossOrigin === "anonymous";
11081
11142
  this._process = fetch(source.src, {
11082
11143
  mode: cors ? "cors" : "no-cors"
@@ -11265,7 +11326,7 @@ var VideoResource = function(_super) {
11265
11326
  var _a3 = source[i2], src = _a3.src, mime = _a3.mime;
11266
11327
  src = src || source[i2];
11267
11328
  var baseSrc = src.split("?").shift().toLowerCase();
11268
- var ext = baseSrc.substr(baseSrc.lastIndexOf(".") + 1);
11329
+ var ext = baseSrc.slice(baseSrc.lastIndexOf(".") + 1);
11269
11330
  mime = mime || VideoResource2.MIME_TYPES[ext] || "video/" + ext;
11270
11331
  sourceElement.src = src;
11271
11332
  sourceElement.type = mime;
@@ -11416,7 +11477,7 @@ var VideoResource = function(_super) {
11416
11477
  configurable: true
11417
11478
  });
11418
11479
  VideoResource2.test = function(source, extension) {
11419
- return self.HTMLVideoElement && source instanceof HTMLVideoElement || VideoResource2.TYPES.indexOf(extension) > -1;
11480
+ return globalThis.HTMLVideoElement && source instanceof HTMLVideoElement || VideoResource2.TYPES.indexOf(extension) > -1;
11420
11481
  };
11421
11482
  VideoResource2.TYPES = ["mp4", "m4v", "webm", "ogg", "ogv", "h264", "avi", "mov"];
11422
11483
  VideoResource2.MIME_TYPES = {
@@ -11432,7 +11493,7 @@ var ImageBitmapResource = function(_super) {
11432
11493
  return _super.call(this, source) || this;
11433
11494
  }
11434
11495
  ImageBitmapResource2.test = function(source) {
11435
- return !!self.createImageBitmap && source instanceof ImageBitmap;
11496
+ return !!globalThis.createImageBitmap && source instanceof ImageBitmap;
11436
11497
  };
11437
11498
  return ImageBitmapResource2;
11438
11499
  }(BaseImageResource);
@@ -11573,6 +11634,9 @@ var Framebuffer = function() {
11573
11634
  var BaseRenderTexture = function(_super) {
11574
11635
  __extends$q(BaseRenderTexture2, _super);
11575
11636
  function BaseRenderTexture2(options) {
11637
+ if (options === void 0) {
11638
+ options = {};
11639
+ }
11576
11640
  var _this = this;
11577
11641
  if (typeof options === "number") {
11578
11642
  var width = arguments[0];
@@ -12070,8 +12134,8 @@ var RenderTexturePool = function() {
12070
12134
  multisample = MSAA_QUALITY$3.NONE;
12071
12135
  }
12072
12136
  var key;
12073
- minWidth = Math.ceil(minWidth * resolution);
12074
- minHeight = Math.ceil(minHeight * resolution);
12137
+ minWidth = Math.ceil(minWidth * resolution - 1e-6);
12138
+ minHeight = Math.ceil(minHeight * resolution - 1e-6);
12075
12139
  if (!this.enableFullScreen || minWidth !== this._pixelsWidth || minHeight !== this._pixelsHeight) {
12076
12140
  minWidth = nextPow2(minWidth);
12077
12141
  minHeight = nextPow2(minHeight);
@@ -13054,7 +13118,7 @@ var ContextSystem = function() {
13054
13118
  };
13055
13119
  ContextSystem2.prototype.validateContext = function(gl) {
13056
13120
  var attributes = gl.getContextAttributes();
13057
- var isWebGl2 = "WebGL2RenderingContext" in self && gl instanceof self.WebGL2RenderingContext;
13121
+ var isWebGl2 = "WebGL2RenderingContext" in globalThis && gl instanceof globalThis.WebGL2RenderingContext;
13058
13122
  if (isWebGl2) {
13059
13123
  this.webGLVersion = 2;
13060
13124
  }
@@ -13373,7 +13437,7 @@ var FramebufferSystem = function() {
13373
13437
  var sameSize = sourcePixels.width === destPixels.width && sourcePixels.height === destPixels.height;
13374
13438
  this.bind(framebuffer);
13375
13439
  gl.bindFramebuffer(gl.READ_FRAMEBUFFER, fbo.framebuffer);
13376
- 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);
13440
+ 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);
13377
13441
  };
13378
13442
  FramebufferSystem2.prototype.disposeFramebuffer = function(framebuffer, contextLost) {
13379
13443
  var fbo = framebuffer.glFramebuffers[this.CONTEXT_UID];
@@ -15651,7 +15715,7 @@ var TextureGCSystem = function() {
15651
15715
  function mapTypeAndFormatToInternalFormat(gl) {
15652
15716
  var _a3, _b3, _c3, _d2, _e, _f, _g, _h, _j, _k, _l2, _m, _o, _p2, _q, _r2, _s, _t, _u, _v, _w, _x;
15653
15717
  var table;
15654
- if ("WebGL2RenderingContext" in self && gl instanceof self.WebGL2RenderingContext) {
15718
+ if ("WebGL2RenderingContext" in globalThis && gl instanceof globalThis.WebGL2RenderingContext) {
15655
15719
  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);
15656
15720
  } else {
15657
15721
  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);
@@ -16845,8 +16909,8 @@ for (var name in _systems) {
16845
16909
  _loop_2(name);
16846
16910
  }
16847
16911
  /*!
16848
- * @pixi/loaders - v6.2.2
16849
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
16912
+ * @pixi/loaders - v6.3.0
16913
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
16850
16914
  *
16851
16915
  * @pixi/loaders is licensed under the MIT License.
16852
16916
  * http://www.opensource.org/licenses/mit-license
@@ -17010,7 +17074,7 @@ function parseUri(str2, opts) {
17010
17074
  });
17011
17075
  return uri;
17012
17076
  }
17013
- var useXdr = !!(self.XDomainRequest && !("withCredentials" in new XMLHttpRequest()));
17077
+ var useXdr = !!(globalThis.XDomainRequest && !("withCredentials" in new XMLHttpRequest()));
17014
17078
  var tempAnchor = null;
17015
17079
  var STATUS_NONE = 0;
17016
17080
  var STATUS_OK = 200;
@@ -17215,7 +17279,7 @@ var LoaderResource = function() {
17215
17279
  LoaderResource2.prototype._loadElement = function(type) {
17216
17280
  if (this.metadata.loadElement) {
17217
17281
  this.data = this.metadata.loadElement;
17218
- } else if (type === "image" && typeof self.Image !== "undefined") {
17282
+ } else if (type === "image" && typeof globalThis.Image !== "undefined") {
17219
17283
  this.data = new Image();
17220
17284
  } else {
17221
17285
  this.data = document.createElement(type);
@@ -17236,7 +17300,7 @@ var LoaderResource = function() {
17236
17300
  LoaderResource2.prototype._loadSourceElement = function(type) {
17237
17301
  if (this.metadata.loadElement) {
17238
17302
  this.data = this.metadata.loadElement;
17239
- } else if (type === "audio" && typeof self.Audio !== "undefined") {
17303
+ } else if (type === "audio" && typeof globalThis.Audio !== "undefined") {
17240
17304
  this.data = new Audio();
17241
17305
  } else {
17242
17306
  this.data = document.createElement(type);
@@ -17275,6 +17339,9 @@ var LoaderResource = function() {
17275
17339
  this.xhrType = this._determineXhrType();
17276
17340
  }
17277
17341
  var xhr = this.xhr = new XMLHttpRequest();
17342
+ if (this.crossOrigin === "use-credentials") {
17343
+ xhr.withCredentials = true;
17344
+ }
17278
17345
  xhr.open("GET", this.url, true);
17279
17346
  xhr.timeout = this.timeout;
17280
17347
  if (this.xhrType === LoaderResource2.XHR_RESPONSE_TYPE.JSON || this.xhrType === LoaderResource2.XHR_RESPONSE_TYPE.DOCUMENT) {
@@ -17293,7 +17360,7 @@ var LoaderResource = function() {
17293
17360
  if (typeof this.xhrType !== "string") {
17294
17361
  this.xhrType = this._determineXhrType();
17295
17362
  }
17296
- var xdr = this.xhr = new self.XDomainRequest();
17363
+ var xdr = this.xhr = new globalThis.XDomainRequest();
17297
17364
  xdr.timeout = this.timeout || 5e3;
17298
17365
  xdr.onerror = this._boundXhrOnError;
17299
17366
  xdr.ontimeout = this._boundXhrOnTimeout;
@@ -17363,7 +17430,7 @@ var LoaderResource = function() {
17363
17430
  }
17364
17431
  } else if (this.xhrType === LoaderResource2.XHR_RESPONSE_TYPE.DOCUMENT) {
17365
17432
  try {
17366
- if (self.DOMParser) {
17433
+ if (globalThis.DOMParser) {
17367
17434
  var domparser = new DOMParser();
17368
17435
  this.data = domparser.parseFromString(text2, "text/xml");
17369
17436
  } else {
@@ -17389,10 +17456,10 @@ var LoaderResource = function() {
17389
17456
  if (url2.indexOf("data:") === 0) {
17390
17457
  return "";
17391
17458
  }
17392
- if (self.origin !== self.location.origin) {
17459
+ if (globalThis.origin !== globalThis.location.origin) {
17393
17460
  return "anonymous";
17394
17461
  }
17395
- loc = loc || self.location;
17462
+ loc = loc || globalThis.location;
17396
17463
  if (!tempAnchor) {
17397
17464
  tempAnchor = document.createElement("a");
17398
17465
  }
@@ -17828,7 +17895,7 @@ var Loader = function() {
17828
17895
  }
17829
17896
  if (this.defaultQueryString) {
17830
17897
  var hash2 = rgxExtractUrlHash.exec(result)[0];
17831
- result = result.substr(0, result.length - hash2.length);
17898
+ result = result.slice(0, result.length - hash2.length);
17832
17899
  if (result.indexOf("?") !== -1) {
17833
17900
  result += "&" + this.defaultQueryString;
17834
17901
  } else {
@@ -19317,14 +19384,21 @@ var objectAssign = shouldUseNative() ? Object.assign : function(target, source)
19317
19384
  return to;
19318
19385
  };
19319
19386
  /*!
19320
- * @pixi/polyfill - v6.2.2
19321
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
19387
+ * @pixi/polyfill - v6.3.0
19388
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
19322
19389
  *
19323
19390
  * @pixi/polyfill is licensed under the MIT License.
19324
19391
  * http://www.opensource.org/licenses/mit-license
19325
19392
  */
19326
- if (!self.Promise) {
19327
- self.Promise = Promise$1;
19393
+ if (typeof globalThis === "undefined") {
19394
+ if (typeof self !== "undefined") {
19395
+ self.globalThis = self;
19396
+ } else if (typeof global !== "undefined") {
19397
+ global.globalThis = global;
19398
+ }
19399
+ }
19400
+ if (!globalThis.Promise) {
19401
+ globalThis.Promise = Promise$1;
19328
19402
  }
19329
19403
  if (!Object.assign) {
19330
19404
  Object.assign = objectAssign;
@@ -19335,24 +19409,24 @@ if (!(Date.now && Date.prototype.getTime)) {
19335
19409
  return new Date().getTime();
19336
19410
  };
19337
19411
  }
19338
- if (!(self.performance && self.performance.now)) {
19412
+ if (!(globalThis.performance && globalThis.performance.now)) {
19339
19413
  var startTime_1 = Date.now();
19340
- if (!self.performance) {
19341
- self.performance = {};
19414
+ if (!globalThis.performance) {
19415
+ globalThis.performance = {};
19342
19416
  }
19343
- self.performance.now = function() {
19417
+ globalThis.performance.now = function() {
19344
19418
  return Date.now() - startTime_1;
19345
19419
  };
19346
19420
  }
19347
19421
  var lastTime = Date.now();
19348
19422
  var vendors = ["ms", "moz", "webkit", "o"];
19349
- for (var x = 0; x < vendors.length && !self.requestAnimationFrame; ++x) {
19423
+ for (var x = 0; x < vendors.length && !globalThis.requestAnimationFrame; ++x) {
19350
19424
  var p = vendors[x];
19351
- self.requestAnimationFrame = self[p + "RequestAnimationFrame"];
19352
- self.cancelAnimationFrame = self[p + "CancelAnimationFrame"] || self[p + "CancelRequestAnimationFrame"];
19425
+ globalThis.requestAnimationFrame = globalThis[p + "RequestAnimationFrame"];
19426
+ globalThis.cancelAnimationFrame = globalThis[p + "CancelAnimationFrame"] || globalThis[p + "CancelRequestAnimationFrame"];
19353
19427
  }
19354
- if (!self.requestAnimationFrame) {
19355
- self.requestAnimationFrame = function(callback) {
19428
+ if (!globalThis.requestAnimationFrame) {
19429
+ globalThis.requestAnimationFrame = function(callback) {
19356
19430
  if (typeof callback !== "function") {
19357
19431
  throw new TypeError(callback + "is not a function");
19358
19432
  }
@@ -19362,14 +19436,14 @@ if (!self.requestAnimationFrame) {
19362
19436
  delay = 0;
19363
19437
  }
19364
19438
  lastTime = currentTime;
19365
- return self.setTimeout(function() {
19439
+ return globalThis.self.setTimeout(function() {
19366
19440
  lastTime = Date.now();
19367
19441
  callback(performance.now());
19368
19442
  }, delay);
19369
19443
  };
19370
19444
  }
19371
- if (!self.cancelAnimationFrame) {
19372
- self.cancelAnimationFrame = function(id) {
19445
+ if (!globalThis.cancelAnimationFrame) {
19446
+ globalThis.cancelAnimationFrame = function(id) {
19373
19447
  return clearTimeout(id);
19374
19448
  };
19375
19449
  }
@@ -19387,27 +19461,27 @@ if (!Number.isInteger) {
19387
19461
  return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
19388
19462
  };
19389
19463
  }
19390
- if (!self.ArrayBuffer) {
19391
- self.ArrayBuffer = Array;
19464
+ if (!globalThis.ArrayBuffer) {
19465
+ globalThis.ArrayBuffer = Array;
19392
19466
  }
19393
- if (!self.Float32Array) {
19394
- self.Float32Array = Array;
19467
+ if (!globalThis.Float32Array) {
19468
+ globalThis.Float32Array = Array;
19395
19469
  }
19396
- if (!self.Uint32Array) {
19397
- self.Uint32Array = Array;
19470
+ if (!globalThis.Uint32Array) {
19471
+ globalThis.Uint32Array = Array;
19398
19472
  }
19399
- if (!self.Uint16Array) {
19400
- self.Uint16Array = Array;
19473
+ if (!globalThis.Uint16Array) {
19474
+ globalThis.Uint16Array = Array;
19401
19475
  }
19402
- if (!self.Uint8Array) {
19403
- self.Uint8Array = Array;
19476
+ if (!globalThis.Uint8Array) {
19477
+ globalThis.Uint8Array = Array;
19404
19478
  }
19405
- if (!self.Int32Array) {
19406
- self.Int32Array = Array;
19479
+ if (!globalThis.Int32Array) {
19480
+ globalThis.Int32Array = Array;
19407
19481
  }
19408
19482
  /*!
19409
- * @pixi/display - v6.2.2
19410
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
19483
+ * @pixi/display - v6.3.0
19484
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
19411
19485
  *
19412
19486
  * @pixi/display is licensed under the MIT License.
19413
19487
  * http://www.opensource.org/licenses/mit-license
@@ -19700,6 +19774,8 @@ var DisplayObject = function(_super) {
19700
19774
  _this.alpha = 1;
19701
19775
  _this.visible = true;
19702
19776
  _this.renderable = true;
19777
+ _this.cullable = false;
19778
+ _this.cullArea = null;
19703
19779
  _this.parent = null;
19704
19780
  _this.worldAlpha = 1;
19705
19781
  _this._lastSortedIndex = 0;
@@ -19881,6 +19957,7 @@ var DisplayObject = function(_super) {
19881
19957
  this.parent = null;
19882
19958
  this._bounds = null;
19883
19959
  this.mask = null;
19960
+ this.cullArea = null;
19884
19961
  this.filters = null;
19885
19962
  this.filterArea = null;
19886
19963
  this.hitArea = null;
@@ -20069,8 +20146,8 @@ var TemporaryDisplayObject = function(_super) {
20069
20146
  }(DisplayObject);
20070
20147
  DisplayObject.prototype.displayObjectUpdateTransform = DisplayObject.prototype.updateTransform;
20071
20148
  /*!
20072
- * @pixi/constants - v6.2.2
20073
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
20149
+ * @pixi/constants - v6.3.0
20150
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
20074
20151
  *
20075
20152
  * @pixi/constants is licensed under the MIT License.
20076
20153
  * http://www.opensource.org/licenses/mit-license
@@ -20485,12 +20562,40 @@ var Container = function(_super) {
20485
20562
  };
20486
20563
  Container2.prototype._calculateBounds = function() {
20487
20564
  };
20565
+ Container2.prototype._renderWithCulling = function(renderer) {
20566
+ var sourceFrame = renderer.renderTexture.sourceFrame;
20567
+ if (!(sourceFrame.width > 0 && sourceFrame.height > 0)) {
20568
+ return;
20569
+ }
20570
+ var bounds;
20571
+ var transform;
20572
+ if (this.cullArea) {
20573
+ bounds = this.cullArea;
20574
+ transform = this.worldTransform;
20575
+ } else if (this._render !== Container2.prototype._render) {
20576
+ bounds = this.getBounds(true);
20577
+ }
20578
+ if (bounds && sourceFrame.intersects(bounds, transform)) {
20579
+ this._render(renderer);
20580
+ } else if (this.cullArea) {
20581
+ return;
20582
+ }
20583
+ for (var i2 = 0, j2 = this.children.length; i2 < j2; ++i2) {
20584
+ var child = this.children[i2];
20585
+ var childCullable = child.cullable;
20586
+ child.cullable = childCullable || !this.cullArea;
20587
+ child.render(renderer);
20588
+ child.cullable = childCullable;
20589
+ }
20590
+ };
20488
20591
  Container2.prototype.render = function(renderer) {
20489
20592
  if (!this.visible || this.worldAlpha <= 0 || !this.renderable) {
20490
20593
  return;
20491
20594
  }
20492
20595
  if (this._mask || this.filters && this.filters.length) {
20493
20596
  this.renderAdvanced(renderer);
20597
+ } else if (this.cullable) {
20598
+ this._renderWithCulling(renderer);
20494
20599
  } else {
20495
20600
  this._render(renderer);
20496
20601
  for (var i2 = 0, j2 = this.children.length; i2 < j2; ++i2) {
@@ -20522,9 +20627,13 @@ var Container = function(_super) {
20522
20627
  if (mask) {
20523
20628
  renderer.mask.push(this, this._mask);
20524
20629
  }
20525
- this._render(renderer);
20526
- for (var i2 = 0, j2 = this.children.length; i2 < j2; i2++) {
20527
- this.children[i2].render(renderer);
20630
+ if (this.cullable) {
20631
+ this._renderWithCulling(renderer);
20632
+ } else {
20633
+ this._render(renderer);
20634
+ for (var i2 = 0, j2 = this.children.length; i2 < j2; ++i2) {
20635
+ this.children[i2].render(renderer);
20636
+ }
20528
20637
  }
20529
20638
  if (flush) {
20530
20639
  renderer.batch.flush();
@@ -20585,8 +20694,8 @@ var Container = function(_super) {
20585
20694
  }(DisplayObject);
20586
20695
  Container.prototype.containerUpdateTransform = Container.prototype.updateTransform;
20587
20696
  /*!
20588
- * @pixi/accessibility - v6.2.2
20589
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
20697
+ * @pixi/accessibility - v6.3.0
20698
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
20590
20699
  *
20591
20700
  * @pixi/accessibility is licensed under the MIT License.
20592
20701
  * http://www.opensource.org/licenses/mit-license
@@ -20638,7 +20747,7 @@ var AccessibilityManager = function() {
20638
20747
  this.renderer = renderer;
20639
20748
  this._onKeyDown = this._onKeyDown.bind(this);
20640
20749
  this._onMouseMove = this._onMouseMove.bind(this);
20641
- self.addEventListener("keydown", this._onKeyDown, false);
20750
+ globalThis.addEventListener("keydown", this._onKeyDown, false);
20642
20751
  }
20643
20752
  Object.defineProperty(AccessibilityManager2.prototype, "isActive", {
20644
20753
  get: function() {
@@ -20686,8 +20795,8 @@ var AccessibilityManager = function() {
20686
20795
  return;
20687
20796
  }
20688
20797
  this._isActive = true;
20689
- self.document.addEventListener("mousemove", this._onMouseMove, true);
20690
- self.removeEventListener("keydown", this._onKeyDown, false);
20798
+ globalThis.document.addEventListener("mousemove", this._onMouseMove, true);
20799
+ globalThis.removeEventListener("keydown", this._onKeyDown, false);
20691
20800
  this.renderer.on("postrender", this.update, this);
20692
20801
  (_a3 = this.renderer.view.parentNode) === null || _a3 === void 0 ? void 0 : _a3.appendChild(this.div);
20693
20802
  };
@@ -20697,8 +20806,8 @@ var AccessibilityManager = function() {
20697
20806
  return;
20698
20807
  }
20699
20808
  this._isActive = false;
20700
- self.document.removeEventListener("mousemove", this._onMouseMove, true);
20701
- self.addEventListener("keydown", this._onKeyDown, false);
20809
+ globalThis.document.removeEventListener("mousemove", this._onMouseMove, true);
20810
+ globalThis.addEventListener("keydown", this._onKeyDown, false);
20702
20811
  this.renderer.off("postrender", this.update);
20703
20812
  (_a3 = this.div.parentNode) === null || _a3 === void 0 ? void 0 : _a3.removeChild(this.div);
20704
20813
  };
@@ -20888,8 +20997,8 @@ var AccessibilityManager = function() {
20888
20997
  AccessibilityManager2.prototype.destroy = function() {
20889
20998
  this.destroyTouchHook();
20890
20999
  this.div = null;
20891
- self.document.removeEventListener("mousemove", this._onMouseMove, true);
20892
- self.removeEventListener("keydown", this._onKeyDown);
21000
+ globalThis.document.removeEventListener("mousemove", this._onMouseMove, true);
21001
+ globalThis.removeEventListener("keydown", this._onKeyDown);
20893
21002
  this.pool = null;
20894
21003
  this.children = null;
20895
21004
  this.renderer = null;
@@ -20897,8 +21006,8 @@ var AccessibilityManager = function() {
20897
21006
  return AccessibilityManager2;
20898
21007
  }();
20899
21008
  /*!
20900
- * @pixi/interaction - v6.2.2
20901
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
21009
+ * @pixi/interaction - v6.3.0
21010
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
20902
21011
  *
20903
21012
  * @pixi/interaction is licensed under the MIT License.
20904
21013
  * http://www.opensource.org/licenses/mit-license
@@ -21213,9 +21322,9 @@ var InteractionManager = function(_super) {
21213
21322
  _this.moveWhenInside = false;
21214
21323
  _this.eventsAdded = false;
21215
21324
  _this.tickerAdded = false;
21216
- _this.mouseOverRenderer = !("PointerEvent" in self);
21217
- _this.supportsTouchEvents = "ontouchstart" in self;
21218
- _this.supportsPointerEvents = !!self.PointerEvent;
21325
+ _this.mouseOverRenderer = !("PointerEvent" in globalThis);
21326
+ _this.supportsTouchEvents = "ontouchstart" in globalThis;
21327
+ _this.supportsPointerEvents = !!globalThis.PointerEvent;
21219
21328
  _this.onPointerUp = _this.onPointerUp.bind(_this);
21220
21329
  _this.processPointerUp = _this.processPointerUp.bind(_this);
21221
21330
  _this.onPointerCancel = _this.onPointerCancel.bind(_this);
@@ -21303,25 +21412,25 @@ var InteractionManager = function(_super) {
21303
21412
  return;
21304
21413
  }
21305
21414
  var style = this.interactionDOMElement.style;
21306
- if (self.navigator.msPointerEnabled) {
21415
+ if (globalThis.navigator.msPointerEnabled) {
21307
21416
  style.msContentZooming = "none";
21308
21417
  style.msTouchAction = "none";
21309
21418
  } else if (this.supportsPointerEvents) {
21310
21419
  style.touchAction = "none";
21311
21420
  }
21312
21421
  if (this.supportsPointerEvents) {
21313
- self.document.addEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
21422
+ globalThis.document.addEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
21314
21423
  this.interactionDOMElement.addEventListener("pointerdown", this.onPointerDown, this._eventListenerOptions);
21315
21424
  this.interactionDOMElement.addEventListener("pointerleave", this.onPointerOut, this._eventListenerOptions);
21316
21425
  this.interactionDOMElement.addEventListener("pointerover", this.onPointerOver, this._eventListenerOptions);
21317
- self.addEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
21318
- self.addEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
21426
+ globalThis.addEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
21427
+ globalThis.addEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
21319
21428
  } else {
21320
- self.document.addEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
21429
+ globalThis.document.addEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
21321
21430
  this.interactionDOMElement.addEventListener("mousedown", this.onPointerDown, this._eventListenerOptions);
21322
21431
  this.interactionDOMElement.addEventListener("mouseout", this.onPointerOut, this._eventListenerOptions);
21323
21432
  this.interactionDOMElement.addEventListener("mouseover", this.onPointerOver, this._eventListenerOptions);
21324
- self.addEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
21433
+ globalThis.addEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
21325
21434
  }
21326
21435
  if (this.supportsTouchEvents) {
21327
21436
  this.interactionDOMElement.addEventListener("touchstart", this.onPointerDown, this._eventListenerOptions);
@@ -21336,25 +21445,25 @@ var InteractionManager = function(_super) {
21336
21445
  return;
21337
21446
  }
21338
21447
  var style = this.interactionDOMElement.style;
21339
- if (self.navigator.msPointerEnabled) {
21448
+ if (globalThis.navigator.msPointerEnabled) {
21340
21449
  style.msContentZooming = "";
21341
21450
  style.msTouchAction = "";
21342
21451
  } else if (this.supportsPointerEvents) {
21343
21452
  style.touchAction = "";
21344
21453
  }
21345
21454
  if (this.supportsPointerEvents) {
21346
- self.document.removeEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
21455
+ globalThis.document.removeEventListener("pointermove", this.onPointerMove, this._eventListenerOptions);
21347
21456
  this.interactionDOMElement.removeEventListener("pointerdown", this.onPointerDown, this._eventListenerOptions);
21348
21457
  this.interactionDOMElement.removeEventListener("pointerleave", this.onPointerOut, this._eventListenerOptions);
21349
21458
  this.interactionDOMElement.removeEventListener("pointerover", this.onPointerOver, this._eventListenerOptions);
21350
- self.removeEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
21351
- self.removeEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
21459
+ globalThis.removeEventListener("pointercancel", this.onPointerCancel, this._eventListenerOptions);
21460
+ globalThis.removeEventListener("pointerup", this.onPointerUp, this._eventListenerOptions);
21352
21461
  } else {
21353
- self.document.removeEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
21462
+ globalThis.document.removeEventListener("mousemove", this.onPointerMove, this._eventListenerOptions);
21354
21463
  this.interactionDOMElement.removeEventListener("mousedown", this.onPointerDown, this._eventListenerOptions);
21355
21464
  this.interactionDOMElement.removeEventListener("mouseout", this.onPointerOut, this._eventListenerOptions);
21356
21465
  this.interactionDOMElement.removeEventListener("mouseover", this.onPointerOver, this._eventListenerOptions);
21357
- self.removeEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
21466
+ globalThis.removeEventListener("mouseup", this.onPointerUp, this._eventListenerOptions);
21358
21467
  }
21359
21468
  if (this.supportsTouchEvents) {
21360
21469
  this.interactionDOMElement.removeEventListener("touchstart", this.onPointerDown, this._eventListenerOptions);
@@ -21396,7 +21505,7 @@ var InteractionManager = function(_super) {
21396
21505
  InteractionManager2.prototype.setCursorMode = function(mode) {
21397
21506
  mode = mode || "default";
21398
21507
  var applyStyles = true;
21399
- if (self.OffscreenCanvas && this.interactionDOMElement instanceof OffscreenCanvas) {
21508
+ if (globalThis.OffscreenCanvas && this.interactionDOMElement instanceof OffscreenCanvas) {
21400
21509
  applyStyles = false;
21401
21510
  }
21402
21511
  if (this.currentCursorMode === mode) {
@@ -21814,7 +21923,7 @@ var InteractionManager = function(_super) {
21814
21923
  touch.isNormalized = true;
21815
21924
  normalizedEvents.push(touch);
21816
21925
  }
21817
- } else if (!self.MouseEvent || event instanceof MouseEvent && (!this.supportsPointerEvents || !(event instanceof self.PointerEvent))) {
21926
+ } else if (!globalThis.MouseEvent || event instanceof MouseEvent && (!this.supportsPointerEvents || !(event instanceof globalThis.PointerEvent))) {
21818
21927
  var tempEvent = event;
21819
21928
  if (typeof tempEvent.isPrimary === "undefined") {
21820
21929
  tempEvent.isPrimary = true;
@@ -21877,8 +21986,8 @@ var InteractionManager = function(_super) {
21877
21986
  return InteractionManager2;
21878
21987
  }(EventEmitter$3);
21879
21988
  /*!
21880
- * @pixi/app - v6.2.2
21881
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
21989
+ * @pixi/app - v6.3.0
21990
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
21882
21991
  *
21883
21992
  * @pixi/app is licensed under the MIT License.
21884
21993
  * http://www.opensource.org/licenses/mit-license
@@ -21937,10 +22046,10 @@ var ResizePlugin = function() {
21937
22046
  var _this = this;
21938
22047
  Object.defineProperty(this, "resizeTo", {
21939
22048
  set: function(dom) {
21940
- self.removeEventListener("resize", this.queueResize);
22049
+ globalThis.removeEventListener("resize", this.queueResize);
21941
22050
  this._resizeTo = dom;
21942
22051
  if (dom) {
21943
- self.addEventListener("resize", this.queueResize);
22052
+ globalThis.addEventListener("resize", this.queueResize);
21944
22053
  this.resize();
21945
22054
  }
21946
22055
  },
@@ -21970,9 +22079,9 @@ var ResizePlugin = function() {
21970
22079
  _this.cancelResize();
21971
22080
  var width;
21972
22081
  var height;
21973
- if (_this._resizeTo === self) {
21974
- width = self.innerWidth;
21975
- height = self.innerHeight;
22082
+ if (_this._resizeTo === globalThis.window) {
22083
+ width = globalThis.innerWidth;
22084
+ height = globalThis.innerHeight;
21976
22085
  } else {
21977
22086
  var _a3 = _this._resizeTo, clientWidth = _a3.clientWidth, clientHeight = _a3.clientHeight;
21978
22087
  width = clientWidth;
@@ -21985,7 +22094,7 @@ var ResizePlugin = function() {
21985
22094
  this.resizeTo = options.resizeTo || null;
21986
22095
  };
21987
22096
  ResizePlugin2.destroy = function() {
21988
- self.removeEventListener("resize", this.queueResize);
22097
+ globalThis.removeEventListener("resize", this.queueResize);
21989
22098
  this.cancelResize();
21990
22099
  this.cancelResize = null;
21991
22100
  this.queueResize = null;
@@ -21996,8 +22105,8 @@ var ResizePlugin = function() {
21996
22105
  }();
21997
22106
  Application.registerPlugin(ResizePlugin);
21998
22107
  /*!
21999
- * @pixi/extract - v6.2.2
22000
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
22108
+ * @pixi/extract - v6.3.0
22109
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
22001
22110
  *
22002
22111
  * @pixi/extract is licensed under the MIT License.
22003
22112
  * http://www.opensource.org/licenses/mit-license
@@ -22121,8 +22230,8 @@ var Extract = function() {
22121
22230
  return Extract2;
22122
22231
  }();
22123
22232
  /*!
22124
- * @pixi/compressed-textures - v6.2.2
22125
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
22233
+ * @pixi/compressed-textures - v6.3.0
22234
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
22126
22235
  *
22127
22236
  * @pixi/compressed-textures is licensed under the MIT License.
22128
22237
  * http://www.opensource.org/licenses/mit-license
@@ -22835,8 +22944,8 @@ var KTX_FIELDS = {
22835
22944
  BYTES_OF_KEY_VALUE_DATA: 60
22836
22945
  };
22837
22946
  var FILE_HEADER_SIZE = 64;
22838
- 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);
22839
- 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);
22947
+ 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);
22948
+ 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);
22840
22949
  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);
22841
22950
  var KTXLoader = function() {
22842
22951
  function KTXLoader2() {
@@ -22844,8 +22953,31 @@ var KTXLoader = function() {
22844
22953
  KTXLoader2.use = function(resource, next) {
22845
22954
  if (resource.extension === "ktx" && resource.data) {
22846
22955
  try {
22847
- var url2 = resource.name || resource.url;
22848
- Object.assign(resource, registerCompressedTextures(url2, KTXLoader2.parse(url2, resource.data), resource.metadata));
22956
+ var url_1 = resource.name || resource.url;
22957
+ var _a3 = KTXLoader2.parse(url_1, resource.data), compressed = _a3.compressed, uncompressed = _a3.uncompressed;
22958
+ if (compressed) {
22959
+ Object.assign(resource, registerCompressedTextures(url_1, compressed, resource.metadata));
22960
+ } else if (uncompressed) {
22961
+ var textures_1 = {};
22962
+ uncompressed.forEach(function(image, i2) {
22963
+ var texture = new Texture(new BaseTexture(image.resource, {
22964
+ mipmap: MIPMAP_MODES$3.OFF,
22965
+ alphaMode: ALPHA_MODES$3.NO_PREMULTIPLIED_ALPHA,
22966
+ type: image.type,
22967
+ format: image.format
22968
+ }));
22969
+ var cacheID = url_1 + "-" + (i2 + 1);
22970
+ BaseTexture.addToCache(texture.baseTexture, cacheID);
22971
+ Texture.addToCache(texture, cacheID);
22972
+ if (i2 === 0) {
22973
+ textures_1[url_1] = texture;
22974
+ BaseTexture.addToCache(texture.baseTexture, url_1);
22975
+ Texture.addToCache(texture, url_1);
22976
+ }
22977
+ textures_1[cacheID] = texture;
22978
+ });
22979
+ Object.assign(resource, { textures: textures_1 });
22980
+ }
22849
22981
  } catch (err) {
22850
22982
  next(err);
22851
22983
  return;
@@ -22917,8 +23049,8 @@ var KTXLoader = function() {
22917
23049
  }
22918
23050
  mips[mipmapLevel] = {
22919
23051
  levelID: mipmapLevel,
22920
- levelWidth: numberOfMipmapLevels > 1 ? mipWidth : alignedMipWidth,
22921
- levelHeight: numberOfMipmapLevels > 1 ? mipHeight : alignedMipHeight,
23052
+ levelWidth: numberOfMipmapLevels > 1 || glType !== 0 ? mipWidth : alignedMipWidth,
23053
+ levelHeight: numberOfMipmapLevels > 1 || glType !== 0 ? mipHeight : alignedMipHeight,
22922
23054
  levelBuffer: new Uint8Array(arrayBuffer, elementOffset, mipByteSize)
22923
23055
  };
22924
23056
  elementOffset += mipByteSize;
@@ -22932,17 +23064,41 @@ var KTXLoader = function() {
22932
23064
  mipByteSize = alignedMipWidth * alignedMipHeight * imagePixelByteSize;
22933
23065
  }
22934
23066
  if (glType !== 0) {
22935
- throw new Error("TODO: Uncompressed");
22936
- }
22937
- return imageBuffers.map(function(levelBuffers) {
22938
- return new CompressedTextureResource(null, {
22939
- format: glInternalFormat,
22940
- width: pixelWidth,
22941
- height: pixelHeight,
22942
- levels: numberOfMipmapLevels,
22943
- levelBuffers
22944
- });
22945
- });
23067
+ return {
23068
+ uncompressed: imageBuffers.map(function(levelBuffers) {
23069
+ var buffer = levelBuffers[0].levelBuffer;
23070
+ var convertToInt = false;
23071
+ if (glType === TYPES$3.FLOAT) {
23072
+ buffer = new Float32Array(levelBuffers[0].levelBuffer.buffer, levelBuffers[0].levelBuffer.byteOffset, levelBuffers[0].levelBuffer.byteLength / 4);
23073
+ } else if (glType === TYPES$3.UNSIGNED_INT) {
23074
+ convertToInt = true;
23075
+ buffer = new Uint32Array(levelBuffers[0].levelBuffer.buffer, levelBuffers[0].levelBuffer.byteOffset, levelBuffers[0].levelBuffer.byteLength / 4);
23076
+ } else if (glType === TYPES$3.INT) {
23077
+ convertToInt = true;
23078
+ buffer = new Int32Array(levelBuffers[0].levelBuffer.buffer, levelBuffers[0].levelBuffer.byteOffset, levelBuffers[0].levelBuffer.byteLength / 4);
23079
+ }
23080
+ return {
23081
+ resource: new BufferResource(buffer, {
23082
+ width: levelBuffers[0].levelWidth,
23083
+ height: levelBuffers[0].levelHeight
23084
+ }),
23085
+ type: glType,
23086
+ format: convertToInt ? KTXLoader2.convertFormatToInteger(glFormat) : glFormat
23087
+ };
23088
+ })
23089
+ };
23090
+ }
23091
+ return {
23092
+ compressed: imageBuffers.map(function(levelBuffers) {
23093
+ return new CompressedTextureResource(null, {
23094
+ format: glInternalFormat,
23095
+ width: pixelWidth,
23096
+ height: pixelHeight,
23097
+ levels: numberOfMipmapLevels,
23098
+ levelBuffers
23099
+ });
23100
+ })
23101
+ };
22946
23102
  };
22947
23103
  KTXLoader2.validate = function(url2, dataView) {
22948
23104
  for (var i2 = 0; i2 < FILE_IDENTIFIER.length; i2++) {
@@ -22953,11 +23109,25 @@ var KTXLoader = function() {
22953
23109
  }
22954
23110
  return true;
22955
23111
  };
23112
+ KTXLoader2.convertFormatToInteger = function(format2) {
23113
+ switch (format2) {
23114
+ case FORMATS$3.RGBA:
23115
+ return FORMATS$3.RGBA_INTEGER;
23116
+ case FORMATS$3.RGB:
23117
+ return FORMATS$3.RGB_INTEGER;
23118
+ case FORMATS$3.RG:
23119
+ return FORMATS$3.RG_INTEGER;
23120
+ case FORMATS$3.RED:
23121
+ return FORMATS$3.RED_INTEGER;
23122
+ default:
23123
+ return format2;
23124
+ }
23125
+ };
22956
23126
  return KTXLoader2;
22957
23127
  }();
22958
23128
  /*!
22959
- * @pixi/particle-container - v6.2.2
22960
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
23129
+ * @pixi/particle-container - v6.3.0
23130
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
22961
23131
  *
22962
23132
  * @pixi/particle-container is licensed under the MIT License.
22963
23133
  * http://www.opensource.org/licenses/mit-license
@@ -23405,8 +23575,8 @@ var ParticleRenderer = function(_super) {
23405
23575
  return ParticleRenderer2;
23406
23576
  }(ObjectRenderer);
23407
23577
  /*!
23408
- * @pixi/graphics - v6.2.2
23409
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
23578
+ * @pixi/graphics - v6.3.0
23579
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
23410
23580
  *
23411
23581
  * @pixi/graphics is licensed under the MIT License.
23412
23582
  * http://www.opensource.org/licenses/mit-license
@@ -23509,6 +23679,35 @@ function __extends$l(d2, b2) {
23509
23679
  }
23510
23680
  d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
23511
23681
  }
23682
+ function fixOrientation(points, hole) {
23683
+ var _a3, _b3;
23684
+ if (hole === void 0) {
23685
+ hole = false;
23686
+ }
23687
+ var m2 = points.length;
23688
+ if (m2 < 6) {
23689
+ return;
23690
+ }
23691
+ var area2 = 0;
23692
+ for (var i2 = 0, x1 = points[m2 - 2], y1 = points[m2 - 1]; i2 < m2; i2 += 2) {
23693
+ var x2 = points[i2];
23694
+ var y2 = points[i2 + 1];
23695
+ area2 += (x2 - x1) * (y2 + y1);
23696
+ x1 = x2;
23697
+ y1 = y2;
23698
+ }
23699
+ if (!hole && area2 > 0 || hole && area2 <= 0) {
23700
+ var n = m2 / 2;
23701
+ for (var i2 = n + n % 2; i2 < m2; i2 += 2) {
23702
+ var i1 = m2 - i2 - 2;
23703
+ var i22 = m2 - i2 - 1;
23704
+ var i3 = i2;
23705
+ var i4 = i2 + 1;
23706
+ _a3 = [points[i3], points[i1]], points[i1] = _a3[0], points[i3] = _a3[1];
23707
+ _b3 = [points[i4], points[i22]], points[i22] = _b3[0], points[i4] = _b3[1];
23708
+ }
23709
+ }
23710
+ }
23512
23711
  var buildPoly = {
23513
23712
  build: function(graphicsData) {
23514
23713
  graphicsData.points = graphicsData.shape.points.slice();
@@ -23519,9 +23718,11 @@ var buildPoly = {
23519
23718
  var verts = graphicsGeometry.points;
23520
23719
  var indices2 = graphicsGeometry.indices;
23521
23720
  if (points.length >= 6) {
23721
+ fixOrientation(points, false);
23522
23722
  var holeArray = [];
23523
23723
  for (var i2 = 0; i2 < holes.length; i2++) {
23524
23724
  var hole = holes[i2];
23725
+ fixOrientation(hole.points, true);
23525
23726
  holeArray.push(points.length / 2);
23526
23727
  points = points.concat(hole.points);
23527
23728
  }
@@ -23543,31 +23744,107 @@ var buildPoly = {
23543
23744
  };
23544
23745
  var buildCircle = {
23545
23746
  build: function(graphicsData) {
23546
- var circleData = graphicsData.shape;
23547
23747
  var points = graphicsData.points;
23548
- var x2 = circleData.x;
23549
- var y2 = circleData.y;
23550
- var width;
23551
- var height;
23552
- points.length = 0;
23748
+ var x2;
23749
+ var y2;
23750
+ var dx;
23751
+ var dy;
23752
+ var rx;
23753
+ var ry;
23553
23754
  if (graphicsData.type === SHAPES.CIRC) {
23554
- width = circleData.radius;
23555
- height = circleData.radius;
23755
+ var circle = graphicsData.shape;
23756
+ x2 = circle.x;
23757
+ y2 = circle.y;
23758
+ rx = ry = circle.radius;
23759
+ dx = dy = 0;
23760
+ } else if (graphicsData.type === SHAPES.ELIP) {
23761
+ var ellipse = graphicsData.shape;
23762
+ x2 = ellipse.x;
23763
+ y2 = ellipse.y;
23764
+ rx = ellipse.width;
23765
+ ry = ellipse.height;
23766
+ dx = dy = 0;
23556
23767
  } else {
23557
- var ellipseData = graphicsData.shape;
23558
- width = ellipseData.width;
23559
- height = ellipseData.height;
23768
+ var roundedRect = graphicsData.shape;
23769
+ var halfWidth = roundedRect.width / 2;
23770
+ var halfHeight = roundedRect.height / 2;
23771
+ x2 = roundedRect.x + halfWidth;
23772
+ y2 = roundedRect.y + halfHeight;
23773
+ rx = ry = Math.max(0, Math.min(roundedRect.radius, Math.min(halfWidth, halfHeight)));
23774
+ dx = halfWidth - rx;
23775
+ dy = halfHeight - ry;
23776
+ }
23777
+ var n = Math.ceil(2.3 * Math.sqrt(rx + ry));
23778
+ var m2 = n * 8 + (dx ? 4 : 0) + (dy ? 4 : 0);
23779
+ points.length = m2;
23780
+ if (m2 === 0) {
23781
+ return;
23560
23782
  }
23561
- if (width === 0 || height === 0) {
23783
+ if (n === 0) {
23784
+ points.length = 8;
23785
+ points[0] = points[6] = x2 + dx;
23786
+ points[1] = points[3] = y2 + dy;
23787
+ points[2] = points[4] = x2 - dx;
23788
+ points[5] = points[7] = y2 - dy;
23562
23789
  return;
23563
23790
  }
23564
- var totalSegs = Math.floor(30 * Math.sqrt(circleData.radius)) || Math.floor(15 * Math.sqrt(width + height));
23565
- totalSegs /= 2.3;
23566
- var seg = Math.PI * 2 / totalSegs;
23567
- for (var i2 = 0; i2 < totalSegs - 0.5; i2++) {
23568
- points.push(x2 + Math.sin(-seg * i2) * width, y2 + Math.cos(-seg * i2) * height);
23791
+ var j1 = 0;
23792
+ var j2 = n * 4 + (dx ? 2 : 0) + 2;
23793
+ var j3 = j2;
23794
+ var j4 = m2;
23795
+ {
23796
+ var x0 = dx + rx;
23797
+ var y0 = dy;
23798
+ var x1 = x2 + x0;
23799
+ var x22 = x2 - x0;
23800
+ var y1 = y2 + y0;
23801
+ points[j1++] = x1;
23802
+ points[j1++] = y1;
23803
+ points[--j2] = y1;
23804
+ points[--j2] = x22;
23805
+ if (dy) {
23806
+ var y22 = y2 - y0;
23807
+ points[j3++] = x22;
23808
+ points[j3++] = y22;
23809
+ points[--j4] = y22;
23810
+ points[--j4] = x1;
23811
+ }
23812
+ }
23813
+ for (var i2 = 1; i2 < n; i2++) {
23814
+ var a2 = Math.PI / 2 * (i2 / n);
23815
+ var x0 = dx + Math.cos(a2) * rx;
23816
+ var y0 = dy + Math.sin(a2) * ry;
23817
+ var x1 = x2 + x0;
23818
+ var x22 = x2 - x0;
23819
+ var y1 = y2 + y0;
23820
+ var y22 = y2 - y0;
23821
+ points[j1++] = x1;
23822
+ points[j1++] = y1;
23823
+ points[--j2] = y1;
23824
+ points[--j2] = x22;
23825
+ points[j3++] = x22;
23826
+ points[j3++] = y22;
23827
+ points[--j4] = y22;
23828
+ points[--j4] = x1;
23829
+ }
23830
+ {
23831
+ var x0 = dx;
23832
+ var y0 = dy + ry;
23833
+ var x1 = x2 + x0;
23834
+ var x22 = x2 - x0;
23835
+ var y1 = y2 + y0;
23836
+ var y22 = y2 - y0;
23837
+ points[j1++] = x1;
23838
+ points[j1++] = y1;
23839
+ points[--j4] = y22;
23840
+ points[--j4] = x1;
23841
+ if (dx) {
23842
+ points[j1++] = x22;
23843
+ points[j1++] = y1;
23844
+ points[--j4] = y22;
23845
+ points[--j4] = x22;
23846
+ }
23569
23847
  }
23570
- points.push(points[0], points[1]);
23571
23848
  },
23572
23849
  triangulate: function(graphicsData, graphicsGeometry) {
23573
23850
  var points = graphicsData.points;
@@ -23575,15 +23852,26 @@ var buildCircle = {
23575
23852
  var indices2 = graphicsGeometry.indices;
23576
23853
  var vertPos = verts.length / 2;
23577
23854
  var center = vertPos;
23578
- var circle = graphicsData.shape;
23855
+ var x2;
23856
+ var y2;
23857
+ if (graphicsData.type !== SHAPES.RREC) {
23858
+ var circle = graphicsData.shape;
23859
+ x2 = circle.x;
23860
+ y2 = circle.y;
23861
+ } else {
23862
+ var roundedRect = graphicsData.shape;
23863
+ x2 = roundedRect.x + roundedRect.width / 2;
23864
+ y2 = roundedRect.y + roundedRect.height / 2;
23865
+ }
23579
23866
  var matrix = graphicsData.matrix;
23580
- var x2 = circle.x;
23581
- var y2 = circle.y;
23582
23867
  verts.push(graphicsData.matrix ? matrix.a * x2 + matrix.c * y2 + matrix.tx : x2, graphicsData.matrix ? matrix.b * x2 + matrix.d * y2 + matrix.ty : y2);
23583
- for (var i2 = 0; i2 < points.length; i2 += 2) {
23868
+ vertPos++;
23869
+ verts.push(points[0], points[1]);
23870
+ for (var i2 = 2; i2 < points.length; i2 += 2) {
23584
23871
  verts.push(points[i2], points[i2 + 1]);
23585
23872
  indices2.push(vertPos++, center, vertPos);
23586
23873
  }
23874
+ indices2.push(center + 1, center, vertPos);
23587
23875
  }
23588
23876
  };
23589
23877
  var buildRectangle = {
@@ -23638,6 +23926,10 @@ function quadraticBezierCurve(fromX, fromY, cpX, cpY, toX, toY, out) {
23638
23926
  }
23639
23927
  var buildRoundedRectangle = {
23640
23928
  build: function(graphicsData) {
23929
+ if (Graphics.nextRoundedRectBehavior) {
23930
+ buildCircle.build(graphicsData);
23931
+ return;
23932
+ }
23641
23933
  var rrectData = graphicsData.shape;
23642
23934
  var points = graphicsData.points;
23643
23935
  var x2 = rrectData.x;
@@ -23656,6 +23948,10 @@ var buildRoundedRectangle = {
23656
23948
  }
23657
23949
  },
23658
23950
  triangulate: function(graphicsData, graphicsGeometry) {
23951
+ if (Graphics.nextRoundedRectBehavior) {
23952
+ buildCircle.triangulate(graphicsData, graphicsGeometry);
23953
+ return;
23954
+ }
23659
23955
  var points = graphicsData.points;
23660
23956
  var verts = graphicsGeometry.points;
23661
23957
  var indices2 = graphicsGeometry.indices;
@@ -24135,14 +24431,6 @@ var _a;
24135
24431
  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);
24136
24432
  var BATCH_POOL = [];
24137
24433
  var DRAW_CALL_POOL = [];
24138
- function isPolygonClockwise(polygon) {
24139
- var points = polygon.points;
24140
- var sum2 = 0;
24141
- for (var i2 = 0; i2 < points.length - 2; i2 += 2) {
24142
- sum2 += (points[i2 + 2] - points[i2]) * (points[i2 + 3] + points[i2 + 1]);
24143
- }
24144
- return sum2 > 0;
24145
- }
24146
24434
  var GraphicsData = function() {
24147
24435
  function GraphicsData2(shape, fillStyle, lineStyle, matrix) {
24148
24436
  if (fillStyle === void 0) {
@@ -24356,6 +24644,9 @@ var GraphicsGeometry = function(_super) {
24356
24644
  if (data.matrix) {
24357
24645
  this.transformPoints(data.points, data.matrix);
24358
24646
  }
24647
+ if (fillStyle.visible || lineStyle.visible) {
24648
+ this.processHoles(data.holes);
24649
+ }
24359
24650
  for (var j2 = 0; j2 < 2; j2++) {
24360
24651
  var style = j2 === 0 ? fillStyle : lineStyle;
24361
24652
  if (!style.visible) {
@@ -24560,7 +24851,6 @@ var GraphicsGeometry = function(_super) {
24560
24851
  };
24561
24852
  GraphicsGeometry2.prototype.processFill = function(data) {
24562
24853
  if (data.holes.length) {
24563
- this.processHoles(data.holes);
24564
24854
  buildPoly.triangulate(data, this);
24565
24855
  } else {
24566
24856
  var command = FILL_COMMANDS[data.type];
@@ -24597,17 +24887,7 @@ var GraphicsGeometry = function(_super) {
24597
24887
  var nextMatrix = data.matrix || Matrix.IDENTITY;
24598
24888
  var lineWidth = 0;
24599
24889
  if (lineStyle && lineStyle.visible) {
24600
- var alignment = lineStyle.alignment;
24601
- lineWidth = lineStyle.width;
24602
- if (type === SHAPES.POLY) {
24603
- if (isPolygonClockwise(shape)) {
24604
- lineWidth = lineWidth * (1 - alignment);
24605
- } else {
24606
- lineWidth = lineWidth * alignment;
24607
- }
24608
- } else {
24609
- lineWidth = lineWidth * Math.max(0, alignment);
24610
- }
24890
+ lineWidth = lineStyle.width * Math.max(0, lineStyle.alignment);
24611
24891
  }
24612
24892
  if (curMatrix !== nextMatrix) {
24613
24893
  if (!sequenceBounds.isEmpty()) {
@@ -25275,12 +25555,13 @@ var Graphics = function(_super) {
25275
25555
  this.batches = null;
25276
25556
  _super.prototype.destroy.call(this, options);
25277
25557
  };
25558
+ Graphics2.nextRoundedRectBehavior = false;
25278
25559
  Graphics2._TEMP_POINT = new Point();
25279
25560
  return Graphics2;
25280
25561
  }(Container);
25281
25562
  /*!
25282
- * @pixi/sprite - v6.2.2
25283
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
25563
+ * @pixi/sprite - v6.3.0
25564
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
25284
25565
  *
25285
25566
  * @pixi/sprite is licensed under the MIT License.
25286
25567
  * http://www.opensource.org/licenses/mit-license
@@ -25596,8 +25877,8 @@ var Sprite = function(_super) {
25596
25877
  return Sprite2;
25597
25878
  }(Container);
25598
25879
  /*!
25599
- * @pixi/text - v6.2.2
25600
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
25880
+ * @pixi/text - v6.3.0
25881
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
25601
25882
  *
25602
25883
  * @pixi/text is licensed under the MIT License.
25603
25884
  * http://www.opensource.org/licenses/mit-license
@@ -26587,7 +26868,7 @@ var Text = function(_super) {
26587
26868
  }
26588
26869
  var style = this._style;
26589
26870
  var letterSpacing = style.letterSpacing;
26590
- var supportLetterSpacing = "letterSpacing" in CanvasRenderingContext2D.prototype || "textLetterSpacing" in CanvasRenderingContext2D.prototype;
26871
+ var supportLetterSpacing = Text2.experimentalLetterSpacing && ("letterSpacing" in CanvasRenderingContext2D.prototype || "textLetterSpacing" in CanvasRenderingContext2D.prototype);
26591
26872
  if (letterSpacing === 0 || supportLetterSpacing) {
26592
26873
  if (supportLetterSpacing) {
26593
26874
  this.context.letterSpacing = letterSpacing;
@@ -26822,11 +27103,12 @@ var Text = function(_super) {
26822
27103
  configurable: true
26823
27104
  });
26824
27105
  Text2.nextLineHeightBehavior = false;
27106
+ Text2.experimentalLetterSpacing = false;
26825
27107
  return Text2;
26826
27108
  }(Sprite);
26827
27109
  /*!
26828
- * @pixi/prepare - v6.2.2
26829
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
27110
+ * @pixi/prepare - v6.3.0
27111
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
26830
27112
  *
26831
27113
  * @pixi/prepare is licensed under the MIT License.
26832
27114
  * http://www.opensource.org/licenses/mit-license
@@ -27118,8 +27400,8 @@ var Prepare = function(_super) {
27118
27400
  return Prepare2;
27119
27401
  }(BasePrepare);
27120
27402
  /*!
27121
- * @pixi/spritesheet - v6.2.2
27122
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
27403
+ * @pixi/spritesheet - v6.3.0
27404
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
27123
27405
  *
27124
27406
  * @pixi/spritesheet is licensed under the MIT License.
27125
27407
  * http://www.opensource.org/licenses/mit-license
@@ -27309,8 +27591,8 @@ var SpritesheetLoader = function() {
27309
27591
  return SpritesheetLoader2;
27310
27592
  }();
27311
27593
  /*!
27312
- * @pixi/sprite-tiling - v6.2.2
27313
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
27594
+ * @pixi/sprite-tiling - v6.3.0
27595
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
27314
27596
  *
27315
27597
  * @pixi/sprite-tiling is licensed under the MIT License.
27316
27598
  * http://www.opensource.org/licenses/mit-license
@@ -27559,8 +27841,8 @@ var TilingSpriteRenderer = function(_super) {
27559
27841
  return TilingSpriteRenderer2;
27560
27842
  }(ObjectRenderer);
27561
27843
  /*!
27562
- * @pixi/mesh - v6.2.2
27563
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
27844
+ * @pixi/mesh - v6.3.0
27845
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
27564
27846
  *
27565
27847
  * @pixi/mesh is licensed under the MIT License.
27566
27848
  * http://www.opensource.org/licenses/mit-license
@@ -27970,8 +28252,8 @@ var MeshGeometry = function(_super) {
27970
28252
  return MeshGeometry2;
27971
28253
  }(Geometry);
27972
28254
  /*!
27973
- * @pixi/text-bitmap - v6.2.2
27974
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
28255
+ * @pixi/text-bitmap - v6.3.0
28256
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
27975
28257
  *
27976
28258
  * @pixi/text-bitmap is licensed under the MIT License.
27977
28259
  * http://www.opensource.org/licenses/mit-license
@@ -28167,13 +28449,13 @@ var XMLStringFormat = function() {
28167
28449
  }
28168
28450
  XMLStringFormat2.test = function(data) {
28169
28451
  if (typeof data === "string" && data.indexOf("<font>") > -1) {
28170
- var xml = new self.DOMParser().parseFromString(data, "text/xml");
28452
+ var xml = new globalThis.DOMParser().parseFromString(data, "text/xml");
28171
28453
  return XMLFormat.test(xml);
28172
28454
  }
28173
28455
  return false;
28174
28456
  };
28175
28457
  XMLStringFormat2.parse = function(xmlTxt) {
28176
- var xml = new self.DOMParser().parseFromString(xmlTxt, "text/xml");
28458
+ var xml = new globalThis.DOMParser().parseFromString(xmlTxt, "text/xml");
28177
28459
  return XMLFormat.parse(xml);
28178
28460
  };
28179
28461
  return XMLStringFormat2;
@@ -28633,7 +28915,7 @@ var charRenderDataPool = [];
28633
28915
  charRenderData.position.y = pos.y + charData.yOffset;
28634
28916
  charRenderData.prevSpaces = spaceCount;
28635
28917
  chars2.push(charRenderData);
28636
- lastLineWidth = charRenderData.position.x + charData.texture.orig.width;
28918
+ lastLineWidth = charRenderData.position.x + Math.max(charData.xAdvance, charData.texture.orig.width);
28637
28919
  pos.x += charData.xAdvance + this._letterSpacing;
28638
28920
  maxLineHeight = Math.max(maxLineHeight, charData.yOffset + charData.texture.height);
28639
28921
  prevCharCode = charCode;
@@ -29099,8 +29381,8 @@ var BitmapFontLoader = function() {
29099
29381
  return BitmapFontLoader2;
29100
29382
  }();
29101
29383
  /*!
29102
- * @pixi/filter-alpha - v6.2.2
29103
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
29384
+ * @pixi/filter-alpha - v6.3.0
29385
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29104
29386
  *
29105
29387
  * @pixi/filter-alpha is licensed under the MIT License.
29106
29388
  * http://www.opensource.org/licenses/mit-license
@@ -29162,8 +29444,8 @@ var fragment$4 = "varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nun
29162
29444
  return AlphaFilter;
29163
29445
  })(Filter);
29164
29446
  /*!
29165
- * @pixi/filter-blur - v6.2.2
29166
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
29447
+ * @pixi/filter-blur - v6.3.0
29448
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29167
29449
  *
29168
29450
  * @pixi/filter-blur is licensed under the MIT License.
29169
29451
  * http://www.opensource.org/licenses/mit-license
@@ -29261,8 +29543,8 @@ function generateBlurFragSource(kernelSize) {
29261
29543
  return fragSource;
29262
29544
  }
29263
29545
  /*!
29264
- * @pixi/constants - v6.2.2
29265
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
29546
+ * @pixi/constants - v6.3.0
29547
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29266
29548
  *
29267
29549
  * @pixi/constants is licensed under the MIT License.
29268
29550
  * http://www.opensource.org/licenses/mit-license
@@ -29652,8 +29934,8 @@ var BlurFilterPass = function(_super) {
29652
29934
  return BlurFilter;
29653
29935
  })(Filter);
29654
29936
  /*!
29655
- * @pixi/filter-color-matrix - v6.2.2
29656
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
29937
+ * @pixi/filter-color-matrix - v6.3.0
29938
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
29657
29939
  *
29658
29940
  * @pixi/filter-color-matrix is licensed under the MIT License.
29659
29941
  * http://www.opensource.org/licenses/mit-license
@@ -30330,8 +30612,8 @@ var ColorMatrixFilter = function(_super) {
30330
30612
  }(Filter);
30331
30613
  ColorMatrixFilter.prototype.grayscale = ColorMatrixFilter.prototype.greyscale;
30332
30614
  /*!
30333
- * @pixi/filter-displacement - v6.2.2
30334
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30615
+ * @pixi/filter-displacement - v6.3.0
30616
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30335
30617
  *
30336
30618
  * @pixi/filter-displacement is licensed under the MIT License.
30337
30619
  * http://www.opensource.org/licenses/mit-license
@@ -30419,8 +30701,8 @@ var vertex$1 = "attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix
30419
30701
  return DisplacementFilter;
30420
30702
  })(Filter);
30421
30703
  /*!
30422
- * @pixi/filter-fxaa - v6.2.2
30423
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30704
+ * @pixi/filter-fxaa - v6.3.0
30705
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30424
30706
  *
30425
30707
  * @pixi/filter-fxaa is licensed under the MIT License.
30426
30708
  * http://www.opensource.org/licenses/mit-license
@@ -30589,8 +30871,8 @@ void main() {
30589
30871
  return FXAAFilter;
30590
30872
  })(Filter);
30591
30873
  /*!
30592
- * @pixi/filter-noise - v6.2.2
30593
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30874
+ * @pixi/filter-noise - v6.3.0
30875
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30594
30876
  *
30595
30877
  * @pixi/filter-noise is licensed under the MIT License.
30596
30878
  * http://www.opensource.org/licenses/mit-license
@@ -30669,15 +30951,15 @@ var fragment = "precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying v
30669
30951
  return NoiseFilter;
30670
30952
  })(Filter);
30671
30953
  /*!
30672
- * @pixi/mixin-cache-as-bitmap - v6.2.2
30673
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30954
+ * @pixi/mixin-cache-as-bitmap - v6.3.0
30955
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30674
30956
  *
30675
30957
  * @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
30676
30958
  * http://www.opensource.org/licenses/mit-license
30677
30959
  */
30678
30960
  /*!
30679
- * @pixi/constants - v6.2.2
30680
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
30961
+ * @pixi/constants - v6.3.0
30962
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
30681
30963
  *
30682
30964
  * @pixi/constants is licensed under the MIT License.
30683
30965
  * http://www.opensource.org/licenses/mit-license
@@ -31107,8 +31389,8 @@ DisplayObject.prototype._cacheAsBitmapDestroy = function _cacheAsBitmapDestroy(o
31107
31389
  this.destroy(options);
31108
31390
  };
31109
31391
  /*!
31110
- * @pixi/mixin-get-child-by-name - v6.2.2
31111
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
31392
+ * @pixi/mixin-get-child-by-name - v6.3.0
31393
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
31112
31394
  *
31113
31395
  * @pixi/mixin-get-child-by-name is licensed under the MIT License.
31114
31396
  * http://www.opensource.org/licenses/mit-license
@@ -31135,8 +31417,8 @@ Container.prototype.getChildByName = function getChildByName(name2, deep) {
31135
31417
  return null;
31136
31418
  };
31137
31419
  /*!
31138
- * @pixi/mixin-get-global-position - v6.2.2
31139
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
31420
+ * @pixi/mixin-get-global-position - v6.3.0
31421
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
31140
31422
  *
31141
31423
  * @pixi/mixin-get-global-position is licensed under the MIT License.
31142
31424
  * http://www.opensource.org/licenses/mit-license
@@ -31157,8 +31439,8 @@ DisplayObject.prototype.getGlobalPosition = function getGlobalPosition(point, sk
31157
31439
  return point;
31158
31440
  };
31159
31441
  /*!
31160
- * @pixi/mesh-extras - v6.2.2
31161
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
31442
+ * @pixi/mesh-extras - v6.3.0
31443
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
31162
31444
  *
31163
31445
  * @pixi/mesh-extras is licensed under the MIT License.
31164
31446
  * http://www.opensource.org/licenses/mit-license
@@ -31639,8 +31921,8 @@ var DEFAULT_BORDER_SIZE = 10;
31639
31921
  return NineSlicePlane;
31640
31922
  })(SimplePlane);
31641
31923
  /*!
31642
- * @pixi/sprite-animated - v6.2.2
31643
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
31924
+ * @pixi/sprite-animated - v6.3.0
31925
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
31644
31926
  *
31645
31927
  * @pixi/sprite-animated is licensed under the MIT License.
31646
31928
  * http://www.opensource.org/licenses/mit-license
@@ -31890,8 +32172,8 @@ var AnimatedSprite = function(_super) {
31890
32172
  return AnimatedSprite2;
31891
32173
  }(Sprite);
31892
32174
  /*!
31893
- * pixi.js - v6.2.2
31894
- * Compiled Wed, 26 Jan 2022 16:23:27 UTC
32175
+ * pixi.js - v6.3.0
32176
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
31895
32177
  *
31896
32178
  * pixi.js is licensed under the MIT License.
31897
32179
  * http://www.opensource.org/licenses/mit-license
@@ -34372,15 +34654,18 @@ var OS_PRESETS = [{
34372
34654
  }, {
34373
34655
  test: "windows nt",
34374
34656
  id: "window"
34657
+ }, {
34658
+ test: "win32|windows",
34659
+ id: "window"
34375
34660
  }, {
34376
34661
  test: "iphone|ipad|ipod",
34377
34662
  id: "ios",
34378
34663
  versionTest: "iphone os|cpu os"
34379
34664
  }, {
34380
- test: "mac os x",
34665
+ test: "macos|macintel|mac os x",
34381
34666
  id: "mac"
34382
34667
  }, {
34383
- test: "android",
34668
+ test: "android|linux armv81",
34384
34669
  id: "android"
34385
34670
  }, {
34386
34671
  test: "tizen",
@@ -34394,6 +34679,7 @@ function parseUserAgentData(osData) {
34394
34679
  var brands = (userAgentData.uaList || userAgentData.brands).slice();
34395
34680
  var isMobile2 = userAgentData.mobile || false;
34396
34681
  var firstBrand = brands[0];
34682
+ var platform2 = (osData && osData.platform || userAgentData.platform || navigator.platform).toLowerCase();
34397
34683
  var browser = {
34398
34684
  name: firstBrand.brand,
34399
34685
  version: firstBrand.version,
@@ -34420,12 +34706,11 @@ function parseUserAgentData(osData) {
34420
34706
  browser.webkit = !!webkitBrand.brand;
34421
34707
  browser.webkitVersion = webkitBrand.version;
34422
34708
  }
34709
+ var platfomResult = find(OS_PRESETS, function(preset) {
34710
+ return new RegExp("" + preset.test, "g").exec(platform2);
34711
+ });
34712
+ os.name = platfomResult ? platfomResult.id : "";
34423
34713
  if (osData) {
34424
- var platform_1 = osData.platform.toLowerCase();
34425
- var result = find(OS_PRESETS, function(preset) {
34426
- return new RegExp("" + preset.test, "g").exec(platform_1);
34427
- });
34428
- os.name = result ? result.id : platform_1;
34429
34714
  os.version = osData.platformVersion;
34430
34715
  }
34431
34716
  var browserBrand = findPresetBrand(BROWSER_PRESETS, brands);
@@ -34433,9 +34718,7 @@ function parseUserAgentData(osData) {
34433
34718
  browser.name = browserBrand.brand;
34434
34719
  browser.version = osData ? osData.uaFullVersion : browserBrand.version;
34435
34720
  }
34436
- if (navigator.platform === "Linux armv8l") {
34437
- os.name = "android";
34438
- } else if (browser.webkit) {
34721
+ if (browser.webkit) {
34439
34722
  os.name = isMobile2 ? "ios" : "mac";
34440
34723
  }
34441
34724
  if (os.name === "ios" && browser.webview) {
@@ -52645,7 +52928,7 @@ init_fn = async function() {
52645
52928
  const hApp = {
52646
52929
  width: __privateGet2(this, _cfg3).oCfg.window.width,
52647
52930
  height: __privateGet2(this, _cfg3).oCfg.window.height,
52648
- backgroundColor: __privateGet2(this, _cfg3).oCfg.init.bg_color = parseColor(String(__privateGet2(this, _cfg3).oCfg.init.bg_color)),
52931
+ backgroundColor: parseColor(__privateGet2(this, _cfg3).oCfg.init.bg_color),
52649
52932
  resolution: (_b3 = globalThis.devicePixelRatio) != null ? _b3 : 1,
52650
52933
  autoResize: true
52651
52934
  };