c2runtime.js 337 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214
  1. 'use strict';
  2. var aa, ba, ca, da, fa, ga, ha, ja, z, la, ma, na, pa, qa, sa, ta, ua, va, wa, xa, ya, za, Ba, A, Da, Fa, Ha, Ia, Ja, G, Ka, La, Ma, Na, Oa, Pa, Ra, Sa, Ta, Ua, Va, Wa, Xa, Ya, Za, $a, cb, db, eb, fb, gb, hb, ib, jb, kb, lb, mb, pb, qb, rb, sb, tb, ub, vb, wb, xb, yb, zb, Ab, Bb, Cb, Hb, Ib, Jb, Kb, Lb, Mb, Nb, Ob, Pb, Qb, Rb, Sb, Tb, Ub, Vb, Wb, Xb, Yb, Zb, $b, ac, bc, cc, dc, ec, fc, gc, hc, ic, _typeof2 = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function (t) {
  3. return typeof t;
  4. } : function (t) {
  5. return t && 'function' == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? 'symbol' : typeof t;
  6. }, _typeof = 'function' == typeof Symbol && 'symbol' == _typeof2(Symbol.iterator) ? function (t) {
  7. return void 0 === t ? 'undefined' : _typeof2(t);
  8. } : function (t) {
  9. return t && 'function' == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? 'symbol' : void 0 === t ? 'undefined' : _typeof2(t);
  10. }, jc = {};
  11. 'function' != typeof Object.getPrototypeOf && (Object.getPrototypeOf = 'object' === _typeof('test'.__proto__) ? function (t) {
  12. return t.__proto__;
  13. } : function (t) {
  14. return t.constructor.prototype;
  15. }), function () {
  16. function t(t, i, s, e) {
  17. this.set(t, i, s, e);
  18. }
  19. function i() {
  20. this.ab = this.$a = this.cb = this.bb = this.ob = this.nb = this.Ga = this.Fa = 0;
  21. }
  22. function s(t, i, s, e) {
  23. d = t < i ? s < e ? (b = t < s ? t : s, e < i ? i : e) : (b = t < e ? t : e, s < i ? i : s) : s < e ? (b = i < s ? i : s, e < t ? t : e) : (b = i < e ? i : e, s < t ? t : s);
  24. }
  25. function e() {
  26. this.items = this.Fd = null, this.Nh = 0, w && (this.Fd = new Set()), this.Ug = [], this.ue = !0;
  27. }
  28. function h(t) {
  29. k[x++] = t;
  30. }
  31. function n() {
  32. this.Z = this.Vk = this.y = this.Il = 0;
  33. }
  34. function o(t) {
  35. this.lb = [], this.gj = this.ij = this.jj = this.hj = 0, this.oi(t);
  36. }
  37. function r(t, i) {
  38. this.Ml = t, this.Ll = i, this.cells = {};
  39. }
  40. function a(t, i) {
  41. this.Ml = t, this.Ll = i, this.cells = {};
  42. }
  43. function c(t, i, s) {
  44. var e;
  45. return T.length ? ((e = T.pop()).rm = t, e.x = i, e.y = s, e) : new ba(t, i, s);
  46. }
  47. function p(t, i, s) {
  48. this.rm = t, this.x = i, this.y = s, this.sb = new ca();
  49. }
  50. function u(t, i, s) {
  51. var e;
  52. return E.length ? ((e = E.pop()).rm = t, e.x = i, e.y = s, e) : new da(t, i, s);
  53. }
  54. function f(t, i, s) {
  55. this.rm = t, this.x = i, this.y = s, this.sb = [], this.mg = !0, this.Cd = new ca(), this.eh = !1;
  56. }
  57. function l(t, i) {
  58. return t.pd - i.pd;
  59. }
  60. fa = function (t) {
  61. window.console && window.console.log && window.console.log(t);
  62. }, ga = function (t) {
  63. window.console && window.console.error && window.console.error(t);
  64. }, aa = function (t) {
  65. return t;
  66. }, ha = function (t) {
  67. return void 0 === t;
  68. }, ja = function (t) {
  69. return 'number' == typeof t;
  70. }, z = function (t) {
  71. return 'string' == typeof t;
  72. }, la = function (t) {
  73. return 0 < t && 0 == (t - 1 & t);
  74. }, ma = function (t) {
  75. --t;
  76. for (var i = 1; i < 32; i <<= 1)
  77. t |= t >> i;
  78. return t + 1;
  79. }, na = function (t) {
  80. return t < 0 ? -t : t;
  81. }, pa = function (t, i) {
  82. return i < t ? t : i;
  83. }, qa = function (t, i) {
  84. return t < i ? t : i;
  85. }, sa = Math.PI, ta = function (t) {
  86. return 0 <= t ? 0 | t : (0 | t) - 1;
  87. }, ua = function (t) {
  88. var i = 0 | t;
  89. return i === t ? i : 1 + i;
  90. }, va = function (t, i, s, e, h, n, o, r) {
  91. var a, c, p, u;
  92. return p = h < o ? (u = h, o) : (u = o, h), !((a = t < s ? (c = t, s) : (c = s, t)) < u || p < c || (p = n < r ? (u = n, r) : (u = r, n), (a = i < e ? (c = i, e) : (c = e, i)) < u || p < c || (a = h - t + o - s, c = n - i + r - e, r = na((i = e - i) * (h = o - h) - (n = r - n) * (t = s - t)), na(h * c - n * a) > r || !(na(t * c - i * a) <= r))));
  93. }, t.prototype.set = function (t, i, s, e) {
  94. this.left = t, this.top = i, this.right = s, this.bottom = e;
  95. }, t.prototype.Vf = function (t) {
  96. this.left = t.left, this.top = t.top, this.right = t.right, this.bottom = t.bottom;
  97. }, t.prototype.width = function () {
  98. return this.right - this.left;
  99. }, t.prototype.height = function () {
  100. return this.bottom - this.top;
  101. }, t.prototype.offset = function (t, i) {
  102. return this.left += t, this.top += i, this.right += t, this.bottom += i, this;
  103. }, t.prototype.normalize = function () {
  104. var t = 0;
  105. this.left > this.right && (t = this.left, this.left = this.right, this.right = t), this.top > this.bottom && (t = this.top, this.top = this.bottom, this.bottom = t);
  106. }, t.prototype.Ww = function (t) {
  107. return !(t.right < this.left || t.bottom < this.top || t.left > this.right || t.top > this.bottom);
  108. }, t.prototype.Xw = function (t, i, s) {
  109. return !(t.right + i < this.left || t.bottom + s < this.top || t.left + i > this.right || t.top + s > this.bottom);
  110. }, t.prototype.Ib = function (t, i) {
  111. return t >= this.left && t <= this.right && i >= this.top && i <= this.bottom;
  112. }, t.prototype.oh = function (t) {
  113. return this.left === t.left && this.top === t.top && this.right === t.right && this.bottom === t.bottom;
  114. }, wa = t, i.prototype.ni = function (t) {
  115. this.Fa = t.left, this.Ga = t.top, this.nb = t.right, this.ob = t.top, this.bb = t.right, this.cb = t.bottom, this.$a = t.left, this.ab = t.bottom;
  116. }, i.prototype.Br = function (t, i) {
  117. if (0 === i)
  118. this.ni(t);
  119. else {
  120. var s = Math.sin(i), e = Math.cos(i), h = t.left * s, n = t.top * s, o = t.right * s, r = (s = t.bottom * s, t.left * e), a = t.top * e, c = t.right * e;
  121. e = t.bottom * e, this.Fa = r - n, this.Ga = a + h, this.nb = c - n, this.ob = a + o, this.bb = c - s, this.cb = e + o, this.$a = r - s, this.ab = e + h;
  122. }
  123. }, i.prototype.offset = function (t, i) {
  124. return this.Fa += t, this.Ga += i, this.nb += t, this.ob += i, this.bb += t, this.cb += i, this.$a += t, this.ab += i, this;
  125. };
  126. var b = 0, d = 0;
  127. i.prototype.To = function (t) {
  128. s(this.Fa, this.nb, this.bb, this.$a), t.left = b, t.right = d, s(this.Ga, this.ob, this.cb, this.ab), t.top = b, t.bottom = d;
  129. }, i.prototype.Ib = function (t, i) {
  130. var s = this.Fa, e = this.Ga, h = this.nb - s, n = this.ob - e, o = this.bb - s, r = this.cb - e, a = t - s, c = i - e, p = h * o + n * r, u = o * o + r * r, f = o * a + r * c, l = 1 / ((b = h * h + n * n) * u - p * p), b = (b * f - p * (n = h * a + n * c)) * l;
  131. return 0 <= (h = (u * n - p * f) * l) && 0 < b && h + b < 1 || (b = ((b = (h = this.$a - s) * h + (n = this.ab - e) * n) * f - (p = h * o + n * r) * (n = h * a + n * c)) * (l = 1 / (b * u - p * p)), 0 <= (h = (u * n - p * f) * l) && 0 < b && h + b < 1);
  132. }, i.prototype.pc = function (t, i) {
  133. if (i)
  134. switch (t) {
  135. case 0:
  136. return this.Fa;
  137. case 1:
  138. return this.nb;
  139. case 2:
  140. return this.bb;
  141. case 3:
  142. return this.$a;
  143. case 4:
  144. default:
  145. return this.Fa;
  146. }
  147. else
  148. switch (t) {
  149. case 0:
  150. return this.Ga;
  151. case 1:
  152. return this.ob;
  153. case 2:
  154. return this.cb;
  155. case 3:
  156. return this.ab;
  157. case 4:
  158. default:
  159. return this.Ga;
  160. }
  161. }, i.prototype.Cq = function () {
  162. return (this.Fa + this.nb + this.bb + this.$a) / 4;
  163. }, i.prototype.Dq = function () {
  164. return (this.Ga + this.ob + this.cb + this.ab) / 4;
  165. }, i.prototype.Kp = function (t) {
  166. var i, s, e, h, n, o, r, a, c = t.Cq(), p = t.Dq();
  167. if (this.Ib(c, p))
  168. return !0;
  169. if (c = this.Cq(), p = this.Dq(), t.Ib(c, p))
  170. return !0;
  171. for (r = 0; r < 4; r++)
  172. for (a = 0; a < 4; a++)
  173. if (c = this.pc(r, !0), p = this.pc(r, !1), i = this.pc(r + 1, !0), s = this.pc(r + 1, !1), e = t.pc(a, !0), h = t.pc(a, !1), n = t.pc(a + 1, !0), o = t.pc(a + 1, !1), va(c, p, i, s, e, h, n, o))
  174. return !0;
  175. return !1;
  176. }, xa = i, ya = function (t, i) {
  177. for (var s in i)
  178. i.hasOwnProperty(s) && (t[s] = i[s]);
  179. return t;
  180. }, za = function (t, i) {
  181. var s, e;
  182. if (!((i = ta(i)) < 0 || i >= t.length)) {
  183. for (s = i, e = t.length - 1; s < e; s++)
  184. t[s] = t[s + 1];
  185. Ba(t, e);
  186. }
  187. }, Ba = function (t, i) {
  188. t.length = i;
  189. }, A = function (t) {
  190. Ba(t, 0);
  191. }, Da = function (t, i) {
  192. var s, e;
  193. for (A(t), s = 0, e = i.length; s < e; ++s)
  194. t[s] = i[s];
  195. }, Fa = function (t, i) {
  196. t.push.apply(t, i);
  197. }, Ha = function (t, i) {
  198. var s, e;
  199. for (s = 0, e = t.length; s < e; ++s)
  200. if (t[s] === i)
  201. return s;
  202. return -1;
  203. }, Ia = function (t, i) {
  204. var s = Ha(t, i);
  205. -1 !== s && za(t, s);
  206. }, Ja = function (t, i, s) {
  207. return t < i ? i : s < t ? s : t;
  208. }, G = function (t) {
  209. return t / (180 / sa);
  210. }, Ka = function (t) {
  211. return 180 / sa * t;
  212. }, La = function (t) {
  213. return (t %= 360) < 0 && (t += 360), t;
  214. }, Ma = function (t) {
  215. return (t %= 2 * sa) < 0 && (t += 2 * sa), t;
  216. }, Na = function (t) {
  217. return La(Ka(t));
  218. }, Oa = function (t) {
  219. return Ma(G(t));
  220. }, Pa = function (t, i, s, e) {
  221. return Math.atan2(e - i, s - t);
  222. }, Ra = function (t, i) {
  223. if (t === i)
  224. return 0;
  225. var s = Math.sin(t), e = Math.cos(t);
  226. return 1 <= (s = s * Math.sin(i) + e * Math.cos(i)) ? 0 : s <= -1 ? sa : Math.acos(s);
  227. }, Sa = function (t, i, s) {
  228. var e = Math.sin(t), h = Math.cos(t), n = Math.sin(i), o = Math.cos(i);
  229. return Math.acos(e * n + h * o) > s ? Ma(0 < h * n - e * o ? t + s : t - s) : Ma(i);
  230. }, Ta = function (t, i) {
  231. var s = Math.sin(t);
  232. return Math.cos(t) * Math.sin(i) - s * Math.cos(i) <= 0;
  233. }, Ua = function (t, i, s, e, h, n) {
  234. if (0 === s)
  235. return n ? t : i;
  236. var o = Math.sin(s), r = (t -= e) * o;
  237. return t = t * (s = Math.cos(s)) - (i -= h) * o, i = i * s + r, n ? t + e : i + h;
  238. }, Va = function (t, i, s, e) {
  239. return t = s - t, i = e - i, Math.sqrt(t * t + i * i);
  240. }, Wa = function (t, i) {
  241. return !t != !i;
  242. }, Xa = function (t) {
  243. for (var i in t)
  244. if (t.hasOwnProperty(i))
  245. return !0;
  246. return !1;
  247. }, Ya = function (t) {
  248. for (var i in t)
  249. t.hasOwnProperty(i) && delete t[i];
  250. };
  251. var g = +new Date(), y = !(Za = function () {
  252. if (void 0 !== window.performance) {
  253. var t = window.performance;
  254. if (void 0 !== t.now)
  255. return t.now();
  256. if (void 0 !== t.webkitNow)
  257. return t.webkitNow();
  258. if (void 0 !== t.mozNow)
  259. return t.mozNow();
  260. if (void 0 !== t.msNow)
  261. return t.msNow();
  262. }
  263. return Date.now() - g;
  264. }), v = y = !1, m = !1;
  265. 'undefined' != typeof window && (y = !(y = /chrome/i.test(navigator.userAgent) || /chromium/i.test(navigator.userAgent)) && /safari/i.test(navigator.userAgent), v = /(iphone|ipod|ipad)/i.test(navigator.userAgent), m = window.c2ejecta);
  266. var w = !y && !m && !v && 'undefined' != typeof Set && void 0 !== Set.prototype.forEach;
  267. e.prototype.contains = function (t) {
  268. return !this.Yd() && (w ? this.Fd.has(t) : this.items && this.items.hasOwnProperty(t));
  269. }, e.prototype.add = function (t) {
  270. if (w)
  271. this.Fd.has(t) || (this.Fd.add(t), this.ue = !1);
  272. else {
  273. var i = t.toString(), s = this.items;
  274. s ? s.hasOwnProperty(i) || (s[i] = t, this.Nh++, this.ue = !1) : (this.items = {}, this.items[i] = t, this.Nh = 1, this.ue = !1);
  275. }
  276. }, e.prototype.remove = function (t) {
  277. if (!this.Yd())
  278. if (w)
  279. this.Fd.has(t) && (this.Fd.delete(t), this.ue = !1);
  280. else if (this.items) {
  281. t = t.toString();
  282. var i = this.items;
  283. i.hasOwnProperty(t) && (delete i[t], this.Nh--, this.ue = !1);
  284. }
  285. }, e.prototype.clear = function () {
  286. this.Yd() || (w ? this.Fd.clear() : (this.items = null, this.Nh = 0), A(this.Ug), this.ue = !0);
  287. }, e.prototype.Yd = function () {
  288. return 0 === this.count();
  289. }, e.prototype.count = function () {
  290. return w ? this.Fd.size : this.Nh;
  291. };
  292. var k = null, x = 0;
  293. e.prototype.My = function () {
  294. if (!this.ue) {
  295. if (w)
  296. A(this.Ug), k = this.Ug, x = 0, this.Fd.forEach(h), k = null, x = 0;
  297. else {
  298. var t = this.Ug;
  299. A(t);
  300. var i, s = 0, e = this.items;
  301. if (e)
  302. for (i in e)
  303. e.hasOwnProperty(i) && (t[s++] = e[i]);
  304. }
  305. this.ue = !0;
  306. }
  307. }, e.prototype.We = function () {
  308. return this.My(), this.Ug;
  309. }, new (ca = e)(), $a = function (t, i) {
  310. w ? cb(t, i.Fd) : db(t, i.We());
  311. }, cb = function (t, i) {
  312. var s, e, h, n;
  313. for (e = s = 0, h = t.length; s < h; ++s)
  314. n = t[s], i.has(n) || (t[e++] = n);
  315. Ba(t, e);
  316. }, db = function (t, i) {
  317. var s, e, h, n;
  318. for (e = s = 0, h = t.length; s < h; ++s)
  319. n = t[s], -1 === Ha(i, n) && (t[e++] = n);
  320. Ba(t, e);
  321. }, n.prototype.add = function (t) {
  322. this.y = t - this.Il, this.Vk = this.Z + this.y, this.Il = this.Vk - this.Z - this.y, this.Z = this.Vk;
  323. }, n.prototype.reset = function () {
  324. this.Z = this.Vk = this.y = this.Il = 0;
  325. }, eb = n, fb = function (t) {
  326. return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
  327. }, o.prototype.oi = function (t) {
  328. this.hr = t, this.kd = t.length / 2, this.lb.length = t.length, this.lj = this.mj = -1, this.Wo = 0;
  329. }, o.prototype.jg = function () {
  330. return !this.hr.length;
  331. }, o.prototype.Aa = function () {
  332. for (var t, i, s = this.lb, e = s[0], h = e, n = s[1], o = n, r = 1, a = this.kd; r < a; ++r)
  333. (t = s[i = 2 * r]) < e && (e = t), h < t && (h = t), (i = s[i + 1]) < n && (n = i), o < i && (o = i);
  334. this.hj = e, this.ij = h, this.jj = n, this.gj = o;
  335. }, o.prototype.ni = function (t, i, s) {
  336. this.lb.length = 8, this.kd = 4;
  337. var e = this.lb;
  338. e[0] = t.left - i, e[1] = t.top - s, e[2] = t.right - i, e[3] = t.top - s, e[4] = t.right - i, e[5] = t.bottom - s, e[6] = t.left - i, e[7] = t.bottom - s, this.mj = t.right - t.left, this.lj = t.bottom - t.top, this.Aa();
  339. }, o.prototype.Lg = function (t, i, s, e, h) {
  340. this.lb.length = 8, this.kd = 4;
  341. var n = this.lb;
  342. n[0] = t.Fa - i, n[1] = t.Ga - s, n[2] = t.nb - i, n[3] = t.ob - s, n[4] = t.bb - i, n[5] = t.cb - s, n[6] = t.$a - i, n[7] = t.ab - s, this.mj = e, this.lj = h, this.Aa();
  343. }, o.prototype.Ar = function (t) {
  344. this.kd = t.kd, Da(this.lb, t.lb), this.hj = t.hj, this.jj, t.jj, this.ij = t.ij, this.gj = t.gj;
  345. }, o.prototype.Sf = function (t, i, s) {
  346. if (this.mj !== t || this.lj !== i || this.Wo !== s) {
  347. this.mj = t, this.lj = i, this.Wo = s;
  348. var e, h, n, o, r, a = 0, c = 1, p = this.hr, u = this.lb;
  349. for (0 !== s && (a = Math.sin(s), c = Math.cos(s)), s = 0, n = this.kd; s < n; s++)
  350. h = 1 + (e = 2 * s), o = p[e] * t, r = p[h] * i, u[e] = o * c - r * a, u[h] = r * c + o * a;
  351. this.Aa();
  352. }
  353. }, o.prototype.Ib = function (t, i) {
  354. var s = this.lb;
  355. if (t === s[0] && i === s[1])
  356. return !0;
  357. var e, h, n, o, r, a = this.kd, c = this.hj - 110, p = this.jj - 101, u = this.ij + 131, f = this.gj + 120, l = 0, b = 0;
  358. for (e = 0; e < a; e++)
  359. n = (e + 1) % a * 2, o = s[h = 2 * e], h = s[h + 1], r = s[n], n = s[n + 1], va(c, p, t, i, o, h, r, n) && l++, va(u, f, t, i, o, h, r, n) && b++;
  360. return 1 == l % 2 || 1 == b % 2;
  361. }, o.prototype.Ch = function (t, i, s) {
  362. var e, h, n, o, r, a, c, p, u, f, l, b, d = t.lb, g = this.lb;
  363. if (this.Ib(d[0] + i, d[1] + s) || t.Ib(g[0] - i, g[1] - s))
  364. return !0;
  365. for (e = 0, o = this.kd; e < o; e++)
  366. for (n = (e + 1) % o * 2, p = g[h = 2 * e], h = g[h + 1], u = g[n], f = g[n + 1], n = 0, c = t.kd; n < c; n++)
  367. if (a = (n + 1) % c * 2, l = d[r = 2 * n] + i, r = d[r + 1] + s, b = d[a] + i, a = d[a + 1] + s, va(p, h, u, f, l, r, b, a))
  368. return !0;
  369. return !1;
  370. }, gb = o, r.prototype.Ge = function (t, i, s) {
  371. var e;
  372. return (e = this.cells[t]) ? (e = e[i]) ? e : s ? (e = c(this, t, i), this.cells[t][i] = e) : null : s ? (e = c(this, t, i), this.cells[t] = {}, this.cells[t][i] = e) : null;
  373. }, r.prototype.Ub = function (t) {
  374. return ta(t / this.Ml);
  375. }, r.prototype.Vb = function (t) {
  376. return ta(t / this.Ll);
  377. }, r.prototype.update = function (t, i, s) {
  378. var e, h, n, o, r;
  379. if (i)
  380. for (e = i.left, h = i.right; e <= h; ++e)
  381. for (n = i.top, o = i.bottom; n <= o; ++n)
  382. s && s.Ib(e, n) || (r = this.Ge(e, n, !1)) && (r.remove(t), r.Yd() && (r.sb.clear(), T.length < 1000 && T.push(r), this.cells[e][n] = null));
  383. if (s)
  384. for (e = s.left, h = s.right; e <= h; ++e)
  385. for (n = s.top, o = s.bottom; n <= o; ++n)
  386. i && i.Ib(e, n) || this.Ge(e, n, !0).zm(t);
  387. }, r.prototype.Fk = function (t, i) {
  388. var s, e, h, n, o, r;
  389. for (s = this.Ub(t.left), h = this.Vb(t.top), e = this.Ub(t.right), o = this.Vb(t.bottom); s <= e; ++s)
  390. for (n = h; n <= o; ++n)
  391. (r = this.Ge(s, n, !1)) && r.dump(i);
  392. }, hb = r, a.prototype.Ge = function (t, i, s) {
  393. var e;
  394. return (e = this.cells[t]) ? (e = e[i]) ? e : s ? (e = u(this, t, i), this.cells[t][i] = e) : null : s ? (e = u(this, t, i), this.cells[t] = {}, this.cells[t][i] = e) : null;
  395. }, a.prototype.Ub = function (t) {
  396. return ta(t / this.Ml);
  397. }, a.prototype.Vb = function (t) {
  398. return ta(t / this.Ll);
  399. }, a.prototype.update = function (t, i, s) {
  400. var e, h, n, o, r;
  401. if (i)
  402. for (e = i.left, h = i.right; e <= h; ++e)
  403. for (n = i.top, o = i.bottom; n <= o; ++n)
  404. s && s.Ib(e, n) || (r = this.Ge(e, n, !1)) && (r.remove(t), r.Yd() && (r.reset(), E.length < 1000 && E.push(r), this.cells[e][n] = null));
  405. if (s)
  406. for (e = s.left, h = s.right; e <= h; ++e)
  407. for (n = s.top, o = s.bottom; n <= o; ++n)
  408. i && i.Ib(e, n) || this.Ge(e, n, !0).zm(t);
  409. }, a.prototype.Fk = function (t, i, s, e, h) {
  410. var n, o;
  411. for (t = this.Ub(t), i = this.Vb(i), s = this.Ub(s), n = this.Vb(e); t <= s; ++t)
  412. for (e = i; e <= n; ++e)
  413. (o = this.Ge(t, e, !1)) && o.dump(h);
  414. }, a.prototype.vx = function (t) {
  415. var i, s, e, h, n;
  416. for (i = t.left, e = t.top, s = t.right, h = t.bottom; i <= s; ++i)
  417. for (t = e; t <= h; ++t)
  418. (n = this.Ge(i, t, !1)) && (n.mg = !1);
  419. }, ib = a;
  420. var T = [];
  421. p.prototype.Yd = function () {
  422. return this.sb.Yd();
  423. }, p.prototype.zm = function (t) {
  424. this.sb.add(t);
  425. }, p.prototype.remove = function (t) {
  426. this.sb.remove(t);
  427. }, p.prototype.dump = function (t) {
  428. Fa(t, this.sb.We());
  429. }, ba = p;
  430. var E = [];
  431. f.prototype.Yd = function () {
  432. return !this.sb.length || !(this.sb.length > this.Cd.count()) && (this.fm(), !0);
  433. }, f.prototype.zm = function (t) {
  434. this.Cd.contains(t) ? (this.Cd.remove(t), this.Cd.Yd() && (this.eh = !1)) : this.sb.length ? (this.sb[this.sb.length - 1].wd() > t.wd() && (this.mg = !1), this.sb.push(t)) : (this.sb.push(t), this.mg = !0);
  435. }, f.prototype.remove = function (t) {
  436. this.Cd.add(t), this.eh = !0, 30 <= this.Cd.count() && this.fm();
  437. }, f.prototype.fm = function () {
  438. this.eh && (this.Cd.count() === this.sb.length ? this.reset() : ($a(this.sb, this.Cd), this.Cd.clear(), this.eh = !1));
  439. }, f.prototype.Av = function () {
  440. this.mg || (this.sb.sort(l), this.mg = !0);
  441. }, f.prototype.reset = function () {
  442. A(this.sb), this.mg = !0, this.Cd.clear(), this.eh = !1;
  443. }, f.prototype.dump = function (t) {
  444. this.fm(), this.Av(), this.sb.length && t.push(this.sb);
  445. }, da = f;
  446. var j = 'lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop'.split(' ');
  447. jb = function (t) {
  448. return t <= 0 || 11 <= t ? 'source-over' : j[t - 1];
  449. }, kb = function (t, i, s) {
  450. if (s)
  451. switch (t.Pb = s.ONE, t.Jb = s.ONE_MINUS_SRC_ALPHA, i) {
  452. case 1:
  453. t.Pb = s.ONE, t.Jb = s.ONE;
  454. break;
  455. case 3:
  456. t.Pb = s.ONE, t.Jb = s.ZERO;
  457. break;
  458. case 4:
  459. t.Pb = s.ONE_MINUS_DST_ALPHA, t.Jb = s.ONE;
  460. break;
  461. case 5:
  462. t.Pb = s.DST_ALPHA, t.Jb = s.ZERO;
  463. break;
  464. case 6:
  465. t.Pb = s.ZERO, t.Jb = s.SRC_ALPHA;
  466. break;
  467. case 7:
  468. t.Pb = s.ONE_MINUS_DST_ALPHA, t.Jb = s.ZERO;
  469. break;
  470. case 8:
  471. t.Pb = s.ZERO, t.Jb = s.ONE_MINUS_SRC_ALPHA;
  472. break;
  473. case 9:
  474. t.Pb = s.DST_ALPHA, t.Jb = s.ONE_MINUS_SRC_ALPHA;
  475. break;
  476. case 10:
  477. t.Pb = s.ONE_MINUS_DST_ALPHA, t.Jb = s.SRC_ALPHA;
  478. }
  479. }, lb = function (t) {
  480. return Math.round(1000000 * t) / 1000000;
  481. }, mb = function (t, i) {
  482. return 'string' == typeof t && 'string' == typeof i && t.length === i.length && (t === i || t.toLowerCase() === i.toLowerCase());
  483. }, pb = function (t) {
  484. return !!(!(t = t.target) || t === document || t === window || document && document.body && t === document.body || mb(t.tagName, 'canvas'));
  485. };
  486. }();
  487. var kc = 'undefined' != typeof Float32Array ? Float32Array : Array;
  488. function lc(t) {
  489. var i = new kc(3);
  490. return t && (i[0] = t[0], i[1] = t[1], i[2] = t[2]), i;
  491. }
  492. function mc(t) {
  493. var i = new kc(16);
  494. return t && (i[0] = t[0], i[1] = t[1], i[2] = t[2], i[3] = t[3], i[4] = t[4], i[5] = t[5], i[6] = t[6], i[7] = t[7], i[8] = t[8], i[9] = t[9], i[10] = t[10], i[11] = t[11], i[12] = t[12], i[13] = t[13], i[14] = t[14], i[15] = t[15]), i;
  495. }
  496. function nc(t, i) {
  497. i[0] = t[0], i[1] = t[1], i[2] = t[2], i[3] = t[3], i[4] = t[4], i[5] = t[5], i[6] = t[6], i[7] = t[7], i[8] = t[8], i[9] = t[9], i[10] = t[10], i[11] = t[11], i[12] = t[12], i[13] = t[13], i[14] = t[14], i[15] = t[15];
  498. }
  499. function oc(t, i) {
  500. var s = i[0], e = i[1];
  501. i = i[2], t[0] *= s, t[1] *= s, t[2] *= s, t[3] *= s, t[4] *= e, t[5] *= e, t[6] *= e, t[7] *= e, t[8] *= i, t[9] *= i, t[10] *= i, t[11] *= i;
  502. }
  503. function pc(t, i, s, e) {
  504. e = e || mc();
  505. var h, n, o, r, a, c, p, u, f = t[0], l = t[1];
  506. t = t[2], n = s[0], o = s[1], h = s[2], s = i[1], c = i[2], f === i[0] && l === s && t === c ? ((t = e)[0] = 1, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = 0, t[5] = 1, t[6] = 0, t[7] = 0, t[8] = 0, t[9] = 0, t[10] = 1, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1) : (s = f - i[0], c = l - i[1], p = t - i[2], i = o * (p *= u = 1 / Math.sqrt(s * s + c * c + p * p)) - h * (c *= u), h = h * (s *= u) - n * p, n = n * c - o * s, (u = Math.sqrt(i * i + h * h + n * n)) ? (i *= u = 1 / u, h *= u, n *= u) : n = h = i = 0, o = c * n - p * h, r = p * i - s * n, a = s * h - c * i, (u = Math.sqrt(o * o + r * r + a * a)) ? (o *= u = 1 / u, r *= u, a *= u) : a = r = o = 0, e[0] = i, e[1] = o, e[2] = s, e[3] = 0, e[4] = h, e[5] = r, e[6] = c, e[7] = 0, e[8] = n, e[9] = a, e[10] = p, e[11] = 0, e[12] = -(i * f + h * l + n * t), e[13] = -(o * f + r * l + a * t), e[14] = -(s * f + c * l + p * t), e[15] = 1);
  507. }
  508. function T(t) {
  509. this.b = t, this.fc = [];
  510. }
  511. !function () {
  512. function t(t, i, s) {
  513. this.Je = /msie/i.test(navigator.userAgent) || /trident/i.test(navigator.userAgent), this.height = this.width = 0, this.ya = !!s, this.Yj = this.Eh = !1, this.Ul = 0, this.il = 1, this.Xn = 1000, this.Uy = (this.Xn - this.il) / 32768, this.Jl = lc([0,0,100]), this.kq = lc([0,0,0]), this.Vr = lc([0,1,0]), this.Li = lc([1,1,1]), this.fp = !0, this.ok = mc(), this.zc = mc(), this.Km = mc(), this.Tl = mc(), this.u = t, this.version = 0 === this.u.getParameter(this.u.VERSION).indexOf('WebGL 2') ? 2 : 1, this.Gp();
  514. }
  515. function o(t, i, s) {
  516. this.u = t, this.pi = i, this.name = s, this.Nc = t.getAttribLocation(i, 'aPos'), this.Oe = t.getAttribLocation(i, 'aTex'), this.iq = t.getUniformLocation(i, 'matP'), this.kk = t.getUniformLocation(i, 'matMV'), this.vg = t.getUniformLocation(i, 'opacity'), this.Qm = t.getUniformLocation(i, 'colorFill'), this.jq = t.getUniformLocation(i, 'samplerFront'), this.Th = t.getUniformLocation(i, 'samplerBack'), this.Bf = t.getUniformLocation(i, 'destStart'), this.Af = t.getUniformLocation(i, 'destEnd'), this.Vh = t.getUniformLocation(i, 'seconds'), this.Sm = t.getUniformLocation(i, 'pixelWidth'), this.Rm = t.getUniformLocation(i, 'pixelHeight'), this.Sh = t.getUniformLocation(i, 'layerScale'), this.Rh = t.getUniformLocation(i, 'layerAngle'), this.Wh = t.getUniformLocation(i, 'viewOrigin'), this.Uh = t.getUniformLocation(i, 'scrollPos'), this.Qw = !!(this.Sm || this.Rm || this.Vh || this.Th || this.Bf || this.Af || this.Sh || this.Rh || this.Wh || this.Uh), this.sq = this.tq = -999, this.nk = 1, this.oq = this.nq = 0, this.qq = this.mq = this.lq = 1, this.wq = this.vq = this.uq = this.yq = this.xq = this.pq = 0, this.Jm = [], this.rq = mc(), this.vg && t.uniform1f(this.vg, 1), this.Qm && t.uniform4f(this.Qm, 1, 1, 1, 1), this.jq && t.uniform1i(this.jq, 0), this.Th && t.uniform1i(this.Th, 1), this.Bf && t.uniform2f(this.Bf, 0, 0), this.Af && t.uniform2f(this.Af, 1, 1), this.Sh && t.uniform1f(this.Sh, 1), this.Rh && t.uniform1f(this.Rh, 0), this.Wh && t.uniform2f(this.Wh, 0, 0), this.Uh && t.uniform2f(this.Uh, 0, 0), this.Vh && t.uniform1f(this.Vh, 0), this.pf = !1;
  517. }
  518. function i(t, i) {
  519. return t[0] === i[0] && t[1] === i[1] && t[2] === i[2] && t[3] === i[3] && t[4] === i[4] && t[5] === i[5] && t[6] === i[6] && t[7] === i[7] && t[8] === i[8] && t[9] === i[9] && t[10] === i[10] && t[11] === i[11] && t[12] === i[12] && t[13] === i[13] && t[14] === i[14] && t[15] === i[15];
  520. }
  521. function s(t, i) {
  522. this.type = t, this.k = i, this.u = i.u, this.xd = this.Tb = this.Tq = 0, this.T = this.Vc = null, this.Cr = [];
  523. }
  524. var e = mc();
  525. t.prototype.Gp = function () {
  526. var t, i = this.u;
  527. for (this.Yp = 1, this.wf = this.vf = null, this.wj = 1, i.clearColor(0, 0, 0, 0), i.clear(i.COLOR_BUFFER_BIT), i.enable(i.BLEND), i.blendFunc(i.ONE, i.ONE_MINUS_SRC_ALPHA), i.disable(i.CULL_FACE), i.disable(i.STENCIL_TEST), i.disable(i.DITHER), this.ya ? (i.enable(i.DEPTH_TEST), i.depthFunc(i.LEQUAL)) : i.disable(i.DEPTH_TEST), this.$p = i.ONE, this.Wp = i.ONE_MINUS_SRC_ALPHA, this.fl = new Float32Array(8000 * (this.ya ? 3 : 2)), this.Xk = new Float32Array(16000), this.er = new Float32Array(32000), this.hn = i.createBuffer(), i.bindBuffer(i.ARRAY_BUFFER, this.hn), i.bufferData(i.ARRAY_BUFFER, this.er.byteLength, i.DYNAMIC_DRAW), this.Gi = Array(4), this.vi = Array(4), t = 0; t < 4; t++)
  528. this.Gi[t] = i.createBuffer(), i.bindBuffer(i.ARRAY_BUFFER, this.Gi[t]), i.bufferData(i.ARRAY_BUFFER, this.fl.byteLength, i.DYNAMIC_DRAW), this.vi[t] = i.createBuffer(), i.bindBuffer(i.ARRAY_BUFFER, this.vi[t]), i.bufferData(i.ARRAY_BUFFER, this.Xk.byteLength, i.DYNAMIC_DRAW);
  529. this.Pd = 0, this.Tw = i.createBuffer(), i.bindBuffer(i.ELEMENT_ARRAY_BUFFER, this.Tw);
  530. for (var s = new Uint16Array(12000), e = t = 0; t < 12000;)
  531. s[t++] = e, s[t++] = e + 1, s[t++] = e + 2, s[t++] = e, s[t++] = e + 2, s[t++] = e + 3, e += 4;
  532. for (var h in (i.bufferData(i.ELEMENT_ARRAY_BUFFER, s, i.STATIC_DRAW), this.jn = this.Pg = this.ne = 0, this.La = [], t = this.ya ? 'attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}' : 'attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}', s = this.kh({ src: 'varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}' }, t, '<default>'), this.La.push(s), s = this.kh({ src: 'uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}' }, 'attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}', '<point>'), this.La.push(s), s = this.kh({ src: 'varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}' }, t, '<earlyz>'), this.La.push(s), s = this.kh({ src: 'uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}' }, t, '<fill>'), this.La.push(s), qc))
  533. qc.hasOwnProperty(h) && this.La.push(this.kh(qc[h], t, h));
  534. i.activeTexture(i.TEXTURE0), i.bindTexture(i.TEXTURE_2D, null), this.te = [], this.Od = 0, this.Mb = !1, this.bp = this.Oh = -1, this.Xf = null, this.dm = i.createFramebuffer(), this.Aj = this.Gk = null, this.Qo = !1, this.ya && (this.Aj = i.createRenderbuffer()), this.Ve = lc([0,0,0]), this.zq = i.getParameter(i.ALIASED_POINT_SIZE_RANGE)[1], 2048 < this.zq && (this.zq = 2048), this.ec(0);
  535. }, o.prototype.Sn = function (t) {
  536. i(this.rq, t) || (nc(t, this.rq), this.u.uniformMatrix4fv(this.kk, !1, t));
  537. }, t.prototype.kh = function (t, i, s) {
  538. var e = this.u, h = e.createShader(e.FRAGMENT_SHADER);
  539. if (e.shaderSource(h, t.src), e.compileShader(h), !e.getShaderParameter(h, e.COMPILE_STATUS))
  540. throw t = e.getShaderInfoLog(h), e.deleteShader(h), Error('error compiling fragment shader: ' + t);
  541. var n = e.createShader(e.VERTEX_SHADER);
  542. if (e.shaderSource(n, i), e.compileShader(n), !e.getShaderParameter(n, e.COMPILE_STATUS))
  543. throw t = e.getShaderInfoLog(n), e.deleteShader(h), e.deleteShader(n), Error('error compiling vertex shader: ' + t);
  544. if (i = e.createProgram(), e.attachShader(i, h), e.attachShader(i, n), e.linkProgram(i), !e.getProgramParameter(i, e.LINK_STATUS))
  545. throw t = e.getProgramInfoLog(i), e.deleteShader(h), e.deleteShader(n), e.deleteProgram(i), Error('error linking shader program: ' + t);
  546. for (e.useProgram(i), e.deleteShader(h), e.deleteShader(n), (h = new o(e, i, s)).Ej = t.Ej || 0, h.Fj = t.Fj || 0, h.Sl = !!t.Sl, h.Rc = !!t.Rc, h.Cl = !!t.Cl, h.O = t.O || [], t = 0, n = h.O.length; t < n; t++)
  547. h.O[t][1] = e.getUniformLocation(i, h.O[t][0]), h.Jm.push(0), e.uniform1f(h.O[t][1], 0);
  548. return h;
  549. }, t.prototype.pm = function (t) {
  550. var i, s;
  551. for (i = 0, s = this.La.length; i < s; i++)
  552. if (this.La[i].name === t)
  553. return i;
  554. return -1;
  555. }, t.prototype.gr = function (t, i, s) {
  556. var e = this.zc, h = this.ok, n = [0,0,0,0,0,0,0,0];
  557. n[0] = e[0] * t + e[4] * i + e[12], n[1] = e[1] * t + e[5] * i + e[13], n[2] = e[2] * t + e[6] * i + e[14], n[3] = e[3] * t + e[7] * i + e[15], n[4] = h[0] * n[0] + h[4] * n[1] + h[8] * n[2] + h[12] * n[3], n[5] = h[1] * n[0] + h[5] * n[1] + h[9] * n[2] + h[13] * n[3], n[6] = h[2] * n[0] + h[6] * n[1] + h[10] * n[2] + h[14] * n[3], n[7] = -n[2], 0 !== n[7] && (n[7] = 1 / n[7], n[4] *= n[7], n[5] *= n[7], n[6] *= n[7], s[0] = (0.5 * n[4] + 0.5) * this.width, s[1] = (0.5 * n[5] + 0.5) * this.height);
  558. }, t.prototype.ge = function (t, i, s) {
  559. if (this.width !== t || this.height !== i || s) {
  560. if (this.gf(), s = this.u, this.width = t, this.height = i, s.viewport(0, 0, t, i), pc(this.Jl, this.kq, this.Vr, this.zc), this.ya) {
  561. var e = -t / 2;
  562. t /= 2;
  563. var h = i / 2;
  564. i = -i / 2;
  565. var n = this.il, o = this.Xn, r = this.ok, a = t - e, c = i - h, p = o - n;
  566. (r = r || mc())[0] = 2 / a, r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[5] = 2 / c, r[6] = 0, r[7] = 0, r[8] = 0, r[9] = 0, r[10] = -2 / p, r[11] = 0, r[12] = -(e + t) / a, r[13] = -(i + h) / c, r[14] = -(o + n) / p, r[15] = 1, this.Li[0] = 1, this.Li[1] = 1;
  567. } else
  568. i = t / i, e = this.il, t = this.Xn, r = this.ok, a = (i *= o = e * Math.tan(45 * Math.PI / 360)) - (h = -i), c = o - (n = -o), p = t - e, (r = r || mc())[0] = 2 * e / a, r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[5] = 2 * e / c, r[6] = 0, r[7] = 0, r[8] = (i + h) / a, r[9] = (o + n) / c, r[10] = -(t + e) / p, r[11] = -1, r[12] = 0, r[13] = 0, r[14] = -t * e * 2 / p, e = [r[15]=0,0], t = [0,0], this.gr(0, 0, e), this.gr(1, 1, t), this.Li[0] = 1 / (t[0] - e[0]), this.Li[1] = -1 / (t[1] - e[1]);
  569. for (e = 0, t = this.La.length; e < t; e++)
  570. (h = this.La[e]).pf = !1, h.iq && (s.useProgram(h.pi), s.uniformMatrix4fv(h.iq, !1, this.ok));
  571. s.useProgram(this.La[this.Oh].pi), s.bindTexture(s.TEXTURE_2D, null), s.activeTexture(s.TEXTURE1), s.bindTexture(s.TEXTURE_2D, null), s.activeTexture(s.TEXTURE0), this.wf = this.vf = null, this.Aj && (s.bindFramebuffer(s.FRAMEBUFFER, this.dm), s.bindRenderbuffer(s.RENDERBUFFER, this.Aj), s.renderbufferStorage(s.RENDERBUFFER, s.DEPTH_COMPONENT16, this.width, this.height), this.Qo || (s.framebufferRenderbuffer(s.FRAMEBUFFER, s.DEPTH_ATTACHMENT, s.RENDERBUFFER, this.Aj), this.Qo = !0), s.bindRenderbuffer(s.RENDERBUFFER, null), s.bindFramebuffer(s.FRAMEBUFFER, null), this.Gk = null);
  572. }
  573. }, t.prototype.Ed = function () {
  574. pc(this.Jl, this.kq, this.Vr, this.zc), oc(this.zc, this.Li);
  575. }, t.prototype.translate = function (t, i) {
  576. if (0 !== t || 0 !== i) {
  577. this.Ve[0] = t, this.Ve[1] = i, this.Ve[2] = 0;
  578. var s = this.zc, e = (n = this.Ve)[0], h = n[1], n = n[2];
  579. s[12] = s[0] * e + s[4] * h + s[8] * n + s[12], s[13] = s[1] * e + s[5] * h + s[9] * n + s[13], s[14] = s[2] * e + s[6] * h + s[10] * n + s[14], s[15] = s[3] * e + s[7] * h + s[11] * n + s[15];
  580. }
  581. }, t.prototype.scale = function (t, i) {
  582. 1 === t && 1 === i || (this.Ve[0] = t, this.Ve[1] = i, this.Ve[2] = 1, oc(this.zc, this.Ve));
  583. }, t.prototype.xn = function (t) {
  584. if (0 !== t) {
  585. var i, s = this.zc, e = Math.sin(t);
  586. t = Math.cos(t);
  587. var h = s[0], n = s[1], o = s[2], r = s[3], a = s[4], c = s[5], p = s[6], u = s[7];
  588. i ? s !== i && (i[8] = s[8], i[9] = s[9], i[10] = s[10], i[11] = s[11], i[12] = s[12], i[13] = s[13], i[14] = s[14], i[15] = s[15]) : i = s, i[0] = h * t + a * e, i[1] = n * t + c * e, i[2] = o * t + p * e, i[3] = r * t + u * e, i[4] = h * -e + a * t, i[5] = n * -e + c * t, i[6] = o * -e + p * t, i[7] = r * -e + u * t;
  589. }
  590. }, t.prototype.od = function () {
  591. if (!i(this.Km, this.zc)) {
  592. var t = this.mc();
  593. t.type = 5, t.T ? nc(this.zc, t.T) : t.T = mc(this.zc), nc(this.zc, this.Km), this.Mb = !1;
  594. }
  595. }, t.prototype.Ok = function (t) {
  596. this.ya && (32760 < t && (t = 32760), this.Ul = this.Jl[2] - this.il - t * this.Uy);
  597. }, s.prototype.jv = function () {
  598. var t = this.u, i = this.k;
  599. 0 !== this.Tb ? (t.depthMask(!0), t.colorMask(!1, !1, !1, !1), t.disable(t.BLEND), t.bindFramebuffer(t.FRAMEBUFFER, i.dm), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, null, 0), t.clear(t.DEPTH_BUFFER_BIT), t.bindFramebuffer(t.FRAMEBUFFER, null), i.Yj = !0) : (t.depthMask(!1), t.colorMask(!0, !0, !0, !0), t.enable(t.BLEND), i.Yj = !1);
  600. }, s.prototype.nv = function () {
  601. this.u.bindTexture(this.u.TEXTURE_2D, this.Vc);
  602. }, s.prototype.ov = function () {
  603. var t = this.u;
  604. t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, this.Vc), t.activeTexture(t.TEXTURE0);
  605. }, s.prototype.kv = function () {
  606. var t = this.Tq, i = this.k;
  607. i.wj = t, (i = i.Xf).vg && i.nk !== t && (i.nk = t, this.u.uniform1f(i.vg, t));
  608. }, s.prototype.bv = function () {
  609. this.u.drawElements(this.u.TRIANGLES, this.xd, this.u.UNSIGNED_SHORT, this.Tb);
  610. }, s.prototype.gv = function () {
  611. this.u.blendFunc(this.Tb, this.xd);
  612. }, s.prototype.pv = function () {
  613. var t, i, s, e = this.k.La, h = this.k.bp;
  614. for (t = 0, i = e.length; t < i; t++)
  615. s = e[t], t === h && s.kk ? (s.Sn(this.T), s.pf = !0) : s.pf = !1;
  616. nc(this.T, this.k.Tl);
  617. }, s.prototype.cv = function () {
  618. var t = this.u, i = this.k;
  619. this.Vc ? (i.wf === this.Vc && (t.activeTexture(t.TEXTURE1), t.bindTexture(t.TEXTURE_2D, null), i.wf = null, t.activeTexture(t.TEXTURE0)), t.bindFramebuffer(t.FRAMEBUFFER, i.dm), i.Yj || t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, this.Vc, 0)) : (i.ya || t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, null, 0), t.bindFramebuffer(t.FRAMEBUFFER, null));
  620. }, s.prototype.Zu = function () {
  621. var t = this.u, i = this.Tb;
  622. 0 === i ? (t.clearColor(this.T[0], this.T[1], this.T[2], this.T[3]), t.clear(t.COLOR_BUFFER_BIT)) : 1 === i ? (t.enable(t.SCISSOR_TEST), t.scissor(this.T[0], this.T[1], this.T[2], this.T[3]), t.clearColor(0, 0, 0, 0), t.clear(t.COLOR_BUFFER_BIT), t.disable(t.SCISSOR_TEST)) : t.clear(t.DEPTH_BUFFER_BIT);
  623. }, s.prototype.iv = function () {
  624. var t = this.u;
  625. 0 !== this.Tb ? t.enable(t.DEPTH_TEST) : t.disable(t.DEPTH_TEST);
  626. }, s.prototype.av = function () {
  627. var t = this.u, i = this.k;
  628. i.ya && t.disable(t.DEPTH_TEST);
  629. var s = i.La[1];
  630. t.useProgram(s.pi), !s.pf && s.kk && (s.Sn(i.Tl), s.pf = !0), t.enableVertexAttribArray(s.Nc), t.bindBuffer(t.ARRAY_BUFFER, i.hn), t.vertexAttribPointer(s.Nc, 4, t.FLOAT, !1, 0, 0), t.drawArrays(t.POINTS, this.Tb / 4, this.xd), s = i.Xf, t.useProgram(s.pi), 0 <= s.Nc && (t.enableVertexAttribArray(s.Nc), t.bindBuffer(t.ARRAY_BUFFER, i.Gi[i.Pd]), t.vertexAttribPointer(s.Nc, i.ya ? 3 : 2, t.FLOAT, !1, 0, 0)), 0 <= s.Oe && (t.enableVertexAttribArray(s.Oe), t.bindBuffer(t.ARRAY_BUFFER, i.vi[i.Pd]), t.vertexAttribPointer(s.Oe, 2, t.FLOAT, !1, 0, 0)), i.ya && t.enable(t.DEPTH_TEST);
  631. }, s.prototype.lv = function () {
  632. var t = this.u, i = this.k, s = i.La[this.Tb];
  633. i.bp = this.Tb, i.Xf = s, t.useProgram(s.pi), !s.pf && s.kk && (s.Sn(i.Tl), s.pf = !0), s.vg && s.nk !== i.wj && (s.nk = i.wj, t.uniform1f(s.vg, i.wj)), 0 <= s.Nc && (t.enableVertexAttribArray(s.Nc), t.bindBuffer(t.ARRAY_BUFFER, i.Gi[i.Pd]), t.vertexAttribPointer(s.Nc, i.ya ? 3 : 2, t.FLOAT, !1, 0, 0)), 0 <= s.Oe && (t.enableVertexAttribArray(s.Oe), t.bindBuffer(t.ARRAY_BUFFER, i.vi[i.Pd]), t.vertexAttribPointer(s.Oe, 2, t.FLOAT, !1, 0, 0));
  634. }, s.prototype.hv = function () {
  635. var t = this.T;
  636. this.u.uniform4f(this.k.Xf.Qm, t[0], t[1], t[2], t[3]);
  637. }, s.prototype.mv = function () {
  638. var t, i, s = this.k.Xf, e = this.u;
  639. t = this.T, s.Th && this.k.wf !== this.Vc && (e.activeTexture(e.TEXTURE1), e.bindTexture(e.TEXTURE_2D, this.Vc), this.k.wf = this.Vc, e.activeTexture(e.TEXTURE0));
  640. var h = t[0];
  641. if (s.Sm && h !== s.tq && (s.tq = h, e.uniform1f(s.Sm, h)), h = t[1], s.Rm && h !== s.sq && (s.sq = h, e.uniform1f(s.Rm, h)), h = t[2], i = t[3], !s.Bf || h === s.nq && i === s.oq || (s.nq = h, s.oq = i, e.uniform2f(s.Bf, h, i)), h = t[4], i = t[5], !s.Af || h === s.lq && i === s.mq || (s.lq = h, s.mq = i, e.uniform2f(s.Af, h, i)), h = t[6], s.Sh && h !== s.qq && (s.qq = h, e.uniform1f(s.Sh, h)), h = t[7], s.Rh && h !== s.pq && (s.pq = h, e.uniform1f(s.Rh, h)), h = t[8], i = t[9], !s.Wh || h === s.xq && i === s.yq || (s.xq = h, s.yq = i, e.uniform2f(s.Wh, h, i)), h = t[10], i = t[11], !s.Uh || h === s.uq && i === s.vq || (s.uq = h, s.vq = i, e.uniform2f(s.Uh, h, i)), h = t[12], s.Vh && h !== s.wq && (s.wq = h, e.uniform1f(s.Vh, h)), s.O.length)
  642. for (t = 0, i = s.O.length; t < i; t++)
  643. (h = this.Cr[t]) !== s.Jm[t] && (s.Jm[t] = h, e.uniform1f(s.O[t][1], h));
  644. }, t.prototype.mc = function () {
  645. return this.Od === this.te.length && this.te.push(new s(0, this)), this.te[this.Od++];
  646. }, t.prototype.gf = function () {
  647. if (0 !== this.Od && !this.u.isContextLost()) {
  648. var t, i = this.u;
  649. if (0 < this.jn && (i.bindBuffer(i.ARRAY_BUFFER, this.hn), i.bufferSubData(i.ARRAY_BUFFER, 0, this.er.subarray(0, this.jn)), s && 0 <= s.Nc && '<point>' === s.name && i.vertexAttribPointer(s.Nc, 4, i.FLOAT, !1, 0, 0)), 0 < this.ne) {
  650. var s = this.Xf;
  651. i.bindBuffer(i.ARRAY_BUFFER, this.Gi[this.Pd]), i.bufferSubData(i.ARRAY_BUFFER, 0, this.fl.subarray(0, this.ne)), s && 0 <= s.Nc && '<point>' !== s.name && i.vertexAttribPointer(s.Nc, this.ya ? 3 : 2, i.FLOAT, !1, 0, 0), i.bindBuffer(i.ARRAY_BUFFER, this.vi[this.Pd]), i.bufferSubData(i.ARRAY_BUFFER, 0, this.Xk.subarray(0, this.Pg)), s && 0 <= s.Oe && '<point>' !== s.name && i.vertexAttribPointer(s.Oe, 2, i.FLOAT, !1, 0, 0);
  652. }
  653. for (i = 0, s = this.Od; i < s; i++)
  654. switch ((t = this.te[i]).type) {
  655. case 1:
  656. t.bv();
  657. break;
  658. case 2:
  659. t.nv();
  660. break;
  661. case 3:
  662. t.kv();
  663. break;
  664. case 4:
  665. t.gv();
  666. break;
  667. case 5:
  668. t.pv();
  669. break;
  670. case 6:
  671. t.cv();
  672. break;
  673. case 7:
  674. t.Zu();
  675. break;
  676. case 8:
  677. t.av();
  678. break;
  679. case 9:
  680. t.lv();
  681. break;
  682. case 10:
  683. t.mv();
  684. break;
  685. case 11:
  686. t.ov();
  687. break;
  688. case 12:
  689. t.hv();
  690. break;
  691. case 13:
  692. t.iv();
  693. break;
  694. case 14:
  695. t.jv();
  696. }
  697. this.jn = this.Pg = this.ne = this.Od = 0, this.Yj = this.Mb = !1, this.Pd++, 4 <= this.Pd && (this.Pd = 0);
  698. }
  699. }, t.prototype.Se = function (t) {
  700. if (t !== this.Yp && !this.Eh) {
  701. var i = this.mc();
  702. i.type = 3, this.Yp = i.Tq = t, this.Mb = !1;
  703. }
  704. }, t.prototype.Rb = function (t) {
  705. if (t !== this.vf) {
  706. var i = this.mc();
  707. i.type = 2, this.vf = i.Vc = t, this.Mb = !1;
  708. }
  709. }, t.prototype.Re = function (t, i) {
  710. if ((t !== this.$p || i !== this.Wp) && !this.Eh) {
  711. var s = this.mc();
  712. s.type = 4, s.Tb = t, s.xd = i, this.$p = t, this.Wp = i, this.Mb = !1;
  713. }
  714. }, t.prototype.rr = function () {
  715. this.Re(this.u.ONE, this.u.ONE_MINUS_SRC_ALPHA);
  716. }, t.prototype.ji = function (t, i, s, e, h, n, o, r) {
  717. 15992 <= this.ne && this.gf();
  718. var a = this.ne, c = this.Pg, p = this.fl, u = this.Xk, f = this.Ul;
  719. if (this.Mb)
  720. this.te[this.Od - 1].xd += 6;
  721. else {
  722. var l = this.mc();
  723. l.type = 1, l.Tb = this.ya ? a : a / 2 * 3, l.xd = 6, this.Mb = !0;
  724. }
  725. this.ya ? (p[a++] = t, p[a++] = i, p[a++] = f, p[a++] = s, p[a++] = e, p[a++] = f, p[a++] = h, p[a++] = n, p[a++] = f, p[a++] = o, p[a++] = r, p[a++] = f) : (p[a++] = t, p[a++] = i, p[a++] = s, p[a++] = e, p[a++] = h, p[a++] = n, p[a++] = o, p[a++] = r), u[c++] = 0, u[c++] = 0, u[c++] = 1, u[c++] = 0, u[c++] = 1, u[c++] = 1, u[c++] = 0, u[c++] = 1, this.ne = a, this.Pg = c;
  726. }, t.prototype.Sc = function (t, i, s, e, h, n, o, r, a) {
  727. 15992 <= this.ne && this.gf();
  728. var c = this.ne, p = this.Pg, u = this.fl, f = this.Xk, l = this.Ul;
  729. this.Mb ? this.te[this.Od - 1].xd += 6 : ((b = this.mc()).type = 1, b.Tb = this.ya ? c : c / 2 * 3, b.xd = 6, this.Mb = !0);
  730. var b = a.left, d = a.top, g = a.right;
  731. a = a.bottom, this.ya ? (u[c++] = t, u[c++] = i, u[c++] = l, u[c++] = s, u[c++] = e, u[c++] = l, u[c++] = h, u[c++] = n, u[c++] = l, u[c++] = o, u[c++] = r, u[c++] = l) : (u[c++] = t, u[c++] = i, u[c++] = s, u[c++] = e, u[c++] = h, u[c++] = n, u[c++] = o, u[c++] = r), f[p++] = b, f[p++] = d, f[p++] = g, f[p++] = d, f[p++] = g, f[p++] = a, f[p++] = b, f[p++] = a, this.ne = c, this.Pg = p;
  732. }, t.prototype.ec = function (t) {
  733. if (this.Oh !== t) {
  734. if (!this.La[t]) {
  735. if (0 === this.Oh)
  736. return;
  737. t = 0;
  738. }
  739. var i = this.mc();
  740. i.type = 9, this.Oh = i.Tb = t, this.Mb = !1;
  741. }
  742. }, t.prototype.hi = function (t) {
  743. return !(!(t = this.La[t]).Bf && !t.Af);
  744. }, t.prototype.nn = function (t) {
  745. return !!((t = this.La[t]).Bf || t.Af || t.Sl);
  746. }, t.prototype.mn = function (t) {
  747. return this.La[t].Rc;
  748. }, t.prototype.$x = function (t) {
  749. return 0 !== (t = this.La[t]).Ej || 0 !== t.Fj;
  750. }, t.prototype.yw = function (t) {
  751. return this.La[t].Ej;
  752. }, t.prototype.zw = function (t) {
  753. return this.La[t].Fj;
  754. }, t.prototype.Aw = function (t, i) {
  755. return this.La[t].O[i][2];
  756. }, t.prototype.Dk = function (t) {
  757. return this.La[t].Cl;
  758. }, t.prototype.Jg = function (t, i, s, e, h, n, o, r, a, c, p, u, f, l, b) {
  759. var d, g, y = this.La[this.Oh];
  760. if (y.Qw || b.length) {
  761. if ((d = this.mc()).type = 10, d.T ? nc(this.zc, d.T) : d.T = mc(), (g = d.T)[0] = i, g[1] = s, g[2] = e, g[3] = h, g[4] = n, g[5] = o, g[6] = r, g[7] = a, g[8] = c, g[9] = p, g[10] = u, g[11] = f, g[12] = l, y.Th ? d.Vc = t : d.Vc = null, b.length)
  762. for ((s = d.Cr).length = b.length, t = 0, i = b.length; t < i; t++)
  763. s[t] = b[t];
  764. this.Mb = !1;
  765. }
  766. }, t.prototype.clear = function (t, i, s, e) {
  767. var h = this.mc();
  768. h.type = 7, h.Tb = 0, h.T || (h.T = mc()), h.T[0] = t, h.T[1] = i, h.T[2] = s, h.T[3] = e, this.Mb = !1;
  769. }, t.prototype.clearRect = function (t, i, s, e) {
  770. if (!(s < 0 || e < 0)) {
  771. var h = this.mc();
  772. h.type = 7, h.Tb = 1, h.T || (h.T = mc()), h.T[0] = t, h.T[1] = i, h.T[2] = s, h.T[3] = e, this.Mb = !1;
  773. }
  774. }, t.prototype.ur = function (t) {
  775. if (this.ya && (t = !!t, this.Eh !== t)) {
  776. var i = this.mc();
  777. i.type = 14, i.Tb = t ? 1 : 0, this.Mb = !1, this.Eh = t, this.Gk = null, this.Eh ? this.ec(2) : this.ec(0);
  778. }
  779. }, t.prototype.tr = function (t) {
  780. if (this.ya) {
  781. var i = this.mc();
  782. i.type = 13, i.Tb = t ? 1 : 0, this.Mb = !1;
  783. }
  784. }, t.prototype.rp = function () {
  785. nc(this.Km, e), this.Ed(), this.od();
  786. var t = this.width / 2, i = this.height / 2;
  787. this.ji(-t, i, t, i, t, -i, -t, -i), nc(e, this.zc), this.od();
  788. }, t.prototype.sr = function (t, i, s) {
  789. this.ec(3);
  790. var e = this.mc();
  791. e.type = 12, e.T || (e.T = mc()), e.T[0] = t, e.T[1] = i, e.T[2] = s, e.T[3] = 1, this.Mb = !1;
  792. }, t.prototype.yy = function () {
  793. this.ec(0);
  794. }, t.prototype.hy = function () {
  795. this.ec(2);
  796. }, t.prototype.Zx = function () {
  797. this.gf(), this.u.flush();
  798. };
  799. var l = [], b = {};
  800. t.prototype.Pu = function () {
  801. A(l), b = {};
  802. }, t.prototype.yc = function (t, i, s, e, h) {
  803. i = !!i, s = !!s;
  804. var n = t.src + ',' + i + ',' + s + (i ? ',' + h : ''), o = null;
  805. if (void 0 !== t.src && b.hasOwnProperty(n))
  806. return (o = b[n]).kj++, o;
  807. this.gf();
  808. var r = this.u, a = la(t.width) && la(t.height);
  809. o = r.createTexture(), r.bindTexture(r.TEXTURE_2D, o), r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0);
  810. var c = r.RGBA, p = r.RGBA, u = r.UNSIGNED_BYTE;
  811. if (e && !this.Je)
  812. switch (e) {
  813. case 1:
  814. p = c = r.RGB;
  815. break;
  816. case 2:
  817. u = r.UNSIGNED_SHORT_4_4_4_4;
  818. break;
  819. case 3:
  820. u = r.UNSIGNED_SHORT_5_5_5_1;
  821. break;
  822. case 4:
  823. p = c = r.RGB, u = r.UNSIGNED_SHORT_5_6_5;
  824. }
  825. if (1 === this.version && !a && i) {
  826. (e = document.createElement('canvas')).width = ma(t.width), e.height = ma(t.height);
  827. var f = e.getContext('2d');
  828. void 0 !== f.imageSmoothingEnabled ? f.imageSmoothingEnabled = s : (f.webkitImageSmoothingEnabled = s, f.mozImageSmoothingEnabled = s, f.msImageSmoothingEnabled = s), f.drawImage(t, 0, 0, t.width, t.height, 0, 0, e.width, e.height), r.texImage2D(r.TEXTURE_2D, 0, c, p, u, e);
  829. } else
  830. r.texImage2D(r.TEXTURE_2D, 0, c, p, u, t);
  831. return i ? 'repeat-x' === h ? (r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_S, r.REPEAT), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_T, r.CLAMP_TO_EDGE)) : ('repeat-y' === h ? r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_S, r.CLAMP_TO_EDGE) : r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_S, r.REPEAT), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_T, r.REPEAT)) : (r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_S, r.CLAMP_TO_EDGE), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_T, r.CLAMP_TO_EDGE)), s ? (r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MAG_FILTER, r.LINEAR), (a || 2 <= this.version) && this.fp ? (r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MIN_FILTER, r.LINEAR_MIPMAP_LINEAR), r.generateMipmap(r.TEXTURE_2D)) : r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MIN_FILTER, r.LINEAR)) : (r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MAG_FILTER, r.NEAREST), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MIN_FILTER, r.NEAREST)), r.bindTexture(r.TEXTURE_2D, null), this.vf = null, o.bd = t.width, o.ad = t.height, o.kj = 1, o.Vo = n, l.push(o), b[n] = o;
  832. }, t.prototype.Ic = function (t, i, s) {
  833. var e;
  834. this.gf();
  835. var h = this.u;
  836. this.Je && (e = !1);
  837. var n = h.createTexture();
  838. return h.bindTexture(h.TEXTURE_2D, n), h.texImage2D(h.TEXTURE_2D, 0, h.RGBA, t, i, 0, h.RGBA, e ? h.UNSIGNED_SHORT_4_4_4_4 : h.UNSIGNED_BYTE, null), h.texParameteri(h.TEXTURE_2D, h.TEXTURE_WRAP_S, h.CLAMP_TO_EDGE), h.texParameteri(h.TEXTURE_2D, h.TEXTURE_WRAP_T, h.CLAMP_TO_EDGE), h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MAG_FILTER, s ? h.LINEAR : h.NEAREST), h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MIN_FILTER, s ? h.LINEAR : h.NEAREST), h.bindTexture(h.TEXTURE_2D, null), this.vf = null, n.bd = t, n.ad = i, l.push(n), n;
  839. }, t.prototype.deleteTexture = function (t) {
  840. t && (void 0 !== t.kj && 1 < t.kj ? t.kj-- : (this.gf(), t === this.vf && (this.u.bindTexture(this.u.TEXTURE_2D, null), this.vf = null), t === this.wf && (this.u.activeTexture(this.u.TEXTURE1), this.u.bindTexture(this.u.TEXTURE_2D, null), this.u.activeTexture(this.u.TEXTURE0), this.wf = null), Ia(l, t), void 0 !== t.Vo && delete b[t.Vo], this.u.deleteTexture(t)));
  841. }, t.prototype.Tc = function (t) {
  842. if (t !== this.Gk) {
  843. var i = this.mc();
  844. i.type = 6, this.Gk = i.Vc = t, this.Mb = !1;
  845. }
  846. }, qb = t;
  847. }(), function () {
  848. function s(t) {
  849. if (t && (t.getContext || t.dc) && !t.c2runtime) {
  850. var i = t.c2runtime = this;
  851. this.vc = (this.Zj = /crosswalk/i.test(navigator.userAgent) || /xwalk/i.test(navigator.userAgent) || !(void 0 === window.c2isCrosswalk || !window.c2isCrosswalk)) || void 0 !== window.device && (void 0 !== window.device.cordova || void 0 !== window.device.phonegap) || void 0 !== window.c2iscordova && window.c2iscordova, this.pb = !!t.dc, this.Np = void 0 !== window.AppMobi || this.pb, this.Mc = !!window.c2cocoonjs, this.gd = !!window.c2ejecta, this.Mc && (CocoonJS.App.onSuspended.addEventListener(function () {
  852. i.setSuspended(!0);
  853. }), CocoonJS.App.onActivated.addEventListener(function () {
  854. i.setSuspended(!1);
  855. })), this.gd && (document.addEventListener('pagehide', function () {
  856. i.setSuspended(!0);
  857. }), document.addEventListener('pageshow', function () {
  858. i.setSuspended(!1);
  859. }), document.addEventListener('resize', function () {
  860. i.setSize(window.innerWidth, window.innerHeight);
  861. })), this.pa = this.pb || this.Mc || this.gd, this.Gh = /edge\//i.test(navigator.userAgent), this.Je = (/msie/i.test(navigator.userAgent) || /trident/i.test(navigator.userAgent) || /iemobile/i.test(navigator.userAgent)) && !this.Gh, this.Pp = /tizen/i.test(navigator.userAgent), this.Dh = /android/i.test(navigator.userAgent) && !this.Pp && !this.Je && !this.Gh, this.Up = (/iphone/i.test(navigator.userAgent) || /ipod/i.test(navigator.userAgent)) && !this.Je && !this.Gh, this.kx = /ipad/i.test(navigator.userAgent), this.pg = this.Up || this.kx || this.gd, this.Bm = (/chrome/i.test(navigator.userAgent) || /chromium/i.test(navigator.userAgent)) && !this.Je && !this.Gh, this.Mp = /amazonwebappplatform/i.test(navigator.userAgent), this.ax = /firefox/i.test(navigator.userAgent), this.hx = /safari/i.test(navigator.userAgent) && !this.Bm && !this.Je && !this.Gh, this.ix = /windows/i.test(navigator.userAgent), this.gx = this.Hh = void 0 !== window.c2nodewebkit || void 0 !== window.c2nwjs || /nodewebkit/i.test(navigator.userAgent) || /nwjs/i.test(navigator.userAgent), this.Rp = !(void 0 === window.c2isWindows8 || !window.c2isWindows8), this.Sp = !(void 0 === window.c2isWindows8Capable || !window.c2isWindows8Capable), this.Ke = !(void 0 === window.c2isWindowsPhone8 || !window.c2isWindowsPhone8), this.Hm = !(void 0 === window.c2isWindowsPhone81 || !window.c2isWindowsPhone81), this.$j = !!window.cr_windows10, this.Qp = this.Rp || this.Sp || this.Hm || this.$j, this.Yw = !(void 0 === window.c2isBlackberry10 || !window.c2isBlackberry10), this.Xj = this.Dh && !this.Bm && !this.Zj && !this.ax && !this.Mp && !this.pa, this.devicePixelRatio = 1, this.sf = this.vc || this.Zj || this.Np || this.Mc || this.Dh || this.pg || this.Ke || this.Hm || this.Yw || this.Pp || this.gd, this.sf || (this.sf = /(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent)), this.Jh = !!(this.pg && this.vc && window.webkit), 'undefined' == typeof cr_is_preview || this.Hh || '?nw' !== window.location.search && !/nodewebkit/i.test(navigator.userAgent) && !/nwjs/i.test(navigator.userAgent) || (this.Hh = !0), this.$w = 'undefined' != typeof cr_is_preview && -1 < window.location.search.indexOf('debug'), this.canvas = t, this.nj = document.getElementById('c2canvasdiv'), this.k = this.u = null, this.qm = '(unavailable)', this.ya = !1, this.ef = 0, this.Ba = null, this.Kj = !1, this.Mq = this.Nq = 0, this.canvas.oncontextmenu = function (t) {
  862. return t.preventDefault && t.preventDefault(), !1;
  863. }, this.canvas.onselectstart = function (t) {
  864. return t.preventDefault && t.preventDefault(), !1;
  865. }, this.canvas.ontouchstart = function (t) {
  866. return t.preventDefault && t.preventDefault(), !1;
  867. }, this.pb && (window.c2runtime = this), this.Hh && (window.ondragover = function (t) {
  868. return t.preventDefault(), !1;
  869. }, window.ondrop = function (t) {
  870. return t.preventDefault(), !1;
  871. }, window.nwgui && window.nwgui.App.clearCache && window.nwgui.App.clearCache()), this.Xj && 'undefined' != typeof jQuery && jQuery('canvas').parents('*').css('overflow', 'visible'), this.width = t.width, this.height = t.height, this.G = this.width, this.F = this.height, this.uj = this.width, this.nh = this.height, this.tg = window.innerWidth, this.sg = window.innerHeight, this.fa = !0, this.Ih = !1, Date.now || (Date.now = function () {
  872. return +new Date();
  873. }), this.plugins = [], this.types = {}, this.p = [], this.Ha = [], this.Nm = {}, this.hd = [], this.cm = {}, this.Ud = [], this.Wg = [], this.bl = [], this.Fu = [], this.Gu = [], this.cf = {}, this.Dm = this.He = !1, this.wc = 0, this.Cm = this.Gm = !1, this.cd = [], this.Fh = !1, this.gk = this.Bn = '', this.kb = null, this.Zd = '', this.si = this.Fr = !1, this.Jj = [], this.df = this.De = 0, this.Eq = 30, this.Pl = this.Xh = 0, this.Jf = 1, this.Bb = new eb(), this.oe = new eb(), this.rk = this.Mj = this.kf = this.Rg = this.yf = this.gm = this.dk = 0, this.ih = null, this.Yl = [], this.am = [], this.Dj = -1, this.Tm = [[]], this.On = this.lk = 0, this.Ek(null), this.Yh = [], this.Zh = -1, this.qh = this.Hq = this.bi = 0, this.ti = [], this.Kn = this.rn = -1, this.Mh = !0, this.jk = 0, this.gg = !1, this.Ay = 0, this.Rf = null, this.xc = this.Bp = !1, this.Lq = new ca(), this.$m = new ca(), this.an = new ca(), this.lr = [], this.md = new gb([]), this.In = new gb([]), this.Qf = [], this.wh = {}, this.ye = {}, this.se = {}, this.Vg = {}, this.Ro = {}, this.gq = this.fk = this.Ua = this.jb = this.fq = this.ek = this.ba = null, this.Tg = this.Im = !1, this.hm = [null,null], this.Fe = 0, this.rh = '', this.be = {}, this.qi = this.Me = null, this.Hr = '', this.qk = [], this.gy();
  874. }
  875. }
  876. function u(t, i) {
  877. return i <= 128 ? t[3] : i <= 256 ? t[2] : i <= 512 ? t[1] : t[0];
  878. }
  879. function n() {
  880. try {
  881. return window.indexedDB;
  882. } catch (t) {
  883. return;
  884. }
  885. }
  886. function o(t) {
  887. t.target.result.createObjectStore('saves', { keyPath: 'slot' });
  888. }
  889. function r() {
  890. fa('Reloading for continuous preview'), window.c2cocoonjs ? CocoonJS.App.reload() : -1 < window.location.search.indexOf('continuous') ? window.location.reload(!0) : window.location = window.location + '?continuous';
  891. }
  892. function a(t) {
  893. var i, s = {};
  894. for (i in t)
  895. !t.hasOwnProperty(i) || t[i] instanceof ca || t[i] && void 0 !== t[i].pz || 'spriteCreatedDestroyCallback' !== i && (s[i] = t[i]);
  896. return s;
  897. }
  898. var f = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame;
  899. s.prototype.gy = function () {
  900. var i = this;
  901. if (this.Jh)
  902. this.lp('data.js', function (t) {
  903. i.Qh(JSON.parse(t));
  904. }, function () {
  905. alert('Error fetching data.js');
  906. });
  907. else {
  908. var s;
  909. s = this.Ke ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest();
  910. var e = 'data.js';
  911. (this.Rp || this.Ke || this.Hm || this.$j) && (e = 'data.json'), s.open('GET', e, !0);
  912. var h = !1;
  913. if (!this.pa && 'response' in s && 'responseType' in s)
  914. try {
  915. s.responseType = 'json', h = 'json' === s.responseType;
  916. } catch (t) {
  917. h = !1;
  918. }
  919. if (!h && 'responseType' in s)
  920. try {
  921. s.responseType = 'text';
  922. } catch (t) {
  923. }
  924. if ('overrideMimeType' in s)
  925. try {
  926. s.overrideMimeType('application/json; charset=utf-8');
  927. } catch (t) {
  928. }
  929. this.Ke ? s.onreadystatechange = function () {
  930. 4 === s.readyState && i.Qh(JSON.parse(s.responseText));
  931. } : (s.onload = function () {
  932. if (h)
  933. i.Qh(s.response);
  934. else if (i.gd) {
  935. var t = (t = s.responseText).substr(t.indexOf('{'));
  936. i.Qh(JSON.parse(t));
  937. } else
  938. i.Qh(JSON.parse(s.responseText));
  939. }, s.onerror = function (t) {
  940. ga('Error requesting ' + e + ':'), ga(t);
  941. }), s.send();
  942. }
  943. }, s.prototype.Vw = function () {
  944. var t, i, s, e, h, n, o, r, a, c = this;
  945. this.tf = (!this.pa || this.gd || this.vc) && this.Py && !this.Xj, 0 === this.Yb && this.pg && (this.tf = !1), this.devicePixelRatio = this.tf && (window.devicePixelRatio || window.webkitDevicePixelRatio || window.mozDevicePixelRatio || window.msDevicePixelRatio) || 1, 'object' === _typeof(window.StatusBar) && window.StatusBar.hide(), this.Gb(), 0 < this.Yb && this.setSize(window.innerWidth, window.innerHeight, !0), this.canvas.addEventListener('webglcontextlost', function (t) {
  946. t.preventDefault(), c.Bx(), fa('[Construct 2] WebGL context lost'), window.cr_setSuspended(!0);
  947. }, !1), this.canvas.addEventListener('webglcontextrestored', function () {
  948. c.k.Gp(), c.k.ge(c.k.width, c.k.height, !0), c.jb = null, c.Ua = null, c.hm[0] = null, c.hm[1] = null, c.Cx(), c.fa = !0, fa('[Construct 2] WebGL context restored'), window.cr_setSuspended(!1);
  949. }, !1);
  950. try {
  951. this.yv && (this.Mc || this.gd || !this.pa) && (t = {
  952. alpha: !0,
  953. depth: !1,
  954. antialias: !1,
  955. powerPreference: 'high-performance',
  956. failIfMajorPerformanceCaveat: !0
  957. }, this.Dh || (this.u = this.canvas.getContext('webgl2', t)), this.u || (this.u = this.canvas.getContext('webgl', t) || this.canvas.getContext('experimental-webgl', t)));
  958. } catch (t) {
  959. }
  960. if (this.u) {
  961. for ((t = this.u.getExtension('WEBGL_debug_renderer_info')) && (this.qm = this.u.getParameter(t.UNMASKED_RENDERER_WEBGL) + ' [' + this.u.getParameter(t.UNMASKED_VENDOR_WEBGL) + ']'), this.ya && (this.qm += ' [front-to-back enabled]'), this.pa || (this.Db = document.createElement('canvas'), jQuery(this.Db).appendTo(this.canvas.parentNode), this.Db.oncontextmenu = function () {
  962. return !1;
  963. }, this.Db.onselectstart = function () {
  964. return !1;
  965. }, this.Db.width = Math.round(this.uj * this.devicePixelRatio), this.Db.height = Math.round(this.nh * this.devicePixelRatio), jQuery(this.Db).css({
  966. width: this.uj + 'px',
  967. height: this.nh + 'px'
  968. }), this.fr(), this.gn = this.Db.getContext('2d')), this.k = new qb(this.u, this.sf, this.ya), this.k.ge(this.canvas.width, this.canvas.height), this.k.fp = 0 !== this.qv, this.Ba = null, t = 0, i = this.p.length; t < i; t++)
  969. for (s = 0, e = (h = this.p[t]).M.length; s < e; s++)
  970. (o = h.M[s]).Za = this.k.pm(o.id), o.Rc = this.k.mn(o.Za), this.Tg = this.Tg || this.k.hi(o.Za);
  971. for (t = 0, i = this.hd.length; t < i; t++) {
  972. for (s = 0, e = (r = this.hd[t]).M.length; s < e; s++)
  973. (o = r.M[s]).Za = this.k.pm(o.id), o.Rc = this.k.mn(o.Za);
  974. for (r.nd(), s = 0, e = r.P.length; s < e; s++) {
  975. for (h = 0, n = (a = r.P[s]).M.length; h < n; h++)
  976. (o = a.M[h]).Za = this.k.pm(o.id), o.Rc = this.k.mn(o.Za), this.Tg = this.Tg || this.k.hi(o.Za);
  977. a.nd();
  978. }
  979. }
  980. } else {
  981. if (0 < this.Yb && this.pb) {
  982. this.canvas = null, document.oncontextmenu = function () {
  983. return !1;
  984. }, document.onselectstart = function () {
  985. return !1;
  986. }, this.Ba = AppMobi.canvas.getContext('2d');
  987. try {
  988. this.Ba.samplingMode = this.qa ? 'smooth' : 'sharp', this.Ba.globalScale = 1, this.Ba.HTML5CompatibilityMode = !0, this.Ba.imageSmoothingEnabled = this.qa;
  989. } catch (t) {
  990. }
  991. 0 !== this.width && 0 !== this.height && (this.Ba.width = this.width, this.Ba.height = this.height);
  992. }
  993. this.Ba || (t = this.Mc ? {
  994. antialias: !!this.qa,
  995. alpha: !0
  996. } : { alpha: !0 }, this.Ba = this.canvas.getContext('2d', t), this.Nk(this.Ba, this.qa)), this.gn = this.Db = null;
  997. }
  998. this.Nr = function (t) {
  999. c.mb(!1, t);
  1000. }, window == window.top || this.pa || this.Qp || this.Ke || (document.addEventListener('mousedown', function () {
  1001. window.focus();
  1002. }, !0), document.addEventListener('touchstart', function () {
  1003. window.focus();
  1004. }, !0)), 'undefined' != typeof cr_is_preview && (this.Mc && console.log('[Construct 2] In preview-over-wifi via CocoonJS mode'), -1 < window.location.search.indexOf('continuous') && (fa('Reloading for continuous preview'), this.gk = '__c2_continuouspreview', this.si = !0), this.Qx && !this.sf && (jQuery(window).focus(function () {
  1005. c.setSuspended(!1);
  1006. }), jQuery(window).blur(function () {
  1007. var t = window.parent;
  1008. t && t.document.hasFocus() || c.setSuspended(!0);
  1009. }))), window.addEventListener('blur', function () {
  1010. c.Cg();
  1011. }), this.pa || (t = function (t) {
  1012. if (pb(t) && document.activeElement && document.activeElement !== document.getElementsByTagName('body')[0] && document.activeElement.blur)
  1013. try {
  1014. document.activeElement.blur();
  1015. } catch (t) {
  1016. }
  1017. }, 'undefined' != typeof PointerEvent ? document.addEventListener('pointerdown', t) : window.navigator.msPointerEnabled ? document.addEventListener('MSPointerDown', t) : document.addEventListener('touchstart', t), document.addEventListener('mousedown', t)), 0 === this.Yb && this.tf && 1 < this.devicePixelRatio && this.setSize(this.Wa, this.Va, !0), this.Sr(), this.Nw(), this.go(), this.ja = {};
  1018. }, s.prototype.setSize = function (t, i, s) {
  1019. var e = 0, h = 0, n = 0, o = 0;
  1020. if (o = 0, this.tg !== t || this.sg !== i || s) {
  1021. this.tg = t, this.sg = i;
  1022. var r = this.Yb;
  1023. ((n = (document.mozFullScreen || document.webkitIsFullScreen || !!document.msFullscreenElement || document.fullScreen || this.gg) && !this.vc) || 0 !== this.Yb || s) && (n && (r = this.Fe), s = this.devicePixelRatio, 4 <= r ? (5 === r && 1 !== s && (t += 1, i += 1), (n = this.Wa / this.Va) < t / i ? (n *= i, 5 === r ? (1 < (o = n * s / this.Wa) ? o = Math.floor(o) : o < 1 && (o = 1 / Math.ceil(1 / o)), e = (t - (n = this.Wa * o / s)) / 2, h = (i - (o = this.Va * o / s)) / 2, t = n, i = o) : (e = (t - n) / 2, t = n)) : (o = t / n, 5 === r ? (1 < (o = o * s / this.Va) ? o = Math.floor(o) : o < 1 && (o = 1 / Math.ceil(1 / o)), e = (t - (n = this.Wa * o / s)) / 2, h = (i - (o = this.Va * o / s)) / 2, t = n) : h = (i - o) / 2, i = o)) : n && 0 === r && (e = Math.floor((t - this.Wa) / 2), h = Math.floor((i - this.Va) / 2), t = this.Wa, i = this.Va), r < 2 && (this.gh = s), this.uj = Math.round(t), this.nh = Math.round(i), this.width = Math.round(t * s), this.height = Math.round(i * s), this.fa = !0, this.ds || this.width < this.Wa && this.height < this.Va || 1 === r ? (this.G = this.width, this.F = this.height, this.sc = !0) : (this.G = this.Wa, this.F = this.Va, this.sc = !1, 2 === r ? (n = this.Wa / this.Va, (r = this.tg / this.sg) < n ? this.G = this.F * r : n < r && (this.F = this.G / r)) : 3 === r && ((n = this.Wa / this.Va) < (r = this.tg / this.sg) ? this.G = this.F * r : r < n && (this.F = this.G / r))), this.nj && !this.pa && (jQuery(this.nj).css({
  1024. width: Math.round(t) + 'px',
  1025. height: Math.round(i) + 'px',
  1026. 'margin-left': Math.floor(e) + 'px',
  1027. 'margin-top': Math.floor(h) + 'px'
  1028. }), 'undefined' != typeof cr_is_preview && jQuery('#borderwrap').css({
  1029. width: Math.round(t) + 'px',
  1030. height: Math.round(i) + 'px'
  1031. })), this.canvas && (this.canvas.width = Math.round(t * s), this.canvas.height = Math.round(i * s), this.gd ? (this.canvas.style.left = Math.floor(e) + 'px', this.canvas.style.top = Math.floor(h) + 'px', this.canvas.style.width = Math.round(t) + 'px', this.canvas.style.height = Math.round(i) + 'px') : this.tf && !this.pa && (this.canvas.style.width = Math.round(t) + 'px', this.canvas.style.height = Math.round(i) + 'px')), this.Db && (this.Db.width = Math.round(t * s), this.Db.height = Math.round(i * s), this.Db.style.width = this.uj + 'px', this.Db.style.height = this.nh + 'px'), this.k && this.k.ge(Math.round(t * s), Math.round(i * s)), this.pb && this.Ba && (this.Ba.width = Math.round(t), this.Ba.height = Math.round(i)), this.Ba && this.Nk(this.Ba, this.qa), this.Sr(), this.Up && !this.vc && window.scrollTo(0, 0));
  1032. }
  1033. }, s.prototype.Sr = function () {
  1034. if (this.Iu && 0 !== this.en) {
  1035. var t = 'portrait';
  1036. 2 === this.en && (t = 'landscape');
  1037. try {
  1038. screen.orientation && screen.orientation.lock ? screen.orientation.lock(t).catch(function () {
  1039. }) : screen.lockOrientation ? screen.lockOrientation(t) : screen.webkitLockOrientation ? screen.webkitLockOrientation(t) : screen.mozLockOrientation ? screen.mozLockOrientation(t) : screen.msLockOrientation && screen.msLockOrientation(t);
  1040. } catch (t) {
  1041. console && console.warn && console.warn('Failed to lock orientation: ', t);
  1042. }
  1043. }
  1044. }, s.prototype.Bx = function () {
  1045. var t, i, s;
  1046. for (this.k.Pu(), this.Im = !0, t = 0, i = this.p.length; t < i; t++)
  1047. (s = this.p[t]).ei && s.ei();
  1048. }, s.prototype.Cx = function () {
  1049. var t, i, s;
  1050. for (this.Im = !1, t = 0, i = this.p.length; t < i; t++)
  1051. (s = this.p[t]).fi && s.fi();
  1052. }, s.prototype.fr = function () {
  1053. if (!this.pa) {
  1054. var t = (document.mozFullScreen || document.webkitIsFullScreen || document.fullScreen || document.msFullscreenElement || this.gg) && !this.vc ? jQuery(this.canvas).offset() : jQuery(this.canvas).position();
  1055. t.position = 'absolute', jQuery(this.Db).css(t);
  1056. }
  1057. };
  1058. var e = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.msCancelAnimationFrame || window.oCancelAnimationFrame;
  1059. s.prototype.setSuspended = function (t) {
  1060. var i;
  1061. if (t && !this.Ih)
  1062. for (fa('[Construct 2] Suspending'), this.Ih = !0, -1 !== this.rn && e && e(this.rn), -1 !== this.Kn && clearTimeout(this.Kn), t = 0, i = this.ti.length; t < i; t++)
  1063. this.ti[t](!0);
  1064. else if (!t && this.Ih) {
  1065. for (fa('[Construct 2] Resuming'), this.Ih = !1, this.dk = Za(), this.yf = Za(), t = this.Xh = this.Mj = 0, i = this.ti.length; t < i; t++)
  1066. this.ti[t](!1);
  1067. this.mb(!1);
  1068. }
  1069. }, s.prototype.No = function (t) {
  1070. this.ti.push(t);
  1071. }, s.prototype.qe = function (t) {
  1072. return this.qk[t];
  1073. };
  1074. var l = !(s.prototype.Qh = function (t) {
  1075. if (t && t.project || ga('Project model unavailable'), t = t.project, this.name = t[0], this.np = t[1], this.Yb = t[12], this.Wa = t[10], this.Va = t[11], this.$q = this.Wa / 2, this.br = this.Va / 2, this.pa && !this.gd && (4 <= t[12] || 0 === t[12]) && (fa('[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to \'Scale outer\''), this.Yb = 3), this.Un = t[18], this.Ne = t[19], 0 === this.Ne) {
  1076. var i = new Image();
  1077. i.crossOrigin = 'anonymous', this.wr(i, 'loading-logo.png'), this.Me = { mk: i };
  1078. } else if (4 === this.Ne) {
  1079. (i = new Image()).src = '';
  1080. var s = new Image();
  1081. s.src = '';
  1082. var e = new Image();
  1083. e.src = '';
  1084. var h = new Image();
  1085. h.src = '';
  1086. var n = new Image();
  1087. n.src = '';
  1088. var o = new Image();
  1089. o.src = '';
  1090. var r = new Image();
  1091. r.src = '';
  1092. var a = new Image();
  1093. a.src = '';
  1094. var c = new Image();
  1095. c.src = '';
  1096. var p = new Image();
  1097. p.src = '';
  1098. var u = new Image();
  1099. u.src = '';
  1100. var f = new Image();
  1101. f.src = '', this.Me = {
  1102. mk: [i,s,e,h],
  1103. Wx: [n,o,r,a],
  1104. Sy: [c,p,u,f]
  1105. };
  1106. }
  1107. for (this.bi = t[21], this.qk = rc(), this.Hd = new T(this), i = 0, s = t[2].length; i < s; i++)
  1108. r = t[2][i], e = this.qe(r[0]), rb(r, e.prototype), (a = new e(this)).Rk = r[1], a.Le = r[2], a.wz = r[5], a.Fq = r[9], a.D && a.D(), this.plugins.push(a);
  1109. for (this.qk = rc(), i = 0, s = t[3].length; i < s; i++) {
  1110. for (r = t[3][i], n = this.qe(r[1]), a = null, e = 0, h = this.plugins.length; e < h; e++)
  1111. if (this.plugins[e] instanceof n) {
  1112. a = this.plugins[e];
  1113. break;
  1114. }
  1115. for ((c = new a.W(a)).name = r[0], c.B = r[2], c.Am = r[3].slice(0), c.Ry = r[3].length, c.Ju = r[4], c.iw = r[5], c.Y = r[11], c.B ? (c.yg = [], c.Vd = this.qh++, c.Da = null) : (c.yg = null, c.Vd = -1, c.Da = []), c.Hj = null, c.Zf = null, c.gp = null, c.Ab = !1, c.hc = null, r[6] ? (c.wi = r[6][0], c.Yk = r[6][1], c.Ue = r[6][2]) : (c.wi = null, c.Yk = 0, c.Ue = 0), r[7] ? c.gc = r[7] : c.gc = null, c.index = i, c.d = [], c.yj = [], c.ke = [new sb(c)], c.sd = 0, c.Jc = null, c.Wu = 0, c.Ng = !0, c.cl = tb, c.qw = ub, c.ww = vb, c.N = wb, c.ii = xb, c.Qe = yb, c.jd = zb, c.Pj = Ab, c.im = Bb, c.lm = Cb, c.Gc = Hb, c.mm = Ib, c.rj = new hb(this.Wa, this.Va), c.ej = !0, c.fj = !1, c.ja = {}, c.toString = Jb, c.Ha = [], e = 0, h = r[8].length; e < h; e++) {
  1116. for (p = r[8][e], u = this.qe(p[1]), f = null, n = 0, o = this.Ha.length; n < o; n++)
  1117. if (this.Ha[n] instanceof u) {
  1118. f = this.Ha[n];
  1119. break;
  1120. }
  1121. f || ((f = new u(this)).Gq = [], f.Ym = new ca(), f.D && f.D(), this.Ha.push(f)), -1 === f.Gq.indexOf(c) && f.Gq.push(c), (n = new f.W(f, c)).name = p[0], n.Y = p[2], n.D(), c.Ha.push(n);
  1122. }
  1123. for (c.global = r[9], c.Fm = r[10], c.M = [], e = 0, h = r[12].length; e < h; e++)
  1124. c.M.push({
  1125. id: r[12][e][0],
  1126. name: r[12][e][1],
  1127. Za: -1,
  1128. Rc: !1,
  1129. nc: !0,
  1130. index: e
  1131. });
  1132. c.Lz = r[13], this.Un && !c.B && !c.Fm && a.Le || c.D(), c.name && (this.types[c.name] = c), this.p.push(c), a.Rk && ((e = new a.S(c)).uid = this.bi++, e.ir = this.Hq++, e.rf = 0, e.uh = Kb, e.toString = Lb, e.A = r[14], e.D(), c.d.push(e), this.be[e.uid.toString()] = e);
  1133. }
  1134. for (i = 0, s = t[4].length; i < s; i++)
  1135. for (n = t[4][i], o = this.p[n[0]], e = 1, h = n.length; e < h; e++)
  1136. (r = this.p[n[e]]).Da.push(o), o.yg.push(r);
  1137. for (i = 0, s = t[28].length; i < s; i++) {
  1138. for (o = [], e = 0, h = (n = t[28][i]).length; e < h; e++)
  1139. o.push(this.p[n[e]]);
  1140. for (e = 0, h = o.length; e < h; e++)
  1141. o[e].Ab = !0, o[e].hc = o;
  1142. }
  1143. if (0 < this.qh)
  1144. for (i = 0, s = this.p.length; i < s; i++)
  1145. if (!(r = this.p[i]).B && r.Da.length) {
  1146. for (r.Hj = Array(this.qh), r.Zf = Array(this.qh), r.gp = Array(this.qh), c = [], e = f = u = p = 0, h = r.Da.length; e < h; e++)
  1147. for (a = r.Da[e], r.Hj[a.Vd] = p, p += a.Ry, r.Zf[a.Vd] = u, u += a.Ju, r.gp[a.Vd] = f, f += a.iw, n = 0, o = a.M.length; n < o; n++)
  1148. c.push(ya({}, a.M[n]));
  1149. for (r.M = c.concat(r.M), e = 0, h = r.M.length; e < h; e++)
  1150. r.M[e].index = e;
  1151. }
  1152. for (i = 0, s = t[5].length; i < s; i++)
  1153. r = t[5][i], e = new Mb(this, r), this.Nm[e.name] = e, this.hd.push(e);
  1154. for (i = 0, s = t[6].length; i < s; i++)
  1155. r = t[6][i], e = new Nb(this, r), this.cm[e.name] = e, this.Ud.push(e);
  1156. for (i = 0, s = this.Ud.length; i < s; i++)
  1157. this.Ud[i].Pa();
  1158. for (i = 0, s = this.Ud.length; i < s; i++)
  1159. this.Ud[i].Rn();
  1160. for (i = 0, s = this.bl.length; i < s; i++)
  1161. this.bl[i].Pa();
  1162. A(this.bl), this.Hu = t[7], this.rh = t[8], this.Ac = t[9], this.gh = 1, this.yv = t[13], this.qa = t[14], this.Zo = t[15], this.Py = t[17], this.en = t[20], this.Iu = 0 < this.en, this.Qx = t[22], this.sc = this.ds = t[23], this.qv = t[24], this.Xx = t[25], this.ya = t[27] && !this.Je, this.Sk = Date.now(), A(this.qk), this.Vw();
  1163. }), h = 0, c = [];
  1164. s.prototype.by = function (t, i) {
  1165. function s() {
  1166. h--, e.Aq();
  1167. }
  1168. var e = this;
  1169. t.addEventListener('load', s), t.addEventListener('error', s), c.push([t,i]), this.Aq();
  1170. }, s.prototype.Aq = function () {
  1171. for (var t; c.length && h < 100;)
  1172. h++, t = c.shift(), this.wr(t[0], t[1]);
  1173. }, s.prototype.gl = function (i, s) {
  1174. i.cocoonLazyLoad = !0, i.onerror = function (t) {
  1175. l = i.Uo = !0, console && console.error && console.error('Error loading image \'' + i.src + '\': ', t);
  1176. }, this.gd ? i.src = s : i.src || ('undefined' != typeof XAPKReader ? XAPKReader.get(s, function (t) {
  1177. i.src = t;
  1178. }, function (t) {
  1179. l = i.Uo = !0, console && console.error && console.error('Error extracting image \'' + s + '\' from expansion file: ', t);
  1180. }) : (i.crossOrigin = 'anonymous', this.by(i, s))), this.Wg.push(i);
  1181. };
  1182. var p = 0, b = !(s.prototype.gw = function (t) {
  1183. var i, s;
  1184. for (i = 0, s = this.Wg.length; i < s; i++)
  1185. if (this.Wg[i].Qu === t)
  1186. return this.Wg[i];
  1187. return null;
  1188. });
  1189. s.prototype.Nw = function () {
  1190. this.Rf && (p = this.Rf.wy(this.Hu));
  1191. };
  1192. var d = !(s.prototype.Po = function () {
  1193. var t, i, s = p, e = 0, h = 0, n = !0;
  1194. for (h = 0, t = this.Wg.length; h < t; h++) {
  1195. var o = (i = this.Wg[h]).Ql;
  1196. (!o || o <= 0) && (o = 50000), s += o, i.src && (i.complete || i.loaded) && !i.Uo ? e += o : n = !1;
  1197. }
  1198. return n && this.Xx && this.Rf && (b || (this.Rf.By(), b = !0), e += h = this.Rf.xw(), h < p && (n = !1)), this.$b = 0 == s ? 1 : e / s, n;
  1199. });
  1200. s.prototype.go = function () {
  1201. if (this.Ba || this.k) {
  1202. var t = this.Ba || this.gn;
  1203. this.Db && this.fr();
  1204. var i = window.innerWidth, s = window.innerHeight;
  1205. this.tg === i && this.sg === s || this.setSize(i, s), this.$b = 0, this.dq = -1;
  1206. var e = this;
  1207. if (this.Po() && (4 !== this.Ne || d))
  1208. this.Ow();
  1209. else {
  1210. if (s = Date.now() - this.Sk, t) {
  1211. var h = this.width, n = this.height;
  1212. if (i = this.devicePixelRatio, this.Ne < 3 && (this.Mc || 500 <= s && this.dq != this.$b)) {
  1213. t.clearRect(0, 0, h, n), s = h / 2, n /= 2;
  1214. var o, r = 40 * i, a = 0, c = 80 * i;
  1215. if (h = 0 === this.Ne && this.Me.mk.complete) {
  1216. var p = this.Me.mk;
  1217. r = (c = p.width * i) / 2, a = (o = p.height * i) / 2, t.drawImage(p, ta(s - r), ta(n - a), c, o);
  1218. }
  1219. this.Ne <= 1 ? (s = ta(s - r) + 0.5, n = ta(n + (a + (h ? 12 * i : 0))) + 0.5, t.fillStyle = l ? 'red' : 'DodgerBlue', t.fillRect(s, n, Math.floor(c * this.$b), 6 * i), t.strokeStyle = 'black', t.strokeRect(s, n, c, 6 * i), t.strokeStyle = 'white', t.strokeRect(s - i, n - i, c + 2 * i, 8 * i)) : 2 === this.Ne && (t.font = this.gd ? '12pt ArialMT' : '12pt Arial', t.fillStyle = l ? '#f00' : '#999', t.Kz = 'middle', i = Math.round(100 * this.$b) + '%', h = t.measureText ? t.measureText(i) : null, t.fillText(i, s - (h ? h.width : 0) / 2, n)), this.dq = this.$b;
  1220. } else if (4 === this.Ne)
  1221. return this.vv(t), void (f ? f(function () {
  1222. e.go();
  1223. }) : setTimeout(function () {
  1224. e.go();
  1225. }, 16));
  1226. }
  1227. setTimeout(function () {
  1228. e.go();
  1229. }, this.Mc ? 10 : 100);
  1230. }
  1231. }
  1232. };
  1233. var g = -1, y = 'undefined' == typeof cr_is_preview ? 200 : 0, v = !0, m = !1, w = 0, k = 0, x = 'undefined' == typeof cr_is_preview ? 3000 : 0, E = null, j = null, R = 0;
  1234. s.prototype.vv = function (t) {
  1235. if (!d) {
  1236. for (var i = Math.ceil(this.width), s = Math.ceil(this.height), e = this.Me.mk, h = this.Me.Wx, n = this.Me.Sy, o = 0; o < 4; ++o)
  1237. if (!e[o].complete || !h[o].complete || !n[o].complete)
  1238. return;
  1239. 0 === R && (g = Date.now()), o = Date.now();
  1240. var r, a, c = !1, p = t;
  1241. v || m ? (t.clearRect(0, 0, i, s), E && E.width === i && E.height === s || ((E = document.createElement('canvas')).width = i, E.height = s, j = E.getContext('2d')), p = j, c = !0, v && 1 === R && (g = Date.now())) : t.globalAlpha = 1, p.fillStyle = '#333333', p.fillRect(0, 0, i, s), 256 < this.nh ? (a = 0.25 * (r = Ja(0.22 * s, 105, 0.6 * i)), p.drawImage(u(h, r), 0.5 * i - r / 2, 0.2 * s - a / 2, r, a), a = r = Math.min(0.395 * s, 0.95 * i), p.drawImage(u(e, r), 0.5 * i - r / 2, 0.485 * s - a / 2, r, a), a = 0.25 * (r = Ja(0.22 * s, 105, 0.6 * i)), p.drawImage(u(n, r), 0.5 * i - r / 2, 0.868 * s - a / 2, r, a), p.fillStyle = '#3C3C3C', r = i, a = Math.max(0.005 * s, 2), p.fillRect(0, 0.8 * s - a / 2, r, a), p.fillStyle = l ? 'red' : '#E0FF65', r = i * this.$b, p.fillRect(0.5 * i - r / 2, 0.8 * s - a / 2, r, a)) : (a = r = 0.55 * s, p.drawImage(u(e, r), 0.5 * i - r / 2, 0.45 * s - a / 2, r, a), p.fillStyle = '#3C3C3C', r = i, a = Math.max(0.005 * s, 2), p.fillRect(0, 0.85 * s - a / 2, r, a), p.fillStyle = l ? 'red' : '#E0FF65', r = i * this.$b, p.fillRect(0.5 * i - r / 2, 0.85 * s - a / 2, r, a)), c && (v ? t.globalAlpha = 0 === R ? 0 : Math.min((o - g) / 300, 1) : m && (t.globalAlpha = Math.max(1 - (o - k) / 300, 0)), t.drawImage(E, 0, 0, i, s)), v && 300 <= o - g && 2 <= R && (v = !1, w = o), !v && x <= o - w && !m && 1 <= this.$b && (m = !0, k = o), (m && 300 + y <= o - k || 'undefined' != typeof cr_is_preview && 1 <= this.$b && Date.now() - g < 500) && (m = v = !(d = !0), this.Me = j = E = null), ++R;
  1242. }
  1243. }, s.prototype.Ow = function () {
  1244. var t, i, s;
  1245. if (this.Db && (this.canvas.parentNode.removeChild(this.Db), this.Db = this.gn = null), this.Sk = Date.now(), this.yf = Za(), this.Un)
  1246. for (t = 0, i = this.p.length; t < i; t++)
  1247. (s = this.p[t]).B || s.Fm || !s.X.Le || s.D();
  1248. else
  1249. this.Mh = !1;
  1250. for (t = 0, i = this.hd.length; t < i; t++)
  1251. this.hd[t].Ru();
  1252. for (2 <= this.Yb && (t = this.Wa / this.Va, i = this.width / this.height, this.gh = 2 !== this.Yb && t < i || 2 === this.Yb && i < t ? this.height / this.Va : this.width / this.Wa), this.np ? this.Nm[this.np].Gn() : this.hd[0].Gn(), this.Un || (this.jk = 1, this.trigger(T.prototype.c.uo, null), window.C2_RegisterSW && window.C2_RegisterSW()), navigator.splashscreen && navigator.splashscreen.hide && navigator.splashscreen.hide(), t = 0, i = this.p.length; t < i; t++)
  1253. (s = this.p[t]).Oq && s.Oq();
  1254. document.hidden || document.webkitHidden || document.mozHidden || document.msHidden ? window.cr_setSuspended(!0) : this.mb(!1), this.pb && AppMobi.webview.execute('onGameReady();');
  1255. }, s.prototype.mb = function (t, i, s) {
  1256. if (this.ba) {
  1257. var e = Za();
  1258. if (s || !this.Ih || t) {
  1259. t || (f ? this.rn = f(this.Nr) : this.Kn = setTimeout(this.Nr, this.sf ? 1 : 16)), i = i || e;
  1260. var h = this.Yb;
  1261. if (((s = (document.mozFullScreen || document.webkitIsFullScreen || document.fullScreen || !!document.msFullscreenElement) && !this.vc) || this.gg) && 0 < this.Fe && (h = this.Fe), 0 < h) {
  1262. h = window.innerWidth;
  1263. var n = window.innerHeight;
  1264. this.tg === h && this.sg === n || this.setSize(h, n);
  1265. }
  1266. this.pa || (s ? this.Kj || (this.Kj = !0) : this.Kj ? (this.Kj = !1, 0 === this.Yb && this.setSize(Math.round(this.Nq / this.devicePixelRatio), Math.round(this.Mq / this.devicePixelRatio), !0)) : (this.Nq = this.width, this.Mq = this.height)), this.Mh && (s = this.Po(), this.jk = this.$b, s && (this.Mh = !1, this.$b = 1, this.trigger(T.prototype.c.uo, null), window.C2_RegisterSW && window.C2_RegisterSW())), this.tx(i), !this.fa && !this.Mc || this.Im || this.si || t || (this.fa = !1, this.k ? this.Kb() : this.ed(), this.qi && (this.canvas && this.canvas.toDataURL && (this.Hr = this.canvas.toDataURL(this.qi[0], this.qi[1]), window.cr_onSnapshot && window.cr_onSnapshot(this.Hr), this.trigger(T.prototype.c.jt, null)), this.qi = null)), this.vz || (this.Rg++, this.kf++, this.Mj++), this.Xh += Za() - e;
  1267. }
  1268. }
  1269. }, s.prototype.tx = function (t) {
  1270. var i, s, e, h, n, o, r, a;
  1271. for (1000 <= t - this.yf && (this.yf += 1000, 1000 <= t - this.yf && (this.yf = t), this.gm = this.Mj, this.Mj = 0, this.Pl = this.Xh, this.Xh = 0), (i = 0) !== this.dk && ((i = t - this.dk) < 0 && (i = 0), this.df = i /= 1000, 0.5 < this.df ? this.df = 0 : this.df > 1 / this.Eq && (this.df = 1 / this.Eq)), this.dk = t, this.De = this.df * this.Jf, this.Bb.add(this.De), this.oe.add(i), t = (document.mozFullScreen || document.webkitIsFullScreen || document.fullScreen || !!document.msFullscreenElement || this.gg) && !this.vc, 2 <= this.Yb || t && 0 < this.Fe ? (i = this.Wa / this.Va, s = this.width / this.height, e = this.Yb, t && 0 < this.Fe && (e = this.Fe), this.gh = 2 !== e && i < s || 2 === e && s < i ? this.height / this.Va : this.width / this.Wa, this.ba && (this.ba.Kk(this.ba.scrollX), this.ba.Lk(this.ba.scrollY))) : this.gh = this.tf ? this.devicePixelRatio : 1, this.Gb(), this.wc++, this.Hd.jy(), this.wc--, this.Gb(), this.wc++, t = 0, i = (s = this.Lq.We()).length; t < i; t++)
  1272. s[t].Ez();
  1273. for (t = 0, i = this.p.length; t < i; t++)
  1274. if (!(o = this.p[t]).B && (o.Ha.length || o.Da.length))
  1275. for (s = 0, e = o.d.length; s < e; s++)
  1276. for (h = 0, n = (r = o.d[s]).L.length; h < n; h++)
  1277. r.L[h].mb();
  1278. for (t = 0, i = this.p.length; t < i; t++)
  1279. if (!(o = this.p[t]).B && (o.Ha.length || o.Da.length))
  1280. for (s = 0, e = o.d.length; s < e; s++)
  1281. for (h = 0, n = (r = o.d[s]).L.length; h < n; h++)
  1282. (a = r.L[h]).Vx && a.Vx();
  1283. for (t = 0, i = (s = this.$m.We()).length; t < i; t++)
  1284. s[t].mb();
  1285. for (this.wc--, this.Pw(), t = 0; this.ih && t++ < 10;)
  1286. this.ep(this.ih);
  1287. for (t = 0, i = this.Ud.length; t < i; t++)
  1288. this.Ud[t].um = !1;
  1289. for (this.ba.hf && this.ba.hf.Ya(), A(this.lr), this.wc++, t = 0, i = this.p.length; t < i; t++)
  1290. if (!(o = this.p[t]).B && (o.Ha.length || o.Da.length))
  1291. for (s = 0, e = o.d.length; s < e; s++)
  1292. for (h = 0, n = (r = o.d[s]).L.length; h < n; h++)
  1293. (a = r.L[h]).Jn && a.Jn();
  1294. for (t = 0, i = (s = this.an.We()).length; t < i; t++)
  1295. s[t].Jn();
  1296. this.wc--;
  1297. }, s.prototype.Cg = function () {
  1298. var t, i, s, e, h, n, o, r, a;
  1299. for (t = 0, i = this.p.length; t < i; t++)
  1300. if (!(o = this.p[t]).B)
  1301. for (s = 0, e = o.d.length; s < e; s++)
  1302. if ((r = o.d[s]).Cg && r.Cg(), r.L)
  1303. for (h = 0, n = r.L.length; h < n; h++)
  1304. (a = r.L[h]).Cg && a.Cg();
  1305. }, s.prototype.ep = function (t) {
  1306. var i, s, e, h = this.ba;
  1307. if (this.ba.Cy(), this.k)
  1308. for (i = 0, s = this.p.length; i < s; i++)
  1309. (e = this.p[i]).B || !e.Ai || e.global && 0 !== e.d.length || -1 !== t.Bh.indexOf(e) || e.Ai();
  1310. h == t && A(this.Hd.fc), A(this.lr), this.or(!0), t.Gn(), this.or(!1), this.fa = !0, this.Gb();
  1311. }, s.prototype.or = function (t) {
  1312. var i, s, e, h, n, o, r, a, c;
  1313. for (i = 0, s = this.Ha.length; i < s; i++)
  1314. e = this.Ha[i], t ? e.ci && e.ci() : e.di && e.di();
  1315. for (i = 0, s = this.p.length; i < s; i++)
  1316. if ((e = this.p[i]).global || e.X.Rk)
  1317. for (h = 0, n = e.d.length; h < n; h++)
  1318. if (o = e.d[h], t ? o.ci && o.ci() : o.di && o.di(), o.L)
  1319. for (r = 0, a = o.L.length; r < a; r++)
  1320. c = o.L[r], t ? c.ci && c.ci() : c.di && c.di();
  1321. }, s.prototype.If = function (t) {
  1322. this.$m.add(t);
  1323. }, s.prototype.Fy = function (t) {
  1324. this.an.add(t);
  1325. }, s.prototype.Rj = function (t) {
  1326. return t && -1 !== t.ai ? this.df * t.ai : this.De;
  1327. }, s.prototype.ed = function () {
  1328. this.ba.ed(this.Ba), this.pb && this.Ba.present();
  1329. }, s.prototype.Kb = function () {
  1330. this.ya && (this.ef = 1, this.ba.Ce(this.k)), this.ba.Kb(this.k), this.k.Zx();
  1331. }, s.prototype.Du = function (t) {
  1332. t && this.Yl.push(t);
  1333. }, s.prototype.Uj = function (t) {
  1334. return t = t.toString(), this.be.hasOwnProperty(t) ? this.be[t] : null;
  1335. };
  1336. var S = [];
  1337. s.prototype.Xe = function (t) {
  1338. var i, s;
  1339. i = t.type.name;
  1340. var e = null;
  1341. if (this.cf.hasOwnProperty(i)) {
  1342. if ((e = this.cf[i]).contains(t))
  1343. return;
  1344. } else
  1345. e = S.length ? S.pop() : new ca(), this.cf[i] = e;
  1346. if (e.add(t), this.He = !0, t.Ab)
  1347. for (i = 0, s = t.siblings.length; i < s; i++)
  1348. this.Xe(t.siblings[i]);
  1349. this.Dm && e.Ug.push(t), this.Cm || (this.wc++, this.trigger(Object.getPrototypeOf(t.type.X).c.po, t), this.wc--);
  1350. }, s.prototype.Gb = function () {
  1351. if (this.He) {
  1352. var t, i, s, e, h, n;
  1353. for (this.Dm = !0, s = 0, h = this.cd.length; s < h; ++s)
  1354. for ((i = (t = this.cd[s]).type).d.push(t), e = 0, n = i.Da.length; e < n; ++e)
  1355. i.Da[e].d.push(t), i.Da[e].Ng = !0;
  1356. A(this.cd), this.Ys(), Ya(this.cf), this.He = this.Dm = !1;
  1357. }
  1358. }, s.prototype.Ys = function () {
  1359. for (var t in this.cf)
  1360. this.cf.hasOwnProperty(t) && this.ps(this.cf[t]);
  1361. }, s.prototype.ps = function (t) {
  1362. var i, s, e, h, n, o, r = t.We(), a = r[0].type;
  1363. for ($a(a.d, t), a.Ng = !0, 0 === a.d.length && (a.fj = !1), i = 0, s = a.Da.length; i < s; ++i)
  1364. o = a.Da[i], $a(o.d, t), o.Ng = !0;
  1365. for (i = 0, s = this.Hd.fc.length; i < s; ++i)
  1366. if ((n = this.Hd.fc[i]).Sb.hasOwnProperty(a.index) && $a(n.Sb[a.index].Xd, t), !a.B)
  1367. for (e = 0, h = a.Da.length; e < h; ++e)
  1368. o = a.Da[e], n.Sb.hasOwnProperty(o.index) && $a(n.Sb[o.index].Xd, t);
  1369. if (n = r[0].j) {
  1370. if (n.Ec)
  1371. for (i = 0, s = (e = n.d).length; i < s; ++i)
  1372. h = e[i], t.contains(h) && (h.Aa(), n.Eb.update(h, h.ac, null), h.ac.set(0, 0, -1, -1));
  1373. $a(n.d, t), n.mi(0);
  1374. }
  1375. for (i = 0; i < r.length; ++i)
  1376. this.os(r[i], a);
  1377. t.clear(), S.push(t), this.fa = !0;
  1378. }, s.prototype.os = function (t, i) {
  1379. var s, e, h;
  1380. for (s = 0, e = this.Yl.length; s < e; ++s)
  1381. this.Yl[s](t);
  1382. if (t.ze && i.rj.update(t, t.ze, null), (s = t.j) && s.Gg(t, !0), t.L)
  1383. for (s = 0, e = t.L.length; s < e; ++s)
  1384. (h = t.L[s]).Ef && h.Ef(), h.behavior.Ym.remove(t);
  1385. this.Lq.remove(t), this.$m.remove(t), this.an.remove(t), t.Ef && t.Ef(), this.be.hasOwnProperty(t.uid.toString()) && delete this.be[t.uid.toString()], this.rk--, i.yj.length < 100 && i.yj.push(t);
  1386. }, s.prototype.Rl = function (t, i, s, e) {
  1387. if (t.B) {
  1388. var h = ta(Math.random() * t.yg.length);
  1389. return this.Rl(t.yg[h], i, s, e);
  1390. }
  1391. return t.Jc ? this.Ae(t.Jc, i, !1, s, e, !1) : null;
  1392. };
  1393. var M = [];
  1394. s.prototype.Ae = function (t, i, s, e, h, n) {
  1395. var o, r, a, c;
  1396. if (!t)
  1397. return null;
  1398. var p = this.p[t[1]], u = p.X.Le;
  1399. if (this.Mh && u && !p.Fm || u && !this.k && 11 === t[0][11])
  1400. return null;
  1401. var f, l, b = i;
  1402. for (u || (i = null), p.yj.length ? ((f = p.yj.pop()).Bc = !0, p.X.S.call(f, p)) : (f = new p.X.S(p)).Bc = !1, !s || n || this.be.hasOwnProperty(t[2].toString()) ? f.uid = this.bi++ : f.uid = t[2], (this.be[f.uid.toString()] = f).ir = this.Hq++, f.rf = p.d.length, o = 0, r = this.cd.length; o < r; ++o)
  1403. this.cd[o].type === p && f.rf++;
  1404. if (f.uh = Kb, f.toString = Lb, a = t[3], f.Bc)
  1405. Ya(f.ja);
  1406. else {
  1407. if (f.ja = {}, 'undefined' != typeof cr_is_preview)
  1408. for (f.Jp = [], f.Jp.length = a.length, o = 0, r = a.length; o < r; o++)
  1409. f.Jp[o] = a[o][1];
  1410. f.hb = [], f.hb.length = a.length;
  1411. }
  1412. for (o = 0, r = a.length; o < r; o++)
  1413. f.hb[o] = a[o][0];
  1414. if (u) {
  1415. var d = t[0];
  1416. if (f.x = ha(e) ? d[0] : e, f.y = ha(h) ? d[1] : h, f.z = d[2], f.width = d[3], f.height = d[4], f.depth = d[5], f.m = d[6], f.opacity = d[7], f.Nb = d[8], f.Ob = d[9], f.Hb = d[10], o = d[11], !this.k && p.M.length && (f.Hb = o), f.jh = jb(f.Hb), this.u && kb(f, f.Hb, this.u), f.Bc) {
  1417. for (o = 0, r = d[12].length; o < r; o++)
  1418. for (a = 0, c = d[12][o].length; a < c; a++)
  1419. f.Ja[o][a] = d[12][o][a];
  1420. f.Qa.set(0, 0, 0, 0), f.ze.set(0, 0, -1, -1), f.ac.set(0, 0, -1, -1), f.Xb.ni(f.Qa), A(f.Gl);
  1421. } else {
  1422. for (f.Ja = d[12].slice(0), o = 0, r = f.Ja.length; o < r; o++)
  1423. f.Ja[o] = d[12][o].slice(0);
  1424. f.ea = [], f.re = [], f.re.length = p.M.length, f.Qa = new wa(0, 0, 0, 0), f.ze = new wa(0, 0, -1, -1), f.ac = new wa(0, 0, -1, -1), f.Xb = new xa(), f.Gl = [], f.za = Ob, f.oz = Pb, f.Ib = Qb, f.Aa = Rb, f.Ny = Sb, f.$r = Tb, f.wd = Ub;
  1425. }
  1426. for (f.Sg = !1, f.Iy = 0, f.Hy = 0, f.Gy = null, 14 === d.length && (f.Sg = !0, f.Iy = d[13][0], f.Hy = d[13][1], f.Gy = d[13][2]), o = 0, r = p.M.length; o < r; o++)
  1427. f.re[o] = !0;
  1428. f.ie = !0, f.nd = Vb, f.nd(), f.as = !!f.ea.length, f.Fl = !0, f.Kl = !0, p.ej = !0, f.visible = !0, f.ai = -1, f.j = i, f.pd = i.d.length, void (f.ef = 0) === f.ga && (f.ga = null), this.fa = f.$e = !0;
  1429. }
  1430. for (A(M), o = 0, r = p.Da.length; o < r; o++)
  1431. M.push.apply(M, p.Da[o].Ha);
  1432. if (M.push.apply(M, p.Ha), f.Bc)
  1433. for (o = 0, r = M.length; o < r; o++) {
  1434. var g = M[o];
  1435. for ((l = f.L[o]).Bc = !0, g.behavior.S.call(l, g, f), a = 0, c = (d = t[4][o]).length; a < c; a++)
  1436. l.A[a] = d[a];
  1437. l.D(), g.behavior.Ym.add(f);
  1438. }
  1439. else
  1440. for (f.L = [], o = 0, r = M.length; o < r; o++)
  1441. (l = new (g = M[o]).behavior.S(g, f)).Bc = !1, l.A = t[4][o].slice(0), l.D(), f.L.push(l), g.behavior.Ym.add(f);
  1442. if (d = t[5], f.Bc)
  1443. for (o = 0, r = d.length; o < r; o++)
  1444. f.A[o] = d[o];
  1445. else
  1446. f.A = d.slice(0);
  1447. if (this.cd.push(f), this.He = !0, i && (i.fh(f, !0), 1 !== i.Pc || 1 !== i.Qc) && (p.fj = !0), this.rk++, p.Ab) {
  1448. if (f.Ab = !0, f.Bc ? A(f.siblings) : f.siblings = [], !s && !n) {
  1449. for (o = 0, r = p.hc.length; o < r; o++)
  1450. if (p.hc[o] !== p) {
  1451. if (!p.hc[o].Jc)
  1452. return null;
  1453. f.siblings.push(this.Ae(p.hc[o].Jc, b, !1, u ? f.x : e, u ? f.y : h, !0));
  1454. }
  1455. for (o = 0, r = f.siblings.length; o < r; o++)
  1456. for (f.siblings[o].siblings.push(f), a = 0; a < r; a++)
  1457. o !== a && f.siblings[o].siblings.push(f.siblings[a]);
  1458. }
  1459. } else
  1460. f.Ab = !1, f.siblings = null;
  1461. for (f.D(), o = 0, r = f.L.length; o < r; o++)
  1462. f.L[o].Ux && f.L[o].Ux();
  1463. return f;
  1464. }, s.prototype.Sj = function (t) {
  1465. var i, s;
  1466. for (i = 0, s = this.ba.P.length; i < s; i++) {
  1467. var e = this.ba.P[i];
  1468. if (mb(e.name, t))
  1469. return e;
  1470. }
  1471. return null;
  1472. }, s.prototype.ag = function (t) {
  1473. return (t = ta(t)) < 0 && (t = 0), t >= this.ba.P.length && (t = this.ba.P.length - 1), this.ba.P[t];
  1474. }, s.prototype.wp = function (t) {
  1475. return ja(t) ? this.ag(t) : this.Sj(t.toString());
  1476. }, s.prototype.Nl = function (t) {
  1477. var i, s;
  1478. for (i = 0, s = t.length; i < s; i++)
  1479. t[i].N().R = !0;
  1480. }, s.prototype.ii = function (t) {
  1481. var i, s;
  1482. for (i = 0, s = t.length; i < s; i++)
  1483. t[i].ii();
  1484. }, s.prototype.Qe = function (t) {
  1485. var i, s;
  1486. for (i = 0, s = t.length; i < s; i++)
  1487. t[i].Qe();
  1488. }, s.prototype.jd = function (t) {
  1489. var i, s;
  1490. for (i = 0, s = t.length; i < s; i++)
  1491. t[i].jd();
  1492. }, s.prototype.Xr = function (t) {
  1493. if (t.ej) {
  1494. var i, s, e = t.d;
  1495. for (i = 0, s = e.length; i < s; ++i)
  1496. e[i].$r();
  1497. for (i = 0, s = (e = this.cd).length; i < s; ++i)
  1498. e[i].type === t && e[i].$r();
  1499. t.ej = !1;
  1500. }
  1501. }, s.prototype.ow = function (t, i, s, e) {
  1502. var h, n, o = !!t && (1 !== t.Pc || 1 !== t.Qc);
  1503. if (i.B)
  1504. for (t = 0, h = i.yg.length; t < h; ++t)
  1505. n = i.yg[t], o || n.fj ? Fa(e, n.d) : (this.Xr(n), n.rj.Fk(s, e));
  1506. else
  1507. o || i.fj ? Fa(e, i.d) : (this.Xr(i), i.rj.Fk(s, e));
  1508. }, s.prototype.Wk = function (t, i, s) {
  1509. var e, h, n, o, r, a, c, p = t.N(), u = this.Ea().Ia.kc;
  1510. if (p.R)
  1511. for (p.R = !1, A(p.d), e = 0, o = t.d.length; e < o; e++)
  1512. (n = t.d[e]).Aa(), r = n.j.ub(i, s, !0), a = n.j.ub(i, s, !1), n.Ib(r, a) ? p.d.push(n) : u && p.I.push(n);
  1513. else {
  1514. for (e = h = 0, o = (c = u ? p.I : p.d).length; e < o; e++)
  1515. (n = c[e]).Aa(), r = n.j.ub(i, s, !0), a = n.j.ub(i, s, !1), n.Ib(r, a) && (u ? p.d.push(n) : (p.d[h] = p.d[e], h++));
  1516. c.length = h;
  1517. }
  1518. return t.Gc(), p.tm();
  1519. }, s.prototype.Ey = function (t, i) {
  1520. if (!(t && i && t !== i && t.$e && i.$e))
  1521. return !1;
  1522. t.Aa(), i.Aa();
  1523. var s, e, h, n, o, r, a, c, p = t.j, u = i.j;
  1524. if (p === u || p.Pc === u.Pc && u.Qc == u.Qc && p.scale === u.scale && p.m === u.m && p.qd === u.qd)
  1525. return !(!t.Qa.Ww(i.Qa) || !t.Xb.Kp(i.Xb) || t.Sg && i.Sg) && (t.Sg ? this.Lr(t, i) : i.Sg ? this.Lr(i, t) : (a = t.ga && !t.ga.jg(), s = i.ga && !i.ga.jg(), !a && !s || (a = a ? (t.ga.Sf(t.width, t.height, t.m), t.ga) : (this.md.Lg(t.Xb, t.x, t.y, t.width, t.height), this.md), c = s ? (i.ga.Sf(i.width, i.height, i.m), i.ga) : (this.md.Lg(i.Xb, i.x, i.y, i.width, i.height), this.md), a.Ch(c, i.x - t.x, i.y - t.y))));
  1526. for (a = t.ga && !t.ga.jg(), s = i.ga && !i.ga.jg(), a ? (t.ga.Sf(t.width, t.height, t.m), this.md.Ar(t.ga)) : this.md.Lg(t.Xb, t.x, t.y, t.width, t.height), a = this.md, s ? (i.ga.Sf(i.width, i.height, i.m), this.In.Ar(i.ga)) : this.In.Lg(i.Xb, i.x, i.y, i.width, i.height), c = this.In, s = 0, e = a.kd; s < e; s++)
  1527. n = 1 + (h = 2 * s), o = a.lb[h], r = a.lb[n], a.lb[h] = p.ib(o + t.x, r + t.y, !0), a.lb[n] = p.ib(o + t.x, r + t.y, !1);
  1528. for (a.Aa(), s = 0, e = c.kd; s < e; s++)
  1529. n = 1 + (h = 2 * s), o = c.lb[h], r = c.lb[n], c.lb[h] = u.ib(o + i.x, r + i.y, !0), c.lb[n] = u.ib(o + i.x, r + i.y, !1);
  1530. return c.Aa(), a.Ch(c, 0, 0);
  1531. };
  1532. var P = new xa();
  1533. new wa(0, 0, 0, 0);
  1534. var q = [];
  1535. s.prototype.Lr = function (t, i) {
  1536. var s, e, h, n, o = i.Qa, r = t.x, a = t.y;
  1537. t.sz(o, q);
  1538. var c = i.ga && !i.ga.jg();
  1539. for (s = 0, e = q.length; s < e; ++s)
  1540. if (n = (h = q[s]).Hz, o.Xw(n, r, a) && (P.ni(n), P.offset(r, a), P.Kp(i.Xb)))
  1541. if (c) {
  1542. if (i.ga.Sf(i.width, i.height, i.m), h.kn) {
  1543. if (h.kn.Ch(i.ga, i.x - (r + n.left), i.y - (a + n.top)))
  1544. return A(q), !0;
  1545. } else if (this.md.Lg(P, 0, 0, n.right - n.left, n.bottom - n.top), this.md.Ch(i.ga, i.x, i.y))
  1546. return A(q), !0;
  1547. } else {
  1548. if (!h.kn)
  1549. return A(q), !0;
  1550. if (this.md.Lg(i.Xb, 0, 0, i.width, i.height), h.kn.Ch(this.md, -(r + n.left), -(a + n.top)))
  1551. return A(q), !0;
  1552. }
  1553. return A(q), !1;
  1554. }, s.prototype.Tr = function (t, i) {
  1555. if (!i)
  1556. return !1;
  1557. var s, e, h, n, o;
  1558. for (s = 0, e = t.Ha.length; s < e; s++)
  1559. if (t.Ha[s].behavior instanceof i)
  1560. return !0;
  1561. if (!t.B)
  1562. for (s = 0, e = t.Da.length; s < e; s++)
  1563. for (h = 0, n = (o = t.Da[s]).Ha.length; h < n; h++)
  1564. if (o.Ha[h].behavior instanceof i)
  1565. return !0;
  1566. return !1;
  1567. }, s.prototype.Pn = function (t) {
  1568. return this.Tr(t, jc.cz);
  1569. }, s.prototype.Qn = function (t) {
  1570. return this.Tr(t, jc.dz);
  1571. };
  1572. var O = -1;
  1573. s.prototype.trigger = function (t, i, s) {
  1574. if (!this.ba)
  1575. return !1;
  1576. var e = this.ba.hf;
  1577. if (!e)
  1578. return !1;
  1579. var h, n, o, r = !1;
  1580. O++;
  1581. var a = e.Wl;
  1582. for (n = 0, o = a.length; n < o; ++n)
  1583. h = this.Qr(t, i, a[n], s), r = r || h;
  1584. return h = this.Qr(t, i, e, s), O--, r || h;
  1585. }, s.prototype.Qr = function (t, i, s, e) {
  1586. var h, n, o, r, a = !1;
  1587. if (i)
  1588. for (o = this.Nn(t, i, i.type.name, s, e), a = a || o, h = 0, n = (r = i.type.Da).length; h < n; ++h)
  1589. o = this.Nn(t, i, r[h].name, s, e), a = a || o;
  1590. else
  1591. o = this.Nn(t, i, 'system', s, e), a = a || o;
  1592. return a;
  1593. }, s.prototype.Nn = function (t, i, s, e, h) {
  1594. var n, o = !1, r = !1, a = ((r = void 0 !== h) ? e.ip : e.Rr)[s];
  1595. if (!a)
  1596. return o;
  1597. var c, p = null;
  1598. for (e = 0, n = a.length; e < n; ++e)
  1599. if (a[e].method == t) {
  1600. p = a[e].ph;
  1601. break;
  1602. }
  1603. if (!p)
  1604. return o;
  1605. if (!(c = r ? p[h] : p))
  1606. return null;
  1607. for (e = 0, n = c.length; e < n; e++)
  1608. t = c[e][0], h = c[e][1], r = this.ew(i, s, t, h), o = o || r;
  1609. return o;
  1610. }, s.prototype.ew = function (t, i, s, e) {
  1611. var h, n, o = !1;
  1612. this.On++;
  1613. var r = this.Ea().Ia;
  1614. r && this.ii(r.Te);
  1615. var a = 1 < this.On;
  1616. this.ii(s.Te), a && this.ay();
  1617. var c = this.Ek(s);
  1618. if (c.Ia = s, t && ((h = this.types[i].N()).R = !1, A(h.d), h.d[0] = t, this.types[i].Gc()), t = !0, s.parent) {
  1619. for (i = c.Kr, h = s.parent; h;)
  1620. i.push(h), h = h.parent;
  1621. for (i.reverse(), h = 0, n = i.length; h < n; h++)
  1622. if (!i[h].ly()) {
  1623. t = !1;
  1624. break;
  1625. }
  1626. }
  1627. return t && (this.kf++, s.kc ? s.ky(e) : s.Ya(), o = o || c.xf), this.zk(), a && this.Tx(), this.jd(s.Te), r && this.jd(r.Te), this.He && 0 === this.wc && 0 === O && !this.Gm && this.Gb(), this.On--, o;
  1628. }, s.prototype.Qj = function () {
  1629. var t = this.Ea();
  1630. return t.Ia.eb[t.Ra];
  1631. }, s.prototype.Zw = function () {
  1632. return 0 === this.Ea().Ra;
  1633. }, s.prototype.pw = function () {
  1634. var t = this.Ea();
  1635. return t.Ia.Fc[t.Wb];
  1636. }, s.prototype.ay = function () {
  1637. this.lk++, this.lk >= this.Tm.length && this.Tm.push([]);
  1638. }, s.prototype.Tx = function () {
  1639. this.lk--;
  1640. }, s.prototype.tp = function () {
  1641. return this.Tm[this.lk];
  1642. }, s.prototype.Ek = function (t) {
  1643. this.Dj++, this.Dj >= this.am.length && this.am.push(new Wb());
  1644. var i = this.Ea();
  1645. return i.reset(t), i;
  1646. }, s.prototype.zk = function () {
  1647. this.Dj--;
  1648. }, s.prototype.Ea = function () {
  1649. return this.am[this.Dj];
  1650. }, s.prototype.pn = function (t) {
  1651. this.Zh++, this.Zh >= this.Yh.length && this.Yh.push(aa({
  1652. name: t,
  1653. index: 0,
  1654. ta: !1
  1655. }));
  1656. var i = this.up();
  1657. return i.name = t, i.index = 0, i.ta = !1, i;
  1658. }, s.prototype.ln = function () {
  1659. this.Zh--;
  1660. }, s.prototype.up = function () {
  1661. return this.Yh[this.Zh];
  1662. }, s.prototype.vp = function (t, i) {
  1663. for (var s, e, h, n, o, r; i;) {
  1664. for (s = 0, e = i.Uc.length; s < e; s++)
  1665. if ((r = i.Uc[s]) instanceof Xb && mb(t, r.name))
  1666. return r;
  1667. i = i.parent;
  1668. }
  1669. for (s = 0, e = this.Ud.length; s < e; s++)
  1670. for (h = 0, n = (o = this.Ud[s]).Ee.length; h < n; h++)
  1671. if ((r = o.Ee[h]) instanceof Xb && mb(t, r.name))
  1672. return r;
  1673. return null;
  1674. }, s.prototype.xp = function (t) {
  1675. var i, s;
  1676. for (i = 0, s = this.hd.length; i < s; i++)
  1677. if (this.hd[i].Y === t)
  1678. return this.hd[i];
  1679. return null;
  1680. }, s.prototype.Vj = function (t) {
  1681. var i, s;
  1682. for (i = 0, s = this.p.length; i < s; i++)
  1683. if (this.p[i].Y === t)
  1684. return this.p[i];
  1685. return null;
  1686. }, s.prototype.rw = function (t) {
  1687. var i, s;
  1688. for (i = 0, s = this.Qf.length; i < s; i++)
  1689. if (this.Qf[i].Y === t)
  1690. return this.Qf[i];
  1691. return null;
  1692. }, s.prototype.Yu = function (t, i) {
  1693. this.qi = [t,i], this.fa = !0;
  1694. }, s.prototype.Pw = function () {
  1695. var s = this, t = this.Bn, e = this.Zd, i = this.gk, h = !1;
  1696. if (this.Fr && (h = !0, t = '__c2_continuouspreview', this.Fr = !1), t.length) {
  1697. if (this.Gb(), e = this.qy(), n() && !this.Mc)
  1698. !function (i, s, e, h) {
  1699. try {
  1700. var t = indexedDB.open('_C2SaveStates');
  1701. t.onupgradeneeded = o, t.onerror = h, t.onsuccess = function (t) {
  1702. (t = t.target.result).onerror = h, t.transaction(["saves"], 'readwrite').objectStore('saves').put({
  1703. slot: i,
  1704. data: s
  1705. }).onsuccess = e;
  1706. };
  1707. } catch (t) {
  1708. h(t);
  1709. }
  1710. }(t, e, function () {
  1711. fa('Saved state to IndexedDB storage (' + e.length + ' bytes)'), s.Zd = e, s.trigger(T.prototype.c.ql, null), e = s.Zd = '', h && r();
  1712. }, function (i) {
  1713. try {
  1714. localStorage.setItem('__c2save_' + t, e), fa('Saved state to WebStorage (' + e.length + ' bytes)'), s.Zd = e, s.trigger(T.prototype.c.ql, null), e = s.Zd = '', h && r();
  1715. } catch (t) {
  1716. fa('Failed to save game state: ' + i + '; ' + t), s.trigger(T.prototype.c.zo, null);
  1717. }
  1718. });
  1719. else
  1720. try {
  1721. localStorage.setItem('__c2save_' + t, e), fa('Saved state to WebStorage (' + e.length + ' bytes)'), s.Zd = e, this.trigger(T.prototype.c.ql, null), e = s.Zd = '', h && r();
  1722. } catch (t) {
  1723. fa('Error saving to WebStorage: ' + t), s.trigger(T.prototype.c.zo, null);
  1724. }
  1725. this.gk = this.Bn = '', this.kb = null;
  1726. }
  1727. if (i.length) {
  1728. if (n() && !this.Mc)
  1729. !function (s, e, h) {
  1730. try {
  1731. var t = indexedDB.open('_C2SaveStates');
  1732. t.onupgradeneeded = o, t.onerror = h, t.onsuccess = function (t) {
  1733. (t = t.target.result).onerror = h;
  1734. var i = t.transaction(["saves"]).objectStore('saves').get(s);
  1735. i.onsuccess = function () {
  1736. i.result ? e(i.result.data) : e(null);
  1737. };
  1738. };
  1739. } catch (t) {
  1740. h();
  1741. }
  1742. }(i, function (t) {
  1743. t ? (s.kb = t, fa('Loaded state from IndexedDB storage (' + s.kb.length + ' bytes)')) : (s.kb = localStorage.getItem('__c2save_' + i) || '', fa('Loaded state from WebStorage (' + s.kb.length + ' bytes)')), s.si = !1, s.kb || (s.kb = null, s.trigger(T.prototype.c.Vi, null));
  1744. }, function () {
  1745. s.kb = localStorage.getItem('__c2save_' + i) || '', fa('Loaded state from WebStorage (' + s.kb.length + ' bytes)'), s.si = !1, s.kb || (s.kb = null, s.trigger(T.prototype.c.Vi, null));
  1746. });
  1747. else {
  1748. try {
  1749. this.kb = localStorage.getItem('__c2save_' + i) || '', fa('Loaded state from WebStorage (' + this.kb.length + ' bytes)');
  1750. } catch (t) {
  1751. this.kb = null;
  1752. }
  1753. this.si = !1, s.kb || (s.kb = null, s.trigger(T.prototype.c.Vi, null));
  1754. }
  1755. this.Bn = this.gk = '';
  1756. }
  1757. null !== this.kb && (this.Gb(), this.rx(this.kb) ? (this.Zd = this.kb, this.trigger(T.prototype.c.ut, null), this.Zd = '') : s.trigger(T.prototype.c.Vi, null), this.kb = null);
  1758. }, s.prototype.qy = function () {
  1759. var t, i, s, e, h, n, o, r = {
  1760. c2save: !0,
  1761. version: 1,
  1762. rt: {
  1763. time: this.Bb.Z,
  1764. walltime: this.oe.Z,
  1765. timescale: this.Jf,
  1766. tickcount: this.Rg,
  1767. execcount: this.kf,
  1768. next_uid: this.bi,
  1769. running_layout: this.ba.Y,
  1770. start_time_offset: Date.now() - this.Sk
  1771. },
  1772. types: {},
  1773. layouts: {},
  1774. events: {
  1775. groups: {},
  1776. cnds: {},
  1777. acts: {},
  1778. vars: {}
  1779. }
  1780. };
  1781. for (t = 0, i = this.p.length; t < i; t++)
  1782. if (!(h = this.p[t]).B && !this.Pn(h)) {
  1783. for (n = { instances: [] }, Xa(h.ja) && (n.ex = a(h.ja)), s = 0, e = h.d.length; s < e; s++)
  1784. n.instances.push(this.An(h.d[s]));
  1785. r.types[h.Y.toString()] = n;
  1786. }
  1787. for (t = 0, i = this.hd.length; t < i; t++)
  1788. s = this.hd[t], r.layouts[s.Y.toString()] = s.Fb();
  1789. for (e = r.events.groups, t = 0, i = this.Qf.length; t < i; t++)
  1790. e[(s = this.Qf[t]).Y.toString()] = this.wh[s.vh].dg;
  1791. for (o in (i = r.events.cnds, this.ye))
  1792. this.ye.hasOwnProperty(o) && (t = this.ye[o], Xa(t.ja) && (i[o] = { ex: a(t.ja) }));
  1793. for (o in (i = r.events.acts, this.se))
  1794. this.se.hasOwnProperty(o) && (t = this.se[o], Xa(t.ja) && (i[o] = { ex: a(t.ja) }));
  1795. for (o in (i = r.events.vars, this.Vg))
  1796. this.Vg.hasOwnProperty(o) && ((t = this.Vg[o]).ak || t.parent && !t.Lh || (i[o] = t.data));
  1797. return r.system = this.Hd.Fb(), JSON.stringify(r);
  1798. }, s.prototype.kr = function () {
  1799. var t, i, s, e, h, n;
  1800. for (this.be = {}, t = 0, i = this.p.length; t < i; t++)
  1801. if (!(s = this.p[t]).B)
  1802. for (e = 0, h = s.d.length; e < h; e++)
  1803. n = s.d[e], this.be[n.uid.toString()] = n;
  1804. }, s.prototype.rx = function (t) {
  1805. var i;
  1806. try {
  1807. i = JSON.parse(t);
  1808. } catch (t) {
  1809. return !1;
  1810. }
  1811. if (!i.c2save || 1 < i.version)
  1812. return !1;
  1813. this.Fh = !0, t = i.rt, this.Bb.reset(), this.Bb.Z = t.time, this.oe.reset(), this.oe.Z = t.walltime || 0, this.Jf = t.timescale, this.Rg = t.tickcount, this.kf = t.execcount, this.Sk = Date.now() - t.start_time_offset;
  1814. var s, e, h, n, o, r, a, c = t.running_layout;
  1815. if (c !== this.ba.Y) {
  1816. if (!(c = this.xp(c)))
  1817. return;
  1818. this.ep(c);
  1819. }
  1820. for (e in r = i.types)
  1821. if (r.hasOwnProperty(e) && (n = this.Vj(parseInt(e, 10))) && !n.B && !this.Pn(n)) {
  1822. for (r[e].ex ? n.ja = r[e].ex : Ya(n.ja), o = n.d, h = r[e].instances, c = 0, s = qa(o.length, h.length); c < s; c++)
  1823. this.hk(o[c], h[c]);
  1824. for (c = h.length, s = o.length; c < s; c++)
  1825. this.Xe(o[c]);
  1826. for (c = o.length, s = h.length; c < s; c++)
  1827. o = null, n.X.Le && !(o = this.ba.Tj(h[c].w.l)) || (o = this.Ae(n.Jc, o, !1, 0, 0, !0), this.hk(o, h[c]));
  1828. n.Ng = !0;
  1829. }
  1830. for (e in (this.Gb(), this.kr(), s = i.layouts))
  1831. s.hasOwnProperty(e) && (c = this.xp(parseInt(e, 10))) && c.Qb(s[e]);
  1832. for (e in s = i.events.groups)
  1833. s.hasOwnProperty(e) && (c = this.rw(parseInt(e, 10))) && this.wh[c.vh] && this.wh[c.vh].ty(s[e]);
  1834. for (e in (c = i.events.cnds, this.ye))
  1835. this.ye.hasOwnProperty(e) && (c.hasOwnProperty(e) ? this.ye[e].ja = c[e].ex : this.ye[e].ja = {});
  1836. for (e in (c = i.events.acts, this.se))
  1837. this.se.hasOwnProperty(e) && (c.hasOwnProperty(e) ? this.se[e].ja = c[e].ex : this.se[e].ja = {});
  1838. for (e in c = i.events.vars)
  1839. c.hasOwnProperty(e) && this.Vg.hasOwnProperty(e) && (this.Vg[e].data = c[e]);
  1840. for (this.bi = t.next_uid, this.Fh = !1, c = 0, s = this.Jj.length; c < s; ++c)
  1841. o = this.Jj[c], this.trigger(Object.getPrototypeOf(o.type.X).c.Jd, o);
  1842. for (A(this.Jj), this.Hd.Qb(i.system), c = 0, s = this.p.length; c < s; c++)
  1843. if (!(n = this.p[c]).B && !this.Pn(n))
  1844. for (i = 0, e = n.d.length; i < e; i++) {
  1845. if (o = n.d[i], n.Ab)
  1846. for (r = o.uh(), A(o.siblings), t = 0, h = n.hc.length; t < h; t++)
  1847. n !== (a = n.hc[t]) && o.siblings.push(a.d[r]);
  1848. if (o.Kd && o.Kd(), o.L)
  1849. for (t = 0, h = o.L.length; t < h; t++)
  1850. (r = o.L[t]).Kd && r.Kd();
  1851. }
  1852. return this.fa = !0;
  1853. }, s.prototype.An = function (t, i) {
  1854. var s, e, h, n, o;
  1855. h = (n = t.type).X;
  1856. var r = {};
  1857. if (i ? r.c2 = !0 : r.uid = t.uid, Xa(t.ja) && (r.ex = a(t.ja)), t.hb && t.hb.length)
  1858. for (r.ivs = {}, s = 0, e = t.hb.length; s < e; s++)
  1859. r.ivs[t.type.Am[s].toString()] = t.hb[s];
  1860. if (h.Le) {
  1861. if (h = {
  1862. x: t.x,
  1863. y: t.y,
  1864. w: t.width,
  1865. h: t.height,
  1866. l: t.j.Y,
  1867. zi: t.wd()
  1868. }, 0 !== t.m && (h.a = t.m), 1 !== t.opacity && (h.o = t.opacity), 0.5 !== t.Nb && (h.hX = t.Nb), 0.5 !== t.Ob && (h.hY = t.Ob), 0 !== t.Hb && (h.bm = t.Hb), t.visible || (h.v = t.visible), t.$e || (h.ce = t.$e), -1 !== t.ai && (h.mts = t.ai), n.M.length)
  1869. for (h.fx = [], s = 0, e = n.M.length; s < e; s++)
  1870. o = n.M[s], h.fx.push({
  1871. name: o.name,
  1872. active: t.re[o.index],
  1873. params: t.Ja[o.index]
  1874. });
  1875. r.w = h;
  1876. }
  1877. if (t.L && t.L.length)
  1878. for (r.behs = {}, s = 0, e = t.L.length; s < e; s++)
  1879. (n = t.L[s]).Fb && (r.behs[n.type.Y.toString()] = n.Fb());
  1880. return t.Fb && (r.data = t.Fb()), r;
  1881. }, s.prototype.uw = function (t, i) {
  1882. var s, e;
  1883. for (s = 0, e = t.Am.length; s < e; s++)
  1884. if (t.Am[s] === i)
  1885. return s;
  1886. return -1;
  1887. }, s.prototype.mw = function (t, i) {
  1888. var s, e;
  1889. for (s = 0, e = t.L.length; s < e; s++)
  1890. if (t.L[s].type.Y === i)
  1891. return s;
  1892. return -1;
  1893. }, s.prototype.hk = function (t, i, s) {
  1894. var e, h, n, o, r, a = (r = t.type).X;
  1895. if (s) {
  1896. if (!i.c2)
  1897. return;
  1898. } else
  1899. t.uid = i.uid;
  1900. if (i.ex ? t.ja = i.ex : Ya(t.ja), h = i.ivs)
  1901. for (e in h)
  1902. h.hasOwnProperty(e) && ((n = this.uw(r, parseInt(e, 10))) < 0 || n >= t.hb.length || (null === (o = h[e]) && (o = NaN), t.hb[n] = o));
  1903. if (a.Le) {
  1904. if (n = i.w, t.j.Y !== n.l && (h = t.j, t.j = this.ba.Tj(n.l), t.j ? (h.Gg(t, !0), t.j.fh(t, !0), t.za(), t.j.mi(0)) : (t.j = h, s || this.Xe(t))), t.x = n.x, t.y = n.y, t.width = n.w, t.height = n.h, t.pd = n.zi, t.m = n.hasOwnProperty('a') ? n.a : 0, t.opacity = n.hasOwnProperty('o') ? n.o : 1, t.Nb = n.hasOwnProperty('hX') ? n.hX : 0.5, t.Ob = n.hasOwnProperty('hY') ? n.hY : 0.5, t.visible = !n.hasOwnProperty('v') || n.v, t.$e = !n.hasOwnProperty('ce') || n.ce, t.ai = n.hasOwnProperty('mts') ? n.mts : -1, t.Hb = n.hasOwnProperty('bm') ? n.bm : 0, t.jh = jb(t.Hb), this.u && kb(t, t.Hb, this.u), t.za(), n.hasOwnProperty('fx'))
  1905. for (s = 0, h = n.fx.length; s < h; s++)
  1906. (o = r.lm(n.fx[s].name)) < 0 || (t.re[o] = n.fx[s].active, t.Ja[o] = n.fx[s].params);
  1907. t.nd();
  1908. }
  1909. if (r = i.behs)
  1910. for (e in r)
  1911. r.hasOwnProperty(e) && ((s = this.mw(t, parseInt(e, 10))) < 0 || t.L[s].Qb(r[e]));
  1912. i.data && t.Qb(i.data);
  1913. }, s.prototype.jp = function (t, i, s) {
  1914. window.resolveLocalFileSystemURL(cordova.file.applicationDirectory + 'www/' + t, function (t) {
  1915. t.file(i, s);
  1916. }, s);
  1917. }, s.prototype.lp = function (t, s, e) {
  1918. this.jp(t, function (t) {
  1919. var i = new FileReader();
  1920. i.onload = function (t) {
  1921. s(t.target.result);
  1922. }, i.onerror = e, i.readAsText(t);
  1923. }, e);
  1924. };
  1925. var L = [], D = 0;
  1926. s.prototype.Vm = function () {
  1927. if (L.length && !(8 <= D)) {
  1928. D++;
  1929. var t = L.shift();
  1930. this.$u(t.filename, t.Dy, t.Bv);
  1931. }
  1932. }, s.prototype.kp = function (t, i, s) {
  1933. var e = this;
  1934. L.push({
  1935. filename: t,
  1936. Dy: function (t) {
  1937. D--, e.Vm(), i(t);
  1938. },
  1939. Bv: function (t) {
  1940. D--, e.Vm(), s(t);
  1941. }
  1942. }), this.Vm();
  1943. }, s.prototype.$u = function (t, s, i) {
  1944. this.jp(t, function (t) {
  1945. var i = new FileReader();
  1946. i.onload = function (t) {
  1947. s(t.target.result);
  1948. }, i.readAsArrayBuffer(t);
  1949. }, i);
  1950. }, s.prototype.fw = function (t, i, s) {
  1951. var e = '', h = (n = t.toLowerCase()).substr(n.length - 4), n = n.substr(n.length - 5);
  1952. '.mp4' === h ? e = 'video/mp4' : '.webm' === n ? e = 'video/webm' : '.m4a' === h ? e = 'audio/mp4' : '.mp3' === h && (e = 'audio/mpeg'), this.kp(t, function (t) {
  1953. t = URL.createObjectURL(new Blob([t], { type: e })), i(t);
  1954. }, s);
  1955. }, s.prototype.Lp = function (t) {
  1956. return /^(?:[a-z]+:)?\/\//.test(t) || 'data:' === t.substr(0, 5) || 'blob:' === t.substr(0, 5);
  1957. }, s.prototype.wr = function (i, t) {
  1958. this.Jh && !this.Lp(t) ? this.fw(t, function (t) {
  1959. i.src = t;
  1960. }, function (t) {
  1961. alert('Failed to load image: ' + t);
  1962. }) : i.src = t;
  1963. }, s.prototype.Nk = function (t, i) {
  1964. void 0 !== t.imageSmoothingEnabled ? t.imageSmoothingEnabled = i : (t.webkitImageSmoothingEnabled = i, t.mozImageSmoothingEnabled = i, t.msImageSmoothingEnabled = i);
  1965. }, Yb = function (t) {
  1966. return new s(document.getElementById(t));
  1967. }, Zb = function (t, i) {
  1968. return new s({
  1969. dc: !0,
  1970. width: t,
  1971. height: i
  1972. });
  1973. }, window.cr_createRuntime = Yb, window.cr_createDCRuntime = Zb, window.createCocoonJSRuntime = function () {
  1974. window.c2cocoonjs = !0;
  1975. var t = document.createElement('screencanvas') || document.createElement('canvas');
  1976. return t.El = !0, document.body.appendChild(t), t = new s(t), window.c2runtime = t, window.addEventListener('orientationchange', function () {
  1977. window.c2runtime.setSize(window.innerWidth, window.innerHeight);
  1978. }), window.c2runtime.setSize(window.innerWidth, window.innerHeight), t;
  1979. }, window.createEjectaRuntime = function () {
  1980. var t = new s(document.getElementById('canvas'));
  1981. return window.c2runtime = t, window.c2runtime.setSize(window.innerWidth, window.innerHeight), t;
  1982. };
  1983. }(), window.cr_getC2Runtime = function () {
  1984. var t = document.getElementById('c2canvas');
  1985. return t ? t.c2runtime : window.c2runtime ? window.c2runtime : null;
  1986. }, window.cr_getSnapshot = function (t, i) {
  1987. var s = window.cr_getC2Runtime();
  1988. s && s.Yu(t, i);
  1989. }, window.cr_sizeCanvas = function (t, i) {
  1990. if (0 !== t && 0 !== i) {
  1991. var s = window.cr_getC2Runtime();
  1992. s && s.setSize(t, i);
  1993. }
  1994. }, window.cr_setSuspended = function (t) {
  1995. var i = window.cr_getC2Runtime();
  1996. i && i.setSuspended(t);
  1997. }, function () {
  1998. function t(t, i) {
  1999. this.b = t, this.hf = null, this.scrollX = this.b.Wa / 2, this.scrollY = this.b.Va / 2, this.scale = 1, this.m = 0, this.$f = !0, this.name = i[0], this.Nx = i[1], this.Mx = i[2], this.width = i[1], this.height = i[2], this.Ur = i[3], this.Dr = i[4], this.Y = i[5];
  2000. var s, e, h = i[6];
  2001. for (this.P = [], this.Bh = [], s = 0, e = h.length; s < e; s++)
  2002. (n = new $b(this, h[s])).Jq = s, this.P.push(n);
  2003. for (h = i[7], this.Ie = [], s = 0, e = h.length; s < e; s++) {
  2004. var n = h[s], o = this.b.p[n[1]];
  2005. o.Jc || (o.Jc = n), this.Ie.push(n), -1 === this.Bh.indexOf(o) && this.Bh.push(o);
  2006. }
  2007. for (this.M = [], this.ea = [], this.ie = !0, this.Ja = [], s = 0, e = i[8].length; s < e; s++)
  2008. this.M.push({
  2009. id: i[8][s][0],
  2010. name: i[8][s][1],
  2011. Za: -1,
  2012. Rc: !1,
  2013. nc: !0,
  2014. index: s
  2015. }), this.Ja.push(i[8][s][2].slice(0));
  2016. this.nd(), this.de = new wa(0, 0, 1, 1), this.sn = new wa(0, 0, 1, 1), this.Pe = {};
  2017. }
  2018. function a(t, i) {
  2019. return t.pd - i.pd;
  2020. }
  2021. function i(t, i) {
  2022. this.rb = t, this.b = t.b, this.d = [], this.scale = 1, this.m = 0, this.Sd = !1, this.le = new wa(0, 0, 0, 0), this.Or = new xa(), this.ua = this.na = this.wa = this.ma = 0, this.Lf = !1, this.pe = -1, this.Ol = 0, this.name = i[0], this.index = i[1], this.Y = i[2], this.visible = i[3], this.Zc = i[4], this.Dc = i[5], this.Pc = i[6], this.Qc = i[7], this.opacity = i[8], this.Lj = i[9], this.Ec = i[10], this.qd = i[11], this.Hb = i[12], this.xv = i[13], this.jh = 'source-over', this.Jb = this.Pb = 0, this.Eb = null, this.$d = y(), this.ld = !0, this.ug = new wa(0, 0, -1, -1), this.wb = new wa(0, 0, -1, -1), this.Ec && (this.Eb = new ib(this.b.Wa, this.b.Va)), this.Dd = !1;
  2023. var s, e, h = i[14];
  2024. for (this.Ir = [], this.uc = [], this.mh = [], s = 0, e = h.length; s < e; s++) {
  2025. var n = h[s], o = this.b.p[n[1]];
  2026. o.Jc || (o.Jc = n, o.Wu = this.index), this.uc.push(n), -1 === this.rb.Bh.indexOf(o) && this.rb.Bh.push(o);
  2027. }
  2028. for (Da(this.Ir, this.uc), this.M = [], this.ea = [], this.ie = !0, this.Ja = [], s = 0, e = i[15].length; s < e; s++)
  2029. this.M.push({
  2030. id: i[15][s][0],
  2031. name: i[15][s][1],
  2032. Za: -1,
  2033. Rc: !1,
  2034. nc: !0,
  2035. index: s
  2036. }), this.Ja.push(i[15][s][2].slice(0));
  2037. this.nd(), this.de = new wa(0, 0, 1, 1), this.sn = new wa(0, 0, 1, 1);
  2038. }
  2039. function y() {
  2040. return s.length ? s.pop() : [];
  2041. }
  2042. function v(t) {
  2043. A(t), s.push(t);
  2044. }
  2045. t.prototype.oy = function (t) {
  2046. var i = t.type.Y.toString();
  2047. this.Pe.hasOwnProperty(i) || (this.Pe[i] = []), this.Pe[i].push(this.b.An(t));
  2048. }, t.prototype.Cp = function () {
  2049. var t = this.P[0];
  2050. return !t.Dc && 1 === t.opacity && !t.Lj && t.visible;
  2051. }, t.prototype.nd = function () {
  2052. var t, i, s;
  2053. for (A(this.ea), this.ie = !0, t = 0, i = this.M.length; t < i; t++)
  2054. (s = this.M[t]).nc && (this.ea.push(s), s.Rc || (this.ie = !1));
  2055. }, t.prototype.km = function (t) {
  2056. var i, s, e;
  2057. for (i = 0, s = this.M.length; i < s; i++)
  2058. if ((e = this.M[i]).name === t)
  2059. return e;
  2060. return null;
  2061. };
  2062. var c = [], p = !0;
  2063. t.prototype.Gn = function () {
  2064. var t, i, s, e, h, n, o;
  2065. for (this.Dr && (this.hf = this.b.cm[this.Dr], this.hf.Rn()), (this.b.ba = this).width = this.Nx, this.height = this.Mx, this.scrollX = this.b.Wa / 2, this.scrollY = this.b.Va / 2, t = 0, s = this.b.p.length; t < s; t++)
  2066. if (!(i = this.b.p[t]).B)
  2067. for (h = i.d, i = 0, e = h.length; i < e; i++)
  2068. if ((n = h[i]).j) {
  2069. var r = n.j.Jq;
  2070. r >= this.P.length && (r = this.P.length - 1), n.j = this.P[r], -1 === n.j.d.indexOf(n) && n.j.d.push(n), n.j.Lf = !0;
  2071. }
  2072. if (!p)
  2073. for (t = 0, s = this.P.length; t < s; ++t)
  2074. this.P[t].d.sort(a);
  2075. for (A(c), this.Ku(), t = 0, s = this.P.length; t < s; t++)
  2076. (n = this.P[t]).Su(), n.dl();
  2077. if (h = !1, !this.$f) {
  2078. for (o in this.Pe)
  2079. if (this.Pe.hasOwnProperty(o) && (i = this.b.Vj(parseInt(o, 10))) && !i.B && this.b.Qn(i)) {
  2080. for (t = 0, s = (e = this.Pe[o]).length; t < s; t++)
  2081. n = null, i.X.Le && !(n = this.Tj(e[t].w.l)) || (n = this.b.Ae(i.Jc, n, !1, 0, 0, !0), this.b.hk(n, e[t]), h = !0, c.push(n));
  2082. A(e);
  2083. }
  2084. for (t = 0, s = this.P.length; t < s; t++)
  2085. this.P[t].d.sort(a), this.P[t].Lf = !0;
  2086. }
  2087. for (h && (this.b.Gb(), this.b.kr()), t = 0; t < c.length; t++)
  2088. if ((n = c[t]).type.Ab)
  2089. for (s = n.uh(), i = 0, e = n.type.hc.length; i < e; i++)
  2090. o = n.type.hc[i], n.type !== o && (o.d.length > s ? n.siblings.push(o.d[s]) : o.Jc && (h = this.b.Ae(o.Jc, n.j, !0, n.x, n.y, !0), this.b.Gb(), o.cl(), n.siblings.push(h), c.push(h)));
  2091. for (t = 0, s = this.Ie.length; t < s; t++)
  2092. n = this.Ie[t], (i = this.b.p[n[1]]).Ab || this.b.Ae(this.Ie[t], null, !0);
  2093. if (this.b.ih = null, this.b.Gb(), this.b.Ba && !this.b.pa)
  2094. for (t = 0, s = this.b.p.length; t < s; t++)
  2095. !(o = this.b.p[t]).B && o.d.length && o.Ck && o.Ck(this.b.Ba);
  2096. if (this.b.Fh)
  2097. Da(this.b.Jj, c);
  2098. else
  2099. for (t = 0, s = c.length; t < s; t++)
  2100. n = c[t], this.b.trigger(Object.getPrototypeOf(n.type.X).c.Jd, n);
  2101. A(c), this.b.Fh || this.b.trigger(T.prototype.c.to, null), this.$f = !1;
  2102. }, t.prototype.Ru = function () {
  2103. var t, i, s, e, h;
  2104. for (i = t = 0, s = this.Ie.length; t < s; t++)
  2105. e = this.Ie[t], (h = this.b.p[e[1]]).global ? h.Ab || this.b.Ae(e, null, !0) : (this.Ie[i] = e, i++);
  2106. Ba(this.Ie, i);
  2107. }, t.prototype.Cy = function () {
  2108. var t, i, s, e, h, n;
  2109. if (this.b.Fh || this.b.trigger(T.prototype.c.so, null), this.b.Cm = !0, A(this.b.Hd.fc), !this.$f)
  2110. for (t = 0, i = this.P.length; t < i; t++)
  2111. for (this.P[t].Tn(), s = 0, e = (h = this.P[t].d).length; s < e; s++)
  2112. (n = h[s]).type.global || this.b.Qn(n.type) && this.oy(n);
  2113. for (t = 0, i = this.P.length; t < i; t++) {
  2114. for (s = 0, e = (h = this.P[t].d).length; s < e; s++)
  2115. (n = h[s]).type.global || this.b.Xe(n);
  2116. this.b.Gb(), A(h), this.P[t].Lf = !0;
  2117. }
  2118. for (t = 0, i = this.b.p.length; t < i; t++)
  2119. if (!((h = this.b.p[t]).global || h.X.Le || h.X.Rk || h.B)) {
  2120. for (s = 0, e = h.d.length; s < e; s++)
  2121. this.b.Xe(h.d[s]);
  2122. this.b.Gb();
  2123. }
  2124. p = !1, this.b.Cm = !1;
  2125. }, new wa(0, 0, 0, 0), t.prototype.ed = function (t) {
  2126. var i, s, e, h = t, n = !1, o = !this.b.sc;
  2127. for (o && (this.b.fk || (this.b.fk = document.createElement('canvas'), (i = this.b.fk).width = this.b.G, i.height = this.b.F, this.b.gq = i.getContext('2d'), n = !0), i = this.b.fk, h = this.b.gq, i.width !== this.b.G && (i.width = this.b.G, n = !0), i.height !== this.b.F && (i.height = this.b.F, n = !0), n && this.b.Nk(h, this.b.qa)), h.globalAlpha = 1, h.globalCompositeOperation = 'source-over', this.b.Zo && !this.Cp() && h.clearRect(0, 0, this.b.G, this.b.F), n = 0, s = this.P.length; n < s; n++)
  2128. (e = this.P[n]).visible && 0 < e.opacity && 11 !== e.Hb && (e.d.length || !e.Dc) ? e.ed(h) : e.dl();
  2129. o && t.drawImage(i, 0, 0, this.b.width, this.b.height);
  2130. }, t.prototype.Ce = function (t) {
  2131. var i, s;
  2132. for (t.ur(!0), this.b.Ua || (this.b.Ua = t.Ic(this.b.G, this.b.F, this.b.qa)), this.b.Ua.bd === this.b.G && this.b.Ua.ad === this.b.F || (t.deleteTexture(this.b.Ua), this.b.Ua = t.Ic(this.b.G, this.b.F, this.b.qa)), t.Tc(this.b.Ua), this.b.sc || t.ge(this.b.G, this.b.F), i = this.P.length - 1; 0 <= i; --i)
  2133. (s = this.P[i]).visible && 1 === s.opacity && s.ie && 0 === s.Hb && (s.d.length || !s.Dc) ? s.Ce(t) : s.dl();
  2134. t.ur(!1);
  2135. }, t.prototype.Kb = function (t) {
  2136. var i, s, e, h = 0 < this.ea.length || this.b.Tg || !this.b.sc || this.b.ya;
  2137. for (h ? (this.b.Ua || (this.b.Ua = t.Ic(this.b.G, this.b.F, this.b.qa)), this.b.Ua.bd === this.b.G && this.b.Ua.ad === this.b.F || (t.deleteTexture(this.b.Ua), this.b.Ua = t.Ic(this.b.G, this.b.F, this.b.qa)), t.Tc(this.b.Ua), this.b.sc || t.ge(this.b.G, this.b.F)) : this.b.Ua && (t.Tc(null), t.deleteTexture(this.b.Ua), this.b.Ua = null), this.b.Zo && !this.Cp() && t.clear(0, 0, 0, 0), i = 0, s = this.P.length; i < s; i++)
  2138. (e = this.P[i]).visible && 0 < e.opacity && (e.d.length || !e.Dc) ? e.Kb(t) : e.dl();
  2139. h && (0 === this.ea.length || 1 === this.ea.length && this.b.sc ? (1 === this.ea.length ? (h = this.ea[0].index, t.ec(this.ea[0].Za), t.Jg(null, 1 / this.b.G, 1 / this.b.F, 0, 0, 1, 1, this.scale, this.m, 0, 0, this.b.G / 2, this.b.F / 2, this.b.Bb.Z, this.Ja[h]), t.Dk(this.ea[0].Za) && (this.b.fa = !0)) : t.ec(0), this.b.sc || t.ge(this.b.width, this.b.height), t.Tc(null), t.tr(!1), t.Se(1), t.Rb(this.b.Ua), t.rr(), t.Ed(), t.od(), h = this.b.width / 2, i = this.b.height / 2, t.ji(-h, i, h, i, h, -i, -h, -i), t.Rb(null), t.tr(!0)) : this.tn(t, null, null, null));
  2140. }, t.prototype.sh = function () {
  2141. return 0 < this.ea.length || this.b.Tg || !this.b.sc || this.b.ya ? this.b.Ua : null;
  2142. }, t.prototype.yp = function () {
  2143. var t, i, s, e = this.P[0].Lc();
  2144. for (t = 1, i = this.P.length; t < i; t++)
  2145. (0 !== (s = this.P[t]).Pc || 0 !== s.Qc) && s.Lc() < e && (e = s.Lc());
  2146. return e;
  2147. }, t.prototype.Kk = function (t) {
  2148. if (!this.Ur) {
  2149. var i = 1 / this.yp() * this.b.G / 2;
  2150. t > this.width - i && (t = this.width - i), t < i && (t = i);
  2151. }
  2152. this.scrollX !== t && (this.scrollX = t, this.b.fa = !0);
  2153. }, t.prototype.Lk = function (t) {
  2154. if (!this.Ur) {
  2155. var i = 1 / this.yp() * this.b.F / 2;
  2156. t > this.height - i && (t = this.height - i), t < i && (t = i);
  2157. }
  2158. this.scrollY !== t && (this.scrollY = t, this.b.fa = !0);
  2159. }, t.prototype.Ku = function () {
  2160. this.Kk(this.scrollX), this.Lk(this.scrollY);
  2161. }, t.prototype.tn = function (t, i, s, e) {
  2162. var h = s ? s.ea : i ? i.ea : this.ea, n = 1, o = 0, r = 0, a = 0, c = this.b.G, p = this.b.F;
  2163. s ? (n = s.j.Lc(), o = s.j.gb(), r = s.j.ma, a = s.j.na, c = s.j.wa, p = s.j.ua) : i && (n = i.Lc(), o = i.gb(), r = i.ma, a = i.na, c = i.wa, p = i.ua);
  2164. var u, f, l, b, d, g, y = this.b.hm, v = 0, m = 1, w = this.b.G, k = this.b.F, x = w / 2, T = k / 2, E = i ? i.de : this.de, A = i ? i.sn : this.sn, j = 0, R = 0, S = 0, M = 0, P = w, q = w, O = k, L = k, D = l = 0;
  2165. if (b = s ? s.j.gb() : 0, s) {
  2166. for (u = 0, f = h.length; u < f; u++)
  2167. l += t.yw(h[u].Za), D += t.zw(h[u].Za);
  2168. M = s.Qa, j = i.ib(M.left, M.top, !0, !0), S = i.ib(M.left, M.top, !1, !0), P = i.ib(M.right, M.bottom, !0, !0), O = i.ib(M.right, M.bottom, !1, !0), 0 !== b && (u = i.ib(M.right, M.top, !0, !0), f = i.ib(M.right, M.top, !1, !0), R = i.ib(M.left, M.bottom, !0, !0), M = i.ib(M.left, M.bottom, !1, !0), b = Math.min(j, P, u, R), P = Math.max(j, P, u, R), j = b, b = Math.min(S, O, f, M), O = Math.max(S, O, f, M), S = b), j -= l, S -= D, P += l, O += D, A.left = j / w, A.top = 1 - S / k, A.right = P / w, A.bottom = 1 - O / k, R = j = ta(j), M = S = ta(S), q = P = ua(P), L = O = ua(O), j < 0 && (j = 0), S < 0 && (S = 0), w < P && (P = w), k < O && (O = k), (R -= l) < 0 && (R = 0), (M -= D) < 0 && (M = 0), w < (q += l) && (q = w), k < (L += D) && (L = k), E.left = j / w, E.top = 1 - S / k, E.right = P / w, E.bottom = 1 - O / k;
  2169. } else
  2170. E.left = A.left = 0, E.top = A.top = 0, E.right = A.right = 1, E.bottom = A.bottom = 1;
  2171. D = s && (t.hi(h[0].Za) || 0 !== l || 0 !== D || 1 !== s.opacity || s.type.X.Fq) || i && !s && 1 !== i.opacity, t.rr(), D && (y[v] || (y[v] = t.Ic(w, k, this.b.qa)), y[v].bd === w && y[v].ad === k || (t.deleteTexture(y[v]), y[v] = t.Ic(w, k, this.b.qa)), t.ec(0), t.Tc(y[v]), g = L - M, t.clearRect(R, k - M - g, q - R, g), s ? s.Kb(t) : (t.Rb(this.b.jb), t.Se(i.opacity), t.Ed(), t.translate(-x, -T), t.od(), t.Sc(j, O, P, O, P, S, j, S, E)), A.left = A.top = 0, A.right = A.bottom = 1, s && (b = E.top, E.top = E.bottom, E.bottom = b), v = 1, m = 0), t.Se(1), l = h.length - 1;
  2172. var F = t.nn(h[l].Za) || !i && !s && !this.b.sc;
  2173. for (u = b = 0, f = h.length; u < f; u++)
  2174. y[v] || (y[v] = t.Ic(w, k, this.b.qa)), y[v].bd === w && y[v].ad === k || (t.deleteTexture(y[v]), y[v] = t.Ic(w, k, this.b.qa)), t.ec(h[u].Za), b = h[u].index, t.Dk(h[u].Za) && (this.b.fa = !0), 0 != u || D ? (t.Jg(e, 1 / w, 1 / k, A.left, A.top, A.right, A.bottom, n, o, r, a, (r + c) / 2, (a + p) / 2, this.b.Bb.Z, s ? s.Ja[b] : i ? i.Ja[b] : this.Ja[b]), t.Rb(null), u !== l || F ? (t.Tc(y[v]), d = k - M - (g = L - M), t.clearRect(R, d, q - R, g)) : (s ? t.Re(s.Pb, s.Jb) : i && t.Re(i.Pb, i.Jb), t.Tc(e)), t.Rb(y[m]), t.Ed(), t.translate(-x, -T), t.od(), t.Sc(j, O, P, O, P, S, j, S, E), u !== l || F || t.Rb(null)) : (t.Tc(y[v]), d = k - M - (g = L - M), t.clearRect(R, d, q - R, g), s ? (d = s.Sa && s.Sa.q ? (m = 1 / (d = s.Sa.q).width, 1 / d.height) : (m = 1 / s.width, 1 / s.height), t.Jg(e, m, d, A.left, A.top, A.right, A.bottom, n, o, r, a, (r + c) / 2, (a + p) / 2, this.b.Bb.Z, s.Ja[b]), s.Kb(t)) : (t.Jg(e, 1 / w, 1 / k, 0, 0, 1, 1, n, o, r, a, (r + c) / 2, (a + p) / 2, this.b.Bb.Z, i ? i.Ja[b] : this.Ja[b]), t.Rb(i ? this.b.jb : this.b.Ua), t.Ed(), t.translate(-x, -T), t.od(), t.Sc(j, O, P, O, P, S, j, S, E)), A.left = A.top = 0, A.right = A.bottom = 1, s && !F && (b = O, O = S, S = b)), m = 0 == (v = 0 === v ? 1 : 0) ? 1 : 0;
  2175. F && (t.ec(0), s ? t.Re(s.Pb, s.Jb) : i ? t.Re(i.Pb, i.Jb) : this.b.sc || (t.ge(this.b.width, this.b.height), x = this.b.width / 2, T = this.b.height / 2, S = j = 0, P = this.b.width, O = this.b.height), t.Tc(e), t.Rb(y[m]), t.Ed(), t.translate(-x, -T), t.od(), s && 1 === h.length && !D ? t.Sc(j, S, P, S, P, O, j, O, E) : t.Sc(j, O, P, O, P, S, j, S, E), t.Rb(null));
  2176. }, t.prototype.Tj = function (t) {
  2177. var i, s;
  2178. for (i = 0, s = this.P.length; i < s; i++)
  2179. if (this.P[i].Y === t)
  2180. return this.P[i];
  2181. return null;
  2182. }, t.prototype.Fb = function () {
  2183. var t, i, s, e = {
  2184. sx: this.scrollX,
  2185. sy: this.scrollY,
  2186. s: this.scale,
  2187. a: this.m,
  2188. w: this.width,
  2189. h: this.height,
  2190. fv: this.$f,
  2191. persist: this.Pe,
  2192. fx: [],
  2193. layers: {}
  2194. };
  2195. for (t = 0, i = this.M.length; t < i; t++)
  2196. s = this.M[t], e.fx.push({
  2197. name: s.name,
  2198. active: s.nc,
  2199. params: this.Ja[s.index]
  2200. });
  2201. for (t = 0, i = this.P.length; t < i; t++)
  2202. s = this.P[t], e.layers[s.Y.toString()] = s.Fb();
  2203. return e;
  2204. }, t.prototype.Qb = function (t) {
  2205. var i, s, e, h;
  2206. this.scrollX = t.sx, this.scrollY = t.sy, this.scale = t.s, this.m = t.a, this.width = t.w, this.height = t.h, this.Pe = t.persist, void 0 !== t.fv && (this.$f = t.fv);
  2207. var n = t.fx;
  2208. for (i = 0, s = n.length; i < s; i++)
  2209. (e = this.km(n[i].name)) && (e.nc = n[i].active, this.Ja[e.index] = n[i].params);
  2210. for (h in (this.nd(), i = t.layers))
  2211. i.hasOwnProperty(h) && (t = this.Tj(parseInt(h, 10))) && t.Qb(i[h]);
  2212. }, Mb = t, i.prototype.nd = function () {
  2213. var t, i, s;
  2214. for (A(this.ea), this.ie = !0, t = 0, i = this.M.length; t < i; t++)
  2215. (s = this.M[t]).nc && (this.ea.push(s), s.Rc || (this.ie = !1));
  2216. }, i.prototype.km = function (t) {
  2217. var i, s, e;
  2218. for (i = 0, s = this.M.length; i < s; i++)
  2219. if ((e = this.M[i]).name === t)
  2220. return e;
  2221. return null;
  2222. }, i.prototype.Su = function () {
  2223. var t, i, s, e, h, n;
  2224. for (i = t = 0, s = this.uc.length; t < s; t++) {
  2225. if (e = this.uc[t], h = this.b.p[e[1]], n = this.b.Qn(h), h = !0, !n || this.rb.$f) {
  2226. if (!(e = this.b.Ae(e, this, !0)))
  2227. continue;
  2228. c.push(e), e.type.global && (h = !1, this.mh.push(e.uid));
  2229. }
  2230. h && (this.uc[i] = this.uc[t], i++);
  2231. }
  2232. this.uc.length = i, this.b.Gb(), !this.b.k && this.M.length && (this.Hb = this.xv), this.jh = jb(this.Hb), this.b.u && kb(this, this.Hb, this.b.u), this.ld = !0;
  2233. }, i.prototype.Gg = function (t, i) {
  2234. var s = Ha(this.d, t);
  2235. s < 0 || (i && this.Ec && t.ac && t.ac.right >= t.ac.left && (t.Aa(), this.Eb.update(t, t.ac, null), t.ac.set(0, 0, -1, -1)), s === this.d.length - 1 ? this.d.pop() : (za(this.d, s), this.mi(s)), this.ld = !0);
  2236. }, i.prototype.fh = function (t, i) {
  2237. t.pd = this.d.length, this.d.push(t), i && this.Ec && t.ac && t.za(), this.ld = !0;
  2238. }, i.prototype.Yx = function (t) {
  2239. this.d.unshift(t), this.mi(0);
  2240. }, i.prototype.zx = function (t, i, s) {
  2241. var e = t.wd();
  2242. i = i.wd(), za(this.d, e), e < i && i--, s && i++, i === this.d.length ? this.d.push(t) : this.d.splice(i, 0, t), this.mi(e < i ? e : i);
  2243. }, i.prototype.mi = function (t) {
  2244. (-1 === this.pe || t < this.pe) && (this.pe = t), this.ld = this.Lf = !0;
  2245. }, i.prototype.Tn = function () {
  2246. if (this.Lf) {
  2247. var t, i, s;
  2248. if (-1 === this.pe && (this.pe = 0), this.Ec)
  2249. for (t = this.pe, i = this.d.length; t < i; ++t)
  2250. (s = this.d[t]).pd = t, this.Eb.vx(s.ac);
  2251. else
  2252. for (t = this.pe, i = this.d.length; t < i; ++t)
  2253. this.d[t].pd = t;
  2254. this.Lf = !1, this.pe = -1;
  2255. }
  2256. }, i.prototype.Lc = function (t) {
  2257. return this.vw() * (this.b.sc || t ? this.b.gh : 1);
  2258. }, i.prototype.vw = function () {
  2259. return (this.scale * this.rb.scale - 1) * this.qd + 1;
  2260. }, i.prototype.gb = function () {
  2261. return this.Sd ? 0 : Ma(this.rb.m + this.m);
  2262. };
  2263. var s = [], m = [], w = [];
  2264. i.prototype.om = function () {
  2265. if (this.Tn(), this.Eb.Fk(this.ma, this.na, this.wa, this.ua, w), !w.length)
  2266. return y();
  2267. if (1 === w.length) {
  2268. var t = y();
  2269. return Da(t, w[0]), A(w), t;
  2270. }
  2271. for (var i = !0; 1 < w.length;) {
  2272. for (var s = void 0, e = void 0, h = void 0, n = void 0, o = (s = 0, (t = w).length); s < o - 1; s += 2) {
  2273. var r = e = t[s], a = h = t[s + 1], c = n = y(), p = 0, u = 0, f = 0, l = r.length, b = a.length, d = void 0, g = void 0;
  2274. for (c.length = l + b; p < l && u < b; ++f)
  2275. d = r[p], g = a[u], d.pd < g.pd ? (c[f] = d, ++p) : (c[f] = g, ++u);
  2276. for (; p < l; ++p, ++f)
  2277. c[f] = r[p];
  2278. for (; u < b; ++u, ++f)
  2279. c[f] = a[u];
  2280. i || (v(e), v(h)), m.push(n);
  2281. }
  2282. 1 == o % 2 && (i ? (e = y(), Da(e, t[o - 1]), m.push(e)) : m.push(t[o - 1])), Da(t, m), A(m), i = !1;
  2283. }
  2284. return t = w[0], A(w), t;
  2285. }, i.prototype.ed = function (t) {
  2286. this.Dd = this.Lj || 1 !== this.opacity || 0 !== this.Hb;
  2287. var i = this.b.canvas, s = t, e = !1;
  2288. this.Dd && (this.b.ek || (this.b.ek = document.createElement('canvas'), (i = this.b.ek).width = this.b.G, i.height = this.b.F, this.b.fq = i.getContext('2d'), e = !0), i = this.b.ek, s = this.b.fq, i.width !== this.b.G && (i.width = this.b.G, e = !0), i.height !== this.b.F && (i.height = this.b.F, e = !0), e && this.b.Nk(s, this.b.qa), this.Dc && s.clearRect(0, 0, this.b.G, this.b.F)), s.globalAlpha = 1, s.globalCompositeOperation = 'source-over', this.Dc || (s.fillStyle = 'rgb(' + this.Zc[0] + ',' + this.Zc[1] + ',' + this.Zc[2] + ')', s.fillRect(0, 0, this.b.G, this.b.F)), s.save(), this.Sd = !0, e = this.ub(0, 0, !0, !0);
  2289. var h = this.ub(0, 0, !1, !0);
  2290. this.Sd = !1, this.b.Ac && (e = Math.round(e), h = Math.round(h)), this.Hk(e, h, s);
  2291. var n = this.Lc();
  2292. s.scale(n, n), s.translate(-e, -h), this.Ec ? (this.wb.left = this.Eb.Ub(this.ma), this.wb.top = this.Eb.Vb(this.na), this.wb.right = this.Eb.Ub(this.wa), this.wb.bottom = this.Eb.Vb(this.ua), this.ld || !this.wb.oh(this.ug) ? (v(this.$d), e = this.om(), this.ld = !1, this.ug.Vf(this.wb)) : e = this.$d) : e = this.d;
  2293. var o, r = null;
  2294. for (h = 0, n = e.length; h < n; ++h)
  2295. (o = e[h]) !== r && (this.rv(o, s), r = o);
  2296. this.Ec && (this.$d = e), s.restore(), this.Dd && (t.globalCompositeOperation = this.jh, t.globalAlpha = this.opacity, t.drawImage(i, 0, 0));
  2297. }, i.prototype.rv = function (t, i) {
  2298. if (t.visible && 0 !== t.width && 0 !== t.height) {
  2299. t.Aa();
  2300. var s = t.Qa;
  2301. s.right < this.ma || s.bottom < this.na || s.left > this.wa || s.top > this.ua || (i.globalCompositeOperation = t.jh, t.ed(i));
  2302. }
  2303. }, i.prototype.dl = function () {
  2304. this.Sd = !0;
  2305. var t = this.ub(0, 0, !0, !0), i = this.ub(0, 0, !1, !0);
  2306. this.Sd = !1, this.b.Ac && (t = Math.round(t), i = Math.round(i)), this.Hk(t, i, null);
  2307. }, i.prototype.Hk = function (t, i, s) {
  2308. var e = this.Lc();
  2309. this.ma = t, this.na = i, this.wa = t + 1 / e * this.b.G, this.ua = i + 1 / e * this.b.F, this.ma > this.wa && (t = this.ma, this.ma = this.wa, this.wa = t), this.na > this.ua && (t = this.na, this.na = this.ua, this.ua = t), 0 !== (t = this.gb()) && (s && (s.translate(this.b.G / 2, this.b.F / 2), s.rotate(-t), s.translate(this.b.G / -2, this.b.F / -2)), this.le.set(this.ma, this.na, this.wa, this.ua), this.le.offset((this.ma + this.wa) / -2, (this.na + this.ua) / -2), this.Or.Br(this.le, t), this.Or.To(this.le), this.le.offset((this.ma + this.wa) / 2, (this.na + this.ua) / 2), this.ma = this.le.left, this.na = this.le.top, this.wa = this.le.right, this.ua = this.le.bottom);
  2310. }, i.prototype.Ce = function (t) {
  2311. (this.Dd = this.Lj) && (this.b.jb || (this.b.jb = t.Ic(this.b.G, this.b.F, this.b.qa)), this.b.jb.bd === this.b.G && this.b.jb.ad === this.b.F || (t.deleteTexture(this.b.jb), this.b.jb = t.Ic(this.b.G, this.b.F, this.b.qa)), t.Tc(this.b.jb)), this.Sd = !0;
  2312. var i = this.ub(0, 0, !0, !0), s = this.ub(0, 0, !1, !0);
  2313. this.Sd = !1, this.b.Ac && (i = Math.round(i), s = Math.round(s)), this.Hk(i, s, null), i = this.Lc(), t.Ed(), t.scale(i, i), t.xn(-this.gb()), t.translate((this.ma + this.wa) / -2, (this.na + this.ua) / -2), t.od(), this.Ec ? (this.wb.left = this.Eb.Ub(this.ma), this.wb.top = this.Eb.Vb(this.na), this.wb.right = this.Eb.Ub(this.wa), this.wb.bottom = this.Eb.Vb(this.ua), this.ld || !this.wb.oh(this.ug) ? (v(this.$d), i = this.om(), this.ld = !1, this.ug.Vf(this.wb)) : i = this.$d) : i = this.d;
  2314. var e, h = null;
  2315. for (s = i.length - 1; 0 <= s; --s)
  2316. (e = i[s]) !== h && (this.tv(i[s], t), h = e);
  2317. this.Ec && (this.$d = i), this.Dc || (this.Ol = this.b.ef++, t.Ok(this.Ol), t.sr(1, 1, 1), t.rp(), t.hy());
  2318. }, i.prototype.Kb = function (t) {
  2319. var i = 0, s = 0;
  2320. (this.Dd = this.Lj || 1 !== this.opacity || 0 < this.ea.length || 0 !== this.Hb) && (this.b.jb || (this.b.jb = t.Ic(this.b.G, this.b.F, this.b.qa)), this.b.jb.bd === this.b.G && this.b.jb.ad === this.b.F || (t.deleteTexture(this.b.jb), this.b.jb = t.Ic(this.b.G, this.b.F, this.b.qa)), t.Tc(this.b.jb), this.Dc && t.clear(0, 0, 0, 0)), this.Dc || (this.b.ya ? (t.Ok(this.Ol), t.sr(this.Zc[0] / 255, this.Zc[1] / 255, this.Zc[2] / 255), t.rp(), t.yy()) : t.clear(this.Zc[0] / 255, this.Zc[1] / 255, this.Zc[2] / 255, 1)), this.Sd = !0;
  2321. var e = this.ub(0, 0, !0, !0);
  2322. i = this.ub(0, 0, !1, !0), this.Sd = !1, this.b.Ac && (e = Math.round(e), i = Math.round(i)), this.Hk(e, i, null), e = this.Lc(), t.Ed(), t.scale(e, e), t.xn(-this.gb()), t.translate((this.ma + this.wa) / -2, (this.na + this.ua) / -2), t.od(), this.Ec ? (this.wb.left = this.Eb.Ub(this.ma), this.wb.top = this.Eb.Vb(this.na), this.wb.right = this.Eb.Ub(this.wa), this.wb.bottom = this.Eb.Vb(this.ua), this.ld || !this.wb.oh(this.ug) ? (v(this.$d), i = this.om(), this.ld = !1, this.ug.Vf(this.wb)) : i = this.$d) : i = this.d;
  2323. var h, n, o = null;
  2324. for (s = 0, h = i.length; s < h; ++s)
  2325. (n = i[s]) !== o && (this.sv(i[s], t), o = n);
  2326. this.Ec && (this.$d = i), this.Dd && (i = this.ea.length ? this.ea[0].Za : 0, s = this.ea.length ? this.ea[0].index : 0, 0 === this.ea.length || 1 === this.ea.length && !t.nn(i) && 1 === this.opacity ? (1 === this.ea.length ? (t.ec(i), t.Jg(this.rb.sh(), 1 / this.b.G, 1 / this.b.F, 0, 0, 1, 1, e, this.gb(), this.ma, this.na, (this.ma + this.wa) / 2, (this.na + this.ua) / 2, this.b.Bb.Z, this.Ja[s]), t.Dk(i) && (this.b.fa = !0)) : t.ec(0), t.Tc(this.rb.sh()), t.Se(this.opacity), t.Rb(this.b.jb), t.Re(this.Pb, this.Jb), t.Ed(), t.od(), e = this.b.G / 2, i = this.b.F / 2, t.ji(-e, i, e, i, e, -i, -e, -i), t.Rb(null)) : this.rb.tn(t, this, null, this.rb.sh()));
  2327. }, i.prototype.sv = function (t, i) {
  2328. if (t.visible && 0 !== t.width && 0 !== t.height) {
  2329. t.Aa();
  2330. var s = t.Qa;
  2331. s.right < this.ma || s.bottom < this.na || s.left > this.wa || s.top > this.ua || (i.Ok(t.ef), t.as ? this.uv(t, i) : (i.ec(0), i.Re(t.Pb, t.Jb), t.Kb(i)));
  2332. }
  2333. }, i.prototype.tv = function (t, i) {
  2334. if (t.visible && 0 !== t.width && 0 !== t.height) {
  2335. t.Aa();
  2336. var s = t.Qa;
  2337. s.right < this.ma || s.bottom < this.na || s.left > this.wa || s.top > this.ua || (t.ef = this.b.ef++, 0 === t.Hb && 1 === t.opacity && t.ie && t.Ce && (i.Ok(t.ef), t.Ce(i)));
  2338. }
  2339. }, i.prototype.uv = function (t, i) {
  2340. var s = t.ea[0].Za, e = t.ea[0].index, h = this.Lc();
  2341. if (1 !== t.ea.length || i.nn(s) || i.$x(s) || (t.m || t.j.gb()) && i.hi(s) || 1 !== t.opacity || t.type.X.Fq)
  2342. this.rb.tn(i, this, t, this.Dd ? this.b.jb : this.rb.sh()), i.Ed(), i.scale(h, h), i.xn(-this.gb()), i.translate((this.ma + this.wa) / -2, (this.na + this.ua) / -2), i.od();
  2343. else {
  2344. i.ec(s), i.Re(t.Pb, t.Jb), i.Dk(s) && (this.b.fa = !0);
  2345. var n, o = 0, r = 0, a = 0, c = 0;
  2346. i.hi(s) && (c = t.Qa, o = this.ib(c.left, c.top, !0, !0), r = this.ib(c.left, c.top, !1, !0), a = this.ib(c.right, c.bottom, !0, !0), c = this.ib(c.right, c.bottom, !1, !0), o /= windowWidth, r = 1 - r / windowHeight, a /= windowWidth, c = 1 - c / windowHeight), n = t.Sa && t.Sa.q ? (s = 1 / (n = t.Sa.q).width, 1 / n.height) : (s = 1 / t.width, 1 / t.height), i.Jg(this.Dd ? this.b.jb : this.rb.sh(), s, n, o, r, a, c, h, this.gb(), this.ma, this.na, (this.ma + this.wa) / 2, (this.na + this.ua) / 2, this.b.Bb.Z, t.Ja[e]), t.Kb(i);
  2347. }
  2348. }, i.prototype.ub = function (t, i, s, e) {
  2349. var h = this.b.devicePixelRatio;
  2350. this.b.tf && (t *= h, i *= h), h = this.b.$q;
  2351. var n = this.b.br, o = h = (this.rb.scrollX - h) * this.Pc + h, r = n = (this.rb.scrollY - n) * this.Qc + n, a = 1 / this.Lc(!e);
  2352. return e ? (o -= this.b.G * a / 2, r -= this.b.F * a / 2) : (o -= this.b.width * a / 2, r -= this.b.height * a / 2), o += t * a, r += i * a, 0 !== (i = this.gb()) && (r -= n, e = (o -= h) * (t = Math.cos(i)) - r * (i = Math.sin(i)), r = r * t + o * i, o = e + h, r += n), s ? o : r;
  2353. }, i.prototype.ib = function (t, i, s, e) {
  2354. var h = this.b.$q, n = this.b.br, o = (this.rb.scrollX - h) * this.Pc + h, r = (this.rb.scrollY - n) * this.Qc + n;
  2355. if (n = o, h = r, 0 !== (a = this.gb())) {
  2356. t -= o, i -= r;
  2357. var a, c = Math.cos(-a), p = t * c - i * (a = Math.sin(-a));
  2358. i = i * c + t * a, t = p + o, i += r;
  2359. }
  2360. return o = 1 / this.Lc(!e), e ? (n -= this.b.G * o / 2, h -= this.b.F * o / 2) : (n -= this.b.width * o / 2, h -= this.b.height * o / 2), n = (t - n) / o, h = (i - h) / o, t = this.b.devicePixelRatio, this.b.tf && !e && (n /= t, h /= t), s ? n : h;
  2361. }, i.prototype.Fb = function () {
  2362. var t, i, s, e = {
  2363. s: this.scale,
  2364. a: this.m,
  2365. vl: this.ma,
  2366. vt: this.na,
  2367. vr: this.wa,
  2368. vb: this.ua,
  2369. v: this.visible,
  2370. bc: this.Zc,
  2371. t: this.Dc,
  2372. px: this.Pc,
  2373. py: this.Qc,
  2374. o: this.opacity,
  2375. zr: this.qd,
  2376. fx: [],
  2377. cg: this.mh,
  2378. instances: []
  2379. };
  2380. for (t = 0, i = this.M.length; t < i; t++)
  2381. s = this.M[t], e.fx.push({
  2382. name: s.name,
  2383. active: s.nc,
  2384. params: this.Ja[s.index]
  2385. });
  2386. return e;
  2387. }, i.prototype.Qb = function (t) {
  2388. var i, s, e;
  2389. this.scale = t.s, this.m = t.a, this.ma = t.vl, this.na = t.vt, this.wa = t.vr, this.ua = t.vb, this.visible = t.v, this.Zc = t.bc, this.Dc = t.t, this.Pc = t.px, this.Qc = t.py, this.opacity = t.o, this.qd = t.zr, this.mh = t.cg || [], Da(this.uc, this.Ir);
  2390. var h = new ca();
  2391. for (i = 0, e = this.mh.length; i < e; ++i)
  2392. h.add(this.mh[i]);
  2393. for (s = i = 0, e = this.uc.length; i < e; ++i)
  2394. h.contains(this.uc[i][2]) || (this.uc[s] = this.uc[i], ++s);
  2395. for (Ba(this.uc, s), i = 0, e = (s = t.fx).length; i < e; i++)
  2396. (t = this.km(s[i].name)) && (t.nc = s[i].active, this.Ja[t.index] = s[i].params);
  2397. this.nd(), this.d.sort(a), this.Lf = !0;
  2398. }, $b = i;
  2399. }(), function () {
  2400. function n(t, i) {
  2401. var s, e = t.length;
  2402. switch (e) {
  2403. case 0:
  2404. return 1;
  2405. case 1:
  2406. return t[0] === i[0];
  2407. case 2:
  2408. return t[0] === i[0] && t[1] === i[1];
  2409. default:
  2410. for (s = 0; s < e; s++)
  2411. if (t[s] !== i[s])
  2412. return;
  2413. return 1;
  2414. }
  2415. }
  2416. function o(t, i) {
  2417. return t.index - i.index;
  2418. }
  2419. function e(t) {
  2420. var i, s, e, h;
  2421. for (2 === t.length ? t[0].index > t[1].index && (i = t[0], t[0] = t[1], t[1] = i) : 2 < t.length && t.sort(o), t.length >= b.length && (b.length = t.length + 1), b[t.length] || (b[t.length] = []), i = 0, s = (h = b[t.length]).length; i < s; i++)
  2422. if (n(t, e = h[i]))
  2423. return e;
  2424. return h.push(t), t;
  2425. }
  2426. function t(t, i) {
  2427. this.b = t, this.Rr = {}, this.ip = {}, this.um = !1, this.Fp = new ca(), this.Wl = [], this.Bl = [], this.name = i[0];
  2428. var s, e, h = i[1];
  2429. for (this.Ee = [], s = 0, e = h.length; s < e; s++)
  2430. this.Hp(h[s], null, this.Ee);
  2431. }
  2432. function i(t) {
  2433. this.type = t, this.d = [], this.I = [], this.R = !0;
  2434. }
  2435. function s(t, i, s) {
  2436. this.sheet = t, this.parent = i, this.b = t.b, this.V = [], this.Te = [], this.Dp = this.$k = this.Mn = this.ym = this.group = this.Fn = !1, this.eb = [], this.Fc = [], this.Uc = [], this.vh = '', this.dg = this.ym = this.group = !1, this.sj = null, s[1] && (this.vh = s[1][1].toLowerCase(), this.group = !0, this.ym = !!s[1][0], this.sj = [], this.dg = this.ym, this.b.Qf.push(this), this.b.wh[this.vh] = this), this.kc = s[2], this.Y = s[4], this.group || (this.b.Ro[this.Y.toString()] = this);
  2437. var e = s[5];
  2438. for (t = 0, i = e.length; t < i; t++) {
  2439. var h = new ac(this, e[t]);
  2440. h.index = t, this.eb.push(h), this.Mo(h.type);
  2441. }
  2442. for (t = 0, i = (e = s[6]).length; t < i; t++)
  2443. (h = new bc(this, e[t])).index = t, this.Fc.push(h);
  2444. if (8 === s.length)
  2445. for (t = 0, i = (s = s[7]).length; t < i; t++)
  2446. this.sheet.Hp(s[t], this, this.Uc);
  2447. this.bk = !1, this.eb.length && (this.bk = null == this.eb[0].type && this.eb[0].zb == T.prototype.c.ho);
  2448. }
  2449. function h(t, i) {
  2450. var s, e, h;
  2451. if (t && (-1 === i.indexOf(t) && i.push(t), t.Ab))
  2452. for (s = 0, e = t.hc.length; s < e; s++)
  2453. t !== (h = t.hc[s]) && -1 === i.indexOf(h) && i.push(h);
  2454. }
  2455. function r(t, i) {
  2456. if (this.qc = t, this.sheet = t.sheet, this.b = t.b, this.O = [], this.Ka = [], this.ja = {}, this.index = -1, this.dh = !1, this.zb = this.b.qe(i[1]), this.trigger = 0 < i[3], this.hp = 2 === i[3], this.Ad = i[4], this.fg = i[5], this.lx = i[6], this.Y = i[7], this.b.ye[this.Y.toString()] = this, -1 === i[0] ? (this.type = null, this.Ya = this.zn, this.Ze = null, this.$c = -1) : (this.type = this.b.p[i[0]], this.Ya = this.lx ? this.my : this.yn, i[2] ? (this.Ze = this.type.Pj(i[2]), this.$c = this.type.im(i[2])) : (this.Ze = null, this.$c = -1), this.qc.parent && this.qc.parent.Qk()), this.hp && (this.Ya = this.ny), 10 === i.length) {
  2457. var s, e, h = i[9];
  2458. for (s = 0, e = h.length; s < e; s++) {
  2459. var n = new cc(this, h[s]);
  2460. this.O.push(n);
  2461. }
  2462. this.Ka.length = h.length;
  2463. }
  2464. }
  2465. function a(t, i) {
  2466. if (this.qc = t, this.sheet = t.sheet, this.b = t.b, this.O = [], this.Ka = [], this.ja = {}, this.index = -1, this.dh = !1, this.zb = this.b.qe(i[1]), -1 === i[0] ? (this.type = null, this.Ya = this.zn, this.Ze = null, this.$c = -1) : (this.type = this.b.p[i[0]], this.Ya = this.yn, i[2] ? (this.Ze = this.type.Pj(i[2]), this.$c = this.type.im(i[2])) : (this.Ze = null, this.$c = -1)), this.Y = i[3], this.b.se[this.Y.toString()] = this, 6 === i.length) {
  2467. var s, e, h = i[5];
  2468. for (s = 0, e = h.length; s < e; s++) {
  2469. var n = new cc(this, h[s]);
  2470. this.O.push(n);
  2471. }
  2472. this.Ka.length = h.length;
  2473. }
  2474. }
  2475. function c() {
  2476. return g++, d.length === g && d.push(new dc()), d[g];
  2477. }
  2478. function p(t, i) {
  2479. var s, e, h;
  2480. switch (this.Oc = t, this.qc = t.qc, this.sheet = t.sheet, this.b = t.b, this.type = i[0], this.td = null, this.je = 0, this.get = null, this.$o = 0, this.rb = null, this.key = 0, this.object = null, this.index = 0, this.Di = this.Ff = this.Di = this.Ff = this.mp = this.jf = this.Ei = null, this.Wc = !1, i[0]) {
  2481. case 0:
  2482. case 7:
  2483. this.td = new ec(this, i[1]), this.je = 0, this.get = this.Ew;
  2484. break;
  2485. case 1:
  2486. this.td = new ec(this, i[1]), this.je = 0, this.get = this.Fw;
  2487. break;
  2488. case 5:
  2489. this.td = new ec(this, i[1]), this.je = 0, this.get = this.Jw;
  2490. break;
  2491. case 3:
  2492. case 8:
  2493. this.$o = i[1], this.get = this.Cw;
  2494. break;
  2495. case 6:
  2496. this.rb = this.b.Nm[i[1]], this.get = this.Kw;
  2497. break;
  2498. case 9:
  2499. this.key = i[1], this.get = this.Iw;
  2500. break;
  2501. case 4:
  2502. this.object = this.b.p[i[1]], this.get = this.Lw, this.qc.Mo(this.object), this.Oc instanceof bc ? this.qc.Qk() : this.qc.parent && this.qc.parent.Qk();
  2503. break;
  2504. case 10:
  2505. this.index = i[1], t.type && t.type.B ? (this.get = this.Gw, this.Wc = !0) : this.get = this.Hw;
  2506. break;
  2507. case 11:
  2508. this.Ei = i[1], this.jf = null, this.get = this.Dw;
  2509. break;
  2510. case 2:
  2511. case 12:
  2512. this.mp = i[1], this.get = this.Bw;
  2513. break;
  2514. case 13:
  2515. for (this.get = this.Mw, this.Ff = [], this.Di = [], s = 1, e = i.length; s < e; s++)
  2516. h = new cc(this.Oc, i[s]), this.Ff.push(h), this.Di.push(0);
  2517. }
  2518. }
  2519. function u(t, i, s) {
  2520. this.sheet = t, this.parent = i, this.b = t.b, this.V = [], this.name = s[1], this.Fi = s[2], this.xm = s[3], this.Lh = !!s[4], this.ak = !!s[5], this.Y = s[6], (this.b.Vg[this.Y.toString()] = this).data = this.xm, this.parent ? (this.Cf = this.Lh || this.ak ? -1 : this.b.Ay++, this.b.Gu.push(this)) : (this.Cf = -1, this.b.Fu.push(this));
  2521. }
  2522. function f(t, i, s) {
  2523. this.sheet = t, this.parent = i, this.b = t.b, this.V = [], this.Ah = null, this.Sw = s[1], this.nc = !0;
  2524. }
  2525. function l() {
  2526. this.Kr = [], this.reset(null);
  2527. }
  2528. var b = [];
  2529. t.prototype.toString = function () {
  2530. return this.name;
  2531. }, t.prototype.Hp = function (t, i, s) {
  2532. switch (t[0]) {
  2533. case 0:
  2534. if ((t = new fc(this, i, t)).kc)
  2535. for (s.push(t), s = 0, i = t.eb.length; s < i; s++)
  2536. t.eb[s].trigger && this.Ip(t, s);
  2537. else
  2538. t.Tp() ? this.Ip(t, 0) : s.push(t);
  2539. break;
  2540. case 1:
  2541. t = new Xb(this, i, t), s.push(t);
  2542. break;
  2543. case 2:
  2544. t = new gc(this, i, t), s.push(t);
  2545. }
  2546. }, t.prototype.Pa = function () {
  2547. var t, i;
  2548. for (t = 0, i = this.Ee.length; t < i; t++)
  2549. this.Ee[t].Pa(t < i - 1 && this.Ee[t + 1].bk);
  2550. }, t.prototype.Rn = function () {
  2551. A(this.Wl), A(this.Bl), this.Lo(this), A(this.Bl);
  2552. }, t.prototype.Lo = function (t) {
  2553. var i, s, e, h, n = t.Wl, o = t.Bl, r = this.Fp.We();
  2554. for (i = 0, s = r.length; i < s; ++i)
  2555. h = (e = r[i]).Ah, !e.nc || t === h || -1 < o.indexOf(h) || (o.push(h), h.Lo(t), n.push(h));
  2556. }, t.prototype.Ya = function (t) {
  2557. var i, s;
  2558. for (this.b.Iz || (this.um = !0, t || (this.b.Gm = !0)), i = 0, s = this.Ee.length; i < s; i++) {
  2559. var e = this.Ee[i];
  2560. e.Ya(), this.b.Nl(e.V), this.b.He && this.b.Gb();
  2561. }
  2562. t || (this.b.Gm = !1);
  2563. }, t.prototype.Ip = function (t, i) {
  2564. t.kc || this.b.bl.push(t);
  2565. var s, e, h, n = t.eb[i];
  2566. h = n.type ? n.type.name : 'system';
  2567. var o = (s = n.hp) ? this.ip : this.Rr;
  2568. if (o[h] || (o[h] = []), h = o[h], o = n.zb, s) {
  2569. if (n.O.length && 1 === (n = n.O[0]).type && 2 === n.td.type) {
  2570. for (n = n.td.value.toLowerCase(), s = 0, e = h.length; s < e; s++)
  2571. if (h[s].method == o)
  2572. return void ((s = h[s].ph)[n] ? s[n].push([t,i]) : s[n] = [[t,i]]);
  2573. (s = {})[n] = [[t,i]], h.push({
  2574. method: o,
  2575. ph: s
  2576. });
  2577. }
  2578. } else {
  2579. for (s = 0, e = h.length; s < e; s++)
  2580. if (h[s].method == o)
  2581. return void h[s].ph.push([t,i]);
  2582. V && o === V.prototype.c.Of ? h.unshift({
  2583. method: o,
  2584. ph: [[t,i]]
  2585. }) : h.push({
  2586. method: o,
  2587. ph: [[t,i]]
  2588. });
  2589. }
  2590. }, Nb = t, i.prototype.tm = function () {
  2591. return this.R ? this.type.d.length : this.d.length;
  2592. }, i.prototype.Zb = function () {
  2593. return this.R ? this.type.d : this.d;
  2594. }, i.prototype.Fg = function (t) {
  2595. t && (t.b.Ea().Ia.kc ? (this.R && (A(this.d), Da(this.I, t.type.d), this.R = !1), -1 !== (t = this.I.indexOf(t)) && (this.d.push(this.I[t]), this.I.splice(t, 1))) : (this.R = !1, A(this.d), this.d[0] = t));
  2596. }, sb = i, window._c2hh_ = '452B435306E1242151A43DBBE2F7065CB487A3E9', s.prototype.Pa = function (t) {
  2597. var i, s = this.parent;
  2598. if (this.group)
  2599. for (this.$k = !0; s;) {
  2600. if (!s.group) {
  2601. this.$k = !1;
  2602. break;
  2603. }
  2604. s = s.parent;
  2605. }
  2606. for (this.Mn = !this.Tp() && (!this.parent || this.parent.group && this.parent.$k), this.Dp = !!t, this.Te = this.V.slice(0), s = this.parent; s;) {
  2607. for (t = 0, i = s.V.length; t < i; t++)
  2608. this.Eu(s.V[t]);
  2609. s = s.parent;
  2610. }
  2611. for (this.V = e(this.V), this.Te = e(this.Te), t = 0, i = this.eb.length; t < i; t++)
  2612. this.eb[t].Pa();
  2613. for (t = 0, i = this.Fc.length; t < i; t++)
  2614. this.Fc[t].Pa();
  2615. for (t = 0, i = this.Uc.length; t < i; t++)
  2616. this.Uc[t].Pa(t < i - 1 && this.Uc[t + 1].bk);
  2617. }, s.prototype.ty = function (t) {
  2618. if (this.dg !== !!t) {
  2619. var i;
  2620. for (this.dg = !!t, t = 0, i = this.sj.length; t < i; ++t)
  2621. this.sj[t].Wr();
  2622. 0 < i && this.b.ba.hf && this.b.ba.hf.Rn();
  2623. }
  2624. }, s.prototype.Mo = function (t) {
  2625. h(t, this.V);
  2626. }, s.prototype.Eu = function (t) {
  2627. h(t, this.Te);
  2628. }, s.prototype.Qk = function () {
  2629. this.Fn = !0, this.parent && this.parent.Qk();
  2630. }, s.prototype.Tp = function () {
  2631. return !!this.eb.length && this.eb[0].trigger;
  2632. }, s.prototype.Ya = function () {
  2633. var t, i, s = !1, e = this.b, h = this.b.Ea(), n = (h.Ia = this).eb;
  2634. if (this.bk || (h.$l = !1), this.kc) {
  2635. for (0 === n.length && (s = !0), h.Ra = 0, t = n.length; h.Ra < t; h.Ra++)
  2636. (i = n[h.Ra]).trigger || (i = i.Ya()) && (s = !0);
  2637. (h.xf = s) && this.Ik();
  2638. } else {
  2639. for (h.Ra = 0, t = n.length; h.Ra < t; h.Ra++)
  2640. if (!(i = n[h.Ra].Ya()))
  2641. return h.xf = !1, void (this.Mn && e.He && e.Gb());
  2642. h.xf = !0, this.Ik();
  2643. }
  2644. this.zv(h);
  2645. }, s.prototype.zv = function (t) {
  2646. t.xf && this.Dp && (t.$l = !0), this.Mn && this.b.He && this.b.Gb();
  2647. }, s.prototype.ky = function (t) {
  2648. (this.b.Ea().Ia = this).eb[t].Ya() && (this.Ik(), this.b.Ea().xf = !0);
  2649. }, s.prototype.Ik = function () {
  2650. var t, i = this.b.Ea();
  2651. for (i.Wb = 0, t = this.Fc.length; i.Wb < t; i.Wb++)
  2652. if (this.Fc[i.Wb].Ya())
  2653. return;
  2654. this.pr();
  2655. }, s.prototype.iy = function () {
  2656. var t, i = this.b.Ea();
  2657. for (t = this.Fc.length; i.Wb < t; i.Wb++)
  2658. if (this.Fc[i.Wb].Ya())
  2659. return;
  2660. this.pr();
  2661. }, s.prototype.pr = function () {
  2662. if (this.Uc.length) {
  2663. var t, i, s, e, h = this.Uc.length - 1;
  2664. if (this.b.Ek(this), this.Fn)
  2665. for (t = 0, i = this.Uc.length; t < i; t++)
  2666. s = this.Uc[t], (e = !this.$k || !this.group && t < h) && this.b.Qe(s.V), s.Ya(), e ? this.b.jd(s.V) : this.b.Nl(s.V);
  2667. else
  2668. for (t = 0, i = this.Uc.length; t < i; t++)
  2669. this.Uc[t].Ya();
  2670. this.b.zk();
  2671. }
  2672. }, s.prototype.ly = function () {
  2673. var t = this.b.Ea();
  2674. t.Ia = this;
  2675. var i, s = !1;
  2676. for (t.Ra = 0, i = this.eb.length; t.Ra < i; t.Ra++)
  2677. if (this.eb[t.Ra].Ya())
  2678. s = !0;
  2679. else if (!this.kc)
  2680. return !1;
  2681. return !this.kc || s;
  2682. }, s.prototype.ee = function () {
  2683. this.b.kf++;
  2684. var t = this.b.Ea().Ra, i = this.b.Ek(this);
  2685. if (!this.kc)
  2686. for (i.Ra = t + 1, t = this.eb.length; i.Ra < t; i.Ra++)
  2687. if (!this.eb[i.Ra].Ya())
  2688. return this.b.zk(), !1;
  2689. return this.Ik(), this.b.zk(), !0;
  2690. }, s.prototype.bx = function (t) {
  2691. var i = t.index;
  2692. if (0 === i)
  2693. return !0;
  2694. for (--i; 0 <= i; --i)
  2695. if (this.eb[i].type === t.type)
  2696. return !1;
  2697. return !0;
  2698. }, fc = s, r.prototype.Pa = function () {
  2699. var t, i, s;
  2700. for (t = 0, i = this.O.length; t < i; t++)
  2701. (s = this.O[t]).Pa(), s.Wc && (this.dh = !0);
  2702. }, r.prototype.ny = function () {
  2703. return !0;
  2704. }, r.prototype.zn = function () {
  2705. var t, i;
  2706. for (t = 0, i = this.O.length; t < i; t++)
  2707. this.Ka[t] = this.O[t].get();
  2708. return Wa(this.zb.apply(this.b.Hd, this.Ka), this.fg);
  2709. }, r.prototype.my = function () {
  2710. var t, i;
  2711. for (t = 0, i = this.O.length; t < i; t++)
  2712. this.Ka[t] = this.O[t].get();
  2713. return t = this.zb.apply(this.Ze ? this.Ze : this.type, this.Ka), this.type.Gc(), t;
  2714. }, r.prototype.yn = function () {
  2715. var t, i, s, e, h, n, o, r, a = this.type, c = a.N(), p = this.qc.kc && !this.trigger;
  2716. i = 0;
  2717. var u, f = a.Ab, l = a.B, b = a.Vd, d = this.$c, g = -1 < d, y = this.dh, v = this.O, m = this.Ka, w = this.fg, k = this.zb;
  2718. if (y)
  2719. for (i = 0, h = v.length; i < h; ++i)
  2720. (n = v[i]).Wc || (m[i] = n.get(0));
  2721. else
  2722. for (i = 0, h = v.length; i < h; ++i)
  2723. m[i] = v[i].get(0);
  2724. if (c.R) {
  2725. for (A(c.d), A(c.I), t = 0, e = (u = a.d).length; t < e; ++t) {
  2726. if (r = u[t], y)
  2727. for (i = 0, h = v.length; i < h; ++i)
  2728. (n = v[i]).Wc && (m[i] = n.get(t));
  2729. i = g ? (i = 0, l && (i = r.type.Zf[b]), k.apply(r.L[d + i], m)) : k.apply(r, m), (o = Wa(i, w)) ? c.d.push(r) : p && c.I.push(r);
  2730. }
  2731. return a.finish && a.finish(!0), c.R = !1, a.Gc(), c.tm();
  2732. }
  2733. var x = !1;
  2734. for (t = s = 0, e = (u = (o = p && !this.qc.bx(this)) ? c.I : c.d).length; t < e; ++t) {
  2735. if (r = u[t], y)
  2736. for (i = 0, h = v.length; i < h; ++i)
  2737. (n = v[i]).Wc && (m[i] = n.get(t));
  2738. if (i = g ? (i = 0, l && (i = r.type.Zf[b]), k.apply(r.L[d + i], m)) : k.apply(r, m), Wa(i, w))
  2739. if (x = !0, o) {
  2740. if (c.d.push(r), f)
  2741. for (i = 0, h = r.siblings.length; i < h; i++)
  2742. (n = r.siblings[i]).type.N().d.push(n);
  2743. } else {
  2744. if (u[s] = r, f)
  2745. for (i = 0, h = r.siblings.length; i < h; i++)
  2746. (n = r.siblings[i]).type.N().d[s] = n;
  2747. s++;
  2748. }
  2749. else if (o) {
  2750. if (u[s] = r, f)
  2751. for (i = 0, h = r.siblings.length; i < h; i++)
  2752. (n = r.siblings[i]).type.N().I[s] = n;
  2753. s++;
  2754. } else if (p && (c.I.push(r), f))
  2755. for (i = 0, h = r.siblings.length; i < h; i++)
  2756. (n = r.siblings[i]).type.N().I.push(n);
  2757. }
  2758. if (Ba(u, s), f)
  2759. for (t = 0, e = (l = a.hc).length; t < e; t++)
  2760. r = l[t].N(), Ba(o ? r.I : r.d, s);
  2761. if (s = x, o && !x)
  2762. for (t = 0, e = c.d.length; t < e; t++) {
  2763. if (r = c.d[t], y)
  2764. for (i = 0, h = v.length; i < h; i++)
  2765. (n = v[i]).Wc && (m[i] = n.get(t));
  2766. if (i = g ? k.apply(r.L[d], m) : k.apply(r, m), Wa(i, w)) {
  2767. x = !0;
  2768. break;
  2769. }
  2770. }
  2771. return a.finish && a.finish(s || p), p ? x : c.tm();
  2772. }, ac = r, a.prototype.Pa = function () {
  2773. var t, i, s;
  2774. for (t = 0, i = this.O.length; t < i; t++)
  2775. (s = this.O[t]).Pa(), s.Wc && (this.dh = !0);
  2776. }, a.prototype.zn = function () {
  2777. var t, i, s = this.b, e = this.O, h = this.Ka;
  2778. for (t = 0, i = e.length; t < i; ++t)
  2779. h[t] = e[t].get();
  2780. return this.zb.apply(s.Hd, h);
  2781. }, a.prototype.yn = function () {
  2782. var t, i, s, e, h, n, o = this.type, r = this.$c, a = o.Vd, c = this.dh, p = this.O, u = this.Ka, f = this.zb, l = o.N().Zb(), b = (o = o.B, -1 < r);
  2783. if (c)
  2784. for (i = 0, e = p.length; i < e; ++i)
  2785. (h = p[i]).Wc || (u[i] = h.get(0));
  2786. else
  2787. for (i = 0, e = p.length; i < e; ++i)
  2788. u[i] = p[i].get(0);
  2789. for (t = 0, s = l.length; t < s; ++t) {
  2790. if (n = l[t], c)
  2791. for (i = 0, e = p.length; i < e; ++i)
  2792. (h = p[i]).Wc && (u[i] = h.get(t));
  2793. b ? (i = 0, o && (i = n.type.Zf[a]), f.apply(n.L[r + i], u)) : f.apply(n, u);
  2794. }
  2795. return !1;
  2796. }, bc = a;
  2797. var d = [], g = -1;
  2798. p.prototype.Pa = function () {
  2799. var t, i;
  2800. if (11 === this.type)
  2801. this.jf = this.b.vp(this.Ei, this.qc.parent);
  2802. else if (13 === this.type)
  2803. for (t = 0, i = this.Ff.length; t < i; t++)
  2804. this.Ff[t].Pa();
  2805. this.td && this.td.Pa();
  2806. }, p.prototype.xx = function (t) {
  2807. this.Wc || !t || t.X.Rk || (this.Wc = !0);
  2808. }, p.prototype.yr = function () {
  2809. this.Wc = !0;
  2810. }, p.prototype.Ew = function (t) {
  2811. return this.je = t || 0, t = c(), this.td.get(t), g--, t.data;
  2812. }, p.prototype.Fw = function (t) {
  2813. return this.je = t || 0, t = c(), this.td.get(t), g--, z(t.data) ? t.data : '';
  2814. }, p.prototype.Lw = function () {
  2815. return this.object;
  2816. }, p.prototype.Cw = function () {
  2817. return this.$o;
  2818. }, p.prototype.Jw = function (t) {
  2819. return this.je = t || 0, t = c(), this.td.get(t), g--, t.qb() ? this.b.ag(t.data) : this.b.Sj(t.data);
  2820. }, p.prototype.Kw = function () {
  2821. return this.rb;
  2822. }, p.prototype.Iw = function () {
  2823. return this.key;
  2824. }, p.prototype.Hw = function () {
  2825. return this.index;
  2826. }, p.prototype.Gw = function (t) {
  2827. t = t || 0;
  2828. var i = this.Oc.type, s = null, e = (s = i.N()).Zb();
  2829. if (e.length)
  2830. s = e[t % e.length].type;
  2831. else if (s.I.length)
  2832. s = s.I[t % s.I.length].type;
  2833. else {
  2834. if (!i.d.length)
  2835. return 0;
  2836. s = i.d[t % i.d.length].type;
  2837. }
  2838. return this.index + s.Hj[i.Vd];
  2839. }, p.prototype.Dw = function () {
  2840. return this.jf;
  2841. }, p.prototype.Bw = function () {
  2842. return this.mp;
  2843. }, p.prototype.Mw = function () {
  2844. var t, i;
  2845. for (t = 0, i = this.Ff.length; t < i; t++)
  2846. this.Di[t] = this.Ff[t].get();
  2847. return this.Di;
  2848. }, cc = p, u.prototype.Pa = function () {
  2849. this.V = e(this.V);
  2850. }, u.prototype.he = function (t) {
  2851. var i = this.b.tp();
  2852. this.parent && !this.Lh && i ? (this.Cf >= i.length && (i.length = this.Cf + 1), i[this.Cf] = t) : this.data = t;
  2853. }, u.prototype.of = function () {
  2854. var t = this.b.tp();
  2855. return !this.parent || this.Lh || !t || this.ak ? this.data : this.Cf >= t.length || void 0 === t[this.Cf] ? this.xm : t[this.Cf];
  2856. }, u.prototype.Ya = function () {
  2857. !this.parent || this.Lh || this.ak || this.he(this.xm);
  2858. }, Xb = u, f.prototype.toString = function () {
  2859. return 'include:' + this.Ah.toString();
  2860. }, f.prototype.Pa = function () {
  2861. this.Ah = this.b.cm[this.Sw], this.sheet.Fp.add(this), this.V = e(this.V);
  2862. for (var t = this.parent; t;)
  2863. t.group && t.sj.push(this), t = t.parent;
  2864. this.Wr();
  2865. }, f.prototype.Ya = function () {
  2866. this.parent && this.b.ii(this.b.p), this.Ah.um || this.Ah.Ya(!0), this.parent && this.b.jd(this.b.p);
  2867. }, f.prototype.Wr = function () {
  2868. for (var t = this.parent; t;) {
  2869. if (t.group && !t.dg)
  2870. return void (this.nc = !1);
  2871. t = t.parent;
  2872. }
  2873. this.nc = !0;
  2874. }, gc = f, l.prototype.reset = function (t) {
  2875. this.Ia = t, this.Wb = this.Ra = 0, A(this.Kr), this.$l = this.xf = !1;
  2876. }, l.prototype.Em = function () {
  2877. return !!this.Ia.Fn || this.Ra < this.Ia.eb.length - 1 && !!this.Ia.V.length;
  2878. }, Wb = l;
  2879. }(), function () {
  2880. function t(t, i) {
  2881. this.Oc = t, this.b = t.b, this.type = i[0], this.get = [this.Rv,this.Nv,this.$v,this.dw,this.Cv,this.aw,this.Vv,this.Kv,this.Uv,this.Zv,this.Dv,this.Yv,this.Lv,this.Wv,this.Sv,this.Tv,this.Ov,this.Pv,this.Jv,this.bw,this.Xv,this.Qv,this.Iv,this.Mv][this.type];
  2882. var s, e, h = null;
  2883. switch (this.ae = this.O = this.Ka = this.zb = this.Zk = this.second = this.first = this.value = null, this.$c = -1, this.fd = null, this.bs = -1, this.jf = this.Ei = null, this.Ig = !1, this.type) {
  2884. case 0:
  2885. case 1:
  2886. case 2:
  2887. this.value = i[1];
  2888. break;
  2889. case 3:
  2890. this.first = new ec(t, i[1]);
  2891. break;
  2892. case 18:
  2893. this.first = new ec(t, i[1]), this.second = new ec(t, i[2]), this.Zk = new ec(t, i[3]);
  2894. break;
  2895. case 19:
  2896. this.zb = this.b.qe(i[1]), this.zb !== T.prototype.g.random && this.zb !== T.prototype.g.Yo || this.Oc.yr(), this.Ka = [], this.O = [], 3 === i.length ? (h = i[2], this.Ka.length = h.length + 1) : this.Ka.length = 1;
  2897. break;
  2898. case 20:
  2899. this.ae = this.b.p[i[1]], this.$c = -1, this.zb = this.b.qe(i[2]), this.Ig = i[3], sc && this.zb === sc.prototype.g.bo && this.Oc.yr(), i[4] ? this.fd = new ec(t, i[4]) : this.fd = null, this.Ka = [], this.O = [], 6 === i.length ? (h = i[5], this.Ka.length = h.length + 1) : this.Ka.length = 1;
  2900. break;
  2901. case 21:
  2902. this.ae = this.b.p[i[1]], this.Ig = i[2], i[3] ? this.fd = new ec(t, i[3]) : this.fd = null, this.bs = i[4];
  2903. break;
  2904. case 22:
  2905. this.ae = this.b.p[i[1]], this.ae.Pj(i[2]), this.$c = this.ae.im(i[2]), this.zb = this.b.qe(i[3]), this.Ig = i[4], i[5] ? this.fd = new ec(t, i[5]) : this.fd = null, this.Ka = [], this.O = [], 7 === i.length ? (h = i[6], this.Ka.length = h.length + 1) : this.Ka.length = 1;
  2906. break;
  2907. case 23:
  2908. this.Ei = i[1], this.jf = null;
  2909. }
  2910. if (this.Oc.xx(this.ae), 4 <= this.type && this.type <= 17 && (this.first = new ec(t, i[1]), this.second = new ec(t, i[2])), h)
  2911. for (s = 0, e = h.length; s < e; s++)
  2912. this.O.push(new ec(t, h[s]));
  2913. }
  2914. function p() {
  2915. return ++f, s.length === f && s.push(new dc()), s[f];
  2916. }
  2917. function u(t, i, s) {
  2918. var e, h;
  2919. for (e = 0, h = t.length; e < h; ++e)
  2920. t[e].get(s), i[e + 1] = s.data;
  2921. }
  2922. function i(t, i) {
  2923. this.type = t || hc.Nf, this.data = i || 0, this.Df = null, this.type == hc.Nf && (this.data = Math.floor(this.data));
  2924. }
  2925. t.prototype.Pa = function () {
  2926. var t, i;
  2927. if (23 === this.type && (this.jf = this.Oc.b.vp(this.Ei, this.Oc.qc.parent)), this.first && this.first.Pa(), this.second && this.second.Pa(), this.Zk && this.Zk.Pa(), this.fd && this.fd.Pa(), this.O)
  2928. for (t = 0, i = this.O.length; t < i; t++)
  2929. this.O[t].Pa();
  2930. };
  2931. var s = [], f = -1;
  2932. t.prototype.bw = function (t) {
  2933. var i = this.O, s = this.Ka;
  2934. s[0] = t, u(i, s, t = p()), --f, this.zb.apply(this.b.Hd, s);
  2935. }, t.prototype.Xv = function (t) {
  2936. var i = this.ae, s = this.Ka, e = this.O, h = this.fd, n = this.zb, o = this.Oc.je, r = i.N(), a = r.Zb();
  2937. if (!a.length) {
  2938. if (!r.I.length)
  2939. return void (this.Ig ? t.la('') : t.H(0));
  2940. a = r.I;
  2941. }
  2942. (s[0] = t).Df = i, u(e, s, t = p()), h && (h.get(t), t.qb() && (o = t.data, a = i.d)), --f, ((i = a.length) <= o || o <= -i) && (o %= i), o < 0 && (o += i), n.apply(a[o], s);
  2943. }, t.prototype.Iv = function (t) {
  2944. var i = this.ae, s = this.Ka, e = this.O, h = this.fd, n = this.$c, o = this.zb, r = this.Oc.je, a = i.N(), c = a.Zb();
  2945. if (!c.length) {
  2946. if (!a.I.length)
  2947. return void (this.Ig ? t.la('') : t.H(0));
  2948. c = a.I;
  2949. }
  2950. (s[0] = t).Df = i, u(e, s, t = p()), h && (h.get(t), t.qb() && (r = t.data, c = i.d)), --f, ((e = c.length) <= r || r <= -e) && (r %= e), r < 0 && (r += e), r = c[r], c = 0, i.B && (c = r.type.Zf[i.Vd]), o.apply(r.L[n + c], s);
  2951. }, t.prototype.Qv = function (t) {
  2952. var i = this.fd, s = this.ae, e = this.bs, h = this.Oc.je, n = s.N(), o = n.Zb();
  2953. if (!o.length) {
  2954. if (!n.I.length)
  2955. return void (this.Ig ? t.la('') : t.H(0));
  2956. o = n.I;
  2957. }
  2958. if (i) {
  2959. if (n = p(), i.get(n), n.qb())
  2960. return h = n.data, 0 !== (o = s.d).length && (h %= o.length) < 0 && (h += o.length), s = (h = s.mm(h)).hb[e], z(s) ? t.la(s) : t.n(s), void --f;
  2961. --f;
  2962. }
  2963. ((i = o.length) <= h || h <= -i) && (h %= i), h < 0 && (h += i), h = o[h], o = 0, s.B && (o = h.type.Hj[s.Vd]), s = h.hb[e + o], z(s) ? t.la(s) : t.n(s);
  2964. }, t.prototype.Rv = function (t) {
  2965. t.type = hc.Nf, t.data = this.value;
  2966. }, t.prototype.Nv = function (t) {
  2967. t.type = hc.Mf, t.data = this.value;
  2968. }, t.prototype.$v = function (t) {
  2969. t.type = hc.String, t.data = this.value;
  2970. }, t.prototype.dw = function (t) {
  2971. this.first.get(t), t.qb() && (t.data = -t.data);
  2972. }, t.prototype.Cv = function (t) {
  2973. this.first.get(t);
  2974. var i = p();
  2975. this.second.get(i), t.qb() && i.qb() && (t.data += i.data, i.kg() && t.wg()), --f;
  2976. }, t.prototype.aw = function (t) {
  2977. this.first.get(t);
  2978. var i = p();
  2979. this.second.get(i), t.qb() && i.qb() && (t.data -= i.data, i.kg() && t.wg()), --f;
  2980. }, t.prototype.Vv = function (t) {
  2981. this.first.get(t);
  2982. var i = p();
  2983. this.second.get(i), t.qb() && i.qb() && (t.data *= i.data, i.kg() && t.wg()), --f;
  2984. }, t.prototype.Kv = function (t) {
  2985. this.first.get(t);
  2986. var i = p();
  2987. this.second.get(i), t.qb() && i.qb() && (t.data /= i.data, t.wg()), --f;
  2988. }, t.prototype.Uv = function (t) {
  2989. this.first.get(t);
  2990. var i = p();
  2991. this.second.get(i), t.qb() && i.qb() && (t.data %= i.data, i.kg() && t.wg()), --f;
  2992. }, t.prototype.Zv = function (t) {
  2993. this.first.get(t);
  2994. var i = p();
  2995. this.second.get(i), t.qb() && i.qb() && (t.data = Math.pow(t.data, i.data), i.kg() && t.wg()), --f;
  2996. }, t.prototype.Dv = function (t) {
  2997. this.first.get(t);
  2998. var i = p();
  2999. this.second.get(i), i.ng() || t.ng() ? this.Fv(t, i) : this.Ev(t, i), --f;
  3000. }, t.prototype.Fv = function (t, i) {
  3001. t.ng() && i.ng() ? this.Hv(t, i) : this.Gv(t, i);
  3002. }, t.prototype.Hv = function (t, i) {
  3003. t.data += i.data;
  3004. }, t.prototype.Gv = function (t, i) {
  3005. t.ng() ? t.data += (Math.round(10000000000 * i.data) / 10000000000).toString() : t.la(t.data.toString() + i.data);
  3006. }, t.prototype.Ev = function (t, i) {
  3007. t.H(t.data && i.data ? 1 : 0);
  3008. }, t.prototype.Yv = function (t) {
  3009. this.first.get(t);
  3010. var i = p();
  3011. this.second.get(i), t.qb() && i.qb() && (t.data || i.data ? t.H(1) : t.H(0)), --f;
  3012. }, t.prototype.Jv = function (t) {
  3013. this.first.get(t), t.data ? this.second.get(t) : this.Zk.get(t);
  3014. }, t.prototype.Lv = function (t) {
  3015. this.first.get(t);
  3016. var i = p();
  3017. this.second.get(i), t.H(t.data === i.data ? 1 : 0), --f;
  3018. }, t.prototype.Wv = function (t) {
  3019. this.first.get(t);
  3020. var i = p();
  3021. this.second.get(i), t.H(t.data !== i.data ? 1 : 0), --f;
  3022. }, t.prototype.Sv = function (t) {
  3023. this.first.get(t);
  3024. var i = p();
  3025. this.second.get(i), t.H(t.data < i.data ? 1 : 0), --f;
  3026. }, t.prototype.Tv = function (t) {
  3027. this.first.get(t);
  3028. var i = p();
  3029. this.second.get(i), t.H(t.data <= i.data ? 1 : 0), --f;
  3030. }, t.prototype.Ov = function (t) {
  3031. this.first.get(t);
  3032. var i = p();
  3033. this.second.get(i), t.H(t.data > i.data ? 1 : 0), --f;
  3034. }, t.prototype.Pv = function (t) {
  3035. this.first.get(t);
  3036. var i = p();
  3037. this.second.get(i), t.H(t.data >= i.data ? 1 : 0), --f;
  3038. }, t.prototype.Mv = function (t) {
  3039. var i = this.jf.of();
  3040. ja(i) ? t.n(i) : t.la(i);
  3041. }, ec = t, i.prototype.kg = function () {
  3042. return this.type === hc.Mf;
  3043. }, i.prototype.qb = function () {
  3044. return this.type === hc.Nf || this.type === hc.Mf;
  3045. }, i.prototype.ng = function () {
  3046. return this.type === hc.String;
  3047. }, i.prototype.wg = function () {
  3048. this.kg() || (this.ng() && (this.data = parseFloat(this.data)), this.type = hc.Mf);
  3049. }, i.prototype.H = function (t) {
  3050. this.type = hc.Nf, this.data = Math.floor(t);
  3051. }, i.prototype.n = function (t) {
  3052. this.type = hc.Mf, this.data = t;
  3053. }, i.prototype.la = function (t) {
  3054. this.type = hc.String, this.data = t;
  3055. }, i.prototype.Kg = function (t) {
  3056. ja(t) ? (this.type = hc.Mf, this.data = t) : z(t) ? (this.type = hc.String, this.data = t.toString()) : (this.type = hc.Nf, this.data = 0);
  3057. }, dc = i, hc = {
  3058. Nf: 0,
  3059. Mf: 1,
  3060. String: 2
  3061. };
  3062. }(), T.prototype.Fb = function () {
  3063. var t, i, s, e, h, n, o, r, a, c = { waits: [] }, p = c.waits;
  3064. for (t = 0, i = this.fc.length; t < i; t++) {
  3065. for (a = {
  3066. t: (n = this.fc[t]).time,
  3067. st: n.Gr,
  3068. s: n.En,
  3069. ev: n.Yf.Y,
  3070. sm: [],
  3071. sols: {}
  3072. }, n.Yf.Fc[n.Wb] && (a.act = n.Yf.Fc[n.Wb].Y), s = 0, e = n.V.length; s < e; s++)
  3073. a.sm.push(n.V[s].Y);
  3074. for (h in n.Sb)
  3075. if (n.Sb.hasOwnProperty(h)) {
  3076. for (o = this.b.p[parseInt(h, 10)], r = {
  3077. sa: n.Sb[h].Jk,
  3078. insts: []
  3079. }, s = 0, e = n.Sb[h].Xd.length; s < e; s++)
  3080. r.insts.push(n.Sb[h].Xd[s].uid);
  3081. a.sols[o.Y.toString()] = r;
  3082. }
  3083. p.push(a);
  3084. }
  3085. return c;
  3086. }, T.prototype.Qb = function (t) {
  3087. var i, s, e, h, n, o, r, a, c, p, u;
  3088. for (t = t.waits, A(this.fc), i = 0, s = t.length; i < s; i++)
  3089. if (o = t[i], a = this.b.Ro[o.ev.toString()]) {
  3090. for (c = -1, e = 0, h = a.Fc.length; e < h; e++)
  3091. if (a.Fc[e].Y === o.act) {
  3092. c = e;
  3093. break;
  3094. }
  3095. if (-1 !== c) {
  3096. for ((r = {
  3097. Sb: {},
  3098. V: [],
  3099. Xl: !1
  3100. }).time = o.t, r.Gr = o.st || '', r.En = !!o.s, r.Yf = a, r.Wb = c, e = 0, h = o.sm.length; e < h; e++)
  3101. (a = this.b.Vj(o.sm[e])) && r.V.push(a);
  3102. for (n in o.sols)
  3103. if (o.sols.hasOwnProperty(n) && (a = this.b.Vj(parseInt(n, 10)))) {
  3104. for (p = {
  3105. Jk: (c = o.sols[n]).sa,
  3106. Xd: []
  3107. }, e = 0, h = c.insts.length; e < h; e++)
  3108. (u = this.b.Uj(c.insts[e])) && p.Xd.push(u);
  3109. r.Sb[a.index.toString()] = p;
  3110. }
  3111. this.fc.push(r);
  3112. }
  3113. }
  3114. }, function () {
  3115. function t() {
  3116. }
  3117. function i() {
  3118. }
  3119. function s() {
  3120. }
  3121. var e = T.prototype;
  3122. t.prototype.Ds = function () {
  3123. return !0;
  3124. }, t.prototype.to = function () {
  3125. return !0;
  3126. }, t.prototype.so = function () {
  3127. return !0;
  3128. }, t.prototype.qs = function (t, i, s) {
  3129. return ic(t, i, s);
  3130. }, t.prototype.wu = function () {
  3131. var t = (s = this.b.Ea()).Ia, i = s.Em(), s = this.b.pn();
  3132. if (i)
  3133. for (i = 0; !s.ta; i++)
  3134. this.b.Qe(t.V), s.index = i, t.ee() || (s.ta = !0), this.b.jd(t.V);
  3135. else
  3136. for (i = 0; !s.ta; i++)
  3137. s.index = i, t.ee() || (s.ta = !0);
  3138. return this.b.ln(), !1;
  3139. }, t.prototype.Fs = function (t, i, s) {
  3140. var e = (h = this.b.Ea()).Ia, h = h.Em();
  3141. if (t = this.b.pn(t), s < i)
  3142. if (h)
  3143. for (; s <= i && !t.ta; --i)
  3144. this.b.Qe(e.V), t.index = i, e.ee(), this.b.jd(e.V);
  3145. else
  3146. for (; s <= i && !t.ta; --i)
  3147. t.index = i, e.ee();
  3148. else if (h)
  3149. for (; i <= s && !t.ta; ++i)
  3150. this.b.Qe(e.V), t.index = i, e.ee(), this.b.jd(e.V);
  3151. else
  3152. for (; i <= s && !t.ta; ++i)
  3153. t.index = i, e.ee();
  3154. return this.b.ln(), !1;
  3155. };
  3156. var l = [], b = -1;
  3157. t.prototype.Gs = function (t) {
  3158. var i = t.N();
  3159. b++, l.length === b && l.push([]);
  3160. var s = l[b];
  3161. Da(s, i.Zb());
  3162. var e, h, n, o, r, a, c = (u = this.b.Ea()).Ia, p = u.Em(), u = this.b.pn(), f = t.Ab;
  3163. if (p)
  3164. for (p = 0, e = s.length; p < e && !u.ta; p++) {
  3165. if (this.b.Qe(c.V), o = s[p], (i = t.N()).R = !1, A(i.d), i.d[0] = o, f)
  3166. for (h = 0, n = o.siblings.length; h < n; h++)
  3167. (a = (r = o.siblings[h]).type.N()).R = !1, A(a.d), a.d[0] = r;
  3168. u.index = p, c.ee(), this.b.jd(c.V);
  3169. }
  3170. else
  3171. for (i.R = !1, A(i.d), p = 0, e = s.length; p < e && !u.ta; p++) {
  3172. if (o = s[p], i.d[0] = o, f)
  3173. for (h = 0, n = o.siblings.length; h < n; h++)
  3174. (a = (r = o.siblings[h]).type.N()).R = !1, A(a.d), a.d[0] = r;
  3175. u.index = p, c.ee();
  3176. }
  3177. return A(s), this.b.ln(), b--, !1;
  3178. }, t.prototype.Ht = function (t, i, s, e) {
  3179. var h, n, o, r;
  3180. if (t) {
  3181. b++, l.length === b && l.push([]);
  3182. var a = l[b], c = t.N();
  3183. Da(a, c.Zb()), c.R && A(c.I);
  3184. var p = this.b.Qj();
  3185. for (o = h = 0, n = a.length; h < n; h++)
  3186. r = a[h], a[o] = r, i = p.O[1].get(h), e = p.O[3].get(h), ic(i, s, e) ? o++ : c.I.push(r);
  3187. return Ba(a, o), c.R = !1, Da(c.d, a), A(a), b--, t.Gc(), !!c.d.length;
  3188. }
  3189. }, t.prototype.It = function (t, i) {
  3190. if (!t)
  3191. return !1;
  3192. var s = t.N(), e = s.Zb();
  3193. return !((i = ta(i)) < 0 || i >= e.length || (s.Fg(e[i]), t.Gc(), 0));
  3194. }, t.prototype.ws = function (t, i, s) {
  3195. return ic(t.of(), i, s);
  3196. }, t.prototype.Qs = function (t) {
  3197. return (t = this.b.wh[t.toLowerCase()]) && t.dg;
  3198. }, t.prototype.Ws = function () {
  3199. return 'undefined' != typeof cr_is_preview;
  3200. }, t.prototype.Gt = function (t) {
  3201. return !(!t || !t.d.length || (t.N().R = !0, t.Gc(), 0));
  3202. }, t.prototype.Ss = function () {
  3203. return this.b.sf;
  3204. }, t.prototype.ho = function () {
  3205. var t = this.b.Ea();
  3206. return !t.$l && !t.xf;
  3207. }, t.prototype.uo = function () {
  3208. return !0;
  3209. }, t.prototype.jt = function () {
  3210. return !0;
  3211. }, t.prototype.Cs = function () {
  3212. return !!this.b.k;
  3213. }, t.prototype.ql = function () {
  3214. return !0;
  3215. }, t.prototype.zo = function () {
  3216. return !0;
  3217. }, t.prototype.ut = function () {
  3218. return !0;
  3219. }, t.prototype.Vi = function () {
  3220. return !0;
  3221. };
  3222. var h = null, n = '', o = '';
  3223. t.prototype.Qt = function (t, i, s) {
  3224. return h && i === n && s === o || (h = new RegExp(i, s), n = i, o = s), h.lastIndex = 0, h.test(t);
  3225. };
  3226. var a = [];
  3227. t.prototype.Jt = function (t, i, s) {
  3228. if (!t)
  3229. return !1;
  3230. var e, h = t.N(), n = h.Zb(), o = this.b.Ea().Ia.kc, r = this.b.Qj();
  3231. for (h.R ? (Da(a, n), A(h.I), h.R = !1, A(h.d)) : o ? (Da(a, h.I), A(h.I)) : (Da(a, n), A(h.d)), n = 0, o = a.length; n < o; ++n)
  3232. (e = a[n]).Aa(), Wa(e.Ib(i, s), r.fg) ? h.d.push(e) : h.I.push(e);
  3233. return t.Gc(), Wa(!!h.d.length, r.fg);
  3234. }, t.prototype.kl = function (t, i, s) {
  3235. return Ra(G(t), G(s)) <= G(i);
  3236. }, t.prototype.Ps = function (t, i) {
  3237. return Ta(G(t), G(i));
  3238. }, t.prototype.Ns = function (t, i, s) {
  3239. return t = Oa(t), i = Oa(i), s = Oa(s), Ta(s, i) ? Ta(t, i) && !Ta(t, s) : !(!Ta(t, i) && Ta(t, s));
  3240. }, e.c = new t(), i.prototype.Is = function (t) {
  3241. this.b.Mh || this.b.ih || (this.b.ih = t);
  3242. }, i.prototype.As = function (t, i, s, e) {
  3243. if (i && t && (i = this.b.Rl(t, i, s, e))) {
  3244. var h;
  3245. if (this.b.wc++, this.b.trigger(Object.getPrototypeOf(t.X).c.Jd, i), i.Ab)
  3246. for (s = 0, e = i.siblings.length; s < e; s++)
  3247. h = i.siblings[s], this.b.trigger(Object.getPrototypeOf(h.type.X).c.Jd, h);
  3248. if (this.b.wc--, (t = t.N()).R = !1, A(t.d), (t.d[0] = i).Ab)
  3249. for (s = 0, e = i.siblings.length; s < e; s++)
  3250. (t = (h = i.siblings[s]).type.N()).R = !1, A(t.d), t.d[0] = h;
  3251. }
  3252. }, i.prototype.Ut = function (t) {
  3253. this.b.ba.Kk(t);
  3254. }, i.prototype.Vt = function (t) {
  3255. this.b.ba.Lk(t);
  3256. }, i.prototype.Tt = function (t, i) {
  3257. this.b.ba.Kk(t), this.b.ba.Lk(i);
  3258. }, i.prototype.ku = function (t, i) {
  3259. 0 === t.Fi ? ja(i) ? t.he(i) : t.he(parseFloat(i)) : 1 === t.Fi && t.he(i.toString());
  3260. }, i.prototype.ks = function (t, i) {
  3261. 0 === t.Fi ? ja(i) ? t.he(t.of() + i) : t.he(t.of() + parseFloat(i)) : 1 === t.Fi && t.he(t.of() + i.toString());
  3262. }, i.prototype.su = function (t, i) {
  3263. 0 === t.Fi && (ja(i) ? t.he(t.of() - i) : t.he(t.of() - parseFloat(i)));
  3264. }, i.prototype.ju = function (t) {
  3265. t < 0 && (t = 0), this.b.Jf = t;
  3266. };
  3267. var r = [], c = [];
  3268. i.prototype.vu = function (t) {
  3269. if (!(t < 0)) {
  3270. var i, s, e, h, n = this.b.Ea();
  3271. for ((h = r.length ? r.pop() : {
  3272. Sb: {},
  3273. V: []
  3274. }).Xl = !1, h.time = this.b.Bb.Z + t, h.Gr = '', h.En = !1, h.Yf = n.Ia, h.Wb = n.Wb + 1, t = 0, i = this.b.p.length; t < i; t++)
  3275. (s = (e = this.b.p[t]).N()).R && -1 === n.Ia.V.indexOf(e) || (h.V.push(e), e = void 0, (e = c.length ? c.pop() : { Xd: [] }).Jk = !1, e.Jk = s.R, Da(e.Xd, s.d), h.Sb[t.toString()] = e);
  3276. return this.fc.push(h), !0;
  3277. }
  3278. }, i.prototype.cu = function (t, i) {
  3279. t && !!i != !!t.Dc && (t.Dc = !!i, this.b.fa = !0);
  3280. }, e.e = new i(), s.prototype.int = function (t, i) {
  3281. z(i) ? (t.H(parseInt(i, 10)), isNaN(t.data) && (t.data = 0)) : t.H(i);
  3282. }, s.prototype.float = function (t, i) {
  3283. z(i) ? (t.n(parseFloat(i)), isNaN(t.data) && (t.data = 0)) : t.n(i);
  3284. }, s.prototype.qx = function (t, i) {
  3285. t.H(i.length || 0);
  3286. }, s.prototype.random = function (t, i, s) {
  3287. void 0 === s ? t.n(Math.random() * i) : t.n(Math.random() * (s - i) + i);
  3288. }, s.prototype.sqrt = function (t, i) {
  3289. t.n(Math.sqrt(i));
  3290. }, s.prototype.abs = function (t, i) {
  3291. t.n(Math.abs(i));
  3292. }, s.prototype.round = function (t, i) {
  3293. t.H(Math.round(i));
  3294. }, s.prototype.floor = function (t, i) {
  3295. t.H(Math.floor(i));
  3296. }, s.prototype.ceil = function (t, i) {
  3297. t.H(Math.ceil(i));
  3298. }, s.prototype.sin = function (t, i) {
  3299. t.n(Math.sin(G(i)));
  3300. }, s.prototype.cos = function (t, i) {
  3301. t.n(Math.cos(G(i)));
  3302. }, s.prototype.tan = function (t, i) {
  3303. t.n(Math.tan(G(i)));
  3304. }, s.prototype.asin = function (t, i) {
  3305. t.n(Ka(Math.asin(i)));
  3306. }, s.prototype.acos = function (t, i) {
  3307. t.n(Ka(Math.acos(i)));
  3308. }, s.prototype.atan = function (t, i) {
  3309. t.n(Ka(Math.atan(i)));
  3310. }, s.prototype.exp = function (t, i) {
  3311. t.n(Math.exp(i));
  3312. }, s.prototype.log10 = function (t, i) {
  3313. t.n(Math.log(i) / Math.LN10);
  3314. }, s.prototype.max = function (t) {
  3315. var i, s, e, h = arguments[1];
  3316. for ('number' != typeof h && (h = 0), i = 2, s = arguments.length; i < s; i++)
  3317. 'number' == typeof (e = arguments[i]) && h < e && (h = e);
  3318. t.n(h);
  3319. }, s.prototype.min = function (t) {
  3320. var i, s, e, h = arguments[1];
  3321. for ('number' != typeof h && (h = 0), i = 2, s = arguments.length; i < s; i++)
  3322. 'number' == typeof (e = arguments[i]) && e < h && (h = e);
  3323. t.n(h);
  3324. }, s.prototype.De = function (t) {
  3325. t.n(this.b.De);
  3326. }, s.prototype.Jf = function (t) {
  3327. t.n(this.b.Jf);
  3328. }, s.prototype.time = function (t) {
  3329. t.n(this.b.Bb.Z);
  3330. }, s.prototype.Rg = function (t) {
  3331. t.H(this.b.Rg);
  3332. }, s.prototype.rk = function (t) {
  3333. t.H(this.b.rk);
  3334. }, s.prototype.gm = function (t) {
  3335. t.H(this.b.gm);
  3336. }, s.prototype.ux = function (t, i) {
  3337. var s, e;
  3338. if (this.b.Yh.length)
  3339. if (i) {
  3340. for (e = this.b.Zh; 0 <= e; --e)
  3341. if ((s = this.b.Yh[e]).name === i)
  3342. return void t.H(s.index);
  3343. t.H(0);
  3344. } else
  3345. s = this.b.up(), t.H(s ? s.index : -1);
  3346. else
  3347. t.H(0);
  3348. }, s.prototype.Xu = function (t, i, s, e, h) {
  3349. t.n(Va(i, s, e, h));
  3350. }, s.prototype.m = function (t, i, s, e, h) {
  3351. t.n(Ka(Pa(i, s, e, h)));
  3352. }, s.prototype.Ax = function (t) {
  3353. t.la('\n');
  3354. }, s.prototype.Oy = function (t, i) {
  3355. t.la(z(i) ? i.toUpperCase() : '');
  3356. }, s.prototype.ox = function (t) {
  3357. t.H(this.b.ba.width);
  3358. }, s.prototype.nx = function (t) {
  3359. t.H(this.b.ba.height);
  3360. }, s.prototype.left = function (t, i, s) {
  3361. t.la(z(i) ? i.substr(0, s) : '');
  3362. }, s.prototype.right = function (t, i, s) {
  3363. t.la(z(i) ? i.substr(i.length - s) : '');
  3364. }, s.prototype.yx = function (t, i, s, e) {
  3365. t.la(z(i) ? i.substr(s, e) : '');
  3366. }, s.prototype.Jy = function (t, i, s, e) {
  3367. z(i) && z(e) ? (i = i.split(e), (s = ta(s)) < 0 || s >= i.length ? t.la('') : t.la(i[s])) : t.la('');
  3368. }, s.prototype.Ky = function (t, i, s) {
  3369. z(i) && i.length ? t.H(i.split(s).length) : t.H(0);
  3370. }, s.prototype.replace = function (t, i, s, e) {
  3371. z(i) && z(s) && z(e) ? t.la(i.replace(new RegExp(fb(s), 'gi'), e)) : t.la(z(i) ? i : '');
  3372. }, s.prototype.trim = function (t, i) {
  3373. t.la(z(i) ? i.trim() : '');
  3374. }, s.prototype.Rx = function (t) {
  3375. t.n(sa);
  3376. }, s.prototype.Yo = function (t) {
  3377. var i = ta(Math.random() * (arguments.length - 1));
  3378. t.Kg(arguments[i + 1]);
  3379. }, s.prototype.Vy = function (t, i, s) {
  3380. var e = i < 0 ? '-' : '';
  3381. i < 0 && (i = -i), s -= i.toString().length;
  3382. for (var h = 0; h < s; h++)
  3383. e += '0';
  3384. t.la(e + i.toString());
  3385. }, s.prototype.Pl = function (t) {
  3386. t.n(this.b.Pl / 1000);
  3387. }, s.prototype.jk = function (t) {
  3388. t.n(this.b.jk);
  3389. }, s.prototype.Nu = function (t, i, s, e) {
  3390. i = this.b.wp(i), t.n(i ? i.ub(s, e, !0) : 0);
  3391. }, s.prototype.Ou = function (t, i, s, e) {
  3392. i = this.b.wp(i), t.n(i ? i.ub(s, e, !1) : 0);
  3393. }, s.prototype.Uw = function (t) {
  3394. t.n(1 / 0);
  3395. }, s.prototype.Px = function (t) {
  3396. t.H(this.b.Wa);
  3397. }, s.prototype.Ox = function (t) {
  3398. t.H(this.b.Va);
  3399. }, e.g = new s(), e.jy = function () {
  3400. var t, i, s, e, h, n, o = this.b.Ea();
  3401. for (t = 0, s = this.fc.length; t < s; t++) {
  3402. if (-1 === (e = this.fc[t]).time) {
  3403. if (!e.En)
  3404. continue;
  3405. } else if (e.time > this.b.Bb.Z)
  3406. continue;
  3407. for (i in (o.Ia = e.Yf, o.Wb = e.Wb, o.Ra = 0, e.Sb))
  3408. e.Sb.hasOwnProperty(i) && (h = this.b.p[parseInt(i, 10)].N(), n = e.Sb[i], h.R = n.Jk, Da(h.d, n.Xd), A((h = n).Xd), c.push(h));
  3409. e.Yf.iy(), this.b.Nl(e.V), e.Xl = !0;
  3410. }
  3411. for (i = t = 0, s = this.fc.length; t < s; t++)
  3412. e = this.fc[t], (this.fc[i] = e).Xl ? (Ya(e.Sb), A(e.V), r.push(e)) : i++;
  3413. Ba(this.fc, i);
  3414. };
  3415. }(), function () {
  3416. rb = function (t, i) {
  3417. var s = t[1], e = t[3], h = t[4], n = t[5], o = t[6], r = t[7], a = t[8];
  3418. i.c || (i.c = {}), i.e || (i.e = {}), i.g || (i.g = {});
  3419. var c = i.c, p = i.e, u = i.g;
  3420. e && (c.Ni = function (t, i) {
  3421. return ic(this.x, t, i);
  3422. }, c.fo = function (t, i) {
  3423. return ic(this.y, t, i);
  3424. }, c.Zy = function () {
  3425. var t = this.j;
  3426. this.Aa();
  3427. var i = this.Qa;
  3428. return !(i.right < t.ma || i.bottom < t.na || i.left > t.wa || i.top > t.ua);
  3429. }, c.ko = function () {
  3430. this.Aa();
  3431. var t = this.Qa, i = this.b.ba;
  3432. return t.right < 0 || t.bottom < 0 || t.left > i.width || t.top > i.height;
  3433. }, c.ez = function (t, i, s) {
  3434. var e = this.N(), h = e.Zb();
  3435. if (!h.length)
  3436. return !1;
  3437. var n, o, r, a = h[0], c = a, p = Va(a.x, a.y, i, s);
  3438. for (n = 1, o = h.length; n < o; n++)
  3439. a = h[n], r = Va(a.x, a.y, i, s), (0 === t && r < p || 1 === t && p < r) && (p = r, c = a);
  3440. return e.Fg(c), !0;
  3441. }, p.Pf = function (t) {
  3442. this.x !== t && (this.x = t, this.za());
  3443. }, p.$i = function (t) {
  3444. this.y !== t && (this.y = t, this.za());
  3445. }, p.fu = function (t, i) {
  3446. this.x === t && this.y === i || (this.x = t, this.y = i, this.za());
  3447. }, p.Eo = function (t, i) {
  3448. var s, e = t.ww(this);
  3449. e && (e = e.nf ? (s = e.nf(i, !0), e.nf(i, !1)) : (s = e.x, e.y), this.x === s && this.y === e || (this.x = s, this.y = e, this.za()));
  3450. }, p.bz = function (t) {
  3451. 0 !== t && (this.x += Math.cos(this.m) * t, this.y += Math.sin(this.m) * t, this.za());
  3452. }, p.az = function (t, i) {
  3453. 0 !== i && (this.x += Math.cos(G(t)) * i, this.y += Math.sin(G(t)) * i, this.za());
  3454. }, u.aj = function (t) {
  3455. t.n(this.x);
  3456. }, u.Al = function (t) {
  3457. t.n(this.y);
  3458. }, u.De = function (t) {
  3459. t.n(this.b.Rj(this));
  3460. }), h && (c.Wy = function (t, i) {
  3461. return ic(this.width, t, i);
  3462. }, c.ss = function (t, i) {
  3463. return ic(this.height, t, i);
  3464. }, p.Zi = function (t) {
  3465. this.width !== t && (this.width = t, this.za());
  3466. }, p.Xi = function (t) {
  3467. this.height !== t && (this.height = t, this.za());
  3468. }, p.$g = function (t, i) {
  3469. this.width === t && this.height === i || (this.width = t, this.height = i, this.za());
  3470. }, u.bh = function (t) {
  3471. t.n(this.width);
  3472. }, u.Oi = function (t) {
  3473. t.n(this.height);
  3474. }, u.Zn = function (t) {
  3475. this.Aa(), t.n(this.Qa.left);
  3476. }, u.ao = function (t) {
  3477. this.Aa(), t.n(this.Qa.top);
  3478. }, u.$n = function (t) {
  3479. this.Aa(), t.n(this.Qa.right);
  3480. }, u.Yn = function (t) {
  3481. this.Aa(), t.n(this.Qa.bottom);
  3482. }), n && (c.kl = function (t, i) {
  3483. return Ra(this.m, G(i)) <= G(t);
  3484. }, c.Ps = function (t) {
  3485. return Ta(this.m, G(t));
  3486. }, c.Ns = function (t, i) {
  3487. var s = Oa(t), e = Oa(i), h = Ma(this.m);
  3488. return Ta(e, s) ? Ta(h, s) && !Ta(h, e) : !(!Ta(h, s) && Ta(h, e));
  3489. }, p.Co = function (t) {
  3490. t = G(La(t)), isNaN(t) || this.m === t || (this.m = t, this.za());
  3491. }, p.hz = function (t) {
  3492. 0 === t || isNaN(t) || (this.m += G(t), this.m = Ma(this.m), this.za());
  3493. }, p.iz = function (t) {
  3494. 0 === t || isNaN(t) || (this.m -= G(t), this.m = Ma(this.m), this.za());
  3495. }, p.jz = function (t, i) {
  3496. var s = Sa(this.m, G(i), G(t));
  3497. isNaN(s) || this.m === s || (this.m = s, this.za());
  3498. }, p.kz = function (t, i, s) {
  3499. t = Sa(this.m, Math.atan2(s - this.y, i - this.x), G(t)), isNaN(t) || this.m === t || (this.m = t, this.za());
  3500. }, p.lz = function (t, i) {
  3501. var s = Math.atan2(i - this.y, t - this.x);
  3502. isNaN(s) || this.m === s || (this.m = s, this.za());
  3503. }, u.ls = function (t) {
  3504. t.n(Na(this.m));
  3505. }), s || (c.Mi = function (t, i, s) {
  3506. return ic(this.hb[t], i, s);
  3507. }, c.ml = function (t) {
  3508. return this.hb[t];
  3509. }, c.fz = function (t, i) {
  3510. var s = this.N(), e = s.Zb();
  3511. if (!e.length)
  3512. return !1;
  3513. var h, n, o, r = e[0], a = r, c = r.hb[i];
  3514. for (h = 1, n = e.length; h < n; h++)
  3515. o = (r = e[h]).hb[i], (0 === t && o < c || 1 === t && c < o) && (c = o, a = r);
  3516. return s.Fg(a), !0;
  3517. }, c.Bo = function (t) {
  3518. var i, s, e, h, n;
  3519. if (this.b.Qj().fg) {
  3520. if ((n = this.N()).R)
  3521. for (n.R = !1, A(n.d), A(n.I), i = 0, s = (e = this.d).length; i < s; i++)
  3522. (h = e[i]).uid === t ? n.I.push(h) : n.d.push(h);
  3523. else {
  3524. for (e = i = 0, s = n.d.length; i < s; i++)
  3525. h = n.d[i], (n.d[e] = h).uid === t ? n.I.push(h) : e++;
  3526. Ba(n.d, e);
  3527. }
  3528. return this.Gc(), !!n.d.length;
  3529. }
  3530. if (!(h = this.b.Uj(t)))
  3531. return !1;
  3532. if (!(n = this.N()).R && -1 === n.d.indexOf(h))
  3533. return !1;
  3534. if (this.B) {
  3535. for (i = 0, s = (t = h.type.Da).length; i < s; i++)
  3536. if (t[i] === this)
  3537. return n.Fg(h), this.Gc(), !0;
  3538. } else if (h.type === this)
  3539. return n.Fg(h), this.Gc(), !0;
  3540. return !1;
  3541. }, c.Jd = function () {
  3542. return !0;
  3543. }, c.po = function () {
  3544. return !0;
  3545. }, p.Yi = function (t, i) {
  3546. var s = this.hb;
  3547. ja(s[t]) ? s[t] = ja(i) ? i : parseFloat(i) : z(s[t]) && (s[t] = z(i) ? i : i.toString());
  3548. }, p.jl = function (t, i) {
  3549. var s = this.hb;
  3550. ja(s[t]) ? s[t] = ja(i) ? s[t] + i : s[t] + parseFloat(i) : z(s[t]) && (s[t] = z(i) ? s[t] + i : s[t] + i.toString());
  3551. }, p.zl = function (t, i) {
  3552. var s = this.hb;
  3553. ja(s[t]) && (s[t] = ja(i) ? s[t] - i : s[t] - parseFloat(i));
  3554. }, p.ul = function (t, i) {
  3555. this.hb[t] = i ? 1 : 0;
  3556. }, p.mz = function (t) {
  3557. this.hb[t] = 1 - this.hb[t];
  3558. }, p.Yg = function () {
  3559. this.b.Xe(this);
  3560. }, p.ct || (p.ct = function (t) {
  3561. var i, s;
  3562. try {
  3563. i = JSON.parse(t);
  3564. } catch (t) {
  3565. return;
  3566. }
  3567. if (this.b.hk(this, i, !0), this.Kd && this.Kd(), this.L)
  3568. for (t = 0, i = this.L.length; t < i; ++t)
  3569. (s = this.L[t]).Kd && s.Kd();
  3570. }), u.zs = function (t) {
  3571. var i, s, e, h = t.Df.d.length;
  3572. for (i = 0, s = this.b.cd.length; i < s; i++)
  3573. e = this.b.cd[i], t.Df.B ? 0 <= e.type.Da.indexOf(t.Df) && h++ : e.type === t.Df && h++;
  3574. t.H(h);
  3575. }, u.Kt = function (t) {
  3576. t.H(t.Df.N().Zb().length);
  3577. }, u.Go = function (t) {
  3578. t.H(this.uid);
  3579. }, u.Xy = function (t) {
  3580. t.H(this.uh());
  3581. }, u.ll || (u.ll = function (t) {
  3582. t.la(JSON.stringify(this.b.An(this, !0)));
  3583. })), o && (c.lo = function () {
  3584. return this.visible;
  3585. }, p.ah = function (t) {
  3586. !t != !this.visible && (this.visible = !!t, this.b.fa = !0);
  3587. }, c.eo = function (t, i) {
  3588. return ic(lb(100 * this.opacity), t, i);
  3589. }, p.Do = function (t) {
  3590. (t /= 100) < 0 ? t = 0 : 1 < t && (t = 1), t !== this.opacity && (this.opacity = t, this.b.fa = !0);
  3591. }, u.Opacity = function (t) {
  3592. t.n(lb(100 * this.opacity));
  3593. }), r && (c.Yy = function (t) {
  3594. return !!t && this.j === t;
  3595. }, c.gz = function (t) {
  3596. var i = this.N(), s = i.Zb();
  3597. if (!s.length)
  3598. return !1;
  3599. var e, h, n = s[0], o = n;
  3600. for (e = 1, h = s.length; e < h; e++)
  3601. n = s[e], 0 === t ? (n.j.index > o.j.index || n.j.index === o.j.index && n.wd() > o.wd()) && (o = n) : (n.j.index < o.j.index || n.j.index === o.j.index && n.wd() < o.wd()) && (o = n);
  3602. return i.Fg(o), !0;
  3603. }, p.ft = function () {
  3604. var t = this.j, i = t.d;
  3605. i.length && i[i.length - 1] === this || (t.Gg(this, !1), t.fh(this, !1), this.b.fa = !0);
  3606. }, p.dt = function () {
  3607. var t = this.j, i = t.d;
  3608. i.length && i[0] === this || (t.Gg(this, !1), t.Yx(this), this.b.fa = !0);
  3609. }, p.et = function (t) {
  3610. t && t != this.j && (this.j.Gg(this, !0), (this.j = t).fh(this, !0), this.b.fa = !0);
  3611. }, p.Ho = function (t, i) {
  3612. var s = 0 === t;
  3613. if (i) {
  3614. var e = i.qw(this);
  3615. e && e.uid !== this.uid && (this.j.index !== e.j.index && (this.j.Gg(this, !0), this.j = e.j, e.j.fh(this, !0)), this.j.zx(this, e, s), this.b.fa = !0);
  3616. }
  3617. }, u.bt = function (t) {
  3618. t.H(this.j.Jq);
  3619. }, u.$y = function (t) {
  3620. t.la(this.j.name);
  3621. }, u.nz = function (t) {
  3622. t.H(this.wd());
  3623. }), a && (p.au = function (t, i) {
  3624. if (this.b.k) {
  3625. var s = this.type.lm(i);
  3626. if (!(s < 0)) {
  3627. var e = 1 === t;
  3628. this.re[s] !== e && (this.re[s] = e, this.nd(), this.b.fa = !0);
  3629. }
  3630. }
  3631. }, p.wl = function (t, i, s) {
  3632. if (this.b.k) {
  3633. var e = this.type.lm(t);
  3634. e < 0 || (t = this.type.M[e], e = this.Ja[e], (i = Math.floor(i)) < 0 || i >= e.length || (1 === this.b.k.Aw(t.Za, i) && (s /= 100), e[i] !== s && (e[i] = s, t.nc && (this.b.fa = !0))));
  3635. }
  3636. });
  3637. }, Ob = function () {
  3638. this.Kl = this.Fl = !0, this.type.ej = !0, this.b.fa = !0;
  3639. var t, i, s = this.Gl;
  3640. for (t = 0, i = s.length; t < i; ++t)
  3641. s[t](this);
  3642. this.j.Ec && this.Aa();
  3643. }, Pb = function (t) {
  3644. t && this.Gl.push(t);
  3645. }, Rb = function () {
  3646. if (this.Fl) {
  3647. var t = this.Qa, i = this.Xb;
  3648. t.set(this.x, this.y, this.x + this.width, this.y + this.height), t.offset(-this.Nb * this.width, -this.Ob * this.height), this.m ? (t.offset(-this.x, -this.y), i.Br(t, this.m), i.offset(this.x, this.y), i.To(t)) : i.ni(t), t.normalize(), this.Fl = !1, this.Ny();
  3649. }
  3650. };
  3651. var s = new wa(0, 0, 0, 0);
  3652. Sb = function () {
  3653. if (this.j.Ec) {
  3654. var t = this.j.Eb, i = this.Qa;
  3655. s.set(t.Ub(i.left), t.Vb(i.top), t.Ub(i.right), t.Vb(i.bottom)), this.ac.oh(s) || (this.ac.right < this.ac.left ? t.update(this, null, s) : t.update(this, this.ac, s), this.ac.Vf(s), this.j.ld = !0);
  3656. }
  3657. }, Tb = function () {
  3658. if (this.Kl && this.$e) {
  3659. this.Aa();
  3660. var t = this.type.rj, i = this.Qa;
  3661. s.set(t.Ub(i.left), t.Vb(i.top), t.Ub(i.right), t.Vb(i.bottom)), this.ze.oh(s) || (this.ze.right < this.ze.left ? t.update(this, null, s) : t.update(this, this.ze, s), this.ze.Vf(s), this.Kl = !1);
  3662. }
  3663. }, Qb = function (t, i) {
  3664. return !(!this.Qa.Ib(t, i) || !this.Xb.Ib(t, i)) && (this.Sg ? this.Jz(t, i) : !(this.ga && !this.ga.jg()) || (this.ga.Sf(this.width, this.height, this.m), this.ga.Ib(t - this.x, i - this.y)));
  3665. }, Kb = function () {
  3666. return this.type.cl(), this.rf;
  3667. }, Ub = function () {
  3668. return this.j.Tn(), this.pd;
  3669. }, Vb = function () {
  3670. A(this.ea);
  3671. var t, i, s, e = !0;
  3672. for (t = 0, i = this.re.length; t < i; t++)
  3673. this.re[t] && (s = this.type.M[t], this.ea.push(s), s.Rc || (e = !1));
  3674. this.as = !!this.ea.length, this.ie = e;
  3675. }, Lb = function () {
  3676. return 'Inst' + this.ir;
  3677. }, ub = function (t) {
  3678. var i, s, e;
  3679. if (t && t.Ab && t.type != this)
  3680. for (i = 0, s = t.siblings.length; i < s; i++)
  3681. if ((e = t.siblings[i]).type == this)
  3682. return e;
  3683. return (t = this.N().Zb()).length ? t[0] : null;
  3684. }, vb = function (t) {
  3685. var i = this.N().Zb();
  3686. return i.length ? i[t.uh() % i.length] : null;
  3687. }, tb = function () {
  3688. if (this.Ng && !this.B) {
  3689. var t, i;
  3690. for (t = 0, i = this.d.length; t < i; t++)
  3691. this.d[t].rf = t;
  3692. var s = t, e = this.b.cd;
  3693. for (t = 0, i = e.length; t < i; ++t)
  3694. e[t].type === this && (e[t].rf = s++);
  3695. this.Ng = !1;
  3696. }
  3697. }, Ib = function (t) {
  3698. if (t < this.d.length)
  3699. return this.d[t];
  3700. t -= this.d.length;
  3701. var i, s, e = this.b.cd;
  3702. for (i = 0, s = e.length; i < s; ++i)
  3703. if (e[i].type === this) {
  3704. if (0 === t)
  3705. return e[i];
  3706. --t;
  3707. }
  3708. return null;
  3709. }, wb = function () {
  3710. return this.ke[this.sd];
  3711. }, xb = function () {
  3712. this.sd++, this.sd === this.ke.length ? this.ke.push(new sb(this)) : (this.ke[this.sd].R = !0, A(this.ke[this.sd].I));
  3713. }, yb = function () {
  3714. this.sd++, this.sd === this.ke.length && this.ke.push(new sb(this));
  3715. var t = this.ke[this.sd], i = this.ke[this.sd - 1];
  3716. i.R ? t.R = !0 : (t.R = !1, Da(t.d, i.d)), A(t.I);
  3717. }, zb = function () {
  3718. this.sd--;
  3719. }, Ab = function (t) {
  3720. var i, s, e, h, n, o = 0;
  3721. if (!this.B)
  3722. for (i = 0, s = this.Da.length; i < s; i++)
  3723. for (e = 0, h = (n = this.Da[i]).Ha.length; e < h; e++) {
  3724. if (t === n.Ha[e].name)
  3725. return this.ja.lastBehIndex = o, n.Ha[e];
  3726. o++;
  3727. }
  3728. for (i = 0, s = this.Ha.length; i < s; i++) {
  3729. if (t === this.Ha[i].name)
  3730. return this.ja.lastBehIndex = o, this.Ha[i];
  3731. o++;
  3732. }
  3733. return null;
  3734. }, Bb = function (t) {
  3735. return this.Pj(t) ? this.ja.lastBehIndex : -1;
  3736. }, Cb = function (t) {
  3737. var i, s;
  3738. for (i = 0, s = this.M.length; i < s; i++)
  3739. if (this.M[i].name === t)
  3740. return i;
  3741. return -1;
  3742. }, Hb = function () {
  3743. if (this.Ab && !this.B) {
  3744. var t, i, s, e, h, n, o;
  3745. this.cl();
  3746. var r = (n = this.N()).R, a = (t = this.b.Ea()) && t.Ia && t.Ia.kc;
  3747. for (t = 0, i = this.hc.length; t < i; t++)
  3748. if ((h = this.hc[t]) !== this && (h.cl(), !((o = h.N()).R = r))) {
  3749. for (A(o.d), s = 0, e = n.d.length; s < e; ++s)
  3750. o.d[s] = h.mm(n.d[s].rf);
  3751. if (a)
  3752. for (A(o.I), s = 0, e = n.I.length; s < e; ++s)
  3753. o.I[s] = h.mm(n.I[s].rf);
  3754. }
  3755. }
  3756. }, Jb = function () {
  3757. return 'Type' + this.Y;
  3758. }, ic = function (t, i, s) {
  3759. if (void 0 === t || void 0 === s)
  3760. return !1;
  3761. switch (i) {
  3762. case 0:
  3763. return t === s;
  3764. case 1:
  3765. return t !== s;
  3766. case 2:
  3767. return t < s;
  3768. case 3:
  3769. return t <= s;
  3770. case 4:
  3771. return s < t;
  3772. case 5:
  3773. return s <= t;
  3774. default:
  3775. return !1;
  3776. }
  3777. };
  3778. }();
  3779. var qc = {
  3780. tint: {
  3781. src: 'varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp float red;\nuniform lowp float green;\nuniform lowp float blue;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\ngl_FragColor = front * vec4(red, green, blue, 1.0);\n}',
  3782. Ej: 0,
  3783. Fj: 0,
  3784. Sl: !1,
  3785. Rc: !0,
  3786. Cl: !1,
  3787. O: [["red",0,1],["green",0,1],["blue",0,1]]
  3788. }
  3789. };
  3790. function X(t) {
  3791. this.b = t;
  3792. }
  3793. function tc(t) {
  3794. this.b = t;
  3795. }
  3796. function uc(t) {
  3797. this.b = t;
  3798. }
  3799. function vc(t) {
  3800. this.b = t;
  3801. }
  3802. function wc(t) {
  3803. this.b = t;
  3804. }
  3805. function sc(t) {
  3806. this.b = t;
  3807. }
  3808. function xc(t) {
  3809. this.b = t;
  3810. }
  3811. function Y(t) {
  3812. this.b = t;
  3813. }
  3814. function V(t) {
  3815. this.b = t;
  3816. }
  3817. function yc(t) {
  3818. this.b = t;
  3819. }
  3820. function zc(t) {
  3821. this.b = t;
  3822. }
  3823. function Z(t) {
  3824. this.b = t;
  3825. }
  3826. function Ac(t) {
  3827. this.b = t;
  3828. }
  3829. function Bc(t) {
  3830. this.b = t;
  3831. }
  3832. function Cc(t) {
  3833. this.b = t;
  3834. }
  3835. function Ic(t) {
  3836. this.b = t;
  3837. }
  3838. function Jc(t) {
  3839. this.b = t;
  3840. }
  3841. function rc() {
  3842. return [Y,X,wc,tc,uc,Ac,sc,vc,xc,Bc,V,Z,yc,zc,Jc,Ic,Cc,T.prototype.c.to,tc.prototype.e.$g,tc.prototype.e.Ot,sc.prototype.e.CallFunction,T.prototype.e.ku,T.prototype.e.cu,V.prototype.e.Xt,yc.prototype.c.Mi,yc.prototype.e.iu,T.prototype.g.Oy,T.prototype.c.ws,uc.prototype.e.Nt,uc.prototype.e.Play,V.prototype.e.Yi,T.prototype.e.As,yc.prototype.e.Yi,yc.prototype.e.Zi,yc.prototype.e.Xi,sc.prototype.c.Ui,yc.prototype.e.Yg,T.prototype.c.Ds,sc.prototype.g.Ft,T.prototype.c.qs,wc.prototype.g.Zs,tc.prototype.g.bh,T.prototype.c.Cs,T.prototype.c.ho,V.prototype.c.Mi,T.prototype.e.vu,V.prototype.e.Yg,V.prototype.e.Pf,wc.prototype.g.Hs,Cc.prototype.e.xl,Cc.prototype.e.hu,V.prototype.g.zs,V.prototype.e.jl,T.prototype.g.Yo,uc.prototype.e.du,uc.prototype.e.Fo,Y.prototype.e.Yg,V.prototype.e.ah,Y.prototype.e.Yi,uc.prototype.c.Xs,Y.prototype.g.Zn,Y.prototype.g.ao,Y.prototype.g.$n,Y.prototype.g.Yn,uc.prototype.e.pu,T.prototype.e.Is,uc.prototype.e.Lt,sc.prototype.c.ts,uc.prototype.e.eu,T.prototype.g.float,T.prototype.g.int,Y.prototype.e.ah,T.prototype.c.Qs,yc.prototype.e.$g,yc.prototype.e.yl,T.prototype.c.Gs,V.prototype.g.aj,V.prototype.g.Al,V.prototype.e.ul,tc.prototype.c.Ni,V.prototype.e.ft,T.prototype.g.floor,T.prototype.g.random,V.prototype.e.qu,T.prototype.g.cos,T.prototype.g.De,V.prototype.c.Ni,yc.prototype.e.wl,V.prototype.e.ou,V.prototype.e.yl,V.prototype.e.$i,V.prototype.e.Zi,V.prototype.g.bh,V.prototype.e.Do,V.prototype.g.Opacity,V.prototype.c.eo,V.prototype.c.mo,yc.prototype.e.ul,tc.prototype.c.us,T.prototype.c.Fs,T.prototype.g.min,T.prototype.g.ux,tc.prototype.g.ms,tc.prototype.c.xs,T.prototype.e.ks,T.prototype.g.Ax,tc.prototype.e.Bs,tc.prototype.g.ns,T.prototype.c.Gt,V.prototype.e.Eo,Y.prototype.e.Pf,Y.prototype.e.$i,Y.prototype.e.Zi,Y.prototype.e.ul,Cc.prototype.e.Wt,Y.prototype.e.dt,Y.prototype.g.bh,Y.prototype.e.Ho,T.prototype.g.sin,Y.prototype.g.aj,Y.prototype.g.Al,Y.prototype.c.ml,Y.prototype.c.Mi,T.prototype.c.Ht,V.prototype.e.Co,V.prototype.e.wl,V.prototype.g.ls,sc.prototype.e.gu,V.prototype.c.Vs,V.prototype.c.kl,Y.prototype.c.fo,Cc.prototype.g.yb,V.prototype.g.Yn,sc.prototype.g.bo,Cc.prototype.g.xb,Cc.prototype.c.ol,V.prototype.c.ml,T.prototype.g.abs,T.prototype.e.su,Cc.prototype.c.vs,Cc.prototype.e.ru,Cc.prototype.c.pl,Y.prototype.e.Xi,T.prototype.g.Rx,Y.prototype.c.Ni,T.prototype.g.ox,T.prototype.g.nx,Y.prototype.g.Oi,Y.prototype.e.$g,Y.prototype.g.Go,Y.prototype.c.Bo,Y.prototype.e.zl,T.prototype.c.kl,T.prototype.g.m,Y.prototype.c.ko,zc.prototype.e.Ho,zc.prototype.e.Yi,V.prototype.c.fo,V.prototype.g.jo,V.prototype.e.Xi,V.prototype.g.io,V.prototype.e.zl,zc.prototype.e.ah,V.prototype.c.ss,V.prototype.c.ko,zc.prototype.c.lo,zc.prototype.e.jl,zc.prototype.c.Mi,V.prototype.g.Oi,zc.prototype.e.Do,zc.prototype.c.eo,zc.prototype.e.Xi,zc.prototype.e.Pf,zc.prototype.e.$i,zc.prototype.e.Co,zc.prototype.e.Zi,zc.prototype.g.Opacity,V.prototype.g.$n,V.prototype.g.Zn,V.prototype.c.Us,V.prototype.g.ao,T.prototype.c.It,zc.prototype.e.fu,zc.prototype.e.$g,V.prototype.c.Ms,V.prototype.e.Yt,V.prototype.g.Ks,V.prototype.g.Ls,V.prototype.c.lo,V.prototype.g.bt,T.prototype.g.time,Y.prototype.c.Jd,Y.prototype.e.au,Y.prototype.e.wl,V.prototype.c.Bo,V.prototype.g.Go,V.prototype.g.Kt,Cc.prototype.c.Ts,V.prototype.e.et,zc.prototype.e.Yg,V.prototype.e.mu,Cc.prototype.e.hs,zc.prototype.e.Eo,zc.prototype.g.Oi,zc.prototype.g.bh,T.prototype.g.ceil,zc.prototype.g.aj,T.prototype.g.Vy,T.prototype.g.Px,T.prototype.g.Ox,T.prototype.e.Tt,T.prototype.e.Ut,T.prototype.e.Vt,T.prototype.c.so,T.prototype.c.Ws,Bc.prototype.c.rs,Bc.prototype.c.Os,xc.prototype.c.Rs,T.prototype.c.Ss,Z.prototype.c.tl,vc.prototype.e.St,Z.prototype.g.es,Z.prototype.g.uu,Z.prototype.g.gs,T.prototype.g.Nu,T.prototype.g.Ou,T.prototype.c.Jt,Z.prototype.c.sl,Z.prototype.c.rl,wc.prototype.e.co,wc.prototype.e.js,T.prototype.g.Ky,T.prototype.g.Jy,T.prototype.g.left,T.prototype.g.yx,T.prototype.c.wu,T.prototype.c.Qt,wc.prototype.c.Js,T.prototype.e.ju,yc.prototype.c.Jd,yc.prototype.e.$t,yc.prototype.e.jl,T.prototype.g.qx,yc.prototype.e.zl,yc.prototype.c.ml,yc.prototype.c.po,yc.prototype.e.Pf,yc.prototype.e.$i,V.prototype.c.Jd,tc.prototype.c.nl,tc.prototype.e.lu,wc.prototype.c.nl,X.prototype.e.Rt,X.prototype.c.Zg,X.prototype.g.$s,yc.prototype.e.ah,vc.prototype.c.Ao,vc.prototype.e.ys,vc.prototype.c.Wi,yc.prototype.e.bu,Ac.prototype.e.Yg,Ac.prototype.c.oo,Ac.prototype.g.Es,vc.prototype.g.Pt,tc.prototype.e.Pf,T.prototype.g.Uw,T.prototype.g.Xu,T.prototype.g.Rg,tc.prototype.e.Mt];
  3843. }
  3844. !function () {
  3845. function t() {
  3846. }
  3847. function i() {
  3848. }
  3849. function s() {
  3850. }
  3851. var r = !1, e = null, a = null, c = '', h = X.prototype;
  3852. h.W = function (t) {
  3853. this.X = t, this.b = t.b;
  3854. }, h.W.prototype.D = function () {
  3855. }, h.S = function (t) {
  3856. this.type = t, this.b = t.b, this.rc = this.zd = '', this.$b = 0, this.timeout = -1, (r = this.b.Hh) && (e = require('path'), a = require('fs'), c = e.dirname((window.process || nw.process).execPath) + '\\');
  3857. };
  3858. var n = h.S.prototype, o = null;
  3859. window.C2_AJAX_DCSide = function (t, i, s) {
  3860. o && ('success' === t ? (o.rc = i, o.zd = s, o.b.trigger(X.prototype.c.Pi, o), o.b.trigger(X.prototype.c.Zg, o)) : 'error' === t ? (o.rc = i, o.b.trigger(X.prototype.c.Qi, o), o.b.trigger(X.prototype.c.Ti, o)) : 'progress' === t && (o.$b = s, o.rc = i, o.b.trigger(X.prototype.c.yo, o)));
  3861. }, n.D = function () {
  3862. o = this;
  3863. }, n.Fb = function () {
  3864. return { lastData: this.zd };
  3865. }, n.Qb = function (t) {
  3866. this.zd = t.lastData, this.rc = '', this.$b = 0;
  3867. };
  3868. var p = {}, u = '';
  3869. n.dv = function (s, i) {
  3870. if (this.b.pb)
  3871. AppMobi.webview.execute('C2_AJAX_WebSide("' + s + '", "' + i + '", "GET", null);');
  3872. else {
  3873. var e = this, t = null, h = function () {
  3874. e.rc = s, e.b.trigger(X.prototype.c.Qi, e), e.b.trigger(X.prototype.c.Ti, e);
  3875. }, n = function () {
  3876. if (r) {
  3877. var t = c + i;
  3878. a.existsSync(t) ? a.readFile(t, { encoding: 'utf8' }, function (t, i) {
  3879. t ? h() : (e.rc = s, e.zd = i.replace(/\r\n/g, '\n'), e.b.trigger(X.prototype.c.Pi, e), e.b.trigger(X.prototype.c.Zg, e));
  3880. }) : h();
  3881. } else
  3882. h();
  3883. };
  3884. try {
  3885. (t = this.b.Ke ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest()).onreadystatechange = function () {
  3886. 4 === t.readyState && (e.rc = s, t.responseText ? e.zd = t.responseText.replace(/\r\n/g, '\n') : e.zd = '', 400 <= t.status ? (e.b.trigger(X.prototype.c.Qi, e), e.b.trigger(X.prototype.c.Ti, e)) : r && !e.zd.length || !r && 0 === t.status && !e.zd.length || (e.b.trigger(X.prototype.c.Pi, e), e.b.trigger(X.prototype.c.Zg, e)));
  3887. }, this.b.Ke || (t.onerror = n, t.ontimeout = n, t.onabort = n, t.onprogress = function (t) {
  3888. t.lengthComputable && (e.$b = t.loaded / t.total, e.rc = s, e.b.trigger(X.prototype.c.yo, e));
  3889. }), t.open('GET', i), !this.b.Ke && 0 <= this.timeout && void 0 !== t.timeout && (t.timeout = this.timeout);
  3890. try {
  3891. t.responseType = 'text';
  3892. } catch (t) {
  3893. }
  3894. if (t.setRequestHeader) {
  3895. for (var o in p)
  3896. if (p.hasOwnProperty(o))
  3897. try {
  3898. t.setRequestHeader(o, p[o]);
  3899. } catch (t) {
  3900. }
  3901. p = {};
  3902. }
  3903. if (u && t.overrideMimeType) {
  3904. try {
  3905. t.overrideMimeType(u);
  3906. } catch (t) {
  3907. }
  3908. u = '';
  3909. }
  3910. t.send();
  3911. } catch (t) {
  3912. n();
  3913. }
  3914. }
  3915. }, t.prototype.Zg = function (t) {
  3916. return mb(t, this.rc);
  3917. }, t.prototype.Pi = function () {
  3918. return !0;
  3919. }, t.prototype.Ti = function (t) {
  3920. return mb(t, this.rc);
  3921. }, t.prototype.Qi = function () {
  3922. return !0;
  3923. }, t.prototype.yo = function (t) {
  3924. return mb(t, this.rc);
  3925. }, h.c = new t(), i.prototype.Rt = function (i, t) {
  3926. var s = this;
  3927. this.b.Jh && !this.b.Lp(t) ? this.b.lp(t, function (t) {
  3928. s.rc = i, s.zd = t.replace(/\r\n/g, '\n'), s.b.trigger(X.prototype.c.Pi, s), s.b.trigger(X.prototype.c.Zg, s);
  3929. }, function () {
  3930. s.rc = i, s.b.trigger(X.prototype.c.Qi, s), s.b.trigger(X.prototype.c.Ti, s);
  3931. }) : this.dv(i, t);
  3932. }, h.e = new i(), s.prototype.$s = function (t) {
  3933. t.la(this.zd);
  3934. }, h.g = new s();
  3935. }(), function () {
  3936. function r() {
  3937. return o.length ? o.pop() : [];
  3938. }
  3939. function n(t) {
  3940. var i, s;
  3941. for (i = 0, s = t.length; i < s; i++)
  3942. Array.isArray(t[i]) && n(t[i]);
  3943. A(t), o.push(t);
  3944. }
  3945. function t() {
  3946. }
  3947. function i() {
  3948. }
  3949. function s() {
  3950. }
  3951. var e = tc.prototype;
  3952. e.W = function (t) {
  3953. this.X = t, this.b = t.b;
  3954. }, e.W.prototype.D = function () {
  3955. }, e.S = function (t) {
  3956. this.type = t, this.b = t.b;
  3957. };
  3958. var h = e.S.prototype, o = [];
  3959. Array.isArray || (Array.isArray = function (t) {
  3960. return '[object Array]' === Object.prototype.toString.call(t);
  3961. }), h.D = function () {
  3962. this.ra = this.A[0], this.Ca = this.A[1], this.Ma = this.A[2], this.Bc || (this.oc = r());
  3963. var t, i, s, e = this.oc;
  3964. for (e.length = this.ra, t = 0; t < this.ra; t++)
  3965. for (e[t] || (e[t] = r()), e[t].length = this.Ca, i = 0; i < this.Ca; i++)
  3966. for (e[t][i] || (e[t][i] = r()), e[t][i].length = this.Ma, s = 0; s < this.Ma; s++)
  3967. e[t][i][s] = 0;
  3968. this.op = [], this.pp = [], this.qp = [], this.Wd = -1;
  3969. }, h.Ef = function () {
  3970. var t;
  3971. for (t = 0; t < this.ra; t++)
  3972. n(this.oc[t]);
  3973. A(this.oc);
  3974. }, h.pc = function (t, i, s) {
  3975. return t = Math.floor(t), i = Math.floor(i), s = Math.floor(s), isNaN(t) || t < 0 || t > this.ra - 1 || isNaN(i) || i < 0 || i > this.Ca - 1 || isNaN(s) || s < 0 || s > this.Ma - 1 ? 0 : this.oc[t][i][s];
  3976. }, h.set = function (t, i, s, e) {
  3977. t = Math.floor(t), i = Math.floor(i), s = Math.floor(s), isNaN(t) || t < 0 || t > this.ra - 1 || isNaN(i) || i < 0 || i > this.Ca - 1 || isNaN(s) || s < 0 || s > this.Ma - 1 || (this.oc[t][i][s] = e);
  3978. }, h.lw = function () {
  3979. return JSON.stringify({
  3980. c2array: !0,
  3981. size: [this.ra,this.Ca,this.Ma],
  3982. data: this.oc
  3983. });
  3984. }, h.Fb = function () {
  3985. return {
  3986. size: [this.ra,this.Ca,this.Ma],
  3987. data: this.oc
  3988. };
  3989. }, h.Qb = function (t) {
  3990. var i = t.size;
  3991. this.ra = i[0], this.Ca = i[1], this.Ma = i[2], this.oc = t.data;
  3992. }, h.ge = function (t, i, s) {
  3993. if (t < 0 && (t = 0), i < 0 && (i = 0), s < 0 && (s = 0), this.ra !== t || this.Ca !== i || this.Ma !== s) {
  3994. this.ra = t, this.Ca = i, this.Ma = s;
  3995. var e, h, n = this.oc;
  3996. for (n.length = t, t = 0; t < this.ra; t++)
  3997. for (ha(n[t]) && (n[t] = r()), n[t].length = i, e = 0; e < this.Ca; e++)
  3998. for (ha(n[t][e]) && (n[t][e] = r()), n[t][e].length = s, h = 0; h < this.Ma; h++)
  3999. ha(n[t][e][h]) && (n[t][e][h] = 0);
  4000. }
  4001. }, h.Uu = function () {
  4002. return 0 <= this.Wd && this.Wd < this.op.length ? this.op[this.Wd] : 0;
  4003. }, h.wv = function () {
  4004. return 0 <= this.Wd && this.Wd < this.pp.length ? this.pp[this.Wd] : 0;
  4005. }, h.rz = function () {
  4006. return 0 <= this.Wd && this.Wd < this.qp.length ? this.qp[this.Wd] : 0;
  4007. }, t.prototype.Ni = function (t, i, s) {
  4008. return ic(this.pc(t, 0, 0), i, s);
  4009. }, t.prototype.xs = function (t, i, s, e) {
  4010. return ic(this.pc(t, i, 0), s, e);
  4011. }, h.El = function (t) {
  4012. this.b.Qe(t.V), t.ee(), this.b.jd(t.V);
  4013. }, t.prototype.nl = function () {
  4014. return 0 === this.ra || 0 === this.Ca || 0 === this.Ma;
  4015. }, t.prototype.us = function (t, i, s) {
  4016. var e = 0;
  4017. switch (t) {
  4018. case 0:
  4019. e = this.ra;
  4020. break;
  4021. case 1:
  4022. e = this.Ca;
  4023. break;
  4024. case 2:
  4025. e = this.Ma;
  4026. }
  4027. return ic(e, i, s);
  4028. }, e.c = new t(), i.prototype.co = function () {
  4029. var t, i, s;
  4030. for (t = 0; t < this.ra; t++)
  4031. for (i = 0; i < this.Ca; i++)
  4032. for (s = 0; s < this.Ma; s++)
  4033. this.oc[t][i][s] = 0;
  4034. }, i.prototype.$g = function (t, i, s) {
  4035. this.ge(t, i, s);
  4036. }, i.prototype.Pf = function (t, i) {
  4037. this.set(t, 0, 0, i);
  4038. }, i.prototype.lu = function (t, i, s) {
  4039. this.set(t, i, 0, s);
  4040. }, i.prototype.Ot = function (t, i, s) {
  4041. var e = 0, h = 0, n = 0, o = this.oc;
  4042. switch (s) {
  4043. case 0:
  4044. for (0 === t ? (e = o.length, o.push(r())) : (e = 0, o.unshift(r())), o[e].length = this.Ca; h < this.Ca; h++)
  4045. for (o[e][h] = r(), o[e][h].length = this.Ma, n = 0; n < this.Ma; n++)
  4046. o[e][h][n] = i;
  4047. this.ra++;
  4048. break;
  4049. case 1:
  4050. for (; e < this.ra; e++)
  4051. for (0 === t ? (h = o[e].length, o[e].push(r())) : (h = 0, o[e].unshift(r())), o[e][h].length = this.Ma, n = 0; n < this.Ma; n++)
  4052. o[e][h][n] = i;
  4053. this.Ca++;
  4054. break;
  4055. case 2:
  4056. for (; e < this.ra; e++)
  4057. for (h = 0; h < this.Ca; h++)
  4058. 0 === t ? o[e][h].push(i) : o[e][h].unshift(i);
  4059. this.Ma++;
  4060. }
  4061. }, i.prototype.Mt = function (t, i) {
  4062. var s = 0, e = 0, h = this.oc;
  4063. switch (i) {
  4064. case 0:
  4065. if (0 === this.ra)
  4066. break;
  4067. n(0 === t ? h.pop() : h.shift()), this.ra--;
  4068. break;
  4069. case 1:
  4070. if (0 === this.Ca)
  4071. break;
  4072. for (; s < this.ra; s++)
  4073. n(0 === t ? h[s].pop() : h[s].shift());
  4074. this.Ca--;
  4075. break;
  4076. case 2:
  4077. if (0 === this.Ma)
  4078. break;
  4079. for (; s < this.ra; s++)
  4080. for (e = 0; e < this.Ca; e++)
  4081. 0 === t ? h[s][e].pop() : h[s][e].shift();
  4082. this.Ma--;
  4083. }
  4084. }, i.prototype.Bs = function (t, i) {
  4085. var s = 0, e = 0;
  4086. t = Math.floor(t);
  4087. var h = this.oc;
  4088. if (!(t < 0))
  4089. switch (i) {
  4090. case 0:
  4091. if (t >= this.ra)
  4092. break;
  4093. n(h[t]), h.splice(t, 1), this.ra--;
  4094. break;
  4095. case 1:
  4096. if (t >= this.Ca)
  4097. break;
  4098. for (; s < this.ra; s++)
  4099. n(h[s][t]), h[s].splice(t, 1);
  4100. this.Ca--;
  4101. break;
  4102. case 2:
  4103. if (t >= this.Ma)
  4104. break;
  4105. for (; s < this.ra; s++)
  4106. for (e = 0; e < this.Ca; e++)
  4107. h[s][e].splice(t, 1);
  4108. this.Ma--;
  4109. }
  4110. }, e.e = new i(), s.prototype.ms = function (t, i, s, e) {
  4111. t.Kg(this.pc(i, s || 0, e || 0));
  4112. }, s.prototype.bh = function (t) {
  4113. t.H(this.ra);
  4114. }, s.prototype.Oi = function (t) {
  4115. t.H(this.Ca);
  4116. }, s.prototype.ns = function (t) {
  4117. t.Kg(this.pc(this.ra - 1, 0, 0));
  4118. }, s.prototype.ll = function (t) {
  4119. t.la(this.lw());
  4120. }, e.g = new s();
  4121. }(), function () {
  4122. function n(t) {
  4123. -1 === st.indexOf(t) && st.push(t);
  4124. }
  4125. function o(t) {
  4126. var i, s = t.i;
  4127. try {
  4128. i = s.play();
  4129. } catch (i) {
  4130. return void n(t);
  4131. }
  4132. i ? i.catch(function () {
  4133. n(t);
  4134. }) : it && !q.xc && n(t);
  4135. }
  4136. function t() {
  4137. var t, i, s, e;
  4138. ht || V || !C || (function () {
  4139. if ('suspended' === C.state && C.resume && C.resume(), C.createBuffer) {
  4140. var t = C.createBuffer(1, 220, 22050), i = C.createBufferSource();
  4141. i.buffer = t, i.connect(C.destination), u(i);
  4142. }
  4143. }(), 'running' === C.state && (ht = !0));
  4144. var h = st.slice(0);
  4145. if (A(st), !z)
  4146. for (t = 0, i = h.length; t < i; ++t)
  4147. (s = h[t]).ta || s.ic || (e = s.i.play()) && e.catch(function () {
  4148. n(s);
  4149. });
  4150. }
  4151. function r(t) {
  4152. return t = Math.pow(10, t / 20), isFinite(t) || (t = 0), t < 0 && (t = 0), 1 < t && (t = 1), t;
  4153. }
  4154. function h(t) {
  4155. return t < 0 && (t = 0), 1 < t && (t = 1), Math.log(t) / Math.log(10) * 20;
  4156. }
  4157. function a(t) {
  4158. return t = t.toLowerCase(), nt.hasOwnProperty(t) && nt[t].length ? nt[t][0].tc() : C.destination;
  4159. }
  4160. function c() {
  4161. return C.createGain ? C.createGain() : C.createGainNode();
  4162. }
  4163. function p(t) {
  4164. return C.createDelay ? C.createDelay(t) : C.createDelayNode(t);
  4165. }
  4166. function u(t, i) {
  4167. t.start ? t.start(i || 0) : t.noteOn(i || 0);
  4168. }
  4169. function f(t, i, s, e) {
  4170. t.start ? t.start(e || 0, i) : t.noteGrainOn(e || 0, i, s - i);
  4171. }
  4172. function i(t) {
  4173. try {
  4174. t.stop ? t.stop(0) : t.noteOff(0);
  4175. } catch (t) {
  4176. }
  4177. }
  4178. function b(t, i, s, e, h, n) {
  4179. this.type = 'filter', this.Oa = [t,i,s,e,h,n], this.aa = c(), this.K = c(), this.K.gain.value = n, this.J = c(), this.J.gain.value = 1 - n, this.Ta = C.createBiquadFilter(), this.Ta.type = 'number' == typeof this.Ta.type ? t : ot[t], this.Ta.frequency.value = i, this.Ta.detune && (this.Ta.detune.value = s), this.Ta.Q.value = e, this.Ta.gain.value = h, this.aa.connect(this.Ta), this.aa.connect(this.J), this.Ta.connect(this.K);
  4180. }
  4181. function d(t, i, s) {
  4182. this.type = 'delay', this.Oa = [t,i,s], this.aa = c(), this.K = c(), this.K.gain.value = s, this.J = c(), this.J.gain.value = 1 - s, this.$h = c(), this.Kc = p(t), this.Kc.delayTime.value = t, this.zj = c(), this.zj.gain.value = i, this.aa.connect(this.$h), this.aa.connect(this.J), this.$h.connect(this.K), this.$h.connect(this.Kc), this.Kc.connect(this.zj), this.zj.connect(this.$h);
  4183. }
  4184. function g(t, i, s, e) {
  4185. this.type = 'convolve', this.Oa = [i,s,e], this.aa = c(), this.K = c(), this.K.gain.value = s, this.J = c(), this.J.gain.value = 1 - s, this.bf = C.createConvolver(), t && (this.bf.normalize = i, this.bf.buffer = t), this.aa.connect(this.bf), this.aa.connect(this.J), this.bf.connect(this.K);
  4186. }
  4187. function y(t, i, s, e, h) {
  4188. this.type = 'flanger', this.Oa = [t,i,s,e,h], this.aa = c(), this.J = c(), this.J.gain.value = 1 - h / 2, this.K = c(), this.K.gain.value = h / 2, this.Ij = c(), this.Ij.gain.value = e, this.Kc = p(t + i), this.Kc.delayTime.value = t, this.tb = C.createOscillator(), this.tb.frequency.value = s, this.lc = c(), this.lc.gain.value = i, this.aa.connect(this.Kc), this.aa.connect(this.J), this.Kc.connect(this.K), this.Kc.connect(this.Ij), this.Ij.connect(this.Kc), this.tb.connect(this.lc), this.lc.connect(this.Kc.delayTime), u(this.tb);
  4189. }
  4190. function v(t, i, s, e, h, n) {
  4191. this.type = 'phaser', this.Oa = [t,i,s,e,h,n], this.aa = c(), this.J = c(), this.J.gain.value = 1 - n / 2, this.K = c(), this.K.gain.value = n / 2, this.Ta = C.createBiquadFilter(), this.Ta.type = 'number' == typeof this.Ta.type ? 7 : 'allpass', this.Ta.frequency.value = t, this.Ta.detune && (this.Ta.detune.value = i), this.Ta.Q.value = s, this.tb = C.createOscillator(), this.tb.frequency.value = h, this.lc = c(), this.lc.gain.value = e, this.aa.connect(this.Ta), this.aa.connect(this.J), this.Ta.connect(this.K), this.tb.connect(this.lc), this.lc.connect(this.Ta.frequency), u(this.tb);
  4192. }
  4193. function m(t) {
  4194. this.type = 'gain', this.Oa = [t], this.da = c(), this.da.gain.value = t;
  4195. }
  4196. function w(t, i) {
  4197. this.type = 'tremolo', this.Oa = [t,i], this.da = c(), this.da.gain.value = 1 - i / 2, this.tb = C.createOscillator(), this.tb.frequency.value = t, this.lc = c(), this.lc.gain.value = i / 2, this.tb.connect(this.lc), this.lc.connect(this.da.gain), u(this.tb);
  4198. }
  4199. function k(t, i) {
  4200. this.type = 'ringmod', this.Oa = [t,i], this.aa = c(), this.K = c(), this.K.gain.value = i, this.J = c(), this.J.gain.value = 1 - i, this.ki = c(), this.ki.gain.value = 0, this.tb = C.createOscillator(), this.tb.frequency.value = t, this.tb.connect(this.ki.gain), u(this.tb), this.aa.connect(this.ki), this.aa.connect(this.J), this.ki.connect(this.K);
  4201. }
  4202. function x(t, i, s, e, h) {
  4203. this.type = 'distortion', this.Oa = [t,i,s,e,h], this.aa = c(), this.Bk = c(), this.Ak = c(), this.ry(s, Math.pow(10, e / 20)), this.K = c(), this.K.gain.value = h, this.J = c(), this.J.gain.value = 1 - h, this.hl = C.createWaveShaper(), this.xj = new Float32Array(65536), this.jw(t, i), this.hl.xj = this.xj, this.aa.connect(this.Bk), this.aa.connect(this.J), this.Bk.connect(this.hl), this.hl.connect(this.Ak), this.Ak.connect(this.K);
  4204. }
  4205. function T(t, i, s, e, h) {
  4206. this.type = 'compressor', this.Oa = [t,i,s,e,h], this.da = C.createDynamicsCompressor();
  4207. try {
  4208. this.da.threshold.value = t, this.da.knee.value = i, this.da.ratio.value = s, this.da.attack.value = e, this.da.release.value = h;
  4209. } catch (t) {
  4210. }
  4211. }
  4212. function E(t, i) {
  4213. this.type = 'analyser', this.Oa = [t,i], this.da = C.createAnalyser(), this.da.fftSize = t, this.da.smoothingTimeConstant = i, this.hw = new Float32Array(this.da.frequencyBinCount), this.Er = new Uint8Array(t), this.gi = 0;
  4214. }
  4215. function j() {
  4216. this.ka = null, this.ik = 0;
  4217. }
  4218. function l(t, i) {
  4219. this.src = t, this.U = F, this.yd = i, this.dj = !1;
  4220. var s, e = this;
  4221. switch (this.xg = this.Dg = null, this.Eg = [], this.Mk = 0, this.Wn = this.Gj = this.Jr = this.wk = !1, 1 === F && i && !et && (this.U = 0, this.Dg = c()), this.Nd = this.ca = null, this.U) {
  4222. case 0:
  4223. this.ca = new Audio(), this.ca.crossOrigin = 'anonymous', this.ca.addEventListener('canplaythrough', function () {
  4224. e.Wn = !0;
  4225. }), 1 === F && C.createMediaElementSource && !/wiiu/i.test(navigator.userAgent) && (this.Jr = !0, this.ca.addEventListener('canplay', function () {
  4226. !e.xg && e.ca && (e.xg = C.createMediaElementSource(e.ca), e.xg.connect(e.Dg));
  4227. })), this.ca.autoplay = !1, this.ca.Dz = 'auto', this.ca.src = t;
  4228. break;
  4229. case 1:
  4230. q.Jh ? q.kp(t, function (t) {
  4231. e.Nd = t, e.cp();
  4232. }, function () {
  4233. e.Gj = !0;
  4234. }) : ((s = new XMLHttpRequest()).open('GET', t, !0), s.responseType = 'arraybuffer', s.onload = function () {
  4235. e.Nd = s.response, e.cp();
  4236. }, s.onerror = function () {
  4237. e.Gj = !0;
  4238. }, s.send());
  4239. break;
  4240. case 2:
  4241. this.ca = !0;
  4242. break;
  4243. case 3:
  4244. this.ca = !0;
  4245. }
  4246. }
  4247. function R(t, i) {
  4248. var s = this;
  4249. this.tag = i, this.ta = this.vd = !0, this.src = t.src, this.buffer = t, this.U = F, this.yd = t.yd, this.playbackRate = 1, this.eg = !0, this.ic = this.Cc = !1, this.cc = 0, this.Kh = this.lg = this.Ad = !1, this.volume = 1, this.dn = function (t) {
  4250. if (!s.ic && !s.Cc) {
  4251. var i = this;
  4252. (i = i || t.target) === s.cj && (s.eg = !0, s.ta = !0, L = s.tag, q.trigger(uc.prototype.c.Si, O));
  4253. }
  4254. }, this.cj = null, this.ig = 1 === _ && !this.yd || 2 === _, this.zg = 1, this.startTime = this.ig ? q.Bb.Z : q.oe.Z, this.Xa = this.fb = null, this.Bd = !1, this.Cb = null, this.Xq = this.Wq = this.Vq = this.Uq = this.Zq = this.Yq = 0, this.i = null;
  4255. var e = !1;
  4256. switch (1 !== this.U || 0 !== this.buffer.U || this.buffer.Jr || (this.U = 0), this.U) {
  4257. case 0:
  4258. this.yd ? (this.i = t.ca, e = !t.dj, t.dj = !0) : (this.i = new Audio(), this.i.crossOrigin = 'anonymous', this.i.autoplay = !1, this.i.src = t.ca.src, e = !0), e && this.i.addEventListener('ended', function () {
  4259. L = s.tag, s.ta = !0, q.trigger(uc.prototype.c.Si, O);
  4260. });
  4261. break;
  4262. case 1:
  4263. this.fb = c(), this.fb.connect(a(i)), 1 === this.buffer.U ? t.ca && (this.i = C.createBufferSource(), this.i.buffer = t.ca, this.i.connect(this.fb)) : (this.i = this.buffer.ca, this.buffer.Dg.connect(this.fb), this.buffer.dj || (this.buffer.dj = !0, this.buffer.ca.addEventListener('ended', function () {
  4264. L = s.tag, s.ta = !0, q.trigger(uc.prototype.c.Si, O);
  4265. })));
  4266. break;
  4267. case 2:
  4268. this.i = new window.Media(D + this.src, null, null, function (t) {
  4269. t === window.Media.MEDIA_STOPPED && (s.eg = !0, s.ta = !0, L = s.tag, q.trigger(uc.prototype.c.Si, O));
  4270. });
  4271. break;
  4272. case 3:
  4273. this.i = !0;
  4274. }
  4275. }
  4276. function S(t) {
  4277. var i, s, e;
  4278. if (A(pt), t.length)
  4279. for (i = 0, s = U.length; i < s; i++)
  4280. e = U[i], mb(t, e.tag) && pt.push(e);
  4281. else
  4282. B && !B.qf() && (A(pt), pt[0] = B);
  4283. }
  4284. function M(t, i) {
  4285. nt.hasOwnProperty(t) ? nt[t].push(i) : nt[t] = [i];
  4286. var s, e, h, n, o = C.destination;
  4287. if (nt.hasOwnProperty(t) && (h = nt[t]).length)
  4288. for (o = h[0].tc(), s = 0, e = h.length; s < e; s++)
  4289. n = h[s], s + 1 === e ? n.Hc(C.destination) : n.Hc(h[s + 1].tc());
  4290. for (S(t), s = 0, e = pt.length; s < e; s++)
  4291. pt[s].cy(o);
  4292. $ && tt === t && ($.disconnect(), $.connect(o));
  4293. }
  4294. function s() {
  4295. }
  4296. function e() {
  4297. }
  4298. var P = uc.prototype;
  4299. P.W = function (t) {
  4300. this.X = t, this.b = t.b;
  4301. }, P.W.prototype.D = function () {
  4302. };
  4303. var q = null, O = null, L = '', D = '', F = 0, C = null, I = [], U = [], B = null, N = !1, _ = 0, z = !1, X = 1, Y = 0, H = 0, V = !1, W = 1, Z = 1, J = 10, K = 10000, Q = 1, $ = null, tt = '', it = !1, st = [], et = !1, ht = !1;
  4304. document.addEventListener('pointerup', t, !0), document.addEventListener('touchend', t, !0), document.addEventListener('click', t, !0), document.addEventListener('keydown', t, !0), document.addEventListener('gamepadconnected', t, !0);
  4305. var nt = {}, ot = 'lowpass highpass bandpass lowshelf highshelf peaking notch allpass'.split(' ');
  4306. b.prototype.Hc = function (t) {
  4307. this.K.disconnect(), this.K.connect(t), this.J.disconnect(), this.J.connect(t);
  4308. }, b.prototype.remove = function () {
  4309. this.aa.disconnect(), this.Ta.disconnect(), this.K.disconnect(), this.J.disconnect();
  4310. }, b.prototype.tc = function () {
  4311. return this.aa;
  4312. }, d.prototype.Hc = function (t) {
  4313. this.K.disconnect(), this.K.connect(t), this.J.disconnect(), this.J.connect(t);
  4314. }, d.prototype.remove = function () {
  4315. this.aa.disconnect(), this.$h.disconnect(), this.Kc.disconnect(), this.zj.disconnect(), this.K.disconnect(), this.J.disconnect();
  4316. }, d.prototype.tc = function () {
  4317. return this.aa;
  4318. }, g.prototype.Hc = function (t) {
  4319. this.K.disconnect(), this.K.connect(t), this.J.disconnect(), this.J.connect(t);
  4320. }, g.prototype.remove = function () {
  4321. this.aa.disconnect(), this.bf.disconnect(), this.K.disconnect(), this.J.disconnect();
  4322. }, g.prototype.tc = function () {
  4323. return this.aa;
  4324. }, y.prototype.Hc = function (t) {
  4325. this.J.disconnect(), this.J.connect(t), this.K.disconnect(), this.K.connect(t);
  4326. }, y.prototype.remove = function () {
  4327. this.aa.disconnect(), this.Kc.disconnect(), this.tb.disconnect(), this.lc.disconnect(), this.J.disconnect(), this.K.disconnect(), this.Ij.disconnect();
  4328. }, y.prototype.tc = function () {
  4329. return this.aa;
  4330. }, v.prototype.Hc = function (t) {
  4331. this.J.disconnect(), this.J.connect(t), this.K.disconnect(), this.K.connect(t);
  4332. }, v.prototype.remove = function () {
  4333. this.aa.disconnect(), this.Ta.disconnect(), this.tb.disconnect(), this.lc.disconnect(), this.J.disconnect(), this.K.disconnect();
  4334. }, v.prototype.tc = function () {
  4335. return this.aa;
  4336. }, m.prototype.Hc = function (t) {
  4337. this.da.disconnect(), this.da.connect(t);
  4338. }, m.prototype.remove = function () {
  4339. this.da.disconnect();
  4340. }, m.prototype.tc = function () {
  4341. return this.da;
  4342. }, w.prototype.Hc = function (t) {
  4343. this.da.disconnect(), this.da.connect(t);
  4344. }, w.prototype.remove = function () {
  4345. this.tb.disconnect(), this.lc.disconnect(), this.da.disconnect();
  4346. }, w.prototype.tc = function () {
  4347. return this.da;
  4348. }, k.prototype.Hc = function (t) {
  4349. this.K.disconnect(), this.K.connect(t), this.J.disconnect(), this.J.connect(t);
  4350. }, k.prototype.remove = function () {
  4351. this.tb.disconnect(), this.ki.disconnect(), this.aa.disconnect(), this.K.disconnect(), this.J.disconnect();
  4352. }, k.prototype.tc = function () {
  4353. return this.aa;
  4354. }, x.prototype.ry = function (t, i) {
  4355. t < 0.01 && (t = 0.01), this.Bk.gain.value = t, this.Ak.gain.value = Math.pow(1 / t, 0.6) * i;
  4356. }, x.prototype.shape = function (t, i, s) {
  4357. var e = 1.05 * s * i - i;
  4358. return s = t < 0 ? -1 : 1, (i = (t = t < 0 ? -t : t) < i ? t : i + e * (1 - Math.exp(-1 / e * (t - i)))) * s;
  4359. }, x.prototype.jw = function (t, i) {
  4360. for (var s = Math.pow(10, t / 20), e = Math.pow(10, i / 20), h = 0, n = 0; n < 32768; ++n)
  4361. h = n / 32768, h = this.shape(h, s, e), this.xj[32768 + n] = h, this.xj[32768 - n - 1] = -h;
  4362. }, x.prototype.Hc = function (t) {
  4363. this.K.disconnect(), this.K.connect(t), this.J.disconnect(), this.J.connect(t);
  4364. }, x.prototype.remove = function () {
  4365. this.aa.disconnect(), this.Bk.disconnect(), this.hl.disconnect(), this.Ak.disconnect(), this.K.disconnect(), this.J.disconnect();
  4366. }, x.prototype.tc = function () {
  4367. return this.aa;
  4368. }, T.prototype.Hc = function (t) {
  4369. this.da.disconnect(), this.da.connect(t);
  4370. }, T.prototype.remove = function () {
  4371. this.da.disconnect();
  4372. }, T.prototype.tc = function () {
  4373. return this.da;
  4374. }, E.prototype.mb = function () {
  4375. this.da.getFloatFrequencyData(this.hw), this.da.getByteTimeDomainData(this.Er);
  4376. for (var t = this.da.fftSize, i = 0, s = this.gi = 0, e = 0; i < t; i++)
  4377. (e = (this.Er[i] - 128) / 128) < 0 && (e = -e), this.gi < e && (this.gi = e), s += e * e;
  4378. this.gi = h(this.gi), h(Math.sqrt(s / t));
  4379. }, E.prototype.Hc = function (t) {
  4380. this.da.disconnect(), this.da.connect(t);
  4381. }, E.prototype.remove = function () {
  4382. this.da.disconnect();
  4383. }, E.prototype.tc = function () {
  4384. return this.da;
  4385. }, j.prototype.li = function (t) {
  4386. this.ka = t;
  4387. }, j.prototype.Wj = function () {
  4388. return !!this.ka;
  4389. }, j.prototype.mb = function () {
  4390. }, l.prototype.ey = function () {
  4391. var t, i, s, e;
  4392. for (s = t = 0, i = U.length; t < i; ++t)
  4393. e = U[t], (U[s] = e).buffer === this ? e.stop() : ++s;
  4394. U.length = s, this.xg && (this.xg.disconnect(), this.xg = null), this.Dg && (this.Dg.disconnect(), this.Dg = null), this.Nd = this.ca = null;
  4395. }, l.prototype.cp = function () {
  4396. if (!this.ca && this.Nd) {
  4397. var o = this;
  4398. if (C.decodeAudioData)
  4399. C.decodeAudioData(this.Nd, function (t) {
  4400. var i, s, e;
  4401. if (o.ca = t, o.Nd = null, ha(o.xk) || z)
  4402. ha(o.tj) || ((i = o.tj.bf).normalize = o.Iq, i.buffer = t);
  4403. else if (o.Eg.length) {
  4404. for (i = 0, s = o.Eg.length; i < s; i++)
  4405. if (t = o.Eg[i], (e = new R(o, t.Mr)).Pk(!0), void 0 === t.Kq || (t.ka = q.Uj(t.Kq), t.ka)) {
  4406. if (t.ka) {
  4407. var h = Ua(t.ka.x, t.ka.y, -t.ka.j.gb(), Y, H, !0), n = Ua(t.ka.x, t.ka.y, -t.ka.j.gb(), Y, H, !1);
  4408. e.Cn(h, n, Ka(t.ka.m - t.ka.j.gb()), t.vm, t.Zm, t.bn), e.li(t.ka);
  4409. } else
  4410. e.Cn(t.x, t.y, t.zu, t.vm, t.Zm, t.bn);
  4411. e.play(o.Um, o.Vn, o.Mk), o.wk && e.pause(), U.push(e);
  4412. }
  4413. A(o.Eg);
  4414. } else
  4415. (e = new R(o, o.xk || '')).play(o.Um, o.Vn, o.Mk), o.wk && e.pause(), U.push(e);
  4416. }, function () {
  4417. o.Gj = !0;
  4418. });
  4419. else if (this.ca = C.createBuffer(this.Nd, !1), this.Nd = null, ha(this.xk) || z)
  4420. ha(this.tj) || ((t = this.tj.bf).normalize = this.Iq, t.buffer = this.ca);
  4421. else {
  4422. var t = new R(this, this.xk);
  4423. t.play(this.Um, this.Vn, this.Mk), this.wk && t.pause(), U.push(t);
  4424. }
  4425. }
  4426. }, l.prototype.Op = function () {
  4427. switch (this.U) {
  4428. case 0:
  4429. var t = 4 <= this.ca.readyState;
  4430. return t && (this.Wn = !0), t || this.Wn;
  4431. case 1:
  4432. return !!this.Nd || !!this.ca;
  4433. case 2:
  4434. case 3:
  4435. return !0;
  4436. }
  4437. return !1;
  4438. }, l.prototype.cx = function () {
  4439. switch (this.U) {
  4440. case 0:
  4441. return this.Op();
  4442. case 1:
  4443. return !!this.ca;
  4444. case 2:
  4445. case 3:
  4446. return !0;
  4447. }
  4448. return !1;
  4449. }, l.prototype.Rw = function () {
  4450. switch (this.U) {
  4451. case 0:
  4452. return !!this.ca.error;
  4453. case 1:
  4454. return this.Gj;
  4455. }
  4456. return !1;
  4457. }, R.prototype.qf = function () {
  4458. switch (this.U) {
  4459. case 0:
  4460. return this.i.ended;
  4461. case 1:
  4462. return 1 === this.buffer.U ? !(!this.vd && !this.ta && this.i.loop || this.ic) && this.eg : this.i.ended;
  4463. case 2:
  4464. return this.eg;
  4465. }
  4466. return !0;
  4467. }, R.prototype.Mu = function () {
  4468. return !(!this.vd && !this.ta) || this.qf();
  4469. }, R.prototype.Pk = function (t) {
  4470. 1 === F && (!this.Bd && t ? this.fb && (this.Xa || (this.Xa = C.createPanner(), this.Xa.panningModel = 'number' == typeof this.Xa.panningModel ? W : ["equalpower","HRTF","soundfield"][W], this.Xa.distanceModel = 'number' == typeof this.Xa.distanceModel ? Z : ["linear","inverse","exponential"][Z], this.Xa.refDistance = J, this.Xa.maxDistance = K, this.Xa.rolloffFactor = Q), this.fb.disconnect(), this.fb.connect(this.Xa), this.Xa.connect(a(this.tag)), this.Bd = !0) : this.Bd && !t && this.fb && (this.Xa.disconnect(), this.fb.disconnect(), this.fb.connect(a(this.tag)), this.Bd = !1));
  4471. }, R.prototype.Cn = function (t, i, s, e, h, n) {
  4472. this.Bd && 1 === F && (this.Xa.setPosition(t, i, 0), this.Xa.setOrientation(Math.cos(G(s)), Math.sin(G(s)), 0), this.Xa.coneInnerAngle = e, this.Xa.coneOuterAngle = h, this.Xa.coneOuterGain = n, this.Yq = t, this.Zq = i, this.Uq = s, this.Vq = e, this.Wq = h, this.Xq = n);
  4473. }, R.prototype.li = function (t) {
  4474. this.Bd && 1 === F && (this.Cb || (this.Cb = new j()), this.Cb.li(t));
  4475. }, R.prototype.mb = function (t) {
  4476. if (this.Bd && 1 === F && this.Cb && this.Cb.Wj() && this.hg()) {
  4477. this.Cb.mb(t), t = this.Cb.ka;
  4478. var i = Ua(t.x, t.y, -t.j.gb(), Y, H, !0), s = Ua(t.x, t.y, -t.j.gb(), Y, H, !1);
  4479. this.Xa.setPosition(i, s, 0), void (i = 0) !== this.Cb.ka.m && (i = t.m - t.j.gb(), this.Xa.setOrientation(Math.cos(i), Math.sin(i), 0));
  4480. }
  4481. }, R.prototype.play = function (t, i, s, e) {
  4482. var h = this.i;
  4483. switch (this.Ad = t, this.volume = i, s = s || 0, e = e || 0, this.U) {
  4484. case 0:
  4485. if (1 !== h.playbackRate && (h.playbackRate = 1), h.volume !== i * X && (h.volume = i * X), h.loop !== t && (h.loop = t), h.muted && (h.muted = !1), h.currentTime !== s)
  4486. try {
  4487. h.currentTime = s;
  4488. } catch (t) {
  4489. }
  4490. o(this);
  4491. break;
  4492. case 1:
  4493. if (this.muted = !1, (this.zg = 1) === this.buffer.U)
  4494. this.fb.gain.value = i * X, this.vd || (this.i = C.createBufferSource(), this.i.buffer = this.buffer.ca, this.i.connect(this.fb)), this.i.onended = this.dn, this.cj = this.i, this.i.loop = t, this.eg = !1, 0 === s ? u(this.i, e) : f(this.i, s, this.mf(), e);
  4495. else {
  4496. if (1 !== h.playbackRate && (h.playbackRate = 1), h.loop !== t && (h.loop = t), h.volume = i * X, h.currentTime !== s)
  4497. try {
  4498. h.currentTime = s;
  4499. } catch (t) {
  4500. }
  4501. o(this);
  4502. }
  4503. break;
  4504. case 2:
  4505. (!this.vd && this.ta || 0 !== s) && h.seekTo(s), h.play(), this.eg = !1;
  4506. break;
  4507. case 3:
  4508. q.pb ? AppMobi.context.playSound(this.src, t) : AppMobi.player.playSound(this.src, t);
  4509. }
  4510. this.playbackRate = 1, this.startTime = (this.ig ? q.Bb.Z : q.oe.Z) - s, this.ic = this.ta = this.vd = !1;
  4511. }, R.prototype.stop = function () {
  4512. switch (this.U) {
  4513. case 0:
  4514. this.i.paused || this.i.pause();
  4515. break;
  4516. case 1:
  4517. 1 === this.buffer.U ? i(this.i) : this.i.paused || this.i.pause();
  4518. break;
  4519. case 2:
  4520. this.i.stop();
  4521. break;
  4522. case 3:
  4523. q.pb && AppMobi.context.stopSound(this.src);
  4524. }
  4525. this.ta = !0, this.ic = !1;
  4526. }, R.prototype.pause = function () {
  4527. if (!(this.vd || this.ta || this.qf() || this.ic)) {
  4528. switch (this.U) {
  4529. case 0:
  4530. this.i.paused || this.i.pause();
  4531. break;
  4532. case 1:
  4533. 1 === this.buffer.U ? (this.cc = this.nm(!0), this.Ad && (this.cc = this.cc % this.mf()), this.ic = !0, i(this.i)) : this.i.paused || this.i.pause();
  4534. break;
  4535. case 2:
  4536. this.i.pause();
  4537. break;
  4538. case 3:
  4539. q.pb && AppMobi.context.stopSound(this.src);
  4540. }
  4541. this.ic = !0;
  4542. }
  4543. }, R.prototype.mr = function () {
  4544. if (!(this.vd || this.ta || this.qf()) && this.ic) {
  4545. switch (this.U) {
  4546. case 0:
  4547. o(this);
  4548. break;
  4549. case 1:
  4550. 1 === this.buffer.U ? (this.i = C.createBufferSource(), this.i.buffer = this.buffer.ca, this.i.connect(this.fb), this.i.onended = this.dn, this.cj = this.i, this.i.loop = this.Ad, this.fb.gain.value = X * this.volume * this.zg, this.Bi(), this.startTime = (this.ig ? q.Bb.Z : q.oe.Z) - this.cc / (this.playbackRate || 0.001), f(this.i, this.cc, this.mf())) : o(this);
  4551. break;
  4552. case 2:
  4553. this.i.play();
  4554. break;
  4555. case 3:
  4556. q.pb && AppMobi.context.resumeSound(this.src);
  4557. }
  4558. this.ic = !1;
  4559. }
  4560. }, R.prototype.seek = function (t) {
  4561. if (!(this.vd || this.ta || this.qf()))
  4562. switch (this.U) {
  4563. case 0:
  4564. try {
  4565. this.i.currentTime = t;
  4566. } catch (t) {
  4567. }
  4568. break;
  4569. case 1:
  4570. if (1 === this.buffer.U)
  4571. this.ic ? this.cc = t : (this.pause(), this.cc = t, this.mr());
  4572. else
  4573. try {
  4574. this.i.currentTime = t;
  4575. } catch (t) {
  4576. }
  4577. break;
  4578. case 3:
  4579. q.pb && AppMobi.context.seekSound(this.src, t);
  4580. }
  4581. }, R.prototype.cy = function (t) {
  4582. 1 === this.U && (this.Bd ? (this.Xa.disconnect(), this.Xa.connect(t)) : (this.fb.disconnect(), this.fb.connect(t)));
  4583. }, R.prototype.mf = function () {
  4584. var t = 0;
  4585. switch (this.U) {
  4586. case 0:
  4587. void 0 !== this.i.duration && (t = this.i.duration);
  4588. break;
  4589. case 1:
  4590. t = this.buffer.ca.duration;
  4591. break;
  4592. case 2:
  4593. t = this.i.getDuration();
  4594. break;
  4595. case 3:
  4596. q.pb && (t = AppMobi.context.getDurationSound(this.src));
  4597. }
  4598. return t;
  4599. }, R.prototype.nm = function (t) {
  4600. var i = this.mf(), s = 0;
  4601. switch (this.U) {
  4602. case 0:
  4603. void 0 !== this.i.currentTime && (s = this.i.currentTime);
  4604. break;
  4605. case 1:
  4606. if (1 === this.buffer.U) {
  4607. if (this.ic)
  4608. return this.cc;
  4609. s = (this.ig ? q.Bb.Z : q.oe.Z) - this.startTime;
  4610. } else
  4611. void 0 !== this.i.currentTime && (s = this.i.currentTime);
  4612. break;
  4613. case 3:
  4614. q.pb && (s = AppMobi.context.getPlaybackTimeSound(this.src));
  4615. }
  4616. return t && (s *= this.playbackRate), !this.Ad && i < s && (s = i), s;
  4617. }, R.prototype.hg = function () {
  4618. return !(this.ic || this.vd || this.ta || this.qf());
  4619. }, R.prototype.zy = function () {
  4620. return !this.vd && !this.ta && !this.qf();
  4621. }, R.prototype.Ly = function () {
  4622. var t = this.volume * X;
  4623. switch (isFinite(t) || (t = 0), this.U) {
  4624. case 0:
  4625. void 0 !== this.i.volume && this.i.volume !== t && (this.i.volume = t);
  4626. break;
  4627. case 1:
  4628. 1 === this.buffer.U ? this.fb.gain.value = t * this.zg : void 0 !== this.i.volume && this.i.volume !== t && (this.i.volume = t);
  4629. }
  4630. }, R.prototype.Bj = function (t) {
  4631. switch (this.U) {
  4632. case 0:
  4633. this.i.muted !== !!t && (this.i.muted = !!t);
  4634. break;
  4635. case 1:
  4636. 1 === this.buffer.U ? (this.zg = t ? 0 : 1, this.fb.gain.value = X * this.volume * this.zg) : this.i.muted !== !!t && (this.i.muted = !!t);
  4637. }
  4638. }, R.prototype.uy = function () {
  4639. this.lg = !0, this.Bj(this.lg || this.Kh);
  4640. }, R.prototype.xr = function (t) {
  4641. this.Kh = !!t, this.Bj(this.lg || this.Kh);
  4642. }, R.prototype.vy = function (t) {
  4643. this.playbackRate = t, this.Bi();
  4644. }, R.prototype.Bi = function () {
  4645. var t = this.playbackRate;
  4646. switch (this.ig && (t *= q.Jf), this.U) {
  4647. case 0:
  4648. this.i.playbackRate !== t && (this.i.playbackRate = t);
  4649. break;
  4650. case 1:
  4651. 1 === this.buffer.U ? this.i.playbackRate.value !== t && (this.i.playbackRate.value = t) : this.i.playbackRate !== t && (this.i.playbackRate = t);
  4652. }
  4653. }, R.prototype.xy = function (t) {
  4654. switch (this.U) {
  4655. case 0:
  4656. t ? this.hg() ? (this.Cc = !0, this.i.pause()) : this.Cc = !1 : this.Cc && (this.i.play(), this.Cc = !1);
  4657. break;
  4658. case 1:
  4659. t ? this.hg() ? (this.Cc = !0, 1 === this.buffer.U ? (this.cc = this.nm(!0), this.Ad && (this.cc = this.cc % this.mf()), i(this.i)) : this.i.pause()) : this.Cc = !1 : this.Cc && (1 === this.buffer.U ? (this.i = C.createBufferSource(), this.i.buffer = this.buffer.ca, this.i.connect(this.fb), this.i.onended = this.dn, this.cj = this.i, this.i.loop = this.Ad, this.fb.gain.value = X * this.volume * this.zg, this.Bi(), this.startTime = (this.ig ? q.Bb.Z : q.oe.Z) - this.cc / (this.playbackRate || 0.001), f(this.i, this.cc, this.mf())) : this.i.play(), this.Cc = !1);
  4660. break;
  4661. case 2:
  4662. t ? this.hg() ? (this.i.pause(), this.Cc = !0) : this.Cc = !1 : this.Cc && (this.Cc = !1, this.i.play());
  4663. }
  4664. }, P.S = function (t) {
  4665. if (this.type = t, q = this.b = t.b, (O = this).jc = null, this.Ph = -600, this.b.Jh && (et = !0), !(this.b.pg || this.b.Dh && (this.b.Bm || this.b.Xj)) || this.b.Zj || this.b.pa || this.b.Mp || et || (it = !0), C = null, 'undefined' != typeof AudioContext ? (F = 1, C = new AudioContext()) : 'undefined' != typeof webkitAudioContext && (F = 1, C = new webkitAudioContext()), this.b.pg && C && (C.close && C.close(), 'undefined' != typeof AudioContext ? C = new AudioContext() : 'undefined' != typeof webkitAudioContext && (C = new webkitAudioContext())), 1 !== F && (this.b.vc && void 0 !== window.Media ? F = 2 : this.b.Np && (F = 3)), 2 === F && (-1 < (t = (D = location.href).lastIndexOf('/')) && (D = D.substr(0, t + 1)), D = D.replace('file://', '')), this.b.hx && this.b.ix && 'undefined' == typeof Audio)
  4666. alert('It looks like you\'re using Safari for Windows without Quicktime. Audio cannot be played until Quicktime is installed.'), this.b.Xe(this);
  4667. else {
  4668. if (this.b.pb)
  4669. N = this.b.Dh;
  4670. else
  4671. try {
  4672. N = !!new Audio().canPlayType('audio/ogg; codecs="vorbis"') && !this.b.$j;
  4673. } catch (t) {
  4674. N = !1;
  4675. }
  4676. this.b.If(this);
  4677. }
  4678. };
  4679. var rt = P.S.prototype;
  4680. rt.D = function () {
  4681. this.b.Rf = this, _ = this.A[0], this.fe = this.A[1], this.Sx = 0 !== this.A[2], this.pk = 0, W = this.A[3], Z = this.A[4], this.Ph = -this.A[5], J = this.A[6], K = this.A[7], Q = this.A[8], this.jc = new j();
  4682. var t = this.b.G || this.b.width, i = this.b.F || this.b.height;
  4683. 1 === F && (C.listener.setPosition(t / 2, i / 2, this.Ph), C.listener.setOrientation(0, 0, 1, 0, -1, 0), window.c2OnAudioMicStream = function (t, i) {
  4684. $ && $.disconnect(), tt = i.toLowerCase(), ($ = C.createMediaStreamSource(t)).connect(a(tt));
  4685. }), this.b.No(function (t) {
  4686. O.Lx(t);
  4687. });
  4688. var s = this;
  4689. this.b.Du(function (t) {
  4690. s.Dx(t);
  4691. });
  4692. }, rt.Dx = function (t) {
  4693. var i, s, e;
  4694. for (i = 0, s = U.length; i < s; i++)
  4695. (e = U[i]).Cb && e.Cb.ka === t && (e.Cb.ka = null, e.Bd && e.hg() && e.Ad && e.stop());
  4696. this.jc.ka === t && (this.jc.ka = null);
  4697. }, rt.Fb = function () {
  4698. var t, i, s, e, h, n, o = {
  4699. silent: z,
  4700. masterVolume: X,
  4701. listenerZ: this.Ph,
  4702. listenerUid: this.jc.Wj() ? this.jc.ka.uid : -1,
  4703. playing: [],
  4704. effects: {}
  4705. }, r = o.playing;
  4706. for (t = 0, i = U.length; t < i; t++)
  4707. !(s = U[t]).zy() || 3 === this.fe || s.yd && 1 === this.fe || !s.yd && 2 === this.fe || (e = s.nm(), s.Ad && (e %= s.mf()), e = {
  4708. tag: s.tag,
  4709. buffersrc: s.buffer.src,
  4710. is_music: s.yd,
  4711. playbackTime: e,
  4712. volume: s.volume,
  4713. looping: s.Ad,
  4714. muted: s.lg,
  4715. playbackRate: s.playbackRate,
  4716. paused: s.ic,
  4717. resume_position: s.cc
  4718. }, s.Bd && (e.pan = {}, n = e.pan, s.Cb && s.Cb.Wj() ? n.objUid = s.Cb.ka.uid : (n.x = s.Yq, n.y = s.Zq, n.a = s.Uq), n.ia = s.Vq, n.oa = s.Wq, n.og = s.Xq), r.push(e));
  4719. for (h in (r = o.effects, nt))
  4720. if (nt.hasOwnProperty(h)) {
  4721. for (s = [], t = 0, i = nt[h].length; t < i; t++)
  4722. s.push({
  4723. type: nt[h][t].type,
  4724. params: nt[h][t].Oa
  4725. });
  4726. r[h] = s;
  4727. }
  4728. return o;
  4729. };
  4730. var at = [];
  4731. rt.Qb = function (t) {
  4732. var i = t.silent;
  4733. X = t.masterVolume, this.Ph = t.listenerZ, this.jc.li(null), -1 !== (l = t.listenerUid) && (this.jc.ik = l, at.push(this.jc));
  4734. var s, e, h, n, o, r, a, c, p, u, f, l = t.playing;
  4735. if (3 !== this.fe)
  4736. for (s = 0, e = U.length; s < e; s++)
  4737. (p = U[s]).yd && 1 === this.fe || !p.yd && 2 === this.fe || p.stop();
  4738. for (o in nt)
  4739. if (nt.hasOwnProperty(o))
  4740. for (s = 0, e = nt[o].length; s < e; s++)
  4741. nt[o][s].remove();
  4742. for (o in (Ya(nt), t.effects))
  4743. if (t.effects.hasOwnProperty(o))
  4744. for (s = 0, e = (r = t.effects[o]).length; s < e; s++)
  4745. switch (h = r[s].type, u = r[s].params, h) {
  4746. case 'filter':
  4747. M(o, new b(u[0], u[1], u[2], u[3], u[4], u[5]));
  4748. break;
  4749. case 'delay':
  4750. M(o, new d(u[0], u[1], u[2]));
  4751. break;
  4752. case 'convolve':
  4753. h = u[2], (p = this.Nj(h, !1)).ca ? h = new g(p.ca, u[0], u[1], h) : (h = new g(null, u[0], u[1], h), p.Iq = u[0], p.tj = h), M(o, h);
  4754. break;
  4755. case 'flanger':
  4756. M(o, new y(u[0], u[1], u[2], u[3], u[4]));
  4757. break;
  4758. case 'phaser':
  4759. M(o, new v(u[0], u[1], u[2], u[3], u[4], u[5]));
  4760. break;
  4761. case 'gain':
  4762. M(o, new m(u[0]));
  4763. break;
  4764. case 'tremolo':
  4765. M(o, new w(u[0], u[1]));
  4766. break;
  4767. case 'ringmod':
  4768. M(o, new k(u[0], u[1]));
  4769. break;
  4770. case 'distortion':
  4771. M(o, new x(u[0], u[1], u[2], u[3], u[4]));
  4772. break;
  4773. case 'compressor':
  4774. M(o, new T(u[0], u[1], u[2], u[3], u[4]));
  4775. break;
  4776. case 'analyser':
  4777. M(o, new E(u[0], u[1]));
  4778. }
  4779. for (s = 0, e = l.length; s < e; s++)
  4780. 3 === this.fe || (h = (t = l[s]).buffersrc, n = t.is_music, o = t.tag, r = t.playbackTime, a = t.looping, c = t.volume, f = (u = t.pan) && u.hasOwnProperty('objUid') ? u.objUid : -1, n && 1 === this.fe) || !n && 2 === this.fe || ((p = this.Oj(h, o, n, a, c)) ? (p.cc = t.resume_position, p.Pk(!!u), p.play(a, c, r), p.Bi(), p.Ly(), p.Bj(p.lg || p.Kh), t.paused && p.pause(), t.muted && p.uy(), p.Bj(p.lg || p.Kh), u && (-1 !== f ? (p.Cb = p.Cb || new j(), p.Cb.ik = f, at.push(p.Cb)) : p.Cn(u.x, u.y, u.a, u.ia, u.oa, u.og))) : ((p = this.Nj(h, n)).Mk = r, p.wk = t.paused, u && (-1 !== f ? p.Eg.push({
  4781. Kq: f,
  4782. vm: u.ia,
  4783. Zm: u.oa,
  4784. bn: u.og,
  4785. Mr: o
  4786. }) : p.Eg.push({
  4787. x: u.x,
  4788. y: u.y,
  4789. zu: u.a,
  4790. vm: u.ia,
  4791. Zm: u.oa,
  4792. bn: u.og,
  4793. Mr: o
  4794. }))));
  4795. if (i && !z) {
  4796. for (s = 0, e = U.length; s < e; s++)
  4797. U[s].xr(!0);
  4798. z = !0;
  4799. } else if (!i && z) {
  4800. for (s = 0, e = U.length; s < e; s++)
  4801. U[s].xr(!1);
  4802. z = !1;
  4803. }
  4804. }, rt.Kd = function () {
  4805. var t, i, s, e;
  4806. for (t = 0, i = at.length; t < i; t++)
  4807. s = at[t], e = this.b.Uj(s.ik), s.li(e), s.ik = -1, e && (Y = e.x, H = e.y);
  4808. A(at);
  4809. }, rt.Lx = function (t) {
  4810. if (!this.Sx) {
  4811. var i, s;
  4812. for (!t && C && C.resume && (C.resume(), V = !1), i = 0, s = U.length; i < s; i++)
  4813. U[i].xy(t);
  4814. t && C && C.suspend && (C.suspend(), V = !0);
  4815. }
  4816. }, rt.mb = function () {
  4817. var t, i, s, e, h, n = this.b.De;
  4818. for (t = 0, i = U.length; t < i; t++)
  4819. (s = U[t]).mb(n), 0 !== _ && s.Bi();
  4820. for (e in nt)
  4821. if (nt.hasOwnProperty(e))
  4822. for (t = 0, i = (s = nt[e]).length; t < i; t++)
  4823. (h = s[t]).mb && h.mb();
  4824. 1 === F && this.jc.Wj() && (this.jc.mb(n), Y = this.jc.ka.x, H = this.jc.ka.y, C.listener.setPosition(this.jc.ka.x, this.jc.ka.y, this.Ph));
  4825. };
  4826. var ct = [];
  4827. rt.wy = function (t) {
  4828. var i, s, e, h, n, o = 0;
  4829. for (i = 0, s = t.length; i < s; ++i)
  4830. h = (e = t[i])[0], e = 2 * e[1], ((n = 4 < h.length && '.ogg' === h.substr(h.length - 4)) && N || !n && !N) && (ct.push({
  4831. filename: h,
  4832. size: e,
  4833. ka: null
  4834. }), o += e);
  4835. return o;
  4836. }, rt.By = function () {
  4837. var t, i, s, e;
  4838. for (t = 0, i = ct.length; t < i; ++t)
  4839. s = ct[t], e = this.b.rh + s.filename, s.ka = this.Nj(e, !1);
  4840. }, rt.xw = function () {
  4841. var t, i, s, e = 0;
  4842. for (t = 0, i = ct.length; t < i; ++t)
  4843. (s = ct[t]).ka.cx() || s.ka.Rw() || this.b.pa || this.b.Xj ? e += s.size : s.ka.Op() && (e += Math.floor(s.size / 2));
  4844. return e;
  4845. }, rt.fy = function () {
  4846. var t, i, s, e;
  4847. for (s = t = 0, i = I.length; t < i; ++t)
  4848. e = I[t], (I[s] = e).yd ? e.ey() : ++s;
  4849. I.length = s;
  4850. }, rt.Nj = function (t, i) {
  4851. var s, e, h, n = null;
  4852. for (s = 0, e = I.length; s < e; s++)
  4853. if ((h = I[s]).src === t) {
  4854. n = h;
  4855. break;
  4856. }
  4857. return n || (et && i && this.fy(), n = new l(t, i), I.push(n)), n;
  4858. }, rt.Oj = function (t, i, s, e, h) {
  4859. var n, o, r;
  4860. for (n = 0, o = U.length; n < o; n++)
  4861. if ((r = U[n]).src === t && (r.Mu() || s))
  4862. return r.tag = i, r;
  4863. return (t = this.Nj(t, s)).ca ? (r = new R(t, i), U.push(r), r) : ('<preload>' !== i && (t.xk = i, t.Um = e, t.Vn = h), null);
  4864. };
  4865. var pt = [];
  4866. s.prototype.Si = function (t) {
  4867. return mb(L, t);
  4868. }, s.prototype.Xs = function (t) {
  4869. var i;
  4870. for (S(t), t = 0, i = pt.length; t < i; t++)
  4871. if (pt[t].hg())
  4872. return !0;
  4873. return !1;
  4874. }, P.c = new s(), e.prototype.Play = function (t, i, s, e) {
  4875. !z && (s = r(s), B = this.Oj(this.b.rh + t[0] + (N ? '.ogg' : '.m4a'), e, t[1], 0 !== i, s)) && (B.Pk(!1), B.play(0 !== i, s, 0, this.pk), this.pk = 0);
  4876. }, e.prototype.Lt = function (t, i, s, e, h) {
  4877. !z && (e = r(e), B = this.Oj(this.b.rh + i.toLowerCase() + (N ? '.ogg' : '.m4a'), h, 1 === t, 0 !== s, e)) && (B.Pk(!1), B.play(0 !== s, e, 0, this.pk), this.pk = 0);
  4878. }, e.prototype.Nt = function (t) {
  4879. if (!z) {
  4880. var i = t[1];
  4881. t = this.b.rh + t[0] + (N ? '.ogg' : '.m4a'), 3 === F ? this.b.pb ? AppMobi.context.loadSound(t) : AppMobi.player.loadSound(t) : 2 !== F && this.Oj(t, '<preload>', i, !1);
  4882. }
  4883. }, e.prototype.eu = function (t, i) {
  4884. var s, e;
  4885. for (S(t), i < 0 && (i = 0), s = 0, e = pt.length; s < e; s++)
  4886. pt[s].vy(i);
  4887. }, e.prototype.Fo = function (t) {
  4888. var i;
  4889. for (S(t), t = 0, i = pt.length; t < i; t++)
  4890. pt[t].stop();
  4891. }, e.prototype.pu = function () {
  4892. var t, i;
  4893. for (t = 0, i = U.length; t < i; t++)
  4894. U[t].stop();
  4895. }, e.prototype.du = function (t, i) {
  4896. var s, e;
  4897. for (S(t), s = 0, e = pt.length; s < e; s++)
  4898. 0 === i ? pt[s].pause() : pt[s].mr();
  4899. }, P.e = new e(), P.g = new function () {
  4900. }();
  4901. }(), function () {
  4902. function i() {
  4903. r && a && window.OfflineClientInfo && window.OfflineClientInfo.SetMessageCallback(function (t) {
  4904. c.Jx(t);
  4905. });
  4906. }
  4907. function t() {
  4908. }
  4909. function s() {
  4910. }
  4911. function e(t) {
  4912. console && console.warn && console.warn('Fullscreen request failed: ', t), u.setSize(window.innerWidth, window.innerHeight);
  4913. }
  4914. function h() {
  4915. }
  4916. var n = vc.prototype;
  4917. n.W = function (t) {
  4918. this.X = t, this.b = t.b;
  4919. };
  4920. var o = n.W.prototype, r = !(o.D = function () {
  4921. }), a = !1;
  4922. document.addEventListener('DOMContentLoaded', function () {
  4923. if (window.C2_RegisterSW && navigator.serviceWorker) {
  4924. var t = document.createElement('script');
  4925. t.onload = function () {
  4926. r = !0, i();
  4927. }, t.src = 'offlineClient.js', document.head.appendChild(t);
  4928. }
  4929. });
  4930. var c = null;
  4931. o.Oq = function () {
  4932. a = !0, i();
  4933. }, n.S = function (t) {
  4934. this.type = t, this.b = t.b;
  4935. }, (o = n.S.prototype).D = function () {
  4936. var i = this;
  4937. window.addEventListener('resize', function () {
  4938. i.b.trigger(vc.prototype.c.Bt, i);
  4939. }), c = this, void 0 !== navigator.onLine && (window.addEventListener('online', function () {
  4940. i.b.trigger(vc.prototype.c.yt, i);
  4941. }), window.addEventListener('offline', function () {
  4942. i.b.trigger(vc.prototype.c.wt, i);
  4943. })), this.b.pb || (document.addEventListener('appMobi.device.update.available', function () {
  4944. i.b.trigger(vc.prototype.c.Wi, i);
  4945. }), document.addEventListener('backbutton', function () {
  4946. i.b.trigger(vc.prototype.c.Ri, i);
  4947. }), document.addEventListener('menubutton', function () {
  4948. i.b.trigger(vc.prototype.c.vo, i);
  4949. }), document.addEventListener('searchbutton', function () {
  4950. i.b.trigger(vc.prototype.c.Ct, i);
  4951. }), document.addEventListener('tizenhwkey', function (t) {
  4952. switch (t.keyName) {
  4953. case 'back':
  4954. !i.b.trigger(vc.prototype.c.Ri, i) && window.tizen && window.tizen.application.getCurrentApplication().exit();
  4955. break;
  4956. case 'menu':
  4957. i.b.trigger(vc.prototype.c.vo, i) || t.preventDefault();
  4958. }
  4959. })), this.b.$j && 'undefined' != typeof Windows ? Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener('backrequested', function (t) {
  4960. i.b.trigger(vc.prototype.c.Ri, i) && (t.handled = !0);
  4961. }) : this.b.Qp && WinJS.Application && (WinJS.Application.onbackclick = function () {
  4962. return !!i.b.trigger(vc.prototype.c.Ri, i);
  4963. }), this.b.No(function (t) {
  4964. t ? i.b.trigger(vc.prototype.c.zt, i) : i.b.trigger(vc.prototype.c.At, i);
  4965. });
  4966. }, o.Jx = function (t) {
  4967. 'downloading-update' === (t = t.data.type) ? this.b.trigger(vc.prototype.c.Ao, this) : 'update-ready' === t || 'update-pending' === t ? this.b.trigger(vc.prototype.c.Wi, this) : 'offline-ready' === t && this.b.trigger(vc.prototype.c.xt, this);
  4968. }, t.prototype.yt = function () {
  4969. return !0;
  4970. }, t.prototype.wt = function () {
  4971. return !0;
  4972. }, t.prototype.Wi = function () {
  4973. return !0;
  4974. }, t.prototype.At = function () {
  4975. return !0;
  4976. }, t.prototype.zt = function () {
  4977. return !0;
  4978. }, t.prototype.Bt = function () {
  4979. return !0;
  4980. }, t.prototype.Ri = function () {
  4981. return !0;
  4982. }, t.prototype.vo = function () {
  4983. return !0;
  4984. }, t.prototype.Ct = function () {
  4985. return !0;
  4986. }, t.prototype.Ao = function () {
  4987. return !0;
  4988. }, t.prototype.Wi = function () {
  4989. return !0;
  4990. }, t.prototype.xt = function () {
  4991. return !0;
  4992. }, n.c = new t();
  4993. var p = !0, u = null;
  4994. s.prototype.St = function (t) {
  4995. this.b.pa ? fa('[Construct 2] Requesting fullscreen is not supported on this platform - the request has been ignored') : (2 <= t && (t += 1), 6 === t && (t = 2), this.b.gx ? this.b.$w ? debuggerFullscreen(!0) : !this.b.gg && window.nwgui && (window.nwgui.Window.get().enterFullscreen(), this.b.gg = !0, this.b.Fe = 2 <= t ? t : 0) : document.mozFullScreen || document.webkitIsFullScreen || document.msFullscreenElement || document.fullScreen || document.fullScreenElement || (this.b.Fe = 2 <= t ? t : 0, t = document.documentElement, p && (p = !1, u = this.b, t.addEventListener('mozfullscreenerror', e), t.addEventListener('webkitfullscreenerror', e), t.addEventListener('MSFullscreenError', e), t.addEventListener('fullscreenerror', e)), t.requestFullscreen ? t.requestFullscreen() : t.mozRequestFullScreen ? t.mozRequestFullScreen() : t.msRequestFullscreen ? t.msRequestFullscreen() : t.webkitRequestFullScreen && ('undefined' != typeof Element && void 0 !== Element.ALLOW_KEYBOARD_INPUT ? t.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT) : t.webkitRequestFullScreen())));
  4996. }, s.prototype.ys = function (t, i) {
  4997. 'undefined' != typeof console && (0 === t && console.log && console.log(i.toString()), 1 === t && console.warn && console.warn(i.toString()), 2 === t && console.error && console.error(i.toString()));
  4998. }, n.e = new s(), h.prototype.Pt = function (t, i) {
  4999. if (this.b.pa)
  5000. t.la('');
  5001. else {
  5002. var s = RegExp('[?&]' + i + '=([^&]*)').exec(window.location.search);
  5003. s ? t.la(decodeURIComponent(s[1].replace(/\+/g, ' '))) : t.la('');
  5004. }
  5005. }, n.g = new h();
  5006. }(), function () {
  5007. function t() {
  5008. }
  5009. function i() {
  5010. }
  5011. function s() {
  5012. }
  5013. var e = wc.prototype;
  5014. e.W = function (t) {
  5015. this.X = t, this.b = t.b;
  5016. }, e.W.prototype.D = function () {
  5017. }, e.S = function (t) {
  5018. this.type = t, this.b = t.b;
  5019. };
  5020. var h = e.S.prototype;
  5021. h.D = function () {
  5022. this.dd = {}, this.rg = 0;
  5023. }, h.Fb = function () {
  5024. return this.dd;
  5025. }, h.Qb = function (t) {
  5026. for (var i in (this.dd = t, this.rg = 0, this.dd))
  5027. this.dd.hasOwnProperty(i) && this.rg++;
  5028. }, t.prototype.Js = function (t) {
  5029. return this.dd.hasOwnProperty(t);
  5030. }, t.prototype.nl = function () {
  5031. return 0 === this.rg;
  5032. }, e.c = new t(), i.prototype.js = function (t, i) {
  5033. this.dd.hasOwnProperty(t) || this.rg++, this.dd[t] = i;
  5034. }, i.prototype.co = function () {
  5035. Ya(this.dd), this.rg = 0;
  5036. }, e.e = new i(), s.prototype.Hs = function (t, i) {
  5037. this.dd.hasOwnProperty(i) ? t.Kg(this.dd[i]) : t.H(0);
  5038. }, s.prototype.Zs = function (t) {
  5039. t.H(this.rg);
  5040. }, s.prototype.ll = function (t) {
  5041. t.la(JSON.stringify({
  5042. c2dictionary: !0,
  5043. data: this.dd
  5044. }));
  5045. }, e.g = new s();
  5046. }(), function () {
  5047. function t() {
  5048. this.name = '', this.Hg = 0, this.Oa = [];
  5049. }
  5050. function r() {
  5051. return ++a === o.length && o.push(new t()), o[a];
  5052. }
  5053. function h() {
  5054. return a < 0 ? null : o[a];
  5055. }
  5056. function i() {
  5057. }
  5058. function s() {
  5059. }
  5060. function e() {
  5061. }
  5062. var n = sc.prototype;
  5063. n.W = function (t) {
  5064. this.X = t, this.b = t.b;
  5065. }, n.W.prototype.D = function () {
  5066. }, n.S = function (t) {
  5067. this.type = t, this.b = t.b;
  5068. };
  5069. var o = [], a = -1;
  5070. n.S.prototype.D = function () {
  5071. var o = this;
  5072. window.c2_callFunction = function (t, i) {
  5073. var s, e, h, n = r();
  5074. if (n.name = t.toLowerCase(), n.Hg = 0, i)
  5075. for (n.Oa.length = i.length, s = 0, e = i.length; s < e; ++s)
  5076. h = i[s], n.Oa[s] = 'number' == typeof h || 'string' == typeof h ? h : 'boolean' == typeof h && h ? 1 : 0;
  5077. else
  5078. A(n.Oa);
  5079. return o.b.trigger(sc.prototype.c.Ui, o, n.name), a--, n.Hg;
  5080. };
  5081. }, i.prototype.Ui = function (t) {
  5082. var i = h();
  5083. return !!i && mb(t, i.name);
  5084. }, i.prototype.ts = function (t, i, s) {
  5085. var e = h();
  5086. return !!e && !((t = ta(t)) < 0 || t >= e.Oa.length) && ic(e.Oa[t], i, s);
  5087. }, n.c = new i(), s.prototype.CallFunction = function (t, i) {
  5088. var s = r();
  5089. s.name = t.toLowerCase(), s.Hg = 0, Da(s.Oa, i), this.b.trigger(sc.prototype.c.Ui, this, s.name), a--;
  5090. }, s.prototype.gu = function (t) {
  5091. var i = h();
  5092. i && (i.Hg = t);
  5093. }, n.e = new s(), e.prototype.Ft = function (t, i) {
  5094. i = ta(i);
  5095. var s = h();
  5096. s && 0 <= i && i < s.Oa.length ? t.Kg(s.Oa[i]) : t.H(0);
  5097. }, e.prototype.bo = function (t, i) {
  5098. var s, e, h = r();
  5099. for (h.name = i.toLowerCase(), h.Hg = 0, A(h.Oa), s = 2, e = arguments.length; s < e; s++)
  5100. h.Oa.push(arguments[s]);
  5101. this.b.trigger(sc.prototype.c.Ui, this, h.name), a--, t.Kg(h.Hg);
  5102. }, n.g = new e();
  5103. }(), function () {
  5104. function t() {
  5105. }
  5106. var i = xc.prototype;
  5107. i.W = function (t) {
  5108. this.X = t, this.b = t.b;
  5109. }, i.W.prototype.D = function () {
  5110. }, i.S = function (t) {
  5111. this.type = t, this.b = t.b, this.qg = Array(256), this.Ci = Array(256), this.me = 0;
  5112. };
  5113. var s = i.S.prototype;
  5114. s.D = function () {
  5115. var i = this;
  5116. this.b.pa || (jQuery(document).keydown(function (t) {
  5117. i.Ex(t);
  5118. }), jQuery(document).keyup(function (t) {
  5119. i.Fx(t);
  5120. }));
  5121. };
  5122. var h = [32,33,34,35,36,37,38,39,40,44];
  5123. s.Ex = function (t) {
  5124. var i = !1;
  5125. if (window != window.top && -1 < h.indexOf(t.which) && (t.preventDefault(), i = !0, t.stopPropagation()), this.qg[t.which])
  5126. this.Ci[t.which] && !i && t.preventDefault();
  5127. else {
  5128. this.qg[t.which] = !0, this.me = t.which, this.b.xc = !0, this.b.trigger(xc.prototype.c.ht, this);
  5129. var s = this.b.trigger(xc.prototype.c.qt, this), e = this.b.trigger(xc.prototype.c.tt, this);
  5130. this.b.xc = !1, (s || e) && (this.Ci[t.which] = !0, i || t.preventDefault());
  5131. }
  5132. }, s.Fx = function (t) {
  5133. this.qg[t.which] = !1, this.me = t.which, this.b.xc = !0, this.b.trigger(xc.prototype.c.no, this);
  5134. var i = this.b.trigger(xc.prototype.c.ro, this), s = this.b.trigger(xc.prototype.c.qo, this);
  5135. this.b.xc = !1, (i || s || this.Ci[t.which]) && (this.Ci[t.which] = !0, t.preventDefault());
  5136. }, s.Cg = function () {
  5137. var t;
  5138. for (t = 0; t < 256; ++t)
  5139. if (this.qg[t]) {
  5140. this.qg[t] = !1, this.me = t, this.b.trigger(xc.prototype.c.no, this);
  5141. var i = this.b.trigger(xc.prototype.c.ro, this), s = this.b.trigger(xc.prototype.c.qo, this);
  5142. (i || s) && (this.Ci[t] = !0);
  5143. }
  5144. }, s.Fb = function () {
  5145. return { triggerKey: this.me };
  5146. }, s.Qb = function (t) {
  5147. this.me = t.triggerKey;
  5148. }, t.prototype.Rs = function (t) {
  5149. return this.qg[t];
  5150. }, t.prototype.qt = function (t) {
  5151. return t === this.me;
  5152. }, t.prototype.ht = function () {
  5153. return !0;
  5154. }, t.prototype.no = function () {
  5155. return !0;
  5156. }, t.prototype.ro = function (t) {
  5157. return t === this.me;
  5158. }, t.prototype.tt = function (t) {
  5159. return t === this.me;
  5160. }, t.prototype.qo = function (t) {
  5161. return t === this.me;
  5162. }, i.c = new t(), i.e = new function () {
  5163. }(), i.g = new function () {
  5164. }();
  5165. }(), function () {
  5166. function v(t, i, s, e, h, n, o, r, a, c) {
  5167. t.save(), t.fillStyle = i;
  5168. var p = n % e;
  5169. (i = h % s) < 0 && (i += s), p < 0 && (p += e), t.translate(i + a, p + c), t.fillRect(h - i - a, n - p - c, o, r), t.restore();
  5170. }
  5171. var t = Y.prototype;
  5172. t.W = function (t) {
  5173. this.X = t, this.b = t.b;
  5174. };
  5175. var i = t.W.prototype;
  5176. i.D = function () {
  5177. this.B || (this.q = new Image(), this.q.Ql = this.Yk, this.b.gl(this.q, this.wi), this.Hi = this.Ki = this.Ji = this.Ii = this.Xg = this.r = this.So = this.Pr = this.nr = this.hq = this.em = null);
  5178. }, i.ei = function () {
  5179. this.B || (this.Hi = this.Ki = this.Ji = this.Ii = this.Xg = this.r = null);
  5180. }, i.fi = function () {
  5181. this.B || !this.d.length || this.r || (this.r = this.b.k.yc(this.q, !0, this.b.qa, this.Ue));
  5182. }, i.Ai = function () {
  5183. this.B || this.d.length || !this.b.k || (this.b.k.deleteTexture(this.r), this.b.k.deleteTexture(this.Xg), this.b.k.deleteTexture(this.Ii), this.b.k.deleteTexture(this.Ji), this.b.k.deleteTexture(this.Ki), this.b.k.deleteTexture(this.Hi), this.Hi = this.Ki = this.Ji = this.Ii = this.Xg = this.r = null);
  5184. }, i.Gd = function (t, i, s, e) {
  5185. var h = document.createElement('canvas');
  5186. return s -= t, e -= i, h.width = s, h.height = e, h.getContext('2d').drawImage(this.q, t, i, s, e, 0, 0, s, e), h;
  5187. }, i.Tu = function (t, i, s, e) {
  5188. var h = this.q.width, n = this.q.height, o = h - i, r = n - e;
  5189. if (this.b.k) {
  5190. if (!this.Xg) {
  5191. var a = this.b.k, c = this.b.qa, p = this.Ue;
  5192. t < o && s < r && (this.Xg = a.yc(this.Gd(t, s, o, r), !0, c, p)), 0 < t && s < r && (this.Ii = a.yc(this.Gd(0, s, t, r), !0, c, p, 'repeat-y')), 0 < i && s < r && (this.Ji = a.yc(this.Gd(o, s, h, r), !0, c, p, 'repeat-y')), 0 < s && t < o && (this.Ki = a.yc(this.Gd(t, 0, o, s), !0, c, p, 'repeat-x')), 0 < e && t < o && (this.Hi = a.yc(this.Gd(t, r, o, n), !0, c, p, 'repeat-x'));
  5193. }
  5194. } else
  5195. this.em || (a = this.b.Ba, t < o && s < r && (this.em = a.createPattern(this.Gd(t, s, o, r), 'repeat')), 0 < t && s < r && (this.hq = a.createPattern(this.Gd(0, s, t, r), 'repeat')), 0 < i && s < r && (this.nr = a.createPattern(this.Gd(o, s, h, r), 'repeat')), 0 < s && t < o && (this.Pr = a.createPattern(this.Gd(t, 0, o, s), 'repeat')), 0 < e && t < o && (this.So = a.createPattern(this.Gd(t, r, o, n), 'repeat')));
  5196. }, t.S = function (t) {
  5197. this.type = t, this.b = t.b;
  5198. }, (i = t.S.prototype).D = function () {
  5199. this.Om = this.A[0], this.wn = this.A[1], this.Ln = this.A[2], this.Hl = this.A[3], this.Cj = this.A[4], this.fill = this.A[5], this.visible = 0 === this.A[6], this.qr = 0 !== this.A[8], this.Bc ? this.de.set(0, 0, 0, 0) : this.de = new wa(0, 0, 0, 0), this.b.k && !this.type.r && (this.type.r = this.b.k.yc(this.type.q, !1, this.b.qa, this.type.Ue)), this.type.Tu(this.Om, this.wn, this.Ln, this.Hl);
  5200. }, i.ed = function (t) {
  5201. var i = this.type.q, s = this.Om, e = this.wn, h = this.Ln, n = this.Hl, o = i.width, r = i.height, a = o - e, c = r - n;
  5202. t.globalAlpha = this.opacity, t.save();
  5203. var p = this.x, u = this.y, f = this.width, l = this.height;
  5204. this.b.Ac && (p = Math.round(p), u = Math.round(u));
  5205. var b = -(this.Nb * this.width), d = -(this.Ob * this.height), g = b % o, y = d % r;
  5206. g < 0 && (g += o), y < 0 && (y += r), t.translate(p + g, u + y), o = b - g, d -= y, y = this.qr ? 1 : 0, 0 < s && 0 < h && t.drawImage(i, 0, 0, s + y, h + y, o, d, s + y, h + y), 0 < e && 0 < h && t.drawImage(i, a - y, 0, e + y, h + y, o + f - e - y, d, e + y, h + y), 0 < e && 0 < n && t.drawImage(i, a - y, c - y, e + y, n + y, o + f - e - y, d + l - n - y, e + y, n + y), 0 < s && 0 < n && t.drawImage(i, 0, c - y, s + y, n + y, o, d + l - n - y, s + y, n + y), 0 === this.Cj ? (y = 2 === this.fill ? 0 : y, 0 < s && h < c && v(t, this.type.hq, s, c - h, o, d + h, s + y, l - h - n, 0, 0), 0 < e && h < c && v(t, this.type.nr, e, c - h, o + f - e - y, d + h, e + y, l - h - n, y, 0), 0 < h && s < a && v(t, this.type.Pr, a - s, h, o + s, d, f - s - e, h + y, 0, 0), 0 < n && s < a && v(t, this.type.So, a - s, n, o + s, d + l - n - y, f - s - e, n + y, 0, y)) : 1 === this.Cj && (0 < s && h < c && 0 < l - h - n && t.drawImage(i, 0, h, s, c - h, o, d + h, s, l - h - n), 0 < e && h < c && 0 < l - h - n && t.drawImage(i, a, h, e, c - h, o + f - e, d + h, e, l - h - n), 0 < h && s < a && 0 < f - s - e && t.drawImage(i, s, 0, a - s, h, o + s, d, f - s - e, h), 0 < n && s < a && 0 < f - s - e && t.drawImage(i, s, c, a - s, n, o + s, d + l - n, f - s - e, n)), h < c && s < a && (0 === this.fill ? v(t, this.type.em, a - s, c - h, o + s, d + h, f - s - e, l - h - n, 0, 0) : 1 === this.fill && 0 < f - s - e && 0 < l - h - n && t.drawImage(i, s, h, a - s, c - h, o + s, d + h, f - s - e, l - h - n)), t.restore();
  5207. }, i.Td = function (t, i, s, e, h, n, o, r, a, c) {
  5208. t.Rb(i);
  5209. var p = this.de;
  5210. p.left = s / i.bd, p.top = e / i.ad, p.right = (s + h) / i.bd, p.bottom = (e + n) / i.ad, t.Sc(o, r, o + a, r, o + a, r + c, o, r + c, p);
  5211. }, i.xi = function (t, i, s, e, h, n, o, r) {
  5212. t.Rb(i);
  5213. var a = this.de;
  5214. a.left = -o / i.bd, a.top = -r / i.ad, a.right = (h - o) / i.bd, a.bottom = (n - r) / i.ad, t.Sc(s, e, s + h, e, s + h, e + n, s, e + n, a);
  5215. }, i.Ce = function (t) {
  5216. this.Kb(t);
  5217. }, i.Kb = function (t) {
  5218. var i = this.Om, s = this.wn, e = this.Ln, h = this.Hl, n = this.type.q.width - s, o = this.type.q.height - h;
  5219. t.Se(this.opacity);
  5220. var r = (a = this.Xb).Fa, a = a.Ga, c = this.width, p = this.height;
  5221. this.b.Ac && (r = Math.round(r), a = Math.round(a));
  5222. var u = this.qr ? 1 : 0;
  5223. 0 < i && 0 < e && this.Td(t, this.type.r, 0, 0, i + u, e + u, r, a, i + u, e + u), 0 < s && 0 < e && this.Td(t, this.type.r, n - u, 0, s + u, e + u, r + c - s - u, a, s + u, e + u), 0 < s && 0 < h && this.Td(t, this.type.r, n - u, o - u, s + u, h + u, r + c - s - u, a + p - h - u, s + u, h + u), 0 < i && 0 < h && this.Td(t, this.type.r, 0, o - u, i + u, h + u, r, a + p - h - u, i + u, h + u), 0 === this.Cj ? (u = 2 === this.fill ? 0 : u, 0 < i && e < o && this.xi(t, this.type.Ii, r, a + e, i + u, p - e - h, 0, 0), 0 < s && e < o && this.xi(t, this.type.Ji, r + c - s - u, a + e, s + u, p - e - h, u, 0), 0 < e && i < n && this.xi(t, this.type.Ki, r + i, a, c - i - s, e + u, 0, 0), 0 < h && i < n && this.xi(t, this.type.Hi, r + i, a + p - h - u, c - i - s, h + u, 0, u)) : 1 === this.Cj && (0 < i && e < o && this.Td(t, this.type.r, 0, e, i, o - e, r, a + e, i, p - e - h), 0 < s && e < o && this.Td(t, this.type.r, n, e, s, o - e, r + c - s, a + e, s, p - e - h), 0 < e && i < n && this.Td(t, this.type.r, i, 0, n - i, e, r + i, a, c - i - s, e), 0 < h && i < n && this.Td(t, this.type.r, i, o, n - i, h, r + i, a + p - h, c - i - s, h)), e < o && i < n && (0 === this.fill ? this.xi(t, this.type.Xg, r + i, a + e, c - i - s, p - e - h, 0, 0) : 1 === this.fill && this.Td(t, this.type.r, i, e, n - i, o - e, r + i, a + e, c - i - s, p - e - h));
  5224. }, t.c = new function () {
  5225. }(), t.e = new function () {
  5226. }(), t.g = new function () {
  5227. }();
  5228. }(), function () {
  5229. function c() {
  5230. if (0 === this.Vl.length) {
  5231. var t = document.createElement('canvas');
  5232. t.width = this.width, t.height = this.height;
  5233. var i = t.getContext('2d');
  5234. this.Mg ? i.drawImage(this.q, this.Ag, this.Bg, this.width, this.height, 0, 0, this.width, this.height) : i.drawImage(this.q, 0, 0, this.width, this.height), this.Vl = t.toDataURL('image/png');
  5235. }
  5236. return this.Vl;
  5237. }
  5238. function t() {
  5239. }
  5240. function e(t, i, s) {
  5241. if (!t)
  5242. return !1;
  5243. var e, h, n, o = 0 !== i || 0 !== s, r = !1, a = (c = this.b.Qj()).type, c = c.fg, p = t.N();
  5244. for (n = this.b.Ea().Ia.kc, p = p.R ? (this.Aa(), d.Vf(this.Qa), d.offset(i, s), this.b.ow(this.j, t, d, b), b) : !n || this.b.Zw() && !p.I.length && p.d.length ? p.d : p.I, l = a !== (u = t) && !c, o && (e = this.x, h = this.y, this.x += i, this.y += s, this.za()), i = 0, s = p.length; i < s; i++)
  5245. if (n = p[i], this.b.Ey(this, n)) {
  5246. if (r = !0, c)
  5247. break;
  5248. a !== t && f.add(n);
  5249. }
  5250. return o && (this.x = e, this.y = h, this.za()), A(b), r;
  5251. }
  5252. function i() {
  5253. }
  5254. function s() {
  5255. }
  5256. var h = V.prototype;
  5257. h.W = function (t) {
  5258. this.X = t, this.b = t.b;
  5259. };
  5260. var n = h.W.prototype;
  5261. n.D = function () {
  5262. var t, i, s, e, h, n, o, r, a;
  5263. if (!this.B)
  5264. for (this.Xc = [], this.yh = !1, t = 0, i = this.gc.length; t < i; t++) {
  5265. for (h = this.gc[t], (o = {}).name = h[0], o.speed = h[1], o.loop = h[2], o.un = h[3], o.vn = h[4], o.cr = h[5], o.Y = h[6], o.frames = [], s = 0, e = h[7].length; s < e; s++)
  5266. n = h[7][s], (r = {}).wi = n[0], r.Yk = n[1], r.Ag = n[2], r.Bg = n[3], r.width = n[4], r.height = n[5], r.duration = n[6], r.Nb = n[7], r.Ob = n[8], r.wm = n[9], r.yk = n[10], r.dr = n[11], r.Mg = 0 !== r.width, r.Vl = '', r.uz = c, a = {
  5267. left: 0,
  5268. top: 0,
  5269. right: 1,
  5270. bottom: 1
  5271. }, r.Dn = a, r.r = null, (a = this.b.gw(n[0])) ? r.q = a : (r.q = new Image(), r.q.Qu = n[0], r.q.Ql = n[1], r.q.Lu = null, this.b.gl(r.q, n[0])), o.frames.push(r), this.Xc.push(r);
  5272. this.gc[t] = o;
  5273. }
  5274. }, n.Yr = function () {
  5275. var t, i, s;
  5276. for (t = 0, i = this.d.length; t < i; t++)
  5277. (s = this.d[t]).vj = s.Sa.r;
  5278. }, n.ei = function () {
  5279. if (!this.B) {
  5280. var t, i, s;
  5281. for (t = 0, i = this.Xc.length; t < i; ++t)
  5282. (s = this.Xc[t]).q.Lu = null, s.r = null;
  5283. this.yh = !1, this.Yr();
  5284. }
  5285. }, n.fi = function () {
  5286. if (!this.B && this.d.length) {
  5287. var t, i, s;
  5288. for (t = 0, i = this.Xc.length; t < i; ++t)
  5289. (s = this.Xc[t]).r = this.b.k.yc(s.q, !1, this.b.qa, s.dr);
  5290. this.Yr();
  5291. }
  5292. }, n.Pm = function () {
  5293. if (!this.B && !this.yh && this.b.k) {
  5294. var t, i, s;
  5295. for (t = 0, i = this.Xc.length; t < i; ++t)
  5296. (s = this.Xc[t]).r = this.b.k.yc(s.q, !1, this.b.qa, s.dr);
  5297. this.yh = !0;
  5298. }
  5299. }, n.Ai = function () {
  5300. if (!this.B && !this.d.length && this.yh) {
  5301. var t, i, s;
  5302. for (t = 0, i = this.Xc.length; t < i; ++t)
  5303. s = this.Xc[t], this.b.k.deleteTexture(s.r), s.r = null;
  5304. this.yh = !1;
  5305. }
  5306. };
  5307. var o = [];
  5308. n.Ck = function (t) {
  5309. var i, s, e;
  5310. for (A(o), i = 0, s = this.Xc.length; i < s; ++i)
  5311. e = this.Xc[i].q, -1 === o.indexOf(e) && (t.drawImage(e, 0, 0), o.push(e));
  5312. }, h.S = function (t) {
  5313. this.type = t, this.b = t.b, t = this.type.gc[0].frames[0].yk, this.Bc ? this.ga.oi(t) : this.ga = new gb(t);
  5314. };
  5315. var r = h.S.prototype;
  5316. r.D = function () {
  5317. this.visible = 0 === this.A[0], this.zh = this.uf = !1, this.$e = 0 !== this.A[3], this.xa = this.sp(this.A[1]) || this.type.gc[0], this.C = this.A[2], this.C < 0 && (this.C = 0), this.C >= this.xa.frames.length && (this.C = this.xa.frames.length - 1);
  5318. var t, i, s, e, h, n, o, r = this.xa.frames[this.C];
  5319. for (this.ga.oi(r.yk), this.Nb = r.Nb, this.Ob = r.Ob, this.Wf = this.xa.speed, this.Be = this.xa.vn, 1 === this.type.gc.length && 1 === this.type.gc[0].frames.length || 0 === this.Wf || (this.b.If(this), this.uf = !0), this.Bc ? this.Yc.reset() : this.Yc = new eb(), this.ud = this.Yc.Z, this.Ld = !0, this.Md = 0, this.Ye = !0, this.Tf = this.Oo = '', this.Xo = 0, this.hh = -1, this.type.Pm(), r = 0, t = this.type.gc.length; r < t; r++)
  5320. for (i = 0, s = (e = this.type.gc[r]).frames.length; i < s; i++)
  5321. 0 === (h = e.frames[i]).width && (h.width = h.q.width, h.height = h.q.height), h.Mg && (o = h.q, (n = h.Dn).left = h.Ag / o.width, n.top = h.Bg / o.height, n.right = (h.Ag + h.width) / o.width, n.bottom = (h.Bg + h.height) / o.height, 0 === h.Ag && 0 === h.Bg && h.width === o.width && h.height === o.height && (h.Mg = !1));
  5322. this.Sa = this.xa.frames[this.C], this.vj = this.Sa.r;
  5323. }, r.Fb = function () {
  5324. var t = {
  5325. a: this.xa.Y,
  5326. f: this.C,
  5327. cas: this.Wf,
  5328. fs: this.ud,
  5329. ar: this.Md,
  5330. at: this.Yc.Z,
  5331. rt: this.Be
  5332. };
  5333. return this.Ld || (t.ap = this.Ld), this.Ye || (t.af = this.Ye), t;
  5334. }, r.Qb = function (t) {
  5335. var i = this.kw(t.a);
  5336. i && (this.xa = i), this.C = t.f, this.C < 0 && (this.C = 0), this.C >= this.xa.frames.length && (this.C = this.xa.frames.length - 1), this.Wf = t.cas, this.ud = t.fs, this.Md = t.ar, this.Yc.reset(), this.Yc.Z = t.at, this.Ld = !t.hasOwnProperty('ap') || t.ap, this.Ye = !t.hasOwnProperty('af') || t.af, t.hasOwnProperty('rt') ? this.Be = t.rt : this.Be = this.xa.vn, this.Sa = this.xa.frames[this.C], this.vj = this.Sa.r, this.ga.oi(this.Sa.yk), this.Nb = this.Sa.Nb, this.Ob = this.Sa.Ob;
  5337. }, r.Dl = function (t) {
  5338. this.C = t ? 0 : this.xa.frames.length - 1, this.Ld = !1, this.Oo = this.xa.name, this.zh = !0, this.b.trigger(V.prototype.c.gt, this), this.b.trigger(V.prototype.c.mo, this), this.zh = !1, this.Md = 0;
  5339. }, r.El = function () {
  5340. return this.Yc.Z;
  5341. }, r.mb = function () {
  5342. this.Yc.add(this.b.Rj(this)), this.Tf.length && this.dp(), 0 <= this.hh && this.Zl();
  5343. var t = this.Yc.Z, i = this.xa, s = i.frames[this.C], e = s.duration / this.Wf;
  5344. this.Ld && t >= this.ud + e && (this.Ye ? this.C++ : this.C--, this.ud += e, this.C >= i.frames.length && (i.cr ? (this.Ye = !1, this.C = i.frames.length - 2) : i.loop ? this.C = this.Be : (this.Md++, this.Md >= i.un ? this.Dl(!1) : this.C = this.Be)), this.C < 0 && (i.cr ? (this.C = 1, this.Ye = !0, i.loop || (this.Md++, this.Md >= i.un && this.Dl(!0))) : i.loop ? this.C = this.Be : (this.Md++, this.Md >= i.un ? this.Dl(!0) : this.C = this.Be)), this.C < 0 ? this.C = 0 : this.C >= i.frames.length && (this.C = i.frames.length - 1), t > this.ud + i.frames[this.C].duration / this.Wf && (this.ud = t), t = i.frames[this.C], this.Of(s, t), this.b.fa = !0);
  5345. }, r.sp = function (t) {
  5346. var i, s, e;
  5347. for (i = 0, s = this.type.gc.length; i < s; i++)
  5348. if (e = this.type.gc[i], mb(e.name, t))
  5349. return e;
  5350. return null;
  5351. }, r.kw = function (t) {
  5352. var i, s, e;
  5353. for (i = 0, s = this.type.gc.length; i < s; i++)
  5354. if ((e = this.type.gc[i]).Y === t)
  5355. return e;
  5356. return null;
  5357. }, r.dp = function () {
  5358. var t = this.xa.frames[this.C], i = this.sp(this.Tf);
  5359. this.Tf = '', !i || mb(i.name, this.xa.name) && this.Ld || (this.xa = i, this.Wf = i.speed, this.Be = i.vn, this.C < 0 && (this.C = 0), this.C >= this.xa.frames.length && (this.C = this.xa.frames.length - 1), 1 === this.Xo && (this.C = 0), this.Ld = !0, this.ud = this.Yc.Z, this.Ye = !0, this.Of(t, this.xa.frames[this.C]), this.b.fa = !0);
  5360. }, r.Zl = function () {
  5361. var t = this.xa.frames[this.C], i = this.C;
  5362. this.C = ta(this.hh), this.C < 0 && (this.C = 0), this.C >= this.xa.frames.length && (this.C = this.xa.frames.length - 1), i !== this.C && (this.Of(t, this.xa.frames[this.C]), this.ud = this.Yc.Z, this.b.fa = !0), this.hh = -1;
  5363. }, r.Of = function (t, i) {
  5364. var s = t.width, e = t.height, h = i.width, n = i.height;
  5365. for (s != h && (this.width *= h / s), e != n && (this.height *= n / e), this.Nb = i.Nb, this.Ob = i.Ob, this.ga.oi(i.yk), this.za(), this.Sa = i, this.vj = i.r, s = 0, e = this.L.length; s < e; s++)
  5366. (h = this.L[s]).Kx && h.Kx(t, i);
  5367. this.b.trigger(V.prototype.c.Of, this);
  5368. }, r.ed = function (t) {
  5369. t.globalAlpha = this.opacity;
  5370. var i = this.Sa, s = i.Mg, e = i.q, h = this.x, n = this.y, o = this.width, r = this.height;
  5371. if (0 === this.m && 0 <= o && 0 <= r)
  5372. h -= this.Nb * o, n -= this.Ob * r, this.b.Ac && (h = Math.round(h), n = Math.round(n)), s ? t.drawImage(e, i.Ag, i.Bg, i.width, i.height, h, n, o, r) : t.drawImage(e, h, n, o, r);
  5373. else {
  5374. this.b.Ac && (h = Math.round(h), n = Math.round(n)), t.save();
  5375. var a = 0 < o ? 1 : -1, c = 0 < r ? 1 : -1;
  5376. t.translate(h, n), 1 == a && 1 == c || t.scale(a, c), t.rotate(this.m * a * c), h = 0 - this.Nb * na(o), n = 0 - this.Ob * na(r), s ? t.drawImage(e, i.Ag, i.Bg, i.width, i.height, h, n, na(o), na(r)) : t.drawImage(e, h, n, na(o), na(r)), t.restore();
  5377. }
  5378. }, r.Ce = function (t) {
  5379. this.Kb(t);
  5380. }, r.Kb = function (t) {
  5381. t.Rb(this.vj), t.Se(this.opacity);
  5382. var i = this.Sa, s = this.Xb;
  5383. if (this.b.Ac) {
  5384. var e = Math.round(this.x) - this.x, h = Math.round(this.y) - this.y;
  5385. i.Mg ? t.Sc(s.Fa + e, s.Ga + h, s.nb + e, s.ob + h, s.bb + e, s.cb + h, s.$a + e, s.ab + h, i.Dn) : t.ji(s.Fa + e, s.Ga + h, s.nb + e, s.ob + h, s.bb + e, s.cb + h, s.$a + e, s.ab + h);
  5386. } else
  5387. i.Mg ? t.Sc(s.Fa, s.Ga, s.nb, s.ob, s.bb, s.cb, s.$a, s.ab, i.Dn) : t.ji(s.Fa, s.Ga, s.nb, s.ob, s.bb, s.cb, s.$a, s.ab);
  5388. }, r.sw = function (t) {
  5389. var i, s, e = this.Sa;
  5390. for (i = 0, s = e.wm.length; i < s; i++)
  5391. if (mb(t, e.wm[i][0]))
  5392. return i;
  5393. return -1;
  5394. }, r.nf = function (t, i) {
  5395. var s, e = (h = this.Sa).wm;
  5396. if (s = z(t) ? this.sw(t) : t - 1, (s = ta(s)) < 0 || s >= e.length)
  5397. return i ? this.x : this.y;
  5398. var h, n = (e[s][1] - h.Nb) * this.width, o = (e = ((e = e[s][2]) - h.Ob) * this.height, n * (h = Math.cos(this.m)) - e * (s = Math.sin(this.m)));
  5399. return e = e * h + n * s, n = o + this.x, e += this.y, i ? n : e;
  5400. };
  5401. var u = null, f = new ca(), l = !1, b = [], d = new wa(0, 0, 0, 0);
  5402. n.finish = function (t) {
  5403. if (l) {
  5404. if (t) {
  5405. var i = this.b.Ea().Ia.kc;
  5406. t = u.N();
  5407. var s, e, h = f.We();
  5408. if (t.R) {
  5409. for (t.R = !1, A(t.d), s = 0, e = h.length; s < e; ++s)
  5410. t.d[s] = h[s];
  5411. if (i)
  5412. for (A(t.I), s = 0, e = u.d.length; s < e; ++s)
  5413. h = u.d[s], f.contains(h) || t.I.push(h);
  5414. } else if (i)
  5415. for (i = t.d.length, s = 0, e = h.length; s < e; ++s)
  5416. t.d[i + s] = h[s], Ia(t.I, h[s]);
  5417. else
  5418. Da(t.d, h);
  5419. u.Gc();
  5420. }
  5421. f.clear(), l = !1;
  5422. }
  5423. }, t.prototype.Us = function (t) {
  5424. return e.call(this, t, 0, 0);
  5425. }, t.prototype.Vs = function (t, i, s) {
  5426. return e.call(this, t, i, s);
  5427. }, t.prototype.Ms = function (t) {
  5428. return this.Tf.length ? mb(this.Tf, t) : mb(this.xa.name, t);
  5429. }, t.prototype.mo = function (t) {
  5430. return mb(this.Oo, t);
  5431. }, t.prototype.gt = function () {
  5432. return !0;
  5433. }, t.prototype.Of = function () {
  5434. return !0;
  5435. }, h.c = new t(), i.prototype.mu = function (t, i, s) {
  5436. if (t && i && (i = this.b.Rl(t, i, this.nf(s, !0), this.nf(s, !1)))) {
  5437. var e, h, n;
  5438. if (void 0 !== i.m && (i.m = this.m, i.za()), this.b.wc++, this.b.trigger(Object.getPrototypeOf(t.X).c.Jd, i), i.Ab)
  5439. for (e = 0, h = i.siblings.length; e < h; e++)
  5440. n = i.siblings[e], this.b.trigger(Object.getPrototypeOf(n.type.X).c.Jd, n);
  5441. if (this.b.wc--, e = this.b.pw(), s = !1, (ha(e.ja.Spawn_LastExec) || e.ja.Spawn_LastExec < this.b.kf) && (s = !0, e.ja.Spawn_LastExec = this.b.kf), t != this.type && ((t = t.N()).R = !1, s ? (A(t.d), t.d[0] = i) : t.d.push(i), i.Ab))
  5442. for (e = 0, h = i.siblings.length; e < h; e++)
  5443. (t = (n = i.siblings[e]).type.N()).R = !1, s ? (A(t.d), t.d[0] = n) : t.d.push(n);
  5444. }
  5445. }, i.prototype.qu = function () {
  5446. this.Ld = !1;
  5447. }, i.prototype.ou = function (t) {
  5448. this.Ld = !0, this.ud = this.Yc.Z, 1 === t && 0 !== this.C && (this.hh = 0, this.zh || this.Zl()), this.uf || (this.b.If(this), this.uf = !0);
  5449. }, i.prototype.Xt = function (t, i) {
  5450. this.Tf = t, this.Xo = i, this.uf || (this.b.If(this), this.uf = !0), this.zh || this.dp();
  5451. }, i.prototype.Yt = function (t) {
  5452. this.hh = t, this.uf || (this.b.If(this), this.uf = !0), this.zh || this.Zl();
  5453. }, i.prototype.yl = function (t) {
  5454. var i = this.Sa, s = i.width * t * (this.width < 0 ? -1 : 1);
  5455. t = i.height * t * (this.height < 0 ? -1 : 1), this.width === s && this.height === t || (this.width = s, this.height = t, this.za());
  5456. }, h.e = new i(), s.prototype.Ks = function (t, i) {
  5457. t.n(this.nf(i, !0));
  5458. }, s.prototype.Ls = function (t, i) {
  5459. t.n(this.nf(i, !1));
  5460. }, s.prototype.jo = function (t) {
  5461. t.n(this.Sa.width);
  5462. }, s.prototype.io = function (t) {
  5463. t.n(this.Sa.height);
  5464. }, h.g = new s();
  5465. }(), function () {
  5466. function b(t, i) {
  5467. return t.length ? t.pop() : new i();
  5468. }
  5469. function o(t, i, s) {
  5470. if (s) {
  5471. var e;
  5472. for (s = 0, e = i.length; s < e; s++)
  5473. t.length < u && t.push(i[s]);
  5474. A(i);
  5475. } else
  5476. for (e in i)
  5477. Object.prototype.hasOwnProperty.call(i, e) && (t.length < u && t.push(i[e]), delete i[e]);
  5478. }
  5479. function p(t, i, s) {
  5480. var e = t.zf;
  5481. s = s.replace(/\s\s*$/, ''), i >= e.length && e.push(b(f, Object)), (i = e[i]).text = s, i.width = t.Wm(s), t.Qg = pa(t.Qg, i.width);
  5482. }
  5483. function t() {
  5484. }
  5485. var i = yc.prototype;
  5486. i.D = function () {
  5487. }, i.W = function (t) {
  5488. this.X = t, this.b = t.b;
  5489. };
  5490. var s = i.W.prototype;
  5491. s.D = function () {
  5492. this.B || (this.q = new Image(), this.b.gl(this.q, this.wi), this.r = null);
  5493. }, s.ei = function () {
  5494. this.B || (this.r = null);
  5495. }, s.fi = function () {
  5496. var t, i;
  5497. if (!this.B && this.d.length)
  5498. for (this.r || (this.r = this.b.k.yc(this.q, !1, this.b.qa, this.Ue)), t = 0, i = this.d.length; t < i; t++)
  5499. this.d[t].r = this.r;
  5500. }, s.Ai = function () {
  5501. this.B || this.d.length || !this.r || (this.b.k.deleteTexture(this.r), this.r = null);
  5502. }, s.Ck = function (t) {
  5503. t.drawImage(this.q, 0, 0);
  5504. }, i.S = function (t) {
  5505. this.type = t, this.b = t.b;
  5506. }, (s = i.S.prototype).Ef = function () {
  5507. o(f, this.zf, !0), o(d, this.pj, !1), o(g, this.qj, !1), Ya(this.xe);
  5508. }, s.D = function () {
  5509. this.q = this.type.q, this.oj = this.A[0], this.we = this.A[1], this.characterSet = this.A[2], this.text = this.A[3], this.rd = this.A[4], this.visible = 0 === this.A[5], this.xh = this.A[6] / 2, this.el = this.A[7] / 2, this.Ty = 0 === this.A[9], this.Uf = this.A[10], this.lineHeight = this.A[11], this.Gf = this.Qg = 0, this.Bc ? (A(this.zf), Ya(this.pj), Ya(this.qj), Ya(this.xe)) : (this.zf = [], this.pj = {}, this.qj = {}, this.xe = {}), this.Hf = !0, this.Mm = this.width, this.b.k && (this.type.r || (this.type.r = this.b.k.yc(this.type.q, !1, this.b.qa, this.type.Ue)), this.r = this.type.r), this.nu();
  5510. }, s.Fb = function () {
  5511. var t, i = {
  5512. t: this.text,
  5513. csc: this.rd,
  5514. csp: this.Uf,
  5515. lh: this.lineHeight,
  5516. tw: this.Qg,
  5517. th: this.Gf,
  5518. lrt: this.mx,
  5519. ha: this.xh,
  5520. va: this.el,
  5521. cw: {}
  5522. };
  5523. for (t in this.xe)
  5524. i.cw[t] = this.xe[t];
  5525. return i;
  5526. }, s.Qb = function (t) {
  5527. for (var i in (this.text = t.t, this.rd = t.csc, this.Uf = t.csp, this.lineHeight = t.lh, this.Qg = t.tw, this.Gf = t.th, this.mx = t.lrt, t.hasOwnProperty('ha') && (this.xh = t.ha), t.hasOwnProperty('va') && (this.el = t.va), t.cw))
  5528. this.xe[i] = t.cw[i];
  5529. this.Hf = !0, this.Mm = this.width;
  5530. };
  5531. var u = 1000, f = [], d = [], g = [];
  5532. s.nu = function () {
  5533. for (var t = (s = this.q).width, i = s.height, s = this.oj, e = this.we, h = s / t, n = e / i, o = this.characterSet, r = (t = Math.floor(t / s), i = Math.floor(i / e), 0); r < o.length && !(t * i <= r); r++) {
  5534. var a = r % t, c = Math.floor(r / t), p = o.charAt(r);
  5535. if (this.b.k) {
  5536. var u = this.qj, f = a * h, l = c * n;
  5537. a = (a + 1) * h, c = (c + 1) * n, void 0 === u[p] && (u[p] = b(g, wa)), u[p].left = f, u[p].top = l, u[p].right = a, u[p].bottom = c;
  5538. } else
  5539. a *= s, c *= e, f = s, l = e, void 0 === (u = this.pj)[p] && (u[p] = b(d, Object)), u[p].x = a, u[p].y = c, u[p].cs = f, u[p].Ap = l;
  5540. }
  5541. };
  5542. var l = [];
  5543. i.tu = function (t) {
  5544. A(l);
  5545. for (var i, s = '', e = 0; e < t.length;)
  5546. if ('\n' === (i = t.charAt(e)))
  5547. s.length && (l.push(s), s = ''), l.push('\n'), ++e;
  5548. else if (' ' === i || '\t' === i || '-' === i) {
  5549. for (; s += t.charAt(e), ++e < t.length && (' ' === t.charAt(e) || '\t' === t.charAt(e)););
  5550. l.push(s), s = '';
  5551. } else
  5552. e < t.length && (s += i, e++);
  5553. s.length && l.push(s);
  5554. }, i.xu = function (t) {
  5555. var i = t.text, s = t.zf;
  5556. if (i && i.length) {
  5557. var e = t.width;
  5558. if (e <= 2)
  5559. o(f, s, !0);
  5560. else {
  5561. var h = t.rd, n = t.Uf;
  5562. if (i.length * (t.oj * h + n) - n <= e && -1 === i.indexOf('\n') && (n = t.Wm(i)) <= e)
  5563. return o(f, s, !0), s.push(b(f, Object)), s[0].text = i, s[0].width = n, t.Qg = n, void (t.Gf = t.we * h + t.lineHeight);
  5564. this.yu(t), t.Gf = s.length * (t.we * h + t.lineHeight);
  5565. }
  5566. } else
  5567. o(f, s, !0);
  5568. }, i.yu = function (t) {
  5569. var i = t.Ty, s = t.text, e = t.zf, h = t.width;
  5570. i && (this.tu(s), s = l);
  5571. var n, o, r = '', a = 0, c = !1;
  5572. for (o = 0; o < s.length; o++)
  5573. '\n' === s[o] ? (!0 === c ? c = !1 : (p(t, a, r), a++), r = '') : (c = !1, n = r, r += s[o], h < t.Wm(r.replace(/\s\s*$/, '')) && ('' === n ? (p(t, a, r), c = !(r = '')) : (p(t, a, n), r = s[o]), a++, i || ' ' !== r || (r = '')));
  5574. for (r.replace(/\s\s*$/, '').length && (p(t, a, r), a++), o = a; o < e.length; o++)
  5575. f.length < u && f.push(e[o]);
  5576. e.length = a;
  5577. }, s.Wm = function (t) {
  5578. for (var i = this.Uf, s = t.length, e = 0, h = 0; h < s; h++)
  5579. e += this.jm(t.charAt(h)) * this.rd + i;
  5580. return e - (0 < e ? i : 0);
  5581. }, s.jm = function (t) {
  5582. var i = this.xe;
  5583. return void 0 !== i[t] ? i[t] : this.oj;
  5584. }, s.jr = function () {
  5585. !this.Hf && this.width === this.Mm || (this.Gf = this.Qg = 0, this.type.X.xu(this), this.Hf = !1, this.Mm = this.width);
  5586. }, s.ed = function (t) {
  5587. var i = this.q;
  5588. if ('' !== this.text && null != i && (this.jr(), !(this.height < this.we * this.rd + this.lineHeight))) {
  5589. t.globalAlpha = this.opacity, i = this.x;
  5590. var s = this.y;
  5591. this.b.Ac && (i = Math.round(i), s = Math.round(s));
  5592. var e = this.j.ma, h = this.j.na, n = this.j.wa, o = this.j.ua;
  5593. t.save(), t.translate(i, s), t.rotate(this.m);
  5594. for (var r, a, c, p, u = this.m, f = this.xh, l = this.rd, b = this.we * l, d = this.lineHeight, g = this.Uf, y = this.zf, v = -(this.Nb * this.width), m = (m = -(this.Ob * this.height)) + this.el * pa(0, this.height - this.Gf), w = 0; w < y.length; w++) {
  5595. var k = y[w].text;
  5596. if (a = v + (r = f * pa(0, this.width - y[w].width)), m += d, 0 === u && s + m + b < h)
  5597. m += b;
  5598. else {
  5599. for (var x = 0; x < k.length; x++) {
  5600. c = k.charAt(x), r = this.jm(c);
  5601. var T = this.pj[c];
  5602. if (0 === u && i + a + r * l + g < e)
  5603. a += r * l + g;
  5604. else {
  5605. if (a + r * l > this.width + 0.00001)
  5606. break;
  5607. if (void 0 !== T && (c = a, p = m, 0 === u && 1 === l && (c = Math.round(c), p = Math.round(p)), t.drawImage(this.q, T.x, T.y, T.cs, T.Ap, c, p, T.cs * l, T.Ap * l)), a += r * l + g, 0 === u && n < i + a)
  5608. break;
  5609. }
  5610. }
  5611. if (m += b, 0 === u && (m + b + d > this.height || o < s + m))
  5612. break;
  5613. }
  5614. }
  5615. t.restore();
  5616. }
  5617. };
  5618. var R = new xa();
  5619. s.Kb = function (t) {
  5620. if (t.Rb(this.r), t.Se(this.opacity), this.text && (this.jr(), !(this.height < this.we * this.rd + this.lineHeight))) {
  5621. this.Aa();
  5622. var i = this.Xb, s = 0, e = 0;
  5623. this.b.Ac && (s = Math.round(this.x) - this.x, e = Math.round(this.y) - this.y);
  5624. var h, n, o, r, a, c, p = this.j.ma, u = this.j.na, f = this.j.wa, l = this.j.ua, b = this.m, d = this.xh, g = this.el, y = this.rd, v = this.we * y, m = this.lineHeight, w = this.Uf, k = this.zf, x = this.Gf;
  5625. for (0 !== b && (n = Math.cos(b), o = Math.sin(b)), s = i.Fa + s, i = i.Ga + e, g *= pa(0, this.height - x), x = 0; x < k.length; x++)
  5626. if (e = k[x].text, r = h = d * pa(0, this.width - k[x].width), g += m, 0 === b && i + g + v < u)
  5627. g += v;
  5628. else {
  5629. for (var T = 0; T < e.length; T++) {
  5630. var E = e.charAt(T);
  5631. if (h = this.jm(E), E = this.qj[E], 0 === b && s + r + h * y + w < p)
  5632. r += h * y + w;
  5633. else {
  5634. if (r + h * y > this.width + 0.00001)
  5635. break;
  5636. if (void 0 !== E) {
  5637. var A = this.oj * y, j = this.we * y;
  5638. a = r, c = g, 0 === b && 1 === y && (a = Math.round(a), c = Math.round(c)), R.Fa = a, R.Ga = c, R.nb = a + A, R.ob = c, R.$a = a, R.ab = c + j, R.bb = a + A, R.cb = c + j, 0 !== b && (c = n, A = o, j = void 0, j = (a = R).Fa * c - a.Ga * A, a.Ga = a.Ga * c + a.Fa * A, a.Fa = j, j = a.nb * c - a.ob * A, a.ob = a.ob * c + a.nb * A, a.nb = j, j = a.$a * c - a.ab * A, a.ab = a.ab * c + a.$a * A, a.$a = j, j = a.bb * c - a.cb * A, a.cb = a.cb * c + a.bb * A, a.bb = j), R.offset(s, i), t.Sc(R.Fa, R.Ga, R.nb, R.ob, R.bb, R.cb, R.$a, R.ab, E);
  5639. }
  5640. if (r += h * y + w, 0 === b && f < s + r)
  5641. break;
  5642. }
  5643. }
  5644. if (g += v, 0 === b && (g + v + m > this.height || l < i + g))
  5645. break;
  5646. }
  5647. }
  5648. }, i.c = new function () {
  5649. }(), t.prototype.iu = function (t) {
  5650. ja(t) && t < 1000000000 && (t = Math.round(10000000000 * t) / 10000000000), t = t.toString(), this.text !== t && (this.text = t, this.Hf = !0, this.b.fa = !0);
  5651. }, t.prototype.yl = function (t) {
  5652. t !== this.rd && (this.rd = t, this.Hf = !0, this.b.fa = !0);
  5653. }, s.Zt = function (t, i) {
  5654. var s = parseInt(i, 10);
  5655. this.xe[t] !== s && (this.xe[t] = s, this.Hf = !0, this.b.fa = !0);
  5656. }, t.prototype.$t = function (t, i) {
  5657. if ('' !== t)
  5658. for (var s = 0; s < t.length; s++)
  5659. this.Zt(t.charAt(s), i);
  5660. }, t.prototype.bu = function (t) {
  5661. this.xh = t / 2, this.Hf = !0, this.b.fa = !0;
  5662. }, i.e = new t(), i.g = new function () {
  5663. }();
  5664. }(), function () {
  5665. function t() {
  5666. }
  5667. var i = zc.prototype;
  5668. i.W = function (t) {
  5669. this.X = t, this.b = t.b;
  5670. };
  5671. var s = i.W.prototype;
  5672. s.D = function () {
  5673. this.B || (this.q = new Image(), this.q.Ql = this.Yk, this.b.gl(this.q, this.wi), this.r = this.pattern = null);
  5674. }, s.ei = function () {
  5675. this.B || (this.r = null);
  5676. }, s.fi = function () {
  5677. var t, i;
  5678. if (!this.B && this.d.length)
  5679. for (this.r || (this.r = this.b.k.yc(this.q, !0, this.b.qa, this.Ue)), t = 0, i = this.d.length; t < i; t++)
  5680. this.d[t].r = this.r;
  5681. }, s.Pm = function () {
  5682. this.B || this.r || !this.b.k || (this.r = this.b.k.yc(this.q, !0, this.b.qa, this.Ue));
  5683. }, s.Ai = function () {
  5684. this.B || this.d.length || !this.r || (this.b.k.deleteTexture(this.r), this.r = null);
  5685. }, s.Ck = function (t) {
  5686. t.drawImage(this.q, 0, 0);
  5687. }, i.S = function (t) {
  5688. this.type = t, this.b = t.b;
  5689. }, (s = i.S.prototype).D = function () {
  5690. this.visible = 0 === this.A[0], this.de = new wa(0, 0, 0, 0), this.Ep = !1, this.q = this.type.q, this.b.k ? (this.type.Pm(), this.r = this.type.r) : (this.type.pattern || (this.type.pattern = this.b.Ba.createPattern(this.type.q, 'repeat')), this.pattern = this.type.pattern);
  5691. }, s.Kd = function () {
  5692. this.Ep = !1, this.q = this.type.q;
  5693. }, s.Ef = function () {
  5694. this.b.k && this.Ep && this.r && (this.b.k.deleteTexture(this.r), this.r = null);
  5695. }, s.ed = function (t) {
  5696. t.globalAlpha = this.opacity, t.save(), t.fillStyle = this.pattern;
  5697. var i = this.x, s = this.y;
  5698. this.b.Ac && (i = Math.round(i), s = Math.round(s));
  5699. var e = -(this.Nb * this.width), h = -(this.Ob * this.height), n = e % this.q.width, o = h % this.q.height;
  5700. n < 0 && (n += this.q.width), o < 0 && (o += this.q.height), t.translate(i, s), t.rotate(this.m), t.translate(n, o), t.fillRect(e - n, h - o, this.width, this.height), t.restore();
  5701. }, s.Ce = function (t) {
  5702. this.Kb(t);
  5703. }, s.Kb = function (t) {
  5704. t.Rb(this.r), t.Se(this.opacity);
  5705. var i = this.de;
  5706. i.right = this.width / this.q.width, i.bottom = this.height / this.q.height;
  5707. var s = this.Xb;
  5708. if (this.b.Ac) {
  5709. var e = Math.round(this.x) - this.x, h = Math.round(this.y) - this.y;
  5710. t.Sc(s.Fa + e, s.Ga + h, s.nb + e, s.ob + h, s.bb + e, s.cb + h, s.$a + e, s.ab + h, i);
  5711. } else
  5712. t.Sc(s.Fa, s.Ga, s.nb, s.ob, s.bb, s.cb, s.$a, s.ab, i);
  5713. }, i.c = new function () {
  5714. }(), i.e = new function () {
  5715. }(), t.prototype.jo = function (t) {
  5716. t.n(this.q.width);
  5717. }, t.prototype.io = function (t) {
  5718. t.n(this.q.height);
  5719. }, i.g = new t();
  5720. }(), function () {
  5721. function r(t) {
  5722. o = t.x, p = t.y, u = t.z;
  5723. }
  5724. function a(t, i, s, e) {
  5725. var h;
  5726. return (h = f.length ? f.pop() : new n()).init(t, i, s, e), h;
  5727. }
  5728. function n() {
  5729. this.ri = this.id = this.y = this.x = this.Uk = this.Tk = this.Lm = this.time = this.Hn = 0, this.yi = this.al = !1;
  5730. }
  5731. function i(t) {
  5732. return t.sourceCapabilities && t.sourceCapabilities.firesTouchEvents || t.originalEvent && t.originalEvent.sourceCapabilities && t.originalEvent.sourceCapabilities.firesTouchEvents;
  5733. }
  5734. function t() {
  5735. }
  5736. function s() {
  5737. }
  5738. var e = Z.prototype;
  5739. e.W = function (t) {
  5740. this.X = t, this.b = t.b;
  5741. }, e.W.prototype.D = function () {
  5742. }, e.S = function (t) {
  5743. this.type = t, this.b = t.b, this.touches = [], this.Xm = !1;
  5744. };
  5745. var h = e.S.prototype, c = {
  5746. left: 0,
  5747. top: 0
  5748. };
  5749. h.lf = function (t) {
  5750. var i, s;
  5751. for (i = 0, s = this.touches.length; i < s; i++)
  5752. if (this.touches[i].id === t)
  5753. return i;
  5754. return -1;
  5755. };
  5756. var o = 0, p = 0, u = 0, f = [];
  5757. n.prototype.init = function (t, i, s, e) {
  5758. var h = Za();
  5759. this.Hn = this.Lm = this.time = h, this.Tk = t, this.Uk = i, this.x = t, this.y = i, this.pressure = this.height = this.width = 0, this.id = s, this.ri = e, this.yi = this.al = !1;
  5760. }, n.prototype.update = function (t, i, s, e, h, n) {
  5761. this.Lm = this.time, this.time = t, this.x = i, this.y = s, this.width = e, this.height = h, this.pressure = n, !this.yi && 15 <= Va(this.Tk, this.Uk, this.x, this.y) && (this.yi = !0);
  5762. }, n.prototype.wx = function (t, i) {
  5763. !this.al && 500 <= Za() - this.Hn && !this.yi && Va(this.Tk, this.Uk, this.x, this.y) < 15 && (this.al = !0, t.Id = this.ri, t.Kf = this.id, t.bg = i, t.b.trigger(Z.prototype.c.ot, t), t.Qd = this.x, t.Rd = this.y, t.b.trigger(Z.prototype.c.pt, t), t.bg = 0);
  5764. };
  5765. var l = -1000, b = -1000, d = -10000;
  5766. n.prototype.Bq = function (t, i) {
  5767. if (!this.al) {
  5768. var s = Za();
  5769. s - this.Hn <= 333 && !this.yi && Va(this.Tk, this.Uk, this.x, this.y) < 15 && (t.Id = this.ri, t.Kf = this.id, t.bg = i, d = s - d <= 666 && Va(l, b, this.x, this.y) < 25 ? (t.b.trigger(Z.prototype.c.kt, t), t.Qd = this.x, t.Rd = this.y, t.b.trigger(Z.prototype.c.lt, t), b = l = -1000, -10000) : (t.b.trigger(Z.prototype.c.Dt, t), t.Qd = this.x, t.Rd = this.y, t.b.trigger(Z.prototype.c.Et, t), l = this.x, b = this.y, s), t.bg = 0);
  5770. }
  5771. }, h.D = function () {
  5772. this.jx = !(void 0 === window.c2isWindows8 || !window.c2isWindows8), this.bg = this.Kf = this.Id = this.Rd = this.Qd = this.Ko = this.Jo = this.Io = this.Cu = this.Bu = this.Au = this.vk = this.uk = this.tk = 0, this.Qy = 0 !== this.A[0];
  5773. var t = 0 < this.b.Yb ? document : this.b.canvas, i = document;
  5774. this.b.pb ? i = t = window.Canvas : this.b.Mc && (i = t = window);
  5775. var s = this;
  5776. if ('undefined' != typeof PointerEvent ? (t.addEventListener('pointerdown', function (t) {
  5777. s.Qq(t);
  5778. }, !1), t.addEventListener('pointermove', function (t) {
  5779. s.Pq(t);
  5780. }, !1), i.addEventListener('pointerup', function (t) {
  5781. s.sk(t, !1);
  5782. }, !1), i.addEventListener('pointercancel', function (t) {
  5783. s.sk(t, !0);
  5784. }, !1), this.b.canvas && (this.b.canvas.addEventListener('MSGestureHold', function (t) {
  5785. t.preventDefault();
  5786. }, !1), document.addEventListener('MSGestureHold', function (t) {
  5787. t.preventDefault();
  5788. }, !1), this.b.canvas.addEventListener('gesturehold', function (t) {
  5789. t.preventDefault();
  5790. }, !1), document.addEventListener('gesturehold', function (t) {
  5791. t.preventDefault();
  5792. }, !1))) : window.navigator.msPointerEnabled ? (t.addEventListener('MSPointerDown', function (t) {
  5793. s.Qq(t);
  5794. }, !1), t.addEventListener('MSPointerMove', function (t) {
  5795. s.Pq(t);
  5796. }, !1), i.addEventListener('MSPointerUp', function (t) {
  5797. s.sk(t, !1);
  5798. }, !1), i.addEventListener('MSPointerCancel', function (t) {
  5799. s.sk(t, !0);
  5800. }, !1), this.b.canvas && (this.b.canvas.addEventListener('MSGestureHold', function (t) {
  5801. t.preventDefault();
  5802. }, !1), document.addEventListener('MSGestureHold', function (t) {
  5803. t.preventDefault();
  5804. }, !1))) : (t.addEventListener('touchstart', function (t) {
  5805. s.Sq(t);
  5806. }, !1), t.addEventListener('touchmove', function (t) {
  5807. s.Rq(t);
  5808. }, !1), i.addEventListener('touchend', function (t) {
  5809. s.cn(t, !1);
  5810. }, !1), i.addEventListener('touchcancel', function (t) {
  5811. s.cn(t, !0);
  5812. }, !1)), this.jx) {
  5813. var e = function (t) {
  5814. t = t.reading, s.Io = t.accelerationX, s.Jo = t.accelerationY, s.Ko = t.accelerationZ;
  5815. }, h = function (t) {
  5816. t = t.reading, s.tk = t.yawDegrees, s.uk = t.pitchDegrees, s.vk = t.rollDegrees;
  5817. }, n = Windows.Devices.Sensors.Accelerometer.getDefault();
  5818. n && (n.reportInterval = Math.max(n.minimumReportInterval, 16), n.addEventListener('readingchanged', e));
  5819. var o = Windows.Devices.Sensors.Inclinometer.getDefault();
  5820. o && (o.reportInterval = Math.max(o.minimumReportInterval, 16), o.addEventListener('readingchanged', h)), document.addEventListener('visibilitychange', function () {
  5821. document.hidden || document.msHidden ? (n && n.removeEventListener('readingchanged', e), o && o.removeEventListener('readingchanged', h)) : (n && n.addEventListener('readingchanged', e), o && o.addEventListener('readingchanged', h));
  5822. }, !1);
  5823. } else
  5824. window.addEventListener('deviceorientation', function (t) {
  5825. s.tk = t.alpha || 0, s.uk = t.beta || 0, s.vk = t.gamma || 0;
  5826. }, !1), window.addEventListener('devicemotion', function (t) {
  5827. t.accelerationIncludingGravity && (s.Au = t.accelerationIncludingGravity.x || 0, s.Bu = t.accelerationIncludingGravity.y || 0, s.Cu = t.accelerationIncludingGravity.z || 0), t.acceleration && (s.Io = t.acceleration.x || 0, s.Jo = t.acceleration.y || 0, s.Ko = t.acceleration.z || 0);
  5828. }, !1);
  5829. this.Qy && !this.b.pa && (jQuery(document).mousemove(function (t) {
  5830. s.Hx(t);
  5831. }), jQuery(document).mousedown(function (t) {
  5832. s.Gx(t);
  5833. }), jQuery(document).mouseup(function (t) {
  5834. s.Ix(t);
  5835. })), !this.b.pg && this.b.vc && navigator.accelerometer && navigator.accelerometer.watchAcceleration && navigator.accelerometer.watchAcceleration(r, null, { frequency: 40 }), this.b.Fy(this);
  5836. }, h.Pq = function (t) {
  5837. if (t.pointerType !== t.MSPOINTER_TYPE_MOUSE && 'mouse' !== t.pointerType) {
  5838. t.preventDefault && t.preventDefault();
  5839. var i = this.lf(t.pointerId), s = Za();
  5840. if (0 <= i) {
  5841. var e = this.b.pa ? c : jQuery(this.b.canvas).offset();
  5842. s - (i = this.touches[i]).time < 2 || i.update(s, t.pageX - e.left, t.pageY - e.top, t.width || 0, t.height || 0, t.pressure || 0);
  5843. }
  5844. }
  5845. }, h.Qq = function (t) {
  5846. if (t.pointerType !== t.MSPOINTER_TYPE_MOUSE && 'mouse' !== t.pointerType) {
  5847. t.preventDefault && pb(t) && t.preventDefault();
  5848. var i = this.b.pa ? c : jQuery(this.b.canvas).offset(), s = t.pageX - i.left;
  5849. i = t.pageY - i.top, Za(), this.Id = this.touches.length, this.Kf = t.pointerId, this.touches.push(a(s, i, t.pointerId, this.Id)), this.b.xc = !0, this.b.trigger(Z.prototype.c.xo, this), this.b.trigger(Z.prototype.c.tl, this), this.Qd = s, this.Rd = i, this.b.trigger(Z.prototype.c.sl, this), this.b.xc = !1;
  5850. }
  5851. }, h.sk = function (t, i) {
  5852. if (t.pointerType !== t.MSPOINTER_TYPE_MOUSE && 'mouse' !== t.pointerType) {
  5853. t.preventDefault && pb(t) && t.preventDefault();
  5854. var s = this.lf(t.pointerId);
  5855. this.Id = 0 <= s ? this.touches[s].ri : -1, this.Kf = 0 <= s ? this.touches[s].id : -1, this.b.xc = !0, this.b.trigger(Z.prototype.c.wo, this), this.b.trigger(Z.prototype.c.rl, this), 0 <= s && (i || this.touches[s].Bq(this, s), f.length < 100 && f.push(this.touches[s]), this.touches.splice(s, 1)), this.b.xc = !1;
  5856. }
  5857. }, h.Rq = function (t) {
  5858. t.preventDefault && t.preventDefault();
  5859. var i, s, e, h, n = Za();
  5860. for (i = 0, s = t.changedTouches.length; i < s; i++)
  5861. if (e = t.changedTouches[i], 0 <= (h = this.lf(e.identifier))) {
  5862. var o = this.b.pa ? c : jQuery(this.b.canvas).offset();
  5863. n - (h = this.touches[h]).time < 2 || h.update(n, e.pageX - o.left, e.pageY - o.top, 2 * (e.Fz || e.Nz || e.yz || e.Bz || 0), 2 * (e.Gz || e.Oz || e.zz || e.Cz || 0), e.qz || e.Mz || e.xz || e.Az || 0);
  5864. }
  5865. }, h.Sq = function (t) {
  5866. t.preventDefault && pb(t) && t.preventDefault();
  5867. var i, s, e, h, n = this.b.pa ? c : jQuery(this.b.canvas).offset();
  5868. for (Za(), this.b.xc = !0, i = 0, s = t.changedTouches.length; i < s; i++)
  5869. if (e = t.changedTouches[i], -1 === (h = this.lf(e.identifier))) {
  5870. h = e.pageX - n.left;
  5871. var o = e.pageY - n.top;
  5872. this.Id = this.touches.length, this.Kf = e.identifier, this.touches.push(a(h, o, e.identifier, this.Id)), this.b.trigger(Z.prototype.c.xo, this), this.b.trigger(Z.prototype.c.tl, this), this.Qd = h, this.Rd = o, this.b.trigger(Z.prototype.c.sl, this);
  5873. }
  5874. this.b.xc = !1;
  5875. }, h.cn = function (t, i) {
  5876. var s, e, h;
  5877. for (t.preventDefault && pb(t) && t.preventDefault(), this.b.xc = !0, s = 0, e = t.changedTouches.length; s < e; s++)
  5878. h = t.changedTouches[s], 0 <= (h = this.lf(h.identifier)) && (this.Id = this.touches[h].ri, this.Kf = this.touches[h].id, this.b.trigger(Z.prototype.c.wo, this), this.b.trigger(Z.prototype.c.rl, this), i || this.touches[h].Bq(this, h), f.length < 100 && f.push(this.touches[h]), this.touches.splice(h, 1));
  5879. this.b.xc = !1;
  5880. }, h.El = function () {
  5881. return this.b.vc && 0 === this.tk && 0 !== u ? 90 * u : this.tk;
  5882. }, h.Uu = function () {
  5883. return this.b.vc && 0 === this.uk && 0 !== p ? 90 * p : this.uk;
  5884. }, h.wv = function () {
  5885. return this.b.vc && 0 === this.vk && 0 !== o ? 90 * o : this.vk;
  5886. }, h.Gx = function (t) {
  5887. i(t) || (this.Sq({ changedTouches: [{pageX:t.pageX,pageY:t.pageY,identifier:0}] }), this.Xm = !0);
  5888. }, h.Hx = function (t) {
  5889. this.Xm && !i(t) && this.Rq({ changedTouches: [{pageX:t.pageX,pageY:t.pageY,identifier:0}] });
  5890. }, h.Ix = function (t) {
  5891. t.preventDefault && this.b.Bp && !this.b.sf && t.preventDefault(), this.b.Bp = !0, i(t) || (this.cn({ changedTouches: [{pageX:t.pageX,pageY:t.pageY,identifier:0}] }), this.Xm = !1);
  5892. }, h.Jn = function () {
  5893. var t, i, s, e = Za();
  5894. for (t = 0, i = this.touches.length; t < i; ++t)
  5895. (s = this.touches[t]).time <= e - 50 && (s.Lm = e), s.wx(this, t);
  5896. }, t.prototype.tl = function () {
  5897. return !0;
  5898. }, t.prototype.rl = function () {
  5899. return !0;
  5900. }, t.prototype.sl = function (t) {
  5901. return !!t && this.b.Wk(t, this.Qd, this.Rd);
  5902. }, t.prototype.xo = function (t) {
  5903. return (t = Math.floor(t)) === this.Id;
  5904. }, t.prototype.wo = function (t) {
  5905. return (t = Math.floor(t)) === this.Id;
  5906. }, t.prototype.ot = function () {
  5907. return !0;
  5908. }, t.prototype.Dt = function () {
  5909. return !0;
  5910. }, t.prototype.kt = function () {
  5911. return !0;
  5912. }, t.prototype.pt = function (t) {
  5913. return !!t && this.b.Wk(t, this.Qd, this.Rd);
  5914. }, t.prototype.Et = function (t) {
  5915. return !!t && this.b.Wk(t, this.Qd, this.Rd);
  5916. }, t.prototype.lt = function (t) {
  5917. return !!t && this.b.Wk(t, this.Qd, this.Rd);
  5918. }, e.c = new t(), e.e = new function () {
  5919. }(), s.prototype.aj = function (t, i) {
  5920. var s, e, h, n, o, r = this.bg;
  5921. r < 0 || r >= this.touches.length ? t.n(0) : ha(i) ? (e = (s = this.b.ag(0)).scale, h = s.qd, n = s.Pc, o = s.m, s.scale = 1, s.qd = 1, s.Pc = 1, s.m = 0, t.n(s.ub(this.touches[r].x, this.touches[r].y, !0)), s.scale = e, s.qd = h, s.Pc = n, s.m = o) : (s = ja(i) ? this.b.ag(i) : this.b.Sj(i)) ? t.n(s.ub(this.touches[r].x, this.touches[r].y, !0)) : t.n(0);
  5922. }, s.prototype.Al = function (t, i) {
  5923. var s, e, h, n, o, r = this.bg;
  5924. r < 0 || r >= this.touches.length ? t.n(0) : ha(i) ? (e = (s = this.b.ag(0)).scale, h = s.qd, n = s.Qc, o = s.m, s.scale = 1, s.qd = 1, s.Qc = 1, s.m = 0, t.n(s.ub(this.touches[r].x, this.touches[r].y, !1)), s.scale = e, s.qd = h, s.Qc = n, s.m = o) : (s = ja(i) ? this.b.ag(i) : this.b.Sj(i)) ? t.n(s.ub(this.touches[r].x, this.touches[r].y, !1)) : t.n(0);
  5925. }, s.prototype.es = function (t, i) {
  5926. var s = this.lf(i);
  5927. s < 0 ? t.n(0) : t.n(this.touches[s].x);
  5928. }, s.prototype.gs = function (t, i) {
  5929. var s = this.lf(i);
  5930. s < 0 ? t.n(0) : t.n(this.touches[s].y);
  5931. }, s.prototype.uu = function (t) {
  5932. t.n(this.Kf);
  5933. }, e.g = new s();
  5934. }(), function () {
  5935. function t() {
  5936. }
  5937. function i() {
  5938. }
  5939. function s() {
  5940. }
  5941. var e = Ac.prototype;
  5942. e.W = function (t) {
  5943. this.X = t, this.b = t.b;
  5944. }, e.W.prototype.D = function () {
  5945. }, e.S = function (t) {
  5946. this.type = t, this.b = t.b;
  5947. };
  5948. var h = e.S.prototype, n = window.URL || window.webkitURL || window.mozURL || window.msURL;
  5949. h.D = function () {
  5950. if (this.b.pa)
  5951. fa('[Construct 2] File Chooser plugin not supported on this platform - the object will not be created');
  5952. else {
  5953. this.Lb = document.createElement('input'), this.Lb.type = 'file', this.Lb.setAttribute('accept', this.A[0]), 0 !== this.A[1] && this.Lb.setAttribute('multiple', ''), this.Lb.id = this.A[3], jQuery(this.Lb).appendTo(this.b.nj ? this.b.nj : 'body'), this.ff = !1, 0 === this.A[2] && (jQuery(this.Lb).hide(), this.visible = !1, this.ff = !0);
  5954. var t = this;
  5955. this.Lb.onchange = function () {
  5956. t.b.trigger(Ac.prototype.c.oo, t);
  5957. }, this.bq = this.cq = this.Vp = this.Zp = this.aq = this.Xp = 0, this.Zr(!0), this.b.If(this);
  5958. }
  5959. }, h.Ef = function () {
  5960. this.b.pa || (jQuery(this.Lb).remove(), this.Lb = null);
  5961. }, h.mb = function () {
  5962. this.Zr();
  5963. }, h.Zr = function (t) {
  5964. if (!this.b.pa) {
  5965. var i = this.j.ib(this.x, this.y, !0), s = this.j.ib(this.x, this.y, !1), e = this.j.ib(this.x + this.width, this.y + this.height, !0), h = this.j.ib(this.x + this.width, this.y + this.height, !1), n = this.b.width / this.b.devicePixelRatio, o = this.b.height / this.b.devicePixelRatio;
  5966. !this.visible || !this.j.visible || e <= 0 || h <= 0 || n <= i || o <= s ? (this.ff || jQuery(this.Lb).hide(), this.ff = !0) : (i < 1 && (i = 1), s < 1 && (s = 1), n <= e && (e = n - 1), o <= h && (h = o - 1), n = window.innerWidth, o = window.innerHeight, t || this.Xp !== i || this.aq !== s || this.Zp !== e || this.Vp !== h || this.cq !== n || this.bq !== o ? (this.Xp = i, this.aq = s, this.Zp = e, this.Vp = h, this.cq = n, this.bq = o, this.ff && (jQuery(this.Lb).show(), this.ff = !1), t = Math.round(i) + jQuery(this.b.canvas).offset().left, n = Math.round(s) + jQuery(this.b.canvas).offset().top, jQuery(this.Lb).css('position', 'absolute'), jQuery(this.Lb).offset({
  5967. left: t,
  5968. top: n
  5969. }), jQuery(this.Lb).width(Math.round(e - i)), jQuery(this.Lb).height(Math.round(h - s))) : this.ff && (jQuery(this.Lb).show(), this.ff = !1));
  5970. }
  5971. }, h.ed = function () {
  5972. }, h.Kb = function () {
  5973. }, t.prototype.oo = function () {
  5974. return !0;
  5975. }, e.c = new t(), i.prototype.ah = function (t) {
  5976. this.b.pa || (this.visible = 0 !== t);
  5977. }, e.e = new i(), s.prototype.Es = function (t, i) {
  5978. var s;
  5979. if (this.b.pa)
  5980. s = null;
  5981. else {
  5982. var e = i;
  5983. s = !(s = this.Lb.files) || (e = Math.floor(e)) < 0 || e >= s.length ? null : s[e];
  5984. }
  5985. s ? s.c2url ? t.la(s.c2url) : n && n.createObjectURL ? (s.c2url = n.createObjectURL(s), t.la(s.c2url)) : t.la('') : t.la('');
  5986. }, e.g = new s();
  5987. }(), function () {
  5988. function f(t) {
  5989. var i;
  5990. if (!g[t])
  5991. for (g[t] = Array(20), i = 0; i < 20; ++i)
  5992. g[t][i] = 0;
  5993. return g[t];
  5994. }
  5995. function l(t) {
  5996. var i;
  5997. if (!y[t])
  5998. for (y[t] = Array(20), i = 0; i < 20; ++i)
  5999. y[t][i] = 0;
  6000. return y[t];
  6001. }
  6002. function b(t, i) {
  6003. return i ? 4 <= t ? -1 : t + 16 : 16 <= t ? -1 : t;
  6004. }
  6005. function i(t) {
  6006. d[t.gamepad.index] = t.gamepad, h.trigger(Bc.prototype.c.mt, n);
  6007. }
  6008. function s(t) {
  6009. h.trigger(Bc.prototype.c.nt, n), d[t.gamepad.index] = null;
  6010. }
  6011. function t() {
  6012. }
  6013. var e = Bc.prototype;
  6014. e.W = function (t) {
  6015. this.X = t, this.b = t.b;
  6016. }, e.W.prototype.D = function () {
  6017. };
  6018. var h = null, n = null, d = Array(16), g = Array(16), y = Array(16), o = '', r = '', v = null, a = { windows: {} };
  6019. a.windows.firefox = {};
  6020. var c = [0,1,2,3,4,5,8,9,10,11], p = [0,1,[7,6],2,3,[14,15],[12,13]];
  6021. a.windows.firefox.xbox360 = function (t, i) {
  6022. return i ? p.length <= t ? -1 : ja(p[t]) ? p[t] + 16 : p[t] : c.length <= t ? -1 : c[t];
  6023. };
  6024. var u = [2,0,1,3,4,6,5,7,8,9], m = [0,1,2,3,[14,15],[12,13]];
  6025. a.windows.firefox.logitechdualaction = function (t, i) {
  6026. return i ? m.length <= t ? -1 : ja(m[t]) ? m[t] + 16 : m[t] : u.length <= t ? -1 : u[t];
  6027. }, e.S = function (t) {
  6028. this.type = t, h = this.b = t.b, n = this;
  6029. };
  6030. var w = e.S.prototype;
  6031. w.D = function () {
  6032. this.Vu = this.A[0], this.ck = 0;
  6033. var t = navigator.userAgent;
  6034. o = 'windows', /mac/i.test(t) && (o = 'mac'), v = a[o], r = 'chrome', /firefox/i.test(t) && (r = 'firefox'), v = v && v[r], window.addEventListener('webkitgamepadconnected', i, !1), window.addEventListener('webkitgamepaddisconnected', s, !1), window.addEventListener('MozGamepadConnected', i, !1), window.addEventListener('MozGamepadDisconnected', s, !1), window.addEventListener('gamepadconnected', i, !1), window.addEventListener('gamepaddisconnected', s, !1), this.b.If(this), this.bj = [];
  6035. }, w.mb = function () {
  6036. this.bj.length = 0;
  6037. var t = null, i = !1;
  6038. if (navigator.getGamepads ? t = navigator.getGamepads() : navigator.webkitGetGamepads ? t = navigator.webkitGetGamepads() : navigator.mozGetGamepads ? t = navigator.mozGetGamepads() : navigator.msGetGamepads ? t = navigator.msGetGamepads() : this.b.Sp && window.cr_getGamepads ? (t = window.cr_getGamepads(), i = !0) : t = navigator.gamepads || navigator.webkitGamepads || navigator.MozGamepads || d, t) {
  6039. var s, e, h, n, o, r, a;
  6040. for (s = 0, e = t.length; s < e; s++) {
  6041. var c = t[s];
  6042. if (c) {
  6043. var p = f(s), u = l(s);
  6044. for (h = f(n = s), n = l(n), o = void 0, o = 0; o < 20; ++o)
  6045. n[o] = h[o];
  6046. for (o = h = !i && v ? (h = '', -1 < (n = c.id.toLowerCase()).indexOf('xbox 360') ? h = 'xbox360' : -1 < n.indexOf('logitech dual action') && (h = 'logitechdualaction'), v[h] || b) : b, h = 0, n = c.buttons.length; h < n; h++)
  6047. 0 <= (r = o(h, !1, a = void 0 !== c.buttons[h].value ? c.buttons[h].value : c.buttons[h])) && r < 20 && (p[r] = 100 * a, 50 <= p[r] && u[r] < 50 && (this.ck = r));
  6048. for (h = 0, n = c.axes.length; h < n; h++)
  6049. r = o(h, !0, a = c.axes[h]), ja(r) ? 0 <= r && r < 20 && (p[r] = 100 * a) : (p[r[0]] = 0, a <= (p[r[1]] = 0) ? p[r[0]] = Math.abs(100 * a) : p[r[1]] = Math.abs(100 * a));
  6050. this.bj.push(c);
  6051. } else
  6052. g[c = s] = null, y[c] = null;
  6053. }
  6054. for (; s < 20; ++s)
  6055. g[t = s] = null, y[t] = null;
  6056. }
  6057. }, w.Fb = function () {
  6058. return { lastButton: this.ck };
  6059. }, w.Qb = function (t) {
  6060. this.ck = t.lastButton;
  6061. }, t.prototype.mt = function () {
  6062. return !0;
  6063. }, t.prototype.nt = function () {
  6064. return !0;
  6065. }, t.prototype.Os = function (t, i) {
  6066. if ((t = Math.floor(t)) < 0 || t >= this.bj.length)
  6067. return !1;
  6068. var s = f(t);
  6069. return !!s && ((s = 50 <= s[i]) && (this.ck = i), s);
  6070. }, t.prototype.rs = function (t, i, s, e) {
  6071. if (t = Math.floor(t), i = Math.floor(i), t < 0 || t >= this.bj.length)
  6072. return !1;
  6073. if (t = f(t)) {
  6074. var h = t[i + 16], n = 0 == i % 2 ? t[i + 16 + 1] : t[i + 16 - 1];
  6075. return Math.sqrt(h * h + n * n) <= this.Vu && (h = 0), ic(h, s, e);
  6076. }
  6077. }, e.c = new t(), e.e = new function () {
  6078. }(), e.g = new function () {
  6079. }();
  6080. }(), function () {
  6081. function t() {
  6082. }
  6083. function i() {
  6084. }
  6085. function s() {
  6086. }
  6087. var e = Cc.prototype;
  6088. e.W = function (t) {
  6089. this.behavior = t, this.b = t.b;
  6090. }, e.W.prototype.D = function () {
  6091. }, e.S = function (t, i) {
  6092. this.type = t, this.behavior = t.behavior, this.Na = i, this.b = t.b, this.ve = this.yb = this.xb = 0;
  6093. };
  6094. var h = e.S.prototype;
  6095. h.D = function () {
  6096. this.Og = this.A[0], this.qn = this.A[1], this.enabled = 0 !== this.A[2];
  6097. }, h.Fb = function () {
  6098. return {
  6099. dx: this.xb,
  6100. dy: this.yb,
  6101. cancelStep: this.ve,
  6102. enabled: this.enabled,
  6103. stepMode: this.Og,
  6104. pxPerStep: this.qn
  6105. };
  6106. }, h.Qb = function (t) {
  6107. this.xb = t.dx, this.yb = t.dy, this.ve = t.cancelStep, this.enabled = t.enabled, this.Og = t.stepMode, this.qn = t.pxPerStep;
  6108. }, h.zp = function () {
  6109. return Math.sqrt(this.xb * this.xb + this.yb * this.yb);
  6110. }, h.gb = function () {
  6111. return Math.atan2(this.yb, this.xb);
  6112. }, h.step = function (t, i, s) {
  6113. if (0 !== t || 0 !== i) {
  6114. var e, h, n = this.Na.x, o = this.Na.y, r = Math.round(Math.sqrt(t * t + i * i) / this.qn);
  6115. for (0 === r && (r = 1), h = 1; h <= r; h++) {
  6116. if (e = h / r, this.Na.x = n + t * e, this.Na.y = o + i * e, this.Na.za(), this.b.trigger(s, this.Na), 1 === this.ve) {
  6117. e = --h / r, this.Na.x = n + t * e, this.Na.y = o + i * e, this.Na.za();
  6118. break;
  6119. }
  6120. if (2 === this.ve)
  6121. break;
  6122. }
  6123. }
  6124. }, h.mb = function () {
  6125. var t = this.b.Rj(this.Na), i = this.xb * t;
  6126. t = this.yb * t, 0 === this.xb && 0 === this.yb || !this.enabled || ((this.ve = 0) === this.Og ? (this.Na.x += i, this.Na.y += t) : 1 === this.Og ? this.step(i, t, Cc.prototype.c.it) : 2 === this.Og ? (this.step(i, 0, Cc.prototype.c.ol), this.ve = 0, this.step(0, t, Cc.prototype.c.pl)) : 3 === this.Og && (this.step(0, t, Cc.prototype.c.pl), this.ve = 0, this.step(i, 0, Cc.prototype.c.ol)), this.Na.za());
  6127. }, t.prototype.Ts = function () {
  6128. return 0 != this.xb || 0 != this.yb;
  6129. }, t.prototype.vs = function (t, i, s) {
  6130. var e;
  6131. switch (t) {
  6132. case 0:
  6133. e = this.zp();
  6134. break;
  6135. case 1:
  6136. e = this.xb;
  6137. break;
  6138. case 2:
  6139. e = this.yb;
  6140. }
  6141. return ic(e, i, s);
  6142. }, t.prototype.it = function () {
  6143. return !0;
  6144. }, t.prototype.ol = function () {
  6145. return !0;
  6146. }, t.prototype.pl = function () {
  6147. return !0;
  6148. }, e.c = new t(), i.prototype.Fo = function () {
  6149. this.yb = this.xb = 0;
  6150. }, i.prototype.hu = function (t, i) {
  6151. var s;
  6152. switch (t) {
  6153. case 0:
  6154. s = this.gb(), this.xb = Math.cos(s) * i, this.yb = Math.sin(s) * i;
  6155. break;
  6156. case 1:
  6157. this.xb = i;
  6158. break;
  6159. case 2:
  6160. this.yb = i;
  6161. }
  6162. }, i.prototype.hs = function (t, i) {
  6163. var s = t * this.b.Rj(this.Na), e = G(i);
  6164. this.xb += Math.cos(e) * s, this.yb += Math.sin(e) * s;
  6165. }, i.prototype.Wt = function (t) {
  6166. t = G(t);
  6167. var i = this.zp();
  6168. this.xb = Math.cos(t) * i, this.yb = Math.sin(t) * i;
  6169. }, i.prototype.ru = function (t) {
  6170. this.ve = t + 1;
  6171. }, i.prototype.xl = function (t) {
  6172. this.enabled = 1 === t;
  6173. }, e.e = new i(), s.prototype.xb = function (t) {
  6174. t.n(this.xb);
  6175. }, s.prototype.yb = function (t) {
  6176. t.n(this.yb);
  6177. }, e.g = new s();
  6178. }(), function () {
  6179. function t() {
  6180. }
  6181. var i = Ic.prototype;
  6182. i.W = function (t) {
  6183. this.behavior = t, this.b = t.b;
  6184. }, i.W.prototype.D = function () {
  6185. }, i.S = function (t, i) {
  6186. this.type = t, this.behavior = t.behavior, this.Na = i, this.b = t.b;
  6187. };
  6188. var s = i.S.prototype;
  6189. s.D = function () {
  6190. this.Na.ja.jumpthruEnabled = 0 !== this.A[0];
  6191. }, s.mb = function () {
  6192. }, i.c = new function () {
  6193. }(), t.prototype.xl = function (t) {
  6194. this.Na.ja.jumpthruEnabled = !!t;
  6195. }, i.e = new t();
  6196. }(), function () {
  6197. function t() {
  6198. }
  6199. var i = Jc.prototype;
  6200. i.W = function (t) {
  6201. this.behavior = t, this.b = t.b;
  6202. }, i.W.prototype.D = function () {
  6203. }, i.S = function (t, i) {
  6204. this.type = t, this.behavior = t.behavior, this.Na = i, this.b = t.b;
  6205. };
  6206. var s = i.S.prototype;
  6207. s.D = function () {
  6208. this.Na.ja.solidEnabled = 0 !== this.A[0];
  6209. }, s.mb = function () {
  6210. }, i.c = new function () {
  6211. }(), t.prototype.xl = function (t) {
  6212. this.Na.ja.solidEnabled = !!t;
  6213. }, i.e = new t();
  6214. }();