<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">window.__require=function e(t,o,n){function a(c,s){if(!o[c]){if(!t[c]){var r=c.split("/");if(r=r[r.length-1],!t[r]){var l="function"==typeof __require&amp;&amp;__require;if(!s&amp;&amp;l)return l(r,!0);if(i)return i(r,!0);throw new Error("Cannot find module '"+c+"'")}c=r}var h=o[c]={exports:{}};t[c][0].call(h.exports,function(e){return a(t[c][1][e]||e)},h,h.exports,e,t,o,n)}return o[c].exports}for(var i="function"==typeof __require&amp;&amp;__require,c=0;c&lt;n.length;c++)a(n[c]);return a}({Drawing:[function(e,t,o){"use strict";cc._RF.push(t,"3ea83C+8ClPM4hZJiH+HYLc","Drawing");var n,a=this&amp;&amp;this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&amp;&amp;(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&amp;&amp;this.__decorate||function(e,t,o,n){var a,i=arguments.length,c=i&lt;3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s&gt;=0;s--)(a=e[s])&amp;&amp;(c=(i&lt;3?a(c):i&gt;3?a(t,o,c):a(t,o))||c);return i&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(t,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=cc._decorator,s=c.ccclass,r=(c.property,function(e){function t(){var t=null!==e&amp;&amp;e.apply(this,arguments)||this;return t.brushFrames=null,t.brushFrameErase=null,t.DrawTexture=[],t.isDrawOnInit=!1,t.DrawNode=null,t.isLoadDataFromInit=!1,t.DrawingPixel=null,t.BrushCotton=null,t.BrushCottonEraser=null,t.OrigionalImage=[],t.OrigionalTexture=null,t.OrigionalCanvas=null,t.OrigionalSpriteFrame=null,t.OrigionalContext=null,t.OrigionalImgData=null,t.EraseImage=null,t.EraseTexture=null,t.EraseCanvas=null,t.EraseSpriteFrame=null,t.EraseContext=null,t.EraseImgData=null,t.UserImage=null,t.UserTexture=null,t.UserCanvas=null,t.UserSpriteFrame=null,t.UserContext=null,t.UserImgData=null,t.SwitchImage=null,t.SwitchTexture=null,t.SwitchCanvas=null,t.SwitchSpriteFrame=null,t.SwitchContext=null,t.SwitchImgData=null,t.WidthSize=800,t.HeightSize=504,t.XPLUS=0,t.YPLUS=0,t.isErase=!1,t.selectedTexture=-1,t.BrushSizeNew=0,t.TotalPixel=0,t.DrawPixel=0,t.isSwitchData=!0,t.ImgDataUser=null,t.ImgDataSwitch=null,t.ImgDataErase=null,t.DrawIndex=0,t}return a(t,e),t.prototype.onloadCalled=function(){this.BrushCottonEraser=new Image,this.BrushCotton=new Image,this.UserSpriteFrame=new cc.SpriteFrame,this.EraseSpriteFrame=new cc.SpriteFrame,this.OrigionalSpriteFrame=new cc.SpriteFrame,this.SwitchSpriteFrame=new cc.SpriteFrame,this.UserTexture=new cc.Texture2D,this.EraseTexture=new cc.Texture2D,this.OrigionalTexture=new cc.Texture2D,this.SwitchTexture=new cc.Texture2D},t.prototype.LoadDrawingTextureUsingName=function(e,t){var o=this;this.OrigionalImage[t]=new Image,this.OrigionalImage[t].src=e.getTexture().nativeUrl,this.OrigionalImage[t].onload=function(){0==t&amp;&amp;(o.DrawNode.getComponent(cc.Sprite)&amp;&amp;(o.DrawNode.getComponent(cc.Sprite).trim=!0),o.loadInitCalled())}},t.prototype.LoadBrushTexture=function(e){this.BrushSizeNew=e.getTexture().width,this.brushFrames=e,this.BrushCotton.src=e.getTexture().nativeUrl},t.prototype.LoadEraserBrushTexture=function(e){this.brushFrameErase=e,this.BrushCottonEraser.src=e.getTexture().nativeUrl},t.prototype.ClearAll=function(){if(null!=this.UserContext&amp;&amp;null!=this.EraseContext&amp;&amp;null!=this.SwitchContext&amp;&amp;null!=this.DrawNode&amp;&amp;null!=this.OrigionalImage[this.selectedTexture]){-1==this.selectedTexture&amp;&amp;(this.selectedTexture=0),this.UserContext.clearRect(0,0,this.WidthSize,this.HeightSize),this.SwitchContext.clearRect(0,0,this.WidthSize,this.HeightSize),this.EraseContext.globalCompositeOperation="source-over",this.EraseContext.drawImage(this.OrigionalImage[this.selectedTexture],0,0),this.EraseContext.globalCompositeOperation="destination-out";var e=this.EraseContext.getImageData(0,0,this.WidthSize,this.HeightSize);this.EraseImgData=e.data,this.UserTexture.initWithData(this.UserContext.getImageData(0,0,this.WidthSize,this.HeightSize),cc.Texture2D.PixelFormat.RGBA8888,this.WidthSize,this.HeightSize),this.UserSpriteFrame.setTexture(this.UserTexture),this.DrawNode.getComponent(cc.Sprite)?this.DrawNode.getComponent(cc.Sprite).spriteFrame=this.UserSpriteFrame:this.DrawNode.getComponent(cc.Mask)&amp;&amp;(this.DrawNode.getComponent(cc.Mask).spriteFrame=this.UserSpriteFrame)}},t.prototype.FillFullTexture=function(){this.EraseContext.clearRect(0,0,this.WidthSize,this.HeightSize),this.ImgDataErase=this.EraseContext.getImageData(0,0,this.WidthSize,this.HeightSize),this.EraseImgData=this.ImgDataErase.data,this.UserImgData=this.ImgDataUser.data,this.isSwitchData&amp;&amp;(this.ImgDataSwitch=this.SwitchContext.getImageData(0,0,this.WidthSize,this.HeightSize),this.SwitchImgData=this.ImgDataSwitch.data);for(var e=0;e&lt;this.OrigionalImgData.length;e+=4)this.EraseImgData[e+3]&lt;=0&amp;&amp;this.SwitchImgData[e+3]&lt;=0?(this.UserImgData[e]=this.OrigionalImgData[e],this.UserImgData[e+1]=this.OrigionalImgData[e+1],this.UserImgData[e+2]=this.OrigionalImgData[e+2],this.UserImgData[e+3]=this.OrigionalImgData[e+3]):this.isSwitchData&amp;&amp;(this.UserImgData[e]=this.SwitchImgData[e],this.UserImgData[e+1]=this.SwitchImgData[e+1],this.UserImgData[e+2]=this.SwitchImgData[e+2],this.UserImgData[e+3]=this.SwitchImgData[e+3]);this.UserContext.putImageData(this.ImgDataUser,0,0),this.isSwitchData&amp;&amp;this.SwitchContext.putImageData(this.ImgDataSwitch,0,0),this.UserTexture.initWithData(this.UserContext.getImageData(0,0,this.WidthSize,this.HeightSize),cc.Texture2D.PixelFormat.RGBA8888,this.WidthSize,this.HeightSize),this.UserSpriteFrame.setTexture(this.UserTexture),this.DrawNode.getComponent(cc.Sprite)?this.DrawNode.getComponent(cc.Sprite).spriteFrame=this.UserSpriteFrame:this.DrawNode.getComponent(cc.Mask)&amp;&amp;(this.DrawNode.getComponent(cc.Mask).spriteFrame=this.UserSpriteFrame)},t.prototype.isCompleteDrawing=function(){this.DrawPixel=0,this.TotalPixel=0;var e=this.OrigionalContext.getImageData(0,0,this.WidthSize,this.HeightSize);this.OrigionalImgData=e.data;var t=this.UserContext.getImageData(0,0,this.WidthSize,this.HeightSize);this.UserImgData=t.data;for(var o=0;o&lt;this.OrigionalImgData.length;o+=4)this.UserImgData[o+3]&gt;0&amp;&amp;this.DrawPixel++,this.OrigionalImgData[o+3]&gt;0&amp;&amp;this.TotalPixel++;if(this.isErase){if(.1*this.TotalPixel&gt;=this.DrawPixel)return!0}else if(.8*this.TotalPixel&lt;this.DrawPixel)return!0;return!1},t.prototype.setBrushSize=function(e){this.BrushSizeNew=e},t.prototype.setDrawOnInit=function(e){this.isDrawOnInit=e},t.prototype.setEraserOn=function(e){0==this.isLoadDataFromInit&amp;&amp;this.loadInitCalled(),this.isErase=e,this.SwitchContext.globalCompositeOperation="destination-out",this.isErase?(this.UserContext.globalCompositeOperation="destination-out",this.EraseContext.globalCompositeOperation="source-over"):(this.EraseContext.globalCompositeOperation="destination-out",this.UserContext.globalCompositeOperation="source-over",this.SwitchContext.globalCompositeOperation="destination-out")},t.prototype.initDrawNodeMakeUp=function(e){this.onloadCalled(),this.DrawNode=e,this.XPLUS=0,this.YPLUS=0},t.prototype.initDrawNode=function(e){this.onloadCalled(),this.DrawNode=e,e.position.y&lt;0?(this.XPLUS=1.5*Math.abs(e.position.x),this.YPLUS=2*Math.abs(e.position.y)):(this.XPLUS=1.5*Math.abs(e.position.x),this.YPLUS=2*-Math.abs(e.position.y))},t.prototype.setWidthAndHeight=function(e,t){this.WidthSize=e,this.HeightSize=t,this.OrigionalCanvas=document.createElement("canvas"),this.OrigionalContext=this.OrigionalCanvas.getContext("2d"),this.OrigionalCanvas.width=this.WidthSize,this.OrigionalCanvas.height=this.HeightSize,this.EraseCanvas=document.createElement("canvas"),this.EraseContext=this.EraseCanvas.getContext("2d"),this.EraseCanvas.width=this.WidthSize,this.EraseCanvas.height=this.HeightSize,this.UserCanvas=document.createElement("canvas"),this.UserContext=this.UserCanvas.getContext("2d"),this.UserCanvas.width=this.WidthSize,this.UserCanvas.height=this.HeightSize,this.SwitchCanvas=document.createElement("canvas"),this.SwitchContext=this.SwitchCanvas.getContext("2d"),this.SwitchCanvas.width=this.WidthSize,this.SwitchCanvas.height=this.HeightSize},t.prototype.DrawImage=function(e){if(this.DrawIndex=e,this.isDrawOnInit=!0,null!=this.OrigionalImage[e]){this.UserContext.globalCompositeOperation="source-over",this.OrigionalContext.globalCompositeOperation="source-over",this.UserContext.globalCompositeOperation="source-over",this.SwitchContext.globalCompositeOperation="source-over",this.OrigionalContext.drawImage(this.OrigionalImage[e],0,0),this.EraseContext.drawImage(this.OrigionalImage[e],0,0),this.UserContext.drawImage(this.OrigionalImage[e],0,0),this.SwitchContext.drawImage(this.OrigionalImage[e],0,0);var t=this.OrigionalContext.getImageData(0,0,this.WidthSize,this.HeightSize);this.OrigionalImgData=t.data,this.UserTexture.initWithData(this.UserContext.getImageData(0,0,this.WidthSize,this.HeightSize),cc.Texture2D.PixelFormat.RGBA8888,this.WidthSize,this.HeightSize),this.UserSpriteFrame.setTexture(this.UserTexture),this.DrawNode.getComponent(cc.Sprite)?this.DrawNode.getComponent(cc.Sprite).spriteFrame=this.UserSpriteFrame:this.DrawNode.getComponent(cc.Mask)&amp;&amp;(this.DrawNode.getComponent(cc.Mask).spriteFrame=this.UserSpriteFrame);var o=this.UserContext.getImageData(0,0,this.WidthSize,this.HeightSize);this.UserImgData=o.data,this.EraseContext.clearRect(0,0,this.WidthSize,this.HeightSize);var n=this.EraseContext.getImageData(0,0,this.WidthSize,this.HeightSize);this.EraseImgData=n.data;var a=this.SwitchContext.getImageData(0,0,this.WidthSize,this.HeightSize);this.SwitchImgData=a.data}},t.prototype.loadInitCalled=function(){if(!this.isLoadDataFromInit){this.UserContext.globalCompositeOperation="source-over",this.OrigionalContext.globalCompositeOperation="source-over",this.UserContext.globalCompositeOperation="source-over",this.SwitchContext.globalCompositeOperation="source-over",this.OrigionalContext.drawImage(this.OrigionalImage[0],0,0),this.EraseContext.drawImage(this.OrigionalImage[0],0,0),this.UserContext.drawImage(this.OrigionalImage[0],0,0),this.SwitchContext.drawImage(this.OrigionalImage[0],0,0);var e=this.OrigionalContext.getImageData(0,0,this.WidthSize,this.HeightSize);this.OrigionalImgData=e.data,this.DrawNode?(this.isDrawOnInit?(this.UserTexture.initWithData(this.UserContext.getImageData(0,0,this.WidthSize,this.HeightSize),cc.Texture2D.PixelFormat.RGBA8888,this.WidthSize,this.HeightSize),this.UserSpriteFrame.setTexture(this.UserTexture),this.DrawNode.getComponent(cc.Sprite)?this.DrawNode.getComponent(cc.Sprite).spriteFrame=this.UserSpriteFrame:this.DrawNode.getComponent(cc.Mask)&amp;&amp;(this.DrawNode.getComponent(cc.Mask).spriteFrame=this.UserSpriteFrame)):this.UserContext.clearRect(0,0,this.WidthSize,this.HeightSize),this.EraseContext.clearRect(0,0,this.WidthSize,this.HeightSize)):this.UserContext.clearRect(0,0,this.WidthSize,this.HeightSize);var t=this.UserContext.getImageData(0,0,this.WidthSize,this.HeightSize);this.UserImgData=t.data;var o=this.EraseContext.getImageData(0,0,this.WidthSize,this.HeightSize);this.EraseImgData=o.data;var n=this.SwitchContext.getImageData(0,0,this.WidthSize,this.HeightSize);this.SwitchImgData=n.data,this.isLoadDataFromInit=!0,0==this.isDrawOnInit?this.ChangeTexture(0,!1):this.DrawImage(this.DrawIndex)}},t.prototype.ChangeTexture=function(e,t){if(this.selectedTexture!=e)if(0==this.isLoadDataFromInit&amp;&amp;this.loadInitCalled(),this.isErase=t,this.selectedTexture=e,this.SwitchContext.globalCompositeOperation="destination-out",this.isErase)this.UserContext.globalCompositeOperation="destination-out",this.EraseContext.globalCompositeOperation="source-over";else{this.SwitchContext.clearRect(0,0,this.WidthSize,this.HeightSize);var o=this.UserContext.getImageData(0,0,this.WidthSize,this.HeightSize);this.SwitchImgData=o.data,this.SwitchContext.putImageData(o,0,0),this.OrigionalContext.clearRect(0,0,this.WidthSize,this.HeightSize),this.EraseContext.globalCompositeOperation="source-over",this.UserContext.globalCompositeOperation="source-over",this.OrigionalContext.globalCompositeOperation="source-over",this.OrigionalContext.drawImage(this.OrigionalImage[this.selectedTexture],0,0);var n=this.OrigionalContext.getImageData(0,0,this.WidthSize,this.HeightSize);this.OrigionalImgData=n.data,this.EraseContext.drawImage(this.OrigionalImage[this.selectedTexture],0,0);var a=this.EraseContext.getImageData(0,0,this.WidthSize,this.HeightSize);this.EraseImgData=a.data,this.EraseContext.globalCompositeOperation="destination-out",this.UserContext.globalCompositeOperation="source-over",this.OrigionalContext.globalCompositeOperation="destination-out",this.SwitchContext.globalCompositeOperation="destination-out",this.TotalPixel=0;for(var i=0;i&lt;this.OrigionalImgData.length;i+=4)this.SwitchImgData[i+3]&gt;0&amp;&amp;(this.EraseImgData[i+3]=0);this.EraseContext.putImageData(a,0,0),this.finalProcess()}},t.prototype.finalProcess=function(){var e=this.UserContext.getImageData(0,0,this.WidthSize,this.HeightSize);this.UserImgData=e.data;for(var t=0;t&lt;this.OrigionalImgData.length;t+=4)this.EraseImgData[t+3]&lt;=0&amp;&amp;this.SwitchImgData[t+3]&lt;=0?(this.UserImgData[t]=this.OrigionalImgData[t],this.UserImgData[t+1]=this.OrigionalImgData[t+1],this.UserImgData[t+2]=this.OrigionalImgData[t+2],this.UserImgData[t+3]=this.OrigionalImgData[t+3]):(this.UserImgData[t]=this.SwitchImgData[t],this.UserImgData[t+1]=this.SwitchImgData[t+1],this.UserImgData[t+2]=this.SwitchImgData[t+2],this.UserImgData[t+3]=this.SwitchImgData[t+3]);this.UserContext.putImageData(e,0,0),this.UserTexture.initWithData(e,cc.Texture2D.PixelFormat.RGBA8888,this.WidthSize,this.HeightSize),this.UserSpriteFrame.setTexture(this.UserTexture),this.DrawNode.getComponent(cc.Sprite)?this.DrawNode.getComponent(cc.Sprite).spriteFrame=this.UserSpriteFrame:this.DrawNode.getComponent(cc.Mask)&amp;&amp;(this.DrawNode.getComponent(cc.Mask).spriteFrame=this.UserSpriteFrame)},t.prototype.touchMove=function(e,t,o){var n=e.getLocation(),a=e.getPreviousLocation();n.x=n.x-o.x,a.x=a.x-o.x,n.y=n.y-o.y,a.y=a.y-o.y;var i=this.DrawNode.convertToNodeSpaceAR(n),c=this.DrawNode.getContentSize();n=cc.v2(i.x+c.width/2,c.height-(i.y+c.height/2));var s=this.DrawNode.convertToNodeSpaceAR(a);a=cc.v2(s.x+c.width/2,c.height-(s.y+c.height/2));for(var r=Math.sqrt(Math.pow(a.x-n.x,2)+Math.pow(a.y-n.y,2)),l=0;l&lt;r;l+=4){var h=a.x-n.x,d=a.y-n.y,u=l/r,f=cc.v2(n.x+h*u,n.y+d*u);0==this.isErase?(this.EraseContext.drawImage(this.BrushCotton,f.x,f.y,this.BrushSizeNew,this.BrushSizeNew),this.BrushSizeNew,this.isSwitchData&amp;&amp;(this.UserContext.drawImage(this.BrushCotton,f.x,f.y,this.BrushSizeNew,this.BrushSizeNew),this.SwitchContext.drawImage(this.BrushCotton,f.x,f.y,this.BrushSizeNew,this.BrushSizeNew))):(this.EraseContext.drawImage(this.BrushCottonEraser,f.x-this.BrushSizeNew/2,f.y-this.BrushSizeNew/2,this.BrushSizeNew,this.BrushSizeNew),this.UserContext.drawImage(this.BrushCottonEraser,f.x-this.BrushSizeNew/2,f.y-this.BrushSizeNew/2,this.BrushSizeNew,this.BrushSizeNew),this.isSwitchData&amp;&amp;this.SwitchContext.drawImage(this.BrushCottonEraser,f.x-this.BrushSizeNew/2,f.y-this.BrushSizeNew/2,this.BrushSizeNew,this.BrushSizeNew))}this.isSwitchData?this.UpdateData():0==this.DrawNode.getNumberOfRunningActions()&amp;&amp;(this.DrawNode.runAction(cc.delayTime(.1)),this.UpdateData())},t.prototype.UpdateData=function(){if(this.ImgDataUser=this.UserContext.getImageData(0,0,this.WidthSize,this.HeightSize),0==this.isErase){this.ImgDataErase=this.EraseContext.getImageData(0,0,this.WidthSize,this.HeightSize),this.EraseImgData=this.ImgDataErase.data,this.UserImgData=this.ImgDataUser.data,this.isSwitchData&amp;&amp;(this.ImgDataSwitch=this.SwitchContext.getImageData(0,0,this.WidthSize,this.HeightSize),this.SwitchImgData=this.ImgDataSwitch.data);for(var e=0;e&lt;this.OrigionalImgData.length;e+=4)this.EraseImgData[e+3]&lt;=0&amp;&amp;this.SwitchImgData[e+3]&lt;=0?(this.UserImgData[e]=this.OrigionalImgData[e],this.UserImgData[e+1]=this.OrigionalImgData[e+1],this.UserImgData[e+2]=this.OrigionalImgData[e+2],this.UserImgData[e+3]=this.OrigionalImgData[e+3]):this.isSwitchData&amp;&amp;(this.UserImgData[e]=this.SwitchImgData[e],this.UserImgData[e+1]=this.SwitchImgData[e+1],this.UserImgData[e+2]=this.SwitchImgData[e+2],this.UserImgData[e+3]=this.SwitchImgData[e+3]);this.UserContext.putImageData(this.ImgDataUser,0,0),this.isSwitchData&amp;&amp;this.SwitchContext.putImageData(this.ImgDataSwitch,0,0)}this.UserTexture.initWithData(this.ImgDataUser,cc.Texture2D.PixelFormat.RGBA8888,this.WidthSize,this.HeightSize),this.UserSpriteFrame.setTexture(this.UserTexture),this.DrawNode.getComponent(cc.Sprite)?this.DrawNode.getComponent(cc.Sprite).spriteFrame=this.UserSpriteFrame:this.DrawNode.getComponent(cc.Mask)&amp;&amp;(this.DrawNode.getComponent(cc.Mask).spriteFrame=this.UserSpriteFrame)},t.prototype.touchEnd=function(){},i([s],t)}(cc.Component));o.default=r,cc._RF.pop()},{}],DressUp:[function(e,t,o){"use strict";cc._RF.push(t,"03285KOCydAe5rjdhoPXrju","DressUp");var n,a=this&amp;&amp;this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&amp;&amp;(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&amp;&amp;this.__decorate||function(e,t,o,n){var a,i=arguments.length,c=i&lt;3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s&gt;=0;s--)(a=e[s])&amp;&amp;(c=(i&lt;3?a(c):i&gt;3?a(t,o,c):a(t,o))||c);return i&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(t,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=e("./Promotion"),s=cc._decorator,r=s.ccclass,l=(s.property,function(e){function t(){var t=null!==e&amp;&amp;e.apply(this,arguments)||this;return t.Earring=null,t.Necklase=null,t.Shoes=null,t.Dress=null,t.Head=null,t.Bag=null,t.Glasses=null,t.Bracelet=null,t.Coat=null,t.Topclothes=null,t.Bottom=null,t.DressIndex=1,t.TopIndex=1,t.BottomIndex=1,t.Hair=null,t.EyeShadow=null,t.EyeLiner=null,t.Eyelash=null,t.Blush=null,t.Pupils=null,t.Eyebrow=null,t.Lips=null,t}return a(t,e),t.prototype.onLoad=function(){this.AddEvent(),cc.director.preloadScene("FinalScene"),this.Earring=cc.find("Canvas/Character/Earring"),this.Topclothes=cc.find("Canvas/Character/Topclothes"),this.Dress=cc.find("Canvas/Character/Dress"),this.Bottom=cc.find("Canvas/Character/Bottom"),this.Necklase=cc.find("Canvas/Character/Necklase"),this.Bracelet=cc.find("Canvas/Character/bracelet"),this.Shoes=cc.find("Canvas/Character/Shoes"),this.Coat=cc.find("Canvas/Character/Coat"),this.Head=cc.find("Canvas/Character/Head"),this.Glasses=cc.find("Canvas/Character/Glasses"),this.Bag=cc.find("Canvas/Character/Bag"),this.Hair=cc.find("Canvas/Character/Hair"),this.EyeShadow=cc.find("Canvas/Character/EyeShadow"),this.EyeLiner=cc.find("Canvas/Character/EyeLiner"),this.Eyelash=cc.find("Canvas/Character/Eyelash"),this.Blush=cc.find("Canvas/Character/Blush"),this.Pupils=cc.find("Canvas/Character/Eyeball"),this.Eyebrow=cc.find("Canvas/Character/Eyebrow"),this.Lips=cc.find("Canvas/Character/Lips"),sessionStorage.setItem("Top","0"),sessionStorage.setItem("Bottom","0"),sessionStorage.setItem("Dress","-1"),sessionStorage.setItem("Coat","0"),sessionStorage.setItem("Earring","0"),sessionStorage.setItem("Head","0"),sessionStorage.setItem("Necklace","0"),sessionStorage.setItem("Bracelet","0"),sessionStorage.setItem("HandBag","0"),sessionStorage.setItem("Glasses","0"),sessionStorage.setItem("Shoes","11")},t.prototype.start=function(){this.setTexture("Hair",this.Hair,"Canvas/Loader/HAIR"),this.setTexture("EyeShadow",this.EyeShadow,"Canvas/Loader/EyeShadow"),this.setTexture("EyeLiner",this.EyeLiner,"Canvas/Loader/Liner"),this.setTexture("Eyelash",this.Eyelash,"Canvas/Loader/Eyelash"),this.setTexture("Blush",this.Blush,"Canvas/Loader/Blush"),this.setTexture("Pupils",this.Pupils,"Canvas/Loader/Pupiles"),this.setTexture("Eyebrow",this.Eyebrow,"Canvas/Loader/Eyebrow"),this.setTexture("Lips",this.Lips,"Canvas/Loader/Lips")},t.prototype.setTexture=function(e,t,o){if(null!=sessionStorage.getItem(e)&amp;&amp;"0"!=sessionStorage.getItem(e)&amp;&amp;t){console.log(e,sessionStorage.getItem(e));var n=o+"/"+sessionStorage.getItem(e);t.active=!0,this.setFrame(t,n)}},t.prototype.getRandomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t)+1,Math.floor(Math.random()*(t-e))+e},t.prototype.PlayAppreciation=function(){var e=this.getRandomInt(1,5),t=cc.find("Canvas/background-4-3");0==t.getNumberOfRunningActions()&amp;&amp;(t.runAction(cc.delayTime(4)),1==e?this.PlaySound("8 - awesome"):2==e?this.PlaySound("9 - thats cool!"):3==e?this.PlaySound("10 - that amazing"):4==e?this.PlaySound("11 - gorgious"):5==e&amp;&amp;this.PlaySound("12 - Perfect!"))},t.prototype.NextAction=function(e){e.target.getComponent(cc.Button).interactable=!1,c.default.self.requestAds(),this.node.runAction(cc.sequence(cc.delayTime(.5),cc.callFunc(function(){sessionStorage.setItem("ViewIndex","4"),cc.director.loadScene("LevelScene")})))},t.prototype.addStarParticle=function(e,t){var o=cc.instantiate(cc.find("Canvas/"+e));cc.find("Canvas/Character").addChild(o),o.active=!0,o.position=t,this.PlaySound("star1"),2==this.getRandomInt(1,3)&amp;&amp;this.PlayAppreciation()},t.prototype.setFrame=function(e,t){e&amp;&amp;e.getComponent(cc.Sprite)&amp;&amp;cc.find(t)&amp;&amp;cc.find(t).getComponent(cc.Sprite)&amp;&amp;(e.getComponent(cc.Sprite).spriteFrame=cc.find(t).getComponent(cc.Sprite).spriteFrame)},t.prototype.DressAction=function(e){this.Dress.active=!0,this.Bottom.active=!1,this.Topclothes.active=!1,sessionStorage.setItem("Top","0"),sessionStorage.setItem("Bottom","0"),this.setFrame(this.Dress,"Canvas/Loader/Dress/"+e.target.name),this.addStarParticle("dressblink",cc.Vec3.ZERO),sessionStorage.setItem("Dress",e.target.name),this.PlaySound("MainPanelSelection")},t.prototype.EarringAction=function(e){this.Earring.active=!0,this.setFrame(this.Earring,"Canvas/Loader/Earring/"+e.target.name),this.addStarParticle("littlestar",this.Earring.position),sessionStorage.setItem("Earring",e.target.name),this.PlaySound("MainPanelSelection")},t.prototype.NecklaseAction=function(e){this.Necklase.active=!0,this.setFrame(this.Necklase,"Canvas/Loader/Necklace/"+e.target.name),this.addStarParticle("littlestar",this.Necklase.position),sessionStorage.setItem("Necklace",e.target.name),this.PlaySound("MainPanelSelection")},t.prototype.HeadAction=function(e){this.Head.active=!0,this.setFrame(this.Head,"Canvas/Loader/Head/"+e.target.name),this.addStarParticle("littlestar",this.Head.position),sessionStorage.setItem("Head",e.target.name),this.PlaySound("MainPanelSelection")},t.prototype.ShoesAction=function(e){this.Shoes.active=!0,this.setFrame(this.Shoes,"Canvas/Loader/Shoes/"+e.target.name),this.addStarParticle("littlestar",this.Shoes.position),sessionStorage.setItem("Shoes",e.target.name),this.PlaySound("MainPanelSelection"),console.log("Shoes")},t.prototype.GlassesAction=function(e){this.Glasses.active=!0,this.setFrame(this.Glasses,"Canvas/Loader/Glasses/"+e.target.name),this.addStarParticle("littlestar",this.Glasses.position),sessionStorage.setItem("Glasses",e.target.name),this.PlaySound("MainPanelSelection")},t.prototype.BagAction=function(e){this.Bag.active=!0,this.setFrame(this.Bag,"Canvas/Loader/Bag/"+e.target.name),this.addStarParticle("littlestar",this.Bag.position),sessionStorage.setItem("HandBag",e.target.name),this.PlaySound("MainPanelSelection")},t.prototype.TopclothesAction=function(e){this.Bottom.active=!0,this.Topclothes.active=!0,this.Dress.active=!1,this.TopIndex=e.target.name,this.setFrame(this.Topclothes,"Canvas/Loader/Topclothes/"+e.target.name),this.addStarParticle("littlestar",this.Topclothes.position),sessionStorage.setItem("Top",this.TopIndex.toString()),0==this.BottomIndex&amp;&amp;(this.BottomIndex=1),sessionStorage.setItem("Bottom",this.BottomIndex.toString()),sessionStorage.setItem("Dress","0"),this.PlaySound("MainPanelSelection")},t.prototype.BottomAction=function(e){this.Bottom.active=!0,this.Topclothes.active=!0,this.Dress.active=!1,this.BottomIndex=e.target.name,sessionStorage.setItem("Dress","0"),0==this.TopIndex&amp;&amp;(this.TopIndex=1),sessionStorage.setItem("Top",this.TopIndex.toString()),sessionStorage.setItem("Bottom",this.BottomIndex.toString()),this.setFrame(this.Bottom,"Canvas/Loader/Bottom/"+e.target.name),this.addStarParticle("littlestar",this.Bottom.position),this.PlaySound("MainPanelSelection")},t.prototype.BraceletAction=function(e){this.Bracelet.active=!0,this.setFrame(this.Bracelet,"Canvas/Loader/bracelet/"+e.target.name),this.addStarParticle("littlestar",this.Bracelet.position),sessionStorage.setItem("Bracelet",e.target.name),this.PlaySound("MainPanelSelection")},t.prototype.CoatAction=function(e){this.Coat.active=!0,this.setFrame(this.Coat,"Canvas/Loader/Coat/"+e.target.name),this.addStarParticle("littlestar",this.Coat.position),sessionStorage.setItem("Coat",e.target.name),this.PlaySound("MainPanelSelection")},t.prototype.HideAllPanel=function(){cc.find("Canvas/SidePanel").children.forEach(function(e){e.position.x&lt;=210&amp;&amp;(e.stopAllActions(),e.runAction(cc.moveTo(.3,cc.v2(353,0))))})},t.prototype.MainPanelAction=function(e){var t=e.target;this.HideAllPanel();var o="";t.opacity=254,this.PlaySound("MainPanelSelection"),"20"==t.name?o="Canvas/SidePanel/Dress":"21"==t.name?o="Canvas/SidePanel/Top":"22"==t.name?o="Canvas/SidePanel/Bottom":"23"==t.name?o="Canvas/SidePanel/Coat":"24"==t.name?o="Canvas/SidePanel/Shoes":"25"==t.name?o="Canvas/SidePanel/Head":"26"==t.name?o="Canvas/SidePanel/Earring":"27"==t.name?o="Canvas/SidePanel/Necklase":"28"==t.name?o="Canvas/SidePanel/bracelet":"29"==t.name?o="Canvas/SidePanel/Bag":"30"==t.name&amp;&amp;(o="Canvas/SidePanel/Glasses");var n=cc.find(o);if(n&amp;&amp;(n.stopAllActions(),n.runAction(cc.moveTo(.3,cc.v2(170,-20))),cc.find("Canvas/BottomPanel/MainPanel").stopAllActions(),cc.find("Canvas/BottomPanel/MainPanel").opacity=254,cc.find("Canvas/BottomPanel/MainPanel").runAction(cc.moveTo(.5,cc.v2(0,-600)))),0==cc.find("Canvas/Next").active){var a=!0;cc.find("Canvas/BottomPanel/MainPanel/view/content").children.forEach(function(e){255==e.opacity&amp;&amp;(a=!1)}),a&amp;&amp;(cc.find("Canvas/Next").active=!0)}},t.prototype.PanelHideShowAction=function(){this.PlaySound("Tap"),255==cc.find("Canvas/BottomPanel/MainPanel").opacity?(cc.find("Canvas/BottomPanel/MainPanel").stopAllActions(),cc.find("Canvas/BottomPanel/MainPanel").opacity=254,cc.find("Canvas/BottomPanel/MainPanel").runAction(cc.moveTo(.5,cc.v2(0,-600)))):(cc.find("Canvas/BottomPanel/MainPanel").stopAllActions(),cc.find("Canvas/BottomPanel/MainPanel").opacity=255,cc.find("Canvas/BottomPanel/MainPanel").runAction(cc.moveTo(.5,cc.v2(0,-346))))},t.prototype.AddEvent=function(){cc.find("Canvas/BottomPanel/MainPanel/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="DressUp",t.handler="MainPanelAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/Dress/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="DressUp",t.handler="DressAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/Earring/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="DressUp",t.handler="EarringAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/Necklase/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="DressUp",t.handler="NecklaseAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/Head/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="DressUp",t.handler="HeadAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/Shoes/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="DressUp",t.handler="ShoesAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/Glasses/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="DressUp",t.handler="GlassesAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/Bag/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="DressUp",t.handler="BagAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/Top/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="DressUp",t.handler="TopclothesAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/Bottom/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="DressUp",t.handler="BottomAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/bracelet/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="DressUp",t.handler="BraceletAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/Coat/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="DressUp",t.handler="CoatAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE})},t.prototype.PlaySound=function(e){cc.find("Canvas/SoundNode/"+e)&amp;&amp;cc.find("Canvas/SoundNode/"+e).getComponent(cc.AudioSource).play()},t.prototype.StopSound=function(e){cc.find("Canvas/SoundNode/"+e)&amp;&amp;cc.find("Canvas/SoundNode/"+e).getComponent(cc.AudioSource).stop()},t.prototype.isPlaySound=function(e){return!!cc.find("Canvas/SoundNode/"+e)&amp;&amp;cc.find("Canvas/SoundNode/"+e).getComponent(cc.AudioSource).isPlaying},t.self=null,i([r],t)}(cc.Component));o.default=l,cc._RF.pop()},{"./Promotion":"Promotion"}],FinalScreen:[function(e,t,o){"use strict";cc._RF.push(t,"d5cd1FgV3pGnobyr9EBCSVD","FinalScreen");var n,a=this&amp;&amp;this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&amp;&amp;(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&amp;&amp;this.__decorate||function(e,t,o,n){var a,i=arguments.length,c=i&lt;3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s&gt;=0;s--)(a=e[s])&amp;&amp;(c=(i&lt;3?a(c):i&gt;3?a(t,o,c):a(t,o))||c);return i&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(t,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=e("./Promotion"),s=cc._decorator,r=s.ccclass,l=(s.property,function(e){function t(){var t=null!==e&amp;&amp;e.apply(this,arguments)||this;return t.BgCounter=1,t.Top=null,t.Bottom=null,t.Dress=null,t.Coat=null,t.Head=null,t.Earring=null,t.Necklase=null,t.Shoes=null,t.Bracelet=null,t.Glasses=null,t.HandBag=null,t.Hair=null,t.EyeShadow=null,t.EyeLiner=null,t.Eyelash=null,t.Blush=null,t.Pupils=null,t.Eyebrow=null,t.Lips=null,t}var o;return a(t,e),o=t,t.prototype.onLoad=function(){o.self=this,this.Top=cc.find("Canvas/Character/Topclothes"),this.Bottom=cc.find("Canvas/Character/Bottom"),this.Dress=cc.find("Canvas/Character/Dress"),this.Coat=cc.find("Canvas/Character/Coat"),this.Head=cc.find("Canvas/Character/Head"),this.Earring=cc.find("Canvas/Character/Earring"),this.Necklase=cc.find("Canvas/Character/Necklase"),this.Shoes=cc.find("Canvas/Character/Shoes"),this.Bracelet=cc.find("Canvas/Character/bracelet"),this.Glasses=cc.find("Canvas/Character/Glasses"),this.HandBag=cc.find("Canvas/Character/Bag"),this.Hair=cc.find("Canvas/Character/Hair"),this.EyeShadow=cc.find("Canvas/Character/EyeShadow"),this.EyeLiner=cc.find("Canvas/Character/EyeLiner"),this.Eyelash=cc.find("Canvas/Character/Eyelash"),this.Blush=cc.find("Canvas/Character/Blush"),this.Pupils=cc.find("Canvas/Character/Eyeball"),this.Eyebrow=cc.find("Canvas/Character/Eyebrow"),this.Lips=cc.find("Canvas/Character/Lips")},t.prototype.start=function(){this.setTexture("Hair",this.Hair,"Canvas/Loader/HAIR"),this.setTexture("EyeShadow",this.EyeShadow,"Canvas/Loader/EyeShadow"),this.setTexture("EyeLiner",this.EyeLiner,"Canvas/Loader/Liner"),this.setTexture("Eyelash",this.Eyelash,"Canvas/Loader/Eyelash"),this.setTexture("Blush",this.Blush,"Canvas/Loader/Blush"),this.setTexture("Pupils",this.Pupils,"Canvas/Loader/Pupiles"),this.setTexture("Eyebrow",this.Eyebrow,"Canvas/Loader/Eyebrow"),this.setTexture("Lips",this.Lips,"Canvas/Loader/Lips"),this.setTexture("Top",this.Top,"Canvas/Loader/Topclothes"),this.setTexture("Bottom",this.Bottom,"Canvas/Loader/Bottom"),this.setTexture("Dress",this.Dress,"Canvas/Loader/Dress"),this.setTexture("Coat",this.Coat,"Canvas/Loader/Coat"),this.setTexture("Head",this.Head,"Canvas/Loader/Head"),this.setTexture("Earring",this.Earring,"Canvas/Loader/Earring"),this.setTexture("Necklace",this.Necklase,"Canvas/Loader/Necklace"),this.setTexture("Shoes",this.Shoes,"Canvas/Loader/Shoes"),this.setTexture("Bracelet",this.Bracelet,"Canvas/Loader/bracelet"),this.setTexture("Glasses",this.Glasses,"Canvas/Loader/Glasses"),this.setTexture("HandBag",this.HandBag,"Canvas/Loader/Bag"),null!=sessionStorage.getItem("Dress")&amp;&amp;"0"==sessionStorage.getItem("Dress")&amp;&amp;(this.Dress.active=!1),this.Dress.active?(this.Top.active=!1,this.Bottom.active=!1):(this.Top.active=!0,this.Bottom.active=!0),this.node.runAction(cc.sequence(cc.delayTime(1),cc.callFunc(function(){o.self.PlaySound("InitSound")}))),cc.find("Canvas/ChangeBg").runAction(cc.repeatForever(cc.sequence(cc.scaleTo(.5,1.1),cc.scaleTo(.3,1))))},t.prototype.setTexture=function(e,t,o){if(null!=sessionStorage.getItem(e)&amp;&amp;"0"!=sessionStorage.getItem(e)&amp;&amp;(console.log(e,sessionStorage.getItem(e)),t)){var n=o+"/"+sessionStorage.getItem(e);t.active=!0,this.setFrame(t,n)}},t.prototype.setFrame=function(e,t){e&amp;&amp;e.getComponent(cc.Sprite)&amp;&amp;cc.find(t)&amp;&amp;cc.find(t).getComponent(cc.Sprite)&amp;&amp;(e.getComponent(cc.Sprite).spriteFrame=cc.find(t).getComponent(cc.Sprite).spriteFrame)},t.prototype.addStarParticle=function(){var e=cc.instantiate(cc.find("Canvas/star"));cc.find("Canvas/Character").addChild(e),e.active=!0,e.position=cc.Vec3.ZERO,this.PlaySound("star1")},t.prototype.ChangeBgAction=function(){this.BgCounter++,cc.find("Canvas/ChangeBg").stopAllActions(),cc.find("Canvas/ChangeBg").scale=1,cc.find("Canvas/Done").active=!0,this.addStarParticle(),this.BgCounter&gt;4&amp;&amp;(this.BgCounter=1),cc.find("Canvas/bg").getComponent(cc.Sprite).spriteFrame=cc.find("Canvas/Loader/bg/"+this.BgCounter).getComponent(cc.Sprite).spriteFrame},t.prototype.DoneAction=function(e){e.target.active=!1,this.PlaySound("menu-item-click"),cc.find("Canvas/ChangeBg").active=!1,cc.tween(this.node).delay(.3).call(function(){cc.find("Canvas/more").active=!1,cc.find("Canvas/logo").active=!1,cc.find("Canvas/ChangeBg").active=!1,cc.find("Canvas/Camera").active=!1,cc.find("Canvas/promotion").position=cc.Vec3.ZERO}).start(),c.default.self.requestAds()},t.prototype.PlaySound=function(e){cc.find("Canvas/SoundNode/"+e)&amp;&amp;cc.find("Canvas/SoundNode/"+e).getComponent(cc.AudioSource).play()},t.prototype.closeAction=function(){cc.find("Canvas/PhotoFrame").active=!1,cc.find("Canvas/Done").active=!0,cc.find("Canvas/ChangeBg").active=!0,cc.find("Canvas/Camera").active=!0},t.prototype.CapturePhotoAction=function(){cc.find("Canvas/more").active=!1,cc.find("Canvas/logo").active=!1,cc.find("Canvas/Done").active=!1,cc.find("Canvas/ChangeBg").active=!1,cc.find("Canvas/Camera").active=!1,this.capturePhoto(cc.find("Canvas/PhotoFrame/i4/Texture"));var e=cc.find("Canvas/PhotoFrame");e.active=!0,e.scale=0,cc.tween(e).to(.5,{scale:1},{easing:cc.easing.elasticOut}).start(),cc.find("Canvas/more").active=!0,cc.find("Canvas/logo").active=!0},t.prototype.capturePhoto=function(e){var t=new cc.Node;t.parent=cc.director.getScene();var o=t.addComponent(cc.Camera);t.position=new cc.Vec3(252,400,0),o.cullingMask=4294967295;var n=new cc.RenderTexture;n.initWithSize(504,800,cc.RenderTexture.DepthStencilFormat.RB_FMT_S8),o.targetTexture=n,o.render();var a=n.readPixels(),i=document.createElement("canvas"),c=i.getContext("2d"),s=i.width=n.width,r=i.height=n.height;i.width=n.width,i.height=n.height;for(var l=4*s,h=0;h&lt;r;h++){for(var d=r-1-h,u=c.createImageData(s,1),f=d*s*4,p=0;p&lt;l;p++)u.data[p]=a[f+p];c.putImageData(u,0,h)}c.getImageData(0,0,504,800);var S=i.toDataURL("image/jpeg"),g=document.createElement("img");g.src=S,g.onload=function(){c.clearRect(0,0,504,800),c.drawImage(g,0,0);var t=new cc.Texture2D,o=new cc.SpriteFrame;t.initWithData(c.getImageData(0,0,504,800),cc.Texture2D.PixelFormat.RGBA8888,504,800),o.setTexture(t),e.getComponent(cc.Sprite).spriteFrame=o}},t.self=null,o=i([r],t)}(cc.Component));o.default=l,cc._RF.pop()},{"./Promotion":"Promotion"}],LevelScene:[function(e,t,o){"use strict";cc._RF.push(t,"dec99xB8NJKkoQuqfAGYxjr","LevelScene");var n,a=this&amp;&amp;this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&amp;&amp;(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&amp;&amp;this.__decorate||function(e,t,o,n){var a,i=arguments.length,c=i&lt;3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s&gt;=0;s--)(a=e[s])&amp;&amp;(c=(i&lt;3?a(c):i&gt;3?a(t,o,c):a(t,o))||c);return i&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(t,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=e("./Promotion"),s=cc._decorator,r=s.ccclass,l=(s.property,function(e){function t(){var t=null!==e&amp;&amp;e.apply(this,arguments)||this;return t.Character=[],t.CharacterPosition=[],t.CharacterScale=[],t.Counter=0,t}var o;return a(t,e),o=t,t.prototype.onLoad=function(){o.self=this,cc.director.preloadScene("SpaView")},t.prototype.start=function(){"1"==sessionStorage.getItem("ViewIndex")?(cc.find("Canvas/2").getComponent(cc.Button).interactable=!1,cc.find("Canvas/3").getComponent(cc.Button).interactable=!1,cc.find("Canvas/4").getComponent(cc.Button).interactable=!1):"2"==sessionStorage.getItem("ViewIndex")?(cc.find("Canvas/1").getComponent(cc.Button).interactable=!1,cc.find("Canvas/3").getComponent(cc.Button).interactable=!1,cc.find("Canvas/4").getComponent(cc.Button).interactable=!1):"3"==sessionStorage.getItem("ViewIndex")?(cc.find("Canvas/1").getComponent(cc.Button).interactable=!1,cc.find("Canvas/2").getComponent(cc.Button).interactable=!1,cc.find("Canvas/4").getComponent(cc.Button).interactable=!1):"4"==sessionStorage.getItem("ViewIndex")&amp;&amp;(cc.find("Canvas/1").getComponent(cc.Button).interactable=!1,cc.find("Canvas/2").getComponent(cc.Button).interactable=!1,cc.find("Canvas/3").getComponent(cc.Button).interactable=!1)},t.prototype.ButtonAction=function(e){var t=e.target.name,o="SpaView";"2"==t?o="MakeUp":"3"==t?o="DressUp":"4"==t&amp;&amp;(o="FinalScene"),c.default.self.requestAds(),this.PlaySound("bottom icon click"),this.node.runAction(cc.sequence(cc.delayTime(.5),cc.callFunc(function(){cc.director.loadScene(o)})))},t.prototype.PlaySound=function(e){cc.find("Canvas/SoundNode/"+e)&amp;&amp;cc.find("Canvas/SoundNode/"+e).getComponent(cc.AudioSource).play()},t.self=null,o=i([r],t)}(cc.Component));o.default=l,cc._RF.pop()},{"./Promotion":"Promotion"}],MainScene:[function(e,t,o){"use strict";cc._RF.push(t,"feb0fmbMrhCboV1i6lOZFRd","MainScene");var n,a=this&amp;&amp;this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&amp;&amp;(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&amp;&amp;this.__decorate||function(e,t,o,n){var a,i=arguments.length,c=i&lt;3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s&gt;=0;s--)(a=e[s])&amp;&amp;(c=(i&lt;3?a(c):i&gt;3?a(t,o,c):a(t,o))||c);return i&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(t,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=e("./Promotion"),s=cc._decorator,r=s.ccclass,l=(s.property,function(e){function t(){return null!==e&amp;&amp;e.apply(this,arguments)||this}var o;return a(t,e),o=t,t.prototype.onLoad=function(){o.self=this,cc.director.preloadScene("LevelScene"),cc.debug.setDisplayStats(!1),sessionStorage.setItem("ViewIndex","1")},t.prototype.start=function(){0==cc.audioEngine.getMusicVolume()&amp;&amp;(cc.find("Canvas/SoundOn").active=!1,cc.find("Canvas/SoundOff").active=!0),this.node.on(cc.Node.EventType.TOUCH_START,this.playCallback),cc.assetManager.loadBundle("Graphics",function(e,t){t.loadDir("MakeUp",cc.SpriteFrame,function(e,t){console.log(t)})})},t.prototype.getRandomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t)+1,Math.floor(Math.random()*(t-e))+e},t.prototype.playCallback=function(){document.getElementById("bgsound")&amp;&amp;document.getElementById("bgsound").play()},t.prototype.playBTNClicked=function(e){this.playCallback(),this.PlaySound("bottom icon click"),e.target.getComponent(cc.Button).interactable=!1,c.default.self.requestAds(),this.node.runAction(cc.sequence(cc.delayTime(1),cc.callFunc(function(){cc.director.loadScene("LevelScene")},this)))},t.prototype.onSoundOffBtnClick=function(){this.playCallback(),this.PlaySound("menu-item-click"),cc.find("Canvas/SoundOn").active=!0,cc.find("Canvas/SoundOff").active=!1,cc.audioEngine.setMusicVolume(1),cc.audioEngine.setEffectsVolume(1),document.getElementById("bgsound")&amp;&amp;(document.getElementById("bgsound").muted=!1)},t.prototype.onSoundOnBtnClick=function(){this.PlaySound("menu-item-click"),this.playCallback(),cc.find("Canvas/SoundOn").active=!1,cc.find("Canvas/SoundOff").active=!0,cc.audioEngine.setMusicVolume(0),cc.audioEngine.setEffectsVolume(0),document.getElementById("bgsound")&amp;&amp;(document.getElementById("bgsound").muted=!0)},t.prototype.PlaySound=function(e){cc.find("Canvas/SoundNode/"+e)&amp;&amp;cc.find("Canvas/SoundNode/"+e).getComponent(cc.AudioSource).play()},t.self=null,o=i([r],t)}(cc.Component));o.default=l,cc._RF.pop()},{"./Promotion":"Promotion"}],MakeUp:[function(e,t,o){"use strict";cc._RF.push(t,"86b7fHKNWRId4nTU/kC56f9","MakeUp");var n,a=this&amp;&amp;this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&amp;&amp;(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&amp;&amp;this.__decorate||function(e,t,o,n){var a,i=arguments.length,c=i&lt;3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s&gt;=0;s--)(a=e[s])&amp;&amp;(c=(i&lt;3?a(c):i&gt;3?a(t,o,c):a(t,o))||c);return i&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(t,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c,s=e("./Drawing"),r=e("./Promotion"),l=cc._decorator,h=l.ccclass;l.property,function(e){e[e.Eyebrow_1=0]="Eyebrow_1",e[e.Eyeliner_1=1]="Eyeliner_1",e[e.EyeShadow=2]="EyeShadow",e[e.EyeShadowPattern=3]="EyeShadowPattern",e[e.Eyelash_1=4]="Eyelash_1",e[e.Blush_1=5]="Blush_1",e[e.BlushPattern=6]="BlushPattern",e[e.LipStick1=7]="LipStick1",e[e.LipStick2=8]="LipStick2",e[e.LipStickPattern=9]="LipStickPattern"}(c||(c={}));var d=function(e){function t(){var t=null!==e&amp;&amp;e.apply(this,arguments)||this;return t.PanelCounter=0,t.ToolPick=[],t.ToolMove=[],t.SelectedTool=-1,t.CanMove=!1,t.SelectedToolToMove=null,t.BeganPoint=null,t.isToolDone=[],t.Hair=null,t.EyeShadow=null,t.EyeShadowPattern=null,t.EyeLiner=null,t.Eyelash=null,t.Blush=null,t.BlushPattern=null,t.Pupils=null,t.Eyebrow=null,t.Lips=null,t.LipsPattern=null,t.DrawEyebrow=null,t.DrawEyeLiner=null,t.DrawEyeShadow=null,t.DrawEyelash=null,t.DrawBlush=null,t.DrawLips=null,t.SelectedColorEyebrow=1,t.SelectedColorEyeLiner=1,t.SelectedColorEyeShadow=1,t.SelectedColorEyeLash=1,t.SelectedColorBlush=1,t.SelectedColorLipstick1=1,t.SelectedColorLipstick2=1,t.HintBlush=null,t.HintLips=null,t.HintLiner=null,t.HintEyebrow=null,t.HintEyebrow2=null,t}var o;return a(t,e),o=t,t.prototype.onLoad=function(){for(var e=0;e&lt;=c.LipStickPattern;e++)this.isToolDone[e]=!1;cc.find("Canvas/RewardFailP").active=!0,this.HintBlush=cc.find("Canvas/Character/Hint/BlushHint"),this.HintLips=cc.find("Canvas/Character/Hint/LipsHint"),this.HintLiner=cc.find("Canvas/Character/Hint/EyelashHint"),this.HintEyebrow=cc.find("Canvas/Character/Hint/EyebrowHint"),this.HintEyebrow2=cc.find("Canvas/Character/Hint/EyebrowHint2"),o.self=this,cc.director.preloadScene("DressUp"),this.addEvent(),this.ToolPick[c.Eyebrow_1]=cc.find("Canvas/Panel/Scroll/Panel2/Eyebrow_1"),this.ToolPick[c.Eyeliner_1]=cc.find("Canvas/Panel/Scroll/Panel3/EyeLiner1/11"),this.ToolPick[c.EyeShadow]=cc.find("Canvas/Panel/Scroll/Panel4/EyeShadow/Shadow/Brush"),this.ToolPick[c.EyeShadowPattern]=cc.find("Canvas/Panel/Scroll/Panel4/EyeShadowPattern/3b"),this.ToolPick[c.Eyelash_1]=cc.find("Canvas/Panel/Scroll/Panel5/1"),this.ToolPick[c.Blush_1]=cc.find("Canvas/Panel/Scroll/Panel6/2"),this.ToolPick[c.BlushPattern]=cc.find("Canvas/Panel/Scroll/Panel6/6"),this.ToolPick[c.LipStick1]=cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick1"),this.ToolPick[c.LipStick2]=cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick2"),this.ToolPick[c.LipStickPattern]=cc.find("Canvas/Panel/Scroll/Panel7/Pattern"),this.ToolMove[c.Eyebrow_1]=cc.find("Canvas/Panel/Scroll/Panel2/Eyebrow_1/1"),this.ToolMove[c.Eyeliner_1]=cc.find("Canvas/Panel/Scroll/Panel3/EyeLiner1/11"),this.ToolMove[c.EyeShadow]=cc.find("Canvas/Panel/Scroll/Panel4/EyeShadow/Shadow/Brush"),this.ToolMove[c.EyeShadowPattern]=cc.find("Canvas/Panel/Scroll/Panel4/EyeShadowPattern/3b"),this.ToolMove[c.Eyelash_1]=cc.find("Canvas/Panel/Scroll/Panel5/1"),this.ToolMove[c.Blush_1]=cc.find("Canvas/Panel/Scroll/Panel6/2"),this.ToolMove[c.BlushPattern]=cc.find("Canvas/Panel/Scroll/Panel6/6"),this.ToolMove[c.LipStick1]=cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick1"),this.ToolMove[c.LipStick2]=cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick2"),this.ToolMove[c.LipStickPattern]=cc.find("Canvas/Panel/Scroll/Panel7/Pattern"),this.Hair=cc.find("Canvas/Character/Hair"),this.EyeShadow=cc.find("Canvas/Character/EyeShadow"),this.EyeShadowPattern=cc.find("Canvas/Character/EyeshadowPattern"),this.EyeLiner=cc.find("Canvas/Character/EyeLiner"),this.Eyelash=cc.find("Canvas/Character/EyeLash"),this.Blush=cc.find("Canvas/Character/Blush"),this.BlushPattern=cc.find("Canvas/Character/BlushPattern"),this.Pupils=cc.find("Canvas/Character/Eyeball"),this.Eyebrow=cc.find("Canvas/Character/EyeBrow"),this.Lips=cc.find("Canvas/Character/LipStick"),this.LipsPattern=cc.find("Canvas/Character/LipStickPattern"),this.DrawEyebrow=new s.default,this.DrawEyebrow.isDrawOnInit=!0,this.DrawEyebrow.initDrawNodeMakeUp(this.Eyebrow),this.DrawEyebrow.setWidthAndHeight(this.Eyebrow.getContentSize().width,this.Eyebrow.getContentSize().height);var t=0;for(e=0;e&lt;7;e++)this.DrawEyebrow.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/Eyebrow/E1/"+e).getComponent(cc.Sprite).spriteFrame,t),t++;for(this.DrawEyebrow.LoadBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),this.DrawEyebrow.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),this.DrawEyebrow.setBrushSize(30),this.DrawEyeLiner=new s.default,this.DrawEyeLiner.isDrawOnInit=!0,this.DrawEyeLiner.initDrawNodeMakeUp(this.EyeLiner),this.DrawEyeLiner.setWidthAndHeight(this.EyeLiner.getContentSize().width,this.EyeLiner.getContentSize().height),t=0,e=0;e&lt;7;e++)this.DrawEyeLiner.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/Liner/"+e).getComponent(cc.Sprite).spriteFrame,t),t++;for(this.DrawEyeLiner.LoadBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),this.DrawEyeLiner.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),this.DrawEyeLiner.setBrushSize(20),this.DrawEyeShadow=new s.default,this.DrawEyeShadow.isDrawOnInit=!1,this.DrawEyeShadow.initDrawNodeMakeUp(this.EyeShadow),this.DrawEyeShadow.setWidthAndHeight(this.EyeShadow.getContentSize().width,this.EyeShadow.getContentSize().height),t=0,e=0;e&lt;6;e++)this.DrawEyeShadow.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/EyeShadow/"+(e+1)).getComponent(cc.Sprite).spriteFrame,e);for(this.DrawEyeShadow.LoadBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),this.DrawEyeShadow.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),this.DrawEyeShadow.setBrushSize(30),this.DrawEyelash=new s.default,this.DrawEyelash.isDrawOnInit=!1,this.DrawEyelash.initDrawNodeMakeUp(this.Eyelash),this.DrawEyelash.setWidthAndHeight(this.Eyelash.getContentSize().width,this.Eyelash.getContentSize().height),t=1,this.DrawEyelash.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/spa-lash").getComponent(cc.Sprite).spriteFrame,0),e=0;e&lt;6;e++)this.DrawEyelash.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/Eyelash/"+(e+1)).getComponent(cc.Sprite).spriteFrame,t),t++;for(this.DrawEyelash.LoadBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),this.DrawEyelash.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),this.DrawEyelash.setBrushSize(30),this.DrawBlush=new s.default,this.DrawBlush.isDrawOnInit=!1,this.DrawBlush.initDrawNodeMakeUp(this.Blush),this.DrawBlush.setWidthAndHeight(this.Blush.getContentSize().width,this.Blush.getContentSize().height),t=0,e=0;e&lt;6;e++)this.DrawBlush.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/Blush/"+(e+1)).getComponent(cc.Sprite).spriteFrame,t),t++;for(this.DrawBlush.LoadBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),this.DrawBlush.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),this.DrawBlush.setBrushSize(20),this.DrawLips=new s.default,this.DrawLips.isDrawOnInit=!1,this.DrawLips.initDrawNodeMakeUp(this.Lips),this.DrawLips.setWidthAndHeight(this.Lips.getContentSize().width,this.Lips.getContentSize().height),t=0,e=0;e&lt;2;e++)for(var n=0;n&lt;6;n++)this.DrawLips.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/Lips/"+(e+1)+"/"+(n+1)).getComponent(cc.Sprite).spriteFrame,t),t++;this.DrawLips.LoadBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),this.DrawLips.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-small").getComponent(cc.Sprite).spriteFrame),this.DrawLips.setBrushSize(20)},t.prototype.start=function(){sessionStorage.setItem("Pupils","2"),sessionStorage.setItem("Eyebrow","7"),sessionStorage.setItem("EyeLiner","7"),sessionStorage.setItem("Eyelash","0"),sessionStorage.setItem("Blush","0"),sessionStorage.setItem("Lips","0"),sessionStorage.setItem("Hair","0"),sessionStorage.setItem("EyeShadow","0"),this.node.on(cc.Node.EventType.TOUCH_START,this.TouchBegan),this.node.on(cc.Node.EventType.TOUCH_MOVE,this.TouchMove),this.node.on(cc.Node.EventType.TOUCH_END,this.TouchEnd),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.TouchEnd)},t.prototype.ShowHint=function(e){if(1==e){var t=0;0==(o=cc.find("Canvas/Panel/Scroll/Panel3/EyeLiner1/11")).getNumberOfRunningActions()&amp;&amp;o.runAction(cc.repeat(cc.sequence(cc.delayTime(.2*t),cc.jumpBy(.3,cc.Vec2.ZERO,50,1),cc.delayTime(2)),2))}else if(0==e)for(t=0;t&lt;1&amp;&amp;0==(o=cc.find("Canvas/Panel/Scroll/Panel2/Eyebrow_"+(t+1))).getNumberOfRunningActions();t++)o.runAction(cc.repeat(cc.sequence(cc.delayTime(.2*t),cc.jumpBy(.3,cc.Vec2.ZERO,50,1),cc.delayTime(2)),2));else if(2==e)0==(o=cc.find("Canvas/Panel/Scroll/Panel4/EyeShadow/Shadow/Brush")).getNumberOfRunningActions()&amp;&amp;o.runAction(cc.repeat(cc.sequence(cc.jumpBy(.3,cc.Vec2.ZERO,50,1),cc.delayTime(1)),10));else if(3==e)for(t=0;t&lt;1&amp;&amp;0==(o=cc.find("Canvas/Panel/Scroll/Panel5/1")).getNumberOfRunningActions();t++)o.runAction(cc.repeat(cc.sequence(cc.delayTime(.2*t),cc.jumpBy(.3,cc.Vec2.ZERO,50,1),cc.delayTime(1)),2));else if(4==e)for(t=0;t&lt;1;t++){var o;if(0!=(o=cc.find("Canvas/Panel/Scroll/Panel6/"+(t+2))).getNumberOfRunningActions())break;o.runAction(cc.repeat(cc.sequence(cc.delayTime(.2*t),cc.jumpBy(.3,cc.Vec2.ZERO,50,1),cc.delayTime(1)),2))}},t.prototype.TouchBegan=function(e){var t=e.getLocation(),n=cc.v3(o.self.node.convertToNodeSpaceAR(t));o.self.isPick(o.self.ToolPick[c.Eyebrow_1],t)?(o.self.ToolPickBegan(c.Eyebrow_1,n),o.self.DrawEyebrow.ChangeTexture(o.self.SelectedColorEyebrow,!1),o.self.DrawEyebrow.setEraserOn(!1),sessionStorage.setItem("Eyebrow",o.self.SelectedColorEyebrow.toString()),2==o.self.SelectedColorEyebrow||5==o.self.SelectedColorEyebrow||6==o.self.SelectedColorEyebrow?o.self.HintEyebrow2.active=!0:o.self.HintEyebrow.active=!0):o.self.isPick(o.self.ToolPick[c.Eyeliner_1],t)?(o.self.ToolPickBegan(c.Eyeliner_1,n),o.self.DrawEyeLiner.ChangeTexture(o.self.SelectedColorEyeLiner,!1),o.self.ShowPanel("EyeLiner1"),sessionStorage.setItem("EyeLiner",o.self.SelectedColorEyeLiner.toString()),o.self.HintLiner.active=!0):o.self.isPick(o.self.ToolPick[c.EyeShadow],t)?(o.self.ToolPickBegan(c.EyeShadow,n),o.self.ShowPanel("EyeShadow"),sessionStorage.setItem("EyeShadow",(o.self.SelectedColorEyeShadow+1).toString()),o.self.HintLiner.active=!0):o.self.isPick(o.self.ToolPick[c.EyeShadowPattern],t)?(o.self.ToolPickBegan(c.EyeShadowPattern,n),o.self.HideAllPanel(),sessionStorage.setItem("EyeShadowPattern","true"),o.self.HintLiner.active=!0):o.self.isPick(o.self.ToolPick[c.Eyelash_1],t)?(o.self.ToolPickBegan(c.Eyelash_1,n),o.self.DrawEyelash.ChangeTexture(o.self.SelectedColorEyeLash,!1),console.log("MakeUp.self.SelectedColorEyeLash",o.self.SelectedColorEyeLash),o.self.ShowPanel("EyelashColorButton"),o.self.SelectedToolToMove.runAction(cc.rotateBy(.3,-90)),sessionStorage.setItem("Eyelash",o.self.SelectedColorEyeLash.toString()),o.self.HintLiner.active=!0):o.self.isPick(o.self.ToolPick[c.Blush_1],t)?(o.self.ToolPickBegan(c.Blush_1,n),o.self.DrawBlush.ChangeTexture(o.self.SelectedColorBlush-1,!1),o.self.ShowPanel("BlushColorPanelButton"),sessionStorage.setItem("Blush",o.self.SelectedColorBlush.toString()),o.self.HintBlush.active=!0):o.self.isPick(o.self.ToolPick[c.BlushPattern],t)?(o.self.ToolPickBegan(c.BlushPattern,n),o.self.HideAllPanel(),sessionStorage.setItem("BlushPattern","true"),o.self.HintBlush.active=!0):o.self.isPick(o.self.ToolPick[c.LipStick1],t)?(o.self.ToolPickBegan(c.LipStick1,n),o.self.DrawLips.ChangeTexture(o.self.SelectedColorLipstick1-1,!1),o.self.ShowPanel("LIpsStick1"),sessionStorage.setItem("Lips",o.self.SelectedColorLipstick1.toString()),o.self.HintLips.active=!0):o.self.isPick(o.self.ToolPick[c.LipStick2],t)?(o.self.ToolPickBegan(c.LipStick2,n),o.self.DrawLips.ChangeTexture(6+o.self.SelectedColorLipstick2-1,!1),o.self.ShowPanel("LIpsStick2"),sessionStorage.setItem("Lips",6+o.self.SelectedColorLipstick2.toString()),o.self.HintLips.active=!0):o.self.isPick(o.self.ToolPick[c.LipStickPattern],t)&amp;&amp;(o.self.ToolPickBegan(c.LipStickPattern,n),o.self.HideAllPanel(),sessionStorage.setItem("LipsPattern","true"),o.self.HintLips.active=!0)},t.prototype.TouchMove=function(e,t){var n=e.getLocation(),a=cc.v3(o.self.node.convertToNodeSpaceAR(n));if(0!=o.self.CanMove)if(c.Eyebrow_1==o.self.SelectedTool){o.self.SelectedToolToMove.position=a;var i=cc.v2(55,-35);o.self.DrawEyebrow.touchMove(e,t,i)}else c.Eyeliner_1==o.self.SelectedTool?(o.self.SelectedToolToMove.position=a,i=cc.v2(10,-90),o.self.DrawEyeLiner.touchMove(e,t,i)):c.EyeShadow==o.self.SelectedTool?(o.self.SelectedToolToMove.position=a,i=cc.v2(80,-60),o.self.DrawEyeShadow.touchMove(e,t,i)):c.EyeShadowPattern==o.self.SelectedTool?(o.self.SelectedToolToMove.position=a,i=cc.v2(60,-30)):c.Eyelash_1==o.self.SelectedTool?(o.self.SelectedToolToMove.position=a,i=cc.v2(100,-10),o.self.DrawEyelash.touchMove(e,t,i)):c.Blush_1==o.self.SelectedTool?(o.self.SelectedToolToMove.position=a,i=cc.v2(0,-30),o.self.DrawBlush.touchMove(e,t,i)):c.BlushPattern==o.self.SelectedTool?(o.self.SelectedToolToMove.position=a,i=cc.v2(0,-30)):c.LipStick1==o.self.SelectedTool||c.LipStick2==o.self.SelectedTool?(o.self.SelectedToolToMove.position=a,i=cc.v2(0,-70),o.self.DrawLips.touchMove(e,t,i)):c.LipStickPattern==o.self.SelectedTool&amp;&amp;(o.self.SelectedToolToMove.position=a,i=cc.v2(0,-60))},t.prototype.TouchEnd=function(e){var t=e.getLocation();cc.v3(o.self.node.convertToNodeSpaceAR(t)),0!=o.self.CanMove&amp;&amp;(o.self.CanMove=!1,c.Eyebrow_1==o.self.SelectedTool?(o.self.HintEyebrow.active=!1,o.self.HintEyebrow2.active=!1,o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf()))):c.Eyeliner_1==o.self.SelectedTool?(o.self.HintLiner.active=!1,o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf()))):c.EyeShadow==o.self.SelectedTool?(o.self.HintLiner.active=!1,o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0,o.self.ToolPick[o.self.SelectedTool].parent.active=!0}),cc.removeSelf()))):c.EyeShadowPattern==o.self.SelectedTool?(o.self.HintLiner.active=!1,o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0,o.self.ToolPick[o.self.SelectedTool].parent.active=!0}),cc.removeSelf()))):c.Eyelash_1==o.self.SelectedTool?(o.self.HintLiner.active=!1,o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf()))):c.Blush_1==o.self.SelectedTool?(o.self.HintBlush.active=!1,o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf()))):c.BlushPattern==o.self.SelectedTool?(o.self.HintBlush.active=!1,o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf()))):c.LipStick1==o.self.SelectedTool||c.LipStick2==o.self.SelectedTool?(o.self.HintLips.active=!1,o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf()))):c.LipStickPattern==o.self.SelectedTool&amp;&amp;(o.self.HintLips.active=!1,o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf()))))},t.prototype.addParticle=function(){var e=cc.instantiate(cc.find("Canvas/star"));this.node.addChild(e),e.active=!0,this.PlaySound("star1")},t.prototype.ToolPickBegan=function(e,t){o.self.CanMove=!0,o.self.SelectedTool=e,console.log(o.self.SelectedTool),o.self.ToolPick[o.self.SelectedTool].active=!1;var n=cc.instantiate(o.self.ToolMove[o.self.SelectedTool]);cc.find("Canvas/MoveTool").addChild(n),n.active=!0,n.getComponent(cc.Button)&amp;&amp;n.removeComponent(cc.Button),o.self.SelectedToolToMove=n,o.self.SelectedToolToMove.position=t,o.self.SelectedToolToMove.opacity=255,o.self.BeganPoint=cc.v2(t),this.PlaySound("Tap"),o.self.SelectedTool!=c.EyeShadow&amp;&amp;o.self.SelectedTool!=c.EyeShadowPattern||(o.self.ToolPick[o.self.SelectedTool].parent.active=!1)},t.prototype.isPick=function(e,t){return null!=e&amp;&amp;0!=e.active&amp;&amp;!!e.getBoundingBoxToWorld().contains(t)},t.prototype.HideAllPanel=function(){cc.find("Canvas/SidePanel").children.forEach(function(e){e.position.x&lt;=190&amp;&amp;(e.stopAllActions(),e.runAction(cc.moveTo(.3,cc.v2(400,38))))}),this.EnableAllPanelButton(),cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick1").getComponent(cc.Button).enabled=!0,cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick2").getComponent(cc.Button).enabled=!0,cc.find("Canvas/Panel/Scroll/Panel2/Eyebrow_1").getComponent(cc.Button).enabled=!0,cc,cc.find("Canvas/Panel/Scroll/Panel3/EyeLiner1").getComponent(cc.Button).enabled=!0},t.prototype.EnableAllPanelButton=function(){for(var e=1;e&lt;=7;e++)cc.find("Canvas/Panel/Scroll/Panel"+e).children.forEach(function(e){e.getComponent(cc.Button)&amp;&amp;(e.getComponent(cc.Button).interactable=!0)})},t.prototype.ShowPanel=function(e){this.HideAllPanel(),this.EnableAllPanelButton(),cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick1").getComponent(cc.Button).enabled=!0,cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick2").getComponent(cc.Button).enabled=!0,cc.find("Canvas/Panel/Scroll/Panel2/Eyebrow_1").getComponent(cc.Button).enabled=!0,cc.find("Canvas/Panel/Scroll/Panel3/EyeLiner1").getComponent(cc.Button).enabled=!0,"Hair"==e?(cc.find("Canvas/SidePanel/Hair").stopAllActions(),cc.find("Canvas/SidePanel/Hair").runAction(cc.moveTo(.5,cc.v2(180,70)))):"Pupils"==e?(cc.find("Canvas/SidePanel/Pupil").stopAllActions(),cc.find("Canvas/SidePanel/Pupil").runAction(cc.moveTo(.5,cc.v2(180,70)))):"BlushColorPanelButton"==e?(cc.find("Canvas/SidePanel/Blush").stopAllActions(),cc.find("Canvas/SidePanel/Blush").runAction(cc.moveTo(.5,cc.v2(180,70)))):"EyeLiner1"==e?(cc.find("Canvas/Panel/Scroll/Panel3/EyeLiner1").getComponent(cc.Button).enabled=!1,cc.find("Canvas/SidePanel/Eyeline").stopAllActions(),cc.find("Canvas/SidePanel/Eyeline").runAction(cc.moveTo(.5,cc.v2(180,70)))):"Eyebrow_1"==e?(cc.find("Canvas/Panel/Scroll/Panel2/Eyebrow_1").getComponent(cc.Button).enabled=!1,cc,cc.find("Canvas/SidePanel/Eyebrow").stopAllActions(),cc.find("Canvas/SidePanel/Eyebrow").runAction(cc.moveTo(.5,cc.v2(180,70)))):"EyeShadow"==e?(cc.find("Canvas/SidePanel/EyeShadow").stopAllActions(),cc.find("Canvas/SidePanel/EyeShadow").runAction(cc.moveTo(.5,cc.v2(180,70)))):"EyelashColorButton"==e?(cc.find("Canvas/SidePanel/Eyelash").stopAllActions(),cc.find("Canvas/SidePanel/Eyelash").runAction(cc.moveTo(.5,cc.v2(180,70)))):"LIpsStick1"==e?(cc.find("Canvas/SidePanel/LipStick1").stopAllActions(),cc.find("Canvas/SidePanel/LipStick1").runAction(cc.moveTo(.5,cc.v2(180,70))),cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick1").getComponent(cc.Button).enabled=!1):"LIpsStick2"==e&amp;&amp;(cc.find("Canvas/SidePanel/LipStick2").stopAllActions(),cc.find("Canvas/SidePanel/LipStick2").runAction(cc.moveTo(.5,cc.v2(180,70))),cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick2").getComponent(cc.Button).enabled=!1)},t.prototype.MainPanelButtonAction=function(e){var t=e.target;"Hair"==t.name?(this.ShowPanel(t.name),this.PlaySound("MainPanelSelection"),t.getComponent(cc.Button).interactable=!1):"Pupils"==t.name?(this.ShowPanel(t.name),this.PlaySound("MainPanelSelection"),t.getComponent(cc.Button).interactable=!1):"BlushColorPanelButton"==t.name?(this.ShowPanel(t.name),this.PlaySound("MainPanelSelection"),t.getComponent(cc.Button).interactable=!1):"EyeLiner1"==t.name?(this.ShowPanel(t.name),this.PlaySound("MainPanelSelection")):"Eyebrow_1"==t.name||"EyebrowBox"==t.name?(this.ShowPanel("Eyebrow_1"),this.PlaySound("MainPanelSelection")):"EyeShadow"==t.name?(this.ShowPanel(t.name),this.PlaySound("MainPanelSelection"),t.getComponent(cc.Button).interactable=!1):"EyelashColorButton"==t.name?(this.ShowPanel(t.name),this.PlaySound("MainPanelSelection"),t.getComponent(cc.Button).interactable=!1):"LIpsStick1"==t.name?(this.ShowPanel(t.name),this.PlaySound("MainPanelSelection"),t.getComponent(cc.Button).interactable=!1):"LIpsStick2"==t.name&amp;&amp;(this.ShowPanel(t.name),this.PlaySound("MainPanelSelection"),t.getComponent(cc.Button).interactable=!1)},t.prototype.ScrollNext=function(){this.PlaySound("arrow"),this.HideAllPanel();var e=cc.find("Canvas/Panel/Scroll");0==e.getNumberOfRunningActions()&amp;&amp;(e.runAction(cc.moveBy(.3,cc.v2(-504,0))),this.PanelCounter++,cc.find("Canvas/Panel/PreviousPanel").getComponent(cc.Button).interactable=!0,4==this.PanelCounter&amp;&amp;(cc.find("Canvas/Panel/NextPanel").getComponent(cc.Button).interactable=!1,cc.find("Canvas/Next").active=!0))},t.prototype.ScrollPrevious=function(){this.PlaySound("arrow"),this.HideAllPanel();var e=cc.find("Canvas/Panel/Scroll");0==e.getNumberOfRunningActions()&amp;&amp;(e.runAction(cc.moveBy(.3,cc.v2(504,0))),this.PanelCounter--,0==this.PanelCounter&amp;&amp;(cc.find("Canvas/Panel/PreviousPanel").getComponent(cc.Button).interactable=!1),cc.find("Canvas/Panel/NextPanel").getComponent(cc.Button).interactable=!0)},t.prototype.NextAction=function(e){this.PlaySound("menu-item-click"),e.target.getComponent(cc.Button).interactable=!1,r.default.self.requestAds(),this.node.runAction(cc.sequence(cc.delayTime(.5),cc.callFunc(function(){sessionStorage.setItem("ViewIndex","3"),cc.director.loadScene("LevelScene")})))},t.prototype.EnableAll=function(e){e.children.forEach(function(e){e.getComponent(cc.Button)&amp;&amp;(e.getComponent(cc.Button).interactable=!0)})},t.prototype.setFrame=function(e,t){e&amp;&amp;e.getComponent(cc.Sprite)&amp;&amp;cc.find(t)&amp;&amp;cc.find(t).getComponent(cc.Sprite)&amp;&amp;(e.getComponent(cc.Sprite).spriteFrame=cc.find(t).getComponent(cc.Sprite).spriteFrame)},t.prototype.HairAction=function(e){var t=e.target;this.EnableAll(t.parent),t.getComponent(cc.Button).interactable=!1,this.setFrame(this.Hair,"Canvas/Loader/Hair/"+e.target.name),sessionStorage.setItem("Hair",e.target.name),this.addParticle(),this.PlaySound("SubPanel")},t.prototype.BlushAction=function(e){this.SelectedColorBlush=parseInt(e.target.name),console.log("this.SelectedColorBlush"+this.SelectedColorBlush),this.PlaySound("SubPanel"),this.ShowHint(4)},t.prototype.EyebrowAction=function(e){this.SelectedColorEyebrow=parseInt(e.target.name),console.log("this.SelectedColorEyebrow"+this.SelectedColorEyebrow),this.PlaySound("SubPanel"),this.ShowHint(0)},t.prototype.EyelashAction=function(e){this.SelectedColorEyeLash=parseInt(e.target.name),console.log("this.SelectedColorEyeLash",this.SelectedColorEyeLash),this.PlaySound("SubPanel"),this.ShowHint(3)},t.prototype.EyelinerAction=function(e){this.SelectedColorEyeLiner=parseInt(e.target.name),this.PlaySound("SubPanel"),this.ShowHint(1)},t.prototype.EyeShadowAction=function(e){var t=e.target;if(t.childrenCount&gt;0)r.default.self.requestRewardAds(t.children[0]);else{var n=parseInt(e.target.name)-1;o.self.DrawEyeShadow.ChangeTexture(n,!1),this.PlaySound("SubPanel"),this.SelectedColorEyeShadow=n,this.ShowHint(2)}},t.prototype.LipStick1Action=function(e){this.SelectedColorLipstick1=parseInt(e.target.name),this.PlaySound("SubPanel"),cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick1").children.forEach(function(e){e.active=!1}),cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick1/"+e.target.name).active=!0,cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick1").getComponent(cc.Button).enabled=!1;var t=cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick1");0==t.getNumberOfRunningActions()&amp;&amp;t.runAction(cc.repeat(cc.sequence(cc.jumpBy(.3,cc.Vec2.ZERO,50,1),cc.delayTime(1)),2))},t.prototype.LipStick2Action=function(e){this.SelectedColorLipstick2=parseInt(e.target.name),this.PlaySound("SubPanel"),cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick2").children.forEach(function(e){e.active=!1}),cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick2/"+e.target.name).active=!0,cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick2").getComponent(cc.Button).enabled=!1;var t=cc.find("Canvas/Panel/Scroll/Panel7/LIpsStick2");0==t.getNumberOfRunningActions()&amp;&amp;t.runAction(cc.repeat(cc.sequence(cc.jumpBy(.3,cc.Vec2.ZERO,50,1),cc.delayTime(1)),2))},t.prototype.PupilAction=function(e){var t=e.target;this.EnableAll(t.parent),this.PlaySound("SubPanel"),t.getComponent(cc.Button).interactable=!1,this.setFrame(this.Pupils,"Canvas/Loader/Pupils/"+e.target.name),sessionStorage.setItem("Pupils",e.target.name),this.addParticle()},t.prototype.addEvent=function(){cc.find("Canvas/SidePanel/Eyelash/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="MakeUp",t.handler="EyelashAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/Pupil/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="MakeUp",t.handler="PupilAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/LipStick2/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="MakeUp",t.handler="LipStick2Action",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/LipStick1/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="MakeUp",t.handler="LipStick1Action",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/EyeShadow/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="MakeUp",t.handler="EyeShadowAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE,e.childrenCount&gt;0&amp;&amp;(console.log(e.children[0].name),null!=sessionStorage.getItem(e.children[0].name)&amp;&amp;"true"==sessionStorage.getItem(e.children[0].name)&amp;&amp;e.removeAllChildren())}),cc.find("Canvas/SidePanel/Eyeline/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="MakeUp",t.handler="EyelinerAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/Hair/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="MakeUp",t.handler="HairAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/Blush/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="MakeUp",t.handler="BlushAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE}),cc.find("Canvas/SidePanel/Eyebrow/view/content").children.forEach(function(e){e.addComponent(cc.Button);var t=new cc.Component.EventHandler;t.target=cc.find("Canvas"),t.component="MakeUp",t.handler="EyebrowAction",t.customEventData="";var o=e.getComponent(cc.Button);o.clickEvents.push(t),o.transition=cc.Button.Transition.SCALE})},t.prototype.PlaySound=function(e){cc.find("Canvas/SoundNode/"+e)&amp;&amp;cc.find("Canvas/SoundNode/"+e).getComponent(cc.AudioSource).play()},t.prototype.StopSound=function(e){cc.find("Canvas/SoundNode/"+e)&amp;&amp;cc.find("Canvas/SoundNode/"+e).getComponent(cc.AudioSource).stop()},t.prototype.isPlaySound=function(e){return!!cc.find("Canvas/SoundNode/"+e)&amp;&amp;cc.find("Canvas/SoundNode/"+e).getComponent(cc.AudioSource).isPlaying},t.self=null,o=i([h],t)}(cc.Component);o.default=d,cc._RF.pop()},{"./Drawing":"Drawing","./Promotion":"Promotion"}],Promotion:[function(e,t,o){"use strict";cc._RF.push(t,"45505tGjflKcZ+9FIVkGumJ","Promotion");var n,a=this&amp;&amp;this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&amp;&amp;(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&amp;&amp;this.__decorate||function(e,t,o,n){var a,i=arguments.length,c=i&lt;3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s&gt;=0;s--)(a=e[s])&amp;&amp;(c=(i&lt;3?a(c):i&gt;3?a(t,o,c):a(t,o))||c);return i&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(t,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=e("./Splash"),s=cc._decorator,r=s.ccclass,l=(s.property,function(e){function t(){var t=null!==e&amp;&amp;e.apply(this,arguments)||this;return t.isAdRunnning=!1,t.isSwitchTab=!1,t.Lock=null,t}var o;return a(t,e),o=t,t.prototype.start=function(){o.self=this;var e=this;"promoBack"==e.node.name&amp;&amp;this.setPromoThumb();var t="game";"MainScene"==cc.director.getScene().name&amp;&amp;(t="mainscreen"),this.node.on(cc.Node.EventType.TOUCH_END,function(){YYGGames&amp;&amp;(console.log(e.node.name),"promoBack"==e.node.name?255==e.node.parent.opacity&amp;&amp;YYGGames.navigate("gameoverscene","relatedgames",YYGGames.forgames[window.relatedThumbNo].id):cc.find("Canvas/promotion")&amp;&amp;255==cc.find("Canvas/promotion").opacity&amp;&amp;0==cc.find("Canvas/promotion").position.x&amp;&amp;0==cc.find("Canvas/promotion").position.y?YYGGames.navigate("gameover",e.node.name):YYGGames.navigate(t,e.node.name))}),cc.game.on(cc.game.EVENT_SHOW,this.gameResume,!1),cc.game.on(cc.game.EVENT_HIDE,this.gamePause,!1);var n=this;this.node.on("onRewardAdSuccess",function(){n.Lock&amp;&amp;(sessionStorage.setItem(n.Lock.name,"true"),n.Lock.removeFromParent())})},t.prototype.playSound=function(e){cc.loader.loadRes(e,cc.AudioClip,function(e,t){cc.audioEngine.playEffect(t,!1)})},t.prototype.onReplayClick=function(e){e.target.getComponent(cc.Button).interactable=!1,o.self.requestAds(),c.initdefault(),sessionStorage.setItem("EyeShadowLock1","false"),sessionStorage.setItem("EyeShadowLock2","false"),sessionStorage.setItem("EyeShadowLock3","false"),sessionStorage.setItem("ViewIndex","1"),this.scheduleOnce(function(){cc.director.loadScene("LevelScene")},.3)},t.prototype.setPromoThumb=function(){if("undefined"!=typeof YYGGames&amp;&amp;YYGGames.forgames.length&gt;0){window.relatedThumbNo=o.getRandomInt(0,YYGGames.forgames.length-1);var e=YYGGames.forgames[window.relatedThumbNo].thumb;console.log(e),cc.assetManager.loadRemote(e,function(e,t){cc.find("Canvas/promotion").opacity=255,cc.find("Canvas/promotion/promoBack/tex").getComponent(cc.Sprite).spriteFrame=new cc.SpriteFrame(t)})}},t.prototype.requestAds=function(){"undefined"!=typeof YYGGames&amp;&amp;YYGGames.showInterstitial({beforeShowAd:function(){o.self.isAdRunnning=!0,o.self.MuteSound(),cc.game.pause()},afterShowAd:function(){o.self.onAdComplete()}})},t.prototype.requestRewardAds=function(e){if(this.Lock=e,"undefined"!=typeof YYGGames){if(0==YYGGames.canShowReward())return console.log("REWARD AD IS YET NOT READY"),void cc.director.getScene().dispatchEvent(new cc.Event("RewardFailed.OpenPopup",!0));YYGGames.showReward({beforeShowAd:function(){o.self.isAdRunnning=!0,o.self.MuteSound(),cc.game.pause()},afterShowAd:function(){o.self.onAdComplete()},rewardComplete:function(){o.self.node.dispatchEvent(new cc.Event("onRewardAdSuccess",!0))},rewardDismissed:function(){}})}},t.prototype.gameResume=function(){console.log("Resume Game"),o.self.isSwitchTab=!1,o.self.isAdRunnning?(cc.game.pause(),o.self.MuteSound()):(cc.game.resume(),o.self.StartSound())},t.prototype.gamePause=function(){console.log("Pause Game"),cc.game.pause(),o.self.isSwitchTab=!0,o.self.MuteSound()},t.prototype.MuteSound=function(){document.getElementById("bgsound")&amp;&amp;(document.getElementById("bgsound").muted=!0),cc.find("Canvas/SoundNode")&amp;&amp;cc.find("Canvas/SoundNode").children.forEach(function(e){e.getComponent(cc.AudioSource)&amp;&amp;(e.getComponent(cc.AudioSource).mute=!0)})},t.prototype.StartSound=function(){o.self.isSwitchTab||(0!=cc.audioEngine.getMusicVolume()&amp;&amp;document.getElementById("bgsound")&amp;&amp;(document.getElementById("bgsound").muted=!1),cc.find("Canvas/SoundNode")&amp;&amp;cc.find("Canvas/SoundNode").children.forEach(function(e){e.getComponent(cc.AudioSource)&amp;&amp;e.getComponent(cc.AudioSource).mute&amp;&amp;(e.getComponent(cc.AudioSource).mute=!1)}))},t.prototype.onAdComplete=function(){o.self.isAdRunnning=!1,0==o.self.isSwitchTab&amp;&amp;o.self.gameResume(),console.log("onSuccessCallback")},t.getRandomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t)+1,Math.floor(Math.random()*(t-e))+e},t.getRandomArbitrary=function(e,t){return Math.random()*(t-e)+e},t.setFrame=function(e,t){e&amp;&amp;t&amp;&amp;(e.getComponent(cc.Sprite).spriteFrame=t.getComponent(cc.Sprite).spriteFrame)},t.self=null,o=i([r],t)}(cc.Component));o.default=l,cc._RF.pop()},{"./Splash":"Splash"}],RewardFailed:[function(e,t,o){"use strict";cc._RF.push(t,"be294fI2DVBWZ9KCKsOVvRF","RewardFailed");var n,a=this&amp;&amp;this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&amp;&amp;(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&amp;&amp;this.__decorate||function(e,t,o,n){var a,i=arguments.length,c=i&lt;3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s&gt;=0;s--)(a=e[s])&amp;&amp;(c=(i&lt;3?a(c):i&gt;3?a(t,o,c):a(t,o))||c);return i&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(t,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=cc._decorator,s=c.ccclass,r=(c.property,function(e){function t(){return null!==e&amp;&amp;e.apply(this,arguments)||this}return a(t,e),t.prototype.onLoad=function(){cc.director.getScene().on("RewardFailed.OpenPopup",this.FailedOpenAction,this),this.node.active=!1},t.prototype.FailedOpenAction=function(){console.log("callee"),this.node.active=!0},t.prototype.FailedCloseAction=function(){this.node.active=!1},t.self=null,i([s],t)}(cc.Component));o.default=r,cc._RF.pop()},{}],SpaView:[function(e,t,o){"use strict";cc._RF.push(t,"3a34797y8RN6qiEpX0BMaKf","SpaView");var n,a=this&amp;&amp;this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&amp;&amp;(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&amp;&amp;this.__decorate||function(e,t,o,n){var a,i=arguments.length,c=i&lt;3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s&gt;=0;s--)(a=e[s])&amp;&amp;(c=(i&lt;3?a(c):i&gt;3?a(t,o,c):a(t,o))||c);return i&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(t,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c,s=e("./Drawing"),r=e("./Promotion"),l=cc._decorator,h=l.ccclass;l.property,function(e){e[e.SOAP_WATER=0]="SOAP_WATER",e[e.SHOWER=1]="SHOWER",e[e.BRUSH_CREAM=2]="BRUSH_CREAM",e[e.SHOWER2=3]="SHOWER2",e[e.STEAMER=4]="STEAMER",e[e.EYEBROW=5]="EYEBROW",e[e.PIMPLE=6]="PIMPLE",e[e.CREAM=7]="CREAM",e[e.LEMON1=8]="LEMON1",e[e.LEMON2=9]="LEMON2",e[e.SHOWER3=10]="SHOWER3",e[e.PASTE_CREAM=11]="PASTE_CREAM",e[e.SPARKLE_1=12]="SPARKLE_1",e[e.SPARKLE_2=13]="SPARKLE_2"}(c||(c={}));var d=function(e){function t(){var t=null!==e&amp;&amp;e.apply(this,arguments)||this;return t.PanelCounter=0,t.ToolPick=[],t.ToolMove=[],t.SelectedTool=-1,t.CanMove=!1,t.SelectedToolToMove=null,t.BeganPoint=null,t.isToolDone=[],t.DrawSoap=null,t.FaceDirt=null,t.DrawFrosting=null,t.DrawCleaner=null,t.DrawSkinColor=null,t.EB=null,t}var o;return a(t,e),o=t,t.prototype.onLoad=function(){o.self=this;for(var e=0;e&lt;=c.SPARKLE_2;e++)this.isToolDone[e]=!1;this.EB=cc.find("Canvas/Character/EB"),cc.director.preloadScene("LevelScene"),this.ToolPick[c.SOAP_WATER]=cc.find("Canvas/Panel/Scroll/Panel1/2/3a"),this.ToolPick[c.SHOWER]=cc.find("Canvas/Panel/Scroll/Panel1/Shower"),this.ToolPick[c.BRUSH_CREAM]=cc.find("Canvas/Panel/Scroll/Panel2/5"),this.ToolPick[c.SHOWER2]=cc.find("Canvas/Panel/Scroll/Panel2/Shower"),this.ToolPick[c.STEAMER]=cc.find("Canvas/Panel/Scroll/Panel3/7a"),this.ToolPick[c.EYEBROW]=cc.find("Canvas/Panel/Scroll/Panel3/8a"),this.ToolPick[c.PIMPLE]=cc.find("Canvas/Panel/Scroll/Panel3/9a"),this.ToolPick[c.CREAM]=cc.find("Canvas/Panel/Scroll/Panel4/10/11"),this.ToolPick[c.LEMON1]=cc.find("Canvas/Panel/Scroll/Panel4/11a/12b1"),this.ToolPick[c.LEMON2]=cc.find("Canvas/Panel/Scroll/Panel4/11a/12b2"),this.ToolPick[c.SHOWER3]=cc.find("Canvas/Panel/Scroll/Panel4/Shower"),this.ToolPick[c.PASTE_CREAM]=cc.find("Canvas/Panel/Scroll/Panel5/14a"),this.ToolPick[c.SPARKLE_1]=cc.find("Canvas/Panel/Scroll/Panel5/15/16a"),this.ToolPick[c.SPARKLE_2]=cc.find("Canvas/Panel/Scroll/Panel6/17/18a"),this.ToolMove[c.SOAP_WATER]=cc.find("Canvas/Panel/Scroll/Panel1/2/3a"),this.ToolMove[c.SHOWER]=cc.find("Canvas/Loader/Shower"),this.ToolMove[c.BRUSH_CREAM]=cc.find("Canvas/Loader/BrushTool"),this.ToolMove[c.SHOWER2]=cc.find("Canvas/Loader/Shower"),this.ToolMove[c.STEAMER]=cc.find("Canvas/Loader/Steamer"),this.ToolMove[c.EYEBROW]=cc.find("Canvas/Loader/Eyebrow"),this.ToolMove[c.PIMPLE]=cc.find("Canvas/Loader/Pimple"),this.ToolMove[c.CREAM]=cc.find("Canvas/Panel/Scroll/Panel4/10/11"),this.ToolMove[c.LEMON1]=cc.find("Canvas/Panel/Scroll/Panel4/11a/12b1"),this.ToolMove[c.LEMON2]=cc.find("Canvas/Panel/Scroll/Panel4/11a/12b2"),this.ToolMove[c.SHOWER3]=cc.find("Canvas/Loader/Shower"),this.ToolMove[c.PASTE_CREAM]=cc.find("Canvas/Panel/Scroll/Panel5/14a"),this.ToolMove[c.SPARKLE_1]=cc.find("Canvas/Loader/Sparkle1"),this.ToolMove[c.SPARKLE_2]=cc.find("Canvas/Loader/Sparkle2"),this.DrawSoap=new s.default,this.DrawSoap.isDrawOnInit=!1,this.DrawSoap.initDrawNode(cc.find("Canvas/Character/SpaBubble"));var t=this.DrawSoap.DrawNode.getContentSize();this.DrawSoap.setWidthAndHeight(t.width,t.height),this.DrawSoap.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/spa-bubble").getComponent(cc.Sprite).spriteFrame,0),this.DrawSoap.LoadBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),this.DrawSoap.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),this.DrawSoap.setBrushSize(40),this.DrawSoap.isSwitchData=!1,this.FaceDirt=new s.default,this.FaceDirt.isDrawOnInit=!0,this.FaceDirt.initDrawNode(cc.find("Canvas/Character/spa-dirty")),t=this.FaceDirt.DrawNode.getContentSize(),this.FaceDirt.setWidthAndHeight(t.width,t.height),this.FaceDirt.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/spa-dirty").getComponent(cc.Sprite).spriteFrame,0),this.FaceDirt.LoadBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),this.FaceDirt.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),this.FaceDirt.setBrushSize(100),this.FaceDirt.isSwitchData=!1,this.DrawFrosting=new s.default,this.DrawFrosting.isDrawOnInit=!1,this.DrawFrosting.initDrawNode(cc.find("Canvas/Character/spa-frosting")),t=this.DrawFrosting.DrawNode.getContentSize(),this.DrawFrosting.setWidthAndHeight(t.width,t.height),this.DrawFrosting.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/spa-frosting").getComponent(cc.Sprite).spriteFrame,0),this.DrawFrosting.LoadBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),this.DrawFrosting.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),this.DrawFrosting.setBrushSize(100),this.DrawFrosting.isSwitchData=!1,this.DrawCleaner=new s.default,this.DrawCleaner.isDrawOnInit=!1,this.DrawCleaner.initDrawNode(cc.find("Canvas/Character/spa-cleanser")),t=this.DrawCleaner.DrawNode.getContentSize(),this.DrawCleaner.setWidthAndHeight(t.width,t.height),this.DrawCleaner.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/spa-cleanser").getComponent(cc.Sprite).spriteFrame,0),this.DrawCleaner.LoadBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),this.DrawCleaner.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),this.DrawCleaner.setBrushSize(40),this.DrawCleaner.isSwitchData=!1,this.DrawSkinColor=new s.default,this.DrawSkinColor.isDrawOnInit=!1,this.DrawSkinColor.initDrawNode(cc.find("Canvas/Character/SkinColor/Mask")),t=this.DrawSkinColor.DrawNode.getContentSize(),this.DrawSkinColor.setWidthAndHeight(t.width,t.height),this.DrawSkinColor.LoadDrawingTextureUsingName(cc.find("Canvas/Loader/spa-skin-color-1").getComponent(cc.Sprite).spriteFrame,0),this.DrawSkinColor.LoadBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),this.DrawSkinColor.LoadEraserBrushTexture(cc.find("Canvas/Loader/dot-medium").getComponent(cc.Sprite).spriteFrame),this.DrawSkinColor.setBrushSize(40),this.DrawSkinColor.isSwitchData=!1},t.prototype.setFrame=function(e,t){e&amp;&amp;e.getComponent(cc.Sprite)&amp;&amp;cc.find(t)&amp;&amp;cc.find(t).getComponent(cc.Sprite)&amp;&amp;(e.getComponent(cc.Sprite).spriteFrame=cc.find(t).getComponent(cc.Sprite).spriteFrame)},t.prototype.start=function(){this.node.on(cc.Node.EventType.TOUCH_START,this.TouchBegan),this.node.on(cc.Node.EventType.TOUCH_MOVE,this.TouchMove),this.node.on(cc.Node.EventType.TOUCH_END,this.TouchEnd),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.TouchEnd)},t.prototype.TouchBegan=function(e){var t=e.getLocation(),n=cc.v3(o.self.node.convertToNodeSpaceAR(t));o.self.isPick(o.self.ToolPick[c.SOAP_WATER],t)?(o.self.ToolPickBegan(c.SOAP_WATER,n),o.self.DrawSoap.setBrushSize(70),o.self.DrawSoap.setEraserOn(!1),o.self.FaceDirt.setEraserOn(!0),o.self.FaceDirt.setBrushSize(70),o.self.EB.active=!0):o.self.isPick(o.self.ToolPick[c.SHOWER],t)?(o.self.ToolPickBegan(c.SHOWER,n),o.self.DrawSoap.setBrushSize(70),o.self.DrawSoap.setEraserOn(!0),o.self.FaceDirt.setEraserOn(!0),o.self.FaceDirt.setBrushSize(70),o.self.EB.active=!0):o.self.isPick(o.self.ToolPick[c.BRUSH_CREAM],t)?(o.self.ToolPickBegan(c.BRUSH_CREAM,n),o.self.DrawFrosting.setBrushSize(50),o.self.DrawFrosting.setEraserOn(!1),o.self.EB.active=!0):o.self.isPick(o.self.ToolPick[c.SHOWER2],t)?(o.self.ToolPickBegan(c.SHOWER2,n),o.self.DrawFrosting.setBrushSize(100),o.self.DrawFrosting.setEraserOn(!0),o.self.EB.active=!0):o.self.isPick(o.self.ToolPick[c.STEAMER],t)?(o.self.ToolPickBegan(c.STEAMER,n),o.self.EB.active=!0):o.self.isPick(o.self.ToolPick[c.EYEBROW],t)?o.self.ToolPickBegan(c.EYEBROW,n):o.self.isPick(o.self.ToolPick[c.PIMPLE],t)?o.self.ToolPickBegan(c.PIMPLE,n):o.self.isPick(o.self.ToolPick[c.CREAM],t)?(o.self.ToolPickBegan(c.CREAM,n),o.self.DrawCleaner.setBrushSize(50),o.self.DrawCleaner.setEraserOn(!1),o.self.EB.active=!0):o.self.isPick(o.self.ToolPick[c.LEMON1],t)?o.self.ToolPickBegan(c.LEMON1,n):o.self.isPick(o.self.ToolPick[c.LEMON2],t)?o.self.ToolPickBegan(c.LEMON2,n):o.self.isPick(o.self.ToolPick[c.SHOWER3],t)?(o.self.ToolPickBegan(c.SHOWER3,n),o.self.DrawCleaner.setBrushSize(100),o.self.DrawCleaner.setEraserOn(!0),o.self.EB.active=!0):o.self.isPick(o.self.ToolPick[c.PASTE_CREAM],t)?(0==cc.find("Canvas/Character/SkinTube").active&amp;&amp;(cc.find("Canvas/Character/SkinTube").active=!0,cc.find("Canvas/Character/SkinTube").getComponent(cc.Animation).play(),cc.find("Canvas/Character/SkinTube").getComponent(cc.Animation).on("finished",function(){cc.find("Canvas/Character/SkinTube").active=!1})),o.self.SelectedTool=c.PASTE_CREAM,o.self.CanMove=!0,o.self.DrawSkinColor.setBrushSize(50),o.self.DrawSkinColor.setEraserOn(!1)):o.self.isPick(o.self.ToolPick[c.SPARKLE_1],t)?o.self.ToolPickBegan(c.SPARKLE_1,n):o.self.isPick(o.self.ToolPick[c.SPARKLE_2],t)?o.self.ToolPickBegan(c.SPARKLE_2,n):o.self.SelectedTool==c.PASTE_CREAM&amp;&amp;(o.self.CanMove=!0,o.self.EB.active=!0)},t.prototype.TouchMove=function(e,t){var n=e.getLocation(),a=cc.v3(o.self.node.convertToNodeSpaceAR(n));if(0!=o.self.CanMove)if(c.SOAP_WATER==o.self.SelectedTool){o.self.SelectedToolToMove.position=a;var i=cc.v2(-50,-0);o.self.DrawSoap.touchMove(e,t,cc.v2(30,0)),o.self.FaceDirt.touchMove(e,t,cc.v2(0,30)),o.self.DrawSoap.DrawNode.getBoundingBoxToWorld().contains(n)&amp;&amp;(o.self.isPlaySound("p1_bubble on face")||o.self.PlaySound("p1_bubble on face"))}else if(c.SHOWER==o.self.SelectedTool)o.self.SelectedToolToMove.position=a,i=cc.v2(0,0),o.self.FaceDirt.touchMove(e,t,i),o.self.DrawSoap.touchMove(e,t,i),o.self.isPlaySound("p1_p2_p4_shower")||o.self.PlaySound("p1_p2_p4_shower");else if(c.BRUSH_CREAM==o.self.SelectedTool)o.self.SelectedToolToMove.position=a,i=cc.v2(50,-100),o.self.DrawFrosting.touchMove(e,t,i),o.self.FaceDirt.touchMove(e,t,i),o.self.DrawFrosting.DrawNode.getBoundingBoxToWorld().contains(n)&amp;&amp;(o.self.isPlaySound("p2_facial scrub on face")||o.self.PlaySound("p2_facial scrub on face"));else if(c.SHOWER2==o.self.SelectedTool)o.self.SelectedToolToMove.position=a,i=cc.v2(0,0),o.self.DrawFrosting.touchMove(e,t,i),o.self.isPlaySound("p1_p2_p4_shower")||o.self.PlaySound("p1_p2_p4_shower");else if(c.STEAMER==o.self.SelectedTool)o.self.SelectedToolToMove.position=a,o.self.ToolMove[c.STEAMER].opacity&gt;0&amp;&amp;(o.self.ToolMove[c.STEAMER].opacity-=1),o.self.isPlaySound("p3_steam face")||o.self.PlaySound("p3_steam face");else if(c.EYEBROW==o.self.SelectedTool)o.self.SelectedToolToMove.position=a,cc.find("Canvas/Character/EyeBrowExtra").children.forEach(function(e){o.self.SelectedToolToMove.getChildByName("1").getBoundingBoxToWorld().intersects(e.getBoundingBoxToWorld())&amp;&amp;(0==o.self.SelectedToolToMove.getComponent(cc.Animation).getAnimationState("Plucker").isPlaying&amp;&amp;(o.self.SelectedToolToMove.getComponent(cc.Animation).play(),o.self.PlaySound("p3_forcep sound on eyebrow")),e.runAction(cc.sequence(cc.spawn(cc.rotateBy(.3,360),cc.moveBy(.5,cc.v2(0,-40))),cc.removeSelf())))});else if(c.PIMPLE==o.self.SelectedTool)o.self.SelectedToolToMove.position=a,cc.find("Canvas/Character/Pimple").children.forEach(function(e){o.self.SelectedToolToMove.getChildByName("1").getBoundingBoxToWorld().intersects(e.getBoundingBoxToWorld())&amp;&amp;255==e.opacity&amp;&amp;0==e.getNumberOfRunningActions()&amp;&amp;(cc.tween(e).to(.3,{opacity:0}).start(),0==o.self.isPlaySound("p3_forcept select")&amp;&amp;o.self.PlaySound("p3_forcept select"))});else if(c.CREAM==o.self.SelectedTool)o.self.SelectedToolToMove.position=a,i=cc.v2(50,-70),o.self.DrawCleaner.touchMove(e,t,i),o.self.FaceDirt.touchMove(e,t,i),o.self.DrawSoap.DrawNode.getBoundingBoxToWorld().contains(n)&amp;&amp;0==o.self.isPlaySound("p4_facial mask on face")&amp;&amp;o.self.PlaySound("p4_facial mask on face");else if(c.LEMON1==o.self.SelectedTool||c.LEMON2==o.self.SelectedTool){o.self.SelectedToolToMove.position=a;var s=!0;cc.find("Canvas/Character/Lemon").children.forEach(function(e){e.getBoundingBoxToWorld().contains(n)&amp;&amp;o.self.CanMove&amp;&amp;0==e.active&amp;&amp;(o.self.CanMove=!1,e.active=!0,o.self.SelectedToolToMove.removeFromParent(),o.self.PlaySound("p4_cucumber eye mask on &amp; off eyes"))}),cc.find("Canvas/Character/Lemon").children.forEach(function(e){0==e.active&amp;&amp;(s=!1)}),s&amp;&amp;0==o.self.isToolDone[o.self.SelectedTool]&amp;&amp;!o.self.CanMove&amp;&amp;(o.self.isToolDone[c.LEMON2]=!0,o.self.isToolDone[c.LEMON1]=!0,o.self.addParticle())}else c.SHOWER3==o.self.SelectedTool?(o.self.SelectedToolToMove.position=a,i=cc.v2(0,0),o.self.DrawCleaner.touchMove(e,t,i),o.self.isPlaySound("p1_p2_p4_shower")||o.self.PlaySound("p1_p2_p4_shower")):c.PASTE_CREAM==o.self.SelectedTool?(i=cc.v2(0,0),o.self.DrawSkinColor.touchMove(e,t,i),o.self.DrawSkinColor.DrawNode.getBoundingBoxToWorld().contains(n)&amp;&amp;0==o.self.isPlaySound("p5_sun oil on face")&amp;&amp;o.self.PlaySound("p5_sun oil on face")):c.SPARKLE_1==o.self.SelectedTool?(o.self.SelectedToolToMove.position=a,o.self.ToolMove[c.SPARKLE_1].opacity&gt;0&amp;&amp;(o.self.ToolMove[c.SPARKLE_1].opacity-=1),0==o.self.isPlaySound("p6_powder on face 4")&amp;&amp;o.self.PlaySound("p6_powder on face 4")):c.SPARKLE_2==o.self.SelectedTool&amp;&amp;(o.self.SelectedToolToMove.position=a,o.self.ToolMove[c.SPARKLE_2].opacity&gt;0&amp;&amp;(o.self.ToolMove[c.SPARKLE_2].opacity-=1),0==o.self.isPlaySound("p6_powder on face 4")&amp;&amp;o.self.PlaySound("p6_powder on face 4"))},t.prototype.TouchEnd=function(e){var t=e.getLocation();if(o.self.node.convertToNodeSpaceAR(t),o.self.EB.active=!1,0!=o.self.CanMove)if(o.self.CanMove=!1,c.SOAP_WATER==o.self.SelectedTool)o.self.StopSound("p1_bubble on face"),o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf())),0==o.self.isToolDone[c.SOAP_WATER]&amp;&amp;o.self.DrawSoap.isCompleteDrawing()&amp;&amp;(o.self.isToolDone[c.SOAP_WATER]=!0,o.self.addParticle(),o.self.FaceDirt.DrawNode.active=!1,o.self.DrawSoap.FillFullTexture(),o.self.FaceDirt.ClearAll());else if(c.SHOWER==o.self.SelectedTool)o.self.StopSound("p1_p2_p4_shower"),o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf())),o.self.isToolDone[c.SOAP_WATER]&amp;&amp;0==o.self.isToolDone[c.SHOWER]&amp;&amp;o.self.DrawSoap.isCompleteDrawing()&amp;&amp;(o.self.isToolDone[o.self.SelectedTool]=!0,o.self.addParticle(),o.self.DrawSoap.ClearAll(),o.self.FaceDirt.ClearAll());else if(c.BRUSH_CREAM==o.self.SelectedTool)o.self.StopSound("p2_facial scrub on face"),o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf())),0==o.self.isToolDone[c.BRUSH_CREAM]&amp;&amp;o.self.DrawFrosting.isCompleteDrawing()&amp;&amp;(o.self.isToolDone[c.BRUSH_CREAM]=!0,o.self.addParticle(),o.self.DrawFrosting.FillFullTexture(),o.self.FaceDirt.ClearAll());else if(c.SHOWER2==o.self.SelectedTool)o.self.StopSound("p1_p2_p4_shower"),o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf())),o.self.isToolDone[c.BRUSH_CREAM]&amp;&amp;0==o.self.isToolDone[c.SHOWER2]&amp;&amp;o.self.DrawFrosting.isCompleteDrawing()&amp;&amp;(o.self.isToolDone[o.self.SelectedTool]=!0,o.self.addParticle(),o.self.DrawFrosting.ClearAll(),o.self.FaceDirt.ClearAll());else if(c.STEAMER==o.self.SelectedTool)o.self.StopSound("p3_steam face"),o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf())),0==o.self.ToolMove[c.STEAMER].opacity&amp;&amp;0==o.self.isToolDone[c.STEAMER]&amp;&amp;(o.self.isToolDone[c.STEAMER]=!0,o.self.addParticle());else if(c.EYEBROW==o.self.SelectedTool)o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf())),0==cc.find("Canvas/Character/EyeBrowExtra").childrenCount&amp;&amp;0==o.self.isToolDone[o.self.SelectedTool]&amp;&amp;(o.self.isToolDone[o.self.SelectedTool]=!0,o.self.addParticle());else if(c.PIMPLE==o.self.SelectedTool){if(o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf())),0==o.self.isToolDone[o.self.SelectedTool]){var n=!0;cc.find("Canvas/Character/Pimple").children.forEach(function(e){e.opacity&gt;30&amp;&amp;(n=!1)}),n&amp;&amp;(o.self.isToolDone[o.self.SelectedTool]=!0,o.self.addParticle(),cc.find("Canvas/Character/Pimple").children.forEach(function(e){e.opacity=0}))}}else c.CREAM==o.self.SelectedTool?(o.self.StopSound("p4_facial mask on face"),o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf())),0==o.self.isToolDone[c.CREAM]&amp;&amp;o.self.DrawCleaner.isCompleteDrawing()&amp;&amp;(o.self.isToolDone[c.CREAM]=!0,o.self.addParticle(),o.self.DrawCleaner.FillFullTexture(),o.self.FaceDirt.ClearAll())):c.LEMON1==o.self.SelectedTool?o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf())):c.LEMON2==o.self.SelectedTool?o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf())):c.SHOWER3==o.self.SelectedTool?(o.self.StopSound("p1_p2_p4_shower"),o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf())),o.self.isToolDone[c.CREAM]&amp;&amp;0==o.self.isToolDone[c.SHOWER3]&amp;&amp;o.self.DrawCleaner.isCompleteDrawing()&amp;&amp;(o.self.isToolDone[o.self.SelectedTool]=!0,o.self.addParticle(),o.self.DrawCleaner.ClearAll(),o.self.FaceDirt.ClearAll())):c.PASTE_CREAM==o.self.SelectedTool?(o.self.StopSound("p5_sun oil on face"),0==o.self.isToolDone[c.PASTE_CREAM]&amp;&amp;o.self.DrawSkinColor.isCompleteDrawing()&amp;&amp;(o.self.isToolDone[c.PASTE_CREAM]=!0,o.self.addParticle())):c.SPARKLE_1==o.self.SelectedTool?(o.self.StopSound("p6_powder on face 4"),o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf())),0==o.self.ToolMove[c.SPARKLE_1].opacity&amp;&amp;0==o.self.isToolDone[c.SPARKLE_1]&amp;&amp;(o.self.isToolDone[c.SPARKLE_1]=!0,o.self.addParticle())):c.SPARKLE_2==o.self.SelectedTool&amp;&amp;(o.self.StopSound("p6_powder on face 4"),o.self.SelectedToolToMove.runAction(cc.sequence(cc.jumpTo(.2,o.self.BeganPoint,50,1),cc.callFunc(function(){o.self.ToolPick[o.self.SelectedTool].active=!0}),cc.removeSelf())),0==o.self.ToolMove[c.SPARKLE_2].opacity&amp;&amp;0==o.self.isToolDone[c.SPARKLE_2]&amp;&amp;(o.self.isToolDone[c.SPARKLE_2]=!0,o.self.addParticle()))},t.prototype.ToolPickBegan=function(e,t){o.self.CanMove=!0,o.self.SelectedTool=e,o.self.ToolPick[o.self.SelectedTool].active=!1;var n=cc.instantiate(o.self.ToolMove[o.self.SelectedTool]);cc.find("Canvas/MoveTool").addChild(n),n.active=!0,o.self.SelectedToolToMove=n,o.self.SelectedToolToMove.position=t,o.self.SelectedToolToMove.opacity=255,o.self.BeganPoint=cc.v2(t)},t.prototype.addParticle=function(){var e=cc.instantiate(cc.find("Canvas/star"));this.node.addChild(e),e.active=!0,this.PlaySound("star1")},t.prototype.isPick=function(e,t){return 0!=e.active&amp;&amp;!!e.getBoundingBoxToWorld().contains(t)&amp;&amp;(o.self.PlaySound("Tap"),!0)},t.prototype.ScrollNext=function(){var e=cc.find("Canvas/Panel/Scroll");this.PlaySound("menu-item-click"),0==e.getNumberOfRunningActions()&amp;&amp;(e.runAction(cc.moveBy(.3,cc.v2(-504,0))),this.PanelCounter++,cc.find("Canvas/Panel/PreviousPanel").getComponent(cc.Button).interactable=!0,4==this.PanelCounter&amp;&amp;(cc.find("Canvas/Panel/NextPanel").getComponent(cc.Button).interactable=!1,cc.find("Canvas/Next").active=!0),this.ResetAllItem())},t.prototype.ScrollPrevious=function(){var e=cc.find("Canvas/Panel/Scroll");this.PlaySound("menu-item-click"),0==e.getNumberOfRunningActions()&amp;&amp;(e.runAction(cc.moveBy(.3,cc.v2(504,0))),this.PanelCounter--,0==this.PanelCounter&amp;&amp;(cc.find("Canvas/Panel/PreviousPanel").getComponent(cc.Button).interactable=!1),cc.find("Canvas/Panel/NextPanel").getComponent(cc.Button).interactable=!0,this.ResetAllItem())},t.prototype.NextAction=function(e){e.target.getComponent(cc.Button).interactable=!1,this.PlaySound("menu-item-click"),r.default.self.requestAds(),this.node.runAction(cc.sequence(cc.delayTime(.5),cc.callFunc(function(){sessionStorage.setItem("ViewIndex","2"),cc.director.loadScene("LevelScene")})))},t.prototype.ResetAllItem=function(){var e=cc.find("Canvas/Character/Lemon/spa-eyemask-left");if(e.active){var t=e.position;e.runAction(cc.sequence(cc.moveBy(.5,cc.v2(0,-500)),cc.callFunc(function(){e.position=t,e.active=!1,o.self.ToolPick[c.LEMON1].active=!0})))}var n=cc.find("Canvas/Character/Lemon/spa-eyemask-right");if(n.active){var a=n.position;n.runAction(cc.sequence(cc.moveBy(.5,cc.v2(0,-500)),cc.callFunc(function(){n.position=a,n.active=!1,o.self.ToolPick[c.LEMON2].active=!0})))}this.DrawSoap.ClearAll(),this.DrawFrosting.ClearAll(),this.DrawCleaner.ClearAll()},t.prototype.PlaySound=function(e){cc.find("Canvas/SoundNode/"+e)&amp;&amp;cc.find("Canvas/SoundNode/"+e).getComponent(cc.AudioSource).play()},t.prototype.StopSound=function(e){cc.find("Canvas/SoundNode/"+e)&amp;&amp;cc.find("Canvas/SoundNode/"+e).getComponent(cc.AudioSource).stop()},t.prototype.isPlaySound=function(e){return!!cc.find("Canvas/SoundNode/"+e)&amp;&amp;cc.find("Canvas/SoundNode/"+e).getComponent(cc.AudioSource).isPlaying},t.self=null,o=i([h],t)}(cc.Component);o.default=d,cc._RF.pop()},{"./Drawing":"Drawing","./Promotion":"Promotion"}],Splash:[function(e,t,o){"use strict";cc._RF.push(t,"c6bf7WCiyhLBp1EjaRYWXtR","Splash");var n,a=this&amp;&amp;this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&amp;&amp;(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&amp;&amp;this.__decorate||function(e,t,o,n){var a,i=arguments.length,c=i&lt;3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&amp;&amp;"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s&gt;=0;s--)(a=e[s])&amp;&amp;(c=(i&lt;3?a(c):i&gt;3?a(t,o,c):a(t,o))||c);return i&gt;3&amp;&amp;c&amp;&amp;Object.defineProperty(t,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.initdefault=void 0;var c=cc._decorator,s=c.ccclass,r=c.property,l=function(e){function t(){var t=null!==e&amp;&amp;e.apply(this,arguments)||this;return t.bgsoundElement=null,t.isPortrait=!0,t.logo=null,t}var o;return a(t,e),o=t,t.prototype.onLoad=function(){cc.debug.setDisplayStats(!1),o.self=this,this.bgsoundElement=document.createElement("AUDIO"),this.bgsoundElement.id="bgsound",this.bgsoundElement.loop=!0,this.bgsoundElement.setAttribute("src",cc.find("Canvas/music").getComponent(cc.AudioSource).clip.url)},t.prototype.start=function(){cc.director.preloadScene("MainScene"),h();var e=this;cc.view.on("canvas-resize",function(){e.updateLogo(cc.view.getFrameSize())}),this.updateLogo(cc.view.getFrameSize()),cc.assetManager.loadBundle("Graphics",function(e,t){console.log(e+" "+t),t.loadDir("MakeUp",cc.SpriteFrame,function(e,t){console.log(t)})}),cc.assetManager.loadBundle("Texture",function(e,t){console.log(e+" ",t),t.loadDir("PACK",cc.SpriteFrame,function(e,t){console.log(t)})})},t.prototype.updateLogo=function(e){cc.sys.isMobile?this.isPortrait?e.width&lt;e.height?(console.log("landscape"),this.logo.scale=1,this.logo.position=cc.v3(0,0,0)):(console.log("portrait"),this.logo.scale=1.7,this.logo.position=cc.v3(0,70,0)):e.width&gt;e.height?(console.log("landscape"),this.logo.scale=1,this.logo.position=cc.v3(0,0,0)):(console.log("portrait"),this.logo.scale=1.7,this.logo.position=cc.v3(0,70,0)):(this.logo.scale=.65,this.logo.position=cc.v3(0,0,0)),console.log(this.logo.scale)},t.prototype.PlayAction=function(e){document.body.appendChild(this.bgsoundElement),cc.view.off("canvas-resize");var t=e.target;t&amp;&amp;(t.getComponent(cc.Button).interactable=!1),document.getElementById("bgsound")&amp;&amp;document.getElementById("bgsound").play(),cc.director.loadScene("MainScene")},t.prototype.OpenUrl=function(){YYGGames.navigate("Loading","logo")},t.prototype.PlaySound=function(e){cc.find("Canvas/SoundNode/"+e)&amp;&amp;cc.find("Canvas/SoundNode/"+e).getComponent(cc.AudioSource).play()},t.self=null,i([r],t.prototype,"isPortrait",void 0),i([r(cc.Node)],t.prototype,"logo",void 0),o=i([s],t)}(cc.Component);function h(){sessionStorage.setItem("Pupils","7"),sessionStorage.setItem("Eyebrow","7"),sessionStorage.setItem("EyeLiner","7"),sessionStorage.setItem("Eyelash","0"),sessionStorage.setItem("Blush","0"),sessionStorage.setItem("Lips","0"),sessionStorage.setItem("Hair","0"),sessionStorage.setItem("EyeShadow","0"),sessionStorage.setItem("Top","0"),sessionStorage.setItem("Bottom","0"),sessionStorage.setItem("Dress","1"),sessionStorage.setItem("Coat","0"),sessionStorage.setItem("Earring","0"),sessionStorage.setItem("Head","0"),sessionStorage.setItem("Necklace","0"),sessionStorage.setItem("Bracelet","0"),sessionStorage.setItem("HandBag","0"),sessionStorage.setItem("Glasses","0"),sessionStorage.setItem("Shoes","1")}o.default=l,o.initdefault=h,cc._RF.pop()},{}]},{},["Drawing","DressUp","FinalScreen","LevelScene","MainScene","MakeUp","Promotion","RewardFailed","SpaView","Splash"]);</pre></body></html>