var _STRINGS={Ad:{Mobile:{Preroll:{ReadyIn:"The game is ready in ",Loading:"Your game is loading...",Close:"Close"},Header:{ReadyIn:"The game is ready in ",Loading:"Your game is loading...",Close:"Close"},End:{ReadyIn:"Advertisement ends in ",Loading:"Please wait ...",Close:"Close"}}},Splash:{Loading:"LOADING",LogoLine1:"Some text here",LogoLine2:"powered by MarketJS",LogoLine3:"none",TapToStart:"TAP TO START"},Game:{SelectPlayer:"Select Player",Win:"You win!",Lose:"You lose!",Score:"Score",Time:"Time", OK:"OK",Next:"NEXT",Play:"PLAY",Done:"DONE",Save:"SAVE",Settings:"SETTINGS",BrushSize:"Brush Size"},Results:{Title:"High score"},sheets:[[{name:"star-1",ctxIndex:1,dots:[[24,13],[39,2],[43,20],[58,31],[40,40],[36,61],[22,43],[5,48],[2,42],[11,28],[5,10]]},{name:"star-2",ctxIndex:1,dots:[[62,221],[73,227],[73,232],[61,236],[60,247],[57,253],[51,251],[44,240],[31,243],[28,240],[36,228],[30,215],[34,211],[47,216],[56,206],[61,209]]},{name:"star-3",ctxIndex:1,dots:[[299,204],[316,201],[319,205],[309, 219],[317,235],[314,239],[297,233],[285,246],[280,244],[278,227],[273,224],[265,220],[264,214],[281,208],[282,192],[287,190]]},{name:"star-4",ctxIndex:1,dots:[[373,146],[385,152],[384,156],[371,161],[370,177],[364,177],[356,164],[342,168],[339,164],[347,153],[344,146],[342,138],[345,136],[358,140],[367,130],[372,132]]},{name:"kite-body",ctxIndex:1,dots:[[244,177],[196,156],[191,66],[278,16],[316,114]]},{name:"kite-tail1",ctxIndex:1,dots:[[220,169],[204,214],[200,159]]},{name:"kite-tail2",ctxIndex:1, dots:[[241,178],[206,212],[220,167]]},{name:"kite-head1",ctxIndex:1,dots:[[320,49],[332,48],[336,52],[326,63],[337,65],[338,70],[321,73],[302,75],[295,59],[295,48],[311,38],[326,36]]},{name:"kite-head2",ctxIndex:1,dots:[[216,24],[214,11],[219,11],[228,21],[231,5],[236,13],[240,22],[242,35],[225,47],[214,45],[202,28],[203,19]]},{name:"boj-body",ctxIndex:1,dots:[[164,136],[175,164],[176,213],[185,211],[191,208],[199,195],[202,213],[193,217],[185,219],[177,220],[178,244],[172,252],[177,268],[192,271], [193,276],[168,277],[164,253],[151,253],[155,277],[130,278],[130,272],[144,269],[143,254],[127,237],[119,243],[109,235],[108,228],[112,223],[123,218],[123,207],[125,192],[118,191],[100,187],[85,176],[76,163],[70,149],[75,145],[89,160],[100,163],[109,159],[125,149],[124,125],[120,117],[112,108],[100,102],[91,100],[82,102],[77,115],[72,103],[75,92],[82,85],[94,82],[108,85],[118,94],[126,110],[128,133],[140,144],[160,131],[159,115],[152,100],[144,91],[136,81],[133,73],[133,63],[141,55],[151,51],[162, 57],[169,68],[161,65],[156,67],[153,71],[154,79],[159,92],[162,107]]},{name:"boj-earinsideright",ctxIndex:2,dots:[[175,87],[173,76],[166,67],[157,66],[153,71],[155,77],[159,88],[162,105],[163,115],[163,126],[166,128],[171,117],[173,105],[174,96]]},{name:"boj-earinsideleft",ctxIndex:2,dots:[[106,118],[98,117],[90,117],[84,118],[79,112],[82,104],[90,101],[98,101],[109,107],[118,116],[125,130],[119,131],[113,123]]},{name:"boj-handright",ctxIndex:1,dots:[[179,217],[182,212],[189,208],[194,203],[200,197], [201,212],[195,217],[185,219]]},{name:"boj-handleft",ctxIndex:1,dots:[[121,242],[112,239],[108,232],[109,225],[119,219],[122,224],[118,230],[126,233]]},{name:"boj-footleft",ctxIndex:1,dots:[[129,278],[129,273],[134,270],[143,270],[142,258],[146,255],[152,257],[154,277]]},{name:"boj-footright",ctxIndex:1,dots:[[187,277],[171,278],[168,274],[166,257],[172,255],[177,269],[187,270],[194,275]]},{name:"boj-tail",ctxIndex:1,dots:[[230,270],[228,273],[223,272],[220,275],[214,268],[218,260],[223,261],[226, 262],[230,261],[231,265],[235,267]]},{name:"boj-mouth",ctxIndex:2,dots:[[163,190],[162,185],[154,189],[145,192],[147,198],[153,200],[158,199],[163,196]]},{name:"boj-eyeright",ctxIndex:2,dots:[[145,157],[142,149],[142,142],[144,136],[148,130],[157,127],[167,130],[162,138],[157,138],[153,142],[154,148],[158,152],[163,150],[159,139],[163,129],[173,137],[176,147],[174,156],[166,164],[159,166],[152,162]]},{name:"boj-eyeleft",ctxIndex:2,dots:[[116,161],[114,156],[113,146],[114,138],[121,134],[128,133], [134,137],[139,148],[127,143],[122,145],[123,151],[125,154],[129,152],[130,146],[125,143],[137,144],[139,149],[138,157],[136,161],[129,165],[122,165]]},{name:"boj-tummy",ctxIndex:2,dots:[[134,243],[129,237],[125,226],[123,212],[124,208],[128,209],[132,212],[134,218],[133,223],[129,228],[125,230],[132,240],[142,238],[137,231],[136,227],[138,221],[140,217],[145,215],[149,214],[153,214],[157,216],[160,219],[163,224],[162,231],[161,235],[158,239],[164,238],[166,235],[169,232],[177,232],[177,228],[171, 228],[167,225],[165,222],[164,217],[166,211],[170,208],[177,206],[175,240],[170,247],[165,250],[163,247],[162,244],[162,240],[146,239],[149,245],[152,251],[144,250]]}],[{name:"grass",ctxIndex:1,dots:[[3,240],[6,231],[14,229],[22,231],[18,219],[17,209],[22,205],[31,205],[41,206],[40,195],[42,185],[48,179],[58,179],[69,182],[70,173],[72,165],[78,160],[90,162],[98,169],[105,174],[212,176],[227,172],[236,175],[244,186],[248,194],[258,188],[266,184],[272,185],[276,192],[276,206],[274,215],[281,212],[289, 210],[297,209],[304,212],[307,218],[307,230],[314,229],[321,228],[326,233],[327,246],[324,259],[283,258],[266,258],[257,252],[247,245],[236,241],[221,241],[211,243],[197,252],[189,244],[181,243],[173,244],[161,250],[153,240],[142,239],[132,243],[122,251],[106,240],[93,237],[78,242],[66,250],[58,256],[9,256]]},{name:"boj-body",ctxIndex:2,dots:[[284,59],[298,66],[304,76],[308,84],[306,101],[298,107],[292,109],[296,100],[295,92],[291,87],[282,82],[269,82],[254,85],[234,99],[209,124],[206,171],[201,207], [204,216],[239,201],[244,214],[221,222],[204,226],[197,252],[126,246],[126,220],[84,198],[92,186],[129,208],[136,189],[121,180],[102,165],[92,147],[87,126],[87,108],[96,106],[99,119],[112,136],[126,140],[141,137],[159,89],[162,65],[170,48],[176,31],[174,24],[168,22],[156,24],[160,16],[168,10],[176,6],[188,7],[198,14],[204,25],[202,37],[195,50],[183,62],[171,71],[159,95],[174,145],[218,110],[223,102],[229,94],[241,81],[254,69],[265,62]]},{name:"boj-tummy",ctxIndex:3,dots:[[128,219],[132,220],[137, 226],[139,232],[138,239],[152,240],[158,245],[161,249],[171,244],[182,243],[188,243],[195,249],[197,225],[191,227],[186,230],[183,235],[183,241],[176,243],[175,238],[172,233],[166,231],[159,231],[153,232],[148,236],[146,239],[138,239],[135,240],[132,242],[128,243],[127,234]]},{name:"boj-mouth",ctxIndex:3,dots:[[184,191],[174,193],[161,192],[162,199],[165,206],[171,209],[181,210],[185,201]]},{name:"boj-eyeleft",ctxIndex:3,dots:[[173,116],[169,110],[162,106],[150,107],[154,122],[162,122],[164,128], [160,134],[155,136],[149,129],[159,120],[156,106],[143,113],[139,129],[142,142],[151,149],[162,148],[167,143],[173,134],[175,123]]},{name:"boj-eyeright",ctxIndex:3,dots:[[189,119],[181,129],[179,141],[181,152],[187,161],[198,165],[211,163],[209,135],[207,146],[201,148],[195,144],[194,136],[200,128],[207,131],[210,139],[206,164],[214,160],[222,150],[223,138],[220,127],[215,120],[207,114],[197,114]]},{name:"boj-earinsideright",ctxIndex:3,dots:[[232,114],[224,121],[218,117],[230,104],[243,93],[260,85], [275,83],[283,85],[292,89],[297,95],[294,103],[286,110],[274,108],[262,106],[249,107],[240,109]]},{name:"boj-earinsideleft",ctxIndex:3,dots:[[175,31],[172,24],[166,23],[156,26],[150,32],[146,43],[145,54],[144,67],[146,88],[150,103],[158,102],[158,90],[159,76],[163,62],[169,49],[173,39]]},{name:"soilbig",ctxIndex:3,dots:[[56,267],[62,270],[70,271],[78,270],[85,269],[82,277],[87,280],[94,280],[106,278],[119,275],[120,285],[125,289],[134,286],[146,278],[155,285],[167,291],[177,290],[184,281],[198,285], [211,289],[218,288],[219,284],[218,278],[227,279],[240,282],[249,281],[248,275],[243,269],[255,271],[264,272],[268,267],[266,258],[257,252],[247,245],[236,241],[221,241],[211,243],[196,254],[188,246],[180,243],[173,245],[160,252],[153,241],[142,240],[132,244],[121,252],[105,240],[92,238],[77,244],[66,251],[55,261]]},{name:"soil1",ctxIndex:2,dots:[[45,271],[39,271],[34,273],[32,279],[37,280],[43,280],[47,278],[48,274]]},{name:"soil2",ctxIndex:2,dots:[[31,281],[25,282],[19,287],[21,292],[28,293],[37, 290],[39,287],[38,282]]},{name:"soil3",ctxIndex:2,dots:[[53,286],[47,286],[41,292],[42,298],[45,300],[54,302],[64,300],[68,295],[68,289],[62,286]]},{name:"soil4",ctxIndex:2,dots:[[151,296],[145,299],[145,304],[152,307],[159,308],[164,306],[163,300],[158,297]]},{name:"soil5",ctxIndex:2,dots:[[194,301],[188,304],[189,310],[198,314],[206,315],[213,313],[212,307],[209,302],[201,300]]},{name:"soil6",ctxIndex:2,dots:[[268,290],[276,295],[281,296],[293,297],[297,295],[296,289],[288,285],[278,283],[272,284]]}, {name:"soil7",ctxIndex:2,dots:[[287,283],[293,287],[303,288],[307,285],[306,280],[301,276],[295,275],[289,277]]}],[{name:"plane-outerwingleft",ctxIndex:1,dots:[[81,4],[94,10],[90,14],[82,10],[70,7],[68,11],[56,5],[54,2],[65,2]]},{name:"plane-windleft",ctxIndex:1,dots:[[118,48],[100,28],[87,14],[82,10],[72,8],[71,13],[76,33],[86,34],[96,38],[105,46]]},{name:"plane-body",ctxIndex:1,dots:[[220,44],[211,54],[193,70],[180,67],[179,71],[190,82],[183,84],[169,83],[156,83],[140,71],[128,69],[93,65],[101, 73],[95,75],[80,72],[58,65],[36,58],[43,49],[41,39],[50,39],[60,46],[75,51],[89,52],[101,51],[106,47],[132,53],[150,58],[168,61],[186,51],[201,43],[210,43]]},{name:"plane-nose",ctxIndex:1,dots:[[35,57],[41,50],[39,39],[7,39],[6,44],[18,50],[27,54]]},{name:"plane-glass",ctxIndex:1,dots:[[104,50],[90,52],[74,50],[62,46],[53,40],[61,35],[81,35],[98,40]]},{name:"plane-tailleft",ctxIndex:1,dots:[[169,58],[176,53],[163,46],[166,54]]},{name:"plane-tailright",ctxIndex:1,dots:[[203,90],[210,88],[191,69],[182, 71]]},{name:"plane-wingright",ctxIndex:1,dots:[[157,108],[182,110],[145,74],[97,66]]},{name:"plane-wingouterright",ctxIndex:1,dots:[[156,109],[182,112],[194,116],[203,122],[194,124],[170,121],[151,113]]},{name:"circle",ctxIndex:1,dots:[[227,122],[232,118],[238,125],[233,129],[229,128]]},{name:"flag",ctxIndex:1,dots:[[238,148],[255,133],[253,129],[236,130],[232,133]]},{name:"gavin-remote",ctxIndex:1,dots:[[298,226],[303,241],[288,255],[234,246],[221,205],[234,194],[290,204]]},{name:"gavin-pants",ctxIndex:1, dots:[[341,254],[357,254],[355,261],[351,268],[350,299],[335,298],[336,267],[309,267],[305,297],[291,297],[294,267],[285,256],[296,251],[315,253],[328,253]]},{name:"gavin-clothbelow",ctxIndex:1,dots:[[335,243],[302,242],[296,250],[333,252]]},{name:"gavin-clothup",ctxIndex:1,dots:[[336,218],[298,214],[303,241],[334,243]]},{name:"gavin-outer",ctxIndex:2,dots:[[337,226],[323,225],[314,220],[301,213],[297,222],[303,229],[315,234],[327,237],[336,237],[335,253],[358,253],[361,207],[344,208],[338,212]]}, {name:"gavin-head",ctxIndex:1,dots:[[356,120],[376,128],[385,125],[399,125],[410,132],[410,138],[400,144],[382,141],[373,140],[365,179],[361,218],[307,215],[293,207],[287,199],[291,170],[288,164],[285,155],[288,149],[295,144],[302,118],[285,115],[273,104],[273,95],[285,93],[297,100],[307,110]]},{name:"gavin-mouth",ctxIndex:2,dots:[[311,185],[314,192],[322,194],[329,192],[331,182],[314,180]]},{name:"gavin-eyeright",ctxIndex:2,dots:[[357,155],[361,146],[359,138],[354,131],[344,128],[346,134],[346,141], [342,144],[334,142],[333,150],[340,157],[349,160]]},{name:"gavin-eyeleft",ctxIndex:2,dots:[[310,146],[316,142],[319,128],[314,120],[307,118],[302,120],[307,131],[303,135],[299,133],[296,126],[293,133],[295,141],[301,146]]},{name:"gavin-hornleft",ctxIndex:1,dots:[[347,67],[347,74],[333,83],[325,92],[319,108],[307,107],[309,96],[314,83],[324,74],[336,68]]},{name:"gavin-hornright",ctxIndex:1,dots:[[409,86],[410,93],[397,99],[384,107],[376,123],[362,118],[367,104],[378,95],[386,90],[398,87]]}],[{name:"balloon-red", ctxIndex:1,dots:[[466,28],[475,17],[486,11],[500,9],[510,14],[521,23],[528,37],[531,55],[529,73],[522,86],[504,103],[497,110],[503,119],[498,123],[490,123],[492,112],[489,106],[487,95],[483,83],[476,72],[469,66],[460,62],[462,41]]},{name:"balloon-pink",ctxIndex:1,dots:[[425,80],[434,67],[447,62],[459,63],[471,69],[485,88],[488,113],[483,130],[470,148],[456,159],[454,164],[458,172],[453,176],[445,173],[450,164],[446,158],[434,148],[426,138],[421,129],[416,112],[416,95]]},{name:"balloon-blue",ctxIndex:1, dots:[[391,3],[401,3],[412,6],[420,12],[430,25],[434,39],[434,57],[431,72],[420,86],[402,100],[400,105],[406,112],[400,117],[393,114],[396,106],[396,101],[381,88],[371,77],[365,60],[363,41],[367,25],[379,9]]},{name:"balloon-below",ctxIndex:1,dots:[[444,279],[441,297],[470,298],[464,279]]},{name:"plate",ctxIndex:1,dots:[[176,230],[176,242],[207,248],[240,248],[276,244],[293,238],[298,231],[287,225],[277,231],[258,236],[220,238],[188,234]]},{name:"tart-body",ctxIndex:1,dots:[[172,174],[174,230],[197, 235],[219,236],[248,236],[269,233],[285,227],[287,178],[280,174],[273,178],[265,177],[260,183],[255,180],[247,188],[237,183],[229,194],[222,193],[212,182],[204,186],[198,185],[189,176],[183,182],[177,176]]},{name:"tart-decor",ctxIndex:2,dots:[[168,195],[169,199],[176,199],[182,206],[188,209],[197,205],[204,212],[210,212],[215,208],[224,215],[230,216],[240,208],[248,214],[252,213],[256,207],[262,210],[270,208],[272,204],[276,204],[280,209],[283,199],[290,197],[286,191],[264,198],[251,200],[238,201], [225,201],[213,200],[204,199],[193,198],[184,196],[178,193],[173,190]]},{name:"tart-cream",ctxIndex:1,dots:[[171,161],[169,167],[172,173],[183,180],[190,174],[201,185],[213,179],[225,194],[237,181],[248,187],[254,179],[260,182],[265,176],[273,177],[280,171],[287,177],[288,159],[280,154],[256,150],[231,149],[216,149],[198,151],[179,153]]},{name:"candle1",ctxIndex:2,dots:[[196,156],[192,133],[185,134],[189,155]]},{name:"candle2",ctxIndex:2,dots:[[219,160],[218,137],[211,137],[213,159]]},{name:"candle3", ctxIndex:2,dots:[[244,159],[245,137],[237,137],[238,159]]},{name:"candle4",ctxIndex:2,dots:[[270,155],[273,133],[264,132],[263,154]]},{name:"fire4",ctxIndex:2,dots:[[277,122],[276,112],[270,106],[265,110],[263,120],[264,127],[269,132],[275,129]]},{name:"fire3",ctxIndex:2,dots:[[250,126],[247,116],[242,110],[238,113],[236,120],[234,128],[238,135],[246,134]]},{name:"fire3",ctxIndex:2,dots:[[221,127],[220,118],[216,110],[212,112],[209,117],[207,127],[210,133],[217,135]]},{name:"fire1",ctxIndex:2,dots:[[194, 128],[195,117],[191,108],[185,108],[182,114],[180,121],[182,128],[188,131]]},{name:"mama-head",ctxIndex:1,dots:[[110,73],[90,75],[65,83],[51,90],[49,107],[48,152],[51,195],[76,198],[91,202],[115,212],[144,211],[151,205],[166,195],[173,190],[171,173],[168,169],[170,161],[174,155],[158,111],[141,76]]},{name:"mama-eyeleft",ctxIndex:2,dots:[[82,107],[86,105],[93,108],[92,98],[82,91],[72,92],[66,100],[63,108],[63,115],[65,121],[71,127],[81,129],[89,121],[83,119],[80,114]]},{name:"mama-eyeright",ctxIndex:2, dots:[[130,103],[135,98],[143,102],[139,91],[131,86],[123,86],[116,90],[113,97],[114,105],[115,111],[117,111],[124,116],[130,117],[139,116],[131,109]]},{name:"mama-lipup",ctxIndex:2,dots:[[120,161],[127,158],[126,154],[120,153],[111,153],[106,154],[98,152],[90,151],[83,152],[94,159],[105,162],[112,162]]},{name:"mama-lipbelow",ctxIndex:2,dots:[[113,195],[121,192],[128,184],[130,174],[124,179],[118,184],[109,186],[101,186],[92,184],[84,175],[79,162],[77,170],[81,183],[87,191],[96,194],[103,195]]},{name:"mama-tounge", ctxIndex:2,dots:[[113,183],[118,181],[115,177],[103,177],[98,177],[92,181],[98,184],[106,185]]},{name:"mama-teeth2",ctxIndex:2,dots:[[116,174],[118,180],[125,176]]},{name:"mama-teeth1",ctxIndex:2,dots:[[96,172],[87,177],[94,181]]},{name:"mama-shirt",ctxIndex:2,dots:[[142,213],[119,214],[134,227]]},{name:"mama-dress",ctxIndex:2,dots:[[134,229],[107,211],[78,200],[51,196],[51,227],[51,248],[46,268],[56,274],[93,277],[154,277],[189,270],[200,265],[192,246],[179,244],[175,238],[173,225],[172,201],[165, 197],[151,207]]},{name:"mama-hand",ctxIndex:3,dots:[[102,226],[87,219],[76,213],[66,212],[65,221],[73,227],[87,235],[99,241],[118,246],[145,249],[162,249],[166,246],[166,239],[165,231],[155,229],[139,231],[120,229]]},{name:"mama-footleft",ctxIndex:1,dots:[[89,282],[82,284],[73,300],[71,317],[96,318],[99,295],[97,285]]},{name:"mama-footright",ctxIndex:1,dots:[[134,283],[128,290],[126,304],[127,315],[151,317],[150,291],[145,283]]},{name:"mama-shoesright",ctxIndex:1,dots:[[127,317],[128,328],[151,329], [152,318]]},{name:"mama-shoesleft",ctxIndex:1,dots:[[71,317],[70,329],[92,330],[95,320]]},{name:"baloonwhite1",ctxIndex:2,dots:[[370,34],[378,38],[384,36],[390,30],[393,20],[389,14],[382,13],[372,19]]},{name:"balloonwhite2",ctxIndex:2,dots:[[423,90],[425,96],[432,97],[438,95],[444,87],[444,77],[437,71],[425,80]]},{name:"ballonwhite3",ctxIndex:2,dots:[[470,26],[467,39],[473,45],[480,43],[487,36],[489,24],[484,20],[477,21]]}],[{name:"grass",ctxIndex:1,dots:[[70,279],[81,282],[77,272],[76,264],[80,259], [86,257],[99,259],[98,247],[101,239],[107,235],[118,236],[125,238],[126,227],[131,219],[139,219],[148,223],[236,223],[258,220],[260,238],[269,235],[276,236],[281,239],[284,245],[285,259],[293,251],[304,246],[310,248],[314,254],[312,264],[311,275],[322,271],[332,270],[339,274],[342,281],[340,290],[349,288],[358,289],[364,296],[363,311],[345,304],[328,298],[299,291],[273,286],[253,283],[231,282],[195,280],[166,281],[138,283],[122,285],[99,290],[83,294],[65,298],[63,289],[64,282]]},{name:"soil",ctxIndex:1, dots:[[20,319],[33,312],[52,305],[67,299],[86,294],[106,290],[140,284],[162,283],[199,281],[249,285],[285,289],[315,296],[368,313],[388,326],[8,327]]},{name:"rupa-pants",ctxIndex:2,dots:[[213,248],[229,246],[226,257],[202,259],[202,266],[213,273],[206,283],[199,278],[196,271],[195,260],[181,260],[187,285],[174,286],[172,259],[153,255],[149,244],[165,247],[187,249]]},{name:"rupa-footleft",ctxIndex:2,dots:[[175,287],[187,285],[189,295],[179,296]]},{name:"rupa-footright",ctxIndex:2,dots:[[208,284],[214, 273],[221,277],[216,287]]},{name:"rupa-upperjacket",ctxIndex:3,dots:[[188,214],[195,208],[210,203],[229,202],[229,213],[188,215],[181,223],[175,214],[151,211],[152,196],[162,201],[173,209],[181,223]]},{name:"rupa-centerjacket",ctxIndex:3,dots:[[176,216],[181,223],[187,216],[230,214],[229,235],[210,238],[182,239],[150,235],[151,212],[162,213]]},{name:"rupa-lowerjacket",ctxIndex:3,dots:[[207,239],[228,236],[229,245],[204,247],[178,247],[149,243],[150,235],[164,237],[181,240]]},{name:"rupa-handleft", ctxIndex:2,dots:[[132,216],[120,210],[127,202],[146,210],[148,215],[145,218]]},{name:"rupa-handright",ctxIndex:2,dots:[[240,222],[235,219],[235,214],[252,206],[257,207],[255,218]]},{name:"rupa-head",ctxIndex:2,dots:[[153,157],[156,116],[167,82],[173,64],[179,48],[185,39],[193,41],[197,47],[186,79],[181,98],[177,112],[191,112],[206,113],[222,116],[225,103],[232,88],[242,69],[251,57],[259,50],[267,53],[270,60],[257,79],[245,101],[237,126],[233,162],[230,200],[213,201],[199,205],[188,212],[181,222], [173,208],[165,201],[151,193]]},{name:"rupa-earright",ctxIndex:3,dots:[[247,72],[253,64],[257,66],[257,70],[251,79],[245,90],[240,101],[235,113],[232,115],[229,113],[229,109],[238,87]]},{name:"rupa-earleft",ctxIndex:3,dots:[[170,91],[174,77],[180,59],[184,56],[188,57],[187,63],[185,69],[180,82],[176,98],[173,107],[169,108],[166,105]]},{name:"rupa-eyeright",ctxIndex:3,dots:[[210,145],[212,136],[207,135],[202,139],[205,146],[216,138],[220,136],[221,148],[215,154],[206,157],[196,152],[193,144],[194, 137],[197,130],[203,126],[211,126],[218,133],[220,140]]},{name:"rupa-eyeleft",ctxIndex:3,dots:[[175,148],[183,138],[181,135],[175,133],[173,139],[175,144],[179,144],[182,152],[174,154],[167,151],[163,145],[163,136],[168,129],[174,126],[180,125],[187,129],[189,139],[186,148],[178,153]]},{name:"rupa-nose",ctxIndex:3,dots:[[187,167],[181,166],[179,160],[182,156],[186,155],[191,157],[191,164]]},{name:"rupa-mouth",ctxIndex:3,dots:[[190,194],[181,189],[178,183],[184,181],[193,179],[201,180],[197,191]]}, {name:"rupa-teeth",ctxIndex:4,dots:[[185,186],[184,181],[195,181],[194,186],[190,187]]},{name:"skipping-left",ctxIndex:1,dots:[[105,175],[110,171],[118,171],[123,178],[119,187],[117,192],[120,202],[119,216],[110,216],[109,200],[112,188],[104,183]]},{name:"skipping-right",ctxIndex:1,dots:[[269,185],[274,179],[282,179],[287,184],[285,192],[280,196],[276,197],[271,209],[263,221],[256,217],[258,211],[270,194]]},{name:"stone1",ctxIndex:2,dots:[[297,307],[305,310],[306,314],[298,317],[291,315],[291,310]]}, {name:"stone2",ctxIndex:2,dots:[[249,306],[253,299],[261,297],[269,298],[276,304],[271,311],[262,312],[253,311]]},{name:"stone3",ctxIndex:2,dots:[[113,305],[117,299],[123,297],[133,298],[139,306],[133,311],[126,312],[117,311]]},{name:"stone4",ctxIndex:2,dots:[[88,310],[92,306],[98,304],[104,307],[105,312],[99,316],[92,315]]}],[{name:"splats1-big",ctxIndex:1,dots:[[77,19],[85,19],[90,24],[93,33],[94,41],[101,37],[107,34],[113,35],[120,40],[124,47],[124,53],[118,58],[108,60],[109,65],[116,64],[124, 65],[129,70],[131,79],[132,88],[129,93],[122,96],[114,94],[103,91],[108,98],[113,107],[108,114],[99,117],[93,111],[86,105],[88,118],[87,127],[79,133],[68,133],[62,128],[61,117],[63,108],[59,102],[53,109],[46,112],[38,108],[31,99],[30,91],[34,85],[44,82],[43,78],[36,78],[29,76],[23,70],[22,62],[24,56],[27,51],[33,48],[41,49],[49,53],[53,54],[50,47],[45,40],[43,32],[48,26],[56,23],[62,27],[65,35],[70,41],[69,34],[71,22]]},{name:"splats2-big",ctxIndex:1,dots:[[215,159],[219,155],[229,149],[234,148], [238,151],[242,157],[238,164],[232,168],[226,172],[228,176],[237,175],[244,174],[250,177],[251,183],[247,190],[240,192],[232,192],[232,196],[242,199],[252,202],[256,206],[255,214],[249,221],[240,219],[234,215],[226,213],[222,216],[233,226],[238,233],[236,241],[232,245],[224,245],[216,237],[211,228],[206,225],[202,230],[207,239],[208,246],[202,252],[196,254],[188,250],[182,245],[183,237],[181,232],[174,244],[169,248],[162,248],[156,243],[153,238],[155,232],[161,226],[159,222],[148,229],[140,232],[133, 231],[130,225],[129,217],[135,213],[146,209],[149,205],[144,204],[134,203],[131,198],[129,193],[133,187],[140,186],[147,187],[153,184],[145,181],[139,175],[138,169],[142,162],[148,161],[153,164],[162,167],[166,164],[160,160],[155,151],[160,143],[167,141],[172,144],[178,151],[171,136],[170,128],[175,122],[184,122],[191,126],[191,136],[193,144],[198,149],[200,138],[205,131],[210,131],[215,133],[218,137],[218,144],[213,152],[210,158]]},{name:"splats3-big",ctxIndex:1,dots:[[88,276],[89,284],[85,289], [79,291],[87,296],[87,305],[82,310],[77,311],[72,310],[66,306],[64,307],[63,315],[59,319],[52,320],[44,319],[42,315],[41,311],[40,305],[35,306],[26,306],[21,303],[19,296],[20,290],[27,285],[24,282],[17,280],[16,274],[19,268],[27,268],[29,264],[26,259],[27,254],[32,250],[38,250],[43,251],[44,246],[50,242],[56,242],[63,245],[62,253],[62,257],[69,254],[76,253],[80,256],[84,262],[80,269],[77,272],[83,274]]},{name:"splats3-1",ctxIndex:1,dots:[[40,232],[44,237],[43,247],[38,249],[34,247],[32,242],[30,236], [33,232]]},{name:"splats3-2",ctxIndex:1,dots:[[12,252],[18,253],[22,256],[24,264],[19,266],[13,264],[8,260],[8,256]]},{name:"splats3-3",ctxIndex:1,dots:[[27,312],[32,308],[36,308],[39,308],[38,317],[33,323],[26,322],[24,317]]},{name:"splats3-4",ctxIndex:1,dots:[[66,321],[64,318],[64,313],[67,307],[72,312],[77,316],[76,323],[72,325]]},{name:"splats3-5",ctxIndex:1,dots:[[91,275],[81,271],[83,268],[85,266],[92,263],[97,264],[100,268],[98,272]]},{name:"splats2-1",ctxIndex:1,dots:[[140,251],[133,251], [129,247],[130,241],[136,237],[144,236],[144,243]]},{name:"splats2-2",ctxIndex:1,dots:[[223,248],[228,256],[228,262],[224,267],[218,265],[213,260],[211,246],[217,243]]},{name:"splats2-3",ctxIndex:1,dots:[[256,175],[262,173],[267,176],[267,181],[262,184],[254,182]]},{name:"splats2-4",ctxIndex:1,dots:[[249,162],[254,160],[260,161],[262,165],[260,172],[252,175],[244,172],[244,167]]},{name:"splats2-5",ctxIndex:1,dots:[[234,126],[240,126],[243,132],[240,138],[234,142],[226,146],[222,140],[227,132]]},{name:"splats2-6", ctxIndex:1,dots:[[193,108],[201,108],[205,116],[203,123],[200,128],[194,127],[191,122],[190,114]]},{name:"splats2-7",ctxIndex:1,dots:[[131,142],[136,138],[143,140],[148,144],[153,154],[150,158],[140,155],[132,150]]},{name:"splats2-8",ctxIndex:1,dots:[[107,198],[105,194],[108,189],[114,187],[123,193],[123,197],[117,200],[112,200]]},{name:"splats-10",ctxIndex:1,dots:[[120,209],[118,204],[121,199],[126,198],[133,201],[133,207],[126,211]]},{name:"splats1-1",ctxIndex:1,dots:[[45,129],[46,124],[50,118], [57,119],[57,130],[54,134],[48,134]]},{name:"splats1-2",ctxIndex:1,dots:[[130,114],[120,112],[115,104],[117,99],[125,100],[131,104],[132,110]]},{name:"splats1-3",ctxIndex:1,dots:[[103,32],[95,30],[94,20],[97,14],[102,11],[108,13],[111,21]]},{name:"splats1-4",ctxIndex:1,dots:[[60,22],[56,16],[54,9],[58,3],[66,4],[70,13],[67,24]]},{name:"splats1-5",ctxIndex:1,dots:[[25,91],[17,95],[11,93],[8,87],[9,81],[18,78],[31,79],[31,86]]},{name:"brush",ctxIndex:1,dots:[[294,167],[289,154],[291,141],[296,134], [303,140],[309,150],[311,163],[307,165],[301,167]]},{name:"brush-stick",ctxIndex:1,dots:[[293,170],[311,165],[316,184],[318,194],[322,222],[322,235],[321,251],[317,251],[314,245],[304,216],[298,187]]},{name:"denzil-handleft",ctxIndex:1,dots:[[322,214],[319,197],[331,199],[327,214]]},{name:"denzil-handright",ctxIndex:1,dots:[[514,251],[526,241],[534,249],[522,258]]},{name:"denzil-pants",ctxIndex:1,dots:[[437,273],[461,271],[485,268],[483,282],[492,308],[479,309],[471,284],[447,287],[410,286],[380, 283],[385,306],[371,307],[371,280],[370,266],[380,268],[407,271]]},{name:"denzil-jacket",ctxIndex:1,dots:[[487,207],[496,207],[502,213],[500,224],[513,231],[524,239],[513,248],[502,239],[484,230],[485,247],[484,267],[447,272],[408,270],[369,265],[370,245],[371,225],[328,215],[332,200],[351,208],[368,215],[373,203],[386,204],[397,210],[406,226],[417,245],[429,229],[441,212],[453,208],[474,207]]},{name:"denzil-circleleft",ctxIndex:2,dots:[[396,237],[392,234],[387,235],[386,240],[391,242],[395,242]]}, {name:"denzil-circleright",ctxIndex:2,dots:[[449,238],[444,238],[442,242],[444,245],[449,245],[451,242]]},{name:"denzil-cloth",ctxIndex:2,dots:[[431,221],[406,220],[418,244]]},{name:"denzil-head",ctxIndex:1,dots:[[433,220],[406,218],[400,211],[392,204],[374,201],[385,117],[395,113],[419,110],[450,112],[472,119],[477,127],[482,205],[458,206],[440,211]]},{name:"denzil-earright",ctxIndex:1,dots:[[523,139],[519,146],[514,150],[505,150],[501,142],[497,131],[492,125],[482,119],[482,115],[490,111],[502, 111],[513,118],[521,129]]},{name:"denzil-earleft",ctxIndex:1,dots:[[373,106],[381,110],[378,115],[368,120],[360,134],[356,142],[348,143],[341,138],[337,129],[342,119],[349,112],[357,106],[366,104]]},{name:"denzil-patch",ctxIndex:2,dots:[[401,113],[419,111],[427,112],[428,124],[427,139],[421,154],[414,155],[405,161],[405,169],[393,172],[377,173],[382,136],[386,117]]},{name:"eye-right",ctxIndex:2,dots:[[451,135],[446,131],[440,132],[442,127],[450,123],[456,124],[463,131],[467,141],[464,151],[456,155], [446,155],[440,146],[446,145],[450,143]]},{name:"eye-left",ctxIndex:3,dots:[[399,140],[398,134],[390,129],[393,125],[400,123],[406,124],[412,129],[414,138],[410,147],[405,152],[398,154],[391,151],[388,145],[396,144]]},{name:"mouth",ctxIndex:2,dots:[[413,186],[422,185],[435,183],[443,178],[452,172],[453,187],[449,195],[439,200],[427,200],[420,197]]},{name:"teeth2",ctxIndex:3,dots:[[446,186],[452,189],[446,196],[444,188]]},{name:"teeth1",ctxIndex:3,dots:[[428,193],[429,200],[420,196],[423,193]]},{name:"tounge", ctxIndex:3,dots:[[441,194],[448,195],[438,199],[428,199],[432,196]]}],[{name:"gkey",ctxIndex:1,dots:[[180,3],[191,5],[196,12],[197,20],[195,30],[190,43],[186,53],[189,60],[197,58],[205,64],[207,75],[202,84],[200,90],[204,101],[200,109],[193,112],[184,108],[182,103],[181,98],[185,96],[191,96],[194,99],[191,92],[182,93],[172,87],[169,79],[169,66],[175,53],[168,36],[160,20],[161,12],[169,5]]},{name:"nada",ctxIndex:1,dots:[[305,70],[299,65],[299,57],[304,53],[311,54],[313,44],[317,31],[322,27],[331,27], [342,30],[352,34],[357,38],[357,43],[352,53],[347,68],[343,76],[337,78],[331,76],[325,69],[326,62],[333,58],[338,60],[341,44],[328,41],[322,55],[319,69],[310,73]]},{name:"nada2",ctxIndex:1,dots:[[257,165],[258,160],[264,155],[270,156],[269,146],[266,128],[270,118],[279,117],[284,123],[283,136],[282,154],[283,171],[276,175],[267,175],[260,170]]},{name:"mia-head",ctxIndex:1,dots:[[537,162],[536,171],[530,179],[522,185],[512,185],[504,183],[495,180],[488,182],[486,197],[484,220],[485,248],[472,250], [455,251],[431,249],[413,246],[395,243],[396,235],[408,232],[412,227],[414,220],[414,211],[409,205],[401,199],[406,168],[402,164],[392,169],[378,166],[370,160],[366,151],[366,141],[371,132],[379,125],[389,124],[399,129],[404,138],[406,152],[407,162],[432,163],[462,167],[487,176],[492,170],[493,156],[498,147],[507,140],[517,138],[526,143],[534,150]]},{name:"miaearinright",ctxIndex:2,dots:[[526,162],[525,169],[519,176],[513,178],[505,178],[497,175],[497,165],[499,156],[505,151],[512,149],[518,151], [525,156]]},{name:"mia-earinleft",ctxIndex:2,dots:[[393,137],[398,141],[401,146],[401,151],[399,159],[388,162],[380,159],[375,151],[376,145],[380,139],[386,136]]},{name:"mia-eyeright",ctxIndex:3,dots:[[468,162],[474,166],[478,174],[475,184],[470,190],[463,191],[456,189],[453,184],[452,176],[455,169],[460,164]]},{name:"mia-eyeleft",ctxIndex:3,dots:[[427,159],[431,163],[434,168],[433,176],[430,182],[423,185],[416,184],[410,176],[411,168],[413,162],[419,158]]},{name:"mouth",ctxIndex:2,dots:[[441,216], [442,210],[449,209],[458,207],[454,216],[450,225],[444,226],[440,224],[436,219],[434,217]]},{name:"teeth",ctxIndex:2,dots:[[441,210],[441,216],[432,215],[430,209]]},{name:"mia-nose",ctxIndex:2,dots:[[444,189],[441,198],[435,198],[432,188]]},{name:"mia-clothhandright",ctxIndex:2,dots:[[472,235],[483,229],[476,241],[473,249],[464,248],[467,241]]},{name:"mia-clothhandleft",ctxIndex:2,dots:[[408,233],[410,244],[403,243],[402,234]]},{name:"mia-cloth",ctxIndex:1,dots:[[484,249],[486,264],[458,267],[424, 265],[393,260],[395,243],[427,250],[456,253]]},{name:"mia-skirt",ctxIndex:1,dots:[[489,271],[485,265],[458,268],[423,266],[393,260],[386,267],[378,265],[374,269],[380,277],[389,278],[397,274],[406,281],[415,281],[421,277],[431,283],[440,283],[448,279],[454,282],[460,284],[468,283],[475,278],[481,281],[489,285],[494,284],[501,277],[498,272]]},{name:"mia-footleft",ctxIndex:1,dots:[[422,290],[420,304],[431,304],[431,292]]},{name:"mia-shoesleft",ctxIndex:1,dots:[[421,304],[420,311],[431,310],[431,304]]}, {name:"mia-shoesright",ctxIndex:1,dots:[[454,304],[461,304],[461,295],[455,294]]},{name:"mia-footright",ctxIndex:1,dots:[[442,290],[444,300],[454,304],[455,293],[448,287]]},{name:"mia-handright",ctxIndex:1,dots:[[490,238],[491,244],[510,241],[522,232],[516,225],[506,232]]},{name:"mia-handleft",ctxIndex:1,dots:[[372,241],[363,247],[372,251],[381,252],[393,241],[389,237],[379,242]]},{name:"mia-michead",ctxIndex:3,dots:[[388,204],[395,201],[401,201],[413,211],[410,225],[405,232],[395,233],[386,230], [380,220],[380,213],[382,208]]},{name:"mic-stick",ctxIndex:1,dots:[[378,217],[385,229],[387,236],[380,240],[372,237],[343,252],[338,244],[365,227],[369,222],[372,218]]},{name:"mouth",ctxIndex:2,dots:[[441,216],[442,210],[449,209],[458,207],[454,216],[450,225],[444,226],[440,224],[436,219],[434,217]]},{name:"teeth",ctxIndex:2,dots:[[441,210],[441,216],[432,215],[430,209]]},{name:"mia-nose",ctxIndex:2,dots:[[444,189],[441,198],[435,198],[432,188]]},{name:"mia-cloth",ctxIndex:2,dots:[[486,263],[491, 273],[501,272],[499,282],[492,284],[485,284],[475,278],[468,283],[460,284],[454,283],[448,279],[442,283],[434,284],[426,282],[421,277],[413,282],[404,281],[398,275],[387,279],[378,277],[374,268],[381,265],[387,266],[392,259],[394,243],[405,246],[402,234],[407,232],[409,236],[410,247],[426,250],[450,252],[463,252],[466,244],[470,237],[474,233],[482,230],[477,240],[472,251],[485,249]]},{name:"mia-skirt",ctxIndex:1,dots:[[489,271],[485,265],[458,268],[423,266],[393,260],[386,267],[378,265],[374,269], [380,277],[389,278],[397,274],[406,281],[415,281],[421,277],[431,283],[440,283],[448,279],[454,282],[460,284],[468,283],[475,278],[481,281],[489,285],[494,284],[501,277],[498,272]]},{name:"mia-footleft",ctxIndex:1,dots:[[422,290],[420,304],[431,304],[431,292]]},{name:"mia-shoesleft",ctxIndex:1,dots:[[421,304],[420,311],[431,310],[431,304]]},{name:"mia-shoesright",ctxIndex:1,dots:[[454,304],[461,304],[461,295],[455,294]]},{name:"mia-footright",ctxIndex:1,dots:[[442,290],[444,300],[454,304],[455,293], [448,287]]},{name:"mia-handright",ctxIndex:1,dots:[[490,238],[491,244],[510,241],[522,232],[516,225],[506,232]]},{name:"mia-handleft",ctxIndex:1,dots:[[372,241],[363,247],[372,251],[381,252],[393,241],[389,237],[379,242]]},{name:"drum-body1",ctxIndex:1,dots:[[152,249],[152,261],[155,264],[162,270],[171,270],[170,249]]},{name:"drum-body2",ctxIndex:1,dots:[[171,250],[171,270],[191,269],[191,250]]},{name:"drum-body3",ctxIndex:1,dots:[[191,249],[191,270],[208,269],[209,249]]},{name:"drum-head1",ctxIndex:1, dots:[[198,241],[178,240],[165,241],[151,243],[155,246],[171,247],[190,248],[198,247],[205,247],[210,243]]},{name:"stick-right",ctxIndex:2,dots:[[133,215],[135,213],[185,236],[190,238],[190,243],[185,243],[138,220]]},{name:"drum-head2",ctxIndex:1,dots:[[134,321],[148,319],[159,310],[165,296],[165,283],[161,273],[153,265],[142,260],[131,260],[120,264],[112,271],[108,279],[107,286],[107,297],[111,308],[121,317]]},{name:"drum-star",ctxIndex:2,dots:[[131,281],[136,269],[140,269],[144,281],[157,283],[158, 286],[148,295],[152,308],[148,309],[137,302],[125,309],[122,308],[126,294],[117,285],[118,281]]},{name:"drum-body4",ctxIndex:1,dots:[[122,259],[112,261],[103,267],[113,269]]},{name:"drum-body5",ctxIndex:1,dots:[[111,270],[100,269],[93,283],[104,284]]},{name:"drum-body6",ctxIndex:1,dots:[[94,284],[94,292],[98,303],[107,303],[104,285]]},{name:"drum-body7",ctxIndex:1,dots:[[99,305],[114,318],[108,304]]},{name:"denzil-footleft",ctxIndex:1,dots:[[36,283],[31,297],[42,299],[45,285]]},{name:"denzil-pants", ctxIndex:1,dots:[[68,281],[46,279],[43,299],[33,299],[32,293],[39,276],[35,265],[44,266],[61,269],[75,269],[86,269],[97,268],[93,280]]},{name:"denzil-jacket",ctxIndex:1,dots:[[141,209],[154,211],[151,219],[134,210],[131,212],[135,220],[128,225],[131,259],[114,261],[117,241],[121,241],[123,237],[120,233],[117,234],[114,237],[116,240],[129,256],[120,256],[111,258],[103,264],[99,266],[84,267],[66,267],[48,266],[34,264],[34,246],[16,247],[15,238],[25,234],[22,220],[27,216],[32,216],[34,224],[36,232], [38,245],[47,242],[48,232],[40,216],[54,217],[65,218],[73,223],[79,231],[83,236],[75,234],[66,237],[59,243],[50,244],[44,247],[43,250],[52,255],[73,256],[88,256],[97,255],[104,252],[106,248],[102,245],[93,243],[97,235],[103,224],[109,217],[116,214],[127,214],[136,209]]},{name:"denzil-handright",ctxIndex:2,dots:[[155,214],[152,221],[157,222],[159,216]]},{name:"denzil-handleft",ctxIndex:2,dots:[[36,231],[45,230],[47,241],[39,244]]},{name:"symbal",ctxIndex:2,dots:[[48,246],[55,244],[63,243],[66,240], [73,236],[80,237],[86,241],[89,247],[89,243],[97,244],[104,247],[103,251],[97,253],[87,254],[72,254],[60,254],[48,252],[45,248]]},{name:"denzil-cloth",ctxIndex:2,dots:[[99,226],[79,227],[88,243],[92,242]]},{name:"circle-right",ctxIndex:2,dots:[[116,235],[119,234],[121,236],[121,239],[118,241],[115,239]]},{name:"drum-stick2",ctxIndex:3,dots:[[22,186],[24,192],[40,228],[43,228],[29,187],[25,184]]},{name:"denzil-head",ctxIndex:1,dots:[[43,147],[38,193],[38,212],[43,214],[59,215],[70,218],[79,226],[100, 226],[105,218],[114,213],[125,212],[117,144],[92,139],[64,141]]},{name:"denzil-patch",ctxIndex:2,dots:[[43,147],[41,169],[40,190],[49,190],[61,188],[72,183],[80,175],[84,165],[85,152],[85,139],[64,141]]},{name:"denzil-eyeleft",ctxIndex:3,dots:[[54,152],[51,160],[52,170],[56,174],[63,175],[68,173],[73,164],[73,153],[67,148],[61,147]]},{name:"denzil-eyeright",ctxIndex:2,dots:[[93,161],[95,169],[100,173],[106,174],[112,171],[115,161],[112,154],[108,149],[101,147],[95,152]]},{name:"denzil-mouth",ctxIndex:2, dots:[[63,190],[72,195],[77,198],[89,200],[93,201],[89,207],[86,205],[84,205],[82,206],[81,210],[77,206],[73,206],[69,207],[71,203],[69,201],[64,201]]},{name:"denzil-earright",ctxIndex:1,dots:[[121,144],[127,144],[132,148],[136,157],[139,163],[145,165],[153,161],[155,152],[151,145],[143,138],[133,134],[125,135],[119,140]]},{name:"denzil-earleft",ctxIndex:1,dots:[[5,157],[7,165],[13,169],[20,168],[24,158],[30,149],[40,145],[37,141],[27,138],[20,140],[13,144],[7,151]]},{name:"denzil-tounge",ctxIndex:3, dots:[[76,206],[69,207],[68,209],[75,211],[80,211]]},{name:"denzil-teethright",ctxIndex:3,dots:[[83,210],[83,207],[84,206],[88,208],[87,209]]},{name:"denzil-teethleft",ctxIndex:3,dots:[[67,201],[69,203],[67,207],[64,203]]}],[{name:"tree1",ctxIndex:1,dots:[[286,9],[311,4],[326,3],[342,3],[354,4],[363,8],[367,13],[371,19],[374,33],[376,60],[377,82],[376,104],[371,117],[360,122],[327,125],[301,127],[289,123],[283,114],[280,98],[277,80],[274,56],[274,40],[274,22],[279,14]]},{name:"trunk1",ctxIndex:2, dots:[[320,84],[323,76],[328,74],[334,75],[337,84],[335,100],[341,90],[346,86],[352,87],[356,91],[351,100],[345,106],[340,110],[340,116],[342,142],[345,178],[348,209],[352,267],[328,261],[326,241],[325,204],[324,173],[322,135],[323,115],[310,110],[305,104],[306,97],[312,92],[318,96],[324,103],[323,97]]},{name:"tree2",ctxIndex:1,dots:[[419,103],[431,85],[440,70],[453,53],[462,49],[469,55],[473,66],[474,79],[475,96],[477,114],[480,141],[480,166],[479,187],[473,203],[463,210],[434,205],[425,204],[415, 202],[403,199],[392,194],[387,185],[388,174],[391,159],[400,140],[410,121]]},{name:"trunk2",ctxIndex:2,dots:[[426,184],[429,163],[431,153],[437,151],[443,154],[444,164],[438,180],[438,186],[445,178],[451,178],[455,181],[454,185],[449,190],[442,193],[437,198],[434,205],[422,262],[419,289],[397,281],[403,263],[417,203],[418,192],[410,182],[409,176],[412,172],[418,171],[422,175]]},{name:"grass",ctxIndex:1,dots:[[99,331],[3,331],[34,311],[81,287],[130,272],[178,260],[218,256],[253,254],[288,256],[334, 262],[374,273],[413,288],[454,307],[492,330],[444,331],[365,331],[283,331],[195,331]]},{name:"flower-in",ctxIndex:3,dots:[[350,243],[350,238],[353,235],[361,234],[370,235],[374,226],[381,220],[386,221],[391,227],[393,239],[399,240],[405,242],[411,247],[410,252],[405,257],[397,261],[399,272],[396,280],[390,281],[383,277],[376,271],[368,274],[360,276],[355,274],[353,270],[355,262],[359,255],[354,249]]},{name:"flower-out",ctxIndex:4,dots:[[368,246],[372,241],[378,239],[387,241],[392,248],[393,256],[388, 262],[382,265],[374,265],[368,261],[365,252]]},{name:"flower-trunk",ctxIndex:2,dots:[[357,291],[355,284],[359,282],[366,283],[372,288],[372,274],[375,271],[380,275],[381,290],[380,303],[382,314],[373,314],[372,298],[366,298],[361,296]]},{name:"bike-ban2",ctxIndex:2,dots:[[255,302],[260,292],[260,285],[256,276],[246,267],[236,265],[227,269],[220,273],[215,270],[223,264],[235,259],[247,261],[261,272],[266,293],[259,307],[249,315],[237,317],[227,315],[220,311],[210,300],[218,299],[225,306],[234,310], [244,310]]},{name:"bike-ban1",ctxIndex:2,dots:[[99,300],[92,309],[85,313],[77,316],[68,316],[58,313],[51,306],[46,300],[44,292],[46,277],[53,268],[61,263],[69,260],[83,262],[81,268],[76,266],[68,266],[61,269],[53,276],[49,289],[52,299],[59,306],[66,310],[74,311],[83,309],[91,303],[95,293],[94,283],[91,275],[84,269],[87,265],[94,270],[99,278],[101,291]]},{name:"bike-stang",ctxIndex:2,dots:[[118,270],[128,276],[138,281],[150,284],[164,286],[165,292],[158,292],[149,290],[139,288],[128,284],[118,278], [111,272],[104,265],[96,254],[92,249],[96,241],[101,250],[107,257],[111,264]]},{name:"rantai",ctxIndex:2,dots:[[173,273],[192,275],[212,277],[233,279],[241,281],[245,284],[246,291],[243,296],[233,297],[205,298],[189,299],[172,299],[167,294],[164,286],[166,278]]},{name:"bike-sit",ctxIndex:2,dots:[[223,241],[229,226],[235,197],[239,183],[245,181],[251,183],[253,191],[241,250],[234,256],[219,256],[195,257],[174,257],[161,257],[148,255],[148,248],[154,245],[170,249],[194,249],[205,249],[217,248]]},{name:"gavin-pants", ctxIndex:3,dots:[[158,258],[177,258],[178,248],[163,247],[157,244],[154,235],[224,235],[217,246],[206,248],[191,248],[188,289],[174,285],[175,262],[157,267]]},{name:"bike-front",ctxIndex:2,dots:[[90,250],[83,246],[90,231],[98,234]]},{name:"gavin-handleft",ctxIndex:2,dots:[[137,217],[122,219],[121,208],[138,206]]},{name:"gavin-jacket",ctxIndex:2,dots:[[205,192],[221,189],[222,202],[223,234],[200,235],[201,212],[177,215],[163,218],[163,235],[154,236],[153,220],[145,214],[121,220],[120,208],[152,203], [151,192],[157,193],[162,195],[163,201],[200,202],[201,195]]},{name:"gavin-shirt2",ctxIndex:1,dots:[[199,226],[199,235],[164,234],[165,226],[177,226]]},{name:"gavin-shirt1",ctxIndex:1,dots:[[200,212],[199,225],[182,225],[164,226],[163,219]]},{name:"bike-below",ctxIndex:2,dots:[[210,269],[224,276],[210,276],[190,267],[192,261]]},{name:"gavin-head",ctxIndex:1,dots:[[186,119],[206,119],[212,128],[219,136],[220,153],[220,165],[221,189],[207,191],[200,195],[199,201],[164,201],[159,193],[152,191],[152, 171],[148,165],[143,159],[143,151],[148,146],[145,119],[165,119]]},{name:"gavin-eyeleft",ctxIndex:2,dots:[[161,119],[166,122],[169,129],[168,136],[164,142],[156,145],[150,143],[145,136],[145,128],[149,122],[153,119]]},{name:"gavin-eyeright",ctxIndex:2,dots:[[190,119],[201,119],[207,125],[209,133],[207,142],[200,146],[193,146],[189,144],[185,139],[184,132],[185,126]]},{name:"gavin-mouth",ctxIndex:2,dots:[[198,174],[190,179],[181,181],[176,175],[198,167]]},{name:"circle",ctxIndex:2,dots:[[222,119], [225,126],[222,131],[216,129],[215,123],[217,118]]},{name:"helm",ctxIndex:2,dots:[[224,114],[225,123],[220,117],[216,118],[214,126],[204,118],[195,118],[183,118],[170,117],[157,118],[135,119],[129,119],[134,114],[142,110],[148,97],[155,86],[166,77],[181,74],[194,75],[205,80],[207,88],[213,94],[220,95]]},{name:"helm-list",ctxIndex:3,dots:[[173,105],[164,106],[155,106],[159,89],[164,79],[181,75],[193,76],[189,82],[183,93],[182,105]]},{name:"gavin-hornright",ctxIndex:2,dots:[[240,69],[229,79],[218,91], [211,90],[207,85],[213,75],[226,67],[236,63]]},{name:"gavin-hornleft",ctxIndex:2,dots:[[179,68],[175,72],[169,75],[159,80],[156,78],[162,69],[172,64]]},{name:"gavin-earleft",ctxIndex:2,dots:[[124,94],[136,95],[143,101],[140,110],[133,114],[126,108],[121,98]]},{name:"gavin-earright",ctxIndex:2,dots:[[235,102],[244,102],[253,105],[250,114],[242,120],[228,122],[225,107]]}],[{name:"crecentmoon",ctxIndex:1,dots:[[83,19],[92,25],[95,31],[79,32],[64,39],[57,48],[52,61],[52,73],[58,91],[66,100],[74,107], [74,112],[63,113],[45,108],[28,96],[19,82],[14,69],[13,58],[16,41],[22,30],[34,19],[47,14],[65,14],[74,16]]},{name:"star1",ctxIndex:1,dots:[[125,35],[113,39],[113,43],[124,49],[124,64],[128,65],[137,55],[151,59],[154,56],[147,42],[155,32],[152,28],[139,31],[131,21],[126,22]]},{name:"star2",ctxIndex:1,dots:[[36,252],[53,250],[56,254],[47,269],[55,285],[52,288],[34,283],[22,295],[17,292],[18,277],[3,268],[3,264],[18,257],[22,240],[26,240]]},{name:"star3",ctxIndex:1,dots:[[363,20],[365,4],[370,2],[381, 16],[397,12],[400,15],[391,32],[400,48],[397,50],[379,45],[367,58],[362,55],[361,38],[347,31],[348,26]]},{name:"star4",ctxIndex:1,dots:[[386,137],[381,126],[383,122],[395,126],[404,116],[408,118],[409,131],[421,136],[419,141],[409,144],[406,159],[404,160],[395,148],[381,151],[379,148]]},{name:"star5",ctxIndex:1,dots:[[539,108],[526,95],[527,90],[546,91],[555,77],[560,77],[564,95],[581,99],[581,105],[568,113],[569,130],[565,131],[550,121],[536,128],[531,125]]},{name:"box",ctxIndex:1,dots:[[479,249], [536,250],[533,308],[523,311],[386,311],[367,309],[329,299],[328,240],[374,247]]},{name:"star6",ctxIndex:2,dots:[[413,273],[404,274],[402,282],[399,281],[395,275],[388,275],[386,273],[392,267],[389,261],[392,258],[399,262],[405,258],[407,258],[408,266],[414,270]]},{name:"star7",ctxIndex:2,dots:[[454,266],[462,270],[461,272],[453,274],[449,281],[447,281],[443,274],[435,275],[435,272],[439,267],[437,260],[439,259],[446,261],[454,257],[455,258]]},{name:"star8",ctxIndex:2,dots:[[481,293],[486,297],[484, 300],[478,299],[473,305],[472,304],[470,297],[464,297],[464,294],[468,291],[468,285],[471,284],[476,288],[483,286],[484,287]]},{name:"star9",ctxIndex:2,dots:[[524,266],[528,271],[521,272],[517,277],[513,271],[510,269],[513,265],[513,259],[519,262],[526,260]]},{name:"crescentmoon2",ctxIndex:2,dots:[[498,292],[491,288],[486,283],[485,276],[485,270],[490,262],[497,258],[506,257],[502,265],[500,271],[502,278],[508,282],[514,284],[521,284],[514,291],[507,293]]},{name:"crecentmoon3",ctxIndex:2,dots:[[419, 287],[420,281],[418,277],[420,275],[426,278],[430,283],[431,291],[426,299],[419,303],[413,303],[406,302],[400,298],[398,292],[404,293],[411,294],[415,291]]},{name:"boxred",ctxIndex:1,dots:[[447,184],[514,210],[521,210],[537,217],[524,246],[498,247],[415,246]]},{name:"hat-purple",ctxIndex:1,dots:[[413,189],[439,191],[434,205],[415,245],[379,244],[351,240],[349,218],[325,215],[317,211],[317,206],[324,201],[344,194],[374,190]]},{name:"hatgreen",ctxIndex:2,dots:[[377,219],[388,219],[382,234],[352,231], [349,220],[360,219]]},{name:"yellow",ctxIndex:3,dots:[[354,228],[360,219],[368,211],[379,204],[388,201],[399,200],[409,201],[415,200],[426,198],[436,198],[427,219],[423,225],[416,227],[407,231],[399,237],[395,244],[379,244],[383,229],[388,220],[395,212],[380,216],[372,223],[365,233],[362,241],[349,239]]},{name:"boj-body",ctxIndex:1,dots:[[323,131],[326,150],[321,159],[313,167],[303,168],[308,159],[308,151],[303,143],[293,135],[280,132],[269,131],[254,136],[207,152],[200,121],[209,100],[220,86],[231, 75],[233,69],[234,62],[230,58],[218,57],[231,50],[244,48],[252,54],[257,62],[259,73],[254,81],[242,91],[230,96],[218,102],[199,120],[173,143],[162,143],[149,135],[142,111],[134,111],[133,127],[135,147],[143,164],[159,179],[172,187],[167,201],[158,222],[123,213],[130,227],[157,231],[159,250],[166,264],[171,271],[161,292],[145,301],[144,308],[170,300],[180,274],[198,278],[192,306],[223,306],[222,301],[206,297],[208,277],[216,261],[221,243],[265,235],[261,221],[223,232],[233,182],[231,153],[270,122], [294,116],[313,124]]},{name:"boj-tail",ctxIndex:1,dots:[[278,295],[274,297],[270,298],[271,302],[263,299],[262,304],[255,297],[255,291],[258,287],[262,285],[264,289],[271,286],[271,291],[276,292]]},{name:"boj-tummy",ctxIndex:2,dots:[[164,213],[168,216],[171,221],[172,227],[170,233],[164,238],[159,238],[161,247],[165,260],[169,265],[175,270],[180,272],[192,275],[200,275],[207,271],[213,264],[215,257],[216,249],[220,229],[215,230],[210,231],[207,236],[205,241],[206,247],[208,250],[212,253],[216,255], [214,258],[210,257],[205,257],[201,259],[197,262],[195,267],[195,275],[182,273],[181,268],[180,264],[177,259],[185,261],[191,261],[197,257],[202,249],[202,242],[200,236],[196,231],[190,229],[184,228],[178,231],[173,235],[171,244],[173,257],[168,255],[163,256],[162,252],[159,239],[160,225]]},{name:"boj-eyeleft",ctxIndex:2,dots:[[180,151],[177,141],[180,132],[187,124],[195,121],[200,122],[206,126],[209,132],[209,140],[205,150],[197,157],[191,157],[186,156]]},{name:"boj-eyeright",ctxIndex:2,dots:[[223, 178],[214,173],[210,166],[209,160],[209,152],[217,140],[225,135],[235,135],[242,139],[247,147],[248,159],[243,170],[235,178]]},{name:"boj-earinright",ctxIndex:2,dots:[[251,148],[247,141],[259,136],[267,133],[279,132],[289,135],[300,141],[307,151],[306,160],[301,167],[294,163],[285,152],[275,145],[266,143],[258,144]]},{name:"boj-earinleft",ctxIndex:2,dots:[[201,82],[206,69],[215,60],[222,60],[229,59],[234,63],[232,71],[228,78],[219,86],[214,92],[209,98],[205,107],[201,117],[193,117],[196,98]]},{name:"boj-earoutleft", ctxIndex:1,dots:[[221,57],[230,50],[242,48],[249,52],[256,60],[258,70],[256,80],[246,88],[234,94],[221,101],[212,107],[206,113],[201,117],[213,95],[229,78],[233,69],[234,62],[230,58]]},{name:"boj-earoutright",ctxIndex:1,dots:[[298,118],[308,122],[315,126],[322,134],[326,145],[322,158],[314,165],[308,168],[303,168],[307,161],[309,154],[306,147],[299,140],[290,134],[279,131],[258,132],[273,123],[285,118]]},{name:"boj-mouth",ctxIndex:2,dots:[[213,195],[214,204],[212,210],[208,214],[203,215],[197,214], [192,207],[190,197],[197,198],[205,199]]},{name:"teeth",ctxIndex:3,dots:[[209,200],[208,204],[205,206],[199,205],[196,202],[197,200],[205,200]]},{name:"stick",ctxIndex:1,dots:[[66,133],[75,128],[132,233],[122,238]]}],[{name:"mia-body",ctxIndex:1,dots:[[379,83],[385,90],[388,99],[386,111],[379,122],[370,126],[360,127],[345,118],[340,110],[333,112],[331,169],[365,169],[368,180],[357,181],[345,179],[334,174],[330,179],[312,181],[293,180],[300,217],[306,229],[299,237],[292,225],[278,179],[277,234],[266, 232],[271,178],[240,172],[221,181],[207,185],[206,173],[220,170],[240,161],[253,96],[210,71],[219,64],[233,65],[254,89],[325,101],[339,106],[349,89],[357,81],[369,79]]},{name:"hatred",ctxIndex:1,dots:[[568,119],[586,125],[599,189],[588,197],[552,204],[521,200],[507,193],[517,124],[549,120]]},{name:"hatbrown",ctxIndex:1,dots:[[374,265],[381,251],[395,240],[414,235],[435,240],[450,250],[457,262],[461,274],[460,295],[469,302],[477,312],[471,318],[424,298],[389,289],[376,282],[357,270],[350,263],[352, 258],[366,262]]},{name:"hatbrown-list",ctxIndex:2,dots:[[378,260],[396,270],[411,276],[436,286],[411,290],[391,282],[374,270]]},{name:"hatpink-front",ctxIndex:1,dots:[[64,217],[78,208],[90,194],[119,195],[135,200],[136,211],[126,225],[115,233],[103,237],[83,238],[64,235],[47,227]]},{name:"hatpink-center",ctxIndex:1,dots:[[64,215],[78,207],[88,194],[79,174],[66,164],[56,161],[43,160],[30,166],[21,172],[20,189],[27,210],[37,227]]},{name:"hatpink-love",ctxIndex:2,dots:[[55,200],[73,200],[75,187],[71, 173],[63,166],[56,165],[50,168],[49,176],[42,175],[37,179],[36,186],[42,193]]},{name:"hatpink-behind",ctxIndex:2,dots:[[3,206],[5,215],[13,231],[26,230],[34,227],[27,211],[22,198],[21,189],[20,181],[19,172],[11,178],[5,190]]},{name:"hatpink-circle",ctxIndex:2,dots:[[16,172],[29,166],[26,163],[19,163],[16,166]]},{name:"hatyellow",ctxIndex:1,dots:[[321,20],[304,12],[291,7],[273,3],[264,18],[248,15],[236,15],[235,19],[238,26],[246,32],[267,44],[293,58],[321,69],[345,75],[356,76],[365,75],[362,68],[353, 60],[345,54],[350,38],[343,31]]},{name:"hatyellow-list",ctxIndex:2,dots:[[319,46],[306,40],[296,37],[284,30],[266,19],[264,22],[261,30],[271,37],[288,46],[300,52],[317,59],[329,62],[339,64],[343,52],[337,51],[330,49]]},{name:"mia-eyeleft",ctxIndex:2,dots:[[280,102],[268,104],[258,107],[261,113],[269,115],[276,112]]},{name:"mia-eyeright",ctxIndex:2,dots:[[308,92],[301,96],[298,103],[300,115],[305,120],[312,121],[319,118],[323,111],[322,101],[317,96],[315,104],[312,106],[307,105],[308,99]]},{name:"mia-mouth", ctxIndex:2,dots:[[287,146],[285,147],[280,148],[282,155],[290,158],[295,157],[299,149],[301,137],[293,140],[288,141]]},{name:"mia-hat",ctxIndex:2,dots:[[263,47],[329,74],[327,89],[346,89],[339,102],[339,111],[343,116],[354,126],[364,129],[374,130],[383,125],[390,115],[394,116],[388,129],[378,134],[367,134],[353,133],[336,125],[336,106],[323,98],[316,89],[269,102],[247,106],[222,107],[203,103],[187,97],[185,87],[193,80],[210,74],[239,73],[252,59]]},{name:"mia-hatlist",ctxIndex:3,dots:[[263,77],[283, 80],[302,82],[328,87],[329,78],[302,72],[276,69],[264,68]]},{name:"mia-hatflower",ctxIndex:4,dots:[[232,80],[236,83],[238,87],[245,89],[251,88],[256,84],[261,81],[263,73],[262,67],[260,63],[253,60],[243,61],[238,66],[233,69],[232,74]]},{name:"mia-hatcircle",ctxIndex:5,dots:[[242,74],[244,79],[249,80],[252,76],[252,71],[248,70],[244,71]]},{name:"mia-earrightin",ctxIndex:3,dots:[[366,91],[360,90],[355,93],[351,97],[348,101],[346,107],[354,113],[361,116],[369,113],[373,109],[375,101],[371,94]]},{name:"mia-teeth", ctxIndex:3,dots:[[286,147],[287,141],[274,139],[276,147]]},{name:"mia-cloth",ctxIndex:2,dots:[[245,152],[253,160],[256,170],[257,176],[280,180],[311,181],[312,172],[322,160],[328,158],[327,164],[322,170],[318,180],[331,178],[332,193],[336,201],[346,201],[346,211],[337,214],[329,213],[322,208],[312,213],[302,213],[295,208],[285,213],[277,214],[267,207],[258,211],[251,211],[243,203],[232,208],[223,205],[220,197],[223,193],[232,196],[239,189],[240,173],[250,174],[249,167]]},{name:"mia-nose",ctxIndex:2, dots:[[287,127],[290,118],[278,118],[281,127]]},{name:"mia-cloth",ctxIndex:2,dots:[[245,152],[253,160],[256,170],[257,176],[280,180],[311,181],[312,172],[322,160],[328,158],[327,164],[322,170],[318,180],[331,178],[332,193],[336,201],[346,201],[346,211],[337,214],[329,213],[322,208],[312,213],[302,213],[295,208],[285,213],[277,214],[267,207],[258,211],[251,211],[243,203],[232,208],[223,205],[220,197],[223,193],[232,196],[239,189],[240,173],[250,174],[249,167]]},{name:"mia-shoesleft",ctxIndex:1,dots:[[267, 233],[266,240],[277,240],[277,233]]},{name:"mia-shoesright",ctxIndex:1,dots:[[300,236],[305,240],[312,232],[306,228]]}],[{name:"box-1",ctxIndex:1,dots:[[243,45],[333,46],[335,50],[351,51],[370,81],[366,147],[270,148],[222,139],[222,73]]},{name:"box-2",ctxIndex:1,dots:[[369,245],[393,222],[512,225],[577,217],[574,296],[512,307],[397,303],[394,291],[392,249]]},{name:"box-3",ctxIndex:1,dots:[[7,210],[27,181],[88,190],[209,185],[226,215],[207,218],[205,264],[92,268],[33,259],[31,211]]},{name:"rupa-pant", ctxIndex:1,dots:[[477,223],[456,221],[441,218],[439,209],[457,212],[480,213],[509,211],[509,217],[505,221]]},{name:"rupa-shirtlow",ctxIndex:1,dots:[[481,212],[458,211],[441,207],[440,201],[458,204],[476,205],[491,204],[509,202],[510,210]]},{name:"rupa-shirtcenter",ctxIndex:1,dots:[[501,203],[468,205],[440,201],[440,180],[462,183],[468,189],[473,184],[487,183],[510,183],[509,201]]},{name:"rupa-collar",ctxIndex:1,dots:[[510,183],[486,183],[472,184],[469,189],[463,183],[442,179],[442,166],[449,169], [460,177],[469,189],[474,181],[483,176],[497,172],[510,172]]},{name:"rupa-handright",ctxIndex:1,dots:[[540,173],[529,181],[520,185],[515,181],[524,173],[531,167]]},{name:"rupa-handleft",ctxIndex:1,dots:[[434,185],[425,182],[414,175],[420,169],[438,179]]},{name:"rupa-head",ctxIndex:1,dots:[[485,34],[489,38],[477,61],[468,80],[466,92],[477,92],[503,95],[510,80],[520,64],[530,54],[541,46],[550,44],[556,54],[546,62],[535,71],[528,81],[521,96],[516,110],[513,140],[510,171],[496,171],[483,174],[475,180], [468,189],[462,177],[453,170],[442,164],[444,120],[446,99],[454,72],[467,46],[475,34],[480,32]]},{name:"rupa-earinright",ctxIndex:2,dots:[[529,63],[540,55],[542,57],[528,71],[520,83],[514,94],[511,93],[517,78],[525,68]]},{name:"rupa-earinleft",ctxIndex:2,dots:[[456,87],[460,75],[466,61],[474,45],[478,45],[475,52],[469,63],[466,72],[460,87]]},{name:"rupa-eyeleft",ctxIndex:2,dots:[[457,127],[452,121],[453,113],[458,105],[465,104],[472,106],[476,111],[474,121],[470,127],[464,129]]},{name:"rupa-eyeright", ctxIndex:2,dots:[[496,131],[488,131],[480,125],[478,119],[481,109],[488,105],[495,105],[500,110],[502,117],[502,125]]},{name:"rupa-nose",ctxIndex:2,dots:[[476,140],[471,142],[467,139],[467,134],[470,130],[475,130],[478,134]]},{name:"rupa-mouth",ctxIndex:2,dots:[[481,164],[471,165],[470,161],[474,160],[478,159],[483,160]]},{name:"rupa-teeth",ctxIndex:2,dots:[[476,159],[472,159],[470,158],[470,153],[480,153],[481,158]]},{name:"gavin-pant",ctxIndex:1,dots:[[90,189],[84,184],[81,177],[146,173],[146,180], [139,185]]},{name:"gavin-jacket",ctxIndex:1,dots:[[134,140],[137,131],[146,129],[148,140],[158,128],[166,115],[176,119],[165,134],[152,143],[147,146],[147,172],[80,176],[78,151],[64,155],[50,164],[42,154],[60,146],[77,145],[78,133],[87,134],[95,136],[100,142]]},{name:"gavin-shirtup",ctxIndex:2,dots:[[134,140],[135,151],[116,151],[102,152],[101,143]]},{name:"gavin-shirtcenter",ctxIndex:2,dots:[[136,151],[136,163],[117,164],[102,165],[101,154]]},{name:"gavin-shirtbelow",ctxIndex:2,dots:[[136,163],[137, 172],[119,174],[103,175],[102,166]]},{name:"gavin-head",ctxIndex:1,dots:[[146,37],[155,34],[162,38],[160,46],[151,53],[137,58],[139,83],[145,87],[145,97],[142,102],[145,128],[139,130],[133,139],[101,143],[97,136],[89,133],[77,133],[68,70],[49,76],[35,73],[34,65],[47,57],[65,60],[71,57],[111,50],[132,48],[137,42]]},{name:"gavin-hornleft",ctxIndex:1,dots:[[39,20],[44,16],[60,21],[73,30],[81,49],[66,55],[62,41],[55,32],[43,26]]},{name:"gavin-hornright",ctxIndex:1,dots:[[97,9],[101,4],[112,9],[121,15], [129,27],[132,44],[120,45],[114,27],[104,17]]},{name:"gavin-eyeright",ctxIndex:2,dots:[[123,58],[131,58],[139,64],[141,72],[137,81],[131,82],[125,81],[121,79],[118,73],[118,63]]},{name:"gavin-eyeleft",ctxIndex:2,dots:[[84,66],[90,63],[97,65],[103,74],[101,85],[94,90],[87,90],[81,85],[79,79],[79,72]]},{name:"gavin-mouth",ctxIndex:2,dots:[[113,112],[119,112],[120,119],[117,124],[111,126],[105,123],[102,119],[101,110],[108,111]]},{name:"gavin-tounge",ctxIndex:3,dots:[[113,119],[117,121],[115,124],[111, 125],[106,122],[108,120]]}],[{name:"splats1-big",ctxIndex:1,dots:[[114,3],[123,4],[128,9],[131,18],[131,30],[134,37],[137,39],[141,38],[143,29],[147,22],[152,16],[158,17],[163,21],[167,29],[165,37],[158,45],[153,50],[154,53],[156,54],[162,54],[169,49],[177,45],[184,46],[191,52],[196,59],[195,65],[188,72],[186,77],[191,83],[199,84],[206,88],[208,96],[207,105],[202,111],[195,113],[182,112],[178,114],[177,118],[182,126],[186,134],[185,142],[178,149],[170,152],[163,152],[149,143],[145,145],[144,156], [140,169],[131,177],[121,179],[113,176],[107,169],[107,157],[108,149],[104,148],[99,153],[93,164],[86,169],[76,168],[70,162],[68,155],[71,148],[79,142],[81,136],[78,132],[72,130],[65,132],[57,136],[49,138],[42,133],[40,125],[43,121],[50,117],[58,115],[69,112],[69,108],[64,107],[56,106],[46,103],[42,95],[44,89],[49,84],[59,83],[68,84],[70,82],[70,78],[65,76],[58,71],[56,63],[59,55],[64,52],[72,51],[82,56],[90,61],[95,57],[94,53],[86,46],[84,41],[84,34],[87,28],[95,25],[101,30],[108,40],[114,38],[111, 29],[106,18],[106,10],[107,6]]},{name:"splats2-big",ctxIndex:1,dots:[[281,121],[287,124],[291,119],[284,115],[281,107],[283,102],[287,99],[293,100],[297,104],[301,107],[303,106],[297,96],[294,87],[299,82],[307,80],[313,84],[314,91],[315,100],[317,105],[320,106],[323,95],[327,89],[333,90],[339,95],[339,102],[334,109],[331,114],[335,116],[340,114],[345,109],[351,106],[357,107],[360,113],[360,118],[355,123],[350,125],[346,130],[347,132],[353,132],[359,130],[364,131],[370,136],[370,141],[366,146],[357, 147],[352,147],[351,150],[363,153],[372,156],[375,161],[375,167],[369,173],[363,174],[351,167],[343,166],[343,170],[351,177],[358,183],[358,190],[354,195],[348,196],[342,195],[335,183],[332,179],[327,178],[324,183],[327,189],[329,194],[328,201],[322,203],[316,203],[312,203],[307,198],[307,186],[305,183],[302,186],[298,194],[294,199],[288,200],[282,197],[278,191],[280,185],[286,179],[285,175],[280,176],[275,180],[268,185],[261,184],[257,178],[257,169],[263,165],[276,160],[276,158],[269,158],[262,157], [257,153],[257,145],[262,141],[272,141],[279,141],[277,138],[269,135],[264,128],[266,121],[272,118]]},{name:"splats2-small1",ctxIndex:1,dots:[[326,71],[325,79],[321,86],[318,85],[314,80],[313,73],[317,67],[322,68]]},{name:"splats2-small2",ctxIndex:1,dots:[[359,85],[364,90],[360,97],[350,102],[345,101],[345,95],[348,90],[353,84]]},{name:"splats2-small3",ctxIndex:1,dots:[[377,118],[381,122],[379,127],[374,130],[365,129],[364,126],[365,121],[371,117]]},{name:"splats2-small4",ctxIndex:1,dots:[[384,130], [386,135],[383,138],[376,138],[372,136],[374,131],[377,129]]},{name:"splats2-small5",ctxIndex:1,dots:[[338,215],[336,210],[334,202],[334,197],[339,195],[345,201],[347,205],[349,212],[344,216]]},{name:"splats2-small6",ctxIndex:1,dots:[[256,200],[257,194],[260,190],[268,188],[270,190],[271,195],[269,198],[266,202],[260,202]]},{name:"splats2-small7",ctxIndex:1,dots:[[246,161],[246,156],[249,153],[254,153],[260,156],[260,160],[256,163],[253,164],[251,164]]},{name:"splats2-small8",ctxIndex:1,dots:[[234, 148],[236,144],[241,143],[249,146],[250,149],[250,152],[242,154],[237,154],[235,152]]},{name:"splats2-small9",ctxIndex:1,dots:[[259,107],[258,101],[261,97],[267,98],[273,103],[277,107],[277,112],[273,114],[267,112]]},{name:"splats1-small1",ctxIndex:1,dots:[[156,168],[160,166],[167,171],[173,178],[177,188],[172,193],[168,195],[162,192],[158,186],[156,176]]},{name:"splats1-small3",ctxIndex:1,dots:[[190,119],[197,120],[203,123],[204,128],[201,133],[196,133],[190,129],[188,123]]},{name:"splats1-small2", ctxIndex:1,dots:[[195,137],[201,140],[202,145],[200,148],[196,148],[192,145],[191,139],[192,137]]},{name:"splats1-small4",ctxIndex:1,dots:[[198,18],[203,18],[208,20],[210,24],[209,30],[204,36],[194,39],[187,40],[183,39],[185,31],[191,24]]},{name:"splats1-small5",ctxIndex:1,dots:[[65,21],[71,26],[75,32],[78,40],[76,45],[71,45],[64,42],[55,35],[53,30],[54,25],[57,22]]},{name:"splats1-small6",ctxIndex:1,dots:[[14,84],[21,87],[26,91],[25,96],[18,98],[7,97],[2,93],[2,87],[7,83]]},{name:"spalts1-small7", ctxIndex:1,dots:[[57,144],[61,146],[60,153],[54,157],[48,158],[44,151],[47,146],[51,145]]},{name:"splats1-small8",ctxIndex:1,dots:[[101,177],[100,185],[95,194],[86,193],[84,186],[87,182],[98,176]]},{name:"box",ctxIndex:1,dots:[[480,284],[476,297],[328,296],[318,293],[285,267],[285,247],[375,248],[436,247],[449,251],[483,279]]},{name:"paint1",ctxIndex:2,dots:[[332,276],[327,272],[328,268],[341,265],[357,263],[407,242],[420,235],[424,240],[413,245],[372,266],[386,271],[390,274],[387,278],[378,279], [371,280],[361,278],[347,277]]},{name:"paint2",ctxIndex:2,dots:[[402,267],[409,265],[422,264],[433,266],[453,256],[457,261],[441,270],[446,272],[450,275],[448,278],[438,281],[420,281],[410,277],[401,274],[399,271]]},{name:"bottle2",ctxIndex:1,dots:[[453,253],[459,250],[459,243],[499,219],[510,240],[472,261],[463,260],[458,261]]},{name:"bottle1",ctxIndex:1,dots:[[422,233],[427,229],[429,221],[474,202],[482,210],[484,225],[439,243],[432,240],[425,241]]},{name:"bottle1-list",ctxIndex:2,dots:[[445,228], [440,217],[461,208],[466,216],[472,229],[449,239]]},{name:"bottle2-list",ctxIndex:2,dots:[[475,243],[470,235],[490,224],[497,234],[503,245],[483,256]]},{name:"boj-body",ctxIndex:1,dots:[[435,75],[443,64],[456,60],[473,64],[484,77],[489,94],[493,108],[492,125],[535,151],[547,98],[555,80],[571,66],[584,63],[595,65],[606,75],[608,90],[598,98],[598,89],[594,84],[584,81],[575,83],[563,90],[544,112],[547,163],[558,237],[555,253],[563,274],[577,280],[582,285],[571,287],[552,280],[546,256],[531,258],[536, 283],[509,284],[511,278],[523,275],[521,256],[508,249],[509,241],[504,225],[497,217],[496,193],[486,192],[467,186],[453,175],[442,161],[438,148],[443,144],[457,158],[470,161],[478,158],[496,131],[482,102],[472,88],[464,82],[452,78],[445,80],[438,87]]},{name:"boj-tail",ctxIndex:1,dots:[[599,224],[600,229],[599,232],[603,232],[598,240],[602,240],[600,244],[595,246],[589,244],[586,236],[589,236],[590,228],[595,227]]},{name:"boj-eyeleft",ctxIndex:2,dots:[[506,131],[510,141],[510,152],[504,160],[494,162], [485,157],[482,146],[483,134],[492,127],[500,127]]},{name:"boj-eyeright",ctxIndex:2,dots:[[526,124],[538,124],[545,130],[550,140],[550,153],[542,162],[532,164],[522,160],[517,153],[515,143],[517,132]]},{name:"boj-earinleft",ctxIndex:2,dots:[[448,95],[454,98],[461,102],[469,106],[477,112],[485,127],[489,126],[483,105],[475,93],[464,83],[455,80],[447,81],[444,83],[443,90]]},{name:"boj-earinright",ctxIndex:2,dots:[[545,117],[542,124],[547,127],[552,118],[564,108],[577,103],[593,101],[598,91],[594,85], [583,83],[570,86],[560,95],[548,111]]},{name:"boj-mouth",ctxIndex:2,dots:[[528,203],[535,202],[540,199],[538,191],[534,195],[530,197],[523,198]]},{name:"boj-teeth",ctxIndex:2,dots:[[524,196],[531,197],[536,191],[535,187],[527,190],[522,192]]},{name:"boj-tummy",ctxIndex:2,dots:[[547,210],[553,208],[555,218],[555,227],[556,242],[553,249],[550,252],[547,255],[530,257],[529,254],[527,250],[524,247],[530,246],[536,244],[540,239],[542,234],[542,226],[521,233],[515,236],[517,241],[523,247],[519,245],[515, 245],[512,246],[513,250],[517,253],[522,255],[530,257],[544,256],[542,251],[541,247],[542,242],[546,238],[551,236],[556,236],[556,232],[552,232],[547,229],[544,226],[548,223],[549,219],[548,216],[544,214]]}]]};var _SETTINGS={API:{Enabled:!1,Log:{Events:{InitializeGame:!0,EndGame:!0,Level:{Begin:!0,End:!0,Win:!0,Lose:!0,Draw:!0}}}},Ad:{Mobile:{Preroll:{Enabled:!1,Duration:5,Width:300,Height:250,Rotation:{Enabled:!1,Weight:{MobileAdInGamePreroll:40,MobileAdInGamePreroll2:40,MobileAdInGamePreroll3:20}}},Header:{Enabled:!1,Duration:5,Width:320,Height:50,Rotation:{Enabled:!1,Weight:{MobileAdInGameHeader:40,MobileAdInGameHeader2:40,MobileAdInGameHeader3:20}}},Footer:{Enabled:!1,Duration:5,Width:320,Height:50, Rotation:{Enabled:!1,Weight:{MobileAdInGameFooter:40,MobileAdInGameFooter2:40,MobileAdInGameFooter3:20}}},End:{Enabled:!1,Duration:1,Width:300,Height:250,Rotation:{Enabled:!1,Weight:{MobileAdInGameEnd:40,MobileAdInGameEnd2:40,MobileAdInGameEnd3:20}}}}},Language:{Default:"en"},DeveloperBranding:{Splash:{Enabled:!1},Logo:{Enabled:!1,Link:"http://google.com",LinkEnabled:!1,NewWindow:!0,Width:166,Height:61}},Branding:{Splash:{Enabled:!1},Logo:{Enabled:!1,Link:"http://google.com",LinkEnabled:!1,NewWindow:!0, Width:166,Height:61}},MoreGames:{Enabled:!1,Link:"http://www.marketjs.com/game/links/mobile",NewWindow:!0},Gamecenter:{Enabled:!1}};var MobileAdInGamePreroll={ad_duration:_SETTINGS.Ad.Mobile.Preroll.Duration,ad_width:_SETTINGS.Ad.Mobile.Preroll.Width,ad_height:_SETTINGS.Ad.Mobile.Preroll.Height,ready_in:_STRINGS.Ad.Mobile.Preroll.ReadyIn,loading:_STRINGS.Ad.Mobile.Preroll.Loading,close:_STRINGS.Ad.Mobile.Preroll.Close+"          ",Initialize:function(){if(_SETTINGS.Ad.Mobile.Preroll.Rotation.Enabled){var b=_SETTINGS.Ad.Mobile.Preroll.Rotation.Weight,c=b.MobileAdInGamePreroll,d= c+b.MobileAdInGamePreroll2,b=d+b.MobileAdInGamePreroll3,f=Math.floor(100*Math.random());console.log("seed: ",f);f<=c?this.selectedOverlayName="MobileAdInGamePreroll":f<=d?this.selectedOverlayName="MobileAdInGamePreroll2":f<=b&&(this.selectedOverlayName="MobileAdInGamePreroll3");console.log("Ad rotating preroll enabled")}else this.selectedOverlayName="MobileAdInGamePreroll",console.log("Ad rotating preroll disabled");console.log("selected:",this.selectedOverlayName);this.overlay=$("#"+this.selectedOverlayName); this.box=$("#"+this.selectedOverlayName+"-Box");this.game=$("#game");this.boxContents={footer:$("#"+this.selectedOverlayName+"-Box-Footer"),header:$("#"+this.selectedOverlayName+"-Box-Header"),close:$("#"+this.selectedOverlayName+"-Box-Close"),body:$("#"+this.selectedOverlayName+"-Box-Body")};this.box.width(this.ad_width);this.box.height(this.ad_height);this.box.css("left",(this.overlay.width()-this.box.width())/2);this.box.css("top",(this.overlay.height()-this.box.height()-this.boxContents.header.height()- this.boxContents.footer.height())/2);this.overlay.show(this.Timer(this.ad_duration))},Timer:function(b){var c=b,d=setInterval(function(){MobileAdInGamePreroll.boxContents.header.text(MobileAdInGamePreroll.ready_in+c+"...");MobileAdInGamePreroll.boxContents.footer.text(MobileAdInGamePreroll.loading);c--;0>c&&(clearInterval(d),MobileAdInGamePreroll.boxContents.close.css("left",MobileAdInGamePreroll.boxContents.body.width()-23),MobileAdInGamePreroll.boxContents.close.show(),MobileAdInGamePreroll.boxContents.header.html(MobileAdInGamePreroll.close), MobileAdInGamePreroll.boxContents.footer.text(""))},1E3)},Close:function(){this.boxContents.close.hide();this.overlay.hide()}};var MobileAdInGameHeader={ad_duration:_SETTINGS.Ad.Mobile.Header.Duration,ad_width:_SETTINGS.Ad.Mobile.Header.Width,ad_height:_SETTINGS.Ad.Mobile.Header.Height,Initialize:function(){if(_SETTINGS.Ad.Mobile.Header.Rotation.Enabled){var b=_SETTINGS.Ad.Mobile.Header.Rotation.Weight,c=b.MobileAdInGameHeader,d=c+b.MobileAdInGameHeader2,b=d+b.MobileAdInGameHeader3,f=Math.floor(100*Math.random());console.log("seed: ",f);f<=c?this.selectedOverlayName="MobileAdInGameHeader":f<=d?this.selectedOverlayName="MobileAdInGameHeader2": f<=b&&(this.selectedOverlayName="MobileAdInGameHeader3");console.log("Ad rotating header enabled")}else this.selectedOverlayName="MobileAdInGameHeader",console.log("Ad rotating header disabled");this.div=$("#"+this.selectedOverlayName);this.game=$("#game");this.div.width(this.ad_width);this.div.height(this.ad_height);this.div.css("left",this.game.position().left+(this.game.width()-this.div.width())/2);this.div.css("top",0);this.div.show(this.Timer(this.ad_duration))},Timer:function(b){var c=setInterval(function(){b--; 0>b&&(MobileAdInGameHeader.div.hide(),clearInterval(c))},1E3)}};var MobileAdInGameFooter={ad_duration:_SETTINGS.Ad.Mobile.Footer.Duration,ad_width:_SETTINGS.Ad.Mobile.Footer.Width,ad_height:_SETTINGS.Ad.Mobile.Footer.Height,Initialize:function(){if(_SETTINGS.Ad.Mobile.Footer.Rotation.Enabled){var b=_SETTINGS.Ad.Mobile.Footer.Rotation.Weight,c=b.MobileAdInGameFooter,d=c+b.MobileAdInGameFooter2,b=d+b.MobileAdInGameFooter3,f=Math.floor(100*Math.random());console.log("seed: ",f);f<=c?this.selectedOverlayName="MobileAdInGameFooter":f<=d?this.selectedOverlayName="MobileAdInGameFooter2": f<=b&&(this.selectedOverlayName="MobileAdInGameFooter3");console.log("Ad rotating footer enabled")}else this.selectedOverlayName="MobileAdInGameFooter",console.log("Ad rotating footer disabled");this.div=$("#"+this.selectedOverlayName);this.game=$("#game");this.div.width(this.ad_width);this.div.height(this.ad_height);this.div.css("left",this.game.position().left+(this.game.width()-this.div.width())/2);this.div.css("top",this.game.height()-this.div.height()-5);this.div.show(this.Timer(this.ad_duration))}, Timer:function(b){var c=setInterval(function(){b--;0>b&&(MobileAdInGameFooter.div.hide(),clearInterval(c))},1E3)}};var MobileAdInGameEnd={ad_duration:_SETTINGS.Ad.Mobile.End.Duration,ad_width:_SETTINGS.Ad.Mobile.End.Width,ad_height:_SETTINGS.Ad.Mobile.End.Height,ready_in:_STRINGS.Ad.Mobile.End.ReadyIn,loading:_STRINGS.Ad.Mobile.End.Loading,close:_STRINGS.Ad.Mobile.End.Close+"          ",Initialize:function(){if(_SETTINGS.Ad.Mobile.End.Rotation.Enabled){var b=_SETTINGS.Ad.Mobile.End.Rotation.Weight,c=b.MobileAdInGameEnd,d=c+b.MobileAdInGameEnd2,b=d+b.MobileAdInGameEnd3, f=Math.floor(100*Math.random());console.log("seed: ",f);f<=c?this.selectedOverlayName="MobileAdInGameEnd":f<=d?this.selectedOverlayName="MobileAdInGameEnd2":f<=b&&(this.selectedOverlayName="MobileAdInGameEnd3");console.log("Ad rotating end enabled")}else this.selectedOverlayName="MobileAdInGameEnd",console.log("Ad rotating end disabled");console.log("selected:",this.selectedOverlayName);this.overlay=$("#"+this.selectedOverlayName);this.box=$("#"+this.selectedOverlayName+"-Box");this.game=$("#game"); this.boxContents={footer:$("#"+this.selectedOverlayName+"-Box-Footer"),header:$("#"+this.selectedOverlayName+"-Box-Header"),close:$("#"+this.selectedOverlayName+"-Box-Close"),body:$("#"+this.selectedOverlayName+"-Box-Body")};this.box.width(this.ad_width);this.box.height(this.ad_height);this.box.css("left",(this.overlay.width()-this.box.width())/2);this.box.css("top",(this.overlay.height()-this.box.height()-this.boxContents.header.height()-this.boxContents.footer.height())/2);this.overlay.show(this.Timer(this.ad_duration))}, Timer:function(b){var c=b,d=setInterval(function(){MobileAdInGameEnd.boxContents.header.text(MobileAdInGameEnd.ready_in+c+"...");MobileAdInGameEnd.boxContents.footer.text(MobileAdInGameEnd.loading);c--;0>c&&(clearInterval(d),MobileAdInGameEnd.boxContents.close.css("left",MobileAdInGameEnd.boxContents.body.width()-23),MobileAdInGameEnd.boxContents.close.show(),MobileAdInGameEnd.boxContents.header.html(MobileAdInGameEnd.close),MobileAdInGameEnd.boxContents.footer.text(""))},1E3)},Close:function(){this.boxContents.close.hide(); this.overlay.hide()}};!function(b,c){"object"==typeof module&&"object"==typeof module.exports?module.exports=b.document?c(b,!0):function(b){if(!b.document)throw Error("jQuery requires a window with a document");return c(b)}:c(b)}("undefined"!=typeof window?window:this,function(b,c){function d(b,x){x=x||D;var c=x.createElement("script");c.text=b;x.head.appendChild(c).parentNode.removeChild(c)}function f(b){var x=!!b&&"length"in b&&b.length,c=j.type(b);return"function"!==c&&!j.isWindow(b)&&("array"===c||0===x||"number"== typeof x&&0tbody",b)[0]||b:b}function Gc(b){return b.type=(null!==b.getAttribute("type"))+"/"+b.type,b}function Hc(b){var c=Ic.exec(b.type);return c?b.type=c[1]:b.removeAttribute("type"),b}function Eb(b,c){var u,e,d,l,g,f;if(1===c.nodeType){if(E.hasData(b)&&(u=E.access(b),e=E.set(c,u),f=u.events))for(d in delete e.handle,e.events={},f){u=0;for(e=f[d].length;uc;c+=2)"margin"===u&&(l+=j.css(b,u+ka[c],!0,d)),e?("content"===u&&(l-=j.css(b,"padding"+ka[c],!0,d)),"margin"!==u&&(l-=j.css(b,"border"+ka[c]+"Width",!0,d))):(l+=j.css(b,"padding"+ka[c],!0,d),"padding"!==u&&(l+=j.css(b,"border"+ka[c]+"Width",!0,d)));return l}function Ob(b,c,u){var e,d=Na(b),l=Fa(b,c,d),g="border-box"===j.css(b,"boxSizing", !1,d);return gb.test(l)?l:(e=g&&(N.boxSizingReliable()||l===b.style[c]),"auto"===l&&(l=b["offset"+c[0].toUpperCase()+c.slice(1)]),l=parseFloat(l)||0,l+Nb(b,c,u||(g?"border":"content"),e,d)+"px")}function Q(b,c,u,e,d){return new Q.prototype.init(b,c,u,e,d)}function hb(){Oa&&(!1===D.hidden&&b.requestAnimationFrame?b.requestAnimationFrame(hb):b.setTimeout(hb,j.fx.interval),j.fx.tick())}function Pb(){return b.setTimeout(function(){xa=void 0}),xa=j.now()}function Pa(b,c){var u,e=0,d={height:b};for(c=c? 1:0;4>e;e+=2-c)u=ka[e],d["margin"+u]=d["padding"+u]=b;return c&&(d.opacity=d.width=b),d}function Qb(b,c,u){for(var e,d=(W.tweeners[c]||[]).concat(W.tweeners["*"]),j=0,l=d.length;jx&&u?c:(u||f.notifyWith(b,[p,1,0]),f.resolveWith(b,[p]),!1)},p=f.promise({elem:b,props:j.extend({},c),opts:j.extend(!0,{specialEasing:{},easing:j.easing._default},u),originalProperties:c,originalOptions:u,startTime:xa||Pb(),duration:u.duration,tweens:[],createTween:function(c,x){var e=j.Tween(b,p.opts,c,x,p.opts.specialEasing[c]||p.opts.easing);return p.tweens.push(e),e},stop:function(c){var x=0,e=c?p.tweens.length:0;if(d)return this;for(d=!0;xb?this[b+this.length]:this[b]},pushStack:function(b){b=j.merge(this.constructor(),b);return b.prevObject=this,b},each:function(b){return j.each(this,b)},map:function(b){return this.pushStack(j.map(this,function(c,e){return b.call(c,e,c)}))},slice:function(){return this.pushStack(oa.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(b){var c=this.length; b=+b+(0>b?c:0);return this.pushStack(0<=b&&bA.cacheLength&&delete b[c.shift()],b[e+" "]=d}var c=[];return b},X=function(b){return b[L]=!0,b},aa=function(b){var c=J.createElement("fieldset");try{return!!b(c)}catch(e){return!1}finally{c.parentNode&&c.parentNode.removeChild(c)}},qb=function(b,c){for(var e=b.split("|"),d=e.length;d--;)A.attrHandle[e[d]]=c},Yb=function(b,c){var e=c&&b,d=e&&1===b.nodeType&&1===c.nodeType&&b.sourceIndex-c.sourceIndex;if(d)return d;if(e)for(;e=e.nextSibling;)if(e=== c)return-1;return b?1:-1},Uc=function(b){return function(c){return"input"===c.nodeName.toLowerCase()&&c.type===b}},Vc=function(b){return function(c){var e=c.nodeName.toLowerCase();return("input"===e||"button"===e)&&c.type===b}},Zb=function(b){return function(c){return"form"in c?c.parentNode&&!1===c.disabled?"label"in c?"label"in c.parentNode?c.parentNode.disabled===b:c.disabled===b:c.isDisabled===b||c.isDisabled!==!b&&Wc(c)===b:c.disabled===b:"label"in c&&c.disabled===b}},pa=function(b){return X(function(c){return c= +c,X(function(e,d){for(var j,l=b([],e.length,c),g=l.length;g--;)e[j=l[g]]&&(e[j]=!(d[j]=e[j]))})})},ob=function(b){return b&&"undefined"!=typeof b.getElementsByTagName&&b},$b=function(){},Ta=function(b){for(var c=0,e=b.length,d="";c+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,dd=/=[\x20\t\r\n\f]*([^\]'"]*?)[\x20\t\r\n\f]*\]/g,ed=RegExp(":((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)"), fd=/^(?:\\.|[\w-]|[^\x00-\xa0])+$/,$a={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:/^((?:\\.|[\w-]|[^\x00-\xa0])+|[*])/,ATTR:RegExp("^\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\]"),PSEUDO:RegExp("^:((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)"), CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)", "i")},gd=/^(?:input|select|textarea|button)$/i,hd=/^h\d$/i,Ia=/^[^{]+\{\s*\[native \w/,Tc=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,nb=/[+~]/,da=/\\([\da-f]{1,6}[\x20\t\r\n\f]?|([\x20\t\r\n\f])|.)/ig,ea=function(b,c,e){b="0x"+c-65536;return b!==b||e?c:0>b?String.fromCharCode(b+65536):String.fromCharCode(b>>10|55296,1023&b|56320)},Vb=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Wb=function(b,c){return c?"\x00"===b?"\ufffd":b.slice(0,-1)+"\\"+b.charCodeAt(b.length-1).toString(16)+" ":"\\"+b},ec=function(){ha()}, Wc=Va(function(b){return!0===b.disabled&&("form"in b||"label"in b)},{dir:"parentNode",next:"legend"});try{ia.apply(sa=dc.call(T.childNodes),T.childNodes),sa[T.childNodes.length].nodeType}catch(Kd){ia={apply:sa.length?function(b,c){$c.apply(b,dc.call(c))}:function(b,c){for(var e=b.length,d=0;b[e++]=c[d++];);b.length=e-1}}}I=C.support={};ac=C.isXML=function(b){b=b&&(b.ownerDocument||b).documentElement;return!!b&&"HTML"!==b.nodeName};ha=C.setDocument=function(b){var c,e;b=b?b.ownerDocument||b:T;return b!== J&&9===b.nodeType&&b.documentElement?(J=b,V=J.documentElement,U=!ac(J),T!==J&&(e=J.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",ec,!1):e.attachEvent&&e.attachEvent("onunload",ec)),I.attributes=aa(function(b){return b.className="i",!b.getAttribute("className")}),I.getElementsByTagName=aa(function(b){return b.appendChild(J.createComment("")),!b.getElementsByTagName("*").length}),I.getElementsByClassName=Ia.test(J.getElementsByClassName),I.getById=aa(function(b){return V.appendChild(b).id= L,!J.getElementsByName||!J.getElementsByName(L).length}),I.getById?(A.filter.ID=function(b){var c=b.replace(da,ea);return function(b){return b.getAttribute("id")===c}},A.find.ID=function(b,c){if("undefined"!=typeof c.getElementById&&U){var y=c.getElementById(b);return y?[y]:[]}}):(A.filter.ID=function(b){var c=b.replace(da,ea);return function(b){return(b="undefined"!=typeof b.getAttributeNode&&b.getAttributeNode("id"))&&b.value===c}},A.find.ID=function(b,c){if("undefined"!=typeof c.getElementById&& U){var y,e,d,x=c.getElementById(b);if(x){if(y=x.getAttributeNode("id"),y&&y.value===b)return[x];d=c.getElementsByName(b);for(e=0;x=d[e++];)if(y=x.getAttributeNode("id"),y&&y.value===b)return[x]}return[]}}),A.find.TAG=I.getElementsByTagName?function(b,c){return"undefined"!=typeof c.getElementsByTagName?c.getElementsByTagName(b):I.qsa?c.querySelectorAll(b):void 0}:function(b,c){var y,e=[],d=0,x=c.getElementsByTagName(b);if("*"===b){for(;y=x[d++];)1===y.nodeType&&e.push(y);return e}return x},A.find.CLASS= I.getElementsByClassName&&function(b,c){if("undefined"!=typeof c.getElementsByClassName&&U)return c.getElementsByClassName(b)},ra=[],O=[],(I.qsa=Ia.test(J.querySelectorAll))&&(aa(function(b){V.appendChild(b).innerHTML="";b.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");b.querySelectorAll("[selected]").length||O.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)"); b.querySelectorAll("[id~="+L+"-]").length||O.push("~=");b.querySelectorAll(":checked").length||O.push(":checked");b.querySelectorAll("a#"+L+"+*").length||O.push(".#.+[+~]")}),aa(function(b){b.innerHTML="";var c=J.createElement("input");c.setAttribute("type","hidden");b.appendChild(c).setAttribute("name","D");b.querySelectorAll("[name=d]").length&&O.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");2!==b.querySelectorAll(":enabled").length&& O.push(":enabled",":disabled");V.appendChild(b).disabled=!0;2!==b.querySelectorAll(":disabled").length&&O.push(":enabled",":disabled");b.querySelectorAll("*,:x");O.push(",.*:")})),(I.matchesSelector=Ia.test(Za=V.matches||V.webkitMatchesSelector||V.mozMatchesSelector||V.oMatchesSelector||V.msMatchesSelector))&&aa(function(b){I.disconnectedMatch=Za.call(b,"*");Za.call(b,"[s!='']:x");ra.push("!=",":((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")}), O=O.length&&RegExp(O.join("|")),ra=ra.length&&RegExp(ra.join("|")),c=Ia.test(V.compareDocumentPosition),Ga=c||Ia.test(V.contains)?function(b,c){var y=9===b.nodeType?b.documentElement:b,e=c&&c.parentNode;return b===e||!(!e||1!==e.nodeType||!(y.contains?y.contains(e):b.compareDocumentPosition&&16&b.compareDocumentPosition(e)))}:function(b,c){if(c)for(;c=c.parentNode;)if(c===b)return!0;return!1},vb=c?function(b,c){if(b===c)return za=!0,0;var y=!b.compareDocumentPosition-!c.compareDocumentPosition;return y? y:(y=(b.ownerDocument||b)===(c.ownerDocument||c)?b.compareDocumentPosition(c):1,1&y||!I.sortDetached&&c.compareDocumentPosition(b)===y?b===J||b.ownerDocument===T&&Ga(T,b)?-1:c===J||c.ownerDocument===T&&Ga(T,c)?1:ja?qa(ja,b)-qa(ja,c):0:4&y?-1:1)}:function(b,c){if(b===c)return za=!0,0;var y,e=0;y=b.parentNode;var d=c.parentNode,x=[b],u=[c];if(!y||!d)return b===J?-1:c===J?1:y?-1:d?1:ja?qa(ja,b)-qa(ja,c):0;if(y===d)return Yb(b,c);for(y=b;y=y.parentNode;)x.unshift(y);for(y=c;y=y.parentNode;)u.unshift(y); for(;x[e]===u[e];)e++;return e?Yb(x[e],u[e]):x[e]===T?-1:u[e]===T?1:0},J):J};C.matches=function(b,c){return C(b,null,null,c)};C.matchesSelector=function(b,c){if((b.ownerDocument||b)!==J&&ha(b),c=c.replace(dd,"='$1']"),I.matchesSelector&&U&&!Sa[c+" "]&&(!ra||!ra.test(c))&&(!O||!O.test(c)))try{var e=Za.call(b,c);if(e||I.disconnectedMatch||b.document&&11!==b.document.nodeType)return e}catch(d){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0}, "~":{dir:"previousSibling"}},preFilter:{ATTR:function(b){return b[1]=b[1].replace(da,ea),b[3]=(b[3]||b[4]||b[5]||"").replace(da,ea),"~="===b[2]&&(b[3]=" "+b[3]+" "),b.slice(0,4)},CHILD:function(b){return b[1]=b[1].toLowerCase(),"nth"===b[1].slice(0,3)?(b[3]||C.error(b[0]),b[4]=+(b[4]?b[5]+(b[6]||1):2*("even"===b[3]||"odd"===b[3])),b[5]=+(b[7]+b[8]||"odd"===b[3])):b[3]&&C.error(b[0]),b},PSEUDO:function(b){var c,e=!b[6]&&b[2];return $a.CHILD.test(b[0])?null:(b[3]?b[2]=b[4]||b[5]||"":e&&ed.test(e)&& (c=Ha(e,!0))&&(c=e.indexOf(")",e.length-c)-e.length)&&(b[0]=b[0].slice(0,c),b[2]=e.slice(0,c)),b.slice(0,3))}},filter:{TAG:function(b){var c=b.replace(da,ea).toLowerCase();return"*"===b?function(){return!0}:function(b){return b.nodeName&&b.nodeName.toLowerCase()===c}},CLASS:function(b){var c=bc[b+" "];return c||(c=RegExp("(^|[\\x20\\t\\r\\n\\f])"+b+"([\\x20\\t\\r\\n\\f]|$)"))&&bc(b,function(b){return c.test("string"==typeof b.className&&b.className||"undefined"!=typeof b.getAttribute&&b.getAttribute("class")|| "")})},ATTR:function(b,c,e){return function(d){d=C.attr(d,b);return null==d?"!="===c:!c||(d+="","="===c?d===e:"!="===c?d!==e:"^="===c?e&&0===d.indexOf(e):"*="===c?e&&-1b.nodeType)return!1;return!0},parent:function(b){return!A.pseudos.empty(b)},header:function(b){return hd.test(b.nodeName)},input:function(b){return gd.test(b.nodeName)}, button:function(b){var c=b.nodeName.toLowerCase();return"input"===c&&"button"===b.type||"button"===c},text:function(b){var c;return"input"===b.nodeName.toLowerCase()&&"text"===b.type&&(null==(c=b.getAttribute("type"))||"text"===c.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(b,c){return[c-1]}),eq:pa(function(b,c,e){return[0>e?e+c:e]}),even:pa(function(b,c){for(var e=0;ee?e+c:e;0<=--c;)b.push(c);return b}),gt:pa(function(b,c,e){for(e=0>e?e+c:e;++e:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i, Cc=/^.[^:#\[\.,]*$/;j.filter=function(b,c,e){var d=c[0];return e&&(b=":not("+b+")"),1===c.length&&1===d.nodeType?j.find.matchesSelector(d,b)?[d]:[]:j.find.matches(b,j.grep(c,function(b){return 1===b.nodeType}))};j.fn.extend({find:function(b){var c,e,d=this.length,l=this;if("string"!=typeof b)return this.pushStack(j(b).filter(function(){for(c=0;c)[^>]*|#([\w-]+))$/;(j.fn.init=function(b,c,e){var d,l;if(!b)return this;if(e=e||ic,"string"==typeof b){if(d="<"===b[0]&&">"===b[b.length-1]&&3<=b.length?[null,b,null]:id.exec(b),!d||!d[1]&&c)return!c||c.jquery?(c||e).find(b):this.constructor(c).find(b);if(d[1]){if(c=c instanceof j?c[0]:c,j.merge(this,j.parseHTML(d[1], c&&c.nodeType?c.ownerDocument||c:D,!0)),hc.test(d[1])&&j.isPlainObject(c))for(d in c)j.isFunction(this[d])?this[d](c[d]):this.attr(d,c[d]);return this}return l=D.getElementById(d[2]),l&&(this[0]=l,this.length=1),this}return b.nodeType?(this[0]=b,this.length=1,this):j.isFunction(b)?void 0!==e.ready?e.ready(b):b(j):j.makeArray(b,this)}).prototype=j.fn;ic=j(D);var jd=/^(?:parents|prev(?:Until|All))/,kd={children:!0,contents:!0,next:!0,prev:!0};j.fn.extend({has:function(b){var c=j(b,this),e=c.length; return this.filter(function(){for(var b=0;be.nodeType&&(f?-1=f&&(y!==e&&(x=void 0,u=[b]),d.rejectWith(x,u))}};c?p():(j.Deferred.getStackHook&&(p.stackTrace=j.Deferred.getStackHook()),b.setTimeout(p))}}var f=0;return j.Deferred(function(b){d[0][3].add(g(0,b,j.isFunction(l)?l:r,b.notifyWith));d[1][3].add(g(0,b,j.isFunction(c)?c:r));d[2][3].add(g(0,b,j.isFunction(y)?y:e))}).promise()},promise:function(b){return null!=b?j.extend(b,g):g}},f={};return j.each(d,function(b,c){var e=c[2],y=c[5];g[c[1]]=e.add;y&&e.add(function(){l=y},d[3-b][2].disable, d[0][2].lock);e.add(c[3].fire);f[c[0]]=function(){return f[c[0]+"With"](this===f?void 0:this,arguments),this};f[c[0]+"With"]=e.fireWith}),g.promise(f),c&&c.call(f,f),f},when:function(b){var c=arguments.length,e=c,d=Array(e),g=oa.call(arguments),f=j.Deferred(),n=function(b){return function(e){d[b]=this;g[b]=1=c&&(l(b,f.done(n(e)).resolve,f.reject,!c),"pending"===f.state()||j.isFunction(g[e]&&g[e].then)))return f.then();for(;e--;)l(g[e], n(e),f.reject);return f.promise()}});var ld=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;j.Deferred.exceptionHook=function(c,e){b.console&&b.console.warn&&c&&ld.test(c.name)&&b.console.warn("jQuery.Deferred exception: "+c.message,c.stack,e)};j.readyException=function(c){b.setTimeout(function(){throw c;})};var wb=j.Deferred();j.fn.ready=function(b){return wb.then(b)["catch"](function(b){j.readyException(b)}),this};j.extend({isReady:!1,readyWait:1,ready:function(b){(!0===b?--j.readyWait: j.isReady)||(j.isReady=!0,!0!==b&&0<--j.readyWait||wb.resolveWith(D,[j]))}});j.ready.then=wb.then;"complete"===D.readyState||"loading"!==D.readyState&&!D.documentElement.doScroll?b.setTimeout(j.ready):(D.addEventListener("DOMContentLoaded",n),b.addEventListener("load",n));var fa=function(b,c,e,d,l,g,f){var n=0,p=b.length,m=null==e;if("object"===j.type(e))for(n in l=!0,e)fa(b,c,n,e[n],!0,g,f);else if(void 0!==d&&(l=!0,j.isFunction(d)||(f=!0),m&&(f?(c.call(b,d),c=null):(m=c,c=function(b,c,e){return m.call(j(b), e)})),c))for(;n\x20\t\r\n\f]+)/i,Cb=/^$|\/(?:java|ecma)script/i,R={option:[1,""],thead:[1,"","
"],col:[2,"","
"], tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};R.optgroup=R.option;R.tbody=R.tfoot=R.colgroup=R.caption=R.thead;R.th=R.td;var Fc=/<|&#?\w+;/,bb=D.createDocumentFragment().appendChild(D.createElement("div")),cb=D.createElement("input");cb.setAttribute("type","radio");cb.setAttribute("checked","checked");cb.setAttribute("name","t");bb.appendChild(cb);N.checkClone=bb.cloneNode(!0).cloneNode(!0).lastChild.checked;bb.innerHTML=""; N.noCloneChecked=!!bb.cloneNode(!0).lastChild.defaultValue;!0;var db=D.documentElement,md=/^key/,nd=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mc=/^([^.]*)(?:\.(.+)|)/;j.event={global:{},add:function(b,c,e,d,l){var g,f,n,p,m,s,r,v,q,t;if(m=E.get(b)){e.handler&&(g=e,e=g.handler,l=g.selector);l&&j.find.matchesSelector(db,l);e.guid||(e.guid=j.guid++);(p=m.events)||(p=m.events={});(f=m.handle)||(f=m.handle=function(c){return"undefined"!=typeof j&&j.event.triggered!==c.type?j.event.dispatch.apply(b, arguments):void 0});c=(c||"").match(S)||[""];for(m=c.length;m--;)n=mc.exec(c[m])||[],q=t=n[1],n=(n[2]||"").split(".").sort(),q&&(r=j.event.special[q]||{},q=(l?r.delegateType:r.bindType)||q,r=j.event.special[q]||{},s=j.extend({type:q,origType:t,data:d,handler:e,guid:e.guid,selector:l,needsContext:l&&j.expr.match.needsContext.test(l),namespace:n.join(".")},g),(v=p[q])||(v=p[q]=[],v.delegateCount=0,r.setup&&!1!==r.setup.call(b,d,n,f)||b.addEventListener&&b.addEventListener(q,f)),r.add&&(r.add.call(b, s),s.handler.guid||(s.handler.guid=e.guid)),l?v.splice(v.delegateCount++,0,s):v.push(s),j.event.global[q]=!0)}},remove:function(b,c,e,d,l){var g,f,n,p,m,s,r,v,q,t,z,B=E.hasData(b)&&E.get(b);if(B&&(p=B.events)){c=(c||"").match(S)||[""];for(m=c.length;m--;)if(n=mc.exec(c[m])||[],q=z=n[1],t=(n[2]||"").split(".").sort(),q){r=j.event.special[q]||{};q=(d?r.delegateType:r.bindType)||q;v=p[q]||[];n=n[2]&&RegExp("(^|\\.)"+t.join("\\.(?:.*\\.|)")+"(\\.|$)");for(f=g=v.length;g--;)s=v[g],!l&&z!==s.origType|| e&&e.guid!==s.guid||n&&!n.test(s.namespace)||d&&d!==s.selector&&("**"!==d||!s.selector)||(v.splice(g,1),s.selector&&v.delegateCount--,r.remove&&r.remove.call(b,s));f&&!v.length&&(r.teardown&&!1!==r.teardown.call(b,t,B.handle)||j.removeEvent(b,q,B.handle),delete p[q])}else for(q in p)j.event.remove(b,q+c[m],e,d,!0);j.isEmptyObject(p)&&E.remove(b,"handle events")}},dispatch:function(b){var c=j.event.fix(b),e,d,l,g,f,n,p=Array(arguments.length);d=(E.get(this,"events")||{})[c.type]||[];var m=j.event.special[c.type]|| {};p[0]=c;for(e=1;e\x20\t\r\n\f]*)[^>]*)\/>/gi,pd=/\s*$/g;j.extend({htmlPrefilter:function(b){return b.replace(od,"<$1>")},clone:function(b,c,e){var d,l,g,f,n=b.cloneNode(!0),p=j.contains(b.ownerDocument,b);if(!N.noCloneChecked&&!(1!==b.nodeType&&11!==b.nodeType||j.isXMLDoc(b))){f=z(n);g=z(b);d=0;for(l=g.length;dj.inArray(this,b)&&(j.cleanData(z(this)),e&&e.replaceChild(c,this))},b)}});j.each({appendTo:"append",prependTo:"prepend", insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){j.fn[b]=function(b){for(var e=[],d=j(b),l=d.length-1,g=0;g<=l;g++)b=g===l?this:this.clone(!0),j(d[g])[c](b),lb.apply(e,b.get());return this.pushStack(e)}});var Hb=/^margin/,gb=RegExp("^("+jc+")(?!px)[a-z%]+$","i"),Na=function(c){var e=c.ownerDocument.defaultView;return e&&e.opener||(e=b),e.getComputedStyle(c)},fb=function(){if(Y){Y.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%"; Y.innerHTML="";db.appendChild(eb);var c=b.getComputedStyle(Y);nc="1%"!==c.top;oc="2px"===c.marginLeft;pc="4px"===c.width;Y.style.marginRight="50%";qc="4px"===c.marginRight;db.removeChild(eb);Y=null}},nc,pc,qc,oc,eb=D.createElement("div"),Y=D.createElement("div");Y.style&&(Y.style.backgroundClip="content-box",Y.cloneNode(!0).style.backgroundClip="",N.clearCloneStyle="content-box"===Y.style.backgroundClip,eb.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute", eb.appendChild(Y),j.extend(N,{pixelPosition:function(){return fb(),nc},boxSizingReliable:function(){return fb(),pc},pixelMarginRight:function(){return fb(),qc},reliableMarginLeft:function(){return fb(),oc}}));!0;var qd=/^(none|table(?!-c[ea]).+)/,rc=/^--/,rd={position:"absolute",visibility:"hidden",display:"block"},sc={letterSpacing:"0",fontWeight:"400"},Lb=["Webkit","Moz","ms"],Kb=D.createElement("div").style;j.extend({cssHooks:{opacity:{get:function(b,c){if(c){var e=Fa(b,"opacity");return""===e? "1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(b,c,e,d){if(b&&3!==b.nodeType&&8!==b.nodeType&&b.style){var l,g,f,n=j.camelCase(c),p=rc.test(c),m=b.style;return p||(c=Jb(n)),f=j.cssHooks[c]||j.cssHooks[n],void 0===e?f&&"get"in f&&void 0!==(l=f.get(b,!1,d))?l:m[c]:(g=typeof e,"string"===g&&(l=Da.exec(e))&&l[1]&& (e=v(b,c,l),g="number"),null!=e&&e===e&&("number"===g&&(e+=l&&l[3]||(j.cssNumber[n]?"":"px")),N.clearCloneStyle||""!==e||0!==c.indexOf("background")||(m[c]="inherit"),f&&"set"in f&&void 0===(e=f.set(b,e,d))||(p?m.setProperty(c,e):m[c]=e)),void 0)}},css:function(b,c,e,d){var l,g,f,n=j.camelCase(c);return rc.test(c)||(c=Jb(n)),f=j.cssHooks[c]||j.cssHooks[n],f&&"get"in f&&(l=f.get(b,!0,e)),void 0===l&&(l=Fa(b,c,d)),"normal"===l&&c in sc&&(l=sc[c]),""===e||e?(g=parseFloat(l),!0===e||isFinite(g)?g||0: l):l}});j.each(["height","width"],function(b,c){j.cssHooks[c]={get:function(b,e,d){if(e)return!qd.test(j.css(b,"display"))||b.getClientRects().length&&b.getBoundingClientRect().width?Ob(b,c,d):kc(b,rd,function(){return Ob(b,c,d)})},set:function(b,e,d){var l,g=d&&Na(b);d=d&&Nb(b,c,d,"border-box"===j.css(b,"boxSizing",!1,g),g);return d&&(l=Da.exec(e))&&"px"!==(l[3]||"px")&&(b.style[c]=e,e=j.css(b,c)),Mb(b,e,d)}}});j.cssHooks.marginLeft=Ib(N.reliableMarginLeft,function(b,c){if(c)return(parseFloat(Fa(b, "marginLeft"))||b.getBoundingClientRect().left-kc(b,{marginLeft:0},function(){return b.getBoundingClientRect().left}))+"px"});j.each({margin:"",padding:"",border:"Width"},function(b,c){j.cssHooks[b+c]={expand:function(e){var d=0,l={};for(e="string"==typeof e?e.split(" "):[e];4>d;d++)l[b+ka[d]+c]=e[d]||e[d-2]||e[0];return l}};Hb.test(b)||(j.cssHooks[b+c].set=Mb)});j.fn.extend({css:function(b,c){return fa(this,function(b,c,e){var d,l={},g=0;if(Array.isArray(c)){e=Na(b);for(d=c.length;gd.indexOf(" "+g+" ")&&(d+=g+" ");d=la(d);l!==d&&e.setAttribute("class",d)}return this},removeClass:function(b){var c,e,d,l,g,f,n=0;if(j.isFunction(b))return this.each(function(c){j(this).removeClass(b.call(this, c,ma(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof b&&b)for(c=b.match(S)||[];e=this[n++];)if(l=ma(e),d=1===e.nodeType&&" "+la(l)+" "){for(f=0;g=c[f++];)for(;-1l?p:f?l:0;eq.indexOf(":")&&"on"+q,c=c[j.expando]?c:new j.Event(q,"object"==typeof c&&c),c.isTrigger=l?2:3,c.namespace=g.join("."),c.rnamespace=c.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c.result=void 0,c.target||(c.target=d),e=null==e?[c]:j.makeArray(e,[c]),r=j.event.special[q]||{},l||!r.trigger|| !1!==r.trigger.apply(d,e))){if(!l&&!r.noBubble&&!j.isWindow(d)){p=r.delegateType||q;for(uc.test(p+q)||(f=f.parentNode);f;f=f.parentNode)v.push(f),n=f;n===(d.ownerDocument||D)&&v.push(n.defaultView||n.parentWindow||b)}for(g=0;(f=v[g++])&&!c.isPropagationStopped();)c.type=1c||304===c;if(n){y=t;for(var ta=M,D,G,H,C,N=y.contents,K=y.dataTypes;"*"===K[0];)K.shift(),void 0===D&&(D=y.mimeType||ta.getResponseHeader("Content-Type"));if(D)for(G in N)if(N[G]&& N[G].test(D)){K.unshift(G);break}if(K[0]in n)H=K[0];else{for(G in n){if(!K[0]||y.converters[G+" "+K[0]]){H=G;break}C||(C=G)}H=H||C}y=n=H?(H!==K[0]&&K.unshift(H),n[H]):void 0}var L;a:{n=t;D=y;G=M;H=m;var I,ua,O;y={};ta=n.dataTypes.slice();if(ta[1])for(I in n.converters)y[I.toLowerCase()]=n.converters[I];for(C=ta.shift();C;)if(n.responseFields[C]&&(G[n.responseFields[C]]=D),!O&&H&&n.dataFilter&&(D=n.dataFilter(D,n.dataType)),O=C,C=ta.shift())if("*"===C)C=O;else if("*"!==O&&O!==C){if(I=y[O+" "+C]||y["* "+ C],!I)for(L in y)if(ua=L.split(" "),ua[1]===C&&(I=y[O+" "+ua[0]]||y["* "+ua[0]])){!0===I?I=y[L]:!0!==y[L]&&(C=ua[0],ta.unshift(ua[1]));break}if(!0!==I)if(I&&n["throws"])D=I(D);else try{D=I(D)}catch(P){L={state:"parsererror",error:I?P:"No conversion from "+O+" to "+C};break a}}L={state:"success",data:D}}y=L;m?(t.ifModified&&(x=M.getResponseHeader("Last-Modified"),x&&(j.lastModified[g]=x),x=M.getResponseHeader("etag"),x&&(j.etag[g]=x)),204===c||"HEAD"===t.type?u="nocontent":304===c?u="notmodified": (u=y.state,q=y.data,v=y.error,m=!v)):(v=u,!c&&u||(u="error",0>c&&(c=0)));M.status=c;M.statusText=(e||u)+"";m?B.resolveWith(z,[q,u,M]):B.rejectWith(z,[M,u,v]);M.statusCode(J);J=void 0;r&&A.trigger(m?"ajaxSuccess":"ajaxError",[M,t,m?q:v]);E.fireWith(z,[M,u]);r&&(A.trigger("ajaxComplete",[M,t]),--j.active||j.event.trigger("ajaxStop"))}}"object"==typeof c&&(e=c,c=void 0);e=e||{};var l,g,f,n,p,m,s,r,q,v,t=j.ajaxSetup({},e),z=t.context||t,A=t.context&&(z.nodeType||z.jquery)?j(z):j.event,B=j.Deferred(), E=j.Callbacks("once memory"),J=t.statusCode||{},G={},H={},C="canceled",M={readyState:0,getResponseHeader:function(b){var c;if(s){if(!n)for(n={};c=Dd.exec(f);)n[c[1].toLowerCase()]=c[2];c=n[b.toLowerCase()]}return null==c?null:c},getAllResponseHeaders:function(){return s?f:null},setRequestHeader:function(b,c){return null==s&&(b=H[b.toLowerCase()]=H[b.toLowerCase()]||b,G[b]=c),this},overrideMimeType:function(b){return null==s&&(t.mimeType=b),this},statusCode:function(b){var c;if(b)if(s)M.always(b[M.status]); else for(c in b)J[c]=[J[c],b[c]];return this},abort:function(b){b=b||C;return l&&l.abort(b),d(0,b),this}};if(B.promise(M),t.url=((c||t.url||Ka.href)+"").replace(Fd,Ka.protocol+"//"),t.type=e.method||e.type||t.method||t.type,t.dataTypes=(t.dataType||"*").toLowerCase().match(S)||[""],null==t.crossDomain){m=D.createElement("a");try{m.href=t.url,m.href=m.href,t.crossDomain=yb.protocol+"//"+yb.host!=m.protocol+"//"+m.host}catch(K){t.crossDomain=!0}}if(t.data&&t.processData&&"string"!=typeof t.data&&(t.data= j.param(t.data,t.traditional)),Sb(xc,t,e,M),s)return M;(r=j.event&&t.global)&&0===j.active++&&j.event.trigger("ajaxStart");t.type=t.type.toUpperCase();t.hasContent=!Ed.test(t.type);g=t.url.replace(Bd,"");t.hasContent?t.data&&t.processData&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&(t.data=t.data.replace(Ad,"+")):(v=t.url.slice(g.length),t.data&&(g+=(xb.test(g)?"&":"?")+t.data,delete t.data),!1===t.cache&&(g=g.replace(Cd,"$1"),v=(xb.test(g)?"&":"?")+"_="+vc++ +v),t.url= g+v);t.ifModified&&(j.lastModified[g]&&M.setRequestHeader("If-Modified-Since",j.lastModified[g]),j.etag[g]&&M.setRequestHeader("If-None-Match",j.etag[g]));(t.data&&t.hasContent&&!1!==t.contentType||e.contentType)&&M.setRequestHeader("Content-Type",t.contentType);M.setRequestHeader("Accept",t.dataTypes[0]&&t.accepts[t.dataTypes[0]]?t.accepts[t.dataTypes[0]]+("*"!==t.dataTypes[0]?", "+yc+"; q=0.01":""):t.accepts["*"]);for(q in t.headers)M.setRequestHeader(q,t.headers[q]);if(t.beforeSend&&(!1===t.beforeSend.call(z, M,t)||s))return M.abort();if(C="abort",E.add(t.complete),M.done(t.success),M.fail(t.error),l=Sb(jb,t,e,M)){if(M.readyState=1,r&&A.trigger("ajaxSend",[M,t]),s)return M;t.async&&0").prop({charset:b.scriptCharset,src:b.url}).on("load error",e=function(b){c.remove();e=null;b&&l("error"===b.type?404:200,b.type)});D.head.appendChild(c[0])},abort:function(){e&&e()}}}});var zc=[],zb=/(=)\?(?=&|$)|\?\?/;j.ajaxSetup({jsonp:"callback", jsonpCallback:function(){var b=zc.pop()||j.expando+"_"+vc++;return this[b]=!0,b}});j.ajaxPrefilter("json jsonp",function(c,e,d){var l,g,f,n=!1!==c.jsonp&&(zb.test(c.url)?"url":"string"==typeof c.data&&0===(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&zb.test(c.data)&&"data");if(n||"jsonp"===c.dataTypes[0])return l=c.jsonpCallback=j.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,n?c[n]=c[n].replace(zb,"$1"+l):!1!==c.jsonp&&(c.url+=(xb.test(c.url)?"&":"?")+c.jsonp+ "="+l),c.converters["script json"]=function(){return f||j.error(l+" was not called"),f[0]},c.dataTypes[0]="json",g=b[l],b[l]=function(){f=arguments},d.always(function(){void 0===g?j(b).removeProp(l):b[l]=g;c[l]&&(c.jsonpCallback=e.jsonpCallback,zc.push(l));f&&j.isFunction(g)&&g(f[0]);f=g=void 0}),"script"});var Hd=N,Ac,Bc=D.implementation.createHTMLDocument("").body;Ac=(Bc.innerHTML="
",2===Bc.childNodes.length);Hd.createHTMLDocument=Ac;j.parseHTML=function(b,c,e){if("string"!= typeof b)return[];"boolean"==typeof c&&(e=c,c=!1);var d,l,g;return c||(N.createHTMLDocument?(c=D.implementation.createHTMLDocument(""),d=c.createElement("base"),d.href=D.location.href,c.head.appendChild(d)):c=D),l=hc.exec(b),g=!e&&[],l?[c.createElement(l[1])]:(l=G([b],c,g),g&&g.length&&j(g).remove(),j.merge([],l.childNodes))};j.fn.load=function(b,c,e){var d,l,g,f=this,n=b.indexOf(" ");return-1").append(j.parseHTML(b)).find(d):b)}).always(e&&function(b,c){f.each(function(){e.apply(this,g||[b.responseText,c,b])})}),this};j.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(b,c){j.fn[c]=function(b){return this.on(c,b)}});j.expr.pseudos.animated=function(b){return j.grep(j.timers,function(c){return b===c.elem}).length};j.offset={setOffset:function(b, c,e){var d,l,g,f,n,p,m=j.css(b,"position"),s=j(b),r={};"static"===m&&(b.style.position="relative");n=s.offset();g=j.css(b,"top");p=j.css(b,"left");("absolute"===m||"fixed"===m)&&-1<(g+p).indexOf("auto")?(d=s.position(),f=d.top,l=d.left):(f=parseFloat(g)||0,l=parseFloat(p)||0);j.isFunction(c)&&(c=c.call(b,e,j.extend({},n)));null!=c.top&&(r.top=c.top-n.top+f);null!=c.left&&(r.left=c.left-n.left+l);"using"in c?c.using.call(b,r):s.css(r)}};j.fn.extend({offset:function(b){if(arguments.length)return void 0=== b?this:this.each(function(c){j.offset.setOffset(this,b,c)});var c,e,d,l,g=this[0];if(g)return g.getClientRects().length?(d=g.getBoundingClientRect(),c=g.ownerDocument,e=c.documentElement,l=c.defaultView,{top:d.top+l.pageYOffset-e.clientTop,left:d.left+l.pageXOffset-e.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var b,c,e=this[0],d={top:0,left:0};return"fixed"===j.css(e,"position")?c=e.getBoundingClientRect():(b=this.offsetParent(),c=this.offset(),g(b[0],"html")||(d=b.offset()),d={top:d.top+ j.css(b[0],"borderTopWidth",!0),left:d.left+j.css(b[0],"borderLeftWidth",!0)}),{top:c.top-d.top-j.css(e,"marginTop",!0),left:c.left-d.left-j.css(e,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var b=this.offsetParent;b&&"static"===j.css(b,"position");)b=b.offsetParent;return b||db})}});j.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var e="pageYOffset"===c;j.fn[b]=function(d){return fa(this,function(b,d,l){var g;return j.isWindow(b)?g=b:9===b.nodeType&& (g=b.defaultView),void 0===l?g?g[c]:b[d]:void(g?g.scrollTo(e?g.pageXOffset:l,e?l:g.pageYOffset):b[d]=l)},b,d,arguments.length)}});j.each(["top","left"],function(b,c){j.cssHooks[c]=Ib(N.pixelPosition,function(b,e){if(e)return e=Fa(b,c),gb.test(e)?j(b).position()[c]+"px":e})});j.each({Height:"height",Width:"width"},function(b,c){j.each({padding:"inner"+b,content:c,"":"outer"+b},function(e,d){j.fn[d]=function(l,g){var f=arguments.length&&(e||"boolean"!=typeof l),n=e||(!0===l||!0===g?"margin":"border"); return fa(this,function(c,e,l){var g;return j.isWindow(c)?0===d.indexOf("outer")?c["inner"+b]:c.document.documentElement["client"+b]:9===c.nodeType?(g=c.documentElement,Math.max(c.body["scroll"+b],g["scroll"+b],c.body["offset"+b],g["offset"+b],g["client"+b])):void 0===l?j.css(c,e,n):j.style(c,e,l,n)},c,f?l:void 0,f)}})});j.fn.extend({bind:function(b,c,e){return this.on(b,null,c,e)},unbind:function(b,c){return this.off(b,null,c)},delegate:function(b,c,e,d){return this.on(c,b,e,d)},undelegate:function(b, c,e){return 1===arguments.length?this.off(b,"**"):this.off(c,b||"**",e)}});j.holdReady=function(b){b?j.readyWait++:j.ready(!0)};j.isArray=Array.isArray;j.parseJSON=JSON.parse;j.nodeName=g;"function"==typeof define&&define.amd&&define("jquery",[],function(){return j});var Id=b.jQuery,Jd=b.$;return j.noConflict=function(c){return b.$===j&&(b.$=Jd),c&&b.jQuery===j&&(b.jQuery=Id),j},c||(b.jQuery=b.$=j),j}); function getInternetExplorerVersion(){var b=-1;"Microsoft Internet Explorer"==navigator.appName&&null!=/MSIE ([0-9]{1,}[.0-9]{0,})/.exec(navigator.userAgent)&&(b=parseFloat(RegExp.$1));return b}var ie=getInternetExplorerVersion();function getQueryVariable(b){for(var c=window.location.search.substring(1).split("&"),d=0;d=d[g].start&&f<= d[g].end){b=g;break}}void 0!==f&&"[object Object]"===Object.prototype.toString.call(d[b])&&(this.isPlaying=this.settings.spritemap[b],this.context.play&&this.context.play(),this.wasReady=this.setCurrentTime(f))}},stop:function(){this.__lastPosition=0;this.isPlaying=null;this.backgroundMusic?this.backgroundHackForiOS():this.context.pause();return!0},pause:function(){this.isPlaying=null;this.__lastPosition=this.getCurrentTime();this.context.pause();return this.__lastPosition},resume:function(b){b="number"=== typeof b?b:this.__lastPosition;if(null!==b)return this.play(b),this.__lastPosition=null,!0;this.context.play();return!1},HTML5API:{getVolume:function(){return this.context.volume||1},setVolume:function(b){this.context.volume=b;return 1E-4>Math.abs(this.context.volume-b)?!0:!1},getCurrentTime:function(){return this.context.currentTime||0},setCurrentTime:function(b){try{return this.context.currentTime=b,!0}catch(c){return!1}}},FLASHAPI:{getVolume:function(){return this.context&&"function"===typeof this.context.getVolume? this.context.getVolume():1},setVolume:function(b){return this.context&&"function"===typeof this.context.setVolume?(this.context.setVolume(b),!0):!1},getCurrentTime:function(){return this.context&&"function"===typeof this.context.getCurrentTime?this.context.getCurrentTime():0},setCurrentTime:function(b){return this.context&&"function"===typeof this.context.setCurrentTime?this.context.setCurrentTime(b):!1}}}; if(void 0===this.jukebox)throw"jukebox.Manager requires jukebox.Player (Player.js) to run properly."; jukebox.Manager=function(b){this.features={};this.codecs={};this.__players={};this.__playersLength=0;this.__clones={};this.__queue=[];this.settings={};for(var c in this.defaults)this.settings[c]=this.defaults[c];if("[object Object]"===Object.prototype.toString.call(b))for(var d in b)this.settings[d]=b[d];this.__detectFeatures();jukebox.Manager.__initialized=!1===this.settings.useGameLoop?window.setInterval(function(){jukebox.Manager.loop()},20):!0}; jukebox.Manager.prototype={defaults:{useFlash:!1,useGameLoop:!1},__detectFeatures:function(){var b=window.Audio&&new Audio;if(b&&b.canPlayType&&!1===this.settings.useFlash){for(var c=[{e:"3gp",m:["audio/3gpp","audio/amr"]},{e:"aac",m:["audio/aac","audio/aacp"]},{e:"amr",m:["audio/amr","audio/3gpp"]},{e:"caf",m:["audio/IMA-ADPCM","audio/x-adpcm",'audio/x-aiff; codecs="IMA-ADPCM, ADPCM"']},{e:"m4a",m:'audio/mp4{audio/mp4; codecs="mp4a.40.2,avc1.42E01E"{audio/mpeg4{audio/mpeg4-generic{audio/mp4a-latm{audio/MP4A-LATM{audio/x-m4a'.split("{")}, {e:"mp3",m:["audio/mp3","audio/mpeg",'audio/mpeg; codecs="mp3"',"audio/MPA","audio/mpa-robust"]},{e:"mpga",m:["audio/MPA","audio/mpa-robust","audio/mpeg","video/mpeg"]},{e:"mp4",m:["audio/mp4","video/mp4"]},{e:"ogg",m:["application/ogg","audio/ogg",'audio/ogg; codecs="theora, vorbis"',"video/ogg",'video/ogg; codecs="theora, vorbis"']},{e:"wav",m:["audio/wave","audio/wav",'audio/wav; codecs="1"',"audio/x-wav","audio/x-pn-wav"]},{e:"webm",m:["audio/webm",'audio/webm; codecs="vorbis"',"video/webm"]}], d,f,g=0,m=c.length;gMath.abs(b.volume-0.1337));navigator.userAgent.match(/iPhone|iPod|iPad/i)&&(this.features.channels=1)}this.features.flashaudio= !!navigator.mimeTypes["application/x-shockwave-flash"]||!!navigator.plugins["Shockwave Flash"]||!1;if(window.ActiveXObject)try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash.10"),this.features.flashaudio=!0}catch(e){}!0===this.settings.useFlash&&(this.features.flashaudio=!0);!0===this.features.flashaudio&&!this.features.html5audio&&(this.codecs.mp3="audio/mp3",this.codecs.mpga="audio/mpeg",this.codecs.mp4="audio/mp4",this.codecs.m4a="audio/mp4",this.codecs["3gp"]="audio/3gpp",this.codecs.amr="audio/amr", this.features.volume=!0,this.features.channels=1)},__getPlayerById:function(b){return this.__players&&void 0!==this.__players[b]?this.__players[b]:null},__getClone:function(b,c){for(var d in this.__clones){var f=this.__clones[d];if(null===f.isPlaying&&f.origin===b)return f}if("[object Object]"===Object.prototype.toString.call(c)){d={};for(var g in c)d[g]=c[g];d.autoplay=!1;g=new jukebox.Player(d,b);g.isClone=!0;g.wasReady=!1;return this.__clones[g.id]=g}return null},loop:function(){if(0!==this.__playersLength)if(this.__queue.length&& this.__playersLengthb.isPlaying.end&&(!0===b.isPlaying.loop?b.play(b.isPlaying.start,!0):b.stop()):b.isClone&&null===b.isPlaying?this.remove(b):void 0!==b.backgroundMusic&&null===b.isPlaying&&c>b.backgroundMusic.end&&b.backgroundHackForiOS()},getPlayableResource:function(b){"[object Array]"!==Object.prototype.toString.call(b)&&(b=[b]);for(var c=0,d=b.length;c=b){d._volume=b;if(d._muted)return d; d.usingWebAudio&&d.masterGain.gain.setValueAtTime(b,c.ctx.currentTime);for(var g=0;gparseInt(m[0].split("/")[1], 10);b._codecs={mp3:!(m||!f&&!d.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!f,opus:!!d.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!d.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!d.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!d.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(d.canPlayType("audio/x-m4a;")|| d.canPlayType("audio/m4a;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(d.canPlayType("audio/x-mp4;")||d.canPlayType("audio/mp4;")||d.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),webm:!!d.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!d.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(d.canPlayType("audio/x-flac;")||d.canPlayType("audio/flac;")).replace(/^no$/,"")};return b}, _enableMobileAudio:function(){var b=this||c,d=/iPhone|iPad|iPod|Android|BlackBerry|BB10|Silk|Mobi/i.test(b._navigator&&b._navigator.userAgent),g=!!("ontouchend"in window||b._navigator&&0=g){if("loaded"!==b._state)return b._queue.push({event:"volume",action:function(){b.volume.apply(b,d)}}),b;"undefined"===typeof f&&(b._volume=g);f=b._getSoundIds(f);for(var r=0;rc&&q>=d)clearInterval(b._interval),b._interval=null,b._fadeTo=null,r.volume(d,b._id), r._emit("fade",b._id)},f)},_stopFade:function(b){var d=this._soundById(b);d&&d._interval&&(this._webAudio&&d._node.gain.cancelScheduledValues(c.ctx.currentTime),clearInterval(d._interval),d._interval=null,this.volume(d._fadeTo,b),d._fadeTo=null,this._emit("fade",b));return this},loop:function(){var b=arguments,c,d;if(0===b.length)return this._loop;if(1===b.length)if("boolean"===typeof b[0])this._loop=c=b[0];else return(b=this._soundById(parseInt(b[0],10)))?b._loop:!1;else 2===b.length&&(c=b[0],d= parseInt(b[1],10));d=this._getSoundIds(d);for(var g=0;gg&&(d=/safari/.test(c._navigator&&c._navigator.userAgent.toLowerCase()),c._navigator&&c._navigator.standalone&&!d||c._navigator&&!c._navigator.standalone&&!d))c.usingWebAudio=!1;c.usingWebAudio&&(c.masterGain="undefined"===typeof c.ctx.createGain?c.ctx.createGainNode():c.ctx.createGain(),c.masterGain.gain.setValueAtTime(c._muted?0:1,c.ctx.currentTime),c.masterGain.connect(c.ctx.destination));c._setup()};"function"===typeof define&&define.amd&&define([],function(){return{Howler:c, Howl:d}});"undefined"!==typeof exports&&(exports.Howler=c,exports.Howl=d);"undefined"!==typeof window?(window.HowlerGlobal=b,window.Howler=c,window.Howl=d,window.Sound=f):"undefined"!==typeof global&&(global.HowlerGlobal=b,global.Howler=c,global.Howl=d,global.Sound=f)})(); (function(){HowlerGlobal.prototype._pos=[0,0,0];HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0];HowlerGlobal.prototype.stereo=function(b){if(!this.ctx||!this.ctx.listener)return this;for(var c=this._howls.length-1;0<=c;c--)this._howls[c].stereo(b);return this};HowlerGlobal.prototype.pos=function(b,c,d){if(!this.ctx||!this.ctx.listener)return this;c="number"!==typeof c?this._pos[1]:c;d="number"!==typeof d?this._pos[2]:d;if("number"===typeof b)this._pos=[b,c,d],"undefined"!==typeof this.ctx.listener.positionX? (this.ctx.listener.positionX.setTargetAtTime(this._pos[0],Howler.ctx.currentTime,0.1),this.ctx.listener.positionY.setTargetAtTime(this._pos[1],Howler.ctx.currentTime,0.1),this.ctx.listener.positionZ.setTargetAtTime(this._pos[2],Howler.ctx.currentTime,0.1)):this.ctx.listener.setPosition(this._pos[0],this._pos[1],this._pos[2]);else return this._pos;return this};HowlerGlobal.prototype.orientation=function(b,c,d,f,e,l){if(!this.ctx||!this.ctx.listener)return this;var n=this._orientation;c="number"!== typeof c?n[1]:c;d="number"!==typeof d?n[2]:d;f="number"!==typeof f?n[3]:f;e="number"!==typeof e?n[4]:e;l="number"!==typeof l?n[5]:l;if("number"===typeof b)this._orientation=[b,c,d,f,e,l],"undefined"!==typeof this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(b,Howler.ctx.currentTime,0.1),this.ctx.listener.forwardY.setTargetAtTime(c,Howler.ctx.currentTime,0.1),this.ctx.listener.forwardZ.setTargetAtTime(d,Howler.ctx.currentTime,0.1),this.ctx.listener.upX.setTargetAtTime(b,Howler.ctx.currentTime, 0.1),this.ctx.listener.upY.setTargetAtTime(c,Howler.ctx.currentTime,0.1),this.ctx.listener.upZ.setTargetAtTime(d,Howler.ctx.currentTime,0.1)):this.ctx.listener.setOrientation(b,c,d,f,e,l);else return n;return this};var b=Howl.prototype.init;Howl.prototype.init=function(c){this._orientation=c.orientation||[1,0,0];this._stereo=c.stereo||null;this._pos=c.pos||null;this._pannerAttr={coneInnerAngle:"undefined"!==typeof c.coneInnerAngle?c.coneInnerAngle:360,coneOuterAngle:"undefined"!==typeof c.coneOuterAngle? c.coneOuterAngle:360,coneOuterGain:"undefined"!==typeof c.coneOuterGain?c.coneOuterGain:0,distanceModel:"undefined"!==typeof c.distanceModel?c.distanceModel:"inverse",maxDistance:"undefined"!==typeof c.maxDistance?c.maxDistance:1E4,panningModel:"undefined"!==typeof c.panningModel?c.panningModel:"HRTF",refDistance:"undefined"!==typeof c.refDistance?c.refDistance:1,rolloffFactor:"undefined"!==typeof c.rolloffFactor?c.rolloffFactor:1};this._onstereo=c.onstereo?[{fn:c.onstereo}]:[];this._onpos=c.onpos? [{fn:c.onpos}]:[];this._onorientation=c.onorientation?[{fn:c.onorientation}]:[];return b.call(this,c)};Howl.prototype.stereo=function(b,c){var d=this;if(!d._webAudio)return d;if("loaded"!==d._state)return d._queue.push({event:"stereo",action:function(){d.stereo(b,c)}}),d;var r="undefined"===typeof Howler.ctx.createStereoPanner?"spatial":"stereo";if("undefined"===typeof c)if("number"===typeof b)d._stereo=b,d._pos=[b,0,0];else return d._stereo;for(var e=d._getSoundIds(c),l=0;lthis.width||g>this.height)){var r=ig.system.scale,e=Math.floor(f*r),l=Math.floor(g*r),n=m?-1:1,p=q?-1:1;if(m||q)ig.system.context.save(),ig.system.context.scale(n,p);ig.system.context.drawImage(this.data,Math.floor(d*f)%this.width*r,Math.floor(d*f/this.width)*g*r,e,l,ig.system.getDrawPos(b)*n-(m?e:0),ig.system.getDrawPos(c)*p-(q?l:0),e,l);(m|| q)&&ig.system.context.restore();ig.Image.drawCount++}}});ig.Image.drawCount=0;ig.Image.cache={};ig.Image.reloadCache=function(){for(var b in ig.Image.cache)ig.Image.cache[b].reload()}});ig.baked=!0; ig.module("impact.font").requires("impact.image").defines(function(){ig.Font=ig.Image.extend({widthMap:[],indices:[],firstChar:32,alpha:1,letterSpacing:1,lineSpacing:0,onload:function(b){this._loadMetrics(this.data);this.parent(b)},widthForString:function(b){if(-1!==b.indexOf("\n")){b=b.split("\n");for(var c=0,d=0;db||b>=this.indices.length)return 0;var f=ig.system.scale,g=this.widthMap[b]*f,m=(this.height-2)*f;ig.system.context.drawImage(this.data,this.indices[b]*f,0,g,m,ig.system.getDrawPos(c),ig.system.getDrawPos(d),g,m);return this.widthMap[b]+this.letterSpacing},_loadMetrics:function(b){this.height=b.height-1;this.widthMap=[];this.indices= [];for(var c=ig.getImagePixels(b,0,b.height-1,b.width,1),d=0,f=0,g=0;gc.data[m]&&f&&(this.widthMap.push(f),this.indices.push(g-f),d++,f=0)}this.widthMap.push(f);this.indices.push(g-f)}});ig.Font.ALIGN={LEFT:0,RIGHT:1,CENTER:2}});ig.baked=!0; ig.module("impact.sound").defines(function(){ig.SoundManager=ig.Class.extend({clips:{},volume:1,format:null,init:function(){if(!ig.Sound.enabled||!window.Audio)ig.Sound.enabled=!1;else{for(var b=new Audio,c=0;c=b?(this.stop(),this.currentTrack.volume=this._volume,clearInterval(this._fadeInterval)):this.currentTrack.volume=b},_endedCallback:function(){this._loop?this.play():this.next()}});ig.Sound=ig.Class.extend({path:"",volume:1,currentClip:null,multiChannel:!0,init:function(b,c){this.path=b;this.multiChannel=!1!==c;this.load()},load:function(b){ig.Sound.enabled?ig.ready?ig.soundManager.load(this.path, this.multiChannel,b):ig.addResource(this):b&&b(this.path,!0)},play:function(){ig.Sound.enabled&&(this.currentClip=ig.soundManager.get(this.path),this.currentClip.volume=ig.soundManager.volume*this.volume,this.currentClip.play())},stop:function(){this.currentClip&&(this.currentClip.pause(),this.currentClip.currentTime=0)}});ig.Sound.FORMAT={MP3:{ext:"mp3",mime:"audio/mpeg"},M4A:{ext:"m4a",mime:"audio/mp4; codecs=mp4a"},OGG:{ext:"ogg",mime:"audio/ogg; codecs=vorbis"},WEBM:{ext:"webm",mime:"audio/webm; codecs=vorbis"}, CAF:{ext:"caf",mime:"audio/x-caf"}};ig.Sound.use=[ig.Sound.FORMAT.OGG,ig.Sound.FORMAT.MP3];ig.Sound.channels=4;ig.Sound.enabled=!0});ig.baked=!0; ig.module("impact.loader").requires("impact.image","impact.font","impact.sound").defines(function(){ig.Loader=ig.Class.extend({resources:[],gameClass:null,status:0,done:!1,_unloaded:[],_drawStatus:0,_intervalId:0,_loadCallbackBound:null,init:function(b,c){this.gameClass=b;this.resources=c;this._loadCallbackBound=this._loadCallback.bind(this);for(var d=0;db?this.initMouse():0ig.system.width||c>ig.system.height||(0>b+d||0>c+d)||(1!=this.alpha&&(ig.system.context.globalAlpha=this.alpha),0==this.angle?this.sheet.image.drawTile(b,c,this.tile,this.sheet.width,this.sheet.height,this.flip.x,this.flip.y):(ig.system.context.save(),ig.system.context.translate(ig.system.getDrawPos(b+this.pivot.x),ig.system.getDrawPos(c+this.pivot.y)),ig.system.context.rotate(this.angle), this.sheet.image.drawTile(-this.pivot.x,-this.pivot.y,this.tile,this.sheet.width,this.sheet.height,this.flip.x,this.flip.y),ig.system.context.restore()),1!=this.alpha&&(ig.system.context.globalAlpha=1))}})});ig.baked=!0; ig.module("impact.entity").requires("impact.animation","impact.impact").defines(function(){ig.Entity=ig.Class.extend({id:0,settings:{},size:{x:16,y:16},offset:{x:0,y:0},pos:{x:0,y:0},last:{x:0,y:0},vel:{x:0,y:0},accel:{x:0,y:0},friction:{x:0,y:0},maxVel:{x:100,y:100},zIndex:0,gravityFactor:1,standing:!1,bounciness:0,minBounceVelocity:40,anims:{},animSheet:null,currentAnim:null,health:10,type:0,checkAgainst:0,collides:0,_killed:!1,slopeStanding:{min:(44).toRad(),max:(136).toRad()},init:function(b, c,d){this.id=++ig.Entity._lastId;this.pos.x=this.last.x=b;this.pos.y=this.last.y=c;ig.merge(this,d)},reset:function(b,c,d){var f=this.constructor.prototype;this.pos.x=b;this.pos.y=c;this.last.x=b;this.last.y=c;this.vel.x=f.vel.x;this.vel.y=f.vel.y;this.accel.x=f.accel.x;this.accel.y=f.accel.y;this.health=f.health;this._killed=f._killed;this.standing=f.standing;this.type=f.type;this.checkAgainst=f.checkAgainst;this.collides=f.collides;ig.merge(this,d)},drawer:function(b){var c=null==b.alp&&0!=b.alp? 1:b.alp,d=null==b.scX?1:b.scX,f=null==b.scY?1:b.scY;if(!(0==c||0==d||0==f)){var g=b.ctx||ig.system.context,m=b.offX||0,q=b.offY||0,r=b.cent||!1,e=null==b.rot?0:b.rot,l=b.frameX||1,n=b.frameY||1,p=b.frame||0,s=b.pic.width/l*(p%l),p=b.pic.height/n*Math.floor(p/l),v=b.pic.width/l,t=b.pic.height/n,l=b.pic.width/l*d,n=b.pic.height/n*f;0>=c||(l=r?b.x-l/2+m:b.x+m,r=r?b.y-n/2+q:b.y+q,0b.maxWidth?b.maxWidth/this.textW(b.tx):1},textDraw:function(b){var c=b.rot?b.rot:0,d=b.tx?b.tx:0,f=b.x?b.x:0,g=b.y?b.y:0,m=void 0==b.scX?1:b.scX,q=void 0==b.scY?1:b.scY,r=void 0==b.scX?1:b.scX,e=void 0==b.scY?1:b.scY,l=b.stroke?b.stroke: !1,n=void 0==b.strokeAlp?1:b.strokeAlp,p=b.strokeColour?b.strokeColour:"black",s=void 0==b.alp?1:b.alp,v=b.col?b.col:this.ctx.fillStyle,t=b.font||"happyhell",z=b.px||10,B=b.strokeLine||3,G=b.align||"center";if(0!=s){var K=b.ctx||ig.system.context;this.ctxRef=b.ctx||ig.system.context;K.font=z+"px "+t;void 0!=b.maxWidth&&this.textW(d)*m>b.maxWidth&&(r=b.maxWidth/this.textW(d),e=q/m*r);"left"==G?f+=0.5*this.textW(d)*r:"right"==G&&(f-=0.5*this.textW(d)*r);K.save();b=K.measureText("M").width*e;K.translate(f, g+b/2);K.scale(r,e);K.rotate(c?2*Math.PI/360*c:0);K.fillStyle=v;K.globalAlpha=n;!0==l&&(K.lineWidth=B,K.strokeStyle=p,K.strokeText(d,-this.textW(d)/2,0));K.globalAlpha=s;K.fillText(d,-this.textW(d)/2,0);K.restore()}},tweener:function(b,c,d,f,g){var m={};m[b]=c;null==g&&(g=0);null==f&&(f="none");this.tween("this"==b?c:m,d,{delay:g,targ:b,seq:f,onComplete:function(){null!=f&&this.tweenF(f,b)}.bind(this),easing:ig.Tween.Easing.Quadratic.EaseOut}).start()},addAnim:function(b,c,d,f){if(!this.animSheet)throw"No animSheet to add the animation "+ b+" to.";c=new ig.Animation(this.animSheet,c,d,f);this.anims[b]=c;this.currentAnim||(this.currentAnim=c);return c},update:function(){this.last.x=this.pos.x;this.last.y=this.pos.y;this.vel.y+=ig.game.gravity*ig.system.tick*this.gravityFactor;this.vel.x=this.getNewVelocity(this.vel.x,this.accel.x,this.friction.x,this.maxVel.x);this.vel.y=this.getNewVelocity(this.vel.y,this.accel.y,this.friction.y,this.maxVel.y);var b=ig.game.collisionMap.trace(this.pos.x,this.pos.y,this.vel.x*ig.system.tick,this.vel.y* ig.system.tick,this.size.x,this.size.y);this.handleMovementTrace(b);this.currentAnim&&this.currentAnim.update()},getNewVelocity:function(b,c,d,f){return c?(b+c*ig.system.tick).limit(-f,f):d?(c=d*ig.system.tick,0b+c?b+c:0):b.limit(-f,f)},handleMovementTrace:function(b){this.standing=!1;b.collision.y&&(0this.minBounceVelocity?this.vel.y*=-this.bounciness:(0 this.minBounceVelocity?this.vel.x*-this.bounciness:0);if(b.collision.slope){var c=b.collision.slope;if(0this.slopeStanding.min&&c=this.health&&this.kill()},touches:function(b){return!(this.pos.x>=b.pos.x+b.size.x||this.pos.x+this.size.x<=b.pos.x||this.pos.y>=b.pos.y+b.size.y||this.pos.y+this.size.y<=b.pos.y)},distanceTo:function(b){var c=this.pos.x+this.size.x/2-(b.pos.x+b.size.x/2);b=this.pos.y+this.size.y/2-(b.pos.y+b.size.y/2);return Math.sqrt(c*c+b*b)},angleTo:function(b){return Math.atan2(b.pos.y+ b.size.y/2-(this.pos.y+this.size.y/2),b.pos.x+b.size.x/2-(this.pos.x+this.size.x/2))},check:function(){},collideWith:function(){},ready:function(){},erase:function(){}});ig.Entity._lastId=0;ig.Entity.COLLIDES={NEVER:0,LITE:1,PASSIVE:2,ACTIVE:4,FIXED:8};ig.Entity.TYPE={NONE:0,A:1,B:2,BOTH:3};ig.Entity.checkPair=function(b,c){b.checkAgainst&c.type&&b.check(c);c.checkAgainst&b.type&&c.check(b);b.collides&&c.collides&&b.collides+c.collides>ig.Entity.COLLIDES.ACTIVE&&ig.Entity.solveCollision(b,c)};ig.Entity.solveCollision= function(b,c){var d=null;if(b.collides==ig.Entity.COLLIDES.LITE||c.collides==ig.Entity.COLLIDES.FIXED)d=b;else if(c.collides==ig.Entity.COLLIDES.LITE||b.collides==ig.Entity.COLLIDES.FIXED)d=c;b.last.x+b.size.x>c.last.x&&b.last.xc.last.y&&b.last.yb.minBounceVelocity?b.vel.y*=-b.bounciness:(b.standing=!0,b.vel.y=0)):(d=(b.vel.y-c.vel.y)/2,b.vel.y=-d,c.vel.y=d,g=c.vel.x*ig.system.tick,d=ig.game.collisionMap.trace(b.pos.x,b.pos.y,g,-f/2,b.size.x,b.size.y),b.pos.y=d.pos.y,b=ig.game.collisionMap.trace(c.pos.x,c.pos.y,0,f/2,c.size.x,c.size.y),c.pos.y=b.pos.y)}});ig.baked=!0; ig.module("impact.map").defines(function(){ig.Map=ig.Class.extend({tilesize:8,width:1,height:1,data:[[]],name:null,init:function(b,c){this.tilesize=b;this.data=c;this.height=c.length;this.width=c[0].length;this.pxWidth=this.width*this.tilesize;this.pxHeight=this.height*this.tilesize},getTile:function(b,c){var d=Math.floor(b/this.tilesize),f=Math.floor(c/this.tilesize);return 0<=d&&dthis.lastSlope&&(this.lastSlope=m|0)},trace:function(b,c,g,m,q,r){var e={collision:{x:!1,y:!1,slope:!1},pos:{x:b,y:c},tile:{x:0,y:0}},l=Math.ceil(Math.max(Math.abs(g),Math.abs(m))/this.tilesize);if(1m?this.tilesize:0,s=Math.max(Math.floor(g/this.tilesize),0),z=Math.min(Math.ceil((g+e)/this.tilesize),this.height);m=Math.floor((b.pos.x+v)/this.tilesize);var B=Math.floor((c+v)/this.tilesize);if(0B||B>=this.width)B=-1;if(0<=m&&mthis.lastSlope||1q?this.tilesize:0;s=Math.max(Math.floor(b.pos.x/this.tilesize),0);t=Math.min(Math.ceil((b.pos.x+r)/this.tilesize),this.width);G=Math.floor((b.pos.y+v)/this.tilesize); z=Math.floor((g+v)/this.tilesize);if(0z||z>=this.height)z=-1;if(0<=G&&Gthis.lastSlope||1v?e:0)-(n+s[0])*this.tilesize;l=m+r+(0q*-v+r*c)return t;n=Math.sqrt(c*c+v*v);p=v/n;n=-c/n;var z=e*p+l*n,s=p*z,z=n*z;if(s*s+z*z>=q*q+r*r)return t||0.5>c*(l-r)-v*(e-q);b.pos.x=g+q-s;b.pos.y=m+r-z;b.collision.slope={x:c,y:v,nx:p,ny:n};return!0}return!1}});var b=1/3,c=2/3;ig.CollisionMap.defaultTileDef={5:[0,1,1,c,!0],6:[0,c,1,b,!0],7:[0,b,1,0,!0],3:[0,1,1,0.5,!0],4:[0,0.5,1,0,!0],2:[0, 1,1,0,!0],10:[0.5,1,1,0,!0],21:[0,1,0.5,0,!0],32:[c,1,1,0,!0],43:[b,1,c,0,!0],54:[0,1,b,0,!0],27:[0,0,1,b,!0],28:[0,b,1,c,!0],29:[0,c,1,1,!0],25:[0,0,1,0.5,!0],26:[0,0.5,1,1,!0],24:[0,0,1,1,!0],11:[0,0,0.5,1,!0],22:[0.5,0,1,1,!0],33:[0,0,b,1,!0],44:[b,0,c,1,!0],55:[c,0,1,1,!0],16:[1,b,0,0,!0],17:[1,c,0,b,!0],18:[1,1,0,c,!0],14:[1,0.5,0,0,!0],15:[1,1,0,0.5,!0],13:[1,1,0,0,!0],8:[0.5,1,0,0,!0],19:[1,1,0.5,0,!0],30:[b,1,0,0,!0],41:[c,1,b,0,!0],52:[1,1,c,0,!0],38:[1,c,0,1,!0],39:[1,b,0,c,!0],40:[1,0, 0,b,!0],36:[1,0.5,0,1,!0],37:[1,0,0,0.5,!0],35:[1,0,0,1,!0],9:[1,0,0.5,1,!0],20:[0.5,0,0,1,!0],31:[1,0,c,1,!0],42:[c,0,b,1,!0],53:[b,0,0,1,!0],12:[0,0,1,0,!1],23:[1,1,0,1,!1],34:[1,0,1,1,!1],45:[0,1,0,0,!1]};ig.CollisionMap.staticNoCollision={trace:function(b,c,g,m){return{collision:{x:!1,y:!1,slope:!1},pos:{x:b+g,y:c+m},tile:{x:0,y:0}}}}});ig.baked=!0; ig.module("impact.background-map").requires("impact.map","impact.image").defines(function(){ig.BackgroundMap=ig.Map.extend({tiles:null,scroll:{x:0,y:0},distance:1,repeat:!1,tilesetName:"",foreground:!1,enabled:!0,preRender:!1,preRenderedChunks:null,chunkSize:512,debugChunks:!1,anims:{},init:function(b,c,d){this.parent(b,c);this.setTileset(d)},setTileset:function(b){this.tilesetName=b instanceof ig.Image?b.path:b;this.tiles=new ig.Image(this.tilesetName);this.preRenderedChunks=null},setScreenPos:function(b, c){this.scroll.x=b/this.distance;this.scroll.y=c/this.distance},preRenderMapToChunks:function(){var b=this.width*this.tilesize*ig.system.scale,c=this.height*this.tilesize*ig.system.scale;this.chunkSize=Math.min(Math.max(b,c),this.chunkSize);var d=Math.ceil(b/this.chunkSize),f=Math.ceil(c/this.chunkSize);this.preRenderedChunks=[];for(var g=0;g=this.height||0>l){if(!this.repeat)continue;l=(l%this.height+this.height)%this.height}for(var n=-1,p=q;p=this.width||0>b){if(!this.repeat)continue;b=(b%this.width+this.width)%this.width}if(b=this.data[l][b])(c=this.anims[b- 1])?c.draw(p,m):this.tiles.drawTile(p,m,b-1,this.tilesize)}}}})});ig.baked=!0; ig.module("impact.game").requires("impact.impact","impact.entity","impact.collision-map","impact.background-map").defines(function(){ig.Game=ig.Class.extend({clearColor:"#000000",gravity:0,screen:{x:0,y:0},_rscreen:{x:0,y:0},entities:[],namedEntities:{},collisionMap:ig.CollisionMap.staticNoCollision,backgroundMaps:[],backgroundAnims:{},autoSort:!1,sortBy:null,cellSize:64,_deferredKill:[],_levelToLoad:null,_doSortEntities:!1,staticInstantiate:function(){this.sortBy=this.sortBy||ig.Game.SORT.Z_INDEX; ig.game=this;return null},loadLevel:function(b){this.screen={x:0,y:0};this.entities=[];this.namedEntities={};for(var c=0;cf&&window.focus(),("touchstart"==c.type||"mousedown"==c.type)&&this.mousemove(c),f=this.bindings[f])this.actions[f]=!0,this.locks[f]||(this.presses[f]=!0,this.locks[f]= !0),c.stopPropagation(),c.preventDefault()}})});ig.baked=!0; ig.module("plugins.handlers.dom-handler").defines(function(){ig.DomHandler=ig.Class.extend({JQUERYAVAILABLE:!1,init:function(){this.JQUERYAVAILABLE=this._jqueryAvailable()},_jqueryAvailable:function(){return"undefined"!==typeof jQuery},addEvent:function(b,c,d,f){if(this.JQUERYAVAILABLE)b.on(c,d);else b.addEventListener(c,d,f)},create:function(b){return this.JQUERYAVAILABLE?$("<"+b+">"):ig.$new(b)},getElementByClass:function(b){return this.JQUERYAVAILABLE?$("."+b):document.getElementsByClassName(b)}, getElementById:function(b){return this.JQUERYAVAILABLE?0<$(b).length?$(b):null:ig.$(b)},appendChild:function(b,c){this.JQUERYAVAILABLE?b.append(c):b.appendChild(c)},appendToBody:function(b){this.JQUERYAVAILABLE?$("body").append(b):document.body.appendChild(b)},resize:function(b,c,d){if(this.JQUERYAVAILABLE)b.width(c.toFixed(2)),b.height(d.toFixed(2));else{var f=b.style.visibility;c="width:"+c.toFixed(2)+"px; height:"+d.toFixed(2)+"px;";this.attr(b,"style",c);b.style.visibility=f}},resizeOffsetLeft:function(b, c,d,f){if(this.JQUERYAVAILABLE)b.width(c.toFixed(2)),b.height(d.toFixed(2)),b.css("left",f);else{var g=b.style.visibility;c="width:"+c.toFixed(2)+"px; height:"+d.toFixed(2)+"px; left: "+f.toFixed(2)+"px;";this.attr(b,"style",c);b.style.visibility=g}},css:function(b,c){if(this.JQUERYAVAILABLE)b.css(c);else{var d="",f;for(f in c)d+=f+":"+c[f]+";";this.attr(b,"style",d)}},getOffsets:function(b){return this.JQUERYAVAILABLE?(b=b.offset(),{left:b.left,top:b.top}):{left:b.offsetLeft,top:b.offsetTop}},attr:function(b, c,d){if("undefined"===typeof d)return this.JQUERYAVAILABLE?b.attr(c):b.getAttribute(c);this.JQUERYAVAILABLE?b.attr(c,d):b.setAttribute(c,d)},show:function(b){this.JQUERYAVAILABLE?(b.show(),b.css("visibility","visible")):b&&(b.style?b.style.visibility="visible":b[0]&&(b[0].style.visibility="visible"))},hide:function(b){this.JQUERYAVAILABLE?(b.hide(),b.css("visibility","hidden")):b&&(b.style?b.style.visibility="hidden":b[0]&&(b[0].style.visibility="hidden"))},getQueryVariable:function(b){for(var c= window.location.search.substring(1).split("&"),d=0;dwindow.innerWidth,c=this.domHandler.getElementById("#orientate"), d=this.domHandler.getElementById("#game");b?(this.domHandler.show(c),this.domHandler.hide(d),console.log("portrait"+window.innerWidth+","+window.innerHeight)):(this.domHandler.show(d),this.domHandler.hide(c),console.log("landscape"+window.innerWidth+","+window.innerHeight))}ig.ua.mobile?(this.resize(),this.resizeAds()):this.resize()},resizeAds:function(){for(var b in this.adsToResize){var c=ig.domHandler.getElementById("#"+b),d=ig.domHandler.getElementById("#"+b+"-Box"),f=(window.innerWidth-this.adsToResize[b]["box-width"])/ 2+"px",g=(window.innerHeight-this.adsToResize[b]["box-height"])/2+"px";c&&ig.domHandler.css(c,{width:window.innerWidth,height:window.innerHeight});d&&ig.domHandler.css(d,{left:f,top:g})}},samsungFix:function(){ig.ua.android&&!(4.2>parseFloat(navigator.userAgent.slice(navigator.userAgent.indexOf("Android")+8,navigator.userAgent.indexOf("Android")+11)))&&(!(0>navigator.userAgent.indexOf("GT"))&&!(0b?0:isNaN(b)?1:1b?0:isNaN(b)?1:1 b){this.soundList[c].volume(0);break}isNaN(b)?this.soundList[c].volume(1):1b){this.soundList[c].volume(0);break}isNaN(b)?this.soundList[c].volume(1):1=b?this.jukeboxPlayer.setVolume(this.minVolume):isNaN(b)?this.jukeboxPlayer.setVolume(1): 1=c.indexOf("chrome")&&(m=b));var q=new XMLHttpRequest;q.open("GET",m,!0);q.responseType="arraybuffer";q.onload=function(){this.webaudio.context.decodeAudioData(q.response,function(b){this.webaudio.buffer=b;this.webaudio.source_loop={};this.bgmPlaying?this.play():this.stop()}.bind(this),function(){console.log('Error decoding audio "'+m+'".')})}.bind(this);q.send();break}},initIOSWebAudioUnlock:function(){if(this.webaudio){webaudio=this.webaudio;var b=function(){var c=webaudio.context, d=c.createBuffer(1,1,22050),f=c.createBufferSource();f.buffer=d;f.connect(c.destination);"undefined"===typeof f.start?f.noteOn(0):f.start(0);setTimeout(function(){(f.playbackState===f.PLAYING_STATE||f.playbackState===f.FINISHED_STATE)&&window.removeEventListener("touchend",b,!1)},0)};window.addEventListener("touchend",b,!1)}},initHTML5Audio:function(b){if(this.useHTML5Audio&&this.audio){var c=this.audio;this.codecs={};this.codecs={mp3:!!c.canPlayType("audio/mpeg;").replace(/^no$/,""),opus:!!c.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/, ""),ogg:!!c.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!c.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!c.canPlayType("audio/aac;").replace(/^no$/,""),m4a:!!(c.canPlayType("audio/x-m4a;")||c.canPlayType("audio/m4a;")||c.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(c.canPlayType("audio/x-mp4;")||c.canPlayType("audio/mp4;")||c.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!c.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")};this.is={ff:Boolean(null!= window.mozInnerScreenX&&/firefox/.test(navigator.userAgent.toLowerCase())),ie:Boolean(document.all&&!window.opera),opera:Boolean(window.opera),chrome:Boolean(window.chrome),safari:Boolean(!window.chrome&&/safari/.test(navigator.userAgent.toLowerCase())&&window.getComputedStyle&&!window.globalStorage&&!window.opera)};this.playDelay=-60;this.stopDelay=30;this.is.chrome&&(this.playDelay=-25);this.is.chrome&&(this.stopDelay=25);this.is.ff&&(this.playDelay=-25);this.is.ff&&(this.stopDelay=85);this.is.opera&& (this.playDelay=5);this.is.opera&&(this.stopDelay=0);for(var d in b){this.soundList[d]=d;var f=b[d].path,c=f+"."+ig.Sound.FORMAT.OGG.ext,f=f+"."+ig.Sound.FORMAT.MP3.ext,g=null;this.codecs[ig.Sound.FORMAT.OGG.ext.toLowerCase()]?g=c:this.codecs[ig.Sound.FORMAT.MP3.ext.toLowerCase()]&&(g=f);if(g){ig.ua.mobile?ig.ua.iOS&&(g=f):(b=navigator.userAgent.toLowerCase(),-1!=b.indexOf("safari")&&-1>=b.indexOf("chrome")&&(g=f));this.audio.addEventListener("error",function(){this.audio.error&&4===this.audio.error.code&& (this.isSupported=!1)},!1);this.audio.src=g;this.audio._pos=0;this.audio.preload="auto";this.audio.volume=this._volume;this.inactiveAudio=new Audio;this.inactiveAudio.src=g;this.inactiveAudio._pos=0;this.inactiveAudio.preload="auto";this.inactiveAudio.volume=this._volume;this.inactiveAudio.load();var m=function(){this._duration=this.audio.duration;this._loaded||(this._loaded=!0);this.bgmPlaying?this.play():this.stop();this.audio.removeEventListener("canplaythrough",m,!1)}.bind(this);this.audio.addEventListener("canplaythrough", m,!1);this.audio.load();break}}}},play:function(b){if(this.isSupported)if(this.bgmPlaying=!0,this.webaudio)if(this.webaudio.buffer){if(!this.muteFlag&&(this.bgmPlaying=!0,!this.webaudio.source_loop._playing)){this.webaudio.source_loop=this.webaudio.context.createBufferSource();this.webaudio.source_loop.buffer=this.webaudio.buffer;this.webaudio.source_loop.loop=!0;this.webaudio.source_loop.connect(this.webaudio.gainNode);isNaN(b)&&(b=0,this.pausedTime&&(b=this.pausedTime));this.webaudio.source_loop._startTime= this.webaudio.context.currentTime;if("noteOn"===this.webaudio.compatibility.start)this.webaudio.source_once=this.webaudio.context.createBufferSource(),this.webaudio.source_once.buffer=this.webaudio.buffer,this.webaudio.source_once.connect(this.webaudio.gainNode),this.webaudio.source_once.noteGrainOn(0,b,this.webaudio.buffer.duration-b),this.webaudio.source_loop[this.webaudio.compatibility.start](this.webaudio.context.currentTime+(this.webaudio.buffer.duration-b));else this.webaudio.source_loop[this.webaudio.compatibility.start](0, b);this.webaudio.source_loop._playing=!0}}else this.bgmPlaying=!0;else if(this.audio){var c=this.audio;if(!this.muteFlag){this.bgmPlaying=!0;isNaN(b)&&(b=0,this.pausedTime&&(b=this.pausedTime));var d=this._duration-b;this._onEndTimer&&(clearTimeout(this._onEndTimer),this._onEndTimer=null);this._onEndTimer=setTimeout(function(){this.audio.currentTime=0;this.audio.pause();this.pausedTime=0;if(this.inactiveAudio){var b=this.audio;this.audio=this.inactiveAudio;this.inactiveAudio=b}this.play()}.bind(this), 1E3*d+this.playDelay);4===c.readyState||!c.readyState&&navigator.isCocoonJS?(c.readyState=4,c.currentTime=b,c.muted=this.muteFlag||c.muted,c.volume=this._volume,setTimeout(function(){c.play()},0)):(clearTimeout(this._onEndTimer),this._onEndTimer=null,function(){var b=function(){this.play();c.removeEventListener("canplaythrough",b,!1)}.bind(this);c.addEventListener("canplaythrough",b,!1)}())}}},stop:function(){this.bgmPlaying=!1;if(this.isSupported)if(this.webaudio){if(this.webaudio.source_loop._playing&& (this.webaudio.source_loop[this.webaudio.compatibility.stop](0),this.webaudio.source_loop._playing=!1,this.pausedTime+=this.webaudio.context.currentTime-this.webaudio.source_loop._startTime,this.pausedTime%=this.webaudio.source_loop.buffer.duration,this.webaudio.source_loop._startTime=0,"noteOn"===this.webaudio.compatibility.start))this.webaudio.source_once[this.webaudio.compatibility.stop](0)}else if(this.audio){var b=this.audio;this.pausedTime=b.currentTime;b.currentTime=0;b.pause();clearTimeout(this._onEndTimer); this._onEndTimer=null}},volume:function(b){this.isSupported&&(this._volume=b,0>this._volume?this._volume=0:1=b&&(b=c.settings.spritemap.music.start, ig.ua.android?this.forcelooped||(c.play(b,!0),this.forcelooped=!0,setTimeout(function(){ig.soundHandler.forcelooped=!1},d)):c.setCurrentTime(b)))}else"ImpactMusicPlayer"==this.bgmPlayer.tagName&&(null!=window.mozInnerScreenX&&/firefox/.test(navigator.userAgent.toLowerCase()),b=Boolean(window.chrome),!window.chrome&&/safari/.test(navigator.userAgent.toLowerCase()),d=0.1,ig.ua.mobile&&(d=0.115,ig.ua.android&&(d=0.45,b&&(d=0.3))),c=0,"mp3"==ig.soundManager.format.ext&&(c=0.05),ig.music.currentTrack&& (b=ig.music.currentTrack.duration-d,ig.music.currentTrack.currentTime>=b&&(ig.ua.android?this.forcelooped||(ig.music.currentTrack.pause(),ig.music.currentTrack.currentTime=c,ig.music.currentTrack.play(),this.forcelooped=!0,setTimeout(function(){ig.soundHandler.forcelooped=!1},d)):ig.music.currentTrack.currentTime=c)))}}})});ig.baked=!0; ig.module("plugins.io.storage").defines(function(){ig.Storage=ig.Class.extend({staticInstantiate:function(){return!ig.Storage.instance?null:ig.Storage.instance},init:function(){ig.Storage.instance=this},isCapable:function(){return"undefined"!==typeof window.localStorage},isSet:function(b){return null!==this.get(b)},initUnset:function(b,c){null===this.get(b)&&this.set(b,c)},get:function(b){if(!this.isCapable())return null;try{return JSON.parse(localStorage.getItem(b))}catch(c){return window.localStorage.getItem(b)}}, getInt:function(b){return~~this.get(b)},getFloat:function(b){return parseFloat(this.get(b))},getBool:function(b){return!!this.get(b)},key:function(b){return this.isCapable()?window.localStorage.key(b):null},set:function(b,c){if(!this.isCapable())return null;try{window.localStorage.setItem(b,JSON.stringify(c))}catch(d){console.log(d)}},setHighest:function(b,c){c>this.getFloat(b)&&this.set(b,c)},remove:function(b){if(!this.isCapable())return null;window.localStorage.removeItem(b)},clear:function(){if(!this.isCapable())return null; window.localStorage.clear()}})});ig.baked=!0;ig.module("plugins.io.mouse").defines(function(){Mouse=ig.Class.extend({bindings:{click:[ig.KEY.MOUSE1]},init:function(){ig.input.initMouse();for(var b in this.bindings){this[b]=b;for(var c=0;cd?d:b},pollGamepads:function(){if(this.isSupported){this.leftStick.x=0;this.leftStick.y=0;this.rightStick.x=0;this.rightStick.y=0;this.list=navigator.getGamepads();for(var b in this.bindings){for(var c= !1,d=0;d=b-40&&this.touches[c].x<=b+40&&this.touches.splice(c,1)}}},windowKeyDown:function(b){var c=parseInt(ig.system.canvas.offsetWidth)||ig.system.realWidth,d=parseInt(ig.system.canvas.offsetHeight)||ig.system.realHeight,c=ig.system.scale*(c/ig.system.realWidth),d=ig.system.scale*(d/ig.system.realHeight);if(window.navigator.msPointerEnabled){var f={left:0,top:0};ig.system.canvas.getBoundingClientRect&&(f=ig.system.canvas.getBoundingClientRect()); b=b.changedTouches?b.changedTouches:[b];for(var g=0;gc+f||b.xd+g||b.y";(document.getElementById("play").parentNode||document.getElementById("ajaxbar")).appendChild(this.desktopCoverDIV);try{"undefined"!==typeof ig.sizeHandler?"undefined"!== typeof ig.sizeHandler.coreDivsToResize&&(ig.sizeHandler.coreDivsToResize.push("#"+this.desktopCoverDIVID),"function"===typeof ig.sizeHandler.reorient&&ig.sizeHandler.reorient()):"undefined"!==typeof coreDivsToResize&&(coreDivsToResize.push(this.desktopCoverDIVID),"function"===typeof sizeHandler&&sizeHandler())}catch(c){console.log(c)}this.desktopCoverDIV.addEventListener("click",function(){try{"undefined"!==typeof ig.soundHandler?("undefined"!==typeof ig.soundHandler.bgmPlayer?"undefined"!==typeof ig.soundHandler.bgmPlayer.webaudio&& "undefined"!==typeof ig.soundHandler.bgmPlayer.webaudio.context&&ig.soundHandler.bgmPlayer.webaudio.context.resume():(ig.soundHandler=null,ig.soundHandler="undefined"!==typeof ig.soundList?new ig.SoundHandler(ig.soundList):new ig.SoundHandler),"undefined"!==typeof ig.soundHandler.sfxPlayer?"function"===typeof ig.soundHandler.sfxPlayer.play&&ig.soundHandler.sfxPlayer.play("staticSound"):"undefined"!==typeof ig.soundHandler.staticSound?"function"===typeof ig.soundHandler.staticSound.play&&ig.soundHandler.staticSound.play(): "function"===typeof ig.soundHandler.playSound&&ig.soundHandler.playSound("staticSound")):"undefined"!==typeof Howl?(ig.global.staticSound=new Howl({src:["media/audio/play/static.ogg","media/audio/play/static.mp3"]}),ig.global.staticSound.play()):"undefined"!==typeof createjs&&"undefined"!==typeof createjs.Sound&&"function"===typeof createjs.Sound.play&&createjs.Sound.play("opening")}catch(c){console.log(c)}this.setAttribute("style","visibility: hidden;");"function"===typeof b&&b();ig.system.setGame(MyGame)})}, setupCustomAnimation:function(){this.customAnim=new ig.Animation(this.customAnim,0.05,[0,1,2,3,4,5]);this.customAnim.currentFrame=0;ig.loadingScreen=this;ig.loadingScreen.animationTimer=window.setInterval("ig.loadingScreen.animate()",100)},animate:function(){this.customAnim.currentFramethis._drawStatus)){ig.system.context.save();ig.system.context.font="0pt mainfont";ig.system.context.fillText(" ",0,0);ig.system.context.restore();ig.system.context.fillStyle="#000";ig.system.context.fillRect(0,0,ig.system.width,ig.system.height);ig.system.context.font="0pt font1";ig.system.context.fillText(" ",0,0);ig.system.context.restore();ig.system.context.fillStyle="#000";ig.system.context.fillRect(0,0,ig.system.width,ig.system.height);var b,c;b=this.loadingbar0.width;w2=this.loadingbar1.width; c=this.loadingbar1.height;b=0.5*ig.system.width-b/2;this.splash.draw(0,0);this.loadingbar0.draw(b+4,422);0.96<=this._drawStatus&&(this._drawStatus=1);ig.system.context.drawImage(this.loadingbar1.data,0,0,w2*this._drawStatus,c,b+10.5,428,w2*this._drawStatus,c);ig.system.context.fillStyle="#FFFFFF";ig.system.context.textAlign="center";ig.system.context.font="25pt mainfont";ig.system.context.fillText(_STRINGS.Splash.Loading,ig.system.width/2,512)}}})});ig.baked=!0; ig.module("plugins.tween").requires("impact.entity").defines(function(){Array.prototype.indexOf||(Array.prototype.indexOf=function(b){for(var c=0;c(b*=2)?0.5*b*b:-0.5*(--b*(b-2)-1)};ig.Tween.Easing.Cubic.EaseIn=function(b){return b*b*b};ig.Tween.Easing.Cubic.EaseOut=function(b){return--b*b*b+1};ig.Tween.Easing.Cubic.EaseInOut=function(b){return 1>(b*=2)?0.5*b*b*b:0.5*((b-=2)*b*b+2)};ig.Tween.Easing.Quartic.EaseIn=function(b){return b*b*b*b};ig.Tween.Easing.Quartic.EaseOut=function(b){return-(--b*b*b*b-1)};ig.Tween.Easing.Quartic.EaseInOut=function(b){return 1>(b*=2)?0.5*b*b*b*b:-0.5*((b-=2)*b*b*b-2)};ig.Tween.Easing.Quintic.EaseIn= function(b){return b*b*b*b*b};ig.Tween.Easing.Quintic.EaseOut=function(b){return(b-=1)*b*b*b*b+1};ig.Tween.Easing.Quintic.EaseInOut=function(b){return 1>(b*=2)?0.5*b*b*b*b*b:0.5*((b-=2)*b*b*b*b+2)};ig.Tween.Easing.Sinusoidal.EaseIn=function(b){return-Math.cos(b*Math.PI/2)+1};ig.Tween.Easing.Sinusoidal.EaseOut=function(b){return Math.sin(b*Math.PI/2)};ig.Tween.Easing.Sinusoidal.EaseInOut=function(b){return-0.5*(Math.cos(Math.PI*b)-1)};ig.Tween.Easing.Exponential.EaseIn=function(b){return 0==b?0:Math.pow(2, 10*(b-1))};ig.Tween.Easing.Exponential.EaseOut=function(b){return 1==b?1:-Math.pow(2,-10*b)+1};ig.Tween.Easing.Exponential.EaseInOut=function(b){return 0==b?0:1==b?1:1>(b*=2)?0.5*Math.pow(2,10*(b-1)):0.5*(-Math.pow(2,-10*(b-1))+2)};ig.Tween.Easing.Circular.EaseIn=function(b){return-(Math.sqrt(1-b*b)-1)};ig.Tween.Easing.Circular.EaseOut=function(b){return Math.sqrt(1- --b*b)};ig.Tween.Easing.Circular.EaseInOut=function(b){return 1>(b/=0.5)?-0.5*(Math.sqrt(1-b*b)-1):0.5*(Math.sqrt(1-(b-=2)*b)+1)};ig.Tween.Easing.Elastic.EaseIn= function(b){var c,d=0.1,f=0.4;if(0==b)return 0;if(1==b)return 1;f||(f=0.3);!d||1>d?(d=1,c=f/4):c=f/(2*Math.PI)*Math.asin(1/d);return-(d*Math.pow(2,10*(b-=1))*Math.sin(2*(b-c)*Math.PI/f))};ig.Tween.Easing.Elastic.EaseOut=function(b){var c,d=0.1,f=0.4;if(0==b)return 0;if(1==b)return 1;f||(f=0.3);!d||1>d?(d=1,c=f/4):c=f/(2*Math.PI)*Math.asin(1/d);return d*Math.pow(2,-10*b)*Math.sin(2*(b-c)*Math.PI/f)+1};ig.Tween.Easing.Elastic.EaseInOut=function(b){var c,d=0.1,f=0.4;if(0==b)return 0;if(1==b)return 1; f||(f=0.3);!d||1>d?(d=1,c=f/4):c=f/(2*Math.PI)*Math.asin(1/d);return 1>(b*=2)?-0.5*d*Math.pow(2,10*(b-=1))*Math.sin(2*(b-c)*Math.PI/f):0.5*d*Math.pow(2,-10*(b-=1))*Math.sin(2*(b-c)*Math.PI/f)+1};ig.Tween.Easing.Back.EaseIn=function(b){return b*b*(2.70158*b-1.70158)};ig.Tween.Easing.Back.EaseOut=function(b){return(b-=1)*b*(2.70158*b+1.70158)+1};ig.Tween.Easing.Back.EaseInOut=function(b){return 1>(b*=2)?0.5*b*b*(3.5949095*b-2.5949095):0.5*((b-=2)*b*(3.5949095*b+2.5949095)+2)};ig.Tween.Easing.Bounce.EaseIn= function(b){return 1-ig.Tween.Easing.Bounce.EaseOut(1-b)};ig.Tween.Easing.Bounce.EaseOut=function(b){return(b/=1)<1/2.75?7.5625*b*b:b<2/2.75?7.5625*(b-=1.5/2.75)*b+0.75:b<2.5/2.75?7.5625*(b-=2.25/2.75)*b+0.9375:7.5625*(b-=2.625/2.75)*b+0.984375};ig.Tween.Easing.Bounce.EaseInOut=function(b){return 0.5>b?0.5*ig.Tween.Easing.Bounce.EaseIn(2*b):0.5*ig.Tween.Easing.Bounce.EaseOut(2*b-1)+0.5}});ig.baked=!0; ig.module("plugins.url-parameters").defines(function(){ig.UrlParameters=ig.Class.extend({init:function(){switch(getQueryVariable("iphone")){case "true":ig.ua.iPhone=!0,console.log("iPhone mode")}var b=getQueryVariable("webview");if(b)switch(b){case "true":ig.ua.is_uiwebview=!0,console.log("webview mode")}if(b=getQueryVariable("debug"))switch(b){case "true":ig.game.showDebugMenu(),console.log("debug mode")}switch(getQueryVariable("view")){case "stats":ig.game.resetPlayerStats(),ig.game.endGame()}getQueryVariable("ad")}})}); ig.baked=!0; ig.module("plugins.director").requires("impact.impact").defines(function(){ig.Director=ig.Class.extend({init:function(b,c){this.game=b;this.levels=[];this.currentLevel=0;this.append(c)},loadLevel:function(b){for(var c in ig.sizeHandler.dynamicClickableEntityDivs){var d=ig.domHandler.getElementById("#"+c);ig.domHandler.hide(d)}this.currentLevel=b;this.game.loadLevel(this.levels[b]);return!0},loadLevelWithoutEntities:function(b){this.currentLevel=b;this.game.loadLevelWithoutEntities(this.levels[b]);return!0}, append:function(b){newLevels=[];return"object"===typeof b?(b.constructor===[].constructor?newLevels=b:newLevels[0]=b,this.levels=this.levels.concat(newLevels),!0):!1},nextLevel:function(){return this.currentLevel+1this.getFloat(b)&&this.set(b,c)},remove:function(b){if(!this.isCapable())return null;window.localStorage.removeItem(b)},clear:function(){if(!this.isCapable())return null; window.localStorage.clear()}})});ig.baked=!0; ig.module("plugins.fake-storage").requires("impact.impact","plugins.impact-storage").defines(function(){ig.FakeStorage=ig.Class.extend({data:{},supported:!1,convert:function(){try{return localStorage.setItem("testStorage","testStorage"),localStorage.removeItem("testStorage"),localStorageSupport="localStorage"in window&&null!==window.localStorage,new ig.Storage}catch(b){return this}},isSet:function(b){return this.data[b]?!0:!1},getInt:function(b){return~~this.get(b)},getFloat:function(b){return parseFloat(this.get(b))}, initUnset:function(b,c){this.get(b)||this.set(b,c)},setHighest:function(b,c){c>this.getFloat(b)&&this.set(b,c)},set:function(b,c){this.data[b]=c},get:function(b){return this.data[b]},getInt:function(b){return this.data[b]?parseInt(this.data[b]):0}})});this.START_BRANDING_SPLASH;ig.baked=!0; ig.module("plugins.branding.splash").requires("impact.impact","impact.entity").defines(function(){ig.BrandingSplash=ig.Class.extend({init:function(){ig.game.spawnEntity(EntityBranding,0,0);console.log("spawn branding")}});EntityBranding=ig.Entity.extend({gravityFactor:0,size:{x:32,y:32},splash:new ig.Image("branding/splash1.png"),init:function(b,c,d){this.parent(b,c,d);320>=ig.system.width?(this.size.x=320,this.size.y=200):(this.size.x=480,this.size.y=240);this.pos.x=(ig.system.width-this.size.x)/ 2;this.pos.y=-this.size.y-200;this.endPosY=(ig.system.height-this.size.y)/2;b=this.tween({pos:{y:this.endPosY}},0.5,{easing:ig.Tween.Easing.Bounce.EaseIn});c=this.tween({},2.5,{onComplete:function(){ig.game.director.loadLevel(ig.game.director.currentLevel)}});b.chain(c);b.start();this.currentAnim=this.anims.idle},createClickableLayer:function(){console.log("Build clickable layer");this.checkClickableLayer("branding-splash",_SETTINGS.Branding.Logo.Link,_SETTINGS.Branding.Logo.NewWindow)},doesClickableLayerExist:function(b){for(k in dynamicClickableEntityDivs)if(k== b)return!0;return!1},checkClickableLayer:function(b,c,d){"undefined"==typeof wm&&(this.doesClickableLayerExist(b)?(ig.game.showOverlay([b]),$("#"+b).find("[href]").attr("href",c)):this.createClickableOutboundLayer(b,c,"media/graphics/misc/invisible.png",d))},createClickableOutboundLayer:function(b,c,d,f){var g=ig.$new("div");g.id=b;document.body.appendChild(g);g=$("#"+g.id);g.css("float","left");g.css("position","absolute");if(ig.ua.mobile){var m=window.innerHeight/mobileHeight,q=window.innerWidth/ mobileWidth;g.css("left",this.pos.x*q);g.css("top",this.pos.y*m);g.css("width",this.size.x*q);g.css("height",this.size.y*m)}else m=w/2-destW/2,q=h/2-destH/2,console.log(m,q),g.css("left",m+this.pos.x*multiplier),g.css("top",q+this.pos.y*multiplier),g.css("width",this.size.x*multiplier),g.css("height",this.size.y*multiplier);f?g.html(""):g.html(""); dynamicClickableEntityDivs[b]={};dynamicClickableEntityDivs[b].width=this.size.x*multiplier;dynamicClickableEntityDivs[b].height=this.size.y*multiplier;dynamicClickableEntityDivs[b].entity_pos_x=this.pos.x;dynamicClickableEntityDivs[b].entity_pos_y=this.pos.y},draw:function(){ig.system.context.fillStyle="#ffffff";ig.system.context.fillRect(0,0,ig.system.width,ig.system.height);ig.system.context.fillStyle="#000";ig.system.context.font="12px Arial";ig.system.context.textAlign="left";320>=ig.system.width? ig.system.context.fillText("powered by MarketJS.com",ig.system.width-150,ig.system.height-15):ig.system.context.fillText("powered by MarketJS.com",ig.system.width-160,ig.system.height-15);this.parent();this.splash&&ig.system.context.drawImage(this.splash.data,0,0,this.splash.data.width,this.splash.data.height,this.pos.x,this.pos.y,this.size.x,this.size.y)}})});this.END_BRANDING_SPLASH;ig.baked=!0; ig.module("game.entities.buttons.button").requires("impact.entity","plugins.data.vector").defines(function(){EntityButton=ig.Entity.extend({collides:ig.Entity.COLLIDES.NEVER,type:ig.Entity.TYPE.A,layer:0,isClicked:!1,scale:{x:1,y:1},enabled:!0,gravityFactor:0,init:function(b,c,d){this.parent(b,c,d)},ready:function(){this.parent();this.clickTime=ig.system.clock.delta();this.zIndex=this.layer+1;ig.game.sortEntitiesDeferred()},setAnim:function(){this.size.x=this.animSheet.width;this.size.y=this.animSheet.height; this.addAnim("idle",1,[0]);this.addAnim("clicked",1,[1]);this.currentAnim=this.anims.idle},clicked:function(){var b=this.clickTime;this.clickTime=ig.system.clock.delta();!(0.45>this.clickTime-b)&&this.enabled&&ig.game.currentLayer==this.layer&&(this.isClicked=!0,this.currentAnim=this.anims.clicked,ig.soundHandler.sfxPlayer.play("button"))},clicking:function(){},released:function(b){if(this.enabled&&this.isClicked&&ig.game.currentLayer==this.layer)if(this.isClicked=!1,this.currentAnim=this.anims.idle, null!=b){var c=this;ig.game.spawnEntity(EntityFade,0,0).callback=function(){c.callback()}}else ig.game.spawnEntity(EntityFade,0,0),this.callback()},leave:function(){this.enabled&&ig.game.currentLayer==this.layer&&(this.isClicked=!1,this.currentAnim=this.anims.idle,ig.domHandler.getElementById("#canvas").css("cursor","default"))},over:function(){this.enabled&&ig.game.currentLayer==this.layer&&ig.domHandler.getElementById("#canvas").css("cursor","pointer")},draw:function(){if(this.currentAnim){var b= ig.system.context;b.save();b.translate(ig.system.getDrawPos(this.pos.x.round()+this.size.x*(1-this.scale.x)/2-ig.game.screen.x),ig.system.getDrawPos(this.pos.y.round()+this.size.y*(1-this.scale.y)/2-ig.game.screen.y));b.scale(this.scale.x,this.scale.y);this.isClicked?this.currentAnim.draw(0,3):this.currentAnim.draw(0,0);b.restore()}},enable:function(b){if(!this.enabled||!b)this.zIndex=(this.enabled=b)?this.zIndex-100:this.zIndex+100,ig.game.sortEntitiesDeferred()},callback:function(){}})}); ig.baked=!0; ig.module("plugins.clickable-div-layer").requires("plugins.data.vector").defines(function(){ClickableDivLayer=ig.Class.extend({pos:new Vector2(0,0),size:new Vector2(0,0),identifier:null,invisImagePath:"media/graphics/misc/invisible.png",init:function(b){this.pos=new Vector2(b.pos.x,b.pos.y);this.size=new Vector2(b.size.x,b.size.y);var c="more-games",d="www.google.com",f=!1;b.div_layer_name&&(c=b.div_layer_name);b.link&&(d=b.link);b.newWindow&&(f=b.newWindow);this.isDownloadLink=b.isDownloadLink?!0: !1;this.createClickableLayer(c,d,f)},createClickableLayer:function(b,c,d){this.identifier=b;var f=ig.domHandler.getElementById("#"+b);f&&f.remove();this.createClickableOutboundLayer(b,c,this.invisImagePath,d)},update:function(b,c){this.pos.x===b&&this.pos.y===c||(ig.sizeHandler.dynamicClickableEntityDivs[this.identifier]={},ig.sizeHandler.dynamicClickableEntityDivs[this.identifier].width=this.size.x,ig.sizeHandler.dynamicClickableEntityDivs[this.identifier].height=this.size.y,ig.sizeHandler.dynamicClickableEntityDivs[this.identifier].entity_pos_x= this.pos.x,ig.sizeHandler.dynamicClickableEntityDivs[this.identifier].entity_pos_y=this.pos.y)},createClickableOutboundLayer:function(b,c,d,f){var g=ig.domHandler.create("div");ig.domHandler.attr(g,"id",b);var m=ig.domHandler.create("a");f?(ig.domHandler.attr(m,"href",c),ig.domHandler.attr(m,"target","_blank")):ig.domHandler.attr(m,"href",c);this.isDownloadLink&&ig.domHandler.addEvent(m,"click",function(){ig.domHandler.attr(m,"download","Happy Crayons")},!1);c=ig.domHandler.create("img");ig.domHandler.css(c, {width:"100%",height:"100%"});ig.domHandler.attr(c,"src",d);d=Math.min(ig.sizeHandler.scaleRatioMultiplier.x,ig.sizeHandler.scaleRatioMultiplier.y);if(ig.ua.mobile){f=Math.floor(this.pos.x*ig.sizeHandler.scaleRatioMultiplier.x)+"px";var q=Math.floor(this.pos.y*ig.sizeHandler.scaleRatioMultiplier.y)+"px",r=Math.floor(this.size.x*ig.sizeHandler.scaleRatioMultiplier.x)+"px";d=Math.floor(this.size.y*ig.sizeHandler.scaleRatioMultiplier.y)+"px"}else f=ig.domHandler.getElementById("#canvas"),f=ig.domHandler.getOffsets(f), q=f.top,f=Math.floor(f.left+this.pos.x*d)+"px",q=Math.floor(q+this.pos.y*d)+"px",r=Math.floor(this.size.x*d)+"px",d=Math.floor(this.size.y*d)+"px";ig.domHandler.css(g,{"float":"left",position:"absolute",left:f,top:q,width:r,height:d,"z-index":3});ig.domHandler.addEvent(g,"mousemove",ig.input.mousemove.bind(ig.input),!1);ig.domHandler.appendChild(m,c);ig.domHandler.appendChild(g,m);ig.domHandler.appendToBody(g);ig.sizeHandler.dynamicClickableEntityDivs[b]={};ig.sizeHandler.dynamicClickableEntityDivs[b].width= this.size.x;ig.sizeHandler.dynamicClickableEntityDivs[b].height=this.size.y;ig.sizeHandler.dynamicClickableEntityDivs[b].entity_pos_x=this.pos.x;ig.sizeHandler.dynamicClickableEntityDivs[b].entity_pos_y=this.pos.y}})});ig.baked=!0; ig.module("game.entities.buttons.button-branding-logo").requires("game.entities.buttons.button","plugins.clickable-div-layer").defines(function(){EntityButtonBrandingLogo=EntityButton.extend({type:ig.Entity.TYPE.A,gravityFactor:0,logo:new ig.AnimationSheet("branding/logo.png",_SETTINGS.Branding.Logo.Width,_SETTINGS.Branding.Logo.Height),zIndex:10001,size:{x:64,y:66},clickableLayer:null,link:null,newWindow:!1,div_layer_name:"branding-logo",name:"brandinglogo",init:function(b,c,d){this.parent(b,c,d); if(!ig.global.wm){if("undefined"==typeof wm)if(_SETTINGS.Branding.Logo.Enabled)this.size.x=_SETTINGS.Branding.Logo.Width,this.size.y=_SETTINGS.Branding.Logo.Height,this.anims.idle=new ig.Animation(this.logo,0,[0],!0),this.currentAnim=this.anims.idle,d&&d.centralize&&(this.pos.x=ig.system.width/2-this.size.x/2,console.log("centralize true ... centering branded logo ...")),_SETTINGS.Branding.Logo.LinkEnabled&&(this.link=_SETTINGS.Branding.Logo.Link,this.newWindow=_SETTINGS.Branding.Logo.NewWindow,this.clickableLayer= new ClickableDivLayer(this));else{this.kill();return}this.div_layer_name=d.div_layer_name?d.div_layer_name:"branding-logo"}},show:function(){var b=ig.domHandler.getElementById("#"+this.div_layer_name);ig.domHandler.show(b)},hide:function(){var b=ig.domHandler.getElementById("#"+this.div_layer_name);ig.domHandler.hide(b)},clicked:function(){},clicking:function(){},released:function(){}})});ig.baked=!0; ig.module("game.entities.branding-logo-placeholder").requires("impact.entity","game.entities.buttons.button-branding-logo").defines(function(){EntityBrandingLogoPlaceholder=ig.Entity.extend({gravityFactor:0,size:{x:32,y:32},_wmDrawBox:!0,_wmBoxColor:"rgba(0, 0, 255, 0.7)",init:function(b,c,d){this.parent(b,c,d);if(d)switch(console.log("settings found ... using that div layer name"),b=d.div_layer_name,console.log("settings.centralize:",d.centralize),d.centralize){case "true":console.log("centralize true"); centralize=!0;break;case "false":console.log("centralize false");centralize=!1;break;default:console.log("default ... centralize false"),centralize=!1}else b="branding-logo",centralize=!1;if("undefined"==typeof wm){if(_SETTINGS.Branding.Logo.Enabled)try{ig.game.spawnEntity(EntityButtonBrandingLogo,this.pos.x,this.pos.y,{div_layer_name:b,centralize:centralize})}catch(f){console.log(f)}this.kill()}}})});ig.baked=!0; ig.module("game.entities.buttons.button-more-games").requires("game.entities.buttons.button","plugins.clickable-div-layer").defines(function(){EntityButtonMoreGames=EntityButton.extend({type:ig.Entity.TYPE.A,gravityFactor:0,logo:new ig.AnimationSheet("media/graphics/sprites/buttons/moregames.png",98,92),size:{x:98,y:92},zIndex:750,clickableLayer:null,link:null,newWindow:!1,div_layer_name:"more-games",name:"moregames",init:function(b,c,d){this.parent(b,c,d);this.title="MORE GAMES";ig.global.wm||(this.div_layer_name= d.div_layer_name?d.div_layer_name:"more-games",_SETTINGS.MoreGames.Enabled?(this.anims.idle=new ig.Animation(this.logo,0,[0],!0),this.currentAnim=this.anims.idle,_SETTINGS.MoreGames.Link&&(this.link=_SETTINGS.MoreGames.Link),_SETTINGS.MoreGames.NewWindow&&(this.newWindow=_SETTINGS.MoreGames.NewWindow),this.clickableLayer=new ClickableDivLayer(this)):this.kill())},show:function(){var b=ig.domHandler.getElementById("#"+this.div_layer_name);ig.domHandler.show(b)},hide:function(){var b=ig.domHandler.getElementById("#"+ this.div_layer_name);ig.domHandler.hide(b)},clicked:function(){},clicking:function(){},released:function(){},draw:function(){this.parent();ig.system.context.save();ig.system.context.textBaseline="alphabetic";ig.system.context.font="20pt mainfont";ig.system.context.fillStyle="#b73248";ig.system.context.textAlign="center";ig.system.context.restore()}})});ig.baked=!0; ig.module("game.entities.opening-shield").requires("impact.entity").defines(function(){EntityOpeningShield=ig.Entity.extend({size:{x:48,y:48},move:0,mIconAnim:0,shieldAnim:0,titleAnim:0,shieldImage:new ig.Image("media/graphics/opening/shield.png"),mIconImage:new ig.Image("media/graphics/opening/m_icon.png"),titleImage:new ig.Image("media/graphics/opening/title.png"),init:function(b,c,d){this.parent(b,c,d)},ready:function(){if(!ig.wm)if(_SETTINGS.DeveloperBranding.Splash.Enabled){this.initTimer=new ig.Timer(0.1); try{ig.soundHandler.playSound(ig.soundHandler.SOUNDID.openingSound)}catch(b){console.log(b)}}else ig.game.director.nextLevel(),ig.system.context.globalAlpha=1,this.kill()},update:function(){this.parent();this.updateOriginalShieldOpening()},draw:function(){this.parent();ig.global.wm||(this.nextLevelTimer&&0>this.nextLevelTimer.delta()&&(ig.system.context.globalAlpha=-this.nextLevelTimer.delta()),this.drawOriginalShieldOpening())},updateOriginalShieldOpening:function(){this.initTimer&&0this.shieldAnim?(this.shieldAnim++,this.sheildTimer.reset()):(this.sheildTimer=null,this.moveTimer=new ig.Timer(0.001),this.mIconTimer=new ig.Timer(0.05),this.titleTimer=new ig.Timer(0.15)));this.moveTimer&&0this.mIconAnim?(this.mIconAnim++,this.moveTimer.reset()):this.mIconTimer= null);this.titleTimer&&0this.titleAnim?(this.titleAnim++,this.titleTimer.reset()):(this.titleTimer=null,this.nextLevelTimer=new ig.Timer(1)));this.nextLevelTimer&&0=g;g+=1)b.lineTo(0+800*Math.cos(2*g*Math.PI/48),0+800*Math.sin(2*g*Math.PI/48)),f++,2==f&&(f=0,b.lineTo(0,0));b.translate(-c,-d);c=b.createRadialGradient(c,d,100,c,d,250);c.addColorStop(0,"rgba(255,255,255,0.1)");c.addColorStop(1,"rgba(0,0,0,0)");b.fillStyle=c;b.fill();b.restore()}this.shieldImage.drawTile(ig.system.width/2-91,0-(768-ig.system.height)/2,this.shieldAnim,182,768);this.moveTimer&&(this.mIconImage.drawTile(ig.system.width/2-96,ig.system.height/2-70,this.mIconAnim, 166,160),this.titleImage.drawTile(ig.system.width/2-204,ig.system.height/2+100,this.titleAnim,409,76));ig.system.context.globalAlpha=1}})});ig.baked=!0; ig.module("game.entities.opening-kitty").requires("impact.entity").defines(function(){EntityOpeningKitty=ig.Entity.extend({size:{x:48,y:48},kittyAnim:-1,kittyImage:new ig.Image("media/graphics/opening/kitty.png"),kittyTitleImage:new ig.Image("media/graphics/opening/kittytitle.png"),soundKey:"kittyopeningSound",init:function(b,c,d){this.parent(b,c,d)},ready:function(){if(!ig.wm)if(_SETTINGS.DeveloperBranding.Splash.Enabled){this.initTimer=new ig.Timer(0.1);try{ig.soundHandler.sfxPlayer.play(this.soundKey)}catch(b){console.log(b)}}else ig.game.director.nextLevel(), ig.system.context.globalAlpha=1,this.kill()},update:function(){this.parent();this.updateKittyOpening()},draw:function(){this.parent();ig.global.wm||(this.nextLevelTimer&&0>this.nextLevelTimer.delta()&&(ig.system.context.globalAlpha=-this.nextLevelTimer.delta()),this.drawKittyOpening())},updateKittyOpening:function(){this.initTimer&&0this.kittyAnim?(this.kittyAnim++,this.kittyTimer.reset()): (this.kittyTimer=null,this.nextLevelTimer=new ig.Timer(2)));this.nextLevelTimer&&0c&&(c=this.objectArray[a].zIndex, b=this.objectArray[a]);if(null!=b)null!=this.hoveringItem?(this.hoveringItem!=b&&("function"==typeof this.hoveringItem.leave&&this.hoveringItem.leave(),"function"==typeof b.over&&b.over()),this.isReleased&&null!=this.clickedObjectList[0]&&this.hoveringItem!=this.clickedObjectList[0]&&("function"==typeof this.clickedObjectList[0].releasedOutside&&this.clickedObjectList[0].releasedOutside(),this.clickedObjectList=[])):"function"==typeof b.over&&b.over(),this.hoveringItem=b,this.clickObject(b),this.objectArray= [];else if(null!=this.hoveringItem&&"function"==typeof this.hoveringItem.leave&&(this.hoveringItem.leave(),this.hoveringItem=null),this.isReleased){for(b=0;b"):$("#"+g.id).html("");dynamicClickableEntityDivs[b]={};dynamicClickableEntityDivs[b].width=$("#"+g.id).width();dynamicClickableEntityDivs[b].height= $("#"+g.id).height();dynamicClickableEntityDivs[b].entity_pos_x=this.pos.x;dynamicClickableEntityDivs[b].entity_pos_y=this.pos.y},hovered:function(){this.isHovering=!0;this.dehoverOthers()},dehoverOthers:function(){var b=ig.game.getEntitiesByType(EntitySelect);for(i=0;ib?this.alpha=b:(this.alpha=1,this.end=!0,this.callback(),this.kill())}else b=this.alpha-0.05,0=b&&(b=1E-16);"sliderBgm"==this.name?ig.game.storage.set("AM_BgmLevel",b):(ig.game.storage.set("AM_SfxLevel",b),ig.soundHandler.sfxPlayer.volume(b));ig.soundHandler.sfxPlayer.play("button")},releasedOutside:function(){this.released()},update:function(){this.parent(); if(this.isClicked&&(this.xTemp=ig.game.io.getClickPos().x-this.pointerDx,this.pos.x=this.xTemp>this.x0&&this.xTemp<=this.x1?this.xTemp:this.xTemp=b&&(b=1E-16);ig.soundHandler.bgmPlayer.volume(b)}}});EntityIcon=ig.Entity.extend({name:"icon",data:{animSheet:["media/graphics/sprites/ui/music-icon.png","media/graphics/sprites/ui/sound-icon.png","media/graphics/sprites/ui/panel-settings.png","media/graphics/sprites/ui/panel.png"], size:[{x:48,y:53},{x:62,y:56},{x:466,y:215},{x:647,y:490}],offset:[{x:0,y:0},{x:0,y:0},{x:0,y:0},{x:0,y:0}],sprite:[{x:48,y:53},{x:62,y:56},{x:466,y:215},{x:647,y:490}],anims:[[[0],[1]],[[0],[1]],[[0],[1]],[[0],[1]]]},init:function(b,c,d){this.parent(b,c,d);this.size=this.data.size[d.icon];this.offset=this.data.offset[d.icon];this.sprite=this.data.sprite[d.icon];this.animSheet=new ig.AnimationSheet(this.data.animSheet[d.icon],this.sprite.x,this.sprite.y);this.addAnim("idle",1,this.data.anims[d.icon][0]); this.addAnim("gone",1,this.data.anims[d.icon][1]);this.currentAnim.pivot.x=this.size.x/2;this.currentAnim=this.anims.idle},update:function(){this.parent()}})});ig.baked=!0; ig.module("game.entities.buttons.play-bt2").requires("game.entities.buttons.button").defines(function(){EntityPlayBt2=EntityButton.extend({animSheet:new ig.AnimationSheet("media/graphics/sprites/buttons/resume.png",141,136),dy:0,init:function(b,c,d){this.parent(b,c,d);this.setAnim();this.y0=c},update:function(){this.parent();this.pos.y=this.y0+this.dy},clicked:function(){this.parent()},clicking:function(){},released:function(){this.parent()},leave:function(){this.parent()},callback:function(){this.popup.moveOut()}, draw:function(){this.parent()}})});ig.baked=!0; ig.module("game.entities.buttons.home-bt").requires("game.entities.buttons.button").defines(function(){EntityHomeBt=EntityButton.extend({animSheet1:new ig.AnimationSheet("media/graphics/sprites/buttons/home.png",98,92),animSheet2:new ig.AnimationSheet("media/graphics/sprites/buttons/home.png",98,92),dy:0,init:function(b,c,d){this.parent(b,c,d);this.animSheet=d.isHome2?this.animSheet2:this.animSheet1;this.setAnim();this.y0=c},callback:function(){ig.game.spawnEntity(EntityFade,0,0).callback=function(){ig.game.director.jumpTo(LevelHome)}}, update:function(){this.parent();this.pos.y=this.y0+this.dy}})});ig.baked=!0; ig.module("game.entities.buttons.replay-bt").requires("game.entities.buttons.button").defines(function(){EntityReplayBt=EntityButton.extend({animSheet:new ig.AnimationSheet("media/graphics/sprites/buttons/replay.png",98,92),popup:null,dy:0,init:function(b,c,d){this.parent(b,c,d);this.setAnim();this.y0=c},callback:function(){ig.game.isReplayed||(ig.game.isReplayed=!0);this.popup.moveOut()},update:function(){this.parent();this.pos.y=this.y0+this.dy}})});ig.baked=!0; ig.module("game.entities.popups.settings-pop").requires("game.entities.popups.popup","game.entities.buttons.ok-bt","game.entities.buttons.slider","game.entities.buttons.play-bt2","game.entities.buttons.home-bt","game.entities.buttons.replay-bt").defines(function(){EntitySettingsPopup=EntityPopup.extend({panel:new ig.Image("media/graphics/sprites/ui/panel-settings.png"),bg1:new ig.Image("media/graphics/sprites/ui/bg-settings1.png"),bg2:new ig.Image("media/graphics/sprites/ui/bg-settings2.png"),bar0:new ig.Image("media/graphics/sprites/ui/slider0.png"), bar1:new ig.Image("media/graphics/sprites/ui/slider1.png"),music:new ig.Image("media/graphics/sprites/ui/music-icon.png"),sound:new ig.Image("media/graphics/sprites/ui/sound-icon.png"),isInGame:!1,init:function(b,c,d){this.parent(b,c,d);this.zIndex=ig.game.currentLayer=ig.game.layers.Settings;this.slideBarX=this.pos.x+93;this.bgmDy=40;this.sfxDy=116;this.sliderBgm=ig.game.spawnEntity(EntitySlider,this.slideBarX+15,this.pos.y+30,{xLength:this.bar0.width,zIndex:this.zIndex+1,name:"sliderBgm"});this.sliderSfx= ig.game.spawnEntity(EntitySlider,this.slideBarX+15,this.pos.y+30,{xLength:this.bar0.width,zIndex:this.zIndex+1,name:"sliderSfx"});this.title=_STRINGS.Game.Settings;this.isInGame?(this.musicIcon=ig.game.spawnEntity(EntityIcon,ig.system.width/4+38,0,{icon:0,popup:this,layer:ig.game.layers.Settings,zIndex:this.zIndex+1}),this.soundIcon=ig.game.spawnEntity(EntityIcon,ig.system.width/4+38,0,{icon:1,popup:this,layer:ig.game.layers.Settings,zIndex:this.zIndex+1}),this.replayBt=ig.game.spawnEntity(EntityReplayBt, ig.system.width/2+95,0,{popup:this,layer:ig.game.layers.Settings,zIndex:this.zIndex+1}),this.homeBt=ig.game.spawnEntity(EntityHomeBt,ig.system.width/2-182,0,{popup:this,layer:ig.game.layers.Settings,zIndex:this.zIndex+1}),this.resumeBt=ig.game.spawnEntity(EntityPlayBt2,ig.system.width/2-65,0,{popup:this,layer:ig.game.layers.Settings,zIndex:this.zIndex+1})):(this.musicIcon=ig.game.spawnEntity(EntityIcon,ig.system.width/4+38,0,{icon:0,popup:this,layer:ig.game.layers.Settings,zIndex:this.zIndex+1}), this.soundIcon=ig.game.spawnEntity(EntityIcon,ig.system.width/4+38,0,{icon:1,popup:this,layer:ig.game.layers.Settings,zIndex:this.zIndex+1}),this.okButton=ig.game.spawnEntity(EntityOKBt,0,0,{popup:this,layer:ig.game.layers.Settings,zIndex:this.zIndex+1}));this.moveIn();ig.game.sortEntitiesDeferred()},callback:function(){ig.game.isReplayed?(ig.game.isReplayed=!1,ig.game.director.jumpTo(LevelGame)):0==ig.game.currentScreen?(ig.game.currentLayer=ig.game.layers.Home,ig.game.director.jumpTo(LevelHome)): (ig.game.currentLayer=ig.game.layers.Game,this.main.gameEnd=!1,ig.game.spawnEntity(EntityFade,0,0,{fadeOut:!1}),ig.game.sortEntitiesDeferred(),this.kill())},draw:function(){this.parent();"home"==ig.game.gamestate?this.bg1.draw(0,0):this.bg2.draw(0,0);this.panel.draw(ig.system.width/4+10,ig.system.height/4);ig.system.context.textBaseline="alphabetic";ig.system.context.font="40pt mainfont";ig.system.context.fillStyle="#ffffff";ig.system.context.textAlign="center";ig.system.context.fillText(this.title, this.pos.x+this.size.x/2,this.pos.y-75);if(this.isInGame){this.bar0.draw(this.slideBarX+15,this.pos.y+this.bgmDy-15);var b=this.sliderBgm.pos.x-this.slideBarX+18}else this.bar0.draw(this.slideBarX+15,this.pos.y+this.bgmDy-15),b=this.sliderBgm.pos.x-this.slideBarX+18;0>=b?b=1:b>this.bar1.width&&(b=this.bar1.width);ig.system.context.drawImage(this.bar1.data,0,0,b,this.bar1.height,this.slideBarX+20,this.pos.y+this.bgmDy-11,b,this.bar1.height);this.bar0.draw(this.slideBarX+15,this.pos.y+this.sfxDy-14); b=this.sliderSfx.pos.x-this.slideBarX+18;0>=b?b=1:b>this.bar1.width&&(b=this.bar1.width);ig.system.context.drawImage(this.bar1.data,0,0,b,this.bar1.height,this.slideBarX+20,this.pos.y+this.sfxDy-10,b,this.bar1.height)},update:function(){this.parent();this.isInGame?(this.musicIcon.pos.y=this.pos.y+this.bgmDy-28,this.soundIcon.pos.y=this.pos.y+this.sfxDy-30,this.sliderBgm.pos.y=this.pos.y+this.bgmDy-22,this.sliderSfx.pos.y=this.pos.y+this.sfxDy-20,this.replayBt.y0=this.pos.y+255,this.homeBt.y0=this.pos.y+ 255,this.resumeBt.y0=this.pos.y+225):(this.musicIcon.pos.y=this.pos.y+this.bgmDy-28,this.soundIcon.pos.y=this.pos.y+this.sfxDy-30,this.sliderBgm.pos.y=this.pos.y+this.bgmDy-22,this.sliderSfx.pos.y=this.pos.y+this.sfxDy-20,this.okButton.pos.y=this.pos.y+242)},kill:function(){this.isInGame?(this.replayBt.kill(),this.homeBt.kill(),this.resumeBt.kill()):this.okButton.kill();this.musicIcon.kill();this.soundIcon.kill();this.sliderBgm.kill();this.sliderSfx.kill();this.parent()}})});ig.baked=!0; ig.module("game.entities.buttons.settings-bt").requires("game.entities.buttons.button","game.entities.popups.settings-pop").defines(function(){EntitySettingsBt=EntityButton.extend({animSheet:new ig.AnimationSheet("media/graphics/sprites/buttons/btn-settingsmenu.png",98,92),init:function(b,c,d){this.parent(b,c,d);this.title=_STRINGS.Game.Settings;this.setAnim()},clicked:function(){this.parent()},clicking:function(){},released:function(){if(this.enabled&&this.isClicked&&ig.game.currentLayer==this.layer){this.isClicked= !1;this.currentAnim=this.anims.idle;ig.game.currentLayer=ig.game.layers.Settings;var b=this;ig.game.spawnEntity(EntityFade,0,0).callback=function(){b.callback()}}},leave:function(){this.parent()},callback:function(){ig.domHandler.getElementById("#canvas").css("cursor","default");_SETTINGS.MoreGames.Enabled&&ig.game.getEntitiesByType(EntityButtonMoreGames)[0].hide();ig.game.currentScreen=0;ig.game.spawnEntity(EntitySettingsPopup,0,0)},draw:function(){this.parent();ig.system.context.save();ig.system.context.textBaseline= "alphabetic";ig.system.context.font="20pt mainfont";ig.system.context.fillStyle="#b73248";ig.system.context.textAlign="center";ig.system.context.restore()}})});ig.baked=!0; ig.module("game.entities.home-control").requires("game.entities.buttons.play-bt","game.entities.buttons.settings-bt").defines(function(){EntityHomeControl=ig.Entity.extend({bg:new ig.Image("media/graphics/sprites/ui/bg.png"),name:"home",init:function(b,c,d){this.parent(b,c,d);ig.game.gamestate="home";this.zIndex=ig.game.currentLayer=ig.game.layers.Home;ig.game.spawnEntity(EntityPlayBt,ig.system.width/2,370,{layer:ig.game.layers.Home});ig.game.spawnEntity(EntitySettingsBt,ig.system.width/2+128,400, {layer:ig.game.layers.Home});ig.game.spawnEntity(EntityFade,0,0,{fadeOut:!1});ig.game.sortEntitiesDeferred();ig.domHandler.getElementById("#canvas").css("cursor","default")},draw:function(){this.parent();this.bg.draw(0,0)}})});ig.baked=!0; ig.module("game.levels.home").requires("game.entities.home-control","game.entities.buttons.button-more-games").defines(function(){LevelHome={entities:[{type:"EntityHomeControl",x:0,y:0},{type:"EntityPointer",x:0,y:0},{type:"EntityButtonMoreGames",x:300,y:400,settings:{div_layer_name:"layer_moregames_mainmenu"}}],layer:[]}});ig.baked=!0; ig.module("game.entities.crayon").requires("impact.entity","plugins.data.vector").defines(function(){EntityCrayon=ig.Entity.extend({collides:ig.Entity.COLLIDES.NEVER,type:ig.Entity.TYPE.A,size:new Vector2(48,48),fillColor:null,zIndex:2,im:new ig.Image("media/graphics/sprites/pencils.png"),tweening:!1,sheetX:15,sheetY:1,oriPos:{x:0,y:0},colours:"#e31f0e #f7cbcc #ce5aa0 #f59c00 #ffda00 #fbe0cd #a4c1dc #a0daf8 #0097d4 #8d3c8b #369c2f #bb8846 #76512d #492c12 #243574".split(" "),name:"crayon",init:function(b, c,d){this.parent(b,c,d);this.animSheet=new ig.AnimationSheet(this.im.path,this.im.width/this.sheetX,this.im.height/this.sheetY);this.addAnim("colour"+this.index,0.03,[this.index],!0);this.currentAnim=this.anims["colour"+this.index];this.size.x=this.im.width/this.sheetX;this.size.y=this.im.height/this.sheetY;this.oriPos.x=0.5*ig.system.width-0.5*this.im.width+this.size.x*this.index+5;this.oriPos.y=ig.system.height-88;this.pos.x=this.oriPos.x;this.pos.y=ig.system.height},clicked:function(){if(!(!0== this.tweening||this.main.gameEnd))if(ig.soundHandler.sfxPlayer.play("button"),this.main.eraserSelected&&(this.main.eraserSelected=!1),this.main.selectedCrayon==this)this.main.selectedCrayon=null,this.main.painting=!1,this.tweenF("hideSelfCrayon"),this.main.crayonColour="white";else{var b=this.main.selectedCrayon;b&&b.tweenF("hideSelfCrayon");this.main.selectedCrayon=this;this.main.crayonColour=this.colours[this.index];this.tweenF("showSelectedCrayon3")}},clicking:function(){},released:function(){}, update:function(){this.parent()},ready:function(){this.tweenF("initCrayon")},tweenF:function(b){switch(b){case "doneTween":this.tweening=!1;break;case "allDoneTween":if(14==this.index){this.crayons=ig.game.getEntitiesByType(EntityCrayon);for(b=0;b=c||(l=r?b.x-l/2+m:b.x+m,r=r?b.y-n/2+q:b.y+q,0=c||(l=r?b.x-l/2+m:b.x+m,r=r?b.y-n/2+q:b.y+q,0=c||(l=r?b.x-l/2+m:b.x+m,r=r?b.y-n/2+q:b.y+q,0b;b++)ig.game.spawnEntity(EntityCrayon,800,800,{main:this,index:b,zIndex:this.zIndex+1});ig.game.sortEntitiesDeferred()},showCrayon:function(){this.crayons=ig.game.getEntitiesByType(EntityCrayon);for(var b=0;big.game.sheet?(ig.game.spawnEntity(EntityNextBt, ig.system.width-97-50,ig.system.height/2-46,{layer:ig.game.layers.GameEnd}),this.yy=156):this.yy=160;this.iposX=ig.system.width/2-ig.game.isize.x*ig.game.iscale/2+15;ig.game.spawnEntity(EntityFade,0,0,{fadeOut:!1});ig.game.sortEntitiesDeferred();ig.soundHandler.bgmPlayer.volume(0);ig.soundHandler.sfxPlayer.play("win");setTimeout(function(){var b=ig.game.storage.get("AM_SfxLevel");ig.soundHandler.bgmPlayer.volume(b)},3700);ig.domHandler.getElementById("#canvas").css("cursor","default");this.updateCanvas= !0},draw:function(){this.bg.draw(0,0);this.filterPosition();ig.system.context.save();ig.system.context.translate(this.iposX,this.yy);ig.system.context.scale(ig.game.iscale,ig.game.iscale);ig.system.context.drawImage(ig.game.imageEle,this.xx,this.yy);ig.system.context.restore();this.updateCanvas&&(ig.game.spawnEntity(EntitySaveBt,ig.system.width/2-60,ig.system.height-65,{layer:ig.game.layers.GameEnd,zIndex:this.zIndex+1}),this.updateCanvas=!1)},filterPosition:function(){0==ig.game.sheet?(this.xx=0, this.yy=80):1==ig.game.sheet?(this.xx=-15,this.yy=67):2==ig.game.sheet?(this.xx=-15,this.yy=70):3==ig.game.sheet?(this.xx=-15,this.yy=63):4==ig.game.sheet?(this.xx=-15,this.yy=64):5==ig.game.sheet?(this.xx=-15,this.yy=65):6==ig.game.sheet?(this.xx=-15,this.yy=65):7==ig.game.sheet?(this.xx=-15,this.yy=65):8==ig.game.sheet?(this.xx=-15,this.yy=65):9==ig.game.sheet?(this.xx=-15,this.yy=67):10==ig.game.sheet?(this.xx=-15,this.yy=70):11==ig.game.sheet&&(this.xx=-15,this.yy=70)}})});ig.baked=!0; ig.module("game.levels.end").requires("impact.image","game.entities.end-control").defines(function(){LevelEnd={entities:[{type:"EntityEndControl",x:0,y:0},{type:"EntityPointer",x:0,y:0}],layer:[]}});ig.baked=!0; ig.module("game.main").requires("impact.game","plugins.patches.webkit-image-smoothing-patch","plugins.patches.windowfocus-onMouseDown-patch","plugins.handlers.dom-handler","plugins.handlers.size-handler","plugins.handlers.api-handler","plugins.audio.sound-handler","plugins.io.io-manager","plugins.splash-loader","plugins.tween","plugins.url-parameters","plugins.director","plugins.impact-storage","plugins.fake-storage","plugins.branding.splash","game.entities.branding-logo-placeholder","game.entities.buttons.button-more-games", "game.entities.opening-shield","game.entities.opening-kitty","game.entities.pointer","game.entities.select","game.entities.fade","game.levels.opening","game.levels.home","game.levels.game","game.levels.end").defines(function(){this.START_OBFUSCATION;this.FRAMEBREAKER;MyGame=ig.Game.extend({io:null,paused:!1,gamestate:null,codeimage:0,sheet:0,layers:{Home:0,Game:100,Settings:200,Pause:300,GameEnd:400},closeClicked:!1,isize:{x:0,y:0},currentScreen:0,init:function(){this.setupMarketJsGameCenter();this.io= new IoManager;this.setupUrlParams=new ig.UrlParameters;this.removeLoadingWheel();this.setupLocalStorage();this.finalize();this.createHiddenCanvas()},setupLocalStorage:function(){this.storage=new ig.FakeStorage;this.storage=this.storage.convert();null==this.storage.get("AM_BgmLevel")&&this.storage.set("AM_BgmLevel",1);null==this.storage.get("AM_SfxLevel")&&this.storage.set("AM_SfxLevel",1);var b=this.storage.get("AM_BgmLevel");ig.soundHandler.bgmPlayer.volume(b);b=this.storage.get("AM_SfxLevel");ig.soundHandler.sfxPlayer.volume(b)}, createHiddenCanvas:function(){this.imageEle=document.createElement("canvas");this.imageCtx=this.imageEle.getContext("2d")},setupMarketJsGameCenter:function(){if(_SETTINGS)if(_SETTINGS.MarketJSGameCenter){var b=ig.domHandler.getElementByClass("gamecenter-activator");_SETTINGS.MarketJSGameCenter.Activator.Enabled&&_SETTINGS.MarketJSGameCenter.Activator.Position&&(console.log("MarketJSGameCenter activator settings present ...."),ig.domHandler.css(b,{position:"absolute",left:_SETTINGS.MarketJSGameCenter.Activator.Position.Left, top:_SETTINGS.MarketJSGameCenter.Activator.Position.Top,"z-index":3}));ig.domHandler.show(b)}else console.log("MarketJSGameCenter settings not defined in game settings")},finalize:function(){this.start();ig.sizeHandler.reorient()},removeLoadingWheel:function(){try{$("#ajaxbar").css("background","none")}catch(b){console.log(b)}},showDebugMenu:function(){console.log("showing debug menu ...");ig.Entity._debugShowBoxes=!0;$(".ig_debug").show()},start:function(){this.resetPlayerStats();this.director=new ig.Director(this, [LevelOpening,LevelHome,LevelGame,LevelEnd]);if(_SETTINGS.Branding.Splash.Enabled)try{this.branding=new ig.BrandingSplash}catch(b){console.log(b),console.log("Loading original levels ..."),this.director.loadLevel(this.director.currentLevel)}else this.director.loadLevel(this.director.currentLevel);ig.soundHandler.bgmPlayer.play(ig.soundHandler.bgmPlayer.soundList.background)},fpsCount:function(){this.fpsTimer||(this.fpsTimer=new ig.Timer(1));this.fpsTimer&&0>this.fpsTimer.delta()?null!=this.fpsCounter? this.fpsCounter++:this.fpsCounter=0:(ig.game.fps=this.fpsCounter,this.fpsCounter=0,this.fpsTimer.reset(),console.log(ig.game.fps))},endGame:function(){console.log("End game");ig.soundHandler.bgmPlayer.stop();ig.apiHandler.run("MJSEnd")},resetPlayerStats:function(){ig.log("resetting player stats ...");this.playerStats={id:this.playerStats?this.playerStats.id:null}},splashClick:function(){var b=ig.domHandler.getElementById("#play");ig.domHandler.hide(b);ig.apiHandler.run("MJSFooter");ig.apiHandler.run("MJSHeader"); ig.game.start()},pauseGame:function(){ig.system.stopRunLoop.call(ig.system);console.log("Game Paused")},resumeGame:function(){ig.system.startRunLoop.call(ig.system);console.log("Game Resumed")},showOverlay:function(b){for(i=0;ithis.debug.length||this.debug.splice(0,1),this.debug.push(b), this.debugLine++):(this.debug=[],this.debugLine=1,this.debug.push(b));console.log(b)},debugEnable:function(){ig.input.pressed("click")&&(this.debugEnableTimer=new ig.Timer(2));this.debugEnableTimer&&0>this.debugEnableTimer.delta()?ig.input.released("click")&&(this.debugEnableTimer=null):this.debugEnableTimer&&0