game.min.js 796 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119
  1. var b = b || {};
  2. b.Ea = b.Ea || {};
  3. b.o = {};
  4. r = window;
  5. r = Object.prototype;
  6. delete window._p;
  7. b.ic = function(a) {
  8. return document.createElement(a)
  9. };
  10. b.$a = function(a, d, e, f) {
  11. a.addEventListener(d, e, f)
  12. };
  13. b.rR = "undefined" !== typeof require && require("fs");
  14. b.OU = function(a, d) {
  15. if (a)
  16. if (a instanceof Array)
  17. for (var e = 0, f = a.length; e < f && !1 !== d.call(void 0, a[e], e); e++);
  18. else
  19. for (e in a)
  20. if (!1 === d.call(void 0, a[e], e)) break
  21. };
  22. b.extend = function(a) {
  23. var d = 2 <= arguments.length ? Array.prototype.slice.call(arguments, 1) : [];
  24. b.OU(d, function(d) {
  25. for (var f in d) d.hasOwnProperty(f) && (a[f] = d[f])
  26. });
  27. return a
  28. };
  29. b.Ie = function(a) {
  30. return "function" === typeof a
  31. };
  32. b.Vw = function(a) {
  33. return "number" === typeof a || "[object Number]" === Object.prototype.toString.call(a)
  34. };
  35. b.Je = function(a) {
  36. return "string" === typeof a || "[object String]" === Object.prototype.toString.call(a)
  37. };
  38. b.isArray = function(a) {
  39. return Array.isArray(a) || "object" === typeof a && "[object Array]" === Object.prototype.toString.call(a)
  40. };
  41. b.sj = function(a) {
  42. return "undefined" === typeof a
  43. };
  44. b.Ww = function(a) {
  45. return "object" === typeof a && "[object Object]" === Object.prototype.toString.call(a)
  46. };
  47. b.Mn = function(a) {
  48. if (!a) return b.log("invalid URL"), !1;
  49. var d = a.indexOf("://");
  50. if (-1 === d) return !1;
  51. d = a.indexOf("/", d + 3);
  52. return (-1 === d ? a : a.substring(0, d)) !== location.origin
  53. };
  54. function aa(a, d, e, f, g) {
  55. var h = this;
  56. h.Hja = a;
  57. h.FA = d;
  58. h.jf = [];
  59. h.zR = e;
  60. h.AR = g;
  61. h.Zo = f;
  62. h.WA = g;
  63. h.tS = a instanceof Array ? [] : {};
  64. h.qR = !1;
  65. b.OU(a, function(a, d) {
  66. h.jf.push({
  67. index: d,
  68. value: a
  69. })
  70. });
  71. h.size = h.jf.length;
  72. h.vK = 0;
  73. h.BJ = 0;
  74. h.FA = h.FA || h.size;
  75. h.rra = function(a, d) {
  76. h.zR = a;
  77. h.AR = d
  78. };
  79. h.qra = function(a, d) {
  80. h.Zo = a;
  81. h.WA = d
  82. };
  83. h.fR = function() {
  84. var a = this;
  85. if (!(0 === a.jf.length || a.BJ >= a.FA)) {
  86. var d = a.jf.shift(),
  87. e = d.value,
  88. f = d.index;
  89. a.BJ++;
  90. a.zR.call(a.AR, e, f, function(d) {
  91. if (!a.qR)
  92. if (a.vK++, a.BJ--, d) a.qR = !0, a.Zo && a.Zo.call(a.WA, d);
  93. else {
  94. var e =
  95. Array.prototype.slice.call(arguments, 1);
  96. a.tS[this.index] = e[0];
  97. a.vK === a.size ? a.Zo && a.Zo.call(a.WA, null, a.tS) : a.fR()
  98. }
  99. }.bind(d), a)
  100. }
  101. };
  102. h.As = function() {
  103. if (0 === this.jf.length) this.Zo && this.Zo.call(this.WA, null, []);
  104. else
  105. for (var a = 0; a < this.FA; a++) this.fR()
  106. }
  107. }
  108. b.async = {
  109. lta: function(a, d, e) {
  110. a = new aa(a, 1, function(a, d, h) {
  111. a.call(e, h)
  112. }, d, e);
  113. a.As();
  114. return a
  115. },
  116. Pra: function(a, d, e) {
  117. a = new aa(a, 0, function(a, d, h) {
  118. a.call(e, h)
  119. }, d, e);
  120. a.As();
  121. return a
  122. },
  123. Nwa: function(a, d, e) {
  124. var f = [],
  125. g = [null],
  126. h = new aa(a, 1, function(d, h, n) {
  127. f.push(function(d) {
  128. f = Array.prototype.slice.call(arguments, 1);
  129. a.length - 1 === h && (g = g.concat(f));
  130. n.apply(null, arguments)
  131. });
  132. d.apply(e, f)
  133. }, function(a) {
  134. if (d) {
  135. if (a) return d.call(e, a);
  136. d.apply(e, g)
  137. }
  138. });
  139. h.As();
  140. return h
  141. },
  142. map: function(a, d, e, f) {
  143. var g = d;
  144. "object" === typeof d &&
  145. (e = d.En, f = d.mqa, g = d.lqa);
  146. a = new aa(a, 0, g, e, f);
  147. a.As();
  148. return a
  149. },
  150. Sqa: function(a, d, e, f, g) {
  151. a = new aa(a, d, e, f, g);
  152. a.As();
  153. return a
  154. }
  155. };
  156. b.path = {
  157. join: function() {
  158. for (var a = arguments.length, d = "", e = 0; e < a; e++) d = (d + ("" === d ? "" : "/") + arguments[e]).replace(/(\/|\\\\)$/, "");
  159. return d
  160. },
  161. Hn: function(a) {
  162. return (a = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(a)) ? a[1] : null
  163. },
  164. Rqa: function(a) {
  165. if (a) {
  166. var d = a.lastIndexOf(".");
  167. if (-1 !== d) return a.substring(0, d)
  168. }
  169. return a
  170. },
  171. q7: function(a, d) {
  172. var e = a.indexOf("?");
  173. 0 < e && (a = a.substring(0, e));
  174. e = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(a.replace(/(\/|\\\\)$/, ""));
  175. if (!e) return null;
  176. e = e[2];
  177. return d && a.substring(a.length - d.length).toLowerCase() ===
  178. d.toLowerCase() ? e.substring(0, e.length - d.length) : e
  179. },
  180. dirname: function(a) {
  181. return a.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2")
  182. },
  183. gU: function(a, d) {
  184. d = d || "";
  185. var e = a.indexOf("?"),
  186. f = "";
  187. 0 < e && (f = a.substring(e), a = a.substring(0, e));
  188. e = a.lastIndexOf(".");
  189. return 0 > e ? a + d + f : a.substring(0, e) + d + f
  190. },
  191. qs: function(a, d, e) {
  192. if (0 === d.indexOf(".")) return this.gU(a, d);
  193. var f = a.indexOf("?"),
  194. g = "";
  195. e = e ? this.Hn(a) : "";
  196. 0 < f && (g = a.substring(f), a = a.substring(0, f));
  197. f = a.lastIndexOf("/");
  198. return a.substring(0, 0 >= f ? 0 : f + 1) + d + e + g
  199. }
  200. };
  201. b.Z = {
  202. BR: {},
  203. hB: {},
  204. M4: {},
  205. vo: {},
  206. BD: "",
  207. lka: "",
  208. td: {},
  209. DC: function() {
  210. return window.XMLHttpRequest ? new window.XMLHttpRequest : new ActiveXObject("MSXML2.XMLHTTP")
  211. },
  212. UQ: function(a) {
  213. var d = a[0],
  214. e = a[1],
  215. f = a[2],
  216. g = ["", null, null];
  217. if (1 === a.length) g[1] = d instanceof Array ? d : [d];
  218. else if (2 === a.length) "function" === typeof e ? (g[1] = d instanceof Array ? d : [d], g[2] = e) : (g[0] = d || "", g[1] = e instanceof Array ? e : [e]);
  219. else if (3 === a.length) g[0] = d || "", g[1] = e instanceof Array ? e : [e], g[2] = f;
  220. else throw "arguments error to load js!";
  221. return g
  222. },
  223. oW: function(a, d, e) {
  224. var f = this,
  225. g = f.BR,
  226. h = f.UQ(arguments),
  227. k = h[0],
  228. m = h[1],
  229. h = h[2]; - 1 < navigator.userAgent.indexOf("Trident/5") ? f.HR(k, m, 0, h) : b.async.map(m, function(a, d, e) {
  230. a = b.path.join(k, a);
  231. if (g[a]) return e(null);
  232. f.EP(a, !1, e)
  233. }, h)
  234. },
  235. pW: function(a, d, e) {
  236. var f = this.O4(),
  237. g = this.UQ(arguments);
  238. this.oW(g[0], g[1], function(a) {
  239. if (a) throw a;
  240. f.parentNode.removeChild(f);
  241. if (g[2]) g[2]()
  242. })
  243. },
  244. EP: function(a, d, e) {
  245. var f = document,
  246. g = b.ic("script");
  247. g.async = d;
  248. this.BR[a] = !0;
  249. b.pb.Ee.noCache && "string" === typeof a ? this.QR.test(a) ? g.src =
  250. a + "\x26_t\x3d" + (new Date - 0) : g.src = a + "?_t\x3d" + (new Date - 0) : g.src = a;
  251. b.$a(g, "load", function() {
  252. g.parentNode.removeChild(g);
  253. this.removeEventListener("load", arguments.callee, !1);
  254. e()
  255. }, !1);
  256. b.$a(g, "error", function() {
  257. g.parentNode.removeChild(g);
  258. e("Load " + a + " failed!")
  259. }, !1);
  260. f.body.appendChild(g)
  261. },
  262. HR: function(a, d, e, f) {
  263. if (e >= d.length) f && f();
  264. else {
  265. var g = this;
  266. g.EP(b.path.join(a, d[e]), !1, function(h) {
  267. if (h) return f(h);
  268. g.HR(a, d, e + 1, f)
  269. })
  270. }
  271. },
  272. O4: function() {
  273. var a = document,
  274. d = a.getElementById("cocos2d_loadJsImg");
  275. if (!d) {
  276. d =
  277. b.ic("img");
  278. b.JR && (d.src = b.JR);
  279. a = a.getElementById(b.pb.Ee.id);
  280. a.style.backgroundColor = "black";
  281. a.parentNode.appendChild(d);
  282. var e = getComputedStyle ? getComputedStyle(a) : a.currentStyle;
  283. e || (e = {
  284. width: a.width,
  285. height: a.height
  286. });
  287. d.style.left = a.offsetLeft + (parseFloat(e.width) - d.width) / 2 + "px";
  288. d.style.top = a.offsetTop + (parseFloat(e.height) - d.height) / 2 + "px";
  289. d.style.position = "absolute"
  290. }
  291. return d
  292. },
  293. cD: function(a, d) {
  294. if (b.rR) require("fs").jsa(a, function(a, e) {
  295. a ? d(a) : d(null, e.toString())
  296. });
  297. else {
  298. var e = this.DC(),
  299. f = "load " +
  300. a + " failed!";
  301. e.open("GET", a, !0);
  302. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (e.setRequestHeader("Accept-Charset", "utf-8"), e.onreadystatechange = function() {
  303. 4 === e.readyState && (200 === e.status ? d(null, e.responseText) : d(f))
  304. }) : (e.overrideMimeType && e.overrideMimeType("text/plain; charset\x3dutf-8"), e.onload = function() {
  305. 4 === e.readyState && (200 === e.status ? d(null, e.responseText) : d(f))
  306. });
  307. e.send(null)
  308. }
  309. },
  310. IR: function(a) {
  311. if (b.rR) return require("fs").ksa(a).toString();
  312. var d = this.DC();
  313. d.open("GET",
  314. a, !1);
  315. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? d.setRequestHeader("Accept-Charset", "utf-8") : d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dutf-8");
  316. d.send(null);
  317. return 4 === !d.readyState || 200 !== d.status ? null : d.responseText
  318. },
  319. zba: function(a, d) {
  320. var e = new XMLHttpRequest;
  321. e.open("GET", a, !0);
  322. e.responseType = "arraybuffer";
  323. e.onload = function() {
  324. var f = e.response;
  325. f && (window.Uqa = f);
  326. 4 === e.readyState && (200 === e.status ? d(null, e.response) : d("load " + a + " failed!"))
  327. };
  328. e.send(null)
  329. },
  330. qW: function(a, d) {
  331. this.cD(a, function(e, f) {
  332. if (e) d(e);
  333. else {
  334. try {
  335. var g = JSON.parse(f)
  336. } catch (h) {
  337. throw "parse json [" + a + "] failed : " + h;
  338. }
  339. d(null, g)
  340. }
  341. })
  342. },
  343. vP: function(a) {
  344. return null != /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(a)
  345. },
  346. at: function(a, d, e) {
  347. function f() {
  348. this.removeEventListener("error", f, !1);
  349. k.crossOrigin && "anonymous" === k.crossOrigin.toLowerCase() ? (h.Mn = !1, m.Ad(a), b.Z.at(a, h, e)) : "function" === typeof e && e("load image failed")
  350. }
  351. function g() {
  352. this.removeEventListener("load", g, !1);
  353. this.removeEventListener("error",
  354. f, !1);
  355. b.Z.td[a] = k;
  356. e && e(null, k)
  357. }
  358. var h = {
  359. Mn: !0
  360. };
  361. void 0 !== e ? h.Mn = null === d.Mn ? h.Mn : d.Mn : void 0 !== d && (e = d);
  362. var k = this.sf(a);
  363. if (k) return e && e(null, k), k;
  364. k = new Image;
  365. h.Mn && "file://" !== location.origin && (k.crossOrigin = "Anonymous");
  366. var m = this;
  367. b.$a(k, "load", g);
  368. b.$a(k, "error", f);
  369. k.src = a;
  370. return k
  371. },
  372. P4: function(a, d, e) {
  373. var f = this,
  374. g = null,
  375. h = a.type;
  376. h ? (h = "." + h.toLowerCase(), g = a.src ? a.src : a.name + h) : (g = a, h = b.path.Hn(g));
  377. if (d = f.sf(g)) return e(null, d);
  378. d = null;
  379. h && (d = f.hB[h.toLowerCase()]);
  380. if (!d) return b.error("loader for [" +
  381. h + "] not exists!"), e();
  382. h = d.xK ? d.xK() : f.BD;
  383. h = f.S$(h, g);
  384. b.pb.Ee.noCache && "string" === typeof h && (h = f.QR.test(h) ? h + ("\x26_t\x3d" + (new Date - 0)) : h + ("?_t\x3d" + (new Date - 0)));
  385. d.load(h, g, a, function(a, d) {
  386. a ? (b.log(a), f.td[g] = null, delete f.td[g], e()) : (f.td[g] = d, e(null, d))
  387. })
  388. },
  389. QR: /\?/,
  390. S$: function(a, d) {
  391. var e = this.M4,
  392. f = b.path;
  393. if (void 0 !== a && void 0 === d) {
  394. d = a;
  395. var g = f.Hn(d),
  396. g = g ? g.toLowerCase() : "";
  397. a = (g = this.hB[g]) ? g.xK ? g.xK() : this.BD : this.BD
  398. }
  399. d = b.path.join(a || "", d);
  400. if (d.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) {
  401. if (e[d]) return e[d];
  402. f = f.Hn(d) || "";
  403. d = e[d] = d.substring(0, d.length - f.length) + "_" + b.fa.language + f
  404. }
  405. return d
  406. },
  407. load: function(a, d, e) {
  408. var f = this,
  409. g = arguments.length;
  410. if (0 === g) throw "arguments error!";
  411. 3 === g ? "function" === typeof d && (d = "function" === typeof e ? {
  412. Xn: d,
  413. En: e
  414. } : {
  415. En: d,
  416. B7: e
  417. }) : 2 === g ? "function" === typeof d && (d = {
  418. En: d
  419. }) : 1 === g && (d = {});
  420. a instanceof Array || (a = [a]);
  421. g = new aa(a, 0, function(a, e, g, n) {
  422. f.P4(a, e, function(a) {
  423. if (a) return g(a);
  424. var e = Array.prototype.slice.call(arguments, 1);
  425. d.Xn && d.Xn.call(d.qwa, e[0], n.size, n.vK);
  426. g(null, e[0])
  427. })
  428. }, d.En,
  429. d.B7);
  430. g.As();
  431. return g
  432. },
  433. eR: function(a, d) {
  434. var e = this.vo,
  435. f = [],
  436. g;
  437. for (g in a) {
  438. var h = a[g];
  439. e[g] = h;
  440. f.push(h)
  441. }
  442. this.load(f, d)
  443. },
  444. Oqa: function(a, d) {
  445. var e = this,
  446. f = e.sf(a);
  447. f ? e.eR(f.filenames, d) : e.load(a, function(a, f) {
  448. e.eR(f[0].filenames, d)
  449. })
  450. },
  451. Bj: function(a, d) {
  452. if (a && d) {
  453. if ("string" === typeof a) return this.hB[a.trim().toLowerCase()] = d;
  454. for (var e = 0, f = a.length; e < f; e++) this.hB["." + a[e].trim().toLowerCase()] = d
  455. }
  456. },
  457. sf: function(a) {
  458. return this.td[a] || this.td[this.vo[a]]
  459. },
  460. Ad: function(a) {
  461. var d = this.td,
  462. e = this.vo;
  463. delete d[a];
  464. delete d[e[a]];
  465. delete e[a]
  466. },
  467. tsa: function() {
  468. var a = this.td,
  469. d = this.vo,
  470. e;
  471. for (e in a) delete a[e];
  472. for (e in d) delete d[e]
  473. }
  474. };
  475. b.Aw = function() {
  476. var a = arguments,
  477. d = a.length;
  478. if (1 > d) return "";
  479. var e = a[0],
  480. f = !0;
  481. "object" === typeof e && (f = !1);
  482. for (var g = 1; g < d; ++g) {
  483. var h = a[g];
  484. if (f)
  485. for (;;) {
  486. var k = null;
  487. if ("number" === typeof h && (k = e.match(/(%d)|(%s)/))) {
  488. e = e.replace(/(%d)|(%s)/, h);
  489. break
  490. }
  491. e = (k = e.match(/%s/)) ? e.replace(/%s/, h) : e + (" " + h);
  492. break
  493. } else e += " " + h
  494. }
  495. return e
  496. };
  497. (function() {
  498. function a() {
  499. b.ua && b.pb.dv && b.ua.dispatchEvent(b.pb.dv);
  500. b.pb.Oo && (window.cancelAnimationFrame(b.pb.Oo), b.pb.rI())
  501. }
  502. function d() {
  503. b.ua && b.pb.cv && b.ua.dispatchEvent(b.pb.cv)
  504. }
  505. var e = window,
  506. f, g;
  507. b.sj(document.hidden) ? b.sj(document.mozHidden) ? b.sj(document.msHidden) ? b.sj(document.webkitHidden) || (f = "webkitHidden", g = "webkitvisibilitychange") : (f = "msHidden", g = "msvisibilitychange") : (f = "mozHidden", g = "mozvisibilitychange") : (f = "hidden", g = "visibilitychange");
  508. f ? b.$a(document, g, function() {
  509. document[f] ? d() :
  510. a()
  511. }, !1) : (b.$a(e, "blur", d, !1), b.$a(e, "focus", a, !1)); - 1 < navigator.userAgent.indexOf("MicroMessenger") && (e.onfocus = function() {
  512. a()
  513. });
  514. "onpageshow" in window && "onpagehide" in window && (b.$a(e, "pagehide", d, !1), b.$a(e, "pageshow", a, !1));
  515. g = e = null
  516. })();
  517. b.log = b.warn = b.error = b.assert = function() {};
  518. b.sU = function(a, d) {
  519. for (var e = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"], f = null, g = 0; g < e.length; ++g) {
  520. try {
  521. f = a.getContext(e[g], d)
  522. } catch (h) {}
  523. if (f) break
  524. }
  525. return f
  526. };
  527. b.C4 = function(a, d) {
  528. b.Jb = 0;
  529. b.ya = 1;
  530. b.fa = {};
  531. var e = b.fa;
  532. e.IC = !0;
  533. e.v_ = "en";
  534. e.Sga = "zh";
  535. e.Uga = "fr";
  536. e.Xga = "it";
  537. e.Vga = "de";
  538. e.dha = "es";
  539. e.Tga = "du";
  540. e.cha = "ru";
  541. e.Zga = "ko";
  542. e.Yga = "ja";
  543. e.Wga = "hu";
  544. e.bha = "pt";
  545. e.Rga = "ar";
  546. e.$ga = "no";
  547. e.aha = "pl";
  548. e.wq = "iOS";
  549. e.My = "Android";
  550. e.b0 = "Windows";
  551. e.wha = "Marmalade";
  552. e.$_ = "Linux";
  553. e.uha = "Bada";
  554. e.vha = "Blackberry";
  555. e.RE = "OS X";
  556. e.zha = "WP8";
  557. e.yha = "WINRT";
  558. e.a0 = "Unknown";
  559. e.VO = 0;
  560. e.Pga = 1;
  561. e.Ffa = 2;
  562. e.via = 3;
  563. e.gha = 4;
  564. e.eha = 5;
  565. e.Ofa = 6;
  566. e.Pfa = 7;
  567. e.fha = 8;
  568. e.kha = 9;
  569. e.Bga = 10;
  570. e.$ha = 11;
  571. e.Dha = 12;
  572. e.xia = 13;
  573. e.wia =
  574. 14;
  575. e.E_ = 100;
  576. e.CZ = 101;
  577. e.by = "wechat";
  578. e.EM = "androidbrowser";
  579. e.co = "ie";
  580. e.hE = "qqbrowser";
  581. e.GM = "mqqbrowser";
  582. e.ay = "ucbrowser";
  583. e.DM = "360browser";
  584. e.FM = "baiduboxapp";
  585. e.gE = "baidubrowser";
  586. e.Sfa = "maxthon";
  587. e.HM = "opera";
  588. e.IM = "oupeng";
  589. e.mq = "miuibrowser";
  590. e.bo = "firefox";
  591. e.eo = "safari";
  592. e.ao = "chrome";
  593. e.XY = "liebao";
  594. e.Tfa = "qzone";
  595. e.JM = "sogou";
  596. e.YY = "unknown";
  597. e.$aa = !1;
  598. var f = window,
  599. g = f.navigator,
  600. h = document,
  601. k = h.documentElement,
  602. m = g.userAgent.toLowerCase();
  603. e.Mk = -1 !== m.indexOf("mobile") || -1 !== m.indexOf("android");
  604. e.platform = e.Mk ?
  605. e.E_ : e.CZ;
  606. var n = g.language,
  607. n = (n = n ? n : g.browserLanguage) ? n.split("-")[0] : e.v_;
  608. e.language = n;
  609. var n = e.YY,
  610. p = m.match(/sogou|qzone|liebao|micromessenger|qqbrowser|ucbrowser|360 aphone|360browser|baiduboxapp|baidubrowser|maxthon|trident|oupeng|opera|miuibrowser|firefox/i) || m.match(/chrome|safari/i);
  611. p && 0 < p.length ? (n = p[0], "micromessenger" === n ? n = e.by : "safari" === n && m.match(/android.*applewebkit/) ? n = e.EM : "trident" === n ? n = e.co : "360 aphone" === n && (n = e.DM)) : m.indexOf("iphone") && m.indexOf("mobile") && (n = "safari");
  612. e.di =
  613. n;
  614. n = m.match(/(iPad|iPhone|iPod)/i) ? !0 : !1;
  615. m = m.match(/android/i) || g.platform.match(/android/i) ? !0 : !1;
  616. p = e.a0; - 1 !== g.appVersion.indexOf("Win") ? p = e.b0 : n ? p = e.wq : -1 !== g.appVersion.indexOf("Mac") ? p = e.RE : -1 !== g.appVersion.indexOf("X11") && -1 === g.appVersion.indexOf("Linux") ? p = e.xha : m ? p = e.My : -1 !== g.appVersion.indexOf("Linux") && (p = e.$_);
  617. e.xj = p;
  618. e.Ija = -1 < [e.gE, e.HM, e.bo, e.ao, e.FM, e.eo, e.ay, e.hE, e.GM, e.co].indexOf(e.di);
  619. (function(a, e) {
  620. var g = e[d.tx] - 0;
  621. if (isNaN(g) || 2 < g || 0 > g) g = 0;
  622. var h = [a.My],
  623. k = [],
  624. m = b.ic("canvas");
  625. b.W =
  626. b.Jb;
  627. b.Xv = !1;
  628. var n = f.WebGLRenderingContext;
  629. if (2 === g || 0 === g && n && -1 === h.indexOf(a.xj) && -1 === k.indexOf(a.di)) try {
  630. b.sU(m, {
  631. stencil: !0,
  632. preserveDrawingBuffer: !0
  633. }) && (b.W = b.ya, b.Xv = !0)
  634. } catch (p) {}
  635. if (1 === g || 0 === g && !1 === b.Xv) try {
  636. m.getContext("2d"), b.W = b.Jb, b.Xv = !0
  637. } catch (s) {}
  638. })(e, a);
  639. e.X2 = function() {
  640. var a = document.createElement("canvas");
  641. a.width = 1;
  642. a.height = 1;
  643. a = a.getContext("2d");
  644. a.fillStyle = "#000";
  645. a.fillRect(0, 0, 1, 1);
  646. a.globalCompositeOperation = "multiply";
  647. var d = document.createElement("canvas");
  648. d.width = 1;
  649. d.height =
  650. 1;
  651. var e = d.getContext("2d");
  652. e.fillStyle = "#fff";
  653. e.fillRect(0, 0, 1, 1);
  654. a.drawImage(d, 0, 0, 1, 1);
  655. return 0 === a.getImageData(0, 0, 1, 1).data[0]
  656. };
  657. e.DB = e.X2();
  658. try {
  659. e.cJ = !!(f.AudioContext || f.webkitAudioContext || f.mozAudioContext)
  660. } catch (s) {
  661. e.cJ = !1
  662. }
  663. try {
  664. var t = e.localStorage = f.localStorage;
  665. t.setItem("storage", "");
  666. t.removeItem("storage");
  667. t = null
  668. } catch (v) {
  669. "SECURITY_ERR" !== v.name && "QuotaExceededError" !== v.name || b.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"), e.localStorage =
  670. function() {}
  671. }
  672. t = e.VJ = {
  673. canvas: !0
  674. };
  675. b.W === b.ya && (t.opengl = !0);
  676. if (void 0 !== k.ontouchstart || void 0 !== h.ontouchstart || g.msPointerEnabled) t.touches = !0;
  677. void 0 !== k.onmouseup && (t.mouse = !0);
  678. void 0 !== k.onkeyup && (t.keyboard = !0);
  679. if (f.DeviceMotionEvent || f.DeviceOrientationEvent) t.accelerometer = !0;
  680. e.uma = function() {};
  681. e.rla = function() {};
  682. e.Ssa = function() {};
  683. e.Aka = function() {};
  684. e.Vpa = function(a) {
  685. return a ? !0 : !1
  686. };
  687. e.pla = function() {
  688. var a;
  689. a = "" + ("isMobile : " + this.Mk + "\r\n");
  690. a += "language : " + this.language + "\r\n";
  691. a += "browserType : " +
  692. this.di + "\r\n";
  693. a += "capabilities : " + JSON.stringify(this.VJ) + "\r\n";
  694. a += "os : " + this.xj + "\r\n";
  695. a += "platform : " + this.platform + "\r\n";
  696. b.log(a)
  697. };
  698. e.xra = function(a) {
  699. window.open(a)
  700. }
  701. };
  702. b.rha = 0;
  703. b.sha = 1;
  704. b.pha = 2;
  705. b.qha = 3;
  706. b.jl = null;
  707. b.A = null;
  708. b.ab = null;
  709. b.z3 = null;
  710. b.jB = !1;
  711. b.MS = !1;
  712. b.l6 = function(a) {
  713. var d, e;
  714. if (!b.MS) {
  715. b.MS = !0;
  716. var f = window,
  717. g = b.Rb(a) || b.Rb("#" + a),
  718. h;
  719. b.pb.CS();
  720. "CANVAS" === g.tagName ? (d = d || g.width, e = e || g.height, h = b.container = b.ic("DIV"), a = b.ab = g, a.parentNode.insertBefore(h, a), a.WT(h), h.setAttribute("id", "Cocos2dGameContainer")) : ("DIV" !== g.tagName && b.log("Warning: target element is not a DIV or CANVAS"), d = d || g.clientWidth, e = e || g.clientHeight, h = b.container = g, a = b.ab = b.Rb(b.ic("CANVAS")), g.appendChild(a));
  721. a.OT("gameCanvas");
  722. a.setAttribute("width", d || 480);
  723. a.setAttribute("height",
  724. e || 320);
  725. a.setAttribute("tabindex", 99);
  726. a.style.outline = "none";
  727. g = h.style;
  728. g.width = (d || 480) + "px";
  729. g.height = (e || 320) + "px";
  730. g.margin = "0 auto";
  731. g.position = "relative";
  732. g.overflow = "hidden";
  733. h.top = "100%";
  734. b.W === b.ya && (b.A = b.Owa = b.sU(a, {
  735. stencil: !0,
  736. preserveDrawingBuffer: !0,
  737. antialias: !b.fa.Mk,
  738. alpha: !1
  739. }));
  740. b.A ? (f.gl = b.A, b.jl = new b.NZ(b.A), b.jB = !0, b.Xa.D4(), b.le.rl()) : (b.A = new b.nq(a.getContext("2d")), b.jl = b.$M ? new b.$M(b.A) : null);
  741. b.z3 = h;
  742. b.log(b.xE);
  743. b.U5();
  744. b.fa.Mk && (d = b.ic("style"), d.type = "text/css", document.body.appendChild(d),
  745. d.textContent = "body,canvas,div{ -moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;-webkit-tap-highlight-color:rgba(0,0,0,0);}");
  746. b.view = b.vE.aH();
  747. b.aW.nca(b.ab);
  748. b.P = b.jb.aH();
  749. b.P.OD && b.P.OD(b.view);
  750. b.ld = b.P.Fa();
  751. b.eta = new b.Uy;
  752. b.Wba = new b.o0
  753. }
  754. };
  755. b.pG = function() {
  756. if (b.W !== b.ya) throw "This feature supports WebGL render mode only.";
  757. };
  758. b.pR = !1;
  759. b.U5 = function() {
  760. b.pR = !1;
  761. b.ab.oncontextmenu = function() {
  762. if (!b.pR) return !1
  763. }
  764. };
  765. b.pb = {
  766. AZ: 0,
  767. yZ: 1,
  768. lga: 2,
  769. UM: 3,
  770. zZ: 4,
  771. mga: 5,
  772. xZ: 6,
  773. yE: "game_on_hide",
  774. ly: "game_on_show",
  775. cv: null,
  776. dv: null,
  777. rja: [],
  778. xh: {
  779. tK: "engineDir",
  780. Rka: "dependencies",
  781. xw: "debugMode",
  782. sea: "showFPS",
  783. Bw: "frameRate",
  784. id: "id",
  785. tx: "renderMode",
  786. fba: "jsList",
  787. E7: "classReleaseMode"
  788. },
  789. fS: !1,
  790. eB: !1,
  791. Ye: !0,
  792. Oo: null,
  793. wH: null,
  794. PQ: null,
  795. Ee: null,
  796. wL: null,
  797. sra: null,
  798. Tta: function(a) {
  799. this.Ee[this.xh.Bw] = a;
  800. this.Oo && window.cancelAnimationFrame(this.Oo);
  801. this.Ye = !0;
  802. this.CS();
  803. this.rI()
  804. },
  805. CS: function() {
  806. this.wH = new Date;
  807. this.PQ = 1E3 / b.pb.Ee[b.pb.xh.Bw];
  808. b.fa.xj === b.fa.wq &&
  809. b.fa.di === b.fa.by || 60 !== b.pb.Ee[b.pb.xh.Bw] ? (window.JL = this.ZS, window.cancelAnimationFrame = this.GP) : (window.JL = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || this.ZS, window.cancelAnimationFrame = window.cancelAnimationFrame || window.cancelRequestAnimationFrame || window.msCancelRequestAnimationFrame || window.mozCancelRequestAnimationFrame || window.oCancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame ||
  810. window.msCancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.oCancelAnimationFrame || this.GP)
  811. },
  812. ZS: function(a) {
  813. var d = (new Date).getTime(),
  814. e = Math.max(0, b.pb.PQ - (d - b.pb.wH)),
  815. f = window.setTimeout(function() {
  816. a()
  817. }, e);
  818. b.pb.wH = d + e;
  819. return f
  820. },
  821. GP: function(a) {
  822. window.clearTimeout(a)
  823. },
  824. rI: function() {
  825. var a = this,
  826. d, e = b.P;
  827. e.cda(a.Ee[a.xh.sea]);
  828. d = function() {
  829. a.Ye || (e.Cba(), a.Oo && window.cancelAnimationFrame(a.Oo), a.Oo = window.JL(d))
  830. };
  831. window.JL(d);
  832. a.Ye = !1
  833. },
  834. Rsa: function() {
  835. b.P.KW(0);
  836. b.pw && b.pw.end();
  837. b.pb.wL()
  838. },
  839. Jca: function(a) {
  840. function d() {
  841. a && (e.Ee[e.xh.id] = a);
  842. e.fS || e.bca(function() {
  843. e.eB = !0
  844. });
  845. b.Xv && (e.Y2 = setInterval(function() {
  846. e.eB && (b.l6(e.Ee[e.xh.id]), e.rI(), e.cv = e.cv || new b.ko(e.yE), e.cv.setUserData(e), e.dv = e.dv || new b.ko(e.ly), e.dv.setUserData(e), e.wL(), clearInterval(e.Y2))
  847. }, 10))
  848. }
  849. var e = this;
  850. document.body ? d() : b.$a(window, "load", function() {
  851. this.removeEventListener("load", arguments.callee, !1);
  852. d()
  853. }, !1)
  854. },
  855. w4: function() {
  856. function a(a) {
  857. a[d.tK] = a[d.tK] || "frameworks/cocos2d-html5";
  858. null ==
  859. a[d.xw] && (a[d.xw] = 0);
  860. a[d.Bw] = a[d.Bw] || 60;
  861. null == a[d.tx] && (a[d.tx] = 1);
  862. return a
  863. }
  864. var d = this.xh;
  865. if (document.ccConfig) this.Ee = a(document.ccConfig);
  866. else try {
  867. for (var e = document.getElementsByTagName("script"), f = 0; f < e.length; f++) {
  868. var g = e[f].getAttribute("cocos");
  869. if ("" === g || g) break
  870. }
  871. var h, k, m;
  872. if (f < e.length) {
  873. if (h = e[f].src) m = /(.*)\//.exec(h)[0], b.Z.BD = m, h = b.path.join(m, "project.json");
  874. k = b.Z.IR(h)
  875. }
  876. k || (k = b.Z.IR("project.json"));
  877. var n = JSON.parse(k);
  878. this.Ee = a(n || {})
  879. } catch (p) {
  880. b.log("Failed to read or parse project.json"),
  881. this.Ee = a({})
  882. }
  883. b.C4(this.Ee, d)
  884. },
  885. J4: {},
  886. WQ: function(a, d, e) {
  887. var f = this.J4;
  888. if (f[d]) return null;
  889. e = e || "";
  890. var g = [],
  891. h = a[d];
  892. if (!h) throw "can not find module [" + d + "]";
  893. d = b.path;
  894. for (var k = 0, m = h.length; k < m; k++) {
  895. var n = h[k];
  896. if (!f[n]) {
  897. var p = d.Hn(n);
  898. p ? ".js" === p.toLowerCase() && g.push(d.join(e, n)) : (p = this.WQ(a, n, e)) && (g = g.concat(p));
  899. f[n] = 1
  900. }
  901. }
  902. return g
  903. },
  904. bca: function(a) {
  905. var d = this,
  906. e = d.Ee,
  907. f = d.xh,
  908. g = e[f.tK],
  909. h = b.Z;
  910. if (!b.Xv) throw "The renderer doesn't support the renderMode " + e[f.tx];
  911. d.fS = !0;
  912. var k = e[f.fba] || [];
  913. b.sa ? h.pW("", k, function(e) {
  914. if (e) throw e;
  915. d.eB = !0;
  916. a && a()
  917. }) : (f = b.path.join(g, "moduleConfig.json"), h.qW(f, function(f, h) {
  918. if (f) throw f;
  919. var p = e.modules || [],
  920. s = h.module,
  921. t = [];
  922. b.W === b.ya ? p.splice(0, 0, "shaders") : 0 > p.indexOf("core") && p.splice(0, 0, "core");
  923. for (var v = 0, w = p.length; v < w; v++) {
  924. var x = d.WQ(s, p[v], g);
  925. x && (t = t.concat(x))
  926. }
  927. if (b.fa.IC)
  928. for (v = 0, w = k.length; v < w; v++) k[v] = "res/" + k[v];
  929. t = t.concat(k);
  930. b.Z.pW(t, function(e) {
  931. if (e) throw e;
  932. d.eB = !0;
  933. a && a()
  934. })
  935. }))
  936. }
  937. };
  938. b.pb.w4();
  939. Function.prototype.bind = Function.prototype.bind || function(a) {
  940. function d() {
  941. return g.apply(this instanceof e && a ? this : a, f.concat(Array.prototype.slice.call(arguments)))
  942. }
  943. function e() {}
  944. if (!b.Ie(this)) throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
  945. var f = Array.prototype.slice.call(arguments, 1),
  946. g = this;
  947. e.prototype = this.prototype;
  948. d.prototype = new e;
  949. return d
  950. };
  951. b.o = {
  952. AM: "cc.ActionManager.addAction(): action must be non-null",
  953. TY: "cocos2d: removeAction: Target not found",
  954. Jfa: "cc.ActionManager.removeActionByTag(): an invalid tag",
  955. Kfa: "cc.ActionManager.removeActionByTag(): target must be non-null",
  956. RY: "cc.ActionManager.getActionByTag(): an invalid tag",
  957. SY: "cocos2d : getActionByTag(tag \x3d %s): Action not found",
  958. J7: "cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)",
  959. K7: "Expected 'data' dict, but not found. Config file: %s",
  960. L7: "Please load the resource first : %s",
  961. IZ: "cocos2d: Director: Error in gettimeofday",
  962. JZ: "cocos2d: Director: unrecognized projection",
  963. Aga: "cocos2d: Director: unrecognized projection",
  964. HZ: "cocos2d: Director: Error in gettimeofday",
  965. GZ: "running scene should not null",
  966. ZM: "the scene should not null",
  967. ow: "element type is wrong!",
  968. O0: "CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s",
  969. Kha: "cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.",
  970. P0: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.",
  971. M0: "cc.Scheduler.pauseTarget():target should be non-null",
  972. N0: "cc.Scheduler.resumeTarget():target should be non-null",
  973. L0: "cc.Scheduler.isTargetPaused():target should be non-null",
  974. N_: "getZOrder is deprecated. Please use getLocalZOrder instead.",
  975. X_: "setZOrder is deprecated. Please use setLocalZOrder instead.",
  976. L_: "RotationX !\x3d RotationY. Don't know which one to return",
  977. M_: "ScaleX !\x3d ScaleY. Don't know which one to return",
  978. lha: "An Node can't be added as a child of itself.",
  979. mha: "child already added. It can't be added again",
  980. I_: "child must be non-null",
  981. R_: "removeFromParentAndCleanup is deprecated. Use removeFromParent instead",
  982. J_: "boundingBox is deprecated. Use getBoundingBox instead",
  983. P_: "argument tag is an invalid tag",
  984. Q_: "cocos2d: removeChildByTag(tag \x3d %s): child not found!",
  985. oha: "removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead",
  986. Y_: "cc.Node.stopActionBy(): argument tag an invalid tag",
  987. K_: "cc.Node.getActionByTag(): argument tag is an invalid tag",
  988. T_: "resumeSchedulerAndActions is deprecated, please use resume instead.",
  989. O_: "pauseSchedulerAndActions is deprecated, please use pause instead.",
  990. H_: "Unknown callback function",
  991. S_: "child must be non-null",
  992. U_: "cc.Node.runAction(): action must be non-null",
  993. V_: "callback function must be non-null",
  994. W_: "interval must be positive",
  995. nha: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  996. UY: "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses",
  997. Nfa: "",
  998. BM: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",
  999. r2: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!",
  1000. t2: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!",
  1001. s2: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!",
  1002. q2: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil",
  1003. VZ: "Invalid parameter.",
  1004. wz: "Don't call this method if the event is for touch.",
  1005. B8: "Invalid scene graph priority!",
  1006. C8: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.",
  1007. G8: "Invalid listener type!",
  1008. H8: "Can't set fixed priority with scene graph based listener.",
  1009. D8: "Invalid parameters.",
  1010. E8: "listener must be a cc.EventListener object when adding a fixed priority listener",
  1011. F8: "The listener has been registered, please don't register it again.",
  1012. z_: "parameters should not be ending with null in Javascript",
  1013. A_: "Invalid index in MultiplexLayer switchTo message",
  1014. B_: "Invalid index in MultiplexLayer switchTo message",
  1015. y_: "cc.Layer.addLayer(): layer should be non-null",
  1016. OZ: "Resolution not valid",
  1017. PZ: "should set resolutionPolicy",
  1018. Laa: "The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s",
  1019. Dt: "cc.swap is being modified from original macro, please check usage",
  1020. ss: "WebGL error %s",
  1021. d7: "cocos2d: cc.AnimationCache: No animations were found in provided dictionary.",
  1022. e7: "cc.AnimationCache. Invalid animation format",
  1023. l7: "cc.AnimationCache.addAnimations(): File could not be found",
  1024. f7: "cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  1025. g7: "cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
  1026. h7: "cocos2d: cc.AnimationCache: None of the frames for animation '%s' were found in the cc.SpriteFrameCache. Animation is not being added to the Animation Cache.",
  1027. i7: "cocos2d: cc.AnimationCache: An animation in your dictionary refers to a frame which is not in the cc.SpriteFrameCache. Some or all of the frames for the animation '%s' may be missing.",
  1028. j7: "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",
  1029. k7: "cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
  1030. m7: "cc.AnimationCache.addAnimations(): Invalid texture file name",
  1031. i1: "cc.Sprite.reorderChild(): this child is not in children list",
  1032. d1: "cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",
  1033. l1: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",
  1034. m1: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",
  1035. k1: "setDisplayFrame is deprecated, please use setSpriteFrame instead.",
  1036. $0: "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
  1037. f1: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",
  1038. g1: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null",
  1039. h1: " is null, please check.",
  1040. e1: "cc.Sprite.initWithFile(): filename should be non-null",
  1041. n1: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",
  1042. j1: "cc.Sprite.reorderChild(): child should be non-null",
  1043. a1: "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",
  1044. b1: "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
  1045. Mha: "cc.Sprite.addChild(): child should be non-null",
  1046. p1: "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",
  1047. Qha: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  1048. Oha: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  1049. cO: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  1050. c1: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
  1051. Nha: "Sprite.initWithTexture(): Argument must be non-nil ",
  1052. o1: "Invalid spriteFrameName",
  1053. q1: "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",
  1054. Rha: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  1055. Pha: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  1056. T0: "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",
  1057. V0: "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",
  1058. W0: "cocos2d: WARNING: Not enough memory to resize the atlas",
  1059. Y0: "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",
  1060. X0: "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",
  1061. U0: "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",
  1062. Z0: "cc.SpriteBatchNode.addChild(): child should be non-null",
  1063. Dea: "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",
  1064. Eea: "cocos2d: WARNING: an alias with name %s already exists",
  1065. Cea: "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",
  1066. Jva: "cocos2d: cc.SpriteFrameCahce: Frame %s not found",
  1067. jY: "Please load the resource first : %s",
  1068. kY: "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",
  1069. Fea: "Argument must be non-nil",
  1070. gZ: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  1071. eZ: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  1072. cga: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",
  1073. dZ: "Sprite.initWithTexture(): Argument must be non-nil ",
  1074. bZ: "cc.Sprite.addChild(): child should be non-null",
  1075. dga: "Invalid spriteFrameName",
  1076. ega: "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",
  1077. hZ: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",
  1078. fZ: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",
  1079. cZ: "cc.SpriteBatchNode.addChild(): child should be non-null",
  1080. O1: "cocos2d: Could not open file: %s",
  1081. oO: "cc.TextureAtlas.insertQuad(): invalid totalQuads",
  1082. P1: "cc.TextureAtlas.initWithTexture():texture should be non-null",
  1083. Z1: "cc.TextureAtlas.updateQuad(): quad should be non-null",
  1084. a2: "cc.TextureAtlas.updateQuad(): Invalid index",
  1085. S1: "cc.TextureAtlas.insertQuad(): Invalid index",
  1086. T1: "cc.TextureAtlas.insertQuad(): Invalid index + amount",
  1087. Q1: "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",
  1088. R1: "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",
  1089. X1: "cc.TextureAtlas.removeQuadAtIndex(): Invalid index",
  1090. Y1: "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",
  1091. U1: "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",
  1092. V1: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",
  1093. W1: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",
  1094. Rea: "TextureCache:addPVRTCImage does not support on HTML5",
  1095. Pea: "TextureCache:addPVRTCImage does not support on HTML5",
  1096. Wea: "textureForKey is deprecated. Please use getTextureForKey instead.",
  1097. Qea: "addPVRImage does not support on HTML5",
  1098. Sea: "cocos2d: Couldn't add UIImage in TextureCache",
  1099. Uea: "cocos2d: '%s' id\x3d%s %s x %s",
  1100. rY: "cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s",
  1101. Vea: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",
  1102. Tea: "cc.Texture.addUIImage(): image should be non-null",
  1103. F1: "initWithETCFile does not support on HTML5",
  1104. J1: "initWithPVRFile does not support on HTML5",
  1105. L1: "initWithPVRTCData does not support on HTML5",
  1106. B1: "cc.Texture.addImage(): path should be non-null",
  1107. H1: "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",
  1108. I1: "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",
  1109. N1: "initWithString isn't supported on cocos2d-html5",
  1110. G1: "initWithETCFile does not support on HTML5",
  1111. K1: "initWithPVRFile does not support on HTML5",
  1112. M1: "initWithPVRTCData does not support on HTML5",
  1113. D1: "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",
  1114. A1: "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",
  1115. C1: "cc.Texture.addImage(): path should be non-null",
  1116. E1: "NSInternalInconsistencyException",
  1117. Qj: "Missing file: %s",
  1118. MW: "cc.radiansToDegress() should be called cc.radiansToDegrees()",
  1119. jF: "Rect width exceeds maximum margin: %s",
  1120. iF: "Rect height exceeds maximum margin: %s",
  1121. WZ: "If program goes here, there should be event in dispatch.",
  1122. XZ: "_inDispatch should be 1 here."
  1123. };
  1124. b.R4 = function(a) {
  1125. if (b.ab) {
  1126. var d = b.Q4,
  1127. e = document;
  1128. if (!d) {
  1129. var f = e.createElement("Div"),
  1130. d = f.style;
  1131. f.setAttribute("id", "logInfoDiv");
  1132. b.ab.parentNode.appendChild(f);
  1133. f.setAttribute("width", "200");
  1134. f.setAttribute("height", b.ab.height);
  1135. d.zIndex = "99999";
  1136. d.position = "absolute";
  1137. d.top = "0";
  1138. d.left = "0";
  1139. d = b.Q4 = e.createElement("textarea");
  1140. e = d.style;
  1141. d.setAttribute("rows", "20");
  1142. d.setAttribute("cols", "30");
  1143. d.setAttribute("disabled", !0);
  1144. f.appendChild(d);
  1145. e.backgroundColor = "transparent";
  1146. e.borderBottom = "1px solid #cccccc";
  1147. e.borderRightWidth = "0px";
  1148. e.borderLeftWidth = "0px";
  1149. e.borderTopWidth = "0px";
  1150. e.borderTopStyle = "none";
  1151. e.borderRightStyle = "none";
  1152. e.borderLeftStyle = "none";
  1153. e.padding = "0px";
  1154. e.margin = 0
  1155. }
  1156. d.value = d.value + a + "\r\n";
  1157. d.scrollTop = d.scrollHeight
  1158. }
  1159. };
  1160. b.NQ = function(a) {
  1161. if (b.Ww(a)) try {
  1162. return JSON.stringify(a)
  1163. } catch (d) {
  1164. return ""
  1165. } else return a
  1166. };
  1167. b.x4 = function() {
  1168. var a = b.pb.Ee[b.pb.xh.xw],
  1169. d = b.pb;
  1170. if (a !== d.AZ) {
  1171. var e;
  1172. a > d.UM ? (e = b.R4.bind(b), b.error = function() {
  1173. e("ERROR : " + b.Aw.apply(b, arguments))
  1174. }, b.assert = function(a, d) {
  1175. if (!a && d) {
  1176. for (var h = 2; h < arguments.length; h++) d = d.replace(/(%s)|(%d)/, b.NQ(arguments[h]));
  1177. e("Assert: " + d)
  1178. }
  1179. }, a !== d.xZ && (b.warn = function() {
  1180. e("WARN : " + b.Aw.apply(b, arguments))
  1181. }), a === d.zZ && (b.log = function() {
  1182. e(b.Aw.apply(b, arguments))
  1183. })) : console && console.log.apply && (b.error = function() {
  1184. return console.error.apply(console, arguments)
  1185. },
  1186. b.assert = function(a, d) {
  1187. if (!a && d) {
  1188. for (var e = 2; e < arguments.length; e++) d = d.replace(/(%s)|(%d)/, b.NQ(arguments[e]));
  1189. throw d;
  1190. }
  1191. }, a !== d.UM && (b.warn = function() {
  1192. return console.warn.apply(console, arguments)
  1193. }), a === d.yZ && (b.log = function() {
  1194. return console.log.apply(console, arguments)
  1195. }))
  1196. }
  1197. };
  1198. b.x4();
  1199. b.Z.yba = function(a, d) {
  1200. var e = this,
  1201. f = this.DC(),
  1202. g = "load " + a + " failed!";
  1203. f.open("GET", a, !0);
  1204. /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (f.setRequestHeader("Accept-Charset", "x-user-defined"), f.onreadystatechange = function() {
  1205. if (4 === f.readyState && 200 === f.status) {
  1206. var a = b.BP(f.responseBody);
  1207. d(null, e.CB(a))
  1208. } else d(g)
  1209. }) : (f.overrideMimeType && f.overrideMimeType("text/plain; charset\x3dx-user-defined"), f.onload = function() {
  1210. 4 === f.readyState && 200 === f.status ? d(null, e.CB(f.responseText)) : d(g)
  1211. });
  1212. f.send(null)
  1213. };
  1214. b.Z.CB = function(a) {
  1215. if (!a) return null;
  1216. for (var d = new Uint8Array(a.length), e = 0; e < a.length; e++) d[e] = a.charCodeAt(e) & 255;
  1217. return d
  1218. };
  1219. b.Z.Pqa = function(a) {
  1220. var d = this.DC(),
  1221. e = "load " + a + " failed!";
  1222. d.open("GET", a, !1);
  1223. a = null;
  1224. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  1225. d.setRequestHeader("Accept-Charset", "x-user-defined");
  1226. d.send(null);
  1227. if (200 !== d.status) return b.log(e), null;
  1228. (d = b.BP(d.responseBody)) && (a = this.CB(d))
  1229. } else {
  1230. d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined");
  1231. d.send(null);
  1232. if (200 !== d.status) return b.log(e), null;
  1233. a = this.CB(d.responseText)
  1234. }
  1235. return a
  1236. };
  1237. var Uint8Array = Uint8Array || Array;
  1238. if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
  1239. var ba = b.ic("script");
  1240. ba.type = "text/vbscript";
  1241. ba.textContent = '\x3c!-- IEBinaryToArray_ByteStr --\x3e\r\nFunction IEBinaryToArray_ByteStr(Binary)\r\n IEBinaryToArray_ByteStr \x3d CStr(Binary)\r\nEnd Function\r\nFunction IEBinaryToArray_ByteStr_Last(Binary)\r\n Dim lastIndex\r\n lastIndex \x3d LenB(Binary)\r\n if lastIndex mod 2 Then\r\n IEBinaryToArray_ByteStr_Last \x3d Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n Else\r\n IEBinaryToArray_ByteStr_Last \x3d ""\r\n End If\r\nEnd Function\r\n';
  1242. document.body.appendChild(ba);
  1243. b.BP = function(a) {
  1244. for (var d = {}, e = 0; 256 > e; e++)
  1245. for (var f = 0; 256 > f; f++) d[String.fromCharCode(e + 256 * f)] = String.fromCharCode(e) + String.fromCharCode(f);
  1246. e = IEBinaryToArray_ByteStr(a);
  1247. a = IEBinaryToArray_ByteStr_Last(a);
  1248. return e.replace(/[\s\S]/g, function(a) {
  1249. return d[a]
  1250. }) + a
  1251. }
  1252. };
  1253. b = b || {};
  1254. b.JR = "data:image/gif;base64,R0lGODlhEAAQALMNAD8/P7+/vyoqKlVVVX9/fxUVFUBAQGBgYMDAwC8vL5CQkP///wAAAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAANACwAAAAAEAAQAAAEO5DJSau9OOvNex0IMnDIsiCkiW6g6BmKYlBFkhSUEgQKlQCARG6nEBwOgl+QApMdCIRD7YZ5RjlGpCUCACH5BAUAAA0ALAAAAgAOAA4AAAQ6kLGB0JA4M7QW0hrngRllkYyhKAYqKUGguAws0ypLS8JxCLQDgXAIDg+FRKIA6v0SAECCBpXSkstMBAAh+QQFAAANACwAAAAACgAQAAAEOJDJORAac6K1kDSKYmydpASBUl0mqmRfaGTCcQgwcxDEke+9XO2WkxQSiUIuAQAkls0n7JgsWq8RACH5BAUAAA0ALAAAAAAOAA4AAAQ6kMlplDIzTxWC0oxwHALnDQgySAdBHNWFLAvCukc215JIZihVIZEogDIJACBxnCSXTcmwGK1ar1hrBAAh+QQFAAANACwAAAAAEAAKAAAEN5DJKc4RM+tDyNFTkSQF5xmKYmQJACTVpQSBwrpJNteZSGYoFWjIGCAQA2IGsVgglBOmEyoxIiMAIfkEBQAADQAsAgAAAA4ADgAABDmQSVZSKjPPBEDSGucJxyGA1XUQxAFma/tOpDlnhqIYN6MEAUXvF+zldrMBAjHoIRYLhBMqvSmZkggAIfkEBQAADQAsBgAAAAoAEAAABDeQyUmrnSWlYhMASfeFVbZdjHAcgnUQxOHCcqWylKEohqUEAYVkgEAMfkEJYrFA6HhKJsJCNFoiACH5BAUAAA0ALAIAAgAOAA4AAAQ3kMlJq704611SKloCAEk4lln3DQgyUMJxCBKyLAh1EMRR3wiDQmHY9SQslyIQUMRmlmVTIyRaIgA7";
  1255. b.or = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAAgCAYAAAD9qabkAAAKQ2lDQ1BJQ0MgcHJvZmlsZQAAeNqdU3dYk/cWPt/3ZQ9WQtjwsZdsgQAiI6wIyBBZohCSAGGEEBJAxYWIClYUFRGcSFXEgtUKSJ2I4qAouGdBiohai1VcOO4f3Ke1fXrv7e371/u855zn/M55zw+AERImkeaiagA5UoU8Otgfj09IxMm9gAIVSOAEIBDmy8JnBcUAAPADeXh+dLA//AGvbwACAHDVLiQSx+H/g7pQJlcAIJEA4CIS5wsBkFIAyC5UyBQAyBgAsFOzZAoAlAAAbHl8QiIAqg0A7PRJPgUA2KmT3BcA2KIcqQgAjQEAmShHJAJAuwBgVYFSLALAwgCgrEAiLgTArgGAWbYyRwKAvQUAdo5YkA9AYACAmUIszAAgOAIAQx4TzQMgTAOgMNK/4KlfcIW4SAEAwMuVzZdL0jMUuJXQGnfy8ODiIeLCbLFCYRcpEGYJ5CKcl5sjE0jnA0zODAAAGvnRwf44P5Dn5uTh5mbnbO/0xaL+a/BvIj4h8d/+vIwCBAAQTs/v2l/l5dYDcMcBsHW/a6lbANpWAGjf+V0z2wmgWgrQevmLeTj8QB6eoVDIPB0cCgsL7SViob0w44s+/zPhb+CLfvb8QB7+23rwAHGaQJmtwKOD/XFhbnauUo7nywRCMW735yP+x4V//Y4p0eI0sVwsFYrxWIm4UCJNx3m5UpFEIcmV4hLpfzLxH5b9CZN3DQCshk/ATrYHtctswH7uAQKLDljSdgBAfvMtjBoLkQAQZzQyefcAAJO/+Y9AKwEAzZek4wAAvOgYXKiUF0zGCAAARKCBKrBBBwzBFKzADpzBHbzAFwJhBkRADCTAPBBCBuSAHAqhGJZBGVTAOtgEtbADGqARmuEQtMExOA3n4BJcgetwFwZgGJ7CGLyGCQRByAgTYSE6iBFijtgizggXmY4EImFINJKApCDpiBRRIsXIcqQCqUJqkV1II/ItchQ5jVxA+pDbyCAyivyKvEcxlIGyUQPUAnVAuagfGorGoHPRdDQPXYCWomvRGrQePYC2oqfRS+h1dAB9io5jgNExDmaM2WFcjIdFYIlYGibHFmPlWDVWjzVjHVg3dhUbwJ5h7wgkAouAE+wIXoQQwmyCkJBHWExYQ6gl7CO0EroIVwmDhDHCJyKTqE+0JXoS+cR4YjqxkFhGrCbuIR4hniVeJw4TX5NIJA7JkuROCiElkDJJC0lrSNtILaRTpD7SEGmcTCbrkG3J3uQIsoCsIJeRt5APkE+S+8nD5LcUOsWI4kwJoiRSpJQSSjVlP+UEpZ8yQpmgqlHNqZ7UCKqIOp9aSW2gdlAvU4epEzR1miXNmxZDy6Qto9XQmmlnafdoL+l0ugndgx5Fl9CX0mvoB+nn6YP0dwwNhg2Dx0hiKBlrGXsZpxi3GS+ZTKYF05eZyFQw1zIbmWeYD5hvVVgq9ip8FZHKEpU6lVaVfpXnqlRVc1U/1XmqC1SrVQ+rXlZ9pkZVs1DjqQnUFqvVqR1Vu6k2rs5Sd1KPUM9RX6O+X/2C+mMNsoaFRqCGSKNUY7fGGY0hFsYyZfFYQtZyVgPrLGuYTWJbsvnsTHYF+xt2L3tMU0NzqmasZpFmneZxzQEOxrHg8DnZnErOIc4NznstAy0/LbHWaq1mrX6tN9p62r7aYu1y7Rbt69rvdXCdQJ0snfU6bTr3dQm6NrpRuoW623XP6j7TY+t56Qn1yvUO6d3RR/Vt9KP1F+rv1u/RHzcwNAg2kBlsMThj8MyQY+hrmGm40fCE4agRy2i6kcRoo9FJoye4Ju6HZ+M1eBc+ZqxvHGKsNN5l3Gs8YWJpMtukxKTF5L4pzZRrmma60bTTdMzMyCzcrNisyeyOOdWca55hvtm82/yNhaVFnMVKizaLx5balnzLBZZNlvesmFY+VnlW9VbXrEnWXOss623WV2xQG1ebDJs6m8u2qK2brcR2m23fFOIUjynSKfVTbtox7PzsCuya7AbtOfZh9iX2bfbPHcwcEh3WO3Q7fHJ0dcx2bHC866ThNMOpxKnD6VdnG2ehc53zNRemS5DLEpd2lxdTbaeKp26fesuV5RruutK10/Wjm7ub3K3ZbdTdzD3Ffav7TS6bG8ldwz3vQfTw91jicczjnaebp8LzkOcvXnZeWV77vR5Ps5wmntYwbcjbxFvgvct7YDo+PWX6zukDPsY+Ap96n4e+pr4i3z2+I37Wfpl+B/ye+zv6y/2P+L/hefIW8U4FYAHBAeUBvYEagbMDawMfBJkEpQc1BY0FuwYvDD4VQgwJDVkfcpNvwBfyG/ljM9xnLJrRFcoInRVaG/owzCZMHtYRjobPCN8Qfm+m+UzpzLYIiOBHbIi4H2kZmRf5fRQpKjKqLupRtFN0cXT3LNas5Fn7Z72O8Y+pjLk722q2cnZnrGpsUmxj7Ju4gLiquIF4h/hF8ZcSdBMkCe2J5MTYxD2J43MC52yaM5zkmlSWdGOu5dyiuRfm6c7Lnnc8WTVZkHw4hZgSl7I/5YMgQlAvGE/lp25NHRPyhJuFT0W+oo2iUbG3uEo8kuadVpX2ON07fUP6aIZPRnXGMwlPUit5kRmSuSPzTVZE1t6sz9lx2S05lJyUnKNSDWmWtCvXMLcot09mKyuTDeR55m3KG5OHyvfkI/lz89sVbIVM0aO0Uq5QDhZML6greFsYW3i4SL1IWtQz32b+6vkjC4IWfL2QsFC4sLPYuHhZ8eAiv0W7FiOLUxd3LjFdUrpkeGnw0n3LaMuylv1Q4lhSVfJqedzyjlKD0qWlQyuCVzSVqZTJy26u9Fq5YxVhlWRV72qX1VtWfyoXlV+scKyorviwRrjm4ldOX9V89Xlt2treSrfK7etI66Trbqz3Wb+vSr1qQdXQhvANrRvxjeUbX21K3nShemr1js20zcrNAzVhNe1bzLas2/KhNqP2ep1/XctW/a2rt77ZJtrWv913e/MOgx0VO97vlOy8tSt4V2u9RX31btLugt2PGmIbur/mft24R3dPxZ6Pe6V7B/ZF7+tqdG9s3K+/v7IJbVI2jR5IOnDlm4Bv2pvtmne1cFoqDsJB5cEn36Z8e+NQ6KHOw9zDzd+Zf7f1COtIeSvSOr91rC2jbaA9ob3v6IyjnR1eHUe+t/9+7zHjY3XHNY9XnqCdKD3x+eSCk+OnZKeenU4/PdSZ3Hn3TPyZa11RXb1nQ8+ePxd07ky3X/fJ897nj13wvHD0Ivdi2yW3S609rj1HfnD94UivW2/rZffL7Vc8rnT0Tes70e/Tf/pqwNVz1/jXLl2feb3vxuwbt24m3Ry4Jbr1+Hb27Rd3Cu5M3F16j3iv/L7a/eoH+g/qf7T+sWXAbeD4YMBgz8NZD+8OCYee/pT/04fh0kfMR9UjRiONj50fHxsNGr3yZM6T4aeypxPPyn5W/3nrc6vn3/3i+0vPWPzY8Av5i8+/rnmp83Lvq6mvOscjxx+8znk98ab8rc7bfe+477rfx70fmSj8QP5Q89H6Y8en0E/3Pud8/vwv94Tz+4A5JREAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcAgcQLxxUBNp/AAAQZ0lEQVR42u2be3QVVZbGv1N17829eRLyIKAEOiISEtPhJTJAYuyBDmhWjAEx4iAGBhxA4wABbVAMWUAeykMCM+HRTcBRWkNH2l5moS0LCCrQTkYeQWBQSCAIgYRXEpKbW/XNH5zS4noR7faPEeu31l0h4dSpvc+t/Z199jkFWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhY/H9D/MR9qfKnLj/00U71aqfJn9+HCkCR/Wk36ddsgyJ/1wF4fkDfqqm9/gPsUeTnVr6a2xlQfnxdI7zs0W7irzD17Ytb2WT7EeNv/r4ox1O3Quf2QP2pgt9utwfout4FQE8AVBSlnaRmfvAURQkg2RlAbwB9AThlW5L0GaiKojhJhgOIBqDa7XaPrusdPtr5kQwF0BVAAoBIABRCKDd5aFUhRDAAw57eAOwAhKIoupft3zoqhB1AqLwuHIBut9uFt02qqvqRDJR2dAEQJj/BAOjn56dqmma+xiaECAEQAWAggLsB6A6HQ2iaZggBhBAqgEAAnQB0kzaEmT4hAITT6VQ8Ho/HJAKKECJQtr8LwD1y/A1/vcdfEUIEyfZ9AcQbYvZ942Px88L2UwlJR0dH0EMPPbRj5syZPUeNGrXR7Xb/641xIwJ1XY9NSUlZm52dfW+XLl1w8uRJzJ8//+OGhoYJqqqe1TSt1Wsm9NN1PSIqKmr12rVrR5WUlHy1bdu2AQCumWc3IYRD1/UwVVXnFRQUTIuNjUVzczN2797dWFJSkq8oymZd15sAGAEnFEUJ1nX9nzIzM1dnZmZGh4SE4OTJk5g5c+Zf29vbp9pstrMej6fVOyhIhgAYU1hY+B+hoaGoqKg4XVlZea+XTULTNFdCQsLGiRMnPuR2u3UhBOV9eeDAAWXTpk095DUe6WsoyRE5OTlr0tLSAux2O/bs2cO5c+e+pijKUpIXSHaQVAGkvPLKK++6XK4OksJLCFlXV2cvKSlJBFAjhU+x2WwhHo9nUHp6+urMzMy7wsLCUF9fjxdffPHjxsbGiTab7WuPx9NiEutOuq4PyMjI+M+srKyYqKgoHD58GDNmzNjq8XhyVFU9b/q+LH7hBAEYu3PnTlZVVRFAGgCX6f/tAHoOHDjwa0p27txp/JO9e/f+QM7cipw9nfL3kQBKt2zZQpJ87rnn6mQmoHilw2EACs+cOUOSrK+vZ1NTE0nyo48+IoBpxswoBcMJ4Ndjx471kOTFixe5d+9ekqTH42H//v13A4jyzpAURfEH0H/OnDnthu1z5sw558MmFUCPWbNmnaMP3nrrLZoyDmP8Hl68eDFJ8siRI9/Yc+zYMQKYKdtAztrTrl27xptRXV1NAKMAOAyBBBA/Y8aMdpLs6Ojgxx9//E37+++//29yvFXppwvAwMcee8xjtDHsuXLlCqOjo//ia3wsfpkoALqFhoZuIckJEyackimm3dQmEMDUmpoakmRISMhhAHOHDx/eQJIbN24kgKEyMAHAFRMTs2XXrl1saWkhSZ0kp0+ffhrAr3wEW/S8efOukORLL72kA1gKYMPWrVtJkk899dRJAHeYrgsEsIQkjx8/TgDvAPjd448/3kaSb7zxBmUa7vC6z53BwcFbSHL9+vU6Sc6aNes8gF5ewWAH0PfVV18lSQL4DMBGIcQ6AKtcLleBFC2jXtFt8ODBe0iyoqKCAJYByC8qKmJDQwOzsrK+MAmqo1OnTveHhoa+GRkZ+XZkZOSWiIiIvzgcjk9mzpypkWRmZuZpmbYbGV4AgPnNzc1sa2sjgN0A5iQmJtaSZHl5OQHcb/K3s81mW0uSTU1NBFAFYFbfvn1Pk+Tbb79NAA8IIVzW42/hByA+Pz/fLR/2ZXIda05NI/z9/TeR5J49ewhgqlxTrtI0jY2NjQQw3zTLuWJiYjaUlJToS5Ys6fjkk080kwDEeAmADcA9GzZsIElGRUW9CyAWwLApU6Y0kOSKFSsog9QICGdERMTGsrIyZmVlEcC9AB4IDw/fTpLbtm0jgN94CUAnAJmVlZVcs2aNZ/LkyRdJcvbs2b4EwAkgZfPmzTxw4AABFAN4BkC6vFeUSewcAO5duXIlSTIhIaEawGMAxgKYAmAGgCS73e5vrKVk/yGythANYEhCQsIhkly+fDkBpKqqGmL6DgIALDKN/3yZpVWQZGVlJQE8aPI3KiMjo5okV61aRQAjAPQBMPfIkSN0u90EUCBtsPiFEwpgbn19PdetW2fM5N4zQ9ekpKQqkty0aRMBpMjiWM6JEydIkoqirJUFJ6iq6pAPVy8A6cZMehMBUACEuVyuFwG8HBwcPEIWx367ZMkSjSQXLVrUJouTRorrkAHdA8BdQogsAOsKCwtJkmPGjDkvMw2bDDo/ADEjRoz4XylyFbm5uY0mAbjLyyZ/AOOrq6tZVlbWsWDBgo69e/eyoqKCgwcPPg4gSQaoIRbp27dvN7KF+tLSUr28vJwFBQXtMpvpYRIM7+wrAkDeqVOnePbsWQIoNKfzpiXPg8uXLydJJicnNwF4f+nSpW6STEtLq5fjYwhk1wkTJtSQ5Ouvv04AqTKj+N2xY8dIkgEBAW/Ie1v8wncRegwZMmQvSfbr12+3Ua33WqPfOWbMmP0kWVpaSgCDZAqcfejQIWNZsEGKgvnh9gfQb9myZd8nAEJVVZtMkUNk8CcNHTq0liR1XWdYWNhmH1mJIme80OnTp18x1rp5eXkEsNJms92Fb7e/IgEsvHz5Mp999tkmAI/l5uZeMC0B7vEqqAYAyL106RJJsra2lpWVld+sucePH38ZQG+5NncBeOrgwYMkqbe3t/Po0aOsra011wAWyl0H7x0JJ4DE+fPnu0kyPT29DsDdUrBuyNKEEAkAdpw/f/6GeoEM8GUmfwEgPCIiopwkGxsbabPZPgOw6L777vvm4p49e26VGYjFLxUhhD+ApLKyMp44ccIoVnXybgbgzkcfffRzklyzZg0BDJYCMMmoCwQFBXkLgLGWvvcWAgBToSsKwNPTp09vMR7UuLi4rwH0lgU8c/Db5ezbeeTIkRWzZ8++aMxu+fn5BPCADBwHgP4LFy701NXVEUAJgAnPP/98kyxMNgHo53A4zH77BQQETMvPz7+Um5vbBuAlAFMSExPPmdbVL0qh8Acw8fDhw5SCchVAEYAVb775JknyhRdeaJYztHfxMwLAaqNwCGC2FArv8x0hAHKNLGPKlCme5OTk/Zs3bzb7O0wKiiG8KXl5ed8IxenTp0mSR48e1UmyW7duWywBuD2xyQcgFECgoih+8H1gyJgZV5Lkyy+/3CbTRIePtl2HDBmyw1QBHyGDdXZdXR1JUghRKkXBjOMHCoBdpr0L3nvvPZLkF198wejo6O0A4lVVDTb74HQ6AwD8Wq7Jh8rgGgDgQ13XjVR8qaxJuADMbmlpYXl5uV5UVNRWUFDgfv/993Vj/ZydnU1c37eHXML4S3viAcQqitJD2l104cIFY8lTKsXSBWBMVVWVcd9yed2A1NTUQ6Zl00CvLMMOoHdubm6zFIlWOf5+PsY/Kj09vdrU11QAwwGsv3jxIk21m2DZr10I0RXAuAcffPBgaWkpV69eTYfDcdiwUxY0w6xw+flX8L1xApjevXv3lREREaW6rofB93aPDUDQpEmTMgHgtddeqwBwEd/utZvpqK6uPgEAcXFxkA94NwB9unfvjrNnz4LklwDcf08iIqv66Zs2bXrl4YcfxooVKxAbG7uqrq5uAYA2TdOEqqpGYIi2tjbl6aeffu/YsWPv5uTk7JaC1wHg4Pnz542MwoVvTx+21dbWYvjw4WLixIl+2dnZ9lGjRgmSTE1NRUpKCkwFTGiaxtTU1OXTpk3707Bhw/6g67pDipnT4biuj7qut+Lbk3Vf1tTUXI9qu91Pjq1QFEUBgJaWFgBo8yGOQ8eNGxcAAOvXr/8QwBUfYygAKL169eoCABcuXACAWtn2hOGv0+kMNO1KiPDw8F4A4rZv3/7R1KlTR0+bNu1ht9u9r1+/fqitrQXJgwDarRC6/QjPzs4+QJIffPCB9/aQmSAA43ft2mW0e1QGoi8CAPyLsZccExNTC2BlRkbGRdOyYJCP2csBIN6UAZzCd7cBbQCijYp/dXU1ExMTz6SmptaMHj36f9LS0vYlJCRsl6mxIWSdu3fv/g5J7t+/nwC2AShMTk6+SJKff/45AWRLYbD7+fndAeDf5BJnLoCCyZMnt5JkdnZ2C4B/F0KEm1Pu+Pj4rST55ZdfEsBWAK+mpaVdMo3raDn7KwDuSEpK+m+S3LBhAwG8DuCtHTt2UBbpjgC408vvcFVV15HkuXPnjMp+p5uMf0RcXNyHJNnQ0EBVVfcCWBQXF3fG+Jv0yxABPwB5LS0tRmFxN4BlTzzxxGWSXLx4sS5F3GGFy+1Hp5SUlJq6ujoWFxdTpsZ2H+0iIyMj/0iSWVlZX5mr5jfJFroPGzasxlhTnjp1iiTZ3NxMl8tlrCd9pfa9SkpKSJI5OTmnZOageLUZZqxvfVFWVkZcPwdgNwnSCKPqb17jkmR8fPzfZMDZ5CRsFBmNI7h95s2b1yhT7/MAYmStwCx4vy0uLqa3v5qmEcCfvSr1QQAeXb16NY3Cm3HQ55133iGAp+SxZTNhKSkpfzUddkrFjYevzAQCeGjp0qXfsYckY2NjTwD4leGDLCL2HTdunNtoY+zWSHFcIHdsFCtcfuZ1vO9Eqs3m7/F47sb1k2qX/f3997W2tl7BjWfpBYDOzzzzzIVJkyZh0KBBCwEsB3AJvl9AETabLcDj8dwRFRW1ctasWb8JCgpSzp07d62wsPC/Wltb8xRFadR1/ZqPXYbgAQMGbI2Pjw/+6quv9ldVVT0r01ezuPRJSUn5Y9euXXVd11WzDaqq6kePHm3+7LPPRgO4KlNuxWazhXo8nuTk5OSXMjIyEl0uFxoaGtqKior+dPXq1VdUVT0jj7r68ieoT58+vx8yZMjdx48fP1JVVTVF9m20VW02WyfZf97YsWPjXS4X6urqWvPy8jYCWCyEuEDS8FdVFKWzruv//OSTTy5OTk7uqWkaPv3007qysrJ8RVH+LI8ym8/rB3Tu3HnRI488knLo0KG2ffv2ZQI4C98vP6mqqoZqmpaclpa2cOTIkX39/f3R0NDQUVxc/G5TU9PLqqrWa5rWLH1QVFUN0TStX1JSUvH48eP7BwYG4uDBg1cKCgpeBbBe2u+2Qug2EwD5N5sMPuNtMe8XP4TT6Qxoa2sbIGeXvUKIK7d4IISiKC5d1wPljOfA9bPwzYqiXNV13dd6Uqiq6qdpml2mpe02m63d4/G4vcTF5fF47LJf71nJA6BZVVW3pmntuPHlmAD5wk6Q9NnbHp9vHaqq6tA0zU/64PZhk1FfCZB9G/23ALiqKEqzD39tpvbGUqoFwFUhRLP3yzpCCDtJpxyXDulfG27+pqRR3DXsUWVd4Yq0x/taVQjhIhksC8L+ABpM9ljBf5sKwI8pIBr75L5E4vvu+UNeG/a+hv+AL7yFH8qPtOfHjtOP6V/Bja8D6z/B2Nys/1u9Xv33tLf4GfF/LC4GCJwByWIAAAAASUVORK5CYII\x3d";
  1256. b.yH = "data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAlAAD/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjAtYzA2MCA2MS4xMzQ3NzcsIDIwMTAvMDIvMTItMTc6MzI6MDAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM4MDBEMDY2QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM4MDBEMDY1QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzUgV2luZG93cyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkU2RTk0OEM4OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkU2RTk0OEM5OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQADQkJCQoJDQoKDRMMCwwTFhENDREWGhUVFhUVGhkUFhUVFhQZGR0fIB8dGScnKionJzk4ODg5QEBAQEBAQEBAQAEODAwOEA4RDw8RFA4RDhQVERISERUfFRUXFRUfKB0ZGRkZHSgjJiAgICYjLCwoKCwsNzc1NzdAQEBAQEBAQEBA/8AAEQgAyACgAwEiAAIRAQMRAf/EALAAAAEFAQEAAAAAAAAAAAAAAAQAAgMFBgcBAQEAAwEBAAAAAAAAAAAAAAAAAQMEAgUQAAIBAgIEBwoLBgQGAwAAAAECAwAEEQUhMRIGQVFxsTITFGGBwdEiQlKSMzWRoeFicqKyI1NzFYJjJDQWB9KjVCbxwkNkJWXik3QRAAIBAgMFBQcDBQEAAAAAAAABAhEDIRIEMUFRcTJhwVIUBZGhsSJyEzOB0ULhYpIjUxX/2gAMAwEAAhEDEQA/AMJSpUqAVKlXuFAeUq9wpUB5XuFe4V6ooDzZHDox0CnGMinzwl7Z8NajaHeoO3vmTBZBtp9YUIqTEV5ROxHKnWRnaU8VRMhFBUjpV7hSoSeUq9pUB5Sr2lhQHlKvcK8oBV7hSFSRrtaKAZs07YNPM1pG2xJIAw1jSeandry/8X4m8VCKkWwaWwam7Xl/4v1W8VLtmX/i/VbxUoKkWwakSM407tmX/i/VbxUmzGwjQsjdY41IARie/U0IbZO0kNtCXnOCkEBeFu4KI3Bs7DNb27ya+jDx3kJeEnpJJEcQVbWDsk17u5urd591ucZkWhym2Vnd9RkCDEpFxDRpbw0bunu5mlp2De2FMLYXOD2wB2xbOeraUcYGJ72mlSUiqzzdzMd3Z3mixltA2yzcK/NlHM1DQyRXce1HocdNOEfJXZ88y9ZojOqhiBszIRiHQ8Y4cK5TvHuzLljHNMqxNoDjLFraHHnjPxcNCGVbxEUzYNTx5jZSxhpW6qTzlwJ+DCvO2Zf+L9VvFSgqyHYNLYNTdssPxfibxUu15f8Ai/VPiqCakOwa82DU/a8v/F+JvFTDdWPBL8R8VKCvYRYV5UzoMAy6QdIIqI0B4KJtxiRQwou16QoGUkntH5Tz0RbZbmF2hktraSVBo2lUkY8tDye0flPPXTslVUyiyVRsjqUOA4yMT8dW2ram2m6UVTNq9S7EIyUVJydMTn/6DnP+im9Wl+g5z/opvVrpteEhQWY4AaSTwAVf5WPiZh/9S5/zj7zltzlmYWkfWXNvJDGTgGcYDHirR7i7mSbwXParsFMrgb7w6jKw/wCmnc9I14kF3vpvCljbMyWMOJL4aEiB8qU/ObUK7HYWVrl1pFZWiCOCBQqKOLjPGTrNZZqKbUXVHq2nNwTuJRk1VpbgXN8s7Rk5ym0UQQzhIG2NAjhxHWbI+gCBVjBBFbwxwQqEiiUJGg1BVGAFe7dV28WYLYZFmF2Th1UD7JGjymGyn1iK5OyzIBGB1HgrLZhamzumQAGJwSqnSCh1q3GOCodxt4cxurdcpzuN4cyhiWaF5Bg09udUmnWw1H/jV9nFuJ7Quo+8h8peThFA+047vduyMtk7fYqTl07YFdfUufMPzT5p71UdtlmYXaGS2t3mQHAsgxANdadYJopLe4QS2867EsZ4QfCNYrCFbjdDPmgkYyWFxgVf04ifJf6ScNdRUW1XBb6FU5TjF5EpSSrGu/s5lN+g5z/opvVpfoOc/wCim9WtdHnatvObJXDW7xLGhB8nrPaY9/HCr+tEdPCVaSeDoYLnqF63lzW4/PFSW3ecxbI84VSzWUwUaSdg0DXXK5nvAipnd6qgKvWnQO7pri9ZUEmm3Vl2j1kr8pRlFRyquBNZjGxQ/S56Y1S2fu9OVueon11Szahoou06QoQUXadIVCD2FJJ7R+U89dMydv8Axdn+TH9muZye0flPPXQstlK5Tbka1gUjlC1q0vVLkeb6r+O3Tx9xcY1nt8c0NrZCyiOE1108NYjGv1joo7Js1jzKyScYLIvkzL6LDwHXVJksH9Sb49dKNq0tj1jA6uriOCL+02FWX7iVtZX1/AzaHTyeoauKn2MX9W79zebiZCuR5MjSrhfXuEtwTrUeZH+yNfdrRNcxI6IzhXlJEak6WIGJ2Rw4ChWnChndtlVBLMdQA0k1gbXNMzzDfDLs6mjaPKppJbWwJ1bOwwxw43OnHh71YT3DpfWUJmFlb5jHHDdeXBHIsrRea5TSqvxqG04cNN62vetoCS4tre5mgnkGE9q+3DKOkuI2WX6LDQRRHWDh1UCtwj7QRg2wdl8Djgw1qe7XvW0BQ3kfZ7mSLgU+T9E6RVbnuVrnWVSWqj+Lt8ZbRuHEdKPkYVcZ2MJY5fSGyeVar45+rkWQHAqccalPE5km1htWK5nK4Wnt5FuUBUwOMG4nGkA/BXUrW4S6torlOjMgcd/xVn7rLo7zKs0uEjCNeSvdwoBhgsZxX1l2j36k3Lu+uyprdj5Vs5A+i/lD48a0aaVJOPi7jB6lbzWozpjB48pf1NDXNN4vfl7+Z4BXS65pvF78vfzPAK71XTHmZ/S/yT+jvJ7L3fHytz1E+upbL+Qj5W56jfXWRnsIYKLtekKEFGWvSFQgyjk9o/Keet3YthlMP/5x9msJJ7R+U89biyb/AMXEv7gD6tadL1T+kwepRrC39ZkLDMbiwMvUHRPG0bjlGg8ore/23sxBldxfMPLupNhT8yL/AORNZbdzJ484scytxgLqJY5LZj6Q2sV5G1Vud1mjjyG0ij0NEGSZToKyhjtqw4waztuiXA3qKTbSxltfGhbZlE95ZtZqxVbgiOZhrER9ph3Svk9+pJILZ4Y4DGBFCUMKjRsGPobPFhUfW0NJmljE2xJcIrcI2vFUEln1lRXd6lrazXT9GCNpD+yNqoI7mOVduNw6nzlOIoPOUa6yye1XXcbMR5GdQ3xY0BSbj31/FcTQZirJ+q431q7anbHCTZ72Bw7lbPrKBMcBWNNgbMBBh+bsjBdni0VJ1lARZs6yWiupxCuMDy6KpS2IwOo6DTr3Mre3e5tZZVUM4ZBjqOOJoWO4jkXajcOOMHGgDISvWIrdAkKR80+TzVl908bPPL3LzxOuHdifxVfiTAg92qI/w+/8gGgSyN/mR7XPVlp0lF/3L3mbVKtu5Hjbk/8AHE2Fc03i9+Xv5ngFdKNc13i9+Xv5ngFaNV0x5nn+l/kn9HeEWXu+PlbnqJ9dS2Xu9OVueon11kZ7CGCjLXpCgxRlr0hUIPYUcntH5Tz1s8vb+Bt1/dqPirGSe0flPPWusG/g4Py15q06XqlyMWvVYQ+ruI9xJOqzO9hOto/sP8tbGOFIrmWeM7IuMDMnAXXQJOUjQeOsJk0nY96ip0CYunrjaHx1t+srPJUbXBm2LrFPikwTOb+T+VhbZxGMrDXp83x1QSy2tucJpUjPETp+Cn5/ftaRvKvtp3Kx48HG3erHMzOxZiWZtLMdJNQSbbL71Vk6yynViOkqnEEfOWtPbXi3EQkGg6mXiNckjeSJxJGxR10qw0GtxuxmvbImD4CZMFlA4fRfv0BqesqqzTMZNMEDbIHtHH2QeCiZJSqMQdOGiue53mz3czQwsRbIcNHnkec3c4qAMuriz68gTIToxwOOnlp0MjxMJYW741Gs3RVldtbygE/dMcHX/moDaxTiWNZB53B3arb8/wC+4SOF4sf/AKxU9kcBsfOGHfoUHtG/RbzY5Die5HHhXdvavqiZ9Q8Jdlq4/gbKua7xe/L38zwCuhpf2Uk/Zo50kmwJKIdogDjw1VzzeL35e/meAVp1LTgqY4nn+mRauzqmqwrjzCLL3fHytz1E+upLL+Qj5W56jfXWRnroYKLtekKEFF2vSFQg9hSSe0flPPWosm/hIfoLzVl5PaPynnrRWb/w0X0F5q06XqlyM2sVYx5gmbFre/t71NY2T+0h8VbSO5SWNJUOKSAMp7jDGspmMPaLRlXS6eWve1/FRO7WYdbZm1Y/eW/R7qHxHRXGojlm3ulid6aVbaW+OALvgCLq2Hm9WxHKWqjhj6xsK1e8dm15l4niG1LZkswGsxtrPeOmsvayBJA1VItlWjptLuTdPMo7LtjRDq9naK4+WF9IrUW7BaHOljGqVHB7w2hzVoZt87d8vaNYSLl02CcRsDEbJbj71Uu7UBkvJ7/D7q2QoDxySaAO8MTXdxRVMpRp5XZOWdF/ms7R5XdyKfKWJsO/5PhrG5XlNxmEywW6bTnTxAAcJNbGSMXkM1pjgbiNo1PziPJ+Os7u7m/6ReM00ZOgxSpqYYHT3wRXMKN4ll9zUG4bQfNshu8sZVuEA2hirA4qe/VOwwrVbzbww5mI44UKRRYkbWG0S3JWctbd7u5WFfOOLHiUdJqmaipfLsIsObhWe001lMkMVvJNjhghIALMcBxCs7fxXQmkupx1bXDswGPlaTidVaEyKNXkoo4eBV+Sq7L7Vs9zcBgeyQ4GQ/MB1crmoim2orezqcowTuSeEY48jQ7oZX2PLzdyLhNd6RjrEY6I7+uspvH78vfzPAK6UAAAFGAGgAcArmu8Xvy9/M8ArTfio24RW5nnaG67uou3H/KPuqT2X8hHytz1G+upLL3enK3PUb66ys9RDBRdr0hQgou06QqEGUkntH5Tz1e238vF9BeaqKT2j8p56vbb+Xi+gvNWjTdUuRn1XTHmTh8KrJTJlt8t1CPIY44cGnpJVjTJYkmjaN9Ib4u7V923njTethRauZJV3PaW1rfLIiXEDYg6R4VYc9CXW7thfOZbKdbGZtLW8uPVY/u3GrkNUkM9zlcxUjbhfWOA90cRq4gv4LhdqN+VToNYWmnRm9NNVWNTyHc6VWBv8wt4YeHqm6xyPmroq1Z7WGFLSxTq7WLSuPSdjrkfumq5yHXDUeA92oO2SKpVumNAaoJLMXH3myp0rpJ4uKhc3tbDM5BMri1zAj79j7KTiY8TcdBpcsith0286o+sPCagEX9Pzg4zXUCp6QYse8oouCG3tk6m1BYv05W6T+IdyolxbHDAAa2OgDlNCz3ryN2WxBd5PJMg1t81eId2ukqnLlTBbfcuY+9uJLiRcvtPvHdsHK+cfRHcHDWsyawjyy0WBcDI3lTP6TeIcFV+S5OmXx9bJg1048o8Cj0V8Jq2DVu09nL80up7OxHi+oal3P8AXB/IsZS8T/YOV65zvCcc7vfzPAK3ivWCz445zeH954BXOr6I8yfSfyz+jvCLP3fHytz1G+upLP3fHytz1E+usbPaQ0UXadIUIKLtekKhB7Ckk9o/Keer22/l4/oLzVRSe0flPPV7b/y8X0F5q0abqlyM+q6Y8yQsBTDMor1o8aiaE1pbluMqS3sbLLHIhSRQyngqukhaJ9uBjo+H5aOa3ao2t34qouRlLajTalGP8v0IY8ylXQ+PKPFU/bYXOLPge6CKia0LaxTOxHu1Q7cuBd9yPEJ7TbjXKO8CajbMIF6CNIeNvJHjqIWJ7tSpYkalqVblwIdyG+RGXur0hXYJFxal+Dhq5y3slkv3Y2pD0pTr+QUClpJRUdo9XW4OLrTHtM16cZLLWkeC7y4jvlNEpcRtw1Ux27Ci448NZrTFy3nn3IQWxlgGrDZ3pza7/M8ArZo+ArF5171uvp+CqdV0R5l/psUrs2vB3hdl7vTlbnqJ9dS2Xu+PlbnqJ9dY2eshooq16QoQUXa9IVCD2FLJ7RuU89WNtmUSQqkgYMgw0accKrpPaPynnrZWG4Vi+VWmY5tnMWXG+XrIYnA0rhj0mdcTgdNdwnKDqjmduM1SRR/qlr8/4KX6pa8T/BVzDuLZXudRZblmbxXcPUNPc3KqCIwrbOzgrHEnHjoyD+3eSXkht7DeKG4umDGOJVUklfouThXfmbnZ7Cvy1vt9pmv1W1+d8FL9VteJvgq5yrcOGfLmzHN80iyyETPbptAEFo2ZG8pmUa1OFNn3Ky6W/sbDKM5hv5bx2WTZA+7RF2y52WOPJTzE+z2Dy1vt9pT/AKpacTerS/U7Tib1a04/t7kDXPY03jhN0W6sQ7K7W3q2dnrMccaDy/8At80kuZfqWYxWNtlcvUPPhiGYhWDeUy7IwYU8xPs9g8tb7faUn6pacTerTxm9oOBvVq3v9z927aynuId44LiWKNnjhAXF2UYhRg516qpsryjLr21665zFLSTaK9U2GOA87SwqY37knRU+BzOzags0s1Oyr+BKM6sxwP6tSDPLMen6vy0rvdm3Sxlu7K/S7WDDrFUDUTxgnTU826eXW7KlxmqQuwDBXUKcD+1Xee/wXuKX5XDGWLapSVcOyhEM/seJ/V+WnjeGx4pPV+Wkm6kKZlFay3Jlt7iFpYZY8ASVK6DjtDDA0f8A0Tl340/1f8Ndx8xJVWXB0KbktFFpNzdVXAC/qOwA0CQni2flrO3Vwbm5lnI2TKxbDirX/wBE5d+NcfV/wVR7xZPa5U9utvI8nWhmbbw0YEAYYAVxfhfy5rlKR4Fulu6X7mW1mzT8S4Yis/5CPlbnqJ9dSWfu9OVueon11mZvQ2i7XpChKKtekKhBlNJ7R+U89bDfGTb3a3ZX0Lcj6kdY+T2j8p560288m1kWQr6MJ+ylSAr+2cnV5renjs3H1loX+3j9XvbbtxLN9lqW4UnV5jdnjtXHxihtyZNjeSBu5J9k1BJe7xy7W5CJ/wCzuD/mTVTf2+fq97LJuLrPsNRueS7W6aJ/38x+vLVXuY+xvHaNxbf2GoCezf8A36j/APsSf8w1sLnqczTefJluYoLm5uo5F61sBshItP1cNFYe1f8A3ir/APfE/wCZUe9bB94r5jwuPsrQFhmG4l/Z2M17HdW90tuu3IkTHaCjWdIw0VVZdks9/C06yJFEp2dp+E1bbqybGTZ8vpQD7L1XRv8A7blT96Oda7tpNuuNE37Cq9KSisjyuUoxrStKllHbLlWTXsMs8chuSuwEPDqwoLe5y+YRE/gLzmqRekvKKtd4327yM/ulHxmrHJStySWVRyrjxKI2XC/CTlnlPPKTpTdFbP0L1bgrf5Lp0G3dPhQHwV0S1lzBsns3sESR8Crh9WAJGjSOKuU3E+zdZQ3oJh8IArdZXFDmOTpHa3i2+YrI2KtKy4ricBsBuHHgFXSo440+Wa2qqxjvM9uMoy+WvzWpLCWWWE28HxL6e43ojgkeSCBY1Ri5BGIUDT51cl3vm276BBqSEH4WbxV0tlkyXJcxTMb+OW6uY9mGHrCzDQwwAbTp2uKuTZ9N1uYsfRRR8WPhrm419mSSjRyiqxVK7y23B/ftuTm2oSdJyzNVw3BFn7vTlbnqF9dS2fu9OVueon11lZuQ2iLdsGFD05H2dNQGV0ntG5Tz1dWm9N1b2kVq8EVwsI2UaQaQOKhmitZGLOmk68DhSFvY+gfWNSAg7z3Qvo7yKCKIohiaNR5LKxx8qpxvjcqS0VpbxvwOAcRQPZ7D0G9Y0uz2HoH1jUCpLY7zXlpbm3eKO5QuzjrBqZji3x17PvNcyT288VvDBJbMWUovS2hslW7mFQ9nsPQPrGl2ew9A+saCod/WNxtbYsrfb17WBxx5ddD2281xC88klvDcSXEnWuzrqOGGC9zRUPZ7D0G9Y0uzWHoH1jQVCLreq6ntZbaO3it1mGy7RjTs1X2mYy20ZiCq8ZOODcdEdmsPQb1jS7PYegfWNdJuLqnQiSUlRqpFLmryxtH1Ma7Qw2gNNPOdSt0oI27p007s9h6B9Y0uz2HoH1jXX3Z+I4+1b8IJdX89xLHKQFMXQUahpxoiPN5P+onfU+A0/s9h6DesaXZ7D0D6xpG7OLbUtu0StW5JJx2bBsmbtiSiEk+cxoCWWSaVpZOk2vDVo0VYdnsPQb1jSNvZcCH1jSd2c+p1XAmFqEOmOPEfaH+BQd1ueo211IzrgFUYKNAAqI1WztCpUqVCRUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoD/9k\x3d";
  1257. b.yH = "res/textures/loading_bg.png";
  1258. var b = b || {},
  1259. ca = {
  1260. id: 0 | 998 * Math.random(),
  1261. Naa: 0 | 998 * Math.random(),
  1262. kU: function(a, d, e) {
  1263. a = a.toString();
  1264. var f = a.substring(a.indexOf("(") + 1, a.indexOf(")")),
  1265. f = f.trim();
  1266. for (a = a.substring(a.indexOf("{") + 1, a.lastIndexOf("}")); - 1 !== a.indexOf("this._super");) {
  1267. var g = a.indexOf("this._super"),
  1268. h = a.indexOf("(", g),
  1269. k = a.substring(h + 1, a.indexOf(")", h)),
  1270. k = k.trim();
  1271. a = a.substring(0, g) + "ClassManager[" + e + "]." + d + ".call(this" + (k ? "," : "") + a.substring(h + 1)
  1272. }
  1273. return Function(f, a)
  1274. },
  1275. kV: function() {
  1276. return this.id++
  1277. },
  1278. b$: function() {
  1279. return this.Naa++
  1280. }
  1281. };
  1282. ca.kU.kga = ca;
  1283. (function() {
  1284. var a = /\b_super\b/,
  1285. d = b.pb.Ee[b.pb.xh.E7];
  1286. d && console.log("release Mode");
  1287. b.sa = function() {};
  1288. b.sa.extend = function(e) {
  1289. function f() {
  1290. this.ba = ca.b$();
  1291. this.ctor && this.ctor.apply(this, arguments)
  1292. }
  1293. var g = this.prototype,
  1294. h = Object.create(g),
  1295. k = ca.kV();
  1296. ca[k] = g;
  1297. var m = {
  1298. writable: !0,
  1299. enumerable: !1,
  1300. configurable: !0
  1301. };
  1302. h.ba = null;
  1303. f.id = k;
  1304. m.value = k;
  1305. Object.defineProperty(h, "__pid", m);
  1306. f.prototype = h;
  1307. m.value = f;
  1308. Object.defineProperty(f.prototype, "constructor", m);
  1309. this.Wj && (f.Wj = b.q(this.Wj));
  1310. this.Xj && (f.Xj = b.q(this.Xj));
  1311. for (var n =
  1312. 0, p = arguments.length; n < p; ++n) {
  1313. var s = arguments[n],
  1314. t;
  1315. for (t in s) {
  1316. var v = "function" === typeof s[t],
  1317. w = "function" === typeof g[t],
  1318. x = a.test(s[t]);
  1319. d && v && w && x ? (m.value = ca.kU(s[t], t, k), Object.defineProperty(h, t, m)) : v && w && x ? (m.value = function(a, d) {
  1320. return function() {
  1321. var e = this._super;
  1322. this._super = g[a];
  1323. var f = d.apply(this, arguments);
  1324. this._super = e;
  1325. return f
  1326. }
  1327. }(t, s[t]), Object.defineProperty(h, t, m)) : v ? (m.value = s[t], Object.defineProperty(h, t, m)) : h[t] = s[t];
  1328. if (v) {
  1329. var u, y;
  1330. if (this.Wj && this.Wj[t]) {
  1331. var v = this.Wj[t],
  1332. C;
  1333. for (C in this.Xj)
  1334. if (this.Xj[C] ===
  1335. v) {
  1336. y = C;
  1337. break
  1338. }
  1339. b.i(h, v, s[t], s[y] ? s[y] : h[y], t, y)
  1340. }
  1341. if (this.Xj && this.Xj[t]) {
  1342. v = this.Xj[t];
  1343. for (C in this.Wj)
  1344. if (this.Wj[C] === v) {
  1345. u = C;
  1346. break
  1347. }
  1348. b.i(h, v, s[u] ? s[u] : h[u], s[t], u, t)
  1349. }
  1350. }
  1351. }
  1352. }
  1353. f.extend = b.sa.extend;
  1354. f.ypa = function(a) {
  1355. for (var d in a) h[d] = a[d]
  1356. };
  1357. return f
  1358. }
  1359. })();
  1360. b.i = function(a, d, e, f, g, h) {
  1361. if (a.__defineGetter__) e && a.__defineGetter__(d, e), f && a.__defineSetter__(d, f);
  1362. else if (Object.defineProperty) {
  1363. var k = {
  1364. enumerable: !1,
  1365. configurable: !0
  1366. };
  1367. e && (k.get = e);
  1368. f && (k.set = f);
  1369. Object.defineProperty(a, d, k)
  1370. } else throw Error("browser does not support getters");
  1371. if (!g && !h)
  1372. for (var k = null != e, m = void 0 != f, n = Object.getOwnPropertyNames(a), p = 0; p < n.length; p++) {
  1373. var s = n[p];
  1374. if ((a.__lookupGetter__ ? !a.__lookupGetter__(s) : !Object.getOwnPropertyDescriptor(a, s)) && "function" === typeof a[s]) {
  1375. var t = a[s];
  1376. if (k && t === e && (g = s, !m || h)) break;
  1377. if (m && t === f && (h = s, !k || g)) break
  1378. }
  1379. }
  1380. a = a.constructor;
  1381. g && (a.Wj || (a.Wj = {}), a.Wj[g] = d);
  1382. h && (a.Xj || (a.Xj = {}), a.Xj[h] = d)
  1383. };
  1384. b.q = function(a) {
  1385. var d = a.constructor ? new a.constructor : {},
  1386. e;
  1387. for (e in a) {
  1388. var f = a[e];
  1389. d[e] = "object" !== typeof f || !f || f instanceof b.e || f instanceof HTMLElement ? f : b.q(f)
  1390. }
  1391. return d
  1392. };
  1393. b.RC = function(a, d) {
  1394. for (var e in a) d[e] = a[e]
  1395. };
  1396. b = b || {};
  1397. b.Ea = b.Ea || {};
  1398. b.kka = function() {};
  1399. b.ku = {
  1400. $qa: 0,
  1401. back: 6,
  1402. Tqa: 18,
  1403. ZT: 8,
  1404. Mea: 9,
  1405. QU: 13,
  1406. shift: 16,
  1407. Pka: 17,
  1408. alt: 18,
  1409. pause: 19,
  1410. uka: 20,
  1411. escape: 27,
  1412. Iva: 32,
  1413. Ora: 33,
  1414. Nra: 34,
  1415. end: 35,
  1416. home: 36,
  1417. left: 37,
  1418. zwa: 38,
  1419. right: 39,
  1420. ila: 40,
  1421. select: 41,
  1422. Bpa: 45,
  1423. yga: 46,
  1424. 0: 48,
  1425. 1: 49,
  1426. 2: 50,
  1427. 3: 51,
  1428. 4: 52,
  1429. 5: 53,
  1430. 6: 54,
  1431. 7: 55,
  1432. 8: 56,
  1433. 9: 57,
  1434. a: 65,
  1435. b: 66,
  1436. c: 67,
  1437. K: 68,
  1438. fi: 69,
  1439. nj: 70,
  1440. g: 71,
  1441. wd: 72,
  1442. Pw: 73,
  1443. WC: 74,
  1444. XC: 75,
  1445. ZC: 76,
  1446. eD: 77,
  1447. Pn: 78,
  1448. hD: 79,
  1449. d: 80,
  1450. wD: 81,
  1451. r: 82,
  1452. ih: 83,
  1453. jM: 84,
  1454. u: 85,
  1455. v: 86,
  1456. S: 87,
  1457. x: 88,
  1458. y: 89,
  1459. z: 90,
  1460. ara: 96,
  1461. bra: 97,
  1462. cra: 98,
  1463. dra: 99,
  1464. era: 100,
  1465. fra: 101,
  1466. gra: 102,
  1467. hra: 103,
  1468. ira: 104,
  1469. jra: 105,
  1470. "*": 106,
  1471. "+": 107,
  1472. "-": 109,
  1473. numdel: 110,
  1474. "/": 111,
  1475. ama: 112,
  1476. ema: 113,
  1477. fma: 114,
  1478. gma: 115,
  1479. hma: 116,
  1480. ima: 117,
  1481. jma: 118,
  1482. kma: 119,
  1483. lma: 120,
  1484. bma: 121,
  1485. cma: 122,
  1486. dma: 123,
  1487. nra: 144,
  1488. ita: 145,
  1489. ";": 186,
  1490. kta: 186,
  1491. Xla: 187,
  1492. "\x3d": 187,
  1493. ",": 188,
  1494. Eka: 188,
  1495. Qka: 189,
  1496. ".": 190,
  1497. Xra: 190,
  1498. pma: 191,
  1499. qpa: 192,
  1500. "[": 219,
  1501. yra: 219,
  1502. mka: 220,
  1503. "]": 221,
  1504. Bka: 221,
  1505. quote: 222,
  1506. lla: 1E3,
  1507. mla: 1001,
  1508. nla: 1003,
  1509. kla: 1004,
  1510. jla: 1005
  1511. };
  1512. b.Fga = 0;
  1513. b.CE = 1;
  1514. b.bN = 2;
  1515. b.Gga = 3;
  1516. b.Hga = 4;
  1517. b.a_ = 5;
  1518. b.E9 = function(a) {
  1519. return 8 < a.length && 137 === a[0] && 80 === a[1] && 78 === a[2] && 71 === a[3] && 13 === a[4] && 10 === a[5] && 26 === a[6] && 10 === a[7] ? b.CE : 2 < a.length && (73 === a[0] && 73 === a[1] || 77 === a[0] && 77 === a[1] || 255 === a[0] && 216 === a[1]) ? b.bN : b.a_
  1520. };
  1521. b.zpa = function(a, d) {
  1522. function e() {}
  1523. e.prototype = d.prototype;
  1524. a.XD = d.prototype;
  1525. a.prototype = new e;
  1526. a.prototype.constructor = a
  1527. };
  1528. b.nka = function(a, d, e) {
  1529. var f = arguments.callee.caller;
  1530. if (f.XD) return ret = f.XD.constructor.apply(a, Array.prototype.slice.call(arguments, 1));
  1531. for (var g = Array.prototype.slice.call(arguments, 2), h = !1, k = a.constructor; k; k = k.XD && k.XD.constructor)
  1532. if (k.prototype[d] === f) h = !0;
  1533. else if (h) return k.prototype[d].apply(a, g);
  1534. if (a[d] === f) return a.constructor.prototype[d].apply(a, g);
  1535. throw Error("cc.base called from a method of one name to a method of a different name");
  1536. };
  1537. b.p0 = function() {
  1538. this.y = this.x = 0
  1539. };
  1540. b.d = function(a, d) {
  1541. return void 0 === a ? {
  1542. x: 0,
  1543. y: 0
  1544. } : void 0 === d ? {
  1545. x: a.x,
  1546. y: a.y
  1547. } : {
  1548. x: a,
  1549. y: d
  1550. }
  1551. };
  1552. b.DL = function(a, d) {
  1553. return a && d && a.x === d.x && a.y === d.y
  1554. };
  1555. b.Lha = function(a, d) {
  1556. this.width = a || 0;
  1557. this.height = d || 0
  1558. };
  1559. b.size = function(a, d) {
  1560. return void 0 === a ? {
  1561. width: 0,
  1562. height: 0
  1563. } : void 0 === d ? {
  1564. width: a.width,
  1565. height: a.height
  1566. } : {
  1567. width: a,
  1568. height: d
  1569. }
  1570. };
  1571. b.Gva = function(a, d) {
  1572. return a && d && a.width === d.width && a.height === d.height
  1573. };
  1574. b.Dh = function(a, d, e, f) {
  1575. this.x = a || 0;
  1576. this.y = d || 0;
  1577. this.width = e || 0;
  1578. this.height = f || 0
  1579. };
  1580. b.rect = function(a, d, e, f) {
  1581. return void 0 === a ? {
  1582. x: 0,
  1583. y: 0,
  1584. width: 0,
  1585. height: 0
  1586. } : void 0 === d ? {
  1587. x: a.x,
  1588. y: a.y,
  1589. width: a.width,
  1590. height: a.height
  1591. } : {
  1592. x: a,
  1593. y: d,
  1594. width: e,
  1595. height: f
  1596. }
  1597. };
  1598. b.PW = function(a, d) {
  1599. return a && d && a.x === d.x && a.y === d.y && a.width === d.width && a.height === d.height
  1600. };
  1601. b.Iv = function(a) {
  1602. return a && 0 === a.x && 0 === a.y && 0 === a.width && 0 === a.height
  1603. };
  1604. b.osa = function(a, d) {
  1605. return a && d ? !(a.x >= d.x || a.y >= d.y || a.x + a.width <= d.x + d.width || a.y + a.height <= d.y + d.height) : !1
  1606. };
  1607. b.ox = function(a) {
  1608. return a.x + a.width
  1609. };
  1610. b.psa = function(a) {
  1611. return a.x + a.width / 2
  1612. };
  1613. b.it = function(a) {
  1614. return a.x
  1615. };
  1616. b.px = function(a) {
  1617. return a.y + a.height
  1618. };
  1619. b.qsa = function(a) {
  1620. return a.y + a.height / 2
  1621. };
  1622. b.jt = function(a) {
  1623. return a.y
  1624. };
  1625. b.mx = function(a, d) {
  1626. return d.x >= b.it(a) && d.x <= b.ox(a) && d.y >= b.jt(a) && d.y <= b.px(a)
  1627. };
  1628. b.mca = function(a, d) {
  1629. var e = a.y + a.height,
  1630. f = d.x + d.width,
  1631. g = d.y + d.height;
  1632. return !(a.x + a.width < d.x || f < a.x || e < d.y || g < a.y)
  1633. };
  1634. b.rsa = function(a, d) {
  1635. return !(a.x + a.width < d.x || d.x + d.width < a.x || a.y + a.height < d.y || d.y + d.height < a.y)
  1636. };
  1637. b.kt = function(a, d) {
  1638. var e = b.rect(0, 0, 0, 0);
  1639. e.x = Math.min(a.x, d.x);
  1640. e.y = Math.min(a.y, d.y);
  1641. e.width = Math.max(a.x + a.width, d.x + d.width) - e.x;
  1642. e.height = Math.max(a.y + a.height, d.y + d.height) - e.y;
  1643. return e
  1644. };
  1645. b.lca = function(a, d) {
  1646. var e = b.rect(Math.max(b.it(a), b.it(d)), Math.max(b.jt(a), b.jt(d)), 0, 0);
  1647. e.width = Math.min(b.ox(a), b.ox(d)) - b.it(e);
  1648. e.height = Math.min(b.px(a), b.px(d)) - b.jt(e);
  1649. return e
  1650. };
  1651. b.Uy = b.sa.extend({
  1652. aS: null,
  1653. sH: null,
  1654. ctor: function() {
  1655. window.DOMParser ? (this.sH = !0, this.aS = new DOMParser) : this.sH = !1
  1656. },
  1657. parse: function(a) {
  1658. return this.SH(a)
  1659. },
  1660. SH: function(a) {
  1661. var d;
  1662. this.sH ? d = this.aS.parseFromString(a, "text/xml") : (d = new ActiveXObject("Microsoft.XMLDOM"), d.async = "false", d.loadXML(a));
  1663. return d
  1664. }
  1665. });
  1666. b.o0 = b.Uy.extend({
  1667. parse: function(a) {
  1668. var d = this.SH(a).documentElement;
  1669. if ("plist" !== d.tagName) throw b.log("plist.tagName:" + a), "Not a plist file!";
  1670. a = null;
  1671. for (var e = 0, f = d.childNodes.length; e < f && (a = d.childNodes[e], 1 !== a.nodeType); e++);
  1672. return this.RH(a)
  1673. },
  1674. RH: function(a) {
  1675. var d = null,
  1676. e = a.tagName;
  1677. if ("dict" === e) d = this.h5(a);
  1678. else if ("array" === e) d = this.g5(a);
  1679. else if ("string" === e)
  1680. if (1 === a.childNodes.length) d = a.firstChild.nodeValue;
  1681. else
  1682. for (d = "", e = 0; e < a.childNodes.length; e++) d += a.childNodes[e].nodeValue;
  1683. else "false" ===
  1684. e ? d = !1 : "true" === e ? d = !0 : "real" === e ? d = parseFloat(a.firstChild.nodeValue) : "integer" === e && (d = parseInt(a.firstChild.nodeValue, 10));
  1685. return d
  1686. },
  1687. g5: function(a) {
  1688. for (var d = [], e = 0, f = a.childNodes.length; e < f; e++) {
  1689. var g = a.childNodes[e];
  1690. 1 === g.nodeType && d.push(this.RH(g))
  1691. }
  1692. return d
  1693. },
  1694. h5: function(a) {
  1695. for (var d = {}, e = null, f = 0, g = a.childNodes.length; f < g; f++) {
  1696. var h = a.childNodes[f];
  1697. 1 === h.nodeType && ("key" === h.tagName ? e = h.firstChild.nodeValue : d[e] = this.RH(h))
  1698. }
  1699. return d
  1700. }
  1701. });
  1702. b.oT = {
  1703. load: function(a, d, e, f) {
  1704. b.Z.cD(a, f)
  1705. }
  1706. };
  1707. b.Z.Bj(["txt", "xml", "vsh", "fsh", "atlas"], b.oT);
  1708. b.L4 = {
  1709. load: function(a, d, e, f) {
  1710. b.Z.qW(a, f)
  1711. }
  1712. };
  1713. b.Z.Bj(["json", "ExportJson"], b.L4);
  1714. b.K4 = {
  1715. load: function(a, d, e, f) {
  1716. b.Z.oW(a, f)
  1717. }
  1718. };
  1719. b.Z.Bj(["js"], b.K4);
  1720. b.t4 = {
  1721. load: function(a, d, e, f) {
  1722. b.Z.td[d] = b.Z.at(a, function(a, e) {
  1723. if (a) return f(a);
  1724. b.Xa.Tb(d);
  1725. f(null, e)
  1726. })
  1727. }
  1728. };
  1729. b.Z.Bj("png jpg bmp jpeg gif ico".split(" "), b.t4);
  1730. b.P5 = {
  1731. load: function(a, d, e, f) {
  1732. b.Z.td[d] = b.Z.at(e.src, function(a, e) {
  1733. if (a) return f(a);
  1734. b.Xa.Tb(d);
  1735. f(null, e)
  1736. })
  1737. }
  1738. };
  1739. b.Z.Bj(["serverImg"], b.P5);
  1740. b.q5 = {
  1741. load: function(a, d, e, f) {
  1742. b.Z.cD(a, function(a, d) {
  1743. if (a) return f(a);
  1744. f(null, b.Wba.parse(d))
  1745. })
  1746. }
  1747. };
  1748. b.Z.Bj(["plist"], b.q5);
  1749. b.x3 = {
  1750. x1: {
  1751. ".eot": "embedded-opentype",
  1752. ".ttf": "truetype",
  1753. ".woff": "woff",
  1754. ".svg": "svg"
  1755. },
  1756. GR: function(a, d, e) {
  1757. var f = document,
  1758. g = b.path,
  1759. h = this.x1,
  1760. k = b.ic("style");
  1761. k.type = "text/css";
  1762. f.body.appendChild(k);
  1763. var m = "@font-face { font-family:" + a + "; src:";
  1764. if (d instanceof Array)
  1765. for (var n = 0, p = d.length; n < p; n++) e = g.Hn(d[n]).toLowerCase(), m += "url('" + d[n] + "') format('" + h[e] + "')", m += n === p - 1 ? ";" : ",";
  1766. else m += "url('" + d + "') format('" + h[e] + "');";
  1767. k.textContent += m + "};";
  1768. d = b.ic("div");
  1769. e = d.style;
  1770. e.fontFamily = a;
  1771. d.innerHTML = ".";
  1772. e.position =
  1773. "absolute";
  1774. e.left = "-100px";
  1775. e.top = "-100px";
  1776. f.body.appendChild(d)
  1777. },
  1778. load: function(a, d, e, f) {
  1779. d = e.type;
  1780. a = e.name;
  1781. d = e.Kva;
  1782. b.Je(e) ? (d = b.path.Hn(e), a = b.path.q7(e, d), this.GR(a, e, d)) : this.GR(a, d);
  1783. f(null, !0)
  1784. }
  1785. };
  1786. b.Z.Bj(["font", "eot", "ttf", "woff", "svg"], b.x3);
  1787. b.Iia = {
  1788. load: function(a, d, e, f) {
  1789. b.Z.yba(a, f)
  1790. }
  1791. };
  1792. b.i3 = {
  1793. load: function(a, d, e, f) {
  1794. b.Z.zba(a, f)
  1795. }
  1796. };
  1797. b.Z.Bj(["csb"], b.i3);
  1798. window.CocosEngine = b.xE = "Cocos2d-JS v3.6";
  1799. b.Cy = 0;
  1800. b.tE = b.d(0, 0);
  1801. b.DZ = 0.5;
  1802. b.gga = 1;
  1803. b.qF = 1;
  1804. b.Z_ = 0;
  1805. b.fO = 0;
  1806. b.gO = 0;
  1807. b.Tha = 0;
  1808. b.Fha = 1;
  1809. b.Eha = "-hd";
  1810. b.o2 = 1;
  1811. b.rF = 0;
  1812. b.Iha = 0;
  1813. b.u_ = 0;
  1814. b.t_ = 0;
  1815. b.IE = 1;
  1816. b.nga = b.xE + "-canvas";
  1817. b.jy = 1;
  1818. b.Fi = 1;
  1819. b.Rb = function(a) {
  1820. var d = this === b ? document : this;
  1821. if (a = a instanceof HTMLElement ? a : d.querySelector(a)) a.find = a.find || b.Rb, a.$K = a.$K || function(a) {
  1822. return this.className.match(RegExp("(\\s|^)" + a + "(\\s|$)"))
  1823. }, a.OT = a.OT || function(a) {
  1824. this.$K(a) || (this.className && (this.className += " "), this.className += a);
  1825. return this
  1826. }, a.sca = a.sca || function(a) {
  1827. this.$K(a) && (this.className = this.className.replace(a, ""));
  1828. return this
  1829. }, a.remove = a.remove || function() {
  1830. this.parentNode && this.parentNode.removeChild(this);
  1831. return this
  1832. }, a.WT =
  1833. a.WT || function(a) {
  1834. a.appendChild(this);
  1835. return this
  1836. }, a.cca = a.cca || function(a) {
  1837. a.childNodes[0] ? a.insertBefore(this, a.childNodes[0]) : a.appendChild(this);
  1838. return this
  1839. }, a.Qx = a.Qx || function() {
  1840. this.style[b.Rb.dfa] = b.Rb.translate(this.position) + b.Rb.rotate(this.rotation) + b.Rb.scale(this.scale) + b.Rb.xt(this.xt);
  1841. return this
  1842. }, a.position = a.position || {
  1843. x: 0,
  1844. y: 0
  1845. }, a.rotation = a.rotation || 0, a.scale = a.scale || {
  1846. x: 1,
  1847. y: 1
  1848. }, a.xt = a.xt || {
  1849. x: 0,
  1850. y: 0
  1851. }, a.xY = function(a, d) {
  1852. this.position.x = a;
  1853. this.position.y = d;
  1854. this.Qx()
  1855. }, a.rotate = function(a) {
  1856. this.rotation =
  1857. a;
  1858. this.Qx();
  1859. return this
  1860. }, a.resize = function(a, d) {
  1861. this.scale.x = a;
  1862. this.scale.y = d;
  1863. this.Qx();
  1864. return this
  1865. }, a.Oua = function(a, d) {
  1866. this.xt.x = a;
  1867. this.xt.y = d;
  1868. this.Qx();
  1869. return this
  1870. };
  1871. return a
  1872. };
  1873. switch (b.fa.di) {
  1874. case b.fa.bo:
  1875. b.Rb.ix = "Moz";
  1876. b.Rb.Rs = !0;
  1877. break;
  1878. case b.fa.ao:
  1879. case b.fa.eo:
  1880. b.Rb.ix = "webkit";
  1881. b.Rb.Rs = !0;
  1882. break;
  1883. case b.fa.HM:
  1884. b.Rb.ix = "O";
  1885. b.Rb.Rs = !1;
  1886. break;
  1887. case b.fa.co:
  1888. b.Rb.ix = "ms";
  1889. b.Rb.Rs = !1;
  1890. break;
  1891. default:
  1892. b.Rb.ix = "webkit", b.Rb.Rs = !0
  1893. }
  1894. b.Rb.dfa = b.Rb.ix + "Transform";
  1895. b.Rb.translate = b.Rb.Rs ? function(a) {
  1896. return "translate3d(" + a.x + "px, " + a.y + "px, 0) "
  1897. } : function(a) {
  1898. return "translate(" + a.x + "px, " + a.y + "px) "
  1899. };
  1900. b.Rb.rotate = b.Rb.Rs ? function(a) {
  1901. return "rotateZ(" + a + "deg) "
  1902. } : function(a) {
  1903. return "rotate(" + a + "deg) "
  1904. };
  1905. b.Rb.scale = function(a) {
  1906. return "scale(" + a.x + ", " + a.y + ") "
  1907. };
  1908. b.Rb.xt = function(a) {
  1909. return "skewX(" + -a.x + "deg) skewY(" + a.y + "deg)"
  1910. };
  1911. b.PY = function() {
  1912. return b.Rb(document.createElement("input"))
  1913. };
  1914. b.Rb.nma = function(a) {
  1915. var d = 0,
  1916. e = 0;
  1917. do d += a.offsetLeft, e += a.offsetTop; while (a = a.offsetParent);
  1918. return {
  1919. x: d,
  1920. y: e
  1921. }
  1922. };
  1923. b.Nj = -1;
  1924. b.PI = Math.PI;
  1925. b.$Z = parseFloat("3.402823466e+38F");
  1926. b.Ega = parseFloat("1.175494351e-38F");
  1927. b.q0 = b.PI / 180;
  1928. b.WM = 180 / b.PI;
  1929. b.TO = 4294967295;
  1930. b.Dt = function(a, d, e) {
  1931. if (!b.Ww(e) || b.sj(e.x) || b.sj(e.y)) b.log(b.o.Dt);
  1932. else {
  1933. var f = e[a];
  1934. e[a] = e[d];
  1935. e[d] = f
  1936. }
  1937. };
  1938. b.wba = function(a, d, e) {
  1939. return a + (d - a) * e
  1940. };
  1941. b.Yb = function() {
  1942. return 16777215 * Math.random()
  1943. };
  1944. b.ica = function() {
  1945. return 2 * (Math.random() - 0.5)
  1946. };
  1947. b.hsa = Math.random;
  1948. b.Md = function(a) {
  1949. return a * b.q0
  1950. };
  1951. b.jx = function(a) {
  1952. return a * b.WM
  1953. };
  1954. b.MW = function(a) {
  1955. b.log(b.o.MW);
  1956. return a * b.WM
  1957. };
  1958. b.Ch = Number.MAX_VALUE - 1;
  1959. b.Td = b.Z_ ? 1 : 770;
  1960. b.Sd = 771;
  1961. b.Xqa = function(a) {
  1962. a.za && (a.za.jc(), a.za.Sk())
  1963. };
  1964. b.Ula = function() {};
  1965. b.Xka = function() {};
  1966. b.li = function() {
  1967. b.Of += 1
  1968. };
  1969. b.Dy = 1.192092896E-7;
  1970. b.Db = b.IE ? function() {
  1971. return b.P.Gg
  1972. } : function() {
  1973. return 1
  1974. };
  1975. b.Xba = function(a) {
  1976. var d = b.Db();
  1977. return b.d(a.x * d, a.y * d)
  1978. };
  1979. b.EL = function(a) {
  1980. var d = b.Db();
  1981. return b.d(a.x / d, a.y / d)
  1982. };
  1983. b.WH = function(a, d) {
  1984. var e = b.Db();
  1985. d.x = a.x / e;
  1986. d.y = a.y / e
  1987. };
  1988. b.vea = function(a) {
  1989. var d = b.Db();
  1990. return b.size(a.width * d, a.height * d)
  1991. };
  1992. b.fY = function(a) {
  1993. var d = b.Db();
  1994. return b.size(a.width / d, a.height / d)
  1995. };
  1996. b.US = function(a, d) {
  1997. var e = b.Db();
  1998. d.width = a.width / e;
  1999. d.height = a.height / e
  2000. };
  2001. b.Qn = b.IE ? function(a) {
  2002. var d = b.Db();
  2003. return b.rect(a.x / d, a.y / d, a.width / d, a.height / d)
  2004. } : function(a) {
  2005. return a
  2006. };
  2007. b.qx = b.IE ? function(a) {
  2008. var d = b.Db();
  2009. return b.rect(a.x * d, a.y * d, a.width * d, a.height * d)
  2010. } : function(a) {
  2011. return a
  2012. };
  2013. b.ONE = 1;
  2014. b.ZERO = 0;
  2015. b.SRC_ALPHA = 770;
  2016. b.SRC_ALPHA_SATURATE = 776;
  2017. b.SRC_COLOR = 768;
  2018. b.DST_ALPHA = 772;
  2019. b.DST_COLOR = 774;
  2020. b.ONE_MINUS_SRC_ALPHA = 771;
  2021. b.ONE_MINUS_SRC_COLOR = 769;
  2022. b.ONE_MINUS_DST_ALPHA = 773;
  2023. b.ONE_MINUS_DST_COLOR = 775;
  2024. b.ONE_MINUS_CONSTANT_ALPHA = 32772;
  2025. b.ONE_MINUS_CONSTANT_COLOR = 32770;
  2026. b.LINEAR = 9729;
  2027. b.REPEAT = 10497;
  2028. b.CLAMP_TO_EDGE = 33071;
  2029. b.MIRRORED_REPEAT = 33648;
  2030. b.ss = function() {
  2031. if (b.tx === b.ya) {
  2032. var a = b.A.getError();
  2033. a && b.log(b.o.ss, a)
  2034. }
  2035. };
  2036. b.uga = 0;
  2037. b.sga = 1;
  2038. b.vga = 2;
  2039. b.tga = 3;
  2040. b.rga = 2;
  2041. b.tia = 0;
  2042. b.qe = 1;
  2043. b.Cu = 2;
  2044. b.Dq = 4;
  2045. b.Cq = b.qe | b.Cu | b.Dq;
  2046. b.Jga = 0;
  2047. b.Ib = 0;
  2048. b.cf = 1;
  2049. b.re = 2;
  2050. b.uia = 3;
  2051. b.Au = 0;
  2052. b.zu = 1;
  2053. b.Bq = 2;
  2054. b.qz = 3;
  2055. b.pz = 4;
  2056. b.oz = 5;
  2057. b.Bu = 6;
  2058. b.JF = 7;
  2059. b.pia = 8;
  2060. b.Sj = "ShaderPositionTextureColor";
  2061. b.Yy = "ShaderPositionTextureColorAlphaTest";
  2062. b.Xy = "ShaderPositionColor";
  2063. b.uu = "ShaderPositionTexture";
  2064. b.oF = "ShaderPositionTexture_uColor";
  2065. b.mF = "ShaderPositionTextureA8Color";
  2066. b.pF = "ShaderPosition_uColor";
  2067. b.VN = "ShaderPositionLengthTextureColor";
  2068. b.j2 = "CC_PMatrix";
  2069. b.h2 = "CC_MVMatrix";
  2070. b.i2 = "CC_MVPMatrix";
  2071. b.n2 = "CC_Time";
  2072. b.m2 = "CC_SinTime";
  2073. b.g2 = "CC_CosTime";
  2074. b.k2 = "CC_Random01";
  2075. b.l2 = "CC_Texture0";
  2076. b.UO = "CC_alpha_value";
  2077. b.lq = "a_color";
  2078. b.vm = "a_position";
  2079. b.$n = "a_texCoord";
  2080. b.m_ = 32;
  2081. b.RM = 3233828865;
  2082. b.rz = 3233828866;
  2083. b.G_ = 8801;
  2084. b.t0 = 8802;
  2085. b.EZ = 8803;
  2086. b.ow = function(a, d) {
  2087. if (a && 0 < a.length)
  2088. for (var e = 0; e < a.length; e++)
  2089. if (!(a[e] instanceof d)) return b.log("element type is wrong!"), !1;
  2090. return !0
  2091. };
  2092. b.ge = function(a, d) {
  2093. for (var e = 0, f = a.length; e < f; e++)
  2094. if (a[e] === d) {
  2095. a.splice(e, 1);
  2096. break
  2097. }
  2098. };
  2099. b.jka = function(a, d) {
  2100. for (var e = 0, f = d.length; e < f; e++) b.ge(a, d[e])
  2101. };
  2102. b.ika = function(a, d, e) {
  2103. a.splice.apply(a, [e, 0].concat(d));
  2104. return a
  2105. };
  2106. b.oU = function(a) {
  2107. var d, e = a.length,
  2108. f = Array(e);
  2109. for (d = 0; d < e; d += 1) f[d] = a[d];
  2110. return f
  2111. };
  2112. b = b || {};
  2113. b.Ea = b.Ea || {};
  2114. b.Ea.MF = function() {
  2115. b.color = function(a, e, f, g, h, k) {
  2116. return void 0 === a ? new b.bf(0, 0, 0, 255, h, k) : b.Je(a) ? (a = b.LV(a), new b.bf(a.r, a.g, a.b, a.a)) : b.Ww(a) ? new b.bf(a.r, a.g, a.b, a.a, a.arrayBuffer, a.offset) : new b.bf(a, e, f, g, h, k)
  2117. };
  2118. b.bf = function(a, e, f, g, h, k) {
  2119. this.Dd = h || new ArrayBuffer(b.bf.BYTES_PER_ELEMENT);
  2120. this.Ja = k || 0;
  2121. h = this.Dd;
  2122. k = this.Ja;
  2123. var m = Uint8Array.BYTES_PER_ELEMENT;
  2124. this.jI = new Uint8Array(h, k, 1);
  2125. this.RG = new Uint8Array(h, k + m, 1);
  2126. this.aG = new Uint8Array(h, k + 2 * m, 1);
  2127. this.SF = new Uint8Array(h, k + 3 * m, 1);
  2128. this.jI[0] =
  2129. a || 0;
  2130. this.RG[0] = e || 0;
  2131. this.aG[0] = f || 0;
  2132. this.SF[0] = null == g ? 255 : g;
  2133. void 0 === g && (this.MT = !0)
  2134. };
  2135. b.bf.BYTES_PER_ELEMENT = 4;
  2136. var a = b.bf.prototype;
  2137. a.c4 = function() {
  2138. return this.jI[0]
  2139. };
  2140. a.b6 = function(a) {
  2141. this.jI[0] = 0 > a ? 0 : a
  2142. };
  2143. a.P3 = function() {
  2144. return this.RG[0]
  2145. };
  2146. a.W5 = function(a) {
  2147. this.RG[0] = 0 > a ? 0 : a
  2148. };
  2149. a.UG = function() {
  2150. return this.aG[0]
  2151. };
  2152. a.zI = function(a) {
  2153. this.aG[0] = 0 > a ? 0 : a
  2154. };
  2155. a.SG = function() {
  2156. return this.SF[0]
  2157. };
  2158. a.wI = function(a) {
  2159. this.SF[0] = 0 > a ? 0 : a
  2160. };
  2161. b.i(a, "r", a.c4, a.b6);
  2162. b.i(a, "g", a.P3, a.W5);
  2163. b.i(a, "b", a.UG, a.zI);
  2164. b.i(a, "a", a.SG, a.wI);
  2165. M = function(a, e, f, g) {
  2166. this.Dd = f || new ArrayBuffer(M.BYTES_PER_ELEMENT);
  2167. this.Ja = g || 0;
  2168. this.zp = new Float32Array(this.Dd, this.Ja, 1);
  2169. this.Ap = new Float32Array(this.Dd, this.Ja + 4, 1);
  2170. this.zp[0] = a || 0;
  2171. this.Ap[0] = e || 0
  2172. };
  2173. M.BYTES_PER_ELEMENT = 8;
  2174. a = M.prototype;
  2175. a.kH = function() {
  2176. return this.zp[0]
  2177. };
  2178. a.QI = function(a) {
  2179. this.zp[0] = a
  2180. };
  2181. a.lH = function() {
  2182. return this.Ap[0]
  2183. };
  2184. a.RI = function(a) {
  2185. this.Ap[0] = a
  2186. };
  2187. b.i(a, "x", a.kH, a.QI);
  2188. b.i(a, "y", a.lH, a.RI);
  2189. N = function(a, e, f, g, h) {
  2190. this.Dd = g || new ArrayBuffer(N.BYTES_PER_ELEMENT);
  2191. this.Ja = h || 0;
  2192. g = this.Dd;
  2193. h = this.Ja;
  2194. this.zp = new Float32Array(g, h, 1);
  2195. this.zp[0] = a || 0;
  2196. this.Ap = new Float32Array(g, h + Float32Array.BYTES_PER_ELEMENT, 1);
  2197. this.Ap[0] = e || 0;
  2198. this.DJ = new Float32Array(g, h + 2 * Float32Array.BYTES_PER_ELEMENT, 1);
  2199. this.DJ[0] = f || 0
  2200. };
  2201. N.BYTES_PER_ELEMENT = 12;
  2202. a = N.prototype;
  2203. a.kH = function() {
  2204. return this.zp[0]
  2205. };
  2206. a.QI = function(a) {
  2207. this.zp[0] = a
  2208. };
  2209. a.lH = function() {
  2210. return this.Ap[0]
  2211. };
  2212. a.RI = function(a) {
  2213. this.Ap[0] = a
  2214. };
  2215. a.p4 = function() {
  2216. return this.DJ[0]
  2217. };
  2218. a.k6 = function(a) {
  2219. this.DJ[0] = a
  2220. };
  2221. b.i(a, "x", a.kH, a.QI);
  2222. b.i(a, "y", a.lH, a.RI);
  2223. b.i(a,
  2224. "z", a.p4, a.k6);
  2225. da = function(a, e, f, g) {
  2226. this.Dd = f || new ArrayBuffer(da.BYTES_PER_ELEMENT);
  2227. this.Ja = g || 0;
  2228. this.mJ = new Float32Array(this.Dd, this.Ja, 1);
  2229. this.sJ = new Float32Array(this.Dd, this.Ja + 4, 1);
  2230. this.mJ[0] = a || 0;
  2231. this.sJ[0] = e || 0
  2232. };
  2233. da.BYTES_PER_ELEMENT = 8;
  2234. a = da.prototype;
  2235. a.j4 = function() {
  2236. return this.mJ[0]
  2237. };
  2238. a.i6 = function(a) {
  2239. this.mJ[0] = a
  2240. };
  2241. a.m4 = function() {
  2242. return this.sJ[0]
  2243. };
  2244. a.j6 = function(a) {
  2245. this.sJ[0] = a
  2246. };
  2247. b.i(a, "u", a.j4, a.i6);
  2248. b.i(a, "v", a.m4, a.j6);
  2249. b.gF = function(a, e, f, g, h, k) {
  2250. this.Dd = h || new ArrayBuffer(b.gF.BYTES_PER_ELEMENT);
  2251. this.Ja = k || 0;
  2252. h = this.Dd;
  2253. k = M.BYTES_PER_ELEMENT;
  2254. this.Zr = a ? new M(a.x, a.y, h, 0) : new M(0, 0, h, 0);
  2255. this.cs = e ? new M(e.x, e.y, h, k) : new M(0, 0, h, k);
  2256. this.Pq = f ? new M(f.x, f.y, h, 2 * k) : new M(0, 0, h, 2 * k);
  2257. this.Tq = g ? new M(g.x, g.y, h, 3 * k) : new M(0, 0, h, 3 * k)
  2258. };
  2259. b.gF.BYTES_PER_ELEMENT = 32;
  2260. a = b.gF.prototype;
  2261. a.fH = function() {
  2262. return this.Zr
  2263. };
  2264. a.LI = function(a) {
  2265. this.Zr.x = a.x;
  2266. this.Zr.y = a.y
  2267. };
  2268. a.gH = function() {
  2269. return this.cs
  2270. };
  2271. a.MI = function(a) {
  2272. this.cs.x = a.x;
  2273. this.cs.y = a.y
  2274. };
  2275. a.VG = function() {
  2276. return this.Pq
  2277. };
  2278. a.AI = function(a) {
  2279. this.Pq.x = a.x;
  2280. this.Pq.y =
  2281. a.y
  2282. };
  2283. a.WG = function() {
  2284. return this.Tq
  2285. };
  2286. a.BI = function(a) {
  2287. this.Tq.x = a.x;
  2288. this.Tq.y = a.y
  2289. };
  2290. b.i(a, "tl", a.fH, a.LI);
  2291. b.i(a, "tr", a.gH, a.MI);
  2292. b.i(a, "bl", a.VG, a.AI);
  2293. b.i(a, "br", a.WG, a.BI);
  2294. b.Py = function(a, e, f, g) {
  2295. this.bl = a || new N(0, 0, 0);
  2296. this.br = e || new N(0, 0, 0);
  2297. this.tl = f || new N(0, 0, 0);
  2298. this.tr = g || new N(0, 0, 0)
  2299. };
  2300. b.Gh = function(a, e, f, g, h) {
  2301. this.Dd = g || new ArrayBuffer(b.Gh.BYTES_PER_ELEMENT);
  2302. this.Ja = h || 0;
  2303. g = this.Dd;
  2304. h = this.Ja;
  2305. var k = N.BYTES_PER_ELEMENT;
  2306. this.kb = a ? new N(a.x, a.y, a.z, g, h) : new N(0, 0, 0, g, h);
  2307. this.Tu = e ? b.color(e.r, e.g,
  2308. e.b, e.a, g, h + k) : b.color(0, 0, 0, 0, g, h + k);
  2309. this.Wg = f ? new da(f.u, f.v, g, h + k + b.bf.BYTES_PER_ELEMENT) : new da(0, 0, g, h + k + b.bf.BYTES_PER_ELEMENT)
  2310. };
  2311. b.Gh.BYTES_PER_ELEMENT = 24;
  2312. a = b.Gh.prototype;
  2313. a.iH = function() {
  2314. return this.kb
  2315. };
  2316. a.OI = function(a) {
  2317. var e = this.kb;
  2318. e.x = a.x;
  2319. e.y = a.y;
  2320. e.z = a.z
  2321. };
  2322. a.ZG = function() {
  2323. return this.Tu
  2324. };
  2325. a.CI = function(a) {
  2326. var e = this.Tu;
  2327. e.r = a.r;
  2328. e.g = a.g;
  2329. e.b = a.b;
  2330. e.a = a.a
  2331. };
  2332. a.hH = function() {
  2333. return this.Wg
  2334. };
  2335. a.NI = function(a) {
  2336. this.Wg.u = a.u;
  2337. this.Wg.v = a.v
  2338. };
  2339. b.i(a, "vertices", a.iH, a.OI);
  2340. b.i(a, "colors", a.ZG, a.CI);
  2341. b.i(a, "texCoords",
  2342. a.hH, a.NI);
  2343. b.Zb = function(a, e, f, g, h, k) {
  2344. this.Dd = h || new ArrayBuffer(b.Zb.BYTES_PER_ELEMENT);
  2345. this.Ja = k || 0;
  2346. h = this.Dd;
  2347. k = this.Ja;
  2348. var m = b.Gh.BYTES_PER_ELEMENT;
  2349. this.Zr = a ? new b.Gh(a.vertices, a.colors, a.texCoords, h, k) : new b.Gh(null, null, null, h, k);
  2350. this.Pq = e ? new b.Gh(e.vertices, e.colors, e.texCoords, h, k + m) : new b.Gh(null, null, null, h, k + m);
  2351. this.cs = f ? new b.Gh(f.vertices, f.colors, f.texCoords, h, k + 2 * m) : new b.Gh(null, null, null, h, k + 2 * m);
  2352. this.Tq = g ? new b.Gh(g.vertices, g.colors, g.texCoords, h, k + 3 * m) : new b.Gh(null, null, null,
  2353. h, k + 3 * m)
  2354. };
  2355. b.Zb.BYTES_PER_ELEMENT = 96;
  2356. a = b.Zb.prototype;
  2357. a.fH = function() {
  2358. return this.Zr
  2359. };
  2360. a.LI = function(a) {
  2361. var e = this.Zr;
  2362. e.vertices = a.vertices;
  2363. e.colors = a.colors;
  2364. e.texCoords = a.texCoords
  2365. };
  2366. a.VG = function() {
  2367. return this.Pq
  2368. };
  2369. a.AI = function(a) {
  2370. var e = this.Pq;
  2371. e.vertices = a.vertices;
  2372. e.colors = a.colors;
  2373. e.texCoords = a.texCoords
  2374. };
  2375. a.gH = function() {
  2376. return this.cs
  2377. };
  2378. a.MI = function(a) {
  2379. var e = this.cs;
  2380. e.vertices = a.vertices;
  2381. e.colors = a.colors;
  2382. e.texCoords = a.texCoords
  2383. };
  2384. a.WG = function() {
  2385. return this.Tq
  2386. };
  2387. a.BI = function(a) {
  2388. var e = this.Tq;
  2389. e.vertices =
  2390. a.vertices;
  2391. e.colors = a.colors;
  2392. e.texCoords = a.texCoords
  2393. };
  2394. a.E3 = function() {
  2395. return this.Dd
  2396. };
  2397. b.i(a, "tl", a.fH, a.LI);
  2398. b.i(a, "tr", a.gH, a.MI);
  2399. b.i(a, "bl", a.VG, a.AI);
  2400. b.i(a, "br", a.WG, a.BI);
  2401. b.i(a, "arrayBuffer", a.E3, null);
  2402. b.XO = function() {
  2403. return new b.Zb
  2404. };
  2405. b.WO = function(a) {
  2406. if (!a) return b.XO();
  2407. var e = a.tl,
  2408. f = a.bl,
  2409. g = a.tr;
  2410. a = a.br;
  2411. return {
  2412. tl: {
  2413. vertices: {
  2414. x: e.vertices.x,
  2415. y: e.vertices.y,
  2416. z: e.vertices.z
  2417. },
  2418. colors: {
  2419. r: e.colors.r,
  2420. g: e.colors.g,
  2421. b: e.colors.b,
  2422. a: e.colors.a
  2423. },
  2424. texCoords: {
  2425. u: e.texCoords.u,
  2426. v: e.texCoords.v
  2427. }
  2428. },
  2429. bl: {
  2430. vertices: {
  2431. x: f.vertices.x,
  2432. y: f.vertices.y,
  2433. z: f.vertices.z
  2434. },
  2435. colors: {
  2436. r: f.colors.r,
  2437. g: f.colors.g,
  2438. b: f.colors.b,
  2439. a: f.colors.a
  2440. },
  2441. texCoords: {
  2442. u: f.texCoords.u,
  2443. v: f.texCoords.v
  2444. }
  2445. },
  2446. tr: {
  2447. vertices: {
  2448. x: g.vertices.x,
  2449. y: g.vertices.y,
  2450. z: g.vertices.z
  2451. },
  2452. colors: {
  2453. r: g.colors.r,
  2454. g: g.colors.g,
  2455. b: g.colors.b,
  2456. a: g.colors.a
  2457. },
  2458. texCoords: {
  2459. u: g.texCoords.u,
  2460. v: g.texCoords.v
  2461. }
  2462. },
  2463. br: {
  2464. vertices: {
  2465. x: a.vertices.x,
  2466. y: a.vertices.y,
  2467. z: a.vertices.z
  2468. },
  2469. colors: {
  2470. r: a.colors.r,
  2471. g: a.colors.g,
  2472. b: a.colors.b,
  2473. a: a.colors.a
  2474. },
  2475. texCoords: {
  2476. u: a.texCoords.u,
  2477. v: a.texCoords.v
  2478. }
  2479. }
  2480. }
  2481. };
  2482. b.sia = function(a) {
  2483. if (!a) return [];
  2484. for (var e = [], f = 0; f < a.length; f++) e.push(b.WO(a[f]));
  2485. return e
  2486. };
  2487. b.pe = function(a, e, f, g, h) {
  2488. this.Dd = g || new ArrayBuffer(b.pe.BYTES_PER_ELEMENT);
  2489. this.Ja = h || 0;
  2490. g = this.Dd;
  2491. h = this.Ja;
  2492. var k = M.BYTES_PER_ELEMENT;
  2493. this.kb = a ? new M(a.x, a.y, g, h) : new M(0, 0, g, h);
  2494. this.Tu = e ? b.color(e.r, e.g, e.b, e.a, g, h + k) : b.color(0, 0, 0, 0, g, h + k);
  2495. this.Wg = f ? new da(f.u, f.v, g, h + k + b.bf.BYTES_PER_ELEMENT) : new da(0, 0, g, h + k + b.bf.BYTES_PER_ELEMENT)
  2496. };
  2497. b.pe.BYTES_PER_ELEMENT = 20;
  2498. a = b.pe.prototype;
  2499. a.iH = function() {
  2500. return this.kb
  2501. };
  2502. a.OI = function(a) {
  2503. this.kb.x =
  2504. a.x;
  2505. this.kb.y = a.y
  2506. };
  2507. a.ZG = function() {
  2508. return this.Tu
  2509. };
  2510. a.CI = function(a) {
  2511. var e = this.Tu;
  2512. e.r = a.r;
  2513. e.g = a.g;
  2514. e.b = a.b;
  2515. e.a = a.a
  2516. };
  2517. a.hH = function() {
  2518. return this.Wg
  2519. };
  2520. a.NI = function(a) {
  2521. this.Wg.u = a.u;
  2522. this.Wg.v = a.v
  2523. };
  2524. b.i(a, "vertices", a.iH, a.OI);
  2525. b.i(a, "colors", a.ZG, a.CI);
  2526. b.i(a, "texCoords", a.hH, a.NI);
  2527. b.tc = function(a, e, f, g, h) {
  2528. this.Dd = g || new ArrayBuffer(b.tc.BYTES_PER_ELEMENT);
  2529. this.Ja = h || 0;
  2530. g = this.Dd;
  2531. h = this.Ja;
  2532. var k = b.pe.BYTES_PER_ELEMENT;
  2533. this.gP = a ? new b.pe(a.vertices, a.colors, a.texCoords, g, h) : new b.pe(null, null, null, g, h);
  2534. this.nP =
  2535. e ? new b.pe(e.vertices, e.colors, e.texCoords, g, h + k) : new b.pe(null, null, null, g, h + k);
  2536. this.tP = f ? new b.pe(f.vertices, f.colors, f.texCoords, g, h + 2 * k) : new b.pe(null, null, null, g, h + 2 * k)
  2537. };
  2538. b.tc.BYTES_PER_ELEMENT = 60;
  2539. a = b.tc.prototype;
  2540. a.SG = function() {
  2541. return this.gP
  2542. };
  2543. a.wI = function(a) {
  2544. var e = this.gP;
  2545. e.vertices = a.vertices;
  2546. e.colors = a.colors;
  2547. e.texCoords = a.texCoords
  2548. };
  2549. a.UG = function() {
  2550. return this.nP
  2551. };
  2552. a.zI = function(a) {
  2553. var e = this.nP;
  2554. e.vertices = a.vertices;
  2555. e.colors = a.colors;
  2556. e.texCoords = a.texCoords
  2557. };
  2558. a.I3 = function() {
  2559. return this.tP
  2560. };
  2561. a.S5 = function(a) {
  2562. var e = this.tP;
  2563. e.vertices = a.vertices;
  2564. e.colors = a.colors;
  2565. e.texCoords = a.texCoords
  2566. };
  2567. b.i(a, "a", a.SG, a.wI);
  2568. b.i(a, "b", a.UG, a.zI);
  2569. b.i(a, "c", a.I3, a.S5)
  2570. };
  2571. b.Ea.bF = function() {
  2572. var a = b.color;
  2573. a.n4 = function() {
  2574. return a(255, 255, 255)
  2575. };
  2576. a.o4 = function() {
  2577. return a(255, 255, 0)
  2578. };
  2579. a.G3 = function() {
  2580. return a(0, 0, 255)
  2581. };
  2582. a.S3 = function() {
  2583. return a(0, 255, 0)
  2584. };
  2585. a.d4 = function() {
  2586. return a(255, 0, 0)
  2587. };
  2588. a.W3 = function() {
  2589. return a(255, 0, 255)
  2590. };
  2591. a.F3 = function() {
  2592. return a(0, 0, 0)
  2593. };
  2594. a.b4 = function() {
  2595. return a(255, 127, 0)
  2596. };
  2597. a.Q3 = function() {
  2598. return a(166, 166, 166)
  2599. };
  2600. b.i(a, "WHITE", a.n4);
  2601. b.i(a, "YELLOW", a.o4);
  2602. b.i(a, "BLUE", a.G3);
  2603. b.i(a, "GREEN", a.S3);
  2604. b.i(a, "RED", a.d4);
  2605. b.i(a, "MAGENTA", a.W3);
  2606. b.i(a, "BLACK", a.F3);
  2607. b.i(a,
  2608. "ORANGE", a.b4);
  2609. b.i(a, "GRAY", a.Q3);
  2610. b.Gc.m3 = function() {
  2611. return new b.Gc(b.ONE, b.ZERO)
  2612. };
  2613. b.Gc.L2 = function() {
  2614. return new b.Gc(b.ONE, b.ONE_MINUS_SRC_ALPHA)
  2615. };
  2616. b.Gc.K2 = function() {
  2617. return new b.Gc(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA)
  2618. };
  2619. b.Gc.H2 = function() {
  2620. return new b.Gc(b.SRC_ALPHA, b.ONE)
  2621. };
  2622. b.i(b.Gc, "DISABLE", b.Gc.m3);
  2623. b.i(b.Gc, "ALPHA_PREMULTIPLIED", b.Gc.L2);
  2624. b.i(b.Gc, "ALPHA_NON_PREMULTIPLIED", b.Gc.K2);
  2625. b.i(b.Gc, "ADDITIVE", b.Gc.H2)
  2626. };
  2627. b.bf = function(a, d, e, f) {
  2628. this.r = a || 0;
  2629. this.g = d || 0;
  2630. this.b = e || 0;
  2631. this.a = null == f ? 255 : f
  2632. };
  2633. b.color = function(a, d, e, f) {
  2634. return void 0 === a ? {
  2635. r: 0,
  2636. g: 0,
  2637. b: 0,
  2638. a: 255
  2639. } : b.Je(a) ? b.LV(a) : b.Ww(a) ? {
  2640. r: a.r,
  2641. g: a.g,
  2642. b: a.b,
  2643. a: null == a.a ? 255 : a.a
  2644. } : {
  2645. r: a,
  2646. g: d,
  2647. b: e,
  2648. a: null == f ? 255 : f
  2649. }
  2650. };
  2651. b.Cka = function(a, d) {
  2652. return a.r === d.r && a.g === d.g && a.b === d.b
  2653. };
  2654. function ea() {
  2655. this.timestamp = this.z = this.y = this.x = 0
  2656. }
  2657. function M(a, d) {
  2658. this.x = a || 0;
  2659. this.y = d || 0
  2660. }
  2661. b.cE = function(a, d) {
  2662. return new M(a, d)
  2663. };
  2664. function N(a, d, e) {
  2665. this.x = a || 0;
  2666. this.y = d || 0;
  2667. this.z = e || 0
  2668. }
  2669. b.Jwa = function(a, d, e) {
  2670. return new N(a, d, e)
  2671. };
  2672. function da(a, d) {
  2673. this.u = a || 0;
  2674. this.v = d || 0
  2675. }
  2676. b.ewa = function(a, d) {
  2677. return new da(a, d)
  2678. };
  2679. b.Gc = function(a, d) {
  2680. this.src = a;
  2681. this.$ = d
  2682. };
  2683. b.pka = function() {
  2684. return new b.Gc(b.ONE, b.ZERO)
  2685. };
  2686. b.LV = function(a) {
  2687. a = a.replace(/^#?/, "0x");
  2688. a = parseInt(a);
  2689. return b.color(a >> 16, (a >> 8) % 256, a % 256)
  2690. };
  2691. b.Dka = function(a) {
  2692. var d = a.r.toString(16),
  2693. e = a.g.toString(16),
  2694. f = a.b.toString(16);
  2695. return "#" + (16 > a.r ? "0" + d : d) + (16 > a.g ? "0" + e : e) + (16 > a.b ? "0" + f : f)
  2696. };
  2697. b.dz = 0;
  2698. b.ro = 1;
  2699. b.jO = 2;
  2700. b.Du = 0;
  2701. b.LF = 1;
  2702. b.YO = 2;
  2703. b.Aia = b.sa.extend({
  2704. Er: null,
  2705. iw: null,
  2706. QF: 0,
  2707. ctor: function() {
  2708. this.Er = {};
  2709. this.iw = {};
  2710. this.QF = 2 << (0 | 10 * Math.random())
  2711. },
  2712. z2: function() {
  2713. this.QF++;
  2714. return "key_" + this.QF
  2715. },
  2716. tua: function(a, d) {
  2717. if (null != d) {
  2718. var e = this.z2();
  2719. this.Er[e] = d;
  2720. this.iw[e] = a
  2721. }
  2722. },
  2723. Iba: function(a) {
  2724. if (null == a) return null;
  2725. var d = this.Er,
  2726. e;
  2727. for (e in d)
  2728. if (d[e] === a) return this.iw[e];
  2729. return null
  2730. },
  2731. Hwa: function(a) {
  2732. return this.Iba(a)
  2733. },
  2734. uca: function(a) {
  2735. if (null != a) {
  2736. var d = this.Er,
  2737. e;
  2738. for (e in d)
  2739. if (d[e] === a) {
  2740. delete this.iw[e];
  2741. delete d[e];
  2742. break
  2743. }
  2744. }
  2745. },
  2746. Isa: function(a) {
  2747. if (null !=
  2748. a)
  2749. for (var d = 0; d < a.length; d++) this.uca(a[d])
  2750. },
  2751. b7: function() {
  2752. var a = [],
  2753. d = this.Er,
  2754. e;
  2755. for (e in d) a.push(d[e]);
  2756. return a
  2757. },
  2758. Asa: function() {
  2759. this.Er = {};
  2760. this.iw = {}
  2761. },
  2762. count: function() {
  2763. return this.b7().length
  2764. }
  2765. });
  2766. function fa(a) {
  2767. this.fontName = "Arial";
  2768. this.fontSize = 12;
  2769. this.textAlign = b.ro;
  2770. this.verticalAlign = b.Du;
  2771. this.fillStyle = b.color(255, 255, 255, 255);
  2772. this.boundingHeight = this.boundingWidth = 0;
  2773. this.iM = !1;
  2774. this.strokeStyle = b.color(255, 255, 255, 255);
  2775. this.lineWidth = 1;
  2776. this.fontWeight = this.fontStyle = this.lineHeight = "normal";
  2777. this.eY = !1;
  2778. this.shadowBlur = this.shadowOffsetY = this.shadowOffsetX = 0;
  2779. this.shadowOpacity = 1;
  2780. if (a && a instanceof Object)
  2781. for (var d in a) this[d] = a[d]
  2782. }
  2783. function ga(a) {
  2784. return a.fontStyle + " " + a.fontWeight + " " + a.fontSize + "px/" + (a.lineHeight.charAt ? a.lineHeight : a.lineHeight + "px") + " '" + a.fontName + "'"
  2785. }
  2786. b.W === b.ya && (b.assert(b.Ie(b.Ea.MF), b.o.Qj, "CCTypesWebGL.js"), b.Ea.MF(), delete b.Ea.MF);
  2787. b.assert(b.Ie(b.Ea.bF), b.o.Qj, "CCTypesPropertyDefine.js");
  2788. b.Ea.bF();
  2789. delete b.Ea.bF;
  2790. b.mia = [];
  2791. b.nia = {};
  2792. b.oga = "device-dpi";
  2793. b.BZ = "high-dpi";
  2794. b.qga = "medium-dpi";
  2795. b.pga = "low-dpi";
  2796. b.cg = {
  2797. T: function() {
  2798. this.MV = document.getElementsByTagName("html")[0]
  2799. },
  2800. availWidth: function(a) {
  2801. return a && a !== this.MV ? a.clientWidth : window.innerWidth
  2802. },
  2803. availHeight: function(a) {
  2804. return a && a !== this.MV ? a.clientHeight : window.innerHeight
  2805. },
  2806. fD: {
  2807. width: "device-width",
  2808. "user-scalable": "no"
  2809. },
  2810. EJ: b.fa.di
  2811. }; - 1 < window.navigator.userAgent.indexOf("OS 8_1_") && (b.cg.EJ = b.fa.mq);
  2812. b.fa.xj === b.fa.wq && (b.cg.EJ = b.fa.eo);
  2813. switch (b.cg.EJ) {
  2814. case b.fa.eo:
  2815. b.cg.fD["minimal-ui"] = "true";
  2816. b.cg.availWidth = function(a) {
  2817. return a.clientWidth
  2818. };
  2819. b.cg.availHeight = function(a) {
  2820. return a.clientHeight
  2821. };
  2822. break;
  2823. case b.fa.ao:
  2824. b.cg.__defineGetter__("target-densitydpi", function() {
  2825. return b.view.HB
  2826. });
  2827. case b.fa.JM:
  2828. case b.fa.ay:
  2829. b.cg.availWidth = function(a) {
  2830. return a.clientWidth
  2831. };
  2832. b.cg.availHeight = function(a) {
  2833. return a.clientHeight
  2834. };
  2835. break;
  2836. case b.fa.mq:
  2837. b.cg.T = function(a) {
  2838. if (!a.Hu) {
  2839. var d = function() {
  2840. a.yx(a.Oi.width, a.Oi.height, a.Zi);
  2841. window.removeEventListener("resize",
  2842. d, !1)
  2843. };
  2844. window.addEventListener("resize", d, !1)
  2845. }
  2846. }
  2847. }
  2848. b.vE = b.sa.extend({
  2849. Wz: null,
  2850. hg: null,
  2851. Oi: null,
  2852. ap: null,
  2853. pf: null,
  2854. Cn: null,
  2855. pI: !1,
  2856. $F: !0,
  2857. Fo: 1,
  2858. yJ: "",
  2859. nI: null,
  2860. Wb: 1,
  2861. VR: 1,
  2862. Sc: 1,
  2863. WR: 1,
  2864. xr: 0,
  2865. FH: 5,
  2866. Zi: null,
  2867. vS: null,
  2868. zS: null,
  2869. yS: null,
  2870. wS: null,
  2871. xS: null,
  2872. mv: !1,
  2873. Kia: !1,
  2874. Pja: null,
  2875. cR: null,
  2876. dR: null,
  2877. Jja: !1,
  2878. tG: null,
  2879. an: null,
  2880. QG: 1,
  2881. Hu: !1,
  2882. oR: !0,
  2883. HB: null,
  2884. ctor: function() {
  2885. var a = document,
  2886. d = b.wm,
  2887. e = b.yh;
  2888. b.cg.T(this);
  2889. this.an = b.container.parentNode === a.body ? a.documentElement : b.container.parentNode;
  2890. this.hg = b.size(0, 0);
  2891. this.pH();
  2892. var a = b.ab.width,
  2893. f = b.ab.height;
  2894. this.Oi = b.size(a, f);
  2895. this.ap = b.size(a, f);
  2896. this.pf = b.rect(0, 0, a, f);
  2897. this.Cn = b.rect(0, 0, a, f);
  2898. this.tG = {
  2899. left: 0,
  2900. top: 0
  2901. };
  2902. this.yJ = "Cocos2dHTML5";
  2903. a = b.fa;
  2904. this.rK(a.xj === a.wq || a.xj === a.RE);
  2905. b.jq && b.jq.T(this.Cn);
  2906. this.vS = new b.$f(d.ky, e.zE);
  2907. this.zS = new b.$f(d.m0, e.SHOW_ALL);
  2908. this.yS = new b.$f(d.ky, e.QE);
  2909. this.wS = new b.$f(d.ky, e.AE);
  2910. this.xS = new b.$f(d.ky, e.BE);
  2911. this.cR = b.ab;
  2912. this.dR = b.A;
  2913. this.HB = b.BZ
  2914. },
  2915. Lv: function() {
  2916. var a;
  2917. a = this.yx ? this : b.view;
  2918. var d = a.hg.width,
  2919. e = a.hg.height;
  2920. a.pH();
  2921. if (a.hg.width !== d || a.hg.height !== e) a.nI && a.nI.call(), d = a.ap.width, e = a.ap.height,
  2922. 0 < d && a.yx(d, e, a.Zi)
  2923. },
  2924. Xua: function(a) {
  2925. this.HB = a;
  2926. this.LS()
  2927. },
  2928. Joa: function() {
  2929. return this.HB
  2930. },
  2931. Dca: function(a) {
  2932. a ? this.Hu || (this.Hu = !0, b.$a(window, "resize", this.Lv), b.$a(window, "orientationchange", this.Lv)) : this.Hu && (this.Hu = !1, window.removeEventListener("resize", this.Lv), window.removeEventListener("orientationchange", this.Lv))
  2933. },
  2934. Kua: function(a) {
  2935. if (b.Ie(a) || null == a) this.nI = a
  2936. },
  2937. pH: function() {
  2938. var a = this.hg;
  2939. a.width = b.cg.availWidth(this.an);
  2940. a.height = b.cg.availHeight(this.an)
  2941. },
  2942. Eia: function() {
  2943. var a = this.ap.width,
  2944. d = this.ap.height;
  2945. 0 < a && this.yx(a, d, this.Zi)
  2946. },
  2947. LS: function() {
  2948. if (this.oR) {
  2949. var a = document.getElementById("cocosMetaElement");
  2950. a && document.head.removeChild(a);
  2951. var d, e = (a = document.getElementsByName("viewport")) ? a[0] : null,
  2952. f, a = b.ic("meta");
  2953. a.id = "cocosMetaElement";
  2954. a.name = "viewport";
  2955. a.content = "";
  2956. d = b.cg.fD;
  2957. f = e ? e.content : "";
  2958. for (var g in d) RegExp(g).test(f) || (f += "," + g + "\x3d" + d[g]);
  2959. /^,/.test(f) && (f = f.substr(1));
  2960. a.content = f;
  2961. e && (e.content = f);
  2962. document.head.appendChild(a)
  2963. }
  2964. },
  2965. Dja: function() {
  2966. var a = b.Db();
  2967. this.Sc = this.Wb =
  2968. a
  2969. },
  2970. xja: function() {
  2971. this.Wb = this.VR;
  2972. this.Sc = this.WR
  2973. },
  2974. Fia: function() {},
  2975. Uw: function() {
  2976. this.mv = !0
  2977. },
  2978. R6: function(a) {
  2979. this.oR = a
  2980. },
  2981. rK: function(a) {
  2982. this.pI = a ? !0 : !1
  2983. },
  2984. aqa: function() {
  2985. return this.pI
  2986. },
  2987. Tla: function(a) {
  2988. this.$F = a ? !0 : !1
  2989. },
  2990. Ipa: function() {
  2991. return this.$F
  2992. },
  2993. end: function() {},
  2994. Xpa: function() {
  2995. return null !== this.cR && null !== this.dR
  2996. },
  2997. Vta: function(a) {
  2998. this.QG = a;
  2999. b.P.Sn(b.P.Ls())
  3000. },
  3001. Wva: function() {},
  3002. aua: function() {},
  3003. Gta: function(a, d) {
  3004. this.tG = {
  3005. left: a,
  3006. top: d
  3007. }
  3008. },
  3009. Qma: function() {
  3010. return this.tG
  3011. },
  3012. w9: function() {
  3013. return b.size(this.hg.width,
  3014. this.hg.height)
  3015. },
  3016. Uta: function(a, d) {
  3017. this.hg.width = a;
  3018. this.hg.height = d;
  3019. this.an.style.width = a + "px";
  3020. this.an.style.height = d + "px";
  3021. this.Lv();
  3022. b.P.Sn(b.P.Ls())
  3023. },
  3024. vka: function() {},
  3025. Ps: function() {
  3026. return b.size(this.Cn.width, this.Cn.height)
  3027. },
  3028. CC: function() {
  3029. return b.d(this.Cn.x, this.Cn.y)
  3030. },
  3031. tka: function() {
  3032. return !0
  3033. },
  3034. moa: function() {
  3035. return this.Zi
  3036. },
  3037. Lda: function(a) {
  3038. if (a instanceof b.$f) this.Zi = a;
  3039. else {
  3040. var d = b.$f;
  3041. a === d.zE && (this.Zi = this.vS);
  3042. a === d.SHOW_ALL && (this.Zi = this.zS);
  3043. a === d.QE && (this.Zi = this.yS);
  3044. a === d.AE && (this.Zi =
  3045. this.wS);
  3046. a === d.BE && (this.Zi = this.xS)
  3047. }
  3048. },
  3049. yx: function(a, d, e) {
  3050. if (0 < a || 0 < d)
  3051. if (this.Lda(e), e = this.Zi) {
  3052. e.$p(this);
  3053. b.fa.Mk && this.LS();
  3054. this.pH();
  3055. this.ap.width = this.Oi.width = a;
  3056. this.ap.height = this.Oi.height = d;
  3057. var f = e.apply(this, this.Oi);
  3058. f.scale && 2 === f.scale.length && (this.Wb = f.scale[0], this.Sc = f.scale[1]);
  3059. f.viewport && (a = this.pf, d = this.Cn, f = f.viewport, a.x = f.x, a.y = f.y, a.width = f.width, a.height = f.height, d.x = -a.x / this.Wb, d.y = -a.y / this.Sc, d.width = b.ab.width / this.Wb, d.height = b.ab.height / this.Sc, b.A.Gj && b.A.Gj(a.x, -a.y));
  3060. a = b.P;
  3061. a.nc.width = this.Oi.width;
  3062. a.nc.height = this.Oi.height;
  3063. e.Zp(this);
  3064. b.ld.width = a.nc.width;
  3065. b.ld.height = a.nc.height;
  3066. b.W === b.ya && (a.cr(), a.wX());
  3067. this.VR = this.Wb;
  3068. this.WR = this.Sc;
  3069. b.FZ && b.FZ.wja();
  3070. b.jq && b.jq.T(this.Cn)
  3071. } else b.log(b.o.PZ);
  3072. else b.log(b.o.OZ)
  3073. },
  3074. BK: function() {
  3075. return b.size(this.Oi.width, this.Oi.height)
  3076. },
  3077. lea: function(a, d, e, f) {
  3078. var g = this.QG,
  3079. h = this.Wb,
  3080. k = this.Sc;
  3081. b.A.viewport(a * h * g + this.pf.x * g, d * k * g + this.pf.y * g, e * h * g, f * k * g)
  3082. },
  3083. RD: function(a, d, e, f) {
  3084. var g = this.QG,
  3085. h = this.Wb,
  3086. k = this.Sc;
  3087. b.A.scissor(a * h *
  3088. g + this.pf.x * g, d * k * g + this.pf.y * g, e * h * g, f * k * g)
  3089. },
  3090. cba: function() {
  3091. var a = b.A;
  3092. return a.isEnabled(a.SCISSOR_TEST)
  3093. },
  3094. B$: function() {
  3095. var a = b.A,
  3096. d = this.Wb,
  3097. e = this.Sc,
  3098. a = a.getParameter(a.SCISSOR_BOX);
  3099. return b.rect((a[0] - this.pf.x) / d, (a[1] - this.pf.y) / e, a[2] / d, a[3] / e)
  3100. },
  3101. Bva: function(a) {
  3102. null != a && 0 < a.length && (this.yJ = a)
  3103. },
  3104. gpa: function() {
  3105. return this.yJ
  3106. },
  3107. hpa: function() {
  3108. return this.pf
  3109. },
  3110. oc: function() {
  3111. return this.Wb
  3112. },
  3113. gd: function() {
  3114. return this.Sc
  3115. },
  3116. Zma: function() {
  3117. return this.Fo
  3118. },
  3119. cK: function(a, d, e) {
  3120. return {
  3121. x: this.Fo * (a - e.left),
  3122. y: this.Fo * (e.top + e.height - d)
  3123. }
  3124. },
  3125. f3: function(a, d) {
  3126. var e = this.pf;
  3127. a.x = (this.Fo * (a.x - d.left) - e.x) / this.Wb;
  3128. a.y = (this.Fo * (d.top + d.height - a.y) - e.y) / this.Sc
  3129. },
  3130. Tz: function(a) {
  3131. for (var d = this.pf, e = this.Wb, f = this.Sc, g, h, k, m = 0; m < a.length; m++) g = a[m], h = g.Id, k = g.Xi, g.JI((h.x - d.x) / e, (h.y - d.y) / f), g.kp((k.x - d.x) / e, (k.y - d.y) / f)
  3132. }
  3133. });
  3134. b.vE.aH = function() {
  3135. this.wA || (this.wA = this.wA || new b.vE, this.wA.Uw());
  3136. return this.wA
  3137. };
  3138. b.wm = b.sa.extend({
  3139. $p: function() {},
  3140. apply: function() {},
  3141. Zp: function() {},
  3142. SI: function(a, d, e) {
  3143. var f = a.an;
  3144. b.view.$F && b.fa.Mk && f === document.documentElement && b.screen.p7(f);
  3145. var f = b.ab,
  3146. g = b.container;
  3147. g.style.width = f.style.width = d + "px";
  3148. g.style.height = f.style.height = e + "px";
  3149. g = a.Fo = 1;
  3150. a.pI && (g = a.Fo = window.devicePixelRatio || 1);
  3151. f.width = d * g;
  3152. f.height = e * g;
  3153. b.A.VW && b.A.VW();
  3154. a = document.body;
  3155. var h;
  3156. a && (h = a.style) && (h.paddingTop = h.paddingTop || "0px", h.paddingRight = h.paddingRight || "0px", h.paddingBottom = h.paddingBottom || "0px",
  3157. h.paddingLeft = h.paddingLeft || "0px", h.borderTop = h.borderTop || "0px", h.borderRight = h.borderRight || "0px", h.borderBottom = h.borderBottom || "0px", h.borderLeft = h.borderLeft || "0px", h.marginTop = h.marginTop || "0px", h.marginRight = h.marginRight || "0px", h.marginBottom = h.marginBottom || "0px", h.marginLeft = h.marginLeft || "0px")
  3158. },
  3159. KQ: function() {
  3160. document.body.insertBefore(b.container, document.body.firstChild);
  3161. var a = document.body.style;
  3162. a.width = window.innerWidth + "px";
  3163. a.height = window.innerHeight + "px";
  3164. a.overflow = "hidden";
  3165. a = b.container.style;
  3166. a.position = "fixed";
  3167. a.left = a.top = "0px";
  3168. document.body.scrollTop = 0
  3169. }
  3170. });
  3171. b.yh = b.sa.extend({
  3172. oI: {
  3173. scale: [1, 1],
  3174. viewport: null
  3175. },
  3176. Ou: function(a, d, e, f, g, h) {
  3177. 2 > Math.abs(a - e) && (e = a);
  3178. 2 > Math.abs(d - f) && (f = d);
  3179. a = b.rect(Math.round((a - e) / 2), Math.round((d - f) / 2), e, f);
  3180. this.oI.scale = [g, h];
  3181. this.oI.viewport = a;
  3182. return this.oI
  3183. },
  3184. $p: function() {},
  3185. apply: function() {
  3186. return {
  3187. scale: [1, 1]
  3188. }
  3189. },
  3190. Zp: function() {}
  3191. });
  3192. (function() {
  3193. var a = b.wm.extend({
  3194. apply: function(a) {
  3195. this.SI(a, a.hg.width, a.hg.height)
  3196. }
  3197. }),
  3198. d = b.wm.extend({
  3199. apply: function(a, d) {
  3200. var e = a.hg.width,
  3201. f = a.hg.height,
  3202. g = b.container.style,
  3203. s = d.width,
  3204. t = d.height,
  3205. v = e / s,
  3206. w = f / t,
  3207. x, u;
  3208. v < w ? (x = e, u = t * v) : (x = s * w, u = f);
  3209. s = Math.round((e - x) / 2);
  3210. u = Math.round((f - u) / 2);
  3211. this.SI(a, e - 2 * s, f - 2 * u);
  3212. g.marginLeft = s + "px";
  3213. g.marginRight = s + "px";
  3214. g.marginTop = u + "px";
  3215. g.marginBottom = u + "px"
  3216. }
  3217. });
  3218. a.extend({
  3219. $p: function(a) {
  3220. this._super(a);
  3221. a.an = document.documentElement
  3222. },
  3223. apply: function(a) {
  3224. this._super(a);
  3225. this.KQ()
  3226. }
  3227. });
  3228. d.extend({
  3229. $p: function(a) {
  3230. this._super(a);
  3231. a.an = document.documentElement
  3232. },
  3233. apply: function(a, d) {
  3234. this._super(a, d);
  3235. this.KQ()
  3236. }
  3237. });
  3238. var e = b.wm.extend({
  3239. apply: function(a) {
  3240. this.SI(a, b.ab.width, b.ab.height)
  3241. }
  3242. });
  3243. b.wm.ky = new a;
  3244. b.wm.m0 = new d;
  3245. b.wm.tha = new e;
  3246. var a = b.yh.extend({
  3247. apply: function(a, d) {
  3248. var e = b.ab.width,
  3249. f = b.ab.height;
  3250. return this.Ou(e, f, e, f, e / d.width, f / d.height)
  3251. }
  3252. }),
  3253. d = b.yh.extend({
  3254. apply: function(a, d) {
  3255. var e = b.ab.width,
  3256. f = b.ab.height,
  3257. g = d.width,
  3258. s = d.height,
  3259. t = e / g,
  3260. v = f / s,
  3261. w = 0,
  3262. x, u;
  3263. t < v ? (w = t, x = e, u = s * w) : (w = v, x = g * w, u = f);
  3264. return this.Ou(e,
  3265. f, x, u, w, w)
  3266. }
  3267. }),
  3268. e = b.yh.extend({
  3269. apply: function(a, d) {
  3270. var e = b.ab.width,
  3271. f = b.ab.height,
  3272. g = d.width,
  3273. s = d.height,
  3274. t = e / g,
  3275. v = f / s,
  3276. w, x, u;
  3277. t < v ? (w = v, x = g * w, u = f) : (w = t, x = e, u = s * w);
  3278. return this.Ou(e, f, x, u, w, w)
  3279. }
  3280. }),
  3281. f = b.yh.extend({
  3282. apply: function(a, d) {
  3283. var e = b.ab.width,
  3284. f = b.ab.height,
  3285. g = f / d.height;
  3286. return this.Ou(e, f, e, f, g, g)
  3287. },
  3288. Zp: function(a) {
  3289. b.P.nc = a.Ps()
  3290. }
  3291. }),
  3292. g = b.yh.extend({
  3293. apply: function(a, d) {
  3294. var e = b.ab.width,
  3295. f = b.ab.height,
  3296. g = e / d.width;
  3297. return this.Ou(e, f, e, f, g, g)
  3298. },
  3299. Zp: function(a) {
  3300. b.P.nc = a.Ps()
  3301. }
  3302. });
  3303. b.yh.zE = new a;
  3304. b.yh.SHOW_ALL = new d;
  3305. b.yh.QE =
  3306. new e;
  3307. b.yh.AE = new f;
  3308. b.yh.BE = new g
  3309. })();
  3310. b.$f = b.sa.extend({
  3311. Qz: null,
  3312. Rz: null,
  3313. ctor: function(a, d) {
  3314. this.Yca(a);
  3315. this.$ca(d)
  3316. },
  3317. $p: function(a) {
  3318. this.Qz.$p(a);
  3319. this.Rz.$p(a)
  3320. },
  3321. apply: function(a, d) {
  3322. this.Qz.apply(a, d);
  3323. return this.Rz.apply(a, d)
  3324. },
  3325. Zp: function(a) {
  3326. this.Qz.Zp(a);
  3327. this.Rz.Zp(a)
  3328. },
  3329. Yca: function(a) {
  3330. a instanceof b.wm && (this.Qz = a)
  3331. },
  3332. $ca: function(a) {
  3333. a instanceof b.yh && (this.Rz = a)
  3334. }
  3335. });
  3336. b.$f.zE = 0;
  3337. b.$f.QE = 1;
  3338. b.$f.SHOW_ALL = 2;
  3339. b.$f.AE = 3;
  3340. b.$f.BE = 4;
  3341. b.$f.VO = 5;
  3342. b.screen = {
  3343. EB: !1,
  3344. cI: null,
  3345. kJ: "",
  3346. Io: null,
  3347. v3: [
  3348. ["requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenEnabled", "fullscreenElement"],
  3349. ["requestFullScreen", "exitFullScreen", "fullScreenchange", "fullScreenEnabled", "fullScreenElement"],
  3350. ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitIsFullScreen", "webkitCurrentFullScreenElement"],
  3351. ["mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozFullScreen", "mozFullScreenElement"],
  3352. ["msRequestFullscreen",
  3353. "msExitFullscreen", "MSFullscreenChange", "msFullscreenEnabled", "msFullscreenElement"
  3354. ]
  3355. ],
  3356. T: function() {
  3357. this.Io = {};
  3358. var a, d, e = this.v3,
  3359. f;
  3360. a = 0;
  3361. for (l = e.length; a < l; a++)
  3362. if ((d = e[a]) && d[1] in document) {
  3363. a = 0;
  3364. for (f = d.length; a < f; a++) this.Io[e[0][a]] = d[a];
  3365. break
  3366. }
  3367. this.EB = "undefined" !== typeof this.Io.requestFullscreen;
  3368. this.kJ = "ontouchstart" in window ? "touchstart" : "mousedown"
  3369. },
  3370. fullScreen: function() {
  3371. return this.EB && document[this.Io.fullscreenElement]
  3372. },
  3373. UW: function(a, d) {
  3374. if (this.EB) {
  3375. a = a || document.documentElement;
  3376. if (d) {
  3377. var e =
  3378. this.Io.tma;
  3379. this.cI && document.removeEventListener(e, this.cI);
  3380. this.cI = d;
  3381. b.$a(document, e, d, !1)
  3382. }
  3383. return a[this.Io.requestFullscreen]()
  3384. }
  3385. },
  3386. Yla: function() {
  3387. return this.EB ? document[this.Io.exitFullscreen]() : !0
  3388. },
  3389. p7: function(a, d) {
  3390. function e() {
  3391. g.UW(a, d);
  3392. f.removeEventListener(g.kJ, e)
  3393. }
  3394. a = a || document.body;
  3395. var f = b.ab || a,
  3396. g = this;
  3397. this.UW(a, d);
  3398. b.$a(f, this.kJ, e)
  3399. }
  3400. };
  3401. b.screen.T();
  3402. b.jq = {
  3403. tY: b.d(0, 0),
  3404. uY: b.d(0, 0),
  3405. top: b.d(0, 0),
  3406. bU: b.d(0, 0),
  3407. cU: b.d(0, 0),
  3408. bottom: b.d(0, 0),
  3409. tw: b.d(0, 0),
  3410. left: b.d(0, 0),
  3411. right: b.d(0, 0),
  3412. width: 0,
  3413. height: 0,
  3414. T: function(a) {
  3415. var d = this.width = a.width,
  3416. e = this.height = a.height,
  3417. f = a.x;
  3418. a = a.y;
  3419. var g = a + e,
  3420. h = f + d;
  3421. this.tY.x = f;
  3422. this.tY.y = g;
  3423. this.uY.x = h;
  3424. this.uY.y = g;
  3425. this.top.x = f + d / 2;
  3426. this.top.y = g;
  3427. this.bU.x = f;
  3428. this.bU.y = a;
  3429. this.cU.x = h;
  3430. this.cU.y = a;
  3431. this.bottom.x = f + d / 2;
  3432. this.bottom.y = a;
  3433. this.tw.x = f + d / 2;
  3434. this.tw.y = a + e / 2;
  3435. this.left.x = f;
  3436. this.left.y = a + e / 2;
  3437. this.right.x = h;
  3438. this.right.y = a + e / 2
  3439. }
  3440. };
  3441. b.d2 = -90;
  3442. b.e2 = 90;
  3443. b.f2 = 180;
  3444. b.oia = 0;
  3445. b.aW = {
  3446. Hr: !1,
  3447. uR: !1,
  3448. dS: b.d(0, 0),
  3449. v5: b.d(0, 0),
  3450. eS: [],
  3451. dI: 0,
  3452. sd: [],
  3453. lJ: {},
  3454. xr: 0,
  3455. FH: 5,
  3456. TF: !1,
  3457. zz: 1 / 30,
  3458. iP: 1,
  3459. Fq: 0,
  3460. UF: null,
  3461. yz: null,
  3462. k4: function() {
  3463. for (var a = this.xr, d = 0; d < this.FH; d++) {
  3464. if (!(a & 1)) return this.xr |= 1 << d, d;
  3465. a >>= 1
  3466. }
  3467. return -1
  3468. },
  3469. A5: function(a) {
  3470. 0 > a || a >= this.FH || (a = ~(1 << a), this.xr &= a)
  3471. },
  3472. bn: null,
  3473. YK: function(a) {
  3474. for (var d, e, f, g = [], h = this.lJ, k = 0, m = a.length; k < m; k++)
  3475. if (d = a[k], f = d.Ph, e = h[f], null == e) {
  3476. var n = this.k4(); - 1 === n ? b.log(b.o.Laa, n) : (e = this.sd[n] = new b.mz(d.Id.x, d.Id.y, d.Ph), e.kp(d.Xi), h[f] = n, g.push(e))
  3477. }
  3478. 0 < g.length &&
  3479. (this.bn.Tz(g), a = new b.Ah(g), a.Ym = b.Ah.rq.fE, b.ua.dispatchEvent(a))
  3480. },
  3481. ZK: function(a) {
  3482. for (var d, e, f = [], g = this.sd, h = 0, k = a.length; h < k; h++) d = a[h], e = d.Ph, e = this.lJ[e], null != e && g[e] && (g[e].JI(d.Id), g[e].kp(d.Xi), f.push(g[e]));
  3483. 0 < f.length && (this.bn.Tz(f), a = new b.Ah(f), a.Ym = b.Ah.rq.LE, b.ua.dispatchEvent(a))
  3484. },
  3485. FC: function(a) {
  3486. a = this.vV(a);
  3487. 0 < a.length && (this.bn.Tz(a), a = new b.Ah(a), a.Ym = b.Ah.rq.wE, b.ua.dispatchEvent(a))
  3488. },
  3489. IV: function(a) {
  3490. a = this.vV(a);
  3491. 0 < a.length && (this.bn.Tz(a), a = new b.Ah(a), a.Ym = b.Ah.rq.jE, b.ua.dispatchEvent(a))
  3492. },
  3493. vV: function(a) {
  3494. for (var d, e, f, g = [], h = this.sd, k = this.lJ, m = 0, n = a.length; m < n; m++) d = a[m], f = d.Ph, e = k[f], null != e && h[e] && (h[e].JI(d.Id), h[e].kp(d.Xi), g.push(h[e]), this.A5(e), delete k[f]);
  3495. return g
  3496. },
  3497. oj: function(a) {
  3498. var d = document.documentElement,
  3499. e = window,
  3500. f = null,
  3501. f = b.Ie(a.getBoundingClientRect) ? a.getBoundingClientRect() : a instanceof HTMLCanvasElement ? {
  3502. left: 0,
  3503. top: 0,
  3504. width: a.width,
  3505. height: a.height
  3506. } : {
  3507. left: 0,
  3508. top: 0,
  3509. width: parseInt(a.style.width),
  3510. height: parseInt(a.style.height)
  3511. };
  3512. return {
  3513. left: f.left + e.pageXOffset - d.clientLeft,
  3514. top: f.top + e.pageYOffset - d.clientTop,
  3515. width: f.width,
  3516. height: f.height
  3517. }
  3518. },
  3519. r$: function(a) {
  3520. for (var d = null, e = this.eS, f = a.Ph, g = e.length - 1; 0 <= g; g--)
  3521. if (e[g].Ph === f) {
  3522. d = e[g];
  3523. break
  3524. }
  3525. d || (d = a);
  3526. return d
  3527. },
  3528. Jda: function(a) {
  3529. for (var d = !1, e = this.eS, f = a.Ph, g = e.length - 1; 0 <= g; g--)
  3530. if (e[g].Ph === f) {
  3531. e[g] = a;
  3532. d = !0;
  3533. break
  3534. }
  3535. d || (50 >= e.length ? e.push(a) : (e[this.dI] = a, this.dI = (this.dI + 1) % 50))
  3536. },
  3537. Mw: function(a, d, e) {
  3538. var f = this.dS;
  3539. a = this.bn.cK(a, d, e);
  3540. d = new b.mz(a.x, a.y);
  3541. d.kp(f.x, f.y);
  3542. f.x = a.x;
  3543. f.y = a.y;
  3544. return d
  3545. },
  3546. Is: function(a, d, e) {
  3547. var f = this.v5;
  3548. this.bn.f3(a,
  3549. d);
  3550. d = new b.md(e);
  3551. d.pda(a.x, a.y);
  3552. d.a6(f.x, f.y);
  3553. f.x = a.x;
  3554. f.y = a.y;
  3555. return d
  3556. },
  3557. Ks: function(a, d) {
  3558. if (null != a.pageX) return {
  3559. x: a.pageX,
  3560. y: a.pageY
  3561. };
  3562. d.left -= document.body.scrollLeft;
  3563. d.top -= document.body.scrollTop;
  3564. return {
  3565. x: a.clientX,
  3566. y: a.clientY
  3567. }
  3568. },
  3569. AC: function(a, d) {
  3570. for (var e = [], f = this.bn, g, h, k = this.dS, m = a.changedTouches.length, n = 0; n < m; n++)
  3571. if (g = a.changedTouches[n]) {
  3572. var p;
  3573. p = b.fa.bo === b.fa.di ? f.cK(g.pageX, g.pageY, d) : f.cK(g.clientX, g.clientY, d);
  3574. null != g.identifier ? (g = new b.mz(p.x, p.y, g.identifier), h = this.r$(g).hi(), g.kp(h.x,
  3575. h.y), this.Jda(g)) : (g = new b.mz(p.x, p.y), g.kp(k.x, k.y));
  3576. k.x = p.x;
  3577. k.y = p.y;
  3578. e.push(g)
  3579. }
  3580. return e
  3581. },
  3582. nca: function(a) {
  3583. if (!this.uR) {
  3584. this.bn = b.view;
  3585. var d = this,
  3586. e = "mouse" in b.fa.VJ,
  3587. f = "touches" in b.fa.VJ,
  3588. g = !1;
  3589. b.fa.Mk && (g = !0);
  3590. e && (b.$a(window, "mousedown", function() {
  3591. d.Hr = !0
  3592. }, !1), b.$a(window, "mouseup", function(e) {
  3593. if (!g) {
  3594. var f = d.Hr;
  3595. d.Hr = !1;
  3596. if (f) {
  3597. var f = d.oj(a),
  3598. h = d.Ks(e, f);
  3599. b.mx(new b.Dh(f.left, f.top, f.width, f.height), h) || (d.FC([d.Mw(h.x, h.y, f)]), f = d.Is(h, f, b.md.KF), f.dq(e.button), b.ua.dispatchEvent(f))
  3600. }
  3601. }
  3602. }, !1), b.$a(a, "mousedown",
  3603. function(e) {
  3604. if (!g) {
  3605. d.Hr = !0;
  3606. var f = d.oj(a),
  3607. h = d.Ks(e, f);
  3608. d.YK([d.Mw(h.x, h.y, f)]);
  3609. f = d.Is(h, f, b.md.XM);
  3610. f.dq(e.button);
  3611. b.ua.dispatchEvent(f);
  3612. e.stopPropagation();
  3613. e.preventDefault();
  3614. a.focus()
  3615. }
  3616. }, !1), b.$a(a, "mouseup", function(e) {
  3617. if (!g) {
  3618. d.Hr = !1;
  3619. var f = d.oj(a),
  3620. h = d.Ks(e, f);
  3621. d.FC([d.Mw(h.x, h.y, f)]);
  3622. f = d.Is(h, f, b.md.KF);
  3623. f.dq(e.button);
  3624. b.ua.dispatchEvent(f);
  3625. e.stopPropagation();
  3626. e.preventDefault()
  3627. }
  3628. }, !1), b.$a(a, "mousemove", function(e) {
  3629. if (!g) {
  3630. var f = d.oj(a),
  3631. h = d.Ks(e, f);
  3632. d.ZK([d.Mw(h.x, h.y, f)]);
  3633. f = d.Is(h, f, b.md.nN);
  3634. d.Hr ? f.dq(e.button) :
  3635. f.dq(null);
  3636. b.ua.dispatchEvent(f);
  3637. e.stopPropagation();
  3638. e.preventDefault()
  3639. }
  3640. }, !1), b.$a(a, "mousewheel", function(e) {
  3641. var f = d.oj(a),
  3642. g = d.Ks(e, f),
  3643. f = d.Is(g, f, b.md.lF);
  3644. f.dq(e.button);
  3645. f.WX(0, e.wheelDelta);
  3646. b.ua.dispatchEvent(f);
  3647. e.stopPropagation();
  3648. e.preventDefault()
  3649. }, !1), b.$a(a, "DOMMouseScroll", function(e) {
  3650. var f = d.oj(a),
  3651. g = d.Ks(e, f),
  3652. f = d.Is(g, f, b.md.lF);
  3653. f.dq(e.button);
  3654. f.WX(0, -120 * e.detail);
  3655. b.ua.dispatchEvent(f);
  3656. e.stopPropagation();
  3657. e.preventDefault()
  3658. }, !1));
  3659. if (window.navigator.msPointerEnabled) {
  3660. var e = {
  3661. MSPointerDown: d.YK,
  3662. MSPointerMove: d.ZK,
  3663. MSPointerUp: d.FC,
  3664. MSPointerCancel: d.IV
  3665. },
  3666. h;
  3667. for (h in e)(function(e, f) {
  3668. b.$a(a, e, function(e) {
  3669. var g = d.oj(a);
  3670. g.left -= document.documentElement.scrollLeft;
  3671. g.top -= document.documentElement.scrollTop;
  3672. f.call(d, [d.Mw(e.clientX, e.clientY, g)]);
  3673. e.stopPropagation()
  3674. }, !1)
  3675. })(h, e[h])
  3676. }
  3677. f && (b.$a(a, "touchstart", function(e) {
  3678. if (e.changedTouches) {
  3679. var f = d.oj(a);
  3680. f.left -= document.body.scrollLeft;
  3681. f.top -= document.body.scrollTop;
  3682. d.YK(d.AC(e, f));
  3683. e.stopPropagation();
  3684. e.preventDefault();
  3685. a.focus()
  3686. }
  3687. }, !1), b.$a(a, "touchmove",
  3688. function(e) {
  3689. if (e.changedTouches) {
  3690. var f = d.oj(a);
  3691. f.left -= document.body.scrollLeft;
  3692. f.top -= document.body.scrollTop;
  3693. d.ZK(d.AC(e, f));
  3694. e.stopPropagation();
  3695. e.preventDefault()
  3696. }
  3697. }, !1), b.$a(a, "touchend", function(e) {
  3698. if (e.changedTouches) {
  3699. var f = d.oj(a);
  3700. f.left -= document.body.scrollLeft;
  3701. f.top -= document.body.scrollTop;
  3702. d.FC(d.AC(e, f));
  3703. e.stopPropagation();
  3704. e.preventDefault()
  3705. }
  3706. }, !1), b.$a(a, "touchcancel", function(e) {
  3707. if (e.changedTouches) {
  3708. var f = d.oj(a);
  3709. f.left -= document.body.scrollLeft;
  3710. f.top -= document.body.scrollTop;
  3711. d.IV(d.AC(e,
  3712. f));
  3713. e.stopPropagation();
  3714. e.preventDefault()
  3715. }
  3716. }, !1));
  3717. this.qS();
  3718. this.pS();
  3719. this.uR = !0
  3720. }
  3721. },
  3722. qS: function() {},
  3723. pS: function() {},
  3724. update: function(a) {
  3725. this.Fq > this.zz && (this.Fq -= this.zz, b.ua.dispatchEvent(new b.UZ(this.UF)));
  3726. this.Fq += a
  3727. }
  3728. };
  3729. var r = b.aW;
  3730. r.nta = function(a) {
  3731. this.TF !== a && (this.TF = a, a = b.P.Jn(), this.Fq = 0, a.ot(this))
  3732. };
  3733. r.ota = function(a) {
  3734. this.zz !== a && (this.zz = a)
  3735. };
  3736. r.qS = function() {
  3737. b.$a(b.ab, "keydown", function(a) {
  3738. b.ua.dispatchEvent(new b.aN(a.keyCode, !0));
  3739. a.stopPropagation();
  3740. a.preventDefault()
  3741. }, !1);
  3742. b.$a(b.ab, "keyup", function(a) {
  3743. b.ua.dispatchEvent(new b.aN(a.keyCode, !1));
  3744. a.stopPropagation();
  3745. a.preventDefault()
  3746. }, !1)
  3747. };
  3748. r.pS = function() {
  3749. var a = window;
  3750. this.UF = new ea;
  3751. this.yz = a.DeviceMotionEvent || a.DeviceOrientationEvent;
  3752. b.fa.di === b.fa.GM && (this.yz = window.DeviceOrientationEvent);
  3753. b.$a(a, this.yz === a.DeviceMotionEvent ? "devicemotion" : "deviceorientation", this.b8.bind(this), !1)
  3754. };
  3755. r.b8 = function(a) {
  3756. var d = window;
  3757. if (this.TF) {
  3758. var e = this.UF,
  3759. f, g, h;
  3760. this.yz === window.DeviceMotionEvent ? (h = a.accelerationIncludingGravity, f = this.iP * h.x * 0.1, g = this.iP * h.y * 0.1, h = 0.1 * h.z) : (f = a.gamma / 90 * 0.981, g = 0.981 * -(a.beta / 90), h = a.alpha / 90 * 0.981);
  3761. b.fa.xj === b.fa.My ? (e.x = -f, e.y = -g) : (e.x = f, e.y = g);
  3762. e.z = h;
  3763. e.timestamp = a.timeStamp || Date.now();
  3764. a = e.x;
  3765. d.orientation === b.e2 ? (e.x = -e.y, e.y = a) : d.orientation === b.d2 ? (e.x = e.y, e.y = -a) : d.orientation === b.f2 && (e.x = -e.x, e.y = -e.y)
  3766. }
  3767. };
  3768. delete r;
  3769. b.Mfa = function(a, d, e, f, g, h) {
  3770. this.a = a;
  3771. this.b = d;
  3772. this.c = e;
  3773. this.K = f;
  3774. this.ma = g;
  3775. this.na = h
  3776. };
  3777. b.S6 = function(a, d) {
  3778. return {
  3779. a: 1,
  3780. b: 0,
  3781. c: 0,
  3782. K: 1,
  3783. ma: a,
  3784. na: d
  3785. }
  3786. };
  3787. b.hh = function(a, d, e) {
  3788. var f;
  3789. void 0 === e ? (e = d, f = a.x, a = a.y) : (f = a, a = d);
  3790. return {
  3791. x: e.a * f + e.c * a + e.ma,
  3792. y: e.b * f + e.K * a + e.na
  3793. }
  3794. };
  3795. b.tja = function(a, d, e) {
  3796. return b.hh(a, d, e)
  3797. };
  3798. b.Fva = function(a, d) {
  3799. return {
  3800. width: d.a * a.width + d.c * a.height,
  3801. height: d.b * a.width + d.K * a.height
  3802. }
  3803. };
  3804. b.eka = function() {
  3805. return {
  3806. a: 1,
  3807. b: 0,
  3808. c: 0,
  3809. K: 1,
  3810. ma: 0,
  3811. na: 0
  3812. }
  3813. };
  3814. b.dka = function() {
  3815. return {
  3816. a: 1,
  3817. b: 0,
  3818. c: 0,
  3819. K: 1,
  3820. ma: 0,
  3821. na: 0
  3822. }
  3823. };
  3824. b.oi = function(a, d) {
  3825. var e = b.jt(a),
  3826. f = b.it(a),
  3827. g = b.ox(a),
  3828. h = b.px(a),
  3829. k = b.hh(f, e, d),
  3830. e = b.hh(g, e, d),
  3831. f = b.hh(f, h, d),
  3832. m = b.hh(g, h, d),
  3833. g = Math.min(k.x, e.x, f.x, m.x),
  3834. h = Math.max(k.x, e.x, f.x, m.x),
  3835. n = Math.min(k.y, e.y, f.y, m.y),
  3836. k = Math.max(k.y, e.y, f.y, m.y);
  3837. return b.rect(g, n, h - g, k - n)
  3838. };
  3839. b.Yi = function(a, d) {
  3840. var e = b.jt(a),
  3841. f = b.it(a),
  3842. g = b.ox(a),
  3843. h = b.px(a),
  3844. k = b.hh(f, e, d),
  3845. e = b.hh(g, e, d),
  3846. f = b.hh(f, h, d),
  3847. m = b.hh(g, h, d),
  3848. g = Math.min(k.x, e.x, f.x, m.x),
  3849. h = Math.max(k.x, e.x, f.x, m.x),
  3850. n = Math.min(k.y, e.y, f.y, m.y),
  3851. k = Math.max(k.y, e.y, f.y, m.y);
  3852. a.x = g;
  3853. a.y = n;
  3854. a.width = h - g;
  3855. a.height = k - n;
  3856. return a
  3857. };
  3858. b.JJ = function(a, d, e) {
  3859. return {
  3860. a: a.a,
  3861. b: a.b,
  3862. c: a.c,
  3863. K: a.K,
  3864. ma: a.ma + a.a * d + a.c * e,
  3865. na: a.na + a.b * d + a.K * e
  3866. }
  3867. };
  3868. b.T6 = function(a, d, e) {
  3869. return {
  3870. a: a.a * d,
  3871. b: a.b * d,
  3872. c: a.c * e,
  3873. K: a.K * e,
  3874. ma: a.ma,
  3875. na: a.na
  3876. }
  3877. };
  3878. b.TT = function(a, d) {
  3879. var e = Math.sin(d),
  3880. f = Math.cos(d);
  3881. return {
  3882. a: a.a * f + a.c * e,
  3883. b: a.b * f + a.K * e,
  3884. c: a.c * f - a.a * e,
  3885. K: a.K * f - a.b * e,
  3886. ma: a.ma,
  3887. na: a.na
  3888. }
  3889. };
  3890. b.Dp = function(a, d) {
  3891. return {
  3892. a: a.a * d.a + a.b * d.c,
  3893. b: a.a * d.b + a.b * d.K,
  3894. c: a.c * d.a + a.K * d.c,
  3895. K: a.c * d.b + a.K * d.K,
  3896. ma: a.ma * d.a + a.na * d.c + d.ma,
  3897. na: a.ma * d.b + a.na * d.K + d.na
  3898. }
  3899. };
  3900. b.cka = function(a, d) {
  3901. return a.a === d.a && a.b === d.b && a.c === d.c && a.K === d.K && a.ma === d.ma && a.na === d.na
  3902. };
  3903. b.ST = function(a) {
  3904. var d = 1 / (a.a * a.K - a.b * a.c);
  3905. return {
  3906. a: d * a.K,
  3907. b: -d * a.b,
  3908. c: -d * a.c,
  3909. K: d * a.a,
  3910. ma: d * (a.c * a.na - a.K * a.ma),
  3911. na: d * (a.b * a.ma - a.a * a.na)
  3912. }
  3913. };
  3914. b.wN = parseFloat("1.192092896e-07F");
  3915. b.zL = function(a) {
  3916. return b.d(-a.x, -a.y)
  3917. };
  3918. b.yj = function(a, d) {
  3919. return b.d(a.x + d.x, a.y + d.y)
  3920. };
  3921. b.zd = function(a, d) {
  3922. return b.d(a.x - d.x, a.y - d.y)
  3923. };
  3924. b.lm = function(a, d) {
  3925. return b.d(a.x * d, a.y * d)
  3926. };
  3927. b.yL = function(a, d) {
  3928. return b.lm(b.yj(a, d), 0.5)
  3929. };
  3930. b.et = function(a, d) {
  3931. return a.x * d.x + a.y * d.y
  3932. };
  3933. b.Mba = function(a, d) {
  3934. return a.x * d.y - a.y * d.x
  3935. };
  3936. b.oD = function(a) {
  3937. return b.d(-a.y, a.x)
  3938. };
  3939. b.Ira = function(a) {
  3940. return b.d(a.y, -a.x)
  3941. };
  3942. b.Hra = function(a, d) {
  3943. return b.lm(d, b.et(a, d) / b.et(d, d))
  3944. };
  3945. b.Jra = function(a, d) {
  3946. return b.d(a.x * d.x - a.y * d.y, a.x * d.y + a.y * d.x)
  3947. };
  3948. b.Mra = function(a, d) {
  3949. return b.d(a.x * d.x + a.y * d.y, a.y * d.x - a.x * d.y)
  3950. };
  3951. b.FW = function(a) {
  3952. return b.et(a, a)
  3953. };
  3954. b.EW = function(a, d) {
  3955. return b.FW(b.zd(a, d))
  3956. };
  3957. b.Xp = function(a) {
  3958. return Math.sqrt(b.FW(a))
  3959. };
  3960. b.DW = function(a, d) {
  3961. return b.Xp(b.zd(a, d))
  3962. };
  3963. b.ni = function(a) {
  3964. var d = b.Xp(a);
  3965. return 0 === d ? b.d(a) : b.lm(a, 1 / d)
  3966. };
  3967. b.Dra = function(a) {
  3968. return b.d(Math.cos(a), Math.sin(a))
  3969. };
  3970. b.Oba = function(a) {
  3971. return Math.atan2(a.y, a.x)
  3972. };
  3973. b.Zg = function(a, d, e) {
  3974. if (d > e) {
  3975. var f = d;
  3976. d = e;
  3977. e = f
  3978. }
  3979. return a < d ? d : a < e ? a : e
  3980. };
  3981. b.BW = function(a) {
  3982. var d = b.d(0, 0),
  3983. e = b.d(1, 1);
  3984. return b.d(b.Zg(a.x, d.x, e.x), b.Zg(a.y, d.y, e.y))
  3985. };
  3986. b.Era = function(a) {
  3987. return b.d(a.width, a.height)
  3988. };
  3989. b.Cra = function(a, d) {
  3990. return b.d(d(a.x), d(a.y))
  3991. };
  3992. b.GW = function(a, d, e) {
  3993. return b.yj(b.lm(a, 1 - e), b.lm(d, e))
  3994. };
  3995. b.Fra = function(a, d, e) {
  3996. return a.x - e <= d.x && d.x <= a.x + e && a.y - e <= d.y && d.y <= a.y + e ? !0 : !1
  3997. };
  3998. b.Bra = function(a, d) {
  3999. return b.d(a.x * d.x, a.y * d.y)
  4000. };
  4001. b.AW = function(a, d) {
  4002. var e = b.ni(a),
  4003. f = b.ni(d),
  4004. e = Math.atan2(e.x * f.y - e.y * f.x, b.et(e, f));
  4005. return Math.abs(e) < b.wN ? 0 : e
  4006. };
  4007. b.Ara = function(a, d) {
  4008. var e = Math.acos(b.et(b.ni(a), b.ni(d)));
  4009. return Math.abs(e) < b.wN ? 0 : e
  4010. };
  4011. b.HW = function(a, d, e) {
  4012. a = b.zd(a, d);
  4013. var f = Math.cos(e);
  4014. e = Math.sin(e);
  4015. var g = a.x;
  4016. a.x = g * f - a.y * e + d.x;
  4017. a.y = g * e + a.y * f + d.y;
  4018. return a
  4019. };
  4020. b.xL = function(a, d, e, f, g) {
  4021. if (a.x === d.x && a.y === d.y || e.x === f.x && e.y === f.y) return !1;
  4022. var h = d.x - a.x;
  4023. d = d.y - a.y;
  4024. var k = f.x - e.x;
  4025. f = f.y - e.y;
  4026. var m = a.x - e.x;
  4027. a = a.y - e.y;
  4028. e = f * h - k * d;
  4029. g.x = k * a - f * m;
  4030. g.y = h * a - d * m;
  4031. if (0 === e) return 0 === g.x || 0 === g.y ? !0 : !1;
  4032. g.x /= e;
  4033. g.y /= e;
  4034. return !0
  4035. };
  4036. b.Lra = function(a, d, e, f) {
  4037. var g = b.d(0, 0);
  4038. return b.xL(a, d, e, f, g) && 0 <= g.x && 1 >= g.x && 0 <= g.y && 1 >= g.y ? !0 : !1
  4039. };
  4040. b.Gra = function(a, d, e, f) {
  4041. var g = b.d(0, 0);
  4042. return b.xL(a, d, e, f, g) ? (e = b.d(0, 0), e.x = a.x + g.x * (d.x - a.x), e.y = a.y + g.x * (d.y - a.y), e) : b.d(0, 0)
  4043. };
  4044. b.Kra = function(a, d) {
  4045. return null != a && null != d ? a.x === d.x && a.y === d.y : !1
  4046. };
  4047. b.pD = function(a) {
  4048. a.x = 0;
  4049. a.y = 0
  4050. };
  4051. b.km = function(a, d) {
  4052. a.x = d.x;
  4053. a.y = d.y
  4054. };
  4055. b.ft = function(a, d) {
  4056. a.x *= d;
  4057. a.y *= d
  4058. };
  4059. b.IW = function(a, d) {
  4060. a.x -= d.x;
  4061. a.y -= d.y
  4062. };
  4063. b.nD = function(a, d) {
  4064. a.x += d.x;
  4065. a.y += d.y
  4066. };
  4067. b.Nba = function(a) {
  4068. b.ft(a, 1 / Math.sqrt(a.x * a.x + a.y * a.y))
  4069. };
  4070. b.uM = function(a, d, e, f, g) {
  4071. g += f;
  4072. if (!(1 >= g)) {
  4073. d *= 0.5;
  4074. for (var h, k = g - 1, m = f; m < g; m++) {
  4075. h = 2 * m;
  4076. var n = b.d(a[2 * m], a[2 * m + 1]),
  4077. p;
  4078. if (0 === m) p = b.oD(b.ni(b.zd(n, b.d(a[2 * (m + 1)], a[2 * (m + 1) + 1]))));
  4079. else if (m === k) p = b.oD(b.ni(b.zd(b.d(a[2 * (m - 1)], a[2 * (m - 1) + 1]), n)));
  4080. else {
  4081. p = b.d(a[2 * (m - 1)], a[2 * (m - 1) + 1]);
  4082. var s = b.d(a[2 * (m + 1)], a[2 * (m + 1) + 1]),
  4083. t = b.ni(b.zd(s, n)),
  4084. v = b.ni(b.zd(p, n)),
  4085. w = Math.acos(b.et(t, v));
  4086. p = w < b.Md(70) ? b.oD(b.ni(b.yL(t, v))) : w < b.Md(170) ? b.ni(b.yL(t, v)) : b.oD(b.ni(b.zd(s, p)))
  4087. }
  4088. p = b.lm(p, d);
  4089. e[2 * h] = n.x + p.x;
  4090. e[2 * h + 1] = n.y + p.y;
  4091. e[2 *
  4092. (h + 1)] = n.x - p.x;
  4093. e[2 * (h + 1) + 1] = n.y - p.y
  4094. }
  4095. for (m = 0 === f ? 0 : f - 1; m < k; m++) h = 2 * m, a = h + 2, d = b.cE(e[2 * h], e[2 * h + 1]), g = b.cE(e[2 * (h + 1)], e[2 * (h + 1) + 1]), h = b.cE(e[2 * a], e[2 * a]), f = b.cE(e[2 * (a + 1)], e[2 * (a + 1) + 1]), d = !b.pfa(d.x, d.y, f.x, f.y, g.x, g.y, h.x, h.y), !d.Xw && (0 > d.value || 1 < d.value) && (d.Xw = !0), d.Xw && (e[2 * a] = f.x, e[2 * a + 1] = f.y, e[2 * (a + 1)] = h.x, e[2 * (a + 1) + 1] = h.y)
  4096. }
  4097. };
  4098. b.pfa = function(a, d, e, f, g, h, k, m) {
  4099. if (a === e && d === f || g === k && h === m) return {
  4100. Xw: !1,
  4101. value: 0
  4102. };
  4103. e -= a;
  4104. f -= d;
  4105. g -= a;
  4106. h -= d;
  4107. k -= a;
  4108. m -= d;
  4109. a = Math.sqrt(e * e + f * f);
  4110. e /= a;
  4111. f /= a;
  4112. d = g * e + h * f;
  4113. h = h * e - g * f;
  4114. g = d;
  4115. d = k * e + m * f;
  4116. m = m * e - k * f;
  4117. k = d;
  4118. return h === m ? {
  4119. Xw: !1,
  4120. value: 0
  4121. } : {
  4122. Xw: !0,
  4123. value: (k + (g - k) * m / (m - h)) / a
  4124. }
  4125. };
  4126. b.Kwa = function(a) {
  4127. for (var d = 0, e = a.length; d < e; d++) {
  4128. var f = a[(d + 1) % e],
  4129. g = a[(d + 2) % e];
  4130. if (0 < b.Mba(b.zd(f, a[d]), b.zd(g, f))) return !1
  4131. }
  4132. return !0
  4133. };
  4134. b.fga = function(a, d) {
  4135. d[2] = d[3] = d[6] = d[7] = d[8] = d[9] = d[11] = d[14] = 0;
  4136. d[10] = d[15] = 1;
  4137. d[0] = a.a;
  4138. d[4] = a.c;
  4139. d[12] = a.ma;
  4140. d[1] = a.b;
  4141. d[5] = a.K;
  4142. d[13] = a.na
  4143. };
  4144. b.Iga = function(a, d) {
  4145. d.a = a[0];
  4146. d.c = a[4];
  4147. d.ma = a[12];
  4148. d.b = a[1];
  4149. d.K = a[5];
  4150. d.na = a[13]
  4151. };
  4152. b.mz = b.sa.extend({
  4153. Id: null,
  4154. Xi: null,
  4155. Ph: 0,
  4156. bT: !1,
  4157. rk: null,
  4158. ctor: function(a, d, e) {
  4159. this.Id = b.d(a || 0, d || 0);
  4160. this.Ph = e || 0
  4161. },
  4162. hi: function() {
  4163. return {
  4164. x: this.Id.x,
  4165. y: this.Id.y
  4166. }
  4167. },
  4168. P9: function() {
  4169. return this.Id.x
  4170. },
  4171. Q9: function() {
  4172. return this.Id.y
  4173. },
  4174. oV: function() {
  4175. return {
  4176. x: this.Xi.x,
  4177. y: this.Xi.y
  4178. }
  4179. },
  4180. xoa: function() {
  4181. return {
  4182. x: this.rk.x,
  4183. y: this.rk.y
  4184. }
  4185. },
  4186. AK: function() {
  4187. return b.zd(this.Id, this.Xi)
  4188. },
  4189. O9: function() {
  4190. return {
  4191. x: this.Id.x,
  4192. y: this.Id.y
  4193. }
  4194. },
  4195. goa: function() {
  4196. return {
  4197. x: this.Xi.x,
  4198. y: this.Xi.y
  4199. }
  4200. },
  4201. yoa: function() {
  4202. return {
  4203. x: this.rk.x,
  4204. y: this.rk.y
  4205. }
  4206. },
  4207. una: function() {
  4208. return this.Ph
  4209. },
  4210. vna: function() {
  4211. b.log("getId is deprecated. Please use getID instead.");
  4212. return this.Ph
  4213. },
  4214. kva: function(a, d, e) {
  4215. this.Xi = this.Id;
  4216. this.Id = b.d(d || 0, e || 0);
  4217. this.Ph = a;
  4218. this.bT || (this.rk = b.d(this.Id), this.bT = !0)
  4219. },
  4220. JI: function(a, d) {
  4221. void 0 === d ? (this.Id.x = a.x, this.Id.y = a.y) : (this.Id.x = a, this.Id.y = d)
  4222. },
  4223. kp: function(a, d) {
  4224. this.Xi = void 0 === d ? b.d(a.x, a.y) : b.d(a || 0, d || 0)
  4225. }
  4226. });
  4227. b.dc = b.sa.extend({
  4228. Jd: 0,
  4229. Po: !1,
  4230. Ed: null,
  4231. DI: function(a) {
  4232. this.Ed = a
  4233. },
  4234. ctor: function(a) {
  4235. this.Jd = a
  4236. },
  4237. VK: function() {
  4238. return this.Jd
  4239. },
  4240. stopPropagation: function() {
  4241. this.Po = !0
  4242. },
  4243. fqa: function() {
  4244. return this.Po
  4245. },
  4246. Tma: function() {
  4247. return this.Ed
  4248. }
  4249. });
  4250. b.dc.gz = 0;
  4251. b.dc.uq = 1;
  4252. b.dc.Zn = 2;
  4253. b.dc.vq = 3;
  4254. b.dc.iu = 4;
  4255. b.dc.Ot = 6;
  4256. b.ko = b.dc.extend({
  4257. LG: null,
  4258. GT: null,
  4259. ctor: function(a) {
  4260. b.dc.prototype.ctor.call(this, b.dc.Ot);
  4261. this.LG = a
  4262. },
  4263. setUserData: function(a) {
  4264. this.GT = a
  4265. },
  4266. getUserData: function() {
  4267. return this.GT
  4268. },
  4269. jna: function() {
  4270. return this.LG
  4271. }
  4272. });
  4273. b.md = b.dc.extend({
  4274. FQ: 0,
  4275. sP: 0,
  4276. kj: 0,
  4277. Nf: 0,
  4278. eI: 0,
  4279. fI: 0,
  4280. AS: 0,
  4281. BS: 0,
  4282. ctor: function(a) {
  4283. b.dc.prototype.ctor.call(this, b.dc.vq);
  4284. this.FQ = a
  4285. },
  4286. WX: function(a, d) {
  4287. this.AS = a;
  4288. this.BS = d
  4289. },
  4290. soa: function() {
  4291. return this.AS
  4292. },
  4293. toa: function() {
  4294. return this.BS
  4295. },
  4296. pda: function(a, d) {
  4297. this.kj = a;
  4298. this.Nf = d
  4299. },
  4300. hi: function() {
  4301. return {
  4302. x: this.kj,
  4303. y: this.Nf
  4304. }
  4305. },
  4306. O9: function() {
  4307. return {
  4308. x: this.kj,
  4309. y: b.view.Oi.height - this.Nf
  4310. }
  4311. },
  4312. a6: function(a, d) {
  4313. this.eI = a;
  4314. this.fI = d
  4315. },
  4316. AK: function() {
  4317. return {
  4318. x: this.kj - this.eI,
  4319. y: this.Nf - this.fI
  4320. }
  4321. },
  4322. Xma: function() {
  4323. return this.kj - this.eI
  4324. },
  4325. Yma: function() {
  4326. return this.Nf - this.fI
  4327. },
  4328. dq: function(a) {
  4329. this.sP = a
  4330. },
  4331. Ema: function() {
  4332. return this.sP
  4333. },
  4334. P9: function() {
  4335. return this.kj
  4336. },
  4337. Q9: function() {
  4338. return this.Nf
  4339. }
  4340. });
  4341. b.md.NONE = 0;
  4342. b.md.XM = 1;
  4343. b.md.KF = 2;
  4344. b.md.nN = 3;
  4345. b.md.lF = 4;
  4346. b.md.Zfa = 0;
  4347. b.md.aga = 2;
  4348. b.md.$fa = 1;
  4349. b.md.Ufa = 3;
  4350. b.md.Vfa = 4;
  4351. b.md.Wfa = 5;
  4352. b.md.Xfa = 6;
  4353. b.md.Yfa = 7;
  4354. b.Ah = b.dc.extend({
  4355. Ym: 0,
  4356. sd: null,
  4357. ctor: function(a) {
  4358. b.dc.prototype.ctor.call(this, b.dc.gz);
  4359. this.sd = a || []
  4360. },
  4361. ina: function() {
  4362. return this.Ym
  4363. },
  4364. Yoa: function() {
  4365. return this.sd
  4366. },
  4367. zja: function(a) {
  4368. this.Ym = a
  4369. },
  4370. Fja: function(a) {
  4371. this.sd = a
  4372. }
  4373. });
  4374. b.Ah.hha = 5;
  4375. b.Ah.rq = {
  4376. fE: 0,
  4377. LE: 1,
  4378. wE: 2,
  4379. jE: 3
  4380. };
  4381. b.Dga = b.dc.extend({
  4382. JT: null,
  4383. KT: null,
  4384. ctor: function(a, d) {
  4385. b.dc.prototype.ctor.call(this, b.dc.iu);
  4386. this.JT = d;
  4387. this.KT = a
  4388. }
  4389. });
  4390. b.ia = b.sa.extend({
  4391. MH: null,
  4392. Jd: 0,
  4393. hk: null,
  4394. Hf: !1,
  4395. Zm: 0,
  4396. k: null,
  4397. Ye: !0,
  4398. Br: !0,
  4399. ctor: function(a, d, e) {
  4400. this.MH = e;
  4401. this.Jd = a || 0;
  4402. this.hk = d || ""
  4403. },
  4404. II: function(a) {
  4405. this.Ye = a
  4406. },
  4407. kja: function() {
  4408. return this.Ye
  4409. },
  4410. Pr: function(a) {
  4411. this.Hf = a
  4412. },
  4413. I4: function() {
  4414. return this.Hf
  4415. },
  4416. dja: function() {
  4417. return this.Jd
  4418. },
  4419. Zia: function() {
  4420. return this.hk
  4421. },
  4422. EI: function(a) {
  4423. this.Zm = a
  4424. },
  4425. Tia: function() {
  4426. return this.Zm
  4427. },
  4428. Nv: function(a) {
  4429. this.k = a
  4430. },
  4431. bja: function() {
  4432. return this.k
  4433. },
  4434. Xl: function() {
  4435. return null !== this.MH
  4436. },
  4437. q: function() {
  4438. return null
  4439. },
  4440. Gb: function(a) {
  4441. this.Br =
  4442. a
  4443. },
  4444. isEnabled: function() {
  4445. return this.Br
  4446. },
  4447. CD: function() {},
  4448. Ad: function() {}
  4449. });
  4450. b.ia.VO = 0;
  4451. b.ia.to = 1;
  4452. b.ia.hz = 2;
  4453. b.ia.uq = 3;
  4454. b.ia.vq = 4;
  4455. b.ia.Zn = 5;
  4456. b.ia.Zn = 6;
  4457. b.ia.Ot = 8;
  4458. b.ia.iu = 7;
  4459. b.Fu = b.ia.extend({
  4460. zv: null,
  4461. ctor: function(a, d) {
  4462. this.zv = d;
  4463. var e = this;
  4464. b.ia.prototype.ctor.call(this, b.ia.Ot, a, function(a) {
  4465. null !== e.zv && e.zv(a)
  4466. })
  4467. },
  4468. Xl: function() {
  4469. return b.ia.prototype.Xl.call(this) && null !== this.zv
  4470. },
  4471. q: function() {
  4472. return new b.Fu(this.hk, this.zv)
  4473. }
  4474. });
  4475. b.Fu.create = function(a, d) {
  4476. return new b.Fu(a, d)
  4477. };
  4478. b.Mm = b.ia.extend({
  4479. iD: null,
  4480. lD: null,
  4481. jD: null,
  4482. kD: null,
  4483. ctor: function() {
  4484. var a = this;
  4485. b.ia.prototype.ctor.call(this, b.ia.vq, b.Mm.kc, function(d) {
  4486. var e = b.md;
  4487. switch (d.FQ) {
  4488. case e.XM:
  4489. a.iD && a.iD(d);
  4490. break;
  4491. case e.KF:
  4492. a.lD && a.lD(d);
  4493. break;
  4494. case e.nN:
  4495. a.jD && a.jD(d);
  4496. break;
  4497. case e.lF:
  4498. a.kD && a.kD(d)
  4499. }
  4500. })
  4501. },
  4502. q: function() {
  4503. var a = new b.Mm;
  4504. a.iD = this.iD;
  4505. a.lD = this.lD;
  4506. a.jD = this.jD;
  4507. a.kD = this.kD;
  4508. return a
  4509. },
  4510. Xl: function() {
  4511. return !0
  4512. }
  4513. });
  4514. b.Mm.kc = "__cc_mouse";
  4515. b.Mm.create = function() {
  4516. return new b.Mm
  4517. };
  4518. b.Vj = b.ia.extend({
  4519. Yq: null,
  4520. tm: !1,
  4521. Qb: null,
  4522. xd: null,
  4523. Oc: null,
  4524. uf: null,
  4525. ctor: function() {
  4526. b.ia.prototype.ctor.call(this, b.ia.to, b.Vj.kc, null);
  4527. this.Yq = []
  4528. },
  4529. Uua: function(a) {
  4530. this.tm = a
  4531. },
  4532. gqa: function() {
  4533. return this.tm
  4534. },
  4535. q: function() {
  4536. var a = new b.Vj;
  4537. a.Qb = this.Qb;
  4538. a.xd = this.xd;
  4539. a.Oc = this.Oc;
  4540. a.uf = this.uf;
  4541. a.tm = this.tm;
  4542. return a
  4543. },
  4544. Xl: function() {
  4545. return this.Qb ? !0 : (b.log(b.o.t2), !1)
  4546. }
  4547. });
  4548. b.Vj.kc = "__cc_touch_one_by_one";
  4549. b.Vj.create = function() {
  4550. return new b.Vj
  4551. };
  4552. b.Uj = b.ia.extend({
  4553. dx: null,
  4554. gx: null,
  4555. fx: null,
  4556. ex: null,
  4557. ctor: function() {
  4558. b.ia.prototype.ctor.call(this, b.ia.hz, b.Uj.kc, null)
  4559. },
  4560. q: function() {
  4561. var a = new b.Uj;
  4562. a.dx = this.dx;
  4563. a.gx = this.gx;
  4564. a.fx = this.fx;
  4565. a.ex = this.ex;
  4566. return a
  4567. },
  4568. Xl: function() {
  4569. return null === this.dx && null === this.gx && null === this.fx && null === this.ex ? (b.log(b.o.s2), !1) : !0
  4570. }
  4571. });
  4572. b.Uj.kc = "__cc_touch_all_at_once";
  4573. b.Uj.create = function() {
  4574. return new b.Uj
  4575. };
  4576. b.ia.create = function(a) {
  4577. b.assert(a && a.event, b.o.VZ);
  4578. var d = a.event;
  4579. delete a.event;
  4580. var e = null;
  4581. d === b.ia.to ? e = new b.Vj : d === b.ia.hz ? e = new b.Uj : d === b.ia.vq ? e = new b.Mm : d === b.ia.Ot ? (e = new b.Fu(a.I8, a.mj), delete a.I8, delete a.mj) : d === b.ia.uq ? e = new b.Lm : d === b.ia.Zn ? (e = new b.Km(a.mj), delete a.mj) : d === b.ia.iu && (e = new b.Gu);
  4582. for (var f in a) e[f] = a[f];
  4583. return e
  4584. };
  4585. b.Gu = b.ia.extend({
  4586. q: function() {
  4587. var a = new b.Gu;
  4588. a.ax = this.ax;
  4589. return a
  4590. },
  4591. Xl: function() {
  4592. return this.ax ? !0 : (b.log("Invalid EventListenerFocus!"), !1)
  4593. },
  4594. ax: null,
  4595. ctor: function() {
  4596. b.ia.prototype.ctor.call(this, b.ia.iu, b.Gu.kc, function(a) {
  4597. this.ax && this.ax(a.KT, a.JT)
  4598. })
  4599. }
  4600. });
  4601. b.Gu.kc = "__cc_focus_event";
  4602. b.u2 = b.sa.extend({
  4603. Jg: null,
  4604. Tg: null,
  4605. HV: 0,
  4606. ctor: function() {
  4607. this.Jg = [];
  4608. this.Tg = []
  4609. },
  4610. size: function() {
  4611. return this.Jg.length + this.Tg.length
  4612. },
  4613. empty: function() {
  4614. return 0 === this.Jg.length && 0 === this.Tg.length
  4615. },
  4616. push: function(a) {
  4617. 0 === a.Zm ? this.Tg.push(a) : this.Jg.push(a)
  4618. },
  4619. G7: function() {
  4620. this.Tg.length = 0
  4621. },
  4622. F7: function() {
  4623. this.Jg.length = 0
  4624. },
  4625. clear: function() {
  4626. this.Tg.length = 0;
  4627. this.Jg.length = 0
  4628. },
  4629. lna: function() {
  4630. return this.Jg
  4631. },
  4632. roa: function() {
  4633. return this.Tg
  4634. }
  4635. });
  4636. b.wz = function(a) {
  4637. var d = b.dc,
  4638. e = a.Jd;
  4639. if (e === d.Zn) return b.Km.kc;
  4640. if (e === d.Ot) return a.LG;
  4641. if (e === d.uq) return b.Lm.kc;
  4642. if (e === d.vq) return b.Mm.kc;
  4643. if (e === d.iu) return b.Gu.kc;
  4644. e === d.gz && b.log(b.o.wz);
  4645. return ""
  4646. };
  4647. b.ua = {
  4648. uE: 0,
  4649. hy: 1,
  4650. St: 2,
  4651. wga: 3,
  4652. Qh: {},
  4653. Ev: {},
  4654. kk: {},
  4655. QA: {},
  4656. $Q: {},
  4657. $r: [],
  4658. Zu: [],
  4659. No: 0,
  4660. Br: !1,
  4661. RR: 0,
  4662. G4: [b.pb.yE, b.pb.ly],
  4663. tB: function(a) {
  4664. null != this.kk[a.ba] && this.Zu.push(a);
  4665. a = a.m;
  4666. for (var d = 0, e = a.length; d < e; d++) this.tB(a[d])
  4667. },
  4668. gt: function(a, d) {
  4669. var e = this.kk[a.ba],
  4670. f, g;
  4671. if (e)
  4672. for (f = 0, g = e.length; f < g; f++) e[f].II(!0);
  4673. if (!0 === d)
  4674. for (e = a.m, f = 0, g = e.length; f < g; f++) this.gt(e[f], !0)
  4675. },
  4676. nm: function(a, d) {
  4677. var e = this.kk[a.ba],
  4678. f, g;
  4679. if (e)
  4680. for (f = 0, g = e.length; f < g; f++) e[f].II(!1);
  4681. this.tB(a);
  4682. if (!0 === d)
  4683. for (e = a.m, f = 0, g = e.length; f < g; f++) this.nm(e[f], !0)
  4684. },
  4685. F2: function(a) {
  4686. 0 === this.No ? this.MQ(a) : this.$r.push(a)
  4687. },
  4688. MQ: function(a) {
  4689. var d = a.hk,
  4690. e = this.Qh[d];
  4691. e || (e = new b.u2, this.Qh[d] = e);
  4692. e.push(a);
  4693. 0 === a.Zm ? (this.sn(d, this.St), d = a.k, null === d && b.log(b.o.B8), this.O2(d, a), d.Sg && this.nm(d)) : this.sn(d, this.hy)
  4694. },
  4695. cH: function(a) {
  4696. return this.Qh[a]
  4697. },
  4698. F6: function() {
  4699. if (0 !== this.Zu.length) {
  4700. for (var a = this.Zu, d, e, f = this.kk, g = 0, h = a.length; g < h; g++)
  4701. if (d = f[a[g].ba])
  4702. for (var k = 0, m = d.length; k < m; k++)(e = d[k]) && this.sn(e.hk, this.St);
  4703. this.Zu.length = 0
  4704. }
  4705. },
  4706. rS: function(a) {
  4707. if (a)
  4708. for (var d,
  4709. e = 0; e < a.length;) d = a[e], d.Pr(!1), null != d.k && (this.YP(d.k, d), d.Nv(null)), 0 === this.No ? b.ge(a, d) : ++e
  4710. },
  4711. fp: function(a) {
  4712. var d = this.Qh[a];
  4713. if (d) {
  4714. var e = d.Jg;
  4715. this.rS(d.Tg);
  4716. this.rS(e);
  4717. delete this.Ev[a];
  4718. this.No || (d.clear(), delete this.Qh[a])
  4719. }
  4720. for (var e = this.$r, f, d = 0; d < e.length;)(f = e[d]) && f.hk === a ? b.ge(e, f) : ++d
  4721. },
  4722. VI: function(a) {
  4723. var d = this.uE,
  4724. e = this.Ev;
  4725. e[a] && (d = e[a]);
  4726. d !== this.uE && (e[a] = this.uE, d & this.hy && this.q6(a), d & this.St && ((d = b.P.qd) ? this.s6(a, d) : e[a] = this.St))
  4727. },
  4728. s6: function(a, d) {
  4729. var e = this.cH(a);
  4730. if (e) {
  4731. var f = e.Tg;
  4732. f && 0 !== f.length && (this.RR = 0, this.QA = {}, this.zJ(d, !0), e.Tg.sort(this.p6))
  4733. }
  4734. },
  4735. p6: function(a, d) {
  4736. var e = b.ua.QA,
  4737. f = a.k,
  4738. g = d.k;
  4739. return a && d && f && g && e[f.ba] && e[g.ba] ? e[d.k.ba] - e[a.k.ba] : -1
  4740. },
  4741. q6: function(a) {
  4742. if (a = this.Qh[a]) {
  4743. var d = a.Jg;
  4744. if (d && 0 !== d.length) {
  4745. d.sort(this.r6);
  4746. for (var e = 0, f = d.length; e < f && !(0 <= d[e].Zm);) ++e;
  4747. a.HV = e
  4748. }
  4749. }
  4750. },
  4751. r6: function(a, d) {
  4752. return a.Zm - d.Zm
  4753. },
  4754. NH: function(a) {
  4755. if (a = this.Qh[a]) {
  4756. var d = a.Jg,
  4757. e = a.Tg,
  4758. f, g;
  4759. if (e)
  4760. for (f = 0; f < e.length;) g = e[f], g.Hf ? ++f : b.ge(e, g);
  4761. if (d)
  4762. for (f = 0; f < d.length;) g = d[f], g.Hf ? ++f : b.ge(d,
  4763. g);
  4764. e && 0 === e.length && a.G7();
  4765. d && 0 === d.length && a.F7()
  4766. }
  4767. },
  4768. PB: function(a) {
  4769. var d = this.No;
  4770. b.assert(0 < d, b.o.WZ);
  4771. if (!(1 < d)) {
  4772. a.Jd === b.dc.gz ? (this.NH(b.Vj.kc), this.NH(b.Uj.kc)) : this.NH(b.wz(a));
  4773. b.assert(1 === d, b.o.XZ);
  4774. a = this.Qh;
  4775. var d = this.Ev,
  4776. e;
  4777. for (e in a) a[e].empty() && (delete d[e], delete a[e]);
  4778. e = this.$r;
  4779. if (0 !== e.length) {
  4780. a = 0;
  4781. for (d = e.length; a < d; a++) this.MQ(e[a]);
  4782. this.$r.length = 0
  4783. }
  4784. }
  4785. },
  4786. c5: function(a, d) {
  4787. if (!a.I4) return !1;
  4788. var e = d.event,
  4789. f = d.eX;
  4790. e.DI(a.k);
  4791. var g = !1,
  4792. h, k = e.Ym,
  4793. m = b.Ah.rq;
  4794. k === m.fE ? a.Qb && (g = a.Qb(f, e)) && a.Hf && a.Yq.push(f) :
  4795. 0 < a.Yq.length && -1 !== (h = a.Yq.indexOf(f)) && (g = !0, k === m.LE && a.xd ? a.xd(f, e) : k === m.wE ? (a.Oc && a.Oc(f, e), a.Hf && a.Yq.splice(h, 1)) : k === m.jE && (a.uf && a.uf(f, e), a.Hf && a.Yq.splice(h, 1)));
  4796. return e.Po ? (b.ua.PB(e), !0) : g && a.Hf && a.tm ? (d.Fba && d.touches.splice(f, 1), !0) : !1
  4797. },
  4798. n3: function(a) {
  4799. this.VI(b.Vj.kc);
  4800. this.VI(b.Uj.kc);
  4801. var d = this.cH(b.Vj.kc),
  4802. e = this.cH(b.Uj.kc);
  4803. if (null !== d || null !== e) {
  4804. var f = a.sd,
  4805. g = b.oU(f),
  4806. h = {
  4807. event: a,
  4808. Fba: d && e,
  4809. touches: g,
  4810. eX: null
  4811. };
  4812. if (d)
  4813. for (var k = 0; k < f.length; k++)
  4814. if (h.eX = f[k], this.DG(d, this.c5, h), a.Po) return;
  4815. if (e && 0 < g.length && (this.DG(e, this.e5, {
  4816. event: a,
  4817. touches: g
  4818. }), a.Po)) return;
  4819. this.PB(a)
  4820. }
  4821. },
  4822. e5: function(a, d) {
  4823. if (!a.Hf) return !1;
  4824. var e = b.Ah.rq,
  4825. f = d.event,
  4826. g = d.touches,
  4827. h = f.Ym;
  4828. f.DI(a.k);
  4829. h === e.fE && a.dx ? a.dx(g, f) : h === e.LE && a.gx ? a.gx(g, f) : h === e.wE && a.fx ? a.fx(g, f) : h === e.jE && a.ex && a.ex(g, f);
  4830. return f.Po ? (b.ua.PB(f), !0) : !1
  4831. },
  4832. O2: function(a, d) {
  4833. var e = this.kk[a.ba];
  4834. e || (e = [], this.kk[a.ba] = e);
  4835. e.push(d)
  4836. },
  4837. YP: function(a, d) {
  4838. var e = this.kk[a.ba];
  4839. e && (b.ge(e, d), 0 === e.length && delete this.kk[a.ba])
  4840. },
  4841. DG: function(a, d, e) {
  4842. var f = !1,
  4843. g = a.Jg,
  4844. h = a.Tg,
  4845. k = 0,
  4846. m;
  4847. if (g && 0 !== g.length)
  4848. for (; k < a.HV; ++k)
  4849. if (m = g[k], m.isEnabled() && !m.Ye && m.Hf && d(m, e)) {
  4850. f = !0;
  4851. break
  4852. }
  4853. if (h && !f)
  4854. for (a = 0; a < h.length; a++)
  4855. if (m = h[a], m.isEnabled() && !m.Ye && m.Hf && d(m, e)) {
  4856. f = !0;
  4857. break
  4858. }
  4859. if (g && !f)
  4860. for (; k < g.length && (m = g[k], !m.isEnabled() || m.Ye || !m.Hf || !d(m, e)); ++k);
  4861. },
  4862. sn: function(a, d) {
  4863. var e = this.Ev;
  4864. e[a] = null == e[a] ? d : d | e[a]
  4865. },
  4866. zJ: function(a, d) {
  4867. var e = a.m,
  4868. f = 0,
  4869. g = e.length,
  4870. h = this.$Q,
  4871. k = this.kk;
  4872. if (0 < g) {
  4873. for (var m; f < g; f++)
  4874. if ((m = e[f]) && 0 > m.wc) this.zJ(m, !1);
  4875. else break;
  4876. null != k[a.ba] && (h[a.nl] || (h[a.nl] = []),
  4877. h[a.nl].push(a.ba));
  4878. for (; f < g; f++)(m = e[f]) && this.zJ(m, !1)
  4879. } else null != k[a.ba] && (h[a.nl] || (h[a.nl] = []), h[a.nl].push(a.ba));
  4880. if (d) {
  4881. var e = [],
  4882. n;
  4883. for (n in h) e.push(n);
  4884. e.sort(this.t6);
  4885. n = e.length;
  4886. m = this.QA;
  4887. for (f = 0; f < n; f++)
  4888. for (g = h[e[f]], k = 0; k < g.length; k++) m[g[k]] = ++this.RR;
  4889. this.$Q = {}
  4890. }
  4891. },
  4892. t6: function(a, d) {
  4893. return a - d
  4894. },
  4895. addListener: function(a, d) {
  4896. b.assert(a && d, b.o.D8);
  4897. if (!(a instanceof b.ia)) b.assert(!b.Vw(d), b.o.E8), a = b.ia.create(a);
  4898. else if (a.Hf) {
  4899. b.log(b.o.F8);
  4900. return
  4901. }
  4902. if (a.Xl()) {
  4903. if (b.Vw(d)) {
  4904. if (0 === d) {
  4905. b.log(b.o.C8);
  4906. return
  4907. }
  4908. a.Nv(null);
  4909. a.EI(d);
  4910. a.Pr(!0);
  4911. a.II(!1)
  4912. } else a.Nv(d), a.EI(0), a.Pr(!0);
  4913. this.F2(a);
  4914. return a
  4915. }
  4916. },
  4917. GJ: function(a, d) {
  4918. var e = new b.Fu(a, d);
  4919. this.addListener(e, 1);
  4920. return e
  4921. },
  4922. removeListener: function(a) {
  4923. if (null != a) {
  4924. var d, e = this.Qh,
  4925. f;
  4926. for (f in e) {
  4927. var g = e[f],
  4928. h = g.Jg;
  4929. (d = this.sS(g.Tg, a)) ? this.sn(a.hk, this.St): (d = this.sS(h, a)) && this.sn(a.hk, this.hy);
  4930. g.empty() && (delete this.Ev[a.hk], delete e[f]);
  4931. if (d) break
  4932. }
  4933. if (!d)
  4934. for (d = this.$r, e = 0, f = d.length; e < f; e++)
  4935. if (g = d[e], g === a) {
  4936. b.ge(d, g);
  4937. g.Pr(!1);
  4938. break
  4939. }
  4940. }
  4941. },
  4942. sS: function(a, d) {
  4943. if (null ==
  4944. a) return !1;
  4945. for (var e = 0, f = a.length; e < f; e++) {
  4946. var g = a[e];
  4947. if (g === d) return g.Pr(!1), null != g.k && (this.YP(g.k, g), g.Nv(null)), 0 === this.No && b.ge(a, g), !0
  4948. }
  4949. return !1
  4950. },
  4951. SW: function(a, d) {
  4952. if (a instanceof b.e) {
  4953. delete this.QA[a.ba];
  4954. b.ge(this.Zu, a);
  4955. var e = this.kk[a.ba];
  4956. if (e) {
  4957. for (var f = b.oU(e), e = 0; e < f.length; e++) this.removeListener(f[e]);
  4958. f.length = 0
  4959. }
  4960. f = this.$r;
  4961. for (e = 0; e < f.length;) {
  4962. var g = f[e];
  4963. g.k === a ? (g.Nv(null), g.Pr(!1), f.splice(e, 1)) : ++e
  4964. }
  4965. if (!0 === d)
  4966. for (f = a.m, e = 0, g = f.length; e < g; e++) this.SW(f[e], !0)
  4967. } else a === b.ia.to ? this.fp(b.Vj.kc) :
  4968. a === b.ia.hz ? this.fp(b.Uj.kc) : a === b.ia.vq ? this.fp(b.Mm.kc) : a === b.ia.Zn ? this.fp(b.Km.kc) : a === b.ia.uq ? this.fp(b.Lm.kc) : b.log(b.o.G8)
  4969. },
  4970. Fsa: function(a) {
  4971. this.fp(a)
  4972. },
  4973. zsa: function() {
  4974. var a = this.Qh,
  4975. d = this.G4,
  4976. e;
  4977. for (e in a) - 1 === d.indexOf(e) && this.fp(e)
  4978. },
  4979. Fua: function(a, d) {
  4980. if (null != a) {
  4981. var e = this.Qh,
  4982. f;
  4983. for (f in e) {
  4984. var g = e[f].Jg;
  4985. if (g && -1 !== g.indexOf(a)) {
  4986. null != a.k && b.log(b.o.H8);
  4987. a.Zm !== d && (a.EI(d), this.sn(a.hk, this.hy));
  4988. break
  4989. }
  4990. }
  4991. }
  4992. },
  4993. Gb: function(a) {
  4994. this.Br = a
  4995. },
  4996. isEnabled: function() {
  4997. return this.Br
  4998. },
  4999. dispatchEvent: function(a) {
  5000. if (this.Br) {
  5001. this.F6();
  5002. this.No++;
  5003. if (!a || !a.VK) throw "event is undefined";
  5004. if (a.Jd === b.dc.gz) this.n3(a);
  5005. else {
  5006. var d = b.wz(a);
  5007. this.VI(d);
  5008. d = this.Qh[d];
  5009. null != d && this.DG(d, this.Y4, a);
  5010. this.PB(a)
  5011. }
  5012. this.No--
  5013. }
  5014. },
  5015. Y4: function(a, d) {
  5016. d.DI(a.k);
  5017. a.MH(d);
  5018. return d.Po
  5019. },
  5020. $ka: function(a, d) {
  5021. var e = new b.ko(a);
  5022. e.setUserData(d);
  5023. this.dispatchEvent(e)
  5024. }
  5025. };
  5026. b.zh = function() {};
  5027. b.zh.prototype = {
  5028. constructor: b.zh,
  5029. apply: function(a) {
  5030. a.addEventListener = b.zh.prototype.addEventListener;
  5031. a.aL = b.zh.prototype.aL;
  5032. a.removeEventListener = b.zh.prototype.removeEventListener;
  5033. a.dispatchEvent = b.zh.prototype.dispatchEvent
  5034. },
  5035. addEventListener: function(a, d, e) {
  5036. if ("load" === a && this.R) setTimeout(function() {
  5037. d.call(e)
  5038. }, 0);
  5039. else {
  5040. void 0 === this.fn && (this.fn = {});
  5041. var f = this.fn;
  5042. void 0 === f[a] && (f[a] = []);
  5043. this.aL(a, d, e) || f[a].push({
  5044. mj: d,
  5045. uK: e
  5046. })
  5047. }
  5048. },
  5049. aL: function(a, d, e) {
  5050. if (void 0 === this.fn) return !1;
  5051. var f = this.fn;
  5052. if (void 0 !==
  5053. f[a]) {
  5054. a = 0;
  5055. for (var g = f.length; a < g; a++) {
  5056. var h = f[a];
  5057. if (h.mj === d && h.uK === e) return !0
  5058. }
  5059. }
  5060. return !1
  5061. },
  5062. removeEventListener: function(a, d) {
  5063. if (void 0 !== this.fn) {
  5064. var e = this.fn[a];
  5065. if (void 0 !== e)
  5066. for (var f = 0; f < e.length;) e[f].uK === d ? e.splice(f, 1) : f++
  5067. }
  5068. },
  5069. dispatchEvent: function(a, d) {
  5070. if (void 0 !== this.fn) {
  5071. null == d && (d = !0);
  5072. var e = this.fn[a];
  5073. if (void 0 !== e) {
  5074. for (var f = [], g = e.length, h = 0; h < g; h++) f[h] = e[h];
  5075. for (h = 0; h < g; h++) f[h].mj.call(f[h].uK, this);
  5076. d && (e.length = 0)
  5077. }
  5078. }
  5079. }
  5080. };
  5081. b.UZ = b.dc.extend({
  5082. hP: null,
  5083. ctor: function(a) {
  5084. b.dc.prototype.ctor.call(this, b.dc.Zn);
  5085. this.hP = a
  5086. }
  5087. });
  5088. b.aN = b.dc.extend({
  5089. uH: 0,
  5090. tR: !1,
  5091. ctor: function(a, d) {
  5092. b.dc.prototype.ctor.call(this, b.dc.uq);
  5093. this.uH = a;
  5094. this.tR = d
  5095. }
  5096. });
  5097. b.Km = b.ia.extend({
  5098. VA: null,
  5099. ctor: function(a) {
  5100. this.VA = a;
  5101. var d = this;
  5102. b.ia.prototype.ctor.call(this, b.ia.Zn, b.Km.kc, function(a) {
  5103. d.VA(a.hP, a)
  5104. })
  5105. },
  5106. Xl: function() {
  5107. b.assert(this.VA, b.o.q2);
  5108. return !0
  5109. },
  5110. q: function() {
  5111. return new b.Km(this.VA)
  5112. }
  5113. });
  5114. b.Km.kc = "__cc_acceleration";
  5115. b.Km.create = function(a) {
  5116. return new b.Km(a)
  5117. };
  5118. b.Lm = b.ia.extend({
  5119. bx: null,
  5120. cx: null,
  5121. ctor: function() {
  5122. var a = this;
  5123. b.ia.prototype.ctor.call(this, b.ia.uq, b.Lm.kc, function(d) {
  5124. d.tR ? a.bx && a.bx(d.uH, d) : a.cx && a.cx(d.uH, d)
  5125. })
  5126. },
  5127. q: function() {
  5128. var a = new b.Lm;
  5129. a.bx = this.bx;
  5130. a.cx = this.cx;
  5131. return a
  5132. },
  5133. Xl: function() {
  5134. return null === this.bx && null === this.cx ? (b.log(b.o.r2), !1) : !0
  5135. }
  5136. });
  5137. b.Lm.kc = "__cc_keyboard";
  5138. b.Lm.create = function() {
  5139. return new b.Lm
  5140. };
  5141. b.Aca = {
  5142. he: !0,
  5143. Ul: [],
  5144. Il: [],
  5145. yA: !1,
  5146. Kz: {},
  5147. Vq: [],
  5148. fl: 0,
  5149. sV: function(a) {
  5150. return a.Ic()
  5151. },
  5152. Eb: function(a) {
  5153. var d = this.Il,
  5154. e, f = b.view.oc(),
  5155. g = b.view.gd(),
  5156. h = a || b.A;
  5157. h.lU();
  5158. a = 0;
  5159. for (e = d.length; a < e; a++) d[a].Eb(h, f, g)
  5160. },
  5161. Jv: function(a, d, e, f) {
  5162. a || b.log("The context of RenderTexture is invalid.");
  5163. e = b.sj(e) ? 1 : e;
  5164. f = b.sj(f) ? 1 : f;
  5165. d = d || this.fl;
  5166. var g = this.Kz[d],
  5167. h, k;
  5168. a.lU();
  5169. h = 0;
  5170. for (k = g.length; h < k; h++) g[h].Eb(a, e, f);
  5171. g.length = 0;
  5172. a = this.Vq;
  5173. delete this.Kz[d];
  5174. b.ge(a, d);
  5175. 0 === a.length ? this.yA = !1 : this.fl = a[a.length - 1]
  5176. },
  5177. es: function(a) {
  5178. this.yA = !0;
  5179. a = a || 0;
  5180. this.Kz[a] = []; - 1 === this.Vq.indexOf(a) && this.Vq.push(a);
  5181. this.fl = a
  5182. },
  5183. A6: function() {
  5184. this.yA = !1
  5185. },
  5186. XW: function() {
  5187. this.he = !1;
  5188. this.Ul.length = 0
  5189. },
  5190. transform: function() {
  5191. var a = this.Ul;
  5192. a.sort(this.WI);
  5193. for (var d = 0, e = a.length; d < e; d++) 0 !== a[d].G && a[d].updateStatus();
  5194. a.length = 0
  5195. },
  5196. la: function() {
  5197. return 0 < this.Ul.length
  5198. },
  5199. WI: function(a, d) {
  5200. return a.Zd - d.Zd
  5201. },
  5202. LW: function(a) {
  5203. this.Ul.push(a)
  5204. },
  5205. jU: function() {
  5206. this.Il.length = 0
  5207. },
  5208. Ec: function(a) {
  5209. if (a.cb)
  5210. if (this.yA) {
  5211. var d = this.Kz[this.fl]; - 1 === d.indexOf(a) && d.push(a)
  5212. } else -1 ===
  5213. this.Il.indexOf(a) && this.Il.push(a)
  5214. }
  5215. };
  5216. b.W === b.Jb && (b.oa = b.Aca);
  5217. (function() {
  5218. b.nq = function(a) {
  5219. this.Sb = a;
  5220. this.Or = 0;
  5221. this.uG = a.globalAlpha;
  5222. this.vG = a.globalCompositeOperation;
  5223. this.wG = a.fillStyle;
  5224. this.xG = a.strokeStyle;
  5225. this.TA = this.KH = 0;
  5226. this.Hv = this.height;
  5227. this.YF = 0
  5228. };
  5229. var a = b.nq.prototype;
  5230. a.VW = function() {
  5231. var a = this.Sb;
  5232. this.uG = a.globalAlpha;
  5233. this.vG = a.globalCompositeOperation;
  5234. this.wG = a.fillStyle;
  5235. this.xG = a.strokeStyle;
  5236. this.Hv = this.Sb.canvas.height + this.TA
  5237. };
  5238. a.Gj = function(a, e) {
  5239. this.KH = a;
  5240. this.TA = e;
  5241. this.Hv = this.Sb.canvas.height + this.TA
  5242. };
  5243. a.lU = function() {
  5244. this.Hv = this.Sb.canvas.height +
  5245. this.TA
  5246. };
  5247. a.Cva = function(a, e) {
  5248. this.Wb = a;
  5249. this.Sc = e
  5250. };
  5251. a.getContext = function() {
  5252. return this.Sb
  5253. };
  5254. a.save = function() {
  5255. this.Sb.save();
  5256. this.Or++
  5257. };
  5258. a.restore = function() {
  5259. this.Sb.restore();
  5260. this.Or--
  5261. };
  5262. a.ut = function(a) {
  5263. 0 < this.Or ? this.Sb.globalAlpha = a : this.uG !== a && (this.uG = a, this.Sb.globalAlpha = a)
  5264. };
  5265. a.xx = function(a) {
  5266. 0 < this.Or ? this.Sb.globalCompositeOperation = a : this.vG !== a && (this.vG = a, this.Sb.globalCompositeOperation = a)
  5267. };
  5268. a.Fj = function(a) {
  5269. 0 < this.Or ? this.Sb.fillStyle = a : this.wG !== a && (this.wG = a, this.Sb.fillStyle = a)
  5270. };
  5271. a.VD =
  5272. function(a) {
  5273. 0 < this.Or ? this.Sb.strokeStyle = a : this.xG !== a && (this.xG = a, this.Sb.strokeStyle = a)
  5274. };
  5275. a.setTransform = function(a, e, f) {
  5276. 0 < this.YF ? (this.restore(), this.save(), this.Sb.transform(a.a, -a.b, -a.c, a.K, a.ma * e, -(a.na * f))) : this.Sb.setTransform(a.a, -a.b, -a.c, a.K, this.KH + a.ma * e, this.Hv - a.na * f)
  5277. };
  5278. a.Kja = function(a, e, f, g) {
  5279. a ? (this.YF++, this.Sb.setTransform(e.a, e.c, e.b, e.K, this.KH + e.ma * f, this.Hv - e.na * g), this.save()) : (this.YF--, this.restore())
  5280. }
  5281. })();
  5282. b.Bca = {
  5283. he: !0,
  5284. Ul: [],
  5285. Il: [],
  5286. xA: !1,
  5287. Jz: {},
  5288. Vq: [],
  5289. fl: 0,
  5290. sV: function(a) {
  5291. return a.Ic()
  5292. },
  5293. Eb: function(a) {
  5294. var d = this.Il,
  5295. e, f = a || b.A;
  5296. a = 0;
  5297. for (e = d.length; a < e; a++) d[a].Eb(f)
  5298. },
  5299. es: function(a) {
  5300. this.xA = !0;
  5301. a = a || 0;
  5302. this.Jz[a] = [];
  5303. this.Vq.push(a);
  5304. this.fl = a
  5305. },
  5306. A6: function() {
  5307. this.xA = !1
  5308. },
  5309. G5: function(a) {
  5310. a = a || this.fl;
  5311. var d = this.Jz[a],
  5312. e, f, g = b.A,
  5313. h = this.Vq;
  5314. e = 0;
  5315. for (f = d.length; e < f; e++) d[e].Eb(g);
  5316. d.length = 0;
  5317. delete this.Jz[a];
  5318. b.ge(h, a);
  5319. 0 === h.length ? this.xA = !1 : this.fl = h[h.length - 1]
  5320. },
  5321. XW: function() {
  5322. this.he = !1;
  5323. this.Ul.length = 0
  5324. },
  5325. transform: function() {
  5326. var a =
  5327. this.Ul;
  5328. a.sort(this.WI);
  5329. for (var d = 0, e = a.length; d < e; d++) a[d].updateStatus();
  5330. a.length = 0
  5331. },
  5332. la: function() {
  5333. return 0 < this.Ul.length
  5334. },
  5335. WI: function(a, d) {
  5336. return a.Zd - d.Zd
  5337. },
  5338. LW: function(a) {
  5339. this.Ul.push(a)
  5340. },
  5341. jU: function() {
  5342. this.Il.length = 0
  5343. },
  5344. Ec: function(a) {
  5345. if (a.cb)
  5346. if (this.xA) {
  5347. var d = this.Jz[this.fl]; - 1 === d.indexOf(a) && d.push(a)
  5348. } else -1 === this.Il.indexOf(a) && this.Il.push(a)
  5349. }
  5350. };
  5351. b.W === b.ya && (b.oa = b.Bca);
  5352. b.Ea.aF = function() {
  5353. var a = b.e.prototype;
  5354. b.i(a, "x", a.vd, a.UL);
  5355. b.i(a, "y", a.Qf, a.NX);
  5356. b.i(a, "width", a.Nh, a.cj);
  5357. b.i(a, "height", a.ml, a.bj);
  5358. b.i(a, "anchorX", a.TG, a.xI);
  5359. b.i(a, "anchorY", a.D3, a.yI);
  5360. b.i(a, "skewX", a.F$, a.Rda);
  5361. b.i(a, "skewY", a.G$, a.Sda);
  5362. b.i(a, "zIndex", a.N9, a.AX);
  5363. b.i(a, "vertexZ", a.U$, a.iea);
  5364. b.i(a, "rotation", a.w$, a.QD);
  5365. b.i(a, "rotationX", a.y$, a.Pda);
  5366. b.i(a, "rotationY", a.z$, a.Qda);
  5367. b.i(a, "scale", a.Jw, a.Tn);
  5368. b.i(a, "scaleX", a.oc, a.oh);
  5369. b.i(a, "scaleY", a.gd, a.ph);
  5370. b.i(a, "children", a.e9);
  5371. b.i(a, "childrenCount",
  5372. a.f9);
  5373. b.i(a, "parent", a.getParent, a.JX);
  5374. b.i(a, "visible", a.eba, a.Ci);
  5375. b.i(a, "running", a.bba);
  5376. b.i(a, "ignoreAnchor", a.Yaa, a.pj);
  5377. b.i(a, "actionManager", a.mC, a.fX);
  5378. b.i(a, "scheduler", a.Jn, a.VX);
  5379. b.i(a, "shaderProgram", a.Ms, a.pm);
  5380. b.i(a, "opacity", a.bh, a.Hb);
  5381. b.i(a, "opacityModifyRGB", a.tf);
  5382. b.i(a, "cascadeOpacity", a.Taa, a.qt);
  5383. b.i(a, "color", a.rf, a.X);
  5384. b.i(a, "cascadeColor", a.Saa, a.nX)
  5385. };
  5386. b.rN = -1;
  5387. b.LL = 1;
  5388. b.e = b.sa.extend({
  5389. wc: 0,
  5390. nl: 0,
  5391. jw: 0,
  5392. Jl: 0,
  5393. on: 0,
  5394. Wb: 1,
  5395. Sc: 1,
  5396. Ca: null,
  5397. Xo: null,
  5398. UB: !1,
  5399. IH: !1,
  5400. dj: 0,
  5401. ej: 0,
  5402. m: null,
  5403. Ta: !0,
  5404. Ih: null,
  5405. U: null,
  5406. Sg: !1,
  5407. Ga: null,
  5408. dn: !1,
  5409. tag: b.rN,
  5410. userData: null,
  5411. userObject: null,
  5412. kg: !1,
  5413. za: null,
  5414. arrivalOrder: 0,
  5415. Cg: null,
  5416. de: null,
  5417. Pia: null,
  5418. Iu: !1,
  5419. Az: null,
  5420. Jh: null,
  5421. tH: !1,
  5422. Ma: "Node",
  5423. TS: !1,
  5424. Wo: "",
  5425. Hl: 255,
  5426. Qg: null,
  5427. Zc: !1,
  5428. $c: !1,
  5429. f: null,
  5430. Mi: null,
  5431. ctor: function() {
  5432. this.y4();
  5433. this.A4()
  5434. },
  5435. y4: function() {
  5436. this.Ih = b.d(0, 0);
  5437. this.U = b.size(0, 0);
  5438. this.Ca = b.d(0, 0);
  5439. this.Xo = b.d(0, 0);
  5440. this.m = [];
  5441. var a = b.P;
  5442. this.Cg = a.mC();
  5443. this.de = a.Jn();
  5444. this.Az = {
  5445. a: 1,
  5446. b: 0,
  5447. c: 0,
  5448. K: 1,
  5449. ma: 0,
  5450. na: 0
  5451. };
  5452. b.uZ && (this.Jh = new b.uZ(this));
  5453. this.Hl = 255;
  5454. this.Qg = b.color(255, 255, 255, 255);
  5455. this.$c = this.Zc = !1
  5456. },
  5457. T: function() {
  5458. return !0
  5459. },
  5460. Ki: function(a, d) {
  5461. if (a && 0 !== a.length) {
  5462. var e, f = a.length,
  5463. g;
  5464. e = b.e.Wh;
  5465. switch (d) {
  5466. case e.aa:
  5467. for (e = 0; e < f; e++)(g = a[e]) && g.aa();
  5468. break;
  5469. case e.Pb:
  5470. for (e = 0; e < f; e++)(g = a[e]) && g.Pb();
  5471. break;
  5472. case e.wj:
  5473. for (e = 0; e < f; e++)(g = a[e]) && g.wj();
  5474. break;
  5475. case e.qf:
  5476. for (e = 0; e < f; e++)(g = a[e]) && g.qf();
  5477. break;
  5478. case e.ug:
  5479. for (e = 0; e < f; e++)(g = a[e]) && g.ug();
  5480. break;
  5481. case e.eh:
  5482. for (e = 0; e < f; e++)(g = a[e]) &&
  5483. g.eh();
  5484. break;
  5485. case e.Ne:
  5486. for (e = 0; e < f; e++)(g = a[e]) && g.Ne();
  5487. break;
  5488. default:
  5489. b.assert(0, b.o.H_)
  5490. }
  5491. }
  5492. },
  5493. Nb: function(a) {
  5494. for (var d in a) this[d] = a[d]
  5495. },
  5496. F$: function() {
  5497. return this.dj
  5498. },
  5499. Rda: function(a) {
  5500. this.dj = a;
  5501. this.f.va(b.e.V.la)
  5502. },
  5503. G$: function() {
  5504. return this.ej
  5505. },
  5506. Sda: function(a) {
  5507. this.ej = a;
  5508. this.f.va(b.e.V.la)
  5509. },
  5510. AX: function(a) {
  5511. this.wc = a;
  5512. this.Ga && this.Ga.lt(this, a);
  5513. b.ua.tB(this)
  5514. },
  5515. vB: function(a) {
  5516. this.wc = a
  5517. },
  5518. N9: function() {
  5519. return this.wc
  5520. },
  5521. jpa: function() {
  5522. b.log(b.o.N_);
  5523. return this.wc
  5524. },
  5525. Dva: function(a) {
  5526. b.log(b.o.X_);
  5527. this.AX(a)
  5528. },
  5529. Yta: function(a) {
  5530. this.nl !== a && (this.nl = a, b.ua.tB(this))
  5531. },
  5532. sna: function() {
  5533. return this.nl
  5534. },
  5535. U$: function() {
  5536. return this.jw
  5537. },
  5538. iea: function(a) {
  5539. this.jw = a
  5540. },
  5541. w$: function() {
  5542. this.Jl !== this.on && b.log(b.o.L_);
  5543. return this.Jl
  5544. },
  5545. QD: function(a) {
  5546. this.Jl = this.on = a;
  5547. this.f.va(b.e.V.la)
  5548. },
  5549. y$: function() {
  5550. return this.Jl
  5551. },
  5552. Pda: function(a) {
  5553. this.Jl = a;
  5554. this.f.va(b.e.V.la)
  5555. },
  5556. z$: function() {
  5557. return this.on
  5558. },
  5559. Qda: function(a) {
  5560. this.on = a;
  5561. this.f.va(b.e.V.la)
  5562. },
  5563. Jw: function() {
  5564. this.Wb !== this.Sc && b.log(b.o.M_);
  5565. return this.Wb
  5566. },
  5567. Tn: function(a, d) {
  5568. this.Wb =
  5569. a;
  5570. this.Sc = d || 0 === d ? d : a;
  5571. this.f.va(b.e.V.la)
  5572. },
  5573. oc: function() {
  5574. return this.Wb
  5575. },
  5576. oh: function(a) {
  5577. this.Wb = a;
  5578. this.f.va(b.e.V.la)
  5579. },
  5580. gd: function() {
  5581. return this.Sc
  5582. },
  5583. ph: function(a) {
  5584. this.Sc = a;
  5585. this.f.va(b.e.V.la)
  5586. },
  5587. I: function(a, d) {
  5588. var e = this.Ca;
  5589. if (void 0 === d) {
  5590. if (e.x === a.x && e.y === a.y) return;
  5591. e.x = a.x;
  5592. e.y = a.y
  5593. } else {
  5594. if (e.x === a && e.y === d) return;
  5595. e.x = a;
  5596. e.y = d
  5597. }
  5598. this.UB = !1;
  5599. this.f.va(b.e.V.la)
  5600. },
  5601. qua: function(a, d) {
  5602. var e = this.Xo;
  5603. void 0 === d ? (e.x = a.x, e.y = a.y) : (e.x = a, e.y = d);
  5604. this.IH = this.UB = !0;
  5605. this.f.va(b.e.V.la)
  5606. },
  5607. Pf: function() {
  5608. return b.d(this.Ca)
  5609. },
  5610. Pna: function() {
  5611. return b.d(this.Xo)
  5612. },
  5613. vd: function() {
  5614. return this.Ca.x
  5615. },
  5616. UL: function(a) {
  5617. this.Ca.x = a;
  5618. this.f.va(b.e.V.la)
  5619. },
  5620. Qf: function() {
  5621. return this.Ca.y
  5622. },
  5623. NX: function(a) {
  5624. this.Ca.y = a;
  5625. this.f.va(b.e.V.la)
  5626. },
  5627. f9: function() {
  5628. return this.m.length
  5629. },
  5630. e9: function() {
  5631. return this.m
  5632. },
  5633. eba: function() {
  5634. return this.Ta
  5635. },
  5636. Ci: function(a) {
  5637. this.Ta !== a && (this.Ta = a, this.f.va(b.e.V.la), b.oa.he = !0)
  5638. },
  5639. yma: function() {
  5640. return b.d(this.Ih)
  5641. },
  5642. rb: function(a, d) {
  5643. var e = this.Ih;
  5644. if (void 0 === d) {
  5645. if (a.x === e.x && a.y === e.y) return;
  5646. e.x = a.x;
  5647. e.y = a.y
  5648. } else {
  5649. if (a ===
  5650. e.x && d === e.y) return;
  5651. e.x = a;
  5652. e.y = d
  5653. }
  5654. ha(this.f)
  5655. },
  5656. TG: function() {
  5657. return this.Ih.x
  5658. },
  5659. xI: function(a) {
  5660. this.Ih.x !== a && (this.Ih.x = a, ha(this.f))
  5661. },
  5662. D3: function() {
  5663. return this.Ih.y
  5664. },
  5665. yI: function(a) {
  5666. this.Ih.y !== a && (this.Ih.y = a, ha(this.f))
  5667. },
  5668. Cw: function() {
  5669. return this.f.Cw()
  5670. },
  5671. Nh: function() {
  5672. return this.U.width
  5673. },
  5674. cj: function(a) {
  5675. this.U.width = a;
  5676. ha(this.f)
  5677. },
  5678. ml: function() {
  5679. return this.U.height
  5680. },
  5681. bj: function(a) {
  5682. this.U.height = a;
  5683. ha(this.f)
  5684. },
  5685. L: function() {
  5686. return b.size(this.U)
  5687. },
  5688. Na: function(a, d) {
  5689. var e = this.U;
  5690. if (void 0 === d) {
  5691. if (a.width ===
  5692. e.width && a.height === e.height) return;
  5693. e.width = a.width;
  5694. e.height = a.height
  5695. } else {
  5696. if (a === e.width && d === e.height) return;
  5697. e.width = a;
  5698. e.height = d
  5699. }
  5700. ha(this.f)
  5701. },
  5702. bba: function() {
  5703. return this.Sg
  5704. },
  5705. getParent: function() {
  5706. return this.Ga
  5707. },
  5708. JX: function(a) {
  5709. this.Ga = a
  5710. },
  5711. Yaa: function() {
  5712. return this.dn
  5713. },
  5714. pj: function(a) {
  5715. a !== this.dn && (this.dn = a, this.f.va(b.e.V.la))
  5716. },
  5717. yC: function() {
  5718. return this.tag
  5719. },
  5720. Ix: function(a) {
  5721. this.tag = a
  5722. },
  5723. xda: function(a) {
  5724. this.Wo = a
  5725. },
  5726. getName: function() {
  5727. return this.Wo
  5728. },
  5729. getUserData: function() {
  5730. return this.userData
  5731. },
  5732. setUserData: function(a) {
  5733. this.userData =
  5734. a
  5735. },
  5736. epa: function() {
  5737. return this.userObject
  5738. },
  5739. Ava: function(a) {
  5740. this.userObject !== a && (this.userObject = a)
  5741. },
  5742. Wna: function() {
  5743. return this.arrivalOrder
  5744. },
  5745. Eda: function(a) {
  5746. this.arrivalOrder = a
  5747. },
  5748. mC: function() {
  5749. this.Cg || (this.Cg = b.P.mC());
  5750. return this.Cg
  5751. },
  5752. fX: function(a) {
  5753. this.Cg !== a && (this.gM(), this.Cg = a)
  5754. },
  5755. Jn: function() {
  5756. this.de || (this.de = b.P.Jn());
  5757. return this.de
  5758. },
  5759. VX: function(a) {
  5760. this.de !== a && (this.pM(), this.de = a)
  5761. },
  5762. rka: function() {
  5763. b.log(b.o.J_);
  5764. return this.ud()
  5765. },
  5766. ud: function() {
  5767. var a = b.rect(0, 0, this.U.width, this.U.height);
  5768. return b.Yi(a, this.He())
  5769. },
  5770. qf: function() {
  5771. this.gM();
  5772. this.pM();
  5773. b.ua.SW(this);
  5774. this.Ki(this.m, b.e.Wh.qf)
  5775. },
  5776. gi: function(a) {
  5777. var d = this.m;
  5778. if (null !== d)
  5779. for (var e = 0; e < d.length; e++) {
  5780. var f = d[e];
  5781. if (f && f.tag === a) return f
  5782. }
  5783. return null
  5784. },
  5785. Kma: function(a) {
  5786. if (!a) return b.log("Invalid name"), null;
  5787. for (var d = this.m, e = 0, f = d.length; e < f; e++)
  5788. if (d[e].Wo === a) return d[e];
  5789. return null
  5790. },
  5791. C: function(a, d, e) {
  5792. d = void 0 === d ? a.wc : d;
  5793. var f, g = !1;
  5794. b.sj(e) ? (e = void 0, f = a.Wo) : b.Je(e) ? (f = e, e = void 0) : b.Vw(e) && (g = !0, f = "");
  5795. b.assert(a, b.o.I_);
  5796. b.assert(null ===
  5797. a.Ga, "child already added. It can't be added again");
  5798. this.VF(a, d, e, f, g)
  5799. },
  5800. VF: function(a, d, e, f, g) {
  5801. this.m || (this.m = []);
  5802. this.E4(a, d);
  5803. g ? a.Ix(e) : a.xda(f);
  5804. a.JX(this);
  5805. a.Eda(b.LL++);
  5806. this.Sg && (a.aa(), this.tH && a.wj());
  5807. this.Zc && a.f.va(b.e.V.Ka);
  5808. this.$c && a.f.va(b.e.V.Ha)
  5809. },
  5810. Rn: function(a) {
  5811. this.Ga && (void 0 === a && (a = !0), this.Ga.removeChild(this, a))
  5812. },
  5813. Gsa: function(a) {
  5814. b.log(b.o.R_);
  5815. this.Rn(a)
  5816. },
  5817. removeChild: function(a, d) {
  5818. 0 !== this.m.length && (void 0 === d && (d = !0), -1 < this.m.indexOf(a) && this.l3(a, d), b.oa.he = !0)
  5819. },
  5820. HL: function(a,
  5821. d) {
  5822. a === b.rN && b.log(b.o.P_);
  5823. var e = this.gi(a);
  5824. e ? this.removeChild(e, d) : b.log(b.o.Q_, a)
  5825. },
  5826. ysa: function(a) {
  5827. this.pi(a)
  5828. },
  5829. pi: function(a) {
  5830. var d = this.m;
  5831. if (null !== d) {
  5832. void 0 === a && (a = !0);
  5833. for (var e = 0; e < d.length; e++) {
  5834. var f = d[e];
  5835. f && (this.Sg && (f.eh(), f.Pb()), a && f.qf(), f.parent = null, f.f.iC())
  5836. }
  5837. this.m.length = 0;
  5838. b.oa.he = !0
  5839. }
  5840. },
  5841. l3: function(a, d) {
  5842. this.Sg && (a.eh(), a.Pb());
  5843. d && a.qf();
  5844. a.parent = null;
  5845. a.f.iC();
  5846. b.ge(this.m, a)
  5847. },
  5848. E4: function(a, d) {
  5849. b.oa.he = this.kg = !0;
  5850. this.m.push(a);
  5851. a.vB(d)
  5852. },
  5853. Pk: function() {
  5854. this.f.va(b.e.V.la)
  5855. },
  5856. lt: function(a,
  5857. d) {
  5858. b.assert(a, b.o.S_);
  5859. b.oa.he = this.kg = !0;
  5860. a.arrivalOrder = b.LL;
  5861. b.LL++;
  5862. a.vB(d)
  5863. },
  5864. Ne: function() {
  5865. if (this.kg) {
  5866. var a = this.m,
  5867. d = a.length,
  5868. e, f, g;
  5869. for (e = 1; e < d; e++) {
  5870. g = a[e];
  5871. for (f = e - 1; 0 <= f;) {
  5872. if (g.wc < a[f].wc) a[f + 1] = a[f];
  5873. else if (g.wc === a[f].wc && g.arrivalOrder < a[f].arrivalOrder) a[f + 1] = a[f];
  5874. else break;
  5875. f--
  5876. }
  5877. a[f + 1] = g
  5878. }
  5879. this.kg = !1
  5880. }
  5881. },
  5882. KU: function() {},
  5883. efa: function() {
  5884. null !== this.Ga && (this.Ga.efa(), this.Ga.transform())
  5885. },
  5886. aa: function() {
  5887. this.tH = !1;
  5888. this.Sg = !0;
  5889. this.Ki(this.m, b.e.Wh.aa);
  5890. this.Cj()
  5891. },
  5892. wj: function() {
  5893. this.tH = !0;
  5894. this.Ki(this.m,
  5895. b.e.Wh.wj)
  5896. },
  5897. eh: function() {
  5898. this.Ki(this.m, b.e.Wh.eh)
  5899. },
  5900. Pb: function() {
  5901. this.Sg = !1;
  5902. this.pause();
  5903. this.Ki(this.m, b.e.Wh.Pb);
  5904. this.qca()
  5905. },
  5906. Ba: function(a) {
  5907. b.assert(a, b.o.U_);
  5908. this.actionManager.N6(a, this, !this.Sg);
  5909. return a
  5910. },
  5911. gM: function() {
  5912. this.actionManager && this.actionManager.RW(this)
  5913. },
  5914. nY: function(a) {
  5915. this.actionManager.QW(a)
  5916. },
  5917. Hea: function(a) {
  5918. a === b.kq ? b.log(b.o.Y_) : this.actionManager.pca(a, this)
  5919. },
  5920. lC: function(a) {
  5921. return a === b.kq ? (b.log(b.o.K_), null) : this.actionManager.lC(a, this)
  5922. },
  5923. Rna: function() {
  5924. return this.actionManager.Hba(this)
  5925. },
  5926. ot: function() {
  5927. this.dX(0)
  5928. },
  5929. dX: function(a) {
  5930. this.scheduler.ot(this, a, !this.Sg)
  5931. },
  5932. Hj: function() {
  5933. this.scheduler.Hj(this)
  5934. },
  5935. Dj: function(a, d, e, f, g) {
  5936. var h = arguments.length;
  5937. "function" === typeof a ? 1 === h ? (d = 0, e = b.Ch, f = 0, g = this.ba) : 2 === h ? "number" === typeof d ? (e = b.Ch, f = 0, g = this.ba) : (g = d, d = 0, e = b.Ch, f = 0) : 3 === h ? ("string" === typeof e ? (g = e, e = b.Ch) : g = this.ba, f = 0) : 4 === h && (g = this.ba) : 1 === h ? (d = 0, e = b.Ch, f = 0) : 2 === h && (e = b.Ch, f = 0);
  5938. b.assert(a, b.o.V_);
  5939. b.assert(0 <= d, b.o.W_);
  5940. e = null == e ? b.Ch : e;
  5941. this.scheduler.Dj(a, this, d || 0, e, f || 0, !this.Sg,
  5942. g)
  5943. },
  5944. gta: function(a, d, e) {
  5945. void 0 === e && (e = this.ba);
  5946. this.Dj(a, 0, 0, d, e)
  5947. },
  5948. tg: function(a) {
  5949. a && this.scheduler.tg(a, this)
  5950. },
  5951. pM: function() {
  5952. this.scheduler.zY(this)
  5953. },
  5954. Wsa: function() {
  5955. b.log(b.o.T_);
  5956. this.Cj()
  5957. },
  5958. Cj: function() {
  5959. this.scheduler.nm(this);
  5960. this.actionManager && this.actionManager.nm(this);
  5961. b.ua.nm(this)
  5962. },
  5963. Wra: function() {
  5964. b.log(b.o.O_);
  5965. this.pause()
  5966. },
  5967. pause: function() {
  5968. this.scheduler.gt(this);
  5969. this.actionManager && this.actionManager.gt(this);
  5970. b.ua.gt(this)
  5971. },
  5972. pta: function(a) {
  5973. if (void 0 === a) return this.Iu = !1;
  5974. this.Az = a;
  5975. this.f.va(b.e.V.la);
  5976. this.Iu = !0
  5977. },
  5978. IK: function() {
  5979. this.f.IK()
  5980. },
  5981. Qra: function() {
  5982. return this.IK()
  5983. },
  5984. In: function() {
  5985. for (var a = this.He(), d = this.Ga; null !== d; d = d.parent) a = b.Dp(a, d.He());
  5986. return a
  5987. },
  5988. Zqa: function() {
  5989. return this.In()
  5990. },
  5991. EV: function() {
  5992. return b.ST(this.In())
  5993. },
  5994. Qwa: function() {
  5995. return this.EV()
  5996. },
  5997. Ck: function(a) {
  5998. return b.hh(a, this.EV())
  5999. },
  6000. Yl: function(a) {
  6001. a = a || b.d(0, 0);
  6002. return b.hh(a, this.In())
  6003. },
  6004. P7: function(a) {
  6005. return b.zd(this.Ck(a), this.f.Cw())
  6006. },
  6007. Gka: function(a) {
  6008. a = a || b.d(0, 0);
  6009. a = b.yj(a, this.f.Cw());
  6010. return this.Yl(a)
  6011. },
  6012. Mia: function(a) {
  6013. a =
  6014. this.Yl(a);
  6015. return b.P.nU(a)
  6016. },
  6017. Dk: function(a) {
  6018. return this.Ck(a.hi())
  6019. },
  6020. Hka: function(a) {
  6021. a = b.P.mU(a.hi());
  6022. return this.P7(a)
  6023. },
  6024. update: function(a) {
  6025. this.Jh && !this.Jh.Ppa() && this.Jh.Q(a)
  6026. },
  6027. ug: function() {
  6028. this.Ki(this.m, b.e.Wh.ug)
  6029. },
  6030. CD: function() {},
  6031. Ad: function() {},
  6032. i9: function(a) {
  6033. return this.Jh ? this.Jh.i9(a) : null
  6034. },
  6035. Sja: function(a) {
  6036. this.Jh && this.Jh.add(a)
  6037. },
  6038. Esa: function(a) {
  6039. return this.Jh ? this.Jh.remove(a) : !1
  6040. },
  6041. qca: function() {
  6042. this.Jh && this.Jh.wsa()
  6043. },
  6044. grid: null,
  6045. Q: function(a) {
  6046. this.f.Q(a)
  6047. },
  6048. transform: function(a, d) {
  6049. this.f.transform(a,
  6050. d)
  6051. },
  6052. Yqa: function() {
  6053. return this.He()
  6054. },
  6055. He: function() {
  6056. return this.f.He()
  6057. },
  6058. Fs: function() {
  6059. this.Mi || (this.Mi = new b.Qt);
  6060. return this.Mi
  6061. },
  6062. Hs: function() {
  6063. return this.grid
  6064. },
  6065. hda: function(a) {
  6066. this.grid = a
  6067. },
  6068. Ms: function() {
  6069. return this.f.Ms()
  6070. },
  6071. pm: function(a) {
  6072. this.f.pm(a)
  6073. },
  6074. rna: function() {
  6075. return 0
  6076. },
  6077. Xta: function() {},
  6078. a9: function() {
  6079. var a = b.rect(0, 0, this.U.width, this.U.height),
  6080. d = this.In(),
  6081. a = b.oi(a, d);
  6082. if (!this.m) return a;
  6083. for (var e = this.m, f = 0; f < e.length; f++) {
  6084. var g = e[f];
  6085. g && g.Ta && (g = g.hv(d)) && (a = b.kt(a, g))
  6086. }
  6087. return a
  6088. },
  6089. hv: function(a) {
  6090. var d =
  6091. b.rect(0, 0, this.U.width, this.U.height);
  6092. a = void 0 === a ? this.He() : b.Dp(this.He(), a);
  6093. d = b.oi(d, a);
  6094. if (!this.m) return d;
  6095. for (var e = this.m, f = 0; f < e.length; f++) {
  6096. var g = e[f];
  6097. g && g.Ta && (g = g.hv(a)) && (d = b.kt(d, g))
  6098. }
  6099. return d
  6100. },
  6101. bh: function() {
  6102. return this.Hl
  6103. },
  6104. nC: function() {
  6105. return this.f.nC()
  6106. },
  6107. Hb: function(a) {
  6108. this.Hl = a;
  6109. this.f.va(b.e.V.Ha)
  6110. },
  6111. EY: function(a) {
  6112. this.f.ci(a)
  6113. },
  6114. Taa: function() {
  6115. return this.$c
  6116. },
  6117. qt: function(a) {
  6118. this.$c !== a && (this.$c = a, a = this.f, a.jG = !0, a.va(b.e.V.Ha))
  6119. },
  6120. rf: function() {
  6121. var a = this.Qg;
  6122. return b.color(a.r, a.g, a.b,
  6123. a.a)
  6124. },
  6125. Fw: function() {
  6126. return this.f.Fw()
  6127. },
  6128. X: function(a) {
  6129. var d = this.Qg;
  6130. d.r = a.r;
  6131. d.g = a.g;
  6132. d.b = a.b;
  6133. this.f.va(b.e.V.Ka)
  6134. },
  6135. DY: function(a) {
  6136. this.f.Ae(a)
  6137. },
  6138. Saa: function() {
  6139. return this.Zc
  6140. },
  6141. nX: function(a) {
  6142. this.Zc !== a && (this.Zc = a, a = this.f, a.iG = !0, a.va(b.e.V.Ka))
  6143. },
  6144. Le: function() {},
  6145. tf: function() {
  6146. return !1
  6147. },
  6148. A4: function() {
  6149. this.f = b.oa.sV(this)
  6150. },
  6151. Ic: function() {
  6152. return b.W === b.Jb ? new b.e.n(this) : new b.e.p(this)
  6153. },
  6154. Wla: function(a, d) {
  6155. b.assert(a && 0 != a.length, "Invalid name");
  6156. b.assert(null != d, "Invalid callback function");
  6157. var e = a.length,
  6158. f = 0,
  6159. g = e,
  6160. h = !1;
  6161. 2 < e && "/" === a[0] && "/" === a[1] && (h = !0, f = 2, g -= 2);
  6162. var k = !1;
  6163. 3 < e && "/" === a[e - 3] && "." === a[e - 2] && "." === a[e - 1] && (k = !0, g -= 3);
  6164. e = a.substr(f, g);
  6165. k && (e = "[[:alnum:]]+/" + e);
  6166. h ? this.JU(this, e, d) : this.hK(e, d)
  6167. },
  6168. JU: function(a, d, e) {
  6169. if (!a.hK(d, e))
  6170. for (var f = a.m, g = f.length, h = 0; h < g && (a = f[h], !this.JU(a, d, e)); h++);
  6171. },
  6172. hK: function(a, d) {
  6173. var e = a.indexOf("/"),
  6174. f = a,
  6175. g = !1; - 1 !== e && (f = a.substr(0, e), g = !0);
  6176. for (var e = !1, h, k = this.m, m = k.length, n = 0; n < m; n++)
  6177. if (h = k[n], -1 !== h.Wo.indexOf(f))
  6178. if (g) {
  6179. if (e = h.hK(a, d)) break
  6180. } else if (d(h)) {
  6181. e = !0;
  6182. break
  6183. }
  6184. return e
  6185. }
  6186. });
  6187. b.e.create = function() {
  6188. return new b.e
  6189. };
  6190. b.e.Wh = {
  6191. aa: 1,
  6192. Pb: 2,
  6193. qf: 3,
  6194. wj: 4,
  6195. ug: 5,
  6196. eh: 6,
  6197. Ne: 7
  6198. };
  6199. b.assert(b.Ie(b.Ea.aF), b.o.Qj, "BaseNodesPropertyDefine.js");
  6200. b.Ea.aF();
  6201. delete b.Ea.aF;
  6202. b.wg = function(a, d) {
  6203. this.cb = !0;
  6204. this.Xb = a;
  6205. this.Xd = d;
  6206. this.Eb = function(a, d, g) {
  6207. this.Xd && this.Xd.call(this.Xb, a, d, g)
  6208. }
  6209. };
  6210. b.e.V = {
  6211. la: 1,
  6212. Mwa: 2,
  6213. Ka: 4,
  6214. Ha: 8,
  6215. ska: 16,
  6216. zra: 32,
  6217. Vn: 64,
  6218. ki: 128,
  6219. all: 255
  6220. };
  6221. b.e.Re = function(a) {
  6222. this.G = 1;
  6223. this.k = a;
  6224. this.cb = !1;
  6225. this.Dg = new b.p0;
  6226. this.wp = {
  6227. a: 1,
  6228. b: 0,
  6229. c: 0,
  6230. K: 1,
  6231. ma: 0,
  6232. na: 0
  6233. };
  6234. this.jj = {
  6235. a: 1,
  6236. b: 0,
  6237. c: 0,
  6238. K: 1,
  6239. ma: 0,
  6240. na: 0
  6241. };
  6242. this.nR = {
  6243. a: 1,
  6244. b: 0,
  6245. c: 0,
  6246. K: 1,
  6247. ma: 0,
  6248. na: 0
  6249. };
  6250. this.ad = 255;
  6251. this.Vb = b.color(255, 255, 255, 255);
  6252. this.jG = this.iG = !1;
  6253. this.Zd = -1
  6254. };
  6255. b.e.Re.prototype = {
  6256. constructor: b.e.Re,
  6257. Cw: function() {
  6258. return b.d(this.Dg)
  6259. },
  6260. Fw: function() {
  6261. var a = this.Vb;
  6262. return b.color(a.r, a.g, a.b, a.a)
  6263. },
  6264. nC: function() {
  6265. return this.ad
  6266. },
  6267. IK: function() {
  6268. this.G & b.e.V.la && (this.nR = b.ST(this.He()));
  6269. return this.nR
  6270. },
  6271. iC: function() {},
  6272. va: function(a) {
  6273. 0 === this.G && 0 !== a && b.oa.LW(this);
  6274. this.G |= a
  6275. },
  6276. Ae: function(a) {
  6277. var d = this.k,
  6278. e = this.Vb,
  6279. f = d.Qg,
  6280. g;
  6281. if (this.iG && !d.Zc) {
  6282. e.r = f.r;
  6283. e.g = f.g;
  6284. e.b = f.b;
  6285. e = new b.bf(255, 255, 255, 255);
  6286. a = d.m;
  6287. d = 0;
  6288. for (f = a.length; d < f; d++)(g = a[d]) && g.f && g.f.Ae(e);
  6289. this.iG = !1
  6290. } else if (void 0 ===
  6291. a && (a = (a = d.Ga) && a.Zc ? a.Fw() : b.color.WHITE), e.r = 0 | f.r * a.r / 255, e.g = 0 | f.g * a.g / 255, e.b = 0 | f.b * a.b / 255, d.Zc)
  6292. for (a = d.m, d = 0, f = a.length; d < f; d++)(g = a[d]) && g.f && (g.f.Ae(e), g.f.xb());
  6293. this.G ^= this.G & b.e.V.Ka
  6294. },
  6295. ci: function(a) {
  6296. var d = this.k,
  6297. e, f;
  6298. if (this.jG && !d.$c) {
  6299. this.ad = d.Hl;
  6300. e = d.m;
  6301. a = 0;
  6302. for (d = e.length; a < d; a++)(f = e[a]) && f.f && f.f.ci(255);
  6303. this.jG = !1
  6304. } else if (void 0 === a && (e = d.Ga, a = 255, e && e.$c && (a = e.nC())), this.ad = d.Hl * a / 255, d.$c)
  6305. for (e = d.m, a = 0, d = e.length; a < d; a++)(f = e[a]) && f.f && (f.f.ci(this.ad), f.f.xb());
  6306. this.G ^= this.G & b.e.V.Ha
  6307. },
  6308. xb: function() {},
  6309. updateStatus: function() {
  6310. var a = b.e.V,
  6311. d = this.G,
  6312. e = d & a.Ka,
  6313. f = d & a.Ha;
  6314. e && this.Ae();
  6315. f && this.ci();
  6316. (e || f) && this.xb();
  6317. d & a.la && (this.transform(P(this), !0), this.G ^= this.G & b.e.V.la)
  6318. }
  6319. };
  6320. function ia(a) {
  6321. var d, e = a.k;
  6322. if (void 0 === d) {
  6323. var f = e.Ga;
  6324. d = 255;
  6325. f && f.$c && (d = f.nC())
  6326. }
  6327. a.ad = e.Hl * d / 255
  6328. }
  6329. function ja(a) {
  6330. var d, e = a.k;
  6331. a = a.Vb;
  6332. var f = e.Qg;
  6333. void 0 === d && (d = (d = e.Ga) && d.Zc ? d.Fw() : b.color.WHITE);
  6334. a.r = 0 | f.r * d.r / 255;
  6335. a.g = 0 | f.g * d.g / 255;
  6336. a.b = 0 | f.b * d.b / 255
  6337. }
  6338. function P(a) {
  6339. return a.k && a.k.Ga && a.k.Ga.f ? a.k.Ga.f : null
  6340. }
  6341. function ha(a) {
  6342. var d = a.Dg,
  6343. e = a.k.U,
  6344. f = a.k.Ih;
  6345. d.x = e.width * f.x;
  6346. d.y = e.height * f.y;
  6347. a.va(b.e.V.la)
  6348. }
  6349. (function() {
  6350. b.e.n = function(a) {
  6351. b.e.Re.call(this, a);
  6352. this.cl = null;
  6353. this.Wd = !1
  6354. };
  6355. var a = b.e.n.prototype = Object.create(b.e.Re.prototype);
  6356. a.constructor = b.e.n;
  6357. a.transform = function(a, e) {
  6358. var f = this.He(),
  6359. g = this.jj;
  6360. this.Wd = !0;
  6361. if (a) {
  6362. var h = a.jj;
  6363. g.a = f.a * h.a + f.b * h.c;
  6364. g.b = f.a * h.b + f.b * h.K;
  6365. g.c = f.c * h.a + f.K * h.c;
  6366. g.K = f.c * h.b + f.K * h.K;
  6367. g.ma = h.a * f.ma + h.c * f.na + h.ma;
  6368. g.na = h.K * f.na + h.na + h.b * f.ma
  6369. } else g.a = f.a, g.b = f.b, g.c = f.c, g.K = f.K, g.ma = f.ma, g.na = f.na;
  6370. if (e && (f = this.k.m) && 0 !== f.length)
  6371. for (g = 0, h = f.length; g < h; g++) f[g].f.transform(this,
  6372. e)
  6373. };
  6374. a.He = function() {
  6375. var a = this.k,
  6376. e = !1;
  6377. a.UB && a.Ga && (e = a.Ga.U, a.Ca.x = a.Xo.x * e.width, a.Ca.y = a.Xo.y * e.height, a.IH = !1, e = !0);
  6378. if (e || this.G & b.e.V.la) {
  6379. e = this.wp;
  6380. e.ma = a.Ca.x;
  6381. e.na = a.Ca.y;
  6382. var f = 1,
  6383. g = 0,
  6384. h = 0,
  6385. k = 1;
  6386. a.Jl && (k = 0.017453292519943295 * a.Jl, h = Math.sin(k), k = Math.cos(k));
  6387. a.on && (g = 0.017453292519943295 * a.on, f = Math.cos(g), g = -Math.sin(g));
  6388. e.a = f;
  6389. e.b = g;
  6390. e.c = h;
  6391. e.K = k;
  6392. var m = a.Wb,
  6393. n = a.Sc,
  6394. p = this.Dg.x,
  6395. s = this.Dg.y,
  6396. t = 1E-6 > m && -1E-6 < m ? 1E-6 : m,
  6397. v = 1E-6 > n && -1E-6 < n ? 1E-6 : n;
  6398. if (1 !== m || 1 !== n) f = e.a *= t, g = e.b *= t, h = e.c *= v, k = e.K *= v;
  6399. if (a.dj ||
  6400. a.ej) m = Math.tan(-a.dj * Math.PI / 180), n = Math.tan(-a.ej * Math.PI / 180), Infinity === m && (m = 99999999), Infinity === n && (n = 99999999), t = s * m, v = p * n, e.a = f - h * n, e.b = g - k * n, e.c = h - f * m, e.K = k - g * m, e.ma += f * t + h * v, e.na += g * t + k * v;
  6401. e.ma -= f * p + h * s;
  6402. e.na -= g * p + k * s;
  6403. a.dn && (e.ma += p, e.na += s);
  6404. a.Iu && (this.wp = b.Dp(e, a.Az))
  6405. }
  6406. return this.wp
  6407. };
  6408. a.Q = function(a) {
  6409. var e = this.k;
  6410. if (e.Ta) {
  6411. if (a = a || P(this)) this.Zd = a.Zd + 1;
  6412. var f = e.m,
  6413. g;
  6414. this.cd(a);
  6415. a = f.length;
  6416. if (0 < a) {
  6417. e.Ne();
  6418. for (e = 0; e < a; e++)
  6419. if (g = f[e], 0 > g.wc) g.f.Q(this);
  6420. else break;
  6421. for (b.oa.Ec(this); e < a; e++) f[e].f.Q(this)
  6422. } else b.oa.Ec(this);
  6423. this.G = 0
  6424. }
  6425. };
  6426. a.cd = function(a) {
  6427. var e = b.e.V,
  6428. f = this.G,
  6429. g = a ? a.k : null;
  6430. g && g.Zc && a.G & e.Ka && (f |= e.Ka);
  6431. g && g.$c && a.G & e.Ha && (f |= e.Ha);
  6432. a && a.G & e.la && (f |= e.la);
  6433. var g = f & e.Ka,
  6434. h = f & e.Ha,
  6435. e = f & e.la;
  6436. this.G = f;
  6437. g && ja(this);
  6438. h && ia(this);
  6439. g && this.xb();
  6440. e && this.transform(a)
  6441. };
  6442. a.va = function(a) {
  6443. b.e.Re.prototype.va.call(this, a);
  6444. this.T5();
  6445. this.cl && this.cl.va(a)
  6446. };
  6447. a.T5 = function() {
  6448. if (!1 === this.Wd) {
  6449. this.Wd = !0;
  6450. var a = this.cl;
  6451. a && a !== this && a.Ll && a.Ll()
  6452. }
  6453. };
  6454. a.sB = function(a) {
  6455. if (this.cl !== a) {
  6456. this.cl = a;
  6457. for (var e = this.k.m, f = 0, g = e.length; f < g; f++) e[f].f.sB(a)
  6458. }
  6459. };
  6460. a.iC = function() {
  6461. this.cl = null;
  6462. for (var a = this.k.m, e, f = 0, g = a.length; f < g; f++)(e = a[f]) && e.f && e.f.iC()
  6463. };
  6464. a.pm = function() {};
  6465. a.Ms = function() {
  6466. return null
  6467. };
  6468. b.e.n.VQ = function(a) {
  6469. return a ? a.src === b.SRC_ALPHA && a.$ === b.ONE || a.src === b.ONE && a.$ === b.ONE ? "lighter" : a.src === b.ZERO && a.$ === b.SRC_ALPHA ? "destination-in" : a.src === b.ZERO && a.$ === b.ONE_MINUS_SRC_ALPHA ? "destination-out" : "source-over" : "source-over"
  6470. }
  6471. })();
  6472. (function() {
  6473. b.e.p = function(a) {
  6474. b.e.Re.call(this, a);
  6475. a = new b.j.ca;
  6476. var e = a.s;
  6477. e[2] = e[3] = e[6] = e[7] = e[8] = e[9] = e[11] = e[14] = 0;
  6478. e[10] = e[15] = 1;
  6479. this.kT = a;
  6480. this.Mc = new b.j.ca;
  6481. this.Mi = this.za = null
  6482. };
  6483. var a = b.e.p.prototype = Object.create(b.e.Re.prototype);
  6484. a.constructor = b.e.p;
  6485. a.He = function() {
  6486. var a = this.k;
  6487. if (a.UB && a.Ga) {
  6488. var e = a.Ga.U;
  6489. a.Ca.x = a.Xo.x * e.width;
  6490. a.Ca.y = a.Xo.y * e.height;
  6491. a.IH = !1
  6492. }
  6493. if (this.G & b.e.V.la) {
  6494. var e = a.Ca.x,
  6495. f = a.Ca.y,
  6496. g = this.Dg.x,
  6497. h = -g,
  6498. k = this.Dg.y,
  6499. m = -k,
  6500. n = a.Wb,
  6501. p = a.Sc,
  6502. s = 0.017453292519943295 * a.Jl,
  6503. t = 0.017453292519943295 *
  6504. a.on;
  6505. a.dn && (e += g, f += k);
  6506. var v = 1,
  6507. w = 0,
  6508. x = 1,
  6509. u = 0;
  6510. if (0 !== a.Jl || 0 !== a.on) v = Math.cos(-s), w = Math.sin(-s), x = Math.cos(-t), u = Math.sin(-t);
  6511. s = a.dj || a.ej;
  6512. s || 0 === g && 0 === k || (e += x * h * n + -w * m * p, f += u * h * n + v * m * p);
  6513. t = this.wp;
  6514. t.a = x * n;
  6515. t.b = u * n;
  6516. t.c = -w * p;
  6517. t.K = v * p;
  6518. t.ma = e;
  6519. t.na = f;
  6520. s && (t = b.Dp({
  6521. a: 1,
  6522. b: Math.tan(b.Md(a.ej)),
  6523. c: Math.tan(b.Md(a.dj)),
  6524. K: 1,
  6525. ma: 0,
  6526. na: 0
  6527. }, t), 0 !== g || 0 !== k) && (t = b.JJ(t, h, m));
  6528. a.Iu && (t = b.Dp(t, a.Az), a.Iu = !1);
  6529. this.wp = t
  6530. }
  6531. return this.wp
  6532. };
  6533. a.cd = function(a) {
  6534. var e = b.e.V,
  6535. f = this.G,
  6536. g = a ? a.k : null;
  6537. g && g.Zc && a.G & e.Ka && (f |= e.Ka);
  6538. g && g.$c &&
  6539. a.G & e.Ha && (f |= e.Ha);
  6540. a && a.G & e.la && (f |= e.la);
  6541. g = f & e.Ka;
  6542. e = f & e.Ha;
  6543. this.G = f;
  6544. g && ja(this);
  6545. e && ia(this);
  6546. (g || e) && this.xb();
  6547. this.transform(a)
  6548. };
  6549. a.xb = function() {};
  6550. a.Q = function(a) {
  6551. var e = this.k;
  6552. if (e.Ta) {
  6553. a = a || P(this);
  6554. e.Ga && e.Ga.f && (this.Zd = e.Ga.f.Zd + 1);
  6555. var f = b.Ob;
  6556. f.stack.push(f.top);
  6557. this.cd(a);
  6558. f.top = this.Mc;
  6559. if ((a = e.m) && 0 < a.length) {
  6560. var g = a.length;
  6561. e.Ne();
  6562. for (e = 0; e < g; e++)
  6563. if (a[e] && 0 > a[e].wc) a[e].f.Q(this);
  6564. else break;
  6565. for (b.oa.Ec(this); e < g; e++) a[e] && a[e].f.Q(this)
  6566. } else b.oa.Ec(this);
  6567. this.G = 0;
  6568. f.top = f.stack.pop()
  6569. }
  6570. };
  6571. a.transform =
  6572. function(a, e) {
  6573. var f = this.kT,
  6574. g = this.Mc,
  6575. h = this.k,
  6576. k = (a = a || P(this)) ? a.Mc : b.Ob.top,
  6577. m = this.He();
  6578. this.G ^= this.G & b.e.V.la;
  6579. var n = f.s;
  6580. n[0] = m.a;
  6581. n[4] = m.c;
  6582. n[12] = m.ma;
  6583. n[1] = m.b;
  6584. n[5] = m.K;
  6585. n[13] = m.na;
  6586. n[14] = h.jw;
  6587. b.YC(g, k, f);
  6588. null === h.Mi || null !== h.grid && h.grid.Ln() || (k = this.Dg.x, m = this.Dg.y, 0 !== k || 0 !== m ? (b.qF || (k |= 0, m |= 0), n = b.j.ca.Fn(k, m, 0, f), g.multiply(n), h.Mi.zH(g), n = b.j.ca.Fn(-k, -m, 0, n), g.multiply(n), f.ie()) : h.Mi.zH(g));
  6589. if (e && h.m && 0 !== h.m.length)
  6590. for (h = h.m, f = 0, g = h.length; f < g; f++) h[f].f.transform(this, e)
  6591. };
  6592. a.pm = function(a) {
  6593. this.za =
  6594. a
  6595. };
  6596. a.Ms = function() {
  6597. return this.za
  6598. }
  6599. })();
  6600. b.Rd = b.e.extend({
  6601. textureAtlas: null,
  6602. quadsToDraw: 0,
  6603. Dr: 0,
  6604. yR: 0,
  6605. ul: 0,
  6606. gk: 0,
  6607. Cb: !1,
  6608. H: null,
  6609. qA: !1,
  6610. Ma: "AtlasNode",
  6611. Lja: null,
  6612. ctor: function(a, d, e, f) {
  6613. b.e.prototype.ctor.call(this);
  6614. this.H = {
  6615. src: b.Td,
  6616. $: b.Sd
  6617. };
  6618. this.qA = !1;
  6619. void 0 !== f && this.Eaa(a, d, e, f)
  6620. },
  6621. Ic: function() {
  6622. this.f = b.W === b.Jb ? new b.Rd.n(this) : new b.Rd.p(this)
  6623. },
  6624. It: function() {
  6625. b.log(b.o.UY)
  6626. },
  6627. rf: function() {
  6628. return this.Cb ? this.f.Um : b.e.prototype.rf.call(this)
  6629. },
  6630. Le: function(a) {
  6631. var d = this.color;
  6632. this.Cb = a;
  6633. this.X(d)
  6634. },
  6635. tf: function() {
  6636. return this.Cb
  6637. },
  6638. Gk: function() {
  6639. return this.H
  6640. },
  6641. sg: function(a, d) {
  6642. this.H = void 0 === d ? a : {
  6643. src: a,
  6644. $: d
  6645. }
  6646. },
  6647. vt: function(a) {
  6648. this.textureAtlas = a
  6649. },
  6650. bm: function() {
  6651. return this.textureAtlas
  6652. },
  6653. ioa: function() {
  6654. return this.quadsToDraw
  6655. },
  6656. Gua: function(a) {
  6657. this.quadsToDraw = a
  6658. },
  6659. Eaa: function(a, d, e, f) {
  6660. if (!a) throw "cc.AtlasNode.initWithTileFile(): title should not be null";
  6661. a = b.Xa.Vc(a);
  6662. return this.ea(a, d, e, f)
  6663. },
  6664. ea: function(a, d, e, f) {
  6665. return this.f.ea(a, d, e, f)
  6666. },
  6667. X: function(a) {
  6668. this.f.X(a)
  6669. },
  6670. Hb: function(a) {
  6671. this.f.Hb(a)
  6672. },
  6673. xa: function() {
  6674. return this.f.xa()
  6675. },
  6676. Oa: function(a) {
  6677. this.f.Oa(a)
  6678. },
  6679. FI: function(a) {
  6680. this.qA =
  6681. a
  6682. }
  6683. });
  6684. r = b.Rd.prototype;
  6685. b.i(r, "opacity", r.bh, r.Hb);
  6686. b.i(r, "color", r.rf, r.X);
  6687. b.i(r, "texture", r.xa, r.Oa);
  6688. b.zh.prototype.apply(r);
  6689. b.Rd.create = function(a, d, e, f) {
  6690. return new b.Rd(a, d, e, f)
  6691. };
  6692. (function() {
  6693. b.Rd.n = function(a) {
  6694. b.e.n.call(this, a);
  6695. this.cb = !1;
  6696. this.Um = b.color.WHITE;
  6697. this.O = this.gc = null
  6698. };
  6699. var a = b.Rd.n.prototype = Object.create(b.e.n.prototype);
  6700. a.constructor = b.Rd.n;
  6701. a.ea = function(a, e, f, g) {
  6702. var h = this.k;
  6703. h.ul = e;
  6704. h.gk = f;
  6705. h.Cb = !0;
  6706. this.gc = a;
  6707. if (!this.gc) return b.log(b.o.BM), !1;
  6708. this.O = this.gc;
  6709. this.gG();
  6710. h.quadsToDraw = g;
  6711. return !0
  6712. };
  6713. a.X = function(a) {
  6714. var e = this.k.Qg;
  6715. if (e.r !== a.r || e.g !== a.g || e.b !== a.b) this.Um = a, this.Sm()
  6716. };
  6717. a.Sm = b.fa.DB ? function() {
  6718. var a = this.k,
  6719. e = a.xa();
  6720. if (e && this.gc) {
  6721. var f = this.gc.Sa;
  6722. if (f) {
  6723. var g =
  6724. e.Sa,
  6725. e = b.rect(0, 0, f.width, f.height);
  6726. g instanceof HTMLCanvasElement ? b.B.n.Lo(f, this.Um, e, g) : (g = b.B.n.Lo(f, this.Um, e), e = new b.ja, e.jd(g), e.Tb(), a.Oa(e))
  6727. }
  6728. }
  6729. } : function() {
  6730. var a = this.k,
  6731. e, f = a.xa();
  6732. if (f && this.gc && (e = f.Sa)) {
  6733. var g = this.gc.Sa;
  6734. if (f = b.Xa.zC(g)) g = b.rect(0, 0, g.width, g.height), e instanceof HTMLCanvasElement ? b.B.n.Ko(e, f, this.Vb, g, e) : (e = b.B.n.Ko(e, f, this.Vb, g), f = new b.ja, f.jd(e), f.Tb(), a.Oa(f))
  6735. }
  6736. };
  6737. a.Hb = function(a) {
  6738. b.e.prototype.Hb.call(this.k, a)
  6739. };
  6740. a.xa = function() {
  6741. return this.O
  6742. };
  6743. a.Oa = function(a) {
  6744. this.O =
  6745. a
  6746. };
  6747. a.gG = function() {
  6748. var a = this.k,
  6749. e = this.O.L();
  6750. a.yR = 0 | e.height / a.gk;
  6751. a.Dr = 0 | e.width / a.ul
  6752. }
  6753. })();
  6754. (function() {
  6755. b.Rd.p = function(a) {
  6756. b.e.p.call(this, a);
  6757. this.cb = !0;
  6758. this.Lb = null;
  6759. this.Um = b.color.WHITE;
  6760. this.nJ = this.Oz = null;
  6761. this.za = b.le.Dc(b.oF);
  6762. this.nJ = b.A.getUniformLocation(this.za.Qp(), "u_color")
  6763. };
  6764. var a = b.Rd.p.prototype = Object.create(b.e.p.prototype);
  6765. a.constructor = b.Rd.p;
  6766. a.bi = function() {
  6767. var a = this.k;
  6768. this.Lb.texture.Jk() || (a.H.src = b.SRC_ALPHA, a.H.$ = b.ONE_MINUS_SRC_ALPHA)
  6769. };
  6770. a.AT = function() {
  6771. this.k.Cb = this.Lb.texture.Jk()
  6772. };
  6773. a.Eb = function(a) {
  6774. a = a || b.A;
  6775. var e = this.k;
  6776. this.za.jc();
  6777. this.za.Ug(this.Mc);
  6778. b.ji(e.H.src,
  6779. e.H.$);
  6780. this.nJ && this.Oz && (a.uniform4fv(this.nJ, this.Oz), this.Lb.LU(e.quadsToDraw))
  6781. };
  6782. a.ea = function(a, e, f, g) {
  6783. var h = this.k;
  6784. h.ul = e;
  6785. h.gk = f;
  6786. this.Um = b.color.WHITE;
  6787. h.Cb = !0;
  6788. h.H.src = b.Td;
  6789. h.H.$ = b.Sd;
  6790. e = h.Qg;
  6791. this.Oz = new Float32Array([e.r / 255, e.g / 255, e.b / 255, h.Hl / 255]);
  6792. this.Lb = new b.Tj;
  6793. this.Lb.ea(a, g);
  6794. if (!this.Lb) return b.log(b.o.BM), !1;
  6795. this.bi();
  6796. this.AT();
  6797. this.gG();
  6798. h.quadsToDraw = g;
  6799. return !0
  6800. };
  6801. a.X = function(a) {
  6802. var e = b.color(a.r, a.g, a.b),
  6803. f = this.k;
  6804. this.Um = a;
  6805. a = this.ad;
  6806. f.Cb && (e.r = e.r * a / 255, e.g = e.g * a / 255, e.b = e.b * a / 255);
  6807. b.e.prototype.X.call(f, e)
  6808. };
  6809. a.Hb = function(a) {
  6810. var e = this.k;
  6811. b.e.prototype.Hb.call(e, a);
  6812. e.Cb && (e.color = this.Um)
  6813. };
  6814. a.xb = function() {
  6815. var a = this.Vb;
  6816. this.Oz = new Float32Array([a.r / 255, a.g / 255, a.b / 255, this.ad / 255])
  6817. };
  6818. a.xa = function() {
  6819. return this.Lb.texture
  6820. };
  6821. a.Oa = function(a) {
  6822. this.Lb.texture = a;
  6823. this.bi();
  6824. this.AT()
  6825. };
  6826. a.gG = function() {
  6827. var a = this.k,
  6828. e = this.Lb.texture,
  6829. f = e.L();
  6830. a.qA && (f = e.U);
  6831. a.yR = 0 | f.height / a.gk;
  6832. a.Dr = 0 | f.width / a.ul
  6833. }
  6834. })();
  6835. b.Ea.NF = function() {
  6836. b.ja = b.sa.extend({
  6837. sja: !0,
  6838. mk: null,
  6839. El: 0,
  6840. Dl: 0,
  6841. Wo: "",
  6842. U: null,
  6843. Nk: 0,
  6844. Ok: 0,
  6845. pA: !1,
  6846. vr: !1,
  6847. shaderProgram: null,
  6848. R: !1,
  6849. Sa: null,
  6850. Xg: null,
  6851. url: null,
  6852. ctor: function() {
  6853. this.U = b.size(0, 0);
  6854. this.mk = b.ja.zU
  6855. },
  6856. GL: function() {
  6857. this.Xg && b.A.deleteTexture(this.Xg);
  6858. b.Z.Ad(this.url)
  6859. },
  6860. mV: function() {
  6861. return this.mk
  6862. },
  6863. KK: function() {
  6864. return this.El
  6865. },
  6866. JK: function() {
  6867. return this.Dl
  6868. },
  6869. getName: function() {
  6870. return this.Xg
  6871. },
  6872. L: function() {
  6873. return b.size(this.U.width / b.Db(), this.U.height / b.Db())
  6874. },
  6875. Nh: function() {
  6876. return this.U.width / b.Db()
  6877. },
  6878. ml: function() {
  6879. return this.U.height / b.Db()
  6880. },
  6881. l9: function() {
  6882. return this.U
  6883. },
  6884. U9: function() {
  6885. return this.Nk
  6886. },
  6887. sda: function(a) {
  6888. this.Nk = a
  6889. },
  6890. V9: function() {
  6891. return this.Ok
  6892. },
  6893. tda: function(a) {
  6894. this.Ok = a
  6895. },
  6896. Ms: function() {
  6897. return this.shaderProgram
  6898. },
  6899. pm: function(a) {
  6900. this.shaderProgram = a
  6901. },
  6902. Jk: function() {
  6903. return this.pA
  6904. },
  6905. gaa: function() {
  6906. return this.vr
  6907. },
  6908. description: function() {
  6909. return "\x3ccc.Texture2D | Name \x3d " + this.Wo + " | Dimensions \x3d " + this.El + " x " + this.Dl + " | Coordinates \x3d (" + this.Nk + ", " + this.Ok + ")\x3e"
  6910. },
  6911. aq: function() {},
  6912. jba: function(a) {
  6913. return a
  6914. },
  6915. Sw: function(a, d, e, f, g) {
  6916. var h = b.ja,
  6917. k = b.A,
  6918. m = k.RGBA,
  6919. n = k.UNSIGNED_BYTE,
  6920. p = e * b.ja.bP[d] / 8;
  6921. 0 === p % 8 ? k.pixelStorei(k.UNPACK_ALIGNMENT, 8) : 0 === p % 4 ? k.pixelStorei(k.UNPACK_ALIGNMENT, 4) : 0 === p % 2 ? k.pixelStorei(k.UNPACK_ALIGNMENT, 2) : k.pixelStorei(k.UNPACK_ALIGNMENT, 1);
  6922. this.Xg = k.createTexture();
  6923. b.Rf(this);
  6924. k.texParameteri(k.TEXTURE_2D, k.TEXTURE_MIN_FILTER, k.LINEAR);
  6925. k.texParameteri(k.TEXTURE_2D, k.TEXTURE_MAG_FILTER, k.LINEAR);
  6926. k.texParameteri(k.TEXTURE_2D, k.TEXTURE_WRAP_S, k.CLAMP_TO_EDGE);
  6927. k.texParameteri(k.TEXTURE_2D,
  6928. k.TEXTURE_WRAP_T, k.CLAMP_TO_EDGE);
  6929. switch (d) {
  6930. case h.Bm:
  6931. m = k.RGBA;
  6932. break;
  6933. case h.qu:
  6934. m = k.RGB;
  6935. break;
  6936. case h.Oy:
  6937. n = k.UNSIGNED_SHORT_4_4_4_4;
  6938. break;
  6939. case h.Ny:
  6940. n = k.UNSIGNED_SHORT_5_5_5_1;
  6941. break;
  6942. case h.pu:
  6943. n = k.UNSIGNED_SHORT_5_6_5;
  6944. break;
  6945. case h.TE:
  6946. m = k.LUMINANCE_ALPHA;
  6947. break;
  6948. case h.ou:
  6949. m = k.ALPHA;
  6950. break;
  6951. case h.UE:
  6952. m = k.LUMINANCE;
  6953. break;
  6954. default:
  6955. b.assert(0, b.o.E1)
  6956. }
  6957. k.texImage2D(k.TEXTURE_2D, 0, m, e, f, 0, m, n, a);
  6958. this.U.width = g.width;
  6959. this.U.height = g.height;
  6960. this.El = e;
  6961. this.Dl = f;
  6962. this.mk = d;
  6963. this.Nk = g.width / e;
  6964. this.Ok = g.height / f;
  6965. this.vr =
  6966. this.pA = !1;
  6967. this.shaderProgram = b.le.Dc(b.uu);
  6968. return this.R = !0
  6969. },
  6970. i8: function(a) {
  6971. var d = [0, this.Ok, this.Nk, this.Ok, 0, 0, this.Nk, 0],
  6972. e = this.El * this.Nk,
  6973. f = this.Dl * this.Ok;
  6974. a = [a.x, a.y, 0, e + a.x, a.y, 0, a.x, f + a.y, 0, e + a.x, f + a.y, 0];
  6975. b.hd(b.qe | b.Dq);
  6976. this.za.jc();
  6977. this.za.bY();
  6978. b.Rf(this);
  6979. e = b.A;
  6980. e.vertexAttribPointer(b.Ib, 2, e.FLOAT, !1, 0, a);
  6981. e.vertexAttribPointer(b.re, 2, e.FLOAT, !1, 0, d);
  6982. e.drawArrays(e.TRIANGLE_STRIP, 0, 4)
  6983. },
  6984. l8: function(a) {
  6985. var d = [0, this.Ok, this.Nk, this.Ok, 0, 0, this.Nk, 0];
  6986. a = [a.x, a.y, a.x + a.width, a.y, a.x, a.y + a.height,
  6987. a.x + a.width, a.y + a.height
  6988. ];
  6989. b.hd(b.qe | b.Dq);
  6990. this.za.jc();
  6991. this.za.bY();
  6992. b.Rf(this);
  6993. var e = b.A;
  6994. e.vertexAttribPointer(b.Ib, 2, e.FLOAT, !1, 0, a);
  6995. e.vertexAttribPointer(b.re, 2, e.FLOAT, !1, 0, d);
  6996. e.drawArrays(e.TRIANGLE_STRIP, 0, 4)
  6997. },
  6998. VV: function(a) {
  6999. if (null == a) return b.log(b.o.H1), !1;
  7000. var d = a.Y$(),
  7001. e = a.z9(),
  7002. f = b.ts.tv;
  7003. if (d > f || e > f) return b.log(b.o.I1, d, e, f, f), !1;
  7004. this.R = !0;
  7005. return this.z4(a, d, e)
  7006. },
  7007. jd: function(a) {
  7008. a && (this.Xg = b.A.createTexture(), this.Sa = a, this.R = !0)
  7009. },
  7010. B9: function() {
  7011. return this.Sa
  7012. },
  7013. Zaa: function() {
  7014. return this.R
  7015. },
  7016. Tb: function(a) {
  7017. a = void 0 === a ? !1 : a;
  7018. if (b.jB) {
  7019. if (!this.Sa) {
  7020. var d = b.Z.sf(this.url);
  7021. if (!d) return;
  7022. this.jd(d)
  7023. }
  7024. this.Sa.width && this.Sa.height && (d = b.A, b.Rf(this), d.pixelStorei(d.UNPACK_ALIGNMENT, 4), a && d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 1), d.texImage2D(d.TEXTURE_2D, 0, d.RGBA, d.RGBA, d.UNSIGNED_BYTE, this.Sa), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MIN_FILTER, d.LINEAR), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MAG_FILTER, d.LINEAR), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_S, d.CLAMP_TO_EDGE), d.texParameteri(d.TEXTURE_2D,
  7025. d.TEXTURE_WRAP_T, d.CLAMP_TO_EDGE), this.shaderProgram = b.le.Dc(b.uu), b.Rf(null), a && d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 0), d = this.Sa.height, this.El = this.U.width = this.Sa.width, this.Dl = this.U.height = d, this.mk = b.ja.Bm, this.Ok = this.Nk = 1, this.pA = a, this.vr = !1, this.dispatchEvent("load"))
  7026. }
  7027. },
  7028. je: function() {
  7029. b.log(b.o.N1);
  7030. return null
  7031. },
  7032. saa: function() {
  7033. b.log(b.o.G1);
  7034. return !1
  7035. },
  7036. vaa: function() {
  7037. b.log(b.o.K1);
  7038. return !1
  7039. },
  7040. waa: function() {
  7041. b.log(b.o.M1);
  7042. return !1
  7043. },
  7044. Yda: function(a, d, e, f) {
  7045. var g = b.A;
  7046. void 0 !== d && (a = {
  7047. tW: a,
  7048. sW: d,
  7049. Wx: e,
  7050. Xx: f
  7051. });
  7052. b.assert(this.El === b.Am(this.El) && this.Dl === b.Am(this.Dl) || a.Wx === g.CLAMP_TO_EDGE && a.Xx === g.CLAMP_TO_EDGE, "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures");
  7053. b.Rf(this);
  7054. g.texParameteri(g.TEXTURE_2D, g.TEXTURE_MIN_FILTER, a.tW);
  7055. g.texParameteri(g.TEXTURE_2D, g.TEXTURE_MAG_FILTER, a.sW);
  7056. g.texParameteri(g.TEXTURE_2D, g.TEXTURE_WRAP_S, a.Wx);
  7057. g.texParameteri(g.TEXTURE_2D, g.TEXTURE_WRAP_T, a.Xx)
  7058. },
  7059. Oca: function() {
  7060. var a = b.A;
  7061. b.Rf(this);
  7062. this.vr ? a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER,
  7063. a.LINEAR_MIPMAP_NEAREST) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR);
  7064. a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.LINEAR)
  7065. },
  7066. ML: function() {
  7067. var a = b.A;
  7068. b.Rf(this);
  7069. this.vr ? a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.NEAREST_MIPMAP_NEAREST) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.NEAREST);
  7070. a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.NEAREST)
  7071. },
  7072. generateMipmap: function() {
  7073. b.assert(this.El === b.Am(this.El) && this.Dl === b.Am(this.Dl), "Mimpap texture only works in POT textures");
  7074. b.Rf(this);
  7075. b.A.generateMipmap(b.A.TEXTURE_2D);
  7076. this.vr = !0
  7077. },
  7078. Lea: function() {
  7079. return b.ja.w2[this.mk]
  7080. },
  7081. w7: function(a) {
  7082. a = a || this.mk;
  7083. var d = b.ja.bP[a];
  7084. if (null != d) return d;
  7085. b.log(b.o.D1, a);
  7086. return -1
  7087. },
  7088. z4: function(a, d, e) {
  7089. var f = b.ja,
  7090. g = a.getData(),
  7091. h = null,
  7092. h = null,
  7093. k = a.spa(),
  7094. m = b.size(a.Y$(), a.z9()),
  7095. n = f.zU,
  7096. p = a.Dma();
  7097. k || (8 <= p ? n = f.qu : (b.log(b.o.A1), n = f.pu));
  7098. var s = d * e;
  7099. if (n === f.pu)
  7100. if (k)
  7101. for (g = new Uint16Array(d * e), h = a.getData(), p = 0; p < s; ++p) g[p] = (h[p] >> 0 & 255) >> 3 << 11 | (h[p] >> 8 & 255) >> 2 << 5 | (h[p] >> 16 & 255) >> 3 << 0;
  7102. else
  7103. for (g = new Uint16Array(d *
  7104. e), h = a.getData(), p = 0; p < s; ++p) g[p] = (h[p] & 255) >> 3 << 11 | (h[p] & 255) >> 2 << 5 | (h[p] & 255) >> 3 << 0;
  7105. else if (n === f.Oy)
  7106. for (g = new Uint16Array(d * e), h = a.getData(), p = 0; p < s; ++p) g[p] = (h[p] >> 0 & 255) >> 4 << 12 | (h[p] >> 8 & 255) >> 4 << 8 | (h[p] >> 16 & 255) >> 4 << 4 | (h[p] >> 24 & 255) >> 4 << 0;
  7107. else if (n === f.Ny)
  7108. for (g = new Uint16Array(d * e), h = a.getData(), p = 0; p < s; ++p) g[p] = (h[p] >> 0 & 255) >> 3 << 11 | (h[p] >> 8 & 255) >> 3 << 6 | (h[p] >> 16 & 255) >> 3 << 1 | (h[p] >> 24 & 255) >> 7 << 0;
  7109. else if (n === f.ou)
  7110. for (g = new Uint8Array(d * e), h = a.getData(), p = 0; p < s; ++p) g[p] = h >> 24 & 255;
  7111. if (k && n === f.qu)
  7112. for (h =
  7113. a.getData(), g = new Uint8Array(d * e * 3), p = 0; p < s; ++p) g[3 * p] = h >> 0 & 255, g[3 * p + 1] = h >> 8 & 255, g[3 * p + 2] = h >> 16 & 255;
  7114. this.Sw(g, n, d, e, m);
  7115. a.getData();
  7116. this.pA = a.Zpa();
  7117. return !0
  7118. },
  7119. ls: function(a, d) {
  7120. this.addEventListener("load", a, d)
  7121. },
  7122. tca: function(a) {
  7123. this.removeEventListener("load", a)
  7124. }
  7125. })
  7126. };
  7127. b.Ea.OF = function() {
  7128. var a = b.Tj.prototype;
  7129. a.lp = function() {
  7130. var a = b.A;
  7131. this.Yc[0] = a.createBuffer();
  7132. this.Yc[1] = a.createBuffer();
  7133. this.dp = a.createBuffer();
  7134. this.HA()
  7135. };
  7136. a.HA = function() {
  7137. var a = b.A;
  7138. a.bindBuffer(a.ARRAY_BUFFER, this.dp);
  7139. a.bufferData(a.ARRAY_BUFFER, this.ce, a.DYNAMIC_DRAW);
  7140. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Yc[1]);
  7141. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.gb, a.STATIC_DRAW)
  7142. };
  7143. a.LU = function(a) {
  7144. var e;
  7145. e = 0;
  7146. if (0 !== a && this.texture && this.texture.R) {
  7147. var f = b.A;
  7148. b.Rf(this.texture);
  7149. b.hd(b.Cq);
  7150. f.bindBuffer(f.ARRAY_BUFFER,
  7151. this.dp);
  7152. this.dirty && (f.bufferData(f.ARRAY_BUFFER, this.ce, f.DYNAMIC_DRAW), this.dirty = !1);
  7153. f.vertexAttribPointer(b.Ib, 3, f.FLOAT, !1, 24, 0);
  7154. f.vertexAttribPointer(b.cf, 4, f.UNSIGNED_BYTE, !0, 24, 12);
  7155. f.vertexAttribPointer(b.re, 2, f.FLOAT, !1, 24, 16);
  7156. f.bindBuffer(f.ELEMENT_ARRAY_BUFFER, this.Yc[1]);
  7157. b.fO ? f.drawElements(f.TRIANGLE_STRIP, 6 * a, f.UNSIGNED_SHORT, 6 * e * this.gb.BYTES_PER_ELEMENT) : f.drawElements(f.TRIANGLES, 6 * a, f.UNSIGNED_SHORT, 6 * e * this.gb.BYTES_PER_ELEMENT);
  7158. b.Of++
  7159. }
  7160. }
  7161. };
  7162. b.Ea.PF = function() {
  7163. var a = b.Xa;
  7164. a.Tb = function(a) {
  7165. var e = this.dd;
  7166. b.jB || (e = this.sv);
  7167. var f = e[a];
  7168. f || (f = e[a] = new b.ja, f.url = a);
  7169. f.Tb()
  7170. };
  7171. a.Vc = function(a, e, f) {
  7172. b.assert(a, b.o.C1);
  7173. var g = this.dd;
  7174. b.jB || (g = this.sv);
  7175. var h = g[a] || g[b.Z.vo[a]];
  7176. if (h) return e && e.call(f, h), h;
  7177. h = g[a] = new b.ja;
  7178. h.url = a;
  7179. (b.Z.vP(a) ? b.Z.load : b.Z.at).call(b.Z, a, function(h) {
  7180. if (h) return e && e.call(f, h);
  7181. b.Xa.Tb(a);
  7182. h = g[a];
  7183. e && e.call(f, h)
  7184. });
  7185. return h
  7186. };
  7187. a.O6 = a.Vc;
  7188. a = null
  7189. };
  7190. b.Ea.eF = function() {
  7191. var a = b.ja;
  7192. a.Cha = function(a) {
  7193. b.n0 = a
  7194. };
  7195. a.Bm = 2;
  7196. a.qu = 3;
  7197. a.pu = 4;
  7198. a.ou = 5;
  7199. a.UE = 6;
  7200. a.TE = 7;
  7201. a.Oy = 8;
  7202. a.Ny = 7;
  7203. a.vN = 9;
  7204. a.uN = 10;
  7205. a.d0 = a.Bm;
  7206. var d = b.ja.w2 = {};
  7207. d[a.Bm] = "RGBA8888";
  7208. d[a.qu] = "RGB888";
  7209. d[a.pu] = "RGB565";
  7210. d[a.ou] = "A8";
  7211. d[a.UE] = "I8";
  7212. d[a.TE] = "AI88";
  7213. d[a.Oy] = "RGBA4444";
  7214. d[a.Ny] = "RGB5A1";
  7215. d[a.vN] = "PVRTC4";
  7216. d[a.uN] = "PVRTC2";
  7217. d = b.ja.bP = {};
  7218. d[a.Bm] = 32;
  7219. d[a.qu] = 24;
  7220. d[a.pu] = 16;
  7221. d[a.ou] = 8;
  7222. d[a.UE] = 8;
  7223. d[a.TE] = 16;
  7224. d[a.Oy] = 16;
  7225. d[a.Ny] = 16;
  7226. d[a.vN] = 4;
  7227. d[a.uN] = 3;
  7228. d = b.ja.prototype;
  7229. b.i(d, "name", d.getName);
  7230. b.i(d, "pixelFormat", d.mV);
  7231. b.i(d, "pixelsWidth", d.KK);
  7232. b.i(d, "pixelsHeight", d.JK);
  7233. b.i(d, "width", d.Nh);
  7234. b.i(d, "height", d.ml);
  7235. a.zU = a.d0
  7236. };
  7237. b.Ea.fF = function() {
  7238. var a = b.Tj.prototype;
  7239. b.i(a, "totalQuads", a.DV);
  7240. b.i(a, "capacity", a.dV);
  7241. b.i(a, "quads", a.pV, a.RX)
  7242. };
  7243. b.zfa = 51;
  7244. b.Cfa = 19;
  7245. b.Efa = 18;
  7246. b.Bfa = 50;
  7247. b.yfa = 34;
  7248. b.wfa = 35;
  7249. b.xfa = 33;
  7250. b.Afa = 49;
  7251. b.Dfa = 17;
  7252. b.n0 = !1;
  7253. b.W === b.Jb ? (b.ja = b.sa.extend({
  7254. U: null,
  7255. R: !1,
  7256. Sa: null,
  7257. url: null,
  7258. bB: null,
  7259. ctor: function() {
  7260. this.U = b.size(0, 0);
  7261. this.R = !1;
  7262. this.Sa = null;
  7263. this.bB = ""
  7264. },
  7265. KK: function() {
  7266. return this.U.width
  7267. },
  7268. JK: function() {
  7269. return this.U.height
  7270. },
  7271. L: function() {
  7272. var a = b.Db();
  7273. return b.size(this.U.width / a, this.U.height / a)
  7274. },
  7275. Nh: function() {
  7276. return this.U.width / b.Db()
  7277. },
  7278. ml: function() {
  7279. return this.U.height / b.Db()
  7280. },
  7281. l9: function() {
  7282. return this.U
  7283. },
  7284. jd: function(a) {
  7285. a && (this.Sa = a, this.U.width = a.width, this.U.height = a.height, this.R = !0)
  7286. },
  7287. B9: function() {
  7288. return this.Sa
  7289. },
  7290. Zaa: function() {
  7291. return this.R
  7292. },
  7293. Tb: function() {
  7294. if (!this.R) {
  7295. if (!this.Sa) {
  7296. var a = b.Z.sf(this.url);
  7297. if (!a) return;
  7298. this.jd(a)
  7299. }
  7300. a = this.Sa;
  7301. this.U.width = a.width;
  7302. this.U.height = a.height;
  7303. this.dispatchEvent("load")
  7304. }
  7305. },
  7306. description: function() {
  7307. return "\x3ccc.Texture2D | width \x3d " + this.U.width + " height " + this.U.height + "\x3e"
  7308. },
  7309. Sw: function() {
  7310. return !1
  7311. },
  7312. VV: function() {
  7313. return !1
  7314. },
  7315. je: function() {
  7316. return !1
  7317. },
  7318. GL: function() {
  7319. b.Z.Ad(this.url)
  7320. },
  7321. getName: function() {
  7322. return null
  7323. },
  7324. U9: function() {
  7325. return 1
  7326. },
  7327. sda: function() {},
  7328. V9: function() {
  7329. return 1
  7330. },
  7331. tda: function() {},
  7332. mV: function() {
  7333. return null
  7334. },
  7335. Ms: function() {
  7336. return null
  7337. },
  7338. pm: function() {},
  7339. Jk: function() {
  7340. return !1
  7341. },
  7342. gaa: function() {
  7343. return !1
  7344. },
  7345. aq: function() {},
  7346. jba: function(a) {
  7347. return a
  7348. },
  7349. i8: function() {},
  7350. l8: function() {},
  7351. saa: function() {
  7352. b.log(b.o.F1);
  7353. return !1
  7354. },
  7355. vaa: function() {
  7356. b.log(b.o.J1);
  7357. return !1
  7358. },
  7359. waa: function() {
  7360. b.log(b.o.L1);
  7361. return !1
  7362. },
  7363. Yda: function(a, d, e, f) {
  7364. void 0 !== d && (a = {
  7365. tW: a,
  7366. sW: d,
  7367. Wx: e,
  7368. Xx: f
  7369. });
  7370. this.bB = a.Wx === b.REPEAT && a.Xx === b.REPEAT ? "repeat" : a.Wx === b.REPEAT ? "repeat-x" : a.Xx === b.REPEAT ? "repeat-y" : ""
  7371. },
  7372. Oca: function() {},
  7373. ML: function() {},
  7374. generateMipmap: function() {},
  7375. Lea: function() {
  7376. return ""
  7377. },
  7378. w7: function() {
  7379. return -1
  7380. },
  7381. ls: function(a, d) {
  7382. this.addEventListener("load", a, d)
  7383. },
  7384. tca: function(a) {
  7385. this.removeEventListener("load", a)
  7386. },
  7387. mH: null,
  7388. bG: null,
  7389. rH: !1,
  7390. eT: function(a) {
  7391. this.R && this.rH !== a && ((this.rH = a) ? (this.bG = this.Sa, this.mH || (this.mH = b.ja.B3(this.Sa)), this.Sa = this.mH) : null !== this.bG && (this.Sa = this.bG))
  7392. }
  7393. }), b.ja.B3 = function(a) {
  7394. var d, e;
  7395. if (null === a) return null;
  7396. e = e || b.ic("canvas");
  7397. d = d || b.rect(0, 0, a.width, a.height);
  7398. e.width = d.width;
  7399. e.height =
  7400. d.height;
  7401. var f = e.getContext("2d");
  7402. f.drawImage(a, d.x, d.y, d.width, d.height, 0, 0, d.width, d.height);
  7403. a = f.getImageData(0, 0, d.width, d.height);
  7404. d = a.data;
  7405. for (var g = 0, h = d.length; g < h; g += 4) d[g] = d[g + 1] = d[g + 2] = 0.34 * d[g] + 0.5 * d[g + 1] + 0.16 * d[g + 2];
  7406. f.putImageData(a, 0, 0);
  7407. return e
  7408. }) : (b.assert(b.Ie(b.Ea.NF), b.o.Qj, "TexturesWebGL.js"), b.Ea.NF(), delete b.Ea.NF);
  7409. b.zh.prototype.apply(b.ja.prototype);
  7410. b.assert(b.Ie(b.Ea.eF), b.o.Qj, "TexturesPropertyDefine.js");
  7411. b.Ea.eF();
  7412. delete b.Ea.eF;
  7413. b.Xa = {
  7414. dd: {},
  7415. Yv: {},
  7416. iJ: 0 | 1E3 * Math.random(),
  7417. sv: {},
  7418. D4: function() {
  7419. var a, d = this.sv,
  7420. e = this.dd;
  7421. for (a in d) {
  7422. var f = d[a];
  7423. f.Tb();
  7424. e[a] = f
  7425. }
  7426. this.sv = {}
  7427. },
  7428. Xja: function() {
  7429. b.log(b.o.Rea)
  7430. },
  7431. Tja: function() {
  7432. b.log(b.o.Pea)
  7433. },
  7434. description: function() {
  7435. return "\x3cTextureCache | Number of textures \x3d " + this.dd.length + "\x3e"
  7436. },
  7437. fwa: function(a) {
  7438. b.log(b.o.Wea);
  7439. return this.Kn(a)
  7440. },
  7441. Kn: function(a) {
  7442. return this.dd[a] || this.dd[b.Z.vo[a]]
  7443. },
  7444. J9: function(a) {
  7445. for (var d in this.dd)
  7446. if (this.dd[d] === a) return d;
  7447. return null
  7448. },
  7449. A3: function() {
  7450. this.iJ++;
  7451. return "_textureKey_" +
  7452. this.iJ
  7453. },
  7454. zC: function(a) {
  7455. var d = this.J9(a);
  7456. d || (d = a instanceof HTMLImageElement ? a.src : this.A3());
  7457. this.Yv[d] || (this.Yv[d] = b.B.n.qr(a));
  7458. return this.Yv[d]
  7459. },
  7460. Wja: function() {
  7461. b.log(b.o.Qea)
  7462. },
  7463. Bsa: function() {
  7464. var a = this.dd,
  7465. d;
  7466. for (d in a) a[d] && a[d].GL();
  7467. this.dd = {}
  7468. },
  7469. Osa: function(a) {
  7470. if (a) {
  7471. var d = this.dd,
  7472. e;
  7473. for (e in d) d[e] === a && (d[e].GL(), delete d[e])
  7474. }
  7475. },
  7476. Psa: function(a) {
  7477. null != a && this.dd[a] && delete this.dd[a]
  7478. },
  7479. x7: function(a, d) {
  7480. if (d instanceof b.ja) this.dd[a] = d;
  7481. else {
  7482. var e = new b.ja;
  7483. e.jd(d);
  7484. e.Tb();
  7485. this.dd[a] = e
  7486. }
  7487. },
  7488. bka: function(a,
  7489. d) {
  7490. b.assert(a, b.o.Tea);
  7491. if (d && this.dd[d]) return this.dd[d];
  7492. var e = new b.ja;
  7493. e.VV(a);
  7494. null != d ? this.dd[d] = e : b.log(b.o.Sea);
  7495. return e
  7496. },
  7497. qla: function() {
  7498. var a = 0,
  7499. d = 0,
  7500. e = this.dd,
  7501. f;
  7502. for (f in e) {
  7503. var g = e[f];
  7504. a++;
  7505. g.Sa instanceof HTMLImageElement ? b.log(b.o.Uea, f, g.Sa.src, g.pixelsWidth, g.pixelsHeight) : b.log(b.o.rY, f, g.pixelsWidth, g.pixelsHeight);
  7506. d += g.pixelsWidth * g.pixelsHeight * 4
  7507. }
  7508. e = this.Yv;
  7509. for (f in e) {
  7510. var g = e[f],
  7511. h;
  7512. for (h in g) {
  7513. var k = g[h];
  7514. a++;
  7515. b.log(b.o.rY, f, k.width, k.height);
  7516. d += k.width * k.height * 4
  7517. }
  7518. }
  7519. b.log(b.o.Vea, a, d / 1024, (d / 1048576).toFixed(2))
  7520. },
  7521. Tm: function() {
  7522. this.dd = {};
  7523. this.Yv = {};
  7524. this.iJ = 0 | 1E3 * Math.random();
  7525. this.sv = {}
  7526. }
  7527. };
  7528. b.W === b.Jb ? (r = b.Xa, r.Tb = function(a) {
  7529. var d = this.dd,
  7530. e = d[a];
  7531. e || (e = d[a] = new b.ja, e.url = a);
  7532. e.Tb()
  7533. }, r.Vc = function(a, d, e) {
  7534. b.assert(a, b.o.B1);
  7535. var f = this.dd,
  7536. g = f[a] || f[b.Z.vo[a]];
  7537. if (g) return d && d.call(e, g), g;
  7538. g = f[a] = new b.ja;
  7539. g.url = a;
  7540. (b.Z.vP(a) ? b.Z.load : b.Z.at).call(b.Z, a, function(g) {
  7541. if (g) return d && d.call(e, g);
  7542. b.Xa.Tb(a);
  7543. g = f[a];
  7544. d && d.call(e, g)
  7545. });
  7546. return g
  7547. }, r.O6 = r.Vc, r = null) : (b.assert(b.Ie(b.Ea.PF), b.o.Qj, "TexturesWebGL.js"), b.Ea.PF(), delete b.Ea.PF);
  7548. b.Tj = b.sa.extend({
  7549. dirty: !1,
  7550. texture: null,
  7551. gb: null,
  7552. Yc: null,
  7553. se: 0,
  7554. pd: null,
  7555. ce: null,
  7556. dp: null,
  7557. Pg: null,
  7558. ctor: function(a, d) {
  7559. this.Yc = [];
  7560. b.Je(a) ? this.em(a, d) : a instanceof b.ja && this.ea(a, d)
  7561. },
  7562. DV: function() {
  7563. return this.hb
  7564. },
  7565. dV: function() {
  7566. return this.se
  7567. },
  7568. xa: function() {
  7569. return this.texture
  7570. },
  7571. Oa: function(a) {
  7572. this.texture = a
  7573. },
  7574. qX: function(a) {
  7575. this.dirty = a
  7576. },
  7577. nL: function() {
  7578. return this.dirty
  7579. },
  7580. pV: function() {
  7581. return this.pd
  7582. },
  7583. RX: function(a) {
  7584. this.pd = a
  7585. },
  7586. g3: function(a, d) {
  7587. if (a)
  7588. for (var e = 0; e < a.length; e++) this.wB(a[e], d + e)
  7589. },
  7590. wB: function(a,
  7591. d) {
  7592. var e = this.pd;
  7593. e[d] ? (e[d].bl = a.bl, e[d].br = a.br, e[d].tl = a.tl, e[d].tr = a.tr) : e[d] = new b.Zb(a.tl, a.bl, a.tr, a.br, this.ce, d * b.Zb.BYTES_PER_ELEMENT)
  7594. },
  7595. description: function() {
  7596. return "\x3ccc.TextureAtlas | totalQuads \x3d" + this.hb + "\x3e"
  7597. },
  7598. NS: function() {
  7599. if (0 !== this.se)
  7600. for (var a = this.gb, d = this.se, e = 0; e < d; e++) b.fO ? (a[6 * e + 0] = 4 * e + 0, a[6 * e + 1] = 4 * e + 0, a[6 * e + 2] = 4 * e + 2, a[6 * e + 3] = 4 * e + 1, a[6 * e + 4] = 4 * e + 3, a[6 * e + 5] = 4 * e + 3) : (a[6 * e + 0] = 4 * e + 0, a[6 * e + 1] = 4 * e + 1, a[6 * e + 2] = 4 * e + 2, a[6 * e + 3] = 4 * e + 3, a[6 * e + 4] = 4 * e + 2, a[6 * e + 5] = 4 * e + 1)
  7601. },
  7602. lp: function() {
  7603. var a =
  7604. b.A;
  7605. this.Yc[0] = a.createBuffer();
  7606. this.Yc[1] = a.createBuffer();
  7607. this.dp = a.createBuffer();
  7608. this.HA()
  7609. },
  7610. HA: function() {
  7611. var a = b.A;
  7612. a.bindBuffer(a.ARRAY_BUFFER, this.dp);
  7613. a.bufferData(a.ARRAY_BUFFER, this.ce, a.DYNAMIC_DRAW);
  7614. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Yc[1]);
  7615. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.gb, a.STATIC_DRAW)
  7616. },
  7617. em: function(a, d) {
  7618. var e = b.Xa.Vc(a);
  7619. if (e) return this.ea(e, d);
  7620. b.log(b.o.O1, a);
  7621. return !1
  7622. },
  7623. ea: function(a, d) {
  7624. b.assert(a, b.o.P1);
  7625. this.se = d |= 0;
  7626. this.hb = 0;
  7627. this.texture = a;
  7628. this.pd = [];
  7629. this.gb = new Uint16Array(6 *
  7630. d);
  7631. var e = b.Zb.BYTES_PER_ELEMENT;
  7632. this.ce = new ArrayBuffer(e * d);
  7633. this.Pg = new Uint8Array(this.ce);
  7634. if ((!this.pd || !this.gb) && 0 < d) return !1;
  7635. for (var f = this.pd, g = 0; g < d; g++) f[g] = new b.Zb(null, null, null, null, this.ce, g * e);
  7636. this.NS();
  7637. this.lp();
  7638. return this.dirty = !0
  7639. },
  7640. aE: function(a, d) {
  7641. b.assert(a, b.o.Z1);
  7642. b.assert(0 <= d && d < this.se, b.o.a2);
  7643. this.hb = Math.max(d + 1, this.hb);
  7644. this.wB(a, d);
  7645. this.dirty = !0
  7646. },
  7647. Vs: function(a, d) {
  7648. b.assert(d < this.se, b.o.S1);
  7649. this.hb++;
  7650. if (this.hb > this.se) b.log(b.o.oO);
  7651. else {
  7652. var e = b.Zb.BYTES_PER_ELEMENT,
  7653. f = d *
  7654. e,
  7655. g = (this.hb - 1 - d) * e;
  7656. this.pd[this.hb - 1] = new b.Zb(null, null, null, null, this.ce, (this.hb - 1) * e);
  7657. this.Pg.set(this.Pg.subarray(f, f + g), f + e);
  7658. this.wB(a, d);
  7659. this.dirty = !0
  7660. }
  7661. },
  7662. Epa: function(a, d, e) {
  7663. e = e || a.length;
  7664. b.assert(d + e <= this.se, b.o.T1);
  7665. var f = b.Zb.BYTES_PER_ELEMENT;
  7666. this.hb += e;
  7667. if (this.hb > this.se) b.log(b.o.oO);
  7668. else {
  7669. var g = d * f,
  7670. h = (this.hb - 1 - d - e) * f,
  7671. k = this.hb - 1 - e,
  7672. m;
  7673. for (m = 0; m < e; m++) this.pd[k + m] = new b.Zb(null, null, null, null, this.ce, (this.hb - 1) * f);
  7674. this.Pg.set(this.Pg.subarray(g, g + h), g + f * e);
  7675. for (m = 0; m < e; m++) this.wB(a[m],
  7676. d + m);
  7677. this.dirty = !0
  7678. }
  7679. },
  7680. Dpa: function(a, d) {
  7681. if (a !== d) {
  7682. b.assert(0 <= d || d < this.hb, b.o.Q1);
  7683. b.assert(0 <= a || a < this.hb, b.o.R1);
  7684. var e = b.Zb.BYTES_PER_ELEMENT,
  7685. f = this.Pg,
  7686. g = f.subarray(a * e, e),
  7687. h;
  7688. a > d ? (h = d * e, f.set(f.subarray(h, h + (a - d) * e), h + e), f.set(g, h)) : (h = (a + 1) * e, f.set(f.subarray(h, h + (d - a) * e), h - e), f.set(g, d * e));
  7689. this.dirty = !0
  7690. }
  7691. },
  7692. sx: function(a) {
  7693. b.assert(a < this.hb, b.o.X1);
  7694. var d = b.Zb.BYTES_PER_ELEMENT;
  7695. this.hb--;
  7696. this.pd.length = this.hb;
  7697. if (a !== this.hb) {
  7698. var e = (a + 1) * d;
  7699. this.Pg.set(this.Pg.subarray(e, e + (this.hb - a) * d), e - d)
  7700. }
  7701. this.dirty = !0
  7702. },
  7703. vca: function(a, d) {
  7704. b.assert(a + d <= this.hb, b.o.Y1);
  7705. this.hb -= d;
  7706. if (a !== this.hb) {
  7707. var e = b.Zb.BYTES_PER_ELEMENT,
  7708. f = (a + d) * e;
  7709. this.Pg.set(this.Pg.subarray(f, f + (this.hb - a) * e), a * e)
  7710. }
  7711. this.dirty = !0
  7712. },
  7713. rx: function() {
  7714. this.hb = this.pd.length = 0
  7715. },
  7716. sn: function(a) {
  7717. this.dirty = a
  7718. },
  7719. KL: function(a) {
  7720. if (a === this.se) return !0;
  7721. var d = b.Zb.BYTES_PER_ELEMENT,
  7722. e = this.se;
  7723. this.hb = Math.min(this.hb, a);
  7724. var f = this.se = 0 | a,
  7725. g = this.hb;
  7726. if (null === this.pd)
  7727. for (this.pd = [], this.ce = new ArrayBuffer(d * f), this.Pg = new Uint8Array(this.ce), a = 0; a < f; a++) this.pd =
  7728. new b.Zb(null, null, null, null, this.ce, a * d);
  7729. else {
  7730. var h, k, m = this.pd;
  7731. if (f > e) {
  7732. h = [];
  7733. k = new ArrayBuffer(d * f);
  7734. for (a = 0; a < g; a++) h[a] = new b.Zb(m[a].tl, m[a].bl, m[a].tr, m[a].br, k, a * d);
  7735. for (; a < f; a++) h[a] = new b.Zb(null, null, null, null, k, a * d)
  7736. } else
  7737. for (g = Math.max(g, f), h = [], k = new ArrayBuffer(d * f), a = 0; a < g; a++) h[a] = new b.Zb(m[a].tl, m[a].bl, m[a].tr, m[a].br, k, a * d);
  7738. this.Pg = new Uint8Array(k);
  7739. this.pd = h;
  7740. this.ce = k
  7741. }
  7742. null === this.gb ? this.gb = new Uint16Array(6 * f) : f > e ? (d = new Uint16Array(6 * f), d.set(this.gb, 0), this.gb = d) : this.gb = this.gb.subarray(0,
  7743. 6 * f);
  7744. this.NS();
  7745. this.HA();
  7746. return this.dirty = !0
  7747. },
  7748. NV: function(a) {
  7749. this.hb += a
  7750. },
  7751. uW: function(a, d, e) {
  7752. if (void 0 === e) {
  7753. if (e = d, d = this.hb - a, b.assert(e + (this.hb - a) <= this.se, b.o.U1), 0 === d) return
  7754. } else if (b.assert(e + d <= this.hb, b.o.V1), b.assert(a < this.hb, b.o.W1), a === e) return;
  7755. var f = b.Zb.BYTES_PER_ELEMENT,
  7756. g = a * f,
  7757. h = d * f,
  7758. k = this.Pg,
  7759. m = k.subarray(g, g + h),
  7760. n = e * f;
  7761. e < a ? (d = e * f, k.set(k.subarray(d, d + (a - e) * f), d + h)) : (d = (a + d) * f, k.set(k.subarray(d, d + (e - a) * f), g));
  7762. k.set(m, n);
  7763. this.dirty = !0
  7764. },
  7765. YU: function(a, d) {
  7766. for (var e = d * b.Zb.BYTES_PER_ELEMENT,
  7767. f = new Uint8Array(this.ce, a * b.Zb.BYTES_PER_ELEMENT, e), g = 0; g < e; g++) f[g] = 0
  7768. },
  7769. MU: function() {
  7770. this.LU(this.hb)
  7771. },
  7772. vja: function() {
  7773. var a = b.A;
  7774. this.Yc && (this.Yc[0] && a.deleteBuffer(this.Yc[0]), this.Yc[1] && a.deleteBuffer(this.Yc[1]));
  7775. this.dp && a.deleteBuffer(this.dp)
  7776. }
  7777. });
  7778. r = b.Tj.prototype;
  7779. b.i(r, "totalQuads", r.DV);
  7780. b.i(r, "capacity", r.dV);
  7781. b.i(r, "quads", r.pV, r.RX);
  7782. b.Tj.create = function(a, d) {
  7783. return new b.Tj(a, d)
  7784. };
  7785. b.Tj.eK = b.Tj.create;
  7786. b.W === b.ya && (b.assert(b.Ie(b.Ea.OF), b.o.Qj, "TexturesWebGL.js"), b.Ea.OF(), delete b.Ea.OF);
  7787. b.assert(b.Ie(b.Ea.fF), b.o.Qj, "TexturesPropertyDefine.js");
  7788. b.Ea.fF();
  7789. delete b.Ea.fF;
  7790. b.po = b.e.extend({
  7791. Ma: "Scene",
  7792. ctor: function() {
  7793. b.e.prototype.ctor.call(this);
  7794. this.dn = !0;
  7795. this.rb(0.5, 0.5);
  7796. this.Na(b.P.Fa())
  7797. }
  7798. });
  7799. b.po.create = function() {
  7800. return new b.po
  7801. };
  7802. b.KE = b.po.extend({
  7803. fk: null,
  7804. nd: null,
  7805. Ma: "LoaderScene",
  7806. En: null,
  7807. target: null,
  7808. T: function() {
  7809. var a = this,
  7810. d = 200,
  7811. e = a.U2 = new b.Ub(b.color(255, 255, 255, 255));
  7812. a.C(e, 0);
  7813. var f = 24,
  7814. g = -d / 2 + 100;
  7815. b.yH && (b.Z.at(b.yH, {
  7816. Mn: !1
  7817. }, function(e, f) {
  7818. d = f.height;
  7819. a.B4(f, b.jq.tw)
  7820. }), f = 30, g = -d / 2 - 10);
  7821. var f = a.nd = new b.M("Loading... 0%", "Arial", f),
  7822. h = b.yj(b.jq.tw, b.d(0, g));
  7823. h.y -= 45;
  7824. f.I(h);
  7825. f.X(b.color(180, 180, 180));
  7826. e.C(this.nd, 11);
  7827. f = new b.M(" 请关注我们\n我们将带给你无尽的欢乐!", "Arial", 40);
  7828. h = b.yj(b.jq.tw, b.d(0, g));
  7829. h.y -= 100;
  7830. f.I(h);
  7831. f.X(b.color(180, 180, 180));
  7832. e.C(f, 11);
  7833. return !0
  7834. },
  7835. B4: function(a, d) {
  7836. var e = new b.ja;
  7837. e.jd(a);
  7838. e.Tb();
  7839. e = new b.B(e);
  7840. e.Tn(b.Db());
  7841. e.x = d.x;
  7842. e.y = d.y + 80;
  7843. this.U2.C(e, 10)
  7844. },
  7845. aa: function() {
  7846. b.e.prototype.aa.call(this);
  7847. this.Dj(this.aT, 0.3)
  7848. },
  7849. Pb: function() {
  7850. b.e.prototype.Pb.call(this);
  7851. this.nd.Wc("Loading... 0%")
  7852. },
  7853. yaa: function(a, d, e) {
  7854. b.Je(a) && (a = [a]);
  7855. this.Eca = a || [];
  7856. this.En = d;
  7857. this.target = e
  7858. },
  7859. aT: function() {
  7860. var a = this;
  7861. a.tg(a.aT);
  7862. b.Z.load(a.Eca, function(d, e, f) {
  7863. d = Math.min(f / e * 100 | 0, 100);
  7864. a.nd.Wc("Loading... " + d + "%")
  7865. }, function() {
  7866. a.En &&
  7867. a.En.call(a.target)
  7868. })
  7869. }
  7870. });
  7871. b.KE.aca = function(a, d) {
  7872. var e = ka,
  7873. f = b;
  7874. f.dD || (f.dD = new b.KE, f.dD.T());
  7875. f.dD.yaa(e, a, d);
  7876. b.P.GD(f.dD)
  7877. };
  7878. b.Ua = b.e.extend({
  7879. Ma: "Layer",
  7880. ctor: function() {
  7881. var a = b.e.prototype;
  7882. a.ctor.call(this);
  7883. this.dn = !0;
  7884. a.rb.call(this, 0.5, 0.5);
  7885. a.Na.call(this, b.ld)
  7886. },
  7887. T: function() {
  7888. this.dn = !0;
  7889. this.rb(0.5, 0.5);
  7890. this.Na(b.ld);
  7891. this.$c = this.Zc = !1;
  7892. return !0
  7893. },
  7894. MJ: function() {
  7895. this.f.MJ()
  7896. },
  7897. Sx: function() {
  7898. this.f.Sx()
  7899. },
  7900. Paa: function() {
  7901. return this.sl
  7902. },
  7903. C: function(a, d, e) {
  7904. b.e.prototype.C.call(this, a, d, e);
  7905. this.f.oP(a)
  7906. },
  7907. Ic: function() {
  7908. return b.W === b.Jb ? new b.Ua.n(this) : new b.Ua.p(this)
  7909. }
  7910. });
  7911. b.Ua.create = function() {
  7912. return new b.Ua
  7913. };
  7914. b.Ub = b.Ua.extend({
  7915. H: null,
  7916. Ma: "LayerColor",
  7917. Gk: function() {
  7918. return this.H
  7919. },
  7920. yka: function(a, d) {
  7921. this.width = a;
  7922. this.height = d
  7923. },
  7924. xka: function(a) {
  7925. this.width = a
  7926. },
  7927. wka: function(a) {
  7928. this.height = a
  7929. },
  7930. Le: function() {},
  7931. tf: function() {
  7932. return !1
  7933. },
  7934. ctor: function(a, d, e) {
  7935. b.Ua.prototype.ctor.call(this);
  7936. this.H = new b.Gc(b.Td, b.Sd);
  7937. b.Ub.prototype.T.call(this, a, d, e)
  7938. },
  7939. T: function(a, d, e) {
  7940. b.W !== b.Jb && (this.shaderProgram = b.le.Dc(b.Xy));
  7941. var f = b.P.Fa();
  7942. a = a || b.color(0, 0, 0, 255);
  7943. d = void 0 === d ? f.width : d;
  7944. e = void 0 === e ? f.height : e;
  7945. f = this.Qg;
  7946. f.r = a.r;
  7947. f.g =
  7948. a.g;
  7949. f.b = a.b;
  7950. this.Hl = a.a;
  7951. this.f.va(b.e.V.Ka | b.e.V.Ha);
  7952. b.Ub.prototype.Na.call(this, d, e);
  7953. return !0
  7954. },
  7955. sg: function(a, d) {
  7956. var e = this.H;
  7957. void 0 === d ? (e.src = a.src, e.$ = a.$) : (e.src = a, e.$ = d);
  7958. this.f.Tx(e)
  7959. },
  7960. cj: function(a) {
  7961. b.e.prototype.cj.call(this, a);
  7962. this.f.ET(a)
  7963. },
  7964. bj: function(a) {
  7965. b.e.prototype.bj.call(this, a);
  7966. this.f.DT(a)
  7967. },
  7968. Na: function(a, d) {
  7969. b.Ua.prototype.Na.call(this, a, d);
  7970. this.f.CT(a, d)
  7971. },
  7972. Ic: function() {
  7973. return b.W === b.Jb ? new b.Ub.n(this) : new b.Ub.p(this)
  7974. }
  7975. });
  7976. b.Ub.create = function(a, d, e) {
  7977. return new b.Ub(a, d, e)
  7978. };
  7979. var la = b.Ub.prototype;
  7980. b.i(la, "width", la.Nh, la.cj);
  7981. b.i(la, "height", la.ml, la.bj);
  7982. b.yf = b.Ub.extend({
  7983. gg: null,
  7984. Vr: 255,
  7985. gr: 255,
  7986. Nm: null,
  7987. sG: !1,
  7988. Ma: "LayerGradient",
  7989. Af: [],
  7990. ctor: function(a, d, e, f) {
  7991. b.Ub.prototype.ctor.call(this);
  7992. this.gg = b.color(0, 0, 0, 255);
  7993. this.Nm = b.d(0, -1);
  7994. this.gr = this.Vr = 255;
  7995. f && f instanceof Array ? (this.Af = f, f.splice(0, 0, {
  7996. d: 0,
  7997. color: a || b.color.BLACK
  7998. }), f.push({
  7999. d: 1,
  8000. color: d || b.color.BLACK
  8001. })) : this.Af = [{
  8002. d: 0,
  8003. color: a || b.color.BLACK
  8004. }, {
  8005. d: 1,
  8006. color: d || b.color.BLACK
  8007. }];
  8008. b.yf.prototype.T.call(this, a, d, e, f)
  8009. },
  8010. T: function(a, d, e) {
  8011. a = a || b.color(0, 0, 0, 255);
  8012. d = d || b.color(0, 0, 0, 255);
  8013. e = e || b.d(0, -1);
  8014. var f =
  8015. this.gg;
  8016. this.Vr = a.a;
  8017. f.r = d.r;
  8018. f.g = d.g;
  8019. f.b = d.b;
  8020. this.gr = d.a;
  8021. this.Nm = e;
  8022. this.sG = !0;
  8023. b.Ub.prototype.T.call(this, b.color(a.r, a.g, a.b, 255));
  8024. this.f.va(b.e.V.Ka | b.e.V.Ha | b.e.V.ki);
  8025. return !0
  8026. },
  8027. Na: function(a, d) {
  8028. b.Ub.prototype.Na.call(this, a, d);
  8029. this.f.va(b.e.V.ki)
  8030. },
  8031. cj: function(a) {
  8032. b.Ub.prototype.cj.call(this, a);
  8033. this.f.va(b.e.V.ki)
  8034. },
  8035. bj: function(a) {
  8036. b.Ub.prototype.bj.call(this, a);
  8037. this.f.va(b.e.V.ki)
  8038. },
  8039. xC: function() {
  8040. return b.color(this.Qg)
  8041. },
  8042. Vf: function(a) {
  8043. this.color = a;
  8044. var d = this.Af;
  8045. d && 0 < d.length && (d = d[0].color, d.r = a.r,
  8046. d.g = a.g, d.b = a.b)
  8047. },
  8048. Tf: function(a) {
  8049. var d = this.gg;
  8050. d.r = a.r;
  8051. d.g = a.g;
  8052. d.b = a.b;
  8053. (d = this.Af) && 0 < d.length && (d = d[d.length - 1].color, d.r = a.r, d.g = a.g, d.b = a.b);
  8054. this.f.va(b.e.V.Ka)
  8055. },
  8056. pC: function() {
  8057. return b.color(this.gg)
  8058. },
  8059. Uda: function(a) {
  8060. this.Vr = a;
  8061. var d = this.Af;
  8062. d && 0 < d.length && (d[0].color.a = a);
  8063. this.f.va(b.e.V.Ha)
  8064. },
  8065. J$: function() {
  8066. return this.Vr
  8067. },
  8068. dda: function(a) {
  8069. this.gr = a;
  8070. var d = this.Af;
  8071. d && 0 < d.length && (d[d.length - 1].color.a = a);
  8072. this.f.va(b.e.V.Ha)
  8073. },
  8074. r9: function() {
  8075. return this.gr
  8076. },
  8077. gea: function(a) {
  8078. this.Nm.x = a.x;
  8079. this.Nm.y = a.y;
  8080. this.f.va(b.e.V.ki)
  8081. },
  8082. T$: function() {
  8083. return b.d(this.Nm.x, this.Nm.y)
  8084. },
  8085. Lpa: function() {
  8086. return this.sG
  8087. },
  8088. Dta: function(a) {
  8089. this.sG = a;
  8090. this.f.va(b.e.V.ki)
  8091. },
  8092. h9: function() {
  8093. return this.Af
  8094. },
  8095. Wca: function(a) {
  8096. this.Af = a;
  8097. this.f.va(b.e.V.Ka | b.e.V.Ha | b.e.V.ki)
  8098. },
  8099. Ic: function() {
  8100. return b.W === b.Jb ? new b.yf.n(this) : new b.yf.p(this)
  8101. }
  8102. });
  8103. b.yf.create = function(a, d, e, f) {
  8104. return new b.yf(a, d, e, f)
  8105. };
  8106. var R = b.yf.prototype;
  8107. b.i(R, "startColor", R.xC, R.Vf);
  8108. b.i(R, "endColor", R.pC, R.Tf);
  8109. b.i(R, "startOpacity", R.J$, R.Uda);
  8110. b.i(R, "endOpacity", R.r9, R.dda);
  8111. b.i(R, "vector", R.T$, R.gea);
  8112. b.i(R, "colorStops", R.h9, R.Wca);
  8113. b.Ky = b.Ua.extend({
  8114. Ho: 0,
  8115. hf: null,
  8116. Ma: "LayerMultiplex",
  8117. ctor: function(a) {
  8118. b.Ua.prototype.ctor.call(this);
  8119. a instanceof Array ? b.Ky.prototype.XV.call(this, a) : b.Ky.prototype.XV.call(this, Array.prototype.slice.call(arguments))
  8120. },
  8121. XV: function(a) {
  8122. 0 < a.length && null == a[a.length - 1] && b.log(b.o.z_);
  8123. this.hf = a;
  8124. this.Ho = 0;
  8125. this.C(this.hf[this.Ho]);
  8126. return !0
  8127. },
  8128. Xva: function(a) {
  8129. a >= this.hf.length ? b.log(b.o.A_) : (this.removeChild(this.hf[this.Ho], !0), this.Ho = a, this.C(this.hf[a]))
  8130. },
  8131. Yva: function(a) {
  8132. a >= this.hf.length ? b.log(b.o.B_) : (this.removeChild(this.hf[this.Ho], !0), this.hf[this.Ho] = null, this.Ho = a, this.C(this.hf[a]))
  8133. },
  8134. Uja: function(a) {
  8135. a ? this.hf.push(a) : b.log(b.o.y_)
  8136. }
  8137. });
  8138. b.Ky.create = function() {
  8139. return new b.Ky(Array.prototype.slice.call(arguments))
  8140. };
  8141. (function() {
  8142. b.Ua.n = function(a) {
  8143. b.e.n.call(this, a);
  8144. this.sl = !1;
  8145. this.Pm = null
  8146. };
  8147. var a = b.Ua.n.prototype = Object.create(b.e.n.prototype);
  8148. a.constructor = b.Ua.n;
  8149. a.MJ = function() {
  8150. if (!this.sl) {
  8151. this.cb = !0;
  8152. this.sl = this.Wd = b.oa.he = !0;
  8153. for (var a = this.k.m, e = 0, f = a.length; e < f; e++) a[e].f.sB(this);
  8154. this.Pm || (this.Pm = new b.ZY, this.Pm.rb(0, 0))
  8155. }
  8156. };
  8157. a.Sx = function() {
  8158. if (this.sl) {
  8159. b.oa.he = !0;
  8160. this.sl = this.cb = !1;
  8161. this.Wd = !0;
  8162. for (var a = this.k.m, e = 0, f = a.length; e < f; e++) a[e].f.sB(null)
  8163. }
  8164. };
  8165. a.Paa = function() {
  8166. return this.sl
  8167. };
  8168. a.Eb = function() {
  8169. if (this.Wd) {
  8170. var a =
  8171. this.k,
  8172. e = a.m,
  8173. f = this.Pm;
  8174. this.transform(P(this), !0);
  8175. var g = this.XG();
  8176. g.width = 0 | g.width + 0.5;
  8177. g.height = 0 | g.height + 0.5;
  8178. var h = f.Ve,
  8179. k = h.getContext();
  8180. f.WW(g.width, g.height);
  8181. h.Gj(0 - g.x, k.canvas.height - g.height + g.y);
  8182. f.I(g.x, g.y);
  8183. a.Ne();
  8184. b.oa.es(this.ba);
  8185. a = 0;
  8186. for (g = e.length; a < g; a++) e[a].Q(this);
  8187. b.oa.Jv(h, this.ba);
  8188. f.transform();
  8189. this.Wd = !1
  8190. }
  8191. };
  8192. a.Q = function(a) {
  8193. if (this.sl) {
  8194. var e = this.k,
  8195. f = e.m.length;
  8196. e.Ta && 0 !== f && (this.cd(a), b.oa.Ec(this), this.Pm.Q(this), this.G = 0)
  8197. } else b.e.n.prototype.Q.call(this, a)
  8198. };
  8199. a.oP = function(a) {
  8200. a.Ga ===
  8201. this.k && this.sl && a.f.sB(this)
  8202. };
  8203. a.XG = function() {
  8204. var a = null,
  8205. e = this.k;
  8206. if (!e.m || 0 === e.m.length) return b.rect(0, 0, 10, 10);
  8207. for (var f = e.In(), e = e.m, g = 0, h = e.length; g < h; g++) {
  8208. var k = e[g];
  8209. k && k.Ta && (a ? (k = k.hv(f)) && (a = b.kt(a, k)) : a = k.hv(f))
  8210. }
  8211. return a
  8212. }
  8213. })();
  8214. (function() {
  8215. b.Ub.n = function(a) {
  8216. b.Ua.n.call(this, a);
  8217. this.cb = !0;
  8218. this.$k = "source-over";
  8219. this.R2 = new b.wg(this, this.S2)
  8220. };
  8221. var a = b.Ub.n.prototype = Object.create(b.Ua.n.prototype);
  8222. a.constructor = b.Ub.n;
  8223. a.Sx = function() {
  8224. b.Ua.n.prototype.Sx.call(this);
  8225. this.cb = !0
  8226. };
  8227. a.Eb = function(a, e, f) {
  8228. a = a || b.A;
  8229. var g = a.getContext(),
  8230. h = this.k,
  8231. k = this.Vb,
  8232. m = this.ad / 255,
  8233. n = h.U.width,
  8234. h = h.U.height;
  8235. 0 !== m && (a.xx(this.$k), a.ut(m), a.Fj("rgba(" + (0 | k.r) + "," + (0 | k.g) + "," + (0 | k.b) + ", 1)"), a.setTransform(this.jj, e, f), g.fillRect(0, 0, n * e, -h * f), b.Of++)
  8236. };
  8237. a.Tx = function(a) {
  8238. this.$k = b.e.n.VQ(a)
  8239. };
  8240. a.CT = a.ET = a.DT = function() {};
  8241. a.S2 = function() {
  8242. if (this.Wd) {
  8243. var a = this.k,
  8244. e = this.Pm,
  8245. f = a.m,
  8246. g = f.length;
  8247. this.transform(P(this), !0);
  8248. var h = this.XG();
  8249. h.width = 0 | h.width + 0.5;
  8250. h.height = 0 | h.height + 0.5;
  8251. var k = e.Ve,
  8252. m = k.getContext();
  8253. e.WW(h.width, h.height);
  8254. k.Gj(0 - h.x, m.canvas.height - h.height + h.y);
  8255. e.I(h.x, h.y);
  8256. b.oa.es(this.ba);
  8257. if (0 < g) {
  8258. a.Ne();
  8259. for (a = 0; a < g; a++)
  8260. if (h = f[a], 0 > h.wc) h.f.Q(this);
  8261. else break;
  8262. for (b.oa.Ec(this); a < g; a++) f[a].f.Q(this)
  8263. } else b.oa.Ec(this);
  8264. b.oa.Jv(k, this.ba);
  8265. e.transform();
  8266. this.Wd = !1
  8267. }
  8268. };
  8269. a.Q = function(a) {
  8270. this.sl ? this.k.Ta && (this.cd(a), b.oa.Ec(this.R2), this.Pm.f.va(b.e.V.la), this.Pm.Q(this), this.G = 0) : b.e.n.prototype.Q.call(this)
  8271. };
  8272. a.XG = function() {
  8273. var a = this.k,
  8274. e = b.rect(0, 0, a.U.width, a.U.height),
  8275. f = a.In(),
  8276. e = b.oi(e, a.In());
  8277. if (!a.m || 0 === a.m.length) return e;
  8278. for (var a = a.m, g = 0; g < a.length; g++) {
  8279. var h = a[g];
  8280. h && h.Ta && (h = h.hv(f), e = b.kt(e, h))
  8281. }
  8282. return e
  8283. }
  8284. })();
  8285. b.yf.Re = {
  8286. updateStatus: function() {
  8287. var a = b.e.V,
  8288. d = this.G,
  8289. e = d & a.Ka,
  8290. f = d & a.Ha;
  8291. e && this.Ae();
  8292. f && this.ci();
  8293. d & a.la && this.transform(null, !0);
  8294. (e || f || d & a.ki) && this.xb();
  8295. this.G = 0
  8296. }
  8297. };
  8298. (function() {
  8299. b.yf.n = function(a) {
  8300. b.Ub.n.call(this, a);
  8301. this.cb = !0;
  8302. this.rk = b.d(0, 0);
  8303. this.dA = b.d(0, 0);
  8304. this.EQ = this.cT = null
  8305. };
  8306. var a = b.yf.n.prototype = Object.create(b.Ub.n.prototype);
  8307. b.RC(b.yf.Re, a);
  8308. a.constructor = b.yf.n;
  8309. a.Eb = function(a, e, f) {
  8310. a = a || b.A;
  8311. var g = a.getContext(),
  8312. h = this.k,
  8313. k = this.ad / 255;
  8314. if (0 !== k) {
  8315. var m = h.U.width,
  8316. n = h.U.height;
  8317. a.xx(this.$k);
  8318. a.ut(k);
  8319. k = g.createLinearGradient(this.rk.x * e, this.rk.y * f, this.dA.x * e, this.dA.y * f);
  8320. if (h.Af)
  8321. for (var p = 0; p < h.Af.length; p++) k.addColorStop(h.Af[p].d, this.zP[p]);
  8322. else k.addColorStop(0,
  8323. this.cT), k.addColorStop(1, this.EQ);
  8324. a.Fj(k);
  8325. a.setTransform(this.jj, e, f);
  8326. g.fillRect(0, 0, m * e, -n * f);
  8327. b.Of++
  8328. }
  8329. };
  8330. a.cd = function(a) {
  8331. var e = b.e.V,
  8332. f = this.G,
  8333. g = a ? a.k : null;
  8334. g && g.Zc && a.G & e.Ka && (f |= e.Ka);
  8335. g && g.$c && a.G & e.Ha && (f |= e.Ha);
  8336. a && a.G & e.la && (f |= e.la);
  8337. var g = f & e.Ka,
  8338. h = f & e.Ha;
  8339. this.G = f;
  8340. g && ja(this);
  8341. h && ia(this);
  8342. f & e.la && this.transform(a);
  8343. (g || h || f & e.ki) && this.xb()
  8344. };
  8345. a.xb = function() {
  8346. var a = this.k,
  8347. e = a.U,
  8348. f = 0.5 * e.width,
  8349. e = 0.5 * e.height;
  8350. this.G ^= this.G & b.e.V.ki;
  8351. var g = b.AW(b.d(0, -1), a.Nm),
  8352. g = b.HW(b.d(0, -1), b.d(0, 0), g),
  8353. h = Math.min(Math.abs(1 /
  8354. g.x), Math.abs(1 / g.y));
  8355. this.rk.x = f * -g.x * h + f;
  8356. this.rk.y = e * g.y * h - e;
  8357. this.dA.x = f * g.x * h + f;
  8358. this.dA.y = e * -g.y * h - e;
  8359. f = this.Vb;
  8360. e = a.gg;
  8361. g = a.gr / 255;
  8362. this.cT = "rgba(" + Math.round(f.r) + "," + Math.round(f.g) + "," + Math.round(f.b) + "," + (a.Vr / 255).toFixed(4) + ")";
  8363. this.EQ = "rgba(" + Math.round(e.r) + "," + Math.round(e.g) + "," + Math.round(e.b) + "," + g.toFixed(4) + ")";
  8364. if (a.Af)
  8365. for (this.gr = this.Vr = 0, this.zP = [], f = 0; f < a.Af.length; f++) e = a.Af[f].color, this.zP.push("rgba(" + Math.round(e.r) + "," + Math.round(e.g) + "," + Math.round(e.b) + "," + (null == e.a ? 1 : e.a /
  8366. 255).toFixed(4) + ")")
  8367. }
  8368. })();
  8369. (function() {
  8370. b.Ua.p = function(a) {
  8371. b.e.p.call(this, a)
  8372. };
  8373. var a = b.Ua.p.prototype = Object.create(b.e.p.prototype);
  8374. a.constructor = b.Ua.p;
  8375. a.MJ = function() {};
  8376. a.Sx = function() {};
  8377. a.oP = function() {}
  8378. })();
  8379. (function() {
  8380. b.Ub.p = function(a) {
  8381. b.Ua.p.call(this, a);
  8382. this.cb = !0;
  8383. this.zB = new ArrayBuffer(32);
  8384. this.yB = new ArrayBuffer(16);
  8385. a = this.zB;
  8386. var e = this.yB,
  8387. f = M.BYTES_PER_ELEMENT,
  8388. g = b.bf.BYTES_PER_ELEMENT;
  8389. this.Tr = [new M(0, 0, a, 0), new M(0, 0, a, f), new M(0, 0, a, 2 * f), new M(0, 0, a, 3 * f)];
  8390. this.YS = [b.color(0, 0, 0, 255, e, 0), b.color(0, 0, 0, 255, e, g), b.color(0, 0, 0, 255, e, 2 * g), b.color(0, 0, 0, 255, e, 3 * g)];
  8391. this.xJ = b.A.createBuffer();
  8392. this.rG = b.A.createBuffer()
  8393. };
  8394. var a = b.Ub.p.prototype = Object.create(b.Ua.p.prototype);
  8395. a.constructor = b.Ub.p;
  8396. a.Eb =
  8397. function(a) {
  8398. a = a || b.A;
  8399. var e = this.k;
  8400. this.za.jc();
  8401. this.za.Ug(this.Mc);
  8402. b.hd(b.qe | b.Cu);
  8403. b.ji(e.H.src, e.H.$);
  8404. a.bindBuffer(a.ARRAY_BUFFER, this.xJ);
  8405. a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, 0, 0);
  8406. a.bindBuffer(a.ARRAY_BUFFER, this.rG);
  8407. a.vertexAttribPointer(b.cf, 4, a.UNSIGNED_BYTE, !0, 0, 0);
  8408. a.drawArrays(a.TRIANGLE_STRIP, 0, this.Tr.length)
  8409. };
  8410. a.CT = function(a, e) {
  8411. var f = this.Tr;
  8412. void 0 === e ? (f[1].x = a.width, f[2].y = a.height, f[3].x = a.width, f[3].y = a.height) : (f[1].x = a, f[2].y = e, f[3].x = a, f[3].y = e);
  8413. this.Ez()
  8414. };
  8415. a.ET = function(a) {
  8416. var e =
  8417. this.Tr;
  8418. e[1].x = a;
  8419. e[3].x = a;
  8420. this.Ez()
  8421. };
  8422. a.DT = function(a) {
  8423. var e = this.Tr;
  8424. e[2].y = a;
  8425. e[3].y = a;
  8426. this.Ez()
  8427. };
  8428. a.xb = function() {
  8429. for (var a = this.Vb, e = this.ad, f = this.YS, g = 0; 4 > g; g++) f[g].r = a.r, f[g].g = a.g, f[g].b = a.b, f[g].a = e;
  8430. this.qP()
  8431. };
  8432. a.Ez = function() {
  8433. var a = b.A;
  8434. a.bindBuffer(a.ARRAY_BUFFER, this.xJ);
  8435. a.bufferData(a.ARRAY_BUFFER, this.zB, a.STATIC_DRAW)
  8436. };
  8437. a.qP = function() {
  8438. var a = b.A;
  8439. a.bindBuffer(a.ARRAY_BUFFER, this.rG);
  8440. a.bufferData(a.ARRAY_BUFFER, this.yB, a.STATIC_DRAW)
  8441. };
  8442. a.Tx = function() {}
  8443. })();
  8444. (function() {
  8445. b.yf.p = function(a) {
  8446. b.Ub.p.call(this, a);
  8447. this.cb = !0;
  8448. this.xP = new b.Dh;
  8449. this.yP = !1
  8450. };
  8451. var a = b.yf.p.prototype = Object.create(b.Ub.p.prototype);
  8452. b.RC(b.yf.Re, a);
  8453. a.constructor = b.yf.p;
  8454. a.cd = function(a) {
  8455. var e = b.e.V,
  8456. f = this.G,
  8457. g = a ? a.k : null;
  8458. g && g.Zc && a.G & e.Ka && (f |= e.Ka);
  8459. g && g.$c && a.G & e.Ha && (f |= e.Ha);
  8460. a && a.G & e.la && (f |= e.la);
  8461. var g = f & e.Ka,
  8462. h = f & e.Ha;
  8463. this.G = f;
  8464. g && ja(this);
  8465. h && ia(this);
  8466. this.transform(a);
  8467. (g || h || f & e.ki) && this.xb()
  8468. };
  8469. a.xb = function() {
  8470. this.G ^= this.G & b.e.V.ki;
  8471. var a = this.k,
  8472. e = a.Af;
  8473. if (e && !(2 > e.length)) {
  8474. this.yP = !0;
  8475. var f = e.length,
  8476. g = 2 * f,
  8477. h, k = a.U;
  8478. this.zB = new ArrayBuffer(8 * g);
  8479. this.yB = new ArrayBuffer(4 * g);
  8480. var m = this.Tr,
  8481. n = this.YS;
  8482. m.length = 0;
  8483. n.length = 0;
  8484. var p = this.zB,
  8485. s = this.yB,
  8486. t = M.BYTES_PER_ELEMENT,
  8487. v = b.bf.BYTES_PER_ELEMENT;
  8488. for (h = 0; h < g; h++) m.push(new M(0, 0, p, t * h)), n.push(b.color(0, 0, 0, 255, s, v * h));
  8489. h = Math.PI + b.AW(b.d(0, -1), a.Nm);
  8490. a = b.d(k.width / 2, k.height / 2);
  8491. p = Math.round(b.jx(h));
  8492. g = b.S6(a.x, a.y);
  8493. g = b.TT(g, h);
  8494. 90 > p ? (p = b.d(-a.x, a.y), s = b.d(a.x, a.y)) : 180 > p ? (p = b.d(a.x, a.y), s = b.d(a.x, -a.y)) : 270 > p ? (p = b.d(a.x, -a.y), s = b.d(-a.x, -a.y)) : (p = b.d(-a.x, -a.y), s = b.d(-a.x, a.y));
  8495. t = Math.sin(h);
  8496. h = Math.cos(h);
  8497. g = b.T6(g, Math.abs((p.x * h - p.y * t) / a.x), Math.abs((s.x * t + s.y * h) / a.y));
  8498. for (h = 0; h < f; h++) p = e[h].d * k.height, s = b.hh(-a.x, p - a.y, g), m[2 * h].x = s.x, m[2 * h].y = s.y, p = b.hh(k.width - a.x, p - a.y, g), m[2 * h + 1].x = p.x, m[2 * h + 1].y = p.y;
  8499. k = this.ad / 255;
  8500. for (h = 0; h < f; h++) m = e[h].color, a = n[2 * h], g = n[2 * h + 1], a.r = m.r, a.g = m.g, a.b = m.b, a.a = m.a * k, g.r = m.r, g.g = m.g, g.b = m.b, g.a = m.a * k;
  8501. this.Ez();
  8502. this.qP()
  8503. }
  8504. };
  8505. a.Eb = function(a) {
  8506. a = a || b.A;
  8507. var e = this.k,
  8508. f = this.J3();
  8509. a.enable(a.SCISSOR_TEST);
  8510. b.view.RD(f.x, f.y, f.width, f.height);
  8511. this.za.jc();
  8512. this.za.Ug(this.Mc);
  8513. b.hd(b.qe | b.Cu);
  8514. b.ji(e.H.src, e.H.$);
  8515. a.bindBuffer(a.ARRAY_BUFFER, this.xJ);
  8516. a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, 0, 0);
  8517. a.bindBuffer(a.ARRAY_BUFFER, this.rG);
  8518. a.vertexAttribPointer(b.cf, 4, a.UNSIGNED_BYTE, !0, 0, 0);
  8519. a.drawArrays(a.TRIANGLE_STRIP, 0, this.Tr.length);
  8520. a.disable(a.SCISSOR_TEST)
  8521. };
  8522. a.J3 = function() {
  8523. if (this.yP) {
  8524. var a = this.k,
  8525. e = b.rect(0, 0, a.U.width, a.U.height),
  8526. a = a.In();
  8527. this.xP = b.Yi(e, a)
  8528. }
  8529. return this.xP
  8530. }
  8531. })();
  8532. b.Ea.dF = function() {
  8533. var a = b.B.prototype;
  8534. b.i(a, "opacityModifyRGB", a.tf, a.Le);
  8535. b.i(a, "opacity", a.bh, a.Hb);
  8536. b.i(a, "color", a.rf, a.X);
  8537. b.i(a, "flippedX", a.eW, a.Ax);
  8538. b.i(a, "flippedY", a.fW, a.JD);
  8539. b.i(a, "offsetX", a.Y3);
  8540. b.i(a, "offsetY", a.Z3);
  8541. b.i(a, "texture", a.xa, a.Oa);
  8542. b.i(a, "textureRectRotated", a.dba);
  8543. b.i(a, "batchNode", a.yK, a.si);
  8544. b.i(a, "quad", a.uC)
  8545. };
  8546. b.B = b.e.extend({
  8547. dirty: !1,
  8548. atlasIndex: 0,
  8549. textureAtlas: null,
  8550. qa: null,
  8551. ep: null,
  8552. ur: null,
  8553. np: !1,
  8554. ds: null,
  8555. H: null,
  8556. O: null,
  8557. Va: null,
  8558. Gf: !1,
  8559. ve: null,
  8560. yp: null,
  8561. Cb: !1,
  8562. uc: !1,
  8563. vc: !1,
  8564. R: !1,
  8565. Ma: "Sprite",
  8566. ctor: function(a, d, e) {
  8567. b.e.prototype.ctor.call(this);
  8568. this.np = !1;
  8569. this.ve = b.d(0, 0);
  8570. this.yp = b.d(0, 0);
  8571. this.H = {
  8572. src: b.Td,
  8573. $: b.Sd
  8574. };
  8575. this.Va = b.rect(0, 0, 0, 0);
  8576. this.o6(a, d, e)
  8577. },
  8578. Et: function() {
  8579. return this.R
  8580. },
  8581. ls: function(a, d) {
  8582. this.addEventListener("load", a, d)
  8583. },
  8584. nL: function() {
  8585. return this.dirty
  8586. },
  8587. qX: function(a) {
  8588. this.dirty = a
  8589. },
  8590. dba: function() {
  8591. return this.Gf
  8592. },
  8593. Es: function() {
  8594. return this.atlasIndex
  8595. },
  8596. NL: function(a) {
  8597. this.atlasIndex = a
  8598. },
  8599. RK: function() {
  8600. return b.rect(this.Va)
  8601. },
  8602. bm: function() {
  8603. return this.textureAtlas
  8604. },
  8605. vt: function(a) {
  8606. this.textureAtlas = a
  8607. },
  8608. h$: function() {
  8609. return b.d(this.ve)
  8610. },
  8611. Y3: function() {
  8612. return this.ve.x
  8613. },
  8614. Z3: function() {
  8615. return this.ve.y
  8616. },
  8617. Gk: function() {
  8618. return this.H
  8619. },
  8620. qg: function(a) {
  8621. b.assert(a, b.o.f1);
  8622. a.R || (this.R = !1, a.addEventListener("load", this.f.WS, this));
  8623. var d = b.W === b.Jb ? !1 : a.ye,
  8624. d = this.ea(a.xa(), a.dh(), d);
  8625. this.zi(a);
  8626. return d
  8627. },
  8628. Baa: function(a) {
  8629. b.assert(a,
  8630. b.o.g1);
  8631. var d = b.sh.og(a);
  8632. b.assert(d, a + b.o.h1);
  8633. return this.qg(d)
  8634. },
  8635. Ewa: function(a) {
  8636. this.textureAtlas = a.bm();
  8637. this.qa = a
  8638. },
  8639. hea: function(a) {
  8640. var d = this.Va;
  8641. d.x = a.x;
  8642. d.y = a.y;
  8643. d.width = a.width;
  8644. d.height = a.height
  8645. },
  8646. Ne: function() {
  8647. if (this.kg) {
  8648. var a = this.m,
  8649. d = a.length,
  8650. e, f, g;
  8651. for (e = 1; e < d; e++) {
  8652. g = a[e];
  8653. for (f = e - 1; 0 <= f;) {
  8654. if (g.wc < a[f].wc) a[f + 1] = a[f];
  8655. else if (g.wc === a[f].wc && g.arrivalOrder < a[f].arrivalOrder) a[f + 1] = a[f];
  8656. else break;
  8657. f--
  8658. }
  8659. a[f + 1] = g
  8660. }
  8661. this.qa && this.Ki(a, b.e.Wh.Ne);
  8662. this.kg = !1
  8663. }
  8664. },
  8665. lt: function(a, d) {
  8666. b.assert(a, b.o.j1); - 1 === this.m.indexOf(a) ?
  8667. b.log(b.o.i1) : d !== a.zIndex && (this.qa && !this.kg && (this.KI(), this.qa.TW(!0)), b.e.prototype.lt.call(this, a, d))
  8668. },
  8669. removeChild: function(a, d) {
  8670. this.qa && this.qa.yD(a);
  8671. b.e.prototype.removeChild.call(this, a, d)
  8672. },
  8673. Ci: function(a) {
  8674. b.e.prototype.Ci.call(this, a);
  8675. this.f.QL(!0)
  8676. },
  8677. pi: function(a) {
  8678. var d = this.m,
  8679. e = this.qa;
  8680. if (e && null != d)
  8681. for (var f = 0, g = d.length; f < g; f++) e.yD(d[f]);
  8682. b.e.prototype.pi.call(this, a);
  8683. this.ur = !1
  8684. },
  8685. pj: function(a) {
  8686. this.qa ? b.log(b.o.d1) : b.e.prototype.pj.call(this, a)
  8687. },
  8688. Ax: function(a) {
  8689. this.uc !== a && (this.uc =
  8690. a, this.Fc(this.Va, this.Gf, this.U), this.Pk(!0))
  8691. },
  8692. JD: function(a) {
  8693. this.vc !== a && (this.vc = a, this.Fc(this.Va, this.Gf, this.U), this.Pk(!0))
  8694. },
  8695. eW: function() {
  8696. return this.uc
  8697. },
  8698. fW: function() {
  8699. return this.vc
  8700. },
  8701. Le: function(a) {
  8702. this.Cb !== a && (this.Cb = a, this.f.FS())
  8703. },
  8704. tf: function() {
  8705. return this.Cb
  8706. },
  8707. Nta: function(a, d) {
  8708. b.assert(a, b.o.n1);
  8709. var e = b.nw.wK(a);
  8710. e ? (e = e.Xe[d]) ? this.zi(e.og()) : b.log(b.o.m1) : b.log(b.o.l1)
  8711. },
  8712. yK: function() {
  8713. return this.qa
  8714. },
  8715. KI: function() {
  8716. if (!this.kg) {
  8717. this.kg = !0;
  8718. for (var a = this.Ga; a && a !== this.qa;) a.KI(), a = a.parent
  8719. }
  8720. },
  8721. xa: function() {
  8722. return this.O
  8723. },
  8724. o6: function(a, d, e) {
  8725. if (void 0 === a) b.B.prototype.T.call(this);
  8726. else if (b.Je(a)) "#" === a[0] ? (d = b.sh.og(a.substr(1, a.length - 1))) ? this.qg(d) : b.log("%s does not exist", a) : b.B.prototype.T.call(this, a, d);
  8727. else if ("object" === typeof a)
  8728. if (a instanceof b.ja) this.ea(a, d, e);
  8729. else if (a instanceof b.Se) this.qg(a);
  8730. else if (a instanceof HTMLImageElement || a instanceof HTMLCanvasElement) d = new b.ja, d.jd(a), d.Tb(), this.ea(d)
  8731. },
  8732. uC: function() {
  8733. return this.f.uC()
  8734. },
  8735. sg: function(a, d) {
  8736. var e = this.H;
  8737. void 0 ===
  8738. d ? (e.src = a.src, e.$ = a.$) : (e.src = a, e.$ = d);
  8739. this.f.Tx(e)
  8740. },
  8741. T: function() {
  8742. if (0 < arguments.length) return this.em(arguments[0], arguments[1]);
  8743. b.e.prototype.T.call(this);
  8744. this.dirty = this.ep = !1;
  8745. this.H.src = b.Td;
  8746. this.H.$ = b.Sd;
  8747. this.texture = null;
  8748. this.uc = this.vc = !1;
  8749. this.anchorY = this.anchorX = 0.5;
  8750. this.ve.x = 0;
  8751. this.ve.y = 0;
  8752. this.ur = !1;
  8753. this.f.rl();
  8754. this.Fc(b.rect(0, 0, 0, 0), !1, b.size(0, 0));
  8755. return !0
  8756. },
  8757. em: function(a, d) {
  8758. b.assert(a, b.o.e1);
  8759. var e = b.Xa.Kn(a);
  8760. if (e) {
  8761. if (!d) {
  8762. var f = e.L();
  8763. d = b.rect(0, 0, f.width, f.height)
  8764. }
  8765. return this.ea(e, d)
  8766. }
  8767. e =
  8768. b.Xa.Vc(a);
  8769. return this.ea(e, d || b.rect(0, 0, e.U.width, e.U.height))
  8770. },
  8771. ea: function(a, d, e, f) {
  8772. b.assert(0 !== arguments.length, b.o.dZ);
  8773. e = e || !1;
  8774. a = this.f.gR(a, d, e, f);
  8775. if (!b.e.prototype.T.call(this)) return !1;
  8776. this.qa = null;
  8777. this.dirty = this.ep = !1;
  8778. this.Cb = !0;
  8779. this.H.src = b.Td;
  8780. this.H.$ = b.Sd;
  8781. this.uc = this.vc = !1;
  8782. this.rb(0.5, 0.5);
  8783. this.ve.x = 0;
  8784. this.ve.y = 0;
  8785. this.ur = !1;
  8786. this.f.rl();
  8787. var g = a.R;
  8788. this.R = g;
  8789. if (!g) return this.Gf = e, d && (this.Va.x = d.x, this.Va.y = d.y, this.Va.width = d.width, this.Va.height = d.height), this.texture && this.texture.removeEventListener("load",
  8790. this), a.addEventListener("load", this.f.gT, this), this.texture = a, !0;
  8791. d || (d = b.rect(0, 0, a.width, a.height));
  8792. this.f.wP(a, d, e);
  8793. this.texture = a;
  8794. this.Fc(d, e);
  8795. this.si(null);
  8796. return !0
  8797. },
  8798. Fc: function(a, d, e, f) {
  8799. this.Gf = d || !1;
  8800. this.Na(e || a);
  8801. this.hea(a);
  8802. this.f.KS(a, f);
  8803. a = this.yp.x;
  8804. d = this.yp.y;
  8805. this.uc && (a = -a);
  8806. this.vc && (d = -d);
  8807. e = this.Va;
  8808. this.ve.x = a + (this.U.width - e.width) / 2;
  8809. this.ve.y = d + (this.U.height - e.height) / 2;
  8810. this.qa ? this.dirty = !0 : this.f.mI()
  8811. },
  8812. ug: function() {
  8813. this.f.ug()
  8814. },
  8815. C: function(a, d, e) {
  8816. b.assert(a, b.o.bZ);
  8817. null == d && (d = a.wc);
  8818. null == e && (e = a.tag);
  8819. this.f.DS(a) && (b.e.prototype.C.call(this, a, d, e), this.ur = !0)
  8820. },
  8821. zi: function(a) {
  8822. var d = this;
  8823. b.Je(a) && (a = b.sh.og(a), b.assert(a, b.o.o1));
  8824. this.Pk(!0);
  8825. var e = a.Js();
  8826. d.yp.x = e.x;
  8827. d.yp.y = e.y;
  8828. e = a.xa();
  8829. a.R ? (e !== d.O && (d.texture = e), d.Fc(a.dh(), a.ye, a.Iw())) : (d.R = !1, a.addEventListener("load", function(a) {
  8830. d.R = !0;
  8831. var e = a.xa();
  8832. e !== d.O && (d.texture = e);
  8833. d.Fc(a.dh(), a.ye, a.Iw());
  8834. d.dispatchEvent("load");
  8835. d.X(d.color)
  8836. }, d));
  8837. this.f.yT(e)
  8838. },
  8839. bda: function(a) {
  8840. b.log(b.o.k1);
  8841. this.zi(a)
  8842. },
  8843. oL: function(a) {
  8844. return this.f.oL(a)
  8845. },
  8846. IU: function() {
  8847. return this.og()
  8848. },
  8849. og: function() {
  8850. return new b.Se(this.O, b.qx(this.Va), this.Gf, b.Xba(this.yp), b.vea(this.U))
  8851. },
  8852. si: function(a) {
  8853. (this.qa = a) ? (this.ds = {
  8854. a: 1,
  8855. b: 0,
  8856. c: 0,
  8857. K: 1,
  8858. ma: 0,
  8859. na: 0
  8860. }, this.textureAtlas = this.qa.bm()) : (this.atlasIndex = b.B.hN, this.textureAtlas = null, this.dirty = this.ep = !1, this.f.mI())
  8861. },
  8862. Oa: function(a) {
  8863. if (!a) return this.f.Ov(null);
  8864. b.Je(a) ? (a = b.Xa.Vc(a), a.R ? (this.qG(), this.f.Ov(a), this.nG(a.L()), this.X(this.Qg), this.R = !0) : a.addEventListener("load", function() {
  8865. this.qG();
  8866. this.f.Ov(a);
  8867. this.nG(a.L());
  8868. this.X(this.Qg);
  8869. this.R = !0
  8870. }, this)) : (b.assert(a instanceof b.ja, b.o.q1), this.qG(), this.nG(a.L()), this.f.Ov(a))
  8871. },
  8872. qG: function() {
  8873. var a = this.O;
  8874. if (a) {
  8875. var a = a.U,
  8876. d = this.Va;
  8877. a.width === d.width && a.height === d.height && (d.width = d.height = 0)
  8878. }
  8879. },
  8880. nG: function(a) {
  8881. if (a && (a.width || a.height)) {
  8882. var d = this.RK();
  8883. d.height || d.width || (a.x = a.x || 0, a.y = a.y || 0, a.width = a.width || 0, a.height = a.height || 0, this.Fc(a))
  8884. }
  8885. },
  8886. Ic: function() {
  8887. return b.W === b.Jb ? new b.B.n(this) : new b.B.p(this)
  8888. }
  8889. });
  8890. b.B.create = function(a, d, e) {
  8891. return new b.B(a, d, e)
  8892. };
  8893. b.B.eK = b.B.create;
  8894. b.B.X7 = b.B.create;
  8895. b.B.vU = b.B.create;
  8896. b.B.hN = -1;
  8897. b.zh.prototype.apply(b.B.prototype);
  8898. b.assert(b.Ie(b.Ea.dF), b.o.Qj, "SpritesPropertyDefine.js");
  8899. b.Ea.dF();
  8900. delete b.Ea.dF;
  8901. (function() {
  8902. b.B.n = function(a) {
  8903. b.e.n.call(this, a);
  8904. this.cb = !0;
  8905. this.Ql = {
  8906. zD: 0,
  8907. AD: 0,
  8908. x: 0,
  8909. y: 0,
  8910. width: 0,
  8911. height: 0,
  8912. Vx: !1
  8913. };
  8914. this.$k = "source-over";
  8915. this.Ni = !1;
  8916. this.gc = null
  8917. };
  8918. var a = b.B.n.prototype = Object.create(b.e.n.prototype);
  8919. a.constructor = b.B.n;
  8920. a.rl = function() {};
  8921. a.QL = function() {};
  8922. a.mI = function() {};
  8923. a.Ov = function(a) {
  8924. var e = this.k;
  8925. e.O !== a && (a ? (a.Sa instanceof HTMLImageElement && (this.gc = a), e.R = a.R) : e.R = !1, e.O = a)
  8926. };
  8927. a.FS = function() {
  8928. this.va(b.e.V.Ka | b.e.V.Ha)
  8929. };
  8930. a.oL = function(a) {
  8931. var e = this.k;
  8932. return a.xa() !== e.O ? !1 : b.PW(a.dh(),
  8933. e.Va)
  8934. };
  8935. a.Tx = function(a) {
  8936. this.$k = b.e.n.VQ(a)
  8937. };
  8938. a.DS = function() {
  8939. return !0
  8940. };
  8941. a.gR = function(a, e, f, g) {
  8942. f && a.R && (a = a.Sa, a = b.B.n.yG(a, e, g), g = new b.ja, g.jd(a), g.Tb(), a = g, e.x = e.y = 0, this.k.Va = b.rect(0, 0, e.width, e.height));
  8943. return a
  8944. };
  8945. a.wP = function(a, e) {
  8946. if (a && a.url) {
  8947. var f = e.y + e.height;
  8948. e.x + e.width > a.width && b.error(b.o.jF, a.url);
  8949. f > a.height && b.error(b.o.iF, a.url)
  8950. }
  8951. this.k.gc = a
  8952. };
  8953. a.Eb = function(a, e, f) {
  8954. var g = this.k,
  8955. h = this.Ql,
  8956. k = this.ad / 255;
  8957. if ((!g.O || 0 !== h.width && 0 !== h.height && g.O.R) && 0 !== k) {
  8958. a = a || b.A;
  8959. var m = a.getContext(),
  8960. n =
  8961. g.ve.x,
  8962. p = g.Va.height,
  8963. s = g.Va.width,
  8964. t = -g.ve.y - p;
  8965. a.setTransform(this.jj, e, f);
  8966. a.xx(this.$k);
  8967. a.ut(k);
  8968. (g.uc || g.vc) && a.save();
  8969. g.uc && (n = -n - s, m.scale(-1, 1));
  8970. g.vc && (t = g.ve.y, m.scale(1, -1));
  8971. g.O ? (k = g.O.Sa, "" !== g.O.bB ? (a.Fj(m.createPattern(k, g.O.bB)), m.fillRect(n * e, t * f, s * e, p * f)) : this.Ni ? m.drawImage(k, 0, 0, h.width, h.height, n * e, t * f, s * e, p * f) : m.drawImage(k, h.zD, h.AD, h.width, h.height, n * e, t * f, s * e, p * f)) : (k = g.U, h.Vx && (h = this.Vb, a.Fj("rgba(" + h.r + "," + h.g + "," + h.b + ",1)"), m.fillRect(n * e, t * f, k.width * e, k.height * f)));
  8972. (g.uc || g.vc) &&
  8973. a.restore();
  8974. b.Of++
  8975. }
  8976. };
  8977. a.xb = b.fa.DB ? function() {
  8978. var a = this.k,
  8979. e = this.Vb;
  8980. if (255 === e.r && 255 === e.g && 255 === e.b) this.Ni && (this.Ni = !1, a.texture = this.gc);
  8981. else {
  8982. var f, g = a.O,
  8983. h = this.Ql;
  8984. g && h.Vx && this.gc && (f = g.Sa) && (this.Ni = !0, f instanceof HTMLCanvasElement && !this.Gf && !this.PR && this.gc.Sa !== f ? b.B.n.Lo(this.gc.Sa, e, h, f) : (f = b.B.n.Lo(this.gc.Sa, e, h), g = new b.ja, g.jd(f), g.Tb(), a.texture = g))
  8985. }
  8986. } : function() {
  8987. var a = this.k,
  8988. e = this.Vb;
  8989. if (255 === e.r && 255 === e.g && 255 === e.b) this.Ni && (this.Ni = !1, a.texture = this.gc);
  8990. else {
  8991. var f, g = a.O,
  8992. h =
  8993. this.Ql;
  8994. g && h.Vx && this.gc && (f = g.Sa) && (g = b.Xa.zC(this.gc.Sa)) && (this.Ni = !0, f instanceof HTMLCanvasElement && !this.Gf && !this.PR ? b.B.n.Ko(f, g, e, h, f) : (f = b.B.n.Ko(f, g, e, h), g = new b.ja, g.jd(f), g.Tb(), a.texture = g))
  8995. }
  8996. };
  8997. a.uC = function() {
  8998. return null
  8999. };
  9000. a.yT = function(a, e) {
  9001. var f = this.k;
  9002. f.Gf && (f.gc = a);
  9003. this.Ni = !1;
  9004. this.Ql.zD = this.Ql.x;
  9005. this.Ql.AD = this.Ql.y;
  9006. e && (f = f.rf(), 255 === f.r && 255 === f.g && 255 === f.b || this.xb())
  9007. };
  9008. a.ug = function() {
  9009. var a = this.k;
  9010. if (a.dirty) {
  9011. var e = a.Ga;
  9012. !a.Ta || e && e !== a.qa && e.np ? a.np = !0 : (a.np = !1, a.ds = e && e !== a.qa ?
  9013. b.Dp(this.He(), e.ds) : this.He());
  9014. a.ep = !1;
  9015. a.dirty = !1
  9016. }
  9017. a.ur && a.Ki(a.m, b.e.Wh.ug)
  9018. };
  9019. a.Ae = function(a) {
  9020. b.e.n.prototype.Ae.call(this, a)
  9021. };
  9022. a.WS = function(a) {
  9023. this.Fc(a.dh(), a.ye, a.Iw());
  9024. this.f.xb();
  9025. this.dispatchEvent("load")
  9026. };
  9027. a.gT = function(a) {
  9028. if (!this.R) {
  9029. this.R = !0;
  9030. var e = this.Va,
  9031. f = this.f;
  9032. e ? b.Iv(e) && (e.width = a.width, e.height = a.height) : e = b.rect(0, 0, a.width, a.height);
  9033. this.texture = f.gc = a;
  9034. this.Fc(e, this.Gf);
  9035. a = f.Vb;
  9036. 255 === a.r && 255 === a.g && 255 === a.b || f.xb();
  9037. this.si(this.qa);
  9038. this.dispatchEvent("load")
  9039. }
  9040. };
  9041. a.KS = function(a,
  9042. e) {
  9043. void 0 === e && (e = !0);
  9044. var f = this.Ql,
  9045. g = e ? b.Db() : 1;
  9046. f.zD = f.x = 0 | a.x * g;
  9047. f.AD = f.y = 0 | a.y * g;
  9048. f.width = 0 | a.width * g;
  9049. f.height = 0 | a.height * g;
  9050. f.Vx = !(0 === f.width || 0 === f.height || 0 > f.x || 0 > f.y);
  9051. this.Ni && (this.k.O = this.gc, this.Ni = !1)
  9052. };
  9053. b.B.n.Lo = function(a, e, f, g) {
  9054. g = g || b.ic("canvas");
  9055. f = f || b.rect(0, 0, a.width, a.height);
  9056. var h = g.getContext("2d");
  9057. g.width !== f.width || g.height !== f.height ? (g.width = f.width, g.height = f.height) : h.globalCompositeOperation = "source-over";
  9058. h.fillStyle = "rgb(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + ")";
  9059. h.fillRect(0,
  9060. 0, f.width, f.height);
  9061. h.globalCompositeOperation = "multiply";
  9062. h.drawImage(a, f.x, f.y, f.width, f.height, 0, 0, f.width, f.height);
  9063. h.globalCompositeOperation = "destination-atop";
  9064. h.drawImage(a, f.x, f.y, f.width, f.height, 0, 0, f.width, f.height);
  9065. return g
  9066. };
  9067. b.B.n.Ko = function(a, e, f, g, h) {
  9068. g || (g = b.rect(0, 0, a.width, a.height));
  9069. a = f.r / 255;
  9070. var k = f.g / 255;
  9071. f = f.b / 255;
  9072. var m = Math.min(g.width, e[0].width),
  9073. n = Math.min(g.height, e[0].height),
  9074. p;
  9075. h ? (p = h.getContext("2d"), p.clearRect(0, 0, m, n)) : (h = b.ic("canvas"), h.width = m, h.height = n, p = h.getContext("2d"));
  9076. p.save();
  9077. p.globalCompositeOperation = "lighter";
  9078. var s = p.globalAlpha;
  9079. 0 < a && (p.globalAlpha = a * s, p.drawImage(e[0], g.x, g.y, m, n, 0, 0, m, n));
  9080. 0 < k && (p.globalAlpha = k * s, p.drawImage(e[1], g.x, g.y, m, n, 0, 0, m, n));
  9081. 0 < f && (p.globalAlpha = f * s, p.drawImage(e[2], g.x, g.y, m, n, 0, 0, m, n));
  9082. 1 > a + k + f && (p.globalAlpha = s, p.drawImage(e[3], g.x, g.y, m, n, 0, 0, m, n));
  9083. p.restore();
  9084. return h
  9085. };
  9086. b.B.n.qr = function(a) {
  9087. function e() {
  9088. var e = b.B.n.qr,
  9089. g = a.width,
  9090. m = a.height;
  9091. f[0].width = g;
  9092. f[0].height = m;
  9093. f[1].width = g;
  9094. f[1].height = m;
  9095. f[2].width = g;
  9096. f[2].height = m;
  9097. f[3].width =
  9098. g;
  9099. f[3].height = m;
  9100. e.canvas.width = g;
  9101. e.canvas.height = m;
  9102. var n = e.canvas.getContext("2d");
  9103. n.drawImage(a, 0, 0);
  9104. e.kM.width = g;
  9105. e.kM.height = m;
  9106. for (var n = n.getImageData(0, 0, g, m).data, p = 0; 4 > p; p++) {
  9107. var s = f[p].getContext("2d");
  9108. s.getImageData(0, 0, g, m).data;
  9109. e.qY.drawImage(a, 0, 0);
  9110. for (var t = e.qY.getImageData(0, 0, g, m), v = t.data, w = 0; w < n.length; w += 4) v[w] = 0 === p ? n[w] : 0, v[w + 1] = 1 === p ? n[w + 1] : 0, v[w + 2] = 2 === p ? n[w + 2] : 0, v[w + 3] = n[w + 3];
  9111. s.putImageData(t, 0, 0)
  9112. }
  9113. a.onload = null
  9114. }
  9115. if (a.hU) return a.hU;
  9116. var f = [b.ic("canvas"), b.ic("canvas"), b.ic("canvas"),
  9117. b.ic("canvas")
  9118. ];
  9119. try {
  9120. e()
  9121. } catch (g) {
  9122. a.onload = e
  9123. }
  9124. return a.hU = f
  9125. };
  9126. b.B.n.qr.canvas = b.ic("canvas");
  9127. b.B.n.qr.kM = b.ic("canvas");
  9128. b.B.n.qr.qY = b.B.n.qr.kM.getContext("2d");
  9129. b.B.n.yG = function(a, e, f) {
  9130. if (!a) return null;
  9131. if (!e) return a;
  9132. f = null == f ? !0 : f;
  9133. var g = b.ic("canvas");
  9134. g.width = e.width;
  9135. g.height = e.height;
  9136. var h = g.getContext("2d");
  9137. h.translate(g.width / 2, g.height / 2);
  9138. f ? h.rotate(-1.5707963267948966) : h.rotate(1.5707963267948966);
  9139. h.drawImage(a, e.x, e.y, e.height, e.width, -e.height / 2, -e.width / 2, e.height, e.width);
  9140. return g
  9141. }
  9142. })();
  9143. (function() {
  9144. b.B.p = function(a) {
  9145. b.e.p.call(this, a);
  9146. this.cb = !0;
  9147. this.Fl = new b.Zb;
  9148. this.hS = b.A.createBuffer();
  9149. this.Gl = !0;
  9150. this.ep = this.Ra = !1
  9151. };
  9152. var a = b.B.p.prototype = Object.create(b.e.p.prototype);
  9153. a.constructor = b.B.p;
  9154. a.Tx = function() {};
  9155. a.va = function(a) {
  9156. b.e.p.prototype.va.call(this, a);
  9157. this.Ra = !0
  9158. };
  9159. a.QL = function(a) {
  9160. this.Ra = this.ep = a;
  9161. for (var e = this.k.m, f, g = e ? e.length : 0, h = 0; h < g; h++) f = e[h], f instanceof b.B && f.f.QL(a)
  9162. };
  9163. a.DS = function(a) {
  9164. var e = this.k;
  9165. if (e.qa) {
  9166. if (!(a instanceof b.B)) return b.log(b.o.a1), !1;
  9167. a.texture.Xg !==
  9168. e.textureAtlas.texture.Xg && b.log(b.o.b1);
  9169. e.qa.appendChild(a);
  9170. e.kg || e.KI()
  9171. }
  9172. return !0
  9173. };
  9174. a.gR = function(a) {
  9175. return a
  9176. };
  9177. a.oL = function(a) {
  9178. var e = this.k;
  9179. return b.PW(a.dh(), e.Va) && a.xa().getName() === e.O.getName() && b.DL(a.Js(), e.yp)
  9180. };
  9181. a.rl = function() {
  9182. var a = {
  9183. r: 255,
  9184. g: 255,
  9185. b: 255,
  9186. a: 255
  9187. },
  9188. e = this.Fl;
  9189. e.bl.colors = a;
  9190. e.br.colors = a;
  9191. e.tl.colors = a;
  9192. e.tr.colors = a;
  9193. this.Gl = !0
  9194. };
  9195. a.mI = function() {
  9196. var a = this.k,
  9197. e = a.ve.x,
  9198. f = a.ve.y,
  9199. g = e + a.Va.width,
  9200. a = f + a.Va.height,
  9201. h = this.Fl;
  9202. h.bl.vertices = {
  9203. x: e,
  9204. y: f,
  9205. z: 0
  9206. };
  9207. h.br.vertices = {
  9208. x: g,
  9209. y: f,
  9210. z: 0
  9211. };
  9212. h.tl.vertices = {
  9213. x: e,
  9214. y: a,
  9215. z: 0
  9216. };
  9217. h.tr.vertices = {
  9218. x: g,
  9219. y: a,
  9220. z: 0
  9221. };
  9222. this.Gl = !0
  9223. };
  9224. a.uC = function() {
  9225. return this.Fl
  9226. };
  9227. a.yT = function() {};
  9228. a.WS = function(a) {
  9229. this.Fc(a.dh(), a.ye, a.Iw());
  9230. this.dispatchEvent("load")
  9231. };
  9232. a.gT = function(a) {
  9233. var e = this.f;
  9234. if (!this.R) {
  9235. this.R = !0;
  9236. var f = this.Va;
  9237. f ? b.Iv(f) && (f.width = a.width, f.height = a.height) : f = b.rect(0, 0, a.width, a.height);
  9238. this.texture = a;
  9239. this.Fc(f, this.Gf);
  9240. this.si(this.qa);
  9241. e.Gl = !0;
  9242. this.dispatchEvent("load")
  9243. }
  9244. };
  9245. a.KS = function(a, e) {
  9246. void 0 === e && (e = !0);
  9247. e && (a = b.qx(a));
  9248. var f = this.k,
  9249. g = f.qa ? f.textureAtlas.texture :
  9250. f.O;
  9251. if (g) {
  9252. var h = g.pixelsWidth,
  9253. k = g.pixelsHeight,
  9254. m, n, p = this.Fl;
  9255. f.Gf ? (b.Cy ? (g = (2 * a.x + 1) / (2 * h), h = g + (2 * a.height - 2) / (2 * h), m = (2 * a.y + 1) / (2 * k), k = m + (2 * a.width - 2) / (2 * k)) : (g = a.x / h, h = (a.x + a.height) / h, m = a.y / k, k = (a.y + a.width) / k), f.uc && (n = m, m = k, k = n), f.vc && (n = g, g = h, h = n), p.bl.texCoords.u = g, p.bl.texCoords.v = m, p.br.texCoords.u = g, p.br.texCoords.v = k, p.tl.texCoords.u = h, p.tl.texCoords.v = m, p.tr.texCoords.u = h, p.tr.texCoords.v = k) : (b.Cy ? (g = (2 * a.x + 1) / (2 * h), h = g + (2 * a.width - 2) / (2 * h), m = (2 * a.y + 1) / (2 * k), k = m + (2 * a.height - 2) / (2 * k)) : (g =
  9256. a.x / h, h = (a.x + a.width) / h, m = a.y / k, k = (a.y + a.height) / k), f.uc && (n = g, g = h, h = n), f.vc && (n = m, m = k, k = n), p.bl.texCoords.u = g, p.bl.texCoords.v = k, p.br.texCoords.u = h, p.br.texCoords.v = k, p.tl.texCoords.u = g, p.tl.texCoords.v = m, p.tr.texCoords.u = h, p.tr.texCoords.v = m);
  9257. this.Gl = !0
  9258. }
  9259. };
  9260. a.transform = function(a, e) {
  9261. b.e.p.prototype.transform.call(this, a, e);
  9262. this.Ra = !0
  9263. };
  9264. a.FS = function() {};
  9265. a.xb = function() {
  9266. var a = this.Vb,
  9267. e = this.ad,
  9268. f = this.k,
  9269. a = {
  9270. r: a.r,
  9271. g: a.g,
  9272. b: a.b,
  9273. a: e
  9274. };
  9275. f.Cb && (a.r *= e / 255, a.g *= e / 255, a.b *= e / 255);
  9276. e = this.Fl;
  9277. e.bl.colors = a;
  9278. e.br.colors =
  9279. a;
  9280. e.tl.colors = a;
  9281. e.tr.colors = a;
  9282. f.qa && (f.atlasIndex !== b.B.hN ? f.textureAtlas.aE(e, f.atlasIndex) : this.Ra = !0);
  9283. this.Gl = !0
  9284. };
  9285. a.bi = function() {
  9286. if (this.qa) b.log(b.o.$0);
  9287. else {
  9288. var a = this.k;
  9289. a.O && a.O.Jk() ? (a.H.src = b.Td, a.H.$ = b.Sd, a.opacityModifyRGB = !0) : (a.H.src = b.SRC_ALPHA, a.H.$ = b.ONE_MINUS_SRC_ALPHA, a.opacityModifyRGB = !1)
  9290. }
  9291. };
  9292. a.Ov = function(a) {
  9293. var e = this.k;
  9294. if (e.qa) {
  9295. if (e.qa.texture !== a) {
  9296. b.log(b.o.p1);
  9297. return
  9298. }
  9299. } else e.O !== a && (e.R = a ? a.R : !1, e.O = a, this.bi());
  9300. this.za = a ? b.le.Dc(b.Sj) : b.le.Dc(b.Xy)
  9301. };
  9302. a.ug = function() {
  9303. var a = this.k;
  9304. if (this.Ra) {
  9305. var e = this.Fl,
  9306. f = a.Ga;
  9307. if (!a.Ta || f && f !== a.qa && f.np) e.br.vertices = e.tl.vertices = e.tr.vertices = e.bl.vertices = {
  9308. x: 0,
  9309. y: 0,
  9310. z: 0
  9311. }, a.np = !0;
  9312. else {
  9313. a.np = !1;
  9314. 0 !== this.G && (this.updateStatus(), this.G = 0);
  9315. a.ds = f && f !== a.qa ? b.Dp(this.He(), f.ds) : this.He();
  9316. var g = a.ds,
  9317. h = a.Va,
  9318. f = a.ve.x,
  9319. k = a.ve.y,
  9320. m = f + h.width,
  9321. n = k + h.height,
  9322. p = g.ma,
  9323. s = g.na,
  9324. t = g.a,
  9325. v = g.b,
  9326. w = g.K,
  9327. x = -g.c,
  9328. g = f * t - k * x + p,
  9329. h = f * v + k * w + s,
  9330. u = m * t - k * x + p,
  9331. k = m * v + k * w + s,
  9332. y = m * t - n * x + p,
  9333. m = m * v + n * w + s,
  9334. p = f * t - n * x + p,
  9335. f = f * v + n * w + s,
  9336. n = a.jw;
  9337. b.qF || (g |= 0, h |= 0, u |= 0, k |= 0, y |= 0, m |= 0, p |= 0, f |= 0);
  9338. e.bl.vertices = {
  9339. x: g,
  9340. y: h,
  9341. z: n
  9342. };
  9343. e.br.vertices = {
  9344. x: u,
  9345. y: k,
  9346. z: n
  9347. };
  9348. e.tl.vertices = {
  9349. x: p,
  9350. y: f,
  9351. z: n
  9352. };
  9353. e.tr.vertices = {
  9354. x: y,
  9355. y: m,
  9356. z: n
  9357. }
  9358. }
  9359. a.textureAtlas.aE(e, a.atlasIndex);
  9360. this.Ra = a.ep = !1
  9361. }
  9362. a.ur && a.Ki(a.m, b.e.Wh.ug)
  9363. };
  9364. a.wP = function(a, e, f) {
  9365. a && a.url && (f ? (f = e.x + e.height, e = e.y + e.width) : (f = e.x + e.width, e = e.y + e.height), f > a.width && b.error(b.o.jF, a.url), e > a.height && b.error(b.o.iF, a.url))
  9366. };
  9367. a.Eb = function(a) {
  9368. var e = this.k,
  9369. f = e.O;
  9370. f && !f.R || 0 === this.ad || (a = a || b.A, f ? f.R && (this.za.jc(), this.za.Ug(this.Mc), b.ji(e.H.src, e.H.$), b.WK(0, f), b.hd(b.Cq), a.bindBuffer(a.ARRAY_BUFFER,
  9371. this.hS), this.Gl && (a.bufferData(a.ARRAY_BUFFER, this.Fl.arrayBuffer, a.DYNAMIC_DRAW), this.Gl = !1), a.vertexAttribPointer(0, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(1, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.vertexAttribPointer(2, 2, a.FLOAT, !1, 24, 16), a.drawArrays(a.TRIANGLE_STRIP, 0, 4)) : (this.za.jc(), this.za.Ug(this.Mc), b.ji(e.H.src, e.H.$), b.Rf(null), b.hd(b.qe | b.Cu), a.bindBuffer(a.ARRAY_BUFFER, this.hS), this.Gl && (a.bufferData(a.ARRAY_BUFFER, this.Fl.arrayBuffer, a.STATIC_DRAW), this.Gl = !1), a.vertexAttribPointer(b.Ib, 3,
  9372. a.FLOAT, !1, 24, 0), a.vertexAttribPointer(b.cf, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.drawArrays(a.TRIANGLE_STRIP, 0, 4)), b.Of++, 0 === b.rF && !e.TS) || (b.tj(b.Oj), b.Ob.stack.push(b.Ob.top), b.Ob.top = this.Mc, 1 === b.rF || e.TS ? (e = this.Fl, e = [b.d(e.tl.vertices.x, e.tl.vertices.y), b.d(e.bl.vertices.x, e.bl.vertices.y), b.d(e.br.vertices.x, e.br.vertices.y), b.d(e.tr.vertices.x, e.tr.vertices.y)], b.jl.ei(e, 4, !0)) : 2 === b.rF && (f = e.RK(), e = e.h$(), e = [b.d(e.x, e.y), b.d(e.x + f.width, e.y), b.d(e.x + f.width, e.y + f.height), b.d(e.x, e.y + f.height)],
  9373. b.jl.ei(e, 4, !0)), b.Ob.top = b.Ob.stack.pop())
  9374. }
  9375. })();
  9376. b.sb = b.e.extend({
  9377. H: null,
  9378. Bf: null,
  9379. Ma: "SpriteBatchNode",
  9380. ctor: function(a, d) {
  9381. b.e.prototype.ctor.call(this);
  9382. this.Bf = [];
  9383. this.H = new b.Gc(b.Td, b.Sd);
  9384. var e;
  9385. d = d || b.sb.VM;
  9386. b.Je(a) ? (e = b.Xa.Kn(a)) || (e = b.Xa.Vc(a)) : a instanceof b.ja && (e = a);
  9387. e && this.ea(e, d)
  9388. },
  9389. P6: function(a, d, e) {
  9390. b.assert(a, b.o.U0);
  9391. if (!(a instanceof b.B)) return b.log(b.o.T0), null;
  9392. a.atlasIndex = d;
  9393. var f = 0,
  9394. g, h = this.Bf;
  9395. if (h && 0 < h.length)
  9396. for (f = 0, g = h.length; f < g; f++) {
  9397. var k = h[f];
  9398. if (k && k.atlasIndex >= d) break
  9399. }
  9400. h.splice(f, 0, a);
  9401. b.e.prototype.C.call(this, a, d, e);
  9402. this.TW(!1);
  9403. return this
  9404. },
  9405. bm: function() {
  9406. return this.f.bm()
  9407. },
  9408. vt: function() {},
  9409. n9: function() {
  9410. return this.Bf
  9411. },
  9412. em: function(a, d) {
  9413. var e = b.Xa.Kn(a);
  9414. e || (e = b.Xa.Vc(a));
  9415. return this.ea(e, d)
  9416. },
  9417. Ll: function() {
  9418. this.f && this.f.Ll && this.f.Ll()
  9419. },
  9420. T: function(a, d) {
  9421. var e = b.Xa.Kn(a);
  9422. e || (e = b.Xa.Vc(a));
  9423. return this.ea(e, d)
  9424. },
  9425. Qw: function() {
  9426. this.f.Qw()
  9427. },
  9428. rca: function(a, d) {
  9429. this.removeChild(this.m[a], d)
  9430. },
  9431. OW: function(a, d) {
  9432. var e = a.children;
  9433. if (e && 0 < e.length)
  9434. for (var f = 0; f < e.length; f++) {
  9435. var g = e[f];
  9436. g && 0 > g.zIndex && (d = this.OW(g, d))
  9437. }!a === this && (a.atlasIndex =
  9438. d, d++);
  9439. if (e && 0 < e.length)
  9440. for (f = 0; f < e.length; f++)(g = e[f]) && 0 <= g.zIndex && (d = this.OW(g, d));
  9441. return d
  9442. },
  9443. cL: function(a) {
  9444. var d = a.children;
  9445. return d && 0 !== d.length ? this.cL(d[d.length - 1]) : a.atlasIndex
  9446. },
  9447. Bba: function(a) {
  9448. var d = a.children;
  9449. return d && 0 !== d.length ? this.Bba(d[d.length - 1]) : a.atlasIndex
  9450. },
  9451. n7: function(a, d) {
  9452. var e = a.parent,
  9453. f = e.children,
  9454. g = f.indexOf(a),
  9455. h = null;
  9456. 0 < g && g < b.TO && (h = f[g - 1]);
  9457. return e === this ? 0 === g ? 0 : this.cL(h) + 1 : 0 === g ? 0 > d ? e.atlasIndex : e.atlasIndex + 1 : 0 > h.zIndex && 0 > d || 0 <= h.zIndex && 0 <= d ? this.cL(h) + 1 : e.atlasIndex +
  9458. 1
  9459. },
  9460. TW: function(a) {
  9461. this.kg = a
  9462. },
  9463. sg: function(a, d) {
  9464. this.H = void 0 === d ? a : {
  9465. src: a,
  9466. $: d
  9467. }
  9468. },
  9469. Gk: function() {
  9470. return new b.Gc(this.H.src, this.H.$)
  9471. },
  9472. lt: function(a, d) {
  9473. b.assert(a, b.o.Z0); - 1 === this.m.indexOf(a) ? b.log(b.o.Y0) : d !== a.zIndex && b.e.prototype.lt.call(this, a, d)
  9474. },
  9475. removeChild: function(a, d) {
  9476. null != a && (-1 === this.m.indexOf(a) ? b.log(b.o.X0) : (this.yD(a), b.e.prototype.removeChild.call(this, a, d)))
  9477. },
  9478. Cwa: function(a, d) {
  9479. b.assert(a, b.o.hZ);
  9480. a instanceof b.B ? (this.f.iU(), a.batchNode = this, a.atlasIndex = d, a.dirty = !0, a.ug()) : b.log(b.o.gZ)
  9481. },
  9482. bW: function(a, d) {
  9483. b.assert(a, b.o.fZ);
  9484. a instanceof b.B ? (this.f.Vs(a, d), a.batchNode = this, a.atlasIndex = d, a.dirty = !0, a.ug(), this.f.wU(a, d)) : b.log(b.o.eZ)
  9485. },
  9486. ea: function(a, d) {
  9487. this.m.length = 0;
  9488. this.Bf.length = 0;
  9489. d = d || b.sb.VM;
  9490. this.f.ea(a, d);
  9491. return !0
  9492. },
  9493. lL: function(a, d) {
  9494. a.batchNode = this;
  9495. a.atlasIndex = d;
  9496. a.dirty = !0;
  9497. this.f.Vs(a, d);
  9498. this.Bf.splice(d, 0, a);
  9499. var e = d + 1,
  9500. f = this.Bf;
  9501. if (f && 0 < f.length)
  9502. for (; e < f.length; e++) f[e].atlasIndex++;
  9503. var f = a.children,
  9504. g, h;
  9505. if (f)
  9506. for (e = 0, h = f.length || 0; e < h; e++)(g = f[e]) && this.lL(g, this.n7(g, g.zIndex))
  9507. },
  9508. appendChild: function(a) {
  9509. this.kg = !0;
  9510. a.batchNode = this;
  9511. a.dirty = !0;
  9512. this.Bf.push(a);
  9513. var d = this.Bf.length - 1;
  9514. a.atlasIndex = d;
  9515. this.f.Vs(a, d);
  9516. a = a.children;
  9517. for (var d = 0, e = a.length || 0; d < e; d++) this.appendChild(a[d])
  9518. },
  9519. yD: function(a) {
  9520. this.f.sx(a.atlasIndex);
  9521. a.batchNode = null;
  9522. var d = this.Bf,
  9523. e = d.indexOf(a);
  9524. if (-1 !== e) {
  9525. d.splice(e, 1);
  9526. for (var f = d.length; e < f; ++e) d[e].atlasIndex--
  9527. }
  9528. if (a = a.children)
  9529. for (d = 0, e = a.length || 0; d < e; d++) a[d] && this.yD(a[d])
  9530. },
  9531. xa: function() {
  9532. return this.f.xa()
  9533. },
  9534. Oa: function(a) {
  9535. this.f.Oa(a)
  9536. },
  9537. C: function(a,
  9538. d, e) {
  9539. b.assert(null != a, b.o.cZ);
  9540. this.f.hW(a) && (d = null == d ? a.zIndex : d, e = null == e ? a.tag : e, b.e.prototype.C.call(this, a, d, e), this.appendChild(a))
  9541. },
  9542. pi: function(a) {
  9543. var d = this.Bf;
  9544. if (d && 0 < d.length)
  9545. for (var e = 0, f = d.length; e < f; e++) d[e] && (d[e].batchNode = null);
  9546. b.e.prototype.pi.call(this, a);
  9547. this.Bf.length = 0;
  9548. this.f.rx()
  9549. },
  9550. Ne: function() {
  9551. if (this.kg) {
  9552. var a = this.m,
  9553. d, e = 0,
  9554. f = a.length,
  9555. g;
  9556. for (d = 1; d < f; d++) {
  9557. var h = a[d],
  9558. e = d - 1;
  9559. for (g = a[e]; 0 <= e && (h.wc < g.wc || h.wc === g.wc && h.arrivalOrder < g.arrivalOrder);) a[e + 1] = g, e -= 1, g = a[e];
  9560. a[e + 1] = h
  9561. }
  9562. 0 <
  9563. a.length && (this.Ki(a, b.e.Wh.Ne), this.f.CY(a));
  9564. this.kg = !1
  9565. }
  9566. },
  9567. Ic: function() {
  9568. return b.W === b.Jb ? new b.sb.n(this) : new b.sb.p(this)
  9569. }
  9570. });
  9571. r = b.sb.prototype;
  9572. b.i(r, "texture", r.xa, r.Oa);
  9573. b.i(r, "textureAtlas", r.bm, r.vt);
  9574. b.i(r, "descendants", r.n9);
  9575. b.sb.VM = 29;
  9576. b.sb.create = function(a, d) {
  9577. return new b.sb(a, d)
  9578. };
  9579. b.sb.eK = b.sb.create;
  9580. (function() {
  9581. b.sb.n = function(a) {
  9582. b.e.n.call(this, a);
  9583. this.gc = this.O = null
  9584. };
  9585. var a = b.sb.n.prototype = Object.create(b.e.n.prototype);
  9586. a.constructor = b.sb.n;
  9587. a.iU = function() {};
  9588. a.hW = function(a) {
  9589. return a instanceof b.B ? !0 : (b.log(b.o.cO), !1)
  9590. };
  9591. a.ea = function(a) {
  9592. this.O = this.gc = a
  9593. };
  9594. a.Vs = function() {};
  9595. a.Qw = function() {};
  9596. a.sx = function() {};
  9597. a.rx = function() {};
  9598. a.xa = function() {
  9599. return this.O
  9600. };
  9601. a.Oa = function(a) {
  9602. this.O = a;
  9603. for (var e = this.k.m, f = 0; f < e.length; f++) e[f].Oa(a)
  9604. };
  9605. a.CY = function(a) {
  9606. for (var e = this.k.Bf.length = 0, f = a.length; e <
  9607. f; e++) this.MB(a[e])
  9608. };
  9609. a.MB = function(a) {
  9610. var e = this.k.Bf,
  9611. f = a.children,
  9612. g, h = f.length;
  9613. for (g = 0; g < h; g++)
  9614. if (0 > f[g].wc) e.push(f[g]);
  9615. else break;
  9616. for (e.push(a); g < h; g++) e.push(f[g])
  9617. };
  9618. a.bm = function() {};
  9619. a.vt = function() {};
  9620. a.wU = function(a, e) {
  9621. this.k.m.splice(e, 0, a)
  9622. }
  9623. })();
  9624. (function() {
  9625. b.sb.p = function(a) {
  9626. b.e.p.call(this, a);
  9627. this.cb = !0;
  9628. this.Lb = null
  9629. };
  9630. var a = b.sb.p.prototype = Object.create(b.e.p.prototype);
  9631. a.constructor = b.sb.p;
  9632. a.hW = function(a) {
  9633. return a instanceof b.B ? a.texture != this.xa() ? (b.log(b.o.c1), !1) : !0 : (b.log(b.o.cO), !1)
  9634. };
  9635. a.Eb = function() {
  9636. var a = this.k;
  9637. 0 !== this.Lb.totalQuads && (this.za.jc(), this.za.Ug(this.Mc), a.Ki(a.m, b.e.Wh.ug), b.ji(a.H.src, a.H.$), this.Lb.MU())
  9638. };
  9639. a.Q = function(a) {
  9640. var e = this.k;
  9641. if (e.Ta) {
  9642. e.Ga && e.Ga.f && (this.Zd = e.Ga.f.Zd + 1);
  9643. var f = b.Ob;
  9644. f.stack.push(f.top);
  9645. this.G & b.e.V.la || this.transform(a);
  9646. this.updateStatus(a);
  9647. f.top = this.Mc;
  9648. e.Ne();
  9649. b.oa.Ec(this);
  9650. this.G = 0;
  9651. f.top = f.stack.pop()
  9652. }
  9653. };
  9654. a.iU = function(a) {
  9655. for (var e = this.Lb; a >= e.capacity || e.capacity === e.totalQuads;) this.Qw()
  9656. };
  9657. a.Qw = function() {
  9658. var a = this.Lb.capacity,
  9659. e = Math.floor(4 * (a + 1) / 3);
  9660. b.log(b.o.V0, a, e);
  9661. this.Lb.KL(e) || b.log(b.o.W0)
  9662. };
  9663. a.ea = function(a, e) {
  9664. this.Lb = new b.Tj;
  9665. this.Lb.ea(a, e);
  9666. this.bi();
  9667. this.za = b.le.Dc(b.Sj)
  9668. };
  9669. a.Vs = function(a, e) {
  9670. var f = this.Lb;
  9671. f.totalQuads >= f.capacity && this.Qw();
  9672. f.Vs(a.quad, e)
  9673. };
  9674. a.sx = function(a) {
  9675. this.Lb.sx(a)
  9676. };
  9677. a.xa = function() {
  9678. return this.Lb.texture
  9679. };
  9680. a.Oa = function(a) {
  9681. this.Lb.Oa(a);
  9682. a && this.bi()
  9683. };
  9684. a.rx = function() {
  9685. this.Lb.rx()
  9686. };
  9687. a.GB = function(a, e) {
  9688. var f = this.k.Bf,
  9689. g = this.Lb,
  9690. h = g.quads,
  9691. k = f[a],
  9692. m = b.WO(h[a]);
  9693. f[e].atlasIndex = a;
  9694. f[a] = f[e];
  9695. g.aE(h[e], a);
  9696. f[e] = k;
  9697. g.aE(m, e)
  9698. };
  9699. a.MB = function(a, e) {
  9700. var f = 0,
  9701. g = a.children;
  9702. g && (f = g.length);
  9703. var h = 0;
  9704. if (0 === f) h = a.atlasIndex, a.atlasIndex = e, a.arrivalOrder = 0, h !== e && this.GB(h, e), e++;
  9705. else {
  9706. h = !0;
  9707. 0 <= g[0].zIndex && (h = a.atlasIndex, a.atlasIndex = e, a.arrivalOrder = 0, h !== e && this.GB(h, e), e++, h = !1);
  9708. for (f =
  9709. 0; f < g.length; f++) {
  9710. var k = g[f];
  9711. h && 0 <= k.zIndex && (h = a.atlasIndex, a.atlasIndex = e, a.arrivalOrder = 0, h !== e && this.GB(h, e), e++, h = !1);
  9712. e = this.MB(k, e)
  9713. }
  9714. h && (h = a.atlasIndex, a.atlasIndex = e, a.arrivalOrder = 0, h !== e && this.GB(h, e), e++)
  9715. }
  9716. return e
  9717. };
  9718. a.CY = function(a) {
  9719. for (var e = 0, f = 0; f < a.length; f++) e = this.MB(a[f], e)
  9720. };
  9721. a.bi = function() {
  9722. if (!this.Lb.texture.Jk()) {
  9723. var a = this.k.H;
  9724. a.src = b.SRC_ALPHA;
  9725. a.$ = b.ONE_MINUS_SRC_ALPHA
  9726. }
  9727. };
  9728. a.bm = function() {
  9729. return this.Lb
  9730. };
  9731. a.vt = function(a) {
  9732. a !== this.Lb && (this.Lb = a)
  9733. };
  9734. a.wU = function() {}
  9735. })();
  9736. b.ZY = b.B.extend({
  9737. df: null,
  9738. Ve: null,
  9739. ctor: function() {
  9740. b.B.prototype.ctor.call(this);
  9741. var a = document.createElement("canvas");
  9742. a.width = a.height = 10;
  9743. this.df = a;
  9744. this.Ve = new b.nq(a.getContext("2d"));
  9745. var d = new b.ja;
  9746. d.jd(a);
  9747. d.Tb();
  9748. this.Oa(d)
  9749. },
  9750. Gma: function() {
  9751. return this.Ve
  9752. },
  9753. Fma: function() {
  9754. return this.df
  9755. },
  9756. WW: function(a, d) {
  9757. void 0 === d && (d = a.height, a = a.width);
  9758. var e = this.df;
  9759. e.width = a;
  9760. e.height = d;
  9761. this.xa().Tb();
  9762. this.Fc(b.rect(0, 0, a, d), !1)
  9763. }
  9764. });
  9765. b.wh = b.sa.extend({
  9766. Rr: null,
  9767. We: 0,
  9768. is: null,
  9769. ctor: function(a, d, e) {
  9770. this.Rr = a || null;
  9771. this.We = d || 0;
  9772. this.is = e || null
  9773. },
  9774. q: function() {
  9775. var a = new b.wh;
  9776. a.qg(this.Rr.q(), this.We, this.is);
  9777. return a
  9778. },
  9779. fC: function() {
  9780. return b.q(this)
  9781. },
  9782. copy: function() {
  9783. var a = new b.wh;
  9784. a.qg(this.Rr.q(), this.We, this.is);
  9785. return a
  9786. },
  9787. qg: function(a, d, e) {
  9788. this.Rr = a;
  9789. this.We = d;
  9790. this.is = e;
  9791. return !0
  9792. },
  9793. og: function() {
  9794. return this.Rr
  9795. },
  9796. zi: function(a) {
  9797. this.Rr = a
  9798. },
  9799. Vma: function() {
  9800. return this.We
  9801. },
  9802. Kta: function(a) {
  9803. this.We = a
  9804. },
  9805. dpa: function() {
  9806. return this.is
  9807. },
  9808. zva: function(a) {
  9809. this.is =
  9810. a
  9811. }
  9812. });
  9813. b.wh.create = function(a, d, e) {
  9814. return new b.wh(a, d, e)
  9815. };
  9816. b.Kj = b.sa.extend({
  9817. Xe: null,
  9818. wl: 0,
  9819. hp: !1,
  9820. D: 0,
  9821. We: 0,
  9822. tk: 0,
  9823. ctor: function(a, d, e) {
  9824. this.Xe = [];
  9825. if (void 0 === a) this.$V(null, 0);
  9826. else {
  9827. var f = a[0];
  9828. f && (f instanceof b.Se ? this.$V(a, d, e) : f instanceof b.wh && this.LC(a, d, e))
  9829. }
  9830. },
  9831. qna: function() {
  9832. return this.Xe
  9833. },
  9834. Wta: function(a) {
  9835. this.Xe = a
  9836. },
  9837. HJ: function(a) {
  9838. var d = new b.wh;
  9839. d.qg(a, 1, null);
  9840. this.Xe.push(d);
  9841. this.tk++
  9842. },
  9843. Zja: function(a) {
  9844. a = b.Xa.Vc(a);
  9845. var d = b.rect(0, 0, 0, 0);
  9846. d.width = a.width;
  9847. d.height = a.height;
  9848. a = new b.Se(a, d);
  9849. this.HJ(a)
  9850. },
  9851. $ja: function(a, d) {
  9852. var e = new b.Se(a, d);
  9853. this.HJ(e)
  9854. },
  9855. LC: function(a,
  9856. d, e) {
  9857. b.ow(a, b.wh);
  9858. this.We = d;
  9859. this.wl = void 0 === e ? 1 : e;
  9860. this.tk = 0;
  9861. d = this.Xe;
  9862. for (e = d.length = 0; e < a.length; e++) {
  9863. var f = a[e];
  9864. d.push(f);
  9865. this.tk += f.We
  9866. }
  9867. return !0
  9868. },
  9869. q: function() {
  9870. var a = new b.Kj;
  9871. a.LC(this.CP(), this.We, this.wl);
  9872. a.Gx(this.hp);
  9873. return a
  9874. },
  9875. fC: function() {
  9876. var a = new b.Kj;
  9877. a.LC(this.CP(), this.We, this.wl);
  9878. a.Gx(this.hp);
  9879. return a
  9880. },
  9881. CP: function() {
  9882. for (var a = [], d = 0; d < this.Xe.length; d++) a.push(this.Xe[d].q());
  9883. return a
  9884. },
  9885. copy: function() {
  9886. return this.fC(null)
  9887. },
  9888. Hna: function() {
  9889. return this.wl
  9890. },
  9891. jua: function(a) {
  9892. this.wl = a
  9893. },
  9894. Gx: function(a) {
  9895. this.hp =
  9896. a
  9897. },
  9898. noa: function() {
  9899. return this.hp
  9900. },
  9901. Gs: function() {
  9902. return this.tk * this.We
  9903. },
  9904. Uma: function() {
  9905. return this.We
  9906. },
  9907. Jta: function(a) {
  9908. this.We = a
  9909. },
  9910. Voa: function() {
  9911. return this.tk
  9912. },
  9913. $V: function(a, d, e) {
  9914. b.ow(a, b.Se);
  9915. this.wl = void 0 === e ? 1 : e;
  9916. this.We = d || 0;
  9917. this.tk = 0;
  9918. d = this.Xe;
  9919. d.length = 0;
  9920. if (a) {
  9921. for (e = 0; e < a.length; e++) {
  9922. var f = a[e],
  9923. g = new b.wh;
  9924. g.qg(f, 1, null);
  9925. d.push(g)
  9926. }
  9927. this.tk += a.length
  9928. }
  9929. return !0
  9930. },
  9931. CD: function() {},
  9932. Ad: function() {}
  9933. });
  9934. b.Kj.create = function(a, d, e) {
  9935. return new b.Kj(a, d, e)
  9936. };
  9937. b.Kj.Lka = b.Kj.create;
  9938. b.nw = {
  9939. Jq: {},
  9940. FJ: function(a, d) {
  9941. this.Jq[d] = a
  9942. },
  9943. Csa: function(a) {
  9944. a && this.Jq[a] && delete this.Jq[a]
  9945. },
  9946. wK: function(a) {
  9947. return this.Jq[a] ? this.Jq[a] : null
  9948. },
  9949. E2: function(a, d) {
  9950. var e = a.animations;
  9951. if (e) {
  9952. var f = 1,
  9953. g = a.properties;
  9954. if (g)
  9955. for (var f = null != g.format ? parseInt(g.format) : f, g = g.spritesheets, h = b.sh, k = b.path, m = 0; m < g.length; m++) h.IJ(k.qs(d, g[m]));
  9956. switch (f) {
  9957. case 1:
  9958. this.k5(e);
  9959. break;
  9960. case 2:
  9961. this.l5(e);
  9962. break;
  9963. default:
  9964. b.log(b.o.e7)
  9965. }
  9966. } else b.log(b.o.d7)
  9967. },
  9968. Rja: function(a) {
  9969. b.assert(a, b.o.m7);
  9970. var d = b.Z.sf(a);
  9971. d ? this.E2(d, a) : b.log(b.o.l7)
  9972. },
  9973. k5: function(a) {
  9974. var d = b.sh,
  9975. e;
  9976. for (e in a) {
  9977. var f = a[e],
  9978. g = f.frames,
  9979. f = parseFloat(f.delay) || 0,
  9980. h = null;
  9981. if (g) {
  9982. for (var h = [], k = 0; k < g.length; k++) {
  9983. var m = d.og(g[k]);
  9984. if (m) {
  9985. var n = new b.wh;
  9986. n.qg(m, 1, null);
  9987. h.push(n)
  9988. } else b.log(b.o.g7, e, g[k])
  9989. }
  9990. 0 === h.length ? b.log(b.o.h7, e) : (h.length !== g.length && b.log(b.o.i7, e), h = new b.Kj(h, f, 1), b.nw.FJ(h, e))
  9991. } else b.log(b.o.f7, e)
  9992. }
  9993. },
  9994. l5: function(a) {
  9995. var d = b.sh,
  9996. e;
  9997. for (e in a) {
  9998. var f = a[e],
  9999. g = parseInt(f.loops),
  10000. g = f.loop ? b.Ch : isNaN(g) ? 1 : g,
  10001. h = f.restoreOriginalFrame && !0 == f.restoreOriginalFrame ? !0 : !1,
  10002. k = f.frames;
  10003. if (k) {
  10004. for (var m = [], n = 0; n < k.length; n++) {
  10005. var p = k[n],
  10006. s = p.spriteframe,
  10007. t = d.og(s);
  10008. if (t) {
  10009. var s = parseFloat(p.delayUnits) || 0,
  10010. p = p.notification,
  10011. v = new b.wh;
  10012. v.qg(t, s, p);
  10013. m.push(v)
  10014. } else b.log(b.o.k7, e, s)
  10015. }
  10016. f = parseFloat(f.delayPerUnit) || 0;
  10017. k = new b.Kj;
  10018. k.LC(m, f, g);
  10019. k.Gx(h);
  10020. b.nw.FJ(k, e)
  10021. } else b.log(b.o.j7, e)
  10022. }
  10023. },
  10024. Tm: function() {
  10025. this.Jq = {}
  10026. }
  10027. };
  10028. b.Se = b.sa.extend({
  10029. Ja: null,
  10030. Mg: null,
  10031. Ff: null,
  10032. ye: !1,
  10033. Va: null,
  10034. Rh: null,
  10035. Ng: null,
  10036. O: null,
  10037. Yr: "",
  10038. R: !1,
  10039. ctor: function(a, d, e, f, g) {
  10040. this.Ja = b.d(0, 0);
  10041. this.Rh = b.d(0, 0);
  10042. this.Mg = b.size(0, 0);
  10043. this.ye = !1;
  10044. this.Ng = b.size(0, 0);
  10045. this.Yr = "";
  10046. this.O = null;
  10047. this.R = !1;
  10048. void 0 !== a && void 0 !== d && (void 0 === e || void 0 === f || void 0 === g ? this.ea(a, d) : this.ea(a, d, e, f, g))
  10049. },
  10050. Et: function() {
  10051. return this.R
  10052. },
  10053. ls: function(a, d) {
  10054. this.addEventListener("load", a, d)
  10055. },
  10056. v$: function() {
  10057. var a = this.Ff;
  10058. return b.rect(a.x, a.y, a.width, a.height)
  10059. },
  10060. Jua: function(a) {
  10061. this.Ff ||
  10062. (this.Ff = b.rect(0, 0, 0, 0));
  10063. this.Ff.x = a.x;
  10064. this.Ff.y = a.y;
  10065. this.Ff.width = a.width;
  10066. this.Ff.height = a.height;
  10067. this.Va = b.Qn(a)
  10068. },
  10069. bqa: function() {
  10070. return this.ye
  10071. },
  10072. Mua: function(a) {
  10073. this.ye = a
  10074. },
  10075. dh: function() {
  10076. var a = this.Va;
  10077. return b.rect(a.x, a.y, a.width, a.height)
  10078. },
  10079. SX: function(a) {
  10080. this.Va || (this.Va = b.rect(0, 0, 0, 0));
  10081. this.Va.x = a.x;
  10082. this.Va.y = a.y;
  10083. this.Va.width = a.width;
  10084. this.Va.height = a.height;
  10085. this.Ff = b.qx(this.Va)
  10086. },
  10087. g$: function() {
  10088. return b.d(this.Rh)
  10089. },
  10090. vua: function(a) {
  10091. this.Rh.x = a.x;
  10092. this.Rh.y = a.y;
  10093. b.WH(this.Rh, this.Ja)
  10094. },
  10095. Yna: function() {
  10096. return b.size(this.Ng)
  10097. },
  10098. yua: function(a) {
  10099. this.Ng.width = a.width;
  10100. this.Ng.height = a.height
  10101. },
  10102. Iw: function() {
  10103. return b.size(this.Mg)
  10104. },
  10105. xua: function(a) {
  10106. this.Mg.width = a.width;
  10107. this.Mg.height = a.height
  10108. },
  10109. xa: function() {
  10110. if (this.O) return this.O;
  10111. if ("" !== this.Yr) {
  10112. var a = b.Xa.Vc(this.Yr);
  10113. a && (this.R = a.R);
  10114. return a
  10115. }
  10116. return null
  10117. },
  10118. Oa: function(a) {
  10119. if (this.O !== a) {
  10120. var d = a.R;
  10121. this.R = d;
  10122. this.O = a;
  10123. d || a.addEventListener("load", function(a) {
  10124. this.R = !0;
  10125. if (this.ye && b.W === b.Jb) {
  10126. var d = a.Sa,
  10127. d = b.B.n.yG(d, this.dh()),
  10128. g = new b.ja;
  10129. g.jd(d);
  10130. g.Tb();
  10131. this.Oa(g);
  10132. d = this.dh();
  10133. this.SX(b.rect(0,
  10134. 0, d.width, d.height))
  10135. }
  10136. d = this.Va;
  10137. 0 === d.width && 0 === d.height && (d = a.width, a = a.height, this.Va.width = d, this.Va.height = a, this.Ff = b.qx(this.Va), this.Ng.width = this.Ff.width, this.Ng.height = this.Ff.height, this.Mg.width = d, this.Mg.height = a);
  10138. this.dispatchEvent("load")
  10139. }, this)
  10140. }
  10141. },
  10142. Js: function() {
  10143. return b.d(this.Ja)
  10144. },
  10145. Gj: function(a) {
  10146. this.Ja.x = a.x;
  10147. this.Ja.y = a.y
  10148. },
  10149. q: function() {
  10150. var a = new b.Se;
  10151. a.ea(this.Yr, this.Ff, this.ye, this.Rh, this.Ng);
  10152. a.Oa(this.O);
  10153. return a
  10154. },
  10155. fC: function() {
  10156. var a = new b.Se;
  10157. a.ea(this.Yr, this.Ff, this.ye, this.Rh,
  10158. this.Ng);
  10159. a.Oa(this.O);
  10160. return a
  10161. },
  10162. copy: function() {
  10163. return this.fC()
  10164. },
  10165. ea: function(a, d, e, f, g) {
  10166. 2 === arguments.length && (d = b.qx(d));
  10167. f = f || b.d(0, 0);
  10168. g = g || d;
  10169. e = e || !1;
  10170. b.Je(a) ? (this.O = null, this.Yr = a) : a instanceof b.ja && this.Oa(a);
  10171. a = this.xa();
  10172. this.Ff = d;
  10173. d = this.Va = b.Qn(d);
  10174. if (a && a.url && a.R) {
  10175. var h, k;
  10176. e ? (h = d.x + d.height, k = d.y + d.width) : (h = d.x + d.width, k = d.y + d.height);
  10177. h > a.KK() && b.error(b.o.jF, a.url);
  10178. k > a.JK() && b.error(b.o.iF, a.url)
  10179. }
  10180. this.Rh.x = f.x;
  10181. this.Rh.y = f.y;
  10182. b.WH(f, this.Ja);
  10183. this.Ng.width = g.width;
  10184. this.Ng.height = g.height;
  10185. b.US(g,
  10186. this.Mg);
  10187. this.ye = e;
  10188. return !0
  10189. }
  10190. });
  10191. b.zh.prototype.apply(b.Se.prototype);
  10192. b.Se.create = function(a, d, e, f, g) {
  10193. return new b.Se(a, d, e, f, g)
  10194. };
  10195. b.Se.eK = b.Se.create;
  10196. b.Se.Qia = function(a, d, e, f, g) {
  10197. var h = new b.Se;
  10198. h.O = a;
  10199. h.Ff = d;
  10200. h.Va = b.Qn(d);
  10201. h.Rh.x = f.x;
  10202. h.Rh.y = f.y;
  10203. b.WH(h.Rh, h.Ja);
  10204. h.Ng.width = g.width;
  10205. h.Ng.height = g.height;
  10206. b.US(h.Ng, h.Mg);
  10207. h.ye = e;
  10208. return h
  10209. };
  10210. b.sh = {
  10211. cP: /^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/,
  10212. p2: /^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/,
  10213. fj: {},
  10214. Ol: {},
  10215. ek: {},
  10216. oS: function(a) {
  10217. return (a = this.p2.exec(a)) ? b.rect(parseFloat(a[1]), parseFloat(a[2]), parseFloat(a[3]), parseFloat(a[4])) : b.rect(0, 0, 0, 0)
  10218. },
  10219. cS: function(a) {
  10220. return (a = this.cP.exec(a)) ? b.d(parseFloat(a[1]), parseFloat(a[2])) : b.d(0, 0)
  10221. },
  10222. UI: function(a) {
  10223. return (a = this.cP.exec(a)) ? b.size(parseFloat(a[1]),
  10224. parseFloat(a[2])) : b.size(0, 0)
  10225. },
  10226. N3: function(a) {
  10227. var d = b.Z.sf(a);
  10228. b.assert(d, b.o.jY, a);
  10229. b.Z.Ad(a);
  10230. if (d.yr) return this.ek[a] = d;
  10231. this.ek[a] = this.ZR(d);
  10232. return this.ek[a]
  10233. },
  10234. O3: function(a, d) {
  10235. b.assert(d, b.o.jY, a);
  10236. this.ek[a] = this.ZR(d);
  10237. return this.ek[a]
  10238. },
  10239. ZR: function(a) {
  10240. var d = a.frames,
  10241. e = a.metadata || a.meta;
  10242. a = {};
  10243. var f = {},
  10244. g = 0;
  10245. e && (g = e.format, g = 1 >= g.length ? parseInt(g) : g, f.maa = e.textureFileName || e.textureFileName || e.image);
  10246. for (var h in d) {
  10247. var k = d[h];
  10248. if (k) {
  10249. e = {};
  10250. if (0 == g) {
  10251. e.rect = b.rect(k.x, k.y, k.width, k.height);
  10252. e.FD = !1;
  10253. e.offset = b.d(k.offsetX, k.offsetY);
  10254. var m = k.originalWidth,
  10255. k = k.originalHeight;
  10256. m && k || b.log(b.o.Dea);
  10257. m = Math.abs(m);
  10258. k = Math.abs(k);
  10259. e.size = b.size(m, k)
  10260. } else if (1 == g || 2 == g) e.rect = this.oS(k.frame), e.FD = k.rotated || !1, e.offset = this.cS(k.offset), e.size = this.UI(k.sourceSize);
  10261. else if (3 == g) {
  10262. var m = this.UI(k.spriteSize),
  10263. n = this.oS(k.textureRect);
  10264. m && (n = b.rect(n.x, n.y, m.width, m.height));
  10265. e.rect = n;
  10266. e.FD = k.textureRotated || !1;
  10267. e.offset = this.cS(k.spriteOffset);
  10268. e.size = this.UI(k.spriteSourceSize);
  10269. e.W6 = k.aliases
  10270. } else m = k.frame,
  10271. n = k.sourceSize, h = k.filename || h, e.rect = b.rect(m.x, m.y, m.w, m.h), e.FD = k.rotated || !1, e.offset = b.d(0, 0), e.size = b.size(n.w, n.h);
  10272. a[h] = e
  10273. }
  10274. }
  10275. return {
  10276. yr: !0,
  10277. frames: a,
  10278. fD: f
  10279. }
  10280. },
  10281. Dia: function(a, d, e) {
  10282. b.assert(a, b.o.kY);
  10283. d && d.frames && (d = this.ek[a] || this.O3(a, d), this.FP(a, d, e))
  10284. },
  10285. FP: function(a, d, e) {
  10286. var f = d.frames;
  10287. d = d.fD;
  10288. e ? e instanceof b.ja || (b.Je(e) ? e = b.Xa.Vc(e) : b.assert(0, b.o.Fea)) : e = b.Xa.Vc(b.path.qs(a, d.maa || ".png"));
  10289. a = this.Ol;
  10290. d = this.fj;
  10291. for (var g in f) {
  10292. var h = f[g],
  10293. k = d[g];
  10294. if (!k) {
  10295. k = new b.Se(e, h.rect, h.FD, h.offset, h.size);
  10296. if (h = h.W6)
  10297. for (var m = 0, n = h.length; m < n; m++) {
  10298. var p = h[m];
  10299. a[p] && b.log(b.o.Eea, p);
  10300. a[p] = g
  10301. }
  10302. b.W === b.Jb && k.ye && k.xa().R && (h = k.xa().Sa, h = b.B.n.yG(h, k.v$()), m = new b.ja, m.jd(h), m.Tb(), k.Oa(m), h = k.Va, k.SX(b.rect(0, 0, h.width, h.height)));
  10303. d[g] = k
  10304. }
  10305. }
  10306. },
  10307. IJ: function(a, d) {
  10308. b.assert(a, b.o.kY);
  10309. var e = this.ek[a] || b.Z.sf(a);
  10310. e && e.frames && (e = this.ek[a] || this.N3(a), this.FP(a, e, d))
  10311. },
  10312. Lia: function(a) {
  10313. a = a.frames;
  10314. for (var d in a) this.fj[d] && b.log(b.o.Cea, d)
  10315. },
  10316. HJ: function(a, d) {
  10317. this.fj[d] = a
  10318. },
  10319. Ksa: function() {
  10320. this.fj = {};
  10321. this.Ol = {}
  10322. },
  10323. Jsa: function(a) {
  10324. a &&
  10325. (this.Ol[a] && delete this.Ol[a], this.fj[a] && delete this.fj[a])
  10326. },
  10327. Lsa: function(a) {
  10328. var d = this.fj,
  10329. e = this.Ol;
  10330. if (a = this.ek[a]) {
  10331. a = a.frames;
  10332. for (var f in a)
  10333. if (d[f]) {
  10334. delete d[f];
  10335. for (var g in e) e[g] === f && delete e[g]
  10336. }
  10337. }
  10338. },
  10339. Msa: function(a) {
  10340. var d = this.fj,
  10341. e = this.Ol,
  10342. f;
  10343. for (f in d) {
  10344. var g = d[f];
  10345. if (g && g.xa() === a) {
  10346. delete d[f];
  10347. for (var h in e) e[h] === f && delete e[h]
  10348. }
  10349. }
  10350. },
  10351. og: function(a) {
  10352. var d = this.fj[a];
  10353. if (!d) {
  10354. var e = this.Ol[a];
  10355. e && ((d = this.fj[e.toString()]) || delete this.Ol[a])
  10356. }
  10357. return d
  10358. },
  10359. Tm: function() {
  10360. this.fj = {};
  10361. this.Ol = {};
  10362. this.ek = {}
  10363. }
  10364. };
  10365. b.ts = {
  10366. Cga: 0,
  10367. Jha: 1,
  10368. INT: 2,
  10369. xga: 3,
  10370. Rfa: 4,
  10371. tv: 0,
  10372. S4: 0,
  10373. fJ: !1,
  10374. FB: !1,
  10375. dJ: !1,
  10376. eJ: !1,
  10377. gJ: !1,
  10378. oja: 0,
  10379. EH: 0,
  10380. tz: "",
  10381. hw: {},
  10382. yr: !1,
  10383. rl: function() {
  10384. var a = this.hw;
  10385. a["cocos2d.x.version"] = b.xE;
  10386. a["cocos2d.x.compiled_with_profiler"] = !1;
  10387. a["cocos2d.x.compiled_with_gl_state_cache"] = b.Fi;
  10388. this.yr = !0
  10389. },
  10390. Lna: function() {
  10391. return this.tv
  10392. },
  10393. Kna: function() {
  10394. return this.S4
  10395. },
  10396. Mna: function() {
  10397. return this.EH
  10398. },
  10399. Sva: function() {
  10400. return this.FB
  10401. },
  10402. Tva: function() {
  10403. return this.fJ
  10404. },
  10405. Rva: function() {
  10406. return !1
  10407. },
  10408. Uva: function() {
  10409. return !1
  10410. },
  10411. Ova: function() {
  10412. return !1
  10413. },
  10414. Pva: function() {
  10415. return this.dJ
  10416. },
  10417. Qva: function() {
  10418. return this.eJ
  10419. },
  10420. Vva: function() {
  10421. return this.gJ
  10422. },
  10423. rs: function(a) {
  10424. return -1 < this.tz.indexOf(a)
  10425. },
  10426. Os: function(a, d) {
  10427. this.yr || this.rl();
  10428. var e = this.hw;
  10429. return e[a] ? e[a] : d
  10430. },
  10431. Pd: function(a, d) {
  10432. this.hw[a] = d
  10433. },
  10434. r8: function() {
  10435. 0 === b.Fi && (b.log(""), b.log(b.o.J7), b.log(""))
  10436. },
  10437. V8: function() {
  10438. if (b.W !== b.Jb) {
  10439. this.yr || this.rl();
  10440. var a = b.A,
  10441. d = this.hw;
  10442. d["gl.vendor"] = a.getParameter(a.VENDOR);
  10443. d["gl.renderer"] = a.getParameter(a.RENDERER);
  10444. d["gl.version"] = a.getParameter(a.VERSION);
  10445. this.tz = "";
  10446. for (var e = a.getSupportedExtensions(),
  10447. f = 0; f < e.length; f++) this.tz += e[f] + " ";
  10448. this.tv = a.getParameter(a.MAX_TEXTURE_SIZE);
  10449. d["gl.max_texture_size"] = this.tv;
  10450. this.EH = a.getParameter(a.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
  10451. d["gl.max_texture_units"] = this.EH;
  10452. this.fJ = this.rs("GL_IMG_texture_compression_pvrtc");
  10453. d["gl.supports_PVRTC"] = this.fJ;
  10454. this.FB = !1;
  10455. d["gl.supports_NPOT"] = this.FB;
  10456. this.dJ = this.rs("GL_IMG_texture_format_BGRA888");
  10457. d["gl.supports_BGRA8888"] = this.dJ;
  10458. this.eJ = this.rs("GL_EXT_discard_framebuffer");
  10459. d["gl.supports_discard_framebuffer"] = this.eJ;
  10460. this.gJ = this.rs("vertex_array_object");
  10461. d["gl.supports_vertex_array_object"] = this.gJ;
  10462. b.ss()
  10463. }
  10464. },
  10465. Qqa: function(a) {
  10466. this.yr || this.rl();
  10467. var d = b.Z.sf(a);
  10468. if (!d) throw "Please load the resource first : " + a;
  10469. b.assert(d, b.o.L7, a);
  10470. if (d = d.data)
  10471. for (var e in d) this.hw[e] = d[e];
  10472. else b.log(b.o.K7, a)
  10473. }
  10474. };
  10475. b.Of = 0;
  10476. b.fN = function(a) {
  10477. b.Yw(b.Pj, a);
  10478. var d = new b.j.ca;
  10479. b.Yw(b.Oj, d);
  10480. a.multiply(d)
  10481. };
  10482. b.jb = b.sa.extend({
  10483. mja: !1,
  10484. vv: !1,
  10485. Ye: !1,
  10486. fB: !1,
  10487. rn: !1,
  10488. Iq: 0,
  10489. LH: 0,
  10490. Fv: 0,
  10491. Gq: 0,
  10492. Gg: 1,
  10493. $u: !1,
  10494. Wm: 0,
  10495. PG: 0,
  10496. zg: null,
  10497. Ag: null,
  10498. Hg: null,
  10499. nc: null,
  10500. en: null,
  10501. jk: null,
  10502. RA: null,
  10503. Vi: null,
  10504. qk: null,
  10505. iI: null,
  10506. qd: null,
  10507. Xe: 0,
  10508. bw: 0,
  10509. uI: 0,
  10510. Oia: null,
  10511. de: null,
  10512. Cg: null,
  10513. gA: null,
  10514. IG: null,
  10515. KG: null,
  10516. JG: null,
  10517. ctor: function() {
  10518. var a = this;
  10519. a.en = Date.now();
  10520. b.ua.GJ(b.pb.ly, function() {
  10521. a.en = Date.now()
  10522. })
  10523. },
  10524. T: function() {
  10525. this.LH = this.Iq = 1 / b.a8;
  10526. this.qk = [];
  10527. this.Fv = b.jb.l0;
  10528. this.iI = null;
  10529. this.PG = this.Gq = 0;
  10530. this.$u = !1;
  10531. this.bw = this.Xe = 0;
  10532. this.en = Date.now();
  10533. this.fB = this.Ye = !1;
  10534. this.nc =
  10535. b.size(0, 0);
  10536. this.Vi = null;
  10537. this.Gg = 1;
  10538. this.de = new b.zq;
  10539. b.zM ? (this.Cg = new b.zM, this.de.ot(this.Cg, b.zq.ru, !1)) : this.Cg = null;
  10540. this.IG = new b.ko(b.jb.QZ);
  10541. this.IG.setUserData(this);
  10542. this.KG = new b.ko(b.jb.SZ);
  10543. this.KG.setUserData(this);
  10544. this.JG = new b.ko(b.jb.RZ);
  10545. this.JG.setUserData(this);
  10546. this.gA = new b.ko(b.jb.TZ);
  10547. this.gA.setUserData(this);
  10548. return !0
  10549. },
  10550. y7: function() {
  10551. var a = Date.now();
  10552. this.vv ? (this.Wm = 0, this.vv = !1) : this.Wm = (a - this.en) / 1E3;
  10553. 0 < b.pb.Ee[b.pb.xh.xw] && 0.2 < this.Wm && (this.Wm = 1 / 60);
  10554. this.en = a
  10555. },
  10556. mU: null,
  10557. nU: null,
  10558. p8: function() {
  10559. var a = b.oa;
  10560. this.y7();
  10561. this.Ye || (this.de.update(this.Wm), b.ua.dispatchEvent(this.JG));
  10562. this.Tm();
  10563. this.jk && this.zda();
  10564. this.cG && this.cG();
  10565. this.qd && (!0 === a.he ? (b.oa.jU(), this.qd.f.Zd = 0, this.qd.Q(), a.XW()) : !0 === a.la() && a.transform(), b.ua.dispatchEvent(this.KG));
  10566. this.RA && this.RA.Q();
  10567. this.$u && this.n6();
  10568. this.WF && this.WF();
  10569. a.Eb(b.A);
  10570. b.ua.dispatchEvent(this.IG);
  10571. this.bw++;
  10572. this.$u && this.W2()
  10573. },
  10574. cG: null,
  10575. WF: null,
  10576. end: function() {
  10577. this.fB = !0
  10578. },
  10579. Pma: function() {
  10580. return this.Gg
  10581. },
  10582. Qna: function() {
  10583. return this.RA
  10584. },
  10585. Fa: function() {
  10586. return b.size(this.nc)
  10587. },
  10588. Nw: function() {
  10589. return b.size(this.nc.width * this.Gg, this.nc.height * this.Gg)
  10590. },
  10591. Ps: null,
  10592. CC: null,
  10593. Qs: null,
  10594. pause: function() {
  10595. this.Ye || (this.LH = this.Iq, this.iX(0.25), this.Ye = !0)
  10596. },
  10597. $ra: function() {
  10598. b.assert(this.qd, b.o.GZ);
  10599. this.qk.pop();
  10600. var a = this.qk.length;
  10601. 0 === a ? this.end() : (this.rn = !0, this.jk = this.qk[a - 1])
  10602. },
  10603. eca: function() {
  10604. b.nw.Tm();
  10605. b.sh.Tm();
  10606. b.Xa.Tm()
  10607. },
  10608. fca: function() {
  10609. this.Jn().ifa();
  10610. b.ua && b.ua.Gb(!1);
  10611. this.qd && (this.qd.eh(), this.qd.Pb(), this.qd.qf());
  10612. this.jk = this.qd = null;
  10613. this.qk.length =
  10614. 0;
  10615. this.oY();
  10616. this.eca();
  10617. b.ss()
  10618. },
  10619. gca: function(a) {
  10620. b.assert(a, b.o.ZM);
  10621. this.rn = !1;
  10622. this.qk.push(a);
  10623. this.jk = a
  10624. },
  10625. GD: function(a) {
  10626. b.assert(a, b.o.ZM);
  10627. if (this.qd) {
  10628. var d = this.qk.length;
  10629. 0 === d ? (this.rn = !0, this.qk[d] = a) : (this.rn = !0, this.qk[d - 1] = a);
  10630. this.jk = a
  10631. } else this.gca(a), this.lY()
  10632. },
  10633. Cj: function() {
  10634. this.Ye && (this.iX(this.LH), (this.en = Date.now()) || b.log(b.o.IZ), this.Ye = !1, this.Wm = 0)
  10635. },
  10636. Fta: function(a) {
  10637. a !== this.Gg && (this.Gg = a, this.cr())
  10638. },
  10639. PL: null,
  10640. Ita: function() {},
  10641. oua: function(a) {
  10642. this.vv = a
  10643. },
  10644. zda: function() {
  10645. var a = !1,
  10646. d = !1;
  10647. b.ka && (a = this.qd ? this.qd instanceof b.ka : !1, d = this.jk ? this.jk instanceof b.ka : !1);
  10648. if (!d) {
  10649. if (d = this.qd) d.eh(), d.Pb();
  10650. this.rn && d && d.qf()
  10651. }
  10652. this.qd = this.jk;
  10653. b.oa.he = !0;
  10654. this.jk = null;
  10655. a || null === this.qd || (this.qd.aa(), this.qd.wj())
  10656. },
  10657. rua: function(a) {
  10658. this.RA = a
  10659. },
  10660. Ew: function() {
  10661. return this.iI
  10662. },
  10663. st: function(a) {
  10664. this.iI = a
  10665. },
  10666. OD: null,
  10667. Sn: null,
  10668. bM: null,
  10669. l$: null,
  10670. Ls: null,
  10671. hX: null,
  10672. n6: function() {
  10673. this.Xe++;
  10674. this.Gq += this.Wm;
  10675. this.zg && this.Ag && this.Hg ? (this.Gq > b.DZ && (this.Ag.string = this.uI.toFixed(3), this.PG = this.Xe / this.Gq, this.Gq =
  10676. this.Xe = 0, this.zg.string = this.PG.toFixed(1), this.Hg.string = (0 | b.Of).toString()), this.zg.Q(), this.Ag.Q(), this.Hg.Q()) : this.cr();
  10677. b.Of = 0
  10678. },
  10679. dqa: function() {
  10680. return this.rn
  10681. },
  10682. qoa: function() {
  10683. return this.qd
  10684. },
  10685. Bma: function() {
  10686. return this.Iq
  10687. },
  10688. Npa: function() {
  10689. return this.$u
  10690. },
  10691. cda: function(a) {
  10692. this.$u = a
  10693. },
  10694. uoa: function() {
  10695. return this.uI
  10696. },
  10697. Tpa: function() {
  10698. return this.vv
  10699. },
  10700. Ypa: function() {
  10701. return this.Ye
  10702. },
  10703. Woa: function() {
  10704. return this.bw
  10705. },
  10706. asa: function() {
  10707. this.KW(1)
  10708. },
  10709. KW: function(a) {
  10710. b.assert(this.qd, b.o.HZ);
  10711. var d = this.qk,
  10712. e = d.length;
  10713. if (0 === e) this.end();
  10714. else if (!(a > e)) {
  10715. for (; e > a;) {
  10716. var f = d.pop();
  10717. f.running && (f.eh(), f.Pb());
  10718. f.qf();
  10719. e--
  10720. }
  10721. this.jk = d[d.length - 1];
  10722. this.rn = !1
  10723. }
  10724. },
  10725. Jn: function() {
  10726. return this.de
  10727. },
  10728. VX: function(a) {
  10729. this.de !== a && (this.de = a)
  10730. },
  10731. mC: function() {
  10732. return this.Cg
  10733. },
  10734. fX: function(a) {
  10735. this.Cg !== a && (this.Cg = a)
  10736. },
  10737. Wma: function() {
  10738. return this.Wm
  10739. },
  10740. cr: null,
  10741. W2: function() {
  10742. this.uI = (Date.now() - this.en) / 1E3
  10743. }
  10744. });
  10745. b.jb.TZ = "director_projection_changed";
  10746. b.jb.QZ = "director_after_draw";
  10747. b.jb.SZ = "director_after_visit";
  10748. b.jb.RZ = "director_after_update";
  10749. b.KZ = b.jb.extend({
  10750. SC: !1,
  10751. lY: function() {
  10752. this.vv = !0;
  10753. this.SC = !1
  10754. },
  10755. Cba: function() {
  10756. this.fB ? (this.fB = !1, this.fca()) : this.SC || this.p8()
  10757. },
  10758. oY: function() {
  10759. this.SC = !0
  10760. },
  10761. iX: function(a) {
  10762. this.Iq = a;
  10763. this.SC || (this.oY(), this.lY())
  10764. }
  10765. });
  10766. b.jb.dM = null;
  10767. b.jb.ZU = !0;
  10768. b.jb.aH = function() {
  10769. b.jb.ZU && (b.jb.ZU = !1, b.jb.dM = new b.KZ, b.jb.dM.T());
  10770. return b.jb.dM
  10771. };
  10772. b.a8 = 60;
  10773. b.jb.EN = 0;
  10774. b.jb.FN = 1;
  10775. b.jb.k0 = 3;
  10776. b.jb.l0 = b.jb.FN;
  10777. b.W === b.Jb ? (r = b.jb.prototype, r.Sn = function(a) {
  10778. this.Fv = a;
  10779. b.ua.dispatchEvent(this.gA)
  10780. }, r.PL = function() {}, r.OD = function(a) {
  10781. this.nc.width = b.ab.width;
  10782. this.nc.height = b.ab.height;
  10783. this.Vi = a || b.view;
  10784. b.ua && b.ua.Gb(!0)
  10785. }, r.Tm = function() {
  10786. var a = this.Vi.pf,
  10787. d = b.A.getContext();
  10788. d.setTransform(1, 0, 0, 1, 0, 0);
  10789. d.clearRect(-a.x, a.y, a.width, a.height)
  10790. }, r.cr = function() {
  10791. var a = 0,
  10792. a = this.nc.width > this.nc.height ? 0 | this.nc.height / 320 * 24 : 0 | this.nc.width / 320 * 24;
  10793. this.zg = new b.M("000.0", "Arial", a);
  10794. this.Ag = new b.M("0.000", "Arial", a);
  10795. this.Hg = new b.M("0000", "Arial", a);
  10796. a = b.tE;
  10797. this.Hg.I(this.Hg.width / 2 + a.x, 5 * this.Hg.height / 2 + a.y);
  10798. this.Ag.I(this.Ag.width / 2 + a.x, 3 * this.Ag.height / 2 + a.y);
  10799. this.zg.I(this.zg.width / 2 + a.x, this.zg.height / 2 + a.y)
  10800. }, r.Ps = function() {
  10801. return this.Fa()
  10802. }, r.CC = function() {
  10803. return b.d(0, 0)
  10804. }) : (b.jb.or = new Image, b.$a(b.jb.or, "load", function() {
  10805. b.jb.OQ = !0
  10806. }), b.or && (b.jb.or.src = b.or));
  10807. b.W === b.ya && function() {
  10808. b.zga = b.sa.extend({
  10809. Bwa: function() {}
  10810. });
  10811. var a = b.jb.prototype;
  10812. a.Sn = function(a) {
  10813. var e = this.nc;
  10814. this.bM();
  10815. var f = this.Vi,
  10816. g = f.pf.x / f.Wb,
  10817. f = f.pf.y / f.Sc;
  10818. switch (a) {
  10819. case b.jb.EN:
  10820. b.tj(b.Pj);
  10821. b.Ws();
  10822. e = b.j.ca.dK(-g, e.width - g, -f, e.height - f, -1024, 1024);
  10823. b.Xs(e);
  10824. b.tj(b.Oj);
  10825. b.Ws();
  10826. break;
  10827. case b.jb.FN:
  10828. var h = this.Qs(),
  10829. k = new b.j.ca,
  10830. m = new b.j.ca;
  10831. b.tj(b.Pj);
  10832. b.Ws();
  10833. k = b.j.ca.W7(e.width / e.height, 2 * h);
  10834. b.Xs(k);
  10835. b.tj(b.Oj);
  10836. b.Ws();
  10837. m.sL(new b.j.Pa(-g + e.width / 2, -f + e.height / 2, h), new b.j.Pa(-g + e.width / 2, -f + e.height /
  10838. 2, 0), new b.j.Pa(0, 1, 0));
  10839. b.Xs(m);
  10840. break;
  10841. case b.jb.k0:
  10842. break;
  10843. default:
  10844. b.log(b.o.JZ)
  10845. }
  10846. this.Fv = a;
  10847. b.ua.dispatchEvent(this.gA);
  10848. b.QX();
  10849. b.oa.he = !0
  10850. };
  10851. a.PL = function(a) {
  10852. var e = b.A;
  10853. a ? (e.clearDepth(1), e.enable(e.DEPTH_TEST), e.depthFunc(e.LEQUAL)) : e.disable(e.DEPTH_TEST)
  10854. };
  10855. a.OD = function(a) {
  10856. this.nc.width = b.ab.width;
  10857. this.nc.height = b.ab.height;
  10858. this.Vi = a || b.view;
  10859. a = b.ts;
  10860. a.V8();
  10861. a.r8();
  10862. this.cr();
  10863. this.wX();
  10864. b.ua && b.ua.Gb(!0)
  10865. };
  10866. a.Tm = function() {
  10867. var a = b.A;
  10868. a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT)
  10869. };
  10870. a.cG = function() {
  10871. b.Zw()
  10872. };
  10873. a.WF =
  10874. function() {
  10875. b.Ys()
  10876. };
  10877. a.cr = function() {
  10878. if (!b.oe) this.h3();
  10879. else if (null != b.jb.OQ && !1 !== b.jb.OQ) {
  10880. var a = new b.ja;
  10881. a.jd(b.jb.or);
  10882. a.Tb();
  10883. var e = b.view.BK().height / 320;
  10884. 0 === e && (e = this.nc.height / 320);
  10885. var f = new b.oe;
  10886. f.FI(!0);
  10887. f.je("00.0", a, 12, 32, ".");
  10888. f.scale = e;
  10889. this.zg = f;
  10890. f = new b.oe;
  10891. f.FI(!0);
  10892. f.je("0.000", a, 12, 32, ".");
  10893. f.scale = e;
  10894. this.Ag = f;
  10895. f = new b.oe;
  10896. f.FI(!0);
  10897. f.je("000", a, 12, 32, ".");
  10898. f.scale = e;
  10899. this.Hg = f;
  10900. a = b.tE;
  10901. this.Hg.I(a.x, 34 * e + a.y);
  10902. this.Ag.I(a.x, 17 * e + a.y);
  10903. this.zg.I(a)
  10904. }
  10905. };
  10906. a.h3 = function() {
  10907. var a = 0,
  10908. a = this.nc.width > this.nc.height ?
  10909. 0 | this.nc.height / 320 * 24 : 0 | this.nc.width / 320 * 24;
  10910. this.zg = new b.M("000.0", "Arial", a);
  10911. this.Ag = new b.M("0.000", "Arial", a);
  10912. this.Hg = new b.M("0000", "Arial", a);
  10913. a = b.tE;
  10914. this.Hg.I(this.Hg.width / 2 + a.x, 5 * this.Hg.height / 2 + a.y);
  10915. this.Ag.I(this.Ag.width / 2 + a.x, 3 * this.Ag.height / 2 + a.y);
  10916. this.zg.I(this.zg.width / 2 + a.x, this.zg.height / 2 + a.y)
  10917. };
  10918. a.mU = function(a) {
  10919. var e = new b.j.ca;
  10920. b.fN(e);
  10921. var f = e.inverse(),
  10922. e = e.s[14] / e.s[15],
  10923. g = this.Vi.BK();
  10924. a = new b.j.Pa(2 * a.x / g.width - 1, 1 - 2 * a.y / g.height, e);
  10925. a.vY(f);
  10926. return b.d(a.x, a.y)
  10927. };
  10928. a.nU = function(a) {
  10929. var e =
  10930. new b.j.ca;
  10931. b.fN(e);
  10932. a = new b.j.Pa(a.x, a.y, 0);
  10933. a.vY(e);
  10934. e = this.Vi.BK();
  10935. return b.d(e.width * (0.5 * a.x + 0.5), e.height * (0.5 * -a.y + 0.5))
  10936. };
  10937. a.Ps = function() {
  10938. return this.Vi.Ps()
  10939. };
  10940. a.CC = function() {
  10941. return this.Vi.CC()
  10942. };
  10943. a.Qs = function() {
  10944. return this.nc.height / 1.1566
  10945. };
  10946. a.bM = function() {
  10947. var a = this.Vi;
  10948. if (a) {
  10949. var e = this.nc;
  10950. a.lea(-a.pf.x / a.Wb, -a.pf.y / a.Sc, e.width, e.height)
  10951. }
  10952. };
  10953. a.l$ = function() {
  10954. return this.Vi
  10955. };
  10956. a.Ls = function() {
  10957. return this.Fv
  10958. };
  10959. a.hX = function(a) {
  10960. a ? b.ji(b.Td, b.Sd) : b.ji(b.A.ONE, b.A.ZERO)
  10961. };
  10962. a.wX = function() {
  10963. this.hX(!0);
  10964. this.PL(!1);
  10965. this.Sn(this.Fv);
  10966. b.A.clearColor(0, 0, 0, 1)
  10967. }
  10968. }();
  10969. b.Qt = b.sa.extend({
  10970. jr: null,
  10971. kr: null,
  10972. lr: null,
  10973. zo: null,
  10974. Ao: null,
  10975. Bo: null,
  10976. fs: null,
  10977. gs: null,
  10978. hs: null,
  10979. Ra: !1,
  10980. Fr: null,
  10981. ctor: function() {
  10982. this.Fr = new b.j.ca;
  10983. this.restore()
  10984. },
  10985. description: function() {
  10986. return "\x3cCCCamera | center \x3d(" + this.zo + "," + this.Ao + "," + this.Bo + ")\x3e"
  10987. },
  10988. qX: function(a) {
  10989. this.Ra = a
  10990. },
  10991. nL: function() {
  10992. return this.Ra
  10993. },
  10994. restore: function() {
  10995. this.jr = this.kr = 0;
  10996. this.lr = b.Qt.Qs();
  10997. this.fs = this.zo = this.Ao = this.Bo = 0;
  10998. this.gs = 1;
  10999. this.hs = 0;
  11000. this.Fr.ie();
  11001. this.Ra = !1
  11002. },
  11003. rW: function() {
  11004. this.Ra && (this.Fr.sL(new b.j.Pa(this.jr, this.kr,
  11005. this.lr), new b.j.Pa(this.zo, this.Ao, this.Bo), new b.j.Pa(this.fs, this.gs, this.hs)), this.Ra = !1);
  11006. b.Xs(this.Fr)
  11007. },
  11008. zH: function(a) {
  11009. this.Ra && (this.Fr.sL(new b.j.Pa(this.jr, this.kr, this.lr), new b.j.Pa(this.zo, this.Ao, this.Bo), new b.j.Pa(this.fs, this.gs, this.hs)), this.Ra = !1);
  11010. a.multiply(this.Fr)
  11011. },
  11012. Pta: function(a, d, e) {
  11013. this.uX(a, d, e)
  11014. },
  11015. uX: function(a, d, e) {
  11016. this.jr = a;
  11017. this.kr = d;
  11018. this.lr = e;
  11019. this.Ra = !0
  11020. },
  11021. yta: function(a, d, e) {
  11022. this.Sca(a, d, e)
  11023. },
  11024. Sca: function(a, d, e) {
  11025. this.zo = a;
  11026. this.Ao = d;
  11027. this.Bo = e;
  11028. this.Ra = !0
  11029. },
  11030. yva: function(a, d, e) {
  11031. this.fea(a,
  11032. d, e)
  11033. },
  11034. fea: function(a, d, e) {
  11035. this.fs = a;
  11036. this.gs = d;
  11037. this.hs = e;
  11038. this.Ra = !0
  11039. },
  11040. kna: function() {
  11041. return {
  11042. x: this.jr,
  11043. y: this.kr,
  11044. z: this.lr
  11045. }
  11046. },
  11047. iV: function() {
  11048. return {
  11049. x: this.jr,
  11050. y: this.kr,
  11051. z: this.lr
  11052. }
  11053. },
  11054. Ima: function() {
  11055. return {
  11056. x: this.zo,
  11057. y: this.Ao,
  11058. z: this.Bo
  11059. }
  11060. },
  11061. eV: function() {
  11062. return {
  11063. x: this.zo,
  11064. y: this.Ao,
  11065. z: this.Bo
  11066. }
  11067. },
  11068. cpa: function() {
  11069. return {
  11070. x: this.fs,
  11071. y: this.gs,
  11072. z: this.hs
  11073. }
  11074. },
  11075. R$: function() {
  11076. return {
  11077. x: this.fs,
  11078. y: this.gs,
  11079. z: this.hs
  11080. }
  11081. },
  11082. zia: function() {}
  11083. });
  11084. b.Qt.Qs = function() {
  11085. return b.Dy
  11086. };
  11087. b.Bha = b.ru + 1;
  11088. b.mN = function(a, d, e, f) {
  11089. this.next = null;
  11090. this.mj = a;
  11091. this.target = d;
  11092. this.ht = e;
  11093. this.paused = f;
  11094. this.im = !1
  11095. };
  11096. b.gN = function(a, d, e, f) {
  11097. this.list = a;
  11098. this.ah = d;
  11099. this.target = e;
  11100. this.mj = null;
  11101. this.HC = f
  11102. };
  11103. b.g_ = b.upa = function(a, d, e, f, g, h, k) {
  11104. this.Xf = a;
  11105. this.target = d;
  11106. this.Gt = e;
  11107. this.vw = f;
  11108. this.ww = g;
  11109. this.paused = h;
  11110. this.HC = k
  11111. };
  11112. b.GF = b.sa.extend({
  11113. de: null,
  11114. Bb: 0,
  11115. oB: !1,
  11116. gw: !1,
  11117. sp: 0,
  11118. kB: 0,
  11119. Yu: 0,
  11120. fk: 0,
  11121. xna: function() {
  11122. return this.fk
  11123. },
  11124. setInterval: function(a) {
  11125. this.fk = a
  11126. },
  11127. dY: function(a, d, e) {
  11128. this.Bb = -1;
  11129. this.fk = a;
  11130. this.Yu = e;
  11131. this.gw = 0 < this.Yu;
  11132. this.kB = d;
  11133. this.oB = this.kB === b.Ch
  11134. },
  11135. Xn: function() {
  11136. return 0
  11137. },
  11138. cancel: function() {
  11139. return 0
  11140. },
  11141. ctor: function() {
  11142. this.de = null;
  11143. this.Bb = -1;
  11144. this.gw = this.oB = !1;
  11145. this.fk = this.Yu = this.kB = this.sp = 0
  11146. },
  11147. update: function(a) {
  11148. -1 === this.Bb ? this.sp = this.Bb = 0 : (this.Bb += a, this.oB && !this.gw ? this.Bb >= this.fk && (this.Xn(), this.Bb = 0) : (this.gw ?
  11149. this.Bb >= this.Yu && (this.Xn(), this.Bb -= this.Yu, this.sp += 1, this.gw = !1) : this.Bb >= this.fk && (this.Xn(), this.Bb = 0, this.sp += 1), !this.oB && this.sp > this.kB && this.cancel()))
  11150. }
  11151. });
  11152. b.c2 = b.GF.extend({
  11153. Xb: null,
  11154. qn: null,
  11155. ctor: function() {
  11156. this.qn = this.Xb = null
  11157. },
  11158. zaa: function(a, d, e, f, g, h) {
  11159. this.de = a;
  11160. this.Xb = e;
  11161. this.qn = d;
  11162. this.dY(f, g, h);
  11163. return !0
  11164. },
  11165. woa: function() {
  11166. return this.qn
  11167. },
  11168. Xn: function() {
  11169. this.Xb && this.qn && this.Xb.call(this.qn, this.Bb)
  11170. },
  11171. cancel: function() {
  11172. this.de.tg(this.qn, this.Xb)
  11173. }
  11174. });
  11175. b.b2 = b.GF.extend({
  11176. Xb: null,
  11177. Xd: null,
  11178. CR: null,
  11179. ctor: function() {
  11180. this.Xd = this.Xb = null
  11181. },
  11182. Sp: function(a, d, e, f, g, h, k) {
  11183. this.de = a;
  11184. this.Xb = e;
  11185. this.Xd = d;
  11186. this.CR = f;
  11187. this.dY(g, h, k);
  11188. return !0
  11189. },
  11190. Hma: function() {
  11191. return this.Xd
  11192. },
  11193. getKey: function() {
  11194. return this.CR
  11195. },
  11196. Xn: function() {
  11197. this.Xd && this.Xd.call(this.Xb, this.Bb)
  11198. },
  11199. cancel: function() {
  11200. this.de.tg(this.Xd, this.Xb)
  11201. }
  11202. });
  11203. b.zq = b.sa.extend({
  11204. $v: 1,
  11205. wk: null,
  11206. vk: null,
  11207. xk: null,
  11208. ol: null,
  11209. Kq: null,
  11210. Ri: null,
  11211. Ed: null,
  11212. ak: !1,
  11213. ew: !1,
  11214. ctor: function() {
  11215. this.$v = 1;
  11216. this.wk = [];
  11217. this.vk = [];
  11218. this.xk = [];
  11219. this.Ri = {};
  11220. this.ol = {};
  11221. this.Ed = null;
  11222. this.ew = this.ak = !1;
  11223. this.Kq = []
  11224. },
  11225. N5: function(a, d, e, f) {
  11226. var g = this.Ri[d.ba];
  11227. if (g && g.ah)
  11228. if (g.ah.ht !== e) {
  11229. if (this.ew) {
  11230. b.log("warning: you CANNOT change update priority in scheduled function");
  11231. g.ah.im = !1;
  11232. g.ah.paused = f;
  11233. return
  11234. }
  11235. this.Hj(d)
  11236. } else {
  11237. g.ah.im = !1;
  11238. g.ah.paused = f;
  11239. return
  11240. }
  11241. 0 === e ? this.M2(this.vk, a, d, f) : 0 > e ? this.gS(this.wk, a,
  11242. d, e, f) : this.gS(this.xk, a, d, e, f)
  11243. },
  11244. lI: function(a) {
  11245. delete this.ol[a.target.ba];
  11246. b.ge(this.Kq, a);
  11247. a.GF = null;
  11248. a.target = null
  11249. },
  11250. iB: function(a) {
  11251. if (a = this.Ri[a.target.ba]) b.ge(a.list, a.ah), delete this.Ri[a.target.ba], a.ah = null, a.target = null
  11252. },
  11253. gS: function(a, d, e, f, g) {
  11254. d = new b.mN(d, e, f, g);
  11255. if (a) {
  11256. g = a.length - 1;
  11257. for (var h = 0; h <= g && !(f < a[h].ht); h++);
  11258. a.splice(h, 0, d)
  11259. } else a = [], a.push(d);
  11260. this.Ri[e.ba] = new b.gN(a, d, e);
  11261. return a
  11262. },
  11263. M2: function(a, d, e, f) {
  11264. d = new b.mN(d, e, 0, f);
  11265. a.push(d);
  11266. this.Ri[e.ba] = new b.gN(a, d, e, null)
  11267. },
  11268. fva: function(a) {
  11269. this.$v =
  11270. a
  11271. },
  11272. Roa: function() {
  11273. return this.$v
  11274. },
  11275. update: function(a) {
  11276. this.ew = !0;
  11277. 1 !== this.$v && (a *= this.$v);
  11278. var d, e, f, g;
  11279. d = 0;
  11280. e = this.wk;
  11281. for (f = e.length; d < f; d++) g = e[d], g.paused || g.im || g.mj(a);
  11282. d = 0;
  11283. e = this.vk;
  11284. for (f = e.length; d < f; d++) g = e[d], g.paused || g.im || g.mj(a);
  11285. d = 0;
  11286. e = this.xk;
  11287. for (f = e.length; d < f; d++) g = e[d], g.paused || g.im || g.mj(a);
  11288. f = this.Kq;
  11289. for (d = 0; d < f.length; d++) {
  11290. this.Ed = e = f[d];
  11291. this.ak = !1;
  11292. if (!e.paused)
  11293. for (e.Gt = 0; e.Gt < e.Xf.length; ++e.Gt) e.vw = e.Xf[e.Gt], e.ww = !1, e.vw.update(a), e.vw = null;
  11294. this.ak && 0 === this.Ed.Xf.length && this.lI(this.Ed)
  11295. }
  11296. d =
  11297. 0;
  11298. for (e = this.wk; d < e.length;) g = e[d], g.im ? this.iB(g) : d++;
  11299. d = 0;
  11300. for (e = this.vk; d < e.length;) g = e[d], g.im ? this.iB(g) : d++;
  11301. d = 0;
  11302. for (e = this.xk; d < e.length;) g = e[d], g.im ? this.iB(g) : d++;
  11303. this.ew = !1;
  11304. this.Ed = null
  11305. },
  11306. fta: function(a, d, e, f, g, h) {
  11307. this.Dj(d, a, e, f, g, h, a.ba + "")
  11308. },
  11309. Dj: function(a, d, e, f, g, h, k) {
  11310. var m = !1;
  11311. if ("function" !== typeof a) var n = a,
  11312. m = !0;
  11313. !1 === m ? 5 === arguments.length && (k = g, h = f, g = 0, f = b.Ch) : 4 === arguments.length && (h = f, f = b.Ch, g = 0);
  11314. b.assert(d, b.o.P0);
  11315. !1 === m && b.assert(k, "key should not be empty!");
  11316. var p = this.ol[d.ba];
  11317. p ?
  11318. b.assert(p.paused === h, "") : (p = new b.g_(null, d, 0, null, null, h, null), this.Kq.push(p), this.ol[d.ba] = p);
  11319. var s, t;
  11320. if (null == p.Xf) p.Xf = [];
  11321. else if (!1 === m)
  11322. for (t = 0; t < p.Xf.length; t++) {
  11323. if (s = p.Xf[t], a === s.Xd) {
  11324. b.log(b.o.O0, s.fk.toFixed(4), e.toFixed(4));
  11325. s.fk = e;
  11326. return
  11327. }
  11328. } else
  11329. for (t = 0; t < p.Xf.length; ++t)
  11330. if ((s = p.Xf[t]) && n === s.qn) {
  11331. b.log("CCScheduler#scheduleSelector. Selector already scheduled. Updating interval from: %.4f to %.4f", s.fk, e);
  11332. s.setInterval(e);
  11333. return
  11334. }!1 === m ? (s = new b.b2, s.Sp(this, a, d, k, e, f, g)) : (s = new b.c2, s.zaa(this,
  11335. n, d, e, f, g));
  11336. p.Xf.push(s)
  11337. },
  11338. ot: function(a, d, e) {
  11339. this.N5(function(d) {
  11340. a.update(d)
  11341. }, a, d, e)
  11342. },
  11343. l4: function(a, d) {
  11344. switch (typeof a) {
  11345. case "number":
  11346. case "string":
  11347. return a === d.getKey();
  11348. case "function":
  11349. return a === d.Xd;
  11350. default:
  11351. return a === d.qn
  11352. }
  11353. },
  11354. tg: function(a, d) {
  11355. if (d && a) {
  11356. var e = this.ol[d.ba];
  11357. if (e)
  11358. for (var f = e.Xf, g = 0, h = f.length; g < h; g++) {
  11359. var k = f[g];
  11360. if (this.l4(a, k)) {
  11361. k !== e.vw || e.ww || (e.ww = !0);
  11362. f.splice(g, 1);
  11363. e.Gt >= g && e.Gt--;
  11364. 0 === f.length && (this.Ed === e ? this.ak = !0 : this.lI(e));
  11365. break
  11366. }
  11367. }
  11368. }
  11369. },
  11370. Hj: function(a) {
  11371. null != a && (a = this.Ri[a.ba]) &&
  11372. (this.ew ? a.ah.im = !0 : this.iB(a.ah))
  11373. },
  11374. zY: function(a) {
  11375. if (null != a) {
  11376. var d = this.ol[a.ba];
  11377. d && (-1 < d.Xf.indexOf(d.vw) && !d.ww && (d.ww = !0), d.Xf.length = 0, this.Ed === d ? this.ak = !0 : this.lI(d));
  11378. this.Hj(a)
  11379. }
  11380. },
  11381. ifa: function() {
  11382. this.qM(b.zq.ru)
  11383. },
  11384. qM: function(a) {
  11385. var d, e, f = this.Kq;
  11386. for (d = 0; d < f.length; d++) e = f[d], this.zY(e.target);
  11387. f = 0;
  11388. if (0 > a)
  11389. for (d = 0; d < this.wk.length;) f = this.wk.length, (e = this.wk[d]) && e.ht >= a && this.Hj(e.target), f == this.wk.length && d++;
  11390. if (0 >= a)
  11391. for (d = 0; d < this.vk.length;) f = this.vk.length, (e = this.vk[d]) && this.Hj(e.target),
  11392. f == this.vk.length && d++;
  11393. for (d = 0; d < this.xk.length;) f = this.xk.length, (e = this.xk[d]) && e.ht >= a && this.Hj(e.target), f == this.xk.length && d++
  11394. },
  11395. cqa: function(a, d) {
  11396. b.assert(a, "Argument key must not be empty");
  11397. b.assert(d, "Argument target must be non-nullptr");
  11398. var e = this.Ri[d.ba];
  11399. if (!e) return !1;
  11400. if (null != e.Xf)
  11401. for (var e = e.Xf, f = 0; f < e.length; ++f)
  11402. if (a === e[f].getKey()) return !0;
  11403. return !1
  11404. },
  11405. Tra: function() {
  11406. return this.Sba(b.zq.ru)
  11407. },
  11408. Sba: function(a) {
  11409. var d = [],
  11410. e, f = this.Kq,
  11411. g, h;
  11412. g = 0;
  11413. for (h = f.length; g < h; g++)
  11414. if (e = f[g]) e.paused = !0, d.push(e.target);
  11415. if (0 > a)
  11416. for (g = 0; g < this.wk.length; g++)(e = this.wk[g]) && e.ht >= a && (e.paused = !0, d.push(e.target));
  11417. if (0 >= a)
  11418. for (g = 0; g < this.vk.length; g++)
  11419. if (e = this.vk[g]) e.paused = !0, d.push(e.target);
  11420. for (g = 0; g < this.xk.length; g++)(e = this.xk[g]) && e.ht >= a && (e.paused = !0, d.push(e.target));
  11421. return d
  11422. },
  11423. Fca: function(a) {
  11424. if (a)
  11425. for (var d = 0; d < a.length; d++) this.nm(a[d])
  11426. },
  11427. gt: function(a) {
  11428. b.assert(a, b.o.M0);
  11429. var d = this.ol[a.ba];
  11430. d && (d.paused = !0);
  11431. if (a = this.Ri[a.ba]) a.ah.paused = !0
  11432. },
  11433. nm: function(a) {
  11434. b.assert(a, b.o.N0);
  11435. var d = this.ol[a.ba];
  11436. d && (d.paused = !1);
  11437. if (a = this.Ri[a.ba]) a.ah.paused = !1
  11438. },
  11439. hqa: function(a) {
  11440. b.assert(a, b.o.L0);
  11441. var d = this.ol[a.ba];
  11442. return d ? d.paused : (a = this.Ri[a.ba]) ? a.ah.paused : !1
  11443. },
  11444. hta: function(a, d, e) {
  11445. this.ot(a, d, e)
  11446. },
  11447. wwa: function(a, d) {
  11448. this.tg(d, a)
  11449. },
  11450. xwa: function(a) {
  11451. this.Hj(a)
  11452. },
  11453. uwa: function(a) {
  11454. this.tg(a.ba + "", a)
  11455. },
  11456. pM: function() {
  11457. this.qM(b.zq.ru)
  11458. },
  11459. vwa: function(a) {
  11460. this.qM(a)
  11461. }
  11462. });
  11463. b.zq.ru = -2147483648;
  11464. b.tN = 2 * Math.PI;
  11465. b.$M = b.sa.extend({
  11466. eG: [],
  11467. A: null,
  11468. ctor: function(a) {
  11469. this.A = a
  11470. },
  11471. m8: function(a, d) {
  11472. d || (d = 1);
  11473. var e = b.view.oc(),
  11474. f = b.d(a.x * e, a.y * b.view.gd()),
  11475. g = this.A.getContext();
  11476. g.beginPath();
  11477. g.arc(f.x, -f.y, d * e, 0, 2 * Math.PI, !1);
  11478. g.closePath();
  11479. g.fill()
  11480. },
  11481. n8: function(a, d, e) {
  11482. if (null != a) {
  11483. e || (e = 1);
  11484. d = this.A.getContext();
  11485. var f = b.view.oc(),
  11486. g = b.view.gd();
  11487. d.beginPath();
  11488. for (var h = 0, k = a.length; h < k; h++) d.arc(a[h].x * f, -a[h].y * g, e * f, 0, 2 * Math.PI, !1);
  11489. d.closePath();
  11490. d.fill()
  11491. }
  11492. },
  11493. $l: function(a, d) {
  11494. var e = this.A.getContext(),
  11495. f = b.view.oc(),
  11496. g = b.view.gd();
  11497. e.beginPath();
  11498. e.moveTo(a.x * f, -a.y * g);
  11499. e.lineTo(d.x * f, -d.y * g);
  11500. e.closePath();
  11501. e.stroke()
  11502. },
  11503. nK: function(a, d) {
  11504. this.$l(b.d(a.x, a.y), b.d(d.x, a.y));
  11505. this.$l(b.d(d.x, a.y), b.d(d.x, d.y));
  11506. this.$l(b.d(d.x, d.y), b.d(a.x, d.y));
  11507. this.$l(b.d(a.x, d.y), b.d(a.x, a.y))
  11508. },
  11509. NU: function(a, d, e) {
  11510. a = [a, b.d(d.x, a.y), d, b.d(a.x, d.y)];
  11511. this.pK(a, 4, e)
  11512. },
  11513. ei: function(a, d, e, f) {
  11514. f = f || !1;
  11515. if (null != a) {
  11516. if (3 > a.length) throw Error("Polygon's point must greater than 2");
  11517. var g = a[0];
  11518. d = this.A.getContext();
  11519. var h = b.view.oc(),
  11520. k = b.view.gd();
  11521. d.beginPath();
  11522. d.moveTo(g.x *
  11523. h, -g.y * k);
  11524. for (var g = 1, m = a.length; g < m; g++) d.lineTo(a[g].x * h, -a[g].y * k);
  11525. e && d.closePath();
  11526. f ? d.fill() : d.stroke()
  11527. }
  11528. },
  11529. pK: function(a, d, e) {
  11530. this.tt(e.r, e.g, e.b, e.a);
  11531. this.ei(a, d, !0, !0)
  11532. },
  11533. jK: function(a, d, e, f, g) {
  11534. g = g || !1;
  11535. f = this.A.getContext();
  11536. var h = b.view.oc(),
  11537. k = b.view.gd();
  11538. f.beginPath();
  11539. f.arc(0 | a.x * h, 0 | -(a.y * k), d * h, -e, -(e - 2 * Math.PI), !1);
  11540. g && f.lineTo(0 | a.x * h, 0 | -(a.y * k));
  11541. f.stroke()
  11542. },
  11543. mK: function(a, d, e, f) {
  11544. for (var g = this.eG, h = g.length = 0, k = 0; k < f; k++) g.push(b.d(Math.pow(1 - h, 2) * a.x + 2 * (1 - h) * h * d.x + h * h * e.x, Math.pow(1 - h, 2) *
  11545. a.y + 2 * (1 - h) * h * d.y + h * h * e.y)), h += 1 / f;
  11546. g.push(b.d(e.x, e.y));
  11547. this.ei(g, f + 1, !1, !1)
  11548. },
  11549. kK: function(a, d, e, f, g) {
  11550. for (var h = this.eG, k = h.length = 0, m = 0; m < g; m++) h.push(b.d(Math.pow(1 - k, 3) * a.x + 3 * Math.pow(1 - k, 2) * k * d.x + 3 * (1 - k) * k * k * e.x + k * k * k * f.x, Math.pow(1 - k, 3) * a.y + 3 * Math.pow(1 - k, 2) * k * d.y + 3 * (1 - k) * k * k * e.y + k * k * k * f.y)), k += 1 / g;
  11551. h.push(b.d(f.x, f.y));
  11552. this.ei(h, g + 1, !1, !1)
  11553. },
  11554. iK: function(a, d) {
  11555. this.Jp(a, 0.5, d)
  11556. },
  11557. Jp: function(a, d, e) {
  11558. b.A.VD("rgba(255,255,255,1)");
  11559. var f = this.eG;
  11560. f.length = 0;
  11561. for (var g, h, k = 1 / a.length, m = 0; m < e + 1; m++) h = m / e,
  11562. 1 === h ? (g = a.length - 1, h = 1) : (g = 0 | h / k, h = (h - k * g) / k), g = b.jga(b.Nd(a, g - 1), b.Nd(a, g - 0), b.Nd(a, g + 1), b.Nd(a, g + 2), d, h), f.push(g);
  11563. this.ei(f, e + 1, !1, !1)
  11564. },
  11565. drawImage: function(a, d, e, f, g) {
  11566. var h = arguments.length,
  11567. k = this.A.getContext();
  11568. switch (h) {
  11569. case 2:
  11570. k.drawImage(a, d.x, -(d.y + a.height));
  11571. break;
  11572. case 3:
  11573. k.drawImage(a, d.x, -(d.y + e.height), e.width, e.height);
  11574. break;
  11575. case 5:
  11576. k.drawImage(a, d.x, d.y, e.width, e.height, f.x, -(f.y + g.height), g.width, g.height);
  11577. break;
  11578. default:
  11579. throw Error("Argument must be non-nil");
  11580. }
  11581. },
  11582. q8: function(a, d, e) {
  11583. a = a ||
  11584. this.A;
  11585. var f = a.getContext();
  11586. d *= b.view.oc();
  11587. e = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b);
  11588. a.Fj(e + ",1)");
  11589. var g = d / 10;
  11590. f.beginPath();
  11591. f.moveTo(-d, d);
  11592. f.lineTo(0, g);
  11593. f.lineTo(d, d);
  11594. f.lineTo(g, 0);
  11595. f.lineTo(d, -d);
  11596. f.lineTo(0, -g);
  11597. f.lineTo(-d, -d);
  11598. f.lineTo(-g, 0);
  11599. f.lineTo(-d, d);
  11600. f.closePath();
  11601. f.fill();
  11602. var h = f.createRadialGradient(0, 0, g, 0, 0, d);
  11603. h.addColorStop(0, e + ", 1)");
  11604. h.addColorStop(0.3, e + ", 0.8)");
  11605. h.addColorStop(1, e + ", 0.0)");
  11606. a.Fj(h);
  11607. f.beginPath();
  11608. f.arc(0, 0, d - g, 0, b.tN, !1);
  11609. f.closePath();
  11610. f.fill()
  11611. },
  11612. j8: function(a, d, e) {
  11613. a =
  11614. a || this.A;
  11615. var f = a.getContext();
  11616. d *= b.view.oc();
  11617. e = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b);
  11618. var g = f.createRadialGradient(0, 0, d / 10, 0, 0, d);
  11619. g.addColorStop(0, e + ", 1)");
  11620. g.addColorStop(0.3, e + ", 0.8)");
  11621. g.addColorStop(0.6, e + ", 0.4)");
  11622. g.addColorStop(1, e + ", 0.0)");
  11623. a.Fj(g);
  11624. f.beginPath();
  11625. f.arc(0, 0, d, 0, b.tN, !1);
  11626. f.closePath();
  11627. f.fill()
  11628. },
  11629. fillText: function(a, d, e) {
  11630. this.A.getContext().fillText(a, d, -e)
  11631. },
  11632. tt: function(a, d, e, f) {
  11633. this.A.Fj("rgba(" + a + "," + d + "," + e + "," + f / 255 + ")");
  11634. this.A.VD("rgba(" + a + "," + d + "," + e + "," + f / 255 + ")")
  11635. },
  11636. Fda: function() {},
  11637. SL: function(a) {
  11638. this.A.getContext().lineWidth = a * b.view.oc()
  11639. }
  11640. });
  11641. b.NZ = b.sa.extend({
  11642. A: null,
  11643. mv: !1,
  11644. Uc: null,
  11645. Zj: -1,
  11646. dg: null,
  11647. ZH: -1,
  11648. YH: -1,
  11649. ctor: function(a) {
  11650. null == a && (a = b.A);
  11651. if (!a instanceof WebGLRenderingContext) throw "Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext";
  11652. this.A = a;
  11653. this.dg = new Float32Array([1, 1, 1, 1])
  11654. },
  11655. gm: function() {
  11656. this.mv || (this.Uc = b.le.Dc(b.pF), this.Zj = this.A.getUniformLocation(this.Uc.Qp(), "u_color"), this.ZH = this.A.getUniformLocation(this.Uc.Qp(), "u_pointSize"), this.mv = !0)
  11657. },
  11658. ola: function() {
  11659. this.mv = !1
  11660. },
  11661. m8: function(a) {
  11662. this.gm();
  11663. var d =
  11664. this.A;
  11665. this.Uc.jc();
  11666. this.Uc.Sk();
  11667. b.hd(b.qe);
  11668. d.uniform4fv(this.Zj, this.dg);
  11669. this.Uc.Kx(this.ZH, this.YH);
  11670. var e = d.createBuffer();
  11671. d.bindBuffer(d.ARRAY_BUFFER, e);
  11672. d.bufferData(d.ARRAY_BUFFER, new Float32Array([a.x, a.y]), d.STATIC_DRAW);
  11673. d.vertexAttribPointer(b.Ib, 2, d.FLOAT, !1, 0, 0);
  11674. d.drawArrays(d.POINTS, 0, 1);
  11675. d.deleteBuffer(e);
  11676. b.li()
  11677. },
  11678. n8: function(a) {
  11679. if (a && 0 !== a.length) {
  11680. this.gm();
  11681. var d = this.A;
  11682. this.Uc.jc();
  11683. this.Uc.Sk();
  11684. b.hd(b.qe);
  11685. d.uniform4fv(this.Zj, this.dg);
  11686. this.Uc.Kx(this.ZH, this.YH);
  11687. var e = d.createBuffer();
  11688. d.bindBuffer(d.ARRAY_BUFFER, e);
  11689. d.bufferData(d.ARRAY_BUFFER, this.cB(a), d.STATIC_DRAW);
  11690. d.vertexAttribPointer(b.Ib, 2, d.FLOAT, !1, 0, 0);
  11691. d.drawArrays(d.POINTS, 0, a.length);
  11692. d.deleteBuffer(e);
  11693. b.li()
  11694. }
  11695. },
  11696. cB: function(a) {
  11697. for (var d = new Float32Array(2 * a.length), e = 0; e < a.length; e++) d[2 * e] = a[e].x, d[2 * e + 1] = a[e].y;
  11698. return d
  11699. },
  11700. $l: function(a, d) {
  11701. this.gm();
  11702. var e = this.A;
  11703. this.Uc.jc();
  11704. this.Uc.Sk();
  11705. b.hd(b.qe);
  11706. e.uniform4fv(this.Zj, this.dg);
  11707. var f = e.createBuffer();
  11708. e.bindBuffer(e.ARRAY_BUFFER, f);
  11709. e.bufferData(e.ARRAY_BUFFER, this.cB([a,
  11710. d
  11711. ]), e.STATIC_DRAW);
  11712. e.vertexAttribPointer(b.Ib, 2, e.FLOAT, !1, 0, 0);
  11713. e.drawArrays(e.LINES, 0, 2);
  11714. e.deleteBuffer(f);
  11715. b.li()
  11716. },
  11717. nK: function(a, d) {
  11718. this.$l(b.d(a.x, a.y), b.d(d.x, a.y));
  11719. this.$l(b.d(d.x, a.y), b.d(d.x, d.y));
  11720. this.$l(b.d(d.x, d.y), b.d(a.x, d.y));
  11721. this.$l(b.d(a.x, d.y), b.d(a.x, a.y))
  11722. },
  11723. NU: function(a, d, e) {
  11724. a = [a, b.d(d.x, a.y), d, b.d(a.x, d.y)];
  11725. this.pK(a, 4, e)
  11726. },
  11727. ei: function(a, d, e) {
  11728. this.gm();
  11729. d = this.A;
  11730. this.Uc.jc();
  11731. this.Uc.Sk();
  11732. b.hd(b.qe);
  11733. d.uniform4fv(this.Zj, this.dg);
  11734. var f = d.createBuffer();
  11735. d.bindBuffer(d.ARRAY_BUFFER, f);
  11736. d.bufferData(d.ARRAY_BUFFER, this.cB(a), d.STATIC_DRAW);
  11737. d.vertexAttribPointer(b.Ib, 2, d.FLOAT, !1, 0, 0);
  11738. e ? d.drawArrays(d.LINE_LOOP, 0, a.length) : d.drawArrays(d.LINE_STRIP, 0, a.length);
  11739. d.deleteBuffer(f);
  11740. b.li()
  11741. },
  11742. pK: function(a, d, e) {
  11743. this.gm();
  11744. e && this.tt(e.r, e.g, e.b, e.a);
  11745. d = this.A;
  11746. this.Uc.jc();
  11747. this.Uc.Sk();
  11748. b.hd(b.qe);
  11749. d.uniform4fv(this.Zj, this.dg);
  11750. e = d.createBuffer();
  11751. d.bindBuffer(d.ARRAY_BUFFER, e);
  11752. d.bufferData(d.ARRAY_BUFFER, this.cB(a), d.STATIC_DRAW);
  11753. d.vertexAttribPointer(b.Ib, 2, d.FLOAT, !1, 0, 0);
  11754. d.drawArrays(d.TRIANGLE_FAN,
  11755. 0, a.length);
  11756. d.deleteBuffer(e);
  11757. b.li()
  11758. },
  11759. jK: function(a, d, e, f, g) {
  11760. this.gm();
  11761. var h = 1;
  11762. g && h++;
  11763. var k = 2 * Math.PI / f;
  11764. if (g = new Float32Array(2 * (f + 2))) {
  11765. for (var m = 0; m <= f; m++) {
  11766. var n = m * k,
  11767. p = d * Math.sin(n + e) + a.y;
  11768. g[2 * m] = d * Math.cos(n + e) + a.x;
  11769. g[2 * m + 1] = p
  11770. }
  11771. g[2 * (f + 1)] = a.x;
  11772. g[2 * (f + 1) + 1] = a.y;
  11773. a = this.A;
  11774. this.Uc.jc();
  11775. this.Uc.Sk();
  11776. b.hd(b.qe);
  11777. a.uniform4fv(this.Zj, this.dg);
  11778. d = a.createBuffer();
  11779. a.bindBuffer(a.ARRAY_BUFFER, d);
  11780. a.bufferData(a.ARRAY_BUFFER, g, a.STATIC_DRAW);
  11781. a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, 0, 0);
  11782. a.drawArrays(a.LINE_STRIP,
  11783. 0, f + h);
  11784. a.deleteBuffer(d);
  11785. b.li()
  11786. }
  11787. },
  11788. mK: function(a, d, e, f) {
  11789. this.gm();
  11790. for (var g = new Float32Array(2 * (f + 1)), h = 0, k = 0; k < f; k++) g[2 * k] = Math.pow(1 - h, 2) * a.x + 2 * (1 - h) * h * d.x + h * h * e.x, g[2 * k + 1] = Math.pow(1 - h, 2) * a.y + 2 * (1 - h) * h * d.y + h * h * e.y, h += 1 / f;
  11791. g[2 * f] = e.x;
  11792. g[2 * f + 1] = e.y;
  11793. a = this.A;
  11794. this.Uc.jc();
  11795. this.Uc.Sk();
  11796. b.hd(b.qe);
  11797. a.uniform4fv(this.Zj, this.dg);
  11798. d = a.createBuffer();
  11799. a.bindBuffer(a.ARRAY_BUFFER, d);
  11800. a.bufferData(a.ARRAY_BUFFER, g, a.STATIC_DRAW);
  11801. a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, 0, 0);
  11802. a.drawArrays(a.LINE_STRIP, 0, f + 1);
  11803. a.deleteBuffer(d);
  11804. b.li()
  11805. },
  11806. kK: function(a, d, e, f, g) {
  11807. this.gm();
  11808. for (var h = new Float32Array(2 * (g + 1)), k = 0, m = 0; m < g; m++) h[2 * m] = Math.pow(1 - k, 3) * a.x + 3 * Math.pow(1 - k, 2) * k * d.x + 3 * (1 - k) * k * k * e.x + k * k * k * f.x, h[2 * m + 1] = Math.pow(1 - k, 3) * a.y + 3 * Math.pow(1 - k, 2) * k * d.y + 3 * (1 - k) * k * k * e.y + k * k * k * f.y, k += 1 / g;
  11809. h[2 * g] = f.x;
  11810. h[2 * g + 1] = f.y;
  11811. a = this.A;
  11812. this.Uc.jc();
  11813. this.Uc.Sk();
  11814. b.hd(b.qe);
  11815. a.uniform4fv(this.Zj, this.dg);
  11816. d = a.createBuffer();
  11817. a.bindBuffer(a.ARRAY_BUFFER, d);
  11818. a.bufferData(a.ARRAY_BUFFER, h, a.STATIC_DRAW);
  11819. a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, 0, 0);
  11820. a.drawArrays(a.LINE_STRIP,
  11821. 0, g + 1);
  11822. a.deleteBuffer(d);
  11823. b.li()
  11824. },
  11825. iK: function(a, d) {
  11826. this.Jp(a, 0.5, d)
  11827. },
  11828. Jp: function(a, d, e) {
  11829. this.gm();
  11830. for (var f = new Float32Array(2 * (e + 1)), g, h, k = 1 / a.length, m = 0; m < e + 1; m++) h = m / e, 1 === h ? (g = a.length - 1, h = 1) : (g = 0 | h / k, h = (h - k * g) / k), g = b.cC(b.Nd(a, g - 1), b.Nd(a, g), b.Nd(a, g + 1), b.Nd(a, g + 2), d, h), f[2 * m] = g.x, f[2 * m + 1] = g.y;
  11831. a = this.A;
  11832. this.Uc.jc();
  11833. this.Uc.Sk();
  11834. b.hd(b.qe);
  11835. a.uniform4fv(this.Zj, this.dg);
  11836. d = a.createBuffer();
  11837. a.bindBuffer(a.ARRAY_BUFFER, d);
  11838. a.bufferData(a.ARRAY_BUFFER, f, a.STATIC_DRAW);
  11839. a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, 0, 0);
  11840. a.drawArrays(a.LINE_STRIP, 0, e + 1);
  11841. a.deleteBuffer(d);
  11842. b.li()
  11843. },
  11844. tt: function(a, d, e, f) {
  11845. this.dg[0] = a / 255;
  11846. this.dg[1] = d / 255;
  11847. this.dg[2] = e / 255;
  11848. this.dg[3] = f / 255
  11849. },
  11850. Fda: function(a) {
  11851. this.YH = a * b.Db()
  11852. },
  11853. SL: function(a) {
  11854. this.A.lineWidth && this.A.lineWidth(a)
  11855. }
  11856. });
  11857. b.Ea.cF = function() {
  11858. var a = b.M.prototype;
  11859. b.i(a, "color", a.rf, a.X);
  11860. b.i(a, "opacity", a.bh, a.Hb);
  11861. b.i(a, "string", a.am, a.Wc);
  11862. b.i(a, "textAlign", a.A9, a.ida);
  11863. b.i(a, "verticalAlign", a.V$, a.jea);
  11864. b.i(a, "fontSize", a.DK, a.Bx);
  11865. b.i(a, "fontName", a.CK, a.KD);
  11866. b.i(a, "font", a.M3, a.V5);
  11867. b.i(a, "boundingWidth", a.YG, a.R5);
  11868. b.i(a, "boundingHeight", a.H3, a.Q5);
  11869. b.i(a, "fillStyle", a.L3, a.vX);
  11870. b.i(a, "strokeStyle", a.i4, a.h6);
  11871. b.i(a, "lineWidth", a.V3, a.Z5);
  11872. b.i(a, "shadowOffsetX", a.f4, a.d6);
  11873. b.i(a, "shadowOffsetY", a.g4, a.e6);
  11874. b.i(a, "shadowOpacity",
  11875. a.h4, a.f6);
  11876. b.i(a, "shadowBlur", a.e4, a.c6)
  11877. };
  11878. b.M = b.B.extend({
  11879. Jc: null,
  11880. cn: b.ro,
  11881. Bn: b.Du,
  11882. ec: null,
  11883. fc: 0,
  11884. Bc: "",
  11885. XA: null,
  11886. ee: !1,
  11887. ze: null,
  11888. Ml: 0,
  11889. un: 0,
  11890. mp: null,
  11891. Yh: !1,
  11892. pp: null,
  11893. Pl: 0,
  11894. Xr: null,
  11895. aJ: 0,
  11896. bJ: 0,
  11897. Ir: !1,
  11898. xH: null,
  11899. Ma: "LabelTTF",
  11900. kl: "normal",
  11901. ll: "normal",
  11902. rv: "normal",
  11903. je: function(a, d, e, f, g, h) {
  11904. a = a ? a + "" : "";
  11905. e = e || 16;
  11906. f = f || b.size(0, 0);
  11907. g = g || b.dz;
  11908. h = h || b.Du;
  11909. this.Cb = !1;
  11910. this.Jc = b.size(f.width, f.height);
  11911. this.ec = d || "Arial";
  11912. this.cn = g;
  11913. this.Bn = h;
  11914. this.fc = e;
  11915. this.f.tn(this.ec, e, this.kl, this.ll);
  11916. this.string = a;
  11917. this.f.aj();
  11918. this.f.uk();
  11919. this.Tc();
  11920. return !0
  11921. },
  11922. Tc: function() {
  11923. this.Ir = !0;
  11924. this.f.va(b.e.V.Vn)
  11925. },
  11926. ctor: function(a, d, e, f, g, h) {
  11927. b.B.prototype.ctor.call(this);
  11928. this.Jc = b.size(0, 0);
  11929. this.cn = b.dz;
  11930. this.Bn = b.Du;
  11931. this.Cb = !1;
  11932. this.ec = "Arial";
  11933. this.ee = !1;
  11934. this.ze = b.d(0, 0);
  11935. this.un = this.Ml = 0;
  11936. this.Yh = !1;
  11937. this.pp = b.color(255, 255, 255, 255);
  11938. this.Pl = 0;
  11939. this.Xr = b.color(255, 255, 255, 255);
  11940. this.bJ = this.aJ = 0;
  11941. this.Ir = !1;
  11942. this.xH = [];
  11943. this.f.aj();
  11944. this.R = !0;
  11945. d && d instanceof fa ? this.Daa(a, d) : b.M.prototype.je.call(this, a, d, e, f, g, h)
  11946. },
  11947. T: function() {
  11948. return this.je(" ", this.ec, this.fc)
  11949. },
  11950. description: function() {
  11951. return "\x3ccc.LabelTTF | FontName \x3d" +
  11952. this.ec + " FontSize \x3d " + this.fc.toFixed(1) + "\x3e"
  11953. },
  11954. FK: function() {
  11955. return !this.rv || this.rv.charAt ? this.f.$m : this.rv || this.f.$m
  11956. },
  11957. iua: function(a) {
  11958. this.rv = a
  11959. },
  11960. am: function() {
  11961. return this.Bc
  11962. },
  11963. A9: function() {
  11964. return this.cn
  11965. },
  11966. V$: function() {
  11967. return this.Bn
  11968. },
  11969. $ma: function() {
  11970. return b.size(this.Jc)
  11971. },
  11972. DK: function() {
  11973. return this.fc
  11974. },
  11975. CK: function() {
  11976. return this.ec
  11977. },
  11978. Daa: function(a, d) {
  11979. this.FT(d, !1);
  11980. this.string = a;
  11981. return !0
  11982. },
  11983. Zua: function(a) {
  11984. a && this.FT(a, !0)
  11985. },
  11986. Koa: function() {
  11987. return this.u5(!1)
  11988. },
  11989. z8: function(a, d, e, f) {
  11990. null != a.r &&
  11991. null != a.g && null != a.b && null != a.a ? this.u3(a, d, e) : this.CQ(a, d, e, f)
  11992. },
  11993. CQ: function(a, d, e, f) {
  11994. e = e || 0.5;
  11995. !1 === this.ee && (this.ee = !0);
  11996. var g = this.ze;
  11997. if (g && g.x !== a || g.Nf !== d) g.x = a, g.y = d;
  11998. this.Ml !== e && (this.Ml = e);
  11999. this.f.aj();
  12000. this.un !== f && (this.un = f);
  12001. this.Tc()
  12002. },
  12003. u3: function(a, d, e) {
  12004. this.mp || (this.mp = b.color(255, 255, 255, 128));
  12005. this.mp.r = a.r;
  12006. this.mp.g = a.g;
  12007. this.mp.b = a.b;
  12008. this.CQ(d.width || d.x || 0, d.height || d.y || 0, null != a.a ? a.a / 255 : 0.5, e)
  12009. },
  12010. f4: function() {
  12011. return this.ze.x
  12012. },
  12013. d6: function(a) {
  12014. !1 === this.ee && (this.ee = !0);
  12015. this.ze.x !==
  12016. a && (this.ze.x = a, this.Tc())
  12017. },
  12018. g4: function() {
  12019. return this.ze.Nf
  12020. },
  12021. e6: function(a) {
  12022. !1 === this.ee && (this.ee = !0);
  12023. this.ze.Nf !== a && (this.ze.Nf = a, this.Tc())
  12024. },
  12025. cja: function() {
  12026. return b.d(this.ze.x, this.ze.y)
  12027. },
  12028. Eja: function(a) {
  12029. !1 === this.ee && (this.ee = !0);
  12030. if (this.ze.x !== a.x || this.ze.y !== a.y) this.ze.x = a.x, this.ze.y = a.y, this.Tc()
  12031. },
  12032. h4: function() {
  12033. return this.Ml
  12034. },
  12035. f6: function(a) {
  12036. !1 === this.ee && (this.ee = !0);
  12037. this.Ml !== a && (this.Ml = a, this.f.aj(), this.Tc())
  12038. },
  12039. e4: function() {
  12040. return this.un
  12041. },
  12042. c6: function(a) {
  12043. !1 === this.ee && (this.ee = !0);
  12044. this.un !== a && (this.un = a, this.Tc())
  12045. },
  12046. Yka: function() {
  12047. this.ee && (this.ee = !1, this.Tc())
  12048. },
  12049. A8: function(a, d) {
  12050. !1 === this.Yh && (this.Yh = !0);
  12051. var e = this.pp;
  12052. if (e.r !== a.r || e.g !== a.g || e.b !== a.b) e.r = a.r, e.g = a.g, e.b = a.b, this.f.aj();
  12053. this.Pl !== d && (this.Pl = d || 0);
  12054. this.Tc()
  12055. },
  12056. i4: function() {
  12057. return this.pp
  12058. },
  12059. h6: function(a) {
  12060. !1 === this.Yh && (this.Yh = !0);
  12061. var d = this.pp;
  12062. if (d.r !== a.r || d.g !== a.g || d.b !== a.b) d.r = a.r, d.g = a.g, d.b = a.b, this.f.aj(), this.Tc()
  12063. },
  12064. V3: function() {
  12065. return this.Pl
  12066. },
  12067. Z5: function(a) {
  12068. !1 === this.Yh && (this.Yh = !0);
  12069. this.Pl !==
  12070. a && (this.Pl = a || 0, this.Tc())
  12071. },
  12072. Zka: function() {
  12073. this.Yh && (this.Yh = !1, this.Tc())
  12074. },
  12075. vX: function(a) {
  12076. var d = this.Xr;
  12077. if (d.r !== a.r || d.g !== a.g || d.b !== a.b) d.r = a.r, d.g = a.g, d.b = a.b, this.f.aj(), this.Ir = !0
  12078. },
  12079. L3: function() {
  12080. return this.Xr
  12081. },
  12082. FT: function(a, d) {
  12083. a.oma ? (this.Jc.width = a.boundingWidth, this.Jc.height = a.boundingHeight) : (this.Jc.width = 0, this.Jc.height = 0);
  12084. this.cn = a.textAlign;
  12085. this.Bn = a.verticalAlign;
  12086. this.ec = a.fontName;
  12087. this.fc = a.fontSize || 12;
  12088. this.rv = a.lineHeight ? a.lineHeight : this.fc;
  12089. this.f.tn(a);
  12090. a.eY && this.z8(a.shadowOffsetX,
  12091. a.shadowOffsetY, a.shadowOpacity, a.shadowBlur);
  12092. a.iM && this.A8(a.strokeStyle, a.lineWidth);
  12093. this.vX(a.fillStyle);
  12094. d && this.f.uk();
  12095. var e = b.e.V;
  12096. this.f.va(e.Ka | e.Ha | e.Vn)
  12097. },
  12098. u5: function(a) {
  12099. var d = new fa;
  12100. a ? (d.fontSize = this.fc, d.boundingWidth = b.Db() * this.Jc.width, d.boundingHeight = b.Db() * this.Jc.height) : (d.fontSize = this.fc, d.boundingWidth = this.Jc.width, d.boundingHeight = this.Jc.height);
  12101. d.fontName = this.ec;
  12102. d.textAlign = this.cn;
  12103. d.verticalAlign = this.Bn;
  12104. if (this.Yh) {
  12105. d.iM = !0;
  12106. var e = this.pp;
  12107. d.strokeStyle = b.color(e.r, e.g, e.b);
  12108. d.lineWidth = this.Pl
  12109. } else d.iM = !1;
  12110. this.ee ? (d.eY = !0, d.shadowBlur = this.un, d.shadowOpacity = this.Ml, d.shadowOffsetX = (a ? b.Db() : 1) * this.ze.x, d.shadowOffsetY = (a ? b.Db() : 1) * this.ze.y) : d.ee = !1;
  12111. a = this.Xr;
  12112. d.fillStyle = b.color(a.r, a.g, a.b);
  12113. return d
  12114. },
  12115. Wc: function(a) {
  12116. a = String(a);
  12117. this.XA !== a && (this.XA = a + "", this.SB(), this.Tc(), this.f.va(b.e.V.la))
  12118. },
  12119. SB: function() {
  12120. this.Bc && "" !== this.Bc || this.Bc === this.XA || (b.oa.he = !0);
  12121. this.Bc = this.XA
  12122. },
  12123. ida: function(a) {
  12124. a !== this.cn && (this.cn = a, this.Tc())
  12125. },
  12126. jea: function(a) {
  12127. a !== this.Bn && (this.Bn =
  12128. a, this.Tc())
  12129. },
  12130. Lta: function(a, d) {
  12131. var e;
  12132. void 0 === d ? (e = a.width, d = a.height) : e = a;
  12133. if (e !== this.Jc.width || d !== this.Jc.height) this.Jc.width = e, this.Jc.height = d, this.SB(), this.Tc()
  12134. },
  12135. YG: function() {
  12136. return this.Jc.width
  12137. },
  12138. R5: function(a) {
  12139. a !== this.Jc.width && (this.Jc.width = a, this.SB(), this.Tc())
  12140. },
  12141. H3: function() {
  12142. return this.Jc.height
  12143. },
  12144. Q5: function(a) {
  12145. a !== this.Jc.height && (this.Jc.height = a, this.SB(), this.Tc())
  12146. },
  12147. Bx: function(a) {
  12148. this.fc !== a && (this.fc = a, this.f.tn(this.ec, this.fc, this.kl, this.ll), this.Tc())
  12149. },
  12150. KD: function(a) {
  12151. this.ec &&
  12152. this.ec !== a && (this.ec = a, this.f.tn(this.ec, this.fc, this.kl, this.ll), this.Tc())
  12153. },
  12154. M3: function() {
  12155. return this.f.$G()
  12156. },
  12157. V5: function(a) {
  12158. if (a = b.M.y3.exec(a)) this.fc = parseInt(a[1]), this.ec = a[2], this.f.tn(this.ec, this.fc, this.kl, this.ll), this.Tc()
  12159. },
  12160. L: function() {
  12161. this.Ir && this.f.TB();
  12162. return b.B.prototype.L.call(this)
  12163. },
  12164. Nh: function() {
  12165. this.Ir && this.f.TB();
  12166. return b.B.prototype.Nh.call(this)
  12167. },
  12168. ml: function() {
  12169. this.Ir && this.f.TB();
  12170. return b.B.prototype.ml.call(this)
  12171. },
  12172. Fc: function(a, d, e) {
  12173. b.B.prototype.Fc.call(this, a, d, e, !1)
  12174. },
  12175. Ic: function() {
  12176. return b.W === b.Jb ? new b.M.n(this) : new b.M.p(this)
  12177. },
  12178. tn: function(a) {
  12179. this.kl !== a && (this.kl = a, this.f.tn(this.ec, this.fc, this.kl, this.ll), this.Tc())
  12180. },
  12181. $G: function() {
  12182. return this.kl
  12183. },
  12184. Aja: function(a) {
  12185. this.ll !== a && (this.ll = a, this.f.tn(this.ec, this.fc, this.kl, this.ll), this.Tc())
  12186. },
  12187. Via: function() {
  12188. return this.ll
  12189. }
  12190. });
  12191. b.assert(b.Ie(b.Ea.cF), b.o.Qj, "LabelTTFPropertyDefine.js");
  12192. b.Ea.cF();
  12193. delete b.Ea.cF;
  12194. b.M.y3 = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;
  12195. b.M.create = function(a, d, e, f, g, h) {
  12196. return new b.M(a, d, e, f, g, h)
  12197. };
  12198. b.M.Mka = b.M.create;
  12199. b.M.x2 = b.o2 ? b.Sj : b.mF;
  12200. b.M.Yk = b.ic("div");
  12201. b.M.Yk.style.fontFamily = "Arial";
  12202. b.M.Yk.style.position = "absolute";
  12203. b.M.Yk.style.left = "-100px";
  12204. b.M.Yk.style.top = "-100px";
  12205. b.M.Yk.style.lineHeight = "normal";
  12206. document.body ? document.body.appendChild(b.M.Yk) : b.$a(window, "load", function() {
  12207. this.removeEventListener("load", arguments.callee, !1);
  12208. document.body.appendChild(b.M.Yk)
  12209. }, !1);
  12210. b.M.eP = function(a, d) {
  12211. if (a instanceof fa) {
  12212. var e = b.M.vz[ga(a)];
  12213. if (0 < e) return e;
  12214. var f = b.M.Yk;
  12215. f.innerHTML = "ajghl~!";
  12216. f.style.fontFamily = a.fontName;
  12217. f.style.fontSize = a.fontSize + "px";
  12218. f.style.fontStyle = a.fontStyle;
  12219. f.style.fontWeight = a.fontWeight;
  12220. e = f.clientHeight;
  12221. b.M.vz[ga(a)] = e;
  12222. f.innerHTML = "";
  12223. return e
  12224. }
  12225. e = b.M.vz[a + "." + d];
  12226. if (0 < e) return e;
  12227. f = b.M.Yk;
  12228. f.innerHTML = "ajghl~!";
  12229. f.style.fontFamily = a;
  12230. f.style.fontSize = d + "px";
  12231. e = f.clientHeight;
  12232. b.M.vz[a + "." + d] = e;
  12233. f.innerHTML = "";
  12234. return e
  12235. };
  12236. b.M.vz = {};
  12237. b.M.x6 = ["left", "center", "right"];
  12238. b.M.y6 = ["top", "middle", "bottom"];
  12239. b.M.MY = !0;
  12240. b.M.LT = /([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)/;
  12241. b.M.fT = /^[!,.:;}\]%\?>\u3001\u2018\u201c\u300b\uff1f\u3002\uff0c\uff01]/;
  12242. b.M.ER = /([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)$/;
  12243. b.M.DR = /[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+$/;
  12244. b.M.JQ = /^[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]/;
  12245. (function() {
  12246. b.M.Re = function() {
  12247. this.$m = 18;
  12248. this.Jo = "";
  12249. this.TI = "rgba(128, 128, 128, 0.5)";
  12250. this.$I = "";
  12251. this.OG = "rgba(255,255,255,1)";
  12252. this.CA = this.BA = null;
  12253. this.xH = [];
  12254. this.gj = [];
  12255. this.nv = !1
  12256. };
  12257. var a = b.M.Re.prototype;
  12258. a.constructor = b.M.Re;
  12259. a.bH = function() {
  12260. if (this.CA) return this.CA;
  12261. var a = this.k;
  12262. if (!this.BA) {
  12263. var e = b.ic("canvas");
  12264. e.width = 1;
  12265. e.height = 1;
  12266. var f = new b.ja;
  12267. f.jd(e);
  12268. a.Oa(f);
  12269. this.BA = e
  12270. }
  12271. return this.CA = this.BA.getContext("2d")
  12272. };
  12273. a.tn = function(a, e, f, g) {
  12274. a instanceof fa ? (this.Jo = ga(a), this.$m = b.M.eP(a)) : (this.Jo =
  12275. f + " " + g + " " + e + "px '" + a + "'", this.$m = b.M.eP(a, e))
  12276. };
  12277. a.$G = function() {
  12278. return this.Jo
  12279. };
  12280. a.Uia = function() {
  12281. return this.$m
  12282. };
  12283. a.uk = function() {
  12284. this.G ^= this.G & b.e.V.Vn;
  12285. var a = this.k,
  12286. e = this.bH(),
  12287. f = this.BA,
  12288. g = a.U;
  12289. if (0 === a.Bc.length) f.width = 1, f.height = g.height || 1, a.O && a.O.Tb(), a.Fc(b.rect(0, 0, 1, g.height));
  12290. else {
  12291. e.font = this.Jo;
  12292. this.TB();
  12293. var h = g.width,
  12294. g = g.height,
  12295. k = f.width === h && f.height === g;
  12296. f.width = h;
  12297. f.height = g;
  12298. k && e.clearRect(0, 0, h, g);
  12299. this.t3(e);
  12300. a.O && a.O.Tb();
  12301. a.Fc(b.rect(0, 0, h, g))
  12302. }
  12303. };
  12304. a.T4 = function() {
  12305. this.bH().font = this.Jo
  12306. };
  12307. a.Gr = function(a) {
  12308. return this.bH().measureText(a).width
  12309. };
  12310. a.TB = function() {
  12311. var a = this.k,
  12312. e = a.Jc.width,
  12313. f, g, h = this.xH;
  12314. h.length = 0;
  12315. this.nv = !1;
  12316. this.T4();
  12317. if (0 !== e)
  12318. for (this.gj = a.Bc.split("\n"), f = 0; f < this.gj.length; f++) this.oG(this.gj, f, e);
  12319. else
  12320. for (this.gj = a.Bc.split("\n"), f = 0, g = this.gj.length; f < g; f++) h.push(this.Gr(this.gj[f]));
  12321. 0 < this.gj.length && (this.nv = !0);
  12322. g = f = 0;
  12323. a.Yh && (f = g = 2 * a.Pl);
  12324. if (a.ee) {
  12325. var k = a.ze;
  12326. f += 2 * Math.abs(k.x);
  12327. g += 2 * Math.abs(k.y)
  12328. }
  12329. e = 0 === e ? this.nv ? b.size(Math.ceil(Math.max.apply(Math, h) + f), Math.ceil(this.$m *
  12330. this.gj.length + g)) : b.size(Math.ceil(this.Gr(a.Bc) + f), Math.ceil(this.$m + g)) : 0 === a.Jc.height ? this.nv ? b.size(Math.ceil(e + f), Math.ceil(a.FK() * this.gj.length + g)) : b.size(Math.ceil(e + f), Math.ceil(a.FK() + g)) : b.size(Math.ceil(e + f), Math.ceil(a.Jc.height + g));
  12331. "normal" !== a.$G() && (e.width = Math.ceil(e.width + 0.3 * a.fc));
  12332. a.Na(e);
  12333. a.aJ = f;
  12334. a.bJ = g;
  12335. a = a.Ih;
  12336. this.Dg.x = 0.5 * f + (e.width - f) * a.x;
  12337. this.Dg.y = 0.5 * g + (e.height - g) * a.y
  12338. };
  12339. a.t3 = function(a) {
  12340. if (a) {
  12341. var e = this.k,
  12342. f = e.aJ,
  12343. g = e.bJ,
  12344. h = e.U.height - g,
  12345. k = e.Bn,
  12346. m = e.cn,
  12347. n = e.Pl;
  12348. a.setTransform(1,
  12349. 0, 0, 1, 0.5 * f, h + 0.5 * g);
  12350. a.font !== this.Jo && (a.font = this.Jo);
  12351. a.fillStyle = this.OG;
  12352. var p = g = 0,
  12353. s = e.Yh;
  12354. s && (a.lineWidth = 2 * n, a.strokeStyle = this.$I);
  12355. e.ee && (n = e.ze, a.shadowColor = this.TI, a.shadowOffsetX = n.x, a.shadowOffsetY = -n.y, a.shadowBlur = e.un);
  12356. a.textBaseline = b.M.y6[k];
  12357. a.textAlign = b.M.x6[m];
  12358. var t = e.U.width - f,
  12359. f = e.FK(),
  12360. n = (f - this.$m) / 2,
  12361. g = m === b.jO ? g + t : m === b.ro ? g + t / 2 : g + 0;
  12362. if (this.nv)
  12363. for (e = this.gj.length, k === b.YO ? p = f - 2 * n + h - f * e : k === b.LF && (p = (f - 2 * n) / 2 + (h - f * e) / 2), k = 0; k < e; k++) m = this.gj[k], t = -h + (f * k + n) + p, s && a.strokeText(m,
  12364. g, t), a.fillText(m, g, t);
  12365. else k !== b.YO && (p = k === b.Du ? p - h : p - 0.5 * h), s && a.strokeText(e.Bc, g, p), a.fillText(e.Bc, g, p)
  12366. }
  12367. };
  12368. a.oG = function(a, e, f) {
  12369. var g = a[e],
  12370. h = this.Gr(g);
  12371. if (h > f && 1 < g.length) {
  12372. for (var k = f / h * g.length | 0, m = g.substr(k), n = h - this.Gr(m), p, s = 0, t = 0; n > f && 100 > t++;) k *= f / n, k |= 0, m = g.substr(k), n = h - this.Gr(m);
  12373. for (t = 0; n < f && 100 > t++;) m && (s = (p = b.M.LT.exec(m)) ? p[0].length : 1, p = m), k += s, m = g.substr(k), n = h - this.Gr(m);
  12374. k -= s;
  12375. 0 === k && (k = 1, p = p.substr(1));
  12376. f = g.substr(0, k);
  12377. b.M.MY && b.M.fT.test(p || m) && (h = b.M.ER.exec(f), k -= h ? h[0].length :
  12378. 0, p = g.substr(k), f = g.substr(0, k));
  12379. b.M.JQ.test(p) && (h = b.M.DR.exec(f)) && f !== h[0] && (k -= h[0].length, p = g.substr(k), f = g.substr(0, k));
  12380. a[e] = p || m;
  12381. a.splice(e, 0, f)
  12382. }
  12383. }
  12384. })();
  12385. (function() {
  12386. b.M.n = function(a) {
  12387. b.B.n.call(this, a);
  12388. b.M.Re.call(this)
  12389. };
  12390. b.M.n.prototype = Object.create(b.B.n.prototype);
  12391. b.RC(b.M.Re.prototype, b.M.n.prototype);
  12392. var a = b.M.n.prototype;
  12393. a.constructor = b.M.n;
  12394. a.updateStatus = function() {
  12395. var a = b.e.V,
  12396. e = this.G,
  12397. f = e & a.Ka,
  12398. g = e & a.Ha;
  12399. f && this.Ae();
  12400. g && this.ci();
  12401. f ? this.xb() : e & a.Vn && this.uk();
  12402. this.G & a.la && (this.transform(P(this), !0), this.G ^= this.G & b.e.V.la)
  12403. };
  12404. a.cd = function(a) {
  12405. var e = b.e.V,
  12406. f = this.G,
  12407. g = a ? a.k : null;
  12408. g && g.Zc && a.G & e.Ka && (f |= e.Ka);
  12409. g && g.$c && a.G & e.Ha && (f |= e.Ha);
  12410. a && a.G & e.la &&
  12411. (f |= e.la);
  12412. var g = f & e.Ka,
  12413. h = f & e.Ha;
  12414. this.G = f;
  12415. g && ja(this);
  12416. h && ia(this);
  12417. g ? this.xb() : f & e.Vn && this.uk();
  12418. f & e.la && this.transform(a)
  12419. };
  12420. a.aj = function() {
  12421. var a = this.Vb,
  12422. e = this.k,
  12423. f = e.mp || this.Vb,
  12424. g = e.pp,
  12425. h = e.Xr,
  12426. k = a.r / 255,
  12427. m = a.g / 255,
  12428. a = a.b / 255;
  12429. this.TI = "rgba(" + (0 | k * f.r) + "," + (0 | m * f.g) + "," + (0 | a * f.b) + "," + e.Ml + ")";
  12430. this.OG = "rgba(" + (0 | k * h.r) + "," + (0 | m * h.g) + "," + (0 | a * h.b) + ", 1)";
  12431. this.$I = "rgba(" + (0 | k * g.r) + "," + (0 | m * g.g) + "," + (0 | a * g.b) + ", 1)"
  12432. };
  12433. a.xb = function() {
  12434. this.aj();
  12435. this.uk()
  12436. }
  12437. })();
  12438. (function() {
  12439. b.M.p = function(a) {
  12440. b.B.p.call(this, a);
  12441. b.M.Re.call(this);
  12442. this.pm(b.le.Dc(b.M.x2))
  12443. };
  12444. var a = b.M.p.prototype = Object.create(b.B.p.prototype);
  12445. b.RC(b.M.Re.prototype, a);
  12446. a.constructor = b.M.p;
  12447. a.aj = function() {
  12448. this.va(b.e.V.Vn);
  12449. var a = this.k,
  12450. e = a.pp,
  12451. f = a.Xr,
  12452. g = a.mp || this.Vb;
  12453. this.TI = "rgba(" + (0 | g.r) + "," + (0 | g.g) + "," + (0 | g.b) + "," + a.Ml + ")";
  12454. this.OG = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + ", 1)";
  12455. this.$I = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + ", 1)"
  12456. };
  12457. a.updateStatus = function() {
  12458. var a = b.e.V,
  12459. e = this.G,
  12460. f = e & a.Ka,
  12461. g = e & a.Ha;
  12462. f && this.Ae();
  12463. g && this.ci();
  12464. f || g ? (this.aj(), this.xb(), this.uk()) : e & a.Vn && this.uk();
  12465. this.G & a.la && (this.transform(P(this), !0), this.G ^= this.G & b.e.V.la)
  12466. };
  12467. a.cd = function(a) {
  12468. var e = b.e.V,
  12469. f = this.G,
  12470. g = a ? a.k : null;
  12471. g && g.Zc && a.G & e.Ka && (f |= e.Ka);
  12472. g && g.$c && a.G & e.Ha && (f |= e.Ha);
  12473. a && a.G & e.la && (f |= e.la);
  12474. var g = f & e.Ka,
  12475. h = f & e.Ha;
  12476. this.G = f;
  12477. g && ja(this);
  12478. h && ia(this);
  12479. g || h ? (this.aj(), this.xb(), this.uk()) : f & e.Vn && this.uk();
  12480. this.transform(a)
  12481. }
  12482. })();
  12483. b.f_ = b.sa.extend({
  12484. Nc: null,
  12485. target: null,
  12486. Bp: 0,
  12487. ng: null,
  12488. Hp: !1,
  12489. paused: !1,
  12490. HC: null,
  12491. ctor: function() {
  12492. this.Nc = [];
  12493. this.target = null;
  12494. this.Bp = 0;
  12495. this.ng = null;
  12496. this.paused = this.Hp = !1;
  12497. this.HC = null
  12498. }
  12499. });
  12500. b.zM = b.sa.extend({
  12501. Si: null,
  12502. Lq: null,
  12503. Ed: null,
  12504. ak: !1,
  12505. yja: function(a, d) {
  12506. for (var e = 0; e < a.length; e++)
  12507. if (d === a[e].target) return a[e];
  12508. return null
  12509. },
  12510. ctor: function() {
  12511. this.Si = {};
  12512. this.Lq = [];
  12513. this.Ed = null;
  12514. this.ak = !1
  12515. },
  12516. N6: function(a, d, e) {
  12517. if (!a) throw "cc.ActionManager.addAction(): action must be non-null";
  12518. if (!d) throw "cc.ActionManager.addAction(): action must be non-null";
  12519. var f = this.Si[d.ba];
  12520. f || (f = new b.f_, f.paused = e, f.target = d, this.Si[d.ba] = f, this.Lq.push(f));
  12521. this.D2(f);
  12522. f.Nc.push(a);
  12523. a.N(d)
  12524. },
  12525. xsa: function() {
  12526. for (var a = this.Lq,
  12527. d = 0; d < a.length; d++) {
  12528. var e = a[d];
  12529. e && this.RW(e.target, !0)
  12530. }
  12531. },
  12532. RW: function(a, d) {
  12533. if (null != a) {
  12534. var e = this.Si[a.ba];
  12535. e && (-1 === e.Nc.indexOf(e.ng) || e.Hp || (e.Hp = !0), e.Nc.length = 0, this.Ed !== e || d ? this.BG(e) : this.ak = !0)
  12536. }
  12537. },
  12538. QW: function(a) {
  12539. if (null != a) {
  12540. var d = this.Si[a.originalTarget.ba];
  12541. if (d)
  12542. for (var e = 0; e < d.Nc.length; e++) {
  12543. if (d.Nc[e] === a) {
  12544. d.Nc.splice(e, 1);
  12545. break
  12546. }
  12547. } else b.log(b.o.TY)
  12548. }
  12549. },
  12550. pca: function(a, d) {
  12551. a === b.kq && b.log(b.o.AM);
  12552. b.assert(d, b.o.AM);
  12553. var e = this.Si[d.ba];
  12554. if (e)
  12555. for (var f = e.Nc.length, g = 0; g < f; ++g) {
  12556. var h = e.Nc[g];
  12557. if (h &&
  12558. h.yC() === a && h.originalTarget === d) {
  12559. this.y5(g, e);
  12560. break
  12561. }
  12562. }
  12563. },
  12564. lC: function(a, d) {
  12565. a === b.kq && b.log(b.o.RY);
  12566. var e = this.Si[d.ba];
  12567. if (e) {
  12568. if (null != e.Nc)
  12569. for (var f = 0; f < e.Nc.length; ++f) {
  12570. var g = e.Nc[f];
  12571. if (g && g.yC() === a) return g
  12572. }
  12573. b.log(b.o.SY, a)
  12574. }
  12575. return null
  12576. },
  12577. Hba: function(a) {
  12578. return (a = this.Si[a.ba]) ? a.Nc ? a.Nc.length : 0 : 0
  12579. },
  12580. gt: function(a) {
  12581. if (a = this.Si[a.ba]) a.paused = !0
  12582. },
  12583. nm: function(a) {
  12584. if (a = this.Si[a.ba]) a.paused = !1
  12585. },
  12586. Sra: function() {
  12587. for (var a = [], d = this.Lq, e = 0; e < d.length; e++) {
  12588. var f = d[e];
  12589. f && !f.paused && (f.paused = !0, a.push(f.target))
  12590. }
  12591. return a
  12592. },
  12593. Fca: function(a) {
  12594. if (a)
  12595. for (var d = 0; d < a.length; d++) a[d] && this.nm(a[d])
  12596. },
  12597. gsa: function() {
  12598. b.P.Jn().Hj(this)
  12599. },
  12600. y5: function(a, d) {
  12601. d.Nc[a] !== d.ng || d.Hp || (d.Hp = !0);
  12602. d.Nc.splice(a, 1);
  12603. d.Bp >= a && d.Bp--;
  12604. 0 === d.Nc.length && (this.Ed === d ? this.ak = !0 : this.BG(d))
  12605. },
  12606. BG: function(a) {
  12607. a && (delete this.Si[a.target.ba], b.ge(this.Lq, a), a.Nc = null, a.target = null)
  12608. },
  12609. D2: function(a) {
  12610. null == a.Nc && (a.Nc = [])
  12611. },
  12612. update: function(a) {
  12613. for (var d = this.Lq, e, f = 0; f < d.length; f++) {
  12614. e = this.Ed = d[f];
  12615. if (!e.paused)
  12616. for (e.Bp = 0; e.Bp < (e.Nc ? e.Nc.length : 0); e.Bp++)
  12617. if (e.ng =
  12618. e.Nc[e.Bp], e.ng) {
  12619. e.Hp = !1;
  12620. e.ng.step(a * (e.ng.Sv ? e.ng.mf : 1));
  12621. if (e.Hp) e.ng = null;
  12622. else if (e.ng.mi()) {
  12623. e.ng.stop();
  12624. var g = e.ng;
  12625. e.ng = null;
  12626. this.QW(g)
  12627. }
  12628. e.ng = null
  12629. }
  12630. this.ak && 0 === e.Nc.length && this.BG(e)
  12631. }
  12632. }
  12633. });
  12634. b.j = b.j || {};
  12635. b.j.Ud = 0.015625;
  12636. b.j.kd = function(a) {
  12637. return a * a
  12638. };
  12639. b.j.gka = function(a, d) {
  12640. return a + b.j.Ud > d && a - b.j.Ud < d
  12641. };
  12642. (function(a) {
  12643. a.j.Eq = function(a, d) {
  12644. void 0 === d ? (this.x = a.x, this.y = a.y) : (this.x = a || 0, this.y = d || 0)
  12645. };
  12646. var d = a.j.Eq.prototype;
  12647. d.fill = function(a, d) {
  12648. this.x = a;
  12649. this.y = d
  12650. };
  12651. d.length = function() {
  12652. return Math.sqrt(a.j.kd(this.x) + a.j.kd(this.y))
  12653. };
  12654. d.Zs = function() {
  12655. return a.j.kd(this.x) + a.j.kd(this.y)
  12656. };
  12657. d.normalize = function() {
  12658. var a = 1 / this.length();
  12659. this.x *= a;
  12660. this.y *= a;
  12661. return this
  12662. };
  12663. a.j.Eq.add = function(a, d, g) {
  12664. a.x = d.x + g.x;
  12665. a.y = d.y + g.y;
  12666. return a
  12667. };
  12668. d.add = function(a) {
  12669. this.x += a.x;
  12670. this.y += a.y;
  12671. return this
  12672. };
  12673. d.Gn = function(a) {
  12674. return this.x *
  12675. a.x + this.y * a.y
  12676. };
  12677. a.j.Eq.gq = function(a, d, g) {
  12678. a.x = d.x - g.x;
  12679. a.y = d.y - g.y;
  12680. return a
  12681. };
  12682. d.gq = function(a) {
  12683. this.x -= a.x;
  12684. this.y -= a.y;
  12685. return this
  12686. };
  12687. d.transform = function(a) {
  12688. var d = this.x,
  12689. g = this.y;
  12690. this.x = d * a.s[0] + g * a.s[3] + a.s[6];
  12691. this.y = d * a.s[1] + g * a.s[4] + a.s[7];
  12692. return this
  12693. };
  12694. a.j.Eq.scale = function(a, d, g) {
  12695. a.x = d.x * g;
  12696. a.y = d.y * g;
  12697. return a
  12698. };
  12699. d.scale = function(a) {
  12700. this.x *= a;
  12701. this.y *= a;
  12702. return this
  12703. };
  12704. d.jC = function(d) {
  12705. return this.x < d.x + a.j.Ud && this.x > d.x - a.j.Ud && this.y < d.y + a.j.Ud && this.y > d.y - a.j.Ud
  12706. }
  12707. })(b);
  12708. (function(a) {
  12709. a.Dqa = a.j.Pa = function(a, d, g) {
  12710. a && void 0 === d ? (this.x = a.x, this.y = a.y, this.z = a.z) : (this.x = a || 0, this.y = d || 0, this.z = g || 0)
  12711. };
  12712. a.j.Iwa = function(d, f, g) {
  12713. return new a.j.Pa(d, f, g)
  12714. };
  12715. var d = a.j.Pa.prototype;
  12716. d.fill = function(a, d, g) {
  12717. a && void 0 === d ? (this.x = a.x, this.y = a.y, this.z = a.z) : (this.x = a, this.y = d, this.z = g);
  12718. return this
  12719. };
  12720. d.length = function() {
  12721. return Math.sqrt(a.j.kd(this.x) + a.j.kd(this.y) + a.j.kd(this.z))
  12722. };
  12723. d.Zs = function() {
  12724. return a.j.kd(this.x) + a.j.kd(this.y) + a.j.kd(this.z)
  12725. };
  12726. d.normalize = function() {
  12727. var a = 1 /
  12728. this.length();
  12729. this.x *= a;
  12730. this.y *= a;
  12731. this.z *= a;
  12732. return this
  12733. };
  12734. d.Ek = function(a) {
  12735. var d = this.x,
  12736. g = this.y,
  12737. h = this.z;
  12738. this.x = g * a.z - h * a.y;
  12739. this.y = h * a.x - d * a.z;
  12740. this.z = d * a.y - g * a.x
  12741. };
  12742. d.Gn = function(a) {
  12743. return this.x * a.x + this.y * a.y + this.z * a.z
  12744. };
  12745. d.add = function(a) {
  12746. this.x += a.x;
  12747. this.y += a.y;
  12748. this.z += a.z;
  12749. return this
  12750. };
  12751. d.gq = function(a) {
  12752. this.x -= a.x;
  12753. this.y -= a.y;
  12754. this.z -= a.z;
  12755. return this
  12756. };
  12757. d.transform = function(a) {
  12758. var d = this.x,
  12759. g = this.y,
  12760. h = this.z;
  12761. a = a.s;
  12762. this.x = d * a[0] + g * a[4] + h * a[8] + a[12];
  12763. this.y = d * a[1] + g * a[5] + h * a[9] + a[13];
  12764. this.z = d * a[2] + g * a[6] +
  12765. h * a[10] + a[14];
  12766. return this
  12767. };
  12768. d.pwa = function(a) {
  12769. var d = this.x,
  12770. g = this.y,
  12771. h = this.z;
  12772. a = a.s;
  12773. this.x = d * a[0] + g * a[4] + h * a[8];
  12774. this.y = d * a[1] + g * a[5] + h * a[9];
  12775. this.z = d * a[2] + g * a[6] + h * a[10];
  12776. return this
  12777. };
  12778. d.vY = function(d) {
  12779. var f = new a.j.Eu(this.x, this.y, this.z, 1);
  12780. f.transform(d);
  12781. this.x = f.x / f.S;
  12782. this.y = f.y / f.S;
  12783. this.z = f.z / f.S
  12784. };
  12785. d.scale = function(a) {
  12786. this.x *= a;
  12787. this.y *= a;
  12788. this.z *= a;
  12789. return this
  12790. };
  12791. d.jC = function(d) {
  12792. var f = a.j.Ud;
  12793. return this.x < d.x + f && this.x > d.x - f && this.y < d.y + f && this.y > d.y - f && this.z < d.z + f && this.z > d.z - f
  12794. };
  12795. d.Fpa = function(d) {
  12796. d =
  12797. d.s;
  12798. var f = new a.j.Pa(this.x - d[12], this.y - d[13], this.z - d[14]);
  12799. this.x = f.x * d[0] + f.y * d[1] + f.z * d[2];
  12800. this.y = f.x * d[4] + f.y * d[5] + f.z * d[6];
  12801. this.z = f.x * d[8] + f.y * d[9] + f.z * d[10];
  12802. return this
  12803. };
  12804. d.Gpa = function(a) {
  12805. var d = this.x,
  12806. g = this.y,
  12807. h = this.z;
  12808. a = a.s;
  12809. this.x = d * a[0] + g * a[1] + h * a[2];
  12810. this.y = d * a[4] + g * a[5] + h * a[6];
  12811. this.z = d * a[8] + g * a[9] + h * a[10];
  12812. return this
  12813. };
  12814. d.Ze = function(a) {
  12815. if (!a) return this;
  12816. this.x = a.x;
  12817. this.y = a.y;
  12818. this.z = a.z;
  12819. return this
  12820. };
  12821. a.j.Pa.Rwa = function(a) {
  12822. a.x = a.y = a.z = 0;
  12823. return a
  12824. };
  12825. d.bfa = function() {
  12826. var a = new Float32Array(3);
  12827. a[0] = this.x;
  12828. a[1] = this.y;
  12829. a[2] = this.z;
  12830. return a
  12831. }
  12832. })(b);
  12833. (function(a) {
  12834. a.j.Eu = function(a, d, g, h) {
  12835. a && void 0 === d ? (this.x = a.x, this.y = a.y, this.z = a.z, this.S = a.S) : (this.x = a || 0, this.y = d || 0, this.z = g || 0, this.S = h || 0)
  12836. };
  12837. a.Eqa = a.j.Eu;
  12838. var d = a.j.Eu.prototype;
  12839. d.fill = function(a, d, g, h) {
  12840. a && void 0 === d ? (this.x = a.x, this.y = a.y, this.z = a.z, this.S = a.S) : (this.x = a, this.y = d, this.z = g, this.S = h)
  12841. };
  12842. d.add = function(a) {
  12843. if (!a) return this;
  12844. this.x += a.x;
  12845. this.y += a.y;
  12846. this.z += a.z;
  12847. this.S += a.S;
  12848. return this
  12849. };
  12850. d.Gn = function(a) {
  12851. return this.x * a.x + this.y * a.y + this.z * a.z + this.S * a.S
  12852. };
  12853. d.length = function() {
  12854. return Math.sqrt(a.j.kd(this.x) +
  12855. a.j.kd(this.y) + a.j.kd(this.z) + a.j.kd(this.S))
  12856. };
  12857. d.Zs = function() {
  12858. return a.j.kd(this.x) + a.j.kd(this.y) + a.j.kd(this.z) + a.j.kd(this.S)
  12859. };
  12860. d.wba = function() {
  12861. return this
  12862. };
  12863. d.normalize = function() {
  12864. var a = 1 / this.length();
  12865. this.x *= a;
  12866. this.y *= a;
  12867. this.z *= a;
  12868. this.S *= a;
  12869. return this
  12870. };
  12871. d.scale = function(a) {
  12872. this.normalize();
  12873. this.x *= a;
  12874. this.y *= a;
  12875. this.z *= a;
  12876. this.S *= a;
  12877. return this
  12878. };
  12879. d.gq = function(a) {
  12880. this.x -= a.x;
  12881. this.y -= a.y;
  12882. this.z -= a.z;
  12883. this.S -= a.S
  12884. };
  12885. d.transform = function(a) {
  12886. var d = this.x,
  12887. g = this.y,
  12888. h = this.z,
  12889. k = this.S;
  12890. a = a.s;
  12891. this.x = d * a[0] + g *
  12892. a[4] + h * a[8] + k * a[12];
  12893. this.y = d * a[1] + g * a[5] + h * a[9] + k * a[13];
  12894. this.z = d * a[2] + g * a[6] + h * a[10] + k * a[14];
  12895. this.S = d * a[3] + g * a[7] + h * a[11] + k * a[15];
  12896. return this
  12897. };
  12898. a.j.Eu.owa = function(d, f) {
  12899. for (var g = [], h = 0; h < d.length; h++) {
  12900. var k = new a.j.Eu(d[h]);
  12901. k.transform(f);
  12902. g.push(k)
  12903. }
  12904. return g
  12905. };
  12906. d.jC = function(d) {
  12907. var f = a.j.Ud;
  12908. return this.x < d.x + f && this.x > d.x - f && this.y < d.y + f && this.y > d.y - f && this.z < d.z + f && this.z > d.z - f && this.S < d.S + f && this.S > d.S - f
  12909. };
  12910. d.Ze = function(a) {
  12911. this.x = a.x;
  12912. this.y = a.y;
  12913. this.z = a.z;
  12914. this.S = a.S;
  12915. return this
  12916. };
  12917. d.bfa = function() {
  12918. var a =
  12919. new Float32Array(4);
  12920. a[0] = this.x;
  12921. a[1] = this.y;
  12922. a[2] = this.z;
  12923. a[3] = this.S;
  12924. return a
  12925. }
  12926. })(b);
  12927. (function(a) {
  12928. a.j.s0 = function(d, e) {
  12929. this.start = d || new a.j.Eq;
  12930. this.dir = e || new a.j.Eq
  12931. };
  12932. a.j.s0.prototype.fill = function(a, e, f, g) {
  12933. this.start.x = a;
  12934. this.start.y = e;
  12935. this.dir.x = f;
  12936. this.dir.y = g
  12937. }
  12938. })(b);
  12939. var Float32Array = Float32Array || Array;
  12940. (function(a) {
  12941. a.j.Cd = function(a) {
  12942. this.s = a && a.s ? new Float32Array(a.s) : new Float32Array(9)
  12943. };
  12944. a.rqa = a.j.Cd;
  12945. var d = a.j.Cd.prototype;
  12946. d.fill = function(a) {
  12947. var d = this.s;
  12948. a = a.s;
  12949. d[0] = a[0];
  12950. d[1] = a[1];
  12951. d[2] = a[2];
  12952. d[3] = a[3];
  12953. d[4] = a[4];
  12954. d[5] = a[5];
  12955. d[6] = a[6];
  12956. d[7] = a[7];
  12957. d[8] = a[8];
  12958. return this
  12959. };
  12960. d.Q6 = function() {
  12961. var a = this.s,
  12962. d = a[0],
  12963. e = a[1],
  12964. k = a[2],
  12965. m = a[3],
  12966. n = a[4],
  12967. p = a[5],
  12968. s = a[6],
  12969. t = a[7],
  12970. v = a[8];
  12971. a[0] = n * v - p * t;
  12972. a[1] = k * t - e * v;
  12973. a[2] = e * p - k * n;
  12974. a[3] = p * s - m * v;
  12975. a[4] = d * v - k * s;
  12976. a[5] = k * m - d * p;
  12977. a[6] = m * t - n * s;
  12978. a[8] = d * n - e * m
  12979. };
  12980. d.ie = function() {
  12981. var a = this.s;
  12982. a[1] = a[2] =
  12983. a[3] = a[5] = a[6] = a[7] = 0;
  12984. a[0] = a[4] = a[8] = 1;
  12985. return this
  12986. };
  12987. var e = new a.j.Cd;
  12988. d.inverse = function(a) {
  12989. if (0 === a) return this;
  12990. e.Ze(this);
  12991. a = 1 / a;
  12992. this.Q6();
  12993. this.Eba(a);
  12994. return this
  12995. };
  12996. d.gW = function() {
  12997. var a = this.s;
  12998. return 1 === a[0] && 0 === a[1] && 0 === a[2] && 0 === a[3] && 1 === a[4] && 0 === a[5] && 0 === a[6] && 0 === a[7] && 1 === a[8]
  12999. };
  13000. d.ffa = function() {
  13001. var a = this.s,
  13002. d = a[1],
  13003. e = a[2],
  13004. k = a[5],
  13005. m = a[6],
  13006. n = a[7];
  13007. a[1] = a[3];
  13008. a[2] = m;
  13009. a[3] = d;
  13010. a[5] = n;
  13011. a[6] = e;
  13012. a[7] = k;
  13013. return this
  13014. };
  13015. d.Wka = function() {
  13016. var a = this.s,
  13017. d = a[0] * a[4] * a[8] + a[1] * a[5] * a[6] + a[2] * a[3] * a[7];
  13018. return d -= a[2] *
  13019. a[4] * a[6] + a[0] * a[5] * a[7] + a[1] * a[3] * a[8]
  13020. };
  13021. d.multiply = function(a) {
  13022. var d = this.s,
  13023. e = a.s;
  13024. a = d[0];
  13025. var k = d[1],
  13026. m = d[2],
  13027. n = d[3],
  13028. p = d[4],
  13029. s = d[5],
  13030. t = d[6],
  13031. v = d[7],
  13032. w = d[8],
  13033. x = e[0],
  13034. u = e[1],
  13035. y = e[2],
  13036. C = e[3],
  13037. F = e[4],
  13038. G = e[5],
  13039. D = e[6],
  13040. A = e[7],
  13041. e = e[8];
  13042. d[0] = a * x + n * u + t * y;
  13043. d[1] = k * x + p * u + v * y;
  13044. d[2] = m * x + s * u + w * y;
  13045. d[3] = m * x + s * u + w * y;
  13046. d[4] = k * C + p * F + v * G;
  13047. d[5] = m * C + s * F + w * G;
  13048. d[6] = a * D + n * A + t * e;
  13049. d[7] = k * D + p * A + v * e;
  13050. d[8] = m * D + s * A + w * e;
  13051. return this
  13052. };
  13053. d.Eba = function(a) {
  13054. var d = this.s;
  13055. d[0] *= a;
  13056. d[1] *= a;
  13057. d[2] *= a;
  13058. d[3] *= a;
  13059. d[4] *= a;
  13060. d[5] *= a;
  13061. d[6] *= a;
  13062. d[7] *= a;
  13063. d[8] *= a
  13064. };
  13065. a.j.Cd.$sa = function(d,
  13066. e) {
  13067. var h = Math.cos(e),
  13068. k = Math.sin(e),
  13069. m = new a.j.Cd,
  13070. n = m.s;
  13071. n[0] = h + d.x * d.x * (1 - h);
  13072. n[1] = d.z * k + d.y * d.x * (1 - h);
  13073. n[2] = -d.y * k + d.z * d.x * (1 - h);
  13074. n[3] = -d.z * k + d.x * d.y * (1 - h);
  13075. n[4] = h + d.y * d.y * (1 - h);
  13076. n[5] = d.x * k + d.z * d.y * (1 - h);
  13077. n[6] = d.y * k + d.x * d.z * (1 - h);
  13078. n[7] = -d.x * k + d.y * d.z * (1 - h);
  13079. n[8] = h + d.z * d.z * (1 - h);
  13080. return m
  13081. };
  13082. d.Ze = function(d) {
  13083. if (this === d) return a.log("cc.math.Matrix3.assign(): current matrix equals matIn"), this;
  13084. var e = this.s;
  13085. d = d.s;
  13086. e[0] = d[0];
  13087. e[1] = d[1];
  13088. e[2] = d[2];
  13089. e[3] = d[3];
  13090. e[4] = d[4];
  13091. e[5] = d[5];
  13092. e[6] = d[6];
  13093. e[7] = d[7];
  13094. e[8] = d[8];
  13095. return this
  13096. };
  13097. d.jC = function(d) {
  13098. if (this === d) return !0;
  13099. var e = a.j.Ud,
  13100. h = this.s;
  13101. d = d.s;
  13102. for (var k = 0; 9 > k; ++k)
  13103. if (!(h[k] + e > d[k] && h[k] - e < d[k])) return !1;
  13104. return !0
  13105. };
  13106. a.j.Cd.T7 = function(d) {
  13107. var e = new a.j.Cd,
  13108. h = e.s;
  13109. h[0] = 1;
  13110. h[1] = 0;
  13111. h[2] = 0;
  13112. h[3] = 0;
  13113. h[4] = Math.cos(d);
  13114. h[5] = Math.sin(d);
  13115. h[6] = 0;
  13116. h[7] = -Math.sin(d);
  13117. h[8] = Math.cos(d);
  13118. return e
  13119. };
  13120. a.j.Cd.U7 = function(d) {
  13121. var e = new a.j.Cd,
  13122. h = e.s;
  13123. h[0] = Math.cos(d);
  13124. h[1] = 0;
  13125. h[2] = -Math.sin(d);
  13126. h[3] = 0;
  13127. h[4] = 1;
  13128. h[5] = 0;
  13129. h[6] = Math.sin(d);
  13130. h[7] = 0;
  13131. h[8] = Math.cos(d);
  13132. return e
  13133. };
  13134. a.j.Cd.V7 = function(d) {
  13135. var e = new a.j.Cd,
  13136. h = e.s;
  13137. h[0] =
  13138. Math.cos(d);
  13139. h[1] = -Math.sin(d);
  13140. h[2] = 0;
  13141. h[3] = Math.sin(d);
  13142. h[4] = Math.cos(d);
  13143. h[5] = 0;
  13144. h[6] = 0;
  13145. h[7] = 0;
  13146. h[8] = 1;
  13147. return e
  13148. };
  13149. a.j.Cd.Jka = function(d) {
  13150. var e = new a.j.Cd,
  13151. h = e.s;
  13152. h[0] = Math.cos(d);
  13153. h[1] = Math.sin(d);
  13154. h[2] = 0;
  13155. h[3] = -Math.sin(d);
  13156. h[4] = Math.cos(d);
  13157. h[5] = 0;
  13158. h[6] = 0;
  13159. h[7] = 0;
  13160. h[8] = 1;
  13161. return e
  13162. };
  13163. a.j.Cd.uU = function(d, e) {
  13164. var h = new a.j.Cd;
  13165. h.ie();
  13166. h.s[0] = d;
  13167. h.s[4] = e;
  13168. return h
  13169. };
  13170. a.j.Cd.Fn = function(d, e) {
  13171. var h = new a.j.Cd;
  13172. h.ie();
  13173. h.s[6] = d;
  13174. h.s[7] = e;
  13175. return h
  13176. };
  13177. a.j.Cd.S7 = function(d) {
  13178. if (!d) return null;
  13179. var e = new a.j.Cd,
  13180. h = e.s;
  13181. h[0] = 1 - 2 * (d.y * d.y +
  13182. d.z * d.z);
  13183. h[1] = 2 * (d.x * d.y - d.S * d.z);
  13184. h[2] = 2 * (d.x * d.z + d.S * d.y);
  13185. h[3] = 2 * (d.x * d.y + d.S * d.z);
  13186. h[4] = 1 - 2 * (d.x * d.x + d.z * d.z);
  13187. h[5] = 2 * (d.y * d.z - d.S * d.x);
  13188. h[6] = 2 * (d.x * d.z - d.S * d.y);
  13189. h[7] = 2 * (d.y * d.z + d.S * d.x);
  13190. h[8] = 1 - 2 * (d.x * d.x + d.y * d.y);
  13191. return e
  13192. };
  13193. d.bta = function() {
  13194. return a.j.Ii.bX(this).mM()
  13195. }
  13196. })(b);
  13197. (function(a) {
  13198. a.j.ca = function(a) {
  13199. this.s = a && a.s ? new Float32Array(a.s) : new Float32Array(16)
  13200. };
  13201. a.sqa = a.j.ca;
  13202. var d = a.j.ca.prototype;
  13203. d.fill = function(a) {
  13204. for (var d = this.s, e = 0; 16 > e; e++) d[e] = a[e];
  13205. return this
  13206. };
  13207. a.uqa = function(a) {
  13208. var d = a.s;
  13209. d[1] = d[2] = d[3] = d[4] = d[6] = d[7] = d[8] = d[9] = d[11] = d[12] = d[13] = d[14] = 0;
  13210. d[0] = d[5] = d[10] = d[15] = 1;
  13211. return a
  13212. };
  13213. d.ie = function() {
  13214. var a = this.s;
  13215. a[1] = a[2] = a[3] = a[4] = a[6] = a[7] = a[8] = a[9] = a[11] = a[12] = a[13] = a[14] = 0;
  13216. a[0] = a[5] = a[10] = a[15] = 1;
  13217. return this
  13218. };
  13219. d.get = function(a, d) {
  13220. return this.s[a + 4 * d]
  13221. };
  13222. d.set =
  13223. function(a, d, e) {
  13224. this.s[a + 4 * d] = e
  13225. };
  13226. d.Dt = function(a, d, e, f) {
  13227. var n = this.s,
  13228. p = n[a + 4 * d];
  13229. n[a + 4 * d] = n[e + 4 * f];
  13230. n[e + 4 * f] = p
  13231. };
  13232. a.j.ca.TQ = function(a, d) {
  13233. var e, f = 0,
  13234. n = 0,
  13235. p, s, t, v, w = [0, 0, 0, 0],
  13236. x = [0, 0, 0, 0],
  13237. u = [0, 0, 0, 0];
  13238. for (e = 0; 4 > e; e++) {
  13239. for (p = v = 0; 4 > p; p++)
  13240. if (1 !== u[p])
  13241. for (s = 0; 4 > s; s++) 0 === u[s] && (t = Math.abs(a.get(p, s)), t >= v && (v = t, n = p, f = s));++u[f];
  13242. if (n !== f) {
  13243. for (p = 0; 4 > p; p++) a.Dt(n, p, f, p);
  13244. for (p = 0; 4 > p; p++) d.Dt(n, p, f, p)
  13245. }
  13246. x[e] = n;
  13247. w[e] = f;
  13248. if (0 === a.get(f, f)) return !1;
  13249. s = 1 / a.get(f, f);
  13250. a.set(f, f, 1);
  13251. for (p = 0; 4 > p; p++) a.set(f, p, a.get(f, p) * s);
  13252. for (p =
  13253. 0; 4 > p; p++) d.set(f, p, d.get(f, p) * s);
  13254. for (s = 0; 4 > s; s++)
  13255. if (s !== f) {
  13256. t = a.get(s, f);
  13257. a.set(s, f, 0);
  13258. for (p = 0; 4 > p; p++) a.set(s, p, a.get(s, p) - a.get(f, p) * t);
  13259. for (p = 0; 4 > p; p++) d.set(s, p, a.get(s, p) - d.get(f, p) * t)
  13260. }
  13261. }
  13262. for (p = 3; 0 <= p; p--)
  13263. if (x[p] !== w[p])
  13264. for (s = 0; 4 > s; s++) a.Dt(s, x[p], s, w[p]);
  13265. return !0
  13266. };
  13267. var e = (new a.j.ca).ie();
  13268. a.vqa = function(d, f) {
  13269. var k = new a.j.ca(f);
  13270. if (!1 === a.j.ca.TQ(k, e)) return null;
  13271. d.Ze(k);
  13272. return d
  13273. };
  13274. d.inverse = function() {
  13275. var d = new a.j.ca(this);
  13276. return !1 === a.j.ca.TQ(d, e) ? null : d
  13277. };
  13278. d.gW = function() {
  13279. var a = this.s;
  13280. return 1 ===
  13281. a[0] && 0 === a[1] && 0 === a[2] && 0 === a[3] && 0 === a[4] && 1 === a[5] && 0 === a[6] && 0 === a[7] && 0 === a[8] && 0 === a[9] && 1 === a[10] && 0 === a[11] && 0 === a[12] && 0 === a[13] && 0 === a[14] && 1 === a[15]
  13282. };
  13283. d.ffa = function() {
  13284. var a = this.s,
  13285. d = a[1],
  13286. e = a[2],
  13287. f = a[3],
  13288. n = a[6],
  13289. p = a[7],
  13290. s = a[8],
  13291. t = a[9],
  13292. v = a[11],
  13293. w = a[12],
  13294. x = a[13],
  13295. u = a[14];
  13296. a[1] = a[4];
  13297. a[2] = s;
  13298. a[3] = w;
  13299. a[4] = d;
  13300. a[6] = t;
  13301. a[7] = x;
  13302. a[8] = e;
  13303. a[9] = n;
  13304. a[11] = u;
  13305. a[12] = f;
  13306. a[13] = p;
  13307. a[14] = v;
  13308. return this
  13309. };
  13310. a.YC = function(a, d, e) {
  13311. a = a.s;
  13312. var f = d.s,
  13313. n = e.s;
  13314. e = f[0];
  13315. d = f[1];
  13316. var p = f[2],
  13317. s = f[3],
  13318. t = f[4],
  13319. v = f[5],
  13320. w = f[6],
  13321. x = f[7],
  13322. u = f[8],
  13323. y = f[9],
  13324. C = f[10],
  13325. F = f[11],
  13326. G = f[12],
  13327. D = f[13],
  13328. A = f[14],
  13329. f = f[15],
  13330. E = n[0],
  13331. z = n[1],
  13332. B = n[2],
  13333. I = n[3],
  13334. J = n[4],
  13335. H = n[5],
  13336. O = n[6],
  13337. S = n[7],
  13338. Q = n[8],
  13339. W = n[9],
  13340. K = n[10],
  13341. L = n[11],
  13342. U = n[12],
  13343. Y = n[13],
  13344. Z = n[14],
  13345. n = n[15];
  13346. a[0] = E * e + z * t + B * u + I * G;
  13347. a[1] = E * d + z * v + B * y + I * D;
  13348. a[2] = E * p + z * w + B * C + I * A;
  13349. a[3] = E * s + z * x + B * F + I * f;
  13350. a[4] = J * e + H * t + O * u + S * G;
  13351. a[5] = J * d + H * v + O * y + S * D;
  13352. a[6] = J * p + H * w + O * C + S * A;
  13353. a[7] = J * s + H * x + O * F + S * f;
  13354. a[8] = Q * e + W * t + K * u + L * G;
  13355. a[9] = Q * d + W * v + K * y + L * D;
  13356. a[10] = Q * p + W * w + K * C + L * A;
  13357. a[11] = Q * s + W * x + K * F + L * f;
  13358. a[12] = U * e + Y * t + Z * u + n * G;
  13359. a[13] = U * d + Y * v + Z * y + n * D;
  13360. a[14] = U * p + Y * w + Z * C + n * A;
  13361. a[15] = U * s + Y * x + Z * F + n * f
  13362. };
  13363. d.multiply = function(a) {
  13364. var d = this.s,
  13365. e = a.s;
  13366. a = d[0];
  13367. var f = d[1],
  13368. n = d[2],
  13369. p = d[3],
  13370. s = d[4],
  13371. t = d[5],
  13372. v = d[6],
  13373. w = d[7],
  13374. x = d[8],
  13375. u = d[9],
  13376. y = d[10],
  13377. C = d[11],
  13378. F = d[12],
  13379. G = d[13],
  13380. D = d[14],
  13381. A = d[15],
  13382. E = e[0],
  13383. z = e[1],
  13384. B = e[2],
  13385. I = e[3],
  13386. J = e[4],
  13387. H = e[5],
  13388. O = e[6],
  13389. S = e[7],
  13390. Q = e[8],
  13391. W = e[9],
  13392. K = e[10],
  13393. L = e[11],
  13394. U = e[12],
  13395. Y = e[13],
  13396. Z = e[14],
  13397. e = e[15];
  13398. d[0] = E * a + z * s + B * x + I * F;
  13399. d[1] = E * f + z * t + B * u + I * G;
  13400. d[2] = E * n + z * v + B * y + I * D;
  13401. d[3] = E * p + z * w + B * C + I * A;
  13402. d[4] = J * a + H * s + O * x + S * F;
  13403. d[5] = J * f + H * t + O * u + S * G;
  13404. d[6] = J * n + H * v + O * y + S * D;
  13405. d[7] = J * p + H * w + O * C + S * A;
  13406. d[8] = Q * a + W * s + K * x + L * F;
  13407. d[9] = Q * f + W * t + K * u + L * G;
  13408. d[10] = Q * n +
  13409. W * v + K * y + L * D;
  13410. d[11] = Q * p + W * w + K * C + L * A;
  13411. d[12] = U * a + Y * s + Z * x + e * F;
  13412. d[13] = U * f + Y * t + Z * u + e * G;
  13413. d[14] = U * n + Y * v + Z * y + e * D;
  13414. d[15] = U * p + Y * w + Z * C + e * A;
  13415. return this
  13416. };
  13417. a.T9 = function() {
  13418. var a = b.Aj.top.s,
  13419. d = b.vj.top.s,
  13420. e = new Float32Array(16);
  13421. e[0] = a[0] * d[0] + a[4] * d[1] + a[8] * d[2] + a[12] * d[3];
  13422. e[1] = a[1] * d[0] + a[5] * d[1] + a[9] * d[2] + a[13] * d[3];
  13423. e[2] = a[2] * d[0] + a[6] * d[1] + a[10] * d[2] + a[14] * d[3];
  13424. e[3] = a[3] * d[0] + a[7] * d[1] + a[11] * d[2] + a[15] * d[3];
  13425. e[4] = a[0] * d[4] + a[4] * d[5] + a[8] * d[6] + a[12] * d[7];
  13426. e[5] = a[1] * d[4] + a[5] * d[5] + a[9] * d[6] + a[13] * d[7];
  13427. e[6] = a[2] * d[4] + a[6] *
  13428. d[5] + a[10] * d[6] + a[14] * d[7];
  13429. e[7] = a[3] * d[4] + a[7] * d[5] + a[11] * d[6] + a[15] * d[7];
  13430. e[8] = a[0] * d[8] + a[4] * d[9] + a[8] * d[10] + a[12] * d[11];
  13431. e[9] = a[1] * d[8] + a[5] * d[9] + a[9] * d[10] + a[13] * d[11];
  13432. e[10] = a[2] * d[8] + a[6] * d[9] + a[10] * d[10] + a[14] * d[11];
  13433. e[11] = a[3] * d[8] + a[7] * d[9] + a[11] * d[10] + a[15] * d[11];
  13434. e[12] = a[0] * d[12] + a[4] * d[13] + a[8] * d[14] + a[12] * d[15];
  13435. e[13] = a[1] * d[12] + a[5] * d[13] + a[9] * d[14] + a[13] * d[15];
  13436. e[14] = a[2] * d[12] + a[6] * d[13] + a[10] * d[14] + a[14] * d[15];
  13437. e[15] = a[3] * d[12] + a[7] * d[13] + a[11] * d[14] + a[15] * d[15];
  13438. return e
  13439. };
  13440. a.tqa = function(d,
  13441. e) {
  13442. if (d === e) return a.log("cc.kmMat4Assign(): pOut equals pIn"), d;
  13443. var f = d.s,
  13444. m = e.s;
  13445. f[0] = m[0];
  13446. f[1] = m[1];
  13447. f[2] = m[2];
  13448. f[3] = m[3];
  13449. f[4] = m[4];
  13450. f[5] = m[5];
  13451. f[6] = m[6];
  13452. f[7] = m[7];
  13453. f[8] = m[8];
  13454. f[9] = m[9];
  13455. f[10] = m[10];
  13456. f[11] = m[11];
  13457. f[12] = m[12];
  13458. f[13] = m[13];
  13459. f[14] = m[14];
  13460. f[15] = m[15];
  13461. return d
  13462. };
  13463. d.Ze = function(d) {
  13464. if (this === d) return a.log("cc.mat.Matrix4.assignFrom(): mat4 equals current matrix"), this;
  13465. var e = this.s;
  13466. d = d.s;
  13467. e[0] = d[0];
  13468. e[1] = d[1];
  13469. e[2] = d[2];
  13470. e[3] = d[3];
  13471. e[4] = d[4];
  13472. e[5] = d[5];
  13473. e[6] = d[6];
  13474. e[7] = d[7];
  13475. e[8] = d[8];
  13476. e[9] = d[9];
  13477. e[10] = d[10];
  13478. e[11] =
  13479. d[11];
  13480. e[12] = d[12];
  13481. e[13] = d[13];
  13482. e[14] = d[14];
  13483. e[15] = d[15];
  13484. return this
  13485. };
  13486. d.jC = function(d) {
  13487. if (this === d) return a.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."), !0;
  13488. var e = this.s;
  13489. d = d.s;
  13490. for (var f = a.j.Ud, m = 0; 16 > m; m++)
  13491. if (!(e[m] + f > d[m] && e[m] - f < d[m])) return !1;
  13492. return !0
  13493. };
  13494. a.j.ca.T7 = function(d, e) {
  13495. e = e || new a.j.ca;
  13496. var f = e.s;
  13497. f[0] = 1;
  13498. f[3] = f[2] = f[1] = 0;
  13499. f[4] = 0;
  13500. f[5] = Math.cos(d);
  13501. f[6] = Math.sin(d);
  13502. f[7] = 0;
  13503. f[8] = 0;
  13504. f[9] = -Math.sin(d);
  13505. f[10] = Math.cos(d);
  13506. f[11] = 0;
  13507. f[14] = f[13] = f[12] = 0;
  13508. f[15] = 1;
  13509. return e
  13510. };
  13511. a.j.ca.U7 = function(d, e) {
  13512. e =
  13513. e || new a.j.ca;
  13514. var f = e.s;
  13515. f[0] = Math.cos(d);
  13516. f[1] = 0;
  13517. f[2] = -Math.sin(d);
  13518. f[3] = 0;
  13519. f[7] = f[6] = f[4] = 0;
  13520. f[5] = 1;
  13521. f[8] = Math.sin(d);
  13522. f[9] = 0;
  13523. f[10] = Math.cos(d);
  13524. f[11] = 0;
  13525. f[14] = f[13] = f[12] = 0;
  13526. f[15] = 1;
  13527. return e
  13528. };
  13529. a.j.ca.V7 = function(d, e) {
  13530. e = e || new a.j.ca;
  13531. var f = e.s;
  13532. f[0] = Math.cos(d);
  13533. f[1] = Math.sin(d);
  13534. f[3] = f[2] = 0;
  13535. f[4] = -Math.sin(d);
  13536. f[5] = Math.cos(d);
  13537. f[7] = f[6] = 0;
  13538. f[11] = f[9] = f[8] = 0;
  13539. f[10] = 1;
  13540. f[14] = f[13] = f[12] = 0;
  13541. f[15] = 1;
  13542. return e
  13543. };
  13544. a.j.ca.Ika = function(d, e, f, m) {
  13545. m = m || new a.j.ca;
  13546. var n = Math.cos(d);
  13547. d = Math.sin(d);
  13548. var p = Math.cos(e);
  13549. e = Math.sin(e);
  13550. var s = Math.cos(f);
  13551. f = Math.sin(f);
  13552. var t = d * e,
  13553. v = n * e,
  13554. w = m.s;
  13555. w[0] = p * s;
  13556. w[4] = p * f;
  13557. w[8] = -e;
  13558. w[1] = t * s - n * f;
  13559. w[5] = t * f + n * s;
  13560. w[9] = d * p;
  13561. w[2] = v * s + d * f;
  13562. w[6] = v * f - d * s;
  13563. w[10] = n * p;
  13564. w[3] = w[7] = w[11] = 0;
  13565. w[15] = 1;
  13566. return m
  13567. };
  13568. a.j.ca.S7 = function(d, e) {
  13569. e = e || new a.j.ca;
  13570. var f = e.s;
  13571. f[0] = 1 - 2 * (d.y * d.y + d.z * d.z);
  13572. f[1] = 2 * (d.x * d.y + d.z * d.S);
  13573. f[2] = 2 * (d.x * d.z - d.y * d.S);
  13574. f[3] = 0;
  13575. f[4] = 2 * (d.x * d.y - d.z * d.S);
  13576. f[5] = 1 - 2 * (d.x * d.x + d.z * d.z);
  13577. f[6] = 2 * (d.z * d.y + d.x * d.S);
  13578. f[7] = 0;
  13579. f[8] = 2 * (d.x * d.z + d.y * d.S);
  13580. f[9] = 2 * (d.y * d.z - d.x * d.S);
  13581. f[10] = 1 - 2 * (d.x * d.x + d.y * d.y);
  13582. f[11] = 0;
  13583. f[14] = f[13] =
  13584. f[12] = 0;
  13585. f[15] = 1;
  13586. return e
  13587. };
  13588. a.j.ca.Kka = function(d, e, f) {
  13589. f = f || new a.j.ca;
  13590. var m = f.s;
  13591. d = d.s;
  13592. m[0] = d[0];
  13593. m[1] = d[1];
  13594. m[2] = d[2];
  13595. m[3] = 0;
  13596. m[4] = d[3];
  13597. m[5] = d[4];
  13598. m[6] = d[5];
  13599. m[7] = 0;
  13600. m[8] = d[6];
  13601. m[9] = d[7];
  13602. m[10] = d[8];
  13603. m[11] = 0;
  13604. m[12] = e.x;
  13605. m[13] = e.y;
  13606. m[14] = e.z;
  13607. m[15] = 1;
  13608. return f
  13609. };
  13610. a.j.ca.uU = function(d, e, f, m) {
  13611. m = m || new a.j.ca;
  13612. var n = m.s;
  13613. n[0] = d;
  13614. n[5] = e;
  13615. n[10] = f;
  13616. n[15] = 1;
  13617. n[1] = n[2] = n[3] = n[4] = n[6] = n[7] = n[8] = n[9] = n[11] = n[12] = n[13] = n[14] = 0;
  13618. return m
  13619. };
  13620. a.Aqa = function(a, d, e, f) {
  13621. a.s[0] = a.s[5] = a.s[10] = a.s[15] = 1;
  13622. a.s[1] = a.s[2] = a.s[3] = a.s[4] = a.s[6] = a.s[7] =
  13623. a.s[8] = a.s[9] = a.s[11] = 0;
  13624. a.s[12] = d;
  13625. a.s[13] = e;
  13626. a.s[14] = f;
  13627. return a
  13628. };
  13629. a.j.ca.Fn = function(d, e, f, m) {
  13630. m = m || new a.j.ca;
  13631. m.ie();
  13632. m.s[12] = d;
  13633. m.s[13] = e;
  13634. m.s[14] = f;
  13635. return m
  13636. };
  13637. d.bpa = function() {
  13638. var d = this.s;
  13639. return (new a.j.Pa(d[4], d[5], d[6])).normalize()
  13640. };
  13641. d.poa = function() {
  13642. var d = this.s;
  13643. return (new a.j.Pa(d[0], d[1], d[2])).normalize()
  13644. };
  13645. d.ona = function() {
  13646. var d = this.s;
  13647. return (new a.j.Pa(d[8], d[9], d[10])).normalize()
  13648. };
  13649. a.yqa = function(d, e, f, m, n) {
  13650. var p = a.Md(e / 2);
  13651. e = n - m;
  13652. var s = Math.sin(p);
  13653. if (0 === e || 0 === s || 0 === f) return null;
  13654. p = Math.cos(p) /
  13655. s;
  13656. d.ie();
  13657. d.s[0] = p / f;
  13658. d.s[5] = p;
  13659. d.s[10] = -(n + m) / e;
  13660. d.s[11] = -1;
  13661. d.s[14] = -2 * m * n / e;
  13662. d.s[15] = 0;
  13663. return d
  13664. };
  13665. a.j.ca.W7 = function(d, e) {
  13666. var f = a.Md(30),
  13667. m = e - 0.1,
  13668. n = Math.sin(f);
  13669. if (0 === m || 0 === n || 0 === d) return null;
  13670. var f = Math.cos(f) / n,
  13671. n = new a.j.ca,
  13672. p = n.s;
  13673. n.ie();
  13674. p[0] = f / d;
  13675. p[5] = f;
  13676. p[10] = -(e + 0.1) / m;
  13677. p[11] = -1;
  13678. p[14] = -0.2 * e / m;
  13679. p[15] = 0;
  13680. return n
  13681. };
  13682. a.xqa = function(a, d, e, f, n, p, s) {
  13683. a.ie();
  13684. a.s[0] = 2 / (e - d);
  13685. a.s[5] = 2 / (n - f);
  13686. a.s[10] = -2 / (s - p);
  13687. a.s[12] = -((e + d) / (e - d));
  13688. a.s[13] = -((n + f) / (n - f));
  13689. a.s[14] = -((s + p) / (s - p));
  13690. return a
  13691. };
  13692. a.j.ca.dK = function(d, e, f, m,
  13693. n, p) {
  13694. var s = new a.j.ca,
  13695. t = s.s;
  13696. s.ie();
  13697. t[0] = 2 / (e - d);
  13698. t[5] = 2 / (m - f);
  13699. t[10] = -2 / (p - n);
  13700. t[12] = -((e + d) / (e - d));
  13701. t[13] = -((m + f) / (m - f));
  13702. t[14] = -((p + n) / (p - n));
  13703. return s
  13704. };
  13705. a.wqa = function(d, e, f, m) {
  13706. f = new a.j.Pa(f);
  13707. var n = new a.j.Pa(m);
  13708. f.gq(e);
  13709. f.normalize();
  13710. n.normalize();
  13711. m = new a.j.Pa(f);
  13712. m.Ek(n);
  13713. m.normalize();
  13714. n = new a.j.Pa(m);
  13715. n.Ek(f);
  13716. m.normalize();
  13717. d.ie();
  13718. d.s[0] = m.x;
  13719. d.s[4] = m.y;
  13720. d.s[8] = m.z;
  13721. d.s[1] = n.x;
  13722. d.s[5] = n.y;
  13723. d.s[9] = n.z;
  13724. d.s[2] = -f.x;
  13725. d.s[6] = -f.y;
  13726. d.s[10] = -f.z;
  13727. e = a.j.ca.Fn(-e.x, -e.y, -e.z);
  13728. d.multiply(e);
  13729. return d
  13730. };
  13731. var f = new a.j.ca;
  13732. d.sL =
  13733. function(d, e, k) {
  13734. e = new a.j.Pa(e);
  13735. var m = new a.j.Pa(k);
  13736. k = this.s;
  13737. e.gq(d);
  13738. e.normalize();
  13739. m.normalize();
  13740. var n = new a.j.Pa(e);
  13741. n.Ek(m);
  13742. n.normalize();
  13743. m = new a.j.Pa(n);
  13744. m.Ek(e);
  13745. n.normalize();
  13746. this.ie();
  13747. k[0] = n.x;
  13748. k[4] = n.y;
  13749. k[8] = n.z;
  13750. k[1] = m.x;
  13751. k[5] = m.y;
  13752. k[9] = m.z;
  13753. k[2] = -e.x;
  13754. k[6] = -e.y;
  13755. k[10] = -e.z;
  13756. f = a.j.ca.Fn(-d.x, -d.y, -d.z, f);
  13757. this.multiply(f)
  13758. };
  13759. a.zqa = function(d, e, f) {
  13760. var m = Math.cos(f);
  13761. f = Math.sin(f);
  13762. e = new a.j.Pa(e);
  13763. e.normalize();
  13764. d.s[0] = m + e.x * e.x * (1 - m);
  13765. d.s[1] = e.z * f + e.y * e.x * (1 - m);
  13766. d.s[2] = -e.y * f + e.z * e.x * (1 - m);
  13767. d.s[3] = 0;
  13768. d.s[4] = -e.z *
  13769. f + e.x * e.y * (1 - m);
  13770. d.s[5] = m + e.y * e.y * (1 - m);
  13771. d.s[6] = e.x * f + e.z * e.y * (1 - m);
  13772. d.s[7] = 0;
  13773. d.s[8] = e.y * f + e.x * e.z * (1 - m);
  13774. d.s[9] = -e.x * f + e.y * e.z * (1 - m);
  13775. d.s[10] = m + e.z * e.z * (1 - m);
  13776. d.s[11] = 0;
  13777. d.s[12] = 0;
  13778. d.s[13] = 0;
  13779. d.s[14] = 0;
  13780. d.s[15] = 1;
  13781. return d
  13782. };
  13783. a.j.ca.R7 = function(d, e, f) {
  13784. f = f || new a.j.ca;
  13785. var m = this.s,
  13786. n = Math.cos(e);
  13787. e = Math.sin(e);
  13788. d = new a.j.Pa(d);
  13789. d.normalize();
  13790. m[0] = n + d.x * d.x * (1 - n);
  13791. m[1] = d.z * e + d.y * d.x * (1 - n);
  13792. m[2] = -d.y * e + d.z * d.x * (1 - n);
  13793. m[3] = 0;
  13794. m[4] = -d.z * e + d.x * d.y * (1 - n);
  13795. m[5] = n + d.y * d.y * (1 - n);
  13796. m[6] = d.x * e + d.z * d.y * (1 - n);
  13797. m[7] = 0;
  13798. m[8] = d.y * e + d.x * d.z *
  13799. (1 - n);
  13800. m[9] = -d.x * e + d.y * d.z * (1 - n);
  13801. m[10] = n + d.z * d.z * (1 - n);
  13802. m[11] = 0;
  13803. m[12] = m[13] = m[14] = 0;
  13804. m[15] = 1;
  13805. return f
  13806. };
  13807. d.J8 = function() {
  13808. var d = new a.j.Cd,
  13809. e = this.s,
  13810. f = d.s;
  13811. f[0] = e[0];
  13812. f[1] = e[1];
  13813. f[2] = e[2];
  13814. f[3] = e[4];
  13815. f[4] = e[5];
  13816. f[5] = e[6];
  13817. f[6] = e[8];
  13818. f[7] = e[9];
  13819. f[8] = e[10];
  13820. return d
  13821. };
  13822. d.$la = function(d) {
  13823. var e = new a.j.sc,
  13824. f = this.s;
  13825. switch (d) {
  13826. case a.j.sc.r0:
  13827. e.a = f[3] - f[0];
  13828. e.b = f[7] - f[4];
  13829. e.c = f[11] - f[8];
  13830. e.K = f[15] - f[12];
  13831. break;
  13832. case a.j.sc.w_:
  13833. e.a = f[3] + f[0];
  13834. e.b = f[7] + f[4];
  13835. e.c = f[11] + f[8];
  13836. e.K = f[15] + f[12];
  13837. break;
  13838. case a.j.sc.WY:
  13839. e.a = f[3] + f[1];
  13840. e.b = f[7] +
  13841. f[5];
  13842. e.c = f[11] + f[9];
  13843. e.K = f[15] + f[13];
  13844. break;
  13845. case a.j.sc.w1:
  13846. e.a = f[3] - f[1];
  13847. e.b = f[7] - f[5];
  13848. e.c = f[11] - f[9];
  13849. e.K = f[15] - f[13];
  13850. break;
  13851. case a.j.sc.ZZ:
  13852. e.a = f[3] - f[2];
  13853. e.b = f[7] - f[6];
  13854. e.c = f[11] - f[10];
  13855. e.K = f[15] - f[14];
  13856. break;
  13857. case a.j.sc.F_:
  13858. e.a = f[3] + f[2];
  13859. e.b = f[7] + f[6];
  13860. e.c = f[11] + f[10];
  13861. e.K = f[15] + f[14];
  13862. break;
  13863. default:
  13864. a.log("cc.math.Matrix4.extractPlane: Invalid plane index")
  13865. }
  13866. d = Math.sqrt(e.a * e.a + e.b * e.b + e.c * e.c);
  13867. e.a /= d;
  13868. e.b /= d;
  13869. e.c /= d;
  13870. e.K /= d;
  13871. return e
  13872. };
  13873. d.mM = function() {
  13874. var d = this.J8();
  13875. return a.j.Ii.bX(d).mM()
  13876. }
  13877. })(b);
  13878. (function(a) {
  13879. a.j.sc = function(a, d, g, h) {
  13880. a && void 0 === d ? (this.a = a.a, this.b = a.b, this.c = a.c, this.K = a.K) : (this.a = a || 0, this.b = d || 0, this.c = g || 0, this.K = h || 0)
  13881. };
  13882. a.Bqa = a.j.sc;
  13883. var d = a.j.sc.prototype;
  13884. a.j.sc.w_ = 0;
  13885. a.j.sc.r0 = 1;
  13886. a.j.sc.WY = 2;
  13887. a.j.sc.w1 = 3;
  13888. a.j.sc.F_ = 4;
  13889. a.j.sc.ZZ = 5;
  13890. a.j.sc.g0 = 0;
  13891. a.j.sc.f0 = 1;
  13892. a.j.sc.h0 = 2;
  13893. d.Gn = function(a) {
  13894. return this.a * a.x + this.b * a.y + this.c * a.z + this.K * a.S
  13895. };
  13896. d.gla = function(a) {
  13897. return this.a * a.x + this.b * a.y + this.c * a.z + this.K
  13898. };
  13899. d.hla = function(a) {
  13900. return this.a * a.x + this.b * a.y + this.c * a.z
  13901. };
  13902. a.j.sc.rma = function(d,
  13903. f) {
  13904. return new a.j.sc(f.x, f.y, f.z, -f.Gn(d))
  13905. };
  13906. a.j.sc.sma = function(d, f, g) {
  13907. f = new a.j.Pa(f);
  13908. g = new a.j.Pa(g);
  13909. var h = new a.j.sc;
  13910. f.gq(d);
  13911. g.gq(d);
  13912. f.Ek(g);
  13913. f.normalize();
  13914. h.a = f.x;
  13915. h.b = f.y;
  13916. h.c = f.z;
  13917. h.K = f.scale(-1).Gn(d);
  13918. return h
  13919. };
  13920. d.normalize = function() {
  13921. var d = new a.j.Pa(this.a, this.b, this.c),
  13922. f = 1 / d.length();
  13923. d.normalize();
  13924. this.a = d.x;
  13925. this.b = d.y;
  13926. this.c = d.z;
  13927. this.K *= f;
  13928. return this
  13929. };
  13930. d.zka = function(d) {
  13931. d = this.a * d.x + this.b * d.y + this.c * d.z + this.K;
  13932. return 0.001 < d ? a.j.sc.g0 : -0.001 > d ? a.j.sc.f0 : a.j.sc.h0
  13933. }
  13934. })(b);
  13935. (function(a) {
  13936. a.j.Ii = function(a, d, g, h) {
  13937. a && void 0 === d ? (this.x = a.x, this.y = a.y, this.z = a.z, this.S = a.S) : (this.x = a || 0, this.y = d || 0, this.z = g || 0, this.S = h || 0)
  13938. };
  13939. a.Cqa = a.j.Ii;
  13940. var d = a.j.Ii.prototype;
  13941. d.M7 = function(a) {
  13942. this.x = -a.x;
  13943. this.y = -a.y;
  13944. this.z = -a.z;
  13945. this.S = a.S;
  13946. return this
  13947. };
  13948. d.Gn = function(a) {
  13949. return this.S * a.S + this.x * a.x + this.y * a.y + this.z * a.z
  13950. };
  13951. d.Zla = function() {
  13952. return this
  13953. };
  13954. d.ie = function() {
  13955. this.z = this.y = this.x = 0;
  13956. this.S = 1;
  13957. return this
  13958. };
  13959. d.inverse = function() {
  13960. var d = this.length();
  13961. if (Math.abs(d) > a.j.Ud) return this.S = this.z =
  13962. this.y = this.x = 0, this;
  13963. this.M7(this).scale(1 / d);
  13964. return this
  13965. };
  13966. d.gW = function() {
  13967. return 0 === this.x && 0 === this.y && 0 === this.z && 1 === this.S
  13968. };
  13969. d.length = function() {
  13970. return Math.sqrt(this.Zs())
  13971. };
  13972. d.Zs = function() {
  13973. return this.x * this.x + this.y * this.y + this.z * this.z + this.S * this.S
  13974. };
  13975. d.multiply = function(a) {
  13976. var d = this.x,
  13977. g = this.y,
  13978. h = this.z,
  13979. k = this.S;
  13980. this.S = k * a.S - d * a.x - g * a.y - h * a.z;
  13981. this.x = k * a.x + d * a.S + g * a.z - h * a.y;
  13982. this.y = k * a.y + g * a.S + h * a.x - d * a.z;
  13983. this.z = k * a.z + h * a.S + d * a.y - g * a.x;
  13984. return this
  13985. };
  13986. d.normalize = function() {
  13987. var d = this.length();
  13988. if (Math.abs(d) <= a.j.Ud) throw "current quaternion is an invalid value";
  13989. this.scale(1 / d);
  13990. return this
  13991. };
  13992. d.aX = function(a) {
  13993. var d = 0.5 * Math.PI,
  13994. g = Math.sin(d);
  13995. this.S = Math.cos(d);
  13996. this.x = a.x * g;
  13997. this.y = a.y * g;
  13998. this.z = a.z * g
  13999. };
  14000. a.j.Ii.bX = function(d) {
  14001. if (!d) return null;
  14002. var f, g, h;
  14003. f = [];
  14004. g = d.s;
  14005. d = 0;
  14006. f[0] = g[0];
  14007. f[1] = g[3];
  14008. f[2] = g[6];
  14009. f[4] = g[1];
  14010. f[5] = g[4];
  14011. f[6] = g[7];
  14012. f[8] = g[2];
  14013. f[9] = g[5];
  14014. f[10] = g[8];
  14015. f[15] = 1;
  14016. var k = f[0];
  14017. d = k[0] + k[5] + k[10] + 1;
  14018. d > a.j.Ud ? (d = 2 * Math.sqrt(d), f = (k[9] - k[6]) / d, g = (k[2] - k[8]) / d, h = (k[4] - k[1]) / d, d *= 0.25) : k[0] > k[5] && k[0] >
  14019. k[10] ? (d = 2 * Math.sqrt(1 + k[0] - k[5] - k[10]), f = 0.25 * d, g = (k[4] + k[1]) / d, h = (k[2] + k[8]) / d, d = (k[9] - k[6]) / d) : k[5] > k[10] ? (d = 2 * Math.sqrt(1 + k[5] - k[0] - k[10]), f = (k[4] + k[1]) / d, g = 0.25 * d, h = (k[9] + k[6]) / d, d = (k[2] - k[8]) / d) : (d = 2 * Math.sqrt(1 + k[10] - k[0] - k[5]), f = (k[2] + k[8]) / d, g = (k[9] + k[6]) / d, h = 0.25 * d, d = (k[4] - k[1]) / d);
  14020. return new a.j.Ii(f, g, h, d)
  14021. };
  14022. a.j.Ii.cta = function(d, f, g) {
  14023. var h, k, m, n, p;
  14024. h = a.Md(f) / 2;
  14025. k = a.Md(d) / 2;
  14026. m = a.Md(g) / 2;
  14027. g = Math.cos(h);
  14028. d = Math.cos(k);
  14029. f = Math.cos(m);
  14030. h = Math.sin(h);
  14031. k = Math.sin(k);
  14032. m = Math.sin(m);
  14033. n = d * f;
  14034. p = k * m;
  14035. var s = new a.j.Ii;
  14036. s.S = g * n + h * p;
  14037. s.x = h * n - g * p;
  14038. s.y = g * k * f + h * d * m;
  14039. s.z = g * d * m - h * k * f;
  14040. s.normalize();
  14041. return s
  14042. };
  14043. d.Hva = function(d, f) {
  14044. if (this.x === d.x && this.y === d.y && this.z === d.z && this.S === d.S) return this;
  14045. var g = this.Gn(d),
  14046. h = Math.acos(g),
  14047. g = Math.sqrt(1 - a.j.kd(g)),
  14048. k = Math.sin(f * h) / g,
  14049. m = new a.j.Ii(d);
  14050. this.scale(Math.sin((1 - f) * h) / g);
  14051. m.scale(k);
  14052. this.add(m);
  14053. return this
  14054. };
  14055. d.mM = function() {
  14056. var d, f, g = new a.j.Pa;
  14057. d = Math.acos(this.S);
  14058. f = Math.sqrt(a.j.kd(this.x) + a.j.kd(this.y) + a.j.kd(this.z));
  14059. f > -a.j.Ud && f < a.j.Ud || f < 2 * Math.PI + a.j.Ud && f > 2 * Math.PI - a.j.Ud ?
  14060. (d = 0, g.x = 0, g.y = 0, g.z = 1) : (d *= 2, g.x = this.x / f, g.y = this.y / f, g.z = this.z / f, g.normalize());
  14061. return {
  14062. axis: g,
  14063. Yg: d
  14064. }
  14065. };
  14066. d.scale = function(a) {
  14067. this.x *= a;
  14068. this.y *= a;
  14069. this.z *= a;
  14070. this.S *= a;
  14071. return this
  14072. };
  14073. d.Ze = function(a) {
  14074. this.x = a.x;
  14075. this.y = a.y;
  14076. this.z = a.z;
  14077. this.S = a.S;
  14078. return this
  14079. };
  14080. d.add = function(a) {
  14081. this.x += a.x;
  14082. this.y += a.y;
  14083. this.z += a.z;
  14084. this.S += a.S;
  14085. return this
  14086. };
  14087. a.j.Ii.ata = function(d, f, g) {
  14088. var h = new a.j.Pa(d),
  14089. k = new a.j.Pa(f);
  14090. h.normalize();
  14091. k.normalize();
  14092. var m = h.Gn(k);
  14093. f = new a.j.Ii;
  14094. if (1 <= m) return f.ie(), f; - 0.999999 > m ? Math.abs(g.Zs()) <
  14095. a.j.Ud ? f.aX(g) : (h = new a.j.Pa(1, 0, 0), h.Ek(d), Math.abs(h.Zs()) < a.j.Ud && (h.fill(0, 1, 0), h.Ek(d)), h.normalize(), f.aX(h)) : (d = Math.sqrt(2 * (1 + m)), g = 1 / d, h.Ek(k), f.x = h.x * g, f.y = h.y * g, f.z = h.z * g, f.S = 0.5 * d, f.normalize());
  14096. return f
  14097. };
  14098. d.Vqa = function(d) {
  14099. var f = this.x,
  14100. g = this.y,
  14101. h = this.z,
  14102. k = new a.j.Pa(d),
  14103. m = new a.j.Pa(f, g, h),
  14104. f = new a.j.Pa(f, g, h);
  14105. m.Ek(d);
  14106. f.Ek(m);
  14107. m.scale(2 * q.S);
  14108. f.scale(2);
  14109. k.add(m);
  14110. k.add(f);
  14111. return k
  14112. }
  14113. })(b);
  14114. b.j.Zx = function(a, d) {
  14115. this.min = a || new b.j.Pa;
  14116. this.max = d || new b.j.Pa
  14117. };
  14118. b.j.Zx.prototype.N7 = function(a) {
  14119. return a.x >= this.min.x && a.x <= this.max.x && a.y >= this.min.y && a.y <= this.max.y && a.z >= this.min.z && a.z <= this.max.z
  14120. };
  14121. b.j.Zx.N7 = function(a, d) {
  14122. return a.x >= d.min.x && a.x <= d.max.x && a.y >= d.min.y && a.y <= d.max.y && a.z >= d.min.z && a.z <= d.max.z
  14123. };
  14124. b.j.Zx.prototype.Ze = function(a) {
  14125. this.min.Ze(a.min);
  14126. this.max.Ze(a.max)
  14127. };
  14128. b.j.Zx.assign = function(a, d) {
  14129. a.min.Ze(d.min);
  14130. a.max.Ze(d.max);
  14131. return a
  14132. };
  14133. (function(a) {
  14134. a.j.nu = function(a, d) {
  14135. this.top = a;
  14136. this.stack = d || []
  14137. };
  14138. a.Fqa = a.j.nu;
  14139. var d = a.j.nu.prototype;
  14140. d.Uw = function() {
  14141. this.stack.length = 0;
  14142. this.top = null
  14143. };
  14144. a.Hqa = function(d, f) {
  14145. d.stack.push(d.top);
  14146. d.top = new a.j.ca(f)
  14147. };
  14148. a.Gqa = function(a) {
  14149. a.top = a.stack.pop()
  14150. };
  14151. a.Iqa = function(a) {
  14152. a.stack = null;
  14153. a.top = null
  14154. };
  14155. d.push = function(d) {
  14156. d = d || this.top;
  14157. this.stack.push(this.top);
  14158. this.top = new a.j.ca(d)
  14159. };
  14160. d.pop = function() {
  14161. this.top = this.stack.pop()
  14162. };
  14163. d.Ad = function() {
  14164. this.KR = this.top = this.stack = null
  14165. };
  14166. d.Wia = function(d) {
  14167. var f = this.KR;
  14168. if (0 === f.length) return new a.j.ca(d);
  14169. f = f.pop();
  14170. f.Ze(d);
  14171. return f
  14172. };
  14173. d.uja = function(a) {
  14174. this.KR.push(a)
  14175. }
  14176. })(b);
  14177. (function(a) {
  14178. a.Oj = 5888;
  14179. a.Pj = 5889;
  14180. a.jN = 5890;
  14181. a.vj = new a.j.nu;
  14182. a.Aj = new a.j.nu;
  14183. a.Ft = new a.j.nu;
  14184. a.Ob = null;
  14185. a.uba = function() {
  14186. var d = new a.j.ca;
  14187. a.vj.Uw();
  14188. a.Aj.Uw();
  14189. a.Ft.Uw();
  14190. a.Ob = a.vj;
  14191. a.Kaa = !0;
  14192. d.ie();
  14193. a.vj.push(d);
  14194. a.Aj.push(d);
  14195. a.Ft.push(d)
  14196. };
  14197. a.uba();
  14198. a.qba = function() {
  14199. a.vj.Ad();
  14200. a.vj = null;
  14201. a.Aj.Ad();
  14202. a.Aj = null;
  14203. a.Ft.Ad();
  14204. a.Ft = null;
  14205. a.Kaa = !1;
  14206. a.Ob = null
  14207. };
  14208. a.Zw = function() {
  14209. a.Ob.push(a.Ob.top)
  14210. };
  14211. a.oqa = function(d) {
  14212. a.Ob.stack.push(a.Ob.top);
  14213. d.Ze(a.Ob.top);
  14214. a.Ob.top = d
  14215. };
  14216. a.Ys = function() {
  14217. a.Ob.top = a.Ob.stack.pop()
  14218. };
  14219. a.tj = function(d) {
  14220. switch (d) {
  14221. case a.Oj:
  14222. a.Ob =
  14223. a.vj;
  14224. break;
  14225. case a.Pj:
  14226. a.Ob = a.Aj;
  14227. break;
  14228. case a.jN:
  14229. a.Ob = a.Ft;
  14230. break;
  14231. default:
  14232. throw "Invalid matrix mode specified";
  14233. }
  14234. };
  14235. a.Ws = function() {
  14236. a.Ob.top.ie()
  14237. };
  14238. a.nqa = function(d) {
  14239. a.Ob.top.Ze(d)
  14240. };
  14241. a.Xs = function(d) {
  14242. a.Ob.top.multiply(d)
  14243. };
  14244. var d = new a.j.ca;
  14245. a.jW = function(e, g) {
  14246. var h = a.j.ca.Fn(e, g, 0, d);
  14247. a.Ob.top.multiply(h)
  14248. };
  14249. var e = new a.j.Pa;
  14250. a.pqa = function(f, g, h, k) {
  14251. e.fill(g, h, k);
  14252. f = a.j.ca.R7(e, a.Md(f), d);
  14253. a.Ob.top.multiply(f)
  14254. };
  14255. a.qqa = function(e, g, h) {
  14256. e = a.j.ca.uU(e, g, h, d);
  14257. a.Ob.top.multiply(e)
  14258. };
  14259. a.Yw = function(d, e) {
  14260. switch (d) {
  14261. case a.Oj:
  14262. e.Ze(a.vj.top);
  14263. break;
  14264. case a.Pj:
  14265. e.Ze(a.Aj.top);
  14266. break;
  14267. case a.jN:
  14268. e.Ze(a.Ft.top);
  14269. break;
  14270. default:
  14271. throw "Invalid matrix mode specified";
  14272. }
  14273. }
  14274. })(b);
  14275. b.G0 = "precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n";
  14276. b.H0 = "attribute vec4 a_position;\nuniform vec4 u_color;\nuniform float u_pointSize;\nvarying lowp vec4 v_fragmentColor; \nvoid main(void) \n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n gl_PointSize \x3d u_pointSize; \n v_fragmentColor \x3d u_color; \n}";
  14277. b.u0 = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} ";
  14278. b.x0 = "attribute vec4 a_position;\nattribute vec4 a_color;\nvarying lowp vec4 v_fragmentColor;\nvoid main()\n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n}";
  14279. b.v0 = "// #extension GL_OES_standard_derivatives : enable\nvarying mediump vec4 v_color;\nvarying mediump vec2 v_texcoord;\nvoid main()\t\n{ \n// #if defined GL_OES_standard_derivatives\t\n// gl_FragColor \x3d v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n// #else\t\ngl_FragColor \x3d v_color * step(0.0, 1.0 - length(v_texcoord)); \n// #endif \n}";
  14280. b.w0 = "attribute mediump vec4 a_position; \nattribute mediump vec2 a_texcoord; \nattribute mediump vec4 a_color;\t\nvarying mediump vec4 v_color; \nvarying mediump vec2 v_texcoord;\t\nvoid main() \n{ \n v_color \x3d a_color;//vec4(a_color.rgb * a_color.a, a_color.a); \n v_texcoord \x3d a_texcoord; \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n}";
  14281. b.C0 = "precision lowp float; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}";
  14282. b.F0 = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}";
  14283. b.D0 = "precision lowp float; \nuniform vec4 u_color; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord) * u_color; \n}";
  14284. b.E0 = "attribute vec4 a_position;\nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}";
  14285. b.y0 = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d vec4( v_fragmentColor.rgb, \n v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a \n ); \n}";
  14286. b.z0 = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}";
  14287. b.B0 = "precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n}";
  14288. b.nF = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}";
  14289. b.A0 = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform float CC_alpha_value; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(CC_Texture0, v_texCoord); \n if ( texColor.a \x3c\x3d CC_alpha_value ) \n discard; \n gl_FragColor \x3d texColor * v_fragmentColor; \n}";
  14290. b.Gha = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D u_texture; \nuniform sampler2D u_mask; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(u_texture, v_texCoord); \n vec4 maskColor \x3d texture2D(u_mask, v_texCoord); \n vec4 finalColor \x3d vec4(texColor.r, texColor.g, texColor.b, maskColor.a * texColor.a); \n gl_FragColor \x3d v_fragmentColor * finalColor; \n}";
  14291. b.le = {
  14292. wF: 0,
  14293. xF: 1,
  14294. uF: 2,
  14295. vF: 3,
  14296. zF: 4,
  14297. yF: 5,
  14298. AF: 6,
  14299. nO: 7,
  14300. iia: 8,
  14301. be: {},
  14302. rl: function() {
  14303. this.Aba();
  14304. return !0
  14305. },
  14306. Df: function(a, d) {
  14307. switch (d) {
  14308. case this.wF:
  14309. a.qj(b.nF, b.B0);
  14310. a.fd(b.vm, b.Ib);
  14311. a.fd(b.lq, b.cf);
  14312. a.fd(b.$n, b.re);
  14313. break;
  14314. case this.xF:
  14315. a.qj(b.nF, b.A0);
  14316. a.fd(b.vm, b.Ib);
  14317. a.fd(b.lq, b.cf);
  14318. a.fd(b.$n, b.re);
  14319. break;
  14320. case this.uF:
  14321. a.qj(b.x0, b.u0);
  14322. a.fd(b.vm, b.Ib);
  14323. a.fd(b.lq, b.cf);
  14324. break;
  14325. case this.vF:
  14326. a.qj(b.F0, b.C0);
  14327. a.fd(b.vm, b.Ib);
  14328. a.fd(b.$n, b.re);
  14329. break;
  14330. case this.zF:
  14331. a.qj(b.E0, b.D0);
  14332. a.fd(b.vm, b.Ib);
  14333. a.fd(b.$n, b.re);
  14334. break;
  14335. case this.yF:
  14336. a.qj(b.z0,
  14337. b.y0);
  14338. a.fd(b.vm, b.Ib);
  14339. a.fd(b.lq, b.cf);
  14340. a.fd(b.$n, b.re);
  14341. break;
  14342. case this.AF:
  14343. a.qj(b.H0, b.G0);
  14344. a.fd("aVertex", b.Ib);
  14345. break;
  14346. case this.nO:
  14347. a.qj(b.w0, b.v0);
  14348. a.fd(b.vm, b.Ib);
  14349. a.fd(b.$n, b.re);
  14350. a.fd(b.lq, b.cf);
  14351. break;
  14352. default:
  14353. b.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type");
  14354. return
  14355. }
  14356. a.link();
  14357. a.HY()
  14358. },
  14359. Aba: function() {
  14360. var a = new b.Qe;
  14361. this.Df(a, this.wF);
  14362. this.be[b.Sj] = a;
  14363. this.be.ShaderPositionTextureColor = a;
  14364. a = new b.Qe;
  14365. this.Df(a, this.xF);
  14366. this.be[b.Yy] = a;
  14367. this.be.ShaderPositionTextureColorAlphaTest = a;
  14368. a = new b.Qe;
  14369. this.Df(a, this.uF);
  14370. this.be[b.Xy] = a;
  14371. this.be.ShaderPositionColor = a;
  14372. a = new b.Qe;
  14373. this.Df(a, this.vF);
  14374. this.be[b.uu] = a;
  14375. this.be.ShaderPositionTexture = a;
  14376. a = new b.Qe;
  14377. this.Df(a, this.zF);
  14378. this.be[b.oF] = a;
  14379. this.be.ShaderPositionTextureUColor = a;
  14380. a = new b.Qe;
  14381. this.Df(a, this.yF);
  14382. this.be[b.mF] = a;
  14383. this.be.ShaderPositionTextureA8Color = a;
  14384. a = new b.Qe;
  14385. this.Df(a, this.AF);
  14386. this.be[b.pF] = a;
  14387. this.be.ShaderPositionUColor = a;
  14388. a = new b.Qe;
  14389. this.Df(a, this.nO);
  14390. this.be[b.VN] = a;
  14391. this.be.ShaderPositionLengthTextureColor = a
  14392. },
  14393. vsa: function() {
  14394. var a = this.Dc(b.Sj);
  14395. a.reset();
  14396. this.Df(a, this.wF);
  14397. a = this.Dc(b.Yy);
  14398. a.reset();
  14399. this.Df(a, this.xF);
  14400. a = this.Dc(b.Xy);
  14401. a.reset();
  14402. this.Df(a, this.uF);
  14403. a = this.Dc(b.uu);
  14404. a.reset();
  14405. this.Df(a, this.vF);
  14406. a = this.Dc(b.oF);
  14407. a.reset();
  14408. this.Df(a, this.zF);
  14409. a = this.Dc(b.mF);
  14410. a.reset();
  14411. this.Df(a, this.yF);
  14412. a = this.Dc(b.pF);
  14413. a.reset();
  14414. this.Df(a, this.AF)
  14415. },
  14416. Dc: function(a) {
  14417. return this.be[a]
  14418. },
  14419. Qp: function(a) {
  14420. return this.be[a]
  14421. },
  14422. Yja: function(a, d) {
  14423. this.be[d] = a
  14424. }
  14425. };
  14426. b.h_ = function() {
  14427. this.location = this.value = void 0;
  14428. this.HC = {}
  14429. };
  14430. b.Qe = b.sa.extend({
  14431. pa: null,
  14432. ac: null,
  14433. lg: null,
  14434. Mh: null,
  14435. eb: null,
  14436. Qi: null,
  14437. rJ: !1,
  14438. Lf: function(a, d) {
  14439. if (null == a) return !1;
  14440. for (var e = !0, f = null, g = 0; g < this.Qi.length; g++) this.Qi[g].location == a && (f = this.Qi[g]);
  14441. f ? f.value == d ? e = !1 : f.value = d : (f = new b.h_, f.location = a, f.value = d, this.Qi.push(f));
  14442. return e
  14443. },
  14444. Nia: function() {
  14445. return "\x3cCCGLProgram \x3d " + this.toString() + " | Program \x3d " + this.ac.toString() + ", VertexShader \x3d " + this.lg.toString() + ", FragmentShader \x3d " + this.Mh.toString() + "\x3e"
  14446. },
  14447. AP: function(a, d, e) {
  14448. if (!e ||
  14449. !a) return !1;
  14450. e = (b.Qe.H4() ? "precision highp float;\n" : "precision mediump float;\n") + "uniform mat4 CC_PMatrix; \nuniform mat4 CC_MVMatrix; \nuniform mat4 CC_MVPMatrix; \nuniform vec4 CC_Time; \nuniform vec4 CC_SinTime; \nuniform vec4 CC_CosTime; \nuniform vec4 CC_Random01; \nuniform sampler2D CC_Texture0; \n//CC INCLUDES END \n" + e;
  14451. this.pa.shaderSource(a, e);
  14452. this.pa.compileShader(a);
  14453. e = this.pa.getShaderParameter(a, this.pa.COMPILE_STATUS);
  14454. e || (b.log("cocos2d: ERROR: Failed to compile shader:\n" + this.pa.getShaderSource(a)), d === this.pa.VERTEX_SHADER ? b.log("cocos2d: \n" + this.qfa()) : b.log("cocos2d: \n" + this.T8()));
  14455. return !0 === e
  14456. },
  14457. ctor: function(a, d, e) {
  14458. this.eb = [];
  14459. this.Qi = [];
  14460. this.pa = e || b.A;
  14461. a && d && this.T(a, d)
  14462. },
  14463. Vka: function() {
  14464. this.Qi = this.eb = this.Mh = this.lg = null;
  14465. this.pa.deleteProgram(this.ac)
  14466. },
  14467. qj: function(a, d) {
  14468. var e = this.pa;
  14469. this.ac = e.createProgram();
  14470. this.Mh = this.lg = null;
  14471. a && (this.lg = e.createShader(e.VERTEX_SHADER), this.AP(this.lg, e.VERTEX_SHADER,
  14472. a) || b.log("cocos2d: ERROR: Failed to compile vertex shader"));
  14473. d && (this.Mh = e.createShader(e.FRAGMENT_SHADER), this.AP(this.Mh, e.FRAGMENT_SHADER, d) || b.log("cocos2d: ERROR: Failed to compile fragment shader"));
  14474. this.lg && e.attachShader(this.ac, this.lg);
  14475. b.ss();
  14476. this.Mh && e.attachShader(this.ac, this.Mh);
  14477. this.Qi.length = 0;
  14478. b.ss();
  14479. return !0
  14480. },
  14481. je: function(a, d) {
  14482. return this.qj(a, d)
  14483. },
  14484. Jaa: function(a, d) {
  14485. var e = b.Z.sf(a);
  14486. if (!e) throw "Please load the resource firset : " + a;
  14487. var f = b.Z.sf(d);
  14488. if (!f) throw "Please load the resource firset : " +
  14489. d;
  14490. return this.qj(e, f)
  14491. },
  14492. T: function(a, d) {
  14493. return this.Jaa(a, d)
  14494. },
  14495. fd: function(a, d) {
  14496. this.pa.bindAttribLocation(this.ac, d, a)
  14497. },
  14498. link: function() {
  14499. if (!this.ac) return b.log("cc.GLProgram.link(): Cannot link invalid program"), !1;
  14500. this.pa.linkProgram(this.ac);
  14501. this.lg && this.pa.deleteShader(this.lg);
  14502. this.Mh && this.pa.deleteShader(this.Mh);
  14503. this.Mh = this.lg = null;
  14504. return b.pb.Ee[b.pb.xh.xw] && !this.pa.getProgramParameter(this.ac, this.pa.LINK_STATUS) ? (b.log("cocos2d: ERROR: Failed to link program: " + this.pa.getProgramInfoLog(this.ac)),
  14505. b.$$(this.ac), this.ac = null, !1) : !0
  14506. },
  14507. jc: function() {
  14508. b.XK(this.ac)
  14509. },
  14510. HY: function() {
  14511. this.eb[b.Au] = this.pa.getUniformLocation(this.ac, b.j2);
  14512. this.eb[b.zu] = this.pa.getUniformLocation(this.ac, b.h2);
  14513. this.eb[b.Bq] = this.pa.getUniformLocation(this.ac, b.i2);
  14514. this.eb[b.qz] = this.pa.getUniformLocation(this.ac, b.n2);
  14515. this.eb[b.pz] = this.pa.getUniformLocation(this.ac, b.m2);
  14516. this.eb[b.oz] = this.pa.getUniformLocation(this.ac, b.g2);
  14517. this.rJ = null != this.eb[b.qz] || null != this.eb[b.pz] || null != this.eb[b.oz];
  14518. this.eb[b.Bu] = this.pa.getUniformLocation(this.ac,
  14519. b.k2);
  14520. this.eb[b.JF] = this.pa.getUniformLocation(this.ac, b.l2);
  14521. this.jc();
  14522. this.aY(this.eb[b.JF], 0)
  14523. },
  14524. Zoa: function(a) {
  14525. if (!a) throw "cc.GLProgram.getUniformLocationForName(): uniform name should be non-null";
  14526. if (!this.ac) throw "cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized";
  14527. return this.pa.getUniformLocation(this.ac, a)
  14528. },
  14529. $oa: function() {
  14530. return this.eb[b.Bq]
  14531. },
  14532. apa: function() {
  14533. return this.eb[b.JF]
  14534. },
  14535. aY: function(a, d) {
  14536. this.Lf(a, d) && this.pa.uniform1i(a,
  14537. d)
  14538. },
  14539. qva: function(a, d, e) {
  14540. this.Lf(a, [d, e]) && this.pa.uniform2i(a, d, e)
  14541. },
  14542. tva: function(a, d, e, f) {
  14543. this.Lf(a, [d, e, f]) && this.pa.uniform3i(a, d, e, f)
  14544. },
  14545. wva: function(a, d, e, f, g) {
  14546. this.Lf(a, [d, e, f, g]) && this.pa.uniform4i(a, d, e, f, g)
  14547. },
  14548. rva: function(a, d) {
  14549. this.Lf(a, d) && this.pa.uniform2iv(a, d)
  14550. },
  14551. uva: function(a, d) {
  14552. this.Lf(a, d) && this.pa.uniform3iv(a, d)
  14553. },
  14554. xva: function(a, d) {
  14555. this.Lf(a, d) && this.pa.uniform4iv(a, d)
  14556. },
  14557. ova: function(a, d) {
  14558. this.aY(a, d)
  14559. },
  14560. Kx: function(a, d) {
  14561. this.Lf(a, d) && this.pa.uniform1f(a, d)
  14562. },
  14563. dea: function(a, d, e) {
  14564. this.Lf(a, [d, e]) && this.pa.uniform2f(a, d, e)
  14565. },
  14566. eea: function(a, d, e, f) {
  14567. this.Lf(a, [d, e, f]) && this.pa.uniform3f(a, d, e, f)
  14568. },
  14569. sm: function(a, d, e, f, g) {
  14570. this.Lf(a, [d, e, f, g]) && this.pa.uniform4f(a, d, e, f, g)
  14571. },
  14572. pva: function(a, d) {
  14573. this.Lf(a, d) && this.pa.uniform2fv(a, d)
  14574. },
  14575. sva: function(a, d) {
  14576. this.Lf(a, d) && this.pa.uniform3fv(a, d)
  14577. },
  14578. vva: function(a, d) {
  14579. this.Lf(a, d) && this.pa.uniform4fv(a, d)
  14580. },
  14581. wt: function(a, d) {
  14582. this.Lf(a, d) && this.pa.uniformMatrix4fv(a, !1, d)
  14583. },
  14584. nva: function() {
  14585. if (!(2 > arguments.length)) switch (arguments.length) {
  14586. case 2:
  14587. this.Kx(arguments[0],
  14588. arguments[1]);
  14589. break;
  14590. case 3:
  14591. this.dea(arguments[0], arguments[1], arguments[2]);
  14592. break;
  14593. case 4:
  14594. this.eea(arguments[0], arguments[1], arguments[2], arguments[3]);
  14595. break;
  14596. case 5:
  14597. this.sm(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4])
  14598. }
  14599. },
  14600. bY: function() {
  14601. var a = new b.j.ca,
  14602. d = new b.j.ca,
  14603. e = new b.j.ca;
  14604. b.Yw(b.Pj, a);
  14605. b.Yw(b.Oj, d);
  14606. b.YC(e, a, d);
  14607. this.wt(this.eb[b.Au], a.s, 1);
  14608. this.wt(this.eb[b.zu], d.s, 1);
  14609. this.wt(this.eb[b.Bq], e.s, 1);
  14610. this.rJ && (a = b.P, a = a.bw * a.Iq, this.sm(this.eb[b.qz], a / 10, a, 2 * a, 4 * a), this.sm(this.eb[b.pz],
  14611. a / 8, a / 4, a / 2, Math.sin(a)), this.sm(this.eb[b.oz], a / 8, a / 4, a / 2, Math.cos(a))); - 1 !== this.eb[b.Bu] && this.sm(this.eb[b.Bu], Math.random(), Math.random(), Math.random(), Math.random())
  14612. },
  14613. Gja: function(a) {
  14614. if (a && a.f) {
  14615. var d = new b.j.ca,
  14616. e = new b.j.ca;
  14617. b.Yw(b.Pj, d);
  14618. b.YC(e, d, a.f.Mc);
  14619. this.wt(this.eb[b.Au], d.s, 1);
  14620. this.wt(this.eb[b.zu], a.f.Mc.s, 1);
  14621. this.wt(this.eb[b.Bq], e.s, 1);
  14622. this.rJ && (a = b.P, a = a.bw * a.Iq, this.sm(this.eb[b.qz], a / 10, a, 2 * a, 4 * a), this.sm(this.eb[b.pz], a / 8, a / 4, a / 2, Math.sin(a)), this.sm(this.eb[b.oz], a / 8, a / 4, a / 2, Math.cos(a))); - 1 !== this.eb[b.Bu] && this.sm(this.eb[b.Bu], Math.random(), Math.random(), Math.random(), Math.random())
  14623. }
  14624. },
  14625. lva: function() {
  14626. this.pa.uniformMatrix4fv(this.eb[b.Bq], !1, b.T9())
  14627. },
  14628. mva: function(a) {
  14629. b.YC(a, b.Aj.top, b.vj.top);
  14630. this.pa.uniformMatrix4fv(this.eb[b.Bq], !1, a.s)
  14631. },
  14632. Sk: function() {
  14633. this.pa.uniformMatrix4fv(this.eb[b.zu], !1, b.vj.top.s);
  14634. this.pa.uniformMatrix4fv(this.eb[b.Au], !1, b.Aj.top.s)
  14635. },
  14636. Ug: function(a) {
  14637. if (!a) throw "modelView matrix is undefined.";
  14638. this.pa.uniformMatrix4fv(this.eb[b.zu], !1, a.s);
  14639. this.pa.uniformMatrix4fv(this.eb[b.Au], !1, b.Aj.top.s)
  14640. },
  14641. qfa: function() {
  14642. return this.pa.getShaderInfoLog(this.lg)
  14643. },
  14644. fpa: function() {
  14645. return this.pa.getShaderInfoLog(this.lg)
  14646. },
  14647. pna: function() {
  14648. return this.pa.getShaderInfoLog(this.lg)
  14649. },
  14650. T8: function() {
  14651. return this.pa.getShaderInfoLog(this.Mh)
  14652. },
  14653. dsa: function() {
  14654. return this.pa.getProgramInfoLog(this.ac)
  14655. },
  14656. hoa: function() {
  14657. return this.pa.getProgramInfoLog(this.ac)
  14658. },
  14659. reset: function() {
  14660. this.Mh = this.lg = null;
  14661. this.eb.length = 0;
  14662. this.pa.deleteProgram(this.ac);
  14663. this.ac = null;
  14664. for (var a = 0; a < this.Qi.length; a++) this.Qi[a].value =
  14665. null, this.Qi[a] = null;
  14666. this.Qi.length = 0
  14667. },
  14668. Qp: function() {
  14669. return this.ac
  14670. },
  14671. CD: function() {},
  14672. Ad: function() {}
  14673. });
  14674. b.Qe.create = function(a, d) {
  14675. return new b.Qe(a, d)
  14676. };
  14677. b.Qe.nH = null;
  14678. b.Qe.H4 = function() {
  14679. if (null == b.Qe.nH) {
  14680. var a = b.A;
  14681. b.Qe.nH = 0 !== a.getShaderPrecisionFormat(a.FRAGMENT_SHADER, a.HIGH_FLOAT).precision
  14682. }
  14683. return b.Qe.nH
  14684. };
  14685. b.OX = function(a, d) {
  14686. a.shaderProgram = d;
  14687. var e = a.children;
  14688. if (e)
  14689. for (var f = 0; f < e.length; f++) b.OX(e[f], d)
  14690. };
  14691. b.JP = -1;
  14692. b.uJ = !1;
  14693. b.tJ = !1;
  14694. b.vJ = !1;
  14695. b.Fi && (b.D_ = 16, b.Wu = -1, b.Vu = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], b.Rq = -1, b.Qq = -1, b.v2 = 0, b.gO && (b.pT = 0));
  14696. b.ppa = function() {
  14697. b.qba();
  14698. b.JP = -1;
  14699. b.uJ = !1;
  14700. b.tJ = !1;
  14701. b.vJ = !1;
  14702. if (b.Fi) {
  14703. b.Wu = -1;
  14704. for (var a = 0; a < b.D_; a++) b.Vu[a] = -1;
  14705. b.Rq = -1;
  14706. b.Qq = -1;
  14707. b.v2 = 0
  14708. }
  14709. };
  14710. b.XK = function(a) {
  14711. a !== b.Wu && (b.Wu = a, b.A.useProgram(a))
  14712. };
  14713. b.Fi || (b.XK = function(a) {
  14714. b.A.useProgram(a)
  14715. });
  14716. b.$$ = function(a) {
  14717. b.Fi && a === b.Wu && (b.Wu = -1);
  14718. gl.deleteProgram(a)
  14719. };
  14720. b.ji = function(a, d) {
  14721. if (a !== b.Rq || d !== b.Qq) b.Rq = a, b.Qq = d, b.ID(a, d)
  14722. };
  14723. b.ID = function(a, d) {
  14724. var e = b.A;
  14725. a === e.ONE && d === e.ZERO ? e.disable(e.BLEND) : (e.enable(e.BLEND), b.A.blendFunc(a, d))
  14726. };
  14727. b.GV = function(a, d) {
  14728. if (a !== b.Rq || d !== b.Qq) {
  14729. b.Rq = a;
  14730. b.Qq = d;
  14731. var e = b.A;
  14732. a === e.ONE && d === e.ZERO ? e.disable(e.BLEND) : (e.enable(e.BLEND), e.blendFuncSeparate(e.SRC_ALPHA, d, a, d))
  14733. }
  14734. };
  14735. b.Fi || (b.ji = b.ID);
  14736. b.mpa = function() {
  14737. var a = b.A;
  14738. a.blendEquation(a.FUNC_ADD);
  14739. b.Fi ? b.ID(b.Rq, b.Qq) : b.ID(a.Td, a.Sd)
  14740. };
  14741. b.QX = function() {
  14742. b.JP = -1
  14743. };
  14744. b.hd = function(a) {
  14745. var d = b.A,
  14746. e = a & b.qe;
  14747. e !== b.uJ && (e ? d.enableVertexAttribArray(b.Ib) : d.disableVertexAttribArray(b.Ib), b.uJ = e);
  14748. e = a & b.Cu;
  14749. e !== b.tJ && (e ? d.enableVertexAttribArray(b.cf) : d.disableVertexAttribArray(b.cf), b.tJ = e);
  14750. a &= b.Dq;
  14751. a !== b.vJ && (a ? d.enableVertexAttribArray(b.re) : d.disableVertexAttribArray(b.re), b.vJ = a)
  14752. };
  14753. b.Rf = function(a) {
  14754. b.WK(0, a)
  14755. };
  14756. b.WK = function(a, d) {
  14757. if (b.Vu[a] !== d) {
  14758. b.Vu[a] = d;
  14759. var e = b.A;
  14760. e.activeTexture(e.TEXTURE0 + a);
  14761. d ? e.bindTexture(e.TEXTURE_2D, d.Xg) : e.bindTexture(e.TEXTURE_2D, null)
  14762. }
  14763. };
  14764. b.Fi || (b.WK = function(a, d) {
  14765. var e = b.A;
  14766. e.activeTexture(e.TEXTURE0 + a);
  14767. d ? e.bindTexture(e.TEXTURE_2D, d.Xg) : e.bindTexture(e.TEXTURE_2D, null)
  14768. });
  14769. b.npa = function(a) {
  14770. b.aaa(a)
  14771. };
  14772. b.aaa = function(a) {
  14773. b.Fi && a === b.Vu[0] && (b.Vu[0] = -1);
  14774. b.A.deleteTexture(a)
  14775. };
  14776. b.lpa = function(a) {
  14777. b.gO && b.Fi && b.pT !== a && (b.pT = a)
  14778. };
  14779. b.opa = function() {};
  14780. b.Kga = 0;
  14781. b.Lga = 1;
  14782. b.Mga = 9;
  14783. b.Am = function(a) {
  14784. a -= 1;
  14785. a |= a >> 1;
  14786. a |= a >> 2;
  14787. a |= a >> 4;
  14788. a |= a >> 8;
  14789. return (a | a >> 16) + 1
  14790. };
  14791. b.Zf = b.e.extend({
  14792. sprite: null,
  14793. YJ: 0,
  14794. XJ: 0,
  14795. qw: !1,
  14796. O: null,
  14797. mk: b.ja.Bm,
  14798. ZJ: 0,
  14799. Co: null,
  14800. Ma: "RenderTexture",
  14801. ctor: function(a, d, e, f) {
  14802. b.e.prototype.ctor.call(this);
  14803. this.$c = this.Zc = !0;
  14804. this.Co = new b.bf(0, 0, 0, 255);
  14805. void 0 !== a && void 0 !== d && (e = e || b.ja.Bm, this.QC(a, d, e, f || 0));
  14806. this.rb(0, 0)
  14807. },
  14808. Ic: function() {
  14809. return b.W === b.Jb ? new b.Zf.n(this) : new b.Zf.p(this)
  14810. },
  14811. qf: function() {
  14812. b.e.prototype.Pb.call(this);
  14813. this.f.qf()
  14814. },
  14815. OK: function() {
  14816. return this.sprite
  14817. },
  14818. WL: function(a) {
  14819. this.sprite = a
  14820. },
  14821. cM: function(a, d, e) {
  14822. this.f.cM(a, d, e)
  14823. },
  14824. QC: function(a,
  14825. d, e, f) {
  14826. return this.f.QC(a, d, e, f)
  14827. },
  14828. Ak: function() {
  14829. b.oa.es(this.ba);
  14830. this.f.Ak()
  14831. },
  14832. t7: function(a, d, e, f, g, h) {
  14833. var k = b.A;
  14834. g = g || k.COLOR_BUFFER_BIT;
  14835. h = h || k.COLOR_BUFFER_BIT | k.DEPTH_BUFFER_BIT;
  14836. this.Dz(a, d, e, f, g, h, k.COLOR_BUFFER_BIT | k.DEPTH_BUFFER_BIT | k.STENCIL_BUFFER_BIT)
  14837. },
  14838. Dz: function(a, d, e, f, g, h, k) {
  14839. this.Ak();
  14840. this.f.Dz(a, d, e, f, g, h, k)
  14841. },
  14842. end: function() {
  14843. this.f.end()
  14844. },
  14845. clear: function(a, d, e, f) {
  14846. this.t7(a, d, e, f);
  14847. this.end()
  14848. },
  14849. clearRect: function(a, d, e, f) {
  14850. this.f.clearRect(a, d, e, f)
  14851. },
  14852. clearDepth: function(a) {
  14853. this.f.clearDepth(a)
  14854. },
  14855. clearStencil: function(a) {
  14856. this.f.clearStencil(a)
  14857. },
  14858. Mma: function() {
  14859. return this.YJ
  14860. },
  14861. Ata: function(a) {
  14862. this.YJ = a
  14863. },
  14864. g9: function() {
  14865. return this.Co
  14866. },
  14867. Uca: function(a) {
  14868. var d = this.Co;
  14869. d.r = a.r;
  14870. d.g = a.g;
  14871. d.b = a.b;
  14872. d.a = a.a
  14873. },
  14874. Lma: function() {
  14875. return this.XJ
  14876. },
  14877. zta: function(a) {
  14878. this.XJ = a
  14879. },
  14880. Nma: function() {
  14881. return this.ZJ
  14882. },
  14883. Bta: function(a) {
  14884. this.ZJ = a
  14885. },
  14886. Hpa: function() {
  14887. return this.qw
  14888. },
  14889. rta: function(a) {
  14890. this.qw = a
  14891. },
  14892. dta: function() {
  14893. b.log("saveToFile isn't supported on Cocos2d-Html5")
  14894. },
  14895. Wqa: function() {
  14896. b.log("saveToFile isn't supported on cocos2d-html5");
  14897. return null
  14898. },
  14899. Mqa: function() {},
  14900. Nqa: function() {}
  14901. });
  14902. r = b.Zf.prototype;
  14903. b.i(r, "clearColorVal", r.g9, r.Uca);
  14904. b.Zf.create = function(a, d, e, f) {
  14905. return new b.Zf(a, d, e, f)
  14906. };
  14907. (function() {
  14908. b.Zf.n = function(a) {
  14909. b.e.n.call(this, a);
  14910. this.cb = !0;
  14911. this.df = b.ic("canvas");
  14912. this.Ve = new b.nq(this.df.getContext("2d"))
  14913. };
  14914. var a = b.Zf.n.prototype = Object.create(b.e.n.prototype);
  14915. a.constructor = b.Zf.n;
  14916. a.qf = function() {
  14917. this.df = this.Ve = null
  14918. };
  14919. a.clearStencil = function() {};
  14920. a.cM = function() {};
  14921. a.lfa = function() {};
  14922. a.QC = function(a, e) {
  14923. var f = this.k,
  14924. g = this.df,
  14925. h = b.Db();
  14926. g.width = 0 | a * h;
  14927. g.height = 0 | e * h;
  14928. h = new b.ja;
  14929. h.jd(g);
  14930. h.Tb();
  14931. g = f.sprite = new b.B(h);
  14932. g.sg(b.ONE, b.ONE_MINUS_SRC_ALPHA);
  14933. f.qw = !1;
  14934. f.C(g);
  14935. return !0
  14936. };
  14937. a.Ak = function() {};
  14938. a.Dz = function(a, e, f, g) {
  14939. a = a || 0;
  14940. e = e || 0;
  14941. f = f || 0;
  14942. g = isNaN(g) ? 255 : g;
  14943. var h = this.Ve.getContext(),
  14944. k = this.df;
  14945. h.setTransform(1, 0, 0, 1, 0, 0);
  14946. this.Ve.Fj("rgba(" + (0 | a) + "," + (0 | e) + "," + (0 | f) + "," + g / 255 + ")");
  14947. h.clearRect(0, 0, k.width, k.height);
  14948. h.fillRect(0, 0, k.width, k.height)
  14949. };
  14950. a.end = function() {
  14951. var a = this.k,
  14952. e = b.Db();
  14953. b.oa.Jv(this.Ve, a.ba, e, e)
  14954. };
  14955. a.clearRect = function(a, e, f, g) {
  14956. this.Ve.clearRect(a, e, f, -g)
  14957. };
  14958. a.clearDepth = function() {
  14959. b.log("clearDepth isn't supported on Cocos2d-Html5")
  14960. };
  14961. a.Q = function(a) {
  14962. var e = this.k;
  14963. this.cd(a);
  14964. e.sprite.Q(this);
  14965. this.G = 0
  14966. }
  14967. })();
  14968. (function() {
  14969. b.Zf.p = function(a) {
  14970. b.e.p.call(this, a);
  14971. this.cb = !0;
  14972. this.Eo = this.Zv = this.lk = this.iA = null;
  14973. this.nB = new b.Dh;
  14974. this.pr = new b.Dh;
  14975. this.lA = new b.Dh
  14976. };
  14977. var a = b.Zf.p.prototype = Object.create(b.e.p.prototype);
  14978. a.constructor = b.Zf.p;
  14979. a.cM = function(a, e, f) {
  14980. this.nB.x = a.x;
  14981. this.nB.y = a.y;
  14982. this.pr = e;
  14983. this.lA = f
  14984. };
  14985. a.Eb = function(a) {
  14986. var e = a || b.A;
  14987. a = this.k;
  14988. if (a.qw) {
  14989. a.Ak();
  14990. var f = a.YJ;
  14991. if (f) {
  14992. var g = [0, 0, 0, 0],
  14993. h = 0,
  14994. k = 0;
  14995. f & e.COLOR_BUFFER_BIT && (g = e.getParameter(e.COLOR_CLEAR_VALUE), e.clearColor(a.Co.r / 255, a.Co.g / 255, a.Co.b / 255, a.Co.a /
  14996. 255));
  14997. f & e.DEPTH_BUFFER_BIT && (h = e.getParameter(e.DEPTH_CLEAR_VALUE), e.clearDepth(a.XJ));
  14998. f & e.STENCIL_BUFFER_BIT && (k = e.getParameter(e.STENCIL_CLEAR_VALUE), e.clearStencil(a.ZJ));
  14999. e.clear(f);
  15000. f & e.COLOR_BUFFER_BIT && e.clearColor(g[0], g[1], g[2], g[3]);
  15001. f & e.DEPTH_BUFFER_BIT && e.clearDepth(h);
  15002. f & e.STENCIL_BUFFER_BIT && e.clearStencil(k)
  15003. }
  15004. a.Ne();
  15005. e = a.m;
  15006. for (f = 0; f < e.length; f++) g = e[f], g !== a.sprite && g.f.Q(a.sprite.f);
  15007. a.end()
  15008. }
  15009. };
  15010. a.clearStencil = function(a) {
  15011. var e = b.A,
  15012. f = e.getParameter(e.STENCIL_CLEAR_VALUE);
  15013. e.clearStencil(a);
  15014. e.clear(e.STENCIL_BUFFER_BIT);
  15015. e.clearStencil(f)
  15016. };
  15017. a.qf = function() {
  15018. this.Zv = null;
  15019. var a = b.A;
  15020. a.deleteFramebuffer(this.iA);
  15021. this.Eo && a.deleteRenderbuffer(this.Eo)
  15022. };
  15023. a.lfa = function() {};
  15024. a.QC = function(a, e, f, g) {
  15025. var h = this.k;
  15026. f === b.ja.ou && b.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;");
  15027. var k = b.A,
  15028. m = b.Db();
  15029. this.pr = new b.Dh(0, 0, a, e);
  15030. this.lA = new b.Dh(0, 0, a, e);
  15031. a = 0 | a * m;
  15032. e = 0 | e * m;
  15033. this.lk = k.getParameter(k.FRAMEBUFFER_BINDING);
  15034. var n;
  15035. b.ts.FB ? (m = a, n = e) :
  15036. (m = b.Am(a), n = b.Am(e));
  15037. for (var p = new Uint8Array(m * n * 4), s = 0; s < m * n * 4; s++) p[s] = 0;
  15038. this.mk = f;
  15039. s = h.O = new b.ja;
  15040. if (!h.O) return !1;
  15041. s.Sw(p, h.mk, m, n, b.size(a, e));
  15042. f = k.getParameter(k.RENDERBUFFER_BINDING);
  15043. if (b.ts.rs("GL_QCOM")) {
  15044. this.Zv = new b.ja;
  15045. if (!this.Zv) return !1;
  15046. this.Zv.Sw(p, h.mk, m, n, b.size(a, e))
  15047. }
  15048. this.iA = k.createFramebuffer();
  15049. k.bindFramebuffer(k.FRAMEBUFFER, this.iA);
  15050. k.framebufferTexture2D(k.FRAMEBUFFER, k.COLOR_ATTACHMENT0, k.TEXTURE_2D, s.Xg, 0);
  15051. 0 !== g && (this.Eo = k.createRenderbuffer(), k.bindRenderbuffer(k.RENDERBUFFER,
  15052. this.Eo), k.renderbufferStorage(k.RENDERBUFFER, g, m, n), g === k.DEPTH_STENCIL ? k.framebufferRenderbuffer(k.FRAMEBUFFER, k.DEPTH_STENCIL_ATTACHMENT, k.RENDERBUFFER, this.Eo) : g === k.STENCIL_INDEX || g === k.STENCIL_INDEX8 ? k.framebufferRenderbuffer(k.FRAMEBUFFER, k.STENCIL_ATTACHMENT, k.RENDERBUFFER, this.Eo) : g === k.DEPTH_COMPONENT16 && k.framebufferRenderbuffer(k.FRAMEBUFFER, k.DEPTH_ATTACHMENT, k.RENDERBUFFER, this.Eo));
  15053. k.checkFramebufferStatus(k.FRAMEBUFFER) !== k.FRAMEBUFFER_COMPLETE && b.log("Could not attach texture to the framebuffer");
  15054. s.ML();
  15055. a = h.sprite = new b.B(s);
  15056. a.scaleY = -1;
  15057. a.sg(k.ONE, k.ONE_MINUS_SRC_ALPHA);
  15058. k.bindRenderbuffer(k.RENDERBUFFER, f);
  15059. k.bindFramebuffer(k.FRAMEBUFFER, this.lk);
  15060. h.qw = !1;
  15061. h.C(a);
  15062. return !0
  15063. };
  15064. a.Ak = function() {
  15065. var a = this.k;
  15066. b.tj(b.Pj);
  15067. b.Zw();
  15068. b.tj(b.Oj);
  15069. b.Zw();
  15070. var e = b.A,
  15071. f = b.P;
  15072. f.Sn(f.Ls());
  15073. var g = a.O.U,
  15074. h = b.P.Nw(),
  15075. f = h.width / g.width,
  15076. g = h.height / g.height,
  15077. f = b.j.ca.dK(-1 / f, 1 / f, -1 / g, 1 / g, -1, 1);
  15078. b.Xs(f);
  15079. f = new b.Dh(0, 0, 0, 0);
  15080. f.width = this.lA.width;
  15081. f.height = this.lA.height;
  15082. g = f.height / this.pr.height;
  15083. f.x = f.width / this.pr.width * (this.pr.x -
  15084. this.nB.x);
  15085. f.y = (this.pr.y - this.nB.y) * g;
  15086. e.viewport(f.x, f.y, f.width, f.height);
  15087. this.lk = e.getParameter(e.FRAMEBUFFER_BINDING);
  15088. e.bindFramebuffer(e.FRAMEBUFFER, this.iA);
  15089. b.ts.rs("GL_QCOM") && (e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, this.Zv.Xg, 0), e.clear(e.COLOR_BUFFER_BIT | e.DEPTH_BUFFER_BIT), e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, a.O.Xg, 0))
  15090. };
  15091. a.Dz = function(a, e, f, g, h, k, m) {
  15092. a /= 255;
  15093. e /= 255;
  15094. f /= 255;
  15095. g /= 255;
  15096. var n = b.A,
  15097. p = [0, 0, 0, 0],
  15098. s = 0,
  15099. t = 0;
  15100. m & n.COLOR_BUFFER_BIT &&
  15101. (p = n.getParameter(n.COLOR_CLEAR_VALUE), n.clearColor(a, e, f, g));
  15102. m & n.DEPTH_BUFFER_BIT && (s = n.getParameter(n.DEPTH_CLEAR_VALUE), n.clearDepth(h));
  15103. m & n.STENCIL_BUFFER_BIT && (t = n.getParameter(n.STENCIL_CLEAR_VALUE), n.clearStencil(k));
  15104. n.clear(m);
  15105. m & n.COLOR_BUFFER_BIT && n.clearColor(p[0], p[1], p[2], p[3]);
  15106. m & n.DEPTH_BUFFER_BIT && n.clearDepth(s);
  15107. m & n.STENCIL_BUFFER_BIT && n.clearStencil(t)
  15108. };
  15109. a.end = function() {
  15110. b.oa.G5(this.k.ba);
  15111. var a = b.A,
  15112. e = b.P;
  15113. a.bindFramebuffer(a.FRAMEBUFFER, this.lk);
  15114. e.bM();
  15115. b.tj(b.Pj);
  15116. b.Ys();
  15117. b.tj(b.Oj);
  15118. b.Ys()
  15119. };
  15120. a.clearRect = function() {};
  15121. a.clearDepth = function(a) {
  15122. var e = this.k;
  15123. e.Ak();
  15124. var f = b.A,
  15125. g = f.getParameter(f.DEPTH_CLEAR_VALUE);
  15126. f.clearDepth(a);
  15127. f.clear(f.DEPTH_BUFFER_BIT);
  15128. f.clearDepth(g);
  15129. e.end()
  15130. };
  15131. a.Q = function(a) {
  15132. var e = this.k;
  15133. e.Ta && (b.Zw(), this.cd(a), b.oa.Ec(this), e.sprite.Q(this), this.G = 0, b.Ys())
  15134. }
  15135. })();
  15136. b.oe = b.Rd.extend({
  15137. Bc: null,
  15138. AH: null,
  15139. R: !1,
  15140. Ma: "LabelAtlas",
  15141. ctor: function(a, d, e, f, g) {
  15142. b.Rd.prototype.ctor.call(this);
  15143. this.f.mX();
  15144. d && b.oe.prototype.je.call(this, a, d, e, f, g)
  15145. },
  15146. Ic: function() {
  15147. return b.W === b.ya ? new b.oe.p(this) : new b.oe.n(this)
  15148. },
  15149. Et: function() {
  15150. return this.R
  15151. },
  15152. ls: function(a, d) {
  15153. this.addEventListener("load", a, d)
  15154. },
  15155. je: function(a, d, e, f, g) {
  15156. var h = a + "",
  15157. k, m;
  15158. if (void 0 === e) {
  15159. e = b.Z.sf(d);
  15160. if (1 !== parseInt(e.version, 10)) return b.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"), !1;
  15161. d = b.path.qs(d, e.textureFilename);
  15162. f = b.Db();
  15163. k = parseInt(e.itemWidth, 10) / f;
  15164. m = parseInt(e.itemHeight, 10) / f;
  15165. e = String.fromCharCode(parseInt(e.firstChar, 10))
  15166. } else k = e || 0, m = f || 0, e = g || " ";
  15167. var n = null,
  15168. n = d instanceof b.ja ? d : b.Xa.Vc(d);
  15169. this.R = d = n.R;
  15170. d || (this.Bc = h, n.addEventListener("load", function() {
  15171. this.ea(n, k, m, h.length);
  15172. this.string = this.Bc;
  15173. this.X(this.f.Vb);
  15174. this.dispatchEvent("load")
  15175. }, this));
  15176. return this.ea(n, k, m, h.length) ? (this.AH = e, this.string = h, !0) : !1
  15177. },
  15178. X: function(a) {
  15179. b.Rd.prototype.X.call(this, a);
  15180. this.f.It()
  15181. },
  15182. am: function() {
  15183. return this.Bc
  15184. },
  15185. C: function(a, d, e) {
  15186. this.f.mP(a);
  15187. b.e.prototype.C.call(this, a, d, e)
  15188. },
  15189. It: function() {
  15190. this.f.It()
  15191. },
  15192. Wc: function(a) {
  15193. a = String(a);
  15194. var d = a.length;
  15195. this.Bc = a;
  15196. this.Na(d * this.ul, this.gk);
  15197. this.f.Wc(a);
  15198. this.f.It();
  15199. this.quadsToDraw = d
  15200. }
  15201. });
  15202. var ma = b.oe.prototype;
  15203. b.i(ma, "opacity", ma.bh, ma.Hb);
  15204. b.i(ma, "color", ma.rf, ma.X);
  15205. b.i(ma, "string", ma.am, ma.Wc);
  15206. b.oe.create = function(a, d, e, f, g) {
  15207. return new b.oe(a, d, e, f, g)
  15208. };
  15209. (function() {
  15210. b.oe.n = function(a) {
  15211. b.Rd.n.call(this, a);
  15212. this.cb = !1
  15213. };
  15214. var a = b.oe.n.prototype = Object.create(b.Rd.n.prototype);
  15215. a.constructor = b.oe.n;
  15216. a.mX = function() {
  15217. var a = this.k;
  15218. a.$c = !0;
  15219. a.Zc = !1
  15220. };
  15221. a.It = function() {
  15222. for (var a = this.k, e = a.Bc || "", f = e.length, g = this.O, h = a.ul, k = a.gk, m = 0; m < f; m++) {
  15223. var n = e.charCodeAt(m) - a.AH.charCodeAt(0),
  15224. n = b.rect(parseInt(n % a.Dr, 10) * h, parseInt(n / a.Dr, 10) * k, h, k),
  15225. p = e.charCodeAt(m),
  15226. s = a.gi(m);
  15227. s ? 32 === p ? (s.T(), s.Fc(b.rect(0, 0, 10, 10), !1, b.size(0, 0))) : (s.ea(g, n), s.visible = !0) : (s = new b.B, 32 === p ?
  15228. (s.T(), s.Fc(b.rect(0, 0, 10, 10), !1, b.size(0, 0))) : s.ea(g, n), b.e.prototype.C.call(a, s, 0, m));
  15229. s.I(m * h + h / 2, k / 2)
  15230. }
  15231. };
  15232. a.Wc = function() {
  15233. var a = this.k;
  15234. if (a.m)
  15235. for (var a = a.m, e = a.length, f = 0; f < e; f++) {
  15236. var g = a[f];
  15237. g && !g.N4 && (g.visible = !1)
  15238. }
  15239. };
  15240. a.mP = function() {
  15241. child.N4 = !0
  15242. }
  15243. })();
  15244. (function() {
  15245. b.oe.p = function(a) {
  15246. b.Rd.p.call(this, a);
  15247. this.cb = !0
  15248. };
  15249. var a = b.oe.p.prototype = Object.create(b.Rd.p.prototype);
  15250. a.constructor = b.oe.p;
  15251. a.mX = function() {
  15252. var a = this.k;
  15253. a.$c = !0;
  15254. a.Zc = !0
  15255. };
  15256. a.Eb = function(a) {
  15257. b.Rd.p.prototype.Eb.call(this, a);
  15258. b.t_ && (a = this.k.L(), a = [b.d(0, 0), b.d(a.width, 0), b.d(a.width, a.height), b.d(0, a.height)], b.jl.ei(a, 4, !0))
  15259. };
  15260. a.It = function() {
  15261. var a = this.k,
  15262. e = a.Bc,
  15263. f = e.length,
  15264. g = this.Lb,
  15265. h = g.texture,
  15266. k = h.pixelsWidth,
  15267. h = h.pixelsHeight,
  15268. m = a.ul,
  15269. n = a.gk;
  15270. a.qA || (m = a.ul * b.Db(), n = a.gk * b.Db());
  15271. f > g.se && b.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length");
  15272. for (var p = g.quads, s = this.Vb, s = {
  15273. r: s.r,
  15274. g: s.g,
  15275. b: s.b,
  15276. a: a.ad
  15277. }, t = a.ul, v = 0; v < f; v++) {
  15278. var w = e.charCodeAt(v) - a.AH.charCodeAt(0),
  15279. x = w % a.Dr,
  15280. u = 0 | w / a.Dr,
  15281. y;
  15282. b.Cy ? (x = (2 * x * m + 1) / (2 * k), w = x + (2 * m - 2) / (2 * k), u = (2 * u * n + 1) / (2 * h), y = u + (2 * n - 2) / (2 * h)) : (x = x * m / k, w = x + m / k, u = u * n / h, y = u + n / h);
  15283. var C = p[v],
  15284. F = C.tl,
  15285. G = C.tr,
  15286. D = C.bl,
  15287. C = C.br;
  15288. F.texCoords.u = x;
  15289. F.texCoords.v = u;
  15290. G.texCoords.u = w;
  15291. G.texCoords.v = u;
  15292. D.texCoords.u = x;
  15293. D.texCoords.v = y;
  15294. C.texCoords.u = w;
  15295. C.texCoords.v = y;
  15296. D.vertices.x = v * t;
  15297. D.vertices.y = 0;
  15298. D.vertices.z = 0;
  15299. C.vertices.x = v * t + t;
  15300. C.vertices.y = 0;
  15301. C.vertices.z = 0;
  15302. F.vertices.x = v * t;
  15303. F.vertices.y = a.gk;
  15304. F.vertices.z = 0;
  15305. G.vertices.x = v * t + t;
  15306. G.vertices.y = a.gk;
  15307. G.vertices.z = 0;
  15308. F.colors = s;
  15309. G.colors = s;
  15310. D.colors = s;
  15311. C.colors = s
  15312. }
  15313. 0 < f && (g.dirty = !0, a = g.totalQuads, f > a && g.NV(f - a))
  15314. };
  15315. a.Wc = function(a) {
  15316. a = a.length;
  15317. a > this.Lb.totalQuads && this.Lb.KL(a)
  15318. };
  15319. a.mP = function() {}
  15320. })();
  15321. b.Qga = -1;
  15322. b.xg = b.sb.extend({
  15323. Cb: !1,
  15324. Bc: "",
  15325. Fg: null,
  15326. ev: "",
  15327. zr: "",
  15328. Ju: b.ro,
  15329. Kd: -1,
  15330. GA: !1,
  15331. rA: null,
  15332. uS: null,
  15333. R: !1,
  15334. Ma: "LabelBMFont",
  15335. Ic: function() {
  15336. return b.W === b.ya ? new b.xg.p(this) : new b.xg.n(this)
  15337. },
  15338. JS: function(a, d) {
  15339. d ? this.zr = a : this.Bc = a;
  15340. var e = this.m;
  15341. if (e)
  15342. for (var f = 0; f < e.length; f++) {
  15343. var g = e[f];
  15344. g && g.Ci(!1)
  15345. }
  15346. this.R && (this.gC(), d && this.Di())
  15347. },
  15348. ctor: function(a, d, e, f, g) {
  15349. b.sb.prototype.ctor.call(this);
  15350. this.rA = b.d(0, 0);
  15351. this.uS = [];
  15352. this.$c = this.Zc = !0;
  15353. this.je(a, d, e, f, g)
  15354. },
  15355. Et: function() {
  15356. return this.R
  15357. },
  15358. ls: function(a, d) {
  15359. this.addEventListener("load", a,
  15360. d)
  15361. },
  15362. tf: function() {
  15363. return this.Cb
  15364. },
  15365. Le: function(a) {
  15366. this.Cb = a;
  15367. if (a = this.m)
  15368. for (var d = 0; d < a.length; d++) {
  15369. var e = a[d];
  15370. e && (e.opacityModifyRGB = this.Cb)
  15371. }
  15372. },
  15373. Sm: function() {
  15374. this.f.Sm()
  15375. },
  15376. T: function() {
  15377. return this.je(null, null, null, null, null)
  15378. },
  15379. je: function(a, d, e, f, g) {
  15380. a = a || "";
  15381. this.Fg && b.log("cc.LabelBMFont.initWithString(): re-init is no longer supported");
  15382. if (d) {
  15383. var h = b.Z.sf(d);
  15384. if (!h) return b.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"), !1;
  15385. this.Fg = h;
  15386. this.ev = d;
  15387. d = b.Xa.Vc(h.XT);
  15388. (this.R =
  15389. h = d.R) || d.addEventListener("load", function(a) {
  15390. this.R = !0;
  15391. this.ea(a, this.zr.length);
  15392. this.Wc(this.zr, !0);
  15393. this.dispatchEvent("load")
  15394. }, this)
  15395. } else d = new b.ja, h = new Image, d.jd(h), this.R = !1;
  15396. return this.ea(d, a.length) ? (this.Ju = f || b.dz, this.rA = g || b.d(0, 0), this.Kd = null == e ? -1 : e, this.Hl = 255, this.Qg = b.color(255, 255, 255, 255), this.U.width = 0, this.U.height = 0, this.rb(0.5, 0.5), this.f.iR(), this.Wc(a, !0), !0) : !1
  15397. },
  15398. gC: function() {
  15399. var a = this.f.O || this.textureAtlas.texture,
  15400. d = 0,
  15401. e = b.size(0, 0),
  15402. f = 0,
  15403. g = 1,
  15404. h = this.Bc,
  15405. k = h ? h.length : 0;
  15406. if (0 !== k) {
  15407. var m, n = this.Fg,
  15408. p = n.kba,
  15409. s = n.aK,
  15410. t = n.S8;
  15411. for (m = 0; m < k - 1; m++) 10 === h.charCodeAt(m) && g++;
  15412. var v = s * g,
  15413. g = -(s - s * g),
  15414. w = -1;
  15415. for (m = 0; m < k; m++)
  15416. if (s = h.charCodeAt(m), 0 !== s)
  15417. if (10 === s) d = 0, g -= n.aK;
  15418. else {
  15419. var x = p[w << 16 | s & 65535] || 0,
  15420. u = t[s];
  15421. if (u) {
  15422. var y = b.rect(u.rect.x, u.rect.y, u.rect.width, u.rect.height),
  15423. y = b.Qn(y);
  15424. y.x += this.rA.x;
  15425. y.y += this.rA.y;
  15426. (w = this.gi(m)) ? this.f.vT(w, y, s): (w = new b.B, w.ea(a, y, !1), w.PR = !0, this.C(w, 0, m));
  15427. w.opacityModifyRGB = this.Cb;
  15428. this.f.uT(w);
  15429. y = b.d(d + u.NY + 0.5 * u.rect.width + x, g + (n.aK - u.OY) - 0.5 * y.height *
  15430. b.Db());
  15431. w.I(b.EL(y));
  15432. d += u.vM + x;
  15433. w = s;
  15434. f < d && (f = d)
  15435. } else b.log("cocos2d: LabelBMFont: character not found " + h[m])
  15436. }
  15437. e.width = u && u.vM < u.rect.width ? f - u.vM + u.rect.width : f;
  15438. e.height = v;
  15439. this.Na(b.fY(e))
  15440. }
  15441. },
  15442. Dwa: function(a) {
  15443. var d = this.m;
  15444. if (d)
  15445. for (var e = 0, f = d.length; e < f; e++) {
  15446. var g = d[e];
  15447. g && (g.visible = !1)
  15448. }
  15449. this.Fg && this.gC();
  15450. a || this.Di()
  15451. },
  15452. am: function() {
  15453. return this.zr
  15454. },
  15455. Wc: function(a, d) {
  15456. a = String(a);
  15457. null == d && (d = !0);
  15458. null != a && b.Je(a) || (a += "");
  15459. this.zr = a;
  15460. this.JS(a, d)
  15461. },
  15462. g6: function(a) {
  15463. this.Wc(a, !1)
  15464. },
  15465. wta: function(a) {
  15466. this.Wc(a, !0)
  15467. },
  15468. mA: function(a, d) {
  15469. if (0 >= d) return 0;
  15470. var e = this.gi(a);
  15471. return this.XQ(this.gi(a + d)) - this.XQ(e)
  15472. },
  15473. oG: function(a, d, e, f) {
  15474. for (var g = a[d], h = 0, k = 0; k < d; k++) h += a[k].length;
  15475. var h = h + d - f,
  15476. m = this.mA(h, a[d].length - 1);
  15477. if (m > e && 1 < g.length) {
  15478. f = e / m * g.length | 0;
  15479. for (var k = g.substr(f), n = m - this.mA(h + f, k.length - 1), p, s = 0, t = 0; n > e && 100 > t++;) f *= e / n, f |= 0, k = g.substr(f), n = m - this.mA(h + f, k.length - 1);
  15480. for (t = 0; n < e && 100 > t++;) k && (s = (p = b.M.LT.exec(k)) ? p[0].length : 1, p = k), this.GA && (s = 0), f += s, k = g.substr(f), n = m - this.mA(h + f, k.length - 1);
  15481. f -= s;
  15482. 0 === f &&
  15483. (f = 1, p = p.substr(1));
  15484. e = g.substr(0, f);
  15485. b.M.MY && b.M.fT.test(p || k) && (s = (h = b.M.ER.exec(e)) ? h[0].length : 0, this.GA && (s = 0), f -= s, p = g.substr(f), e = g.substr(0, f));
  15486. b.M.JQ.test(p) && (h = b.M.DR.exec(e)) && e !== h[0] && (s = h[0].length, this.GA && (s = 0), f -= s, p = g.substr(f), e = g.substr(0, f));
  15487. a[d] = p || k;
  15488. a.splice(d, 0, e)
  15489. }
  15490. },
  15491. Di: function() {
  15492. this.string = this.zr;
  15493. var a, d, e;
  15494. if (0 < this.Kd) {
  15495. var f = this.string.split("\n"),
  15496. g = "",
  15497. h = 0,
  15498. k = 0;
  15499. for (a = 0; a < f.length; a++) k = f.length, this.oG(f, a, this.Kd * this.Wb, h), k < f.length && h++, 0 < a && (g += "\n"), g += f[a];
  15500. g += String.fromCharCode(0);
  15501. this.JS(g, !1)
  15502. }
  15503. if (this.Ju !== b.dz)
  15504. for (f = a = 0, g = this.Bc.length, h = [], k = 0; k < g; k++)
  15505. if (10 === this.Bc[k].charCodeAt(0) || 0 === this.Bc[k].charCodeAt(0)) {
  15506. d = 0;
  15507. var m = h.length;
  15508. if (0 === m) f++;
  15509. else if (e = a + m - 1 + f, !(0 > e)) {
  15510. var n = this.gi(e);
  15511. if (null != n) {
  15512. d = n.vd() + n.Nh() / 2;
  15513. n = 0;
  15514. switch (this.Ju) {
  15515. case b.ro:
  15516. n = this.width / 2 - d / 2;
  15517. break;
  15518. case b.jO:
  15519. n = this.width - d
  15520. }
  15521. if (0 !== n)
  15522. for (d = 0; d < m; d++) e = a + d + f, 0 > e || (e = this.gi(e)) && (e.x += n);
  15523. a += m;
  15524. f++;
  15525. h.length = 0
  15526. }
  15527. }
  15528. } else h.push(this.Bc[a])
  15529. },
  15530. Mca: function(a) {
  15531. this.Ju = a;
  15532. this.Di()
  15533. },
  15534. C3: function() {
  15535. return this.Ju
  15536. },
  15537. Rca: function(a) {
  15538. this.Kd = a;
  15539. this.Di()
  15540. },
  15541. YG: function() {
  15542. return this.Kd
  15543. },
  15544. hua: function(a) {
  15545. this.GA = a;
  15546. this.Di()
  15547. },
  15548. Tn: function(a, d) {
  15549. b.e.prototype.Tn.call(this, a, d);
  15550. this.Di()
  15551. },
  15552. oh: function(a) {
  15553. b.e.prototype.oh.call(this, a);
  15554. this.Di()
  15555. },
  15556. ph: function(a) {
  15557. b.e.prototype.ph.call(this, a);
  15558. this.Di()
  15559. },
  15560. Rta: function(a) {
  15561. if (null != a && a !== this.ev) {
  15562. var d = b.Z.sf(a);
  15563. d ? (this.ev = a, this.Fg = d, a = b.Xa.Vc(d.XT), this.R = d = a.R, this.texture = a, this.f.xT(), d ? this.gC() : a.addEventListener("load", function(a) {
  15564. this.R = !0;
  15565. this.texture = a;
  15566. this.gC();
  15567. this.Sm();
  15568. this.Di();
  15569. this.dispatchEvent("load")
  15570. }, this)) : b.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file")
  15571. }
  15572. },
  15573. mna: function() {
  15574. return this.ev
  15575. },
  15576. Oa: function(a) {
  15577. this.f.Oa(a)
  15578. },
  15579. rb: function(a, d) {
  15580. b.e.prototype.rb.call(this, a, d);
  15581. this.Di()
  15582. },
  15583. xI: function(a) {
  15584. b.e.prototype.xI.call(this, a);
  15585. this.Di()
  15586. },
  15587. yI: function(a) {
  15588. b.e.prototype.yI.call(this, a);
  15589. this.Di()
  15590. },
  15591. Gia: function() {},
  15592. lja: function(a, d) {
  15593. var e = 0;
  15594. if (this.d3.lba) {
  15595. var f = this.d3.lba[(a << 16 | d & 65535).toString()];
  15596. f && (e = f.hka)
  15597. }
  15598. return e
  15599. },
  15600. XQ: function(a) {
  15601. return a.vd() *
  15602. this.Wb - a.Nh() * this.Wb * a.TG()
  15603. },
  15604. Yia: function(a) {
  15605. return a.vd() * this.Wb + a.Nh() * this.Wb * a.TG()
  15606. },
  15607. wR: function(a) {
  15608. a = a.charCodeAt(0);
  15609. return 9 <= a && 13 >= a || 32 === a || 133 === a || 160 === a || 5760 === a || 8192 <= a && 8202 >= a || 8232 === a || 8233 === a || 8239 === a || 8287 === a || 12288 === a
  15610. },
  15611. Oja: function(a) {
  15612. var d = a.length;
  15613. if (!(0 >= d) && (d -= 1, this.wR(a[d]))) {
  15614. for (var e = d - 1; 0 <= e; --e)
  15615. if (this.wR(a[e])) d = e;
  15616. else break;
  15617. this.I6(a, d)
  15618. }
  15619. },
  15620. I6: function(a, d) {
  15621. var e = a.length;
  15622. d >= e || 0 > d || a.splice(d, e)
  15623. }
  15624. });
  15625. var na = b.xg.prototype;
  15626. b.zh.prototype.apply(na);
  15627. b.i(na, "string", na.am, na.g6);
  15628. b.i(na, "boundingWidth", na.YG, na.Rca);
  15629. b.i(na, "textAlign", na.C3, na.Mca);
  15630. b.xg.create = function(a, d, e, f, g) {
  15631. return new b.xg(a, d, e, f, g)
  15632. };
  15633. b.w3 = {
  15634. j_: /info [^\n]*(\n|$)/gi,
  15635. jZ: /common [^\n]*(\n|$)/gi,
  15636. c0: /page [^\n]*(\n|$)/gi,
  15637. iZ: /char [^\n]*(\n|$)/gi,
  15638. r_: /kerning [^\n]*(\n|$)/gi,
  15639. l_: /\w+=[^ \r\n]+/gi,
  15640. k_: /^[\-]?\d+$/,
  15641. Cv: function(a) {
  15642. a = a.match(this.l_);
  15643. var d = {};
  15644. if (a)
  15645. for (var e = 0, f = a.length; e < f; e++) {
  15646. var g = a[e],
  15647. h = g.indexOf("\x3d"),
  15648. k = g.substring(0, h),
  15649. g = g.substring(h + 1);
  15650. g.match(this.k_) ? g = parseInt(g) : '"' === g[0] && (g = g.substring(1, g.length - 1));
  15651. d[k] = g
  15652. }
  15653. return d
  15654. },
  15655. Pba: function(a, d) {
  15656. var e = {};
  15657. this.Cv(a.match(this.j_)[0]);
  15658. var f = this.Cv(a.match(this.jZ)[0]);
  15659. e.aK = f.lineHeight;
  15660. if (b.W === b.ya) {
  15661. var g = b.ts.tv;
  15662. (f.scaleW > g.width || f.scaleH > g.height) && b.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported")
  15663. }
  15664. 1 !== f.pages && b.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page");
  15665. f = this.Cv(a.match(this.c0)[0]);
  15666. 0 !== f.id && b.log("cc.LabelBMFont._parseImageFileName() : file could not be found");
  15667. e.XT = b.path.qs(d, f.file);
  15668. for (var h = a.match(this.iZ), k = e.S8 = {}, f = 0, g = h.length; f < g; f++) {
  15669. var m = this.Cv(h[f]);
  15670. k[m.id] = {
  15671. rect: {
  15672. x: m.x,
  15673. y: m.y,
  15674. width: m.width,
  15675. height: m.height
  15676. },
  15677. NY: m.xoffset,
  15678. OY: m.yoffset,
  15679. vM: m.xadvance
  15680. }
  15681. }
  15682. h = e.kba = {};
  15683. if (k = a.match(this.r_))
  15684. for (f = 0, g = k.length; f < g; f++) m = this.Cv(k[f]), h[m.first << 16 | m.second & 65535] = m.amount;
  15685. return e
  15686. },
  15687. load: function(a, d, e, f) {
  15688. var g = this;
  15689. b.Z.cD(a, function(a, e) {
  15690. if (a) return f(a);
  15691. f(null, g.Pba(e, d))
  15692. })
  15693. }
  15694. };
  15695. b.Z.Bj(["fnt"], b.w3);
  15696. (function() {
  15697. b.xg.n = function(a) {
  15698. b.sb.n.call(this, a);
  15699. this.cb = !0
  15700. };
  15701. var a = b.xg.n.prototype = Object.create(b.sb.n.prototype);
  15702. a.constructor = b.xg.n;
  15703. a.Eb = function() {
  15704. void 0
  15705. };
  15706. a.vT = function(a, e, f) {
  15707. 32 === f ? a.Fc(e, !1, b.size(0, 0)) : (a.Fc(e, !1), a.visible = !0)
  15708. };
  15709. a.uT = function(a) {
  15710. a.Vb = this.Vb;
  15711. a.f.va(b.e.V.Ka);
  15712. a.ad = this.ad;
  15713. a.f.va(b.e.V.Ha)
  15714. };
  15715. a.xT = function() {
  15716. var a = this.k;
  15717. a.gc = a.texture
  15718. };
  15719. a.Oa = function(a) {
  15720. for (var e = this.k.m, f = this.Vb, g = 0; g < e.length; g++) {
  15721. var h = e[g],
  15722. k = h.f,
  15723. m = k.Vb;
  15724. if (this.O === k.O || m.r === f.r && m.g === f.g && m.b === f.b) h.texture =
  15725. a
  15726. }
  15727. this.O = a
  15728. };
  15729. a.Sm = b.fa.DB ? function() {
  15730. var a = this.k,
  15731. e = a.xa();
  15732. if (e && 0 < e.L().width) {
  15733. var f = this.gc.Sa;
  15734. if (f) {
  15735. var g = e.Sa,
  15736. h = b.rect(0, 0, f.width, f.height);
  15737. g instanceof HTMLCanvasElement && !a.Gf ? b.B.n.Lo(f, this.Vb, h, g) : (g = b.B.n.Lo(f, this.Vb, h), e = new b.ja, e.jd(g), e.Tb());
  15738. a.Oa(e)
  15739. }
  15740. }
  15741. } : function() {
  15742. var a = this.k,
  15743. e, f = a.xa();
  15744. if (f && 0 < f.L().width && (e = f.Sa)) {
  15745. var g = b.Xa.zC(this.gc.Sa);
  15746. g && (e instanceof HTMLCanvasElement && !this.Gf ? (b.B.n.Ko(e, g, this.Vb, null, e), this.Oa(f)) : (e = b.B.n.Ko(e, g, this.Vb), f = new b.ja, f.jd(e), f.Tb(), a.Oa(f)))
  15747. }
  15748. };
  15749. a.D6 = function(a) {
  15750. b.e.prototype.EY.call(a, this.ad)
  15751. };
  15752. a.C6 = function(a) {
  15753. b.e.prototype.DY.call(a, this.Vb)
  15754. };
  15755. a.iR = function() {}
  15756. })();
  15757. (function() {
  15758. b.xg.p = function(a) {
  15759. b.sb.p.call(this, a);
  15760. this.cb = !0
  15761. };
  15762. var a = b.xg.p.prototype = Object.create(b.sb.p.prototype);
  15763. a.constructor = b.xg.p;
  15764. a.vT = function(a, e) {
  15765. a.Fc(e, !1);
  15766. a.visible = !0
  15767. };
  15768. a.xT = function() {};
  15769. a.Sm = function() {};
  15770. a.D6 = function(a) {
  15771. a.EY(this.ad)
  15772. };
  15773. a.C6 = function(a) {
  15774. a.DY(this.Vb)
  15775. };
  15776. a.iR = function() {
  15777. var a = this.k,
  15778. e = a.textureAtlas.texture;
  15779. a.Cb = e.Jk();
  15780. var f = a.uS = new b.B;
  15781. f.ea(e, b.rect(0, 0, 0, 0), !1);
  15782. f.batchNode = a
  15783. };
  15784. a.Eb = function(a) {
  15785. b.sb.p.prototype.Eb.call(this, a);
  15786. a = this.k;
  15787. if (b.u_) {
  15788. a = a.L();
  15789. var e = b.d(0 | -this.Dg.x,
  15790. 0 | -this.Dg.y);
  15791. a = [b.d(e.x, e.y), b.d(e.x + a.width, e.y), b.d(e.x + a.width, e.y + a.height), b.d(e.x, e.y + a.height)];
  15792. b.jl.tt(0, 255, 0, 255);
  15793. b.jl.ei(a, 4, !0)
  15794. }
  15795. };
  15796. a.uT = function() {}
  15797. })();
  15798. b.oo = b.e.extend({
  15799. texture: null,
  15800. zs: !1,
  15801. Tk: !1,
  15802. H: null,
  15803. op: 0,
  15804. MG: 0,
  15805. Vo: 0,
  15806. DH: 0,
  15807. hn: 0,
  15808. gI: 0,
  15809. aI: null,
  15810. $H: null,
  15811. kb: null,
  15812. ar: null,
  15813. Wg: null,
  15814. Ce: null,
  15815. Pz: null,
  15816. IB: null,
  15817. Ma: "MotionStreak",
  15818. ctor: function(a, d, e, f, g) {
  15819. b.e.prototype.ctor.call(this);
  15820. this.Sh = b.d(0, 0);
  15821. this.H = new b.Gc(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA);
  15822. this.Tk = this.zs = !1;
  15823. this.texture = null;
  15824. this.gI = this.hn = this.DH = this.Vo = this.MG = this.op = 0;
  15825. this.IB = this.Pz = this.Ce = this.Wg = this.ar = this.kb = this.$H = this.aI = null;
  15826. void 0 !== g && this.taa(a, d, e, f, g)
  15827. },
  15828. xa: function() {
  15829. return this.texture
  15830. },
  15831. Oa: function(a) {
  15832. this.texture !== a && (this.texture = a)
  15833. },
  15834. Gk: function() {
  15835. return this.H
  15836. },
  15837. sg: function(a, d) {
  15838. void 0 === d ? this.H = a : (this.H.src = a, this.H.$ = d)
  15839. },
  15840. bh: function() {
  15841. b.log("cc.MotionStreak.getOpacity has not been supported.");
  15842. return 0
  15843. },
  15844. Hb: function() {
  15845. b.log("cc.MotionStreak.setOpacity has not been supported.")
  15846. },
  15847. Le: function() {},
  15848. tf: function() {
  15849. return !1
  15850. },
  15851. Qpa: function() {
  15852. return this.zs
  15853. },
  15854. Qta: function(a) {
  15855. this.zs = a
  15856. },
  15857. eqa: function() {
  15858. return this.Tk
  15859. },
  15860. Pua: function(a) {
  15861. this.Tk = a
  15862. },
  15863. Foa: function() {
  15864. return this.op
  15865. },
  15866. Sua: function(a) {
  15867. this.op =
  15868. a
  15869. },
  15870. taa: function(a, d, e, f, g) {
  15871. if (!g) throw "cc.MotionStreak.initWithFade(): Invalid filename or texture";
  15872. b.Je(g) && (g = b.Xa.Vc(g));
  15873. b.e.prototype.I.call(this, b.d(0, 0));
  15874. this.anchorY = this.anchorX = 0;
  15875. this.ignoreAnchor = !0;
  15876. this.Tk = !1;
  15877. this.zs = !0;
  15878. this.Vo = -1 === d ? e / 5 : d;
  15879. this.Vo *= this.Vo;
  15880. this.op = e;
  15881. this.MG = 1 / a;
  15882. this.DH = a = (0 | 60 * a) + 2;
  15883. this.hn = 0;
  15884. this.$H = new Float32Array(a);
  15885. this.aI = new Float32Array(2 * a);
  15886. this.kb = new Float32Array(4 * a);
  15887. this.Wg = new Float32Array(4 * a);
  15888. this.ar = new Uint8Array(8 * a);
  15889. this.Ce = gl.createBuffer();
  15890. this.IB =
  15891. gl.createBuffer();
  15892. this.Pz = gl.createBuffer();
  15893. this.H.src = gl.SRC_ALPHA;
  15894. this.H.$ = gl.ONE_MINUS_SRC_ALPHA;
  15895. this.texture = g;
  15896. this.color = f;
  15897. this.ot();
  15898. gl.bindBuffer(gl.ARRAY_BUFFER, this.Ce);
  15899. gl.bufferData(gl.ARRAY_BUFFER, this.kb, gl.DYNAMIC_DRAW);
  15900. gl.bindBuffer(gl.ARRAY_BUFFER, this.IB);
  15901. gl.bufferData(gl.ARRAY_BUFFER, this.Wg, gl.DYNAMIC_DRAW);
  15902. gl.bindBuffer(gl.ARRAY_BUFFER, this.Pz);
  15903. gl.bufferData(gl.ARRAY_BUFFER, this.ar, gl.DYNAMIC_DRAW);
  15904. return !0
  15905. },
  15906. nwa: function(a) {
  15907. this.color = a;
  15908. for (var d = this.ar, e = 0, f = 2 * this.hn; e < f; e++) d[4 *
  15909. e] = a.r, d[4 * e + 1] = a.g, d[4 * e + 2] = a.b
  15910. },
  15911. reset: function() {
  15912. this.hn = 0
  15913. },
  15914. I: function(a, d) {
  15915. this.Tk = !0;
  15916. void 0 === d ? (this.Sh.x = a.x, this.Sh.y = a.y) : (this.Sh.x = a, this.Sh.y = d)
  15917. },
  15918. vd: function() {
  15919. return this.Sh.x
  15920. },
  15921. UL: function(a) {
  15922. this.Sh.x = a;
  15923. this.Tk || (this.Tk = !0)
  15924. },
  15925. Qf: function() {
  15926. return this.Sh.y
  15927. },
  15928. NX: function(a) {
  15929. this.Sh.y = a;
  15930. this.Tk || (this.Tk = !0)
  15931. },
  15932. update: function(a) {
  15933. if (this.Tk) {
  15934. this.f.Ae();
  15935. a *= this.MG;
  15936. var d, e, f, g, h = 0,
  15937. k = this.hn,
  15938. m = this.$H,
  15939. n = this.aI,
  15940. p = this.kb,
  15941. s = this.ar;
  15942. for (f = 0; f < k; f++) m[f] -= a, 0 >= m[f] ? h++ : (d = f - h, 0 < h ? (m[d] = m[f], n[2 *
  15943. d] = n[2 * f], n[2 * d + 1] = n[2 * f + 1], g = 2 * f, e = 2 * d, p[2 * e] = p[2 * g], p[2 * e + 1] = p[2 * g + 1], p[2 * (e + 1)] = p[2 * (g + 1)], p[2 * (e + 1) + 1] = p[2 * (g + 1) + 1], g *= 4, e *= 4, s[e + 0] = s[g + 0], s[e + 1] = s[g + 1], s[e + 2] = s[g + 2], s[e + 4] = s[g + 4], s[e + 5] = s[g + 5], s[e + 6] = s[g + 6]) : e = 8 * d, d = 255 * m[d], s[e + 3] = d, s[e + 7] = d);
  15944. k -= h;
  15945. f = !0;
  15946. k >= this.DH ? f = !1 : 0 < k && (a = b.EW(b.d(n[2 * (k - 1)], n[2 * (k - 1) + 1]), this.Sh) < this.Vo, e = 1 === k ? !1 : b.EW(b.d(n[2 * (k - 2)], n[2 * (k - 2) + 1]), this.Sh) < 2 * this.Vo, a || e) && (f = !1);
  15947. f && (n[2 * k] = this.Sh.x, n[2 * k + 1] = this.Sh.y, m[k] = 1, m = 8 * k, f = this.Fw(), s[m] = f.r, s[m + 1] = f.g, s[m +
  15948. 2] = f.b, s[m + 4] = f.r, s[m + 5] = f.g, s[m + 6] = f.b, s[m + 3] = 255, s[m + 7] = 255, 0 < k && this.zs && (1 < k ? b.uM(n, this.op, this.kb, k, 1) : b.uM(n, this.op, this.kb, 0, 2)), k++);
  15949. this.zs || b.uM(n, this.op, this.kb, 0, k);
  15950. if (k && this.gI !== k) {
  15951. n = 1 / k;
  15952. s = this.Wg;
  15953. for (f = 0; f < k; f++) s[4 * f] = 0, s[4 * f + 1] = n * f, s[2 * (2 * f + 1)] = 1, s[2 * (2 * f + 1) + 1] = n * f;
  15954. this.gI = k
  15955. }
  15956. this.hn = k
  15957. }
  15958. },
  15959. Ic: function() {
  15960. return b.W === b.ya ? new b.oo.p(this) : null
  15961. }
  15962. });
  15963. b.oo.create = function(a, d, e, f, g) {
  15964. return new b.oo(a, d, e, f, g)
  15965. };
  15966. b.oo.p = function(a) {
  15967. b.e.p.call(this, a);
  15968. this.cb = !0;
  15969. this.za = b.le.Dc(b.Sj)
  15970. };
  15971. b.oo.p.prototype = Object.create(b.e.p.prototype);
  15972. b.oo.p.prototype.constructor = b.B.p;
  15973. b.oo.p.prototype.Eb = function(a) {
  15974. var d = this.k;
  15975. 1 >= d.hn || !d.texture || !d.texture.R || (a = a || b.A, this.za.jc(), this.za.Ug(this.Mc), b.hd(b.Cq), b.ji(d.H.src, d.H.$), b.Rf(d.texture), a.bindBuffer(a.ARRAY_BUFFER, d.Ce), a.bufferData(a.ARRAY_BUFFER, d.kb, a.DYNAMIC_DRAW), a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, 0, 0), a.bindBuffer(a.ARRAY_BUFFER, d.IB), a.bufferData(a.ARRAY_BUFFER, d.Wg, a.DYNAMIC_DRAW), a.vertexAttribPointer(b.re, 2, a.FLOAT, !1, 0, 0), a.bindBuffer(a.ARRAY_BUFFER, d.Pz), a.bufferData(a.ARRAY_BUFFER, d.ar, a.DYNAMIC_DRAW),
  15976. a.vertexAttribPointer(b.cf, 4, a.UNSIGNED_BYTE, !0, 0, 0), a.drawArrays(a.TRIANGLE_STRIP, 0, 2 * d.hn), b.Of++)
  15977. };
  15978. b.Gi = b.e.extend({
  15979. grid: null,
  15980. Xb: null,
  15981. Hs: function() {
  15982. return this.grid
  15983. },
  15984. hda: function(a) {
  15985. this.grid = a
  15986. },
  15987. Rk: function(a) {
  15988. this.Xb = a
  15989. },
  15990. Mja: function() {
  15991. var a = this.kT,
  15992. d = b.Ob.top,
  15993. e = this.He(),
  15994. f = a.s;
  15995. f[0] = e.a;
  15996. f[4] = e.c;
  15997. f[12] = e.ma;
  15998. f[1] = e.b;
  15999. f[5] = e.K;
  16000. f[13] = e.na;
  16001. f[14] = this.jw;
  16002. d.multiply(a);
  16003. null === this.Mi || this.grid && this.grid.Ln() || (d = this.f.Dg, a = d.x, d = d.y, 0 !== a || 0 !== d ? (b.qF || (a |= 0, d |= 0), b.jW(a, d), this.Mi.rW(), b.jW(-a, -d)) : this.Mi.rW())
  16004. },
  16005. Ic: function() {
  16006. return b.W === b.ya ? new b.Gi.p(this) : new b.e.n(this)
  16007. }
  16008. });
  16009. r = b.Gi.prototype;
  16010. b.i(r, "target", null, r.Rk);
  16011. b.Gi.create = function() {
  16012. return new b.Gi
  16013. };
  16014. (function() {
  16015. b.Gi.p = function(a) {
  16016. b.e.p.call(this, a);
  16017. this.cb = !1;
  16018. this.r4 = new b.wg(this, this.Jba);
  16019. this.s4 = new b.wg(this, this.Kba)
  16020. };
  16021. var a = b.Gi.p.prototype = Object.create(b.e.p.prototype);
  16022. a.constructor = b.Gi.p;
  16023. a.Q = function(a) {
  16024. var e = this.k;
  16025. if (e.Ta) {
  16026. a = a || P(this);
  16027. e.Ga && e.Ga.f && (this.Zd = e.Ga.f.Zd + 1);
  16028. var f = b.Ob;
  16029. f.stack.push(f.top);
  16030. this.cd(a);
  16031. f.top = this.Mc;
  16032. b.oa.Ec(this.r4);
  16033. e.Xb && e.Xb.Q();
  16034. if ((a = e.m) && 0 < a.length) {
  16035. var g = a.length;
  16036. e.Ne();
  16037. for (e = 0; e < g; e++) {
  16038. var h = a[e];
  16039. h && h.Q()
  16040. }
  16041. }
  16042. b.oa.Ec(this.s4);
  16043. this.G = 0;
  16044. f.top = f.stack.pop()
  16045. }
  16046. };
  16047. a.Jba = function() {
  16048. var a = this.k.grid;
  16049. a && a.Hq && a.r7()
  16050. };
  16051. a.Kba = function() {
  16052. var a = this.k.grid;
  16053. a && a.Hq && a.U6(this.k)
  16054. }
  16055. })();
  16056. b.Gwa = function() {
  16057. return {
  16058. x: 0,
  16059. y: 0
  16060. }
  16061. };
  16062. b.Yn = function(a, d) {
  16063. return {
  16064. x: a,
  16065. y: d
  16066. }
  16067. };
  16068. b.wf = function(a, d) {
  16069. return b.Yn(a.x + d.x, a.y + d.y)
  16070. };
  16071. b.Pc = function(a, d) {
  16072. return b.Yn(a.x - d.x, a.y - d.y)
  16073. };
  16074. b.me = function(a, d) {
  16075. return b.Yn(a.x * d, a.y * d)
  16076. };
  16077. b.Kt = function(a) {
  16078. return b.Yn(-a.y, a.x)
  16079. };
  16080. b.uh = function(a) {
  16081. return b.Yn(-a.x, -a.y)
  16082. };
  16083. b.JY = function(a, d) {
  16084. return a.x * d.x + a.y * d.y
  16085. };
  16086. b.Fwa = function(a) {
  16087. return b.Yn(Math.cos(a), Math.sin(a))
  16088. };
  16089. b.Ux = function(a) {
  16090. a = b.ni(b.d(a.x, a.y));
  16091. return b.Yn(a.x, a.y)
  16092. };
  16093. b.zf = function(a) {
  16094. return b.Yn(a.x, a.y)
  16095. };
  16096. b.Za = function(a) {
  16097. return {
  16098. u: a.x,
  16099. v: a.y
  16100. }
  16101. };
  16102. b.LZ = b.e.extend({
  16103. Qa: null,
  16104. H: null,
  16105. Gd: 1,
  16106. ff: null,
  16107. Ma: "DrawNodeCanvas",
  16108. ctor: function() {
  16109. b.e.prototype.ctor.call(this);
  16110. var a = this.f;
  16111. a.Qa = this.Qa = [];
  16112. a.ff = this.ff = b.color(255, 255, 255, 255);
  16113. a.H = this.H = new b.Gc(b.Td, b.Sd);
  16114. this.T()
  16115. },
  16116. Gk: function() {
  16117. return this.H
  16118. },
  16119. sg: function(a, d) {
  16120. void 0 === d ? (this.H.src = a.src, this.H.$ = a.$) : (this.H.src = a, this.H.$ = d)
  16121. },
  16122. SL: function(a) {
  16123. this.Gd = a
  16124. },
  16125. M9: function() {
  16126. return this.Gd
  16127. },
  16128. tt: function(a) {
  16129. var d = this.ff;
  16130. d.r = a.r;
  16131. d.g = a.g;
  16132. d.b = a.b;
  16133. d.a = null == a.a ? 255 : a.a
  16134. },
  16135. Ge: function() {
  16136. return b.color(this.ff.r,
  16137. this.ff.g, this.ff.b, this.ff.a)
  16138. },
  16139. nK: function(a, d, e, f, g) {
  16140. f = null == f ? this.Gd : f;
  16141. g = g || this.Ge();
  16142. null == g.a && (g.a = 255);
  16143. a = [a, b.d(d.x, a.y), d, b.d(a.x, d.y)];
  16144. d = new b.Jm(b.zb.Em);
  16145. d.vh = a;
  16146. d.lineWidth = f;
  16147. d.hm = g;
  16148. d.TC = !0;
  16149. d.fm = !0;
  16150. d.lineCap = "butt";
  16151. if (d.fillColor = e) null == e.a && (e.a = 255), d.UC = !0;
  16152. this.Qa.push(d)
  16153. },
  16154. jK: function(a, d, e, f, g, h, k) {
  16155. h = h || this.Gd;
  16156. k = k || this.Ge();
  16157. null == k.a && (k.a = 255);
  16158. for (var m = 2 * Math.PI / f, n = [], p = 0; p <= f; p++) {
  16159. var s = p * m;
  16160. n.push(b.d(d * Math.cos(s + e) + a.x, d * Math.sin(s + e) + a.y))
  16161. }
  16162. g && n.push(b.d(a.x, a.y));
  16163. a = new b.Jm(b.zb.Em);
  16164. a.vh = n;
  16165. a.lineWidth = h;
  16166. a.hm = k;
  16167. a.TC = !0;
  16168. a.fm = !0;
  16169. this.Qa.push(a)
  16170. },
  16171. mK: function(a, d, e, f, g, h) {
  16172. g = g || this.Gd;
  16173. h = h || this.Ge();
  16174. null == h.a && (h.a = 255);
  16175. for (var k = [], m = 0, n = 0; n < f; n++) k.push(b.d(Math.pow(1 - m, 2) * a.x + 2 * (1 - m) * m * d.x + m * m * e.x, Math.pow(1 - m, 2) * a.y + 2 * (1 - m) * m * d.y + m * m * e.y)), m += 1 / f;
  16176. k.push(b.d(e.x, e.y));
  16177. a = new b.Jm(b.zb.Em);
  16178. a.vh = k;
  16179. a.lineWidth = g;
  16180. a.hm = h;
  16181. a.fm = !0;
  16182. a.lineCap = "round";
  16183. this.Qa.push(a)
  16184. },
  16185. kK: function(a, d, e, f, g, h, k) {
  16186. h = h || this.Gd;
  16187. k = k || this.Ge();
  16188. null == k.a && (k.a = 255);
  16189. for (var m = [], n = 0, p = 0; p < g; p++) m.push(b.d(Math.pow(1 -
  16190. n, 3) * a.x + 3 * Math.pow(1 - n, 2) * n * d.x + 3 * (1 - n) * n * n * e.x + n * n * n * f.x, Math.pow(1 - n, 3) * a.y + 3 * Math.pow(1 - n, 2) * n * d.y + 3 * (1 - n) * n * n * e.y + n * n * n * f.y)), n += 1 / g;
  16191. m.push(b.d(f.x, f.y));
  16192. a = new b.Jm(b.zb.Em);
  16193. a.vh = m;
  16194. a.lineWidth = h;
  16195. a.hm = k;
  16196. a.fm = !0;
  16197. a.lineCap = "round";
  16198. this.Qa.push(a)
  16199. },
  16200. iK: function(a, d, e, f) {
  16201. this.Jp(a, 0.5, d, e, f)
  16202. },
  16203. Jp: function(a, d, e, f, g) {
  16204. f = f || this.Gd;
  16205. g = g || this.Ge();
  16206. null == g.a && (g.a = 255);
  16207. for (var h = [], k, m, n = 1 / a.length, p = 0; p < e + 1; p++) m = p / e, 1 === m ? (k = a.length - 1, m = 1) : (k = 0 | m / n, m = (m - n * k) / n), k = b.cC(b.Nd(a, k - 1), b.Nd(a, k - 0), b.Nd(a, k +
  16208. 1), b.Nd(a, k + 2), d, m), h.push(k);
  16209. a = new b.Jm(b.zb.Em);
  16210. a.vh = h;
  16211. a.lineWidth = f;
  16212. a.hm = g;
  16213. a.fm = !0;
  16214. a.lineCap = "round";
  16215. this.Qa.push(a)
  16216. },
  16217. lK: function(a, d, e) {
  16218. e = e || this.Ge();
  16219. null == e.a && (e.a = 255);
  16220. var f = new b.Jm(b.zb.mO);
  16221. f.vh = [a];
  16222. f.lineWidth = d;
  16223. f.fillColor = e;
  16224. this.Qa.push(f)
  16225. },
  16226. k8: function(a, d, e) {
  16227. if (a && 0 != a.length) {
  16228. e = e || this.Ge();
  16229. null == e.a && (e.a = 255);
  16230. for (var f = 0, g = a.length; f < g; f++) this.lK(a[f], d, e)
  16231. }
  16232. },
  16233. oK: function(a, d, e, f) {
  16234. e = e || this.Gd;
  16235. f = f || this.Ge();
  16236. null == f.a && (f.a = 255);
  16237. var g = new b.Jm(b.zb.Em);
  16238. g.vh = [a, d];
  16239. g.lineWidth = 2 * e;
  16240. g.hm =
  16241. f;
  16242. g.fm = !0;
  16243. g.lineCap = "round";
  16244. this.Qa.push(g)
  16245. },
  16246. o8: function(a, d, e, f) {
  16247. e = null == e ? this.Gd : e;
  16248. f = f || this.Ge();
  16249. null == f.a && (f.a = 255);
  16250. var g = new b.Jm(b.zb.Em);
  16251. g.vh = a;
  16252. g.fillColor = d;
  16253. g.lineWidth = e;
  16254. g.hm = f;
  16255. g.TC = !0;
  16256. g.fm = !0;
  16257. g.lineCap = "round";
  16258. d && (g.UC = !0);
  16259. this.Qa.push(g)
  16260. },
  16261. ei: function(a, d, e, f) {
  16262. for (var g = [], h = 0; h < a.length; h++) g.push(b.d(a[h].x, a[h].y));
  16263. return this.o8(g, d, e, f)
  16264. },
  16265. clear: function() {
  16266. this.Qa.length = 0
  16267. },
  16268. Ic: function() {
  16269. return new b.zb.n(this)
  16270. }
  16271. });
  16272. b.MZ = b.e.extend({
  16273. Uq: 0,
  16274. Qa: null,
  16275. Vl: null,
  16276. mT: null,
  16277. lT: null,
  16278. Gd: 1,
  16279. ff: null,
  16280. H: null,
  16281. Ra: !1,
  16282. Ma: "DrawNodeWebGL",
  16283. Gk: function() {
  16284. return this.H
  16285. },
  16286. sg: function(a, d) {
  16287. void 0 === d ? (this.H.src = a.src, this.H.$ = a.$) : (this.H.src = a, this.H.$ = d)
  16288. },
  16289. ctor: function() {
  16290. b.e.prototype.ctor.call(this);
  16291. this.Qa = [];
  16292. this.H = new b.Gc(b.Td, b.Sd);
  16293. this.ff = b.color(255, 255, 255, 255);
  16294. this.T()
  16295. },
  16296. T: function() {
  16297. return b.e.prototype.T.call(this) ? (this.shaderProgram = b.le.Dc(b.VN), this.bv(64), this.mT = b.A.createBuffer(), this.Ra = !0) : !1
  16298. },
  16299. SL: function(a) {
  16300. this.Gd =
  16301. a
  16302. },
  16303. M9: function() {
  16304. return this.Gd
  16305. },
  16306. tt: function(a) {
  16307. var d = this.ff;
  16308. d.r = a.r;
  16309. d.g = a.g;
  16310. d.b = a.b;
  16311. d.a = a.a
  16312. },
  16313. Ge: function() {
  16314. return b.color(this.ff.r, this.ff.g, this.ff.b, this.ff.a)
  16315. },
  16316. nK: function(a, d, e, f, g) {
  16317. f = null == f ? this.Gd : f;
  16318. g = g || this.Ge();
  16319. null == g.a && (g.a = 255);
  16320. a = [a, b.d(d.x, a.y), d, b.d(a.x, d.y)];
  16321. null == e ? this.aA(a, f, g, !0) : this.ei(a, e, f, g)
  16322. },
  16323. jK: function(a, d, e, f, g, h, k) {
  16324. h = h || this.Gd;
  16325. k = k || this.Ge();
  16326. null == k.a && (k.a = 255);
  16327. var m = 2 * Math.PI / f,
  16328. n = [],
  16329. p;
  16330. for (p = 0; p <= f; p++) {
  16331. var s = p * m;
  16332. n.push(b.d(d * Math.cos(s + e) + a.x, d * Math.sin(s + e) + a.y))
  16333. }
  16334. g &&
  16335. n.push(b.d(a.x, a.y));
  16336. h *= 0.5;
  16337. p = 0;
  16338. for (a = n.length; p < a - 1; p++) this.oK(n[p], n[p + 1], h, k)
  16339. },
  16340. mK: function(a, d, e, f, g, h) {
  16341. g = g || this.Gd;
  16342. h = h || this.Ge();
  16343. null == h.a && (h.a = 255);
  16344. for (var k = [], m = 0, n = 0; n < f; n++) k.push(b.d(Math.pow(1 - m, 2) * a.x + 2 * (1 - m) * m * d.x + m * m * e.x, Math.pow(1 - m, 2) * a.y + 2 * (1 - m) * m * d.y + m * m * e.y)), m += 1 / f;
  16345. k.push(b.d(e.x, e.y));
  16346. this.aA(k, g, h, !1)
  16347. },
  16348. kK: function(a, d, e, f, g, h, k) {
  16349. h = h || this.Gd;
  16350. k = k || this.Ge();
  16351. null == k.a && (k.a = 255);
  16352. for (var m = [], n = 0, p = 0; p < g; p++) m.push(b.d(Math.pow(1 - n, 3) * a.x + 3 * Math.pow(1 - n, 2) * n * d.x + 3 * (1 - n) * n * n *
  16353. e.x + n * n * n * f.x, Math.pow(1 - n, 3) * a.y + 3 * Math.pow(1 - n, 2) * n * d.y + 3 * (1 - n) * n * n * e.y + n * n * n * f.y)), n += 1 / g;
  16354. m.push(b.d(f.x, f.y));
  16355. this.aA(m, h, k, !1)
  16356. },
  16357. iK: function(a, d, e, f) {
  16358. this.Jp(a, 0.5, d, e, f)
  16359. },
  16360. Jp: function(a, d, e, f, g) {
  16361. f = f || this.Gd;
  16362. g = g || this.Ge();
  16363. null == g.a && (g.a = 255);
  16364. for (var h = [], k, m, n = 1 / a.length, p = 0; p < e + 1; p++) m = p / e, 1 === m ? (k = a.length - 1, m = 1) : (k = 0 | m / n, m = (m - n * k) / n), k = b.cC(b.Nd(a, k - 1), b.Nd(a, k - 0), b.Nd(a, k + 1), b.Nd(a, k + 2), d, m), h.push(k);
  16365. f *= 0.5;
  16366. a = 0;
  16367. for (d = h.length; a < d - 1; a++) this.oK(h[a], h[a + 1], f, g)
  16368. },
  16369. B5: function() {
  16370. var a = b.A;
  16371. b.hd(b.Cq);
  16372. a.bindBuffer(a.ARRAY_BUFFER, this.mT);
  16373. this.Ra && (a.bufferData(a.ARRAY_BUFFER, this.Vl, a.STREAM_DRAW), this.Ra = !1);
  16374. var d = b.pe.BYTES_PER_ELEMENT;
  16375. a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, d, 0);
  16376. a.vertexAttribPointer(b.cf, 4, a.UNSIGNED_BYTE, !0, d, 8);
  16377. a.vertexAttribPointer(b.re, 2, a.FLOAT, !1, d, 12);
  16378. a.drawArrays(a.TRIANGLES, 0, 3 * this.Qa.length);
  16379. b.li()
  16380. },
  16381. bv: function(a) {
  16382. var d = this.Qa;
  16383. if (d.length + a > this.Uq) {
  16384. var e = b.tc.BYTES_PER_ELEMENT;
  16385. this.Uq += Math.max(this.Uq, a);
  16386. if (null == d || 0 === d.length) this.Qa = [], this.Vl =
  16387. new ArrayBuffer(e * this.Uq), this.lT = new Uint8Array(this.Vl);
  16388. else {
  16389. a = [];
  16390. for (var f = new ArrayBuffer(e * this.Uq), g = 0; g < d.length; g++) a[g] = new b.tc(d[g].a, d[g].b, d[g].c, f, g * e);
  16391. this.lT = new Uint8Array(f);
  16392. this.Vl = f;
  16393. this.Qa = a
  16394. }
  16395. }
  16396. },
  16397. lK: function(a, d, e) {
  16398. e = e || this.Ge();
  16399. null == e.a && (e.a = 255);
  16400. var f = {
  16401. r: 0 | e.r,
  16402. g: 0 | e.g,
  16403. b: 0 | e.b,
  16404. a: 0 | e.a
  16405. };
  16406. e = {
  16407. vertices: {
  16408. x: a.x - d,
  16409. y: a.y - d
  16410. },
  16411. colors: f,
  16412. texCoords: {
  16413. u: -1,
  16414. v: -1
  16415. }
  16416. };
  16417. var g = {
  16418. vertices: {
  16419. x: a.x - d,
  16420. y: a.y + d
  16421. },
  16422. colors: f,
  16423. texCoords: {
  16424. u: -1,
  16425. v: 1
  16426. }
  16427. },
  16428. h = {
  16429. vertices: {
  16430. x: a.x + d,
  16431. y: a.y + d
  16432. },
  16433. colors: f,
  16434. texCoords: {
  16435. u: 1,
  16436. v: 1
  16437. }
  16438. };
  16439. a = {
  16440. vertices: {
  16441. x: a.x +
  16442. d,
  16443. y: a.y - d
  16444. },
  16445. colors: f,
  16446. texCoords: {
  16447. u: 1,
  16448. v: -1
  16449. }
  16450. };
  16451. this.bv(6);
  16452. this.Qa.push(new b.tc(e, g, h, this.Vl, this.Qa.length * b.tc.BYTES_PER_ELEMENT));
  16453. this.Qa.push(new b.tc(e, h, a, this.Vl, this.Qa.length * b.tc.BYTES_PER_ELEMENT));
  16454. this.Ra = !0
  16455. },
  16456. k8: function(a, d, e) {
  16457. if (a && 0 !== a.length) {
  16458. e = e || this.Ge();
  16459. null == e.a && (e.a = 255);
  16460. for (var f = 0, g = a.length; f < g; f++) this.lK(a[f], d, e)
  16461. }
  16462. },
  16463. oK: function(a, d, e, f) {
  16464. f = f || this.Ge();
  16465. null == f.a && (f.a = 255);
  16466. e = e || 0.5 * this.Gd;
  16467. this.bv(18);
  16468. f = {
  16469. r: 0 | f.r,
  16470. g: 0 | f.g,
  16471. b: 0 | f.b,
  16472. a: 0 | f.a
  16473. };
  16474. var g = b.zf(a);
  16475. d = b.zf(d);
  16476. a = b.Ux(b.Kt(b.Pc(d,
  16477. g)));
  16478. var h = b.Kt(a),
  16479. k = b.me(a, e);
  16480. e = b.me(h, e);
  16481. var m = b.wf(d, b.Pc(k, e)),
  16482. n = b.Pc(d, k),
  16483. p = b.wf(d, k),
  16484. s = b.Pc(g, k),
  16485. t = b.wf(g, k),
  16486. v = b.Pc(g, b.Pc(k, e)),
  16487. g = b.wf(g, b.wf(k, e)),
  16488. w = b.tc.BYTES_PER_ELEMENT,
  16489. x = this.Vl,
  16490. u = this.Qa;
  16491. u.push(new b.tc({
  16492. vertices: b.Pc(d, b.wf(k, e)),
  16493. colors: f,
  16494. texCoords: b.Za(b.uh(b.wf(a, h)))
  16495. }, {
  16496. vertices: m,
  16497. colors: f,
  16498. texCoords: b.Za(b.Pc(a, h))
  16499. }, {
  16500. vertices: n,
  16501. colors: f,
  16502. texCoords: b.Za(b.uh(a))
  16503. }, x, u.length * w));
  16504. u.push(new b.tc({
  16505. vertices: p,
  16506. colors: f,
  16507. texCoords: b.Za(a)
  16508. }, {
  16509. vertices: m,
  16510. colors: f,
  16511. texCoords: b.Za(b.Pc(a, h))
  16512. }, {
  16513. vertices: n,
  16514. colors: f,
  16515. texCoords: b.Za(b.uh(a))
  16516. }, x, u.length * w));
  16517. u.push(new b.tc({
  16518. vertices: p,
  16519. colors: f,
  16520. texCoords: b.Za(a)
  16521. }, {
  16522. vertices: s,
  16523. colors: f,
  16524. texCoords: b.Za(b.uh(a))
  16525. }, {
  16526. vertices: n,
  16527. colors: f,
  16528. texCoords: b.Za(b.uh(a))
  16529. }, x, u.length * w));
  16530. u.push(new b.tc({
  16531. vertices: p,
  16532. colors: f,
  16533. texCoords: b.Za(a)
  16534. }, {
  16535. vertices: s,
  16536. colors: f,
  16537. texCoords: b.Za(b.uh(a))
  16538. }, {
  16539. vertices: t,
  16540. colors: f,
  16541. texCoords: b.Za(a)
  16542. }, x, u.length * w));
  16543. u.push(new b.tc({
  16544. vertices: v,
  16545. colors: f,
  16546. texCoords: b.Za(b.Pc(h, a))
  16547. }, {
  16548. vertices: s,
  16549. colors: f,
  16550. texCoords: b.Za(b.uh(a))
  16551. }, {
  16552. vertices: t,
  16553. colors: f,
  16554. texCoords: b.Za(a)
  16555. },
  16556. x, u.length * w));
  16557. u.push(new b.tc({
  16558. vertices: v,
  16559. colors: f,
  16560. texCoords: b.Za(b.Pc(h, a))
  16561. }, {
  16562. vertices: g,
  16563. colors: f,
  16564. texCoords: b.Za(b.wf(a, h))
  16565. }, {
  16566. vertices: t,
  16567. colors: f,
  16568. texCoords: b.Za(a)
  16569. }, x, u.length * w));
  16570. this.Ra = !0
  16571. },
  16572. ei: function(a, d, e, f) {
  16573. if (null == d) this.aA(a, e, f, !0);
  16574. else {
  16575. null == d.a && (d.a = 255);
  16576. null == f.a && (f.a = 255);
  16577. e = null == e ? this.Gd : e;
  16578. e *= 0.5;
  16579. d = {
  16580. r: 0 | d.r,
  16581. g: 0 | d.g,
  16582. b: 0 | d.b,
  16583. a: 0 | d.a
  16584. };
  16585. f = {
  16586. r: 0 | f.r,
  16587. g: 0 | f.g,
  16588. b: 0 | f.b,
  16589. a: 0 | f.a
  16590. };
  16591. var g = [],
  16592. h, k, m, n, p = a.length;
  16593. for (h = 0; h < p; h++) {
  16594. k = b.zf(a[(h - 1 + p) % p]);
  16595. m = b.zf(a[h]);
  16596. n = b.zf(a[(h + 1) % p]);
  16597. var s = b.Ux(b.Kt(b.Pc(m,
  16598. k)));
  16599. m = b.Ux(b.Kt(b.Pc(n, m)));
  16600. g[h] = {
  16601. offset: b.me(b.wf(s, m), 1 / (b.JY(s, m) + 1)),
  16602. Pn: m
  16603. }
  16604. }
  16605. s = 0 < e;
  16606. this.bv(3 * (3 * p - 2));
  16607. var t = b.tc.BYTES_PER_ELEMENT,
  16608. v = this.Vl,
  16609. w = this.Qa,
  16610. x = !1 == s ? 0.5 : 0;
  16611. for (h = 0; h < p - 2; h++) k = b.Pc(b.zf(a[0]), b.me(g[0].offset, x)), m = b.Pc(b.zf(a[h + 1]), b.me(g[h + 1].offset, x)), n = b.Pc(b.zf(a[h + 2]), b.me(g[h + 2].offset, x)), w.push(new b.tc({
  16612. vertices: k,
  16613. colors: d,
  16614. texCoords: b.Za({
  16615. x: 0,
  16616. y: 0
  16617. })
  16618. }, {
  16619. vertices: m,
  16620. colors: d,
  16621. texCoords: b.Za({
  16622. x: 0,
  16623. y: 0
  16624. })
  16625. }, {
  16626. vertices: n,
  16627. colors: d,
  16628. texCoords: b.Za({
  16629. x: 0,
  16630. y: 0
  16631. })
  16632. }, v, w.length * t));
  16633. for (h = 0; h < p; h++) {
  16634. x =
  16635. (h + 1) % p;
  16636. k = b.zf(a[h]);
  16637. m = b.zf(a[x]);
  16638. n = g[h].Pn;
  16639. var u = g[h].offset,
  16640. y = g[x].offset,
  16641. x = s ? b.Pc(k, b.me(u, e)) : b.Pc(k, b.me(u, 0.5)),
  16642. C = s ? b.Pc(m, b.me(y, e)) : b.Pc(m, b.me(y, 0.5));
  16643. k = s ? b.wf(k, b.me(u, e)) : b.wf(k, b.me(u, 0.5));
  16644. m = s ? b.wf(m, b.me(y, e)) : b.wf(m, b.me(y, 0.5));
  16645. s ? (w.push(new b.tc({
  16646. vertices: x,
  16647. colors: f,
  16648. texCoords: b.Za(b.uh(n))
  16649. }, {
  16650. vertices: C,
  16651. colors: f,
  16652. texCoords: b.Za(b.uh(n))
  16653. }, {
  16654. vertices: m,
  16655. colors: f,
  16656. texCoords: b.Za(n)
  16657. }, v, w.length * t)), w.push(new b.tc({
  16658. vertices: x,
  16659. colors: f,
  16660. texCoords: b.Za(b.uh(n))
  16661. }, {
  16662. vertices: k,
  16663. colors: f,
  16664. texCoords: b.Za(n)
  16665. }, {
  16666. vertices: m,
  16667. colors: f,
  16668. texCoords: b.Za(n)
  16669. }, v, w.length * t))) : (w.push(new b.tc({
  16670. vertices: x,
  16671. colors: d,
  16672. texCoords: b.Za({
  16673. x: 0,
  16674. y: 0
  16675. })
  16676. }, {
  16677. vertices: C,
  16678. colors: d,
  16679. texCoords: b.Za({
  16680. x: 0,
  16681. y: 0
  16682. })
  16683. }, {
  16684. vertices: m,
  16685. colors: d,
  16686. texCoords: b.Za(n)
  16687. }, v, w.length * t)), w.push(new b.tc({
  16688. vertices: x,
  16689. colors: d,
  16690. texCoords: b.Za({
  16691. x: 0,
  16692. y: 0
  16693. })
  16694. }, {
  16695. vertices: k,
  16696. colors: d,
  16697. texCoords: b.Za(n)
  16698. }, {
  16699. vertices: m,
  16700. colors: d,
  16701. texCoords: b.Za(n)
  16702. }, v, w.length * t)))
  16703. }
  16704. this.Ra = !0
  16705. }
  16706. },
  16707. aA: function(a, d, e, f) {
  16708. d = null == d ? this.Gd : d;
  16709. e = e || this.ff;
  16710. null == e.a && (e.a = 255);
  16711. d *= 0.5;
  16712. if (!(0 >= d)) {
  16713. e = {
  16714. r: 0 | e.r,
  16715. g: 0 | e.g,
  16716. b: 0 | e.b,
  16717. a: 0 | e.a
  16718. };
  16719. var g = [],
  16720. h, k, m, n, p = a.length;
  16721. for (h = 0; h < p; h++) {
  16722. k = b.zf(a[(h - 1 + p) % p]);
  16723. m = b.zf(a[h]);
  16724. n = b.zf(a[(h + 1) % p]);
  16725. var s = b.Ux(b.Kt(b.Pc(m, k)));
  16726. m = b.Ux(b.Kt(b.Pc(n, m)));
  16727. g[h] = {
  16728. offset: b.me(b.wf(s, m), 1 / (b.JY(s, m) + 1)),
  16729. Pn: m
  16730. }
  16731. }
  16732. this.bv(3 * (3 * p - 2));
  16733. n = b.tc.BYTES_PER_ELEMENT;
  16734. var s = this.Vl,
  16735. t = this.Qa;
  16736. f = f ? p : p - 1;
  16737. for (h = 0; h < f; h++) {
  16738. var v = (h + 1) % p;
  16739. k = b.zf(a[h]);
  16740. m = b.zf(a[v]);
  16741. var w = g[h].Pn,
  16742. x = g[h].offset,
  16743. v = g[v].offset,
  16744. u = b.Pc(k, b.me(x, d));
  16745. k = b.wf(k, b.me(x, d));
  16746. x = b.wf(m, b.me(v, d));
  16747. t.push(new b.tc({
  16748. vertices: u,
  16749. colors: e,
  16750. texCoords: b.Za(b.uh(w))
  16751. }, {
  16752. vertices: b.Pc(m, b.me(v, d)),
  16753. colors: e,
  16754. texCoords: b.Za(b.uh(w))
  16755. }, {
  16756. vertices: x,
  16757. colors: e,
  16758. texCoords: b.Za(w)
  16759. }, s, t.length * n));
  16760. t.push(new b.tc({
  16761. vertices: u,
  16762. colors: e,
  16763. texCoords: b.Za(b.uh(w))
  16764. }, {
  16765. vertices: k,
  16766. colors: e,
  16767. texCoords: b.Za(w)
  16768. }, {
  16769. vertices: x,
  16770. colors: e,
  16771. texCoords: b.Za(w)
  16772. }, s, t.length * n))
  16773. }
  16774. this.Ra = !0
  16775. }
  16776. },
  16777. clear: function() {
  16778. this.Qa.length = 0;
  16779. this.Ra = !0
  16780. },
  16781. Ic: function() {
  16782. return new b.zb.p(this)
  16783. }
  16784. });
  16785. b.zb = b.W === b.ya ? b.MZ : b.LZ;
  16786. b.zb.create = function() {
  16787. return new b.zb
  16788. };
  16789. b.Jm = function(a) {
  16790. this.type = a;
  16791. this.fillColor = this.vh = null;
  16792. this.lineWidth = 0;
  16793. this.hm = null;
  16794. this.lineCap = "butt";
  16795. this.fm = this.UC = this.TC = !1
  16796. };
  16797. b.zb.mO = 0;
  16798. b.zb.y1 = 1;
  16799. b.zb.Em = 2;
  16800. b.zb.n = function(a) {
  16801. b.e.n.call(this, a);
  16802. this.cb = !0;
  16803. this.H = this.ff = this.Qa = null
  16804. };
  16805. b.zb.n.prototype = Object.create(b.e.n.prototype);
  16806. b.zb.n.prototype.constructor = b.zb.n;
  16807. b.zb.n.prototype.Eb = function(a, d, e) {
  16808. a = a || b.A;
  16809. a.getContext();
  16810. var f = this.k.ad / 255;
  16811. if (0 !== f) {
  16812. a.setTransform(this.jj, d, e);
  16813. a.ut(f);
  16814. this.H && this.H.src === b.SRC_ALPHA && this.H.$ === b.ONE && a.xx("lighter");
  16815. for (var f = this.Qa, g = 0, h = f.length; g < h; g++) {
  16816. var k = f[g];
  16817. switch (k.type) {
  16818. case b.zb.mO:
  16819. this.p3(a, k, d, e);
  16820. break;
  16821. case b.zb.y1:
  16822. this.s3(a, k, d, e);
  16823. break;
  16824. case b.zb.Em:
  16825. this.r3(a, k, d, e)
  16826. }
  16827. }
  16828. }
  16829. };
  16830. b.zb.n.prototype.p3 = function(a, d, e, f) {
  16831. var g = d.fillColor,
  16832. h = d.vh[0];
  16833. d = d.lineWidth;
  16834. var k = a.getContext();
  16835. a.Fj("rgba(" + (0 | g.r) + "," + (0 | g.g) + "," + (0 | g.b) + "," + g.a / 255 + ")");
  16836. k.beginPath();
  16837. k.arc(h.x * e, -h.y * f, d * e, 0, 2 * Math.PI, !1);
  16838. k.closePath();
  16839. k.fill()
  16840. };
  16841. b.zb.n.prototype.s3 = function(a, d, e, f) {
  16842. var g = d.hm,
  16843. h = d.vh[0],
  16844. k = d.vh[1],
  16845. m = d.lineWidth;
  16846. d = d.lineCap;
  16847. var n = a.getContext();
  16848. a.VD("rgba(" + (0 | g.r) + "," + (0 | g.g) + "," + (0 | g.b) + "," + g.a / 255 + ")");
  16849. n.lineWidth = m * e;
  16850. n.beginPath();
  16851. n.lineCap = d;
  16852. n.moveTo(h.x * e, -h.y * f);
  16853. n.lineTo(k.x * e, -k.y * f);
  16854. n.stroke()
  16855. };
  16856. b.zb.n.prototype.r3 = function(a, d, e, f) {
  16857. var g = d.vh,
  16858. h = d.lineCap;
  16859. if (null != g) {
  16860. var k = d.fillColor,
  16861. m = d.lineWidth,
  16862. n = d.hm,
  16863. p = d.TC,
  16864. s = d.UC;
  16865. d = d.fm;
  16866. var t = a.getContext(),
  16867. v = g[0];
  16868. t.lineCap = h;
  16869. k && a.Fj("rgba(" + (0 | k.r) + "," + (0 | k.g) + "," + (0 | k.b) + "," + k.a / 255 + ")");
  16870. m && (t.lineWidth = m * e);
  16871. n && a.VD("rgba(" + (0 | n.r) + "," + (0 | n.g) + "," + (0 | n.b) + "," + n.a / 255 + ")");
  16872. t.beginPath();
  16873. t.moveTo(v.x * e, -v.y * f);
  16874. a = 1;
  16875. for (h = g.length; a < h; a++) t.lineTo(g[a].x * e, -g[a].y * f);
  16876. p && t.closePath();
  16877. s && t.fill();
  16878. d && t.stroke()
  16879. }
  16880. };
  16881. b.zb.p = function(a) {
  16882. b.e.p.call(this, a);
  16883. this.cb = !0
  16884. };
  16885. b.zb.p.prototype = Object.create(b.e.p.prototype);
  16886. b.zb.p.prototype.constructor = b.zb.p;
  16887. b.zb.p.prototype.Eb = function() {
  16888. var a = this.k;
  16889. b.ji(a.H.src, a.H.$);
  16890. this.za.jc();
  16891. this.za.Ug(this.Mc);
  16892. a.B5()
  16893. };
  16894. b.Nx = -1;
  16895. b.yb = b.e.extend({
  16896. ms: 0,
  16897. Lk: !1,
  16898. ob: null,
  16899. Ma: "ClippingNode",
  16900. ctor: function(a) {
  16901. a = a || null;
  16902. b.e.prototype.ctor.call(this);
  16903. this.ob = a;
  16904. this.ms = 1;
  16905. this.Lk = !1;
  16906. this.f.gL()
  16907. },
  16908. T: function(a) {
  16909. this.ob = a;
  16910. this.ms = 1;
  16911. this.Lk = !1;
  16912. this.f.gL();
  16913. return !0
  16914. },
  16915. aa: function() {
  16916. b.e.prototype.aa.call(this);
  16917. this.ob.aa()
  16918. },
  16919. wj: function() {
  16920. b.e.prototype.wj.call(this);
  16921. this.ob.wj()
  16922. },
  16923. eh: function() {
  16924. this.ob.eh();
  16925. b.e.prototype.eh.call(this)
  16926. },
  16927. Pb: function() {
  16928. this.ob.Pb();
  16929. b.e.prototype.Pb.call(this)
  16930. },
  16931. xma: function() {
  16932. return this.ms
  16933. },
  16934. qta: function(a) {
  16935. this.ms = a
  16936. },
  16937. Rpa: function() {
  16938. return this.Lk
  16939. },
  16940. bua: function(a) {
  16941. this.Lk = a
  16942. },
  16943. L$: function() {
  16944. return this.ob
  16945. },
  16946. Hx: function(a) {
  16947. this.ob !== a && this.f.Hx(a)
  16948. },
  16949. Ic: function() {
  16950. return b.W === b.Jb ? new b.yb.n(this) : new b.yb.p(this)
  16951. }
  16952. });
  16953. r = b.yb.prototype;
  16954. b.i(r, "stencil", r.L$, r.Hx);
  16955. b.yb.create = function(a) {
  16956. return new b.yb(a)
  16957. };
  16958. (function() {
  16959. b.yb.n = function(a) {
  16960. b.e.n.call(this, a);
  16961. this.Zq = this.aR = this.cb = !1;
  16962. this.E5 = new b.wg(this, this.M5);
  16963. this.C5 = new b.wg(this, this.a3);
  16964. this.D5 = new b.wg(this, this.H5)
  16965. };
  16966. var a = b.yb.n.prototype = Object.create(b.e.n.prototype);
  16967. a.constructor = b.yb.n;
  16968. a.gL = function() {};
  16969. a.Hx = function(a) {
  16970. if (null != a)
  16971. if (this.k.ob = a, a instanceof b.zb) {
  16972. if (a.Qa)
  16973. for (var e = 0; e < a.Qa.length; e++) a.Qa[e].UC = !1, a.Qa[e].fm = !1;
  16974. a.f.Eb = function(e, g, h) {
  16975. g = g || b.view.oc();
  16976. h = h || b.view.gd();
  16977. e = e || b.A;
  16978. var k = e.getContext(),
  16979. m = this.wp;
  16980. e.save();
  16981. k.transform(m.a,
  16982. m.b, m.c, m.K, m.ma * g, -m.na * h);
  16983. k.beginPath();
  16984. for (m = 0; m < a.Qa.length; m++) {
  16985. var n = a.Qa[m].vh,
  16986. p = n[0];
  16987. k.moveTo(p.x * g, -p.y * h);
  16988. for (var p = 1, s = n.length; p < s; p++) k.lineTo(n[p].x * g, -n[p].y * h)
  16989. }
  16990. e.restore()
  16991. }
  16992. } else a.Ga = this.k
  16993. };
  16994. a.M5 = function(a, e, f) {
  16995. var g = a || b.A;
  16996. a = g.getContext();
  16997. this.Zq ? (e = b.yb.n.YQ(), f = a.canvas, e.width = f.width, e.height = f.height, e.getContext("2d").drawImage(f, 0, 0)) : (g.save(), g.save(), g.setTransform(this.jj, e, f))
  16998. };
  16999. a.IS = function(a) {
  17000. if (a) {
  17001. var e = this.k;
  17002. a.f && a.f.$k && (a.f.$k = e.Lk ? "destination-out" : "destination-in");
  17003. if (a.m) {
  17004. a = a.m;
  17005. for (var e = 0, f = a.length; e < f; e++) this.IS(a[e])
  17006. }
  17007. }
  17008. };
  17009. a.a3 = function(a) {
  17010. var e = this.k;
  17011. a = a || b.A;
  17012. var f = a.getContext();
  17013. this.Zq ? this.IS(e.ob) : (a.restore(), e.Lk && (e = f.canvas, a.save(), f.setTransform(1, 0, 0, 1, 0, 0), f.moveTo(0, 0), f.lineTo(0, e.height), f.lineTo(e.width, e.height), f.lineTo(e.width, 0), f.lineTo(0, 0), a.restore()), f.closePath(), f.clip())
  17014. };
  17015. a.H5 = function(a) {
  17016. var e = b.yb.n.YQ();
  17017. a = a || b.A;
  17018. var f = a.getContext();
  17019. this.Zq ? (f.save(), f.setTransform(1, 0, 0, 1, 0, 0), f.globalCompositeOperation = "destination-over",
  17020. f.drawImage(e, 0, 0), f.restore(), this.G = 0) : a.restore()
  17021. };
  17022. a.transform = function(a, e) {
  17023. b.e.n.prototype.transform.call(this, a, e);
  17024. var f = this.k;
  17025. f.ob && f.ob.f && f.ob.f.transform(this, e)
  17026. };
  17027. a.hG = function(a) {
  17028. if (!0 === a || !1 === a) b.yb.n.prototype.aR = a;
  17029. return b.yb.n.prototype.aR
  17030. };
  17031. a.Q = function(a) {
  17032. var e = this.k;
  17033. if (e.Ta) {
  17034. if (a = a || P(this)) this.Zd = a.Zd + 1;
  17035. this.Zq = !(!this.hG() && e.ob instanceof b.zb);
  17036. if (e.ob && e.ob.visible) {
  17037. this.cd(a);
  17038. b.oa.Ec(this.E5);
  17039. this.Zq ? b.e.n.prototype.Q.call(this, a) : e.ob.Q(this);
  17040. b.oa.Ec(this.C5);
  17041. if (this.Zq) e.ob.Q(this);
  17042. else {
  17043. a = e.m;
  17044. this.hG(!0);
  17045. var f = a.length;
  17046. if (0 < f)
  17047. for (e.Ne(), e = 0; e < f; e++) a[e].f.Q(this);
  17048. this.hG(!1)
  17049. }
  17050. b.oa.Ec(this.D5);
  17051. this.G = 0
  17052. } else this.Lk && b.e.n.prototype.Q.call(this, a)
  17053. }
  17054. };
  17055. b.yb.n.RS = null;
  17056. b.yb.n.YQ = function() {
  17057. return b.yb.n.RS || (b.yb.n.RS = document.createElement("canvas"))
  17058. }
  17059. })();
  17060. (function() {
  17061. b.yb.p = function(a) {
  17062. b.e.p.call(this, a);
  17063. this.cb = !1;
  17064. this.T2 = new b.wg(this, this.X4);
  17065. this.I2 = new b.wg(this, this.V4);
  17066. this.J2 = new b.wg(this, this.W4);
  17067. this.CH = this.HP = this.KP = this.RP = this.OP = this.NP = this.LP = this.QP = this.PP = this.MP = null
  17068. };
  17069. var a = b.yb.p.prototype = Object.create(b.e.p.prototype);
  17070. a.constructor = b.yb.p;
  17071. b.yb.p.qH = null;
  17072. b.yb.p.AJ = null;
  17073. b.yb.p.DA = -1;
  17074. a.gL = function() {
  17075. b.yb.p.qH = !0;
  17076. b.yb.p.qH && (b.Nx = b.A.getParameter(b.A.STENCIL_BITS), 0 >= b.Nx && b.log("Stencil buffer is not enabled."), b.yb.p.qH = !1)
  17077. };
  17078. a.transform = function(a, e) {
  17079. var f = this.k;
  17080. b.e.p.prototype.transform.call(this, a, e);
  17081. f.ob && f.ob.f.transform(this, e)
  17082. };
  17083. a.Q = function(a) {
  17084. var e = this.k;
  17085. if (e.Ta)
  17086. if (e.Ga && e.Ga.f && (this.Zd = e.Ga.f.Zd + 1), 1 > b.Nx) b.e.p.prototype.Q.call(this, a);
  17087. else if (e.ob && e.ob.visible)
  17088. if (b.yb.p.DA + 1 === b.Nx) b.yb.p.AJ = !0, b.yb.p.AJ && (b.log("Nesting more than " + b.Nx + "stencils is not supported. Everything will be drawn without stencil for this node and its children."), b.yb.p.AJ = !1), b.e.p.prototype.Q.call(this, a);
  17089. else {
  17090. b.oa.Ec(this.T2);
  17091. var f = b.Ob;
  17092. f.stack.push(f.top);
  17093. this.cd(a);
  17094. f.top = this.Mc;
  17095. e.ob.f.Q(this);
  17096. b.oa.Ec(this.I2);
  17097. if ((a = e.m) && 0 < a.length) {
  17098. var g = a.length;
  17099. e.Ne();
  17100. for (e = 0; e < g; e++) a[e].f.Q(this)
  17101. }
  17102. b.oa.Ec(this.J2);
  17103. this.G = 0;
  17104. f.top = f.stack.pop()
  17105. } else e.Lk && b.e.p.prototype.Q.call(this, a)
  17106. };
  17107. a.Hx = function(a) {
  17108. var e = this.k;
  17109. e.ob && (e.ob.Ga = null);
  17110. e.ob = a;
  17111. e.ob && (e.ob.Ga = e)
  17112. };
  17113. a.q3 = function() {
  17114. var a = b.Aj;
  17115. a.push();
  17116. a.top.ie();
  17117. var e = b.vj;
  17118. e.push();
  17119. e.top.ie();
  17120. b.jl.NU(b.d(-1, -1), b.d(1, 1), b.color(255, 255, 255, 255));
  17121. a.pop();
  17122. e.pop()
  17123. };
  17124. a.X4 = function(a) {
  17125. var e =
  17126. a || b.A;
  17127. a = this.k;
  17128. b.yb.p.DA++;
  17129. var f = 1 << b.yb.p.DA;
  17130. this.CH = f | f - 1;
  17131. this.KP = e.isEnabled(e.STENCIL_TEST);
  17132. this.RP = e.getParameter(e.STENCIL_WRITEMASK);
  17133. this.MP = e.getParameter(e.STENCIL_FUNC);
  17134. this.PP = e.getParameter(e.STENCIL_REF);
  17135. this.QP = e.getParameter(e.STENCIL_VALUE_MASK);
  17136. this.LP = e.getParameter(e.STENCIL_FAIL);
  17137. this.NP = e.getParameter(e.STENCIL_PASS_DEPTH_FAIL);
  17138. this.OP = e.getParameter(e.STENCIL_PASS_DEPTH_PASS);
  17139. e.enable(e.STENCIL_TEST);
  17140. e.stencilMask(f);
  17141. this.HP = e.getParameter(e.DEPTH_WRITEMASK);
  17142. e.depthMask(!1);
  17143. e.stencilFunc(e.NEVER, f, f);
  17144. e.stencilOp(a.Lk ? e.REPLACE : e.ZERO, e.KEEP, e.KEEP);
  17145. this.q3();
  17146. e.stencilFunc(e.NEVER, f, f);
  17147. e.stencilOp(a.Lk ? e.ZERO : e.REPLACE, e.KEEP, e.KEEP);
  17148. 1 > a.ms && (f = b.le.Dc(b.Yy), e = e.getUniformLocation(f.Qp(), b.UO), b.XK(f.Qp()), f.Kx(e, a.ms), b.OX(a.ob, f))
  17149. };
  17150. a.V4 = function(a) {
  17151. a = a || b.A;
  17152. a.depthMask(this.HP);
  17153. a.stencilFunc(a.EQUAL, this.CH, this.CH);
  17154. a.stencilOp(a.KEEP, a.KEEP, a.KEEP)
  17155. };
  17156. a.W4 = function(a) {
  17157. a = a || b.A;
  17158. a.stencilFunc(this.MP, this.PP, this.QP);
  17159. a.stencilOp(this.LP, this.NP, this.OP);
  17160. a.stencilMask(this.RP);
  17161. this.KP || a.disable(a.STENCIL_TEST);
  17162. b.yb.p.DA--
  17163. }
  17164. })();
  17165. b.tq = b.sa.extend({
  17166. Hq: !1,
  17167. ok: 0,
  17168. da: null,
  17169. O: null,
  17170. Xh: null,
  17171. sr: null,
  17172. Qo: !1,
  17173. za: null,
  17174. XP: 0,
  17175. Ra: !1,
  17176. ctor: function(a, d, e) {
  17177. b.pG();
  17178. this.Hq = !1;
  17179. this.ok = 0;
  17180. this.O = this.da = null;
  17181. this.Xh = b.d(0, 0);
  17182. this.sr = null;
  17183. this.Qo = !1;
  17184. this.za = null;
  17185. this.XP = 0;
  17186. this.Ra = !1;
  17187. void 0 !== a && this.PC(a, d, e)
  17188. },
  17189. Ln: function() {
  17190. return this.Hq
  17191. },
  17192. setActive: function(a) {
  17193. this.Hq = a;
  17194. if (!a) {
  17195. a = b.P;
  17196. var d = a.Ls();
  17197. a.Sn(d)
  17198. }
  17199. },
  17200. ooa: function() {
  17201. return this.ok
  17202. },
  17203. Mda: function(a) {
  17204. this.ok = a
  17205. },
  17206. y9: function() {
  17207. return b.size(this.da.width, this.da.height)
  17208. },
  17209. Zta: function(a) {
  17210. this.da.width =
  17211. parseInt(a.width);
  17212. this.da.height = parseInt(a.height)
  17213. },
  17214. QK: function() {
  17215. return b.d(this.Xh.x, this.Xh.y)
  17216. },
  17217. Qua: function(a) {
  17218. this.Xh.x = a.x;
  17219. this.Xh.y = a.y
  17220. },
  17221. iqa: function() {
  17222. return this.Qo
  17223. },
  17224. $ua: function(a) {
  17225. this.Qo !== a && (this.Qo = a, this.bC())
  17226. },
  17227. PC: function(a, d, e) {
  17228. if (!d) {
  17229. var f = b.P.Nw(),
  17230. g = b.Am(f.width),
  17231. h = b.Am(f.height),
  17232. k = new Uint8Array(g * h * 4);
  17233. if (!k) return b.log("cocos2d: CCGrid: not enough memory."), !1;
  17234. d = new b.ja;
  17235. d.Sw(k, b.ja.Bm, g, h, f);
  17236. if (!d) return b.log("cocos2d: CCGrid: error creating texture"), !1
  17237. }
  17238. this.Hq = !1;
  17239. this.ok =
  17240. 0;
  17241. this.da = a;
  17242. this.O = d;
  17243. this.Qo = e || !1;
  17244. this.Xh.x = this.O.width / a.width;
  17245. this.Xh.y = this.O.height / a.height;
  17246. this.sr = new b.c_;
  17247. if (!this.sr) return !1;
  17248. this.sr.daa(this.O);
  17249. this.za = b.le.Dc(b.uu);
  17250. this.bC();
  17251. return !0
  17252. },
  17253. r7: function() {
  17254. this.XP = b.P.Ls();
  17255. this.sr.s7(this.O)
  17256. },
  17257. U6: function(a) {
  17258. this.sr.V6(this.O);
  17259. if (a && a.Fs().nL()) {
  17260. var d = a.Cw(),
  17261. e = a.f.Mc,
  17262. f = b.j.ca.Fn(d.x, d.y, 0);
  17263. e.multiply(f);
  17264. a.Mi.zH(e);
  17265. f = b.j.ca.Fn(-d.x, -d.y, 0, f);
  17266. e.multiply(f)
  17267. }
  17268. b.Rf(this.O);
  17269. this.$T();
  17270. this.OJ(a);
  17271. this.UT()
  17272. },
  17273. $T: function() {},
  17274. UT: function() {},
  17275. OJ: function() {
  17276. b.log("cc.GridBase.blit(): Shall be overridden in subclass.")
  17277. },
  17278. nt: function() {
  17279. b.log("cc.GridBase.reuse(): Shall be overridden in subclass.")
  17280. },
  17281. bC: function() {
  17282. b.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.")
  17283. },
  17284. mta: function() {
  17285. var a = b.P.Nw();
  17286. b.A.viewport(0, 0, a.width, a.height);
  17287. b.tj(b.Pj);
  17288. b.Ws();
  17289. a = b.j.ca.dK(0, a.width, 0, a.height, -1, 1);
  17290. b.Xs(a);
  17291. b.tj(b.Oj);
  17292. b.Ws();
  17293. b.QX()
  17294. }
  17295. });
  17296. b.tq.create = function(a, d, e) {
  17297. return new b.tq(a, d, e)
  17298. };
  17299. b.Iy = b.tq.extend({
  17300. Zh: null,
  17301. kb: null,
  17302. zl: null,
  17303. gb: null,
  17304. Vg: null,
  17305. Ce: null,
  17306. Kg: null,
  17307. PA: !1,
  17308. TR: !1,
  17309. UR: !1,
  17310. ctor: function(a, d, e) {
  17311. b.tq.prototype.ctor.call(this);
  17312. this.Kg = this.Ce = this.Vg = this.gb = this.zl = this.kb = this.Zh = null;
  17313. void 0 !== a && this.PC(a, d, e)
  17314. },
  17315. ofa: function(a) {
  17316. return this.BC(a)
  17317. },
  17318. BC: function(a) {
  17319. a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.Grid3D.vertex() : Numbers must be integers");
  17320. a = 0 | 3 * (a.x * (this.da.height + 1) + a.y);
  17321. var d = this.kb;
  17322. return new N(d[a], d[a + 1], d[a + 2])
  17323. },
  17324. yd: function(a) {
  17325. return this.qC(a)
  17326. },
  17327. qC: function(a) {
  17328. a.x ===
  17329. (0 | a.x) && a.y === (0 | a.y) || b.log("cc.Grid3D.originalVertex() : Numbers must be integers");
  17330. a = 0 | 3 * (a.x * (this.da.height + 1) + a.y);
  17331. var d = this.zl;
  17332. return new N(d[a], d[a + 1], d[a + 2])
  17333. },
  17334. Me: function(a, d) {
  17335. a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.Grid3D.setVertex() : Numbers must be integers");
  17336. var e = 0 | 3 * (a.x * (this.da.height + 1) + a.y),
  17337. f = this.kb;
  17338. f[e] = d.x;
  17339. f[e + 1] = d.y;
  17340. f[e + 2] = d.z;
  17341. this.Ra = !0
  17342. },
  17343. $T: function() {
  17344. if (this.PA) {
  17345. var a = b.A;
  17346. this.TR = a.isEnabled(a.DEPTH_TEST);
  17347. this.UR = a.getParameter(a.DEPTH_WRITEMASK);
  17348. a.enable(a.DEPTH_TEST);
  17349. a.depthMask(!0)
  17350. }
  17351. },
  17352. UT: function() {
  17353. if (this.PA) {
  17354. var a = b.A;
  17355. this.TR ? a.enable(a.DEPTH_TEST) : a.disable(a.DEPTH_TEST);
  17356. a.depthMask(this.UR)
  17357. }
  17358. },
  17359. OJ: function(a) {
  17360. var d = this.da.width * this.da.height;
  17361. b.hd(b.qe | b.Dq);
  17362. this.za.jc();
  17363. this.za.Ug(a.f.Mc);
  17364. a = b.A;
  17365. var e = this.Ra;
  17366. a.bindBuffer(a.ARRAY_BUFFER, this.Ce);
  17367. e && a.bufferData(a.ARRAY_BUFFER, this.kb, a.DYNAMIC_DRAW);
  17368. a.vertexAttribPointer(b.Ib, 3, a.FLOAT, !1, 0, 0);
  17369. a.bindBuffer(a.ARRAY_BUFFER, this.Vg);
  17370. e && a.bufferData(a.ARRAY_BUFFER, this.Zh, a.DYNAMIC_DRAW);
  17371. a.vertexAttribPointer(b.re,
  17372. 2, a.FLOAT, !1, 0, 0);
  17373. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Kg);
  17374. e && a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.gb, a.STATIC_DRAW);
  17375. a.drawElements(a.TRIANGLES, 6 * d, a.UNSIGNED_SHORT, 0);
  17376. e && (this.Ra = !1);
  17377. b.li()
  17378. },
  17379. nt: function() {
  17380. if (0 < this.ok) {
  17381. for (var a = this.zl, d = this.kb, e = 0, f = this.kb.length; e < f; e++) a[e] = d[e];
  17382. --this.ok
  17383. }
  17384. },
  17385. bC: function() {
  17386. var a = b.A,
  17387. d = this.O.pixelsWidth,
  17388. e = this.O.pixelsHeight,
  17389. f = this.O.U.height,
  17390. g = this.da,
  17391. h = (g.width + 1) * (g.height + 1);
  17392. this.kb = new Float32Array(3 * h);
  17393. this.Zh = new Float32Array(2 * h);
  17394. this.gb = new Uint16Array(g.width *
  17395. g.height * 6);
  17396. this.Ce && a.deleteBuffer(this.Ce);
  17397. this.Ce = a.createBuffer();
  17398. this.Vg && a.deleteBuffer(this.Vg);
  17399. this.Vg = a.createBuffer();
  17400. this.Kg && a.deleteBuffer(this.Kg);
  17401. this.Kg = a.createBuffer();
  17402. for (var k, m, n = this.gb, p = this.Zh, s = this.Qo, t = this.kb, h = 0; h < g.width; ++h)
  17403. for (k = 0; k < g.height; ++k) {
  17404. var v = k * g.width + h;
  17405. m = h * this.Xh.x;
  17406. var w = m + this.Xh.x,
  17407. x = k * this.Xh.y,
  17408. u = x + this.Xh.y,
  17409. y = h * (g.height + 1) + k,
  17410. C = (h + 1) * (g.height + 1) + k,
  17411. F = (h + 1) * (g.height + 1) + (k + 1),
  17412. G = h * (g.height + 1) + (k + 1);
  17413. n[6 * v] = y;
  17414. n[6 * v + 1] = C;
  17415. n[6 * v + 2] = G;
  17416. n[6 * v + 3] = C;
  17417. n[6 * v + 4] =
  17418. F;
  17419. n[6 * v + 5] = G;
  17420. var v = [3 * y, 3 * C, 3 * F, 3 * G],
  17421. D = [{
  17422. x: m,
  17423. y: x,
  17424. z: 0
  17425. }, {
  17426. x: w,
  17427. y: x,
  17428. z: 0
  17429. }, {
  17430. x: w,
  17431. y: u,
  17432. z: 0
  17433. }, {
  17434. x: m,
  17435. y: u,
  17436. z: 0
  17437. }],
  17438. y = [2 * y, 2 * C, 2 * F, 2 * G],
  17439. w = [b.d(m, x), b.d(w, x), b.d(w, u), b.d(m, u)];
  17440. for (m = 0; 4 > m; ++m) t[v[m]] = D[m].x, t[v[m] + 1] = D[m].y, t[v[m] + 2] = D[m].z, p[y[m]] = w[m].x / d, p[y[m] + 1] = s ? (f - w[m].y) / e : w[m].y / e
  17441. }
  17442. this.zl = new Float32Array(this.kb);
  17443. a.bindBuffer(a.ARRAY_BUFFER, this.Ce);
  17444. a.bufferData(a.ARRAY_BUFFER, this.kb, a.DYNAMIC_DRAW);
  17445. a.bindBuffer(a.ARRAY_BUFFER, this.Vg);
  17446. a.bufferData(a.ARRAY_BUFFER, this.Zh, a.DYNAMIC_DRAW);
  17447. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,
  17448. this.Kg);
  17449. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.gb, a.STATIC_DRAW);
  17450. this.Ra = !0
  17451. },
  17452. yda: function(a) {
  17453. this.PA = a
  17454. },
  17455. Ona: function() {
  17456. return this.PA
  17457. }
  17458. });
  17459. b.Iy.create = function(a, d, e) {
  17460. return new b.Iy(a, d, e)
  17461. };
  17462. b.FF = b.tq.extend({
  17463. Zh: null,
  17464. kb: null,
  17465. zl: null,
  17466. gb: null,
  17467. Vg: null,
  17468. Ce: null,
  17469. Kg: null,
  17470. ctor: function(a, d, e) {
  17471. b.tq.prototype.ctor.call(this);
  17472. this.Kg = this.Ce = this.Vg = this.gb = this.zl = this.kb = this.Zh = null;
  17473. void 0 !== a && this.PC(a, d, e)
  17474. },
  17475. sY: function(a) {
  17476. return this.SK(a)
  17477. },
  17478. SK: function(a) {
  17479. a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.TiledGrid3D.tile() : Numbers must be integers");
  17480. a = 12 * (this.da.height * a.x + a.y);
  17481. var d = this.kb;
  17482. return new b.Py(new N(d[a], d[a + 1], d[a + 2]), new N(d[a + 3], d[a + 4], d[a + 5]), new N(d[a + 6], d[a + 7], d[a + 8]), new N(d[a +
  17483. 9], d[a + 10], d[a + 11]))
  17484. },
  17485. HK: function(a) {
  17486. a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.TiledGrid3D.originalTile() : Numbers must be integers");
  17487. a = 12 * (this.da.height * a.x + a.y);
  17488. var d = this.zl;
  17489. return new b.Py(new N(d[a], d[a + 1], d[a + 2]), new N(d[a + 3], d[a + 4], d[a + 5]), new N(d[a + 6], d[a + 7], d[a + 8]), new N(d[a + 9], d[a + 10], d[a + 11]))
  17490. },
  17491. gh: function(a) {
  17492. return this.HK(a)
  17493. },
  17494. Wf: function(a, d) {
  17495. a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.TiledGrid3D.setTile() : Numbers must be integers");
  17496. var e = 12 * (this.da.height * a.x + a.y),
  17497. f = this.kb;
  17498. f[e] = d.bl.x;
  17499. f[e + 1] = d.bl.y;
  17500. f[e + 2] = d.bl.z;
  17501. f[e + 3] = d.br.x;
  17502. f[e + 4] = d.br.y;
  17503. f[e + 5] = d.br.z;
  17504. f[e + 6] = d.tl.x;
  17505. f[e + 7] = d.tl.y;
  17506. f[e + 8] = d.tl.z;
  17507. f[e + 9] = d.tr.x;
  17508. f[e + 10] = d.tr.y;
  17509. f[e + 11] = d.tr.z;
  17510. this.Ra = !0
  17511. },
  17512. OJ: function(a) {
  17513. var d = this.da.width * this.da.height;
  17514. this.za.jc();
  17515. this.za.Ug(a.f.Mc);
  17516. a = b.A;
  17517. var e = this.Ra;
  17518. b.hd(b.qe | b.Dq);
  17519. a.bindBuffer(a.ARRAY_BUFFER, this.Ce);
  17520. e && a.bufferData(a.ARRAY_BUFFER, this.kb, a.DYNAMIC_DRAW);
  17521. a.vertexAttribPointer(b.Ib, 3, a.FLOAT, !1, 0, this.kb);
  17522. a.bindBuffer(a.ARRAY_BUFFER, this.Vg);
  17523. e && a.bufferData(a.ARRAY_BUFFER, this.Zh,
  17524. a.DYNAMIC_DRAW);
  17525. a.vertexAttribPointer(b.re, 2, a.FLOAT, !1, 0, this.Zh);
  17526. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Kg);
  17527. e && a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.gb, a.STATIC_DRAW);
  17528. a.drawElements(a.TRIANGLES, 6 * d, a.UNSIGNED_SHORT, 0);
  17529. e && (this.Ra = !1);
  17530. b.li()
  17531. },
  17532. nt: function() {
  17533. if (0 < this.ok) {
  17534. for (var a = this.kb, d = this.zl, e = 0; e < a.length; e++) d[e] = a[e];
  17535. --this.ok
  17536. }
  17537. },
  17538. bC: function() {
  17539. var a = this.O.pixelsWidth,
  17540. d = this.O.pixelsHeight,
  17541. e = this.O.U.height,
  17542. f = this.da,
  17543. g = f.width * f.height;
  17544. this.kb = new Float32Array(12 * g);
  17545. this.Zh = new Float32Array(8 *
  17546. g);
  17547. this.gb = new Uint16Array(6 * g);
  17548. var h = b.A;
  17549. this.Ce && h.deleteBuffer(this.Ce);
  17550. this.Ce = h.createBuffer();
  17551. this.Vg && h.deleteBuffer(this.Vg);
  17552. this.Vg = h.createBuffer();
  17553. this.Kg && h.deleteBuffer(this.Kg);
  17554. this.Kg = h.createBuffer();
  17555. var k, m, n = 0,
  17556. p = this.Xh,
  17557. s = this.kb,
  17558. t = this.Zh,
  17559. v = this.Qo;
  17560. for (k = 0; k < f.width; k++)
  17561. for (m = 0; m < f.height; m++) {
  17562. var w = k * p.x,
  17563. x = w + p.x,
  17564. u = m * p.y,
  17565. y = u + p.y;
  17566. s[12 * n] = w;
  17567. s[12 * n + 1] = u;
  17568. s[12 * n + 2] = 0;
  17569. s[12 * n + 3] = x;
  17570. s[12 * n + 4] = u;
  17571. s[12 * n + 5] = 0;
  17572. s[12 * n + 6] = w;
  17573. s[12 * n + 7] = y;
  17574. s[12 * n + 8] = 0;
  17575. s[12 * n + 9] = x;
  17576. s[12 * n + 10] = y;
  17577. s[12 * n + 11] = 0;
  17578. var C = u,
  17579. F = y;
  17580. v && (C = e - u, F = e - y);
  17581. t[8 * n] = w / a;
  17582. t[8 * n + 1] = C / d;
  17583. t[8 * n + 2] = x / a;
  17584. t[8 * n + 3] = C / d;
  17585. t[8 * n + 4] = w / a;
  17586. t[8 * n + 5] = F / d;
  17587. t[8 * n + 6] = x / a;
  17588. t[8 * n + 7] = F / d;
  17589. n++
  17590. }
  17591. a = this.gb;
  17592. for (k = 0; k < g; k++) a[6 * k + 0] = 4 * k + 0, a[6 * k + 1] = 4 * k + 1, a[6 * k + 2] = 4 * k + 2, a[6 * k + 3] = 4 * k + 1, a[6 * k + 4] = 4 * k + 2, a[6 * k + 5] = 4 * k + 3;
  17593. this.zl = new Float32Array(this.kb);
  17594. h.bindBuffer(h.ARRAY_BUFFER, this.Ce);
  17595. h.bufferData(h.ARRAY_BUFFER, this.kb, h.DYNAMIC_DRAW);
  17596. h.bindBuffer(h.ARRAY_BUFFER, this.Vg);
  17597. h.bufferData(h.ARRAY_BUFFER, this.Zh, h.DYNAMIC_DRAW);
  17598. h.bindBuffer(h.ELEMENT_ARRAY_BUFFER, this.Kg);
  17599. h.bufferData(h.ELEMENT_ARRAY_BUFFER,
  17600. this.gb, h.DYNAMIC_DRAW);
  17601. this.Ra = !0
  17602. }
  17603. });
  17604. b.FF.create = function(a, d, e) {
  17605. return new b.FF(a, d, e)
  17606. };
  17607. b.c_ = b.sa.extend({
  17608. sz: null,
  17609. lk: null,
  17610. SR: null,
  17611. rr: null,
  17612. ctor: function() {
  17613. b.pG();
  17614. this.rr = b.A;
  17615. this.SR = [0, 0, 0, 0];
  17616. this.lk = null;
  17617. this.sz = this.rr.createFramebuffer()
  17618. },
  17619. daa: function(a) {
  17620. var d = this.rr;
  17621. this.lk = d.getParameter(d.FRAMEBUFFER_BINDING);
  17622. d.bindFramebuffer(d.FRAMEBUFFER, this.sz);
  17623. d.framebufferTexture2D(d.FRAMEBUFFER, d.COLOR_ATTACHMENT0, d.TEXTURE_2D, a.Xg, 0);
  17624. d.checkFramebufferStatus(d.FRAMEBUFFER) !== d.FRAMEBUFFER_COMPLETE && b.log("Frame Grabber: could not attach texture to frmaebuffer");
  17625. d.bindFramebuffer(d.FRAMEBUFFER,
  17626. this.lk)
  17627. },
  17628. s7: function() {
  17629. var a = this.rr;
  17630. this.lk = a.getParameter(a.FRAMEBUFFER_BINDING);
  17631. a.bindFramebuffer(a.FRAMEBUFFER, this.sz);
  17632. this.SR = a.getParameter(a.COLOR_CLEAR_VALUE);
  17633. a.clearColor(0, 0, 0, 0);
  17634. a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT)
  17635. },
  17636. V6: function() {
  17637. var a = this.rr;
  17638. a.bindFramebuffer(a.FRAMEBUFFER, this.lk);
  17639. a.colorMask(!0, !0, !0, !0)
  17640. },
  17641. Tka: function() {
  17642. this.rr.deleteFramebuffer(this.sz)
  17643. }
  17644. });
  17645. b.kq = -1;
  17646. b.ne = b.sa.extend({
  17647. originalTarget: null,
  17648. target: null,
  17649. tag: b.kq,
  17650. ctor: function() {
  17651. this.target = this.originalTarget = null;
  17652. this.tag = b.kq
  17653. },
  17654. copy: function() {
  17655. b.log("copy is deprecated. Please use clone instead.");
  17656. return this.q()
  17657. },
  17658. q: function() {
  17659. var a = new b.ne;
  17660. a.originalTarget = null;
  17661. a.target = null;
  17662. a.tag = this.tag;
  17663. return a
  17664. },
  17665. mi: function() {
  17666. return !0
  17667. },
  17668. N: function(a) {
  17669. this.target = this.originalTarget = a
  17670. },
  17671. stop: function() {
  17672. this.target = null
  17673. },
  17674. step: function() {
  17675. b.log("[Action step]. override me")
  17676. },
  17677. update: function() {
  17678. b.log("[Action update]. override me")
  17679. },
  17680. CV: function() {
  17681. return this.target
  17682. },
  17683. Rk: function(a) {
  17684. this.target = a
  17685. },
  17686. Zna: function() {
  17687. return this.originalTarget
  17688. },
  17689. zua: function(a) {
  17690. this.originalTarget = a
  17691. },
  17692. yC: function() {
  17693. return this.tag
  17694. },
  17695. Ix: function(a) {
  17696. this.tag = a
  17697. },
  17698. CD: function() {},
  17699. Ad: function() {}
  17700. });
  17701. b.action = function() {
  17702. return new b.ne
  17703. };
  17704. b.ne.create = b.action;
  17705. b.Wk = b.ne.extend({
  17706. D: 0,
  17707. ctor: function() {
  17708. b.ne.prototype.ctor.call(this);
  17709. this.D = 0
  17710. },
  17711. Gs: function() {
  17712. return this.D * (this.$h || 1)
  17713. },
  17714. jh: function(a) {
  17715. this.D = a
  17716. },
  17717. reverse: function() {
  17718. b.log("cocos2d: FiniteTimeAction#reverse: Implement me");
  17719. return null
  17720. },
  17721. q: function() {
  17722. return new b.Wk
  17723. }
  17724. });
  17725. b.cz = b.ne.extend({
  17726. mf: 0,
  17727. Kb: null,
  17728. ctor: function(a, d) {
  17729. b.ne.prototype.ctor.call(this);
  17730. this.mf = 0;
  17731. this.Kb = null;
  17732. a && this.ha(a, d)
  17733. },
  17734. wC: function() {
  17735. return this.mf
  17736. },
  17737. Uf: function(a) {
  17738. this.mf = a
  17739. },
  17740. ha: function(a, d) {
  17741. if (!a) throw "cc.Speed.initWithAction(): action must be non nil";
  17742. this.Kb = a;
  17743. this.mf = d;
  17744. return !0
  17745. },
  17746. q: function() {
  17747. var a = new b.cz;
  17748. a.ha(this.Kb.q(), this.mf);
  17749. return a
  17750. },
  17751. N: function(a) {
  17752. b.ne.prototype.N.call(this, a);
  17753. this.Kb.N(a)
  17754. },
  17755. stop: function() {
  17756. this.Kb.stop();
  17757. b.ne.prototype.stop.call(this)
  17758. },
  17759. step: function(a) {
  17760. this.Kb.step(a *
  17761. this.mf)
  17762. },
  17763. mi: function() {
  17764. return this.Kb.mi()
  17765. },
  17766. reverse: function() {
  17767. return new b.cz(this.Kb.reverse(), this.mf)
  17768. },
  17769. yX: function(a) {
  17770. this.Kb !== a && (this.Kb = a)
  17771. },
  17772. EK: function() {
  17773. return this.Kb
  17774. }
  17775. });
  17776. b.speed = function(a, d) {
  17777. return new b.cz(a, d)
  17778. };
  17779. b.cz.create = b.speed;
  17780. b.EE = b.ne.extend({
  17781. mr: null,
  17782. Sq: !1,
  17783. Gz: !1,
  17784. oA: null,
  17785. fv: null,
  17786. CJ: null,
  17787. Up: 0,
  17788. bq: 0,
  17789. hq: 0,
  17790. Fp: 0,
  17791. ctor: function(a, d) {
  17792. b.ne.prototype.ctor.call(this);
  17793. this.mr = null;
  17794. this.Gz = this.Sq = !1;
  17795. this.fv = this.oA = null;
  17796. this.Fp = this.hq = this.bq = this.Up = 0;
  17797. this.CJ = b.rect(0, 0, 0, 0);
  17798. a && (d ? this.Ts(a, d) : this.Ts(a))
  17799. },
  17800. q: function() {
  17801. var a = new b.EE,
  17802. d = this.CJ;
  17803. a.Ts(this.mr, new b.Dh(d.x, d.y, d.width, d.height));
  17804. return a
  17805. },
  17806. Kpa: function() {
  17807. return this.Sq
  17808. },
  17809. vta: function(a) {
  17810. this.Sq = a
  17811. },
  17812. Ts: function(a, d) {
  17813. if (!a) throw "cc.Follow.initWithAction(): followedNode must be non nil";
  17814. d = d || b.rect(0, 0, 0, 0);
  17815. this.mr = a;
  17816. this.CJ = d;
  17817. this.Sq = !b.Iv(d);
  17818. this.Gz = !1;
  17819. var e = b.P.Fa();
  17820. this.fv = b.d(e.width, e.height);
  17821. this.oA = b.lm(this.fv, 0.5);
  17822. this.Sq && (this.Up = -(d.x + d.width - this.fv.x), this.bq = -d.x, this.hq = -d.y, this.Fp = -(d.y + d.height - this.fv.y), this.bq < this.Up && (this.bq = this.Up = (this.Up + this.bq) / 2), this.hq < this.Fp && (this.hq = this.Fp = (this.hq + this.Fp) / 2), this.hq === this.Fp && this.Up === this.bq && (this.Gz = !0));
  17823. return !0
  17824. },
  17825. step: function() {
  17826. var a = this.mr.x,
  17827. d = this.mr.y,
  17828. a = this.oA.x - a,
  17829. d = this.oA.y - d;
  17830. this.target.f.G =
  17831. 0;
  17832. this.Sq ? this.Gz || this.target.I(b.Zg(a, this.Up, this.bq), b.Zg(d, this.Fp, this.hq)) : this.target.I(a, d)
  17833. },
  17834. mi: function() {
  17835. return !this.mr.running
  17836. },
  17837. stop: function() {
  17838. this.target = null;
  17839. b.ne.prototype.stop.call(this)
  17840. }
  17841. });
  17842. b.R8 = function(a, d) {
  17843. return new b.EE(a, d)
  17844. };
  17845. b.EE.create = b.R8;
  17846. b.J = b.Wk.extend({
  17847. Bb: 0,
  17848. jA: !1,
  17849. Lh: null,
  17850. $h: 1,
  17851. Kv: !1,
  17852. gp: !1,
  17853. mf: 1,
  17854. Sv: !1,
  17855. ctor: function(a) {
  17856. this.$h = this.mf = 1;
  17857. this.Kv = !1;
  17858. this.MAX_VALUE = 2;
  17859. this.Sv = this.gp = !1;
  17860. b.Wk.prototype.ctor.call(this);
  17861. void 0 !== a && this.l(a)
  17862. },
  17863. bna: function() {
  17864. return this.Bb
  17865. },
  17866. l: function(a) {
  17867. this.D = 0 === a ? b.Dy : a;
  17868. this.Bb = 0;
  17869. return this.jA = !0
  17870. },
  17871. mi: function() {
  17872. return this.Bb >= this.D
  17873. },
  17874. Ia: function(a) {
  17875. a.Kv = this.Kv;
  17876. a.mf = this.mf;
  17877. a.$h = this.$h;
  17878. a.Lh = this.Lh;
  17879. a.Sv = this.Sv;
  17880. a.gp = this.gp
  17881. },
  17882. lf: function(a) {
  17883. if (this.Lh) {
  17884. a.Lh = [];
  17885. for (var d = 0; d < this.Lh.length; d++) a.Lh.push(this.Lh[d].reverse())
  17886. }
  17887. },
  17888. q: function() {
  17889. var a = new b.J(this.D);
  17890. this.Ia(a);
  17891. return a
  17892. },
  17893. fb: function(a) {
  17894. this.Lh ? this.Lh.length = 0 : this.Lh = [];
  17895. for (var d = 0; d < arguments.length; d++) this.Lh.push(arguments[d]);
  17896. return this
  17897. },
  17898. Yd: function(a) {
  17899. var d = this.Lh;
  17900. if (!d || 0 === d.length) return a;
  17901. for (var e = 0, f = d.length; e < f; e++) a = d[e].fb(a);
  17902. return a
  17903. },
  17904. step: function(a) {
  17905. this.jA ? (this.jA = !1, this.Bb = 0) : this.Bb += a;
  17906. a = this.Bb / (1.192092896E-7 < this.D ? this.D : 1.192092896E-7);
  17907. a = 1 > a ? a : 1;
  17908. this.update(0 < a ? a : 0);
  17909. this.gp && 1 < this.$h && this.mi() && (this.Kv || this.$h--, this.N(this.target),
  17910. this.step(this.Bb - this.D))
  17911. },
  17912. N: function(a) {
  17913. b.ne.prototype.N.call(this, a);
  17914. this.Bb = 0;
  17915. this.jA = !0
  17916. },
  17917. reverse: function() {
  17918. b.log("cc.IntervalAction: reverse not implemented.");
  17919. return null
  17920. },
  17921. cq: function() {
  17922. b.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.")
  17923. },
  17924. Pp: function() {
  17925. b.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.");
  17926. return 0
  17927. },
  17928. speed: function(a) {
  17929. if (0 > a) return b.log("The speed parameter error"), this;
  17930. this.Sv = !0;
  17931. this.mf *= a;
  17932. return this
  17933. },
  17934. wC: function() {
  17935. return this.mf
  17936. },
  17937. Uf: function(a) {
  17938. this.mf = a;
  17939. return this
  17940. },
  17941. repeat: function(a) {
  17942. a = Math.round(a);
  17943. if (isNaN(a) || 1 > a) return b.log("The repeat parameter error"), this;
  17944. this.gp = !0;
  17945. this.$h *= a;
  17946. return this
  17947. },
  17948. ux: function() {
  17949. this.gp = !0;
  17950. this.$h = this.MAX_VALUE;
  17951. this.Kv = !0;
  17952. return this
  17953. }
  17954. });
  17955. b.M6 = function(a) {
  17956. return new b.J(a)
  17957. };
  17958. b.J.create = b.M6;
  17959. b.Fh = b.J.extend({
  17960. Yj: null,
  17961. VS: null,
  17962. qv: 0,
  17963. ctor: function(a) {
  17964. b.J.prototype.ctor.call(this);
  17965. this.Yj = [];
  17966. var d = a instanceof Array ? a : arguments,
  17967. e = d.length - 1;
  17968. 0 <= e && null == d[e] && b.log("parameters should not be ending with null in Javascript");
  17969. if (0 <= e) {
  17970. for (var f = d[0], g = 1; g < e; g++) d[g] && (f = b.Fh.Zk(f, d[g]));
  17971. this.Tp(f, d[e])
  17972. }
  17973. },
  17974. Tp: function(a, d) {
  17975. if (!a || !d) throw "cc.Sequence.initWithTwoActions(): arguments must all be non nil";
  17976. this.l(a.D + d.D);
  17977. this.Yj[0] = a;
  17978. this.Yj[1] = d;
  17979. return !0
  17980. },
  17981. q: function() {
  17982. var a = new b.Fh;
  17983. this.Ia(a);
  17984. a.Tp(this.Yj[0].q(),
  17985. this.Yj[1].q());
  17986. return a
  17987. },
  17988. N: function(a) {
  17989. b.J.prototype.N.call(this, a);
  17990. this.VS = this.Yj[0].D / this.D;
  17991. this.qv = -1
  17992. },
  17993. stop: function() {
  17994. -1 !== this.qv && this.Yj[this.qv].stop();
  17995. b.ne.prototype.stop.call(this)
  17996. },
  17997. update: function(a) {
  17998. var d = 0,
  17999. e = this.VS,
  18000. f = this.Yj,
  18001. g = this.qv;
  18002. a = this.Yd(a);
  18003. a < e ? (a = 0 !== e ? a / e : 1, 0 === d && 1 === g && (f[1].update(0), f[1].stop())) : (d = 1, a = 1 === e ? 1 : (a - e) / (1 - e), -1 === g && (f[0].N(this.target), f[0].update(1), f[0].stop()), g || (f[0].update(1), f[0].stop()));
  18004. f = f[d];
  18005. g === d && f.mi() || (g !== d && f.N(this.target), a *= f.$h, f.update(1 <
  18006. a ? a % 1 : a), this.qv = d)
  18007. },
  18008. reverse: function() {
  18009. var a = b.Fh.Zk(this.Yj[1].reverse(), this.Yj[0].reverse());
  18010. this.Ia(a);
  18011. this.lf(a);
  18012. return a
  18013. }
  18014. });
  18015. b.Fb = function(a) {
  18016. var d = a instanceof Array ? a : arguments;
  18017. 0 < d.length && null == d[d.length - 1] && b.log("parameters should not be ending with null in Javascript");
  18018. for (var e, f, g, h; d && 0 < d.length;)
  18019. for (f = Array.prototype.shift.call(d), h = f.$h || 1, f.gp = !1, f.$h = 1, g = 0, e || (e = f, g = 1), g; g < h; g++) e = b.Fh.Zk(e, f);
  18020. return e
  18021. };
  18022. b.Fh.create = b.Fb;
  18023. b.Fh.Zk = function(a, d) {
  18024. var e = new b.Fh;
  18025. e.Tp(a, d);
  18026. return e
  18027. };
  18028. b.Ry = b.J.extend({
  18029. Kf: 0,
  18030. An: 0,
  18031. HH: 0,
  18032. kP: !1,
  18033. Kb: null,
  18034. ctor: function(a, d) {
  18035. b.J.prototype.ctor.call(this);
  18036. void 0 !== d && this.ha(a, d)
  18037. },
  18038. ha: function(a, d) {
  18039. return this.l(a.D * d) ? (this.Kf = d, this.Kb = a, a instanceof b.xf && (this.kP = !0, this.Kf -= 1), this.An = 0, !0) : !1
  18040. },
  18041. q: function() {
  18042. var a = new b.Ry;
  18043. this.Ia(a);
  18044. a.ha(this.Kb.q(), this.Kf);
  18045. return a
  18046. },
  18047. N: function(a) {
  18048. this.An = 0;
  18049. this.HH = this.Kb.D / this.D;
  18050. b.J.prototype.N.call(this, a);
  18051. this.Kb.N(a)
  18052. },
  18053. stop: function() {
  18054. this.Kb.stop();
  18055. b.ne.prototype.stop.call(this)
  18056. },
  18057. update: function(a) {
  18058. a = this.Yd(a);
  18059. var d = this.Kb,
  18060. e = this.D,
  18061. f = this.Kf,
  18062. g = this.HH;
  18063. if (a >= g) {
  18064. for (; a > g && this.An < f;) d.update(1), this.An++, d.stop(), d.N(this.target), this.HH = g += d.D / e;
  18065. 1 <= a && this.An < f && this.An++;
  18066. this.kP || (this.An === f ? (d.update(1), d.stop()) : d.update(a - (g - d.D / e)))
  18067. } else d.update(a * f % 1)
  18068. },
  18069. mi: function() {
  18070. return this.An === this.Kf
  18071. },
  18072. reverse: function() {
  18073. var a = new b.Ry(this.Kb.reverse(), this.Kf);
  18074. this.Ia(a);
  18075. this.lf(a);
  18076. return a
  18077. },
  18078. yX: function(a) {
  18079. this.Kb !== a && (this.Kb = a)
  18080. },
  18081. EK: function() {
  18082. return this.Kb
  18083. }
  18084. });
  18085. b.repeat = function(a, d) {
  18086. return new b.Ry(a, d)
  18087. };
  18088. b.Ry.create = b.repeat;
  18089. b.Sy = b.J.extend({
  18090. Kb: null,
  18091. ctor: function(a) {
  18092. b.J.prototype.ctor.call(this);
  18093. this.Kb = null;
  18094. a && this.ha(a)
  18095. },
  18096. ha: function(a) {
  18097. if (!a) throw "cc.RepeatForever.initWithAction(): action must be non null";
  18098. this.Kb = a;
  18099. return !0
  18100. },
  18101. q: function() {
  18102. var a = new b.Sy;
  18103. this.Ia(a);
  18104. a.ha(this.Kb.q());
  18105. return a
  18106. },
  18107. N: function(a) {
  18108. b.J.prototype.N.call(this, a);
  18109. this.Kb.N(a)
  18110. },
  18111. step: function(a) {
  18112. var d = this.Kb;
  18113. d.step(a);
  18114. d.mi() && (d.N(this.target), d.step(d.Bb - d.D))
  18115. },
  18116. mi: function() {
  18117. return !1
  18118. },
  18119. reverse: function() {
  18120. var a = new b.Sy(this.Kb.reverse());
  18121. this.Ia(a);
  18122. this.lf(a);
  18123. return a
  18124. },
  18125. yX: function(a) {
  18126. this.Kb !== a && (this.Kb = a)
  18127. },
  18128. EK: function() {
  18129. return this.Kb
  18130. }
  18131. });
  18132. b.ux = function(a) {
  18133. return new b.Sy(a)
  18134. };
  18135. b.Sy.create = b.ux;
  18136. b.Cm = b.J.extend({
  18137. yl: null,
  18138. Wl: null,
  18139. ctor: function(a) {
  18140. b.J.prototype.ctor.call(this);
  18141. this.Wl = this.yl = null;
  18142. var d = a instanceof Array ? a : arguments,
  18143. e = d.length - 1;
  18144. 0 <= e && null == d[e] && b.log("parameters should not be ending with null in Javascript");
  18145. if (0 <= e) {
  18146. for (var f = d[0], g = 1; g < e; g++) d[g] && (f = b.Cm.Zk(f, d[g]));
  18147. this.Tp(f, d[e])
  18148. }
  18149. },
  18150. Tp: function(a, d) {
  18151. if (!a || !d) throw "cc.Spawn.initWithTwoActions(): arguments must all be non null";
  18152. var e = !1,
  18153. f = a.D,
  18154. g = d.D;
  18155. this.l(Math.max(f, g)) && (this.yl = a, this.Wl = d, f > g ? this.Wl = b.Fh.Zk(d, b.Fe(f -
  18156. g)) : f < g && (this.yl = b.Fh.Zk(a, b.Fe(g - f))), e = !0);
  18157. return e
  18158. },
  18159. q: function() {
  18160. var a = new b.Cm;
  18161. this.Ia(a);
  18162. a.Tp(this.yl.q(), this.Wl.q());
  18163. return a
  18164. },
  18165. N: function(a) {
  18166. b.J.prototype.N.call(this, a);
  18167. this.yl.N(a);
  18168. this.Wl.N(a)
  18169. },
  18170. stop: function() {
  18171. this.yl.stop();
  18172. this.Wl.stop();
  18173. b.ne.prototype.stop.call(this)
  18174. },
  18175. update: function(a) {
  18176. a = this.Yd(a);
  18177. this.yl && this.yl.update(a);
  18178. this.Wl && this.Wl.update(a)
  18179. },
  18180. reverse: function() {
  18181. var a = b.Cm.Zk(this.yl.reverse(), this.Wl.reverse());
  18182. this.Ia(a);
  18183. this.lf(a);
  18184. return a
  18185. }
  18186. });
  18187. b.Un = function(a) {
  18188. var d = a instanceof Array ? a : arguments;
  18189. 0 < d.length && null == d[d.length - 1] && b.log("parameters should not be ending with null in Javascript");
  18190. for (var e = d[0], f = 1; f < d.length; f++) null != d[f] && (e = b.Cm.Zk(e, d[f]));
  18191. return e
  18192. };
  18193. b.Cm.create = b.Un;
  18194. b.Cm.Zk = function(a, d) {
  18195. var e = new b.Cm;
  18196. e.Tp(a, d);
  18197. return e
  18198. };
  18199. b.kF = b.J.extend({
  18200. bA: 0,
  18201. Tv: 0,
  18202. VP: 0,
  18203. GG: 0,
  18204. Ur: 0,
  18205. WP: 0,
  18206. ctor: function(a, d, e) {
  18207. b.J.prototype.ctor.call(this);
  18208. void 0 !== d && this.l(a, d, e)
  18209. },
  18210. l: function(a, d, e) {
  18211. return b.J.prototype.l.call(this, a) ? (this.bA = d || 0, this.GG = e || this.bA, !0) : !1
  18212. },
  18213. q: function() {
  18214. var a = new b.kF;
  18215. this.Ia(a);
  18216. a.l(this.D, this.bA, this.GG);
  18217. return a
  18218. },
  18219. N: function(a) {
  18220. b.J.prototype.N.call(this, a);
  18221. var d = a.rotationX % 360,
  18222. e = this.bA - d;
  18223. 180 < e && (e -= 360); - 180 > e && (e += 360);
  18224. this.Tv = d;
  18225. this.VP = e;
  18226. this.Ur = a.rotationY % 360;
  18227. a = this.GG - this.Ur;
  18228. 180 < a && (a -= 360); - 180 > a && (a += 360);
  18229. this.WP = a
  18230. },
  18231. reverse: function() {
  18232. b.log("cc.RotateTo.reverse(): it should be overridden in subclass.")
  18233. },
  18234. update: function(a) {
  18235. a = this.Yd(a);
  18236. this.target && (this.target.rotationX = this.Tv + this.VP * a, this.target.rotationY = this.Ur + this.WP * a)
  18237. }
  18238. });
  18239. b.Ica = function(a, d, e) {
  18240. return new b.kF(a, d, e)
  18241. };
  18242. b.kF.create = b.Ica;
  18243. b.Ty = b.J.extend({
  18244. Ji: 0,
  18245. Tv: 0,
  18246. Cz: 0,
  18247. Ur: 0,
  18248. ctor: function(a, d, e) {
  18249. b.J.prototype.ctor.call(this);
  18250. void 0 !== d && this.l(a, d, e)
  18251. },
  18252. l: function(a, d, e) {
  18253. return b.J.prototype.l.call(this, a) ? (this.Ji = d || 0, this.Cz = e || this.Ji, !0) : !1
  18254. },
  18255. q: function() {
  18256. var a = new b.Ty;
  18257. this.Ia(a);
  18258. a.l(this.D, this.Ji, this.Cz);
  18259. return a
  18260. },
  18261. N: function(a) {
  18262. b.J.prototype.N.call(this, a);
  18263. this.Tv = a.rotationX;
  18264. this.Ur = a.rotationY
  18265. },
  18266. update: function(a) {
  18267. a = this.Yd(a);
  18268. this.target && (this.target.rotationX = this.Tv + this.Ji * a, this.target.rotationY = this.Ur + this.Cz * a)
  18269. },
  18270. reverse: function() {
  18271. var a =
  18272. new b.Ty(this.D, -this.Ji, -this.Cz);
  18273. this.Ia(a);
  18274. this.lf(a);
  18275. return a
  18276. }
  18277. });
  18278. b.$W = function(a, d, e) {
  18279. return new b.Ty(a, d, e)
  18280. };
  18281. b.Ty.create = b.$W;
  18282. b.Xk = b.J.extend({
  18283. nk: null,
  18284. bd: null,
  18285. od: null,
  18286. ctor: function(a, d, e) {
  18287. b.J.prototype.ctor.call(this);
  18288. this.nk = b.d(0, 0);
  18289. this.bd = b.d(0, 0);
  18290. this.od = b.d(0, 0);
  18291. void 0 !== d && this.l(a, d, e)
  18292. },
  18293. l: function(a, d, e) {
  18294. return b.J.prototype.l.call(this, a) ? (void 0 !== d.x && (e = d.y, d = d.x), this.nk.x = d, this.nk.y = e, !0) : !1
  18295. },
  18296. q: function() {
  18297. var a = new b.Xk;
  18298. this.Ia(a);
  18299. a.l(this.D, this.nk);
  18300. return a
  18301. },
  18302. N: function(a) {
  18303. b.J.prototype.N.call(this, a);
  18304. var d = a.vd();
  18305. a = a.Qf();
  18306. this.od.x = d;
  18307. this.od.y = a;
  18308. this.bd.x = d;
  18309. this.bd.y = a
  18310. },
  18311. update: function(a) {
  18312. a = this.Yd(a);
  18313. if (this.target) {
  18314. var d =
  18315. this.nk.x * a;
  18316. a *= this.nk.y;
  18317. var e = this.bd;
  18318. if (b.jy) {
  18319. var f = this.target.Qf(),
  18320. g = this.od;
  18321. e.x = e.x + this.target.vd() - g.x;
  18322. e.y = e.y + f - g.y;
  18323. d += e.x;
  18324. a += e.y;
  18325. g.x = d;
  18326. g.y = a;
  18327. this.target.I(d, a)
  18328. } else this.target.I(e.x + d, e.y + a)
  18329. }
  18330. },
  18331. reverse: function() {
  18332. var a = new b.Xk(this.D, b.d(-this.nk.x, -this.nk.y));
  18333. this.Ia(a);
  18334. this.lf(a);
  18335. return a
  18336. }
  18337. });
  18338. b.moveBy = function(a, d, e) {
  18339. return new b.Xk(a, d, e)
  18340. };
  18341. b.Xk.create = b.moveBy;
  18342. b.PE = b.Xk.extend({
  18343. Ig: null,
  18344. ctor: function(a, d, e) {
  18345. b.Xk.prototype.ctor.call(this);
  18346. this.Ig = b.d(0, 0);
  18347. void 0 !== d && this.l(a, d, e)
  18348. },
  18349. l: function(a, d, e) {
  18350. return b.Xk.prototype.l.call(this, a, d, e) ? (void 0 !== d.x && (e = d.y, d = d.x), this.Ig.x = d, this.Ig.y = e, !0) : !1
  18351. },
  18352. q: function() {
  18353. var a = new b.PE;
  18354. this.Ia(a);
  18355. a.l(this.D, this.Ig);
  18356. return a
  18357. },
  18358. N: function(a) {
  18359. b.Xk.prototype.N.call(this, a);
  18360. this.nk.x = this.Ig.x - a.vd();
  18361. this.nk.y = this.Ig.y - a.Qf()
  18362. }
  18363. });
  18364. b.moveTo = function(a, d, e) {
  18365. return new b.PE(a, d, e)
  18366. };
  18367. b.PE.create = b.moveTo;
  18368. b.qo = b.J.extend({
  18369. dj: 0,
  18370. ej: 0,
  18371. AB: 0,
  18372. BB: 0,
  18373. eA: 0,
  18374. fA: 0,
  18375. eg: 0,
  18376. fg: 0,
  18377. ctor: function(a, d, e) {
  18378. b.J.prototype.ctor.call(this);
  18379. void 0 !== e && this.l(a, d, e)
  18380. },
  18381. l: function(a, d, e) {
  18382. var f = !1;
  18383. b.J.prototype.l.call(this, a) && (this.eA = d, this.fA = e, f = !0);
  18384. return f
  18385. },
  18386. q: function() {
  18387. var a = new b.qo;
  18388. this.Ia(a);
  18389. a.l(this.D, this.eA, this.fA);
  18390. return a
  18391. },
  18392. N: function(a) {
  18393. b.J.prototype.N.call(this, a);
  18394. this.AB = a.skewX % 180;
  18395. this.eg = this.eA - this.AB;
  18396. 180 < this.eg && (this.eg -= 360); - 180 > this.eg && (this.eg += 360);
  18397. this.BB = a.skewY % 360;
  18398. this.fg = this.fA - this.BB;
  18399. 180 < this.fg &&
  18400. (this.fg -= 360); - 180 > this.fg && (this.fg += 360)
  18401. },
  18402. update: function(a) {
  18403. a = this.Yd(a);
  18404. this.target.skewX = this.AB + this.eg * a;
  18405. this.target.skewY = this.BB + this.fg * a
  18406. }
  18407. });
  18408. b.xea = function(a, d, e) {
  18409. return new b.qo(a, d, e)
  18410. };
  18411. b.qo.create = b.xea;
  18412. b.az = b.qo.extend({
  18413. ctor: function(a, d, e) {
  18414. b.qo.prototype.ctor.call(this);
  18415. void 0 !== e && this.l(a, d, e)
  18416. },
  18417. l: function(a, d, e) {
  18418. var f = !1;
  18419. b.qo.prototype.l.call(this, a, d, e) && (this.dj = d, this.ej = e, f = !0);
  18420. return f
  18421. },
  18422. q: function() {
  18423. var a = new b.az;
  18424. this.Ia(a);
  18425. a.l(this.D, this.dj, this.ej);
  18426. return a
  18427. },
  18428. N: function(a) {
  18429. b.qo.prototype.N.call(this, a);
  18430. this.eg = this.dj;
  18431. this.fg = this.ej;
  18432. this.eA = this.AB + this.eg;
  18433. this.fA = this.BB + this.fg
  18434. },
  18435. reverse: function() {
  18436. var a = new b.az(this.D, -this.dj, -this.ej);
  18437. this.Ia(a);
  18438. this.lf(a);
  18439. return a
  18440. }
  18441. });
  18442. b.wea = function(a, d, e) {
  18443. return new b.az(a, d, e)
  18444. };
  18445. b.az.create = b.wea;
  18446. b.ym = b.J.extend({
  18447. bd: null,
  18448. bk: null,
  18449. gf: 0,
  18450. vl: 0,
  18451. od: null,
  18452. ctor: function(a, d, e, f, g) {
  18453. b.J.prototype.ctor.call(this);
  18454. this.bd = b.d(0, 0);
  18455. this.od = b.d(0, 0);
  18456. this.bk = b.d(0, 0);
  18457. void 0 !== f && this.l(a, d, e, f, g)
  18458. },
  18459. l: function(a, d, e, f, g) {
  18460. return b.J.prototype.l.call(this, a) ? (void 0 === g && (g = f, f = e, e = d.y, d = d.x), this.bk.x = d, this.bk.y = e, this.gf = f, this.vl = g, !0) : !1
  18461. },
  18462. q: function() {
  18463. var a = new b.ym;
  18464. this.Ia(a);
  18465. a.l(this.D, this.bk, this.gf, this.vl);
  18466. return a
  18467. },
  18468. N: function(a) {
  18469. b.J.prototype.N.call(this, a);
  18470. var d = a.vd();
  18471. a = a.Qf();
  18472. this.od.x = d;
  18473. this.od.y =
  18474. a;
  18475. this.bd.x = d;
  18476. this.bd.y = a
  18477. },
  18478. update: function(a) {
  18479. a = this.Yd(a);
  18480. if (this.target) {
  18481. var d = a * this.vl % 1,
  18482. d = 4 * this.gf * d * (1 - d),
  18483. d = d + this.bk.y * a;
  18484. a *= this.bk.x;
  18485. var e = this.bd;
  18486. if (b.jy) {
  18487. var f = this.target.Qf(),
  18488. g = this.od;
  18489. e.x = e.x + this.target.vd() - g.x;
  18490. e.y = e.y + f - g.y;
  18491. a += e.x;
  18492. d += e.y;
  18493. g.x = a;
  18494. g.y = d;
  18495. this.target.I(a, d)
  18496. } else this.target.I(e.x + a, e.y + d)
  18497. }
  18498. },
  18499. reverse: function() {
  18500. var a = new b.ym(this.D, b.d(-this.bk.x, -this.bk.y), this.gf, this.vl);
  18501. this.Ia(a);
  18502. this.lf(a);
  18503. return a
  18504. }
  18505. });
  18506. b.iW = function(a, d, e, f, g) {
  18507. return new b.ym(a, d, e, f, g)
  18508. };
  18509. b.ym.create = b.iW;
  18510. b.JE = b.ym.extend({
  18511. Ig: null,
  18512. ctor: function(a, d, e, f, g) {
  18513. b.ym.prototype.ctor.call(this);
  18514. this.Ig = b.d(0, 0);
  18515. void 0 !== f && this.l(a, d, e, f, g)
  18516. },
  18517. l: function(a, d, e, f, g) {
  18518. return b.ym.prototype.l.call(this, a, d, e, f, g) ? (void 0 === g && (e = d.y, d = d.x), this.Ig.x = d, this.Ig.y = e, !0) : !1
  18519. },
  18520. N: function(a) {
  18521. b.ym.prototype.N.call(this, a);
  18522. this.bk.x = this.Ig.x - this.bd.x;
  18523. this.bk.y = this.Ig.y - this.bd.y
  18524. },
  18525. q: function() {
  18526. var a = new b.JE;
  18527. this.Ia(a);
  18528. a.l(this.D, this.Ig, this.gf, this.vl);
  18529. return a
  18530. }
  18531. });
  18532. b.hba = function(a, d, e, f, g) {
  18533. return new b.JE(a, d, e, f, g)
  18534. };
  18535. b.JE.create = b.hba;
  18536. b.aU = function(a, d, e, f) {
  18537. return 0 * Math.pow(1 - f, 3) + 3 * f * Math.pow(1 - f, 2) * a + 3 * Math.pow(f, 2) * (1 - f) * d + Math.pow(f, 3) * e
  18538. };
  18539. b.ho = b.J.extend({
  18540. Fg: null,
  18541. bd: null,
  18542. od: null,
  18543. ctor: function(a, d) {
  18544. b.J.prototype.ctor.call(this);
  18545. this.Fg = [];
  18546. this.bd = b.d(0, 0);
  18547. this.od = b.d(0, 0);
  18548. d && this.l(a, d)
  18549. },
  18550. l: function(a, d) {
  18551. return b.J.prototype.l.call(this, a) ? (this.Fg = d, !0) : !1
  18552. },
  18553. q: function() {
  18554. var a = new b.ho;
  18555. this.Ia(a);
  18556. for (var d = [], e = 0; e < this.Fg.length; e++) {
  18557. var f = this.Fg[e];
  18558. d.push(b.d(f.x, f.y))
  18559. }
  18560. a.l(this.D, d);
  18561. return a
  18562. },
  18563. N: function(a) {
  18564. b.J.prototype.N.call(this, a);
  18565. var d = a.vd();
  18566. a = a.Qf();
  18567. this.od.x = d;
  18568. this.od.y = a;
  18569. this.bd.x = d;
  18570. this.bd.y = a
  18571. },
  18572. update: function(a) {
  18573. a = this.Yd(a);
  18574. if (this.target) {
  18575. var d = this.Fg,
  18576. e = b.aU(d[0].x, d[1].x, d[2].x, a);
  18577. a = b.aU(d[0].y, d[1].y, d[2].y, a);
  18578. d = this.bd;
  18579. if (b.jy) {
  18580. var f = this.target.Qf(),
  18581. g = this.od;
  18582. d.x = d.x + this.target.vd() - g.x;
  18583. d.y = d.y + f - g.y;
  18584. e += d.x;
  18585. a += d.y;
  18586. g.x = e;
  18587. g.y = a;
  18588. this.target.I(e, a)
  18589. } else this.target.I(d.x + e, d.y + a)
  18590. }
  18591. },
  18592. reverse: function() {
  18593. var a = this.Fg,
  18594. a = [b.yj(a[1], b.zL(a[2])), b.yj(a[0], b.zL(a[2])), b.zL(a[2])],
  18595. a = new b.ho(this.D, a);
  18596. this.Ia(a);
  18597. this.lf(a);
  18598. return a
  18599. }
  18600. });
  18601. b.u7 = function(a, d) {
  18602. return new b.ho(a, d)
  18603. };
  18604. b.ho.create = b.u7;
  18605. b.iE = b.ho.extend({
  18606. LB: null,
  18607. ctor: function(a, d) {
  18608. b.ho.prototype.ctor.call(this);
  18609. this.LB = [];
  18610. d && this.l(a, d)
  18611. },
  18612. l: function(a, d) {
  18613. return b.J.prototype.l.call(this, a) ? (this.LB = d, !0) : !1
  18614. },
  18615. q: function() {
  18616. var a = new b.iE;
  18617. this.Ia(a);
  18618. a.l(this.D, this.LB);
  18619. return a
  18620. },
  18621. N: function(a) {
  18622. b.ho.prototype.N.call(this, a);
  18623. a = this.bd;
  18624. var d = this.LB,
  18625. e = this.Fg;
  18626. e[0] = b.zd(d[0], a);
  18627. e[1] = b.zd(d[1], a);
  18628. e[2] = b.zd(d[2], a)
  18629. }
  18630. });
  18631. b.v7 = function(a, d) {
  18632. return new b.iE(a, d)
  18633. };
  18634. b.iE.create = b.v7;
  18635. b.yq = b.J.extend({
  18636. Wb: 1,
  18637. Sc: 1,
  18638. Uv: 1,
  18639. Vv: 1,
  18640. hr: 0,
  18641. ir: 0,
  18642. eg: 0,
  18643. fg: 0,
  18644. ctor: function(a, d, e) {
  18645. b.J.prototype.ctor.call(this);
  18646. void 0 !== d && this.l(a, d, e)
  18647. },
  18648. l: function(a, d, e) {
  18649. return b.J.prototype.l.call(this, a) ? (this.hr = d, this.ir = null != e ? e : d, !0) : !1
  18650. },
  18651. q: function() {
  18652. var a = new b.yq;
  18653. this.Ia(a);
  18654. a.l(this.D, this.hr, this.ir);
  18655. return a
  18656. },
  18657. N: function(a) {
  18658. b.J.prototype.N.call(this, a);
  18659. this.Uv = a.scaleX;
  18660. this.Vv = a.scaleY;
  18661. this.eg = this.hr - this.Uv;
  18662. this.fg = this.ir - this.Vv
  18663. },
  18664. update: function(a) {
  18665. a = this.Yd(a);
  18666. this.target && (this.target.scaleX = this.Uv +
  18667. this.eg * a, this.target.scaleY = this.Vv + this.fg * a)
  18668. }
  18669. });
  18670. b.rg = function(a, d, e) {
  18671. return new b.yq(a, d, e)
  18672. };
  18673. b.yq.create = b.rg;
  18674. b.Zy = b.yq.extend({
  18675. N: function(a) {
  18676. b.yq.prototype.N.call(this, a);
  18677. this.eg = this.Uv * this.hr - this.Uv;
  18678. this.fg = this.Vv * this.ir - this.Vv
  18679. },
  18680. reverse: function() {
  18681. var a = new b.Zy(this.D, 1 / this.hr, 1 / this.ir);
  18682. this.Ia(a);
  18683. this.lf(a);
  18684. return a
  18685. },
  18686. q: function() {
  18687. var a = new b.Zy;
  18688. this.Ia(a);
  18689. a.l(this.D, this.hr, this.ir);
  18690. return a
  18691. }
  18692. });
  18693. b.cX = function(a, d, e) {
  18694. return new b.Zy(a, d, e)
  18695. };
  18696. b.Zy.create = b.cX;
  18697. b.cy = b.J.extend({
  18698. Kf: 0,
  18699. XR: !1,
  18700. ctor: function(a, d) {
  18701. b.J.prototype.ctor.call(this);
  18702. void 0 !== d && this.l(a, d)
  18703. },
  18704. l: function(a, d) {
  18705. return b.J.prototype.l.call(this, a) ? (this.Kf = d, !0) : !1
  18706. },
  18707. q: function() {
  18708. var a = new b.cy;
  18709. this.Ia(a);
  18710. a.l(this.D, this.Kf);
  18711. return a
  18712. },
  18713. update: function(a) {
  18714. a = this.Yd(a);
  18715. if (this.target && !this.mi()) {
  18716. var d = 1 / this.Kf;
  18717. this.target.visible = a % d > d / 2
  18718. }
  18719. },
  18720. N: function(a) {
  18721. b.J.prototype.N.call(this, a);
  18722. this.XR = a.visible
  18723. },
  18724. stop: function() {
  18725. this.target.visible = this.XR;
  18726. b.J.prototype.stop.call(this)
  18727. },
  18728. reverse: function() {
  18729. var a =
  18730. new b.cy(this.D, this.Kf);
  18731. this.Ia(a);
  18732. this.lf(a);
  18733. return a
  18734. }
  18735. });
  18736. b.blink = function(a, d) {
  18737. return new b.cy(a, d)
  18738. };
  18739. b.cy.create = b.blink;
  18740. b.xm = b.J.extend({
  18741. as: 0,
  18742. kA: 0,
  18743. ctor: function(a, d) {
  18744. b.J.prototype.ctor.call(this);
  18745. void 0 !== d && this.l(a, d)
  18746. },
  18747. l: function(a, d) {
  18748. return b.J.prototype.l.call(this, a) ? (this.as = d, !0) : !1
  18749. },
  18750. q: function() {
  18751. var a = new b.xm;
  18752. this.Ia(a);
  18753. a.l(this.D, this.as);
  18754. return a
  18755. },
  18756. update: function(a) {
  18757. a = this.Yd(a);
  18758. var d = void 0 !== this.kA ? this.kA : 255;
  18759. this.target.opacity = d + (this.as - d) * a
  18760. },
  18761. N: function(a) {
  18762. b.J.prototype.N.call(this, a);
  18763. this.kA = a.opacity
  18764. }
  18765. });
  18766. b.WU = function(a, d) {
  18767. return new b.xm(a, d)
  18768. };
  18769. b.xm.create = b.WU;
  18770. b.sq = b.xm.extend({
  18771. qI: null,
  18772. ctor: function(a) {
  18773. b.xm.prototype.ctor.call(this);
  18774. null == a && (a = 0);
  18775. this.l(a, 255)
  18776. },
  18777. reverse: function() {
  18778. var a = new b.ju;
  18779. a.l(this.D, 0);
  18780. this.Ia(a);
  18781. this.lf(a);
  18782. return a
  18783. },
  18784. q: function() {
  18785. var a = new b.sq;
  18786. this.Ia(a);
  18787. a.l(this.D, this.as);
  18788. return a
  18789. },
  18790. N: function(a) {
  18791. this.qI && (this.as = this.qI.kA);
  18792. b.xm.prototype.N.call(this, a)
  18793. }
  18794. });
  18795. b.RU = function(a) {
  18796. return new b.sq(a)
  18797. };
  18798. b.sq.create = b.RU;
  18799. b.ju = b.xm.extend({
  18800. ctor: function(a) {
  18801. b.xm.prototype.ctor.call(this);
  18802. null == a && (a = 0);
  18803. this.l(a, 0)
  18804. },
  18805. reverse: function() {
  18806. var a = new b.sq;
  18807. a.qI = this;
  18808. a.l(this.D, 255);
  18809. this.Ia(a);
  18810. this.lf(a);
  18811. return a
  18812. },
  18813. q: function() {
  18814. var a = new b.ju;
  18815. this.Ia(a);
  18816. a.l(this.D, this.as);
  18817. return a
  18818. }
  18819. });
  18820. b.SU = function(a) {
  18821. return new b.ju(a)
  18822. };
  18823. b.ju.create = b.SU;
  18824. b.HF = b.J.extend({
  18825. fe: null,
  18826. $d: null,
  18827. ctor: function(a, d, e, f) {
  18828. b.J.prototype.ctor.call(this);
  18829. this.fe = b.color(0, 0, 0);
  18830. this.$d = b.color(0, 0, 0);
  18831. void 0 !== f && this.l(a, d, e, f)
  18832. },
  18833. l: function(a, d, e, f) {
  18834. return b.J.prototype.l.call(this, a) ? (this.fe = b.color(d, e, f), !0) : !1
  18835. },
  18836. q: function() {
  18837. var a = new b.HF;
  18838. this.Ia(a);
  18839. var d = this.fe;
  18840. a.l(this.D, d.r, d.g, d.b);
  18841. return a
  18842. },
  18843. N: function(a) {
  18844. b.J.prototype.N.call(this, a);
  18845. this.$d = this.target.color
  18846. },
  18847. update: function(a) {
  18848. a = this.Yd(a);
  18849. var d = this.$d,
  18850. e = this.fe;
  18851. d && (this.target.color = b.color(d.r + (e.r -
  18852. d.r) * a, d.g + (e.g - d.g) * a, d.b + (e.b - d.b) * a))
  18853. }
  18854. });
  18855. b.afa = function(a, d, e, f) {
  18856. return new b.HF(a, d, e, f)
  18857. };
  18858. b.HF.create = b.afa;
  18859. b.kz = b.J.extend({
  18860. Zz: 0,
  18861. Yz: 0,
  18862. Xz: 0,
  18863. SQ: 0,
  18864. RQ: 0,
  18865. QQ: 0,
  18866. ctor: function(a, d, e, f) {
  18867. b.J.prototype.ctor.call(this);
  18868. void 0 !== f && this.l(a, d, e, f)
  18869. },
  18870. l: function(a, d, e, f) {
  18871. return b.J.prototype.l.call(this, a) ? (this.Zz = d, this.Yz = e, this.Xz = f, !0) : !1
  18872. },
  18873. q: function() {
  18874. var a = new b.kz;
  18875. this.Ia(a);
  18876. a.l(this.D, this.Zz, this.Yz, this.Xz);
  18877. return a
  18878. },
  18879. N: function(a) {
  18880. b.J.prototype.N.call(this, a);
  18881. a = a.color;
  18882. this.SQ = a.r;
  18883. this.RQ = a.g;
  18884. this.QQ = a.b
  18885. },
  18886. update: function(a) {
  18887. a = this.Yd(a);
  18888. this.target.color = b.color(this.SQ + this.Zz * a, this.RQ + this.Yz * a, this.QQ +
  18889. this.Xz * a)
  18890. },
  18891. reverse: function() {
  18892. var a = new b.kz(this.D, -this.Zz, -this.Yz, -this.Xz);
  18893. this.Ia(a);
  18894. this.lf(a);
  18895. return a
  18896. }
  18897. });
  18898. b.$ea = function(a, d, e, f) {
  18899. return new b.kz(a, d, e, f)
  18900. };
  18901. b.kz.create = b.$ea;
  18902. b.iy = b.J.extend({
  18903. update: function() {},
  18904. reverse: function() {
  18905. var a = new b.iy(this.D);
  18906. this.Ia(a);
  18907. this.lf(a);
  18908. return a
  18909. },
  18910. q: function() {
  18911. var a = new b.iy;
  18912. this.Ia(a);
  18913. a.l(this.D);
  18914. return a
  18915. }
  18916. });
  18917. b.Fe = function(a) {
  18918. return new b.iy(a)
  18919. };
  18920. b.iy.create = b.Fe;
  18921. b.su = b.J.extend({
  18922. Al: null,
  18923. ctor: function(a) {
  18924. b.J.prototype.ctor.call(this);
  18925. this.Al = null;
  18926. a && this.ha(a)
  18927. },
  18928. ha: function(a) {
  18929. if (!a) throw "cc.ReverseTime.initWithAction(): action must be non null";
  18930. if (a === this.Al) throw "cc.ReverseTime.initWithAction(): the action was already passed in.";
  18931. return b.J.prototype.l.call(this, a.D) ? (this.Al = a, !0) : !1
  18932. },
  18933. q: function() {
  18934. var a = new b.su;
  18935. this.Ia(a);
  18936. a.ha(this.Al.q());
  18937. return a
  18938. },
  18939. N: function(a) {
  18940. b.J.prototype.N.call(this, a);
  18941. this.Al.N(a)
  18942. },
  18943. update: function(a) {
  18944. a = this.Yd(a);
  18945. this.Al && this.Al.update(1 -
  18946. a)
  18947. },
  18948. reverse: function() {
  18949. return this.Al.q()
  18950. },
  18951. stop: function() {
  18952. this.Al.stop();
  18953. b.ne.prototype.stop.call(this)
  18954. }
  18955. });
  18956. b.ZW = function(a) {
  18957. return new b.su(a)
  18958. };
  18959. b.su.create = b.ZW;
  18960. b.$x = b.J.extend({
  18961. Om: null,
  18962. wv: 0,
  18963. PH: null,
  18964. hA: 0,
  18965. XI: null,
  18966. ctor: function(a) {
  18967. b.J.prototype.ctor.call(this);
  18968. this.XI = [];
  18969. a && this.QV(a)
  18970. },
  18971. wK: function() {
  18972. return this.Om
  18973. },
  18974. Nca: function(a) {
  18975. this.Om = a
  18976. },
  18977. QV: function(a) {
  18978. if (!a) throw "cc.Animate.initWithAnimation(): animation must be non-NULL";
  18979. var d = a.Gs();
  18980. if (this.l(d * a.wl)) {
  18981. this.wv = 0;
  18982. this.Nca(a);
  18983. this.PH = null;
  18984. this.hA = 0;
  18985. var e = this.XI,
  18986. f = e.length = 0,
  18987. g = d / a.tk;
  18988. a = a.Xe;
  18989. b.ow(a, b.wh);
  18990. for (var h = 0; h < a.length; h++) {
  18991. var k = f * g / d,
  18992. f = f + a[h].We;
  18993. e.push(k)
  18994. }
  18995. return !0
  18996. }
  18997. return !1
  18998. },
  18999. q: function() {
  19000. var a =
  19001. new b.$x;
  19002. this.Ia(a);
  19003. a.QV(this.Om.q());
  19004. return a
  19005. },
  19006. N: function(a) {
  19007. b.J.prototype.N.call(this, a);
  19008. this.Om.hp && (this.PH = a.IU());
  19009. this.hA = this.wv = 0
  19010. },
  19011. update: function(a) {
  19012. a = this.Yd(a);
  19013. 1 > a && (a *= this.Om.wl, (0 | a) > this.hA && (this.wv = 0, this.hA++), a %= 1);
  19014. for (var d = this.Om.Xe, e = d.length, f = this.XI, g = this.wv; g < e; g++)
  19015. if (f[g] <= a) this.target.zi(d[g].og()), this.wv = g + 1;
  19016. else break
  19017. },
  19018. reverse: function() {
  19019. var a = this.Om,
  19020. d = a.Xe,
  19021. e = [];
  19022. b.ow(d, b.wh);
  19023. if (0 < d.length)
  19024. for (var f = d.length - 1; 0 <= f; f--) {
  19025. var g = d[f];
  19026. if (!g) break;
  19027. e.push(g.q())
  19028. }
  19029. d = new b.Kj(e,
  19030. a.We, a.wl);
  19031. d.Gx(a.hp);
  19032. a = new b.$x(d);
  19033. this.Ia(a);
  19034. this.lf(a);
  19035. return a
  19036. },
  19037. stop: function() {
  19038. this.Om.hp && this.target && this.target.zi(this.PH);
  19039. b.ne.prototype.stop.call(this)
  19040. }
  19041. });
  19042. b.VT = function(a) {
  19043. return new b.$x(a)
  19044. };
  19045. b.$x.create = b.VT;
  19046. b.DF = b.J.extend({
  19047. Bg: null,
  19048. nr: null,
  19049. ctor: function(a, d) {
  19050. b.J.prototype.ctor.call(this);
  19051. d && this.Ts(a, d)
  19052. },
  19053. Ts: function(a, d) {
  19054. return this.l(d.D) ? (this.nr = a, this.Bg = d, !0) : !1
  19055. },
  19056. q: function() {
  19057. var a = new b.DF;
  19058. this.Ia(a);
  19059. a.Ts(this.nr, this.Bg.q());
  19060. return a
  19061. },
  19062. N: function(a) {
  19063. b.J.prototype.N.call(this, a);
  19064. this.Bg.N(this.nr)
  19065. },
  19066. stop: function() {
  19067. this.Bg.stop()
  19068. },
  19069. update: function(a) {
  19070. a = this.Yd(a);
  19071. this.Bg.update(a)
  19072. },
  19073. nna: function() {
  19074. return this.nr
  19075. },
  19076. Sta: function(a) {
  19077. this.nr !== a && (this.nr = a)
  19078. }
  19079. });
  19080. b.Oea = function(a, d) {
  19081. return new b.DF(a, d)
  19082. };
  19083. b.DF.create = b.Oea;
  19084. b.xf = b.Wk.extend({
  19085. mi: function() {
  19086. return !0
  19087. },
  19088. step: function() {
  19089. this.update(1)
  19090. },
  19091. update: function() {},
  19092. reverse: function() {
  19093. return this.q()
  19094. },
  19095. q: function() {
  19096. return new b.xf
  19097. }
  19098. });
  19099. b.$y = b.xf.extend({
  19100. update: function() {
  19101. this.target.visible = !0
  19102. },
  19103. reverse: function() {
  19104. return new b.Jy
  19105. },
  19106. q: function() {
  19107. return new b.$y
  19108. }
  19109. });
  19110. b.show = function() {
  19111. return new b.$y
  19112. };
  19113. b.$y.create = b.show;
  19114. b.Jy = b.xf.extend({
  19115. update: function() {
  19116. this.target.visible = !1
  19117. },
  19118. reverse: function() {
  19119. return new b.$y
  19120. },
  19121. q: function() {
  19122. return new b.Jy
  19123. }
  19124. });
  19125. b.Rp = function() {
  19126. return new b.Jy
  19127. };
  19128. b.Jy.create = b.Rp;
  19129. b.lz = b.xf.extend({
  19130. update: function() {
  19131. this.target.visible = !this.target.visible
  19132. },
  19133. reverse: function() {
  19134. return new b.lz
  19135. },
  19136. q: function() {
  19137. return new b.lz
  19138. }
  19139. });
  19140. b.cfa = function() {
  19141. return new b.lz
  19142. };
  19143. b.lz.create = b.cfa;
  19144. b.Qy = b.xf.extend({
  19145. zA: !0,
  19146. ctor: function(a) {
  19147. b.Wk.prototype.ctor.call(this);
  19148. void 0 !== a && this.T(a)
  19149. },
  19150. update: function() {
  19151. this.target.Rn(this.zA)
  19152. },
  19153. T: function(a) {
  19154. this.zA = a;
  19155. return !0
  19156. },
  19157. reverse: function() {
  19158. return new b.Qy(this.zA)
  19159. },
  19160. q: function() {
  19161. return new b.Qy(this.zA)
  19162. }
  19163. });
  19164. b.wca = function(a) {
  19165. return new b.Qy(a)
  19166. };
  19167. b.Qy.create = b.wca;
  19168. b.Gy = b.xf.extend({
  19169. uc: !1,
  19170. ctor: function(a) {
  19171. b.Wk.prototype.ctor.call(this);
  19172. this.uc = !1;
  19173. void 0 !== a && this.TV(a)
  19174. },
  19175. TV: function(a) {
  19176. this.uc = a;
  19177. return !0
  19178. },
  19179. update: function() {
  19180. this.target.flippedX = this.uc
  19181. },
  19182. reverse: function() {
  19183. return new b.Gy(!this.uc)
  19184. },
  19185. q: function() {
  19186. var a = new b.Gy;
  19187. a.TV(this.uc);
  19188. return a
  19189. }
  19190. });
  19191. b.N8 = function(a) {
  19192. return new b.Gy(a)
  19193. };
  19194. b.Gy.create = b.N8;
  19195. b.Hy = b.xf.extend({
  19196. vc: !1,
  19197. ctor: function(a) {
  19198. b.Wk.prototype.ctor.call(this);
  19199. this.vc = !1;
  19200. void 0 !== a && this.UV(a)
  19201. },
  19202. UV: function(a) {
  19203. this.vc = a;
  19204. return !0
  19205. },
  19206. update: function() {
  19207. this.target.flippedY = this.vc
  19208. },
  19209. reverse: function() {
  19210. return new b.Hy(!this.vc)
  19211. },
  19212. q: function() {
  19213. var a = new b.Hy;
  19214. a.UV(this.vc);
  19215. return a
  19216. }
  19217. });
  19218. b.P8 = function(a) {
  19219. return new b.Hy(a)
  19220. };
  19221. b.Hy.create = b.P8;
  19222. b.WE = b.xf.extend({
  19223. kj: 0,
  19224. Nf: 0,
  19225. ctor: function(a, d) {
  19226. b.Wk.prototype.ctor.call(this);
  19227. this.Nf = this.kj = 0;
  19228. void 0 !== a && (void 0 !== a.x && (d = a.y, a = a.x), this.ZV(a, d))
  19229. },
  19230. ZV: function(a, d) {
  19231. this.kj = a;
  19232. this.Nf = d;
  19233. return !0
  19234. },
  19235. update: function() {
  19236. this.target.I(this.kj, this.Nf)
  19237. },
  19238. q: function() {
  19239. var a = new b.WE;
  19240. a.ZV(this.kj, this.Nf);
  19241. return a
  19242. }
  19243. });
  19244. b.Uba = function(a, d) {
  19245. return new b.WE(a, d)
  19246. };
  19247. b.WE.create = b.Uba;
  19248. b.Pt = b.xf.extend({
  19249. Kl: null,
  19250. Lz: null,
  19251. gv: null,
  19252. er: null,
  19253. ctor: function(a, d, e) {
  19254. b.Wk.prototype.ctor.call(this);
  19255. void 0 !== a && (void 0 === d ? this.NC(a) : this.NC(a, d, e))
  19256. },
  19257. NC: function(a, d, e) {
  19258. d ? (this.er = e, this.Lz = a, this.Kl = d) : a && (this.gv = a);
  19259. return !0
  19260. },
  19261. execute: function() {
  19262. null != this.Lz ? this.Lz.call(this.Kl, this.target, this.er) : this.gv && this.gv.call(null, this.target)
  19263. },
  19264. update: function() {
  19265. this.execute()
  19266. },
  19267. Ioa: function() {
  19268. return this.Kl
  19269. },
  19270. Wua: function(a) {
  19271. a !== this.Kl && (this.Kl && (this.Kl = null), this.Kl = a)
  19272. },
  19273. q: function() {
  19274. var a = new b.Pt;
  19275. this.Kl ? a.NC(this.Lz, this.Kl, this.er) : this.gv && a.NC(this.gv);
  19276. return a
  19277. }
  19278. });
  19279. b.Cc = function(a, d, e) {
  19280. return new b.Pt(a, d, e)
  19281. };
  19282. b.Pt.create = b.Cc;
  19283. b.dE = b.J.extend({
  19284. kG: 0,
  19285. lG: 0,
  19286. mG: 0,
  19287. GQ: 0,
  19288. HQ: 0,
  19289. IQ: 0,
  19290. qT: 0,
  19291. rT: 0,
  19292. sT: 0,
  19293. ctor: function() {
  19294. b.J.prototype.ctor.call(this);
  19295. this.sT = this.rT = this.qT = this.IQ = this.HQ = this.GQ = this.mG = this.lG = this.kG = 0
  19296. },
  19297. N: function(a) {
  19298. b.J.prototype.N.call(this, a);
  19299. a = a.Fs();
  19300. var d = a.eV();
  19301. this.kG = d.x;
  19302. this.lG = d.y;
  19303. this.mG = d.z;
  19304. d = a.iV();
  19305. this.GQ = d.x;
  19306. this.HQ = d.y;
  19307. this.IQ = d.z;
  19308. a = a.R$();
  19309. this.qT = a.x;
  19310. this.rT = a.y;
  19311. this.sT = a.z
  19312. },
  19313. q: function() {
  19314. return new b.dE
  19315. },
  19316. reverse: function() {
  19317. return new b.su(this)
  19318. }
  19319. });
  19320. b.SE = b.dE.extend({
  19321. jg: 0,
  19322. CG: 0,
  19323. Ku: 0,
  19324. TP: 0,
  19325. Ji: 0,
  19326. SP: 0,
  19327. lS: 0,
  19328. jS: 0,
  19329. kS: 0,
  19330. iS: 0,
  19331. ctor: function(a, d, e, f, g, h, k) {
  19332. b.dE.prototype.ctor.call(this);
  19333. void 0 !== k && this.l(a, d, e, f, g, h, k)
  19334. },
  19335. l: function(a, d, e, f, g, h, k) {
  19336. return b.J.prototype.l.call(this, a) ? (this.jg = d, this.CG = e, this.Ku = f, this.TP = g, this.Ji = h, this.SP = k, this.jS = b.Md(g), this.iS = b.Md(k), !0) : !1
  19337. },
  19338. Bea: function() {
  19339. var a, d;
  19340. d = this.target.Fs();
  19341. var e = d.iV();
  19342. a = d.eV();
  19343. d = e.x - a.x;
  19344. var f = e.y - a.y;
  19345. a = e.z - a.z;
  19346. var e = Math.sqrt(Math.pow(d, 2) + Math.pow(f, 2) + Math.pow(a, 2)),
  19347. g = Math.sqrt(Math.pow(d,
  19348. 2) + Math.pow(f, 2));
  19349. 0 === g && (g = b.Dy);
  19350. 0 === e && (e = b.Dy);
  19351. a = Math.acos(a / e);
  19352. d = 0 > d ? Math.PI - Math.asin(f / g) : Math.asin(f / g);
  19353. return {
  19354. Gba: e / b.Qt.Qs(),
  19355. ufa: a,
  19356. azimuth: d
  19357. }
  19358. },
  19359. N: function(a) {
  19360. b.J.prototype.N.call(this, a);
  19361. a = this.Bea();
  19362. isNaN(this.jg) && (this.jg = a.Gba);
  19363. isNaN(this.Ku) && (this.Ku = b.jx(a.ufa));
  19364. isNaN(this.Ji) && (this.Ji = b.jx(a.azimuth));
  19365. this.lS = b.Md(this.Ku);
  19366. this.kS = b.Md(this.Ji)
  19367. },
  19368. q: function() {
  19369. var a = new b.SE;
  19370. a.l(this.D, this.jg, this.CG, this.Ku, this.TP, this.Ji, this.SP);
  19371. return a
  19372. },
  19373. update: function(a) {
  19374. a = this.Yd(a);
  19375. var d =
  19376. (this.jg + this.CG * a) * b.Qt.Qs(),
  19377. e = this.lS + this.jS * a,
  19378. f = this.kS + this.iS * a;
  19379. a = Math.sin(e) * Math.cos(f) * d + this.kG;
  19380. f = Math.sin(e) * Math.sin(f) * d + this.lG;
  19381. d = Math.cos(e) * d + this.mG;
  19382. this.target.Fs().uX(a, f, d);
  19383. this.target.Pk()
  19384. }
  19385. });
  19386. b.fh = function(a, d, e, f, g, h, k) {
  19387. return new b.SE(a, d, e, f, g, h, k)
  19388. };
  19389. b.SE.create = b.fh;
  19390. b.ib = b.J.extend({
  19391. F: null,
  19392. ctor: function(a) {
  19393. b.J.prototype.ctor.call(this);
  19394. a && this.ha(a)
  19395. },
  19396. ha: function(a) {
  19397. if (!a) throw "cc.ActionEase.initWithAction(): action must be non nil";
  19398. return this.l(a.Gs()) ? (this.F = a, !0) : !1
  19399. },
  19400. q: function() {
  19401. var a = new b.ib;
  19402. a.ha(this.F.q());
  19403. return a
  19404. },
  19405. N: function(a) {
  19406. b.J.prototype.N.call(this, a);
  19407. this.F.N(this.target)
  19408. },
  19409. stop: function() {
  19410. this.F.stop();
  19411. b.J.prototype.stop.call(this)
  19412. },
  19413. update: function(a) {
  19414. this.F.update(a)
  19415. },
  19416. reverse: function() {
  19417. return new b.ib(this.F.reverse())
  19418. },
  19419. EK: function() {
  19420. return this.F
  19421. }
  19422. });
  19423. b.L6 = function(a) {
  19424. return new b.ib(a)
  19425. };
  19426. b.ib.create = b.L6;
  19427. b.jo = b.ib.extend({
  19428. yc: 0,
  19429. ctor: function(a, d) {
  19430. b.ib.prototype.ctor.call(this);
  19431. void 0 !== d && this.ha(a, d)
  19432. },
  19433. Hua: function(a) {
  19434. this.yc = a
  19435. },
  19436. koa: function() {
  19437. return this.yc
  19438. },
  19439. ha: function(a, d) {
  19440. return b.ib.prototype.ha.call(this, a) ? (this.yc = d, !0) : !1
  19441. },
  19442. q: function() {
  19443. var a = new b.jo;
  19444. a.ha(this.F.q(), this.yc);
  19445. return a
  19446. },
  19447. reverse: function() {
  19448. return new b.jo(this.F.reverse(), 1 / this.yc)
  19449. }
  19450. });
  19451. b.y8 = function(a, d) {
  19452. return new b.jo(a, d)
  19453. };
  19454. b.jo.create = b.y8;
  19455. b.yy = b.jo.extend({
  19456. update: function(a) {
  19457. this.F.update(Math.pow(a, this.yc))
  19458. },
  19459. reverse: function() {
  19460. return new b.yy(this.F.reverse(), 1 / this.yc)
  19461. },
  19462. q: function() {
  19463. var a = new b.yy;
  19464. a.ha(this.F.q(), this.yc);
  19465. return a
  19466. }
  19467. });
  19468. b.yy.create = function(a, d) {
  19469. return new b.yy(a, d)
  19470. };
  19471. b.w8 = function(a) {
  19472. return {
  19473. yc: a,
  19474. fb: function(a) {
  19475. return Math.pow(a, this.yc)
  19476. },
  19477. reverse: function() {
  19478. return b.w8(1 / this.yc)
  19479. }
  19480. }
  19481. };
  19482. b.qq = b.jo.extend({
  19483. update: function(a) {
  19484. this.F.update(Math.pow(a, 1 / this.yc))
  19485. },
  19486. reverse: function() {
  19487. return new b.qq(this.F.reverse(), 1 / this.yc)
  19488. },
  19489. q: function() {
  19490. var a = new b.qq;
  19491. a.ha(this.F.q(), this.yc);
  19492. return a
  19493. }
  19494. });
  19495. b.qq.create = function(a, d) {
  19496. return new b.qq(a, d)
  19497. };
  19498. b.x8 = function(a) {
  19499. return {
  19500. yc: a,
  19501. fb: function(a) {
  19502. return Math.pow(a, 1 / this.yc)
  19503. },
  19504. reverse: function() {
  19505. return b.x8(1 / this.yc)
  19506. }
  19507. }
  19508. };
  19509. b.pq = b.jo.extend({
  19510. update: function(a) {
  19511. a *= 2;
  19512. 1 > a ? this.F.update(0.5 * Math.pow(a, this.yc)) : this.F.update(1 - 0.5 * Math.pow(2 - a, this.yc))
  19513. },
  19514. q: function() {
  19515. var a = new b.pq;
  19516. a.ha(this.F.q(), this.yc);
  19517. return a
  19518. },
  19519. reverse: function() {
  19520. return new b.pq(this.F.reverse(), this.yc)
  19521. }
  19522. });
  19523. b.pq.create = function(a, d) {
  19524. return new b.pq(a, d)
  19525. };
  19526. b.qK = function(a) {
  19527. return {
  19528. yc: a,
  19529. fb: function(a) {
  19530. a *= 2;
  19531. return 1 > a ? 0.5 * Math.pow(a, this.yc) : 1 - 0.5 * Math.pow(2 - a, this.yc)
  19532. },
  19533. reverse: function() {
  19534. return b.qK(this.yc)
  19535. }
  19536. }
  19537. };
  19538. b.vy = b.ib.extend({
  19539. update: function(a) {
  19540. this.F.update(0 === a ? 0 : Math.pow(2, 10 * (a - 1)))
  19541. },
  19542. reverse: function() {
  19543. return new b.xy(this.F.reverse())
  19544. },
  19545. q: function() {
  19546. var a = new b.vy;
  19547. a.ha(this.F.q());
  19548. return a
  19549. }
  19550. });
  19551. b.vy.create = function(a) {
  19552. return new b.vy(a)
  19553. };
  19554. b.nQ = {
  19555. fb: function(a) {
  19556. return 0 === a ? 0 : Math.pow(2, 10 * (a - 1))
  19557. },
  19558. reverse: function() {
  19559. return b.pQ
  19560. }
  19561. };
  19562. b.Ela = function() {
  19563. return b.nQ
  19564. };
  19565. b.xy = b.ib.extend({
  19566. update: function(a) {
  19567. this.F.update(1 === a ? 1 : -Math.pow(2, -10 * a) + 1)
  19568. },
  19569. reverse: function() {
  19570. return new b.vy(this.F.reverse())
  19571. },
  19572. q: function() {
  19573. var a = new b.xy;
  19574. a.ha(this.F.q());
  19575. return a
  19576. }
  19577. });
  19578. b.xy.create = function(a) {
  19579. return new b.xy(a)
  19580. };
  19581. b.pQ = {
  19582. fb: function(a) {
  19583. return 1 === a ? 1 : -Math.pow(2, -10 * a) + 1
  19584. },
  19585. reverse: function() {
  19586. return b.nQ
  19587. }
  19588. };
  19589. b.Gla = function() {
  19590. return b.pQ
  19591. };
  19592. b.wy = b.ib.extend({
  19593. update: function(a) {
  19594. 1 !== a && 0 !== a && (a *= 2, a = 1 > a ? 0.5 * Math.pow(2, 10 * (a - 1)) : 0.5 * (-Math.pow(2, -10 * (a - 1)) + 2));
  19595. this.F.update(a)
  19596. },
  19597. reverse: function() {
  19598. return new b.wy(this.F.reverse())
  19599. },
  19600. q: function() {
  19601. var a = new b.wy;
  19602. a.ha(this.F.q());
  19603. return a
  19604. }
  19605. });
  19606. b.wy.create = function(a) {
  19607. return new b.wy(a)
  19608. };
  19609. b.oQ = {
  19610. fb: function(a) {
  19611. return 1 !== a && 0 !== a ? (a *= 2, 1 > a ? 0.5 * Math.pow(2, 10 * (a - 1)) : 0.5 * (-Math.pow(2, -10 * (a - 1)) + 2)) : a
  19612. },
  19613. reverse: function() {
  19614. return b.oQ
  19615. }
  19616. };
  19617. b.Fla = function() {
  19618. return b.oQ
  19619. };
  19620. b.zy = b.ib.extend({
  19621. update: function(a) {
  19622. a = 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1;
  19623. this.F.update(a)
  19624. },
  19625. reverse: function() {
  19626. return new b.By(this.F.reverse())
  19627. },
  19628. q: function() {
  19629. var a = new b.zy;
  19630. a.ha(this.F.q());
  19631. return a
  19632. }
  19633. });
  19634. b.zy.create = function(a) {
  19635. return new b.zy(a)
  19636. };
  19637. b.zQ = {
  19638. fb: function(a) {
  19639. return 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1
  19640. },
  19641. reverse: function() {
  19642. return b.BQ
  19643. }
  19644. };
  19645. b.Qla = function() {
  19646. return b.zQ
  19647. };
  19648. b.By = b.ib.extend({
  19649. update: function(a) {
  19650. a = 0 === a || 1 === a ? a : Math.sin(a * Math.PI / 2);
  19651. this.F.update(a)
  19652. },
  19653. reverse: function() {
  19654. return new b.zy(this.F.reverse())
  19655. },
  19656. q: function() {
  19657. var a = new b.By;
  19658. a.ha(this.F.q());
  19659. return a
  19660. }
  19661. });
  19662. b.By.create = function(a) {
  19663. return new b.By(a)
  19664. };
  19665. b.BQ = {
  19666. fb: function(a) {
  19667. return 0 === a || 1 === a ? a : Math.sin(a * Math.PI / 2)
  19668. },
  19669. reverse: function() {
  19670. return b.zQ
  19671. }
  19672. };
  19673. b.Sla = function() {
  19674. return b.BQ
  19675. };
  19676. b.Ay = b.ib.extend({
  19677. update: function(a) {
  19678. a = 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1);
  19679. this.F.update(a)
  19680. },
  19681. q: function() {
  19682. var a = new b.Ay;
  19683. a.ha(this.F.q());
  19684. return a
  19685. },
  19686. reverse: function() {
  19687. return new b.Ay(this.F.reverse())
  19688. }
  19689. });
  19690. b.Ay.create = function(a) {
  19691. return new b.Ay(a)
  19692. };
  19693. b.AQ = {
  19694. fb: function(a) {
  19695. return 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1)
  19696. },
  19697. reverse: function() {
  19698. return b.AQ
  19699. }
  19700. };
  19701. b.Rla = function() {
  19702. return b.AQ
  19703. };
  19704. b.oq = b.ib.extend({
  19705. $b: 0.3,
  19706. ctor: function(a, d) {
  19707. b.ib.prototype.ctor.call(this);
  19708. a && this.ha(a, d)
  19709. },
  19710. doa: function() {
  19711. return this.$b
  19712. },
  19713. Eua: function(a) {
  19714. this.$b = a
  19715. },
  19716. ha: function(a, d) {
  19717. b.ib.prototype.ha.call(this, a);
  19718. this.$b = null == d ? 0.3 : d;
  19719. return !0
  19720. },
  19721. reverse: function() {
  19722. b.log("cc.EaseElastic.reverse(): it should be overridden in subclass.");
  19723. return null
  19724. },
  19725. q: function() {
  19726. var a = new b.oq;
  19727. a.ha(this.F.q(), this.$b);
  19728. return a
  19729. }
  19730. });
  19731. b.oq.create = function(a, d) {
  19732. return new b.oq(a, d)
  19733. };
  19734. b.sy = b.oq.extend({
  19735. update: function(a) {
  19736. var d = 0;
  19737. 0 === a || 1 === a ? d = a : (d = this.$b / 4, a -= 1, d = -Math.pow(2, 10 * a) * Math.sin((a - d) * Math.PI * 2 / this.$b));
  19738. this.F.update(d)
  19739. },
  19740. reverse: function() {
  19741. return new b.uy(this.F.reverse(), this.$b)
  19742. },
  19743. q: function() {
  19744. var a = new b.sy;
  19745. a.ha(this.F.q(), this.$b);
  19746. return a
  19747. }
  19748. });
  19749. b.sy.create = function(a, d) {
  19750. return new b.sy(a, d)
  19751. };
  19752. b.lQ = {
  19753. fb: function(a) {
  19754. if (0 === a || 1 === a) return a;
  19755. a -= 1;
  19756. return -Math.pow(2, 10 * a) * Math.sin((a - 0.075) * Math.PI * 2 / 0.3)
  19757. },
  19758. reverse: function() {
  19759. return b.mQ
  19760. }
  19761. };
  19762. b.t8 = function(a) {
  19763. return a && 0.3 !== a ? {
  19764. $b: a,
  19765. fb: function(a) {
  19766. if (0 === a || 1 === a) return a;
  19767. a -= 1;
  19768. return -Math.pow(2, 10 * a) * Math.sin((a - this.$b / 4) * Math.PI * 2 / this.$b)
  19769. },
  19770. reverse: function() {
  19771. return b.v8(this.$b)
  19772. }
  19773. } : b.lQ
  19774. };
  19775. b.uy = b.oq.extend({
  19776. update: function(a) {
  19777. var d = 0,
  19778. d = 0 === a || 1 === a ? a : Math.pow(2, -10 * a) * Math.sin((a - this.$b / 4) * Math.PI * 2 / this.$b) + 1;
  19779. this.F.update(d)
  19780. },
  19781. reverse: function() {
  19782. return new b.sy(this.F.reverse(), this.$b)
  19783. },
  19784. q: function() {
  19785. var a = new b.uy;
  19786. a.ha(this.F.q(), this.$b);
  19787. return a
  19788. }
  19789. });
  19790. b.uy.create = function(a, d) {
  19791. return new b.uy(a, d)
  19792. };
  19793. b.mQ = {
  19794. fb: function(a) {
  19795. return 0 === a || 1 === a ? a : Math.pow(2, -10 * a) * Math.sin((a - 0.075) * Math.PI * 2 / 0.3) + 1
  19796. },
  19797. reverse: function() {
  19798. return b.lQ
  19799. }
  19800. };
  19801. b.v8 = function(a) {
  19802. return a && 0.3 !== a ? {
  19803. $b: a,
  19804. fb: function(a) {
  19805. return 0 === a || 1 === a ? a : Math.pow(2, -10 * a) * Math.sin((a - this.$b / 4) * Math.PI * 2 / this.$b) + 1
  19806. },
  19807. reverse: function() {
  19808. return b.t8(this.$b)
  19809. }
  19810. } : b.mQ
  19811. };
  19812. b.ty = b.oq.extend({
  19813. update: function(a) {
  19814. var d = 0,
  19815. d = this.$b;
  19816. if (0 === a || 1 === a) d = a;
  19817. else {
  19818. d || (d = this.$b = 0.3 * 1.5);
  19819. var e = d / 4;
  19820. a = 2 * a - 1;
  19821. d = 0 > a ? -0.5 * Math.pow(2, 10 * a) * Math.sin((a - e) * Math.PI * 2 / d) : Math.pow(2, -10 * a) * Math.sin((a - e) * Math.PI * 2 / d) * 0.5 + 1
  19822. }
  19823. this.F.update(d)
  19824. },
  19825. reverse: function() {
  19826. return new b.ty(this.F.reverse(), this.$b)
  19827. },
  19828. q: function() {
  19829. var a = new b.ty;
  19830. a.ha(this.F.q(), this.$b);
  19831. return a
  19832. }
  19833. });
  19834. b.ty.create = function(a, d) {
  19835. return new b.ty(a, d)
  19836. };
  19837. b.u8 = function(a) {
  19838. return {
  19839. $b: a || 0.3,
  19840. fb: function(a) {
  19841. var e = 0,
  19842. e = this.$b;
  19843. if (0 === a || 1 === a) e = a;
  19844. else {
  19845. e || (e = this.$b = 0.3 * 1.5);
  19846. var f = e / 4;
  19847. a = 2 * a - 1;
  19848. e = 0 > a ? -0.5 * Math.pow(2, 10 * a) * Math.sin((a - f) * Math.PI * 2 / e) : Math.pow(2, -10 * a) * Math.sin((a - f) * Math.PI * 2 / e) * 0.5 + 1
  19849. }
  19850. return e
  19851. },
  19852. reverse: function() {
  19853. return b.u8(this.$b)
  19854. }
  19855. }
  19856. };
  19857. b.io = b.ib.extend({
  19858. aC: function(a) {
  19859. if (a < 1 / 2.75) return 7.5625 * a * a;
  19860. if (a < 2 / 2.75) return a -= 1.5 / 2.75, 7.5625 * a * a + 0.75;
  19861. if (a < 2.5 / 2.75) return a -= 2.25 / 2.75, 7.5625 * a * a + 0.9375;
  19862. a -= 2.625 / 2.75;
  19863. return 7.5625 * a * a + 0.984375
  19864. },
  19865. q: function() {
  19866. var a = new b.io;
  19867. a.ha(this.F.q());
  19868. return a
  19869. },
  19870. reverse: function() {
  19871. return new b.io(this.F.reverse())
  19872. }
  19873. });
  19874. b.io.create = function(a) {
  19875. return new b.io(a)
  19876. };
  19877. b.py = b.io.extend({
  19878. update: function(a) {
  19879. this.F.update(1 - this.aC(1 - a))
  19880. },
  19881. reverse: function() {
  19882. return new b.ry(this.F.reverse())
  19883. },
  19884. q: function() {
  19885. var a = new b.py;
  19886. a.ha(this.F.q());
  19887. return a
  19888. }
  19889. });
  19890. b.py.create = function(a) {
  19891. return new b.py(a)
  19892. };
  19893. b.Fz = function(a) {
  19894. if (a < 1 / 2.75) return 7.5625 * a * a;
  19895. if (a < 2 / 2.75) return a -= 1.5 / 2.75, 7.5625 * a * a + 0.75;
  19896. if (a < 2.5 / 2.75) return a -= 2.25 / 2.75, 7.5625 * a * a + 0.9375;
  19897. a -= 2.625 / 2.75;
  19898. return 7.5625 * a * a + 0.984375
  19899. };
  19900. b.cQ = {
  19901. fb: function(a) {
  19902. return 1 - b.Fz(1 - a)
  19903. },
  19904. reverse: function() {
  19905. return b.eQ
  19906. }
  19907. };
  19908. b.vla = function() {
  19909. return b.cQ
  19910. };
  19911. b.ry = b.io.extend({
  19912. update: function(a) {
  19913. this.F.update(this.aC(a))
  19914. },
  19915. reverse: function() {
  19916. return new b.py(this.F.reverse())
  19917. },
  19918. q: function() {
  19919. var a = new b.ry;
  19920. a.ha(this.F.q());
  19921. return a
  19922. }
  19923. });
  19924. b.ry.create = function(a) {
  19925. return new b.ry(a)
  19926. };
  19927. b.eQ = {
  19928. fb: function(a) {
  19929. return b.Fz(a)
  19930. },
  19931. reverse: function() {
  19932. return b.cQ
  19933. }
  19934. };
  19935. b.xla = function() {
  19936. return b.eQ
  19937. };
  19938. b.qy = b.io.extend({
  19939. update: function(a) {
  19940. var d = 0,
  19941. d = 0.5 > a ? 0.5 * (1 - this.aC(1 - 2 * a)) : 0.5 * this.aC(2 * a - 1) + 0.5;
  19942. this.F.update(d)
  19943. },
  19944. q: function() {
  19945. var a = new b.qy;
  19946. a.ha(this.F.q());
  19947. return a
  19948. },
  19949. reverse: function() {
  19950. return new b.qy(this.F.reverse())
  19951. }
  19952. });
  19953. b.qy.create = function(a) {
  19954. return new b.qy(a)
  19955. };
  19956. b.dQ = {
  19957. fb: function(a) {
  19958. return a = 0.5 > a ? 0.5 * (1 - b.Fz(1 - 2 * a)) : 0.5 * b.Fz(2 * a - 1) + 0.5
  19959. },
  19960. reverse: function() {
  19961. return b.dQ
  19962. }
  19963. };
  19964. b.wla = function() {
  19965. return b.dQ
  19966. };
  19967. b.my = b.ib.extend({
  19968. update: function(a) {
  19969. this.F.update(0 === a || 1 === a ? a : a * a * (2.70158 * a - 1.70158))
  19970. },
  19971. reverse: function() {
  19972. return new b.oy(this.F.reverse())
  19973. },
  19974. q: function() {
  19975. var a = new b.my;
  19976. a.ha(this.F.q());
  19977. return a
  19978. }
  19979. });
  19980. b.my.create = function(a) {
  19981. return new b.my(a)
  19982. };
  19983. b.$P = {
  19984. fb: function(a) {
  19985. return 0 === a || 1 === a ? a : a * a * (2.70158 * a - 1.70158)
  19986. },
  19987. reverse: function() {
  19988. return b.bQ
  19989. }
  19990. };
  19991. b.sla = function() {
  19992. return b.$P
  19993. };
  19994. b.oy = b.ib.extend({
  19995. update: function(a) {
  19996. a -= 1;
  19997. this.F.update(a * a * (2.70158 * a + 1.70158) + 1)
  19998. },
  19999. reverse: function() {
  20000. return new b.my(this.F.reverse())
  20001. },
  20002. q: function() {
  20003. var a = new b.oy;
  20004. a.ha(this.F.q());
  20005. return a
  20006. }
  20007. });
  20008. b.oy.create = function(a) {
  20009. return new b.oy(a)
  20010. };
  20011. b.bQ = {
  20012. fb: function(a) {
  20013. a -= 1;
  20014. return a * a * (2.70158 * a + 1.70158) + 1
  20015. },
  20016. reverse: function() {
  20017. return b.$P
  20018. }
  20019. };
  20020. b.ula = function() {
  20021. return b.bQ
  20022. };
  20023. b.ny = b.ib.extend({
  20024. update: function(a) {
  20025. a *= 2;
  20026. 1 > a ? this.F.update(a * a * (3.5949095 * a - 2.5949095) / 2) : (a -= 2, this.F.update(a * a * (3.5949095 * a + 2.5949095) / 2 + 1))
  20027. },
  20028. q: function() {
  20029. var a = new b.ny;
  20030. a.ha(this.F.q());
  20031. return a
  20032. },
  20033. reverse: function() {
  20034. return new b.ny(this.F.reverse())
  20035. }
  20036. });
  20037. b.ny.create = function(a) {
  20038. return new b.ny(a)
  20039. };
  20040. b.aQ = {
  20041. fb: function(a) {
  20042. a *= 2;
  20043. if (1 > a) return a * a * (3.5949095 * a - 2.5949095) / 2;
  20044. a -= 2;
  20045. return a * a * (3.5949095 * a + 2.5949095) / 2 + 1
  20046. },
  20047. reverse: function() {
  20048. return b.aQ
  20049. }
  20050. };
  20051. b.tla = function() {
  20052. return b.aQ
  20053. };
  20054. b.Tt = b.ib.extend({
  20055. YA: null,
  20056. ZA: null,
  20057. $A: null,
  20058. aB: null,
  20059. ctor: function(a) {
  20060. b.ib.prototype.ctor.call(this, a)
  20061. },
  20062. Aa: function(a, d, e, f, g) {
  20063. return Math.pow(1 - g, 3) * a + 3 * g * Math.pow(1 - g, 2) * d + 3 * Math.pow(g, 2) * (1 - g) * e + Math.pow(g, 3) * f
  20064. },
  20065. update: function(a) {
  20066. this.F.update(this.Aa(this.YA, this.ZA, this.$A, this.aB, a))
  20067. },
  20068. q: function() {
  20069. var a = new b.Tt;
  20070. a.ha(this.F.q());
  20071. a.kX(this.YA, this.ZA, this.$A, this.aB);
  20072. return a
  20073. },
  20074. reverse: function() {
  20075. var a = new b.Tt(this.F.reverse());
  20076. a.kX(this.aB, this.$A, this.ZA, this.YA);
  20077. return a
  20078. },
  20079. kX: function(a, d, e,
  20080. f) {
  20081. this.YA = a || 0;
  20082. this.ZA = d || 0;
  20083. this.$A = e || 0;
  20084. this.aB = f || 0
  20085. }
  20086. });
  20087. b.Tt.create = function(a) {
  20088. return new b.Tt(a)
  20089. };
  20090. b.s8 = function(a, d, e, f) {
  20091. return {
  20092. fb: function(g) {
  20093. return b.Tt.prototype.Aa(a, d, e, f, g)
  20094. },
  20095. reverse: function() {
  20096. return b.s8(f, e, d, a)
  20097. }
  20098. }
  20099. };
  20100. b.$t = b.ib.extend({
  20101. Aa: function(a) {
  20102. return Math.pow(a, 2)
  20103. },
  20104. update: function(a) {
  20105. this.F.update(this.Aa(a))
  20106. },
  20107. q: function() {
  20108. var a = new b.$t;
  20109. a.ha(this.F.q());
  20110. return a
  20111. },
  20112. reverse: function() {
  20113. return new b.$t(this.F.reverse())
  20114. }
  20115. });
  20116. b.$t.create = function(a) {
  20117. return new b.$t(a)
  20118. };
  20119. b.qQ = {
  20120. fb: b.$t.prototype.Aa,
  20121. reverse: function() {
  20122. return b.qQ
  20123. }
  20124. };
  20125. b.Hla = function() {
  20126. return b.qQ
  20127. };
  20128. b.bu = b.ib.extend({
  20129. Aa: function(a) {
  20130. return -a * (a - 2)
  20131. },
  20132. update: function(a) {
  20133. this.F.update(this.Aa(a))
  20134. },
  20135. q: function() {
  20136. var a = new b.bu;
  20137. a.ha();
  20138. return a
  20139. },
  20140. reverse: function() {
  20141. return new b.bu(this.F.reverse())
  20142. }
  20143. });
  20144. b.bu.create = function(a) {
  20145. return new b.bu(a)
  20146. };
  20147. b.sQ = {
  20148. fb: b.bu.prototype.Aa,
  20149. reverse: function() {
  20150. return b.sQ
  20151. }
  20152. };
  20153. b.Jla = function() {
  20154. return b.sQ
  20155. };
  20156. b.au = b.ib.extend({
  20157. Aa: function(a) {
  20158. var d = a;
  20159. a *= 2;
  20160. 1 > a ? d = a * a * 0.5 : (--a, d = -0.5 * (a * (a - 2) - 1));
  20161. return d
  20162. },
  20163. update: function(a) {
  20164. this.F.update(this.Aa(a))
  20165. },
  20166. q: function() {
  20167. var a = new b.au;
  20168. a.ha(this.F.q());
  20169. return a
  20170. },
  20171. reverse: function() {
  20172. return new b.au(this.F.reverse())
  20173. }
  20174. });
  20175. b.au.create = function(a) {
  20176. return new b.au(a)
  20177. };
  20178. b.rQ = {
  20179. fb: b.au.prototype.Aa,
  20180. reverse: function() {
  20181. return b.rQ
  20182. }
  20183. };
  20184. b.Ila = function() {
  20185. return b.rQ
  20186. };
  20187. b.cu = b.ib.extend({
  20188. Aa: function(a) {
  20189. return a * a * a * a
  20190. },
  20191. update: function(a) {
  20192. this.F.update(this.Aa(a))
  20193. },
  20194. q: function() {
  20195. var a = new b.cu;
  20196. a.ha(this.F.q());
  20197. return a
  20198. },
  20199. reverse: function() {
  20200. return new b.cu(this.F.reverse())
  20201. }
  20202. });
  20203. b.cu.create = function(a) {
  20204. return new b.cu(a)
  20205. };
  20206. b.tQ = {
  20207. fb: b.cu.prototype.Aa,
  20208. reverse: function() {
  20209. return b.tQ
  20210. }
  20211. };
  20212. b.Kla = function() {
  20213. return b.tQ
  20214. };
  20215. b.eu = b.ib.extend({
  20216. Aa: function(a) {
  20217. a -= 1;
  20218. return -(a * a * a * a - 1)
  20219. },
  20220. update: function(a) {
  20221. this.F.update(this.Aa(a))
  20222. },
  20223. q: function() {
  20224. var a = new b.eu;
  20225. a.ha(this.F.q());
  20226. return a
  20227. },
  20228. reverse: function() {
  20229. return new b.eu(this.F.reverse())
  20230. }
  20231. });
  20232. b.eu.create = function(a) {
  20233. return new b.eu(a)
  20234. };
  20235. b.vQ = {
  20236. fb: b.eu.prototype.Aa,
  20237. reverse: function() {
  20238. return b.vQ
  20239. }
  20240. };
  20241. b.Mla = function() {
  20242. return b.vQ
  20243. };
  20244. b.du = b.ib.extend({
  20245. Aa: function(a) {
  20246. a *= 2;
  20247. if (1 > a) return 0.5 * a * a * a * a;
  20248. a -= 2;
  20249. return -0.5 * (a * a * a * a - 2)
  20250. },
  20251. update: function(a) {
  20252. this.F.update(this.Aa(a))
  20253. },
  20254. q: function() {
  20255. var a = new b.du;
  20256. a.ha(this.F.q());
  20257. return a
  20258. },
  20259. reverse: function() {
  20260. return new b.du(this.F.reverse())
  20261. }
  20262. });
  20263. b.du.create = function(a) {
  20264. return new b.du(a)
  20265. };
  20266. b.uQ = {
  20267. fb: b.du.prototype.Aa,
  20268. reverse: function() {
  20269. return b.uQ
  20270. }
  20271. };
  20272. b.Lla = function() {
  20273. return b.uQ
  20274. };
  20275. b.fu = b.ib.extend({
  20276. Aa: function(a) {
  20277. return a * a * a * a * a
  20278. },
  20279. update: function(a) {
  20280. this.F.update(this.Aa(a))
  20281. },
  20282. q: function() {
  20283. var a = new b.fu;
  20284. a.ha(this.F.q());
  20285. return a
  20286. },
  20287. reverse: function() {
  20288. return new b.fu(this.F.reverse())
  20289. }
  20290. });
  20291. b.fu.create = function(a) {
  20292. return new b.fu(a)
  20293. };
  20294. b.wQ = {
  20295. fb: b.fu.prototype.Aa,
  20296. reverse: function() {
  20297. return b.wQ
  20298. }
  20299. };
  20300. b.Nla = function() {
  20301. return b.wQ
  20302. };
  20303. b.hu = b.ib.extend({
  20304. Aa: function(a) {
  20305. a -= 1;
  20306. return a * a * a * a * a + 1
  20307. },
  20308. update: function(a) {
  20309. this.F.update(this.Aa(a))
  20310. },
  20311. q: function() {
  20312. var a = new b.hu;
  20313. a.ha(this.F.q());
  20314. return a
  20315. },
  20316. reverse: function() {
  20317. return new b.hu(this.F.reverse())
  20318. }
  20319. });
  20320. b.hu.create = function(a) {
  20321. return new b.hu(a)
  20322. };
  20323. b.yQ = {
  20324. fb: b.hu.prototype.Aa,
  20325. reverse: function() {
  20326. return b.yQ
  20327. }
  20328. };
  20329. b.Pla = function() {
  20330. return b.yQ
  20331. };
  20332. b.gu = b.ib.extend({
  20333. Aa: function(a) {
  20334. a *= 2;
  20335. if (1 > a) return 0.5 * a * a * a * a * a;
  20336. a -= 2;
  20337. return 0.5 * (a * a * a * a * a + 2)
  20338. },
  20339. update: function(a) {
  20340. this.F.update(this.Aa(a))
  20341. },
  20342. q: function() {
  20343. var a = new b.gu;
  20344. a.ha(this.F.q());
  20345. return a
  20346. },
  20347. reverse: function() {
  20348. return new b.gu(this.F.reverse())
  20349. }
  20350. });
  20351. b.gu.create = function(a) {
  20352. return new b.gu(a)
  20353. };
  20354. b.xQ = {
  20355. fb: b.gu.prototype.Aa,
  20356. reverse: function() {
  20357. return b.xQ
  20358. }
  20359. };
  20360. b.Ola = function() {
  20361. return b.xQ
  20362. };
  20363. b.Ut = b.ib.extend({
  20364. Aa: function(a) {
  20365. return -1 * (Math.sqrt(1 - a * a) - 1)
  20366. },
  20367. update: function(a) {
  20368. this.F.update(this.Aa(a))
  20369. },
  20370. q: function() {
  20371. var a = new b.Ut;
  20372. a.ha(this.F.q());
  20373. return a
  20374. },
  20375. reverse: function() {
  20376. return new b.Ut(this.F.reverse())
  20377. }
  20378. });
  20379. b.Ut.create = function(a) {
  20380. return new b.Ut(a)
  20381. };
  20382. b.fQ = {
  20383. fb: b.Ut.prototype.Aa,
  20384. reverse: function() {
  20385. return b.fQ
  20386. }
  20387. };
  20388. b.yla = function() {
  20389. return b.fQ
  20390. };
  20391. b.Wt = b.ib.extend({
  20392. Aa: function(a) {
  20393. a -= 1;
  20394. return Math.sqrt(1 - a * a)
  20395. },
  20396. update: function(a) {
  20397. this.F.update(this.Aa(a))
  20398. },
  20399. q: function() {
  20400. var a = new b.Wt;
  20401. a.ha(this.F.q());
  20402. return a
  20403. },
  20404. reverse: function() {
  20405. return new b.Wt(this.F.reverse())
  20406. }
  20407. });
  20408. b.Wt.create = function(a) {
  20409. return new b.Wt(a)
  20410. };
  20411. b.hQ = {
  20412. fb: b.Wt.prototype.Aa,
  20413. reverse: function() {
  20414. return b.hQ
  20415. }
  20416. };
  20417. b.Ala = function() {
  20418. return b.hQ
  20419. };
  20420. b.Vt = b.ib.extend({
  20421. Aa: function(a) {
  20422. a *= 2;
  20423. if (1 > a) return -0.5 * (Math.sqrt(1 - a * a) - 1);
  20424. a -= 2;
  20425. return 0.5 * (Math.sqrt(1 - a * a) + 1)
  20426. },
  20427. update: function(a) {
  20428. this.F.update(this.Aa(a))
  20429. },
  20430. q: function() {
  20431. var a = new b.Vt;
  20432. a.ha(this.F.q());
  20433. return a
  20434. },
  20435. reverse: function() {
  20436. return new b.Vt(this.F.reverse())
  20437. }
  20438. });
  20439. b.Vt.create = function(a) {
  20440. return new b.Vt(a)
  20441. };
  20442. b.gQ = {
  20443. fb: b.Vt.prototype.Aa,
  20444. reverse: function() {
  20445. return b.gQ
  20446. }
  20447. };
  20448. b.zla = function() {
  20449. return b.gQ
  20450. };
  20451. b.Xt = b.ib.extend({
  20452. Aa: function(a) {
  20453. return a * a * a
  20454. },
  20455. update: function(a) {
  20456. this.F.update(this.Aa(a))
  20457. },
  20458. q: function() {
  20459. var a = new b.Xt;
  20460. a.ha(this.F.q());
  20461. return a
  20462. },
  20463. reverse: function() {
  20464. return new b.Xt(this.F.reverse())
  20465. }
  20466. });
  20467. b.Xt.create = function(a) {
  20468. return new b.Xt(a)
  20469. };
  20470. b.iQ = {
  20471. fb: b.Xt.prototype.Aa,
  20472. reverse: function() {
  20473. return b.iQ
  20474. }
  20475. };
  20476. b.Bla = function() {
  20477. return b.iQ
  20478. };
  20479. b.Zt = b.ib.extend({
  20480. Aa: function(a) {
  20481. a -= 1;
  20482. return a * a * a + 1
  20483. },
  20484. update: function(a) {
  20485. this.F.update(this.Aa(a))
  20486. },
  20487. q: function() {
  20488. var a = new b.Zt;
  20489. a.ha(this.F.q());
  20490. return a
  20491. },
  20492. reverse: function() {
  20493. return new b.Zt(this.F.reverse())
  20494. }
  20495. });
  20496. b.Zt.create = function(a) {
  20497. return new b.Zt(a)
  20498. };
  20499. b.kQ = {
  20500. fb: b.Zt.prototype.Aa,
  20501. reverse: function() {
  20502. return b.kQ
  20503. }
  20504. };
  20505. b.Dla = function() {
  20506. return b.kQ
  20507. };
  20508. b.Yt = b.ib.extend({
  20509. Aa: function(a) {
  20510. a *= 2;
  20511. if (1 > a) return 0.5 * a * a * a;
  20512. a -= 2;
  20513. return 0.5 * (a * a * a + 2)
  20514. },
  20515. update: function(a) {
  20516. this.F.update(this.Aa(a))
  20517. },
  20518. q: function() {
  20519. var a = new b.Yt;
  20520. a.ha(this.F.q());
  20521. return a
  20522. },
  20523. reverse: function() {
  20524. return new b.Yt(this.F.reverse())
  20525. }
  20526. });
  20527. b.Yt.create = function(a) {
  20528. return new b.Yt(a)
  20529. };
  20530. b.jQ = {
  20531. fb: b.Yt.prototype.Aa,
  20532. reverse: function() {
  20533. return b.jQ
  20534. }
  20535. };
  20536. b.Cla = function() {
  20537. return b.jQ
  20538. };
  20539. b.cC = function(a, d, e, f, g, h) {
  20540. var k = h * h,
  20541. m = k * h,
  20542. n = (1 - g) / 2;
  20543. g = n * (-m + 2 * k - h);
  20544. var p = n * (-m + k) + (2 * m - 3 * k + 1);
  20545. h = n * (m - 2 * k + h) + (-2 * m + 3 * k);
  20546. k = n * (m - k);
  20547. return b.d(a.x * g + d.x * p + e.x * h + f.x * k, a.y * g + d.y * p + e.y * h + f.y * k)
  20548. };
  20549. b.YW = function(a) {
  20550. for (var d = [], e = a.length - 1; 0 <= e; e--) d.push(b.d(a[e].x, a[e].y));
  20551. return d
  20552. };
  20553. b.H7 = function(a) {
  20554. for (var d = [], e = 0; e < a.length; e++) d.push(b.d(a[e].x, a[e].y));
  20555. return d
  20556. };
  20557. b.eC = b.H7;
  20558. b.Nd = function(a, d) {
  20559. var e = Math.min(a.length - 1, Math.max(d, 0));
  20560. return a[e]
  20561. };
  20562. b.Xsa = function(a) {
  20563. for (var d = a.length, e = 0 | d / 2, f = 0; f < e; ++f) {
  20564. var g = a[f];
  20565. a[f] = a[d - f - 1];
  20566. a[d - f - 1] = g
  20567. }
  20568. };
  20569. b.Vk = b.J.extend({
  20570. Wi: null,
  20571. UP: 0,
  20572. Wr: 0,
  20573. od: null,
  20574. jP: null,
  20575. ctor: function(a, d, e) {
  20576. b.J.prototype.ctor.call(this);
  20577. this.Wi = [];
  20578. void 0 !== e && this.l(a, d, e)
  20579. },
  20580. l: function(a, d, e) {
  20581. if (!d || 0 === d.length) throw "Invalid configuration. It must at least have one control point";
  20582. return b.J.prototype.l.call(this, a) ? (this.Gda(d), this.Wr = e, !0) : !1
  20583. },
  20584. q: function() {
  20585. var a = new b.Vk;
  20586. a.l(this.D, b.eC(this.Wi), this.Wr);
  20587. return a
  20588. },
  20589. N: function(a) {
  20590. b.J.prototype.N.call(this, a);
  20591. this.UP = 1 / (this.Wi.length - 1);
  20592. this.od = b.d(this.target.vd(), this.target.Qf());
  20593. this.jP = b.d(0, 0)
  20594. },
  20595. update: function(a) {
  20596. a = this.Yd(a);
  20597. var d, e = this.Wi;
  20598. if (1 === a) d = e.length - 1, a = 1;
  20599. else {
  20600. var f = this.UP;
  20601. d = 0 | a / f;
  20602. a = (a - f * d) / f
  20603. }
  20604. d = b.cC(b.Nd(e, d - 1), b.Nd(e, d - 0), b.Nd(e, d + 1), b.Nd(e, d + 2), this.Wr, a);
  20605. b.jy && (e = this.target.vd() - this.od.x, a = this.target.Qf() - this.od.y, 0 !== e || 0 !== a) && (f = this.jP, e = f.x + e, a = f.y + a, f.x = e, f.y = a, d.x += e, d.y += a);
  20606. this.$D(d)
  20607. },
  20608. reverse: function() {
  20609. var a = b.YW(this.Wi);
  20610. return b.fU(this.D, a, this.Wr)
  20611. },
  20612. $D: function(a) {
  20613. this.target.I(a);
  20614. this.od = a
  20615. },
  20616. eoa: function() {
  20617. return this.Wi
  20618. },
  20619. Gda: function(a) {
  20620. this.Wi =
  20621. a
  20622. }
  20623. });
  20624. b.fU = function(a, d, e) {
  20625. return new b.Vk(a, d, e)
  20626. };
  20627. b.Vk.create = b.fU;
  20628. b.Rt = b.Vk.extend({
  20629. bd: null,
  20630. ctor: function(a, d, e) {
  20631. b.Vk.prototype.ctor.call(this);
  20632. this.bd = b.d(0, 0);
  20633. void 0 !== e && this.l(a, d, e)
  20634. },
  20635. N: function(a) {
  20636. b.Vk.prototype.N.call(this, a);
  20637. this.bd.x = a.vd();
  20638. this.bd.y = a.Qf()
  20639. },
  20640. reverse: function() {
  20641. for (var a = this.Wi.slice(), d, e = a[0], f = 1; f < a.length; ++f) d = a[f], a[f] = b.zd(d, e), e = d;
  20642. a = b.YW(a);
  20643. e = a[a.length - 1];
  20644. a.pop();
  20645. e.x = -e.x;
  20646. e.y = -e.y;
  20647. a.unshift(e);
  20648. for (f = 1; f < a.length; ++f) d = a[f], d.x = -d.x, d.y = -d.y, d.x += e.x, d.y += e.y, e = a[f] = d;
  20649. return b.eU(this.D, a, this.Wr)
  20650. },
  20651. $D: function(a) {
  20652. var d = this.bd,
  20653. e =
  20654. a.x + d.x;
  20655. a = a.y + d.y;
  20656. this.od.x = e;
  20657. this.od.y = a;
  20658. this.target.I(e, a)
  20659. },
  20660. q: function() {
  20661. var a = new b.Rt;
  20662. a.l(this.D, b.eC(this.Wi), this.Wr);
  20663. return a
  20664. }
  20665. });
  20666. b.eU = function(a, d, e) {
  20667. return new b.Rt(a, d, e)
  20668. };
  20669. b.Rt.create = b.eU;
  20670. b.nE = b.Vk.extend({
  20671. ctor: function(a, d) {
  20672. d && this.l(a, d)
  20673. },
  20674. l: function(a, d) {
  20675. return b.Vk.prototype.l.call(this, a, d, 0.5)
  20676. },
  20677. q: function() {
  20678. var a = new b.nE;
  20679. a.l(this.D, b.eC(this.Wi));
  20680. return a
  20681. }
  20682. });
  20683. b.A7 = function(a, d) {
  20684. return new b.nE(a, d)
  20685. };
  20686. b.nE.create = b.A7;
  20687. b.mE = b.Rt.extend({
  20688. ctor: function(a, d) {
  20689. b.Rt.prototype.ctor.call(this);
  20690. d && this.l(a, d)
  20691. },
  20692. l: function(a, d) {
  20693. return b.Vk.prototype.l.call(this, a, d, 0.5)
  20694. },
  20695. q: function() {
  20696. var a = new b.mE;
  20697. a.l(this.D, b.eC(this.Wi));
  20698. return a
  20699. }
  20700. });
  20701. b.z7 = function(a, d) {
  20702. return new b.mE(a, d)
  20703. };
  20704. b.mE.create = b.z7;
  20705. b.Lfa = b.sa.extend({
  20706. sM: function() {}
  20707. });
  20708. b.Lt = b.J.extend({
  20709. key: "",
  20710. kC: 0,
  20711. Ox: 0,
  20712. vs: 0,
  20713. ctor: function(a, d, e, f) {
  20714. b.J.prototype.ctor.call(this);
  20715. this.key = "";
  20716. void 0 !== f && this.l(a, d, e, f)
  20717. },
  20718. l: function(a, d, e, f) {
  20719. return b.J.prototype.l.call(this, a) ? (this.key = d, this.Ox = f, this.kC = e, !0) : !1
  20720. },
  20721. N: function(a) {
  20722. if (!a || !a.sM) throw "cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function";
  20723. b.J.prototype.N.call(this, a);
  20724. this.vs = this.Ox - this.kC
  20725. },
  20726. update: function(a) {
  20727. this.target.sM(this.Ox - this.vs * (1 - a), this.key)
  20728. },
  20729. reverse: function() {
  20730. return new b.Lt(this.duration,
  20731. this.key, this.Ox, this.kC)
  20732. },
  20733. q: function() {
  20734. var a = new b.Lt;
  20735. a.l(this.D, this.key, this.kC, this.Ox);
  20736. return a
  20737. }
  20738. });
  20739. b.NT = function(a, d, e, f) {
  20740. return new b.Lt(a, d, e, f)
  20741. };
  20742. b.Lt.create = b.NT;
  20743. b.Hc = b.J.extend({
  20744. da: null,
  20745. fja: null,
  20746. ctor: function(a, d) {
  20747. b.pG();
  20748. b.J.prototype.ctor.call(this);
  20749. this.da = b.size(0, 0);
  20750. d && this.l(a, d)
  20751. },
  20752. Jia: function() {},
  20753. q: function() {
  20754. var a = new b.Hc,
  20755. d = this.da;
  20756. a.l(this.D, b.size(d.width, d.height));
  20757. return a
  20758. },
  20759. N: function(a) {
  20760. b.J.prototype.N.call(this, a);
  20761. b.oa.he = !0;
  20762. var d = this.Hs(),
  20763. e = this.target;
  20764. (a = e.grid) && 0 < a.ok ? (d = a.y9(), a.Ln() && d.width === this.da.width && d.height === this.da.height && a.nt()) : (a && a.Ln() && a.setActive(!1), e.grid = d, e.grid.setActive(!0))
  20765. },
  20766. reverse: function() {
  20767. return new b.su(this)
  20768. },
  20769. l: function(a, d) {
  20770. return b.J.prototype.l.call(this, a) ? (this.da.width = d.width, this.da.height = d.height, !0) : !1
  20771. },
  20772. Hs: function() {
  20773. b.log("cc.GridAction.getGrid(): it should be overridden in subclass.")
  20774. }
  20775. });
  20776. b.faa = function(a, d) {
  20777. return new b.Hc(a, d)
  20778. };
  20779. b.Hc.create = b.faa;
  20780. b.Bd = b.Hc.extend({
  20781. Hs: function() {
  20782. return new b.Iy(this.da)
  20783. },
  20784. ofa: function(a) {
  20785. return this.BC(a)
  20786. },
  20787. BC: function(a) {
  20788. return this.target.grid.BC(a)
  20789. },
  20790. yd: function(a) {
  20791. return this.qC(a)
  20792. },
  20793. qC: function(a) {
  20794. return this.target.grid.yd(a)
  20795. },
  20796. Me: function(a, d) {
  20797. this.target.grid.Me(a, d)
  20798. }
  20799. });
  20800. b.eaa = function(a, d) {
  20801. return new b.Bd(a, d)
  20802. };
  20803. b.Bd.create = b.eaa;
  20804. b.Qc = b.Hc.extend({
  20805. sY: function(a) {
  20806. return this.SK(a)
  20807. },
  20808. SK: function(a) {
  20809. return this.target.grid.sY(a)
  20810. },
  20811. gh: function(a) {
  20812. return this.HK(a)
  20813. },
  20814. HK: function(a) {
  20815. return this.target.grid.gh(a)
  20816. },
  20817. Wf: function(a, d) {
  20818. this.target.grid.Wf(a, d)
  20819. },
  20820. Hs: function() {
  20821. return new b.FF(this.da)
  20822. }
  20823. });
  20824. b.Zea = function(a, d) {
  20825. return new b.Qc(a, d)
  20826. };
  20827. b.Qc.create = b.Zea;
  20828. b.dO = b.xf.extend({
  20829. N: function(a) {
  20830. b.xf.prototype.N.call(this, a);
  20831. b.oa.he = !0;
  20832. (a = this.target.grid) && a.Ln() && a.setActive(!1)
  20833. }
  20834. });
  20835. b.Ct = function() {
  20836. return new b.dO
  20837. };
  20838. b.dO.create = b.Ct;
  20839. b.RN = b.xf.extend({
  20840. Kf: null,
  20841. ctor: function(a) {
  20842. b.xf.prototype.ctor.call(this);
  20843. void 0 !== a && this.Gaa(a)
  20844. },
  20845. Gaa: function(a) {
  20846. this.Kf = a;
  20847. return !0
  20848. },
  20849. N: function(a) {
  20850. b.xf.prototype.N.call(this, a);
  20851. b.oa.he = !0;
  20852. this.target.grid && this.target.grid.Ln() && this.target.grid.Mda(this.target.grid.ok + this.Kf)
  20853. }
  20854. });
  20855. b.Gca = function(a) {
  20856. return new b.RN(a)
  20857. };
  20858. b.RN.create = b.Gca;
  20859. b.$O = b.Bd.extend({
  20860. mg: 0,
  20861. tb: 0,
  20862. ub: 0,
  20863. ctor: function(a, d, e, f) {
  20864. b.Hc.prototype.ctor.call(this);
  20865. void 0 !== f && this.l(a, d, e, f)
  20866. },
  20867. Ds: function() {
  20868. return this.tb
  20869. },
  20870. pt: function(a) {
  20871. this.tb = a
  20872. },
  20873. Pp: function() {
  20874. return this.ub
  20875. },
  20876. cq: function(a) {
  20877. this.ub = a
  20878. },
  20879. l: function(a, d, e, f) {
  20880. return b.Bd.prototype.l.call(this, a, d) ? (this.mg = e, this.tb = f, this.ub = 1, !0) : !1
  20881. },
  20882. update: function(a) {
  20883. for (var d = this.da, e = this.tb, f = b.d(0, 0), g = this.ub, h = this.mg, k = 0; k < d.width + 1; ++k)
  20884. for (var m = 0; m < d.height + 1; ++m) {
  20885. f.x = k;
  20886. f.y = m;
  20887. var n = this.yd(f);
  20888. n.z += Math.sin(Math.PI *
  20889. a * h * 2 + 0.01 * (n.y + n.x)) * e * g;
  20890. this.Me(f, n)
  20891. }
  20892. }
  20893. });
  20894. b.sfa = function(a, d, e, f) {
  20895. return new b.$O(a, d, e, f)
  20896. };
  20897. b.$O.create = b.sfa;
  20898. b.DE = b.Bd.extend({
  20899. ctor: function(a) {
  20900. void 0 !== a ? b.Hc.prototype.ctor.call(this, a, b.size(1, 1)) : b.Hc.prototype.ctor.call(this)
  20901. },
  20902. l: function(a) {
  20903. return b.Bd.prototype.l.call(this, a, b.size(1, 1))
  20904. },
  20905. PC: function(a, d) {
  20906. return 1 !== a.width || 1 !== a.height ? (b.log("Grid size must be (1,1)"), !1) : b.Bd.prototype.l.call(this, d, a)
  20907. },
  20908. update: function(a) {
  20909. var d = Math.PI * a;
  20910. a = Math.sin(d);
  20911. var e = Math.cos(d / 2),
  20912. d = new N,
  20913. f = b.d(0, 0);
  20914. f.x = f.y = 1;
  20915. var g = this.yd(f);
  20916. f.x = f.y = 0;
  20917. var f = this.yd(f),
  20918. h = g.x,
  20919. k = f.x,
  20920. m, n;
  20921. h > k ? (g = b.d(0, 0), f = b.d(0, 1), m = b.d(1,
  20922. 0), n = b.d(1, 1)) : (m = b.d(0, 0), n = b.d(0, 1), g = b.d(1, 0), f = b.d(1, 1), h = k);
  20923. d.x = h - h * e;
  20924. d.z = Math.abs(parseFloat(h * a / 4));
  20925. a = this.yd(g);
  20926. a.x = d.x;
  20927. a.z += d.z;
  20928. this.Me(g, a);
  20929. a = this.yd(f);
  20930. a.x = d.x;
  20931. a.z += d.z;
  20932. this.Me(f, a);
  20933. a = this.yd(m);
  20934. a.x -= d.x;
  20935. a.z -= d.z;
  20936. this.Me(m, a);
  20937. a = this.yd(n);
  20938. a.x -= d.x;
  20939. a.z -= d.z;
  20940. this.Me(n, a)
  20941. }
  20942. });
  20943. b.O8 = function(a) {
  20944. return new b.DE(a)
  20945. };
  20946. b.DE.create = b.O8;
  20947. b.eN = b.DE.extend({
  20948. ctor: function(a) {
  20949. void 0 !== a ? b.Hc.prototype.ctor.call(this, a, b.size(1, 1)) : b.Hc.prototype.ctor.call(this)
  20950. },
  20951. update: function(a) {
  20952. var d = Math.PI * a;
  20953. a = Math.sin(d);
  20954. var e = Math.cos(d / 2),
  20955. d = new N,
  20956. f = b.d(0, 0);
  20957. f.x = f.y = 1;
  20958. var g = this.yd(f);
  20959. f.x = f.y = 0;
  20960. var f = this.yd(f),
  20961. h = g.y,
  20962. k = f.y,
  20963. m, n;
  20964. h > k ? (g = b.d(0, 0), f = b.d(0, 1), m = b.d(1, 0), n = b.d(1, 1)) : (f = b.d(0, 0), g = b.d(0, 1), n = b.d(1, 0), m = b.d(1, 1), h = k);
  20965. d.y = h - h * e;
  20966. d.z = Math.abs(parseFloat(h * a) / 4);
  20967. a = this.yd(g);
  20968. a.y = d.y;
  20969. a.z += d.z;
  20970. this.Me(g, a);
  20971. a = this.yd(f);
  20972. a.y -= d.y;
  20973. a.z -= d.z;
  20974. this.Me(f,
  20975. a);
  20976. a = this.yd(m);
  20977. a.y = d.y;
  20978. a.z += d.z;
  20979. this.Me(m, a);
  20980. a = this.yd(n);
  20981. a.y -= d.y;
  20982. a.z -= d.z;
  20983. this.Me(n, a)
  20984. }
  20985. });
  20986. b.Q8 = function(a) {
  20987. return new b.eN(a)
  20988. };
  20989. b.eN.create = b.Q8;
  20990. b.kN = b.Bd.extend({
  20991. Ca: null,
  20992. jg: 0,
  20993. EA: 0,
  20994. c3: !1,
  20995. Ra: !1,
  20996. ctor: function(a, d, e, f) {
  20997. b.Hc.prototype.ctor.call(this);
  20998. this.Ca = b.d(0, 0);
  20999. void 0 !== f && this.l(a, d, e, f)
  21000. },
  21001. Ena: function() {
  21002. return this.EA
  21003. },
  21004. gua: function(a) {
  21005. this.EA = a
  21006. },
  21007. Eta: function(a) {
  21008. this.c3 = a
  21009. },
  21010. Pf: function() {
  21011. return this.Ca
  21012. },
  21013. I: function(a) {
  21014. b.DL(a, this.Ca) || (this.Ca.x = a.x, this.Ca.y = a.y, this.Ra = !0)
  21015. },
  21016. l: function(a, d, e, f) {
  21017. return b.Bd.prototype.l.call(this, a, d) ? (this.I(e), this.jg = f, this.EA = 0.7, this.Ra = !0) : !1
  21018. },
  21019. update: function() {
  21020. if (this.Ra) {
  21021. for (var a = this.da.width, d = this.da.height,
  21022. e = this.jg, f = this.EA, g = b.d(0, 0), h = b.d(0, 0), k, m, n, p = 0; p < a + 1; ++p)
  21023. for (var s = 0; s < d + 1; ++s) g.x = p, g.y = s, k = this.yd(g), h.x = this.Ca.x - k.x, h.y = this.Ca.y - k.y, m = b.Xp(h), m < e && (m = e - m, m /= e, 0 === m && (m = 0.001), m = Math.log(m) * f, n = Math.exp(m) * e, m = b.Xp(h), 0 < m && (h.x /= m, h.y /= m, h.x *= n, h.y *= n, k.z += b.Xp(h) * f)), this.Me(g, k);
  21024. this.Ra = !1
  21025. }
  21026. }
  21027. });
  21028. b.vba = function(a, d, e, f) {
  21029. return new b.kN(a, d, e, f)
  21030. };
  21031. b.kN.create = b.vba;
  21032. b.SN = b.Bd.extend({
  21033. Ca: null,
  21034. jg: 0,
  21035. mg: 0,
  21036. tb: 0,
  21037. ub: 0,
  21038. ctor: function(a, d, e, f, g, h) {
  21039. b.Hc.prototype.ctor.call(this);
  21040. this.Ca = b.d(0, 0);
  21041. void 0 !== h && this.l(a, d, e, f, g, h)
  21042. },
  21043. Pf: function() {
  21044. return this.Ca
  21045. },
  21046. I: function(a) {
  21047. this.Ca.x = a.x;
  21048. this.Ca.y = a.y
  21049. },
  21050. Ds: function() {
  21051. return this.tb
  21052. },
  21053. pt: function(a) {
  21054. this.tb = a
  21055. },
  21056. Pp: function() {
  21057. return this.ub
  21058. },
  21059. cq: function(a) {
  21060. this.ub = a
  21061. },
  21062. l: function(a, d, e, f, g, h) {
  21063. return b.Bd.prototype.l.call(this, a, d) ? (this.I(e), this.jg = f, this.mg = g, this.tb = h, this.ub = 1, !0) : !1
  21064. },
  21065. update: function(a) {
  21066. for (var d = this.da.width,
  21067. e = this.da.height, f = b.d(0, 0), g = this.jg, h = this.mg, k = this.tb, m = this.ub, n, p, s = b.d(0, 0), t = 0; t < d + 1; ++t)
  21068. for (var v = 0; v < e + 1; ++v) f.x = t, f.y = v, n = this.yd(f), s.x = this.Ca.x - n.x, s.y = this.Ca.y - n.y, p = b.Xp(s), p < g && (p = g - p, n.z += Math.sin(a * Math.PI * h * 2 + 0.1 * p) * k * m * Math.pow(p / g, 2)), this.Me(f, n)
  21069. }
  21070. });
  21071. b.Hca = function(a, d, e, f, g, h) {
  21072. return new b.SN(a, d, e, f, g, h)
  21073. };
  21074. b.SN.create = b.Hca;
  21075. b.XN = b.Bd.extend({
  21076. nn: 0,
  21077. Rv: !1,
  21078. ctor: function(a, d, e, f) {
  21079. b.Hc.prototype.ctor.call(this);
  21080. void 0 !== f && this.l(a, d, e, f)
  21081. },
  21082. l: function(a, d, e, f) {
  21083. return b.Bd.prototype.l.call(this, a, d) ? (this.nn = e, this.Rv = f, !0) : !1
  21084. },
  21085. update: function() {
  21086. for (var a = this.da.width, d = this.da.height, e = this.nn, f = this.Rv, g = b.d(0, 0), h, k = 0; k < a + 1; ++k)
  21087. for (var m = 0; m < d + 1; ++m) g.x = k, g.y = m, h = this.yd(g), h.x += b.Yb() % (2 * e) - e, h.y += b.Yb() % (2 * e) - e, f && (h.z += b.Yb() % (2 * e) - e), this.Me(g, h)
  21088. }
  21089. });
  21090. b.pea = function(a, d, e, f) {
  21091. return new b.XN(a, d, e, f)
  21092. };
  21093. b.XN.create = b.pea;
  21094. b.lN = b.Bd.extend({
  21095. mg: 0,
  21096. tb: 0,
  21097. ub: 0,
  21098. ctor: function(a, d, e, f) {
  21099. b.Hc.prototype.ctor.call(this);
  21100. void 0 !== f && this.l(a, d, e, f)
  21101. },
  21102. Ds: function() {
  21103. return this.tb
  21104. },
  21105. pt: function(a) {
  21106. this.tb = a
  21107. },
  21108. Pp: function() {
  21109. return this.ub
  21110. },
  21111. cq: function(a) {
  21112. this.ub = a
  21113. },
  21114. l: function(a, d, e, f) {
  21115. return b.Bd.prototype.l.call(this, a, d) ? (this.mg = e, this.tb = f, this.ub = 1, !0) : !1
  21116. },
  21117. update: function(a) {
  21118. for (var d = this.da.width, e = this.da.height, f = b.d(0, 0), g = this.mg, h = this.tb, k = this.ub, m, n = 1; n < d; ++n)
  21119. for (var p = 1; p < e; ++p) f.x = n, f.y = p, m = this.yd(f), m.x += Math.sin(a *
  21120. Math.PI * g * 2 + 0.01 * m.x) * h * k, m.y += Math.sin(a * Math.PI * g * 2 + 0.01 * m.y) * h * k, this.Me(f, m)
  21121. }
  21122. });
  21123. b.xba = function(a, d, e, f) {
  21124. return new b.lN(a, d, e, f)
  21125. };
  21126. b.lN.create = b.xba;
  21127. b.ZO = b.Bd.extend({
  21128. mg: 0,
  21129. tb: 0,
  21130. ub: 0,
  21131. IT: !1,
  21132. hR: !1,
  21133. ctor: function(a, d, e, f, g, h) {
  21134. b.Hc.prototype.ctor.call(this);
  21135. void 0 !== h && this.l(a, d, e, f, g, h)
  21136. },
  21137. Ds: function() {
  21138. return this.tb
  21139. },
  21140. pt: function(a) {
  21141. this.tb = a
  21142. },
  21143. Pp: function() {
  21144. return this.ub
  21145. },
  21146. cq: function(a) {
  21147. this.ub = a
  21148. },
  21149. l: function(a, d, e, f, g, h) {
  21150. return b.Bd.prototype.l.call(this, a, d) ? (this.mg = e, this.tb = f, this.ub = 1, this.hR = g, this.IT = h, !0) : !1
  21151. },
  21152. update: function(a) {
  21153. for (var d = this.da.width, e = this.da.height, f = b.d(0, 0), g = this.IT, h = this.hR, k = this.mg, m = this.tb, n = this.ub, p, s = 0; s < d +
  21154. 1; ++s)
  21155. for (var t = 0; t < e + 1; ++t) f.x = s, f.y = t, p = this.yd(f), g && (p.x += Math.sin(a * Math.PI * k * 2 + 0.01 * p.y) * m * n), h && (p.y += Math.sin(a * Math.PI * k * 2 + 0.01 * p.x) * m * n), this.Me(f, p)
  21156. }
  21157. });
  21158. b.rfa = function(a, d, e, f, g, h) {
  21159. return new b.ZO(a, d, e, f, g, h)
  21160. };
  21161. b.ZO.create = b.rfa;
  21162. b.SO = b.Bd.extend({
  21163. Ca: null,
  21164. nT: 0,
  21165. tb: 0,
  21166. ub: 0,
  21167. ctor: function(a, d, e, f, g) {
  21168. b.Hc.prototype.ctor.call(this);
  21169. this.Ca = b.d(0, 0);
  21170. void 0 !== g && this.l(a, d, e, f, g)
  21171. },
  21172. Pf: function() {
  21173. return this.Ca
  21174. },
  21175. I: function(a) {
  21176. this.Ca.x = a.x;
  21177. this.Ca.y = a.y
  21178. },
  21179. Ds: function() {
  21180. return this.tb
  21181. },
  21182. pt: function(a) {
  21183. this.tb = a
  21184. },
  21185. Pp: function() {
  21186. return this.ub
  21187. },
  21188. cq: function(a) {
  21189. this.ub = a
  21190. },
  21191. l: function(a, d, e, f, g) {
  21192. return b.Bd.prototype.l.call(this, a, d) ? (this.I(e), this.nT = f, this.tb = g, this.ub = 1, !0) : !1
  21193. },
  21194. update: function(a) {
  21195. for (var d = this.Ca, e = this.da.width, f = this.da.height,
  21196. g = b.d(0, 0), h = 0.1 * this.tb * this.ub, k = this.nT, m, n, p, s = b.d(0, 0), t = 0; t < e + 1; ++t)
  21197. for (var v = 0; v < f + 1; ++v) g.x = t, g.y = v, m = this.yd(g), s.x = t - e / 2, s.y = v - f / 2, n = b.Xp(s) * Math.cos(Math.PI / 2 + a * Math.PI * k * 2) * h, p = Math.sin(n) * (m.y - d.y) + Math.cos(n) * (m.x - d.x), n = Math.cos(n) * (m.y - d.y) - Math.sin(n) * (m.x - d.x), m.x = d.x + p, m.y = d.y + n, this.Me(g, m)
  21198. }
  21199. });
  21200. b.gfa = function(a, d, e, f, g) {
  21201. return new b.SO(a, d, e, f, g)
  21202. };
  21203. b.SO.create = b.gfa;
  21204. b.YN = b.Qc.extend({
  21205. nn: 0,
  21206. Rv: !1,
  21207. ctor: function(a, d, e, f) {
  21208. b.Hc.prototype.ctor.call(this);
  21209. void 0 !== f && this.l(a, d, e, f)
  21210. },
  21211. l: function(a, d, e, f) {
  21212. return b.Qc.prototype.l.call(this, a, d) ? (this.nn = e, this.Rv = f, !0) : !1
  21213. },
  21214. update: function() {
  21215. for (var a = this.da, d = this.nn, e = b.d(0, 0), f = 0; f < a.width; ++f)
  21216. for (var g = 0; g < a.height; ++g) {
  21217. e.x = f;
  21218. e.y = g;
  21219. var h = this.gh(e);
  21220. h.bl.x += b.Yb() % (2 * d) - d;
  21221. h.br.x += b.Yb() % (2 * d) - d;
  21222. h.tl.x += b.Yb() % (2 * d) - d;
  21223. h.tr.x += b.Yb() % (2 * d) - d;
  21224. h.bl.y += b.Yb() % (2 * d) - d;
  21225. h.br.y += b.Yb() % (2 * d) - d;
  21226. h.tl.y += b.Yb() % (2 * d) - d;
  21227. h.tr.y +=
  21228. b.Yb() % (2 * d) - d;
  21229. this.Rv && (h.bl.z += b.Yb() % (2 * d) - d, h.br.z += b.Yb() % (2 * d) - d, h.tl.z += b.Yb() % (2 * d) - d, h.tr.z += b.Yb() % (2 * d) - d);
  21230. this.Wf(e, h)
  21231. }
  21232. }
  21233. });
  21234. b.qea = function(a, d, e, f) {
  21235. return new b.YN(a, d, e, f)
  21236. };
  21237. b.YN.create = b.qea;
  21238. b.ZN = b.Qc.extend({
  21239. nn: 0,
  21240. OH: !1,
  21241. SS: !1,
  21242. ctor: function(a, d, e, f) {
  21243. b.Hc.prototype.ctor.call(this);
  21244. void 0 !== f && this.l(a, d, e, f)
  21245. },
  21246. l: function(a, d, e, f) {
  21247. return b.Qc.prototype.l.call(this, a, d) ? (this.OH = !1, this.nn = e, this.SS = f, !0) : !1
  21248. },
  21249. update: function() {
  21250. if (!1 === this.OH) {
  21251. for (var a = this.da, d = this.nn, e, f = b.d(0, 0), g = 0; g < a.width; ++g)
  21252. for (var h = 0; h < a.height; ++h) f.x = g, f.y = h, e = this.gh(f), e.bl.x += b.Yb() % (2 * d) - d, e.br.x += b.Yb() % (2 * d) - d, e.tl.x += b.Yb() % (2 * d) - d, e.tr.x += b.Yb() % (2 * d) - d, e.bl.y += b.Yb() % (2 * d) - d, e.br.y += b.Yb() % (2 * d) - d,
  21253. e.tl.y += b.Yb() % (2 * d) - d, e.tr.y += b.Yb() % (2 * d) - d, this.SS && (e.bl.z += b.Yb() % (2 * d) - d, e.br.z += b.Yb() % (2 * d) - d, e.tl.z += b.Yb() % (2 * d) - d, e.tr.z += b.Yb() % (2 * d) - d), this.Wf(f, e);
  21254. this.OH = !0
  21255. }
  21256. }
  21257. });
  21258. b.rea = function(a, d, e, f) {
  21259. return new b.ZN(a, d, e, f)
  21260. };
  21261. b.ZN.create = b.rea;
  21262. function pa() {
  21263. this.position = b.d(0, 0);
  21264. this.Gea = b.d(0, 0);
  21265. this.vs = b.d(0, 0)
  21266. }
  21267. b.$N = b.Qc.extend({
  21268. vI: 0,
  21269. Sl: 0,
  21270. sk: null,
  21271. Jf: null,
  21272. ctor: function(a, d, e) {
  21273. b.Hc.prototype.ctor.call(this);
  21274. this.sk = [];
  21275. this.Jf = [];
  21276. void 0 !== e && this.l(a, d, e)
  21277. },
  21278. l: function(a, d, e) {
  21279. return b.Qc.prototype.l.call(this, a, d) ? (this.vI = e, this.sk.length = 0, this.Jf.length = 0, !0) : !1
  21280. },
  21281. eM: function(a, d) {
  21282. for (var e = d - 1; 0 <= e; e--) {
  21283. var f = 0 | b.Yb() % (e + 1),
  21284. g = a[e];
  21285. a[e] = a[f];
  21286. a[f] = g
  21287. }
  21288. },
  21289. AK: function(a) {
  21290. var d = this.da,
  21291. e = a.width * d.height + a.height;
  21292. return b.size(this.sk[e] / d.height - a.width, this.sk[e] % d.height - a.height)
  21293. },
  21294. Vba: function(a, d) {
  21295. var e = this.gh(a),
  21296. f = this.target.grid.QK(),
  21297. g = d.position;
  21298. e.bl.x += g.x * f.x;
  21299. e.bl.y += g.y * f.y;
  21300. e.br.x += g.x * f.x;
  21301. e.br.y += g.y * f.y;
  21302. e.tl.x += g.x * f.x;
  21303. e.tl.y += g.y * f.y;
  21304. e.tr.x += g.x * f.x;
  21305. e.tr.y += g.y * f.y;
  21306. this.Wf(a, e)
  21307. },
  21308. N: function(a) {
  21309. b.Qc.prototype.N.call(this, a);
  21310. a = this.da;
  21311. this.Sl = a.width * a.height;
  21312. for (var d = this.sk, e = d.length = 0; e < this.Sl; ++e) d[e] = e;
  21313. this.eM(d, this.Sl);
  21314. for (var d = this.Jf, e = d.length = 0, f = b.size(0, 0), g = 0; g < a.width; ++g)
  21315. for (var h = 0; h < a.height; ++h) d[e] = new pa, d[e].position = b.d(g, h), d[e].Gea = b.d(g, h), f.width = g, f.height = h, d[e].vs =
  21316. this.AK(f), ++e
  21317. },
  21318. update: function(a) {
  21319. for (var d = 0, e = this.da, f = this.Jf, g, h = b.d(0, 0), k = 0; k < e.width; ++k)
  21320. for (var m = 0; m < e.height; ++m) h.x = k, h.y = m, g = f[d], g.position.x = g.vs.width * a, g.position.y = g.vs.height * a, this.Vba(h, g), ++d
  21321. }
  21322. });
  21323. b.tea = function(a, d, e) {
  21324. return new b.$N(a, d, e)
  21325. };
  21326. b.$N.create = b.tea;
  21327. b.Ey = b.Qc.extend({
  21328. YD: function(a, d) {
  21329. var e = this.da.width * d,
  21330. f = this.da.height * d;
  21331. return 0 === e + f ? 1 : Math.pow((a.width + a.height) / (e + f), 6)
  21332. },
  21333. oM: function(a) {
  21334. this.Wf(a, this.gh(a))
  21335. },
  21336. nM: function(a) {
  21337. this.Wf(a, new b.Py)
  21338. },
  21339. wY: function(a, d) {
  21340. var e = this.gh(a),
  21341. f = this.target.grid.QK();
  21342. e.bl.x += f.x / 2 * (1 - d);
  21343. e.bl.y += f.y / 2 * (1 - d);
  21344. e.br.x -= f.x / 2 * (1 - d);
  21345. e.br.y += f.y / 2 * (1 - d);
  21346. e.tl.x += f.x / 2 * (1 - d);
  21347. e.tl.y -= f.y / 2 * (1 - d);
  21348. e.tr.x -= f.x / 2 * (1 - d);
  21349. e.tr.y -= f.y / 2 * (1 - d);
  21350. this.Wf(a, e)
  21351. },
  21352. update: function(a) {
  21353. for (var d = this.da, e = b.d(0, 0), f = b.size(0, 0), g,
  21354. h = 0; h < d.width; ++h)
  21355. for (var k = 0; k < d.height; ++k) e.x = h, e.y = k, f.width = h, f.height = k, g = this.YD(f, a), 0 === g ? this.nM(e) : 1 > g ? this.wY(e, g) : this.oM(e)
  21356. }
  21357. });
  21358. b.VU = function(a, d) {
  21359. return new b.Ey(a, d)
  21360. };
  21361. b.Ey.create = b.VU;
  21362. b.cN = b.Ey.extend({
  21363. YD: function(a, d) {
  21364. return 0 === a.width + a.height ? 1 : Math.pow((this.da.width * (1 - d) + this.da.height * (1 - d)) / (a.width + a.height), 6)
  21365. }
  21366. });
  21367. b.TU = function(a, d) {
  21368. return new b.cN(a, d)
  21369. };
  21370. b.cN.create = b.TU;
  21371. b.Fy = b.Ey.extend({
  21372. YD: function(a, d) {
  21373. var e = this.da.height * d;
  21374. return 0 === e ? 1 : Math.pow(a.height / e, 6)
  21375. },
  21376. wY: function(a, d) {
  21377. var e = this.gh(a),
  21378. f = this.target.grid.QK();
  21379. e.bl.y += f.y / 2 * (1 - d);
  21380. e.br.y += f.y / 2 * (1 - d);
  21381. e.tl.y -= f.y / 2 * (1 - d);
  21382. e.tr.y -= f.y / 2 * (1 - d);
  21383. this.Wf(a, e)
  21384. }
  21385. });
  21386. b.K8 = function(a, d) {
  21387. return new b.Fy(a, d)
  21388. };
  21389. b.Fy.create = b.K8;
  21390. b.dN = b.Fy.extend({
  21391. YD: function(a, d) {
  21392. return 0 === a.height ? 1 : Math.pow(this.da.height * (1 - d) / a.height, 6)
  21393. }
  21394. });
  21395. b.UU = function(a, d) {
  21396. return new b.dN(a, d)
  21397. };
  21398. b.dN.create = b.UU;
  21399. b.RO = b.Qc.extend({
  21400. vI: null,
  21401. Sl: 0,
  21402. sk: null,
  21403. ctor: function(a, d, e) {
  21404. b.Hc.prototype.ctor.call(this);
  21405. this.sk = [];
  21406. void 0 !== d && this.l(a, d, e)
  21407. },
  21408. l: function(a, d, e) {
  21409. return b.Qc.prototype.l.call(this, a, d) ? (this.vI = e || 0, this.sk.length = 0, !0) : !1
  21410. },
  21411. eM: function(a, d) {
  21412. for (var e = d - 1; 0 <= e; e--) {
  21413. var f = 0 | b.Yb() % (e + 1),
  21414. g = a[e];
  21415. a[e] = a[f];
  21416. a[f] = g
  21417. }
  21418. },
  21419. oM: function(a) {
  21420. this.Wf(a, this.gh(a))
  21421. },
  21422. nM: function(a) {
  21423. this.Wf(a, new b.Py)
  21424. },
  21425. N: function(a) {
  21426. b.Qc.prototype.N.call(this, a);
  21427. this.Sl = this.da.width * this.da.height;
  21428. a = this.sk;
  21429. for (var d = a.length = 0; d <
  21430. this.Sl; ++d) a[d] = d;
  21431. this.eM(a, this.Sl)
  21432. },
  21433. update: function(a) {
  21434. a = 0 | a * this.Sl;
  21435. for (var d = this.da, e, f = b.d(0, 0), g = this.sk, h = 0; h < this.Sl; h++) e = g[h], f.x = 0 | e / d.height, f.y = e % (0 | d.height), h < a ? this.nM(f) : this.oM(f)
  21436. }
  21437. });
  21438. b.yY = function(a, d, e) {
  21439. return new b.RO(a, d, e)
  21440. };
  21441. b.RO.create = b.yY;
  21442. b.aP = b.Qc.extend({
  21443. mg: 0,
  21444. tb: 0,
  21445. ub: 0,
  21446. ctor: function(a, d, e, f) {
  21447. b.Hc.prototype.ctor.call(this);
  21448. void 0 !== f && this.l(a, d, e, f)
  21449. },
  21450. Ds: function() {
  21451. return this.tb
  21452. },
  21453. pt: function(a) {
  21454. this.tb = a
  21455. },
  21456. Pp: function() {
  21457. return this.ub
  21458. },
  21459. cq: function(a) {
  21460. this.ub = a
  21461. },
  21462. l: function(a, d, e, f) {
  21463. return b.Qc.prototype.l.call(this, a, d) ? (this.mg = e, this.tb = f, this.ub = 1, !0) : !1
  21464. },
  21465. update: function(a) {
  21466. for (var d = this.da, e = this.mg, f = this.tb, g = this.ub, h = b.d(0, 0), k, m = 0; m < d.width; m++)
  21467. for (var n = 0; n < d.height; n++) h.x = m, h.y = n, k = this.gh(h), k.bl.z = Math.sin(a * Math.PI *
  21468. e * 2 + 0.01 * (k.bl.y + k.bl.x)) * f * g, k.br.z = k.bl.z, k.tl.z = k.bl.z, k.tr.z = k.bl.z, this.Wf(h, k)
  21469. }
  21470. });
  21471. b.tfa = function(a, d, e, f) {
  21472. return new b.aP(a, d, e, f)
  21473. };
  21474. b.aP.create = b.tfa;
  21475. b.iN = b.Qc.extend({
  21476. vl: 0,
  21477. tb: 0,
  21478. ub: 0,
  21479. ctor: function(a, d, e, f) {
  21480. b.Hc.prototype.ctor.call(this);
  21481. void 0 !== f && this.l(a, d, e, f)
  21482. },
  21483. Ds: function() {
  21484. return this.tb
  21485. },
  21486. pt: function(a) {
  21487. this.tb = a
  21488. },
  21489. Pp: function() {
  21490. return this.ub
  21491. },
  21492. cq: function(a) {
  21493. this.ub = a
  21494. },
  21495. l: function(a, d, e, f) {
  21496. return b.Qc.prototype.l.call(this, a, d) ? (this.vl = e, this.tb = f, this.ub = 1, !0) : !1
  21497. },
  21498. update: function(a) {
  21499. var d = Math.sin(Math.PI * a * this.vl * 2) * this.tb * this.ub;
  21500. a = Math.sin(Math.PI * (a * this.vl * 2 + 1)) * this.tb * this.ub;
  21501. for (var e = this.da, f = this.target.grid, g, h = b.d(0, 0), k =
  21502. 0; k < e.width; k++)
  21503. for (var m = 0; m < e.height; m++) h.x = k, h.y = m, g = f.gh(h), 0 === (k + m) % 2 ? (g.bl.z += d, g.br.z += d, g.tl.z += d, g.tr.z += d) : (g.bl.z += a, g.br.z += a, g.tl.z += a, g.tr.z += a), f.Wf(h, g)
  21504. }
  21505. });
  21506. b.gba = function(a, d, e, f) {
  21507. return new b.iN(a, d, e, f)
  21508. };
  21509. b.iN.create = b.gba;
  21510. b.bO = b.Qc.extend({
  21511. L5: 0,
  21512. lw: null,
  21513. ctor: function(a, d) {
  21514. b.Hc.prototype.ctor.call(this);
  21515. void 0 !== d && this.l(a, d)
  21516. },
  21517. l: function(a, d) {
  21518. this.L5 = d;
  21519. return b.Qc.prototype.l.call(this, a, b.size(1, d))
  21520. },
  21521. update: function(a) {
  21522. for (var d = this.da, e = this.lw.width, f, g, h = b.d(0, 0), k = 0; k < d.height; ++k) h.y = k, f = this.gh(h), g = 1, 0 === k % 2 && (g = -1), f.bl.x += g * e * a, f.br.x += g * e * a, f.tl.x += g * e * a, f.tr.x += g * e * a, this.Wf(h, f)
  21523. },
  21524. N: function(a) {
  21525. b.Qc.prototype.N.call(this, a);
  21526. this.lw = b.P.Nw()
  21527. }
  21528. });
  21529. b.iY = function(a, d) {
  21530. return new b.bO(a, d)
  21531. };
  21532. b.bO.create = b.iY;
  21533. b.aO = b.Qc.extend({
  21534. b3: 0,
  21535. lw: null,
  21536. ctor: function(a, d) {
  21537. b.Hc.prototype.ctor.call(this);
  21538. void 0 !== d && this.l(a, d)
  21539. },
  21540. l: function(a, d) {
  21541. this.b3 = d;
  21542. return b.Qc.prototype.l.call(this, a, b.size(d, 1))
  21543. },
  21544. update: function(a) {
  21545. for (var d = this.da.width, e = this.lw.height, f, g, h = b.d(0, 0), k = 0; k < d; ++k) h.x = k, f = this.gh(h), g = 1, 0 === k % 2 && (g = -1), f.bl.y += g * e * a, f.br.y += g * e * a, f.tl.y += g * e * a, f.tr.y += g * e * a, this.Wf(h, f);
  21546. b.oa.he = !0
  21547. },
  21548. N: function(a) {
  21549. b.Qc.prototype.N.call(this, a);
  21550. this.lw = b.P.Nw()
  21551. }
  21552. });
  21553. b.hY = function(a, d) {
  21554. return new b.aO(a, d)
  21555. };
  21556. b.aO.create = b.hY;
  21557. b.VE = b.Bd.extend({
  21558. Hs: function() {
  21559. var a = new b.Iy(this.da);
  21560. a.yda(!0);
  21561. return a
  21562. },
  21563. q: function() {
  21564. var a = new b.VE;
  21565. a.l(this.D, this.da);
  21566. return a
  21567. },
  21568. update: function(a) {
  21569. var d = Math.max(0, a - 0.25),
  21570. d = -100 - d * d * 500,
  21571. e = +Math.PI / 2 + -Math.PI / 2 * Math.sqrt(a);
  21572. a = Math.sin(e);
  21573. for (var e = Math.cos(e), f = this.da, g = b.d(0, 0), h = 0; h <= f.width; ++h)
  21574. for (var k = 0; k <= f.height; ++k) {
  21575. g.x = h;
  21576. g.y = k;
  21577. var m = this.qC(g),
  21578. n = Math.sqrt(m.x * m.x + (m.y - d) * (m.y - d)),
  21579. p = n * a,
  21580. s = Math.asin(m.x / n) / a,
  21581. t = Math.cos(s);
  21582. m.x = s <= Math.PI ? p * Math.sin(s) : 0;
  21583. m.y = n + d - p * (1 - t) * a;
  21584. m.z = p * (1 - t) *
  21585. e / 7;
  21586. 0.5 > m.z && (m.z = 0.5);
  21587. this.Me(g, m)
  21588. }
  21589. }
  21590. });
  21591. b.AL = function(a, d) {
  21592. return new b.VE(a, d)
  21593. };
  21594. b.VE.create = b.AL;
  21595. b.La = b.e.extend({
  21596. Jd: null,
  21597. Cl: 0,
  21598. hc: null,
  21599. ik: null,
  21600. Nq: null,
  21601. Th: !1,
  21602. Ma: "ProgressTimer",
  21603. ctor: function(a) {
  21604. b.e.prototype.ctor.call(this);
  21605. this.Jd = b.La.Fm;
  21606. this.Cl = 0;
  21607. this.ik = b.d(0, 0);
  21608. this.Nq = b.d(0, 0);
  21609. this.Th = !1;
  21610. this.hc = null;
  21611. a && this.Aaa(a)
  21612. },
  21613. X9: function() {
  21614. return b.d(this.ik.x, this.ik.y)
  21615. },
  21616. vda: function(a) {
  21617. this.ik = b.BW(a)
  21618. },
  21619. Y8: function() {
  21620. return b.d(this.Nq.x, this.Nq.y)
  21621. },
  21622. Pca: function(a) {
  21623. this.Nq = b.BW(a)
  21624. },
  21625. VK: function() {
  21626. return this.Jd
  21627. },
  21628. n$: function() {
  21629. return this.Cl
  21630. },
  21631. OK: function() {
  21632. return this.hc
  21633. },
  21634. KX: function(a) {
  21635. this.Cl !==
  21636. a && (this.Cl = b.Zg(a, 0, 100), this.f.BT())
  21637. },
  21638. Le: function() {},
  21639. tf: function() {
  21640. return !1
  21641. },
  21642. aba: function() {
  21643. return this.Th
  21644. },
  21645. X: function(a) {
  21646. this.hc.color = a;
  21647. this.f.va(b.e.V.Ka)
  21648. },
  21649. Hb: function(a) {
  21650. this.hc.opacity = a;
  21651. this.f.va(b.e.V.Ha)
  21652. },
  21653. rf: function() {
  21654. return this.hc.color
  21655. },
  21656. bh: function() {
  21657. return this.hc.opacity
  21658. },
  21659. Lua: function(a) {
  21660. this.Th !== a && (this.Th = a, this.f.aq())
  21661. },
  21662. WL: function(a) {
  21663. this.hc !== a && ((this.hc = a) ? this.Na(a.width, a.height) : this.Na(0, 0), this.f.aq())
  21664. },
  21665. cea: function(a) {
  21666. a !== this.Jd && (this.Jd = a, this.f.aq())
  21667. },
  21668. Nda: function(a) {
  21669. this.Th !==
  21670. a && (this.Th = a, this.f.aq())
  21671. },
  21672. Aaa: function(a) {
  21673. this.percentage = 0;
  21674. this.rb(0.5, 0.5);
  21675. this.Jd = b.La.Fm;
  21676. this.Th = !1;
  21677. this.midPoint = b.d(0.5, 0.5);
  21678. this.barChangeRate = b.d(1, 1);
  21679. this.WL(a);
  21680. this.f.OV();
  21681. return !0
  21682. },
  21683. Ic: function() {
  21684. return b.W === b.Jb ? new b.La.n(this) : new b.La.p(this)
  21685. }
  21686. });
  21687. r = b.La.prototype;
  21688. b.i(r, "midPoint", r.X9, r.vda);
  21689. b.i(r, "barChangeRate", r.Y8, r.Pca);
  21690. b.i(r, "type", r.VK, r.cea);
  21691. b.i(r, "percentage", r.n$, r.KX);
  21692. b.i(r, "sprite", r.OK, r.WL);
  21693. b.i(r, "reverseDir", r.aba, r.Nda);
  21694. b.La.create = function(a) {
  21695. return new b.La(a)
  21696. };
  21697. b.La.hO = 4;
  21698. b.La.s1 = 75;
  21699. b.La.Fm = 0;
  21700. b.La.uo = 1;
  21701. b.$E = b.J.extend({
  21702. fe: 0,
  21703. $d: 0,
  21704. ctor: function(a, d) {
  21705. b.J.prototype.ctor.call(this);
  21706. this.$d = this.fe = 0;
  21707. void 0 !== d && this.l(a, d)
  21708. },
  21709. l: function(a, d) {
  21710. return b.J.prototype.l.call(this, a) ? (this.fe = d, !0) : !1
  21711. },
  21712. q: function() {
  21713. var a = new b.$E;
  21714. a.l(this.D, this.fe);
  21715. return a
  21716. },
  21717. reverse: function() {
  21718. b.log("cc.ProgressTo.reverse(): reverse hasn't been supported.");
  21719. return null
  21720. },
  21721. N: function(a) {
  21722. b.J.prototype.N.call(this, a);
  21723. this.$d = a.percentage
  21724. },
  21725. update: function(a) {
  21726. this.target instanceof b.La && (this.target.percentage = this.$d + (this.fe - this.$d) *
  21727. a)
  21728. }
  21729. });
  21730. b.dca = function(a, d) {
  21731. return new b.$E(a, d)
  21732. };
  21733. b.$E.create = b.dca;
  21734. b.ZE = b.J.extend({
  21735. fe: 0,
  21736. $d: 0,
  21737. ctor: function(a, d, e) {
  21738. b.J.prototype.ctor.call(this);
  21739. this.$d = this.fe = 0;
  21740. void 0 !== e && this.l(a, d, e)
  21741. },
  21742. l: function(a, d, e) {
  21743. return b.J.prototype.l.call(this, a) ? (this.fe = e, this.$d = d, !0) : !1
  21744. },
  21745. q: function() {
  21746. var a = new b.ZE;
  21747. a.l(this.D, this.$d, this.fe);
  21748. return a
  21749. },
  21750. reverse: function() {
  21751. return b.FL(this.D, this.fe, this.$d)
  21752. },
  21753. N: function(a) {
  21754. b.J.prototype.N.call(this, a)
  21755. },
  21756. update: function(a) {
  21757. this.target instanceof b.La && (this.target.percentage = this.$d + (this.fe - this.$d) * a)
  21758. }
  21759. });
  21760. b.FL = function(a, d, e) {
  21761. return new b.ZE(a, d, e)
  21762. };
  21763. b.ZE.create = b.FL;
  21764. (function() {
  21765. b.La.n = function(a) {
  21766. b.e.n.call(this, a);
  21767. this.cb = !0;
  21768. this.dP = Math.PI / 180;
  21769. this.pP = b.rect(0, 0, 0, 0);
  21770. this.QH = b.d(0, 0);
  21771. this.jg = 0;
  21772. this.DQ = this.$S = 270;
  21773. this.DP = !1
  21774. };
  21775. var a = b.La.n.prototype = Object.create(b.e.n.prototype);
  21776. a.constructor = b.La.n;
  21777. a.Eb = function(a, e, f) {
  21778. a = a || b.A;
  21779. var g = a.getContext(),
  21780. h = this.k,
  21781. k = h.hc,
  21782. m = k.f.Ql,
  21783. n = k.f.ad / 255;
  21784. if (0 !== m.width && 0 !== m.height && k.O && m.Vx && 0 !== n) {
  21785. a.setTransform(this.jj, e, f);
  21786. a.xx(k.$k);
  21787. a.ut(n);
  21788. var p = k.Va,
  21789. s = k.ve,
  21790. n = s.x,
  21791. t = -s.y - p.height,
  21792. v = p.width,
  21793. p = p.height;
  21794. a.save();
  21795. k.uc && (n = -n - v, g.scale(-1, 1));
  21796. k.vc && (t = s.y, g.scale(1, -1));
  21797. h.Jd === b.La.uo ? (h = this.pP, g.beginPath(), g.rect(h.x * e, h.y * f, h.width * e, h.height * f), g.clip(), g.closePath()) : h.Jd === b.La.Fm && (h = this.QH.x * e, s = this.QH.y * f, g.beginPath(), g.arc(h, s, this.jg * f, this.dP * this.$S, this.dP * this.DQ, this.DP), g.lineTo(h, s), g.clip(), g.closePath());
  21798. h = k.O.Sa;
  21799. k.Ni ? g.drawImage(h, 0, 0, m.width, m.height, n * e, t * f, v * e, p * f) : g.drawImage(h, m.zD, m.AD, m.width, m.height, n * e, t * f, v * e, p * f);
  21800. a.restore();
  21801. b.Of++
  21802. }
  21803. };
  21804. a.aq = function() {};
  21805. a.OV = function() {};
  21806. a.BT = function() {
  21807. var a =
  21808. this.k,
  21809. e = a.hc,
  21810. f = e.width,
  21811. g = e.height,
  21812. h = a.ik;
  21813. if (a.Jd === b.La.Fm) {
  21814. this.jg = Math.round(Math.sqrt(f * f + g * g));
  21815. var k, m = !1,
  21816. n = this.QH;
  21817. n.x = f * h.x;
  21818. n.y = -g * h.y;
  21819. a.Th ? (k = 270, h = 270 - 3.6 * a.Cl) : (h = -90, k = -90 + 3.6 * a.Cl);
  21820. e.uc && (n.x -= 2 * f * a.ik.x, h = -h - 180, k = -k - 180, m = !m);
  21821. e.vc && (n.y += 2 * g * a.ik.y, m = !m, h = -h, k = -k);
  21822. this.$S = h;
  21823. this.DQ = k;
  21824. this.DP = m
  21825. } else m = a.Nq, n = a.Cl / 100, a = this.pP, m = b.size(f * (1 - m.x), g * (1 - m.y)), n = b.size((f - m.width) * n, (g - m.height) * n), m = b.size(m.width + n.width, m.height + n.height), k = b.d(f * h.x, g * h.y), n = k.x - m.width / 2, 0.5 < h.x && m.width /
  21826. 2 >= f - k.x && (n = f - m.width), f = k.y - m.height / 2, 0.5 < h.y && m.height / 2 >= g - k.y && (f = g - m.height), a.x = 0, g = 1, e.uc && (a.x -= m.width, g = -1), 0 < n && (a.x += n * g), a.y = 0, g = 1, e.vc && (a.y += m.height, g = -1), 0 < f && (a.y -= f * g), a.width = m.width, a.height = -m.height
  21827. };
  21828. a.xb = function() {};
  21829. a.cd = function(a) {
  21830. var e = this.k;
  21831. if (e.hc) {
  21832. var f = b.e.V,
  21833. g = this.G,
  21834. h = a ? a.k : null;
  21835. h && h.Zc && a.G & f.Ka && (g |= f.Ka);
  21836. h && h.$c && a.G & f.Ha && (g |= f.Ha);
  21837. a && a.G & f.la && (g |= f.la);
  21838. this.G = g;
  21839. var e = e.hc.f,
  21840. h = e.G,
  21841. k = h & f.Ha;
  21842. h & f.Ka && ja(e);
  21843. k && ia(e);
  21844. g & f.la && this.transform(a)
  21845. }
  21846. };
  21847. a.updateStatus = function() {
  21848. var a =
  21849. this.k;
  21850. if (a.hc) {
  21851. var e = b.e.V,
  21852. f = this.G,
  21853. a = a.hc.f,
  21854. g = a.G,
  21855. h = g & e.Ha;
  21856. g & e.Ka && a.Ae();
  21857. h && a.ci();
  21858. f & e.la && this.transform(P(this), !0);
  21859. this.G = 0
  21860. }
  21861. }
  21862. })();
  21863. (function() {
  21864. b.La.p = function(a) {
  21865. b.e.p.call(this, a);
  21866. this.cb = !0;
  21867. this.K6 = b.A.createBuffer();
  21868. this.Mf = 0;
  21869. this.yk = this.Be = null;
  21870. this.VB = !1
  21871. };
  21872. var a = b.La.p.prototype = Object.create(b.e.p.prototype);
  21873. a.constructor = b.La.p;
  21874. a.Eb = function(a) {
  21875. var e = this.k;
  21876. a = a || b.A;
  21877. if (this.Be && e.hc) {
  21878. this.za.jc();
  21879. this.za.Ug(this.Mc);
  21880. var f = e.hc.H;
  21881. b.ji(f.src, f.$);
  21882. b.hd(b.Cq);
  21883. b.Rf(e.hc.texture);
  21884. a.bindBuffer(a.ARRAY_BUFFER, this.K6);
  21885. this.VB && (a.bufferData(a.ARRAY_BUFFER, this.yk, a.DYNAMIC_DRAW), this.VB = !1);
  21886. f = b.pe.BYTES_PER_ELEMENT;
  21887. a.vertexAttribPointer(b.Ib,
  21888. 2, a.FLOAT, !1, f, 0);
  21889. a.vertexAttribPointer(b.cf, 4, a.UNSIGNED_BYTE, !0, f, 8);
  21890. a.vertexAttribPointer(b.re, 2, a.FLOAT, !1, f, 12);
  21891. e.Jd === b.La.Fm ? a.drawArrays(a.TRIANGLE_FAN, 0, this.Mf) : e.Jd === b.La.uo && (e.Th ? (a.drawArrays(a.TRIANGLE_STRIP, 0, this.Mf / 2), a.drawArrays(a.TRIANGLE_STRIP, 4, this.Mf / 2), b.Of++) : a.drawArrays(a.TRIANGLE_STRIP, 0, this.Mf));
  21892. b.Of++
  21893. }
  21894. };
  21895. a.cd = function(a) {
  21896. var e = this.k;
  21897. if (e.hc) {
  21898. var f = b.e.V,
  21899. g = this.G,
  21900. h = a ? a.k : null;
  21901. h && h.Zc && a.G & f.Ka && (g |= f.Ka);
  21902. h && h.$c && a.G & f.Ha && (g |= f.Ha);
  21903. a && a.G & f.la && (g |= f.la);
  21904. this.G = g;
  21905. e = e.hc.f;
  21906. h = e.G;
  21907. g = h & f.Ka;
  21908. f = h & f.Ha;
  21909. g && ja(e);
  21910. f && ia(e);
  21911. if (g || f) e.xb(), this.xb();
  21912. this.transform(a);
  21913. e.G = 0
  21914. }
  21915. };
  21916. a.updateStatus = function() {
  21917. var a = this.k;
  21918. if (a.hc) {
  21919. var e = b.e.V,
  21920. f = this.G,
  21921. a = a.hc.f,
  21922. g = a.G,
  21923. h = g & e.Ka,
  21924. g = g & e.Ha;
  21925. h && (a.Ae(), this.G ^= this.G & e.Ka);
  21926. g && (a.ci(), this.G ^= this.G & e.Ha);
  21927. if (h || g) a.xb(), this.xb();
  21928. f & e.la && this.transform(P(this), !0)
  21929. }
  21930. };
  21931. a.aq = function() {
  21932. this.Be && (this.yk = this.Be = null, this.Mf = 0)
  21933. };
  21934. a.OV = function() {
  21935. this.yk = this.Be = null;
  21936. this.Mf = 0;
  21937. this.za = b.le.Dc(b.Sj)
  21938. };
  21939. a.BT = function() {
  21940. var a = this.k.Jd;
  21941. a === b.La.Fm ?
  21942. this.G6() : a === b.La.uo && this.B6();
  21943. this.VB = !0
  21944. };
  21945. a.B6 = function() {
  21946. var a = this.k;
  21947. if (a.hc) {
  21948. var e, f = a.Cl / 100;
  21949. e = a.Nq;
  21950. e = b.lm(b.d(1 - e.x + f * e.x, 1 - e.y + f * e.y), 0.5);
  21951. f = b.zd(a.ik, e);
  21952. a = b.yj(a.ik, e);
  21953. 0 > f.x && (a.x += -f.x, f.x = 0);
  21954. 1 < a.x && (f.x -= a.x - 1, a.x = 1);
  21955. 0 > f.y && (a.y += -f.y, f.y = 0);
  21956. 1 < a.y && (f.y -= a.y - 1, a.y = 1);
  21957. if (this.Th) {
  21958. if (!this.Be) {
  21959. this.Mf = 8;
  21960. var g = b.pe.BYTES_PER_ELEMENT;
  21961. this.yk = new ArrayBuffer(8 * g);
  21962. var h = [];
  21963. for (e = 0; 8 > e; e++) h[e] = new b.pe(null, null, null, this.yk, e * g);
  21964. h[0].texCoords = this.nf(b.d(0, 1));
  21965. h[0].vertices = this.of(b.d(0,
  21966. 1));
  21967. h[1].texCoords = this.nf(b.d(0, 0));
  21968. h[1].vertices = this.of(b.d(0, 0));
  21969. h[6].texCoords = this.nf(b.d(1, 1));
  21970. h[6].vertices = this.of(b.d(1, 1));
  21971. h[7].texCoords = this.nf(b.d(1, 0));
  21972. h[7].vertices = this.of(b.d(1, 0));
  21973. this.Be = h
  21974. }
  21975. e = this.Be;
  21976. e[2].texCoords = this.nf(b.d(f.x, a.y));
  21977. e[2].vertices = this.of(b.d(f.x, a.y));
  21978. e[3].texCoords = this.nf(b.d(f.x, f.y));
  21979. e[3].vertices = this.of(b.d(f.x, f.y));
  21980. e[4].texCoords = this.nf(b.d(a.x, a.y));
  21981. e[4].vertices = this.of(b.d(a.x, a.y));
  21982. e[5].texCoords = this.nf(b.d(a.x, f.y));
  21983. e[5].vertices = this.of(b.d(a.x,
  21984. f.y))
  21985. } else {
  21986. if (!this.Be)
  21987. for (this.Mf = 4, g = b.pe.BYTES_PER_ELEMENT, this.yk = new ArrayBuffer(4 * g), this.Be = [], e = 0; 4 > e; e++) this.Be[e] = new b.pe(null, null, null, this.yk, e * g);
  21988. e = this.Be;
  21989. e[0].texCoords = this.nf(b.d(f.x, a.y));
  21990. e[0].vertices = this.of(b.d(f.x, a.y));
  21991. e[1].texCoords = this.nf(b.d(f.x, f.y));
  21992. e[1].vertices = this.of(b.d(f.x, f.y));
  21993. e[2].texCoords = this.nf(b.d(a.x, a.y));
  21994. e[2].vertices = this.of(b.d(a.x, a.y));
  21995. e[3].texCoords = this.nf(b.d(a.x, f.y));
  21996. e[3].vertices = this.of(b.d(a.x, f.y))
  21997. }
  21998. this.xb()
  21999. }
  22000. };
  22001. a.G6 = function() {
  22002. var a = this.k;
  22003. if (a.hc) {
  22004. var e, f = a.ik;
  22005. e = a.Cl / 100;
  22006. var g = 2 * b.PI * (a.Th ? e : 1 - e),
  22007. a = b.d(f.x, 1),
  22008. h = b.HW(a, f, g),
  22009. g = 0;
  22010. if (0 === e) h = a, g = 0;
  22011. else if (1 === e) h = a, g = 4;
  22012. else {
  22013. var k = b.$Z,
  22014. m = b.La.hO;
  22015. for (e = 0; e <= m; ++e) {
  22016. var n = (e + (m - 1)) % m,
  22017. p = this.dG(e % m),
  22018. n = this.dG(n);
  22019. 0 === e ? n = b.GW(p, n, 1 - f.x) : 4 === e && (p = b.GW(p, n, 1 - f.x));
  22020. var s = b.d(0, 0);
  22021. b.xL(p, n, f, h, s) && (0 !== e && 4 !== e || 0 <= s.x && 1 >= s.x) && 0 <= s.y && s.y < k && (k = s.y, g = e)
  22022. }
  22023. h = b.yj(f, b.lm(b.zd(h, f), k))
  22024. }
  22025. k = !0;
  22026. this.Mf !== g + 3 && (k = !1, this.yk = this.Be = null, this.Mf = 0);
  22027. if (!this.Be) {
  22028. m = this.Mf = g + 3;
  22029. p = b.pe.BYTES_PER_ELEMENT;
  22030. this.yk =
  22031. new ArrayBuffer(m * p);
  22032. n = [];
  22033. for (e = 0; e < m; e++) n[e] = new b.pe(null, null, null, this.yk, e * p);
  22034. this.Be = n;
  22035. if (!this.Be) {
  22036. b.log("cc.ProgressTimer._updateRadial() : Not enough memory");
  22037. return
  22038. }
  22039. }
  22040. this.xb();
  22041. m = this.Be;
  22042. if (!k)
  22043. for (m[0].texCoords = this.nf(f), m[0].vertices = this.of(f), m[1].texCoords = this.nf(a), m[1].vertices = this.of(a), e = 0; e < g; e++) f = this.dG(e), m[e + 2].texCoords = this.nf(f), m[e + 2].vertices = this.of(f);
  22044. m[this.Mf - 1].texCoords = this.nf(h);
  22045. m[this.Mf - 1].vertices = this.of(h)
  22046. }
  22047. };
  22048. a.dG = function(a) {
  22049. if (a < b.La.hO) {
  22050. var e = b.La.s1;
  22051. return this.k.Th ? b.d(e >> 7 - (a << 1) & 1, e >> 7 - ((a << 1) + 1) & 1) : b.d(e >> (a << 1) + 1 & 1, e >> (a << 1) & 1)
  22052. }
  22053. return b.d(0, 0)
  22054. };
  22055. a.nf = function(a) {
  22056. var e = this.k.hc;
  22057. if (!e) return {
  22058. u: 0,
  22059. v: 0
  22060. };
  22061. var f = e.quad,
  22062. g = b.d(f.bl.texCoords.u, f.bl.texCoords.v),
  22063. f = b.d(f.tr.texCoords.u, f.tr.texCoords.v);
  22064. e.textureRectRotated && (e = a.x, a.x = a.y, a.y = e);
  22065. return {
  22066. u: g.x * (1 - a.x) + f.x * a.x,
  22067. v: g.y * (1 - a.y) + f.y * a.y
  22068. }
  22069. };
  22070. a.of = function(a) {
  22071. var e = this.k.hc;
  22072. if (!e) return {
  22073. x: 0,
  22074. y: 0
  22075. };
  22076. var f = e.quad,
  22077. e = b.d(f.bl.vertices.x, f.bl.vertices.y),
  22078. f = b.d(f.tr.vertices.x, f.tr.vertices.y);
  22079. return {
  22080. x: e.x *
  22081. (1 - a.x) + f.x * a.x,
  22082. y: e.y * (1 - a.y) + f.y * a.y
  22083. }
  22084. };
  22085. a.xb = function() {
  22086. var a = this.k;
  22087. if (a.hc && this.Be) {
  22088. for (var a = a.hc.quad.tl.colors, e = this.Be, f = 0, g = this.Mf; f < g; ++f) e[f].colors = a;
  22089. this.VB = !0
  22090. }
  22091. }
  22092. })();
  22093. b.tu = 4208917214;
  22094. b.gia = 0;
  22095. b.Dm = 1;
  22096. b.iz = 0;
  22097. b.fia = 1;
  22098. b.ka = b.po.extend({
  22099. ra: null,
  22100. nb: null,
  22101. D: null,
  22102. Ti: !1,
  22103. vR: !1,
  22104. Ma: "TransitionScene",
  22105. ctor: function(a, d) {
  22106. b.po.prototype.ctor.call(this);
  22107. void 0 !== a && void 0 !== d && this.l(a, d)
  22108. },
  22109. HS: function() {
  22110. this.tg(this.HS);
  22111. var a = b.P;
  22112. this.vR = a.rn;
  22113. a.GD(this.ra);
  22114. b.ua.Gb(!0);
  22115. this.nb.visible = !0
  22116. },
  22117. pk: function() {
  22118. this.Ti = !0
  22119. },
  22120. Q: function() {
  22121. this.Ti ? (this.nb.Q(), this.ra.Q()) : (this.ra.Q(), this.nb.Q());
  22122. b.e.prototype.Q.call(this)
  22123. },
  22124. aa: function() {
  22125. b.e.prototype.aa.call(this);
  22126. b.ua.Gb(!1);
  22127. this.nb.eh();
  22128. this.ra.aa()
  22129. },
  22130. Pb: function() {
  22131. b.e.prototype.Pb.call(this);
  22132. b.ua.Gb(!0);
  22133. this.nb.Pb();
  22134. this.ra.wj()
  22135. },
  22136. qf: function() {
  22137. b.e.prototype.qf.call(this);
  22138. this.vR && this.nb.qf()
  22139. },
  22140. l: function(a, d) {
  22141. if (!d) throw "cc.TransitionScene.initWithDuration(): Argument scene must be non-nil";
  22142. if (this.T()) {
  22143. this.D = a;
  22144. this.Nb({
  22145. x: 0,
  22146. y: 0,
  22147. anchorX: 0,
  22148. anchorY: 0
  22149. });
  22150. this.ra = d;
  22151. this.nb = b.P.qd;
  22152. this.nb || (this.nb = new b.po, this.nb.T());
  22153. if (this.ra === this.nb) throw "cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene";
  22154. this.pk();
  22155. return !0
  22156. }
  22157. return !1
  22158. },
  22159. finish: function() {
  22160. this.ra.Nb({
  22161. visible: !0,
  22162. x: 0,
  22163. y: 0,
  22164. scale: 1,
  22165. rotation: 0
  22166. });
  22167. b.W === b.ya && this.ra.Fs().restore();
  22168. this.nb.Nb({
  22169. visible: !1,
  22170. x: 0,
  22171. y: 0,
  22172. scale: 1,
  22173. rotation: 0
  22174. });
  22175. b.W === b.ya && this.nb.Fs().restore();
  22176. this.Dj(this.HS, 0)
  22177. },
  22178. bL: function() {
  22179. this.ra.visible = !0;
  22180. this.nb.visible = !1
  22181. }
  22182. });
  22183. b.ka.create = function(a, d) {
  22184. return new b.ka(a, d)
  22185. };
  22186. b.bg = b.ka.extend({
  22187. $o: 0,
  22188. ctor: function(a, d, e) {
  22189. b.ka.prototype.ctor.call(this);
  22190. void 0 != e && this.l(a, d, e)
  22191. },
  22192. l: function(a, d, e) {
  22193. b.ka.prototype.l.call(this, a, d) && (this.$o = e);
  22194. return !0
  22195. }
  22196. });
  22197. b.bg.create = function(a, d, e) {
  22198. return new b.bg(a, d, e)
  22199. };
  22200. b.HO = b.ka.extend({
  22201. ctor: function(a, d) {
  22202. b.ka.prototype.ctor.call(this);
  22203. d && this.l(a, d)
  22204. },
  22205. aa: function() {
  22206. b.ka.prototype.aa.call(this);
  22207. this.ra.Nb({
  22208. scale: 0.001,
  22209. anchorX: 0.5,
  22210. anchorY: 0.5
  22211. });
  22212. this.nb.Nb({
  22213. scale: 1,
  22214. anchorX: 0.5,
  22215. anchorY: 0.5
  22216. });
  22217. var a = b.Fb(b.Un(b.cX(this.D / 2, 0.001), b.$W(this.D / 2, 720)), b.Fe(this.D / 2));
  22218. this.nb.Ba(a);
  22219. this.ra.Ba(b.Fb(a.reverse(), b.Cc(this.finish, this)))
  22220. }
  22221. });
  22222. b.HO.create = function(a, d) {
  22223. return new b.HO(a, d)
  22224. };
  22225. b.xO = b.ka.extend({
  22226. ctor: function(a, d) {
  22227. b.ka.prototype.ctor.call(this);
  22228. d && this.l(a, d)
  22229. },
  22230. aa: function() {
  22231. b.ka.prototype.aa.call(this);
  22232. var a = b.P.Fa();
  22233. this.ra.Nb({
  22234. scale: 0.5,
  22235. x: a.width,
  22236. y: 0,
  22237. anchorX: 0.5,
  22238. anchorY: 0.5
  22239. });
  22240. this.nb.anchorX = 0.5;
  22241. this.nb.anchorY = 0.5;
  22242. var d = b.iW(this.D / 4, b.d(-a.width, 0), a.width / 4, 2),
  22243. e = b.rg(this.D / 4, 1),
  22244. a = b.rg(this.D / 4, 0.5),
  22245. a = b.Fb(a, d),
  22246. d = b.Fb(d, e),
  22247. e = b.Fe(this.D / 2);
  22248. this.nb.Ba(a);
  22249. this.ra.Ba(b.Fb(e, d, b.Cc(this.finish, this)))
  22250. }
  22251. });
  22252. b.xO.create = function(a, d) {
  22253. return new b.xO(a, d)
  22254. };
  22255. b.Hm = b.ka.extend({
  22256. ctor: function(a, d) {
  22257. b.ka.prototype.ctor.call(this);
  22258. d && this.l(a, d)
  22259. },
  22260. aa: function() {
  22261. b.ka.prototype.aa.call(this);
  22262. this.dm();
  22263. var a = this.action();
  22264. this.ra.Ba(b.Fb(this.$g(a), b.Cc(this.finish, this)))
  22265. },
  22266. dm: function() {
  22267. this.ra.I(-b.P.Fa().width, 0)
  22268. },
  22269. action: function() {
  22270. return b.moveTo(this.D, b.d(0, 0))
  22271. },
  22272. $g: function(a) {
  22273. return new b.qq(a, 2)
  22274. }
  22275. });
  22276. b.Hm.create = function(a, d) {
  22277. return new b.Hm(a, d)
  22278. };
  22279. b.zO = b.Hm.extend({
  22280. ctor: function(a, d) {
  22281. b.Hm.prototype.ctor.call(this);
  22282. d && this.l(a, d)
  22283. },
  22284. dm: function() {
  22285. this.ra.I(b.P.Fa().width, 0)
  22286. }
  22287. });
  22288. b.zO.create = function(a, d) {
  22289. return new b.zO(a, d)
  22290. };
  22291. b.AO = b.Hm.extend({
  22292. ctor: function(a, d) {
  22293. b.Hm.prototype.ctor.call(this);
  22294. d && this.l(a, d)
  22295. },
  22296. dm: function() {
  22297. this.ra.I(0, b.P.Fa().height)
  22298. }
  22299. });
  22300. b.AO.create = function(a, d) {
  22301. return new b.AO(a, d)
  22302. };
  22303. b.yO = b.Hm.extend({
  22304. ctor: function(a, d) {
  22305. b.Hm.prototype.ctor.call(this);
  22306. d && this.l(a, d)
  22307. },
  22308. dm: function() {
  22309. this.ra.I(0, -b.P.Fa().height)
  22310. }
  22311. });
  22312. b.yO.create = function(a, d) {
  22313. return new b.yO(a, d)
  22314. };
  22315. b.um = 0.5;
  22316. b.Im = b.ka.extend({
  22317. ctor: function(a, d) {
  22318. b.ka.prototype.ctor.call(this);
  22319. d && this.l(a, d)
  22320. },
  22321. pk: function() {
  22322. this.Ti = !1
  22323. },
  22324. aa: function() {
  22325. b.ka.prototype.aa.call(this);
  22326. this.dm();
  22327. var a = this.action(),
  22328. d = this.action(),
  22329. a = this.$g(a),
  22330. d = b.Fb(this.$g(d), b.Cc(this.finish, this));
  22331. this.ra.Ba(a);
  22332. this.nb.Ba(d)
  22333. },
  22334. dm: function() {
  22335. this.ra.I(-b.P.Fa().width + b.um, 0)
  22336. },
  22337. action: function() {
  22338. return b.moveBy(this.D, b.d(b.P.Fa().width - b.um, 0))
  22339. },
  22340. $g: function(a) {
  22341. return new b.pq(a, 2)
  22342. }
  22343. });
  22344. b.Im.create = function(a, d) {
  22345. return new b.Im(a, d)
  22346. };
  22347. b.KO = b.Im.extend({
  22348. ctor: function(a, d) {
  22349. b.Im.prototype.ctor.call(this);
  22350. d && this.l(a, d)
  22351. },
  22352. pk: function() {
  22353. this.Ti = !0
  22354. },
  22355. dm: function() {
  22356. this.ra.I(b.P.Fa().width - b.um, 0)
  22357. },
  22358. action: function() {
  22359. return b.moveBy(this.D, b.d(-(b.P.Fa().width - b.um), 0))
  22360. }
  22361. });
  22362. b.KO.create = function(a, d) {
  22363. return new b.KO(a, d)
  22364. };
  22365. b.JO = b.Im.extend({
  22366. ctor: function(a, d) {
  22367. b.Im.prototype.ctor.call(this);
  22368. d && this.l(a, d)
  22369. },
  22370. pk: function() {
  22371. this.Ti = !1
  22372. },
  22373. dm: function() {
  22374. this.ra.I(0, -(b.P.Fa().height - b.um))
  22375. },
  22376. action: function() {
  22377. return b.moveBy(this.D, b.d(0, b.P.Fa().height - b.um))
  22378. }
  22379. });
  22380. b.JO.create = function(a, d) {
  22381. return new b.JO(a, d)
  22382. };
  22383. b.LO = b.Im.extend({
  22384. ctor: function(a, d) {
  22385. b.Im.prototype.ctor.call(this);
  22386. d && this.l(a, d)
  22387. },
  22388. pk: function() {
  22389. this.Ti = !0
  22390. },
  22391. dm: function() {
  22392. this.ra.I(0, b.P.Fa().height - b.um)
  22393. },
  22394. action: function() {
  22395. return b.moveBy(this.D, b.d(0, -(b.P.Fa().height - b.um)))
  22396. }
  22397. });
  22398. b.LO.create = function(a, d) {
  22399. return new b.LO(a, d)
  22400. };
  22401. b.IO = b.ka.extend({
  22402. ctor: function(a, d) {
  22403. b.ka.prototype.ctor.call(this);
  22404. d && this.l(a, d)
  22405. },
  22406. aa: function() {
  22407. b.ka.prototype.aa.call(this);
  22408. this.ra.Nb({
  22409. scale: 0.001,
  22410. anchorX: 2 / 3,
  22411. anchorY: 0.5
  22412. });
  22413. this.nb.Nb({
  22414. scale: 1,
  22415. anchorX: 1 / 3,
  22416. anchorY: 0.5
  22417. });
  22418. var a = b.rg(this.D, 0.01),
  22419. d = b.rg(this.D, 1);
  22420. this.ra.Ba(this.$g(d));
  22421. this.nb.Ba(b.Fb(this.$g(a), b.Cc(this.finish, this)))
  22422. },
  22423. $g: function(a) {
  22424. return new b.qq(a, 2)
  22425. }
  22426. });
  22427. b.IO.create = function(a, d) {
  22428. return new b.IO(a, d)
  22429. };
  22430. b.vO = b.bg.extend({
  22431. ctor: function(a, d, e) {
  22432. b.bg.prototype.ctor.call(this);
  22433. null == e && (e = b.Dm);
  22434. d && this.l(a, d, e)
  22435. },
  22436. aa: function() {
  22437. b.ka.prototype.aa.call(this);
  22438. var a, d;
  22439. this.ra.visible = !1;
  22440. var e;
  22441. this.$o === b.Dm ? (a = 90, e = 270, d = 90) : (a = -90, e = 90, d = -90);
  22442. a = b.Fb(b.Fe(this.D / 2), b.show(), b.fh(this.D / 2, 1, 0, e, a, 0, 0), b.Cc(this.finish, this));
  22443. d = b.Fb(b.fh(this.D / 2, 1, 0, 0, d, 0, 0), b.Rp(), b.Fe(this.D / 2));
  22444. this.ra.Ba(a);
  22445. this.nb.Ba(d)
  22446. }
  22447. });
  22448. b.vO.create = function(a, d, e) {
  22449. return new b.vO(a, d, e)
  22450. };
  22451. b.wO = b.bg.extend({
  22452. ctor: function(a, d, e) {
  22453. b.bg.prototype.ctor.call(this);
  22454. null == e && (e = b.iz);
  22455. d && this.l(a, d, e)
  22456. },
  22457. aa: function() {
  22458. b.ka.prototype.aa.call(this);
  22459. var a, d;
  22460. this.ra.visible = !1;
  22461. var e;
  22462. this.$o === b.iz ? (a = 90, e = 270, d = 90) : (a = -90, e = 90, d = -90);
  22463. a = b.Fb(b.Fe(this.D / 2), b.show(), b.fh(this.D / 2, 1, 0, e, a, 90, 0), b.Cc(this.finish, this));
  22464. d = b.Fb(b.fh(this.D / 2, 1, 0, 0, d, 90, 0), b.Rp(), b.Fe(this.D / 2));
  22465. this.ra.Ba(a);
  22466. this.nb.Ba(d)
  22467. }
  22468. });
  22469. b.wO.create = function(a, d, e) {
  22470. return new b.wO(a, d, e)
  22471. };
  22472. b.uO = b.bg.extend({
  22473. ctor: function(a, d, e) {
  22474. b.bg.prototype.ctor.call(this);
  22475. null == e && (e = b.Dm);
  22476. d && this.l(a, d, e)
  22477. },
  22478. aa: function() {
  22479. b.ka.prototype.aa.call(this);
  22480. var a, d;
  22481. this.ra.visible = !1;
  22482. var e;
  22483. this.$o === b.Dm ? (a = 90, e = 270, d = 90) : (a = -90, e = 90, d = -90);
  22484. a = b.Fb(b.Fe(this.D / 2), b.show(), b.fh(this.D / 2, 1, 0, e, a, -45, 0), b.Cc(this.finish, this));
  22485. d = b.Fb(b.fh(this.D / 2, 1, 0, 0, d, 45, 0), b.Rp(), b.Fe(this.D / 2));
  22486. this.ra.Ba(a);
  22487. this.nb.Ba(d)
  22488. }
  22489. });
  22490. b.uO.create = function(a, d, e) {
  22491. return new b.uO(a, d, e)
  22492. };
  22493. b.PO = b.bg.extend({
  22494. ctor: function(a, d, e) {
  22495. b.bg.prototype.ctor.call(this);
  22496. null == e && (e = b.Dm);
  22497. d && this.l(a, d, e)
  22498. },
  22499. aa: function() {
  22500. b.ka.prototype.aa.call(this);
  22501. var a, d;
  22502. this.ra.visible = !1;
  22503. var e;
  22504. this.$o === b.Dm ? (a = 90, e = 270, d = 90) : (a = -90, e = 90, d = -90);
  22505. a = b.Fb(b.Fe(this.D / 2), b.Un(b.fh(this.D / 2, 1, 0, e, a, 0, 0), b.rg(this.D / 2, 1), b.show()), b.Cc(this.finish, this));
  22506. d = b.Fb(b.Un(b.fh(this.D / 2, 1, 0, 0, d, 0, 0), b.rg(this.D / 2, 0.5)), b.Rp(), b.Fe(this.D / 2));
  22507. this.ra.scale = 0.5;
  22508. this.ra.Ba(a);
  22509. this.nb.Ba(d)
  22510. }
  22511. });
  22512. b.PO.create = function(a, d, e) {
  22513. return new b.PO(a, d, e)
  22514. };
  22515. b.QO = b.bg.extend({
  22516. ctor: function(a, d, e) {
  22517. b.bg.prototype.ctor.call(this);
  22518. null == e && (e = b.iz);
  22519. d && this.l(a, d, e)
  22520. },
  22521. aa: function() {
  22522. b.ka.prototype.aa.call(this);
  22523. var a, d;
  22524. this.ra.visible = !1;
  22525. var e;
  22526. this.$o === b.iz ? (a = 90, e = 270, d = 90) : (a = -90, e = 90, d = -90);
  22527. a = b.Fb(b.Fe(this.D / 2), b.Un(b.fh(this.D / 2, 1, 0, e, a, 90, 0), b.rg(this.D / 2, 1), b.show()), b.Cc(this.finish, this));
  22528. d = b.Fb(b.Un(b.fh(this.D / 2, 1, 0, 0, d, 90, 0), b.rg(this.D / 2, 0.5)), b.Rp(), b.Fe(this.D / 2));
  22529. this.ra.scale = 0.5;
  22530. this.ra.Ba(a);
  22531. this.nb.Ba(d)
  22532. }
  22533. });
  22534. b.QO.create = function(a, d, e) {
  22535. return new b.QO(a, d, e)
  22536. };
  22537. b.OO = b.bg.extend({
  22538. ctor: function(a, d, e) {
  22539. b.bg.prototype.ctor.call(this);
  22540. null == e && (e = b.Dm);
  22541. d && this.l(a, d, e)
  22542. },
  22543. aa: function() {
  22544. b.ka.prototype.aa.call(this);
  22545. var a, d;
  22546. this.ra.visible = !1;
  22547. var e;
  22548. this.$o === b.Dm ? (a = 90, e = 270, d = 90) : (a = -90, e = 90, d = -90);
  22549. a = b.Fb(b.Fe(this.D / 2), b.Un(b.fh(this.D / 2, 1, 0, e, a, -45, 0), b.rg(this.D / 2, 1), b.show()), b.show(), b.Cc(this.finish, this));
  22550. d = b.Fb(b.Un(b.fh(this.D / 2, 1, 0, 0, d, 45, 0), b.rg(this.D / 2, 0.5)), b.Rp(), b.Fe(this.D / 2));
  22551. this.ra.scale = 0.5;
  22552. this.ra.Ba(a);
  22553. this.nb.Ba(d)
  22554. }
  22555. });
  22556. b.OO.create = function(a, d, e) {
  22557. return new b.OO(a, d, e)
  22558. };
  22559. b.qO = b.ka.extend({
  22560. te: null,
  22561. ctor: function(a, d, e) {
  22562. b.ka.prototype.ctor.call(this);
  22563. this.te = b.color();
  22564. d && this.l(a, d, e)
  22565. },
  22566. aa: function() {
  22567. b.ka.prototype.aa.call(this);
  22568. var a = new b.Ub(this.te);
  22569. this.ra.visible = !1;
  22570. this.C(a, 2, b.tu);
  22571. var a = this.gi(b.tu),
  22572. d = b.Fb(b.RU(this.D / 2), b.Cc(this.bL, this), b.SU(this.D / 2), b.Cc(this.finish, this));
  22573. a.Ba(d)
  22574. },
  22575. Pb: function() {
  22576. b.ka.prototype.Pb.call(this);
  22577. this.HL(b.tu, !1)
  22578. },
  22579. l: function(a, d, e) {
  22580. e = e || b.color.BLACK;
  22581. b.ka.prototype.l.call(this, a, d) && (this.te.r = e.r, this.te.g = e.g, this.te.b = e.b, this.te.a =
  22582. 0);
  22583. return !0
  22584. }
  22585. });
  22586. b.qO.create = function(a, d, e) {
  22587. return new b.qO(a, d, e)
  22588. };
  22589. b.pO = b.ka.extend({
  22590. ctor: function(a, d) {
  22591. b.ka.prototype.ctor.call(this);
  22592. d && this.l(a, d)
  22593. },
  22594. aa: function() {
  22595. b.ka.prototype.aa.call(this);
  22596. var a = b.color(0, 0, 0, 0),
  22597. d = b.P.Fa(),
  22598. a = new b.Ub(a),
  22599. e = new b.Zf(d.width, d.height);
  22600. e.sprite.anchorX = 0.5;
  22601. e.sprite.anchorY = 0.5;
  22602. e.Nb({
  22603. x: d.width / 2,
  22604. y: d.height / 2,
  22605. anchorX: 0.5,
  22606. anchorY: 0.5
  22607. });
  22608. e.Ak();
  22609. this.ra.Q();
  22610. e.end();
  22611. var f = new b.Zf(d.width, d.height);
  22612. f.I(d.width / 2, d.height / 2);
  22613. f.sprite.anchorX = f.anchorX = 0.5;
  22614. f.sprite.anchorY = f.anchorY = 0.5;
  22615. f.Ak();
  22616. this.nb.Q();
  22617. f.end();
  22618. e.sprite.sg(b.ONE, b.ONE);
  22619. f.sprite.sg(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA);
  22620. a.C(e);
  22621. a.C(f);
  22622. e.sprite.opacity = 255;
  22623. f.sprite.opacity = 255;
  22624. d = b.Fb(b.WU(this.D, 0), b.Cc(this.bL, this), b.Cc(this.finish, this));
  22625. f.sprite.Ba(d);
  22626. this.C(a, 2, b.tu)
  22627. },
  22628. Pb: function() {
  22629. this.HL(b.tu, !1);
  22630. b.ka.prototype.Pb.call(this)
  22631. },
  22632. Q: function() {
  22633. b.e.prototype.Q.call(this)
  22634. },
  22635. KU: function() {}
  22636. });
  22637. b.pO.create = function(a, d) {
  22638. return new b.pO(a, d)
  22639. };
  22640. b.NO = b.ka.extend({
  22641. Lc: null,
  22642. ctor: function(a, d) {
  22643. b.ka.prototype.ctor.call(this);
  22644. this.Lc = new b.Gi;
  22645. d && this.l(a, d)
  22646. },
  22647. pk: function() {
  22648. this.Ti = !1
  22649. },
  22650. aa: function() {
  22651. b.ka.prototype.aa.call(this);
  22652. this.Lc.Rk(this.nb);
  22653. this.Lc.aa();
  22654. var a = b.P.Fa(),
  22655. a = b.yY(this.D, b.size(0 | a.width / a.height * 12, 12)),
  22656. a = this.$g(a);
  22657. this.Lc.Ba(b.Fb(a, b.Cc(this.finish, this), b.Ct()))
  22658. },
  22659. Q: function() {
  22660. this.ra.Q();
  22661. this.Lc.Q()
  22662. },
  22663. $g: function(a) {
  22664. return a
  22665. }
  22666. });
  22667. b.NO.create = function(a, d) {
  22668. return new b.NO(a, d)
  22669. };
  22670. b.nz = b.ka.extend({
  22671. Lc: null,
  22672. w6: function() {
  22673. this.Lc.Rk(this.ra)
  22674. },
  22675. ctor: function(a, d) {
  22676. b.ka.prototype.ctor.call(this);
  22677. this.Lc = new b.Gi;
  22678. d && this.l(a, d)
  22679. },
  22680. aa: function() {
  22681. b.ka.prototype.aa.call(this);
  22682. this.Lc.Rk(this.nb);
  22683. this.Lc.aa();
  22684. var a = this.action(),
  22685. a = b.Fb(a, b.Cc(this.w6, this), a.reverse());
  22686. this.Lc.Ba(b.Fb(this.$g(a), b.Cc(this.finish, this), b.Ct()))
  22687. },
  22688. Pb: function() {
  22689. this.Lc.Rk(null);
  22690. this.Lc.Pb();
  22691. b.ka.prototype.Pb.call(this)
  22692. },
  22693. Q: function() {
  22694. this.Lc.Q()
  22695. },
  22696. $g: function(a) {
  22697. return new b.pq(a, 3)
  22698. },
  22699. action: function() {
  22700. return b.hY(this.D /
  22701. 2, 3)
  22702. }
  22703. });
  22704. b.nz.create = function(a, d) {
  22705. return new b.nz(a, d)
  22706. };
  22707. b.MO = b.nz.extend({
  22708. ctor: function(a, d) {
  22709. b.nz.prototype.ctor.call(this);
  22710. d && this.l(a, d)
  22711. },
  22712. action: function() {
  22713. return b.iY(this.D / 2, 3)
  22714. }
  22715. });
  22716. b.MO.create = function(a, d) {
  22717. return new b.MO(a, d)
  22718. };
  22719. b.Gm = b.ka.extend({
  22720. Lc: null,
  22721. ctor: function(a, d) {
  22722. b.ka.prototype.ctor.call(this);
  22723. this.Lc = new b.Gi;
  22724. d && this.l(a, d)
  22725. },
  22726. pk: function() {
  22727. this.Ti = !1
  22728. },
  22729. aa: function() {
  22730. b.ka.prototype.aa.call(this);
  22731. this.Lc.Rk(this.nb);
  22732. this.Lc.aa();
  22733. var a = b.P.Fa(),
  22734. a = this.ks(b.size(0 | a.width / a.height * 12, 12));
  22735. this.Lc.Ba(b.Fb(this.$g(a), b.Cc(this.finish, this), b.Ct()))
  22736. },
  22737. Q: function() {
  22738. this.ra.Q();
  22739. this.Lc.Q()
  22740. },
  22741. $g: function(a) {
  22742. return a
  22743. },
  22744. ks: function(a) {
  22745. return b.VU(this.D, a)
  22746. }
  22747. });
  22748. b.Gm.create = function(a, d) {
  22749. return new b.Gm(a, d)
  22750. };
  22751. b.rO = b.Gm.extend({
  22752. ctor: function(a, d) {
  22753. b.Gm.prototype.ctor.call(this);
  22754. d && this.l(a, d)
  22755. },
  22756. ks: function(a) {
  22757. return b.TU(this.D, a)
  22758. }
  22759. });
  22760. b.rO.create = function(a, d) {
  22761. return new b.rO(a, d)
  22762. };
  22763. b.tO = b.Gm.extend({
  22764. ctor: function(a, d) {
  22765. b.Gm.prototype.ctor.call(this);
  22766. d && this.l(a, d)
  22767. },
  22768. ks: function(a) {
  22769. return new b.Fy(this.D, a)
  22770. }
  22771. });
  22772. b.tO.create = function(a, d) {
  22773. return new b.tO(a, d)
  22774. };
  22775. b.sO = b.Gm.extend({
  22776. ctor: function(a, d) {
  22777. b.Gm.prototype.ctor.call(this);
  22778. d && this.l(a, d)
  22779. },
  22780. ks: function(a) {
  22781. return b.UU(this.D, a)
  22782. }
  22783. });
  22784. b.sO.create = function(a, d) {
  22785. return new b.sO(a, d)
  22786. };
  22787. b.TN = 49153;
  22788. b.ag = b.ka.extend({
  22789. fe: 0,
  22790. $d: 0,
  22791. pB: null,
  22792. Ma: "TransitionProgress",
  22793. ctor: function(a, d) {
  22794. b.ka.prototype.ctor.call(this);
  22795. d && this.l(a, d)
  22796. },
  22797. jp: function(a, d, e) {
  22798. a.Nb({
  22799. x: d,
  22800. y: e,
  22801. anchorX: 0.5,
  22802. anchorY: 0.5
  22803. })
  22804. },
  22805. aa: function() {
  22806. b.ka.prototype.aa.call(this);
  22807. this.OS();
  22808. var a = b.P.Fa(),
  22809. d = new b.Zf(a.width, a.height);
  22810. d.sprite.anchorX = 0.5;
  22811. d.sprite.anchorY = 0.5;
  22812. this.jp(d, a.width / 2, a.height / 2);
  22813. d.clear(0, 0, 0, 1);
  22814. d.Ak();
  22815. this.pB.Q();
  22816. d.end();
  22817. this.pB === this.nb && this.bL();
  22818. a = this.cp(d);
  22819. d = b.Fb(b.FL(this.D, this.$d, this.fe), b.Cc(this.finish, this));
  22820. a.Ba(d);
  22821. this.C(a, 2, b.TN)
  22822. },
  22823. Pb: function() {
  22824. this.HL(b.TN, !0);
  22825. b.ka.prototype.Pb.call(this)
  22826. },
  22827. OS: function() {
  22828. this.pB = this.nb;
  22829. this.$d = 100;
  22830. this.fe = 0
  22831. },
  22832. cp: function() {
  22833. b.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass");
  22834. return null
  22835. },
  22836. pk: function() {
  22837. this.Ti = !1
  22838. }
  22839. });
  22840. b.ag.create = function(a, d) {
  22841. return new b.ag(a, d)
  22842. };
  22843. b.FO = b.ag.extend({
  22844. ctor: function(a, d) {
  22845. b.ag.prototype.ctor.call(this);
  22846. d && this.l(a, d)
  22847. },
  22848. cp: function(a) {
  22849. var d = b.P.Fa();
  22850. a = new b.La(a.sprite);
  22851. b.W === b.ya && (a.sprite.flippedY = !0);
  22852. a.type = b.La.Fm;
  22853. a.reverseDir = !1;
  22854. a.percentage = 100;
  22855. this.jp(a, d.width / 2, d.height / 2);
  22856. return a
  22857. }
  22858. });
  22859. b.FO.create = function(a, d) {
  22860. return new b.FO(a, d)
  22861. };
  22862. b.IF = b.ag.extend({
  22863. ctor: function(a, d) {
  22864. b.ag.prototype.ctor.call(this);
  22865. d && this.l(a, d)
  22866. },
  22867. cp: function(a) {
  22868. var d = b.P.Fa();
  22869. a = new b.La(a.sprite);
  22870. b.W === b.ya && (a.sprite.flippedY = !0);
  22871. a.type = b.La.Fm;
  22872. a.reverseDir = !0;
  22873. a.percentage = 100;
  22874. this.jp(a, d.width / 2, d.height / 2);
  22875. return a
  22876. }
  22877. });
  22878. b.IF.create = function(a, d) {
  22879. var e = new b.IF;
  22880. return null !== e && e.l(a, d) ? e : new b.IF(a, d)
  22881. };
  22882. b.CO = b.ag.extend({
  22883. ctor: function(a, d) {
  22884. b.ag.prototype.ctor.call(this);
  22885. d && this.l(a, d)
  22886. },
  22887. cp: function(a) {
  22888. var d = b.P.Fa();
  22889. a = new b.La(a.sprite);
  22890. b.W === b.ya && (a.sprite.flippedY = !0);
  22891. a.type = b.La.uo;
  22892. a.midPoint = b.d(1, 0);
  22893. a.barChangeRate = b.d(1, 0);
  22894. a.percentage = 100;
  22895. this.jp(a, d.width / 2, d.height / 2);
  22896. return a
  22897. }
  22898. });
  22899. b.CO.create = function(a, d) {
  22900. return new b.CO(a, d)
  22901. };
  22902. b.GO = b.ag.extend({
  22903. ctor: function(a, d) {
  22904. b.ag.prototype.ctor.call(this);
  22905. d && this.l(a, d)
  22906. },
  22907. cp: function(a) {
  22908. var d = b.P.Fa();
  22909. a = new b.La(a.sprite);
  22910. b.W === b.ya && (a.sprite.flippedY = !0);
  22911. a.type = b.La.uo;
  22912. a.midPoint = b.d(0, 0);
  22913. a.barChangeRate = b.d(0, 1);
  22914. a.percentage = 100;
  22915. this.jp(a, d.width / 2, d.height / 2);
  22916. return a
  22917. }
  22918. });
  22919. b.GO.create = function(a, d) {
  22920. return new b.GO(a, d)
  22921. };
  22922. b.DO = b.ag.extend({
  22923. ctor: function(a, d) {
  22924. b.ag.prototype.ctor.call(this);
  22925. d && this.l(a, d)
  22926. },
  22927. cp: function(a) {
  22928. var d = b.P.Fa();
  22929. a = new b.La(a.sprite);
  22930. b.W === b.ya && (a.sprite.flippedY = !0);
  22931. a.type = b.La.uo;
  22932. a.midPoint = b.d(0.5, 0.5);
  22933. a.barChangeRate = b.d(1, 1);
  22934. a.percentage = 0;
  22935. this.jp(a, d.width / 2, d.height / 2);
  22936. return a
  22937. },
  22938. pk: function() {
  22939. this.Ti = !1
  22940. },
  22941. OS: function() {
  22942. this.pB = this.ra;
  22943. this.$d = 0;
  22944. this.fe = 100
  22945. }
  22946. });
  22947. b.DO.create = function(a, d) {
  22948. return new b.DO(a, d)
  22949. };
  22950. b.EO = b.ag.extend({
  22951. ctor: function(a, d) {
  22952. b.ag.prototype.ctor.call(this);
  22953. d && this.l(a, d)
  22954. },
  22955. cp: function(a) {
  22956. var d = b.P.Fa();
  22957. a = new b.La(a.sprite);
  22958. b.W === b.ya && (a.sprite.flippedY = !0);
  22959. a.type = b.La.uo;
  22960. a.midPoint = b.d(0.5, 0.5);
  22961. a.barChangeRate = b.d(1, 1);
  22962. a.percentage = 100;
  22963. this.jp(a, d.width / 2, d.height / 2);
  22964. return a
  22965. }
  22966. });
  22967. b.EO.create = function(a, d) {
  22968. return new b.EO(a, d)
  22969. };
  22970. b.BO = b.ka.extend({
  22971. ctor: function(a, d, e) {
  22972. b.ka.prototype.ctor.call(this);
  22973. this.Lc = new b.Gi;
  22974. this.l(a, d, e)
  22975. },
  22976. Mu: !0,
  22977. Lc: null,
  22978. Ma: "TransitionPageTurn",
  22979. l: function(a, d, e) {
  22980. this.Mu = e;
  22981. b.ka.prototype.l.call(this, a, d);
  22982. return !0
  22983. },
  22984. ks: function(a) {
  22985. return this.Mu ? b.ZW(b.AL(this.D, a)) : b.AL(this.D, a)
  22986. },
  22987. aa: function() {
  22988. b.ka.prototype.aa.call(this);
  22989. var a = b.P.Fa(),
  22990. d;
  22991. a.width > a.height ? (a = 16, d = 12) : (a = 12, d = 16);
  22992. a = this.ks(b.size(a, d));
  22993. d = this.Lc;
  22994. this.Mu ? (d.Rk(this.ra), d.aa(), this.ra.visible = !1, d.Ba(b.Fb(a, b.Cc(this.finish, this), b.Ct())),
  22995. this.ra.Ba(b.show())) : (d.Rk(this.nb), d.aa(), d.Ba(b.Fb(a, b.Cc(this.finish, this), b.Ct())))
  22996. },
  22997. Q: function() {
  22998. this.Mu ? this.nb.Q() : this.ra.Q();
  22999. this.Lc.Q()
  23000. },
  23001. pk: function() {
  23002. this.Ti = this.Mu
  23003. }
  23004. });
  23005. b.BO.create = function(a, d, e) {
  23006. return new b.BO(a, d, e)
  23007. };
  23008. b.wa = {
  23009. name: "Jacob__Codec"
  23010. };
  23011. b.jfa = function() {
  23012. return b.wa.Ya.EC.apply(b.wa.Ya, arguments)
  23013. };
  23014. b.kfa = function() {
  23015. var a = b.wa.fo.xU.apply(b.wa.fo, arguments);
  23016. return b.wa.Ya.EC.apply(b.wa.Ya, [a])
  23017. };
  23018. b.BY = function(a, d) {
  23019. d = d || 1;
  23020. var e = this.kfa(a),
  23021. f = [],
  23022. g, h, k;
  23023. g = 0;
  23024. for (k = e.length / d; g < k; g++)
  23025. for (f[g] = 0, h = d - 1; 0 <= h; --h) f[g] += e.charCodeAt(g * d + h) << 8 * h;
  23026. return f
  23027. };
  23028. b.ywa = function(a, d) {
  23029. d = d || 1;
  23030. var e = this.jfa(a),
  23031. f = [],
  23032. g, h, k;
  23033. g = 0;
  23034. for (k = e.length / d; g < k; g++)
  23035. for (f[g] = 0, h = d - 1; 0 <= h; --h) f[g] += e.charCodeAt(g * d + h) << 8 * h;
  23036. return f
  23037. };
  23038. b.Sha = function(a) {
  23039. a = a.split(",");
  23040. var d = [],
  23041. e;
  23042. for (e = 0; e < a.length; e++) d.push(parseInt(a[e]));
  23043. return d
  23044. };
  23045. b.wa.fo = {
  23046. name: "Jacob__Codec__Base64"
  23047. };
  23048. b.wa.fo.AA = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d";
  23049. b.wa.fo.xU = function(a) {
  23050. var d = [],
  23051. e, f, g, h, k, m = 0;
  23052. for (a = a.replace(/[^A-Za-z0-9\+\/\=]/g, ""); m < a.length;) e = this.AA.indexOf(a.charAt(m++)), f = this.AA.indexOf(a.charAt(m++)), h = this.AA.indexOf(a.charAt(m++)), k = this.AA.indexOf(a.charAt(m++)), e = e << 2 | f >> 4, f = (f & 15) << 4 | h >> 2, g = (h & 3) << 6 | k, d.push(String.fromCharCode(e)), 64 !== h && d.push(String.fromCharCode(f)), 64 !== k && d.push(String.fromCharCode(g));
  23053. return d = d.join("")
  23054. };
  23055. b.wa.fo.yU = function(a, d) {
  23056. var e = this.xU(a),
  23057. f = [],
  23058. g, h, k;
  23059. g = 0;
  23060. for (k = e.length / d; g < k; g++)
  23061. for (f[g] = 0, h = d - 1; 0 <= h; --h) f[g] += e.charCodeAt(g * d + h) << 8 * h;
  23062. return f
  23063. };
  23064. b.hfa = function(a) {
  23065. if (0 !== a.length % 4) return null;
  23066. for (var d = a.length / 4, e = window.qia ? new Uint32Array(d) : [], f = 0; f < d; f++) {
  23067. var g = 4 * f;
  23068. e[f] = a[g] + 256 * a[g + 1] + 65536 * a[g + 2] + 16777216 * a[g + 3]
  23069. }
  23070. return e
  23071. };
  23072. b.wa.Ya = function(a) {
  23073. this.data = a;
  23074. this.debug = !1;
  23075. this.cm = void 0;
  23076. this.files = 0;
  23077. this.ZD = [];
  23078. this.PJ = Array(32768);
  23079. this.lj = 0;
  23080. this.gD = !1;
  23081. this.dU = 0;
  23082. this.zk = 1;
  23083. this.os = 0;
  23084. this.bt = [];
  23085. this.XU = void 0;
  23086. this.$w = Array(b.wa.Ya.x_);
  23087. this.Ip = Array(32);
  23088. this.Rx = 0;
  23089. this.XE = null;
  23090. this.uj = 0;
  23091. this.Bs = Array(17);
  23092. this.Bs[0] = 0;
  23093. this.bV = this.$U = void 0
  23094. };
  23095. b.wa.Ya.EC = function(a) {
  23096. return (new b.wa.Ya(a)).EC()[0][0]
  23097. };
  23098. b.wa.Ya.GE = function() {
  23099. this.$B = this.ZB = 0;
  23100. this.pL = null;
  23101. this.iba = -1
  23102. };
  23103. b.wa.Ya.x_ = 288;
  23104. b.wa.Ya.qN = 256;
  23105. b.wa.Ya.NJ = [0, 128, 64, 192, 32, 160, 96, 224, 16, 144, 80, 208, 48, 176, 112, 240, 8, 136, 72, 200, 40, 168, 104, 232, 24, 152, 88, 216, 56, 184, 120, 248, 4, 132, 68, 196, 36, 164, 100, 228, 20, 148, 84, 212, 52, 180, 116, 244, 12, 140, 76, 204, 44, 172, 108, 236, 28, 156, 92, 220, 60, 188, 124, 252, 2, 130, 66, 194, 34, 162, 98, 226, 18, 146, 82, 210, 50, 178, 114, 242, 10, 138, 74, 202, 42, 170, 106, 234, 26, 154, 90, 218, 58, 186, 122, 250, 6, 134, 70, 198, 38, 166, 102, 230, 22, 150, 86, 214, 54, 182, 118, 246, 14, 142, 78, 206, 46, 174, 110, 238, 30, 158, 94, 222, 62, 190, 126, 254, 1, 129, 65, 193, 33, 161, 97, 225, 17, 145,
  23106. 81, 209, 49, 177, 113, 241, 9, 137, 73, 201, 41, 169, 105, 233, 25, 153, 89, 217, 57, 185, 121, 249, 5, 133, 69, 197, 37, 165, 101, 229, 21, 149, 85, 213, 53, 181, 117, 245, 13, 141, 77, 205, 45, 173, 109, 237, 29, 157, 93, 221, 61, 189, 125, 253, 3, 131, 67, 195, 35, 163, 99, 227, 19, 147, 83, 211, 51, 179, 115, 243, 11, 139, 75, 203, 43, 171, 107, 235, 27, 155, 91, 219, 59, 187, 123, 251, 7, 135, 71, 199, 39, 167, 103, 231, 23, 151, 87, 215, 55, 183, 119, 247, 15, 143, 79, 207, 47, 175, 111, 239, 31, 159, 95, 223, 63, 191, 127, 255
  23107. ];
  23108. b.wa.Ya.qU = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0];
  23109. b.wa.Ya.rU = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 99, 99];
  23110. b.wa.Ya.pU = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
  23111. b.wa.Ya.us = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
  23112. b.wa.Ya.border = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  23113. b.wa.Ya.prototype.EC = function() {
  23114. this.hx = [];
  23115. qa(this);
  23116. return this.ZD
  23117. };
  23118. b.wa.Ya.prototype.Y = function() {
  23119. this.os += 8;
  23120. return this.dU < this.data.length ? this.data.charCodeAt(this.dU++) : -1
  23121. };
  23122. function ra(a) {
  23123. var d;
  23124. a.os++;
  23125. d = a.zk & 1;
  23126. a.zk >>= 1;
  23127. 0 === a.zk && (a.zk = a.Y(), d = a.zk & 1, a.zk = a.zk >> 1 | 128);
  23128. return d
  23129. }
  23130. function T(a, d) {
  23131. for (var e = 0, f = d; f--;) e = e << 1 | ra(a);
  23132. d && (e = b.wa.Ya.NJ[e] >> 8 - d);
  23133. return e
  23134. }
  23135. function ua(a, d) {
  23136. a.PJ[a.lj++] = d;
  23137. a.hx.push(String.fromCharCode(d));
  23138. 32768 === a.lj && (a.lj = 0)
  23139. }
  23140. function va(a) {
  23141. for (;;) {
  23142. if (a.Bs[a.uj] >= a.bV) return -1;
  23143. if (a.$U[a.Bs[a.uj]] === a.uj) return a.Bs[a.uj]++;
  23144. a.Bs[a.uj]++
  23145. }
  23146. }
  23147. function wa(a) {
  23148. var d = a.XE[a.Rx],
  23149. e;
  23150. if (17 === a.uj) return -1;
  23151. a.Rx++;
  23152. a.uj++;
  23153. e = va(a);
  23154. if (0 <= e) d.ZB = e;
  23155. else if (d.ZB = 32768, wa(a)) return -1;
  23156. e = va(a);
  23157. if (0 <= e) d.$B = e, d.pL = null;
  23158. else if (d.$B = 32768, d.pL = a.XE[a.Rx], d.iba = a.Rx, wa(a)) return -1;
  23159. a.uj--;
  23160. return 0
  23161. }
  23162. function xa(a, d, e, f) {
  23163. a.XE = d;
  23164. a.Rx = 0;
  23165. a.$U = f;
  23166. a.bV = e;
  23167. for (d = 0; 17 > d; d++) a.Bs[d] = 0;
  23168. a.uj = 0;
  23169. return wa(a) ? -1 : 0
  23170. }
  23171. function ya(a, d) {
  23172. for (var e, f, g = 0, h = d[g];;)
  23173. if (e = ra(a)) {
  23174. if (!(h.$B & 32768)) return h.$B;
  23175. h = h.pL;
  23176. e = d.length;
  23177. for (f = 0; f < e; f++)
  23178. if (d[f] === h) {
  23179. g = f;
  23180. break
  23181. }
  23182. } else {
  23183. if (!(h.ZB & 32768)) return h.ZB;
  23184. g++;
  23185. h = d[g]
  23186. }
  23187. return -1
  23188. }
  23189. function za(a) {
  23190. var d, e, f, g, h;
  23191. do
  23192. if (d = ra(a), f = T(a, 2), 0 === f)
  23193. for (a.zk = 1, f = a.Y(), f |= a.Y() << 8, e = a.Y(), e |= a.Y() << 8, (f ^ ~e) & 65535 && document.write("BlockLen checksum mismatch\n"); f--;) e = a.Y(), ua(a, e);
  23194. else if (1 === f)
  23195. for (;;)
  23196. if (f = b.wa.Ya.NJ[T(a, 7)] >> 1, 23 < f ? (f = f << 1 | ra(a), 199 < f ? (f -= 128, f = f << 1 | ra(a)) : (f -= 48, 143 < f && (f += 136))) : f += 256, 256 > f) ua(a, f);
  23197. else if (256 === f) break;
  23198. else {
  23199. var k;
  23200. f -= 257;
  23201. h = T(a, b.wa.Ya.rU[f]) + b.wa.Ya.qU[f];
  23202. f = b.wa.Ya.NJ[T(a, 5)] >> 3;
  23203. 8 < b.wa.Ya.us[f] ? (k = T(a, 8), k |= T(a, b.wa.Ya.us[f] - 8) << 8) : k = T(a, b.wa.Ya.us[f]);
  23204. k += b.wa.Ya.pU[f];
  23205. for (f = 0; f < h; f++) e = a.PJ[a.lj - k & 32767], ua(a, e)
  23206. } else if (2 === f) {
  23207. var m = Array(320);
  23208. e = 257 + T(a, 5);
  23209. k = 1 + T(a, 5);
  23210. g = 4 + T(a, 4);
  23211. for (f = 0; 19 > f; f++) m[f] = 0;
  23212. for (f = 0; f < g; f++) m[b.wa.Ya.border[f]] = T(a, 3);
  23213. h = a.Ip.length;
  23214. for (g = 0; g < h; g++) a.Ip[g] = new b.wa.Ya.GE;
  23215. if (xa(a, a.Ip, 19, m)) {
  23216. a.lj = 0;
  23217. return
  23218. }
  23219. h = e + k;
  23220. g = 0;
  23221. for (var n = -1; g < h;)
  23222. if (n++, f = ya(a, a.Ip), 16 > f) m[g++] = f;
  23223. else if (16 === f) {
  23224. var p;
  23225. f = 3 + T(a, 2);
  23226. if (g + f > h) {
  23227. a.lj = 0;
  23228. return
  23229. }
  23230. for (p = g ? m[g - 1] : 0; f--;) m[g++] = p
  23231. } else {
  23232. f = 17 === f ? 3 + T(a, 3) : 11 + T(a, 7);
  23233. if (g + f > h) {
  23234. a.lj = 0;
  23235. return
  23236. }
  23237. for (; f--;) m[g++] =
  23238. 0
  23239. }
  23240. h = a.$w.length;
  23241. for (g = 0; g < h; g++) a.$w[g] = new b.wa.Ya.GE;
  23242. if (xa(a, a.$w, e, m)) {
  23243. a.lj = 0;
  23244. return
  23245. }
  23246. h = a.$w.length;
  23247. for (g = 0; g < h; g++) a.Ip[g] = new b.wa.Ya.GE;
  23248. f = [];
  23249. for (g = e; g < m.length; g++) f[g - e] = m[g];
  23250. if (xa(a, a.Ip, k, f)) {
  23251. a.lj = 0;
  23252. return
  23253. }
  23254. for (;;)
  23255. if (f = ya(a, a.$w), 256 <= f) {
  23256. f -= 256;
  23257. if (0 === f) break;
  23258. f--;
  23259. h = T(a, b.wa.Ya.rU[f]) + b.wa.Ya.qU[f];
  23260. f = ya(a, a.Ip);
  23261. 8 < b.wa.Ya.us[f] ? (k = T(a, 8), k |= T(a, b.wa.Ya.us[f] - 8) << 8) : k = T(a, b.wa.Ya.us[f]);
  23262. for (k += b.wa.Ya.pU[f]; h--;) e = a.PJ[a.lj - k & 32767], ua(a, e)
  23263. } else ua(a, f)
  23264. }
  23265. while (!d);
  23266. a.lj = 0;
  23267. a.zk = 1
  23268. }
  23269. function qa(a) {
  23270. a.hx = [];
  23271. a.gD = !1;
  23272. var d = [];
  23273. d[0] = a.Y();
  23274. d[1] = a.Y();
  23275. 120 === d[0] && 218 === d[1] && (za(a), a.ZD[a.files] = [a.hx.join(""), "geonext.gxt"], a.files++);
  23276. 31 === d[0] && 139 === d[1] && (Aa(a), a.ZD[a.files] = [a.hx.join(""), "file"], a.files++);
  23277. if (80 === d[0] && 75 === d[1] && (a.gD = !0, d[2] = a.Y(), d[3] = a.Y(), 3 === d[2] && 4 === d[3])) {
  23278. d[0] = a.Y();
  23279. d[1] = a.Y();
  23280. a.cm = a.Y();
  23281. a.cm |= a.Y() << 8;
  23282. d = a.Y();
  23283. d |= a.Y() << 8;
  23284. a.Y();
  23285. a.Y();
  23286. a.Y();
  23287. a.Y();
  23288. a.Y();
  23289. a.Y();
  23290. a.Y();
  23291. a.Y();
  23292. a.Y();
  23293. a.Y();
  23294. a.Y();
  23295. a.Y();
  23296. var e = a.Y(),
  23297. e = e | a.Y() << 8,
  23298. f = a.Y(),
  23299. f = f | a.Y() << 8,
  23300. g = 0;
  23301. for (a.bt =
  23302. []; e--;) {
  23303. var h = a.Y();
  23304. "/" === h | ":" === h ? g = 0 : g < b.wa.Ya.qN - 1 && (a.bt[g++] = String.fromCharCode(h))
  23305. }
  23306. a.XU || (a.XU = a.bt);
  23307. for (var g = 0; g < f;) a.Y(), g++;
  23308. 8 === d && (za(a), a.ZD[a.files] = [a.hx.join(""), a.bt.join("")], a.files++);
  23309. Aa(a)
  23310. }
  23311. }
  23312. function Aa(a) {
  23313. var d = [],
  23314. e;
  23315. a.cm & 8 && (d[0] = a.Y(), d[1] = a.Y(), d[2] = a.Y(), d[3] = a.Y(), a.Y(), a.Y(), a.Y(), a.Y(), a.Y(), a.Y(), a.Y(), a.Y());
  23316. a.gD && qa(a);
  23317. d[0] = a.Y();
  23318. if (8 === d[0]) {
  23319. a.cm = a.Y();
  23320. a.Y();
  23321. a.Y();
  23322. a.Y();
  23323. a.Y();
  23324. a.Y();
  23325. a.Y();
  23326. if (a.cm & 4)
  23327. for (d[0] = a.Y(), d[2] = a.Y(), a.uj = d[0] + 256 * d[1], d = 0; d < a.uj; d++) a.Y();
  23328. if (a.cm & 8)
  23329. for (d = 0, a.bt = []; e = a.Y();) {
  23330. if ("7" === e || ":" === e) d = 0;
  23331. d < b.wa.Ya.qN - 1 && (a.bt[d++] = e)
  23332. }
  23333. if (a.cm & 16)
  23334. for (; a.Y(););
  23335. a.cm & 2 && (a.Y(), a.Y());
  23336. za(a);
  23337. a.Y();
  23338. a.Y();
  23339. a.Y();
  23340. a.Y();
  23341. a.gD && qa(a)
  23342. }
  23343. };
  23344. /*
  23345. zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
  23346. (function() {
  23347. function a(a) {
  23348. throw a;
  23349. }
  23350. function d(a, d) {
  23351. var e = a.split("."),
  23352. f = D;
  23353. e[0] in f || !f.execScript || f.execScript("var " + e[0]);
  23354. for (var g; e.length && (g = e.shift());) e.length || d === F ? f = f[g] ? f[g] : f[g] = {} : f[g] = d
  23355. }
  23356. function e(a) {
  23357. if ("string" === typeof a) {
  23358. a = a.split("");
  23359. var d, e;
  23360. d = 0;
  23361. for (e = a.length; d < e; d++) a[d] = (a[d].charCodeAt(0) & 255) >>> 0
  23362. }
  23363. d = 1;
  23364. e = 0;
  23365. for (var f = a.length, g, h = 0; 0 < f;) {
  23366. g = 1024 < f ? 1024 : f;
  23367. f -= g;
  23368. do d += a[h++], e += d; while (--g);
  23369. d %= 65521;
  23370. e %= 65521
  23371. }
  23372. return (e << 16 | d) >>> 0
  23373. }
  23374. function f(d, e) {
  23375. this.index = "number" === typeof e ? e : 0;
  23376. this.Pw = 0;
  23377. this.buffer = d instanceof(A ? Uint8Array : Array) ? d : new(A ? Uint8Array : Array)(32768);
  23378. 2 * this.buffer.length <= this.index && a(Error("invalid index"));
  23379. this.buffer.length <= this.index && this.nj()
  23380. }
  23381. function g(a) {
  23382. this.buffer = new(A ? Uint16Array : Array)(2 * a);
  23383. this.length = 0
  23384. }
  23385. function h(a) {
  23386. var d = a.length,
  23387. e = 0,
  23388. f = Number.POSITIVE_INFINITY,
  23389. g, h, k, m, n, p, s, t, v;
  23390. for (t = 0; t < d; ++t) a[t] > e && (e = a[t]), a[t] < f && (f = a[t]);
  23391. g = 1 << e;
  23392. h = new(A ? Uint32Array : Array)(g);
  23393. k = 1;
  23394. m = 0;
  23395. for (n = 2; k <= e;) {
  23396. for (t = 0; t < d; ++t)
  23397. if (a[t] === k) {
  23398. p = 0;
  23399. s = m;
  23400. for (v = 0; v < k; ++v) p =
  23401. p << 1 | s & 1, s >>= 1;
  23402. for (v = p; v < g; v += n) h[v] = k << 16 | t;
  23403. ++m
  23404. }++k;
  23405. m <<= 1;
  23406. n <<= 1
  23407. }
  23408. return [h, e, f]
  23409. }
  23410. function k(a, d) {
  23411. this.wd = O;
  23412. this.S = 0;
  23413. this.input = a;
  23414. this.b = 0;
  23415. d && (d.tba && (this.S = d.tba), "number" === typeof d.bK && (this.wd = d.bK), d.mD && (this.a = A && d.mD instanceof Array ? new Uint8Array(d.mD) : d.mD), "number" === typeof d.Lba && (this.b = d.Lba));
  23416. this.a || (this.a = new(A ? Uint8Array : Array)(32768))
  23417. }
  23418. function m(a, d) {
  23419. this.length = a;
  23420. this.b_ = d
  23421. }
  23422. function n() {
  23423. var d = Q;
  23424. switch (G) {
  23425. case 3 === d:
  23426. return [257, d - 3, 0];
  23427. case 4 === d:
  23428. return [258, d - 4, 0];
  23429. case 5 === d:
  23430. return [259,
  23431. d - 5, 0
  23432. ];
  23433. case 6 === d:
  23434. return [260, d - 6, 0];
  23435. case 7 === d:
  23436. return [261, d - 7, 0];
  23437. case 8 === d:
  23438. return [262, d - 8, 0];
  23439. case 9 === d:
  23440. return [263, d - 9, 0];
  23441. case 10 === d:
  23442. return [264, d - 10, 0];
  23443. case 12 >= d:
  23444. return [265, d - 11, 1];
  23445. case 14 >= d:
  23446. return [266, d - 13, 1];
  23447. case 16 >= d:
  23448. return [267, d - 15, 1];
  23449. case 18 >= d:
  23450. return [268, d - 17, 1];
  23451. case 22 >= d:
  23452. return [269, d - 19, 2];
  23453. case 26 >= d:
  23454. return [270, d - 23, 2];
  23455. case 30 >= d:
  23456. return [271, d - 27, 2];
  23457. case 34 >= d:
  23458. return [272, d - 31, 2];
  23459. case 42 >= d:
  23460. return [273, d - 35, 3];
  23461. case 50 >= d:
  23462. return [274, d - 43, 3];
  23463. case 58 >= d:
  23464. return [275, d - 51, 3];
  23465. case 66 >= d:
  23466. return [276,
  23467. d - 59, 3
  23468. ];
  23469. case 82 >= d:
  23470. return [277, d - 67, 4];
  23471. case 98 >= d:
  23472. return [278, d - 83, 4];
  23473. case 114 >= d:
  23474. return [279, d - 99, 4];
  23475. case 130 >= d:
  23476. return [280, d - 115, 4];
  23477. case 162 >= d:
  23478. return [281, d - 131, 5];
  23479. case 194 >= d:
  23480. return [282, d - 163, 5];
  23481. case 226 >= d:
  23482. return [283, d - 195, 5];
  23483. case 257 >= d:
  23484. return [284, d - 227, 5];
  23485. case 258 === d:
  23486. return [285, d - 258, 0];
  23487. default:
  23488. a("invalid length: " + d)
  23489. }
  23490. }
  23491. function p(d, e) {
  23492. function f(d, e) {
  23493. var g = d.b_,
  23494. h = [],
  23495. k = 0,
  23496. m;
  23497. m = W[d.length];
  23498. h[k++] = m & 65535;
  23499. h[k++] = m >> 16 & 255;
  23500. h[k++] = m >> 24;
  23501. var n;
  23502. switch (G) {
  23503. case 1 === g:
  23504. n = [0, g - 1, 0];
  23505. break;
  23506. case 2 === g:
  23507. n = [1, g -
  23508. 2, 0
  23509. ];
  23510. break;
  23511. case 3 === g:
  23512. n = [2, g - 3, 0];
  23513. break;
  23514. case 4 === g:
  23515. n = [3, g - 4, 0];
  23516. break;
  23517. case 6 >= g:
  23518. n = [4, g - 5, 1];
  23519. break;
  23520. case 8 >= g:
  23521. n = [5, g - 7, 1];
  23522. break;
  23523. case 12 >= g:
  23524. n = [6, g - 9, 2];
  23525. break;
  23526. case 16 >= g:
  23527. n = [7, g - 13, 2];
  23528. break;
  23529. case 24 >= g:
  23530. n = [8, g - 17, 3];
  23531. break;
  23532. case 32 >= g:
  23533. n = [9, g - 25, 3];
  23534. break;
  23535. case 48 >= g:
  23536. n = [10, g - 33, 4];
  23537. break;
  23538. case 64 >= g:
  23539. n = [11, g - 49, 4];
  23540. break;
  23541. case 96 >= g:
  23542. n = [12, g - 65, 5];
  23543. break;
  23544. case 128 >= g:
  23545. n = [13, g - 97, 5];
  23546. break;
  23547. case 192 >= g:
  23548. n = [14, g - 129, 6];
  23549. break;
  23550. case 256 >= g:
  23551. n = [15, g - 193, 6];
  23552. break;
  23553. case 384 >= g:
  23554. n = [16, g - 257, 7];
  23555. break;
  23556. case 512 >= g:
  23557. n = [17, g - 385, 7];
  23558. break;
  23559. case 768 >= g:
  23560. n = [18, g - 513, 8];
  23561. break;
  23562. case 1024 >= g:
  23563. n = [19, g - 769, 8];
  23564. break;
  23565. case 1536 >= g:
  23566. n = [20, g - 1025, 9];
  23567. break;
  23568. case 2048 >= g:
  23569. n = [21, g - 1537, 9];
  23570. break;
  23571. case 3072 >= g:
  23572. n = [22, g - 2049, 10];
  23573. break;
  23574. case 4096 >= g:
  23575. n = [23, g - 3073, 10];
  23576. break;
  23577. case 6144 >= g:
  23578. n = [24, g - 4097, 11];
  23579. break;
  23580. case 8192 >= g:
  23581. n = [25, g - 6145, 11];
  23582. break;
  23583. case 12288 >= g:
  23584. n = [26, g - 8193, 12];
  23585. break;
  23586. case 16384 >= g:
  23587. n = [27, g - 12289, 12];
  23588. break;
  23589. case 24576 >= g:
  23590. n = [28, g - 16385, 13];
  23591. break;
  23592. case 32768 >= g:
  23593. n = [29, g - 24577, 13];
  23594. break;
  23595. default:
  23596. a("invalid distance")
  23597. }
  23598. m = n;
  23599. h[k++] = m[0];
  23600. h[k++] = m[1];
  23601. h[k++] = m[2];
  23602. g = 0;
  23603. for (k = h.length; g < k; ++g) v[w++] = h[g];
  23604. x[h[0]]++;
  23605. y[h[3]]++;
  23606. u = d.length + e - 1;
  23607. t = null
  23608. }
  23609. var g, h, k, n, p, s = {},
  23610. t, v = A ? new Uint16Array(2 * e.length) : [],
  23611. w = 0,
  23612. u = 0,
  23613. x = new(A ? Uint32Array : Array)(286),
  23614. y = new(A ? Uint32Array : Array)(30),
  23615. C = d.S,
  23616. z;
  23617. if (!A) {
  23618. for (k = 0; 285 >= k;) x[k++] = 0;
  23619. for (k = 0; 29 >= k;) y[k++] = 0
  23620. }
  23621. x[256] = 1;
  23622. g = 0;
  23623. for (h = e.length; g < h; ++g) {
  23624. k = p = 0;
  23625. for (n = 3; k < n && g + k !== h; ++k) p = p << 8 | e[g + k];
  23626. s[p] === F && (s[p] = []);
  23627. k = s[p];
  23628. if (!(0 < u--)) {
  23629. for (; 0 < k.length && 32768 < g - k[0];) k.shift();
  23630. if (g + 3 >= h) {
  23631. t && f(t, -1);
  23632. k = 0;
  23633. for (n = h - g; k < n; ++k) z = e[g + k], v[w++] = z, ++x[z];
  23634. break
  23635. }
  23636. if (0 < k.length) {
  23637. p = n = F;
  23638. var E = 0,
  23639. D = F,
  23640. B = F,
  23641. H = D = F,
  23642. K = e.length,
  23643. B = 0,
  23644. H = k.length;
  23645. a: for (; B < H; B++) {
  23646. n = k[H - B - 1];
  23647. D = 3;
  23648. if (3 < E) {
  23649. for (D = E; 3 < D; D--)
  23650. if (e[n + D - 1] !== e[g + D - 1]) continue a;
  23651. D = E
  23652. }
  23653. for (; 258 > D && g + D < K && e[n + D] === e[g + D];) ++D;
  23654. D > E && (p = n, E = D);
  23655. if (258 === D) break
  23656. }
  23657. n = new m(E, g - p);
  23658. t ? t.length < n.length ? (z = e[g - 1], v[w++] = z, ++x[z], f(n, 0)) : f(t, -1) : n.length < C ? t = n : f(n, 0)
  23659. } else t ? f(t, -1) : (z = e[g], v[w++] = z, ++x[z])
  23660. }
  23661. k.push(g)
  23662. }
  23663. v[w++] = 256;
  23664. x[256]++;
  23665. d.s_ = x;
  23666. d.q_ = y;
  23667. return A ? v.subarray(0, w) : v
  23668. }
  23669. function s(a, d) {
  23670. function e(a) {
  23671. var d = v[a][w[a]];
  23672. d ===
  23673. s ? (e(a + 1), e(a + 1)) : --t[d];
  23674. ++w[a]
  23675. }
  23676. var f = a.length,
  23677. h = new g(572),
  23678. k = new(A ? Uint8Array : Array)(f),
  23679. m, n, p;
  23680. if (!A)
  23681. for (n = 0; n < f; n++) k[n] = 0;
  23682. for (n = 0; n < f; ++n) 0 < a[n] && h.push(n, a[n]);
  23683. f = Array(h.length / 2);
  23684. m = new(A ? Uint32Array : Array)(h.length / 2);
  23685. if (1 === f.length) return k[h.pop().index] = 1, k;
  23686. n = 0;
  23687. for (p = h.length / 2; n < p; ++n) f[n] = h.pop(), m[n] = f[n].value;
  23688. var s = m.length;
  23689. n = new(A ? Uint16Array : Array)(d);
  23690. var h = new(A ? Uint8Array : Array)(d),
  23691. t = new(A ? Uint8Array : Array)(s);
  23692. p = Array(d);
  23693. var v = Array(d),
  23694. w = Array(d),
  23695. u = (1 << d) - s,
  23696. x = 1 << d - 1,
  23697. y, z, C;
  23698. n[d -
  23699. 1] = s;
  23700. for (y = 0; y < d; ++y) u < x ? h[y] = 0 : (h[y] = 1, u -= x), u <<= 1, n[d - 2 - y] = (n[d - 1 - y] / 2 | 0) + s;
  23701. n[0] = h[0];
  23702. p[0] = Array(n[0]);
  23703. v[0] = Array(n[0]);
  23704. for (y = 1; y < d; ++y) n[y] > 2 * n[y - 1] + h[y] && (n[y] = 2 * n[y - 1] + h[y]), p[y] = Array(n[y]), v[y] = Array(n[y]);
  23705. for (u = 0; u < s; ++u) t[u] = d;
  23706. for (x = 0; x < n[d - 1]; ++x) p[d - 1][x] = m[x], v[d - 1][x] = x;
  23707. for (u = 0; u < d; ++u) w[u] = 0;
  23708. 1 === h[d - 1] && (--t[0], ++w[d - 1]);
  23709. for (y = d - 2; 0 <= y; --y) {
  23710. z = u = 0;
  23711. C = w[y + 1];
  23712. for (x = 0; x < n[y]; x++) z = p[y + 1][C] + p[y + 1][C + 1], z > m[u] ? (p[y][x] = z, v[y][x] = s, C += 2) : (p[y][x] = m[u], v[y][x] = u, ++u);
  23713. w[y] = 0;
  23714. 1 === h[y] && e(y)
  23715. }
  23716. m =
  23717. t;
  23718. n = 0;
  23719. for (p = f.length; n < p; ++n) k[f[n].index] = m[n];
  23720. return k
  23721. }
  23722. function t(d) {
  23723. var e = new(A ? Uint16Array : Array)(d.length),
  23724. f = [],
  23725. g = [],
  23726. h = 0,
  23727. k, m, n;
  23728. k = 0;
  23729. for (m = d.length; k < m; k++) f[d[k]] = (f[d[k]] | 0) + 1;
  23730. k = 1;
  23731. for (m = 16; k <= m; k++) g[k] = h, h += f[k] | 0, h > 1 << k && a("overcommitted"), h <<= 1;
  23732. 65536 > h && a("undercommitted");
  23733. k = 0;
  23734. for (m = d.length; k < m; k++)
  23735. for (h = g[d[k]], g[d[k]] += 1, f = e[k] = 0, n = d[k]; f < n; f++) e[k] = e[k] << 1 | h & 1, h >>>= 1;
  23736. return e
  23737. }
  23738. function v(a, d) {
  23739. this.input = a;
  23740. this.a = new(A ? Uint8Array : Array)(32768);
  23741. this.wd = K.WC;
  23742. var e = {},
  23743. f;
  23744. !d && (d = {}) || "number" !==
  23745. typeof d.bK || (this.wd = d.bK);
  23746. for (f in d) e[f] = d[f];
  23747. e.mD = this.a;
  23748. this.z = new k(this.input, e)
  23749. }
  23750. function w(d, e) {
  23751. this.XC = [];
  23752. this.ZC = 32768;
  23753. this.fi = this.g = this.c = this.wD = 0;
  23754. this.input = A ? new Uint8Array(d) : d;
  23755. this.ih = !1;
  23756. this.eD = U;
  23757. this.CM = !1;
  23758. if (e || !(e = {})) e.index && (this.c = e.index), e.QJ && (this.ZC = e.QJ), e.RJ && (this.eD = e.RJ), e.resize && (this.CM = e.resize);
  23759. switch (this.eD) {
  23760. case L:
  23761. this.b = 32768;
  23762. this.a = new(A ? Uint8Array : Array)(32768 + this.ZC + 258);
  23763. break;
  23764. case U:
  23765. this.b = 0;
  23766. this.a = new(A ? Uint8Array : Array)(this.ZC);
  23767. this.nj = this.p_;
  23768. this.jM = this.d_;
  23769. this.hD = this.i_;
  23770. break;
  23771. default:
  23772. a(Error("invalid inflate mode"))
  23773. }
  23774. }
  23775. function x(d, e) {
  23776. for (var f = d.g, g = d.fi, h = d.input, k = d.c, m; g < e;) m = h[k++], m === F && a(Error("input buffer is broken")), f |= m << g, g += 8;
  23777. d.g = f >>> e;
  23778. d.fi = g - e;
  23779. d.c = k;
  23780. return f & (1 << e) - 1
  23781. }
  23782. function u(d, e) {
  23783. for (var f = d.g, g = d.fi, h = d.input, k = d.c, m = e[0], n = e[1], p; g < n;) p = h[k++], p === F && a(Error("input buffer is broken")), f |= p << g, g += 8;
  23784. h = m[f & (1 << n) - 1];
  23785. m = h >>> 16;
  23786. d.g = f >> m;
  23787. d.fi = g - m;
  23788. d.c = k;
  23789. return h & 65535
  23790. }
  23791. function y(a) {
  23792. function d(a, e, f) {
  23793. var g, h, k, m;
  23794. for (m = 0; m <
  23795. a;) switch (g = u(this, e), g) {
  23796. case 16:
  23797. for (k = 3 + x(this, 2); k--;) f[m++] = h;
  23798. break;
  23799. case 17:
  23800. for (k = 3 + x(this, 3); k--;) f[m++] = 0;
  23801. h = 0;
  23802. break;
  23803. case 18:
  23804. for (k = 11 + x(this, 7); k--;) f[m++] = 0;
  23805. h = 0;
  23806. break;
  23807. default:
  23808. h = f[m++] = g
  23809. }
  23810. return f
  23811. }
  23812. var e = x(a, 5) + 257,
  23813. f = x(a, 5) + 1,
  23814. g = x(a, 4) + 4,
  23815. k = new(A ? Uint8Array : Array)(Y.length),
  23816. m;
  23817. for (m = 0; m < g; ++m) k[Y[m]] = x(a, 3);
  23818. g = h(k);
  23819. k = new(A ? Uint8Array : Array)(e);
  23820. m = new(A ? Uint8Array : Array)(f);
  23821. a.hD(h(d.call(a, e, g, k)), h(d.call(a, f, g, m)))
  23822. }
  23823. function C(d, e) {
  23824. var f, g;
  23825. this.input = d;
  23826. this.c = 0;
  23827. if (e || !(e = {})) e.index && (this.c = e.index),
  23828. e.KY && (this.C_ = e.KY);
  23829. f = d[this.c++];
  23830. g = d[this.c++];
  23831. switch (f & 15) {
  23832. case oa:
  23833. this.method = oa;
  23834. break;
  23835. default:
  23836. a(Error("unsupported compression method"))
  23837. }
  23838. 0 !== ((f << 8) + g) % 31 && a(Error("invalid fcheck flag:" + ((f << 8) + g) % 31));
  23839. g & 32 && a(Error("fdict flag is not supported"));
  23840. this.wM = new w(d, {
  23841. index: this.c,
  23842. QJ: e.QJ,
  23843. RJ: e.RJ,
  23844. resize: e.resize
  23845. })
  23846. }
  23847. var F = void 0,
  23848. G = !0,
  23849. D = this,
  23850. A = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array;
  23851. f.prototype.nj = function() {
  23852. var a = this.buffer,
  23853. d, e = a.length,
  23854. f = new(A ? Uint8Array : Array)(e << 1);
  23855. if (A) f.set(a);
  23856. else
  23857. for (d = 0; d < e; ++d) f[d] = a[d];
  23858. return this.buffer = f
  23859. };
  23860. f.prototype.K = function(a, d, e) {
  23861. var f = this.buffer,
  23862. g = this.index,
  23863. h = this.Pw,
  23864. k = f[g];
  23865. e && 1 < d && (a = 8 < d ? (H[a & 255] << 24 | H[a >>> 8 & 255] << 16 | H[a >>> 16 & 255] << 8 | H[a >>> 24 & 255]) >> 32 - d : H[a] >> 8 - d);
  23866. if (8 > d + h) k = k << d | a, h += d;
  23867. else
  23868. for (e = 0; e < d; ++e) k = k << 1 | a >> d - e - 1 & 1, 8 === ++h && (h = 0, f[g++] = H[k], k = 0, g === f.length && (f = this.nj()));
  23869. f[g] = k;
  23870. this.buffer = f;
  23871. this.Pw = h;
  23872. this.index = g
  23873. };
  23874. f.prototype.finish = function() {
  23875. var a = this.buffer,
  23876. d = this.index,
  23877. e;
  23878. 0 < this.Pw && (a[d] <<= 8 - this.Pw, a[d] = H[a[d]], d++);
  23879. A ? e = a.subarray(0, d) : (a.length = d, e = a);
  23880. return e
  23881. };
  23882. var E = new(A ? Uint8Array : Array)(256),
  23883. z;
  23884. for (z = 0; 256 > z; ++z) {
  23885. for (var B = z, I = B, J = 7, B = B >>> 1; B; B >>>= 1) I <<= 1, I |= B & 1, --J;
  23886. E[z] = (I << J & 255) >>> 0
  23887. }
  23888. var H = E,
  23889. E = [0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648, 2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990, 1684777152,
  23890. 4251122042, 2321926636, 335633487, 1661365465, 4195302755, 2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145, 1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206, 2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980, 1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705, 3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527, 1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772, 4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290,
  23891. 251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719, 3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925, 453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202, 4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960, 984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733, 3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467, 855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048, 3373015174, 1466479909, 544179635, 3110523913, 3462522015,
  23892. 1591671054, 702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443, 3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945, 2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430, 2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580, 2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225, 1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143, 2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732, 1340076626, 3518719985, 2797360999, 1068828381,
  23893. 1219638859, 3624741850, 2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135, 1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109, 3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954, 1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920, 3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877, 83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603, 3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992, 534414190, 2176718541, 4139329115,
  23894. 1873836001, 414664567, 2282248934, 4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795, 376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105, 3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270, 936918E3, 2847714899, 3736837829, 1202900863, 817233897, 3183342108, 3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449, 601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471, 3272380065, 1510334235, 755167117
  23895. ];
  23896. A && new Uint32Array(E);
  23897. g.prototype.getParent = function(a) {
  23898. return 2 *
  23899. ((a - 2) / 4 | 0)
  23900. };
  23901. g.prototype.push = function(a, d) {
  23902. var e, f, g = this.buffer,
  23903. h;
  23904. e = this.length;
  23905. g[this.length++] = d;
  23906. for (g[this.length++] = a; 0 < e;)
  23907. if (f = this.getParent(e), g[e] > g[f]) h = g[e], g[e] = g[f], g[f] = h, h = g[e + 1], g[e + 1] = g[f + 1], g[f + 1] = h, e = f;
  23908. else break;
  23909. return this.length
  23910. };
  23911. g.prototype.pop = function() {
  23912. var a, d, e = this.buffer,
  23913. f, g, h;
  23914. d = e[0];
  23915. a = e[1];
  23916. this.length -= 2;
  23917. e[0] = e[this.length];
  23918. e[1] = e[this.length + 1];
  23919. for (h = 0;;) {
  23920. g = 2 * h + 2;
  23921. if (g >= this.length) break;
  23922. g + 2 < this.length && e[g + 2] > e[g] && (g += 2);
  23923. if (e[g] > e[h]) f = e[h], e[h] = e[g], e[g] = f, f = e[h +
  23924. 1], e[h + 1] = e[g + 1], e[g + 1] = f;
  23925. else break;
  23926. h = g
  23927. }
  23928. return {
  23929. index: a,
  23930. value: d,
  23931. length: this.length
  23932. }
  23933. };
  23934. var O = 2,
  23935. E = {
  23936. NONE: 0,
  23937. r: 1,
  23938. WC: O,
  23939. jha: 3
  23940. },
  23941. S = [];
  23942. for (z = 0; 288 > z; z++) switch (G) {
  23943. case 143 >= z:
  23944. S.push([z + 48, 8]);
  23945. break;
  23946. case 255 >= z:
  23947. S.push([z - 144 + 400, 9]);
  23948. break;
  23949. case 279 >= z:
  23950. S.push([z - 256 + 0, 7]);
  23951. break;
  23952. case 287 >= z:
  23953. S.push([z - 280 + 192, 8]);
  23954. break;
  23955. default:
  23956. a("invalid literal: " + z)
  23957. }
  23958. k.prototype.Pn = function() {
  23959. var d, e, g, h, k = this.input;
  23960. switch (this.wd) {
  23961. case 0:
  23962. g = 0;
  23963. for (h = k.length; g < h;) {
  23964. e = A ? k.subarray(g, g + 65535) : k.slice(g, g + 65535);
  23965. g += e.length;
  23966. var m = g ===
  23967. h,
  23968. n = F,
  23969. v = n = F,
  23970. v = n = F,
  23971. w = this.a,
  23972. u = this.b;
  23973. if (A) {
  23974. for (w = new Uint8Array(this.a.buffer); w.length <= u + e.length + 5;) w = new Uint8Array(w.length << 1);
  23975. w.set(this.a)
  23976. }
  23977. n = m ? 1 : 0;
  23978. w[u++] = n | 0;
  23979. n = e.length;
  23980. v = ~n + 65536 & 65535;
  23981. w[u++] = n & 255;
  23982. w[u++] = n >>> 8 & 255;
  23983. w[u++] = v & 255;
  23984. w[u++] = v >>> 8 & 255;
  23985. if (A) w.set(e, u), u += e.length, w = w.subarray(0, u);
  23986. else {
  23987. n = 0;
  23988. for (v = e.length; n < v; ++n) w[u++] = e[n];
  23989. w.length = u
  23990. }
  23991. this.b = u;
  23992. this.a = w
  23993. }
  23994. break;
  23995. case 1:
  23996. g = new f(new Uint8Array(this.a.buffer), this.b);
  23997. g.K(1, 1, G);
  23998. g.K(1, 2, G);
  23999. k = p(this, k);
  24000. e = 0;
  24001. for (m = k.length; e < m; e++)
  24002. if (h = k[e],
  24003. f.prototype.K.apply(g, S[h]), 256 < h) g.K(k[++e], k[++e], G), g.K(k[++e], 5), g.K(k[++e], k[++e], G);
  24004. else if (256 === h) break;
  24005. this.a = g.finish();
  24006. this.b = this.a.length;
  24007. break;
  24008. case O:
  24009. h = new f(new Uint8Array(this.a), this.b);
  24010. var x, y, z, C = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
  24011. D, E, n = Array(19),
  24012. B, w = O;
  24013. h.K(1, 1, G);
  24014. h.K(w, 2, G);
  24015. k = p(this, k);
  24016. v = s(this.s_, 15);
  24017. D = t(v);
  24018. w = s(this.q_, 7);
  24019. u = t(w);
  24020. for (x = 286; 257 < x && 0 === v[x - 1]; x--);
  24021. for (y = 30; 1 < y && 0 === w[y - 1]; y--);
  24022. var H = x,
  24023. K = y;
  24024. d = new(A ? Uint32Array : Array)(H + K);
  24025. var I = new(A ? Uint32Array : Array)(316),
  24026. J, L;
  24027. E = new(A ? Uint8Array : Array)(19);
  24028. for (B = z = 0; B < H; B++) d[z++] = v[B];
  24029. for (B = 0; B < K; B++) d[z++] = w[B];
  24030. if (!A)
  24031. for (B = 0, K = E.length; B < K; ++B) E[B] = 0;
  24032. B = J = 0;
  24033. for (K = d.length; B < K; B += z) {
  24034. for (z = 1; B + z < K && d[B + z] === d[B]; ++z);
  24035. H = z;
  24036. if (0 === d[B])
  24037. if (3 > H)
  24038. for (; 0 < H--;) I[J++] = 0, E[0]++;
  24039. else
  24040. for (; 0 < H;) L = 138 > H ? H : 138, L > H - 3 && L < H && (L = H - 3), 10 >= L ? (I[J++] = 17, I[J++] = L - 3, E[17]++) : (I[J++] = 18, I[J++] = L - 11, E[18]++), H -= L;
  24041. else if (I[J++] = d[B], E[d[B]]++, H--, 3 > H)
  24042. for (; 0 < H--;) I[J++] = d[B], E[d[B]]++;
  24043. else
  24044. for (; 0 < H;) L = 6 > H ? H : 6, L > H - 3 && L < H && (L = H - 3), I[J++] = 16, I[J++] =
  24045. L - 3, E[16]++, H -= L
  24046. }
  24047. d = A ? I.subarray(0, J) : I.slice(0, J);
  24048. E = s(E, 7);
  24049. for (B = 0; 19 > B; B++) n[B] = E[C[B]];
  24050. for (z = 19; 4 < z && 0 === n[z - 1]; z--);
  24051. C = t(E);
  24052. h.K(x - 257, 5, G);
  24053. h.K(y - 1, 5, G);
  24054. h.K(z - 4, 4, G);
  24055. for (B = 0; B < z; B++) h.K(n[B], 3, G);
  24056. B = 0;
  24057. for (n = d.length; B < n; B++)
  24058. if (e = d[B], h.K(C[e], E[e], G), 16 <= e) {
  24059. B++;
  24060. switch (e) {
  24061. case 16:
  24062. m = 2;
  24063. break;
  24064. case 17:
  24065. m = 3;
  24066. break;
  24067. case 18:
  24068. m = 7;
  24069. break;
  24070. default:
  24071. a("invalid code: " + e)
  24072. }
  24073. h.K(d[B], m, G)
  24074. }
  24075. m = [D, v];
  24076. u = [u, w];
  24077. e = m[0];
  24078. m = m[1];
  24079. w = u[0];
  24080. D = u[1];
  24081. u = 0;
  24082. for (n = k.length; u < n; ++u)
  24083. if (g = k[u], h.K(e[g], m[g], G), 256 < g) h.K(k[++u], k[++u], G), v = k[++u],
  24084. h.K(w[v], D[v], G), h.K(k[++u], k[++u], G);
  24085. else if (256 === g) break;
  24086. this.a = h.finish();
  24087. this.b = this.a.length;
  24088. break;
  24089. default:
  24090. a("invalid compression type")
  24091. }
  24092. return this.a
  24093. };
  24094. z = [];
  24095. var Q;
  24096. for (Q = 3; 258 >= Q; Q++) B = n(), z[Q] = B[2] << 24 | B[1] << 16 | B[0];
  24097. var W = A ? new Uint32Array(z) : z,
  24098. K = E;
  24099. v.prototype.Pn = function() {
  24100. var d, f, g, h, k = 0;
  24101. h = this.a;
  24102. d = oa;
  24103. switch (d) {
  24104. case oa:
  24105. f = Math.LOG2E * Math.log(32768) - 8;
  24106. break;
  24107. default:
  24108. a(Error("invalid compression method"))
  24109. }
  24110. f = f << 4 | d;
  24111. h[k++] = f;
  24112. switch (d) {
  24113. case oa:
  24114. switch (this.wd) {
  24115. case K.NONE:
  24116. g = 0;
  24117. break;
  24118. case K.r:
  24119. g = 1;
  24120. break;
  24121. case K.WC:
  24122. g = 2;
  24123. break;
  24124. default:
  24125. a(Error("unsupported compression type"))
  24126. }
  24127. break;
  24128. default:
  24129. a(Error("invalid compression method"))
  24130. }
  24131. d = g << 6 | 0;
  24132. h[k++] = d | 31 - (256 * f + d) % 31;
  24133. d = e(this.input);
  24134. this.z.b = k;
  24135. h = this.z.Pn();
  24136. k = h.length;
  24137. A && (h = new Uint8Array(h.buffer), h.length <= k + 4 && (this.a = new Uint8Array(h.length + 4), this.a.set(h), h = this.a), h = h.subarray(0, k + 4));
  24138. h[k++] = d >> 24 & 255;
  24139. h[k++] = d >> 16 & 255;
  24140. h[k++] = d >> 8 & 255;
  24141. h[k++] = d & 255;
  24142. return h
  24143. };
  24144. d("Zlib.Deflate", v);
  24145. d("Zlib.Deflate.compress", function(a, d) {
  24146. return (new v(a, d)).Pn()
  24147. });
  24148. d("Zlib.Deflate.CompressionType",
  24149. K);
  24150. d("Zlib.Deflate.CompressionType.NONE", K.NONE);
  24151. d("Zlib.Deflate.CompressionType.FIXED", K.r);
  24152. d("Zlib.Deflate.CompressionType.DYNAMIC", K.WC);
  24153. var L = 0,
  24154. U = 1,
  24155. E = {
  24156. wZ: L,
  24157. aZ: U
  24158. };
  24159. w.prototype.d = function() {
  24160. for (; !this.ih;) {
  24161. var d = x(this, 3);
  24162. d & 1 && (this.ih = G);
  24163. d >>>= 1;
  24164. switch (d) {
  24165. case 0:
  24166. var d = this.input,
  24167. e = this.c,
  24168. f = this.a,
  24169. g = this.b,
  24170. h = F,
  24171. k = F,
  24172. m = F,
  24173. n = f.length,
  24174. h = F;
  24175. this.fi = this.g = 0;
  24176. h = d[e++];
  24177. h === F && a(Error("invalid uncompressed block header: LEN (first byte)"));
  24178. k = h;
  24179. h = d[e++];
  24180. h === F && a(Error("invalid uncompressed block header: LEN (second byte)"));
  24181. k |= h << 8;
  24182. h = d[e++];
  24183. h === F && a(Error("invalid uncompressed block header: NLEN (first byte)"));
  24184. m = h;
  24185. h = d[e++];
  24186. h === F && a(Error("invalid uncompressed block header: NLEN (second byte)"));
  24187. m |= h << 8;
  24188. k === ~m && a(Error("invalid uncompressed block header: length verify"));
  24189. e + k > d.length && a(Error("input buffer is broken"));
  24190. switch (this.eD) {
  24191. case L:
  24192. for (; g + k > f.length;) {
  24193. h = n - g;
  24194. k -= h;
  24195. if (A) f.set(d.subarray(e, e + h), g), g += h, e += h;
  24196. else
  24197. for (; h--;) f[g++] = d[e++];
  24198. this.b = g;
  24199. f = this.nj();
  24200. g = this.b
  24201. }
  24202. break;
  24203. case U:
  24204. for (; g + k > f.length;) f = this.nj({
  24205. v: 2
  24206. });
  24207. break;
  24208. default:
  24209. a(Error("invalid inflate mode"))
  24210. }
  24211. if (A) f.set(d.subarray(e, e + k), g), g += k, e += k;
  24212. else
  24213. for (; k--;) f[g++] = d[e++];
  24214. this.c = e;
  24215. this.b = g;
  24216. this.a = f;
  24217. break;
  24218. case 1:
  24219. this.hD(Ta, Ua);
  24220. break;
  24221. case 2:
  24222. y(this);
  24223. break;
  24224. default:
  24225. a(Error("unknown BTYPE: " + d))
  24226. }
  24227. }
  24228. return this.jM()
  24229. };
  24230. z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  24231. var Y = A ? new Uint16Array(z) : z;
  24232. z = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258];
  24233. var Z = A ? new Uint16Array(z) : z;
  24234. z = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3,
  24235. 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0
  24236. ];
  24237. var sa = A ? new Uint8Array(z) : z;
  24238. z = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
  24239. var Ma = A ? new Uint16Array(z) : z;
  24240. z = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
  24241. var ta = A ? new Uint8Array(z) : z;
  24242. z = new(A ? Uint8Array : Array)(288);
  24243. B = 0;
  24244. for (I = z.length; B < I; ++B) z[B] = 143 >= B ? 8 : 255 >= B ? 9 : 279 >= B ? 7 : 8;
  24245. var Ta = h(z);
  24246. z = new(A ? Uint8Array : Array)(30);
  24247. B = 0;
  24248. for (I = z.length; B < I; ++B) z[B] = 5;
  24249. var Ua = h(z);
  24250. w.prototype.hD =
  24251. function(a, d) {
  24252. var e = this.a,
  24253. f = this.b;
  24254. this.u = a;
  24255. for (var g = e.length - 258, h, k, m; 256 !== (h = u(this, a));)
  24256. if (256 > h) f >= g && (this.b = f, e = this.nj(), f = this.b), e[f++] = h;
  24257. else
  24258. for (h -= 257, m = Z[h], 0 < sa[h] && (m += x(this, sa[h])), h = u(this, d), k = Ma[h], 0 < ta[h] && (k += x(this, ta[h])), f >= g && (this.b = f, e = this.nj(), f = this.b); m--;) e[f] = e[f++ - k];
  24259. for (; 8 <= this.fi;) this.fi -= 8, this.c--;
  24260. this.b = f
  24261. };
  24262. w.prototype.i_ = function(a, d) {
  24263. var e = this.a,
  24264. f = this.b;
  24265. this.u = a;
  24266. for (var g = e.length, h, k, m; 256 !== (h = u(this, a));)
  24267. if (256 > h) f >= g && (e = this.nj(), g = e.length), e[f++] =
  24268. h;
  24269. else
  24270. for (h -= 257, m = Z[h], 0 < sa[h] && (m += x(this, sa[h])), h = u(this, d), k = Ma[h], 0 < ta[h] && (k += x(this, ta[h])), f + m > g && (e = this.nj(), g = e.length); m--;) e[f] = e[f++ - k];
  24271. for (; 8 <= this.fi;) this.fi -= 8, this.c--;
  24272. this.b = f
  24273. };
  24274. w.prototype.nj = function() {
  24275. var a = new(A ? Uint8Array : Array)(this.b - 32768),
  24276. d = this.b - 32768,
  24277. e, f, g = this.a;
  24278. if (A) a.set(g.subarray(32768, a.length));
  24279. else
  24280. for (e = 0, f = a.length; e < f; ++e) a[e] = g[e + 32768];
  24281. this.XC.push(a);
  24282. this.wD += a.length;
  24283. if (A) g.set(g.subarray(d, d + 32768));
  24284. else
  24285. for (e = 0; 32768 > e; ++e) g[e] = g[d + e];
  24286. this.b = 32768;
  24287. return g
  24288. };
  24289. w.prototype.p_ = function(a) {
  24290. var d, e = this.input.length / this.c + 1 | 0,
  24291. f, g, h, k = this.input,
  24292. m = this.a;
  24293. a && ("number" === typeof a.v && (e = a.v), "number" === typeof a.YZ && (e += a.YZ));
  24294. 2 > e ? (f = (k.length - this.c) / this.u[2], h = f / 2 * 258 | 0, g = h < m.length ? m.length + h : m.length << 1) : g = m.length * e;
  24295. A ? (d = new Uint8Array(g), d.set(m)) : d = m;
  24296. return this.a = d
  24297. };
  24298. w.prototype.jM = function() {
  24299. var a = 0,
  24300. d = this.a,
  24301. e = this.XC,
  24302. f, g = new(A ? Uint8Array : Array)(this.wD + (this.b - 32768)),
  24303. h, k, m, n;
  24304. if (0 === e.length) return A ? this.a.subarray(32768, this.b) : this.a.slice(32768,
  24305. this.b);
  24306. h = 0;
  24307. for (k = e.length; h < k; ++h)
  24308. for (f = e[h], m = 0, n = f.length; m < n; ++m) g[a++] = f[m];
  24309. h = 32768;
  24310. for (k = this.b; h < k; ++h) g[a++] = d[h];
  24311. this.XC = [];
  24312. return this.buffer = g
  24313. };
  24314. w.prototype.d_ = function() {
  24315. var a, d = this.b;
  24316. A ? this.CM ? (a = new Uint8Array(d), a.set(this.a.subarray(0, d))) : a = this.a.subarray(0, d) : (this.a.length > d && (this.a.length = d), a = this.a);
  24317. return this.buffer = a
  24318. };
  24319. C.prototype.d = function() {
  24320. var d = this.input,
  24321. f, g;
  24322. f = this.wM.d();
  24323. this.c = this.wM.c;
  24324. this.C_ && (g = (d[this.c++] << 24 | d[this.c++] << 16 | d[this.c++] << 8 | d[this.c++]) >>> 0,
  24325. g !== e(f) && a(Error("invalid adler-32 checksum")));
  24326. return f
  24327. };
  24328. d("Zlib.Inflate", C);
  24329. d("Zlib.Inflate.BufferType", E);
  24330. E.vfa = E.aZ;
  24331. E.Qfa = E.wZ;
  24332. d("Zlib.Inflate.prototype.decompress", C.prototype.d);
  24333. E = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  24334. A && new Uint16Array(E);
  24335. E = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258];
  24336. A && new Uint16Array(E);
  24337. E = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0];
  24338. A && new Uint8Array(E);
  24339. E = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97,
  24340. 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577
  24341. ];
  24342. A && new Uint16Array(E);
  24343. E = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
  24344. A && new Uint8Array(E);
  24345. E = new(A ? Uint8Array : Array)(288);
  24346. z = 0;
  24347. for (B = E.length; z < B; ++z) E[z] = 143 >= z ? 8 : 255 >= z ? 9 : 279 >= z ? 7 : 8;
  24348. h(E);
  24349. E = new(A ? Uint8Array : Array)(30);
  24350. z = 0;
  24351. for (B = E.length; z < B; ++z) E[z] = 5;
  24352. h(E);
  24353. var oa = 8
  24354. }).call(this);
  24355. r = window;
  24356. r = r.yia = r.Zlib;
  24357. r.YM = r.Deflate;
  24358. r.YM.Fka = r.YM.compress;
  24359. r.Inflate = r.Inflate;
  24360. r.Inflate.bga = r.Inflate.BufferType;
  24361. r.Inflate.prototype.decompress = r.Inflate.prototype.decompress;
  24362. b.e0 = b.sa.extend({
  24363. ctor: function(a) {
  24364. var d, e, f, g;
  24365. this.data = a;
  24366. this.qb = 8;
  24367. this.BL = [];
  24368. this.KC = [];
  24369. this.iq = {};
  24370. this.LJ = null;
  24371. this.text = {};
  24372. for (f = null;;) {
  24373. d = this.mm();
  24374. g = a = void 0;
  24375. g = [];
  24376. for (a = 0; 4 > a; ++a) g.push(String.fromCharCode(this.data[this.qb++]));
  24377. a = g.join("");
  24378. switch (a) {
  24379. case "IHDR":
  24380. this.width = this.mm();
  24381. this.height = this.mm();
  24382. this.os = this.data[this.qb++];
  24383. this.$J = this.data[this.qb++];
  24384. this.qb++;
  24385. this.qb++;
  24386. this.qb++;
  24387. break;
  24388. case "acTL":
  24389. this.LJ = {
  24390. kra: this.mm(),
  24391. lra: this.mm() || Infinity,
  24392. frames: []
  24393. };
  24394. break;
  24395. case "PLTE":
  24396. this.BL =
  24397. this.lx(d);
  24398. break;
  24399. case "fcTL":
  24400. f && this.LJ.frames.push(f);
  24401. this.qb += 4;
  24402. f = {
  24403. width: this.mm(),
  24404. height: this.mm(),
  24405. NY: this.mm(),
  24406. OY: this.mm()
  24407. };
  24408. a = this.NW();
  24409. d = this.NW() || 100;
  24410. f.BU = 1E3 * a / d;
  24411. f.ela = this.data[this.qb++];
  24412. f.qka = this.data[this.qb++];
  24413. f.data = [];
  24414. break;
  24415. case "IDAT":
  24416. case "fdAT":
  24417. "fdAT" === a && (this.qb += 4, d -= 4);
  24418. a = (null != f ? f.data : void 0) || this.KC;
  24419. for (g = 0; 0 <= d ? g < d : g > d; 0 <= d ? ++g : --g) a.push(this.data[this.qb++]);
  24420. break;
  24421. case "tRNS":
  24422. this.iq = {};
  24423. switch (this.$J) {
  24424. case 3:
  24425. this.iq.eL = this.lx(d);
  24426. d = 255 - this.iq.eL.length;
  24427. if (0 < d)
  24428. for (a =
  24429. 0; 0 <= d ? a < d : a > d; 0 <= d ? ++a : --a) this.iq.eL.push(255);
  24430. break;
  24431. case 0:
  24432. this.iq.rpa = this.lx(d)[0];
  24433. break;
  24434. case 2:
  24435. this.iq.Zsa = this.lx(d)
  24436. }
  24437. break;
  24438. case "tEXt":
  24439. g = this.lx(d);
  24440. d = g.indexOf(0);
  24441. a = String.fromCharCode.apply(String, g.slice(0, d));
  24442. this.text[a] = String.fromCharCode.apply(String, g.slice(d + 1));
  24443. break;
  24444. case "IEND":
  24445. f && this.LJ.frames.push(f);
  24446. a: {
  24447. switch (this.$J) {
  24448. case 0:
  24449. case 3:
  24450. case 4:
  24451. f = 1;
  24452. break a;
  24453. case 2:
  24454. case 6:
  24455. f = 3;
  24456. break a
  24457. }
  24458. f = void 0
  24459. }
  24460. this.colors = f;
  24461. this.JV = 4 === (e = this.$J) || 6 === e;
  24462. e = this.colors + (this.JV ? 1 : 0);
  24463. this.Tba = this.os * e;
  24464. Uint8Array != Array && (this.KC = new Uint8Array(this.KC));
  24465. return;
  24466. default:
  24467. this.qb += d
  24468. }
  24469. this.qb += 4;
  24470. if (this.qb > this.data.length) throw Error("Incomplete or corrupt PNG file");
  24471. }
  24472. },
  24473. lx: function(a) {
  24474. var d, e;
  24475. e = [];
  24476. for (d = 0; 0 <= a ? d < a : d > a; 0 <= a ? ++d : --d) e.push(this.data[this.qb++]);
  24477. return e
  24478. },
  24479. mm: function() {
  24480. var a, d, e, f;
  24481. a = this.data[this.qb++] << 24;
  24482. d = this.data[this.qb++] << 16;
  24483. e = this.data[this.qb++] << 8;
  24484. f = this.data[this.qb++];
  24485. return a | d | e | f
  24486. },
  24487. NW: function() {
  24488. var a, d;
  24489. a = this.data[this.qb++] << 8;
  24490. d = this.data[this.qb++];
  24491. return a | d
  24492. },
  24493. Z7: function(a) {
  24494. var d,
  24495. e, f, g, h, k, m, n, p, s, t, v, w, x, u;
  24496. null == a && (a = this.KC);
  24497. if (0 === a.length) return new Uint8Array(0);
  24498. a = (new Zlib.Inflate(a, {
  24499. index: 0,
  24500. KY: !1
  24501. })).decompress();
  24502. n = this.Tba / 8;
  24503. v = n * this.width;
  24504. p = new Uint8Array(v * this.height);
  24505. k = a.length;
  24506. for (e = s = t = 0; s < k;) {
  24507. switch (a[s++]) {
  24508. case 0:
  24509. for (d = 0; d < v; d += 1) p[e++] = a[s++];
  24510. break;
  24511. case 1:
  24512. for (g = w = 0; w < v; g = w += 1) d = a[s++], h = g < n ? 0 : p[e - n], p[e++] = (d + h) % 256;
  24513. break;
  24514. case 2:
  24515. for (g = h = 0; h < v; g = h += 1) d = a[s++], f = (g - g % n) / n, w = t && p[(t - 1) * v + f * n + g % n], p[e++] = (w + d) % 256;
  24516. break;
  24517. case 3:
  24518. for (g = u = 0; u < v; g = u += 1) d = a[s++], f =
  24519. (g - g % n) / n, h = g < n ? 0 : p[e - n], w = t && p[(t - 1) * v + f * n + g % n], p[e++] = (d + Math.floor((h + w) / 2)) % 256;
  24520. break;
  24521. case 4:
  24522. for (g = u = 0; u < v; g = u += 1) d = a[s++], f = (g - g % n) / n, h = g < n ? 0 : p[e - n], 0 === t ? w = x = 0 : (w = p[(t - 1) * v + f * n + g % n], x = f && p[(t - 1) * v + (f - 1) * n + g % n]), m = h + w - x, g = Math.abs(m - h), f = Math.abs(m - w), m = Math.abs(m - x), h = g <= f && g <= m ? h : f <= m ? w : x, p[e++] = (d + h) % 256;
  24523. break;
  24524. default:
  24525. throw Error("Invalid filter algorithm: " + a[s - 1]);
  24526. }
  24527. t++
  24528. }
  24529. return p
  24530. },
  24531. Q7: function(a, d) {
  24532. var e, f, g, h, k, m, n, p;
  24533. f = this.colors;
  24534. p = null;
  24535. e = this.JV;
  24536. this.BL.length && (p = null != (g = this.k3) ? g : this.k3 =
  24537. this.Y7(), f = 4, e = !0);
  24538. g = a.data || a;
  24539. n = g.length;
  24540. k = p || d;
  24541. h = m = 0;
  24542. if (1 === f)
  24543. for (; h < n;) f = p ? 4 * d[h / 4] : m, m = k[f++], g[h++] = m, g[h++] = m, g[h++] = m, g[h++] = e ? k[f++] : 255, m = f;
  24544. else
  24545. for (; h < n;) f = p ? 4 * d[h / 4] : m, g[h++] = k[f++], g[h++] = k[f++], g[h++] = k[f++], g[h++] = e ? k[f++] : 255, m = f
  24546. },
  24547. Y7: function() {
  24548. var a, d, e, f, g, h, k, m, n;
  24549. e = this.BL;
  24550. h = this.iq.eL || [];
  24551. g = new Uint8Array((h.length || 0) + e.length);
  24552. d = k = a = f = 0;
  24553. for (m = e.length; k < m; d = k += 3) g[f++] = e[d], g[f++] = e[d + 1], g[f++] = e[d + 2], g[f++] = null != (n = h[a++]) ? n : 255;
  24554. return g
  24555. },
  24556. zca: function(a) {
  24557. var d;
  24558. a.width = this.width;
  24559. a.height = this.height;
  24560. a = a.getContext("2d");
  24561. d = a.createImageData(this.width, this.height);
  24562. this.Q7(d, this.Z7());
  24563. return a.putImageData(d, 0, 0)
  24564. }
  24565. });
  24566. b.Yea = {
  24567. FR: !1,
  24568. qp: null,
  24569. NG: [],
  24570. getUint8: function(a) {
  24571. return this.qp[a]
  24572. },
  24573. getUint16: function(a) {
  24574. return this.FR ? this.qp[a + 1] << 8 | this.qp[a] : this.qp[a] << 8 | this.qp[a + 1]
  24575. },
  24576. getUint32: function(a) {
  24577. var d = this.qp;
  24578. return this.FR ? d[a + 3] << 24 | d[a + 2] << 16 | d[a + 1] << 8 | d[a] : d[a] << 24 | d[a + 1] << 16 | d[a + 2] << 8 | d[a + 3]
  24579. },
  24580. D7: function() {
  24581. var a = this.getUint16(0);
  24582. if (18761 === a) this.qL = !0;
  24583. else if (19789 === a) this.qL = !1;
  24584. else throw console.log(a), TypeError("Invalid byte order value.");
  24585. return this.qL
  24586. },
  24587. haa: function() {
  24588. if (42 !== this.getUint16(2)) throw RangeError("You forgot your towel!");
  24589. return !0
  24590. },
  24591. u9: function(a) {
  24592. var d = this.M8;
  24593. return a in d ? d[a] : null
  24594. },
  24595. s9: function(a) {
  24596. var d = this.L8;
  24597. if (a in d) return d[a];
  24598. console.log("Unknown Field Tag:", a);
  24599. return "Tag" + a
  24600. },
  24601. t9: function(a) {
  24602. return -1 !== ["BYTE", "ASCII", "SBYTE", "UNDEFINED"].indexOf(a) ? 1 : -1 !== ["SHORT", "SSHORT"].indexOf(a) ? 2 : -1 !== ["LONG", "SLONG", "FLOAT"].indexOf(a) ? 4 : -1 !== ["RATIONAL", "SRATIONAL", "DOUBLE"].indexOf(a) ? 8 : null
  24603. },
  24604. v9: function(a, d, e, f) {
  24605. a = [];
  24606. var g = this.t9(d);
  24607. if (4 >= g * e) !1 === this.qL ? a.push(f >>> 8 * (4 - g)) : a.push(f);
  24608. else
  24609. for (var h = 0; h < e; h++) {
  24610. var k =
  24611. g * h;
  24612. 8 <= g ? -1 !== ["RATIONAL", "SRATIONAL"].indexOf(d) ? (a.push(this.getUint32(f + k)), a.push(this.getUint32(f + k + 4))) : b.log("Can't handle this field type or size") : a.push(this.cV(g, f + k))
  24613. }
  24614. "ASCII" === d && a.forEach(function(a, d, e) {
  24615. e[d] = String.fromCharCode(a)
  24616. });
  24617. return a
  24618. },
  24619. cV: function(a, d) {
  24620. if (0 >= a) b.log("No bytes requested");
  24621. else {
  24622. if (1 >= a) return this.getUint8(d);
  24623. if (2 >= a) return this.getUint16(d);
  24624. if (3 >= a) return this.getUint32(d) >>> 8;
  24625. if (4 >= a) return this.getUint32(d);
  24626. b.log("Too many bytes requested")
  24627. }
  24628. },
  24629. Z8: function(a,
  24630. d, e) {
  24631. e = e || 0;
  24632. d += Math.floor(e / 8);
  24633. var f = e + a;
  24634. a = 32 - a;
  24635. var g, h;
  24636. 0 >= f ? console.log("No bits requested") : 8 >= f ? (g = 24 + e, h = this.getUint8(d)) : 16 >= f ? (g = 16 + e, h = this.getUint16(d)) : 32 >= f ? (g = e, h = this.getUint32(d)) : console.log("Too many bits requested");
  24637. return {
  24638. bits: h << g >>> a,
  24639. byteOffset: d + Math.floor(f / 8),
  24640. bitOffset: f % 8
  24641. }
  24642. },
  24643. JW: function(a) {
  24644. var d = this.getUint16(a),
  24645. e = [];
  24646. a += 2;
  24647. for (var f = 0; f < d; a += 12, f++) {
  24648. var g = this.getUint16(a),
  24649. h = this.getUint16(a + 2),
  24650. k = this.getUint32(a + 4),
  24651. m = this.getUint32(a + 8),
  24652. g = this.s9(g),
  24653. h = this.u9(h),
  24654. k = this.v9(g,
  24655. h, k, m);
  24656. e[g] = {
  24657. type: h,
  24658. Jj: k
  24659. }
  24660. }
  24661. this.NG.push(e);
  24662. d = this.getUint32(a);
  24663. 0 !== d && this.JW(d)
  24664. },
  24665. Gp: function(a, d) {
  24666. var e = Math.pow(2, 8 - d);
  24667. return Math.floor(a * e + (e - 1))
  24668. },
  24669. Qba: function(a, d) {
  24670. d = d || b.ic("canvas");
  24671. this.qp = a;
  24672. this.canvas = d;
  24673. this.D7();
  24674. if (this.haa()) {
  24675. var e = this.getUint32(4);
  24676. this.NG.length = 0;
  24677. this.JW(e);
  24678. var f = this.NG[0],
  24679. e = f.ImageWidth.Jj[0],
  24680. g = f.ImageLength.Jj[0];
  24681. this.canvas.width = e;
  24682. this.canvas.height = g;
  24683. var h = [],
  24684. k = f.Compression ? f.Compression.Jj[0] : 1,
  24685. m = f.SamplesPerPixel.Jj[0],
  24686. n = [],
  24687. p = 0,
  24688. s = !1;
  24689. f.BitsPerSample.Jj.forEach(function(a,
  24690. d) {
  24691. n[d] = {
  24692. ps: a,
  24693. GC: !1,
  24694. sw: void 0
  24695. };
  24696. 0 === a % 8 && (n[d].GC = !0, n[d].sw = a / 8);
  24697. p += a
  24698. }, this);
  24699. if (0 === p % 8) var s = !0,
  24700. t = p / 8;
  24701. var v = f.StripOffsets.Jj,
  24702. w = v.length;
  24703. if (f.StripByteCounts) var x = f.StripByteCounts.Jj;
  24704. else if (b.log("Missing StripByteCounts!"), 1 === w) x = [Math.ceil(e * g * p / 8)];
  24705. else throw Error("Cannot recover from missing StripByteCounts");
  24706. for (var u = 0; u < w; u++) {
  24707. var y = v[u];
  24708. h[u] = [];
  24709. for (var C = x[u], F = 0, G = 0, D = 1, A = !0, E = [], z = 0, B = 0, I = 0; F < C; F += D) switch (k) {
  24710. case 1:
  24711. D = 0;
  24712. for (E = []; D < m; D++)
  24713. if (n[D].GC) E.push(this.cV(n[D].sw, y + F + n[D].sw *
  24714. D));
  24715. else {
  24716. var J = this.Z8(n[D].ps, y + F, G);
  24717. E.push(J.os);
  24718. F = J.byteOffset - y;
  24719. G = J.oka;
  24720. throw RangeError("Cannot handle sub-byte bits per sample");
  24721. }
  24722. h[u].push(E);
  24723. if (s) D = t;
  24724. else throw D = 0, RangeError("Cannot handle sub-byte bits per pixel");
  24725. break;
  24726. case 32773:
  24727. if (A) {
  24728. var A = !1,
  24729. H = 1,
  24730. O = 1,
  24731. D = this.getInt8(y + F);
  24732. 0 <= D && 127 >= D ? H = D + 1 : -127 <= D && -1 >= D ? O = -D + 1 : A = !0
  24733. } else {
  24734. for (var S = this.getUint8(y + F), D = 0; D < O; D++) {
  24735. if (n[B].GC) I = I << 8 * z | S, z++, z === n[B].sw && (E.push(I), I = z = 0, B++);
  24736. else throw RangeError("Cannot handle sub-byte bits per sample");
  24737. B === m && (h[u].push(E), E = [], B = 0)
  24738. }
  24739. H--;
  24740. 0 === H && (A = !0)
  24741. }
  24742. D = 1
  24743. }
  24744. }
  24745. if (d.getContext) {
  24746. t = this.canvas.getContext("2d");
  24747. t.fillStyle = "rgba(255, 255, 255, 0)";
  24748. u = f.RowsPerStrip ? f.RowsPerStrip.Jj[0] : g;
  24749. y = h.length;
  24750. g %= u;
  24751. g = 0 === g ? u : g;
  24752. F = u;
  24753. k = 0;
  24754. E = f.PhotometricInterpretation.Jj[0];
  24755. H = [];
  24756. O = 0;
  24757. f.ExtraSamples && (H = f.ExtraSamples.Jj, O = H.length);
  24758. if (f.ColorMap) var J = f.ColorMap.Jj,
  24759. Q = Math.pow(2, n[0].ps);
  24760. for (u = 0; u < y; u++) {
  24761. u + 1 === y && (F = g);
  24762. f = h[u].length;
  24763. k *= u;
  24764. for (s = m = 0; m < F, s < f; m++)
  24765. for (v = 0; v < e; v++, s++) {
  24766. x = h[u][s];
  24767. A = G = C = 0;
  24768. w = 1;
  24769. if (0 < O)
  24770. for (C = 0; C < O; C++)
  24771. if (1 ===
  24772. H[C] || 2 === H[C]) {
  24773. w = x[3 + C] / 256;
  24774. break
  24775. }
  24776. switch (E) {
  24777. case 0:
  24778. if (n[0].GC) var W = Math.pow(16, 2 * n[0].sw);
  24779. x.forEach(function(a, d, e) {
  24780. e[d] = W - a
  24781. });
  24782. case 1:
  24783. C = G = A = this.Gp(x[0], n[0].ps);
  24784. break;
  24785. case 2:
  24786. C = this.Gp(x[0], n[0].ps);
  24787. G = this.Gp(x[1], n[1].ps);
  24788. A = this.Gp(x[2], n[2].ps);
  24789. break;
  24790. case 3:
  24791. if (void 0 === J) throw Error("Palette image missing color map");
  24792. x = x[0];
  24793. C = this.Gp(J[x], 16);
  24794. G = this.Gp(J[Q + x], 16);
  24795. A = this.Gp(J[2 * Q + x], 16);
  24796. break;
  24797. default:
  24798. throw RangeError("Unknown Photometric Interpretation:", E);
  24799. }
  24800. t.fillStyle = "rgba(" + C + ", " + G + ", " + A +
  24801. ", " + w + ")";
  24802. t.fillRect(v, k + m, 1, 1)
  24803. }
  24804. k = F
  24805. }
  24806. }
  24807. return this.canvas
  24808. }
  24809. },
  24810. L8: {
  24811. 315: "Artist",
  24812. 258: "BitsPerSample",
  24813. 265: "CellLength",
  24814. 264: "CellWidth",
  24815. 320: "ColorMap",
  24816. 259: "Compression",
  24817. 33432: "Copyright",
  24818. 306: "DateTime",
  24819. 338: "ExtraSamples",
  24820. 266: "FillOrder",
  24821. 289: "FreeByteCounts",
  24822. 288: "FreeOffsets",
  24823. 291: "GrayResponseCurve",
  24824. 290: "GrayResponseUnit",
  24825. 316: "HostComputer",
  24826. 270: "ImageDescription",
  24827. 257: "ImageLength",
  24828. 256: "ImageWidth",
  24829. 271: "Make",
  24830. 281: "MaxSampleValue",
  24831. 280: "MinSampleValue",
  24832. 272: "Model",
  24833. 254: "NewSubfileType",
  24834. 274: "Orientation",
  24835. 262: "PhotometricInterpretation",
  24836. 284: "PlanarConfiguration",
  24837. 296: "ResolutionUnit",
  24838. 278: "RowsPerStrip",
  24839. 277: "SamplesPerPixel",
  24840. 305: "Software",
  24841. 279: "StripByteCounts",
  24842. 273: "StripOffsets",
  24843. 255: "SubfileType",
  24844. 263: "Threshholding",
  24845. 282: "XResolution",
  24846. 283: "YResolution",
  24847. 326: "BadFaxLines",
  24848. 327: "CleanFaxData",
  24849. 343: "ClipPath",
  24850. 328: "ConsecutiveBadFaxLines",
  24851. 433: "Decode",
  24852. 434: "DefaultImageColor",
  24853. 269: "DocumentName",
  24854. 336: "DotRange",
  24855. 321: "HalftoneHints",
  24856. 346: "Indexed",
  24857. 347: "JPEGTables",
  24858. 285: "PageName",
  24859. 297: "PageNumber",
  24860. 317: "Predictor",
  24861. 319: "PrimaryChromaticities",
  24862. 532: "ReferenceBlackWhite",
  24863. 339: "SampleFormat",
  24864. 559: "StripRowCounts",
  24865. 330: "SubIFDs",
  24866. 292: "T4Options",
  24867. 293: "T6Options",
  24868. 325: "TileByteCounts",
  24869. 323: "TileLength",
  24870. 324: "TileOffsets",
  24871. 322: "TileWidth",
  24872. 301: "TransferFunction",
  24873. 318: "WhitePoint",
  24874. 344: "XClipPathUnits",
  24875. 286: "XPosition",
  24876. 529: "YCbCrCoefficients",
  24877. 531: "YCbCrPositioning",
  24878. 530: "YCbCrSubSampling",
  24879. 345: "YClipPathUnits",
  24880. 287: "YPosition",
  24881. 37378: "ApertureValue",
  24882. 40961: "ColorSpace",
  24883. 36868: "DateTimeDigitized",
  24884. 36867: "DateTimeOriginal",
  24885. 34665: "Exif IFD",
  24886. 36864: "ExifVersion",
  24887. 33434: "ExposureTime",
  24888. 41728: "FileSource",
  24889. 37385: "Flash",
  24890. 40960: "FlashpixVersion",
  24891. 33437: "FNumber",
  24892. 42016: "ImageUniqueID",
  24893. 37384: "LightSource",
  24894. 37500: "MakerNote",
  24895. 37377: "ShutterSpeedValue",
  24896. 37510: "UserComment",
  24897. 33723: "IPTC",
  24898. 34675: "ICC Profile",
  24899. 700: "XMP",
  24900. 42112: "GDAL_METADATA",
  24901. 42113: "GDAL_NODATA",
  24902. 34377: "Photoshop"
  24903. },
  24904. M8: {
  24905. 1: "BYTE",
  24906. 2: "ASCII",
  24907. 3: "SHORT",
  24908. 4: "LONG",
  24909. 5: "RATIONAL",
  24910. 6: "SBYTE",
  24911. 7: "UNDEFINED",
  24912. 8: "SSHORT",
  24913. 9: "SLONG",
  24914. 10: "SRATIONAL",
  24915. 11: "FLOAT",
  24916. 12: "DOUBLE"
  24917. }
  24918. };
  24919. b.Bh = function(a, d, e, f, g, h, k, m, n, p, s, t) {
  24920. this.qb = a ? a : b.d(0, 0);
  24921. this.startPos = d ? d : b.d(0, 0);
  24922. this.color = e ? e : {
  24923. r: 0,
  24924. g: 0,
  24925. b: 0,
  24926. a: 255
  24927. };
  24928. this.Zl = f ? f : {
  24929. r: 0,
  24930. g: 0,
  24931. b: 0,
  24932. a: 255
  24933. };
  24934. this.size = g || 0;
  24935. this.gK = h || 0;
  24936. this.rotation = k || 0;
  24937. this.EU = m || 0;
  24938. this.Wn = n || 0;
  24939. this.atlasIndex = p || 0;
  24940. this.qc = s ? s : new b.Bh.NE;
  24941. this.Ke = t ? t : new b.Bh.OE;
  24942. this.mL = !1;
  24943. this.zw = b.d(0, 0)
  24944. };
  24945. b.Bh.NE = function(a, d, e) {
  24946. this.dir = a ? a : b.d(0, 0);
  24947. this.radialAccel = d || 0;
  24948. this.tangentialAccel = e || 0
  24949. };
  24950. b.Bh.OE = function(a, d, e, f) {
  24951. this.Yg = a || 0;
  24952. this.AU = d || 0;
  24953. this.kx = e || 0;
  24954. this.DU = f || 0
  24955. };
  24956. b.Bh.jz = [b.d(), b.d(), b.d(), b.d()];
  24957. b.t = b.e.extend({
  24958. Ma: "ParticleSystem",
  24959. VH: "",
  24960. Bb: 0,
  24961. FG: !1,
  24962. qc: null,
  24963. Ke: null,
  24964. bI: b.d(0, 0),
  24965. Bl: null,
  24966. Go: 0,
  24967. ig: 0,
  24968. qa: null,
  24969. atlasIndex: 0,
  24970. xp: !1,
  24971. Bz: 0,
  24972. Ar: !1,
  24973. ke: 0,
  24974. duration: 0,
  24975. Qr: null,
  24976. ln: null,
  24977. Sf: 0,
  24978. $s: 0,
  24979. Yg: 0,
  24980. ns: 0,
  24981. yt: 0,
  24982. zt: 0,
  24983. Mp: 0,
  24984. ws: 0,
  24985. vn: null,
  24986. wn: null,
  24987. gg: null,
  24988. Xm: null,
  24989. At: 0,
  24990. Bt: 0,
  24991. xs: 0,
  24992. ys: 0,
  24993. Kp: 0,
  24994. Mb: 0,
  24995. O: null,
  24996. H: null,
  24997. Cb: !1,
  24998. zj: null,
  24999. rw: !1,
  25000. Wa: 0,
  25001. R: null,
  25002. ctor: function(a) {
  25003. b.e.prototype.ctor.call(this);
  25004. this.Wa = b.t.Ab;
  25005. this.qc = new b.t.NE;
  25006. this.Ke = new b.t.OE;
  25007. this.H = {
  25008. src: b.Td,
  25009. $: b.Sd
  25010. };
  25011. this.Bl = [];
  25012. this.Qr = b.d(0, 0);
  25013. this.ln = b.d(0, 0);
  25014. this.vn = b.color(255,
  25015. 255, 255, 255);
  25016. this.wn = b.color(255, 255, 255, 255);
  25017. this.gg = b.color(255, 255, 255, 255);
  25018. this.Xm = b.color(255, 255, 255, 255);
  25019. this.VH = "";
  25020. this.Bb = 0;
  25021. this.FG = !1;
  25022. this.bI = b.d(0, 0);
  25023. this.ig = this.Go = 0;
  25024. this.qa = null;
  25025. this.atlasIndex = 0;
  25026. this.xp = !1;
  25027. this.Bz = 0;
  25028. this.Ar = !1;
  25029. this.Mb = this.Kp = this.ys = this.xs = this.Bt = this.At = this.ws = this.Mp = this.zt = this.yt = this.ns = this.Yg = this.$s = this.Sf = this.duration = this.ke = 0;
  25030. this.O = null;
  25031. this.Cb = !1;
  25032. this.zj = b.t.yu;
  25033. this.rw = !1;
  25034. this.R = !0;
  25035. !a || b.Vw(a) ? (a = a || 100, this.zx(b.t.iO), this.pc(a)) : b.Je(a) ? this.em(a) :
  25036. b.Ww(a) && this.SV(a, "")
  25037. },
  25038. Ic: function() {
  25039. return b.W === b.Jb ? new b.t.n(this) : new b.t.p(this)
  25040. },
  25041. wpa: function(a) {
  25042. this.FG = a
  25043. },
  25044. Rw: function(a) {
  25045. this.f.Rw(a)
  25046. },
  25047. yK: function() {
  25048. return this.qa
  25049. },
  25050. si: function(a) {
  25051. this.f.si(a)
  25052. },
  25053. Es: function() {
  25054. return this.atlasIndex
  25055. },
  25056. NL: function(a) {
  25057. this.atlasIndex = a
  25058. },
  25059. oC: function() {
  25060. return this.f.oC()
  25061. },
  25062. zx: function(a) {
  25063. this.f.zx(a)
  25064. },
  25065. vC: function() {
  25066. return this.f.vC()
  25067. },
  25068. TD: function(a) {
  25069. this.f.TD(a)
  25070. },
  25071. Ln: function() {
  25072. return this.Ar
  25073. },
  25074. coa: function() {
  25075. return this.ke
  25076. },
  25077. Dua: function(a) {
  25078. this.ke = a
  25079. },
  25080. Gs: function() {
  25081. return this.duration
  25082. },
  25083. jh: function(a) {
  25084. this.duration = a
  25085. },
  25086. I$: function() {
  25087. return {
  25088. x: this.Qr.x,
  25089. y: this.Qr.y
  25090. }
  25091. },
  25092. Tda: function(a) {
  25093. this.Qr = a
  25094. },
  25095. LK: function() {
  25096. return {
  25097. x: this.ln.x,
  25098. y: this.ln.y
  25099. }
  25100. },
  25101. yi: function(a) {
  25102. this.ln = a
  25103. },
  25104. Fna: function() {
  25105. return this.Sf
  25106. },
  25107. wi: function(a) {
  25108. this.Sf = a
  25109. },
  25110. Gna: function() {
  25111. return this.$s
  25112. },
  25113. xi: function(a) {
  25114. this.$s = a
  25115. },
  25116. zma: function() {
  25117. return this.Yg
  25118. },
  25119. qi: function(a) {
  25120. this.Yg = a
  25121. },
  25122. Ama: function() {
  25123. return this.ns
  25124. },
  25125. ri: function(a) {
  25126. this.ns = a
  25127. },
  25128. jV: function() {
  25129. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity");
  25130. var a = this.qc.gravity;
  25131. return b.d(a.x, a.y)
  25132. },
  25133. lh: function(a) {
  25134. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity");
  25135. this.qc.gravity = a
  25136. },
  25137. wC: function() {
  25138. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity");
  25139. return this.qc.speed
  25140. },
  25141. Uf: function(a) {
  25142. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity");
  25143. this.qc.speed = a
  25144. },
  25145. wV: function() {
  25146. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity");
  25147. return this.qc.speedVar
  25148. },
  25149. qh: function(a) {
  25150. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity");
  25151. this.qc.speedVar = a
  25152. },
  25153. AV: function() {
  25154. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity");
  25155. return this.qc.tangentialAccel
  25156. },
  25157. qm: function(a) {
  25158. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity");
  25159. this.qc.tangentialAccel = a
  25160. },
  25161. BV: function() {
  25162. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity");
  25163. return this.qc.tangentialAccelVar
  25164. },
  25165. rm: function(a) {
  25166. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity");
  25167. this.qc.tangentialAccelVar = a
  25168. },
  25169. qV: function() {
  25170. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity");
  25171. return this.qc.radialAccel
  25172. },
  25173. mh: function(a) {
  25174. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity");
  25175. this.qc.radialAccel = a
  25176. },
  25177. rV: function() {
  25178. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity");
  25179. return this.qc.radialAccelVar
  25180. },
  25181. nh: function(a) {
  25182. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity");
  25183. this.qc.radialAccelVar = a
  25184. },
  25185. x$: function() {
  25186. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity");
  25187. return this.qc.rotationIsDir
  25188. },
  25189. Oda: function(a) {
  25190. this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity");
  25191. this.qc.rotationIsDir = a
  25192. },
  25193. yV: function() {
  25194. this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius");
  25195. return this.Ke.startRadius
  25196. },
  25197. XX: function(a) {
  25198. this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius");
  25199. this.Ke.startRadius = a
  25200. },
  25201. zV: function() {
  25202. this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius");
  25203. return this.Ke.startRadiusVar
  25204. },
  25205. YX: function(a) {
  25206. this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius");
  25207. this.Ke.startRadiusVar = a
  25208. },
  25209. gV: function() {
  25210. this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius");
  25211. return this.Ke.endRadius
  25212. },
  25213. sX: function(a) {
  25214. this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius");
  25215. this.Ke.endRadius = a
  25216. },
  25217. hV: function() {
  25218. this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius");
  25219. return this.Ke.endRadiusVar
  25220. },
  25221. tX: function(a) {
  25222. this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius");
  25223. this.Ke.endRadiusVar = a
  25224. },
  25225. tV: function() {
  25226. this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius");
  25227. return this.Ke.DD
  25228. },
  25229. TX: function(a) {
  25230. this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius");
  25231. this.Ke.DD = a
  25232. },
  25233. uV: function() {
  25234. this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius");
  25235. return this.Ke.ED
  25236. },
  25237. UX: function(a) {
  25238. this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius");
  25239. this.Ke.ED = a
  25240. },
  25241. Tn: function(a, d) {
  25242. this.xp = !0;
  25243. b.e.prototype.Tn.call(this, a, d)
  25244. },
  25245. QD: function(a) {
  25246. this.xp = !0;
  25247. b.e.prototype.QD.call(this, a)
  25248. },
  25249. oh: function(a) {
  25250. this.xp = !0;
  25251. b.e.prototype.oh.call(this, a)
  25252. },
  25253. ph: function(a) {
  25254. this.xp = !0;
  25255. b.e.prototype.ph.call(this, a)
  25256. },
  25257. zoa: function() {
  25258. return this.yt
  25259. },
  25260. Ai: function(a) {
  25261. this.yt = a
  25262. },
  25263. Aoa: function() {
  25264. return this.zt
  25265. },
  25266. Bi: function(a) {
  25267. this.zt = a
  25268. },
  25269. ena: function() {
  25270. return this.Mp
  25271. },
  25272. vi: function(a) {
  25273. this.Mp = a
  25274. },
  25275. fna: function() {
  25276. return this.ws
  25277. },
  25278. eda: function(a) {
  25279. this.ws = a
  25280. },
  25281. xC: function() {
  25282. return b.color(this.vn.r, this.vn.g, this.vn.b, this.vn.a)
  25283. },
  25284. Vf: function(a) {
  25285. this.vn = b.color(a)
  25286. },
  25287. xV: function() {
  25288. return b.color(this.wn.r,
  25289. this.wn.g, this.wn.b, this.wn.a)
  25290. },
  25291. rh: function(a) {
  25292. this.wn = b.color(a)
  25293. },
  25294. pC: function() {
  25295. return b.color(this.gg.r, this.gg.g, this.gg.b, this.gg.a)
  25296. },
  25297. Tf: function(a) {
  25298. this.gg = b.color(a)
  25299. },
  25300. fV: function() {
  25301. return b.color(this.Xm.r, this.Xm.g, this.Xm.b, this.Xm.a)
  25302. },
  25303. kh: function(a) {
  25304. this.Xm = b.color(a)
  25305. },
  25306. Boa: function() {
  25307. return this.At
  25308. },
  25309. Vda: function(a) {
  25310. this.At = a
  25311. },
  25312. Coa: function() {
  25313. return this.Bt
  25314. },
  25315. Wda: function(a) {
  25316. this.Bt = a
  25317. },
  25318. gna: function() {
  25319. return this.xs
  25320. },
  25321. fda: function(a) {
  25322. this.xs = a
  25323. },
  25324. hna: function() {
  25325. return this.ys
  25326. },
  25327. gda: function(a) {
  25328. this.ys =
  25329. a
  25330. },
  25331. cna: function() {
  25332. return this.Kp
  25333. },
  25334. ti: function(a) {
  25335. this.Kp = a
  25336. },
  25337. Q$: function() {
  25338. return this.Mb
  25339. },
  25340. WD: function(a) {
  25341. this.f.WD(a)
  25342. },
  25343. xa: function() {
  25344. return this.O
  25345. },
  25346. Oa: function(a) {
  25347. a && (a.R ? this.YL(a, b.rect(0, 0, a.width, a.height)) : (this.R = !1, a.addEventListener("load", function(a) {
  25348. this.R = !0;
  25349. this.YL(a, b.rect(0, 0, a.width, a.height))
  25350. }, this)))
  25351. },
  25352. Gk: function() {
  25353. return this.H
  25354. },
  25355. sg: function(a, d) {
  25356. if (void 0 === d) this.H !== a && (this.H = a, this.bi());
  25357. else if (this.H.src !== a || this.H.$ !== d) this.H = {
  25358. src: a,
  25359. $: d
  25360. }, this.bi()
  25361. },
  25362. tf: function() {
  25363. return this.Cb
  25364. },
  25365. Le: function(a) {
  25366. this.Cb = a
  25367. },
  25368. Qaa: function() {
  25369. return this.H.src === b.SRC_ALPHA && this.H.$ === b.ONE || this.H.src === b.ONE && this.H.$ === b.ONE
  25370. },
  25371. Ej: function(a) {
  25372. var d = this.H;
  25373. a ? (d.src = b.SRC_ALPHA, d.$ = b.ONE) : this.f.ES()
  25374. },
  25375. foa: function() {
  25376. return this.zj
  25377. },
  25378. Ida: function(a) {
  25379. this.zj = a
  25380. },
  25381. Jpa: function() {
  25382. return this.rw
  25383. },
  25384. sta: function(a) {
  25385. this.rw = a
  25386. },
  25387. dna: function() {
  25388. return this.Wa
  25389. },
  25390. ui: function(a) {
  25391. this.Wa = a
  25392. },
  25393. T: function() {
  25394. return this.pc(150)
  25395. },
  25396. em: function(a) {
  25397. this.VH = a;
  25398. a = b.Z.sf(a);
  25399. return a ? this.SV(a, "") : (b.log("cc.ParticleSystem.initWithFile(): Particles: file not found"), !1)
  25400. },
  25401. a9: function() {
  25402. return b.rect(0, 0, b.ab.width, b.ab.height)
  25403. },
  25404. SV: function(a) {
  25405. var d = !1,
  25406. e = null,
  25407. e = this.J6,
  25408. f = parseInt(e("maxParticles", a));
  25409. if (this.pc(f)) {
  25410. this.Yg = parseFloat(e("angle", a));
  25411. this.ns = parseFloat(e("angleVariance", a));
  25412. this.duration = parseFloat(e("duration", a));
  25413. this.H.src = parseInt(e("blendFuncSource", a));
  25414. this.H.$ = parseInt(e("blendFuncDestination", a));
  25415. d = this.vn;
  25416. d.r = 255 * parseFloat(e("startColorRed", a));
  25417. d.g = 255 * parseFloat(e("startColorGreen", a));
  25418. d.b = 255 * parseFloat(e("startColorBlue", a));
  25419. d.a = 255 *
  25420. parseFloat(e("startColorAlpha", a));
  25421. d = this.wn;
  25422. d.r = 255 * parseFloat(e("startColorVarianceRed", a));
  25423. d.g = 255 * parseFloat(e("startColorVarianceGreen", a));
  25424. d.b = 255 * parseFloat(e("startColorVarianceBlue", a));
  25425. d.a = 255 * parseFloat(e("startColorVarianceAlpha", a));
  25426. d = this.gg;
  25427. d.r = 255 * parseFloat(e("finishColorRed", a));
  25428. d.g = 255 * parseFloat(e("finishColorGreen", a));
  25429. d.b = 255 * parseFloat(e("finishColorBlue", a));
  25430. d.a = 255 * parseFloat(e("finishColorAlpha", a));
  25431. d = this.Xm;
  25432. d.r = 255 * parseFloat(e("finishColorVarianceRed", a));
  25433. d.g = 255 * parseFloat(e("finishColorVarianceGreen",
  25434. a));
  25435. d.b = 255 * parseFloat(e("finishColorVarianceBlue", a));
  25436. d.a = 255 * parseFloat(e("finishColorVarianceAlpha", a));
  25437. this.yt = parseFloat(e("startParticleSize", a));
  25438. this.zt = parseFloat(e("startParticleSizeVariance", a));
  25439. this.Mp = parseFloat(e("finishParticleSize", a));
  25440. this.ws = parseFloat(e("finishParticleSizeVariance", a));
  25441. this.I(parseFloat(e("sourcePositionx", a)), parseFloat(e("sourcePositiony", a)));
  25442. this.ln.x = parseFloat(e("sourcePositionVariancex", a));
  25443. this.ln.y = parseFloat(e("sourcePositionVariancey", a));
  25444. this.At = parseFloat(e("rotationStart",
  25445. a));
  25446. this.Bt = parseFloat(e("rotationStartVariance", a));
  25447. this.xs = parseFloat(e("rotationEnd", a));
  25448. this.ys = parseFloat(e("rotationEndVariance", a));
  25449. this.Wa = parseInt(e("emitterType", a));
  25450. if (this.Wa === b.t.Ab) d = this.qc, d.gravity.x = parseFloat(e("gravityx", a)), d.gravity.y = parseFloat(e("gravityy", a)), d.speed = parseFloat(e("speed", a)), d.speedVar = parseFloat(e("speedVariance", a)), f = e("radialAcceleration", a), d.radialAccel = f ? parseFloat(f) : 0, f = e("radialAccelVariance", a), d.radialAccelVar = f ? parseFloat(f) : 0, f = e("tangentialAcceleration",
  25451. a), d.tangentialAccel = f ? parseFloat(f) : 0, f = e("tangentialAccelVariance", a), d.tangentialAccelVar = f ? parseFloat(f) : 0, f = e("rotationIsDir", a).toLowerCase(), d.rotationIsDir = null != f && ("true" === f || "1" === f);
  25452. else if (this.Wa === b.t.Yf) d = this.Ke, d.startRadius = parseFloat(e("maxRadius", a)), d.startRadiusVar = parseFloat(e("maxRadiusVariance", a)), d.endRadius = parseFloat(e("minRadius", a)), d.endRadiusVar = 0, d.DD = parseFloat(e("rotatePerSecond", a)), d.ED = parseFloat(e("rotatePerSecondVariance", a));
  25453. else return b.log("cc.ParticleSystem.initWithDictionary(): Invalid emitterType in config file"), !1;
  25454. this.Sf = parseFloat(e("particleLifespan", a));
  25455. this.$s = parseFloat(e("particleLifespanVariance", a));
  25456. this.Kp = this.Mb / this.Sf;
  25457. if (!this.qa)
  25458. if (this.Cb = !1, d = e("textureFileName", a), d = b.path.qs(this.VH, d), f = b.Xa.Kn(d)) this.Oa(f);
  25459. else if ((a = e("textureImageData", a)) && 0 !== a.length) {
  25460. e = b.BY(a, 1);
  25461. if (!e) return b.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"), !1;
  25462. a = b.E9(e);
  25463. if (a !== b.bN && a !== b.CE) return b.log("cc.ParticleSystem: unknown image format with Data"), !1;
  25464. f = b.ic("canvas");
  25465. a === b.CE ?
  25466. (new b.e0(e)).zca(f) : b.Yea.Qba(e, f);
  25467. b.Xa.x7(d, f);
  25468. (a = b.Xa.Kn(d)) || b.log("cc.ParticleSystem.initWithDictionary() : error loading the texture");
  25469. this.Oa(a)
  25470. } else {
  25471. f = b.Xa.Vc(d);
  25472. if (!f) return !1;
  25473. this.Oa(f)
  25474. }
  25475. d = !0
  25476. }
  25477. return d
  25478. },
  25479. pc: function(a) {
  25480. this.Mb = a;
  25481. var d, e = this.Bl;
  25482. for (d = e.length = 0; d < a; d++) e[d] = new b.Bh;
  25483. if (!e) return b.log("Particle system: not enough memory"), !1;
  25484. this.Bz = a;
  25485. if (this.qa)
  25486. for (d = 0; d < this.Mb; d++) e[d].atlasIndex = d;
  25487. this.Ar = !0;
  25488. this.H.src = b.Td;
  25489. this.H.$ = b.Sd;
  25490. this.zj = b.t.yu;
  25491. this.Wa = b.t.Ab;
  25492. this.xp = this.rw = !1;
  25493. this.dX(1);
  25494. this.f.kR(a);
  25495. return !0
  25496. },
  25497. Uka: function() {
  25498. this.Hj()
  25499. },
  25500. WB: function() {
  25501. if (this.Waa()) return !1;
  25502. var a = this.f.WB();
  25503. this.paa(a);
  25504. ++this.ke;
  25505. return !0
  25506. },
  25507. paa: function(a) {
  25508. var d = b.ica;
  25509. a.Wn = this.Sf + this.$s * d();
  25510. a.Wn = Math.max(0, a.Wn);
  25511. a.qb.x = this.Qr.x + this.ln.x * d();
  25512. a.qb.y = this.Qr.y + this.ln.y * d();
  25513. var e, f;
  25514. e = this.vn;
  25515. var g = this.wn,
  25516. h = this.gg;
  25517. f = this.Xm;
  25518. e = {
  25519. r: b.Zg(e.r + g.r * d(), 0, 255),
  25520. g: b.Zg(e.g + g.g * d(), 0, 255),
  25521. b: b.Zg(e.b + g.b * d(), 0, 255),
  25522. a: b.Zg(e.a + g.a * d(), 0, 255)
  25523. };
  25524. f = {
  25525. r: b.Zg(h.r + f.r * d(), 0, 255),
  25526. g: b.Zg(h.g + f.g * d(), 0, 255),
  25527. b: b.Zg(h.b +
  25528. f.b * d(), 0, 255),
  25529. a: b.Zg(h.a + f.a * d(), 0, 255)
  25530. };
  25531. a.color = e;
  25532. g = a.Zl;
  25533. h = a.Wn;
  25534. g.r = (f.r - e.r) / h;
  25535. g.g = (f.g - e.g) / h;
  25536. g.b = (f.b - e.b) / h;
  25537. g.a = (f.a - e.a) / h;
  25538. e = this.yt + this.zt * d();
  25539. e = Math.max(0, e);
  25540. a.size = e;
  25541. this.Mp === b.t.Eh ? a.gK = 0 : (f = this.Mp + this.ws * d(), f = Math.max(0, f), a.gK = (f - e) / h);
  25542. e = this.At + this.Bt * d();
  25543. f = this.xs + this.ys * d();
  25544. a.rotation = e;
  25545. a.EU = (f - e) / h;
  25546. this.zj === b.t.yu ? a.startPos = this.Yl(this.bI) : this.zj === b.t.BF && (a.startPos.x = this.Ca.x, a.startPos.y = this.Ca.y);
  25547. e = b.Md(this.Yg + this.ns * d());
  25548. if (this.Wa === b.t.Ab) h = this.qc, f = a.qc, g =
  25549. h.speed + h.speedVar * d(), f.dir.x = Math.cos(e), f.dir.y = Math.sin(e), b.ft(f.dir, g), f.radialAccel = h.radialAccel + h.radialAccelVar * d(), f.tangentialAccel = h.tangentialAccel + h.tangentialAccelVar * d(), h.rotationIsDir && (a.rotation = -b.jx(b.Oba(f.dir)));
  25550. else {
  25551. f = this.Ke;
  25552. a = a.Ke;
  25553. var g = f.startRadius + f.startRadiusVar * d(),
  25554. k = f.endRadius + f.endRadiusVar * d();
  25555. a.kx = g;
  25556. a.DU = f.endRadius === b.t.J0 ? 0 : (k - g) / h;
  25557. a.Yg = e;
  25558. a.AU = b.Md(f.DD + f.ED * d())
  25559. }
  25560. },
  25561. Kea: function() {
  25562. this.Ar = !1;
  25563. this.Bb = this.duration;
  25564. this.Go = 0
  25565. },
  25566. Cca: function() {
  25567. this.Ar = !0;
  25568. this.Bb =
  25569. 0;
  25570. var a = this.Bl;
  25571. for (this.ig = 0; this.ig < this.ke; ++this.ig) a[this.ig].Wn = 0
  25572. },
  25573. Waa: function() {
  25574. return this.ke >= this.Mb
  25575. },
  25576. bE: function(a, d) {
  25577. this.f.bE(a, d)
  25578. },
  25579. vD: function() {
  25580. this.f.vD()
  25581. },
  25582. update: function(a) {
  25583. if (this.Ar && this.Kp) {
  25584. var d = 1 / this.Kp;
  25585. this.ke < this.Mb && (this.Go += a);
  25586. for (; this.ke < this.Mb && this.Go > d;) this.WB(), this.Go -= d;
  25587. this.Bb += a; - 1 !== this.duration && this.duration < this.Bb && this.Kea()
  25588. }
  25589. this.ig = 0;
  25590. d = b.Bh.jz[0];
  25591. this.zj === b.t.yu ? b.km(d, this.Yl(this.bI)) : this.zj === b.t.BF && (d.x = this.Ca.x, d.y = this.Ca.y);
  25592. if (this.Ta) {
  25593. for (var e =
  25594. b.Bh.jz[1], f = b.Bh.jz[2], g = b.Bh.jz[3], h = this.Bl; this.ig < this.ke;) {
  25595. b.pD(e);
  25596. b.pD(f);
  25597. b.pD(g);
  25598. var k = h[this.ig];
  25599. k.Wn -= a;
  25600. if (0 < k.Wn) {
  25601. if (this.Wa === b.t.Ab) {
  25602. var m = g,
  25603. n = e,
  25604. p = f;
  25605. k.qb.x || k.qb.y ? (b.km(n, k.qb), b.Nba(n)) : b.pD(n);
  25606. b.km(p, n);
  25607. b.ft(n, k.qc.radialAccel);
  25608. var s = p.x;
  25609. p.x = -p.y;
  25610. p.y = s;
  25611. b.ft(p, k.qc.tangentialAccel);
  25612. b.km(m, n);
  25613. b.nD(m, p);
  25614. b.nD(m, this.qc.gravity);
  25615. b.ft(m, a);
  25616. b.nD(k.qc.dir, m);
  25617. b.km(m, k.qc.dir);
  25618. b.ft(m, a);
  25619. b.nD(k.qb, m)
  25620. } else m = k.Ke, m.Yg += m.AU * a, m.kx += m.DU * a, k.qb.x = -Math.cos(m.Yg) * m.kx, k.qb.y = -Math.sin(m.Yg) * m.kx;
  25621. this.f.wT(k, a);
  25622. k.size += k.gK * a;
  25623. k.size = Math.max(0, k.size);
  25624. k.rotation += k.EU * a;
  25625. m = e;
  25626. this.zj === b.t.yu || this.zj === b.t.BF ? (n = f, b.km(n, d), b.IW(n, k.startPos), b.km(m, k.qb), b.IW(m, n)) : b.km(m, k.qb);
  25627. this.qa && (m.x += this.Ca.x, m.y += this.Ca.y);
  25628. this.f.GY(k, m);
  25629. ++this.ig
  25630. } else if (k = k.atlasIndex, this.ig !== this.ke - 1 && (m = h[this.ig], h[this.ig] = h[this.ke - 1], h[this.ke - 1] = m), this.qa && (this.qa.f8(this.atlasIndex + k), h[this.ke - 1].atlasIndex = k), --this.ke, 0 === this.ke && this.rw) {
  25631. this.Hj();
  25632. this.Ga.removeChild(this, !0);
  25633. return
  25634. }
  25635. }
  25636. this.xp = !1
  25637. }
  25638. this.qa || this.vD()
  25639. },
  25640. nfa: function() {
  25641. this.update(0)
  25642. },
  25643. J6: function(a, d) {
  25644. if (d) {
  25645. var e = d[a];
  25646. return null != e ? e : ""
  25647. }
  25648. return ""
  25649. },
  25650. bi: function() {
  25651. if (this.qa) b.log("Can't change blending functions when the particle is being batched");
  25652. else {
  25653. var a = this.O;
  25654. if (a && a instanceof b.ja) {
  25655. this.Cb = !1;
  25656. var d = this.H;
  25657. d.src === b.Td && d.$ === b.Sd && (a.Jk() ? this.Cb = !0 : (d.src = b.SRC_ALPHA, d.$ = b.ONE_MINUS_SRC_ALPHA))
  25658. }
  25659. }
  25660. },
  25661. q: function() {
  25662. var a = new b.t;
  25663. if (a.pc(this.Mb)) {
  25664. a.qi(this.Yg);
  25665. a.ri(this.ns);
  25666. a.jh(this.Gs());
  25667. var d = this.Gk();
  25668. a.sg(d.src, d.$);
  25669. a.Vf(this.xC());
  25670. a.rh(this.xV());
  25671. a.Tf(this.pC());
  25672. a.kh(this.fV());
  25673. a.Ai(this.yt);
  25674. a.Bi(this.zt);
  25675. a.vi(this.Mp);
  25676. a.eda(this.ws);
  25677. a.I(b.d(this.x, this.y));
  25678. a.yi(b.d(this.LK().x, this.LK().y));
  25679. a.Ida(this.zj);
  25680. a.Vda(this.At || 0);
  25681. a.Wda(this.Bt || 0);
  25682. a.fda(this.xs || 0);
  25683. a.gda(this.ys || 0);
  25684. a.ui(this.Wa);
  25685. this.Wa === b.t.Ab ? (d = this.jV(), a.lh(b.d(d.x, d.y)), a.Uf(this.wC()), a.qh(this.wV()), a.mh(this.qV()), a.nh(this.rV()), a.qm(this.AV()), a.rm(this.BV())) : this.Wa === b.t.Yf && (a.XX(this.yV()), a.YX(this.zV()), a.sX(this.gV()), a.tX(this.hV()),
  25686. a.TX(this.tV()), a.UX(this.uV()));
  25687. a.wi(this.Sf);
  25688. a.xi(this.$s);
  25689. a.ti(this.Kp);
  25690. if (!this.qa && (a.Le(this.tf()), d = this.xa())) {
  25691. var e = d.L();
  25692. a.YL(d, b.rect(0, 0, e.width, e.height))
  25693. }
  25694. }
  25695. return a
  25696. },
  25697. bda: function(a) {
  25698. if (a) {
  25699. var d = a.g$();
  25700. 0 === d.x && 0 === d.y || b.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets");
  25701. a = a.xa();
  25702. this.O !== a && this.Oa(a)
  25703. }
  25704. },
  25705. YL: function(a, d) {
  25706. this.O !== a && (this.O = a, this.bi());
  25707. this.Rw(d)
  25708. },
  25709. Lqa: function() {}
  25710. });
  25711. r = b.t.prototype;
  25712. b.i(r, "opacityModifyRGB", r.tf, r.Le);
  25713. b.i(r, "batchNode", r.yK, r.si);
  25714. b.i(r, "drawMode", r.oC, r.zx);
  25715. b.i(r, "shapeType", r.vC, r.TD);
  25716. b.i(r, "active", r.Ln);
  25717. b.i(r, "sourcePos", r.I$, r.Tda);
  25718. b.i(r, "posVar", r.LK, r.yi);
  25719. b.i(r, "gravity", r.jV, r.lh);
  25720. b.i(r, "speed", r.wC, r.Uf);
  25721. b.i(r, "speedVar", r.wV, r.qh);
  25722. b.i(r, "tangentialAccel", r.AV, r.qm);
  25723. b.i(r, "tangentialAccelVar", r.BV, r.rm);
  25724. b.i(r, "radialAccel", r.qV, r.mh);
  25725. b.i(r, "radialAccelVar", r.rV, r.nh);
  25726. b.i(r, "rotationIsDir", r.x$, r.Oda);
  25727. b.i(r, "startRadius", r.yV, r.XX);
  25728. b.i(r, "startRadiusVar", r.zV, r.YX);
  25729. b.i(r, "endRadius", r.gV, r.sX);
  25730. b.i(r, "endRadiusVar", r.hV, r.tX);
  25731. b.i(r, "rotatePerS", r.tV, r.TX);
  25732. b.i(r, "rotatePerSVar", r.uV, r.UX);
  25733. b.i(r, "startColor", r.xC, r.Vf);
  25734. b.i(r, "startColorVar", r.xV, r.rh);
  25735. b.i(r, "endColor", r.pC, r.Tf);
  25736. b.i(r, "endColorVar", r.fV, r.kh);
  25737. b.i(r, "totalParticles", r.Q$, r.WD);
  25738. b.i(r, "texture", r.xa, r.Oa);
  25739. b.t.create = function(a) {
  25740. return new b.t(a)
  25741. };
  25742. b.t.Oka = b.t.create;
  25743. b.t.NE = function(a, d, e, f, g, h, k, m) {
  25744. this.gravity = a ? a : b.d(0, 0);
  25745. this.speed = d || 0;
  25746. this.speedVar = e || 0;
  25747. this.tangentialAccel = f || 0;
  25748. this.tangentialAccelVar = g || 0;
  25749. this.radialAccel = h || 0;
  25750. this.radialAccelVar = k || 0;
  25751. this.rotationIsDir = m || !1
  25752. };
  25753. b.t.OE = function(a, d, e, f, g, h) {
  25754. this.startRadius = a || 0;
  25755. this.startRadiusVar = d || 0;
  25756. this.endRadius = e || 0;
  25757. this.endRadiusVar = f || 0;
  25758. this.DD = g || 0;
  25759. this.ED = h || 0
  25760. };
  25761. b.t.I0 = 0;
  25762. b.t.iO = 1;
  25763. b.t.K0 = 0;
  25764. b.t.VY = 1;
  25765. b.t.Mj = -1;
  25766. b.t.Eh = -1;
  25767. b.t.J0 = -1;
  25768. b.t.Ab = 0;
  25769. b.t.Yf = 1;
  25770. b.t.yu = 0;
  25771. b.t.BF = 1;
  25772. b.t.hia = 2;
  25773. (function() {
  25774. b.t.n = function(a) {
  25775. b.e.n.call(this, a);
  25776. this.cb = !0;
  25777. this.ZP = b.t.iO;
  25778. this.QS = b.t.VY;
  25779. this.XH = b.rect(0, 0, 0, 0)
  25780. };
  25781. var a = b.t.n.prototype = Object.create(b.e.n.prototype);
  25782. a.constructor = b.t.n;
  25783. a.oC = function() {
  25784. return this.ZP
  25785. };
  25786. a.zx = function(a) {
  25787. this.ZP = a
  25788. };
  25789. a.vC = function() {
  25790. return this.QS
  25791. };
  25792. a.TD = function(a) {
  25793. this.QS = a
  25794. };
  25795. a.si = function(a) {
  25796. this.qa !== a && (this.k.qa = a)
  25797. };
  25798. a.bE = function() {};
  25799. a.GY = function(a, e) {
  25800. b.km(a.zw, e)
  25801. };
  25802. a.Eb = function(a, e, f) {
  25803. a = a || b.A;
  25804. var g = a.getContext(),
  25805. h = this.k,
  25806. k = this.XH;
  25807. a.setTransform(this.jj, e, f);
  25808. a.save();
  25809. g.globalCompositeOperation = h.Qaa() ? "lighter" : "source-over";
  25810. var m, n;
  25811. f = this.k.ke;
  25812. var p = this.k.Bl;
  25813. if (h.drawMode !== b.t.I0 && h.O) {
  25814. if (!h.O.R) {
  25815. a.restore();
  25816. return
  25817. }
  25818. h = h.O.Sa;
  25819. if (!h.width || !h.height) {
  25820. a.restore();
  25821. return
  25822. }
  25823. m = h;
  25824. for (e = 0; e < f; e++)
  25825. if (m = p[e], n = m.color.a / 255, 0 !== n) {
  25826. g.globalAlpha = n;
  25827. g.save();
  25828. g.translate(0 | m.zw.x, -(0 | m.zw.y));
  25829. var s = 4 * Math.floor(m.size / 4);
  25830. n = k.width;
  25831. var t = k.height;
  25832. g.scale(Math.max(1 / n * s, 1E-6), Math.max(1 / t * s, 1E-6));
  25833. m.rotation && g.rotate(b.Md(m.rotation));
  25834. m = m.mL ? this.Sm(h, m.color, this.XH) :
  25835. h;
  25836. g.drawImage(m, -(0 | n / 2), -(0 | t / 2));
  25837. g.restore()
  25838. }
  25839. } else
  25840. for (t = b.jl, e = 0; e < f; e++) m = p[e], k = 0 | 0.5 * m.size, n = m.color.a / 255, 0 !== n && (g.globalAlpha = n, g.save(), g.translate(0 | m.zw.x, -(0 | m.zw.y)), h.shapeType === b.t.K0 ? (m.rotation && g.rotate(b.Md(m.rotation)), t.q8(a, k, m.color)) : t.j8(a, k, m.color), g.restore());
  25841. a.restore();
  25842. b.Of++
  25843. };
  25844. a.Sm = b.fa.DB ? function(a, e, f) {
  25845. a.Uk || (a.Uk = document.createElement("canvas"), a.Uk.width = a.width, a.Uk.height = a.height);
  25846. return b.B.n.Lo(a, e, f, a.Uk)
  25847. } : function(a, e, f) {
  25848. var g = b.Xa.zC(a);
  25849. return g ? (g.Uk ||
  25850. (g.Uk = document.createElement("canvas"), g.Uk.width = a.width, g.Uk.height = a.height), b.B.n.Ko(a, g, e, f, g.Uk), g.Uk) : null
  25851. };
  25852. a.Rw = function(a) {
  25853. this.XH = a
  25854. };
  25855. a.WD = function(a) {
  25856. this.k.Mb = 200 > a ? a : 200
  25857. };
  25858. a.WB = function() {
  25859. var a = this.k,
  25860. e = a.Bl;
  25861. a.ke < e.length ? a = e[a.ke] : (a = new b.Bh, e.push(a));
  25862. return a
  25863. };
  25864. a.lp = function() {};
  25865. a.XF = function() {
  25866. return !0
  25867. };
  25868. a.vD = function() {};
  25869. a.ES = function() {
  25870. var a = this.k.H;
  25871. a.src = b.Td;
  25872. a.$ = b.Sd
  25873. };
  25874. a.kR = function() {};
  25875. a.wT = function(a, e) {
  25876. this.k.FG || (a.color.r += a.Zl.r * e, a.color.g += a.Zl.g * e, a.color.b += a.Zl.b * e, a.color.a +=
  25877. a.Zl.a * e, a.mL = !0)
  25878. }
  25879. })();
  25880. (function() {
  25881. b.t.p = function(a) {
  25882. b.e.p.call(this, a);
  25883. this.cb = !0;
  25884. this.Yc = [0, 0];
  25885. this.pd = [];
  25886. this.gb = [];
  25887. this.ce = null
  25888. };
  25889. var a = b.t.p.prototype = Object.create(b.e.p.prototype);
  25890. a.constructor = b.t.p;
  25891. a.oC = function() {};
  25892. a.zx = function() {};
  25893. a.vC = function() {};
  25894. a.TD = function() {};
  25895. a.si = function(a) {
  25896. var e = this.k;
  25897. if (e.qa !== a) {
  25898. var f = e.qa;
  25899. if (e.qa = a)
  25900. for (var g = e.Bl, h = 0; h < e.Mb; h++) g[h].atlasIndex = h;
  25901. a ? f || (e.qa.textureAtlas.g3(this.pd, e.atlasIndex), b.A.deleteBuffer(this.Yc[1])) : (this.XF(), this.fL(e.Mb), e.Oa(f.xa()), this.lp())
  25902. }
  25903. };
  25904. a.fL =
  25905. function(a) {
  25906. for (var e = this.gb, f = 0; f < a; ++f) {
  25907. var g = 6 * f,
  25908. h = 4 * f;
  25909. e[g + 0] = h + 0;
  25910. e[g + 1] = h + 1;
  25911. e[g + 2] = h + 2;
  25912. e[g + 5] = h + 1;
  25913. e[g + 4] = h + 2;
  25914. e[g + 3] = h + 3
  25915. }
  25916. };
  25917. a.Mpa = function(a, e) {
  25918. return a === e
  25919. };
  25920. a.GY = function(a, e) {
  25921. this.bE(a, e)
  25922. };
  25923. a.bE = function(a, e) {
  25924. var f = null,
  25925. g = this.k;
  25926. g.qa ? (f = g.qa.textureAtlas.quads[g.atlasIndex + a.atlasIndex], g.qa.textureAtlas.dirty = !0) : f = this.pd[g.ig];
  25927. var h, k, m;
  25928. g.Cb ? (g = 0 | a.color.r * a.color.a / 255, h = 0 | a.color.g * a.color.a / 255, k = 0 | a.color.b * a.color.a / 255) : (g = 0 | a.color.r, h = 0 | a.color.g, k = 0 | a.color.b);
  25929. m = 0 | a.color.a;
  25930. var n =
  25931. f.bl.colors,
  25932. p = f.br.colors,
  25933. s = f.tl.colors,
  25934. t = f.tr.colors;
  25935. n.r = p.r = s.r = t.r = g;
  25936. n.g = p.g = s.g = t.g = h;
  25937. n.b = p.b = s.b = t.b = k;
  25938. n.a = p.a = s.a = t.a = m;
  25939. g = a.size / 2;
  25940. a.rotation ? (h = -g, k = -g, m = e.x, n = e.y, s = -b.Md(a.rotation), p = Math.cos(s), s = Math.sin(s), f.bl.vertices.x = h * p - k * s + m, f.bl.vertices.y = h * s + k * p + n, f.br.vertices.x = g * p - k * s + m, f.br.vertices.y = g * s + k * p + n, f.tl.vertices.x = h * p - g * s + m, f.tl.vertices.y = h * s + g * p + n, f.tr.vertices.x = g * p - g * s + m, f.tr.vertices.y = g * s + g * p + n) : (f.bl.vertices.x = e.x - g, f.bl.vertices.y = e.y - g, f.br.vertices.x = e.x + g, f.br.vertices.y =
  25941. e.y - g, f.tl.vertices.x = e.x - g, f.tl.vertices.y = e.y + g, f.tr.vertices.x = e.x + g, f.tr.vertices.y = e.y + g)
  25942. };
  25943. a.Eb = function(a) {
  25944. var e = this.k;
  25945. e.O && (a = a || b.A, this.za.jc(), this.za.Ug(this.Mc), b.Rf(e.O), b.GV(e.H.src, e.H.$), b.hd(b.Cq), a.bindBuffer(a.ARRAY_BUFFER, this.Yc[0]), a.vertexAttribPointer(b.Ib, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(b.cf, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.vertexAttribPointer(b.re, 2, a.FLOAT, !1, 24, 16), a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Yc[1]), a.drawElements(a.TRIANGLES, 6 * e.ig, a.UNSIGNED_SHORT,
  25946. 0))
  25947. };
  25948. a.Rw = function(a) {
  25949. var e = this.k,
  25950. f = e.texture,
  25951. g = b.Db(),
  25952. h = b.rect(a.x * g, a.y * g, a.width * g, a.height * g),
  25953. g = a.width,
  25954. k = a.height;
  25955. f && (g = f.pixelsWidth, k = f.pixelsHeight);
  25956. b.Cy ? (f = (2 * h.x + 1) / (2 * g), a = (2 * h.y + 1) / (2 * k), g = f + (2 * h.width - 2) / (2 * g), h = a + (2 * h.height - 2) / (2 * k)) : (f = h.x / g, a = h.y / k, g = f + h.width / g, h = a + h.height / k);
  25957. k = h;
  25958. h = a;
  25959. a = k;
  25960. var m = 0,
  25961. n = 0;
  25962. e.qa ? (k = e.qa.textureAtlas.quads, m = e.atlasIndex, n = e.atlasIndex + e.Mb) : (k = this.pd, m = 0, n = e.Mb);
  25963. for (e = m; e < n; e++) k[e] || (k[e] = b.XO()), m = k[e], m.bl.texCoords.u = f, m.bl.texCoords.v = a, m.br.texCoords.u =
  25964. g, m.br.texCoords.v = a, m.tl.texCoords.u = f, m.tl.texCoords.v = h, m.tr.texCoords.u = g, m.tr.texCoords.v = h
  25965. };
  25966. a.WD = function(a) {
  25967. var e = this.k;
  25968. if (a > e.Bz) {
  25969. var f = b.Zb.BYTES_PER_ELEMENT;
  25970. this.gb = new Uint16Array(6 * a);
  25971. var g = new ArrayBuffer(a * f),
  25972. h = e.Bl;
  25973. h.length = 0;
  25974. for (var k = this.pd, m = k.length = 0; m < a; m++) h[m] = new b.Bh, k[m] = new b.Zb(null, null, null, null, g, m * f);
  25975. e.Bz = a;
  25976. e.Mb = a;
  25977. if (e.qa)
  25978. for (f = 0; f < a; f++) h[f].atlasIndex = f;
  25979. this.ce = g;
  25980. this.fL(a);
  25981. this.lp();
  25982. e.O && this.Rw(b.rect(0, 0, e.O.width, e.O.height))
  25983. } else e.Mb = a;
  25984. e.Cca()
  25985. };
  25986. a.WB = function() {
  25987. var a =
  25988. this.k;
  25989. return a.Bl[a.ke]
  25990. };
  25991. a.lp = function() {
  25992. var a = b.A;
  25993. this.Yc[0] = a.createBuffer();
  25994. a.bindBuffer(a.ARRAY_BUFFER, this.Yc[0]);
  25995. a.bufferData(a.ARRAY_BUFFER, this.ce, a.DYNAMIC_DRAW);
  25996. this.Yc[1] = a.createBuffer();
  25997. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Yc[1]);
  25998. a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.gb, a.STATIC_DRAW)
  25999. };
  26000. a.XF = function() {
  26001. var a = this.k;
  26002. if (a.qa) return b.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"), !1;
  26003. var e = b.Zb.BYTES_PER_ELEMENT,
  26004. a = a.Mb,
  26005. f = this.pd;
  26006. f.length =
  26007. 0;
  26008. this.gb = new Uint16Array(6 * a);
  26009. for (var g = new ArrayBuffer(e * a), h = 0; h < a; h++) f[h] = new b.Zb(null, null, null, null, g, h * e);
  26010. if (!f || !this.gb) return b.log("cocos2d: Particle system: not enough memory"), !1;
  26011. this.ce = g;
  26012. return !0
  26013. };
  26014. a.vD = function() {
  26015. var a = b.A;
  26016. a.bindBuffer(a.ARRAY_BUFFER, this.Yc[0]);
  26017. a.bufferData(a.ARRAY_BUFFER, this.ce, a.DYNAMIC_DRAW)
  26018. };
  26019. a.ES = function() {
  26020. var a = this.k.H;
  26021. this.O && !this.O.Jk() ? (a.src = b.SRC_ALPHA, a.$ = b.ONE_MINUS_SRC_ALPHA) : (a.src = b.Td, a.$ = b.Sd)
  26022. };
  26023. a.kR = function(a) {
  26024. if (!this.XF()) return !1;
  26025. this.fL(a);
  26026. this.lp();
  26027. this.za = b.le.Dc(b.Sj)
  26028. };
  26029. a.wT = function(a, e) {
  26030. a.color.r += a.Zl.r * e;
  26031. a.color.g += a.Zl.g * e;
  26032. a.color.b += a.Zl.b * e;
  26033. a.color.a += a.Zl.a * e;
  26034. a.mL = !0
  26035. }
  26036. })();
  26037. b.HN = b.t.extend({
  26038. ctor: function() {
  26039. b.t.prototype.ctor.call(this, b.W === b.ya ? 300 : 150)
  26040. },
  26041. pc: function(a) {
  26042. return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, 0)), this.mh(0), this.nh(0), this.Uf(60), this.qh(20), this.qi(90), this.ri(10), a = b.P.Fa(), this.I(a.width / 2, 60), this.yi(b.d(40, 20)), this.wi(3), this.xi(0.25), this.Ai(54), this.Bi(10), this.vi(b.t.Eh), this.ti(this.Mb / this.Sf), this.Vf(b.color(194, 64, 31, 255)), this.rh(b.color(0, 0, 0, 0)), this.Tf(b.color(0, 0, 0, 255)), this.kh(b.color(0,
  26043. 0, 0, 0)), this.Ej(!0), !0) : !1
  26044. }
  26045. });
  26046. b.HN.create = function() {
  26047. return new b.HN
  26048. };
  26049. b.IN = b.t.extend({
  26050. ctor: function() {
  26051. b.t.prototype.ctor.call(this, b.W === b.ya ? 1500 : 150)
  26052. },
  26053. pc: function(a) {
  26054. return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, -90)), this.mh(0), this.nh(0), this.Uf(180), this.qh(50), a = b.P.Fa(), this.I(a.width / 2, a.height / 2), this.qi(90), this.ri(20), this.wi(3.5), this.xi(1), this.ti(this.Mb / this.Sf), this.Vf(b.color(128, 128, 128, 255)), this.rh(b.color(128, 128, 128, 255)), this.Tf(b.color(26, 26, 26, 51)), this.kh(b.color(26, 26, 26, 51)), this.Ai(8), this.Bi(2), this.vi(b.t.Eh),
  26055. this.Ej(!1), !0) : !1
  26056. }
  26057. });
  26058. b.IN.create = function() {
  26059. return new b.IN
  26060. };
  26061. b.QN = b.t.extend({
  26062. ctor: function() {
  26063. b.t.prototype.ctor.call(this, b.W === b.ya ? 350 : 150)
  26064. },
  26065. pc: function(a) {
  26066. return b.t.prototype.pc.call(this, a) ? (this.Ej(!0), this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, 0)), this.mh(0), this.nh(0), this.Uf(20), this.qh(5), this.qi(90), this.ri(360), a = b.P.Fa(), this.I(a.width / 2, a.height / 2), this.yi(b.d(0, 0)), this.wi(1), this.xi(0.5), this.Ai(30), this.Bi(10), this.vi(b.t.Eh), this.ti(this.Mb / this.Sf), this.Vf(b.color(194, 64, 31, 255)), this.rh(b.color(0, 0, 0, 0)), this.Tf(b.color(0, 0, 0, 255)),
  26067. this.kh(b.color(0, 0, 0, 0)), !0) : !1
  26068. }
  26069. });
  26070. b.QN.create = function() {
  26071. return new b.QN
  26072. };
  26073. b.KN = b.t.extend({
  26074. ctor: function() {
  26075. b.t.prototype.ctor.call(this, b.W === b.ya ? 200 : 100)
  26076. },
  26077. pc: function(a) {
  26078. return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, 0)), this.Uf(60), this.qh(10), this.mh(-80), this.nh(0), this.qm(80), this.rm(0), this.qi(90), this.ri(360), a = b.P.Fa(), this.I(a.width / 2, a.height / 2), this.yi(b.d(0, 0)), this.wi(4), this.xi(1), this.Ai(37), this.Bi(10), this.vi(b.t.Eh), this.ti(this.Mb / this.Sf), this.Vf(b.color(31, 64, 194, 255)), this.rh(b.color(0, 0, 0, 0)), this.Tf(b.color(0,
  26079. 0, 0, 255)), this.kh(b.color(0, 0, 0, 0)), this.Ej(!0), !0) : !1
  26080. }
  26081. });
  26082. b.KN.create = function() {
  26083. return new b.KN
  26084. };
  26085. b.JN = b.t.extend({
  26086. ctor: function() {
  26087. b.t.prototype.ctor.call(this, b.W === b.ya ? 250 : 100)
  26088. },
  26089. pc: function(a) {
  26090. return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, 0)), this.Uf(80), this.qh(10), this.mh(-60), this.nh(0), this.qm(15), this.rm(0), this.qi(90), this.ri(360), a = b.P.Fa(), this.I(a.width / 2, a.height / 2), this.yi(b.d(0, 0)), this.wi(4), this.xi(1), this.Ai(30), this.Bi(10), this.vi(b.t.Eh), this.ti(this.Mb / this.Sf), this.Vf(b.color(128, 128, 128, 255)), this.rh(b.color(128, 128, 128, 128)), this.Tf(b.color(0,
  26091. 0, 0, 255)), this.kh(b.color(0, 0, 0, 0)), this.Ej(!0), !0) : !1
  26092. }
  26093. });
  26094. b.JN.create = function() {
  26095. return new b.JN
  26096. };
  26097. b.LN = b.t.extend({
  26098. ctor: function() {
  26099. b.t.prototype.ctor.call(this, b.W === b.ya ? 150 : 100)
  26100. },
  26101. pc: function(a) {
  26102. return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(-200, 200)), this.Uf(15), this.qh(5), this.mh(0), this.nh(0), this.qm(0), this.rm(0), this.qi(90), this.ri(360), a = b.P.Fa(), this.I(a.width / 2, a.height / 2), this.yi(b.d(0, 0)), this.wi(2), this.xi(1), this.Ai(60), this.Bi(10), this.vi(b.t.Eh), this.ti(this.Mb / this.Sf), this.Vf(b.color(51, 102, 179)), this.rh(b.color(0, 0, 51, 26)), this.Tf(b.color(0,
  26103. 0, 0, 255)), this.kh(b.color(0, 0, 0, 0)), this.Ej(!0), !0) : !1
  26104. }
  26105. });
  26106. b.LN.create = function() {
  26107. return new b.LN
  26108. };
  26109. b.PN = b.t.extend({
  26110. ctor: function() {
  26111. b.t.prototype.ctor.call(this, b.W === b.ya ? 500 : 100)
  26112. },
  26113. pc: function(a) {
  26114. return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, 0)), this.Uf(150), this.qh(0), this.mh(-380), this.nh(0), this.qm(45), this.rm(0), this.qi(90), this.ri(0), a = b.P.Fa(), this.I(a.width / 2, a.height / 2), this.yi(b.d(0, 0)), this.wi(12), this.xi(0), this.Ai(20), this.Bi(0), this.vi(b.t.Eh), this.ti(this.Mb / this.Sf), this.Vf(b.color(128, 128, 128, 255)), this.rh(b.color(128, 128, 128, 0)), this.Tf(b.color(128,
  26115. 128, 128, 255)), this.kh(b.color(128, 128, 128, 0)), this.Ej(!1), !0) : !1
  26116. }
  26117. });
  26118. b.PN.create = function() {
  26119. return new b.PN
  26120. };
  26121. b.GN = b.t.extend({
  26122. ctor: function() {
  26123. b.t.prototype.ctor.call(this, b.W === b.ya ? 700 : 300)
  26124. },
  26125. pc: function(a) {
  26126. return b.t.prototype.pc.call(this, a) ? (this.jh(0.1), this.ui(b.t.Ab), this.lh(b.d(0, 0)), this.Uf(70), this.qh(40), this.mh(0), this.nh(0), this.qm(0), this.rm(0), this.qi(90), this.ri(360), a = b.P.Fa(), this.I(a.width / 2, a.height / 2), this.yi(b.d(0, 0)), this.wi(5), this.xi(2), this.Ai(15), this.Bi(10), this.vi(b.t.Eh), this.ti(this.Mb / this.Gs()), this.Vf(b.color(179, 26, 51, 255)), this.rh(b.color(128, 128, 128, 0)), this.Tf(b.color(128,
  26127. 128, 128, 0)), this.kh(b.color(128, 128, 128, 0)), this.Ej(!1), !0) : !1
  26128. }
  26129. });
  26130. b.GN.create = function() {
  26131. return new b.GN
  26132. };
  26133. b.NN = b.t.extend({
  26134. ctor: function() {
  26135. b.t.prototype.ctor.call(this, b.W === b.ya ? 200 : 100)
  26136. },
  26137. pc: function(a) {
  26138. return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, 0)), this.mh(0), this.nh(0), this.Uf(25), this.qh(10), this.qi(90), this.ri(5), a = b.P.Fa(), this.I(a.width / 2, 0), this.yi(b.d(20, 0)), this.wi(4), this.xi(1), this.Ai(60), this.Bi(10), this.vi(b.t.Eh), this.ti(this.Mb / this.Sf), this.Vf(b.color(204, 204, 204, 255)), this.rh(b.color(5, 5, 5, 0)), this.Tf(b.color(0, 0, 0, 255)), this.kh(b.color(0, 0, 0,
  26139. 0)), this.Ej(!1), !0) : !1
  26140. }
  26141. });
  26142. b.NN.create = function() {
  26143. return new b.NN
  26144. };
  26145. b.ON = b.t.extend({
  26146. ctor: function() {
  26147. b.t.prototype.ctor.call(this, b.W === b.ya ? 700 : 250)
  26148. },
  26149. pc: function(a) {
  26150. return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, -1)), this.Uf(5), this.qh(1), this.mh(0), this.nh(1), this.qm(0), this.rm(1), a = b.P.Fa(), this.I(a.width / 2, a.height + 10), this.yi(b.d(a.width / 2, 0)), this.qi(-90), this.ri(5), this.wi(45), this.xi(15), this.Ai(10), this.Bi(5), this.vi(b.t.Eh), this.ti(10), this.Vf(b.color(255, 255, 255, 255)), this.rh(b.color(0, 0, 0, 0)), this.Tf(b.color(255, 255,
  26151. 255, 0)), this.kh(b.color(0, 0, 0, 0)), this.Ej(!1), !0) : !1
  26152. }
  26153. });
  26154. b.ON.create = function() {
  26155. return new b.ON
  26156. };
  26157. b.MN = b.t.extend({
  26158. ctor: function() {
  26159. b.t.prototype.ctor.call(this, b.W === b.ya ? 1E3 : 300)
  26160. },
  26161. pc: function(a) {
  26162. return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(10, -10)), this.mh(0), this.nh(1), this.qm(0), this.rm(1), this.Uf(130), this.qh(30), this.qi(-90), this.ri(5), a = b.P.Fa(), this.I(a.width / 2, a.height), this.yi(b.d(a.width / 2, 0)), this.wi(4.5), this.xi(0), this.Ai(4), this.Bi(2), this.vi(b.t.Eh), this.ti(20), this.Vf(b.color(179, 204, 255, 255)), this.rh(b.color(0, 0, 0, 0)), this.Tf(b.color(179, 204,
  26163. 255, 128)), this.kh(b.color(0, 0, 0, 0)), this.Ej(!1), !0) : !1
  26164. }
  26165. });
  26166. b.MN.create = function() {
  26167. return new b.MN
  26168. };
  26169. b.Aha = 500;
  26170. b.Hi = b.e.extend({
  26171. textureAtlas: null,
  26172. H: null,
  26173. Ma: "ParticleBatchNode",
  26174. ctor: function(a, d) {
  26175. b.e.prototype.ctor.call(this);
  26176. this.H = {
  26177. src: b.Td,
  26178. $: b.Sd
  26179. };
  26180. b.Je(a) ? this.T(a, d) : a instanceof b.ja && this.ea(a, d)
  26181. },
  26182. Ic: function() {
  26183. return b.W === b.Jb ? new b.Hi.n(this) : new b.Hi.p(this)
  26184. },
  26185. ea: function(a, d) {
  26186. this.textureAtlas = new b.Tj;
  26187. this.textureAtlas.ea(a, d);
  26188. this.m.length = 0;
  26189. this.f.jR();
  26190. return !0
  26191. },
  26192. em: function(a, d) {
  26193. var e = b.Xa.Vc(a);
  26194. return this.ea(e, d)
  26195. },
  26196. T: function(a, d) {
  26197. var e = b.Xa.Vc(a);
  26198. return this.ea(e, d)
  26199. },
  26200. C: function(a, d, e) {
  26201. if (!a) throw "cc.ParticleBatchNode.addChild() : child should be non-null";
  26202. if (!(a instanceof b.t)) throw "cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children";
  26203. d = null == d ? a.zIndex : d;
  26204. e = null == e ? a.tag : e;
  26205. if (a.xa() !== this.textureAtlas.texture) throw "cc.ParticleSystem.addChild() : the child is not using the same texture id";
  26206. var f = a.Gk();
  26207. if (0 === this.m.length) this.sg(f);
  26208. else if (f.src !== this.H.src || f.$ !== this.H.$) {
  26209. b.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function");
  26210. return
  26211. }
  26212. d = this.VF(a, d, e);
  26213. e = 0;
  26214. 0 !== d ? (d = this.m[d -
  26215. 1], e = d.Es() + d.Mb) : e = 0;
  26216. this.lL(a, e);
  26217. a.si(this)
  26218. },
  26219. lL: function(a, d) {
  26220. var e = a.Mb,
  26221. f = this.textureAtlas,
  26222. g = f.totalQuads;
  26223. a.NL(d);
  26224. g + e > f.se && (this.u4(g + e), f.YU(f.se - e, e));
  26225. a.Es() + e !== g && f.uW(d, d + e);
  26226. f.NV(e);
  26227. this.oJ()
  26228. },
  26229. removeChild: function(a, d) {
  26230. if (null != a) {
  26231. if (!(a instanceof b.t)) throw "cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children";
  26232. if (-1 === this.m.indexOf(a)) b.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it");
  26233. else {
  26234. b.e.prototype.removeChild.call(this,
  26235. a, d);
  26236. var e = this.textureAtlas;
  26237. e.vca(a.Es(), a.Mb);
  26238. e.YU(e.totalQuads, a.Mb);
  26239. a.si(null);
  26240. this.oJ()
  26241. }
  26242. }
  26243. },
  26244. lt: function(a, d) {
  26245. if (!a) throw "cc.ParticleBatchNode.reorderChild(): child should be non-null";
  26246. if (!(a instanceof b.t)) throw "cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children";
  26247. if (-1 === this.m.indexOf(a)) b.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch");
  26248. else if (d !== a.zIndex) {
  26249. if (1 < this.m.length) {
  26250. var e = this.K3(a, d);
  26251. if (e.yW !== e.vW) {
  26252. this.m.splice(e.yW,
  26253. 1);
  26254. this.m.splice(e.vW, 0, a);
  26255. e = a.Es();
  26256. this.oJ();
  26257. for (var f = 0, g = this.m, h = 0; h < g.length; h++)
  26258. if (g[h] === a) {
  26259. f = a.Es();
  26260. break
  26261. }
  26262. this.textureAtlas.uW(e, a.Mb, f);
  26263. a.nfa()
  26264. }
  26265. }
  26266. a.vB(d)
  26267. }
  26268. },
  26269. rca: function(a, d) {
  26270. this.removeChild(this.m[V], d)
  26271. },
  26272. pi: function(a) {
  26273. for (var d = this.m, e = 0; e < d.length; e++) d[e].si(null);
  26274. b.e.prototype.pi.call(this, a);
  26275. this.textureAtlas.rx()
  26276. },
  26277. f8: function(a) {
  26278. a = this.textureAtlas.quads[a];
  26279. a.br.vertices.x = a.br.vertices.y = a.tr.vertices.x = a.tr.vertices.y = a.tl.vertices.x = a.tl.vertices.y = a.bl.vertices.x = a.bl.vertices.y =
  26280. 0;
  26281. this.textureAtlas.sn(!0)
  26282. },
  26283. xa: function() {
  26284. return this.textureAtlas.texture
  26285. },
  26286. Oa: function(a) {
  26287. this.textureAtlas.texture = a;
  26288. var d = this.H;
  26289. a && !a.Jk() && d.src === b.Td && d.$ === b.Sd && (d.src = b.SRC_ALPHA, d.$ = b.ONE_MINUS_SRC_ALPHA)
  26290. },
  26291. sg: function(a, d) {
  26292. void 0 === d ? (this.H.src = a.src, this.H.$ = a.$) : (this.H.src = a, this.H.src = d)
  26293. },
  26294. Gk: function() {
  26295. return new b.Gc(this.H.src, this.H.$)
  26296. },
  26297. oJ: function() {
  26298. for (var a = 0, d = this.m, e = 0; e < d.length; e++) {
  26299. var f = d[e];
  26300. f.NL(a);
  26301. a += f.Mb
  26302. }
  26303. },
  26304. u4: function(a) {
  26305. b.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from [" +
  26306. this.textureAtlas.se + "] to [" + a + "].");
  26307. this.textureAtlas.KL(a) || b.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas")
  26308. },
  26309. O5: function(a) {
  26310. for (var d = this.m, e = d.length, f = 0; f < e; f++)
  26311. if (d[f].zIndex > a) return f;
  26312. return e
  26313. },
  26314. K3: function(a, d) {
  26315. for (var e = !1, f = !1, g = 0, h = 0, k = 0, m = this.m, n = m.length, p = 0; p < n; p++) {
  26316. var s = m[p];
  26317. if (s.zIndex > d && !f && (g = p, f = !0, e && f)) break;
  26318. if (a === s && (h = p, e = !0, f || (k = -1), e && f)) break
  26319. }
  26320. f || (g = n);
  26321. return {
  26322. vW: g + k,
  26323. yW: h
  26324. }
  26325. },
  26326. VF: function(a, d, e) {
  26327. if (!a) throw "cc.ParticleBatchNode._addChildHelper(): child should be non-null";
  26328. if (a.parent) return b.log("cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again"), null;
  26329. this.m || (this.m = []);
  26330. var f = this.O5(d);
  26331. this.m.splice(f, 0, a);
  26332. a.tag = e;
  26333. a.vB(d);
  26334. a.parent = this;
  26335. this.Sg && (a.aa(), a.wj());
  26336. return f
  26337. },
  26338. bi: function() {
  26339. this.textureAtlas.texture.Jk() || (this.H.src = b.SRC_ALPHA, this.H.$ = b.ONE_MINUS_SRC_ALPHA)
  26340. },
  26341. bm: function() {
  26342. return this.textureAtlas
  26343. },
  26344. vt: function(a) {
  26345. this.textureAtlas = a
  26346. }
  26347. });
  26348. r = b.Hi.prototype;
  26349. b.i(r, "texture", r.xa, r.Oa);
  26350. b.Hi.create = function(a, d) {
  26351. return new b.Hi(a, d)
  26352. };
  26353. (function() {
  26354. b.Hi.n = function(a) {
  26355. b.e.n.call(this, a);
  26356. this.cb = !1
  26357. };
  26358. var a = b.Hi.n.prototype = Object.create(b.e.n.prototype);
  26359. a.constructor = b.Hi.n;
  26360. a.jR = function() {}
  26361. })();
  26362. (function() {
  26363. b.Hi.p = function(a) {
  26364. b.e.p.call(this, a);
  26365. this.cb = !0
  26366. };
  26367. var a = b.Hi.p.prototype = Object.create(b.e.p.prototype);
  26368. a.constructor = b.Hi.p;
  26369. a.Eb = function() {
  26370. var a = this.k;
  26371. 0 !== a.textureAtlas.totalQuads && (this.za.jc(), this.za.Ug(this.Mc), b.GV(a.H.src, a.H.$), a.textureAtlas.MU())
  26372. };
  26373. a.jR = function() {
  26374. this.za = b.le.Dc(b.Sj)
  26375. };
  26376. a.Q = function(a) {
  26377. if (this.k.Ta) {
  26378. var e = b.Ob;
  26379. e.stack.push(e.top);
  26380. this.cd(a);
  26381. e.top = this.Mc;
  26382. b.oa.Ec(this);
  26383. this.G = 0;
  26384. b.Ys()
  26385. }
  26386. }
  26387. })();
  26388. b.Oga = function(a, d, e) {
  26389. this.Ak = a || b.rect(0, 0, 0, 0);
  26390. this.end = d || b.rect(0, 0, 0, 0);
  26391. this.duration = e || 0
  26392. };
  26393. b.Nga = b.sa.extend({
  26394. ctor: function() {
  26395. b.Kk.PT(this)
  26396. },
  26397. xD: function() {
  26398. b.Kk.xD(this)
  26399. },
  26400. o7: function() {
  26401. return b.Kk.YT(this)
  26402. },
  26403. GU: function() {
  26404. return b.Kk.FU(this)
  26405. },
  26406. TJ: function() {
  26407. return !1
  26408. },
  26409. c8: function() {},
  26410. UJ: function() {
  26411. return !1
  26412. },
  26413. d8: function() {},
  26414. dW: function() {},
  26415. CU: function() {},
  26416. zK: function() {
  26417. return ""
  26418. },
  26419. pba: function() {},
  26420. nba: function() {},
  26421. oba: function() {},
  26422. mba: function() {}
  26423. });
  26424. b.HE = b.sa.extend({
  26425. Kc: null,
  26426. lb: null,
  26427. hl: "",
  26428. Ro: null,
  26429. ctor: function() {
  26430. this.lb = new b.HE.n_;
  26431. this.Ro = b.d(0, 0)
  26432. },
  26433. T: function() {
  26434. if (!b.fa.Mk) {
  26435. this.Kc = b.Rb("#imeDispatcherInput");
  26436. this.Kc || (this.Kc = b.PY(), this.Kc.setAttribute("type", "text"), this.Kc.setAttribute("id", "imeDispatcherInput"), this.Kc.resize(0, 0), this.Kc.xY(0, 0), this.Kc.style.opacity = "0", this.Kc.style.fontSize = "1px", this.Kc.setAttribute("tabindex", 2), this.Kc.style.position = "absolute", this.Kc.style.top = 0, this.Kc.style.left = 0, document.body.appendChild(this.Kc));
  26437. var a = this;
  26438. b.$a(this.Kc, "input", function() {
  26439. a.hI(a.Kc.value)
  26440. }, !1);
  26441. b.$a(this.Kc, "keydown", function(d) {
  26442. d.keyCode === b.ku.Mea ? (d.stopPropagation(), d.preventDefault()) : d.keyCode === b.ku.QU && (a.yw("\n", 1), d.stopPropagation(), d.preventDefault())
  26443. }, !1);
  26444. /msie/i.test(navigator.userAgent) && b.$a(this.Kc, "keyup", function(d) {
  26445. d.keyCode === b.ku.ZT && a.hI(a.Kc.value)
  26446. }, !1);
  26447. b.$a(window, "mousedown", function(d) {
  26448. var e = d.pageY || 0;
  26449. a.Ro.x = d.pageX || 0;
  26450. a.Ro.y = e
  26451. }, !1)
  26452. }
  26453. },
  26454. hI: function(a) {
  26455. var d, e;
  26456. d = this.hl.length < a.length ? this.hl.length :
  26457. a.length;
  26458. for (e = 0; e < d && a[e] === this.hl[e]; e++);
  26459. var f = this.hl.length - e,
  26460. g = a.length - e;
  26461. for (d = 0; d < f; d++) this.HU();
  26462. for (d = 0; d < g; d++) this.yw(a[e + d], 1);
  26463. this.hl = a
  26464. },
  26465. yw: function(a, d) {
  26466. !this.lb || !a || 0 >= d || this.lb.ef && this.lb.ef.dW(a, d)
  26467. },
  26468. HU: function() {
  26469. this.lb && this.lb.ef && this.lb.ef.CU()
  26470. },
  26471. zK: function() {
  26472. if (this.lb && this.lb.ef) {
  26473. var a = this.lb.ef.zK();
  26474. return a ? a : ""
  26475. }
  26476. return ""
  26477. },
  26478. dla: function() {
  26479. if (this.lb)
  26480. for (var a = 0; a < this.lb.Kh.length; a++);
  26481. },
  26482. bla: function() {
  26483. if (this.lb)
  26484. for (var a = 0; a < this.lb.Kh.length; a++);
  26485. },
  26486. cla: function() {
  26487. if (this.lb)
  26488. for (var a =
  26489. 0; a < this.lb.Kh.length; a++);
  26490. },
  26491. ala: function() {
  26492. if (this.lb)
  26493. for (var a = 0; a < this.lb.Kh.length; a++);
  26494. },
  26495. PT: function(a) {
  26496. a && this.lb && (-1 < this.lb.Kh.indexOf(a) || this.lb.Kh.splice(0, 0, a))
  26497. },
  26498. YT: function(a) {
  26499. if (!this.lb || !a || -1 === this.lb.Kh.indexOf(a)) return !1;
  26500. if (this.lb.ef) {
  26501. if (!this.lb.ef.UJ() || !a.TJ()) return !1;
  26502. this.lb.ef = null;
  26503. this.LQ(a);
  26504. return !0
  26505. }
  26506. if (!a.TJ()) return !1;
  26507. this.LQ(a);
  26508. return !0
  26509. },
  26510. LQ: function(a) {
  26511. b.fa.Mk ? (this.lb.ef = a, this.hl = a.string || "", a = prompt(a.O$ ? a.jJ : "please enter your word:", this.hl), null != a && this.hI(a),
  26512. this.yw("\n", 1)) : (this.lb.ef = a, this.hl = a.string || "", this.Kc.focus(), this.Kc.value = this.hl, this.o3())
  26513. },
  26514. o3: function() {
  26515. /msie/i.test(navigator.userAgent) ? (this.Kc.style.left = this.Ro.x + "px", this.Kc.style.top = this.Ro.y + "px") : this.Kc.xY(this.Ro.x, this.Ro.y)
  26516. },
  26517. FU: function(a) {
  26518. if (!this.lb || !a || this.lb.ef !== a || !a.UJ()) return !1;
  26519. this.lb.ef = null;
  26520. b.ab.focus();
  26521. return !0
  26522. },
  26523. xD: function(a) {
  26524. this.lb && a && -1 !== this.lb.Kh.indexOf(a) && (this.lb.ef && a === this.lb.ef && (this.lb.ef = null), b.ge(this.lb.Kh, a))
  26525. },
  26526. csa: function(a) {
  26527. 32 > a ? a ===
  26528. b.ku.ZT ? this.HU() : a === b.ku.QU && this.yw("\n", 1) : 255 > a && this.yw(String.fromCharCode(a), 1)
  26529. }
  26530. });
  26531. b.HE.n_ = b.sa.extend({
  26532. ef: null,
  26533. Kh: null,
  26534. ctor: function() {
  26535. this.Kh = []
  26536. },
  26537. mma: function(a) {
  26538. for (var d = 0; d < this.Kh.length; d++)
  26539. if (this.Kh[d] === a) return d;
  26540. return null
  26541. }
  26542. });
  26543. b.Kk = new b.HE;
  26544. document.body ? b.Kk.T() : b.$a(window, "load", function() {
  26545. b.Kk.T()
  26546. }, !1);
  26547. b.lia = b.sa.extend({
  26548. tra: function() {
  26549. return !1
  26550. },
  26551. vra: function() {
  26552. return !1
  26553. },
  26554. wra: function() {
  26555. return !1
  26556. },
  26557. ura: function() {
  26558. return !1
  26559. },
  26560. pra: function() {
  26561. return !1
  26562. }
  26563. });
  26564. b.EF = b.M.extend({
  26565. delegate: null,
  26566. Bk: null,
  26567. Do: null,
  26568. nja: null,
  26569. Lg: "",
  26570. bp: "",
  26571. Nz: 0,
  26572. Ma: "TextFieldTTF",
  26573. ctor: function(a, d, e, f, g) {
  26574. this.Bk = b.color(127, 127, 127);
  26575. this.Do = b.color(255, 255, 255, 255);
  26576. b.Kk.PT(this);
  26577. b.M.prototype.ctor.call(this);
  26578. void 0 !== g ? (this.xaa("", d, e, f, g), a && this.Fx(a)) : void 0 === f && void 0 !== e && (this.je("", d, e), a && this.Fx(a))
  26579. },
  26580. Ew: function() {
  26581. return this.delegate
  26582. },
  26583. st: function(a) {
  26584. this.delegate = a
  26585. },
  26586. d9: function() {
  26587. return this.Nz
  26588. },
  26589. Oma: function() {
  26590. return b.color(this.Bk)
  26591. },
  26592. Cta: function(a) {
  26593. this.Bk.r = a.r;
  26594. this.Bk.g =
  26595. a.g;
  26596. this.Bk.b = a.b;
  26597. this.Bk.a = b.sj(a.a) ? 255 : a.a;
  26598. this.Lg.length || this.X(this.Bk)
  26599. },
  26600. Yua: function(a) {
  26601. this.Do.r = a.r;
  26602. this.Do.g = a.g;
  26603. this.Do.b = a.b;
  26604. this.Do.a = b.sj(a.a) ? 255 : a.a;
  26605. this.Lg.length && this.X(this.Do)
  26606. },
  26607. xaa: function(a, d, e, f, g) {
  26608. switch (arguments.length) {
  26609. case 5:
  26610. return a && this.Fx(a), this.je(this.bp, f, g, d, e);
  26611. case 3:
  26612. return a && this.Fx(a), this.je(this.bp, arguments[1], arguments[2]);
  26613. default:
  26614. throw "Argument must be non-nil ";
  26615. }
  26616. },
  26617. Wc: function(a) {
  26618. this.Lg = (a = String(a)) || "";
  26619. this.Lg.length ? (b.M.prototype.Wc.call(this, this.Lg),
  26620. this.X(this.Do)) : (b.M.prototype.Wc.call(this, this.bp), this.X(this.Bk));
  26621. b.W === b.Jb && this.f.uk();
  26622. this.Nz = this.Lg.length
  26623. },
  26624. am: function() {
  26625. return this.Lg
  26626. },
  26627. Fx: function(a) {
  26628. this.bp = a || "";
  26629. this.Lg.length || (b.M.prototype.Wc.call(this, this.bp), this.X(this.Bk))
  26630. },
  26631. o$: function() {
  26632. return this.bp
  26633. },
  26634. KU: function() {},
  26635. Q: function(a) {
  26636. this._super(a)
  26637. },
  26638. o7: function() {
  26639. return b.Kk.YT(this)
  26640. },
  26641. GU: function() {
  26642. return b.Kk.FU(this)
  26643. },
  26644. TJ: function() {
  26645. return !0
  26646. },
  26647. c8: function() {},
  26648. UJ: function() {
  26649. return !0
  26650. },
  26651. d8: function() {},
  26652. CU: function() {
  26653. var a = this.Lg.length;
  26654. 0 !== a && (1 >= a ? (this.Lg = "", this.Nz = 0, b.M.prototype.Wc.call(this, this.bp), this.X(this.Bk)) : this.string = this.Lg.substring(0, a - 1))
  26655. },
  26656. xD: function() {
  26657. b.Kk.xD(this)
  26658. },
  26659. jJ: "please enter your word:",
  26660. gva: function(a) {
  26661. null != a && (this.jJ = a)
  26662. },
  26663. O$: function() {
  26664. return this.jJ
  26665. },
  26666. dW: function(a) {
  26667. var d = a;
  26668. a = d.indexOf("\n"); - 1 < a && (d = d.substring(0, a));
  26669. 0 < d.length && (d = this.Lg + d, this.Nz = d.length, this.string = d); - 1 !== a && this.GU()
  26670. },
  26671. zK: function() {
  26672. return this.Lg
  26673. },
  26674. pba: function() {},
  26675. nba: function() {},
  26676. oba: function() {},
  26677. mba: function() {}
  26678. });
  26679. r = b.EF.prototype;
  26680. b.i(r, "charCount", r.d9);
  26681. b.i(r, "placeHolder", r.o$, r.Fx);
  26682. b.EF.create = function(a, d, e, f, g) {
  26683. return new b.EF(a, d, e, f, g)
  26684. };
  26685. b.nA = b.m_;
  26686. b.kv = "Arial";
  26687. b.ZQ = !1;
  26688. b.Xc = b.e.extend({
  26689. Fd: !1,
  26690. Xb: null,
  26691. Xd: null,
  26692. ov: !1,
  26693. Ma: "MenuItem",
  26694. ctor: function(a, d) {
  26695. var e = b.e.prototype;
  26696. e.ctor.call(this);
  26697. this.Xd = this.Xb = null;
  26698. this.Fd = this.ov = !1;
  26699. e.rb.call(this, 0.5, 0.5);
  26700. this.Xb = d || null;
  26701. if (this.Xd = a || null) this.Fd = !0
  26702. },
  26703. VC: function() {
  26704. return this.ov
  26705. },
  26706. Le: function() {},
  26707. tf: function() {
  26708. return !1
  26709. },
  26710. Rk: function(a, d) {
  26711. this.Xb = d;
  26712. this.Xd = a
  26713. },
  26714. isEnabled: function() {
  26715. return this.Fd
  26716. },
  26717. Gb: function(a) {
  26718. this.Fd = a
  26719. },
  26720. Sp: function(a, d) {
  26721. this.anchorY = this.anchorX = 0.5;
  26722. this.Xb = d;
  26723. this.Xd = a;
  26724. this.Fd = !0;
  26725. this.ov = !1;
  26726. return !0
  26727. },
  26728. rect: function() {
  26729. var a =
  26730. this.Ca,
  26731. d = this.U,
  26732. e = this.Ih;
  26733. return b.rect(a.x - d.width * e.x, a.y - d.height * e.y, d.width, d.height)
  26734. },
  26735. selected: function() {
  26736. this.ov = !0
  26737. },
  26738. Ij: function() {
  26739. this.ov = !1
  26740. },
  26741. xta: function(a, d) {
  26742. this.Xb = d;
  26743. this.Xd = a
  26744. },
  26745. mw: function() {
  26746. if (this.Fd) {
  26747. var a = this.Xb,
  26748. d = this.Xd;
  26749. if (d)
  26750. if (a && b.Je(d)) a[d](this);
  26751. else a && b.Ie(d) ? d.call(a, this) : d(this)
  26752. }
  26753. }
  26754. });
  26755. r = b.Xc.prototype;
  26756. b.i(r, "enabled", r.isEnabled, r.Gb);
  26757. b.Xc.create = function(a, d) {
  26758. return new b.Xc(a, d)
  26759. };
  26760. b.mo = b.Xc.extend({
  26761. fr: null,
  26762. nd: null,
  26763. Lr: 0,
  26764. Su: null,
  26765. ctor: function(a, d, e) {
  26766. b.Xc.prototype.ctor.call(this, d, e);
  26767. this.Su = this.nd = this.fr = null;
  26768. a && (this.Lr = 1, this.Su = b.color.WHITE, this.fr = b.color(126, 126, 126), this.MD(a), this.cascadeOpacity = this.cascadeColor = !0)
  26769. },
  26770. p9: function() {
  26771. return this.fr
  26772. },
  26773. ada: function(a) {
  26774. this.fr = a
  26775. },
  26776. K9: function() {
  26777. return this.nd
  26778. },
  26779. MD: function(a) {
  26780. a && (this.C(a), a.anchorX = 0, a.anchorY = 0, this.width = a.width, this.height = a.height);
  26781. this.nd && this.removeChild(this.nd, !0);
  26782. this.nd = a
  26783. },
  26784. Gb: function(a) {
  26785. if (this.Fd !==
  26786. a) {
  26787. var d = this.nd;
  26788. a ? d.color = this.Su : (this.Su = d.color, d.color = this.fr)
  26789. }
  26790. b.Xc.prototype.Gb.call(this, a)
  26791. },
  26792. Hb: function(a) {
  26793. this.nd.opacity = a
  26794. },
  26795. bh: function() {
  26796. return this.nd.opacity
  26797. },
  26798. X: function(a) {
  26799. this.nd.color = a
  26800. },
  26801. rf: function() {
  26802. return this.nd.color
  26803. },
  26804. WV: function(a, d, e) {
  26805. this.Sp(d, e);
  26806. this.Lr = 1;
  26807. this.Su = b.color.WHITE;
  26808. this.fr = b.color(126, 126, 126);
  26809. this.MD(a);
  26810. return this.cascadeOpacity = this.cascadeColor = !0
  26811. },
  26812. Wc: function(a) {
  26813. this.nd.string = a;
  26814. this.width = this.nd.width;
  26815. this.height = this.nd.height
  26816. },
  26817. am: function() {
  26818. return this.nd.string
  26819. },
  26820. mw: function() {
  26821. this.Fd && (this.gM(), this.scale = this.Lr, b.Xc.prototype.mw.call(this))
  26822. },
  26823. selected: function() {
  26824. if (this.Fd) {
  26825. b.Xc.prototype.selected.call(this);
  26826. var a = this.lC(b.rz);
  26827. a ? this.nY(a) : this.Lr = this.scale;
  26828. a = b.rg(0.1, 1.2 * this.Lr);
  26829. a.Ix(b.rz);
  26830. this.Ba(a)
  26831. }
  26832. },
  26833. Ij: function() {
  26834. if (this.Fd) {
  26835. b.Xc.prototype.Ij.call(this);
  26836. this.Hea(b.rz);
  26837. var a = b.rg(0.1, this.Lr);
  26838. a.Ix(b.rz);
  26839. this.Ba(a)
  26840. }
  26841. }
  26842. });
  26843. r = b.mo.prototype;
  26844. b.i(r, "string", r.am, r.Wc);
  26845. b.i(r, "disabledColor", r.p9, r.ada);
  26846. b.i(r, "label", r.K9, r.MD);
  26847. b.mo.create = function(a, d, e) {
  26848. return new b.mo(a, d, e)
  26849. };
  26850. b.oN = b.mo.extend({
  26851. ctor: function(a, d, e, f, g, h, k) {
  26852. var m;
  26853. a && 0 < a.length && (m = new b.oe(a, d, e, f, g));
  26854. b.mo.prototype.ctor.call(this, m, h, k)
  26855. },
  26856. je: function(a, d, e, f, g, h, k) {
  26857. if (!a || 0 === a.length) throw "cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0";
  26858. var m = new b.oe;
  26859. m.je(a, d, e, f, g);
  26860. this.WV(m, h, k);
  26861. return !0
  26862. }
  26863. });
  26864. b.oN.create = function(a, d, e, f, g, h, k) {
  26865. return new b.oN(a, d, e, f, g, h, k)
  26866. };
  26867. b.lo = b.mo.extend({
  26868. fc: null,
  26869. ec: null,
  26870. ctor: function(a, d, e) {
  26871. var f;
  26872. a && 0 < a.length ? (this.ec = b.kv, this.fc = b.nA, f = new b.M(a, this.ec, this.fc)) : (this.fc = 0, this.ec = "");
  26873. b.mo.prototype.ctor.call(this, f, d, e)
  26874. },
  26875. je: function(a, d, e) {
  26876. if (!a || 0 === a.length) throw "Value should be non-null and its length should be greater than 0";
  26877. this.ec = b.kv;
  26878. this.fc = b.nA;
  26879. a = new b.M(a, this.ec, this.fc);
  26880. this.WV(a, d, e);
  26881. return !0
  26882. },
  26883. Bx: function(a) {
  26884. this.fc = a;
  26885. this.nS()
  26886. },
  26887. DK: function() {
  26888. return this.fc
  26889. },
  26890. KD: function(a) {
  26891. this.ec = a;
  26892. this.nS()
  26893. },
  26894. CK: function() {
  26895. return this.ec
  26896. },
  26897. nS: function() {
  26898. var a = new b.M(this.nd.string, this.ec, this.fc);
  26899. this.MD(a)
  26900. }
  26901. });
  26902. b.lo.Bx = function(a) {
  26903. b.nA = a
  26904. };
  26905. b.lo.fontSize = function() {
  26906. return b.nA
  26907. };
  26908. b.lo.KD = function(a) {
  26909. b.ZQ && (b.kv = "");
  26910. b.kv = a;
  26911. b.ZQ = !0
  26912. };
  26913. r = b.lo.prototype;
  26914. b.i(r, "fontSize", r.DK, r.Bx);
  26915. b.i(r, "fontName", r.CK, r.KD);
  26916. b.lo.fontName = function() {
  26917. return b.kv
  26918. };
  26919. b.lo.create = function(a, d, e) {
  26920. return new b.lo(a, d, e)
  26921. };
  26922. b.no = b.Xc.extend({
  26923. ae: null,
  26924. If: null,
  26925. Cf: null,
  26926. ctor: function(a, d, e, f, g) {
  26927. b.Xc.prototype.ctor.call(this);
  26928. this.Cf = this.If = this.ae = null;
  26929. if (void 0 !== d) {
  26930. var h, k, m;
  26931. void 0 !== g ? (h = e, m = f, k = g) : void 0 !== f && b.Ie(f) ? (h = e, m = f) : void 0 !== f && b.Ie(e) ? (k = f, m = e, h = null) : void 0 === e && (h = null);
  26932. this.YV(a, d, h, m, k)
  26933. }
  26934. },
  26935. c$: function() {
  26936. return this.ae
  26937. },
  26938. TL: function(a) {
  26939. this.ae !== a && (a && (this.C(a, 0, b.G_), a.anchorX = 0, a.anchorY = 0), this.ae && this.removeChild(this.ae, !0), this.ae = a, this.width = this.ae.width, this.height = this.ae.height, this.OB(),
  26940. a.Et && !a.R && a.addEventListener("load", function(a) {
  26941. this.width = a.width;
  26942. this.height = a.height
  26943. }, this))
  26944. },
  26945. C$: function() {
  26946. return this.If
  26947. },
  26948. VL: function(a) {
  26949. this.If !== a && (a && (this.C(a, 0, b.t0), a.anchorX = 0, a.anchorY = 0), this.If && this.removeChild(this.If, !0), this.If = a, this.OB())
  26950. },
  26951. q9: function() {
  26952. return this.Cf
  26953. },
  26954. RL: function(a) {
  26955. this.Cf !== a && (a && (this.C(a, 0, b.EZ), a.anchorX = 0, a.anchorY = 0), this.Cf && this.removeChild(this.Cf, !0), this.Cf = a, this.OB())
  26956. },
  26957. YV: function(a, d, e, f, g) {
  26958. this.Sp(f, g);
  26959. this.TL(a);
  26960. this.VL(d);
  26961. this.RL(e);
  26962. if (a =
  26963. this.ae) this.width = a.width, this.height = a.height, a.Et && !a.R && a.addEventListener("load", function(a) {
  26964. this.width = a.width;
  26965. this.height = a.height;
  26966. this.cascadeOpacity = this.cascadeColor = !0
  26967. }, this);
  26968. return this.cascadeOpacity = this.cascadeColor = !0
  26969. },
  26970. X: function(a) {
  26971. this.ae.color = a;
  26972. this.If && (this.If.color = a);
  26973. this.Cf && (this.Cf.color = a)
  26974. },
  26975. rf: function() {
  26976. return this.ae.color
  26977. },
  26978. Hb: function(a) {
  26979. this.ae.opacity = a;
  26980. this.If && (this.If.opacity = a);
  26981. this.Cf && (this.Cf.opacity = a)
  26982. },
  26983. bh: function() {
  26984. return this.ae.opacity
  26985. },
  26986. selected: function() {
  26987. b.Xc.prototype.selected.call(this);
  26988. this.ae && (this.Cf && (this.Cf.visible = !1), this.If ? (this.ae.visible = !1, this.If.visible = !0) : this.ae.visible = !0)
  26989. },
  26990. Ij: function() {
  26991. b.Xc.prototype.Ij.call(this);
  26992. this.ae && (this.ae.visible = !0, this.If && (this.If.visible = !1), this.Cf && (this.Cf.visible = !1))
  26993. },
  26994. Gb: function(a) {
  26995. this.Fd !== a && (b.Xc.prototype.Gb.call(this, a), this.OB())
  26996. },
  26997. OB: function() {
  26998. var a = this.ae,
  26999. d = this.If,
  27000. e = this.Cf;
  27001. this.Fd ? (a && (a.visible = !0), d && (d.visible = !1), e && (e.visible = !1)) : e ? (a && (a.visible = !1), d && (d.visible = !1), e && (e.visible = !0)) : (a && (a.visible = !0),
  27002. d && (d.visible = !1))
  27003. }
  27004. });
  27005. r = b.no.prototype;
  27006. b.i(r, "normalImage", r.c$, r.TL);
  27007. b.i(r, "selectedImage", r.C$, r.VL);
  27008. b.i(r, "disabledImage", r.q9, r.RL);
  27009. b.no.create = function(a, d, e, f, g) {
  27010. return new b.no(a, d, e, f, g || void 0)
  27011. };
  27012. b.pN = b.no.extend({
  27013. ctor: function(a, d, e, f, g) {
  27014. var h = null,
  27015. k = null,
  27016. m = null,
  27017. n = null,
  27018. p = null;
  27019. void 0 === a ? b.no.prototype.ctor.call(this) : (h = new b.B(a), d && (k = new b.B(d)), void 0 === f ? n = e : void 0 === g ? (n = e, p = f) : g && (m = new b.B(e), n = f, p = g), b.no.prototype.ctor.call(this, h, k, m, n, p))
  27020. },
  27021. pua: function(a) {
  27022. this.TL(new b.B(a))
  27023. },
  27024. Nua: function(a) {
  27025. this.VL(new b.B(a))
  27026. },
  27027. Mta: function(a) {
  27028. this.RL(new b.B(a))
  27029. },
  27030. Apa: function(a, d, e, f, g) {
  27031. var h = null,
  27032. k = null,
  27033. m = null;
  27034. a && (h = new b.B(a));
  27035. d && (k = new b.B(d));
  27036. e && (m = new b.B(e));
  27037. return this.YV(h, k, m, f, g)
  27038. }
  27039. });
  27040. b.pN.create = function(a, d, e, f, g) {
  27041. return new b.pN(a, d, e, f, g)
  27042. };
  27043. b.ME = b.Xc.extend({
  27044. Qd: null,
  27045. Uh: 0,
  27046. we: null,
  27047. te: null,
  27048. ctor: function() {
  27049. b.Xc.prototype.ctor.call(this);
  27050. this.Uh = 0;
  27051. this.Qd = [];
  27052. this.we = 0;
  27053. this.te = b.color.WHITE;
  27054. 0 < arguments.length && this.Tw(Array.prototype.slice.apply(arguments))
  27055. },
  27056. bh: function() {
  27057. return this.we
  27058. },
  27059. Hb: function(a) {
  27060. this.we = a;
  27061. if (this.Qd && 0 < this.Qd.length)
  27062. for (var d = 0; d < this.Qd.length; d++) this.Qd[d].opacity = a;
  27063. this.te.a = a
  27064. },
  27065. rf: function() {
  27066. var a = this.te;
  27067. return b.color(a.r, a.g, a.b, a.a)
  27068. },
  27069. X: function(a) {
  27070. var d = this.te;
  27071. d.r = a.r;
  27072. d.g = a.g;
  27073. d.b = a.b;
  27074. if (this.Qd && 0 < this.Qd.length)
  27075. for (d =
  27076. 0; d < this.Qd.length; d++) this.Qd[d].X(a);
  27077. void 0 === a.a || a.MT || this.Hb(a.a)
  27078. },
  27079. D$: function() {
  27080. return this.Uh
  27081. },
  27082. SD: function(a) {
  27083. if (a !== this.Uh) {
  27084. this.Uh = a;
  27085. (a = this.gi(b.RM)) && a.Rn(!1);
  27086. a = this.Qd[this.Uh];
  27087. this.C(a, 0, b.RM);
  27088. var d = a.width,
  27089. e = a.height;
  27090. this.width = d;
  27091. this.height = e;
  27092. a.I(d / 2, e / 2)
  27093. }
  27094. },
  27095. Goa: function() {
  27096. return this.Qd
  27097. },
  27098. Tua: function(a) {
  27099. this.Qd = a
  27100. },
  27101. Tw: function(a) {
  27102. var d = a.length;
  27103. b.Ie(a[a.length - 2]) ? (this.Sp(a[a.length - 2], a[a.length - 1]), d -= 2) : b.Ie(a[a.length - 1]) ? (this.Sp(a[a.length - 1], null), d -= 1) : this.Sp(null, null);
  27104. for (var e = this.Qd, f = e.length = 0; f < d; f++) a[f] && e.push(a[f]);
  27105. this.Uh = b.TO;
  27106. this.SD(0);
  27107. return this.cascadeOpacity = this.cascadeColor = !0
  27108. },
  27109. aka: function(a) {
  27110. this.Qd.push(a)
  27111. },
  27112. mw: function() {
  27113. this.Fd && this.SD((this.Uh + 1) % this.Qd.length);
  27114. b.Xc.prototype.mw.call(this)
  27115. },
  27116. selected: function() {
  27117. b.Xc.prototype.selected.call(this);
  27118. this.Qd[this.Uh].selected()
  27119. },
  27120. Ij: function() {
  27121. b.Xc.prototype.Ij.call(this);
  27122. this.Qd[this.Uh].Ij()
  27123. },
  27124. Gb: function(a) {
  27125. if (this.Fd !== a) {
  27126. b.Xc.prototype.Gb.call(this, a);
  27127. var d = this.Qd;
  27128. if (d && 0 < d.length)
  27129. for (var e =
  27130. 0; e < d.length; e++) d[e].enabled = a
  27131. }
  27132. },
  27133. jta: function() {
  27134. return this.Qd[this.Uh]
  27135. },
  27136. voa: function() {
  27137. return this.Qd[this.Uh]
  27138. },
  27139. aa: function() {
  27140. b.e.prototype.aa.call(this);
  27141. this.SD(this.Uh)
  27142. }
  27143. });
  27144. r = b.ME.prototype;
  27145. b.i(r, "selectedIndex", r.D$, r.SD);
  27146. b.ME.create = function() {
  27147. 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript");
  27148. var a = new b.ME;
  27149. a.Tw(Array.prototype.slice.apply(arguments));
  27150. return a
  27151. };
  27152. b.mu = 0;
  27153. b.lu = 1;
  27154. b.iha = -128;
  27155. b.gy = 5;
  27156. b.zm = b.Ua.extend({
  27157. enabled: !1,
  27158. lc: null,
  27159. mc: -1,
  27160. hj: null,
  27161. Ma: "Menu",
  27162. ctor: function(a) {
  27163. b.Ua.prototype.ctor.call(this);
  27164. this.te = b.color.WHITE;
  27165. this.enabled = !1;
  27166. this.we = 255;
  27167. this.lc = null;
  27168. this.mc = -1;
  27169. this.hj = b.ia.create({
  27170. event: b.ia.to,
  27171. tm: !0,
  27172. Qb: this.Z4,
  27173. xd: this.d5,
  27174. Oc: this.b5,
  27175. uf: this.a5
  27176. });
  27177. 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript");
  27178. var d = arguments.length,
  27179. e;
  27180. if (0 === d) e = [];
  27181. else if (1 === d) e = a instanceof Array ? a : [a];
  27182. else if (1 < d) {
  27183. e = [];
  27184. for (var f = 0; f <
  27185. d; f++) arguments[f] && e.push(arguments[f])
  27186. }
  27187. this.RV(e)
  27188. },
  27189. aa: function() {
  27190. var a = this.hj;
  27191. a.Hf || b.ua.addListener(a, this);
  27192. b.e.prototype.aa.call(this)
  27193. },
  27194. isEnabled: function() {
  27195. return this.enabled
  27196. },
  27197. Gb: function(a) {
  27198. this.enabled = a
  27199. },
  27200. Tw: function(a) {
  27201. var d = [];
  27202. if (a)
  27203. for (var e = 0; e < a.length; e++) a[e] && d.push(a[e]);
  27204. return this.RV(d)
  27205. },
  27206. RV: function(a) {
  27207. if (b.Ua.prototype.T.call(this)) {
  27208. this.enabled = !0;
  27209. var d = b.ld;
  27210. this.I(d.width / 2, d.height / 2);
  27211. this.Na(d);
  27212. this.rb(0.5, 0.5);
  27213. this.pj(!0);
  27214. if (a)
  27215. for (d = 0; d < a.length; d++) this.C(a[d], d);
  27216. this.lc =
  27217. null;
  27218. this.mc = b.mu;
  27219. return this.cascadeOpacity = this.cascadeColor = !0
  27220. }
  27221. return !1
  27222. },
  27223. C: function(a, d, e) {
  27224. if (!(a instanceof b.Xc)) throw "cc.Menu.addChild() : Menu only supports MenuItem objects as children";
  27225. b.Ua.prototype.C.call(this, a, d, e)
  27226. },
  27227. a7: function() {
  27228. this.KJ(b.gy)
  27229. },
  27230. KJ: function(a) {
  27231. var d = -a,
  27232. e = this.m,
  27233. f, g, h, k;
  27234. if (e && 0 < e.length) {
  27235. g = 0;
  27236. for (f = e.length; g < f; g++) d += e[g].height * e[g].scaleY + a;
  27237. var m = d / 2;
  27238. g = 0;
  27239. for (f = e.length; g < f; g++) k = e[g], h = k.height, d = k.scaleY, k.I(0, m - h * d / 2), m -= h * d + a
  27240. }
  27241. },
  27242. X6: function() {
  27243. this.YB(b.gy)
  27244. },
  27245. YB: function(a) {
  27246. var d = -a,
  27247. e = this.m,
  27248. f, g, h, k;
  27249. if (e && 0 < e.length) {
  27250. f = 0;
  27251. for (g = e.length; f < g; f++) d += e[f].width * e[f].scaleX + a;
  27252. var m = -d / 2;
  27253. f = 0;
  27254. for (g = e.length; f < g; f++) k = e[f], d = k.scaleX, h = e[f].width, k.I(m + h * d / 2, 0), m += h * d + a
  27255. }
  27256. },
  27257. Y6: function() {
  27258. 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript");
  27259. for (var a = [], d = 0; d < arguments.length; d++) a.push(arguments[d]);
  27260. var e = -5,
  27261. f = 0,
  27262. g = 0,
  27263. h = 0,
  27264. k, m, n, p = this.m;
  27265. if (p && 0 < p.length)
  27266. for (d = 0, n = p.length; d < n; d++) f >= a.length || !(k = a[f]) || (m = p[d].height,
  27267. g = g >= m || isNaN(m) ? g : m, ++h, h >= k && (e += g + 5, g = h = 0, ++f));
  27268. var s = b.P.Fa(),
  27269. t = k = g = f = 0,
  27270. v = 0,
  27271. e = e / 2;
  27272. if (p && 0 < p.length)
  27273. for (d = 0, n = p.length; d < n; d++) {
  27274. var w = p[d];
  27275. 0 === k && (k = a[f], v = t = s.width / (1 + k));
  27276. m = w.ml();
  27277. g = g >= m || isNaN(m) ? g : m;
  27278. w.I(v - s.width / 2, e - m / 2);
  27279. v += t;
  27280. ++h;
  27281. h >= k && (e -= g + 5, g = k = h = 0, ++f)
  27282. }
  27283. },
  27284. Z6: function() {
  27285. 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript");
  27286. var a = [],
  27287. d;
  27288. for (d = 0; d < arguments.length; d++) a.push(arguments[d]);
  27289. var e = [],
  27290. f = [],
  27291. g = -10,
  27292. h = -5,
  27293. k = 0,
  27294. m = 0,
  27295. n =
  27296. 0,
  27297. p, s, t, v, w = this.m;
  27298. if (w && 0 < w.length)
  27299. for (d = 0, t = w.length; d < t; d++)(s = w[d], k >= a.length || !(p = a[k])) || (v = s.width, m = m >= v || isNaN(v) ? m : v, h += s.height + 5, ++n, n >= p && (e.push(m), f.push(h), g += m + 10, m = n = 0, h = -5, ++k));
  27300. h = b.P.Fa();
  27301. p = m = k = 0;
  27302. var g = -g / 2,
  27303. x = 0;
  27304. if (w && 0 < w.length)
  27305. for (d = 0, t = w.length; d < t; d++) s = w[d], 0 === p && (p = a[k], x = f[k]), v = s.Nh(), m = m >= v || isNaN(v) ? m : v, s.I(g + e[k] / 2, x - h.height / 2), x -= s.height + 10, ++n, n >= p && (g += m + 5, m = p = n = 0, ++k)
  27306. },
  27307. removeChild: function(a, d) {
  27308. null != a && (a instanceof b.Xc ? (this.lc === a && (this.lc = null), b.e.prototype.removeChild.call(this,
  27309. a, d)) : b.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children"))
  27310. },
  27311. Z4: function(a, d) {
  27312. var e = d.Ed;
  27313. if (e.mc !== b.mu || !e.Ta || !e.enabled) return !1;
  27314. for (var f = e.parent; null != f; f = f.parent)
  27315. if (!f.Ta) return !1;
  27316. e.lc = e.xR(a);
  27317. return e.lc ? (e.mc = b.lu, e.lc.selected(), e.lc.Pk(), !0) : !1
  27318. },
  27319. b5: function(a, d) {
  27320. var e = d.Ed;
  27321. e.mc !== b.lu ? b.log("cc.Menu.onTouchEnded(): invalid state") : (e.lc && (e.lc.Ij(), e.lc.Pk(), e.lc.mw()), e.mc = b.mu)
  27322. },
  27323. a5: function(a, d) {
  27324. var e = d.Ed;
  27325. e.mc !== b.lu ? b.log("cc.Menu.onTouchCancelled(): invalid state") :
  27326. (this.lc && (e.lc.Ij(), e.lc.Pk()), e.mc = b.mu)
  27327. },
  27328. d5: function(a, d) {
  27329. var e = d.Ed;
  27330. if (e.mc !== b.lu) b.log("cc.Menu.onTouchMoved(): invalid state");
  27331. else {
  27332. var f = e.xR(a);
  27333. f !== e.lc && (e.lc && (e.lc.Ij(), e.lc.Pk()), e.lc = f, e.lc && (e.lc.selected(), e.lc.Pk()))
  27334. }
  27335. },
  27336. Pb: function() {
  27337. this.mc === b.lu && (this.lc && (this.lc.Ij(), this.lc = null), this.mc = b.mu);
  27338. b.e.prototype.Pb.call(this)
  27339. },
  27340. Le: function() {},
  27341. tf: function() {
  27342. return !1
  27343. },
  27344. xR: function(a) {
  27345. a = a.hi();
  27346. var d = this.m,
  27347. e;
  27348. if (d && 0 < d.length)
  27349. for (var f = d.length - 1; 0 <= f; f--)
  27350. if (e = d[f], e.Ta && e.isEnabled()) {
  27351. var g =
  27352. e.Ck(a),
  27353. h = e.rect();
  27354. h.x = 0;
  27355. h.y = 0;
  27356. if (b.mx(h, g)) return e
  27357. }
  27358. return null
  27359. }
  27360. });
  27361. r = b.zm.prototype;
  27362. b.zm.create = function(a) {
  27363. var d = arguments.length;
  27364. 0 < d && null == arguments[d - 1] && b.log("parameters should not be ending with null in Javascript");
  27365. return 0 === d ? new b.zm : 1 === d ? new b.zm(a) : new b.zm(Array.prototype.slice.call(arguments, 0))
  27366. };
  27367. b.Zha = 0;
  27368. b.Vha = 1;
  27369. b.Yha = 2;
  27370. b.Wha = 3;
  27371. b.Xha = 4;
  27372. b.Uha = 5;
  27373. b.iwa = function(a, d, e) {
  27374. var f = 2;
  27375. if (f + 1 > d) return !1;
  27376. a = new b.$Y(a);
  27377. a.Gj(f);
  27378. e.type = a.Y();
  27379. f += 10;
  27380. if (f + 4 + 1 > d) return !1;
  27381. a.Gj(f);
  27382. e.width = a.kca();
  27383. e.height = a.jca();
  27384. e.pixelDepth = a.Y();
  27385. if (f + 5 + 1 > d) return !1;
  27386. d = a.Y();
  27387. e.aV = 0;
  27388. d & 32 && (e.aV = 1);
  27389. return !0
  27390. };
  27391. b.jwa = function(a, d, e) {
  27392. var f, g;
  27393. f = 0 | e.pixelDepth / 2;
  27394. g = e.height * e.width * f;
  27395. if (18 + g > d) return !1;
  27396. e.pg = b.xz(a, 18, 18 + g);
  27397. if (3 <= f)
  27398. for (a = 0; a < g; a += f) d = e.pg[a], e.pg[a] = e.pg[a + 2], e.pg[a + 2] = d;
  27399. return !0
  27400. };
  27401. b.lwa = function(a) {
  27402. var d, e;
  27403. if (8 !== a.pixelDepth) {
  27404. var f = a.pixelDepth / 8,
  27405. g = new Uint8Array(a.height * a.width);
  27406. if (null !== g) {
  27407. for (e = d = 0; e < a.width * a.height; d += f, e++) g[e] = 0.3 * a.pg[d] + 0.59 * a.pg[d + 1] + 0.11 * a.pg[d + 2];
  27408. a.pixelDepth = 8;
  27409. a.type = 3;
  27410. a.pg = g
  27411. }
  27412. }
  27413. };
  27414. b.gwa = function(a) {
  27415. a && (a.pg = null)
  27416. };
  27417. b.kwa = function(a, d, e) {
  27418. var f, g, h, k = 0,
  27419. m = 0,
  27420. n = 0,
  27421. p = [],
  27422. s = 0,
  27423. t = 18;
  27424. f = e.pixelDepth / 8;
  27425. g = e.height * e.width;
  27426. for (h = 0; h < g; h++) {
  27427. if (0 !== s) s--, m = 0 !== n;
  27428. else {
  27429. if (t + 1 > d) break;
  27430. s = a[t];
  27431. t += 1;
  27432. (n = s & 128) && (s -= 128);
  27433. m = 0
  27434. }
  27435. if (!m) {
  27436. if (t + f > d) break;
  27437. p = b.xz(a, t, t + f);
  27438. t += f;
  27439. 3 <= f && (m = p[0], p[0] = p[2], p[2] = m)
  27440. }
  27441. for (m = 0; m < f; m++) e.pg[k + m] = p[m];
  27442. k += f
  27443. }
  27444. return !0
  27445. };
  27446. b.hwa = function(a) {
  27447. for (var d = a.pixelDepth / 8 * a.width, e = 0; e < a.height / 2; e++) {
  27448. var f = b.xz(a.pg, e * d, e * d + d);
  27449. b.fP(b.xz(a.pg, (a.height - (e + 1)) * d, d), a.pg, e * d);
  27450. b.fP(f, a.pg, (a.height - (e + 1)) * d)
  27451. }
  27452. a.aV = 0
  27453. };
  27454. b.xz = function(a, d, e) {
  27455. return a instanceof Array ? a.slice(d, e) : a.subarray(d, e)
  27456. };
  27457. b.fP = function(a, d, e) {
  27458. for (var f = 0; f < a.length; f++) d[e + f] = a[f]
  27459. };
  27460. b.$Y = b.sa.extend({
  27461. Oq: null,
  27462. Ja: 0,
  27463. ctor: function(a) {
  27464. this.Oq = a
  27465. },
  27466. uta: function(a) {
  27467. this.Oq = a;
  27468. this.Ja = 0
  27469. },
  27470. Cma: function() {
  27471. return this.Oq
  27472. },
  27473. Z2: function(a) {
  27474. if (!(this.Ja + Math.ceil(a / 8) < this.er.length)) throw Error("Index out of bound");
  27475. },
  27476. j3: function(a, d) {
  27477. var e = a + d + 1,
  27478. f = e >> 3;
  27479. this.Z2(e);
  27480. var e = Math.pow(2, d - 1) - 1,
  27481. g = this.kI(a + d, 1, f),
  27482. h = this.kI(a, d, f),
  27483. k = 0,
  27484. m = 2,
  27485. n = 0;
  27486. do
  27487. for (var p = this.gB(++n, f), s = a % 8 || 8, t = 1 << s; t >>= 1;) p & t && (k += 1 / m), m *= 2; while (a -= s);
  27488. this.Ja += f;
  27489. return h === (e << 1) + 1 ? k ? NaN : g ? -Infinity : Infinity : (1 + -2 * g) * (h || k ? h ? Math.pow(2,
  27490. h - e) * (1 + k) : Math.pow(2, -e + 1) * k : 0)
  27491. },
  27492. gB: function(a, d) {
  27493. return this.er[this.Ja + d - a - 1]
  27494. },
  27495. Vz: function(a, d) {
  27496. var e = this.kI(0, a, a / 8),
  27497. f = Math.pow(2, a);
  27498. this.Ja += a / 8;
  27499. return d && e >= f / 2 ? e - f : e
  27500. },
  27501. m6: function(a, d) {
  27502. for (++d; --d; a = 1073741824 === ((a %= 2147483648) & 1073741824) ? 2 * a : 2 * (a - 1073741824) + 2147483648);
  27503. return a
  27504. },
  27505. kI: function(a, d, e) {
  27506. var f = (a + d) % 8,
  27507. g = a % 8,
  27508. h = e - (a >> 3) - 1;
  27509. a = e + (-(a + d) >> 3);
  27510. var k = h - a;
  27511. d = this.gB(h, e) >> g & (1 << (k ? 8 - g : d)) - 1;
  27512. for (k && f && (d += (this.gB(a++, e) & (1 << f) - 1) << (k-- << 3) - g); k;) d += this.m6(this.gB(a++, e), (k-- << 3) - g);
  27513. return d
  27514. },
  27515. lsa: function() {
  27516. return this.Vz(32, !0)
  27517. },
  27518. jca: function() {
  27519. return this.Vz(32, !1)
  27520. },
  27521. nsa: function() {
  27522. return this.j3(23, 8)
  27523. },
  27524. msa: function() {
  27525. return this.Vz(16, !0)
  27526. },
  27527. kca: function() {
  27528. return this.Vz(16, !1)
  27529. },
  27530. Y: function() {
  27531. var a = this.er[this.Ja];
  27532. this.Ja += 1;
  27533. return a
  27534. },
  27535. isa: function(a, d) {
  27536. return this.Oq instanceof Array ? this.Oq.slice(a, d) : this.Oq.subarray(a, d)
  27537. },
  27538. Gj: function(a) {
  27539. this.Ja = a
  27540. },
  27541. Js: function() {
  27542. return this.Ja
  27543. }
  27544. });
  27545. b.fz = 0;
  27546. b.Aq = 1;
  27547. b.ez = 2;
  27548. b.sF = b.e.extend({
  27549. cc: null,
  27550. vL: null,
  27551. dt: null,
  27552. Hd: null,
  27553. bc: null,
  27554. Rl: null,
  27555. Ma: "TMXTiledMap",
  27556. ctor: function(a, d) {
  27557. b.e.prototype.ctor.call(this);
  27558. this.Hd = b.size(0, 0);
  27559. this.bc = b.size(0, 0);
  27560. void 0 !== d ? this.kL(a, d) : void 0 !== a && this.iL(a)
  27561. },
  27562. GK: function() {
  27563. return b.size(this.Hd.width, this.Hd.height)
  27564. },
  27565. BX: function(a) {
  27566. this.Hd.width = a.width;
  27567. this.Hd.height = a.height
  27568. },
  27569. eH: function() {
  27570. return this.Hd.width
  27571. },
  27572. HI: function(a) {
  27573. this.Hd.width = a
  27574. },
  27575. dH: function() {
  27576. return this.Hd.height
  27577. },
  27578. GI: function(a) {
  27579. this.Hd.height = a
  27580. },
  27581. Ns: function() {
  27582. return b.size(this.bc.width, this.bc.height)
  27583. },
  27584. $X: function(a) {
  27585. this.bc.width = a.width;
  27586. this.bc.height = a.height
  27587. },
  27588. jv: function() {
  27589. return this.bc.width
  27590. },
  27591. Qv: function(a) {
  27592. this.bc.width = a
  27593. },
  27594. iv: function() {
  27595. return this.bc.height
  27596. },
  27597. Pv: function(a) {
  27598. this.bc.height = a
  27599. },
  27600. Ina: function() {
  27601. return this.vL
  27602. },
  27603. kua: function(a) {
  27604. this.vL = a
  27605. },
  27606. lV: function() {
  27607. return this.dt
  27608. },
  27609. EX: function(a) {
  27610. this.dt = a
  27611. },
  27612. tC: function() {
  27613. return this.cc
  27614. },
  27615. PD: function(a) {
  27616. this.cc = a
  27617. },
  27618. iL: function(a) {
  27619. if (!a || 0 === a.length) throw "cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string.";
  27620. this.height =
  27621. this.width = 0;
  27622. a = new b.vu(a);
  27623. if (!a) return !1;
  27624. var d = a.rp;
  27625. d && 0 !== d.length || b.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename.");
  27626. this.rP(a);
  27627. return !0
  27628. },
  27629. kL: function(a, d) {
  27630. this.height = this.width = 0;
  27631. var e = new b.vu(a, d),
  27632. f = e.rp;
  27633. f && 0 !== f.length || b.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename.");
  27634. this.rP(e);
  27635. return !0
  27636. },
  27637. rP: function(a) {
  27638. this.Hd = a.GK();
  27639. this.bc = a.Ns();
  27640. this.vL = a.orientation;
  27641. this.dt = a.lV();
  27642. this.cc = a.cc;
  27643. this.Rl = a.Rl;
  27644. var d = 0,
  27645. e = a.hf;
  27646. if (e)
  27647. for (var f =
  27648. null, g = 0, h = e.length; g < h; g++)(f = e[g]) && f.visible && (f = this.j5(f, a), this.C(f, d, d), this.width = Math.max(this.width, f.width), this.height = Math.max(this.height, f.height), d++)
  27649. },
  27650. fka: function() {
  27651. for (var a = [], d = this.m, e = 0, f = d.length; e < f; e++) {
  27652. var g = d[e];
  27653. g && g instanceof b.yg && a.push(g)
  27654. }
  27655. return a
  27656. },
  27657. yna: function(a) {
  27658. if (!a || 0 === a.length) throw "cc.TMXTiledMap.getLayer(): layerName should be non-null or non-empty string.";
  27659. for (var d = this.m, e = 0; e < d.length; e++) {
  27660. var f = d[e];
  27661. if (f && f.bD === a) return f
  27662. }
  27663. return null
  27664. },
  27665. Tna: function(a) {
  27666. if (!a ||
  27667. 0 === a.length) throw "cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string.";
  27668. if (this.dt)
  27669. for (var d = 0; d < this.dt.length; d++) {
  27670. var e = this.dt[d];
  27671. if (e && e.Ow === a) return e
  27672. }
  27673. return null
  27674. },
  27675. MK: function(a) {
  27676. return this.cc[a.toString()]
  27677. },
  27678. esa: function(a) {
  27679. b.log("propertiesForGID is deprecated. Please use getPropertiesForGID instead.");
  27680. return this.u$[a]
  27681. },
  27682. u$: function(a) {
  27683. return this.Rl[a]
  27684. },
  27685. j5: function(a, d) {
  27686. var e = this.z6(a, d),
  27687. e = new b.yg(e, a, d);
  27688. a.zW = !1;
  27689. e.oea();
  27690. return e
  27691. },
  27692. z6: function(a, d) {
  27693. var e = a.Da,
  27694. f = d.rp;
  27695. if (f)
  27696. for (var g = f.length - 1; 0 <= g; g--) {
  27697. var h = f[g];
  27698. if (h)
  27699. for (var k = 0; k < e.height; k++)
  27700. for (var m = 0; m < e.width; m++) {
  27701. var n = a.Jf[m + e.width * k];
  27702. if (0 !== n && (n & b.tF) >>> 0 >= h.Np) return h
  27703. }
  27704. }
  27705. b.log("cocos2d: Warning: TMX Layer " + a.name + " has no tiles");
  27706. return null
  27707. }
  27708. });
  27709. r = b.sF.prototype;
  27710. b.i(r, "mapWidth", r.eH, r.HI);
  27711. b.i(r, "mapHeight", r.dH, r.GI);
  27712. b.i(r, "tileWidth", r.jv, r.Qv);
  27713. b.i(r, "tileHeight", r.iv, r.Pv);
  27714. b.sF.create = function(a, d) {
  27715. return new b.sF(a, d)
  27716. };
  27717. b.v1 = 0;
  27718. b.bia = 1;
  27719. b.aia = 2;
  27720. b.dia = 3;
  27721. b.cia = 4;
  27722. b.eia = 5;
  27723. b.wu = 2147483648;
  27724. b.xu = 1073741824;
  27725. b.kO = 536870912;
  27726. b.lO = (b.wu | b.xu | b.kO) >>> 0;
  27727. b.tF = ~b.lO >>> 0;
  27728. b.so = b.sa.extend({
  27729. cc: null,
  27730. name: "",
  27731. Da: null,
  27732. Jf: null,
  27733. visible: null,
  27734. we: null,
  27735. zW: !0,
  27736. Uo: 1E5,
  27737. To: 0,
  27738. offset: null,
  27739. ctor: function() {
  27740. this.cc = [];
  27741. this.name = "";
  27742. this.Da = null;
  27743. this.Jf = [];
  27744. this.visible = !0;
  27745. this.we = 0;
  27746. this.zW = !0;
  27747. this.Uo = 1E5;
  27748. this.To = 0;
  27749. this.offset = b.d(0, 0)
  27750. },
  27751. tC: function() {
  27752. return this.cc
  27753. },
  27754. PD: function(a) {
  27755. this.cc = a
  27756. }
  27757. });
  27758. b.u1 = b.sa.extend({
  27759. name: "",
  27760. Np: 0,
  27761. bc: null,
  27762. Mx: 0,
  27763. margin: 0,
  27764. gY: "",
  27765. JC: null,
  27766. ctor: function() {
  27767. this.bc = b.size(0, 0);
  27768. this.JC = b.size(0, 0)
  27769. },
  27770. nx: function(a) {
  27771. var d = b.rect(0, 0, 0, 0);
  27772. d.width = this.bc.width;
  27773. d.height = this.bc.height;
  27774. a &= b.tF;
  27775. a -= parseInt(this.Np, 10);
  27776. var e = parseInt((this.JC.width - 2 * this.margin + this.Mx) / (this.bc.width + this.Mx), 10);
  27777. d.x = parseInt(a % e * (this.bc.width + this.Mx) + this.margin, 10);
  27778. d.y = parseInt(parseInt(a / e, 10) * (this.bc.height + this.Mx) + this.margin, 10);
  27779. return d
  27780. }
  27781. });
  27782. b.vu = b.Uy.extend({
  27783. cc: null,
  27784. orientation: null,
  27785. parentElement: null,
  27786. qD: null,
  27787. aD: 0,
  27788. hM: !1,
  27789. Ht: null,
  27790. fK: null,
  27791. SA: null,
  27792. Hd: null,
  27793. bc: null,
  27794. hf: null,
  27795. rp: null,
  27796. Rl: null,
  27797. lB: "",
  27798. IP: 0,
  27799. ctor: function(a, d) {
  27800. b.Uy.prototype.ctor.apply(this);
  27801. this.Hd = b.size(0, 0);
  27802. this.bc = b.size(0, 0);
  27803. this.hf = [];
  27804. this.rp = [];
  27805. this.SA = [];
  27806. this.cc = [];
  27807. this.Rl = {};
  27808. this.IP = 0;
  27809. void 0 !== d ? this.kL(a, d) : void 0 !== a && this.iL(a)
  27810. },
  27811. Xna: function() {
  27812. return this.orientation
  27813. },
  27814. wua: function(a) {
  27815. this.orientation = a
  27816. },
  27817. GK: function() {
  27818. return b.size(this.Hd.width, this.Hd.height)
  27819. },
  27820. BX: function(a) {
  27821. this.Hd.width =
  27822. a.width;
  27823. this.Hd.height = a.height
  27824. },
  27825. eH: function() {
  27826. return this.Hd.width
  27827. },
  27828. HI: function(a) {
  27829. this.Hd.width = a
  27830. },
  27831. dH: function() {
  27832. return this.Hd.height
  27833. },
  27834. GI: function(a) {
  27835. this.Hd.height = a
  27836. },
  27837. Ns: function() {
  27838. return b.size(this.bc.width, this.bc.height)
  27839. },
  27840. $X: function(a) {
  27841. this.bc.width = a.width;
  27842. this.bc.height = a.height
  27843. },
  27844. jv: function() {
  27845. return this.bc.width
  27846. },
  27847. Qv: function(a) {
  27848. this.bc.width = a
  27849. },
  27850. iv: function() {
  27851. return this.bc.height
  27852. },
  27853. Pv: function(a) {
  27854. this.bc.height = a
  27855. },
  27856. Dna: function() {
  27857. return this.hf
  27858. },
  27859. oda: function(a) {
  27860. this.hf.push(a)
  27861. },
  27862. Qoa: function() {
  27863. return this.rp
  27864. },
  27865. Zda: function(a) {
  27866. this.rp.push(a)
  27867. },
  27868. lV: function() {
  27869. return this.SA
  27870. },
  27871. EX: function(a) {
  27872. this.SA.push(a)
  27873. },
  27874. aoa: function() {
  27875. return this.parentElement
  27876. },
  27877. Bua: function(a) {
  27878. this.parentElement = a
  27879. },
  27880. boa: function() {
  27881. return this.qD
  27882. },
  27883. Cua: function(a) {
  27884. this.qD = a
  27885. },
  27886. zna: function() {
  27887. return this.aD
  27888. },
  27889. cua: function(a) {
  27890. this.aD = a
  27891. },
  27892. Doa: function() {
  27893. return this.hM
  27894. },
  27895. Rua: function(a) {
  27896. this.hM = a
  27897. },
  27898. tC: function() {
  27899. return this.cc
  27900. },
  27901. PD: function(a) {
  27902. this.cc = a
  27903. },
  27904. iL: function(a) {
  27905. this.mR(a, null);
  27906. return this.CL(a)
  27907. },
  27908. kL: function(a, d) {
  27909. this.mR(null, d);
  27910. return this.Rba(a)
  27911. },
  27912. CL: function(a, d) {
  27913. var e = (d = d || !1) ? a : b.Z.sf(a);
  27914. if (!e) throw "Please load the resource first : " + a;
  27915. var f, g, e = this.SH(e).documentElement;
  27916. f = e.getAttribute("version");
  27917. g = e.getAttribute("orientation");
  27918. if ("map" === e.nodeName && ("1.0" !== f && null !== f && b.log("cocos2d: TMXFormat: Unsupported TMX version:" + f), "orthogonal" === g ? this.orientation = b.fz : "isometric" === g ? this.orientation = b.ez : "hexagonal" === g ? this.orientation = b.Aq : null !== g && b.log("cocos2d: TMXFomat: Unsupported orientation:" + g), f = b.size(0, 0), f.width = parseFloat(e.getAttribute("width")),
  27919. f.height = parseFloat(e.getAttribute("height")), this.BX(f), f = b.size(0, 0), f.width = parseFloat(e.getAttribute("tilewidth")), f.height = parseFloat(e.getAttribute("tileheight")), this.$X(f), g = e.querySelectorAll("map \x3e properties \x3e property"))) {
  27920. var h = {};
  27921. for (f = 0; f < g.length; f++) h[g[f].getAttribute("name")] = g[f].getAttribute("value");
  27922. this.cc = h
  27923. }
  27924. h = e.getElementsByTagName("tileset");
  27925. "map" !== e.nodeName && (h = [], h.push(e));
  27926. for (f = 0; f < h.length; f++) {
  27927. g = h[f];
  27928. var k = g.getAttribute("source");
  27929. if (k) g = d ? b.path.join(this.lB,
  27930. k) : b.path.qs(a, k), this.CL(g);
  27931. else {
  27932. k = new b.u1;
  27933. k.name = g.getAttribute("name") || "";
  27934. k.Np = parseInt(g.getAttribute("firstgid")) || 0;
  27935. k.Mx = parseInt(g.getAttribute("spacing")) || 0;
  27936. k.margin = parseInt(g.getAttribute("margin")) || 0;
  27937. var m = b.size(0, 0);
  27938. m.width = parseFloat(g.getAttribute("tilewidth"));
  27939. m.height = parseFloat(g.getAttribute("tileheight"));
  27940. k.bc = m;
  27941. var m = g.getElementsByTagName("image")[0].getAttribute("source"),
  27942. n = -1;
  27943. this.Ht && (n = this.Ht.lastIndexOf("/"));
  27944. k.gY = -1 !== n ? this.Ht.substr(0, n + 1) + m : this.lB + (this.lB ? "/" :
  27945. "") + m;
  27946. this.Zda(k);
  27947. if (m = g.getElementsByTagName("tile"))
  27948. for (n = 0; n < m.length; n++) {
  27949. g = m[n];
  27950. this.qD = parseInt(k.Np) + parseInt(g.getAttribute("id") || 0);
  27951. var p = g.querySelectorAll("properties \x3e property");
  27952. if (p) {
  27953. var s = {};
  27954. for (g = 0; g < p.length; g++) {
  27955. var t = p[g].getAttribute("name");
  27956. s[t] = p[g].getAttribute("value")
  27957. }
  27958. this.Rl[this.qD] = s
  27959. }
  27960. }
  27961. }
  27962. }
  27963. if (h = e.getElementsByTagName("layer"))
  27964. for (f = 0; f < h.length; f++) {
  27965. m = h[f];
  27966. n = m.getElementsByTagName("data")[0];
  27967. k = new b.so;
  27968. k.name = m.getAttribute("name");
  27969. g = b.size(0, 0);
  27970. g.width = parseFloat(m.getAttribute("width"));
  27971. g.height = parseFloat(m.getAttribute("height"));
  27972. k.Da = g;
  27973. g = m.getAttribute("visible");
  27974. k.visible = "0" != g;
  27975. g = m.getAttribute("opacity") || 1;
  27976. k.we = g ? parseInt(255 * parseFloat(g)) : 255;
  27977. k.offset = b.d(parseFloat(m.getAttribute("x")) || 0, parseFloat(m.getAttribute("y")) || 0);
  27978. p = "";
  27979. for (g = 0; g < n.childNodes.length; g++) p += n.childNodes[g].nodeValue;
  27980. p = p.trim();
  27981. g = n.getAttribute("compression");
  27982. s = n.getAttribute("encoding");
  27983. if (g && "gzip" !== g && "zlib" !== g) return b.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"), null;
  27984. switch (g) {
  27985. case "gzip":
  27986. k.Jf = b.BY(p, 4);
  27987. break;
  27988. case "zlib":
  27989. g = new Zlib.Inflate(b.wa.fo.yU(p, 1));
  27990. k.Jf = b.hfa(g.decompress());
  27991. break;
  27992. case null:
  27993. case "":
  27994. if ("base64" === s) k.Jf = b.wa.fo.yU(p, 4);
  27995. else if ("csv" === s)
  27996. for (k.Jf = [], g = p.split(","), n = 0; n < g.length; n++) k.Jf.push(parseInt(g[n]));
  27997. else
  27998. for (g = n.getElementsByTagName("tile"), k.Jf = [], n = 0; n < g.length; n++) k.Jf.push(parseInt(g[n].getAttribute("gid")));
  27999. break;
  28000. default:
  28001. this.aD === b.so.xM && b.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported")
  28002. }
  28003. if (m =
  28004. m.querySelectorAll("properties \x3e property")) {
  28005. n = {};
  28006. for (g = 0; g < m.length; g++) n[m[g].getAttribute("name")] = m[g].getAttribute("value");
  28007. k.cc = n
  28008. }
  28009. this.oda(k)
  28010. }
  28011. if (h = e.getElementsByTagName("objectgroup"))
  28012. for (f = 0; f < h.length; f++) {
  28013. m = h[f];
  28014. k = new b.t1;
  28015. k.Ow = m.getAttribute("name");
  28016. k.Hda(b.d(parseFloat(m.getAttribute("x")) * this.Ns().width || 0, parseFloat(m.getAttribute("y")) * this.Ns().height || 0));
  28017. if (n = m.querySelectorAll("objectgroup \x3e properties \x3e property"))
  28018. for (g = 0; g < n.length; g++) p = {}, p[n[g].getAttribute("name")] =
  28019. n[g].getAttribute("value"), k.cc = p;
  28020. m = m.querySelectorAll("object");
  28021. n = b.P.Gg;
  28022. if (m)
  28023. for (g = 0; g < m.length; g++) {
  28024. s = m[g];
  28025. p = {};
  28026. p.name = s.getAttribute("name") || "";
  28027. p.type = s.getAttribute("type") || "";
  28028. p.width = parseInt(s.getAttribute("width")) || 0;
  28029. p.height = parseInt(s.getAttribute("height")) || 0;
  28030. p.x = (((s.getAttribute("x") || 0) | 0) + k.nV().x) / n;
  28031. t = ((s.getAttribute("y") || 0) | 0) + k.nV().y / n;
  28032. p.y = (parseInt(this.GK().height * this.Ns().height) - t - p.height) / b.P.Gg;
  28033. p.rotation = parseInt(s.getAttribute("rotation")) || 0;
  28034. if (t = s.querySelectorAll("properties \x3e property"))
  28035. for (var v =
  28036. 0; v < t.length; v++) p[t[v].getAttribute("name")] = t[v].getAttribute("value");
  28037. (t = s.querySelectorAll("polygon")) && 0 < t.length && (t = t[0].getAttribute("points")) && (p.polygonPoints = this.$R(t));
  28038. (s = s.querySelectorAll("polyline")) && 0 < s.length && (s = s[0].getAttribute("points")) && (p.polylinePoints = this.$R(s));
  28039. k.Bda(p)
  28040. }
  28041. this.EX(k)
  28042. }
  28043. return e
  28044. },
  28045. $R: function(a) {
  28046. if (!a) return null;
  28047. var d = [];
  28048. a = a.split(" ");
  28049. for (var e = 0; e < a.length; e++) {
  28050. var f = a[e].split(",");
  28051. d.push({
  28052. x: f[0],
  28053. y: f[1]
  28054. })
  28055. }
  28056. return d
  28057. },
  28058. Rba: function(a) {
  28059. return this.CL(a, !0)
  28060. },
  28061. Noa: function() {
  28062. return this.Rl
  28063. },
  28064. cva: function(a) {
  28065. this.Rl.push(a)
  28066. },
  28067. Sma: function() {
  28068. return this.fK
  28069. },
  28070. Hta: function(a) {
  28071. this.fK = a
  28072. },
  28073. Hoa: function() {
  28074. return this.Ht
  28075. },
  28076. Vua: function(a) {
  28077. this.Ht = a
  28078. },
  28079. mR: function(a, d) {
  28080. this.rp.length = 0;
  28081. this.hf.length = 0;
  28082. this.Ht = a;
  28083. d && (this.lB = d);
  28084. this.SA.length = 0;
  28085. this.cc.length = 0;
  28086. this.Rl.length = 0;
  28087. this.fK = "";
  28088. this.hM = !1;
  28089. this.aD = b.so.xM;
  28090. this.parentElement = b.v1;
  28091. this.IP = 0
  28092. }
  28093. });
  28094. r = b.vu.prototype;
  28095. b.i(r, "mapWidth", r.eH, r.HI);
  28096. b.i(r, "mapHeight", r.dH, r.GI);
  28097. b.i(r, "tileWidth", r.jv, r.Qv);
  28098. b.i(r, "tileHeight", r.iv, r.Pv);
  28099. b.vu.create = function(a, d) {
  28100. return new b.vu(a, d)
  28101. };
  28102. b.Z.Bj(["tmx", "tsx"], b.oT);
  28103. b.so.xM = 1;
  28104. b.so.Gfa = 2;
  28105. b.so.Hfa = 4;
  28106. b.so.Ifa = 8;
  28107. b.t1 = b.sa.extend({
  28108. cc: null,
  28109. Ow: "",
  28110. dB: null,
  28111. Jr: null,
  28112. ctor: function() {
  28113. this.Ow = "";
  28114. this.dB = b.d(0, 0);
  28115. this.cc = [];
  28116. this.Jr = []
  28117. },
  28118. nV: function() {
  28119. return b.d(this.dB)
  28120. },
  28121. Hda: function(a) {
  28122. this.dB.x = a.x;
  28123. this.dB.y = a.y
  28124. },
  28125. tC: function() {
  28126. return this.cc
  28127. },
  28128. PD: function(a) {
  28129. this.cc.push(a)
  28130. },
  28131. tna: function() {
  28132. return this.Ow.toString()
  28133. },
  28134. $ta: function(a) {
  28135. this.Ow = a
  28136. },
  28137. fsa: function(a) {
  28138. return this.cc[a]
  28139. },
  28140. ora: function() {},
  28141. Sna: function(a) {
  28142. if (this.Jr && 0 < this.Jr.length)
  28143. for (var d = this.Jr, e = 0, f = d.length; e < f; e++) {
  28144. var g = d[e].name;
  28145. if (g && g === a) return d[e]
  28146. }
  28147. return null
  28148. },
  28149. Vna: function() {
  28150. return this.Jr
  28151. },
  28152. Bda: function(a) {
  28153. this.Jr.push(a)
  28154. }
  28155. });
  28156. b.yg = b.sb.extend({
  28157. Oe: null,
  28158. th: null,
  28159. Nn: null,
  28160. cc: null,
  28161. bD: "",
  28162. Da: null,
  28163. xc: null,
  28164. we: 255,
  28165. Uo: null,
  28166. To: null,
  28167. wJ: null,
  28168. qJ: null,
  28169. Rg: null,
  28170. Te: null,
  28171. Gg: null,
  28172. Ma: "TMXLayer",
  28173. ctor: function(a, d, e) {
  28174. b.sb.prototype.ctor.call(this);
  28175. this.Bf = [];
  28176. this.Da = b.size(0, 0);
  28177. this.xc = b.size(0, 0);
  28178. void 0 !== e && this.Faa(a, d, e)
  28179. },
  28180. Ic: function() {
  28181. return b.W === b.Jb ? new b.yg.n(this) : new b.yg.p(this)
  28182. },
  28183. Na: function(a, d) {
  28184. b.e.prototype.Na.call(this, a, d);
  28185. this.f.tT(a, d)
  28186. },
  28187. xa: function() {
  28188. return this.f.xa()
  28189. },
  28190. Cna: function() {
  28191. return b.size(this.Da.width, this.Da.height)
  28192. },
  28193. fua: function(a) {
  28194. this.Da.width = a.width;
  28195. this.Da.height = a.height
  28196. },
  28197. U3: function() {
  28198. return this.Da.width
  28199. },
  28200. Y5: function(a) {
  28201. this.Da.width = a
  28202. },
  28203. T3: function() {
  28204. return this.Da.height
  28205. },
  28206. X5: function(a) {
  28207. this.Da.height = a
  28208. },
  28209. Jna: function() {
  28210. return b.size(this.xc.width, this.xc.height)
  28211. },
  28212. lua: function(a) {
  28213. this.xc.width = a.width;
  28214. this.xc.height = a.height
  28215. },
  28216. jv: function() {
  28217. return this.xc.width
  28218. },
  28219. Qv: function(a) {
  28220. this.xc.width = a
  28221. },
  28222. iv: function() {
  28223. return this.xc.height
  28224. },
  28225. Pv: function(a) {
  28226. this.xc.height = a
  28227. },
  28228. Ooa: function() {
  28229. return this.Oe
  28230. },
  28231. dva: function(a) {
  28232. this.Oe =
  28233. a
  28234. },
  28235. Poa: function() {
  28236. return this.th
  28237. },
  28238. eva: function(a) {
  28239. this.th = a
  28240. },
  28241. Bna: function() {
  28242. return this.Nn
  28243. },
  28244. eua: function(a) {
  28245. this.Nn = a
  28246. },
  28247. tC: function() {
  28248. return this.cc
  28249. },
  28250. PD: function(a) {
  28251. this.cc = a
  28252. },
  28253. Faa: function(a, d, e) {
  28254. var f = d.Da,
  28255. g = 0.35 * parseInt(f.width * f.height) + 1,
  28256. h;
  28257. a && (h = b.Xa.Vc(a.gY));
  28258. return this.ea(h, g) ? (this.bD = d.name, this.Da = f, this.Oe = d.Jf, this.Uo = d.Uo, this.To = d.To, this.we = d.we, this.cc = d.cc, this.Gg = b.P.Gg, this.th = a, this.xc = e.Ns(), this.Nn = e.orientation, a = this.V2(d.offset), this.I(b.EL(a)), this.Te = [], this.Na(b.fY(b.size(this.Da.width *
  28259. this.xc.width, this.Da.height * this.xc.height))), this.qJ = !1, this.wJ = 0, !0) : !1
  28260. },
  28261. usa: function() {
  28262. this.Oe && (this.Oe = null);
  28263. this.Te && (this.Te = null)
  28264. },
  28265. Moa: function(a, d) {
  28266. if (!a) throw "cc.TMXLayer.getTileAt(): pos should be non-null";
  28267. void 0 !== d && (a = b.d(a, d));
  28268. if (a.x >= this.Da.width || a.y >= this.Da.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.getTileAt(): invalid position";
  28269. if (!this.Oe || !this.Te) return b.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"), null;
  28270. var e = null,
  28271. f = this.TK(a);
  28272. if (0 === f) return e;
  28273. var g = 0 | a.x + a.y * this.Da.width,
  28274. e = this.gi(g);
  28275. e || (f = this.th.nx(f), f = b.Qn(f), e = new b.B, e.ea(this.texture, f), e.batchNode = this, e.I(this.rC(a)), e.vertexZ = this.HT(a), e.anchorX = 0, e.anchorY = 0, e.opacity = this.we, f = this.ZF(g), this.P6(e, f, g));
  28276. return e
  28277. },
  28278. TK: function(a, d) {
  28279. if (null == a) throw "cc.TMXLayer.getTileGIDAt(): pos should be non-null";
  28280. void 0 !== d && (a = b.d(a, d));
  28281. if (a.x >= this.Da.width || a.y >= this.Da.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.getTileGIDAt(): invalid position";
  28282. return this.Oe && this.Te ? (this.Oe[0 | a.x + a.y *
  28283. this.Da.width] & b.tF) >>> 0 : (b.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"), null)
  28284. },
  28285. N$: function(a, d) {
  28286. if (!a) throw "cc.TMXLayer.getTileFlagsAt(): pos should be non-null";
  28287. void 0 !== d && (a = b.d(a, d));
  28288. if (a.x >= this.Da.width || a.y >= this.Da.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.getTileFlagsAt(): invalid position";
  28289. return this.Oe && this.Te ? (this.Oe[0 | a.x + a.y * this.Da.width] & b.lO) >>> 0 : (b.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"), null)
  28290. },
  28291. bva: function(a,
  28292. d, e, f) {
  28293. if (!d) throw "cc.TMXLayer.setTileGID(): pos should be non-null";
  28294. void 0 !== f ? d = b.d(d, e) : f = e;
  28295. if (d.x >= this.Da.width || d.y >= this.Da.height || 0 > d.x || 0 > d.y) throw "cc.TMXLayer.setTileGID(): invalid position";
  28296. if (this.Oe && this.Te)
  28297. if (0 !== a && a < this.th.Np) b.log("cc.TMXLayer.setTileGID(): invalid gid:" + a);
  28298. else {
  28299. f = f || 0;
  28300. this.Ll();
  28301. e = this.N$(d);
  28302. var g = this.TK(d);
  28303. if (g !== a || e !== f)
  28304. if (e = (a | f) >>> 0, 0 === a) this.yca(d);
  28305. else if (0 === g) this.F4(e, d);
  28306. else {
  28307. var g = d.x + d.y * this.Da.width,
  28308. h = this.gi(g);
  28309. h ? (a = this.th.nx(a), a = b.Qn(a), h.Fc(a, !1), null != f && this.xB(h, d, e), this.Oe[g] = e) : this.H6(e, d)
  28310. }
  28311. } else b.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released")
  28312. },
  28313. yca: function(a, d) {
  28314. if (!a) throw "cc.TMXLayer.removeTileAt(): pos should be non-null";
  28315. void 0 !== d && (a = b.d(a, d));
  28316. if (a.x >= this.Da.width || a.y >= this.Da.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.removeTileAt(): invalid position";
  28317. if (!this.Oe || !this.Te) b.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released");
  28318. else if (0 !== this.TK(a)) {
  28319. b.W === b.Jb && this.Ll();
  28320. var e = 0 | a.x + a.y * this.Da.width,
  28321. f = this.ZF(e);
  28322. this.Oe[e] = 0;
  28323. this.Te.splice(f, 1);
  28324. if (e = this.gi(e)) b.sb.prototype.removeChild.call(this, e, !0);
  28325. else if (b.W === b.ya && this.textureAtlas.sx(f), this.m)
  28326. for (var e = this.m, g = 0, h = e.length; g < h; g++) {
  28327. var k = e[g];
  28328. if (k) {
  28329. var m = k.atlasIndex;
  28330. m >= f && (k.atlasIndex = m - 1)
  28331. }
  28332. }
  28333. }
  28334. },
  28335. rC: function(a, d) {
  28336. void 0 !== d && (a = b.d(a, d));
  28337. var e = b.d(0, 0);
  28338. switch (this.Nn) {
  28339. case b.fz:
  28340. e = this.t5(a);
  28341. break;
  28342. case b.ez:
  28343. e = this.s5(a);
  28344. break;
  28345. case b.Aq:
  28346. e = this.r5(a)
  28347. }
  28348. return b.EL(e)
  28349. },
  28350. MK: function(a) {
  28351. return this.cc[a]
  28352. },
  28353. oea: function() {
  28354. this.f.PV();
  28355. this.i5();
  28356. b.W === b.Jb && this.Ll();
  28357. for (var a = this.Da.height, d = this.Da.width, e = 0; e < a; e++)
  28358. for (var f = 0; f < d; f++) {
  28359. var g = this.Oe[f + d * e];
  28360. 0 !== g && (this.N2(g, b.d(f, e)), this.Uo = Math.min(g, this.Uo), this.To = Math.max(g, this.To))
  28361. }
  28362. this.To >= this.th.Np && this.Uo >= this.th.Np || b.log("cocos2d:TMX: Only 1 tileset per layer is supported")
  28363. },
  28364. C: function() {
  28365. b.log("addChild: is not supported on cc.TMXLayer. Instead use setTileGID or tileAt.")
  28366. },
  28367. removeChild: function(a, d) {
  28368. if (a)
  28369. if (-1 === this.m.indexOf(a)) b.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer");
  28370. else {
  28371. b.W === b.Jb && this.Ll();
  28372. var e = a.atlasIndex;
  28373. this.Oe[this.Te[e]] = 0;
  28374. this.Te.splice(e, 1);
  28375. b.sb.prototype.removeChild.call(this, a, d);
  28376. b.oa.he = !0
  28377. }
  28378. },
  28379. Ana: function() {
  28380. return this.bD
  28381. },
  28382. dua: function(a) {
  28383. this.bD = a
  28384. },
  28385. s5: function(a) {
  28386. return b.d(this.xc.width / 2 * (this.Da.width + a.x - a.y - 1), this.xc.height / 2 * (2 * this.Da.height - a.x - a.y - 2))
  28387. },
  28388. t5: function(a) {
  28389. return b.d(a.x * this.xc.width, (this.Da.height - a.y - 1) * this.xc.height)
  28390. },
  28391. r5: function(a) {
  28392. return b.d(a.x * this.xc.width * 3 / 4, (this.Da.height - a.y - 1) * this.xc.height + (1 === a.x % 2 ? -this.xc.height /
  28393. 2 : 0))
  28394. },
  28395. V2: function(a) {
  28396. var d = b.d(0, 0);
  28397. switch (this.Nn) {
  28398. case b.fz:
  28399. d = b.d(a.x * this.xc.width, -a.y * this.xc.height);
  28400. break;
  28401. case b.ez:
  28402. d = b.d(this.xc.width / 2 * (a.x - a.y), this.xc.height / 2 * (-a.x - a.y));
  28403. break;
  28404. case b.Aq:
  28405. 0 === a.x && 0 === a.y || b.log("offset for hexagonal map not implemented yet")
  28406. }
  28407. return d
  28408. },
  28409. N2: function(a, d) {
  28410. var e = this.th.nx(a),
  28411. e = b.Qn(e),
  28412. f = 0 | d.x + d.y * this.Da.width,
  28413. e = this.f.mB(e);
  28414. this.xB(e, d, a);
  28415. var g = this.Te.length;
  28416. this.bW(e, g);
  28417. this.Te.splice(g, 0, f);
  28418. return e
  28419. },
  28420. F4: function(a, d) {
  28421. var e = this.th.nx(a),
  28422. e = b.Qn(e),
  28423. f =
  28424. 0 | d.x + d.y * this.Da.width,
  28425. e = this.f.mB(e);
  28426. this.xB(e, d, a);
  28427. var g = this.P2(f);
  28428. this.bW(e, g);
  28429. this.Te.splice(g, 0, f);
  28430. if (this.m)
  28431. for (var h = this.m, k = 0, m = h.length; k < m; k++) {
  28432. var n = h[k];
  28433. if (n) {
  28434. var p = n.atlasIndex;
  28435. p >= g && (n.atlasIndex = p + 1)
  28436. }
  28437. }
  28438. this.Oe[f] = a;
  28439. return e
  28440. },
  28441. H6: function(a, d) {
  28442. var e = this.th.nx(a),
  28443. f = this.Gg,
  28444. e = b.rect(e.x / f, e.y / f, e.width / f, e.height / f),
  28445. f = d.x + d.y * this.Da.width,
  28446. e = this.f.mB(e);
  28447. this.xB(e, d, a);
  28448. e.atlasIndex = this.ZF(f);
  28449. e.dirty = !0;
  28450. e.ug();
  28451. this.Oe[f] = a;
  28452. return e
  28453. },
  28454. i5: function() {
  28455. var a = this.MK("cc_vertexz");
  28456. if (a)
  28457. if ("automatic" ===
  28458. a) {
  28459. this.qJ = !0;
  28460. var d = this.MK("cc_alpha_func"),
  28461. a = 0;
  28462. d && (a = parseFloat(d));
  28463. b.W === b.ya && (this.shaderProgram = b.le.Dc(b.Yy), d = b.A.getUniformLocation(this.shaderProgram.Qp(), b.UO), this.shaderProgram.jc(), this.shaderProgram.Kx(d, a))
  28464. } else this.wJ = parseInt(a, 10)
  28465. },
  28466. xB: function(a, d, e) {
  28467. var f = d.x + d.y * this.Da.width;
  28468. a.I(this.rC(d));
  28469. b.W === b.ya ? a.vertexZ = this.HT(d) : a.tag = f;
  28470. a.anchorX = 0;
  28471. a.anchorY = 0;
  28472. a.opacity = this.we;
  28473. b.W === b.ya && (a.rotation = 0);
  28474. a.Ax(!1);
  28475. a.JD(!1);
  28476. (e & b.kO) >>> 0 ? (a.anchorX = 0.5, a.anchorY = 0.5, a.x = this.rC(d).x +
  28477. a.width / 2, a.y = this.rC(d).y + a.height / 2, d = (e & (b.wu | b.xu) >>> 0) >>> 0, d === b.wu ? a.rotation = 90 : d === b.xu ? a.rotation = 270 : (a.rotation = d === (b.xu | b.wu) >>> 0 ? 90 : 270, a.Ax(!0))) : ((e & b.wu) >>> 0 && a.Ax(!0), (e & b.xu) >>> 0 && a.JD(!0))
  28478. },
  28479. HT: function(a) {
  28480. var d = 0,
  28481. e = 0;
  28482. if (this.qJ) switch (this.Nn) {
  28483. case b.ez:
  28484. e = this.Da.width + this.Da.height;
  28485. d = -(e - (a.x + a.y));
  28486. break;
  28487. case b.fz:
  28488. d = -(this.Da.height - a.y);
  28489. break;
  28490. case b.Aq:
  28491. b.log("TMX Hexa zOrder not supported");
  28492. break;
  28493. default:
  28494. b.log("TMX invalid value")
  28495. } else d = this.wJ;
  28496. return d
  28497. },
  28498. ZF: function(a) {
  28499. var d;
  28500. if (this.Te)
  28501. for (var e = this.Te, f = 0, g = e.length; f < g && (d = e[f], d !== a); f++);
  28502. b.Vw(d) || b.log("cc.TMXLayer._atlasIndexForExistantZ(): TMX atlas index not found. Shall not happen");
  28503. return f
  28504. },
  28505. P2: function(a) {
  28506. for (var d = this.Te, e = 0, f = d.length; e < f && !(a < d[e]); e++);
  28507. return e
  28508. }
  28509. });
  28510. r = b.yg.prototype;
  28511. b.i(r, "texture", r.xa, r.Oa);
  28512. b.i(r, "layerWidth", r.U3, r.Y5);
  28513. b.i(r, "layerHeight", r.T3, r.X5);
  28514. b.i(r, "tileWidth", r.jv, r.Qv);
  28515. b.i(r, "tileHeight", r.iv, r.Pv);
  28516. b.yg.create = function(a, d, e) {
  28517. return new b.yg(a, d, e)
  28518. };
  28519. (function() {
  28520. b.yg.n = function(a) {
  28521. b.sb.n.call(this, a);
  28522. this.cb = !0;
  28523. this.mS = {
  28524. a: 1,
  28525. b: 0,
  28526. c: 0,
  28527. K: 1,
  28528. ma: 0,
  28529. na: 0
  28530. };
  28531. var e = b.ab;
  28532. a = b.ic("canvas");
  28533. a.width = e.width;
  28534. a.height = e.height;
  28535. this.df = a;
  28536. this.Ve = new b.nq(this.df.getContext("2d"));
  28537. e = new b.ja;
  28538. e.jd(a);
  28539. e.Tb();
  28540. this.fG = e;
  28541. this.Wd = !1
  28542. };
  28543. var a = b.yg.n.prototype = Object.create(b.sb.n.prototype);
  28544. a.constructor = b.yg.n;
  28545. a.Ll = function() {
  28546. this.Wd = !0
  28547. };
  28548. a.F5 = function() {
  28549. if (this.Wd) {
  28550. var a = this.Ve,
  28551. e = a.getContext(),
  28552. f = this.df;
  28553. e.setTransform(1, 0, 0, 1, 0, 0);
  28554. e.clearRect(0, 0, f.width, f.height);
  28555. for (var e =
  28556. this.k.m, f = 0, g = e.length; f < g; f++)
  28557. if (e[f]) {
  28558. var h = e[f].f;
  28559. h && (h.Eb(a, 1, 1), h.Wd = !1)
  28560. }
  28561. this.Wd = !1
  28562. }
  28563. };
  28564. a.Eb = function(a, e, f) {
  28565. var g = this.ad / 255;
  28566. if (!(0 >= g)) {
  28567. var h = this.k;
  28568. this.F5();
  28569. var k = a || b.A;
  28570. a = k.getContext();
  28571. k.ut(g);
  28572. (g = this.df) && 0 !== g.width && 0 !== g.height && (k.setTransform(this.mS, e, f), k = g.height * f, h.Nn === b.Aq ? a.drawImage(g, 0, 0, g.width, g.height, 0, -k + 0.5 * h.xc.height * f, g.width * e, k) : a.drawImage(g, 0, 0, g.width, g.height, 0, -k, g.width * e, k));
  28573. b.Of++
  28574. }
  28575. };
  28576. a.tT = function() {
  28577. var a = this.k,
  28578. e = a.U,
  28579. f = this.df,
  28580. g = b.Db();
  28581. f.width = 0 | 1.5 * e.width *
  28582. g;
  28583. f.height = 0 | 1.5 * e.height * g;
  28584. a.Nn === b.Aq ? this.Ve.Gj(0, 0.5 * -a.xc.height) : this.Ve.Gj(0, 0);
  28585. a = this.fG.U;
  28586. a.width = f.width;
  28587. a.height = f.height
  28588. };
  28589. a.xa = function() {
  28590. return this.fG
  28591. };
  28592. a.Q = function(a) {
  28593. var e = this.k,
  28594. f, g = e.m;
  28595. if (e.Ta && g && 0 !== g.length) {
  28596. if (a = a || P(this)) this.Zd = a.Zd + 1;
  28597. this.cd(a);
  28598. if (this.Wd) {
  28599. a = this.Ve;
  28600. var h = this.df,
  28601. k = a.getContext(),
  28602. m = e.ba,
  28603. n = b.oa;
  28604. n.es(m);
  28605. e.Ne();
  28606. e = 0;
  28607. for (f = g.length; e < f; e++)
  28608. if (g[e]) {
  28609. var p = g[e].f;
  28610. p && (p.Q(this), p.Wd = !1)
  28611. }
  28612. k.setTransform(1, 0, 0, 1, 0, 0);
  28613. k.clearRect(0, 0, h.width, h.height);
  28614. n.Jv(a, m);
  28615. this.Wd = !1
  28616. }
  28617. b.oa.Ec(this);
  28618. this.G = 0
  28619. }
  28620. };
  28621. a.transform = function(a, e) {
  28622. var f = this.He(),
  28623. g = this.mS;
  28624. if (a) {
  28625. var h = a.jj;
  28626. g.a = f.a * h.a + f.b * h.c;
  28627. g.b = f.a * h.b + f.b * h.K;
  28628. g.c = f.c * h.a + f.K * h.c;
  28629. g.K = f.c * h.b + f.K * h.K;
  28630. g.ma = h.a * f.ma + h.c * f.na + h.ma;
  28631. g.na = h.K * f.na + h.na + h.b * f.ma
  28632. } else g.a = f.a, g.b = f.b, g.c = f.c, g.K = f.K, g.ma = f.ma, g.na = f.na;
  28633. if (e && (f = this.k.m) && 0 !== f.length)
  28634. for (g = 0, h = f.length; g < h; g++) f[g].f.transform(this, e)
  28635. };
  28636. a.PV = function() {
  28637. this.k.th.JC = this.gc.U
  28638. };
  28639. a.mB = function(a) {
  28640. var e = this.k;
  28641. e.Rg = new b.B;
  28642. e.Rg.ea(e.f.O, a, !1);
  28643. e.Rg.batchNode = e;
  28644. e.Rg.parent =
  28645. e;
  28646. e.Rg.f.cl = e.f;
  28647. return e.Rg
  28648. }
  28649. })();
  28650. (function() {
  28651. b.yg.p = function(a) {
  28652. b.sb.p.call(this, a);
  28653. this.cb = !0
  28654. };
  28655. var a = b.yg.p.prototype = Object.create(b.sb.p.prototype);
  28656. a.constructor = b.yg.p;
  28657. a.tT = function() {};
  28658. a.PV = function() {
  28659. this.k.th.JC = this.Lb.texture.U;
  28660. this.Lb.texture.ML()
  28661. };
  28662. a.mB = function(a) {
  28663. var e = this.k;
  28664. e.Rg ? (e.Rg.batchNode = null, e.Rg.Fc(a, !1)) : (e.Rg = new b.B, e.Rg.ea(e.texture, a, !1));
  28665. e.Rg.batchNode = e;
  28666. return e.Rg
  28667. }
  28668. })();
  28669. b.YE = b.sa.extend({
  28670. Gv: null,
  28671. Ja: null,
  28672. Ru: null,
  28673. ctor: function(a, d) {
  28674. this.raa(a, d)
  28675. },
  28676. loa: function() {
  28677. return this.Gv
  28678. },
  28679. Iua: function(a) {
  28680. this.Gv = a
  28681. },
  28682. Js: function() {
  28683. return this.Ja
  28684. },
  28685. Gj: function(a) {
  28686. this.Ja = a
  28687. },
  28688. Jma: function() {
  28689. return this.Ru
  28690. },
  28691. Tca: function(a) {
  28692. this.Ru = a
  28693. },
  28694. raa: function(a, d) {
  28695. this.Gv = a;
  28696. this.Ja = d;
  28697. this.Ru = null;
  28698. return !0
  28699. }
  28700. });
  28701. b.YE.create = function(a, d) {
  28702. return new b.YE(a, d)
  28703. };
  28704. b.Rj = b.e.extend({
  28705. Yp: null,
  28706. vH: null,
  28707. Ma: "ParallaxNode",
  28708. $na: function() {
  28709. return this.Yp
  28710. },
  28711. Aua: function(a) {
  28712. this.Yp = a
  28713. },
  28714. ctor: function() {
  28715. b.e.prototype.ctor.call(this);
  28716. this.Yp = [];
  28717. this.vH = b.d(-100, -100)
  28718. },
  28719. C: function(a, d, e, f) {
  28720. if (3 === arguments.length) b.log("ParallaxNode: use addChild(child, z, ratio, offset) instead");
  28721. else {
  28722. if (!a) throw "cc.ParallaxNode.addChild(): child should be non-null";
  28723. var g = new b.YE(e, f);
  28724. g.Tca(a);
  28725. this.Yp.push(g);
  28726. a.I(this.Ca.x * e.x + f.x, this.Ca.y * e.y + f.y);
  28727. b.e.prototype.C.call(this, a, d, a.tag)
  28728. }
  28729. },
  28730. removeChild: function(a,
  28731. d) {
  28732. for (var e = this.Yp, f = 0; f < e.length; f++)
  28733. if (e[f].Ru === a) {
  28734. e.splice(f, 1);
  28735. break
  28736. }
  28737. b.e.prototype.removeChild.call(this, a, d)
  28738. },
  28739. pi: function(a) {
  28740. this.Yp.length = 0;
  28741. b.e.prototype.pi.call(this, a)
  28742. },
  28743. QB: function() {
  28744. var a = this.C2();
  28745. if (!b.DL(a, this.vH)) {
  28746. for (var d = this.Yp, e = 0, f = d.length; e < f; e++) {
  28747. var g = d[e];
  28748. g.Ru.I(-a.x + a.x * g.Gv.x + g.Js().x, -a.y + a.y * g.Gv.y + g.Js().y)
  28749. }
  28750. this.vH = a
  28751. }
  28752. },
  28753. C2: function() {
  28754. for (var a = this.Ca, d = this; null !== d.parent;) d = d.parent, a = b.yj(a, d.Pf());
  28755. return a
  28756. },
  28757. Ic: function() {
  28758. return b.W === b.Jb ? new b.Rj.n(this) : new b.Rj.p(this)
  28759. }
  28760. });
  28761. b.Rj.create = function() {
  28762. return new b.Rj
  28763. };
  28764. (function() {
  28765. b.Rj.n = function(a) {
  28766. b.e.n.call(this, a);
  28767. this.cb = !1
  28768. };
  28769. var a = b.Rj.n.prototype = Object.create(b.e.n.prototype);
  28770. a.constructor = b.Rj.n;
  28771. a.updateStatus = function() {
  28772. this.k.QB();
  28773. b.e.n.prototype.updateStatus.call(this)
  28774. };
  28775. a.cd = function(a) {
  28776. this.k.QB();
  28777. b.e.n.prototype.cd.call(this, a)
  28778. }
  28779. })();
  28780. (function() {
  28781. if (b.W === b.ya) {
  28782. b.Rj.p = function(a) {
  28783. b.e.p.call(this, a);
  28784. this.cb = !1
  28785. };
  28786. var a = b.Rj.p.prototype = Object.create(b.e.p.prototype);
  28787. a.constructor = b.Rj.p;
  28788. a.updateStatus = function() {
  28789. this.k.QB();
  28790. b.e.p.prototype.updateStatus.call(this)
  28791. };
  28792. a.cd = function(a) {
  28793. this.k.QB();
  28794. b.e.p.prototype.cd.call(this, a)
  28795. }
  28796. }
  28797. })();
  28798. (function() {
  28799. var a = b.fa,
  28800. d = {
  28801. common: {
  28802. $e: !0,
  28803. af: b.fa.cJ,
  28804. De: !0
  28805. }
  28806. };
  28807. d[a.co] = {
  28808. $e: !0,
  28809. af: b.fa.cJ,
  28810. De: !0,
  28811. Lp: !0
  28812. };
  28813. d[a.EM] = {
  28814. $e: !1,
  28815. af: !1,
  28816. De: !1
  28817. };
  28818. d[a.ao] = {
  28819. $e: !0,
  28820. af: !0,
  28821. De: !1
  28822. };
  28823. d[a.bo] = {
  28824. $e: !0,
  28825. af: !0,
  28826. De: !0,
  28827. BU: !0
  28828. };
  28829. d[a.ay] = {
  28830. $e: !0,
  28831. af: !1,
  28832. De: !1
  28833. };
  28834. d[a.hE] = {
  28835. $e: !1,
  28836. af: !1,
  28837. De: !0
  28838. };
  28839. d[a.IM] = {
  28840. $e: !1,
  28841. af: !1,
  28842. De: !1,
  28843. mt: !0,
  28844. Lp: !0
  28845. };
  28846. d[a.by] = {
  28847. $e: !1,
  28848. af: !1,
  28849. De: !1,
  28850. mt: !0,
  28851. Lp: !0
  28852. };
  28853. d[a.DM] = {
  28854. $e: !1,
  28855. af: !1,
  28856. De: !0
  28857. };
  28858. d[a.mq] = {
  28859. $e: !1,
  28860. af: !1,
  28861. De: !0
  28862. };
  28863. d[a.XY] = {
  28864. $e: !1,
  28865. af: !1,
  28866. De: !1,
  28867. mt: !0,
  28868. Lp: !0
  28869. };
  28870. d[a.JM] = {
  28871. $e: !1,
  28872. af: !1,
  28873. De: !1,
  28874. mt: !0,
  28875. Lp: !0
  28876. };
  28877. d[a.gE] = {
  28878. $e: !1,
  28879. af: !1,
  28880. De: !1,
  28881. mt: !0,
  28882. Lp: !0
  28883. };
  28884. d[a.FM] = {
  28885. $e: !1,
  28886. af: !1,
  28887. De: !1,
  28888. mt: !0,
  28889. Lp: !0
  28890. };
  28891. d[a.eo] = {
  28892. $e: !0,
  28893. af: !0,
  28894. De: !1,
  28895. LY: function(a) {
  28896. document.createElement("audio").src = a
  28897. }
  28898. };
  28899. var e, f;
  28900. try {
  28901. var g = navigator.userAgent.toLowerCase();
  28902. switch (a.di) {
  28903. case a.co:
  28904. f = g.match(/(msie |rv:)([\d.]+)/);
  28905. break;
  28906. case a.bo:
  28907. f = g.match(/(firefox\/|rv:)([\d.]+)/);
  28908. break;
  28909. case a.ao:
  28910. f = g.match(/chrome\/([\d.]+)/);
  28911. break;
  28912. case a.gE:
  28913. f = g.match(/baidubrowser\/([\d.]+)/);
  28914. break;
  28915. case a.ay:
  28916. f = g.match(/ucbrowser\/([\d.]+)/);
  28917. break;
  28918. case a.hE:
  28919. f = g.match(/qqbrowser\/([\d.]+)/);
  28920. break;
  28921. case a.IM:
  28922. f = g.match(/oupeng\/([\d.]+)/);
  28923. break;
  28924. case a.by:
  28925. f = g.match(/micromessenger\/([\d.]+)/);
  28926. break;
  28927. case a.eo:
  28928. f = g.match(/safari\/([\d.]+)/);
  28929. break;
  28930. case a.mq:
  28931. f = g.match(/miuibrowser\/([\d.]+)/)
  28932. }
  28933. e = f ? f[1] : ""
  28934. } catch (h) {
  28935. console.log(h)
  28936. }
  28937. if (e) switch (a.di) {
  28938. case a.ao:
  28939. 30 > parseInt(e) && (d[a.ao] = {
  28940. $e: !1,
  28941. af: !0,
  28942. De: !1
  28943. });
  28944. break;
  28945. case a.mq:
  28946. if (e = e.match(/\d+/g), 2 > e[0] || 2 === e[0] && 0 === e[1] && 1 >= e[2]) d[a.mq].De = !1
  28947. }
  28948. if (b.fa.Mk) b.uz = b.fa.xj !== b.fa.wq ? d[a.di] || d.common : d[a.eo];
  28949. else switch (a.di) {
  28950. case a.co:
  28951. b.uz = d[a.co];
  28952. break;
  28953. case a.bo:
  28954. b.uz = d[a.bo];
  28955. break;
  28956. default:
  28957. b.uz = d.common
  28958. }
  28959. })();
  28960. b.Mt = b.sa.extend({
  28961. volume: 1,
  28962. loop: !1,
  28963. src: null,
  28964. jT: !1,
  28965. Og: !1,
  28966. Hh: "AUDIO",
  28967. Dv: !1,
  28968. Qa: null,
  28969. il: null,
  28970. Wv: null,
  28971. dr: null,
  28972. Sb: null,
  28973. kw: null,
  28974. oH: !1,
  28975. dk: null,
  28976. ctor: function(a, d, e) {
  28977. a && (this.Sb = a);
  28978. d && (this.kw = d);
  28979. a && d && (this.Hh = "WEBAUDIO");
  28980. this.src = e
  28981. },
  28982. rB: null,
  28983. OL: function(a) {
  28984. if (a) {
  28985. var d = this.Og;
  28986. this.Hh = "WEBAUDIO";
  28987. this.Qa && this.Qa !== a && this.Hk() && this.stop();
  28988. this.Qa = a;
  28989. d && this.play();
  28990. this.kw.gain.value = this.volume;
  28991. this.rB && this.rB(a)
  28992. }
  28993. },
  28994. GS: null,
  28995. rX: function(a) {
  28996. if (a) {
  28997. var d = this.Og;
  28998. this.Hh = "AUDIO";
  28999. this.dk && this.dk !== a && this.Hk() &&
  29000. this.stop();
  29001. this.dk = a;
  29002. d && this.play();
  29003. a.volume = this.volume;
  29004. a.loop = this.loop;
  29005. this.GS && this.GS(a)
  29006. }
  29007. },
  29008. play: function(a, d) {
  29009. this.Og = !0;
  29010. this.loop = void 0 === d ? this.loop : d;
  29011. "AUDIO" === this.Hh ? this.p5(a) : this.bS(a)
  29012. },
  29013. Hk: function() {
  29014. if (!this.Og) return this.Og;
  29015. if ("AUDIO" === this.Hh) {
  29016. var a = this.dk;
  29017. return !a || this.Dv || a.ended ? this.Og = !1 : !0
  29018. }
  29019. return (a = this.il) ? null == a.playbackState ? this.Og : this.dr + this.Sb.currentTime - this.Wv < this.il.buffer.duration : !0
  29020. },
  29021. bS: function(a) {
  29022. var d = this.il;
  29023. if (this.Qa) {
  29024. if (!this.Dv && d)
  29025. if (0 === this.Sb.currentTime ||
  29026. this.dr + this.Sb.currentTime - this.Wv > this.il.buffer.duration) this.dT();
  29027. else return;
  29028. d = this.Sb.createBufferSource();
  29029. d.buffer = this.Qa;
  29030. d.connect(this.kw);
  29031. d.loop = this.loop;
  29032. this.Wv = this.Sb.currentTime;
  29033. this.dr = a || 0;
  29034. if (d.start) d.start(0, a || 0);
  29035. else if (d.noteGrainOn) {
  29036. var e = d.buffer.duration;
  29037. this.loop ? d.noteGrainOn(0, a, e) : d.noteGrainOn(0, a, e - a)
  29038. } else d.noteOn(0);
  29039. this.il = d;
  29040. var f = this;
  29041. d.onended = function() {
  29042. f.oH ? f.oH = !1 : f.Og = !1
  29043. }
  29044. }
  29045. },
  29046. p5: function() {
  29047. var a = this.dk;
  29048. a && (a.loop = this.loop, a.play())
  29049. },
  29050. stop: function() {
  29051. this.Og = !1;
  29052. "AUDIO" === this.Hh ? this.u6() : this.dT()
  29053. },
  29054. dT: function() {
  29055. var a = this.il;
  29056. this.oH = !0;
  29057. a && (a.stop(0), this.il = null)
  29058. },
  29059. u6: function() {
  29060. var a = this.dk;
  29061. a && (a.pause(), a.duration && Infinity !== a.duration && (a.currentTime = 0))
  29062. },
  29063. pause: function() {
  29064. !1 !== this.Hk() && (this.Og = !1, this.Dv = !0, "AUDIO" === this.Hh ? this.m5() : this.n5())
  29065. },
  29066. n5: function() {
  29067. this.dr += this.Sb.currentTime - this.Wv;
  29068. var a = this.il;
  29069. a && a.stop(0)
  29070. },
  29071. m5: function() {
  29072. var a = this.dk;
  29073. a && a.pause()
  29074. },
  29075. Cj: function() {
  29076. this.Dv && ("AUDIO" === this.Hh ? this.I5() : this.J5(), this.Dv = !1, this.Og = !0)
  29077. },
  29078. J5: function() {
  29079. var a = this.il;
  29080. a && (this.Wv = this.Sb.currentTime, this.bS(this.dr % a.buffer.duration))
  29081. },
  29082. I5: function() {
  29083. var a = this.dk;
  29084. a && a.play()
  29085. },
  29086. Lx: function(a) {
  29087. 1 < a && (a = 1);
  29088. 0 > a && (a = 0);
  29089. this.volume = a;
  29090. "AUDIO" === this.Hh ? this.dk && (this.dk.volume = a) : this.kw && (this.kw.gain.value = a)
  29091. },
  29092. ipa: function() {
  29093. return this.volume
  29094. },
  29095. cloneNode: function() {
  29096. var a, d;
  29097. if ("AUDIO" === this.Hh) {
  29098. a = new b.Mt;
  29099. var e = document.createElement("audio");
  29100. e.src = this.src;
  29101. a.rX(e)
  29102. } else e = this.Sb.createGain(), e.gain.value = 1, e.connect(this.Sb.destination),
  29103. a = new b.Mt(this.Sb, e, this.src), this.Qa ? a.OL(this.Qa) : (d = this, this.rB = function(e) {
  29104. a.OL(e);
  29105. d.rB = null
  29106. });
  29107. a.Hh = this.Hh;
  29108. return a
  29109. }
  29110. });
  29111. (function(a) {
  29112. var d = a.af,
  29113. e = a.$e,
  29114. f = a.De,
  29115. g = [];
  29116. (function() {
  29117. var a = document.createElement("audio");
  29118. if (a.canPlayType) {
  29119. var d = a.canPlayType('audio/ogg; codecs\x3d"vorbis"');
  29120. d && "" !== d && g.push(".ogg");
  29121. (d = a.canPlayType("audio/mpeg")) && "" !== d && g.push(".mp3");
  29122. (d = a.canPlayType('audio/wav; codecs\x3d"1"')) && "" !== d && g.push(".wav");
  29123. (d = a.canPlayType("audio/mp4")) && "" !== d && g.push(".mp4");
  29124. (a = a.canPlayType("audio/x-m4a")) && "" !== a && g.push(".m4a")
  29125. }
  29126. })();
  29127. try {
  29128. if (d) {
  29129. var h = new(window.AudioContext || window.webkitAudioContext ||
  29130. window.mozAudioContext);
  29131. a.BU && setTimeout(function() {
  29132. h = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext)
  29133. }, 0)
  29134. }
  29135. } catch (k) {
  29136. d = !1, b.log("browser don't support webAudio")
  29137. }
  29138. var m = {
  29139. td: {},
  29140. load: function(a, e, f, k) {
  29141. if (0 === g.length) return k("can not support audio!");
  29142. var n = b.path.Hn(a),
  29143. x = [n];
  29144. for (f = 0; f < g.length; f++) n !== g[f] && x.push(g[f]);
  29145. var u;
  29146. if (m.td[e]) return k(null, m.td[e]);
  29147. if (d) try {
  29148. var y = h.createGain();
  29149. y.gain.value = 1;
  29150. y.connect(h.destination);
  29151. u = new b.Mt(h, y, a)
  29152. } catch (C) {
  29153. d = !1, b.log("browser don't support webAudio"),
  29154. u = new b.Mt(null, null, a)
  29155. } else u = new b.Mt(null, null, a);
  29156. this.rL(a, x, u, k);
  29157. m.td[e] = u
  29158. },
  29159. rL: function(e, f, k, n) {
  29160. if (0 === f.length) {
  29161. var w = "can not found the resource of audio! Last match url is : ",
  29162. w = w + e.replace(/\.(.*)?$/, "(");
  29163. g.forEach(function(a) {
  29164. w += a + "|"
  29165. });
  29166. w = w.replace(/\|$/, ")");
  29167. return n(w)
  29168. }
  29169. e = b.path.gU(e, f.splice(0, 1));
  29170. if (d) {
  29171. a.LY && a.LY(e);
  29172. var x = new XMLHttpRequest;
  29173. x.open("GET", e, !0);
  29174. x.responseType = "arraybuffer";
  29175. x.onload = function() {
  29176. h.decodeAudioData(x.response, function(a) {
  29177. k.OL(a);
  29178. n(null, k)
  29179. }, function() {
  29180. m.rL(e,
  29181. f, k, n)
  29182. })
  29183. };
  29184. x.send()
  29185. } else {
  29186. var u = document.createElement("audio"),
  29187. y = !1,
  29188. C = !1,
  29189. F = setTimeout(function() {
  29190. 0 === u.readyState ? A() : (C = !0, u.pause(), document.body.removeChild(u), n("audio load timeout : " + e, k))
  29191. }, 1E4),
  29192. G = function() {
  29193. if (!y) {
  29194. u.pause();
  29195. try {
  29196. u.currentTime = 0, u.volume = 1
  29197. } catch (a) {}
  29198. document.body.removeChild(u);
  29199. k.rX(u);
  29200. u.removeEventListener("canplaythrough", G, !1);
  29201. u.removeEventListener("error", D, !1);
  29202. u.removeEventListener("emptied", A, !1);
  29203. !C && n(null, k);
  29204. y = !0;
  29205. clearTimeout(F)
  29206. }
  29207. },
  29208. D = function() {
  29209. y && (u.pause(), document.body.removeChild(u),
  29210. u.removeEventListener("canplaythrough", G, !1), u.removeEventListener("error", D, !1), u.removeEventListener("emptied", A, !1), !C && m.rL(e, f, k, n), y = !0, clearTimeout(F))
  29211. },
  29212. A = function() {
  29213. C = !0;
  29214. G();
  29215. n(null, k)
  29216. };
  29217. b.$a(u, "canplaythrough", G, !1);
  29218. b.$a(u, "error", D, !1);
  29219. a.Lp && b.$a(u, "emptied", A, !1);
  29220. u.src = e;
  29221. document.body.appendChild(u);
  29222. u.volume = 0;
  29223. u.play()
  29224. }
  29225. }
  29226. };
  29227. b.Z.Bj(["mp3", "ogg", "wav", "mp4", "m4a"], m);
  29228. b.pw = {
  29229. $j: null,
  29230. GH: 1,
  29231. Pwa: function() {
  29232. return !1
  29233. },
  29234. Zra: function(a, d) {
  29235. var e = this.$j;
  29236. e && e.src !== a && e.Hk() && e.stop();
  29237. e = m.td[a];
  29238. e || (b.Z.load(a),
  29239. e = m.td[a]);
  29240. e.play(0, d);
  29241. e.Lx(this.GH);
  29242. this.$j = e
  29243. },
  29244. Jea: function(a) {
  29245. var d = this.$j;
  29246. d && (d.stop(), a && b.Z.Ad(d.src))
  29247. },
  29248. Vra: function() {
  29249. var a = this.$j;
  29250. a && a.pause()
  29251. },
  29252. Vsa: function() {
  29253. var a = this.$j;
  29254. a && a.Cj()
  29255. },
  29256. Ysa: function() {
  29257. var a = this.$j;
  29258. a && (a.stop(), a.play())
  29259. },
  29260. Nna: function() {
  29261. return this.GH
  29262. },
  29263. nua: function(a) {
  29264. a -= 0;
  29265. isNaN(a) && (a = 1);
  29266. 1 < a && (a = 1);
  29267. 0 > a && (a = 0);
  29268. this.GH = a;
  29269. var d = this.$j;
  29270. d && d.Lx(a)
  29271. },
  29272. Spa: function() {
  29273. var a = this.$j;
  29274. return a ? a.Hk() : !1
  29275. },
  29276. Li: {},
  29277. LR: 5,
  29278. cA: 1,
  29279. bsa: function(a) {
  29280. if (!e) return null;
  29281. var d = this.Li[a];
  29282. d || (d = this.Li[a] =
  29283. []);
  29284. if (d[V]) f = d[V];
  29285. else {
  29286. var f = m.td[a];
  29287. f || (b.Z.load(a), f = m.td[a]);
  29288. f = f.cloneNode();
  29289. d.push(f)
  29290. }
  29291. return f
  29292. },
  29293. Yra: function(a, f) {
  29294. if (!e) return null;
  29295. var g = this.Li[a];
  29296. g || (g = this.Li[a] = []);
  29297. var h;
  29298. for (h = 0; h < g.length && g[h].Hk(); h++);
  29299. if (g[h]) k = g[h], k.Lx(this.cA), k.play(0, f);
  29300. else if (!d && h > this.LR) b.log("Error: %s greater than %d", a, this.LR);
  29301. else {
  29302. var k = m.td[a];
  29303. k || (b.Z.load(a), k = m.td[a]);
  29304. k = k.cloneNode();
  29305. k.Lx(this.cA);
  29306. k.loop = f || !1;
  29307. k.play();
  29308. g.push(k)
  29309. }
  29310. return k
  29311. },
  29312. Ota: function(a) {
  29313. a -= 0;
  29314. isNaN(a) && (a = 1);
  29315. 1 < a && (a = 1);
  29316. 0 > a && (a = 0);
  29317. this.cA = a;
  29318. var d = this.Li,
  29319. e;
  29320. for (e in d) {
  29321. var f = d[e];
  29322. if (Array.isArray(f))
  29323. for (var g = 0; g < f.length; g++) f[g].Lx(a)
  29324. }
  29325. },
  29326. ana: function() {
  29327. return this.cA
  29328. },
  29329. Ura: function(a) {
  29330. a && a.pause()
  29331. },
  29332. Rra: function() {
  29333. var a = this.Li,
  29334. d;
  29335. for (d in a)
  29336. for (var e = a[d], f = 0; f < a[d].length; f++) e[f].Hk() && e[f].pause()
  29337. },
  29338. Usa: function(a) {
  29339. a && a.Cj()
  29340. },
  29341. Tsa: function() {
  29342. var a = this.Li,
  29343. d;
  29344. for (d in a)
  29345. for (var e = a[d], f = 0; f < a[d].length; f++) e[f].Cj()
  29346. },
  29347. Nva: function(a) {
  29348. a && a.stop()
  29349. },
  29350. Iea: function() {
  29351. var a = this.Li,
  29352. d;
  29353. for (d in a)
  29354. for (var e = a[d], f = 0; f < a[d].length; f++) e[f].stop()
  29355. },
  29356. twa: function(a) {
  29357. if (a) {
  29358. b.Z.Ad(a);
  29359. var d = this.Li[a];
  29360. d && (d.length = 0);
  29361. delete this.Li[a];
  29362. delete m.td[a]
  29363. }
  29364. },
  29365. end: function() {
  29366. this.Jea();
  29367. this.Iea()
  29368. },
  29369. TH: [],
  29370. o5: function() {
  29371. var a = this.$j;
  29372. a && a.Hk() && (a.pause(), this.TH.push(a));
  29373. var a = this.Li,
  29374. d;
  29375. for (d in a)
  29376. for (var e = a[d], f = 0; f < a[d].length; f++) e[f].Hk() && (e[f].pause(), this.TH.push(e[f]))
  29377. },
  29378. K5: function() {
  29379. for (var a = this.TH, d = 0; d < a.length; d++) a[d].Cj();
  29380. a.length = 0
  29381. }
  29382. };
  29383. if (!f) {
  29384. var n = function() {
  29385. var d = b.pw.$j;
  29386. d && !1 === d.jT && d.Og && d.Hk() && (d.jT = !0, d.play(0, d.loop), !a.mt && b.ab.removeEventListener("touchstart",
  29387. n))
  29388. };
  29389. setTimeout(function() {
  29390. b.ab && b.ab.addEventListener("touchstart", n, !1)
  29391. }, 150)
  29392. }
  29393. b.ua.GJ(b.pb.yE, function() {
  29394. b.pw.o5()
  29395. });
  29396. b.ua.GJ(b.pb.ly, function() {
  29397. b.pw.K5()
  29398. })
  29399. })(b.uz);
  29400. b.uD = {
  29401. jf: {},
  29402. w5: function() {
  29403. this.Ad()
  29404. },
  29405. Q2: function(a) {
  29406. var d = void 0 === a.Sg ? !1 : !a.Sg;
  29407. b.P.Jn().Dj(this.w5, a, 0, 0, 0, d)
  29408. },
  29409. hca: function(a) {
  29410. var d = a.constructor.prototype.RF;
  29411. if (!d) {
  29412. var e = {
  29413. writable: !0,
  29414. enumerable: !1,
  29415. configurable: !0
  29416. };
  29417. e.value = ca.kV();
  29418. Object.defineProperty(a.constructor.prototype, "__pid", e)
  29419. }
  29420. this.jf[d] || (this.jf[d] = []);
  29421. a.AY && a.AY();
  29422. this.jf[d].push(a)
  29423. },
  29424. KV: function(a) {
  29425. return (a = this.jf[a.prototype.RF]) && 0 !== a.length ? !0 : !1
  29426. },
  29427. Hsa: function(a) {
  29428. var d = a.constructor.prototype.RF;
  29429. if (d && (d = this.jf[d]))
  29430. for (var e =
  29431. 0; e < d.length; e++) a === d[e] && (a.Ad && a.Ad(), d.splice(e, 1))
  29432. },
  29433. x9: function(a) {
  29434. if (this.KV(a)) {
  29435. var d = this.jf[a.prototype.RF],
  29436. e = Array.prototype.slice.call(arguments);
  29437. e.shift();
  29438. d = d.pop();
  29439. d.nt && d.nt.apply(d, e);
  29440. b.fa.$aa && d.Ad && this.Q2(d);
  29441. return d
  29442. }
  29443. },
  29444. h8: function() {
  29445. for (var a in this.jf)
  29446. for (var d = 0; d < this.jf[a].length; d++) {
  29447. var e = this.jf[a][d];
  29448. e.Ad && e.Ad()
  29449. }
  29450. this.jf = {}
  29451. }
  29452. };
  29453. b.kE = 9;
  29454. b.lZ = 1;
  29455. b.oZ = 2;
  29456. b.pZ = 4;
  29457. b.mZ = 8;
  29458. b.nZ = 16;
  29459. b.qZ = 32;
  29460. b.rZ = 64;
  29461. b.kZ = 128;
  29462. b.Lj = 256;
  29463. b.vg = 1;
  29464. b.tZ = 2;
  29465. b.sZ = 4;
  29466. b.iga = 8;
  29467. b.hga = 8;
  29468. b.mb = b.Ua.extend({
  29469. sR: !1,
  29470. hja: !1,
  29471. hj: null,
  29472. Ma: "Control",
  29473. tf: function() {
  29474. return this.sR
  29475. },
  29476. Le: function(a) {
  29477. this.sR = a;
  29478. for (var d = this.m, e = 0, f = d.length; e < f; e++) {
  29479. var g = d[e];
  29480. g && g.Le(a)
  29481. }
  29482. },
  29483. mc: b.vg,
  29484. K$: function() {
  29485. return this.mc
  29486. },
  29487. Fd: !1,
  29488. qB: !1,
  29489. pl: !1,
  29490. $z: null,
  29491. Gb: function(a) {
  29492. this.mc = (this.Fd = a) ? b.vg : b.sZ;
  29493. this.Od()
  29494. },
  29495. isEnabled: function() {
  29496. return this.Fd
  29497. },
  29498. eq: function(a) {
  29499. this.qB = a;
  29500. this.Od()
  29501. },
  29502. VC: function() {
  29503. return this.qB
  29504. },
  29505. om: function(a) {
  29506. this.pl = a;
  29507. this.Od()
  29508. },
  29509. Xaa: function() {
  29510. return this.pl
  29511. },
  29512. iaa: function() {
  29513. for (var a = this.getParent(); null !=
  29514. a; a = a.getParent())
  29515. if (!a.Ta) return !1;
  29516. return !0
  29517. },
  29518. ctor: function() {
  29519. b.Ua.prototype.ctor.call(this);
  29520. this.$z = {};
  29521. this.te = b.color.WHITE
  29522. },
  29523. T: function() {
  29524. if (b.Ua.prototype.T.call(this)) {
  29525. this.mc = b.vg;
  29526. this.Fd = !0;
  29527. this.pl = this.qB = !1;
  29528. var a = b.ia.create({
  29529. event: b.ia.to,
  29530. tm: !0
  29531. });
  29532. this.Qb && (a.Qb = this.Qb.bind(this));
  29533. this.xd && (a.xd = this.xd.bind(this));
  29534. this.Oc && (a.Oc = this.Oc.bind(this));
  29535. this.uf && (a.uf = this.uf.bind(this));
  29536. this.hj = a;
  29537. return !0
  29538. }
  29539. return !1
  29540. },
  29541. aa: function() {
  29542. var a = this.hj;
  29543. a.Hf || b.ua.addListener(a, this);
  29544. b.e.prototype.aa.call(this)
  29545. },
  29546. vf: function(a) {
  29547. for (var d = 0, e = b.kE; d < e; d++)
  29548. if (a & 1 << d)
  29549. for (var f = this.EG(1 << d), g = 0, h = f.length; g < h; g++) f[g].Oaa(this)
  29550. },
  29551. RT: function(a, d, e) {
  29552. for (var f = 0, g = b.kE; f < g; f++) e & 1 << f && this.G2(a, d, 1 << f)
  29553. },
  29554. Nsa: function(a, d, e) {
  29555. for (var f = 0, g = b.kE; f < g; f++) e & 1 << f && this.z5(a, d, 1 << f)
  29556. },
  29557. Ik: function(a) {
  29558. return this.Ck(a.hi())
  29559. },
  29560. rj: function(a) {
  29561. a = a.hi();
  29562. a = this.getParent().Ck(a);
  29563. return b.mx(this.ud(), a)
  29564. },
  29565. jja: function() {
  29566. return null
  29567. },
  29568. EG: function(a) {
  29569. a = a.toString();
  29570. this.$z[a] || (this.$z[a] = []);
  29571. return this.$z[a]
  29572. },
  29573. G2: function(a, d, e) {
  29574. a =
  29575. new b.o_(a, d, e);
  29576. this.EG(e).push(a)
  29577. },
  29578. z5: function(a, d, e) {
  29579. e = this.EG(e);
  29580. if (a || d)
  29581. for (var f = 0; f < e.length;) {
  29582. var g = e[f],
  29583. h = !0;
  29584. a && (h = a === g.CV());
  29585. d && (h = h && d === g.Bg);
  29586. h ? b.ge(e, g) : f++
  29587. } else e.length = 0
  29588. },
  29589. Od: function() {}
  29590. });
  29591. r = b.mb.prototype;
  29592. b.i(r, "state", r.K$);
  29593. b.i(r, "enabled", r.isEnabled, r.Gb);
  29594. b.i(r, "selected", r.VC, r.eq);
  29595. b.i(r, "highlighted", r.Xaa, r.om);
  29596. r = null;
  29597. b.mb.create = function() {
  29598. var a = new b.mb;
  29599. return a && a.T() ? a : null
  29600. };
  29601. b.QM = 3435855873;
  29602. b.oE = b.mb.extend({
  29603. av: !1,
  29604. Yx: !1,
  29605. kf: null,
  29606. pv: null,
  29607. Xu: null,
  29608. Uz: null,
  29609. tp: null,
  29610. Ue: null,
  29611. we: 0,
  29612. Cr: !1,
  29613. JB: null,
  29614. aw: null,
  29615. KB: null,
  29616. wo: null,
  29617. YR: !1,
  29618. JA: 0,
  29619. IA: 0,
  29620. Ma: "ControlButton",
  29621. ctor: function(a, d, e) {
  29622. b.mb.prototype.ctor.call(this);
  29623. this.kf = b.size(0, 0);
  29624. this.pv = b.d(0, 0);
  29625. this.Xu = "";
  29626. this.Uz = b.color.WHITE;
  29627. this.JB = {};
  29628. this.aw = {};
  29629. this.KB = {};
  29630. this.wo = {};
  29631. void 0 != e ? this.Haa(a, d, e) : void 0 != d ? this.OC(a, d) : void 0 != a ? this.qaa(a) : this.T()
  29632. },
  29633. T: function() {
  29634. return this.OC(new b.M("", "Arial", 12), new b.ga)
  29635. },
  29636. Od: function() {
  29637. if (this.YR) {
  29638. this.tp && this.tp.Ci(!1);
  29639. this.Ue && this.Ue.Ci(!1);
  29640. this.zX(this.pv);
  29641. var a = this.mc;
  29642. this.Xu = this.UK(a);
  29643. this.Uz = this.P$(a);
  29644. var d = this.tp = this.Lw(a);
  29645. d && d.Wc && d.Wc(this.Xu);
  29646. d && d.X(this.Uz);
  29647. var e = this.L();
  29648. d && d.I(e.width / 2, e.height / 2);
  29649. (a = this.Ue = this.X8(a)) && a.I(e.width / 2, e.height / 2);
  29650. e = b.size(0, 0);
  29651. if (d) {
  29652. var f = d.ud();
  29653. e.width = f.width;
  29654. e.height = f.height
  29655. }
  29656. this.av ? a && a.Na(e.width + 2 * this.IA, e.height + 2 * this.JA) : a && (f = a.sC(), f = b.size(f.width, f.height), 0 >= f.width && (f.width = e.width), 0 >= f.height && (f.height = e.height), a.Na(f));
  29657. e = d ? d.ud() : b.rect(0,
  29658. 0, 0, 0);
  29659. f = a ? a.ud() : b.rect(0, 0, 0, 0);
  29660. e = b.kt(e, f);
  29661. this.Na(e.width, e.height);
  29662. e = this.L();
  29663. d && (d.I(e.width / 2, e.height / 2), d.Ci(!0));
  29664. a && (a.I(e.width / 2, e.height / 2), a.Ci(!0))
  29665. }
  29666. },
  29667. OC: function(a, d) {
  29668. if (!a) throw "cc.ControlButton.initWithLabelAndBackgroundSprite(): label should be non-null";
  29669. if (!d) throw "cc.ControlButton.initWithLabelAndBackgroundSprite(): backgroundSprite should be non-null";
  29670. return b.mb.prototype.T.call(this, !0) ? (this.YR = !0, this.JB = {}, this.aw = {}, this.KB = {}, this.wo = {}, this.Cr = !1, this.Yx = !0, this.Xu = null,
  29671. this.gX(!0), this.Qk(b.size(0, 0)), this.Yx = !0, this.pj(!1), this.rb(0.5, 0.5), this.tp = a, this.Ue = d, this.Hb(255), this.Le(!0), this.aea(a.am(), b.vg), this.$da(a.rf(), b.vg), this.ZL(a, b.vg), this.jX(d, b.vg), this.mc = b.vg, this.IA = 24, this.JA = 12, this.pv = b.d(0.5, 0.5), this.Qk(b.size(0, 0)), this.Od(), !0) : !1
  29672. },
  29673. Haa: function(a, d, e) {
  29674. a = new b.M(a, d, e);
  29675. return this.OC(a, new b.ga)
  29676. },
  29677. qaa: function(a) {
  29678. var d = new b.M("", "Arial", 30);
  29679. return this.OC(d, a)
  29680. },
  29681. fla: function() {
  29682. return this.av
  29683. },
  29684. gX: function(a) {
  29685. this.av = a;
  29686. this.Od()
  29687. },
  29688. kpa: function() {
  29689. return this.Yx
  29690. },
  29691. Eva: function(a) {
  29692. return this.Yx = a
  29693. },
  29694. sC: function() {
  29695. return this.kf
  29696. },
  29697. Qk: function(a) {
  29698. if (0 === a.width && 0 === a.height) this.av = !0;
  29699. else {
  29700. this.av = !1;
  29701. var d = this.wo,
  29702. e;
  29703. for (e in d) d[e].Qk(a)
  29704. }
  29705. this.kf = a;
  29706. this.Od()
  29707. },
  29708. L9: function() {
  29709. return this.pv
  29710. },
  29711. zX: function(a) {
  29712. this.pv = a;
  29713. this.tp && this.tp.rb(a)
  29714. },
  29715. Ria: function() {
  29716. return this.Xu
  29717. },
  29718. Sia: function() {
  29719. return this.Uz
  29720. },
  29721. bh: function() {
  29722. return this.we
  29723. },
  29724. Hb: function(a) {
  29725. b.mb.prototype.Hb.call(this, a);
  29726. var d = this.wo,
  29727. e;
  29728. for (e in d) d[e].Hb(a)
  29729. },
  29730. X: function(a) {
  29731. b.mb.prototype.X.call(this, a);
  29732. var d = this.wo,
  29733. e;
  29734. for (e in d) d[e].X(a)
  29735. },
  29736. rf: function() {
  29737. var a = this.Qg;
  29738. return b.color(a.r, a.g, a.b, a.a)
  29739. },
  29740. $pa: function() {
  29741. return this.Cr
  29742. },
  29743. eja: function() {
  29744. return this.JA
  29745. },
  29746. Xia: function() {
  29747. return this.IA
  29748. },
  29749. mua: function(a, d) {
  29750. this.JA = d;
  29751. this.IA = a;
  29752. this.Od()
  29753. },
  29754. Gb: function(a) {
  29755. b.mb.prototype.Gb.call(this, a);
  29756. this.Od()
  29757. },
  29758. eq: function(a) {
  29759. b.mb.prototype.eq.call(this, a);
  29760. this.Od()
  29761. },
  29762. om: function(a) {
  29763. this.mc = a ? b.tZ : b.vg;
  29764. b.mb.prototype.om.call(this, a);
  29765. (a = this.lC(b.QM)) && this.nY(a);
  29766. this.Yx && (a = b.rg(0.05, this.pl && this.isEnabled() && !this.VC() ? 1.1 :
  29767. 1), a.Ix(b.QM), this.Ba(a))
  29768. },
  29769. Qb: function(a) {
  29770. if (!(this.rj(a) && this.isEnabled() && this.Ta && this.iaa())) return !1;
  29771. this.Cr = !0;
  29772. this.om(!0);
  29773. this.vf(b.lZ);
  29774. return !0
  29775. },
  29776. xd: function(a) {
  29777. this.Fd && this.Cr && !this.qB ? (a = this.rj(a)) && !this.pl ? (this.om(!0), this.vf(b.mZ)) : a && this.pl ? this.vf(b.oZ) : !a && this.pl ? (this.om(!1), this.vf(b.nZ)) : a || this.pl || this.vf(b.pZ) : this.pl && this.om(!1)
  29778. },
  29779. Oc: function(a) {
  29780. this.Cr = !1;
  29781. this.om(!1);
  29782. this.rj(a) ? this.vf(b.qZ) : this.vf(b.rZ)
  29783. },
  29784. uf: function() {
  29785. this.Cr = !1;
  29786. this.om(!1);
  29787. this.vf(b.kZ)
  29788. },
  29789. UK: function(a) {
  29790. var d =
  29791. this.JB;
  29792. return d ? d[a] ? d[a] : d[b.vg] : ""
  29793. },
  29794. aea: function(a, d) {
  29795. this.JB[d] = a || "";
  29796. this.mc === d && this.Od()
  29797. },
  29798. P$: function(a) {
  29799. return (a = this.aw[a]) ? a : (a = this.aw[b.vg]) ? a : b.color.WHITE
  29800. },
  29801. $da: function(a, d) {
  29802. this.aw[d] = a;
  29803. this.mc === d && this.Od()
  29804. },
  29805. Lw: function(a) {
  29806. var d = this.KB;
  29807. return d[a] ? d[a] : d[b.vg]
  29808. },
  29809. ZL: function(a, d) {
  29810. var e = this.KB;
  29811. if (e[d]) {
  29812. var f = e[d];
  29813. f && this.removeChild(f, !0)
  29814. }
  29815. e[d] = a;
  29816. a.Ci(!1);
  29817. a.rb(0.5, 0.5);
  29818. this.C(a, 1);
  29819. this.mc === d && this.Od()
  29820. },
  29821. iva: function(a, d) {
  29822. var e = this.UK(d);
  29823. e || (e = "");
  29824. this.ZL(new b.M(e, a, 12), d)
  29825. },
  29826. Toa: function(a) {
  29827. a =
  29828. this.Lw(a);
  29829. return null != a && a instanceof b.M ? a.ec : ""
  29830. },
  29831. jva: function(a, d) {
  29832. var e = this.Lw(d);
  29833. null != e && e instanceof b.M && e.Bx(a)
  29834. },
  29835. Uoa: function(a) {
  29836. a = this.Lw(a);
  29837. return null != a && a instanceof b.M ? a.fc : 0
  29838. },
  29839. hva: function(a, d) {
  29840. var e = this.UK(d);
  29841. e || (e = "");
  29842. this.ZL(new b.xg(e, a), d)
  29843. },
  29844. Soa: function(a) {
  29845. a = this.Lw(a);
  29846. return null != a && a instanceof b.xg ? a.ev : ""
  29847. },
  29848. X8: function(a) {
  29849. var d = this.wo;
  29850. return d[a] ? d[a] : d[b.vg]
  29851. },
  29852. jX: function(a, d) {
  29853. var e = this.wo;
  29854. if (e[d]) {
  29855. var f = e[d];
  29856. f && this.removeChild(f, !0)
  29857. }
  29858. e[d] = a;
  29859. a.Ci(!1);
  29860. a.rb(0.5, 0.5);
  29861. this.C(a);
  29862. e = this.kf;
  29863. 0 === e.width && 0 === e.height || a.Qk(e);
  29864. this.mc === d && this.Od()
  29865. },
  29866. tta: function(a, d) {
  29867. var e = b.ga.vU(a);
  29868. this.jX(e, d)
  29869. }
  29870. });
  29871. r = b.oE.prototype;
  29872. b.i(r, "adjustBackground", r.wma, r.gX);
  29873. b.i(r, "preferredSize", r.sC, r.Qk);
  29874. b.i(r, "labelAnchor", r.L9, r.zX);
  29875. r = null;
  29876. b.oE.create = function(a, d, e) {
  29877. return new b.oE(a, d, e)
  29878. };
  29879. function Ba() {
  29880. this.a = this.b = this.g = this.r = void 0
  29881. }
  29882. b.FE = function(a, d, e) {
  29883. this.wd = a;
  29884. this.ih = d;
  29885. this.v = e
  29886. };
  29887. b.Pe = {};
  29888. b.Pe.Cp = function(a, d, e, f) {
  29889. a = new b.B("#" + a);
  29890. if (!a) return null;
  29891. a.I(e);
  29892. a.rb(f);
  29893. d.C(a);
  29894. return a
  29895. };
  29896. b.Pe.e_ = function(a) {
  29897. var d = new b.FE,
  29898. e, f;
  29899. e = a.r < a.g ? a.r : a.g;
  29900. e = e < a.b ? e : a.b;
  29901. f = a.r > a.g ? a.r : a.g;
  29902. f = f > a.b ? f : a.b;
  29903. d.v = f;
  29904. e = f - e;
  29905. if (0 < f) d.ih = e / f;
  29906. else return d.ih = 0, d.wd = -1, d;
  29907. d.wd = a.r >= f ? (a.g - a.b) / e : a.g >= f ? 2 + (a.b - a.r) / e : 4 + (a.r - a.g) / e;
  29908. d.wd *= 60;
  29909. 0 > d.wd && (d.wd += 360);
  29910. return d
  29911. };
  29912. b.Pe.hF = function(a) {
  29913. var d, e, f, g, h = new Ba;
  29914. h.a = 1;
  29915. if (0 >= a.ih) {
  29916. if (!a.wd) return h.r = a.v, h.g = a.v, h.b = a.v, h;
  29917. h.r = 0;
  29918. h.g = 0;
  29919. h.b = 0;
  29920. return h
  29921. }
  29922. d = a.wd;
  29923. 360 <= d && (d = 0);
  29924. d /= 60;
  29925. g = 0 | d;
  29926. f = d - g;
  29927. d = a.v * (1 - a.ih);
  29928. e = a.v * (1 - a.ih * f);
  29929. f = a.v * (1 - a.ih * (1 - f));
  29930. switch (g) {
  29931. case 0:
  29932. h.r = a.v;
  29933. h.g = f;
  29934. h.b = d;
  29935. break;
  29936. case 1:
  29937. h.r = e;
  29938. h.g = a.v;
  29939. h.b = d;
  29940. break;
  29941. case 2:
  29942. h.r = d;
  29943. h.g = a.v;
  29944. h.b = f;
  29945. break;
  29946. case 3:
  29947. h.r = d;
  29948. h.g = e;
  29949. h.b = a.v;
  29950. break;
  29951. case 4:
  29952. h.r = f;
  29953. h.g = d;
  29954. h.b = a.v;
  29955. break;
  29956. default:
  29957. h.r = a.v, h.g = d, h.b = e
  29958. }
  29959. return h
  29960. };
  29961. b.Pe.MM = function(a, d) {
  29962. return b.kt(a, d)
  29963. };
  29964. b.o_ = b.sa.extend({
  29965. Bg: null,
  29966. Xb: null,
  29967. Sz: null,
  29968. ctor: function(a, d, e) {
  29969. this.Xb = a;
  29970. this.Bg = d;
  29971. this.Sz = e
  29972. },
  29973. vma: function() {
  29974. return this.Bg
  29975. },
  29976. CV: function() {
  29977. return this.Xb
  29978. },
  29979. Rma: function() {
  29980. return this.Sz
  29981. },
  29982. Oaa: function(a) {
  29983. if (this.Xb && this.Bg)
  29984. if (b.Je(this.Bg)) this.Xb[this.Bg](a, this.Sz);
  29985. else this.Bg.call(this.Xb, a, this.Sz)
  29986. }
  29987. });
  29988. b.ga = b.e.extend({
  29989. Sr: null,
  29990. uP: null,
  29991. xe: !1,
  29992. zc: null,
  29993. yn: null,
  29994. up: null,
  29995. zn: null,
  29996. So: null,
  29997. dl: null,
  29998. ip: null,
  29999. Qm: null,
  30000. xo: null,
  30001. yo: null,
  30002. pn: !0,
  30003. Cb: !1,
  30004. Mg: null,
  30005. kf: null,
  30006. we: 0,
  30007. te: null,
  30008. Wq: null,
  30009. tA: 0,
  30010. vA: 0,
  30011. uA: 0,
  30012. sA: 0,
  30013. XS: !1,
  30014. YI: !1,
  30015. R: !1,
  30016. Ma: "Scale9Sprite",
  30017. uc: !1,
  30018. vc: !1,
  30019. Et: function() {
  30020. return this.R
  30021. },
  30022. ls: function(a, d) {
  30023. this.addEventListener("load", a, d)
  30024. },
  30025. NB: function() {
  30026. var a;
  30027. a = this.tA;
  30028. var d = this.vA,
  30029. e = this.uA,
  30030. f = this.Sr,
  30031. g = this.sA;
  30032. a = 0 === a && 0 === d && 0 === e && 0 === g ? b.rect(0, 0, 0, 0) : this.YI ? b.rect(g, a, f.width - e - a, f.height - d - g) : b.rect(a, d, f.width - a -
  30033. e, f.height - d - g);
  30034. this.lX(a)
  30035. },
  30036. fw: function() {
  30037. if (this.yn && this.zn && this.yo && this.Qm && this.dl) {
  30038. var a = this.U,
  30039. d = this.yn,
  30040. e = this.zn,
  30041. f = this.yo,
  30042. g = this.Qm,
  30043. h = this.dl,
  30044. k = this.dl.L(),
  30045. m = d.L(),
  30046. n = g.L(),
  30047. p = a.width - m.width - e.L().width,
  30048. a = a.height - m.height - f.L().height,
  30049. p = p / k.width,
  30050. a = a / k.height,
  30051. m = k.width * p,
  30052. s = k.height * a,
  30053. t = n.width,
  30054. n = n.height;
  30055. if (b.W === b.ya) {
  30056. var v = Math.round(m);
  30057. m !== v && (m = v, p = m / k.width);
  30058. v = Math.round(s);
  30059. s !== v && (s = v, a = s / k.height)
  30060. }
  30061. h.oh(p);
  30062. h.ph(a);
  30063. var k = this.So,
  30064. v = this.ip,
  30065. w = this.up,
  30066. x = this.xo,
  30067. u = b.d(0, 0);
  30068. g.rb(u);
  30069. f.rb(u);
  30070. d.rb(u);
  30071. e.rb(u);
  30072. k.rb(u);
  30073. v.rb(u);
  30074. w.rb(u);
  30075. x.rb(u);
  30076. h.rb(u);
  30077. g.I(0, 0);
  30078. f.I(t + m, 0);
  30079. d.I(0, n + s);
  30080. e.I(t + m, n + s);
  30081. k.I(0, n);
  30082. k.ph(a);
  30083. v.I(t + m, n);
  30084. v.ph(a);
  30085. x.I(t, 0);
  30086. x.oh(p);
  30087. w.I(t, n + s);
  30088. w.oh(p);
  30089. h.I(t, n)
  30090. }
  30091. },
  30092. ctor: function(a, d, e) {
  30093. b.e.prototype.ctor.call(this);
  30094. this.Sr = b.rect(0, 0, 0, 0);
  30095. this.uP = b.rect(0, 0, 0, 0);
  30096. this.Mg = b.size(0, 0);
  30097. this.kf = b.size(0, 0);
  30098. this.Wq = b.rect(0, 0, 0, 0);
  30099. if (void 0 != a)
  30100. if (a instanceof b.Se) this.qg(a, d);
  30101. else {
  30102. var f = b.sh.og(a);
  30103. null != f ? this.qg(f, d) : this.em(a, d, e)
  30104. } else this.T()
  30105. },
  30106. OK: function() {
  30107. return this.zc
  30108. },
  30109. Iw: function() {
  30110. return b.size(this.Mg)
  30111. },
  30112. sC: function() {
  30113. return b.size(this.kf)
  30114. },
  30115. aja: function() {
  30116. return this.kf.width
  30117. },
  30118. $ia: function() {
  30119. return this.kf.height
  30120. },
  30121. Qk: function(a) {
  30122. this.Na(a);
  30123. this.kf = a;
  30124. this.xe && (this.fw(), this.xe = !1, this.pn = !0)
  30125. },
  30126. Cja: function(a) {
  30127. this.cj(a);
  30128. this.kf.width = a
  30129. },
  30130. Bja: function(a) {
  30131. this.bj(a);
  30132. this.kf.height = a
  30133. },
  30134. Hb: function(a) {
  30135. if (this.zc) {
  30136. b.e.prototype.Hb.call(this, a);
  30137. for (var d = this.zc.m, e = 0; e < d.length; e++) {
  30138. var f = d[e];
  30139. f && f.Hb(a)
  30140. }
  30141. this.pn = !0
  30142. }
  30143. },
  30144. X: function(a) {
  30145. if (this.zc) {
  30146. b.e.prototype.X.call(this, a);
  30147. for (var d = this.zc.m, e = 0; e < d.length; e++) {
  30148. var f =
  30149. d[e];
  30150. f && f.X(a)
  30151. }
  30152. this.pn = !0
  30153. }
  30154. },
  30155. c9: function() {
  30156. return b.rect(this.Wq)
  30157. },
  30158. lX: function(a) {
  30159. if (this.zc) {
  30160. var d = this.U,
  30161. e = d.width,
  30162. d = d.height;
  30163. this.Jt(this.zc, this.Sr, this.YI, a);
  30164. this.Na(e, d)
  30165. }
  30166. },
  30167. G9: function() {
  30168. return this.tA
  30169. },
  30170. lda: function(a) {
  30171. this.tA = a;
  30172. this.NB()
  30173. },
  30174. I9: function() {
  30175. return this.vA
  30176. },
  30177. nda: function(a) {
  30178. this.vA = a;
  30179. this.NB()
  30180. },
  30181. H9: function() {
  30182. return this.uA
  30183. },
  30184. mda: function(a) {
  30185. this.uA = a;
  30186. this.NB()
  30187. },
  30188. F9: function() {
  30189. return this.sA
  30190. },
  30191. kda: function(a) {
  30192. this.sA = a;
  30193. this.NB()
  30194. },
  30195. Na: function(a, d) {
  30196. b.e.prototype.Na.call(this, a, d);
  30197. this.xe = !0
  30198. },
  30199. cj: function(a) {
  30200. b.e.prototype.cj.call(this, a);
  30201. this.xe = !0
  30202. },
  30203. bj: function(a) {
  30204. b.e.prototype.bj.call(this, a);
  30205. this.xe = !0
  30206. },
  30207. T: function() {
  30208. return this.MC(null, b.rect(0, 0, 0, 0), !1, b.rect(0, 0, 0, 0))
  30209. },
  30210. MC: function(a, d, e, f) {
  30211. void 0 === f && (f = e, e = !1);
  30212. a && this.Jt(a, d, e, f);
  30213. this.nX(!0);
  30214. this.qt(!0);
  30215. this.rb(0.5, 0.5);
  30216. return this.xe = !0
  30217. },
  30218. em: function(a, d, e) {
  30219. a instanceof b.Dh ? (e = a = d, d = b.rect(0, 0, 0, 0)) : (d = d || b.rect(0, 0, 0, 0), e = e || b.rect(0, 0, 0, 0));
  30220. if (!a) throw "cc.Scale9Sprite.initWithFile(): file should be non-null";
  30221. var f = b.Xa.Kn(a);
  30222. f || (f = b.Xa.Vc(a));
  30223. var g = f.R;
  30224. (this.R = g) || f.addEventListener("load", function(a) {
  30225. var d = this.kf,
  30226. e = 0 !== d.width || 0 !== d.height;
  30227. e && (d = b.size(d.width, d.height));
  30228. a = a.L();
  30229. this.Jt(this.zc, b.rect(0, 0, a.width, a.height), !1, this.Wq);
  30230. e && this.Qk(d);
  30231. this.xe = !0;
  30232. this.dispatchEvent("load")
  30233. }, this);
  30234. return this.MC(new b.sb(a, 9), d, !1, e)
  30235. },
  30236. qg: function(a, d) {
  30237. if (!a || !a.xa()) throw "cc.Scale9Sprite.initWithSpriteFrame(): spriteFrame should be non-null and its texture should be non-null";
  30238. d = d || b.rect(0, 0, 0, 0);
  30239. var e = a.R;
  30240. (this.R = e) ||
  30241. a.addEventListener("load", function(a) {
  30242. var d = this.kf,
  30243. e = 0 !== d.width || 0 !== d.height;
  30244. e && (d = b.size(d.width, d.height));
  30245. this.Jt(this.zc, a.dh(), b.W === b.ya && a.ye, this.Wq);
  30246. e && this.Qk(d);
  30247. this.xe = !0;
  30248. this.dispatchEvent("load")
  30249. }, this);
  30250. e = new b.sb(a.xa(), 9);
  30251. return this.MC(e, a.dh(), b.W === b.ya && a.ye, d)
  30252. },
  30253. Baa: function(a, d) {
  30254. if (!a) throw "cc.Scale9Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null";
  30255. d = d || b.rect(0, 0, 0, 0);
  30256. var e = b.sh.og(a);
  30257. return null == e ? (b.log("cc.Scale9Sprite.initWithSpriteFrameName(): can't find the sprite frame by spriteFrameName"), !1) : this.qg(e, d)
  30258. },
  30259. Qsa: function(a) {
  30260. var d = new b.ga;
  30261. return d && d.MC(this.zc, this.Sr, !1, a) ? d : null
  30262. },
  30263. Le: function(a) {
  30264. if (this.zc) {
  30265. this.Cb = a;
  30266. var d = this.zc.m;
  30267. if (d)
  30268. for (var e = 0, f = d.length; e < f; e++) d[e].Le(a)
  30269. }
  30270. },
  30271. tf: function() {
  30272. return this.Cb
  30273. },
  30274. Jt: function(a, d, e, f) {
  30275. var g = this.bh(),
  30276. h = this.rf();
  30277. d = b.rect(d.x, d.y, d.width, d.height);
  30278. this.pi(!0);
  30279. this.zc !== a && (this.zc = a);
  30280. if (!this.zc) return !1;
  30281. a = a.xa();
  30282. var k = a.R;
  30283. this.R = k;
  30284. var m = this.Wq;
  30285. m.x = f.x;
  30286. m.y = f.y;
  30287. m.width = f.width;
  30288. m.height = f.height;
  30289. if (!k) return a.addEventListener("load", function() {
  30290. this.xe = !0;
  30291. this.dispatchEvent("load")
  30292. }, this), !0;
  30293. a = this.zc;
  30294. a.pi(!0);
  30295. this.YI = e;
  30296. k = a.xa();
  30297. b.Iv(d) && (d = k.L(), d = b.rect(0, 0, d.width, d.height));
  30298. m = this.Sr = d;
  30299. m.x = d.x;
  30300. m.y = d.y;
  30301. m.width = d.width;
  30302. m.height = d.height;
  30303. this.Mg.width = d.width;
  30304. this.Mg.height = d.height;
  30305. m = this.kf;
  30306. 0 === m.width && 0 === m.height && (m.width = d.width, m.height = d.height);
  30307. m = this.uP;
  30308. f && (m.x = f.x, m.y = f.y, m.width = f.width, m.height = f.height);
  30309. var n = d.width;
  30310. f = d.height;
  30311. b.Iv(m) && (m.x = n / 3, m.y = f / 3, m.width = n / 3, m.height = f / 3);
  30312. var p = m.x,
  30313. s = m.width,
  30314. t = n - (p + s),
  30315. v = m.y,
  30316. w = m.height,
  30317. x = f -
  30318. (v + w),
  30319. u = 0,
  30320. y = 0;
  30321. f = b.rect(u + 0.5 | 0, y + 0.5 | 0, p + 0.5 | 0, v + 0.5 | 0);
  30322. var u = u + p,
  30323. m = b.rect(u + 0.5 | 0, y + 0.5 | 0, s + 0.5 | 0, v + 0.5 | 0),
  30324. n = b.rect(u + s + 0.5 | 0, y + 0.5 | 0, t + 0.5 | 0, v + 0.5 | 0),
  30325. u = 0,
  30326. y = 0 + v,
  30327. C = b.rect(u + 0.5 | 0, y + 0.5 | 0, p + 0.5 | 0, w + 0.5 | 0),
  30328. u = u + p,
  30329. F = b.rect(u + 0.5 | 0, y + 0.5 | 0, s + 0.5 | 0, w + 0.5 | 0),
  30330. u = u + s,
  30331. G = b.rect(u + 0.5 | 0, y + 0.5 | 0, t + 0.5 | 0, w + 0.5 | 0),
  30332. u = 0,
  30333. y = 0 + v + w,
  30334. v = b.rect(u + 0.5 | 0, y + 0.5 | 0, p + 0.5 | 0, x + 0.5 | 0),
  30335. u = u + p,
  30336. p = b.rect(u + 0.5 | 0, y + 0.5 | 0, s + 0.5 | 0, x + 0.5 | 0),
  30337. u = u + s,
  30338. s = b.rect(u + 0.5 | 0, y + 0.5 | 0, t + 0.5 | 0, x + 0.5 | 0),
  30339. t = {
  30340. a: 1,
  30341. b: 0,
  30342. c: 0,
  30343. K: 1,
  30344. ma: 0,
  30345. na: 0
  30346. };
  30347. if (e) {
  30348. e = F;
  30349. var x = s,
  30350. u = v,
  30351. y = n,
  30352. w = f,
  30353. D = G,
  30354. A = C,
  30355. E = p,
  30356. z = m,
  30357. t = b.JJ(t, d.height + d.x, d.y),
  30358. t = b.TT(t, 1.57079633),
  30359. F = b.oi(F, t),
  30360. s = b.oi(s, t),
  30361. v = b.oi(v, t),
  30362. n = b.oi(n, t);
  30363. f = b.oi(f, t);
  30364. G = b.oi(G, t);
  30365. C = b.oi(C, t);
  30366. p = b.oi(p, t);
  30367. m = b.oi(m, t);
  30368. e.x = F.x;
  30369. e.y = F.y;
  30370. x.x = s.x;
  30371. x.y = s.y;
  30372. u.x = v.x;
  30373. u.y = v.y;
  30374. y.x = n.x;
  30375. y.y = n.y;
  30376. w.x = f.x;
  30377. w.y = f.y;
  30378. D.x = G.x;
  30379. D.y = G.y;
  30380. A.x = C.x;
  30381. A.y = C.y;
  30382. E.x = p.x;
  30383. E.y = p.y;
  30384. z.x = m.x;
  30385. z.y = m.y;
  30386. this.dl = new b.B;
  30387. this.dl.ea(k, e, !0);
  30388. a.C(this.dl, 0, b.ga.yN);
  30389. this.up = new b.B;
  30390. this.up.ea(k, z, !0);
  30391. a.C(this.up, 1, b.ga.BN);
  30392. this.xo = new b.B;
  30393. this.xo.ea(k, E, !0);
  30394. a.C(this.xo, 1, b.ga.xN);
  30395. this.So =
  30396. new b.B;
  30397. this.So.ea(k, A, !0);
  30398. a.C(this.So, 1, b.ga.zN);
  30399. this.ip = new b.B;
  30400. this.ip.ea(k, D, !0);
  30401. a.C(this.ip, 1, b.ga.AN);
  30402. this.yn = new b.B;
  30403. this.yn.ea(k, w, !0);
  30404. a.C(this.yn, 2, b.ga.CN);
  30405. this.zn = new b.B;
  30406. this.zn.ea(k, y, !0);
  30407. a.C(this.zn, 2, b.ga.DN);
  30408. this.Qm = new b.B;
  30409. this.Qm.ea(k, u, !0);
  30410. a.C(this.Qm, 2, b.ga.i0);
  30411. this.yo = new b.B;
  30412. this.yo.ea(k, x, !0)
  30413. } else t = b.JJ(t, d.x, d.y), b.Yi(F, t), b.Yi(s, t), b.Yi(v, t), b.Yi(n, t), b.Yi(f, t), b.Yi(G, t), b.Yi(C, t), b.Yi(p, t), b.Yi(m, t), this.dl = new b.B, this.dl.ea(k, F), a.C(this.dl, 0, b.ga.yN), this.up = new b.B,
  30414. this.up.ea(k, m), a.C(this.up, 1, b.ga.BN), this.xo = new b.B, this.xo.ea(k, p), a.C(this.xo, 1, b.ga.xN), this.So = new b.B, this.So.ea(k, C), a.C(this.So, 1, b.ga.zN), this.ip = new b.B, this.ip.ea(k, G), a.C(this.ip, 1, b.ga.AN), this.yn = new b.B, this.yn.ea(k, f), a.C(this.yn, 2, b.ga.CN), this.zn = new b.B, this.zn.ea(k, n), a.C(this.zn, 2, b.ga.DN), this.Qm = new b.B, this.Qm.ea(k, v), a.C(this.Qm, 2, b.ga.i0), this.yo = new b.B, this.yo.ea(k, s);
  30415. a.C(this.yo, 2, b.ga.j0);
  30416. this.Na(d.width, d.height);
  30417. b.W === b.ya && this.C(a);
  30418. this.XS && (this.Hb(g), this.X(h));
  30419. return this.XS = !0
  30420. },
  30421. zi: function(a) {
  30422. var d = new b.sb(a.xa(), 9),
  30423. e = a.R;
  30424. (this.R = e) || a.addEventListener("load", function(a) {
  30425. var d = this.kf,
  30426. e = 0 !== d.width || 0 !== d.height;
  30427. e && (d = b.size(d.width, d.height));
  30428. this.Jt(this.zc, a.dh(), b.W === b.ya && a.ye, this.Wq);
  30429. e && this.Qk(d);
  30430. this.xe = !0;
  30431. this.dispatchEvent("load")
  30432. }, this);
  30433. this.Jt(d, a.dh(), b.W === b.ya && a.ye, b.rect(0, 0, 0, 0));
  30434. this.sA = this.uA = this.vA = this.tA = 0
  30435. },
  30436. XL: function(a) {
  30437. this.f.XL(a)
  30438. },
  30439. Ax: function(a) {
  30440. var d = this.oc();
  30441. this.uc = a;
  30442. this.oh(d)
  30443. },
  30444. eW: function() {
  30445. return this.uc
  30446. },
  30447. JD: function(a) {
  30448. var d =
  30449. this.gd();
  30450. this.vc = a;
  30451. this.ph(d)
  30452. },
  30453. fW: function() {
  30454. return this.vc
  30455. },
  30456. oh: function(a) {
  30457. this.uc && (a *= -1);
  30458. b.e.prototype.oh.call(this, a)
  30459. },
  30460. ph: function(a) {
  30461. this.vc && (a *= -1);
  30462. b.e.prototype.ph.call(this, a)
  30463. },
  30464. Tn: function(a, d) {
  30465. void 0 === d && (d = a);
  30466. this.oh(a);
  30467. this.ph(d)
  30468. },
  30469. oc: function() {
  30470. var a = b.e.prototype.oc.call(this);
  30471. this.uc && (a *= -1);
  30472. return a
  30473. },
  30474. gd: function() {
  30475. var a = b.e.prototype.gd.call(this);
  30476. this.vc && (a *= -1);
  30477. return a
  30478. },
  30479. Jw: function() {
  30480. this.oc() !== this.gd() && b.log("Scale9Sprite#scale. ScaleX !\x3d ScaleY. Don't know which one to return");
  30481. return this.oc()
  30482. },
  30483. Ic: function() {
  30484. return b.W === b.Jb ? new b.ga.n(this) : new b.ga.p(this)
  30485. }
  30486. });
  30487. r = b.ga.prototype;
  30488. b.zh.prototype.apply(r);
  30489. b.i(r, "preferredSize", r.sC, r.Qk);
  30490. b.i(r, "capInsets", r.c9, r.lX);
  30491. b.i(r, "insetLeft", r.G9, r.lda);
  30492. b.i(r, "insetTop", r.I9, r.nda);
  30493. b.i(r, "insetRight", r.H9, r.mda);
  30494. b.i(r, "insetBottom", r.F9, r.kda);
  30495. r = null;
  30496. b.ga.create = function(a, d, e) {
  30497. return new b.ga(a, d, e)
  30498. };
  30499. b.ga.vU = function(a, d) {
  30500. return new b.ga(a, d)
  30501. };
  30502. b.ga.X7 = function(a, d) {
  30503. return new b.ga(a, d)
  30504. };
  30505. b.ga.yN = 0;
  30506. b.ga.BN = 1;
  30507. b.ga.zN = 2;
  30508. b.ga.AN = 3;
  30509. b.ga.xN = 4;
  30510. b.ga.DN = 5;
  30511. b.ga.CN = 6;
  30512. b.ga.j0 = 7;
  30513. b.ga.state = {
  30514. sN: 0,
  30515. GRAY: 1
  30516. };
  30517. (function() {
  30518. b.ga.n = function(a) {
  30519. b.e.n.call(this, a);
  30520. this.cl = null;
  30521. this.Wd = !1;
  30522. this.mc = b.ga.state.sN;
  30523. a = this.k;
  30524. var e = this.df = b.ic("canvas");
  30525. e.width = 1;
  30526. e.height = 1;
  30527. this.Ve = new b.nq(e.getContext("2d"));
  30528. var f = this.fG = new b.ja;
  30529. f.jd(e);
  30530. f.Tb();
  30531. this.Pu = new b.B(f);
  30532. this.Pu.rb(0, 0);
  30533. a.C(this.Pu)
  30534. };
  30535. var a = b.ga.n.prototype = Object.create(b.e.n.prototype);
  30536. a.constructor = b.ga.n;
  30537. a.Q = function(a) {
  30538. var e = this.k;
  30539. e.Ta && (e.xe && (e.fw(), e.xe = !1, e.pn = !0), e.pn = !1, this.Iz(), b.e.n.prototype.Q.call(this, a))
  30540. };
  30541. a.transform = function(a) {
  30542. var e =
  30543. this.k;
  30544. b.e.n.prototype.transform.call(this, a);
  30545. e.xe && (e.fw(), e.xe = !1, e.pn = !0);
  30546. this.Iz();
  30547. a = e.m;
  30548. for (e = 0; e < a.length; e++) a[e].transform(this, !0)
  30549. };
  30550. a.Ae = function(a) {
  30551. b.e.n.prototype.Ae.call(this, a);
  30552. var e = this.k.zc;
  30553. if (e) {
  30554. for (var e = e.m, f = 0; f < e.length; f++) {
  30555. var g = e[f];
  30556. g && (g.f.Ae(a), g.f.xb())
  30557. }
  30558. this.Iz()
  30559. }
  30560. };
  30561. a.Iz = function() {
  30562. var a = this.k;
  30563. if (a.zc) {
  30564. var e = b.Db(),
  30565. f = a.U,
  30566. g = b.size(f.width * e, f.height * e),
  30567. h = this.df,
  30568. k = this.Ve,
  30569. m = k.getContext(),
  30570. n = !1;
  30571. if (h.width !== g.width || h.height !== g.height) h.width = g.width, h.height = g.height, n = !0;
  30572. b.oa.es(a.ba);
  30573. a.zc.Q();
  30574. (h = a.zc.xa()) && this.mc === b.ga.state.GRAY && h.eT(!0);
  30575. m.setTransform(1, 0, 0, 1, 0, 0);
  30576. m.clearRect(0, 0, g.width, g.height);
  30577. b.oa.Jv(k, a.ba, e, e);
  30578. h && this.mc === b.ga.state.GRAY && h.eT(!1);
  30579. n && this.Pu.Fc(b.rect(0, 0, f.width, f.height));
  30580. this.Pu.getParent() || a.C(this.Pu, -1)
  30581. }
  30582. };
  30583. a.XL = function(a) {
  30584. this.k.zc && (this.mc = a, this.Iz())
  30585. }
  30586. })();
  30587. (function() {
  30588. b.ga.p = function(a) {
  30589. b.e.p.call(this, a);
  30590. this.cl = null;
  30591. this.Wd = !1
  30592. };
  30593. var a = b.ga.p.prototype = Object.create(b.e.p.prototype);
  30594. a.constructor = b.ga.p;
  30595. a.Q = function(a) {
  30596. var e = this.k;
  30597. e.Ta && (e.xe && (e.fw(), e.xe = !1, e.pn = !0), b.e.p.prototype.Q.call(this, a))
  30598. };
  30599. a.transform = function(a, e) {
  30600. var f = this.k;
  30601. b.e.p.prototype.transform.call(this, a, e);
  30602. f.xe && (f.fw(), f.xe = !1, f.pn = !0)
  30603. };
  30604. a.Ae = function(a) {
  30605. b.e.p.prototype.Ae.call(this, a);
  30606. var e = this.k.zc;
  30607. if (e)
  30608. for (var e = e.m, f = 0; f < e.length; f++) {
  30609. var g = e[f];
  30610. g && (g.f.Ae(a), g.f.xb())
  30611. }
  30612. };
  30613. a.ci = function(a) {
  30614. b.e.p.prototype.ci.call(this, a);
  30615. var e = this.k.zc;
  30616. if (e)
  30617. for (var e = e.m, f = 0; f < e.length; f++) {
  30618. var g = e[f];
  30619. g && (g.f.ci(a), g.f.xb())
  30620. }
  30621. };
  30622. a.XL = function(a) {
  30623. var e = this.k.zc;
  30624. null !== e && (a === b.ga.state.sN ? e.pm(b.le.Dc(b.Sj)) : a === b.ga.state.GRAY && e.pm(b.ga.p.R3()))
  30625. };
  30626. b.ga.p.bR = null;
  30627. b.ga.p.R3 = function() {
  30628. var a = b.ga.p.bR;
  30629. if (a) return a;
  30630. a = new b.Qe;
  30631. a.qj(b.nF, b.ga.p.q4);
  30632. a.fd(b.vm, b.Ib);
  30633. a.fd(b.lq, b.cf);
  30634. a.fd(b.$n, b.re);
  30635. a.link();
  30636. a.HY();
  30637. return b.ga.p.bR = a
  30638. };
  30639. b.ga.p.q4 = "precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n vec4 c \x3d texture2D(CC_Texture0, v_texCoord); \n gl_FragColor.xyz \x3d vec3(0.2126*c.r + 0.7152*c.g + 0.0722*c.b); \n gl_FragColor.w \x3d c.w ; \n}"
  30640. })();
  30641. b.bz = b.Ua.extend({});
  30642. b.bz.Lwa = function(a) {
  30643. var d = new b.bz;
  30644. d.T();
  30645. d.Na(0, a);
  30646. return d
  30647. };
  30648. b.bz.vpa = function(a) {
  30649. var d = new b.bz;
  30650. d.T();
  30651. d.Na(a, 0);
  30652. return d
  30653. };
  30654. b.Ly = b.Ua.extend({
  30655. te: null,
  30656. we: 0,
  30657. Ma: "MenuPassive",
  30658. ctor: function() {},
  30659. rf: function() {
  30660. var a = this.te;
  30661. return b.color(a.r, a.g, a.b, a.a)
  30662. },
  30663. X: function(a) {
  30664. var d = this.te;
  30665. d.r = a.r;
  30666. d.g = a.g;
  30667. d.b = a.b;
  30668. if (this.m && 0 < this.m.length)
  30669. for (d = 0; d < this.m.length; d++) this.m[d] && this.m[d].X(a);
  30670. void 0 === a.a || a.MT || this.Hb(a.a)
  30671. },
  30672. bh: function() {
  30673. return this.we
  30674. },
  30675. Hb: function(a) {
  30676. this.we = a;
  30677. if (this.m && 0 < this.m.length)
  30678. for (var d = 0; d < this.m.length; d++) this.m[d] && this.m[d].Hb(a);
  30679. this.te.a = a
  30680. },
  30681. Tw: function(a, d) {
  30682. if (this.T()) {
  30683. var e = b.P.Fa();
  30684. this.pj(!0);
  30685. this.rb(0.5, 0.5);
  30686. this.Na(e);
  30687. this.I(e.width / 2, e.height / 2);
  30688. e = 0;
  30689. if (a) {
  30690. this.C(a, e);
  30691. for (var f = 0; f < d.length; f++) d[f] && (e++, this.C(d[f], e))
  30692. }
  30693. return !0
  30694. }
  30695. return !1
  30696. },
  30697. a7: function() {
  30698. this.KJ(b.gy)
  30699. },
  30700. KJ: function(a) {
  30701. var d = -a,
  30702. e;
  30703. if (this.m && 0 < this.m.length)
  30704. for (e = 0; e < this.m.length; e++) this.m[e] && (d += this.m[e].L().height * this.m[e].gd() + a);
  30705. var f = 0,
  30706. g = d / 2;
  30707. if (this.m && 0 < this.m.length)
  30708. for (e = 0; e < this.m.length; e++) this.m[e] && (f = Math.max(f, this.m[e].L().width), this.m[e].I(0, g - this.m[e].L().height * this.m[e].gd() / 2), g -= this.m[e].L().height *
  30709. this.m[e].gd() + a);
  30710. this.Na(f, d)
  30711. },
  30712. X6: function() {
  30713. this.YB(b.gy)
  30714. },
  30715. YB: function(a) {
  30716. var d = -a,
  30717. e;
  30718. if (this.m && 0 < this.m.length)
  30719. for (e = 0; e < this.m.length; e++) this.m[e] && (d += this.m[e].L().width * this.m[e].oc() + a);
  30720. var f = 0,
  30721. g = -d / 2;
  30722. if (this.m && 0 < this.m.length)
  30723. for (e = 0; e < this.m.length; e++) this.m[e] && (f = Math.max(f, this.m[e].L().height), this.m[e].I(g + this.m[e].L().width * this.m[e].oc() / 2, 0), g += this.m[e].L().width * this.m[e].oc() + a);
  30724. this.Na(d, f)
  30725. },
  30726. Y6: function(a) {
  30727. var d = [],
  30728. e;
  30729. for (e = 1; e < arguments.length; e++) d.push(arguments[e]);
  30730. var f = -5,
  30731. g = 0,
  30732. h = 0,
  30733. k = 0,
  30734. m, n;
  30735. if (this.m && 0 < this.m.length)
  30736. for (e = 0; e < this.m.length; e++) this.m[e] && (g >= d.length ? b.log("cc.MenuPassive.alignItemsInColumns(): invalid row index") : (m = d[g]) ? (n = this.m[e].L().height, h = 0 | (h >= n || null == n ? h : n), ++k, k >= m && (f += h + 5, h = k = 0, ++g)) : b.log("cc.MenuPassive.alignItemsInColumns(): can not have zero columns on a row"));
  30737. var p = b.P.Fa(),
  30738. s = m = h = g = 0,
  30739. t = 0,
  30740. f = f / 2;
  30741. if (this.m && 0 < this.m.length)
  30742. for (e = 0; e < this.m.length; e++) this.m[e] && (0 === m && (m = d[g], t = s = p.width / (1 + m)), n = this.m[e].L().height, h = 0 | (h >= n ||
  30743. null == n ? h : n), this.m[e].I(t - p.width / 2, f - this.m[e].L().height / 2), t += s, ++k, k >= m && (f -= h + 5, h = m = k = 0, ++g))
  30744. },
  30745. Z6: function(a) {
  30746. var d = [],
  30747. e;
  30748. for (e = 1; e < arguments.length; e++) d.push(arguments[e]);
  30749. var f = [],
  30750. g = [],
  30751. h = -10,
  30752. k = -5,
  30753. m = 0,
  30754. n = 0,
  30755. p = 0,
  30756. s, t;
  30757. if (this.m && 0 < this.m.length)
  30758. for (e = 0; e < this.m.length; e++) this.m[e] && (m >= d.length ? b.log("cc.MenuPassive.alignItemsInRows(): invalid row index") : (s = d[m]) ? (t = this.m[e].L().width, n = 0 | (n >= t || null == t ? n : t), k += 0 | this.m[e].L().height + 5, ++p, p >= s && (f.push(n), g.push(k), h += n + 10, n = p = 0, k = -5, ++m)) :
  30759. b.log("cc.MenuPassive.alignItemsInColumns(): can't have zero rows on a column"));
  30760. k = b.P.Fa();
  30761. n = m = 0;
  30762. s = null;
  30763. var h = -h / 2,
  30764. v = 0;
  30765. if (this.m && 0 < this.m.length)
  30766. for (e = 0; e < this.m.length; e++) this.m[e] && (null == s && (s = d[m], v = g[m]), t = this.m[e].L().width, n = 0 | (n >= t || null == t ? n : t), this.m[e].I(h + f[m] / 2, v - k.height / 2), v -= this.m[e].L().height + 10, ++p, p >= s && (h += n + 5, n = s = p = 0, ++m))
  30767. },
  30768. Le: function() {},
  30769. tf: function() {
  30770. return !1
  30771. }
  30772. });
  30773. b.Ly.create = function(a) {
  30774. a || (a = null);
  30775. for (var d = [], e = 1; e < arguments.length; e++) d.push(arguments[e]);
  30776. return (e = new b.Ly) && e.Tw(a, d) ? e : null
  30777. };
  30778. b.Ly.Nka = function(a) {
  30779. return b.Ly.create(a, null)
  30780. };
  30781. b.fy = b.mb.extend({
  30782. sI: 0,
  30783. Hz: 0,
  30784. Rc: null,
  30785. f5: null,
  30786. PS: null,
  30787. Vh: null,
  30788. Ac: null,
  30789. Eg: 0,
  30790. al: 0,
  30791. Ma: "ControlSaturationBrightnessPicker",
  30792. ctor: function(a, d) {
  30793. b.mb.prototype.ctor.call(this);
  30794. d && this.jL(a, d)
  30795. },
  30796. A$: function() {
  30797. return this.sI
  30798. },
  30799. b9: function() {
  30800. return this.Hz
  30801. },
  30802. Dw: function() {
  30803. return this.Rc
  30804. },
  30805. m$: function() {
  30806. return this.Hz
  30807. },
  30808. E$: function() {
  30809. return this.PS
  30810. },
  30811. NK: function() {
  30812. return this.Vh
  30813. },
  30814. PK: function() {
  30815. return this.Ac
  30816. },
  30817. jL: function(a, d) {
  30818. return b.mb.prototype.T.call(this) ? (this.Rc = b.Pe.Cp("colourPickerBackground.png", a, d, b.d(0,
  30819. 0)), this.f5 = b.Pe.Cp("colourPickerOverlay.png", a, d, b.d(0, 0)), this.PS = b.Pe.Cp("colourPickerShadow.png", a, d, b.d(0, 0)), this.Vh = b.Pe.Cp("colourPicker.png", a, d, b.d(0.5, 0.5)), this.Ac = d, this.Eg = 35, this.al = this.Rc.L().width / 2, !0) : !1
  30820. },
  30821. Gb: function(a) {
  30822. b.mb.prototype.Gb.call(this, a);
  30823. this.Vh && this.Vh.Hb(a ? 255 : 128)
  30824. },
  30825. IY: function(a) {
  30826. var d = new b.FE;
  30827. d.ih = 1;
  30828. d.wd = a.wd;
  30829. d.v = 1;
  30830. a = b.Pe.hF(d);
  30831. this.Rc.X(b.color(0 | 255 * a.r, 0 | 255 * a.g, 0 | 255 * a.b))
  30832. },
  30833. mfa: function(a) {
  30834. a = b.d(this.Ac.x + this.Eg + this.al * (1 - a.ih), this.Ac.y + this.Eg + this.al *
  30835. a.v);
  30836. this.RB(a)
  30837. },
  30838. RB: function(a) {
  30839. var d = this.Ac.x + 0.5 * this.Rc.ud().width,
  30840. e = this.Ac.y + 0.5 * this.Rc.ud().height,
  30841. f = a.x - d,
  30842. g = a.y - e,
  30843. h = Math.sqrt(f * f + g * g),
  30844. f = Math.atan2(g, f),
  30845. g = 0.5 * this.Rc.ud().width;
  30846. h > g && (a.x = d + g * Math.cos(f), a.y = e + g * Math.sin(f));
  30847. this.Vh.I(a);
  30848. a.x < this.Ac.x + this.Eg ? a.x = this.Ac.x + this.Eg : a.x > this.Ac.x + this.Eg + this.al - 1 && (a.x = this.Ac.x + this.Eg + this.al - 1);
  30849. a.y < this.Ac.y + this.Eg ? a.y = this.Ac.y + this.Eg : a.y > this.Ac.y + this.Eg + this.al && (a.y = this.Ac.y + this.Eg + this.al);
  30850. this.sI = 1 - Math.abs((this.Ac.x + this.Eg -
  30851. a.x) / this.al);
  30852. this.Hz = Math.abs((this.Ac.y + this.Eg - a.y) / this.al)
  30853. },
  30854. Qu: function(a) {
  30855. var d = this.Ac.x + 0.5 * this.Rc.ud().width,
  30856. e = this.Ac.y + 0.5 * this.Rc.ud().height,
  30857. d = a.x - d,
  30858. e = a.y - e;
  30859. return Math.sqrt(d * d + e * e) <= 0.5 * this.Rc.ud().width ? (this.RB(a), this.vf(b.Lj), !0) : !1
  30860. },
  30861. Qb: function(a) {
  30862. if (!this.isEnabled() || !this.Ta) return !1;
  30863. a = this.Ik(a);
  30864. return this.Qu(a)
  30865. },
  30866. xd: function(a) {
  30867. a = this.Ik(a);
  30868. this.Qu(a)
  30869. }
  30870. });
  30871. r = b.fy.prototype;
  30872. b.i(r, "saturation", r.A$);
  30873. b.i(r, "brightness", r.b9);
  30874. b.i(r, "background", r.Dw);
  30875. b.i(r, "overlay", r.m$);
  30876. b.i(r, "shadow", r.E$);
  30877. b.i(r, "slider", r.NK);
  30878. b.i(r, "startPos", r.PK);
  30879. r = null;
  30880. b.fy.create = function(a, d) {
  30881. return new b.fy(a, d)
  30882. };
  30883. b.ey = b.mb.extend({
  30884. wr: 0,
  30885. lv: 0,
  30886. Rc: null,
  30887. Vh: null,
  30888. Ac: null,
  30889. Ma: "ControlHuePicker",
  30890. ctor: function(a, d) {
  30891. b.mb.prototype.ctor.call(this);
  30892. d && this.jL(a, d)
  30893. },
  30894. C9: function() {
  30895. return this.wr
  30896. },
  30897. LD: function(a) {
  30898. this.wr = a;
  30899. this.xX(this.wr / 360)
  30900. },
  30901. D9: function() {
  30902. return this.lv
  30903. },
  30904. xX: function(a) {
  30905. this.lv = a;
  30906. this.wr = 360 * this.lv;
  30907. a = this.Rc.ud();
  30908. var d = 0.5 * a.width - 15,
  30909. e = b.Md(360 * this.lv - 180);
  30910. this.Vh.I(this.Ac.x + 0.5 * a.width + d * Math.cos(e), this.Ac.y + 0.5 * a.height + d * Math.sin(e))
  30911. },
  30912. Gb: function(a) {
  30913. b.mb.prototype.Gb.call(this, a);
  30914. this.Vh && this.Vh.Hb(a ?
  30915. 255 : 128)
  30916. },
  30917. Dw: function() {
  30918. return this.Rc
  30919. },
  30920. NK: function() {
  30921. return this.Vh
  30922. },
  30923. PK: function() {
  30924. return this.Ac
  30925. },
  30926. jL: function(a, d) {
  30927. return b.mb.prototype.T.call(this) ? (this.Rc = b.Pe.Cp("huePickerBackground.png", a, d, b.d(0, 0)), this.Vh = b.Pe.Cp("colourPicker.png", a, d, b.d(0.5, 0.5)), this.Vh.I(d.x, d.y + 0.5 * this.Rc.ud().height), this.Ac = d, this.lv = this.wr = 0, !0) : !1
  30928. },
  30929. RB: function(a) {
  30930. var d = this.Rc.ud();
  30931. this.LD(b.jx(Math.atan2(a.y - (this.Ac.y + 0.5 * d.height), a.x - (this.Ac.x + 0.5 * d.width))) + 180);
  30932. this.vf(b.Lj)
  30933. },
  30934. Qu: function(a) {
  30935. var d = Math.sqrt(Math.pow(a.x +
  30936. 10, 2) + Math.pow(a.y, 2));
  30937. return 80 > d && 59 < d ? (this.RB(a), !0) : !1
  30938. },
  30939. Qb: function(a) {
  30940. if (!this.isEnabled() || !this.Ta) return !1;
  30941. a = this.Ik(a);
  30942. return this.Qu(a)
  30943. },
  30944. xd: function(a) {
  30945. a = this.Ik(a);
  30946. this.Qu(a)
  30947. }
  30948. });
  30949. r = b.ey.prototype;
  30950. b.i(r, "hue", r.C9, r.LD);
  30951. b.i(r, "huePercent", r.D9, r.xX);
  30952. b.i(r, "background", r.Dw);
  30953. b.i(r, "slider", r.NK);
  30954. b.i(r, "startPos", r.PK);
  30955. r = null;
  30956. b.ey.create = function(a, d) {
  30957. return new b.ey(a, d)
  30958. };
  30959. b.pE = b.mb.extend({
  30960. Oh: null,
  30961. Vm: null,
  30962. Mo: null,
  30963. Rc: null,
  30964. Ma: "ControlColourPicker",
  30965. ctor: function() {
  30966. b.mb.prototype.ctor.call(this);
  30967. this.T()
  30968. },
  30969. jaa: function(a) {
  30970. this.Oh.wd = a.wr;
  30971. a = b.Pe.hF(this.Oh);
  30972. b.mb.prototype.X.call(this, b.color(0 | 255 * a.r, 0 | 255 * a.g, 0 | 255 * a.b));
  30973. this.vf(b.Lj);
  30974. this.E6()
  30975. },
  30976. I7: function(a) {
  30977. this.Oh.ih = a.sI;
  30978. this.Oh.v = a.Hz;
  30979. a = b.Pe.hF(this.Oh);
  30980. b.mb.prototype.X.call(this, b.color(0 | 255 * a.r, 0 | 255 * a.g, 0 | 255 * a.b));
  30981. this.vf(b.Lj)
  30982. },
  30983. X: function(a) {
  30984. b.mb.prototype.X.call(this, a);
  30985. var d = new Ba;
  30986. d.r = a.r / 255;
  30987. d.g = a.g / 255;
  30988. d.b = a.b / 255;
  30989. d.a = 1;
  30990. this.Oh = b.Pe.e_(d);
  30991. this.zT()
  30992. },
  30993. Dw: function() {
  30994. return this.Rc
  30995. },
  30996. T: function() {
  30997. if (b.mb.prototype.T.call(this)) {
  30998. b.sh.IJ(X.KM);
  30999. var a = new b.sb(X.LM);
  31000. this.C(a);
  31001. this.Oh = new b.FE(0, 0, 0);
  31002. this.Rc = b.Pe.Cp("menuColourPanelBackground.png", a, b.d(0, 0), b.d(0.5, 0.5));
  31003. var d = b.zd(this.Rc.Pf(), b.d(this.Rc.L().width / 2, this.Rc.L().height / 2));
  31004. this.Mo = new b.ey(a, b.d(d.x + 8, d.y + 8));
  31005. this.Vm = new b.fy(a, b.d(d.x + 28, d.y + 28));
  31006. this.Mo.RT(this, this.jaa, b.Lj);
  31007. this.Vm.RT(this, this.I7, b.Lj);
  31008. this.zT();
  31009. this.C(this.Mo);
  31010. this.C(this.Vm);
  31011. this.Na(this.Rc.L());
  31012. return !0
  31013. }
  31014. return !1
  31015. },
  31016. E6: function() {
  31017. this.Mo.LD(this.Oh.wd);
  31018. this.Vm.IY(this.Oh)
  31019. },
  31020. zT: function() {
  31021. this.Mo.LD(this.Oh.wd);
  31022. this.Vm.IY(this.Oh);
  31023. this.Vm.mfa(this.Oh)
  31024. },
  31025. Gb: function(a) {
  31026. b.mb.prototype.Gb.call(this, a);
  31027. null !== this.Mo && this.Mo.Gb(a);
  31028. this.Vm && this.Vm.Gb(a)
  31029. },
  31030. Qb: function() {
  31031. return !1
  31032. }
  31033. });
  31034. r = b.pE.prototype;
  31035. b.i(r, "background", r.Dw);
  31036. r = null;
  31037. b.pE.create = function() {
  31038. return new b.pE
  31039. };
  31040. var X = X || {};
  31041. X.KM = X.KM || "res/extensions/CCControlColourPickerSpriteSheet.plist";
  31042. X.LM = X.LM || "res/extensions/CCControlColourPickerSpriteSheet.png";
  31043. b.WN = 24;
  31044. b.Hha = 8;
  31045. b.rE = b.mb.extend({
  31046. ed: 0,
  31047. bb: 0,
  31048. vb: 0,
  31049. OA: 0,
  31050. MA: 0,
  31051. wb: null,
  31052. mn: null,
  31053. Ue: null,
  31054. Ma: "ControlSlider",
  31055. ctor: function(a, d, e) {
  31056. b.mb.prototype.ctor.call(this);
  31057. void 0 != e && (a = new b.B(a), d = new b.B(d), e = new b.B(e), this.Caa(a, d, e))
  31058. },
  31059. Os: function() {
  31060. return this.ed
  31061. },
  31062. Pd: function(a) {
  31063. a = Math.max(a, this.bb);
  31064. this.ed = a = Math.min(a, this.vb);
  31065. this.Od();
  31066. this.vf(b.Lj)
  31067. },
  31068. Hw: function() {
  31069. return this.bb
  31070. },
  31071. Dx: function(a) {
  31072. this.OA = this.bb = a;
  31073. this.bb >= this.vb && (this.vb = this.bb + 1);
  31074. this.Pd(this.ed)
  31075. },
  31076. Gw: function() {
  31077. return this.vb
  31078. },
  31079. Cx: function(a) {
  31080. this.MA = this.vb =
  31081. a;
  31082. this.vb <= this.bb && (this.bb = this.vb - 1);
  31083. this.Pd(this.ed)
  31084. },
  31085. rj: function(a) {
  31086. a = a.hi();
  31087. a = this.getParent().Ck(a);
  31088. var d = this.ud();
  31089. d.width += this.wb.L().width;
  31090. d.x -= this.wb.L().width / 2;
  31091. return b.mx(d, a)
  31092. },
  31093. Vp: function(a) {
  31094. a = a.hi();
  31095. a = this.Ck(a);
  31096. 0 > a.x ? a.x = 0 : a.x > this.Ue.L().width && (a.x = this.Ue.L().width);
  31097. return a
  31098. },
  31099. Y9: function() {
  31100. return this.OA
  31101. },
  31102. wda: function(a) {
  31103. this.OA = a
  31104. },
  31105. W9: function() {
  31106. return this.MA
  31107. },
  31108. uda: function(a) {
  31109. this.MA = a
  31110. },
  31111. Kw: function() {
  31112. return this.wb
  31113. },
  31114. s$: function() {
  31115. return this.mn
  31116. },
  31117. W8: function() {
  31118. return this.Ue
  31119. },
  31120. Caa: function(a, d, e) {
  31121. return b.mb.prototype.T.call(this) ? (this.pj(!1), this.Ue = a, this.mn = d, this.wb = e, a = b.Pe.MM(a.ud(), e.ud()), this.Na(a.width, a.height), this.Ue.rb(0.5, 0.5), this.Ue.I(a.width / 2, a.height / 2), this.C(this.Ue), this.mn.rb(0, 0.5), this.mn.I(0, a.height / 2), this.C(this.mn), this.wb.I(0, a.height / 2), this.C(this.wb), this.bb = 0, this.vb = 1, this.Pd(this.bb), !0) : !1
  31122. },
  31123. Gb: function(a) {
  31124. b.mb.prototype.Gb.call(this, a);
  31125. this.wb && this.wb.Hb(a ? 255 : 128)
  31126. },
  31127. yea: function(a) {
  31128. this.eq(!0);
  31129. this.wb.X(b.color.GRAY);
  31130. this.Pd(this.tM(a))
  31131. },
  31132. Aea: function(a) {
  31133. this.Pd(this.tM(a))
  31134. },
  31135. zea: function() {
  31136. this.VC() && this.Pd(this.tM(this.wb.Pf()));
  31137. this.wb.X(b.color.WHITE);
  31138. this.eq(!1)
  31139. },
  31140. Xoa: function(a) {
  31141. a = a.hi();
  31142. a = this.Ck(a);
  31143. 0 > a.x ? a.x = 0 : a.x > this.Ue.L().width + b.WN && (a.x = this.Ue.L().width + b.WN);
  31144. return a
  31145. },
  31146. Qb: function(a) {
  31147. if (!this.rj(a) || !this.isEnabled() || !this.Ta) return !1;
  31148. a = this.Vp(a);
  31149. this.yea(a);
  31150. return !0
  31151. },
  31152. xd: function(a) {
  31153. a = this.Vp(a);
  31154. this.Aea(a)
  31155. },
  31156. Oc: function() {
  31157. this.zea(b.d(0, 0))
  31158. },
  31159. Od: function() {
  31160. this.wb.UL((this.ed - this.bb) / (this.vb - this.bb) * this.Ue.L().width);
  31161. var a = this.mn.RK(),
  31162. a = b.rect(a.x, a.y, this.wb.vd(), a.height);
  31163. this.mn.Fc(a, this.mn.Gf);
  31164. this.wb.f.transform(this.f)
  31165. },
  31166. tM: function(a) {
  31167. a = a.x / this.Ue.L().width;
  31168. return Math.max(Math.min(this.bb + a * (this.vb - this.bb), this.MA), this.OA)
  31169. }
  31170. });
  31171. r = b.rE.prototype;
  31172. b.i(r, "value", r.Os, r.Pd);
  31173. b.i(r, "minValue", r.Hw, r.Dx);
  31174. b.i(r, "maxValue", r.Gw, r.Cx);
  31175. b.i(r, "minAllowedValue", r.Y9, r.wda);
  31176. b.i(r, "maxAllowedValue", r.W9, r.uda);
  31177. b.i(r, "thumbSprite", r.Kw);
  31178. b.i(r, "progressSprite", r.s$);
  31179. b.i(r, "backgroundSprite", r.W8);
  31180. r = null;
  31181. b.rE.create = function(a, d, e) {
  31182. return new b.rE(a, d, e)
  31183. };
  31184. b.SM = b.mb.extend({
  31185. rd: null,
  31186. lR: 0,
  31187. uv: !1,
  31188. Kr: !1,
  31189. Ma: "ControlSwitch",
  31190. ctor: function(a, d, e, f, g, h) {
  31191. b.mb.prototype.ctor.call(this);
  31192. h && this.hL(a, d, e, f, g, h)
  31193. },
  31194. hL: function(a, d, e, f, g, h) {
  31195. if (!a) throw "cc.ControlSwitch.initWithMaskSprite(): maskSprite should be non-null.";
  31196. if (!d) throw "cc.ControlSwitch.initWithMaskSprite(): onSprite should be non-null.";
  31197. if (!e) throw "cc.ControlSwitch.initWithMaskSprite(): offSprite should be non-null.";
  31198. if (!f) throw "cc.ControlSwitch.initWithMaskSprite(): thumbSprite should be non-null.";
  31199. return this.T() ?
  31200. (this.Kr = !0, this.rd = new b.TM, this.rd.hL(a, d, e, f, g, h), this.rd.I(this.rd.L().width / 2, this.rd.L().height / 2), this.C(this.rd), this.pj(!1), this.rb(0.5, 0.5), this.Na(this.rd.L()), !0) : !1
  31201. },
  31202. ND: function(a, d) {
  31203. var e = (this.Kr = a) ? this.rd.jn : this.rd.Yo;
  31204. d ? this.rd.Ba(new b.Lt(0.2, "sliderXPosition", this.rd.Nl, e)) : this.rd.UD(e);
  31205. this.vf(b.Lj)
  31206. },
  31207. Wpa: function() {
  31208. return this.Kr
  31209. },
  31210. tpa: function() {
  31211. return this.uv
  31212. },
  31213. Gb: function(a) {
  31214. this.Fd = a;
  31215. this.rd.Hb(a ? 255 : 128)
  31216. },
  31217. Vp: function(a) {
  31218. a = a.hi();
  31219. return a = this.Ck(a)
  31220. },
  31221. Qb: function(a) {
  31222. if (!this.rj(a) ||
  31223. !this.isEnabled() || !this.Ta) return !1;
  31224. this.uv = !1;
  31225. this.lR = this.Vp(a).x - this.rd.Nl;
  31226. this.rd.wb.X(b.color.GRAY);
  31227. this.rd.Od();
  31228. return !0
  31229. },
  31230. xd: function(a) {
  31231. a = this.Vp(a);
  31232. a = b.d(a.x - this.lR, 0);
  31233. this.uv = !0;
  31234. this.rd.UD(a.x)
  31235. },
  31236. Oc: function(a) {
  31237. a = this.Vp(a);
  31238. this.rd.wb.X(b.color.WHITE);
  31239. this.uv ? this.ND(!(a.x < this.rd.L().width / 2), !0) : this.ND(!this.Kr, !0)
  31240. },
  31241. uf: function(a) {
  31242. a = this.Vp(a);
  31243. this.rd.wb.X(b.color.WHITE);
  31244. this.uv ? this.ND(!(a.x < this.rd.L().width / 2), !0) : this.ND(!this.Kr, !0)
  31245. }
  31246. });
  31247. b.SM.create = function(a, d, e, f, g, h) {
  31248. return new b.SM(a, d, e, f, g, h)
  31249. };
  31250. b.TM = b.B.extend({
  31251. Nl: 0,
  31252. jn: 0,
  31253. Yo: 0,
  31254. hT: 0,
  31255. BH: 0,
  31256. KA: null,
  31257. Ui: null,
  31258. xl: null,
  31259. wb: null,
  31260. Av: null,
  31261. yv: null,
  31262. el: null,
  31263. ob: null,
  31264. Hia: null,
  31265. ctor: function() {
  31266. b.B.prototype.ctor.call(this);
  31267. this.BH = this.Yo = this.jn = this.Nl = 0;
  31268. this.KA = b.size(0, 0);
  31269. this.yv = this.Av = this.wb = this.xl = this.Ui = null
  31270. },
  31271. hL: function(a, d, e, f, g, h) {
  31272. return b.B.prototype.T.call(this) ? (this.zi(a.IU()), this.jn = 0, this.Yo = -d.L().width + f.L().width / 2, this.Nl = this.jn, this.IX(d), this.GX(e), this.Jx(f), this.HX(g), this.FX(h), this.ob = a, a = this.KA = this.ob.L(), this.ob.I(0, 0), this.el =
  31273. new b.yb, this.el.rb(0.5, 0.5), this.el.I(a.width / 2, a.height / 2), this.el.Hx(this.ob), this.C(this.el), this.el.C(d), this.el.C(e), this.el.C(g), this.el.C(h), this.C(this.wb), this.Od(), !0) : !1
  31274. },
  31275. Od: function() {
  31276. var a = this.KA;
  31277. this.Ui.I(this.Ui.L().width / 2 + this.Nl - a.width / 2, this.Ui.L().height / 2 - a.height / 2);
  31278. this.xl.I(this.Ui.L().width + this.xl.L().width / 2 + this.Nl - a.width / 2, this.xl.L().height / 2 - a.height / 2);
  31279. this.Av && this.Av.I(this.Ui.vd() - this.wb.L().width / 6, this.Ui.L().height / 2 - a.height / 2);
  31280. this.yv && this.yv.I(this.xl.vd() +
  31281. this.wb.L().width / 6, this.xl.L().height / 2 - a.height / 2);
  31282. this.wb.I(this.Ui.L().width + this.Nl, this.KA.height / 2)
  31283. },
  31284. UD: function(a) {
  31285. a <= this.Yo ? a = this.Yo : a >= this.jn && (a = this.jn);
  31286. this.Nl = a;
  31287. this.Od()
  31288. },
  31289. H$: function() {
  31290. return this.Nl
  31291. },
  31292. a4: function() {
  31293. return this.Ui.L().width
  31294. },
  31295. X3: function() {
  31296. return this.xl.L().height
  31297. },
  31298. sM: function(a, d) {
  31299. "sliderXPosition" === d && this.UD(a)
  31300. },
  31301. Dda: function(a) {
  31302. this.jn = a
  31303. },
  31304. j$: function() {
  31305. return this.jn
  31306. },
  31307. Cda: function(a) {
  31308. this.Yo = a
  31309. },
  31310. e$: function() {
  31311. return this.Yo
  31312. },
  31313. rda: function(a) {
  31314. this.ob.Oa(a)
  31315. },
  31316. S9: function() {
  31317. return this.ob.xa()
  31318. },
  31319. ava: function(a) {
  31320. this.hT = a
  31321. },
  31322. Loa: function() {
  31323. return this.hT
  31324. },
  31325. qda: function(a) {
  31326. this.BH = a
  31327. },
  31328. R9: function() {
  31329. return this.BH
  31330. },
  31331. IX: function(a) {
  31332. this.Ui = a
  31333. },
  31334. k$: function() {
  31335. return this.Ui
  31336. },
  31337. GX: function(a) {
  31338. this.xl = a
  31339. },
  31340. f$: function() {
  31341. return this.xl
  31342. },
  31343. Jx: function(a) {
  31344. this.wb = a
  31345. },
  31346. Kw: function() {
  31347. return this.wb
  31348. },
  31349. HX: function(a) {
  31350. this.Av = a
  31351. },
  31352. i$: function() {
  31353. return this.Av
  31354. },
  31355. FX: function(a) {
  31356. this.yv = a
  31357. },
  31358. d$: function() {
  31359. return this.yv
  31360. }
  31361. });
  31362. r = b.TM.prototype;
  31363. b.i(r, "sliderX", r.H$, r.UD);
  31364. b.i(r, "onPos", r.j$, r.Dda);
  31365. b.i(r, "offPos", r.e$, r.Cda);
  31366. b.i(r, "maskTexture", r.S9, r.rda);
  31367. b.i(r, "maskPos", r.R9, r.qda);
  31368. b.i(r, "onSprite", r.k$, r.IX);
  31369. b.i(r, "offSprite", r.f$, r.GX);
  31370. b.i(r, "thumbSprite", r.Kw, r.Jx);
  31371. b.i(r, "onLabel", r.i$, r.HX);
  31372. b.i(r, "offLabel", r.d$, r.FX);
  31373. b.i(r, "onSideWidth", r.a4);
  31374. b.i(r, "offSideWidth", r.X3);
  31375. r = null;
  31376. b.OM = 0;
  31377. b.PM = 1;
  31378. b.dy = 2;
  31379. b.Nt = b.color(55, 55, 55);
  31380. b.lE = b.color(147, 147, 147);
  31381. b.NM = "CourierNewPSMT";
  31382. b.yM = 0.15;
  31383. b.QY = 12;
  31384. b.sE = b.mb.extend({
  31385. ue: null,
  31386. Ef: null,
  31387. gn: null,
  31388. kn: null,
  31389. ed: 0,
  31390. Uu: !1,
  31391. Mq: !1,
  31392. Dn: !1,
  31393. bb: 0,
  31394. vb: 0,
  31395. xn: 0,
  31396. cw: !1,
  31397. vp: b.dy,
  31398. Lu: 0,
  31399. Ma: "ControlStepper",
  31400. ctor: function(a, d) {
  31401. b.mb.prototype.ctor.call(this);
  31402. this.kn = this.gn = this.Ef = this.ue = null;
  31403. this.ed = 0;
  31404. this.Dn = this.Mq = this.Uu = !1;
  31405. this.xn = this.vb = this.bb = 0;
  31406. this.cw = !1;
  31407. this.vp = b.dy;
  31408. this.Lu = 0;
  31409. d && this.uaa(a, d)
  31410. },
  31411. uaa: function(a, d) {
  31412. if (!a) throw "cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Minus sprite should be non-null.";
  31413. if (!d) throw "cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Plus sprite should be non-null.";
  31414. if (this.T()) {
  31415. this.Uu = this.Mq = !0;
  31416. this.bb = 0;
  31417. this.vb = 100;
  31418. this.ed = 0;
  31419. this.xn = 1;
  31420. this.Dn = !1;
  31421. this.pj(!1);
  31422. this.DX(a);
  31423. this.ue.I(a.L().width / 2, a.L().height / 2);
  31424. this.C(this.ue);
  31425. this.CX(new b.M("-", b.NM, 40, b.size(40, 40), b.ro, b.LF));
  31426. this.gn.X(b.lE);
  31427. this.gn.I(this.ue.L().width / 2, this.ue.L().height / 2);
  31428. this.ue.C(this.gn);
  31429. this.MX(d);
  31430. this.Ef.I(a.L().width + d.L().width / 2, a.L().height / 2);
  31431. this.C(this.Ef);
  31432. this.LX(new b.M("+", b.NM, 40, b.size(40, 40), b.ro, b.LF));
  31433. this.kn.X(b.Nt);
  31434. this.kn.I(this.Ef.L().width / 2, this.Ef.L().height /
  31435. 2);
  31436. this.Ef.C(this.kn);
  31437. var e = b.Pe.MM(this.ue.ud(), this.Ef.ud());
  31438. this.Na(this.ue.L().width + this.Ef.L().height, e.height);
  31439. return !0
  31440. }
  31441. return !1
  31442. },
  31443. mea: function(a) {
  31444. if (this.Dn = a) this.gn.X(b.Nt), this.kn.X(b.Nt);
  31445. this.Pd(this.ed)
  31446. },
  31447. Z$: function() {
  31448. return this.Dn
  31449. },
  31450. Dx: function(a) {
  31451. if (a >= this.vb) throw "cc.ControlStepper.setMinimumValue(): minimumValue should be numerically less than maximumValue.";
  31452. this.bb = a;
  31453. this.Pd(this.ed)
  31454. },
  31455. Hw: function() {
  31456. return this.bb
  31457. },
  31458. Cx: function(a) {
  31459. if (a <= this.bb) throw "cc.ControlStepper.setMaximumValue(): maximumValue should be numerically less than maximumValue.";
  31460. this.vb = a;
  31461. this.Pd(this.ed)
  31462. },
  31463. Gw: function() {
  31464. return this.vb
  31465. },
  31466. Pd: function(a) {
  31467. this.$L(a, !0)
  31468. },
  31469. Os: function() {
  31470. return this.ed
  31471. },
  31472. Xda: function(a) {
  31473. if (0 >= a) throw "cc.ControlStepper.setMaximumValue(): stepValue should be numerically greater than 0.";
  31474. this.xn = a
  31475. },
  31476. M$: function() {
  31477. return this.xn
  31478. },
  31479. Vaa: function() {
  31480. return this.Uu
  31481. },
  31482. $L: function(a, d) {
  31483. a < this.bb ? a = this.Dn ? this.vb : this.bb : a > this.vb && (a = this.Dn ? this.bb : this.vb);
  31484. this.ed = a;
  31485. this.Dn || (this.gn.X(a === this.bb ? b.lE : b.Nt), this.kn.X(a === this.vb ? b.lE : b.Nt));
  31486. d && this.vf(b.Lj)
  31487. },
  31488. mY: function() {
  31489. this.Lu = -1;
  31490. this.Dj(this.update, b.yM, b.Ch, 3 * b.yM)
  31491. },
  31492. pY: function() {
  31493. this.tg(this.update)
  31494. },
  31495. update: function() {
  31496. this.Lu++;
  31497. this.Lu < b.QY && 0 !== this.Lu % 3 || (this.vp === b.OM ? this.$L(this.ed - this.xn, this.Uu) : this.vp === b.PM && this.$L(this.ed + this.xn, this.Uu))
  31498. },
  31499. FY: function(a) {
  31500. a.x < this.ue.L().width && this.ed > this.bb ? (this.vp = b.OM, this.ue.X(b.color.GRAY), this.Ef.X(b.color.WHITE)) : a.x >= this.ue.L().width && this.ed < this.vb ? (this.vp = b.PM, this.ue.X(b.color.WHITE), this.Ef.X(b.color.GRAY)) : (this.vp = b.dy, this.ue.X(b.color.WHITE),
  31501. this.Ef.X(b.color.WHITE))
  31502. },
  31503. Qb: function(a) {
  31504. if (!this.rj(a) || !this.isEnabled() || !this.Ta) return !1;
  31505. a = this.Ik(a);
  31506. this.FY(a);
  31507. this.cw = !0;
  31508. this.Mq && this.mY();
  31509. return !0
  31510. },
  31511. xd: function(a) {
  31512. this.rj(a) ? (a = this.Ik(a), this.FY(a), this.cw || (this.cw = !0, this.Mq && this.mY())) : (this.cw = !1, this.vp = b.dy, this.ue.X(b.color.WHITE), this.Ef.X(b.color.WHITE), this.Mq && this.pY())
  31513. },
  31514. Oc: function(a) {
  31515. this.ue.X(b.color.WHITE);
  31516. this.Ef.X(b.color.WHITE);
  31517. this.Mq && this.pY();
  31518. this.rj(a) && (a = this.Ik(a), this.Pd(this.ed + (a.x < this.ue.L().width ? 0 - this.xn :
  31519. this.xn)))
  31520. },
  31521. DX: function(a) {
  31522. this.ue = a
  31523. },
  31524. a$: function() {
  31525. return this.ue
  31526. },
  31527. MX: function(a) {
  31528. this.Ef = a
  31529. },
  31530. q$: function() {
  31531. return this.Ef
  31532. },
  31533. CX: function(a) {
  31534. this.gn = a
  31535. },
  31536. Z9: function() {
  31537. return this.gn
  31538. },
  31539. LX: function(a) {
  31540. this.kn = a
  31541. },
  31542. p$: function() {
  31543. return this.kn
  31544. }
  31545. });
  31546. r = b.sE.prototype;
  31547. b.i(r, "wraps", r.Z$, r.mea);
  31548. b.i(r, "value", r.Os, r.Pd);
  31549. b.i(r, "minValue", r.Hw, r.Dx);
  31550. b.i(r, "maxValue", r.Gw, r.Cx);
  31551. b.i(r, "stepValue", r.M$, r.Xda);
  31552. b.i(r, "continuous", r.Vaa);
  31553. b.i(r, "minusSprite", r.a$, r.DX);
  31554. b.i(r, "plusSprite", r.q$, r.MX);
  31555. b.i(r, "minusLabel", r.Z9, r.CX);
  31556. b.i(r, "plusLabel", r.p$, r.LX);
  31557. r = null;
  31558. b.sE.create = function(a, d) {
  31559. return new b.sE(a, d)
  31560. };
  31561. b.qE = b.mb.extend({
  31562. wb: null,
  31563. Nr: null,
  31564. Mr: null,
  31565. ed: 0,
  31566. bb: 0,
  31567. vb: 1,
  31568. Ma: "ControlPotentiometer",
  31569. ctor: function(a, d, e) {
  31570. b.mb.prototype.ctor.call(this);
  31571. void 0 != e && (a = new b.B(a), e = new b.B(e), d = new b.La(new b.B(d)), this.Iaa(a, d, e))
  31572. },
  31573. Iaa: function(a, d, e) {
  31574. return this.T() ? (this.PX(d), this.Jx(e), this.wb.I(d.Pf()), this.C(e, 2), this.C(d, 1), this.C(a), this.Na(a.L()), this.bb = 0, this.vb = 1, this.Pd(this.bb), !0) : !1
  31575. },
  31576. Gb: function(a) {
  31577. this.Gb(a);
  31578. null !== this.wb && this.wb.Hb(a ? 255 : 128)
  31579. },
  31580. Pd: function(a) {
  31581. a < this.bb && (a = this.bb);
  31582. a > this.vb && (a =
  31583. this.vb);
  31584. this.ed = a;
  31585. a = (a - this.bb) / (this.vb - this.bb);
  31586. this.Nr.KX(100 * a);
  31587. this.wb.QD(360 * a);
  31588. this.vf(b.Lj)
  31589. },
  31590. Os: function() {
  31591. return this.ed
  31592. },
  31593. Dx: function(a) {
  31594. this.bb = a;
  31595. this.bb >= this.vb && (this.vb = this.bb + 1);
  31596. this.Pd(this.vb)
  31597. },
  31598. Hw: function() {
  31599. return this.bb
  31600. },
  31601. Cx: function(a) {
  31602. this.vb = a;
  31603. this.vb <= this.bb && (this.bb = this.vb - 1);
  31604. this.Pd(this.bb)
  31605. },
  31606. Gw: function() {
  31607. return this.vb
  31608. },
  31609. rj: function(a) {
  31610. a = this.Ik(a);
  31611. return this.g8(this.Nr.Pf(), a) < Math.min(this.L().width / 2, this.L().height / 2)
  31612. },
  31613. Qb: function(a) {
  31614. if (!this.rj(a) || !this.isEnabled() ||
  31615. !this.Ta) return !1;
  31616. this.Mr = this.Ik(a);
  31617. this.Yba(this.Mr);
  31618. return !0
  31619. },
  31620. xd: function(a) {
  31621. a = this.Ik(a);
  31622. this.$ba(a)
  31623. },
  31624. Oc: function() {
  31625. this.Zba(b.d(0, 0))
  31626. },
  31627. g8: function(a, d) {
  31628. var e = a.x - d.x,
  31629. f = a.y - d.y;
  31630. return Math.sqrt(e * e + f * f)
  31631. },
  31632. c7: function(a, d, e, f) {
  31633. return 180 * (Math.atan2(d.x - a.x, d.y - a.y) - Math.atan2(f.x - e.x, f.y - e.y)) / Math.PI
  31634. },
  31635. Yba: function() {
  31636. this.eq(!0);
  31637. this.wb.X(b.color.GRAY)
  31638. },
  31639. $ba: function(a) {
  31640. var d = this.c7(this.Nr.Pf(), a, this.Nr.Pf(), this.Mr);
  31641. 180 < d ? d -= 360 : -180 > d && (d += 360);
  31642. this.Pd(this.ed + d / 360 * (this.vb - this.bb));
  31643. this.Mr =
  31644. a
  31645. },
  31646. Zba: function() {
  31647. this.wb.X(b.color.WHITE);
  31648. this.eq(!1)
  31649. },
  31650. Jx: function(a) {
  31651. this.wb = a
  31652. },
  31653. Kw: function() {
  31654. return this.wb
  31655. },
  31656. PX: function(a) {
  31657. this.Nr = a
  31658. },
  31659. t$: function() {
  31660. return this.Nr
  31661. },
  31662. Kda: function(a) {
  31663. this.Mr = a
  31664. },
  31665. oV: function() {
  31666. return this.Mr
  31667. }
  31668. });
  31669. r = b.qE.prototype;
  31670. b.i(r, "value", r.Os, r.Pd);
  31671. b.i(r, "minValue", r.Hw, r.Dx);
  31672. b.i(r, "maxValue", r.Gw, r.Cx);
  31673. b.i(r, "progressTimer", r.t$, r.PX);
  31674. b.i(r, "thumbSprite", r.Kw, r.Jx);
  31675. b.i(r, "prevLocation", r.oV, r.Kda);
  31676. r = null;
  31677. b.qE.create = function(a, d, e) {
  31678. return new b.qE(a, d, e)
  31679. };
  31680. b.UN = -1;
  31681. b.xq = 0;
  31682. b.Wy = 1;
  31683. b.Vy = 2;
  31684. b.O7 = function(a) {
  31685. var d = b.view;
  31686. return (d.oc() + d.gd()) / 2 * a / 160
  31687. };
  31688. b.Q0 = b.sa.extend({
  31689. Kca: function() {},
  31690. Lca: function() {}
  31691. });
  31692. b.Vd = b.Ua.extend({
  31693. Qja: 0,
  31694. qja: 0,
  31695. pja: 0,
  31696. Wz: null,
  31697. ck: b.Vy,
  31698. Pi: !1,
  31699. e3: null,
  31700. ta: null,
  31701. ai: !1,
  31702. LA: null,
  31703. NA: null,
  31704. Nu: !1,
  31705. $q: !1,
  31706. Mv: null,
  31707. bs: null,
  31708. dw: 0,
  31709. sd: null,
  31710. ij: null,
  31711. NR: 0,
  31712. MR: 0,
  31713. Bv: null,
  31714. tI: !1,
  31715. iT: null,
  31716. hj: null,
  31717. Ma: "ScrollView",
  31718. ctor: function(a, d) {
  31719. b.Ua.prototype.ctor.call(this);
  31720. this.e3 = b.d(0, 0);
  31721. this.LA = b.d(0, 0);
  31722. this.NA = b.d(0, 0);
  31723. this.Mv = b.d(0, 0);
  31724. this.bs = b.d(0, 0);
  31725. this.sd = [];
  31726. this.ij = b.size(0, 0);
  31727. this.Bv = new b.Dh(0, 0, 0, 0);
  31728. this.iT = new b.Dh(0, 0, 0, 0);
  31729. void 0 != d ? this.Us(a, d) : this.Us(b.size(200, 200), null)
  31730. },
  31731. T: function() {
  31732. return this.Us(b.size(200,
  31733. 200), null)
  31734. },
  31735. Us: function(a, d) {
  31736. var e = b.d(0, 0);
  31737. return b.Ua.prototype.T.call(this) ? (this.ta = d, this.ta || (this.ta = new b.Ua, this.ta.pj(!1), this.ta.rb(e)), this.aM(a), this.bea(!0), this.sd.length = 0, this.Wz = null, this.$q = this.Nu = !0, this.ck = b.Vy, this.ta.I(e), this.dw = 0, this.C(this.ta), this.NR = this.MR = 1, !0) : !1
  31738. },
  31739. rt: function(a, d) {
  31740. if (d) this.Zca(a, 0.15);
  31741. else {
  31742. if (!this.Nu) {
  31743. var e = this.jm(),
  31744. f = this.On();
  31745. a.x = Math.max(e.x, Math.min(f.x, a.x));
  31746. a.y = Math.max(e.y, Math.min(f.y, a.y))
  31747. }
  31748. this.ta.I(a)
  31749. }
  31750. },
  31751. k9: function() {
  31752. var a = this.ta.Pf();
  31753. return b.d(a.x, a.y)
  31754. },
  31755. Zca: function(a, d) {
  31756. var e = b.moveTo(d, a),
  31757. f = b.Cc(this.v6, this);
  31758. this.ta.Ba(b.Fb(e, f));
  31759. this.Dj(this.UH)
  31760. },
  31761. cY: function(a, d) {
  31762. if (d) this.nea(a, 0.15);
  31763. else {
  31764. var e = this.ta;
  31765. if (e.Jw() !== a) {
  31766. var f, g;
  31767. 0 === this.dw ? (g = this.ij, g = b.d(0.5 * g.width, 0.5 * g.height), g = this.Yl(g)) : g = this.bs;
  31768. f = e.Ck(g);
  31769. e.Tn(Math.max(this.NR, Math.min(this.MR, a)));
  31770. f = e.Yl(f);
  31771. g = b.zd(g, f);
  31772. this.rt(b.yj(e.Pf(), g))
  31773. }
  31774. }
  31775. },
  31776. FV: function() {
  31777. return this.ta.Jw()
  31778. },
  31779. nea: function(a, d) {
  31780. if (0 < d) {
  31781. var e = this.ta.Jw();
  31782. e !== a && (e = b.NT(d, "zoomScale", e, a), this.Ba(e))
  31783. } else this.cY(a)
  31784. },
  31785. jm: function() {
  31786. var a = this.ta,
  31787. d = a.L(),
  31788. e = this.ij;
  31789. return b.d(e.width - d.width * a.oc(), e.height - d.height * a.gd())
  31790. },
  31791. On: function() {
  31792. return b.d(0, 0)
  31793. },
  31794. Upa: function(a) {
  31795. var d = this.k9(),
  31796. e = this.ij,
  31797. f = this.FV(),
  31798. d = b.rect(-d.x / f, -d.y / f, e.width / f, e.height / f);
  31799. return b.mca(d, a.ud())
  31800. },
  31801. pause: function() {
  31802. this.ta.pause();
  31803. for (var a = this.ta.m, d = 0; d < a.length; d++) a[d].pause();
  31804. this._super()
  31805. },
  31806. Cj: function() {
  31807. for (var a = this.ta.m, d = 0, e = a.length; d < e; d++) a[d].Cj();
  31808. this.ta.Cj();
  31809. this._super()
  31810. },
  31811. Opa: function() {
  31812. return this.Pi
  31813. },
  31814. kqa: function() {
  31815. return this.ai
  31816. },
  31817. Raa: function() {
  31818. return this.Nu
  31819. },
  31820. Qca: function(a) {
  31821. this.Nu = a
  31822. },
  31823. X$: function() {
  31824. return this.ij
  31825. },
  31826. aM: function(a) {
  31827. this.ij = a;
  31828. b.e.prototype.Na.call(this, a)
  31829. },
  31830. j9: function() {
  31831. return this.ta
  31832. },
  31833. Xca: function(a) {
  31834. a && (this.pi(!0), this.ta = a, a.pj(!1), a.rb(0, 0), this.C(a), this.aM(this.ij))
  31835. },
  31836. o9: function() {
  31837. return this.ck
  31838. },
  31839. pX: function(a) {
  31840. this.ck = a
  31841. },
  31842. Ew: function() {
  31843. return this.Wz
  31844. },
  31845. st: function(a) {
  31846. this.Wz = a
  31847. },
  31848. Qb: function(a) {
  31849. if (!this.Ta) return !1;
  31850. var d = this.jH(),
  31851. e = this.ta,
  31852. f = e.Yl(e.Dk(a)),
  31853. g = this.sd;
  31854. if (2 < g.length || this.ai || !b.mx(d, f)) return !1;
  31855. g.push(a);
  31856. 1 === g.length ? (this.bs = this.Dk(a), this.ai = !1, this.Pi = !0, this.Mv.x = 0, this.dw = this.Mv.y = 0) : 2 === g.length && (this.bs = b.yL(this.Dk(g[0]), this.Dk(g[1])), this.dw = b.DW(e.Dk(g[0]), e.Dk(g[1])), this.Pi = !1);
  31857. return !0
  31858. },
  31859. xd: function(a) {
  31860. if (this.Ta)
  31861. if (this.Pk(), 1 === this.sd.length && this.Pi) {
  31862. this.ai = !0;
  31863. this.jH();
  31864. var d = this.Dk(a);
  31865. a = b.zd(d, this.bs);
  31866. var e = 0,
  31867. f = this.ck,
  31868. g;
  31869. if (f === b.Wy) e = a.y, g = this.ta.Qf(), this.jm().y <= g && g <= this.On().y || (a.y *= 0.35);
  31870. else if (f === b.xq) e = a.x, g = this.ta.vd(), this.jm().x <= g && g <= this.On().x ||
  31871. (a.x *= 0.35);
  31872. else {
  31873. e = Math.sqrt(a.x * a.x + a.y * a.y);
  31874. g = this.ta.Qf();
  31875. var h = this.jm(),
  31876. k = this.On();
  31877. h.y <= g && g <= k.y || (a.y *= 0.35);
  31878. g = this.ta.vd();
  31879. h.x <= g && g <= k.x || (a.x *= 0.35)
  31880. }
  31881. if (this.ai || !(0.04375 > Math.abs(b.O7(e))))
  31882. if (this.ai || (a.x = 0, a.y = 0), this.bs = d, this.ai = !0, this.Pi) {
  31883. switch (f) {
  31884. case b.Wy:
  31885. a.x = 0;
  31886. break;
  31887. case b.xq:
  31888. a.y = 0
  31889. }
  31890. e = this.ta.Pf();
  31891. d = e.x + a.x;
  31892. e = e.y + a.y;
  31893. this.Mv = a;
  31894. this.rt(b.d(d, e))
  31895. }
  31896. } else 2 !== this.sd.length || this.Pi || (a = b.DW(this.ta.Dk(this.sd[0]), this.ta.Dk(this.sd[1])), this.cY(this.FV() * a / this.dw))
  31897. },
  31898. Oc: function() {
  31899. this.Ta &&
  31900. (1 === this.sd.length && this.ai && this.Dj(this.AG), this.sd.length = 0, this.ai = this.Pi = !1)
  31901. },
  31902. uf: function() {
  31903. this.Ta && (this.sd.length = 0, this.ai = this.Pi = !1)
  31904. },
  31905. Na: function(a, d) {
  31906. null !== this.ta && (void 0 === d ? this.ta.Na(a) : this.ta.Na(a, d), this.rM())
  31907. },
  31908. cj: function(a) {
  31909. var d = this.ta;
  31910. null !== d && (d.cj(a), this.rM())
  31911. },
  31912. bj: function(a) {
  31913. var d = this.ta;
  31914. null !== d && (d.bj(a), this.rM())
  31915. },
  31916. L: function() {
  31917. return this.ta.L()
  31918. },
  31919. rM: function() {
  31920. if (null !== this.ta) {
  31921. var a = this.ij,
  31922. d = this.On();
  31923. this.LA.x = d.x + 0.2 * a.width;
  31924. this.LA.y = d.y + 0.2 * a.height;
  31925. d =
  31926. this.jm();
  31927. this.NA.x = d.x - 0.2 * a.width;
  31928. this.NA.y = d.y - 0.2 * a.height
  31929. }
  31930. },
  31931. Uaa: function() {
  31932. return this.$q
  31933. },
  31934. Vca: function(a) {
  31935. this.$q = a
  31936. },
  31937. Q: function(a) {
  31938. this.Ta && this.f.Q(a)
  31939. },
  31940. C: function(a, d, e) {
  31941. if (!a) throw Error("child must not nil!");
  31942. d = d || a.wc;
  31943. e = e || a.yC();
  31944. this.ta !== a ? this.ta.C(a, d, e) : b.Ua.prototype.C.call(this, a, d, e)
  31945. },
  31946. jqa: function() {
  31947. return null !== this.hj
  31948. },
  31949. bea: function(a) {
  31950. this.hj && b.ua.removeListener(this.hj);
  31951. this.hj = null;
  31952. a ? (a = b.ia.create({
  31953. event: b.ia.to
  31954. }), this.Qb && (a.Qb = this.Qb.bind(this)), this.xd && (a.xd = this.xd.bind(this)),
  31955. this.Oc && (a.Oc = this.Oc.bind(this)), this.uf && (a.uf = this.uf.bind(this)), this.hj = a, b.ua.addListener(a, this)) : (this.ai = this.Pi = !1, this.sd.length = 0)
  31956. },
  31957. ija: function() {
  31958. return null
  31959. },
  31960. x5: function(a) {
  31961. var d = this.jm(),
  31962. e = this.On(),
  31963. f = this.ck,
  31964. g = this.ta.Pf(),
  31965. h = g.x,
  31966. k = g.y;
  31967. if (f === b.Vy || f === b.xq) h = Math.max(h, d.x), h = Math.min(h, e.x);
  31968. if (f === b.Vy || f === b.Wy) k = Math.min(k, e.y), k = Math.max(k, d.y);
  31969. k === g.y && h === g.x || this.rt(b.d(h, k), a)
  31970. },
  31971. AG: function() {
  31972. if (this.Pi) this.tg(this.AG);
  31973. else {
  31974. var a, d;
  31975. a = this.ta.Pf();
  31976. var e = this.Mv;
  31977. this.ta.I(a.x +
  31978. e.x, a.y + e.y);
  31979. this.Nu ? (a = this.LA, d = this.NA) : (a = this.On(), d = this.jm());
  31980. var f = this.ta.vd(),
  31981. g = this.ta.Qf();
  31982. e.x *= 0.95;
  31983. e.y *= 0.95;
  31984. this.rt(b.d(f, g));
  31985. if (1 >= Math.abs(e.x) && 1 >= Math.abs(e.y) || g > a.y || g < d.y || f > a.x || f < d.x || f === a.x || f === d.x || g === a.y || g === d.y) this.tg(this.AG), this.x5(!0)
  31986. }
  31987. },
  31988. UH: function() {
  31989. this.Pi && this.tg(this.UH)
  31990. },
  31991. v6: function() {
  31992. this.tg(this.UH)
  31993. },
  31994. gja: function() {},
  31995. jH: function() {
  31996. for (var a = this.Yl(b.d(0, 0)), d = this.ij, e = this.oc(), f = this.gd(), g = this.Ga; null != g; g = g.getParent()) e *= g.oc(), f *= g.gd();
  31997. 0 > e && (a.x +=
  31998. d.width * e, e = -e);
  31999. 0 > f && (a.y += d.height * f, f = -f);
  32000. g = this.iT;
  32001. g.x = a.x;
  32002. g.y = a.y;
  32003. g.width = d.width * e;
  32004. g.height = d.height * f;
  32005. return g
  32006. },
  32007. Ic: function() {
  32008. return b.W === b.Jb ? new b.Vd.n(this) : new b.Vd.p(this)
  32009. }
  32010. });
  32011. r = b.Vd.prototype;
  32012. b.i(r, "minOffset", r.jm);
  32013. b.i(r, "maxOffset", r.On);
  32014. b.i(r, "bounceable", r.Raa, r.Qca);
  32015. b.i(r, "viewSize", r.X$, r.aM);
  32016. b.i(r, "container", r.j9, r.Xca);
  32017. b.i(r, "direction", r.o9, r.pX);
  32018. b.i(r, "delegate", r.Ew, r.st);
  32019. b.i(r, "clippingToBounds", r.Uaa, r.Vca);
  32020. r = null;
  32021. b.Vd.create = function(a, d) {
  32022. return new b.Vd(a, d)
  32023. };
  32024. (function() {
  32025. b.Vd.n = function(a) {
  32026. b.Ua.n.call(this, a);
  32027. this.cb = !1;
  32028. this.fM = new b.wg(this, this.ZI);
  32029. this.sK = new b.wg(this, this.HG)
  32030. };
  32031. var a = b.Vd.n.prototype = Object.create(b.Ua.n.prototype);
  32032. a.constructor = b.Vd.n;
  32033. a.ZI = function(a, e, f) {
  32034. var g = this.k,
  32035. h = a || b.A;
  32036. a = h.getContext();
  32037. h.save();
  32038. g.$q && (this.tI = !1, h.setTransform(this.jj, e, f), e *= g.ij.width * g.oc(), f *= g.ij.height * g.gd(), a.beginPath(), a.rect(0, 0, e, -f), a.closePath(), a.clip())
  32039. };
  32040. a.HG = function(a) {
  32041. a = a || b.A;
  32042. a.restore()
  32043. };
  32044. a.Q = function(a) {
  32045. var e = this.k,
  32046. f = e.m;
  32047. this.transform(a);
  32048. b.oa.Ec(this.fM);
  32049. if (f && 0 < f.length)
  32050. for (a = f.length, e.Ne(), e = 0; e < a; e++) f[e].f.Q(this);
  32051. b.oa.Ec(this.sK)
  32052. }
  32053. })();
  32054. (function() {
  32055. b.Vd.p = function(a) {
  32056. b.Ua.p.call(this, a);
  32057. this.cb = !1;
  32058. this.fM = new b.wg(this, this.ZI);
  32059. this.sK = new b.wg(this, this.HG)
  32060. };
  32061. var a = b.Vd.p.prototype = Object.create(b.Ua.p.prototype);
  32062. a.constructor = b.Vd.p;
  32063. a.ZI = function() {
  32064. var a = this.k,
  32065. e = b.view,
  32066. f = a.jH();
  32067. if (e.cba()) {
  32068. if (a.tI = !0, a.Bv = e.B$(), b.lca(f, a.Bv)) {
  32069. var g = a.Bv,
  32070. a = Math.max(f.x, g.x),
  32071. h = Math.max(f.y, g.y),
  32072. k = Math.min(f.x + f.width, g.x + g.width),
  32073. f = Math.min(f.y + f.height, g.y + g.height);
  32074. e.RD(a, h, k - a, f - h)
  32075. }
  32076. } else a = b.A, a.enable(a.SCISSOR_TEST), e.RD(f.x, f.y, f.width, f.height)
  32077. };
  32078. a.HG = function() {
  32079. var a = this.k;
  32080. a.tI ? (a = a.Bv, b.view.RD(a.x, a.y, a.width, a.height)) : (a = b.A, a.disable(a.SCISSOR_TEST))
  32081. };
  32082. a.Q = function(a) {
  32083. var e = this.k,
  32084. f = e.m,
  32085. g, h;
  32086. b.Zw();
  32087. this.transform(a);
  32088. e.$q && b.oa.Ec(this.fM);
  32089. if (f && 0 < f.length) {
  32090. h = f.length;
  32091. for (a = 0; a < h; a++)
  32092. if ((g = f[a]) && 0 > g.wc) g.f.Q();
  32093. else break;
  32094. for (; a < h; a++) f[a].f.Q()
  32095. }
  32096. e.$q && b.oa.Ec(this.sK);
  32097. this.G = 0;
  32098. b.Ys()
  32099. }
  32100. })();
  32101. b.R0 = b.sa.extend({
  32102. Ex: function() {},
  32103. ii: function() {
  32104. return 0
  32105. }
  32106. });
  32107. b.S0 = b.R0.extend({
  32108. JH: 0,
  32109. ctor: function() {
  32110. this.JH = 0
  32111. },
  32112. Ex: function(a) {
  32113. this.JH = a
  32114. },
  32115. ii: function() {
  32116. return this.JH
  32117. }
  32118. });
  32119. function Ca(a, d) {
  32120. return a.ii() - d.ii()
  32121. }
  32122. b.eE = b.sa.extend({
  32123. $i: null,
  32124. ctor: function() {
  32125. this.$i = []
  32126. },
  32127. cW: function(a) {
  32128. if (!a) throw "cc.ArrayForObjectSorting.insertSortedObject(): addObject should be non-null.";
  32129. this.Maa(a, this.Ss(a))
  32130. },
  32131. xca: function(a) {
  32132. if (0 !== this.count()) {
  32133. var d = this.Ss(a);
  32134. d < this.count() && d !== b.Nj && this.Wp(d).ii() === a.ii() && this.IL(d)
  32135. }
  32136. },
  32137. uua: function(a, d) {
  32138. var e = this.Ss(d);
  32139. if (e < this.count() && e !== b.Nj) {
  32140. var f = this.Wp(e);
  32141. f.ii() === d.ii() && (this.IL(e), f.Ex(a), this.cW(f))
  32142. }
  32143. },
  32144. xW: function(a) {
  32145. if (0 === this.count()) return null;
  32146. var d = new b.S0;
  32147. d.Ex(a);
  32148. var e = this.Ss(d);
  32149. e < this.count() && e !== b.Nj && (d = this.Wp(e), d.ii() !== a && (d = null));
  32150. return d
  32151. },
  32152. Una: function() {
  32153. return null
  32154. },
  32155. Ss: function(a) {
  32156. var d = 0;
  32157. if (a) {
  32158. var e = 0;
  32159. a = a.ii();
  32160. for (var f = this.$i, g = 0; g < f.length; g++) {
  32161. var h = f[g].ii();
  32162. if (a === h || a >= e && a < h) break;
  32163. e = h;
  32164. d++
  32165. }
  32166. } else d = b.Nj;
  32167. return d
  32168. },
  32169. count: function() {
  32170. return this.$i.length
  32171. },
  32172. Kqa: function() {
  32173. var a = this.$i;
  32174. return 0 === a.length ? null : a[a.length - 1]
  32175. },
  32176. Wp: function(a) {
  32177. return this.$i[a]
  32178. },
  32179. QT: function(a) {
  32180. this.$i.push(a);
  32181. this.$i.sort(Ca)
  32182. },
  32183. IL: function(a) {
  32184. this.$i.splice(a, 1);
  32185. this.$i.sort(Ca)
  32186. },
  32187. Maa: function(a, d) {
  32188. this.$i.splice(d, 0, a);
  32189. this.$i.sort(Ca)
  32190. }
  32191. });
  32192. b.eO = 0;
  32193. b.r1 = 1;
  32194. b.z1 = b.e.extend({
  32195. ql: 0,
  32196. Ma: "TableViewCell",
  32197. wna: function() {
  32198. return this.ql
  32199. },
  32200. jda: function(a) {
  32201. this.ql = a
  32202. },
  32203. reset: function() {
  32204. this.ql = b.Nj
  32205. },
  32206. Ex: function(a) {
  32207. this.ql = a
  32208. },
  32209. ii: function() {
  32210. return this.ql
  32211. }
  32212. });
  32213. r = b.z1.prototype;
  32214. b.i(r, "objectId", r.ii, r.Ex);
  32215. r = null;
  32216. b.kia = b.Q0.extend({
  32217. awa: function() {},
  32218. $va: function() {},
  32219. bwa: function() {},
  32220. cwa: function() {}
  32221. });
  32222. b.jia = b.sa.extend({
  32223. Nea: function(a) {
  32224. return this.C7(a)
  32225. },
  32226. C7: function() {
  32227. return b.size(0, 0)
  32228. },
  32229. Zva: function() {
  32230. return null
  32231. },
  32232. mra: function() {
  32233. return 0
  32234. }
  32235. });
  32236. b.CF = b.Vd.extend({
  32237. js: null,
  32238. gb: null,
  32239. Xq: null,
  32240. zG: null,
  32241. hJ: null,
  32242. UA: null,
  32243. Mz: null,
  32244. Tl: null,
  32245. ctor: function(a, d, e) {
  32246. b.Vd.prototype.ctor.call(this);
  32247. this.UA = b.UN;
  32248. this.Mz = [];
  32249. this.Us(d, e);
  32250. this.oX(a);
  32251. this.pJ()
  32252. },
  32253. A2: function(a) {
  32254. var d = 0,
  32255. e = -1;
  32256. switch (this.ck) {
  32257. case b.xq:
  32258. a = a.x;
  32259. break;
  32260. default:
  32261. a = a.y
  32262. }
  32263. for (var f = this.Mz; e >= d;) {
  32264. var g = 0 | d + (e - d) / 2,
  32265. h = f[g],
  32266. k = f[g + 1];
  32267. if (a >= h && a <= k) return g;
  32268. a < h ? e = g - 1 : d = g + 1
  32269. }
  32270. return 0 >= d ? 0 : -1
  32271. },
  32272. v4: function(a) {
  32273. a = {
  32274. x: a.x,
  32275. y: a.y
  32276. };
  32277. this.js === b.eO && (a.y = this.ta.L().height - a.y);
  32278. a = this.A2(a); - 1 !== a && (a = Math.max(0, a), -1 < a && (a = b.Nj));
  32279. return a
  32280. },
  32281. B2: function(a) {
  32282. switch (this.ck) {
  32283. case b.xq:
  32284. a = b.d(this.Mz[a], 0);
  32285. break;
  32286. default:
  32287. a = b.d(0, this.Mz[a])
  32288. }
  32289. return a
  32290. },
  32291. U4: function(a) {
  32292. var d = this.B2(a);
  32293. a = this.zG.Nea(this, a);
  32294. this.js === b.eO && (d.y = this.ta.L().height - d.y - a.height);
  32295. return d
  32296. },
  32297. Nja: function() {},
  32298. pJ: function() {
  32299. var a = b.size(0, 0);
  32300. this.Na(a);
  32301. this.UA !== this.ck && (this.ck === b.xq ? this.rt(b.d(0, 0)) : this.rt(b.d(0, this.jm().y)), this.UA = this.ck)
  32302. },
  32303. OR: function(a) {
  32304. this.Xq.QT(a);
  32305. this.Rm.xca(a);
  32306. b.ge(this.gb, a.ql);
  32307. a.reset();
  32308. a.getParent() === this.ta &&
  32309. this.ta.removeChild(a, !0)
  32310. },
  32311. uB: function(a, d) {
  32312. d.rb(0, 0);
  32313. d.I(this.U4(a));
  32314. d.jda(a)
  32315. },
  32316. lP: function(a) {
  32317. a.getParent() !== this.ta && this.ta.C(a);
  32318. this.Rm.cW(a);
  32319. var d = this.gb;
  32320. a = a.ql; - 1 === d.indexOf(a) && (d.push(a), d.sort(function(a, d) {
  32321. return a - d
  32322. }))
  32323. },
  32324. m9: function() {
  32325. return this.zG
  32326. },
  32327. oX: function(a) {
  32328. this.zG = a
  32329. },
  32330. Ew: function() {
  32331. return this.hJ
  32332. },
  32333. st: function(a) {
  32334. this.hJ = a
  32335. },
  32336. kea: function(a) {
  32337. this.js !== a && (this.js = a, 0 < this.Rm.count() && this.oca())
  32338. },
  32339. W$: function() {
  32340. return this.js
  32341. },
  32342. Us: function(a, d) {
  32343. return b.Vd.prototype.Us.call(this, a,
  32344. d) ? (this.Rm = new b.eE, this.Xq = new b.eE, this.gb = [], this.hJ = null, this.js = b.r1, this.pX(b.Wy), b.Vd.prototype.st.call(this, this), !0) : !1
  32345. },
  32346. Awa: function(a) {
  32347. if (!(a === b.Nj || -1 < a)) {
  32348. var d = this.WJ(a);
  32349. d && this.OR(d);
  32350. d = null;
  32351. this.uB(a, d);
  32352. this.lP(d)
  32353. }
  32354. },
  32355. Cpa: function(a) {
  32356. if (!(a === b.Nj || -1 < a)) {
  32357. var d, e = this.Rm;
  32358. if (d = e.xW(a))
  32359. for (var f = d = e.Ss(d); f < e.count(); f++) d = e.Wp(f), this.uB(d.ql + 1, d);
  32360. d = null;
  32361. this.uB(a, d);
  32362. this.lP(d);
  32363. this.pJ()
  32364. }
  32365. },
  32366. Dsa: function(a) {
  32367. if (!(a === b.Nj || -1 < a)) {
  32368. var d = this.WJ(a);
  32369. if (d) {
  32370. var e = this.Rm,
  32371. f = e.Ss(d);
  32372. this.OR(d);
  32373. b.ge(this.gb, a);
  32374. for (a = e.count() - 1; a > f; a--) d = e.Wp(a), this.uB(d.ql - 1, d)
  32375. }
  32376. }
  32377. },
  32378. oca: function() {
  32379. this.UA = b.UN;
  32380. for (var a = this.Rm, d = this.Xq, e = this.ta, f = 0, g = a.count(); f < g; f++) {
  32381. var h = a.Wp(f);
  32382. d.QT(h);
  32383. h.reset();
  32384. h.getParent() === e && e.removeChild(h, !0)
  32385. }
  32386. this.gb = [];
  32387. this.Rm = new b.eE;
  32388. this.pJ()
  32389. },
  32390. Ska: function() {
  32391. if (0 === this.Xq.count()) return null;
  32392. var a = this.Xq.Wp(0);
  32393. this.Xq.IL(0);
  32394. return a
  32395. },
  32396. WJ: function(a) {
  32397. return -1 === this.gb.indexOf(a) ? null : this.Rm.xW(a)
  32398. },
  32399. Kca: function() {},
  32400. Lca: function() {},
  32401. Oc: function(a, d) {
  32402. if (this.Ta) {
  32403. if (this.Tl) {
  32404. var e =
  32405. this.ud(),
  32406. f = b.d(e.x, e.y),
  32407. f = this.Ga.Yl(f);
  32408. e.x = f.x;
  32409. e.y = f.y;
  32410. this.Tl = null
  32411. }
  32412. b.Vd.prototype.Oc.call(this, a, d)
  32413. }
  32414. },
  32415. Qb: function(a, d) {
  32416. if (!this.Ta) return !1;
  32417. var e = b.Vd.prototype.Qb.call(this, a, d);
  32418. if (1 === this.sd.length) {
  32419. var f;
  32420. f = this.ta.Dk(a);
  32421. f = this.v4(f);
  32422. this.Tl = f === b.Nj ? null : this.WJ(f)
  32423. } else this.Tl && (this.Tl = null);
  32424. return e
  32425. },
  32426. xd: function(a, d) {
  32427. b.Vd.prototype.xd.call(this, a, d);
  32428. this.Tl && this.ai && (this.Tl = null)
  32429. },
  32430. uf: function(a, d) {
  32431. b.Vd.prototype.uf.call(this, a, d);
  32432. this.Tl && (this.Tl = null)
  32433. }
  32434. });
  32435. r = b.CF.prototype;
  32436. b.i(r, "dataSource", r.m9, r.oX);
  32437. b.i(r, "delegate", r.Ew, r.st);
  32438. b.i(r, "verticalFillOrder", r.W$, r.kea);
  32439. r = null;
  32440. b.CF.create = function(a, d, e) {
  32441. return new b.CF(a, d, e)
  32442. };
  32443. var X = {
  32444. naa: "textures/images.plist",
  32445. xpa: "textures/images.png"
  32446. },
  32447. ka = [];
  32448. res_path_head = "";
  32449. b.fa.IC && "undefined" != typeof b.fa.IC && 0 != b.fa.IC && (res_path_head = "res/");
  32450. for (var V in X) X[V] = res_path_head + X[V], ka.push(X[V]);
  32451. delete res_path_head;
  32452. var Da, Ea, Fa, Ga, Ha, Ia, Ja, Ka, La, Na;
  32453. GameLangs = {
  32454. oaa: function() {
  32455. GameLangs.title = "\u6210\u529f\u5e2e\u52a9%d\u4eba\u8ffd\u4e0a\u516c\u8f66";
  32456. GameLangs.PU = "\u5e7f\u5dde\uff1a\u5514\u7b49\u57cb\u6211\uff0c\u771f\u7cfb\u53fc\u55e8\u4f60\u8001\u6bcd\u554a;\u6f6e\u6c55\uff1a\u86cb\u74e6\uff01\u6251\u9886\u6bcd\u554a\u5f00\u6b7b\u7236\u731b\u505a\u6ce5;\u6b66\u6c49\uff1a\u4f60\u5bb6\u6162\u70b9\u6492\u5e26\u4e00\u89c9\u554a\uff01\u4e2a\u72d7\u7684\uff01;\u4e0a\u6d77\uff1a\u56db\u65e0\u7b49\u6b47\uff01\u65e0\u6413\u90a3\u5a18\u989d\u903c\u2026\u2026;\u6210\u90fd\uff1a\u6211\u65e5\u4f60\u4ed9\u4eba\u677f\u677f\u2026\u2026;\u897f\u5b89\uff1a\u5e08\u5085\u7b49\u54c8\uff01\u6211\u5c31\u8d3c\u4e86\u4f60\u5988\u4e86\u2026\u2026;\u4e1c\u5317\uff1a\u64a9\u7684\u633a\u5feb\u7684\u554a\uff0c\u5c3f\u6027\uff0c\n\u4e0b\u6b21\u78b0\u89c1\u4f60\u6574\u6b7b\u4f60;\u53a6\u95e8\uff1a\u53f8\u673a\u86cb\u4ecb\uff01\u6211\u7518\u9716\u8001\u6bcd\u8349\u9e21\u6446; \u5357\u4eac\uff1a\u79c1\u5085\u7b49\u523b\u513f\uff01\u4efb\u4f60\u5988\u2026\u2026~;\u676d\u5dde\uff1a\u5e08\u5085\u7b49\u4e9b\uff01\u4f60\u4e48\u4e2a\u6bd4\uff01\u5f00\u5676\u5feb\u7434\u6b7b\u554a\uff01\uff01\uff01;\u5b81\u6ce2\uff1a\u5e08\u5085\u767b\u723d\u5450\uff01\u90a3\u554a\u6bcd\u897f\u6487\uff01\u5f00\u5676\u5938\u884c\u897f\u554a\uff01\uff01\uff01;\u957f\u6c99\uff1a\u5e08\u5085\u8bf6\u8e29\u4e00j\u00f3\u7c7b\uff01\u8001\u8d44\u5b32\u4f60\u5988\u5988\u522b\uff0c\u558a\u90fd\u558a\u4e0d\u5e94\uff0c\u8d76\u8d77\u514b\u6295\u80ce\u554a\uff1f\uff01;\u91cd\u5e86\uff1a\u53f8\u673a\u7b49\u4e00\u54c8\uff01\u4f60\u4e2a\u54c8\u9ebb\u6279\uff01;\u53f0\u6e7e\uff1a\u7b49\u7b49\u4e86\u5566\uff01\u5bf9\u5566\u2026\u2026\u6211\u5c31\u662f\u7b28\u86cb\u2026\u2026\u5c31\u662f\u7b28\u86cb\u624d\u4f1a\u8ffd\u4e86\u4f60\u8fd9\u4e48\u4e45;\u5e1d\u90fd\uff1a\u4f60\u4e2b\u7b49\u4f1a\u8bf6\uff01\u64cd\u4f60\u5927\u7237\u7684\u81ed\u50bb\u903c\u2026\u2026;\u6cb3\u5357\uff1a\u53f8\u673a\u8001\u4e1d\u513f\uff01\u9ebb\u8fa3\u9694\u58c1\uff01".split(";")
  32457. }
  32458. };
  32459. GameLangs.oaa();
  32460. var Oa = b.Ua.extend({
  32461. Px: null,
  32462. ctor: function() {
  32463. this._super();
  32464. this.Px = b.ia.create({
  32465. event: b.ia.to,
  32466. tm: !0,
  32467. Qb: this.Qb.bind(this),
  32468. Oc: this.Oc.bind(this)
  32469. });
  32470. b.ua.addListener(this.Px, this)
  32471. },
  32472. rwa: function() {
  32473. b.ua.removeListener(this.Px)
  32474. },
  32475. XB: function() {
  32476. this.fq = new b.Ub(b.color(0, 0, 0, 158), b.ld.width, b.ld.height);
  32477. this.C(this.fq, -1)
  32478. },
  32479. ssa: function() {},
  32480. Qb: function() {
  32481. return !0
  32482. },
  32483. Oc: function() {}
  32484. });
  32485. var Pa = b.po.extend({
  32486. Mva: 0,
  32487. Xea: 0,
  32488. mwa: {}.qma,
  32489. dwa: 0,
  32490. ctor: function() {
  32491. this._super()
  32492. },
  32493. aa: function() {
  32494. this._super()
  32495. },
  32496. Pb: function() {
  32497. b.log("onExit");
  32498. this._super()
  32499. },
  32500. swa: function() {
  32501. b.log("_________unScheduleTick")
  32502. },
  32503. lM: function() {
  32504. this.Xea++
  32505. },
  32506. Lva: function() {}
  32507. });
  32508. var $ = {},
  32509. Qa = b.fa.localStorage.getItem("game_datas_debug");
  32510. if (null == Qa || "" == Qa) {
  32511. $.man_init_speed1 = 0.6;
  32512. $.man_init_speed2 = 0.8;
  32513. $.man_init_speed3 = 1;
  32514. $.man_accelerated_speed1 = 0.1;
  32515. $.man_accelerated_speed2 = 0.11;
  32516. $.man_accelerated_speed3 = 0.12;
  32517. $.run_speed = 30;
  32518. var Ra = JSON.stringify($);
  32519. b.fa.localStorage.setItem("game_datas_debug", Ra)
  32520. } else Qa = b.fa.localStorage.getItem("game_datas_debug"), $ = JSON.parse(Qa);
  32521. GameTools = {
  32522. uw: function(a) {
  32523. a.lW = a.lW || 0.5;
  32524. a.mW = a.mW || 0.5;
  32525. a.kaa = a.kaa || 0.5;
  32526. a.laa = a.laa || 0.5;
  32527. void 0 == a.Ep && (a.Ep = !0);
  32528. var d = a.scale || 0.9,
  32529. e = new b.B(a.Op),
  32530. f = NaN;
  32531. a.e8 ? f = c(a.e8) : (f = new b.B(a.Op), f.X(b.color.GRAY));
  32532. var g = new b.B(a.Op),
  32533. h = new b.no(e, g, f, function(a) {
  32534. a.Fk && a.Fk(a)
  32535. });
  32536. h.Fk = a.Fk;
  32537. h.qt(!0);
  32538. e.qt(!0);
  32539. g.qt(!0);
  32540. f.qt(!0);
  32541. h.Cia = e;
  32542. h.y2 = g;
  32543. h.Bia = f;
  32544. h.y2.X(b.color.GRAY);
  32545. a.Ep && (g.x = e.Nh() * (1 - d) * 0.5, g.y = e.ml() * (1 - d) * 0.5, g.oh(d), g.ph(d));
  32546. void 0 == a.label && void 0 != a.sba && (a.nW = a.nW || 24, a.kW = a.kW || b.color.WHITE, a.label =
  32547. new b.M(a.sba, "Arial", a.nW), a.label.X(a.kW), a.rba && a.label.Vla(a.rba, a.Jqa || 2));
  32548. a.label && (a.label.I(e.L().width * a.lW, e.L().height * a.mW), h.C(a.label), h.nd = a.label);
  32549. return h
  32550. },
  32551. vZ: function(a, d, e, f, g, h) {
  32552. var k = null,
  32553. m = b.nw;
  32554. a && (k = m.wK(a));
  32555. if (!k) {
  32556. k = [];
  32557. for (V = 1; V <= e; V++) {
  32558. var n;
  32559. n = h ? d[V] : b.Aw(d, V);
  32560. n = b.sh.og(n);
  32561. k.push(n)
  32562. }
  32563. k = new b.Kj(k, f);
  32564. a && m.FJ(k, a)
  32565. }
  32566. k.Gx(g);
  32567. return k
  32568. }
  32569. };
  32570. Array.indexOf || (Array.prototype.indexOf = function(a) {
  32571. for (var d = 0; d < this.length; d++)
  32572. if (this[d] == a) return d;
  32573. return -1
  32574. });
  32575. GameTools.joa = function(a, d) {
  32576. return Math.floor(Math.random() * (d - a + 1)) + a
  32577. };
  32578. GameTools.ria = function(a) {
  32579. for (var d = "", e = 0; e < a.length; e++) {
  32580. var f = a.charAt(e);
  32581. "+" == f ? d += " " : "%" == f ? (f = a.substring(e + 1, e + 3), 127 < parseInt("0x" + f) ? (d += asc2str(parseInt("0x" + f + a.substring(e + 4, e + 6))), e += 5) : (d += asc2str(parseInt("0x" + f)), e += 2)) : d += f
  32582. }
  32583. return d
  32584. };
  32585. ImageNumber = b.e.extend({
  32586. rc: null,
  32587. Cs: null,
  32588. dL: null,
  32589. Kd: 0,
  32590. gf: 0,
  32591. wW: null,
  32592. $C: null,
  32593. dC: 1,
  32594. ct: 0,
  32595. ctor: function(a) {
  32596. this._super();
  32597. this.Nb({
  32598. anchorX: 0.5,
  32599. anchorY: 0.5,
  32600. x: 0,
  32601. y: 0
  32602. });
  32603. this.ct = a.ct || 0;
  32604. this.dL = a.dL;
  32605. this.$C = "";
  32606. this.Cs = {};
  32607. this.rc = [];
  32608. for (var d = 0; 10 > d; d++) {
  32609. var e = d.toString(),
  32610. f = b.sh.og(b.Aw(this.dL, e));
  32611. this.Cs[e] = f
  32612. }
  32613. "number" == typeof a.value ? this.Ada(a.value) : this.ZX(a.value)
  32614. },
  32615. sua: function(a) {
  32616. this.ct = a;
  32617. this.$D()
  32618. },
  32619. Ada: function(a) {
  32620. this.ZX(a.toString())
  32621. },
  32622. $D: function() {
  32623. for (var a = this.wW.length, d = this.gf = this.Kd = 0, e = 0; e <
  32624. a; e++) {
  32625. var d = a - 1 - e,
  32626. f = this.rc[d].L();
  32627. this.Kd = 0 == e ? f.width : this.Kd + (this.ct + f.width);
  32628. this.gf < f.height && (this.gf = f.height);
  32629. this.rc[d].Nb({
  32630. anchorX: 1,
  32631. anchorY: 0,
  32632. x: this.Kd,
  32633. y: 0
  32634. })
  32635. }
  32636. },
  32637. ZX: function(a) {
  32638. this.wW = a;
  32639. var d = a.length,
  32640. e = "",
  32641. f = 0,
  32642. e = d - this.$C.length;
  32643. this.dC = 0 < e ? 2 : 0 > e ? 1 : 0;
  32644. if (2 == this.dC)
  32645. for (var g = this.gf = this.Kd = 0; g < d; g++) e = a.substring(g, g + 1), f = d - 1 - g, "undefined" != typeof this.rc[f] ? this.rc[f].xv != e && this.rc[f].zi(this.Cs[e]) : (this.rc[f] = new b.B, this.rc[f].zi(this.Cs[e]), this.C(this.rc[f], 1)), this.rc[f].xv = e,
  32646. e = this.rc[f].L(), this.Kd = 0 == g ? this.Kd + e.width : this.Kd + (this.ct + e.width), this.gf < e.height && (this.gf = e.height), this.rc[f].Nb({
  32647. anchorX: 1,
  32648. anchorY: 0,
  32649. x: this.Kd,
  32650. y: 0
  32651. });
  32652. else if (1 == this.dC) {
  32653. for (g = this.gf = this.Kd = 0; g < -e; g++) f = this.$C.length - 1 - g, "undefined" != typeof this.rc[f] ? (this.rc[f].L(), this.rc[f].Rn(!0), this.rc.splice(f, 1)) : b.log("exist logical error!");
  32654. for (g = 0; g < d; g++) e = a.substring(g, g + 1), f = d - 1 - g, "undefined" != typeof this.rc[f] && this.rc[f].xv != e && (this.rc[f].zi(this.Cs[e]), this.rc[f].xv = e), e = this.rc[f].L(),
  32655. this.Kd += this.ct + e.width, this.gf < e.height && (this.gf = e.height), this.rc[f].Nb({
  32656. anchorX: 1,
  32657. anchorY: 0,
  32658. x: this.Kd,
  32659. y: 0
  32660. })
  32661. } else
  32662. for (g = 0; g < d; g++) e = a.substring(g, g + 1), f = d - 1 - g, "undefined" != typeof this.rc[f] && this.rc[f].xv != e && (this.rc[f].zi(this.Cs[e]), this.rc[f].xv = e);
  32663. 0 != this.dC && this.Na(this.Kd, this.gf);
  32664. this.$C = a
  32665. },
  32666. Eoa: function(a) {
  32667. for (var d = 0, e = a.length, f = -1, g = 0; g < e; g++) f = a.charCodeAt(g), d = 0 <= f && 128 >= f ? d + 1 : d + 2;
  32668. return d
  32669. }
  32670. });
  32671. var Sa = Oa.extend({
  32672. ctor: function() {
  32673. this._super();
  32674. this.XB();
  32675. var a = b.ld,
  32676. d = b.view.w9();
  32677. b.fa.xj == b.fa.My ? (d.width /= b.view.oc(), d.height /= b.view.gd()) : d = b.ld;
  32678. this.fq = new b.Ub(b.color(0, 0, 0, 158), d.width, d.height);
  32679. this.fq.x = (a.width - d.width) / 2;
  32680. this.fq.y = (a.height - d.height) / 2;
  32681. this.C(this.fq, -1);
  32682. a = new b.B("#icon_arrows.png");
  32683. this.C(a, 1);
  32684. a.Nb({
  32685. anchorX: 1,
  32686. anchorY: 1,
  32687. x: 0.93 * (b.ld.width - this.fq.x),
  32688. y: 0.985 * (b.ld.height - this.fq.y)
  32689. });
  32690. d = new b.B("#share_label.png");
  32691. d.Nb({
  32692. anchorY: 1,
  32693. x: 0.5 * b.ld.width,
  32694. y: a.y - a.height - 10
  32695. });
  32696. this.C(d, 1)
  32697. console.log("分享")
  32698. },
  32699. Pb: function() {
  32700. this._super();
  32701. La = null
  32702. },
  32703. Qb: function() {
  32704. this.Rn();
  32705. return !0
  32706. }
  32707. });
  32708. var Ya = Oa.extend({
  32709. ctor: function() {
  32710. this._super();
  32711. this.T();
  32712. Na = this;
  32713. this.C(new Va(function() {
  32714. this.tD.hC()
  32715. }.bind(this)), 1E3);
  32716. this.Dj(this.lM, 0)
  32717. },
  32718. aa: function() {
  32719. this._super()
  32720. },
  32721. T: function() {
  32722. this.vx = 0;
  32723. b.sh.IJ(X.naa);
  32724. var a = b.ld,
  32725. d = new b.Ub(b.color(255, 255, 255, 255), b.ld.width, b.ld.height);
  32726. this.C(d, -1);
  32727. this.rD = new Wa(Da, 1);
  32728. this.sD = new Wa(Ga, 2);
  32729. this.tD = new Wa(Ha, 3);
  32730. this.C(this.rD);
  32731. this.C(this.sD);
  32732. this.C(this.tD);
  32733. d = new b.B("#title_label.png");
  32734. this.C(d, 2);
  32735. d.x = a.width / 2;
  32736. d.y = 0.97 * a.height;
  32737. this.HD = new b.M("0", "Arial",
  32738. 40);
  32739. this.HD.X(b.color.BLACK);
  32740. this.HD.Nb({
  32741. x: 0.47 * a.width,
  32742. y: 0.97 * a.height
  32743. });
  32744. this.C(this.HD, 2)
  32745. },
  32746. Vja: function() {
  32747. this.Px = b.ia.create({
  32748. event: b.ia.hz,
  32749. tm: !0,
  32750. Qb: this.Qb.bind(this),
  32751. Oc: this.Oc.bind(this)
  32752. });
  32753. b.ua.addListener(this.Px, this)
  32754. },
  32755. lM: function() {
  32756. this.rD.SJ();
  32757. this.sD.SJ();
  32758. this.tD.SJ()
  32759. },
  32760. U8: function() {
  32761. this.tg(this.lM);
  32762. this.Ba(b.Fb(b.Fe(3), b.Cc(function() {
  32763. this.C(new Xa(this.vx), 100)
  32764. }, this)))
  32765. },
  32766. Qb: function(a) {
  32767. a = a.hi();
  32768. a.y > Da && a.y < Ga ? this.rD.tL() : a.y > Ga && a.y < Ha ? this.sD.tL() : a.y > Ha && a.y < Ia && this.tD.tL()
  32769. }
  32770. }),
  32771. Za =
  32772. Pa.extend({
  32773. ctor: function() {
  32774. this._super();
  32775. this.T()
  32776. },
  32777. aa: function() {
  32778. this._super()
  32779. },
  32780. T: function() {
  32781. b.uD.h8();
  32782. this.Dba = new Ya;
  32783. this.C(this.Dba)
  32784. }
  32785. });
  32786. var Wa = b.Ua.extend({
  32787. ctor: function(a, d) {
  32788. this._super();
  32789. this.y = a;
  32790. this.height = Fa;
  32791. this.T(d);
  32792. this.index = d
  32793. },
  32794. T: function(a) {
  32795. var d = b.ld;
  32796. this.floor = new b.B("#floor.png");
  32797. this.C(this.floor, 3);
  32798. this.floor.x = d.width / 2;
  32799. this.Ld = new b.B("#icon_bus.png");
  32800. this.C(this.Ld, 1);
  32801. d = (new b.Fh(new b.Pt(function(a) {
  32802. a.scale = 0.4;
  32803. a.opacity = 0
  32804. }), new b.Cm(new b.yq(0.4, 1, 1), new b.sq(0.4)))).ux();
  32805. switch (a) {
  32806. case 1:
  32807. this.speed = $.man_init_speed1;
  32808. this.uL = $.man_accelerated_speed1;
  32809. this.Ld.Nb({
  32810. anchorY: 0,
  32811. anchorX: 0,
  32812. x: 0.6 * -this.Ld.width
  32813. });
  32814. a = new b.B("#icon_smoke.png");
  32815. a.Nb({
  32816. x: this.Ld.width + this.Ld.x,
  32817. anchorX: 0,
  32818. anchorY: 0
  32819. });
  32820. this.C(a);
  32821. a.Ba(d);
  32822. a = new b.B("#icon_smoke.png");
  32823. a.Nb({
  32824. x: this.Ld.width + this.Ld.x + a.width,
  32825. anchorX: 0,
  32826. anchorY: 0
  32827. });
  32828. this.C(a);
  32829. a.Ba(d.q());
  32830. a = new b.B("#icon_smoke.png");
  32831. a.Nb({
  32832. x: this.Ld.width + this.Ld.x + 2 * a.width,
  32833. anchorX: 0,
  32834. anchorY: 0
  32835. });
  32836. this.C(a);
  32837. a.Ba(d.q());
  32838. break;
  32839. case 2:
  32840. this.speed = $.man_init_speed2;
  32841. this.uL = $.man_accelerated_speed2;
  32842. this.Ld.Nb({
  32843. anchorY: 0,
  32844. anchorX: 0,
  32845. x: 0.1 * -this.Ld.width
  32846. });
  32847. a = new b.B("#icon_smoke.png");
  32848. a.Nb({
  32849. x: this.Ld.width + this.Ld.x,
  32850. anchorX: 0,
  32851. anchorY: 0
  32852. });
  32853. this.C(a);
  32854. a.Ba(d.q());
  32855. a = new b.B("#icon_smoke.png");
  32856. a.Nb({
  32857. x: this.Ld.width + this.Ld.x + a.width,
  32858. anchorX: 0,
  32859. anchorY: 0
  32860. });
  32861. this.C(a);
  32862. a.Ba(d.q());
  32863. break;
  32864. case 3:
  32865. this.speed = $.man_init_speed3, this.uL = $.man_accelerated_speed3, this.Ld.Nb({
  32866. anchorY: 0,
  32867. anchorX: 0
  32868. }), a = new b.B("#icon_smoke.png"), a.Nb({
  32869. x: this.Ld.width,
  32870. y: a.height / 2,
  32871. anchorX: 0,
  32872. anchorY: 0.5
  32873. }), a.Ba(d.q()), this.C(a)
  32874. }
  32875. a = b.Fb(b.moveBy(0.2, 0, 2).fb(b.qK(2)), b.moveBy(0.2, 0, -2).fb(b.qK(2))).ux();
  32876. this.Ld.Ba(a);
  32877. this.caa = this.Ld.x + this.Ld.width
  32878. },
  32879. SJ: function() {
  32880. !this.Ei ||
  32881. 2 < this.Ei.y || (this.Ei.x += this.speed, this.Ei.x < this.caa ? (this.Ei.baa(), this.speed += this.uL, this.hC(), Na.vx++, Na.HD.Wc(Na.vx), 2 == Na.vx && Na.sD.hC(), 5 == Na.vx && Na.rD.hC()) : this.Ei.x > b.ld.width && (this.uea(), Na.U8()))
  32882. },
  32883. uea: function() {
  32884. var a = new b.M(GameLangs.PU[Math.floor(Math.random() * GameLangs.PU.length)], "Arial", 40);
  32885. this.C(a, 10);
  32886. a.X(b.color.BLACK);
  32887. a.width = 0.8 * b.ld.width;
  32888. a.Nb({
  32889. x: 0.5 * this.width,
  32890. y: 0.5 * this.height
  32891. })
  32892. },
  32893. tL: function() {
  32894. this.Ei && (2 < this.Ei.y || (this.Ei.x -= $.run_speed))
  32895. },
  32896. hC: function() {
  32897. this.Ei = $a.create();
  32898. this.C(this.Ei, 5)
  32899. }
  32900. });
  32901. var $a = b.B.extend({
  32902. ctor: function() {
  32903. this._super("#run_man_0001.png");
  32904. this.x = Ja;
  32905. this.y = Ka;
  32906. this.anchorY = this.opacity = 0;
  32907. this.tU()
  32908. },
  32909. tU: function() {
  32910. var a = GameTools.vZ("run", "run_man_000%d.png", 3, 0.1, !0);
  32911. this.Ba(b.VT(a).ux());
  32912. this.Ba(new b.Fh(new b.sq(0.2), new b.Xk(0.5, 0, -Ka)))
  32913. },
  32914. baa: function() {
  32915. this.Ba(new b.Fh(new b.ju(0.3), new b.Pt(function(a) {
  32916. b.uD.hca(a)
  32917. })))
  32918. },
  32919. AY: function() {
  32920. this.Ci(!1);
  32921. this.Rn(!0)
  32922. },
  32923. nt: function() {
  32924. this.Ci(!0);
  32925. this.x = Ja;
  32926. this.y = Ka;
  32927. this.tU()
  32928. }
  32929. });
  32930. $a.create = function() {
  32931. return b.uD.KV($a) ? b.uD.x9($a) : new $a
  32932. };
  32933. var Xa = Oa.extend({
  32934. ctor: function(a) {
  32935. this._super();
  32936. this.XB();
  32937. this.T(a)
  32938. },
  32939. T: function(a) {
  32940. 0.5 < Math.random() && this.C(new ab, 1E3);
  32941. var d = b.ld,
  32942. e = new b.B("#game_over.png");
  32943. e.x = d.width / 2;
  32944. e.y = 0.6 * d.height;
  32945. this.C(e, 25);
  32946. e = new b.zm;
  32947. e.Nb({
  32948. x: 0.5 * d.width,
  32949. y: 0.2 * d.height
  32950. });
  32951. this.C(e);
  32952. var f = GameTools.uw({
  32953. Op: "#game_over_2.png",
  32954. Fk: function() {
  32955. parent.location.href="#"
  32956. },
  32957. Ep: !1
  32958. });
  32959. e.C(f);
  32960. e = new b.M(a ? a : "0", "Arial", 50);
  32961. this.C(e, 100);
  32962. e.Nb({
  32963. x: 0.49 * d.width,
  32964. y: 0.61 * d.height
  32965. });
  32966. e = new b.zm;
  32967. e.Nb({
  32968. x: 0.5 * d.width,
  32969. y: 0.45 * d.height
  32970. });
  32971. d = new b.B("#label_again.png");
  32972. f = GameTools.uw({
  32973. Op: "#btn_bg.png",
  32974. Fk: function() {
  32975. b.P.GD(new Za)
  32976. },
  32977. Ep: !0,
  32978. label: d
  32979. });
  32980. e.C(f);
  32981. d = new b.B("#flaunt.png");
  32982. share_wx(a);
  32983. a = GameTools.uw({
  32984. Op: "#btn_bg.png",
  32985. Fk: function() {
  32986. La = new Sa;
  32987. this.C(La, 1E3)
  32988. }.bind(this),
  32989. Ep: !0,
  32990. label: d
  32991. });
  32992. e.C(a);
  32993. e.YB(140);
  32994. this.C(e)
  32995. }
  32996. });
  32997. var Va = Oa.extend({
  32998. ctor: function(a) {
  32999. this._super();
  33000. this.XB();
  33001. this.T();
  33002. this.Fk = a
  33003. },
  33004. Qb: function() {
  33005. this.Fk();
  33006. this.Rn(!0);
  33007. return !0
  33008. },
  33009. T: function() {
  33010. var a = b.ld,
  33011. d = new b.B("#game_start.png");
  33012. d.x = a.width / 2;
  33013. d.y = a.height / 2;
  33014. this.C(d);
  33015. d = new b.B("#munu_logo.png");
  33016. d.x = a.width / 2;
  33017. d.y = 0.05 * a.height;
  33018. this.C(d)
  33019. }
  33020. });
  33021. var ab = Oa.extend({
  33022. ctor: function() {
  33023. this._super();
  33024. var a = b.ld;
  33025. this.XB();
  33026. var d = new b.zm;
  33027. d.Nb({
  33028. x: 0,
  33029. y: 0.08 * a.height
  33030. });
  33031. this.C(d);
  33032. var e = GameTools.uw({
  33033. Op: "#AD.jpg",
  33034. Fk: function() {
  33035. window.location.href = "#"
  33036. },
  33037. Ep: !1
  33038. });
  33039. e.x = a.width / 2;
  33040. e.y = a.height / 2;
  33041. d.C(e);
  33042. var f = GameTools.uw({
  33043. Op: "#btn_close.png",
  33044. Fk: function() {
  33045. this.Rn(!0)
  33046. }.bind(this),
  33047. Ep: !1
  33048. });
  33049. f.x = a.width / 2 + e.width /
  33050. 2;
  33051. f.y = a.height / 2 + e.height / 2;
  33052. d.C(f)
  33053. }
  33054. });
  33055. b.pb.wL = function() {
  33056. var a = b.fa;
  33057. a.xj === a.wq || a.xj === a.RE ? b.view.rK(!0) : b.view.rK(!1);
  33058. b.view.R6(!0);
  33059. b.P.Sn(b.jb.EN);
  33060. b.view.yx(720, 1280, b.$f.SHOW_ALL);
  33061. b.view.Dca(!0);
  33062. b.KE.aca(function() {
  33063. var a = b.ld;
  33064. Da = 0.02 * a.height;
  33065. Ea = 0.01 * a.height;
  33066. Fa = (a.height - Da - Ea) / 3;
  33067. Ga = Da + Fa;
  33068. Ha = Da + 2 * Fa;
  33069. Ia = Da + 3 * Fa;
  33070. Ja = 0.42 * a.width;
  33071. Ka = 0.5 * Fa;
  33072. b.P.GD(new Za)
  33073. }, this)
  33074. };
  33075. b.pb.Jca();