/*! * @pixi/prepare - v6.5.10 * Compiled Thu, 06 Jul 2023 15:25:11 UTC * * @pixi/prepare is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ this.PIXI=this.PIXI||{};var _pixi_prepare=function(e,t,i,r,n,o,s){"use strict";t.settings.UPLOADS_PER_FRAME=4;var u=function(e,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},u(e,t)};var a=function(){function e(e){this.maxItemsPerFrame=e,this.itemsLeft=0}return e.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},e.prototype.allowedToUpload=function(){return this.itemsLeft-- >0},e}();function h(e,t){var r=!1;if(e&&e._textures&&e._textures.length)for(var n=0;n=0;t--)this.add(e.children[t]);return this},e.prototype.destroy=function(){this.ticking&&n.Ticker.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},e}();function m(e,t){return t instanceof i.BaseTexture&&(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0)}function g(e,t){if(!(t instanceof r.Graphics))return!1;var i=t.geometry;t.finishPoly(),i.updateBatches();for(var n=i.batches,o=0;o