vendor.js 285 KB

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