| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553 |
- window.__require = function t(e, n, o) {
- function i(r, c) {
- if (!n[r]) {
- if (!e[r]) {
- var s = r.split("/");
- s = s[s.length - 1];
- if (!e[s]) {
- var l = "function" == typeof __require && __require;
- if (!c && l) return l(s, !0);
- if (a) return a(s, !0);
- throw new Error("Cannot find module '" + r + "'");
- }
- r = s;
- }
- var u = n[r] = {
- exports: {}
- };
- e[r][0].call(u.exports, function(t) {
- return i(e[r][1][t] || t);
- }, u, u.exports, t, e, n, o);
- }
- return n[r].exports;
- }
- for (var a = "function" == typeof __require && __require, r = 0; r < o.length; r++) i(o[r]);
- return i;
- }({
- ATAndroidBannerJS: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "373b2sCOFlCLZeomt863XyC", "ATAndroidBannerJS");
- var n = "com/anythink/cocosjs/ATBannerJSBridge", o = o || {
- loadBanner: function(t, e) {
- cc.log("Android-loadBanner:" + e);
- jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
- },
- setAdListener: function(t) {
- cc.log("Android-setAdListener");
- jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
- },
- hasAdReady: function(t) {
- cc.log("Android-hasAdReady");
- return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
- },
- checkAdStatus: function(t) {
- cc.log("Android-checkAdStatus:" + t);
- return jsb.reflection.callStaticMethod(n, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", t);
- },
- showAdInPosition: function(t, e) {
- cc.log("Android-showAdInPosistion");
- jsb.reflection.callStaticMethod(n, "showWithPosition", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, "");
- },
- showAdInPositionAndScenario: function(t, e, o) {
- cc.log("Android-showAdInPositionAndScenario");
- jsb.reflection.callStaticMethod(n, "showWithPosition", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, o);
- },
- showAdInRectangle: function(t, e) {
- cc.log("Android-showAdInRectangle");
- jsb.reflection.callStaticMethod(n, "showWithRect", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, "");
- },
- showAdInRectangleAndScenario: function(t, e, o) {
- cc.log("Android-showAdInRectangleAndScenario");
- jsb.reflection.callStaticMethod(n, "showWithRect", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, o);
- },
- removeAd: function(t) {
- cc.log("Android-removeAd");
- jsb.reflection.callStaticMethod(n, "remove", "(Ljava/lang/String;)V", t);
- },
- reShowAd: function(t) {
- cc.log("Android-reShowAd");
- jsb.reflection.callStaticMethod(n, "reshow", "(Ljava/lang/String;)V", t);
- },
- hideAd: function(t) {
- cc.log("Android-hideAd");
- jsb.reflection.callStaticMethod(n, "hide", "(Ljava/lang/String;)V", t);
- }
- };
- e.exports = o;
- cc._RF.pop();
- }, {} ],
- ATAndroidInterstitialJS: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "f073foYdLdPM6Yr1ntb2lMg", "ATAndroidInterstitialJS");
- var n = "com/anythink/cocosjs/ATInterstitialJSBridge", o = o || {
- loadInterstitial: function(t, e) {
- cc.log("Android-loadInterstitial");
- jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
- },
- setAdListener: function(t) {
- cc.log("Android-setAdListener");
- jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
- },
- hasAdReady: function(t) {
- cc.log("Android-hasAdReady");
- return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
- },
- checkAdStatus: function(t) {
- cc.log("Android-checkAdStatus:" + t);
- return jsb.reflection.callStaticMethod(n, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", t);
- },
- showAd: function(t) {
- cc.log("Android-showAd:" + t);
- jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;)V", t);
- },
- showAdInScenario: function(t, e) {
- cc.log("Android-showAdInScenario:" + t + "---" + e);
- jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
- }
- };
- e.exports = o;
- cc._RF.pop();
- }, {} ],
- ATAndroidJS: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "85a5eThP61PK65Y4yGwBvE8", "ATAndroidJS");
- var n = "com/anythink/cocosjs/ATJSBridge", o = o || {
- printJsLog: function(t) {
- null != t && null != t && jsb.reflection.callStaticMethod("android/util/Log", "i", "(Ljava/lang/String;Ljava/lang/String;)I", "AT-Cocos-JS", t);
- },
- initSDK: function(t, e) {
- jsb.reflection.callStaticMethod(n, "initSDK", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
- },
- initCustomMap: function(t) {
- jsb.reflection.callStaticMethod(n, "initCustomMap", "(Ljava/lang/String;)V", t);
- },
- setPlacementCustomMap: function(t, e) {
- jsb.reflection.callStaticMethod(n, "setPlacementCustomMap", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
- },
- setGDPRLevel: function(t) {
- jsb.reflection.callStaticMethod(n, "setGDPRLevel", "(I)V", t);
- },
- getGDPRLevel: function() {
- return jsb.reflection.callStaticMethod(n, "getGDPRLevel", "()I");
- },
- getUserLocation: function(t) {
- jsb.reflection.callStaticMethod(n, "getUserLocation", "(Ljava/lang/String;)V", t);
- },
- showGDPRAuth: function() {
- jsb.reflection.callStaticMethod(n, "showGDPRAuth", "()V");
- },
- setLogDebug: function(t) {
- jsb.reflection.callStaticMethod(n, "setLogDebug", "(Z)V", t);
- },
- deniedUploadDeviceInfo: function(t) {
- jsb.reflection.callStaticMethod(n, "deniedUploadDeviceInfo", "(Ljava/lang/String;)V", t);
- }
- };
- e.exports = o;
- cc._RF.pop();
- }, {} ],
- ATAndroidNativeJS: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "c7e28/V0ltGuaVkyssLml95", "ATAndroidNativeJS");
- var n = "com/anythink/cocosjs/ATNativeJSBridge", o = o || {
- loadNative: function(t, e) {
- cc.log("Android-loadNative");
- jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
- },
- setAdListener: function(t) {
- cc.log("Android-setAdListener");
- jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
- },
- hasAdReady: function(t) {
- cc.log("Android-hasAdReady");
- return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
- },
- checkAdStatus: function(t) {
- cc.log("Android-checkAdStatus:" + t);
- return jsb.reflection.callStaticMethod(n, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", t);
- },
- showAd: function(t, e) {
- cc.log("Android-showAd");
- jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, "");
- },
- showAdInScenario: function(t, e, o) {
- cc.log("Android-showAdInScenario");
- jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", t, e, o);
- },
- removeAd: function(t) {
- cc.log("Android-removeAd");
- jsb.reflection.callStaticMethod(n, "remove", "(Ljava/lang/String;)V", t);
- }
- };
- e.exports = o;
- cc._RF.pop();
- }, {} ],
- ATAndroidRewardedVideoJS: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "0e16ckjW85NZIXjxXyQ2xem", "ATAndroidRewardedVideoJS");
- var n = "com/anythink/cocosjs/ATRewardedVideoJSBridge", o = o || {
- loadRewardedVideo: function(t, e) {
- cc.log("Android-loadRewardedVideo");
- jsb.reflection.callStaticMethod(n, "load", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
- },
- setAdListener: function(t) {
- cc.log("Android-setAdListener");
- jsb.reflection.callStaticMethod(n, "setAdListener", "(Ljava/lang/String;)V", t);
- },
- hasAdReady: function(t) {
- cc.log("Android-hasAdReady");
- return jsb.reflection.callStaticMethod(n, "isAdReady", "(Ljava/lang/String;)Z", t);
- },
- checkAdStatus: function(t) {
- cc.log("Android-checkAdStatus:" + t);
- return jsb.reflection.callStaticMethod(n, "checkAdStatus", "(Ljava/lang/String;)Ljava/lang/String;", t);
- },
- showAd: function(t) {
- cc.log("Android-rv_showAd:" + t);
- jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;)V", t);
- },
- showAdInScenario: function(t, e) {
- cc.log("Android-rv_showAdInScenario:" + t + "---" + e);
- jsb.reflection.callStaticMethod(n, "show", "(Ljava/lang/String;Ljava/lang/String;)V", t, e);
- }
- };
- e.exports = o;
- cc._RF.pop();
- }, {} ],
- ATBannerJSSDK: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "fed33eJy/VKD6bSJh4Cejc1", "ATBannerJSSDK");
- var n = t("./Android/ATAndroidBannerJS"), o = t("./iOS/ATiOSBannerJS"), i = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, a = a || {
- kATBannerAdLoadingExtraBannerAdSizeStruct: "banner_ad_size_struct",
- kATBannerAdShowingPositionTop: "top",
- kATBannerAdShowingPositionBottom: "bottom",
- kATBannerAdInlineAdaptiveWidth: "inline_adaptive_width",
- kATBannerAdInlineAdaptiveOrientation: "inline_adaptive_orientation",
- kATBannerAdInlineAdaptiveOrientationCurrent: 0,
- kATBannerAdInlineAdaptiveOrientationPortrait: 1,
- kATBannerAdInlineAdaptiveOrientationLandscape: 2,
- kATBannerAdAdaptiveWidth: "adaptive_width",
- kATBannerAdAdaptiveOrientation: "adaptive_orientation",
- kATBannerAdAdaptiveOrientationCurrent: 0,
- kATBannerAdAdaptiveOrientationPortrait: 1,
- kATBannerAdAdaptiveOrientationLandscape: 2,
- ATBannerListener: {
- developerCallback: null,
- onBannerAdLoaded: function(t) {
- null != this.developerCallback && null != this.developerCallback.onBannerAdLoaded && null != this.developerCallback.onBannerAdLoaded && this.developerCallback.onBannerAdLoaded(t);
- },
- onBannerAdLoadFail: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onBannerAdLoadFail && null != this.developerCallback.onBannerAdLoadFail && this.developerCallback.onBannerAdLoadFail(t, e);
- },
- onBannerAdShow: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onBannerAdShow && null != this.developerCallback.onBannerAdShow && this.developerCallback.onBannerAdShow(t, e);
- },
- onBannerAdClick: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onBannerAdClick && null != this.developerCallback.onBannerAdClick && this.developerCallback.onBannerAdClick(t, e);
- },
- onBannerAdAutoRefresh: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onBannerAdAutoRefresh && null != this.developerCallback.onBannerAdAutoRefresh && this.developerCallback.onBannerAdAutoRefresh(t, e);
- },
- onBannerAdAutoRefreshFail: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onBannerAdAutoRefreshFail && null != this.developerCallback.onBannerAdAutoRefreshFail && this.developerCallback.onBannerAdAutoRefreshFail(t, e);
- },
- onBannerAdCloseButtonTapped: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onBannerAdCloseButtonTapped && null != this.developerCallback.onBannerAdCloseButtonTapped && this.developerCallback.onBannerAdCloseButtonTapped(t, e);
- }
- },
- loadBanner: function(t, e) {
- void 0 === e && (e = {});
- if (null != i && null != i) {
- if (e.hasOwnProperty(a.kATBannerAdLoadingExtraBannerAdSizeStruct)) {
- var n = e[a.kATBannerAdLoadingExtraBannerAdSizeStruct];
- e.width = n.width;
- e.height = n.height;
- }
- i.loadBanner(t, JSON.stringify(e));
- } else cc.log("You must run on Android or iOS.");
- },
- setAdListener: function(t) {
- var e = {};
- e[r] = "ATBannerJSSDK.ATBannerListener.onBannerAdLoaded", e[c] = "ATBannerJSSDK.ATBannerListener.onBannerAdLoadFail",
- e[s] = "ATBannerJSSDK.ATBannerListener.onBannerAdCloseButtonTapped", e[l] = "ATBannerJSSDK.ATBannerListener.onBannerAdClick",
- e[u] = "ATBannerJSSDK.ATBannerListener.onBannerAdShow", e[p] = "ATBannerJSSDK.ATBannerListener.onBannerAdAutoRefresh",
- e[d] = "ATBannerJSSDK.ATBannerListener.onBannerAdAutoRefreshFail";
- null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
- this.ATBannerListener.developerCallback = t;
- },
- hasAdReady: function(t) {
- if (null != i && null != i) return i.hasAdReady(t);
- cc.log("You must run on Android or iOS.");
- return !1;
- },
- checkAdStatus: function(t) {
- if (null != i && null != i) return i.checkAdStatus(t);
- cc.log("You must run on Android or iOS.");
- return "";
- },
- showAdInPosition: function(t, e) {
- null != i && null != i ? i.showAdInPosition(t, e) : cc.log("You must run on Android or iOS.");
- },
- showAdInPositionAndScenario: function(t, e, n) {
- null != i && null != i ? i.showAdInPosition(t, e, n) : cc.log("You must run on Android or iOS.");
- },
- showAdInRectangle: function(t, e) {
- null != i && null != i ? i.showAdInRectangle(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
- },
- showAdInRectangleAndScenario: function(t, e, n) {
- null != i && null != i ? i.showAdInRectangle(t, JSON.stringify(e), n) : cc.log("You must run on Android or iOS.");
- },
- removeAd: function(t) {
- null != i && null != i ? i.removeAd(t) : cc.log("You must run on Android or iOS.");
- },
- reShowAd: function(t) {
- null != i && null != i ? i.reShowAd(t) : cc.log("You must run on Android or iOS.");
- },
- hideAd: function(t) {
- null != i && null != i ? i.hideAd(t) : cc.log("You must run on Android or iOS.");
- },
- createLoadAdSize: function(t, e) {
- var n = {};
- n.width = t;
- n.height = e;
- return n;
- },
- createShowAdRect: function(t, e, n, o) {
- var i = {};
- i.x = t;
- i.y = e;
- i.width = n;
- i.height = o;
- return i;
- }
- }, r = "BannerLoaded", c = "BannerLoadFail", s = "BannerCloseButtonTapped", l = "BannerClick", u = "BannerShow", p = "BannerRefresh", d = "BannerRefreshFail";
- window.ATBannerJSSDK = a;
- cc._RF.pop();
- }, {
- "./Android/ATAndroidBannerJS": "ATAndroidBannerJS",
- "./iOS/ATiOSBannerJS": "ATiOSBannerJS"
- } ],
- ATBannerJS: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "e39ee3D06VH2JIOKTRndSVl", "ATBannerJS");
- t("./AnyThinkAds/ATBannerJSSDK");
- t("./AnyThinkAds/ATJSSDK");
- var n = cc.Class({
- name: "ATBannerJS",
- proxy: null,
- ctor: function() {},
- init: function() {
- ATBannerJSSDK.setAdListener(this);
- },
- placementID: function() {
- return this.proxy.placementID();
- },
- loadBanner: function() {
- var t = cc.view.getFrameSize().height;
- if (!(t < 1400)) {
- var e = {}, n = t / 1334 * 115;
- e[ATBannerJSSDK.kATBannerAdLoadingExtraBannerAdSizeStruct] = ATBannerJSSDK.createLoadAdSize(cc.view.getFrameSize().width, n);
- e[ATBannerJSSDK.kATBannerAdInlineAdaptiveWidth] = cc.view.getFrameSize().width;
- e[ATBannerJSSDK.kATBannerAdInlineAdaptiveOrientation] = ATBannerJSSDK.kATBannerAdInlineAdaptiveOrientationCurrent;
- ATBannerJSSDK.loadBanner(this.placementID(), e);
- }
- },
- hasAdReady: function() {
- return !!ATBannerJSSDK.hasAdReady(this.placementID());
- },
- showBanner: function() {
- ATBannerJSSDK.showAdInPosition(this.placementID(), ATBannerJSSDK.kATBannerAdShowingPositionBottom);
- },
- destroyBanner: function() {
- ATBannerJSSDK.removeAd(this.placementID());
- },
- onBannerAdLoaded: function(t) {
- null != this.proxy && this.proxy.onBannerAdLoaded(t);
- },
- onBannerAdLoadFail: function(t, e) {
- ATJSSDK.printLog("===[ AnyThinkBannerDemo::onBannerAdLoadFail(" + t + ", " + e + ")");
- null != this.proxy && this.proxy.onBannerAdLoadFail(t, e);
- },
- onBannerAdShow: function(t, e) {
- null != this.proxy && this.proxy.onBannerAdShow(t, e);
- },
- onBannerAdClick: function(t, e) {
- null != this.proxy && this.proxy.onBannerAdClick(t, e);
- },
- onBannerAdAutoRefresh: function() {
- this.proxy;
- },
- onBannerAdAutoRefreshFail: function() {
- this.proxy;
- },
- onBannerAdCloseButtonTapped: function() {
- this.proxy;
- }
- });
- e.exports = n;
- cc.ATBannerJS || (cc.ATBannerJS = new n());
- cc._RF.pop();
- }, {
- "./AnyThinkAds/ATBannerJSSDK": void 0,
- "./AnyThinkAds/ATJSSDK": void 0
- } ],
- ATBanner: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "180ddxdu85IXYjxFMMG+Rz5", "ATBanner");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- });
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.BannerAdState = void 0;
- var a, r = t("../../zgSingleton"), c = t("./ATSDKMgr"), s = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.bannerAdState = 0;
- e.ifLoadShow = !1;
- e.ifWatchEnd = !1;
- return e;
- }
- e.prototype.init = function() {
- this.ATBannerJS = cc.ATBannerJS;
- this.ATBannerJS.proxy = this;
- this.ATBannerJS.init();
- this.bannerAdState == a.Unload && this.loadBanner();
- };
- e.prototype.placementID = function() {
- return cc.sys.os === cc.sys.OS_IOS ? c.default.topon_banner_placementId : cc.sys.os === cc.sys.OS_ANDROID ? c.default.topon_banner_placementId : void 0;
- };
- e.prototype.hasAdReady = function() {
- return this.ATBannerJS.hasAdReady();
- };
- e.prototype.loadBanner = function(t) {
- void 0 === t && (t = !1);
- this.ifLoadShow = t;
- this.bannerAdState = a.Loading;
- this.ATBannerJS.loadBanner();
- };
- e.prototype.showBanner = function() {
- if (this.bannerAdState == a.Show) ; else if (this.hasAdReady()) {
- this.bannerAdState = a.Show;
- this.ATBannerJS.showBanner();
- } else this.bannerAdState == a.Loading ? this.ifLoadShow = !0 : this.loadBanner(!0);
- };
- e.prototype.destroyBanner = function() {
- this.bannerAdState = a.Close;
- this.ATBannerJS.destroyBanner();
- this.loadBanner();
- };
- e.prototype.onBannerAdLoaded = function() {
- this.bannerAdState = a.LoadSuccess;
- };
- e.prototype.onBannerAdLoadFail = function(t) {
- this.bannerAdState = a.LoadFail;
- gData.adData.updateADLog(14, t);
- };
- e.prototype.onBannerAdShow = function(t, e) {
- this.bannerAdState = a.Show;
- var n = JSON.parse(e);
- gData.adData.updateADLog(7, t, n);
- };
- e.prototype.onBannerAdClick = function() {};
- e.prototype.onBannerAdAutoRefresh = function() {};
- e.prototype.onBannerAdAutoRefreshFail = function() {};
- e.prototype.onBannerAdCloseButtonTapped = function() {};
- return e;
- }(r.zgSingleton);
- n.default = s;
- (function(t) {
- t[t.Unload = 0] = "Unload";
- t[t.Loading = 1] = "Loading";
- t[t.LoadSuccess = 2] = "LoadSuccess";
- t[t.LoadFail = 3] = "LoadFail";
- t[t.Show = 4] = "Show";
- t[t.Close = 5] = "Close";
- })(a = n.BannerAdState || (n.BannerAdState = {}));
- cc._RF.pop();
- }, {
- "../../zgSingleton": "zgSingleton",
- "./ATSDKMgr": "ATSDKMgr"
- } ],
- ATInterstitialJSSDK: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "778c3M0uDdLZKCU1iwGn6T6", "ATInterstitialJSSDK");
- var n = t("./iOS/ATiOSInterstitialJS"), o = t("./Android/ATAndroidInterstitialJS"), i = cc.sys.os === cc.sys.OS_IOS ? n : cc.sys.os === cc.sys.OS_ANDROID ? o : void 0, a = a || {
- UseRewardedVideoAsInterstitial: "UseRewardedVideoAsInterstitial",
- ATInterstitialListener: {
- developerCallback: null,
- onInterstitialAdLoaded: function(t) {
- null != this.developerCallback && null != this.developerCallback.onInterstitialAdLoaded && null != this.developerCallback.onInterstitialAdLoaded && this.developerCallback.onInterstitialAdLoaded(t);
- },
- onInterstitialAdLoadFail: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onInterstitialAdLoadFail && null != this.developerCallback.onInterstitialAdLoadFail && this.developerCallback.onInterstitialAdLoadFail(t, e);
- },
- onInterstitialAdShow: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onInterstitialAdShow && null != this.developerCallback.onInterstitialAdShow && this.developerCallback.onInterstitialAdShow(t, e);
- },
- onInterstitialAdStartPlayingVideo: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onInterstitialAdStartPlayingVideo && null != this.developerCallback.onInterstitialAdStartPlayingVideo && this.developerCallback.onInterstitialAdStartPlayingVideo(t, e);
- },
- onInterstitialAdEndPlayingVideo: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onInterstitialAdEndPlayingVideo && null != this.developerCallback.onInterstitialAdEndPlayingVideo && this.developerCallback.onInterstitialAdEndPlayingVideo(t, e);
- },
- onInterstitialAdFailedToPlayVideo: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onInterstitialAdFailedToPlayVideo && null != this.developerCallback.onInterstitialAdFailedToPlayVideo && this.developerCallback.onInterstitialAdFailedToPlayVideo(t, e);
- },
- onInterstitialAdFailedToShow: function(t) {
- null != this.developerCallback && null != this.developerCallback.onInterstitialAdFailedToShow && null != this.developerCallback.onInterstitialAdFailedToShow && this.developerCallback.onInterstitialAdFailedToShow(t);
- },
- onInterstitialAdClose: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onInterstitialAdClose && null != this.developerCallback.onInterstitialAdClose && this.developerCallback.onInterstitialAdClose(t, e);
- },
- onInterstitialAdClick: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onInterstitialAdClick && null != this.developerCallback.onInterstitialAdClick && this.developerCallback.onInterstitialAdClick(t, e);
- }
- },
- loadInterstitial: function(t, e) {
- void 0 === e && (e = {});
- null != i && null != i ? i.loadInterstitial(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
- },
- setAdListener: function(t) {
- var e = {};
- e[r] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdLoaded", e[c] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdLoadFail",
- e[s] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdStartPlayingVideo",
- e[l] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdEndPlayingVideo",
- e[u] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdFailedToPlayVideo",
- e[p] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdClose", e[d] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdClick",
- e[h] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdShow", e[f] = "ATInterstitialJSSDK.ATInterstitialListener.onInterstitialAdFailedToShow";
- null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
- this.ATInterstitialListener.developerCallback = t;
- },
- hasAdReady: function(t) {
- if (null != i && null != i) return i.hasAdReady(t);
- cc.log("You must run on Android or iOS.");
- return !1;
- },
- checkAdStatus: function(t) {
- if (null != i && null != i) return i.checkAdStatus(t);
- cc.log("You must run on Android or iOS.");
- return "";
- },
- showAd: function(t) {
- null != i && null != i ? i.showAd(t) : cc.log("You must run on Android or iOS.");
- },
- showAdInScenario: function(t, e) {
- void 0 === e && (e = "");
- null != i && null != i ? i.showAdInScenario(t, e) : cc.log("You must run on Android or iOS.");
- }
- }, r = "InterstitialLoaded", c = "InterstitialLoadFail", s = "InterstitialPlayStart", l = "InterstitialPlayEnd", u = "InterstitialPlayFail", p = "InterstitialClose", d = "InterstitialClick", h = "InterstitialAdShow", f = "InterstitialAdShowFail";
- window.ATInterstitialJSSDK = a;
- cc._RF.pop();
- }, {
- "./Android/ATAndroidInterstitialJS": "ATAndroidInterstitialJS",
- "./iOS/ATiOSInterstitialJS": "ATiOSInterstitialJS"
- } ],
- ATInterstitialJS: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "834cdg0rj5K4bBXLVG4XyXv", "ATInterstitialJS");
- t("./AnyThinkAds/ATInterstitialJSSDK");
- t("./AnyThinkAds/ATJSSDK");
- var n = cc.Class({
- name: "ATInterstitialJS",
- proxy: null,
- ctor: function() {},
- init: function() {
- ATInterstitialJSSDK.setAdListener(this);
- },
- placementID: function() {
- return this.proxy.placementID();
- },
- hasAdReady: function() {
- if (null != this.proxy) return !!ATInterstitialJSSDK.hasAdReady(this.placementID());
- },
- loadInter: function() {
- var t = {};
- t[ATInterstitialJSSDK.UseRewardedVideoAsInterstitial] = !1;
- ATInterstitialJSSDK.loadInterstitial(this.placementID(), t);
- },
- showInter: function() {
- ATInterstitialJSSDK.showAd(this.placementID());
- },
- onInterstitialAdLoaded: function(t) {
- null != this.proxy && this.proxy.onInterstitialAdLoaded(t);
- },
- onInterstitialAdLoadFail: function(t, e) {
- ATJSSDK.printLog("===[AnyThinkInterstitialDemo::onInterstitialAdLoadFail(" + t + ", " + e + ")");
- null != this.proxy && this.proxy.onInterstitialAdLoadFail(t, e);
- },
- onInterstitialAdShow: function(t, e) {
- null != this.proxy && this.proxy.onInterstitialAdShow(t, e);
- },
- onInterstitialAdStartPlayingVideo: function() {},
- onInterstitialAdEndPlayingVideo: function() {},
- onInterstitialAdFailedToPlayVideo: function() {},
- onInterstitialAdFailedToShow: function() {},
- onInterstitialAdClose: function(t, e) {
- null != this.proxy && this.proxy.onInterstitialAdClose(t, e);
- },
- onInterstitialAdClick: function(t, e) {
- null != this.proxy && this.proxy.onInterstitialAdClick(t, e);
- }
- });
- e.exports = n;
- cc.ATInterstitialJS || (cc.ATInterstitialJS = new n());
- cc._RF.pop();
- }, {
- "./AnyThinkAds/ATInterstitialJSSDK": void 0,
- "./AnyThinkAds/ATJSSDK": void 0
- } ],
- ATInterstitial: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "3adb122h/VGgJKlIXmsxvCD", "ATInterstitial");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- });
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.InterAdState = void 0;
- var a, r = t("../../zgSingleton"), c = t("./ATSDKMgr"), s = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.interAdType = 0;
- e.interAdState = 0;
- e.ifLoadShow = !1;
- return e;
- }
- e.prototype.init = function() {
- this.ATInterstitialJS = cc.ATInterstitialJS;
- this.ATInterstitialJS.proxy = this;
- this.ATInterstitialJS.init();
- this.interAdState == a.Unload && this.loadInter(0);
- };
- e.prototype.placementID = function() {
- if (0 == this.interAdType) {
- if (cc.sys.os === cc.sys.OS_IOS) return c.default.topon_inter_placementId;
- if (cc.sys.os === cc.sys.OS_ANDROID) return c.default.topon_inter_placementId;
- } else {
- if (cc.sys.os === cc.sys.OS_IOS) return c.default.topon_fullinter_placementId;
- if (cc.sys.os === cc.sys.OS_ANDROID) return c.default.topon_fullinter_placementId;
- }
- };
- e.prototype.hasAdReady = function() {
- return this.ATInterstitialJS.hasAdReady();
- };
- e.prototype.loadInter = function(t, e) {
- void 0 === e && (e = !1);
- this.interAdType = t;
- this.ifLoadShow = e;
- this.interAdState = a.Loading;
- this.ATInterstitialJS.loadInter(t);
- };
- e.prototype.showInter = function(t) {
- this.interAdType = t;
- if (this.interAdState == a.Show) ; else if (this.hasAdReady()) {
- this.interAdState = a.Show;
- this.ATInterstitialJS.showInter(t);
- } else this.interAdState == a.Loading ? this.ifLoadShow = !0 : this.loadInter(t, !0);
- };
- e.prototype.onInterstitialAdLoaded = function() {
- this.interAdState = a.LoadSuccess;
- this.ifLoadShow && this.showInter(this.interAdType);
- };
- e.prototype.onInterstitialAdLoadFail = function(t) {
- this.interAdState = a.LoadFail;
- if (1 == this.interAdType) {
- mk.tip.pop("拉取全屏视频失败,请稍后再试");
- gData.adData.updateADLog(10, t);
- } else 0 == this.interAdType && gData.adData.updateADLog(11, t);
- };
- e.prototype.onInterstitialAdShow = function(t, e) {
- this.interAdState = a.Show;
- var n = JSON.parse(e), o = 2;
- 0 == this.interAdType ? o = 2 : 1 == this.interAdType && (o = 9);
- gData.adData.updateADLog(o, t, n);
- };
- e.prototype.onInterstitialAdClick = function() {};
- e.prototype.onInterstitialAdClose = function(t, e) {
- this.interAdState = a.Close;
- this.loadInter(this.interAdType);
- if (1 == this.interAdType) {
- var n = JSON.parse(e);
- gData.adData.updateADLog(8, t, n);
- }
- };
- return e;
- }(r.zgSingleton);
- n.default = s;
- (function(t) {
- t[t.Unload = 0] = "Unload";
- t[t.Loading = 1] = "Loading";
- t[t.LoadSuccess = 2] = "LoadSuccess";
- t[t.LoadFail = 3] = "LoadFail";
- t[t.Show = 4] = "Show";
- t[t.Close = 5] = "Close";
- })(a = n.InterAdState || (n.InterAdState = {}));
- cc._RF.pop();
- }, {
- "../../zgSingleton": "zgSingleton",
- "./ATSDKMgr": "ATSDKMgr"
- } ],
- ATJSSDK: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "bac5aDDxNxEn6rH1N8w46KW", "ATJSSDK");
- var n = t("./Android/ATAndroidJS"), o = t("./iOS/ATiOSJS"), i = !1, a = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, r = r || {
- kATUserLocationUnknown: 0,
- kATUserLocationInEU: 1,
- kATUserLocationOutOfEU: 2,
- PERSONALIZED: 0,
- NONPERSONALIZED: 1,
- UNKNOWN: 2,
- OS_VERSION_NAME: "os_vn",
- OS_VERSION_CODE: "os_vc",
- APP_PACKAGE_NAME: "package_name",
- APP_VERSION_NAME: "app_vn",
- APP_VERSION_CODE: "app_vc",
- BRAND: "brand",
- MODEL: "model",
- DEVICE_SCREEN_SIZE: "screen",
- MNC: "mnc",
- MCC: "mcc",
- LANGUAGE: "language",
- TIMEZONE: "timezone",
- USER_AGENT: "ua",
- ORIENTATION: "orient",
- NETWORK_TYPE: "network_type",
- INSTALLER: "it_src",
- ANDROID_ID: "android_id",
- GAID: "gaid",
- MAC: "mac",
- IMEI: "imei",
- OAID: "oaid",
- IDFA: "idfa",
- IDFV: "idfv",
- ATSDKListener: {
- userLocationCallback: null,
- getUserLocationCallback: function(t) {
- null != this.userLocationCallback && null != this.userLocationCallback && this.userLocationCallback(t);
- }
- },
- initSDK: function(t, e) {
- null != a && null != a ? a.initSDK(t, e) : cc.log("You must run on Android or iOS.");
- },
- initCustomMap: function(t) {
- null != a && null != a ? null != t && null != t && a.initCustomMap(JSON.stringify(t)) : cc.log("You must run on Android or iOS.");
- },
- setPlacementCustomMap: function(t, e) {
- null != a && null != a ? null != e && null != e && a.setPlacementCustomMap(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
- },
- setGDPRLevel: function(t) {
- null != a && null != a ? a.setGDPRLevel(t) : cc.log("You must run on Android or iOS.");
- },
- getGDPRLevel: function() {
- if (null != a && null != a) return a.getGDPRLevel();
- cc.log("You must run on Android or iOS.");
- return this.UNKNOWN;
- },
- getUserLocation: function(t) {
- this.ATSDKListener.userLocationCallback = t;
- null != a && null != a ? a.getUserLocation(c) : cc.log("You must run on Android or iOS.");
- },
- showGDPRAuth: function() {
- null != a && null != a ? a.showGDPRAuth() : cc.log("You must run on Android or iOS.");
- },
- setLogDebug: function(t) {
- i = t;
- null != a && null != a ? a.setLogDebug(t) : cc.log("You must run on Android or iOS.");
- },
- printLog: function(t) {
- null != t && null != t && i && null != a && (null != a && null != a ? a.printJsLog(t) : cc.log("You must run on Android or iOS."));
- },
- deniedUploadDeviceInfo: function(t) {
- if (null != a && null != a) {
- if (null != t) {
- for (var e = t.length, n = "", o = 0; o < e; o++) {
- var i = t[o];
- n = 0 == o ? i : n + "," + i;
- }
- cc.log("test__" + n);
- a.deniedUploadDeviceInfo(n);
- }
- } else cc.log("You must run on Android or iOS.");
- }
- }, c = "ATJSSDK.ATSDKListener.getUserLocationCallback";
- window.ATJSSDK = r;
- cc._RF.pop();
- }, {
- "./Android/ATAndroidJS": "ATAndroidJS",
- "./iOS/ATiOSJS": "ATiOSJS"
- } ],
- ATNativeJSSDK: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "39725wDOBhDQYIM5/T7cLXZ", "ATNativeJSSDK");
- var n = t("./Android/ATAndroidNativeJS"), o = t("./iOS/ATiOSNativeJS"), i = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, a = a || {
- ATNativeListener: {
- developerCallback: null,
- onNativeAdLoaded: function(t) {
- null != this.developerCallback && null != this.developerCallback.onNativeAdLoaded && null != this.developerCallback.onNativeAdLoaded && this.developerCallback.onNativeAdLoaded(t);
- },
- onNativeAdLoadFail: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onNativeAdLoadFail && null != this.developerCallback.onNativeAdLoadFail && this.developerCallback.onNativeAdLoadFail(t, e);
- },
- onNativeAdShow: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onNativeAdShow && null != this.developerCallback.onNativeAdShow && this.developerCallback.onNativeAdShow(t, e);
- },
- onNativeAdClick: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onNativeAdClick && null != this.developerCallback.onNativeAdClick && this.developerCallback.onNativeAdClick(t, e);
- },
- onNativeAdVideoStart: function(t) {
- null != this.developerCallback && null != this.developerCallback.onNativeAdVideoStart && null != this.developerCallback.onNativeAdVideoStart && this.developerCallback.onNativeAdVideoStart(t);
- },
- onNativeAdVideoEnd: function(t) {
- null != this.developerCallback && null != this.developerCallback.onNativeAdVideoEnd && null != this.developerCallback.onNativeAdVideoEnd && this.developerCallback.onNativeAdVideoEnd(t);
- },
- onNativeAdCloseButtonTapped: function(t, e) {
- null != this.developerCallback && null != this.developerCallback.onNativeAdCloseButtonTapped && null != this.developerCallback.onNativeAdCloseButtonTapped && this.developerCallback.onNativeAdCloseButtonTapped(t, e);
- }
- },
- loadNative: function(t, e) {
- void 0 === e && (e = {});
- null != i && null != i ? i.loadNative(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
- },
- setAdListener: function(t) {
- var e = {};
- e[r] = "ATNativeJSSDK.ATNativeListener.onNativeAdLoaded", e[c] = "ATNativeJSSDK.ATNativeListener.onNativeAdLoadFail",
- e[s] = "ATNativeJSSDK.ATNativeListener.onNativeAdCloseButtonTapped", e[l] = "ATNativeJSSDK.ATNativeListener.onNativeAdClick",
- e[u] = "ATNativeJSSDK.ATNativeListener.onNativeAdShow", e[p] = "ATNativeJSSDK.ATNativeListener.onNativeAdVideoStart",
- e[d] = "ATNativeJSSDK.ATNativeListener.onNativeAdVideoEnd";
- null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
- this.ATNativeListener.developerCallback = t;
- },
- hasAdReady: function(t) {
- if (null != i && null != i) return i.hasAdReady(t);
- cc.log("You must run on Android or iOS.");
- return !1;
- },
- checkAdStatus: function(t) {
- if (null != i && null != i) return i.checkAdStatus(t);
- cc.log("You must run on Android or iOS.");
- return "";
- },
- showAd: function(t, e) {
- null != i && null != i ? i.showAd(t, JSON.stringify(e.getAdViewProperty())) : cc.log("You must run on Android or iOS.");
- },
- showAdInScenario: function(t, e, n) {
- void 0 === n && (n = "");
- null != i && null != i ? i.showAdInScenario(t, JSON.stringify(e.getAdViewProperty()), n) : cc.log("You must run on Android or iOS.");
- },
- removeAd: function(t) {
- null != i && null != i ? i.removeAd(t) : cc.log("You must run on Android or iOS.");
- },
- createLoadAdSize: function(t, e) {
- var n = {};
- n.width = t;
- n.height = e;
- return n;
- },
- AdViewProperty: cc.Class({
- parent: null,
- appIcon: null,
- mainImage: null,
- title: null,
- desc: null,
- adLogo: null,
- cta: null,
- rating: null,
- dislike: null,
- createItemViewProperty: function(t, e, n, o, i, a, r, c) {
- void 0 === c && (c = !1);
- var s = {};
- s.x = t;
- s.y = e;
- s.width = n;
- s.height = o;
- s.backgroundColor = i;
- s.textColor = a;
- s.textSize = r;
- s.isCustomClick = c;
- return s;
- },
- getAdViewProperty: function() {
- var t = {};
- null != this.parent && (t.parent = this.parent);
- null != this.appIcon && (t.icon = this.appIcon);
- null != this.mainImage && (t.mainImage = this.mainImage);
- null != this.title && (t.title = this.title);
- null != this.desc && (t.desc = this.desc);
- null != this.adLogo && (t.adLogo = this.adLogo);
- null != this.cta && (t.cta = this.cta);
- null != this.rating && (t.rating = this.rating);
- null != this.dislike && (t.dislike = this.dislike);
- return t;
- }
- })
- }, r = "NativeLoaded", c = "NativeLoadFail", s = "NativeCloseButtonTapped", l = "NativeClick", u = "NativeShow", p = "NativeVideoStart", d = "NativeVideoEnd";
- window.ATNativeJSSDK = a;
- cc._RF.pop();
- }, {
- "./Android/ATAndroidNativeJS": "ATAndroidNativeJS",
- "./iOS/ATiOSNativeJS": "ATiOSNativeJS"
- } ],
- ATNativeJS: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "632566KI5RGZ7SH/rUdPBiO", "ATNativeJS");
- t("./AnyThinkAds/ATRewardedVideoJSSDK");
- t("./AnyThinkAds/ATJSSDK");
- t("./AnyThinkAds/ATInterstitialJSSDK");
- t("./AnyThinkAds/ATNativeJSSDK");
- var n = cc.Class({
- name: "ATNativeJS",
- proxy: null,
- ctor: function() {},
- init: function() {
- ATNativeJSSDK.setAdListener(this);
- },
- placementID: function() {
- return this.proxy.placementID();
- },
- hasAdReady: function() {
- return !!ATNativeJSSDK.hasAdReady(this.placementID());
- },
- loadNative: function(t, e) {
- ATNativeJSSDK.loadNative(this.placementID(), ATNativeJSSDK.createLoadAdSize(t, e));
- },
- showNative: function(t, e, n, o, i) {
- var a = new ATNativeJSSDK.AdViewProperty();
- a.parent = a.createItemViewProperty(t, e, n, o, "#ffffff", "", 0);
- a.mainImage = a.createItemViewProperty(0, 0, n, o, "#ffffff", "#ffffff", i);
- ATNativeJSSDK.showAd(this.placementID(), a);
- },
- destroyNative: function() {
- ATNativeJSSDK.removeAd(this.placementID());
- },
- onNativeAdLoaded: function(t) {
- null != this.proxy && this.proxy.onNativeAdLoaded(t);
- },
- onNativeAdLoadFail: function(t, e) {
- ATJSSDK.printLog("===[AnyThinkNativeDemo::onNativeAdLoadFail(" + t + ", " + e + ")");
- null != this.proxy && this.proxy.onNativeAdLoadFail(t, e);
- },
- onNativeAdShow: function(t, e) {
- null != this.proxy && this.proxy.onNativeAdShow(t, e);
- },
- onNativeAdClick: function() {},
- onNativeAdVideoStart: function() {},
- onNativeAdVideoEnd: function() {},
- onNativeAdCloseButtonTapped: function() {}
- });
- e.exports = n;
- cc.ATNativeJS || (cc.ATNativeJS = new n());
- cc._RF.pop();
- }, {
- "./AnyThinkAds/ATInterstitialJSSDK": void 0,
- "./AnyThinkAds/ATJSSDK": void 0,
- "./AnyThinkAds/ATNativeJSSDK": void 0,
- "./AnyThinkAds/ATRewardedVideoJSSDK": void 0
- } ],
- ATNative: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "6935cecX45IioFawvWRaxhk", "ATNative");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- });
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.NativeAdState = n.ATNative = void 0;
- var a, r = t("../../zgSingleton"), c = t("./ATSDKMgr"), s = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.nativeAdType = 4;
- e.nativeAdState = 0;
- e.ifLoadShow = !1;
- return e;
- }
- e.prototype.init = function() {
- this.ATNativeJS = cc.ATNativeJS;
- this.ATNativeJS.proxy = this;
- this.ATNativeJS.init();
- this.nativeAdState == a.Unload && this.loadNative(4);
- };
- e.prototype.placementID = function() {
- return cc.sys.os === cc.sys.OS_IOS ? c.default.topon_native_placementId : cc.sys.os === cc.sys.OS_ANDROID ? c.default.topon_native_placementId : void 0;
- };
- e.prototype.hasAdReady = function() {
- return this.ATNativeJS.hasAdReady();
- };
- e.prototype.loadNative = function(t, e) {
- void 0 === t && (t = 4);
- void 0 === e && (e = !1);
- this.nativeAdType = t;
- this.ifLoadShow = e;
- this.nativeAdState = a.Loading;
- var n = cc.view.getFrameSize().width / 750, o = 656 * n, i = 440 * n;
- if (2 == this.nativeAdType) {
- o *= .9;
- i *= .8;
- } else if (3 == this.nativeAdType) {
- o *= .9;
- i *= .75;
- }
- this.ATNativeJS.loadNative(o, i);
- };
- e.prototype.showNative = function(t) {
- if (this.nativeAdState == a.Show) ; else if (this.hasAdReady()) if (this.nativeAdType != t) {
- this.destroyNative();
- this.loadNative(t, !0);
- } else {
- console.log("===[ShowNative", t);
- var e = cc.view.getFrameSize(), n = e.width, o = e.height, i = n / 750, r = 656 * i, c = 440 * i, s = 0;
- if (0 == t) s = .45 * o; else if (1 == t) s = .625 * o; else if (2 == t) {
- s = .595 * o;
- r *= .9;
- c *= .8;
- } else if (3 == t) {
- s = .69 * o;
- r *= .9;
- c *= .75;
- } else 4 == t && (s = .75 * o);
- var l = .5 * (n - r);
- this.ATNativeJS.showNative(l, s, r, c);
- } else this.nativeAdState == a.Loading ? this.ifLoadShow = !0 : this.loadNative(t, !0);
- };
- e.prototype.destroyNative = function() {
- this.nativeAdState = a.Close;
- this.ATNativeJS.destroyNative();
- this.loadNative(this.nativeAdType);
- };
- e.prototype.onNativeAdLoaded = function() {
- this.nativeAdState = a.LoadSuccess;
- this.ifLoadShow && this.showNative(this.nativeAdType);
- };
- e.prototype.onNativeAdLoadFail = function(t) {
- this.nativeAdState = a.LoadFail;
- gData.adData.updateADLog(12, t);
- };
- e.prototype.onNativeAdShow = function(t, e) {
- this.nativeAdState = a.Show;
- var n = JSON.parse(e);
- gData.adData.updateADLog(3, t, n);
- };
- e.prototype.onNativeAdClick = function() {};
- return e;
- }(r.zgSingleton);
- n.ATNative = s;
- (function(t) {
- t[t.Unload = 0] = "Unload";
- t[t.Loading = 1] = "Loading";
- t[t.LoadSuccess = 2] = "LoadSuccess";
- t[t.LoadFail = 3] = "LoadFail";
- t[t.Show = 4] = "Show";
- t[t.Close = 5] = "Close";
- })(a = n.NativeAdState || (n.NativeAdState = {}));
- cc._RF.pop();
- }, {
- "../../zgSingleton": "zgSingleton",
- "./ATSDKMgr": "ATSDKMgr"
- } ],
- ATRewardVideoJS: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "7a311dQIK5HyqkCe/o7a1dk", "ATRewardVideoJS");
- t("./AnyThinkAds/ATRewardedVideoJSSDK");
- t("./AnyThinkAds/ATJSSDK");
- var n = cc.Class({
- name: "ATRewardVideoJS",
- proxy: null,
- ctor: function() {
- console.log("ATRewardVideoJS.js created! ");
- },
- init: function() {
- ATRewardedVideoJSSDK.setAdListener(this);
- },
- placementID: function() {
- return this.proxy.placementID();
- },
- loadAd: function(t, e) {
- var n = {};
- n[ATRewardedVideoJSSDK.userIdKey] = t;
- n[ATRewardedVideoJSSDK.userDataKey] = e;
- ATRewardedVideoJSSDK.loadRewardedVideo(this.placementID(), n);
- },
- showAd: function() {
- ATRewardedVideoJSSDK.showAdInScenario(this.placementID(), "");
- },
- hasAdReady: function() {
- if (null != this.proxy) return !!ATRewardedVideoJSSDK.hasAdReady(this.placementID());
- },
- onRewardedVideoAdLoaded: function(t) {
- null != this.proxy && this.proxy.onRewardedVideoAdLoaded(t);
- },
- onRewardedVideoAdFailed: function(t, e) {
- ATJSSDK.printLog("===[AnyThinkRewardedVideo::onRewardedVideoAdFailed(" + t + ", " + e + ")");
- null != this.proxy && this.proxy.onRewardedVideoAdFailed(t, e);
- },
- onRewardedVideoAdPlayStart: function(t, e) {
- null != this.proxy && this.proxy.onRewardedVideoAdPlayStart(t, e);
- },
- onRewardedVideoAdPlayEnd: function(t, e) {
- null != this.proxy && this.proxy.onRewardedVideoAdPlayEnd(t, e);
- },
- onRewardedVideoAdPlayFailed: function(t, e, n) {
- null != this.proxy && this.proxy.onRewardedVideoAdPlayFailed(t, e, n);
- },
- onRewardedVideoAdClosed: function(t, e) {
- null != this.proxy && this.proxy.onRewardedVideoAdClosed(t, e);
- },
- onRewardedVideoAdPlayClicked: function(t, e) {
- null != this.proxy && this.proxy.onRewardedVideoAdPlayClicked(t, e);
- },
- onReward: function(t, e) {
- null != this.proxy && this.proxy.onReward(t, e);
- }
- });
- e.exports = n;
- cc.ATRewardVideoJS || (cc.ATRewardVideoJS = new n());
- cc._RF.pop();
- }, {
- "./AnyThinkAds/ATJSSDK": void 0,
- "./AnyThinkAds/ATRewardedVideoJSSDK": void 0
- } ],
- ATRewardVideo: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "ee3a8fFEl1HTb/Gl6EilBAf", "ATRewardVideo");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- });
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.RewardAdState = n.ATRewardVideo = void 0;
- var a, r = t("../../../../../game/data/GameData"), c = t("../../zgSingleton"), s = t("./ATSDKMgr"), l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.reawardAdState = 0;
- e.ifLoadShow = !1;
- e.ifWatchEnd = !1;
- return e;
- }
- e.prototype.init = function() {
- this.ATRewardVideoJS = cc.ATRewardVideoJS;
- this.ATRewardVideoJS.proxy = this;
- this.ATRewardVideoJS.init();
- this.ifWatchEnd = !1;
- this.reawardAdState == a.Unload && this.loadAd();
- };
- e.prototype.placementID = function() {
- return cc.sys.os === cc.sys.OS_IOS ? s.default.topon_rewardVideo_placementId : cc.sys.os === cc.sys.OS_ANDROID ? s.default.topon_rewardVideo_placementId : void 0;
- };
- e.prototype.hasAdReady = function() {
- return this.ATRewardVideoJS.hasAdReady();
- };
- e.prototype.loadAd = function() {
- console.log("anythink === 加载激励视频广告", a[this.reawardAdState]);
- if (this.reawardAdState != a.Loading) {
- console.log("anythink === 加载激励视频广告 onload", a[this.reawardAdState]);
- this.reawardAdState = a.Loading;
- this.ATRewardVideoJS.loadAd(gData.loginData.uin, "userDataKey");
- }
- };
- e.prototype.showAd = function() {
- if (this.reawardAdState == a.LoadSuccess) this.ATRewardVideoJS.showAd(); else {
- this.loadAd();
- this.ifLoadShow = !0;
- }
- };
- e.prototype.onRewardedVideoAdLoaded = function() {
- console.log("anythink === 加载激励视频广告成功", this.hasAdReady(), a[this.reawardAdState]);
- this.reawardAdState = a.LoadSuccess;
- if (this.ifLoadShow) {
- this.showAd();
- this.ifLoadShow = !1;
- }
- };
- e.prototype.onRewardedVideoAdFailed = function() {
- console.log("anythink === 加载激励视频广告失败", a[this.reawardAdState]);
- this.reawardAdState = a.LoadFail;
- };
- e.prototype.onRewardedVideoAdPlayStart = function(t, e) {
- var n = JSON.parse(e);
- gData.adData.updateADLog(4, t, n);
- gData.adData.updateData(t, n);
- mk.data.sendDataEvent(r.DataEventId.video_init, mk.ad.videoAdType);
- this.reawardAdState = a.Unload;
- };
- e.prototype.onRewardedVideoAdPlayEnd = function() {
- this.ifWatchEnd = !0;
- };
- e.prototype.onRewardedVideoAdPlayFailed = function(t, e, n) {
- var o = JSON.parse(n);
- gData.adData.updateADLog(5, t, o);
- s.default.getInstance().watchVideoAdCallBack(s.AdPlayStateType.PlayFail);
- };
- e.prototype.onRewardedVideoAdClosed = function() {
- if (this.ifWatchEnd) {
- s.default.getInstance().watchVideoAdCallBack(s.AdPlayStateType.WatchEnd);
- mk.data.sendDataEvent(r.DataEventId.video_end, mk.ad.videoAdType);
- } else s.default.getInstance().watchVideoAdCallBack(s.AdPlayStateType.Cancel);
- this.ifWatchEnd = !1;
- this.loadAd();
- };
- e.prototype.onRewardedVideoAdPlayClicked = function() {};
- e.prototype.onReward = function() {
- this.ifWatchEnd = !0;
- };
- return e;
- }(c.zgSingleton);
- n.ATRewardVideo = l;
- (function(t) {
- t[t.Unload = 0] = "Unload";
- t[t.Loading = 1] = "Loading";
- t[t.LoadSuccess = 2] = "LoadSuccess";
- t[t.LoadFail = 3] = "LoadFail";
- t[t.PlayEnd = 4] = "PlayEnd";
- })(a = n.RewardAdState || (n.RewardAdState = {}));
- cc._RF.pop();
- }, {
- "../../../../../game/data/GameData": "GameData",
- "../../zgSingleton": "zgSingleton",
- "./ATSDKMgr": "ATSDKMgr"
- } ],
- ATRewardedVideoJSSDK: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "8ac0a0yhkxIB7Ga0FkDttBs", "ATRewardedVideoJSSDK");
- var n = t("./Android/ATAndroidRewardedVideoJS"), o = t("./iOS/ATiOSRewardedVideoJS"), i = cc.sys.os === cc.sys.OS_IOS ? o : cc.sys.os === cc.sys.OS_ANDROID ? n : void 0, a = a || {
- userIdKey: "userID",
- userDataKey: "media_ext",
- ATRewardedVideoListener: {
- developerCallback: null,
- onRewardedVideoAdLoaded: function(t) {
- ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdLoaded(" + t + ")");
- null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdLoaded && null != this.developerCallback.onRewardedVideoAdLoaded && this.developerCallback.onRewardedVideoAdLoaded(t);
- },
- onRewardedVideoAdFailed: function(t, e) {
- ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdFailed(" + t + ", " + e + ")");
- null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdFailed && null != this.developerCallback.onRewardedVideoAdFailed && this.developerCallback.onRewardedVideoAdFailed(t, e);
- },
- onRewardedVideoAdPlayStart: function(t, e) {
- ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayStart(" + t + ", " + e + ")");
- null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayStart && null != this.developerCallback.onRewardedVideoAdPlayStart && this.developerCallback.onRewardedVideoAdPlayStart(t, e);
- },
- onRewardedVideoAdPlayEnd: function(t, e) {
- ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayEnd(" + t + ", " + e + ")");
- null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayEnd && null != this.developerCallback.onRewardedVideoAdPlayEnd && this.developerCallback.onRewardedVideoAdPlayEnd(t, e);
- },
- onRewardedVideoAdPlayFailed: function(t, e, n) {
- ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayFailed(" + t + ", " + n + ")");
- null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayFailed && null != this.developerCallback.onRewardedVideoAdPlayFailed && this.developerCallback.onRewardedVideoAdPlayFailed(t, e, n);
- },
- onRewardedVideoAdClosed: function(t, e) {
- ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdClosed(" + t + ", " + e + ")");
- null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdClosed && null != this.developerCallback.onRewardedVideoAdClosed && this.developerCallback.onRewardedVideoAdClosed(t, e);
- },
- onRewardedVideoAdPlayClicked: function(t, e) {
- ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayClicked(" + t + ", " + e + ")");
- null != this.developerCallback && null != this.developerCallback.onRewardedVideoAdPlayClicked && null != this.developerCallback.onRewardedVideoAdPlayClicked && this.developerCallback.onRewardedVideoAdPlayClicked(t, e);
- },
- onReward: function(t, e) {
- ATJSSDK.printLog("ATRewardedVideoJSSDK.ATRewardedVideoListener.onReward(" + t + ", " + e + ")");
- null != this.developerCallback && null != this.developerCallback.onReward && null != this.developerCallback.onReward && this.developerCallback.onReward(t, e);
- }
- },
- loadRewardedVideo: function(t, e) {
- void 0 === e && (e = {});
- null != i && null != i ? i.loadRewardedVideo(t, JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
- },
- setAdListener: function(t) {
- var e = {};
- e[r] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdLoaded", e[c] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdFailed",
- e[s] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayStart",
- e[l] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayEnd",
- e[u] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayFailed",
- e[p] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdClosed", e[d] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onRewardedVideoAdPlayClicked",
- e[h] = "ATRewardedVideoJSSDK.ATRewardedVideoListener.onReward";
- null != i && null != i ? i.setAdListener(JSON.stringify(e)) : cc.log("You must run on Android or iOS.");
- this.ATRewardedVideoListener.developerCallback = t;
- },
- hasAdReady: function(t) {
- if (null != i && null != i) return i.hasAdReady(t);
- cc.log("You must run on Android or iOS.");
- return !1;
- },
- checkAdStatus: function(t) {
- if (null != i && null != i) return i.checkAdStatus(t);
- cc.log("You must run on Android or iOS.");
- return "";
- },
- showAd: function(t) {
- null != i && null != i ? i.showAd(t) : cc.log("You must run on Android or iOS.");
- },
- showAdInScenario: function(t, e) {
- void 0 === e && (e = "");
- null != i && null != i ? i.showAdInScenario(t, e) : cc.log("You must run on Android or iOS.");
- }
- }, r = "RewardedVideoLoaded", c = "RewardedVideoLoadFail", s = "RewardedVideoPlayStart", l = "RewardedVideoPlayEnd", u = "RewardedVideoPlayFail", p = "RewardedVideoClose", d = "RewardedVideoClick", h = "RewardedVideoReward";
- window.ATRewardedVideoJSSDK = a;
- cc._RF.pop();
- }, {
- "./Android/ATAndroidRewardedVideoJS": "ATAndroidRewardedVideoJS",
- "./iOS/ATiOSRewardedVideoJS": "ATiOSRewardedVideoJS"
- } ],
- ATSDKMgrJS: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "f54e6FGCLdB06BaS25A0bWv", "ATSDKMgrJS");
- t("./AnyThinkAds/ATJSSDK");
- var n = cc.Class({
- name: "ATSDKMgrJS",
- proxy: null,
- ctor: function() {
- console.log("ATSDKMgrJS.js created! ");
- },
- initATJSSDK: function(t, e) {
- ATJSSDK.setLogDebug(!0);
- ATJSSDK.initCustomMap({
- appCustomKey1: "appCustomValue1",
- appCustomKey2: "appCustomValue2"
- });
- ATJSSDK.setPlacementCustomMap(this.placementID(), {
- placementCustomKey1: "placementCustomValue1",
- placementCustomKey2: "placementCustomValue2"
- });
- ATJSSDK.getGDPRLevel();
- cc.sys.os === cc.sys.OS_IOS ? ATJSSDK.initSDK(t, e) : cc.sys.os === cc.sys.OS_ANDROID && ATJSSDK.initSDK(t, e);
- ATJSSDK.getUserLocation(function(t) {
- t === ATJSSDK.kATUserLocationInEU && ATJSSDK.getGDPRLevel() === ATJSSDK.UNKNOWN && ATJSSDK.showGDPRAuth();
- });
- },
- placementID: function() {
- return this.proxy.placementID();
- }
- });
- e.exports = n;
- cc.ATSDKMgrJS || (cc.ATSDKMgrJS = new n());
- cc._RF.pop();
- }, {
- "./AnyThinkAds/ATJSSDK": void 0
- } ],
- ATSDKMgr: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "ae75dW/PnBNZp5nLfdPDYa5", "ATSDKMgr");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.AdPlayStateType = void 0;
- var r, c = t("../../../../system/JsbSystem"), s = t("../../zgSingleton"), l = t("./ATBanner"), u = t("./ATInterstitial"), p = t("./ATNative"), d = t("./ATRewardVideo"), h = cc._decorator, f = h.ccclass, y = (h.property,
- function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- n = e;
- e.prototype.initSDK = function() {
- if (cc.sys.isNative) {
- this.getAdvertiseChannel();
- window.ATJSSDK.setLogDebug(!0);
- cc.ATSDKMgrJS.proxy = this;
- cc.ATSDKMgrJS.initATJSSDK(n.topon_android_appId, n.topon_android_appSecret);
- d.ATRewardVideo.getInstance().init();
- p.ATNative.getInstance().init();
- u.default.getInstance().init();
- l.default.getInstance().init();
- }
- };
- e.prototype.placementID = function() {
- return cc.sys.os === cc.sys.OS_IOS ? n.topon_rewardVideo_placementId : cc.sys.os === cc.sys.OS_ANDROID ? n.topon_rewardVideo_placementId : void 0;
- };
- e.prototype.getAdvertiseChannel = function() {
- var t = c.default.getAdvertisingChannel();
- t || (t = "1,a60cac090a6eb0,66b742dd0e502b64d783d9c66a9d30c4,b60cac0e43c0e1,b60cac0e4892fa,b60cac0e4d08e8,b60cac0e5754fc,b60cac0e524313");
- console.log("getAdvertiseChannel..." + t);
- var e = t.split(",");
- e[0];
- n.topon_android_appId = e[1];
- n.topon_android_appSecret = e[2];
- n.topon_rewardVideo_placementId = e[3];
- n.topon_inter_placementId = e[4];
- n.topon_native_placementId = e[5];
- n.topon_fullinter_placementId = e[6];
- n.topon_banner_placementId = e[7];
- };
- e.prototype.showVideo = function() {
- console.log("===[ShowVideoAd] ", d.ATRewardVideo.getInstance().hasAdReady());
- d.ATRewardVideo.getInstance().hasAdReady() || mk.tip.pop("广告加载中,请稍后");
- d.ATRewardVideo.getInstance().showAd();
- };
- e.prototype.watchVideoAdCallBack = function(t) {
- switch (t) {
- case r.WatchEnd:
- mk.ad.wacthAdSuccess();
- break;
- case r.PlayFail:
- case r.Cancel:
- mk.ad.watchAdFail();
- }
- };
- e.prototype.showInter = function(t) {
- void 0 === t && (t = 0);
- u.default.getInstance().showInter(t);
- };
- e.prototype.loadNative = function(t, e) {
- p.ATNative.getInstance().loadNative(t, e);
- };
- e.prototype.showNative = function(t) {
- p.ATNative.getInstance().showNative(t);
- };
- e.prototype.destroyNative = function() {
- p.ATNative.getInstance().destroyNative();
- };
- e.prototype.loadBanner = function(t) {
- void 0 === t && (t = !1);
- l.default.getInstance().loadBanner(t);
- };
- e.prototype.showBanner = function() {
- l.default.getInstance().showBanner();
- };
- e.prototype.destoryBanner = function() {
- l.default.getInstance().destroyBanner();
- };
- var n;
- e.topon_android_appId = "a5f8fa5f10c661";
- e.topon_android_appSecret = "66b742dd0e502b64d783d9c66a9d30c4";
- e.topon_rewardVideo_placementId = "b5f8fa6673e180";
- e.topon_inter_placementId = "b5f8fa77aa5262";
- e.topon_native_placementId = "b5f8fa77aa5262";
- e.topon_fullinter_placementId = "b5f8fa77aa5262";
- e.topon_banner_placementId = "b5f8fa77aa5262";
- return n = a([ f ], e);
- }(s.zgSingleton));
- n.default = y;
- (function(t) {
- t[t.WatchEnd = 0] = "WatchEnd";
- t[t.PlayFail = 1] = "PlayFail";
- t[t.Cancel = 2] = "Cancel";
- })(r = n.AdPlayStateType || (n.AdPlayStateType = {}));
- cc._RF.pop();
- }, {
- "../../../../system/JsbSystem": "JsbSystem",
- "../../zgSingleton": "zgSingleton",
- "./ATBanner": "ATBanner",
- "./ATInterstitial": "ATInterstitial",
- "./ATNative": "ATNative",
- "./ATRewardVideo": "ATRewardVideo"
- } ],
- ATiOSBannerJS: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "47c24W1IvZAuqKINopNo+IW", "ATiOSBannerJS");
- var n = t("ATiOSJS"), o = o || {
- loadBanner: function(t, e) {
- n.printJsLog("ATiOSBannerJS::loadBanner(" + t + ", " + e + ")");
- jsb.reflection.callStaticMethod("ATBannerAdWrapper", "loadBannerWithPlacementID:extra:", t, e);
- },
- setAdListener: function(t) {
- n.printJsLog("ATiOSBannerJS::setAdListener(" + t + ")");
- jsb.reflection.callStaticMethod("ATBannerAdWrapper", "setDelegates:", t);
- },
- hasAdReady: function(t) {
- n.printJsLog("ATiOSBannerJS::hasAdReady(" + t + ")");
- return jsb.reflection.callStaticMethod("ATBannerAdWrapper", "bannerReadyForPlacementID:", t);
- },
- checkAdStatus: function(t) {
- n.printJsLog("ATiOSBannerJS::checkAdStatus(" + t + ")");
- return jsb.reflection.callStaticMethod("ATBannerAdWrapper", "bannerCheckAdStatusForPlacementID:", t);
- },
- showAdInPosition: function(t, e) {
- n.printJsLog("ATiOSBannerJS::showAdInPosition(" + t + ", " + e + ")");
- jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:position:", t, null, e);
- },
- showAdInPositionAndScenario: function(t, e, o) {
- n.printJsLog("ATiOSBannerJS::showAdInPositionAndScenario(" + t + ", " + e + ", " + o + ")");
- jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:position:", t, o, e);
- },
- showAdInRectangle: function(t, e) {
- n.printJsLog("ATiOSBannerJS::showAdInRectangle(" + t + ", " + e + ")");
- jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:rect:", t, null, e);
- },
- showAdInRectangleAndScenario: function(t, e, o) {
- n.printJsLog("ATiOSBannerJS::showAdInRectangleAndScenario(" + t + ", " + e + ", " + o + ")");
- jsb.reflection.callStaticMethod("ATBannerAdWrapper", "showBannerWithPlacementID:scene:rect:", t, o, e);
- },
- removeAd: function(t) {
- n.printJsLog("ATiOSBannerJS::removeAd(" + t + ")");
- jsb.reflection.callStaticMethod("ATBannerAdWrapper", "removeAd:", t);
- },
- reShowAd: function(t) {
- n.printJsLog("ATiOSBannerJS::reShowAd(" + t + ")");
- jsb.reflection.callStaticMethod("ATBannerAdWrapper", "reShowAd:", t);
- },
- hideAd: function(t) {
- n.printJsLog("ATiOSBannerJS::hideAd(" + t + ")");
- jsb.reflection.callStaticMethod("ATBannerAdWrapper", "hideAd:", t);
- }
- };
- e.exports = o;
- cc._RF.pop();
- }, {
- ATiOSJS: "ATiOSJS"
- } ],
- ATiOSInterstitialJS: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "ddd933gNJFDEICb4s6+4eu5", "ATiOSInterstitialJS");
- var n = t("ATiOSJS"), o = "ATInterstitialAdWrapper", i = i || {
- loadInterstitial: function(t, e) {
- n.printJsLog("ATiOSInterstitialJS::loadInterstitial(" + t + ", " + e + ")");
- jsb.reflection.callStaticMethod(o, "loadInterstitialWithPlacementID:extra:", t, e);
- },
- setAdListener: function(t) {
- n.printJsLog("ATiOSInterstitialJS::setAdListener(" + t + ")");
- jsb.reflection.callStaticMethod(o, "setDelegates:", t);
- },
- hasAdReady: function(t) {
- n.printJsLog("ATiOSInterstitialJS::hasAdReady(" + t + ")");
- return jsb.reflection.callStaticMethod(o, "interstitialReadyForPlacementID:", t);
- },
- checkAdStatus: function(t) {
- n.printJsLog("ATiOSInterstitialJS::checkAdStatus(" + t + ")");
- return jsb.reflection.callStaticMethod(o, "checkAdStatus:", t);
- },
- setUserData: function() {
- cc.log("Android-setUserData");
- },
- showAd: function(t) {
- n.printJsLog("ATiOSInterstitialJS::showAd(" + t + ")");
- return jsb.reflection.callStaticMethod(o, "showInterstitialWithPlacementID:scene:", t, null);
- },
- showAdInScenario: function(t, e) {
- n.printJsLog("ATiOSInterstitialJS::showAd(" + t + ", " + e + ")");
- return jsb.reflection.callStaticMethod(o, "showInterstitialWithPlacementID:scene:", t, e);
- }
- };
- e.exports = i;
- cc._RF.pop();
- }, {
- ATiOSJS: "ATiOSJS"
- } ],
- ATiOSJS: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "f0cfbKk/aJOh7Arcces8e2L", "ATiOSJS");
- var n = n || {
- initSDK: function(t, e) {
- this.printJsLog("ATiOSJS::initSDK(" + t + "," + e + ")");
- jsb.reflection.callStaticMethod("ATSDKManager", "startWithAppID:appKey:", t, e);
- },
- initCustomMap: function(t) {
- this.printJsLog("ATiOSJS::initCustomMap(" + t + ")");
- jsb.reflection.callStaticMethod("ATSDKManager", "setCustomData:", t);
- },
- setPlacementCustomMap: function(t, e) {
- this.printJsLog("ATiOSJS::setPlacementCustomMap(" + t + ", " + e + ")");
- jsb.reflection.callStaticMethod("ATSDKManager", "setCustomData:forPlacementID:", e, t);
- },
- setGDPRLevel: function(t) {
- this.printJsLog("ATiOSJS::setGDPRLevel(" + t + ")");
- jsb.reflection.callStaticMethod("ATSDKManager", "setDataConsent:", t);
- },
- getGDPRLevel: function() {
- this.printJsLog("ATiOSJS::getGDPRLevel()");
- return jsb.reflection.callStaticMethod("ATSDKManager", "dataConsent");
- },
- getUserLocation: function(t) {
- this.printJsLog("ATiOSJS::getUserLocation(" + t + ")");
- jsb.reflection.callStaticMethod("ATSDKManager", "getUserLocationWithCallback:", t);
- },
- showGDPRAuth: function() {
- this.printJsLog("ATiOSJS::showGDPRAuth()");
- jsb.reflection.callStaticMethod("ATSDKManager", "presentDataConsentDialog");
- },
- setLogDebug: function(t) {
- this.printJsLog("ATiOSJS::setLogDebug(" + t + ")");
- jsb.reflection.callStaticMethod("ATSDKManager", "setDebugLog:", t);
- },
- printJsLog: function(t) {
- null != t && null != t && jsb.reflection.callStaticMethod("ATJSBridge", "log:", t);
- },
- deniedUploadDeviceInfo: function(t) {
- this.printJsLog("ATiOSJS::deniedUploadDeviceInfo(" + t + ")");
- jsb.reflection.callStaticMethod("ATSDKManager", "deniedUploadDeviceInfo:", t);
- }
- };
- e.exports = n;
- cc._RF.pop();
- }, {} ],
- ATiOSNativeJS: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "2aa642BjFFKhJ2kRi8CNM1Z", "ATiOSNativeJS");
- var n = t("ATiOSJS"), o = o || {
- loadNative: function(t, e) {
- n.printJsLog("ATiOSBannerJS::loadNative(" + t + ", " + e + ")");
- jsb.reflection.callStaticMethod("ATNativeAdWrapper", "loadNativeWithPlacementID:extra:", t, e);
- },
- setAdListener: function(t) {
- n.printJsLog("ATiOSNativeJS::setAdListener(" + t + ")");
- jsb.reflection.callStaticMethod("ATNativeAdWrapper", "setDelegates:", t);
- },
- hasAdReady: function(t) {
- n.printJsLog("ATiOSNativeJS::hasAdReady(" + t + ")");
- return jsb.reflection.callStaticMethod("ATNativeAdWrapper", "nativeReadyForPlacementID:", t);
- },
- checkAdStatus: function(t) {
- n.printJsLog("ATiOSNativeJS::checkAdStatus(" + t + ")");
- return jsb.reflection.callStaticMethod("ATNativeAdWrapper", "nativeCheckAdStatusForPlacementID:", t);
- },
- showAd: function(t, e) {
- n.printJsLog("ATiOSNativeJS::showAd(" + t + ", " + e + ")");
- jsb.reflection.callStaticMethod("ATNativeAdWrapper", "showNativeWithPlacementID:scene:metrics:", t, null, e);
- },
- showAdInScenario: function(t, e, o) {
- n.printJsLog("ATiOSNativeJS::showAdInScenario(" + t + ", " + e + ", " + o + ")");
- jsb.reflection.callStaticMethod("ATNativeAdWrapper", "showNativeWithPlacementID:scene:metrics:", t, o, e);
- },
- removeAd: function(t) {
- n.printJsLog("ATiOSNativeJS::removeAd(" + t + ")");
- jsb.reflection.callStaticMethod("ATNativeAdWrapper", "removeNativeWithPlacementID:", t);
- }
- };
- e.exports = o;
- cc._RF.pop();
- }, {
- ATiOSJS: "ATiOSJS"
- } ],
- ATiOSRewardedVideoJS: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "f7d79fQ7d5M5KoEWeXdUNsV", "ATiOSRewardedVideoJS");
- var n = t("ATiOSJS"), o = o || {
- loadRewardedVideo: function(t, e) {
- n.printJsLog("ATiOSRewardedVideoJS::loadRewardedVideo(" + t + ", " + e + ")");
- jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "loadRewardedVideoWithPlacementID:extra:", t, e);
- },
- setAdListener: function(t) {
- n.printJsLog("ATiOSRewardedVideoJS::setAdListener(" + t + ")");
- jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "setDelegates:", t);
- },
- hasAdReady: function(t) {
- n.printJsLog("ATiOSRewardedVideoJS::hasAdReady(" + t + ")");
- return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "rewardedVideoReadyForPlacementID:", t);
- },
- checkAdStatus: function(t) {
- n.printJsLog("ATiOSRewardedVideoJS::checkAdStatus(" + t + ")");
- return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "checkAdStatus:", t);
- },
- setUserData: function() {
- cc.log("Android-setUserData");
- },
- showAd: function(t) {
- n.printJsLog("ATiOSRewardedVideoJS::showAd(" + t + ")");
- return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "showRewardedVideoWithPlacementID:scene:", t, null);
- },
- showAdInScenario: function(t, e) {
- n.printJsLog("ATiOSRewardedVideoJS::showAdInScenario(" + t + ", " + e + ")");
- return jsb.reflection.callStaticMethod("ATRewardedVideoWrapper", "showRewardedVideoWithPlacementID:scene:", t, e);
- }
- };
- e.exports = o;
- cc._RF.pop();
- }, {
- ATiOSJS: "ATiOSJS"
- } ],
- AdData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "751e2dfcNBG6piUAOBYgaGw", "AdData");
- var o = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, i = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.AdFun = n.AdData = void 0;
- var a, r = t("./GameData"), c = function() {
- function t() {
- this.placementId = "";
- this.adunit_format = "";
- this.network_type = "";
- this.network_placement_id = "";
- this.network_firm_id = "";
- this.adsource_id = "";
- this.adsource_index = "";
- this.adsource_price = "100";
- this.adsource_isheaderbidding = "";
- this.publisher_revenue = "";
- this.precision = "";
- this.ecpm_level = "";
- this.adType = 1;
- this._watchNumToday = 0;
- }
- Object.defineProperty(t.prototype, "watchNumToday", {
- get: function() {
- return this._watchNumToday;
- },
- set: function(t) {
- this._watchNumToday = t;
- },
- enumerable: !1,
- configurable: !0
- });
- t.prototype.init = function() {
- this.adMap = new Map();
- this.adMap.set(a.bubble, gData.reward);
- this.adMap.set(a.checkpoint, gData.reward);
- this.adMap.set(a.settlement, gData.reward);
- this.adMap.set(a.turntable, gData.turnable);
- this.adMap.set(a.sign, gData.sign);
- this.adMap.set(a.bigCash, gData.blessingBag);
- };
- t.prototype.checkAdMax = function() {
- this.watchNumToday++;
- var t = parseInt(gData.gameData.configs.ServerConfig.VideoTimesMax);
- if (this.watchNumToday > t) {
- mk.tip.pop("今日看广告获得奖励的次数已用完", 1);
- mk.ui.closeAllUI();
- return !0;
- }
- return !1;
- };
- t.prototype.updateData = function(t, e) {
- mk.console.logSingle("updateADData:" + t, e);
- this.placementId = t;
- this.adunit_format = e.adunit_format;
- this.network_type = e.network_type;
- this.network_placement_id = e.network_placement_id;
- this.network_firm_id = e.network_firm_id;
- this.adsource_id = e.adsource_id;
- this.adsource_index = e.adsource_index;
- this.adsource_price = e.adsource_price;
- this.adsource_isheaderbidding = e.adsource_isheaderbidding;
- this.publisher_revenue = e.publisher_revenue;
- this.precision = e.precision;
- this.ecpm_level = e.ecpm_level;
- };
- t.prototype.watchVideo = function(t) {
- return o(this, void 0, void 0, function() {
- var e, n, o, a;
- return i(this, function(i) {
- switch (i.label) {
- case 0:
- this.ad_subType = t;
- e = {
- imei: gData.appData.machineInfo.imei,
- idfa: gData.appData.machineInfo.idfa,
- oaid: gData.appData.machineInfo.oaid,
- uin: gData.loginData.uin,
- version: gData.appData.appVersion,
- tf_channel: gData.appData.tfChannel,
- destoon_ad_place: this.placementId,
- ad_type: 1,
- adunit_format: this.adunit_format,
- network_type: this.network_type,
- network_placement_id: this.network_placement_id,
- network_firm_id: this.network_firm_id,
- adsource_id: this.adsource_id,
- adsource_index: this.adsource_index,
- adsource_price: this.adsource_price,
- adsource_isheaderbidding: this.adsource_isheaderbidding,
- publisher_revenue: this.publisher_revenue,
- precision_ecpm: this.precision,
- ecpm_level: this.ecpm_level,
- cfg_version: gData.appData.version,
- adsource_ecpm: gData.gameData.adShowConfig.average_ecpm,
- ad_sbuType: this.ad_subType
- };
- mk.console.logSingle("updateVideoData:", e);
- return [ 4, mk.http.sendData("updateVideo", e) ];
- case 1:
- if (0 != (n = i.sent()).errcode) return [ 2 ];
- o = gData.gameData.getProp(r.GameProp.videoTimes);
- gData.gameData.setProp(r.GameProp.videoTimes, ++o);
- o < 5 && mk.data.sendXYEvent("video_end_" + o, "第" + o + "次看视频");
- (a = this.adMap.get(this.ad_subType)) && a.setAdData(n.data);
- return [ 2 ];
- }
- });
- });
- };
- t.prototype.updateADLog = function(t, e, n) {
- void 0 === n && (n = null);
- var o;
- o = n ? {
- imei: gData.appData.machineInfo.imei,
- idfa: gData.appData.machineInfo.idfa,
- oaid: gData.appData.machineInfo.oaid,
- uin: gData.loginData.uin,
- version: gData.appData.appVersion,
- tf_channel: gData.appData.tfChannel,
- destoon_ad_place: e,
- ad_type: t,
- adunit_format: n.adunit_format,
- network_type: n.network_type,
- network_placement_id: n.network_placement_id,
- network_firm_id: n.network_firm_id,
- adsource_id: n.adsource_id,
- adsource_index: n.adsource_index,
- adsource_price: n.adsource_price,
- adsource_isheaderbidding: n.adsource_isheaderbidding,
- publisher_revenue: n.publisher_revenue,
- precision: n.precision,
- ecpm_level: n.ecpm_level
- } : {
- imei: gData.appData.machineInfo.imei,
- idfa: gData.appData.machineInfo.idfa,
- oaid: gData.appData.machineInfo.oaid,
- uin: gData.loginData.uin,
- version: gData.appData.appVersion,
- tf_channel: gData.appData.tfChannel,
- destoon_ad_place: e,
- ad_type: t,
- adunit_format: "",
- network_type: "",
- network_placement_id: "",
- network_firm_id: "",
- adsource_id: "",
- adsource_index: "",
- adsource_price: "",
- adsource_isheaderbidding: "",
- publisher_revenue: "",
- precision: "",
- ecpm_level: ""
- };
- mk.http.sendData("updateADLog", o);
- };
- return t;
- }();
- n.AdData = c;
- (function(t) {
- t[t.bubble = 1] = "bubble";
- t[t.checkpoint = 2] = "checkpoint";
- t[t.settlement = 3] = "settlement";
- t[t.turntable = 4] = "turntable";
- t[t.sign = 5] = "sign";
- t[t.bigCash = 6] = "bigCash";
- })(a = n.AdFun || (n.AdFun = {}));
- cc._RF.pop();
- }, {
- "./GameData": "GameData"
- } ],
- AdSystem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "1466aRVSRRPbZv+MJLJVOZg", "AdSystem");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var o = t("../../game/data/GameData"), i = function() {
- function t(t) {
- this.adSdk = null;
- this.ifShowAd = !0;
- this.videoAdType = o.VideoAdType.Null;
- this.videoAdcallBack = null;
- this.last_time_stamp = 0;
- this.adSdk = t;
- }
- t.prototype.init = function() {
- cc.sys.os == cc.sys.OS_ANDROID ? this.ifShowAd = !0 : this.ifShowAd = !1;
- this.adSdk.initSDK();
- };
- t.prototype.watchAd = function(t) {
- if (!this.isAdCooling()) {
- this.videoAdcallBack = t;
- this.ifShowAd ? cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.showVideo() : cc.sys.os == cc.sys.OS_IOS && jsb.reflection.callStaticMethod("AppController", "showVideo", "")) : this.wacthAdSuccess();
- }
- };
- t.prototype.watchAdFail = function() {
- mk.console.log("=== watchAdFail");
- this.videoAdcallBack(!1);
- };
- t.prototype.watchAdCancel = function() {
- mk.console.log("=== watchAdCancel");
- this.videoAdcallBack(!1);
- };
- t.prototype.wacthAdSuccess = function(t) {
- var e = this;
- void 0 === t && (t = "");
- mk.console.log("=== wacthAdSuccess");
- mk.ui.scheduleOnce(function() {
- gData.adData.checkAdMax() || e.videoAdcallBack(!0);
- e.initLastTimeStamp();
- }, 0);
- };
- t.prototype.showNative = function(t) {
- void 0 === t && (t = 4);
- this.ifShowAd && cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.showNative(t) : (cc.sys.os,
- cc.sys.OS_IOS));
- };
- t.prototype.destroyNativeAd = function() {
- this.ifShowAd && cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? this.adSdk.destroyNative() : (cc.sys.os,
- cc.sys.OS_IOS));
- };
- t.prototype.initLastTimeStamp = function() {
- var t = new Date();
- this.last_time_stamp = t.getTime();
- };
- t.prototype.isAdCooling = function() {
- var t = new Date().getTime() - this.last_time_stamp;
- if (t <= 5e3) {
- var e = 6 - Math.ceil(t / 1e3);
- mk.tip.pop("当前看视频太频繁了,请" + e + "秒后再试");
- return !0;
- }
- return !1;
- };
- t.prototype.showBanner = function() {
- this.ifShowAd && this.adSdk.showBanner();
- };
- t.prototype.destoryBanner = function() {
- this.ifShowAd && this.adSdk.destoryBanner();
- };
- t.prototype.showInterAd = function(t) {
- this.ifShowAd && this.adSdk.showInter(t);
- };
- t.prototype.checkShowInterByChance = function() {
- if (this.ifShowAd && gData.gameData.adShowConfig) {
- var t = gData.gameData.configs.ServerConfig.interOpenChance;
- t || (t = .4);
- Math.random() <= t ? this.showInterAd(0) : gData.moreGame.popMoreGamePopNode();
- }
- };
- return t;
- }();
- n.default = i;
- cc._RF.pop();
- }, {
- "../../game/data/GameData": "GameData"
- } ],
- AliRiskManager: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "5c10coBu/tGxJOgCI9+ITwp", "AliRiskManager");
- var o = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var i = t("../../system/JsbSystem"), a = cc._decorator.ccclass, r = function() {
- function t() {
- this.getRiskCode = !1;
- this.deviceToken = "";
- }
- t.prototype.init = function() {
- this.deviceToken = i.default.getAliRiskDeviceToken();
- this.getRiskCode = !0;
- console.log("Ali_deviceToken", this.deviceToken);
- };
- return o([ a ], t);
- }();
- n.default = r;
- cc._RF.pop();
- }, {
- "../../system/JsbSystem": "JsbSystem"
- } ],
- AniFinishDestroy: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "042aabubkFC6JdQ3E4GwCQf", "AniFinishDestroy");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = (c.property,
- function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.ani = null;
- e.callBack = null;
- return e;
- }
- e.prototype.onLoad = function() {
- this.ani = this.node.getComponent(cc.Animation);
- this.ani.on("finished", this.onAniPlayFinished, this);
- };
- e.prototype.start = function() {};
- e.prototype.init = function(t) {
- void 0 === t && (t = null);
- if (!this.ani) {
- this.ani = this.node.getComponent(cc.Animation);
- this.ani.on("finished", this.onAniPlayFinished, this);
- }
- this.callBack = t;
- this.ani.play();
- };
- e.prototype.onAniPlayFinished = function() {
- this.callBack && this.callBack();
- this.recycle();
- };
- e.prototype.recycle = function() {
- r.default.Inst.recyclePoolPrefab(r.NODEPOOLPREFABTYPE[this.node.name], this.node);
- };
- return a([ s ], e);
- }(cc.Component));
- n.default = l;
- cc._RF.pop();
- }, {
- "../../mgr/PoolMgr": "PoolMgr"
- } ],
- AniOpenPanel: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "398dfTzxmpCYpSvJaKpkFk+", "AniOpenPanel");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- e.prototype.onEnable = function() {
- this.node.scale = 0;
- cc.tween(this.node).to(.3, {
- scale: 1
- }, {
- easing: "backOut"
- }).start();
- };
- return a([ c ], e);
- }(cc.Component));
- n.default = s;
- cc._RF.pop();
- }, {} ],
- AppData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "e27c7/NPlhBwKw/xsEzZINE", "AppData");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.UpdateState = n.AppData = void 0;
- var o, i = function() {
- function t() {
- this.getDeviceInfoCompelete = !1;
- this.appNameBugly = "3xiao";
- this.appVersion = "";
- this.tfChannel = "";
- this.version = "";
- this.UA = "";
- this.IP = "";
- this.appId = "";
- this.umengChannel = "";
- this.deviceType = "";
- this.androidVersion = "";
- this.mac = "";
- this.machineInfo = {
- android_id: "",
- idfa: "",
- imei: "",
- mac: "",
- oaid: "",
- umid: "",
- UA: ""
- };
- this.updateState = o.None;
- this.updatePercent = 0;
- }
- t.prototype.updateDeviceInfo = function(t) {
- var e = t.split("#");
- this.machineInfo.android_id = e[0];
- this.machineInfo.idfa = e[1];
- this.machineInfo.imei = e[2];
- this.machineInfo.mac = this.mac = e[3];
- this.machineInfo.oaid = e[4];
- this.machineInfo.umid = e[5];
- this.machineInfo.UA = e[11];
- this.tfChannel = e[6];
- this.appVersion = e[7];
- this.umengChannel = e[8];
- this.deviceType = e[9];
- this.androidVersion = e[10];
- this.IP = e[12];
- this.getDeviceInfoCompelete = !0;
- console.log("===[this.tfChannel", this.tfChannel);
- console.log("===[this.appVersion", this.appVersion);
- console.log("===[this.mac", this.mac);
- };
- t.prototype.init = function() {};
- return t;
- }();
- n.AppData = i;
- (function(t) {
- t[t.None = -1] = "None";
- t[t.CheckForce = 0] = "CheckForce";
- t[t.ForceUpdateFinish = 1] = "ForceUpdateFinish";
- t[t.CheckHot = 2] = "CheckHot";
- t[t.IsUpdate = 3] = "IsUpdate";
- t[t.UpdateFinish = 4] = "UpdateFinish";
- })(o = n.UpdateState || (n.UpdateState = {}));
- cc._RF.pop();
- }, {} ],
- ArtNum: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "b818cn3ZlhCA589MCaalmqs", "ArtNum");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.ARTNUM = void 0;
- var r, c = cc._decorator, s = c.ccclass, l = c.property;
- (function(t) {
- t[t.Null = 0] = "Null";
- t[t.LevelNum = 1] = "LevelNum";
- t[t.TargetScore = 2] = "TargetScore";
- t[t.GetScore = 3] = "GetScore";
- t[t.EliminateScore = 4] = "EliminateScore";
- t.Test = "sdasdsadasds";
- t.you = "asdadsadsadasdsadsada";
- })(r = n.ARTNUM || (n.ARTNUM = {}));
- var u = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.artNum = null;
- e.url = "artNum/";
- return e;
- }
- e.prototype.start = function() {};
- e.prototype.init = function(t) {
- this.url = "game/texture/artNum/" + r[this.artNum] + "/";
- var e = t.toString().split(""), n = this.node.children;
- if (e.length > this.node.childrenCount) for (var o = 0; o < e.length; o++) {
- var i = e[o];
- if (c = n[o]) {
- 0 == c.active && (c.active = !0);
- var a = c.getComponent(cc.Sprite);
- this.loadSprite("" + this.url + i, a);
- } else {
- a = (c = new cc.Node()).addComponent(cc.Sprite);
- this.loadSprite("" + this.url + i, a);
- this.node.addChild(c);
- }
- } else for (o = 0; o < n.length; o++) {
- var c = n[o];
- if (o < e.length) {
- i = e[o];
- if (c) {
- 0 == c.active && (c.active = !0);
- a = c.getComponent(cc.Sprite);
- this.loadSprite("" + this.url + i, a);
- } else {
- a = (c = new cc.Node()).addComponent(cc.Sprite);
- this.loadSprite("" + this.url + i, a);
- this.node.addChild(c);
- }
- } else c && (c.active = !1);
- }
- };
- e.prototype.loadSprite = function(t, e) {
- mk.loader.load(t, cc.SpriteFrame).then(function(t) {
- e.spriteFrame = t;
- });
- };
- a([ l({
- type: cc.Enum(r),
- displayName: "艺术字类型",
- tooltip: "需要选择的艺术字类型",
- serializable: !0
- }) ], e.prototype, "artNum", void 0);
- return a([ s ], e);
- }(cc.Component);
- n.default = u;
- cc._RF.pop();
- }, {} ],
- AudioSystem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "23fb49P+89BR4lApOFB9Q88", "AudioSystem");
- var o = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, i = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var a = function() {
- function t() {
- this._switchMusic = !0;
- this._switchEffect = !0;
- this._effectVolume = 1;
- this._musicVolume = 1;
- this._map_audio = new Map();
- }
- t.prototype.init = function() {
- this._switchEffect = !("false" == cc.sys.localStorage.getItem("switchEffect"));
- this._switchMusic = !("false" == cc.sys.localStorage.getItem("switchMusic"));
- };
- t.prototype.playMusic = function(t, e) {
- void 0 === e && (e = !0);
- return o(this, void 0, void 0, function() {
- var n;
- return i(this, function(o) {
- switch (o.label) {
- case 0:
- if (!this._switchMusic) return [ 2 ];
- if (this._bg_audio) return [ 3, 2 ];
- n = this;
- return [ 4, mk.loader.load(r + t, cc.AudioClip) ];
- case 1:
- n._bg_audio = o.sent();
- o.label = 2;
- case 2:
- cc.audioEngine.playMusic(this._bg_audio, e);
- return [ 2 ];
- }
- });
- });
- };
- t.prototype.playEffect = function(t, e) {
- void 0 === e && (e = !1);
- return o(this, void 0, void 0, function() {
- var n;
- return i(this, function(o) {
- switch (o.label) {
- case 0:
- return this._switchEffect ? (n = this._map_audio.get(t)) ? [ 3, 2 ] : [ 4, mk.loader.load(r + t, cc.AudioClip) ] : [ 3, 3 ];
- case 1:
- n = o.sent();
- this._map_audio.set(t, n);
- o.label = 2;
- case 2:
- return [ 2, cc.audioEngine.playEffect(n, e) ];
- case 3:
- return [ 2, null ];
- }
- });
- });
- };
- t.prototype.stopEffect = function(t) {
- cc.audioEngine.stopEffect(t);
- };
- t.prototype.switchEffectFunc = function() {
- this._switchEffect = !this._switchEffect;
- this._switchEffect || this.setStopAllEffect();
- cc.sys.localStorage.setItem("switchEffect", this._switchEffect.toString());
- };
- t.prototype.getSwitchEffect = function() {
- return this._switchEffect;
- };
- t.prototype.setEffectVolume = function(t) {
- this._effectVolume = t;
- cc.audioEngine.setEffectsVolume(t);
- cc.sys.localStorage.setItem("audio", JSON.stringify({
- effect: this._effectVolume,
- music: this._musicVolume
- }));
- };
- t.prototype.getEffectVolume = function() {
- return cc.audioEngine.getEffectsVolume();
- };
- t.prototype.setResumeAllEffect = function() {
- this._switchEffect && cc.audioEngine.resumeAllEffects();
- };
- t.prototype.setStopAllEffect = function() {
- cc.audioEngine.stopAllEffects();
- };
- t.prototype.switchMusicFunc = function() {
- this._switchMusic = !this._switchMusic;
- this._switchMusic ? this.setResumeMusic() : this.setPauseMusic();
- cc.sys.localStorage.setItem("switchMusic", this._switchMusic.toString());
- };
- t.prototype.getSwitchMusic = function() {
- return this._switchMusic;
- };
- t.prototype.setPauseMusic = function() {
- cc.audioEngine.pauseMusic();
- };
- t.prototype.setResumeMusic = function() {
- this._switchMusic && cc.audioEngine.resumeMusic();
- };
- t.prototype.stopMusic = function() {
- cc.audioEngine.stopMusic();
- };
- t.prototype.setMusicVolume = function(t) {
- this._musicVolume = t;
- cc.audioEngine.setMusicVolume(t);
- cc.sys.localStorage.setItem("audio", JSON.stringify({
- effect: this._effectVolume,
- music: this._musicVolume
- }));
- };
- t.prototype.getMusicVolume = function() {
- return cc.audioEngine.getMusicVolume();
- };
- t.prototype.isMusicPlaying = function() {
- return cc.audioEngine.isMusicPlaying();
- };
- t.prototype.releaseAudio = function(t) {
- t ? cc.audioEngine.uncache(t) : cc.error("【音频】资源" + t + "不存在, 释放失败");
- };
- t.prototype.stopAllAudio = function() {
- cc.audioEngine.stopAll();
- };
- t.prototype.releaseAllAudio = function() {
- cc.audioEngine.uncacheAll();
- };
- return t;
- }();
- n.default = a;
- var r = "music/";
- cc._RF.pop();
- }, {} ],
- BangsFit: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "173866Ll/lFN6TBCxDmQuqC", "BangsFit");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- e.prototype.onLoad = function() {
- this._AdaptLeftAndRight();
- };
- e.prototype._AdaptLeftAndRight = function() {
- var t = this.node.getComponent(cc.Widget);
- if (t && this.IsBigScreenRatio()) {
- t.top = 65;
- t.bottom = 65;
- }
- };
- e.prototype.IsBigScreenRatio = function() {
- return this.GetWinHeightWidthRatio() >= 1.86;
- };
- e.prototype.GetWinHeightWidthRatio = function() {
- return cc.winSize.height >= cc.winSize.width ? cc.winSize.height / cc.winSize.width : cc.winSize.width / cc.winSize.height;
- };
- return a([ c ], e);
- }(cc.Component));
- n.default = s;
- cc._RF.pop();
- }, {} ],
- BlessingBagData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "a2b69L/oGRH25IYL5gdm97o", "BlessingBagData");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, r = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.BlessingBagData = void 0;
- var c = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e._videoRbData = null;
- e.isPlayAniUpdate = !1;
- e.init_videoRbData = !1;
- e.rbType = 0;
- e.rbNum = 0;
- e.init_openRb = !1;
- e.bigRbNum = 0;
- e.taskRbId = 0;
- e.taskRbNum = 0;
- e.adsource_id_value = "";
- return e;
- }
- Object.defineProperty(e.prototype, "videoRbData", {
- get: function() {
- return this._videoRbData;
- },
- set: function(t) {
- this._videoRbData = t;
- this.init_videoRbData = !0;
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.init = function() {
- this.isPlayAniUpdate = !1;
- this.videoRbData = gData.gameData.gameData.userTuCaoInfo;
- console.log("----------------\x3e", this.videoRbData);
- };
- e.prototype.setAdData = function(e) {
- t.prototype.setAdData.call(this, e);
- this.UpdateVideoProgress(e);
- };
- e.prototype.OpenTaskRbPanel = function(t, e, n, o) {
- this.taskRbId = e;
- this.taskRbNum = t;
- this.rbType = n;
- this.rbNum = o;
- this.init_openRb = !0;
- };
- e.prototype.UpdateVideoProgress = function(t) {
- return a(this, void 0, void 0, function() {
- return r(this, function(e) {
- switch (e.label) {
- case 0:
- return [ 4, mk.time.WaitForSeconds(.5) ];
- case 1:
- e.sent();
- this.isPlayAniUpdate = !0;
- this.videoRbData = t.data;
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.HttpNoAdProgress = function() {
- return a(this, void 0, void 0, function() {
- var t, e;
- return r(this, function(n) {
- switch (n.label) {
- case 0:
- t = {};
- return [ 4, mk.http.sendData("tuCaoRedMoney/noNeedVideo", t) ];
- case 1:
- if (0 != (e = n.sent()).errcode) return [ 2 ];
- this.isPlayAniUpdate = !0;
- this.videoRbData = e.data.UserRedMoneyInfo;
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.HttpCashBig = function() {
- return a(this, void 0, void 0, function() {
- var t, e;
- return r(this, function(n) {
- switch (n.label) {
- case 0:
- t = {};
- return [ 4, mk.http.sendData("redMoneyVideoCash", t) ];
- case 1:
- if (0 != (e = n.sent()).errcode) return [ 2, null ];
- this.isPlayAniUpdate = !1;
- this.videoRbData = e.data.UserRedMoneyInfo;
- return [ 2, e ];
- }
- });
- });
- };
- e.prototype.HttpCashTask = function() {
- return a(this, void 0, void 0, function() {
- var t, e, n;
- return r(this, function(o) {
- switch (o.label) {
- case 0:
- t = {
- redMoneyId: this.taskRbId
- };
- return [ 4, mk.http.sendData("tuCaoRedMoney/gearCash", t) ];
- case 1:
- if (0 != (e = o.sent()).errcode) return [ 2, null ];
- this.isPlayAniUpdate = !1;
- this.videoRbData = e.data.UserRedMoneyInfo;
- n = Math.round(100 * gData.blessingBag.taskRbNum);
- gData.receiptNotice.receip_rmb = n;
- gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
- mk.ui.openPanel("module/receiptNotice/receiptNotice");
- return [ 2, e ];
- }
- });
- });
- };
- e.prototype.HttpInitAdRbData = function() {
- return a(this, void 0, void 0, function() {
- var t, e;
- return r(this, function(n) {
- switch (n.label) {
- case 0:
- t = {};
- return [ 4, mk.http.sendData("tuCaoRedMoney/initUserInfo", t) ];
- case 1:
- if (0 != (e = n.sent()).errcode) return [ 2 ];
- this.isPlayAniUpdate = !1;
- this.videoRbData = e.data.UserRedMoneyInfo;
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.redPoint = function() {
- return !1;
- };
- return e;
- }(t("../../../mk/data/Data").Data);
- n.BlessingBagData = c;
- cc._RF.pop();
- }, {
- "../../../mk/data/Data": "Data"
- } ],
- BlessingBagItem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "b6615dqhWxFXJgvv1DTd49O", "BlessingBagItem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.txtNum = null;
- e.txtTip = null;
- e.txtSlider = null;
- e.slider = null;
- e.btnCashed = null;
- e.btnCanCash = null;
- e.btnNoFinish = null;
- e.data = null;
- e.lastNum = 0;
- e.totalTime = 0;
- e.deltaTime = 0;
- e.delta = 0;
- e.curValue = 0;
- e.curTime = 0;
- e.isPlayAni = !1;
- return e;
- }
- e.prototype.setItemData = function(t) {
- return r(this, void 0, void 0, function() {
- return c(this, function() {
- this.Init(t.data, t.isPlayAniUpdate, t.isPlayInitAni);
- return [ 2 ];
- });
- });
- };
- e.prototype.Init = function(t, e, n) {
- var o = this;
- void 0 === e && (e = !1);
- void 0 === n && (n = !1);
- this.data = t;
- this.txtNum.string = t.redMoney + "元";
- this.txtTip.string = "<outline color=#8C1010 width=4><color=#FFE00C>" + t.redMoney + "元</c>提现进度</outline>";
- this.btnCashed.active = 2 == t.status;
- this.btnCanCash.active = 1 == t.status;
- this.btnNoFinish.active = 0 == t.status;
- if (e) this.scheduleOnce(function() {
- o.PlayNumAni(.3);
- cc.tween(o.txtSlider.node).to(.15, {
- scale: 1.2
- }).to(.15, {
- scale: 1
- }).start();
- }, .3); else if (n) this.scheduleOnce(function() {
- o.PlayInitNumAni(.2);
- cc.tween(o.txtSlider.node).to(.1, {
- scale: 1.2
- }).to(.1, {
- scale: 1
- }).start();
- }, .3); else {
- this.txtSlider.string = t.progressRate + "%";
- this.slider.fillRange = .01 * t.progressRate;
- this.lastNum = t.progressRate;
- }
- };
- e.prototype.update = function(t) {
- this.UpdateAniFrame(t);
- };
- e.prototype.PlayNumAni = function(t) {
- this.totalTime = t;
- this.delta = (this.data.progressRate - this.lastNum) / t;
- this.deltaTime = t / (this.data.progressRate - this.lastNum);
- this.curValue = this.lastNum;
- this.curTime = 0;
- this.isPlayAni = !0;
- };
- e.prototype.PlayInitNumAni = function(t) {
- this.totalTime = t;
- this.delta = (this.data.progressRate - 0) / t;
- this.deltaTime = t / (this.data.progressRate - 0);
- this.curValue = 0;
- this.curTime = 0;
- this.isPlayAni = !0;
- };
- e.prototype.UpdateAni = function() {
- if (this.curTime < this.totalTime) {
- this.curTime += this.deltaTime;
- this.curValue += this.delta * this.deltaTime;
- this.curValue >= this.data.progressRate && (this.curValue = this.data.progressRate);
- } else {
- this.curTime = this.totalTime;
- this.unschedule(this.UpdateAni);
- this.curValue = this.data.progressRate;
- this.lastNum = this.data.progressRate;
- }
- this.txtSlider.string = this.curValue.toFixed(2) + "%";
- this.slider.fillRange = .01 * this.curValue;
- };
- e.prototype.UpdateAniFrame = function(t) {
- if (this.isPlayAni) {
- if (this.curTime < this.totalTime) {
- this.curTime += t;
- this.curValue += this.delta * t;
- if (this.curValue >= this.data.progressRate) {
- this.isPlayAni = !1;
- this.curValue = this.data.progressRate;
- this.lastNum = this.data.progressRate;
- }
- } else {
- this.isPlayAni = !1;
- this.curTime = this.totalTime;
- this.curValue = this.data.progressRate;
- this.lastNum = this.data.progressRate;
- }
- this.txtSlider.string = this.curValue.toFixed(2) + "%";
- this.slider.fillRange = .01 * this.curValue;
- }
- };
- e.prototype.OnExit = function() {
- this.txtSlider.string = "0.00%";
- this.slider.fillRange = 0;
- };
- e.prototype.Click_CashedBtn = function() {
- mk.audio.playEffect("button");
- console.log("clicked cashed");
- mk.tip.pop("该红包已提现");
- };
- e.prototype.Click_CanCashBtn = function() {
- mk.audio.playEffect("button");
- console.log("clicked canCash");
- gData.blessingBag.OpenTaskRbPanel(this.data.redMoney, this.data.redMoneyId, 2, this.data.redMoney);
- };
- e.prototype.Click_NoFinishBtn = function() {
- mk.audio.playEffect("button");
- console.log("clicked noFinish");
- mk.tip.pop("提现进度不足");
- };
- a([ u(cc.Label) ], e.prototype, "txtNum", void 0);
- a([ u(cc.RichText) ], e.prototype, "txtTip", void 0);
- a([ u(cc.Label) ], e.prototype, "txtSlider", void 0);
- a([ u(cc.Sprite) ], e.prototype, "slider", void 0);
- a([ u(cc.Node) ], e.prototype, "btnCashed", void 0);
- a([ u(cc.Node) ], e.prototype, "btnCanCash", void 0);
- a([ u(cc.Node) ], e.prototype, "btnNoFinish", void 0);
- return a([ l ], e);
- }(cc.Component);
- n.default = p;
- cc._RF.pop();
- }, {} ],
- BlessingBag: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "bb002IlT3tILa3522JfGQ79", "BlessingBag");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = t("../../../mk/system/JsbSystem"), l = t("../../data/AdData"), u = t("../../data/GameData"), p = t("../../data/module/CashProData"), d = cc._decorator, h = d.ccclass, f = d.property, y = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.txtBigNum = null;
- e.txtAddEft = null;
- e.txtTipAd = null;
- e.txtBigDelta = null;
- e.txtBigTask = null;
- e.txtRemaindAdNum = null;
- e.blassingBagItem = null;
- e.itemContent = null;
- e.btnCash = null;
- e.btnAd = null;
- e.aniBigAdBtn = null;
- e.adIcon = null;
- e.aniBtnAd = null;
- e.rbOpenBtn = null;
- e.nodeRb = null;
- e.txtRbNum = null;
- e.testNode = null;
- e.inputBox = null;
- e.rbPanelType = 0;
- e.adrbArray = [];
- e.isPlayInitAni = !0;
- e.isPlayAni = !1;
- e.targetProgress = 0;
- e.delta = 0;
- e.curValue = 0;
- e.curTime = 0;
- e.totalTime = 0;
- e.lastNum = 0;
- e.canOpen = !0;
- return e;
- }
- e.prototype.onLoad = function() {
- this.testNode.active = 1 == gData.gameData.configs.ServerConfig.VideoRedBagEmpty;
- };
- e.prototype.onEnable = function() {
- this.isPlayAni = !1;
- this.isPlayInitAni = !0;
- gData.blessingBag.isPlayAniUpdate = !1;
- gData.blessingBag.init_videoRbData = !0;
- };
- e.prototype.update = function(t) {
- this.PlayMoneyAniUpdate(t);
- gData.blessingBag.init_videoRbData && this.UpdateInfo();
- gData.blessingBag.init_openRb && this.OpenRbPanel(gData.blessingBag.rbType, gData.blessingBag.rbNum);
- };
- e.prototype.lateUpdate = function() {
- gData.blessingBag.init_videoRbData = !1;
- gData.blessingBag.init_openRb = !1;
- };
- e.prototype.UpdateInfo = function() {
- var t = this, e = gData.blessingBag.videoRbData;
- if (e) {
- this.targetProgress = e.cumulativeAmount;
- this.txtBigDelta.node.active = 1 != e.showTask;
- this.txtBigTask.node.active = 1 == e.showTask;
- this.txtTipAd.string = 1 == e.showTask ? "提现中..." : "<b>满<color=#FFE00C>" + e.requestAmount + "元</color>可提现</b>";
- this.txtBigDelta.string = "<outline color=#8C1010 width=4><b>每次视频额外奖励<color=#FFE00C>" + e.videoAmountPerTime + "元</color></b></outline>";
- this.txtBigTask.string = "<outline color=#8C1010 width=4>金额已达标,完成<color=#4EB7FF>观看视频</color>任务可到账\n观看视频次数:<color=#FFE00C>" + e.taskVideoWatchTime + "/" + e.taskVideoTime + "</color>,连续观看天数:<color=#FFE00C>" + e.taskVideoWatchDay + "/" + e.taskVideoDay + "</color></outline>";
- this.txtRemaindAdNum.string = "<b>今日剩余次数:<color=#B02D29>" + e.videoTime + "</color></b>";
- this.adIcon.active = 1 == e.needToWatchTheVideo;
- if (gData.blessingBag.isPlayAniUpdate) if (this.lastNum < e.cumulativeAmount) {
- var n = this.btnCash.parent.convertToWorldSpaceAR(this.btnCash.getPosition());
- mk.fly.PlayCoinAnim(1, 10, this.btnAd.getPosition(), n, function() {
- t.aniBigAdBtn.setCurrentTime(0);
- t.aniBigAdBtn.play();
- });
- this.txtAddEft.node.setPosition(cc.v2(0, 380));
- this.txtAddEft.string = "+" + e.videoAmountPerTime + "元";
- this.txtAddEft.node.stopAllActions();
- this.txtAddEft.node.scale = 0;
- this.txtAddEft.node.opacity = 255;
- this.txtAddEft.node.active = !0;
- var o = cc.delayTime(.8), i = cc.sequence(cc.scaleTo(.15, 1.2), cc.scaleTo(.15, 1)), a = cc.spawn(cc.moveBy(.3, cc.v2(0, 30)), i), r = cc.delayTime(.5), c = cc.fadeOut(.15), s = cc.callFunc(function() {
- t.PlayMoneyAni(.2);
- t.txtAddEft.node.active = !1;
- });
- this.txtAddEft.node.runAction(cc.sequence(o, a, r, c, s));
- } else {
- this.txtBigNum.string = e.cumulativeAmount.toFixed(2) + "元";
- this.lastNum = e.cumulativeAmount;
- } else {
- this.txtBigNum.string = e.cumulativeAmount.toFixed(2) + "元";
- this.lastNum = e.cumulativeAmount;
- }
- if (this.adrbArray.length < 4) {
- this.adrbArray = [];
- for (var l = 0; l < e.redMonies.length; l++) {
- var u = {
- data: e.redMonies[l],
- isPlayAniUpdate: gData.blessingBag.isPlayAniUpdate,
- isPlayInitAni: this.isPlayInitAni
- };
- this.adrbArray.push(u);
- }
- this.itemContent.emit("srollview-init", this.adrbArray);
- } else {
- this.adrbArray = [];
- for (l = 0; l < e.redMonies.length; l++) {
- u = {
- data: e.redMonies[l],
- isPlayAniUpdate: gData.blessingBag.isPlayAniUpdate,
- isPlayInitAni: this.isPlayInitAni
- };
- this.adrbArray.push(u);
- }
- this.itemContent.emit("srollview-update", this.adrbArray);
- }
- this.isPlayInitAni = !1;
- gData.blessingBag.isPlayAniUpdate = !1;
- }
- };
- e.prototype.PlayMoneyAni = function(t) {
- this.totalTime = t;
- this.delta = (this.targetProgress - this.lastNum) / t;
- this.curValue = this.lastNum;
- this.curTime = 0;
- console.log("---\x3eUpdate Time: " + t + " delta: " + this.delta + " curValue: " + this.curValue + " lastNum: " + this.lastNum);
- this.isPlayAni = !0;
- };
- e.prototype.PlayMoneyAniUpdate = function(t) {
- if (this.isPlayAni) {
- if (this.curTime < this.totalTime) {
- this.curTime += t;
- this.curValue += this.delta * t;
- if (this.curValue >= this.targetProgress) {
- this.isPlayAni = !1;
- this.curValue = this.targetProgress;
- this.lastNum = this.targetProgress;
- }
- console.log("--\x3eCurValue:" + this.curValue);
- } else {
- this.isPlayAni = !1;
- this.curTime = this.totalTime;
- this.curValue = this.targetProgress;
- this.lastNum = this.targetProgress;
- }
- this.txtBigNum.string = this.curValue.toFixed(2) + "元";
- }
- };
- e.prototype.Click_AdProgressBtn = function() {
- mk.audio.playEffect("button");
- if (gData.loginData.isAuth) {
- if (1 != gData.blessingBag.videoRbData.needToWatchTheVideo) gData.blessingBag.HttpNoAdProgress(); else if (gData.blessingBag.videoRbData.videoTime > 0) {
- mk.ad.videoAdType = u.VideoAdType.Fudai;
- mk.ad.watchAd(function(t) {
- mk.console.log("watchAD:" + t);
- t && gData.adData.watchVideo(l.AdFun.bigCash);
- });
- } else mk.tip.pop("今日观看次数已用完");
- mk.audio.playEffect("button");
- console.log("---\x3eYou Click AdProgressBtn ", gData.blessingBag.videoRbData);
- } else s.default.WxAuth();
- };
- e.prototype.OpenRbPanel = function(t, e) {
- this.rbPanelType = t;
- this.txtRbNum.string = e + "元";
- this.nodeRb.active = !0;
- this.rbOpenBtn.active = !0;
- };
- e.prototype.CheckCashRedCode = function() {
- var t = gData.blessingBag.videoRbData;
- if (t.redMoneyCode.length > 0) for (var e = 0; e < t.redMoneyCode.length; e++) if (t.preLargeAmountCashId == t.redMoneyCode[e].RedMoneyId) {
- "" != t.redMoneyCode[e].RedMoneyCode ? gData.redCodeData.openRedCode(t.redMoneyCode[e].VideoCashBig, t.redMoneyCode[e].RedMoneyCode) : mk.tip.pop("提现成功");
- return;
- }
- mk.tip.pop("请先完成提现任务");
- };
- e.prototype.Click_CashBtn = function() {
- return r(this, void 0, void 0, function() {
- var t;
- return c(this, function(e) {
- switch (e.label) {
- case 0:
- console.log("---\x3eYou Click CashBtn");
- mk.audio.playEffect("button");
- return gData.blessingBag.videoRbData.cumulativeAmount >= gData.blessingBag.videoRbData.requestAmount ? [ 4, gData.blessingBag.HttpCashBig() ] : [ 3, 2 ];
- case 1:
- if ((t = e.sent()) && 1 == t.data.code) {
- this.CheckCashRedCode();
- gData.cashNormal.getRecord();
- } else mk.tip.pop("请先完成提现任务");
- return [ 3, 3 ];
- case 2:
- mk.tip.pop("累计到" + gData.blessingBag.videoRbData.requestAmount + "元才可提现");
- e.label = 3;
- case 3:
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.Click_CashOpenBtn = function() {
- return r(this, void 0, void 0, function() {
- var t = this;
- return c(this, function() {
- mk.audio.playEffect("button");
- if (!this.canOpen) return [ 2 ];
- this.canOpen = !1;
- if (1 == this.rbPanelType) gData.cashPro.openCashPro(p.cashProType.blessing_bigCash, gData.blessingBag.bigRbNum); else {
- this.rbOpenBtn.active = !1;
- this.aniBtnAd.node.active = !0;
- this.aniBtnAd.setCurrentTime(0);
- this.aniBtnAd.play();
- setTimeout(function() {
- t.aniBtnAd.stop();
- t.aniBtnAd.node.active = !1;
- t.rbOpenBtn.active = !0;
- t.nodeRb.active = !1;
- gData.blessingBag.HttpCashTask();
- t.canOpen = !0;
- }, 1e3);
- }
- return [ 2 ];
- });
- });
- };
- e.prototype.clickHelpCallBack = function() {
- gData.help.des = "1、观看大量视频可以快速增加提现进度。\n\n2、提现进度到100%,可以提现对应档位的红包。\n\n3、余额累计满一定金额,可以申请大额提现。";
- };
- e.prototype.Click_InitData = function() {
- mk.audio.playEffect("button");
- gData.blessingBag.HttpInitAdRbData();
- };
- e.prototype.EditBox_End = function() {
- console.log("--\x3eInput:", this.inputBox.string);
- gData.blessingBag.adsource_id_value = this.inputBox.string;
- };
- e.prototype.onClickClose = function() {
- mk.ad.checkShowInterByChance();
- };
- a([ f(cc.Label) ], e.prototype, "txtBigNum", void 0);
- a([ f(cc.Label) ], e.prototype, "txtAddEft", void 0);
- a([ f(cc.RichText) ], e.prototype, "txtTipAd", void 0);
- a([ f(cc.RichText) ], e.prototype, "txtBigDelta", void 0);
- a([ f(cc.RichText) ], e.prototype, "txtBigTask", void 0);
- a([ f(cc.RichText) ], e.prototype, "txtRemaindAdNum", void 0);
- a([ f(cc.Prefab) ], e.prototype, "blassingBagItem", void 0);
- a([ f(cc.Node) ], e.prototype, "itemContent", void 0);
- a([ f(cc.Node) ], e.prototype, "btnCash", void 0);
- a([ f(cc.Node) ], e.prototype, "btnAd", void 0);
- a([ f(cc.Animation) ], e.prototype, "aniBigAdBtn", void 0);
- a([ f(cc.Node) ], e.prototype, "adIcon", void 0);
- a([ f(cc.Animation) ], e.prototype, "aniBtnAd", void 0);
- a([ f(cc.Node) ], e.prototype, "rbOpenBtn", void 0);
- a([ f(cc.Node) ], e.prototype, "nodeRb", void 0);
- a([ f(cc.Label) ], e.prototype, "txtRbNum", void 0);
- a([ f(cc.Node) ], e.prototype, "testNode", void 0);
- a([ f(cc.EditBox) ], e.prototype, "inputBox", void 0);
- return a([ h ], e);
- }(cc.Component);
- n.default = y;
- cc._RF.pop();
- }, {
- "../../../mk/system/JsbSystem": "JsbSystem",
- "../../data/AdData": "AdData",
- "../../data/GameData": "GameData",
- "../../data/module/CashProData": "CashProData"
- } ],
- BonusTip: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "12093ka2vhBWbXFfMq5uVm7", "BonusTip");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = (c.property,
- function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.curBonusNum = 0;
- return e;
- }
- e.prototype.start = function() {};
- e.prototype.init = function(t) {
- var e = this;
- this.node.getComponent(cc.Sprite).enabled = !1;
- if (this.curBonusNum != t) {
- this.curBonusNum = t;
- var n = t - 4 + 1;
- mk.loader.load("game/texture/tip/" + n, cc.SpriteFrame).then(function(t) {
- e.node.getComponent(cc.Sprite).spriteFrame = t;
- e.node.getComponent(cc.Sprite).enabled = !0;
- });
- } else this.node.getComponent(cc.Sprite).enabled = !0;
- this.node.opacity = 255;
- this.node.scaleX = this.node.scaleY = .8;
- this.node.setPosition(0, 0);
- cc.tween(this.node).to(.3, {
- scale: 1.2
- }, {
- easing: "smooth"
- }).to(.1, {
- scale: 1
- }, {
- easing: "smooth"
- }).delay(.2).to(.2, {
- scale: 2,
- opacity: 0
- }, {
- easing: "smooth"
- }).call(function() {
- r.default.Inst.recyclePoolPrefab(r.NODEPOOLPREFABTYPE.BonusTip, e.node);
- }).start();
- };
- return a([ s ], e);
- }(cc.Component));
- n.default = l;
- cc._RF.pop();
- }, {
- "../../mgr/PoolMgr": "PoolMgr"
- } ],
- BtnClosePanel: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "cdc50kCRVVBa5gcp4XXxVO+", "BtnClosePanel");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.node_panel = null;
- e.transition_type = cc.Button.Transition.NONE;
- e.onComplete = [];
- e.block_click = !1;
- return e;
- }
- e.prototype.onLoad = function() {
- this.node.getComponent(cc.Button) || (this.node.addComponent(cc.Button).transition = this.transition_type);
- };
- e.prototype.start = function() {
- this.node.on("click", this.closePanel, this);
- };
- e.prototype.closePanel = function() {
- return r(this, void 0, void 0, function() {
- var t, e;
- return c(this, function() {
- mk.audio.playEffect("button");
- if (this.block_click) return [ 2 ];
- this.node_panel && mk.ui.closePanel(this.node_panel.name);
- t = this.onComplete.length;
- for (e = 0; e < t; e++) this.onComplete[e].handler && this.onComplete[e].emit([]);
- return [ 2 ];
- });
- });
- };
- a([ u({
- displayName: "关闭界面",
- tooltip: "",
- type: cc.Node
- }) ], e.prototype, "node_panel", void 0);
- a([ u({
- displayName: "点击效果",
- tooltip: "仅支持 NONE 和 SCALE",
- type: cc.Enum(cc.Button.Transition)
- }) ], e.prototype, "transition_type", void 0);
- a([ u({
- displayName: "完成回调",
- tooltip: "面板打开完成后触发",
- type: cc.Component.EventHandler
- }) ], e.prototype, "onComplete", void 0);
- return a([ l ], e);
- }(cc.Component);
- n.default = p;
- cc._RF.pop();
- }, {} ],
- BtnMoreGame: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "9ab36AQuiJKw67bq+KV3Yrw", "BtnMoreGame");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.sp_moregame = null;
- e.lab_moregame = null;
- return e;
- }
- e.prototype.update = function() {
- gData.moreGame.init_moreGameList && this.setMoreGameSp(gData.moreGame.moreGameList.normal);
- };
- e.prototype.lateUpdate = function() {
- gData.moreGame.init_moreGameList = !1;
- };
- e.prototype.setMoreGameSp = function(t) {
- var e = this, n = t.length, o = mk.math.random(0, n - 1), i = t[o];
- this.showMoreGameSp(i);
- this.schedule(function() {
- o++;
- i = t[o %= n];
- e.showMoreGameSp(i);
- }, 10);
- };
- e.prototype.showMoreGameSp = function(t) {
- var e = this;
- cc.sys.os != cc.sys.OS_WINDOWS && cc.loader.load(t.icon, function(t, n) {
- if (t) console.log("err:", t); else if (e.sp_moregame) {
- var o = n;
- e.sp_moregame.spriteFrame = new cc.SpriteFrame(o);
- }
- });
- this.lab_moregame.string = t.title;
- };
- a([ s(cc.Sprite) ], e.prototype, "sp_moregame", void 0);
- a([ s(cc.Label) ], e.prototype, "lab_moregame", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- BtnOpenPanel: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "b8d2cnq+GZLFK30xbLDqr/m", "BtnOpenPanel");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = cc._decorator, l = s.ccclass, u = s.property, p = t("../../mk/system/JsbSystem"), d = t("../../mk/system/UISystem"), h = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.panel_name = "";
- e.bool_Auth = !1;
- e.open_type = d.OpenActionType.normal;
- e.transition_type = cc.Button.Transition.NONE;
- e.onComplete = [];
- return e;
- }
- e.prototype.onLoad = function() {
- this.node.getComponent(cc.Button) || (this.node.addComponent(cc.Button).transition = this.transition_type);
- };
- e.prototype.start = function() {
- this.node.on("click", this.openPanel, this);
- };
- e.prototype.openPanel = function() {
- return r(this, void 0, void 0, function() {
- var t, e;
- return c(this, function(n) {
- switch (n.label) {
- case 0:
- if (!mk.game.checkContinuousClick(this.node)) return [ 2 ];
- mk.audio.playEffect("button");
- if (this.bool_Auth && !gData.loginData.isAuth) {
- p.default.WxAuth();
- return [ 2 ];
- }
- return this.panel_name ? [ 4, mk.ui.openPanel(this.panel_name, this.open_type) ] : [ 2 ];
- case 1:
- n.sent();
- t = this.onComplete.length;
- for (e = 0; e < t; e++) this.onComplete[e].handler && this.onComplete[e].emit([]);
- mk.console.log("open->" + this.panel_name);
- return [ 2 ];
- }
- });
- });
- };
- a([ u({
- displayName: "预制体路径",
- tooltip: "对应路径:resources/"
- }) ], e.prototype, "panel_name", void 0);
- a([ u({
- displayName: "是否需要微信授权",
- tooltip: "授权勾选"
- }) ], e.prototype, "bool_Auth", void 0);
- a([ u({
- displayName: "打开类型",
- tooltip: "normal不操作,closeOther关闭其他,closeLast关闭上一个",
- type: cc.Enum(d.OpenActionType)
- }) ], e.prototype, "open_type", void 0);
- a([ u({
- displayName: "点击效果",
- tooltip: "仅支持 NONE 和 SCALE",
- type: cc.Enum(cc.Button.Transition)
- }) ], e.prototype, "transition_type", void 0);
- a([ u({
- displayName: "完成回调",
- tooltip: "面板打开完成后触发",
- type: cc.Component.EventHandler
- }) ], e.prototype, "onComplete", void 0);
- return a([ l ], e);
- }(cc.Component);
- n.default = h;
- cc._RF.pop();
- }, {
- "../../mk/system/JsbSystem": "JsbSystem",
- "../../mk/system/UISystem": "UISystem"
- } ],
- BuglySDK: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "5e14aAR8aVDF4pkk/9JmRhW", "BuglySDK");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var o = function() {
- function t() {
- this.initELKHandler();
- }
- t.prototype.initBugly = function() {};
- t.prototype.initELKHandler = function() {
- if (cc.sys.isNative) {
- var e;
- window.__errorHandler && (e = window.__errorHandler);
- window.__errorHandler = function() {
- for (var n = [], o = 0; o < arguments.length; o++) n[o] = arguments[o];
- console.log("游戏报错,原生系统");
- t.handleError.apply(t, n);
- e && e.apply(void 0, n);
- };
- }
- };
- t.handleError = function() {
- for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
- for (var o = "", i = 0; i < e.length; i++) if ("string" == typeof e[i] && e[i].length > 20) o += e[i] + "\n"; else if (e[i] instanceof Array) for (var a = 0; a < e[i].length; a++) o += e[i][a];
- -1 != o.indexOf("TypeError") && (o = o.slice(o.indexOf("TypeError") + "TypeError".length + 2));
- for (var r = [ 0, "", "", "", "[]@" ], c = r[0], s = r[1], l = r[2], u = r[3], p = r[4]; c < o.length; ) {
- u = o.charAt(c);
- if (-1 != p.indexOf(u)) {
- if ("" == s) s = u; else if ("[" == s && "]" == u || "@" == s && "]" == u) {
- s = "";
- l += " | ";
- }
- } else "" == s && (l += u);
- c++;
- }
- l.length > 120 && (l = l.slice(0, 120));
- var d = new Date().getTime();
- if (!(-1 != t.lastSendErrors.indexOf(l) && d - t.lastSendErrorTime < 3e4)) {
- t.lastSendErrors.push(l);
- t.lastSendErrorTime = d;
- t.lastSendErrors.length > 5 && (t.lastSendErrors = t.lastSendErrors.slice(t.lastSendErrors.length - 5));
- var h = gData.httpData.serverType + ":" + gData.loginData.uin, f = {
- level: "error",
- game: gData.appData.appNameBugly + ":" + h,
- message: l
- }, y = new XMLHttpRequest();
- y.responseType = "text";
- var g = "https://elktest.duiweize.com/api/logs/record";
- y.open("POST", g);
- y.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
- y.onerror = function(t) {
- console.log("handleError.onError:", t);
- };
- var m = JSON.stringify(f);
- m = mk.encrypt.rsaEncrypt(m);
- y.send(m);
- }
- };
- t.lastSendErrorTime = new Date().getTime();
- t.lastSendErrors = [];
- return t;
- }();
- n.default = o;
- cc._RF.pop();
- }, {} ],
- Button: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "c7d0chvBRhPlY0rJFlDFnON", "Button");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.node_normal = null;
- e.node_pressed = null;
- e.node_disabled = null;
- e.onClick = [];
- return e;
- }
- e.prototype.onLoad = function() {
- this.touchEnd();
- };
- e.prototype.start = function() {
- this.node.getComponent(cc.Button) || this.node.addComponent(cc.Button);
- this.node.on(cc.Node.EventType.TOUCH_START, this.touchStart, this);
- this.node.on(cc.Node.EventType.TOUCH_END, this.touchEnd, this);
- this.node.on("click", this.click, this);
- };
- e.prototype.touchStart = function() {
- this.node_normal && (this.node_normal.active = !1);
- this.node_pressed && (this.node_pressed.active = !0);
- this.node_disabled && (this.node_disabled.active = !1);
- };
- e.prototype.touchEnd = function() {
- this.node_normal && (this.node_normal.active = !0);
- this.node_pressed && (this.node_pressed.active = !1);
- this.node_disabled && (this.node_disabled.active = !1);
- };
- e.prototype.click = function() {
- mk.audio.playEffect("button");
- for (var t = this.onClick.length, e = 0; e < t; e++) this.onClick[e].handler && this.onClick[e].emit([]);
- };
- e.prototype.onDestroy = function() {
- this.node.off(cc.Node.EventType.TOUCH_START, this.touchStart, this);
- this.node.off(cc.Node.EventType.TOUCH_END, this.touchEnd, this);
- this.node.off("click", this.click, this);
- this.onClick = [];
- };
- a([ s({
- type: cc.Node,
- displayName: "正常"
- }) ], e.prototype, "node_normal", void 0);
- a([ s({
- type: cc.Node,
- displayName: "按下"
- }) ], e.prototype, "node_pressed", void 0);
- a([ s({
- type: cc.Node,
- displayName: "禁用"
- }) ], e.prototype, "node_disabled", void 0);
- a([ s({
- displayName: "点击函数",
- type: cc.Component.EventHandler
- }) ], e.prototype, "onClick", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- CashNormalData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "64bb4P2NvJGZqPbCEhv7Ir/", "CashNormalData");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, r = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.CashNormalData = void 0;
- var c = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.list_data = [];
- e.update_list = !1;
- e.init_rmb_style = !0;
- e._receip_total_rmb = 0;
- e.cash_type = {
- 1: "红包提现",
- 2: "每日提现",
- 3: "夺宝提现",
- 4: "富翁银行提现",
- 5: "裂变任务提现",
- 6: "裂变每日提现",
- 7: "裂变累计提现",
- 8: "彩蛋任务提现",
- 9: "常规彩蛋任务提现",
- 10: "福袋提现",
- 11: "大额福袋",
- 12: "存钱罐提现",
- 13: "签到提现"
- };
- return e;
- }
- e.prototype.init = function() {
- this.getRecord();
- };
- e.prototype.getRecord = function() {
- return a(this, void 0, void 0, function() {
- var t;
- return r(this, function(e) {
- switch (e.label) {
- case 0:
- return [ 4, mk.http.sendData("getCashRecord", {}) ];
- case 1:
- if (0 != (t = e.sent()).errcode) return [ 2 ];
- console.log(t.data);
- if (t.data) {
- t.data.forEach(function(t) {
- for (var e in t) "withdrawalCode" != e && (t[e] = parseInt(t[e]));
- });
- this.list_data = t.data;
- this.initReceipTotalRMB();
- this.update_list = !0;
- }
- return [ 2 ];
- }
- });
- });
- };
- Object.defineProperty(e.prototype, "receip_total_rmb", {
- get: function() {
- return this._receip_total_rmb;
- },
- set: function(t) {
- this._receip_total_rmb = t;
- this.init_rmb_style = !0;
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.initReceipTotalRMB = function() {
- for (var t = 0, e = this.list_data.length, n = 0; n < e; n++) t += this.list_data[n].amount;
- this.receip_total_rmb = t;
- };
- e.prototype.initTestData = function() {
- for (var t = 0; t < 30; t++) {
- var e = {
- cashType: mk.math.random(1, 10),
- applyTime: 1623399160,
- amount: 10 * t,
- remain: 1e3 * t,
- CashMode: t % 2,
- withdrawalCode: "AABBC" + t
- };
- this.list_data.push(e);
- }
- };
- e.prototype.getListDataHavCode = function() {
- for (var t = [], e = this.list_data.length, n = 0; n < e; n++) this.list_data[n].withdrawalCode && t.push(this.list_data[n]);
- return t;
- };
- return e;
- }(t("../../../mk/data/Data").Data);
- n.CashNormalData = c;
- cc._RF.pop();
- }, {
- "../../../mk/data/Data": "Data"
- } ],
- CashNormalItem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "32077nk5NlGLqPEuyJfau+t", "CashNormalItem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.lbl_cash_type = null;
- e.lbl_cash_time = null;
- e.lbl_red_ma = null;
- e.lbl_rmb_value = null;
- return e;
- }
- e.prototype.setItemData = function(t) {
- return r(this, void 0, void 0, function() {
- return c(this, function(e) {
- switch (e.label) {
- case 0:
- return [ 4, this.initStyle(t) ];
- case 1:
- e.sent();
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.initStyle = function(t) {
- this.lbl_cash_type.string = gData.cashNormal.cash_type[t.cashType] || "未知类型";
- this.lbl_cash_time.string = mk.time.getNowDayString(1e3 * t.applyTime);
- this.lbl_red_ma.string = t.withdrawalCode ? "红包码:" + t.withdrawalCode : "";
- this.lbl_rmb_value.string = "¥" + (t.amount / 100).toFixed(2) + "元";
- };
- a([ u({
- displayName: "lbl提现类型",
- type: cc.Label
- }) ], e.prototype, "lbl_cash_type", void 0);
- a([ u({
- displayName: "lbl提现时间",
- type: cc.Label
- }) ], e.prototype, "lbl_cash_time", void 0);
- a([ u({
- displayName: "lbl红包码",
- type: cc.Label
- }) ], e.prototype, "lbl_red_ma", void 0);
- a([ u({
- displayName: "lbl毛币数量",
- type: cc.Label
- }) ], e.prototype, "lbl_rmb_value", void 0);
- return a([ l ], e);
- }(cc.Component);
- n.default = p;
- cc._RF.pop();
- }, {} ],
- CashNormal: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "94e2ahhWT5CDo8XnPR+e9Lu", "CashNormal");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.scroll_view = null;
- e.lbl_rmb_total = null;
- e.lbl_none = null;
- return e;
- }
- e.prototype.start = function() {
- gData.cashNormal.getRecord();
- this.initTotal();
- };
- e.prototype.initScrollView = function() {
- this.scroll_view.node.emit("srollview-init", gData.cashNormal.list_data);
- };
- e.prototype.initTotal = function() {
- this.lbl_rmb_total.string = "¥" + (gData.cashNormal.receip_total_rmb / 100).toFixed(2) + "元";
- };
- e.prototype.initNoneItem = function() {
- var t = gData.cashNormal.list_data.length;
- this.lbl_none.node.active = !t;
- };
- e.prototype.update = function() {
- if (gData.cashNormal.update_list) {
- this.initScrollView();
- this.initNoneItem();
- gData.cashNormal.update_list = !1;
- }
- };
- a([ s({
- displayName: "滚动视图",
- type: cc.ScrollView
- }) ], e.prototype, "scroll_view", void 0);
- a([ s({
- displayName: "lbl累计提现",
- type: cc.Label
- }) ], e.prototype, "lbl_rmb_total", void 0);
- a([ s({
- displayName: "lbl暂无提现",
- type: cc.Label
- }) ], e.prototype, "lbl_none", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- CashPigData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "6dd05FLpy1EvLk2V3PwPYId", "CashPigData");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- });
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.CashPigData = void 0;
- var a = function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- return e;
- }(t("../../../mk/data/Data").Data);
- n.CashPigData = a;
- cc._RF.pop();
- }, {
- "../../../mk/data/Data": "Data"
- } ],
- CashProData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "592b3w/pF1M+K/8UI878v9k", "CashProData");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, r = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.cashProType = void 0;
- var c, s = t("../../../mk/data/Data"), l = t("../GameData"), u = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.init_data = !1;
- e.cashPro_money = 0;
- e.init_success = !1;
- e.init_fail = !1;
- return e;
- }
- e.prototype.openCashPro = function(t, e) {
- this.cashPro_type = t;
- this.cashPro_money = e;
- this.init_data = !0;
- mk.ui.openPanel("module/cashPro/cashPro");
- };
- e.prototype.onCash = function() {
- return a(this, void 0, void 0, function() {
- var t;
- return r(this, function(e) {
- switch (e.label) {
- case 0:
- t = null;
- switch (this.cashPro_type) {
- case c.blessing_bigCash:
- return [ 3, 1 ];
- case c.blessing_taskCash:
- return [ 3, 3 ];
- }
- return [ 3, 5 ];
- case 1:
- return [ 4, gData.blessingBag.HttpCashBig() ];
- case 2:
- if ((t = e.sent()) && 1 == t.data.code) {
- gData.cashPro.init_success = !0;
- mk.data.sendDataEvent(l.DataEventId.fudaiFunction, "视频红包大额提现第" + gData.blessingBag.taskRbId + "档领取成功");
- } else gData.cashPro.init_fail = !0;
- return [ 3, 5 ];
- case 3:
- return [ 4, gData.blessingBag.HttpCashTask() ];
- case 4:
- if ((t = e.sent()) && 1 == t.data.code) {
- gData.cashPro.init_success = !0;
- mk.data.sendDataEvent(l.DataEventId.fudaiFunction, "视频红包第" + gData.blessingBag.taskRbId + "档领取成功");
- } else gData.cashPro.init_fail = !0;
- return [ 3, 5 ];
- case 5:
- gData.cashNormal.getRecord();
- return [ 2 ];
- }
- });
- });
- };
- return e;
- }(s.Data);
- n.default = u;
- (function(t) {
- t[t.blessing_bigCash = 0] = "blessing_bigCash";
- t[t.blessing_taskCash = 1] = "blessing_taskCash";
- })(c = n.cashProType || (n.cashProType = {}));
- cc._RF.pop();
- }, {
- "../../../mk/data/Data": "Data",
- "../GameData": "GameData"
- } ],
- CashPro: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "7c96b8wPgBPeLS+KI5YpgFP", "CashPro");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.loadPart = null;
- e.loadAni = null;
- e.moneyPart = null;
- e.labRedMoney = null;
- e.btnTixian = null;
- e.btnAuth = null;
- e.cashPro = null;
- e.labMoney = null;
- e.money = 0;
- e.hasTap = !1;
- return e;
- }
- e.prototype.update = function() {
- gData.cashPro.init_data && this.init(gData.cashPro.cashPro_money);
- gData.cashPro.init_success && this.tixianSuccess();
- gData.cashPro.init_fail && this.tixianFail();
- };
- e.prototype.lateUpdate = function() {
- gData.cashPro.init_data = !1;
- gData.cashPro.init_success = !1;
- gData.cashPro.init_fail = !1;
- };
- e.prototype.init = function(t) {
- this.money = t;
- this.loadPart.active = !1;
- this.cashPro.active = !1;
- if (gData.loginData.isAuth) {
- this.btnAuth.active = !1;
- this.btnTixian.active = !0;
- } else {
- this.btnAuth.active = !0;
- this.btnTixian.active = !1;
- }
- };
- e.prototype.showLoad = function() {
- this.loadPart.active = !0;
- this.loadAni.play("load", 0);
- };
- e.prototype.tixianSuccess = function() {
- this.loadPart.active = !1;
- this.showCashPro();
- };
- e.prototype.showCashPro = function() {
- this.cashPro.active = !0;
- mk.tween.move(this.cashPro, .3, cc.v2(1e3, 0), cc.v2(0, 0), null, "elasticIn");
- this.labMoney.string = "¥" + this.money;
- };
- e.prototype.tixianFail = function() {
- console.log("tixianFail ");
- this.loadPart.active = !1;
- mk.tip.pop("提现排队中,多看视频优先提现");
- mk.ui.closePanel(this.node.name);
- };
- e.prototype.authBack = function() {
- this.btnAuth.active = !1;
- this.btnTixian.active = !0;
- };
- e.prototype.clickCash = function() {
- mk.audio.playEffect("button");
- this.showLoad();
- gData.cashPro.onCash();
- };
- e.prototype.clickAuth = function() {
- var t = this;
- mk.audio.playEffect("button");
- if (!this.hasTap) {
- this.hasTap = !0;
- this.scheduleOnce(function() {
- t.hasTap = !1;
- }, 3);
- }
- };
- a([ s(cc.Node) ], e.prototype, "loadPart", void 0);
- a([ s(cc.Animation) ], e.prototype, "loadAni", void 0);
- a([ s(cc.Node) ], e.prototype, "moneyPart", void 0);
- a([ s(cc.Label) ], e.prototype, "labRedMoney", void 0);
- a([ s(cc.Node) ], e.prototype, "btnTixian", void 0);
- a([ s(cc.Node) ], e.prototype, "btnAuth", void 0);
- a([ s(cc.Node) ], e.prototype, "cashPro", void 0);
- a([ s(cc.Label) ], e.prototype, "labMoney", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- CellItem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "0eddale281LjITR1VBVSkdJ", "CellItem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../GamePlay"), c = t("../../data/Enum"), s = t("../../util/GameLogic"), l = t("../../mgr/PoolMgr"), u = t("../../data/GameConst"), p = t("../../util/common/AniFinishDestroy"), d = t("../effect/EliminateScore"), h = t("../effect/ScoreEnergy"), f = t("../../../game/data/GameData"), y = cc._decorator, g = y.ccclass, m = y.property, _ = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.ani_cellItem = null;
- e.spr_cellItemIcon = null;
- e.node_redPackIcon = null;
- e.x = 0;
- e.y = 0;
- e.type = 0;
- e.ifRemoved = !1;
- e.ifRedPacket = !1;
- return e;
- }
- e.prototype.start = function() {
- this.node.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
- };
- e.prototype.init = function(t, e) {
- this.x = t;
- this.y = e;
- this.ifRemoved = !1;
- var n = this.getEndPos();
- this.node.x = n.x;
- this.node.y = .5 * cc.winSize.height + this.node.height + 50;
- this.ani_cellItem.play();
- this.setType();
- cc.tween(this.node).delay(.2).to(.3, {
- y: n.y
- }).call(function() {}).start();
- };
- e.prototype.getEndPos = function() {
- var t = this.x * this.node.width + .5 * this.node.width - .5 * r.default.Inst.node_content.width, e = -(this.y * this.node.height + .5 * this.node.height) + .5 * r.default.Inst.node_content.height;
- return new cc.Vec2(t, e);
- };
- e.prototype.setType = function(t) {
- var e = this;
- void 0 === t && (t = null);
- this.node.opacity = 255;
- var n = this.type;
- if (t) {
- this.ani_cellItem.play("cellItem_reset");
- this.type = t;
- } else {
- var o = null, i = gData.gameData.getProp(f.GameProp.levelNum);
- null != i && null != i && (o = u.default.config_level[i][this.y][this.x]);
- this.type = o || Math.floor(5 * Math.random()) + 1;
- }
- this.spr_cellItemIcon.node.width = 75;
- this.spr_cellItemIcon.node.height = 75;
- n && n == this.type || mk.loader.load("game/texture/cellItemIcon/" + u.default.iconIndex + "/" + this.type, cc.SpriteFrame).then(function(t) {
- e.spr_cellItemIcon.spriteFrame = t;
- });
- };
- e.prototype.reset = function() {
- this.ani_cellItem.play("cellItem_reset");
- var t = Math.floor(5 * Math.random()) + 1;
- this.setType(t);
- };
- e.prototype.onClick = function() {
- if (r.default.Inst.ifCouldClick) {
- r.default.Inst.ifCouldClick = !1;
- r.default.Inst.intervalShowGuide();
- r.default.Inst.intervalShowInter();
- r.default.Inst.node_changeCellItemUI.active && (r.default.Inst.node_changeCellItemUI.active = !1);
- r.default.Inst.cleanedVecArr = [];
- r.default.Inst.cleanXIndexArr = [];
- if (r.default.Inst.curPropType != c.PROPTYPE.Change) {
- if (r.default.Inst.curPropType == c.PROPTYPE.Hammer) {
- r.default.Inst.curPropType = c.PROPTYPE.Null;
- r.default.Inst.curSelectCellItem = this;
- if (s.default.getAroundSameType(this.x, this.y, this.type, !1).length <= 0) {
- mk.console.log("周围没有相同的Item ----------------------------------------");
- r.default.Inst.cleanedVecArr.push(new cc.Vec2(this.x, this.y));
- }
- }
- r.default.Inst.curClickCellItem = this;
- s.default.getCleanedVecList(this.x, this.y, this.type);
- r.default.Inst.cleanCellItemByVecList();
- } else {
- r.default.Inst.curPropType = c.PROPTYPE.Null;
- r.default.Inst.curSelectCellItem = this;
- r.default.Inst.showChangeCellItemUI();
- this.node.opacity = 150;
- }
- }
- };
- e.prototype.moveDown = function(t, e, n, o) {
- var i = this;
- void 0 === o && (o = !1);
- if (this.y != e) {
- var a = e - this.y;
- r.default.Inst.cellItemDic[this.x][this.y] = null;
- this.x = t;
- this.y = e;
- r.default.Inst.cellItemDic[this.x][this.y] = this;
- var c = -(this.y * this.node.height + .5 * this.node.height) + .5 * r.default.Inst.node_content.height, s = .03 * n, l = .12 * a;
- cc.tween(this.node).delay(s).call(function() {
- i.ani_cellItem.play("cellItem_down1");
- }).to(l, {
- y: c
- }).call(function() {
- i.ani_cellItem.play("cellItem_down2");
- if (o) {
- mk.console.log("【CellItem】检测是否能消除 移动完毕最后一个");
- r.default.Inst.checkMoveLeftCellItem();
- }
- }).start();
- } else o && r.default.Inst.checkMoveLeftCellItem();
- };
- e.prototype.moveLeft = function(t, e, n) {
- void 0 === n && (n = !1);
- if (this.x != t) {
- r.default.Inst.cellItemDic[this.x][this.y] = null;
- this.x = t;
- this.y = e;
- r.default.Inst.cellItemDic[this.x][this.y] = this;
- var o = t * this.node.width + .5 * this.node.width - .5 * r.default.Inst.node_content.width;
- cc.tween(this.node).to(.2, {
- x: o
- }).call(function() {
- if (n) {
- mk.console.log("检测是否能消除!!!!!!!!!!!!!!!!!!!!!!!!!!最后移除");
- r.default.Inst.checkIfEliminate();
- r.default.Inst.ifCouldClick = !0;
- }
- }).start();
- }
- };
- e.prototype.shake = function() {
- this.ani_cellItem.play("cellItem_shake");
- };
- e.prototype.normal = function() {
- this.node.opacity = 255;
- this.ani_cellItem.play();
- };
- e.prototype.showRedPacket = function() {
- this.node_redPackIcon.active = !0;
- };
- e.prototype.recycle = function(t, e, n) {
- void 0 === t && (t = !1);
- void 0 === e && (e = !1);
- void 0 === n && (n = !0);
- r.default.Inst.cellItemDic[this.x][this.y] = null;
- var o = this.node.x + r.default.Inst.node_content.x, i = this.node.y + r.default.Inst.node_content.y;
- if (r.default.Inst.curSelectCellItem == this) {
- r.default.Inst.curSelectCellItem = null;
- if (r.default.Inst.curPropType == c.PROPTYPE.Hammer) {
- r.default.Inst.curPropType = null;
- var a = l.default.Inst.getPoolPrefab(l.NODEPOOLPREFABTYPE.Hammer);
- a.setPosition(o, i);
- r.default.Inst.node_effectUI.addChild(a);
- }
- }
- if (n) {
- var s = l.default.Inst.getPoolPrefab(l.NODEPOOLPREFABTYPE.Baozha);
- s.x = o;
- s.y = i;
- r.default.Inst.node_effectUI.addChild(s);
- s.getComponent(p.default).init();
- var u = 2 + 2 * (r.default.Inst.cleanedVecArr.length - 2), y = l.default.Inst.getPoolPrefab(l.NODEPOOLPREFABTYPE.EliminateScore), g = this.node.x + r.default.Inst.node_content.x, m = this.node.y + r.default.Inst.node_content.y + 30;
- y.getComponent(d.default).init(new cc.Vec2(g, m), u);
- r.default.Inst.node_effectUI.addChild(y);
- if (t) ; else {
- var _ = l.default.Inst.getPoolPrefab(l.NODEPOOLPREFABTYPE.ScoreEnergy);
- _.getComponent(h.default).init(g, m, u);
- r.default.Inst.node_effectUI.addChild(_);
- this.node_redPackIcon.active && (r.default.Inst.ifOpenScoreRedPacket = !0);
- e && gData.gameData.setProp(f.GameProp.curTotalScore, r.default.Inst.finalGetScore);
- }
- }
- this.node_redPackIcon.active && (this.node_redPackIcon.active = !1);
- l.default.Inst.recyclePoolPrefab(l.NODEPOOLPREFABTYPE.CellItem, this.node);
- };
- a([ m(cc.Animation) ], e.prototype, "ani_cellItem", void 0);
- a([ m(cc.Sprite) ], e.prototype, "spr_cellItemIcon", void 0);
- a([ m(cc.Node) ], e.prototype, "node_redPackIcon", void 0);
- return a([ g ], e);
- }(cc.Component);
- n.default = _;
- cc._RF.pop();
- }, {
- "../../../game/data/GameData": "GameData",
- "../../GamePlay": "GamePlay",
- "../../data/Enum": "Enum",
- "../../data/GameConst": "GameConst",
- "../../mgr/PoolMgr": "PoolMgr",
- "../../util/GameLogic": "GameLogic",
- "../../util/common/AniFinishDestroy": "AniFinishDestroy",
- "../effect/EliminateScore": "EliminateScore",
- "../effect/ScoreEnergy": "ScoreEnergy"
- } ],
- ChangeCellItemUI: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "efea2M6SlRODL/dJnf1ISCC", "ChangeCellItemUI");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../GamePlay"), c = t("./uiItem/SelectCellItemBtn"), s = t("../data/GameConst"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.layout_selectCellItemBtn = null;
- e.node_closeBtn = null;
- e.prefab_selectCellItemBtn = null;
- e.curIconIndex = null;
- return e;
- }
- e.prototype.onEnable = function() {
- if (this.curIconIndex != s.default.iconIndex) {
- this.initSelectCellItemBtn();
- this.curIconIndex = s.default.iconIndex;
- }
- };
- e.prototype.onDisable = function() {
- r.default.Inst.ifCouldClick = !0;
- r.default.Inst.curSelectCellItem && (r.default.Inst.curSelectCellItem.node.opacity = 255);
- };
- e.prototype.start = function() {
- this.node_closeBtn.on(cc.Node.EventType.TOUCH_END, this.onClickClose, this);
- };
- e.prototype.initSelectCellItemBtn = function() {
- if (this.layout_selectCellItemBtn.node.childrenCount > 0) for (var t = 1; t <= this.layout_selectCellItemBtn.node.childrenCount; t++) {
- mk.console.log(" node_selectCellItemBtn i", t);
- (e = this.layout_selectCellItemBtn.node.children[t - 1]).getComponent(c.default).init(t);
- } else for (t = 1; t <= 6; t++) {
- var e = cc.instantiate(this.prefab_selectCellItemBtn);
- mk.console.log("初始化选择按钮!!!!!!!!!!!!!!!!!!!!", t);
- e.getComponent(c.default).init(t);
- this.layout_selectCellItemBtn.node.addChild(e);
- }
- };
- e.prototype.onClickClose = function() {
- this.node.active = !1;
- };
- a([ p(cc.Layout) ], e.prototype, "layout_selectCellItemBtn", void 0);
- a([ p(cc.Node) ], e.prototype, "node_closeBtn", void 0);
- a([ p(cc.Prefab) ], e.prototype, "prefab_selectCellItemBtn", void 0);
- return a([ u ], e);
- }(cc.Component);
- n.default = d;
- cc._RF.pop();
- }, {
- "../GamePlay": "GamePlay",
- "../data/GameConst": "GameConst",
- "./uiItem/SelectCellItemBtn": "SelectCellItemBtn"
- } ],
- ClickMoveBy: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "b4358yRD11LPLNtDbsZ2TsK", "ClickMoveBy");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r, c = cc._decorator, s = c.ccclass, l = c.property;
- (function(t) {
- t[t.out = 0] = "out";
- t[t.moving = 1] = "moving";
- t[t.back = 2] = "back";
- })(r || (r = {}));
- var u = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.vec_move = cc.Vec2.ZERO;
- e.state = r.out;
- e.is_back = !1;
- return e;
- }
- e.prototype.onLoad = function() {
- this.node.on("click", this.StartMoveBy, this);
- };
- e.prototype.start = function() {
- this.node.getComponent(cc.Button) || this.node.addComponent(cc.Button);
- };
- e.prototype.StartMoveBy = function() {
- var t = this;
- if (this.state !== r.moving) {
- var e = 0, n = cc.Vec2.ZERO;
- if (this.state === r.out) {
- n = this.vec_move;
- e = r.back;
- } else if (this.state === r.back) {
- n.x = -this.vec_move.x;
- n.y = -this.vec_move.y;
- e = r.out;
- }
- this.state = r.moving;
- var o = cc.tween().by(.5, {
- position: {
- value: n,
- easing: "backOut"
- }
- }), i = cc.tween().call(function() {
- t.state = e;
- });
- cc.tween(this.node).then(o).then(i).start();
- }
- };
- a([ l({
- tooltip: "要移动的距离"
- }) ], e.prototype, "vec_move", void 0);
- return a([ s ], e);
- }(cc.Component);
- n.default = u;
- cc._RF.pop();
- }, {} ],
- DataMgr: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "71647LOZdNAoIjqx+oDJW1W", "DataMgr");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../data/PlayerConst"), c = t("./StorageMgr"), s = t("../data/Enum"), l = t("../GamePlay"), u = t("../../game/data/GameData"), p = cc._decorator, d = p.ccclass, h = (p.property,
- function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- n = e;
- Object.defineProperty(e, "Inst", {
- get: function() {
- n.instance || (n.instance = new n());
- return n.instance;
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.initStorageData = function() {
- var t = c.default.Inst.getStorage(r.DATA_STORAGE_KEY.ifJuliangApiApiActivie);
- t && (r.default.ifJuliangApiApiActivie = t);
- var e = c.default.Inst.getStorage(r.DATA_STORAGE_KEY.ifJuliangApiSencondActivie);
- e && (r.default.ifJuliangApiSencondActivie = e);
- var n = c.default.Inst.getStorage(r.DATA_STORAGE_KEY.average_ecpm);
- n && (r.default.average_ecpm = n);
- };
- e.prototype.updatePropNum = function(t, e, n) {
- void 0 === n && (n = 1);
- mk.console.log("更新道具数据", e, n);
- switch (e) {
- case s.PROPTYPE.Hammer:
- var o = gData.gameData.getProp(u.GameProp.hammerPropNum);
- 0 == t || (o += n);
- gData.gameData.setProp(u.GameProp.hammerPropNum, o);
- l.default.Inst && l.default.Inst.initHammerPropNum();
- break;
- case s.PROPTYPE.Change:
- var i = gData.gameData.getProp(u.GameProp.changePropNum);
- 0 == t || (i += n);
- gData.gameData.setProp(u.GameProp.changePropNum, i);
- l.default.Inst && l.default.Inst.initChanegPropNum();
- break;
- case s.PROPTYPE.Reset:
- var a = gData.gameData.getProp(u.GameProp.resetPropNum);
- 0 == t || (a += n);
- gData.gameData.setProp(u.GameProp.resetPropNum, a);
- l.default.Inst && l.default.Inst.initResetPropNum();
- }
- };
- e.prototype.updateJuliangApi = function() {
- r.default.ifJuliangApiApiActivie ? !r.default.ifJuliangApiSencondActivie && r.default.loginDay > 1 && this.updateJuliangApiSecondActive(!0) : this.updateJuliangApiActive(!0);
- };
- e.prototype.updateJuliangApiActive = function() {
- r.default.ifJuliangApiApiActivie = !0;
- c.default.Inst.setStorage(r.DATA_STORAGE_KEY.ifJuliangApiApiActivie, r.default.ifJuliangApiApiActivie);
- };
- e.prototype.updateJuliangApiSecondActive = function() {
- r.default.ifJuliangApiSencondActivie = !0;
- c.default.Inst.setStorage(r.DATA_STORAGE_KEY.ifJuliangApiSencondActivie, r.default.ifJuliangApiSencondActivie);
- };
- var n;
- e.instance = null;
- return n = a([ d ], e);
- }(cc.Component));
- n.default = h;
- cc._RF.pop();
- }, {
- "../../game/data/GameData": "GameData",
- "../GamePlay": "GamePlay",
- "../data/Enum": "Enum",
- "../data/PlayerConst": "PlayerConst",
- "./StorageMgr": "StorageMgr"
- } ],
- DataSystem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "ee2e153hZxNt7jVksyo3b8q", "DataSystem");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var o = t("./JsbSystem"), i = function() {
- function t() {}
- t.prototype.sendDataEvent = function(t, e) {
- console.log("===[DataSystem", t, e);
- t && e && o.default.sendEvent(t, e);
- };
- t.prototype.sendXYEvent = function(t, e) {
- if (t && e) {
- var n = {
- uin: gData.loginData.uin,
- isFirstDay: 1 == gData.gameData.gameData.loginDays ? 1 : 0,
- umengChannel: gData.appData.umengChannel,
- deviceType: gData.appData.deviceType,
- androidVerison: gData.appData.androidVersion,
- version: gData.appData.appVersion,
- point: t,
- description: e,
- tfChannel: gData.appData.tfChannel
- };
- mk.http.sendData("cp", n);
- }
- };
- return t;
- }();
- n.default = i;
- cc._RF.pop();
- }, {
- "./JsbSystem": "JsbSystem"
- } ],
- Data: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "d713eV0hrtAOLYRFa34h1Rf", "Data");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.Data = void 0;
- var o = function() {
- function t() {}
- t.prototype.init = function() {};
- t.prototype.setAdData = function(t) {
- this.adData = t;
- };
- return t;
- }();
- n.Data = o;
- cc._RF.pop();
- }, {} ],
- EffectMgr: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "640fee877ZCf7bhGdpndfbK", "EffectMgr");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.TIP_SPRITEITEM_TYPE = void 0;
- var r = t("./PoolMgr"), c = t("../view/uiItem/TipItemUI"), s = t("../view/effect/TipSpriteItemUI"), l = cc._decorator, u = l.ccclass, p = (l.property,
- function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- n = e;
- Object.defineProperty(e, "Inst", {
- get: function() {
- n.instance || (n.instance = new n());
- return n.instance;
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.addTip = function(t) {
- r.default.Inst.getPoolPrefab(r.NODEPOOLPREFABTYPE.TipItemUI).getComponent(c.default).init(t);
- };
- e.prototype.addSpriteTip = function(t) {
- r.default.Inst.getPoolPrefab(r.NODEPOOLPREFABTYPE.TipSpriteItemUI).getComponent(s.default).init(t);
- };
- var n;
- e.instance = null;
- return n = a([ u ], e);
- }(cc.Component));
- n.default = p;
- (function(t) {
- t.NormalPass = "NormalPass";
- t.PerfectPass = "PerfectPass";
- })(n.TIP_SPRITEITEM_TYPE || (n.TIP_SPRITEITEM_TYPE = {}));
- cc._RF.pop();
- }, {
- "../view/effect/TipSpriteItemUI": "TipSpriteItemUI",
- "../view/uiItem/TipItemUI": "TipItemUI",
- "./PoolMgr": "PoolMgr"
- } ],
- EffectOpenAndClose: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "ac053zwqaRD6IJmTlQWmefZ", "EffectOpenAndClose");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r, c = cc._decorator, s = c.ccclass, l = c.property, u = c.executeInEditMode, p = c.playOnFocus;
- (function(t) {
- t[t.none = 0] = "none";
- t[t.scale = 1] = "scale";
- t[t.scaleToPoint = 2] = "scaleToPoint";
- t[t.centerUnfolding = 3] = "centerUnfolding";
- t[t.rightIn = 4] = "rightIn";
- })(r || (r = {}));
- var d = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.effect_par = null;
- e.open_effect = r.scale;
- e.close_effect = r.scale;
- e.close_toPoint = "";
- e._play_open = !1;
- e._play_close = !1;
- return e;
- }
- Object.defineProperty(e.prototype, "play_open", {
- get: function() {
- if (this._play_open) {
- this.showEffect();
- this._play_open = !1;
- }
- return this._play_open;
- },
- set: function(t) {
- this._play_open = t;
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(e.prototype, "play_close", {
- get: function() {
- if (this._play_close) {
- this.effect_par.scale = 1;
- this.hideEffect();
- this._play_close = !1;
- }
- return this._play_close;
- },
- set: function(t) {
- this._play_close = t;
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.onLoad = function() {};
- e.prototype.start = function() {
- this.showEffect();
- };
- e.prototype.showEffect = function() {
- if (this.effect_par) switch (this.open_effect) {
- case r.none:
- break;
- case r.scale:
- mk.tween.scale(this.effect_par, .3, void 0, void 0, void 0, "backOut");
- break;
- case r.centerUnfolding:
- mk.tween.scaleX(this.effect_par, .3, void 0, void 0, void 0, "backOut");
- break;
- case r.rightIn:
- this.effect_par.active = !0;
- this.effect_par.x = 1e3;
- cc.tween(this.effect_par).to(.3, {
- x: 0
- }, cc.easeOut(3)).start();
- }
- };
- e.prototype.hideEffect = function(t) {
- var e = this;
- if (this.effect_par) switch (this.close_effect) {
- case r.none:
- t && t();
- break;
- case r.scale:
- mk.tween.scale(this.effect_par, .15, 1, 0, t);
- break;
- case r.scaleToPoint:
- if ("" == this.close_toPoint) console.error("需要配置缩小到终点节点路径"); else {
- var n = this.close_toPoint, o = cc.find(n);
- if (o) {
- var i = o.parent.convertToWorldSpaceAR(o.getPosition()), a = this.effect_par.parent.convertToNodeSpaceAR(i);
- mk.tween.scaleParallelMove(this.effect_par, .3, 1, 0, a, t);
- } else {
- t && t();
- cc.error("关闭时动画节点未找到,请检查!!!!!");
- }
- }
- break;
- case r.rightIn:
- mk.tween.move(this.effect_par, .3, this.effect_par.getPosition(), new cc.Vec2(1e3, this.effect_par.y), function() {
- e.effect_par.active = !1;
- t && t();
- }, "sineOut");
- } else t && t();
- };
- a([ l({
- type: cc.Node,
- displayName: "动画节点"
- }) ], e.prototype, "effect_par", void 0);
- a([ l({
- type: cc.Enum(r),
- displayName: "打开动画节点效果",
- visible: function() {
- return this.effect_par;
- }
- }) ], e.prototype, "open_effect", void 0);
- a([ l({
- type: cc.Enum(r),
- displayName: "关闭动画节点效果",
- visible: function() {
- return this.effect_par;
- }
- }) ], e.prototype, "close_effect", void 0);
- a([ l({
- displayName: "关闭节点缩小到此节点坐标",
- visible: function() {
- return this.close_effect == r.scaleToPoint;
- }
- }) ], e.prototype, "close_toPoint", void 0);
- a([ l({
- displayName: "预览开"
- }) ], e.prototype, "play_open", null);
- a([ l({
- displayName: "预览关"
- }) ], e.prototype, "play_close", null);
- return a([ s, u(), p() ], e);
- }(cc.Component);
- n.default = d;
- cc._RF.pop();
- }, {} ],
- EliminateScore: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "820115PJExHeYx7Jije+u+b", "EliminateScore");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../mgr/PoolMgr"), c = t("../../util/common/ArtNum"), s = cc._decorator, l = s.ccclass, u = (s.property,
- function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- e.prototype.start = function() {};
- e.prototype.init = function(t, e) {
- var n = this;
- this.getComponent(c.default).init(e);
- this.node.opacity = 255;
- this.node.scaleX = this.node.scaleY = 2;
- this.node.setPosition(t.x, t.y);
- var o = this.node.y + 50;
- cc.tween(this.node).to(.2, {
- scale: 1
- }, {
- easing: "smooth"
- }).to(.5, {
- y: o,
- opacity: 0
- }, {
- easing: "smooth"
- }).call(function() {
- r.default.Inst.recyclePoolPrefab(r.NODEPOOLPREFABTYPE.EliminateScore, n.node);
- }).start();
- };
- return a([ l ], e);
- }(cc.Component));
- n.default = u;
- cc._RF.pop();
- }, {
- "../../mgr/PoolMgr": "PoolMgr",
- "../../util/common/ArtNum": "ArtNum"
- } ],
- EncryptUtil: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "4dd7c+x4MRMUpC9k5xzhEUq", "EncryptUtil");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.EncryptUtil = void 0;
- var o = t("./encrypt/hmacSha256"), i = t("./encrypt/aes.js"), a = function() {
- function t() {
- this.options = {
- default_key_size: 2048,
- default_public_exponent: new Uint8Array([ 1, 0, 1 ])
- };
- }
- t.prototype.randomString = function(t) {
- void 0 === t && (t = 32);
- for (var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnoprstuvwxyz123456789", n = e.length, o = "", i = 0; i < t; i++) o += e.charAt(Math.floor(Math.random() * n));
- return o;
- };
- t.prototype.encrypt = function(t, e, n, a) {
- void 0 === a && (a = !0);
- var r = e.substr(0, 16), c = "";
- c = a ? r + t + n : r + t + "\r\n" + n;
- var s = i.enc.Utf8.parse(e), l = i.enc.Utf8.parse(r);
- c = i.enc.Utf8.parse(c);
- var u = i.AES.encrypt(c, s, {
- iv: l,
- mode: i.mode.CBC,
- padding: i.pad.Pkcs7
- });
- u = u.toString();
- var p = o.hmacSha256.Instance.hex_hmac_sha256(e, u);
- return i.enc.Base64.stringify(i.enc.Utf8.parse(r + u + p));
- };
- t.prototype.decrypt = function(t, e, n, o) {
- void 0 === o && (o = !0);
- var a = i.enc.Base64.parse(t).toString(i.enc.Utf8).substr(16), r = a.substr(0, a.length - 64), c = i.enc.Utf8.parse(e), s = i.enc.Utf8.parse(e.substr(0, 16)), l = i.AES.decrypt(r, c, {
- iv: s,
- mode: i.mode.CBC,
- padding: i.pad.Pkcs7
- }), u = i.enc.Utf8.stringify(l);
- u = u.toString();
- return o ? u.slice(16).replace(new RegExp("(.*)" + n), "$1") : u.slice(16).split("\r\n")[0];
- };
- t.prototype.rsaEncrypt = function(t, e) {
- void 0 === e && (e = !1);
- var n = new window.JSEncrypt(this.options);
- n.setPublicKey("-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuwz5V8wt525dMS+A9wOd\nNAjvKgxdyoXYuZSlAJEXLhvJlaXwFCKEsUg/qBBeo4nrRnwaFAjG7ItqbCWR9Ozv\n6oY5tMYQnFFK82XkMGbKm1gG0z9vYKhcNYgHZHi+QKAw4tLLWXWO/QBTGelEXptD\nazlNmdM+8wHOknTcMuIyjc9Yo5qCoNsCJpA465vnREiBezBbKB3rSw+LmrRcZcFk\ns8hmGtjpabcQ8sCxco7mRzVh6/DomNWfNm7hUP6shrrJirwjQtaS51grlScj8KhN\nh+kBoiI4Ad0Xz0GHasK5hAMf3sXDsN61r0An8KTfa/nsYSJDwogPIKkeKAsmw9Df\nEQIDAQAB\n-----END PUBLIC KEY-----");
- return e ? n.encryptLong(t) : n.encrypt(t);
- };
- t.prototype.pack = function(t) {
- var e = new ArrayBuffer(4);
- new DataView(e).setUint32(0, t);
- return this.ab2str(e);
- };
- t.prototype.utf8ArrayToStr = function(t) {
- var e, n, o, i, a, r;
- e = "";
- o = t.length;
- n = 0;
- for (;n < o; ) switch ((i = t[n++]) >> 4) {
- case 0:
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:
- e += String.fromCharCode(i);
- break;
- case 12:
- case 13:
- a = t[n++];
- e += String.fromCharCode((31 & i) << 6 | 63 & a);
- break;
- case 14:
- a = t[n++];
- r = t[n++];
- e += String.fromCharCode((15 & i) << 12 | (63 & a) << 6 | (63 & r) << 0);
- }
- return e;
- };
- t.prototype.utf16ToUtf8 = function(t) {
- if (t) {
- var e, n, o = [], i = t.length;
- for (e = 0; e < i; e++) (n = t.charCodeAt(e)) > 0 && n <= 127 ? o.push(t.charAt(e)) : n >= 128 && n <= 2047 ? o.push(String.fromCharCode(192 | n >> 6 & 31), String.fromCharCode(128 | 63 & n)) : n >= 2048 && n <= 65535 && o.push(String.fromCharCode(224 | n >> 12 & 15), String.fromCharCode(128 | n >> 6 & 63), String.fromCharCode(128 | 63 & n));
- return o.join("");
- }
- };
- t.prototype.utf8ToUtf16 = function(t) {
- if (t) {
- var e, n, o, i = [], a = t.length;
- for (e = 0; e < a; e++) {
- (n = []).push(t.charCodeAt(e));
- if (0 == (n[0] >> 7 & 255)) i.push(t.charAt(e)); else if (6 == (n[0] >> 5 & 255)) {
- n.push(t.charCodeAt(++e));
- (o = []).push(31 & n[0]);
- o.push(63 & n[1]);
- i.push(String.fromCharCode(o[0] << 6 | o[1]));
- } else if (14 == (n[0] >> 4 & 255)) {
- n.push(t.charCodeAt(++e));
- n.push(t.charCodeAt(++e));
- (o = []).push(n[0] << 4 | n[1] >> 2 & 15);
- o.push((3 & n[1]) << 6 | 63 & n[2]);
- i.push(String.fromCharCode(o[0] << 8 | o[1]));
- }
- }
- return i.join("");
- }
- };
- t.prototype.ab2str = function(t) {
- return String.fromCharCode.apply(null, new Uint8Array(t));
- };
- t.prototype.uint8ArrayToString = function(t) {
- for (var e = "", n = 0; n < t.length; n++) e += String.fromCharCode(t[n]);
- return e;
- };
- t.prototype.stringToUint8Array = function(t) {
- for (var e = [], n = 0, o = t.length; n < o; ++n) e.push(t.charCodeAt(n));
- return new Uint8Array(e);
- };
- t.prototype.str2ab = function(t) {
- for (var e = new ArrayBuffer(t.length), n = new Uint8Array(e), o = 0, i = t.length; o < i; o++) n[o] = t.charCodeAt(o);
- return e;
- };
- return t;
- }();
- n.EncryptUtil = a;
- cc._RF.pop();
- }, {
- "./encrypt/aes.js": "aes",
- "./encrypt/hmacSha256": "hmacSha256"
- } ],
- Enum: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "90742o/tMhL2L7YJHTjsfH+", "Enum");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.SURPRISETASKTYPE = n.VIDEOADSTATE = n.VIDEOTYPE = n.PROPTYPE = n.CHECKDIR = void 0;
- var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- return a([ c ], e);
- }(cc.Component));
- n.default = s;
- (function(t) {
- t[t.Above = 0] = "Above";
- t[t.Below = 1] = "Below";
- t[t.Left = 2] = "Left";
- t[t.Right = 2] = "Right";
- })(n.CHECKDIR || (n.CHECKDIR = {}));
- (function(t) {
- t.Null = "null";
- t.Hammer = "10001";
- t.Reset = "10002";
- t.Change = "10003";
- })(n.PROPTYPE || (n.PROPTYPE = {}));
- (function(t) {
- t[t.Null = 0] = "Null";
- t[t.GetStrength = 1] = "GetStrength";
- t[t.LevelRedPacket = 2] = "LevelRedPacket";
- t[t.PassRedPacket = 3] = "PassRedPacket";
- t[t.GetProp = 4] = "GetProp";
- t[t.OpenRedPacket = 5] = "OpenRedPacket";
- t[t.Turnplate = 6] = "Turnplate";
- })(n.VIDEOTYPE || (n.VIDEOTYPE = {}));
- (function(t) {
- t[t.LoadFail = 0] = "LoadFail";
- })(n.VIDEOADSTATE || (n.VIDEOADSTATE = {}));
- (function(t) {
- t[t.Null = 0] = "Null";
- t[t.Prop = 1] = "Prop";
- t[t.EliminateCell = 2] = "EliminateCell";
- t[t.ContinuousEliminateCell = 3] = "ContinuousEliminateCell";
- t[t.VideoNum = 4] = "VideoNum";
- t[t.LevelRedPacket = 5] = "LevelRedPacket";
- t[t.DoubleLevelRedPacket = 6] = "DoubleLevelRedPacket";
- t[t.Score = 7] = "Score";
- })(n.SURPRISETASKTYPE || (n.SURPRISETASKTYPE = {}));
- cc._RF.pop();
- }, {} ],
- EventSystem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "aab27lcX9pAz5SQ16UkErbh", "EventSystem");
- var o = this && this.__spreadArrays || function() {
- for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length;
- var o = Array(t), i = 0;
- for (e = 0; e < n; e++) for (var a = arguments[e], r = 0, c = a.length; r < c; r++,
- i++) o[i] = a[r];
- return o;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var i = function() {
- function t() {
- this.listeners = {};
- }
- t.prototype.register = function(t, e, n) {
- this.listeners[t] || (this.listeners[t] = []);
- for (var o = this.listeners[t], i = o.length, r = 0; r < i; r++) if (o[r].compare(n)) {
- console.warn("[EventMgr]重复添加监听,请检查事件:", t);
- return;
- }
- this.listeners[t].push(new a(e, n));
- };
- t.prototype.remove = function(t, e, n) {
- var o = this.listeners[t];
- if (o) {
- for (var i = o.length, a = 0; a < i; a++) if (o[a].compare(n)) {
- o.splice(a, 1);
- break;
- }
- 0 == o.length && delete this.listeners[t];
- }
- };
- t.prototype.emit = function(t) {
- for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
- var i = this.listeners[t];
- if (i) {
- for (var a = i.concat(), r = a.length, c = 0; c < r; c++) {
- var s = a[c];
- s.notify.apply(s, o(e, [ t ]));
- }
- a = null;
- }
- };
- return t;
- }();
- n.default = i;
- var a = function() {
- function t(t, e) {
- this.callback = null;
- this.target = null;
- this.callback = t;
- this.target = e;
- }
- t.prototype.notify = function() {
- for (var t, e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
- var i = this;
- (t = i.callback).call.apply(t, o([ i.target ], e));
- };
- t.prototype.compare = function(t) {
- return t == this.target;
- };
- return t;
- }();
- cc._RF.pop();
- }, {} ],
- FileUtil: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "169f6jrZC1DK61LjHa0l1kK", "FileUtil");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var o, i = function() {
- function t() {}
- t.prototype.openLocalFile = function(t, e) {
- var n = document.getElementById("file_input");
- if (!n) {
- (n = document.createElement("input")).id = "file_input";
- n.setAttribute("id", "file_input");
- n.setAttribute("type", "file");
- n.setAttribute("class", "fileToUpload");
- n.style.opacity = "0";
- n.style.position = "absolute";
- n.setAttribute("left", "-999px");
- document.body.appendChild(n);
- }
- t = t || ".*";
- n.setAttribute("accept", t);
- n.onchange = function() {
- var t = n.files;
- if (t && t.length > 0) {
- var o = t[0];
- e && e(o);
- }
- };
- n.click();
- };
- t.prototype.readLocalFile = function(t, e, n) {
- var i = new FileReader();
- i.onload = function() {
- n && (i.readyState == FileReader.DONE ? n(i.result) : n(null));
- };
- switch (e) {
- case o.DATA_URL:
- i.readAsDataURL(t);
- break;
- case o.TEXT:
- i.readAsText(t);
- break;
- case o.BINARY:
- i.readAsBinaryString(t);
- break;
- case o.ARRAYBUFFER:
- i.readAsArrayBuffer(t);
- }
- };
- t.prototype.saveForBrowser = function(t, e) {
- if (cc.sys.isBrowser) {
- console.log("浏览器");
- var n = new Blob([ e ], {
- type: "application/json"
- }), o = document.createElement("a");
- o.download = t;
- o.innerHTML = "Download File";
- if (null != window.webkitURL) o.href = window.webkitURL.createObjectURL(n); else {
- o.href = window.URL.createObjectURL(n);
- o.style.display = "none";
- document.body.appendChild(o);
- }
- o.click();
- }
- };
- return t;
- }();
- n.default = i;
- (function(t) {
- t[t.DATA_URL = 0] = "DATA_URL";
- t[t.TEXT = 1] = "TEXT";
- t[t.BINARY = 2] = "BINARY";
- t[t.ARRAYBUFFER = 3] = "ARRAYBUFFER";
- })(o || (o = {}));
- cc._RF.pop();
- }, {} ],
- FissionData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "38c620VyHFONacULG888Cay", "FissionData");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- });
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.FissionData = void 0;
- var a = function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- return e;
- }(t("../../../mk/data/Data").Data);
- n.FissionData = a;
- cc._RF.pop();
- }, {
- "../../../mk/data/Data": "Data"
- } ],
- FlyNode: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "fa881XikspIl7sX7YCTSOCC", "FlyNode");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.start_move_time = .1;
- e.end_move_time = .3;
- e.item_count = 10;
- e.fly_data = {
- node_p: null,
- item_count: e.item_count,
- item_scale: [ .3, 1 ],
- item_sf: null,
- start_pos: cc.Vec2.ZERO,
- end_pos: cc.Vec2.ZERO,
- complete_call: null
- };
- e.node_fly = null;
- e.arr_item = [];
- return e;
- }
- e.prototype.onLoad = function() {
- this.node.on("ui-fly-node", this.getNodeProgress, this);
- };
- e.prototype.getNodeProgress = function(t) {
- t.node_p && (this.fly_data.node_p = t.node_p);
- t.item_count && (this.fly_data.item_count = t.item_count);
- t.item_scale && (this.fly_data.item_scale = t.item_scale);
- t.item_sf && (this.fly_data.item_sf = t.item_sf);
- t.start_pos && (this.fly_data.start_pos = t.start_pos);
- t.end_pos && (this.fly_data.end_pos = t.end_pos);
- t.complete_call && (this.fly_data.complete_call = t.complete_call);
- var e = this.fly_data.node_p, n = this.fly_data.item_count, o = this.fly_data.item_scale, i = this.fly_data.item_sf, a = this.fly_data.start_pos;
- if (!this.node_fly) {
- this.node_fly = new cc.Node("node_fly");
- this.node_fly.parent = e;
- }
- for (var r = 0; r < n; r++) {
- var c = this.arr_item.shift();
- if (!c || c && c.parent) {
- c = new cc.Node("node_item");
- this.arr_item.push(c);
- }
- c.stopAllActions();
- c.parent = this.node_fly;
- c.setPosition(a);
- c.angle = this.range(-45, 45, !0);
- var s = this.range(o[0], o[1], !1);
- c.scale = s;
- var l = cc.v2(this.range(-1, 1, !1), this.range(-1, 1, !1));
- l = l.normalize();
- var u = cc.v2(this.range(10, 80, !1) * l.x, this.range(10, 80, !1) * l.y), p = a.add(u);
- (c.getComponent(cc.Sprite) || c.addComponent(cc.Sprite)).spriteFrame = i;
- this.movePos(c, p);
- }
- };
- e.prototype.movePos = function(t, e) {
- var n = this, o = this.range(.3, 1, !1), i = cc.tween().to(o, {
- position: new cc.Vec2(e)
- }, {
- easing: "sineOut"
- }), a = cc.tween().delay(1.5 * this.start_move_time), r = cc.tween().to(this.end_move_time, {
- position: this.fly_data.end_pos
- }, {
- easing: "sineOut"
- }), c = cc.tween().to(this.end_move_time, {
- scale: 1
- }), s = cc.tween().to(this.end_move_time, {
- angle: 0
- }), l = cc.tween().parallel(r, c, s), u = cc.tween().call(function() {
- n.fly_data.complete_call && n.fly_data.complete_call();
- n.fly_data.complete_call = null;
- n.arr_item.push(t);
- t.removeFromParent();
- });
- cc.tween(t).then(i).then(a).then(l).then(u).start();
- };
- e.prototype.range = function(t, e, n) {
- void 0 === n && (n = !0);
- var o = e - t;
- if (o > 0) {
- var i = t + 16777215 * Math.random() % o;
- return n ? Math.floor(i) : i;
- }
- return t;
- };
- e.prototype.onDestroy = function() {
- for (var t = this.arr_item.length, e = 0; e < t; e++) if (cc.isValid(this.arr_item[0])) {
- this.arr_item[0].destroy();
- this.arr_item.shift();
- }
- };
- a([ s({
- displayName: "起始阶段消耗时间"
- }) ], e.prototype, "start_move_time", void 0);
- a([ s({
- displayName: "结束阶段消耗时间"
- }) ], e.prototype, "end_move_time", void 0);
- a([ s({
- displayName: "item默认数量"
- }) ], e.prototype, "item_count", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- FlySystem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "6ac05b5UF5BP4yjhbw+c0f0", "FlySystem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = t("../../game/data/GameData"), l = cc._decorator.ccclass, u = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.is_new_cb = !0;
- return e;
- }
- e.prototype.onLoad = function() {
- mk.fly = this;
- };
- e.prototype.PlayCoinAnim = function(t, e, n, o, i) {
- void 0 === t && (t = 0);
- void 0 === o && (o = "");
- void 0 === i && (i = null);
- return r(this, void 0, void 0, function() {
- var a, r, s, l, u, p, d;
- return c(this, function(c) {
- switch (c.label) {
- case 0:
- a = 0;
- c.label = 1;
- case 1:
- return a < e ? [ 4, mk.pool.getPrefab("game/prefab/coin") ] : [ 3, 5 ];
- case 2:
- r = c.sent();
- s = "game/texture/coin/" + t;
- return [ 4, mk.loader.load(s, cc.SpriteFrame) ];
- case 3:
- l = c.sent();
- r.getComponent(cc.Sprite).spriteFrame = l;
- r.setParent(this.node);
- r.scale = mk.math.random(.56, .84, !1);
- r.angle = mk.math.random(-45, 45, !1);
- u = (u = cc.v2(mk.math.random(-1, 1, !1), mk.math.random(-1, 1, !1))).normalize();
- p = cc.v2(mk.math.random(10, 160, !1) * u.x, mk.math.random(10, 160, !1) * u.y);
- d = n.add(p);
- r.setPosition(n);
- this.FlyIn(t, r, d, o, i);
- c.label = 4;
- case 4:
- a++;
- return [ 3, 1 ];
- case 5:
- this.is_new_cb = !0;
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.FlyIn = function(t, e, n, o, i) {
- var a = this;
- void 0 === o && (o = null);
- void 0 === i && (i = null);
- cc.tween(e).to(mk.math.random(.3, .6, !1), {
- position: cc.v3(n)
- }, cc.easeSineInOut()).call(function() {
- a.FlyOut(t, e, o, i);
- }).start();
- };
- e.prototype.FlyOut = function(t, e, n, o) {
- var i = this;
- void 0 === o && (o = null);
- var a = mk.math.random(.3, 1, !1);
- cc.tween(e).to(a, {
- scale: .8
- }).start();
- var r = null, c = null;
- if ("string" == typeof n) {
- if ("" == n) {
- var l = "";
- if (t == s.RewardType.redBag) l = "Canvas/界面层/game/node_ui/顶部个人信息/红包币按钮/icon_hb"; else {
- if (t != s.RewardType.pigRmb) {
- mk.pool.return("game/prefab/coin", e);
- return;
- }
- l = "Canvas/界面层/game/node_ui/顶部个人信息/金猪币按钮/icon_zb";
- }
- n = l;
- }
- var u = (c = cc.find(n)).parent.convertToWorldSpaceAR(c.getPosition());
- r = this.node.convertToNodeSpaceAR(u);
- } else r = this.node.convertToNodeSpaceAR(n);
- cc.tween(e).to(a, {
- position: cc.v3(r)
- }, cc.easeSineOut()).call(function() {
- console.log("end_pos ", e.position);
- mk.pool.return("game/prefab/coin", e);
- c && cc.tween(c).to(.1, {
- scale: 1.2
- }).to(.05, {
- scale: 1
- }).start();
- if (null != o) {
- i.is_new_cb && o();
- i.is_new_cb = !1;
- }
- i.iconScale(t);
- }).start();
- };
- e.prototype.iconScale = function(t) {
- var e;
- 1 === t ? e = gData.gameData.gameStyle.icon_hb : 3 === t && (e = gData.gameData.gameStyle.icon_zb);
- if (e) {
- var n = cc.tween().to(.05, {
- scale: .9
- }), o = cc.tween().to(.05, {
- scale: 1
- }), i = cc.tween().sequence(n, o);
- cc.tween(e).then(i).repeat(2).start();
- }
- };
- return a([ l ], e);
- }(cc.Component);
- n.default = u;
- cc._RF.pop();
- }, {
- "../../game/data/GameData": "GameData"
- } ],
- ForceUpdate: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "4cd23/2Uq9EU4w1e97Etnp0", "ForceUpdate");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../../mk/system/JsbSystem"), c = t("../../data/AppData"), s = t("../../data/GameData"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.labUpdate = null;
- e.labFix = null;
- e.btnSure = null;
- e.btnCancel = null;
- e.fileProgress = null;
- e.labPro = null;
- return e;
- }
- e.prototype.start = function() {
- this.setText();
- };
- e.prototype.clickDownLoad = function() {
- var t = this;
- mk.audio.playEffect("ef_button_click");
- this.btnSure.active = !1;
- this.btnCancel.active = !1;
- this.fileProgress.node.parent.active = !0;
- var e = gData.appData.installUrl, n = e.split("/"), o = n[n.length - 1];
- console.log("apkName ", o);
- var i = o.replace(".apk", "");
- if (r.default.isFileExist(i)) {
- console.log("installUrl ", i);
- r.default.installApk(i);
- return null;
- }
- r.default.downFile2Local(e, o, function() {
- setTimeout(function() {
- r.default.installApk(i);
- }, 1);
- }, function() {
- mk.tip.pop("下载失败,请检查网络后重试");
- t.fileProgress.node.parent.active = !1;
- t.fileProgress.fillRange = 0;
- t.labPro.string = "0%";
- t.btnSure.active = !0;
- t.btnCancel.active = !0;
- }, function(e, n, o) {
- var i = n / o;
- t.setPro(i);
- });
- };
- e.prototype.setPro = function(t) {
- this.labPro.string = Math.floor(100 * t) + "%";
- this.fileProgress.fillRange = t;
- };
- e.prototype.clickSkip = function() {
- mk.audio.playEffect(s.AUDIO_TYPE.button);
- mk.ui.closePanel(this.node.name);
- gData.appData.updateState = c.UpdateState.ForceUpdateFinish;
- };
- e.prototype.setText = function() {
- this.labUpdate.string = gData.appData.updateDes;
- this.labFix.string = gData.appData.fixDes;
- };
- a([ p(cc.Label) ], e.prototype, "labUpdate", void 0);
- a([ p(cc.Label) ], e.prototype, "labFix", void 0);
- a([ p(cc.Node) ], e.prototype, "btnSure", void 0);
- a([ p(cc.Node) ], e.prototype, "btnCancel", void 0);
- a([ p(cc.Sprite) ], e.prototype, "fileProgress", void 0);
- a([ p(cc.Label) ], e.prototype, "labPro", void 0);
- return a([ u ], e);
- }(cc.Component);
- n.default = d;
- cc._RF.pop();
- }, {
- "../../../mk/system/JsbSystem": "JsbSystem",
- "../../data/AppData": "AppData",
- "../../data/GameData": "GameData"
- } ],
- FrameAnimation: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "efc323JaDlLPYgh9HsZn0PL", "FrameAnimation");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = r.executeInEditMode, u = r.playOnFocus, p = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.images = [];
- e.frameTime = .1;
- e.playTimes = 0;
- e.reverse = !1;
- e.autoPlayOnLoad = !0;
- e.autoDestroy = !1;
- e.onFrameCall = new cc.Component.EventHandler();
- e.onCompleteCall = new cc.Component.EventHandler();
- e._edit_play = !1;
- e.edit_playing = !1;
- e.frameNum = 0;
- e.frameIndex = 0;
- e.nextFrameIndex = 0;
- e.running = !0;
- e.time = 0;
- e.currentTimes = 0;
- return e;
- }
- Object.defineProperty(e.prototype, "edit_play", {
- get: function() {
- if (this._edit_play && !this.edit_playing) {
- this.edit_playing = !0;
- this.play();
- }
- this.running = this._edit_play;
- return this._edit_play;
- },
- set: function(t) {
- this._edit_play = t;
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.onLoad = function() {
- this.comp_spr = this.getComponent(cc.Sprite);
- };
- e.prototype.start = function() {
- 0 != this.images.length && (this.frameNum = this.images.length);
- if (this.reverse) {
- this.frameIndex = this.frameNum - 1;
- this.nextFrameIndex = this.frameNum - 1;
- }
- this.running = this.autoPlayOnLoad;
- };
- e.prototype.update = function(t) {
- if (this.running && 0 != this.images.length) if (0 != this.playTimes && this.currentTimes > this.playTimes) this.running = !1; else {
- this.time -= t;
- if (this.time <= 0) {
- this.time = this.frameTime;
- if (this.reverse) {
- this.frameIndex = (this.nextFrameIndex + this.frameNum) % this.frameNum;
- this.nextFrameIndex = this.frameIndex - 1;
- } else {
- this.frameIndex = this.nextFrameIndex % this.frameNum;
- this.nextFrameIndex = this.frameIndex + 1;
- }
- this.playing();
- 0 == this.frameIndex && this.playEnd();
- }
- }
- };
- e.prototype.playing = function() {
- this.comp_spr.spriteFrame = this.images[this.frameIndex];
- if (this.comp_spr.spriteFrame) {
- var t = this.comp_spr.spriteFrame.getRect();
- this.node.width = t.width;
- this.node.height = t.height;
- }
- this.onFrameCall.emit([]);
- null != this.frameCallback && this.frameCallback(this.frameIndex);
- };
- e.prototype.playEnd = function() {
- this.currentTimes++;
- this.node.emit("completeTimes", this.currentTimes);
- null != this.completeTimesCallback && this.completeTimesCallback(this.currentTimes);
- if (0 != this.playTimes && this.currentTimes > this.playTimes) {
- this.node.emit("complete");
- this.onCompleteCall.emit([]);
- null != this.completeCallback && this.completeCallback();
- this.autoDestroy && this.node.destroy();
- this._edit_play = !1;
- this.edit_playing = !1;
- }
- };
- e.prototype.play = function(t, e) {
- void 0 === t && (t = null);
- void 0 === e && (e = null);
- this.frameCallback = t;
- this.completeCallback = e;
- this.running = !0;
- this.frameIndex = 0;
- this.currentTimes = 0;
- this.time = this.frameTime;
- if (0 != this.images.length) {
- this.frameNum = this.images.length;
- if (this.reverse) {
- this.frameIndex = this.frameNum - 1;
- this.nextFrameIndex = this.frameNum - 1;
- }
- }
- this.comp_spr || (this.comp_spr = this.getComponent(cc.Sprite));
- this.comp_spr && (this.comp_spr.spriteFrame = this.images[0]);
- if (this.comp_spr.spriteFrame) {
- var n = this.comp_spr.spriteFrame.getRect();
- this.node.width = n.width;
- this.node.height = n.height;
- }
- };
- e.prototype.gotoAndPlay = function(t) {
- this.comp_spr || (this.comp_spr = this.getComponent(cc.Sprite));
- this.running = !0;
- this.frameIndex = t;
- this.nextFrameIndex = t;
- this.currentTimes = 0;
- };
- e.prototype.stop = function() {
- this.running = !1;
- };
- e.prototype.gotoAndStop = function(t) {
- this.frameIndex = t;
- this.frameIndex < 0 && (this.frameIndex = 0);
- this.frameIndex > this.images.length - 1 && (this.frameIndex = this.images.length - 1);
- this.comp_spr || (this.comp_spr = this.getComponent(cc.Sprite));
- this.comp_spr.spriteFrame = this.images[this.frameIndex];
- if (this.comp_spr.spriteFrame) {
- var e = this.comp_spr.spriteFrame.getRect();
- this.node.width = e.width;
- this.node.height = e.height;
- }
- this.running = !1;
- };
- e.prototype.isPlayEnd = function() {
- return this.frameIndex == this.frameNum;
- };
- a([ s({
- displayName: "精灵纹理",
- type: cc.SpriteFrame
- }) ], e.prototype, "images", void 0);
- a([ s({
- displayName: "每帧间隔"
- }) ], e.prototype, "frameTime", void 0);
- a([ s({
- displayName: "播放次数"
- }) ], e.prototype, "playTimes", void 0);
- a([ s({
- displayName: "是否倒播",
- tooltip: "勾选,倒着播放,不钩,顺序播放"
- }) ], e.prototype, "reverse", void 0);
- a([ s({
- displayName: "自动播放"
- }) ], e.prototype, "autoPlayOnLoad", void 0);
- a([ s({
- displayName: "自动销毁",
- tooltip: "播完自动销毁"
- }) ], e.prototype, "autoDestroy", void 0);
- a([ s({
- displayName: "每帧回调",
- type: cc.Component.EventHandler
- }) ], e.prototype, "onFrameCall", void 0);
- a([ s({
- displayName: "结束回调",
- type: cc.Component.EventHandler
- }) ], e.prototype, "onCompleteCall", void 0);
- a([ s({
- displayName: "编辑器预览"
- }) ], e.prototype, "edit_play", null);
- return a([ c, l(), u() ], e);
- }(cc.Component);
- n.default = p;
- cc._RF.pop();
- }, {} ],
- FunBtns: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "3bf10Wxox5IQLcQoa17hGCb", "FunBtns");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.btn1 = null;
- e.btn2 = null;
- e.btn3 = null;
- e.btn4 = null;
- e.btn5 = null;
- e.btn6 = null;
- e.btn7 = null;
- e.btn8 = null;
- e.btn_redeem = null;
- return e;
- }
- e.prototype.onLoad = function() {
- gData.gameData.funBtns = this;
- };
- e.prototype.start = function() {};
- e.prototype.init = function() {
- for (var t = gData.gameData.funOpenData, e = 0; e < t.length; e++) {
- var n = this["btn" + (e + 1)];
- n && (n.active = "1" == t[e]);
- }
- this.updateRedeem();
- };
- e.prototype.updateRedeem = function() {
- this.btn_redeem.active = gData.redeem.showBtn;
- };
- e.prototype.update = function() {
- if (gData.redeem.init_btnChange) {
- this.updateRedeem();
- gData.redeem.init_btnChange = !1;
- }
- };
- a([ s({
- type: cc.Node,
- displayName: "互推"
- }) ], e.prototype, "btn1", void 0);
- a([ s({
- type: cc.Node,
- displayName: "转盘"
- }) ], e.prototype, "btn2", void 0);
- a([ s({
- type: cc.Node,
- displayName: "裂变"
- }) ], e.prototype, "btn3", void 0);
- a([ s({
- type: cc.Node,
- displayName: "存钱罐"
- }) ], e.prototype, "btn4", void 0);
- a([ s({
- type: cc.Node,
- displayName: "福袋"
- }) ], e.prototype, "btn5", void 0);
- a([ s({
- type: cc.Node,
- displayName: "签到"
- }) ], e.prototype, "btn6", void 0);
- a([ s({
- type: cc.Node,
- displayName: "常规提现"
- }) ], e.prototype, "btn7", void 0);
- a([ s({
- type: cc.Node,
- displayName: "气泡红包组"
- }) ], e.prototype, "btn8", void 0);
- a([ s({
- type: cc.Node,
- displayName: "福利礼包"
- }) ], e.prototype, "btn_redeem", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- GData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "c968fZ1+W1BDIpoLXI/0qsN", "GData");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.Fun = void 0;
- var o, i = t("./AppData"), a = t("./GameData"), r = t("./HttpData"), c = t("./LoginData"), s = t("./StorageData"), l = t("./WechatData"), u = t("./module/HelpData"), p = t("./module/PigBankData"), d = t("./module/TurnableData"), h = t("./module/SignData"), f = t("./module/FissionData"), y = t("./AdData"), g = t("./module/RewardData"), m = t("./module/CashNormalData"), _ = t("./module/ReceiptNoticeData"), v = t("./module/BlessingBagData"), b = t("./module/CashProData"), D = t("./module/RedBagCashData"), S = t("./module/RedCodeData"), A = t("./module/RedeemData"), w = t("./module/MoreGameData"), P = t("./module/SettingData"), O = t("./module/GuideData"), k = t("./module/GuideWeakData"), I = function() {
- function t() {
- this.init();
- }
- t.prototype.init = function() {
- this.appData = new i.AppData();
- this.loginData = new c.LoginData();
- this.gameData = new a.GameData();
- this.wechatData = new l.WechatData();
- this.httpData = new r.HttpData();
- this.adData = new y.AdData();
- this.storageData = new s.StorageData();
- this.guideData = new O.GuideData();
- this.guideWeakData = new k.default();
- this.reward = new g.RewardData();
- this.help = new u.HelpData();
- this.turnable = new d.TurnableData();
- this.fission = new f.FissionData();
- this.pigbank = new p.PigBankData();
- this.sign = new h.SignData();
- this.receiptNotice = new _.ReceiptNoticeData();
- this.redBagCash = new D.RedBagCashData();
- this.cashNormal = new m.CashNormalData();
- this.setting = new P.SettingData();
- this.moreGame = new w.MoreGameData();
- this.blessingBag = new v.BlessingBagData();
- this.cashPro = new b.default();
- this.redCodeData = new S.default();
- this.redeem = new A.default();
- this.moduleData = new Map();
- this.moduleData.set(o.moreGame, this.moreGame);
- this.moduleData.set(o.turnable, this.turnable);
- this.moduleData.set(o.fission, this.fission);
- this.moduleData.set(o.pigbank, this.pigbank);
- this.moduleData.set(o.blessingBag, this.blessingBag);
- this.moduleData.set(o.sign, this.sign);
- this.moduleData.set(o.cashNormal, this.cashNormal);
- this.moduleData.set(o.redBagCash, this.redBagCash);
- this.moduleData.set(o.redeem, this.redeem);
- };
- return t;
- }();
- (function(t) {
- t[t.moreGame = 1] = "moreGame";
- t[t.turnable = 2] = "turnable";
- t[t.fission = 3] = "fission";
- t[t.pigbank = 4] = "pigbank";
- t[t.blessingBag = 5] = "blessingBag";
- t[t.sign = 6] = "sign";
- t[t.cashNormal = 7] = "cashNormal";
- t[t.redBagCash = 8] = "redBagCash";
- t[t.redeem = 9] = "redeem";
- })(o = n.Fun || (n.Fun = {}));
- window.gData = new I();
- cc._RF.pop();
- }, {
- "./AdData": "AdData",
- "./AppData": "AppData",
- "./GameData": "GameData",
- "./HttpData": "HttpData",
- "./LoginData": "LoginData",
- "./StorageData": "StorageData",
- "./WechatData": "WechatData",
- "./module/BlessingBagData": "BlessingBagData",
- "./module/CashNormalData": "CashNormalData",
- "./module/CashProData": "CashProData",
- "./module/FissionData": "FissionData",
- "./module/GuideData": "GuideData",
- "./module/GuideWeakData": "GuideWeakData",
- "./module/HelpData": "HelpData",
- "./module/MoreGameData": "MoreGameData",
- "./module/PigBankData": "PigBankData",
- "./module/ReceiptNoticeData": "ReceiptNoticeData",
- "./module/RedBagCashData": "RedBagCashData",
- "./module/RedCodeData": "RedCodeData",
- "./module/RedeemData": "RedeemData",
- "./module/RewardData": "RewardData",
- "./module/SettingData": "SettingData",
- "./module/SignData": "SignData",
- "./module/TurnableData": "TurnableData"
- } ],
- GameConst: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "ed7fdH7Y8NJRYSt7QROjbfx", "GameConst");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator.ccclass, c = function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- n = e;
- e.loadConfig = function() {
- return new Promise(function(t) {
- n.res_dirArr.forEach(function(e) {
- cc.resources.loadDir(e, function() {}, function() {
- n.config_level = cc.resources.get("game/config/level").json;
- t(null);
- });
- });
- });
- };
- var n;
- e.res_dirArr = [ "game/config" ];
- e.config_level = null;
- e.iconIndex = 6;
- e.maxIconIndex = 2;
- e.col_num = 8;
- e.row_num = 8;
- return n = a([ r ], e);
- }(cc.Component);
- n.default = c;
- cc._RF.pop();
- }, {} ],
- GameData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "0d160Vl85tFfpeQsIi4Jddb", "GameData");
- var o = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, i = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.VideoAdType = n.DataEventId = n.EVENT_TYPE = n.AUDIO_TYPE = n.RewardType = n.RewardState = n.GameProp = n.GameData = void 0;
- var a, r = function() {
- function t() {
- this.dataFinish = !1;
- this.savePropFinish = !1;
- this.savePropsFinish = !1;
- this.getPropsFnish = !1;
- this.configs = {};
- this.funOpenData = [];
- this.gameData = null;
- this.init_coin = !1;
- this.updatePiggyBankValue = !1;
- this.init_head = !1;
- this.init_red_point = !0;
- this.props = new Map();
- this.pools = [ {
- url: "game/prefab/tips",
- num: 20
- }, {
- url: "game/prefab/coin",
- num: 20
- } ];
- this.gameStyle = null;
- this.funBtns = null;
- }
- t.prototype.init = function() {
- return o(this, void 0, void 0, function() {
- var t, e;
- return i(this, function(n) {
- switch (n.label) {
- case 0:
- t = {
- versionCode: gData.appData.version
- };
- return [ 4, mk.http.sendData("getAllConfigInfo", t) ];
- case 1:
- if (0 != (e = n.sent()).errcode) {
- -10003 != e.errcode && -20003 != e.errcode || gData.loginData.reload();
- return [ 2 ];
- }
- mk.console.logSingle("getAllConfigInfo", e.data);
- this.initConfigs(e.data);
- t = {};
- return [ 4, mk.http.sendData("getInfoCrypt", t) ];
- case 2:
- if (0 != (e = n.sent()).errcode) return [ 2 ];
- mk.console.logSingle("getInfoCrypt", e.data);
- this.initPlayerProp(e.data);
- this.initProps(e.data.gameUserData);
- gData.guideData.init();
- gData.guideWeakData.init();
- gData.moduleData.forEach(function(t) {
- t.init();
- });
- t = {};
- return [ 4, mk.http.sendData("user/adShowConfig", t) ];
- case 3:
- if (0 != (e = n.sent()).errcode) return [ 2 ];
- this.adShowConfig = e.data;
- mk.console.logSingle("user/adShowConfig", e.data);
- this.dataFinish = !0;
- return [ 2 ];
- }
- });
- });
- };
- t.prototype.initConfigs = function(t) {
- this.configs = t;
- this.funOpenData = this.configs.ServerConfig.Functionswitch.split(",");
- };
- t.prototype.initPlayerProp = function(t) {
- this.gameData = new c();
- this.gameData.cashIndex = t.cashIndex;
- this.gameData.gameUserData = t.gameUserData;
- this.gameData.isSignInToday = t.isSignInToday;
- this.gameData.isWithdrawable = t.isWithdrawable;
- this.gameData.lastTime = t.lastTime;
- this.gameData.loginDays = t.loginDays;
- this.gameData.newPlayer = t.newPlayer;
- this.gameData.initPiggyBank(t.piggyBank);
- this.gameData.piggyBankCashTimes = t.piggyBankCashTimes;
- this.gameData.redMoney = null == t.redMoney ? 0 : t.redMoney;
- this.gameData.signInDay = t.signInDay;
- this.gameData.totalPiggyBankCashTimes = t.totalPiggyBankCashTimes;
- this.gameData.turntableTimes = t.turntableTimes;
- this.gameData.userTuCaoInfo = t.userTuCaoInfo;
- this.gameData.versioncfg = t.versioncfg;
- this.gameData.isFirstRedMoney = t.isFirstRedMoney;
- gData.adData.watchNumToday = null == t.dayVideoTimesForRedMoney ? 0 : t.dayVideoTimesForRedMoney;
- };
- t.prototype.setProp = function(t, e) {
- return o(this, void 0, void 0, function() {
- var n;
- return i(this, function(o) {
- switch (o.label) {
- case 0:
- n = {
- key: t + "",
- value: e + ""
- };
- this.props.set(t, e);
- return [ 4, mk.http.sendData("savePlayerProp", n) ];
- case 1:
- o.sent();
- this.savePropFinish = !0;
- return [ 2 ];
- }
- });
- });
- };
- t.prototype.setProps = function(t) {
- return o(this, void 0, void 0, function() {
- var e, n, o;
- return i(this, function(i) {
- switch (i.label) {
- case 0:
- e = {};
- for (o = 0; o < t.length; o++) e[t[o].key + ""] = t[o].value + "";
- n = {
- needProp: e
- };
- for (o = 0; o < t.length; o++) this.props.set(t[o].key, t[o].value);
- return [ 4, mk.http.sendData("saveAllPlayerProp", n) ];
- case 1:
- i.sent();
- this.savePropsFinish = !0;
- return [ 2 ];
- }
- });
- });
- };
- t.prototype.getProp = function(t) {
- if (null == this.props) return 0;
- var e = this.props.get(t);
- return null == e ? 0 : e;
- };
- t.prototype.getAllProps = function() {
- return o(this, void 0, void 0, function() {
- var t;
- return i(this, function(e) {
- switch (e.label) {
- case 0:
- return [ 4, mk.http.sendData("getAllPlayerProp", {}) ];
- case 1:
- if (0 != (t = e.sent()).errcode) return [ 2 ];
- this.initProps(t.data);
- this.getPropsFnish = !0;
- return [ 2 ];
- }
- });
- });
- };
- t.prototype.initProps = function(t) {
- if (null != t) for (var e in t) this.props.set(parseInt(e), JSON.parse(t[e]));
- };
- t.prototype.resetProps = function() {
- var t = [];
- t.push({
- key: a.sign_can,
- value: 1
- });
- t.push({
- key: a.isAutoOpenPanel,
- value: 1
- });
- t.push({
- key: a.isOpenBankOnCloseCash,
- value: 0
- });
- this.setProps(t);
- };
- t.prototype.isNewPlayer = function() {
- return 0 == this.getProp(a.newPlayer);
- };
- return t;
- }();
- n.GameData = r;
- (function(t) {
- t[t.newPlayer = 1] = "newPlayer";
- t[t.guideID = 2] = "guideID";
- t[t.isAutoOpenPanel = 3] = "isAutoOpenPanel";
- t[t.isOpenBankOnCloseCash = 4] = "isOpenBankOnCloseCash";
- t[t.videoTimes = 5] = "videoTimes";
- t[t.cashTimes = 6] = "cashTimes";
- t[t.levelNum = 10] = "levelNum";
- t[t.hammerPropNum = 1001] = "hammerPropNum";
- t[t.resetPropNum = 1002] = "resetPropNum";
- t[t.changePropNum = 1003] = "changePropNum";
- t[t.curTotalScore = 11] = "curTotalScore";
- t[t.turnable_leftTimes = 20] = "turnable_leftTimes";
- t[t.sign_last_bar = 120] = "sign_last_bar";
- t[t.sign_can = 121] = "sign_can";
- t[t.redBag_cash_bar = 220] = "redBag_cash_bar";
- })(a = n.GameProp || (n.GameProp = {}));
- var c = function() {
- function t() {
- this.gameUserData = 0;
- this._isSignInToday = 0;
- this._piggyBank = 0;
- this._isWithdrawable = 0;
- this.piggyBankCashTimes = 0;
- this.totalPiggyBankCashTimes = 0;
- this.cashIndex = 0;
- this.lastTime = 0;
- this.loginDays = 0;
- this.newPlayer = 0;
- this._redMoney = 0;
- this._signInDay = 0;
- this.turntableTimes = 0;
- this.versioncfg = 0;
- this.userTuCaoInfo = 0;
- this.levelNum = 0;
- this.hammerPropNum = 0;
- this.resetPropNum = 0;
- this.changePropNum = 0;
- this.isFirstRedMoney = 0;
- }
- Object.defineProperty(t.prototype, "isSignInToday", {
- get: function() {
- return this._isSignInToday;
- },
- set: function(t) {
- this._isSignInToday = t;
- gData.sign.init_data = !0;
- gData.gameData.init_red_point = !0;
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "piggyBank", {
- get: function() {
- return this._piggyBank;
- },
- set: function(t) {
- if (this._piggyBank !== t && !(gData.gameData.gameData.isWithdrawable && t > 0)) {
- this._piggyBank = t;
- gData.gameData.init_coin = !0;
- gData.pigbank.init_data = !0;
- gData.gameData.init_red_point = !0;
- }
- },
- enumerable: !1,
- configurable: !0
- });
- t.prototype.initPiggyBank = function(t) {
- this._piggyBank = t;
- };
- Object.defineProperty(t.prototype, "isWithdrawable", {
- get: function() {
- return this._isWithdrawable;
- },
- set: function(t) {
- if (this._isWithdrawable != t) {
- this._isWithdrawable = t;
- gData.pigbank.init_data = !0;
- gData.gameData.init_red_point = !0;
- }
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "redMoney", {
- get: function() {
- return this._redMoney;
- },
- set: function(t) {
- this._redMoney = t;
- gData.gameData.init_coin = !0;
- gData.gameData.init_red_point = !0;
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "signInDay", {
- get: function() {
- return this._signInDay;
- },
- set: function(t) {
- if (this._signInDay !== t) {
- this._signInDay = t;
- gData.sign.init_data = !0;
- }
- },
- enumerable: !1,
- configurable: !0
- });
- return t;
- }();
- (function(t) {
- t[t.none = 1] = "none";
- t[t.lock = 2] = "lock";
- t[t.unlock = 3] = "unlock";
- })(n.RewardState || (n.RewardState = {}));
- (function(t) {
- t[t.redBag = 1] = "redBag";
- t[t.rmb = 2] = "rmb";
- t[t.pigRmb = 3] = "pigRmb";
- })(n.RewardType || (n.RewardType = {}));
- (function(t) {
- t.bgm = "bgm";
- t.pigBank = "pigBank";
- t.missionBg = "missionBg";
- t.rewardClose = "rewardClose";
- t.rewardOpen = "rewardOpen";
- t.reward = "reward";
- t.receiptNotice = "receiptNotice";
- t.button = "button";
- t.turnableplay = "turnableplay";
- t.turnplateDrawEnd = "turnplateDrawEnd";
- t.music_startBg = "music_startBg";
- t.music_gameBg = "music_gameBg";
- t.ef_button_click = "ef_button_click";
- t.ef_redPacket_open = "ef_redPacket_open";
- t.ef_redPacket_come = "ef_redPacket_come";
- t.ef_bonus4 = "ef_bonus4";
- t.ef_bonus5 = "ef_bonus5";
- t.ef_bonus6 = "ef_bonus6";
- t.ef_bonus7 = "ef_bonus7";
- t.ef_bonus8 = "ef_bonus8";
- t.ef_eliminate = "ef_eliminate";
- t.ef_eliminate_bonus = "ef_eliminate_bonus";
- t.ef_win = "ef_win";
- t.ef_change = "ef_change";
- t.ef_refresh = "ef_refresh";
- t.ef_fly = "ef_fly";
- })(n.AUDIO_TYPE || (n.AUDIO_TYPE = {}));
- (function(t) {
- t.BACK_WxAuth = "BACK_WxAuth";
- t.UPDATE_CashNum = "UPDATE_CashNum";
- })(n.EVENT_TYPE || (n.EVENT_TYPE = {}));
- (function(t) {
- t.guide = "guide";
- t.button_click = "button_click";
- t.video_init = "video_init";
- t.video_end = "video_end";
- t.fudaiFunction = "fudaiFunction";
- t.hutuiFunction = "hutuiFunction";
- t.level = "level";
- t.commonWithDrawal = "commonWithDrawl";
- t.jarWithDrawal = "jarWithDrawal";
- t.signWithDrawal = "signWithDrawal";
- })(n.DataEventId || (n.DataEventId = {}));
- (function(t) {
- t.Null = "";
- t.LevelScoreRedBag = "关卡消除红包";
- t.StartQiPaoRedBag = "主界面气泡红包";
- t.LevelQiPaoRedBag = "关卡气泡红包";
- t.Turntable = "转盘视频";
- t.Fudai = "福袋视频";
- t.Sign = "签到视频";
- })(n.VideoAdType || (n.VideoAdType = {}));
- cc._RF.pop();
- }, {} ],
- GameLogic: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "a5c2byFYkxCtII644LTIGSH", "GameLogic");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../data/Enum"), c = t("../GamePlay"), s = t("../data/GameConst"), l = cc._decorator, u = l.ccclass, p = (l.property,
- function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- n = e;
- e.loadHeadImg = function(t, e, n) {
- mk.console.log("[LoaderUtil] loadHeadImg ----------------------------------- ", t);
- mk.loader.loadRemote(t + '+"?aaa=aa.jpg"', null).then(function(t) {
- var o = t;
- e.spriteFrame = new cc.SpriteFrame(o);
- e.node.setContentSize(n, n);
- });
- };
- e.getWorldPos = function(t) {
- for (var e = t.x, n = t.y, o = t; o.parent; ) {
- var i = o.parent;
- mk.console.log("GameUtil", o.parent.name);
- if ("Canvas" == i.name) break;
- e += i.x;
- n += i.y;
- o = i;
- }
- mk.console.log("GameUtil", e, n);
- return new cc.Vec2(e, n);
- };
- e.prototype.checkAroundCellItem = function(t, e, n, o, i) {
- var a = 0, l = 0;
- switch (t) {
- case r.CHECKDIR.Above:
- if (n <= 0) return null;
- a = e;
- l = n - 1;
- break;
- case r.CHECKDIR.Below:
- if (n >= s.default.row_num - 1) return null;
- a = e;
- l = n + 1;
- break;
- case r.CHECKDIR.Left:
- if (e <= 0) return null;
- a = e - 1;
- l = n;
- break;
- case r.CHECKDIR.Right:
- if (e >= s.default.col_num - 1) return null;
- a = e + 1;
- l = n;
- }
- var u = c.default.Inst.cellItemDic[a][l];
- if (u && 0 == u.ifRemoved && u.type === o) {
- i && (u.ifRemoved = !0);
- return new cc.Vec2(a, l);
- }
- return null;
- };
- e.checkAboveCellItem = function(t, e, n, o) {
- if (!c.default.Inst || !c.default.Inst.cellItemDic) return null;
- if (e <= 0) return null;
- var i = c.default.Inst.cellItemDic[t][e - 1];
- if (i && 0 == i.ifRemoved && i.type === n) {
- o && (i.ifRemoved = !0);
- return new cc.Vec2(t, e - 1);
- }
- return null;
- };
- e.checkBelowCellItem = function(t, e, n, o) {
- if (!c.default.Inst || !c.default.Inst.cellItemDic) return null;
- if (e >= s.default.row_num - 1) return null;
- var i = c.default.Inst.cellItemDic[t][e + 1];
- if (i && 0 == i.ifRemoved && i.type === n) {
- o && (i.ifRemoved = !0);
- return new cc.Vec2(t, e + 1);
- }
- return null;
- };
- e.checkLeftCellItem = function(t, e, n, o) {
- if (!c.default.Inst || !c.default.Inst.cellItemDic) return null;
- if (t <= 0) return null;
- var i = c.default.Inst.cellItemDic[t - 1][e];
- if (i && 0 == i.ifRemoved && i.type === n) {
- o && (i.ifRemoved = !0);
- return new cc.Vec2(t - 1, e);
- }
- return null;
- };
- e.checkRightCellItem = function(t, e, n, o) {
- if (t >= s.default.col_num - 1) return null;
- if (c.default.Inst && c.default.Inst.cellItemDic && c.default.Inst.cellItemDic[t + 1]) {
- var i = c.default.Inst.cellItemDic[t + 1][e];
- if (i && 0 == i.ifRemoved && i.type === n) {
- o && (i.ifRemoved = !0);
- return new cc.Vec2(t + 1, e);
- }
- return null;
- }
- };
- e.getAroundSameType = function(t, e, o, i) {
- void 0 === i && (i = !1);
- return [ n.checkAboveCellItem(t, e, o, i), n.checkBelowCellItem(t, e, o, i), n.checkLeftCellItem(t, e, o, i), n.checkRightCellItem(t, e, o, i) ].filter(function(t) {
- return null != t;
- });
- };
- e.getCleanedVecList = function(t, e, n, o) {
- var i = this;
- void 0 === o && (o = !0);
- this.getAroundSameType(t, e, n, o).forEach(function(t) {
- if (-1 == c.default.Inst.cleanedVecArr.indexOf(t)) {
- c.default.Inst.cleanedVecArr.push(t);
- i.getCleanedVecList(t.x, t.y, n, o);
- }
- });
- };
- e.getCouldCleanVecList = function(t, e, n, o) {
- var i = this;
- void 0 === o && (o = !0);
- this.getAroundSameType(t, e, n, o).forEach(function(t) {
- if (-1 == c.default.Inst.couldCleanVecArr.indexOf(t)) {
- c.default.Inst.couldCleanVecArr.push(t);
- i.getCouldCleanVecList(t.x, t.y, n, o);
- }
- });
- };
- e.getCouldCleanVec = function() {
- for (var t = Object.keys(c.default.Inst.cellItemDic), e = 0; e < t.length; e++) {
- var n = Number(t[e]), o = c.default.Inst.cellItemDic[n];
- if (o) for (var i = 0; i < o.length; i++) {
- var a = o[i];
- if (a) {
- this.getCouldCleanVecList(a.x, a.y, a.type, !0);
- if (c.default.Inst.couldCleanVecArr.length > 0) {
- for (e = 0; e < c.default.Inst.couldCleanVecArr.length; e++) {
- var r = c.default.Inst.couldCleanVecArr[e];
- if (c.default.Inst.cellItemDic[r.x]) {
- var s = c.default.Inst.cellItemDic[r.x][r.y];
- s && (s.ifRemoved = !1);
- }
- }
- return;
- }
- }
- }
- }
- };
- e.getAllCleanXIndex = function(t) {
- for (var e = [], n = 0; n < t.length; n++) {
- for (var o = t[n], i = c.default.Inst.cellItemDic[o], a = !0, r = s.default.row_num - 1; r >= 0; r--) if (i[r]) {
- a = !1;
- break;
- }
- a && e.push(o);
- }
- e.sort();
- return e;
- };
- e.getLeftXIndexArr = function() {
- for (var t = [], e = 0; e < s.default.col_num; e++) c.default.Inst.cellItemDic[e].filter(function(t) {
- return null != t;
- }).length > 0 && t.push(e);
- return t;
- };
- var n;
- return n = a([ u ], e);
- }(cc.Component));
- n.default = p;
- cc._RF.pop();
- }, {
- "../GamePlay": "GamePlay",
- "../data/Enum": "Enum",
- "../data/GameConst": "GameConst"
- } ],
- GameOverUI: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "4cc153gI99IXaay2d2I426x", "GameOverUI");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../GamePlay"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.node_bg = null;
- return e;
- }
- e.prototype.start = function() {
- this.node_bg.setContentSize(cc.winSize.width, cc.winSize.height);
- mk.ad.showNative(4);
- };
- e.prototype.onClickClose = function() {
- r.default.Inst.nextLevel();
- mk.ad.destroyNativeAd();
- mk.ui.closePanel(this.node.name);
- };
- e.prototype.onClickNextBtn = function() {
- r.default.Inst.nextLevel();
- mk.ad.destroyNativeAd();
- mk.ui.closePanel(this.node.name);
- };
- e.prototype.onClickBackBtn = function() {
- r.default.Inst.restart();
- r.default.Inst.node.active = !1;
- mk.ad.destroyNativeAd();
- mk.ui.closePanel(this.node.name);
- };
- a([ l(cc.Node) ], e.prototype, "node_bg", void 0);
- return a([ s ], e);
- }(cc.Component);
- n.default = u;
- cc._RF.pop();
- }, {
- "../GamePlay": "GamePlay"
- } ],
- GamePlay: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "a2b96K4aRpIurudLqdatOeW", "GamePlay");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("./view/uiItem/CellItem"), c = t("./data/Enum"), s = t("./mgr/PoolMgr"), l = t("./data/GameConst"), u = t("./util/GameLogic"), p = t("./view/effect/BonusTip"), d = t("./mgr/DataMgr"), h = t("./mgr/EffectMgr"), f = t("../game/data/GameData"), y = t("../mk/system/JsbSystem"), g = cc._decorator, m = g.ccclass, _ = g.property, v = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.node_bg = null;
- e.node_top = null;
- e.label_level = null;
- e.node_redPacketIcon = null;
- e.btn_gameGetRed1 = null;
- e.btn_gameGetRed2 = null;
- e.btn_gameGetRed3 = null;
- e.btn_gameGetRed4 = null;
- e.node_content = null;
- e.node_cellBg = null;
- e.node_pauseBtn = null;
- e.node_progressUI = null;
- e.spr_progress = null;
- e.node_resetBtn = null;
- e.label_resetPropNum = null;
- e.node_hammerBtn = null;
- e.label_hammerPropNum = null;
- e.node_changeBtn = null;
- e.label_changePropNum = null;
- e.node_changeCellItemUI = null;
- e.node_effectUI = null;
- e.node_levelRedPacketUI = null;
- e.node_touchListenMask = null;
- e.curProgressScore = 0;
- e.curGetScore = 0;
- e.targetScore = 0;
- e.finalGetScore = 0;
- e.addScoreSpeed = 4;
- e.cellItemDic = {};
- e.cellItemArr = [];
- e.cleanedVecArr = [];
- e.couldCleanVecArr = [];
- e.cleanXIndexArr = [];
- e.allCleanedXArr = [];
- e.leftXIndexArr = [];
- e.curSelectCellItem = null;
- e.curClickCellItem = null;
- e.curSelectPropBtn = null;
- e.ifCouldClick = !0;
- e.ifPass = !1;
- e.ifGetPass = !1;
- e.ifOpenScoreRedPacket = !1;
- e.addCellItemFuc = null;
- e.curXIndex = 0;
- e.curYIndex = 7;
- e.timeout_pass = null;
- e.interval_ShowGuide = null;
- e.interval_ShowInter = null;
- return e;
- }
- n = e;
- Object.defineProperty(e.prototype, "curPropType", {
- get: function() {
- return this._curPropType;
- },
- set: function(t) {
- var e = null;
- if (this.curSelectPropBtn) {
- mk.console.log("this.curSelectPropBtn", this.curSelectPropBtn);
- e = this.curSelectPropBtn.children[1].getComponent(cc.Animation);
- }
- if (t == c.PROPTYPE.Null) {
- e && e.play("ani_normalBtn");
- this.setPropBtnNormalTip(this.curSelectPropBtn);
- } else {
- e && e.play("ani_selectBtn");
- this.setPropBtnSelectTip(this.curSelectPropBtn);
- }
- this._curPropType = t;
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.onLoad = function() {
- n.Inst = this;
- mk.event.register("event_guide", this.clickGuide, this);
- };
- e.prototype.clickGuide = function(t) {
- "1_3" == t ? this.cellItemDic[0][0] && this.cellItemDic[0][0].onClick() : "1_5" == t && this.cellItemDic[1][1] && this.cellItemDic[1][1].onClick();
- };
- e.prototype.start = function() {
- var t = this;
- mk.data.sendDataEvent(f.DataEventId.level, "关卡开启");
- s.default.Inst.initPoolPrefab();
- l.default.loadConfig().then(function() {
- t.adapt();
- mk.audio.playMusic("music_gameBg");
- gData.gameData.setProp(f.GameProp.curTotalScore, 0);
- var e = gData.gameData.getProp(f.GameProp.curTotalScore);
- t.curGetScore = e;
- t.curProgressScore = e;
- t.finalGetScore = e;
- console.log("score", e);
- t.initView();
- t.initEvent();
- t.intervalShowGuide();
- t.intervalShowInter();
- cc.tween(t.btn_gameGetRed1).delay(.2).to(1, {
- y: 60
- }, {
- easing: ""
- }).to(1, {
- y: 0
- }, {
- easing: ""
- }).union().repeatForever().start();
- cc.tween(t.btn_gameGetRed2).delay(.4).to(1, {
- y: 60
- }, {
- easing: ""
- }).to(1, {
- y: 0
- }, {
- easing: ""
- }).union().repeatForever().start();
- cc.tween(t.btn_gameGetRed3).delay(.2).to(1, {
- y: 60
- }, {
- easing: ""
- }).to(1, {
- y: 0
- }, {
- easing: ""
- }).union().repeatForever().start();
- cc.tween(t.btn_gameGetRed4).delay(.4).to(1, {
- y: 60
- }, {
- easing: ""
- }).to(1, {
- y: 0
- }, {
- easing: ""
- }).union().repeatForever().start();
- }).catch();
- this.qipaoShow();
- };
- e.prototype.onEnable = function() {
- mk.console.log("PROPTYPE[PROPTYPE.Change]", c.PROPTYPE.Change);
- };
- e.prototype.onDisable = function() {
- this.curPropType = c.PROPTYPE.Null;
- this.curSelectCellItem && this.curSelectCellItem.normal();
- (this.node_changeCellItemUI.active = !0) && (this.node_changeCellItemUI.active = !1);
- };
- e.prototype.adapt = function() {
- mk.console.log("进行适配!!!!!!!!!!!!!!!!");
- this.node_bg.setContentSize(new cc.Size(cc.winSize.width, cc.winSize.height));
- var t = gData.gameData.gameStyle.node_top_ui.parent.convertToWorldSpaceAR(gData.gameData.gameStyle.node_top_ui.getPosition()), e = this.node_top.parent.convertToNodeSpaceAR(t);
- this.node_top.y = e.y - 40;
- };
- e.prototype.update = function() {
- if (this.curProgressScore >= this.curGetScore) 0 == this.curProgressScore && (this.spr_progress.fillRange = 0); else if (this.curProgressScore >= this.targetScore) {
- this.curProgressScore = this.curGetScore;
- this.initScore();
- } else {
- var t = this.curProgressScore + this.addScoreSpeed;
- if (t >= n.Inst.targetScore) {
- var e = s.default.Inst.getPoolPrefab(s.NODEPOOLPREFABTYPE.GetTargetScoreTip);
- n.Inst.node_effectUI.addChild(e);
- }
- this.curProgressScore = t;
- this.curProgressScore >= this.curGetScore && (this.curProgressScore = this.curGetScore);
- this.initScore();
- }
- };
- e.prototype.initView = function() {
- this.initLevel();
- this.initTotalScore();
- this.initScore();
- this.initProgress();
- this.initHammerPropNum();
- this.setPropBtnNormalTip(this.node_hammerBtn);
- this.initResetPropNum();
- this.setPropBtnNormalTip(this.node_resetBtn);
- this.initChanegPropNum();
- this.setPropBtnNormalTip(this.node_changeBtn);
- this.initCellBg();
- this.initCell();
- };
- e.prototype.initEvent = function() {
- this.node_pauseBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
- this.node_resetBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
- this.node_hammerBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
- this.node_changeBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
- this.node_redPacketIcon.on(cc.Node.EventType.TOUCH_END, this.onClickRedPacketIcon, this);
- mk.event.register(f.EVENT_TYPE.BACK_WxAuth, this.onWxAuthBack, this);
- };
- e.prototype.initLevel = function() {
- mk.console.log("[Game] levelNum", gData.gameData.getProp(f.GameProp.levelNum));
- var t = gData.gameData.getProp(f.GameProp.levelNum);
- this.label_level.string = "第" + (t + 1) + "关";
- };
- e.prototype.initTotalScore = function() {
- if (!this.targetScore) {
- var t = gData.gameData.getProp(f.GameProp.levelNum);
- this.targetScore = 450 + t * (5 + Math.floor(15 * Math.random()));
- this.addScoreSpeed = 2 * Math.floor(this.targetScore / 200) + 4;
- mk.console.log("this.addScoreSpeed", this.addScoreSpeed);
- }
- };
- e.prototype.initScore = function() {
- this.initProgress();
- };
- e.prototype.initProgress = function() {
- var t = this.curProgressScore / this.targetScore;
- t = t > 1 ? 1 : t;
- this.spr_progress.fillRange = t;
- if (t >= 1) {
- gData.reward.subType = 2;
- mk.ad.videoAdType = f.VideoAdType.LevelScoreRedBag;
- mk.ui.getCurOnPanel("rewardLuck") || mk.ui.openPanel("module/reward/rewardLuck");
- }
- };
- e.prototype.initPropNum = function() {
- this.initHammerPropNum();
- this.initResetPropNum();
- this.initChanegPropNum();
- };
- e.prototype.initHammerPropNum = function() {
- var t = gData.gameData.getProp(f.GameProp.hammerPropNum);
- this.label_hammerPropNum.string = t ? t.toString() : "+";
- };
- e.prototype.initResetPropNum = function() {
- var t = gData.gameData.getProp(f.GameProp.resetPropNum);
- this.label_resetPropNum.string = t ? t.toString() : "+";
- };
- e.prototype.initChanegPropNum = function() {
- var t = gData.gameData.getProp(f.GameProp.changePropNum);
- this.label_changePropNum.string = t ? t.toString() : "+";
- };
- e.prototype.initCellBg = function() {
- for (var t = 0; t < l.default.col_num; t++) for (var e = 0; e < l.default.row_num; e++) {
- var n = s.default.Inst.getPoolPrefab(s.NODEPOOLPREFABTYPE.CellBg), o = cc.instantiate(n);
- this.node_cellBg.addChild(o);
- }
- };
- e.prototype.initCell = function() {
- var t = this;
- this.addCellItemFuc = function() {
- t.addCellItem();
- };
- this.schedule(this.addCellItemFuc, .05);
- };
- e.prototype.addCellItem = function() {
- mk.console.log("addCellItem!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- this.addColCellItem();
- this.curXIndex++;
- this.curXIndex >= l.default.col_num && this.unschedule(this.addCellItemFuc);
- };
- e.prototype.addColCellItem = function() {
- this.cellItemDic[this.curXIndex] = [];
- for (var t = l.default.row_num - 1; t >= 0; t--) {
- var e = s.default.Inst.getPoolPrefab(s.NODEPOOLPREFABTYPE.CellItem), n = cc.instantiate(e), o = n.getComponent(r.default);
- o.init(this.curXIndex, t);
- this.cellItemDic[this.curXIndex][t] = o;
- this.cellItemArr.push(o);
- this.node_content.addChild(n);
- }
- };
- e.prototype.onClickBtn = function(t) {
- this.intervalShowGuide();
- this.intervalShowInter();
- if (this.ifPass) h.default.Inst.addTip("通关结算啦,请稍后操作哈"); else {
- mk.audio.playEffect("button");
- switch (t.currentTarget) {
- case this.node_pauseBtn:
- this.onClickPauseBtn();
- break;
- case this.node_hammerBtn:
- this.onClickHammerBtn();
- break;
- case this.node_changeBtn:
- this.onClickChangeBtn();
- break;
- case this.node_resetBtn:
- this.onClickResetBtn();
- }
- }
- };
- e.prototype.onClickPauseBtn = function() {
- mk.ui.openPanel("game/prefab/uiPanel/PauseUI");
- };
- e.prototype.onClickShare = function() {
- gData.loginData.isAuth ? y.default.sharePic() : y.default.WxAuth();
- };
- e.prototype.onClickResetBtn = function() {
- this.setCurSelectPropBtn(this.node_resetBtn);
- this.curPropType = c.PROPTYPE.Reset;
- var t = gData.gameData.getProp(f.GameProp.resetPropNum);
- if (!t || t <= 0) mk.ui.openPanel("game/prefab/uiPanel/GetPropUI"); else {
- mk.audio.playEffect("ef_refresh");
- for (var e = Object.keys(this.cellItemDic), o = 0; o < e.length; o++) for (var i = Number(e[o]), a = this.cellItemDic[i], r = 0; r < a.length; r++) {
- var s = a[r];
- s && s.reset();
- }
- d.default.Inst.updatePropNum(2, n.Inst.curPropType, -1);
- this.curPropType = c.PROPTYPE.Null;
- }
- };
- e.prototype.onClickHammerBtn = function() {
- this.setCurSelectPropBtn(this.node_hammerBtn);
- this.curPropType = c.PROPTYPE.Hammer;
- var t = gData.gameData.getProp(f.GameProp.hammerPropNum);
- !t || t <= 0 ? mk.ui.openPanel("game/prefab/uiPanel/GetPropUI") : d.default.Inst.updatePropNum(2, n.Inst.curPropType, -1);
- };
- e.prototype.onClickChangeBtn = function() {
- this.setCurSelectPropBtn(this.node_changeBtn);
- this.curPropType = c.PROPTYPE.Change;
- var t = gData.gameData.getProp(f.GameProp.changePropNum);
- !t || t <= 0 ? mk.ui.openPanel("game/prefab/uiPanel/GetPropUI") : d.default.Inst.updatePropNum(2, n.Inst.curPropType, -1);
- };
- e.prototype.onClickLevelQiPaoPacket = function() {
- mk.ad.videoAdType = f.VideoAdType.LevelQiPaoRedBag;
- };
- e.prototype.changeCellItemType = function(t) {
- var e = this.curSelectCellItem.node.x + n.Inst.node_content.x, o = this.curSelectCellItem.node.y + n.Inst.node_content.y, i = s.default.Inst.getPoolPrefab(s.NODEPOOLPREFABTYPE.Change);
- i.setPosition(e, o);
- n.Inst.node_effectUI.addChild(i);
- this.curSelectCellItem.setType(t);
- mk.audio.playEffect("ef_change");
- this.curSelectCellItem = null;
- };
- e.prototype.setCurSelectPropBtn = function(t) {
- if (this.curSelectPropBtn) {
- var e = this.curSelectPropBtn.children[1];
- if (e) {
- var n = e.getComponent(cc.Animation);
- n && n.play("ani_normalBtn");
- }
- this.setPropBtnNormalTip(this.curSelectPropBtn);
- }
- this.curSelectPropBtn = t;
- };
- e.prototype.setPropBtnNormalTip = function(t) {
- if (t) {
- var e = t.children[2];
- if (e) {
- var n = null;
- switch (t) {
- case this.node_hammerBtn:
- n = this.label_hammerPropNum;
- break;
- case this.node_resetBtn:
- n = this.label_resetPropNum;
- break;
- case this.node_changeBtn:
- n = this.label_changePropNum;
- }
- var o = n.string, i = Number(o), a = e.getComponent(cc.Label);
- mk.console.log("propBtn.name", t.name);
- mk.console.log("num", i);
- a.string = i && i >= 1 ? "" : "点我领取";
- }
- }
- };
- e.prototype.setPropBtnSelectTip = function(t) {
- if (t) {
- var e = t.children[2];
- e && (e.getComponent(cc.Label).string = "道具使用中");
- }
- };
- e.prototype.showChangeCellItemUI = function() {
- var t = this.curSelectCellItem;
- n.Inst.node_changeCellItemUI.active = !0;
- n.Inst.node_changeCellItemUI.y = t.node.y + .5 * t.node.height + .5 * n.Inst.node_changeCellItemUI.height + 20;
- };
- e.prototype.onClickRedPacketIcon = function() {
- 1 == this.spr_progress.fillRange ? h.default.Inst.addTip("已达成目标啦,过关发放哦") : h.default.Inst.addTip("达到目标分数,才能领取哦");
- };
- e.prototype.getStartRedPacketCellItem = function() {
- for (var t = this, e = this.cellItemArr.concat(), n = [], o = 0; o < e.length; o++) {
- var i = e[o];
- if (i) {
- u.default.getCouldCleanVecList(i.x, i.y, i.type, !0);
- console.log("largeCellItemVec.length", n.length);
- n.length < this.couldCleanVecArr.length && (n = this.couldCleanVecArr);
- this.couldCleanVecArr.forEach(function(n) {
- var o = l.default.col_num * n.x + (l.default.row_num - 1 - n.y);
- e[o] = null;
- t.cellItemDic[n.x][n.y].ifRemoved = !1;
- });
- this.couldCleanVecArr = [];
- }
- }
- console.log("FC------------------------------------------------------------");
- var a = n[mk.math.random(0, n.length - 1)], r = this.cellItemDic[a.x][a.y];
- r.showRedPacket();
- return r;
- };
- e.prototype.onWxAuthBack = function() {
- if (this.node.active) {
- this.restart();
- mk.ui.getCurOnPanel("RedPacketUI") && mk.ui.closePanel("RedPacketUI");
- }
- this.initLevel();
- this.initTotalScore();
- this.initPropNum();
- mk.event.remove(f.EVENT_TYPE.BACK_WxAuth, this.onWxAuthBack, this);
- };
- e.prototype.cleanCellItemByVecList = function() {
- var t = this;
- if (n.Inst.cleanedVecArr.length <= 0) {
- this.ifCouldClick = !0;
- h.default.Inst.addTip("点击两个或以上消除哦");
- } else {
- n.Inst.cleanedVecArr.length >= 4 ? mk.audio.playEffect("ef_eliminate_bonus") : mk.audio.playEffect("ef_eliminate");
- mk.audio.playEffect("ef_fly");
- for (var e = 0; e < n.Inst.cleanedVecArr.length; e++) {
- var o = n.Inst.cleanedVecArr[e];
- if (e == n.Inst.cleanedVecArr.length - 1) {
- this.checkBonusNum(n.Inst.cleanedVecArr.length);
- n.Inst.cellItemDic[o.x][o.y].recycle(!1, !0);
- } else n.Inst.cellItemDic[o.x][o.y].recycle();
- -1 == this.cleanXIndexArr.indexOf(o.x) && this.cleanXIndexArr.push(o.x);
- }
- this.cleanXIndexArr.sort();
- this.allCleanedXArr = u.default.getAllCleanXIndex(this.cleanXIndexArr);
- this.scheduleOnce(function() {
- t.checkMoveDownCellItem();
- }, .2);
- }
- };
- e.prototype.checkMoveDownCellItem = function() {
- mk.console.log("this.cleanXIndexArr", this.cleanXIndexArr);
- for (var t = 0; t < this.cleanXIndexArr.length; t++) {
- var e = this.cleanXIndexArr[t];
- this.moveYCellItem(e);
- }
- };
- e.prototype.moveYCellItem = function(t) {
- var e = 0, o = 0, i = -1 != this.allCleanedXArr.indexOf(t), a = t == this.cleanXIndexArr[this.cleanXIndexArr.length - 1], r = n.Inst.cellItemDic[t], c = null;
- if (a) {
- this.cleanedVecArr.filter(function(e) {
- return e.x == t;
- }).sort()[0].y;
- for (var s = 0; s < l.default.row_num; s++) if (r && (u = r[s])) {
- c = u.y;
- break;
- }
- }
- if (a && i) this.checkMoveLeftCellItem(); else for (s = l.default.row_num - 1; s >= 0; s--) if (r) {
- var u;
- if (u = r[s]) {
- a && s == c ? u.moveDown(t, s + o, e, !0) : u.moveDown(t, s + o, e);
- e++;
- } else o += 1;
- }
- };
- e.prototype.checkMoveLeftCellItem = function() {
- if (this.allCleanedXArr.length <= 0) {
- n.Inst.ifCouldClick = !0;
- n.Inst.checkIfEliminate();
- } else {
- var t = u.default.getLeftXIndexArr(), e = t[t.length - 1];
- if (t.length <= 0) this.checkIfEliminate(); else {
- mk.console.log("leftXIndexArr", t);
- for (var o = 0, i = 0; i < l.default.col_num; i++) {
- var a = n.Inst.cellItemDic[i];
- if (-1 == this.allCleanedXArr.indexOf(i)) {
- var r = a.filter(function(t) {
- return null != t;
- });
- if (o > 0) for (var c = 0; c < a.length; c++) {
- var s = a[c];
- if (s) if (i == e && c == r[0].y) {
- mk.console.log("i,j,intervalNum", i, c, o);
- s.moveLeft(i - o, c, !0);
- } else s.moveLeft(i - o, c);
- } else if (i == e) {
- n.Inst.ifCouldClick = !0;
- n.Inst.checkIfEliminate();
- }
- } else o += 1;
- }
- }
- }
- };
- e.prototype.checkIfEliminate = function() {
- var t = this;
- mk.console.log("开始检测是否还能够消除!!!!!!!!!!!!!!!!!!!!!");
- u.default.getCouldCleanVec();
- if (this.couldCleanVecArr.length <= 0 && !this.ifPass) {
- h.default.Inst.addSpriteTip(h.TIP_SPRITEITEM_TYPE.NormalPass);
- var e = setTimeout(function() {
- t.pass();
- clearTimeout(e);
- }, 1500);
- }
- };
- e.prototype.getCouldCleanCellItem = function() {
- for (var t = 0; this.cellItemArr.length; t++) {
- var e = this.cellItemArr[t];
- if (u.default.getAroundSameType(e.x, e.y, e.type, !1).length > 0) return;
- }
- this.pass();
- };
- e.prototype.restart = function() {
- mk.console.log("restart!!!!!!!!!!!!!!!");
- this.refreshGame();
- };
- e.prototype.nextLevel = function() {
- mk.console.log("nextLevel!!!!!!!!!!!!!!!");
- this.targetScore = 0;
- this.refreshGame();
- };
- e.prototype.refreshGame = function() {
- mk.data.sendDataEvent(f.DataEventId.level, "关卡开启");
- this.recycleAllCellItem();
- this.ifPass = !1;
- this.ifGetPass = !1;
- this.ifCouldClick = !0;
- this.initLevel();
- this.initTotalScore();
- this.initScore();
- };
- e.prototype.recycleAllCellItem = function() {
- for (var t = 0; t < l.default.col_num; t++) for (var e = 0; e < l.default.row_num; e++) {
- var n = this.cellItemDic[t][e];
- n && n.recycle(!0, !1, !1);
- }
- this.cellItemArr = [];
- this.cellItemDic = {};
- this.curXIndex = 0;
- this.curYIndex = l.default.row_num - 1;
- this.initCell();
- };
- e.prototype.pass = function() {
- if (0 != n.Inst.node.active && !this.ifPass) {
- mk.data.sendDataEvent(f.DataEventId.level, "关卡通关");
- this.ifPass = !0;
- n.Inst.ifGetPass = !1;
- var t = gData.gameData.getProp(f.GameProp.levelNum);
- 0 == t && mk.data.sendXYEvent("firstlevel", "完成第一关");
- mk.console.log("[Game]pass passLevelNum", t);
- n.Inst.ifGetPass = !0;
- gData.gameData.setProp(f.GameProp.levelNum, ++t);
- if (!(mk.ui.getCurOnPanel("rewardLuck") || this.finalGetScore >= this.targetScore)) {
- this.gameCount();
- console.log("gData.gameData.getProp(GameProp.levelNum)", gData.gameData.getProp(f.GameProp.levelNum));
- }
- }
- };
- e.prototype.gameCount = function() {
- mk.ui.getCurOnPanel("GetPropUI") && mk.ui.closePanel("GetPropUI");
- this.gameOver();
- };
- e.prototype.gameOver = function() {
- mk.ui.openPanel("game/prefab/uiPanel/GameOverUI");
- };
- e.prototype.checkBonusNum = function(t) {
- if (t >= 4) {
- var e = s.default.Inst.getPoolPrefab(s.NODEPOOLPREFABTYPE.BonusTip), n = e.getComponent(p.default);
- if (4 == t) {
- n.init(4);
- mk.audio.playEffect("ef_bonus4");
- } else if (5 == t) {
- n.init(5);
- mk.audio.playEffect("ef_bonus5");
- } else if (6 == t) {
- n.init(6);
- mk.audio.playEffect("ef_bonus6");
- } else if (7 == t) {
- n.init(7);
- mk.audio.playEffect("ef_bonus7");
- } else if (8 == t) {
- n.init(8);
- mk.audio.playEffect("ef_bonus8");
- } else {
- n.init(8);
- mk.audio.playEffect("ef_bonus8");
- }
- this.node_effectUI.addChild(e);
- }
- };
- e.prototype.checkAddLevelRedPacket = function(t) {
- var e = .2 * (t - 3);
- return Math.random() < e;
- };
- e.prototype.intervalShowGuide = function() {
- var t = this;
- this.cancelShowCouldCleanCellItem();
- this.interval_ShowGuide = setInterval(function() {
- t.showCouldCleanCellItem();
- }, 1e4);
- };
- e.prototype.showCouldCleanCellItem = function() {
- if (!mk.ui.getCurOnPanel("RedPacketUI") && !mk.ui.getCurOnPanel("GameOverUI") && this.couldCleanVecArr && this.cellItemDic) {
- this.couldCleanVecArr.length <= 0 && u.default.getCouldCleanVec();
- if (this.couldCleanVecArr.length > 0) for (var t = 0; t < this.couldCleanVecArr.length; t++) {
- var e = this.couldCleanVecArr[t];
- if (this.cellItemDic[e.x]) {
- var n = this.cellItemDic[e.x][e.y];
- n && n.shake();
- }
- }
- }
- };
- e.prototype.cancelShowCouldCleanCellItem = function() {
- if (this.interval_ShowGuide) {
- clearInterval(this.interval_ShowGuide);
- this.interval_ShowGuide = null;
- if (this.couldCleanVecArr.length > 0) for (var t = 0; t < this.couldCleanVecArr.length; t++) {
- var e = this.couldCleanVecArr[t], n = this.cellItemDic[e.x][e.y];
- n && n.normal();
- }
- this.couldCleanVecArr = [];
- }
- };
- e.prototype.intervalShowInter = function() {
- var t = gData.gameData.configs.ServerConfig.interOpenGapTime;
- t ? t *= 1e3 : t = 15e3;
- this.cancelShowInter();
- this.interval_ShowGuide = setInterval(function() {
- mk.ad.showInterAd(0);
- }, t);
- };
- e.prototype.cancelShowInter = function() {
- this.interval_ShowGuide && clearInterval(this.interval_ShowGuide);
- };
- e.prototype.qipaoShow = function() {
- for (var t = 0; t < 4; t++) this["btn_gameGetRed" + (t + 1)].active = gData.gameData.funBtns.btn8.active;
- };
- var n;
- e.Inst = null;
- a([ _(cc.Node) ], e.prototype, "node_bg", void 0);
- a([ _(cc.Node) ], e.prototype, "node_top", void 0);
- a([ _(cc.Label) ], e.prototype, "label_level", void 0);
- a([ _(cc.Node) ], e.prototype, "node_redPacketIcon", void 0);
- a([ _({
- type: cc.Node,
- displayName: "气泡红包1"
- }) ], e.prototype, "btn_gameGetRed1", void 0);
- a([ _({
- type: cc.Node,
- displayName: "气泡红包2"
- }) ], e.prototype, "btn_gameGetRed2", void 0);
- a([ _({
- type: cc.Node,
- displayName: "气泡红包3"
- }) ], e.prototype, "btn_gameGetRed3", void 0);
- a([ _({
- type: cc.Node,
- displayName: "气泡红包3"
- }) ], e.prototype, "btn_gameGetRed4", void 0);
- a([ _(cc.Node) ], e.prototype, "node_content", void 0);
- a([ _(cc.Node) ], e.prototype, "node_cellBg", void 0);
- a([ _(cc.Node) ], e.prototype, "node_pauseBtn", void 0);
- a([ _(cc.Node) ], e.prototype, "node_progressUI", void 0);
- a([ _(cc.Sprite) ], e.prototype, "spr_progress", void 0);
- a([ _(cc.Node) ], e.prototype, "node_resetBtn", void 0);
- a([ _(cc.Label) ], e.prototype, "label_resetPropNum", void 0);
- a([ _(cc.Node) ], e.prototype, "node_hammerBtn", void 0);
- a([ _(cc.Label) ], e.prototype, "label_hammerPropNum", void 0);
- a([ _(cc.Node) ], e.prototype, "node_changeBtn", void 0);
- a([ _(cc.Label) ], e.prototype, "label_changePropNum", void 0);
- a([ _(cc.Node) ], e.prototype, "node_changeCellItemUI", void 0);
- a([ _(cc.Node) ], e.prototype, "node_effectUI", void 0);
- a([ _(cc.Node) ], e.prototype, "node_levelRedPacketUI", void 0);
- a([ _(cc.Node) ], e.prototype, "node_touchListenMask", void 0);
- return n = a([ m ], e);
- }(cc.Component);
- n.default = v;
- cc._RF.pop();
- }, {
- "../game/data/GameData": "GameData",
- "../mk/system/JsbSystem": "JsbSystem",
- "./data/Enum": "Enum",
- "./data/GameConst": "GameConst",
- "./mgr/DataMgr": "DataMgr",
- "./mgr/EffectMgr": "EffectMgr",
- "./mgr/PoolMgr": "PoolMgr",
- "./util/GameLogic": "GameLogic",
- "./view/effect/BonusTip": "BonusTip",
- "./view/uiItem/CellItem": "CellItem"
- } ],
- GameUtil: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "784499zQZlE5LGQ/AOAWZqR", "GameUtil");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var o = function() {
- function t() {}
- t.prototype.getWinSize = function() {
- return cc.winSize;
- };
- t.prototype.enablePhysics = function() {
- cc.director.getPhysicsManager().enabled = !0;
- };
- t.prototype.debugDrawPhysicsFlag = function(t) {
- void 0 === t && (t = !1);
- cc.director.getPhysicsManager().debugDrawFlags = t ? cc.PhysicsManager.DrawBits.e_aabbBit | cc.PhysicsManager.DrawBits.e_jointBit | cc.PhysicsManager.DrawBits.e_shapeBit : 0;
- };
- t.prototype.checkContinuousClick = function(t, e) {
- void 0 === e && (e = 1);
- null == this.btnTimeDic && (this.btnTimeDic = {});
- var n = t._id, o = this.btnTimeDic[n], i = new Date().getTime(), a = null == o || i - o > 1e3 * e;
- a && (this.btnTimeDic[n] = i);
- return a;
- };
- t.prototype.getWorldPos = function(t) {
- for (var e = t.x, n = t.y, o = t; o.parent; ) {
- var i = o.parent;
- if ("Canvas" == i.name) break;
- e += i.x;
- n += i.y;
- o = i;
- }
- return new cc.Vec2(e, n);
- };
- t.prototype.localConvertWorldPointARCenter = function(t) {
- var e = cc.view.getVisibleSize(), n = t.convertToWorldSpaceAR(cc.v2(0, 0));
- n.x = n.x - e.width / 2;
- n.y = n.y - e.height / 2;
- return n;
- };
- return t;
- }();
- n.default = o;
- cc._RF.pop();
- }, {} ],
- Game: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "8760dQYasROwLaLe1idTS07", "Game");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.RedPoinNode = void 0;
- var s = t("../../before/GamePlay"), l = t("../../mk/system/JsbSystem"), u = t("../data/GameData"), p = t("./FunBtns"), d = cc._decorator, h = d.ccclass, f = d.property, y = function() {
- function t() {
- this.node_sign = null;
- this.node_pigbank = null;
- this.node_redbagCash = null;
- this.node_blessingBag = null;
- this.node_turnable = null;
- this.node_redeem = null;
- }
- a([ f({
- type: cc.Node,
- displayName: "签到"
- }) ], t.prototype, "node_sign", void 0);
- a([ f({
- type: cc.Node,
- displayName: "存钱罐"
- }) ], t.prototype, "node_pigbank", void 0);
- a([ f({
- type: cc.Node,
- displayName: "红包提现"
- }) ], t.prototype, "node_redbagCash", void 0);
- a([ f({
- type: cc.Node,
- displayName: "福袋"
- }) ], t.prototype, "node_blessingBag", void 0);
- a([ f({
- type: cc.Node,
- displayName: "转盘"
- }) ], t.prototype, "node_turnable", void 0);
- a([ f({
- type: cc.Node,
- displayName: "福利礼包"
- }) ], t.prototype, "node_redeem", void 0);
- return a([ h("RedPoinNode") ], t);
- }();
- n.RedPoinNode = y;
- var g = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.node_gameplay = null;
- e.node_btn = null;
- e.img_head = null;
- e.lbl_redMoney = null;
- e.lbl_rmb = null;
- e.btn_cashOutNormal = null;
- e.btn_cashOutGold = null;
- e.btn_getRed1 = null;
- e.btn_getRed2 = null;
- e.btn_getRed3 = null;
- e.btn_start = null;
- e.icon_hb = null;
- e.icon_zb = null;
- e.node_top_ui = null;
- e.nodeRedPoint = null;
- return e;
- }
- e.prototype.onLoad = function() {
- gData.gameData.gameStyle = this;
- mk.ui.closePanel("login");
- };
- e.prototype.start = function() {
- this.initMusic();
- this.initBtns();
- this.initQiPaos();
- this.initInfo();
- this.autoOpenPanel();
- this.runGuideWeak();
- mk.guide.open(1);
- };
- e.prototype.update = function() {
- if (gData.gameData.updatePiggyBankValue) {
- this.updatePiggyBankValue();
- gData.gameData.updatePiggyBankValue = !1;
- }
- gData.gameData.init_coin && this.changeInfo();
- gData.gameData.init_head && this.initHead();
- gData.gameData.init_red_point && this.initRedPoint();
- };
- e.prototype.lateUpdate = function() {
- gData.gameData.init_head = !1;
- };
- e.prototype.initMusic = function() {
- mk.audio.playMusic("bgm");
- };
- e.prototype.initBtns = function() {
- this.node_btn.getComponent(p.default).init();
- };
- e.prototype.initQiPaos = function() {
- mk.tween.scale(this.btn_getRed1, .6, 0, 1, null, "backOut");
- mk.tween.scale(this.btn_getRed2, .6, 0, 1, null, "backOut");
- mk.tween.scale(this.btn_getRed3, .6, 0, 1, null, "backOut");
- cc.tween(this.btn_getRed1).to(1.2, {
- y: 100
- }, {
- easing: ""
- }).to(1.2, {
- y: 50
- }, {
- easing: ""
- }).union().repeatForever().start();
- cc.tween(this.btn_getRed2).delay(.2).to(1.5, {
- y: 125
- }, {
- easing: ""
- }).to(1.5, {
- y: 50
- }, {
- easing: ""
- }).union().repeatForever().start();
- cc.tween(this.btn_getRed3).delay(.4).to(1, {
- y: 10
- }, {
- easing: ""
- }).to(1, {
- y: -50
- }, {
- easing: ""
- }).union().repeatForever().start();
- };
- e.prototype.initInfo = function() {
- this.lbl_redMoney.string = gData.gameData.gameData.redMoney + "";
- var t = gData.gameData.gameData.piggyBank / 100;
- this.lbl_rmb.string = t.toFixed(2);
- gData.gameData.init_coin = !1;
- };
- e.prototype.changeInfo = function() {
- this.lbl_redMoney.node.getComponent(mk.component.numberAnim).setValue(gData.gameData.gameData.redMoney);
- var t = gData.gameData.gameData.piggyBank / 100;
- (0 == parseInt(this.lbl_rmb.string) && 0 != t || 0 != parseInt(this.lbl_rmb.string) && 0 == t) && this.lbl_rmb.string != t.toFixed(2) && this.lbl_rmb.node.getComponent(mk.component.numberAnim).setValue(parseFloat(t.toFixed(2)), 2);
- gData.gameData.init_coin = !1;
- };
- e.prototype.initHead = function() {
- return r(this, void 0, void 0, function() {
- var t;
- return c(this, function(e) {
- switch (e.label) {
- case 0:
- return [ 4, mk.loader.loadRemote(gData.wechatData.avatar + "?aaa=aa.jpg", null) ];
- case 1:
- t = e.sent();
- this.img_head.spriteFrame = new cc.SpriteFrame(t);
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.updatePiggyBankValue = function() {
- this.lbl_rmb.string = (gData.gameData.gameData.piggyBank / 100).toFixed(2);
- gData.gameData.updatePiggyBankValue = !1;
- };
- e.prototype.initRedPoint = function() {
- this.nodeRedPoint.node_sign.active = gData.sign.redPoint();
- this.nodeRedPoint.node_pigbank.active = gData.pigbank.redPoint();
- this.nodeRedPoint.node_redbagCash.active = gData.redBagCash.redPoint();
- this.nodeRedPoint.node_turnable.active = gData.turnable.redPoint();
- this.nodeRedPoint.node_blessingBag.active = gData.blessingBag.redPoint();
- this.nodeRedPoint.node_redeem.active = gData.redeem.redPoint();
- gData.gameData.init_red_point = !1;
- (!s.default.Inst || s.default.Inst && !s.default.Inst.node.active) && this.nodeRedPoint.node_redbagCash.active && mk.guide.open(2) && mk.ui.closeAllUI();
- };
- e.prototype.autoOpenPanel = function() {
- if (!gData.gameData.isNewPlayer()) {
- mk.ui.openPanel("module/pigBank/pigBank");
- gData.gameData.setProp(u.GameProp.isAutoOpenPanel, 1);
- }
- };
- e.prototype.runGuideWeak = function() {
- gData.guideWeakData.enable = !0;
- };
- e.prototype.testFly = function() {
- mk.fly.PlayCoinAnim(1, 20, cc.v2(0, -300), cc.v2(0, 0));
- };
- e.prototype.onClickStart = function() {
- mk.data.sendDataEvent(u.DataEventId.button_click, "开始游戏icon");
- this.node_gameplay.active = !0;
- };
- e.prototype.onClickHuTui = function() {
- mk.data.sendDataEvent(u.DataEventId.button_click, "互推icon");
- };
- e.prototype.onClickFuli = function() {
- mk.data.sendDataEvent(u.DataEventId.button_click, "福利礼包icon");
- };
- e.prototype.onClickQipaoRedBag = function() {
- mk.ad.videoAdType = u.VideoAdType.StartQiPaoRedBag;
- mk.data.sendDataEvent(u.DataEventId.button_click, "气泡红包icon");
- };
- e.prototype.onClickRedBagCash = function() {
- mk.data.sendDataEvent(u.DataEventId.button_click, "常规提现-提现icon");
- };
- e.prototype.onClickGoldPigCash = function() {
- mk.data.sendDataEvent(u.DataEventId.button_click, "金猪现金-提现icon");
- };
- e.prototype.onClickPigBank = function() {
- mk.data.sendDataEvent(u.DataEventId.button_click, "存钱罐icon");
- };
- e.prototype.onClickTurntable = function() {
- mk.data.sendDataEvent(u.DataEventId.button_click, "转盘icon");
- };
- e.prototype.onClickSign = function() {
- mk.data.sendDataEvent(u.DataEventId.button_click, "签到icon");
- };
- e.prototype.onClickFudai = function() {
- mk.data.sendDataEvent(u.DataEventId.button_click, "福袋icon");
- };
- e.prototype.onClickShare = function() {
- mk.data.sendDataEvent(u.DataEventId.button_click, "邀请icon");
- gData.loginData.isAuth ? l.default.sharePic() : l.default.WxAuth();
- };
- a([ f({
- type: cc.Node,
- displayName: "游戏核心玩法"
- }) ], e.prototype, "node_gameplay", void 0);
- a([ f({
- type: cc.Node,
- displayName: "功能按钮"
- }) ], e.prototype, "node_btn", void 0);
- a([ f({
- type: cc.Sprite,
- displayName: "头像"
- }) ], e.prototype, "img_head", void 0);
- a([ f({
- type: cc.Label,
- displayName: "红包币"
- }) ], e.prototype, "lbl_redMoney", void 0);
- a([ f({
- type: cc.Label,
- displayName: "金猪币"
- }) ], e.prototype, "lbl_rmb", void 0);
- a([ f({
- type: cc.Sprite,
- displayName: "红包提现"
- }) ], e.prototype, "btn_cashOutNormal", void 0);
- a([ f({
- type: cc.Sprite,
- displayName: "金猪提现"
- }) ], e.prototype, "btn_cashOutGold", void 0);
- a([ f({
- type: cc.Node,
- displayName: "气泡红包1"
- }) ], e.prototype, "btn_getRed1", void 0);
- a([ f({
- type: cc.Node,
- displayName: "气泡红包2"
- }) ], e.prototype, "btn_getRed2", void 0);
- a([ f({
- type: cc.Node,
- displayName: "气泡红包3"
- }) ], e.prototype, "btn_getRed3", void 0);
- a([ f({
- type: cc.Button,
- displayName: "开始游戏"
- }) ], e.prototype, "btn_start", void 0);
- a([ f({
- type: cc.Node,
- displayName: "红包币图标"
- }) ], e.prototype, "icon_hb", void 0);
- a([ f({
- type: cc.Node,
- displayName: "金猪币图标"
- }) ], e.prototype, "icon_zb", void 0);
- a([ f({
- type: cc.Node,
- displayName: "顶部ui组"
- }) ], e.prototype, "node_top_ui", void 0);
- a([ f({
- type: y,
- displayName: "红点组"
- }) ], e.prototype, "nodeRedPoint", void 0);
- return a([ h ], e);
- }(cc.Component);
- n.default = g;
- cc._RF.pop();
- }, {
- "../../before/GamePlay": "GamePlay",
- "../../mk/system/JsbSystem": "JsbSystem",
- "../data/GameData": "GameData",
- "./FunBtns": "FunBtns"
- } ],
- GetPropUI: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "0d1dfPo/XpIf6tmqB2x020S", "GetPropUI");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../data/Enum"), c = t("../GamePlay"), s = t("../mgr/DataMgr"), l = t("../mgr/EffectMgr"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.node_rectBg = null;
- e.node_closeBtn = null;
- e.node_getBtn = null;
- e.node_prop = null;
- return e;
- }
- e.prototype.start = function() {
- this.adapt();
- this.initEvent();
- };
- e.prototype.onEnable = function() {
- this.init();
- };
- e.prototype.onDisable = function() {
- c.default.Inst.curPropType = r.PROPTYPE.Null;
- };
- e.prototype.adapt = function() {
- this.node_rectBg.setContentSize(cc.winSize.width, cc.winSize.height);
- };
- e.prototype.init = function() {
- for (var t = 0; t < this.node_prop.childrenCount; t++) {
- var e = this.node_prop.children[t];
- (e.children[0] ? e.children[0].name : "") == c.default.Inst.curPropType ? e.active = !0 : e.active = !1;
- }
- };
- e.prototype.initEvent = function() {
- this.node_getBtn.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
- this.node_closeBtn.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
- };
- e.prototype.onClick = function(t) {
- mk.audio.playEffect("button");
- switch (t.currentTarget) {
- case this.node_getBtn:
- this.onClickGet();
- break;
- case this.node_closeBtn:
- this.onClickClose();
- }
- };
- e.prototype.onClickClose = function() {
- mk.ui.closePanel("GetPropUI");
- };
- e.prototype.onClickGet = function() {
- var t = this;
- c.default.Inst.cancelShowInter();
- mk.ad.watchAd(function(e) {
- t.watchCallBack(e);
- });
- };
- e.prototype.watchCallBack = function(t) {
- void 0 === t && (t = !1);
- if (t) {
- this.scheduleOnce(function() {
- mk.tip.pop("观看成功,获取奖励");
- }, 0);
- this.watchSuccess();
- } else {
- this.scheduleOnce(function() {
- mk.tip.pop("观看失败,无法领取奖励哦");
- }, 0);
- this.watchFailed();
- }
- };
- e.prototype.watchSuccess = function() {
- l.default.Inst.addTip("观看视频成功,获得道具");
- s.default.Inst.updatePropNum(1, c.default.Inst.curPropType, 1);
- };
- e.prototype.watchFailed = function() {};
- a([ d(cc.Node) ], e.prototype, "node_rectBg", void 0);
- a([ d(cc.Node) ], e.prototype, "node_closeBtn", void 0);
- a([ d(cc.Node) ], e.prototype, "node_getBtn", void 0);
- a([ d(cc.Node) ], e.prototype, "node_prop", void 0);
- return a([ p ], e);
- }(cc.Component);
- n.default = h;
- cc._RF.pop();
- }, {
- "../GamePlay": "GamePlay",
- "../data/Enum": "Enum",
- "../mgr/DataMgr": "DataMgr",
- "../mgr/EffectMgr": "EffectMgr"
- } ],
- GetScore: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "120e0v0LJFFvYtxAK0pYTrx", "GetScore");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../mgr/PoolMgr"), c = t("../../util/common/ArtNum"), s = cc._decorator, l = s.ccclass, u = (s.property,
- function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- e.prototype.start = function() {};
- e.prototype.init = function(t, e) {
- var n = this;
- this.getComponent(c.default).init(e);
- this.node.opacity = 255;
- this.node.scaleX = this.node.scaleY = 2;
- this.node.setPosition(t.x, t.y);
- var o = this.node.y + 50;
- cc.tween(this.node).to(.2, {
- scale: 1
- }, {
- easing: "smooth"
- }).to(.5, {
- y: o,
- opacity: 0
- }, {
- easing: "smooth"
- }).call(function() {
- r.default.Inst.recyclePoolPrefab(r.NODEPOOLPREFABTYPE.GetScore, n.node);
- }).start();
- };
- return a([ l ], e);
- }(cc.Component));
- n.default = u;
- cc._RF.pop();
- }, {
- "../../mgr/PoolMgr": "PoolMgr",
- "../../util/common/ArtNum": "ArtNum"
- } ],
- GetTargetScoreTip: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "0bd9bSBwW1HpIUDEAb3E2/3", "GetTargetScoreTip");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = (c.property,
- function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- e.prototype.start = function() {};
- e.prototype.onEnable = function() {
- var t = this;
- this.node.scaleX = this.node.scaleY = 0;
- cc.tween(this.node).to(.5, {
- scale: 1
- }, {
- easing: "backOut"
- }).delay(.5).to(.1, {
- scale: 1.2
- }).to(.2, {
- scale: 0
- }).call(function() {
- r.default.Inst.recyclePoolPrefab(r.NODEPOOLPREFABTYPE.GetTargetScoreTip, t.node);
- }).start();
- };
- return a([ s ], e);
- }(cc.Component));
- n.default = l;
- cc._RF.pop();
- }, {
- "../../mgr/PoolMgr": "PoolMgr"
- } ],
- GuideAuthUI: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "92fc2BBUkxIV7OFqykahuEp", "GuideAuthUI");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.node_rectBg = null;
- e.node_bottom = null;
- e.node_authBtn = null;
- return e;
- }
- e.prototype.start = function() {
- this.node_rectBg.setContentSize(cc.winSize.width, cc.winSize.height);
- this.initEvent();
- };
- e.prototype.onEnable = function() {
- this.node_bottom.y = .5 * -cc.winSize.height - .5 * this.node_bottom.height - 10;
- cc.winSize.height, this.node_bottom.height;
- };
- e.prototype.initEvent = function() {
- this.node_rectBg.on(cc.Node.EventType.TOUCH_END, this.onClickAuthBtn, this);
- this.node_authBtn.on(cc.Node.EventType.TOUCH_END, this.onClickAuthBtn, this);
- };
- e.prototype.onClickBg = function() {
- mk.ui.closePanel("GuideAuthUI");
- };
- e.prototype.onClickAuthBtn = function() {
- mk.ui.closePanel("GuideAuthUI");
- };
- a([ s(cc.Node) ], e.prototype, "node_rectBg", void 0);
- a([ s(cc.Node) ], e.prototype, "node_bottom", void 0);
- a([ s(cc.Node) ], e.prototype, "node_authBtn", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- GuideData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "e5757KUWwBMCLANLScrrZEc", "GuideData");
- var o = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, i = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.GuideData = void 0;
- var a = function() {
- function t() {
- this.crtID = null;
- }
- t.prototype.init = function() {
- return o(this, void 0, void 0, function() {
- var t, e, n, o, a, r, c, s;
- return i(this, function(i) {
- switch (i.label) {
- case 0:
- return (t = gData.gameData.configs.Guide) ? [ 3, 2 ] : [ 4, mk.loader.load("data/guide_data", cc.JsonAsset) ];
- case 1:
- (e = i.sent()) && e.json && (t = e.json);
- cc.log("无远程引导数据,使用本地测试数据");
- i.label = 2;
- case 2:
- this.data = new Map();
- n = [];
- o = 1;
- for (a = 0; a < t.length; a++) {
- r = {};
- c = t[a];
- s = c.id.split("_");
- r.id = parseInt(s[0]);
- r.step = parseInt(s[1]);
- r.trigger = c.trigger;
- r.tr_num = c.trNum;
- r.tr_form = c.trForm;
- r.dialog = c.dialog;
- r.dialog_pos = c.dialogPos;
- r.dialog_pos1 = c.dialogPos1;
- r.dialog_alignment = c.dialogAlignment;
- r.display_rect = c.displayRect;
- r.click_rect = c.clickRect;
- r.finger = c.finger;
- r.lag_next = parseFloat(c.lagNext);
- r.display_type = parseInt(c.trNum);
- if (o != r.id) {
- this.data.set(o, n);
- n = [];
- o = r.id;
- }
- n.push(r);
- }
- this.data.set(o, n);
- return [ 2 ];
- }
- });
- });
- };
- t.prototype.getGuidesByID = function(t) {
- return this.data.get(t);
- };
- return t;
- }();
- n.GuideData = a;
- cc._RF.pop();
- }, {} ],
- GuideSystem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "ccad7HVXppOw6s55udVONoH", "GuideSystem");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var o = t("../../game/data/GameData"), i = t("./UISystem"), a = function() {
- function t() {}
- t.prototype.open = function(t) {
- this.crtGuideID = gData.gameData.getProp(o.GameProp.guideID);
- if (!cc.sys.isNative) {
- this.crtGuideID = 1;
- gData.gameData.setProp(o.GameProp.levelNum, 0);
- }
- if (this.crtGuideID >= 9999) mk.console.log("新手引导已做完"); else {
- if (!(t <= this.crtGuideID && this.crtGuideID > 0)) {
- gData.guideData.crtID = t;
- this.crtGuideID = t;
- mk.ui.openPanel("module/guide/guide", i.OpenActionType.normal, this.ui);
- this.setGuideID(this.crtGuideID++);
- return !0;
- }
- mk.console.log("当前引导已做过:" + t);
- }
- };
- t.prototype.setGuideID = function(t) {
- gData.guideData.getGuidesByID(t);
- if (2 == t) {
- t = 9999;
- mk.data.sendXYEvent("guide_end", "新手引导结束");
- }
- gData.gameData.setProp(o.GameProp.guideID, t);
- };
- t.prototype.close = function() {
- this.crtGuideID++;
- };
- t.prototype.isGuideComplete = function() {
- return !this.crtGuideID || 9999 === this.crtGuideID;
- };
- t.prototype.isGuiding = function() {
- return null != mk.ui.getCurOnPanel("guide");
- };
- return t;
- }();
- n.default = a;
- cc._RF.pop();
- }, {
- "../../game/data/GameData": "GameData",
- "./UISystem": "UISystem"
- } ],
- GuideVO: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "c9ea3VwpPlHa66ZUXyrMFGs", "GuideVO");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.default = function() {
- this.display_type = 0;
- };
- cc._RF.pop();
- }, {} ],
- GuideWeakData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "8cbacNlAy1IKqiUU9g+3gM8", "GuideWeakData");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var o = function() {
- function t() {
- this.data_config = {
- panelWeight: {},
- triggerTime: 5
- };
- this.enable = !1;
- this.guideStyle = null;
- this.silent_time = 0;
- this.cur_guide_id = 0;
- this.cur_guide_panel = null;
- this.panel_name_config = {
- moreGame: 1,
- turnable: 2,
- none: 3,
- pigBank: 4,
- blessingBag: 5,
- sign: 6,
- redBagCash: 7,
- rewardLuck: 8
- };
- }
- t.prototype.init = function() {
- gData.gameData.configs.ServerConfig.triggerTime && (this.data_config.triggerTime = parseInt(gData.gameData.configs.ServerConfig.triggerTime));
- if (gData.gameData.configs.ServerConfig.panelWeight) {
- this.data_config.panelWeight = {};
- for (var t = gData.gameData.configs.ServerConfig.panelWeight.split(","), e = 0; e < t.length; e++) {
- var n = t[e].split(":");
- this.data_config.panelWeight[n[0]] = parseInt(n[1]);
- }
- }
- };
- t.prototype.initGuideId = function() {
- var t = this.data_config.panelWeight, e = 0;
- for (var n in t) e += t[n];
- var o = 0, i = mk.math.random(1, e);
- for (var n in t) if (i < (o += t[n])) {
- gData.guideWeakData.cur_guide_id = parseInt(n);
- break;
- }
- };
- t.prototype.openPanelByBtn = function() {
- var t = gData.guideWeakData.cur_guide_id;
- gData.gameData.funBtns["btn" + t] && gData.gameData.funBtns["btn" + t].emit("click");
- };
- return t;
- }();
- n.default = o;
- cc._RF.pop();
- }, {} ],
- GuideWeak: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "f13f5zT97NMpINpXOCogVAt", "GuideWeak");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e._eventManager = cc.internal.eventManager;
- return e;
- }
- e.prototype.onLoad = function() {
- gData.guideWeakData.guideStyle = this;
- this.InitTouch();
- mk.event.register("close-panel", this.onClosePanel, this);
- };
- e.prototype.update = function(t) {
- if (gData.guideWeakData.enable && gData.guideWeakData.data_config.triggerTime && !gData.guideWeakData.cur_guide_id && mk.guide.isGuideComplete() && !(gData.gameData.gameStyle.node.parent.childrenCount > 1)) {
- gData.guideWeakData.silent_time += t;
- if (gData.guideWeakData.silent_time >= gData.guideWeakData.data_config.triggerTime) {
- gData.guideWeakData.initGuideId();
- gData.guideWeakData.openPanelByBtn();
- }
- }
- };
- e.prototype.onClosePanel = function(t) {
- void 0 === t && (t = "");
- cc.log(t);
- gData.guideWeakData.panel_name_config[t] == gData.guideWeakData.cur_guide_id && (gData.guideWeakData.cur_guide_id = 0);
- };
- e.prototype.onClickCall = function() {
- gData.guideWeakData.silent_time = 0;
- };
- e.prototype.InitTouch = function() {
- var t = cc.EventListener;
- this._touchListener = t.create({
- event: t.TOUCH_ONE_BY_ONE,
- swallowTouches: !1,
- owner: this.node,
- mask: null,
- onTouchBegan: this.onTouchStart.bind(this),
- onTouchMoved: null,
- onTouchEnded: this.onTouchEnded.bind(this),
- onTouchCancelled: null
- });
- this._eventManager.addListener(this._touchListener, this.node);
- };
- e.prototype.onTouchStart = function(t) {
- var e = t.getLocation(), n = this.node.parent.convertToNodeSpaceAR(new cc.Vec2(e.x, e.y));
- return this.pointInPoly(n, this.node);
- };
- e.prototype.onTouchEnded = function(t) {
- this.onClickCall(t);
- };
- e.prototype.pointInPoly = function(t, e) {
- var n = e.getPosition();
- return t.x >= n.x - this.node.width / 2 && t.x <= n.x + this.node.width / 2 && t.y >= n.y - this.node.height / 2 && t.y <= n.y + this.node.height / 2;
- };
- e.prototype.onDestroy = function() {
- this._eventManager.removeListener(this._touchListener, this.node);
- mk.event.remove("close-panel", this.onClosePanel, this);
- };
- return a([ c ], e);
- }(cc.Component));
- n.default = s;
- cc._RF.pop();
- }, {} ],
- Guide: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "cc77atmGeBM4bPWFiQFl7H6", "Guide");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = t("../../data/GameData"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.node_display = null;
- e.node_click = null;
- e.node_bg = null;
- e.node_dialog = null;
- e.node_finger = null;
- e.node_head = null;
- e.node_person = null;
- e.rich_dialog = null;
- e.widgets = [ "top", "bottom", "left", "right", "verticalCenter", "horizontalCenter" ];
- e._eventManager = cc.internal.eventManager;
- return e;
- }
- e.prototype.onLoad = function() {};
- e.prototype.start = function() {
- if (null != gData.guideData.crtID) {
- this.reset();
- this.guides = gData.guideData.getGuidesByID(gData.guideData.crtID);
- this.crtStep = -1;
- this.nextStep();
- } else this.node.destroy();
- };
- e.prototype.nextStep = function() {
- this.crtStep++;
- this.crtGuide = this.guides[this.crtStep];
- mk.data.sendDataEvent(s.DataEventId.guide, "新手引导第" + gData.guideData.crtID + "_" + this.crtStep + "步完成");
- this.updateGuide();
- };
- e.prototype.updateGuide = function() {
- var t = this;
- if (null == this.crtGuide) this.close(); else {
- this.node_display.getComponent(cc.Mask).type = 0 == this.crtGuide.display_type ? cc.Mask.Type.RECT : cc.Mask.Type.ELLIPSE;
- this.node_bg.opacity = 180;
- this.node_finger.opacity = 255;
- this.node_dialog.opacity = 255;
- this.targetNode = null;
- this.event_data = null;
- this.ifThrough = !0;
- var e = [ null, null, null, null ], n = e[0], o = e[1], i = e[2], a = e[3];
- if ("all" == this.crtGuide.click_rect || -1 != this.crtGuide.click_rect.indexOf("event")) {
- if (0 == this.crtGuide.display_rect.length) this.node_display.width = this.node_display.height = 0; else {
- var r = this.crtGuide.display_rect.split(":");
- n = parseInt(r[0]);
- o = parseInt(r[1]);
- i = parseInt(r[2]);
- a = parseInt(r[3]);
- }
- if ("all" == this.crtGuide.click_rect) {
- this.node_click.x = 0;
- this.node_click.y = 0;
- this.node_click.width = this.node.width;
- this.node_click.height = this.node.height;
- this.ifThrough = !1;
- } else {
- this.event_data = this.crtGuide.id + "_" + (this.crtStep + 1);
- this.node_click.x = n;
- this.node_click.y = o;
- this.node_click.width = i;
- this.node_click.height = a;
- }
- } else {
- this.targetNode = cc.find("Canvas/" + this.crtGuide.click_rect);
- i = this.targetNode.width;
- a = this.targetNode.height;
- var c = mk.game.getWorldPos(this.targetNode);
- n = c.x;
- o = c.y;
- if (this.crtGuide && 2 == this.crtGuide.id && 1 == this.crtStep) {
- i = this.targetNode.parent.width;
- a = this.targetNode.parent.height;
- var s = mk.game.getWorldPos(this.targetNode.parent);
- n = s.x;
- o = s.y - a / 2;
- }
- this.node_click.width = this.node_click.height = 0;
- var l = new cc.Component.EventHandler();
- l.target = this.node;
- l.component = "Guide";
- l.handler = "clickNodeClick";
- this.targetNode.getComponent(cc.Button).clickEvents.push(l);
- }
- if (null != n && null != o && null != i && null != a) if (0 == this.crtGuide.display_type) {
- this.node_bg.x = this.node_bg.y = this.node_display.x = this.node_display.y = 0;
- this.node_display.width = this.node.width;
- this.node_display.height = this.node.height;
- cc.tween(this.node_display).to(.2, {
- x: n,
- y: o,
- width: i,
- height: a
- }, {
- onUpdate: function() {
- t.node_bg.x = -t.node_display.x;
- t.node_bg.y = -t.node_display.y;
- }
- }).start();
- } else {
- this.node_bg.x = this.node_display.x = n;
- this.node_bg.y = this.node_display.y = o;
- this.node_display.width = this.node_display.height = this.node_bg.width = this.node_bg.height = 2 * this.node.height;
- var u = this.crtGuide.display_type;
- cc.tween(this.node_display).to(.2, {
- width: u,
- height: u
- }).start();
- }
- if (null != this.crtGuide.dialog_pos && this.crtGuide.dialog_pos.length > 0) {
- r = this.crtGuide.dialog_pos.split(":");
- (d = this.node_dialog.getComponent(cc.Widget)).enabled = !0;
- for (var p = 0; p < this.widgets.length; p++) d[this.widgets[p]] = "" == r[p] ? null : parseInt(r[p]);
- } else {
- var d;
- r = this.crtGuide.dialog_pos1.split(",");
- (d = this.node_dialog.getComponent(cc.Widget)).enabled = !1;
- this.node_dialog.x = n + parseInt(r[0]);
- this.node_dialog.y = o + parseInt(r[1]);
- }
- var h = this.crtGuide.dialog_alignment;
- this.rich_dialog.horizontalAlign = "0" == h ? cc.macro.TextAlignment.LEFT : "1" == h ? cc.macro.TextAlignment.CENTER : cc.macro.TextAlignment.RIGHT;
- if ("" == this.crtGuide.finger) this.node_finger.active = !1; else {
- this.node_finger.active = !0;
- r = this.crtGuide.finger.split(":");
- this.node_finger.x = n + parseInt(r[0]);
- this.node_finger.y = o + parseInt(r[1]);
- }
- if (1 == this.crtGuide.tr_form) {
- this.node_head.node.active = !0;
- this.node_person.node.active = !1;
- } else {
- this.node_head.node.active = !1;
- this.node_person.node.active = !0;
- }
- this.rich_dialog.string = this.crtGuide.dialog;
- }
- };
- e.prototype.clickNodeClick = function() {
- return r(this, void 0, void 0, function() {
- return c(this, function(t) {
- switch (t.label) {
- case 0:
- mk.audio.playEffect("button");
- cc.Tween.stopAllByTarget(this.node_display);
- console.log("clickNodeClick");
- this.targetNode && this.targetNode.getComponent(cc.Button).clickEvents.pop();
- this.event_data && mk.event.emit("event_guide", this.event_data);
- this.reset();
- return this.crtGuide.lag_next > 0 ? [ 4, mk.time.WaitForSeconds(this.crtGuide.lag_next) ] : [ 3, 2 ];
- case 1:
- t.sent();
- t.label = 2;
- case 2:
- this.nextStep();
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.reset = function() {
- this.node_display.width = 0;
- this.node_display.height = 0;
- this.node_bg.width = this.node.width;
- this.node_bg.height = this.node.height;
- this.node_bg.x = -this.node_display.x;
- this.node_bg.y = -this.node_display.y;
- this.node_bg.opacity = 0;
- this.node_click.width = 0;
- this.node_click.height = 0;
- this.node_finger.opacity = 0;
- this.node_dialog.opacity = 0;
- };
- e.prototype.close = function() {
- mk.guide.close();
- this.node.destroy();
- };
- e.prototype.initTouch = function() {
- var t = cc.EventListener;
- this._touchListener = t.create({
- event: t.TOUCH_ONE_BY_ONE,
- swallowTouches: !1,
- owner: this.node_click,
- mask: null,
- onTouchBegan: this.onTouchStart.bind(this),
- onTouchMoved: null,
- onTouchEnded: this.onTouchEnded.bind(this),
- onTouchCancelled: null
- });
- this._eventManager.addListener(this._touchListener, this.node_click);
- };
- e.prototype.onTouchStart = function(t) {
- if (this.ifThrough) {
- var e = t.getLocation(), n = this.node.parent.convertToNodeSpaceAR(new cc.Vec2(e.x, e.y));
- return this.pointInPoly(n, this.node_click);
- }
- return !1;
- };
- e.prototype.pointInPoly = function(t, e) {
- var n = e.getPosition();
- return t.x >= n.x - this.node_click.width / 2 && t.x <= n.x + this.node_click.width / 2 && t.y >= n.y - this.node_click.height / 2 && t.y <= n.y + this.node_click.height / 2;
- };
- e.prototype.onTouchEnded = function() {
- this.clickNodeClick();
- };
- e.prototype.onDestroy = function() {
- this._eventManager.removeListener(this._touchListener, this.node_click);
- };
- a([ p({
- type: cc.Node,
- displayName: "显示区域"
- }) ], e.prototype, "node_display", void 0);
- a([ p({
- type: cc.Node,
- displayName: "点击区域"
- }) ], e.prototype, "node_click", void 0);
- a([ p({
- type: cc.Node,
- displayName: "背景"
- }) ], e.prototype, "node_bg", void 0);
- a([ p({
- type: cc.Node,
- displayName: "对话框"
- }) ], e.prototype, "node_dialog", void 0);
- a([ p({
- type: cc.Node,
- displayName: "手指"
- }) ], e.prototype, "node_finger", void 0);
- a([ p({
- type: cc.Sprite,
- displayName: "头像"
- }) ], e.prototype, "node_head", void 0);
- a([ p({
- type: sp.Skeleton,
- displayName: "形象"
- }) ], e.prototype, "node_person", void 0);
- a([ p({
- type: cc.RichText,
- displayName: "对话内容"
- }) ], e.prototype, "rich_dialog", void 0);
- return a([ u ], e);
- }(cc.Component);
- n.default = d;
- cc._RF.pop();
- }, {
- "../../data/GameData": "GameData"
- } ],
- HelpData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "aaac0t3/iZIuY4huYMhWUJL", "HelpData");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.HelpData = void 0;
- var o = function() {
- function t() {
- this.init_desc_name = !1;
- this._des = "";
- }
- Object.defineProperty(t.prototype, "des", {
- get: function() {
- return this._des;
- },
- set: function(t) {
- this._des = t;
- this.init_desc_name = !0;
- },
- enumerable: !1,
- configurable: !0
- });
- return t;
- }();
- n.HelpData = o;
- cc._RF.pop();
- }, {} ],
- Help: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "7626bHemEpG267E801XmW+W", "Help");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.lbl_desc = null;
- return e;
- }
- e.prototype.start = function() {
- mk.ad.showNative(4);
- };
- e.prototype.update = function() {
- gData.help.init_desc_name && (this.lbl_desc.string = gData.help.des);
- };
- e.prototype.lateUpdate = function() {
- gData.help.init_desc_name = !1;
- };
- e.prototype.onClickClose = function() {
- mk.ad.destroyNativeAd();
- };
- a([ s({
- type: cc.Label,
- displayName: "文字说明"
- }) ], e.prototype, "lbl_desc", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- HotUpdatePanel: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "a9502IxXURFCJkFwG7UFpJ+", "HotUpdatePanel");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../../mk/sdk/hot/HotUpdate"), c = t("../../data/AppData"), s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.manifest = null;
- return e;
- }
- e.prototype.onLoad = function() {
- var t = this;
- this.initView();
- var e = new r.HotOptions();
- e.OnVersionInfo = function(t) {
- t.local, t.server;
- };
- e.OnUpdateProgress = function(t) {
- t.getDownloadedBytes(), t.getTotalBytes(), t.getDownloadedFiles(), t.getTotalFiles();
- var e = t.getPercentByFile().toFixed(2);
- t.getPercent().toFixed(2), t.getMessage();
- gData.appData.updateState = c.UpdateState.IsUpdate;
- gData.appData.updatePercent = parseFloat(e);
- console.log("[update]: 进度=" + e);
- };
- e.OnNeedToUpdate = function() {
- r.default.hotUpdate();
- };
- e.OnNoNeedToUpdate = function() {
- t.enterGame();
- };
- e.OnUpdateFailed = function() {
- console.log("热更新失败");
- setTimeout(function() {
- r.default.checkUpdate();
- }, 2e3);
- };
- e.OnUpdateSucceed = function() {
- console.log("更新成功");
- cc.audioEngine.stopAll();
- cc.game.restart();
- };
- r.default.init(this.manifest, e);
- };
- e.prototype.start = function() {};
- e.prototype.initView = function() {};
- e.prototype.checkHotUpdate = function() {
- if (cc.sys.isNative) this.manifest && r.default.checkUpdate(); else {
- console.log("web 平台不需要热更新");
- this.enterGame();
- }
- };
- e.prototype.enterGame = function() {
- console.log("进入游戏成功");
- gData.appData.updateState = c.UpdateState.UpdateFinish;
- };
- a([ u({
- displayName: "project.manifest",
- type: cc.Asset
- }) ], e.prototype, "manifest", void 0);
- return a([ l ], e);
- }(cc.Component);
- n.default = p;
- cc._RF.pop();
- }, {
- "../../../mk/sdk/hot/HotUpdate": "HotUpdate",
- "../../data/AppData": "AppData"
- } ],
- HotUpdate: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "00c37gL5Y9EX4cXueCujJ0L", "HotUpdate");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.HotOptions = void 0;
- var o = function() {
- function t() {}
- t.prototype.check = function() {
- for (var t in this) if ("check" !== t && !this[t]) {
- console.log("参数HotOptions." + t + "未设置!");
- return !1;
- }
- return !0;
- };
- return t;
- }();
- n.HotOptions = o;
- var i = new (function() {
- function t() {
- this._assetsMgr = null;
- this._options = null;
- this._state = t.State.None;
- }
- t.prototype.checkUpdate = function() {
- if (this._assetsMgr) if (this._assetsMgr.getState() !== jsb.AssetsManager.State.UNINITED) if (this._assetsMgr.getLocalManifest().isLoaded()) {
- this._assetsMgr.setEventCallback(this._hotUpdateCallBack.bind(this));
- this._state = t.State.Check;
- this._assetsMgr.checkUpdate();
- } else console.log("加载本地 manifest 失败 ..."); else cc.error("未初始化"); else console.log("请先初始化");
- };
- t.prototype.hotUpdate = function() {
- if (this._assetsMgr) {
- this._assetsMgr.setEventCallback(this._hotUpdateCallBack.bind(this));
- this._state = t.State.Update;
- this._assetsMgr.update();
- } else console.log("请先初始化");
- };
- t.prototype._hotUpdateCallBack = function(e) {
- var n = e.getEventCode();
- console.log("hotUpdate Code: " + n);
- switch (n) {
- case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:
- case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:
- case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST:
- console.log("无远程资源");
- this._options.OnNoNeedToUpdate && this._options.OnNoNeedToUpdate(n);
- break;
- case jsb.EventAssetsManager.ALREADY_UP_TO_DATE:
- console.log("已经和远程版本一致,无须更新");
- this._options.OnNoNeedToUpdate && this._options.OnNoNeedToUpdate(n);
- break;
- case jsb.EventAssetsManager.NEW_VERSION_FOUND:
- console.log("发现新版本,请更新");
- this._options.OnNeedToUpdate && this._options.OnNeedToUpdate(n);
- break;
- case jsb.EventAssetsManager.UPDATE_PROGRESSION:
- console.log("更新中...");
- this._state === t.State.Update && this._options.OnUpdateProgress && this._options.OnUpdateProgress(e);
- break;
- case jsb.EventAssetsManager.UPDATE_FINISHED:
- console.log("更新成功");
- this._onUpdateFinished();
- break;
- case jsb.EventAssetsManager.ASSET_UPDATED:
- break;
- default:
- this._onUpdateFailed(n);
- }
- };
- t.prototype._onUpdateFailed = function(t) {
- this._assetsMgr.setEventCallback(null);
- this._options.OnUpdateFailed && this._options.OnUpdateFailed(t);
- };
- t.prototype._onUpdateFinished = function() {
- this._assetsMgr.setEventCallback(null);
- var t = jsb.fileUtils.getSearchPaths(), e = this._assetsMgr.getLocalManifest().getSearchPaths();
- console.log("[HotUpdate] 搜索路径: " + JSON.stringify(e));
- Array.prototype.unshift(t, e);
- cc.sys.localStorage.setItem("HotUpdateSearchPaths", JSON.stringify(t));
- jsb.fileUtils.setSearchPaths(t);
- this._options.OnUpdateSucceed && this._options.OnUpdateSucceed();
- };
- t.prototype.showSearchPath = function() {
- console.log("========================搜索路径========================");
- for (var t = jsb.fileUtils.getSearchPaths(), e = 0; e < t.length; e++) console.log("[" + e + "]: " + t[e]);
- console.log("======================================================");
- };
- t.prototype.init = function(t, e) {
- if (cc.sys.isNative && e.check()) {
- this._options = e;
- if (!this._assetsMgr) {
- this.showSearchPath();
- var n = t.nativeUrl;
- cc.loader.md5Pipe && (n = cc.loader.md5Pipe.transformURL(n));
- var o = (jsb.fileUtils ? jsb.fileUtils.getWritablePath() : "/") + "remote-asset";
- this._assetsMgr = new jsb.AssetsManager(n, o, function(t, e) {
- console.log("客户端版本: " + t + ", 当前最新版本: " + e);
- for (var n = t.split("."), o = e.split("."), i = 0; i < n.length; ++i) {
- var a = parseInt(n[i]), r = parseInt(o[i] || "0");
- if (a !== r) return a - r;
- }
- return o.length > n.length ? -1 : 0;
- });
- this._assetsMgr.setVerifyCallback(function(t, e) {
- e.compressed, e.md5, e.path, e.size;
- return !0;
- });
- cc.sys.os, cc.sys.OS_ANDROID;
- var i = this._assetsMgr.getLocalManifest();
- console.log("[HotUpdate] 热更新资源存放路径: " + o);
- console.log("[HotUpdate] 本地manifest路径: " + n);
- console.log("[HotUpdate] local packageUrl: " + i.getPackageUrl());
- console.log("[HotUpdate] project.manifest remote url: " + i.getManifestFileUrl());
- console.log("[HotUpdate] version.manifest remote url: " + i.getVersionFileUrl());
- }
- }
- };
- t.State = {
- None: 0,
- Check: 1,
- Update: 2
- };
- return t;
- }())();
- n.default = i;
- cc._RF.pop();
- }, {} ],
- HttpData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "f4687XIHE1PXpP56AhrXtMn", "HttpData");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.ServerUrl = n.HttpData = void 0;
- var o, i = function() {
- function t() {
- this.serverType = 1;
- }
- t.prototype.getServerUrl = function() {
- switch (this.serverType) {
- case 0:
- return o.test;
- case 1:
- return o.formal;
- case 2:
- return o.liyang;
- case 3:
- return o.hanguo;
- }
- return o.formal;
- };
- return t;
- }();
- n.HttpData = i;
- (function(t) {
- t.test = "https://cutfruitage-test.duiweize.com/";
- t.formal = "https://cutfruitage.duiweize.com/";
- t.liyang = "http://172.16.15.231:9162/";
- t.hanguo = "http://172.16.15.167:9162/";
- })(o = n.ServerUrl || (n.ServerUrl = {}));
- cc._RF.pop();
- }, {} ],
- HttpSystem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "fe015tjuNVJ1rKouaAn8VvC", "HttpSystem");
- var o = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, i = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var a = function() {
- function t() {}
- t.prototype.sendData = function(t, e, n) {
- void 0 === n && (n = !0);
- return o(this, void 0, void 0, function() {
- var o, a, r;
- return i(this, function(i) {
- switch (i.label) {
- case 0:
- e.timestamp = Math.floor(new Date().getTime() / 1e3);
- e.appVersion = gData.appData.appVersion;
- e.tfChannel = gData.appData.tfChannel;
- e.versioncfg = gData.appData.version;
- o = mk.encrypt.encrypt(JSON.stringify(e), gData.loginData.sessionKey, gData.appData.appId);
- a = {
- uin: gData.loginData.uin,
- encrypt: o
- };
- return [ 4, this.sendRequest(t, "POST", JSON.stringify(a), !1, n) ];
- case 1:
- r = i.sent();
- return [ 2, this.checkData(r) ];
- }
- });
- });
- };
- t.prototype.sendRequest = function(t, e, n, o, i) {
- void 0 === e && (e = "POST");
- void 0 === n && (n = null);
- void 0 === o && (o = !0);
- void 0 === i && (i = !0);
- t = gData.httpData.getServerUrl() + t;
- return new Promise(function(a, r) {
- var c = 0, s = new XMLHttpRequest(), l = function() {
- s.open(e, t, i);
- s.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
- o && null != n && (n = mk.encrypt.rsaEncrypt(n));
- s.send(n);
- };
- s.onreadystatechange = function() {
- if (4 === s.readyState) if (200 === s.status) {
- var e = s.responseText, n = JSON.parse(e);
- mk.console.logSingle("response:" + t, n);
- a(n);
- } else {
- mk.console.error("httpRequest.status", s.status);
- r({
- errcode: 1,
- errmsg: "status..." + s.status
- });
- }
- };
- s.ontimeout = function() {
- if (++c >= 3) {
- mk.console.error("http.ontimeout", t);
- r({
- errcode: 1,
- errmsg: "ontimeout"
- });
- } else l();
- };
- s.onerror = function() {
- mk.console.error("http.onerror", t);
- r({
- errcode: 1,
- errmsg: "onerror"
- });
- };
- l();
- });
- };
- t.prototype.checkData = function(t, e) {
- void 0 === e && (e = !1);
- var n = null;
- if (e) n = t.data; else if (t.encrypt) {
- n = mk.encrypt.decrypt(t.encrypt, gData.loginData.sessionKey, gData.appData.appId);
- n = JSON.parse(n);
- } else t.data && (n = t.data);
- t.data = n;
- return t;
- };
- return t;
- }();
- n.default = a;
- cc._RF.pop();
- }, {} ],
- IADSDKMgr: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "9f951Bz1DdFSbFZXOe4weSR", "IADSDKMgr");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- cc._RF.pop();
- }, {} ],
- JsbSystem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "144031h5xRBsa+umFGEHyuG", "JsbSystem");
- var o = this && this.__spreadArrays || function() {
- for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length;
- var o = Array(t), i = 0;
- for (e = 0; e < n; e++) for (var a = arguments[e], r = 0, c = a.length; r < c; r++,
- i++) o[i] = a[r];
- return o;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var i = function() {
- function t() {}
- t.isFileExist = function(t) {
- if (cc.sys.os == cc.sys.OS_WINDOWS) return !0;
- var e = this.getWritablePath() + t + ".apk";
- return jsb.fileUtils.isFileExist(e);
- };
- t.getWritablePath = function() {
- return jsb.fileUtils.getWritablePath();
- };
- t.callStaticMethod = function(t, e, n) {
- for (var i, a = [], r = 3; r < arguments.length; r++) a[r - 3] = arguments[r];
- var c = (i = jsb.reflection).callStaticMethod.apply(i, o([ t, e, n ], a));
- return c;
- };
- t.backTest = function() {};
- t.updateDeviceInfo = function(t) {
- mk.console.log("===[JsbSystem] updateDeviceInfo", t);
- cc.sys.os == cc.sys.OS_ANDROID ? gData.appData.updateDeviceInfo(t) : (cc.sys.os,
- cc.sys.OS_IOS);
- };
- t.checkPermission = function() {
- cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "checkPermission", "()V") : cc.sys.os == cc.sys.OS_IOS && jsb.reflection.callStaticMethod("GameConfig", "checkPermission:", "");
- };
- t.getDeviceInfo = function() {
- var t = "";
- if (cc.sys.os == cc.sys.OS_ANDROID) {
- t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getDeviceInfo", "()Ljava/lang/String;");
- console.log("===[JsbSystem] getDeviceInfo ", t);
- gData.appData.updateDeviceInfo(t);
- } else cc.sys.os == cc.sys.OS_IOS ? this.callStaticMethod(this._JSB_IOS_PATH, "getDeviceInfo", "") : gData.appData.getDeviceInfoCompelete = !0;
- };
- t.getPackageName = function() {
- var t = "";
- cc.sys.os == cc.sys.OS_ANDROID ? t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getPackageName", "()Ljava/lang/String;") : cc.sys.os == cc.sys.OS_IOS && (t = this.callStaticMethod("CsjAdReward", "getPackageName", ""));
- return t;
- };
- t.getWxAppId = function() {
- var t = "";
- cc.sys.os == cc.sys.OS_ANDROID ? t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getWxAppId", "()Ljava/lang/String;") : cc.sys.os == cc.sys.OS_IOS && (t = this.callStaticMethod("CsjAdReward", "getWxAppId", ""));
- var e = t.split(";");
- if (e) {
- gData.appData.appId = e[0];
- gData.appData.version = e[1];
- }
- };
- t.getAdvertisingChannel = function() {
- var t = "";
- cc.sys.os == cc.sys.OS_ANDROID ? t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getAdvertisingChannel", "()Ljava/lang/String;") : cc.sys.os == cc.sys.OS_IOS && (t = this.callStaticMethod("CsjAdReward", "AdvertisingChannel", ""));
- return t;
- };
- t.showSplash = function() {
- cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "showSplash", "()V") : cc.sys.os == cc.sys.OS_IOS && jsb.reflection.callStaticMethod("GameConfig", "showSplash:", "");
- };
- t.setClipboard = function(t) {
- if (cc.sys.os == cc.sys.OS_ANDROID) this.callStaticMethod(this._JSB_ANDROID_PATH, "setClipboard", "(Ljava/lang/String;)V", t); else if (cc.sys.os == cc.sys.OS_IOS) ; else if (cc.sys.isBrowser) {
- var e = t, n = document.createElement("textarea");
- n.value = e;
- n.setAttribute("readonly", "");
- n.style.contain = "strict";
- n.style.position = "absolute";
- n.style.left = "-9999px";
- n.style.fontSize = "12pt";
- var o = getSelection(), i = !1;
- o.rangeCount > 0 && (i = o.getRangeAt(0));
- document.body.appendChild(n);
- n.select();
- n.selectionStart = 0;
- n.selectionEnd = e.length;
- var a = !1;
- try {
- a = document.execCommand("copy");
- } catch (t) {}
- document.body.removeChild(n);
- if (i) {
- o.removeAllRanges();
- o.addRange(i);
- }
- return a;
- }
- };
- t.requestPermission = function() {
- cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "requestPermission", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "requestPermission", "");
- };
- t.getAppVersion = function() {
- cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "getAppVersion", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "getAppVersion", "");
- };
- t.setAppVersion = function() {
- cc.sys.os == cc.sys.OS_ANDROID || (cc.sys.os, cc.sys.OS_IOS);
- };
- t.installApk = function(t) {
- var e = this.getWritablePath() + t + ".apk";
- cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "installApk", "(Ljava/lang/String;)V", e) : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("GameConfig", "installApk:", "");
- };
- t.ifCanStartGame = function(t, e) {
- var n = !1;
- if (cc.sys.os == cc.sys.OS_ANDROID) return this.callStaticMethod(this._JSB_ANDROID_PATH, "isStartGame", "(Ljava/lang/String;Z)Z", t, e);
- cc.sys.os == cc.sys.OS_IOS && (n = this.callStaticMethod("GameConfig", "installApk:", ""));
- return n;
- };
- t.setTAEventRegister = function() {
- cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "setTAEventRegister", "()V") : (cc.sys.os,
- cc.sys.OS_IOS);
- };
- t.sendEvent = function(t, e) {
- cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "sendEvent", "(Ljava/lang/String;Ljava/lang/String;)V", t, e) : (cc.sys.os,
- cc.sys.OS_IOS);
- };
- t.WxAuth = function() {
- cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "WxAuth", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WxAuth", "");
- };
- t.onGetWxAccessCode = function(t) {
- gData.wechatData.code = t;
- console.log("=== gData.wechatData.code", gData.wechatData.code);
- gData.loginData.wxLogin();
- };
- t.OpenMiniGame = function() {
- cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "OpenMiniGame", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WxAuth", "");
- };
- t.ShareToMiniGame = function() {
- cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "ShareToMiniGame", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "WxAuth", "");
- };
- t.sharePic = function() {
- cc.sys.platform != cc.sys.WECHAT_GAME && (cc.sys.os == cc.sys.OS_ANDROID ? jsb.reflection.callStaticMethod(this._JSB_ANDROID_PATH, "sharePic", "()V") : cc.sys.os == cc.sys.OS_IOS && jsb.reflection.callStaticMethod("GameConfig", "sharePic:", ""));
- };
- t.openWx = function() {
- cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "openWx", "()V") : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("AppController", "openWx", "");
- };
- t.downFile2Local = function(t, e, n, o, i) {
- var a = jsb.fileUtils.getWritablePath() + e;
- if (jsb) {
- var r = new jsb.Downloader();
- r.setOnFileTaskSuccess(function() {
- console.log("DownLoadM setOnFileTaskSuccess", "");
- if (n) {
- console.log("DownLoadM result... ", jsb.fileUtils.isFileExist(a));
- console.log("DownLoadM setOnFileTaskSuccess fullPath...", a);
- n(a);
- }
- });
- r.setOnTaskError(function(t, e, n, i) {
- console.log("DownLoadM setOnTaskError", e + " ; " + n + " ; " + i);
- o && o(a);
- });
- r.setOnTaskProgress(function(t, e, n, o) {
- console.log("DownLoadM", e + " ; " + n + " ; " + o);
- i && i(e, n, o);
- });
- r.createDownloadFileTask(t, a);
- return r;
- }
- };
- t.updateSplashAdLog = function(t) {
- var e = t.split("#"), n = JSON.parse(e[1]);
- gData.adData.updateADLog(6, e[0], n);
- };
- t.getAliRiskDeviceToken = function() {
- var t = "";
- cc.sys.os == cc.sys.OS_ANDROID ? t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getAliDeviceToken", "()Ljava/lang/String;") : cc.sys.os == cc.sys.OS_IOS && (t = this.callStaticMethod("AppController", "openWx", ""));
- return t;
- };
- t._JSB_ANDROID_PATH = "org/cocos2dx/javascript/thirdSdk/ThirdSdkMgr";
- t._JSB_IOS_PATH = "ThirdSdkMgr";
- return t;
- }();
- n.default = i;
- window.JsbMgr = i;
- cc._RF.pop();
- }, {} ],
- LoadResUtil: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "027abfHullEcrlQpxOvHVc5", "LoadResUtil");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var o = function() {
- function t() {}
- t.prototype.preload = function(t, e) {
- return new Promise(function(n, o) {
- cc.resources.preload(t, e, function() {}, function(t, e) {
- void 0 === t && (t = null);
- t ? o(t) : n(e);
- });
- });
- };
- t.prototype.load = function(t, e) {
- return new Promise(function(n, o) {
- cc.resources.load(t, e, function() {}, function(t, e) {
- void 0 === t && (t = null);
- t ? o(t) : n(e);
- });
- });
- };
- t.prototype.preloadDir = function(t, e) {
- return new Promise(function(n, o) {
- cc.resources.preloadDir(t, e, function() {}, function(t, e) {
- void 0 === t && (t = null);
- t ? o(t) : n(e);
- });
- });
- };
- t.prototype.loadDir = function(t, e) {
- return new Promise(function(n, o) {
- cc.resources.loadDir(t, e, function() {}, function(t, e) {
- void 0 === t && (t = null);
- t ? o(t) : n(e);
- });
- });
- };
- t.prototype.loadRemote = function(t, e) {
- return new Promise(function(n, o) {
- cc.assetManager.loadRemote(t, e, function(t, e) {
- void 0 === t && (t = null);
- t ? o(t) : n(e);
- });
- });
- };
- t.prototype.preloadScene = function(t, e) {
- return new Promise(function(n, o) {
- cc.resources.preloadScene(t, e, function() {}, function(t) {
- void 0 === t && (t = null);
- t ? o(t) : n();
- });
- });
- };
- t.prototype.loadScene = function(t, e) {
- return new Promise(function(n, o) {
- cc.resources.loadScene(t, e, function() {}, function(t, e) {
- void 0 === t && (t = null);
- t ? o(t) : n(e);
- });
- });
- };
- t._logTag = "[LoadResUtil]";
- return t;
- }();
- n.default = o;
- cc._RF.pop();
- }, {} ],
- LoadingBar: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "1e65dZ40OtGzJi5szN4XMZR", "LoadingBar");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.bar = null;
- return e;
- }
- e.prototype.onLoad = function() {
- this.len = this.bar.node.width;
- this.bar.node.x = -this.len;
- };
- e.prototype.setProgress = function(t) {
- this.bar.node.x = -this.len + t / 100 * this.len;
- };
- a([ s({
- type: cc.Sprite,
- displayName: "进度条"
- }) ], e.prototype, "bar", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- LogUtil: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "a2461HsfJZEfZb/Xlwzf0Nx", "LogUtil");
- var o = this && this.__spreadArrays || function() {
- for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length;
- var o = Array(t), i = 0;
- for (e = 0; e < n; e++) for (var a = arguments[e], r = 0, c = a.length; r < c; r++,
- i++) o[i] = a[r];
- return o;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.LogTagColor = void 0;
- var i, a = function() {
- function t() {
- this.ifShowLog = !1;
- this._tagChar = "...";
- this._frontChar = " ";
- this._keyValueChar = " = ";
- }
- t.prototype.log = function(t) {
- for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
- if (this.ifShowLog) {
- var i = t + this._tagChar;
- console.log.apply(console, o([ i ], e));
- }
- };
- t.prototype.logWithColor = function(t) {
- for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
- if (this.ifShowLog) {
- var a = t + this._tagChar;
- console.log.apply(console, o([ "%c " + a, "color: " + i.skyblue ], e));
- }
- };
- t.prototype.warn = function(t) {
- for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
- if (this.ifShowLog) {
- var a = t + this._tagChar;
- console.warn.apply(console, o([ "%c " + a, "color: " + i.orange ], e));
- }
- };
- t.prototype.error = function(t) {
- for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
- if (this.ifShowLog) {
- var a = t + this._tagChar;
- console.warn.apply(console, o([ "%c " + a, "color: " + i.red ], e));
- }
- };
- t.prototype.logSingle = function(t, e, n) {
- void 0 === n && (n = 0);
- if (cc.sys.os == cc.sys.OS_ANDROID) {
- if (this.ifShowLog && null != e && null != e) if ("number" == typeof e || "string" == typeof e || "boolean" == typeof e) this.log(t + "=> " + this.getFrontStr(n) + t, e); else for (var o = Object.keys(e), i = 0, a = o; i < a.length; i++) {
- var r = a[i];
- if (e.hasOwnProperty(r)) {
- o.indexOf(r);
- if ("object" == typeof e[r]) {
- this.log(t + "=> " + this.getFrontStr(n), r, this._keyValueChar);
- this.logSingle(t, e[r], n + 1);
- } else this.log(t + "=> " + this.getFrontStr(n), r, this._keyValueChar, e[r]);
- }
- }
- } else this.log(t, e);
- };
- t.prototype.getMessage = function() {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
- for (var n = "", o = 0; o < t.length; o++) {
- for (var i = t[o], a = "", r = 0; r < i.length; r++) {
- var c = i[r];
- a += c;
- }
- n += a;
- }
- return n;
- };
- t.prototype.getFrontStr = function(t) {
- var e = "";
- if (t > 0) {
- for (var n = 0; n < t; n++) e += this._frontChar;
- return e;
- }
- return e;
- };
- return t;
- }();
- n.default = a;
- (function(t) {
- t.red = "red;font-weight:bold";
- t.white = "white;font-weight:bold";
- t.yellow = "yellow;font-weight:bold";
- t.green = "green;font-weight:bold";
- t.bule = "blue;font-weight:bold";
- t.skyblue = "#3DB2EF;font-weight:bold";
- t.orange = "orange;font-weight:bold";
- t.black = "black;font-weight:bold";
- })(i = n.LogTagColor || (n.LogTagColor = {}));
- cc._RF.pop();
- }, {} ],
- LoginData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "7d48aywt1tPXI2eRhRzXwYP", "LoginData");
- var o = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, i = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.LoginData = void 0;
- var a = t("./StorageData"), r = function() {
- function t() {
- this.loadResCompelete = !1;
- this.isLogin = !1;
- this.sessionKey = "";
- this.randomKey = "abcdefghijklopqrstuvwxyzabcdefgh";
- this.uin = "";
- this.tempUin = "";
- this.loginTicket = "";
- }
- t.prototype.loadLocalRes = function() {
- return o(this, void 0, void 0, function() {
- var t;
- return i(this, function(e) {
- switch (e.label) {
- case 0:
- return [ 4, mk.loader.load("data/rule_data", cc.JsonAsset) ];
- case 1:
- if ((t = e.sent()) && t.json) {
- this.rule_data = t.json.server;
- this.privacy_data = t.json.privacy;
- this.loadResCompelete = !0;
- }
- return [ 2 ];
- }
- });
- });
- };
- t.prototype.init = function() {
- var t = mk.storage.getStorage(a.StorageKey.uin);
- this.uin = t || "";
- var e = mk.storage.getStorage(a.StorageKey.sessionKey);
- this.sessionKey = e || "";
- var n = mk.storage.getStorage(a.StorageKey.loginTicket);
- this.loginTicket = n || "";
- console.log("===[LoginData] uin =" + t + " sessionKey = " + e + '"');
- };
- t.prototype.login = function() {
- return o(this, void 0, void 0, function() {
- return i(this, function() {
- mk.console.logSingle("login...", this.sessionKey + "..." + this.uin);
- if ("" != this.sessionKey && "" != this.uin && "" != this.loginTicket) {
- console.log("=== login 有登录记录直接跳转到登录流程最后一步");
- this.getAccountInfo();
- } else {
- console.log("=== login 无登录记录");
- this.connect();
- }
- return [ 2 ];
- });
- });
- };
- t.prototype.connect = function() {
- return o(this, void 0, void 0, function() {
- var t, e;
- return i(this, function(n) {
- switch (n.label) {
- case 0:
- this.randomKey = mk.encrypt.randomString();
- t = {
- mac: gData.appData.mac,
- psk: this.randomKey,
- appId: gData.appData.appId
- };
- mk.console.logSingle("mac ", gData.appData.mac);
- return [ 4, mk.http.sendRequest("connectTest", "POST", JSON.stringify(t)) ];
- case 1:
- if (0 != (e = n.sent()).errcode) return [ 2 ];
- t = mk.encrypt.decrypt(e.encrypt, this.randomKey, gData.appData.appId);
- mk.console.logSingle("[FC]connectTest decryptData", t);
- this.tempUin = JSON.parse(t).tmp_uin;
- mk.storage.setStorage(a.StorageKey.uin, this.tempUin);
- this.wxLogin();
- return [ 2 ];
- }
- });
- });
- };
- t.prototype.wxLogin = function() {
- return o(this, void 0, void 0, function() {
- var t, e, n, o, r;
- return i(this, function(i) {
- switch (i.label) {
- case 0:
- t = 3;
- cc.sys.os == cc.sys.OS_ANDROID ? t = 1 : cc.sys.os == cc.sys.OS_IOS && (t = 2);
- e = {
- code: gData.wechatData.code,
- clientType: t,
- deviceToken: mk.aliRiskManager.deviceToken,
- appVersion: gData.appData.appVersion,
- tfChannel: gData.appData.tfChannel,
- android_id: gData.appData.machineInfo.android_id,
- versioncfg: gData.appData.version,
- idfa: gData.appData.machineInfo.idfa,
- imei: gData.appData.machineInfo.imei,
- mac: gData.appData.mac,
- oaid: gData.appData.machineInfo.oaid
- };
- if (null != gData.wechatData.code) {
- o = mk.encrypt.encrypt(JSON.stringify(e), this.sessionKey, gData.appData.appId);
- n = {
- uin: this.uin,
- encrypt: o
- };
- } else {
- o = mk.encrypt.encrypt(JSON.stringify(e), this.randomKey, gData.appData.appId);
- n = {
- uin: this.tempUin,
- encrypt: o
- };
- }
- return [ 4, mk.http.sendRequest("wxlogin", "POST", JSON.stringify(n), !1, !1) ];
- case 1:
- if (0 != (r = i.sent()).errcode) {
- if (41003 == r.errcode) {
- mk.storage.setStorage("alifengkong", 1);
- console.log("ali block");
- } else if (-10003 == r.errcode || -20003 == r.errcode) {
- console.log("restart errcode ", r.errcode);
- this.reload();
- }
- return [ 2 ];
- }
- n = null != gData.wechatData.code ? mk.encrypt.decrypt(r.encrypt, this.sessionKey, gData.appData.appId) : mk.encrypt.decrypt(r.encrypt, this.randomKey, gData.appData.appId);
- n = JSON.parse(n);
- this.loginTicket = n.login_ticket;
- mk.console.logSingle("[FC]wxLogin decrypt", n);
- mk.storage.setStorage(a.StorageKey.loginTicket, this.loginTicket);
- if (null == mk.storage.getStorage(a.StorageKey.isFirstIn)) {
- this.isFirstIn = !0;
- mk.storage.setStorage(a.StorageKey.isFirstIn, 1);
- }
- if (this.uin != n.uin) {
- this.uin = n.uin;
- this.isNew = !1;
- } else this.isNew = !0;
- mk.storage.setStorage(a.StorageKey.uin, this.uin);
- this.checkLogin();
- return [ 2 ];
- }
- });
- });
- };
- t.prototype.checkLogin = function() {
- return o(this, void 0, void 0, function() {
- var t, e, n, o, r;
- return i(this, function(i) {
- switch (i.label) {
- case 0:
- t = "";
- t = null != gData.wechatData.code ? this.sessionKey : mk.encrypt.randomString();
- e = {
- tmp_key: t,
- uin: this.uin,
- login_ticket: this.loginTicket,
- appId: gData.appData.appId
- };
- return [ 4, mk.http.sendRequest("checklogin", "POST", JSON.stringify(e)) ];
- case 1:
- if (0 != (n = i.sent()).errcode) return [ 2 ];
- o = null != gData.wechatData.code ? mk.encrypt.decrypt(n.encrypt, this.sessionKey, gData.appData.appId) : mk.encrypt.decrypt(n.encrypt, t, gData.appData.appId);
- r = JSON.parse(o);
- this.sessionKey = r.session_key;
- mk.console.logSingle("[FC]checkLogin decrypt", r);
- mk.storage.setStorage(a.StorageKey.sessionKey, this.sessionKey);
- this.getUserInfo();
- return [ 2 ];
- }
- });
- });
- };
- t.prototype.getUserInfo = function() {
- return o(this, void 0, void 0, function() {
- return i(this, function() {
- this.getAccountInfo();
- return [ 2 ];
- });
- });
- };
- t.prototype.getAccountInfo = function() {
- return o(this, void 0, void 0, function() {
- var t, e, n, o, r;
- return i(this, function(i) {
- switch (i.label) {
- case 0:
- console.log("uin ", gData.loginData.uin);
- mk.ad.init();
- mk.console.logSingle("machineInfo", gData.appData.machineInfo);
- return [ 4, mk.http.sendData("user/machine", gData.appData.machineInfo) ];
- case 1:
- i.sent();
- t = {
- version: gData.appData.appVersion
- };
- mk.http.sendData("updateVersion", t);
- e = {
- uin: this.uin,
- login_ticket: this.loginTicket
- };
- n = {
- uin: this.uin,
- encrypt: mk.encrypt.encrypt(JSON.stringify(e), this.sessionKey, gData.appData.appId)
- };
- return [ 4, mk.http.sendRequest("user", "POST", JSON.stringify(n), !1, !1) ];
- case 2:
- if (0 != (o = i.sent()).errcode) {
- if (-10003 == o.errcode || -20003 == o.errcode) {
- console.log("AA restart errcode ", o.errcode);
- this.reload();
- }
- return [ 2 ];
- }
- o = mk.http.checkData(o, !0);
- r = o.data;
- mk.console.logSingle("[FC] getAccountInfo decrypt", n);
- this.isAuth = r.is_auth;
- gData.wechatData.unionid = this.uin;
- if (this.isAuth) {
- gData.wechatData.nickName = r.nickname;
- gData.wechatData.avatar = r.headimgurl;
- gData.gameData.init_head = !0;
- mk.storage.setStorage(a.StorageKey.isAuth, 1);
- mk.storage.setStorage(a.StorageKey.nickname, gData.wechatData.nickName, !1);
- mk.storage.setStorage(a.StorageKey.avatar, gData.wechatData.avatar, !1);
- }
- gData.gameData.init();
- return [ 2 ];
- }
- });
- });
- };
- t.prototype.reload = function() {
- var t = this;
- setTimeout(function() {
- t.sessionKey = "";
- t.uin = "";
- t.loginTicket = "";
- t.isAuth = !1;
- t.tempUin = "";
- t.randomKey = "";
- gData.wechatData.nickName = "";
- gData.wechatData.avatar = "";
- cc.sys.localStorage.removeItem(a.StorageKey.sessionKey);
- cc.sys.localStorage.removeItem(a.StorageKey.uin);
- cc.sys.localStorage.removeItem(a.StorageKey.loginTicket);
- cc.sys.localStorage.removeItem(a.StorageKey.isAuth);
- cc.sys.localStorage.removeItem(a.StorageKey.nickname);
- cc.sys.localStorage.removeItem(a.StorageKey.avatar);
- cc.audioEngine.stopAll();
- cc.game.restart();
- });
- };
- return t;
- }();
- n.LoginData = r;
- cc._RF.pop();
- }, {
- "./StorageData": "StorageData"
- } ],
- Login: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "6dba2tWf41JpYkegatfLoGC", "Login");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = t("../../../before/util/Util"), l = t("../../../mk/system/JsbSystem"), u = t("../../component/LoadingBar"), p = t("../../data/AppData"), d = t("../hotUpdate/HotUpdatePanel"), h = cc._decorator, f = h.ccclass, y = h.property, g = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.bar = null;
- e.lbl_progress = null;
- e.lbl_server = null;
- e.lbl_privacy = null;
- e.process = 0;
- e.hotUpdatePanel = null;
- return e;
- }
- e.prototype.onLoad = function() {
- this.setProgress(0);
- };
- e.prototype.start = function() {
- if (1 != mk.storage.getStorage("alifengkong")) {
- mk.aliRiskManager.init();
- this.init();
- }
- };
- e.prototype.update = function() {
- if (gData.appData.getDeviceInfoCompelete) {
- gData.appData.getDeviceInfoCompelete = !1;
- this.getDeviceInfoBack();
- }
- if (gData.appData.updateState == p.UpdateState.ForceUpdateFinish) {
- gData.appData.updateState = p.UpdateState.CheckHot;
- this.checkHotUpdate();
- }
- if (gData.appData.updateState != p.UpdateState.IsUpdate) {
- if (gData.appData.updateState == p.UpdateState.UpdateFinish) {
- if (this.process < 100) {
- this.process += 2;
- this.setProgress(this.process);
- }
- if (gData.loginData.loadResCompelete) {
- if (mk.aliRiskManager.getRiskCode) {
- mk.aliRiskManager.getRiskCode = !1;
- this.login();
- } else if (gData.gameData.dataFinish) {
- if (1 != mk.storage.getStorage("agreementTip", !1)) {
- mk.ui.openPanel("module/login/agreementTip");
- mk.storage.setStorage("agreementTip", 1, !1);
- } else {
- mk.ui.openPanel("game/prefab/game");
- console.log("===[Jsbsystem 显示开屏广告================================");
- l.default.showSplash();
- }
- gData.gameData.dataFinish = !1;
- }
- } else gData.loginData.loadLocalRes();
- }
- } else {
- this.lbl_progress.string = "正在更新中,请耐心等待";
- this.bar.setProgress(gData.appData.updatePercent);
- }
- };
- e.prototype.setProgress = function(t) {
- this.bar.setProgress(t);
- this.lbl_progress.string = "加载不消耗流量 " + t + "%";
- };
- e.prototype.init = function() {
- return r(this, void 0, void 0, function() {
- return c(this, function() {
- l.default.getWxAppId();
- l.default.checkPermission();
- return [ 2 ];
- });
- });
- };
- e.prototype.getDeviceInfoBack = function() {
- return r(this, void 0, void 0, function() {
- return c(this, function(t) {
- switch (t.label) {
- case 0:
- gData.loginData.init();
- return [ 4, this.checkForceUpate() ];
- case 1:
- t.sent();
- this.checkRemoveLocalHot();
- mk.audio.init();
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.checkRemoveLocalHot = function() {
- var t = mk.storage.getStorage("currentVersion");
- mk.storage.setStorage("currentVersion", gData.appData.appVersion);
- if (t) {
- var e = s.default.versionCompareHandle(t, gData.appData.appVersion);
- console.log("compareVer ", e);
- if (e < 0) {
- var n = localStorage.getItem("HotUpdateSearchPaths");
- if (n) {
- for (var o = JSON.parse(n), i = o.length - 2, a = 0; a < i; a++) {
- var r = o.shift();
- jsb.fileUtils.removeDirectory(r);
- }
- cc.sys.localStorage.removeItem("HotUpdateSearchPaths");
- jsb.fileUtils.setSearchPaths(o);
- cc.audioEngine.stopAll();
- cc.game.restart();
- }
- }
- }
- };
- e.prototype.checkForceUpate = function() {
- return r(this, void 0, void 0, function() {
- return c(this, function(t) {
- switch (t.label) {
- case 0:
- return [ 4, this.getForceVersionInfo() ];
- case 1:
- t.sent();
- if (1 !== gData.appData.needForceUpdate) return [ 3, 2 ];
- mk.ui.openPanel("module/forceUpdate/forceUpdate");
- return [ 3, 4 ];
- case 2:
- return [ 4, this.checkHotUpdate() ];
- case 3:
- t.sent();
- t.label = 4;
- case 4:
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.getForceVersionInfo = function() {
- return r(this, void 0, void 0, function() {
- var t, e;
- return c(this, function(n) {
- switch (n.label) {
- case 0:
- t = {
- appId: gData.appData.appId,
- channel: gData.appData.tfChannel,
- version: gData.appData.appVersion
- };
- mk.console.logSingle("getForceVersionInfo ", t);
- return [ 4, mk.http.sendRequest("getForceVersionInfo", "POST", JSON.stringify(t), !1, !1) ];
- case 1:
- if ((e = n.sent()).data) {
- gData.appData.needForceUpdate = e.data.isForceUpdate;
- gData.appData.installVersion = e.data.version;
- gData.appData.installUrl = e.data.downloadAddress;
- gData.appData.updateDes = e.data.versionRemark;
- gData.appData.fixDes = e.data.bugRestoreRemark;
- } else {
- gData.appData.needForceUpdate = 0;
- console.error("[Login]无response.data 请检查.");
- }
- mk.console.logSingle("===[Login] gData.appData.needForceUpdate", e);
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.checkHotUpdate = function() {
- return r(this, void 0, void 0, function() {
- return c(this, function() {
- this.hotUpdatePanel = this.node.getComponent(d.default);
- if (this.hotUpdatePanel) {
- console.log("===[login] 登录界面,挂载热更脚本");
- this.hotUpdatePanel.checkHotUpdate();
- } else {
- console.error("===[login] 登录界面,没有挂载热更脚本");
- gData.appData.updateState = p.UpdateState.UpdateFinish;
- }
- return [ 2 ];
- });
- });
- };
- e.prototype.login = function() {
- mk.pool.init(gData.gameData.pools);
- gData.appData.init();
- gData.adData.init();
- mk.console.log("[FC] gData.appData.appId", gData.appData.appId);
- gData.loginData.login();
- };
- a([ y(u.default) ], e.prototype, "bar", void 0);
- a([ y({
- displayName: "加载文字",
- type: cc.Label
- }) ], e.prototype, "lbl_progress", void 0);
- a([ y({
- displayName: "服务协议",
- type: cc.Label
- }) ], e.prototype, "lbl_server", void 0);
- a([ y({
- displayName: "隐私协议",
- type: cc.Label
- }) ], e.prototype, "lbl_privacy", void 0);
- return a([ f ], e);
- }(cc.Component);
- n.default = g;
- cc._RF.pop();
- }, {
- "../../../before/util/Util": "Util",
- "../../../mk/system/JsbSystem": "JsbSystem",
- "../../component/LoadingBar": "LoadingBar",
- "../../data/AppData": "AppData",
- "../hotUpdate/HotUpdatePanel": "HotUpdatePanel"
- } ],
- MKSwitch: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "a0fd9gYXhZMJ46ArqYj2wBy", "MKSwitch");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.ifShowAd = !1;
- return e;
- }
- a([ s({
- displayName: "是否显示广告",
- tooltip: "",
- serializable: !0
- }) ], e.prototype, "ifShowAd", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- MKSystem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "f0038hKHC9Nf5+ipaUV9rc5", "MKSystem");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var o = t("../sdk/BuglySDK"), i = t("../utils/FileUtil"), a = t("../utils/TimeUtil"), r = t("./DataSystem"), c = t("./HttpSystem"), s = t("../utils/LoadResUtil"), l = t("../utils/LogUtil"), u = t("../utils/EncryptUtil"), p = t("../utils/GameUtil"), d = t("../utils/StorageUtil"), h = t("./TimerSystem"), f = t("./EventSystem"), y = t("../utils/MathUtil"), g = t("./AdSystem"), m = t("./JsbSystem"), _ = t("../sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr"), v = t("./AudioSystem"), b = t("./PoolSystem"), D = t("../utils/TweenUtil"), S = t("./GuideSystem"), A = t("../utils/StringUtil"), w = t("../../game/component/SetGray"), P = t("../../game/component/NumberAnim"), O = t("../sdk/aliRisk/AliRiskManager"), k = function() {
- function t() {}
- Object.defineProperty(t.prototype, "time", {
- get: function() {
- return this._time || (this._time = new a.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "file", {
- get: function() {
- return this._file || (this._file = new i.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "encrypt", {
- get: function() {
- return this._encrypt || (this._encrypt = new u.EncryptUtil());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "console", {
- get: function() {
- return this._console || (this._console = new l.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "game", {
- get: function() {
- return this._game || (this._game = new p.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "loader", {
- get: function() {
- return this._loader || (this._loader = new s.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "storage", {
- get: function() {
- return this._storage || (this._storage = new d.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "math", {
- get: function() {
- return this._math || (this._math = new y.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "string", {
- get: function() {
- return this._string || (this._string = new A.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "tween", {
- get: function() {
- return this._tween || (this._tween = new D.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "bugly", {
- get: function() {
- return this._bugly || (this._bugly = new o.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "data", {
- get: function() {
- return this._data || (this._data = new r.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "ad", {
- get: function() {
- return this._ad || (this._ad = new g.default(_.default.getInstance()));
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "jsb", {
- get: function() {
- return this._jsb || (this._jsb = new m.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "http", {
- get: function() {
- return this._http || (this._http = new c.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "audio", {
- get: function() {
- return this._audio || (this._audio = new v.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "timer", {
- get: function() {
- return this._timer || (this._timer = new h.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "event", {
- get: function() {
- return this._event || (this._event = new f.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "pool", {
- get: function() {
- return this._pool || (this._pool = new b.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "guide", {
- get: function() {
- return this._guide || (this._guide = new S.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "aliRiskManager", {
- get: function() {
- return this._aliRiskManager || (this._aliRiskManager = new O.default());
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "ui", {
- get: function() {
- return this._ui;
- },
- set: function(t) {
- this._ui = t;
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "tip", {
- get: function() {
- return this._tip;
- },
- set: function(t) {
- this._tip = t;
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "fly", {
- get: function() {
- return this._fly;
- },
- set: function(t) {
- this._fly = t;
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "component", {
- get: function() {
- return this._component || (this._component = new I());
- },
- enumerable: !1,
- configurable: !0
- });
- return t;
- }(), I = function() {
- function t() {}
- Object.defineProperty(t.prototype, "setGray", {
- get: function() {
- return w.default;
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "numberAnim", {
- get: function() {
- return P.default;
- },
- enumerable: !1,
- configurable: !0
- });
- return t;
- }();
- window.mk = new k();
- cc._RF.pop();
- }, {
- "../../game/component/NumberAnim": "NumberAnim",
- "../../game/component/SetGray": "SetGray",
- "../sdk/BuglySDK": "BuglySDK",
- "../sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr": "ATSDKMgr",
- "../sdk/aliRisk/AliRiskManager": "AliRiskManager",
- "../utils/EncryptUtil": "EncryptUtil",
- "../utils/FileUtil": "FileUtil",
- "../utils/GameUtil": "GameUtil",
- "../utils/LoadResUtil": "LoadResUtil",
- "../utils/LogUtil": "LogUtil",
- "../utils/MathUtil": "MathUtil",
- "../utils/StorageUtil": "StorageUtil",
- "../utils/StringUtil": "StringUtil",
- "../utils/TimeUtil": "TimeUtil",
- "../utils/TweenUtil": "TweenUtil",
- "./AdSystem": "AdSystem",
- "./AudioSystem": "AudioSystem",
- "./DataSystem": "DataSystem",
- "./EventSystem": "EventSystem",
- "./GuideSystem": "GuideSystem",
- "./HttpSystem": "HttpSystem",
- "./JsbSystem": "JsbSystem",
- "./PoolSystem": "PoolSystem",
- "./TimerSystem": "TimerSystem"
- } ],
- Main: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "ca47c5VYotGv4F867baLZGr", "Main");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.node_guide = null;
- return e;
- }
- e.prototype.start = function() {
- mk.ui.openPanel("module/login/login");
- mk.guide.ui = this.node_guide;
- };
- a([ s(cc.Node) ], e.prototype, "node_guide", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- MathUtil: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "2e942sG6JJJpaWgvlGJiuOO", "MathUtil");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var o = function() {
- function t() {
- this.numUnit = {
- 4: "万",
- 8: "亿",
- 12: "兆",
- 16: "万兆",
- 20: "亿兆",
- 24: "兆兆",
- 28: "万兆兆",
- 32: "亿兆兆",
- 36: "兆兆兆"
- };
- }
- t.prototype.dis = function(t, e, n, o) {
- return Math.sqrt(Math.pow(t - n, 2) + Math.pow(e - o, 2));
- };
- t.prototype.random = function(t, e, n) {
- void 0 === n && (n = !0);
- return n ? Math.floor(Math.random() * (e - t + 1) + t) : Math.random() * (e - t) + t;
- };
- t.prototype.randomByWeight = function(t, e, n) {
- void 0 === e && (e = 100);
- void 0 === n && (n = !0);
- if (100 != e) {
- e = 0;
- for (var o = 0; o < t.length; o++) e += t[o];
- }
- var i = Math.random() * e, a = t.concat(i), r = (a = a.sort(function(t, e) {
- return n ? t - e : e - t;
- })).indexOf(i);
- return Math.min(r, t.length - 1);
- };
- t.prototype.addition = function(t, e) {
- for (var n = "", o = 0, i = t.split(".")[0].split(""), a = e.split(".")[0].split(""); i.length || a.length || o; ) {
- n = (o += ~~i.pop() + ~~a.pop()) % 10 + n;
- o = o > 9;
- }
- return n.replace(/^0+/, "");
- };
- t.prototype.subtraction = function(t, e) {
- t = t.split(".")[0].split("");
- e = e.split(".")[0].split("");
- var n = t.length > e.length;
- if (t.length == e.length) for (var o = 0, i = t.length; o < i; o++) if (t[o] != e[o]) {
- n = t[o] > e[o];
- break;
- }
- n || (t = [ e, e = t ][0]);
- for (var a = ""; t.length; ) {
- var r = parseInt(t.pop()) - parseInt(e.pop() || 0);
- if (r >= 0) a = r + a; else {
- a = r + 10 + a;
- t[t.length - 1]--;
- }
- }
- "-" == (a = (n ? "" : "-") + a.replace(/^0*/g, "")) && (a = "0");
- return a;
- };
- t.prototype.contrastNumber = function(t, e) {
- t = t.split(".")[0].split("");
- e = e.split(".")[0].split("");
- var n = t.length > e.length;
- if (t.length == e.length) for (var o = 0, i = t.length; o < i; o++) if (t[o] != e[o]) {
- n = t[o] > e[o];
- break;
- }
- n || (t = [ e, e = t ][0]);
- for (var a = ""; t.length; ) {
- var r = parseInt(t.pop()) - parseInt(e.pop() || 0);
- if (r >= 0) a = r + a; else {
- a = r + 10 + a;
- t[t.length - 1]--;
- }
- }
- return t === e || Boolean(n);
- };
- t.prototype.accMuls = function(t, e) {
- var n = t.split("").reverse(), o = e.split("").reverse(), i = n.length, a = o.length, r = Array(i + a + 1).join("0").split("");
- n.map(function(t, e) {
- o.map(function(n, o) {
- r[e + o] = +r[e + o] + t * n;
- });
- });
- r.map(function(t, e) {
- if (t >= 10) {
- r[e + 1] = ~~r[e + 1] + ~~(r[e] / 10);
- r[e] %= 10;
- }
- });
- return r.reverse().join("").replace(/^0+/, "");
- };
- t.prototype.accMul = function(t, e) {
- var n = 0, o = t.toString(), i = e.toString();
- try {
- n += o.split(".")[1].length;
- } catch (t) {}
- try {
- n += i.split(".")[1].length;
- } catch (t) {}
- var a = this.accMuls(o.replace(".", ""), i.replace(".", ""));
- return this.accDiv(a, Math.pow(10, n).toString());
- };
- t.prototype.toNonExponential = function(t) {
- return t.toLocaleString().replace(/[,]/g, "");
- };
- t.prototype.accDiv = function(t, e) {
- var n, o, i = 0, a = 0, r = 0;
- try {
- i = t.toString().split(".")[1].length;
- } catch (t) {}
- try {
- a = e.toString().split(".")[1].length;
- } catch (t) {}
- n = Number(t.toString().replace(".", ""));
- if (0 == (o = Number(e.toString().replace(".", "")))) return "0";
- var c = String(n / o);
- try {
- r = c.toString().split(".")[1].length;
- } catch (t) {}
- var s = a - i - r;
- if (s < 0) {
- c = c.replace(".", "");
- for (;c.length <= Math.abs(s); ) c = "0" + c;
- var l = c.substring(0, c.length + s), u = c.substring(c.length + s, c.length);
- c = l + "." + u;
- return this.toNonExponential(Number(c));
- }
- if (s > 0) {
- c = c.replace(".", "");
- for (;c.length <= Math.abs(s); ) c += "0";
- return this.toNonExponential(Number(c));
- }
- return this.toNonExponential(Number(c.replace(".", "")));
- };
- t.prototype.format = function(t, e) {
- void 0 === e && (e = !0);
- var n, o = t.split(".")[0];
- for (var i in this.numUnit) {
- var a = Number(i);
- if (o.length - 1 >= a) if (e) {
- var r = o.slice(o.length - a, o.length - a + 1);
- n = Number(r) >= 1 ? o.slice(0, o.length - a) + "." + r + this.numUnit[a] : o.slice(0, o.length - a) + this.numUnit[a];
- } else n = o.slice(0, o.length - a) + this.numUnit[a];
- }
- return n || o;
- };
- return t;
- }();
- n.default = o;
- cc._RF.pop();
- }, {} ],
- MoreGameBanner: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "00a05wQTulPn6XITPp4d5KX", "MoreGameBanner");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = t("./MoreGamePicItem"), l = t("./PointItem"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.dragArea = null;
- e.item1 = null;
- e.item2 = null;
- e.pointPrefab = null;
- e.pointLy = null;
- e.btnLeft = null;
- e.btnRight = null;
- e.startX = 0;
- e.coolTime = !1;
- e.curSelDownItem = null;
- e.preDownItem = null;
- e.curIndex = 0;
- e.bannerDatas = null;
- e.curSelPoint = null;
- e.hasClick = !1;
- return e;
- }
- e.prototype.start = function() {
- this.dragArea.on(cc.Node.EventType.TOUCH_START, this.onDragStart, this);
- this.dragArea.on(cc.Node.EventType.TOUCH_END, this.onDragEnd, this);
- };
- e.prototype.onDisable = function() {
- this.dragArea.off(cc.Node.EventType.TOUCH_START, this.onDragStart, this);
- this.dragArea.off(cc.Node.EventType.TOUCH_END, this.onDragEnd, this);
- };
- e.prototype.setItemData = function(t) {
- return r(this, void 0, void 0, function() {
- var e, n;
- return c(this, function() {
- this.bannerDatas = t.item_data;
- if (this.bannerDatas && this.bannerDatas.length > 0) for (e = 0; e < this.bannerDatas.length; e++) {
- (n = cc.instantiate(this.pointPrefab)).name = e.toString();
- this.pointLy.addChild(n);
- }
- this.onOpenBigPicNode(0);
- return [ 2 ];
- });
- });
- };
- e.prototype.onOpenBigPicNode = function(t) {
- var e = this;
- this.curIndex = t;
- var n = this.bannerDatas[this.curIndex];
- this.curSelDownItem = this.item1;
- this.curSelDownItem.getComponent(s.default).init(n);
- this.curSelDownItem.x = 0;
- this.curSelDownItem.active = !0;
- this.item2.x = 750;
- this.curSelPoint = this.pointLy.getChildByName(this.curIndex.toString());
- this.curSelPoint.getComponent(l.default).setSel(!0);
- this.hasClick = !1;
- if (this.bannerDatas.length > 1) this.schedule(function() {
- e.hasClick || e.onSelDown(1);
- }, 3, cc.macro.REPEAT_FOREVER, 7); else {
- this.btnLeft.active = !1;
- this.btnRight.active = !1;
- }
- };
- e.prototype.onLeft = function() {
- mk.audio.playEffect("button");
- this.hasClick = !0;
- this.onSelDown(2);
- };
- e.prototype.onRight = function() {
- mk.audio.playEffect("button");
- this.hasClick = !0;
- this.onSelDown(1);
- };
- e.prototype.onSelDown = function(t) {
- var e = this;
- if (!this.coolTime) {
- var n, o = -750;
- if (1 == t) {
- this.curIndex + 1 > this.bannerDatas.length - 1 ? this.curIndex = 0 : this.curIndex++;
- n = this.bannerDatas[this.curIndex];
- if (this.curSelDownItem == this.item1) {
- this.curSelDownItem = this.item2;
- this.preDownItem = this.item1;
- } else {
- this.curSelDownItem = this.item1;
- this.preDownItem = this.item2;
- }
- this.curSelDownItem.getComponent(s.default).init(n);
- this.curSelDownItem.x = 750;
- o = -750;
- } else if (2 == t) {
- this.curIndex - 1 < 0 ? this.curIndex = this.bannerDatas.length - 1 : this.curIndex--;
- n = this.bannerDatas[this.curIndex];
- if (this.curSelDownItem == this.item1) {
- this.curSelDownItem = this.item2;
- this.preDownItem = this.item1;
- } else {
- this.curSelDownItem = this.item1;
- this.preDownItem = this.item2;
- }
- this.curSelDownItem.getComponent(s.default).init(n);
- this.curSelDownItem.x = -750;
- o = 750;
- }
- this.coolTime = !0;
- cc.tween(this.preDownItem).to(.4, {
- x: o
- }, cc.easeInOut(1)).start();
- cc.tween(this.curSelDownItem).to(.4, {
- x: 0
- }, cc.easeInOut(1)).call(function() {
- e.onSelPoint();
- e.coolTime = !1;
- }).start();
- }
- };
- e.prototype.onDragStart = function(t) {
- this.hasClick = !0;
- this.startX = t.touch._point.x;
- };
- e.prototype.onDragEnd = function(t) {
- var e = t.touch._point.x - this.startX;
- Math.abs(e) > 20 && (e > 0 ? this.onSelDown(2) : this.onSelDown(1));
- };
- e.prototype.onSelPoint = function() {
- this.curSelPoint && this.curSelPoint.getComponent(l.default).setSel(!1);
- this.curSelPoint = this.pointLy.getChildByName(this.curIndex.toString());
- this.curSelPoint.getComponent(l.default).setSel(!0);
- };
- a([ d(cc.Node) ], e.prototype, "dragArea", void 0);
- a([ d(cc.Node) ], e.prototype, "item1", void 0);
- a([ d(cc.Node) ], e.prototype, "item2", void 0);
- a([ d(cc.Prefab) ], e.prototype, "pointPrefab", void 0);
- a([ d(cc.Node) ], e.prototype, "pointLy", void 0);
- a([ d(cc.Node) ], e.prototype, "btnLeft", void 0);
- a([ d(cc.Node) ], e.prototype, "btnRight", void 0);
- return a([ p ], e);
- }(cc.Component);
- n.default = h;
- cc._RF.pop();
- }, {
- "./MoreGamePicItem": "MoreGamePicItem",
- "./PointItem": "PointItem"
- } ],
- MoreGameData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "ecbc8fNcjZNNYvilAODW4lX", "MoreGameData");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, r = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.MoreGameData = void 0;
- var c = t("../../../mk/data/Data"), s = t("../../../mk/system/JsbSystem"), l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e._moreGameList = null;
- e.init_moreGameList = !1;
- e.testData = {
- normal: [ {
- nebulaAppId: "wxd2e694c55d457ded",
- title: "爱上切水果",
- introduction: "切水果、切水果、切、切、切!",
- downloadUrl: "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/haocheyijia/hutui/CutFruit.apk",
- packageName: "com.aries.asqsg.mz",
- icon: "https://oss.duiweize.com/fission/5vp7CPeadkABlgIe.png",
- banner: "https://oss.duiweize.com/fission/EXrqiYF6BkC1ZsZf.png"
- }, {
- nebulaAppId: "wx74fee17e08a29836",
- title: "炮火掠夺",
- introduction: "大炮一响,黄金万两!",
- downloadUrl: "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/haocheyijia/hutui/FirePillage.apk",
- packageName: "com.aries.firepillage.mz",
- icon: "https://oss.duiweize.com/fission/BZ9ZUicxgCbWb33D.png",
- banner: "https://oss.duiweize.com/fission/vGPWCE2tuGZwLSJH.png"
- } ],
- banner: [ {
- nebulaAppId: "wx07895e2f78748daf",
- title: "豪车大富翁",
- introduction: "豪车、金钱、美女,你要的这里都有!",
- downloadUrl: "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/haocheyijia/hutui/HundredsOfMillions.apk",
- packageName: "org.cocos2d.hundredsofmillion.mk.mz",
- icon: "https://oss.duiweize.com/fission/fviQN9OpUmmqpTjU.png",
- banner: "https://oss.duiweize.com/fission/eWUxr3OySHIohqtB.png",
- banner2: "https://oss.duiweize.com/fission/eWUxr3OySHIohqtB.png"
- }, {
- nebulaAppId: "wx22b3f0f8005f0e51",
- title: "航海传奇",
- introduction: " 战舰、短裙、红包,你想要的都有!",
- downloadUrl: "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/haocheyijia/hutui/LegendOfNavigation.apk",
- packageName: "com.aries.hhcq.mz",
- icon: "https://oss.duiweize.com/fission/ZqDsgbj9PT94RcG0.png",
- banner: "https://oss.duiweize.com/fission/goS05API8LtqB0QH.png",
- banner2: "https://oss.duiweize.com/fission/goS05API8LtqB0QH.png"
- } ]
- };
- return e;
- }
- Object.defineProperty(e.prototype, "moreGameList", {
- get: function() {
- return this._moreGameList;
- },
- set: function(t) {
- this._moreGameList = t;
- this.init_moreGameList = !0;
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.init = function() {
- this.sendRecommendList();
- };
- e.prototype.sendRecommendList = function() {
- return a(this, void 0, void 0, function() {
- var t, e;
- return r(this, function(n) {
- switch (n.label) {
- case 0:
- if (null != this._moreGameList && null != this._moreGameList) return [ 3, 2 ];
- t = {
- isSupportMiniGames: 1
- };
- return [ 4, mk.http.sendData("/fission/recommend-info", t) ];
- case 1:
- if (0 != (e = n.sent()).errcode) return [ 2 ];
- this.moreGameList = e.data;
- return [ 3, 3 ];
- case 2:
- this.init_moreGameList = !0;
- n.label = 3;
- case 3:
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.sendAppDownloadLog = function(t) {
- return a(this, void 0, void 0, function() {
- var e;
- return r(this, function(n) {
- switch (n.label) {
- case 0:
- e = {
- downloadAppId: t
- };
- return [ 4, mk.http.sendData("/fission/appDownloadLog", e) ];
- case 1:
- n.sent();
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.createNewTask = function(t) {
- var n = this, o = t.nebulaAppId, i = t.downloadUrl, a = t.packageName;
- if ("" != a && s.default.ifCanStartGame(a, !0)) return null;
- if (s.default.isFileExist(o)) {
- s.default.installApk(o);
- return null;
- }
- if (e.downLoadTaskMap[t.nebulaAppId]) {
- mk.tip.pop("正在下载中...");
- return null;
- }
- mk.tip.pop("开始下载...");
- var r = new u(0, 0, t.nebulaAppId, null), c = s.default.downFile2Local(i, t.nebulaAppId + ".apk", function() {
- r.progress = -2;
- n.sendAppDownloadLog(t.nebulaAppId);
- setTimeout(function() {
- s.default.installApk(o);
- }, 1);
- }, function() {
- r.progress = -1;
- e.downLoadTaskMap[t.nebulaAppId] = null;
- mk.tip.pop("下载失败,请稍后再试");
- }, function(t, e, n) {
- r.progress = e;
- r.totalBytesReceives = n;
- });
- r.downloadTask = c;
- e.downLoadTaskMap[t.nebulaAppId] = r;
- return r;
- };
- e.prototype.getTaskInfo = function(t) {
- return e.downLoadTaskMap[t];
- };
- e.prototype.getRandomSteam = function() {
- if (!this.moreGameList) return null;
- var t = mk.math.random(0, this.moreGameList.stream.length - 1);
- return this.moreGameList.stream[t];
- };
- e.prototype.getRandomNormal = function() {
- if (!this.moreGameList) return null;
- var t = mk.math.random(0, this.moreGameList.normal.length - 1);
- return this.moreGameList.normal[t];
- };
- e.prototype.popMoreGamePopNode = function() {
- mk.guide.isGuiding || mk.ui.getCurOnPanel("reward") || Math.random() <= gData.gameData.configs.ServerConfig.popMoreGame && mk.ui.openPanel("module/moreGame/moreGamePopNode");
- };
- e.prototype.popNodeGetRedBag = function() {
- return a(this, void 0, void 0, function() {
- var t, e, n;
- return r(this, function(o) {
- switch (o.label) {
- case 0:
- t = {};
- return [ 4, mk.http.sendData("saveDailyRedMoney", t) ];
- case 1:
- if (0 != (e = o.sent()).errcode) return [ 2 ];
- if (0 != e.data.redMoneyAddition) {
- n = [ {
- rewardType: 1,
- rewardNum: e.data.redMoneyAddition
- } ];
- gData.reward.data = n;
- mk.ui.openPanel("module/reward/reward");
- }
- return [ 2 ];
- }
- });
- });
- };
- e.downLoadTaskMap = new Map();
- return e;
- }(c.Data);
- n.MoreGameData = l;
- var u = function() {
- function t(t, e, n, o) {
- this._progress = 0;
- this._totalBytesReceives = 0;
- this._nebulaAppId = "";
- this._downloadTask = null;
- this._progress = t;
- this._totalBytesReceives = e;
- this._nebulaAppId = n;
- this._downloadTask = o;
- }
- Object.defineProperty(t.prototype, "progress", {
- get: function() {
- return this._progress;
- },
- set: function(t) {
- this._progress = t;
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "totalBytesReceives", {
- get: function() {
- return this._totalBytesReceives;
- },
- set: function(t) {
- this._totalBytesReceives = t;
- },
- enumerable: !1,
- configurable: !0
- });
- Object.defineProperty(t.prototype, "downloadTask", {
- get: function() {
- return this._downloadTask;
- },
- set: function(t) {
- this._downloadTask = t;
- },
- enumerable: !1,
- configurable: !0
- });
- return t;
- }();
- cc._RF.pop();
- }, {
- "../../../mk/data/Data": "Data",
- "../../../mk/system/JsbSystem": "JsbSystem"
- } ],
- MoreGameNormalItem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "a4ff7XTiXVGfZP42F1bBIEa", "MoreGameNormalItem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = t("../../../mk/system/JsbSystem"), l = t("../../data/GameData"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.iconNode = null;
- e.progressLabel = null;
- e.btnDown = null;
- e.btnOpen = null;
- e.labName = null;
- e.labDes = null;
- e.spRed = null;
- e.data = null;
- e.cool = !1;
- return e;
- }
- e.prototype.setItemData = function(t) {
- return r(this, void 0, void 0, function() {
- return c(this, function() {
- this.setInfo(t.item_data);
- return [ 2 ];
- });
- });
- };
- e.prototype.setInfo = function(t) {
- var e = this;
- this.data = t;
- cc.loader.load(this.data.icon, function(t, n) {
- if (t) console.log("err:", t); else if (cc.isValid(e.iconNode)) {
- var o = n;
- e.iconNode.spriteFrame = new cc.SpriteFrame(o);
- }
- });
- this.labName.string = this.data.title;
- this.labDes.string = this.data.introduction;
- this.spRed.active = !1;
- if (1 == this.data.appType) if (s.default.ifCanStartGame(this.data.packageName, !1)) {
- this.btnDown.active = !1;
- this.btnOpen.active = !0;
- } else if (s.default.isFileExist(this.data.nebulaAppId)) {
- this.btnDown.active = !1;
- this.btnOpen.active = !0;
- } else {
- this.btnDown.active = !0;
- this.btnOpen.active = !1;
- null != gData.moreGame.getTaskInfo(this.data.nebulaAppId) ? this.schedule(function() {
- e.showDownloadProgress();
- }, .5) : this.progressLabel.string = "下载";
- } else if (2 == this.data.appType) {
- this.btnDown.active = !1;
- this.btnOpen.active = !0;
- }
- };
- e.prototype.creatorDownLoadTask = function() {
- var t = this;
- mk.audio.playEffect("button");
- if (!this.cool) {
- mk.data.sendDataEvent(l.DataEventId.hutuiFunction, "互推格子位下载");
- this.cool = !0;
- this.scheduleOnce(function() {
- t.cool = !1;
- }, 3);
- 1 == this.data.appType ? null != gData.moreGame.createNewTask(this.data) ? this.schedule(function() {
- t.showDownloadProgress();
- }, .5) : this.progressLabel.string = "" : 2 == this.data.appType && cc.sys.openURL(this.data.recommendLink);
- }
- };
- e.prototype.showDownloadProgress = function() {
- var t = gData.moreGame.getTaskInfo(this.data.nebulaAppId);
- null != t && t.progress >= 0 ? this.progressLabel.string = (t.progress / t.totalBytesReceives * 100).toFixed(1) + "%" : this.setInfo(this.data);
- };
- a([ d(cc.Sprite) ], e.prototype, "iconNode", void 0);
- a([ d(cc.Label) ], e.prototype, "progressLabel", void 0);
- a([ d(cc.Node) ], e.prototype, "btnDown", void 0);
- a([ d(cc.Node) ], e.prototype, "btnOpen", void 0);
- a([ d(cc.Label) ], e.prototype, "labName", void 0);
- a([ d(cc.Label) ], e.prototype, "labDes", void 0);
- a([ d(cc.Node) ], e.prototype, "spRed", void 0);
- return a([ p ], e);
- }(cc.Component);
- n.default = h;
- cc._RF.pop();
- }, {
- "../../../mk/system/JsbSystem": "JsbSystem",
- "../../data/GameData": "GameData"
- } ],
- MoreGamePicItem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "c2dd8WpPO5EiLR+yLbWHUHD", "MoreGamePicItem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../../mk/system/JsbSystem"), c = t("../../data/GameData"), s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.banner = null;
- e.spRed = null;
- e.spPro = null;
- e.labPro = null;
- e.btnStart = null;
- e.data = null;
- e.cool = !1;
- return e;
- }
- e.prototype.init = function(t) {
- var e = this;
- this.data = t;
- cc.loader.load(t.banner2, function(t, n) {
- if (t) console.log("err:", t); else if (e.banner) {
- var o = n;
- e.banner.spriteFrame = new cc.SpriteFrame(o);
- }
- });
- this.spPro.node.active = !1;
- this.btnStart.active = !1;
- this.labPro.string = "";
- if (1 == t.appType) if (r.default.ifCanStartGame(t.packageName, !1)) {
- this.spRed.active = !1;
- this.btnStart.active = !0;
- } else if (r.default.isFileExist(t.nebulaAppId)) {
- this.spRed.active = !1;
- this.btnStart.active = !0;
- } else this.spRed.active = !0; else if (2 == t.appType) {
- this.spRed.active = !1;
- this.btnStart.active = !0;
- }
- };
- e.prototype.creatorDownLoadTask = function() {
- var t = this;
- if (!this.cool) {
- mk.data.sendDataEvent(c.DataEventId.hutuiFunction, "互推推荐位banner下载");
- this.cool = !0;
- this.scheduleOnce(function() {
- t.cool = !1;
- }, 3);
- 1 == this.data.appType ? null != gData.moreGame.createNewTask(this.data) && this.schedule(function() {
- t.showDownloadProgress();
- }, .5) : 2 == this.data.appType && cc.sys.openURL(this.data.recommendLink);
- }
- };
- e.prototype.showDownloadProgress = function() {
- var t = gData.moreGame.getTaskInfo(this.data.nebulaAppId);
- if (null != t) if (t.progress >= 0) {
- this.spPro.node.active = !0;
- var e = t.progress / t.totalBytesReceives, n = (100 * e).toFixed(1);
- this.spPro.fillRange = 1 - e;
- this.labPro.string = n + "%";
- } else this.init(this.data); else this.init(this.data);
- };
- a([ u(cc.Sprite) ], e.prototype, "banner", void 0);
- a([ u(cc.Node) ], e.prototype, "spRed", void 0);
- a([ u(cc.Sprite) ], e.prototype, "spPro", void 0);
- a([ u(cc.Label) ], e.prototype, "labPro", void 0);
- a([ u(cc.Node) ], e.prototype, "btnStart", void 0);
- return a([ l ], e);
- }(cc.Component);
- n.default = p;
- cc._RF.pop();
- }, {
- "../../../mk/system/JsbSystem": "JsbSystem",
- "../../data/GameData": "GameData"
- } ],
- MoreGamePopNode: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "cd58fkToeZLvKuTEPhUbrbO", "MoreGamePopNode");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../../mk/system/JsbSystem"), c = t("../../data/GameData"), s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.icon = null;
- e.labName = null;
- e.data = null;
- e.cool = !1;
- return e;
- }
- e.prototype.start = function() {
- gData.moreGame.init_moreGameList = !0;
- };
- e.prototype.update = function() {
- gData.moreGame.init_moreGameList && this.init();
- };
- e.prototype.lateUpdate = function() {
- gData.moreGame.init_moreGameList = !1;
- };
- e.prototype.init = function() {
- var t = this;
- this.data = gData.moreGame.getRandomNormal();
- if (this.data) {
- cc.loader.load(this.data.icon, function(e, n) {
- if (e) console.log("err:", e); else {
- var o = n;
- t.icon.spriteFrame = new cc.SpriteFrame(o);
- }
- });
- this.labName.string = this.data.title;
- }
- };
- e.prototype.creatorDownLoadTask = function() {
- mk.audio.playEffect("button");
- if (!this.cool) {
- this.cool = !0;
- mk.data.sendDataEvent(c.DataEventId.hutuiFunction, "互推插屏下载");
- 1 == this.data.appType ? r.default.ifCanStartGame(this.data.packageName, !0) || gData.moreGame.createNewTask(this.data) : 2 == this.data.appType && cc.sys.openURL(this.data.recommendLink);
- gData.moreGame.popNodeGetRedBag();
- }
- };
- a([ u(cc.Sprite) ], e.prototype, "icon", void 0);
- a([ u(cc.Label) ], e.prototype, "labName", void 0);
- return a([ l ], e);
- }(cc.Component);
- n.default = p;
- cc._RF.pop();
- }, {
- "../../../mk/system/JsbSystem": "JsbSystem",
- "../../data/GameData": "GameData"
- } ],
- MoreGame: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "a6705qKu8tPpoRd4ECt6v+E", "MoreGame");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.node_sv = null;
- e.moreGameNormalNode = null;
- e.normalDatas = null;
- return e;
- }
- e.prototype.start = function() {
- this.node.setContentSize(cc.winSize);
- gData.moreGame.init();
- };
- e.prototype.update = function() {
- gData.moreGame.init_moreGameList && this.initView();
- };
- e.prototype.lateUpdate = function() {
- gData.moreGame.init_moreGameList = !1;
- };
- e.prototype.initView = function() {
- this.normalDatas = gData.moreGame.moreGameList.normal;
- for (var t = [], e = this.normalDatas.length, n = 0; n < e; n++) {
- var o = 0, i = {
- item_data: this.normalDatas[n],
- pfbType: o
- };
- t.push(i);
- if (1 == n) {
- o = 1;
- var a = {
- item_data: gData.moreGame.moreGameList.banner,
- pfbType: o
- };
- t.push(a);
- }
- }
- this.node_sv.emit("srollview-init", t);
- };
- e.prototype.onClickClose = function() {
- mk.ad.checkShowInterByChance();
- };
- a([ s(cc.Node) ], e.prototype, "node_sv", void 0);
- a([ s(cc.Prefab) ], e.prototype, "moreGameNormalNode", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- NumberAnim: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "88626F5Zl9BIKjmKaYlyRWH", "NumberAnim");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.lbl_count = null;
- e.targetProgress = 0;
- e.delta = 0;
- e.curValue = 0;
- e.curTime = 0;
- e.totalTime = 0;
- e.lastNum = 0;
- e.isPlayAni = !1;
- e.len_target = 0;
- e.toFixed = 0;
- return e;
- }
- e.prototype.onLoad = function() {
- this.lbl_count = this.node.getComponent(cc.Label) || this.node.addComponent(cc.Label);
- };
- e.prototype.setValue = function(t, e) {
- void 0 === e && (e = 0);
- if (this.targetProgress != t) {
- this.toFixed = e;
- this.len_target = t.toString().length;
- this.targetProgress = t;
- this.PlayMoneyAni(.3);
- }
- };
- e.prototype.PlayMoneyAni = function(t) {
- this.totalTime = t;
- this.delta = this.targetProgress - this.lastNum;
- this.curValue = this.lastNum;
- this.curTime = 0;
- this.isPlayAni = !0;
- };
- e.prototype.PlayMoneyAniUpdate = function(t) {
- if (this.isPlayAni) {
- if (this.curTime < this.totalTime) {
- this.curTime += t;
- this.curValue += this.delta * t;
- if (this.curValue >= this.targetProgress) {
- this.isPlayAni = !1;
- this.curValue = this.targetProgress;
- this.lastNum = this.targetProgress;
- }
- } else {
- this.isPlayAni = !1;
- this.curTime = this.totalTime;
- this.curValue = this.targetProgress;
- this.lastNum = this.targetProgress;
- }
- if (this.curValue == this.targetProgress) this.lbl_count.string = "" + this.targetProgress; else {
- if (!this.curValue) {
- mk.console.log("数字动画出现异常:", this.curValue);
- this.curValue = this.targetProgress;
- }
- this.lbl_count.string = this.curValue.toFixed(this.toFixed);
- }
- }
- };
- e.prototype.update = function(t) {
- this.PlayMoneyAniUpdate(t);
- };
- return a([ c ], e);
- }(cc.Component));
- n.default = s;
- cc._RF.pop();
- }, {} ],
- PageView: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "bf07comJ2RKTIq+nuMXZ4/m", "PageView");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.comp_page_view = null;
- e.arr_node_item = [];
- return e;
- }
- e.prototype.onLoad = function() {
- this.comp_page_view = this.node.getComponent(cc.PageView);
- this.node.on("ui-init", this.init, this);
- this.node.on("ui-clearItem", this.clearItem, this);
- this.node.on("ui-backCurPage", this.backCurPage, this);
- };
- e.prototype.start = function() {};
- e.prototype.init = function(t, e, n) {
- void 0 === n && (n = 0);
- var o = t.length;
- if (o) {
- for (c = 0; c < o; c++) {
- var i = this.arr_node_item[c];
- if (!i) {
- i = cc.instantiate(e);
- this.arr_node_item.push(i);
- }
- this.comp_page_view.addPage(i);
- i.getComponent(i.name).setItemData(t[c]);
- }
- this.comp_page_view.setCurrentPageIndex(n);
- var a = this.arr_node_item.length;
- if (o > a) for (c = o; c < a; c++) {
- this.comp_page_view.removePageAtIndex(c);
- this.arr_node_item.splice(c, 1);
- }
- } else for (var r = this.arr_node_item.length, c = 0; c < r; c++) {
- this.comp_page_view.removePageAtIndex(c);
- this.arr_node_item.splice(c, 1);
- }
- };
- e.prototype.backCurPage = function() {
- var t = this.comp_page_view.getCurrentPageIndex();
- this.comp_page_view.setCurrentPageIndex(t);
- };
- e.prototype.clearItem = function(t) {
- void 0 === t && (t = !1);
- };
- return a([ c ], e);
- }(cc.Component));
- n.default = s;
- cc._RF.pop();
- }, {} ],
- PauseUI: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "2eadbxluUNDrI8Zr+YfUTg/", "PauseUI");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../GamePlay"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.node_bg = null;
- e.node_closeBtn = null;
- e.node_musicSwitch = null;
- e.node_music_on = null;
- e.node_music_off = null;
- e.node_effectSwitch = null;
- e.node_effect_on = null;
- e.node_effect_off = null;
- e.node_restartBtn = null;
- e.node_exitBtn = null;
- return e;
- }
- e.prototype.start = function() {
- mk.ad.showNative(4);
- this.node_bg.setContentSize(cc.winSize.width, cc.winSize.height);
- this.initEvent();
- };
- e.prototype.onEnable = function() {
- this.initMsuicSwitchState();
- this.initEffectSwitchState();
- };
- e.prototype.initMsuicSwitchState = function() {
- this.node_music_on.active = mk.audio.getSwitchMusic();
- this.node_music_off.active = !this.node_music_on.active;
- };
- e.prototype.initEffectSwitchState = function() {
- this.node_effect_on.active = mk.audio.getSwitchEffect();
- this.node_effect_off.active = !this.node_effect_on.active;
- };
- e.prototype.initEvent = function() {
- this.node_closeBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
- this.node_musicSwitch.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
- this.node_effectSwitch.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
- this.node_restartBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
- this.node_exitBtn.on(cc.Node.EventType.TOUCH_END, this.onClickBtn, this);
- };
- e.prototype.onClickBtn = function(t) {
- mk.audio.playEffect("button");
- switch (t.currentTarget) {
- case this.node_closeBtn:
- this.onClickClose();
- break;
- case this.node_musicSwitch:
- this.onClickMusicSwitch();
- break;
- case this.node_effectSwitch:
- this.onClickEffectSwitch();
- break;
- case this.node_exitBtn:
- this.onClickExitBtn();
- break;
- case this.node_restartBtn:
- this.onClickRestartBtn();
- }
- };
- e.prototype.onClickClose = function() {
- console.log("点击关闭按钮", this.node.name);
- mk.ui.closePanel(this.node.name);
- mk.ad.destroyNativeAd();
- };
- e.prototype.onClickMusicSwitch = function() {
- mk.audio.switchMusicFunc();
- this.initMsuicSwitchState();
- };
- e.prototype.onClickEffectSwitch = function() {
- mk.audio.switchEffectFunc();
- this.initEffectSwitchState();
- };
- e.prototype.onClickRestartBtn = function() {
- r.default.Inst.restart();
- mk.ui.closePanel(this.node.name);
- mk.ad.destroyNativeAd();
- };
- e.prototype.onClickExitBtn = function() {
- mk.ui.closePanel("PauseUI");
- r.default.Inst.restart();
- r.default.Inst.node.active = !1;
- mk.ad.destroyNativeAd();
- };
- a([ l(cc.Node) ], e.prototype, "node_bg", void 0);
- a([ l(cc.Node) ], e.prototype, "node_closeBtn", void 0);
- a([ l(cc.Node) ], e.prototype, "node_musicSwitch", void 0);
- a([ l(cc.Node) ], e.prototype, "node_music_on", void 0);
- a([ l(cc.Node) ], e.prototype, "node_music_off", void 0);
- a([ l(cc.Node) ], e.prototype, "node_effectSwitch", void 0);
- a([ l(cc.Node) ], e.prototype, "node_effect_on", void 0);
- a([ l(cc.Node) ], e.prototype, "node_effect_off", void 0);
- a([ l(cc.Node) ], e.prototype, "node_restartBtn", void 0);
- a([ l(cc.Node) ], e.prototype, "node_exitBtn", void 0);
- return a([ s ], e);
- }(cc.Component);
- n.default = u;
- cc._RF.pop();
- }, {
- "../GamePlay": "GamePlay"
- } ],
- PigBankData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "b959eKbqF5NcI74STkMo2lM", "PigBankData");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, r = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.PigBankData = void 0;
- var c = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.init_data = !0;
- e.cash_min_limit = 30;
- return e;
- }
- e.prototype.init = function() {
- this.cash_min_limit = gData.gameData.configs.ServerConfig.PiggyBankCashMoney;
- };
- e.prototype.cashOP = function() {
- return a(this, void 0, void 0, function() {
- var t;
- return r(this, function(e) {
- switch (e.label) {
- case 0:
- return [ 4, mk.http.sendData("piggyBankCash", {}) ];
- case 1:
- if (0 != (t = e.sent()).errcode) {
- mk.tip.pop("提现排队中,多看视频优先提现");
- return [ 2 ];
- }
- 0 == t.CashMode || t.CashMode;
- gData.receiptNotice.receip_rmb = gData.gameData.gameData.piggyBank;
- gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
- mk.ui.openPanel("module/receiptNotice/receiptNotice");
- gData.gameData.gameData.piggyBank = 0;
- gData.gameData.gameData.isWithdrawable = 0;
- gData.gameData.updatePiggyBankValue = !0;
- gData.cashNormal.getRecord();
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.redPoint = function() {
- return !!gData.gameData.gameData.isWithdrawable && gData.gameData.gameData.piggyBank >= this.cash_min_limit;
- };
- return e;
- }(t("../../../mk/data/Data").Data);
- n.PigBankData = c;
- cc._RF.pop();
- }, {
- "../../../mk/data/Data": "Data"
- } ],
- PigBank: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "b7b79eT6/VPr5yd7mCH4hR7", "PigBank");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = t("../../../mk/system/JsbSystem"), l = t("../../data/GameData"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.lbl_get_desc = null;
- e.lbl_deposit = null;
- e.node_tip_anim = null;
- e.anim_btn_cash = null;
- return e;
- }
- e.prototype.onLoad = function() {};
- e.prototype.start = function() {
- this.initCashDesc();
- mk.audio.playEffect("pigBank", !1);
- };
- e.prototype.update = function() {
- gData.pigbank.init_data && this.initCashDesc();
- gData.pigbank.adData && cc.log("存钱罐提现", gData.pigbank.adData);
- };
- e.prototype.lateUpdate = function() {
- gData.pigbank.init_data = !1;
- gData.pigbank.adData = null;
- };
- e.prototype.initCashDesc = function() {
- if (gData.gameData.gameData.isWithdrawable) {
- this.lbl_get_desc.string = "直接提现";
- this.node_tip_anim.active = !1;
- this.anim_btn_cash.play();
- } else {
- gData.gameData.gameData.piggyBank >= gData.pigbank.cash_min_limit ? this.lbl_get_desc.string = "明日可提现" : this.lbl_get_desc.string = "满" + (gData.pigbank.cash_min_limit / 100).toFixed(2) + "元可提";
- this.node_tip_anim.active = !0;
- this.anim_btn_cash.stop();
- this.anim_btn_cash.node.scale = 1;
- }
- this.initDeposit();
- };
- e.prototype.initDeposit = function() {
- var t = gData.gameData.gameData.piggyBank / 100;
- this.lbl_deposit.string = t.toFixed(2) + "元";
- };
- e.prototype.clickCashOP = function() {
- mk.audio.playEffect("button");
- if (gData.gameData.gameData.isWithdrawable) if (gData.gameData.gameData.piggyBank < gData.pigbank.cash_min_limit) mk.tip.pop("满" + (gData.pigbank.cash_min_limit / 100).toFixed(2) + "元可提现"); else if (gData.loginData.isAuth) {
- mk.data.sendDataEvent(l.DataEventId.jarWithDrawal, "存钱罐提现成功");
- gData.pigbank.cashOP();
- mk.ui.closePanel(this.node.name);
- } else s.default.WxAuth(); else gData.gameData.gameData.piggyBank < gData.pigbank.cash_min_limit ? mk.tip.pop("满" + (gData.pigbank.cash_min_limit / 100).toFixed(2) + "元可提现") : mk.tip.pop("明日可提现");
- };
- e.prototype.clickOpenHelpCall = function() {
- return r(this, void 0, void 0, function() {
- return c(this, function() {
- gData.help.des = "1、游戏内观看任意视频,都会获得现金。\n\n2、存款达到0.3元后,次日登陆,可无门槛提现。\n\n3、提现后,存款清零,可重新开始。";
- return [ 2 ];
- });
- });
- };
- e.prototype.onClickClose = function() {
- mk.ad.checkShowInterByChance();
- };
- e.prototype.onDestroy = function() {
- if (1 === gData.gameData.getProp(l.GameProp.isAutoOpenPanel)) {
- !gData.gameData.gameData.isSignInToday && gData.sign.haveSignDay() && mk.ui.openPanel("module/sign/sign");
- gData.gameData.setProp(l.GameProp.isAutoOpenPanel, 2);
- }
- };
- a([ d({
- type: cc.Label,
- displayName: "按钮描述"
- }) ], e.prototype, "lbl_get_desc", void 0);
- a([ d({
- type: cc.Label,
- displayName: "存款数量"
- }) ], e.prototype, "lbl_deposit", void 0);
- a([ d({
- type: cc.Node,
- displayName: "提示动画"
- }) ], e.prototype, "node_tip_anim", void 0);
- a([ d({
- type: cc.Animation,
- displayName: "提现动画"
- }) ], e.prototype, "anim_btn_cash", void 0);
- return a([ p ], e);
- }(cc.Component);
- n.default = h;
- cc._RF.pop();
- }, {
- "../../../mk/system/JsbSystem": "JsbSystem",
- "../../data/GameData": "GameData"
- } ],
- PlayerConst: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "37532KV5gVBNpKplMKqz9q7", "PlayerConst");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.DATA_STORAGE_KEY = void 0;
- var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- e.videoNum = 0;
- e.ifJuliangApiApiActivie = !1;
- e.ifJuliangApiSencondActivie = !1;
- e.average_ecpm = 0;
- return a([ c ], e);
- }(cc.Component));
- n.default = s;
- (function(t) {
- t.cashNum = "cashNum";
- t.shopScoreNum = "shopScoreNum";
- t.levelNum = "levelNum";
- t.energyNum = "energyNum";
- t.energyChangeTime = "energyChangeTime";
- t.leftEnergyRecoverTime = "leftEnergyRecoverTime";
- t.login_ticket = "login_ticket";
- t.uin = "uin";
- t.session_key = "session_key";
- t.isAuth = "isAuth";
- t.nickname = "nickname";
- t.todayPassRedPacketNum = "todayPassRedPacketNum";
- t.watchVideoNum = "watchVideoNum";
- t.onlineTime = "onlineTime";
- t.passNum = "passTime";
- t.ifJuliangApiApiActivie = "ifJuliangApiApiActivie";
- t.ifJuliangApiSencondActivie = "ifJuliangApiSencondActivie";
- t.adress = "adress";
- t.average_ecpm = "average_ecpm";
- })(n.DATA_STORAGE_KEY || (n.DATA_STORAGE_KEY = {}));
- cc._RF.pop();
- }, {} ],
- PointItem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "7f35a5ygDNPXrh2GhRTPUJK", "PointItem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.sel = null;
- return e;
- }
- e.prototype.setSel = function(t) {
- this.sel.active = t;
- };
- a([ s(cc.Node) ], e.prototype, "sel", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- PoolMgr: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "f89e1fOWjNL55PuZpHvYSJY", "PoolMgr");
- var o = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.NODEPOOLPREFABTYPE = void 0;
- var i, a = cc._decorator.ccclass, r = function() {
- function t() {
- this.nodePoolDir = "game/prefab/nodepool/";
- this.className = "";
- this.prefabDic = {};
- this.nodePoolDic = {};
- }
- e = t;
- Object.defineProperty(t, "Inst", {
- get: function() {
- e.instance || (e.instance = new e());
- return e.instance;
- },
- enumerable: !1,
- configurable: !0
- });
- t.prototype.onLoad = function() {};
- t.prototype.start = function() {};
- t.prototype.initPoolPrefab = function() {
- var t = this;
- t.className = t.__proto__.constructor.name;
- for (var e = function() {
- var e = Object.keys(i)[o];
- i[e];
- if (Number(e) || 0 == Number(e)) return "continue";
- t.nodePoolDic[e] || (t.nodePoolDic[e] = new cc.NodePool());
- cc.loader.loadRes("" + n.nodePoolDir + e, function(n, o) {
- if (n) mk.console.log("[" + t.className + "]加载预制体失败:" + e, n); else {
- t.prefabDic[e] = o;
- var i = cc.instantiate(o);
- t.nodePoolDic[e].put(i);
- }
- }.bind(n));
- }, n = this, o = 0; o < Object.keys(i).length; o++) e();
- };
- t.prototype.initPoolPrefabByNum = function(t, e) {
- for (var n = i[t], o = this.prefabDic[n], a = 0; a < e; ++a) {
- var r = cc.instantiate(o);
- this.nodePoolDic[n].put(r);
- }
- };
- t.prototype.getPoolPrefab = function(t) {
- var e = i[t], n = null, o = this.prefabDic[e];
- if (o) {
- var a = this.nodePoolDic[e];
- return n = a.size() > 0 ? a.get() : cc.instantiate(o);
- }
- var r = i[t];
- mk.console.log("poolPrefabType", t, r);
- cc.loader.loadRes("" + this.nodePoolDir + r, function(t, e) {
- if (!t) {
- n = cc.instantiate(e);
- mk.console.log(" nodePoolPrefab ", n);
- return n;
- }
- mk.console.log("加载预制体失败level", t);
- }.bind(this));
- };
- t.prototype.recyclePoolPrefab = function(t, e) {
- var n = i[t];
- this.nodePoolDic[n].put(e);
- };
- var e;
- t.instance = null;
- return e = o([ a ], t);
- }();
- n.default = r;
- (function(t) {
- t[t.CellItem = 0] = "CellItem";
- t[t.SelectCellItemBtn = 1] = "SelectCellItemBtn";
- t[t.Baozha = 2] = "Baozha";
- t[t.CellBg = 3] = "CellBg";
- t[t.EliminateScore = 4] = "EliminateScore";
- t[t.BonusTip = 5] = "BonusTip";
- t[t.ScoreEnergy = 6] = "ScoreEnergy";
- t[t.Hammer = 7] = "Hammer";
- t[t.Change = 8] = "Change";
- t[t.TipItemUI = 10] = "TipItemUI";
- t[t.GetTargetScoreTip = 11] = "GetTargetScoreTip";
- t[t.GetScore = 13] = "GetScore";
- t[t.TipSpriteItemUI = 14] = "TipSpriteItemUI";
- })(i = n.NODEPOOLPREFABTYPE || (n.NODEPOOLPREFABTYPE = {}));
- cc._RF.pop();
- }, {} ],
- PoolSystem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "13087MgZKJLaZXibA/Ne8Bq", "PoolSystem");
- var o = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, i = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var a = function() {
- function t() {}
- t.prototype.init = function(t) {
- return o(this, void 0, void 0, function() {
- var e, n, o, a, r, c, s;
- return i(this, function(i) {
- switch (i.label) {
- case 0:
- this.poolList = new Map();
- e = 0;
- i.label = 1;
- case 1:
- if (!(e < t.length)) return [ 3, 4 ];
- n = t[e];
- return [ 4, mk.loader.load(n.url, cc.Prefab) ];
- case 2:
- if (!(o = i.sent())) {
- console.log("没有找到该prefab", n.url);
- return [ 3, 3 ];
- }
- a = new cc.NodePool();
- for (r = 0; r < n.num; ++r) {
- c = cc.instantiate(o);
- a.put(c);
- }
- s = n.url.split("/");
- this.poolList.set(s[s.length - 1], a);
- i.label = 3;
- case 3:
- e++;
- return [ 3, 1 ];
- case 4:
- return [ 2 ];
- }
- });
- });
- };
- t.prototype.getPrefab = function(t) {
- return o(this, void 0, void 0, function() {
- var e, n, o, a, r;
- return i(this, function(i) {
- switch (i.label) {
- case 0:
- e = t.split("/");
- n = e[e.length - 1];
- o = this.poolList.get(n);
- a = null;
- if (!(o && o.size() > 0)) return [ 3, 1 ];
- a = o.get();
- return [ 3, 3 ];
- case 1:
- return [ 4, mk.loader.load(t, cc.Prefab) ];
- case 2:
- r = i.sent();
- a = cc.instantiate(r);
- o && o.put(a);
- i.label = 3;
- case 3:
- return [ 2, a ];
- }
- });
- });
- };
- t.prototype.return = function(t, e) {
- e.removeFromParent();
- var n = this.poolList[t];
- n && n.put(e);
- };
- t.prototype.clearPool = function(t) {
- this.poolList[t] && this.poolList[t].clear();
- };
- return t;
- }();
- n.default = a;
- cc._RF.pop();
- }, {} ],
- PushData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "c05b7aPhFJMQ4K7me7B6h6k", "PushData");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- });
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.PushData = void 0;
- var a = function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- return e;
- }(t("../../../mk/data/Data").Data);
- n.PushData = a;
- cc._RF.pop();
- }, {
- "../../../mk/data/Data": "Data"
- } ],
- ReceiptNoticeData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "470a4q7nJxBGq7QE5zAi+fg", "ReceiptNoticeData");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- });
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.ReceiptNoticeData = void 0;
- var a = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.init_style = !0;
- e._receip_rmb = 0;
- return e;
- }
- Object.defineProperty(e.prototype, "receip_rmb", {
- get: function() {
- return this._receip_rmb;
- },
- set: function(t) {
- this._receip_rmb = t;
- this.init_style = !0;
- },
- enumerable: !1,
- configurable: !0
- });
- return e;
- }(t("../../../mk/data/Data").Data);
- n.ReceiptNoticeData = a;
- cc._RF.pop();
- }, {
- "../../../mk/data/Data": "Data"
- } ],
- ReceiptNotice: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "99444HkDZpKyIj1SS34tIOi", "ReceiptNotice");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.lbl_receipt_rmb = null;
- e.lbl_rmb_total = null;
- e.lbl_user_name = null;
- return e;
- }
- e.prototype.start = function() {
- mk.audio.playEffect("receiptNotice");
- };
- e.prototype.update = function() {
- if (gData.receiptNotice.init_style) {
- gData.receiptNotice.init_style = !1;
- this.initStyle();
- }
- };
- e.prototype.initStyle = function() {
- this.lbl_receipt_rmb.string = "¥" + (gData.receiptNotice.receip_rmb / 100).toFixed(2) + "元";
- this.lbl_rmb_total.string = "¥" + (gData.cashNormal.receip_total_rmb / 100).toFixed(2) + "元";
- this.lbl_user_name.string = gData.wechatData.nickName || "";
- };
- a([ s({
- displayName: "lbl收款金额",
- type: cc.Label
- }) ], e.prototype, "lbl_receipt_rmb", void 0);
- a([ s({
- displayName: "lbl累计提现",
- type: cc.Label
- }) ], e.prototype, "lbl_rmb_total", void 0);
- a([ s({
- displayName: "lbl用户名",
- type: cc.Label
- }) ], e.prototype, "lbl_user_name", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- Recycle: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "3f14aLW4zpID5nBzl+n0501", "Recycle");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.label = null;
- e.text = "hello";
- return e;
- }
- e.prototype.start = function() {};
- a([ s(cc.Label) ], e.prototype, "label", void 0);
- a([ s ], e.prototype, "text", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- RedBagCashData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "8b9fdpewwhGE6vSMYtQEvJ4", "RedBagCashData");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, r = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.RedBagCashData = void 0;
- var c = t("../../../mk/data/Data"), s = t("../../../mk/system/JsbSystem"), l = t("../GameData"), u = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.init_list = !1;
- e.update_list = !1;
- e.c_data = [];
- e._cash_bar = 1;
- return e;
- }
- e.prototype.init = function() {
- this.cash_bar = gData.gameData.gameData.cashIndex;
- if (gData.gameData.configs.CashCfg) {
- gData.gameData.configs.CashCfg.forEach(function(t) {
- for (var e in t) t[e] = parseInt(t[e]);
- });
- this.c_data = gData.gameData.configs.CashCfg;
- this.sortList();
- this.initState();
- this.init_list = !0;
- }
- };
- Object.defineProperty(e.prototype, "cash_bar", {
- get: function() {
- return this._cash_bar;
- },
- set: function(t) {
- this._cash_bar = t;
- this.init_list = !0;
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.cashOP = function() {
- return a(this, void 0, void 0, function() {
- var t, e, n, o, i, a, c, u, p, d;
- return r(this, function(r) {
- switch (r.label) {
- case 0:
- if (!gData.loginData.isAuth) {
- s.default.WxAuth();
- return [ 2 ];
- }
- t = this.cash_bar;
- e = {
- index: t
- };
- return [ 4, mk.http.sendData("cashUsual", e) ];
- case 1:
- if (0 != (n = r.sent()).errcode) {
- console.error(n.errmsg);
- mk.tip.pop("提现排队中,多看视频优先提现");
- mk.console.logSingle("提现index", t);
- mk.console.logSingle("提现错误内容:", n);
- return [ 2 ];
- }
- cc.log("红包提现成功");
- o = n.data;
- this.cash_bar++;
- this.update_list = !0;
- gData.gameData.gameData.cashIndex++;
- i = this.getItemDataByIndex(t);
- gData.gameData.gameData.redMoney -= i.type_value;
- a = 0;
- for (c = 0; c < o.CashStatusList.length; c++) if (o.CashStatusList[c].index == t) {
- a = o.CashStatusList[c].amount;
- break;
- }
- if (1 == o.CashMode) {
- gData.receiptNotice.receip_rmb = a;
- gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
- mk.ui.openPanel("module/receiptNotice/receiptNotice");
- } else if (2 == o.CashMode) {
- u = o.CashStatusList;
- p = u[u.length - 1];
- gData.redCodeData.openRedCode(p.amount / 100, p.withdrawalCode);
- }
- mk.data.sendDataEvent(l.DataEventId.commonWithDrawal, "常规提现-红包币提现成功");
- d = gData.gameData.getProp(l.GameProp.cashTimes);
- gData.gameData.setProp(l.GameProp.cashTimes, ++d);
- d < 4 && mk.data.sendXYEvent("cash_" + d, "第" + d + "次提现");
- this.sortList();
- this.initState();
- gData.cashNormal.getRecord();
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.sortList = function() {
- for (var t = this.c_data.length, e = 0, n = 0; n < t; n++) {
- if (this.c_data[e].index < gData.redBagCash.cash_bar) {
- var o = this.c_data.splice(e, 1);
- this.c_data.push(o[0]);
- e--;
- }
- e++;
- }
- };
- e.prototype.initState = function() {
- for (var t = gData.gameData.gameData.redMoney + 0, e = this.c_data.length, n = 0; n < e; n++) if (this.c_data[n].index < gData.redBagCash.cash_bar) this.c_data[n].state = l.RewardState.none; else {
- t = this.itemAllowCash(t, this.c_data[n].type_value);
- this.c_data[n].state = t > 0 ? l.RewardState.unlock : l.RewardState.lock;
- }
- };
- e.prototype.itemAllowCash = function(t, e) {
- return t >= e ? t -= e : 0;
- };
- e.prototype.getItemDataByIndex = function(t) {
- for (var e = this.c_data.length, n = 0; n < e; n++) if (this.c_data[n].index === t) return this.c_data[n];
- };
- e.prototype.initCData = function() {
- for (var t = 0; t < 20; t++) {
- var e = t + 1, n = {
- index: e,
- money: e,
- type_value: 1e3 * e,
- time: e,
- directVideoTime: e,
- delayVideoTimes: e,
- money_type: e,
- num: e,
- moneyshow: e,
- summoney: e,
- state: 1
- };
- this.c_data.push(n);
- }
- this.init_list = !0;
- };
- e.prototype.redPoint = function() {
- for (var t = gData.gameData.gameData.redMoney, e = this.c_data.length, n = 0; n < e; n++) if (!(this.c_data[n].index < gData.redBagCash.cash_bar) && t >= this.c_data[n].type_value) return !0;
- return !1;
- };
- return e;
- }(c.Data);
- n.RedBagCashData = u;
- cc._RF.pop();
- }, {
- "../../../mk/data/Data": "Data",
- "../../../mk/system/JsbSystem": "JsbSystem",
- "../GameData": "GameData"
- } ],
- RedBagCashItem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "822d4j21VlIxbq9rYxSGSQQ", "RedBagCashItem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = t("../../data/GameData"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.node_none = null;
- e.node_lock = null;
- e.node_unlock = null;
- e.lbl_red_value = null;
- e.lbl_rmb_value = null;
- e.item_data = null;
- return e;
- }
- e.prototype.onLoad = function() {};
- e.prototype.start = function() {};
- e.prototype.setItemData = function(t) {
- return r(this, void 0, void 0, function() {
- return c(this, function(e) {
- switch (e.label) {
- case 0:
- null == this.item_data && 1 == t.index && mk.event.register("event_guide", this.clickGuide.bind, this);
- return [ 4, this.initStyle(t) ];
- case 1:
- e.sent();
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.clickGuide = function(t) {
- "2_2" == t && this.clickCashOP();
- };
- e.prototype.initStyle = function(t) {
- this.item_data = t;
- this.lbl_red_value.string = "" + this.item_data.type_value;
- var e = this.item_data.money / 100;
- e = e > 1 ? e : parseFloat(e.toFixed(2));
- this.lbl_rmb_value.string = e + "元";
- if (this.item_data.state === s.RewardState.none) {
- this.node_none.active = !0;
- this.node_lock.active = !1;
- this.node_unlock.active = !1;
- } else if (this.item_data.state === s.RewardState.lock) {
- this.node_none.active = !1;
- this.node_lock.active = !0;
- this.node_unlock.active = !1;
- } else if (this.item_data.state === s.RewardState.unlock) {
- this.node_none.active = !1;
- this.node_lock.active = !1;
- this.node_unlock.active = !0;
- }
- };
- e.prototype.clickCashOP = function() {
- this.item_data.index > gData.redBagCash.cash_bar + 1 ? mk.tip.pop("请按顺序提现") : gData.redBagCash.cashOP();
- };
- e.prototype.onDestroy = function() {
- mk.event.remove("event_guide", this.clickGuide, this);
- };
- a([ p({
- displayName: "已领取",
- type: cc.Node
- }) ], e.prototype, "node_none", void 0);
- a([ p({
- displayName: "未达成",
- type: cc.Node
- }) ], e.prototype, "node_lock", void 0);
- a([ p({
- displayName: "可领取",
- type: cc.Node
- }) ], e.prototype, "node_unlock", void 0);
- a([ p({
- displayName: "红包数量",
- type: cc.Label
- }) ], e.prototype, "lbl_red_value", void 0);
- a([ p({
- displayName: "毛币数量",
- type: cc.Label
- }) ], e.prototype, "lbl_rmb_value", void 0);
- return a([ u ], e);
- }(cc.Component);
- n.default = d;
- cc._RF.pop();
- }, {
- "../../data/GameData": "GameData"
- } ],
- RedBagCash: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "e7d9eMVnCBChaITA71Rl9/B", "RedBagCash");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../../before/GamePlay"), c = t("../../data/GameData"), s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.sroll_view = null;
- e.node_content = null;
- e.lbl_redbag = null;
- e.lbl_rmb = null;
- e.tableview = null;
- return e;
- }
- e.prototype.onLoad = function() {
- this.tableview = this.sroll_view.getComponent("TableView");
- };
- e.prototype.start = function() {
- gData.redBagCash.init_list = !0;
- gData.redBagCash.initState();
- };
- e.prototype.update = function() {
- if (gData.redBagCash.update_list) {
- this.sroll_view.node.emit("srollview-init", gData.redBagCash.c_data);
- this.initMoney();
- } else if (gData.redBagCash.init_list) {
- this.initScrollView();
- this.initMoney();
- }
- };
- e.prototype.lateUpdate = function() {
- gData.redBagCash.init_list = !1;
- gData.redBagCash.update_list = !1;
- };
- e.prototype.initScrollView = function() {
- var t = this;
- this.sroll_view.node.emit("srollview-init", gData.redBagCash.c_data);
- this.scheduleOnce(function() {
- t.itemAnim();
- }, 0);
- };
- e.prototype.itemAnim = function() {
- for (var t = this.node_content.children, e = this.node_content.childrenCount, n = new cc.Vec2(0, -this.sroll_view.node.height), o = function(e) {
- var o = t[e], a = o.getPosition();
- o.y = n.y;
- i.scheduleOnce(function() {
- mk.tween.move(o, .6, n, a, null, "backOut");
- }, .1 * e);
- }, i = this, a = 0; a < e; a++) o(a);
- };
- e.prototype.initMoney = function() {
- var t = gData.gameData.gameData.redMoney;
- t = parseFloat(t.toFixed(2));
- this.lbl_redbag.string = "" + t;
- var e = gData.gameData.gameData.redMoney / 1e4;
- e = e > 1 ? Math.floor(e) : parseFloat(e.toFixed(2));
- this.lbl_rmb.string = "" + e;
- };
- e.prototype.onDestroy = function() {
- if (!gData.gameData.getProp(c.GameProp.isOpenBankOnCloseCash)) {
- mk.ui.openPanel("module/pigBank/pigBank");
- gData.gameData.setProp(c.GameProp.isOpenBankOnCloseCash, 1);
- }
- };
- e.prototype.onClickClose = function() {
- r.default.Inst && r.default.Inst.ifPass && r.default.Inst.gameCount();
- };
- a([ u({
- displayName: "滚动视图",
- type: cc.ScrollView
- }) ], e.prototype, "sroll_view", void 0);
- a([ u({
- displayName: "条目容器",
- type: cc.Node
- }) ], e.prototype, "node_content", void 0);
- a([ u({
- displayName: "lbl红包数量",
- type: cc.Label
- }) ], e.prototype, "lbl_redbag", void 0);
- a([ u({
- displayName: "lbl毛币数量",
- type: cc.Label
- }) ], e.prototype, "lbl_rmb", void 0);
- return a([ l ], e);
- }(cc.Component);
- n.default = p;
- cc._RF.pop();
- }, {
- "../../../before/GamePlay": "GamePlay",
- "../../data/GameData": "GameData"
- } ],
- RedBagCodeItem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "8a473ReImNJJonKxV9mTpIL", "RedBagCodeItem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = t("../../../mk/system/JsbSystem"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.lbl_code = null;
- e.lbl_time = null;
- e.lbl_rmb = null;
- e.item_data = null;
- return e;
- }
- e.prototype.setItemData = function(t) {
- return r(this, void 0, void 0, function() {
- return c(this, function(e) {
- switch (e.label) {
- case 0:
- return [ 4, this.initItem(t) ];
- case 1:
- e.sent();
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.initItem = function(t) {
- this.item_data = t;
- this.lbl_rmb.string = (t.amount / 100).toFixed(2) + "元";
- this.lbl_time.string = mk.time.getNowDayString(1e3 * t.applyTime);
- this.lbl_code.string = t.withdrawalCode ? "红包码:" + t.withdrawalCode : "";
- };
- e.prototype.clickCopy = function() {
- s.default.setClipboard(this.item_data.withdrawalCode);
- mk.tip.pop("复制成功");
- };
- a([ p({
- displayName: "lbl红包码",
- type: cc.Label
- }) ], e.prototype, "lbl_code", void 0);
- a([ p({
- displayName: "lbl时间",
- type: cc.Label
- }) ], e.prototype, "lbl_time", void 0);
- a([ p({
- displayName: "lbl毛币",
- type: cc.Label
- }) ], e.prototype, "lbl_rmb", void 0);
- return a([ u ], e);
- }(cc.Component);
- n.default = d;
- cc._RF.pop();
- }, {
- "../../../mk/system/JsbSystem": "JsbSystem"
- } ],
- RedBagCode: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "f7616rh8MtO1ZZziaU2Xf1w", "RedBagCode");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.scroll_view = null;
- e.lbl_none = null;
- e.videoPre = null;
- e.coolTime = !1;
- e.videoNode = null;
- return e;
- }
- e.prototype.start = function() {
- gData.cashNormal.getRecord();
- mk.ad.showNative(4);
- };
- e.prototype.initList = function() {
- var t = gData.cashNormal.getListDataHavCode();
- this.scroll_view.node.emit("srollview-init", t);
- this.initNoneItem(t);
- };
- e.prototype.initNoneItem = function(t) {
- var e = t.length;
- this.lbl_none.node.active = !e;
- };
- e.prototype.clickTeach = function() {
- mk.audio.playEffect("button");
- if (!this.coolTime) {
- this.coolTime = !0;
- gData.redCodeData.teachVideoType = 1;
- console.log("clickTeach");
- this.videoNode = cc.instantiate(this.videoPre);
- this.videoNode.getChildByName("video").on("completed", this.onCompleted, this);
- this.node.addChild(this.videoNode);
- }
- };
- e.prototype.onCompleted = function() {
- this.videoNode.getChildByName("video").off("completed", this.onCompleted, this);
- this.videoNode.destroy();
- mk.audio.setResumeMusic();
- this.coolTime = !1;
- };
- e.prototype.onClickClose = function() {
- mk.ad.destroyNativeAd();
- };
- e.prototype.update = function() {
- gData.cashNormal.update_list && this.initList();
- };
- e.prototype.lateUpdate = function() {
- gData.cashNormal.update_list = !1;
- };
- a([ s({
- type: cc.ScrollView,
- displayName: "滚动视图"
- }) ], e.prototype, "scroll_view", void 0);
- a([ s({
- displayName: "lbl暂无提现",
- type: cc.Label
- }) ], e.prototype, "lbl_none", void 0);
- a([ s(cc.Prefab) ], e.prototype, "videoPre", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- RedCodeData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "04852gTGntFzLZT6/tJUeSA", "RedCodeData");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../../mk/data/Data"), c = cc._decorator.ccclass, s = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.init_data = !1;
- e.money = 0;
- e.code = "";
- e.teachVideoType = 1;
- return e;
- }
- e.prototype.openRedCode = function(t, e) {
- mk.ui.openPanel("module/redCode/redCode");
- this.money = t;
- this.code = e;
- this.init_data = !0;
- };
- return a([ c ], e);
- }(r.Data);
- n.default = s;
- cc._RF.pop();
- }, {
- "../../../mk/data/Data": "Data"
- } ],
- RedCode: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "c41b5+3RSVEG7N5eu3qKlqZ", "RedCode");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../../mk/system/JsbSystem"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.labOfficial = null;
- e.labRed = null;
- e.labMoney = null;
- e.labRedCode = null;
- e.parNode = null;
- e.videoPre = null;
- e.videoNode = null;
- e.officialStr = "白羊游戏社";
- e.redCodeStr = "领红包";
- e.code = "";
- e.coolTime = !1;
- return e;
- }
- e.prototype.start = function() {
- mk.ad.showNative(4);
- this.coolTime = !1;
- this.labOfficial.string = "“" + this.officialStr + "”";
- this.labRed.string = "“" + this.redCodeStr + "”";
- };
- e.prototype.update = function() {
- gData.redCodeData.init_data && this.init(gData.redCodeData.money, gData.redCodeData.code);
- };
- e.prototype.lateUpdate = function() {
- gData.redCodeData.init_data = !1;
- };
- e.prototype.init = function(t, e) {
- this.labMoney.string = t.toFixed(2) + "元";
- this.code = e;
- this.labRedCode.string = "提现红包码:" + this.code;
- };
- e.prototype.clickCopyOfficial = function() {
- mk.audio.playEffect("button");
- r.default.setClipboard(this.officialStr);
- };
- e.prototype.clickTeach = function() {
- mk.audio.playEffect("button");
- if (!this.coolTime) {
- this.coolTime = !0;
- gData.redCodeData.teachVideoType = 1;
- console.log("clickTeach");
- this.videoNode = cc.instantiate(this.videoPre);
- this.videoNode.getChildByName("video").on("completed", this.onCompleted, this);
- this.node.addChild(this.videoNode);
- }
- };
- e.prototype.onCompleted = function() {
- this.videoNode.getChildByName("video").off("completed", this.onCompleted, this);
- this.videoNode.destroy();
- mk.audio.setResumeMusic();
- this.coolTime = !1;
- };
- e.prototype.clickCopyRedCode = function() {
- mk.audio.playEffect("button");
- r.default.setClipboard(this.code);
- };
- e.prototype.closeCallBack = function() {
- mk.audio.playEffect("button");
- mk.audio.setResumeMusic();
- };
- e.prototype.onClickClose = function() {};
- e.prototype.onDisable = function() {
- mk.ad.destroyNativeAd();
- };
- a([ l(cc.Label) ], e.prototype, "labOfficial", void 0);
- a([ l(cc.Label) ], e.prototype, "labRed", void 0);
- a([ l(cc.Label) ], e.prototype, "labMoney", void 0);
- a([ l(cc.Label) ], e.prototype, "labRedCode", void 0);
- a([ l(cc.Node) ], e.prototype, "parNode", void 0);
- a([ l(cc.Prefab) ], e.prototype, "videoPre", void 0);
- return a([ s ], e);
- }(cc.Component);
- n.default = u;
- cc._RF.pop();
- }, {
- "../../../mk/system/JsbSystem": "JsbSystem"
- } ],
- RedeemData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "eac1eb1LzpDVby7tKxQi4wj", "RedeemData");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, r = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var c = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.init_redeemData = !1;
- e._redeemData = null;
- e.init_btnChange = !1;
- e.showBtn = !0;
- return e;
- }
- Object.defineProperty(e.prototype, "redeemData", {
- get: function() {
- return this._redeemData;
- },
- set: function(t) {
- this._redeemData = t;
- this.init_redeemData = !0;
- this.showBtn = 1 == this.redeemData.code;
- this.init_btnChange = !0;
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.init = function() {
- this.redeemGetRedemption();
- };
- e.prototype.redeemExchange = function(t) {
- return a(this, void 0, void 0, function() {
- var e, n;
- return r(this, function(o) {
- switch (o.label) {
- case 0:
- e = {
- code: t
- };
- return [ 4, mk.http.sendData("redemption/exchange", e) ];
- case 1:
- return 0 != (n = o.sent()).errcode ? [ 2 ] : [ 2, n ];
- }
- });
- });
- };
- e.prototype.redeemGetRedemption = function() {
- return a(this, void 0, void 0, function() {
- var t, e;
- return r(this, function(n) {
- switch (n.label) {
- case 0:
- t = {};
- return [ 4, mk.http.sendData("redemption/getRedemption", t) ];
- case 1:
- if (0 != (e = n.sent()).errcode) return [ 2 ];
- this.redeemData = e.data;
- return [ 2, e ];
- }
- });
- });
- };
- e.prototype.redPoint = function() {
- return !1;
- };
- return e;
- }(t("../../../mk/data/Data").Data);
- n.default = c;
- cc._RF.pop();
- }, {
- "../../../mk/data/Data": "Data"
- } ],
- RedeemNode: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "040b1TUzGlJj5hHtE/7jGBR", "RedeemNode");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = t("../../../mk/system/JsbSystem"), l = t("../../data/GameData"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.lab_title = null;
- e.txtGiftName = null;
- e.videoPre = null;
- e.rds = [];
- e.rd_imgs = [];
- e.rd_txts = [];
- e.inputBox = null;
- e.suc_node = null;
- e.suc_node_panel = null;
- e.suc_rds = [];
- e.suc_rd_imgs = [];
- e.suc_rd_txts = [];
- e.videoNode = null;
- e.rewardData = null;
- e.coolTime = !1;
- return e;
- }
- e.prototype.onEnable = function() {
- gData.redeem.init_redeemData = !0;
- };
- e.prototype.update = function() {
- gData.redeem.init_redeemData && this.InitData();
- };
- e.prototype.lateUpdate = function() {
- gData.redeem.init_redeemData = !1;
- };
- e.prototype.InitData = function() {
- var t = this, e = gData.redeem.redeemData.redemption;
- if (e) {
- this.lab_title.string = e.title;
- this.txtGiftName.string = e.title;
- this.rewardData = e.content;
- for (var n = 0, o = this.rds; n < o.length; n++) o[n].active = !1;
- for (var i = 0, a = this.suc_rds; i < a.length; i++) a[i].active = !1;
- for (var r = function(e) {
- c.rds[e].active = !0;
- c.suc_rds[e].active = !0;
- cc.loader.loadRes("game/texture/coin/" + c.rewardData[e].type, cc.SpriteFrame, function(n, o) {
- n && console.log("img load err:" + JSON.stringify(n));
- t.rd_imgs[e].spriteFrame = o;
- t.suc_rd_imgs[e].spriteFrame = o;
- });
- c.rd_txts[e].string = mk.math.format(c.rewardData[e].count);
- c.suc_rd_txts[e].string = mk.math.format(c.rewardData[e].count);
- }, c = this, s = 0; s < this.rewardData.length; s++) r(s);
- } else mk.ui.closePanel(this.node.name);
- };
- e.prototype.Click_RedeemBtn = function() {
- return r(this, void 0, void 0, function() {
- var t;
- return c(this, function(e) {
- switch (e.label) {
- case 0:
- console.log("---RedeemCode: " + this.inputBox.string);
- return "" == this.inputBox.string ? [ 3, 2 ] : [ 4, gData.redeem.redeemExchange(this.inputBox.string) ];
- case 1:
- if ((t = e.sent()) && 1 == t.data.code) {
- console.log("兑换成功");
- this.suc_node_panel.scale = 0;
- this.suc_node.active = !0;
- cc.tween(this.suc_node_panel).to(.2, {
- scale: 1
- }, {
- easing: "backOut"
- }).start();
- } else mk.tip.pop(t.data.msg);
- return [ 3, 3 ];
- case 2:
- mk.tip.pop("请输入兑换码");
- e.label = 3;
- case 3:
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.Click_TeachBtn = function() {
- return r(this, void 0, void 0, function() {
- return c(this, function() {
- mk.audio.playEffect("button");
- if (this.coolTime) return [ 2 ];
- this.coolTime = !0;
- console.log("clickTeach");
- gData.redCodeData.teachVideoType = 2;
- this.videoNode = cc.instantiate(this.videoPre);
- this.videoNode.getChildByName("video").on("completed", this.onCompleted, this);
- this.node.addChild(this.videoNode);
- return [ 2 ];
- });
- });
- };
- e.prototype.onCompleted = function() {
- this.videoNode.getChildByName("video").off("completed", this.onCompleted, this);
- this.videoNode.destroy();
- this.coolTime = !1;
- };
- e.prototype.clickCopyOfficial = function() {
- mk.audio.playEffect("button");
- s.default.setClipboard("白羊游戏社");
- };
- e.prototype.Click_GetBtn = function() {
- return r(this, void 0, void 0, function() {
- var t, e, n, o;
- return c(this, function(i) {
- switch (i.label) {
- case 0:
- this.suc_node.active = !1;
- for (t = 0; t < this.rewardData.length; t++) {
- mk.audio.playEffect("rewardClose");
- e = this.rewardData[t];
- n = parseInt(e.type);
- o = parseInt(e.count);
- mk.fly.PlayCoinAnim(n, 5, cc.v2(0, -300));
- switch (n) {
- case l.RewardType.redBag:
- gData.gameData.gameData.redMoney += o;
- break;
- case l.RewardType.pigRmb:
- gData.gameData.gameData.piggyBank += o;
- }
- }
- return [ 4, gData.redeem.redeemGetRedemption() ];
- case 1:
- i.sent();
- return [ 2 ];
- }
- });
- });
- };
- a([ d(cc.Label) ], e.prototype, "lab_title", void 0);
- a([ d(cc.Label) ], e.prototype, "txtGiftName", void 0);
- a([ d(cc.Prefab) ], e.prototype, "videoPre", void 0);
- a([ d(cc.Node) ], e.prototype, "rds", void 0);
- a([ d(cc.Sprite) ], e.prototype, "rd_imgs", void 0);
- a([ d(cc.Label) ], e.prototype, "rd_txts", void 0);
- a([ d(cc.EditBox) ], e.prototype, "inputBox", void 0);
- a([ d(cc.Node) ], e.prototype, "suc_node", void 0);
- a([ d(cc.Node) ], e.prototype, "suc_node_panel", void 0);
- a([ d(cc.Node) ], e.prototype, "suc_rds", void 0);
- a([ d(cc.Sprite) ], e.prototype, "suc_rd_imgs", void 0);
- a([ d(cc.Label) ], e.prototype, "suc_rd_txts", void 0);
- return a([ p ], e);
- }(cc.Component);
- n.default = h;
- cc._RF.pop();
- }, {
- "../../../mk/system/JsbSystem": "JsbSystem",
- "../../data/GameData": "GameData"
- } ],
- RewardData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "28b82uc1lxM/rQfcspoYwyD", "RewardData");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- });
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.RewardData = void 0;
- var a = t("../../../mk/data/Data"), r = t("../GameData"), c = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.add_redbag_value = 0;
- e._data = [];
- e.subType = 1;
- return e;
- }
- Object.defineProperty(e.prototype, "data", {
- get: function() {
- return this._data;
- },
- set: function(t) {
- this._data = t;
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.addReward = function() {
- for (var t = gData.reward.data.length, e = 0; e < t; e++) gData.reward.data[e].rewardType == r.RewardType.redBag ? gData.reward.data[e].rewardNum && (gData.gameData.gameData.redMoney += gData.reward.data[e].rewardNum) : gData.reward.data[e].rewardType == r.RewardType.rmb || gData.reward.data[e].rewardType == r.RewardType.pigRmb && gData.reward.data[e].rewardNum && (gData.gameData.gameData.piggyBank += gData.reward.data[e].rewardNum);
- gData.reward.data = [];
- };
- e.prototype.flyCoinAnim = function() {
- var t = this;
- if (gData.reward.data && gData.reward.data.length) for (var e = gData.reward.data.length, n = 0; n < e; n++) if (gData.reward.data[n].rewardType !== r.RewardType.rmb && 0 != gData.reward.data[n].rewardNum) {
- var o = new cc.Vec2(0, -300);
- mk.fly.PlayCoinAnim(gData.reward.data[n].rewardType, 10, o, "", function() {
- t.addReward();
- });
- }
- };
- return e;
- }(a.Data);
- n.RewardData = c;
- cc._RF.pop();
- }, {
- "../../../mk/data/Data": "Data",
- "../GameData": "GameData"
- } ],
- Reward: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "43f3akkA71HA76UhTj/R19X", "Reward");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s, l = t("../../../before/GamePlay"), u = t("../../data/AdData"), p = t("../../data/GameData"), d = cc._decorator, h = d.ccclass, f = d.property;
- (function(t) {
- t[t.none = 0] = "none";
- t[t.luck = 1] = "luck";
- t[t.mission = 2] = "mission";
- })(s || (s = {}));
- var y = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.lid_type = s.none;
- e.node_luck = null;
- e.node_mission = null;
- e.anim_open_redbag = null;
- e.btn_watch_video = null;
- e.node_coin = null;
- e.lbl_reward_value = null;
- e.hb_star = null;
- e.btn_close = null;
- e.spr_cash_out = null;
- e.lbl_cash_out = null;
- e.lbl_cash = null;
- e.node_cash = null;
- e.cur_stage = s.none;
- return e;
- }
- e.prototype.onLoad = function() {
- this.hb_star.active = !1;
- this.lbl_reward_value.string = "0";
- };
- e.prototype.start = function() {
- mk.ad.showBanner();
- mk.ad.checkShowInterByChance();
- this.initLid();
- this.initCashOutStyle(gData.gameData.gameData.redMoney);
- };
- e.prototype.update = function() {
- gData.reward.add_redbag_value && this.initCashOutStyle(gData.gameData.gameData.redMoney + gData.reward.add_redbag_value);
- gData.reward.adData && this.watchVideoCall();
- };
- e.prototype.lateUpdate = function() {
- gData.reward.add_redbag_value = 0;
- gData.reward.adData = null;
- };
- e.prototype.initLid = function() {
- if (this.lid_type === s.none) {
- this.node_luck.active = !1;
- this.node_mission.active = !1;
- this.btn_watch_video.node.active = !1;
- this.watchVideoCall();
- } else if (this.lid_type === s.luck) {
- this.node_luck.active = !0;
- this.node_mission.active = !1;
- this.btn_watch_video.node.active = !0;
- this.cur_stage = s.luck;
- mk.audio.playEffect("reward");
- } else if (this.lid_type === s.mission) {
- this.node_luck.active = !1;
- this.node_mission.active = !0;
- this.btn_watch_video.node.active = !0;
- this.cur_stage = s.mission;
- mk.audio.playEffect("reward");
- }
- };
- e.prototype.initCashOutStyle = function(t) {
- void 0 === t && (t = 0);
- var e = gData.redBagCash.cash_bar, n = gData.redBagCash.getItemDataByIndex(e);
- if (n) {
- var o = t > n.type_value ? n.type_value : t;
- this.lbl_cash.string = n.money / 100 + "元";
- this.lbl_cash_out.string = o + "/" + n.type_value;
- var i = o / n.type_value >= 1 ? 1 : o / n.type_value;
- cc.tween(this.spr_cash_out).to(i, {
- fillRange: i
- }).start();
- t >= n.type_value ? this.node_cash.play() : this.node_cash.stop();
- }
- };
- e.prototype.clickWatchVideo = function() {
- return r(this, void 0, void 0, function() {
- var t, e = this;
- return c(this, function(n) {
- switch (n.label) {
- case 0:
- cc.log("看广告请求");
- if (!gData.gameData.gameData.isFirstRedMoney) return [ 3, 2 ];
- gData.gameData.gameData.isFirstRedMoney = 0;
- return [ 4, mk.http.sendData("getFreeRedMoney", {}) ];
- case 1:
- if (0 != (t = n.sent()).errcode) {
- mk.tip.pop(t.errmsg);
- return [ 2 ];
- }
- gData.reward.adData = {};
- gData.reward.adData.videoRedMoney = {};
- gData.reward.adData.videoRedMoney.videoRewardList = [ {
- rewardType: p.RewardType.redBag,
- rewardNum: t.data.freeRedMoney
- } ];
- return [ 2 ];
- case 2:
- this.lid_type === s.mission ? mk.ad.watchAd(function(t) {
- mk.console.log("watchAD:" + t);
- if (t) {
- gData.adData.watchVideo(u.AdFun.settlement);
- e.clickNextMission();
- }
- }) : mk.ad.watchAd(function(t) {
- mk.console.log("watchAD:" + t);
- t && gData.adData.watchVideo(2 === gData.reward.subType ? u.AdFun.checkpoint : u.AdFun.bubble);
- });
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.watchVideoCall = function() {
- return r(this, void 0, void 0, function() {
- var t, e, n, o, i, a;
- return c(this, function(r) {
- switch (r.label) {
- case 0:
- gData.reward.adData && (gData.reward.data = gData.reward.adData.videoRedMoney.videoRewardList);
- if (!gData.reward.data || !gData.reward.data.length) return [ 2 ];
- this.btn_close && (this.btn_close.active = !1);
- mk.audio.playEffect("rewardOpen");
- this.hb_star.active = !0;
- this.hb_star.getComponent(sp.Skeleton).animation = "animation";
- this.hb_star.getComponent(sp.Skeleton).loop = !1;
- this.cur_stage = s.none;
- if ((t = gData.reward.data.length) >= 2) for (e = 0; e < t; e++) if (gData.reward.data[e].rewardType === p.RewardType.redBag) {
- n = gData.reward.data.splice(e, 1);
- gData.reward.data.unshift(n[0]);
- break;
- }
- if (gData.reward.data[0].rewardType !== p.RewardType.redBag) return [ 3, 2 ];
- o = this.node_coin;
- return [ 4, mk.loader.load("game/texture/coin/" + p.RewardType.redBag, cc.SpriteFrame) ];
- case 1:
- o.spriteFrame = r.sent();
- return [ 3, 4 ];
- case 2:
- i = this.node_coin;
- return [ 4, mk.loader.load("game/texture/coin/" + gData.reward.data[0].rewardType, cc.SpriteFrame) ];
- case 3:
- i.spriteFrame = r.sent();
- r.label = 4;
- case 4:
- a = gData.reward.data[0].rewardNum || 0;
- gData.reward.data[0].rewardType === p.RewardType.pigRmb ? this.lbl_reward_value.string = (a / 100).toFixed(2) + "元" : this.lbl_reward_value.string = "" + a;
- this.anim_open_redbag.play();
- this.node_luck.active = !1;
- this.node_mission.active = !1;
- this.btn_watch_video.node.active = !1;
- gData.reward.data[0].rewardType === p.RewardType.redBag && (gData.reward.add_redbag_value = gData.reward.data[0].rewardNum);
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.clickGetReward = function() {
- cc.log("获取奖励:", gData.reward.data);
- gData.reward.flyCoinAnim();
- this.onClickClose();
- 0 == gData.gameData.getProp(p.GameProp.videoTimes) && mk.data.sendXYEvent("guide_receive", "新手引导领取2500红包币");
- };
- e.prototype.clickCashOut = function() {
- gData.reward.addReward();
- mk.ui.closePanel(this.node.name);
- mk.ui.openPanel("module/redBagCash/redBagCash");
- };
- e.prototype.clickNextMission = function() {
- l.default.Inst.nextLevel();
- };
- e.prototype.clickBack = function() {
- l.default.Inst.restart();
- l.default.Inst.node.active = !1;
- };
- e.prototype.onDestroy = function() {
- this.cur_stage === s.none && mk.audio.playEffect("rewardClose");
- };
- e.prototype.onClickClose = function() {
- mk.ad.destoryBanner();
- if (2 == gData.reward.subType) {
- console.log("清除积分啦啦啦啦啦阿拉拉拉啦--------------------------------", l.default.Inst.ifPass);
- gData.gameData.setProp(p.GameProp.curTotalScore, 0);
- l.default.Inst.curProgressScore = 0;
- l.default.Inst.curGetScore = 0;
- l.default.Inst.finalGetScore = 0;
- l.default.Inst.initScore();
- }
- l.default.Inst && l.default.Inst.ifPass ? l.default.Inst.gameCount() : mk.ad.checkShowInterByChance();
- };
- a([ f({
- displayName: "红包类型",
- type: cc.Enum(s),
- tooltip: "none无类型,luck幸运红包,mission通关红包"
- }) ], e.prototype, "lid_type", void 0);
- a([ f({
- displayName: "幸运红包",
- type: cc.Node
- }) ], e.prototype, "node_luck", void 0);
- a([ f({
- displayName: "通关红包",
- type: cc.Node
- }) ], e.prototype, "node_mission", void 0);
- a([ f({
- displayName: "开红包动画",
- type: cc.Animation
- }) ], e.prototype, "anim_open_redbag", void 0);
- a([ f({
- displayName: "按钮看视频",
- type: cc.Button
- }) ], e.prototype, "btn_watch_video", void 0);
- a([ f({
- displayName: "货币图标",
- type: cc.Sprite
- }) ], e.prototype, "node_coin", void 0);
- a([ f({
- displayName: "奖励数量",
- type: cc.Label
- }) ], e.prototype, "lbl_reward_value", void 0);
- a([ f({
- displayName: "星星闪闪效果",
- type: cc.Node
- }) ], e.prototype, "hb_star", void 0);
- a([ f({
- displayName: "关闭按钮",
- type: cc.Node
- }) ], e.prototype, "btn_close", void 0);
- a([ f({
- displayName: "spr提现进度",
- type: cc.Sprite
- }) ], e.prototype, "spr_cash_out", void 0);
- a([ f({
- displayName: "lbl提现进度",
- type: cc.Label
- }) ], e.prototype, "lbl_cash_out", void 0);
- a([ f({
- displayName: "提现金额",
- type: cc.Label
- }) ], e.prototype, "lbl_cash", void 0);
- a([ f({
- displayName: "提现按钮",
- type: cc.Animation
- }) ], e.prototype, "node_cash", void 0);
- return a([ h ], e);
- }(cc.Component);
- n.default = y;
- cc._RF.pop();
- }, {
- "../../../before/GamePlay": "GamePlay",
- "../../data/AdData": "AdData",
- "../../data/GameData": "GameData"
- } ],
- RopeSwung: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "93753AIt45HwoqU8o6Vee0w", "RopeSwung");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = r.executeInEditMode, u = r.playOnFocus, p = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.angle = 15;
- e.time = 1;
- e._edit_play = !1;
- e.edit_playing = !1;
- return e;
- }
- Object.defineProperty(e.prototype, "edit_play", {
- get: function() {
- this._edit_play && !this.edit_playing && this.initShakeSlow();
- this.edit_playing = this._edit_play;
- return this._edit_play;
- },
- set: function(t) {
- this._edit_play = t;
- t || this.stop();
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.onLoad = function() {};
- e.prototype.start = function() {
- this.initShakeSlow();
- };
- e.prototype.initShakeSlow = function() {
- var t = this.node, e = cc.tween().to(this.time, {
- angle: {
- value: this.angle,
- easing: "sineOut"
- }
- }), n = cc.tween().to(this.time, {
- angle: {
- value: 0,
- easing: "sineIn"
- }
- }), o = cc.tween().to(this.time, {
- angle: {
- value: -this.angle,
- easing: "sineOut"
- }
- }), i = cc.tween().to(this.time, {
- angle: {
- value: 0,
- easing: "sineIn"
- }
- }), a = cc.tween().sequence(e, n, o, i);
- cc.tween(t).then(a).repeatForever().start();
- };
- e.prototype.stop = function() {
- this.node.stopAllActions();
- };
- a([ s({
- displayName: "摆动角度"
- }) ], e.prototype, "angle", void 0);
- a([ s({
- displayName: "摆动时间",
- tooltip: "摆动1/4距离消耗的时间"
- }) ], e.prototype, "time", void 0);
- a([ s({
- displayName: "编辑器预览"
- }) ], e.prototype, "edit_play", null);
- return a([ c, l(), u() ], e);
- }(cc.Component);
- n.default = p;
- cc._RF.pop();
- }, {} ],
- RotateAround: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "74eaeUz5/xGSZ3xJR1/kJQo", "RotateAround");
- var o, i, a = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), r = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.Axis = void 0;
- (function(t) {
- t[t.positiveX = 0] = "positiveX";
- t[t.positiveY = 1] = "positiveY";
- t[t.negativeX = 2] = "negativeX";
- t[t.negativeY = 3] = "negativeY";
- })(i = n.Axis || (n.Axis = {}));
- var c = cc._decorator, s = c.ccclass, l = c.property, u = c.executeInEditMode, p = c.playOnFocus, d = function(t) {
- a(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.target = null;
- e.clockwise = !0;
- e.timePerRound = 10;
- e.faceToTarget = !1;
- e.faceAxis = i.negativeY;
- e.auto_start = !1;
- e._edit_play = !1;
- e.angle = 0;
- e.radius = 0;
- e.isRotating = !1;
- return e;
- }
- Object.defineProperty(e.prototype, "edit_play", {
- get: function() {
- this._edit_play && !this.radius && this.run();
- this.isRotating = this._edit_play;
- return this._edit_play;
- },
- set: function(t) {
- this._edit_play = t;
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.start = function() {
- this.auto_start && this.run();
- };
- e.prototype.update = function(t) {
- if (this.isRotating && this.target) {
- var e = Math.PI / 180 * this.angle;
- this.node.x = this.target.x + this.radius * Math.cos(e);
- this.node.y = this.target.y + this.radius * Math.sin(e);
- if (this.faceToTarget) switch (this.faceAxis) {
- case i.positiveX:
- this.node.angle = this.angle + 180;
- break;
- case i.positiveY:
- this.node.angle = this.angle + 90;
- break;
- case i.negativeX:
- this.node.angle = this.angle;
- break;
- case i.negativeY:
- this.node.angle = this.angle - 90;
- }
- var n = t * (360 / this.timePerRound);
- this.clockwise ? this.angle -= n : this.angle += n;
- this.angle >= 360 ? this.angle %= 360 : this.angle <= -360 && (this.angle %= -360);
- }
- };
- e.prototype.run = function(t, e, n, o, i) {
- t && (this.target = t);
- e && (this.clockwise = e);
- n && (this.timePerRound = n);
- o && (this.faceToTarget = o);
- i && (this.faceAxis = i);
- if (!this.target) return cc.log("No target!");
- if (!this.isRotating) {
- this.angle = this.getAngle(this.target.getPosition(), this.node.getPosition());
- this.radius = this.getDistance(this.target.getPosition(), this.node.getPosition());
- this.isRotating = !0;
- }
- };
- e.prototype.stop = function() {
- this.isRotating = !1;
- };
- e.prototype.getAngle = function(t, e) {
- return Math.atan((e.y - t.y) / (e.x - t.x));
- };
- e.prototype.getDistance = function(t, e) {
- return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
- };
- r([ l({
- type: cc.Node,
- tooltip: "围绕旋转的目标"
- }) ], e.prototype, "target", void 0);
- r([ l({
- tooltip: "顺时针旋转"
- }) ], e.prototype, "clockwise", void 0);
- r([ l({
- tooltip: "旋转一圈花费的时间"
- }) ], e.prototype, "timePerRound", void 0);
- r([ l({
- tooltip: "是否始终面向目标节点"
- }) ], e.prototype, "faceToTarget", void 0);
- r([ l({
- type: cc.Enum(i),
- tooltip: "面向目标节点的轴:\n- PositiveX:正 X 轴\n- PositiveY:正 Y 轴\n- NegativeX:负 X 轴\n- NegativeY:负 Y 轴",
- visible: function() {
- return this.faceToTarget;
- }
- }) ], e.prototype, "faceAxis", void 0);
- r([ l({
- tooltip: "自动开始旋转"
- }) ], e.prototype, "auto_start", void 0);
- r([ l({
- displayName: "编辑器预览"
- }) ], e.prototype, "edit_play", null);
- return r([ s, u(), p() ], e);
- }(cc.Component);
- n.default = d;
- cc._RF.pop();
- }, {} ],
- Rule: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "3785cT9t0BKM73CkHfOQdMj", "Rule");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.scrollView = null;
- e.lbl_content = null;
- e.btn_close = null;
- return e;
- }
- e.prototype.onLoad = function() {};
- e.prototype.update = function() {
- gData.setting.init_rule_tyle && this.setContent(gData.setting.rule_type);
- };
- e.prototype.lateUpdate = function() {
- gData.setting.init_rule_tyle = !1;
- };
- e.prototype.setContent = function(t) {
- void 0 === t && (t = 0);
- for (var e = t ? gData.loginData.privacy_data : gData.loginData.rule_data, n = "", o = 0; o < e.length; o++) n += e[o] + "\n";
- this.lbl_content.string = n;
- this.scrollView.scrollToTop();
- };
- a([ s({
- type: cc.ScrollView,
- displayName: "滚动条"
- }) ], e.prototype, "scrollView", void 0);
- a([ s({
- type: cc.Label,
- displayName: "内容"
- }) ], e.prototype, "lbl_content", void 0);
- a([ s({
- type: cc.Button,
- displayName: "关闭"
- }) ], e.prototype, "btn_close", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- ScoreEnergy: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "fd61c/SDq9JW7QhxHiM8Ykg", "ScoreEnergy");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../GamePlay"), c = t("../../mgr/PoolMgr"), s = cc._decorator, l = s.ccclass, u = (s.property,
- function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.score = 0;
- return e;
- }
- e.prototype.start = function() {};
- e.prototype.update = function() {
- if (r.default.Inst.ifGetPass) {
- c.default.Inst.recyclePoolPrefab(c.NODEPOOLPREFABTYPE.ScoreEnergy, this.node);
- var t = r.default.Inst.curGetScore + this.score;
- r.default.Inst.curGetScore = t;
- }
- };
- e.prototype.init = function(t, e, n) {
- var o = this;
- this.node.getComponent(cc.ParticleSystem).resetSystem();
- this.node.x = t;
- this.node.y = e;
- var i = r.default.Inst.node_progressUI.x, a = r.default.Inst.node_progressUI.y + r.default.Inst.node_redPacketIcon.y;
- r.default.Inst.finalGetScore += n;
- cc.tween(this.node).to(1, {
- x: i,
- y: a
- }, {
- easing: "smooth"
- }).call(function() {
- c.default.Inst.recyclePoolPrefab(c.NODEPOOLPREFABTYPE.ScoreEnergy, o.node);
- if (!r.default.Inst.ifGetPass) {
- var t = r.default.Inst.curGetScore + n;
- r.default.Inst.curGetScore = t;
- }
- }).start();
- };
- return a([ l ], e);
- }(cc.Component));
- n.default = u;
- cc._RF.pop();
- }, {
- "../../GamePlay": "GamePlay",
- "../../mgr/PoolMgr": "PoolMgr"
- } ],
- SelectCellItemBtn: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "e8b95pOPehKPZhmoQnbaZAT", "SelectCellItemBtn");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../GamePlay"), c = t("../../data/GameConst"), s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.spr_icon = null;
- e.type = 0;
- return e;
- }
- e.prototype.start = function() {
- this.node.on(cc.Node.EventType.TOUCH_END, this.onClick, this);
- };
- e.prototype.init = function(t) {
- var e = this;
- this.type = t;
- this.spr_icon.node.width = 70;
- this.spr_icon.node.height = 70;
- mk.loader.load("game/texture/cellItemIcon/" + c.default.iconIndex + "/" + this.type, cc.SpriteFrame).then(function(t) {
- e.spr_icon.spriteFrame = t;
- });
- };
- e.prototype.onClick = function() {
- r.default.Inst.node_changeCellItemUI.active = !1;
- r.default.Inst.changeCellItemType(this.type);
- };
- a([ u(cc.Sprite) ], e.prototype, "spr_icon", void 0);
- return a([ l ], e);
- }(cc.Component);
- n.default = p;
- cc._RF.pop();
- }, {
- "../../GamePlay": "GamePlay",
- "../../data/GameConst": "GameConst"
- } ],
- SelectSceneItem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "9d3b6Lu9dhMg7Y4yEuxQFkw", "SelectSceneItem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.spr_selectScene = null;
- e.sceneIndex = null;
- return e;
- }
- e.prototype.start = function() {};
- e.prototype.init = function(t) {
- var e = this;
- void 0 === t && (t = null);
- this.sceneIndex = t;
- mk.loader.load("selectScene/" + this.sceneIndex, cc.SpriteFrame).then(function(t) {
- e.spr_selectScene = t;
- });
- };
- a([ s(cc.Sprite) ], e.prototype, "spr_selectScene", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- SetGray: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "f67a9SEPlBL8rHHpVX6g1ZW", "SetGray");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.normal = null;
- e.gray = null;
- e.grayState = !1;
- e.lastState = !1;
- e.spArr = null;
- e.btnArr = null;
- e.labArr = null;
- e.labArrC = [];
- e.outLineArr = null;
- e.outLineArrC = [];
- e.labRichArr = null;
- e.labRichArrC = [];
- e.grayColor = new cc.Color(166, 166, 166, 255);
- e.grayOutLineColor = new cc.Color(230, 230, 230, 255);
- e.skeArr = null;
- return e;
- }
- e.prototype.onLoad = function() {
- this.spArr = this.node.getComponentsInChildren(cc.Sprite);
- this.btnArr = this.node.getComponentsInChildren(cc.Button);
- this.labArr = this.node.getComponentsInChildren(cc.Label);
- this.outLineArr = this.node.getComponentsInChildren(cc.LabelOutline);
- this.labRichArr = this.node.getComponentsInChildren(cc.RichText);
- this.skeArr = this.node.getComponentsInChildren(sp.Skeleton);
- this.setGray(this.grayState);
- };
- e.prototype.setGray = function(t) {
- if (this.lastState != t) {
- this.lastState = t;
- if (t) {
- for (var e = this.spArr.length, n = 0; n < e; n++) this.spArr[n].setMaterial(0, this.gray);
- for (var o = this.btnArr.length, i = 0; i < o; i++) {
- this.btnArr[i].enableAutoGrayEffect = !0;
- this.btnArr[i].grayMaterial = this.gray;
- this.btnArr[i].interactable = !1;
- }
- for (var a = this.labArr.length, r = 0; r < a; r++) {
- this.labArrC[r] = this.labArr[r].node.color;
- this.labArr[r].node.color = this.grayColor;
- }
- for (var c = this.outLineArr.length, s = 0; s < c; s++) {
- this.outLineArrC[s] = this.outLineArr[s].color;
- this.outLineArr[s].color = this.grayOutLineColor;
- }
- for (var l = this.labRichArr.length, u = 0; u < l; u++) {
- this.labRichArrC[u] = this.labRichArr[u].node.color;
- this.labRichArr[u].node.color = this.grayColor;
- }
- } else {
- for (e = this.spArr.length, n = 0; n < e; n++) this.spArr[n].setMaterial(0, this.normal);
- for (o = this.btnArr.length, i = 0; i < o; i++) this.btnArr[i].interactable = !0;
- for (a = this.labArr.length, r = 0; r < a; r++) this.labArr[r].node.color = this.labArrC[r];
- for (c = this.outLineArr.length, s = 0; s < c; s++) this.outLineArr[s].color = this.outLineArrC[s];
- for (l = this.labRichArr.length, u = 0; u < l; u++) this.labRichArr[u].node.color = this.labRichArrC[u];
- }
- } else console.log("和上次设置相同");
- };
- a([ s(cc.Material) ], e.prototype, "normal", void 0);
- a([ s(cc.Material) ], e.prototype, "gray", void 0);
- a([ s({
- type: !1,
- displayName: "是否置灰"
- }) ], e.prototype, "grayState", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- SettingData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "3d0224MBK1EGqKYUAV3jFQF", "SettingData");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.SettingData = void 0;
- var o = function() {
- function t() {
- this.init_rule_tyle = null;
- this._rule_type = 0;
- }
- Object.defineProperty(t.prototype, "rule_type", {
- get: function() {
- return this._rule_type;
- },
- set: function(t) {
- this._rule_type = t;
- this.init_rule_tyle = !0;
- },
- enumerable: !1,
- configurable: !0
- });
- return t;
- }();
- n.SettingData = o;
- cc._RF.pop();
- }, {} ],
- Setting: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "6cec48K3X9GK6QSjqp7IWnc", "Setting");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = t("../../../before/util/Util"), l = t("../../../mk/system/JsbSystem"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.img_head = null;
- e.lbl_nickname = null;
- e.lbl_id = null;
- e.img_music = null;
- e.img_effect = null;
- e.lbl_version = null;
- e.node_rule = null;
- return e;
- }
- e.prototype.onLoad = function() {
- this.initData();
- };
- e.prototype.start = function() {
- mk.ad.showNative(4);
- };
- e.prototype.initData = function() {
- return r(this, void 0, void 0, function() {
- var t, e, n, o, i;
- return c(this, function(a) {
- switch (a.label) {
- case 0:
- console.log("=== gData.wechatData.unionid", gData.wechatData.unionid);
- console.log("=== gData.wechatData.nickName", gData.wechatData.nickName);
- this.lbl_id.string = "ID:" + mk.string.getNewLimitStr(gData.wechatData.unionid, 10);
- this.lbl_nickname.string = gData.wechatData.nickName;
- this.lbl_version.string = gData.appData.appVersion;
- t = "module/setting/texture/" + (mk.audio.getSwitchMusic() ? "on" : "off");
- e = "module/setting/texture/" + (mk.audio.getSwitchEffect() ? "on" : "off");
- n = this.img_music;
- return [ 4, mk.loader.load(t, cc.SpriteFrame) ];
- case 1:
- n.spriteFrame = a.sent();
- o = this.img_effect;
- return [ 4, mk.loader.load(e, cc.SpriteFrame) ];
- case 2:
- o.spriteFrame = a.sent();
- console.log("=== gData.wechatData.avatar", gData.wechatData.avatar);
- return [ 4, mk.loader.loadRemote(gData.wechatData.avatar + "?aaa=aa.jpg", null) ];
- case 3:
- i = a.sent();
- this.img_head.spriteFrame = new cc.SpriteFrame(i);
- console.log("=== loadHead:", i);
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.clickCopy = function() {
- mk.audio.playEffect("button");
- l.default.setClipboard(gData.wechatData.unionid);
- mk.tip.pop("复制成功");
- };
- e.prototype.clickMusic = function() {
- return r(this, void 0, void 0, function() {
- var t, e;
- return c(this, function(n) {
- switch (n.label) {
- case 0:
- mk.audio.switchMusicFunc();
- mk.audio.playEffect("button");
- t = "module/setting/texture/" + (mk.audio.getSwitchMusic() ? "on" : "off");
- e = this.img_music;
- return [ 4, mk.loader.load(t, cc.SpriteFrame) ];
- case 1:
- e.spriteFrame = n.sent();
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.clickEffect = function() {
- return r(this, void 0, void 0, function() {
- var t, e;
- return c(this, function(n) {
- switch (n.label) {
- case 0:
- mk.audio.switchEffectFunc();
- mk.audio.playEffect("button");
- t = "module/setting/texture/" + (mk.audio.getSwitchEffect() ? "on" : "off");
- e = this.img_effect;
- return [ 4, mk.loader.load(t, cc.SpriteFrame) ];
- case 1:
- e.spriteFrame = n.sent();
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.clickUpdate = function() {
- mk.audio.playEffect("button");
- var t = gData.appData.installVersion;
- s.default.versionCompareHandle(gData.appData.appVersion, t) < 0 ? mk.ui.openPanel("module/forceUpdate/forceUpdate") : mk.tip.pop("当前已是最新版本");
- };
- e.prototype.onClickWxAuth = function() {
- if (!gData.loginData.isAuth) {
- mk.ui.closePanel(this.node.name);
- l.default.WxAuth();
- this.onClickClose();
- }
- };
- e.prototype.clickRule = function(t) {
- return r(this, void 0, void 0, function() {
- return c(this, function() {
- gData.setting.rule_type = parseInt(t);
- return [ 2 ];
- });
- });
- };
- e.prototype.update = function() {};
- e.prototype.onDestroy = function() {};
- e.prototype.onClickClose = function() {
- mk.ad.destroyNativeAd();
- mk.ad.checkShowInterByChance();
- };
- a([ d({
- type: cc.Sprite,
- displayName: "头像"
- }) ], e.prototype, "img_head", void 0);
- a([ d({
- type: cc.Label,
- displayName: "昵称"
- }) ], e.prototype, "lbl_nickname", void 0);
- a([ d({
- type: cc.Label,
- displayName: "ID"
- }) ], e.prototype, "lbl_id", void 0);
- a([ d({
- type: cc.Sprite,
- displayName: "音乐开关"
- }) ], e.prototype, "img_music", void 0);
- a([ d({
- type: cc.Sprite,
- displayName: "音效开关"
- }) ], e.prototype, "img_effect", void 0);
- a([ d({
- type: cc.Label,
- displayName: "版本号"
- }) ], e.prototype, "lbl_version", void 0);
- return a([ p ], e);
- }(cc.Component);
- n.default = h;
- cc._RF.pop();
- }, {
- "../../../before/util/Util": "Util",
- "../../../mk/system/JsbSystem": "JsbSystem"
- } ],
- SignData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "b2ee58BiJFGUom3EJKNupVS", "SignData");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, r = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.SignData = void 0;
- var c = t("../../../mk/data/Data"), s = t("../GameData"), l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.init_data = !1;
- e._c_sign = [];
- e.list_data = [];
- return e;
- }
- e.prototype.init = function() {
- if (gData.gameData.configs.SignIn) {
- gData.gameData.configs.SignIn.forEach(function(t) {
- for (var e in t) t[e] = parseInt(t[e]);
- });
- this.c_sign = gData.gameData.configs.SignIn;
- }
- };
- Object.defineProperty(e.prototype, "c_sign", {
- get: function() {
- return this._c_sign;
- },
- set: function(t) {
- this._c_sign = t;
- this.init_data = !0;
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.initListData = function() {
- for (var t = [], e = 0; e < 30; ) {
- for (var n = [], o = 0; o < 3; o++) {
- var i = this.c_sign[e];
- n.push(i);
- e++;
- }
- t.push(n);
- }
- this.list_data = t;
- };
- e.prototype.getStateByDay = function(t) {
- return t <= gData.gameData.gameData.signInDay ? s.RewardState.none : 0 == gData.gameData.gameData.isSignInToday && t == gData.gameData.gameData.signInDay + 1 ? s.RewardState.unlock : s.RewardState.lock;
- };
- e.prototype.haveSignDay = function() {
- return !(gData.gameData.gameData.signInDay >= this.c_sign.length);
- };
- e.prototype.signComplete = function() {
- return a(this, void 0, void 0, function() {
- var t, e, n, o;
- return r(this, function(i) {
- switch (i.label) {
- case 0:
- cc.log("签到奖励", gData.sign.adData);
- if ((t = this.c_sign[gData.gameData.gameData.signInDay]).rewardType !== s.RewardType.redBag) return [ 3, 1 ];
- gData.reward.adData = gData.sign.adData;
- mk.ui.openPanel("module/reward/reward");
- return [ 3, 4 ];
- case 1:
- if (t.rewardType !== s.RewardType.rmb) return [ 3, 3 ];
- e = gData.sign.adData;
- return [ 4, mk.http.sendData("readyCash", {}) ];
- case 2:
- if (0 != (n = i.sent()).errcode) {
- 41002 == n.errcode ? mk.tip.pop("提现排队中,多看视频优先提现") : mk.tip.pop(n.errmsg);
- return [ 2 ];
- }
- 0 == n.CashMode || n.CashMode;
- o = Math.round(100 * e.videoRedMoney.videoRewardList[0].rewardNum);
- gData.receiptNotice.receip_rmb = o;
- gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
- mk.ui.openPanel("module/receiptNotice/receiptNotice");
- gData.cashNormal.getRecord();
- return [ 3, 4 ];
- case 3:
- if (t.rewardType === s.RewardType.pigRmb) {
- gData.reward.adData = gData.sign.adData;
- mk.ui.openPanel("module/reward/reward");
- }
- i.label = 4;
- case 4:
- gData.gameData.gameData.signInDay++;
- gData.gameData.gameData.isSignInToday = 1;
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.getItemIndexByCanSign = function() {
- for (var t = 0, e = this.list_data.length, n = 0; n < e; n++) for (var o = this.list_data[n].length, i = 0; i < o; i++) {
- var a = this.getStateByDay(this.list_data[n][i].id);
- if (0 == gData.gameData.gameData.isSignInToday) {
- if (a === s.RewardState.unlock) return n;
- } else if (a === s.RewardState.lock) return n;
- }
- return t;
- };
- e.prototype.redPoint = function() {
- return !gData.gameData.gameData.isSignInToday && this.haveSignDay();
- };
- return e;
- }(c.Data);
- n.SignData = l;
- cc._RF.pop();
- }, {
- "../../../mk/data/Data": "Data",
- "../GameData": "GameData"
- } ],
- SignIconItem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "233bfi4S/FHSYKyekkgMW0Z", "SignIconItem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s, l = t("../../data/GameData"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.node_cash = null;
- e.node_redbag = null;
- e.node_money = null;
- e.lbl_day = null;
- e.node_mask = null;
- e.node_gou = null;
- e.icon_data = {
- id: 0,
- rewardType: 0,
- rewardNum: 0,
- loginDay: 0,
- videoNum: 0
- };
- return e;
- }
- e.prototype.setItemData = function(t) {
- return r(this, void 0, void 0, function() {
- return c(this, function(e) {
- switch (e.label) {
- case 0:
- return [ 4, this.initIcon(t) ];
- case 1:
- e.sent();
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.initIcon = function(t) {
- this.icon_data = t;
- if (this.icon_data) {
- this.lbl_day.string = "第" + this.icon_data.id + "天";
- if (this.icon_data.rewardType == l.RewardType.rmb || this.icon_data.rewardType == l.RewardType.pigRmb) {
- this.node_cash.active = !0;
- this.node_redbag.active = !1;
- this.lbl_day.node.getComponent(cc.LabelOutline).color = cc.color(s.cash);
- } else {
- this.node_cash.active = !1;
- this.node_redbag.active = !0;
- this.lbl_day.node.getComponent(cc.LabelOutline).color = cc.color(s.red_bag);
- }
- var e = gData.sign.getStateByDay(this.icon_data.id);
- if (e == l.RewardState.none) {
- this.node_mask.active = !0;
- this.node_gou.active = !0;
- this.node_money.active = !1;
- } else if (e == l.RewardState.unlock) {
- this.node_mask.active = !1;
- this.node_gou.active = !1;
- } else if (e == l.RewardState.lock) {
- this.node_mask.active = !1;
- this.node_gou.active = !1;
- }
- } else this.node.active = !1;
- };
- a([ d({
- displayName: "提现样式",
- type: cc.Node
- }) ], e.prototype, "node_cash", void 0);
- a([ d({
- displayName: "红包样式",
- type: cc.Node
- }) ], e.prototype, "node_redbag", void 0);
- a([ d({
- displayName: "现金提示",
- type: cc.Node
- }) ], e.prototype, "node_money", void 0);
- a([ d({
- displayName: "天数",
- type: cc.Label
- }) ], e.prototype, "lbl_day", void 0);
- a([ d({
- displayName: "蒙版",
- type: cc.Node
- }) ], e.prototype, "node_mask", void 0);
- a([ d({
- displayName: "勾",
- type: cc.Node
- }) ], e.prototype, "node_gou", void 0);
- return a([ p ], e);
- }(cc.Component);
- n.default = h;
- (function(t) {
- t[t.red_bag = "#EB3A0E"] = "red_bag";
- t[t.cash = "#2AB718"] = "cash";
- })(s || (s = {}));
- cc._RF.pop();
- }, {
- "../../data/GameData": "GameData"
- } ],
- SignItem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "64cb2tAChJMy5muSxd7Pi4r", "SignItem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.sign_icon_pos = [];
- e.pre_icon = null;
- e.arr_icon = [];
- return e;
- }
- e.prototype.onLoad = function() {};
- e.prototype.start = function() {};
- e.prototype.setItemData = function(t) {
- return r(this, void 0, void 0, function() {
- return c(this, function(e) {
- switch (e.label) {
- case 0:
- return [ 4, this.initItem(t) ];
- case 1:
- e.sent();
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.initItem = function(t) {
- for (var e = this.sign_icon_pos.length, n = 0; n < e; n++) {
- var o = t[n], i = this.arr_icon[n];
- if (!i) {
- (i = cc.instantiate(this.pre_icon)).parent = this.node;
- i.setPosition(this.sign_icon_pos[n].getPosition());
- this.arr_icon[n] = i;
- }
- i.getComponent("SignIconItem").setItemData(o);
- }
- };
- a([ u({
- type: cc.Node,
- displayName: "位置组件"
- }) ], e.prototype, "sign_icon_pos", void 0);
- a([ u({
- type: cc.Prefab
- }) ], e.prototype, "pre_icon", void 0);
- return a([ l ], e);
- }(cc.Component);
- n.default = p;
- cc._RF.pop();
- }, {} ],
- Sign: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "92c1epESLhJSLrId9Dkn6Wd", "Sign");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../../mk/system/JsbSystem"), c = t("../../data/AdData"), s = t("../../data/GameData"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.scroll_view = null;
- e.anim_btn = null;
- e.tableview = null;
- return e;
- }
- e.prototype.onLoad = function() {};
- e.prototype.start = function() {
- mk.ad.showNative(4);
- gData.sign.initListData();
- gData.sign.init_data = !0;
- this.initScollView();
- };
- e.prototype.initScollView = function() {
- var t = this, e = gData.sign.list_data;
- this.scroll_view.node.emit("srollview-init", e);
- this.tableview = this.scroll_view.node.getComponent("TableView");
- var n = gData.sign.getItemIndexByCanSign();
- this.scheduleOnce(function() {
- t.tableview.contentMoveByIndex(n);
- }, .1);
- };
- e.prototype.update = function() {
- gData.sign.init_data ? this.initBtnStyle() : gData.sign.adData && this.getReward();
- };
- e.prototype.lateUpdate = function() {
- gData.sign.adData = null;
- };
- e.prototype.clickReceiveReward = function() {
- mk.audio.playEffect("button");
- if (1 != gData.gameData.gameData.isSignInToday && gData.sign.haveSignDay()) {
- var t = gData.gameData.gameData.signInDay;
- if (gData.sign.c_sign[t].rewardType !== s.RewardType.rmb || gData.loginData.isAuth) {
- mk.ad.videoAdType = s.VideoAdType.Sign;
- mk.ad.watchAd(function(e) {
- mk.console.log("watchAD:" + e);
- if (e) {
- gData.adData.watchVideo(c.AdFun.sign);
- gData.sign.c_sign[t].rewardType === s.RewardType.rmb && mk.data.sendDataEvent(s.DataEventId.signWithDrawal, "签到提现成功");
- mk.ad.destroyNativeAd();
- }
- });
- } else r.default.WxAuth();
- }
- };
- e.prototype.getReward = function() {
- gData.sign.signComplete();
- var t = gData.sign.getItemIndexByCanSign();
- this.tableview.resetItemData(t, gData.sign.list_data[t]);
- };
- e.prototype.initBtnStyle = function() {
- if (0 == gData.gameData.gameData.isSignInToday && gData.sign.haveSignDay()) {
- this.anim_btn.play();
- this.anim_btn.getComponent(mk.component.setGray).setGray(!1);
- } else {
- this.anim_btn.stop();
- this.anim_btn.node.scale = 1;
- this.anim_btn.getComponent(mk.component.setGray).setGray(!0);
- }
- gData.sign.init_data = !1;
- };
- e.prototype.onClickClose = function() {
- mk.ad.destroyNativeAd();
- mk.ad.checkShowInterByChance();
- };
- a([ p({
- type: cc.ScrollView,
- displayName: "滚动视图"
- }) ], e.prototype, "scroll_view", void 0);
- a([ p({
- type: cc.Animation,
- displayName: "按钮_动画"
- }) ], e.prototype, "anim_btn", void 0);
- return a([ u ], e);
- }(cc.Component);
- n.default = d;
- cc._RF.pop();
- }, {
- "../../../mk/system/JsbSystem": "JsbSystem",
- "../../data/AdData": "AdData",
- "../../data/GameData": "GameData"
- } ],
- SpineEffectPlay: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "d2a29T/kkBHZbkhAfjHhUby", "SpineEffectPlay");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.spine = null;
- e.ifLoop = !1;
- e.curAniName = "";
- e.spineAniEndCallBack = null;
- e.nodePoolPrefabType = 0;
- return e;
- }
- e.prototype.start = function() {};
- e.prototype.onEnable = function() {
- var t = this;
- this.spine = this.getComponent(sp.Skeleton);
- if (this.spine) {
- this.spine.setAnimation(0, this.spine.animation, !1);
- this.spine.setCompleteListener(function() {
- t.spineLoopAniComplete();
- });
- } else mk.console.error("SpineEffectPlay 绑定的节点没有spine");
- };
- e.prototype.playSpineAni = function(t, e, n) {
- void 0 === e && (e = !1);
- void 0 === n && (n = null);
- if (t) {
- this.curAniName = t;
- this.spine.setAnimation(0, t, e);
- }
- this.spineAniEndCallBack = n;
- };
- e.prototype.spineLoopAniComplete = function() {
- this.spineAniEndCallBack && this.spineAniEndCallBack();
- this.ifLoop || r.default.Inst.recyclePoolPrefab(this.nodePoolPrefabType, this.node);
- };
- e.prototype.clearLoopAniCompleteCallBack = function() {
- this.spineAniEndCallBack = null;
- };
- a([ l({
- type: cc.Enum(r.NODEPOOLPREFABTYPE),
- serializable: !0
- }) ], e.prototype, "nodePoolPrefabType", void 0);
- return a([ s ], e);
- }(cc.Component);
- n.default = u;
- cc._RF.pop();
- }, {
- "../../mgr/PoolMgr": "PoolMgr"
- } ],
- StorageData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "714352IWzBOCowl9Oqo4DBk", "StorageData");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.StorageKey = n.StorageData = void 0;
- var o = function() {
- function t() {
- this.storageKey = "mzmNr2s358irB3WQC3AmGaWMFkMx2HQs";
- }
- t.prototype.clear = function() {
- mk.storage.clear();
- };
- return t;
- }();
- n.StorageData = o;
- (function(t) {
- t.loginTicket = "loginTicket";
- t.isFirstIn = "isFirstIn";
- t.uin = "uin";
- t.sessionKey = "sessionKey";
- t.nickname = "nickname";
- t.isAuth = "isAuth";
- t.avatar = "avatar";
- })(n.StorageKey || (n.StorageKey = {}));
- cc._RF.pop();
- }, {} ],
- StorageMgr: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "8a8eesMu8pFOKcbgoWv4cHZ", "StorageMgr");
- var o = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var i = cc._decorator, a = i.ccclass, r = (i.property, function() {
- function t() {}
- e = t;
- Object.defineProperty(t, "Inst", {
- get: function() {
- null == this._instance && (this._instance = new e());
- return this._instance;
- },
- enumerable: !1,
- configurable: !0
- });
- t.prototype.getStorage = function(t) {
- return cc.sys.localStorage.getItem(t) ? JSON.parse(cc.sys.localStorage.getItem(t)) : null;
- };
- t.prototype.setStorage = function(t, e) {
- cc.sys.localStorage.setItem(t, JSON.stringify(e));
- };
- var e;
- t._instance = null;
- return e = o([ a ], t);
- }());
- n.default = r;
- cc._RF.pop();
- }, {} ],
- StorageUtil: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "897f9/OTe5ILpCRfzhdVQUi", "StorageUtil");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var o = function() {
- function t() {}
- t.prototype.getStorage = function(t, e) {
- void 0 === e && (e = !0);
- var n = cc.sys.localStorage.getItem(t);
- if (!n) return null;
- try {
- return e ? mk.encrypt.decrypt(n, gData.storageData.storageKey, gData.appData.appId) : JSON.parse(n);
- } catch (t) {
- return n;
- }
- };
- t.prototype.setStorage = function(t, e, n) {
- void 0 === n && (n = !0);
- if (n) {
- e = mk.encrypt.encrypt(e, gData.storageData.storageKey, gData.appData.appId);
- cc.sys.localStorage.setItem(t, e);
- } else cc.sys.localStorage.setItem(t, JSON.stringify(e));
- };
- t.prototype.clear = function() {
- cc.sys.localStorage.clear();
- };
- return t;
- }();
- n.default = o;
- cc._RF.pop();
- }, {} ],
- StringUtil: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "4c029tekfZLEKj9xvuITEwf", "StringUtil");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var o = function() {
- function t() {
- this.str_color = {
- red1: "#be2c1d",
- bro1: "#4E301B"
- };
- }
- t.prototype.getTextByStringInData = function(t) {
- for (var e, n, o, i, a, r, c = t, s = 0; s < t.length; ) {
- e = t.indexOf("[", s);
- n = t.indexOf("]", e);
- if (-1 == e || -1 == n) break;
- i = t.slice(e, n + 1);
- r = t.slice(e + 1, e + 5);
- var l = this.str_color[r];
- if (l) {
- o = t.slice(e + 6, n);
- a = this.getColorStringColor(o, l);
- c = c.replace(i, a);
- }
- s = n;
- }
- for (var u, p = 0, d = 0, h = 0; p < c.length; ) {
- d = c.indexOf("{", p);
- h = c.indexOf("}", d);
- if (-1 == d || -1 == h) break;
- u = c.slice(d, h + 1);
- var f = c.slice(d + 1, d + 3), y = u.slice(4, u.length - 1);
- if (y) {
- var g = "<size = " + f + ">" + y + "</color>";
- c = c.replace(u, g);
- }
- p = h;
- }
- return c;
- };
- t.prototype.getColorStringColor = function(t, e) {
- void 0 === t && (t = "#FFFFFF");
- return "<color=" + e + ">" + t + "</color>";
- };
- t.prototype.arabicToChinese = function(t) {
- var e = [ "", "万", "亿", "万亿", "亿亿" ], n = [ "", "十", "百", "千" ], o = [ "零", "一", "二", "三", "四", "五", "六", "七", "八", "九" ], i = 0, a = "", r = "", c = !1, s = function(t) {
- for (var e = "", i = 0, a = !0; t > 0; ) {
- var r = t % 10, c = "";
- if (0 === r) {
- if (!a) {
- a = !0;
- e = o[r] + e;
- }
- } else {
- a = !1;
- (1 !== i || t > 1) && (c = o[r]);
- e = (c += n[i]) + e;
- }
- ++i;
- t = Math.floor(t / 10);
- }
- return e;
- };
- if (0 === t) return o[0];
- for (;t > 0; ) {
- var l = t % 1e4;
- c && (r = o[0] + r);
- a = s(l);
- r = (a += 0 !== l ? e[i] : e[0]) + r;
- c = l < 1e3 && l > 0;
- t = Math.floor(t / 1e4);
- ++i;
- }
- return r;
- };
- t.prototype.getNewLimitStr = function(t, e) {
- var n = t.split(""), o = "";
- e = n.length >= e ? e : n.length;
- for (var i = 0; i < e; i++) o += i == e - 1 ? "..." : n[i];
- return o;
- };
- return t;
- }();
- n.default = o;
- cc._RF.pop();
- }, {} ],
- TabSwitching: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "3087dH5gWhCfZNksqAzC+wm", "TabSwitching");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.arr_btn_tab = [];
- e.tab_count = 0;
- e.func = null;
- return e;
- }
- e.prototype.onLoad = function() {
- this.tab_count = this.arr_btn_tab.length;
- this.initTabState();
- this.initBtnEvent();
- this.node.on("comp-cur-tab", this.curTabType, this);
- this.node.on("comp-cur-click", this.onTabBtnClick, this);
- };
- e.prototype.start = function() {};
- e.prototype.initBtnEvent = function() {
- for (var t = 0; t < this.tab_count; t++) this.arr_btn_tab[t].node.on("click", this.onClockTabCall, this);
- };
- e.prototype.onClockTabCall = function(t, e) {
- this.initTabState();
- var n = t.node;
- n.getChildByName("img_style_1").active = !0;
- n.getChildByName("img_style_2").active = !1;
- this.func && this.func(t, e);
- };
- e.prototype.onTabBtnClick = function(t, e) {
- this.func = t.bind(e);
- };
- e.prototype.initTabState = function() {
- for (var t = 0; t < this.tab_count; t++) {
- this.arr_btn_tab[t].node.getChildByName("img_style_1").active = !1;
- this.arr_btn_tab[t].node.getChildByName("img_style_2").active = !0;
- }
- };
- e.prototype.curTabType = function(t) {
- for (var e = 0; e < this.tab_count; e++) if (e === t) {
- this.onClockTabCall(this.arr_btn_tab[e], e);
- return;
- }
- };
- a([ s({
- type: cc.Button,
- displayName: "页签组",
- tooltip: "按钮target需要有值"
- }) ], e.prototype, "arr_btn_tab", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- TableView: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "9a31drXM+9NCKYkF9D78zlF", "TableView");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.pre_item = [];
- e.scr_item = [];
- e.itemInterval = 0;
- e.itemData = null;
- e.scrollView = null;
- e.item = null;
- e.content = null;
- e.layerHeight = null;
- e.firstItemIndex = 0;
- e.lastItemIndex = 0;
- e.firstItemData = {};
- e.lastItemData = {};
- e.itemArr = [];
- e.itemNode = [];
- e.itemPosMap = new Map();
- e.initItemData = !0;
- e.count = 0;
- e.itemCanMoveDown = null;
- e.itemCanMoveUp = null;
- e.lastResetItemInfoHeight = null;
- e.lastResetItemIndex = null;
- return e;
- }
- e.prototype.onLoad = function() {
- this.initPro();
- };
- e.prototype.initPro = function() {
- this.scrollView = this.node.getComponent(cc.ScrollView);
- this.content = this.scrollView.content;
- this.item = this.pre_item;
- this.layerHeight = this.node.height;
- for (var t = 0; t < this.item.length; t++) this.itemNode[t] = cc.instantiate(this.item[t]);
- this.node.on("srollview-init", this.init, this);
- this.node.on("srollview-update", this.updateList, this);
- };
- e.prototype.init = function(t, e) {
- void 0 === e && (e = !1);
- if (!t[0]) return !1;
- this.clearItem();
- this.itemData = t;
- this.firstItemIndex = 0;
- this.lastItemIndex = 0;
- this.firstItemData = {};
- this.lastItemData = {};
- this.itemArr = [];
- this.itemPosMap = new Map();
- this.initItemData = !0;
- this.count = 0;
- if (!e) {
- this.initItem();
- this.initItemPos(0);
- this.scrollView.node.on("scrolling", this.callback, this);
- }
- };
- e.prototype.updateList = function(t) {
- this.itemData = t;
- for (var e = this.itemArr.length, n = 0; n < e; n++) if (this.itemData[n]) {
- if (!this.itemArr[n]) {
- var o = 0;
- n > 0 && (o = this.itemArr[n - 1].y - this.itemArr[n - 1].height - this.itemInterval);
- var i = this.addItemNode(n, o);
- this.updateContentHeigh(this.itemArr[n].height - i.y);
- }
- var a = this.itemArr[n].getComponent(this.scr_item[this.itemData[n].pfbType || 0]);
- a && a.setItemData(this.itemData[n], this);
- } else {
- this.itemArr[n].destroy();
- this.itemArr[n] = null;
- }
- };
- e.prototype.initItemPos = function(t) {
- for (var e = this.itemData.length, n = t; n < e; n++) {
- var o = {};
- o.startPos = 0 === n ? 0 : this.itemPosMap.get(n - 1).endPos;
- var i = this.itemData[n].pfbType || 0;
- o.endPos = o.startPos + this.itemNode[i].height + this.itemInterval;
- this.itemPosMap.set(n, o);
- }
- e > 0 && this.updateContentHeigh(this.itemPosMap.get(e - 1).endPos);
- };
- e.prototype.initItem = function() {
- for (var t = 0, e = 0; e < this.itemData.length && !(this.content.height > this.layerHeight && ++t > 2); e++) {
- var n = 0;
- e > 0 && (n = this.itemArr[e - 1].y - this.itemArr[e - 1].height - this.itemInterval);
- var o = this.addItemNode(e, n);
- this.updateContentHeigh(this.itemArr[e].height - o.y);
- }
- };
- e.prototype.addItemNode = function(t, e) {
- var n = this.itemData[t].pfbType || 0, o = cc.instantiate(this.itemNode[n]);
- o.parent = this.content;
- o.pfbType = n;
- o.index = t;
- o.y = 0 === t ? 0 : e;
- o.x = 0;
- var i = o.getComponent(this.scr_item[n]);
- i && i.setItemData(this.itemData[t], this);
- this.itemArr.push(o);
- return o;
- };
- e.prototype.updateContentHeigh = function(t) {
- this.content.height = t > this.layerHeight ? t : this.layerHeight;
- };
- e.prototype.callback = function() {
- if (this.content.height > this.layerHeight) {
- var t = this.scrollView.getScrollOffset().y, e = t + this.layerHeight;
- if (t < 0) return;
- if (this.initItemData) {
- this.initItemData = !1;
- this.updateFirstItemIndex();
- this.itemCanMoveDown = !0;
- this.updateLastItemIndex();
- this.itemCanMoveDown = !1;
- }
- if (t > this.firstItemData.endPos) {
- this.lastItemIndex + 1 < this.itemData.length && this.updateFirstItemIndex();
- this.count++;
- }
- if (e > this.lastItemData.endPos && this.lastItemIndex + 1 < this.itemData.length) {
- this.itemCanMoveDown = !0;
- this.updateLastItemIndex();
- this.itemCanMoveDown = !1;
- }
- if (e < this.lastItemData.startPos) {
- this.updateLastItemIndex();
- this.count--;
- }
- if (t < this.firstItemData.startPos) {
- this.itemCanMoveUp = !0;
- this.updateFirstItemIndex();
- this.itemCanMoveUp = !1;
- }
- }
- };
- e.prototype.updateFirstItemIndex = function() {
- var t = this.firstItemIndex;
- this.itemCanMoveUp && t > this.getItemIndex()[0] && t > 0 && this.itemMoveUp(this.firstItemIndex - 1);
- this.updateItemIndex();
- };
- e.prototype.updateLastItemIndex = function() {
- var t = this.lastItemIndex;
- this.itemCanMoveDown && t < this.getItemIndex()[1] && t + 1 < this.itemData.length && this.itemMoveDown(this.lastItemIndex + 1);
- this.updateItemIndex();
- };
- e.prototype.updateItemIndex = function() {};
- e.prototype.getItemIndex = function() {
- var t = this, e = this.scrollView.getScrollOffset().y, n = e + this.layerHeight, o = [];
- this.itemPosMap.forEach(function(i, a) {
- var r = i.startPos <= e && i.endPos > e, c = (i.startPos >= e && i.endPos, i.startPos <= n && i.endPos > n);
- if (r) {
- t.firstItemData.startPos = i.startPos;
- t.firstItemData.endPos = i.endPos;
- t.firstItemIndex = a;
- o.push(a);
- }
- if (c) {
- t.lastItemData.startPos = i.startPos;
- t.lastItemData.endPos = i.endPos;
- t.lastItemIndex = a;
- o.push(a);
- }
- });
- return o;
- };
- e.prototype.itemMoveUp = function(t) {
- if (!(t < 0 || this.lastItemIndex + 1 < t || t + 1 > this.itemData.length)) {
- this.hasItem(t) || this.itemMove(t, -this.itemPosMap.get(t).startPos);
- t++;
- return this.itemMoveUp(t);
- }
- };
- e.prototype.itemMoveDown = function(t) {
- if (!(t < 0 || this.firstItemIndex - 1 > t || t + 1 > this.itemData.length)) {
- this.hasItem(t) || this.itemMove(t, -this.itemPosMap.get(t).startPos);
- t--;
- return this.itemMoveDown(t);
- }
- };
- e.prototype.hasItem = function(t) {
- for (var e = 0; e < this.itemArr.length; e++) if (this.itemArr[e].index === t) return !0;
- return !1;
- };
- e.prototype.itemMove = function(t, e) {
- for (var n = 0; n < this.itemArr.length; n++) {
- var o = this.itemArr[n].index < this.firstItemIndex - 1, i = this.itemArr[n].index > this.lastItemIndex + 1, a = this.itemArr[n].pfbType === (this.itemData[t].pfbType || 0);
- if (o && a || i && a) {
- this.itemArr[n].index = t;
- this.itemArr[n].y = e;
- var r = this.itemArr[n].getComponent(this.scr_item[this.itemArr[n].pfbType]);
- r && r.setItemData(this.itemData[t], this);
- return;
- }
- }
- this.addItemNode(t, e);
- };
- e.prototype.contentMoveByIndex = function(t) {
- var e = this.itemPosMap.get(t).startPos;
- this.scrollView.scrollToOffset(new cc.Vec2(this.content.x, e), .5);
- };
- e.prototype.getPosIndex = function(t) {
- for (var e = 0, n = this.itemPosMap.entries(); e < n.length; e++) {
- var o = n[e], i = o[0], a = o[1];
- if (a.endPos > t && a.startPos <= t) return i;
- }
- };
- e.prototype.addItem = function(t) {
- this.itemData.push(t);
- this.initItemPos(this.itemData.length - 1);
- var e = this.itemPosMap.get(this.itemData.length - 1).endPos;
- if (e - this.layerHeight > 0) {
- for (var n = e - this.layerHeight, o = this.itemData.length - 1; o >= 0; o--) this.itemPosMap.get(o).endPos > n && this.itemPosMap.get(o).startPos <= n && (this.firstItemIndex = o);
- this.scrollView.scrollToBottom();
- this.lastItemIndex = this.itemData.length - 1;
- var i = this.firstItemIndex - 1 > 0 ? this.firstItemIndex - 1 : 0;
- this.itemMoveUp(i);
- return !0;
- }
- this.firstItemIndex = 0;
- this.lastItemIndex = this.itemData.length - 1;
- this.itemMoveUp(this.firstItemIndex);
- return !1;
- };
- e.prototype.clearItem = function() {
- this.itemData = [];
- this.itemPosMap.clear();
- this.scrollView.scrollToTop();
- this.content.height = 0;
- for (var t in this.itemArr) this.itemArr[t].destroy();
- };
- e.prototype.deleteItem = function(t) {
- this.itemData.splice(t, 1);
- var e = this.itemData.length;
- if (!(e <= 0)) {
- this.initItemPos(e - 1);
- for (var n = 0; n < this.itemArr.length; n++) {
- if (this.itemArr[n].index === t) {
- this.itemArr[n].index = -1;
- this.itemArr[n].y = 3e3;
- }
- if (this.itemArr[n].index > t) {
- var o = this.itemArr[n].index;
- this.itemArr[n].y = -this.itemPosMap.get(o - 1).startPos;
- this.itemArr[n].index = o - 1;
- }
- }
- this.updateContentHeigh(this.itemPosMap.get(this.itemData.length - 1).endPos);
- this.lastItemIndex || this.getItemIndex();
- this.itemMoveUp(this.firstItemIndex);
- }
- };
- e.prototype.resetItemData = function(t, e) {
- for (var n = 0; n < this.itemArr.length; n++) if (this.itemArr[n].index === t) {
- e && (this.itemData[n] = e);
- var o = this.itemArr[n].getComponent(this.scr_item[this.itemArr[n].pfbType]);
- o && o.setItemData(this.itemData[t], this);
- break;
- }
- };
- e.prototype.resetItemSize = function(t, e) {
- var n = function(t, e) {
- for (var n = 0; n < this.itemArr.length; n++) this.itemArr[n].index > t && (this.itemArr[n].y -= e);
- for (var o = 0, i = this.itemPosMap.entries(); o < i.length; o++) {
- var a = i[o], r = a[0], c = a[1];
- r === t && (c.endPos += e);
- if (r > t) {
- c.endPos += e;
- c.startPos += e;
- }
- }
- this.lastResetItemInfoHeight = e;
- this.lastResetItemIndex = t;
- }.bind(this);
- if (null !== this.lastResetItemIndex && this.lastResetItemInfoHeight) if (this.lastResetItemIndex === t) {
- n(this.lastResetItemIndex, -this.lastResetItemInfoHeight);
- this.lastResetItemIndex = null;
- this.lastResetItemInfoHeight = 0;
- } else {
- n(this.lastResetItemIndex, -this.lastResetItemInfoHeight);
- n(t, e);
- } else n(t, e);
- this.itemMoveUp(this.firstItemIndex);
- this.updateContentHeigh(this.itemPosMap.get(this.itemData.length - 1).endPos);
- };
- a([ s({
- displayName: "预制条目",
- tooltip: "脚本必须实现 setItemData 方法用于接收数据!",
- type: [ cc.Prefab ]
- }) ], e.prototype, "pre_item", void 0);
- a([ s({
- displayName: "脚本名",
- tooltip: "脚本必须实现 setItemData 方法用于接收数据!",
- type: [ cc.String ]
- }) ], e.prototype, "scr_item", void 0);
- a([ s({
- displayName: "间距"
- }) ], e.prototype, "itemInterval", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- TimeUtil: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "c10efJfgPlIRqo2IRARi4q9", "TimeUtil");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var o = function() {
- function t() {
- this.offTime = 0;
- }
- t.prototype.setServerTime = function(t) {
- this.offTime = t - Math.ceil(new Date().getTime() / 1e3);
- };
- t.prototype.getServerTime = function() {
- return Math.ceil(new Date().getTime() / 1e3 + this.offTime);
- };
- t.prototype.format = function(t, e) {
- void 0 === e && (e = "h:m:s");
- var n = Math.floor(t / 24 / 3600), o = Math.floor(t / 3600 % 24), i = Math.floor(t % 3600 / 60), a = t % 3600 % 60;
- function r(t) {
- var e = t.toString();
- t < 10 && (e = "0" + t);
- return e;
- }
- -1 != e.indexOf("d") ? e = e.replace(/d/g, r(n)) : o += 24 * n;
- -1 != e.indexOf("h") ? e = e.replace(/h/g, r(o)) : i += 60 * o;
- -1 != e.indexOf("m") ? e = e.replace(/m/g, r(i)) : -1 != e.indexOf("h") ? a += 60 * i : a = t;
- -1 != e.indexOf("s") && (e = e.replace(/s/g, r(a)));
- return e;
- };
- t.prototype.formatWithUnit = function(t, e) {
- void 0 === e && (e = "天时分秒");
- var n = Math.floor(t / 24 / 3600), o = Math.floor(t / 3600 % 24), i = Math.floor(t % 3600 / 60), a = t % 3600 % 60;
- function r(t, e) {
- var n = t.toString();
- t < 10 && (n = "0" + t);
- return n + e;
- }
- var c = "";
- -1 != e.indexOf("天") ? c += n + "天" : o += 24 * n;
- -1 != e.indexOf("时") ? c += r(o, "时") : i += 60 * o;
- -1 != e.indexOf("分") ? c += r(i, "分") : a += 60 * i;
- -1 != e.indexOf("秒") && (c += r(a, "秒"));
- return c;
- };
- t.prototype.getDayInYear = function(t) {
- var e = new Date(t), n = e.getMonth() + 1, o = e.getFullYear(), i = e.getDate(), a = 0, r = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ], c = [ 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ];
- if (o % 400 == 0 || o % 4 == 0 && o % 100 != 0) {
- for (var s = 0; s < n - 1; s++) a += c[s];
- return a + i;
- }
- for (s = 0; s < n - 1; s++) a += r[s];
- return a + i;
- };
- t.prototype.getSecondsInDay = function(t) {
- return 3600 * t.getHours() + 60 * t.getMinutes() + t.getSeconds();
- };
- t.prototype.getNowDayString = function(t, e) {
- void 0 === e && (e = "-");
- var n = t ? new Date(t) : new Date();
- return n.getFullYear() + e + (n.getMonth() + 1) + e + n.getDate();
- };
- t.prototype.WaitForSeconds = function(t) {
- return new Promise(function(e) {
- setTimeout(function() {
- return e();
- }, 1e3 * t);
- });
- };
- return t;
- }();
- n.default = o;
- cc._RF.pop();
- }, {} ],
- TimerSystem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "70a463CEglFy49OGQWrGdoc", "TimerSystem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- });
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.Timer = void 0;
- var a = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.timerArr = [];
- return e;
- }
- e.prototype.startTimer = function() {
- var t = this;
- this.schedule(function() {
- t.runTimer();
- }, 1);
- };
- e.prototype.runTimer = function() {
- for (var t = 0; t < this.timerArr.length; t++) {
- var e = this.timerArr[t], n = e.callBack, o = e.target;
- e.curTime--;
- if (e.curTime <= 0) {
- e.curTime = e.totalTime;
- n.call(o);
- }
- }
- };
- e.prototype.addTimer = function(t, e, n) {
- if (!this.ifHasSameTimer(e, n)) {
- var o = new r();
- o.curTime = t;
- o.totalTime = t;
- o.callBack = e;
- o.target = n;
- this.timerArr.push(o);
- }
- };
- e.prototype.ifHasSameTimer = function(t, e) {
- return !!this.getTimer(t, e);
- };
- e.prototype.getTimer = function(t, e) {
- for (var n = this.timerArr.length - 1; n >= 0; n--) {
- var o = this.timerArr[n];
- if (o.callBack == t && o.target == e) return o;
- }
- return null;
- };
- e.prototype.removeTimer = function(t, e) {
- for (var n = this.timerArr.length - 1; n >= 0; n--) {
- var o = this.timerArr[n];
- if (o.callBack == t && o.target == e) {
- this.timerArr.splice(n, 1);
- return;
- }
- }
- };
- return e;
- }(cc.Component);
- n.default = a;
- var r = function() {
- this.curTime = 0;
- this.totalTime = 0;
- this.callBack = null;
- this.target = null;
- };
- n.Timer = r;
- cc._RF.pop();
- }, {} ],
- TipItemUI: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "02682tO1G9JJJVckOx01zuP", "TipItemUI");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.node_bg = null;
- e.label_tip = null;
- return e;
- }
- e.prototype.start = function() {};
- e.prototype.init = function(t) {
- var e = this;
- this.node.y = 320;
- this.node.opacity = 255;
- this.label_tip.string = t;
- cc.tween(this.node).to(.5, {
- y: 420
- }).delay(.5).to(.5, {
- opacity: 0
- }).call(function() {
- r.default.Inst.recyclePoolPrefab(r.NODEPOOLPREFABTYPE.TipItemUI, e.node);
- }).start();
- };
- a([ l(cc.Node) ], e.prototype, "node_bg", void 0);
- a([ l(cc.Label) ], e.prototype, "label_tip", void 0);
- return a([ s ], e);
- }(cc.Component);
- n.default = u;
- cc._RF.pop();
- }, {
- "../../mgr/PoolMgr": "PoolMgr"
- } ],
- TipSpriteItemUI: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "811eeoHLilJeKK80hcZnI05", "TipSpriteItemUI");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = t("../../mgr/PoolMgr"), c = cc._decorator, s = c.ccclass, l = c.property, u = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.spr_tipSpr = null;
- return e;
- }
- e.prototype.start = function() {};
- e.prototype.init = function(t) {
- var e = this;
- this.spr_tipSpr.node.active = !1;
- var n = "game/texture/tip/" + t;
- mk.loader.load(n, cc.SpriteFrame).then(function(t) {
- e.spr_tipSpr.spriteFrame = t;
- e.spr_tipSpr.node.active = !0;
- e.move();
- });
- };
- e.prototype.move = function() {
- var t = this;
- this.node.scaleX = this.node.scaleY = 0;
- cc.tween(this.node).to(.5, {
- scale: 1
- }, {
- easing: "backOut"
- }).delay(.5).to(.1, {
- scale: 1.2
- }).to(.2, {
- scale: 0
- }).call(function() {
- r.default.Inst.recyclePoolPrefab(r.NODEPOOLPREFABTYPE.TipSpriteItemUI, t.node);
- }).start();
- };
- a([ l(cc.Sprite) ], e.prototype, "spr_tipSpr", void 0);
- return a([ s ], e);
- }(cc.Component);
- n.default = u;
- cc._RF.pop();
- }, {
- "../../mgr/PoolMgr": "PoolMgr"
- } ],
- TipSystem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "5b808c7i9JMAJCR/OQTRrlG", "TipSystem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.tween_time = 1;
- e.src_x = 0;
- e.src_y = 0;
- e.tar_x = 0;
- e.tar_y = 200;
- e.bg_opacity = 40;
- e.bg_color = new cc.Color(200, 200, 200);
- e.tip_color = new cc.Color(255, 255, 255);
- e.tip_size = 40;
- return e;
- }
- e.prototype.onLoad = function() {
- mk.tip = this;
- };
- e.prototype.start = function() {};
- e.prototype.pop = function(t, e) {
- void 0 === e && (e = 0);
- return r(this, void 0, void 0, function() {
- var n, o, i, a;
- return c(this, function(r) {
- switch (r.label) {
- case 0:
- return [ 4, mk.pool.getPrefab("game/prefab/tips") ];
- case 1:
- n = r.sent();
- o = n.getChildByName("bg");
- i = n.getChildByName("lbl");
- (a = i.getComponent(cc.Label)).fontSize = this.tip_size;
- a.string = t;
- o.width = i.width + 20 < 200 ? 200 : i.width + 20;
- n.width = o.width;
- o.height = i.height + 2;
- n.parent = this.node;
- n.x = this.src_x;
- n.y = this.src_y;
- if (0 == e) cc.tween(n).to(this.tween_time, {
- x: this.tar_x,
- y: this.tar_y
- }).call(function() {
- mk.pool.return("tips", n);
- }, this).start(); else {
- this.tween_time = 1;
- n.y = 400;
- this.tar_y = 520;
- cc.tween(n).to(this.tween_time, {
- x: this.tar_x,
- y: this.tar_y
- }).delay(2).call(function() {
- mk.pool.return("tips", n);
- }, this).start();
- }
- return [ 2 ];
- }
- });
- });
- };
- a([ u({
- type: cc.Integer,
- displayName: "飘动时间"
- }) ], e.prototype, "tween_time", void 0);
- a([ u({
- type: cc.Integer,
- displayName: "开始坐标x"
- }) ], e.prototype, "src_x", void 0);
- a([ u({
- type: cc.Integer,
- displayName: "开始坐标y"
- }) ], e.prototype, "src_y", void 0);
- a([ u({
- type: cc.Integer,
- displayName: "目标坐标x"
- }) ], e.prototype, "tar_x", void 0);
- a([ u({
- type: cc.Integer,
- displayName: "目标坐标y"
- }) ], e.prototype, "tar_y", void 0);
- a([ u({
- type: cc.Integer,
- displayName: "背景透明度"
- }) ], e.prototype, "bg_opacity", void 0);
- a([ u({
- displayName: "背景颜色"
- }) ], e.prototype, "bg_color", void 0);
- a([ u({
- displayName: "文本颜色"
- }) ], e.prototype, "tip_color", void 0);
- a([ u({
- type: cc.Integer,
- displayName: "文本字体"
- }) ], e.prototype, "tip_size", void 0);
- return a([ l ], e);
- }(cc.Component);
- n.default = p;
- cc._RF.pop();
- }, {} ],
- TouchHelper: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "207f5IvRwZGGbOudGF4bfk4", "TouchHelper");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.TouchHelper = void 0;
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.canTouch = !0;
- e.onInPolygon = new cc.Component.EventHandler();
- e.onOutPolygon = new cc.Component.EventHandler();
- e.onTouchTap = new cc.Component.EventHandler();
- e.needPolygon = !1;
- e.points = [];
- e.isMoved = !1;
- return e;
- }
- e.prototype.start = function() {
- this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this);
- this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchCancel, this);
- this.node.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this);
- };
- e.prototype.onTouchEnd = function(t) {
- if (this.canTouch && this.needPolygon && this.points.length >= 3) {
- var e = t.getLocation(), n = this.node.convertToNodeSpaceAR(new cc.Vec2(e.x, e.y)), o = this.pointInPoly(n, this.points);
- this.isMoved || (o ? this.canTouch && this.onInPolygon && this.onInPolygon.emit([]) : this.canTouch && this.onOutPolygon && this.onOutPolygon.emit([]));
- }
- this.canTouch && (this.isMoved || this.canTouch && this.onTouchTap && this.onTouchTap.emit([]));
- this.isMoved = !1;
- };
- e.prototype.onTouchMove = function(t) {
- t.getTouches().length > 1 ? this.isMoved = !0 : this.isMoved = cc.Vec2.distance(t.getStartLocation(), t.getLocation()) > 20;
- };
- e.prototype.onTouchCancel = function() {
- this.isMoved = !1;
- };
- e.prototype.pointInPoly = function(t, e) {
- for (var n = !1, o = -1, i = e.length, a = i - 1; ++o < i; a = o) (e[o].y <= t.y && t.y < e[a].y || e[a].y <= t.y && t.y < e[o].y) && t.x < (e[a].x - e[o].x) * (t.y - e[o].y) / (e[a].y - e[o].y) + e[o].x && (n = !n);
- return n;
- };
- a([ s({
- tooltip: "是否可以点击"
- }) ], e.prototype, "canTouch", void 0);
- a([ s({
- tooltip: "在多边形范围内产生点击",
- type: cc.Component.EventHandler
- }) ], e.prototype, "onInPolygon", void 0);
- a([ s({
- tooltip: "在多边形范围外产生点击",
- type: cc.Component.EventHandler
- }) ], e.prototype, "onOutPolygon", void 0);
- a([ s({
- tooltip: "在节点范围内产生点击",
- type: cc.Component.EventHandler
- }) ], e.prototype, "onTouchTap", void 0);
- a([ s({
- tooltip: "是否与需要多边形检查"
- }) ], e.prototype, "needPolygon", void 0);
- a([ s({
- type: [ cc.Vec2 ],
- tooltip: "多边形定点位置信息(局部坐标,至少3个点)"
- }) ], e.prototype, "points", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.TouchHelper = l;
- cc._RF.pop();
- }, {} ],
- TurnableData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "43e37VirRBM1p39LUEjYTSH", "TurnableData");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, r = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.TurnableData = void 0;
- var c = t("../../../mk/data/Data"), s = t("../AdData"), l = t("../GameData"), u = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.requestFinish = !1;
- e.leftTimes = 0;
- return e;
- }
- e.prototype.init = function() {
- this.config = gData.gameData.configs.TurntableCfg;
- this.leftTimes = null == gData.gameData.gameData.turntableTimes ? 0 : gData.gameData.gameData.turntableTimes;
- };
- e.prototype.requestData = function() {
- return a(this, void 0, void 0, function() {
- var t;
- return r(this, function(e) {
- switch (e.label) {
- case 0:
- return [ 4, mk.http.sendData("initialTurntable", {}) ];
- case 1:
- if (0 != (t = e.sent()).errcode) return [ 2 ];
- this.leftTimes = t.data.turntableTimes;
- this.requestFinish = !0;
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.setAdData = function(e) {
- t.prototype.setAdData.call(this, e);
- this.leftTimes = this.leftTimes < 1 ? 0 : this.leftTimes - 1;
- gData.gameData.setProp(l.GameProp.turnable_leftTimes, this.leftTimes);
- };
- e.prototype.draw = function() {
- mk.ad.watchAd(function(t) {
- mk.console.log("watchAD:" + t);
- t && gData.adData.watchVideo(s.AdFun.turntable);
- });
- };
- e.prototype.redPoint = function() {
- return !1;
- };
- return e;
- }(c.Data);
- n.TurnableData = u;
- cc._RF.pop();
- }, {
- "../../../mk/data/Data": "Data",
- "../AdData": "AdData",
- "../GameData": "GameData"
- } ],
- TurnableItem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "2df9fpSWF1G1a/os2Ev7z5Y", "TurnableItem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = cc._decorator, l = s.ccclass, u = s.property, p = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.icon = null;
- e.lbl_name = null;
- return e;
- }
- e.prototype.initData = function(t) {
- return r(this, void 0, void 0, function() {
- var e;
- return c(this, function(n) {
- switch (n.label) {
- case 0:
- e = this.icon;
- return [ 4, mk.loader.load("module/turnable/texture/hb" + t, cc.SpriteFrame) ];
- case 1:
- e.spriteFrame = n.sent();
- this.lbl_name.string = 1 == t ? "少量红包" : 2 == t ? "中量红包" : "大量红包";
- return [ 2 ];
- }
- });
- });
- };
- a([ u(cc.Sprite) ], e.prototype, "icon", void 0);
- a([ u(cc.Label) ], e.prototype, "lbl_name", void 0);
- return a([ l ], e);
- }(cc.Component);
- n.default = p;
- cc._RF.pop();
- }, {} ],
- Turnable: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "c5972Si4H1MMp7ugnferq77", "Turnable");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = t("../../component/BtnClosePanel"), l = t("../../data/AdData"), u = t("../../data/GameData"), p = t("./TurnableItem"), d = cc._decorator, h = d.ccclass, f = d.property, y = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.node_turn = null;
- e.node_items = [];
- e.btn_draw = null;
- e.btn_close = null;
- e.lbl_left = null;
- e.starAni = null;
- e.baozhaAni = null;
- e.endAngle = 0;
- e.startDraw = !1;
- e.slowDis = 720;
- e.slowAngle = 0;
- e.perAdd = 10;
- e.perMinus = 0;
- return e;
- }
- e.prototype.onLoad = function() {
- this.baozhaAni.node.active = !1;
- this.initData();
- };
- e.prototype.initData = function() {
- this.rewardWeights = [ 0, 0, 0 ];
- if (gData.turnable.config) for (var t = 0; t < gData.turnable.config.length; t++) {
- var e = this.node_items[t].getComponent(p.default), n = parseInt(gData.turnable.config[t].type);
- this.rewardWeights[n - 1]++;
- e.initData(n);
- }
- gData.turnable.requestData();
- this.updateLeftTimes();
- };
- e.prototype.clickDraw = function() {
- if (gData.turnable.leftTimes > 0) {
- mk.ad.videoAdType = u.VideoAdType.Turntable;
- mk.ad.watchAd(function(t) {
- mk.console.log("watchAD:" + t);
- t && gData.adData.watchVideo(l.AdFun.turntable);
- });
- }
- };
- e.prototype.play = function(t) {
- return r(this, void 0, void 0, function() {
- var e, n, o;
- return c(this, function(i) {
- switch (i.label) {
- case 0:
- e = this;
- return [ 4, mk.audio.playEffect("turnableplay", !0) ];
- case 1:
- e.audioId = i.sent();
- this.btn_close.getComponent(s.default).block_click = !0;
- this.perAdd = 10;
- this.node_turn.angle += 1800;
- n = 0;
- o = 0;
- for (;o < this.rewardWeights.length - 1; ) {
- if (!(o < t - 1)) {
- n += Math.floor(Math.random() * this.rewardWeights[o]);
- break;
- }
- n += this.rewardWeights[o];
- o++;
- }
- this.endAngle = -60 * n;
- this.slowAngle = this.endAngle + this.slowDis;
- this.perMinus = this.perAdd / (this.slowDis / (.5 * this.perAdd));
- this.startDraw = !0;
- this.starAni.resetSystem();
- this.starAni.node.active = !0;
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.playOver = function() {
- return r(this, void 0, void 0, function() {
- return c(this, function(t) {
- switch (t.label) {
- case 0:
- mk.audio.stopEffect(this.audioId);
- this.btn_close.getComponent(s.default).block_click = !1;
- mk.audio.playEffect("turnplateDrawEnd");
- this.updateLeftTimes();
- return [ 4, mk.time.WaitForSeconds(.7) ];
- case 1:
- t.sent();
- mk.ui.openPanel("module/reward/reward");
- return [ 2 ];
- }
- });
- });
- };
- e.prototype.updateLeftTimes = function() {
- this.lbl_left.string = "剩余:<color=#FFED99>" + gData.turnable.leftTimes + "</color>次";
- };
- e.prototype.update = function() {
- if (gData.turnable.requestFinish) {
- this.updateLeftTimes();
- gData.turnable.requestFinish = !1;
- }
- if (gData.turnable.adData) {
- if (gData.turnable.adData && gData.turnable.adData.videoRedMoney) {
- var t = gData.turnable.adData.videoRedMoney.redMoneyType;
- this.play(t);
- gData.reward.data = gData.turnable.adData.videoRedMoney.videoRewardList;
- }
- gData.turnable.adData = null;
- }
- if (this.startDraw) {
- this.node_turn.angle -= this.perAdd;
- this.node_turn.angle <= this.slowAngle && (this.perAdd <= 4 * this.perMinus ? this.perAdd -= .01 * this.perMinus : this.perAdd -= this.perMinus);
- if (this.node_turn.angle <= this.endAngle) {
- this.startDraw = !1;
- this.starAni.node.active = !1;
- this.baozhaAni.node.active = !0;
- this.baozhaAni.setAnimation(0, "animation", !1);
- this.playOver();
- }
- }
- };
- e.prototype.onDestroy = function() {};
- e.prototype.onClickClose = function() {
- mk.ad.checkShowInterByChance();
- };
- a([ f(cc.Node) ], e.prototype, "node_turn", void 0);
- a([ f(cc.Node) ], e.prototype, "node_items", void 0);
- a([ f(cc.Node) ], e.prototype, "btn_draw", void 0);
- a([ f(cc.Sprite) ], e.prototype, "btn_close", void 0);
- a([ f(cc.RichText) ], e.prototype, "lbl_left", void 0);
- a([ f(cc.ParticleSystem) ], e.prototype, "starAni", void 0);
- a([ f(sp.Skeleton) ], e.prototype, "baozhaAni", void 0);
- return a([ h ], e);
- }(cc.Component);
- n.default = y;
- cc._RF.pop();
- }, {
- "../../component/BtnClosePanel": "BtnClosePanel",
- "../../data/AdData": "AdData",
- "../../data/GameData": "GameData",
- "./TurnableItem": "TurnableItem"
- } ],
- TweenCast: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "289ef0dnVFATL0DOb4NWYwm", "TweenCast");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.rich_text = null;
- e.display_time = 5;
- e.move_speed = 3;
- e.wait_time = 10;
- e.names = [ "拒绝寂寞", "孽緣", "祗為与妳相爱", "羙男", "浅蓝", "腊笔小东", "卡布奇诺", "苊狠幸福", "埋葬回忆", "早已该放手", "白兎", "豿疍疍", "宿命", "渗透的葬礼", "全都是虚假", "俄侑伱-直", "隱裑", "你不配我", "非主流网名", "剧终", "如果沵走了", "續雪", "默默然", "大白痴", "衮开", "越长大越不安", "寶疍疍", "爱笑的眼睛", "暧昧", "午夜", "我继续坚强", "冷温柔", "蹲在脚落", "喲妞你赞", "满足沵", "泪流", "听风在唱歌", "假装", "海岸线丶", "流年换ノ", "细数惭愧", "寂寞别说爱╮", "疯男人", "Darling", "伤狠痛", "留的住我不要", "静静的思念", "涐愿化作飞蛾", "欲", "提苏米拉", "夜凄凉", "一种矜持", "哼,涐呸", "贪婪", "一败涂地", "美如此多娇", "暧昧已落幕", "地平线" ];
- e.moneys = [ .5, .8, 1, 2, 5, 10, 20, 100 ];
- e.weights = [ 40, 20, 10, 10, 10, 5, 3, 2 ];
- return e;
- }
- e.prototype.getContent = function() {
- var t = this.names.length, e = Math.floor(mk.math.random(0, t, !1)), n = this.names[e];
- t = this.moneys.length;
- e = mk.math.randomByWeight(this.weights, 100, !1);
- return "<outline color=#000000 width=1><color=#19F7FF>" + n + "</color>成功提现了<color=#FCE300>" + this.moneys[e] + "元</color></outline>";
- };
- e.prototype.onLoad = function() {
- this.play();
- };
- e.prototype.play = function() {
- this.reset();
- cc.tween(this.node).delay(this.wait_time).call(this.rickPlay.bind(this)).start();
- };
- e.prototype.rickPlay = function() {
- this.node.active = !0;
- cc.tween(this.rich_text.node).to(this.move_speed, {
- x: 16
- }).delay(this.display_time).to(this.move_speed, {
- x: -450
- }).call(this.play.bind(this)).start();
- };
- e.prototype.reset = function() {
- this.node.active = !1;
- this.rich_text.node.x = 450;
- this.rich_text.string = this.getContent();
- };
- a([ s({
- type: cc.RichText,
- displayName: "公告内容"
- }) ], e.prototype, "rich_text", void 0);
- a([ s({
- displayName: "显示时间"
- }) ], e.prototype, "display_time", void 0);
- a([ s({
- displayName: "进出速度"
- }) ], e.prototype, "move_speed", void 0);
- a([ s({
- displayName: "等待时间"
- }) ], e.prototype, "wait_time", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- TweenEasing: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "7d939H2Xm5K75ITQ9wq0tFT", "TweenEasing");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.TweenEasing = void 0;
- (function(t) {
- t[t.linear = 0] = "linear";
- t[t.smooth = 1] = "smooth";
- t[t.fade = 2] = "fade";
- t[t.quadIn = 3] = "quadIn";
- t[t.quadOut = 4] = "quadOut";
- t[t.quadInOut = 5] = "quadInOut";
- t[t.quadOutIn = 6] = "quadOutIn";
- t[t.cubicIn = 7] = "cubicIn";
- t[t.cubicOut = 8] = "cubicOut";
- t[t.cubicInOut = 9] = "cubicInOut";
- t[t.cubicOutIn = 10] = "cubicOutIn";
- t[t.quartIn = 11] = "quartIn";
- t[t.quartOut = 12] = "quartOut";
- t[t.quartInOut = 13] = "quartInOut";
- t[t.quartOutIn = 14] = "quartOutIn";
- t[t.quintIn = 15] = "quintIn";
- t[t.quintOut = 16] = "quintOut";
- t[t.quintInOut = 17] = "quintInOut";
- t[t.quintOutIn = 18] = "quintOutIn";
- t[t.sineIn = 19] = "sineIn";
- t[t.sineOut = 20] = "sineOut";
- t[t.sineInOut = 21] = "sineInOut";
- t[t.sineOutIn = 22] = "sineOutIn";
- t[t.expoIn = 23] = "expoIn";
- t[t.expoOut = 24] = "expoOut";
- t[t.expoInOut = 25] = "expoInOut";
- t[t.expoOutIn = 26] = "expoOutIn";
- t[t.circIn = 27] = "circIn";
- t[t.circOut = 28] = "circOut";
- t[t.circInOut = 29] = "circInOut";
- t[t.circOutIn = 30] = "circOutIn";
- t[t.elasticIn = 31] = "elasticIn";
- t[t.elasticOut = 32] = "elasticOut";
- t[t.elasticInOut = 33] = "elasticInOut";
- t[t.elasticOutIn = 34] = "elasticOutIn";
- t[t.backIn = 35] = "backIn";
- t[t.backOut = 36] = "backOut";
- t[t.backInOut = 37] = "backInOut";
- t[t.backOutIn = 38] = "backOutIn";
- t[t.bounceIn = 39] = "bounceIn";
- t[t.bounceOut = 40] = "bounceOut";
- t[t.bounceInOut = 41] = "bounceInOut";
- t[t.bounceOutIn = 42] = "bounceOutIn";
- })(n.TweenEasing || (n.TweenEasing = {}));
- cc._RF.pop();
- }, {} ],
- TweenUtil: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "6679cLfL3BDsJz4U/E3dV8e", "TweenUtil");
- var o = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var i, a = cc._decorator, r = a.ccclass, c = (a.property, function() {
- function t() {
- this.easing = i;
- }
- t.prototype.scale = function(t, e, n, o, i, a) {
- void 0 === e && (e = .15);
- void 0 === n && (n = 0);
- void 0 === o && (o = 1);
- t.scale = n;
- var r = cc.tween().to(e, {
- scale: o
- }, {
- easing: a
- }), c = cc.tween().call(function() {
- "function" == typeof i && i();
- });
- cc.tween(t).then(r).then(c).start();
- };
- t.prototype.scaleX = function(t, e, n, o, i, a) {
- void 0 === e && (e = .15);
- void 0 === n && (n = 0);
- void 0 === o && (o = 1);
- t.scaleX = n;
- var r = cc.tween().to(e, {
- scaleX: o
- }, {
- easing: a
- }), c = cc.tween().call(function() {
- "function" == typeof i && i();
- });
- cc.tween(t).then(r).then(c).start();
- };
- t.prototype.scaleParallelMove = function(t, e, n, o, i, a) {
- void 0 === e && (e = .15);
- void 0 === n && (n = 0);
- void 0 === o && (o = 1);
- void 0 === i && (i = cc.Vec2.ZERO);
- t.scale = n;
- var r = cc.tween().to(e, {
- scale: o
- }), c = cc.tween().to(e, {
- position: new cc.Vec3(i.x, i.y, 0)
- }), s = cc.tween().call(function() {
- "function" == typeof a && a();
- }), l = cc.tween().parallel(r, c);
- cc.tween(t).then(l).then(s).start();
- };
- t.prototype.move = function(t, e, n, o, i, a) {
- void 0 === e && (e = .15);
- void 0 === n && (n = cc.Vec2.ZERO);
- void 0 === o && (o = cc.Vec2.ZERO);
- t.setPosition(n);
- var r = cc.tween().to(e, {
- position: new cc.Vec3(o.x, o.y, 0)
- }, {
- easing: a
- }), c = cc.tween().call(function() {
- "function" == typeof i && i();
- });
- cc.tween(t).then(r).then(c).start();
- };
- return o([ r ], t);
- }());
- n.default = c;
- (function(t) {
- t[t.linear = 0] = "linear";
- t[t.smooth = 1] = "smooth";
- t[t.fade = 2] = "fade";
- t[t.quadIn = 3] = "quadIn";
- t[t.quadOut = 4] = "quadOut";
- t[t.quadInOut = 5] = "quadInOut";
- t[t.quadOutIn = 6] = "quadOutIn";
- t[t.cubicIn = 7] = "cubicIn";
- t[t.cubicOut = 8] = "cubicOut";
- t[t.cubicInOut = 9] = "cubicInOut";
- t[t.cubicOutIn = 10] = "cubicOutIn";
- t[t.quartIn = 11] = "quartIn";
- t[t.quartOut = 12] = "quartOut";
- t[t.quartInOut = 13] = "quartInOut";
- t[t.quartOutIn = 14] = "quartOutIn";
- t[t.quintIn = 15] = "quintIn";
- t[t.quintOut = 16] = "quintOut";
- t[t.quintInOut = 17] = "quintInOut";
- t[t.quintOutIn = 18] = "quintOutIn";
- t[t.sineIn = 19] = "sineIn";
- t[t.sineOut = 20] = "sineOut";
- t[t.sineInOut = 21] = "sineInOut";
- t[t.sineOutIn = 22] = "sineOutIn";
- t[t.expoIn = 23] = "expoIn";
- t[t.expoOut = 24] = "expoOut";
- t[t.expoInOut = 25] = "expoInOut";
- t[t.expoOutIn = 26] = "expoOutIn";
- t[t.circIn = 27] = "circIn";
- t[t.circOut = 28] = "circOut";
- t[t.circInOut = 29] = "circInOut";
- t[t.circOutIn = 30] = "circOutIn";
- t[t.elasticIn = 31] = "elasticIn";
- t[t.elasticOut = 32] = "elasticOut";
- t[t.elasticInOut = 33] = "elasticInOut";
- t[t.elasticOutIn = 34] = "elasticOutIn";
- t[t.backIn = 35] = "backIn";
- t[t.backOut = 36] = "backOut";
- t[t.backInOut = 37] = "backInOut";
- t[t.backOutIn = 38] = "backOutIn";
- t[t.bounceIn = 39] = "bounceIn";
- t[t.bounceOut = 40] = "bounceOut";
- t[t.bounceInOut = 41] = "bounceInOut";
- t[t.bounceOutIn = 42] = "bounceOutIn";
- })(i || (i = {}));
- cc._RF.pop();
- }, {} ],
- UIBG: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "58495/rJOBNGoxELFSp8G2a", "UIBG");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.color = new cc.Color(0, 0, 0, 180);
- e.design_block_node = null;
- e.bClickClose = !1;
- e.onComplete = [];
- e.node_bg = null;
- return e;
- }
- e.prototype.onLoad = function() {
- this.initBG();
- };
- e.prototype.initBG = function() {
- var t = mk.game.getWinSize().width, e = mk.game.getWinSize().height;
- this.node_bg = this.drawColorRect(new cc.Rect(-t / 2, -e / 2, t, e));
- this.node_bg.parent = this.node;
- this.node_bg.zIndex = -1e4;
- this.node_bg.addComponent(cc.Button);
- this.node_bg.on("click", this.initClick, this);
- this.design_block_node && this.design_block_node.addComponent(cc.BlockInputEvents);
- };
- e.prototype.initClick = function() {
- this.bClickClose && this.onClickClose();
- };
- e.prototype.onClickClose = function() {
- mk.ui.closePanel(this.node.name);
- for (var t = this.onComplete.length, e = 0; e < t; e++) this.onComplete[e].handler && this.onComplete[e].emit([]);
- };
- e.prototype.drawColorRect = function(t) {
- var e = new cc.Node("colorRect");
- e.setContentSize(t);
- var n = e.addComponent(cc.Graphics);
- n.fillColor = this.color;
- n.fillRect(t.x, t.y, t.width, t.height);
- return e;
- };
- a([ s({
- displayName: "背景颜色"
- }) ], e.prototype, "color", void 0);
- a([ s({
- displayName: "自定义屏蔽节点",
- type: cc.Node
- }) ], e.prototype, "design_block_node", void 0);
- a([ s({
- displayName: "点击关闭"
- }) ], e.prototype, "bClickClose", void 0);
- a([ s({
- displayName: "完成回调",
- tooltip: "面板打开完成后触发",
- type: cc.Component.EventHandler
- }) ], e.prototype, "onComplete", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- UISystem: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "d0ea1+IO0BKJoZMInS6d9dy", "UISystem");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.OpenActionType = void 0;
- var r, c = cc._decorator, s = c.ccclass, l = (c.property, function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.panelParent = null;
- e.isPanelOpening = !1;
- e.isPanelClosing = !1;
- e.curOnPanelDic = {};
- e.lastOpenPanelName = "";
- return e;
- }
- e.prototype.onLoad = function() {
- mk.ui = this;
- };
- e.prototype.start = function() {
- this.panelParent || (this.panelParent = this.node);
- };
- e.prototype.openPanel = function(t, e, n) {
- void 0 === e && (e = r.normal);
- void 0 === n && (n = null);
- var o = t.split("/"), i = o[o.length - 1], a = this;
- if (!a.isPanelOpening && !a.getCurOnPanel(i)) {
- a.isPanelOpening = !0;
- return new Promise(function(o, c) {
- mk.loader.load("" + t, cc.Prefab).then(function(t) {
- var c = cc.instantiate(t);
- a.curOnPanelDic[i] = c;
- a.panelParent && (a.panelParent = a.node);
- if (a.panelParent) {
- n ? c.parent = n : a.panelParent.addChild(c);
- switch (e) {
- case r.normal:
- break;
- case r.closeLast:
- a.lastOpenPanelName && a.closePanel(a.lastOpenPanelName);
- break;
- case r.closeOther:
- for (var s = Object.keys(a.curOnPanelDic).filter(function() {}), l = 0; l < s.length; l++) {
- var u = s[l];
- a.closePanel(u);
- }
- }
- a.lastOpenPanelName = i;
- o(c);
- a.isPanelOpening = !1;
- } else {
- console.error("[UISystem] UI的父节点panelParent为null,请检查脚本挂载情况");
- a.isPanelOpening = !1;
- }
- }).catch(function(t) {
- a.isPanelOpening = !1;
- c(t);
- });
- });
- }
- };
- e.prototype.getCurOnPanel = function(t) {
- return this.curOnPanelDic[t];
- };
- e.prototype.closePanel = function(t, e) {
- void 0 === e && (e = null);
- if (!this.isPanelClosing && this.getCurOnPanel(t)) {
- this.isPanelClosing = !0;
- var n = this.getCurOnPanel(t), o = n.getComponent("EffectOpenAndClose");
- o ? o.hideEffect(this.destroyNode.bind(this, n, t, e)) : this.destroyNode(n, t, e);
- mk.event.emit("close-panel", t);
- }
- };
- e.prototype.destroyNode = function(t, e, n) {
- void 0 === n && (n = null);
- t.destroy();
- delete this.curOnPanelDic[e];
- this.isPanelClosing = !1;
- n && n();
- };
- e.prototype.closeAllUI = function(t) {
- void 0 === t && (t = [ "game", "guide" ]);
- for (var e in this.curOnPanelDic) if (!(t && t.length > 0 && -1 != t.indexOf(e))) {
- var n = this.getCurOnPanel(e), o = n.getComponent("EffectOpenAndClose");
- o ? o.hideEffect(this.destroyNode.bind(this, n, e)) : this.destroyNode(n, e);
- mk.event.emit("close-panel", e);
- }
- this.isPanelClosing = !1;
- mk.ad.destroyNativeAd();
- mk.ad.destoryBanner();
- };
- return a([ s ], e);
- }(cc.Component));
- n.default = l;
- (function(t) {
- t[t.normal = 0] = "normal";
- t[t.closeOther = 1] = "closeOther";
- t[t.closeLast = 2] = "closeLast";
- })(r = n.OpenActionType || (n.OpenActionType = {}));
- cc._RF.pop();
- }, {} ],
- UITween: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "a20d9E+N7FBiIV7z1whuT6J", "UITween");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.UITween = n.TweenData = n.PropsData = void 0;
- var r = t("./TweenEasing"), c = cc._decorator, s = c.ccclass, l = c.property, u = c.executeInEditMode, p = c.playOnFocus, d = function() {
- function t() {
- this.position = cc.Vec2.ZERO;
- this.angle = 0;
- this.scale = 1;
- }
- a([ l({
- displayName: "坐标"
- }) ], t.prototype, "position", void 0);
- a([ l({
- displayName: "旋转"
- }) ], t.prototype, "angle", void 0);
- a([ l({
- displayName: "缩放"
- }) ], t.prototype, "scale", void 0);
- return a([ s("PropsData") ], t);
- }();
- n.PropsData = d;
- var h = function() {
- function t() {
- this.propsData = new d();
- this.duration = .3;
- this.delay = 0;
- this.isOffset = !1;
- this.onComplete = new cc.Component.EventHandler();
- this.onStart = new cc.Component.EventHandler();
- this.onUpdate = new cc.Component.EventHandler();
- }
- a([ l({
- displayName: "属性数据",
- type: d
- }) ], t.prototype, "propsData", void 0);
- a([ l({
- displayName: "持续时间",
- tooltip: "单位:秒"
- }) ], t.prototype, "duration", void 0);
- a([ l({
- displayName: "延迟时间",
- tooltip: "单位:秒"
- }) ], t.prototype, "delay", void 0);
- a([ l({
- displayName: "是否为差值"
- }) ], t.prototype, "isOffset", void 0);
- a([ l({
- displayName: "完成回调",
- tooltip: "缓动完成时触发",
- type: cc.Component.EventHandler
- }) ], t.prototype, "onComplete", void 0);
- a([ l({
- displayName: "开始回调",
- tooltip: "缓动启动时触发",
- type: cc.Component.EventHandler
- }) ], t.prototype, "onStart", void 0);
- a([ l({
- displayName: "过程回调",
- tooltip: "缓动更新时触发",
- type: cc.Component.EventHandler
- }) ], t.prototype, "onUpdate", void 0);
- return a([ s("TweenData") ], t);
- }();
- n.TweenData = h;
- var f = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.fromData = new d();
- e.targetData = [];
- e.target = null;
- e.tweenEasing = r.TweenEasing.linear;
- e.repeat = 1;
- e.onOneRepeatComplete = new cc.Component.EventHandler();
- e.playOnLoad = !1;
- e._edit_play = !1;
- e.edit_playing = !1;
- return e;
- }
- Object.defineProperty(e.prototype, "edit_play", {
- get: function() {
- if (this._edit_play && !this.edit_playing) {
- this.edit_playing = !0;
- this.play();
- }
- return this._edit_play;
- },
- set: function(t) {
- this._edit_play = t;
- this.target && t && this.target.stopAllActions();
- t || (this.edit_playing = !1);
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.start = function() {
- !this.target && (this.target = this.node);
- this.target = this.target || this.node;
- this.currentRepeat = this.repeat;
- this.playOnLoad && this.play();
- };
- e.prototype.play = function() {
- if (0 == this.repeat) {
- this.t = cc.tween(this.target);
- this.readyPlay();
- this.t = this.t.call(this.play.bind(this));
- this.t.start();
- } else if (this.currentRepeat) {
- this.t = cc.tween(this.target);
- this.readyPlay();
- this.t = this.t.call(this.play.bind(this));
- this.currentRepeat--;
- this.t.start();
- } else this.t = null;
- };
- e.prototype.readyPlay = function() {
- var t = this, e = this;
- if (this.fromData) {
- this.node.setPosition(this.fromData.position.clone());
- this.node.scale = this.fromData.scale;
- this.node.angle = this.fromData.angle;
- }
- if (this.targetData.length) for (var n = function(e) {
- var n = o.targetData[e];
- 0 != n.delay && (o.t = o.t.delay(n.delay));
- var i = {
- position: n.propsData.position,
- scale: n.propsData.scale,
- angle: n.propsData.angle
- };
- if (n.isOffset) {
- i.position = o.node.getPosition().add(n.propsData.position);
- i.scale = o.node.scale + n.propsData.scale;
- i.angle = o.node.angle + n.propsData.angle;
- }
- o.t = o.t.to(n.duration, i, {
- easing: r.TweenEasing[o.tweenEasing],
- onComplete: function(e) {
- n.onComplete && n.onComplete.emit([ e ]);
- t.edit_playing = !1;
- t._edit_play = !1;
- },
- onStart: function(t) {
- n.onStart && n.onStart.emit([ t ]);
- },
- onUpdate: function(t, e) {
- n.onUpdate && n.onUpdate.emit([ t, e ]);
- }
- });
- }, o = this, i = 0; i < this.targetData.length; i++) n(i);
- this.onOneRepeatComplete && (this.t = this.t.call(function() {
- e.onOneRepeatComplete.emit([ t, t.t ]);
- }));
- };
- a([ l({
- displayName: "节点初始属性",
- type: d
- }) ], e.prototype, "fromData", void 0);
- a([ l({
- displayName: "节点目标属性",
- type: h
- }) ], e.prototype, "targetData", void 0);
- a([ l({
- displayName: "缓动节点",
- tooltip: "要播放缓动动画的目标,不填则是当前节点",
- type: cc.Node
- }) ], e.prototype, "target", void 0);
- a([ l({
- displayName: "缓动效果",
- type: cc.Enum(r.TweenEasing)
- }) ], e.prototype, "tweenEasing", void 0);
- a([ l({
- displayName: "执行次数",
- tooltip: "为0则一直重复执行"
- }) ], e.prototype, "repeat", void 0);
- a([ l({
- displayName: "单次完成回调",
- tooltip: "单次缓动序列执行完毕时触发",
- type: cc.Component.EventHandler
- }) ], e.prototype, "onOneRepeatComplete", void 0);
- a([ l({
- displayName: "自动播放"
- }) ], e.prototype, "playOnLoad", void 0);
- a([ l({
- displayName: "编辑器预览"
- }) ], e.prototype, "edit_play", null);
- return a([ s, u(), p() ], e);
- }(cc.Component);
- n.UITween = f;
- cc._RF.pop();
- }, {
- "./TweenEasing": "TweenEasing"
- } ],
- Util: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "8b634eO2UZCOZzYnNvULwu+", "Util");
- var o = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var i = cc._decorator, a = i.ccclass, r = (i.property, function() {
- function t() {}
- e = t;
- t.Shuffle = function(t) {
- for (var e = t.length, n = e - 1; n >= 0; n--) {
- var o = Math.floor(Math.random() * e), i = t[n];
- t[n] = t[o];
- t[o] = i;
- }
- return t;
- };
- t.cutStr = function(t, e) {
- var n, o = 0, i = "";
- n = t.length;
- for (var a = 0; a < n; a++) {
- var r = t.charAt(a);
- o++;
- escape(r).length > 4 && o++;
- i = i.concat(r);
- if (o >= e) return i.concat("...");
- }
- if (o < e) return t;
- };
- t.rnd = function(t, e) {
- return Math.floor(Math.random() * (e - t + 1) + t);
- };
- t.has = function(t, n) {
- return e._hasOwnProperty.call(t, n);
- };
- t.defaultCompare = function(t, e) {
- return t < e ? -1 : t === e ? 0 : 1;
- };
- t.objSortByKey = function(t, e) {
- t.length ? t.sort(function(t, n) {
- var o = t[e], i = n[e];
- return o < i ? -1 : o === i ? 0 : 1;
- }) : mk.console.log("该对象不是数组或者元素个数为零");
- };
- t.defaultToString = function(t) {
- return null === t ? "COLLECTION_NULL" : e.isUndefined(t) ? "COLLECTION_UNDEFINED" : e.isString(t) ? "$s " + t : "$o " + t.toString();
- };
- t.makeString = function(t, n) {
- void 0 === n && (n = ",");
- if (null === t) return "COLLECTION_NULL";
- if (e.isUndefined(t)) return "COLLECTION_UNDEFINED";
- if (e.isString(t)) return t.toString();
- var o = "{", i = !0;
- for (var a in t) if (e.has(t, a)) {
- i ? i = !1 : o += n;
- o = o + a + ":" + t[a];
- }
- return o + "}";
- };
- t.isFunction = function(t) {
- return "function" == typeof t;
- };
- t.isUndefined = function(t) {
- return "undefined" == typeof t;
- };
- t.isString = function(t) {
- return "[object String]" === Object.prototype.toString.call(t);
- };
- t.ParseTime2Format = function(t, e) {
- void 0 === e && (e = "h:m:s");
- var n = Math.floor(t / 24 / 3600), o = Math.floor(t / 3600 % 24), i = Math.floor(t % 3600 / 60), a = t % 3600 % 60;
- function r(t) {
- var e = t.toString();
- t < 10 && (e = "0" + t);
- return e;
- }
- -1 != e.indexOf("d") ? e = e.replace(/d/g, r(n)) : o += 24 * n;
- -1 != e.indexOf("h") ? e = e.replace(/h/g, r(o)) : i += 60 * o;
- -1 != e.indexOf("m") ? e = e.replace(/m/g, r(i)) : -1 != e.indexOf("h") ? a += 60 * i : a = t;
- -1 != e.indexOf("s") && (e = e.replace(/s/g, r(a)));
- return e;
- };
- t.countHuBetweenToPos = function(t, e) {
- return Math.atan2(e.y - t.y, e.x - t.x);
- };
- t.parseTimestamp = function(t) {
- return (t = new Date(t)).getFullYear() + "-" + (t.getMonth() + 1 < 10 ? "0" + (t.getMonth() + 1) : t.getMonth() + 1) + "-" + (t.getDate() < 10 ? "0" + t.getDate() : t.getDate());
- };
- t.timestampToTime = function(t) {
- var e = new Date(1e3 * t);
- return e.getFullYear() + "." + (e.getMonth() + 1 < 10 ? "0" + (e.getMonth() + 1) : e.getMonth() + 1) + "." + (e.getDate() < 10 ? "0" + e.getDate() : e.getDate()) + " " + (e.getHours() < 10 ? "0" + e.getHours() : e.getHours()) + ":" + (e.getMinutes() < 10 ? "0" + e.getMinutes() : e.getMinutes()) + ":" + (e.getSeconds() < 10 ? "0" + e.getSeconds() : e.getSeconds());
- };
- t.numberFixed = function(t, e) {
- return Number(t.toFixed(e));
- };
- t.versionCompareHandle = function(t, e) {
- console.log("JS Custom Version Compare: version A is " + t + ", version B is " + e);
- for (var n = t.split("."), o = e.split("."), i = 0; i < n.length; ++i) {
- var a = parseInt(n[i]), r = parseInt(o[i] || 0);
- if (a !== r) return a - r;
- }
- return o.length > n.length ? -1 : 0;
- };
- var e;
- t._hasOwnProperty = Object.prototype.hasOwnProperty;
- return e = o([ a ], t);
- }());
- n.default = r;
- cc._RF.pop();
- }, {} ],
- VideoNode: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "67f8fl/rQBNWohIi2HJ73Cg", "VideoNode");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.videoPlayer = null;
- return e;
- }
- e.prototype.onLoad = function() {};
- e.prototype.start = function() {
- this.videoPlayer.resourceType = cc.VideoPlayer.ResourceType.LOCAL;
- var t;
- t = 1 == gData.redCodeData.teachVideoType ? "video/AriesGameClub" : "video/Redeem";
- this.playVideo(t);
- };
- e.prototype.playVideo = function(t) {
- var e = this;
- cc.loader.loadRes(t, cc.Asset, function(t, n) {
- e.videoPlayer.clip = n;
- e.scheduleOnce(function() {
- e.videoPlayer.play();
- mk.audio.setPauseMusic();
- }, 1);
- });
- };
- a([ s(cc.VideoPlayer) ], e.prototype, "videoPlayer", void 0);
- return a([ c ], e);
- }(cc.Component);
- n.default = l;
- cc._RF.pop();
- }, {} ],
- WechatData: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "0aab3VQlrZMjrgZBNpwRrMu", "WechatData");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.WechatData = void 0;
- n.WechatData = function() {
- this.ifAuth = !1;
- this.code = null;
- this.unionid = "123456789";
- this.nickName = "点我授权提现";
- this.avatar = "";
- this.shareSuccess = !1;
- };
- cc._RF.pop();
- }, {} ],
- ZPathFalling: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "082f6uNVupAbqC0Fkz1/TCB", "ZPathFalling");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var r = cc._decorator, c = r.ccclass, s = r.property, l = r.executeInEditMode, u = r.playOnFocus, p = function(t) {
- i(e, t);
- function e() {
- var e = null !== t && t.apply(this, arguments) || this;
- e.play_on_load = !0;
- e.onComplete = new cc.Component.EventHandler();
- e._edit_play = !1;
- e.edit_playing = !1;
- return e;
- }
- Object.defineProperty(e.prototype, "edit_play", {
- get: function() {
- if (this._edit_play && !this.edit_playing) {
- this.edit_playing = !0;
- this.play();
- }
- return this._edit_play;
- },
- set: function(t) {
- this._edit_play = t;
- t || this.stop();
- },
- enumerable: !1,
- configurable: !0
- });
- e.prototype.onLoad = function() {};
- e.prototype.start = function() {
- this.play_on_load && this.play();
- };
- e.prototype.play = function() {
- var t = this, e = this.node.getPosition(), n = this.node.getPosition(), o = this.node.getPosition();
- if (this.node.x >= 0) {
- e.x -= 3 * this.node.width;
- n.x -= 1 * this.node.width;
- o.x -= 2 * this.node.width;
- } else {
- e.x += 3 * this.node.width;
- n.x += 1 * this.node.width;
- o.x += 2 * this.node.width;
- }
- e.y -= this.node.height / 2;
- n.y -= this.node.height;
- o.y -= 1.2 * this.node.height;
- var i = cc.tween().to(.5, {
- position: e
- }, {
- easing: "cubicOut"
- }), a = cc.tween().to(.5, {
- position: n
- }, {
- easing: "cubicOut"
- }), r = cc.tween().to(.5, {
- position: o
- }, {
- easing: "cubicOut"
- }), c = cc.tween().call(function() {
- t.edit_playing = !1;
- t.edit_play = !1;
- t.onComplete.handler && t.onComplete.emit([ t.node ]);
- });
- cc.tween(this.node).then(i).then(a).then(r).then(c).start();
- };
- e.prototype.stop = function() {
- this.edit_playing = !1;
- this.node.stopAllActions();
- };
- a([ s({
- displayName: "自动播放"
- }) ], e.prototype, "play_on_load", void 0);
- a([ s({
- displayName: "完成回调",
- type: cc.Component.EventHandler
- }) ], e.prototype, "onComplete", void 0);
- a([ s({
- displayName: "编辑器预览"
- }) ], e.prototype, "edit_play", null);
- return a([ c, l(), u() ], e);
- }(cc.Component);
- n.default = p;
- cc._RF.pop();
- }, {} ],
- aes: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "19ca92Vo+9AL7z4EqtukKt7", "aes");
- var n, o, i = i || function(t) {
- var e = {}, n = e.lib = {}, o = function() {}, i = n.Base = {
- extend: function(t) {
- o.prototype = this;
- var e = new o();
- t && e.mixIn(t);
- e.hasOwnProperty("init") || (e.init = function() {
- e.$super.init.apply(this, arguments);
- });
- e.init.prototype = e;
- e.$super = this;
- return e;
- },
- create: function() {
- var t = this.extend();
- t.init.apply(t, arguments);
- return t;
- },
- init: function() {},
- mixIn: function(t) {
- for (var e in t) t.hasOwnProperty(e) && (this[e] = t[e]);
- t.hasOwnProperty("toString") && (this.toString = t.toString);
- },
- clone: function() {
- return this.init.prototype.extend(this);
- }
- }, a = n.WordArray = i.extend({
- init: function(t, e) {
- t = this.words = t || [];
- this.sigBytes = null != e ? e : 4 * t.length;
- },
- toString: function(t) {
- return (t || c).stringify(this);
- },
- concat: function(t) {
- var e = this.words, n = t.words, o = this.sigBytes;
- t = t.sigBytes;
- this.clamp();
- if (o % 4) for (var i = 0; i < t; i++) e[o + i >>> 2] |= (n[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 24 - (o + i) % 4 * 8; else if (65535 < n.length) for (i = 0; i < t; i += 4) e[o + i >>> 2] = n[i >>> 2]; else e.push.apply(e, n);
- this.sigBytes += t;
- return this;
- },
- clamp: function() {
- var e = this.words, n = this.sigBytes;
- e[n >>> 2] &= 4294967295 << 32 - n % 4 * 8;
- e.length = t.ceil(n / 4);
- },
- clone: function() {
- var t = i.clone.call(this);
- t.words = this.words.slice(0);
- return t;
- },
- random: function(e) {
- for (var n = [], o = 0; o < e; o += 4) n.push(4294967296 * t.random() | 0);
- return new a.init(n, e);
- }
- }), r = e.enc = {}, c = r.Hex = {
- stringify: function(t) {
- var e = t.words;
- t = t.sigBytes;
- for (var n = [], o = 0; o < t; o++) {
- var i = e[o >>> 2] >>> 24 - o % 4 * 8 & 255;
- n.push((i >>> 4).toString(16));
- n.push((15 & i).toString(16));
- }
- return n.join("");
- },
- parse: function(t) {
- for (var e = t.length, n = [], o = 0; o < e; o += 2) n[o >>> 3] |= parseInt(t.substr(o, 2), 16) << 24 - o % 8 * 4;
- return new a.init(n, e / 2);
- }
- }, s = r.Latin1 = {
- stringify: function(t) {
- var e = t.words;
- t = t.sigBytes;
- for (var n = [], o = 0; o < t; o++) n.push(String.fromCharCode(e[o >>> 2] >>> 24 - o % 4 * 8 & 255));
- return n.join("");
- },
- parse: function(t) {
- for (var e = t.length, n = [], o = 0; o < e; o++) n[o >>> 2] |= (255 & t.charCodeAt(o)) << 24 - o % 4 * 8;
- return new a.init(n, e);
- }
- }, l = r.Utf8 = {
- stringify: function(t) {
- try {
- return decodeURIComponent(escape(s.stringify(t)));
- } catch (t) {
- throw Error("Malformed UTF-8 data");
- }
- },
- parse: function(t) {
- return s.parse(unescape(encodeURIComponent(t)));
- }
- }, u = n.BufferedBlockAlgorithm = i.extend({
- reset: function() {
- this._data = new a.init();
- this._nDataBytes = 0;
- },
- _append: function(t) {
- "string" == typeof t && (t = l.parse(t));
- this._data.concat(t);
- this._nDataBytes += t.sigBytes;
- },
- _process: function(e) {
- var n = this._data, o = n.words, i = n.sigBytes, r = this.blockSize, c = i / (4 * r);
- e = (c = e ? t.ceil(c) : t.max((0 | c) - this._minBufferSize, 0)) * r;
- i = t.min(4 * e, i);
- if (e) {
- for (var s = 0; s < e; s += r) this._doProcessBlock(o, s);
- s = o.splice(0, e);
- n.sigBytes -= i;
- }
- return new a.init(s, i);
- },
- clone: function() {
- var t = i.clone.call(this);
- t._data = this._data.clone();
- return t;
- },
- _minBufferSize: 0
- });
- n.Hasher = u.extend({
- cfg: i.extend(),
- init: function(t) {
- this.cfg = this.cfg.extend(t);
- this.reset();
- },
- reset: function() {
- u.reset.call(this);
- this._doReset();
- },
- update: function(t) {
- this._append(t);
- this._process();
- return this;
- },
- finalize: function(t) {
- t && this._append(t);
- return this._doFinalize();
- },
- blockSize: 16,
- _createHelper: function(t) {
- return function(e, n) {
- return new t.init(n).finalize(e);
- };
- },
- _createHmacHelper: function(t) {
- return function(e, n) {
- return new p.HMAC.init(t, n).finalize(e);
- };
- }
- });
- var p = e.algo = {};
- return e;
- }(Math);
- o = (n = i).lib.WordArray, n.enc.Base64 = {
- stringify: function(t) {
- var e = t.words, n = t.sigBytes, o = this._map;
- t.clamp();
- t = [];
- for (var i = 0; i < n; i += 3) for (var a = (e[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 16 | (e[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255) << 8 | e[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, r = 0; 4 > r && i + .75 * r < n; r++) t.push(o.charAt(a >>> 6 * (3 - r) & 63));
- if (e = o.charAt(64)) for (;t.length % 4; ) t.push(e);
- return t.join("");
- },
- parse: function(t) {
- var e = t.length, n = this._map;
- (i = n.charAt(64)) && -1 != (i = t.indexOf(i)) && (e = i);
- for (var i = [], a = 0, r = 0; r < e; r++) if (r % 4) {
- var c = n.indexOf(t.charAt(r - 1)) << r % 4 * 2, s = n.indexOf(t.charAt(r)) >>> 6 - r % 4 * 2;
- i[a >>> 2] |= (c | s) << 24 - a % 4 * 8;
- a++;
- }
- return o.create(i, a);
- },
- _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
- };
- (function(t) {
- function e(t, e, n, o, i, a, r) {
- return ((t = t + (e & n | ~e & o) + i + r) << a | t >>> 32 - a) + e;
- }
- function n(t, e, n, o, i, a, r) {
- return ((t = t + (e & o | n & ~o) + i + r) << a | t >>> 32 - a) + e;
- }
- function o(t, e, n, o, i, a, r) {
- return ((t = t + (e ^ n ^ o) + i + r) << a | t >>> 32 - a) + e;
- }
- function a(t, e, n, o, i, a, r) {
- return ((t = t + (n ^ (e | ~o)) + i + r) << a | t >>> 32 - a) + e;
- }
- for (var r = i, c = (l = r.lib).WordArray, s = l.Hasher, l = r.algo, u = [], p = 0; 64 > p; p++) u[p] = 4294967296 * t.abs(t.sin(p + 1)) | 0;
- l = l.MD5 = s.extend({
- _doReset: function() {
- this._hash = new c.init([ 1732584193, 4023233417, 2562383102, 271733878 ]);
- },
- _doProcessBlock: function(t, i) {
- for (var r = 0; 16 > r; r++) {
- var c = t[s = i + r];
- t[s] = 16711935 & (c << 8 | c >>> 24) | 4278255360 & (c << 24 | c >>> 8);
- }
- r = this._hash.words;
- var s = t[i + 0], l = (c = t[i + 1], t[i + 2]), p = t[i + 3], d = t[i + 4], h = t[i + 5], f = t[i + 6], y = t[i + 7], g = t[i + 8], m = t[i + 9], _ = t[i + 10], v = t[i + 11], b = t[i + 12], D = t[i + 13], S = t[i + 14], A = t[i + 15], w = e(w = r[0], k = r[1], O = r[2], P = r[3], s, 7, u[0]), P = e(P, w, k, O, c, 12, u[1]), O = e(O, P, w, k, l, 17, u[2]), k = e(k, O, P, w, p, 22, u[3]);
- w = e(w, k, O, P, d, 7, u[4]), P = e(P, w, k, O, h, 12, u[5]), O = e(O, P, w, k, f, 17, u[6]),
- k = e(k, O, P, w, y, 22, u[7]), w = e(w, k, O, P, g, 7, u[8]), P = e(P, w, k, O, m, 12, u[9]),
- O = e(O, P, w, k, _, 17, u[10]), k = e(k, O, P, w, v, 22, u[11]), w = e(w, k, O, P, b, 7, u[12]),
- P = e(P, w, k, O, D, 12, u[13]), O = e(O, P, w, k, S, 17, u[14]), w = n(w, k = e(k, O, P, w, A, 22, u[15]), O, P, c, 5, u[16]),
- P = n(P, w, k, O, f, 9, u[17]), O = n(O, P, w, k, v, 14, u[18]), k = n(k, O, P, w, s, 20, u[19]),
- w = n(w, k, O, P, h, 5, u[20]), P = n(P, w, k, O, _, 9, u[21]), O = n(O, P, w, k, A, 14, u[22]),
- k = n(k, O, P, w, d, 20, u[23]), w = n(w, k, O, P, m, 5, u[24]), P = n(P, w, k, O, S, 9, u[25]),
- O = n(O, P, w, k, p, 14, u[26]), k = n(k, O, P, w, g, 20, u[27]), w = n(w, k, O, P, D, 5, u[28]),
- P = n(P, w, k, O, l, 9, u[29]), O = n(O, P, w, k, y, 14, u[30]), w = o(w, k = n(k, O, P, w, b, 20, u[31]), O, P, h, 4, u[32]),
- P = o(P, w, k, O, g, 11, u[33]), O = o(O, P, w, k, v, 16, u[34]), k = o(k, O, P, w, S, 23, u[35]),
- w = o(w, k, O, P, c, 4, u[36]), P = o(P, w, k, O, d, 11, u[37]), O = o(O, P, w, k, y, 16, u[38]),
- k = o(k, O, P, w, _, 23, u[39]), w = o(w, k, O, P, D, 4, u[40]), P = o(P, w, k, O, s, 11, u[41]),
- O = o(O, P, w, k, p, 16, u[42]), k = o(k, O, P, w, f, 23, u[43]), w = o(w, k, O, P, m, 4, u[44]),
- P = o(P, w, k, O, b, 11, u[45]), O = o(O, P, w, k, A, 16, u[46]), w = a(w, k = o(k, O, P, w, l, 23, u[47]), O, P, s, 6, u[48]),
- P = a(P, w, k, O, y, 10, u[49]), O = a(O, P, w, k, S, 15, u[50]), k = a(k, O, P, w, h, 21, u[51]),
- w = a(w, k, O, P, b, 6, u[52]), P = a(P, w, k, O, p, 10, u[53]), O = a(O, P, w, k, _, 15, u[54]),
- k = a(k, O, P, w, c, 21, u[55]), w = a(w, k, O, P, g, 6, u[56]), P = a(P, w, k, O, A, 10, u[57]),
- O = a(O, P, w, k, f, 15, u[58]), k = a(k, O, P, w, D, 21, u[59]), w = a(w, k, O, P, d, 6, u[60]),
- P = a(P, w, k, O, v, 10, u[61]), O = a(O, P, w, k, l, 15, u[62]), k = a(k, O, P, w, m, 21, u[63]);
- r[0] = r[0] + w | 0;
- r[1] = r[1] + k | 0;
- r[2] = r[2] + O | 0;
- r[3] = r[3] + P | 0;
- },
- _doFinalize: function() {
- var e = this._data, n = e.words, o = 8 * this._nDataBytes, i = 8 * e.sigBytes;
- n[i >>> 5] |= 128 << 24 - i % 32;
- var a = t.floor(o / 4294967296);
- n[15 + (i + 64 >>> 9 << 4)] = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8);
- n[14 + (i + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8);
- e.sigBytes = 4 * (n.length + 1);
- this._process();
- n = (e = this._hash).words;
- for (o = 0; 4 > o; o++) i = n[o], n[o] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8);
- return e;
- },
- clone: function() {
- var t = s.clone.call(this);
- t._hash = this._hash.clone();
- return t;
- }
- });
- r.MD5 = s._createHelper(l);
- r.HmacMD5 = s._createHmacHelper(l);
- })(Math);
- (function() {
- var t, e = i, n = (t = e.lib).Base, o = t.WordArray, a = (t = e.algo).EvpKDF = n.extend({
- cfg: n.extend({
- keySize: 4,
- hasher: t.MD5,
- iterations: 1
- }),
- init: function(t) {
- this.cfg = this.cfg.extend(t);
- },
- compute: function(t, e) {
- for (var n = (c = this.cfg).hasher.create(), i = o.create(), a = i.words, r = c.keySize, c = c.iterations; a.length < r; ) {
- s && n.update(s);
- var s = n.update(t).finalize(e);
- n.reset();
- for (var l = 1; l < c; l++) s = n.finalize(s), n.reset();
- i.concat(s);
- }
- i.sigBytes = 4 * r;
- return i;
- }
- });
- e.EvpKDF = function(t, e, n) {
- return a.create(n).compute(t, e);
- };
- })();
- i.lib.Cipher || function() {
- var t = (h = i).lib, e = t.Base, n = t.WordArray, o = t.BufferedBlockAlgorithm, a = h.enc.Base64, r = h.algo.EvpKDF, c = t.Cipher = o.extend({
- cfg: e.extend(),
- createEncryptor: function(t, e) {
- return this.create(this._ENC_XFORM_MODE, t, e);
- },
- createDecryptor: function(t, e) {
- return this.create(this._DEC_XFORM_MODE, t, e);
- },
- init: function(t, e, n) {
- this.cfg = this.cfg.extend(n);
- this._xformMode = t;
- this._key = e;
- this.reset();
- },
- reset: function() {
- o.reset.call(this);
- this._doReset();
- },
- process: function(t) {
- this._append(t);
- return this._process();
- },
- finalize: function(t) {
- t && this._append(t);
- return this._doFinalize();
- },
- keySize: 4,
- ivSize: 4,
- _ENC_XFORM_MODE: 1,
- _DEC_XFORM_MODE: 2,
- _createHelper: function(t) {
- return {
- encrypt: function(e, n, o) {
- return ("string" == typeof n ? f : d).encrypt(t, e, n, o);
- },
- decrypt: function(e, n, o) {
- return ("string" == typeof n ? f : d).decrypt(t, e, n, o);
- }
- };
- }
- });
- t.StreamCipher = c.extend({
- _doFinalize: function() {
- return this._process(!0);
- },
- blockSize: 1
- });
- var s = h.mode = {}, l = function(t, e, n) {
- var o = this._iv;
- o ? this._iv = void 0 : o = this._prevBlock;
- for (var i = 0; i < n; i++) t[e + i] ^= o[i];
- }, u = (t.BlockCipherMode = e.extend({
- createEncryptor: function(t, e) {
- return this.Encryptor.create(t, e);
- },
- createDecryptor: function(t, e) {
- return this.Decryptor.create(t, e);
- },
- init: function(t, e) {
- this._cipher = t;
- this._iv = e;
- }
- })).extend();
- u.Encryptor = u.extend({
- processBlock: function(t, e) {
- var n = this._cipher, o = n.blockSize;
- l.call(this, t, e, o);
- n.encryptBlock(t, e);
- this._prevBlock = t.slice(e, e + o);
- }
- });
- u.Decryptor = u.extend({
- processBlock: function(t, e) {
- var n = this._cipher, o = n.blockSize, i = t.slice(e, e + o);
- n.decryptBlock(t, e);
- l.call(this, t, e, o);
- this._prevBlock = i;
- }
- });
- s = s.CBC = u;
- u = (h.pad = {}).Pkcs7 = {
- pad: function(t, e) {
- for (var o, i = (o = (o = 4 * e) - t.sigBytes % o) << 24 | o << 16 | o << 8 | o, a = [], r = 0; r < o; r += 4) a.push(i);
- o = n.create(a, o);
- t.concat(o);
- },
- unpad: function(t) {
- t.sigBytes -= 255 & t.words[t.sigBytes - 1 >>> 2];
- }
- };
- t.BlockCipher = c.extend({
- cfg: c.cfg.extend({
- mode: s,
- padding: u
- }),
- reset: function() {
- c.reset.call(this);
- var t = (e = this.cfg).iv, e = e.mode;
- if (this._xformMode == this._ENC_XFORM_MODE) var n = e.createEncryptor; else n = e.createDecryptor,
- this._minBufferSize = 1;
- this._mode = n.call(e, this, t && t.words);
- },
- _doProcessBlock: function(t, e) {
- this._mode.processBlock(t, e);
- },
- _doFinalize: function() {
- var t = this.cfg.padding;
- if (this._xformMode == this._ENC_XFORM_MODE) {
- t.pad(this._data, this.blockSize);
- var e = this._process(!0);
- } else e = this._process(!0), t.unpad(e);
- return e;
- },
- blockSize: 4
- });
- var p = t.CipherParams = e.extend({
- init: function(t) {
- this.mixIn(t);
- },
- toString: function(t) {
- return (t || this.formatter).stringify(this);
- }
- }), d = (s = (h.format = {}).OpenSSL = {
- stringify: function(t) {
- var e = t.ciphertext;
- return ((t = t.salt) ? n.create([ 1398893684, 1701076831 ]).concat(t).concat(e) : e).toString(a);
- },
- parse: function(t) {
- var e = (t = a.parse(t)).words;
- if (1398893684 == e[0] && 1701076831 == e[1]) {
- var o = n.create(e.slice(2, 4));
- e.splice(0, 4);
- t.sigBytes -= 16;
- }
- return p.create({
- ciphertext: t,
- salt: o
- });
- }
- }, t.SerializableCipher = e.extend({
- cfg: e.extend({
- format: s
- }),
- encrypt: function(t, e, n, o) {
- o = this.cfg.extend(o);
- var i = t.createEncryptor(n, o);
- e = i.finalize(e);
- i = i.cfg;
- return p.create({
- ciphertext: e,
- key: n,
- iv: i.iv,
- algorithm: t,
- mode: i.mode,
- padding: i.padding,
- blockSize: t.blockSize,
- formatter: o.format
- });
- },
- decrypt: function(t, e, n, o) {
- o = this.cfg.extend(o);
- e = this._parse(e, o.format);
- return t.createDecryptor(n, o).finalize(e.ciphertext);
- },
- _parse: function(t, e) {
- return "string" == typeof t ? e.parse(t, this) : t;
- }
- })), h = (h.kdf = {}).OpenSSL = {
- execute: function(t, e, o, i) {
- i || (i = n.random(8));
- t = r.create({
- keySize: e + o
- }).compute(t, i);
- o = n.create(t.words.slice(e), 4 * o);
- t.sigBytes = 4 * e;
- return p.create({
- key: t,
- iv: o,
- salt: i
- });
- }
- }, f = t.PasswordBasedCipher = d.extend({
- cfg: d.cfg.extend({
- kdf: h
- }),
- encrypt: function(t, e, n, o) {
- n = (o = this.cfg.extend(o)).kdf.execute(n, t.keySize, t.ivSize);
- o.iv = n.iv;
- (t = d.encrypt.call(this, t, e, n.key, o)).mixIn(n);
- return t;
- },
- decrypt: function(t, e, n, o) {
- o = this.cfg.extend(o);
- e = this._parse(e, o.format);
- n = o.kdf.execute(n, t.keySize, t.ivSize, e.salt);
- o.iv = n.iv;
- return d.decrypt.call(this, t, e, n.key, o);
- }
- });
- }();
- (function() {
- for (var t = i, e = t.lib.BlockCipher, n = t.algo, o = [], a = [], r = [], c = [], s = [], l = [], u = [], p = [], d = [], h = [], f = [], y = 0; 256 > y; y++) f[y] = 128 > y ? y << 1 : y << 1 ^ 283;
- var g = 0, m = 0;
- for (y = 0; 256 > y; y++) {
- var _ = (_ = m ^ m << 1 ^ m << 2 ^ m << 3 ^ m << 4) >>> 8 ^ 255 & _ ^ 99;
- o[g] = _;
- a[_] = g;
- var v = f[g], b = f[v], D = f[b], S = 257 * f[_] ^ 16843008 * _;
- r[g] = S << 24 | S >>> 8;
- c[g] = S << 16 | S >>> 16;
- s[g] = S << 8 | S >>> 24;
- l[g] = S;
- S = 16843009 * D ^ 65537 * b ^ 257 * v ^ 16843008 * g;
- u[_] = S << 24 | S >>> 8;
- p[_] = S << 16 | S >>> 16;
- d[_] = S << 8 | S >>> 24;
- h[_] = S;
- g ? (g = v ^ f[f[f[D ^ v]]], m ^= f[f[m]]) : g = m = 1;
- }
- var A = [ 0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54 ];
- n = n.AES = e.extend({
- _doReset: function() {
- for (var t = (n = this._key).words, e = n.sigBytes / 4, n = 4 * ((this._nRounds = e + 6) + 1), i = this._keySchedule = [], a = 0; a < n; a++) if (a < e) i[a] = t[a]; else {
- var r = i[a - 1];
- a % e ? 6 < e && 4 == a % e && (r = o[r >>> 24] << 24 | o[r >>> 16 & 255] << 16 | o[r >>> 8 & 255] << 8 | o[255 & r]) : (r = o[(r = r << 8 | r >>> 24) >>> 24] << 24 | o[r >>> 16 & 255] << 16 | o[r >>> 8 & 255] << 8 | o[255 & r],
- r ^= A[a / e | 0] << 24);
- i[a] = i[a - e] ^ r;
- }
- t = this._invKeySchedule = [];
- for (e = 0; e < n; e++) a = n - e, r = e % 4 ? i[a] : i[a - 4], t[e] = 4 > e || 4 >= a ? r : u[o[r >>> 24]] ^ p[o[r >>> 16 & 255]] ^ d[o[r >>> 8 & 255]] ^ h[o[255 & r]];
- },
- encryptBlock: function(t, e) {
- this._doCryptBlock(t, e, this._keySchedule, r, c, s, l, o);
- },
- decryptBlock: function(t, e) {
- var n = t[e + 1];
- t[e + 1] = t[e + 3];
- t[e + 3] = n;
- this._doCryptBlock(t, e, this._invKeySchedule, u, p, d, h, a);
- n = t[e + 1];
- t[e + 1] = t[e + 3];
- t[e + 3] = n;
- },
- _doCryptBlock: function(t, e, n, o, i, a, r, c) {
- for (var s = this._nRounds, l = t[e] ^ n[0], u = t[e + 1] ^ n[1], p = t[e + 2] ^ n[2], d = t[e + 3] ^ n[3], h = 4, f = 1; f < s; f++) {
- var y = o[l >>> 24] ^ i[u >>> 16 & 255] ^ a[p >>> 8 & 255] ^ r[255 & d] ^ n[h++], g = o[u >>> 24] ^ i[p >>> 16 & 255] ^ a[d >>> 8 & 255] ^ r[255 & l] ^ n[h++], m = o[p >>> 24] ^ i[d >>> 16 & 255] ^ a[l >>> 8 & 255] ^ r[255 & u] ^ n[h++];
- d = o[d >>> 24] ^ i[l >>> 16 & 255] ^ a[u >>> 8 & 255] ^ r[255 & p] ^ n[h++], l = y,
- u = g, p = m;
- }
- y = (c[l >>> 24] << 24 | c[u >>> 16 & 255] << 16 | c[p >>> 8 & 255] << 8 | c[255 & d]) ^ n[h++];
- g = (c[u >>> 24] << 24 | c[p >>> 16 & 255] << 16 | c[d >>> 8 & 255] << 8 | c[255 & l]) ^ n[h++];
- m = (c[p >>> 24] << 24 | c[d >>> 16 & 255] << 16 | c[l >>> 8 & 255] << 8 | c[255 & u]) ^ n[h++];
- d = (c[d >>> 24] << 24 | c[l >>> 16 & 255] << 16 | c[u >>> 8 & 255] << 8 | c[255 & p]) ^ n[h++];
- t[e] = y;
- t[e + 1] = g;
- t[e + 2] = m;
- t[e + 3] = d;
- },
- keySize: 8
- });
- t.AES = e._createHelper(n);
- })();
- e.exports = i;
- cc._RF.pop();
- }, {} ],
- agreementTip: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "27e8eZbIM9ApIU8LRLiALwU", "agreementTip");
- var o, i = this && this.__extends || (o = function(t, e) {
- return (o = Object.setPrototypeOf || {
- __proto__: []
- } instanceof Array && function(t, e) {
- t.__proto__ = e;
- } || function(t, e) {
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
- })(t, e);
- }, function(t, e) {
- o(t, e);
- function n() {
- this.constructor = t;
- }
- t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n());
- }), a = this && this.__decorate || function(t, e, n, o) {
- var i, a = arguments.length, r = a < 3 ? e : null === o ? o = Object.getOwnPropertyDescriptor(e, n) : o;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, n, o); else for (var c = t.length - 1; c >= 0; c--) (i = t[c]) && (r = (a < 3 ? i(r) : a > 3 ? i(e, n, r) : i(e, n)) || r);
- return a > 3 && r && Object.defineProperty(e, n, r), r;
- }, r = this && this.__awaiter || function(t, e, n, o) {
- return new (n || (n = Promise))(function(i, a) {
- function r(t) {
- try {
- s(o.next(t));
- } catch (t) {
- a(t);
- }
- }
- function c(t) {
- try {
- s(o.throw(t));
- } catch (t) {
- a(t);
- }
- }
- function s(t) {
- t.done ? i(t.value) : (e = t.value, e instanceof n ? e : new n(function(t) {
- t(e);
- })).then(r, c);
- var e;
- }
- s((o = o.apply(t, e || [])).next());
- });
- }, c = this && this.__generator || function(t, e) {
- var n, o, i, a, r = {
- label: 0,
- sent: function() {
- if (1 & i[0]) throw i[1];
- return i[1];
- },
- trys: [],
- ops: []
- };
- return a = {
- next: c(0),
- throw: c(1),
- return: c(2)
- }, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
- return this;
- }), a;
- function c(t) {
- return function(e) {
- return s([ t, e ]);
- };
- }
- function s(a) {
- if (n) throw new TypeError("Generator is already executing.");
- for (;r; ) try {
- if (n = 1, o && (i = 2 & a[0] ? o.return : a[0] ? o.throw || ((i = o.return) && i.call(o),
- 0) : o.next) && !(i = i.call(o, a[1])).done) return i;
- (o = 0, i) && (a = [ 2 & a[0], i.value ]);
- switch (a[0]) {
- case 0:
- case 1:
- i = a;
- break;
- case 4:
- r.label++;
- return {
- value: a[1],
- done: !1
- };
- case 5:
- r.label++;
- o = a[1];
- a = [ 0 ];
- continue;
- case 7:
- a = r.ops.pop();
- r.trys.pop();
- continue;
- default:
- if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (6 === a[0] || 2 === a[0])) {
- r = 0;
- continue;
- }
- if (3 === a[0] && (!i || a[1] > i[0] && a[1] < i[3])) {
- r.label = a[1];
- break;
- }
- if (6 === a[0] && r.label < i[1]) {
- r.label = i[1];
- i = a;
- break;
- }
- if (i && r.label < i[2]) {
- r.label = i[2];
- r.ops.push(a);
- break;
- }
- i[2] && r.ops.pop();
- r.trys.pop();
- continue;
- }
- a = e.call(t, r);
- } catch (t) {
- a = [ 6, t ];
- o = 0;
- } finally {
- n = i = 0;
- }
- if (5 & a[0]) throw a[1];
- return {
- value: a[0] ? a[1] : void 0,
- done: !0
- };
- }
- };
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var s = cc._decorator, l = s.ccclass, u = (s.property, function(t) {
- i(e, t);
- function e() {
- return null !== t && t.apply(this, arguments) || this;
- }
- e.prototype.start = function() {};
- e.prototype.clickRule = function(t) {
- return r(this, void 0, void 0, function() {
- return c(this, function() {
- gData.setting.rule_type = parseInt(t);
- return [ 2 ];
- });
- });
- };
- e.prototype.clickClose = function() {
- mk.ui.closePanel(this.node.name);
- };
- return a([ l ], e);
- }(cc.Component));
- n.default = u;
- cc._RF.pop();
- }, {} ],
- base64: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "46dba/4JnZL8LqBzMYhW9lP", "base64");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- var o = function() {
- function t() {
- this._keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
- this._utf8_encode = function(t) {
- t = t.replace(/\r\n/g, "\n");
- for (var e = "", n = 0; n < t.length; n++) {
- var o = t.charCodeAt(n);
- if (o < 128) e += String.fromCharCode(o); else if (o > 127 && o < 2048) {
- e += String.fromCharCode(o >> 6 | 192);
- e += String.fromCharCode(63 & o | 128);
- } else {
- e += String.fromCharCode(o >> 12 | 224);
- e += String.fromCharCode(o >> 6 & 63 | 128);
- e += String.fromCharCode(63 & o | 128);
- }
- }
- return e;
- };
- this._utf8_decode = function(t) {
- for (var e = "", n = 0, o = 0, i = 0, a = 0; n < t.length; ) if ((o = t.charCodeAt(n)) < 128) {
- e += String.fromCharCode(o);
- n++;
- } else if (o > 191 && o < 224) {
- i = t.charCodeAt(n + 1);
- e += String.fromCharCode((31 & o) << 6 | 63 & i);
- n += 2;
- } else {
- i = t.charCodeAt(n + 1);
- a = t.charCodeAt(n + 2);
- e += String.fromCharCode((15 & o) << 12 | (63 & i) << 6 | 63 & a);
- n += 3;
- }
- return e;
- };
- }
- Object.defineProperty(t, "Instance", {
- get: function() {
- this.instance || (this.instance = new t());
- return this.instance;
- },
- enumerable: !1,
- configurable: !0
- });
- t.prototype.encode = function(t) {
- for (var e, n, o, i, a, r, c, s = "", l = 0, u = this._utf8_encode(t); l < u.length; ) {
- i = (e = u.charCodeAt(l++)) >> 2;
- a = (3 & e) << 4 | (n = u.charCodeAt(l++)) >> 4;
- r = (15 & n) << 2 | (o = u.charCodeAt(l++)) >> 6;
- c = 63 & o;
- isNaN(n) ? r = c = 64 : isNaN(o) && (c = 64);
- s = s + this._keyStr.charAt(i) + this._keyStr.charAt(a) + this._keyStr.charAt(r) + this._keyStr.charAt(c);
- }
- return s;
- };
- t.prototype.decode = function(t) {
- for (var e, n, o, i, a, r, c = "", s = 0, l = t.replace(/[^A-Za-z0-9\+\/\=]/g, ""); s < l.length; ) {
- e = this._keyStr.indexOf(l.charAt(s++)) << 2 | (i = this._keyStr.indexOf(l.charAt(s++))) >> 4;
- n = (15 & i) << 4 | (a = this._keyStr.indexOf(l.charAt(s++))) >> 2;
- o = (3 & a) << 6 | (r = this._keyStr.indexOf(l.charAt(s++)));
- c += String.fromCharCode(e);
- 64 != a && (c += String.fromCharCode(n));
- 64 != r && (c += String.fromCharCode(o));
- }
- return this._utf8_decode(c);
- };
- t.instance = null;
- return t;
- }();
- n.default = o;
- cc._RF.pop();
- }, {} ],
- hmacSha256: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "ab38aGoq49Irq9jzitxW0Z3", "hmacSha256");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.hmacSha256 = void 0;
- var o = function() {
- function t() {
- this.hexcase = 0;
- this.b64pad = "";
- this.sha256_K = new Array(1116352408, 1899447441, -1245643825, -373957723, 961987163, 1508970993, -1841331548, -1424204075, -670586216, 310598401, 607225278, 1426881987, 1925078388, -2132889090, -1680079193, -1046744716, -459576895, -272742522, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, -1740746414, -1473132947, -1341970488, -1084653625, -958395405, -710438585, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, -2117940946, -1838011259, -1564481375, -1474664885, -1035236496, -949202525, -778901479, -694614492, -200395387, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, -2067236844, -1933114872, -1866530822, -1538233109, -1090935817, -965641998);
- }
- Object.defineProperty(t, "Instance", {
- get: function() {
- this.instance || (this.instance = new t());
- return this.instance;
- },
- enumerable: !1,
- configurable: !0
- });
- t.prototype.hex_sha256 = function(t) {
- return this.rstr2hex(this.rstr_sha256(this.str2rstr_utf8(t)));
- };
- t.prototype.b64_sha256 = function(t) {
- return this.rstr2b64(this.rstr_sha256(this.str2rstr_utf8(t)));
- };
- t.prototype.any_sha256 = function(t, e) {
- return this.rstr2any(this.rstr_sha256(this.str2rstr_utf8(t)), e);
- };
- t.prototype.hex_hmac_sha256 = function(t, e) {
- return this.rstr2hex(this.rstr_hmac_sha256(this.str2rstr_utf8(t), this.str2rstr_utf8(e)));
- };
- t.prototype.b64_hmac_sha256 = function(t, e) {
- return this.rstr2b64(this.rstr_hmac_sha256(this.str2rstr_utf8(t), this.str2rstr_utf8(e)));
- };
- t.prototype.any_hmac_sha256 = function(t, e, n) {
- return this.rstr2any(this.rstr_hmac_sha256(this.str2rstr_utf8(t), this.str2rstr_utf8(e)), n);
- };
- t.prototype.sha256_vm_test = function() {
- return "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" == this.hex_sha256("abc").toLowerCase();
- };
- t.prototype.rstr_sha256 = function(t) {
- return this.binb2rstr(this.binb_sha256(this.rstr2binb(t), 8 * t.length));
- };
- t.prototype.rstr_hmac_sha256 = function(t, e) {
- var n = this.rstr2binb(t);
- n.length > 16 && (n = this.binb_sha256(n, 8 * t.length));
- for (var o = Array(16), i = Array(16), a = 0; a < 16; a++) {
- o[a] = 909522486 ^ n[a];
- i[a] = 1549556828 ^ n[a];
- }
- var r = this.binb_sha256(o.concat(this.rstr2binb(e)), 512 + 8 * e.length);
- return this.binb2rstr(this.binb_sha256(i.concat(r), 768));
- };
- t.prototype.rstr2hex = function(t) {
- try {
- this.hexcase;
- } catch (t) {
- this.hexcase = 0;
- }
- for (var e, n = this.hexcase ? "0123456789ABCDEF" : "0123456789abcdef", o = "", i = 0; i < t.length; i++) {
- e = t.charCodeAt(i);
- o += n.charAt(e >>> 4 & 15) + n.charAt(15 & e);
- }
- return o;
- };
- t.prototype.rstr2b64 = function(t) {
- try {
- this.b64pad;
- } catch (t) {
- this.b64pad = "";
- }
- for (var e = "", n = t.length, o = 0; o < n; o += 3) for (var i = t.charCodeAt(o) << 16 | (o + 1 < n ? t.charCodeAt(o + 1) << 8 : 0) | (o + 2 < n ? t.charCodeAt(o + 2) : 0), a = 0; a < 4; a++) 8 * o + 6 * a > 8 * t.length ? e += this.b64pad : e += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i >>> 6 * (3 - a) & 63);
- return e;
- };
- t.prototype.rstr2any = function(t, e) {
- var n, o, i, a, r = e.length, c = Array(), s = Array(Math.ceil(t.length / 2));
- for (n = 0; n < s.length; n++) s[n] = t.charCodeAt(2 * n) << 8 | t.charCodeAt(2 * n + 1);
- for (;s.length > 0; ) {
- a = Array();
- i = 0;
- for (n = 0; n < s.length; n++) {
- i = (i << 16) + s[n];
- i -= (o = Math.floor(i / r)) * r;
- (a.length > 0 || o > 0) && (a[a.length] = o);
- }
- c[c.length] = i;
- s = a;
- }
- var l = "";
- for (n = c.length - 1; n >= 0; n--) l += e.charAt(c[n]);
- var u = Math.ceil(8 * t.length / (Math.log(e.length) / Math.log(2)));
- for (n = l.length; n < u; n++) l = e[0] + l;
- return l;
- };
- t.prototype.str2rstr_utf8 = function(t) {
- for (var e, n, o = "", i = -1; ++i < t.length; ) {
- e = t.charCodeAt(i);
- n = i + 1 < t.length ? t.charCodeAt(i + 1) : 0;
- if (55296 <= e && e <= 56319 && 56320 <= n && n <= 57343) {
- e = 65536 + ((1023 & e) << 10) + (1023 & n);
- i++;
- }
- e <= 127 ? o += String.fromCharCode(e) : e <= 2047 ? o += String.fromCharCode(192 | e >>> 6 & 31, 128 | 63 & e) : e <= 65535 ? o += String.fromCharCode(224 | e >>> 12 & 15, 128 | e >>> 6 & 63, 128 | 63 & e) : e <= 2097151 && (o += String.fromCharCode(240 | e >>> 18 & 7, 128 | e >>> 12 & 63, 128 | e >>> 6 & 63, 128 | 63 & e));
- }
- return o;
- };
- t.prototype.str2rstr_utf16le = function(t) {
- for (var e = "", n = 0; n < t.length; n++) e += String.fromCharCode(255 & t.charCodeAt(n), t.charCodeAt(n) >>> 8 & 255);
- return e;
- };
- t.prototype.str2rstr_utf16be = function(t) {
- for (var e = "", n = 0; n < t.length; n++) e += String.fromCharCode(t.charCodeAt(n) >>> 8 & 255, 255 & t.charCodeAt(n));
- return e;
- };
- t.prototype.rstr2binb = function(t) {
- for (var e = Array(t.length >> 2), n = 0; n < e.length; n++) e[n] = 0;
- for (n = 0; n < 8 * t.length; n += 8) e[n >> 5] |= (255 & t.charCodeAt(n / 8)) << 24 - n % 32;
- return e;
- };
- t.prototype.binb2rstr = function(t) {
- for (var e = "", n = 0; n < 32 * t.length; n += 8) e += String.fromCharCode(t[n >> 5] >>> 24 - n % 32 & 255);
- return e;
- };
- t.prototype.sha256_S = function(t, e) {
- return t >>> e | t << 32 - e;
- };
- t.prototype.sha256_R = function(t, e) {
- return t >>> e;
- };
- t.prototype.sha256_Ch = function(t, e, n) {
- return t & e ^ ~t & n;
- };
- t.prototype.sha256_Maj = function(t, e, n) {
- return t & e ^ t & n ^ e & n;
- };
- t.prototype.sha256_Sigma0256 = function(t) {
- return this.sha256_S(t, 2) ^ this.sha256_S(t, 13) ^ this.sha256_S(t, 22);
- };
- t.prototype.sha256_Sigma1256 = function(t) {
- return this.sha256_S(t, 6) ^ this.sha256_S(t, 11) ^ this.sha256_S(t, 25);
- };
- t.prototype.sha256_Gamma0256 = function(t) {
- return this.sha256_S(t, 7) ^ this.sha256_S(t, 18) ^ this.sha256_R(t, 3);
- };
- t.prototype.sha256_Gamma1256 = function(t) {
- return this.sha256_S(t, 17) ^ this.sha256_S(t, 19) ^ this.sha256_R(t, 10);
- };
- t.prototype.sha256_Sigma0512 = function(t) {
- return this.sha256_S(t, 28) ^ this.sha256_S(t, 34) ^ this.sha256_S(t, 39);
- };
- t.prototype.sha256_Sigma1512 = function(t) {
- return this.sha256_S(t, 14) ^ this.sha256_S(t, 18) ^ this.sha256_S(t, 41);
- };
- t.prototype.sha256_Gamma0512 = function(t) {
- return this.sha256_S(t, 1) ^ this.sha256_S(t, 8) ^ this.sha256_R(t, 7);
- };
- t.prototype.sha256_Gamma1512 = function(t) {
- return this.sha256_S(t, 19) ^ this.sha256_S(t, 61) ^ this.sha256_R(t, 6);
- };
- t.prototype.binb_sha256 = function(t, e) {
- var n, o, i, a, r, c, s, l, u, p, d, h, f = new Array(1779033703, -1150833019, 1013904242, -1521486534, 1359893119, -1694144372, 528734635, 1541459225), y = new Array(64);
- t[e >> 5] |= 128 << 24 - e % 32;
- t[15 + (e + 64 >> 9 << 4)] = e;
- for (u = 0; u < t.length; u += 16) {
- n = f[0];
- o = f[1];
- i = f[2];
- a = f[3];
- r = f[4];
- c = f[5];
- s = f[6];
- l = f[7];
- for (p = 0; p < 64; p++) {
- y[p] = p < 16 ? t[p + u] : this.safe_add(this.safe_add(this.safe_add(this.sha256_Gamma1256(y[p - 2]), y[p - 7]), this.sha256_Gamma0256(y[p - 15])), y[p - 16]);
- d = this.safe_add(this.safe_add(this.safe_add(this.safe_add(l, this.sha256_Sigma1256(r)), this.sha256_Ch(r, c, s)), this.sha256_K[p]), y[p]);
- h = this.safe_add(this.sha256_Sigma0256(n), this.sha256_Maj(n, o, i));
- l = s;
- s = c;
- c = r;
- r = this.safe_add(a, d);
- a = i;
- i = o;
- o = n;
- n = this.safe_add(d, h);
- }
- f[0] = this.safe_add(n, f[0]);
- f[1] = this.safe_add(o, f[1]);
- f[2] = this.safe_add(i, f[2]);
- f[3] = this.safe_add(a, f[3]);
- f[4] = this.safe_add(r, f[4]);
- f[5] = this.safe_add(c, f[5]);
- f[6] = this.safe_add(s, f[6]);
- f[7] = this.safe_add(l, f[7]);
- }
- return f;
- };
- t.prototype.safe_add = function(t, e) {
- var n = (65535 & t) + (65535 & e);
- return (t >> 16) + (e >> 16) + (n >> 16) << 16 | 65535 & n;
- };
- t.instance = null;
- return t;
- }();
- n.hmacSha256 = o;
- cc._RF.pop();
- }, {} ],
- md5: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "45a9cfK7ZRGsb06t/E4+mjC", "md5");
- var n = 0, o = 8;
- function i(t, e) {
- t[e >> 5] |= 128 << e % 32;
- t[14 + (e + 64 >>> 9 << 4)] = e;
- for (var n = 1732584193, o = -271733879, i = -1732584194, a = 271733878, p = 0; p < t.length; p += 16) {
- var d = n, h = o, f = i, y = a;
- n = r(n, o, i, a, t[p + 0], 7, -680876936);
- a = r(a, n, o, i, t[p + 1], 12, -389564586);
- i = r(i, a, n, o, t[p + 2], 17, 606105819);
- o = r(o, i, a, n, t[p + 3], 22, -1044525330);
- n = r(n, o, i, a, t[p + 4], 7, -176418897);
- a = r(a, n, o, i, t[p + 5], 12, 1200080426);
- i = r(i, a, n, o, t[p + 6], 17, -1473231341);
- o = r(o, i, a, n, t[p + 7], 22, -45705983);
- n = r(n, o, i, a, t[p + 8], 7, 1770035416);
- a = r(a, n, o, i, t[p + 9], 12, -1958414417);
- i = r(i, a, n, o, t[p + 10], 17, -42063);
- o = r(o, i, a, n, t[p + 11], 22, -1990404162);
- n = r(n, o, i, a, t[p + 12], 7, 1804603682);
- a = r(a, n, o, i, t[p + 13], 12, -40341101);
- i = r(i, a, n, o, t[p + 14], 17, -1502002290);
- n = c(n, o = r(o, i, a, n, t[p + 15], 22, 1236535329), i, a, t[p + 1], 5, -165796510);
- a = c(a, n, o, i, t[p + 6], 9, -1069501632);
- i = c(i, a, n, o, t[p + 11], 14, 643717713);
- o = c(o, i, a, n, t[p + 0], 20, -373897302);
- n = c(n, o, i, a, t[p + 5], 5, -701558691);
- a = c(a, n, o, i, t[p + 10], 9, 38016083);
- i = c(i, a, n, o, t[p + 15], 14, -660478335);
- o = c(o, i, a, n, t[p + 4], 20, -405537848);
- n = c(n, o, i, a, t[p + 9], 5, 568446438);
- a = c(a, n, o, i, t[p + 14], 9, -1019803690);
- i = c(i, a, n, o, t[p + 3], 14, -187363961);
- o = c(o, i, a, n, t[p + 8], 20, 1163531501);
- n = c(n, o, i, a, t[p + 13], 5, -1444681467);
- a = c(a, n, o, i, t[p + 2], 9, -51403784);
- i = c(i, a, n, o, t[p + 7], 14, 1735328473);
- n = s(n, o = c(o, i, a, n, t[p + 12], 20, -1926607734), i, a, t[p + 5], 4, -378558);
- a = s(a, n, o, i, t[p + 8], 11, -2022574463);
- i = s(i, a, n, o, t[p + 11], 16, 1839030562);
- o = s(o, i, a, n, t[p + 14], 23, -35309556);
- n = s(n, o, i, a, t[p + 1], 4, -1530992060);
- a = s(a, n, o, i, t[p + 4], 11, 1272893353);
- i = s(i, a, n, o, t[p + 7], 16, -155497632);
- o = s(o, i, a, n, t[p + 10], 23, -1094730640);
- n = s(n, o, i, a, t[p + 13], 4, 681279174);
- a = s(a, n, o, i, t[p + 0], 11, -358537222);
- i = s(i, a, n, o, t[p + 3], 16, -722521979);
- o = s(o, i, a, n, t[p + 6], 23, 76029189);
- n = s(n, o, i, a, t[p + 9], 4, -640364487);
- a = s(a, n, o, i, t[p + 12], 11, -421815835);
- i = s(i, a, n, o, t[p + 15], 16, 530742520);
- n = l(n, o = s(o, i, a, n, t[p + 2], 23, -995338651), i, a, t[p + 0], 6, -198630844);
- a = l(a, n, o, i, t[p + 7], 10, 1126891415);
- i = l(i, a, n, o, t[p + 14], 15, -1416354905);
- o = l(o, i, a, n, t[p + 5], 21, -57434055);
- n = l(n, o, i, a, t[p + 12], 6, 1700485571);
- a = l(a, n, o, i, t[p + 3], 10, -1894986606);
- i = l(i, a, n, o, t[p + 10], 15, -1051523);
- o = l(o, i, a, n, t[p + 1], 21, -2054922799);
- n = l(n, o, i, a, t[p + 8], 6, 1873313359);
- a = l(a, n, o, i, t[p + 15], 10, -30611744);
- i = l(i, a, n, o, t[p + 6], 15, -1560198380);
- o = l(o, i, a, n, t[p + 13], 21, 1309151649);
- n = l(n, o, i, a, t[p + 4], 6, -145523070);
- a = l(a, n, o, i, t[p + 11], 10, -1120210379);
- i = l(i, a, n, o, t[p + 2], 15, 718787259);
- o = l(o, i, a, n, t[p + 9], 21, -343485551);
- n = u(n, d);
- o = u(o, h);
- i = u(i, f);
- a = u(a, y);
- }
- return Array(n, o, i, a);
- }
- function a(t, e, n, o, i, a) {
- return u((r = u(u(e, t), u(o, a))) << (c = i) | r >>> 32 - c, n);
- var r, c;
- }
- function r(t, e, n, o, i, r, c) {
- return a(e & n | ~e & o, t, e, i, r, c);
- }
- function c(t, e, n, o, i, r, c) {
- return a(e & o | n & ~o, t, e, i, r, c);
- }
- function s(t, e, n, o, i, r, c) {
- return a(e ^ n ^ o, t, e, i, r, c);
- }
- function l(t, e, n, o, i, r, c) {
- return a(n ^ (e | ~o), t, e, i, r, c);
- }
- function u(t, e) {
- var n = (65535 & t) + (65535 & e);
- return (t >> 16) + (e >> 16) + (n >> 16) << 16 | 65535 & n;
- }
- function p(t) {
- for (var e = Array(), n = (1 << o) - 1, i = 0; i < t.length * o; i += o) e[i >> 5] |= (t.charCodeAt(i / o) & n) << i % 32;
- return e;
- }
- function d(t) {
- for (var e = n ? "0123456789ABCDEF" : "0123456789abcdef", o = "", i = 0; i < 4 * t.length; i++) o += e.charAt(t[i >> 2] >> i % 4 * 8 + 4 & 15) + e.charAt(t[i >> 2] >> i % 4 * 8 & 15);
- return o;
- }
- e.exports = {
- hex_md5: function(t) {
- return d(i(p(t), t.length * o));
- }
- };
- cc._RF.pop();
- }, {} ],
- sha1: [ function(t, e) {
- "use strict";
- cc._RF.push(e, "7bba9WhEiZI5aaSIPCE1/Ng", "sha1");
- var n = 0, o = 8;
- function i(t, e) {
- t[e >> 5] |= 128 << 24 - e % 32;
- t[15 + (e + 64 >> 9 << 4)] = e;
- for (var n = Array(80), o = 1732584193, i = -271733879, l = -1732584194, u = 271733878, p = -1009589776, d = 0; d < t.length; d += 16) {
- for (var h = o, f = i, y = l, g = u, m = p, _ = 0; _ < 80; _++) {
- n[_] = _ < 16 ? t[d + _] : s(n[_ - 3] ^ n[_ - 8] ^ n[_ - 14] ^ n[_ - 16], 1);
- var v = c(c(s(o, 5), a(_, i, l, u)), c(c(p, n[_]), r(_)));
- p = u;
- u = l;
- l = s(i, 30);
- i = o;
- o = v;
- }
- o = c(o, h);
- i = c(i, f);
- l = c(l, y);
- u = c(u, g);
- p = c(p, m);
- }
- return Array(o, i, l, u, p);
- }
- function a(t, e, n, o) {
- return t < 20 ? e & n | ~e & o : t < 40 ? e ^ n ^ o : t < 60 ? e & n | e & o | n & o : e ^ n ^ o;
- }
- function r(t) {
- return t < 20 ? 1518500249 : t < 40 ? 1859775393 : t < 60 ? -1894007588 : -899497514;
- }
- function c(t, e) {
- var n = (65535 & t) + (65535 & e);
- return (t >> 16) + (e >> 16) + (n >> 16) << 16 | 65535 & n;
- }
- function s(t, e) {
- return t << e | t >>> 32 - e;
- }
- function l(t) {
- for (var e = Array(), n = (1 << o) - 1, i = 0; i < t.length * o; i += o) e[i >> 5] |= (t.charCodeAt(i / o) & n) << 24 - i % 32;
- return e;
- }
- function u(t) {
- for (var e = n ? "0123456789ABCDEF" : "0123456789abcdef", o = "", i = 0; i < 4 * t.length; i++) o += e.charAt(t[i >> 2] >> 8 * (3 - i % 4) + 4 & 15) + e.charAt(t[i >> 2] >> 8 * (3 - i % 4) & 15);
- return o;
- }
- e.exports = {
- hex_sha1: function(t) {
- return u(i(l(t), t.length * o));
- }
- };
- cc._RF.pop();
- }, {} ],
- zgSingleton: [ function(t, e, n) {
- "use strict";
- cc._RF.push(e, "ef0c4TA8utMIpuCAX/anO0Q", "zgSingleton");
- Object.defineProperty(n, "__esModule", {
- value: !0
- });
- n.zgSingleton = void 0;
- var o = function() {
- function t() {}
- t.getInstance = function() {
- this.instance || (this.instance = new this());
- return this.instance;
- };
- return t;
- }();
- n.zgSingleton = o;
- cc._RF.pop();
- }, {} ]
- }, {}, [ "Main", "GamePlay", "Enum", "GameConst", "PlayerConst", "DataMgr", "EffectMgr", "PoolMgr", "StorageMgr", "GameLogic", "Util", "AniFinishDestroy", "AniOpenPanel", "ArtNum", "Recycle", "SpineEffectPlay", "ChangeCellItemUI", "GameOverUI", "GetPropUI", "GuideAuthUI", "PauseUI", "BonusTip", "EliminateScore", "GetScore", "GetTargetScoreTip", "ScoreEnergy", "TipSpriteItemUI", "CellItem", "SelectCellItemBtn", "SelectSceneItem", "TipItemUI", "BangsFit", "BtnClosePanel", "BtnOpenPanel", "Button", "LoadingBar", "NumberAnim", "PageView", "SetGray", "TabSwitching", "TableView", "TouchHelper", "UIBG", "ClickMoveBy", "EffectOpenAndClose", "FlyNode", "FrameAnimation", "RopeSwung", "RotateAround", "TweenCast", "TweenEasing", "UITween", "ZPathFalling", "AdData", "AppData", "GData", "GameData", "HttpData", "LoginData", "StorageData", "WechatData", "BlessingBagData", "CashNormalData", "CashPigData", "CashProData", "FissionData", "GuideData", "GuideWeakData", "HelpData", "MoreGameData", "PigBankData", "PushData", "ReceiptNoticeData", "RedBagCashData", "RedCodeData", "RedeemData", "RewardData", "SettingData", "SignData", "TurnableData", "FunBtns", "Game", "agreementTip", "BlessingBag", "BlessingBagItem", "CashNormal", "CashNormalItem", "CashPro", "ForceUpdate", "GuideWeak", "Guide", "GuideVO", "Help", "HotUpdatePanel", "Login", "BtnMoreGame", "MoreGame", "MoreGameBanner", "MoreGameNormalItem", "MoreGamePicItem", "MoreGamePopNode", "PointItem", "PigBank", "ReceiptNotice", "RedBagCash", "RedBagCashItem", "RedBagCode", "RedBagCodeItem", "RedCode", "VideoNode", "RedeemNode", "Reward", "Rule", "Setting", "Sign", "SignIconItem", "SignItem", "Turnable", "TurnableItem", "MKSwitch", "Data", "BuglySDK", "IADSDKMgr", "ATBanner", "ATBannerJS", "ATInterstitial", "ATInterstitialJS", "ATNative", "ATNativeJS", "ATRewardVideo", "ATRewardVideoJS", "ATSDKMgr", "ATSDKMgrJS", "ATBannerJSSDK", "ATInterstitialJSSDK", "ATJSSDK", "ATNativeJSSDK", "ATRewardedVideoJSSDK", "ATAndroidBannerJS", "ATAndroidInterstitialJS", "ATAndroidJS", "ATAndroidNativeJS", "ATAndroidRewardedVideoJS", "ATiOSBannerJS", "ATiOSInterstitialJS", "ATiOSJS", "ATiOSNativeJS", "ATiOSRewardedVideoJS", "zgSingleton", "AliRiskManager", "HotUpdate", "AdSystem", "AudioSystem", "DataSystem", "EventSystem", "FlySystem", "GuideSystem", "HttpSystem", "JsbSystem", "MKSystem", "PoolSystem", "TimerSystem", "TipSystem", "UISystem", "EncryptUtil", "FileUtil", "GameUtil", "LoadResUtil", "LogUtil", "MathUtil", "StorageUtil", "StringUtil", "TimeUtil", "TweenUtil", "aes", "base64", "hmacSha256", "md5", "sha1" ]);
|