vendor.js 264 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
  2. /***/ 1:
  3. /*!************************************************************!*\
  4. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  5. \************************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. Object.defineProperty(exports, "__esModule", { value: true });exports.createApp = createApp;exports.createComponent = createComponent;exports.createPage = createPage;exports.createPlugin = createPlugin;exports.createSubpackageApp = createSubpackageApp;exports.default = void 0;var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 2));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}
  10. function b64DecodeUnicode(str) {
  11. return decodeURIComponent(atob(str).split('').map(function (c) {
  12. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  13. }).join(''));
  14. }
  15. function getCurrentUserInfo() {
  16. var token = wx.getStorageSync('uni_id_token') || '';
  17. var tokenArr = token.split('.');
  18. if (!token || tokenArr.length !== 3) {
  19. return {
  20. uid: null,
  21. role: [],
  22. permission: [],
  23. tokenExpired: 0 };
  24. }
  25. var userInfo;
  26. try {
  27. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  28. } catch (error) {
  29. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  30. }
  31. userInfo.tokenExpired = userInfo.exp * 1000;
  32. delete userInfo.exp;
  33. delete userInfo.iat;
  34. return userInfo;
  35. }
  36. function uniIdMixin(Vue) {
  37. Vue.prototype.uniIDHasRole = function (roleId) {var _getCurrentUserInfo =
  38. getCurrentUserInfo(),role = _getCurrentUserInfo.role;
  39. return role.indexOf(roleId) > -1;
  40. };
  41. Vue.prototype.uniIDHasPermission = function (permissionId) {var _getCurrentUserInfo2 =
  42. getCurrentUserInfo(),permission = _getCurrentUserInfo2.permission;
  43. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  44. };
  45. Vue.prototype.uniIDTokenValid = function () {var _getCurrentUserInfo3 =
  46. getCurrentUserInfo(),tokenExpired = _getCurrentUserInfo3.tokenExpired;
  47. return tokenExpired > Date.now();
  48. };
  49. }
  50. var _toString = Object.prototype.toString;
  51. var hasOwnProperty = Object.prototype.hasOwnProperty;
  52. function isFn(fn) {
  53. return typeof fn === 'function';
  54. }
  55. function isStr(str) {
  56. return typeof str === 'string';
  57. }
  58. function isPlainObject(obj) {
  59. return _toString.call(obj) === '[object Object]';
  60. }
  61. function hasOwn(obj, key) {
  62. return hasOwnProperty.call(obj, key);
  63. }
  64. function noop() {}
  65. /**
  66. * Create a cached version of a pure function.
  67. */
  68. function cached(fn) {
  69. var cache = Object.create(null);
  70. return function cachedFn(str) {
  71. var hit = cache[str];
  72. return hit || (cache[str] = fn(str));
  73. };
  74. }
  75. /**
  76. * Camelize a hyphen-delimited string.
  77. */
  78. var camelizeRE = /-(\w)/g;
  79. var camelize = cached(function (str) {
  80. return str.replace(camelizeRE, function (_, c) {return c ? c.toUpperCase() : '';});
  81. });
  82. var HOOKS = [
  83. 'invoke',
  84. 'success',
  85. 'fail',
  86. 'complete',
  87. 'returnValue'];
  88. var globalInterceptors = {};
  89. var scopedInterceptors = {};
  90. function mergeHook(parentVal, childVal) {
  91. var res = childVal ?
  92. parentVal ?
  93. parentVal.concat(childVal) :
  94. Array.isArray(childVal) ?
  95. childVal : [childVal] :
  96. parentVal;
  97. return res ?
  98. dedupeHooks(res) :
  99. res;
  100. }
  101. function dedupeHooks(hooks) {
  102. var res = [];
  103. for (var i = 0; i < hooks.length; i++) {
  104. if (res.indexOf(hooks[i]) === -1) {
  105. res.push(hooks[i]);
  106. }
  107. }
  108. return res;
  109. }
  110. function removeHook(hooks, hook) {
  111. var index = hooks.indexOf(hook);
  112. if (index !== -1) {
  113. hooks.splice(index, 1);
  114. }
  115. }
  116. function mergeInterceptorHook(interceptor, option) {
  117. Object.keys(option).forEach(function (hook) {
  118. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  119. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  120. }
  121. });
  122. }
  123. function removeInterceptorHook(interceptor, option) {
  124. if (!interceptor || !option) {
  125. return;
  126. }
  127. Object.keys(option).forEach(function (hook) {
  128. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  129. removeHook(interceptor[hook], option[hook]);
  130. }
  131. });
  132. }
  133. function addInterceptor(method, option) {
  134. if (typeof method === 'string' && isPlainObject(option)) {
  135. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  136. } else if (isPlainObject(method)) {
  137. mergeInterceptorHook(globalInterceptors, method);
  138. }
  139. }
  140. function removeInterceptor(method, option) {
  141. if (typeof method === 'string') {
  142. if (isPlainObject(option)) {
  143. removeInterceptorHook(scopedInterceptors[method], option);
  144. } else {
  145. delete scopedInterceptors[method];
  146. }
  147. } else if (isPlainObject(method)) {
  148. removeInterceptorHook(globalInterceptors, method);
  149. }
  150. }
  151. function wrapperHook(hook) {
  152. return function (data) {
  153. return hook(data) || data;
  154. };
  155. }
  156. function isPromise(obj) {
  157. return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  158. }
  159. function queue(hooks, data) {
  160. var promise = false;
  161. for (var i = 0; i < hooks.length; i++) {
  162. var hook = hooks[i];
  163. if (promise) {
  164. promise = Promise.resolve(wrapperHook(hook));
  165. } else {
  166. var res = hook(data);
  167. if (isPromise(res)) {
  168. promise = Promise.resolve(res);
  169. }
  170. if (res === false) {
  171. return {
  172. then: function then() {} };
  173. }
  174. }
  175. }
  176. return promise || {
  177. then: function then(callback) {
  178. return callback(data);
  179. } };
  180. }
  181. function wrapperOptions(interceptor) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  182. ['success', 'fail', 'complete'].forEach(function (name) {
  183. if (Array.isArray(interceptor[name])) {
  184. var oldCallback = options[name];
  185. options[name] = function callbackInterceptor(res) {
  186. queue(interceptor[name], res).then(function (res) {
  187. /* eslint-disable no-mixed-operators */
  188. return isFn(oldCallback) && oldCallback(res) || res;
  189. });
  190. };
  191. }
  192. });
  193. return options;
  194. }
  195. function wrapperReturnValue(method, returnValue) {
  196. var returnValueHooks = [];
  197. if (Array.isArray(globalInterceptors.returnValue)) {
  198. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(globalInterceptors.returnValue));
  199. }
  200. var interceptor = scopedInterceptors[method];
  201. if (interceptor && Array.isArray(interceptor.returnValue)) {
  202. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(interceptor.returnValue));
  203. }
  204. returnValueHooks.forEach(function (hook) {
  205. returnValue = hook(returnValue) || returnValue;
  206. });
  207. return returnValue;
  208. }
  209. function getApiInterceptorHooks(method) {
  210. var interceptor = Object.create(null);
  211. Object.keys(globalInterceptors).forEach(function (hook) {
  212. if (hook !== 'returnValue') {
  213. interceptor[hook] = globalInterceptors[hook].slice();
  214. }
  215. });
  216. var scopedInterceptor = scopedInterceptors[method];
  217. if (scopedInterceptor) {
  218. Object.keys(scopedInterceptor).forEach(function (hook) {
  219. if (hook !== 'returnValue') {
  220. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  221. }
  222. });
  223. }
  224. return interceptor;
  225. }
  226. function invokeApi(method, api, options) {for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {params[_key - 3] = arguments[_key];}
  227. var interceptor = getApiInterceptorHooks(method);
  228. if (interceptor && Object.keys(interceptor).length) {
  229. if (Array.isArray(interceptor.invoke)) {
  230. var res = queue(interceptor.invoke, options);
  231. return res.then(function (options) {
  232. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  233. });
  234. } else {
  235. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  236. }
  237. }
  238. return api.apply(void 0, [options].concat(params));
  239. }
  240. var promiseInterceptor = {
  241. returnValue: function returnValue(res) {
  242. if (!isPromise(res)) {
  243. return res;
  244. }
  245. return new Promise(function (resolve, reject) {
  246. res.then(function (res) {
  247. if (res[0]) {
  248. reject(res[0]);
  249. } else {
  250. resolve(res[1]);
  251. }
  252. });
  253. });
  254. } };
  255. var SYNC_API_RE =
  256. /^\$|Window$|WindowStyle$|sendNativeEvent|restoreGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/;
  257. var CONTEXT_API_RE = /^create|Manager$/;
  258. // Context例外情况
  259. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  260. // 同步例外情况
  261. var ASYNC_API = ['createBLEConnection'];
  262. var CALLBACK_API_RE = /^on|^off/;
  263. function isContextApi(name) {
  264. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  265. }
  266. function isSyncApi(name) {
  267. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  268. }
  269. function isCallbackApi(name) {
  270. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  271. }
  272. function handlePromise(promise) {
  273. return promise.then(function (data) {
  274. return [null, data];
  275. }).
  276. catch(function (err) {return [err];});
  277. }
  278. function shouldPromise(name) {
  279. if (
  280. isContextApi(name) ||
  281. isSyncApi(name) ||
  282. isCallbackApi(name))
  283. {
  284. return false;
  285. }
  286. return true;
  287. }
  288. /* eslint-disable no-extend-native */
  289. if (!Promise.prototype.finally) {
  290. Promise.prototype.finally = function (callback) {
  291. var promise = this.constructor;
  292. return this.then(
  293. function (value) {return promise.resolve(callback()).then(function () {return value;});},
  294. function (reason) {return promise.resolve(callback()).then(function () {
  295. throw reason;
  296. });});
  297. };
  298. }
  299. function promisify(name, api) {
  300. if (!shouldPromise(name)) {
  301. return api;
  302. }
  303. return function promiseApi() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {params[_key2 - 1] = arguments[_key2];}
  304. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  305. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  306. }
  307. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  308. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  309. success: resolve,
  310. fail: reject })].concat(
  311. params));
  312. })));
  313. };
  314. }
  315. var EPS = 1e-4;
  316. var BASE_DEVICE_WIDTH = 750;
  317. var isIOS = false;
  318. var deviceWidth = 0;
  319. var deviceDPR = 0;
  320. function checkDeviceWidth() {var _wx$getSystemInfoSync =
  321. wx.getSystemInfoSync(),platform = _wx$getSystemInfoSync.platform,pixelRatio = _wx$getSystemInfoSync.pixelRatio,windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  322. deviceWidth = windowWidth;
  323. deviceDPR = pixelRatio;
  324. isIOS = platform === 'ios';
  325. }
  326. function upx2px(number, newDeviceWidth) {
  327. if (deviceWidth === 0) {
  328. checkDeviceWidth();
  329. }
  330. number = Number(number);
  331. if (number === 0) {
  332. return 0;
  333. }
  334. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  335. if (result < 0) {
  336. result = -result;
  337. }
  338. result = Math.floor(result + EPS);
  339. if (result === 0) {
  340. if (deviceDPR === 1 || !isIOS) {
  341. result = 1;
  342. } else {
  343. result = 0.5;
  344. }
  345. }
  346. return number < 0 ? -result : result;
  347. }
  348. var interceptors = {
  349. promiseInterceptor: promiseInterceptor };
  350. var baseApi = /*#__PURE__*/Object.freeze({
  351. __proto__: null,
  352. upx2px: upx2px,
  353. addInterceptor: addInterceptor,
  354. removeInterceptor: removeInterceptor,
  355. interceptors: interceptors });
  356. function findExistsPageIndex(url) {
  357. var pages = getCurrentPages();
  358. var len = pages.length;
  359. while (len--) {
  360. var page = pages[len];
  361. if (page.$page && page.$page.fullPath === url) {
  362. return len;
  363. }
  364. }
  365. return -1;
  366. }
  367. var redirectTo = {
  368. name: function name(fromArgs) {
  369. if (fromArgs.exists === 'back' && fromArgs.delta) {
  370. return 'navigateBack';
  371. }
  372. return 'redirectTo';
  373. },
  374. args: function args(fromArgs) {
  375. if (fromArgs.exists === 'back' && fromArgs.url) {
  376. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  377. if (existsPageIndex !== -1) {
  378. var delta = getCurrentPages().length - 1 - existsPageIndex;
  379. if (delta > 0) {
  380. fromArgs.delta = delta;
  381. }
  382. }
  383. }
  384. } };
  385. var previewImage = {
  386. args: function args(fromArgs) {
  387. var currentIndex = parseInt(fromArgs.current);
  388. if (isNaN(currentIndex)) {
  389. return;
  390. }
  391. var urls = fromArgs.urls;
  392. if (!Array.isArray(urls)) {
  393. return;
  394. }
  395. var len = urls.length;
  396. if (!len) {
  397. return;
  398. }
  399. if (currentIndex < 0) {
  400. currentIndex = 0;
  401. } else if (currentIndex >= len) {
  402. currentIndex = len - 1;
  403. }
  404. if (currentIndex > 0) {
  405. fromArgs.current = urls[currentIndex];
  406. fromArgs.urls = urls.filter(
  407. function (item, index) {return index < currentIndex ? item !== urls[currentIndex] : true;});
  408. } else {
  409. fromArgs.current = urls[0];
  410. }
  411. return {
  412. indicator: false,
  413. loop: false };
  414. } };
  415. var UUID_KEY = '__DC_STAT_UUID';
  416. var deviceId;
  417. function addUuid(result) {
  418. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  419. if (!deviceId) {
  420. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  421. wx.setStorage({
  422. key: UUID_KEY,
  423. data: deviceId });
  424. }
  425. result.deviceId = deviceId;
  426. }
  427. function addSafeAreaInsets(result) {
  428. if (result.safeArea) {
  429. var safeArea = result.safeArea;
  430. result.safeAreaInsets = {
  431. top: safeArea.top,
  432. left: safeArea.left,
  433. right: result.windowWidth - safeArea.right,
  434. bottom: result.windowHeight - safeArea.bottom };
  435. }
  436. }
  437. var getSystemInfo = {
  438. returnValue: function returnValue(result) {
  439. addUuid(result);
  440. addSafeAreaInsets(result);
  441. } };
  442. // import navigateTo from 'uni-helpers/navigate-to'
  443. var protocols = {
  444. redirectTo: redirectTo,
  445. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  446. previewImage: previewImage,
  447. getSystemInfo: getSystemInfo,
  448. getSystemInfoSync: getSystemInfo };
  449. var todos = [
  450. 'vibrate',
  451. 'preloadPage',
  452. 'unPreloadPage',
  453. 'loadSubPackage'];
  454. var canIUses = [];
  455. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  456. function processCallback(methodName, method, returnValue) {
  457. return function (res) {
  458. return method(processReturnValue(methodName, res, returnValue));
  459. };
  460. }
  461. function processArgs(methodName, fromArgs) {var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  462. if (isPlainObject(fromArgs)) {// 一般 api 的参数解析
  463. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  464. if (isFn(argsOption)) {
  465. argsOption = argsOption(fromArgs, toArgs) || {};
  466. }
  467. for (var key in fromArgs) {
  468. if (hasOwn(argsOption, key)) {
  469. var keyOption = argsOption[key];
  470. if (isFn(keyOption)) {
  471. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  472. }
  473. if (!keyOption) {// 不支持的参数
  474. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  475. } else if (isStr(keyOption)) {// 重写参数 key
  476. toArgs[keyOption] = fromArgs[key];
  477. } else if (isPlainObject(keyOption)) {// {name:newName,value:value}可重新指定参数 key:value
  478. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  479. }
  480. } else if (CALLBACKS.indexOf(key) !== -1) {
  481. if (isFn(fromArgs[key])) {
  482. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  483. }
  484. } else {
  485. if (!keepFromArgs) {
  486. toArgs[key] = fromArgs[key];
  487. }
  488. }
  489. }
  490. return toArgs;
  491. } else if (isFn(fromArgs)) {
  492. fromArgs = processCallback(methodName, fromArgs, returnValue);
  493. }
  494. return fromArgs;
  495. }
  496. function processReturnValue(methodName, res, returnValue) {var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  497. if (isFn(protocols.returnValue)) {// 处理通用 returnValue
  498. res = protocols.returnValue(methodName, res);
  499. }
  500. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  501. }
  502. function wrapper(methodName, method) {
  503. if (hasOwn(protocols, methodName)) {
  504. var protocol = protocols[methodName];
  505. if (!protocol) {// 暂不支持的 api
  506. return function () {
  507. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  508. };
  509. }
  510. return function (arg1, arg2) {// 目前 api 最多两个参数
  511. var options = protocol;
  512. if (isFn(protocol)) {
  513. options = protocol(arg1);
  514. }
  515. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  516. var args = [arg1];
  517. if (typeof arg2 !== 'undefined') {
  518. args.push(arg2);
  519. }
  520. if (isFn(options.name)) {
  521. methodName = options.name(arg1);
  522. } else if (isStr(options.name)) {
  523. methodName = options.name;
  524. }
  525. var returnValue = wx[methodName].apply(wx, args);
  526. if (isSyncApi(methodName)) {// 同步 api
  527. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  528. }
  529. return returnValue;
  530. };
  531. }
  532. return method;
  533. }
  534. var todoApis = Object.create(null);
  535. var TODOS = [
  536. 'onTabBarMidButtonTap',
  537. 'subscribePush',
  538. 'unsubscribePush',
  539. 'onPush',
  540. 'offPush',
  541. 'share'];
  542. function createTodoApi(name) {
  543. return function todoApi(_ref)
  544. {var fail = _ref.fail,complete = _ref.complete;
  545. var res = {
  546. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported") };
  547. isFn(fail) && fail(res);
  548. isFn(complete) && complete(res);
  549. };
  550. }
  551. TODOS.forEach(function (name) {
  552. todoApis[name] = createTodoApi(name);
  553. });
  554. var providers = {
  555. oauth: ['weixin'],
  556. share: ['weixin'],
  557. payment: ['wxpay'],
  558. push: ['weixin'] };
  559. function getProvider(_ref2)
  560. {var service = _ref2.service,success = _ref2.success,fail = _ref2.fail,complete = _ref2.complete;
  561. var res = false;
  562. if (providers[service]) {
  563. res = {
  564. errMsg: 'getProvider:ok',
  565. service: service,
  566. provider: providers[service] };
  567. isFn(success) && success(res);
  568. } else {
  569. res = {
  570. errMsg: 'getProvider:fail service not found' };
  571. isFn(fail) && fail(res);
  572. }
  573. isFn(complete) && complete(res);
  574. }
  575. var extraApi = /*#__PURE__*/Object.freeze({
  576. __proto__: null,
  577. getProvider: getProvider });
  578. var getEmitter = function () {
  579. var Emitter;
  580. return function getUniEmitter() {
  581. if (!Emitter) {
  582. Emitter = new _vue.default();
  583. }
  584. return Emitter;
  585. };
  586. }();
  587. function apply(ctx, method, args) {
  588. return ctx[method].apply(ctx, args);
  589. }
  590. function $on() {
  591. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  592. }
  593. function $off() {
  594. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  595. }
  596. function $once() {
  597. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  598. }
  599. function $emit() {
  600. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  601. }
  602. var eventApi = /*#__PURE__*/Object.freeze({
  603. __proto__: null,
  604. $on: $on,
  605. $off: $off,
  606. $once: $once,
  607. $emit: $emit });
  608. var api = /*#__PURE__*/Object.freeze({
  609. __proto__: null });
  610. var MPPage = Page;
  611. var MPComponent = Component;
  612. var customizeRE = /:/g;
  613. var customize = cached(function (str) {
  614. return camelize(str.replace(customizeRE, '-'));
  615. });
  616. function initTriggerEvent(mpInstance) {
  617. {
  618. if (!wx.canIUse || !wx.canIUse('nextTick')) {
  619. return;
  620. }
  621. }
  622. var oldTriggerEvent = mpInstance.triggerEvent;
  623. mpInstance.triggerEvent = function (event) {for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {args[_key3 - 1] = arguments[_key3];}
  624. return oldTriggerEvent.apply(mpInstance, [customize(event)].concat(args));
  625. };
  626. }
  627. function initHook(name, options) {
  628. var oldHook = options[name];
  629. if (!oldHook) {
  630. options[name] = function () {
  631. initTriggerEvent(this);
  632. };
  633. } else {
  634. options[name] = function () {
  635. initTriggerEvent(this);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}
  636. return oldHook.apply(this, args);
  637. };
  638. }
  639. }
  640. if (!MPPage.__$wrappered) {
  641. MPPage.__$wrappered = true;
  642. Page = function Page() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  643. initHook('onLoad', options);
  644. return MPPage(options);
  645. };
  646. Page.after = MPPage.after;
  647. Component = function Component() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  648. initHook('created', options);
  649. return MPComponent(options);
  650. };
  651. }
  652. var PAGE_EVENT_HOOKS = [
  653. 'onPullDownRefresh',
  654. 'onReachBottom',
  655. 'onAddToFavorites',
  656. 'onShareTimeline',
  657. 'onShareAppMessage',
  658. 'onPageScroll',
  659. 'onResize',
  660. 'onTabItemTap'];
  661. function initMocks(vm, mocks) {
  662. var mpInstance = vm.$mp[vm.mpType];
  663. mocks.forEach(function (mock) {
  664. if (hasOwn(mpInstance, mock)) {
  665. vm[mock] = mpInstance[mock];
  666. }
  667. });
  668. }
  669. function hasHook(hook, vueOptions) {
  670. if (!vueOptions) {
  671. return true;
  672. }
  673. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  674. return true;
  675. }
  676. vueOptions = vueOptions.default || vueOptions;
  677. if (isFn(vueOptions)) {
  678. if (isFn(vueOptions.extendOptions[hook])) {
  679. return true;
  680. }
  681. if (vueOptions.super &&
  682. vueOptions.super.options &&
  683. Array.isArray(vueOptions.super.options[hook])) {
  684. return true;
  685. }
  686. return false;
  687. }
  688. if (isFn(vueOptions[hook])) {
  689. return true;
  690. }
  691. var mixins = vueOptions.mixins;
  692. if (Array.isArray(mixins)) {
  693. return !!mixins.find(function (mixin) {return hasHook(hook, mixin);});
  694. }
  695. }
  696. function initHooks(mpOptions, hooks, vueOptions) {
  697. hooks.forEach(function (hook) {
  698. if (hasHook(hook, vueOptions)) {
  699. mpOptions[hook] = function (args) {
  700. return this.$vm && this.$vm.__call_hook(hook, args);
  701. };
  702. }
  703. });
  704. }
  705. function initVueComponent(Vue, vueOptions) {
  706. vueOptions = vueOptions.default || vueOptions;
  707. var VueComponent;
  708. if (isFn(vueOptions)) {
  709. VueComponent = vueOptions;
  710. } else {
  711. VueComponent = Vue.extend(vueOptions);
  712. }
  713. vueOptions = VueComponent.options;
  714. return [VueComponent, vueOptions];
  715. }
  716. function initSlots(vm, vueSlots) {
  717. if (Array.isArray(vueSlots) && vueSlots.length) {
  718. var $slots = Object.create(null);
  719. vueSlots.forEach(function (slotName) {
  720. $slots[slotName] = true;
  721. });
  722. vm.$scopedSlots = vm.$slots = $slots;
  723. }
  724. }
  725. function initVueIds(vueIds, mpInstance) {
  726. vueIds = (vueIds || '').split(',');
  727. var len = vueIds.length;
  728. if (len === 1) {
  729. mpInstance._$vueId = vueIds[0];
  730. } else if (len === 2) {
  731. mpInstance._$vueId = vueIds[0];
  732. mpInstance._$vuePid = vueIds[1];
  733. }
  734. }
  735. function initData(vueOptions, context) {
  736. var data = vueOptions.data || {};
  737. var methods = vueOptions.methods || {};
  738. if (typeof data === 'function') {
  739. try {
  740. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  741. } catch (e) {
  742. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"dx","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  743. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  744. }
  745. }
  746. } else {
  747. try {
  748. // 对 data 格式化
  749. data = JSON.parse(JSON.stringify(data));
  750. } catch (e) {}
  751. }
  752. if (!isPlainObject(data)) {
  753. data = {};
  754. }
  755. Object.keys(methods).forEach(function (methodName) {
  756. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  757. data[methodName] = methods[methodName];
  758. }
  759. });
  760. return data;
  761. }
  762. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  763. function createObserver(name) {
  764. return function observer(newVal, oldVal) {
  765. if (this.$vm) {
  766. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  767. }
  768. };
  769. }
  770. function initBehaviors(vueOptions, initBehavior) {
  771. var vueBehaviors = vueOptions.behaviors;
  772. var vueExtends = vueOptions.extends;
  773. var vueMixins = vueOptions.mixins;
  774. var vueProps = vueOptions.props;
  775. if (!vueProps) {
  776. vueOptions.props = vueProps = [];
  777. }
  778. var behaviors = [];
  779. if (Array.isArray(vueBehaviors)) {
  780. vueBehaviors.forEach(function (behavior) {
  781. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  782. if (behavior === 'uni://form-field') {
  783. if (Array.isArray(vueProps)) {
  784. vueProps.push('name');
  785. vueProps.push('value');
  786. } else {
  787. vueProps.name = {
  788. type: String,
  789. default: '' };
  790. vueProps.value = {
  791. type: [String, Number, Boolean, Array, Object, Date],
  792. default: '' };
  793. }
  794. }
  795. });
  796. }
  797. if (isPlainObject(vueExtends) && vueExtends.props) {
  798. behaviors.push(
  799. initBehavior({
  800. properties: initProperties(vueExtends.props, true) }));
  801. }
  802. if (Array.isArray(vueMixins)) {
  803. vueMixins.forEach(function (vueMixin) {
  804. if (isPlainObject(vueMixin) && vueMixin.props) {
  805. behaviors.push(
  806. initBehavior({
  807. properties: initProperties(vueMixin.props, true) }));
  808. }
  809. });
  810. }
  811. return behaviors;
  812. }
  813. function parsePropType(key, type, defaultValue, file) {
  814. // [String]=>String
  815. if (Array.isArray(type) && type.length === 1) {
  816. return type[0];
  817. }
  818. return type;
  819. }
  820. function initProperties(props) {var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  821. var properties = {};
  822. if (!isBehavior) {
  823. properties.vueId = {
  824. type: String,
  825. value: '' };
  826. // 用于字节跳动小程序模拟抽象节点
  827. properties.generic = {
  828. type: Object,
  829. value: null };
  830. // scopedSlotsCompiler auto
  831. properties.scopedSlotsCompiler = {
  832. type: String,
  833. value: '' };
  834. properties.vueSlots = { // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  835. type: null,
  836. value: [],
  837. observer: function observer(newVal, oldVal) {
  838. var $slots = Object.create(null);
  839. newVal.forEach(function (slotName) {
  840. $slots[slotName] = true;
  841. });
  842. this.setData({
  843. $slots: $slots });
  844. } };
  845. }
  846. if (Array.isArray(props)) {// ['title']
  847. props.forEach(function (key) {
  848. properties[key] = {
  849. type: null,
  850. observer: createObserver(key) };
  851. });
  852. } else if (isPlainObject(props)) {// {title:{type:String,default:''},content:String}
  853. Object.keys(props).forEach(function (key) {
  854. var opts = props[key];
  855. if (isPlainObject(opts)) {// title:{type:String,default:''}
  856. var value = opts.default;
  857. if (isFn(value)) {
  858. value = value();
  859. }
  860. opts.type = parsePropType(key, opts.type);
  861. properties[key] = {
  862. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  863. value: value,
  864. observer: createObserver(key) };
  865. } else {// content:String
  866. var type = parsePropType(key, opts);
  867. properties[key] = {
  868. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  869. observer: createObserver(key) };
  870. }
  871. });
  872. }
  873. return properties;
  874. }
  875. function wrapper$1(event) {
  876. // TODO 又得兼容 mpvue 的 mp 对象
  877. try {
  878. event.mp = JSON.parse(JSON.stringify(event));
  879. } catch (e) {}
  880. event.stopPropagation = noop;
  881. event.preventDefault = noop;
  882. event.target = event.target || {};
  883. if (!hasOwn(event, 'detail')) {
  884. event.detail = {};
  885. }
  886. if (hasOwn(event, 'markerId')) {
  887. event.detail = typeof event.detail === 'object' ? event.detail : {};
  888. event.detail.markerId = event.markerId;
  889. }
  890. if (isPlainObject(event.detail)) {
  891. event.target = Object.assign({}, event.target, event.detail);
  892. }
  893. return event;
  894. }
  895. function getExtraValue(vm, dataPathsArray) {
  896. var context = vm;
  897. dataPathsArray.forEach(function (dataPathArray) {
  898. var dataPath = dataPathArray[0];
  899. var value = dataPathArray[2];
  900. if (dataPath || typeof value !== 'undefined') {// ['','',index,'disable']
  901. var propPath = dataPathArray[1];
  902. var valuePath = dataPathArray[3];
  903. var vFor;
  904. if (Number.isInteger(dataPath)) {
  905. vFor = dataPath;
  906. } else if (!dataPath) {
  907. vFor = context;
  908. } else if (typeof dataPath === 'string' && dataPath) {
  909. if (dataPath.indexOf('#s#') === 0) {
  910. vFor = dataPath.substr(3);
  911. } else {
  912. vFor = vm.__get_value(dataPath, context);
  913. }
  914. }
  915. if (Number.isInteger(vFor)) {
  916. context = value;
  917. } else if (!propPath) {
  918. context = vFor[value];
  919. } else {
  920. if (Array.isArray(vFor)) {
  921. context = vFor.find(function (vForItem) {
  922. return vm.__get_value(propPath, vForItem) === value;
  923. });
  924. } else if (isPlainObject(vFor)) {
  925. context = Object.keys(vFor).find(function (vForKey) {
  926. return vm.__get_value(propPath, vFor[vForKey]) === value;
  927. });
  928. } else {
  929. console.error('v-for 暂不支持循环数据:', vFor);
  930. }
  931. }
  932. if (valuePath) {
  933. context = vm.__get_value(valuePath, context);
  934. }
  935. }
  936. });
  937. return context;
  938. }
  939. function processEventExtra(vm, extra, event) {
  940. var extraObj = {};
  941. if (Array.isArray(extra) && extra.length) {
  942. /**
  943. *[
  944. * ['data.items', 'data.id', item.data.id],
  945. * ['metas', 'id', meta.id]
  946. *],
  947. *[
  948. * ['data.items', 'data.id', item.data.id],
  949. * ['metas', 'id', meta.id]
  950. *],
  951. *'test'
  952. */
  953. extra.forEach(function (dataPath, index) {
  954. if (typeof dataPath === 'string') {
  955. if (!dataPath) {// model,prop.sync
  956. extraObj['$' + index] = vm;
  957. } else {
  958. if (dataPath === '$event') {// $event
  959. extraObj['$' + index] = event;
  960. } else if (dataPath === 'arguments') {
  961. if (event.detail && event.detail.__args__) {
  962. extraObj['$' + index] = event.detail.__args__;
  963. } else {
  964. extraObj['$' + index] = [event];
  965. }
  966. } else if (dataPath.indexOf('$event.') === 0) {// $event.target.value
  967. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  968. } else {
  969. extraObj['$' + index] = vm.__get_value(dataPath);
  970. }
  971. }
  972. } else {
  973. extraObj['$' + index] = getExtraValue(vm, dataPath);
  974. }
  975. });
  976. }
  977. return extraObj;
  978. }
  979. function getObjByArray(arr) {
  980. var obj = {};
  981. for (var i = 1; i < arr.length; i++) {
  982. var element = arr[i];
  983. obj[element[0]] = element[1];
  984. }
  985. return obj;
  986. }
  987. function processEventArgs(vm, event) {var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];var isCustom = arguments.length > 4 ? arguments[4] : undefined;var methodName = arguments.length > 5 ? arguments[5] : undefined;
  988. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  989. if (isCustom) {// 自定义事件
  990. isCustomMPEvent = event.currentTarget &&
  991. event.currentTarget.dataset &&
  992. event.currentTarget.dataset.comType === 'wx';
  993. if (!args.length) {// 无参数,直接传入 event 或 detail 数组
  994. if (isCustomMPEvent) {
  995. return [event];
  996. }
  997. return event.detail.__args__ || event.detail;
  998. }
  999. }
  1000. var extraObj = processEventExtra(vm, extra, event);
  1001. var ret = [];
  1002. args.forEach(function (arg) {
  1003. if (arg === '$event') {
  1004. if (methodName === '__set_model' && !isCustom) {// input v-model value
  1005. ret.push(event.target.value);
  1006. } else {
  1007. if (isCustom && !isCustomMPEvent) {
  1008. ret.push(event.detail.__args__[0]);
  1009. } else {// wxcomponent 组件或内置组件
  1010. ret.push(event);
  1011. }
  1012. }
  1013. } else {
  1014. if (Array.isArray(arg) && arg[0] === 'o') {
  1015. ret.push(getObjByArray(arg));
  1016. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1017. ret.push(extraObj[arg]);
  1018. } else {
  1019. ret.push(arg);
  1020. }
  1021. }
  1022. });
  1023. return ret;
  1024. }
  1025. var ONCE = '~';
  1026. var CUSTOM = '^';
  1027. function isMatchEventType(eventType, optType) {
  1028. return eventType === optType ||
  1029. optType === 'regionchange' && (
  1030. eventType === 'begin' ||
  1031. eventType === 'end');
  1032. }
  1033. function getContextVm(vm) {
  1034. var $parent = vm.$parent;
  1035. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1036. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1037. $parent = $parent.$parent;
  1038. }
  1039. return $parent && $parent.$parent;
  1040. }
  1041. function handleEvent(event) {var _this = this;
  1042. event = wrapper$1(event);
  1043. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1044. var dataset = (event.currentTarget || event.target).dataset;
  1045. if (!dataset) {
  1046. return console.warn('事件信息不存在');
  1047. }
  1048. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1049. if (!eventOpts) {
  1050. return console.warn('事件信息不存在');
  1051. }
  1052. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1053. var eventType = event.type;
  1054. var ret = [];
  1055. eventOpts.forEach(function (eventOpt) {
  1056. var type = eventOpt[0];
  1057. var eventsArray = eventOpt[1];
  1058. var isCustom = type.charAt(0) === CUSTOM;
  1059. type = isCustom ? type.slice(1) : type;
  1060. var isOnce = type.charAt(0) === ONCE;
  1061. type = isOnce ? type.slice(1) : type;
  1062. if (eventsArray && isMatchEventType(eventType, type)) {
  1063. eventsArray.forEach(function (eventArray) {
  1064. var methodName = eventArray[0];
  1065. if (methodName) {
  1066. var handlerCtx = _this.$vm;
  1067. if (handlerCtx.$options.generic) {// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1068. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1069. }
  1070. if (methodName === '$emit') {
  1071. handlerCtx.$emit.apply(handlerCtx,
  1072. processEventArgs(
  1073. _this.$vm,
  1074. event,
  1075. eventArray[1],
  1076. eventArray[2],
  1077. isCustom,
  1078. methodName));
  1079. return;
  1080. }
  1081. var handler = handlerCtx[methodName];
  1082. if (!isFn(handler)) {
  1083. throw new Error(" _vm.".concat(methodName, " is not a function"));
  1084. }
  1085. if (isOnce) {
  1086. if (handler.once) {
  1087. return;
  1088. }
  1089. handler.once = true;
  1090. }
  1091. var params = processEventArgs(
  1092. _this.$vm,
  1093. event,
  1094. eventArray[1],
  1095. eventArray[2],
  1096. isCustom,
  1097. methodName);
  1098. params = Array.isArray(params) ? params : [];
  1099. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1100. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1101. // eslint-disable-next-line no-sparse-arrays
  1102. params = params.concat([,,,,,,,,,, event]);
  1103. }
  1104. ret.push(handler.apply(handlerCtx, params));
  1105. }
  1106. });
  1107. }
  1108. });
  1109. if (
  1110. eventType === 'input' &&
  1111. ret.length === 1 &&
  1112. typeof ret[0] !== 'undefined')
  1113. {
  1114. return ret[0];
  1115. }
  1116. }
  1117. var eventChannels = {};
  1118. var eventChannelStack = [];
  1119. function getEventChannel(id) {
  1120. if (id) {
  1121. var eventChannel = eventChannels[id];
  1122. delete eventChannels[id];
  1123. return eventChannel;
  1124. }
  1125. return eventChannelStack.shift();
  1126. }
  1127. var hooks = [
  1128. 'onShow',
  1129. 'onHide',
  1130. 'onError',
  1131. 'onPageNotFound',
  1132. 'onThemeChange',
  1133. 'onUnhandledRejection'];
  1134. function initEventChannel() {
  1135. _vue.default.prototype.getOpenerEventChannel = function () {
  1136. // 微信小程序使用自身getOpenerEventChannel
  1137. {
  1138. return this.$scope.getOpenerEventChannel();
  1139. }
  1140. };
  1141. var callHook = _vue.default.prototype.__call_hook;
  1142. _vue.default.prototype.__call_hook = function (hook, args) {
  1143. if (hook === 'onLoad' && args && args.__id__) {
  1144. this.__eventChannel__ = getEventChannel(args.__id__);
  1145. delete args.__id__;
  1146. }
  1147. return callHook.call(this, hook, args);
  1148. };
  1149. }
  1150. function initScopedSlotsParams() {
  1151. var center = {};
  1152. var parents = {};
  1153. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1154. var has = center[vueId];
  1155. if (!has) {
  1156. parents[vueId] = this;
  1157. this.$on('hook:destory', function () {
  1158. delete parents[vueId];
  1159. });
  1160. }
  1161. return has;
  1162. };
  1163. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1164. var data = center[vueId];
  1165. if (data) {
  1166. var object = data[name] || {};
  1167. return key ? object[key] : object;
  1168. } else {
  1169. parents[vueId] = this;
  1170. this.$on('hook:destory', function () {
  1171. delete parents[vueId];
  1172. });
  1173. }
  1174. };
  1175. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1176. var vueIds = this.$options.propsData.vueId;
  1177. if (vueIds) {
  1178. var vueId = vueIds.split(',')[0];
  1179. var object = center[vueId] = center[vueId] || {};
  1180. object[name] = value;
  1181. if (parents[vueId]) {
  1182. parents[vueId].$forceUpdate();
  1183. }
  1184. }
  1185. };
  1186. _vue.default.mixin({
  1187. destroyed: function destroyed() {
  1188. var propsData = this.$options.propsData;
  1189. var vueId = propsData && propsData.vueId;
  1190. if (vueId) {
  1191. delete center[vueId];
  1192. delete parents[vueId];
  1193. }
  1194. } });
  1195. }
  1196. function parseBaseApp(vm, _ref3)
  1197. {var mocks = _ref3.mocks,initRefs = _ref3.initRefs;
  1198. initEventChannel();
  1199. {
  1200. initScopedSlotsParams();
  1201. }
  1202. if (vm.$options.store) {
  1203. _vue.default.prototype.$store = vm.$options.store;
  1204. }
  1205. uniIdMixin(_vue.default);
  1206. _vue.default.prototype.mpHost = "mp-weixin";
  1207. _vue.default.mixin({
  1208. beforeCreate: function beforeCreate() {
  1209. if (!this.$options.mpType) {
  1210. return;
  1211. }
  1212. this.mpType = this.$options.mpType;
  1213. this.$mp = _defineProperty({
  1214. data: {} },
  1215. this.mpType, this.$options.mpInstance);
  1216. this.$scope = this.$options.mpInstance;
  1217. delete this.$options.mpType;
  1218. delete this.$options.mpInstance;
  1219. if (this.mpType === 'page' && typeof getApp === 'function') {// hack vue-i18n
  1220. var app = getApp();
  1221. if (app.$vm && app.$vm.$i18n) {
  1222. this._i18n = app.$vm.$i18n;
  1223. }
  1224. }
  1225. if (this.mpType !== 'app') {
  1226. initRefs(this);
  1227. initMocks(this, mocks);
  1228. }
  1229. } });
  1230. var appOptions = {
  1231. onLaunch: function onLaunch(args) {
  1232. if (this.$vm) {// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  1233. return;
  1234. }
  1235. {
  1236. if (wx.canIUse && !wx.canIUse('nextTick')) {// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  1237. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  1238. }
  1239. }
  1240. this.$vm = vm;
  1241. this.$vm.$mp = {
  1242. app: this };
  1243. this.$vm.$scope = this;
  1244. // vm 上也挂载 globalData
  1245. this.$vm.globalData = this.globalData;
  1246. this.$vm._isMounted = true;
  1247. this.$vm.__call_hook('mounted', args);
  1248. this.$vm.__call_hook('onLaunch', args);
  1249. } };
  1250. // 兼容旧版本 globalData
  1251. appOptions.globalData = vm.$options.globalData || {};
  1252. // 将 methods 中的方法挂在 getApp() 中
  1253. var methods = vm.$options.methods;
  1254. if (methods) {
  1255. Object.keys(methods).forEach(function (name) {
  1256. appOptions[name] = methods[name];
  1257. });
  1258. }
  1259. initHooks(appOptions, hooks);
  1260. return appOptions;
  1261. }
  1262. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1263. function findVmByVueId(vm, vuePid) {
  1264. var $children = vm.$children;
  1265. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1266. for (var i = $children.length - 1; i >= 0; i--) {
  1267. var childVm = $children[i];
  1268. if (childVm.$scope._$vueId === vuePid) {
  1269. return childVm;
  1270. }
  1271. }
  1272. // 反向递归查找
  1273. var parentVm;
  1274. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1275. parentVm = findVmByVueId($children[_i], vuePid);
  1276. if (parentVm) {
  1277. return parentVm;
  1278. }
  1279. }
  1280. }
  1281. function initBehavior(options) {
  1282. return Behavior(options);
  1283. }
  1284. function isPage() {
  1285. return !!this.route;
  1286. }
  1287. function initRelation(detail) {
  1288. this.triggerEvent('__l', detail);
  1289. }
  1290. function selectAllComponents(mpInstance, selector, $refs) {
  1291. var components = mpInstance.selectAllComponents(selector);
  1292. components.forEach(function (component) {
  1293. var ref = component.dataset.ref;
  1294. $refs[ref] = component.$vm || component;
  1295. {
  1296. if (component.dataset.vueGeneric === 'scoped') {
  1297. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1298. selectAllComponents(scopedComponent, selector, $refs);
  1299. });
  1300. }
  1301. }
  1302. });
  1303. }
  1304. function initRefs(vm) {
  1305. var mpInstance = vm.$scope;
  1306. Object.defineProperty(vm, '$refs', {
  1307. get: function get() {
  1308. var $refs = {};
  1309. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1310. // TODO 暂不考虑 for 中的 scoped
  1311. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
  1312. forComponents.forEach(function (component) {
  1313. var ref = component.dataset.ref;
  1314. if (!$refs[ref]) {
  1315. $refs[ref] = [];
  1316. }
  1317. $refs[ref].push(component.$vm || component);
  1318. });
  1319. return $refs;
  1320. } });
  1321. }
  1322. function handleLink(event) {var _ref4 =
  1323. event.detail || event.value,vuePid = _ref4.vuePid,vueOptions = _ref4.vueOptions; // detail 是微信,value 是百度(dipatch)
  1324. var parentVm;
  1325. if (vuePid) {
  1326. parentVm = findVmByVueId(this.$vm, vuePid);
  1327. }
  1328. if (!parentVm) {
  1329. parentVm = this.$vm;
  1330. }
  1331. vueOptions.parent = parentVm;
  1332. }
  1333. function parseApp(vm) {
  1334. return parseBaseApp(vm, {
  1335. mocks: mocks,
  1336. initRefs: initRefs });
  1337. }
  1338. function createApp(vm) {
  1339. App(parseApp(vm));
  1340. return vm;
  1341. }
  1342. var encodeReserveRE = /[!'()*]/g;
  1343. var encodeReserveReplacer = function encodeReserveReplacer(c) {return '%' + c.charCodeAt(0).toString(16);};
  1344. var commaRE = /%2C/g;
  1345. // fixed encodeURIComponent which is more conformant to RFC3986:
  1346. // - escapes [!'()*]
  1347. // - preserve commas
  1348. var encode = function encode(str) {return encodeURIComponent(str).
  1349. replace(encodeReserveRE, encodeReserveReplacer).
  1350. replace(commaRE, ',');};
  1351. function stringifyQuery(obj) {var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  1352. var res = obj ? Object.keys(obj).map(function (key) {
  1353. var val = obj[key];
  1354. if (val === undefined) {
  1355. return '';
  1356. }
  1357. if (val === null) {
  1358. return encodeStr(key);
  1359. }
  1360. if (Array.isArray(val)) {
  1361. var result = [];
  1362. val.forEach(function (val2) {
  1363. if (val2 === undefined) {
  1364. return;
  1365. }
  1366. if (val2 === null) {
  1367. result.push(encodeStr(key));
  1368. } else {
  1369. result.push(encodeStr(key) + '=' + encodeStr(val2));
  1370. }
  1371. });
  1372. return result.join('&');
  1373. }
  1374. return encodeStr(key) + '=' + encodeStr(val);
  1375. }).filter(function (x) {return x.length > 0;}).join('&') : null;
  1376. return res ? "?".concat(res) : '';
  1377. }
  1378. function parseBaseComponent(vueComponentOptions)
  1379. {var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},isPage = _ref5.isPage,initRelation = _ref5.initRelation;var _initVueComponent =
  1380. initVueComponent(_vue.default, vueComponentOptions),_initVueComponent2 = _slicedToArray(_initVueComponent, 2),VueComponent = _initVueComponent2[0],vueOptions = _initVueComponent2[1];
  1381. var options = _objectSpread({
  1382. multipleSlots: true,
  1383. addGlobalClass: true },
  1384. vueOptions.options || {});
  1385. {
  1386. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  1387. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  1388. Object.assign(options, vueOptions['mp-weixin'].options);
  1389. }
  1390. }
  1391. var componentOptions = {
  1392. options: options,
  1393. data: initData(vueOptions, _vue.default.prototype),
  1394. behaviors: initBehaviors(vueOptions, initBehavior),
  1395. properties: initProperties(vueOptions.props, false, vueOptions.__file),
  1396. lifetimes: {
  1397. attached: function attached() {
  1398. var properties = this.properties;
  1399. var options = {
  1400. mpType: isPage.call(this) ? 'page' : 'component',
  1401. mpInstance: this,
  1402. propsData: properties };
  1403. initVueIds(properties.vueId, this);
  1404. // 处理父子关系
  1405. initRelation.call(this, {
  1406. vuePid: this._$vuePid,
  1407. vueOptions: options });
  1408. // 初始化 vue 实例
  1409. this.$vm = new VueComponent(options);
  1410. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  1411. initSlots(this.$vm, properties.vueSlots);
  1412. // 触发首次 setData
  1413. this.$vm.$mount();
  1414. },
  1415. ready: function ready() {
  1416. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  1417. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  1418. if (this.$vm) {
  1419. this.$vm._isMounted = true;
  1420. this.$vm.__call_hook('mounted');
  1421. this.$vm.__call_hook('onReady');
  1422. }
  1423. },
  1424. detached: function detached() {
  1425. this.$vm && this.$vm.$destroy();
  1426. } },
  1427. pageLifetimes: {
  1428. show: function show(args) {
  1429. this.$vm && this.$vm.__call_hook('onPageShow', args);
  1430. },
  1431. hide: function hide() {
  1432. this.$vm && this.$vm.__call_hook('onPageHide');
  1433. },
  1434. resize: function resize(size) {
  1435. this.$vm && this.$vm.__call_hook('onPageResize', size);
  1436. } },
  1437. methods: {
  1438. __l: handleLink,
  1439. __e: handleEvent } };
  1440. // externalClasses
  1441. if (vueOptions.externalClasses) {
  1442. componentOptions.externalClasses = vueOptions.externalClasses;
  1443. }
  1444. if (Array.isArray(vueOptions.wxsCallMethods)) {
  1445. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  1446. componentOptions.methods[callMethod] = function (args) {
  1447. return this.$vm[callMethod](args);
  1448. };
  1449. });
  1450. }
  1451. if (isPage) {
  1452. return componentOptions;
  1453. }
  1454. return [componentOptions, VueComponent];
  1455. }
  1456. function parseComponent(vueComponentOptions) {
  1457. return parseBaseComponent(vueComponentOptions, {
  1458. isPage: isPage,
  1459. initRelation: initRelation });
  1460. }
  1461. var hooks$1 = [
  1462. 'onShow',
  1463. 'onHide',
  1464. 'onUnload'];
  1465. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  1466. function parseBasePage(vuePageOptions, _ref6)
  1467. {var isPage = _ref6.isPage,initRelation = _ref6.initRelation;
  1468. var pageOptions = parseComponent(vuePageOptions);
  1469. initHooks(pageOptions.methods, hooks$1, vuePageOptions);
  1470. pageOptions.methods.onLoad = function (query) {
  1471. this.options = query;
  1472. var copyQuery = Object.assign({}, query);
  1473. delete copyQuery.__id__;
  1474. this.$page = {
  1475. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery) };
  1476. this.$vm.$mp.query = query; // 兼容 mpvue
  1477. this.$vm.__call_hook('onLoad', query);
  1478. };
  1479. return pageOptions;
  1480. }
  1481. function parsePage(vuePageOptions) {
  1482. return parseBasePage(vuePageOptions, {
  1483. isPage: isPage,
  1484. initRelation: initRelation });
  1485. }
  1486. function createPage(vuePageOptions) {
  1487. {
  1488. return Component(parsePage(vuePageOptions));
  1489. }
  1490. }
  1491. function createComponent(vueOptions) {
  1492. {
  1493. return Component(parseComponent(vueOptions));
  1494. }
  1495. }
  1496. function createSubpackageApp(vm) {
  1497. var appOptions = parseApp(vm);
  1498. var app = getApp({
  1499. allowDefault: true });
  1500. vm.$scope = app;
  1501. var globalData = app.globalData;
  1502. if (globalData) {
  1503. Object.keys(appOptions.globalData).forEach(function (name) {
  1504. if (!hasOwn(globalData, name)) {
  1505. globalData[name] = appOptions.globalData[name];
  1506. }
  1507. });
  1508. }
  1509. Object.keys(appOptions).forEach(function (name) {
  1510. if (!hasOwn(app, name)) {
  1511. app[name] = appOptions[name];
  1512. }
  1513. });
  1514. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1515. wx.onAppShow(function () {for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}
  1516. vm.__call_hook('onShow', args);
  1517. });
  1518. }
  1519. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1520. wx.onAppHide(function () {for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}
  1521. vm.__call_hook('onHide', args);
  1522. });
  1523. }
  1524. if (isFn(appOptions.onLaunch)) {
  1525. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1526. vm.__call_hook('onLaunch', args);
  1527. }
  1528. return vm;
  1529. }
  1530. function createPlugin(vm) {
  1531. var appOptions = parseApp(vm);
  1532. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1533. wx.onAppShow(function () {for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {args[_key7] = arguments[_key7];}
  1534. appOptions.onShow.apply(vm, args);
  1535. });
  1536. }
  1537. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1538. wx.onAppHide(function () {for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {args[_key8] = arguments[_key8];}
  1539. appOptions.onHide.apply(vm, args);
  1540. });
  1541. }
  1542. if (isFn(appOptions.onLaunch)) {
  1543. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1544. appOptions.onLaunch.call(vm, args);
  1545. }
  1546. return vm;
  1547. }
  1548. todos.forEach(function (todoApi) {
  1549. protocols[todoApi] = false;
  1550. });
  1551. canIUses.forEach(function (canIUseApi) {
  1552. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name :
  1553. canIUseApi;
  1554. if (!wx.canIUse(apiName)) {
  1555. protocols[canIUseApi] = false;
  1556. }
  1557. });
  1558. var uni = {};
  1559. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  1560. uni = new Proxy({}, {
  1561. get: function get(target, name) {
  1562. if (hasOwn(target, name)) {
  1563. return target[name];
  1564. }
  1565. if (baseApi[name]) {
  1566. return baseApi[name];
  1567. }
  1568. if (api[name]) {
  1569. return promisify(name, api[name]);
  1570. }
  1571. {
  1572. if (extraApi[name]) {
  1573. return promisify(name, extraApi[name]);
  1574. }
  1575. if (todoApis[name]) {
  1576. return promisify(name, todoApis[name]);
  1577. }
  1578. }
  1579. if (eventApi[name]) {
  1580. return eventApi[name];
  1581. }
  1582. if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
  1583. return;
  1584. }
  1585. return promisify(name, wrapper(name, wx[name]));
  1586. },
  1587. set: function set(target, name, value) {
  1588. target[name] = value;
  1589. return true;
  1590. } });
  1591. } else {
  1592. Object.keys(baseApi).forEach(function (name) {
  1593. uni[name] = baseApi[name];
  1594. });
  1595. {
  1596. Object.keys(todoApis).forEach(function (name) {
  1597. uni[name] = promisify(name, todoApis[name]);
  1598. });
  1599. Object.keys(extraApi).forEach(function (name) {
  1600. uni[name] = promisify(name, todoApis[name]);
  1601. });
  1602. }
  1603. Object.keys(eventApi).forEach(function (name) {
  1604. uni[name] = eventApi[name];
  1605. });
  1606. Object.keys(api).forEach(function (name) {
  1607. uni[name] = promisify(name, api[name]);
  1608. });
  1609. Object.keys(wx).forEach(function (name) {
  1610. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  1611. uni[name] = promisify(name, wrapper(name, wx[name]));
  1612. }
  1613. });
  1614. }
  1615. wx.createApp = createApp;
  1616. wx.createPage = createPage;
  1617. wx.createComponent = createComponent;
  1618. wx.createSubpackageApp = createSubpackageApp;
  1619. wx.createPlugin = createPlugin;
  1620. var uni$1 = uni;var _default =
  1621. uni$1;exports.default = _default;
  1622. /***/ }),
  1623. /***/ 10:
  1624. /*!**********************************************************************************************************!*\
  1625. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  1626. \**********************************************************************************************************/
  1627. /*! exports provided: default */
  1628. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1629. "use strict";
  1630. __webpack_require__.r(__webpack_exports__);
  1631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  1632. /* globals __VUE_SSR_CONTEXT__ */
  1633. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  1634. // This module is a runtime utility for cleaner component module output and will
  1635. // be included in the final webpack user bundle.
  1636. function normalizeComponent (
  1637. scriptExports,
  1638. render,
  1639. staticRenderFns,
  1640. functionalTemplate,
  1641. injectStyles,
  1642. scopeId,
  1643. moduleIdentifier, /* server only */
  1644. shadowMode, /* vue-cli only */
  1645. components, // fixed by xxxxxx auto components
  1646. renderjs // fixed by xxxxxx renderjs
  1647. ) {
  1648. // Vue.extend constructor export interop
  1649. var options = typeof scriptExports === 'function'
  1650. ? scriptExports.options
  1651. : scriptExports
  1652. // fixed by xxxxxx auto components
  1653. if (components) {
  1654. if (!options.components) {
  1655. options.components = {}
  1656. }
  1657. var hasOwn = Object.prototype.hasOwnProperty
  1658. for (var name in components) {
  1659. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  1660. options.components[name] = components[name]
  1661. }
  1662. }
  1663. }
  1664. // fixed by xxxxxx renderjs
  1665. if (renderjs) {
  1666. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  1667. this[renderjs.__module] = this
  1668. });
  1669. (options.mixins || (options.mixins = [])).push(renderjs)
  1670. }
  1671. // render functions
  1672. if (render) {
  1673. options.render = render
  1674. options.staticRenderFns = staticRenderFns
  1675. options._compiled = true
  1676. }
  1677. // functional template
  1678. if (functionalTemplate) {
  1679. options.functional = true
  1680. }
  1681. // scopedId
  1682. if (scopeId) {
  1683. options._scopeId = 'data-v-' + scopeId
  1684. }
  1685. var hook
  1686. if (moduleIdentifier) { // server build
  1687. hook = function (context) {
  1688. // 2.3 injection
  1689. context =
  1690. context || // cached call
  1691. (this.$vnode && this.$vnode.ssrContext) || // stateful
  1692. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  1693. // 2.2 with runInNewContext: true
  1694. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  1695. context = __VUE_SSR_CONTEXT__
  1696. }
  1697. // inject component styles
  1698. if (injectStyles) {
  1699. injectStyles.call(this, context)
  1700. }
  1701. // register component module identifier for async chunk inferrence
  1702. if (context && context._registeredComponents) {
  1703. context._registeredComponents.add(moduleIdentifier)
  1704. }
  1705. }
  1706. // used by ssr in case component is cached and beforeCreate
  1707. // never gets called
  1708. options._ssrRegister = hook
  1709. } else if (injectStyles) {
  1710. hook = shadowMode
  1711. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  1712. : injectStyles
  1713. }
  1714. if (hook) {
  1715. if (options.functional) {
  1716. // for template-only hot-reload because in that case the render fn doesn't
  1717. // go through the normalizer
  1718. options._injectStyles = hook
  1719. // register for functioal component in vue file
  1720. var originalRender = options.render
  1721. options.render = function renderWithStyleInjection (h, context) {
  1722. hook.call(context)
  1723. return originalRender(h, context)
  1724. }
  1725. } else {
  1726. // inject component registration as beforeCreate hook
  1727. var existing = options.beforeCreate
  1728. options.beforeCreate = existing
  1729. ? [].concat(existing, hook)
  1730. : [hook]
  1731. }
  1732. }
  1733. return {
  1734. exports: scriptExports,
  1735. options: options
  1736. }
  1737. }
  1738. /***/ }),
  1739. /***/ 15:
  1740. /*!************************************************************!*\
  1741. !*** C:/Users/admin/Desktop/DX-xcx/pages/img/recharge.png ***!
  1742. \************************************************************/
  1743. /*! no static exports found */
  1744. /***/ (function(module, exports) {
  1745. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAV8AAABaCAYAAAAfD1WGAAAgAElEQVR4Xu2de8wm1V3Hf/O87y67C112ha6FSkKL1KVCbaJcysXAQiIljZoSK6ZJSQRRYw2C2zbxDzVSNcbGSmxjqvyhTYxRWSxICAWRQmXbghoaKpACLRGkhGyQXWBv7/s+Y86Z25kz53c7M/Nc50kWdp9n5sy5fs73fM9lEkA++z6WXpKuwB2Qwm7smqX7fiRJcWovShLJteZCwXXBa7LnlJ+ECYp7Tvm7F65NDBE2FW4SCCsqvBSPQP78RjRqXzjxwOJLhtPM62CpoWEE8kFQl7Lg8ntD1zNpybI6v19wrV+fimeXt6rDqKfb3q4KI1zuunDo9FNhrWw27dhcEW4ToTrghfcsQHLjnk9vfwy91v1h3y+m56cJPC5AwnJdImgsWYZMB74s7ElIukXZrGho2GyYSvhinQzznODPGvg619ZuwzokDcDttXr4Vo9IAbC6F4qHl+4ocHrpjg+jSndUGCbfvDTqwqE7XQy8oxWA0YqrOBTwRerGeAQXXLX35Cc8vVT9887r0n0A8NHloqowtQr4siBESwCJCwal4vJ5Ur2U8tXCN7++cVvjC5n6w8MRKF8U4EgHxNQnFr5MB1BTvZjiZMNI6+xjYe+OxAKqV6V8I1RvI3wdfE27XdnkF6QcvPbxlFAYJXft2bv9WqfZZn8dwMtAWATf6ahe0hagKnyjFgyWQ60WhFSrRvXavNer3qrIBsvBb5WYWrXXKTtd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hosys9dCT5dCl6mUHDowgCcHI3kK2NXo0SAGOXWJGPHcMowuvvPXkx8tL7r0p3ZcCfHR6RFU8WdwQCeVrhscmnNwKgNBB3aEoYccqOqqWjB4X90mq3rxyclGqwbcVeKsOkVstQKtnQV0JKfq+thNzjdxnQCgPmXzVWg51+Com2oJpye/34tglfNk6iLWLWHVKCRJO9ZK/h/OqxEMCd11+y85rG0Hce1P6jynALwiq9nQvoSpqDtXEHJmYn6jVaWQXCb4hQJGZtYCWAws9VzzN/ioHv/gy5auAbzA/2k60OZ0uAi6ZYJFPlE5V9WJpTJJ/uvyWHR9zdFq9uO75lfT8JIHHOwVWm8AKdVoo1Mb5AljgueoVvFRRHD0OvOzRctwwyI3JYDmUucHKIq8EsU4l4vjI6tF8x0PVI51KzEPSqr1APq3Z5Wbdr3LQpYe3mhYDvrjqHcPGhecosaMAAABiSURBVFfeemqNq2ia774hvWS0AncAwG4xnDQXFj6qiYEYqPqDaMhVBZr4mms5+HKrBjiIDJaDLZHBcoiAL1K31o6Ma7VcB01HsQ6WQ1U30Xbswzd5Nl0f3bjn09sfC6Hm/wH38aCzalQQMwAAAABJRU5ErkJggg=="
  1746. /***/ }),
  1747. /***/ 18:
  1748. /*!*********************************************************************************!*\
  1749. !*** C:/Users/admin/Desktop/DX-xcx/wxcomponents/vant/weapp/dist/toast/toast.js ***!
  1750. \*********************************************************************************/
  1751. /*! no static exports found */
  1752. /***/ (function(module, exports, __webpack_require__) {
  1753. "use strict";
  1754. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _validator = __webpack_require__(/*! ../common/validator */ 19);
  1755. var defaultOptions = {
  1756. type: 'text',
  1757. mask: false,
  1758. message: '',
  1759. show: true,
  1760. zIndex: 1000,
  1761. duration: 2000,
  1762. position: 'middle',
  1763. forbidClick: false,
  1764. loadingType: 'circular',
  1765. selector: '#van-toast' };
  1766. var queue = [];
  1767. var currentOptions = Object.assign({}, defaultOptions);
  1768. function parseOptions(message) {
  1769. return (0, _validator.isObj)(message) ? message : { message: message };
  1770. }
  1771. function getContext() {
  1772. var pages = getCurrentPages();
  1773. return pages[pages.length - 1];
  1774. }
  1775. function Toast(toastOptions) {
  1776. var options = Object.assign(Object.assign({}, currentOptions), parseOptions(toastOptions));
  1777. var context = options.context || getContext();
  1778. var toast = context.selectComponent(options.selector);
  1779. if (!toast) {
  1780. console.warn('未找到 van-toast 节点,请确认 selector 及 context 是否正确');
  1781. return;
  1782. }
  1783. delete options.context;
  1784. delete options.selector;
  1785. toast.clear = function () {
  1786. toast.setData({ show: false });
  1787. if (options.onClose) {
  1788. options.onClose();
  1789. }
  1790. };
  1791. queue.push(toast);
  1792. toast.setData(options);
  1793. clearTimeout(toast.timer);
  1794. if (options.duration != null && options.duration > 0) {
  1795. toast.timer = setTimeout(function () {
  1796. toast.clear();
  1797. queue = queue.filter(function (item) {return item !== toast;});
  1798. }, options.duration);
  1799. }
  1800. return toast;
  1801. }
  1802. var createMethod = function createMethod(type) {return function (options) {return Toast(Object.assign({ type: type }, parseOptions(options)));};};
  1803. Toast.loading = createMethod('loading');
  1804. Toast.success = createMethod('success');
  1805. Toast.fail = createMethod('fail');
  1806. Toast.clear = function () {
  1807. queue.forEach(function (toast) {
  1808. toast.clear();
  1809. });
  1810. queue = [];
  1811. };
  1812. Toast.setDefaultOptions = function (options) {
  1813. Object.assign(currentOptions, options);
  1814. };
  1815. Toast.resetDefaultOptions = function () {
  1816. currentOptions = Object.assign({}, defaultOptions);
  1817. };var _default =
  1818. Toast;exports.default = _default;
  1819. /***/ }),
  1820. /***/ 19:
  1821. /*!**************************************************************************************!*\
  1822. !*** C:/Users/admin/Desktop/DX-xcx/wxcomponents/vant/weapp/dist/common/validator.js ***!
  1823. \**************************************************************************************/
  1824. /*! no static exports found */
  1825. /***/ (function(module, exports, __webpack_require__) {
  1826. "use strict";
  1827. Object.defineProperty(exports, "__esModule", { value: true });exports.isFunction = isFunction;exports.isPlainObject = isPlainObject;exports.isPromise = isPromise;exports.isDef = isDef;exports.isObj = isObj;exports.isNumber = isNumber;exports.isBoolean = isBoolean;exports.isImageUrl = isImageUrl;exports.isVideoUrl = isVideoUrl; // eslint-disable-next-line @typescript-eslint/ban-types
  1828. function isFunction(val) {
  1829. return typeof val === 'function';
  1830. }
  1831. function isPlainObject(val) {
  1832. return val !== null && typeof val === 'object' && !Array.isArray(val);
  1833. }
  1834. function isPromise(val) {
  1835. return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
  1836. }
  1837. function isDef(value) {
  1838. return value !== undefined && value !== null;
  1839. }
  1840. function isObj(x) {
  1841. var type = typeof x;
  1842. return x !== null && (type === 'object' || type === 'function');
  1843. }
  1844. function isNumber(value) {
  1845. return /^\d+(\.\d+)?$/.test(value);
  1846. }
  1847. function isBoolean(value) {
  1848. return typeof value === 'boolean';
  1849. }
  1850. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  1851. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
  1852. function isImageUrl(url) {
  1853. return IMAGE_REGEXP.test(url);
  1854. }
  1855. function isVideoUrl(url) {
  1856. return VIDEO_REGEXP.test(url);
  1857. }
  1858. /***/ }),
  1859. /***/ 2:
  1860. /*!******************************************************************************************!*\
  1861. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  1862. \******************************************************************************************/
  1863. /*! exports provided: default */
  1864. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1865. "use strict";
  1866. __webpack_require__.r(__webpack_exports__);
  1867. /* WEBPACK VAR INJECTION */(function(global) {/*!
  1868. * Vue.js v2.6.11
  1869. * (c) 2014-2021 Evan You
  1870. * Released under the MIT License.
  1871. */
  1872. /* */
  1873. var emptyObject = Object.freeze({});
  1874. // These helpers produce better VM code in JS engines due to their
  1875. // explicitness and function inlining.
  1876. function isUndef (v) {
  1877. return v === undefined || v === null
  1878. }
  1879. function isDef (v) {
  1880. return v !== undefined && v !== null
  1881. }
  1882. function isTrue (v) {
  1883. return v === true
  1884. }
  1885. function isFalse (v) {
  1886. return v === false
  1887. }
  1888. /**
  1889. * Check if value is primitive.
  1890. */
  1891. function isPrimitive (value) {
  1892. return (
  1893. typeof value === 'string' ||
  1894. typeof value === 'number' ||
  1895. // $flow-disable-line
  1896. typeof value === 'symbol' ||
  1897. typeof value === 'boolean'
  1898. )
  1899. }
  1900. /**
  1901. * Quick object check - this is primarily used to tell
  1902. * Objects from primitive values when we know the value
  1903. * is a JSON-compliant type.
  1904. */
  1905. function isObject (obj) {
  1906. return obj !== null && typeof obj === 'object'
  1907. }
  1908. /**
  1909. * Get the raw type string of a value, e.g., [object Object].
  1910. */
  1911. var _toString = Object.prototype.toString;
  1912. function toRawType (value) {
  1913. return _toString.call(value).slice(8, -1)
  1914. }
  1915. /**
  1916. * Strict object type check. Only returns true
  1917. * for plain JavaScript objects.
  1918. */
  1919. function isPlainObject (obj) {
  1920. return _toString.call(obj) === '[object Object]'
  1921. }
  1922. function isRegExp (v) {
  1923. return _toString.call(v) === '[object RegExp]'
  1924. }
  1925. /**
  1926. * Check if val is a valid array index.
  1927. */
  1928. function isValidArrayIndex (val) {
  1929. var n = parseFloat(String(val));
  1930. return n >= 0 && Math.floor(n) === n && isFinite(val)
  1931. }
  1932. function isPromise (val) {
  1933. return (
  1934. isDef(val) &&
  1935. typeof val.then === 'function' &&
  1936. typeof val.catch === 'function'
  1937. )
  1938. }
  1939. /**
  1940. * Convert a value to a string that is actually rendered.
  1941. */
  1942. function toString (val) {
  1943. return val == null
  1944. ? ''
  1945. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  1946. ? JSON.stringify(val, null, 2)
  1947. : String(val)
  1948. }
  1949. /**
  1950. * Convert an input value to a number for persistence.
  1951. * If the conversion fails, return original string.
  1952. */
  1953. function toNumber (val) {
  1954. var n = parseFloat(val);
  1955. return isNaN(n) ? val : n
  1956. }
  1957. /**
  1958. * Make a map and return a function for checking if a key
  1959. * is in that map.
  1960. */
  1961. function makeMap (
  1962. str,
  1963. expectsLowerCase
  1964. ) {
  1965. var map = Object.create(null);
  1966. var list = str.split(',');
  1967. for (var i = 0; i < list.length; i++) {
  1968. map[list[i]] = true;
  1969. }
  1970. return expectsLowerCase
  1971. ? function (val) { return map[val.toLowerCase()]; }
  1972. : function (val) { return map[val]; }
  1973. }
  1974. /**
  1975. * Check if a tag is a built-in tag.
  1976. */
  1977. var isBuiltInTag = makeMap('slot,component', true);
  1978. /**
  1979. * Check if an attribute is a reserved attribute.
  1980. */
  1981. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  1982. /**
  1983. * Remove an item from an array.
  1984. */
  1985. function remove (arr, item) {
  1986. if (arr.length) {
  1987. var index = arr.indexOf(item);
  1988. if (index > -1) {
  1989. return arr.splice(index, 1)
  1990. }
  1991. }
  1992. }
  1993. /**
  1994. * Check whether an object has the property.
  1995. */
  1996. var hasOwnProperty = Object.prototype.hasOwnProperty;
  1997. function hasOwn (obj, key) {
  1998. return hasOwnProperty.call(obj, key)
  1999. }
  2000. /**
  2001. * Create a cached version of a pure function.
  2002. */
  2003. function cached (fn) {
  2004. var cache = Object.create(null);
  2005. return (function cachedFn (str) {
  2006. var hit = cache[str];
  2007. return hit || (cache[str] = fn(str))
  2008. })
  2009. }
  2010. /**
  2011. * Camelize a hyphen-delimited string.
  2012. */
  2013. var camelizeRE = /-(\w)/g;
  2014. var camelize = cached(function (str) {
  2015. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  2016. });
  2017. /**
  2018. * Capitalize a string.
  2019. */
  2020. var capitalize = cached(function (str) {
  2021. return str.charAt(0).toUpperCase() + str.slice(1)
  2022. });
  2023. /**
  2024. * Hyphenate a camelCase string.
  2025. */
  2026. var hyphenateRE = /\B([A-Z])/g;
  2027. var hyphenate = cached(function (str) {
  2028. return str.replace(hyphenateRE, '-$1').toLowerCase()
  2029. });
  2030. /**
  2031. * Simple bind polyfill for environments that do not support it,
  2032. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  2033. * since native bind is now performant enough in most browsers.
  2034. * But removing it would mean breaking code that was able to run in
  2035. * PhantomJS 1.x, so this must be kept for backward compatibility.
  2036. */
  2037. /* istanbul ignore next */
  2038. function polyfillBind (fn, ctx) {
  2039. function boundFn (a) {
  2040. var l = arguments.length;
  2041. return l
  2042. ? l > 1
  2043. ? fn.apply(ctx, arguments)
  2044. : fn.call(ctx, a)
  2045. : fn.call(ctx)
  2046. }
  2047. boundFn._length = fn.length;
  2048. return boundFn
  2049. }
  2050. function nativeBind (fn, ctx) {
  2051. return fn.bind(ctx)
  2052. }
  2053. var bind = Function.prototype.bind
  2054. ? nativeBind
  2055. : polyfillBind;
  2056. /**
  2057. * Convert an Array-like object to a real Array.
  2058. */
  2059. function toArray (list, start) {
  2060. start = start || 0;
  2061. var i = list.length - start;
  2062. var ret = new Array(i);
  2063. while (i--) {
  2064. ret[i] = list[i + start];
  2065. }
  2066. return ret
  2067. }
  2068. /**
  2069. * Mix properties into target object.
  2070. */
  2071. function extend (to, _from) {
  2072. for (var key in _from) {
  2073. to[key] = _from[key];
  2074. }
  2075. return to
  2076. }
  2077. /**
  2078. * Merge an Array of Objects into a single Object.
  2079. */
  2080. function toObject (arr) {
  2081. var res = {};
  2082. for (var i = 0; i < arr.length; i++) {
  2083. if (arr[i]) {
  2084. extend(res, arr[i]);
  2085. }
  2086. }
  2087. return res
  2088. }
  2089. /* eslint-disable no-unused-vars */
  2090. /**
  2091. * Perform no operation.
  2092. * Stubbing args to make Flow happy without leaving useless transpiled code
  2093. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  2094. */
  2095. function noop (a, b, c) {}
  2096. /**
  2097. * Always return false.
  2098. */
  2099. var no = function (a, b, c) { return false; };
  2100. /* eslint-enable no-unused-vars */
  2101. /**
  2102. * Return the same value.
  2103. */
  2104. var identity = function (_) { return _; };
  2105. /**
  2106. * Check if two values are loosely equal - that is,
  2107. * if they are plain objects, do they have the same shape?
  2108. */
  2109. function looseEqual (a, b) {
  2110. if (a === b) { return true }
  2111. var isObjectA = isObject(a);
  2112. var isObjectB = isObject(b);
  2113. if (isObjectA && isObjectB) {
  2114. try {
  2115. var isArrayA = Array.isArray(a);
  2116. var isArrayB = Array.isArray(b);
  2117. if (isArrayA && isArrayB) {
  2118. return a.length === b.length && a.every(function (e, i) {
  2119. return looseEqual(e, b[i])
  2120. })
  2121. } else if (a instanceof Date && b instanceof Date) {
  2122. return a.getTime() === b.getTime()
  2123. } else if (!isArrayA && !isArrayB) {
  2124. var keysA = Object.keys(a);
  2125. var keysB = Object.keys(b);
  2126. return keysA.length === keysB.length && keysA.every(function (key) {
  2127. return looseEqual(a[key], b[key])
  2128. })
  2129. } else {
  2130. /* istanbul ignore next */
  2131. return false
  2132. }
  2133. } catch (e) {
  2134. /* istanbul ignore next */
  2135. return false
  2136. }
  2137. } else if (!isObjectA && !isObjectB) {
  2138. return String(a) === String(b)
  2139. } else {
  2140. return false
  2141. }
  2142. }
  2143. /**
  2144. * Return the first index at which a loosely equal value can be
  2145. * found in the array (if value is a plain object, the array must
  2146. * contain an object of the same shape), or -1 if it is not present.
  2147. */
  2148. function looseIndexOf (arr, val) {
  2149. for (var i = 0; i < arr.length; i++) {
  2150. if (looseEqual(arr[i], val)) { return i }
  2151. }
  2152. return -1
  2153. }
  2154. /**
  2155. * Ensure a function is called only once.
  2156. */
  2157. function once (fn) {
  2158. var called = false;
  2159. return function () {
  2160. if (!called) {
  2161. called = true;
  2162. fn.apply(this, arguments);
  2163. }
  2164. }
  2165. }
  2166. var ASSET_TYPES = [
  2167. 'component',
  2168. 'directive',
  2169. 'filter'
  2170. ];
  2171. var LIFECYCLE_HOOKS = [
  2172. 'beforeCreate',
  2173. 'created',
  2174. 'beforeMount',
  2175. 'mounted',
  2176. 'beforeUpdate',
  2177. 'updated',
  2178. 'beforeDestroy',
  2179. 'destroyed',
  2180. 'activated',
  2181. 'deactivated',
  2182. 'errorCaptured',
  2183. 'serverPrefetch'
  2184. ];
  2185. /* */
  2186. var config = ({
  2187. /**
  2188. * Option merge strategies (used in core/util/options)
  2189. */
  2190. // $flow-disable-line
  2191. optionMergeStrategies: Object.create(null),
  2192. /**
  2193. * Whether to suppress warnings.
  2194. */
  2195. silent: false,
  2196. /**
  2197. * Show production mode tip message on boot?
  2198. */
  2199. productionTip: "development" !== 'production',
  2200. /**
  2201. * Whether to enable devtools
  2202. */
  2203. devtools: "development" !== 'production',
  2204. /**
  2205. * Whether to record perf
  2206. */
  2207. performance: false,
  2208. /**
  2209. * Error handler for watcher errors
  2210. */
  2211. errorHandler: null,
  2212. /**
  2213. * Warn handler for watcher warns
  2214. */
  2215. warnHandler: null,
  2216. /**
  2217. * Ignore certain custom elements
  2218. */
  2219. ignoredElements: [],
  2220. /**
  2221. * Custom user key aliases for v-on
  2222. */
  2223. // $flow-disable-line
  2224. keyCodes: Object.create(null),
  2225. /**
  2226. * Check if a tag is reserved so that it cannot be registered as a
  2227. * component. This is platform-dependent and may be overwritten.
  2228. */
  2229. isReservedTag: no,
  2230. /**
  2231. * Check if an attribute is reserved so that it cannot be used as a component
  2232. * prop. This is platform-dependent and may be overwritten.
  2233. */
  2234. isReservedAttr: no,
  2235. /**
  2236. * Check if a tag is an unknown element.
  2237. * Platform-dependent.
  2238. */
  2239. isUnknownElement: no,
  2240. /**
  2241. * Get the namespace of an element
  2242. */
  2243. getTagNamespace: noop,
  2244. /**
  2245. * Parse the real tag name for the specific platform.
  2246. */
  2247. parsePlatformTagName: identity,
  2248. /**
  2249. * Check if an attribute must be bound using property, e.g. value
  2250. * Platform-dependent.
  2251. */
  2252. mustUseProp: no,
  2253. /**
  2254. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  2255. * This will significantly reduce performance if set to false.
  2256. */
  2257. async: true,
  2258. /**
  2259. * Exposed for legacy reasons
  2260. */
  2261. _lifecycleHooks: LIFECYCLE_HOOKS
  2262. });
  2263. /* */
  2264. /**
  2265. * unicode letters used for parsing html tags, component names and property paths.
  2266. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  2267. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  2268. */
  2269. var unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
  2270. /**
  2271. * Check if a string starts with $ or _
  2272. */
  2273. function isReserved (str) {
  2274. var c = (str + '').charCodeAt(0);
  2275. return c === 0x24 || c === 0x5F
  2276. }
  2277. /**
  2278. * Define a property.
  2279. */
  2280. function def (obj, key, val, enumerable) {
  2281. Object.defineProperty(obj, key, {
  2282. value: val,
  2283. enumerable: !!enumerable,
  2284. writable: true,
  2285. configurable: true
  2286. });
  2287. }
  2288. /**
  2289. * Parse simple path.
  2290. */
  2291. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  2292. function parsePath (path) {
  2293. if (bailRE.test(path)) {
  2294. return
  2295. }
  2296. var segments = path.split('.');
  2297. return function (obj) {
  2298. for (var i = 0; i < segments.length; i++) {
  2299. if (!obj) { return }
  2300. obj = obj[segments[i]];
  2301. }
  2302. return obj
  2303. }
  2304. }
  2305. /* */
  2306. // can we use __proto__?
  2307. var hasProto = '__proto__' in {};
  2308. // Browser environment sniffing
  2309. var inBrowser = typeof window !== 'undefined';
  2310. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  2311. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  2312. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  2313. var isIE = UA && /msie|trident/.test(UA);
  2314. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  2315. var isEdge = UA && UA.indexOf('edge/') > 0;
  2316. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  2317. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  2318. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  2319. var isPhantomJS = UA && /phantomjs/.test(UA);
  2320. var isFF = UA && UA.match(/firefox\/(\d+)/);
  2321. // Firefox has a "watch" function on Object.prototype...
  2322. var nativeWatch = ({}).watch;
  2323. if (inBrowser) {
  2324. try {
  2325. var opts = {};
  2326. Object.defineProperty(opts, 'passive', ({
  2327. get: function get () {
  2328. }
  2329. })); // https://github.com/facebook/flow/issues/285
  2330. window.addEventListener('test-passive', null, opts);
  2331. } catch (e) {}
  2332. }
  2333. // this needs to be lazy-evaled because vue may be required before
  2334. // vue-server-renderer can set VUE_ENV
  2335. var _isServer;
  2336. var isServerRendering = function () {
  2337. if (_isServer === undefined) {
  2338. /* istanbul ignore if */
  2339. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  2340. // detect presence of vue-server-renderer and avoid
  2341. // Webpack shimming the process
  2342. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  2343. } else {
  2344. _isServer = false;
  2345. }
  2346. }
  2347. return _isServer
  2348. };
  2349. // detect devtools
  2350. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  2351. /* istanbul ignore next */
  2352. function isNative (Ctor) {
  2353. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  2354. }
  2355. var hasSymbol =
  2356. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  2357. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  2358. var _Set;
  2359. /* istanbul ignore if */ // $flow-disable-line
  2360. if (typeof Set !== 'undefined' && isNative(Set)) {
  2361. // use native Set when available.
  2362. _Set = Set;
  2363. } else {
  2364. // a non-standard Set polyfill that only works with primitive keys.
  2365. _Set = /*@__PURE__*/(function () {
  2366. function Set () {
  2367. this.set = Object.create(null);
  2368. }
  2369. Set.prototype.has = function has (key) {
  2370. return this.set[key] === true
  2371. };
  2372. Set.prototype.add = function add (key) {
  2373. this.set[key] = true;
  2374. };
  2375. Set.prototype.clear = function clear () {
  2376. this.set = Object.create(null);
  2377. };
  2378. return Set;
  2379. }());
  2380. }
  2381. /* */
  2382. var warn = noop;
  2383. var tip = noop;
  2384. var generateComponentTrace = (noop); // work around flow check
  2385. var formatComponentName = (noop);
  2386. if (true) {
  2387. var hasConsole = typeof console !== 'undefined';
  2388. var classifyRE = /(?:^|[-_])(\w)/g;
  2389. var classify = function (str) { return str
  2390. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  2391. .replace(/[-_]/g, ''); };
  2392. warn = function (msg, vm) {
  2393. var trace = vm ? generateComponentTrace(vm) : '';
  2394. if (config.warnHandler) {
  2395. config.warnHandler.call(null, msg, vm, trace);
  2396. } else if (hasConsole && (!config.silent)) {
  2397. console.error(("[Vue warn]: " + msg + trace));
  2398. }
  2399. };
  2400. tip = function (msg, vm) {
  2401. if (hasConsole && (!config.silent)) {
  2402. console.warn("[Vue tip]: " + msg + (
  2403. vm ? generateComponentTrace(vm) : ''
  2404. ));
  2405. }
  2406. };
  2407. formatComponentName = function (vm, includeFile) {
  2408. if (vm.$root === vm) {
  2409. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  2410. return ('') + vm.$options.__file
  2411. }
  2412. return '<Root>'
  2413. }
  2414. var options = typeof vm === 'function' && vm.cid != null
  2415. ? vm.options
  2416. : vm._isVue
  2417. ? vm.$options || vm.constructor.options
  2418. : vm;
  2419. var name = options.name || options._componentTag;
  2420. var file = options.__file;
  2421. if (!name && file) {
  2422. var match = file.match(/([^/\\]+)\.vue$/);
  2423. name = match && match[1];
  2424. }
  2425. return (
  2426. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  2427. (file && includeFile !== false ? (" at " + file) : '')
  2428. )
  2429. };
  2430. var repeat = function (str, n) {
  2431. var res = '';
  2432. while (n) {
  2433. if (n % 2 === 1) { res += str; }
  2434. if (n > 1) { str += str; }
  2435. n >>= 1;
  2436. }
  2437. return res
  2438. };
  2439. generateComponentTrace = function (vm) {
  2440. if (vm._isVue && vm.$parent) {
  2441. var tree = [];
  2442. var currentRecursiveSequence = 0;
  2443. while (vm && vm.$options.name !== 'PageBody') {
  2444. if (tree.length > 0) {
  2445. var last = tree[tree.length - 1];
  2446. if (last.constructor === vm.constructor) {
  2447. currentRecursiveSequence++;
  2448. vm = vm.$parent;
  2449. continue
  2450. } else if (currentRecursiveSequence > 0) {
  2451. tree[tree.length - 1] = [last, currentRecursiveSequence];
  2452. currentRecursiveSequence = 0;
  2453. }
  2454. }
  2455. !vm.$options.isReserved && tree.push(vm);
  2456. vm = vm.$parent;
  2457. }
  2458. return '\n\nfound in\n\n' + tree
  2459. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  2460. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  2461. : formatComponentName(vm))); })
  2462. .join('\n')
  2463. } else {
  2464. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  2465. }
  2466. };
  2467. }
  2468. /* */
  2469. var uid = 0;
  2470. /**
  2471. * A dep is an observable that can have multiple
  2472. * directives subscribing to it.
  2473. */
  2474. var Dep = function Dep () {
  2475. this.id = uid++;
  2476. this.subs = [];
  2477. };
  2478. Dep.prototype.addSub = function addSub (sub) {
  2479. this.subs.push(sub);
  2480. };
  2481. Dep.prototype.removeSub = function removeSub (sub) {
  2482. remove(this.subs, sub);
  2483. };
  2484. Dep.prototype.depend = function depend () {
  2485. if (Dep.SharedObject.target) {
  2486. Dep.SharedObject.target.addDep(this);
  2487. }
  2488. };
  2489. Dep.prototype.notify = function notify () {
  2490. // stabilize the subscriber list first
  2491. var subs = this.subs.slice();
  2492. if ( true && !config.async) {
  2493. // subs aren't sorted in scheduler if not running async
  2494. // we need to sort them now to make sure they fire in correct
  2495. // order
  2496. subs.sort(function (a, b) { return a.id - b.id; });
  2497. }
  2498. for (var i = 0, l = subs.length; i < l; i++) {
  2499. subs[i].update();
  2500. }
  2501. };
  2502. // The current target watcher being evaluated.
  2503. // This is globally unique because only one watcher
  2504. // can be evaluated at a time.
  2505. // fixed by xxxxxx (nvue shared vuex)
  2506. /* eslint-disable no-undef */
  2507. Dep.SharedObject = {};
  2508. Dep.SharedObject.target = null;
  2509. Dep.SharedObject.targetStack = [];
  2510. function pushTarget (target) {
  2511. Dep.SharedObject.targetStack.push(target);
  2512. Dep.SharedObject.target = target;
  2513. Dep.target = target;
  2514. }
  2515. function popTarget () {
  2516. Dep.SharedObject.targetStack.pop();
  2517. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  2518. Dep.target = Dep.SharedObject.target;
  2519. }
  2520. /* */
  2521. var VNode = function VNode (
  2522. tag,
  2523. data,
  2524. children,
  2525. text,
  2526. elm,
  2527. context,
  2528. componentOptions,
  2529. asyncFactory
  2530. ) {
  2531. this.tag = tag;
  2532. this.data = data;
  2533. this.children = children;
  2534. this.text = text;
  2535. this.elm = elm;
  2536. this.ns = undefined;
  2537. this.context = context;
  2538. this.fnContext = undefined;
  2539. this.fnOptions = undefined;
  2540. this.fnScopeId = undefined;
  2541. this.key = data && data.key;
  2542. this.componentOptions = componentOptions;
  2543. this.componentInstance = undefined;
  2544. this.parent = undefined;
  2545. this.raw = false;
  2546. this.isStatic = false;
  2547. this.isRootInsert = true;
  2548. this.isComment = false;
  2549. this.isCloned = false;
  2550. this.isOnce = false;
  2551. this.asyncFactory = asyncFactory;
  2552. this.asyncMeta = undefined;
  2553. this.isAsyncPlaceholder = false;
  2554. };
  2555. var prototypeAccessors = { child: { configurable: true } };
  2556. // DEPRECATED: alias for componentInstance for backwards compat.
  2557. /* istanbul ignore next */
  2558. prototypeAccessors.child.get = function () {
  2559. return this.componentInstance
  2560. };
  2561. Object.defineProperties( VNode.prototype, prototypeAccessors );
  2562. var createEmptyVNode = function (text) {
  2563. if ( text === void 0 ) text = '';
  2564. var node = new VNode();
  2565. node.text = text;
  2566. node.isComment = true;
  2567. return node
  2568. };
  2569. function createTextVNode (val) {
  2570. return new VNode(undefined, undefined, undefined, String(val))
  2571. }
  2572. // optimized shallow clone
  2573. // used for static nodes and slot nodes because they may be reused across
  2574. // multiple renders, cloning them avoids errors when DOM manipulations rely
  2575. // on their elm reference.
  2576. function cloneVNode (vnode) {
  2577. var cloned = new VNode(
  2578. vnode.tag,
  2579. vnode.data,
  2580. // #7975
  2581. // clone children array to avoid mutating original in case of cloning
  2582. // a child.
  2583. vnode.children && vnode.children.slice(),
  2584. vnode.text,
  2585. vnode.elm,
  2586. vnode.context,
  2587. vnode.componentOptions,
  2588. vnode.asyncFactory
  2589. );
  2590. cloned.ns = vnode.ns;
  2591. cloned.isStatic = vnode.isStatic;
  2592. cloned.key = vnode.key;
  2593. cloned.isComment = vnode.isComment;
  2594. cloned.fnContext = vnode.fnContext;
  2595. cloned.fnOptions = vnode.fnOptions;
  2596. cloned.fnScopeId = vnode.fnScopeId;
  2597. cloned.asyncMeta = vnode.asyncMeta;
  2598. cloned.isCloned = true;
  2599. return cloned
  2600. }
  2601. /*
  2602. * not type checking this file because flow doesn't play well with
  2603. * dynamically accessing methods on Array prototype
  2604. */
  2605. var arrayProto = Array.prototype;
  2606. var arrayMethods = Object.create(arrayProto);
  2607. var methodsToPatch = [
  2608. 'push',
  2609. 'pop',
  2610. 'shift',
  2611. 'unshift',
  2612. 'splice',
  2613. 'sort',
  2614. 'reverse'
  2615. ];
  2616. /**
  2617. * Intercept mutating methods and emit events
  2618. */
  2619. methodsToPatch.forEach(function (method) {
  2620. // cache original method
  2621. var original = arrayProto[method];
  2622. def(arrayMethods, method, function mutator () {
  2623. var args = [], len = arguments.length;
  2624. while ( len-- ) args[ len ] = arguments[ len ];
  2625. var result = original.apply(this, args);
  2626. var ob = this.__ob__;
  2627. var inserted;
  2628. switch (method) {
  2629. case 'push':
  2630. case 'unshift':
  2631. inserted = args;
  2632. break
  2633. case 'splice':
  2634. inserted = args.slice(2);
  2635. break
  2636. }
  2637. if (inserted) { ob.observeArray(inserted); }
  2638. // notify change
  2639. ob.dep.notify();
  2640. return result
  2641. });
  2642. });
  2643. /* */
  2644. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  2645. /**
  2646. * In some cases we may want to disable observation inside a component's
  2647. * update computation.
  2648. */
  2649. var shouldObserve = true;
  2650. function toggleObserving (value) {
  2651. shouldObserve = value;
  2652. }
  2653. /**
  2654. * Observer class that is attached to each observed
  2655. * object. Once attached, the observer converts the target
  2656. * object's property keys into getter/setters that
  2657. * collect dependencies and dispatch updates.
  2658. */
  2659. var Observer = function Observer (value) {
  2660. this.value = value;
  2661. this.dep = new Dep();
  2662. this.vmCount = 0;
  2663. def(value, '__ob__', this);
  2664. if (Array.isArray(value)) {
  2665. if (hasProto) {
  2666. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  2667. if(value.push !== value.__proto__.push){
  2668. copyAugment(value, arrayMethods, arrayKeys);
  2669. } else {
  2670. protoAugment(value, arrayMethods);
  2671. }
  2672. }
  2673. } else {
  2674. copyAugment(value, arrayMethods, arrayKeys);
  2675. }
  2676. this.observeArray(value);
  2677. } else {
  2678. this.walk(value);
  2679. }
  2680. };
  2681. /**
  2682. * Walk through all properties and convert them into
  2683. * getter/setters. This method should only be called when
  2684. * value type is Object.
  2685. */
  2686. Observer.prototype.walk = function walk (obj) {
  2687. var keys = Object.keys(obj);
  2688. for (var i = 0; i < keys.length; i++) {
  2689. defineReactive$$1(obj, keys[i]);
  2690. }
  2691. };
  2692. /**
  2693. * Observe a list of Array items.
  2694. */
  2695. Observer.prototype.observeArray = function observeArray (items) {
  2696. for (var i = 0, l = items.length; i < l; i++) {
  2697. observe(items[i]);
  2698. }
  2699. };
  2700. // helpers
  2701. /**
  2702. * Augment a target Object or Array by intercepting
  2703. * the prototype chain using __proto__
  2704. */
  2705. function protoAugment (target, src) {
  2706. /* eslint-disable no-proto */
  2707. target.__proto__ = src;
  2708. /* eslint-enable no-proto */
  2709. }
  2710. /**
  2711. * Augment a target Object or Array by defining
  2712. * hidden properties.
  2713. */
  2714. /* istanbul ignore next */
  2715. function copyAugment (target, src, keys) {
  2716. for (var i = 0, l = keys.length; i < l; i++) {
  2717. var key = keys[i];
  2718. def(target, key, src[key]);
  2719. }
  2720. }
  2721. /**
  2722. * Attempt to create an observer instance for a value,
  2723. * returns the new observer if successfully observed,
  2724. * or the existing observer if the value already has one.
  2725. */
  2726. function observe (value, asRootData) {
  2727. if (!isObject(value) || value instanceof VNode) {
  2728. return
  2729. }
  2730. var ob;
  2731. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  2732. ob = value.__ob__;
  2733. } else if (
  2734. shouldObserve &&
  2735. !isServerRendering() &&
  2736. (Array.isArray(value) || isPlainObject(value)) &&
  2737. Object.isExtensible(value) &&
  2738. !value._isVue
  2739. ) {
  2740. ob = new Observer(value);
  2741. }
  2742. if (asRootData && ob) {
  2743. ob.vmCount++;
  2744. }
  2745. return ob
  2746. }
  2747. /**
  2748. * Define a reactive property on an Object.
  2749. */
  2750. function defineReactive$$1 (
  2751. obj,
  2752. key,
  2753. val,
  2754. customSetter,
  2755. shallow
  2756. ) {
  2757. var dep = new Dep();
  2758. var property = Object.getOwnPropertyDescriptor(obj, key);
  2759. if (property && property.configurable === false) {
  2760. return
  2761. }
  2762. // cater for pre-defined getter/setters
  2763. var getter = property && property.get;
  2764. var setter = property && property.set;
  2765. if ((!getter || setter) && arguments.length === 2) {
  2766. val = obj[key];
  2767. }
  2768. var childOb = !shallow && observe(val);
  2769. Object.defineProperty(obj, key, {
  2770. enumerable: true,
  2771. configurable: true,
  2772. get: function reactiveGetter () {
  2773. var value = getter ? getter.call(obj) : val;
  2774. if (Dep.SharedObject.target) { // fixed by xxxxxx
  2775. dep.depend();
  2776. if (childOb) {
  2777. childOb.dep.depend();
  2778. if (Array.isArray(value)) {
  2779. dependArray(value);
  2780. }
  2781. }
  2782. }
  2783. return value
  2784. },
  2785. set: function reactiveSetter (newVal) {
  2786. var value = getter ? getter.call(obj) : val;
  2787. /* eslint-disable no-self-compare */
  2788. if (newVal === value || (newVal !== newVal && value !== value)) {
  2789. return
  2790. }
  2791. /* eslint-enable no-self-compare */
  2792. if ( true && customSetter) {
  2793. customSetter();
  2794. }
  2795. // #7981: for accessor properties without setter
  2796. if (getter && !setter) { return }
  2797. if (setter) {
  2798. setter.call(obj, newVal);
  2799. } else {
  2800. val = newVal;
  2801. }
  2802. childOb = !shallow && observe(newVal);
  2803. dep.notify();
  2804. }
  2805. });
  2806. }
  2807. /**
  2808. * Set a property on an object. Adds the new property and
  2809. * triggers change notification if the property doesn't
  2810. * already exist.
  2811. */
  2812. function set (target, key, val) {
  2813. if ( true &&
  2814. (isUndef(target) || isPrimitive(target))
  2815. ) {
  2816. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  2817. }
  2818. if (Array.isArray(target) && isValidArrayIndex(key)) {
  2819. target.length = Math.max(target.length, key);
  2820. target.splice(key, 1, val);
  2821. return val
  2822. }
  2823. if (key in target && !(key in Object.prototype)) {
  2824. target[key] = val;
  2825. return val
  2826. }
  2827. var ob = (target).__ob__;
  2828. if (target._isVue || (ob && ob.vmCount)) {
  2829. true && warn(
  2830. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  2831. 'at runtime - declare it upfront in the data option.'
  2832. );
  2833. return val
  2834. }
  2835. if (!ob) {
  2836. target[key] = val;
  2837. return val
  2838. }
  2839. defineReactive$$1(ob.value, key, val);
  2840. ob.dep.notify();
  2841. return val
  2842. }
  2843. /**
  2844. * Delete a property and trigger change if necessary.
  2845. */
  2846. function del (target, key) {
  2847. if ( true &&
  2848. (isUndef(target) || isPrimitive(target))
  2849. ) {
  2850. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  2851. }
  2852. if (Array.isArray(target) && isValidArrayIndex(key)) {
  2853. target.splice(key, 1);
  2854. return
  2855. }
  2856. var ob = (target).__ob__;
  2857. if (target._isVue || (ob && ob.vmCount)) {
  2858. true && warn(
  2859. 'Avoid deleting properties on a Vue instance or its root $data ' +
  2860. '- just set it to null.'
  2861. );
  2862. return
  2863. }
  2864. if (!hasOwn(target, key)) {
  2865. return
  2866. }
  2867. delete target[key];
  2868. if (!ob) {
  2869. return
  2870. }
  2871. ob.dep.notify();
  2872. }
  2873. /**
  2874. * Collect dependencies on array elements when the array is touched, since
  2875. * we cannot intercept array element access like property getters.
  2876. */
  2877. function dependArray (value) {
  2878. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  2879. e = value[i];
  2880. e && e.__ob__ && e.__ob__.dep.depend();
  2881. if (Array.isArray(e)) {
  2882. dependArray(e);
  2883. }
  2884. }
  2885. }
  2886. /* */
  2887. /**
  2888. * Option overwriting strategies are functions that handle
  2889. * how to merge a parent option value and a child option
  2890. * value into the final value.
  2891. */
  2892. var strats = config.optionMergeStrategies;
  2893. /**
  2894. * Options with restrictions
  2895. */
  2896. if (true) {
  2897. strats.el = strats.propsData = function (parent, child, vm, key) {
  2898. if (!vm) {
  2899. warn(
  2900. "option \"" + key + "\" can only be used during instance " +
  2901. 'creation with the `new` keyword.'
  2902. );
  2903. }
  2904. return defaultStrat(parent, child)
  2905. };
  2906. }
  2907. /**
  2908. * Helper that recursively merges two data objects together.
  2909. */
  2910. function mergeData (to, from) {
  2911. if (!from) { return to }
  2912. var key, toVal, fromVal;
  2913. var keys = hasSymbol
  2914. ? Reflect.ownKeys(from)
  2915. : Object.keys(from);
  2916. for (var i = 0; i < keys.length; i++) {
  2917. key = keys[i];
  2918. // in case the object is already observed...
  2919. if (key === '__ob__') { continue }
  2920. toVal = to[key];
  2921. fromVal = from[key];
  2922. if (!hasOwn(to, key)) {
  2923. set(to, key, fromVal);
  2924. } else if (
  2925. toVal !== fromVal &&
  2926. isPlainObject(toVal) &&
  2927. isPlainObject(fromVal)
  2928. ) {
  2929. mergeData(toVal, fromVal);
  2930. }
  2931. }
  2932. return to
  2933. }
  2934. /**
  2935. * Data
  2936. */
  2937. function mergeDataOrFn (
  2938. parentVal,
  2939. childVal,
  2940. vm
  2941. ) {
  2942. if (!vm) {
  2943. // in a Vue.extend merge, both should be functions
  2944. if (!childVal) {
  2945. return parentVal
  2946. }
  2947. if (!parentVal) {
  2948. return childVal
  2949. }
  2950. // when parentVal & childVal are both present,
  2951. // we need to return a function that returns the
  2952. // merged result of both functions... no need to
  2953. // check if parentVal is a function here because
  2954. // it has to be a function to pass previous merges.
  2955. return function mergedDataFn () {
  2956. return mergeData(
  2957. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  2958. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  2959. )
  2960. }
  2961. } else {
  2962. return function mergedInstanceDataFn () {
  2963. // instance merge
  2964. var instanceData = typeof childVal === 'function'
  2965. ? childVal.call(vm, vm)
  2966. : childVal;
  2967. var defaultData = typeof parentVal === 'function'
  2968. ? parentVal.call(vm, vm)
  2969. : parentVal;
  2970. if (instanceData) {
  2971. return mergeData(instanceData, defaultData)
  2972. } else {
  2973. return defaultData
  2974. }
  2975. }
  2976. }
  2977. }
  2978. strats.data = function (
  2979. parentVal,
  2980. childVal,
  2981. vm
  2982. ) {
  2983. if (!vm) {
  2984. if (childVal && typeof childVal !== 'function') {
  2985. true && warn(
  2986. 'The "data" option should be a function ' +
  2987. 'that returns a per-instance value in component ' +
  2988. 'definitions.',
  2989. vm
  2990. );
  2991. return parentVal
  2992. }
  2993. return mergeDataOrFn(parentVal, childVal)
  2994. }
  2995. return mergeDataOrFn(parentVal, childVal, vm)
  2996. };
  2997. /**
  2998. * Hooks and props are merged as arrays.
  2999. */
  3000. function mergeHook (
  3001. parentVal,
  3002. childVal
  3003. ) {
  3004. var res = childVal
  3005. ? parentVal
  3006. ? parentVal.concat(childVal)
  3007. : Array.isArray(childVal)
  3008. ? childVal
  3009. : [childVal]
  3010. : parentVal;
  3011. return res
  3012. ? dedupeHooks(res)
  3013. : res
  3014. }
  3015. function dedupeHooks (hooks) {
  3016. var res = [];
  3017. for (var i = 0; i < hooks.length; i++) {
  3018. if (res.indexOf(hooks[i]) === -1) {
  3019. res.push(hooks[i]);
  3020. }
  3021. }
  3022. return res
  3023. }
  3024. LIFECYCLE_HOOKS.forEach(function (hook) {
  3025. strats[hook] = mergeHook;
  3026. });
  3027. /**
  3028. * Assets
  3029. *
  3030. * When a vm is present (instance creation), we need to do
  3031. * a three-way merge between constructor options, instance
  3032. * options and parent options.
  3033. */
  3034. function mergeAssets (
  3035. parentVal,
  3036. childVal,
  3037. vm,
  3038. key
  3039. ) {
  3040. var res = Object.create(parentVal || null);
  3041. if (childVal) {
  3042. true && assertObjectType(key, childVal, vm);
  3043. return extend(res, childVal)
  3044. } else {
  3045. return res
  3046. }
  3047. }
  3048. ASSET_TYPES.forEach(function (type) {
  3049. strats[type + 's'] = mergeAssets;
  3050. });
  3051. /**
  3052. * Watchers.
  3053. *
  3054. * Watchers hashes should not overwrite one
  3055. * another, so we merge them as arrays.
  3056. */
  3057. strats.watch = function (
  3058. parentVal,
  3059. childVal,
  3060. vm,
  3061. key
  3062. ) {
  3063. // work around Firefox's Object.prototype.watch...
  3064. if (parentVal === nativeWatch) { parentVal = undefined; }
  3065. if (childVal === nativeWatch) { childVal = undefined; }
  3066. /* istanbul ignore if */
  3067. if (!childVal) { return Object.create(parentVal || null) }
  3068. if (true) {
  3069. assertObjectType(key, childVal, vm);
  3070. }
  3071. if (!parentVal) { return childVal }
  3072. var ret = {};
  3073. extend(ret, parentVal);
  3074. for (var key$1 in childVal) {
  3075. var parent = ret[key$1];
  3076. var child = childVal[key$1];
  3077. if (parent && !Array.isArray(parent)) {
  3078. parent = [parent];
  3079. }
  3080. ret[key$1] = parent
  3081. ? parent.concat(child)
  3082. : Array.isArray(child) ? child : [child];
  3083. }
  3084. return ret
  3085. };
  3086. /**
  3087. * Other object hashes.
  3088. */
  3089. strats.props =
  3090. strats.methods =
  3091. strats.inject =
  3092. strats.computed = function (
  3093. parentVal,
  3094. childVal,
  3095. vm,
  3096. key
  3097. ) {
  3098. if (childVal && "development" !== 'production') {
  3099. assertObjectType(key, childVal, vm);
  3100. }
  3101. if (!parentVal) { return childVal }
  3102. var ret = Object.create(null);
  3103. extend(ret, parentVal);
  3104. if (childVal) { extend(ret, childVal); }
  3105. return ret
  3106. };
  3107. strats.provide = mergeDataOrFn;
  3108. /**
  3109. * Default strategy.
  3110. */
  3111. var defaultStrat = function (parentVal, childVal) {
  3112. return childVal === undefined
  3113. ? parentVal
  3114. : childVal
  3115. };
  3116. /**
  3117. * Validate component names
  3118. */
  3119. function checkComponents (options) {
  3120. for (var key in options.components) {
  3121. validateComponentName(key);
  3122. }
  3123. }
  3124. function validateComponentName (name) {
  3125. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  3126. warn(
  3127. 'Invalid component name: "' + name + '". Component names ' +
  3128. 'should conform to valid custom element name in html5 specification.'
  3129. );
  3130. }
  3131. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  3132. warn(
  3133. 'Do not use built-in or reserved HTML elements as component ' +
  3134. 'id: ' + name
  3135. );
  3136. }
  3137. }
  3138. /**
  3139. * Ensure all props option syntax are normalized into the
  3140. * Object-based format.
  3141. */
  3142. function normalizeProps (options, vm) {
  3143. var props = options.props;
  3144. if (!props) { return }
  3145. var res = {};
  3146. var i, val, name;
  3147. if (Array.isArray(props)) {
  3148. i = props.length;
  3149. while (i--) {
  3150. val = props[i];
  3151. if (typeof val === 'string') {
  3152. name = camelize(val);
  3153. res[name] = { type: null };
  3154. } else if (true) {
  3155. warn('props must be strings when using array syntax.');
  3156. }
  3157. }
  3158. } else if (isPlainObject(props)) {
  3159. for (var key in props) {
  3160. val = props[key];
  3161. name = camelize(key);
  3162. res[name] = isPlainObject(val)
  3163. ? val
  3164. : { type: val };
  3165. }
  3166. } else if (true) {
  3167. warn(
  3168. "Invalid value for option \"props\": expected an Array or an Object, " +
  3169. "but got " + (toRawType(props)) + ".",
  3170. vm
  3171. );
  3172. }
  3173. options.props = res;
  3174. }
  3175. /**
  3176. * Normalize all injections into Object-based format
  3177. */
  3178. function normalizeInject (options, vm) {
  3179. var inject = options.inject;
  3180. if (!inject) { return }
  3181. var normalized = options.inject = {};
  3182. if (Array.isArray(inject)) {
  3183. for (var i = 0; i < inject.length; i++) {
  3184. normalized[inject[i]] = { from: inject[i] };
  3185. }
  3186. } else if (isPlainObject(inject)) {
  3187. for (var key in inject) {
  3188. var val = inject[key];
  3189. normalized[key] = isPlainObject(val)
  3190. ? extend({ from: key }, val)
  3191. : { from: val };
  3192. }
  3193. } else if (true) {
  3194. warn(
  3195. "Invalid value for option \"inject\": expected an Array or an Object, " +
  3196. "but got " + (toRawType(inject)) + ".",
  3197. vm
  3198. );
  3199. }
  3200. }
  3201. /**
  3202. * Normalize raw function directives into object format.
  3203. */
  3204. function normalizeDirectives (options) {
  3205. var dirs = options.directives;
  3206. if (dirs) {
  3207. for (var key in dirs) {
  3208. var def$$1 = dirs[key];
  3209. if (typeof def$$1 === 'function') {
  3210. dirs[key] = { bind: def$$1, update: def$$1 };
  3211. }
  3212. }
  3213. }
  3214. }
  3215. function assertObjectType (name, value, vm) {
  3216. if (!isPlainObject(value)) {
  3217. warn(
  3218. "Invalid value for option \"" + name + "\": expected an Object, " +
  3219. "but got " + (toRawType(value)) + ".",
  3220. vm
  3221. );
  3222. }
  3223. }
  3224. /**
  3225. * Merge two option objects into a new one.
  3226. * Core utility used in both instantiation and inheritance.
  3227. */
  3228. function mergeOptions (
  3229. parent,
  3230. child,
  3231. vm
  3232. ) {
  3233. if (true) {
  3234. checkComponents(child);
  3235. }
  3236. if (typeof child === 'function') {
  3237. child = child.options;
  3238. }
  3239. normalizeProps(child, vm);
  3240. normalizeInject(child, vm);
  3241. normalizeDirectives(child);
  3242. // Apply extends and mixins on the child options,
  3243. // but only if it is a raw options object that isn't
  3244. // the result of another mergeOptions call.
  3245. // Only merged options has the _base property.
  3246. if (!child._base) {
  3247. if (child.extends) {
  3248. parent = mergeOptions(parent, child.extends, vm);
  3249. }
  3250. if (child.mixins) {
  3251. for (var i = 0, l = child.mixins.length; i < l; i++) {
  3252. parent = mergeOptions(parent, child.mixins[i], vm);
  3253. }
  3254. }
  3255. }
  3256. var options = {};
  3257. var key;
  3258. for (key in parent) {
  3259. mergeField(key);
  3260. }
  3261. for (key in child) {
  3262. if (!hasOwn(parent, key)) {
  3263. mergeField(key);
  3264. }
  3265. }
  3266. function mergeField (key) {
  3267. var strat = strats[key] || defaultStrat;
  3268. options[key] = strat(parent[key], child[key], vm, key);
  3269. }
  3270. return options
  3271. }
  3272. /**
  3273. * Resolve an asset.
  3274. * This function is used because child instances need access
  3275. * to assets defined in its ancestor chain.
  3276. */
  3277. function resolveAsset (
  3278. options,
  3279. type,
  3280. id,
  3281. warnMissing
  3282. ) {
  3283. /* istanbul ignore if */
  3284. if (typeof id !== 'string') {
  3285. return
  3286. }
  3287. var assets = options[type];
  3288. // check local registration variations first
  3289. if (hasOwn(assets, id)) { return assets[id] }
  3290. var camelizedId = camelize(id);
  3291. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  3292. var PascalCaseId = capitalize(camelizedId);
  3293. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  3294. // fallback to prototype chain
  3295. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  3296. if ( true && warnMissing && !res) {
  3297. warn(
  3298. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  3299. options
  3300. );
  3301. }
  3302. return res
  3303. }
  3304. /* */
  3305. function validateProp (
  3306. key,
  3307. propOptions,
  3308. propsData,
  3309. vm
  3310. ) {
  3311. var prop = propOptions[key];
  3312. var absent = !hasOwn(propsData, key);
  3313. var value = propsData[key];
  3314. // boolean casting
  3315. var booleanIndex = getTypeIndex(Boolean, prop.type);
  3316. if (booleanIndex > -1) {
  3317. if (absent && !hasOwn(prop, 'default')) {
  3318. value = false;
  3319. } else if (value === '' || value === hyphenate(key)) {
  3320. // only cast empty string / same name to boolean if
  3321. // boolean has higher priority
  3322. var stringIndex = getTypeIndex(String, prop.type);
  3323. if (stringIndex < 0 || booleanIndex < stringIndex) {
  3324. value = true;
  3325. }
  3326. }
  3327. }
  3328. // check default value
  3329. if (value === undefined) {
  3330. value = getPropDefaultValue(vm, prop, key);
  3331. // since the default value is a fresh copy,
  3332. // make sure to observe it.
  3333. var prevShouldObserve = shouldObserve;
  3334. toggleObserving(true);
  3335. observe(value);
  3336. toggleObserving(prevShouldObserve);
  3337. }
  3338. if (
  3339. true
  3340. ) {
  3341. assertProp(prop, key, value, vm, absent);
  3342. }
  3343. return value
  3344. }
  3345. /**
  3346. * Get the default value of a prop.
  3347. */
  3348. function getPropDefaultValue (vm, prop, key) {
  3349. // no default, return undefined
  3350. if (!hasOwn(prop, 'default')) {
  3351. return undefined
  3352. }
  3353. var def = prop.default;
  3354. // warn against non-factory defaults for Object & Array
  3355. if ( true && isObject(def)) {
  3356. warn(
  3357. 'Invalid default value for prop "' + key + '": ' +
  3358. 'Props with type Object/Array must use a factory function ' +
  3359. 'to return the default value.',
  3360. vm
  3361. );
  3362. }
  3363. // the raw prop value was also undefined from previous render,
  3364. // return previous default value to avoid unnecessary watcher trigger
  3365. if (vm && vm.$options.propsData &&
  3366. vm.$options.propsData[key] === undefined &&
  3367. vm._props[key] !== undefined
  3368. ) {
  3369. return vm._props[key]
  3370. }
  3371. // call factory function for non-Function types
  3372. // a value is Function if its prototype is function even across different execution context
  3373. return typeof def === 'function' && getType(prop.type) !== 'Function'
  3374. ? def.call(vm)
  3375. : def
  3376. }
  3377. /**
  3378. * Assert whether a prop is valid.
  3379. */
  3380. function assertProp (
  3381. prop,
  3382. name,
  3383. value,
  3384. vm,
  3385. absent
  3386. ) {
  3387. if (prop.required && absent) {
  3388. warn(
  3389. 'Missing required prop: "' + name + '"',
  3390. vm
  3391. );
  3392. return
  3393. }
  3394. if (value == null && !prop.required) {
  3395. return
  3396. }
  3397. var type = prop.type;
  3398. var valid = !type || type === true;
  3399. var expectedTypes = [];
  3400. if (type) {
  3401. if (!Array.isArray(type)) {
  3402. type = [type];
  3403. }
  3404. for (var i = 0; i < type.length && !valid; i++) {
  3405. var assertedType = assertType(value, type[i]);
  3406. expectedTypes.push(assertedType.expectedType || '');
  3407. valid = assertedType.valid;
  3408. }
  3409. }
  3410. if (!valid) {
  3411. warn(
  3412. getInvalidTypeMessage(name, value, expectedTypes),
  3413. vm
  3414. );
  3415. return
  3416. }
  3417. var validator = prop.validator;
  3418. if (validator) {
  3419. if (!validator(value)) {
  3420. warn(
  3421. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  3422. vm
  3423. );
  3424. }
  3425. }
  3426. }
  3427. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  3428. function assertType (value, type) {
  3429. var valid;
  3430. var expectedType = getType(type);
  3431. if (simpleCheckRE.test(expectedType)) {
  3432. var t = typeof value;
  3433. valid = t === expectedType.toLowerCase();
  3434. // for primitive wrapper objects
  3435. if (!valid && t === 'object') {
  3436. valid = value instanceof type;
  3437. }
  3438. } else if (expectedType === 'Object') {
  3439. valid = isPlainObject(value);
  3440. } else if (expectedType === 'Array') {
  3441. valid = Array.isArray(value);
  3442. } else {
  3443. valid = value instanceof type;
  3444. }
  3445. return {
  3446. valid: valid,
  3447. expectedType: expectedType
  3448. }
  3449. }
  3450. /**
  3451. * Use function string name to check built-in types,
  3452. * because a simple equality check will fail when running
  3453. * across different vms / iframes.
  3454. */
  3455. function getType (fn) {
  3456. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  3457. return match ? match[1] : ''
  3458. }
  3459. function isSameType (a, b) {
  3460. return getType(a) === getType(b)
  3461. }
  3462. function getTypeIndex (type, expectedTypes) {
  3463. if (!Array.isArray(expectedTypes)) {
  3464. return isSameType(expectedTypes, type) ? 0 : -1
  3465. }
  3466. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  3467. if (isSameType(expectedTypes[i], type)) {
  3468. return i
  3469. }
  3470. }
  3471. return -1
  3472. }
  3473. function getInvalidTypeMessage (name, value, expectedTypes) {
  3474. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  3475. " Expected " + (expectedTypes.map(capitalize).join(', '));
  3476. var expectedType = expectedTypes[0];
  3477. var receivedType = toRawType(value);
  3478. var expectedValue = styleValue(value, expectedType);
  3479. var receivedValue = styleValue(value, receivedType);
  3480. // check if we need to specify expected value
  3481. if (expectedTypes.length === 1 &&
  3482. isExplicable(expectedType) &&
  3483. !isBoolean(expectedType, receivedType)) {
  3484. message += " with value " + expectedValue;
  3485. }
  3486. message += ", got " + receivedType + " ";
  3487. // check if we need to specify received value
  3488. if (isExplicable(receivedType)) {
  3489. message += "with value " + receivedValue + ".";
  3490. }
  3491. return message
  3492. }
  3493. function styleValue (value, type) {
  3494. if (type === 'String') {
  3495. return ("\"" + value + "\"")
  3496. } else if (type === 'Number') {
  3497. return ("" + (Number(value)))
  3498. } else {
  3499. return ("" + value)
  3500. }
  3501. }
  3502. function isExplicable (value) {
  3503. var explicitTypes = ['string', 'number', 'boolean'];
  3504. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  3505. }
  3506. function isBoolean () {
  3507. var args = [], len = arguments.length;
  3508. while ( len-- ) args[ len ] = arguments[ len ];
  3509. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  3510. }
  3511. /* */
  3512. function handleError (err, vm, info) {
  3513. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  3514. // See: https://github.com/vuejs/vuex/issues/1505
  3515. pushTarget();
  3516. try {
  3517. if (vm) {
  3518. var cur = vm;
  3519. while ((cur = cur.$parent)) {
  3520. var hooks = cur.$options.errorCaptured;
  3521. if (hooks) {
  3522. for (var i = 0; i < hooks.length; i++) {
  3523. try {
  3524. var capture = hooks[i].call(cur, err, vm, info) === false;
  3525. if (capture) { return }
  3526. } catch (e) {
  3527. globalHandleError(e, cur, 'errorCaptured hook');
  3528. }
  3529. }
  3530. }
  3531. }
  3532. }
  3533. globalHandleError(err, vm, info);
  3534. } finally {
  3535. popTarget();
  3536. }
  3537. }
  3538. function invokeWithErrorHandling (
  3539. handler,
  3540. context,
  3541. args,
  3542. vm,
  3543. info
  3544. ) {
  3545. var res;
  3546. try {
  3547. res = args ? handler.apply(context, args) : handler.call(context);
  3548. if (res && !res._isVue && isPromise(res) && !res._handled) {
  3549. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  3550. // issue #9511
  3551. // avoid catch triggering multiple times when nested calls
  3552. res._handled = true;
  3553. }
  3554. } catch (e) {
  3555. handleError(e, vm, info);
  3556. }
  3557. return res
  3558. }
  3559. function globalHandleError (err, vm, info) {
  3560. if (config.errorHandler) {
  3561. try {
  3562. return config.errorHandler.call(null, err, vm, info)
  3563. } catch (e) {
  3564. // if the user intentionally throws the original error in the handler,
  3565. // do not log it twice
  3566. if (e !== err) {
  3567. logError(e, null, 'config.errorHandler');
  3568. }
  3569. }
  3570. }
  3571. logError(err, vm, info);
  3572. }
  3573. function logError (err, vm, info) {
  3574. if (true) {
  3575. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  3576. }
  3577. /* istanbul ignore else */
  3578. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  3579. console.error(err);
  3580. } else {
  3581. throw err
  3582. }
  3583. }
  3584. /* */
  3585. var callbacks = [];
  3586. var pending = false;
  3587. function flushCallbacks () {
  3588. pending = false;
  3589. var copies = callbacks.slice(0);
  3590. callbacks.length = 0;
  3591. for (var i = 0; i < copies.length; i++) {
  3592. copies[i]();
  3593. }
  3594. }
  3595. // Here we have async deferring wrappers using microtasks.
  3596. // In 2.5 we used (macro) tasks (in combination with microtasks).
  3597. // However, it has subtle problems when state is changed right before repaint
  3598. // (e.g. #6813, out-in transitions).
  3599. // Also, using (macro) tasks in event handler would cause some weird behaviors
  3600. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  3601. // So we now use microtasks everywhere, again.
  3602. // A major drawback of this tradeoff is that there are some scenarios
  3603. // where microtasks have too high a priority and fire in between supposedly
  3604. // sequential events (e.g. #4521, #6690, which have workarounds)
  3605. // or even between bubbling of the same event (#6566).
  3606. var timerFunc;
  3607. // The nextTick behavior leverages the microtask queue, which can be accessed
  3608. // via either native Promise.then or MutationObserver.
  3609. // MutationObserver has wider support, however it is seriously bugged in
  3610. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  3611. // completely stops working after triggering a few times... so, if native
  3612. // Promise is available, we will use it:
  3613. /* istanbul ignore next, $flow-disable-line */
  3614. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  3615. var p = Promise.resolve();
  3616. timerFunc = function () {
  3617. p.then(flushCallbacks);
  3618. // In problematic UIWebViews, Promise.then doesn't completely break, but
  3619. // it can get stuck in a weird state where callbacks are pushed into the
  3620. // microtask queue but the queue isn't being flushed, until the browser
  3621. // needs to do some other work, e.g. handle a timer. Therefore we can
  3622. // "force" the microtask queue to be flushed by adding an empty timer.
  3623. if (isIOS) { setTimeout(noop); }
  3624. };
  3625. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  3626. isNative(MutationObserver) ||
  3627. // PhantomJS and iOS 7.x
  3628. MutationObserver.toString() === '[object MutationObserverConstructor]'
  3629. )) {
  3630. // Use MutationObserver where native Promise is not available,
  3631. // e.g. PhantomJS, iOS7, Android 4.4
  3632. // (#6466 MutationObserver is unreliable in IE11)
  3633. var counter = 1;
  3634. var observer = new MutationObserver(flushCallbacks);
  3635. var textNode = document.createTextNode(String(counter));
  3636. observer.observe(textNode, {
  3637. characterData: true
  3638. });
  3639. timerFunc = function () {
  3640. counter = (counter + 1) % 2;
  3641. textNode.data = String(counter);
  3642. };
  3643. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  3644. // Fallback to setImmediate.
  3645. // Technically it leverages the (macro) task queue,
  3646. // but it is still a better choice than setTimeout.
  3647. timerFunc = function () {
  3648. setImmediate(flushCallbacks);
  3649. };
  3650. } else {
  3651. // Fallback to setTimeout.
  3652. timerFunc = function () {
  3653. setTimeout(flushCallbacks, 0);
  3654. };
  3655. }
  3656. function nextTick (cb, ctx) {
  3657. var _resolve;
  3658. callbacks.push(function () {
  3659. if (cb) {
  3660. try {
  3661. cb.call(ctx);
  3662. } catch (e) {
  3663. handleError(e, ctx, 'nextTick');
  3664. }
  3665. } else if (_resolve) {
  3666. _resolve(ctx);
  3667. }
  3668. });
  3669. if (!pending) {
  3670. pending = true;
  3671. timerFunc();
  3672. }
  3673. // $flow-disable-line
  3674. if (!cb && typeof Promise !== 'undefined') {
  3675. return new Promise(function (resolve) {
  3676. _resolve = resolve;
  3677. })
  3678. }
  3679. }
  3680. /* */
  3681. /* not type checking this file because flow doesn't play well with Proxy */
  3682. var initProxy;
  3683. if (true) {
  3684. var allowedGlobals = makeMap(
  3685. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  3686. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  3687. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  3688. 'require' // for Webpack/Browserify
  3689. );
  3690. var warnNonPresent = function (target, key) {
  3691. warn(
  3692. "Property or method \"" + key + "\" is not defined on the instance but " +
  3693. 'referenced during render. Make sure that this property is reactive, ' +
  3694. 'either in the data option, or for class-based components, by ' +
  3695. 'initializing the property. ' +
  3696. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  3697. target
  3698. );
  3699. };
  3700. var warnReservedPrefix = function (target, key) {
  3701. warn(
  3702. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  3703. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  3704. 'prevent conflicts with Vue internals. ' +
  3705. 'See: https://vuejs.org/v2/api/#data',
  3706. target
  3707. );
  3708. };
  3709. var hasProxy =
  3710. typeof Proxy !== 'undefined' && isNative(Proxy);
  3711. if (hasProxy) {
  3712. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  3713. config.keyCodes = new Proxy(config.keyCodes, {
  3714. set: function set (target, key, value) {
  3715. if (isBuiltInModifier(key)) {
  3716. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  3717. return false
  3718. } else {
  3719. target[key] = value;
  3720. return true
  3721. }
  3722. }
  3723. });
  3724. }
  3725. var hasHandler = {
  3726. has: function has (target, key) {
  3727. var has = key in target;
  3728. var isAllowed = allowedGlobals(key) ||
  3729. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  3730. if (!has && !isAllowed) {
  3731. if (key in target.$data) { warnReservedPrefix(target, key); }
  3732. else { warnNonPresent(target, key); }
  3733. }
  3734. return has || !isAllowed
  3735. }
  3736. };
  3737. var getHandler = {
  3738. get: function get (target, key) {
  3739. if (typeof key === 'string' && !(key in target)) {
  3740. if (key in target.$data) { warnReservedPrefix(target, key); }
  3741. else { warnNonPresent(target, key); }
  3742. }
  3743. return target[key]
  3744. }
  3745. };
  3746. initProxy = function initProxy (vm) {
  3747. if (hasProxy) {
  3748. // determine which proxy handler to use
  3749. var options = vm.$options;
  3750. var handlers = options.render && options.render._withStripped
  3751. ? getHandler
  3752. : hasHandler;
  3753. vm._renderProxy = new Proxy(vm, handlers);
  3754. } else {
  3755. vm._renderProxy = vm;
  3756. }
  3757. };
  3758. }
  3759. /* */
  3760. var seenObjects = new _Set();
  3761. /**
  3762. * Recursively traverse an object to evoke all converted
  3763. * getters, so that every nested property inside the object
  3764. * is collected as a "deep" dependency.
  3765. */
  3766. function traverse (val) {
  3767. _traverse(val, seenObjects);
  3768. seenObjects.clear();
  3769. }
  3770. function _traverse (val, seen) {
  3771. var i, keys;
  3772. var isA = Array.isArray(val);
  3773. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  3774. return
  3775. }
  3776. if (val.__ob__) {
  3777. var depId = val.__ob__.dep.id;
  3778. if (seen.has(depId)) {
  3779. return
  3780. }
  3781. seen.add(depId);
  3782. }
  3783. if (isA) {
  3784. i = val.length;
  3785. while (i--) { _traverse(val[i], seen); }
  3786. } else {
  3787. keys = Object.keys(val);
  3788. i = keys.length;
  3789. while (i--) { _traverse(val[keys[i]], seen); }
  3790. }
  3791. }
  3792. var mark;
  3793. var measure;
  3794. if (true) {
  3795. var perf = inBrowser && window.performance;
  3796. /* istanbul ignore if */
  3797. if (
  3798. perf &&
  3799. perf.mark &&
  3800. perf.measure &&
  3801. perf.clearMarks &&
  3802. perf.clearMeasures
  3803. ) {
  3804. mark = function (tag) { return perf.mark(tag); };
  3805. measure = function (name, startTag, endTag) {
  3806. perf.measure(name, startTag, endTag);
  3807. perf.clearMarks(startTag);
  3808. perf.clearMarks(endTag);
  3809. // perf.clearMeasures(name)
  3810. };
  3811. }
  3812. }
  3813. /* */
  3814. var normalizeEvent = cached(function (name) {
  3815. var passive = name.charAt(0) === '&';
  3816. name = passive ? name.slice(1) : name;
  3817. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  3818. name = once$$1 ? name.slice(1) : name;
  3819. var capture = name.charAt(0) === '!';
  3820. name = capture ? name.slice(1) : name;
  3821. return {
  3822. name: name,
  3823. once: once$$1,
  3824. capture: capture,
  3825. passive: passive
  3826. }
  3827. });
  3828. function createFnInvoker (fns, vm) {
  3829. function invoker () {
  3830. var arguments$1 = arguments;
  3831. var fns = invoker.fns;
  3832. if (Array.isArray(fns)) {
  3833. var cloned = fns.slice();
  3834. for (var i = 0; i < cloned.length; i++) {
  3835. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  3836. }
  3837. } else {
  3838. // return handler return value for single handlers
  3839. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  3840. }
  3841. }
  3842. invoker.fns = fns;
  3843. return invoker
  3844. }
  3845. function updateListeners (
  3846. on,
  3847. oldOn,
  3848. add,
  3849. remove$$1,
  3850. createOnceHandler,
  3851. vm
  3852. ) {
  3853. var name, def$$1, cur, old, event;
  3854. for (name in on) {
  3855. def$$1 = cur = on[name];
  3856. old = oldOn[name];
  3857. event = normalizeEvent(name);
  3858. if (isUndef(cur)) {
  3859. true && warn(
  3860. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  3861. vm
  3862. );
  3863. } else if (isUndef(old)) {
  3864. if (isUndef(cur.fns)) {
  3865. cur = on[name] = createFnInvoker(cur, vm);
  3866. }
  3867. if (isTrue(event.once)) {
  3868. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  3869. }
  3870. add(event.name, cur, event.capture, event.passive, event.params);
  3871. } else if (cur !== old) {
  3872. old.fns = cur;
  3873. on[name] = old;
  3874. }
  3875. }
  3876. for (name in oldOn) {
  3877. if (isUndef(on[name])) {
  3878. event = normalizeEvent(name);
  3879. remove$$1(event.name, oldOn[name], event.capture);
  3880. }
  3881. }
  3882. }
  3883. /* */
  3884. /* */
  3885. // fixed by xxxxxx (mp properties)
  3886. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  3887. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  3888. if (isUndef(propOptions)) {
  3889. return res
  3890. }
  3891. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  3892. var attrs = data.attrs;
  3893. var props = data.props;
  3894. if (isDef(attrs) || isDef(props)) {
  3895. for (var key in propOptions) {
  3896. var altKey = hyphenate(key);
  3897. var result = checkProp(res, props, key, altKey, true) ||
  3898. checkProp(res, attrs, key, altKey, false);
  3899. // externalClass
  3900. if (
  3901. result &&
  3902. res[key] &&
  3903. externalClasses.indexOf(altKey) !== -1 &&
  3904. context[camelize(res[key])]
  3905. ) {
  3906. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  3907. res[key] = context[camelize(res[key])];
  3908. }
  3909. }
  3910. }
  3911. return res
  3912. }
  3913. function extractPropsFromVNodeData (
  3914. data,
  3915. Ctor,
  3916. tag,
  3917. context// fixed by xxxxxx
  3918. ) {
  3919. // we are only extracting raw values here.
  3920. // validation and default values are handled in the child
  3921. // component itself.
  3922. var propOptions = Ctor.options.props;
  3923. if (isUndef(propOptions)) {
  3924. // fixed by xxxxxx
  3925. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  3926. }
  3927. var res = {};
  3928. var attrs = data.attrs;
  3929. var props = data.props;
  3930. if (isDef(attrs) || isDef(props)) {
  3931. for (var key in propOptions) {
  3932. var altKey = hyphenate(key);
  3933. if (true) {
  3934. var keyInLowerCase = key.toLowerCase();
  3935. if (
  3936. key !== keyInLowerCase &&
  3937. attrs && hasOwn(attrs, keyInLowerCase)
  3938. ) {
  3939. tip(
  3940. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  3941. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  3942. " \"" + key + "\". " +
  3943. "Note that HTML attributes are case-insensitive and camelCased " +
  3944. "props need to use their kebab-case equivalents when using in-DOM " +
  3945. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  3946. );
  3947. }
  3948. }
  3949. checkProp(res, props, key, altKey, true) ||
  3950. checkProp(res, attrs, key, altKey, false);
  3951. }
  3952. }
  3953. // fixed by xxxxxx
  3954. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  3955. }
  3956. function checkProp (
  3957. res,
  3958. hash,
  3959. key,
  3960. altKey,
  3961. preserve
  3962. ) {
  3963. if (isDef(hash)) {
  3964. if (hasOwn(hash, key)) {
  3965. res[key] = hash[key];
  3966. if (!preserve) {
  3967. delete hash[key];
  3968. }
  3969. return true
  3970. } else if (hasOwn(hash, altKey)) {
  3971. res[key] = hash[altKey];
  3972. if (!preserve) {
  3973. delete hash[altKey];
  3974. }
  3975. return true
  3976. }
  3977. }
  3978. return false
  3979. }
  3980. /* */
  3981. // The template compiler attempts to minimize the need for normalization by
  3982. // statically analyzing the template at compile time.
  3983. //
  3984. // For plain HTML markup, normalization can be completely skipped because the
  3985. // generated render function is guaranteed to return Array<VNode>. There are
  3986. // two cases where extra normalization is needed:
  3987. // 1. When the children contains components - because a functional component
  3988. // may return an Array instead of a single root. In this case, just a simple
  3989. // normalization is needed - if any child is an Array, we flatten the whole
  3990. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  3991. // because functional components already normalize their own children.
  3992. function simpleNormalizeChildren (children) {
  3993. for (var i = 0; i < children.length; i++) {
  3994. if (Array.isArray(children[i])) {
  3995. return Array.prototype.concat.apply([], children)
  3996. }
  3997. }
  3998. return children
  3999. }
  4000. // 2. When the children contains constructs that always generated nested Arrays,
  4001. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  4002. // with hand-written render functions / JSX. In such cases a full normalization
  4003. // is needed to cater to all possible types of children values.
  4004. function normalizeChildren (children) {
  4005. return isPrimitive(children)
  4006. ? [createTextVNode(children)]
  4007. : Array.isArray(children)
  4008. ? normalizeArrayChildren(children)
  4009. : undefined
  4010. }
  4011. function isTextNode (node) {
  4012. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  4013. }
  4014. function normalizeArrayChildren (children, nestedIndex) {
  4015. var res = [];
  4016. var i, c, lastIndex, last;
  4017. for (i = 0; i < children.length; i++) {
  4018. c = children[i];
  4019. if (isUndef(c) || typeof c === 'boolean') { continue }
  4020. lastIndex = res.length - 1;
  4021. last = res[lastIndex];
  4022. // nested
  4023. if (Array.isArray(c)) {
  4024. if (c.length > 0) {
  4025. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  4026. // merge adjacent text nodes
  4027. if (isTextNode(c[0]) && isTextNode(last)) {
  4028. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  4029. c.shift();
  4030. }
  4031. res.push.apply(res, c);
  4032. }
  4033. } else if (isPrimitive(c)) {
  4034. if (isTextNode(last)) {
  4035. // merge adjacent text nodes
  4036. // this is necessary for SSR hydration because text nodes are
  4037. // essentially merged when rendered to HTML strings
  4038. res[lastIndex] = createTextVNode(last.text + c);
  4039. } else if (c !== '') {
  4040. // convert primitive to vnode
  4041. res.push(createTextVNode(c));
  4042. }
  4043. } else {
  4044. if (isTextNode(c) && isTextNode(last)) {
  4045. // merge adjacent text nodes
  4046. res[lastIndex] = createTextVNode(last.text + c.text);
  4047. } else {
  4048. // default key for nested array children (likely generated by v-for)
  4049. if (isTrue(children._isVList) &&
  4050. isDef(c.tag) &&
  4051. isUndef(c.key) &&
  4052. isDef(nestedIndex)) {
  4053. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  4054. }
  4055. res.push(c);
  4056. }
  4057. }
  4058. }
  4059. return res
  4060. }
  4061. /* */
  4062. function initProvide (vm) {
  4063. var provide = vm.$options.provide;
  4064. if (provide) {
  4065. vm._provided = typeof provide === 'function'
  4066. ? provide.call(vm)
  4067. : provide;
  4068. }
  4069. }
  4070. function initInjections (vm) {
  4071. var result = resolveInject(vm.$options.inject, vm);
  4072. if (result) {
  4073. toggleObserving(false);
  4074. Object.keys(result).forEach(function (key) {
  4075. /* istanbul ignore else */
  4076. if (true) {
  4077. defineReactive$$1(vm, key, result[key], function () {
  4078. warn(
  4079. "Avoid mutating an injected value directly since the changes will be " +
  4080. "overwritten whenever the provided component re-renders. " +
  4081. "injection being mutated: \"" + key + "\"",
  4082. vm
  4083. );
  4084. });
  4085. } else {}
  4086. });
  4087. toggleObserving(true);
  4088. }
  4089. }
  4090. function resolveInject (inject, vm) {
  4091. if (inject) {
  4092. // inject is :any because flow is not smart enough to figure out cached
  4093. var result = Object.create(null);
  4094. var keys = hasSymbol
  4095. ? Reflect.ownKeys(inject)
  4096. : Object.keys(inject);
  4097. for (var i = 0; i < keys.length; i++) {
  4098. var key = keys[i];
  4099. // #6574 in case the inject object is observed...
  4100. if (key === '__ob__') { continue }
  4101. var provideKey = inject[key].from;
  4102. var source = vm;
  4103. while (source) {
  4104. if (source._provided && hasOwn(source._provided, provideKey)) {
  4105. result[key] = source._provided[provideKey];
  4106. break
  4107. }
  4108. source = source.$parent;
  4109. }
  4110. if (!source) {
  4111. if ('default' in inject[key]) {
  4112. var provideDefault = inject[key].default;
  4113. result[key] = typeof provideDefault === 'function'
  4114. ? provideDefault.call(vm)
  4115. : provideDefault;
  4116. } else if (true) {
  4117. warn(("Injection \"" + key + "\" not found"), vm);
  4118. }
  4119. }
  4120. }
  4121. return result
  4122. }
  4123. }
  4124. /* */
  4125. /**
  4126. * Runtime helper for resolving raw children VNodes into a slot object.
  4127. */
  4128. function resolveSlots (
  4129. children,
  4130. context
  4131. ) {
  4132. if (!children || !children.length) {
  4133. return {}
  4134. }
  4135. var slots = {};
  4136. for (var i = 0, l = children.length; i < l; i++) {
  4137. var child = children[i];
  4138. var data = child.data;
  4139. // remove slot attribute if the node is resolved as a Vue slot node
  4140. if (data && data.attrs && data.attrs.slot) {
  4141. delete data.attrs.slot;
  4142. }
  4143. // named slots should only be respected if the vnode was rendered in the
  4144. // same context.
  4145. if ((child.context === context || child.fnContext === context) &&
  4146. data && data.slot != null
  4147. ) {
  4148. var name = data.slot;
  4149. var slot = (slots[name] || (slots[name] = []));
  4150. if (child.tag === 'template') {
  4151. slot.push.apply(slot, child.children || []);
  4152. } else {
  4153. slot.push(child);
  4154. }
  4155. } else {
  4156. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  4157. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  4158. (slots['page'] || (slots['page'] = [])).push(child);
  4159. }else{
  4160. (slots.default || (slots.default = [])).push(child);
  4161. }
  4162. }
  4163. }
  4164. // ignore slots that contains only whitespace
  4165. for (var name$1 in slots) {
  4166. if (slots[name$1].every(isWhitespace)) {
  4167. delete slots[name$1];
  4168. }
  4169. }
  4170. return slots
  4171. }
  4172. function isWhitespace (node) {
  4173. return (node.isComment && !node.asyncFactory) || node.text === ' '
  4174. }
  4175. /* */
  4176. function normalizeScopedSlots (
  4177. slots,
  4178. normalSlots,
  4179. prevSlots
  4180. ) {
  4181. var res;
  4182. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  4183. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  4184. var key = slots && slots.$key;
  4185. if (!slots) {
  4186. res = {};
  4187. } else if (slots._normalized) {
  4188. // fast path 1: child component re-render only, parent did not change
  4189. return slots._normalized
  4190. } else if (
  4191. isStable &&
  4192. prevSlots &&
  4193. prevSlots !== emptyObject &&
  4194. key === prevSlots.$key &&
  4195. !hasNormalSlots &&
  4196. !prevSlots.$hasNormal
  4197. ) {
  4198. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  4199. // only need to normalize once
  4200. return prevSlots
  4201. } else {
  4202. res = {};
  4203. for (var key$1 in slots) {
  4204. if (slots[key$1] && key$1[0] !== '$') {
  4205. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  4206. }
  4207. }
  4208. }
  4209. // expose normal slots on scopedSlots
  4210. for (var key$2 in normalSlots) {
  4211. if (!(key$2 in res)) {
  4212. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  4213. }
  4214. }
  4215. // avoriaz seems to mock a non-extensible $scopedSlots object
  4216. // and when that is passed down this would cause an error
  4217. if (slots && Object.isExtensible(slots)) {
  4218. (slots)._normalized = res;
  4219. }
  4220. def(res, '$stable', isStable);
  4221. def(res, '$key', key);
  4222. def(res, '$hasNormal', hasNormalSlots);
  4223. return res
  4224. }
  4225. function normalizeScopedSlot(normalSlots, key, fn) {
  4226. var normalized = function () {
  4227. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  4228. res = res && typeof res === 'object' && !Array.isArray(res)
  4229. ? [res] // single vnode
  4230. : normalizeChildren(res);
  4231. return res && (
  4232. res.length === 0 ||
  4233. (res.length === 1 && res[0].isComment) // #9658
  4234. ) ? undefined
  4235. : res
  4236. };
  4237. // this is a slot using the new v-slot syntax without scope. although it is
  4238. // compiled as a scoped slot, render fn users would expect it to be present
  4239. // on this.$slots because the usage is semantically a normal slot.
  4240. if (fn.proxy) {
  4241. Object.defineProperty(normalSlots, key, {
  4242. get: normalized,
  4243. enumerable: true,
  4244. configurable: true
  4245. });
  4246. }
  4247. return normalized
  4248. }
  4249. function proxyNormalSlot(slots, key) {
  4250. return function () { return slots[key]; }
  4251. }
  4252. /* */
  4253. /**
  4254. * Runtime helper for rendering v-for lists.
  4255. */
  4256. function renderList (
  4257. val,
  4258. render
  4259. ) {
  4260. var ret, i, l, keys, key;
  4261. if (Array.isArray(val) || typeof val === 'string') {
  4262. ret = new Array(val.length);
  4263. for (i = 0, l = val.length; i < l; i++) {
  4264. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  4265. }
  4266. } else if (typeof val === 'number') {
  4267. ret = new Array(val);
  4268. for (i = 0; i < val; i++) {
  4269. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  4270. }
  4271. } else if (isObject(val)) {
  4272. if (hasSymbol && val[Symbol.iterator]) {
  4273. ret = [];
  4274. var iterator = val[Symbol.iterator]();
  4275. var result = iterator.next();
  4276. while (!result.done) {
  4277. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  4278. result = iterator.next();
  4279. }
  4280. } else {
  4281. keys = Object.keys(val);
  4282. ret = new Array(keys.length);
  4283. for (i = 0, l = keys.length; i < l; i++) {
  4284. key = keys[i];
  4285. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  4286. }
  4287. }
  4288. }
  4289. if (!isDef(ret)) {
  4290. ret = [];
  4291. }
  4292. (ret)._isVList = true;
  4293. return ret
  4294. }
  4295. /* */
  4296. /**
  4297. * Runtime helper for rendering <slot>
  4298. */
  4299. function renderSlot (
  4300. name,
  4301. fallback,
  4302. props,
  4303. bindObject
  4304. ) {
  4305. var scopedSlotFn = this.$scopedSlots[name];
  4306. var nodes;
  4307. if (scopedSlotFn) { // scoped slot
  4308. props = props || {};
  4309. if (bindObject) {
  4310. if ( true && !isObject(bindObject)) {
  4311. warn(
  4312. 'slot v-bind without argument expects an Object',
  4313. this
  4314. );
  4315. }
  4316. props = extend(extend({}, bindObject), props);
  4317. }
  4318. // fixed by xxxxxx app-plus scopedSlot
  4319. nodes = scopedSlotFn(props, this, props._i) || fallback;
  4320. } else {
  4321. nodes = this.$slots[name] || fallback;
  4322. }
  4323. var target = props && props.slot;
  4324. if (target) {
  4325. return this.$createElement('template', { slot: target }, nodes)
  4326. } else {
  4327. return nodes
  4328. }
  4329. }
  4330. /* */
  4331. /**
  4332. * Runtime helper for resolving filters
  4333. */
  4334. function resolveFilter (id) {
  4335. return resolveAsset(this.$options, 'filters', id, true) || identity
  4336. }
  4337. /* */
  4338. function isKeyNotMatch (expect, actual) {
  4339. if (Array.isArray(expect)) {
  4340. return expect.indexOf(actual) === -1
  4341. } else {
  4342. return expect !== actual
  4343. }
  4344. }
  4345. /**
  4346. * Runtime helper for checking keyCodes from config.
  4347. * exposed as Vue.prototype._k
  4348. * passing in eventKeyName as last argument separately for backwards compat
  4349. */
  4350. function checkKeyCodes (
  4351. eventKeyCode,
  4352. key,
  4353. builtInKeyCode,
  4354. eventKeyName,
  4355. builtInKeyName
  4356. ) {
  4357. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  4358. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  4359. return isKeyNotMatch(builtInKeyName, eventKeyName)
  4360. } else if (mappedKeyCode) {
  4361. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  4362. } else if (eventKeyName) {
  4363. return hyphenate(eventKeyName) !== key
  4364. }
  4365. }
  4366. /* */
  4367. /**
  4368. * Runtime helper for merging v-bind="object" into a VNode's data.
  4369. */
  4370. function bindObjectProps (
  4371. data,
  4372. tag,
  4373. value,
  4374. asProp,
  4375. isSync
  4376. ) {
  4377. if (value) {
  4378. if (!isObject(value)) {
  4379. true && warn(
  4380. 'v-bind without argument expects an Object or Array value',
  4381. this
  4382. );
  4383. } else {
  4384. if (Array.isArray(value)) {
  4385. value = toObject(value);
  4386. }
  4387. var hash;
  4388. var loop = function ( key ) {
  4389. if (
  4390. key === 'class' ||
  4391. key === 'style' ||
  4392. isReservedAttribute(key)
  4393. ) {
  4394. hash = data;
  4395. } else {
  4396. var type = data.attrs && data.attrs.type;
  4397. hash = asProp || config.mustUseProp(tag, type, key)
  4398. ? data.domProps || (data.domProps = {})
  4399. : data.attrs || (data.attrs = {});
  4400. }
  4401. var camelizedKey = camelize(key);
  4402. var hyphenatedKey = hyphenate(key);
  4403. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  4404. hash[key] = value[key];
  4405. if (isSync) {
  4406. var on = data.on || (data.on = {});
  4407. on[("update:" + key)] = function ($event) {
  4408. value[key] = $event;
  4409. };
  4410. }
  4411. }
  4412. };
  4413. for (var key in value) loop( key );
  4414. }
  4415. }
  4416. return data
  4417. }
  4418. /* */
  4419. /**
  4420. * Runtime helper for rendering static trees.
  4421. */
  4422. function renderStatic (
  4423. index,
  4424. isInFor
  4425. ) {
  4426. var cached = this._staticTrees || (this._staticTrees = []);
  4427. var tree = cached[index];
  4428. // if has already-rendered static tree and not inside v-for,
  4429. // we can reuse the same tree.
  4430. if (tree && !isInFor) {
  4431. return tree
  4432. }
  4433. // otherwise, render a fresh tree.
  4434. tree = cached[index] = this.$options.staticRenderFns[index].call(
  4435. this._renderProxy,
  4436. null,
  4437. this // for render fns generated for functional component templates
  4438. );
  4439. markStatic(tree, ("__static__" + index), false);
  4440. return tree
  4441. }
  4442. /**
  4443. * Runtime helper for v-once.
  4444. * Effectively it means marking the node as static with a unique key.
  4445. */
  4446. function markOnce (
  4447. tree,
  4448. index,
  4449. key
  4450. ) {
  4451. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  4452. return tree
  4453. }
  4454. function markStatic (
  4455. tree,
  4456. key,
  4457. isOnce
  4458. ) {
  4459. if (Array.isArray(tree)) {
  4460. for (var i = 0; i < tree.length; i++) {
  4461. if (tree[i] && typeof tree[i] !== 'string') {
  4462. markStaticNode(tree[i], (key + "_" + i), isOnce);
  4463. }
  4464. }
  4465. } else {
  4466. markStaticNode(tree, key, isOnce);
  4467. }
  4468. }
  4469. function markStaticNode (node, key, isOnce) {
  4470. node.isStatic = true;
  4471. node.key = key;
  4472. node.isOnce = isOnce;
  4473. }
  4474. /* */
  4475. function bindObjectListeners (data, value) {
  4476. if (value) {
  4477. if (!isPlainObject(value)) {
  4478. true && warn(
  4479. 'v-on without argument expects an Object value',
  4480. this
  4481. );
  4482. } else {
  4483. var on = data.on = data.on ? extend({}, data.on) : {};
  4484. for (var key in value) {
  4485. var existing = on[key];
  4486. var ours = value[key];
  4487. on[key] = existing ? [].concat(existing, ours) : ours;
  4488. }
  4489. }
  4490. }
  4491. return data
  4492. }
  4493. /* */
  4494. function resolveScopedSlots (
  4495. fns, // see flow/vnode
  4496. res,
  4497. // the following are added in 2.6
  4498. hasDynamicKeys,
  4499. contentHashKey
  4500. ) {
  4501. res = res || { $stable: !hasDynamicKeys };
  4502. for (var i = 0; i < fns.length; i++) {
  4503. var slot = fns[i];
  4504. if (Array.isArray(slot)) {
  4505. resolveScopedSlots(slot, res, hasDynamicKeys);
  4506. } else if (slot) {
  4507. // marker for reverse proxying v-slot without scope on this.$slots
  4508. if (slot.proxy) {
  4509. slot.fn.proxy = true;
  4510. }
  4511. res[slot.key] = slot.fn;
  4512. }
  4513. }
  4514. if (contentHashKey) {
  4515. (res).$key = contentHashKey;
  4516. }
  4517. return res
  4518. }
  4519. /* */
  4520. function bindDynamicKeys (baseObj, values) {
  4521. for (var i = 0; i < values.length; i += 2) {
  4522. var key = values[i];
  4523. if (typeof key === 'string' && key) {
  4524. baseObj[values[i]] = values[i + 1];
  4525. } else if ( true && key !== '' && key !== null) {
  4526. // null is a special value for explicitly removing a binding
  4527. warn(
  4528. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  4529. this
  4530. );
  4531. }
  4532. }
  4533. return baseObj
  4534. }
  4535. // helper to dynamically append modifier runtime markers to event names.
  4536. // ensure only append when value is already string, otherwise it will be cast
  4537. // to string and cause the type check to miss.
  4538. function prependModifier (value, symbol) {
  4539. return typeof value === 'string' ? symbol + value : value
  4540. }
  4541. /* */
  4542. function installRenderHelpers (target) {
  4543. target._o = markOnce;
  4544. target._n = toNumber;
  4545. target._s = toString;
  4546. target._l = renderList;
  4547. target._t = renderSlot;
  4548. target._q = looseEqual;
  4549. target._i = looseIndexOf;
  4550. target._m = renderStatic;
  4551. target._f = resolveFilter;
  4552. target._k = checkKeyCodes;
  4553. target._b = bindObjectProps;
  4554. target._v = createTextVNode;
  4555. target._e = createEmptyVNode;
  4556. target._u = resolveScopedSlots;
  4557. target._g = bindObjectListeners;
  4558. target._d = bindDynamicKeys;
  4559. target._p = prependModifier;
  4560. }
  4561. /* */
  4562. function FunctionalRenderContext (
  4563. data,
  4564. props,
  4565. children,
  4566. parent,
  4567. Ctor
  4568. ) {
  4569. var this$1 = this;
  4570. var options = Ctor.options;
  4571. // ensure the createElement function in functional components
  4572. // gets a unique context - this is necessary for correct named slot check
  4573. var contextVm;
  4574. if (hasOwn(parent, '_uid')) {
  4575. contextVm = Object.create(parent);
  4576. // $flow-disable-line
  4577. contextVm._original = parent;
  4578. } else {
  4579. // the context vm passed in is a functional context as well.
  4580. // in this case we want to make sure we are able to get a hold to the
  4581. // real context instance.
  4582. contextVm = parent;
  4583. // $flow-disable-line
  4584. parent = parent._original;
  4585. }
  4586. var isCompiled = isTrue(options._compiled);
  4587. var needNormalization = !isCompiled;
  4588. this.data = data;
  4589. this.props = props;
  4590. this.children = children;
  4591. this.parent = parent;
  4592. this.listeners = data.on || emptyObject;
  4593. this.injections = resolveInject(options.inject, parent);
  4594. this.slots = function () {
  4595. if (!this$1.$slots) {
  4596. normalizeScopedSlots(
  4597. data.scopedSlots,
  4598. this$1.$slots = resolveSlots(children, parent)
  4599. );
  4600. }
  4601. return this$1.$slots
  4602. };
  4603. Object.defineProperty(this, 'scopedSlots', ({
  4604. enumerable: true,
  4605. get: function get () {
  4606. return normalizeScopedSlots(data.scopedSlots, this.slots())
  4607. }
  4608. }));
  4609. // support for compiled functional template
  4610. if (isCompiled) {
  4611. // exposing $options for renderStatic()
  4612. this.$options = options;
  4613. // pre-resolve slots for renderSlot()
  4614. this.$slots = this.slots();
  4615. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  4616. }
  4617. if (options._scopeId) {
  4618. this._c = function (a, b, c, d) {
  4619. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  4620. if (vnode && !Array.isArray(vnode)) {
  4621. vnode.fnScopeId = options._scopeId;
  4622. vnode.fnContext = parent;
  4623. }
  4624. return vnode
  4625. };
  4626. } else {
  4627. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  4628. }
  4629. }
  4630. installRenderHelpers(FunctionalRenderContext.prototype);
  4631. function createFunctionalComponent (
  4632. Ctor,
  4633. propsData,
  4634. data,
  4635. contextVm,
  4636. children
  4637. ) {
  4638. var options = Ctor.options;
  4639. var props = {};
  4640. var propOptions = options.props;
  4641. if (isDef(propOptions)) {
  4642. for (var key in propOptions) {
  4643. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  4644. }
  4645. } else {
  4646. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  4647. if (isDef(data.props)) { mergeProps(props, data.props); }
  4648. }
  4649. var renderContext = new FunctionalRenderContext(
  4650. data,
  4651. props,
  4652. children,
  4653. contextVm,
  4654. Ctor
  4655. );
  4656. var vnode = options.render.call(null, renderContext._c, renderContext);
  4657. if (vnode instanceof VNode) {
  4658. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  4659. } else if (Array.isArray(vnode)) {
  4660. var vnodes = normalizeChildren(vnode) || [];
  4661. var res = new Array(vnodes.length);
  4662. for (var i = 0; i < vnodes.length; i++) {
  4663. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  4664. }
  4665. return res
  4666. }
  4667. }
  4668. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  4669. // #7817 clone node before setting fnContext, otherwise if the node is reused
  4670. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  4671. // that should not be matched to match.
  4672. var clone = cloneVNode(vnode);
  4673. clone.fnContext = contextVm;
  4674. clone.fnOptions = options;
  4675. if (true) {
  4676. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  4677. }
  4678. if (data.slot) {
  4679. (clone.data || (clone.data = {})).slot = data.slot;
  4680. }
  4681. return clone
  4682. }
  4683. function mergeProps (to, from) {
  4684. for (var key in from) {
  4685. to[camelize(key)] = from[key];
  4686. }
  4687. }
  4688. /* */
  4689. /* */
  4690. /* */
  4691. /* */
  4692. // inline hooks to be invoked on component VNodes during patch
  4693. var componentVNodeHooks = {
  4694. init: function init (vnode, hydrating) {
  4695. if (
  4696. vnode.componentInstance &&
  4697. !vnode.componentInstance._isDestroyed &&
  4698. vnode.data.keepAlive
  4699. ) {
  4700. // kept-alive components, treat as a patch
  4701. var mountedNode = vnode; // work around flow
  4702. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  4703. } else {
  4704. var child = vnode.componentInstance = createComponentInstanceForVnode(
  4705. vnode,
  4706. activeInstance
  4707. );
  4708. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  4709. }
  4710. },
  4711. prepatch: function prepatch (oldVnode, vnode) {
  4712. var options = vnode.componentOptions;
  4713. var child = vnode.componentInstance = oldVnode.componentInstance;
  4714. updateChildComponent(
  4715. child,
  4716. options.propsData, // updated props
  4717. options.listeners, // updated listeners
  4718. vnode, // new parent vnode
  4719. options.children // new children
  4720. );
  4721. },
  4722. insert: function insert (vnode) {
  4723. var context = vnode.context;
  4724. var componentInstance = vnode.componentInstance;
  4725. if (!componentInstance._isMounted) {
  4726. callHook(componentInstance, 'onServiceCreated');
  4727. callHook(componentInstance, 'onServiceAttached');
  4728. componentInstance._isMounted = true;
  4729. callHook(componentInstance, 'mounted');
  4730. }
  4731. if (vnode.data.keepAlive) {
  4732. if (context._isMounted) {
  4733. // vue-router#1212
  4734. // During updates, a kept-alive component's child components may
  4735. // change, so directly walking the tree here may call activated hooks
  4736. // on incorrect children. Instead we push them into a queue which will
  4737. // be processed after the whole patch process ended.
  4738. queueActivatedComponent(componentInstance);
  4739. } else {
  4740. activateChildComponent(componentInstance, true /* direct */);
  4741. }
  4742. }
  4743. },
  4744. destroy: function destroy (vnode) {
  4745. var componentInstance = vnode.componentInstance;
  4746. if (!componentInstance._isDestroyed) {
  4747. if (!vnode.data.keepAlive) {
  4748. componentInstance.$destroy();
  4749. } else {
  4750. deactivateChildComponent(componentInstance, true /* direct */);
  4751. }
  4752. }
  4753. }
  4754. };
  4755. var hooksToMerge = Object.keys(componentVNodeHooks);
  4756. function createComponent (
  4757. Ctor,
  4758. data,
  4759. context,
  4760. children,
  4761. tag
  4762. ) {
  4763. if (isUndef(Ctor)) {
  4764. return
  4765. }
  4766. var baseCtor = context.$options._base;
  4767. // plain options object: turn it into a constructor
  4768. if (isObject(Ctor)) {
  4769. Ctor = baseCtor.extend(Ctor);
  4770. }
  4771. // if at this stage it's not a constructor or an async component factory,
  4772. // reject.
  4773. if (typeof Ctor !== 'function') {
  4774. if (true) {
  4775. warn(("Invalid Component definition: " + (String(Ctor))), context);
  4776. }
  4777. return
  4778. }
  4779. // async component
  4780. var asyncFactory;
  4781. if (isUndef(Ctor.cid)) {
  4782. asyncFactory = Ctor;
  4783. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  4784. if (Ctor === undefined) {
  4785. // return a placeholder node for async component, which is rendered
  4786. // as a comment node but preserves all the raw information for the node.
  4787. // the information will be used for async server-rendering and hydration.
  4788. return createAsyncPlaceholder(
  4789. asyncFactory,
  4790. data,
  4791. context,
  4792. children,
  4793. tag
  4794. )
  4795. }
  4796. }
  4797. data = data || {};
  4798. // resolve constructor options in case global mixins are applied after
  4799. // component constructor creation
  4800. resolveConstructorOptions(Ctor);
  4801. // transform component v-model data into props & events
  4802. if (isDef(data.model)) {
  4803. transformModel(Ctor.options, data);
  4804. }
  4805. // extract props
  4806. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  4807. // functional component
  4808. if (isTrue(Ctor.options.functional)) {
  4809. return createFunctionalComponent(Ctor, propsData, data, context, children)
  4810. }
  4811. // extract listeners, since these needs to be treated as
  4812. // child component listeners instead of DOM listeners
  4813. var listeners = data.on;
  4814. // replace with listeners with .native modifier
  4815. // so it gets processed during parent component patch.
  4816. data.on = data.nativeOn;
  4817. if (isTrue(Ctor.options.abstract)) {
  4818. // abstract components do not keep anything
  4819. // other than props & listeners & slot
  4820. // work around flow
  4821. var slot = data.slot;
  4822. data = {};
  4823. if (slot) {
  4824. data.slot = slot;
  4825. }
  4826. }
  4827. // install component management hooks onto the placeholder node
  4828. installComponentHooks(data);
  4829. // return a placeholder vnode
  4830. var name = Ctor.options.name || tag;
  4831. var vnode = new VNode(
  4832. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  4833. data, undefined, undefined, undefined, context,
  4834. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  4835. asyncFactory
  4836. );
  4837. return vnode
  4838. }
  4839. function createComponentInstanceForVnode (
  4840. vnode, // we know it's MountedComponentVNode but flow doesn't
  4841. parent // activeInstance in lifecycle state
  4842. ) {
  4843. var options = {
  4844. _isComponent: true,
  4845. _parentVnode: vnode,
  4846. parent: parent
  4847. };
  4848. // check inline-template render functions
  4849. var inlineTemplate = vnode.data.inlineTemplate;
  4850. if (isDef(inlineTemplate)) {
  4851. options.render = inlineTemplate.render;
  4852. options.staticRenderFns = inlineTemplate.staticRenderFns;
  4853. }
  4854. return new vnode.componentOptions.Ctor(options)
  4855. }
  4856. function installComponentHooks (data) {
  4857. var hooks = data.hook || (data.hook = {});
  4858. for (var i = 0; i < hooksToMerge.length; i++) {
  4859. var key = hooksToMerge[i];
  4860. var existing = hooks[key];
  4861. var toMerge = componentVNodeHooks[key];
  4862. if (existing !== toMerge && !(existing && existing._merged)) {
  4863. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  4864. }
  4865. }
  4866. }
  4867. function mergeHook$1 (f1, f2) {
  4868. var merged = function (a, b) {
  4869. // flow complains about extra args which is why we use any
  4870. f1(a, b);
  4871. f2(a, b);
  4872. };
  4873. merged._merged = true;
  4874. return merged
  4875. }
  4876. // transform component v-model info (value and callback) into
  4877. // prop and event handler respectively.
  4878. function transformModel (options, data) {
  4879. var prop = (options.model && options.model.prop) || 'value';
  4880. var event = (options.model && options.model.event) || 'input'
  4881. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  4882. var on = data.on || (data.on = {});
  4883. var existing = on[event];
  4884. var callback = data.model.callback;
  4885. if (isDef(existing)) {
  4886. if (
  4887. Array.isArray(existing)
  4888. ? existing.indexOf(callback) === -1
  4889. : existing !== callback
  4890. ) {
  4891. on[event] = [callback].concat(existing);
  4892. }
  4893. } else {
  4894. on[event] = callback;
  4895. }
  4896. }
  4897. /* */
  4898. var SIMPLE_NORMALIZE = 1;
  4899. var ALWAYS_NORMALIZE = 2;
  4900. // wrapper function for providing a more flexible interface
  4901. // without getting yelled at by flow
  4902. function createElement (
  4903. context,
  4904. tag,
  4905. data,
  4906. children,
  4907. normalizationType,
  4908. alwaysNormalize
  4909. ) {
  4910. if (Array.isArray(data) || isPrimitive(data)) {
  4911. normalizationType = children;
  4912. children = data;
  4913. data = undefined;
  4914. }
  4915. if (isTrue(alwaysNormalize)) {
  4916. normalizationType = ALWAYS_NORMALIZE;
  4917. }
  4918. return _createElement(context, tag, data, children, normalizationType)
  4919. }
  4920. function _createElement (
  4921. context,
  4922. tag,
  4923. data,
  4924. children,
  4925. normalizationType
  4926. ) {
  4927. if (isDef(data) && isDef((data).__ob__)) {
  4928. true && warn(
  4929. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  4930. 'Always create fresh vnode data objects in each render!',
  4931. context
  4932. );
  4933. return createEmptyVNode()
  4934. }
  4935. // object syntax in v-bind
  4936. if (isDef(data) && isDef(data.is)) {
  4937. tag = data.is;
  4938. }
  4939. if (!tag) {
  4940. // in case of component :is set to falsy value
  4941. return createEmptyVNode()
  4942. }
  4943. // warn against non-primitive key
  4944. if ( true &&
  4945. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  4946. ) {
  4947. {
  4948. warn(
  4949. 'Avoid using non-primitive value as key, ' +
  4950. 'use string/number value instead.',
  4951. context
  4952. );
  4953. }
  4954. }
  4955. // support single function children as default scoped slot
  4956. if (Array.isArray(children) &&
  4957. typeof children[0] === 'function'
  4958. ) {
  4959. data = data || {};
  4960. data.scopedSlots = { default: children[0] };
  4961. children.length = 0;
  4962. }
  4963. if (normalizationType === ALWAYS_NORMALIZE) {
  4964. children = normalizeChildren(children);
  4965. } else if (normalizationType === SIMPLE_NORMALIZE) {
  4966. children = simpleNormalizeChildren(children);
  4967. }
  4968. var vnode, ns;
  4969. if (typeof tag === 'string') {
  4970. var Ctor;
  4971. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  4972. if (config.isReservedTag(tag)) {
  4973. // platform built-in elements
  4974. if ( true && isDef(data) && isDef(data.nativeOn)) {
  4975. warn(
  4976. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  4977. context
  4978. );
  4979. }
  4980. vnode = new VNode(
  4981. config.parsePlatformTagName(tag), data, children,
  4982. undefined, undefined, context
  4983. );
  4984. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  4985. // component
  4986. vnode = createComponent(Ctor, data, context, children, tag);
  4987. } else {
  4988. // unknown or unlisted namespaced elements
  4989. // check at runtime because it may get assigned a namespace when its
  4990. // parent normalizes children
  4991. vnode = new VNode(
  4992. tag, data, children,
  4993. undefined, undefined, context
  4994. );
  4995. }
  4996. } else {
  4997. // direct component options / constructor
  4998. vnode = createComponent(tag, data, context, children);
  4999. }
  5000. if (Array.isArray(vnode)) {
  5001. return vnode
  5002. } else if (isDef(vnode)) {
  5003. if (isDef(ns)) { applyNS(vnode, ns); }
  5004. if (isDef(data)) { registerDeepBindings(data); }
  5005. return vnode
  5006. } else {
  5007. return createEmptyVNode()
  5008. }
  5009. }
  5010. function applyNS (vnode, ns, force) {
  5011. vnode.ns = ns;
  5012. if (vnode.tag === 'foreignObject') {
  5013. // use default namespace inside foreignObject
  5014. ns = undefined;
  5015. force = true;
  5016. }
  5017. if (isDef(vnode.children)) {
  5018. for (var i = 0, l = vnode.children.length; i < l; i++) {
  5019. var child = vnode.children[i];
  5020. if (isDef(child.tag) && (
  5021. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  5022. applyNS(child, ns, force);
  5023. }
  5024. }
  5025. }
  5026. }
  5027. // ref #5318
  5028. // necessary to ensure parent re-render when deep bindings like :style and
  5029. // :class are used on slot nodes
  5030. function registerDeepBindings (data) {
  5031. if (isObject(data.style)) {
  5032. traverse(data.style);
  5033. }
  5034. if (isObject(data.class)) {
  5035. traverse(data.class);
  5036. }
  5037. }
  5038. /* */
  5039. function initRender (vm) {
  5040. vm._vnode = null; // the root of the child tree
  5041. vm._staticTrees = null; // v-once cached trees
  5042. var options = vm.$options;
  5043. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  5044. var renderContext = parentVnode && parentVnode.context;
  5045. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  5046. vm.$scopedSlots = emptyObject;
  5047. // bind the createElement fn to this instance
  5048. // so that we get proper render context inside it.
  5049. // args order: tag, data, children, normalizationType, alwaysNormalize
  5050. // internal version is used by render functions compiled from templates
  5051. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  5052. // normalization is always applied for the public version, used in
  5053. // user-written render functions.
  5054. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  5055. // $attrs & $listeners are exposed for easier HOC creation.
  5056. // they need to be reactive so that HOCs using them are always updated
  5057. var parentData = parentVnode && parentVnode.data;
  5058. /* istanbul ignore else */
  5059. if (true) {
  5060. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  5061. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  5062. }, true);
  5063. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  5064. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  5065. }, true);
  5066. } else {}
  5067. }
  5068. var currentRenderingInstance = null;
  5069. function renderMixin (Vue) {
  5070. // install runtime convenience helpers
  5071. installRenderHelpers(Vue.prototype);
  5072. Vue.prototype.$nextTick = function (fn) {
  5073. return nextTick(fn, this)
  5074. };
  5075. Vue.prototype._render = function () {
  5076. var vm = this;
  5077. var ref = vm.$options;
  5078. var render = ref.render;
  5079. var _parentVnode = ref._parentVnode;
  5080. if (_parentVnode) {
  5081. vm.$scopedSlots = normalizeScopedSlots(
  5082. _parentVnode.data.scopedSlots,
  5083. vm.$slots,
  5084. vm.$scopedSlots
  5085. );
  5086. }
  5087. // set parent vnode. this allows render functions to have access
  5088. // to the data on the placeholder node.
  5089. vm.$vnode = _parentVnode;
  5090. // render self
  5091. var vnode;
  5092. try {
  5093. // There's no need to maintain a stack because all render fns are called
  5094. // separately from one another. Nested component's render fns are called
  5095. // when parent component is patched.
  5096. currentRenderingInstance = vm;
  5097. vnode = render.call(vm._renderProxy, vm.$createElement);
  5098. } catch (e) {
  5099. handleError(e, vm, "render");
  5100. // return error render result,
  5101. // or previous vnode to prevent render error causing blank component
  5102. /* istanbul ignore else */
  5103. if ( true && vm.$options.renderError) {
  5104. try {
  5105. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  5106. } catch (e) {
  5107. handleError(e, vm, "renderError");
  5108. vnode = vm._vnode;
  5109. }
  5110. } else {
  5111. vnode = vm._vnode;
  5112. }
  5113. } finally {
  5114. currentRenderingInstance = null;
  5115. }
  5116. // if the returned array contains only a single node, allow it
  5117. if (Array.isArray(vnode) && vnode.length === 1) {
  5118. vnode = vnode[0];
  5119. }
  5120. // return empty vnode in case the render function errored out
  5121. if (!(vnode instanceof VNode)) {
  5122. if ( true && Array.isArray(vnode)) {
  5123. warn(
  5124. 'Multiple root nodes returned from render function. Render function ' +
  5125. 'should return a single root node.',
  5126. vm
  5127. );
  5128. }
  5129. vnode = createEmptyVNode();
  5130. }
  5131. // set parent
  5132. vnode.parent = _parentVnode;
  5133. return vnode
  5134. };
  5135. }
  5136. /* */
  5137. function ensureCtor (comp, base) {
  5138. if (
  5139. comp.__esModule ||
  5140. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  5141. ) {
  5142. comp = comp.default;
  5143. }
  5144. return isObject(comp)
  5145. ? base.extend(comp)
  5146. : comp
  5147. }
  5148. function createAsyncPlaceholder (
  5149. factory,
  5150. data,
  5151. context,
  5152. children,
  5153. tag
  5154. ) {
  5155. var node = createEmptyVNode();
  5156. node.asyncFactory = factory;
  5157. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  5158. return node
  5159. }
  5160. function resolveAsyncComponent (
  5161. factory,
  5162. baseCtor
  5163. ) {
  5164. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  5165. return factory.errorComp
  5166. }
  5167. if (isDef(factory.resolved)) {
  5168. return factory.resolved
  5169. }
  5170. var owner = currentRenderingInstance;
  5171. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  5172. // already pending
  5173. factory.owners.push(owner);
  5174. }
  5175. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  5176. return factory.loadingComp
  5177. }
  5178. if (owner && !isDef(factory.owners)) {
  5179. var owners = factory.owners = [owner];
  5180. var sync = true;
  5181. var timerLoading = null;
  5182. var timerTimeout = null
  5183. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  5184. var forceRender = function (renderCompleted) {
  5185. for (var i = 0, l = owners.length; i < l; i++) {
  5186. (owners[i]).$forceUpdate();
  5187. }
  5188. if (renderCompleted) {
  5189. owners.length = 0;
  5190. if (timerLoading !== null) {
  5191. clearTimeout(timerLoading);
  5192. timerLoading = null;
  5193. }
  5194. if (timerTimeout !== null) {
  5195. clearTimeout(timerTimeout);
  5196. timerTimeout = null;
  5197. }
  5198. }
  5199. };
  5200. var resolve = once(function (res) {
  5201. // cache resolved
  5202. factory.resolved = ensureCtor(res, baseCtor);
  5203. // invoke callbacks only if this is not a synchronous resolve
  5204. // (async resolves are shimmed as synchronous during SSR)
  5205. if (!sync) {
  5206. forceRender(true);
  5207. } else {
  5208. owners.length = 0;
  5209. }
  5210. });
  5211. var reject = once(function (reason) {
  5212. true && warn(
  5213. "Failed to resolve async component: " + (String(factory)) +
  5214. (reason ? ("\nReason: " + reason) : '')
  5215. );
  5216. if (isDef(factory.errorComp)) {
  5217. factory.error = true;
  5218. forceRender(true);
  5219. }
  5220. });
  5221. var res = factory(resolve, reject);
  5222. if (isObject(res)) {
  5223. if (isPromise(res)) {
  5224. // () => Promise
  5225. if (isUndef(factory.resolved)) {
  5226. res.then(resolve, reject);
  5227. }
  5228. } else if (isPromise(res.component)) {
  5229. res.component.then(resolve, reject);
  5230. if (isDef(res.error)) {
  5231. factory.errorComp = ensureCtor(res.error, baseCtor);
  5232. }
  5233. if (isDef(res.loading)) {
  5234. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  5235. if (res.delay === 0) {
  5236. factory.loading = true;
  5237. } else {
  5238. timerLoading = setTimeout(function () {
  5239. timerLoading = null;
  5240. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  5241. factory.loading = true;
  5242. forceRender(false);
  5243. }
  5244. }, res.delay || 200);
  5245. }
  5246. }
  5247. if (isDef(res.timeout)) {
  5248. timerTimeout = setTimeout(function () {
  5249. timerTimeout = null;
  5250. if (isUndef(factory.resolved)) {
  5251. reject(
  5252. true
  5253. ? ("timeout (" + (res.timeout) + "ms)")
  5254. : undefined
  5255. );
  5256. }
  5257. }, res.timeout);
  5258. }
  5259. }
  5260. }
  5261. sync = false;
  5262. // return in case resolved synchronously
  5263. return factory.loading
  5264. ? factory.loadingComp
  5265. : factory.resolved
  5266. }
  5267. }
  5268. /* */
  5269. function isAsyncPlaceholder (node) {
  5270. return node.isComment && node.asyncFactory
  5271. }
  5272. /* */
  5273. function getFirstComponentChild (children) {
  5274. if (Array.isArray(children)) {
  5275. for (var i = 0; i < children.length; i++) {
  5276. var c = children[i];
  5277. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  5278. return c
  5279. }
  5280. }
  5281. }
  5282. }
  5283. /* */
  5284. /* */
  5285. function initEvents (vm) {
  5286. vm._events = Object.create(null);
  5287. vm._hasHookEvent = false;
  5288. // init parent attached events
  5289. var listeners = vm.$options._parentListeners;
  5290. if (listeners) {
  5291. updateComponentListeners(vm, listeners);
  5292. }
  5293. }
  5294. var target;
  5295. function add (event, fn) {
  5296. target.$on(event, fn);
  5297. }
  5298. function remove$1 (event, fn) {
  5299. target.$off(event, fn);
  5300. }
  5301. function createOnceHandler (event, fn) {
  5302. var _target = target;
  5303. return function onceHandler () {
  5304. var res = fn.apply(null, arguments);
  5305. if (res !== null) {
  5306. _target.$off(event, onceHandler);
  5307. }
  5308. }
  5309. }
  5310. function updateComponentListeners (
  5311. vm,
  5312. listeners,
  5313. oldListeners
  5314. ) {
  5315. target = vm;
  5316. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  5317. target = undefined;
  5318. }
  5319. function eventsMixin (Vue) {
  5320. var hookRE = /^hook:/;
  5321. Vue.prototype.$on = function (event, fn) {
  5322. var vm = this;
  5323. if (Array.isArray(event)) {
  5324. for (var i = 0, l = event.length; i < l; i++) {
  5325. vm.$on(event[i], fn);
  5326. }
  5327. } else {
  5328. (vm._events[event] || (vm._events[event] = [])).push(fn);
  5329. // optimize hook:event cost by using a boolean flag marked at registration
  5330. // instead of a hash lookup
  5331. if (hookRE.test(event)) {
  5332. vm._hasHookEvent = true;
  5333. }
  5334. }
  5335. return vm
  5336. };
  5337. Vue.prototype.$once = function (event, fn) {
  5338. var vm = this;
  5339. function on () {
  5340. vm.$off(event, on);
  5341. fn.apply(vm, arguments);
  5342. }
  5343. on.fn = fn;
  5344. vm.$on(event, on);
  5345. return vm
  5346. };
  5347. Vue.prototype.$off = function (event, fn) {
  5348. var vm = this;
  5349. // all
  5350. if (!arguments.length) {
  5351. vm._events = Object.create(null);
  5352. return vm
  5353. }
  5354. // array of events
  5355. if (Array.isArray(event)) {
  5356. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  5357. vm.$off(event[i$1], fn);
  5358. }
  5359. return vm
  5360. }
  5361. // specific event
  5362. var cbs = vm._events[event];
  5363. if (!cbs) {
  5364. return vm
  5365. }
  5366. if (!fn) {
  5367. vm._events[event] = null;
  5368. return vm
  5369. }
  5370. // specific handler
  5371. var cb;
  5372. var i = cbs.length;
  5373. while (i--) {
  5374. cb = cbs[i];
  5375. if (cb === fn || cb.fn === fn) {
  5376. cbs.splice(i, 1);
  5377. break
  5378. }
  5379. }
  5380. return vm
  5381. };
  5382. Vue.prototype.$emit = function (event) {
  5383. var vm = this;
  5384. if (true) {
  5385. var lowerCaseEvent = event.toLowerCase();
  5386. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  5387. tip(
  5388. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  5389. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  5390. "Note that HTML attributes are case-insensitive and you cannot use " +
  5391. "v-on to listen to camelCase events when using in-DOM templates. " +
  5392. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  5393. );
  5394. }
  5395. }
  5396. var cbs = vm._events[event];
  5397. if (cbs) {
  5398. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  5399. var args = toArray(arguments, 1);
  5400. var info = "event handler for \"" + event + "\"";
  5401. for (var i = 0, l = cbs.length; i < l; i++) {
  5402. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  5403. }
  5404. }
  5405. return vm
  5406. };
  5407. }
  5408. /* */
  5409. var activeInstance = null;
  5410. var isUpdatingChildComponent = false;
  5411. function setActiveInstance(vm) {
  5412. var prevActiveInstance = activeInstance;
  5413. activeInstance = vm;
  5414. return function () {
  5415. activeInstance = prevActiveInstance;
  5416. }
  5417. }
  5418. function initLifecycle (vm) {
  5419. var options = vm.$options;
  5420. // locate first non-abstract parent
  5421. var parent = options.parent;
  5422. if (parent && !options.abstract) {
  5423. while (parent.$options.abstract && parent.$parent) {
  5424. parent = parent.$parent;
  5425. }
  5426. parent.$children.push(vm);
  5427. }
  5428. vm.$parent = parent;
  5429. vm.$root = parent ? parent.$root : vm;
  5430. vm.$children = [];
  5431. vm.$refs = {};
  5432. vm._watcher = null;
  5433. vm._inactive = null;
  5434. vm._directInactive = false;
  5435. vm._isMounted = false;
  5436. vm._isDestroyed = false;
  5437. vm._isBeingDestroyed = false;
  5438. }
  5439. function lifecycleMixin (Vue) {
  5440. Vue.prototype._update = function (vnode, hydrating) {
  5441. var vm = this;
  5442. var prevEl = vm.$el;
  5443. var prevVnode = vm._vnode;
  5444. var restoreActiveInstance = setActiveInstance(vm);
  5445. vm._vnode = vnode;
  5446. // Vue.prototype.__patch__ is injected in entry points
  5447. // based on the rendering backend used.
  5448. if (!prevVnode) {
  5449. // initial render
  5450. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  5451. } else {
  5452. // updates
  5453. vm.$el = vm.__patch__(prevVnode, vnode);
  5454. }
  5455. restoreActiveInstance();
  5456. // update __vue__ reference
  5457. if (prevEl) {
  5458. prevEl.__vue__ = null;
  5459. }
  5460. if (vm.$el) {
  5461. vm.$el.__vue__ = vm;
  5462. }
  5463. // if parent is an HOC, update its $el as well
  5464. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  5465. vm.$parent.$el = vm.$el;
  5466. }
  5467. // updated hook is called by the scheduler to ensure that children are
  5468. // updated in a parent's updated hook.
  5469. };
  5470. Vue.prototype.$forceUpdate = function () {
  5471. var vm = this;
  5472. if (vm._watcher) {
  5473. vm._watcher.update();
  5474. }
  5475. };
  5476. Vue.prototype.$destroy = function () {
  5477. var vm = this;
  5478. if (vm._isBeingDestroyed) {
  5479. return
  5480. }
  5481. callHook(vm, 'beforeDestroy');
  5482. vm._isBeingDestroyed = true;
  5483. // remove self from parent
  5484. var parent = vm.$parent;
  5485. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  5486. remove(parent.$children, vm);
  5487. }
  5488. // teardown watchers
  5489. if (vm._watcher) {
  5490. vm._watcher.teardown();
  5491. }
  5492. var i = vm._watchers.length;
  5493. while (i--) {
  5494. vm._watchers[i].teardown();
  5495. }
  5496. // remove reference from data ob
  5497. // frozen object may not have observer.
  5498. if (vm._data.__ob__) {
  5499. vm._data.__ob__.vmCount--;
  5500. }
  5501. // call the last hook...
  5502. vm._isDestroyed = true;
  5503. // invoke destroy hooks on current rendered tree
  5504. vm.__patch__(vm._vnode, null);
  5505. // fire destroyed hook
  5506. callHook(vm, 'destroyed');
  5507. // turn off all instance listeners.
  5508. vm.$off();
  5509. // remove __vue__ reference
  5510. if (vm.$el) {
  5511. vm.$el.__vue__ = null;
  5512. }
  5513. // release circular reference (#6759)
  5514. if (vm.$vnode) {
  5515. vm.$vnode.parent = null;
  5516. }
  5517. };
  5518. }
  5519. function updateChildComponent (
  5520. vm,
  5521. propsData,
  5522. listeners,
  5523. parentVnode,
  5524. renderChildren
  5525. ) {
  5526. if (true) {
  5527. isUpdatingChildComponent = true;
  5528. }
  5529. // determine whether component has slot children
  5530. // we need to do this before overwriting $options._renderChildren.
  5531. // check if there are dynamic scopedSlots (hand-written or compiled but with
  5532. // dynamic slot names). Static scoped slots compiled from template has the
  5533. // "$stable" marker.
  5534. var newScopedSlots = parentVnode.data.scopedSlots;
  5535. var oldScopedSlots = vm.$scopedSlots;
  5536. var hasDynamicScopedSlot = !!(
  5537. (newScopedSlots && !newScopedSlots.$stable) ||
  5538. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  5539. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  5540. );
  5541. // Any static slot children from the parent may have changed during parent's
  5542. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  5543. // update is necessary to ensure correctness.
  5544. var needsForceUpdate = !!(
  5545. renderChildren || // has new static slots
  5546. vm.$options._renderChildren || // has old static slots
  5547. hasDynamicScopedSlot
  5548. );
  5549. vm.$options._parentVnode = parentVnode;
  5550. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  5551. if (vm._vnode) { // update child tree's parent
  5552. vm._vnode.parent = parentVnode;
  5553. }
  5554. vm.$options._renderChildren = renderChildren;
  5555. // update $attrs and $listeners hash
  5556. // these are also reactive so they may trigger child update if the child
  5557. // used them during render
  5558. vm.$attrs = parentVnode.data.attrs || emptyObject;
  5559. vm.$listeners = listeners || emptyObject;
  5560. // update props
  5561. if (propsData && vm.$options.props) {
  5562. toggleObserving(false);
  5563. var props = vm._props;
  5564. var propKeys = vm.$options._propKeys || [];
  5565. for (var i = 0; i < propKeys.length; i++) {
  5566. var key = propKeys[i];
  5567. var propOptions = vm.$options.props; // wtf flow?
  5568. props[key] = validateProp(key, propOptions, propsData, vm);
  5569. }
  5570. toggleObserving(true);
  5571. // keep a copy of raw propsData
  5572. vm.$options.propsData = propsData;
  5573. }
  5574. // fixed by xxxxxx update properties(mp runtime)
  5575. vm._$updateProperties && vm._$updateProperties(vm);
  5576. // update listeners
  5577. listeners = listeners || emptyObject;
  5578. var oldListeners = vm.$options._parentListeners;
  5579. vm.$options._parentListeners = listeners;
  5580. updateComponentListeners(vm, listeners, oldListeners);
  5581. // resolve slots + force update if has children
  5582. if (needsForceUpdate) {
  5583. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  5584. vm.$forceUpdate();
  5585. }
  5586. if (true) {
  5587. isUpdatingChildComponent = false;
  5588. }
  5589. }
  5590. function isInInactiveTree (vm) {
  5591. while (vm && (vm = vm.$parent)) {
  5592. if (vm._inactive) { return true }
  5593. }
  5594. return false
  5595. }
  5596. function activateChildComponent (vm, direct) {
  5597. if (direct) {
  5598. vm._directInactive = false;
  5599. if (isInInactiveTree(vm)) {
  5600. return
  5601. }
  5602. } else if (vm._directInactive) {
  5603. return
  5604. }
  5605. if (vm._inactive || vm._inactive === null) {
  5606. vm._inactive = false;
  5607. for (var i = 0; i < vm.$children.length; i++) {
  5608. activateChildComponent(vm.$children[i]);
  5609. }
  5610. callHook(vm, 'activated');
  5611. }
  5612. }
  5613. function deactivateChildComponent (vm, direct) {
  5614. if (direct) {
  5615. vm._directInactive = true;
  5616. if (isInInactiveTree(vm)) {
  5617. return
  5618. }
  5619. }
  5620. if (!vm._inactive) {
  5621. vm._inactive = true;
  5622. for (var i = 0; i < vm.$children.length; i++) {
  5623. deactivateChildComponent(vm.$children[i]);
  5624. }
  5625. callHook(vm, 'deactivated');
  5626. }
  5627. }
  5628. function callHook (vm, hook) {
  5629. // #7573 disable dep collection when invoking lifecycle hooks
  5630. pushTarget();
  5631. var handlers = vm.$options[hook];
  5632. var info = hook + " hook";
  5633. if (handlers) {
  5634. for (var i = 0, j = handlers.length; i < j; i++) {
  5635. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  5636. }
  5637. }
  5638. if (vm._hasHookEvent) {
  5639. vm.$emit('hook:' + hook);
  5640. }
  5641. popTarget();
  5642. }
  5643. /* */
  5644. var MAX_UPDATE_COUNT = 100;
  5645. var queue = [];
  5646. var activatedChildren = [];
  5647. var has = {};
  5648. var circular = {};
  5649. var waiting = false;
  5650. var flushing = false;
  5651. var index = 0;
  5652. /**
  5653. * Reset the scheduler's state.
  5654. */
  5655. function resetSchedulerState () {
  5656. index = queue.length = activatedChildren.length = 0;
  5657. has = {};
  5658. if (true) {
  5659. circular = {};
  5660. }
  5661. waiting = flushing = false;
  5662. }
  5663. // Async edge case #6566 requires saving the timestamp when event listeners are
  5664. // attached. However, calling performance.now() has a perf overhead especially
  5665. // if the page has thousands of event listeners. Instead, we take a timestamp
  5666. // every time the scheduler flushes and use that for all event listeners
  5667. // attached during that flush.
  5668. var currentFlushTimestamp = 0;
  5669. // Async edge case fix requires storing an event listener's attach timestamp.
  5670. var getNow = Date.now;
  5671. // Determine what event timestamp the browser is using. Annoyingly, the
  5672. // timestamp can either be hi-res (relative to page load) or low-res
  5673. // (relative to UNIX epoch), so in order to compare time we have to use the
  5674. // same timestamp type when saving the flush timestamp.
  5675. // All IE versions use low-res event timestamps, and have problematic clock
  5676. // implementations (#9632)
  5677. if (inBrowser && !isIE) {
  5678. var performance = window.performance;
  5679. if (
  5680. performance &&
  5681. typeof performance.now === 'function' &&
  5682. getNow() > document.createEvent('Event').timeStamp
  5683. ) {
  5684. // if the event timestamp, although evaluated AFTER the Date.now(), is
  5685. // smaller than it, it means the event is using a hi-res timestamp,
  5686. // and we need to use the hi-res version for event listener timestamps as
  5687. // well.
  5688. getNow = function () { return performance.now(); };
  5689. }
  5690. }
  5691. /**
  5692. * Flush both queues and run the watchers.
  5693. */
  5694. function flushSchedulerQueue () {
  5695. currentFlushTimestamp = getNow();
  5696. flushing = true;
  5697. var watcher, id;
  5698. // Sort queue before flush.
  5699. // This ensures that:
  5700. // 1. Components are updated from parent to child. (because parent is always
  5701. // created before the child)
  5702. // 2. A component's user watchers are run before its render watcher (because
  5703. // user watchers are created before the render watcher)
  5704. // 3. If a component is destroyed during a parent component's watcher run,
  5705. // its watchers can be skipped.
  5706. queue.sort(function (a, b) { return a.id - b.id; });
  5707. // do not cache length because more watchers might be pushed
  5708. // as we run existing watchers
  5709. for (index = 0; index < queue.length; index++) {
  5710. watcher = queue[index];
  5711. if (watcher.before) {
  5712. watcher.before();
  5713. }
  5714. id = watcher.id;
  5715. has[id] = null;
  5716. watcher.run();
  5717. // in dev build, check and stop circular updates.
  5718. if ( true && has[id] != null) {
  5719. circular[id] = (circular[id] || 0) + 1;
  5720. if (circular[id] > MAX_UPDATE_COUNT) {
  5721. warn(
  5722. 'You may have an infinite update loop ' + (
  5723. watcher.user
  5724. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  5725. : "in a component render function."
  5726. ),
  5727. watcher.vm
  5728. );
  5729. break
  5730. }
  5731. }
  5732. }
  5733. // keep copies of post queues before resetting state
  5734. var activatedQueue = activatedChildren.slice();
  5735. var updatedQueue = queue.slice();
  5736. resetSchedulerState();
  5737. // call component updated and activated hooks
  5738. callActivatedHooks(activatedQueue);
  5739. callUpdatedHooks(updatedQueue);
  5740. // devtool hook
  5741. /* istanbul ignore if */
  5742. if (devtools && config.devtools) {
  5743. devtools.emit('flush');
  5744. }
  5745. }
  5746. function callUpdatedHooks (queue) {
  5747. var i = queue.length;
  5748. while (i--) {
  5749. var watcher = queue[i];
  5750. var vm = watcher.vm;
  5751. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  5752. callHook(vm, 'updated');
  5753. }
  5754. }
  5755. }
  5756. /**
  5757. * Queue a kept-alive component that was activated during patch.
  5758. * The queue will be processed after the entire tree has been patched.
  5759. */
  5760. function queueActivatedComponent (vm) {
  5761. // setting _inactive to false here so that a render function can
  5762. // rely on checking whether it's in an inactive tree (e.g. router-view)
  5763. vm._inactive = false;
  5764. activatedChildren.push(vm);
  5765. }
  5766. function callActivatedHooks (queue) {
  5767. for (var i = 0; i < queue.length; i++) {
  5768. queue[i]._inactive = true;
  5769. activateChildComponent(queue[i], true /* true */);
  5770. }
  5771. }
  5772. /**
  5773. * Push a watcher into the watcher queue.
  5774. * Jobs with duplicate IDs will be skipped unless it's
  5775. * pushed when the queue is being flushed.
  5776. */
  5777. function queueWatcher (watcher) {
  5778. var id = watcher.id;
  5779. if (has[id] == null) {
  5780. has[id] = true;
  5781. if (!flushing) {
  5782. queue.push(watcher);
  5783. } else {
  5784. // if already flushing, splice the watcher based on its id
  5785. // if already past its id, it will be run next immediately.
  5786. var i = queue.length - 1;
  5787. while (i > index && queue[i].id > watcher.id) {
  5788. i--;
  5789. }
  5790. queue.splice(i + 1, 0, watcher);
  5791. }
  5792. // queue the flush
  5793. if (!waiting) {
  5794. waiting = true;
  5795. if ( true && !config.async) {
  5796. flushSchedulerQueue();
  5797. return
  5798. }
  5799. nextTick(flushSchedulerQueue);
  5800. }
  5801. }
  5802. }
  5803. /* */
  5804. var uid$2 = 0;
  5805. /**
  5806. * A watcher parses an expression, collects dependencies,
  5807. * and fires callback when the expression value changes.
  5808. * This is used for both the $watch() api and directives.
  5809. */
  5810. var Watcher = function Watcher (
  5811. vm,
  5812. expOrFn,
  5813. cb,
  5814. options,
  5815. isRenderWatcher
  5816. ) {
  5817. this.vm = vm;
  5818. if (isRenderWatcher) {
  5819. vm._watcher = this;
  5820. }
  5821. vm._watchers.push(this);
  5822. // options
  5823. if (options) {
  5824. this.deep = !!options.deep;
  5825. this.user = !!options.user;
  5826. this.lazy = !!options.lazy;
  5827. this.sync = !!options.sync;
  5828. this.before = options.before;
  5829. } else {
  5830. this.deep = this.user = this.lazy = this.sync = false;
  5831. }
  5832. this.cb = cb;
  5833. this.id = ++uid$2; // uid for batching
  5834. this.active = true;
  5835. this.dirty = this.lazy; // for lazy watchers
  5836. this.deps = [];
  5837. this.newDeps = [];
  5838. this.depIds = new _Set();
  5839. this.newDepIds = new _Set();
  5840. this.expression = true
  5841. ? expOrFn.toString()
  5842. : undefined;
  5843. // parse expression for getter
  5844. if (typeof expOrFn === 'function') {
  5845. this.getter = expOrFn;
  5846. } else {
  5847. this.getter = parsePath(expOrFn);
  5848. if (!this.getter) {
  5849. this.getter = noop;
  5850. true && warn(
  5851. "Failed watching path: \"" + expOrFn + "\" " +
  5852. 'Watcher only accepts simple dot-delimited paths. ' +
  5853. 'For full control, use a function instead.',
  5854. vm
  5855. );
  5856. }
  5857. }
  5858. this.value = this.lazy
  5859. ? undefined
  5860. : this.get();
  5861. };
  5862. /**
  5863. * Evaluate the getter, and re-collect dependencies.
  5864. */
  5865. Watcher.prototype.get = function get () {
  5866. pushTarget(this);
  5867. var value;
  5868. var vm = this.vm;
  5869. try {
  5870. value = this.getter.call(vm, vm);
  5871. } catch (e) {
  5872. if (this.user) {
  5873. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  5874. } else {
  5875. throw e
  5876. }
  5877. } finally {
  5878. // "touch" every property so they are all tracked as
  5879. // dependencies for deep watching
  5880. if (this.deep) {
  5881. traverse(value);
  5882. }
  5883. popTarget();
  5884. this.cleanupDeps();
  5885. }
  5886. return value
  5887. };
  5888. /**
  5889. * Add a dependency to this directive.
  5890. */
  5891. Watcher.prototype.addDep = function addDep (dep) {
  5892. var id = dep.id;
  5893. if (!this.newDepIds.has(id)) {
  5894. this.newDepIds.add(id);
  5895. this.newDeps.push(dep);
  5896. if (!this.depIds.has(id)) {
  5897. dep.addSub(this);
  5898. }
  5899. }
  5900. };
  5901. /**
  5902. * Clean up for dependency collection.
  5903. */
  5904. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  5905. var i = this.deps.length;
  5906. while (i--) {
  5907. var dep = this.deps[i];
  5908. if (!this.newDepIds.has(dep.id)) {
  5909. dep.removeSub(this);
  5910. }
  5911. }
  5912. var tmp = this.depIds;
  5913. this.depIds = this.newDepIds;
  5914. this.newDepIds = tmp;
  5915. this.newDepIds.clear();
  5916. tmp = this.deps;
  5917. this.deps = this.newDeps;
  5918. this.newDeps = tmp;
  5919. this.newDeps.length = 0;
  5920. };
  5921. /**
  5922. * Subscriber interface.
  5923. * Will be called when a dependency changes.
  5924. */
  5925. Watcher.prototype.update = function update () {
  5926. /* istanbul ignore else */
  5927. if (this.lazy) {
  5928. this.dirty = true;
  5929. } else if (this.sync) {
  5930. this.run();
  5931. } else {
  5932. queueWatcher(this);
  5933. }
  5934. };
  5935. /**
  5936. * Scheduler job interface.
  5937. * Will be called by the scheduler.
  5938. */
  5939. Watcher.prototype.run = function run () {
  5940. if (this.active) {
  5941. var value = this.get();
  5942. if (
  5943. value !== this.value ||
  5944. // Deep watchers and watchers on Object/Arrays should fire even
  5945. // when the value is the same, because the value may
  5946. // have mutated.
  5947. isObject(value) ||
  5948. this.deep
  5949. ) {
  5950. // set new value
  5951. var oldValue = this.value;
  5952. this.value = value;
  5953. if (this.user) {
  5954. try {
  5955. this.cb.call(this.vm, value, oldValue);
  5956. } catch (e) {
  5957. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  5958. }
  5959. } else {
  5960. this.cb.call(this.vm, value, oldValue);
  5961. }
  5962. }
  5963. }
  5964. };
  5965. /**
  5966. * Evaluate the value of the watcher.
  5967. * This only gets called for lazy watchers.
  5968. */
  5969. Watcher.prototype.evaluate = function evaluate () {
  5970. this.value = this.get();
  5971. this.dirty = false;
  5972. };
  5973. /**
  5974. * Depend on all deps collected by this watcher.
  5975. */
  5976. Watcher.prototype.depend = function depend () {
  5977. var i = this.deps.length;
  5978. while (i--) {
  5979. this.deps[i].depend();
  5980. }
  5981. };
  5982. /**
  5983. * Remove self from all dependencies' subscriber list.
  5984. */
  5985. Watcher.prototype.teardown = function teardown () {
  5986. if (this.active) {
  5987. // remove self from vm's watcher list
  5988. // this is a somewhat expensive operation so we skip it
  5989. // if the vm is being destroyed.
  5990. if (!this.vm._isBeingDestroyed) {
  5991. remove(this.vm._watchers, this);
  5992. }
  5993. var i = this.deps.length;
  5994. while (i--) {
  5995. this.deps[i].removeSub(this);
  5996. }
  5997. this.active = false;
  5998. }
  5999. };
  6000. /* */
  6001. var sharedPropertyDefinition = {
  6002. enumerable: true,
  6003. configurable: true,
  6004. get: noop,
  6005. set: noop
  6006. };
  6007. function proxy (target, sourceKey, key) {
  6008. sharedPropertyDefinition.get = function proxyGetter () {
  6009. return this[sourceKey][key]
  6010. };
  6011. sharedPropertyDefinition.set = function proxySetter (val) {
  6012. this[sourceKey][key] = val;
  6013. };
  6014. Object.defineProperty(target, key, sharedPropertyDefinition);
  6015. }
  6016. function initState (vm) {
  6017. vm._watchers = [];
  6018. var opts = vm.$options;
  6019. if (opts.props) { initProps(vm, opts.props); }
  6020. if (opts.methods) { initMethods(vm, opts.methods); }
  6021. if (opts.data) {
  6022. initData(vm);
  6023. } else {
  6024. observe(vm._data = {}, true /* asRootData */);
  6025. }
  6026. if (opts.computed) { initComputed(vm, opts.computed); }
  6027. if (opts.watch && opts.watch !== nativeWatch) {
  6028. initWatch(vm, opts.watch);
  6029. }
  6030. }
  6031. function initProps (vm, propsOptions) {
  6032. var propsData = vm.$options.propsData || {};
  6033. var props = vm._props = {};
  6034. // cache prop keys so that future props updates can iterate using Array
  6035. // instead of dynamic object key enumeration.
  6036. var keys = vm.$options._propKeys = [];
  6037. var isRoot = !vm.$parent;
  6038. // root instance props should be converted
  6039. if (!isRoot) {
  6040. toggleObserving(false);
  6041. }
  6042. var loop = function ( key ) {
  6043. keys.push(key);
  6044. var value = validateProp(key, propsOptions, propsData, vm);
  6045. /* istanbul ignore else */
  6046. if (true) {
  6047. var hyphenatedKey = hyphenate(key);
  6048. if (isReservedAttribute(hyphenatedKey) ||
  6049. config.isReservedAttr(hyphenatedKey)) {
  6050. warn(
  6051. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  6052. vm
  6053. );
  6054. }
  6055. defineReactive$$1(props, key, value, function () {
  6056. if (!isRoot && !isUpdatingChildComponent) {
  6057. {
  6058. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou'){//百度、快手 observer 在 setData callback 之后触发,直接忽略该 warn
  6059. return
  6060. }
  6061. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  6062. if(
  6063. key === 'value' &&
  6064. Array.isArray(vm.$options.behaviors) &&
  6065. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  6066. ){
  6067. return
  6068. }
  6069. if(vm._getFormData){
  6070. return
  6071. }
  6072. var $parent = vm.$parent;
  6073. while($parent){
  6074. if($parent.__next_tick_pending){
  6075. return
  6076. }
  6077. $parent = $parent.$parent;
  6078. }
  6079. }
  6080. warn(
  6081. "Avoid mutating a prop directly since the value will be " +
  6082. "overwritten whenever the parent component re-renders. " +
  6083. "Instead, use a data or computed property based on the prop's " +
  6084. "value. Prop being mutated: \"" + key + "\"",
  6085. vm
  6086. );
  6087. }
  6088. });
  6089. } else {}
  6090. // static props are already proxied on the component's prototype
  6091. // during Vue.extend(). We only need to proxy props defined at
  6092. // instantiation here.
  6093. if (!(key in vm)) {
  6094. proxy(vm, "_props", key);
  6095. }
  6096. };
  6097. for (var key in propsOptions) loop( key );
  6098. toggleObserving(true);
  6099. }
  6100. function initData (vm) {
  6101. var data = vm.$options.data;
  6102. data = vm._data = typeof data === 'function'
  6103. ? getData(data, vm)
  6104. : data || {};
  6105. if (!isPlainObject(data)) {
  6106. data = {};
  6107. true && warn(
  6108. 'data functions should return an object:\n' +
  6109. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  6110. vm
  6111. );
  6112. }
  6113. // proxy data on instance
  6114. var keys = Object.keys(data);
  6115. var props = vm.$options.props;
  6116. var methods = vm.$options.methods;
  6117. var i = keys.length;
  6118. while (i--) {
  6119. var key = keys[i];
  6120. if (true) {
  6121. if (methods && hasOwn(methods, key)) {
  6122. warn(
  6123. ("Method \"" + key + "\" has already been defined as a data property."),
  6124. vm
  6125. );
  6126. }
  6127. }
  6128. if (props && hasOwn(props, key)) {
  6129. true && warn(
  6130. "The data property \"" + key + "\" is already declared as a prop. " +
  6131. "Use prop default value instead.",
  6132. vm
  6133. );
  6134. } else if (!isReserved(key)) {
  6135. proxy(vm, "_data", key);
  6136. }
  6137. }
  6138. // observe data
  6139. observe(data, true /* asRootData */);
  6140. }
  6141. function getData (data, vm) {
  6142. // #7573 disable dep collection when invoking data getters
  6143. pushTarget();
  6144. try {
  6145. return data.call(vm, vm)
  6146. } catch (e) {
  6147. handleError(e, vm, "data()");
  6148. return {}
  6149. } finally {
  6150. popTarget();
  6151. }
  6152. }
  6153. var computedWatcherOptions = { lazy: true };
  6154. function initComputed (vm, computed) {
  6155. // $flow-disable-line
  6156. var watchers = vm._computedWatchers = Object.create(null);
  6157. // computed properties are just getters during SSR
  6158. var isSSR = isServerRendering();
  6159. for (var key in computed) {
  6160. var userDef = computed[key];
  6161. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  6162. if ( true && getter == null) {
  6163. warn(
  6164. ("Getter is missing for computed property \"" + key + "\"."),
  6165. vm
  6166. );
  6167. }
  6168. if (!isSSR) {
  6169. // create internal watcher for the computed property.
  6170. watchers[key] = new Watcher(
  6171. vm,
  6172. getter || noop,
  6173. noop,
  6174. computedWatcherOptions
  6175. );
  6176. }
  6177. // component-defined computed properties are already defined on the
  6178. // component prototype. We only need to define computed properties defined
  6179. // at instantiation here.
  6180. if (!(key in vm)) {
  6181. defineComputed(vm, key, userDef);
  6182. } else if (true) {
  6183. if (key in vm.$data) {
  6184. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  6185. } else if (vm.$options.props && key in vm.$options.props) {
  6186. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  6187. }
  6188. }
  6189. }
  6190. }
  6191. function defineComputed (
  6192. target,
  6193. key,
  6194. userDef
  6195. ) {
  6196. var shouldCache = !isServerRendering();
  6197. if (typeof userDef === 'function') {
  6198. sharedPropertyDefinition.get = shouldCache
  6199. ? createComputedGetter(key)
  6200. : createGetterInvoker(userDef);
  6201. sharedPropertyDefinition.set = noop;
  6202. } else {
  6203. sharedPropertyDefinition.get = userDef.get
  6204. ? shouldCache && userDef.cache !== false
  6205. ? createComputedGetter(key)
  6206. : createGetterInvoker(userDef.get)
  6207. : noop;
  6208. sharedPropertyDefinition.set = userDef.set || noop;
  6209. }
  6210. if ( true &&
  6211. sharedPropertyDefinition.set === noop) {
  6212. sharedPropertyDefinition.set = function () {
  6213. warn(
  6214. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  6215. this
  6216. );
  6217. };
  6218. }
  6219. Object.defineProperty(target, key, sharedPropertyDefinition);
  6220. }
  6221. function createComputedGetter (key) {
  6222. return function computedGetter () {
  6223. var watcher = this._computedWatchers && this._computedWatchers[key];
  6224. if (watcher) {
  6225. if (watcher.dirty) {
  6226. watcher.evaluate();
  6227. }
  6228. if (Dep.SharedObject.target) {// fixed by xxxxxx
  6229. watcher.depend();
  6230. }
  6231. return watcher.value
  6232. }
  6233. }
  6234. }
  6235. function createGetterInvoker(fn) {
  6236. return function computedGetter () {
  6237. return fn.call(this, this)
  6238. }
  6239. }
  6240. function initMethods (vm, methods) {
  6241. var props = vm.$options.props;
  6242. for (var key in methods) {
  6243. if (true) {
  6244. if (typeof methods[key] !== 'function') {
  6245. warn(
  6246. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  6247. "Did you reference the function correctly?",
  6248. vm
  6249. );
  6250. }
  6251. if (props && hasOwn(props, key)) {
  6252. warn(
  6253. ("Method \"" + key + "\" has already been defined as a prop."),
  6254. vm
  6255. );
  6256. }
  6257. if ((key in vm) && isReserved(key)) {
  6258. warn(
  6259. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  6260. "Avoid defining component methods that start with _ or $."
  6261. );
  6262. }
  6263. }
  6264. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  6265. }
  6266. }
  6267. function initWatch (vm, watch) {
  6268. for (var key in watch) {
  6269. var handler = watch[key];
  6270. if (Array.isArray(handler)) {
  6271. for (var i = 0; i < handler.length; i++) {
  6272. createWatcher(vm, key, handler[i]);
  6273. }
  6274. } else {
  6275. createWatcher(vm, key, handler);
  6276. }
  6277. }
  6278. }
  6279. function createWatcher (
  6280. vm,
  6281. expOrFn,
  6282. handler,
  6283. options
  6284. ) {
  6285. if (isPlainObject(handler)) {
  6286. options = handler;
  6287. handler = handler.handler;
  6288. }
  6289. if (typeof handler === 'string') {
  6290. handler = vm[handler];
  6291. }
  6292. return vm.$watch(expOrFn, handler, options)
  6293. }
  6294. function stateMixin (Vue) {
  6295. // flow somehow has problems with directly declared definition object
  6296. // when using Object.defineProperty, so we have to procedurally build up
  6297. // the object here.
  6298. var dataDef = {};
  6299. dataDef.get = function () { return this._data };
  6300. var propsDef = {};
  6301. propsDef.get = function () { return this._props };
  6302. if (true) {
  6303. dataDef.set = function () {
  6304. warn(
  6305. 'Avoid replacing instance root $data. ' +
  6306. 'Use nested data properties instead.',
  6307. this
  6308. );
  6309. };
  6310. propsDef.set = function () {
  6311. warn("$props is readonly.", this);
  6312. };
  6313. }
  6314. Object.defineProperty(Vue.prototype, '$data', dataDef);
  6315. Object.defineProperty(Vue.prototype, '$props', propsDef);
  6316. Vue.prototype.$set = set;
  6317. Vue.prototype.$delete = del;
  6318. Vue.prototype.$watch = function (
  6319. expOrFn,
  6320. cb,
  6321. options
  6322. ) {
  6323. var vm = this;
  6324. if (isPlainObject(cb)) {
  6325. return createWatcher(vm, expOrFn, cb, options)
  6326. }
  6327. options = options || {};
  6328. options.user = true;
  6329. var watcher = new Watcher(vm, expOrFn, cb, options);
  6330. if (options.immediate) {
  6331. try {
  6332. cb.call(vm, watcher.value);
  6333. } catch (error) {
  6334. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  6335. }
  6336. }
  6337. return function unwatchFn () {
  6338. watcher.teardown();
  6339. }
  6340. };
  6341. }
  6342. /* */
  6343. var uid$3 = 0;
  6344. function initMixin (Vue) {
  6345. Vue.prototype._init = function (options) {
  6346. var vm = this;
  6347. // a uid
  6348. vm._uid = uid$3++;
  6349. var startTag, endTag;
  6350. /* istanbul ignore if */
  6351. if ( true && config.performance && mark) {
  6352. startTag = "vue-perf-start:" + (vm._uid);
  6353. endTag = "vue-perf-end:" + (vm._uid);
  6354. mark(startTag);
  6355. }
  6356. // a flag to avoid this being observed
  6357. vm._isVue = true;
  6358. // merge options
  6359. if (options && options._isComponent) {
  6360. // optimize internal component instantiation
  6361. // since dynamic options merging is pretty slow, and none of the
  6362. // internal component options needs special treatment.
  6363. initInternalComponent(vm, options);
  6364. } else {
  6365. vm.$options = mergeOptions(
  6366. resolveConstructorOptions(vm.constructor),
  6367. options || {},
  6368. vm
  6369. );
  6370. }
  6371. /* istanbul ignore else */
  6372. if (true) {
  6373. initProxy(vm);
  6374. } else {}
  6375. // expose real self
  6376. vm._self = vm;
  6377. initLifecycle(vm);
  6378. initEvents(vm);
  6379. initRender(vm);
  6380. callHook(vm, 'beforeCreate');
  6381. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  6382. initState(vm);
  6383. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  6384. !vm._$fallback && callHook(vm, 'created');
  6385. /* istanbul ignore if */
  6386. if ( true && config.performance && mark) {
  6387. vm._name = formatComponentName(vm, false);
  6388. mark(endTag);
  6389. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  6390. }
  6391. if (vm.$options.el) {
  6392. vm.$mount(vm.$options.el);
  6393. }
  6394. };
  6395. }
  6396. function initInternalComponent (vm, options) {
  6397. var opts = vm.$options = Object.create(vm.constructor.options);
  6398. // doing this because it's faster than dynamic enumeration.
  6399. var parentVnode = options._parentVnode;
  6400. opts.parent = options.parent;
  6401. opts._parentVnode = parentVnode;
  6402. var vnodeComponentOptions = parentVnode.componentOptions;
  6403. opts.propsData = vnodeComponentOptions.propsData;
  6404. opts._parentListeners = vnodeComponentOptions.listeners;
  6405. opts._renderChildren = vnodeComponentOptions.children;
  6406. opts._componentTag = vnodeComponentOptions.tag;
  6407. if (options.render) {
  6408. opts.render = options.render;
  6409. opts.staticRenderFns = options.staticRenderFns;
  6410. }
  6411. }
  6412. function resolveConstructorOptions (Ctor) {
  6413. var options = Ctor.options;
  6414. if (Ctor.super) {
  6415. var superOptions = resolveConstructorOptions(Ctor.super);
  6416. var cachedSuperOptions = Ctor.superOptions;
  6417. if (superOptions !== cachedSuperOptions) {
  6418. // super option changed,
  6419. // need to resolve new options.
  6420. Ctor.superOptions = superOptions;
  6421. // check if there are any late-modified/attached options (#4976)
  6422. var modifiedOptions = resolveModifiedOptions(Ctor);
  6423. // update base extend options
  6424. if (modifiedOptions) {
  6425. extend(Ctor.extendOptions, modifiedOptions);
  6426. }
  6427. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  6428. if (options.name) {
  6429. options.components[options.name] = Ctor;
  6430. }
  6431. }
  6432. }
  6433. return options
  6434. }
  6435. function resolveModifiedOptions (Ctor) {
  6436. var modified;
  6437. var latest = Ctor.options;
  6438. var sealed = Ctor.sealedOptions;
  6439. for (var key in latest) {
  6440. if (latest[key] !== sealed[key]) {
  6441. if (!modified) { modified = {}; }
  6442. modified[key] = latest[key];
  6443. }
  6444. }
  6445. return modified
  6446. }
  6447. function Vue (options) {
  6448. if ( true &&
  6449. !(this instanceof Vue)
  6450. ) {
  6451. warn('Vue is a constructor and should be called with the `new` keyword');
  6452. }
  6453. this._init(options);
  6454. }
  6455. initMixin(Vue);
  6456. stateMixin(Vue);
  6457. eventsMixin(Vue);
  6458. lifecycleMixin(Vue);
  6459. renderMixin(Vue);
  6460. /* */
  6461. function initUse (Vue) {
  6462. Vue.use = function (plugin) {
  6463. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  6464. if (installedPlugins.indexOf(plugin) > -1) {
  6465. return this
  6466. }
  6467. // additional parameters
  6468. var args = toArray(arguments, 1);
  6469. args.unshift(this);
  6470. if (typeof plugin.install === 'function') {
  6471. plugin.install.apply(plugin, args);
  6472. } else if (typeof plugin === 'function') {
  6473. plugin.apply(null, args);
  6474. }
  6475. installedPlugins.push(plugin);
  6476. return this
  6477. };
  6478. }
  6479. /* */
  6480. function initMixin$1 (Vue) {
  6481. Vue.mixin = function (mixin) {
  6482. this.options = mergeOptions(this.options, mixin);
  6483. return this
  6484. };
  6485. }
  6486. /* */
  6487. function initExtend (Vue) {
  6488. /**
  6489. * Each instance constructor, including Vue, has a unique
  6490. * cid. This enables us to create wrapped "child
  6491. * constructors" for prototypal inheritance and cache them.
  6492. */
  6493. Vue.cid = 0;
  6494. var cid = 1;
  6495. /**
  6496. * Class inheritance
  6497. */
  6498. Vue.extend = function (extendOptions) {
  6499. extendOptions = extendOptions || {};
  6500. var Super = this;
  6501. var SuperId = Super.cid;
  6502. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  6503. if (cachedCtors[SuperId]) {
  6504. return cachedCtors[SuperId]
  6505. }
  6506. var name = extendOptions.name || Super.options.name;
  6507. if ( true && name) {
  6508. validateComponentName(name);
  6509. }
  6510. var Sub = function VueComponent (options) {
  6511. this._init(options);
  6512. };
  6513. Sub.prototype = Object.create(Super.prototype);
  6514. Sub.prototype.constructor = Sub;
  6515. Sub.cid = cid++;
  6516. Sub.options = mergeOptions(
  6517. Super.options,
  6518. extendOptions
  6519. );
  6520. Sub['super'] = Super;
  6521. // For props and computed properties, we define the proxy getters on
  6522. // the Vue instances at extension time, on the extended prototype. This
  6523. // avoids Object.defineProperty calls for each instance created.
  6524. if (Sub.options.props) {
  6525. initProps$1(Sub);
  6526. }
  6527. if (Sub.options.computed) {
  6528. initComputed$1(Sub);
  6529. }
  6530. // allow further extension/mixin/plugin usage
  6531. Sub.extend = Super.extend;
  6532. Sub.mixin = Super.mixin;
  6533. Sub.use = Super.use;
  6534. // create asset registers, so extended classes
  6535. // can have their private assets too.
  6536. ASSET_TYPES.forEach(function (type) {
  6537. Sub[type] = Super[type];
  6538. });
  6539. // enable recursive self-lookup
  6540. if (name) {
  6541. Sub.options.components[name] = Sub;
  6542. }
  6543. // keep a reference to the super options at extension time.
  6544. // later at instantiation we can check if Super's options have
  6545. // been updated.
  6546. Sub.superOptions = Super.options;
  6547. Sub.extendOptions = extendOptions;
  6548. Sub.sealedOptions = extend({}, Sub.options);
  6549. // cache constructor
  6550. cachedCtors[SuperId] = Sub;
  6551. return Sub
  6552. };
  6553. }
  6554. function initProps$1 (Comp) {
  6555. var props = Comp.options.props;
  6556. for (var key in props) {
  6557. proxy(Comp.prototype, "_props", key);
  6558. }
  6559. }
  6560. function initComputed$1 (Comp) {
  6561. var computed = Comp.options.computed;
  6562. for (var key in computed) {
  6563. defineComputed(Comp.prototype, key, computed[key]);
  6564. }
  6565. }
  6566. /* */
  6567. function initAssetRegisters (Vue) {
  6568. /**
  6569. * Create asset registration methods.
  6570. */
  6571. ASSET_TYPES.forEach(function (type) {
  6572. Vue[type] = function (
  6573. id,
  6574. definition
  6575. ) {
  6576. if (!definition) {
  6577. return this.options[type + 's'][id]
  6578. } else {
  6579. /* istanbul ignore if */
  6580. if ( true && type === 'component') {
  6581. validateComponentName(id);
  6582. }
  6583. if (type === 'component' && isPlainObject(definition)) {
  6584. definition.name = definition.name || id;
  6585. definition = this.options._base.extend(definition);
  6586. }
  6587. if (type === 'directive' && typeof definition === 'function') {
  6588. definition = { bind: definition, update: definition };
  6589. }
  6590. this.options[type + 's'][id] = definition;
  6591. return definition
  6592. }
  6593. };
  6594. });
  6595. }
  6596. /* */
  6597. function getComponentName (opts) {
  6598. return opts && (opts.Ctor.options.name || opts.tag)
  6599. }
  6600. function matches (pattern, name) {
  6601. if (Array.isArray(pattern)) {
  6602. return pattern.indexOf(name) > -1
  6603. } else if (typeof pattern === 'string') {
  6604. return pattern.split(',').indexOf(name) > -1
  6605. } else if (isRegExp(pattern)) {
  6606. return pattern.test(name)
  6607. }
  6608. /* istanbul ignore next */
  6609. return false
  6610. }
  6611. function pruneCache (keepAliveInstance, filter) {
  6612. var cache = keepAliveInstance.cache;
  6613. var keys = keepAliveInstance.keys;
  6614. var _vnode = keepAliveInstance._vnode;
  6615. for (var key in cache) {
  6616. var cachedNode = cache[key];
  6617. if (cachedNode) {
  6618. var name = getComponentName(cachedNode.componentOptions);
  6619. if (name && !filter(name)) {
  6620. pruneCacheEntry(cache, key, keys, _vnode);
  6621. }
  6622. }
  6623. }
  6624. }
  6625. function pruneCacheEntry (
  6626. cache,
  6627. key,
  6628. keys,
  6629. current
  6630. ) {
  6631. var cached$$1 = cache[key];
  6632. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  6633. cached$$1.componentInstance.$destroy();
  6634. }
  6635. cache[key] = null;
  6636. remove(keys, key);
  6637. }
  6638. var patternTypes = [String, RegExp, Array];
  6639. var KeepAlive = {
  6640. name: 'keep-alive',
  6641. abstract: true,
  6642. props: {
  6643. include: patternTypes,
  6644. exclude: patternTypes,
  6645. max: [String, Number]
  6646. },
  6647. created: function created () {
  6648. this.cache = Object.create(null);
  6649. this.keys = [];
  6650. },
  6651. destroyed: function destroyed () {
  6652. for (var key in this.cache) {
  6653. pruneCacheEntry(this.cache, key, this.keys);
  6654. }
  6655. },
  6656. mounted: function mounted () {
  6657. var this$1 = this;
  6658. this.$watch('include', function (val) {
  6659. pruneCache(this$1, function (name) { return matches(val, name); });
  6660. });
  6661. this.$watch('exclude', function (val) {
  6662. pruneCache(this$1, function (name) { return !matches(val, name); });
  6663. });
  6664. },
  6665. render: function render () {
  6666. var slot = this.$slots.default;
  6667. var vnode = getFirstComponentChild(slot);
  6668. var componentOptions = vnode && vnode.componentOptions;
  6669. if (componentOptions) {
  6670. // check pattern
  6671. var name = getComponentName(componentOptions);
  6672. var ref = this;
  6673. var include = ref.include;
  6674. var exclude = ref.exclude;
  6675. if (
  6676. // not included
  6677. (include && (!name || !matches(include, name))) ||
  6678. // excluded
  6679. (exclude && name && matches(exclude, name))
  6680. ) {
  6681. return vnode
  6682. }
  6683. var ref$1 = this;
  6684. var cache = ref$1.cache;
  6685. var keys = ref$1.keys;
  6686. var key = vnode.key == null
  6687. // same constructor may get registered as different local components
  6688. // so cid alone is not enough (#3269)
  6689. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  6690. : vnode.key;
  6691. if (cache[key]) {
  6692. vnode.componentInstance = cache[key].componentInstance;
  6693. // make current key freshest
  6694. remove(keys, key);
  6695. keys.push(key);
  6696. } else {
  6697. cache[key] = vnode;
  6698. keys.push(key);
  6699. // prune oldest entry
  6700. if (this.max && keys.length > parseInt(this.max)) {
  6701. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  6702. }
  6703. }
  6704. vnode.data.keepAlive = true;
  6705. }
  6706. return vnode || (slot && slot[0])
  6707. }
  6708. };
  6709. var builtInComponents = {
  6710. KeepAlive: KeepAlive
  6711. };
  6712. /* */
  6713. function initGlobalAPI (Vue) {
  6714. // config
  6715. var configDef = {};
  6716. configDef.get = function () { return config; };
  6717. if (true) {
  6718. configDef.set = function () {
  6719. warn(
  6720. 'Do not replace the Vue.config object, set individual fields instead.'
  6721. );
  6722. };
  6723. }
  6724. Object.defineProperty(Vue, 'config', configDef);
  6725. // exposed util methods.
  6726. // NOTE: these are not considered part of the public API - avoid relying on
  6727. // them unless you are aware of the risk.
  6728. Vue.util = {
  6729. warn: warn,
  6730. extend: extend,
  6731. mergeOptions: mergeOptions,
  6732. defineReactive: defineReactive$$1
  6733. };
  6734. Vue.set = set;
  6735. Vue.delete = del;
  6736. Vue.nextTick = nextTick;
  6737. // 2.6 explicit observable API
  6738. Vue.observable = function (obj) {
  6739. observe(obj);
  6740. return obj
  6741. };
  6742. Vue.options = Object.create(null);
  6743. ASSET_TYPES.forEach(function (type) {
  6744. Vue.options[type + 's'] = Object.create(null);
  6745. });
  6746. // this is used to identify the "base" constructor to extend all plain-object
  6747. // components with in Weex's multi-instance scenarios.
  6748. Vue.options._base = Vue;
  6749. extend(Vue.options.components, builtInComponents);
  6750. initUse(Vue);
  6751. initMixin$1(Vue);
  6752. initExtend(Vue);
  6753. initAssetRegisters(Vue);
  6754. }
  6755. initGlobalAPI(Vue);
  6756. Object.defineProperty(Vue.prototype, '$isServer', {
  6757. get: isServerRendering
  6758. });
  6759. Object.defineProperty(Vue.prototype, '$ssrContext', {
  6760. get: function get () {
  6761. /* istanbul ignore next */
  6762. return this.$vnode && this.$vnode.ssrContext
  6763. }
  6764. });
  6765. // expose FunctionalRenderContext for ssr runtime helper installation
  6766. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  6767. value: FunctionalRenderContext
  6768. });
  6769. Vue.version = '2.6.11';
  6770. /**
  6771. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  6772. */
  6773. var ARRAYTYPE = '[object Array]';
  6774. var OBJECTTYPE = '[object Object]';
  6775. // const FUNCTIONTYPE = '[object Function]'
  6776. function diff(current, pre) {
  6777. var result = {};
  6778. syncKeys(current, pre);
  6779. _diff(current, pre, '', result);
  6780. return result
  6781. }
  6782. function syncKeys(current, pre) {
  6783. if (current === pre) { return }
  6784. var rootCurrentType = type(current);
  6785. var rootPreType = type(pre);
  6786. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  6787. if(Object.keys(current).length >= Object.keys(pre).length){
  6788. for (var key in pre) {
  6789. var currentValue = current[key];
  6790. if (currentValue === undefined) {
  6791. current[key] = null;
  6792. } else {
  6793. syncKeys(currentValue, pre[key]);
  6794. }
  6795. }
  6796. }
  6797. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  6798. if (current.length >= pre.length) {
  6799. pre.forEach(function (item, index) {
  6800. syncKeys(current[index], item);
  6801. });
  6802. }
  6803. }
  6804. }
  6805. function _diff(current, pre, path, result) {
  6806. if (current === pre) { return }
  6807. var rootCurrentType = type(current);
  6808. var rootPreType = type(pre);
  6809. if (rootCurrentType == OBJECTTYPE) {
  6810. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  6811. setResult(result, path, current);
  6812. } else {
  6813. var loop = function ( key ) {
  6814. var currentValue = current[key];
  6815. var preValue = pre[key];
  6816. var currentType = type(currentValue);
  6817. var preType = type(preValue);
  6818. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  6819. // NOTE 此处将 != 修改为 !==。涉及地方太多恐怕测试不到,如果出现数据对比问题,将其修改回来。
  6820. if (currentValue !== pre[key]) {
  6821. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6822. }
  6823. } else if (currentType == ARRAYTYPE) {
  6824. if (preType != ARRAYTYPE) {
  6825. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6826. } else {
  6827. if (currentValue.length < preValue.length) {
  6828. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6829. } else {
  6830. currentValue.forEach(function (item, index) {
  6831. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  6832. });
  6833. }
  6834. }
  6835. } else if (currentType == OBJECTTYPE) {
  6836. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  6837. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6838. } else {
  6839. for (var subKey in currentValue) {
  6840. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  6841. }
  6842. }
  6843. }
  6844. };
  6845. for (var key in current) loop( key );
  6846. }
  6847. } else if (rootCurrentType == ARRAYTYPE) {
  6848. if (rootPreType != ARRAYTYPE) {
  6849. setResult(result, path, current);
  6850. } else {
  6851. if (current.length < pre.length) {
  6852. setResult(result, path, current);
  6853. } else {
  6854. current.forEach(function (item, index) {
  6855. _diff(item, pre[index], path + '[' + index + ']', result);
  6856. });
  6857. }
  6858. }
  6859. } else {
  6860. setResult(result, path, current);
  6861. }
  6862. }
  6863. function setResult(result, k, v) {
  6864. // if (type(v) != FUNCTIONTYPE) {
  6865. result[k] = v;
  6866. // }
  6867. }
  6868. function type(obj) {
  6869. return Object.prototype.toString.call(obj)
  6870. }
  6871. /* */
  6872. function flushCallbacks$1(vm) {
  6873. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  6874. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"dx","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  6875. var mpInstance = vm.$scope;
  6876. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  6877. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  6878. }
  6879. var copies = vm.__next_tick_callbacks.slice(0);
  6880. vm.__next_tick_callbacks.length = 0;
  6881. for (var i = 0; i < copies.length; i++) {
  6882. copies[i]();
  6883. }
  6884. }
  6885. }
  6886. function hasRenderWatcher(vm) {
  6887. return queue.find(function (watcher) { return vm._watcher === watcher; })
  6888. }
  6889. function nextTick$1(vm, cb) {
  6890. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  6891. //2.nextTick 之前存在 render watcher
  6892. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  6893. if(Object({"NODE_ENV":"development","VUE_APP_NAME":"dx","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  6894. var mpInstance = vm.$scope;
  6895. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  6896. ']:nextVueTick');
  6897. }
  6898. return nextTick(cb, vm)
  6899. }else{
  6900. if(Object({"NODE_ENV":"development","VUE_APP_NAME":"dx","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  6901. var mpInstance$1 = vm.$scope;
  6902. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  6903. ']:nextMPTick');
  6904. }
  6905. }
  6906. var _resolve;
  6907. if (!vm.__next_tick_callbacks) {
  6908. vm.__next_tick_callbacks = [];
  6909. }
  6910. vm.__next_tick_callbacks.push(function () {
  6911. if (cb) {
  6912. try {
  6913. cb.call(vm);
  6914. } catch (e) {
  6915. handleError(e, vm, 'nextTick');
  6916. }
  6917. } else if (_resolve) {
  6918. _resolve(vm);
  6919. }
  6920. });
  6921. // $flow-disable-line
  6922. if (!cb && typeof Promise !== 'undefined') {
  6923. return new Promise(function (resolve) {
  6924. _resolve = resolve;
  6925. })
  6926. }
  6927. }
  6928. /* */
  6929. function cloneWithData(vm) {
  6930. // 确保当前 vm 所有数据被同步
  6931. var ret = Object.create(null);
  6932. var dataKeys = [].concat(
  6933. Object.keys(vm._data || {}),
  6934. Object.keys(vm._computedWatchers || {}));
  6935. dataKeys.reduce(function(ret, key) {
  6936. ret[key] = vm[key];
  6937. return ret
  6938. }, ret);
  6939. // vue-composition-api
  6940. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  6941. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  6942. if (rawBindings) {
  6943. Object.keys(rawBindings).forEach(function (key) {
  6944. ret[key] = vm[key];
  6945. });
  6946. }
  6947. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  6948. Object.assign(ret, vm.$mp.data || {});
  6949. if (
  6950. Array.isArray(vm.$options.behaviors) &&
  6951. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  6952. ) { //form-field
  6953. ret['name'] = vm.name;
  6954. ret['value'] = vm.value;
  6955. }
  6956. return JSON.parse(JSON.stringify(ret))
  6957. }
  6958. var patch = function(oldVnode, vnode) {
  6959. var this$1 = this;
  6960. if (vnode === null) { //destroy
  6961. return
  6962. }
  6963. if (this.mpType === 'page' || this.mpType === 'component') {
  6964. var mpInstance = this.$scope;
  6965. var data = Object.create(null);
  6966. try {
  6967. data = cloneWithData(this);
  6968. } catch (err) {
  6969. console.error(err);
  6970. }
  6971. data.__webviewId__ = mpInstance.data.__webviewId__;
  6972. var mpData = Object.create(null);
  6973. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  6974. mpData[key] = mpInstance.data[key];
  6975. });
  6976. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  6977. if (Object.keys(diffData).length) {
  6978. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"dx","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  6979. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  6980. ']差量更新',
  6981. JSON.stringify(diffData));
  6982. }
  6983. this.__next_tick_pending = true;
  6984. mpInstance.setData(diffData, function () {
  6985. this$1.__next_tick_pending = false;
  6986. flushCallbacks$1(this$1);
  6987. });
  6988. } else {
  6989. flushCallbacks$1(this);
  6990. }
  6991. }
  6992. };
  6993. /* */
  6994. function createEmptyRender() {
  6995. }
  6996. function mountComponent$1(
  6997. vm,
  6998. el,
  6999. hydrating
  7000. ) {
  7001. if (!vm.mpType) {//main.js 中的 new Vue
  7002. return vm
  7003. }
  7004. if (vm.mpType === 'app') {
  7005. vm.$options.render = createEmptyRender;
  7006. }
  7007. if (!vm.$options.render) {
  7008. vm.$options.render = createEmptyRender;
  7009. if (true) {
  7010. /* istanbul ignore if */
  7011. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  7012. vm.$options.el || el) {
  7013. warn(
  7014. 'You are using the runtime-only build of Vue where the template ' +
  7015. 'compiler is not available. Either pre-compile the templates into ' +
  7016. 'render functions, or use the compiler-included build.',
  7017. vm
  7018. );
  7019. } else {
  7020. warn(
  7021. 'Failed to mount component: template or render function not defined.',
  7022. vm
  7023. );
  7024. }
  7025. }
  7026. }
  7027. !vm._$fallback && callHook(vm, 'beforeMount');
  7028. var updateComponent = function () {
  7029. vm._update(vm._render(), hydrating);
  7030. };
  7031. // we set this to vm._watcher inside the watcher's constructor
  7032. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  7033. // component's mounted hook), which relies on vm._watcher being already defined
  7034. new Watcher(vm, updateComponent, noop, {
  7035. before: function before() {
  7036. if (vm._isMounted && !vm._isDestroyed) {
  7037. callHook(vm, 'beforeUpdate');
  7038. }
  7039. }
  7040. }, true /* isRenderWatcher */);
  7041. hydrating = false;
  7042. return vm
  7043. }
  7044. /* */
  7045. function renderClass (
  7046. staticClass,
  7047. dynamicClass
  7048. ) {
  7049. if (isDef(staticClass) || isDef(dynamicClass)) {
  7050. return concat(staticClass, stringifyClass(dynamicClass))
  7051. }
  7052. /* istanbul ignore next */
  7053. return ''
  7054. }
  7055. function concat (a, b) {
  7056. return a ? b ? (a + ' ' + b) : a : (b || '')
  7057. }
  7058. function stringifyClass (value) {
  7059. if (Array.isArray(value)) {
  7060. return stringifyArray(value)
  7061. }
  7062. if (isObject(value)) {
  7063. return stringifyObject(value)
  7064. }
  7065. if (typeof value === 'string') {
  7066. return value
  7067. }
  7068. /* istanbul ignore next */
  7069. return ''
  7070. }
  7071. function stringifyArray (value) {
  7072. var res = '';
  7073. var stringified;
  7074. for (var i = 0, l = value.length; i < l; i++) {
  7075. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  7076. if (res) { res += ' '; }
  7077. res += stringified;
  7078. }
  7079. }
  7080. return res
  7081. }
  7082. function stringifyObject (value) {
  7083. var res = '';
  7084. for (var key in value) {
  7085. if (value[key]) {
  7086. if (res) { res += ' '; }
  7087. res += key;
  7088. }
  7089. }
  7090. return res
  7091. }
  7092. /* */
  7093. var parseStyleText = cached(function (cssText) {
  7094. var res = {};
  7095. var listDelimiter = /;(?![^(]*\))/g;
  7096. var propertyDelimiter = /:(.+)/;
  7097. cssText.split(listDelimiter).forEach(function (item) {
  7098. if (item) {
  7099. var tmp = item.split(propertyDelimiter);
  7100. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  7101. }
  7102. });
  7103. return res
  7104. });
  7105. // normalize possible array / string values into Object
  7106. function normalizeStyleBinding (bindingStyle) {
  7107. if (Array.isArray(bindingStyle)) {
  7108. return toObject(bindingStyle)
  7109. }
  7110. if (typeof bindingStyle === 'string') {
  7111. return parseStyleText(bindingStyle)
  7112. }
  7113. return bindingStyle
  7114. }
  7115. /* */
  7116. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  7117. function getTarget(obj, path) {
  7118. var parts = path.split('.');
  7119. var key = parts[0];
  7120. if (key.indexOf('__$n') === 0) { //number index
  7121. key = parseInt(key.replace('__$n', ''));
  7122. }
  7123. if (parts.length === 1) {
  7124. return obj[key]
  7125. }
  7126. return getTarget(obj[key], parts.slice(1).join('.'))
  7127. }
  7128. function internalMixin(Vue) {
  7129. Vue.config.errorHandler = function(err, vm, info) {
  7130. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  7131. console.error(err);
  7132. /* eslint-disable no-undef */
  7133. var app = typeof getApp === 'function' && getApp();
  7134. if (app && app.onError) {
  7135. app.onError(err);
  7136. }
  7137. };
  7138. var oldEmit = Vue.prototype.$emit;
  7139. Vue.prototype.$emit = function(event) {
  7140. if (this.$scope && event) {
  7141. this.$scope['triggerEvent'](event, {
  7142. __args__: toArray(arguments, 1)
  7143. });
  7144. }
  7145. return oldEmit.apply(this, arguments)
  7146. };
  7147. Vue.prototype.$nextTick = function(fn) {
  7148. return nextTick$1(this, fn)
  7149. };
  7150. MP_METHODS.forEach(function (method) {
  7151. Vue.prototype[method] = function(args) {
  7152. if (this.$scope && this.$scope[method]) {
  7153. return this.$scope[method](args)
  7154. }
  7155. // mp-alipay
  7156. if (typeof my === 'undefined') {
  7157. return
  7158. }
  7159. if (method === 'createSelectorQuery') {
  7160. /* eslint-disable no-undef */
  7161. return my.createSelectorQuery(args)
  7162. } else if (method === 'createIntersectionObserver') {
  7163. /* eslint-disable no-undef */
  7164. return my.createIntersectionObserver(args)
  7165. }
  7166. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  7167. };
  7168. });
  7169. Vue.prototype.__init_provide = initProvide;
  7170. Vue.prototype.__init_injections = initInjections;
  7171. Vue.prototype.__call_hook = function(hook, args) {
  7172. var vm = this;
  7173. // #7573 disable dep collection when invoking lifecycle hooks
  7174. pushTarget();
  7175. var handlers = vm.$options[hook];
  7176. var info = hook + " hook";
  7177. var ret;
  7178. if (handlers) {
  7179. for (var i = 0, j = handlers.length; i < j; i++) {
  7180. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  7181. }
  7182. }
  7183. if (vm._hasHookEvent) {
  7184. vm.$emit('hook:' + hook, args);
  7185. }
  7186. popTarget();
  7187. return ret
  7188. };
  7189. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  7190. if (Array.isArray(modifiers)) {
  7191. if (modifiers.indexOf('trim') !== -1) {
  7192. value = value.trim();
  7193. }
  7194. if (modifiers.indexOf('number') !== -1) {
  7195. value = this._n(value);
  7196. }
  7197. }
  7198. if (!target) {
  7199. target = this;
  7200. }
  7201. target[key] = value;
  7202. };
  7203. Vue.prototype.__set_sync = function(target, key, value) {
  7204. if (!target) {
  7205. target = this;
  7206. }
  7207. target[key] = value;
  7208. };
  7209. Vue.prototype.__get_orig = function(item) {
  7210. if (isPlainObject(item)) {
  7211. return item['$orig'] || item
  7212. }
  7213. return item
  7214. };
  7215. Vue.prototype.__get_value = function(dataPath, target) {
  7216. return getTarget(target || this, dataPath)
  7217. };
  7218. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  7219. return renderClass(staticClass, dynamicClass)
  7220. };
  7221. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  7222. if (!dynamicStyle && !staticStyle) {
  7223. return ''
  7224. }
  7225. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  7226. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  7227. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  7228. };
  7229. Vue.prototype.__map = function(val, iteratee) {
  7230. //TODO 暂不考虑 string
  7231. var ret, i, l, keys, key;
  7232. if (Array.isArray(val)) {
  7233. ret = new Array(val.length);
  7234. for (i = 0, l = val.length; i < l; i++) {
  7235. ret[i] = iteratee(val[i], i);
  7236. }
  7237. return ret
  7238. } else if (isObject(val)) {
  7239. keys = Object.keys(val);
  7240. ret = Object.create(null);
  7241. for (i = 0, l = keys.length; i < l; i++) {
  7242. key = keys[i];
  7243. ret[key] = iteratee(val[key], key, i);
  7244. }
  7245. return ret
  7246. } else if (typeof val === 'number') {
  7247. ret = new Array(val);
  7248. for (i = 0, l = val; i < l; i++) {
  7249. // 第一个参数暂时仍和小程序一致
  7250. ret[i] = iteratee(i, i);
  7251. }
  7252. return ret
  7253. }
  7254. return []
  7255. };
  7256. }
  7257. /* */
  7258. var LIFECYCLE_HOOKS$1 = [
  7259. //App
  7260. 'onLaunch',
  7261. 'onShow',
  7262. 'onHide',
  7263. 'onUniNViewMessage',
  7264. 'onPageNotFound',
  7265. 'onThemeChange',
  7266. 'onError',
  7267. 'onUnhandledRejection',
  7268. //Page
  7269. 'onInit',
  7270. 'onLoad',
  7271. // 'onShow',
  7272. 'onReady',
  7273. // 'onHide',
  7274. 'onUnload',
  7275. 'onPullDownRefresh',
  7276. 'onReachBottom',
  7277. 'onTabItemTap',
  7278. 'onAddToFavorites',
  7279. 'onShareTimeline',
  7280. 'onShareAppMessage',
  7281. 'onResize',
  7282. 'onPageScroll',
  7283. 'onNavigationBarButtonTap',
  7284. 'onBackPress',
  7285. 'onNavigationBarSearchInputChanged',
  7286. 'onNavigationBarSearchInputConfirmed',
  7287. 'onNavigationBarSearchInputClicked',
  7288. //Component
  7289. // 'onReady', // 兼容旧版本,应该移除该事件
  7290. 'onPageShow',
  7291. 'onPageHide',
  7292. 'onPageResize'
  7293. ];
  7294. function lifecycleMixin$1(Vue) {
  7295. //fixed vue-class-component
  7296. var oldExtend = Vue.extend;
  7297. Vue.extend = function(extendOptions) {
  7298. extendOptions = extendOptions || {};
  7299. var methods = extendOptions.methods;
  7300. if (methods) {
  7301. Object.keys(methods).forEach(function (methodName) {
  7302. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  7303. extendOptions[methodName] = methods[methodName];
  7304. delete methods[methodName];
  7305. }
  7306. });
  7307. }
  7308. return oldExtend.call(this, extendOptions)
  7309. };
  7310. var strategies = Vue.config.optionMergeStrategies;
  7311. var mergeHook = strategies.created;
  7312. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  7313. strategies[hook] = mergeHook;
  7314. });
  7315. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  7316. }
  7317. /* */
  7318. // install platform patch function
  7319. Vue.prototype.__patch__ = patch;
  7320. // public mount method
  7321. Vue.prototype.$mount = function(
  7322. el ,
  7323. hydrating
  7324. ) {
  7325. return mountComponent$1(this, el, hydrating)
  7326. };
  7327. lifecycleMixin$1(Vue);
  7328. internalMixin(Vue);
  7329. /* */
  7330. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  7331. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  7332. /***/ }),
  7333. /***/ 26:
  7334. /*!***********************************************************!*\
  7335. !*** C:/Users/admin/Desktop/DX-xcx/pages/img/success.png ***!
  7336. \***********************************************************/
  7337. /*! no static exports found */
  7338. /***/ (function(module, exports) {
  7339. module.exports = "/pages/img/success.png";
  7340. /***/ }),
  7341. /***/ 3:
  7342. /*!***********************************!*\
  7343. !*** (webpack)/buildin/global.js ***!
  7344. \***********************************/
  7345. /*! no static exports found */
  7346. /***/ (function(module, exports) {
  7347. var g;
  7348. // This works in non-strict mode
  7349. g = (function() {
  7350. return this;
  7351. })();
  7352. try {
  7353. // This works if eval is allowed (see CSP)
  7354. g = g || new Function("return this")();
  7355. } catch (e) {
  7356. // This works if the window reference is available
  7357. if (typeof window === "object") g = window;
  7358. }
  7359. // g can still be undefined, but nothing to do about it...
  7360. // We return undefined, instead of nothing here, so it's
  7361. // easier to handle this case. if(!global) { ...}
  7362. module.exports = g;
  7363. /***/ }),
  7364. /***/ 35:
  7365. /*!********************************************************!*\
  7366. !*** C:/Users/admin/Desktop/DX-xcx/pages/img/logo.png ***!
  7367. \********************************************************/
  7368. /*! no static exports found */
  7369. /***/ (function(module, exports) {
  7370. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAYAAABRRIOnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxucz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/yTvyL6mwSEKeQxvX0nqlMVwO1F7mPGTWy98QkVhl9snk5HRxEesP+dfWe+8mqvRu6NSdY7mGoXXYrGTX+C6unZizb+cvQ3CQgyBmmjBqlMPghPK6Cj6Es6MCvY8RuFuStMk9/2HXH42wbe/S97sH3vmYZ2DqFyycUI/8YA0dG59Sj9/5f+NtXOR+lho0cB8SjNokcB8SjNokcB8SjNokcB8SjNov8PtJt8b3PZmQYAAAAASUVORK5CYII="
  7371. /***/ }),
  7372. /***/ 4:
  7373. /*!************************************************!*\
  7374. !*** C:/Users/admin/Desktop/DX-xcx/pages.json ***!
  7375. \************************************************/
  7376. /*! no static exports found */
  7377. /***/ (function(module, exports) {
  7378. /***/ }),
  7379. /***/ 46:
  7380. /*!***********************************************************************************!*\
  7381. !*** C:/Users/admin/Desktop/DX-xcx/wxcomponents/vant/weapp/dist/dialog/dialog.js ***!
  7382. \***********************************************************************************/
  7383. /*! no static exports found */
  7384. /***/ (function(module, exports, __webpack_require__) {
  7385. "use strict";
  7386. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var queue = [];
  7387. var defaultOptions = {
  7388. show: false,
  7389. title: '',
  7390. width: null,
  7391. theme: 'default',
  7392. message: '',
  7393. zIndex: 100,
  7394. overlay: true,
  7395. selector: '#van-dialog',
  7396. className: '',
  7397. asyncClose: false,
  7398. beforeClose: null,
  7399. transition: 'scale',
  7400. customStyle: '',
  7401. messageAlign: '',
  7402. overlayStyle: '',
  7403. confirmButtonText: '确认',
  7404. cancelButtonText: '取消',
  7405. showConfirmButton: true,
  7406. showCancelButton: false,
  7407. closeOnClickOverlay: false,
  7408. confirmButtonOpenType: '' };
  7409. var currentOptions = Object.assign({}, defaultOptions);
  7410. function getContext() {
  7411. var pages = getCurrentPages();
  7412. return pages[pages.length - 1];
  7413. }
  7414. var Dialog = function Dialog(options) {
  7415. options = Object.assign(Object.assign({}, currentOptions), options);
  7416. return new Promise(function (resolve, reject) {
  7417. var context = options.context || getContext();
  7418. var dialog = context.selectComponent(options.selector);
  7419. delete options.context;
  7420. delete options.selector;
  7421. if (dialog) {
  7422. dialog.setData(Object.assign({ callback: function callback(action, instance) {
  7423. action === 'confirm' ? resolve(instance) : reject(instance);
  7424. } }, options));
  7425. wx.nextTick(function () {
  7426. dialog.setData({ show: true });
  7427. });
  7428. queue.push(dialog);
  7429. } else
  7430. {
  7431. console.warn('未找到 van-dialog 节点,请确认 selector 及 context 是否正确');
  7432. }
  7433. });
  7434. };
  7435. Dialog.alert = function (options) {return Dialog(options);};
  7436. Dialog.confirm = function (options) {return Dialog(Object.assign({ showCancelButton: true }, options));};
  7437. Dialog.close = function () {
  7438. queue.forEach(function (dialog) {
  7439. dialog.close();
  7440. });
  7441. queue = [];
  7442. };
  7443. Dialog.stopLoading = function () {
  7444. queue.forEach(function (dialog) {
  7445. dialog.stopLoading();
  7446. });
  7447. };
  7448. Dialog.currentOptions = currentOptions;
  7449. Dialog.defaultOptions = defaultOptions;
  7450. Dialog.setDefaultOptions = function (options) {
  7451. currentOptions = Object.assign(Object.assign({}, currentOptions), options);
  7452. Dialog.currentOptions = currentOptions;
  7453. };
  7454. Dialog.resetDefaultOptions = function () {
  7455. currentOptions = Object.assign({}, defaultOptions);
  7456. Dialog.currentOptions = currentOptions;
  7457. };
  7458. Dialog.resetDefaultOptions();var _default =
  7459. Dialog;exports.default = _default;
  7460. /***/ }),
  7461. /***/ 55:
  7462. /*!***************************************************!*\
  7463. !*** C:/Users/admin/Desktop/DX-xcx/utils/user.js ***!
  7464. \***************************************************/
  7465. /*! no static exports found */
  7466. /***/ (function(module, exports, __webpack_require__) {
  7467. "use strict";
  7468. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.requestPost = requestPost;exports.requestGet = requestGet;var _url = __webpack_require__(/*! utils/url.js */ 56);
  7469. function requestPost(url, params) {
  7470. return uni.request({
  7471. url: _url.baseUrl + url,
  7472. method: 'post',
  7473. // 让每个请求携带自定义 token 请根据实际情况自行修改
  7474. header: {
  7475. // "Authorization": ""
  7476. // "content-type": "application/x-www-form-urlencoded"
  7477. },
  7478. data: params });
  7479. }
  7480. //get
  7481. function requestGet(url, params) {
  7482. console.log(_url.baseUrl + url);
  7483. return uni.request({
  7484. url: _url.baseUrl + url,
  7485. method: 'get',
  7486. // 让每个请求携带自定义 token 请根据实际情况自行修改
  7487. header: {
  7488. "content-type": "application/x-www-form-urlencoded" },
  7489. data: params });
  7490. }
  7491. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  7492. /***/ }),
  7493. /***/ 56:
  7494. /*!**************************************************!*\
  7495. !*** C:/Users/admin/Desktop/DX-xcx/utils/url.js ***!
  7496. \**************************************************/
  7497. /*! no static exports found */
  7498. /***/ (function(module, exports, __webpack_require__) {
  7499. "use strict";
  7500. Object.defineProperty(exports, "__esModule", { value: true });exports.baseUrl = void 0; //const domainName ='http://172.16.120.104:8085/'//这里写自己的服务器
  7501. //const domainName ='http://10.21.39.1/dxapi/'//这里写自己的服务器
  7502. var domainName = 'https://smartpark.caih.com/dxapi/'; //这里写自己的服务器
  7503. var baseUrl = domainName; //接口前缀
  7504. exports.baseUrl = baseUrl;
  7505. /***/ })
  7506. }]);
  7507. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map