var LIVE2DCUBISMPIXI,__extends=this&&this.__extends||function(){var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(r,t)};return function(r,t){function s(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}}();!function(e){var r=function(e){function r(r,s,o,a,n,l){var u=e.call(this)||this;if(u._coreModel=r,u._textures=s,u._animator=o,u._physicsRig=a,u._userData=n,u._groups=l,u._animator.groups=u._groups,null==u._coreModel)return u;u._meshes=new Array(u._coreModel.drawables.ids.length);for(var d=0;d0){var _=new PIXI.Filter;_.blendMode=PIXI.BLEND_MODES.ADD,u._meshes[d].filters=[_]}else u._meshes[d].blendMode=PIXI.BLEND_MODES.ADD;else if(Live2DCubismCore.Utils.hasBlendMultiplicativeBit(u._coreModel.drawables.constantFlags[d]))if(u._coreModel.drawables.maskCounts[d]>0){var m=new PIXI.Filter;m.blendMode=PIXI.BLEND_MODES.MULTIPLY,u._meshes[d].filters=[m]}else u._meshes[d].blendMode=PIXI.BLEND_MODES.MULTIPLY;u.addChild(u._meshes[d])}return u._maskSpriteContainer=new t(r,u),u}return __extends(r,e),Object.defineProperty(r.prototype,"parameters",{get:function(){return this._coreModel.parameters},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"parts",{get:function(){return this._coreModel.parts},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"drawables",{get:function(){return this._coreModel.drawables},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"canvasinfo",{get:function(){return this._coreModel.canvasinfo},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"textures",{get:function(){return this._textures},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"animator",{get:function(){return this._animator},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"userData",{get:function(){return this._userData},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"meshes",{get:function(){return this._meshes},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"masks",{get:function(){return this._maskSpriteContainer},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"groups",{get:function(){return this._groups},enumerable:!0,configurable:!0}),r.prototype.update=function(e){var r=this,t=.016*e;this._animator.updateAndEvaluate(t),this._physicsRig&&this._physicsRig.updateAndEvaluate(t),this._coreModel.update();for(var s=!1,i=0;i0){for(var l=new PIXI.Container,u=0;u