/*! * @pixi/spritesheet - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/spritesheet is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ this.PIXI=this.PIXI||{};var _pixi_spritesheet=function(e,t,r,s,i){"use strict";var a=function(){function e(e,t,s){void 0===s&&(s=null),this.linkedSheets=[],this._texture=e instanceof r.Texture?e:null,this.baseTexture=e instanceof r.BaseTexture?e:this._texture.baseTexture,this.textures={},this.animations={},this.data=t;var i=this.baseTexture.resource;this.resolution=this._updateResolution(s||(i?i.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}return e.prototype._updateResolution=function(e){void 0===e&&(e=null);var t=this.data.meta.scale,r=s.getResolutionOfUrl(e,null);return null===r&&(r=void 0!==t?parseFloat(t):1),1!==r&&this.baseTexture.setResolution(r),r},e.prototype.parse=function(t){var r=this;return new Promise((function(s){r._callback=function(e){null==t||t(e),s(e)},r._batchIndex=0,r._frameKeys.length<=e.BATCH_SIZE?(r._processFrames(0),r._processAnimations(),r._parseComplete()):r._nextBatch()}))},e.prototype._processFrames=function(s){for(var i=s,a=e.BATCH_SIZE;i-s