tencentcloud-webar 1.0.23-11 → 1.0.23-13

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.
Binary file
@@ -1 +1 @@
1
- var self = wx;function a4b(a,b){var c=a4a();return a4b=function(d,e){d=d-0xab;var f=c[d];return f;},a4b(a,b);}var a4bt=a4b;function a4a(){var fy=['reset','webgl','_renderer\x20waiting\x20for\x20renderer','Graphics','showLoading','_jsonIntensity','alpha','defineProperty','_isVR','resize','11199162DRzcnu','intensity','.a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20realIntensity','shader','Geometry','scaleMode','app3d','_stage','objectSrc','_drawMaskGraphics','metadata','clear','drawCircle','Spritesheet','__proto__','uSamplerMakeup','show','getConfigByKeys','404868VfMbeI','hideLoading','debugDraw','_makeupRenderTexture','destroyAvatar','_faceLandmarks','checkSpriteSheetJSON','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20color','currentTime','\x20is\x20not\x20a\x20constructor\x20or\x20null','key','_stickers',',\x20vUvs);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20a','enableEffects','removeForConsole','_mode3d','right_eye_center','render','texture','destroy','call','6203484zZZsVe','indexOf','getOwnPropertyDescriptor','require\x203d\x20lib','getBuffer','getBaseTexture','irisBlendMode','RIGHT_IRIS','hasFilter','mesh','_debug','info','plugin3d','continue','mouthShut','instance','removeBackground','Loader','\x0a\x0a\x20\x20\x20\x20\x20\x20','parentIntensity','_applyFilter',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(makeupColor.a>0.)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20混合\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20baseColor.rgb\x20=\x20blend','done','anchor','detected','_getConfig','_meshVertex','remove\x20effect','_lipMask','content.json','waiting\x20for\x20AI\x20init...done','filterActived','output','resource','POINTS_MAP','localSpriteSheets','loading','lipVertex','load3d','loadSticker3d','function','appendChild','enable','map','_meshVertexTimer','reject','_baseContainer','filterIntensity','_parentIntensity','default','blend','renderer\x20parse\x20effect','resolve','getCanvas','_options','initThreeApp','TextureCache','backgroundType','_sticker','LEFT_IRIS','preload','setIrisProps','loadStickers','destroyForConosle','_filtersActived','beginFill','background','[@#$]\x20AR\x20Renderer\x20Constructed','baseImage','readPixels','pitch','lineTo','geometry','_lipVertex','apply3d','lib3dLoaded','animationSpeed','filterCallback','是否闭嘴的','isPureFilter','length','height','left_eye_center','euler','IrisLayer','add','beautify','object','then','throw','parse','setup','60trvekd','Makeup','.json','_cacheMask','3661049RKiMef','_maskGraphics','_initLipMask','remove','download:','utils','_url','src','timeEnd','join','Effect','textures','irisRenderTexture','clone','isLivePusher','readJSON','every','_setEffect','download','hide','landmarks','_stickerTarget','visible','_removeMakeup','position','SCALE_MODES','angles','handleLoading','_lipMaskTexture','effect\x20load\x20error','options','sent','number','renderer\x20apply\x20effect','catch','updateGeometry','disableEffect','_config','trigger','all','makeup','_filterIntensity','convertTo3d','pop','\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20if\x20(enable\x20==\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20vec4(0.0,0.0,0.0,0.0);\x0a\x20\x20\x20\x20\x20\x20\x20\x20return;\x0a\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20//\x20todo:适配镜像与非镜像\x0a\x20\x20\x20\x20\x20\x20vec2\x20baseCoord\x20=\x20bUvs;\x0a\x20\x20\x20\x20\x20\x20baseCoord\x20+=\x20imageOffset;\x0a\x20\x20\x20\x20\x20\x20//\x20if\x20(mirror\x20==\x201)\x20{\x0a\x20\x20\x20\x20\x20\x20//\x20\x20\x20baseCoord\x20=\x20vec2(1.0\x20-\x20bUvs.x,\x20bUvs.y);\x0a\x20\x20\x20\x20\x20\x20//\x20}\x0a\x20\x20\x20\x20\x20\x20vec4\x20baseColor\x20=\x20texture2D(baseImage,\x20\x20baseCoord);\x0a\x0a\x20\x20\x20\x20\x20\x20vec4\x20makeupColor\x20=\x20vec4(0.0);\x0a\x0a\x20\x20\x20\x20\x20\x20','Canvas','610511JlqKOg','push','_name','meta','_removeFilter','tick','MakeupLayer','initRenderContext','_loadImages','_makeup','update','jsonIntensity','size','setEffect','name','findIndex','Renderer','_container','reduce','blob:','_makeupMeshes','next','WHITE','_baseRenderTexture','BaseRenderTexture','_mirrorFilter','MIPMAP_MODES','_json','removeChild','StickerLayer','prototype','destroyed','loadFilter','hasOwnProperty','Class\x20extends\x20value\x20','addAttribute','\x0a\x20\x20\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x20\x20\x20\x20\x20\x20uniform\x20sampler2D\x20uSamplerMakeup;\x0a\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20texture2D(uSamplerMakeup,\x20vUvs);\x0a\x20\x20\x20\x20\x20\x20}','_faceLandMarks','_getPixelPosition','SET_INTENSITY_ERROR','_app3d','disableExclusiveFilter','LEFT_EYE_ORDER','closePath','latestEffectUrls','_backgroundVR','_loadLipImage','includes','mirrorChange','_data','ops','ArRenderer','blendshapes','_mesh','concat','keys','0015','_key','type','_avatar3d','offset','_visible','exclusiveFilter','_baseSprite','maskSprite','return','design:type','loadImage','renderTexture','maxRConSize','loaded','points','_destroyed','backGroundVR','wxAnchorArea','uid_','RIGHT_EYE_ORDER','loadingIconOptions','set','avatar3d','Texture','drawMeshBatch','addChild','renderMesh','forEach','UNSIGNED_BYTE','setStickerProps','roll','_renderer','1180778vnkFRE','time','_loader','Sprite','segmentation','tickMesh','_setup','from','decorate','iris','split','getIndeLoader','_maskRenderTexture','setAvatar','JSONEffect\x20blob\x20texture','label','Symbol.iterator\x20is\x20not\x20defined.','hasEyeMakeup','_irises','_getIris','mask','debounceTimer','_landmarks','filterTarget','already\x20loaded\x20file','uSamplerIris','eyes','resources','\x0a\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20attribute\x20vec2\x20aVertexPosition;\x0a\x20\x20\x20\x20attribute\x20vec2\x20aUvs;\x0a\x0a\x20\x20\x20\x20uniform\x20mat3\x20translationMatrix;\x0a\x20\x20\x20\x20uniform\x20mat3\x20projectionMatrix;\x0a\x20\x20\x20\x20uniform\x20vec2\x20size;\x0a\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x20\x20\x20\x20varying\x20vec2\x20bUvs;\x0a\x0a\x20\x20\x0a\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20vUvs\x20=\x20aUvs;\x0a\x20\x20\x20\x20\x20\x20\x20\x20bUvs\x20=\x20aVertexPosition.xy\x20/size;\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20lipUvs\x20=\x20lipAuvs;\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_Position\x20=\x20vec4((projectionMatrix\x20*\x20translationMatrix\x20*\x20vec3(aVertexPosition,\x201.0)).xy,\x200.0,\x201.0);\x0a\x20\x20\x20\x20}','lineStyle','loadLib3d','yaw','RenderTexture','trys','createOffscreenCanvas','wxAnchorOffset','getCircle2','min','_leftIris','constructor','splice','sticker\x20blend','\x0a\x20\x20\x20\x20uniform\x20float\x20parentIntensity;\x0a\x20\x20\x20\x20uniform\x20int\x20enable;\x0a\x20\x20\x20\x20uniform\x20sampler2D\x20baseImage;\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20uniform\x20sampler2D\x20uSamplerIris;\x0a\x0a\x20\x20\x20\x20//\x20uniform\x20int\x20mirror;\x0a\x20\x20\x20\x20uniform\x20vec2\x20imageOffset;\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20','image','lut','webpackChunktencentcloud_webar','_effects','design:paramtypes','Container','enableExclusiveFilter','makeupLayersByBlendMode','scale','baseTexture','_getMeshLayerByBlendMode','init','getUrl','renderer','warn','mipmap','\x20=\x20texture2D(uSamplerMakeup','mirrorFilter','3450872xTthZB','_lipMaskIns','setPrototypeOf','filter','ReuseableLipMask','Object\x20is\x20not\x20iterable.','design:returntype','\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x0a\x0a\x20\x20\x20\x20\x20\x20//\x20输出\x0a\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20baseColor;\x0a\x20\x20\x20\x20}','lipmesh','Shader','registerAvatar','apply','meshVertex','renderer\x20resize','faceLandMarks','_applyMakeup','_getMask','value','uniforms','\x0a\x20\x20\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20\x20\x20attribute\x20vec2\x20aVertexPosition;\x0a\x20\x20\x20\x20\x20\x20attribute\x20vec2\x20aUvs;\x0a\x20\x20\x20\x20\x20\x20uniform\x20mat3\x20translationMatrix;\x0a\x20\x20\x20\x20\x20\x20uniform\x20mat3\x20projectionMatrix;\x0a\x20\x20\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x0a\x0a\x20\x20\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vUvs\x20=\x20aUvs;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gl_Position\x20=\x20vec4((projectionMatrix\x20*\x20translationMatrix\x20*\x20vec3(aVertexPosition,\x201.0)).xy,\x200.0,\x201.0);\x0a\x20\x20\x20\x20\x20\x20}','window','aVertexPosition','getDisplay','log','checkAnimated','zIndex','_renderer\x20waiting\x20for\x20stage','_filterTarget','_angles','sticker','undefined','url','_rightIris','find','_filters','getCircle','9otcokZ','setOptions','_applyed','_target','_intensity','sticker3d','filters','aUvs','_src','create','_maskSprite','_maskRenderTexure','data','Mesh','_camera','_createFilterSync','_canvas','endFill','addToCache','debugDraw2','getDataConfig','waiting\x20for\x20AI\x20init...','Generator\x20is\x20already\x20executing.','(baseColor.rgb,\x20irisColor.rgb/irisColor.a\x20,\x20irisColor.a);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20','load','iterator','_getLoader','getTexture','setPlanes','_makeupContainer','\x0a\x20\x20\x20\x20','blendMode_1','reCorrectAvatar','mount','_dir','removeFromCache','lipMask','some','max','debug\x20draw\x202','_finalContainer','error','_lipMaskMesh','end','needDetection','clearTexture','width'];a4a=function(){return fy;};return a4a();}(function(a,b){var bs=a4b,c=a();while(!![]){try{var d=-parseInt(bs(0x11e))/0x1+parseInt(bs(0x177))/0x2*(-parseInt(bs(0x1d8))/0x3)+parseInt(bs(0x223))/0x4*(parseInt(bs(0xec))/0x5)+parseInt(bs(0x211))/0x6+parseInt(bs(0xf0))/0x7+parseInt(bs(0x1b4))/0x8+-parseInt(bs(0x238))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4a,0xeb7bf),(self['webpackChunktencentcloud_webar']=self[a4bt(0x1a4)]||[])[a4bt(0x11f)]([[0x141],{0x1419:(a0,a1,a2)=>{var c7=a4bt;a2['d'](a1,{'g':()=>aU,'b':()=>aT});var a3,a4=a2(0x4b6),a5=a2(0x1f15),a6=a2(0xbe4),a7=a2(0x15a0),a8=a2(0x24f3),a9=a2(0x2558),aa=a2(0x543),ab=a2(0x43c),ac=a2(0xf09),ad=(a3=function(aV,aW){return a3=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(aX,aY){var bu=a4b;aX[bu(0x21f)]=aY;}||function(aX,aY){var bv=a4b;for(var aZ in aY)Object[bv(0x13c)][bv(0x13f)][bv(0x237)](aY,aZ)&&(aX[aZ]=aY[aZ]);},a3(aV,aW);},function(aV,aW){var bw=a4b;if('function'!=typeof aW&&null!==aW)throw new TypeError(bw(0x140)+String(aW)+'\x20is\x20not\x20a\x20constructor\x20or\x20null');function aX(){var bx=bw;this[bx(0x19e)]=aV;}a3(aV,aW),aV[bw(0x13c)]=null===aW?Object['create'](aW):(aX[bw(0x13c)]=aW[bw(0x13c)],new aX());}),ae=function(aV,aW,aX,aY){var by=a4b,aZ,b0=arguments['length'],b1=b0<0x3?aW:null===aY?aY=Object[by(0x23a)](aW,aX):aY;if(by(0xe7)==typeof Reflect&&by(0xb8)==typeof Reflect[by(0x17f)])b1=Reflect['decorate'](aV,aW,aX,aY);else{for(var b2=aV[by(0xe0)]-0x1;b2>=0x0;b2--)(aZ=aV[b2])&&(b1=(b0<0x3?aZ(b1):b0>0x3?aZ(aW,aX,b1):aZ(aW,aX))||b1);}return b0>0x3&&b1&&Object[by(0x20e)](aW,aX,b1),b1;},af=function(aV,aW){var bz=a4b;if(bz(0xe7)==typeof Reflect&&bz(0xb8)==typeof Reflect[bz(0x21b)])return Reflect[bz(0x21b)](aV,aW);},ag=(function(){var bB=a4b;function aV(aW,aX,aY,aZ,b0,b1){var bA=a4b;this[bA(0x166)]=!0x1,this[bA(0x158)]=bA(0x118),this[bA(0xc0)]=0x1,this[bA(0x20c)]=0x1,this[bA(0xfb)]=[],this[bA(0x1fa)]=aX,this[bA(0xc6)]=aW,this['_container']=aY,this[bA(0x10c)]=b1,this[bA(0x1af)]=aZ,this[bA(0x158)]=b0||bA(0x118);}return Object[bB(0x20e)](aV[bB(0x13c)],bB(0x24b),{'get':function(){return this['_parentIntensity'];},'set':function(aW){var bC=bB;this[bC(0x214)]&&(this['shader'][bC(0x1c6)][bC(0x24b)]=aW),this['_parentIntensity']=aW;},'enumerable':!0x1,'configurable':!0x0}),Object[bB(0x20e)](aV[bB(0x13c)],'lipMask',{'set':function(aW){var bD=bB;null===aW?(this['_mesh'][bD(0x13a)](this[bD(0xef)]),this[bD(0x153)][bD(0x18b)]=aW):(this[bD(0x153)]['addChild'](aW),this[bD(0x153)][bD(0x18b)]=aW,this['_cacheMask']=aW);},'enumerable':!0x1,'configurable':!0x0}),Object[bB(0x20e)](aV[bB(0x13c)],'visible',{'set':function(aW){var bE=bB;this[bE(0x214)]&&(this[bE(0x214)][bE(0x1c6)][bE(0xba)]=aW?0x1:0x0);},'enumerable':!0x1,'configurable':!0x0}),aV[bB(0x13c)][bB(0x113)]=function(aW){var bF=bB;this[bF(0x166)];},aV['prototype']['renderMesh']=function(){},aV[bB(0x13c)][bB(0x16f)]=function(aW,aX){var bG=bB,aY=this;if(!this[bG(0x166)]){var aZ=Array['from'](aW[bG(0x130)](function(b8,b9){var bH=bG;return b8['add'](b9[bH(0xc2)]),b8;},new Set()));this['irisRenderTexture']&&!aZ[bG(0x14d)](this[bG(0x23e)])&&aZ[bG(0x11f)](this[bG(0x23e)]);var b0='\x0a\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x20\x20\x20\x20varying\x20vec2\x20bUvs;\x0a\x20\x20\x20\x20\x0a\x0a\x20\x20\x20\x20'[bG(0x154)](aW['map'](function(b8,b9){var bI=bG;return'uniform\x20sampler2D\x20uSamplerMakeup'[bI(0x154)](b9,';');})[bG(0xf9)]('\x0a'),bG(0x1f6))[bG(0x154)](aW[bG(0xbb)](function(b8,b9){var bJ=bG;return'uniform\x20float\x20intensity'[bJ(0x154)](b9,';');})[bG(0xf9)]('\x0a'),bG(0x1a1))[bG(0x154)](aZ[bG(0xbb)](function(b8){var bK=bG;return a9['Lc'][b8][bK(0x214)];})[bG(0xf9)]('\x0a'),bG(0x11c))[bG(0x154)](aW['map'](function(b8,b9){var bL=bG;return bL(0x22a)[bL(0x154)](b9,bL(0x1b2))['concat'](b9,bL(0x22f))[bL(0x154)](b9,'\x20=\x20color')[bL(0x154)](b9,bL(0x213))[bL(0x154)](b9,'\x20=\x20intensity')[bL(0x154)](b9,'\x20*\x20parentIntensity;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20makeupColor\x20=\x20texture2D(uSamplerMakeup')[bL(0x154)](b9,',\x20vUvs)\x20*\x20realIntensity')[bL(0x154)](b9,bL(0x24d))[bL(0x154)](a9['Lc'][b8[bL(0xc2)]][bL(0x22d)],'(baseColor.rgb,\x20makeupColor.rgb/makeupColor.a\x20,\x20makeupColor.a);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20');})[bG(0xf9)]('\x0a'),bG(0x24a))[bG(0x154)](this['irisRenderTexture']?'\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20混合美瞳\x0a\x20\x20\x20\x20\x20\x20\x20\x20vec4\x20irisColor\x20=\x20texture2D(uSamplerIris,\x20bUvs);\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(irisColor.a\x20>\x200.)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20baseColor.rgb\x20=\x20blend'['concat'](a9['Lc'][this[bG(0x23e)]]['key'],bG(0x1ef)):'',bG(0x1bb)),b1={'enable':0x1};b1[bG(0x24b)]=this[bG(0x24b)];var b2=this[bG(0xc6)],b3=b2[bG(0x206)],b4=b2[bG(0xe1)];b1[bG(0xd4)]=aT[bG(0x1ab)],b1[bG(0x12a)]=[b3*b4/aT[bG(0x1ab)]['height'],b4];var b5=aT[bG(0x1ab)][bG(0x206)]*b4/aT[bG(0x1ab)][bG(0xe1)];b1['imageOffset']=[(b5-b3)/0x2/b5,0x0],aW[bG(0x172)](function(b8,b9){var bM=bG,ba=bM(0xc1)===aY[bM(0x1fa)]?b8[bM(0xf7)]:''[bM(0x154)](aY[bM(0x1fa)],'|')[bM(0x154)](b8['src']),bb=a4[bM(0xf5)][bM(0xc8)][ba];b1[bM(0x220)[bM(0x154)](b9)]=bb,b1[bM(0x212)[bM(0x154)](b9)]=b8[bM(0x212)],aY[bM(0xfb)]['push'](bb);}),this[bG(0xfc)]&&(b1[bG(0x190)]=this[bG(0xfc)]);var b6=a4['Shader']['from'](bG(0x193),b0,b1);this[bG(0x214)]=b6,ac['t'][bG(0x247)]['on'](bG(0x14e),function(b8){});var b7=new a9['Kj'](aX,b6);return this[bG(0x153)]=b7,this[bG(0x12f)][bG(0x170)](b7),b7;}},aV[bB(0x13c)][bB(0x236)]=function(){var bN=bB;this[bN(0x166)]=!0x0,this['_mesh']&&(this[bN(0x153)]['destroy']({'children':!0x0,'texture':!0x1,'baseTexture':!0x1}),this['_mesh'][bN(0x18b)]=null,this[bN(0x153)]=null),this[bN(0x1e3)]&&this[bN(0x1e3)][bN(0x236)](!0x1);},ae([(0x0,ab['M'])(bB(0x124)),af('design:type',Function),af(bB(0x1a6),[Array]),af(bB(0x1ba),void 0x0)],aV[bB(0x13c)],'updateGeometry',null),ae([(0x0,ab['M'])(bB(0x124)),af('design:type',Function),af('design:paramtypes',[]),af(bB(0x1ba),void 0x0)],aV[bB(0x13c)],bB(0x236),null),aV;}()),ah=function(aV){var bP=a4b;function aW(aZ,b0,b1,b2,b3,b4,b5){var bO=a4b,b6=aV[bO(0x237)](this,aZ,b0,b5)||this;return b6[bO(0xf1)]=new a4[(bO(0x20a))](),b6['maxLConSize']=0x0,b6[bO(0x163)]=0x0,b6[bO(0xc0)]=0x1,b6[bO(0x129)]=b3,b6[bO(0x1f3)](b1,b2),b6[bO(0x115)]=b4,b6[bO(0x162)]=a4[bO(0x197)][bO(0x1e1)]({'width':aZ[bO(0x206)],'height':aZ['height']}),b6;}var aX,aY;return ad(aW,aV),Object['defineProperty'](aW[bP(0x13c)],bP(0x24b),{'get':function(){var bQ=bP;return this[bQ(0xc0)];},'set':function(aZ){var bR=bP;this['_container']&&(this[bR(0x12f)][bR(0x20d)]=this['jsonIntensity']*aZ),this[bR(0xc0)]=aZ;},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aW[bP(0x13c)],bP(0x106),{'set':function(aZ){var bS=bP;this['_container'][bS(0x106)]=aZ;},'enumerable':!0x1,'configurable':!0x0}),aW[bP(0x13c)][bP(0x1f3)]=function(aZ,b0){var bT=bP,b1=bT(0xc1)===this[bT(0x1fa)]?aZ:''[bT(0x154)](this['_dir'],'|')['concat'](aZ),b2=a4[bT(0xf5)][bT(0xc8)][b1],b3=new a9['jy'](b2),b4=new a9['jy'](b2[bT(0xfd)]());b3[bT(0x24f)][bT(0x16c)](0.5),b4[bT(0x24f)]['set'](0.5),this['_leftIris']=b3,this[bT(0x1d4)]=b4;var b5=new a4[(bT(0x1a7))]();this[bT(0xf1)]||(this[bT(0xf1)]=new a4[(bT(0x20a))]()),b5['addChild'](this['_maskGraphics']),b5['addChild'](b3),b5[bT(0x170)](b4),b5[bT(0x20d)]=this[bT(0x24b)]*this[bT(0x129)],b5[bT(0x18b)]=this[bT(0xf1)],this[bT(0x12f)]=b5;},aW[bP(0x13c)]['setIrisProps']=function(aZ,b0){var bU=bP;if(aZ['length']){var b1=this[bU(0x115)][bU(0x222)]([bU(0xb2),bU(0xcb),bU(0x23f),bU(0x148),bU(0x16a)]),b2=b1[bU(0xb2)],b3=(b1[bU(0xcb)],b1[bU(0x23f)],b1[bU(0x148)]),b4=b1[bU(0x16a)],b5=(b2[bU(0xe2)],b2[bU(0x233)],(0x0,aa['Sp'])(aZ[0x34],aZ[0x37])),b6=(0x0,aa['Sp'])(aZ[0x3a],aZ[0x3d]),b7=Math['max'](this['maxLConSize'],(0x0,aa['Sp'])(aZ[0x48],aZ[0x49])/b5),b8=Math['max'](this[bU(0x163)],(0x0,aa['Sp'])(aZ[0x4b],aZ[0x4c])/b6),b9=b5*b7,ba=b5*b7,bb=b6*b8,bc=b6*b8;this['maxLConSize']=Math[bU(0x1fe)](Math[bU(0x19c)](b7,0.7),0.4),this[bU(0x163)]=Math[bU(0x1fe)](Math[bU(0x19c)](b8,0.7),0.4);var bd=aT[bU(0x1ab)]['width']*this[bU(0xc6)][bU(0xe1)]/aT[bU(0x1ab)][bU(0xe1)],be=(0x0,aa['qg'])(aZ[0x4a],aZ[0x68]),bf=(0x0,aa['qg'])(aZ[0x4d],aZ[0x69]);console[bU(0x1cb)](bU(0x15a),(bd-this['_options'][bU(0x206)])/0x2),be['x']-=(bd-this[bU(0xc6)][bU(0x206)])/0x2,bf['x']-=(bd-this[bU(0xc6)][bU(0x206)])/0x2;var bg=this[bU(0x19d)],bh=this[bU(0x1d4)];bg[bU(0x206)]=b9,bg['height']=ba,bg['x']=be['x'],bg['y']=be['y'],bh[bU(0x206)]=bb,bh[bU(0xe1)]=bc,bh['x']=bf['x'],bh['y']=bf['y'],this[bU(0xf1)][bU(0x21c)](),this[bU(0x21a)](b3,aZ),this[bU(0x21a)](b4,aZ),b0[bU(0x234)](this['_container'],{'renderTexture':this['renderTexture']});}},aW[bP(0x13c)][bP(0x21a)]=function(aZ,b0){var bV=bP,b1=this,b2=this[bV(0xf1)];b2['beginFill'](0xff3300),b2[bV(0x194)](0x1,0xffd900,0x1);var b3=[];aZ[bV(0x172)](function(b4,b5){var bW=bV,b6=b0[b4],b7=b1['_getPixelPosition'](b6['x'],b6['y']),b8=b7['x'],b9=b7['y'];b3['push']({'x':b8,'y':b9}),0x0===b5?b2['moveTo'](b8,b9):b5===aZ['length']-0x1?(b2[bW(0x149)](),b2[bW(0x1e9)]()):b2[bW(0xd7)](b8,b9);});},aW[bP(0x13c)][bP(0x144)]=function(aZ,b0){return{'x':aZ,'y':b0};},aW[bP(0x13c)][bP(0x236)]=function(){var bX=bP;this[bX(0x19d)]&&this[bX(0x19d)][bX(0x236)]({'children':!0x0,'texture':!0x1,'baseTexture':!0x1}),this[bX(0x1d4)]&&this[bX(0x1d4)][bX(0x236)]({'children':!0x0,'texture':!0x1,'baseTexture':!0x1}),this['_maskGraphics']&&this[bX(0xf1)][bX(0x236)]({'children':!0x0,'texture':!0x1,'baseTexture':!0x1});},ae([(0x0,ab['M'])(bP(0xe4)),af(bP(0x160),Function),af(bP(0x1a6),[bP(0xb8)==typeof(aX=bP(0x1d2)!=typeof Array&&Array)?aX:Object,bP(0xb8)==typeof(aY=void 0x0!==a4[bP(0x12e)]&&a4[bP(0x12e)])?aY:Object]),af('design:returntype',void 0x0)],aW[bP(0x13c)],bP(0xcd),null),aW;}(ag),ai=a2(0xc30),aj=a2(0x17dd),ak=function(aV,aW,aX,aY){var bY=a4b,aZ,b0=arguments[bY(0xe0)],b1=b0<0x3?aW:null===aY?aY=Object[bY(0x23a)](aW,aX):aY;if(bY(0xe7)==typeof Reflect&&bY(0xb8)==typeof Reflect[bY(0x17f)])b1=Reflect[bY(0x17f)](aV,aW,aX,aY);else{for(var b2=aV[bY(0xe0)]-0x1;b2>=0x0;b2--)(aZ=aV[b2])&&(b1=(b0<0x3?aZ(b1):b0>0x3?aZ(aW,aX,b1):aZ(aW,aX))||b1);}return b0>0x3&&b1&&Object[bY(0x20e)](aW,aX,b1),b1;},al=function(aV,aW){var bZ=a4b;if('object'==typeof Reflect&&'function'==typeof Reflect[bZ(0x21b)])return Reflect[bZ(0x21b)](aV,aW);},am=function(aV,aW,aX,aY){return new(aX||(aX=Promise))(function(aZ,b0){var c3=a4b;function b1(b4){var c0=a4b;try{b3(aY[c0(0x133)](b4));}catch(b5){b0(b5);}}function b2(b4){var c1=a4b;try{b3(aY[c1(0xe9)](b4));}catch(b5){b0(b5);}}function b3(b4){var c2=a4b,b5;b4[c2(0x24e)]?aZ(b4[c2(0x1c5)]):(b5=b4[c2(0x1c5)],b5 instanceof aX?b5:new aX(function(b6){b6(b5);}))[c2(0xe8)](b1,b2);}b3((aY=aY[c3(0x1bf)](aV,aW||[]))['next']());});},an=function(aV,aW){var c4=a4b,aX,aY,aZ,b0,b1={'label':0x0,'sent':function(){if(0x1&aZ[0x0])throw aZ[0x1];return aZ[0x1];},'trys':[],'ops':[]};return b0={'next':b2(0x0),'throw':b2(0x1),'return':b2(0x2)},c4(0xb8)==typeof Symbol&&(b0[Symbol[c4(0x1f1)]]=function(){return this;}),b0;function b2(b3){return function(b4){return function(b5){var c5=a4b;if(aX)throw new TypeError('Generator\x20is\x20already\x20executing.');for(;b1;)try{if(aX=0x1,aY&&(aZ=0x2&b5[0x0]?aY['return']:b5[0x0]?aY['throw']||((aZ=aY[c5(0x15f)])&&aZ[c5(0x237)](aY),0x0):aY[c5(0x133)])&&!(aZ=aZ[c5(0x237)](aY,b5[0x1]))[c5(0x24e)])return aZ;switch(aY=0x0,aZ&&(b5=[0x2&b5[0x0],aZ['value']]),b5[0x0]){case 0x0:case 0x1:aZ=b5;break;case 0x4:return b1[c5(0x186)]++,{'value':b5[0x1],'done':!0x1};case 0x5:b1['label']++,aY=b5[0x1],b5=[0x0];continue;case 0x7:b5=b1[c5(0x150)]['pop'](),b1['trys'][c5(0x11b)]();continue;default:if(!(aZ=b1[c5(0x198)],(aZ=aZ['length']>0x0&&aZ[aZ[c5(0xe0)]-0x1])||0x6!==b5[0x0]&&0x2!==b5[0x0])){b1=0x0;continue;}if(0x3===b5[0x0]&&(!aZ||b5[0x1]>aZ[0x0]&&b5[0x1]<aZ[0x3])){b1[c5(0x186)]=b5[0x1];break;}if(0x6===b5[0x0]&&b1[c5(0x186)]<aZ[0x1]){b1[c5(0x186)]=aZ[0x1],aZ=b5;break;}if(aZ&&b1['label']<aZ[0x2]){b1[c5(0x186)]=aZ[0x2],b1[c5(0x150)][c5(0x11f)](b5);break;}aZ[0x2]&&b1[c5(0x150)]['pop'](),b1[c5(0x198)][c5(0x11b)]();continue;}b5=aW['call'](aV,b1);}catch(b6){b5=[0x6,b6],aY=0x0;}finally{aX=aZ=0x0;}if(0x5&b5[0x0])throw b5[0x1];return{'value':b5[0x0]?b5[0x1]:void 0x0,'done':!0x0};}([b3,b4]);};}},ao=function(aV){var c6=a4b,aW=c6(0xb8)==typeof Symbol&&Symbol[c6(0x1f1)],aX=aW&&aV[aW],aY=0x0;if(aX)return aX[c6(0x237)](aV);if(aV&&'number'==typeof aV[c6(0xe0)])return{'next':function(){return aV&&aY>=aV['length']&&(aV=void 0x0),{'value':aV&&aV[aY++],'done':!aV};}};throw new TypeError(aW?'Object\x20is\x20not\x20iterable.':c6(0x187));},ap=(0x0,aj['jl'])(c7(0x118)),aq=(function(){var c9=c7;function aV(aW,aX,aY){var c8=a4b;aW&&(this[c8(0xc6)]=aW),aX&&(this['_lipVertex']=aX),aY&&(this[c8(0x1af)]=aY);}return aV['prototype'][c9(0x236)]=function(){var ca=c9,aW=this[ca(0xac)];this['_lipMask']=null;try{aW['destroy'](!0x0);}catch(aX){}try{this[ca(0x202)]['destroy'](!0x0),this[ca(0x202)]=null;}catch(aY){}try{this['_maskRenderTexture'][ca(0x236)](!0x0),this[ca(0x183)]=null;}catch(aZ){}this[ca(0x115)]=null;try{this[ca(0x1e2)][ca(0x236)](!0x0),this[ca(0x1e2)]=null;}catch(b0){}},aV[c9(0x13c)][c9(0x1f0)]=function(){return am(this,void 0x0,void 0x0,function(){var aW,aX,aY,aZ,b0;return an(this,function(b1){var cb=a4b;switch(b1['label']){case 0x0:return this[cb(0x115)]?[0x3,0x2]:(this[cb(0x115)]=new a8['M'](),[0x4,this[cb(0x115)][cb(0x1f0)]()]);case 0x1:b1[cb(0x10f)](),b1['label']=0x2;case 0x2:return this[cb(0xac)]?[0x3,0x4]:[0x4,this[cb(0x1c4)]()];case 0x3:b1[cb(0x10f)](),b1[cb(0x186)]=0x4;case 0x4:return this[cb(0x1e2)]&&!this[cb(0x1e2)][cb(0x13d)]||(aW=this[cb(0xc6)],aX=aW['width'],aY=aW[cb(0xe1)],aZ=new a4[(cb(0x136))]({'width':aX,'height':aY}),this['_maskRenderTexture']=new a4[(cb(0x197))](aZ),b0=new a4[(cb(0x17a))](this['_maskRenderTexture']),this[cb(0x1e2)]=b0),[0x2,{'maskSprite':this[cb(0x1e2)],'lipmask':this['_lipMask'],'lipmaskmesh':this[cb(0x202)]}];}});});},aV[c9(0x13c)][c9(0x128)]=function(aW){var cc=c9;this[cc(0x202)]&&(this[cc(0x202)][cc(0xd8)][cc(0x23c)](cc(0x1c9))[cc(0x128)](aW),this[cc(0x234)]());},aV['prototype'][c9(0x234)]=function(){var cd=c9;this[cd(0x1af)]&&this[cd(0xac)]&&this['renderer'][cd(0x234)](this[cd(0xac)],{'renderTexture':this[cd(0x183)]});},aV['prototype'][c9(0x1c4)]=function(){return am(this,void 0x0,void 0x0,function(){var aW,aX,aY,aZ,b0,b1,b2,b3,b4;return an(this,function(b5){var ce=a4b;switch(b5[ce(0x186)]){case 0x0:return this[ce(0xac)]?[0x2,this['_lipMask']]:(aW=new a4[(ce(0x1a7))](),(aX=new a4[(ce(0x17a))](a4[ce(0x16e)][ce(0x134)]))[ce(0x206)]=this[ce(0xc6)][ce(0x206)],aX[ce(0xe1)]=this[ce(0xc6)][ce(0xe1)],aW[ce(0x170)](aX),aY=this['_lipVertex'],aZ=this['_config'][ce(0x1ec)](0x1d),[0x4,this[ce(0x14c)]()]);case 0x1:return b0=b5[ce(0x10f)](),b1=new a4['Geometry']()[ce(0x141)]('aVertexPosition',aY)[ce(0x141)](ce(0x1df),aZ),ce(0x1c7),ce(0x142),b2={'uSamplerMakeup':b0},b3=a4[ce(0x1bd)][ce(0x17e)](ce(0x1c7),'\x0a\x20\x20\x20\x20\x20\x20precision\x20mediump\x20float;\x0a\x20\x20\x20\x20\x20\x20varying\x20vec2\x20vUvs;\x0a\x20\x20\x20\x20\x20\x20uniform\x20sampler2D\x20uSamplerMakeup;\x0a\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20void\x20main()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20gl_FragColor\x20=\x20texture2D(uSamplerMakeup,\x20vUvs);\x0a\x20\x20\x20\x20\x20\x20}',b2),b4=new a4[(ce(0x1e5))](b1,b3),this[ce(0x202)]=b4,aW['addChild'](b4),this['_lipMask']=aW,[0x2,aW];}});});},aV[c9(0x13c)]['_loadLipImage']=function(){return am(this,void 0x0,Promise,function(){var aW=this;return an(this,function(aX){return[0x2,new Promise(function(aY,aZ){return am(aW,void 0x0,void 0x0,function(){var b0,b1,b2;return an(this,function(b3){var cf=a4b;switch(b3[cf(0x186)]){case 0x0:return[0x4,(b0=new ai['KI']())[cf(0x1ad)]()];case 0x1:return b1=b3[cf(0x10f)](),[0x4,b0[cf(0x161)](b1)];case 0x2:return b2=b3['sent'](),aY(b2[ai['X_']]),[0x2];}});});})];});});},ak([(0x0,ab['M'])(c9(0x1b8)),al(c9(0x160),Function),al('design:paramtypes',[]),al('design:returntype',void 0x0)],aV[c9(0x13c)],c9(0x236),null),ak([(0x0,ab['o'])(c9(0x1b8)),al(c9(0x160),Function),al(c9(0x1a6),[]),al('design:returntype',Promise)],aV[c9(0x13c)],'_getMask',null),aV;}()),ar=(function(){var ch=c7;function aV(aX,aY,aZ,b0,b1,b2,b3,b4){var cg=a4b;void 0x0===b4&&(b4=0x1),this[cg(0x12f)]=new a4['Container'](),this[cg(0x132)]=[],this[cg(0x15b)]=!0x0,this[cg(0x246)]=!0x0,this[cg(0x1da)]=!0x1,this[cg(0x157)]=aX,this[cg(0x14f)]=aY,this['_options']=aZ,this[cg(0x241)]=b0,this[cg(0x1bc)]=b2,this['faceLandMarks']=b1,this[cg(0x1af)]=b3,this[cg(0x24b)]=b4;var b5=new a4[(cg(0x17a))](a4[cg(0x16e)]['WHITE']);b5[cg(0x20d)]=0x0,b5[cg(0x206)]=aZ['width'],b5[cg(0xe1)]=aZ['height'],this[cg(0x12f)][cg(0x170)](b5);}var aW;return Object[ch(0x20e)](aV[ch(0x13c)],'visible',{'get':function(){var ci=ch;return this[ci(0x15b)];},'set':function(aX){var cj=ch,aY=this;this['_target']&&aX!==this[cj(0x15b)]&&(this[cj(0x15b)]=aX,this[cj(0x132)][cj(0x172)](function(aZ){var ck=cj;aX?aY[ck(0x1bf)](aY['_target']):aY[ck(0xf3)]();}));},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV[ch(0x13c)],ch(0x241),{'set':function(aX){var cl=ch;(this[cl(0x252)]=aX,this[cl(0xd8)])&&(this[cl(0xd8)][cl(0x23c)](cl(0x1c9))[cl(0x128)](aX),this[cl(0x132)][cl(0x172)](function(aY){aY['updateGeometry'](aX);}));},'enumerable':!0x1,'configurable':!0x0}),Object[ch(0x20e)](aV['prototype'],ch(0x1bc),{'set':function(aX){var cm=ch;this['_lipVertex']=aX,this['_lipMaskIns']&&this[cm(0x1b5)][cm(0x128)](aX);},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV[ch(0x13c)],'faceLandMarks',{'set':function(aX){var cn=ch,aY=this;aX&&aX[cn(0xe0)]&&(this[cn(0x189)]&&this[cn(0x189)][cn(0xcd)](aX,this[cn(0x1af)]),(0x0,aa['Sp'])(aX[0x62],aX[0x66])<0.03*(0x0,aa['Sp'])(aX[0x0],aX[0x20])?this[cn(0x246)]||(this['_makeupMeshes'][cn(0x172)](function(aZ){'lips'===aZ['type']&&(aZ['lipMask']=null);}),this[cn(0x246)]=!0x0):this[cn(0x246)]&&(this[cn(0x132)][cn(0x172)](function(aZ){var co=cn;'lips'===aZ[co(0x158)]&&aY[co(0x1b5)]&&(aZ['lipMask']=aY[co(0x1b5)][co(0x1e2)]);}),this['mouthShut']=!0x1));},'enumerable':!0x1,'configurable':!0x0}),Object[ch(0x20e)](aV['prototype'],ch(0x24b),{'get':function(){var cp=ch;return this[cp(0x1dc)];},'set':function(aX){var cq=ch;ap[cq(0x243)]('set\x20parentIntensity',aX),this[cq(0x189)]&&(this['_irises'][cq(0x24b)]=aX),this[cq(0x132)][cq(0x172)](function(aY){var cr=cq;aY[cr(0x24b)]=aX;}),this[cq(0x1dc)]=aX;},'enumerable':!0x1,'configurable':!0x0}),aV['prototype']['renderMesh']=function(){var cs=ch;this['_lipMaskIns']&&this[cs(0x1b5)]['render'](),this['_makeupMeshes'][cs(0x172)](function(aX){aX['renderMesh']();});},aV['prototype'][ch(0x1f0)]=function(){return am(this,void 0x0,void 0x0,function(){var aX,aY,aZ,b0,b1,b2,b3,b4;return an(this,function(b5){var ct=a4b;switch(b5[ct(0x186)]){case 0x0:return this[ct(0x115)]=new a8['M'](),[0x4,this['_config'][ct(0x1f0)]()];case 0x1:if(b5['sent'](),aX=this[ct(0x14f)],ap[ct(0x243)]('makeup\x20info',this[ct(0x14f)]),aY=[],aX&&aX[ct(0xe0)]){try{for(aZ=ao(aX),b0=aZ[ct(0x133)]();!b0[ct(0x24e)];b0=aZ[ct(0x133)]())ct(0x180)===(b1=b0[ct(0x1c5)])[ct(0x158)]?(this[ct(0x189)]=this[ct(0x18a)](b1[ct(0xf7)],b1[ct(0xc2)],b1['intensity']),this[ct(0x23e)]=b1['blend']):(b1[ct(0xc2)]+'',aY[ct(0x11f)]({'src':b1[ct(0xf7)],'intensity':b1[ct(0x212)],'type':b1['type'],'blend':b1['blend']}));}catch(b6){b3={'error':b6};}finally{try{b0&&!b0['done']&&(b4=aZ[ct(0x15f)])&&b4[ct(0x237)](aZ);}finally{if(b3)throw b3['error'];}}console[ct(0x1cb)](ct(0x1a9),aY),b2=this[ct(0x1ac)](aY),this[ct(0x132)][ct(0x11f)](b2);}return[0x4,this[ct(0xf2)]()];case 0x2:return b5[ct(0x10f)](),[0x2];}});});},aV['prototype'][ch(0x18a)]=function(aX,aY,aZ){var cu=ch;return new ah(this[cu(0xc6)],this[cu(0x157)],aX,aY,aZ,this['_config'],this['_container']);},aV['prototype'][ch(0x1ac)]=function(aX){var cv=ch,aY=aX[cv(0x1fd)](function(b2){return'lips'===b2['type'];})?'lips':cv(0x118),aZ=new ag(this[cv(0xc6)],this[cv(0x157)],this[cv(0x12f)],this[cv(0x1af)],aY);aZ[cv(0x24b)]=this[cv(0x24b)],this[cv(0x189)]&&(aZ[cv(0xfc)]=this[cv(0x189)][cv(0x162)][cv(0x1ab)],aZ[cv(0x23e)]=this[cv(0x23e)]);var b0=this[cv(0x115)][cv(0x1ec)](0x1a);if(!this[cv(0xd8)]){var b1=new a4[(cv(0x215))]()[cv(0x141)](cv(0x1c9),this[cv(0x252)])[cv(0x141)](cv(0x1df),b0);this['geometry']=b1;}return aZ[cv(0x16f)](aX,this['geometry']),aZ;},aV['prototype'][ch(0x1bf)]=function(aX){var cw=ch;this[cw(0x1db)]=aX,this[cw(0x1c3)](aX);},aV['prototype'][ch(0xf3)]=function(){var cx=ch;this[cx(0x107)](this[cx(0x1db)]);},aV['prototype'][ch(0x1c3)]=function(aX){var cy=ch;this[cy(0x1da)]||(this[cy(0x1da)]=!0x0,aX['filters']||(aX[cy(0x1de)]=[]),aX[cy(0x170)](this[cy(0x12f)]));},aV[ch(0x13c)][ch(0x107)]=function(aX){var cz=ch;this['_applyed']&&(this[cz(0x1da)]=!0x1,aX[cz(0x1de)]&&aX[cz(0x13a)](this[cz(0x12f)]));},aV[ch(0x13c)]['_initLipMask']=function(){return am(this,void 0x0,void 0x0,function(){var aX,aY,aZ=this;return an(this,function(b0){var cA=a4b;switch(b0[cA(0x186)]){case 0x0:return(aX=new aq(this[cA(0xc6)],this[cA(0xd9)],this['renderer']))[cA(0xc6)]=this['_options'],aX[cA(0xd9)]=this[cA(0xd9)],aX['renderer']=this['renderer'],this[cA(0x1b5)]=aX,[0x4,aX[cA(0x1f0)]()];case 0x1:return aY=b0[cA(0x10f)]()[cA(0x15e)],this[cA(0x132)]['forEach'](function(b1){var cB=cA;console[cB(0x1cb)](cB(0xde),aZ[cB(0x246)]),'lips'!==b1[cB(0x158)]||aZ[cB(0x246)]||(b1[cB(0x1fc)]=aY);}),[0x2];}});});},aV['prototype'][ch(0x236)]=function(){var cC=ch;this['remove'](),this[cC(0x132)]['forEach'](function(aX){var cD=cC;return aX[cD(0x236)]();}),this[cC(0x132)]=[],this[cC(0x189)]&&this['_irises'][cC(0x236)](),this[cC(0x189)]=null,this[cC(0x12f)]['destroy'](),this[cC(0x1db)]=null,this[cC(0x1b5)]&&this['_lipMaskIns'][cC(0x236)]();},ak([(0x0,ab['M'])(ch(0xed)),al(ch(0x160),Function),al(ch(0x1a6),['function'==typeof(aW=void 0x0!==a4['Container']&&a4[ch(0x1a7)])?aW:Object]),al(ch(0x1ba),void 0x0)],aV[ch(0x13c)],'_removeMakeup',null),ak([(0x0,ab['M'])(ch(0xed)),al('design:type',Function),al('design:paramtypes',[]),al(ch(0x1ba),void 0x0)],aV[ch(0x13c)],'destroy',null),aV;}()),as=a2(0xc35),at=a2(0x191),au=function(aV,aW,aX,aY){var cE=c7,aZ,b0=arguments['length'],b1=b0<0x3?aW:null===aY?aY=Object['getOwnPropertyDescriptor'](aW,aX):aY;if(cE(0xe7)==typeof Reflect&&cE(0xb8)==typeof Reflect['decorate'])b1=Reflect[cE(0x17f)](aV,aW,aX,aY);else{for(var b2=aV[cE(0xe0)]-0x1;b2>=0x0;b2--)(aZ=aV[b2])&&(b1=(b0<0x3?aZ(b1):b0>0x3?aZ(aW,aX,b1):aZ(aW,aX))||b1);}return b0>0x3&&b1&&Object[cE(0x20e)](aW,aX,b1),b1;},av=function(aV,aW){var cF=c7;if(cF(0xe7)==typeof Reflect&&cF(0xb8)==typeof Reflect[cF(0x21b)])return Reflect[cF(0x21b)](aV,aW);},aw=(function(){var cH=c7;function aV(aW,aX,aY,aZ,b0,b1,b2,b3){var cG=a4b;this[cG(0x12f)]=new a4[(cG(0x1a7))](),this[cG(0x120)]=aW,this[cG(0x1e0)]=aX,this[cG(0x1db)]=aZ,this[cG(0x115)]=aY,this[cG(0x20c)]=aY[cG(0x212)],this['_landmarks']=b0,this[cG(0xc6)]=b1,this[cG(0x157)]=b2,this['_angles']=b3;}return Object[cH(0x20e)](aV['prototype'],cH(0x24b),{'get':function(){var cI=cH;return this[cI(0xc0)];},'set':function(aW){var cJ=cH;this['_parentIntensity']=aW,this[cJ(0xca)]&&(this[cJ(0xca)][cJ(0x20d)]=this[cJ(0x20c)]*aW);},'enumerable':!0x1,'configurable':!0x0}),Object[cH(0x20e)](aV[cH(0x13c)],cH(0x1c2),{'set':function(aW){var cK=cH;this['_landmarks']=aW,this[cK(0xca)]&&this[cK(0x174)]();},'enumerable':!0x1,'configurable':!0x0}),Object[cH(0x20e)](aV[cH(0x13c)],cH(0x10a),{'set':function(aW){var cL=cH;this['_angles']=aW,this[cL(0xca)]&&this[cL(0x174)]();},'enumerable':!0x1,'configurable':!0x0}),aV[cH(0x13c)][cH(0x1d7)]=function(aW){var cM=cH;void 0x0===aW&&(aW=0x5);var aX=new a4['Graphics']();return aX[cM(0xd1)](0xff0000),aX[cM(0x21d)](0x0,0x0,aW),aX[cM(0x1e9)](),aX;},aV[cH(0x13c)][cH(0x19b)]=function(aW){var cN=cH;void 0x0===aW&&(aW=0x5);var aX=new a4[(cN(0x20a))]();return aX[cN(0xd1)](0xff),aX[cN(0x21d)](0x0,0x0,aW),aX[cN(0x1e9)](),aX;},aV[cH(0x13c)]['getDisplay']=function(){return this['_container'];},aV[cH(0x13c)]['load']=function(){var cO=cH,aW,aX=this;if(this[cO(0x1cc)]()){var aY=[];this[cO(0x1e0)][cO(0x172)](function(b2){var cP=cO,b3;b3=b2['indexOf'](cP(0xee))>-0x1?b2:''[cP(0x154)](aX['_key'],'|')[cP(0x154)](JSON[cP(0xea)](b2)[cP(0x121)]['image']);var b4=a6['iV'][b3]['textures'],b5=Object[cP(0x155)](b4)[cP(0xbb)](function(b6){return b4[b6];});aY=aY[cP(0x154)](b5);}),(aW=new a9['Kg'](aY))[cO(0xdc)]=(this['_config']['fps']||0x1e)/0x3c,aW['play']();}else{var aZ=this[cO(0x1e0)][0x0],b0=a4[cO(0xf5)][cO(0xc8)][aZ];aW=new a9['jy'](b0);}this['_config']['blend']&&(console[cO(0x1cb)](cO(0x1a0),this[cO(0x115)][cO(0xc2)]),aW[cO(0x1f7)]=this[cO(0x115)][cO(0xc2)]),this[cO(0x115)][cO(0x19a)],(aW[cO(0x206)]=this['_config']['width'],aW['height']=this[cO(0x115)][cO(0xe1)]);var b1=[0.5,0.5];this[cO(0x115)][cO(0x24f)]&&(b1=this[cO(0x115)][cO(0x24f)]),aW['anchor']['set'](b1[0x0],b1[0x1]),aW[cO(0x20d)]=this[cO(0x20c)]*this[cO(0x24b)],this[cO(0xca)]=aW,this['_container'][cO(0x170)](this['_sticker']),this[cO(0x12f)][cO(0x11a)](),this[cO(0x174)]();},aV['prototype'][cH(0x174)]=function(){var cQ=cH,aW=this[cQ(0x115)],aX=this[cQ(0x18d)],aY=at['Jp']['map'](function(b5){return aX[b5];}),aZ=(0x0,aa['Sp'])(aY[0x0],aY[0x1]),b0=aW[cQ(0x168)],b1=(aW['wxAnchorOffset'],aW['wxWeights']),b2=aZ/at['jw'],b3=b0['map'](function(b5){var b6=aX[b5];return{'x':b6['x'],'y':b6['y'],'z':0x0};});this[cQ(0x12f)][cQ(0x1aa)]['set'](b2);var b4={'x':b3[0x0]['x']*b1[0x0]+b3[0x1]['x']*b1[0x1]+b3[0x2]['x']*b1[0x2],'y':b3[0x0]['y']*b1[0x0]+b3[0x1]['y']*b1[0x1]+b3[0x2]['y']*b1[0x2]};this['_container'][cQ(0x108)]['x']=b4['x'],this[cQ(0x12f)]['position']['y']=b4['y'],this[cQ(0x1d0)]&&(this[cQ(0x12f)][cQ(0xe3)]['z']=this[cQ(0x1d0)][cQ(0x175)],this[cQ(0x12f)][cQ(0xe3)]['y']=this[cQ(0x1d0)][cQ(0x196)],this['_container'][cQ(0xe3)]['x']=this[cQ(0x1d0)][cQ(0xd6)]);},aV[cH(0x13c)][cH(0x1cc)]=function(){var cR=cH;if(this[cR(0x1e0)]instanceof Array&&this[cR(0x1e0)]['length']>0x1)return!0x0;try{return JSON['parse'](this[cR(0x1e0)][0x0]),!0x0;}catch(aW){return'json'===this['_src'][0x0][cR(0x181)]('.')[cR(0x11b)]();}},aV['prototype'][cH(0x123)]=function(){},aV[cH(0x13c)][cH(0x1bf)]=function(){},aV['prototype'][cH(0xf3)]=function(){},aV['prototype'][cH(0x236)]=function(){var cS=cH;this['_sticker'][cS(0x236)](),this['_container'][cS(0x236)](),this[cS(0xca)]=null,this['_target']=null;},au([(0x0,ab['M'])(cH(0x13b)),av(cH(0x160),Function),av(cH(0x1a6),[]),av(cH(0x1ba),Boolean)],aV['prototype'],'checkAnimated',null),au([(0x0,ab['M'])(cH(0x13b)),av('design:type',Function),av(cH(0x1a6),[]),av(cH(0x1ba),void 0x0)],aV[cH(0x13c)],cH(0x236),null),aV;}()),ax=(function(){var cV=c7;function aV(aW,aX,aY,aZ,b0,b1,b2){var cT=a4b;void 0x0===b2&&(b2=0x1);var b3=this;this[cT(0x22e)]=[],this['_visible']=!0x0,this[cT(0xc0)]=0x1,this[cT(0x1db)]=aY,this['_options']=b0,this[cT(0x18d)]=aZ;var b4=new as['LE']();b4[cT(0x1f4)](0x190,0xa,0x2710,!0x0),this[cT(0x1e6)]=b4,this['_stickers']=aX['map'](function(b5){var cU=cT,b6=new aw(b5[cU(0x12c)],b5[cU(0xf7)],b5,aY,aZ,b0,aW,b1);return b6[cU(0x24b)]=b3[cU(0x24b)],b6['load'](),b3[cU(0x1e6)][cU(0x170)](b6[cU(0x1ca)]()),b6;});}return Object['defineProperty'](aV[cV(0x13c)],cV(0x24b),{'get':function(){var cW=cV;return this[cW(0xc0)];},'set':function(aW){var cX=cV;this[cX(0x22e)][cX(0x172)](function(aX){var cY=cX;aX[cY(0x24b)]=aW;}),this[cX(0xc0)]=aW;},'enumerable':!0x1,'configurable':!0x0}),Object[cV(0x20e)](aV[cV(0x13c)],cV(0x1c2),{'set':function(aW){var cZ=cV;this['_stickers'][cZ(0x172)](function(aX){var d0=cZ;aX[d0(0x1c2)]=aW;});},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV['prototype'],cV(0x10a),{'set':function(aW){var d1=cV;this[d1(0x22e)]['forEach'](function(aX){var d2=d1;aX[d2(0x10a)]=aW;});},'enumerable':!0x1,'configurable':!0x0}),Object[cV(0x20e)](aV[cV(0x13c)],'visible',{'get':function(){var d3=cV;return this[d3(0x15b)];},'set':function(aW){var d4=cV;this[d4(0x1db)]&&aW!==this['_visible']&&(this[d4(0x15b)]=aW,aW?this['apply']():this[d4(0xf3)]());},'enumerable':!0x1,'configurable':!0x0}),aV[cV(0x13c)]['tick']=function(){var d5=cV;this[d5(0x22e)]['forEach'](function(aW){var d6=d5;return aW[d6(0x123)]();});},aV[cV(0x13c)][cV(0x1bf)]=function(){var d7=cV;this[d7(0x1db)][d7(0x170)](this['_camera']);},aV[cV(0x13c)][cV(0xf3)]=function(){var d8=cV;this[d8(0x1db)][d8(0x13a)](this['_camera']);},aV[cV(0x13c)][cV(0x236)]=function(){var d9=cV;this['remove'](),this[d9(0x22e)][d9(0x172)](function(aW){return aW['destroy']();}),this[d9(0x1e6)]['destroy'](),this['_stickers']=[];},aV;}()),ay=a2(0x1ade),az=a2(0x1adf),aA=(function(){var aV=function(aW,aX){var da=a4b;return aV=Object[da(0x1b6)]||{'__proto__':[]}instanceof Array&&function(aY,aZ){var db=da;aY[db(0x21f)]=aZ;}||function(aY,aZ){var dc=da;for(var b0 in aZ)Object['prototype']['hasOwnProperty'][dc(0x237)](aZ,b0)&&(aY[b0]=aZ[b0]);},aV(aW,aX);};return function(aW,aX){var dd=a4b;if(dd(0xb8)!=typeof aX&&null!==aX)throw new TypeError(dd(0x140)+String(aX)+dd(0x22c));function aY(){var de=dd;this[de(0x19e)]=aW;}aV(aW,aX),aW['prototype']=null===aX?Object['create'](aX):(aY['prototype']=aX[dd(0x13c)],new aY());};}()),aB=function(aV,aW,aX,aY){var df=c7,aZ,b0=arguments[df(0xe0)],b1=b0<0x3?aW:null===aY?aY=Object[df(0x23a)](aW,aX):aY;if(df(0xe7)==typeof Reflect&&'function'==typeof Reflect['decorate'])b1=Reflect[df(0x17f)](aV,aW,aX,aY);else{for(var b2=aV['length']-0x1;b2>=0x0;b2--)(aZ=aV[b2])&&(b1=(b0<0x3?aZ(b1):b0>0x3?aZ(aW,aX,b1):aZ(aW,aX))||b1);}return b0>0x3&&b1&&Object[df(0x20e)](aW,aX,b1),b1;},aC=function(aV,aW){var dg=c7;if('object'==typeof Reflect&&'function'==typeof Reflect[dg(0x21b)])return Reflect[dg(0x21b)](aV,aW);},aD=function(aV,aW,aX,aY){return new(aX||(aX=Promise))(function(aZ,b0){var dj=a4b;function b1(b4){try{b3(aY['next'](b4));}catch(b5){b0(b5);}}function b2(b4){var dh=a4b;try{b3(aY[dh(0xe9)](b4));}catch(b5){b0(b5);}}function b3(b4){var di=a4b,b5;b4[di(0x24e)]?aZ(b4[di(0x1c5)]):(b5=b4[di(0x1c5)],b5 instanceof aX?b5:new aX(function(b6){b6(b5);}))[di(0xe8)](b1,b2);}b3((aY=aY['apply'](aV,aW||[]))[dj(0x133)]());});},aE=function(aV,aW){var dk=c7,aX,aY,aZ,b0,b1={'label':0x0,'sent':function(){if(0x1&aZ[0x0])throw aZ[0x1];return aZ[0x1];},'trys':[],'ops':[]};return b0={'next':b2(0x0),'throw':b2(0x1),'return':b2(0x2)},'function'==typeof Symbol&&(b0[Symbol[dk(0x1f1)]]=function(){return this;}),b0;function b2(b3){return function(b4){return function(b5){var dl=a4b;if(aX)throw new TypeError(dl(0x1ee));for(;b1;)try{if(aX=0x1,aY&&(aZ=0x2&b5[0x0]?aY[dl(0x15f)]:b5[0x0]?aY['throw']||((aZ=aY['return'])&&aZ['call'](aY),0x0):aY[dl(0x133)])&&!(aZ=aZ[dl(0x237)](aY,b5[0x1]))['done'])return aZ;switch(aY=0x0,aZ&&(b5=[0x2&b5[0x0],aZ[dl(0x1c5)]]),b5[0x0]){case 0x0:case 0x1:aZ=b5;break;case 0x4:return b1[dl(0x186)]++,{'value':b5[0x1],'done':!0x1};case 0x5:b1[dl(0x186)]++,aY=b5[0x1],b5=[0x0];continue;case 0x7:b5=b1[dl(0x150)][dl(0x11b)](),b1['trys'][dl(0x11b)]();continue;default:if(!(aZ=b1[dl(0x198)],(aZ=aZ[dl(0xe0)]>0x0&&aZ[aZ[dl(0xe0)]-0x1])||0x6!==b5[0x0]&&0x2!==b5[0x0])){b1=0x0;continue;}if(0x3===b5[0x0]&&(!aZ||b5[0x1]>aZ[0x0]&&b5[0x1]<aZ[0x3])){b1[dl(0x186)]=b5[0x1];break;}if(0x6===b5[0x0]&&b1[dl(0x186)]<aZ[0x1]){b1[dl(0x186)]=aZ[0x1],aZ=b5;break;}if(aZ&&b1[dl(0x186)]<aZ[0x2]){b1[dl(0x186)]=aZ[0x2],b1[dl(0x150)][dl(0x11f)](b5);break;}aZ[0x2]&&b1[dl(0x150)]['pop'](),b1[dl(0x198)]['pop']();continue;}b5=aW[dl(0x237)](aV,b1);}catch(b6){b5=[0x6,b6],aY=0x0;}finally{aX=aZ=0x0;}if(0x5&b5[0x0])throw b5[0x1];return{'value':b5[0x0]?b5[0x1]:void 0x0,'done':!0x0};}([b3,b4]);};}},aF=function(aV){var dm=c7,aW=dm(0xb8)==typeof Symbol&&Symbol['iterator'],aX=aW&&aV[aW],aY=0x0;if(aX)return aX[dm(0x237)](aV);if(aV&&dm(0x110)==typeof aV['length'])return{'next':function(){var dn=dm;return aV&&aY>=aV[dn(0xe0)]&&(aV=void 0x0),{'value':aV&&aV[aY++],'done':!aV};}};throw new TypeError(aW?'Object\x20is\x20not\x20iterable.':'Symbol.iterator\x20is\x20not\x20defined.');},aG=(0x0,aj['jl'])('Effect'),aH=(function(){var dq=c7;function aV(aX,aY,aZ,b0,b1,b2,b3,b4,b5,b6,b7){var dp=a4b;this['_filters']=[],this[dp(0x166)]=!0x1,this[dp(0x15b)]=!0x0,this[dp(0x1dc)]=0x1,this['_filterIntensity']=0x1,this[dp(0xb3)]={},this[dp(0xd0)]=!0x0,this[dp(0x1db)]=aY,this[dp(0x105)]=aZ,this['_url']=aX,this[dp(0x157)]=aX,this['_options']=b1,this['mesh']=b2,this[dp(0x1bc)]=b4,this[dp(0x1c2)]=b3,b5&&(this[dp(0x10a)]=b5),void 0x0!==b6&&(this['intensity']=b6),this[dp(0x146)]=b0,this[dp(0x1e8)]=b7;}var aW;return Object[dq(0x20e)](aV[dq(0x13c)],dq(0xdf),{'get':function(){var dr=dq,aX=this[dr(0x115)];return!!aX&&((!aX[dr(0x118)]||!aX[dr(0x118)][dr(0xe0)])&&((!aX[dr(0x1d1)]||!aX[dr(0x1d1)]['length'])&&((!aX[dr(0x1dd)]||!aX[dr(0x1dd)][dr(0xe0)])&&(!aX[dr(0xe6)]||!Object[dr(0x155)](aX[dr(0xe6)])[dr(0x1d5)](function(aY){return!!aX['beautify'][aY];})))));},'enumerable':!0x1,'configurable':!0x0}),Object[dq(0x20e)](aV['prototype'],'filterActived',{'get':function(){var ds=dq;return this[ds(0xd0)];},'set':function(aX){var dt=dq;aX!==this[dt(0xd0)]&&(this['_filterTarget']&&(aX?this[dt(0x24c)](this[dt(0x1cf)]):this[dt(0x122)](this['_filterTarget'])),this[dt(0xd0)]=aX);},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV['prototype'],dq(0x1d3),{'get':function(){var du=dq;return this[du(0xf6)];},'enumerable':!0x1,'configurable':!0x0}),Object[dq(0x20e)](aV[dq(0x13c)],'app3d',{'get':function(){var dv=dq;return this[dv(0x146)];},'set':function(aX){this['_app3d']=aX;},'enumerable':!0x1,'configurable':!0x0}),Object[dq(0x20e)](aV['prototype'],dq(0x212),{'get':function(){var dw=dq;return this[dw(0x1dc)];},'set':function(aX){var dx=dq;aX>0x1&&(ay['Nd'][dx(0x116)]('error',{'message':a5['Z']['t'](dx(0x156)),'code':az['U'][dx(0x145)]}),aX=0x1),null!=aX&&(this[dx(0x127)]&&(this['_makeup'][dx(0x24b)]=aX),this[dx(0xca)]&&(this[dx(0xca)]['parentIntensity']=aX),this['_intensity']=aX);},'enumerable':!0x1,'configurable':!0x0}),Object[dq(0x20e)](aV[dq(0x13c)],dq(0xbf),{'get':function(){return this['_filterIntensity'];},'set':function(aX){var dy=dq;null!=aX&&(this[dy(0x1d6)]&&this['_filters'][dy(0x172)](function(aY){var dz=dy;aY[dz(0x1c6)]['parentIntensity']=aX;}),this[dy(0x119)]=aX);},'enumerable':!0x1,'configurable':!0x0}),Object[dq(0x20e)](aV[dq(0x13c)],dq(0x106),{'get':function(){var dA=dq;return this[dA(0x15b)];},'set':function(aX){var dB=dq;this[dB(0x166)]||(this['_visible']=aX,this[dB(0x127)]&&(this[dB(0x127)][dB(0x106)]=aX),this[dB(0xca)]&&(this[dB(0xca)][dB(0x106)]=aX));},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aV[dq(0x13c)],dq(0x241),{'set':function(aX){var dC=dq;this[dC(0x166)]||(this['_meshVertex']=aX,this[dC(0x127)]&&(this['_makeup'][dC(0x241)]=aX));},'enumerable':!0x1,'configurable':!0x0}),Object[dq(0x20e)](aV[dq(0x13c)],dq(0x1bc),{'set':function(aX){var dD=dq;this[dD(0x166)]||(this[dD(0xd9)]=aX,this['_makeup']&&(this[dD(0x127)]['lipmesh']=aX));},'enumerable':!0x1,'configurable':!0x0}),Object[dq(0x20e)](aV[dq(0x13c)],dq(0x1c2),{'get':function(){var dE=dq;return this[dE(0x143)];},'set':function(aX){var dF=dq;this[dF(0x166)]||(this['_faceLandMarks']=aX,this[dF(0x127)]&&(this['_makeup'][dF(0x1c2)]=aX),this[dF(0xca)]&&(this['_sticker'][dF(0x1c2)]=aX));},'enumerable':!0x1,'configurable':!0x0}),Object[dq(0x20e)](aV[dq(0x13c)],dq(0x10a),{'set':function(aX){var dG=dq;this['_angles']=aX,this[dG(0xca)]&&(this['_sticker'][dG(0x10a)]=aX);},'enumerable':!0x1,'configurable':!0x0}),aV[dq(0x13c)][dq(0x102)]=function(){return aD(this,void 0x0,Promise,function(){return aE(this,function(aX){var dH=a4b;switch(aX[dH(0x186)]){case 0x0:return aj['D4']['info'](dH(0xf4),this[dH(0xf6)]),[0x4,this[dH(0x1f2)]()];case 0x1:return[0x4,aX[dH(0x10f)]()[dH(0xcc)](this['_url'])];case 0x2:return aX['sent'](),[0x4,this[dH(0x251)]()];case 0x3:return[0x2,aX['sent']()];}});});},aV[dq(0x13c)][dq(0x1f0)]=function(){return aD(this,void 0x0,Promise,function(){var aX,aY,aZ,b0,b1,b2;return aE(this,function(b3){var dI=a4b;switch(b3['label']){case 0x0:return[0x4,this[dI(0x102)]()];case 0x1:return aX=b3[dI(0x10f)](),aY=aX[dI(0x1b7)],aZ=aX[dI(0x118)],b0=aX[dI(0xe6)],b1=aX[dI(0x1d1)],b2=aX[dI(0x1dd)],[0x4,this[dI(0x126)](aX)];case 0x2:return b3[dI(0x10f)](),this[dI(0x13e)](aY),[0x4,this['setMakeup'](aZ)];case 0x3:return b3[dI(0x10f)](),b1?[0x4,this[dI(0xce)](b1)]:[0x3,0x5];case 0x4:b3[dI(0x10f)](),b3[dI(0x186)]=0x5;case 0x5:return[0x4,this[dI(0xb6)](b2)];case 0x6:return b3['sent'](),this[dI(0x1dd)]=b2,[0x4,this[dI(0x1f2)]()];case 0x7:return b3['sent']()[dI(0x1fb)](this[dI(0xf6)]),[0x2,b0];}});});},aV[dq(0x13c)][dq(0x1f2)]=function(){return aD(this,void 0x0,void 0x0,function(){return aE(this,function(aX){var dJ=a4b;switch(aX[dJ(0x186)]){case 0x0:return this[dJ(0x179)]?[0x3,0x2]:(this[dJ(0x179)]=new a6['pF'](),[0x4,this[dJ(0x179)][dJ(0x1ad)]()]);case 0x1:aX['sent'](),aX[dJ(0x186)]=0x2;case 0x2:return[0x2,this[dJ(0x179)]];}});});},aV[dq(0x13c)][dq(0x251)]=function(){return aD(this,void 0x0,void 0x0,function(){var aX;return aE(this,function(aY){var dK=a4b;switch(aY['label']){case 0x0:return this[dK(0x115)]?[0x3,0x3]:[0x4,this[dK(0x1f2)]()];case 0x1:return[0x4,(aX=aY[dK(0x10f)]())[dK(0xcc)](this[dK(0xf6)])];case 0x2:aY[dK(0x10f)](),this['_config']=aX[dK(0xff)](dK(0xad),this['_key']),aY['label']=0x3;case 0x3:return[0x2,this[dK(0x115)]];}});});},aV[dq(0x13c)][dq(0x188)]=function(){return aD(this,void 0x0,Promise,function(){var aX,aY,aZ,b0,b1,b2,b3,b4;return aE(this,function(b5){var dL=a4b;switch(b5[dL(0x186)]){case 0x0:return[0x4,this[dL(0x251)]()];case 0x1:aX=b5[dL(0x10f)](),aY=aX[dL(0x118)],aZ=!0x1;try{for(b0=aF(aY),b1=b0[dL(0x133)]();!b1[dL(0x24e)];b1=b0[dL(0x133)]())if(dL(0x180)===(b2=b1[dL(0x1c5)])[dL(0x158)]||dL(0x191)===b2[dL(0x158)]){aZ=!0x0;break;}}catch(b6){b3={'error':b6};}finally{try{b1&&!b1[dL(0x24e)]&&(b4=b0[dL(0x15f)])&&b4[dL(0x237)](b0);}finally{if(b3)throw b3[dL(0x201)];}}return[0x2,aZ];}});});},aV[dq(0x13c)][dq(0x204)]=function(){return aD(this,void 0x0,Promise,function(){var aX,aY,aZ,b0;return aE(this,function(b1){var dM=a4b;switch(b1['label']){case 0x0:return[0x4,this['_getConfig']()];case 0x1:return aX=b1['sent'](),aY=aX[dM(0x118)],aZ=aX[dM(0x1d1)],b0=aX[dM(0x1dd)],[0x2,aY&&aY[dM(0xe0)]||aZ&&aZ[dM(0xe0)]||b0&&b0[dM(0xe0)]];}});});},aV[dq(0x13c)][dq(0x240)]=function(){return aD(this,void 0x0,Promise,function(){var aX,aY;return aE(this,function(aZ){var dN=a4b;switch(aZ[dN(0x186)]){case 0x0:return[0x4,this[dN(0x251)]()];case 0x1:return aX=aZ[dN(0x10f)](),[0x2,!(!(aY=aX[dN(0x1b7)])||!aY[dN(0xe0)])];}});});},aV[dq(0x13c)]['loadStickers']=function(aX){return aD(this,void 0x0,Promise,function(){var aY;return aE(this,function(aZ){var dO=a4b;return aX[dO(0xe0)]?((aY=new ax(this['_key'],aX,this[dO(0x105)],this['faceLandMarks'],this[dO(0xc6)],this[dO(0x1d0)]))[dO(0x24b)]=this[dO(0x212)],this[dO(0xca)]=aY,[0x2]):[0x2,Promise['resolve']()];});});},aV[dq(0x13c)][dq(0xb7)]=function(aX){return void 0x0===aX&&(aX=[]),aD(this,void 0x0,Promise,function(){return aE(this,function(aY){return[0x2];});});},aV[dq(0x13c)]['load3d']=function(aX){return aD(this,void 0x0,void 0x0,function(){return aE(this,function(aY){return[0x2];});});},aV['prototype'][dq(0xc7)]=function(){return aD(this,void 0x0,void 0x0,function(){return aE(this,function(aX){return[0x2];});});},aV[dq(0x13c)][dq(0xda)]=function(){},aV['prototype'][dq(0x231)]=function(){},aV[dq(0x13c)][dq(0xcf)]=function(){},aV[dq(0x13c)]['setMakeup']=function(aX){var dP=dq;return aX[dP(0xe0)]?(this[dP(0x127)]=new ar(this['_key'],aX,this[dP(0xc6)],this[dP(0x252)],this[dP(0x1c2)],this[dP(0xd9)],this[dP(0x1af)],this[dP(0x212)]),this[dP(0x127)][dP(0x1f0)]()):Promise[dP(0xc4)]();},aV['prototype']['apply']=function(aX){var dQ=dq;this[dQ(0x166)]||this[dQ(0x1da)]||(this[dQ(0xaf)]&&this['_applyFilter'](aX[dQ(0x18e)]),this[dQ(0x1d6)]['length']&&aX['filterCallback']&&aX[dQ(0xdd)](),this[dQ(0x1cf)]=aX['filterTarget'],this[dQ(0x127)]&&this['_makeup'][dQ(0x1bf)](this[dQ(0x1db)]),this[dQ(0xca)]&&this[dQ(0xca)][dQ(0x1bf)](),this[dQ(0xda)](),this[dQ(0x1da)]=!0x0);},aV[dq(0x13c)]['getUrl']=function(){var dR=dq;return this[dR(0xf6)];},aV[dq(0x13c)][dq(0xf3)]=function(){var dS=dq;aG[dS(0x243)](dS(0xab),this[dS(0xf6)],this['getUrl']()),this[dS(0x127)]&&this[dS(0x127)][dS(0xf3)](),this['_sticker']&&this[dS(0xca)]['remove'](),this[dS(0x231)](),this[dS(0x122)](this[dS(0x1cf)]),this[dS(0x1da)]=!0x1;},aV['prototype'][dq(0x123)]=function(){var dT=dq;this[dT(0xca)]&&this[dT(0xca)][dT(0x123)]();},aV[dq(0x13c)][dq(0x17c)]=function(){var dU=dq;this[dU(0x127)]&&this[dU(0x127)][dU(0x171)]();},aV[dq(0x13c)]['destroy']=function(){var dV=dq;this[dV(0x166)]=!0x0,this['remove'](),this[dV(0x127)]&&(this['_makeup'][dV(0x236)](),this['_makeup']=null),this[dV(0xca)]&&(this['_sticker'][dV(0x236)](),this[dV(0xca)]=null),this[dV(0xcf)](),this[dV(0x1d6)]=[],this[dV(0x205)]();},aV[dq(0x13c)][dq(0x13e)]=function(aX){var dW=dq,aY=this;this['_destroyed']||aX&&aX['length']&&aX[dW(0x172)](function(aZ){var dX=dW,b0=aY[dX(0x1e7)](aZ[dX(0xf7)],aZ[dX(0x212)],aY[dX(0xbf)]);aY[dX(0x1d6)][dX(0x11f)](b0);});},aV[dq(0x13c)][dq(0x24c)]=function(aX){var dY=dq;aX[dY(0x1de)]||(aX['filters']=[]),aX[dY(0x1de)]=this['_filters'][dY(0x154)](aX[dY(0x1de)]);},aV[dq(0x13c)]['_removeFilter']=function(aX){var dZ=dq;aX&&aX[dZ(0x1de)]&&aX[dZ(0x1de)][dZ(0xe0)]&&this[dZ(0x1d6)]['forEach'](function(aY){var e0=dZ,aZ=aX[e0(0x1de)][e0(0x12d)](function(b0){return b0===aY;});aZ>-0x1&&aX[e0(0x1de)]['splice'](aZ,0x1);});},aV[dq(0x13c)]['_createFilterSync']=function(aX,aY,aZ){var e1=dq,b0='default'===this[e1(0x157)]?aX:''[e1(0x154)](this[e1(0x157)],'|')[e1(0x154)](aX),b1=a4['utils'][e1(0xc8)][b0];return b1[e1(0x1ab)][e1(0x216)]=a4[e1(0x109)]['LINEAR'],b1[e1(0x1ab)][e1(0x1b1)]=a4[e1(0x138)]['OFF'],new a7['f'](e1(0x1a3),this[e1(0xc6)],{'uniforms':{'lut':b1,'intensity':aY,'parentIntensity':aZ}});},aV[dq(0x13c)]['clearTexture']=function(){var e2=dq;for(var aX in a4[e2(0xf5)][e2(0xc8)])if(aX[e2(0x239)](this['_key'])>-0x1){var aY=a4[e2(0xf5)][e2(0xc8)][aX];a4[e2(0x16e)][e2(0x1fb)](aY),aY['destroy'](!0x0);}for(var aX in this[e2(0xb3)])a6['iV'][aX]&&a6['iV'][aX]instanceof a4['Spritesheet']&&(a6['iV'][aX]['destroy'](),delete a6['iV'][aX]);},aV[dq(0x13c)]['_loadImages']=function(aX){var e3=dq,aY,aZ,b0=this,b1=(aX[e3(0x1b7)]||[])[e3(0x154)](aX['makeup']||[])[e3(0x154)](aX[e3(0x1d1)]||[]),b2=this[e3(0x179)][e3(0x182)](),b3={};this[e3(0xb3)]=b3;try{for(var b4=aF(b1),b5=b4[e3(0x133)]();!b5[e3(0x24e)];b5=b4[e3(0x133)]()){var b6=b5[e3(0x1c5)];if(b6['src']instanceof Array)b6[e3(0xf7)][e3(0x172)](function(b9,ba){var e4=e3,bb=b0['checkSpriteSheetJSON'](b9);if(bb){var bc=bb[e4(0x121)]['image'],bd=''[e4(0x154)](b0[e4(0x157)],'|')[e4(0x154)](bc);if(a4[e4(0xf5)][e4(0xc8)][bd])return;if(0x0===bc[e4(0x239)](e4(0x131))){var be=a4[e4(0x16e)]['from'](bc);a4[e4(0x16e)][e4(0x1ea)](be,bd);}else b2[e4(0xe5)](bd,bc);bb['meta'][e4(0x1a2)]='',b3[bd]=bb;}else{if(a4['utils'][e4(0xc8)][b9])return;if(b2[e4(0x192)][b9])return;b2[e4(0xe5)](b9,b9);}});else{var b7=''[e3(0x154)](this[e3(0x157)],'|')['concat'](b6[e3(0xf7)]);if(a4[e3(0xf5)]['TextureCache'][b7])continue;if(0x0===b6['src'][e3(0x239)](e3(0x131))){var b8=a4[e3(0x16e)][e3(0x17e)](b6[e3(0xf7)]);a4['Texture'][e3(0x1ea)](b8,b7);}else b2[e3(0xe5)](b7,b6[e3(0xf7)]);}}}catch(b9){aY={'error':b9};}finally{try{b5&&!b5[e3(0x24e)]&&(aZ=b4['return'])&&aZ[e3(0x237)](b4);}finally{if(aY)throw aY[e3(0x201)];}}return new Promise(function(ba){var e5=e3;b2[e5(0x1f0)](function(bb,bc){return aD(b0,void 0x0,void 0x0,function(){var bd,be,bf,bg,bh;return aE(this,function(bi){var e6=a4b;switch(bi[e6(0x186)]){case 0x0:for(bf in(bd=function(bj){var bk;return aE(this,function(bl){var e7=a4b;switch(bl[e7(0x186)]){case 0x0:return a6['iV'][bj]?[0x2,'continue']:b3[bj]?(bk=new a4['Spritesheet'](a4[e7(0xf5)][e7(0xc8)][bj],b3[bj]),[0x4,new Promise(function(bm){var e8=e7;bk[e8(0xea)](function(){a6['iV'][bj]=bk,bm();});})]):[0x3,0x2];case 0x1:bl['sent'](),bl[e7(0x186)]=0x2;case 0x2:return[0x2];}});},be=[],a4['utils'][e6(0xc8)]))be[e6(0x11f)](bf);bg=0x0,bi['label']=0x1;case 0x1:return bg<be['length']?(bh=be[bg],[0x5,bd(bh)]):[0x3,0x4];case 0x2:bi[e6(0x10f)](),bi[e6(0x186)]=0x3;case 0x3:return bg++,[0x3,0x1];case 0x4:for(bh in bc)a6['iV'][bh]||b3[bh]||(a6['iV'][bh]=bc[bh]);return ba(),[0x2];}});});});});},aV[dq(0x13c)][dq(0x229)]=function(aX){var e9=dq;try{return JSON[e9(0xea)](aX);}catch(aY){return null;}},aB([(0x0,ab['M'])('Effect'),aC(dq(0x160),Function),aC(dq(0x1a6),[]),aC('design:returntype',void 0x0)],aV[dq(0x13c)],'remove',null),aB([(0x0,ab['M'])(dq(0xfa)),aC('design:type',Function),aC(dq(0x1a6),[]),aC(dq(0x1ba),void 0x0)],aV[dq(0x13c)],dq(0x236),null),aB([(0x0,ab['M'])('Effect'),aC(dq(0x160),Function),aC(dq(0x1a6),[dq(0xb8)==typeof(aW=void 0x0!==a4['Container']&&a4[dq(0x1a7)])?aW:Object]),aC(dq(0x1ba),void 0x0)],aV[dq(0x13c)],dq(0x122),null),aV;}()),aI=function(aV){var eb=c7;function aW(aX,aY,aZ,b0,b1,b2,b3,b4){var ea=a4b,b5=aV[ea(0x237)](this,ea(0xc1),aY,aZ,b0,b1,b2,b3,b4)||this;return b5['_json']=aX,b5[ea(0x146)]=b0,b5;}return aA(aW,aV),aW[eb(0x13c)]['load']=function(){return aD(this,void 0x0,Promise,function(){var aX,aY,aZ,b0,b1,b2;return aE(this,function(b3){var ec=a4b;switch(b3[ec(0x186)]){case 0x0:return aX=this[ec(0x139)],aY=aX[ec(0x1b7)],aZ=aX[ec(0x118)],b0=aX['beautify'],b1=aX[ec(0x1d1)],b2=aX[ec(0x1dd)],[0x4,this[ec(0x126)](aX)];case 0x1:return b3[ec(0x10f)](),this['loadFilter'](aY),[0x4,this['setMakeup'](aZ)];case 0x2:return b3[ec(0x10f)](),b1?[0x4,this[ec(0xce)](b1)]:[0x3,0x4];case 0x3:b3[ec(0x10f)](),b3[ec(0x186)]=0x4;case 0x4:return b2?this[ec(0x146)]?[0x3,0x6]:[0x4,this[ec(0xc7)]()]:[0x3,0x8];case 0x5:b3['sent'](),b3['label']=0x6;case 0x6:return[0x4,this[ec(0xb7)](b2)];case 0x7:b3[ec(0x10f)](),b3['label']=0x8;case 0x8:return[0x2,b0];}});});},aW['prototype']['loadImage']=function(){return aD(this,void 0x0,void 0x0,function(){return aE(this,function(aX){return[0x2];});});},aW[eb(0x13c)][eb(0x126)]=function(aX){var ed=eb,aY,aZ,b0=this,b1=new a4[(ed(0x249))](),b2=(aX[ed(0x1b7)]||[])[ed(0x154)](aX[ed(0x118)]||[])[ed(0x154)](aX['sticker']||[]),b3={},b4=function(b7){var ee=ed;if(b7[ee(0xf7)]instanceof Array)b7[ee(0xf7)][ee(0x172)](function(b9,ba){var ef=ee,bb=b0[ef(0x229)](b9);if(bb){var bc=bb['meta']['image'],bd=''[ef(0x154)](b0[ef(0x157)],'|')[ef(0x154)](bc);if(a4['utils'][ef(0xc8)][bd])return;if(b7['objectSrc']&&b7[ef(0x219)][ef(0xe0)]){var be=a4[ef(0x16e)]['from'](b7[ef(0x219)][ba]);a4[ef(0x16e)]['addToCache'](be,bd);}else{if(0x0===bc[ef(0x239)](ef(0x131)))be=a4[ef(0x16e)][ef(0x17e)](bc),a4[ef(0x16e)][ef(0x1ea)](be,bd);else b1[ef(0xe5)](bd,bc);}bb[ef(0x121)]['image']='',b3[bd]=bb;}else{if(a4[ef(0xf5)][ef(0xc8)][b9])return;if(b1[ef(0x192)][b9])return;if(b7[ef(0x219)]&&b7[ef(0x219)]['length'])be=a4[ef(0x16e)][ef(0x17e)](b7['objectSrc'][ba]),a4[ef(0x16e)][ef(0x1ea)](be,b9);else b1[ef(0xe5)](b9,b9);}});else{if(a4[ee(0xf5)][ee(0xc8)][b7[ee(0xf7)]])return ee(0x245);if(b1[ee(0x192)][b7[ee(0xf7)]])return console[ee(0x1cb)](ee(0x18f),b7[ee(0xf7)]),ee(0x245);if(b7['objectSrc']){console[ee(0x1cb)]('use\x20imagebitmap\x20to\x20create\x20texture');var b8=a4['Texture']['from'](b7[ee(0x219)]);a4[ee(0x16e)]['addToCache'](b8,b7['src']);}else{if(0x0===b7[ee(0xf7)]['indexOf'](ee(0x131)))b8=a4[ee(0x16e)]['from'](b7[ee(0xf7)]),(console[ee(0x1cb)](ee(0x185),b8),a4['Texture'][ee(0x1ea)](b8,b7[ee(0xf7)]));else b1[ee(0xe5)](b7[ee(0xf7)]);}}};try{for(var b5=aF(b2),b6=b5[ed(0x133)]();!b6['done'];b6=b5[ed(0x133)]()){b4(b6[ed(0x1c5)]);}}catch(b7){aY={'error':b7};}finally{try{b6&&!b6[ed(0x24e)]&&(aZ=b5['return'])&&aZ[ed(0x237)](b5);}finally{if(aY)throw aY[ed(0x201)];}}return new Promise(function(b8){return aD(b0,void 0x0,void 0x0,function(){var b9=this;return aE(this,function(ba){return b1['load'](function(bb,bc){return aD(b9,void 0x0,void 0x0,function(){var bd,be,bf,bg,bh;return aE(this,function(bi){var eg=a4b;switch(bi[eg(0x186)]){case 0x0:for(bf in(bd=function(bj){var bk;return aE(this,function(bl){var eh=a4b;switch(bl[eh(0x186)]){case 0x0:return a6['iV'][bj]?[0x2,eh(0x245)]:b3[bj]?(bk=new a4[(eh(0x21e))](a4[eh(0xf5)]['TextureCache'][bj],b3[bj]),[0x4,new Promise(function(bm){bk['parse'](function(){a6['iV'][bj]=bk,bm();});})]):[0x3,0x2];case 0x1:bl[eh(0x10f)](),bl[eh(0x186)]=0x2;case 0x2:return[0x2];}});},be=[],a4[eg(0xf5)][eg(0xc8)]))be[eg(0x11f)](bf);bg=0x0,bi[eg(0x186)]=0x1;case 0x1:return bg<be['length']?(bh=be[bg],[0x5,bd(bh)]):[0x3,0x4];case 0x2:bi[eg(0x10f)](),bi[eg(0x186)]=0x3;case 0x3:return bg++,[0x3,0x1];case 0x4:for(bh in bc)a6['iV'][bh]||b3[bh]||(a6['iV'][bh]=bc[bh]);return b8(),[0x2];}});});}),[0x2];});});});},aW[eb(0x13c)]['loadSticker3d']=function(aX){return aD(this,void 0x0,Promise,function(){return aE(this,function(aY){return[0x2];});});},aW;}(aH),aJ=a2(0x1424),aK=a2(0x18a5),aL=a2(0x435),aM=(function(){var aV=function(aW,aX){var ei=a4b;return aV=Object[ei(0x1b6)]||{'__proto__':[]}instanceof Array&&function(aY,aZ){aY['__proto__']=aZ;}||function(aY,aZ){var ej=ei;for(var b0 in aZ)Object[ej(0x13c)][ej(0x13f)][ej(0x237)](aZ,b0)&&(aY[b0]=aZ[b0]);},aV(aW,aX);};return function(aW,aX){var ek=a4b;if(ek(0xb8)!=typeof aX&&null!==aX)throw new TypeError('Class\x20extends\x20value\x20'+String(aX)+ek(0x22c));function aY(){var el=ek;this[el(0x19e)]=aW;}aV(aW,aX),aW[ek(0x13c)]=null===aX?Object[ek(0x1e1)](aX):(aY[ek(0x13c)]=aX['prototype'],new aY());};}()),aN=function(aV,aW,aX,aY){var em=c7,aZ,b0=arguments[em(0xe0)],b1=b0<0x3?aW:null===aY?aY=Object[em(0x23a)](aW,aX):aY;if(em(0xe7)==typeof Reflect&&em(0xb8)==typeof Reflect[em(0x17f)])b1=Reflect[em(0x17f)](aV,aW,aX,aY);else{for(var b2=aV['length']-0x1;b2>=0x0;b2--)(aZ=aV[b2])&&(b1=(b0<0x3?aZ(b1):b0>0x3?aZ(aW,aX,b1):aZ(aW,aX))||b1);}return b0>0x3&&b1&&Object['defineProperty'](aW,aX,b1),b1;},aO=function(aV,aW){var en=c7;if('object'==typeof Reflect&&'function'==typeof Reflect[en(0x21b)])return Reflect['metadata'](aV,aW);},aP=function(aV,aW,aX,aY){return new(aX||(aX=Promise))(function(aZ,b0){var er=a4b;function b1(b4){var eo=a4b;try{b3(aY[eo(0x133)](b4));}catch(b5){b0(b5);}}function b2(b4){var ep=a4b;try{b3(aY[ep(0xe9)](b4));}catch(b5){b0(b5);}}function b3(b4){var eq=a4b,b5;b4[eq(0x24e)]?aZ(b4[eq(0x1c5)]):(b5=b4[eq(0x1c5)],b5 instanceof aX?b5:new aX(function(b6){b6(b5);}))['then'](b1,b2);}b3((aY=aY[er(0x1bf)](aV,aW||[]))[er(0x133)]());});},aQ=function(aV,aW){var es=c7,aX,aY,aZ,b0,b1={'label':0x0,'sent':function(){if(0x1&aZ[0x0])throw aZ[0x1];return aZ[0x1];},'trys':[],'ops':[]};return b0={'next':b2(0x0),'throw':b2(0x1),'return':b2(0x2)},es(0xb8)==typeof Symbol&&(b0[Symbol['iterator']]=function(){return this;}),b0;function b2(b3){return function(b4){return function(b5){var et=a4b;if(aX)throw new TypeError(et(0x1ee));for(;b1;)try{if(aX=0x1,aY&&(aZ=0x2&b5[0x0]?aY[et(0x15f)]:b5[0x0]?aY[et(0xe9)]||((aZ=aY['return'])&&aZ[et(0x237)](aY),0x0):aY['next'])&&!(aZ=aZ[et(0x237)](aY,b5[0x1]))['done'])return aZ;switch(aY=0x0,aZ&&(b5=[0x2&b5[0x0],aZ[et(0x1c5)]]),b5[0x0]){case 0x0:case 0x1:aZ=b5;break;case 0x4:return b1[et(0x186)]++,{'value':b5[0x1],'done':!0x1};case 0x5:b1[et(0x186)]++,aY=b5[0x1],b5=[0x0];continue;case 0x7:b5=b1[et(0x150)]['pop'](),b1[et(0x198)][et(0x11b)]();continue;default:if(!(aZ=b1['trys'],(aZ=aZ[et(0xe0)]>0x0&&aZ[aZ[et(0xe0)]-0x1])||0x6!==b5[0x0]&&0x2!==b5[0x0])){b1=0x0;continue;}if(0x3===b5[0x0]&&(!aZ||b5[0x1]>aZ[0x0]&&b5[0x1]<aZ[0x3])){b1[et(0x186)]=b5[0x1];break;}if(0x6===b5[0x0]&&b1[et(0x186)]<aZ[0x1]){b1[et(0x186)]=aZ[0x1],aZ=b5;break;}if(aZ&&b1[et(0x186)]<aZ[0x2]){b1[et(0x186)]=aZ[0x2],b1[et(0x150)][et(0x11f)](b5);break;}aZ[0x2]&&b1[et(0x150)][et(0x11b)](),b1['trys'][et(0x11b)]();continue;}b5=aW[et(0x237)](aV,b1);}catch(b6){b5=[0x6,b6],aY=0x0;}finally{aX=aZ=0x0;}if(0x5&b5[0x0])throw b5[0x1];return{'value':b5[0x0]?b5[0x1]:void 0x0,'done':!0x0};}([b3,b4]);};}},aR=function(aV){var eu=c7,aW=eu(0xb8)==typeof Symbol&&Symbol[eu(0x1f1)],aX=aW&&aV[aW],aY=0x0;if(aX)return aX['call'](aV);if(aV&&eu(0x110)==typeof aV[eu(0xe0)])return{'next':function(){var ev=eu;return aV&&aY>=aV[ev(0xe0)]&&(aV=void 0x0),{'value':aV&&aV[aY++],'done':!aV};}};throw new TypeError(aW?eu(0x1b9):eu(0x187));},aS=(0x0,aj['jl'])('Renderer'),aT=function(){},aU=function(aV){var ex=c7;function aW(aX){var ew=a4b,aY=aV[ew(0x237)](this,aX)||this;return aY['_setup']=!0x1,aY[ew(0x1a5)]=[],aY[ew(0x242)]=!0x0,aY[ew(0x166)]=!0x1,aY[ew(0x20f)]=!0x1,aY[ew(0xbc)]=0x0,console[ew(0x1cb)](ew(0xd3),location),aY['_debug']=!0x1,aX['output']?aY[ew(0x1e8)]=new wx[(ew(0x1c8))][(ew(0x11d))](aX[ew(0xb0)]):aY[ew(0x1e8)]=new wx['window'][(ew(0x11d))](wx[ew(0x199)]({'type':ew(0x208),'width':aX['width'],'height':aX[ew(0xe1)]})),aY['_stage']=new a4[(ew(0x1a7))](),aY['_options']=aX,aY[ew(0x176)]=new a4['Renderer']({'view':aY[ew(0x1e8)],'width':aX[ew(0x206)],'height':aX[ew(0xe1)],'preserveDrawingBuffer':!0x1,'antialias':!0x1}),aY[ew(0x125)](aX),aY[ew(0x10b)](),aY[ew(0xeb)](),aY;}return aM(aW,aV),Object[ex(0x20e)](aW['prototype'],'mirror',{'set':function(aX){},'enumerable':!0x1,'configurable':!0x0}),Object[ex(0x20e)](aW['prototype'],ex(0x167),{'set':function(aX){var ey=ex;if(aX){this['_backgroundVR']=new a4[(ey(0x17a))](a4['Texture'][ey(0x17e)](aX));var aY=this['_backgroundVR'],aZ=aY[ey(0x206)],b0=aY[ey(0xe1)],b1=Math[ey(0x1fe)](this[ey(0xc6)][ey(0x206)]/aZ,this[ey(0xc6)]['height']/b0);this[ey(0x14b)][ey(0x206)]*=b1,this[ey(0x14b)][ey(0xe1)]*=b1;}else this[ey(0x14b)]=null;},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aW['prototype'],ex(0x10e),{'set':function(aX){var ez=ex,aY=aX[ez(0x206)],aZ=aX[ez(0xe1)];this['_renderer']&&this[ez(0x176)][ez(0x210)](aY,aZ),this['_baseSprite']&&(this['_baseSprite'][ez(0x206)]=aY,this[ez(0x15d)][ez(0xe1)]=aZ,this[ez(0x15d)][ez(0x235)]['update']()),this[ez(0xc6)]=aX;},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aW['prototype'],'app3d',{'get':function(){return this['_app3d'];},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aW[ex(0x13c)],ex(0x16d),{'get':function(){var eA=ex;return this[eA(0x159)];},'enumerable':!0x1,'configurable':!0x0}),aW['prototype'][ex(0x125)]=function(aX){var eB=ex;this[eB(0xbe)]=new a4['Container'](),this[eB(0x1f5)]=new a4[(eB(0x1a7))](),this[eB(0x200)]=new a4[(eB(0x1a7))](),this[eB(0x135)]=a4[eB(0x197)][eB(0x1e1)]({'width':aX['width'],'height':aX[eB(0xe1)]}),this[eB(0x226)]=a4['RenderTexture'][eB(0x1e1)]({'width':aX['width'],'height':aX[eB(0xe1)]}),this[eB(0x1f5)][eB(0x170)](new a4[(eB(0x17a))](this[eB(0x135)])),aT[eB(0x1ab)]=this['_baseRenderTexture'],this['_finalContainer']['addChild'](new a4[(eB(0x17a))](this['_makeupRenderTexture'])),this[eB(0x218)][eB(0x170)](this[eB(0x200)]),this[eB(0x1db)]=this['_finalContainer'];},aW['prototype'][ex(0x195)]=function(){return aP(this,void 0x0,Promise,function(){var aX;return aQ(this,function(aY){var eC=a4b;switch(aY[eC(0x186)]){case 0x0:return[0x4,(aX=new aK['e']({}))[eC(0x1ad)]()];case 0x1:return aY[eC(0x10f)](),this['_options']['plugin3d']&&this[eC(0xc6)][eC(0x244)](aH,aI,aX),[0x2];}});});},aW['prototype']['setup']=function(){return aP(this,void 0x0,void 0x0,function(){return aQ(this,function(aX){var eD=a4b;switch(aX[eD(0x186)]){case 0x0:return this[eD(0x17d)]?[0x2]:(this[eD(0x115)]=new a8['M'](),[0x4,this[eD(0x115)]['load']()]);case 0x1:return aX[eD(0x10f)](),this[eD(0x17d)]=!0x0,[0x2];}});});},Object[ex(0x20e)](aW[ex(0x13c)],ex(0x1c0),{'get':function(){var eE=ex;return this[eE(0x252)];},'set':function(aX){this['_meshVertex']=aX;},'enumerable':!0x1,'configurable':!0x0}),Object['defineProperty'](aW[ex(0x13c)],ex(0x1b3),{'get':function(){var eF=ex;return this['_mirrorFilter']||(this[eF(0x137)]=new a7['f']('mirror',{'width':ac['t'][eF(0x247)][eF(0x10e)][eF(0x206)],'height':ac['t'][eF(0x247)]['options']['height']})),this[eF(0x137)];},'enumerable':!0x1,'configurable':!0x0}),aW[ex(0x13c)]['switchMode']=function(aX){var eG=ex;aX!==this[eG(0x232)]&&('Sticker'===aX&&this[eG(0x184)](null),this[eG(0x232)]=aX);},aW[ex(0x13c)]['logTime']=function(aX){var eH=ex,aY=+new Date();console[eH(0x1cb)](''['concat'](aX,'\x20time:')[eH(0x154)](aY-this[eH(0x22b)])),this[eH(0x22b)]=aY;},aW[ex(0x13c)]['tick']=function(aX){var eI=ex,aY=aX[eI(0x104)],aZ=aX[eI(0x1c0)],b0=aX[eI(0xb5)],b1=aX[eI(0x1a2)],b2=aX[eI(0x10a)],b3=(aX[eI(0xc9)],aX[eI(0xd2)],aX[eI(0x17b)],aX[eI(0x152)],aX[eI(0xfe)]);if(!this[eI(0x166)]){if(this[eI(0x176)]){if(this['_stage']){if(this[eI(0x17d)]){this[eI(0x22b)]=+new Date();try{this['_renderer'][eI(0x207)]();}catch(ba){}if(this['_isVR'])try{this[eI(0x176)]['render'](this[eI(0x14b)]);}catch(bb){}else{if(b3){if(this[eI(0x15d)])this['_baseSprite']['texture']['update']();else b8=a4[eI(0x16e)][eI(0x17e)](b1),(this[eI(0x15d)]=new a4[(eI(0x17a))](b8),this['_baseSprite'][eI(0x24f)]['set'](0.5,0.5),this['_baseSprite']['position']['set'](this[eI(0xc6)][eI(0x206)]/0x2,this[eI(0xc6)][eI(0xe1)]/0x2),this[eI(0x15d)]['scale'][eI(0x16c)](0x1,-0x1),this[eI(0xbe)][eI(0x170)](this['_baseSprite']));}else{var b4=b1,b5=b4[eI(0x206)],b6=b4[eI(0xe1)],b7=b4['data'];if(this[eI(0x15d)])this[eI(0x15d)][eI(0x235)][eI(0x1ab)][eI(0xb1)][eI(0x1e4)]=new Uint8Array(b7),this[eI(0x15d)][eI(0x235)][eI(0x128)]();else{var b8=a4[eI(0x16e)]['fromBuffer'](new Uint8Array(b7),b5,b6);this[eI(0x15d)]=new a4['Sprite'](b8),this['_baseSprite']['anchor'][eI(0x16c)](0.5,0.5),this[eI(0x15d)][eI(0x108)]['set'](this[eI(0xc6)][eI(0x206)]/0x2,this[eI(0xc6)]['height']/0x2);var b9=Math[eI(0x1fe)](this[eI(0xc6)][eI(0x206)]/b5,this[eI(0xc6)][eI(0xe1)]/b6);this[eI(0x15d)][eI(0x1aa)]['set'](b9),this[eI(0xbe)][eI(0x170)](this[eI(0x15d)]);}}if(!aY||!aY[eI(0xe0)])return this[eI(0x1a5)][eI(0x172)](function(bc){var eJ=eI;return bc[eJ(0x106)]=!0x1;}),this[eI(0x1a5)][eI(0x172)](function(bc){var eK=eI;bc[eK(0x17c)]();}),new Date(),(this[eI(0x176)]['render'](this[eI(0xbe)],{'renderTexture':this[eI(0x135)]}),this[eI(0x176)][eI(0x234)](this[eI(0x1f5)],{'renderTexture':this[eI(0x226)]}),this[eI(0x176)][eI(0x234)](this[eI(0x218)]),void(this[eI(0x250)]=!0x1));this['detected']=!0x0,this[eI(0x228)]=aY,this[eI(0x1d0)]=b2,this[eI(0x1c0)]=aZ,this['lipVertex']=b0,this['_effects'][eI(0x172)](function(bc){var eL=eI;bc[eL(0x106)]||(bc[eL(0x106)]=!0x0),bc[eL(0x1bc)]=b0,bc[eL(0x241)]=aZ,bc[eL(0x10a)]=b2,bc['faceLandMarks']=aY,bc['tick']();}),this[eI(0x176)][eI(0x234)](this[eI(0xbe)],{'renderTexture':this[eI(0x135)]}),this[eI(0x176)][eI(0x234)](this[eI(0x1f5)],{'renderTexture':this[eI(0x226)]}),this[eI(0x176)][eI(0x234)](this[eI(0x218)]),'Sticker'===this[eI(0x232)]&&this[eI(0x146)]&&this['_app3d'][eI(0x164)]&&(this[eI(0x146)]['facelandmarks']=aY,this[eI(0x146)]['angles']=b2,this[eI(0x146)][eI(0x234)]());}}else aj['b_']['info']('_renderer\x20waiting\x20for\x20setup');}else aj['b_'][eI(0x243)](eI(0x1ce));}else aj['b_'][eI(0x243)](eI(0x209));}},aW[ex(0x13c)][ex(0x23d)]=function(){var eM=ex;return this[eM(0x15d)][eM(0x235)];},aW[ex(0x13c)][ex(0x248)]=function(){var eN=ex;this[eN(0xd2)]&&(this[eN(0xd2)][eN(0xf3)](),this['background']=null);},aW[ex(0x13c)]['applyBackground']=function(aX){var eO=ex;this[eO(0xd2)];},aW[ex(0x13c)][ex(0x225)]=function(aX){var eP=ex;if(!this[eP(0x165)]){for(var aY=[],aZ=0x0;0x2*aZ<aX[eP(0xe0)];aZ++){var b0=this[eP(0x1d7)](0x2);aY[eP(0x11f)](b0),this['_baseContainer'][eP(0x170)](b0);}this[eP(0x165)]=aY;}for(aZ=0x0;0x2*aZ<aX[eP(0xe0)];aZ++)this['points'][aZ]['x']=aX[0x2*aZ],this[eP(0x165)][aZ]['y']=aX[0x2*aZ+0x1];},aW['prototype'][ex(0x1eb)]=function(aX){var eQ=ex;if(console[eQ(0x1cb)](eQ(0x1ff),aX[eQ(0xe0)]),!this['points']){for(var aY=[],aZ=0x0;aZ<aX['length'];aZ++){var b0=this[eQ(0x1d7)](0x2);aY[eQ(0x11f)](b0),this['_baseContainer'][eQ(0x170)](b0);}this[eQ(0x165)]=aY;}for(aZ=0x0;aZ<aX[eQ(0xe0)];aZ++)this[eQ(0x165)][aZ]['x']=0x21c*aX[aZ]['x'],this[eQ(0x165)][aZ]['y']=0x21c*aX[aZ]['y'];},aW['prototype']['getPixels']=function(){var eR=ex,aX=this[eR(0xc6)],aY=aX['width'],aZ=aX[eR(0xe1)],b0=new Uint8Array(aY*aZ*0x4),b1=this[eR(0x176)]['gl'];return b1[eR(0xd5)](0x0,0x0,aY,aZ,b1['RGBA'],b1[eR(0x173)],b0),{'data':b0,'width':aY,'height':aZ};},aW[ex(0x13c)][ex(0x12b)]=function(aX,aY,aZ,b0){return aP(this,void 0x0,Promise,function(){var b1,b2=this;return aQ(this,function(b3){var eS=a4b;return b1=!0x0,this[eS(0x14a)]&&this[eS(0x14a)]['length']===aX[eS(0xe0)]&&aX[eS(0x100)](function(b4){return b2['latestEffectUrls']['indexOf'](b4)>-0x1;})&&(b1=!0x1,this[eS(0x18c)]&&(clearTimeout(this[eS(0x18c)]),this['debounceTimer']=null)),this['latestEffectUrls']=aX,[0x2,new Promise(function(b4,b5){var eT=eS;b1?(b2['debounceTimer']&&(clearTimeout(b2['debounceTimer']),b2[eT(0x18c)]=null),b2[eT(0x18c)]=setTimeout(function(){var eU=eT;return b2[eU(0x101)](aX,aY,aZ,b0)[eU(0xe8)](function(b6){var eV=eU;clearTimeout(b2['debounceTimer']),b2[eV(0x18c)]=null,b4(b6);});},0x64)):b2[eT(0x101)](aX,aY,aZ)['then'](function(b6){b4(b6);});})];});});},aW['prototype'][ex(0x101)]=function(aX,aY,aZ,b0){return aP(this,void 0x0,Promise,function(){var b1,b2=this;return aQ(this,function(b3){var eW=a4b;return aj['b_'][eW(0x178)]('waiting\x20for\x20AI\x20init...'),this[eW(0x252)]?(aj['b_'][eW(0xf8)](eW(0x1ed)),b1=eW(0x169)+Math['floor'](0x5f5e100*Math['random']()),[0x2,new Promise(function(b4,b5){return aP(b2,void 0x0,void 0x0,function(){var b6,b7,b8,b9,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk=this;return aQ(this,function(bl){var eX=a4b;switch(bl[eX(0x186)]){case 0x0:for(b6=[][eX(0x154)](this['_effects']),b7=[],b8=[],b9=[],ba=[],bb=[],bc=[],aX[eX(0xe0)]||(this['filterActivedEffect']=null),bd=function(bm){var eY=eX,bn=b6[eY(0x12d)](function(bq){var eZ=eY;return bq[eZ(0x1d3)]===aX[bm];}),bo=void 0x0;if(bn>-0x1)b7[eY(0x11f)](b6[bn]),bo=b6[bn],b8[eY(0x11f)](aY[bm]),b9['push'](aZ[bm]),b6[eY(0x19f)](bn,0x1);else{var bp=aX[bm];(bo=new aH(bp,be[eY(0x1f5)],be[eY(0x200)],be[eY(0x146)],be['_options'],be[eY(0x252)],be[eY(0x228)],be[eY(0xb5)],be[eY(0x1d0)],aY[bm],be[eY(0x1e8)]))[eY(0xbf)]=aZ[bm],bo[eY(0x1af)]=be[eY(0x176)],ba['push'](bo),bc[eY(0x11f)](bo[eY(0x102)]());}},be=this,bf=0x0;bf<aX[eX(0xe0)];bf++)bd(bf);return[0x4,Promise[eX(0x117)](bc)];case 0x1:if(bg=bl[eX(0x10f)](),aj['b_']['time'](eX(0x23b)),this[eX(0xdb)])return[0x3,0x5];bh=0x0,bl[eX(0x186)]=0x2;case 0x2:return bh<bg['length']?(bi=bg[bh],(bj=bi['sticker3d'])&&bj[eX(0xe0)]?b0&&!b0()?[0x2]:(console['log'](eX(0x23b)),[0x4,this[eX(0x195)]()]):[0x3,0x4]):[0x3,0x5];case 0x3:bl[eX(0x10f)](),this['lib3dLoaded']=!0x0,bl['label']=0x4;case 0x4:return bh++,[0x3,0x2];case 0x5:return aj['b_'][eX(0xf8)](eX(0x23b)),ba['forEach'](function(bm){var f0=eX;bb[f0(0x11f)](bm['load']()[f0(0xe8)](function(){var f1=f0;return bk[f1(0x146)]||(bk['_app3d']=bm[f1(0x217)]),bm;})[f0(0x112)](function(bn){var f2=f0;aS[f2(0x1b0)](f2(0x10d),bn);}));}),aj['b_'][eX(0x178)]('renderer\x20parse\x20effect'),Promise[eX(0x117)](bb)[eX(0xe8)](function(bm){var f3=eX;aj['b_']['timeEnd'](f3(0xc3)),aj['b_'][f3(0x178)](f3(0x111));for(var bn=!0x1,bo=0x0;bo<ba[f3(0xe0)];bo++){var bp=ba[bo];bk[f3(0x14a)]&&-0x1===bk[f3(0x14a)]['indexOf'](bp[f3(0x1ae)]())&&(bp[f3(0x236)](),bn=!0x0);}if(bn)aS[f3(0x243)](b1+f3(0x203));else{b6[f3(0x172)](function(bq){var f4=f3;bq[f4(0xf3)]();}),bk['_effects']=b7,b7[f3(0x172)](function(bq,br){var f5=f3;bq[f5(0x212)]=b8[br],bq['filterIntensity']=b9[br];});for(bo=0x0;bo<ba[f3(0xe0)];bo++){bp=ba[bo],(bk['_effects'][f3(0x11f)](bp),bp[f3(0x1bf)]({'filterTarget':bk[f3(0x15d)],'filterCallback':function(){}}));}b6[f3(0x172)](function(bq){var f6=f3;bq[f6(0x236)]();}),aj['b_']['timeEnd'](f3(0x111)),b4(bk[f3(0x1a5)]);}}),[0x2];}});});})]):[0x2,new Promise(function(b4){var f7=eW;clearTimeout(b2['_meshVertexTimer']),b2[f7(0xbc)]=setInterval(function(){var f8=f7;aj['b_'][f8(0x243)](f8(0x1ed)),b2[f8(0x252)]&&(aj['b_'][f8(0x243)](f8(0xae)),clearTimeout(b2[f8(0xbc)]),b2[f8(0x101)](aX,aY,aZ,b0)[f8(0xe8)](function(){var f9=f8;b4(b2[f9(0x1a5)]);}));},0xc8);})];});});},aW[ex(0x13c)]['setEffectJSON']=function(aX){return aP(this,void 0x0,void 0x0,function(){var aY,aZ,b0,b1=this;return aQ(this,function(b2){var fa=a4b;switch(b2['label']){case 0x0:return this['lib3dLoaded']?[0x3,0x2]:(aZ=aX['sticker3d'])&&aZ['length']?(console[fa(0x1cb)]('require\x203d\x20lib'),[0x4,this[fa(0x195)]()]):[0x3,0x2];case 0x1:b2[fa(0x10f)](),this[fa(0xdb)]=!0x0,b2[fa(0x186)]=0x2;case 0x2:return(b0=function(){var fb=fa;if(b1[fb(0x252)]){aY&&clearTimeout(aY);var b3=new aI(aX,b1[fb(0x1f5)],b1[fb(0x200)],b1['_app3d'],b1[fb(0xc6)],b1[fb(0x252)],b1['_faceLandmarks'],b1['lipVertex']);b3[fb(0x1af)]=b1[fb(0x176)],b3[fb(0x1f0)]()[fb(0xe8)](function(){var fc=fb;b1[fc(0x146)]||(b1['_app3d']=b3[fc(0x217)]);var b4=[][fc(0x154)](b1['_effects']);b1[fc(0x1a5)]=[b3],b3[fc(0x1bf)]({'filterTarget':b1[fc(0x15d)]}),b4['forEach'](function(b5){var fd=fc;b5[fd(0x236)]();});});}else aY=setTimeout(b0,0x14);})(),[0x2];}});});},aW[ex(0x13c)]['setExclusiveFilter']=function(aX,aY){var aZ=this;return void 0x0===aY&&(aY=0x1),new Promise(function(b0,b1){!(function(){var fe=a4b;if(aZ[fe(0x15c)]&&aZ[fe(0x15c)][fe(0x1ae)]()===aX)aZ['exclusiveFilter'][fe(0x212)]=aY,aZ[fe(0x15c)][fe(0xbf)]=aY;else{var b2=new aH(aX,aZ[fe(0x1f5)],aZ[fe(0x200)],aZ[fe(0x146)],aZ['_options'],aZ[fe(0x252)],aZ[fe(0x228)],aZ[fe(0xb5)],aZ[fe(0x1d0)],aY);b2[fe(0xbf)]=aY,b2['load']()[fe(0xe8)](function(){var ff=fe;aZ[ff(0x15c)]&&aZ[ff(0x15c)][ff(0x236)](),aZ[ff(0x15c)]=b2,b2['renderer']=aZ[ff(0x176)],b2[ff(0x1bf)]({'filterTarget':aZ[ff(0x15d)]}),b0();});}}());});},aW[ex(0x13c)][ex(0x210)]=function(aX,aY){var fg=ex;aV[fg(0x13c)][fg(0x210)]['call'](this,aX,aY),console['log'](fg(0x1c1),aX,aY),this[fg(0xc6)][fg(0x206)]=aX,this['_options']['height']=aY,this[fg(0x176)]['resize'](aX,aY),this['background']&&this[fg(0xd2)]['resize'](aX,aY),this[fg(0x146)]?this[fg(0x146)]['resize'](aX,aY):this['_avatar3d']&&this[fg(0x159)][fg(0x210)](aX,aY),this['_baseRenderTexture']&&this[fg(0x135)]['resize'](aX,aY),this['_makeupRenderTexture']&&this['_makeupRenderTexture'][fg(0x210)](aX,aY);},aW[ex(0x13c)][ex(0x147)]=function(){var fh=ex;this[fh(0x15c)]&&this[fh(0x15c)]['remove']();},aW['prototype'][ex(0x1a8)]=function(){var fi=ex;this[fi(0x15c)]&&this[fi(0x15c)][fi(0x1bf)]({'filterTarget':this[fi(0x15d)],'filterCallback':function(){}});},aW['prototype']['disableEffects']=function(){this['_effects']['forEach'](function(aX){var fj=a4b;console['log'](fj(0x114),aX),aX[fj(0xdf)]||aX[fj(0xf3)]();});},aW['prototype'][ex(0x230)]=function(){var aX=this;this['_effects']['forEach'](function(aY){var fk=a4b;aY['apply']({'filterTarget':aX[fk(0x15d)],'filterCallback':function(){}});});},aW['prototype']['removeExclusiveFilter']=function(){var fl=ex;this[fl(0x15c)]&&(this[fl(0x15c)][fl(0x236)](),this['exclusiveFilter']=null);},aW[ex(0x13c)]['initAvatarApp']=function(aX,aY){return aP(this,void 0x0,void 0x0,function(){return aQ(this,function(aZ){return[0x2];});});},aW[ex(0x13c)]['setAvatar']=function(aX,aY){return aP(this,void 0x0,void 0x0,function(){return aQ(this,function(aZ){return[0x2];});});},aW[ex(0x13c)][ex(0x1be)]=function(aX){},aW['prototype'][ex(0x1f8)]=function(){return aP(this,void 0x0,void 0x0,function(){return aQ(this,function(aX){return[0x2];});});},aW[ex(0x13c)][ex(0xc5)]=function(){var fm=ex;return this[fm(0x1e8)];},aW[ex(0x13c)][ex(0x1d9)]=function(aX){},aW['prototype'][ex(0x1f9)]=function(aX){var fn=ex;this[fn(0x1e8)]&&aX[fn(0xb9)](this['_canvas']);},aW[ex(0x13c)][ex(0x1d7)]=function(aX){var fo=ex;void 0x0===aX&&(aX=0x5);var aY=new a4['Graphics']();return aY[fo(0xd1)](0xff0000),aY[fo(0x21d)](0x0,0x0,aX),aY['endFill'](),aY;},aW['preloadEffects']=function(aX){return aP(this,void 0x0,Promise,function(){var aY,aZ,b0,b1,b2,b3,b4;return aQ(this,function(b5){var fp=a4b;switch(b5[fp(0x186)]){case 0x0:return aX[fp(0xe0)]?[0x4,(aY=new a6['pF']())[fp(0x1ad)]()]:[0x2];case 0x1:b5['sent'](),aZ=[];try{for(b0=aR(aX),b1=b0['next']();!b1[fp(0x24e)];b1=b0[fp(0x133)]())(b2=b1['value'])&&aZ[fp(0x11f)](aY[fp(0xcc)](b2));}catch(b6){b3={'error':b6};}finally{try{b1&&!b1['done']&&(b4=b0[fp(0x15f)])&&b4[fp(0x237)](b0);}finally{if(b3)throw b3[fp(0x201)];}}return[0x2,Promise[fp(0x117)](aZ)['then'](function(){var fq=fp;return Promise[fq(0xc4)]();})['catch'](function(b7){var fr=fp;return Promise[fr(0xbd)](b7);})];}});});},aW[ex(0x13c)][ex(0x10b)]=function(){var fs=ex,aX=this[fs(0xc6)],aY=aX['enableLoadingIcon'],aZ=aX[fs(0x16b)],b0=void 0x0===aZ?{}:aZ;if(aY){var b1=aW['loading']=new aJ['Z'](b0);b1[fs(0x1cd)]=0x14;var b2=this['_options'],b3=b2[fs(0x206)],b4=b2[fs(0xe1)];b1['x']=b3/0x2,b1['y']=b4/0x2,this[fs(0x218)][fs(0x170)](b1);}},aW[ex(0x13c)][ex(0x20b)]=function(){var ft=ex;aW[ft(0xb4)]&&aW[ft(0xb4)][ft(0x221)]();},aW[ex(0x13c)][ex(0x224)]=function(){var fu=ex;aW[fu(0xb4)]&&aW['loading'][fu(0x103)]();},aW[ex(0x13c)][ex(0x236)]=function(){var fv=ex;this[fv(0x224)](),aW['loading']&&aW[fv(0xb4)][fv(0x236)](),aT[fv(0x1ab)][fv(0x236)](!0x0),aT[fv(0x1ab)]=null,this[fv(0x166)]=!0x0,this['_effects']['forEach'](function(aX){var fw=fv;aX[fw(0x236)]();}),this[fv(0x15c)]&&this[fv(0x15c)][fv(0x236)](),this[fv(0x218)]&&this[fv(0x218)][fv(0x236)](!0x0),this[fv(0x176)]&&this[fv(0x176)][fv(0x236)](!0x0),this[fv(0xd2)]&&this[fv(0xd2)]['destroy'](),this[fv(0x146)]&&this[fv(0x146)]['destroy'](),this['_meshVertexTimer']&&clearTimeout(this[fv(0xbc)]),this[fv(0x227)]();},aW[ex(0x13c)][ex(0x227)]=function(){var fx=ex;this[fx(0x159)]&&(this['_avatar3d'][fx(0x236)](),this[fx(0x159)]=null);},aN([(0x0,ab['M'])(ex(0x151)),aO(ex(0x160),Function),aO(ex(0x1a6),[]),aO(ex(0x1ba),void 0x0)],aW[ex(0x13c)],ex(0x236),null),aW;}(aL['F']);}}]));
1
+ var self = wx;(self.webpackChunktencentcloud_webar=self.webpackChunktencentcloud_webar||[]).push([[321],{5145:(e,t,i)=>{i.d(t,{g:()=>ie,b:()=>te});var r,n=i(1206),s=i(337),o=i(3044),a=i(5536),c=i(617),u=i(9560),h=i(1347),l=i(1084),p=i(3849),f=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),d=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},_=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},y=function(){function e(e,t,i,r,n,s){this._destroyed=!1,this.type="makeup",this._parentIntensity=1,this._jsonIntensity=1,this.textures=[],this._dir=t,this._options=e,this._container=i,this._lipMaskTexture=s,this.renderer=r,this.type=n||"makeup"}return Object.defineProperty(e.prototype,"parentIntensity",{get:function(){return this._parentIntensity},set:function(e){this.shader&&(this.shader.uniforms.parentIntensity=e);this._parentIntensity=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lipMask",{set:function(e){null===e?(this._mesh.removeChild(this._cacheMask),this._mesh.mask=e):(this._mesh.addChild(e),this._mesh.mask=e,this._cacheMask=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{set:function(e){this.shader&&(this.shader.uniforms.enable=e?1:0)},enumerable:!1,configurable:!0}),e.prototype.updateGeometry=function(e){this._destroyed},e.prototype.renderMesh=function(){},e.prototype.drawMeshBatch=function(e,t){var i=this;if(!this._destroyed){var r=Array.from(e.reduce((function(e,t){return e.add(t.blend),e}),new Set));this.irisRenderTexture&&!r.includes(this.irisBlendMode)&&r.push(this.irisBlendMode);var s="\n precision mediump float;\n varying vec2 vUvs;\n varying vec2 bUvs;\n \n\n ".concat(e.map((function(e,t){return"uniform sampler2D uSamplerMakeup".concat(t,";")})).join("\n"),"\n ").concat(e.map((function(e,t){return"uniform float intensity".concat(t,";")})).join("\n"),"\n uniform float parentIntensity;\n uniform int enable;\n uniform sampler2D baseImage;\n \n uniform sampler2D uSamplerIris;\n\n // uniform int mirror;\n uniform vec2 imageOffset;\n \n ").concat(r.map((function(e){return u.Lc[e].shader})).join("\n"),"\n \n void main() {\n if (enable == 0) {\n gl_FragColor = vec4(0.0,0.0,0.0,0.0);\n return;\n }\n\n // todo:适配镜像与非镜像\n vec2 baseCoord = bUvs;\n baseCoord += imageOffset;\n // if (mirror == 1) {\n // baseCoord = vec2(1.0 - bUvs.x, bUvs.y);\n // }\n vec4 baseColor = texture2D(baseImage, baseCoord);\n\n vec4 makeupColor = vec4(0.0);\n\n ").concat(e.map((function(e,t){return"\n \n vec4 color".concat(t," = texture2D(uSamplerMakeup").concat(t,", vUvs);\n float a").concat(t," = color").concat(t,".a;\n float realIntensity").concat(t," = intensity").concat(t," * parentIntensity;\n makeupColor = texture2D(uSamplerMakeup").concat(t,", vUvs) * realIntensity").concat(t,";\n if (makeupColor.a>0.) {\n // 混合\n baseColor.rgb = blend").concat(u.Lc[e.blend].key,"(baseColor.rgb, makeupColor.rgb/makeupColor.a , makeupColor.a);\n }\n \n \n \n\n ")})).join("\n"),"\n\n ").concat(this.irisRenderTexture?"\n // 混合美瞳\n vec4 irisColor = texture2D(uSamplerIris, bUvs);\n if (irisColor.a > 0.) {\n baseColor.rgb = blend".concat(u.Lc[this.irisBlendMode].key,"(baseColor.rgb, irisColor.rgb/irisColor.a , irisColor.a);\n }\n "):"","\n \n \n\n // 输出\n gl_FragColor = baseColor;\n }"),o={enable:1};o.parentIntensity=this.parentIntensity;var a=this._options,c=a.width,h=a.height;o.baseImage=te.baseTexture,o.size=[c*h/te.baseTexture.height,h];var l=te.baseTexture.width*h/te.baseTexture.height;o.imageOffset=[(l-c)/2/l,0],e.forEach((function(e,t){var r="default"===i._dir?e.src:"".concat(i._dir,"|").concat(e.src),s=n.utils.TextureCache[r];o["uSamplerMakeup".concat(t)]=s,o["intensity".concat(t)]=e.intensity,i.textures.push(s)})),this.irisRenderTexture&&(o.uSamplerIris=this.irisRenderTexture);var f=n.Shader.from("\n precision mediump float;\n attribute vec2 aVertexPosition;\n attribute vec2 aUvs;\n\n uniform mat3 translationMatrix;\n uniform mat3 projectionMatrix;\n uniform vec2 size;\n varying vec2 vUvs;\n varying vec2 bUvs;\n\n \n void main() {\n vUvs = aUvs;\n bUvs = aVertexPosition.xy /size;\n // lipUvs = lipAuvs;\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n }",s,o);this.shader=f,p.t.instance.on("mirrorChange",(function(e){}));var d=new u.Kj(t,f);return this._mesh=d,this._container.addChild(d),d}},e.prototype.destroy=function(){this._destroyed=!0,this._mesh&&(this._mesh.destroy({children:!0,texture:!1,baseTexture:!1}),this._mesh.mask=null,this._mesh=null),this._maskRenderTexure&&this._maskRenderTexure.destroy(!1)},d([(0,l.M)("MakeupLayer"),_("design:type",Function),_("design:paramtypes",[Array]),_("design:returntype",void 0)],e.prototype,"updateGeometry",null),d([(0,l.M)("MakeupLayer"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],e.prototype,"destroy",null),e}(),m=function(e){function t(t,i,r,s,o,a,c){var u=e.call(this,t,i,c)||this;return u._maskGraphics=new n.Graphics,u.maxLConSize=0,u.maxRConSize=0,u._parentIntensity=1,u.jsonIntensity=o,u.getTexture(r,s),u._config=a,u.renderTexture=n.RenderTexture.create({width:t.width,height:t.height}),u}var i,r;return f(t,e),Object.defineProperty(t.prototype,"parentIntensity",{get:function(){return this._parentIntensity},set:function(e){this._container&&(this._container.alpha=this.jsonIntensity*e),this._parentIntensity=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{set:function(e){this._container.visible=e},enumerable:!1,configurable:!0}),t.prototype.getTexture=function(e,t){var i="default"===this._dir?e:"".concat(this._dir,"|").concat(e),r=n.utils.TextureCache[i],s=new u.jy(r),o=new u.jy(r.clone());s.anchor.set(.5),o.anchor.set(.5),this._leftIris=s,this._rightIris=o;var a=new n.Container;this._maskGraphics||(this._maskGraphics=new n.Graphics),a.addChild(this._maskGraphics),a.addChild(s),a.addChild(o),a.alpha=this.parentIntensity*this.jsonIntensity,a.mask=this._maskGraphics,this._container=a},t.prototype.setIrisProps=function(e,t){if(e.length){var i=this._config.getConfigByKeys(["POINTS_MAP","LEFT_IRIS","RIGHT_IRIS","LEFT_EYE_ORDER","RIGHT_EYE_ORDER"]),r=i.POINTS_MAP,n=(i.LEFT_IRIS,i.RIGHT_IRIS,i.LEFT_EYE_ORDER),s=i.RIGHT_EYE_ORDER,o=(r.left_eye_center,r.right_eye_center,(0,h.Sp)(e[52],e[55])),a=(0,h.Sp)(e[58],e[61]),c=Math.max(this.maxLConSize,(0,h.Sp)(e[72],e[73])/o),u=Math.max(this.maxRConSize,(0,h.Sp)(e[75],e[76])/a),l=o*c,p=o*c,f=a*u,d=a*u;this.maxLConSize=Math.max(Math.min(c,.7),.4),this.maxRConSize=Math.max(Math.min(u,.7),.4);var _=te.baseTexture.width*this._options.height/te.baseTexture.height,y=(0,h.qg)(e[74],e[104]),m=(0,h.qg)(e[77],e[105]);console.log("offset",(_-this._options.width)/2),y.x-=(_-this._options.width)/2,m.x-=(_-this._options.width)/2;var b=this._leftIris,g=this._rightIris;b.width=l,b.height=p,b.x=y.x,b.y=y.y,g.width=f,g.height=d,g.x=m.x,g.y=m.y,this._maskGraphics.clear(),this._drawMaskGraphics(n,e),this._drawMaskGraphics(s,e),t.render(this._container,{renderTexture:this.renderTexture})}},t.prototype._drawMaskGraphics=function(e,t){var i=this,r=this._maskGraphics;r.beginFill(16724736),r.lineStyle(1,16767232,1);var n=[];e.forEach((function(s,o){var a=t[s],c=i._getPixelPosition(a.x,a.y),u=c.x,h=c.y;n.push({x:u,y:h}),0===o?r.moveTo(u,h):o===e.length-1?(r.closePath(),r.endFill()):r.lineTo(u,h)}))},t.prototype._getPixelPosition=function(e,t){return{x:e,y:t}},t.prototype.destroy=function(){this._leftIris&&this._leftIris.destroy({children:!0,texture:!1,baseTexture:!1}),this._rightIris&&this._rightIris.destroy({children:!0,texture:!1,baseTexture:!1}),this._maskGraphics&&this._maskGraphics.destroy({children:!0,texture:!1,baseTexture:!1})},d([(0,l.M)("IrisLayer"),_("design:type",Function),_("design:paramtypes",["function"==typeof(i="undefined"!=typeof Array&&Array)?i:Object,"function"==typeof(r=void 0!==n.Renderer&&n.Renderer)?r:Object]),_("design:returntype",void 0)],t.prototype,"setIrisProps",null),t}(y),b=i(3120),g=i(6109),v=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},k=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},x=function(e,t,i,r){return new(i||(i=Promise))((function(n,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))},w=function(e,t){var i,r,n,s,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,r&&(n=2&s[0]?r.return:s[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;switch(r=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){o.label=s[1];break}if(6===s[0]&&o.label<n[1]){o.label=n[1],n=s;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(s);break}n[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{i=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},T=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],r=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},S=(0,g.jl)("makeup"),M=function(){function e(e,t,i){e&&(this._options=e),t&&(this._lipVertex=t),i&&(this.renderer=i)}return e.prototype.destroy=function(){var e=this._lipMask;this._lipMask=null;try{e.destroy(!0)}catch(e){}try{this._lipMaskMesh.destroy(!0),this._lipMaskMesh=null}catch(e){}try{this._maskRenderTexture.destroy(!0),this._maskRenderTexture=null}catch(e){}this._config=null;try{this._maskSprite.destroy(!0),this._maskSprite=null}catch(e){}},e.prototype.load=function(){return x(this,void 0,void 0,(function(){var e,t,i,r,s;return w(this,(function(o){switch(o.label){case 0:return this._config?[3,2]:(this._config=new c.M,[4,this._config.load()]);case 1:o.sent(),o.label=2;case 2:return this._lipMask?[3,4]:[4,this._getMask()];case 3:o.sent(),o.label=4;case 4:return this._maskSprite&&!this._maskSprite.destroyed||(e=this._options,t=e.width,i=e.height,r=new n.BaseRenderTexture({width:t,height:i}),this._maskRenderTexture=new n.RenderTexture(r),s=new n.Sprite(this._maskRenderTexture),this._maskSprite=s),[2,{maskSprite:this._maskSprite,lipmask:this._lipMask,lipmaskmesh:this._lipMaskMesh}]}}))}))},e.prototype.update=function(e){this._lipMaskMesh&&(this._lipMaskMesh.geometry.getBuffer("aVertexPosition").update(e),this.render())},e.prototype.render=function(){this.renderer&&this._lipMask&&this.renderer.render(this._lipMask,{renderTexture:this._maskRenderTexture})},e.prototype._getMask=function(){return x(this,void 0,void 0,(function(){var e,t,i,r,s,o,a,c,u;return w(this,(function(h){switch(h.label){case 0:return this._lipMask?[2,this._lipMask]:(e=new n.Container,(t=new n.Sprite(n.Texture.WHITE)).width=this._options.width,t.height=this._options.height,e.addChild(t),i=this._lipVertex,r=this._config.getDataConfig(29),[4,this._loadLipImage()]);case 1:return s=h.sent(),o=(new n.Geometry).addAttribute("aVertexPosition",i).addAttribute("aUvs",r),"\n precision mediump float;\n attribute vec2 aVertexPosition;\n attribute vec2 aUvs;\n uniform mat3 translationMatrix;\n uniform mat3 projectionMatrix;\n varying vec2 vUvs;\n\n\n void main() {\n vUvs = aUvs;\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n }","\n precision mediump float;\n varying vec2 vUvs;\n uniform sampler2D uSamplerMakeup;\n\n \n void main() {\n gl_FragColor = texture2D(uSamplerMakeup, vUvs);\n }",a={uSamplerMakeup:s},c=n.Shader.from("\n precision mediump float;\n attribute vec2 aVertexPosition;\n attribute vec2 aUvs;\n uniform mat3 translationMatrix;\n uniform mat3 projectionMatrix;\n varying vec2 vUvs;\n\n\n void main() {\n vUvs = aUvs;\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n }","\n precision mediump float;\n varying vec2 vUvs;\n uniform sampler2D uSamplerMakeup;\n\n \n void main() {\n gl_FragColor = texture2D(uSamplerMakeup, vUvs);\n }",a),u=new n.Mesh(o,c),this._lipMaskMesh=u,e.addChild(u),this._lipMask=e,[2,e]}}))}))},e.prototype._loadLipImage=function(){return x(this,void 0,Promise,(function(){var e=this;return w(this,(function(t){return[2,new Promise((function(t,i){return x(e,void 0,void 0,(function(){var e,i,r;return w(this,(function(n){switch(n.label){case 0:return[4,(e=new b.KI).init()];case 1:return i=n.sent(),[4,e.loadImage(i)];case 2:return r=n.sent(),t(r[b.X_]),[2]}}))}))}))]}))}))},v([(0,l.M)("ReuseableLipMask"),k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",void 0)],e.prototype,"destroy",null),v([(0,l.o)("ReuseableLipMask"),k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",Promise)],e.prototype,"_getMask",null),e}(),C=function(){function e(e,t,i,r,s,o,a,c){void 0===c&&(c=1),this._container=new n.Container,this._makeupMeshes=[],this._visible=!0,this.mouthShut=!0,this._applyed=!1,this._key=e,this._data=t,this._options=i,this.mesh=r,this.lipmesh=o,this.faceLandMarks=s,this.renderer=a,this.parentIntensity=c;var u=new n.Sprite(n.Texture.WHITE);u.alpha=0,u.width=i.width,u.height=i.height,this._container.addChild(u)}var t;return Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){var t=this;this._target&&e!==this._visible&&(this._visible=e,this._makeupMeshes.forEach((function(i){e?t.apply(t._target):t.remove()})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mesh",{set:function(e){(this._meshVertex=e,this.geometry)&&(this.geometry.getBuffer("aVertexPosition").update(e),this._makeupMeshes.forEach((function(t){t.updateGeometry(e)})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lipmesh",{set:function(e){this._lipVertex=e,this._lipMaskIns&&this._lipMaskIns.update(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"faceLandMarks",{set:function(e){var t=this;e&&e.length&&(this._irises&&this._irises.setIrisProps(e,this.renderer),(0,h.Sp)(e[98],e[102])<.03*(0,h.Sp)(e[0],e[32])?this.mouthShut||(this._makeupMeshes.forEach((function(e){"lips"===e.type&&(e.lipMask=null)})),this.mouthShut=!0):this.mouthShut&&(this._makeupMeshes.forEach((function(e){"lips"===e.type&&t._lipMaskIns&&(e.lipMask=t._lipMaskIns._maskSprite)})),this.mouthShut=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentIntensity",{get:function(){return this._intensity},set:function(e){S.info("set parentIntensity",e),this._irises&&(this._irises.parentIntensity=e),this._makeupMeshes.forEach((function(t){t.parentIntensity=e})),this._intensity=e},enumerable:!1,configurable:!0}),e.prototype.renderMesh=function(){this._lipMaskIns&&this._lipMaskIns.render(),this._makeupMeshes.forEach((function(e){e.renderMesh()}))},e.prototype.load=function(){return x(this,void 0,void 0,(function(){var e,t,i,r,n,s,o,a;return w(this,(function(u){switch(u.label){case 0:return this._config=new c.M,[4,this._config.load()];case 1:if(u.sent(),e=this._data,S.info("makeup info",this._data),t=[],e&&e.length){try{for(i=T(e),r=i.next();!r.done;r=i.next())"iris"===(n=r.value).type?(this._irises=this._getIris(n.src,n.blend,n.intensity),this.irisBlendMode=n.blend):(n.blend+"",t.push({src:n.src,intensity:n.intensity,type:n.type,blend:n.blend}))}catch(e){o={error:e}}finally{try{r&&!r.done&&(a=i.return)&&a.call(i)}finally{if(o)throw o.error}}console.log("makeupLayersByBlendMode",t),s=this._getMeshLayerByBlendMode(t),this._makeupMeshes.push(s)}return[4,this._initLipMask()];case 2:return u.sent(),[2]}}))}))},e.prototype._getIris=function(e,t,i){return new m(this._options,this._key,e,t,i,this._config,this._container)},e.prototype._getMeshLayerByBlendMode=function(e){var t=e.some((function(e){return"lips"===e.type}))?"lips":"makeup",i=new y(this._options,this._key,this._container,this.renderer,t);i.parentIntensity=this.parentIntensity,this._irises&&(i.irisRenderTexture=this._irises.renderTexture.baseTexture,i.irisBlendMode=this.irisBlendMode);var r=this._config.getDataConfig(26);if(!this.geometry){var s=(new n.Geometry).addAttribute("aVertexPosition",this._meshVertex).addAttribute("aUvs",r);this.geometry=s}return i.drawMeshBatch(e,this.geometry),i},e.prototype.apply=function(e){this._target=e,this._applyMakeup(e)},e.prototype.remove=function(){this._removeMakeup(this._target)},e.prototype._applyMakeup=function(e){this._applyed||(this._applyed=!0,e.filters||(e.filters=[]),e.addChild(this._container))},e.prototype._removeMakeup=function(e){this._applyed&&(this._applyed=!1,e.filters&&e.removeChild(this._container))},e.prototype._initLipMask=function(){return x(this,void 0,void 0,(function(){var e,t,i=this;return w(this,(function(r){switch(r.label){case 0:return(e=new M(this._options,this._lipVertex,this.renderer))._options=this._options,e._lipVertex=this._lipVertex,e.renderer=this.renderer,this._lipMaskIns=e,[4,e.load()];case 1:return t=r.sent().maskSprite,this._makeupMeshes.forEach((function(e){console.log("是否闭嘴的",i.mouthShut),"lips"!==e.type||i.mouthShut||(e.lipMask=t)})),[2]}}))}))},e.prototype.destroy=function(){this.remove(),this._makeupMeshes.forEach((function(e){return e.destroy()})),this._makeupMeshes=[],this._irises&&this._irises.destroy(),this._irises=null,this._container.destroy(),this._target=null,this._lipMaskIns&&this._lipMaskIns.destroy()},v([(0,l.M)("Makeup"),k("design:type",Function),k("design:paramtypes",["function"==typeof(t=void 0!==n.Container&&n.Container)?t:Object]),k("design:returntype",void 0)],e.prototype,"_removeMakeup",null),v([(0,l.M)("Makeup"),k("design:type",Function),k("design:paramtypes",[]),k("design:returntype",void 0)],e.prototype,"destroy",null),e}(),I=i(3125),P=i(401),j=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},O=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},R=function(){function e(e,t,i,r,s,o,a,c){this._container=new n.Container,this._name=e,this._src=t,this._target=r,this._config=i,this._jsonIntensity=i.intensity,this._landmarks=s,this._options=o,this._key=a,this._angles=c}return Object.defineProperty(e.prototype,"parentIntensity",{get:function(){return this._parentIntensity},set:function(e){this._parentIntensity=e,this._sticker&&(this._sticker.alpha=this._jsonIntensity*e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"faceLandMarks",{set:function(e){this._landmarks=e,this._sticker&&this.setStickerProps()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angles",{set:function(e){this._angles=e,this._sticker&&this.setStickerProps()},enumerable:!1,configurable:!0}),e.prototype.getCircle=function(e){void 0===e&&(e=5);var t=new n.Graphics;return t.beginFill(16711680),t.drawCircle(0,0,e),t.endFill(),t},e.prototype.getCircle2=function(e){void 0===e&&(e=5);var t=new n.Graphics;return t.beginFill(255),t.drawCircle(0,0,e),t.endFill(),t},e.prototype.getDisplay=function(){return this._container},e.prototype.load=function(){var e,t=this;if(this.checkAnimated()){var i=[];this._src.forEach((function(e){var r;r=e.indexOf(".json")>-1?e:"".concat(t._key,"|").concat(JSON.parse(e).meta.image);var n=o.iV[r].textures,s=Object.keys(n).map((function(e){return n[e]}));i=i.concat(s)})),(e=new u.Kg(i)).animationSpeed=(this._config.fps||30)/60,e.play()}else{var r=this._src[0],s=n.utils.TextureCache[r];e=new u.jy(s)}this._config.blend&&(console.log("sticker blend",this._config.blend),e.blendMode_1=this._config.blend);this._config.wxAnchorOffset;e.width=this._config.width,e.height=this._config.height;var a=[.5,.5];this._config.anchor&&(a=this._config.anchor),e.anchor.set(a[0],a[1]),e.alpha=this._jsonIntensity*this.parentIntensity,this._sticker=e,this._container.addChild(this._sticker),this._container.convertTo3d(),this.setStickerProps()},e.prototype.setStickerProps=function(){var e=this._config,t=this._landmarks,i=P.Jp.map((function(e){return t[e]})),r=(0,h.Sp)(i[0],i[1]),n=e.wxAnchorArea,s=(e.wxAnchorOffset,e.wxWeights),o=r/P.jw,a=n.map((function(e){var i=t[e];return{x:i.x,y:i.y,z:0}}));this._container.scale.set(o);var c={x:a[0].x*s[0]+a[1].x*s[1]+a[2].x*s[2],y:a[0].y*s[0]+a[1].y*s[1]+a[2].y*s[2]};this._container.position.x=c.x,this._container.position.y=c.y,this._angles&&(this._container.euler.z=this._angles.roll,this._container.euler.y=this._angles.yaw,this._container.euler.x=this._angles.pitch)},e.prototype.checkAnimated=function(){if(this._src instanceof Array&&this._src.length>1)return!0;try{return JSON.parse(this._src[0]),!0}catch(e){return"json"===this._src[0].split(".").pop()}},e.prototype.tick=function(){},e.prototype.apply=function(){},e.prototype.remove=function(){},e.prototype.destroy=function(){this._sticker.destroy(),this._container.destroy(),this._sticker=null,this._target=null},j([(0,l.M)("StickerLayer"),O("design:type",Function),O("design:paramtypes",[]),O("design:returntype",Boolean)],e.prototype,"checkAnimated",null),j([(0,l.M)("StickerLayer"),O("design:type",Function),O("design:paramtypes",[]),O("design:returntype",void 0)],e.prototype,"destroy",null),e}(),E=function(){function e(e,t,i,r,n,s,o){void 0===o&&(o=1);var a=this;this._stickers=[],this._visible=!0,this._parentIntensity=1,this._target=i,this._options=n,this._landmarks=r;var c=new I.LE;c.setPlanes(400,10,1e4,!0),this._camera=c,this._stickers=t.map((function(t){var o=new R(t.name,t.src,t,i,r,n,e,s);return o.parentIntensity=a.parentIntensity,o.load(),a._camera.addChild(o.getDisplay()),o}))}return Object.defineProperty(e.prototype,"parentIntensity",{get:function(){return this._parentIntensity},set:function(e){this._stickers.forEach((function(t){t.parentIntensity=e})),this._parentIntensity=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"faceLandMarks",{set:function(e){this._stickers.forEach((function(t){t.faceLandMarks=e}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angles",{set:function(e){this._stickers.forEach((function(t){t.angles=e}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._target&&e!==this._visible&&(this._visible=e,e?this.apply():this.remove())},enumerable:!1,configurable:!0}),e.prototype.tick=function(){this._stickers.forEach((function(e){return e.tick()}))},e.prototype.apply=function(){this._target.addChild(this._camera)},e.prototype.remove=function(){this._target.removeChild(this._camera)},e.prototype.destroy=function(){this.remove(),this._stickers.forEach((function(e){return e.destroy()})),this._camera.destroy(),this._stickers=[]},e}(),F=i(6878),V=i(6879),L=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),A=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},U=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},D=function(e,t,i,r){return new(i||(i=Promise))((function(n,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))},G=function(e,t){var i,r,n,s,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,r&&(n=2&s[0]?r.return:s[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;switch(r=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){o.label=s[1];break}if(6===s[0]&&o.label<n[1]){o.label=n[1],n=s;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(s);break}n[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{i=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},B=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],r=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},z=(0,g.jl)("Effect"),N=function(){function e(e,t,i,r,n,s,o,a,c,u,h){this._filters=[],this._destroyed=!1,this._visible=!0,this._intensity=1,this._filterIntensity=1,this.localSpriteSheets={},this._filtersActived=!0,this._target=t,this._stickerTarget=i,this._url=e,this._key=e,this._options=n,this.mesh=s,this.lipmesh=a,this.faceLandMarks=o,c&&(this.angles=c),void 0!==u&&(this.intensity=u),this._app3d=r,this._canvas=h}var t;return Object.defineProperty(e.prototype,"isPureFilter",{get:function(){var e=this._config;return!!e&&((!e.makeup||!e.makeup.length)&&((!e.sticker||!e.sticker.length)&&((!e.sticker3d||!e.sticker3d.length)&&(!e.beautify||!Object.keys(e.beautify).find((function(t){return!!e.beautify[t]}))))))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filterActived",{get:function(){return this._filtersActived},set:function(e){e!==this._filtersActived&&(this._filterTarget&&(e?this._applyFilter(this._filterTarget):this._removeFilter(this._filterTarget)),this._filtersActived=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"app3d",{get:function(){return this._app3d},set:function(e){this._app3d=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"intensity",{get:function(){return this._intensity},set:function(e){e>1&&(F.Nd.trigger("error",{message:s.Z.t("0015"),code:V.U.SET_INTENSITY_ERROR}),e=1),null!=e&&(this._makeup&&(this._makeup.parentIntensity=e),this._sticker&&(this._sticker.parentIntensity=e),this._intensity=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filterIntensity",{get:function(){return this._filterIntensity},set:function(e){null!=e&&(this._filters&&this._filters.forEach((function(t){t.uniforms.parentIntensity=e})),this._filterIntensity=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._destroyed||(this._visible=e,this._makeup&&(this._makeup.visible=e),this._sticker&&(this._sticker.visible=e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mesh",{set:function(e){this._destroyed||(this._meshVertex=e,this._makeup&&(this._makeup.mesh=e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lipmesh",{set:function(e){this._destroyed||(this._lipVertex=e,this._makeup&&(this._makeup.lipmesh=e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"faceLandMarks",{get:function(){return this._faceLandMarks},set:function(e){this._destroyed||(this._faceLandMarks=e,this._makeup&&(this._makeup.faceLandMarks=e),this._sticker&&(this._sticker.faceLandMarks=e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angles",{set:function(e){this._angles=e,this._sticker&&(this._sticker.angles=e)},enumerable:!1,configurable:!0}),e.prototype.download=function(){return D(this,void 0,Promise,(function(){return G(this,(function(e){switch(e.label){case 0:return g.D4.info("download:",this._url),[4,this._getLoader()];case 1:return[4,e.sent().preload(this._url)];case 2:return e.sent(),[4,this._getConfig()];case 3:return[2,e.sent()]}}))}))},e.prototype.load=function(){return D(this,void 0,Promise,(function(){var e,t,i,r,n,s;return G(this,(function(o){switch(o.label){case 0:return[4,this.download()];case 1:return e=o.sent(),t=e.filter,i=e.makeup,r=e.beautify,n=e.sticker,s=e.sticker3d,[4,this._loadImages(e)];case 2:return o.sent(),this.loadFilter(t),[4,this.setMakeup(i)];case 3:return o.sent(),n?[4,this.loadStickers(n)]:[3,5];case 4:o.sent(),o.label=5;case 5:return[4,this.load3d(s)];case 6:return o.sent(),this.sticker3d=s,[4,this._getLoader()];case 7:return o.sent().removeFromCache(this._url),[2,r]}}))}))},e.prototype._getLoader=function(){return D(this,void 0,void 0,(function(){return G(this,(function(e){switch(e.label){case 0:return this._loader?[3,2]:(this._loader=new o.pF,[4,this._loader.init()]);case 1:e.sent(),e.label=2;case 2:return[2,this._loader]}}))}))},e.prototype._getConfig=function(){return D(this,void 0,void 0,(function(){var e;return G(this,(function(t){switch(t.label){case 0:return this._config?[3,3]:[4,this._getLoader()];case 1:return[4,(e=t.sent()).preload(this._url)];case 2:t.sent(),this._config=e.readJSON("content.json",this._key),t.label=3;case 3:return[2,this._config]}}))}))},e.prototype.hasEyeMakeup=function(){return D(this,void 0,Promise,(function(){var e,t,i,r,n,s,o,a;return G(this,(function(c){switch(c.label){case 0:return[4,this._getConfig()];case 1:e=c.sent(),t=e.makeup,i=!1;try{for(r=B(t),n=r.next();!n.done;n=r.next())if("iris"===(s=n.value).type||"eyes"===s.type){i=!0;break}}catch(e){o={error:e}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return[2,i]}}))}))},e.prototype.needDetection=function(){return D(this,void 0,Promise,(function(){var e,t,i,r;return G(this,(function(n){switch(n.label){case 0:return[4,this._getConfig()];case 1:return e=n.sent(),t=e.makeup,i=e.sticker,r=e.sticker3d,[2,t&&t.length||i&&i.length||r&&r.length]}}))}))},e.prototype.hasFilter=function(){return D(this,void 0,Promise,(function(){var e,t;return G(this,(function(i){switch(i.label){case 0:return[4,this._getConfig()];case 1:return e=i.sent(),[2,!(!(t=e.filter)||!t.length)]}}))}))},e.prototype.loadStickers=function(e){return D(this,void 0,Promise,(function(){var t;return G(this,(function(i){return e.length?((t=new E(this._key,e,this._stickerTarget,this.faceLandMarks,this._options,this._angles)).parentIntensity=this.intensity,this._sticker=t,[2]):[2,Promise.resolve()]}))}))},e.prototype.loadSticker3d=function(e){return void 0===e&&(e=[]),D(this,void 0,Promise,(function(){return G(this,(function(e){return[2]}))}))},e.prototype.load3d=function(e){return D(this,void 0,void 0,(function(){return G(this,(function(e){return[2]}))}))},e.prototype.initThreeApp=function(){return D(this,void 0,void 0,(function(){return G(this,(function(e){return[2]}))}))},e.prototype.apply3d=function(){},e.prototype.removeForConsole=function(){},e.prototype.destroyForConosle=function(){},e.prototype.setMakeup=function(e){return e.length?(this._makeup=new C(this._key,e,this._options,this._meshVertex,this.faceLandMarks,this._lipVertex,this.renderer,this.intensity),this._makeup.load()):Promise.resolve()},e.prototype.apply=function(e){this._destroyed||this._applyed||(this.filterActived&&this._applyFilter(e.filterTarget),this._filters.length&&e.filterCallback&&e.filterCallback(),this._filterTarget=e.filterTarget,this._makeup&&this._makeup.apply(this._target),this._sticker&&this._sticker.apply(),this.apply3d(),this._applyed=!0)},e.prototype.getUrl=function(){return this._url},e.prototype.remove=function(){z.info("remove effect",this._url,this.getUrl()),this._makeup&&this._makeup.remove(),this._sticker&&this._sticker.remove(),this.removeForConsole(),this._removeFilter(this._filterTarget),this._applyed=!1},e.prototype.tick=function(){this._sticker&&this._sticker.tick()},e.prototype.tickMesh=function(){this._makeup&&this._makeup.renderMesh()},e.prototype.destroy=function(){this._destroyed=!0,this.remove(),this._makeup&&(this._makeup.destroy(),this._makeup=null),this._sticker&&(this._sticker.destroy(),this._sticker=null),this.destroyForConosle(),this._filters=[],this.clearTexture()},e.prototype.loadFilter=function(e){var t=this;this._destroyed||e&&e.length&&e.forEach((function(e){var i=t._createFilterSync(e.src,e.intensity,t.filterIntensity);t._filters.push(i)}))},e.prototype._applyFilter=function(e){e.filters||(e.filters=[]),e.filters=this._filters.concat(e.filters)},e.prototype._removeFilter=function(e){e&&e.filters&&e.filters.length&&this._filters.forEach((function(t){var i=e.filters.findIndex((function(e){return e===t}));i>-1&&e.filters.splice(i,1)}))},e.prototype._createFilterSync=function(e,t,i){var r="default"===this._key?e:"".concat(this._key,"|").concat(e),s=n.utils.TextureCache[r];return s.baseTexture.scaleMode=n.SCALE_MODES.LINEAR,s.baseTexture.mipmap=n.MIPMAP_MODES.OFF,new a.f("lut",this._options,{uniforms:{lut:s,intensity:t,parentIntensity:i}})},e.prototype.clearTexture=function(){for(var e in n.utils.TextureCache)if(e.indexOf(this._key)>-1){var t=n.utils.TextureCache[e];n.Texture.removeFromCache(t),t.destroy(!0)}for(var e in this.localSpriteSheets)o.iV[e]&&o.iV[e]instanceof n.Spritesheet&&(o.iV[e].destroy(),delete o.iV[e])},e.prototype._loadImages=function(e){var t,i,r=this,s=(e.filter||[]).concat(e.makeup||[]).concat(e.sticker||[]),a=this._loader.getIndeLoader(),c={};this.localSpriteSheets=c;try{for(var u=B(s),h=u.next();!h.done;h=u.next()){var l=h.value;if(l.src instanceof Array)l.src.forEach((function(e,t){var i=r.checkSpriteSheetJSON(e);if(i){var s=i.meta.image,o="".concat(r._key,"|").concat(s);if(n.utils.TextureCache[o])return;if(0===s.indexOf("blob:")){var u=n.Texture.from(s);n.Texture.addToCache(u,o)}else a.add(o,s);i.meta.image="",c[o]=i}else{if(n.utils.TextureCache[e])return;if(a.resources[e])return;a.add(e,e)}}));else{var p="".concat(this._key,"|").concat(l.src);if(n.utils.TextureCache[p])continue;if(0===l.src.indexOf("blob:")){var f=n.Texture.from(l.src);n.Texture.addToCache(f,p)}else a.add(p,l.src)}}}catch(e){t={error:e}}finally{try{h&&!h.done&&(i=u.return)&&i.call(u)}finally{if(t)throw t.error}}return new Promise((function(e){a.load((function(t,i){return D(r,void 0,void 0,(function(){var t,r,s,a,u;return G(this,(function(h){switch(h.label){case 0:for(s in t=function(e){var t;return G(this,(function(i){switch(i.label){case 0:return o.iV[e]?[2,"continue"]:c[e]?(t=new n.Spritesheet(n.utils.TextureCache[e],c[e]),[4,new Promise((function(i){t.parse((function(){o.iV[e]=t,i()}))}))]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))},r=[],n.utils.TextureCache)r.push(s);a=0,h.label=1;case 1:return a<r.length?(u=r[a],[5,t(u)]):[3,4];case 2:h.sent(),h.label=3;case 3:return a++,[3,1];case 4:for(u in i)o.iV[u]||c[u]||(o.iV[u]=i[u]);return e(),[2]}}))}))}))}))},e.prototype.checkSpriteSheetJSON=function(e){try{return JSON.parse(e)}catch(e){return null}},A([(0,l.M)("Effect"),U("design:type",Function),U("design:paramtypes",[]),U("design:returntype",void 0)],e.prototype,"remove",null),A([(0,l.M)("Effect"),U("design:type",Function),U("design:paramtypes",[]),U("design:returntype",void 0)],e.prototype,"destroy",null),A([(0,l.M)("Effect"),U("design:type",Function),U("design:paramtypes",["function"==typeof(t=void 0!==n.Container&&n.Container)?t:Object]),U("design:returntype",void 0)],e.prototype,"_removeFilter",null),e}(),J=function(e){function t(t,i,r,n,s,o,a,c){var u=e.call(this,"default",i,r,n,s,o,a,c)||this;return u._json=t,u._app3d=n,u}return L(t,e),t.prototype.load=function(){return D(this,void 0,Promise,(function(){var e,t,i,r,n,s;return G(this,(function(o){switch(o.label){case 0:return e=this._json,t=e.filter,i=e.makeup,r=e.beautify,n=e.sticker,s=e.sticker3d,[4,this._loadImages(e)];case 1:return o.sent(),this.loadFilter(t),[4,this.setMakeup(i)];case 2:return o.sent(),n?[4,this.loadStickers(n)]:[3,4];case 3:o.sent(),o.label=4;case 4:return s?this._app3d?[3,6]:[4,this.initThreeApp()]:[3,8];case 5:o.sent(),o.label=6;case 6:return[4,this.loadSticker3d(s)];case 7:o.sent(),o.label=8;case 8:return[2,r]}}))}))},t.prototype.loadImage=function(){return D(this,void 0,void 0,(function(){return G(this,(function(e){return[2]}))}))},t.prototype._loadImages=function(e){var t,i,r=this,s=new n.Loader,a=(e.filter||[]).concat(e.makeup||[]).concat(e.sticker||[]),c={},u=function(e){if(e.src instanceof Array)e.src.forEach((function(t,i){var o=r.checkSpriteSheetJSON(t);if(o){var a=o.meta.image,u="".concat(r._key,"|").concat(a);if(n.utils.TextureCache[u])return;if(e.objectSrc&&e.objectSrc.length){var h=n.Texture.from(e.objectSrc[i]);n.Texture.addToCache(h,u)}else if(0===a.indexOf("blob:")){h=n.Texture.from(a);n.Texture.addToCache(h,u)}else s.add(u,a);o.meta.image="",c[u]=o}else{if(n.utils.TextureCache[t])return;if(s.resources[t])return;if(e.objectSrc&&e.objectSrc.length){h=n.Texture.from(e.objectSrc[i]);n.Texture.addToCache(h,t)}else s.add(t,t)}}));else{if(n.utils.TextureCache[e.src])return"continue";if(s.resources[e.src])return console.log("already loaded file",e.src),"continue";if(e.objectSrc){console.log("use imagebitmap to create texture");var t=n.Texture.from(e.objectSrc);n.Texture.addToCache(t,e.src)}else if(0===e.src.indexOf("blob:")){t=n.Texture.from(e.src);console.log("JSONEffect blob texture",t),n.Texture.addToCache(t,e.src)}else s.add(e.src)}};try{for(var h=B(a),l=h.next();!l.done;l=h.next()){u(l.value)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}return new Promise((function(e){return D(r,void 0,void 0,(function(){var t=this;return G(this,(function(i){return s.load((function(i,r){return D(t,void 0,void 0,(function(){var t,i,s,a,u;return G(this,(function(h){switch(h.label){case 0:for(s in t=function(e){var t;return G(this,(function(i){switch(i.label){case 0:return o.iV[e]?[2,"continue"]:c[e]?(t=new n.Spritesheet(n.utils.TextureCache[e],c[e]),[4,new Promise((function(i){t.parse((function(){o.iV[e]=t,i()}))}))]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))},i=[],n.utils.TextureCache)i.push(s);a=0,h.label=1;case 1:return a<i.length?(u=i[a],[5,t(u)]):[3,4];case 2:h.sent(),h.label=3;case 3:return a++,[3,1];case 4:for(u in r)o.iV[u]||c[u]||(o.iV[u]=r[u]);return e(),[2]}}))}))})),[2]}))}))}))},t.prototype.loadSticker3d=function(e){return D(this,void 0,Promise,(function(){return G(this,(function(e){return[2]}))}))},t}(N),q=i(5156),H=i(6309),Y=i(1077),K=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),W=function(e,t,i,r){var n,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,i,o):n(t,i))||o);return s>3&&o&&Object.defineProperty(t,i,o),o},Z=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},X=function(e,t,i,r){return new(i||(i=Promise))((function(n,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))},$=function(e,t){var i,r,n,s,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,r&&(n=2&s[0]?r.return:s[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;switch(r=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){o.label=s[1];break}if(6===s[0]&&o.label<n[1]){o.label=n[1],n=s;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(s);break}n[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{i=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},Q=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],r=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ee=(0,g.jl)("Renderer"),te=function(){},ie=function(e){function t(t){var i=e.call(this,t)||this;return i._setup=!1,i._effects=[],i._debug=!0,i._destroyed=!1,i._isVR=!1,i._meshVertexTimer=0,console.log("[@#$] AR Renderer Constructed",location),i._debug=!1,t.output?i._canvas=new wx.window.Canvas(t.output):i._canvas=new wx.window.Canvas(wx.createOffscreenCanvas({type:"webgl",width:t.width,height:t.height})),i._stage=new n.Container,i._options=t,i._renderer=new n.Renderer({view:i._canvas,width:t.width,height:t.height,preserveDrawingBuffer:!1,antialias:!1}),i.initRenderContext(t),i.handleLoading(),i.setup(),i}return K(t,e),Object.defineProperty(t.prototype,"mirror",{set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backGroundVR",{set:function(e){if(e){this._backgroundVR=new n.Sprite(n.Texture.from(e));var t=this._backgroundVR,i=t.width,r=t.height,s=Math.max(this._options.width/i,this._options.height/r);this._backgroundVR.width*=s,this._backgroundVR.height*=s}else this._backgroundVR=null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{set:function(e){var t=e.width,i=e.height;this._canvas.width=t,this._canvas.height=i,this._renderer&&this.resize(t,i),this._baseSprite&&(this._baseSprite.width=t,this._baseSprite.height=i,this._baseSprite.position.set(t/2,i/2),this._baseSprite.anchor.set(.5,.5)),this._baseRenderTexture.resize(t,i),this._makeupRenderTexture.resize(t,i),this._options=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"app3d",{get:function(){return this._app3d},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"avatar3d",{get:function(){return this._avatar3d},enumerable:!1,configurable:!0}),t.prototype.initRenderContext=function(e){this._baseContainer=new n.Container,this._makeupContainer=new n.Container,this._finalContainer=new n.Container,this._baseRenderTexture=n.RenderTexture.create({width:e.width,height:e.height}),this._makeupRenderTexture=n.RenderTexture.create({width:e.width,height:e.height}),this._makeupContainer.addChild(new n.Sprite(this._baseRenderTexture)),te.baseTexture=this._baseRenderTexture,this._finalContainer.addChild(new n.Sprite(this._makeupRenderTexture)),this._stage.addChild(this._finalContainer),this._target=this._finalContainer},t.prototype.loadLib3d=function(){return X(this,void 0,Promise,(function(){var e;return $(this,(function(t){switch(t.label){case 0:return[4,(e=new H.e({})).init()];case 1:return t.sent(),this._options.plugin3d&&this._options.plugin3d(N,J,e,wx.window),[2]}}))}))},t.prototype.setup=function(){return X(this,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return this._setup?[2]:(this._config=new c.M,[4,this._config.load()]);case 1:return e.sent(),this._setup=!0,[2]}}))}))},Object.defineProperty(t.prototype,"meshVertex",{get:function(){return this._meshVertex},set:function(e){this._meshVertex=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mirrorFilter",{get:function(){return this._mirrorFilter||(this._mirrorFilter=new a.f("mirror",{width:p.t.instance.options.width,height:p.t.instance.options.height})),this._mirrorFilter},enumerable:!1,configurable:!0}),t.prototype.switchMode=function(e){e!==this._mode3d&&("Sticker"===e&&this.setAvatar(null),this._mode3d=e)},t.prototype.logTime=function(e){var t=+new Date;console.log("".concat(e," time:").concat(t-this.currentTime)),this.currentTime=t},t.prototype.tick=function(e){var t=e.landmarks,i=e.meshVertex,r=e.lipVertex,s=e.image,o=e.angles,a=(e.backgroundType,e.background,e.segmentation,e.blendshapes,e.isLivePusher);if(!this._destroyed)if(this._renderer)if(this._stage)if(this._setup){this.currentTime=+new Date;try{this._renderer.reset()}catch(e){}if(this._isVR)try{this._renderer.render(this._backgroundVR)}catch(e){}else{if(a)if(this._baseSprite)this._baseSprite.texture.update();else{p=n.Texture.from(s);this._baseSprite=new n.Sprite(p),this._baseSprite.anchor.set(.5,.5),this._baseSprite.position.set(this._options.width/2,this._options.height/2),this._baseSprite.scale.set(1,-1),this._baseContainer.addChild(this._baseSprite)}else{var c=s,u=c.width,h=c.height,l=c.data;if(this._baseSprite){if(this._baseSprite.texture.width===u&&this._baseSprite.texture.height===h)this._baseSprite.texture.baseTexture.resource.data=new Uint8Array(l),this._baseSprite.texture.update();else this._baseSprite.texture.destroy(!0),this._baseSprite.texture=n.Texture.fromBuffer(new Uint8Array(l),u,h)}else{var p=n.Texture.fromBuffer(new Uint8Array(l),u,h);this._baseSprite=new n.Sprite(p),this._baseSprite.anchor.set(.5,.5),this._baseSprite.position.set(this._options.width/2,this._options.height/2);var f=Math.max(this._options.width/u,this._options.height/h);this._baseSprite.scale.set(f),this._baseContainer.addChild(this._baseSprite)}}if(!t||!t.length){this._effects.forEach((function(e){return e.visible=!1})),this._effects.forEach((function(e){e.tickMesh()}));new Date;return this._renderer.render(this._baseContainer,{renderTexture:this._baseRenderTexture}),this._renderer.render(this._makeupContainer,{renderTexture:this._makeupRenderTexture}),this._renderer.render(this._stage),void(this.detected=!1)}this.detected=!0,this._faceLandmarks=t,this._angles=o,this.meshVertex=i,this.lipVertex=r,this._effects.forEach((function(e){e.visible||(e.visible=!0),e.lipmesh=r,e.mesh=i,e.angles=o,e.faceLandMarks=t,e.tick()})),this._renderer.render(this._baseContainer,{renderTexture:this._baseRenderTexture}),this._renderer.render(this._makeupContainer,{renderTexture:this._makeupRenderTexture}),this._renderer.render(this._stage),"Sticker"===this._mode3d&&this._app3d&&this._app3d.loaded&&(this._app3d.facelandmarks=t,this._app3d.angles=o,this._app3d.render())}}else g.b_.info("_renderer waiting for setup");else g.b_.info("_renderer waiting for stage");else g.b_.info("_renderer waiting for renderer")},t.prototype.getBaseTexture=function(){return this._baseSprite.texture},t.prototype.removeBackground=function(){this.background&&(this.background.remove(),this.background=null)},t.prototype.applyBackground=function(e){this.background},t.prototype.debugDraw=function(e){if(!this.points){for(var t=[],i=0;2*i<e.length;i++){var r=this.getCircle(2);t.push(r),this._baseContainer.addChild(r)}this.points=t}for(i=0;2*i<e.length;i++)this.points[i].x=e[2*i],this.points[i].y=e[2*i+1]},t.prototype.debugDraw2=function(e){if(console.log("debug draw 2",e.length),!this.points){for(var t=[],i=0;i<e.length;i++){var r=this.getCircle(2);t.push(r),this._baseContainer.addChild(r)}this.points=t}for(i=0;i<e.length;i++)this.points[i].x=540*e[i].x,this.points[i].y=540*e[i].y},t.prototype.getPixels=function(){var e=this._options,t=e.width,i=e.height,r=new Uint8Array(t*i*4),n=this._renderer.gl;return n.readPixels(0,0,t,i,n.RGBA,n.UNSIGNED_BYTE,r),{data:r,width:t,height:i}},t.prototype.setEffect=function(e,t,i,r){return X(this,void 0,Promise,(function(){var n,s=this;return $(this,(function(o){return n=!0,this.latestEffectUrls&&this.latestEffectUrls.length===e.length&&e.every((function(e){return s.latestEffectUrls.indexOf(e)>-1}))&&(n=!1,this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)),this.latestEffectUrls=e,[2,new Promise((function(o,a){n?(s.debounceTimer&&(clearTimeout(s.debounceTimer),s.debounceTimer=null),s.debounceTimer=setTimeout((function(){return s._setEffect(e,t,i,r).then((function(e){clearTimeout(s.debounceTimer),s.debounceTimer=null,o(e)}))}),100)):s._setEffect(e,t,i).then((function(e){o(e)}))}))]}))}))},t.prototype._setEffect=function(e,t,i,r){return X(this,void 0,Promise,(function(){var n,s=this;return $(this,(function(o){return g.b_.time("waiting for AI init..."),this._meshVertex?(g.b_.timeEnd("waiting for AI init..."),n="uid_"+Math.floor(1e8*Math.random()),[2,new Promise((function(o,a){return X(s,void 0,void 0,(function(){var s,a,c,u,h,l,p,f,d,_,y,m,b,v,k=this;return $(this,(function(x){switch(x.label){case 0:for(s=[].concat(this._effects),a=[],c=[],u=[],h=[],l=[],p=[],e.length||(this.filterActivedEffect=null),f=function(r){var n=s.findIndex((function(t){return t.url===e[r]})),o=void 0;if(n>-1)a.push(s[n]),o=s[n],c.push(t[r]),u.push(i[r]),s.splice(n,1);else{var l=e[r];(o=new N(l,d._makeupContainer,d._finalContainer,d._app3d,d._options,d._meshVertex,d._faceLandmarks,d.lipVertex,d._angles,t[r],d._canvas)).filterIntensity=i[r],o.renderer=d._renderer,h.push(o),p.push(o.download())}},d=this,_=0;_<e.length;_++)f(_);return[4,Promise.all(p)];case 1:if(y=x.sent(),g.b_.time("require 3d lib"),this.lib3dLoaded)return[3,5];m=0,x.label=2;case 2:return m<y.length?(b=y[m],(v=b.sticker3d)&&v.length?r&&!r()?[2]:(console.log("require 3d lib"),[4,this.loadLib3d()]):[3,4]):[3,5];case 3:x.sent(),this.lib3dLoaded=!0,x.label=4;case 4:return m++,[3,2];case 5:return g.b_.timeEnd("require 3d lib"),h.forEach((function(e){l.push(e.load().then((function(){return k._app3d||(k._app3d=e.app3d),e})).catch((function(e){ee.warn("effect load error",e)})))})),g.b_.time("renderer parse effect"),Promise.all(l).then((function(e){g.b_.timeEnd("renderer parse effect"),g.b_.time("renderer apply effect");for(var t=!1,i=0;i<h.length;i++){var r=h[i];k.latestEffectUrls&&-1===k.latestEffectUrls.indexOf(r.getUrl())&&(r.destroy(),t=!0)}if(t)ee.info(n+"end");else{s.forEach((function(e){e.remove()})),k._effects=a,a.forEach((function(e,t){e.intensity=c[t],e.filterIntensity=u[t]}));for(i=0;i<h.length;i++){r=h[i];k._effects.push(r),r.apply({filterTarget:k._baseSprite,filterCallback:function(){}})}s.forEach((function(e){e.destroy()})),g.b_.timeEnd("renderer apply effect"),o(k._effects)}})),[2]}}))}))}))]):[2,new Promise((function(n){clearTimeout(s._meshVertexTimer),s._meshVertexTimer=setInterval((function(){g.b_.info("waiting for AI init..."),s._meshVertex&&(g.b_.info("waiting for AI init...done"),clearTimeout(s._meshVertexTimer),s._setEffect(e,t,i,r).then((function(){n(s._effects)})))}),200)}))]}))}))},t.prototype.setEffectJSON=function(e){return X(this,void 0,void 0,(function(){var t,i,r,n=this;return $(this,(function(s){switch(s.label){case 0:return this.lib3dLoaded?[3,2]:(i=e.sticker3d)&&i.length?(console.log("require 3d lib"),[4,this.loadLib3d()]):[3,2];case 1:s.sent(),this.lib3dLoaded=!0,s.label=2;case 2:return(r=function(){if(n._meshVertex){t&&clearTimeout(t);var i=new J(e,n._makeupContainer,n._finalContainer,n._app3d,n._options,n._meshVertex,n._faceLandmarks,n.lipVertex);i.renderer=n._renderer,i.load().then((function(){n._app3d||(n._app3d=i.app3d);var e=[].concat(n._effects);n._effects=[i],i.apply({filterTarget:n._baseSprite}),e.forEach((function(e){e.destroy()}))}))}else t=setTimeout(r,20)})(),[2]}}))}))},t.prototype.setExclusiveFilter=function(e,t){var i=this;return void 0===t&&(t=1),new Promise((function(r,n){!function(){if(i.exclusiveFilter&&i.exclusiveFilter.getUrl()===e)i.exclusiveFilter.intensity=t,i.exclusiveFilter.filterIntensity=t;else{var n=new N(e,i._makeupContainer,i._finalContainer,i._app3d,i._options,i._meshVertex,i._faceLandmarks,i.lipVertex,i._angles,t);n.filterIntensity=t,n.load().then((function(){i.exclusiveFilter&&i.exclusiveFilter.destroy(),i.exclusiveFilter=n,n.renderer=i._renderer,n.apply({filterTarget:i._baseSprite}),r()}))}}()}))},t.prototype.resize=function(t,i){e.prototype.resize.call(this,t,i),console.log("renderer resize",t,i),this._options.width=t,this._options.height=i,this._renderer.resize(t,i),this.background&&this.background.resize(t,i),this._app3d?this._app3d.resize(t,i):this._avatar3d&&this._avatar3d.resize(t,i),this._baseRenderTexture&&this._baseRenderTexture.resize(t,i),this._makeupRenderTexture&&this._makeupRenderTexture.resize(t,i)},t.prototype.disableExclusiveFilter=function(){this.exclusiveFilter&&this.exclusiveFilter.remove()},t.prototype.enableExclusiveFilter=function(){this.exclusiveFilter&&this.exclusiveFilter.apply({filterTarget:this._baseSprite,filterCallback:function(){}})},t.prototype.disableEffects=function(){this._effects.forEach((function(e){console.log("disableEffect",e),e.isPureFilter||e.remove()}))},t.prototype.enableEffects=function(){var e=this;this._effects.forEach((function(t){t.apply({filterTarget:e._baseSprite,filterCallback:function(){}})}))},t.prototype.removeExclusiveFilter=function(){this.exclusiveFilter&&(this.exclusiveFilter.destroy(),this.exclusiveFilter=null)},t.prototype.initAvatarApp=function(e,t){return X(this,void 0,void 0,(function(){return $(this,(function(e){return[2]}))}))},t.prototype.setAvatar=function(e,t){return X(this,void 0,void 0,(function(){return $(this,(function(e){return[2]}))}))},t.prototype.registerAvatar=function(e){},t.prototype.reCorrectAvatar=function(){return X(this,void 0,void 0,(function(){return $(this,(function(e){return[2]}))}))},t.prototype.getCanvas=function(){return this._canvas},t.prototype.setOptions=function(e){},t.prototype.mount=function(e){this._canvas&&e.appendChild(this._canvas)},t.prototype.getCircle=function(e){void 0===e&&(e=5);var t=new n.Graphics;return t.beginFill(16711680),t.drawCircle(0,0,e),t.endFill(),t},t.preloadEffects=function(e){return X(this,void 0,Promise,(function(){var t,i,r,n,s,a,c;return $(this,(function(u){switch(u.label){case 0:return e.length?[4,(t=new o.pF).init()]:[2];case 1:u.sent(),i=[];try{for(r=Q(e),n=r.next();!n.done;n=r.next())(s=n.value)&&i.push(t.preload(s))}catch(e){a={error:e}}finally{try{n&&!n.done&&(c=r.return)&&c.call(r)}finally{if(a)throw a.error}}return[2,Promise.all(i).then((function(){return Promise.resolve()})).catch((function(e){return Promise.reject(e)}))]}}))}))},t.prototype.handleLoading=function(){var e=this._options,i=e.enableLoadingIcon,r=e.loadingIconOptions,n=void 0===r?{}:r;if(i){var s=t.loading=new q.Z(n);s.zIndex=20;var o=this._options,a=o.width,c=o.height;s.x=a/2,s.y=c/2,this._stage.addChild(s)}},t.prototype.showLoading=function(){t.loading&&t.loading.show()},t.prototype.hideLoading=function(){t.loading&&t.loading.hide()},t.prototype.destroy=function(){this.hideLoading(),t.loading&&t.loading.destroy(),te.baseTexture&&(te.baseTexture.destroy(!0),te.baseTexture=null),this._destroyed=!0,this._effects.forEach((function(e){e.destroy()})),this.exclusiveFilter&&this.exclusiveFilter.destroy(),this._stage&&this._stage.destroy(!0),this._renderer&&this._renderer.destroy(!0),this.background&&this.background.destroy(),this._app3d&&this._app3d.destroy(),this._meshVertexTimer&&clearTimeout(this._meshVertexTimer),this.destroyAvatar()},t.prototype.destroyAvatar=function(){this._avatar3d&&(this._avatar3d.destroy(),this._avatar3d=null)},W([(0,l.M)("ArRenderer"),Z("design:type",Function),Z("design:paramtypes",[]),Z("design:returntype",void 0)],t.prototype,"destroy",null),t}(Y.F)}}]);