vendor.js 910 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!************************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  6. \************************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. /* 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));
  11. 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;}
  12. var realAtob;
  13. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  14. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  15. if (typeof atob !== 'function') {
  16. realAtob = function realAtob(str) {
  17. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  18. if (!b64re.test(str)) {throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");}
  19. // Adding the padding if missing, for semplicity
  20. str += '=='.slice(2 - (str.length & 3));
  21. var bitmap;var result = '';var r1;var r2;var i = 0;
  22. for (; i < str.length;) {
  23. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 |
  24. (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  25. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) :
  26. r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) :
  27. String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  28. }
  29. return result;
  30. };
  31. } else {
  32. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  33. realAtob = atob;
  34. }
  35. function b64DecodeUnicode(str) {
  36. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  37. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  38. }).join(''));
  39. }
  40. function getCurrentUserInfo() {
  41. var token = wx.getStorageSync('uni_id_token') || '';
  42. var tokenArr = token.split('.');
  43. if (!token || tokenArr.length !== 3) {
  44. return {
  45. uid: null,
  46. role: [],
  47. permission: [],
  48. tokenExpired: 0 };
  49. }
  50. var userInfo;
  51. try {
  52. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  53. } catch (error) {
  54. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  55. }
  56. userInfo.tokenExpired = userInfo.exp * 1000;
  57. delete userInfo.exp;
  58. delete userInfo.iat;
  59. return userInfo;
  60. }
  61. function uniIdMixin(Vue) {
  62. Vue.prototype.uniIDHasRole = function (roleId) {var _getCurrentUserInfo =
  63. getCurrentUserInfo(),role = _getCurrentUserInfo.role;
  64. return role.indexOf(roleId) > -1;
  65. };
  66. Vue.prototype.uniIDHasPermission = function (permissionId) {var _getCurrentUserInfo2 =
  67. getCurrentUserInfo(),permission = _getCurrentUserInfo2.permission;
  68. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  69. };
  70. Vue.prototype.uniIDTokenValid = function () {var _getCurrentUserInfo3 =
  71. getCurrentUserInfo(),tokenExpired = _getCurrentUserInfo3.tokenExpired;
  72. return tokenExpired > Date.now();
  73. };
  74. }
  75. var _toString = Object.prototype.toString;
  76. var hasOwnProperty = Object.prototype.hasOwnProperty;
  77. function isFn(fn) {
  78. return typeof fn === 'function';
  79. }
  80. function isStr(str) {
  81. return typeof str === 'string';
  82. }
  83. function isPlainObject(obj) {
  84. return _toString.call(obj) === '[object Object]';
  85. }
  86. function hasOwn(obj, key) {
  87. return hasOwnProperty.call(obj, key);
  88. }
  89. function noop() {}
  90. /**
  91. * Create a cached version of a pure function.
  92. */
  93. function cached(fn) {
  94. var cache = Object.create(null);
  95. return function cachedFn(str) {
  96. var hit = cache[str];
  97. return hit || (cache[str] = fn(str));
  98. };
  99. }
  100. /**
  101. * Camelize a hyphen-delimited string.
  102. */
  103. var camelizeRE = /-(\w)/g;
  104. var camelize = cached(function (str) {
  105. return str.replace(camelizeRE, function (_, c) {return c ? c.toUpperCase() : '';});
  106. });
  107. var HOOKS = [
  108. 'invoke',
  109. 'success',
  110. 'fail',
  111. 'complete',
  112. 'returnValue'];
  113. var globalInterceptors = {};
  114. var scopedInterceptors = {};
  115. function mergeHook(parentVal, childVal) {
  116. var res = childVal ?
  117. parentVal ?
  118. parentVal.concat(childVal) :
  119. Array.isArray(childVal) ?
  120. childVal : [childVal] :
  121. parentVal;
  122. return res ?
  123. dedupeHooks(res) :
  124. res;
  125. }
  126. function dedupeHooks(hooks) {
  127. var res = [];
  128. for (var i = 0; i < hooks.length; i++) {
  129. if (res.indexOf(hooks[i]) === -1) {
  130. res.push(hooks[i]);
  131. }
  132. }
  133. return res;
  134. }
  135. function removeHook(hooks, hook) {
  136. var index = hooks.indexOf(hook);
  137. if (index !== -1) {
  138. hooks.splice(index, 1);
  139. }
  140. }
  141. function mergeInterceptorHook(interceptor, option) {
  142. Object.keys(option).forEach(function (hook) {
  143. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  144. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  145. }
  146. });
  147. }
  148. function removeInterceptorHook(interceptor, option) {
  149. if (!interceptor || !option) {
  150. return;
  151. }
  152. Object.keys(option).forEach(function (hook) {
  153. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  154. removeHook(interceptor[hook], option[hook]);
  155. }
  156. });
  157. }
  158. function addInterceptor(method, option) {
  159. if (typeof method === 'string' && isPlainObject(option)) {
  160. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  161. } else if (isPlainObject(method)) {
  162. mergeInterceptorHook(globalInterceptors, method);
  163. }
  164. }
  165. function removeInterceptor(method, option) {
  166. if (typeof method === 'string') {
  167. if (isPlainObject(option)) {
  168. removeInterceptorHook(scopedInterceptors[method], option);
  169. } else {
  170. delete scopedInterceptors[method];
  171. }
  172. } else if (isPlainObject(method)) {
  173. removeInterceptorHook(globalInterceptors, method);
  174. }
  175. }
  176. function wrapperHook(hook) {
  177. return function (data) {
  178. return hook(data) || data;
  179. };
  180. }
  181. function isPromise(obj) {
  182. return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  183. }
  184. function queue(hooks, data) {
  185. var promise = false;
  186. for (var i = 0; i < hooks.length; i++) {
  187. var hook = hooks[i];
  188. if (promise) {
  189. promise = Promise.resolve(wrapperHook(hook));
  190. } else {
  191. var res = hook(data);
  192. if (isPromise(res)) {
  193. promise = Promise.resolve(res);
  194. }
  195. if (res === false) {
  196. return {
  197. then: function then() {} };
  198. }
  199. }
  200. }
  201. return promise || {
  202. then: function then(callback) {
  203. return callback(data);
  204. } };
  205. }
  206. function wrapperOptions(interceptor) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  207. ['success', 'fail', 'complete'].forEach(function (name) {
  208. if (Array.isArray(interceptor[name])) {
  209. var oldCallback = options[name];
  210. options[name] = function callbackInterceptor(res) {
  211. queue(interceptor[name], res).then(function (res) {
  212. /* eslint-disable no-mixed-operators */
  213. return isFn(oldCallback) && oldCallback(res) || res;
  214. });
  215. };
  216. }
  217. });
  218. return options;
  219. }
  220. function wrapperReturnValue(method, returnValue) {
  221. var returnValueHooks = [];
  222. if (Array.isArray(globalInterceptors.returnValue)) {
  223. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(globalInterceptors.returnValue));
  224. }
  225. var interceptor = scopedInterceptors[method];
  226. if (interceptor && Array.isArray(interceptor.returnValue)) {
  227. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(interceptor.returnValue));
  228. }
  229. returnValueHooks.forEach(function (hook) {
  230. returnValue = hook(returnValue) || returnValue;
  231. });
  232. return returnValue;
  233. }
  234. function getApiInterceptorHooks(method) {
  235. var interceptor = Object.create(null);
  236. Object.keys(globalInterceptors).forEach(function (hook) {
  237. if (hook !== 'returnValue') {
  238. interceptor[hook] = globalInterceptors[hook].slice();
  239. }
  240. });
  241. var scopedInterceptor = scopedInterceptors[method];
  242. if (scopedInterceptor) {
  243. Object.keys(scopedInterceptor).forEach(function (hook) {
  244. if (hook !== 'returnValue') {
  245. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  246. }
  247. });
  248. }
  249. return interceptor;
  250. }
  251. 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];}
  252. var interceptor = getApiInterceptorHooks(method);
  253. if (interceptor && Object.keys(interceptor).length) {
  254. if (Array.isArray(interceptor.invoke)) {
  255. var res = queue(interceptor.invoke, options);
  256. return res.then(function (options) {
  257. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  258. });
  259. } else {
  260. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  261. }
  262. }
  263. return api.apply(void 0, [options].concat(params));
  264. }
  265. var promiseInterceptor = {
  266. returnValue: function returnValue(res) {
  267. if (!isPromise(res)) {
  268. return res;
  269. }
  270. return new Promise(function (resolve, reject) {
  271. res.then(function (res) {
  272. if (res[0]) {
  273. reject(res[0]);
  274. } else {
  275. resolve(res[1]);
  276. }
  277. });
  278. });
  279. } };
  280. var SYNC_API_RE =
  281. /^\$|Window$|WindowStyle$|sendNativeEvent|restoreGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale/;
  282. var CONTEXT_API_RE = /^create|Manager$/;
  283. // Context例外情况
  284. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  285. // 同步例外情况
  286. var ASYNC_API = ['createBLEConnection'];
  287. var CALLBACK_API_RE = /^on|^off/;
  288. function isContextApi(name) {
  289. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  290. }
  291. function isSyncApi(name) {
  292. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  293. }
  294. function isCallbackApi(name) {
  295. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  296. }
  297. function handlePromise(promise) {
  298. return promise.then(function (data) {
  299. return [null, data];
  300. }).
  301. catch(function (err) {return [err];});
  302. }
  303. function shouldPromise(name) {
  304. if (
  305. isContextApi(name) ||
  306. isSyncApi(name) ||
  307. isCallbackApi(name))
  308. {
  309. return false;
  310. }
  311. return true;
  312. }
  313. /* eslint-disable no-extend-native */
  314. if (!Promise.prototype.finally) {
  315. Promise.prototype.finally = function (callback) {
  316. var promise = this.constructor;
  317. return this.then(
  318. function (value) {return promise.resolve(callback()).then(function () {return value;});},
  319. function (reason) {return promise.resolve(callback()).then(function () {
  320. throw reason;
  321. });});
  322. };
  323. }
  324. function promisify(name, api) {
  325. if (!shouldPromise(name)) {
  326. return api;
  327. }
  328. 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];}
  329. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  330. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  331. }
  332. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  333. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  334. success: resolve,
  335. fail: reject })].concat(
  336. params));
  337. })));
  338. };
  339. }
  340. var EPS = 1e-4;
  341. var BASE_DEVICE_WIDTH = 750;
  342. var isIOS = false;
  343. var deviceWidth = 0;
  344. var deviceDPR = 0;
  345. function checkDeviceWidth() {var _wx$getSystemInfoSync =
  346. wx.getSystemInfoSync(),platform = _wx$getSystemInfoSync.platform,pixelRatio = _wx$getSystemInfoSync.pixelRatio,windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  347. deviceWidth = windowWidth;
  348. deviceDPR = pixelRatio;
  349. isIOS = platform === 'ios';
  350. }
  351. function upx2px(number, newDeviceWidth) {
  352. if (deviceWidth === 0) {
  353. checkDeviceWidth();
  354. }
  355. number = Number(number);
  356. if (number === 0) {
  357. return 0;
  358. }
  359. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  360. if (result < 0) {
  361. result = -result;
  362. }
  363. result = Math.floor(result + EPS);
  364. if (result === 0) {
  365. if (deviceDPR === 1 || !isIOS) {
  366. result = 1;
  367. } else {
  368. result = 0.5;
  369. }
  370. }
  371. return number < 0 ? -result : result;
  372. }
  373. function getLocale() {
  374. // 优先使用 $locale
  375. var app = getApp({
  376. allowDefault: true });
  377. if (app && app.$vm) {
  378. return app.$vm.$locale;
  379. }
  380. return wx.getSystemInfoSync().language || 'zh-Hans';
  381. }
  382. function setLocale(locale) {
  383. var app = getApp();
  384. if (!app) {
  385. return false;
  386. }
  387. var oldLocale = app.$vm.$locale;
  388. if (oldLocale !== locale) {
  389. app.$vm.$locale = locale;
  390. onLocaleChangeCallbacks.forEach(function (fn) {return fn({
  391. locale: locale });});
  392. return true;
  393. }
  394. return false;
  395. }
  396. var onLocaleChangeCallbacks = [];
  397. function onLocaleChange(fn) {
  398. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  399. onLocaleChangeCallbacks.push(fn);
  400. }
  401. }
  402. if (typeof global !== 'undefined') {
  403. global.getLocale = getLocale;
  404. }
  405. var interceptors = {
  406. promiseInterceptor: promiseInterceptor };
  407. var baseApi = /*#__PURE__*/Object.freeze({
  408. __proto__: null,
  409. upx2px: upx2px,
  410. getLocale: getLocale,
  411. setLocale: setLocale,
  412. onLocaleChange: onLocaleChange,
  413. addInterceptor: addInterceptor,
  414. removeInterceptor: removeInterceptor,
  415. interceptors: interceptors });
  416. function findExistsPageIndex(url) {
  417. var pages = getCurrentPages();
  418. var len = pages.length;
  419. while (len--) {
  420. var page = pages[len];
  421. if (page.$page && page.$page.fullPath === url) {
  422. return len;
  423. }
  424. }
  425. return -1;
  426. }
  427. var redirectTo = {
  428. name: function name(fromArgs) {
  429. if (fromArgs.exists === 'back' && fromArgs.delta) {
  430. return 'navigateBack';
  431. }
  432. return 'redirectTo';
  433. },
  434. args: function args(fromArgs) {
  435. if (fromArgs.exists === 'back' && fromArgs.url) {
  436. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  437. if (existsPageIndex !== -1) {
  438. var delta = getCurrentPages().length - 1 - existsPageIndex;
  439. if (delta > 0) {
  440. fromArgs.delta = delta;
  441. }
  442. }
  443. }
  444. } };
  445. var previewImage = {
  446. args: function args(fromArgs) {
  447. var currentIndex = parseInt(fromArgs.current);
  448. if (isNaN(currentIndex)) {
  449. return;
  450. }
  451. var urls = fromArgs.urls;
  452. if (!Array.isArray(urls)) {
  453. return;
  454. }
  455. var len = urls.length;
  456. if (!len) {
  457. return;
  458. }
  459. if (currentIndex < 0) {
  460. currentIndex = 0;
  461. } else if (currentIndex >= len) {
  462. currentIndex = len - 1;
  463. }
  464. if (currentIndex > 0) {
  465. fromArgs.current = urls[currentIndex];
  466. fromArgs.urls = urls.filter(
  467. function (item, index) {return index < currentIndex ? item !== urls[currentIndex] : true;});
  468. } else {
  469. fromArgs.current = urls[0];
  470. }
  471. return {
  472. indicator: false,
  473. loop: false };
  474. } };
  475. var UUID_KEY = '__DC_STAT_UUID';
  476. var deviceId;
  477. function addUuid(result) {
  478. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  479. if (!deviceId) {
  480. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  481. wx.setStorage({
  482. key: UUID_KEY,
  483. data: deviceId });
  484. }
  485. result.deviceId = deviceId;
  486. }
  487. function addSafeAreaInsets(result) {
  488. if (result.safeArea) {
  489. var safeArea = result.safeArea;
  490. result.safeAreaInsets = {
  491. top: safeArea.top,
  492. left: safeArea.left,
  493. right: result.windowWidth - safeArea.right,
  494. bottom: result.windowHeight - safeArea.bottom };
  495. }
  496. }
  497. var getSystemInfo = {
  498. returnValue: function returnValue(result) {
  499. addUuid(result);
  500. addSafeAreaInsets(result);
  501. } };
  502. // import navigateTo from 'uni-helpers/navigate-to'
  503. var protocols = {
  504. redirectTo: redirectTo,
  505. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  506. previewImage: previewImage,
  507. getSystemInfo: getSystemInfo,
  508. getSystemInfoSync: getSystemInfo };
  509. var todos = [
  510. 'vibrate',
  511. 'preloadPage',
  512. 'unPreloadPage',
  513. 'loadSubPackage'];
  514. var canIUses = [];
  515. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  516. function processCallback(methodName, method, returnValue) {
  517. return function (res) {
  518. return method(processReturnValue(methodName, res, returnValue));
  519. };
  520. }
  521. 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;
  522. if (isPlainObject(fromArgs)) {// 一般 api 的参数解析
  523. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  524. if (isFn(argsOption)) {
  525. argsOption = argsOption(fromArgs, toArgs) || {};
  526. }
  527. for (var key in fromArgs) {
  528. if (hasOwn(argsOption, key)) {
  529. var keyOption = argsOption[key];
  530. if (isFn(keyOption)) {
  531. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  532. }
  533. if (!keyOption) {// 不支持的参数
  534. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  535. } else if (isStr(keyOption)) {// 重写参数 key
  536. toArgs[keyOption] = fromArgs[key];
  537. } else if (isPlainObject(keyOption)) {// {name:newName,value:value}可重新指定参数 key:value
  538. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  539. }
  540. } else if (CALLBACKS.indexOf(key) !== -1) {
  541. if (isFn(fromArgs[key])) {
  542. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  543. }
  544. } else {
  545. if (!keepFromArgs) {
  546. toArgs[key] = fromArgs[key];
  547. }
  548. }
  549. }
  550. return toArgs;
  551. } else if (isFn(fromArgs)) {
  552. fromArgs = processCallback(methodName, fromArgs, returnValue);
  553. }
  554. return fromArgs;
  555. }
  556. function processReturnValue(methodName, res, returnValue) {var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  557. if (isFn(protocols.returnValue)) {// 处理通用 returnValue
  558. res = protocols.returnValue(methodName, res);
  559. }
  560. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  561. }
  562. function wrapper(methodName, method) {
  563. if (hasOwn(protocols, methodName)) {
  564. var protocol = protocols[methodName];
  565. if (!protocol) {// 暂不支持的 api
  566. return function () {
  567. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  568. };
  569. }
  570. return function (arg1, arg2) {// 目前 api 最多两个参数
  571. var options = protocol;
  572. if (isFn(protocol)) {
  573. options = protocol(arg1);
  574. }
  575. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  576. var args = [arg1];
  577. if (typeof arg2 !== 'undefined') {
  578. args.push(arg2);
  579. }
  580. if (isFn(options.name)) {
  581. methodName = options.name(arg1);
  582. } else if (isStr(options.name)) {
  583. methodName = options.name;
  584. }
  585. var returnValue = wx[methodName].apply(wx, args);
  586. if (isSyncApi(methodName)) {// 同步 api
  587. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  588. }
  589. return returnValue;
  590. };
  591. }
  592. return method;
  593. }
  594. var todoApis = Object.create(null);
  595. var TODOS = [
  596. 'onTabBarMidButtonTap',
  597. 'subscribePush',
  598. 'unsubscribePush',
  599. 'onPush',
  600. 'offPush',
  601. 'share'];
  602. function createTodoApi(name) {
  603. return function todoApi(_ref)
  604. {var fail = _ref.fail,complete = _ref.complete;
  605. var res = {
  606. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported") };
  607. isFn(fail) && fail(res);
  608. isFn(complete) && complete(res);
  609. };
  610. }
  611. TODOS.forEach(function (name) {
  612. todoApis[name] = createTodoApi(name);
  613. });
  614. var providers = {
  615. oauth: ['weixin'],
  616. share: ['weixin'],
  617. payment: ['wxpay'],
  618. push: ['weixin'] };
  619. function getProvider(_ref2)
  620. {var service = _ref2.service,success = _ref2.success,fail = _ref2.fail,complete = _ref2.complete;
  621. var res = false;
  622. if (providers[service]) {
  623. res = {
  624. errMsg: 'getProvider:ok',
  625. service: service,
  626. provider: providers[service] };
  627. isFn(success) && success(res);
  628. } else {
  629. res = {
  630. errMsg: 'getProvider:fail service not found' };
  631. isFn(fail) && fail(res);
  632. }
  633. isFn(complete) && complete(res);
  634. }
  635. var extraApi = /*#__PURE__*/Object.freeze({
  636. __proto__: null,
  637. getProvider: getProvider });
  638. var getEmitter = function () {
  639. var Emitter;
  640. return function getUniEmitter() {
  641. if (!Emitter) {
  642. Emitter = new _vue.default();
  643. }
  644. return Emitter;
  645. };
  646. }();
  647. function apply(ctx, method, args) {
  648. return ctx[method].apply(ctx, args);
  649. }
  650. function $on() {
  651. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  652. }
  653. function $off() {
  654. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  655. }
  656. function $once() {
  657. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  658. }
  659. function $emit() {
  660. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  661. }
  662. var eventApi = /*#__PURE__*/Object.freeze({
  663. __proto__: null,
  664. $on: $on,
  665. $off: $off,
  666. $once: $once,
  667. $emit: $emit });
  668. var api = /*#__PURE__*/Object.freeze({
  669. __proto__: null });
  670. var MPPage = Page;
  671. var MPComponent = Component;
  672. var customizeRE = /:/g;
  673. var customize = cached(function (str) {
  674. return camelize(str.replace(customizeRE, '-'));
  675. });
  676. function initTriggerEvent(mpInstance) {
  677. var oldTriggerEvent = mpInstance.triggerEvent;
  678. mpInstance.triggerEvent = function (event) {for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {args[_key3 - 1] = arguments[_key3];}
  679. return oldTriggerEvent.apply(mpInstance, [customize(event)].concat(args));
  680. };
  681. }
  682. function initHook(name, options, isComponent) {
  683. var oldHook = options[name];
  684. if (!oldHook) {
  685. options[name] = function () {
  686. initTriggerEvent(this);
  687. };
  688. } else {
  689. options[name] = function () {
  690. initTriggerEvent(this);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}
  691. return oldHook.apply(this, args);
  692. };
  693. }
  694. }
  695. if (!MPPage.__$wrappered) {
  696. MPPage.__$wrappered = true;
  697. Page = function Page() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  698. initHook('onLoad', options);
  699. return MPPage(options);
  700. };
  701. Page.after = MPPage.after;
  702. Component = function Component() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  703. initHook('created', options);
  704. return MPComponent(options);
  705. };
  706. }
  707. var PAGE_EVENT_HOOKS = [
  708. 'onPullDownRefresh',
  709. 'onReachBottom',
  710. 'onAddToFavorites',
  711. 'onShareTimeline',
  712. 'onShareAppMessage',
  713. 'onPageScroll',
  714. 'onResize',
  715. 'onTabItemTap'];
  716. function initMocks(vm, mocks) {
  717. var mpInstance = vm.$mp[vm.mpType];
  718. mocks.forEach(function (mock) {
  719. if (hasOwn(mpInstance, mock)) {
  720. vm[mock] = mpInstance[mock];
  721. }
  722. });
  723. }
  724. function hasHook(hook, vueOptions) {
  725. if (!vueOptions) {
  726. return true;
  727. }
  728. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  729. return true;
  730. }
  731. vueOptions = vueOptions.default || vueOptions;
  732. if (isFn(vueOptions)) {
  733. if (isFn(vueOptions.extendOptions[hook])) {
  734. return true;
  735. }
  736. if (vueOptions.super &&
  737. vueOptions.super.options &&
  738. Array.isArray(vueOptions.super.options[hook])) {
  739. return true;
  740. }
  741. return false;
  742. }
  743. if (isFn(vueOptions[hook])) {
  744. return true;
  745. }
  746. var mixins = vueOptions.mixins;
  747. if (Array.isArray(mixins)) {
  748. return !!mixins.find(function (mixin) {return hasHook(hook, mixin);});
  749. }
  750. }
  751. function initHooks(mpOptions, hooks, vueOptions) {
  752. hooks.forEach(function (hook) {
  753. if (hasHook(hook, vueOptions)) {
  754. mpOptions[hook] = function (args) {
  755. return this.$vm && this.$vm.__call_hook(hook, args);
  756. };
  757. }
  758. });
  759. }
  760. function initVueComponent(Vue, vueOptions) {
  761. vueOptions = vueOptions.default || vueOptions;
  762. var VueComponent;
  763. if (isFn(vueOptions)) {
  764. VueComponent = vueOptions;
  765. } else {
  766. VueComponent = Vue.extend(vueOptions);
  767. }
  768. vueOptions = VueComponent.options;
  769. return [VueComponent, vueOptions];
  770. }
  771. function initSlots(vm, vueSlots) {
  772. if (Array.isArray(vueSlots) && vueSlots.length) {
  773. var $slots = Object.create(null);
  774. vueSlots.forEach(function (slotName) {
  775. $slots[slotName] = true;
  776. });
  777. vm.$scopedSlots = vm.$slots = $slots;
  778. }
  779. }
  780. function initVueIds(vueIds, mpInstance) {
  781. vueIds = (vueIds || '').split(',');
  782. var len = vueIds.length;
  783. if (len === 1) {
  784. mpInstance._$vueId = vueIds[0];
  785. } else if (len === 2) {
  786. mpInstance._$vueId = vueIds[0];
  787. mpInstance._$vuePid = vueIds[1];
  788. }
  789. }
  790. function initData(vueOptions, context) {
  791. var data = vueOptions.data || {};
  792. var methods = vueOptions.methods || {};
  793. if (typeof data === 'function') {
  794. try {
  795. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  796. } catch (e) {
  797. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"businessard","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  798. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  799. }
  800. }
  801. } else {
  802. try {
  803. // 对 data 格式化
  804. data = JSON.parse(JSON.stringify(data));
  805. } catch (e) {}
  806. }
  807. if (!isPlainObject(data)) {
  808. data = {};
  809. }
  810. Object.keys(methods).forEach(function (methodName) {
  811. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  812. data[methodName] = methods[methodName];
  813. }
  814. });
  815. return data;
  816. }
  817. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  818. function createObserver(name) {
  819. return function observer(newVal, oldVal) {
  820. if (this.$vm) {
  821. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  822. }
  823. };
  824. }
  825. function initBehaviors(vueOptions, initBehavior) {
  826. var vueBehaviors = vueOptions.behaviors;
  827. var vueExtends = vueOptions.extends;
  828. var vueMixins = vueOptions.mixins;
  829. var vueProps = vueOptions.props;
  830. if (!vueProps) {
  831. vueOptions.props = vueProps = [];
  832. }
  833. var behaviors = [];
  834. if (Array.isArray(vueBehaviors)) {
  835. vueBehaviors.forEach(function (behavior) {
  836. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  837. if (behavior === 'uni://form-field') {
  838. if (Array.isArray(vueProps)) {
  839. vueProps.push('name');
  840. vueProps.push('value');
  841. } else {
  842. vueProps.name = {
  843. type: String,
  844. default: '' };
  845. vueProps.value = {
  846. type: [String, Number, Boolean, Array, Object, Date],
  847. default: '' };
  848. }
  849. }
  850. });
  851. }
  852. if (isPlainObject(vueExtends) && vueExtends.props) {
  853. behaviors.push(
  854. initBehavior({
  855. properties: initProperties(vueExtends.props, true) }));
  856. }
  857. if (Array.isArray(vueMixins)) {
  858. vueMixins.forEach(function (vueMixin) {
  859. if (isPlainObject(vueMixin) && vueMixin.props) {
  860. behaviors.push(
  861. initBehavior({
  862. properties: initProperties(vueMixin.props, true) }));
  863. }
  864. });
  865. }
  866. return behaviors;
  867. }
  868. function parsePropType(key, type, defaultValue, file) {
  869. // [String]=>String
  870. if (Array.isArray(type) && type.length === 1) {
  871. return type[0];
  872. }
  873. return type;
  874. }
  875. function initProperties(props) {var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  876. var properties = {};
  877. if (!isBehavior) {
  878. properties.vueId = {
  879. type: String,
  880. value: '' };
  881. // 用于字节跳动小程序模拟抽象节点
  882. properties.generic = {
  883. type: Object,
  884. value: null };
  885. // scopedSlotsCompiler auto
  886. properties.scopedSlotsCompiler = {
  887. type: String,
  888. value: '' };
  889. properties.vueSlots = { // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  890. type: null,
  891. value: [],
  892. observer: function observer(newVal, oldVal) {
  893. var $slots = Object.create(null);
  894. newVal.forEach(function (slotName) {
  895. $slots[slotName] = true;
  896. });
  897. this.setData({
  898. $slots: $slots });
  899. } };
  900. }
  901. if (Array.isArray(props)) {// ['title']
  902. props.forEach(function (key) {
  903. properties[key] = {
  904. type: null,
  905. observer: createObserver(key) };
  906. });
  907. } else if (isPlainObject(props)) {// {title:{type:String,default:''},content:String}
  908. Object.keys(props).forEach(function (key) {
  909. var opts = props[key];
  910. if (isPlainObject(opts)) {// title:{type:String,default:''}
  911. var value = opts.default;
  912. if (isFn(value)) {
  913. value = value();
  914. }
  915. opts.type = parsePropType(key, opts.type);
  916. properties[key] = {
  917. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  918. value: value,
  919. observer: createObserver(key) };
  920. } else {// content:String
  921. var type = parsePropType(key, opts);
  922. properties[key] = {
  923. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  924. observer: createObserver(key) };
  925. }
  926. });
  927. }
  928. return properties;
  929. }
  930. function wrapper$1(event) {
  931. // TODO 又得兼容 mpvue 的 mp 对象
  932. try {
  933. event.mp = JSON.parse(JSON.stringify(event));
  934. } catch (e) {}
  935. event.stopPropagation = noop;
  936. event.preventDefault = noop;
  937. event.target = event.target || {};
  938. if (!hasOwn(event, 'detail')) {
  939. event.detail = {};
  940. }
  941. if (hasOwn(event, 'markerId')) {
  942. event.detail = typeof event.detail === 'object' ? event.detail : {};
  943. event.detail.markerId = event.markerId;
  944. }
  945. if (isPlainObject(event.detail)) {
  946. event.target = Object.assign({}, event.target, event.detail);
  947. }
  948. return event;
  949. }
  950. function getExtraValue(vm, dataPathsArray) {
  951. var context = vm;
  952. dataPathsArray.forEach(function (dataPathArray) {
  953. var dataPath = dataPathArray[0];
  954. var value = dataPathArray[2];
  955. if (dataPath || typeof value !== 'undefined') {// ['','',index,'disable']
  956. var propPath = dataPathArray[1];
  957. var valuePath = dataPathArray[3];
  958. var vFor;
  959. if (Number.isInteger(dataPath)) {
  960. vFor = dataPath;
  961. } else if (!dataPath) {
  962. vFor = context;
  963. } else if (typeof dataPath === 'string' && dataPath) {
  964. if (dataPath.indexOf('#s#') === 0) {
  965. vFor = dataPath.substr(3);
  966. } else {
  967. vFor = vm.__get_value(dataPath, context);
  968. }
  969. }
  970. if (Number.isInteger(vFor)) {
  971. context = value;
  972. } else if (!propPath) {
  973. context = vFor[value];
  974. } else {
  975. if (Array.isArray(vFor)) {
  976. context = vFor.find(function (vForItem) {
  977. return vm.__get_value(propPath, vForItem) === value;
  978. });
  979. } else if (isPlainObject(vFor)) {
  980. context = Object.keys(vFor).find(function (vForKey) {
  981. return vm.__get_value(propPath, vFor[vForKey]) === value;
  982. });
  983. } else {
  984. console.error('v-for 暂不支持循环数据:', vFor);
  985. }
  986. }
  987. if (valuePath) {
  988. context = vm.__get_value(valuePath, context);
  989. }
  990. }
  991. });
  992. return context;
  993. }
  994. function processEventExtra(vm, extra, event) {
  995. var extraObj = {};
  996. if (Array.isArray(extra) && extra.length) {
  997. /**
  998. *[
  999. * ['data.items', 'data.id', item.data.id],
  1000. * ['metas', 'id', meta.id]
  1001. *],
  1002. *[
  1003. * ['data.items', 'data.id', item.data.id],
  1004. * ['metas', 'id', meta.id]
  1005. *],
  1006. *'test'
  1007. */
  1008. extra.forEach(function (dataPath, index) {
  1009. if (typeof dataPath === 'string') {
  1010. if (!dataPath) {// model,prop.sync
  1011. extraObj['$' + index] = vm;
  1012. } else {
  1013. if (dataPath === '$event') {// $event
  1014. extraObj['$' + index] = event;
  1015. } else if (dataPath === 'arguments') {
  1016. if (event.detail && event.detail.__args__) {
  1017. extraObj['$' + index] = event.detail.__args__;
  1018. } else {
  1019. extraObj['$' + index] = [event];
  1020. }
  1021. } else if (dataPath.indexOf('$event.') === 0) {// $event.target.value
  1022. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1023. } else {
  1024. extraObj['$' + index] = vm.__get_value(dataPath);
  1025. }
  1026. }
  1027. } else {
  1028. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1029. }
  1030. });
  1031. }
  1032. return extraObj;
  1033. }
  1034. function getObjByArray(arr) {
  1035. var obj = {};
  1036. for (var i = 1; i < arr.length; i++) {
  1037. var element = arr[i];
  1038. obj[element[0]] = element[1];
  1039. }
  1040. return obj;
  1041. }
  1042. 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;
  1043. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1044. if (isCustom) {// 自定义事件
  1045. isCustomMPEvent = event.currentTarget &&
  1046. event.currentTarget.dataset &&
  1047. event.currentTarget.dataset.comType === 'wx';
  1048. if (!args.length) {// 无参数,直接传入 event 或 detail 数组
  1049. if (isCustomMPEvent) {
  1050. return [event];
  1051. }
  1052. return event.detail.__args__ || event.detail;
  1053. }
  1054. }
  1055. var extraObj = processEventExtra(vm, extra, event);
  1056. var ret = [];
  1057. args.forEach(function (arg) {
  1058. if (arg === '$event') {
  1059. if (methodName === '__set_model' && !isCustom) {// input v-model value
  1060. ret.push(event.target.value);
  1061. } else {
  1062. if (isCustom && !isCustomMPEvent) {
  1063. ret.push(event.detail.__args__[0]);
  1064. } else {// wxcomponent 组件或内置组件
  1065. ret.push(event);
  1066. }
  1067. }
  1068. } else {
  1069. if (Array.isArray(arg) && arg[0] === 'o') {
  1070. ret.push(getObjByArray(arg));
  1071. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1072. ret.push(extraObj[arg]);
  1073. } else {
  1074. ret.push(arg);
  1075. }
  1076. }
  1077. });
  1078. return ret;
  1079. }
  1080. var ONCE = '~';
  1081. var CUSTOM = '^';
  1082. function isMatchEventType(eventType, optType) {
  1083. return eventType === optType ||
  1084. optType === 'regionchange' && (
  1085. eventType === 'begin' ||
  1086. eventType === 'end');
  1087. }
  1088. function getContextVm(vm) {
  1089. var $parent = vm.$parent;
  1090. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1091. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1092. $parent = $parent.$parent;
  1093. }
  1094. return $parent && $parent.$parent;
  1095. }
  1096. function handleEvent(event) {var _this = this;
  1097. event = wrapper$1(event);
  1098. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1099. var dataset = (event.currentTarget || event.target).dataset;
  1100. if (!dataset) {
  1101. return console.warn('事件信息不存在');
  1102. }
  1103. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1104. if (!eventOpts) {
  1105. return console.warn('事件信息不存在');
  1106. }
  1107. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1108. var eventType = event.type;
  1109. var ret = [];
  1110. eventOpts.forEach(function (eventOpt) {
  1111. var type = eventOpt[0];
  1112. var eventsArray = eventOpt[1];
  1113. var isCustom = type.charAt(0) === CUSTOM;
  1114. type = isCustom ? type.slice(1) : type;
  1115. var isOnce = type.charAt(0) === ONCE;
  1116. type = isOnce ? type.slice(1) : type;
  1117. if (eventsArray && isMatchEventType(eventType, type)) {
  1118. eventsArray.forEach(function (eventArray) {
  1119. var methodName = eventArray[0];
  1120. if (methodName) {
  1121. var handlerCtx = _this.$vm;
  1122. if (handlerCtx.$options.generic) {// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1123. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1124. }
  1125. if (methodName === '$emit') {
  1126. handlerCtx.$emit.apply(handlerCtx,
  1127. processEventArgs(
  1128. _this.$vm,
  1129. event,
  1130. eventArray[1],
  1131. eventArray[2],
  1132. isCustom,
  1133. methodName));
  1134. return;
  1135. }
  1136. var handler = handlerCtx[methodName];
  1137. if (!isFn(handler)) {
  1138. throw new Error(" _vm.".concat(methodName, " is not a function"));
  1139. }
  1140. if (isOnce) {
  1141. if (handler.once) {
  1142. return;
  1143. }
  1144. handler.once = true;
  1145. }
  1146. var params = processEventArgs(
  1147. _this.$vm,
  1148. event,
  1149. eventArray[1],
  1150. eventArray[2],
  1151. isCustom,
  1152. methodName);
  1153. params = Array.isArray(params) ? params : [];
  1154. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1155. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1156. // eslint-disable-next-line no-sparse-arrays
  1157. params = params.concat([,,,,,,,,,, event]);
  1158. }
  1159. ret.push(handler.apply(handlerCtx, params));
  1160. }
  1161. });
  1162. }
  1163. });
  1164. if (
  1165. eventType === 'input' &&
  1166. ret.length === 1 &&
  1167. typeof ret[0] !== 'undefined')
  1168. {
  1169. return ret[0];
  1170. }
  1171. }
  1172. var locale;
  1173. {
  1174. locale = wx.getSystemInfoSync().language;
  1175. }
  1176. var i18n = (0, _uniI18n.initVueI18n)(
  1177. locale,
  1178. {});
  1179. var t = i18n.t;
  1180. var i18nMixin = i18n.mixin = {
  1181. beforeCreate: function beforeCreate() {var _this2 = this;
  1182. var unwatch = i18n.i18n.watchLocale(function () {
  1183. _this2.$forceUpdate();
  1184. });
  1185. this.$once('hook:beforeDestroy', function () {
  1186. unwatch();
  1187. });
  1188. },
  1189. methods: {
  1190. $$t: function $$t(key, values) {
  1191. return t(key, values);
  1192. } } };
  1193. var setLocale$1 = i18n.setLocale;
  1194. var getLocale$1 = i18n.getLocale;
  1195. function initAppLocale(Vue, appVm, locale) {
  1196. var state = Vue.observable({
  1197. locale: locale || i18n.getLocale() });
  1198. var localeWatchers = [];
  1199. appVm.$watchLocale = function (fn) {
  1200. localeWatchers.push(fn);
  1201. };
  1202. Object.defineProperty(appVm, '$locale', {
  1203. get: function get() {
  1204. return state.locale;
  1205. },
  1206. set: function set(v) {
  1207. state.locale = v;
  1208. localeWatchers.forEach(function (watch) {return watch(v);});
  1209. } });
  1210. }
  1211. var eventChannels = {};
  1212. var eventChannelStack = [];
  1213. function getEventChannel(id) {
  1214. if (id) {
  1215. var eventChannel = eventChannels[id];
  1216. delete eventChannels[id];
  1217. return eventChannel;
  1218. }
  1219. return eventChannelStack.shift();
  1220. }
  1221. var hooks = [
  1222. 'onShow',
  1223. 'onHide',
  1224. 'onError',
  1225. 'onPageNotFound',
  1226. 'onThemeChange',
  1227. 'onUnhandledRejection'];
  1228. function initEventChannel() {
  1229. _vue.default.prototype.getOpenerEventChannel = function () {
  1230. // 微信小程序使用自身getOpenerEventChannel
  1231. {
  1232. return this.$scope.getOpenerEventChannel();
  1233. }
  1234. };
  1235. var callHook = _vue.default.prototype.__call_hook;
  1236. _vue.default.prototype.__call_hook = function (hook, args) {
  1237. if (hook === 'onLoad' && args && args.__id__) {
  1238. this.__eventChannel__ = getEventChannel(args.__id__);
  1239. delete args.__id__;
  1240. }
  1241. return callHook.call(this, hook, args);
  1242. };
  1243. }
  1244. function initScopedSlotsParams() {
  1245. var center = {};
  1246. var parents = {};
  1247. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1248. var has = center[vueId];
  1249. if (!has) {
  1250. parents[vueId] = this;
  1251. this.$on('hook:destroyed', function () {
  1252. delete parents[vueId];
  1253. });
  1254. }
  1255. return has;
  1256. };
  1257. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1258. var data = center[vueId];
  1259. if (data) {
  1260. var object = data[name] || {};
  1261. return key ? object[key] : object;
  1262. } else {
  1263. parents[vueId] = this;
  1264. this.$on('hook:destroyed', function () {
  1265. delete parents[vueId];
  1266. });
  1267. }
  1268. };
  1269. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1270. var vueIds = this.$options.propsData.vueId;
  1271. if (vueIds) {
  1272. var vueId = vueIds.split(',')[0];
  1273. var object = center[vueId] = center[vueId] || {};
  1274. object[name] = value;
  1275. if (parents[vueId]) {
  1276. parents[vueId].$forceUpdate();
  1277. }
  1278. }
  1279. };
  1280. _vue.default.mixin({
  1281. destroyed: function destroyed() {
  1282. var propsData = this.$options.propsData;
  1283. var vueId = propsData && propsData.vueId;
  1284. if (vueId) {
  1285. delete center[vueId];
  1286. delete parents[vueId];
  1287. }
  1288. } });
  1289. }
  1290. function parseBaseApp(vm, _ref3)
  1291. {var mocks = _ref3.mocks,initRefs = _ref3.initRefs;
  1292. initEventChannel();
  1293. {
  1294. initScopedSlotsParams();
  1295. }
  1296. if (vm.$options.store) {
  1297. _vue.default.prototype.$store = vm.$options.store;
  1298. }
  1299. uniIdMixin(_vue.default);
  1300. _vue.default.prototype.mpHost = "mp-weixin";
  1301. _vue.default.mixin({
  1302. beforeCreate: function beforeCreate() {
  1303. if (!this.$options.mpType) {
  1304. return;
  1305. }
  1306. this.mpType = this.$options.mpType;
  1307. this.$mp = _defineProperty({
  1308. data: {} },
  1309. this.mpType, this.$options.mpInstance);
  1310. this.$scope = this.$options.mpInstance;
  1311. delete this.$options.mpType;
  1312. delete this.$options.mpInstance;
  1313. if (this.mpType === 'page' && typeof getApp === 'function') {// hack vue-i18n
  1314. var app = getApp();
  1315. if (app.$vm && app.$vm.$i18n) {
  1316. this._i18n = app.$vm.$i18n;
  1317. }
  1318. }
  1319. if (this.mpType !== 'app') {
  1320. initRefs(this);
  1321. initMocks(this, mocks);
  1322. }
  1323. } });
  1324. var appOptions = {
  1325. onLaunch: function onLaunch(args) {
  1326. if (this.$vm) {// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  1327. return;
  1328. }
  1329. {
  1330. if (wx.canIUse && !wx.canIUse('nextTick')) {// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  1331. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  1332. }
  1333. }
  1334. this.$vm = vm;
  1335. this.$vm.$mp = {
  1336. app: this };
  1337. this.$vm.$scope = this;
  1338. // vm 上也挂载 globalData
  1339. this.$vm.globalData = this.globalData;
  1340. this.$vm._isMounted = true;
  1341. this.$vm.__call_hook('mounted', args);
  1342. this.$vm.__call_hook('onLaunch', args);
  1343. } };
  1344. // 兼容旧版本 globalData
  1345. appOptions.globalData = vm.$options.globalData || {};
  1346. // 将 methods 中的方法挂在 getApp() 中
  1347. var methods = vm.$options.methods;
  1348. if (methods) {
  1349. Object.keys(methods).forEach(function (name) {
  1350. appOptions[name] = methods[name];
  1351. });
  1352. }
  1353. initAppLocale(_vue.default, vm, wx.getSystemInfoSync().language || 'zh-Hans');
  1354. initHooks(appOptions, hooks);
  1355. return appOptions;
  1356. }
  1357. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1358. function findVmByVueId(vm, vuePid) {
  1359. var $children = vm.$children;
  1360. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1361. for (var i = $children.length - 1; i >= 0; i--) {
  1362. var childVm = $children[i];
  1363. if (childVm.$scope._$vueId === vuePid) {
  1364. return childVm;
  1365. }
  1366. }
  1367. // 反向递归查找
  1368. var parentVm;
  1369. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1370. parentVm = findVmByVueId($children[_i], vuePid);
  1371. if (parentVm) {
  1372. return parentVm;
  1373. }
  1374. }
  1375. }
  1376. function initBehavior(options) {
  1377. return Behavior(options);
  1378. }
  1379. function isPage() {
  1380. return !!this.route;
  1381. }
  1382. function initRelation(detail) {
  1383. this.triggerEvent('__l', detail);
  1384. }
  1385. function selectAllComponents(mpInstance, selector, $refs) {
  1386. var components = mpInstance.selectAllComponents(selector);
  1387. components.forEach(function (component) {
  1388. var ref = component.dataset.ref;
  1389. $refs[ref] = component.$vm || component;
  1390. {
  1391. if (component.dataset.vueGeneric === 'scoped') {
  1392. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1393. selectAllComponents(scopedComponent, selector, $refs);
  1394. });
  1395. }
  1396. }
  1397. });
  1398. }
  1399. function initRefs(vm) {
  1400. var mpInstance = vm.$scope;
  1401. Object.defineProperty(vm, '$refs', {
  1402. get: function get() {
  1403. var $refs = {};
  1404. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1405. // TODO 暂不考虑 for 中的 scoped
  1406. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
  1407. forComponents.forEach(function (component) {
  1408. var ref = component.dataset.ref;
  1409. if (!$refs[ref]) {
  1410. $refs[ref] = [];
  1411. }
  1412. $refs[ref].push(component.$vm || component);
  1413. });
  1414. return $refs;
  1415. } });
  1416. }
  1417. function handleLink(event) {var _ref4 =
  1418. event.detail || event.value,vuePid = _ref4.vuePid,vueOptions = _ref4.vueOptions; // detail 是微信,value 是百度(dipatch)
  1419. var parentVm;
  1420. if (vuePid) {
  1421. parentVm = findVmByVueId(this.$vm, vuePid);
  1422. }
  1423. if (!parentVm) {
  1424. parentVm = this.$vm;
  1425. }
  1426. vueOptions.parent = parentVm;
  1427. }
  1428. function parseApp(vm) {
  1429. return parseBaseApp(vm, {
  1430. mocks: mocks,
  1431. initRefs: initRefs });
  1432. }
  1433. function createApp(vm) {
  1434. App(parseApp(vm));
  1435. return vm;
  1436. }
  1437. var encodeReserveRE = /[!'()*]/g;
  1438. var encodeReserveReplacer = function encodeReserveReplacer(c) {return '%' + c.charCodeAt(0).toString(16);};
  1439. var commaRE = /%2C/g;
  1440. // fixed encodeURIComponent which is more conformant to RFC3986:
  1441. // - escapes [!'()*]
  1442. // - preserve commas
  1443. var encode = function encode(str) {return encodeURIComponent(str).
  1444. replace(encodeReserveRE, encodeReserveReplacer).
  1445. replace(commaRE, ',');};
  1446. function stringifyQuery(obj) {var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  1447. var res = obj ? Object.keys(obj).map(function (key) {
  1448. var val = obj[key];
  1449. if (val === undefined) {
  1450. return '';
  1451. }
  1452. if (val === null) {
  1453. return encodeStr(key);
  1454. }
  1455. if (Array.isArray(val)) {
  1456. var result = [];
  1457. val.forEach(function (val2) {
  1458. if (val2 === undefined) {
  1459. return;
  1460. }
  1461. if (val2 === null) {
  1462. result.push(encodeStr(key));
  1463. } else {
  1464. result.push(encodeStr(key) + '=' + encodeStr(val2));
  1465. }
  1466. });
  1467. return result.join('&');
  1468. }
  1469. return encodeStr(key) + '=' + encodeStr(val);
  1470. }).filter(function (x) {return x.length > 0;}).join('&') : null;
  1471. return res ? "?".concat(res) : '';
  1472. }
  1473. function parseBaseComponent(vueComponentOptions)
  1474. {var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},isPage = _ref5.isPage,initRelation = _ref5.initRelation;var _initVueComponent =
  1475. initVueComponent(_vue.default, vueComponentOptions),_initVueComponent2 = _slicedToArray(_initVueComponent, 2),VueComponent = _initVueComponent2[0],vueOptions = _initVueComponent2[1];
  1476. var options = _objectSpread({
  1477. multipleSlots: true,
  1478. addGlobalClass: true },
  1479. vueOptions.options || {});
  1480. {
  1481. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  1482. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  1483. Object.assign(options, vueOptions['mp-weixin'].options);
  1484. }
  1485. }
  1486. var componentOptions = {
  1487. options: options,
  1488. data: initData(vueOptions, _vue.default.prototype),
  1489. behaviors: initBehaviors(vueOptions, initBehavior),
  1490. properties: initProperties(vueOptions.props, false, vueOptions.__file),
  1491. lifetimes: {
  1492. attached: function attached() {
  1493. var properties = this.properties;
  1494. var options = {
  1495. mpType: isPage.call(this) ? 'page' : 'component',
  1496. mpInstance: this,
  1497. propsData: properties };
  1498. initVueIds(properties.vueId, this);
  1499. // 处理父子关系
  1500. initRelation.call(this, {
  1501. vuePid: this._$vuePid,
  1502. vueOptions: options });
  1503. // 初始化 vue 实例
  1504. this.$vm = new VueComponent(options);
  1505. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  1506. initSlots(this.$vm, properties.vueSlots);
  1507. // 触发首次 setData
  1508. this.$vm.$mount();
  1509. },
  1510. ready: function ready() {
  1511. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  1512. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  1513. if (this.$vm) {
  1514. this.$vm._isMounted = true;
  1515. this.$vm.__call_hook('mounted');
  1516. this.$vm.__call_hook('onReady');
  1517. }
  1518. },
  1519. detached: function detached() {
  1520. this.$vm && this.$vm.$destroy();
  1521. } },
  1522. pageLifetimes: {
  1523. show: function show(args) {
  1524. this.$vm && this.$vm.__call_hook('onPageShow', args);
  1525. },
  1526. hide: function hide() {
  1527. this.$vm && this.$vm.__call_hook('onPageHide');
  1528. },
  1529. resize: function resize(size) {
  1530. this.$vm && this.$vm.__call_hook('onPageResize', size);
  1531. } },
  1532. methods: {
  1533. __l: handleLink,
  1534. __e: handleEvent } };
  1535. // externalClasses
  1536. if (vueOptions.externalClasses) {
  1537. componentOptions.externalClasses = vueOptions.externalClasses;
  1538. }
  1539. if (Array.isArray(vueOptions.wxsCallMethods)) {
  1540. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  1541. componentOptions.methods[callMethod] = function (args) {
  1542. return this.$vm[callMethod](args);
  1543. };
  1544. });
  1545. }
  1546. if (isPage) {
  1547. return componentOptions;
  1548. }
  1549. return [componentOptions, VueComponent];
  1550. }
  1551. function parseComponent(vueComponentOptions) {
  1552. return parseBaseComponent(vueComponentOptions, {
  1553. isPage: isPage,
  1554. initRelation: initRelation });
  1555. }
  1556. var hooks$1 = [
  1557. 'onShow',
  1558. 'onHide',
  1559. 'onUnload'];
  1560. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  1561. function parseBasePage(vuePageOptions, _ref6)
  1562. {var isPage = _ref6.isPage,initRelation = _ref6.initRelation;
  1563. var pageOptions = parseComponent(vuePageOptions);
  1564. initHooks(pageOptions.methods, hooks$1, vuePageOptions);
  1565. pageOptions.methods.onLoad = function (query) {
  1566. this.options = query;
  1567. var copyQuery = Object.assign({}, query);
  1568. delete copyQuery.__id__;
  1569. this.$page = {
  1570. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery) };
  1571. this.$vm.$mp.query = query; // 兼容 mpvue
  1572. this.$vm.__call_hook('onLoad', query);
  1573. };
  1574. return pageOptions;
  1575. }
  1576. function parsePage(vuePageOptions) {
  1577. return parseBasePage(vuePageOptions, {
  1578. isPage: isPage,
  1579. initRelation: initRelation });
  1580. }
  1581. function createPage(vuePageOptions) {
  1582. {
  1583. return Component(parsePage(vuePageOptions));
  1584. }
  1585. }
  1586. function createComponent(vueOptions) {
  1587. {
  1588. return Component(parseComponent(vueOptions));
  1589. }
  1590. }
  1591. function createSubpackageApp(vm) {
  1592. var appOptions = parseApp(vm);
  1593. var app = getApp({
  1594. allowDefault: true });
  1595. vm.$scope = app;
  1596. var globalData = app.globalData;
  1597. if (globalData) {
  1598. Object.keys(appOptions.globalData).forEach(function (name) {
  1599. if (!hasOwn(globalData, name)) {
  1600. globalData[name] = appOptions.globalData[name];
  1601. }
  1602. });
  1603. }
  1604. Object.keys(appOptions).forEach(function (name) {
  1605. if (!hasOwn(app, name)) {
  1606. app[name] = appOptions[name];
  1607. }
  1608. });
  1609. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1610. wx.onAppShow(function () {for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}
  1611. vm.__call_hook('onShow', args);
  1612. });
  1613. }
  1614. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1615. wx.onAppHide(function () {for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}
  1616. vm.__call_hook('onHide', args);
  1617. });
  1618. }
  1619. if (isFn(appOptions.onLaunch)) {
  1620. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1621. vm.__call_hook('onLaunch', args);
  1622. }
  1623. return vm;
  1624. }
  1625. function createPlugin(vm) {
  1626. var appOptions = parseApp(vm);
  1627. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1628. wx.onAppShow(function () {for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {args[_key7] = arguments[_key7];}
  1629. appOptions.onShow.apply(vm, args);
  1630. });
  1631. }
  1632. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1633. wx.onAppHide(function () {for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {args[_key8] = arguments[_key8];}
  1634. appOptions.onHide.apply(vm, args);
  1635. });
  1636. }
  1637. if (isFn(appOptions.onLaunch)) {
  1638. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1639. appOptions.onLaunch.call(vm, args);
  1640. }
  1641. return vm;
  1642. }
  1643. todos.forEach(function (todoApi) {
  1644. protocols[todoApi] = false;
  1645. });
  1646. canIUses.forEach(function (canIUseApi) {
  1647. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name :
  1648. canIUseApi;
  1649. if (!wx.canIUse(apiName)) {
  1650. protocols[canIUseApi] = false;
  1651. }
  1652. });
  1653. var uni = {};
  1654. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  1655. uni = new Proxy({}, {
  1656. get: function get(target, name) {
  1657. if (hasOwn(target, name)) {
  1658. return target[name];
  1659. }
  1660. if (baseApi[name]) {
  1661. return baseApi[name];
  1662. }
  1663. if (api[name]) {
  1664. return promisify(name, api[name]);
  1665. }
  1666. {
  1667. if (extraApi[name]) {
  1668. return promisify(name, extraApi[name]);
  1669. }
  1670. if (todoApis[name]) {
  1671. return promisify(name, todoApis[name]);
  1672. }
  1673. }
  1674. if (eventApi[name]) {
  1675. return eventApi[name];
  1676. }
  1677. if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
  1678. return;
  1679. }
  1680. return promisify(name, wrapper(name, wx[name]));
  1681. },
  1682. set: function set(target, name, value) {
  1683. target[name] = value;
  1684. return true;
  1685. } });
  1686. } else {
  1687. Object.keys(baseApi).forEach(function (name) {
  1688. uni[name] = baseApi[name];
  1689. });
  1690. {
  1691. Object.keys(todoApis).forEach(function (name) {
  1692. uni[name] = promisify(name, todoApis[name]);
  1693. });
  1694. Object.keys(extraApi).forEach(function (name) {
  1695. uni[name] = promisify(name, todoApis[name]);
  1696. });
  1697. }
  1698. Object.keys(eventApi).forEach(function (name) {
  1699. uni[name] = eventApi[name];
  1700. });
  1701. Object.keys(api).forEach(function (name) {
  1702. uni[name] = promisify(name, api[name]);
  1703. });
  1704. Object.keys(wx).forEach(function (name) {
  1705. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  1706. uni[name] = promisify(name, wrapper(name, wx[name]));
  1707. }
  1708. });
  1709. }
  1710. wx.createApp = createApp;
  1711. wx.createPage = createPage;
  1712. wx.createComponent = createComponent;
  1713. wx.createSubpackageApp = createSubpackageApp;
  1714. wx.createPlugin = createPlugin;
  1715. var uni$1 = uni;var _default =
  1716. uni$1;exports.default = _default;
  1717. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  1718. /***/ }),
  1719. /* 2 */
  1720. /*!***********************************!*\
  1721. !*** (webpack)/buildin/global.js ***!
  1722. \***********************************/
  1723. /*! no static exports found */
  1724. /***/ (function(module, exports) {
  1725. var g;
  1726. // This works in non-strict mode
  1727. g = (function() {
  1728. return this;
  1729. })();
  1730. try {
  1731. // This works if eval is allowed (see CSP)
  1732. g = g || new Function("return this")();
  1733. } catch (e) {
  1734. // This works if the window reference is available
  1735. if (typeof window === "object") g = window;
  1736. }
  1737. // g can still be undefined, but nothing to do about it...
  1738. // We return undefined, instead of nothing here, so it's
  1739. // easier to handle this case. if(!global) { ...}
  1740. module.exports = g;
  1741. /***/ }),
  1742. /* 3 */
  1743. /*!******************************************************************************************!*\
  1744. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  1745. \******************************************************************************************/
  1746. /*! exports provided: default */
  1747. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1748. "use strict";
  1749. __webpack_require__.r(__webpack_exports__);
  1750. /* WEBPACK VAR INJECTION */(function(global) {/*!
  1751. * Vue.js v2.6.11
  1752. * (c) 2014-2021 Evan You
  1753. * Released under the MIT License.
  1754. */
  1755. /* */
  1756. var emptyObject = Object.freeze({});
  1757. // These helpers produce better VM code in JS engines due to their
  1758. // explicitness and function inlining.
  1759. function isUndef (v) {
  1760. return v === undefined || v === null
  1761. }
  1762. function isDef (v) {
  1763. return v !== undefined && v !== null
  1764. }
  1765. function isTrue (v) {
  1766. return v === true
  1767. }
  1768. function isFalse (v) {
  1769. return v === false
  1770. }
  1771. /**
  1772. * Check if value is primitive.
  1773. */
  1774. function isPrimitive (value) {
  1775. return (
  1776. typeof value === 'string' ||
  1777. typeof value === 'number' ||
  1778. // $flow-disable-line
  1779. typeof value === 'symbol' ||
  1780. typeof value === 'boolean'
  1781. )
  1782. }
  1783. /**
  1784. * Quick object check - this is primarily used to tell
  1785. * Objects from primitive values when we know the value
  1786. * is a JSON-compliant type.
  1787. */
  1788. function isObject (obj) {
  1789. return obj !== null && typeof obj === 'object'
  1790. }
  1791. /**
  1792. * Get the raw type string of a value, e.g., [object Object].
  1793. */
  1794. var _toString = Object.prototype.toString;
  1795. function toRawType (value) {
  1796. return _toString.call(value).slice(8, -1)
  1797. }
  1798. /**
  1799. * Strict object type check. Only returns true
  1800. * for plain JavaScript objects.
  1801. */
  1802. function isPlainObject (obj) {
  1803. return _toString.call(obj) === '[object Object]'
  1804. }
  1805. function isRegExp (v) {
  1806. return _toString.call(v) === '[object RegExp]'
  1807. }
  1808. /**
  1809. * Check if val is a valid array index.
  1810. */
  1811. function isValidArrayIndex (val) {
  1812. var n = parseFloat(String(val));
  1813. return n >= 0 && Math.floor(n) === n && isFinite(val)
  1814. }
  1815. function isPromise (val) {
  1816. return (
  1817. isDef(val) &&
  1818. typeof val.then === 'function' &&
  1819. typeof val.catch === 'function'
  1820. )
  1821. }
  1822. /**
  1823. * Convert a value to a string that is actually rendered.
  1824. */
  1825. function toString (val) {
  1826. return val == null
  1827. ? ''
  1828. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  1829. ? JSON.stringify(val, null, 2)
  1830. : String(val)
  1831. }
  1832. /**
  1833. * Convert an input value to a number for persistence.
  1834. * If the conversion fails, return original string.
  1835. */
  1836. function toNumber (val) {
  1837. var n = parseFloat(val);
  1838. return isNaN(n) ? val : n
  1839. }
  1840. /**
  1841. * Make a map and return a function for checking if a key
  1842. * is in that map.
  1843. */
  1844. function makeMap (
  1845. str,
  1846. expectsLowerCase
  1847. ) {
  1848. var map = Object.create(null);
  1849. var list = str.split(',');
  1850. for (var i = 0; i < list.length; i++) {
  1851. map[list[i]] = true;
  1852. }
  1853. return expectsLowerCase
  1854. ? function (val) { return map[val.toLowerCase()]; }
  1855. : function (val) { return map[val]; }
  1856. }
  1857. /**
  1858. * Check if a tag is a built-in tag.
  1859. */
  1860. var isBuiltInTag = makeMap('slot,component', true);
  1861. /**
  1862. * Check if an attribute is a reserved attribute.
  1863. */
  1864. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  1865. /**
  1866. * Remove an item from an array.
  1867. */
  1868. function remove (arr, item) {
  1869. if (arr.length) {
  1870. var index = arr.indexOf(item);
  1871. if (index > -1) {
  1872. return arr.splice(index, 1)
  1873. }
  1874. }
  1875. }
  1876. /**
  1877. * Check whether an object has the property.
  1878. */
  1879. var hasOwnProperty = Object.prototype.hasOwnProperty;
  1880. function hasOwn (obj, key) {
  1881. return hasOwnProperty.call(obj, key)
  1882. }
  1883. /**
  1884. * Create a cached version of a pure function.
  1885. */
  1886. function cached (fn) {
  1887. var cache = Object.create(null);
  1888. return (function cachedFn (str) {
  1889. var hit = cache[str];
  1890. return hit || (cache[str] = fn(str))
  1891. })
  1892. }
  1893. /**
  1894. * Camelize a hyphen-delimited string.
  1895. */
  1896. var camelizeRE = /-(\w)/g;
  1897. var camelize = cached(function (str) {
  1898. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  1899. });
  1900. /**
  1901. * Capitalize a string.
  1902. */
  1903. var capitalize = cached(function (str) {
  1904. return str.charAt(0).toUpperCase() + str.slice(1)
  1905. });
  1906. /**
  1907. * Hyphenate a camelCase string.
  1908. */
  1909. var hyphenateRE = /\B([A-Z])/g;
  1910. var hyphenate = cached(function (str) {
  1911. return str.replace(hyphenateRE, '-$1').toLowerCase()
  1912. });
  1913. /**
  1914. * Simple bind polyfill for environments that do not support it,
  1915. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  1916. * since native bind is now performant enough in most browsers.
  1917. * But removing it would mean breaking code that was able to run in
  1918. * PhantomJS 1.x, so this must be kept for backward compatibility.
  1919. */
  1920. /* istanbul ignore next */
  1921. function polyfillBind (fn, ctx) {
  1922. function boundFn (a) {
  1923. var l = arguments.length;
  1924. return l
  1925. ? l > 1
  1926. ? fn.apply(ctx, arguments)
  1927. : fn.call(ctx, a)
  1928. : fn.call(ctx)
  1929. }
  1930. boundFn._length = fn.length;
  1931. return boundFn
  1932. }
  1933. function nativeBind (fn, ctx) {
  1934. return fn.bind(ctx)
  1935. }
  1936. var bind = Function.prototype.bind
  1937. ? nativeBind
  1938. : polyfillBind;
  1939. /**
  1940. * Convert an Array-like object to a real Array.
  1941. */
  1942. function toArray (list, start) {
  1943. start = start || 0;
  1944. var i = list.length - start;
  1945. var ret = new Array(i);
  1946. while (i--) {
  1947. ret[i] = list[i + start];
  1948. }
  1949. return ret
  1950. }
  1951. /**
  1952. * Mix properties into target object.
  1953. */
  1954. function extend (to, _from) {
  1955. for (var key in _from) {
  1956. to[key] = _from[key];
  1957. }
  1958. return to
  1959. }
  1960. /**
  1961. * Merge an Array of Objects into a single Object.
  1962. */
  1963. function toObject (arr) {
  1964. var res = {};
  1965. for (var i = 0; i < arr.length; i++) {
  1966. if (arr[i]) {
  1967. extend(res, arr[i]);
  1968. }
  1969. }
  1970. return res
  1971. }
  1972. /* eslint-disable no-unused-vars */
  1973. /**
  1974. * Perform no operation.
  1975. * Stubbing args to make Flow happy without leaving useless transpiled code
  1976. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  1977. */
  1978. function noop (a, b, c) {}
  1979. /**
  1980. * Always return false.
  1981. */
  1982. var no = function (a, b, c) { return false; };
  1983. /* eslint-enable no-unused-vars */
  1984. /**
  1985. * Return the same value.
  1986. */
  1987. var identity = function (_) { return _; };
  1988. /**
  1989. * Check if two values are loosely equal - that is,
  1990. * if they are plain objects, do they have the same shape?
  1991. */
  1992. function looseEqual (a, b) {
  1993. if (a === b) { return true }
  1994. var isObjectA = isObject(a);
  1995. var isObjectB = isObject(b);
  1996. if (isObjectA && isObjectB) {
  1997. try {
  1998. var isArrayA = Array.isArray(a);
  1999. var isArrayB = Array.isArray(b);
  2000. if (isArrayA && isArrayB) {
  2001. return a.length === b.length && a.every(function (e, i) {
  2002. return looseEqual(e, b[i])
  2003. })
  2004. } else if (a instanceof Date && b instanceof Date) {
  2005. return a.getTime() === b.getTime()
  2006. } else if (!isArrayA && !isArrayB) {
  2007. var keysA = Object.keys(a);
  2008. var keysB = Object.keys(b);
  2009. return keysA.length === keysB.length && keysA.every(function (key) {
  2010. return looseEqual(a[key], b[key])
  2011. })
  2012. } else {
  2013. /* istanbul ignore next */
  2014. return false
  2015. }
  2016. } catch (e) {
  2017. /* istanbul ignore next */
  2018. return false
  2019. }
  2020. } else if (!isObjectA && !isObjectB) {
  2021. return String(a) === String(b)
  2022. } else {
  2023. return false
  2024. }
  2025. }
  2026. /**
  2027. * Return the first index at which a loosely equal value can be
  2028. * found in the array (if value is a plain object, the array must
  2029. * contain an object of the same shape), or -1 if it is not present.
  2030. */
  2031. function looseIndexOf (arr, val) {
  2032. for (var i = 0; i < arr.length; i++) {
  2033. if (looseEqual(arr[i], val)) { return i }
  2034. }
  2035. return -1
  2036. }
  2037. /**
  2038. * Ensure a function is called only once.
  2039. */
  2040. function once (fn) {
  2041. var called = false;
  2042. return function () {
  2043. if (!called) {
  2044. called = true;
  2045. fn.apply(this, arguments);
  2046. }
  2047. }
  2048. }
  2049. var ASSET_TYPES = [
  2050. 'component',
  2051. 'directive',
  2052. 'filter'
  2053. ];
  2054. var LIFECYCLE_HOOKS = [
  2055. 'beforeCreate',
  2056. 'created',
  2057. 'beforeMount',
  2058. 'mounted',
  2059. 'beforeUpdate',
  2060. 'updated',
  2061. 'beforeDestroy',
  2062. 'destroyed',
  2063. 'activated',
  2064. 'deactivated',
  2065. 'errorCaptured',
  2066. 'serverPrefetch'
  2067. ];
  2068. /* */
  2069. var config = ({
  2070. /**
  2071. * Option merge strategies (used in core/util/options)
  2072. */
  2073. // $flow-disable-line
  2074. optionMergeStrategies: Object.create(null),
  2075. /**
  2076. * Whether to suppress warnings.
  2077. */
  2078. silent: false,
  2079. /**
  2080. * Show production mode tip message on boot?
  2081. */
  2082. productionTip: "development" !== 'production',
  2083. /**
  2084. * Whether to enable devtools
  2085. */
  2086. devtools: "development" !== 'production',
  2087. /**
  2088. * Whether to record perf
  2089. */
  2090. performance: false,
  2091. /**
  2092. * Error handler for watcher errors
  2093. */
  2094. errorHandler: null,
  2095. /**
  2096. * Warn handler for watcher warns
  2097. */
  2098. warnHandler: null,
  2099. /**
  2100. * Ignore certain custom elements
  2101. */
  2102. ignoredElements: [],
  2103. /**
  2104. * Custom user key aliases for v-on
  2105. */
  2106. // $flow-disable-line
  2107. keyCodes: Object.create(null),
  2108. /**
  2109. * Check if a tag is reserved so that it cannot be registered as a
  2110. * component. This is platform-dependent and may be overwritten.
  2111. */
  2112. isReservedTag: no,
  2113. /**
  2114. * Check if an attribute is reserved so that it cannot be used as a component
  2115. * prop. This is platform-dependent and may be overwritten.
  2116. */
  2117. isReservedAttr: no,
  2118. /**
  2119. * Check if a tag is an unknown element.
  2120. * Platform-dependent.
  2121. */
  2122. isUnknownElement: no,
  2123. /**
  2124. * Get the namespace of an element
  2125. */
  2126. getTagNamespace: noop,
  2127. /**
  2128. * Parse the real tag name for the specific platform.
  2129. */
  2130. parsePlatformTagName: identity,
  2131. /**
  2132. * Check if an attribute must be bound using property, e.g. value
  2133. * Platform-dependent.
  2134. */
  2135. mustUseProp: no,
  2136. /**
  2137. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  2138. * This will significantly reduce performance if set to false.
  2139. */
  2140. async: true,
  2141. /**
  2142. * Exposed for legacy reasons
  2143. */
  2144. _lifecycleHooks: LIFECYCLE_HOOKS
  2145. });
  2146. /* */
  2147. /**
  2148. * unicode letters used for parsing html tags, component names and property paths.
  2149. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  2150. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  2151. */
  2152. 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/;
  2153. /**
  2154. * Check if a string starts with $ or _
  2155. */
  2156. function isReserved (str) {
  2157. var c = (str + '').charCodeAt(0);
  2158. return c === 0x24 || c === 0x5F
  2159. }
  2160. /**
  2161. * Define a property.
  2162. */
  2163. function def (obj, key, val, enumerable) {
  2164. Object.defineProperty(obj, key, {
  2165. value: val,
  2166. enumerable: !!enumerable,
  2167. writable: true,
  2168. configurable: true
  2169. });
  2170. }
  2171. /**
  2172. * Parse simple path.
  2173. */
  2174. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  2175. function parsePath (path) {
  2176. if (bailRE.test(path)) {
  2177. return
  2178. }
  2179. var segments = path.split('.');
  2180. return function (obj) {
  2181. for (var i = 0; i < segments.length; i++) {
  2182. if (!obj) { return }
  2183. obj = obj[segments[i]];
  2184. }
  2185. return obj
  2186. }
  2187. }
  2188. /* */
  2189. // can we use __proto__?
  2190. var hasProto = '__proto__' in {};
  2191. // Browser environment sniffing
  2192. var inBrowser = typeof window !== 'undefined';
  2193. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  2194. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  2195. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  2196. var isIE = UA && /msie|trident/.test(UA);
  2197. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  2198. var isEdge = UA && UA.indexOf('edge/') > 0;
  2199. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  2200. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  2201. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  2202. var isPhantomJS = UA && /phantomjs/.test(UA);
  2203. var isFF = UA && UA.match(/firefox\/(\d+)/);
  2204. // Firefox has a "watch" function on Object.prototype...
  2205. var nativeWatch = ({}).watch;
  2206. if (inBrowser) {
  2207. try {
  2208. var opts = {};
  2209. Object.defineProperty(opts, 'passive', ({
  2210. get: function get () {
  2211. }
  2212. })); // https://github.com/facebook/flow/issues/285
  2213. window.addEventListener('test-passive', null, opts);
  2214. } catch (e) {}
  2215. }
  2216. // this needs to be lazy-evaled because vue may be required before
  2217. // vue-server-renderer can set VUE_ENV
  2218. var _isServer;
  2219. var isServerRendering = function () {
  2220. if (_isServer === undefined) {
  2221. /* istanbul ignore if */
  2222. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  2223. // detect presence of vue-server-renderer and avoid
  2224. // Webpack shimming the process
  2225. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  2226. } else {
  2227. _isServer = false;
  2228. }
  2229. }
  2230. return _isServer
  2231. };
  2232. // detect devtools
  2233. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  2234. /* istanbul ignore next */
  2235. function isNative (Ctor) {
  2236. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  2237. }
  2238. var hasSymbol =
  2239. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  2240. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  2241. var _Set;
  2242. /* istanbul ignore if */ // $flow-disable-line
  2243. if (typeof Set !== 'undefined' && isNative(Set)) {
  2244. // use native Set when available.
  2245. _Set = Set;
  2246. } else {
  2247. // a non-standard Set polyfill that only works with primitive keys.
  2248. _Set = /*@__PURE__*/(function () {
  2249. function Set () {
  2250. this.set = Object.create(null);
  2251. }
  2252. Set.prototype.has = function has (key) {
  2253. return this.set[key] === true
  2254. };
  2255. Set.prototype.add = function add (key) {
  2256. this.set[key] = true;
  2257. };
  2258. Set.prototype.clear = function clear () {
  2259. this.set = Object.create(null);
  2260. };
  2261. return Set;
  2262. }());
  2263. }
  2264. /* */
  2265. var warn = noop;
  2266. var tip = noop;
  2267. var generateComponentTrace = (noop); // work around flow check
  2268. var formatComponentName = (noop);
  2269. if (true) {
  2270. var hasConsole = typeof console !== 'undefined';
  2271. var classifyRE = /(?:^|[-_])(\w)/g;
  2272. var classify = function (str) { return str
  2273. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  2274. .replace(/[-_]/g, ''); };
  2275. warn = function (msg, vm) {
  2276. var trace = vm ? generateComponentTrace(vm) : '';
  2277. if (config.warnHandler) {
  2278. config.warnHandler.call(null, msg, vm, trace);
  2279. } else if (hasConsole && (!config.silent)) {
  2280. console.error(("[Vue warn]: " + msg + trace));
  2281. }
  2282. };
  2283. tip = function (msg, vm) {
  2284. if (hasConsole && (!config.silent)) {
  2285. console.warn("[Vue tip]: " + msg + (
  2286. vm ? generateComponentTrace(vm) : ''
  2287. ));
  2288. }
  2289. };
  2290. formatComponentName = function (vm, includeFile) {
  2291. if (vm.$root === vm) {
  2292. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  2293. return ('') + vm.$options.__file
  2294. }
  2295. return '<Root>'
  2296. }
  2297. var options = typeof vm === 'function' && vm.cid != null
  2298. ? vm.options
  2299. : vm._isVue
  2300. ? vm.$options || vm.constructor.options
  2301. : vm;
  2302. var name = options.name || options._componentTag;
  2303. var file = options.__file;
  2304. if (!name && file) {
  2305. var match = file.match(/([^/\\]+)\.vue$/);
  2306. name = match && match[1];
  2307. }
  2308. return (
  2309. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  2310. (file && includeFile !== false ? (" at " + file) : '')
  2311. )
  2312. };
  2313. var repeat = function (str, n) {
  2314. var res = '';
  2315. while (n) {
  2316. if (n % 2 === 1) { res += str; }
  2317. if (n > 1) { str += str; }
  2318. n >>= 1;
  2319. }
  2320. return res
  2321. };
  2322. generateComponentTrace = function (vm) {
  2323. if (vm._isVue && vm.$parent) {
  2324. var tree = [];
  2325. var currentRecursiveSequence = 0;
  2326. while (vm && vm.$options.name !== 'PageBody') {
  2327. if (tree.length > 0) {
  2328. var last = tree[tree.length - 1];
  2329. if (last.constructor === vm.constructor) {
  2330. currentRecursiveSequence++;
  2331. vm = vm.$parent;
  2332. continue
  2333. } else if (currentRecursiveSequence > 0) {
  2334. tree[tree.length - 1] = [last, currentRecursiveSequence];
  2335. currentRecursiveSequence = 0;
  2336. }
  2337. }
  2338. !vm.$options.isReserved && tree.push(vm);
  2339. vm = vm.$parent;
  2340. }
  2341. return '\n\nfound in\n\n' + tree
  2342. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  2343. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  2344. : formatComponentName(vm))); })
  2345. .join('\n')
  2346. } else {
  2347. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  2348. }
  2349. };
  2350. }
  2351. /* */
  2352. var uid = 0;
  2353. /**
  2354. * A dep is an observable that can have multiple
  2355. * directives subscribing to it.
  2356. */
  2357. var Dep = function Dep () {
  2358. this.id = uid++;
  2359. this.subs = [];
  2360. };
  2361. Dep.prototype.addSub = function addSub (sub) {
  2362. this.subs.push(sub);
  2363. };
  2364. Dep.prototype.removeSub = function removeSub (sub) {
  2365. remove(this.subs, sub);
  2366. };
  2367. Dep.prototype.depend = function depend () {
  2368. if (Dep.SharedObject.target) {
  2369. Dep.SharedObject.target.addDep(this);
  2370. }
  2371. };
  2372. Dep.prototype.notify = function notify () {
  2373. // stabilize the subscriber list first
  2374. var subs = this.subs.slice();
  2375. if ( true && !config.async) {
  2376. // subs aren't sorted in scheduler if not running async
  2377. // we need to sort them now to make sure they fire in correct
  2378. // order
  2379. subs.sort(function (a, b) { return a.id - b.id; });
  2380. }
  2381. for (var i = 0, l = subs.length; i < l; i++) {
  2382. subs[i].update();
  2383. }
  2384. };
  2385. // The current target watcher being evaluated.
  2386. // This is globally unique because only one watcher
  2387. // can be evaluated at a time.
  2388. // fixed by xxxxxx (nvue shared vuex)
  2389. /* eslint-disable no-undef */
  2390. Dep.SharedObject = {};
  2391. Dep.SharedObject.target = null;
  2392. Dep.SharedObject.targetStack = [];
  2393. function pushTarget (target) {
  2394. Dep.SharedObject.targetStack.push(target);
  2395. Dep.SharedObject.target = target;
  2396. Dep.target = target;
  2397. }
  2398. function popTarget () {
  2399. Dep.SharedObject.targetStack.pop();
  2400. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  2401. Dep.target = Dep.SharedObject.target;
  2402. }
  2403. /* */
  2404. var VNode = function VNode (
  2405. tag,
  2406. data,
  2407. children,
  2408. text,
  2409. elm,
  2410. context,
  2411. componentOptions,
  2412. asyncFactory
  2413. ) {
  2414. this.tag = tag;
  2415. this.data = data;
  2416. this.children = children;
  2417. this.text = text;
  2418. this.elm = elm;
  2419. this.ns = undefined;
  2420. this.context = context;
  2421. this.fnContext = undefined;
  2422. this.fnOptions = undefined;
  2423. this.fnScopeId = undefined;
  2424. this.key = data && data.key;
  2425. this.componentOptions = componentOptions;
  2426. this.componentInstance = undefined;
  2427. this.parent = undefined;
  2428. this.raw = false;
  2429. this.isStatic = false;
  2430. this.isRootInsert = true;
  2431. this.isComment = false;
  2432. this.isCloned = false;
  2433. this.isOnce = false;
  2434. this.asyncFactory = asyncFactory;
  2435. this.asyncMeta = undefined;
  2436. this.isAsyncPlaceholder = false;
  2437. };
  2438. var prototypeAccessors = { child: { configurable: true } };
  2439. // DEPRECATED: alias for componentInstance for backwards compat.
  2440. /* istanbul ignore next */
  2441. prototypeAccessors.child.get = function () {
  2442. return this.componentInstance
  2443. };
  2444. Object.defineProperties( VNode.prototype, prototypeAccessors );
  2445. var createEmptyVNode = function (text) {
  2446. if ( text === void 0 ) text = '';
  2447. var node = new VNode();
  2448. node.text = text;
  2449. node.isComment = true;
  2450. return node
  2451. };
  2452. function createTextVNode (val) {
  2453. return new VNode(undefined, undefined, undefined, String(val))
  2454. }
  2455. // optimized shallow clone
  2456. // used for static nodes and slot nodes because they may be reused across
  2457. // multiple renders, cloning them avoids errors when DOM manipulations rely
  2458. // on their elm reference.
  2459. function cloneVNode (vnode) {
  2460. var cloned = new VNode(
  2461. vnode.tag,
  2462. vnode.data,
  2463. // #7975
  2464. // clone children array to avoid mutating original in case of cloning
  2465. // a child.
  2466. vnode.children && vnode.children.slice(),
  2467. vnode.text,
  2468. vnode.elm,
  2469. vnode.context,
  2470. vnode.componentOptions,
  2471. vnode.asyncFactory
  2472. );
  2473. cloned.ns = vnode.ns;
  2474. cloned.isStatic = vnode.isStatic;
  2475. cloned.key = vnode.key;
  2476. cloned.isComment = vnode.isComment;
  2477. cloned.fnContext = vnode.fnContext;
  2478. cloned.fnOptions = vnode.fnOptions;
  2479. cloned.fnScopeId = vnode.fnScopeId;
  2480. cloned.asyncMeta = vnode.asyncMeta;
  2481. cloned.isCloned = true;
  2482. return cloned
  2483. }
  2484. /*
  2485. * not type checking this file because flow doesn't play well with
  2486. * dynamically accessing methods on Array prototype
  2487. */
  2488. var arrayProto = Array.prototype;
  2489. var arrayMethods = Object.create(arrayProto);
  2490. var methodsToPatch = [
  2491. 'push',
  2492. 'pop',
  2493. 'shift',
  2494. 'unshift',
  2495. 'splice',
  2496. 'sort',
  2497. 'reverse'
  2498. ];
  2499. /**
  2500. * Intercept mutating methods and emit events
  2501. */
  2502. methodsToPatch.forEach(function (method) {
  2503. // cache original method
  2504. var original = arrayProto[method];
  2505. def(arrayMethods, method, function mutator () {
  2506. var args = [], len = arguments.length;
  2507. while ( len-- ) args[ len ] = arguments[ len ];
  2508. var result = original.apply(this, args);
  2509. var ob = this.__ob__;
  2510. var inserted;
  2511. switch (method) {
  2512. case 'push':
  2513. case 'unshift':
  2514. inserted = args;
  2515. break
  2516. case 'splice':
  2517. inserted = args.slice(2);
  2518. break
  2519. }
  2520. if (inserted) { ob.observeArray(inserted); }
  2521. // notify change
  2522. ob.dep.notify();
  2523. return result
  2524. });
  2525. });
  2526. /* */
  2527. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  2528. /**
  2529. * In some cases we may want to disable observation inside a component's
  2530. * update computation.
  2531. */
  2532. var shouldObserve = true;
  2533. function toggleObserving (value) {
  2534. shouldObserve = value;
  2535. }
  2536. /**
  2537. * Observer class that is attached to each observed
  2538. * object. Once attached, the observer converts the target
  2539. * object's property keys into getter/setters that
  2540. * collect dependencies and dispatch updates.
  2541. */
  2542. var Observer = function Observer (value) {
  2543. this.value = value;
  2544. this.dep = new Dep();
  2545. this.vmCount = 0;
  2546. def(value, '__ob__', this);
  2547. if (Array.isArray(value)) {
  2548. if (hasProto) {
  2549. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  2550. if(value.push !== value.__proto__.push){
  2551. copyAugment(value, arrayMethods, arrayKeys);
  2552. } else {
  2553. protoAugment(value, arrayMethods);
  2554. }
  2555. }
  2556. } else {
  2557. copyAugment(value, arrayMethods, arrayKeys);
  2558. }
  2559. this.observeArray(value);
  2560. } else {
  2561. this.walk(value);
  2562. }
  2563. };
  2564. /**
  2565. * Walk through all properties and convert them into
  2566. * getter/setters. This method should only be called when
  2567. * value type is Object.
  2568. */
  2569. Observer.prototype.walk = function walk (obj) {
  2570. var keys = Object.keys(obj);
  2571. for (var i = 0; i < keys.length; i++) {
  2572. defineReactive$$1(obj, keys[i]);
  2573. }
  2574. };
  2575. /**
  2576. * Observe a list of Array items.
  2577. */
  2578. Observer.prototype.observeArray = function observeArray (items) {
  2579. for (var i = 0, l = items.length; i < l; i++) {
  2580. observe(items[i]);
  2581. }
  2582. };
  2583. // helpers
  2584. /**
  2585. * Augment a target Object or Array by intercepting
  2586. * the prototype chain using __proto__
  2587. */
  2588. function protoAugment (target, src) {
  2589. /* eslint-disable no-proto */
  2590. target.__proto__ = src;
  2591. /* eslint-enable no-proto */
  2592. }
  2593. /**
  2594. * Augment a target Object or Array by defining
  2595. * hidden properties.
  2596. */
  2597. /* istanbul ignore next */
  2598. function copyAugment (target, src, keys) {
  2599. for (var i = 0, l = keys.length; i < l; i++) {
  2600. var key = keys[i];
  2601. def(target, key, src[key]);
  2602. }
  2603. }
  2604. /**
  2605. * Attempt to create an observer instance for a value,
  2606. * returns the new observer if successfully observed,
  2607. * or the existing observer if the value already has one.
  2608. */
  2609. function observe (value, asRootData) {
  2610. if (!isObject(value) || value instanceof VNode) {
  2611. return
  2612. }
  2613. var ob;
  2614. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  2615. ob = value.__ob__;
  2616. } else if (
  2617. shouldObserve &&
  2618. !isServerRendering() &&
  2619. (Array.isArray(value) || isPlainObject(value)) &&
  2620. Object.isExtensible(value) &&
  2621. !value._isVue
  2622. ) {
  2623. ob = new Observer(value);
  2624. }
  2625. if (asRootData && ob) {
  2626. ob.vmCount++;
  2627. }
  2628. return ob
  2629. }
  2630. /**
  2631. * Define a reactive property on an Object.
  2632. */
  2633. function defineReactive$$1 (
  2634. obj,
  2635. key,
  2636. val,
  2637. customSetter,
  2638. shallow
  2639. ) {
  2640. var dep = new Dep();
  2641. var property = Object.getOwnPropertyDescriptor(obj, key);
  2642. if (property && property.configurable === false) {
  2643. return
  2644. }
  2645. // cater for pre-defined getter/setters
  2646. var getter = property && property.get;
  2647. var setter = property && property.set;
  2648. if ((!getter || setter) && arguments.length === 2) {
  2649. val = obj[key];
  2650. }
  2651. var childOb = !shallow && observe(val);
  2652. Object.defineProperty(obj, key, {
  2653. enumerable: true,
  2654. configurable: true,
  2655. get: function reactiveGetter () {
  2656. var value = getter ? getter.call(obj) : val;
  2657. if (Dep.SharedObject.target) { // fixed by xxxxxx
  2658. dep.depend();
  2659. if (childOb) {
  2660. childOb.dep.depend();
  2661. if (Array.isArray(value)) {
  2662. dependArray(value);
  2663. }
  2664. }
  2665. }
  2666. return value
  2667. },
  2668. set: function reactiveSetter (newVal) {
  2669. var value = getter ? getter.call(obj) : val;
  2670. /* eslint-disable no-self-compare */
  2671. if (newVal === value || (newVal !== newVal && value !== value)) {
  2672. return
  2673. }
  2674. /* eslint-enable no-self-compare */
  2675. if ( true && customSetter) {
  2676. customSetter();
  2677. }
  2678. // #7981: for accessor properties without setter
  2679. if (getter && !setter) { return }
  2680. if (setter) {
  2681. setter.call(obj, newVal);
  2682. } else {
  2683. val = newVal;
  2684. }
  2685. childOb = !shallow && observe(newVal);
  2686. dep.notify();
  2687. }
  2688. });
  2689. }
  2690. /**
  2691. * Set a property on an object. Adds the new property and
  2692. * triggers change notification if the property doesn't
  2693. * already exist.
  2694. */
  2695. function set (target, key, val) {
  2696. if ( true &&
  2697. (isUndef(target) || isPrimitive(target))
  2698. ) {
  2699. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  2700. }
  2701. if (Array.isArray(target) && isValidArrayIndex(key)) {
  2702. target.length = Math.max(target.length, key);
  2703. target.splice(key, 1, val);
  2704. return val
  2705. }
  2706. if (key in target && !(key in Object.prototype)) {
  2707. target[key] = val;
  2708. return val
  2709. }
  2710. var ob = (target).__ob__;
  2711. if (target._isVue || (ob && ob.vmCount)) {
  2712. true && warn(
  2713. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  2714. 'at runtime - declare it upfront in the data option.'
  2715. );
  2716. return val
  2717. }
  2718. if (!ob) {
  2719. target[key] = val;
  2720. return val
  2721. }
  2722. defineReactive$$1(ob.value, key, val);
  2723. ob.dep.notify();
  2724. return val
  2725. }
  2726. /**
  2727. * Delete a property and trigger change if necessary.
  2728. */
  2729. function del (target, key) {
  2730. if ( true &&
  2731. (isUndef(target) || isPrimitive(target))
  2732. ) {
  2733. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  2734. }
  2735. if (Array.isArray(target) && isValidArrayIndex(key)) {
  2736. target.splice(key, 1);
  2737. return
  2738. }
  2739. var ob = (target).__ob__;
  2740. if (target._isVue || (ob && ob.vmCount)) {
  2741. true && warn(
  2742. 'Avoid deleting properties on a Vue instance or its root $data ' +
  2743. '- just set it to null.'
  2744. );
  2745. return
  2746. }
  2747. if (!hasOwn(target, key)) {
  2748. return
  2749. }
  2750. delete target[key];
  2751. if (!ob) {
  2752. return
  2753. }
  2754. ob.dep.notify();
  2755. }
  2756. /**
  2757. * Collect dependencies on array elements when the array is touched, since
  2758. * we cannot intercept array element access like property getters.
  2759. */
  2760. function dependArray (value) {
  2761. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  2762. e = value[i];
  2763. e && e.__ob__ && e.__ob__.dep.depend();
  2764. if (Array.isArray(e)) {
  2765. dependArray(e);
  2766. }
  2767. }
  2768. }
  2769. /* */
  2770. /**
  2771. * Option overwriting strategies are functions that handle
  2772. * how to merge a parent option value and a child option
  2773. * value into the final value.
  2774. */
  2775. var strats = config.optionMergeStrategies;
  2776. /**
  2777. * Options with restrictions
  2778. */
  2779. if (true) {
  2780. strats.el = strats.propsData = function (parent, child, vm, key) {
  2781. if (!vm) {
  2782. warn(
  2783. "option \"" + key + "\" can only be used during instance " +
  2784. 'creation with the `new` keyword.'
  2785. );
  2786. }
  2787. return defaultStrat(parent, child)
  2788. };
  2789. }
  2790. /**
  2791. * Helper that recursively merges two data objects together.
  2792. */
  2793. function mergeData (to, from) {
  2794. if (!from) { return to }
  2795. var key, toVal, fromVal;
  2796. var keys = hasSymbol
  2797. ? Reflect.ownKeys(from)
  2798. : Object.keys(from);
  2799. for (var i = 0; i < keys.length; i++) {
  2800. key = keys[i];
  2801. // in case the object is already observed...
  2802. if (key === '__ob__') { continue }
  2803. toVal = to[key];
  2804. fromVal = from[key];
  2805. if (!hasOwn(to, key)) {
  2806. set(to, key, fromVal);
  2807. } else if (
  2808. toVal !== fromVal &&
  2809. isPlainObject(toVal) &&
  2810. isPlainObject(fromVal)
  2811. ) {
  2812. mergeData(toVal, fromVal);
  2813. }
  2814. }
  2815. return to
  2816. }
  2817. /**
  2818. * Data
  2819. */
  2820. function mergeDataOrFn (
  2821. parentVal,
  2822. childVal,
  2823. vm
  2824. ) {
  2825. if (!vm) {
  2826. // in a Vue.extend merge, both should be functions
  2827. if (!childVal) {
  2828. return parentVal
  2829. }
  2830. if (!parentVal) {
  2831. return childVal
  2832. }
  2833. // when parentVal & childVal are both present,
  2834. // we need to return a function that returns the
  2835. // merged result of both functions... no need to
  2836. // check if parentVal is a function here because
  2837. // it has to be a function to pass previous merges.
  2838. return function mergedDataFn () {
  2839. return mergeData(
  2840. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  2841. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  2842. )
  2843. }
  2844. } else {
  2845. return function mergedInstanceDataFn () {
  2846. // instance merge
  2847. var instanceData = typeof childVal === 'function'
  2848. ? childVal.call(vm, vm)
  2849. : childVal;
  2850. var defaultData = typeof parentVal === 'function'
  2851. ? parentVal.call(vm, vm)
  2852. : parentVal;
  2853. if (instanceData) {
  2854. return mergeData(instanceData, defaultData)
  2855. } else {
  2856. return defaultData
  2857. }
  2858. }
  2859. }
  2860. }
  2861. strats.data = function (
  2862. parentVal,
  2863. childVal,
  2864. vm
  2865. ) {
  2866. if (!vm) {
  2867. if (childVal && typeof childVal !== 'function') {
  2868. true && warn(
  2869. 'The "data" option should be a function ' +
  2870. 'that returns a per-instance value in component ' +
  2871. 'definitions.',
  2872. vm
  2873. );
  2874. return parentVal
  2875. }
  2876. return mergeDataOrFn(parentVal, childVal)
  2877. }
  2878. return mergeDataOrFn(parentVal, childVal, vm)
  2879. };
  2880. /**
  2881. * Hooks and props are merged as arrays.
  2882. */
  2883. function mergeHook (
  2884. parentVal,
  2885. childVal
  2886. ) {
  2887. var res = childVal
  2888. ? parentVal
  2889. ? parentVal.concat(childVal)
  2890. : Array.isArray(childVal)
  2891. ? childVal
  2892. : [childVal]
  2893. : parentVal;
  2894. return res
  2895. ? dedupeHooks(res)
  2896. : res
  2897. }
  2898. function dedupeHooks (hooks) {
  2899. var res = [];
  2900. for (var i = 0; i < hooks.length; i++) {
  2901. if (res.indexOf(hooks[i]) === -1) {
  2902. res.push(hooks[i]);
  2903. }
  2904. }
  2905. return res
  2906. }
  2907. LIFECYCLE_HOOKS.forEach(function (hook) {
  2908. strats[hook] = mergeHook;
  2909. });
  2910. /**
  2911. * Assets
  2912. *
  2913. * When a vm is present (instance creation), we need to do
  2914. * a three-way merge between constructor options, instance
  2915. * options and parent options.
  2916. */
  2917. function mergeAssets (
  2918. parentVal,
  2919. childVal,
  2920. vm,
  2921. key
  2922. ) {
  2923. var res = Object.create(parentVal || null);
  2924. if (childVal) {
  2925. true && assertObjectType(key, childVal, vm);
  2926. return extend(res, childVal)
  2927. } else {
  2928. return res
  2929. }
  2930. }
  2931. ASSET_TYPES.forEach(function (type) {
  2932. strats[type + 's'] = mergeAssets;
  2933. });
  2934. /**
  2935. * Watchers.
  2936. *
  2937. * Watchers hashes should not overwrite one
  2938. * another, so we merge them as arrays.
  2939. */
  2940. strats.watch = function (
  2941. parentVal,
  2942. childVal,
  2943. vm,
  2944. key
  2945. ) {
  2946. // work around Firefox's Object.prototype.watch...
  2947. if (parentVal === nativeWatch) { parentVal = undefined; }
  2948. if (childVal === nativeWatch) { childVal = undefined; }
  2949. /* istanbul ignore if */
  2950. if (!childVal) { return Object.create(parentVal || null) }
  2951. if (true) {
  2952. assertObjectType(key, childVal, vm);
  2953. }
  2954. if (!parentVal) { return childVal }
  2955. var ret = {};
  2956. extend(ret, parentVal);
  2957. for (var key$1 in childVal) {
  2958. var parent = ret[key$1];
  2959. var child = childVal[key$1];
  2960. if (parent && !Array.isArray(parent)) {
  2961. parent = [parent];
  2962. }
  2963. ret[key$1] = parent
  2964. ? parent.concat(child)
  2965. : Array.isArray(child) ? child : [child];
  2966. }
  2967. return ret
  2968. };
  2969. /**
  2970. * Other object hashes.
  2971. */
  2972. strats.props =
  2973. strats.methods =
  2974. strats.inject =
  2975. strats.computed = function (
  2976. parentVal,
  2977. childVal,
  2978. vm,
  2979. key
  2980. ) {
  2981. if (childVal && "development" !== 'production') {
  2982. assertObjectType(key, childVal, vm);
  2983. }
  2984. if (!parentVal) { return childVal }
  2985. var ret = Object.create(null);
  2986. extend(ret, parentVal);
  2987. if (childVal) { extend(ret, childVal); }
  2988. return ret
  2989. };
  2990. strats.provide = mergeDataOrFn;
  2991. /**
  2992. * Default strategy.
  2993. */
  2994. var defaultStrat = function (parentVal, childVal) {
  2995. return childVal === undefined
  2996. ? parentVal
  2997. : childVal
  2998. };
  2999. /**
  3000. * Validate component names
  3001. */
  3002. function checkComponents (options) {
  3003. for (var key in options.components) {
  3004. validateComponentName(key);
  3005. }
  3006. }
  3007. function validateComponentName (name) {
  3008. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  3009. warn(
  3010. 'Invalid component name: "' + name + '". Component names ' +
  3011. 'should conform to valid custom element name in html5 specification.'
  3012. );
  3013. }
  3014. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  3015. warn(
  3016. 'Do not use built-in or reserved HTML elements as component ' +
  3017. 'id: ' + name
  3018. );
  3019. }
  3020. }
  3021. /**
  3022. * Ensure all props option syntax are normalized into the
  3023. * Object-based format.
  3024. */
  3025. function normalizeProps (options, vm) {
  3026. var props = options.props;
  3027. if (!props) { return }
  3028. var res = {};
  3029. var i, val, name;
  3030. if (Array.isArray(props)) {
  3031. i = props.length;
  3032. while (i--) {
  3033. val = props[i];
  3034. if (typeof val === 'string') {
  3035. name = camelize(val);
  3036. res[name] = { type: null };
  3037. } else if (true) {
  3038. warn('props must be strings when using array syntax.');
  3039. }
  3040. }
  3041. } else if (isPlainObject(props)) {
  3042. for (var key in props) {
  3043. val = props[key];
  3044. name = camelize(key);
  3045. res[name] = isPlainObject(val)
  3046. ? val
  3047. : { type: val };
  3048. }
  3049. } else if (true) {
  3050. warn(
  3051. "Invalid value for option \"props\": expected an Array or an Object, " +
  3052. "but got " + (toRawType(props)) + ".",
  3053. vm
  3054. );
  3055. }
  3056. options.props = res;
  3057. }
  3058. /**
  3059. * Normalize all injections into Object-based format
  3060. */
  3061. function normalizeInject (options, vm) {
  3062. var inject = options.inject;
  3063. if (!inject) { return }
  3064. var normalized = options.inject = {};
  3065. if (Array.isArray(inject)) {
  3066. for (var i = 0; i < inject.length; i++) {
  3067. normalized[inject[i]] = { from: inject[i] };
  3068. }
  3069. } else if (isPlainObject(inject)) {
  3070. for (var key in inject) {
  3071. var val = inject[key];
  3072. normalized[key] = isPlainObject(val)
  3073. ? extend({ from: key }, val)
  3074. : { from: val };
  3075. }
  3076. } else if (true) {
  3077. warn(
  3078. "Invalid value for option \"inject\": expected an Array or an Object, " +
  3079. "but got " + (toRawType(inject)) + ".",
  3080. vm
  3081. );
  3082. }
  3083. }
  3084. /**
  3085. * Normalize raw function directives into object format.
  3086. */
  3087. function normalizeDirectives (options) {
  3088. var dirs = options.directives;
  3089. if (dirs) {
  3090. for (var key in dirs) {
  3091. var def$$1 = dirs[key];
  3092. if (typeof def$$1 === 'function') {
  3093. dirs[key] = { bind: def$$1, update: def$$1 };
  3094. }
  3095. }
  3096. }
  3097. }
  3098. function assertObjectType (name, value, vm) {
  3099. if (!isPlainObject(value)) {
  3100. warn(
  3101. "Invalid value for option \"" + name + "\": expected an Object, " +
  3102. "but got " + (toRawType(value)) + ".",
  3103. vm
  3104. );
  3105. }
  3106. }
  3107. /**
  3108. * Merge two option objects into a new one.
  3109. * Core utility used in both instantiation and inheritance.
  3110. */
  3111. function mergeOptions (
  3112. parent,
  3113. child,
  3114. vm
  3115. ) {
  3116. if (true) {
  3117. checkComponents(child);
  3118. }
  3119. if (typeof child === 'function') {
  3120. child = child.options;
  3121. }
  3122. normalizeProps(child, vm);
  3123. normalizeInject(child, vm);
  3124. normalizeDirectives(child);
  3125. // Apply extends and mixins on the child options,
  3126. // but only if it is a raw options object that isn't
  3127. // the result of another mergeOptions call.
  3128. // Only merged options has the _base property.
  3129. if (!child._base) {
  3130. if (child.extends) {
  3131. parent = mergeOptions(parent, child.extends, vm);
  3132. }
  3133. if (child.mixins) {
  3134. for (var i = 0, l = child.mixins.length; i < l; i++) {
  3135. parent = mergeOptions(parent, child.mixins[i], vm);
  3136. }
  3137. }
  3138. }
  3139. var options = {};
  3140. var key;
  3141. for (key in parent) {
  3142. mergeField(key);
  3143. }
  3144. for (key in child) {
  3145. if (!hasOwn(parent, key)) {
  3146. mergeField(key);
  3147. }
  3148. }
  3149. function mergeField (key) {
  3150. var strat = strats[key] || defaultStrat;
  3151. options[key] = strat(parent[key], child[key], vm, key);
  3152. }
  3153. return options
  3154. }
  3155. /**
  3156. * Resolve an asset.
  3157. * This function is used because child instances need access
  3158. * to assets defined in its ancestor chain.
  3159. */
  3160. function resolveAsset (
  3161. options,
  3162. type,
  3163. id,
  3164. warnMissing
  3165. ) {
  3166. /* istanbul ignore if */
  3167. if (typeof id !== 'string') {
  3168. return
  3169. }
  3170. var assets = options[type];
  3171. // check local registration variations first
  3172. if (hasOwn(assets, id)) { return assets[id] }
  3173. var camelizedId = camelize(id);
  3174. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  3175. var PascalCaseId = capitalize(camelizedId);
  3176. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  3177. // fallback to prototype chain
  3178. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  3179. if ( true && warnMissing && !res) {
  3180. warn(
  3181. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  3182. options
  3183. );
  3184. }
  3185. return res
  3186. }
  3187. /* */
  3188. function validateProp (
  3189. key,
  3190. propOptions,
  3191. propsData,
  3192. vm
  3193. ) {
  3194. var prop = propOptions[key];
  3195. var absent = !hasOwn(propsData, key);
  3196. var value = propsData[key];
  3197. // boolean casting
  3198. var booleanIndex = getTypeIndex(Boolean, prop.type);
  3199. if (booleanIndex > -1) {
  3200. if (absent && !hasOwn(prop, 'default')) {
  3201. value = false;
  3202. } else if (value === '' || value === hyphenate(key)) {
  3203. // only cast empty string / same name to boolean if
  3204. // boolean has higher priority
  3205. var stringIndex = getTypeIndex(String, prop.type);
  3206. if (stringIndex < 0 || booleanIndex < stringIndex) {
  3207. value = true;
  3208. }
  3209. }
  3210. }
  3211. // check default value
  3212. if (value === undefined) {
  3213. value = getPropDefaultValue(vm, prop, key);
  3214. // since the default value is a fresh copy,
  3215. // make sure to observe it.
  3216. var prevShouldObserve = shouldObserve;
  3217. toggleObserving(true);
  3218. observe(value);
  3219. toggleObserving(prevShouldObserve);
  3220. }
  3221. if (
  3222. true
  3223. ) {
  3224. assertProp(prop, key, value, vm, absent);
  3225. }
  3226. return value
  3227. }
  3228. /**
  3229. * Get the default value of a prop.
  3230. */
  3231. function getPropDefaultValue (vm, prop, key) {
  3232. // no default, return undefined
  3233. if (!hasOwn(prop, 'default')) {
  3234. return undefined
  3235. }
  3236. var def = prop.default;
  3237. // warn against non-factory defaults for Object & Array
  3238. if ( true && isObject(def)) {
  3239. warn(
  3240. 'Invalid default value for prop "' + key + '": ' +
  3241. 'Props with type Object/Array must use a factory function ' +
  3242. 'to return the default value.',
  3243. vm
  3244. );
  3245. }
  3246. // the raw prop value was also undefined from previous render,
  3247. // return previous default value to avoid unnecessary watcher trigger
  3248. if (vm && vm.$options.propsData &&
  3249. vm.$options.propsData[key] === undefined &&
  3250. vm._props[key] !== undefined
  3251. ) {
  3252. return vm._props[key]
  3253. }
  3254. // call factory function for non-Function types
  3255. // a value is Function if its prototype is function even across different execution context
  3256. return typeof def === 'function' && getType(prop.type) !== 'Function'
  3257. ? def.call(vm)
  3258. : def
  3259. }
  3260. /**
  3261. * Assert whether a prop is valid.
  3262. */
  3263. function assertProp (
  3264. prop,
  3265. name,
  3266. value,
  3267. vm,
  3268. absent
  3269. ) {
  3270. if (prop.required && absent) {
  3271. warn(
  3272. 'Missing required prop: "' + name + '"',
  3273. vm
  3274. );
  3275. return
  3276. }
  3277. if (value == null && !prop.required) {
  3278. return
  3279. }
  3280. var type = prop.type;
  3281. var valid = !type || type === true;
  3282. var expectedTypes = [];
  3283. if (type) {
  3284. if (!Array.isArray(type)) {
  3285. type = [type];
  3286. }
  3287. for (var i = 0; i < type.length && !valid; i++) {
  3288. var assertedType = assertType(value, type[i]);
  3289. expectedTypes.push(assertedType.expectedType || '');
  3290. valid = assertedType.valid;
  3291. }
  3292. }
  3293. if (!valid) {
  3294. warn(
  3295. getInvalidTypeMessage(name, value, expectedTypes),
  3296. vm
  3297. );
  3298. return
  3299. }
  3300. var validator = prop.validator;
  3301. if (validator) {
  3302. if (!validator(value)) {
  3303. warn(
  3304. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  3305. vm
  3306. );
  3307. }
  3308. }
  3309. }
  3310. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  3311. function assertType (value, type) {
  3312. var valid;
  3313. var expectedType = getType(type);
  3314. if (simpleCheckRE.test(expectedType)) {
  3315. var t = typeof value;
  3316. valid = t === expectedType.toLowerCase();
  3317. // for primitive wrapper objects
  3318. if (!valid && t === 'object') {
  3319. valid = value instanceof type;
  3320. }
  3321. } else if (expectedType === 'Object') {
  3322. valid = isPlainObject(value);
  3323. } else if (expectedType === 'Array') {
  3324. valid = Array.isArray(value);
  3325. } else {
  3326. valid = value instanceof type;
  3327. }
  3328. return {
  3329. valid: valid,
  3330. expectedType: expectedType
  3331. }
  3332. }
  3333. /**
  3334. * Use function string name to check built-in types,
  3335. * because a simple equality check will fail when running
  3336. * across different vms / iframes.
  3337. */
  3338. function getType (fn) {
  3339. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  3340. return match ? match[1] : ''
  3341. }
  3342. function isSameType (a, b) {
  3343. return getType(a) === getType(b)
  3344. }
  3345. function getTypeIndex (type, expectedTypes) {
  3346. if (!Array.isArray(expectedTypes)) {
  3347. return isSameType(expectedTypes, type) ? 0 : -1
  3348. }
  3349. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  3350. if (isSameType(expectedTypes[i], type)) {
  3351. return i
  3352. }
  3353. }
  3354. return -1
  3355. }
  3356. function getInvalidTypeMessage (name, value, expectedTypes) {
  3357. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  3358. " Expected " + (expectedTypes.map(capitalize).join(', '));
  3359. var expectedType = expectedTypes[0];
  3360. var receivedType = toRawType(value);
  3361. var expectedValue = styleValue(value, expectedType);
  3362. var receivedValue = styleValue(value, receivedType);
  3363. // check if we need to specify expected value
  3364. if (expectedTypes.length === 1 &&
  3365. isExplicable(expectedType) &&
  3366. !isBoolean(expectedType, receivedType)) {
  3367. message += " with value " + expectedValue;
  3368. }
  3369. message += ", got " + receivedType + " ";
  3370. // check if we need to specify received value
  3371. if (isExplicable(receivedType)) {
  3372. message += "with value " + receivedValue + ".";
  3373. }
  3374. return message
  3375. }
  3376. function styleValue (value, type) {
  3377. if (type === 'String') {
  3378. return ("\"" + value + "\"")
  3379. } else if (type === 'Number') {
  3380. return ("" + (Number(value)))
  3381. } else {
  3382. return ("" + value)
  3383. }
  3384. }
  3385. function isExplicable (value) {
  3386. var explicitTypes = ['string', 'number', 'boolean'];
  3387. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  3388. }
  3389. function isBoolean () {
  3390. var args = [], len = arguments.length;
  3391. while ( len-- ) args[ len ] = arguments[ len ];
  3392. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  3393. }
  3394. /* */
  3395. function handleError (err, vm, info) {
  3396. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  3397. // See: https://github.com/vuejs/vuex/issues/1505
  3398. pushTarget();
  3399. try {
  3400. if (vm) {
  3401. var cur = vm;
  3402. while ((cur = cur.$parent)) {
  3403. var hooks = cur.$options.errorCaptured;
  3404. if (hooks) {
  3405. for (var i = 0; i < hooks.length; i++) {
  3406. try {
  3407. var capture = hooks[i].call(cur, err, vm, info) === false;
  3408. if (capture) { return }
  3409. } catch (e) {
  3410. globalHandleError(e, cur, 'errorCaptured hook');
  3411. }
  3412. }
  3413. }
  3414. }
  3415. }
  3416. globalHandleError(err, vm, info);
  3417. } finally {
  3418. popTarget();
  3419. }
  3420. }
  3421. function invokeWithErrorHandling (
  3422. handler,
  3423. context,
  3424. args,
  3425. vm,
  3426. info
  3427. ) {
  3428. var res;
  3429. try {
  3430. res = args ? handler.apply(context, args) : handler.call(context);
  3431. if (res && !res._isVue && isPromise(res) && !res._handled) {
  3432. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  3433. // issue #9511
  3434. // avoid catch triggering multiple times when nested calls
  3435. res._handled = true;
  3436. }
  3437. } catch (e) {
  3438. handleError(e, vm, info);
  3439. }
  3440. return res
  3441. }
  3442. function globalHandleError (err, vm, info) {
  3443. if (config.errorHandler) {
  3444. try {
  3445. return config.errorHandler.call(null, err, vm, info)
  3446. } catch (e) {
  3447. // if the user intentionally throws the original error in the handler,
  3448. // do not log it twice
  3449. if (e !== err) {
  3450. logError(e, null, 'config.errorHandler');
  3451. }
  3452. }
  3453. }
  3454. logError(err, vm, info);
  3455. }
  3456. function logError (err, vm, info) {
  3457. if (true) {
  3458. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  3459. }
  3460. /* istanbul ignore else */
  3461. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  3462. console.error(err);
  3463. } else {
  3464. throw err
  3465. }
  3466. }
  3467. /* */
  3468. var callbacks = [];
  3469. var pending = false;
  3470. function flushCallbacks () {
  3471. pending = false;
  3472. var copies = callbacks.slice(0);
  3473. callbacks.length = 0;
  3474. for (var i = 0; i < copies.length; i++) {
  3475. copies[i]();
  3476. }
  3477. }
  3478. // Here we have async deferring wrappers using microtasks.
  3479. // In 2.5 we used (macro) tasks (in combination with microtasks).
  3480. // However, it has subtle problems when state is changed right before repaint
  3481. // (e.g. #6813, out-in transitions).
  3482. // Also, using (macro) tasks in event handler would cause some weird behaviors
  3483. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  3484. // So we now use microtasks everywhere, again.
  3485. // A major drawback of this tradeoff is that there are some scenarios
  3486. // where microtasks have too high a priority and fire in between supposedly
  3487. // sequential events (e.g. #4521, #6690, which have workarounds)
  3488. // or even between bubbling of the same event (#6566).
  3489. var timerFunc;
  3490. // The nextTick behavior leverages the microtask queue, which can be accessed
  3491. // via either native Promise.then or MutationObserver.
  3492. // MutationObserver has wider support, however it is seriously bugged in
  3493. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  3494. // completely stops working after triggering a few times... so, if native
  3495. // Promise is available, we will use it:
  3496. /* istanbul ignore next, $flow-disable-line */
  3497. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  3498. var p = Promise.resolve();
  3499. timerFunc = function () {
  3500. p.then(flushCallbacks);
  3501. // In problematic UIWebViews, Promise.then doesn't completely break, but
  3502. // it can get stuck in a weird state where callbacks are pushed into the
  3503. // microtask queue but the queue isn't being flushed, until the browser
  3504. // needs to do some other work, e.g. handle a timer. Therefore we can
  3505. // "force" the microtask queue to be flushed by adding an empty timer.
  3506. if (isIOS) { setTimeout(noop); }
  3507. };
  3508. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  3509. isNative(MutationObserver) ||
  3510. // PhantomJS and iOS 7.x
  3511. MutationObserver.toString() === '[object MutationObserverConstructor]'
  3512. )) {
  3513. // Use MutationObserver where native Promise is not available,
  3514. // e.g. PhantomJS, iOS7, Android 4.4
  3515. // (#6466 MutationObserver is unreliable in IE11)
  3516. var counter = 1;
  3517. var observer = new MutationObserver(flushCallbacks);
  3518. var textNode = document.createTextNode(String(counter));
  3519. observer.observe(textNode, {
  3520. characterData: true
  3521. });
  3522. timerFunc = function () {
  3523. counter = (counter + 1) % 2;
  3524. textNode.data = String(counter);
  3525. };
  3526. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  3527. // Fallback to setImmediate.
  3528. // Technically it leverages the (macro) task queue,
  3529. // but it is still a better choice than setTimeout.
  3530. timerFunc = function () {
  3531. setImmediate(flushCallbacks);
  3532. };
  3533. } else {
  3534. // Fallback to setTimeout.
  3535. timerFunc = function () {
  3536. setTimeout(flushCallbacks, 0);
  3537. };
  3538. }
  3539. function nextTick (cb, ctx) {
  3540. var _resolve;
  3541. callbacks.push(function () {
  3542. if (cb) {
  3543. try {
  3544. cb.call(ctx);
  3545. } catch (e) {
  3546. handleError(e, ctx, 'nextTick');
  3547. }
  3548. } else if (_resolve) {
  3549. _resolve(ctx);
  3550. }
  3551. });
  3552. if (!pending) {
  3553. pending = true;
  3554. timerFunc();
  3555. }
  3556. // $flow-disable-line
  3557. if (!cb && typeof Promise !== 'undefined') {
  3558. return new Promise(function (resolve) {
  3559. _resolve = resolve;
  3560. })
  3561. }
  3562. }
  3563. /* */
  3564. /* not type checking this file because flow doesn't play well with Proxy */
  3565. var initProxy;
  3566. if (true) {
  3567. var allowedGlobals = makeMap(
  3568. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  3569. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  3570. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  3571. 'require' // for Webpack/Browserify
  3572. );
  3573. var warnNonPresent = function (target, key) {
  3574. warn(
  3575. "Property or method \"" + key + "\" is not defined on the instance but " +
  3576. 'referenced during render. Make sure that this property is reactive, ' +
  3577. 'either in the data option, or for class-based components, by ' +
  3578. 'initializing the property. ' +
  3579. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  3580. target
  3581. );
  3582. };
  3583. var warnReservedPrefix = function (target, key) {
  3584. warn(
  3585. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  3586. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  3587. 'prevent conflicts with Vue internals. ' +
  3588. 'See: https://vuejs.org/v2/api/#data',
  3589. target
  3590. );
  3591. };
  3592. var hasProxy =
  3593. typeof Proxy !== 'undefined' && isNative(Proxy);
  3594. if (hasProxy) {
  3595. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  3596. config.keyCodes = new Proxy(config.keyCodes, {
  3597. set: function set (target, key, value) {
  3598. if (isBuiltInModifier(key)) {
  3599. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  3600. return false
  3601. } else {
  3602. target[key] = value;
  3603. return true
  3604. }
  3605. }
  3606. });
  3607. }
  3608. var hasHandler = {
  3609. has: function has (target, key) {
  3610. var has = key in target;
  3611. var isAllowed = allowedGlobals(key) ||
  3612. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  3613. if (!has && !isAllowed) {
  3614. if (key in target.$data) { warnReservedPrefix(target, key); }
  3615. else { warnNonPresent(target, key); }
  3616. }
  3617. return has || !isAllowed
  3618. }
  3619. };
  3620. var getHandler = {
  3621. get: function get (target, key) {
  3622. if (typeof key === 'string' && !(key in target)) {
  3623. if (key in target.$data) { warnReservedPrefix(target, key); }
  3624. else { warnNonPresent(target, key); }
  3625. }
  3626. return target[key]
  3627. }
  3628. };
  3629. initProxy = function initProxy (vm) {
  3630. if (hasProxy) {
  3631. // determine which proxy handler to use
  3632. var options = vm.$options;
  3633. var handlers = options.render && options.render._withStripped
  3634. ? getHandler
  3635. : hasHandler;
  3636. vm._renderProxy = new Proxy(vm, handlers);
  3637. } else {
  3638. vm._renderProxy = vm;
  3639. }
  3640. };
  3641. }
  3642. /* */
  3643. var seenObjects = new _Set();
  3644. /**
  3645. * Recursively traverse an object to evoke all converted
  3646. * getters, so that every nested property inside the object
  3647. * is collected as a "deep" dependency.
  3648. */
  3649. function traverse (val) {
  3650. _traverse(val, seenObjects);
  3651. seenObjects.clear();
  3652. }
  3653. function _traverse (val, seen) {
  3654. var i, keys;
  3655. var isA = Array.isArray(val);
  3656. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  3657. return
  3658. }
  3659. if (val.__ob__) {
  3660. var depId = val.__ob__.dep.id;
  3661. if (seen.has(depId)) {
  3662. return
  3663. }
  3664. seen.add(depId);
  3665. }
  3666. if (isA) {
  3667. i = val.length;
  3668. while (i--) { _traverse(val[i], seen); }
  3669. } else {
  3670. keys = Object.keys(val);
  3671. i = keys.length;
  3672. while (i--) { _traverse(val[keys[i]], seen); }
  3673. }
  3674. }
  3675. var mark;
  3676. var measure;
  3677. if (true) {
  3678. var perf = inBrowser && window.performance;
  3679. /* istanbul ignore if */
  3680. if (
  3681. perf &&
  3682. perf.mark &&
  3683. perf.measure &&
  3684. perf.clearMarks &&
  3685. perf.clearMeasures
  3686. ) {
  3687. mark = function (tag) { return perf.mark(tag); };
  3688. measure = function (name, startTag, endTag) {
  3689. perf.measure(name, startTag, endTag);
  3690. perf.clearMarks(startTag);
  3691. perf.clearMarks(endTag);
  3692. // perf.clearMeasures(name)
  3693. };
  3694. }
  3695. }
  3696. /* */
  3697. var normalizeEvent = cached(function (name) {
  3698. var passive = name.charAt(0) === '&';
  3699. name = passive ? name.slice(1) : name;
  3700. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  3701. name = once$$1 ? name.slice(1) : name;
  3702. var capture = name.charAt(0) === '!';
  3703. name = capture ? name.slice(1) : name;
  3704. return {
  3705. name: name,
  3706. once: once$$1,
  3707. capture: capture,
  3708. passive: passive
  3709. }
  3710. });
  3711. function createFnInvoker (fns, vm) {
  3712. function invoker () {
  3713. var arguments$1 = arguments;
  3714. var fns = invoker.fns;
  3715. if (Array.isArray(fns)) {
  3716. var cloned = fns.slice();
  3717. for (var i = 0; i < cloned.length; i++) {
  3718. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  3719. }
  3720. } else {
  3721. // return handler return value for single handlers
  3722. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  3723. }
  3724. }
  3725. invoker.fns = fns;
  3726. return invoker
  3727. }
  3728. function updateListeners (
  3729. on,
  3730. oldOn,
  3731. add,
  3732. remove$$1,
  3733. createOnceHandler,
  3734. vm
  3735. ) {
  3736. var name, def$$1, cur, old, event;
  3737. for (name in on) {
  3738. def$$1 = cur = on[name];
  3739. old = oldOn[name];
  3740. event = normalizeEvent(name);
  3741. if (isUndef(cur)) {
  3742. true && warn(
  3743. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  3744. vm
  3745. );
  3746. } else if (isUndef(old)) {
  3747. if (isUndef(cur.fns)) {
  3748. cur = on[name] = createFnInvoker(cur, vm);
  3749. }
  3750. if (isTrue(event.once)) {
  3751. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  3752. }
  3753. add(event.name, cur, event.capture, event.passive, event.params);
  3754. } else if (cur !== old) {
  3755. old.fns = cur;
  3756. on[name] = old;
  3757. }
  3758. }
  3759. for (name in oldOn) {
  3760. if (isUndef(on[name])) {
  3761. event = normalizeEvent(name);
  3762. remove$$1(event.name, oldOn[name], event.capture);
  3763. }
  3764. }
  3765. }
  3766. /* */
  3767. /* */
  3768. // fixed by xxxxxx (mp properties)
  3769. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  3770. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  3771. if (isUndef(propOptions)) {
  3772. return res
  3773. }
  3774. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  3775. var attrs = data.attrs;
  3776. var props = data.props;
  3777. if (isDef(attrs) || isDef(props)) {
  3778. for (var key in propOptions) {
  3779. var altKey = hyphenate(key);
  3780. var result = checkProp(res, props, key, altKey, true) ||
  3781. checkProp(res, attrs, key, altKey, false);
  3782. // externalClass
  3783. if (
  3784. result &&
  3785. res[key] &&
  3786. externalClasses.indexOf(altKey) !== -1 &&
  3787. context[camelize(res[key])]
  3788. ) {
  3789. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  3790. res[key] = context[camelize(res[key])];
  3791. }
  3792. }
  3793. }
  3794. return res
  3795. }
  3796. function extractPropsFromVNodeData (
  3797. data,
  3798. Ctor,
  3799. tag,
  3800. context// fixed by xxxxxx
  3801. ) {
  3802. // we are only extracting raw values here.
  3803. // validation and default values are handled in the child
  3804. // component itself.
  3805. var propOptions = Ctor.options.props;
  3806. if (isUndef(propOptions)) {
  3807. // fixed by xxxxxx
  3808. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  3809. }
  3810. var res = {};
  3811. var attrs = data.attrs;
  3812. var props = data.props;
  3813. if (isDef(attrs) || isDef(props)) {
  3814. for (var key in propOptions) {
  3815. var altKey = hyphenate(key);
  3816. if (true) {
  3817. var keyInLowerCase = key.toLowerCase();
  3818. if (
  3819. key !== keyInLowerCase &&
  3820. attrs && hasOwn(attrs, keyInLowerCase)
  3821. ) {
  3822. tip(
  3823. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  3824. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  3825. " \"" + key + "\". " +
  3826. "Note that HTML attributes are case-insensitive and camelCased " +
  3827. "props need to use their kebab-case equivalents when using in-DOM " +
  3828. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  3829. );
  3830. }
  3831. }
  3832. checkProp(res, props, key, altKey, true) ||
  3833. checkProp(res, attrs, key, altKey, false);
  3834. }
  3835. }
  3836. // fixed by xxxxxx
  3837. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  3838. }
  3839. function checkProp (
  3840. res,
  3841. hash,
  3842. key,
  3843. altKey,
  3844. preserve
  3845. ) {
  3846. if (isDef(hash)) {
  3847. if (hasOwn(hash, key)) {
  3848. res[key] = hash[key];
  3849. if (!preserve) {
  3850. delete hash[key];
  3851. }
  3852. return true
  3853. } else if (hasOwn(hash, altKey)) {
  3854. res[key] = hash[altKey];
  3855. if (!preserve) {
  3856. delete hash[altKey];
  3857. }
  3858. return true
  3859. }
  3860. }
  3861. return false
  3862. }
  3863. /* */
  3864. // The template compiler attempts to minimize the need for normalization by
  3865. // statically analyzing the template at compile time.
  3866. //
  3867. // For plain HTML markup, normalization can be completely skipped because the
  3868. // generated render function is guaranteed to return Array<VNode>. There are
  3869. // two cases where extra normalization is needed:
  3870. // 1. When the children contains components - because a functional component
  3871. // may return an Array instead of a single root. In this case, just a simple
  3872. // normalization is needed - if any child is an Array, we flatten the whole
  3873. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  3874. // because functional components already normalize their own children.
  3875. function simpleNormalizeChildren (children) {
  3876. for (var i = 0; i < children.length; i++) {
  3877. if (Array.isArray(children[i])) {
  3878. return Array.prototype.concat.apply([], children)
  3879. }
  3880. }
  3881. return children
  3882. }
  3883. // 2. When the children contains constructs that always generated nested Arrays,
  3884. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  3885. // with hand-written render functions / JSX. In such cases a full normalization
  3886. // is needed to cater to all possible types of children values.
  3887. function normalizeChildren (children) {
  3888. return isPrimitive(children)
  3889. ? [createTextVNode(children)]
  3890. : Array.isArray(children)
  3891. ? normalizeArrayChildren(children)
  3892. : undefined
  3893. }
  3894. function isTextNode (node) {
  3895. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  3896. }
  3897. function normalizeArrayChildren (children, nestedIndex) {
  3898. var res = [];
  3899. var i, c, lastIndex, last;
  3900. for (i = 0; i < children.length; i++) {
  3901. c = children[i];
  3902. if (isUndef(c) || typeof c === 'boolean') { continue }
  3903. lastIndex = res.length - 1;
  3904. last = res[lastIndex];
  3905. // nested
  3906. if (Array.isArray(c)) {
  3907. if (c.length > 0) {
  3908. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  3909. // merge adjacent text nodes
  3910. if (isTextNode(c[0]) && isTextNode(last)) {
  3911. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  3912. c.shift();
  3913. }
  3914. res.push.apply(res, c);
  3915. }
  3916. } else if (isPrimitive(c)) {
  3917. if (isTextNode(last)) {
  3918. // merge adjacent text nodes
  3919. // this is necessary for SSR hydration because text nodes are
  3920. // essentially merged when rendered to HTML strings
  3921. res[lastIndex] = createTextVNode(last.text + c);
  3922. } else if (c !== '') {
  3923. // convert primitive to vnode
  3924. res.push(createTextVNode(c));
  3925. }
  3926. } else {
  3927. if (isTextNode(c) && isTextNode(last)) {
  3928. // merge adjacent text nodes
  3929. res[lastIndex] = createTextVNode(last.text + c.text);
  3930. } else {
  3931. // default key for nested array children (likely generated by v-for)
  3932. if (isTrue(children._isVList) &&
  3933. isDef(c.tag) &&
  3934. isUndef(c.key) &&
  3935. isDef(nestedIndex)) {
  3936. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  3937. }
  3938. res.push(c);
  3939. }
  3940. }
  3941. }
  3942. return res
  3943. }
  3944. /* */
  3945. function initProvide (vm) {
  3946. var provide = vm.$options.provide;
  3947. if (provide) {
  3948. vm._provided = typeof provide === 'function'
  3949. ? provide.call(vm)
  3950. : provide;
  3951. }
  3952. }
  3953. function initInjections (vm) {
  3954. var result = resolveInject(vm.$options.inject, vm);
  3955. if (result) {
  3956. toggleObserving(false);
  3957. Object.keys(result).forEach(function (key) {
  3958. /* istanbul ignore else */
  3959. if (true) {
  3960. defineReactive$$1(vm, key, result[key], function () {
  3961. warn(
  3962. "Avoid mutating an injected value directly since the changes will be " +
  3963. "overwritten whenever the provided component re-renders. " +
  3964. "injection being mutated: \"" + key + "\"",
  3965. vm
  3966. );
  3967. });
  3968. } else {}
  3969. });
  3970. toggleObserving(true);
  3971. }
  3972. }
  3973. function resolveInject (inject, vm) {
  3974. if (inject) {
  3975. // inject is :any because flow is not smart enough to figure out cached
  3976. var result = Object.create(null);
  3977. var keys = hasSymbol
  3978. ? Reflect.ownKeys(inject)
  3979. : Object.keys(inject);
  3980. for (var i = 0; i < keys.length; i++) {
  3981. var key = keys[i];
  3982. // #6574 in case the inject object is observed...
  3983. if (key === '__ob__') { continue }
  3984. var provideKey = inject[key].from;
  3985. var source = vm;
  3986. while (source) {
  3987. if (source._provided && hasOwn(source._provided, provideKey)) {
  3988. result[key] = source._provided[provideKey];
  3989. break
  3990. }
  3991. source = source.$parent;
  3992. }
  3993. if (!source) {
  3994. if ('default' in inject[key]) {
  3995. var provideDefault = inject[key].default;
  3996. result[key] = typeof provideDefault === 'function'
  3997. ? provideDefault.call(vm)
  3998. : provideDefault;
  3999. } else if (true) {
  4000. warn(("Injection \"" + key + "\" not found"), vm);
  4001. }
  4002. }
  4003. }
  4004. return result
  4005. }
  4006. }
  4007. /* */
  4008. /**
  4009. * Runtime helper for resolving raw children VNodes into a slot object.
  4010. */
  4011. function resolveSlots (
  4012. children,
  4013. context
  4014. ) {
  4015. if (!children || !children.length) {
  4016. return {}
  4017. }
  4018. var slots = {};
  4019. for (var i = 0, l = children.length; i < l; i++) {
  4020. var child = children[i];
  4021. var data = child.data;
  4022. // remove slot attribute if the node is resolved as a Vue slot node
  4023. if (data && data.attrs && data.attrs.slot) {
  4024. delete data.attrs.slot;
  4025. }
  4026. // named slots should only be respected if the vnode was rendered in the
  4027. // same context.
  4028. if ((child.context === context || child.fnContext === context) &&
  4029. data && data.slot != null
  4030. ) {
  4031. var name = data.slot;
  4032. var slot = (slots[name] || (slots[name] = []));
  4033. if (child.tag === 'template') {
  4034. slot.push.apply(slot, child.children || []);
  4035. } else {
  4036. slot.push(child);
  4037. }
  4038. } else {
  4039. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  4040. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  4041. (slots['page'] || (slots['page'] = [])).push(child);
  4042. }else{
  4043. (slots.default || (slots.default = [])).push(child);
  4044. }
  4045. }
  4046. }
  4047. // ignore slots that contains only whitespace
  4048. for (var name$1 in slots) {
  4049. if (slots[name$1].every(isWhitespace)) {
  4050. delete slots[name$1];
  4051. }
  4052. }
  4053. return slots
  4054. }
  4055. function isWhitespace (node) {
  4056. return (node.isComment && !node.asyncFactory) || node.text === ' '
  4057. }
  4058. /* */
  4059. function normalizeScopedSlots (
  4060. slots,
  4061. normalSlots,
  4062. prevSlots
  4063. ) {
  4064. var res;
  4065. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  4066. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  4067. var key = slots && slots.$key;
  4068. if (!slots) {
  4069. res = {};
  4070. } else if (slots._normalized) {
  4071. // fast path 1: child component re-render only, parent did not change
  4072. return slots._normalized
  4073. } else if (
  4074. isStable &&
  4075. prevSlots &&
  4076. prevSlots !== emptyObject &&
  4077. key === prevSlots.$key &&
  4078. !hasNormalSlots &&
  4079. !prevSlots.$hasNormal
  4080. ) {
  4081. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  4082. // only need to normalize once
  4083. return prevSlots
  4084. } else {
  4085. res = {};
  4086. for (var key$1 in slots) {
  4087. if (slots[key$1] && key$1[0] !== '$') {
  4088. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  4089. }
  4090. }
  4091. }
  4092. // expose normal slots on scopedSlots
  4093. for (var key$2 in normalSlots) {
  4094. if (!(key$2 in res)) {
  4095. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  4096. }
  4097. }
  4098. // avoriaz seems to mock a non-extensible $scopedSlots object
  4099. // and when that is passed down this would cause an error
  4100. if (slots && Object.isExtensible(slots)) {
  4101. (slots)._normalized = res;
  4102. }
  4103. def(res, '$stable', isStable);
  4104. def(res, '$key', key);
  4105. def(res, '$hasNormal', hasNormalSlots);
  4106. return res
  4107. }
  4108. function normalizeScopedSlot(normalSlots, key, fn) {
  4109. var normalized = function () {
  4110. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  4111. res = res && typeof res === 'object' && !Array.isArray(res)
  4112. ? [res] // single vnode
  4113. : normalizeChildren(res);
  4114. return res && (
  4115. res.length === 0 ||
  4116. (res.length === 1 && res[0].isComment) // #9658
  4117. ) ? undefined
  4118. : res
  4119. };
  4120. // this is a slot using the new v-slot syntax without scope. although it is
  4121. // compiled as a scoped slot, render fn users would expect it to be present
  4122. // on this.$slots because the usage is semantically a normal slot.
  4123. if (fn.proxy) {
  4124. Object.defineProperty(normalSlots, key, {
  4125. get: normalized,
  4126. enumerable: true,
  4127. configurable: true
  4128. });
  4129. }
  4130. return normalized
  4131. }
  4132. function proxyNormalSlot(slots, key) {
  4133. return function () { return slots[key]; }
  4134. }
  4135. /* */
  4136. /**
  4137. * Runtime helper for rendering v-for lists.
  4138. */
  4139. function renderList (
  4140. val,
  4141. render
  4142. ) {
  4143. var ret, i, l, keys, key;
  4144. if (Array.isArray(val) || typeof val === 'string') {
  4145. ret = new Array(val.length);
  4146. for (i = 0, l = val.length; i < l; i++) {
  4147. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  4148. }
  4149. } else if (typeof val === 'number') {
  4150. ret = new Array(val);
  4151. for (i = 0; i < val; i++) {
  4152. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  4153. }
  4154. } else if (isObject(val)) {
  4155. if (hasSymbol && val[Symbol.iterator]) {
  4156. ret = [];
  4157. var iterator = val[Symbol.iterator]();
  4158. var result = iterator.next();
  4159. while (!result.done) {
  4160. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  4161. result = iterator.next();
  4162. }
  4163. } else {
  4164. keys = Object.keys(val);
  4165. ret = new Array(keys.length);
  4166. for (i = 0, l = keys.length; i < l; i++) {
  4167. key = keys[i];
  4168. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  4169. }
  4170. }
  4171. }
  4172. if (!isDef(ret)) {
  4173. ret = [];
  4174. }
  4175. (ret)._isVList = true;
  4176. return ret
  4177. }
  4178. /* */
  4179. /**
  4180. * Runtime helper for rendering <slot>
  4181. */
  4182. function renderSlot (
  4183. name,
  4184. fallback,
  4185. props,
  4186. bindObject
  4187. ) {
  4188. var scopedSlotFn = this.$scopedSlots[name];
  4189. var nodes;
  4190. if (scopedSlotFn) { // scoped slot
  4191. props = props || {};
  4192. if (bindObject) {
  4193. if ( true && !isObject(bindObject)) {
  4194. warn(
  4195. 'slot v-bind without argument expects an Object',
  4196. this
  4197. );
  4198. }
  4199. props = extend(extend({}, bindObject), props);
  4200. }
  4201. // fixed by xxxxxx app-plus scopedSlot
  4202. nodes = scopedSlotFn(props, this, props._i) || fallback;
  4203. } else {
  4204. nodes = this.$slots[name] || fallback;
  4205. }
  4206. var target = props && props.slot;
  4207. if (target) {
  4208. return this.$createElement('template', { slot: target }, nodes)
  4209. } else {
  4210. return nodes
  4211. }
  4212. }
  4213. /* */
  4214. /**
  4215. * Runtime helper for resolving filters
  4216. */
  4217. function resolveFilter (id) {
  4218. return resolveAsset(this.$options, 'filters', id, true) || identity
  4219. }
  4220. /* */
  4221. function isKeyNotMatch (expect, actual) {
  4222. if (Array.isArray(expect)) {
  4223. return expect.indexOf(actual) === -1
  4224. } else {
  4225. return expect !== actual
  4226. }
  4227. }
  4228. /**
  4229. * Runtime helper for checking keyCodes from config.
  4230. * exposed as Vue.prototype._k
  4231. * passing in eventKeyName as last argument separately for backwards compat
  4232. */
  4233. function checkKeyCodes (
  4234. eventKeyCode,
  4235. key,
  4236. builtInKeyCode,
  4237. eventKeyName,
  4238. builtInKeyName
  4239. ) {
  4240. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  4241. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  4242. return isKeyNotMatch(builtInKeyName, eventKeyName)
  4243. } else if (mappedKeyCode) {
  4244. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  4245. } else if (eventKeyName) {
  4246. return hyphenate(eventKeyName) !== key
  4247. }
  4248. }
  4249. /* */
  4250. /**
  4251. * Runtime helper for merging v-bind="object" into a VNode's data.
  4252. */
  4253. function bindObjectProps (
  4254. data,
  4255. tag,
  4256. value,
  4257. asProp,
  4258. isSync
  4259. ) {
  4260. if (value) {
  4261. if (!isObject(value)) {
  4262. true && warn(
  4263. 'v-bind without argument expects an Object or Array value',
  4264. this
  4265. );
  4266. } else {
  4267. if (Array.isArray(value)) {
  4268. value = toObject(value);
  4269. }
  4270. var hash;
  4271. var loop = function ( key ) {
  4272. if (
  4273. key === 'class' ||
  4274. key === 'style' ||
  4275. isReservedAttribute(key)
  4276. ) {
  4277. hash = data;
  4278. } else {
  4279. var type = data.attrs && data.attrs.type;
  4280. hash = asProp || config.mustUseProp(tag, type, key)
  4281. ? data.domProps || (data.domProps = {})
  4282. : data.attrs || (data.attrs = {});
  4283. }
  4284. var camelizedKey = camelize(key);
  4285. var hyphenatedKey = hyphenate(key);
  4286. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  4287. hash[key] = value[key];
  4288. if (isSync) {
  4289. var on = data.on || (data.on = {});
  4290. on[("update:" + key)] = function ($event) {
  4291. value[key] = $event;
  4292. };
  4293. }
  4294. }
  4295. };
  4296. for (var key in value) loop( key );
  4297. }
  4298. }
  4299. return data
  4300. }
  4301. /* */
  4302. /**
  4303. * Runtime helper for rendering static trees.
  4304. */
  4305. function renderStatic (
  4306. index,
  4307. isInFor
  4308. ) {
  4309. var cached = this._staticTrees || (this._staticTrees = []);
  4310. var tree = cached[index];
  4311. // if has already-rendered static tree and not inside v-for,
  4312. // we can reuse the same tree.
  4313. if (tree && !isInFor) {
  4314. return tree
  4315. }
  4316. // otherwise, render a fresh tree.
  4317. tree = cached[index] = this.$options.staticRenderFns[index].call(
  4318. this._renderProxy,
  4319. null,
  4320. this // for render fns generated for functional component templates
  4321. );
  4322. markStatic(tree, ("__static__" + index), false);
  4323. return tree
  4324. }
  4325. /**
  4326. * Runtime helper for v-once.
  4327. * Effectively it means marking the node as static with a unique key.
  4328. */
  4329. function markOnce (
  4330. tree,
  4331. index,
  4332. key
  4333. ) {
  4334. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  4335. return tree
  4336. }
  4337. function markStatic (
  4338. tree,
  4339. key,
  4340. isOnce
  4341. ) {
  4342. if (Array.isArray(tree)) {
  4343. for (var i = 0; i < tree.length; i++) {
  4344. if (tree[i] && typeof tree[i] !== 'string') {
  4345. markStaticNode(tree[i], (key + "_" + i), isOnce);
  4346. }
  4347. }
  4348. } else {
  4349. markStaticNode(tree, key, isOnce);
  4350. }
  4351. }
  4352. function markStaticNode (node, key, isOnce) {
  4353. node.isStatic = true;
  4354. node.key = key;
  4355. node.isOnce = isOnce;
  4356. }
  4357. /* */
  4358. function bindObjectListeners (data, value) {
  4359. if (value) {
  4360. if (!isPlainObject(value)) {
  4361. true && warn(
  4362. 'v-on without argument expects an Object value',
  4363. this
  4364. );
  4365. } else {
  4366. var on = data.on = data.on ? extend({}, data.on) : {};
  4367. for (var key in value) {
  4368. var existing = on[key];
  4369. var ours = value[key];
  4370. on[key] = existing ? [].concat(existing, ours) : ours;
  4371. }
  4372. }
  4373. }
  4374. return data
  4375. }
  4376. /* */
  4377. function resolveScopedSlots (
  4378. fns, // see flow/vnode
  4379. res,
  4380. // the following are added in 2.6
  4381. hasDynamicKeys,
  4382. contentHashKey
  4383. ) {
  4384. res = res || { $stable: !hasDynamicKeys };
  4385. for (var i = 0; i < fns.length; i++) {
  4386. var slot = fns[i];
  4387. if (Array.isArray(slot)) {
  4388. resolveScopedSlots(slot, res, hasDynamicKeys);
  4389. } else if (slot) {
  4390. // marker for reverse proxying v-slot without scope on this.$slots
  4391. if (slot.proxy) {
  4392. slot.fn.proxy = true;
  4393. }
  4394. res[slot.key] = slot.fn;
  4395. }
  4396. }
  4397. if (contentHashKey) {
  4398. (res).$key = contentHashKey;
  4399. }
  4400. return res
  4401. }
  4402. /* */
  4403. function bindDynamicKeys (baseObj, values) {
  4404. for (var i = 0; i < values.length; i += 2) {
  4405. var key = values[i];
  4406. if (typeof key === 'string' && key) {
  4407. baseObj[values[i]] = values[i + 1];
  4408. } else if ( true && key !== '' && key !== null) {
  4409. // null is a special value for explicitly removing a binding
  4410. warn(
  4411. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  4412. this
  4413. );
  4414. }
  4415. }
  4416. return baseObj
  4417. }
  4418. // helper to dynamically append modifier runtime markers to event names.
  4419. // ensure only append when value is already string, otherwise it will be cast
  4420. // to string and cause the type check to miss.
  4421. function prependModifier (value, symbol) {
  4422. return typeof value === 'string' ? symbol + value : value
  4423. }
  4424. /* */
  4425. function installRenderHelpers (target) {
  4426. target._o = markOnce;
  4427. target._n = toNumber;
  4428. target._s = toString;
  4429. target._l = renderList;
  4430. target._t = renderSlot;
  4431. target._q = looseEqual;
  4432. target._i = looseIndexOf;
  4433. target._m = renderStatic;
  4434. target._f = resolveFilter;
  4435. target._k = checkKeyCodes;
  4436. target._b = bindObjectProps;
  4437. target._v = createTextVNode;
  4438. target._e = createEmptyVNode;
  4439. target._u = resolveScopedSlots;
  4440. target._g = bindObjectListeners;
  4441. target._d = bindDynamicKeys;
  4442. target._p = prependModifier;
  4443. }
  4444. /* */
  4445. function FunctionalRenderContext (
  4446. data,
  4447. props,
  4448. children,
  4449. parent,
  4450. Ctor
  4451. ) {
  4452. var this$1 = this;
  4453. var options = Ctor.options;
  4454. // ensure the createElement function in functional components
  4455. // gets a unique context - this is necessary for correct named slot check
  4456. var contextVm;
  4457. if (hasOwn(parent, '_uid')) {
  4458. contextVm = Object.create(parent);
  4459. // $flow-disable-line
  4460. contextVm._original = parent;
  4461. } else {
  4462. // the context vm passed in is a functional context as well.
  4463. // in this case we want to make sure we are able to get a hold to the
  4464. // real context instance.
  4465. contextVm = parent;
  4466. // $flow-disable-line
  4467. parent = parent._original;
  4468. }
  4469. var isCompiled = isTrue(options._compiled);
  4470. var needNormalization = !isCompiled;
  4471. this.data = data;
  4472. this.props = props;
  4473. this.children = children;
  4474. this.parent = parent;
  4475. this.listeners = data.on || emptyObject;
  4476. this.injections = resolveInject(options.inject, parent);
  4477. this.slots = function () {
  4478. if (!this$1.$slots) {
  4479. normalizeScopedSlots(
  4480. data.scopedSlots,
  4481. this$1.$slots = resolveSlots(children, parent)
  4482. );
  4483. }
  4484. return this$1.$slots
  4485. };
  4486. Object.defineProperty(this, 'scopedSlots', ({
  4487. enumerable: true,
  4488. get: function get () {
  4489. return normalizeScopedSlots(data.scopedSlots, this.slots())
  4490. }
  4491. }));
  4492. // support for compiled functional template
  4493. if (isCompiled) {
  4494. // exposing $options for renderStatic()
  4495. this.$options = options;
  4496. // pre-resolve slots for renderSlot()
  4497. this.$slots = this.slots();
  4498. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  4499. }
  4500. if (options._scopeId) {
  4501. this._c = function (a, b, c, d) {
  4502. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  4503. if (vnode && !Array.isArray(vnode)) {
  4504. vnode.fnScopeId = options._scopeId;
  4505. vnode.fnContext = parent;
  4506. }
  4507. return vnode
  4508. };
  4509. } else {
  4510. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  4511. }
  4512. }
  4513. installRenderHelpers(FunctionalRenderContext.prototype);
  4514. function createFunctionalComponent (
  4515. Ctor,
  4516. propsData,
  4517. data,
  4518. contextVm,
  4519. children
  4520. ) {
  4521. var options = Ctor.options;
  4522. var props = {};
  4523. var propOptions = options.props;
  4524. if (isDef(propOptions)) {
  4525. for (var key in propOptions) {
  4526. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  4527. }
  4528. } else {
  4529. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  4530. if (isDef(data.props)) { mergeProps(props, data.props); }
  4531. }
  4532. var renderContext = new FunctionalRenderContext(
  4533. data,
  4534. props,
  4535. children,
  4536. contextVm,
  4537. Ctor
  4538. );
  4539. var vnode = options.render.call(null, renderContext._c, renderContext);
  4540. if (vnode instanceof VNode) {
  4541. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  4542. } else if (Array.isArray(vnode)) {
  4543. var vnodes = normalizeChildren(vnode) || [];
  4544. var res = new Array(vnodes.length);
  4545. for (var i = 0; i < vnodes.length; i++) {
  4546. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  4547. }
  4548. return res
  4549. }
  4550. }
  4551. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  4552. // #7817 clone node before setting fnContext, otherwise if the node is reused
  4553. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  4554. // that should not be matched to match.
  4555. var clone = cloneVNode(vnode);
  4556. clone.fnContext = contextVm;
  4557. clone.fnOptions = options;
  4558. if (true) {
  4559. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  4560. }
  4561. if (data.slot) {
  4562. (clone.data || (clone.data = {})).slot = data.slot;
  4563. }
  4564. return clone
  4565. }
  4566. function mergeProps (to, from) {
  4567. for (var key in from) {
  4568. to[camelize(key)] = from[key];
  4569. }
  4570. }
  4571. /* */
  4572. /* */
  4573. /* */
  4574. /* */
  4575. // inline hooks to be invoked on component VNodes during patch
  4576. var componentVNodeHooks = {
  4577. init: function init (vnode, hydrating) {
  4578. if (
  4579. vnode.componentInstance &&
  4580. !vnode.componentInstance._isDestroyed &&
  4581. vnode.data.keepAlive
  4582. ) {
  4583. // kept-alive components, treat as a patch
  4584. var mountedNode = vnode; // work around flow
  4585. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  4586. } else {
  4587. var child = vnode.componentInstance = createComponentInstanceForVnode(
  4588. vnode,
  4589. activeInstance
  4590. );
  4591. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  4592. }
  4593. },
  4594. prepatch: function prepatch (oldVnode, vnode) {
  4595. var options = vnode.componentOptions;
  4596. var child = vnode.componentInstance = oldVnode.componentInstance;
  4597. updateChildComponent(
  4598. child,
  4599. options.propsData, // updated props
  4600. options.listeners, // updated listeners
  4601. vnode, // new parent vnode
  4602. options.children // new children
  4603. );
  4604. },
  4605. insert: function insert (vnode) {
  4606. var context = vnode.context;
  4607. var componentInstance = vnode.componentInstance;
  4608. if (!componentInstance._isMounted) {
  4609. callHook(componentInstance, 'onServiceCreated');
  4610. callHook(componentInstance, 'onServiceAttached');
  4611. componentInstance._isMounted = true;
  4612. callHook(componentInstance, 'mounted');
  4613. }
  4614. if (vnode.data.keepAlive) {
  4615. if (context._isMounted) {
  4616. // vue-router#1212
  4617. // During updates, a kept-alive component's child components may
  4618. // change, so directly walking the tree here may call activated hooks
  4619. // on incorrect children. Instead we push them into a queue which will
  4620. // be processed after the whole patch process ended.
  4621. queueActivatedComponent(componentInstance);
  4622. } else {
  4623. activateChildComponent(componentInstance, true /* direct */);
  4624. }
  4625. }
  4626. },
  4627. destroy: function destroy (vnode) {
  4628. var componentInstance = vnode.componentInstance;
  4629. if (!componentInstance._isDestroyed) {
  4630. if (!vnode.data.keepAlive) {
  4631. componentInstance.$destroy();
  4632. } else {
  4633. deactivateChildComponent(componentInstance, true /* direct */);
  4634. }
  4635. }
  4636. }
  4637. };
  4638. var hooksToMerge = Object.keys(componentVNodeHooks);
  4639. function createComponent (
  4640. Ctor,
  4641. data,
  4642. context,
  4643. children,
  4644. tag
  4645. ) {
  4646. if (isUndef(Ctor)) {
  4647. return
  4648. }
  4649. var baseCtor = context.$options._base;
  4650. // plain options object: turn it into a constructor
  4651. if (isObject(Ctor)) {
  4652. Ctor = baseCtor.extend(Ctor);
  4653. }
  4654. // if at this stage it's not a constructor or an async component factory,
  4655. // reject.
  4656. if (typeof Ctor !== 'function') {
  4657. if (true) {
  4658. warn(("Invalid Component definition: " + (String(Ctor))), context);
  4659. }
  4660. return
  4661. }
  4662. // async component
  4663. var asyncFactory;
  4664. if (isUndef(Ctor.cid)) {
  4665. asyncFactory = Ctor;
  4666. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  4667. if (Ctor === undefined) {
  4668. // return a placeholder node for async component, which is rendered
  4669. // as a comment node but preserves all the raw information for the node.
  4670. // the information will be used for async server-rendering and hydration.
  4671. return createAsyncPlaceholder(
  4672. asyncFactory,
  4673. data,
  4674. context,
  4675. children,
  4676. tag
  4677. )
  4678. }
  4679. }
  4680. data = data || {};
  4681. // resolve constructor options in case global mixins are applied after
  4682. // component constructor creation
  4683. resolveConstructorOptions(Ctor);
  4684. // transform component v-model data into props & events
  4685. if (isDef(data.model)) {
  4686. transformModel(Ctor.options, data);
  4687. }
  4688. // extract props
  4689. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  4690. // functional component
  4691. if (isTrue(Ctor.options.functional)) {
  4692. return createFunctionalComponent(Ctor, propsData, data, context, children)
  4693. }
  4694. // extract listeners, since these needs to be treated as
  4695. // child component listeners instead of DOM listeners
  4696. var listeners = data.on;
  4697. // replace with listeners with .native modifier
  4698. // so it gets processed during parent component patch.
  4699. data.on = data.nativeOn;
  4700. if (isTrue(Ctor.options.abstract)) {
  4701. // abstract components do not keep anything
  4702. // other than props & listeners & slot
  4703. // work around flow
  4704. var slot = data.slot;
  4705. data = {};
  4706. if (slot) {
  4707. data.slot = slot;
  4708. }
  4709. }
  4710. // install component management hooks onto the placeholder node
  4711. installComponentHooks(data);
  4712. // return a placeholder vnode
  4713. var name = Ctor.options.name || tag;
  4714. var vnode = new VNode(
  4715. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  4716. data, undefined, undefined, undefined, context,
  4717. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  4718. asyncFactory
  4719. );
  4720. return vnode
  4721. }
  4722. function createComponentInstanceForVnode (
  4723. vnode, // we know it's MountedComponentVNode but flow doesn't
  4724. parent // activeInstance in lifecycle state
  4725. ) {
  4726. var options = {
  4727. _isComponent: true,
  4728. _parentVnode: vnode,
  4729. parent: parent
  4730. };
  4731. // check inline-template render functions
  4732. var inlineTemplate = vnode.data.inlineTemplate;
  4733. if (isDef(inlineTemplate)) {
  4734. options.render = inlineTemplate.render;
  4735. options.staticRenderFns = inlineTemplate.staticRenderFns;
  4736. }
  4737. return new vnode.componentOptions.Ctor(options)
  4738. }
  4739. function installComponentHooks (data) {
  4740. var hooks = data.hook || (data.hook = {});
  4741. for (var i = 0; i < hooksToMerge.length; i++) {
  4742. var key = hooksToMerge[i];
  4743. var existing = hooks[key];
  4744. var toMerge = componentVNodeHooks[key];
  4745. if (existing !== toMerge && !(existing && existing._merged)) {
  4746. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  4747. }
  4748. }
  4749. }
  4750. function mergeHook$1 (f1, f2) {
  4751. var merged = function (a, b) {
  4752. // flow complains about extra args which is why we use any
  4753. f1(a, b);
  4754. f2(a, b);
  4755. };
  4756. merged._merged = true;
  4757. return merged
  4758. }
  4759. // transform component v-model info (value and callback) into
  4760. // prop and event handler respectively.
  4761. function transformModel (options, data) {
  4762. var prop = (options.model && options.model.prop) || 'value';
  4763. var event = (options.model && options.model.event) || 'input'
  4764. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  4765. var on = data.on || (data.on = {});
  4766. var existing = on[event];
  4767. var callback = data.model.callback;
  4768. if (isDef(existing)) {
  4769. if (
  4770. Array.isArray(existing)
  4771. ? existing.indexOf(callback) === -1
  4772. : existing !== callback
  4773. ) {
  4774. on[event] = [callback].concat(existing);
  4775. }
  4776. } else {
  4777. on[event] = callback;
  4778. }
  4779. }
  4780. /* */
  4781. var SIMPLE_NORMALIZE = 1;
  4782. var ALWAYS_NORMALIZE = 2;
  4783. // wrapper function for providing a more flexible interface
  4784. // without getting yelled at by flow
  4785. function createElement (
  4786. context,
  4787. tag,
  4788. data,
  4789. children,
  4790. normalizationType,
  4791. alwaysNormalize
  4792. ) {
  4793. if (Array.isArray(data) || isPrimitive(data)) {
  4794. normalizationType = children;
  4795. children = data;
  4796. data = undefined;
  4797. }
  4798. if (isTrue(alwaysNormalize)) {
  4799. normalizationType = ALWAYS_NORMALIZE;
  4800. }
  4801. return _createElement(context, tag, data, children, normalizationType)
  4802. }
  4803. function _createElement (
  4804. context,
  4805. tag,
  4806. data,
  4807. children,
  4808. normalizationType
  4809. ) {
  4810. if (isDef(data) && isDef((data).__ob__)) {
  4811. true && warn(
  4812. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  4813. 'Always create fresh vnode data objects in each render!',
  4814. context
  4815. );
  4816. return createEmptyVNode()
  4817. }
  4818. // object syntax in v-bind
  4819. if (isDef(data) && isDef(data.is)) {
  4820. tag = data.is;
  4821. }
  4822. if (!tag) {
  4823. // in case of component :is set to falsy value
  4824. return createEmptyVNode()
  4825. }
  4826. // warn against non-primitive key
  4827. if ( true &&
  4828. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  4829. ) {
  4830. {
  4831. warn(
  4832. 'Avoid using non-primitive value as key, ' +
  4833. 'use string/number value instead.',
  4834. context
  4835. );
  4836. }
  4837. }
  4838. // support single function children as default scoped slot
  4839. if (Array.isArray(children) &&
  4840. typeof children[0] === 'function'
  4841. ) {
  4842. data = data || {};
  4843. data.scopedSlots = { default: children[0] };
  4844. children.length = 0;
  4845. }
  4846. if (normalizationType === ALWAYS_NORMALIZE) {
  4847. children = normalizeChildren(children);
  4848. } else if (normalizationType === SIMPLE_NORMALIZE) {
  4849. children = simpleNormalizeChildren(children);
  4850. }
  4851. var vnode, ns;
  4852. if (typeof tag === 'string') {
  4853. var Ctor;
  4854. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  4855. if (config.isReservedTag(tag)) {
  4856. // platform built-in elements
  4857. if ( true && isDef(data) && isDef(data.nativeOn)) {
  4858. warn(
  4859. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  4860. context
  4861. );
  4862. }
  4863. vnode = new VNode(
  4864. config.parsePlatformTagName(tag), data, children,
  4865. undefined, undefined, context
  4866. );
  4867. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  4868. // component
  4869. vnode = createComponent(Ctor, data, context, children, tag);
  4870. } else {
  4871. // unknown or unlisted namespaced elements
  4872. // check at runtime because it may get assigned a namespace when its
  4873. // parent normalizes children
  4874. vnode = new VNode(
  4875. tag, data, children,
  4876. undefined, undefined, context
  4877. );
  4878. }
  4879. } else {
  4880. // direct component options / constructor
  4881. vnode = createComponent(tag, data, context, children);
  4882. }
  4883. if (Array.isArray(vnode)) {
  4884. return vnode
  4885. } else if (isDef(vnode)) {
  4886. if (isDef(ns)) { applyNS(vnode, ns); }
  4887. if (isDef(data)) { registerDeepBindings(data); }
  4888. return vnode
  4889. } else {
  4890. return createEmptyVNode()
  4891. }
  4892. }
  4893. function applyNS (vnode, ns, force) {
  4894. vnode.ns = ns;
  4895. if (vnode.tag === 'foreignObject') {
  4896. // use default namespace inside foreignObject
  4897. ns = undefined;
  4898. force = true;
  4899. }
  4900. if (isDef(vnode.children)) {
  4901. for (var i = 0, l = vnode.children.length; i < l; i++) {
  4902. var child = vnode.children[i];
  4903. if (isDef(child.tag) && (
  4904. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  4905. applyNS(child, ns, force);
  4906. }
  4907. }
  4908. }
  4909. }
  4910. // ref #5318
  4911. // necessary to ensure parent re-render when deep bindings like :style and
  4912. // :class are used on slot nodes
  4913. function registerDeepBindings (data) {
  4914. if (isObject(data.style)) {
  4915. traverse(data.style);
  4916. }
  4917. if (isObject(data.class)) {
  4918. traverse(data.class);
  4919. }
  4920. }
  4921. /* */
  4922. function initRender (vm) {
  4923. vm._vnode = null; // the root of the child tree
  4924. vm._staticTrees = null; // v-once cached trees
  4925. var options = vm.$options;
  4926. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  4927. var renderContext = parentVnode && parentVnode.context;
  4928. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  4929. vm.$scopedSlots = emptyObject;
  4930. // bind the createElement fn to this instance
  4931. // so that we get proper render context inside it.
  4932. // args order: tag, data, children, normalizationType, alwaysNormalize
  4933. // internal version is used by render functions compiled from templates
  4934. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  4935. // normalization is always applied for the public version, used in
  4936. // user-written render functions.
  4937. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  4938. // $attrs & $listeners are exposed for easier HOC creation.
  4939. // they need to be reactive so that HOCs using them are always updated
  4940. var parentData = parentVnode && parentVnode.data;
  4941. /* istanbul ignore else */
  4942. if (true) {
  4943. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  4944. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  4945. }, true);
  4946. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  4947. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  4948. }, true);
  4949. } else {}
  4950. }
  4951. var currentRenderingInstance = null;
  4952. function renderMixin (Vue) {
  4953. // install runtime convenience helpers
  4954. installRenderHelpers(Vue.prototype);
  4955. Vue.prototype.$nextTick = function (fn) {
  4956. return nextTick(fn, this)
  4957. };
  4958. Vue.prototype._render = function () {
  4959. var vm = this;
  4960. var ref = vm.$options;
  4961. var render = ref.render;
  4962. var _parentVnode = ref._parentVnode;
  4963. if (_parentVnode) {
  4964. vm.$scopedSlots = normalizeScopedSlots(
  4965. _parentVnode.data.scopedSlots,
  4966. vm.$slots,
  4967. vm.$scopedSlots
  4968. );
  4969. }
  4970. // set parent vnode. this allows render functions to have access
  4971. // to the data on the placeholder node.
  4972. vm.$vnode = _parentVnode;
  4973. // render self
  4974. var vnode;
  4975. try {
  4976. // There's no need to maintain a stack because all render fns are called
  4977. // separately from one another. Nested component's render fns are called
  4978. // when parent component is patched.
  4979. currentRenderingInstance = vm;
  4980. vnode = render.call(vm._renderProxy, vm.$createElement);
  4981. } catch (e) {
  4982. handleError(e, vm, "render");
  4983. // return error render result,
  4984. // or previous vnode to prevent render error causing blank component
  4985. /* istanbul ignore else */
  4986. if ( true && vm.$options.renderError) {
  4987. try {
  4988. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  4989. } catch (e) {
  4990. handleError(e, vm, "renderError");
  4991. vnode = vm._vnode;
  4992. }
  4993. } else {
  4994. vnode = vm._vnode;
  4995. }
  4996. } finally {
  4997. currentRenderingInstance = null;
  4998. }
  4999. // if the returned array contains only a single node, allow it
  5000. if (Array.isArray(vnode) && vnode.length === 1) {
  5001. vnode = vnode[0];
  5002. }
  5003. // return empty vnode in case the render function errored out
  5004. if (!(vnode instanceof VNode)) {
  5005. if ( true && Array.isArray(vnode)) {
  5006. warn(
  5007. 'Multiple root nodes returned from render function. Render function ' +
  5008. 'should return a single root node.',
  5009. vm
  5010. );
  5011. }
  5012. vnode = createEmptyVNode();
  5013. }
  5014. // set parent
  5015. vnode.parent = _parentVnode;
  5016. return vnode
  5017. };
  5018. }
  5019. /* */
  5020. function ensureCtor (comp, base) {
  5021. if (
  5022. comp.__esModule ||
  5023. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  5024. ) {
  5025. comp = comp.default;
  5026. }
  5027. return isObject(comp)
  5028. ? base.extend(comp)
  5029. : comp
  5030. }
  5031. function createAsyncPlaceholder (
  5032. factory,
  5033. data,
  5034. context,
  5035. children,
  5036. tag
  5037. ) {
  5038. var node = createEmptyVNode();
  5039. node.asyncFactory = factory;
  5040. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  5041. return node
  5042. }
  5043. function resolveAsyncComponent (
  5044. factory,
  5045. baseCtor
  5046. ) {
  5047. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  5048. return factory.errorComp
  5049. }
  5050. if (isDef(factory.resolved)) {
  5051. return factory.resolved
  5052. }
  5053. var owner = currentRenderingInstance;
  5054. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  5055. // already pending
  5056. factory.owners.push(owner);
  5057. }
  5058. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  5059. return factory.loadingComp
  5060. }
  5061. if (owner && !isDef(factory.owners)) {
  5062. var owners = factory.owners = [owner];
  5063. var sync = true;
  5064. var timerLoading = null;
  5065. var timerTimeout = null
  5066. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  5067. var forceRender = function (renderCompleted) {
  5068. for (var i = 0, l = owners.length; i < l; i++) {
  5069. (owners[i]).$forceUpdate();
  5070. }
  5071. if (renderCompleted) {
  5072. owners.length = 0;
  5073. if (timerLoading !== null) {
  5074. clearTimeout(timerLoading);
  5075. timerLoading = null;
  5076. }
  5077. if (timerTimeout !== null) {
  5078. clearTimeout(timerTimeout);
  5079. timerTimeout = null;
  5080. }
  5081. }
  5082. };
  5083. var resolve = once(function (res) {
  5084. // cache resolved
  5085. factory.resolved = ensureCtor(res, baseCtor);
  5086. // invoke callbacks only if this is not a synchronous resolve
  5087. // (async resolves are shimmed as synchronous during SSR)
  5088. if (!sync) {
  5089. forceRender(true);
  5090. } else {
  5091. owners.length = 0;
  5092. }
  5093. });
  5094. var reject = once(function (reason) {
  5095. true && warn(
  5096. "Failed to resolve async component: " + (String(factory)) +
  5097. (reason ? ("\nReason: " + reason) : '')
  5098. );
  5099. if (isDef(factory.errorComp)) {
  5100. factory.error = true;
  5101. forceRender(true);
  5102. }
  5103. });
  5104. var res = factory(resolve, reject);
  5105. if (isObject(res)) {
  5106. if (isPromise(res)) {
  5107. // () => Promise
  5108. if (isUndef(factory.resolved)) {
  5109. res.then(resolve, reject);
  5110. }
  5111. } else if (isPromise(res.component)) {
  5112. res.component.then(resolve, reject);
  5113. if (isDef(res.error)) {
  5114. factory.errorComp = ensureCtor(res.error, baseCtor);
  5115. }
  5116. if (isDef(res.loading)) {
  5117. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  5118. if (res.delay === 0) {
  5119. factory.loading = true;
  5120. } else {
  5121. timerLoading = setTimeout(function () {
  5122. timerLoading = null;
  5123. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  5124. factory.loading = true;
  5125. forceRender(false);
  5126. }
  5127. }, res.delay || 200);
  5128. }
  5129. }
  5130. if (isDef(res.timeout)) {
  5131. timerTimeout = setTimeout(function () {
  5132. timerTimeout = null;
  5133. if (isUndef(factory.resolved)) {
  5134. reject(
  5135. true
  5136. ? ("timeout (" + (res.timeout) + "ms)")
  5137. : undefined
  5138. );
  5139. }
  5140. }, res.timeout);
  5141. }
  5142. }
  5143. }
  5144. sync = false;
  5145. // return in case resolved synchronously
  5146. return factory.loading
  5147. ? factory.loadingComp
  5148. : factory.resolved
  5149. }
  5150. }
  5151. /* */
  5152. function isAsyncPlaceholder (node) {
  5153. return node.isComment && node.asyncFactory
  5154. }
  5155. /* */
  5156. function getFirstComponentChild (children) {
  5157. if (Array.isArray(children)) {
  5158. for (var i = 0; i < children.length; i++) {
  5159. var c = children[i];
  5160. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  5161. return c
  5162. }
  5163. }
  5164. }
  5165. }
  5166. /* */
  5167. /* */
  5168. function initEvents (vm) {
  5169. vm._events = Object.create(null);
  5170. vm._hasHookEvent = false;
  5171. // init parent attached events
  5172. var listeners = vm.$options._parentListeners;
  5173. if (listeners) {
  5174. updateComponentListeners(vm, listeners);
  5175. }
  5176. }
  5177. var target;
  5178. function add (event, fn) {
  5179. target.$on(event, fn);
  5180. }
  5181. function remove$1 (event, fn) {
  5182. target.$off(event, fn);
  5183. }
  5184. function createOnceHandler (event, fn) {
  5185. var _target = target;
  5186. return function onceHandler () {
  5187. var res = fn.apply(null, arguments);
  5188. if (res !== null) {
  5189. _target.$off(event, onceHandler);
  5190. }
  5191. }
  5192. }
  5193. function updateComponentListeners (
  5194. vm,
  5195. listeners,
  5196. oldListeners
  5197. ) {
  5198. target = vm;
  5199. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  5200. target = undefined;
  5201. }
  5202. function eventsMixin (Vue) {
  5203. var hookRE = /^hook:/;
  5204. Vue.prototype.$on = function (event, fn) {
  5205. var vm = this;
  5206. if (Array.isArray(event)) {
  5207. for (var i = 0, l = event.length; i < l; i++) {
  5208. vm.$on(event[i], fn);
  5209. }
  5210. } else {
  5211. (vm._events[event] || (vm._events[event] = [])).push(fn);
  5212. // optimize hook:event cost by using a boolean flag marked at registration
  5213. // instead of a hash lookup
  5214. if (hookRE.test(event)) {
  5215. vm._hasHookEvent = true;
  5216. }
  5217. }
  5218. return vm
  5219. };
  5220. Vue.prototype.$once = function (event, fn) {
  5221. var vm = this;
  5222. function on () {
  5223. vm.$off(event, on);
  5224. fn.apply(vm, arguments);
  5225. }
  5226. on.fn = fn;
  5227. vm.$on(event, on);
  5228. return vm
  5229. };
  5230. Vue.prototype.$off = function (event, fn) {
  5231. var vm = this;
  5232. // all
  5233. if (!arguments.length) {
  5234. vm._events = Object.create(null);
  5235. return vm
  5236. }
  5237. // array of events
  5238. if (Array.isArray(event)) {
  5239. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  5240. vm.$off(event[i$1], fn);
  5241. }
  5242. return vm
  5243. }
  5244. // specific event
  5245. var cbs = vm._events[event];
  5246. if (!cbs) {
  5247. return vm
  5248. }
  5249. if (!fn) {
  5250. vm._events[event] = null;
  5251. return vm
  5252. }
  5253. // specific handler
  5254. var cb;
  5255. var i = cbs.length;
  5256. while (i--) {
  5257. cb = cbs[i];
  5258. if (cb === fn || cb.fn === fn) {
  5259. cbs.splice(i, 1);
  5260. break
  5261. }
  5262. }
  5263. return vm
  5264. };
  5265. Vue.prototype.$emit = function (event) {
  5266. var vm = this;
  5267. if (true) {
  5268. var lowerCaseEvent = event.toLowerCase();
  5269. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  5270. tip(
  5271. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  5272. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  5273. "Note that HTML attributes are case-insensitive and you cannot use " +
  5274. "v-on to listen to camelCase events when using in-DOM templates. " +
  5275. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  5276. );
  5277. }
  5278. }
  5279. var cbs = vm._events[event];
  5280. if (cbs) {
  5281. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  5282. var args = toArray(arguments, 1);
  5283. var info = "event handler for \"" + event + "\"";
  5284. for (var i = 0, l = cbs.length; i < l; i++) {
  5285. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  5286. }
  5287. }
  5288. return vm
  5289. };
  5290. }
  5291. /* */
  5292. var activeInstance = null;
  5293. var isUpdatingChildComponent = false;
  5294. function setActiveInstance(vm) {
  5295. var prevActiveInstance = activeInstance;
  5296. activeInstance = vm;
  5297. return function () {
  5298. activeInstance = prevActiveInstance;
  5299. }
  5300. }
  5301. function initLifecycle (vm) {
  5302. var options = vm.$options;
  5303. // locate first non-abstract parent
  5304. var parent = options.parent;
  5305. if (parent && !options.abstract) {
  5306. while (parent.$options.abstract && parent.$parent) {
  5307. parent = parent.$parent;
  5308. }
  5309. parent.$children.push(vm);
  5310. }
  5311. vm.$parent = parent;
  5312. vm.$root = parent ? parent.$root : vm;
  5313. vm.$children = [];
  5314. vm.$refs = {};
  5315. vm._watcher = null;
  5316. vm._inactive = null;
  5317. vm._directInactive = false;
  5318. vm._isMounted = false;
  5319. vm._isDestroyed = false;
  5320. vm._isBeingDestroyed = false;
  5321. }
  5322. function lifecycleMixin (Vue) {
  5323. Vue.prototype._update = function (vnode, hydrating) {
  5324. var vm = this;
  5325. var prevEl = vm.$el;
  5326. var prevVnode = vm._vnode;
  5327. var restoreActiveInstance = setActiveInstance(vm);
  5328. vm._vnode = vnode;
  5329. // Vue.prototype.__patch__ is injected in entry points
  5330. // based on the rendering backend used.
  5331. if (!prevVnode) {
  5332. // initial render
  5333. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  5334. } else {
  5335. // updates
  5336. vm.$el = vm.__patch__(prevVnode, vnode);
  5337. }
  5338. restoreActiveInstance();
  5339. // update __vue__ reference
  5340. if (prevEl) {
  5341. prevEl.__vue__ = null;
  5342. }
  5343. if (vm.$el) {
  5344. vm.$el.__vue__ = vm;
  5345. }
  5346. // if parent is an HOC, update its $el as well
  5347. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  5348. vm.$parent.$el = vm.$el;
  5349. }
  5350. // updated hook is called by the scheduler to ensure that children are
  5351. // updated in a parent's updated hook.
  5352. };
  5353. Vue.prototype.$forceUpdate = function () {
  5354. var vm = this;
  5355. if (vm._watcher) {
  5356. vm._watcher.update();
  5357. }
  5358. };
  5359. Vue.prototype.$destroy = function () {
  5360. var vm = this;
  5361. if (vm._isBeingDestroyed) {
  5362. return
  5363. }
  5364. callHook(vm, 'beforeDestroy');
  5365. vm._isBeingDestroyed = true;
  5366. // remove self from parent
  5367. var parent = vm.$parent;
  5368. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  5369. remove(parent.$children, vm);
  5370. }
  5371. // teardown watchers
  5372. if (vm._watcher) {
  5373. vm._watcher.teardown();
  5374. }
  5375. var i = vm._watchers.length;
  5376. while (i--) {
  5377. vm._watchers[i].teardown();
  5378. }
  5379. // remove reference from data ob
  5380. // frozen object may not have observer.
  5381. if (vm._data.__ob__) {
  5382. vm._data.__ob__.vmCount--;
  5383. }
  5384. // call the last hook...
  5385. vm._isDestroyed = true;
  5386. // invoke destroy hooks on current rendered tree
  5387. vm.__patch__(vm._vnode, null);
  5388. // fire destroyed hook
  5389. callHook(vm, 'destroyed');
  5390. // turn off all instance listeners.
  5391. vm.$off();
  5392. // remove __vue__ reference
  5393. if (vm.$el) {
  5394. vm.$el.__vue__ = null;
  5395. }
  5396. // release circular reference (#6759)
  5397. if (vm.$vnode) {
  5398. vm.$vnode.parent = null;
  5399. }
  5400. };
  5401. }
  5402. function updateChildComponent (
  5403. vm,
  5404. propsData,
  5405. listeners,
  5406. parentVnode,
  5407. renderChildren
  5408. ) {
  5409. if (true) {
  5410. isUpdatingChildComponent = true;
  5411. }
  5412. // determine whether component has slot children
  5413. // we need to do this before overwriting $options._renderChildren.
  5414. // check if there are dynamic scopedSlots (hand-written or compiled but with
  5415. // dynamic slot names). Static scoped slots compiled from template has the
  5416. // "$stable" marker.
  5417. var newScopedSlots = parentVnode.data.scopedSlots;
  5418. var oldScopedSlots = vm.$scopedSlots;
  5419. var hasDynamicScopedSlot = !!(
  5420. (newScopedSlots && !newScopedSlots.$stable) ||
  5421. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  5422. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  5423. );
  5424. // Any static slot children from the parent may have changed during parent's
  5425. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  5426. // update is necessary to ensure correctness.
  5427. var needsForceUpdate = !!(
  5428. renderChildren || // has new static slots
  5429. vm.$options._renderChildren || // has old static slots
  5430. hasDynamicScopedSlot
  5431. );
  5432. vm.$options._parentVnode = parentVnode;
  5433. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  5434. if (vm._vnode) { // update child tree's parent
  5435. vm._vnode.parent = parentVnode;
  5436. }
  5437. vm.$options._renderChildren = renderChildren;
  5438. // update $attrs and $listeners hash
  5439. // these are also reactive so they may trigger child update if the child
  5440. // used them during render
  5441. vm.$attrs = parentVnode.data.attrs || emptyObject;
  5442. vm.$listeners = listeners || emptyObject;
  5443. // update props
  5444. if (propsData && vm.$options.props) {
  5445. toggleObserving(false);
  5446. var props = vm._props;
  5447. var propKeys = vm.$options._propKeys || [];
  5448. for (var i = 0; i < propKeys.length; i++) {
  5449. var key = propKeys[i];
  5450. var propOptions = vm.$options.props; // wtf flow?
  5451. props[key] = validateProp(key, propOptions, propsData, vm);
  5452. }
  5453. toggleObserving(true);
  5454. // keep a copy of raw propsData
  5455. vm.$options.propsData = propsData;
  5456. }
  5457. // fixed by xxxxxx update properties(mp runtime)
  5458. vm._$updateProperties && vm._$updateProperties(vm);
  5459. // update listeners
  5460. listeners = listeners || emptyObject;
  5461. var oldListeners = vm.$options._parentListeners;
  5462. vm.$options._parentListeners = listeners;
  5463. updateComponentListeners(vm, listeners, oldListeners);
  5464. // resolve slots + force update if has children
  5465. if (needsForceUpdate) {
  5466. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  5467. vm.$forceUpdate();
  5468. }
  5469. if (true) {
  5470. isUpdatingChildComponent = false;
  5471. }
  5472. }
  5473. function isInInactiveTree (vm) {
  5474. while (vm && (vm = vm.$parent)) {
  5475. if (vm._inactive) { return true }
  5476. }
  5477. return false
  5478. }
  5479. function activateChildComponent (vm, direct) {
  5480. if (direct) {
  5481. vm._directInactive = false;
  5482. if (isInInactiveTree(vm)) {
  5483. return
  5484. }
  5485. } else if (vm._directInactive) {
  5486. return
  5487. }
  5488. if (vm._inactive || vm._inactive === null) {
  5489. vm._inactive = false;
  5490. for (var i = 0; i < vm.$children.length; i++) {
  5491. activateChildComponent(vm.$children[i]);
  5492. }
  5493. callHook(vm, 'activated');
  5494. }
  5495. }
  5496. function deactivateChildComponent (vm, direct) {
  5497. if (direct) {
  5498. vm._directInactive = true;
  5499. if (isInInactiveTree(vm)) {
  5500. return
  5501. }
  5502. }
  5503. if (!vm._inactive) {
  5504. vm._inactive = true;
  5505. for (var i = 0; i < vm.$children.length; i++) {
  5506. deactivateChildComponent(vm.$children[i]);
  5507. }
  5508. callHook(vm, 'deactivated');
  5509. }
  5510. }
  5511. function callHook (vm, hook) {
  5512. // #7573 disable dep collection when invoking lifecycle hooks
  5513. pushTarget();
  5514. var handlers = vm.$options[hook];
  5515. var info = hook + " hook";
  5516. if (handlers) {
  5517. for (var i = 0, j = handlers.length; i < j; i++) {
  5518. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  5519. }
  5520. }
  5521. if (vm._hasHookEvent) {
  5522. vm.$emit('hook:' + hook);
  5523. }
  5524. popTarget();
  5525. }
  5526. /* */
  5527. var MAX_UPDATE_COUNT = 100;
  5528. var queue = [];
  5529. var activatedChildren = [];
  5530. var has = {};
  5531. var circular = {};
  5532. var waiting = false;
  5533. var flushing = false;
  5534. var index = 0;
  5535. /**
  5536. * Reset the scheduler's state.
  5537. */
  5538. function resetSchedulerState () {
  5539. index = queue.length = activatedChildren.length = 0;
  5540. has = {};
  5541. if (true) {
  5542. circular = {};
  5543. }
  5544. waiting = flushing = false;
  5545. }
  5546. // Async edge case #6566 requires saving the timestamp when event listeners are
  5547. // attached. However, calling performance.now() has a perf overhead especially
  5548. // if the page has thousands of event listeners. Instead, we take a timestamp
  5549. // every time the scheduler flushes and use that for all event listeners
  5550. // attached during that flush.
  5551. var currentFlushTimestamp = 0;
  5552. // Async edge case fix requires storing an event listener's attach timestamp.
  5553. var getNow = Date.now;
  5554. // Determine what event timestamp the browser is using. Annoyingly, the
  5555. // timestamp can either be hi-res (relative to page load) or low-res
  5556. // (relative to UNIX epoch), so in order to compare time we have to use the
  5557. // same timestamp type when saving the flush timestamp.
  5558. // All IE versions use low-res event timestamps, and have problematic clock
  5559. // implementations (#9632)
  5560. if (inBrowser && !isIE) {
  5561. var performance = window.performance;
  5562. if (
  5563. performance &&
  5564. typeof performance.now === 'function' &&
  5565. getNow() > document.createEvent('Event').timeStamp
  5566. ) {
  5567. // if the event timestamp, although evaluated AFTER the Date.now(), is
  5568. // smaller than it, it means the event is using a hi-res timestamp,
  5569. // and we need to use the hi-res version for event listener timestamps as
  5570. // well.
  5571. getNow = function () { return performance.now(); };
  5572. }
  5573. }
  5574. /**
  5575. * Flush both queues and run the watchers.
  5576. */
  5577. function flushSchedulerQueue () {
  5578. currentFlushTimestamp = getNow();
  5579. flushing = true;
  5580. var watcher, id;
  5581. // Sort queue before flush.
  5582. // This ensures that:
  5583. // 1. Components are updated from parent to child. (because parent is always
  5584. // created before the child)
  5585. // 2. A component's user watchers are run before its render watcher (because
  5586. // user watchers are created before the render watcher)
  5587. // 3. If a component is destroyed during a parent component's watcher run,
  5588. // its watchers can be skipped.
  5589. queue.sort(function (a, b) { return a.id - b.id; });
  5590. // do not cache length because more watchers might be pushed
  5591. // as we run existing watchers
  5592. for (index = 0; index < queue.length; index++) {
  5593. watcher = queue[index];
  5594. if (watcher.before) {
  5595. watcher.before();
  5596. }
  5597. id = watcher.id;
  5598. has[id] = null;
  5599. watcher.run();
  5600. // in dev build, check and stop circular updates.
  5601. if ( true && has[id] != null) {
  5602. circular[id] = (circular[id] || 0) + 1;
  5603. if (circular[id] > MAX_UPDATE_COUNT) {
  5604. warn(
  5605. 'You may have an infinite update loop ' + (
  5606. watcher.user
  5607. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  5608. : "in a component render function."
  5609. ),
  5610. watcher.vm
  5611. );
  5612. break
  5613. }
  5614. }
  5615. }
  5616. // keep copies of post queues before resetting state
  5617. var activatedQueue = activatedChildren.slice();
  5618. var updatedQueue = queue.slice();
  5619. resetSchedulerState();
  5620. // call component updated and activated hooks
  5621. callActivatedHooks(activatedQueue);
  5622. callUpdatedHooks(updatedQueue);
  5623. // devtool hook
  5624. /* istanbul ignore if */
  5625. if (devtools && config.devtools) {
  5626. devtools.emit('flush');
  5627. }
  5628. }
  5629. function callUpdatedHooks (queue) {
  5630. var i = queue.length;
  5631. while (i--) {
  5632. var watcher = queue[i];
  5633. var vm = watcher.vm;
  5634. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  5635. callHook(vm, 'updated');
  5636. }
  5637. }
  5638. }
  5639. /**
  5640. * Queue a kept-alive component that was activated during patch.
  5641. * The queue will be processed after the entire tree has been patched.
  5642. */
  5643. function queueActivatedComponent (vm) {
  5644. // setting _inactive to false here so that a render function can
  5645. // rely on checking whether it's in an inactive tree (e.g. router-view)
  5646. vm._inactive = false;
  5647. activatedChildren.push(vm);
  5648. }
  5649. function callActivatedHooks (queue) {
  5650. for (var i = 0; i < queue.length; i++) {
  5651. queue[i]._inactive = true;
  5652. activateChildComponent(queue[i], true /* true */);
  5653. }
  5654. }
  5655. /**
  5656. * Push a watcher into the watcher queue.
  5657. * Jobs with duplicate IDs will be skipped unless it's
  5658. * pushed when the queue is being flushed.
  5659. */
  5660. function queueWatcher (watcher) {
  5661. var id = watcher.id;
  5662. if (has[id] == null) {
  5663. has[id] = true;
  5664. if (!flushing) {
  5665. queue.push(watcher);
  5666. } else {
  5667. // if already flushing, splice the watcher based on its id
  5668. // if already past its id, it will be run next immediately.
  5669. var i = queue.length - 1;
  5670. while (i > index && queue[i].id > watcher.id) {
  5671. i--;
  5672. }
  5673. queue.splice(i + 1, 0, watcher);
  5674. }
  5675. // queue the flush
  5676. if (!waiting) {
  5677. waiting = true;
  5678. if ( true && !config.async) {
  5679. flushSchedulerQueue();
  5680. return
  5681. }
  5682. nextTick(flushSchedulerQueue);
  5683. }
  5684. }
  5685. }
  5686. /* */
  5687. var uid$2 = 0;
  5688. /**
  5689. * A watcher parses an expression, collects dependencies,
  5690. * and fires callback when the expression value changes.
  5691. * This is used for both the $watch() api and directives.
  5692. */
  5693. var Watcher = function Watcher (
  5694. vm,
  5695. expOrFn,
  5696. cb,
  5697. options,
  5698. isRenderWatcher
  5699. ) {
  5700. this.vm = vm;
  5701. if (isRenderWatcher) {
  5702. vm._watcher = this;
  5703. }
  5704. vm._watchers.push(this);
  5705. // options
  5706. if (options) {
  5707. this.deep = !!options.deep;
  5708. this.user = !!options.user;
  5709. this.lazy = !!options.lazy;
  5710. this.sync = !!options.sync;
  5711. this.before = options.before;
  5712. } else {
  5713. this.deep = this.user = this.lazy = this.sync = false;
  5714. }
  5715. this.cb = cb;
  5716. this.id = ++uid$2; // uid for batching
  5717. this.active = true;
  5718. this.dirty = this.lazy; // for lazy watchers
  5719. this.deps = [];
  5720. this.newDeps = [];
  5721. this.depIds = new _Set();
  5722. this.newDepIds = new _Set();
  5723. this.expression = true
  5724. ? expOrFn.toString()
  5725. : undefined;
  5726. // parse expression for getter
  5727. if (typeof expOrFn === 'function') {
  5728. this.getter = expOrFn;
  5729. } else {
  5730. this.getter = parsePath(expOrFn);
  5731. if (!this.getter) {
  5732. this.getter = noop;
  5733. true && warn(
  5734. "Failed watching path: \"" + expOrFn + "\" " +
  5735. 'Watcher only accepts simple dot-delimited paths. ' +
  5736. 'For full control, use a function instead.',
  5737. vm
  5738. );
  5739. }
  5740. }
  5741. this.value = this.lazy
  5742. ? undefined
  5743. : this.get();
  5744. };
  5745. /**
  5746. * Evaluate the getter, and re-collect dependencies.
  5747. */
  5748. Watcher.prototype.get = function get () {
  5749. pushTarget(this);
  5750. var value;
  5751. var vm = this.vm;
  5752. try {
  5753. value = this.getter.call(vm, vm);
  5754. } catch (e) {
  5755. if (this.user) {
  5756. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  5757. } else {
  5758. throw e
  5759. }
  5760. } finally {
  5761. // "touch" every property so they are all tracked as
  5762. // dependencies for deep watching
  5763. if (this.deep) {
  5764. traverse(value);
  5765. }
  5766. popTarget();
  5767. this.cleanupDeps();
  5768. }
  5769. return value
  5770. };
  5771. /**
  5772. * Add a dependency to this directive.
  5773. */
  5774. Watcher.prototype.addDep = function addDep (dep) {
  5775. var id = dep.id;
  5776. if (!this.newDepIds.has(id)) {
  5777. this.newDepIds.add(id);
  5778. this.newDeps.push(dep);
  5779. if (!this.depIds.has(id)) {
  5780. dep.addSub(this);
  5781. }
  5782. }
  5783. };
  5784. /**
  5785. * Clean up for dependency collection.
  5786. */
  5787. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  5788. var i = this.deps.length;
  5789. while (i--) {
  5790. var dep = this.deps[i];
  5791. if (!this.newDepIds.has(dep.id)) {
  5792. dep.removeSub(this);
  5793. }
  5794. }
  5795. var tmp = this.depIds;
  5796. this.depIds = this.newDepIds;
  5797. this.newDepIds = tmp;
  5798. this.newDepIds.clear();
  5799. tmp = this.deps;
  5800. this.deps = this.newDeps;
  5801. this.newDeps = tmp;
  5802. this.newDeps.length = 0;
  5803. };
  5804. /**
  5805. * Subscriber interface.
  5806. * Will be called when a dependency changes.
  5807. */
  5808. Watcher.prototype.update = function update () {
  5809. /* istanbul ignore else */
  5810. if (this.lazy) {
  5811. this.dirty = true;
  5812. } else if (this.sync) {
  5813. this.run();
  5814. } else {
  5815. queueWatcher(this);
  5816. }
  5817. };
  5818. /**
  5819. * Scheduler job interface.
  5820. * Will be called by the scheduler.
  5821. */
  5822. Watcher.prototype.run = function run () {
  5823. if (this.active) {
  5824. var value = this.get();
  5825. if (
  5826. value !== this.value ||
  5827. // Deep watchers and watchers on Object/Arrays should fire even
  5828. // when the value is the same, because the value may
  5829. // have mutated.
  5830. isObject(value) ||
  5831. this.deep
  5832. ) {
  5833. // set new value
  5834. var oldValue = this.value;
  5835. this.value = value;
  5836. if (this.user) {
  5837. try {
  5838. this.cb.call(this.vm, value, oldValue);
  5839. } catch (e) {
  5840. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  5841. }
  5842. } else {
  5843. this.cb.call(this.vm, value, oldValue);
  5844. }
  5845. }
  5846. }
  5847. };
  5848. /**
  5849. * Evaluate the value of the watcher.
  5850. * This only gets called for lazy watchers.
  5851. */
  5852. Watcher.prototype.evaluate = function evaluate () {
  5853. this.value = this.get();
  5854. this.dirty = false;
  5855. };
  5856. /**
  5857. * Depend on all deps collected by this watcher.
  5858. */
  5859. Watcher.prototype.depend = function depend () {
  5860. var i = this.deps.length;
  5861. while (i--) {
  5862. this.deps[i].depend();
  5863. }
  5864. };
  5865. /**
  5866. * Remove self from all dependencies' subscriber list.
  5867. */
  5868. Watcher.prototype.teardown = function teardown () {
  5869. if (this.active) {
  5870. // remove self from vm's watcher list
  5871. // this is a somewhat expensive operation so we skip it
  5872. // if the vm is being destroyed.
  5873. if (!this.vm._isBeingDestroyed) {
  5874. remove(this.vm._watchers, this);
  5875. }
  5876. var i = this.deps.length;
  5877. while (i--) {
  5878. this.deps[i].removeSub(this);
  5879. }
  5880. this.active = false;
  5881. }
  5882. };
  5883. /* */
  5884. var sharedPropertyDefinition = {
  5885. enumerable: true,
  5886. configurable: true,
  5887. get: noop,
  5888. set: noop
  5889. };
  5890. function proxy (target, sourceKey, key) {
  5891. sharedPropertyDefinition.get = function proxyGetter () {
  5892. return this[sourceKey][key]
  5893. };
  5894. sharedPropertyDefinition.set = function proxySetter (val) {
  5895. this[sourceKey][key] = val;
  5896. };
  5897. Object.defineProperty(target, key, sharedPropertyDefinition);
  5898. }
  5899. function initState (vm) {
  5900. vm._watchers = [];
  5901. var opts = vm.$options;
  5902. if (opts.props) { initProps(vm, opts.props); }
  5903. if (opts.methods) { initMethods(vm, opts.methods); }
  5904. if (opts.data) {
  5905. initData(vm);
  5906. } else {
  5907. observe(vm._data = {}, true /* asRootData */);
  5908. }
  5909. if (opts.computed) { initComputed(vm, opts.computed); }
  5910. if (opts.watch && opts.watch !== nativeWatch) {
  5911. initWatch(vm, opts.watch);
  5912. }
  5913. }
  5914. function initProps (vm, propsOptions) {
  5915. var propsData = vm.$options.propsData || {};
  5916. var props = vm._props = {};
  5917. // cache prop keys so that future props updates can iterate using Array
  5918. // instead of dynamic object key enumeration.
  5919. var keys = vm.$options._propKeys = [];
  5920. var isRoot = !vm.$parent;
  5921. // root instance props should be converted
  5922. if (!isRoot) {
  5923. toggleObserving(false);
  5924. }
  5925. var loop = function ( key ) {
  5926. keys.push(key);
  5927. var value = validateProp(key, propsOptions, propsData, vm);
  5928. /* istanbul ignore else */
  5929. if (true) {
  5930. var hyphenatedKey = hyphenate(key);
  5931. if (isReservedAttribute(hyphenatedKey) ||
  5932. config.isReservedAttr(hyphenatedKey)) {
  5933. warn(
  5934. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  5935. vm
  5936. );
  5937. }
  5938. defineReactive$$1(props, key, value, function () {
  5939. if (!isRoot && !isUpdatingChildComponent) {
  5940. {
  5941. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou'){//百度、快手 observer 在 setData callback 之后触发,直接忽略该 warn
  5942. return
  5943. }
  5944. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  5945. if(
  5946. key === 'value' &&
  5947. Array.isArray(vm.$options.behaviors) &&
  5948. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  5949. ){
  5950. return
  5951. }
  5952. if(vm._getFormData){
  5953. return
  5954. }
  5955. var $parent = vm.$parent;
  5956. while($parent){
  5957. if($parent.__next_tick_pending){
  5958. return
  5959. }
  5960. $parent = $parent.$parent;
  5961. }
  5962. }
  5963. warn(
  5964. "Avoid mutating a prop directly since the value will be " +
  5965. "overwritten whenever the parent component re-renders. " +
  5966. "Instead, use a data or computed property based on the prop's " +
  5967. "value. Prop being mutated: \"" + key + "\"",
  5968. vm
  5969. );
  5970. }
  5971. });
  5972. } else {}
  5973. // static props are already proxied on the component's prototype
  5974. // during Vue.extend(). We only need to proxy props defined at
  5975. // instantiation here.
  5976. if (!(key in vm)) {
  5977. proxy(vm, "_props", key);
  5978. }
  5979. };
  5980. for (var key in propsOptions) loop( key );
  5981. toggleObserving(true);
  5982. }
  5983. function initData (vm) {
  5984. var data = vm.$options.data;
  5985. data = vm._data = typeof data === 'function'
  5986. ? getData(data, vm)
  5987. : data || {};
  5988. if (!isPlainObject(data)) {
  5989. data = {};
  5990. true && warn(
  5991. 'data functions should return an object:\n' +
  5992. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  5993. vm
  5994. );
  5995. }
  5996. // proxy data on instance
  5997. var keys = Object.keys(data);
  5998. var props = vm.$options.props;
  5999. var methods = vm.$options.methods;
  6000. var i = keys.length;
  6001. while (i--) {
  6002. var key = keys[i];
  6003. if (true) {
  6004. if (methods && hasOwn(methods, key)) {
  6005. warn(
  6006. ("Method \"" + key + "\" has already been defined as a data property."),
  6007. vm
  6008. );
  6009. }
  6010. }
  6011. if (props && hasOwn(props, key)) {
  6012. true && warn(
  6013. "The data property \"" + key + "\" is already declared as a prop. " +
  6014. "Use prop default value instead.",
  6015. vm
  6016. );
  6017. } else if (!isReserved(key)) {
  6018. proxy(vm, "_data", key);
  6019. }
  6020. }
  6021. // observe data
  6022. observe(data, true /* asRootData */);
  6023. }
  6024. function getData (data, vm) {
  6025. // #7573 disable dep collection when invoking data getters
  6026. pushTarget();
  6027. try {
  6028. return data.call(vm, vm)
  6029. } catch (e) {
  6030. handleError(e, vm, "data()");
  6031. return {}
  6032. } finally {
  6033. popTarget();
  6034. }
  6035. }
  6036. var computedWatcherOptions = { lazy: true };
  6037. function initComputed (vm, computed) {
  6038. // $flow-disable-line
  6039. var watchers = vm._computedWatchers = Object.create(null);
  6040. // computed properties are just getters during SSR
  6041. var isSSR = isServerRendering();
  6042. for (var key in computed) {
  6043. var userDef = computed[key];
  6044. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  6045. if ( true && getter == null) {
  6046. warn(
  6047. ("Getter is missing for computed property \"" + key + "\"."),
  6048. vm
  6049. );
  6050. }
  6051. if (!isSSR) {
  6052. // create internal watcher for the computed property.
  6053. watchers[key] = new Watcher(
  6054. vm,
  6055. getter || noop,
  6056. noop,
  6057. computedWatcherOptions
  6058. );
  6059. }
  6060. // component-defined computed properties are already defined on the
  6061. // component prototype. We only need to define computed properties defined
  6062. // at instantiation here.
  6063. if (!(key in vm)) {
  6064. defineComputed(vm, key, userDef);
  6065. } else if (true) {
  6066. if (key in vm.$data) {
  6067. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  6068. } else if (vm.$options.props && key in vm.$options.props) {
  6069. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  6070. }
  6071. }
  6072. }
  6073. }
  6074. function defineComputed (
  6075. target,
  6076. key,
  6077. userDef
  6078. ) {
  6079. var shouldCache = !isServerRendering();
  6080. if (typeof userDef === 'function') {
  6081. sharedPropertyDefinition.get = shouldCache
  6082. ? createComputedGetter(key)
  6083. : createGetterInvoker(userDef);
  6084. sharedPropertyDefinition.set = noop;
  6085. } else {
  6086. sharedPropertyDefinition.get = userDef.get
  6087. ? shouldCache && userDef.cache !== false
  6088. ? createComputedGetter(key)
  6089. : createGetterInvoker(userDef.get)
  6090. : noop;
  6091. sharedPropertyDefinition.set = userDef.set || noop;
  6092. }
  6093. if ( true &&
  6094. sharedPropertyDefinition.set === noop) {
  6095. sharedPropertyDefinition.set = function () {
  6096. warn(
  6097. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  6098. this
  6099. );
  6100. };
  6101. }
  6102. Object.defineProperty(target, key, sharedPropertyDefinition);
  6103. }
  6104. function createComputedGetter (key) {
  6105. return function computedGetter () {
  6106. var watcher = this._computedWatchers && this._computedWatchers[key];
  6107. if (watcher) {
  6108. if (watcher.dirty) {
  6109. watcher.evaluate();
  6110. }
  6111. if (Dep.SharedObject.target) {// fixed by xxxxxx
  6112. watcher.depend();
  6113. }
  6114. return watcher.value
  6115. }
  6116. }
  6117. }
  6118. function createGetterInvoker(fn) {
  6119. return function computedGetter () {
  6120. return fn.call(this, this)
  6121. }
  6122. }
  6123. function initMethods (vm, methods) {
  6124. var props = vm.$options.props;
  6125. for (var key in methods) {
  6126. if (true) {
  6127. if (typeof methods[key] !== 'function') {
  6128. warn(
  6129. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  6130. "Did you reference the function correctly?",
  6131. vm
  6132. );
  6133. }
  6134. if (props && hasOwn(props, key)) {
  6135. warn(
  6136. ("Method \"" + key + "\" has already been defined as a prop."),
  6137. vm
  6138. );
  6139. }
  6140. if ((key in vm) && isReserved(key)) {
  6141. warn(
  6142. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  6143. "Avoid defining component methods that start with _ or $."
  6144. );
  6145. }
  6146. }
  6147. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  6148. }
  6149. }
  6150. function initWatch (vm, watch) {
  6151. for (var key in watch) {
  6152. var handler = watch[key];
  6153. if (Array.isArray(handler)) {
  6154. for (var i = 0; i < handler.length; i++) {
  6155. createWatcher(vm, key, handler[i]);
  6156. }
  6157. } else {
  6158. createWatcher(vm, key, handler);
  6159. }
  6160. }
  6161. }
  6162. function createWatcher (
  6163. vm,
  6164. expOrFn,
  6165. handler,
  6166. options
  6167. ) {
  6168. if (isPlainObject(handler)) {
  6169. options = handler;
  6170. handler = handler.handler;
  6171. }
  6172. if (typeof handler === 'string') {
  6173. handler = vm[handler];
  6174. }
  6175. return vm.$watch(expOrFn, handler, options)
  6176. }
  6177. function stateMixin (Vue) {
  6178. // flow somehow has problems with directly declared definition object
  6179. // when using Object.defineProperty, so we have to procedurally build up
  6180. // the object here.
  6181. var dataDef = {};
  6182. dataDef.get = function () { return this._data };
  6183. var propsDef = {};
  6184. propsDef.get = function () { return this._props };
  6185. if (true) {
  6186. dataDef.set = function () {
  6187. warn(
  6188. 'Avoid replacing instance root $data. ' +
  6189. 'Use nested data properties instead.',
  6190. this
  6191. );
  6192. };
  6193. propsDef.set = function () {
  6194. warn("$props is readonly.", this);
  6195. };
  6196. }
  6197. Object.defineProperty(Vue.prototype, '$data', dataDef);
  6198. Object.defineProperty(Vue.prototype, '$props', propsDef);
  6199. Vue.prototype.$set = set;
  6200. Vue.prototype.$delete = del;
  6201. Vue.prototype.$watch = function (
  6202. expOrFn,
  6203. cb,
  6204. options
  6205. ) {
  6206. var vm = this;
  6207. if (isPlainObject(cb)) {
  6208. return createWatcher(vm, expOrFn, cb, options)
  6209. }
  6210. options = options || {};
  6211. options.user = true;
  6212. var watcher = new Watcher(vm, expOrFn, cb, options);
  6213. if (options.immediate) {
  6214. try {
  6215. cb.call(vm, watcher.value);
  6216. } catch (error) {
  6217. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  6218. }
  6219. }
  6220. return function unwatchFn () {
  6221. watcher.teardown();
  6222. }
  6223. };
  6224. }
  6225. /* */
  6226. var uid$3 = 0;
  6227. function initMixin (Vue) {
  6228. Vue.prototype._init = function (options) {
  6229. var vm = this;
  6230. // a uid
  6231. vm._uid = uid$3++;
  6232. var startTag, endTag;
  6233. /* istanbul ignore if */
  6234. if ( true && config.performance && mark) {
  6235. startTag = "vue-perf-start:" + (vm._uid);
  6236. endTag = "vue-perf-end:" + (vm._uid);
  6237. mark(startTag);
  6238. }
  6239. // a flag to avoid this being observed
  6240. vm._isVue = true;
  6241. // merge options
  6242. if (options && options._isComponent) {
  6243. // optimize internal component instantiation
  6244. // since dynamic options merging is pretty slow, and none of the
  6245. // internal component options needs special treatment.
  6246. initInternalComponent(vm, options);
  6247. } else {
  6248. vm.$options = mergeOptions(
  6249. resolveConstructorOptions(vm.constructor),
  6250. options || {},
  6251. vm
  6252. );
  6253. }
  6254. /* istanbul ignore else */
  6255. if (true) {
  6256. initProxy(vm);
  6257. } else {}
  6258. // expose real self
  6259. vm._self = vm;
  6260. initLifecycle(vm);
  6261. initEvents(vm);
  6262. initRender(vm);
  6263. callHook(vm, 'beforeCreate');
  6264. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  6265. initState(vm);
  6266. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  6267. !vm._$fallback && callHook(vm, 'created');
  6268. /* istanbul ignore if */
  6269. if ( true && config.performance && mark) {
  6270. vm._name = formatComponentName(vm, false);
  6271. mark(endTag);
  6272. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  6273. }
  6274. if (vm.$options.el) {
  6275. vm.$mount(vm.$options.el);
  6276. }
  6277. };
  6278. }
  6279. function initInternalComponent (vm, options) {
  6280. var opts = vm.$options = Object.create(vm.constructor.options);
  6281. // doing this because it's faster than dynamic enumeration.
  6282. var parentVnode = options._parentVnode;
  6283. opts.parent = options.parent;
  6284. opts._parentVnode = parentVnode;
  6285. var vnodeComponentOptions = parentVnode.componentOptions;
  6286. opts.propsData = vnodeComponentOptions.propsData;
  6287. opts._parentListeners = vnodeComponentOptions.listeners;
  6288. opts._renderChildren = vnodeComponentOptions.children;
  6289. opts._componentTag = vnodeComponentOptions.tag;
  6290. if (options.render) {
  6291. opts.render = options.render;
  6292. opts.staticRenderFns = options.staticRenderFns;
  6293. }
  6294. }
  6295. function resolveConstructorOptions (Ctor) {
  6296. var options = Ctor.options;
  6297. if (Ctor.super) {
  6298. var superOptions = resolveConstructorOptions(Ctor.super);
  6299. var cachedSuperOptions = Ctor.superOptions;
  6300. if (superOptions !== cachedSuperOptions) {
  6301. // super option changed,
  6302. // need to resolve new options.
  6303. Ctor.superOptions = superOptions;
  6304. // check if there are any late-modified/attached options (#4976)
  6305. var modifiedOptions = resolveModifiedOptions(Ctor);
  6306. // update base extend options
  6307. if (modifiedOptions) {
  6308. extend(Ctor.extendOptions, modifiedOptions);
  6309. }
  6310. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  6311. if (options.name) {
  6312. options.components[options.name] = Ctor;
  6313. }
  6314. }
  6315. }
  6316. return options
  6317. }
  6318. function resolveModifiedOptions (Ctor) {
  6319. var modified;
  6320. var latest = Ctor.options;
  6321. var sealed = Ctor.sealedOptions;
  6322. for (var key in latest) {
  6323. if (latest[key] !== sealed[key]) {
  6324. if (!modified) { modified = {}; }
  6325. modified[key] = latest[key];
  6326. }
  6327. }
  6328. return modified
  6329. }
  6330. function Vue (options) {
  6331. if ( true &&
  6332. !(this instanceof Vue)
  6333. ) {
  6334. warn('Vue is a constructor and should be called with the `new` keyword');
  6335. }
  6336. this._init(options);
  6337. }
  6338. initMixin(Vue);
  6339. stateMixin(Vue);
  6340. eventsMixin(Vue);
  6341. lifecycleMixin(Vue);
  6342. renderMixin(Vue);
  6343. /* */
  6344. function initUse (Vue) {
  6345. Vue.use = function (plugin) {
  6346. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  6347. if (installedPlugins.indexOf(plugin) > -1) {
  6348. return this
  6349. }
  6350. // additional parameters
  6351. var args = toArray(arguments, 1);
  6352. args.unshift(this);
  6353. if (typeof plugin.install === 'function') {
  6354. plugin.install.apply(plugin, args);
  6355. } else if (typeof plugin === 'function') {
  6356. plugin.apply(null, args);
  6357. }
  6358. installedPlugins.push(plugin);
  6359. return this
  6360. };
  6361. }
  6362. /* */
  6363. function initMixin$1 (Vue) {
  6364. Vue.mixin = function (mixin) {
  6365. this.options = mergeOptions(this.options, mixin);
  6366. return this
  6367. };
  6368. }
  6369. /* */
  6370. function initExtend (Vue) {
  6371. /**
  6372. * Each instance constructor, including Vue, has a unique
  6373. * cid. This enables us to create wrapped "child
  6374. * constructors" for prototypal inheritance and cache them.
  6375. */
  6376. Vue.cid = 0;
  6377. var cid = 1;
  6378. /**
  6379. * Class inheritance
  6380. */
  6381. Vue.extend = function (extendOptions) {
  6382. extendOptions = extendOptions || {};
  6383. var Super = this;
  6384. var SuperId = Super.cid;
  6385. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  6386. if (cachedCtors[SuperId]) {
  6387. return cachedCtors[SuperId]
  6388. }
  6389. var name = extendOptions.name || Super.options.name;
  6390. if ( true && name) {
  6391. validateComponentName(name);
  6392. }
  6393. var Sub = function VueComponent (options) {
  6394. this._init(options);
  6395. };
  6396. Sub.prototype = Object.create(Super.prototype);
  6397. Sub.prototype.constructor = Sub;
  6398. Sub.cid = cid++;
  6399. Sub.options = mergeOptions(
  6400. Super.options,
  6401. extendOptions
  6402. );
  6403. Sub['super'] = Super;
  6404. // For props and computed properties, we define the proxy getters on
  6405. // the Vue instances at extension time, on the extended prototype. This
  6406. // avoids Object.defineProperty calls for each instance created.
  6407. if (Sub.options.props) {
  6408. initProps$1(Sub);
  6409. }
  6410. if (Sub.options.computed) {
  6411. initComputed$1(Sub);
  6412. }
  6413. // allow further extension/mixin/plugin usage
  6414. Sub.extend = Super.extend;
  6415. Sub.mixin = Super.mixin;
  6416. Sub.use = Super.use;
  6417. // create asset registers, so extended classes
  6418. // can have their private assets too.
  6419. ASSET_TYPES.forEach(function (type) {
  6420. Sub[type] = Super[type];
  6421. });
  6422. // enable recursive self-lookup
  6423. if (name) {
  6424. Sub.options.components[name] = Sub;
  6425. }
  6426. // keep a reference to the super options at extension time.
  6427. // later at instantiation we can check if Super's options have
  6428. // been updated.
  6429. Sub.superOptions = Super.options;
  6430. Sub.extendOptions = extendOptions;
  6431. Sub.sealedOptions = extend({}, Sub.options);
  6432. // cache constructor
  6433. cachedCtors[SuperId] = Sub;
  6434. return Sub
  6435. };
  6436. }
  6437. function initProps$1 (Comp) {
  6438. var props = Comp.options.props;
  6439. for (var key in props) {
  6440. proxy(Comp.prototype, "_props", key);
  6441. }
  6442. }
  6443. function initComputed$1 (Comp) {
  6444. var computed = Comp.options.computed;
  6445. for (var key in computed) {
  6446. defineComputed(Comp.prototype, key, computed[key]);
  6447. }
  6448. }
  6449. /* */
  6450. function initAssetRegisters (Vue) {
  6451. /**
  6452. * Create asset registration methods.
  6453. */
  6454. ASSET_TYPES.forEach(function (type) {
  6455. Vue[type] = function (
  6456. id,
  6457. definition
  6458. ) {
  6459. if (!definition) {
  6460. return this.options[type + 's'][id]
  6461. } else {
  6462. /* istanbul ignore if */
  6463. if ( true && type === 'component') {
  6464. validateComponentName(id);
  6465. }
  6466. if (type === 'component' && isPlainObject(definition)) {
  6467. definition.name = definition.name || id;
  6468. definition = this.options._base.extend(definition);
  6469. }
  6470. if (type === 'directive' && typeof definition === 'function') {
  6471. definition = { bind: definition, update: definition };
  6472. }
  6473. this.options[type + 's'][id] = definition;
  6474. return definition
  6475. }
  6476. };
  6477. });
  6478. }
  6479. /* */
  6480. function getComponentName (opts) {
  6481. return opts && (opts.Ctor.options.name || opts.tag)
  6482. }
  6483. function matches (pattern, name) {
  6484. if (Array.isArray(pattern)) {
  6485. return pattern.indexOf(name) > -1
  6486. } else if (typeof pattern === 'string') {
  6487. return pattern.split(',').indexOf(name) > -1
  6488. } else if (isRegExp(pattern)) {
  6489. return pattern.test(name)
  6490. }
  6491. /* istanbul ignore next */
  6492. return false
  6493. }
  6494. function pruneCache (keepAliveInstance, filter) {
  6495. var cache = keepAliveInstance.cache;
  6496. var keys = keepAliveInstance.keys;
  6497. var _vnode = keepAliveInstance._vnode;
  6498. for (var key in cache) {
  6499. var cachedNode = cache[key];
  6500. if (cachedNode) {
  6501. var name = getComponentName(cachedNode.componentOptions);
  6502. if (name && !filter(name)) {
  6503. pruneCacheEntry(cache, key, keys, _vnode);
  6504. }
  6505. }
  6506. }
  6507. }
  6508. function pruneCacheEntry (
  6509. cache,
  6510. key,
  6511. keys,
  6512. current
  6513. ) {
  6514. var cached$$1 = cache[key];
  6515. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  6516. cached$$1.componentInstance.$destroy();
  6517. }
  6518. cache[key] = null;
  6519. remove(keys, key);
  6520. }
  6521. var patternTypes = [String, RegExp, Array];
  6522. var KeepAlive = {
  6523. name: 'keep-alive',
  6524. abstract: true,
  6525. props: {
  6526. include: patternTypes,
  6527. exclude: patternTypes,
  6528. max: [String, Number]
  6529. },
  6530. created: function created () {
  6531. this.cache = Object.create(null);
  6532. this.keys = [];
  6533. },
  6534. destroyed: function destroyed () {
  6535. for (var key in this.cache) {
  6536. pruneCacheEntry(this.cache, key, this.keys);
  6537. }
  6538. },
  6539. mounted: function mounted () {
  6540. var this$1 = this;
  6541. this.$watch('include', function (val) {
  6542. pruneCache(this$1, function (name) { return matches(val, name); });
  6543. });
  6544. this.$watch('exclude', function (val) {
  6545. pruneCache(this$1, function (name) { return !matches(val, name); });
  6546. });
  6547. },
  6548. render: function render () {
  6549. var slot = this.$slots.default;
  6550. var vnode = getFirstComponentChild(slot);
  6551. var componentOptions = vnode && vnode.componentOptions;
  6552. if (componentOptions) {
  6553. // check pattern
  6554. var name = getComponentName(componentOptions);
  6555. var ref = this;
  6556. var include = ref.include;
  6557. var exclude = ref.exclude;
  6558. if (
  6559. // not included
  6560. (include && (!name || !matches(include, name))) ||
  6561. // excluded
  6562. (exclude && name && matches(exclude, name))
  6563. ) {
  6564. return vnode
  6565. }
  6566. var ref$1 = this;
  6567. var cache = ref$1.cache;
  6568. var keys = ref$1.keys;
  6569. var key = vnode.key == null
  6570. // same constructor may get registered as different local components
  6571. // so cid alone is not enough (#3269)
  6572. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  6573. : vnode.key;
  6574. if (cache[key]) {
  6575. vnode.componentInstance = cache[key].componentInstance;
  6576. // make current key freshest
  6577. remove(keys, key);
  6578. keys.push(key);
  6579. } else {
  6580. cache[key] = vnode;
  6581. keys.push(key);
  6582. // prune oldest entry
  6583. if (this.max && keys.length > parseInt(this.max)) {
  6584. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  6585. }
  6586. }
  6587. vnode.data.keepAlive = true;
  6588. }
  6589. return vnode || (slot && slot[0])
  6590. }
  6591. };
  6592. var builtInComponents = {
  6593. KeepAlive: KeepAlive
  6594. };
  6595. /* */
  6596. function initGlobalAPI (Vue) {
  6597. // config
  6598. var configDef = {};
  6599. configDef.get = function () { return config; };
  6600. if (true) {
  6601. configDef.set = function () {
  6602. warn(
  6603. 'Do not replace the Vue.config object, set individual fields instead.'
  6604. );
  6605. };
  6606. }
  6607. Object.defineProperty(Vue, 'config', configDef);
  6608. // exposed util methods.
  6609. // NOTE: these are not considered part of the public API - avoid relying on
  6610. // them unless you are aware of the risk.
  6611. Vue.util = {
  6612. warn: warn,
  6613. extend: extend,
  6614. mergeOptions: mergeOptions,
  6615. defineReactive: defineReactive$$1
  6616. };
  6617. Vue.set = set;
  6618. Vue.delete = del;
  6619. Vue.nextTick = nextTick;
  6620. // 2.6 explicit observable API
  6621. Vue.observable = function (obj) {
  6622. observe(obj);
  6623. return obj
  6624. };
  6625. Vue.options = Object.create(null);
  6626. ASSET_TYPES.forEach(function (type) {
  6627. Vue.options[type + 's'] = Object.create(null);
  6628. });
  6629. // this is used to identify the "base" constructor to extend all plain-object
  6630. // components with in Weex's multi-instance scenarios.
  6631. Vue.options._base = Vue;
  6632. extend(Vue.options.components, builtInComponents);
  6633. initUse(Vue);
  6634. initMixin$1(Vue);
  6635. initExtend(Vue);
  6636. initAssetRegisters(Vue);
  6637. }
  6638. initGlobalAPI(Vue);
  6639. Object.defineProperty(Vue.prototype, '$isServer', {
  6640. get: isServerRendering
  6641. });
  6642. Object.defineProperty(Vue.prototype, '$ssrContext', {
  6643. get: function get () {
  6644. /* istanbul ignore next */
  6645. return this.$vnode && this.$vnode.ssrContext
  6646. }
  6647. });
  6648. // expose FunctionalRenderContext for ssr runtime helper installation
  6649. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  6650. value: FunctionalRenderContext
  6651. });
  6652. Vue.version = '2.6.11';
  6653. /**
  6654. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  6655. */
  6656. var ARRAYTYPE = '[object Array]';
  6657. var OBJECTTYPE = '[object Object]';
  6658. // const FUNCTIONTYPE = '[object Function]'
  6659. function diff(current, pre) {
  6660. var result = {};
  6661. syncKeys(current, pre);
  6662. _diff(current, pre, '', result);
  6663. return result
  6664. }
  6665. function syncKeys(current, pre) {
  6666. if (current === pre) { return }
  6667. var rootCurrentType = type(current);
  6668. var rootPreType = type(pre);
  6669. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  6670. if(Object.keys(current).length >= Object.keys(pre).length){
  6671. for (var key in pre) {
  6672. var currentValue = current[key];
  6673. if (currentValue === undefined) {
  6674. current[key] = null;
  6675. } else {
  6676. syncKeys(currentValue, pre[key]);
  6677. }
  6678. }
  6679. }
  6680. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  6681. if (current.length >= pre.length) {
  6682. pre.forEach(function (item, index) {
  6683. syncKeys(current[index], item);
  6684. });
  6685. }
  6686. }
  6687. }
  6688. function _diff(current, pre, path, result) {
  6689. if (current === pre) { return }
  6690. var rootCurrentType = type(current);
  6691. var rootPreType = type(pre);
  6692. if (rootCurrentType == OBJECTTYPE) {
  6693. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  6694. setResult(result, path, current);
  6695. } else {
  6696. var loop = function ( key ) {
  6697. var currentValue = current[key];
  6698. var preValue = pre[key];
  6699. var currentType = type(currentValue);
  6700. var preType = type(preValue);
  6701. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  6702. // NOTE 此处将 != 修改为 !==。涉及地方太多恐怕测试不到,如果出现数据对比问题,将其修改回来。
  6703. if (currentValue !== pre[key]) {
  6704. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6705. }
  6706. } else if (currentType == ARRAYTYPE) {
  6707. if (preType != ARRAYTYPE) {
  6708. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6709. } else {
  6710. if (currentValue.length < preValue.length) {
  6711. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6712. } else {
  6713. currentValue.forEach(function (item, index) {
  6714. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  6715. });
  6716. }
  6717. }
  6718. } else if (currentType == OBJECTTYPE) {
  6719. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  6720. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6721. } else {
  6722. for (var subKey in currentValue) {
  6723. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  6724. }
  6725. }
  6726. }
  6727. };
  6728. for (var key in current) loop( key );
  6729. }
  6730. } else if (rootCurrentType == ARRAYTYPE) {
  6731. if (rootPreType != ARRAYTYPE) {
  6732. setResult(result, path, current);
  6733. } else {
  6734. if (current.length < pre.length) {
  6735. setResult(result, path, current);
  6736. } else {
  6737. current.forEach(function (item, index) {
  6738. _diff(item, pre[index], path + '[' + index + ']', result);
  6739. });
  6740. }
  6741. }
  6742. } else {
  6743. setResult(result, path, current);
  6744. }
  6745. }
  6746. function setResult(result, k, v) {
  6747. // if (type(v) != FUNCTIONTYPE) {
  6748. result[k] = v;
  6749. // }
  6750. }
  6751. function type(obj) {
  6752. return Object.prototype.toString.call(obj)
  6753. }
  6754. /* */
  6755. function flushCallbacks$1(vm) {
  6756. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  6757. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"businessard","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  6758. var mpInstance = vm.$scope;
  6759. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  6760. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  6761. }
  6762. var copies = vm.__next_tick_callbacks.slice(0);
  6763. vm.__next_tick_callbacks.length = 0;
  6764. for (var i = 0; i < copies.length; i++) {
  6765. copies[i]();
  6766. }
  6767. }
  6768. }
  6769. function hasRenderWatcher(vm) {
  6770. return queue.find(function (watcher) { return vm._watcher === watcher; })
  6771. }
  6772. function nextTick$1(vm, cb) {
  6773. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  6774. //2.nextTick 之前存在 render watcher
  6775. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  6776. if(Object({"NODE_ENV":"development","VUE_APP_NAME":"businessard","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  6777. var mpInstance = vm.$scope;
  6778. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  6779. ']:nextVueTick');
  6780. }
  6781. return nextTick(cb, vm)
  6782. }else{
  6783. if(Object({"NODE_ENV":"development","VUE_APP_NAME":"businessard","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  6784. var mpInstance$1 = vm.$scope;
  6785. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  6786. ']:nextMPTick');
  6787. }
  6788. }
  6789. var _resolve;
  6790. if (!vm.__next_tick_callbacks) {
  6791. vm.__next_tick_callbacks = [];
  6792. }
  6793. vm.__next_tick_callbacks.push(function () {
  6794. if (cb) {
  6795. try {
  6796. cb.call(vm);
  6797. } catch (e) {
  6798. handleError(e, vm, 'nextTick');
  6799. }
  6800. } else if (_resolve) {
  6801. _resolve(vm);
  6802. }
  6803. });
  6804. // $flow-disable-line
  6805. if (!cb && typeof Promise !== 'undefined') {
  6806. return new Promise(function (resolve) {
  6807. _resolve = resolve;
  6808. })
  6809. }
  6810. }
  6811. /* */
  6812. function cloneWithData(vm) {
  6813. // 确保当前 vm 所有数据被同步
  6814. var ret = Object.create(null);
  6815. var dataKeys = [].concat(
  6816. Object.keys(vm._data || {}),
  6817. Object.keys(vm._computedWatchers || {}));
  6818. dataKeys.reduce(function(ret, key) {
  6819. ret[key] = vm[key];
  6820. return ret
  6821. }, ret);
  6822. // vue-composition-api
  6823. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  6824. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  6825. if (rawBindings) {
  6826. Object.keys(rawBindings).forEach(function (key) {
  6827. ret[key] = vm[key];
  6828. });
  6829. }
  6830. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  6831. Object.assign(ret, vm.$mp.data || {});
  6832. if (
  6833. Array.isArray(vm.$options.behaviors) &&
  6834. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  6835. ) { //form-field
  6836. ret['name'] = vm.name;
  6837. ret['value'] = vm.value;
  6838. }
  6839. return JSON.parse(JSON.stringify(ret))
  6840. }
  6841. var patch = function(oldVnode, vnode) {
  6842. var this$1 = this;
  6843. if (vnode === null) { //destroy
  6844. return
  6845. }
  6846. if (this.mpType === 'page' || this.mpType === 'component') {
  6847. var mpInstance = this.$scope;
  6848. var data = Object.create(null);
  6849. try {
  6850. data = cloneWithData(this);
  6851. } catch (err) {
  6852. console.error(err);
  6853. }
  6854. data.__webviewId__ = mpInstance.data.__webviewId__;
  6855. var mpData = Object.create(null);
  6856. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  6857. mpData[key] = mpInstance.data[key];
  6858. });
  6859. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  6860. if (Object.keys(diffData).length) {
  6861. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"businessard","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  6862. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  6863. ']差量更新',
  6864. JSON.stringify(diffData));
  6865. }
  6866. this.__next_tick_pending = true;
  6867. mpInstance.setData(diffData, function () {
  6868. this$1.__next_tick_pending = false;
  6869. flushCallbacks$1(this$1);
  6870. });
  6871. } else {
  6872. flushCallbacks$1(this);
  6873. }
  6874. }
  6875. };
  6876. /* */
  6877. function createEmptyRender() {
  6878. }
  6879. function mountComponent$1(
  6880. vm,
  6881. el,
  6882. hydrating
  6883. ) {
  6884. if (!vm.mpType) {//main.js 中的 new Vue
  6885. return vm
  6886. }
  6887. if (vm.mpType === 'app') {
  6888. vm.$options.render = createEmptyRender;
  6889. }
  6890. if (!vm.$options.render) {
  6891. vm.$options.render = createEmptyRender;
  6892. if (true) {
  6893. /* istanbul ignore if */
  6894. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  6895. vm.$options.el || el) {
  6896. warn(
  6897. 'You are using the runtime-only build of Vue where the template ' +
  6898. 'compiler is not available. Either pre-compile the templates into ' +
  6899. 'render functions, or use the compiler-included build.',
  6900. vm
  6901. );
  6902. } else {
  6903. warn(
  6904. 'Failed to mount component: template or render function not defined.',
  6905. vm
  6906. );
  6907. }
  6908. }
  6909. }
  6910. !vm._$fallback && callHook(vm, 'beforeMount');
  6911. var updateComponent = function () {
  6912. vm._update(vm._render(), hydrating);
  6913. };
  6914. // we set this to vm._watcher inside the watcher's constructor
  6915. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  6916. // component's mounted hook), which relies on vm._watcher being already defined
  6917. new Watcher(vm, updateComponent, noop, {
  6918. before: function before() {
  6919. if (vm._isMounted && !vm._isDestroyed) {
  6920. callHook(vm, 'beforeUpdate');
  6921. }
  6922. }
  6923. }, true /* isRenderWatcher */);
  6924. hydrating = false;
  6925. return vm
  6926. }
  6927. /* */
  6928. function renderClass (
  6929. staticClass,
  6930. dynamicClass
  6931. ) {
  6932. if (isDef(staticClass) || isDef(dynamicClass)) {
  6933. return concat(staticClass, stringifyClass(dynamicClass))
  6934. }
  6935. /* istanbul ignore next */
  6936. return ''
  6937. }
  6938. function concat (a, b) {
  6939. return a ? b ? (a + ' ' + b) : a : (b || '')
  6940. }
  6941. function stringifyClass (value) {
  6942. if (Array.isArray(value)) {
  6943. return stringifyArray(value)
  6944. }
  6945. if (isObject(value)) {
  6946. return stringifyObject(value)
  6947. }
  6948. if (typeof value === 'string') {
  6949. return value
  6950. }
  6951. /* istanbul ignore next */
  6952. return ''
  6953. }
  6954. function stringifyArray (value) {
  6955. var res = '';
  6956. var stringified;
  6957. for (var i = 0, l = value.length; i < l; i++) {
  6958. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  6959. if (res) { res += ' '; }
  6960. res += stringified;
  6961. }
  6962. }
  6963. return res
  6964. }
  6965. function stringifyObject (value) {
  6966. var res = '';
  6967. for (var key in value) {
  6968. if (value[key]) {
  6969. if (res) { res += ' '; }
  6970. res += key;
  6971. }
  6972. }
  6973. return res
  6974. }
  6975. /* */
  6976. var parseStyleText = cached(function (cssText) {
  6977. var res = {};
  6978. var listDelimiter = /;(?![^(]*\))/g;
  6979. var propertyDelimiter = /:(.+)/;
  6980. cssText.split(listDelimiter).forEach(function (item) {
  6981. if (item) {
  6982. var tmp = item.split(propertyDelimiter);
  6983. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  6984. }
  6985. });
  6986. return res
  6987. });
  6988. // normalize possible array / string values into Object
  6989. function normalizeStyleBinding (bindingStyle) {
  6990. if (Array.isArray(bindingStyle)) {
  6991. return toObject(bindingStyle)
  6992. }
  6993. if (typeof bindingStyle === 'string') {
  6994. return parseStyleText(bindingStyle)
  6995. }
  6996. return bindingStyle
  6997. }
  6998. /* */
  6999. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  7000. function getTarget(obj, path) {
  7001. var parts = path.split('.');
  7002. var key = parts[0];
  7003. if (key.indexOf('__$n') === 0) { //number index
  7004. key = parseInt(key.replace('__$n', ''));
  7005. }
  7006. if (parts.length === 1) {
  7007. return obj[key]
  7008. }
  7009. return getTarget(obj[key], parts.slice(1).join('.'))
  7010. }
  7011. function internalMixin(Vue) {
  7012. Vue.config.errorHandler = function(err, vm, info) {
  7013. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  7014. console.error(err);
  7015. /* eslint-disable no-undef */
  7016. var app = typeof getApp === 'function' && getApp();
  7017. if (app && app.onError) {
  7018. app.onError(err);
  7019. }
  7020. };
  7021. var oldEmit = Vue.prototype.$emit;
  7022. Vue.prototype.$emit = function(event) {
  7023. if (this.$scope && event) {
  7024. this.$scope['triggerEvent'](event, {
  7025. __args__: toArray(arguments, 1)
  7026. });
  7027. }
  7028. return oldEmit.apply(this, arguments)
  7029. };
  7030. Vue.prototype.$nextTick = function(fn) {
  7031. return nextTick$1(this, fn)
  7032. };
  7033. MP_METHODS.forEach(function (method) {
  7034. Vue.prototype[method] = function(args) {
  7035. if (this.$scope && this.$scope[method]) {
  7036. return this.$scope[method](args)
  7037. }
  7038. // mp-alipay
  7039. if (typeof my === 'undefined') {
  7040. return
  7041. }
  7042. if (method === 'createSelectorQuery') {
  7043. /* eslint-disable no-undef */
  7044. return my.createSelectorQuery(args)
  7045. } else if (method === 'createIntersectionObserver') {
  7046. /* eslint-disable no-undef */
  7047. return my.createIntersectionObserver(args)
  7048. }
  7049. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  7050. };
  7051. });
  7052. Vue.prototype.__init_provide = initProvide;
  7053. Vue.prototype.__init_injections = initInjections;
  7054. Vue.prototype.__call_hook = function(hook, args) {
  7055. var vm = this;
  7056. // #7573 disable dep collection when invoking lifecycle hooks
  7057. pushTarget();
  7058. var handlers = vm.$options[hook];
  7059. var info = hook + " hook";
  7060. var ret;
  7061. if (handlers) {
  7062. for (var i = 0, j = handlers.length; i < j; i++) {
  7063. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  7064. }
  7065. }
  7066. if (vm._hasHookEvent) {
  7067. vm.$emit('hook:' + hook, args);
  7068. }
  7069. popTarget();
  7070. return ret
  7071. };
  7072. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  7073. if (Array.isArray(modifiers)) {
  7074. if (modifiers.indexOf('trim') !== -1) {
  7075. value = value.trim();
  7076. }
  7077. if (modifiers.indexOf('number') !== -1) {
  7078. value = this._n(value);
  7079. }
  7080. }
  7081. if (!target) {
  7082. target = this;
  7083. }
  7084. target[key] = value;
  7085. };
  7086. Vue.prototype.__set_sync = function(target, key, value) {
  7087. if (!target) {
  7088. target = this;
  7089. }
  7090. target[key] = value;
  7091. };
  7092. Vue.prototype.__get_orig = function(item) {
  7093. if (isPlainObject(item)) {
  7094. return item['$orig'] || item
  7095. }
  7096. return item
  7097. };
  7098. Vue.prototype.__get_value = function(dataPath, target) {
  7099. return getTarget(target || this, dataPath)
  7100. };
  7101. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  7102. return renderClass(staticClass, dynamicClass)
  7103. };
  7104. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  7105. if (!dynamicStyle && !staticStyle) {
  7106. return ''
  7107. }
  7108. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  7109. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  7110. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  7111. };
  7112. Vue.prototype.__map = function(val, iteratee) {
  7113. //TODO 暂不考虑 string
  7114. var ret, i, l, keys, key;
  7115. if (Array.isArray(val)) {
  7116. ret = new Array(val.length);
  7117. for (i = 0, l = val.length; i < l; i++) {
  7118. ret[i] = iteratee(val[i], i);
  7119. }
  7120. return ret
  7121. } else if (isObject(val)) {
  7122. keys = Object.keys(val);
  7123. ret = Object.create(null);
  7124. for (i = 0, l = keys.length; i < l; i++) {
  7125. key = keys[i];
  7126. ret[key] = iteratee(val[key], key, i);
  7127. }
  7128. return ret
  7129. } else if (typeof val === 'number') {
  7130. ret = new Array(val);
  7131. for (i = 0, l = val; i < l; i++) {
  7132. // 第一个参数暂时仍和小程序一致
  7133. ret[i] = iteratee(i, i);
  7134. }
  7135. return ret
  7136. }
  7137. return []
  7138. };
  7139. }
  7140. /* */
  7141. var LIFECYCLE_HOOKS$1 = [
  7142. //App
  7143. 'onLaunch',
  7144. 'onShow',
  7145. 'onHide',
  7146. 'onUniNViewMessage',
  7147. 'onPageNotFound',
  7148. 'onThemeChange',
  7149. 'onError',
  7150. 'onUnhandledRejection',
  7151. //Page
  7152. 'onInit',
  7153. 'onLoad',
  7154. // 'onShow',
  7155. 'onReady',
  7156. // 'onHide',
  7157. 'onUnload',
  7158. 'onPullDownRefresh',
  7159. 'onReachBottom',
  7160. 'onTabItemTap',
  7161. 'onAddToFavorites',
  7162. 'onShareTimeline',
  7163. 'onShareAppMessage',
  7164. 'onResize',
  7165. 'onPageScroll',
  7166. 'onNavigationBarButtonTap',
  7167. 'onBackPress',
  7168. 'onNavigationBarSearchInputChanged',
  7169. 'onNavigationBarSearchInputConfirmed',
  7170. 'onNavigationBarSearchInputClicked',
  7171. //Component
  7172. // 'onReady', // 兼容旧版本,应该移除该事件
  7173. 'onPageShow',
  7174. 'onPageHide',
  7175. 'onPageResize'
  7176. ];
  7177. function lifecycleMixin$1(Vue) {
  7178. //fixed vue-class-component
  7179. var oldExtend = Vue.extend;
  7180. Vue.extend = function(extendOptions) {
  7181. extendOptions = extendOptions || {};
  7182. var methods = extendOptions.methods;
  7183. if (methods) {
  7184. Object.keys(methods).forEach(function (methodName) {
  7185. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  7186. extendOptions[methodName] = methods[methodName];
  7187. delete methods[methodName];
  7188. }
  7189. });
  7190. }
  7191. return oldExtend.call(this, extendOptions)
  7192. };
  7193. var strategies = Vue.config.optionMergeStrategies;
  7194. var mergeHook = strategies.created;
  7195. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  7196. strategies[hook] = mergeHook;
  7197. });
  7198. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  7199. }
  7200. /* */
  7201. // install platform patch function
  7202. Vue.prototype.__patch__ = patch;
  7203. // public mount method
  7204. Vue.prototype.$mount = function(
  7205. el ,
  7206. hydrating
  7207. ) {
  7208. return mountComponent$1(this, el, hydrating)
  7209. };
  7210. lifecycleMixin$1(Vue);
  7211. internalMixin(Vue);
  7212. /* */
  7213. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  7214. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  7215. /***/ }),
  7216. /* 4 */
  7217. /*!*************************************************************!*\
  7218. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  7219. \*************************************************************/
  7220. /*! no static exports found */
  7221. /***/ (function(module, exports, __webpack_require__) {
  7222. "use strict";
  7223. /* 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;
  7224. var isObject = function isObject(val) {return val !== null && typeof val === 'object';};
  7225. var defaultDelimiters = ['{', '}'];var
  7226. BaseFormatter = /*#__PURE__*/function () {
  7227. function BaseFormatter() {_classCallCheck(this, BaseFormatter);
  7228. this._caches = Object.create(null);
  7229. }_createClass(BaseFormatter, [{ key: "interpolate", value: function interpolate(
  7230. message, values) {var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  7231. if (!values) {
  7232. return [message];
  7233. }
  7234. var tokens = this._caches[message];
  7235. if (!tokens) {
  7236. tokens = parse(message, delimiters);
  7237. this._caches[message] = tokens;
  7238. }
  7239. return compile(tokens, values);
  7240. } }]);return BaseFormatter;}();exports.Formatter = BaseFormatter;
  7241. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  7242. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  7243. function parse(format, _ref) {var _ref2 = _slicedToArray(_ref, 2),startDelimiter = _ref2[0],endDelimiter = _ref2[1];
  7244. var tokens = [];
  7245. var position = 0;
  7246. var text = '';
  7247. while (position < format.length) {
  7248. var char = format[position++];
  7249. if (char === startDelimiter) {
  7250. if (text) {
  7251. tokens.push({ type: 'text', value: text });
  7252. }
  7253. text = '';
  7254. var sub = '';
  7255. char = format[position++];
  7256. while (char !== undefined && char !== endDelimiter) {
  7257. sub += char;
  7258. char = format[position++];
  7259. }
  7260. var isClosed = char === endDelimiter;
  7261. var type = RE_TOKEN_LIST_VALUE.test(sub) ?
  7262. 'list' :
  7263. isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ?
  7264. 'named' :
  7265. 'unknown';
  7266. tokens.push({ value: sub, type: type });
  7267. }
  7268. // else if (char === '%') {
  7269. // // when found rails i18n syntax, skip text capture
  7270. // if (format[position] !== '{') {
  7271. // text += char
  7272. // }
  7273. // }
  7274. else {
  7275. text += char;
  7276. }
  7277. }
  7278. text && tokens.push({ type: 'text', value: text });
  7279. return tokens;
  7280. }
  7281. function compile(tokens, values) {
  7282. var compiled = [];
  7283. var index = 0;
  7284. var mode = isArray(values) ?
  7285. 'list' :
  7286. isObject(values) ?
  7287. 'named' :
  7288. 'unknown';
  7289. if (mode === 'unknown') {
  7290. return compiled;
  7291. }
  7292. while (index < tokens.length) {
  7293. var token = tokens[index];
  7294. switch (token.type) {
  7295. case 'text':
  7296. compiled.push(token.value);
  7297. break;
  7298. case 'list':
  7299. compiled.push(values[parseInt(token.value, 10)]);
  7300. break;
  7301. case 'named':
  7302. if (mode === 'named') {
  7303. compiled.push(values[token.value]);
  7304. } else
  7305. {
  7306. if (true) {
  7307. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  7308. }
  7309. }
  7310. break;
  7311. case 'unknown':
  7312. if (true) {
  7313. console.warn("Detect 'unknown' type of token!");
  7314. }
  7315. break;}
  7316. index++;
  7317. }
  7318. return compiled;
  7319. }
  7320. var LOCALE_ZH_HANS = 'zh-Hans';exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  7321. var LOCALE_ZH_HANT = 'zh-Hant';exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  7322. var LOCALE_EN = 'en';exports.LOCALE_EN = LOCALE_EN;
  7323. var LOCALE_FR = 'fr';exports.LOCALE_FR = LOCALE_FR;
  7324. var LOCALE_ES = 'es';exports.LOCALE_ES = LOCALE_ES;
  7325. var hasOwnProperty = Object.prototype.hasOwnProperty;
  7326. var hasOwn = function hasOwn(val, key) {return hasOwnProperty.call(val, key);};
  7327. var defaultFormatter = new BaseFormatter();
  7328. function include(str, parts) {
  7329. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  7330. }
  7331. function startsWith(str, parts) {
  7332. return parts.find(function (part) {return str.indexOf(part) === 0;});
  7333. }
  7334. function normalizeLocale(locale, messages) {
  7335. if (!locale) {
  7336. return;
  7337. }
  7338. locale = locale.trim().replace(/_/g, '-');
  7339. if (messages && messages[locale]) {
  7340. return locale;
  7341. }
  7342. locale = locale.toLowerCase();
  7343. if (locale.indexOf('zh') === 0) {
  7344. if (locale.indexOf('-hans') > -1) {
  7345. return LOCALE_ZH_HANS;
  7346. }
  7347. if (locale.indexOf('-hant') > -1) {
  7348. return LOCALE_ZH_HANT;
  7349. }
  7350. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  7351. return LOCALE_ZH_HANT;
  7352. }
  7353. return LOCALE_ZH_HANS;
  7354. }
  7355. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  7356. if (lang) {
  7357. return lang;
  7358. }
  7359. }var
  7360. I18n = /*#__PURE__*/function () {
  7361. function I18n(_ref3) {var locale = _ref3.locale,fallbackLocale = _ref3.fallbackLocale,messages = _ref3.messages,watcher = _ref3.watcher,formater = _ref3.formater;_classCallCheck(this, I18n);
  7362. this.locale = LOCALE_EN;
  7363. this.fallbackLocale = LOCALE_EN;
  7364. this.message = {};
  7365. this.messages = {};
  7366. this.watchers = [];
  7367. if (fallbackLocale) {
  7368. this.fallbackLocale = fallbackLocale;
  7369. }
  7370. this.formater = formater || defaultFormatter;
  7371. this.messages = messages || {};
  7372. this.setLocale(locale || LOCALE_EN);
  7373. if (watcher) {
  7374. this.watchLocale(watcher);
  7375. }
  7376. }_createClass(I18n, [{ key: "setLocale", value: function setLocale(
  7377. locale) {var _this = this;
  7378. var oldLocale = this.locale;
  7379. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  7380. if (!this.messages[this.locale]) {
  7381. // 可能初始化时不存在
  7382. this.messages[this.locale] = {};
  7383. }
  7384. this.message = this.messages[this.locale];
  7385. // 仅发生变化时,通知
  7386. if (oldLocale !== this.locale) {
  7387. this.watchers.forEach(function (watcher) {
  7388. watcher(_this.locale, oldLocale);
  7389. });
  7390. }
  7391. } }, { key: "getLocale", value: function getLocale()
  7392. {
  7393. return this.locale;
  7394. } }, { key: "watchLocale", value: function watchLocale(
  7395. fn) {var _this2 = this;
  7396. var index = this.watchers.push(fn) - 1;
  7397. return function () {
  7398. _this2.watchers.splice(index, 1);
  7399. };
  7400. } }, { key: "add", value: function add(
  7401. locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  7402. var curMessages = this.messages[locale];
  7403. if (curMessages) {
  7404. if (override) {
  7405. Object.assign(curMessages, message);
  7406. } else
  7407. {
  7408. Object.keys(message).forEach(function (key) {
  7409. if (!hasOwn(curMessages, key)) {
  7410. curMessages[key] = message[key];
  7411. }
  7412. });
  7413. }
  7414. } else
  7415. {
  7416. this.messages[locale] = message;
  7417. }
  7418. } }, { key: "f", value: function f(
  7419. message, values, delimiters) {
  7420. return this.formater.interpolate(message, values, delimiters).join('');
  7421. } }, { key: "t", value: function t(
  7422. key, locale, values) {
  7423. var message = this.message;
  7424. if (typeof locale === 'string') {
  7425. locale = normalizeLocale(locale, this.messages);
  7426. locale && (message = this.messages[locale]);
  7427. } else
  7428. {
  7429. values = locale;
  7430. }
  7431. if (!hasOwn(message, key)) {
  7432. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  7433. return key;
  7434. }
  7435. return this.formater.interpolate(message[key], values).join('');
  7436. } }]);return I18n;}();exports.I18n = I18n;
  7437. function watchAppLocale(appVm, i18n) {
  7438. // 需要保证 watch 的触发在组件渲染之前
  7439. if (appVm.$watchLocale) {
  7440. // vue2
  7441. appVm.$watchLocale(function (newLocale) {
  7442. i18n.setLocale(newLocale);
  7443. });
  7444. } else
  7445. {
  7446. appVm.$watch(function () {return appVm.$locale;}, function (newLocale) {
  7447. i18n.setLocale(newLocale);
  7448. });
  7449. }
  7450. }
  7451. function getDefaultLocale() {
  7452. if (typeof uni !== 'undefined' && uni.getLocale) {
  7453. return uni.getLocale();
  7454. }
  7455. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  7456. if (typeof global !== 'undefined' && global.getLocale) {
  7457. return global.getLocale();
  7458. }
  7459. return LOCALE_EN;
  7460. }
  7461. 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;
  7462. // 兼容旧版本入参
  7463. if (typeof locale !== 'string') {var _ref4 =
  7464. [
  7465. messages,
  7466. locale];locale = _ref4[0];messages = _ref4[1];
  7467. }
  7468. if (typeof locale !== 'string') {
  7469. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  7470. locale = getDefaultLocale();
  7471. }
  7472. if (typeof fallbackLocale !== 'string') {
  7473. fallbackLocale =
  7474. typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale ||
  7475. LOCALE_EN;
  7476. }
  7477. var i18n = new I18n({
  7478. locale: locale,
  7479. fallbackLocale: fallbackLocale,
  7480. messages: messages,
  7481. watcher: watcher });
  7482. var _t = function t(key, values) {
  7483. if (typeof getApp !== 'function') {
  7484. // app view
  7485. /* eslint-disable no-func-assign */
  7486. _t = function t(key, values) {
  7487. return i18n.t(key, values);
  7488. };
  7489. } else
  7490. {
  7491. var isWatchedAppLocale = false;
  7492. _t = function t(key, values) {
  7493. var appVm = getApp().$vm;
  7494. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  7495. // options: {
  7496. // type: Array,
  7497. // default () {
  7498. // return [{
  7499. // icon: 'shop',
  7500. // text: t("uni-goods-nav.options.shop"),
  7501. // }, {
  7502. // icon: 'cart',
  7503. // text: t("uni-goods-nav.options.cart")
  7504. // }]
  7505. // }
  7506. // },
  7507. if (appVm) {
  7508. // 触发响应式
  7509. appVm.$locale;
  7510. if (!isWatchedAppLocale) {
  7511. isWatchedAppLocale = true;
  7512. watchAppLocale(appVm, i18n);
  7513. }
  7514. }
  7515. return i18n.t(key, values);
  7516. };
  7517. }
  7518. return _t(key, values);
  7519. };
  7520. return {
  7521. i18n: i18n,
  7522. f: function f(message, values, delimiters) {
  7523. return i18n.f(message, values, delimiters);
  7524. },
  7525. t: function t(key, values) {
  7526. return _t(key, values);
  7527. },
  7528. add: function add(locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  7529. return i18n.add(locale, message, override);
  7530. },
  7531. watch: function watch(fn) {
  7532. return i18n.watchLocale(fn);
  7533. },
  7534. getLocale: function getLocale() {
  7535. return i18n.getLocale();
  7536. },
  7537. setLocale: function setLocale(newLocale) {
  7538. return i18n.setLocale(newLocale);
  7539. } };
  7540. }
  7541. var isString = function isString(val) {return typeof val === 'string';};exports.isString = isString;
  7542. var formater;
  7543. function hasI18nJson(jsonObj, delimiters) {
  7544. if (!formater) {
  7545. formater = new BaseFormatter();
  7546. }
  7547. return walkJsonObj(jsonObj, function (jsonObj, key) {
  7548. var value = jsonObj[key];
  7549. if (isString(value)) {
  7550. if (isI18nStr(value, delimiters)) {
  7551. return true;
  7552. }
  7553. } else
  7554. {
  7555. return hasI18nJson(value, delimiters);
  7556. }
  7557. });
  7558. }
  7559. function parseI18nJson(jsonObj, values, delimiters) {
  7560. if (!formater) {
  7561. formater = new BaseFormatter();
  7562. }
  7563. walkJsonObj(jsonObj, function (jsonObj, key) {
  7564. var value = jsonObj[key];
  7565. if (isString(value)) {
  7566. if (isI18nStr(value, delimiters)) {
  7567. jsonObj[key] = compileStr(value, values, delimiters);
  7568. }
  7569. } else
  7570. {
  7571. parseI18nJson(value, values, delimiters);
  7572. }
  7573. });
  7574. return jsonObj;
  7575. }
  7576. function compileI18nJsonStr(jsonStr, _ref5) {var locale = _ref5.locale,locales = _ref5.locales,delimiters = _ref5.delimiters;
  7577. if (!isI18nStr(jsonStr, delimiters)) {
  7578. return jsonStr;
  7579. }
  7580. if (!formater) {
  7581. formater = new BaseFormatter();
  7582. }
  7583. var localeValues = [];
  7584. Object.keys(locales).forEach(function (name) {
  7585. if (name !== locale) {
  7586. localeValues.push({
  7587. locale: name,
  7588. values: locales[name] });
  7589. }
  7590. });
  7591. localeValues.unshift({ locale: locale, values: locales[locale] });
  7592. try {
  7593. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  7594. }
  7595. catch (e) {}
  7596. return jsonStr;
  7597. }
  7598. function isI18nStr(value, delimiters) {
  7599. return value.indexOf(delimiters[0]) > -1;
  7600. }
  7601. function compileStr(value, values, delimiters) {
  7602. return formater.interpolate(value, values, delimiters).join('');
  7603. }
  7604. function compileValue(jsonObj, key, localeValues, delimiters) {
  7605. var value = jsonObj[key];
  7606. if (isString(value)) {
  7607. // 存在国际化
  7608. if (isI18nStr(value, delimiters)) {
  7609. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  7610. if (localeValues.length > 1) {
  7611. // 格式化国际化语言
  7612. var valueLocales = jsonObj[key + 'Locales'] = {};
  7613. localeValues.forEach(function (localValue) {
  7614. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  7615. });
  7616. }
  7617. }
  7618. } else
  7619. {
  7620. compileJsonObj(value, localeValues, delimiters);
  7621. }
  7622. }
  7623. function compileJsonObj(jsonObj, localeValues, delimiters) {
  7624. walkJsonObj(jsonObj, function (jsonObj, key) {
  7625. compileValue(jsonObj, key, localeValues, delimiters);
  7626. });
  7627. return jsonObj;
  7628. }
  7629. function walkJsonObj(jsonObj, walk) {
  7630. if (isArray(jsonObj)) {
  7631. for (var i = 0; i < jsonObj.length; i++) {
  7632. if (walk(jsonObj, i)) {
  7633. return true;
  7634. }
  7635. }
  7636. } else
  7637. if (isObject(jsonObj)) {
  7638. for (var key in jsonObj) {
  7639. if (walk(jsonObj, key)) {
  7640. return true;
  7641. }
  7642. }
  7643. }
  7644. return false;
  7645. }
  7646. function resolveLocale(locales) {
  7647. return function (locale) {
  7648. if (!locale) {
  7649. return locale;
  7650. }
  7651. locale = normalizeLocale(locale) || locale;
  7652. return resolveLocaleChain(locale).find(function (locale) {return locales.indexOf(locale) > -1;});
  7653. };
  7654. }
  7655. function resolveLocaleChain(locale) {
  7656. var chain = [];
  7657. var tokens = locale.split('-');
  7658. while (tokens.length) {
  7659. chain.push(tokens.join('-'));
  7660. tokens.pop();
  7661. }
  7662. return chain;
  7663. }
  7664. /* 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)))
  7665. /***/ }),
  7666. /* 5 */
  7667. /*!******************************************************!*\
  7668. !*** D:/Program Files/tourism/uni_applet/pages.json ***!
  7669. \******************************************************/
  7670. /*! no static exports found */
  7671. /***/ (function(module, exports) {
  7672. /***/ }),
  7673. /* 6 */,
  7674. /* 7 */,
  7675. /* 8 */,
  7676. /* 9 */,
  7677. /* 10 */,
  7678. /* 11 */
  7679. /*!**********************************************************************************************************!*\
  7680. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  7681. \**********************************************************************************************************/
  7682. /*! exports provided: default */
  7683. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7684. "use strict";
  7685. __webpack_require__.r(__webpack_exports__);
  7686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  7687. /* globals __VUE_SSR_CONTEXT__ */
  7688. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  7689. // This module is a runtime utility for cleaner component module output and will
  7690. // be included in the final webpack user bundle.
  7691. function normalizeComponent (
  7692. scriptExports,
  7693. render,
  7694. staticRenderFns,
  7695. functionalTemplate,
  7696. injectStyles,
  7697. scopeId,
  7698. moduleIdentifier, /* server only */
  7699. shadowMode, /* vue-cli only */
  7700. components, // fixed by xxxxxx auto components
  7701. renderjs // fixed by xxxxxx renderjs
  7702. ) {
  7703. // Vue.extend constructor export interop
  7704. var options = typeof scriptExports === 'function'
  7705. ? scriptExports.options
  7706. : scriptExports
  7707. // fixed by xxxxxx auto components
  7708. if (components) {
  7709. if (!options.components) {
  7710. options.components = {}
  7711. }
  7712. var hasOwn = Object.prototype.hasOwnProperty
  7713. for (var name in components) {
  7714. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  7715. options.components[name] = components[name]
  7716. }
  7717. }
  7718. }
  7719. // fixed by xxxxxx renderjs
  7720. if (renderjs) {
  7721. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  7722. this[renderjs.__module] = this
  7723. });
  7724. (options.mixins || (options.mixins = [])).push(renderjs)
  7725. }
  7726. // render functions
  7727. if (render) {
  7728. options.render = render
  7729. options.staticRenderFns = staticRenderFns
  7730. options._compiled = true
  7731. }
  7732. // functional template
  7733. if (functionalTemplate) {
  7734. options.functional = true
  7735. }
  7736. // scopedId
  7737. if (scopeId) {
  7738. options._scopeId = 'data-v-' + scopeId
  7739. }
  7740. var hook
  7741. if (moduleIdentifier) { // server build
  7742. hook = function (context) {
  7743. // 2.3 injection
  7744. context =
  7745. context || // cached call
  7746. (this.$vnode && this.$vnode.ssrContext) || // stateful
  7747. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  7748. // 2.2 with runInNewContext: true
  7749. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  7750. context = __VUE_SSR_CONTEXT__
  7751. }
  7752. // inject component styles
  7753. if (injectStyles) {
  7754. injectStyles.call(this, context)
  7755. }
  7756. // register component module identifier for async chunk inferrence
  7757. if (context && context._registeredComponents) {
  7758. context._registeredComponents.add(moduleIdentifier)
  7759. }
  7760. }
  7761. // used by ssr in case component is cached and beforeCreate
  7762. // never gets called
  7763. options._ssrRegister = hook
  7764. } else if (injectStyles) {
  7765. hook = shadowMode
  7766. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  7767. : injectStyles
  7768. }
  7769. if (hook) {
  7770. if (options.functional) {
  7771. // for template-only hot-reload because in that case the render fn doesn't
  7772. // go through the normalizer
  7773. options._injectStyles = hook
  7774. // register for functioal component in vue file
  7775. var originalRender = options.render
  7776. options.render = function renderWithStyleInjection (h, context) {
  7777. hook.call(context)
  7778. return originalRender(h, context)
  7779. }
  7780. } else {
  7781. // inject component registration as beforeCreate hook
  7782. var existing = options.beforeCreate
  7783. options.beforeCreate = existing
  7784. ? [].concat(existing, hook)
  7785. : [hook]
  7786. }
  7787. }
  7788. return {
  7789. exports: scriptExports,
  7790. options: options
  7791. }
  7792. }
  7793. /***/ }),
  7794. /* 12 */
  7795. /*!***********************************************************!*\
  7796. !*** D:/Program Files/tourism/uni_applet/util/request.js ***!
  7797. \***********************************************************/
  7798. /*! no static exports found */
  7799. /***/ (function(module, exports, __webpack_require__) {
  7800. "use strict";
  7801. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var config = _interopRequireWildcard(__webpack_require__(/*! @/config */ 13));
  7802. var _WXBizDataCrypt = _interopRequireDefault(__webpack_require__(/*! ./WXBizDataCrypt.js */ 14));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function _getRequireWildcardCache() {if (typeof WeakMap !== "function") return null;var cache = new WeakMap();_getRequireWildcardCache = function _getRequireWildcardCache() {return cache;};return cache;}function _interopRequireWildcard(obj) {if (obj && obj.__esModule) {return obj;}if (obj === null || typeof obj !== "object" && typeof obj !== "function") {return { default: obj };}var cache = _getRequireWildcardCache();if (cache && cache.has(obj)) {return cache.get(obj);}var newObj = {};var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var key in obj) {if (Object.prototype.hasOwnProperty.call(obj, key)) {var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;if (desc && (desc.get || desc.set)) {Object.defineProperty(newObj, key, desc);} else {newObj[key] = obj[key];}}}newObj.default = obj;if (cache) {cache.set(obj, newObj);}return newObj;}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 _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;}
  7803. var baseUrl = config.def().baseUrlNew;
  7804. // 定义基础请求路径(后端服务器地址)
  7805. var baseRequest = function baseRequest(_gp, _mt) {var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};var failCallback = arguments.length > 3 ? arguments[3] : undefined;
  7806. //异步请求数据
  7807. return new Promise(function (resolve) {
  7808. var baseUrl = config.def().baseUrlNew;
  7809. uni.request({
  7810. url: baseUrl + '/m.api',
  7811. data: _objectSpread(_objectSpread({},
  7812. data), {}, {
  7813. _gp: _gp,
  7814. _mt: _mt }),
  7815. method: 'POST',
  7816. header: {
  7817. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
  7818. // 'ACCESSTOKEN': accessToken
  7819. },
  7820. success: function success(res) {
  7821. if (res.statusCode === 200) {
  7822. if (res.data.errno === 200) {
  7823. resolve(res.data);
  7824. } else {
  7825. if (failCallback) {
  7826. failCallback(res.data);
  7827. } else {
  7828. uni.showToast({
  7829. title: res.data.errmsg,
  7830. icon: 'none' });
  7831. }
  7832. }
  7833. }
  7834. } });
  7835. });
  7836. };
  7837. //带Token请求
  7838. var TokenRequest = function TokenRequest(method, url, data, header) {
  7839. var contentheader = 'application/json';
  7840. if (header) {
  7841. contentheader = header;
  7842. }
  7843. var ac_token = "";
  7844. uni.getStorage({
  7845. key: 'userInfo',
  7846. success: function success(res) {
  7847. ac_token = res.data.accessToken;
  7848. } });
  7849. //此token是登录成功后后台返回保存在storage中的
  7850. var DefaultOpts = {
  7851. url: baseUrl + url,
  7852. data: data,
  7853. method: method,
  7854. header: {
  7855. 'content-type': contentheader,
  7856. 'Token': ac_token } };
  7857. var promise = new Promise(function (resolve, reject) {
  7858. uni.request(DefaultOpts).then(
  7859. function (res) {
  7860. console.log(JSON.stringify(res[1].data));
  7861. if (res[1].data.code == '200' || res[1].data.code == 200) {
  7862. // 后端返回的状态码100为成功状态,成功则返回请求结果,在app调试时可以通过console.log(JSON.stringify(res[1].data))来查看返回值(以项目实际情况为准)
  7863. resolve(res[1].data);
  7864. }
  7865. if (res[1].data.code == '105' || res[1].data.code == 105) {
  7866. // 后端返回状态码为105则为未登录状态(以项目实际情况为准)
  7867. uni.showToast({
  7868. icon: 'none',
  7869. title: '尚未登录',
  7870. duration: 2000 });
  7871. // 尚未登录的逻辑处理
  7872. return false;
  7873. }
  7874. }).
  7875. catch(
  7876. function (response) {
  7877. reject(response);
  7878. });
  7879. });
  7880. return promise;
  7881. };
  7882. //微信登录
  7883. var wxlogin = function wxlogin() {
  7884. var promise = new Promise(function (resolve, reject) {
  7885. uni.login({
  7886. "provider": "weixin",
  7887. success: function success(wxres) {
  7888. console.log("wxlogin", wxres);
  7889. baseRequest('commonUserApp', 'commonUserLogin', {
  7890. loginType: 1,
  7891. raw: JSON.stringify(wxres) },
  7892. function (failres) {
  7893. uni.showToast({
  7894. icon: "none",
  7895. title: failres.errmsg,
  7896. duration: 3000 });
  7897. uni.hideLoading();
  7898. }).then(function (res) {
  7899. console.log(res.data);
  7900. resolve(res.data);
  7901. });
  7902. },
  7903. fail: function fail(err) {
  7904. reject(err.code);
  7905. } });
  7906. });
  7907. return promise;
  7908. };
  7909. //获取手机号
  7910. var getPhone = function getPhone(e, userInfo) {
  7911. var promise = new Promise(function (resolve, reject) {
  7912. if (e.mp.detail.errMsg === "getPhoneNumber:ok") {
  7913. var appId = 'wx5d8906c2208c899f';
  7914. var sessionKey = userInfo.sessionKey;
  7915. var encryptedData = e.mp.detail.encryptedData;
  7916. var iv = e.mp.detail.iv;
  7917. var data = '';
  7918. try {
  7919. console.log('解密前 encryptedData: ', encryptedData);
  7920. console.log('解密前 iv: ', iv);
  7921. console.log('解密前 appId: ', appId);
  7922. console.log('解密前 sessionKey: ', sessionKey);
  7923. data = _WXBizDataCrypt.default.prototype.decryptData(encryptedData, iv, appId, sessionKey);
  7924. console.log('解密后 data: ', data);
  7925. resolve(data.phoneNumber);
  7926. } catch (e) {
  7927. uni.showToast({
  7928. icon: "none",
  7929. title: e,
  7930. duration: 3000 });
  7931. }
  7932. }
  7933. });
  7934. return promise;
  7935. };
  7936. //同步信息
  7937. var syncInfo = function syncInfo(userInfo) {
  7938. var promise = new Promise(function (resolve, reject) {
  7939. if (!userInfo.head) userInfo.head = 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/card_head.png';
  7940. if (!userInfo.nickname) {
  7941. var code = "";
  7942. for (var i = 0; i < 6; i++) {
  7943. code += parseInt(Math.random() * 10);
  7944. }
  7945. userInfo.nickname = 'user' + code;
  7946. }
  7947. baseRequest('commonUserApp', 'edit', {
  7948. commonUserInfo: JSON.stringify(userInfo) },
  7949. function (failres) {
  7950. uni.showToast({
  7951. icon: "none",
  7952. title: failres.errmsg,
  7953. duration: 3000 });
  7954. reject(err.code);
  7955. }).then(function (res) {
  7956. resolve(res.data);
  7957. });
  7958. });
  7959. return promise;
  7960. };var _default =
  7961. {
  7962. baseUrl: baseUrl,
  7963. baseRequest: baseRequest,
  7964. TokenRequest: TokenRequest,
  7965. wxlogin: wxlogin,
  7966. getPhone: getPhone,
  7967. syncInfo: syncInfo };exports.default = _default;
  7968. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  7969. /***/ }),
  7970. /* 13 */
  7971. /*!***********************************************************!*\
  7972. !*** D:/Program Files/tourism/uni_applet/config/index.js ***!
  7973. \***********************************************************/
  7974. /*! no static exports found */
  7975. /***/ (function(module, exports, __webpack_require__) {
  7976. "use strict";
  7977. Object.defineProperty(exports, "__esModule", { value: true });exports.def = def;var dev = {
  7978. // baseUrlNew: 'http://192.168.110.72:8182',
  7979. baseUrlNew: 'http://192.168.110.138:8183',
  7980. // baseUrlNew: 'http://192.168.110.82:8182',
  7981. // baseUrlNew: 'https://cardapi.eliangeyun.com',
  7982. h5Appid: 'wxb66b599f7f61b46f',
  7983. debug: false };
  7984. function def() {
  7985. return dev;
  7986. }
  7987. /***/ }),
  7988. /* 14 */
  7989. /*!******************************************************************!*\
  7990. !*** D:/Program Files/tourism/uni_applet/util/WXBizDataCrypt.js ***!
  7991. \******************************************************************/
  7992. /*! no static exports found */
  7993. /***/ (function(module, exports, __webpack_require__) {
  7994. /**
  7995. * Created by rd on 2017/5/4.
  7996. */
  7997. // 引入CryptoJS 路径依个人导入情况变动
  7998. var Crypto = __webpack_require__(/*! ./cryptojs-master/cryptojs.js */ 15).Crypto;
  7999. var app = getApp();
  8000. function RdWXBizDataCrypt(appId, sessionKey) {
  8001. this.appId = appId;
  8002. this.sessionKey = sessionKey;
  8003. }
  8004. RdWXBizDataCrypt.prototype.decryptData = function (encryptedData, iv, appId, sessionKey) {
  8005. // base64 decode :使用 CryptoJS 中 Crypto.util.base64ToBytes()进行 base64解码
  8006. var encryptedData = Crypto.util.base64ToBytes(encryptedData);
  8007. var key = Crypto.util.base64ToBytes(sessionKey);
  8008. var iv = Crypto.util.base64ToBytes(iv);
  8009. // 对称解密使用的算法为 AES-128-CBC,数据采用PKCS#7填充
  8010. var mode = new Crypto.mode.CBC(Crypto.pad.pkcs7);
  8011. try {
  8012. // 解密
  8013. var bytes = Crypto.AES.decrypt(encryptedData, key, {
  8014. asBpytes: true,
  8015. iv: iv,
  8016. mode: mode });
  8017. var decryptResult = JSON.parse(bytes);
  8018. } catch (err) {
  8019. console.log(err);
  8020. }
  8021. return decryptResult;
  8022. };
  8023. module.exports = RdWXBizDataCrypt;
  8024. /***/ }),
  8025. /* 15 */
  8026. /*!****************************************************************************!*\
  8027. !*** D:/Program Files/tourism/uni_applet/util/cryptojs-master/cryptojs.js ***!
  8028. \****************************************************************************/
  8029. /*! no static exports found */
  8030. /***/ (function(module, exports, __webpack_require__) {
  8031. var Crypto = exports.Crypto = __webpack_require__(/*! ./lib/Crypto */ 16).Crypto;
  8032. ['CryptoMath',
  8033. 'BlockModes',
  8034. 'DES',
  8035. 'AES',
  8036. 'HMAC',
  8037. 'MARC4',
  8038. 'MD5',
  8039. 'PBKDF2',
  8040. 'PBKDF2Async',
  8041. 'Rabbit',
  8042. 'SHA1',
  8043. 'SHA256'].
  8044. forEach(function (path) {
  8045. __webpack_require__(17)("./" + path);
  8046. });
  8047. /***/ }),
  8048. /* 16 */
  8049. /*!******************************************************************************!*\
  8050. !*** D:/Program Files/tourism/uni_applet/util/cryptojs-master/lib/Crypto.js ***!
  8051. \******************************************************************************/
  8052. /*! no static exports found */
  8053. /***/ (function(module, exports) {
  8054. if (typeof Crypto == "undefined" || !Crypto.util)
  8055. {
  8056. (function () {
  8057. var base64map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  8058. // Global Crypto object
  8059. // with browser window or with node module
  8060. var Crypto = typeof window === 'undefined' ? exports.Crypto = {} : window.Crypto = {};
  8061. // Crypto utilities
  8062. var util = Crypto.util = {
  8063. // Bit-wise rotate left
  8064. rotl: function rotl(n, b) {
  8065. return n << b | n >>> 32 - b;
  8066. },
  8067. // Bit-wise rotate right
  8068. rotr: function rotr(n, b) {
  8069. return n << 32 - b | n >>> b;
  8070. },
  8071. // Swap big-endian to little-endian and vice versa
  8072. endian: function endian(n) {
  8073. // If number given, swap endian
  8074. if (n.constructor == Number) {
  8075. return util.rotl(n, 8) & 0x00FF00FF |
  8076. util.rotl(n, 24) & 0xFF00FF00;
  8077. }
  8078. // Else, assume array and swap all items
  8079. for (var i = 0; i < n.length; i++) {
  8080. n[i] = util.endian(n[i]);}
  8081. return n;
  8082. },
  8083. // Generate an array of any length of random bytes
  8084. randomBytes: function randomBytes(n) {
  8085. for (var bytes = []; n > 0; n--) {
  8086. bytes.push(Math.floor(Math.random() * 256));}
  8087. return bytes;
  8088. },
  8089. // Convert a byte array to big-endian 32-bit words
  8090. bytesToWords: function bytesToWords(bytes) {
  8091. for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8) {
  8092. words[b >>> 5] |= (bytes[i] & 0xFF) << 24 - b % 32;}
  8093. return words;
  8094. },
  8095. // Convert big-endian 32-bit words to a byte array
  8096. wordsToBytes: function wordsToBytes(words) {
  8097. for (var bytes = [], b = 0; b < words.length * 32; b += 8) {
  8098. bytes.push(words[b >>> 5] >>> 24 - b % 32 & 0xFF);}
  8099. return bytes;
  8100. },
  8101. // Convert a byte array to a hex string
  8102. bytesToHex: function bytesToHex(bytes) {
  8103. for (var hex = [], i = 0; i < bytes.length; i++) {
  8104. hex.push((bytes[i] >>> 4).toString(16));
  8105. hex.push((bytes[i] & 0xF).toString(16));
  8106. }
  8107. return hex.join("");
  8108. },
  8109. // Convert a hex string to a byte array
  8110. hexToBytes: function hexToBytes(hex) {
  8111. for (var bytes = [], c = 0; c < hex.length; c += 2) {
  8112. bytes.push(parseInt(hex.substr(c, 2), 16));}
  8113. return bytes;
  8114. },
  8115. // Convert a byte array to a base-64 string
  8116. bytesToBase64: function bytesToBase64(bytes) {
  8117. // Use browser-native function if it exists
  8118. if (typeof btoa == "function") return btoa(Binary.bytesToString(bytes));
  8119. for (var base64 = [], i = 0; i < bytes.length; i += 3) {
  8120. var triplet = bytes[i] << 16 | bytes[i + 1] << 8 | bytes[i + 2];
  8121. for (var j = 0; j < 4; j++) {
  8122. if (i * 8 + j * 6 <= bytes.length * 8)
  8123. base64.push(base64map.charAt(triplet >>> 6 * (3 - j) & 0x3F));else
  8124. base64.push("=");
  8125. }
  8126. }
  8127. return base64.join("");
  8128. },
  8129. // Convert a base-64 string to a byte array
  8130. base64ToBytes: function base64ToBytes(base64) {
  8131. // Use browser-native function if it exists
  8132. if (typeof atob == "function") return Binary.stringToBytes(atob(base64));
  8133. // Remove non-base-64 characters
  8134. base64 = base64.replace(/[^A-Z0-9+\/]/ig, "");
  8135. for (var bytes = [], i = 0, imod4 = 0; i < base64.length; imod4 = ++i % 4) {
  8136. if (imod4 == 0) continue;
  8137. bytes.push((base64map.indexOf(base64.charAt(i - 1)) & Math.pow(2, -2 * imod4 + 8) - 1) << imod4 * 2 |
  8138. base64map.indexOf(base64.charAt(i)) >>> 6 - imod4 * 2);
  8139. }
  8140. return bytes;
  8141. } };
  8142. // Crypto character encodings
  8143. var charenc = Crypto.charenc = {};
  8144. // UTF-8 encoding
  8145. var UTF8 = charenc.UTF8 = {
  8146. // Convert a string to a byte array
  8147. stringToBytes: function stringToBytes(str) {
  8148. return Binary.stringToBytes(unescape(encodeURIComponent(str)));
  8149. },
  8150. // Convert a byte array to a string
  8151. bytesToString: function bytesToString(bytes) {
  8152. return decodeURIComponent(escape(Binary.bytesToString(bytes)));
  8153. } };
  8154. // Binary encoding
  8155. var Binary = charenc.Binary = {
  8156. // Convert a string to a byte array
  8157. stringToBytes: function stringToBytes(str) {
  8158. for (var bytes = [], i = 0; i < str.length; i++) {
  8159. bytes.push(str.charCodeAt(i) & 0xFF);}
  8160. return bytes;
  8161. },
  8162. // Convert a byte array to a string
  8163. bytesToString: function bytesToString(bytes) {
  8164. for (var str = [], i = 0; i < bytes.length; i++) {
  8165. str.push(String.fromCharCode(bytes[i]));}
  8166. return str.join("");
  8167. } };
  8168. })();
  8169. }
  8170. /***/ }),
  8171. /* 17 */
  8172. /*!**********************************************************************************!*\
  8173. !*** D:/Program Files/tourism/uni_applet/util/cryptojs-master/lib sync ^\.\/.*$ ***!
  8174. \**********************************************************************************/
  8175. /*! no static exports found */
  8176. /***/ (function(module, exports, __webpack_require__) {
  8177. var map = {
  8178. "./AES": 18,
  8179. "./AES.js": 18,
  8180. "./BlockModes": 19,
  8181. "./BlockModes.js": 19,
  8182. "./Crypto": 16,
  8183. "./Crypto.js": 16,
  8184. "./CryptoMath": 20,
  8185. "./CryptoMath.js": 20,
  8186. "./DES": 21,
  8187. "./DES.js": 21,
  8188. "./HMAC": 22,
  8189. "./HMAC.js": 22,
  8190. "./MARC4": 23,
  8191. "./MARC4.js": 23,
  8192. "./MD5": 24,
  8193. "./MD5.js": 24,
  8194. "./PBKDF2": 25,
  8195. "./PBKDF2.js": 25,
  8196. "./PBKDF2Async": 26,
  8197. "./PBKDF2Async.js": 26,
  8198. "./Rabbit": 29,
  8199. "./Rabbit.js": 29,
  8200. "./SHA1": 30,
  8201. "./SHA1.js": 30,
  8202. "./SHA256": 31,
  8203. "./SHA256.js": 31
  8204. };
  8205. function webpackContext(req) {
  8206. var id = webpackContextResolve(req);
  8207. return __webpack_require__(id);
  8208. }
  8209. function webpackContextResolve(req) {
  8210. if(!__webpack_require__.o(map, req)) {
  8211. var e = new Error("Cannot find module '" + req + "'");
  8212. e.code = 'MODULE_NOT_FOUND';
  8213. throw e;
  8214. }
  8215. return map[req];
  8216. }
  8217. webpackContext.keys = function webpackContextKeys() {
  8218. return Object.keys(map);
  8219. };
  8220. webpackContext.resolve = webpackContextResolve;
  8221. module.exports = webpackContext;
  8222. webpackContext.id = 17;
  8223. /***/ }),
  8224. /* 18 */
  8225. /*!***************************************************************************!*\
  8226. !*** D:/Program Files/tourism/uni_applet/util/cryptojs-master/lib/AES.js ***!
  8227. \***************************************************************************/
  8228. /*! no static exports found */
  8229. /***/ (function(module, exports, __webpack_require__) {
  8230. (function () {
  8231. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 16).Crypto : window.Crypto;
  8232. // Shortcuts
  8233. var util = C.util,
  8234. charenc = C.charenc,
  8235. UTF8 = charenc.UTF8;
  8236. // Precomputed SBOX
  8237. var SBOX = [0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5,
  8238. 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76,
  8239. 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
  8240. 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0,
  8241. 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc,
  8242. 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15,
  8243. 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a,
  8244. 0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75,
  8245. 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0,
  8246. 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84,
  8247. 0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b,
  8248. 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf,
  8249. 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85,
  8250. 0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8,
  8251. 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5,
  8252. 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2,
  8253. 0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17,
  8254. 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73,
  8255. 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88,
  8256. 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb,
  8257. 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c,
  8258. 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79,
  8259. 0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9,
  8260. 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08,
  8261. 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6,
  8262. 0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a,
  8263. 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e,
  8264. 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e,
  8265. 0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94,
  8266. 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf,
  8267. 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68,
  8268. 0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16];
  8269. // Compute inverse SBOX lookup table
  8270. for (var INVSBOX = [], i = 0; i < 256; i++) {INVSBOX[SBOX[i]] = i;}
  8271. // Compute mulitplication in GF(2^8) lookup tables
  8272. var MULT2 = [],
  8273. MULT3 = [],
  8274. MULT9 = [],
  8275. MULTB = [],
  8276. MULTD = [],
  8277. MULTE = [];
  8278. function xtime(a, b) {
  8279. for (var result = 0, i = 0; i < 8; i++) {
  8280. if (b & 1) result ^= a;
  8281. var hiBitSet = a & 0x80;
  8282. a = a << 1 & 0xFF;
  8283. if (hiBitSet) a ^= 0x1b;
  8284. b >>>= 1;
  8285. }
  8286. return result;
  8287. }
  8288. for (var i = 0; i < 256; i++) {
  8289. MULT2[i] = xtime(i, 2);
  8290. MULT3[i] = xtime(i, 3);
  8291. MULT9[i] = xtime(i, 9);
  8292. MULTB[i] = xtime(i, 0xB);
  8293. MULTD[i] = xtime(i, 0xD);
  8294. MULTE[i] = xtime(i, 0xE);
  8295. }
  8296. // Precomputed RCon lookup
  8297. var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];
  8298. // Inner state
  8299. var state = [[], [], [], []],
  8300. keylength,
  8301. nrounds,
  8302. keyschedule;
  8303. var AES = C.AES = {
  8304. /**
  8305. * Public API
  8306. */
  8307. encrypt: function encrypt(message, password, options) {
  8308. options = options || {};
  8309. // Determine mode
  8310. var mode = options.mode || new C.mode.OFB();
  8311. // Allow mode to override options
  8312. if (mode.fixOptions) mode.fixOptions(options);
  8313. var
  8314. // Convert to bytes if message is a string
  8315. m =
  8316. message.constructor == String ?
  8317. UTF8.stringToBytes(message) :
  8318. message,
  8319. // Generate random IV
  8320. iv = options.iv || util.randomBytes(AES._blocksize * 4),
  8321. // Generate key
  8322. k =
  8323. password.constructor == String ?
  8324. // Derive key from passphrase
  8325. C.PBKDF2(password, iv, 32, { asBytes: true }) :
  8326. // else, assume byte array representing cryptographic key
  8327. password;
  8328. // Encrypt
  8329. AES._init(k);
  8330. mode.encrypt(AES, m, iv);
  8331. // Return ciphertext
  8332. m = options.iv ? m : iv.concat(m);
  8333. return options && options.asBytes ? m : util.bytesToBase64(m);
  8334. },
  8335. decrypt: function decrypt(ciphertext, password, options) {
  8336. options = options || {};
  8337. // Determine mode
  8338. var mode = options.mode || new C.mode.OFB();
  8339. // Allow mode to override options
  8340. if (mode.fixOptions) mode.fixOptions(options);
  8341. var
  8342. // Convert to bytes if ciphertext is a string
  8343. c =
  8344. ciphertext.constructor == String ?
  8345. util.base64ToBytes(ciphertext) :
  8346. ciphertext,
  8347. // Separate IV and message
  8348. iv = options.iv || c.splice(0, AES._blocksize * 4),
  8349. // Generate key
  8350. k =
  8351. password.constructor == String ?
  8352. // Derive key from passphrase
  8353. C.PBKDF2(password, iv, 32, { asBytes: true }) :
  8354. // else, assume byte array representing cryptographic key
  8355. password;
  8356. // Decrypt
  8357. AES._init(k);
  8358. mode.decrypt(AES, c, iv);
  8359. // Return plaintext
  8360. return options && options.asBytes ? c : UTF8.bytesToString(c);
  8361. },
  8362. /**
  8363. * Package private methods and properties
  8364. */
  8365. _blocksize: 4,
  8366. _encryptblock: function _encryptblock(m, offset) {
  8367. // Set input
  8368. for (var row = 0; row < AES._blocksize; row++) {
  8369. for (var col = 0; col < 4; col++) {
  8370. state[row][col] = m[offset + col * 4 + row];}
  8371. }
  8372. // Add round key
  8373. for (var row = 0; row < 4; row++) {
  8374. for (var col = 0; col < 4; col++) {
  8375. state[row][col] ^= keyschedule[col][row];}
  8376. }
  8377. for (var round = 1; round < nrounds; round++) {
  8378. // Sub bytes
  8379. for (var row = 0; row < 4; row++) {
  8380. for (var col = 0; col < 4; col++) {
  8381. state[row][col] = SBOX[state[row][col]];}
  8382. }
  8383. // Shift rows
  8384. state[1].push(state[1].shift());
  8385. state[2].push(state[2].shift());
  8386. state[2].push(state[2].shift());
  8387. state[3].unshift(state[3].pop());
  8388. // Mix columns
  8389. for (var col = 0; col < 4; col++) {
  8390. var s0 = state[0][col],
  8391. s1 = state[1][col],
  8392. s2 = state[2][col],
  8393. s3 = state[3][col];
  8394. state[0][col] = MULT2[s0] ^ MULT3[s1] ^ s2 ^ s3;
  8395. state[1][col] = s0 ^ MULT2[s1] ^ MULT3[s2] ^ s3;
  8396. state[2][col] = s0 ^ s1 ^ MULT2[s2] ^ MULT3[s3];
  8397. state[3][col] = MULT3[s0] ^ s1 ^ s2 ^ MULT2[s3];
  8398. }
  8399. // Add round key
  8400. for (var row = 0; row < 4; row++) {
  8401. for (var col = 0; col < 4; col++) {
  8402. state[row][col] ^= keyschedule[round * 4 + col][row];}
  8403. }
  8404. }
  8405. // Sub bytes
  8406. for (var row = 0; row < 4; row++) {
  8407. for (var col = 0; col < 4; col++) {
  8408. state[row][col] = SBOX[state[row][col]];}
  8409. }
  8410. // Shift rows
  8411. state[1].push(state[1].shift());
  8412. state[2].push(state[2].shift());
  8413. state[2].push(state[2].shift());
  8414. state[3].unshift(state[3].pop());
  8415. // Add round key
  8416. for (var row = 0; row < 4; row++) {
  8417. for (var col = 0; col < 4; col++) {
  8418. state[row][col] ^= keyschedule[nrounds * 4 + col][row];}
  8419. }
  8420. // Set output
  8421. for (var row = 0; row < AES._blocksize; row++) {
  8422. for (var col = 0; col < 4; col++) {
  8423. m[offset + col * 4 + row] = state[row][col];}
  8424. }
  8425. },
  8426. _decryptblock: function _decryptblock(c, offset) {
  8427. // Set input
  8428. for (var row = 0; row < AES._blocksize; row++) {
  8429. for (var col = 0; col < 4; col++) {
  8430. state[row][col] = c[offset + col * 4 + row];}
  8431. }
  8432. // Add round key
  8433. for (var row = 0; row < 4; row++) {
  8434. for (var col = 0; col < 4; col++) {
  8435. state[row][col] ^= keyschedule[nrounds * 4 + col][row];}
  8436. }
  8437. for (var round = 1; round < nrounds; round++) {
  8438. // Inv shift rows
  8439. state[1].unshift(state[1].pop());
  8440. state[2].push(state[2].shift());
  8441. state[2].push(state[2].shift());
  8442. state[3].push(state[3].shift());
  8443. // Inv sub bytes
  8444. for (var row = 0; row < 4; row++) {
  8445. for (var col = 0; col < 4; col++) {
  8446. state[row][col] = INVSBOX[state[row][col]];}
  8447. }
  8448. // Add round key
  8449. for (var row = 0; row < 4; row++) {
  8450. for (var col = 0; col < 4; col++) {
  8451. state[row][col] ^= keyschedule[(nrounds - round) * 4 + col][row];}
  8452. }
  8453. // Inv mix columns
  8454. for (var col = 0; col < 4; col++) {
  8455. var s0 = state[0][col],
  8456. s1 = state[1][col],
  8457. s2 = state[2][col],
  8458. s3 = state[3][col];
  8459. state[0][col] = MULTE[s0] ^ MULTB[s1] ^ MULTD[s2] ^ MULT9[s3];
  8460. state[1][col] = MULT9[s0] ^ MULTE[s1] ^ MULTB[s2] ^ MULTD[s3];
  8461. state[2][col] = MULTD[s0] ^ MULT9[s1] ^ MULTE[s2] ^ MULTB[s3];
  8462. state[3][col] = MULTB[s0] ^ MULTD[s1] ^ MULT9[s2] ^ MULTE[s3];
  8463. }
  8464. }
  8465. // Inv shift rows
  8466. state[1].unshift(state[1].pop());
  8467. state[2].push(state[2].shift());
  8468. state[2].push(state[2].shift());
  8469. state[3].push(state[3].shift());
  8470. // Inv sub bytes
  8471. for (var row = 0; row < 4; row++) {
  8472. for (var col = 0; col < 4; col++) {
  8473. state[row][col] = INVSBOX[state[row][col]];}
  8474. }
  8475. // Add round key
  8476. for (var row = 0; row < 4; row++) {
  8477. for (var col = 0; col < 4; col++) {
  8478. state[row][col] ^= keyschedule[col][row];}
  8479. }
  8480. // Set output
  8481. for (var row = 0; row < AES._blocksize; row++) {
  8482. for (var col = 0; col < 4; col++) {
  8483. c[offset + col * 4 + row] = state[row][col];}
  8484. }
  8485. },
  8486. /**
  8487. * Private methods
  8488. */
  8489. _init: function _init(k) {
  8490. keylength = k.length / 4;
  8491. nrounds = keylength + 6;
  8492. AES._keyexpansion(k);
  8493. },
  8494. // Generate a key schedule
  8495. _keyexpansion: function _keyexpansion(k) {
  8496. keyschedule = [];
  8497. for (var row = 0; row < keylength; row++) {
  8498. keyschedule[row] = [
  8499. k[row * 4],
  8500. k[row * 4 + 1],
  8501. k[row * 4 + 2],
  8502. k[row * 4 + 3]];
  8503. }
  8504. for (var row = keylength; row < AES._blocksize * (nrounds + 1); row++) {
  8505. var temp = [
  8506. keyschedule[row - 1][0],
  8507. keyschedule[row - 1][1],
  8508. keyschedule[row - 1][2],
  8509. keyschedule[row - 1][3]];
  8510. if (row % keylength == 0) {
  8511. // Rot word
  8512. temp.push(temp.shift());
  8513. // Sub word
  8514. temp[0] = SBOX[temp[0]];
  8515. temp[1] = SBOX[temp[1]];
  8516. temp[2] = SBOX[temp[2]];
  8517. temp[3] = SBOX[temp[3]];
  8518. temp[0] ^= RCON[row / keylength];
  8519. } else if (keylength > 6 && row % keylength == 4) {
  8520. // Sub word
  8521. temp[0] = SBOX[temp[0]];
  8522. temp[1] = SBOX[temp[1]];
  8523. temp[2] = SBOX[temp[2]];
  8524. temp[3] = SBOX[temp[3]];
  8525. }
  8526. keyschedule[row] = [
  8527. keyschedule[row - keylength][0] ^ temp[0],
  8528. keyschedule[row - keylength][1] ^ temp[1],
  8529. keyschedule[row - keylength][2] ^ temp[2],
  8530. keyschedule[row - keylength][3] ^ temp[3]];
  8531. }
  8532. } };
  8533. })();
  8534. /***/ }),
  8535. /* 19 */
  8536. /*!**********************************************************************************!*\
  8537. !*** D:/Program Files/tourism/uni_applet/util/cryptojs-master/lib/BlockModes.js ***!
  8538. \**********************************************************************************/
  8539. /*! no static exports found */
  8540. /***/ (function(module, exports, __webpack_require__) {
  8541. /*!
  8542. * Crypto-JS contribution from Simon Greatrix
  8543. */
  8544. (function () {
  8545. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 16).Crypto : window.Crypto;
  8546. // Create pad namespace
  8547. var C_pad = C.pad = {};
  8548. // Calculate the number of padding bytes required.
  8549. function _requiredPadding(cipher, message) {
  8550. var blockSizeInBytes = cipher._blocksize * 4;
  8551. var reqd = blockSizeInBytes - message.length % blockSizeInBytes;
  8552. return reqd;
  8553. };
  8554. // Remove padding when the final byte gives the number of padding bytes.
  8555. var _unpadLength = function _unpadLength(message) {
  8556. var pad = message.pop();
  8557. for (var i = 1; i < pad; i++) {
  8558. message.pop();
  8559. }
  8560. };
  8561. // No-operation padding, used for stream ciphers
  8562. C_pad.NoPadding = {
  8563. pad: function pad(cipher, message) {},
  8564. unpad: function unpad(message) {} };
  8565. // Zero Padding.
  8566. //
  8567. // If the message is not an exact number of blocks, the final block is
  8568. // completed with 0x00 bytes. There is no unpadding.
  8569. C_pad.ZeroPadding = {
  8570. pad: function pad(cipher, message) {
  8571. var blockSizeInBytes = cipher._blocksize * 4;
  8572. var reqd = message.length % blockSizeInBytes;
  8573. if (reqd != 0) {
  8574. for (reqd = blockSizeInBytes - reqd; reqd > 0; reqd--) {
  8575. message.push(0x00);
  8576. }
  8577. }
  8578. },
  8579. unpad: function unpad(message) {} };
  8580. // ISO/IEC 7816-4 padding.
  8581. //
  8582. // Pads the plain text with an 0x80 byte followed by as many 0x00
  8583. // bytes are required to complete the block.
  8584. C_pad.iso7816 = {
  8585. pad: function pad(cipher, message) {
  8586. var reqd = _requiredPadding(cipher, message);
  8587. message.push(0x80);
  8588. for (; reqd > 1; reqd--) {
  8589. message.push(0x00);
  8590. }
  8591. },
  8592. unpad: function unpad(message) {
  8593. while (message.pop() != 0x80) {}
  8594. } };
  8595. // ANSI X.923 padding
  8596. //
  8597. // The final block is padded with zeros except for the last byte of the
  8598. // last block which contains the number of padding bytes.
  8599. C_pad.ansix923 = {
  8600. pad: function pad(cipher, message) {
  8601. var reqd = _requiredPadding(cipher, message);
  8602. for (var i = 1; i < reqd; i++) {
  8603. message.push(0x00);
  8604. }
  8605. message.push(reqd);
  8606. },
  8607. unpad: _unpadLength };
  8608. // ISO 10126
  8609. //
  8610. // The final block is padded with random bytes except for the last
  8611. // byte of the last block which contains the number of padding bytes.
  8612. C_pad.iso10126 = {
  8613. pad: function pad(cipher, message) {
  8614. var reqd = _requiredPadding(cipher, message);
  8615. for (var i = 1; i < reqd; i++) {
  8616. message.push(Math.floor(Math.random() * 256));
  8617. }
  8618. message.push(reqd);
  8619. },
  8620. unpad: _unpadLength };
  8621. // PKCS7 padding
  8622. //
  8623. // PKCS7 is described in RFC 5652. Padding is in whole bytes. The
  8624. // value of each added byte is the number of bytes that are added,
  8625. // i.e. N bytes, each of value N are added.
  8626. C_pad.pkcs7 = {
  8627. pad: function pad(cipher, message) {
  8628. var reqd = _requiredPadding(cipher, message);
  8629. for (var i = 0; i < reqd; i++) {
  8630. message.push(reqd);
  8631. }
  8632. },
  8633. unpad: _unpadLength };
  8634. // Create mode namespace
  8635. var C_mode = C.mode = {};
  8636. /**
  8637. * Mode base "class".
  8638. */
  8639. var Mode = C_mode.Mode = function (padding) {
  8640. if (padding) {
  8641. this._padding = padding;
  8642. }
  8643. };
  8644. Mode.prototype = {
  8645. encrypt: function encrypt(cipher, m, iv) {
  8646. this._padding.pad(cipher, m);
  8647. this._doEncrypt(cipher, m, iv);
  8648. },
  8649. decrypt: function decrypt(cipher, m, iv) {
  8650. this._doDecrypt(cipher, m, iv);
  8651. this._padding.unpad(m);
  8652. },
  8653. // Default padding
  8654. _padding: C_pad.iso7816 };
  8655. /**
  8656. * Electronic Code Book mode.
  8657. *
  8658. * ECB applies the cipher directly against each block of the input.
  8659. *
  8660. * ECB does not require an initialization vector.
  8661. */
  8662. var ECB = C_mode.ECB = function () {
  8663. // Call parent constructor
  8664. Mode.apply(this, arguments);
  8665. };
  8666. // Inherit from Mode
  8667. var ECB_prototype = ECB.prototype = new Mode();
  8668. // Concrete steps for Mode template
  8669. ECB_prototype._doEncrypt = function (cipher, m, iv) {
  8670. var blockSizeInBytes = cipher._blocksize * 4;
  8671. // Encrypt each block
  8672. for (var offset = 0; offset < m.length; offset += blockSizeInBytes) {
  8673. cipher._encryptblock(m, offset);
  8674. }
  8675. };
  8676. ECB_prototype._doDecrypt = function (cipher, c, iv) {
  8677. var blockSizeInBytes = cipher._blocksize * 4;
  8678. // Decrypt each block
  8679. for (var offset = 0; offset < c.length; offset += blockSizeInBytes) {
  8680. cipher._decryptblock(c, offset);
  8681. }
  8682. };
  8683. // ECB never uses an IV
  8684. ECB_prototype.fixOptions = function (options) {
  8685. options.iv = [];
  8686. };
  8687. /**
  8688. * Cipher block chaining
  8689. *
  8690. * The first block is XORed with the IV. Subsequent blocks are XOR with the
  8691. * previous cipher output.
  8692. */
  8693. var CBC = C_mode.CBC = function () {
  8694. // Call parent constructor
  8695. Mode.apply(this, arguments);
  8696. };
  8697. // Inherit from Mode
  8698. var CBC_prototype = CBC.prototype = new Mode();
  8699. // Concrete steps for Mode template
  8700. CBC_prototype._doEncrypt = function (cipher, m, iv) {
  8701. var blockSizeInBytes = cipher._blocksize * 4;
  8702. // Encrypt each block
  8703. for (var offset = 0; offset < m.length; offset += blockSizeInBytes) {
  8704. if (offset == 0) {
  8705. // XOR first block using IV
  8706. for (var i = 0; i < blockSizeInBytes; i++) {
  8707. m[i] ^= iv[i];}
  8708. } else {
  8709. // XOR this block using previous crypted block
  8710. for (var i = 0; i < blockSizeInBytes; i++) {
  8711. m[offset + i] ^= m[offset + i - blockSizeInBytes];}
  8712. }
  8713. // Encrypt block
  8714. cipher._encryptblock(m, offset);
  8715. }
  8716. };
  8717. CBC_prototype._doDecrypt = function (cipher, c, iv) {
  8718. var blockSizeInBytes = cipher._blocksize * 4;
  8719. // At the start, the previously crypted block is the IV
  8720. var prevCryptedBlock = iv;
  8721. // Decrypt each block
  8722. for (var offset = 0; offset < c.length; offset += blockSizeInBytes) {
  8723. // Save this crypted block
  8724. var thisCryptedBlock = c.slice(offset, offset + blockSizeInBytes);
  8725. // Decrypt block
  8726. cipher._decryptblock(c, offset);
  8727. // XOR decrypted block using previous crypted block
  8728. for (var i = 0; i < blockSizeInBytes; i++) {
  8729. c[offset + i] ^= prevCryptedBlock[i];
  8730. }
  8731. prevCryptedBlock = thisCryptedBlock;
  8732. }
  8733. };
  8734. /**
  8735. * Cipher feed back
  8736. *
  8737. * The cipher output is XORed with the plain text to produce the cipher output,
  8738. * which is then fed back into the cipher to produce a bit pattern to XOR the
  8739. * next block with.
  8740. *
  8741. * This is a stream cipher mode and does not require padding.
  8742. */
  8743. var CFB = C_mode.CFB = function () {
  8744. // Call parent constructor
  8745. Mode.apply(this, arguments);
  8746. };
  8747. // Inherit from Mode
  8748. var CFB_prototype = CFB.prototype = new Mode();
  8749. // Override padding
  8750. CFB_prototype._padding = C_pad.NoPadding;
  8751. // Concrete steps for Mode template
  8752. CFB_prototype._doEncrypt = function (cipher, m, iv) {
  8753. var blockSizeInBytes = cipher._blocksize * 4,
  8754. keystream = iv.slice(0);
  8755. // Encrypt each byte
  8756. for (var i = 0; i < m.length; i++) {
  8757. var j = i % blockSizeInBytes;
  8758. if (j == 0) cipher._encryptblock(keystream, 0);
  8759. m[i] ^= keystream[j];
  8760. keystream[j] = m[i];
  8761. }
  8762. };
  8763. CFB_prototype._doDecrypt = function (cipher, c, iv) {
  8764. var blockSizeInBytes = cipher._blocksize * 4,
  8765. keystream = iv.slice(0);
  8766. // Encrypt each byte
  8767. for (var i = 0; i < c.length; i++) {
  8768. var j = i % blockSizeInBytes;
  8769. if (j == 0) cipher._encryptblock(keystream, 0);
  8770. var b = c[i];
  8771. c[i] ^= keystream[j];
  8772. keystream[j] = b;
  8773. }
  8774. };
  8775. /**
  8776. * Output feed back
  8777. *
  8778. * The cipher repeatedly encrypts its own output. The output is XORed with the
  8779. * plain text to produce the cipher text.
  8780. *
  8781. * This is a stream cipher mode and does not require padding.
  8782. */
  8783. var OFB = C_mode.OFB = function () {
  8784. // Call parent constructor
  8785. Mode.apply(this, arguments);
  8786. };
  8787. // Inherit from Mode
  8788. var OFB_prototype = OFB.prototype = new Mode();
  8789. // Override padding
  8790. OFB_prototype._padding = C_pad.NoPadding;
  8791. // Concrete steps for Mode template
  8792. OFB_prototype._doEncrypt = function (cipher, m, iv) {
  8793. var blockSizeInBytes = cipher._blocksize * 4,
  8794. keystream = iv.slice(0);
  8795. // Encrypt each byte
  8796. for (var i = 0; i < m.length; i++) {
  8797. // Generate keystream
  8798. if (i % blockSizeInBytes == 0)
  8799. cipher._encryptblock(keystream, 0);
  8800. // Encrypt byte
  8801. m[i] ^= keystream[i % blockSizeInBytes];
  8802. }
  8803. };
  8804. OFB_prototype._doDecrypt = OFB_prototype._doEncrypt;
  8805. /**
  8806. * Counter
  8807. * @author Gergely Risko
  8808. *
  8809. * After every block the last 4 bytes of the IV is increased by one
  8810. * with carry and that IV is used for the next block.
  8811. *
  8812. * This is a stream cipher mode and does not require padding.
  8813. */
  8814. var CTR = C_mode.CTR = function () {
  8815. // Call parent constructor
  8816. Mode.apply(this, arguments);
  8817. };
  8818. // Inherit from Mode
  8819. var CTR_prototype = CTR.prototype = new Mode();
  8820. // Override padding
  8821. CTR_prototype._padding = C_pad.NoPadding;
  8822. CTR_prototype._doEncrypt = function (cipher, m, iv) {
  8823. var blockSizeInBytes = cipher._blocksize * 4;
  8824. var counter = iv.slice(0);
  8825. for (var i = 0; i < m.length;) {
  8826. // do not lose iv
  8827. var keystream = counter.slice(0);
  8828. // Generate keystream for next block
  8829. cipher._encryptblock(keystream, 0);
  8830. // XOR keystream with block
  8831. for (var j = 0; i < m.length && j < blockSizeInBytes; j++, i++) {
  8832. m[i] ^= keystream[j];
  8833. }
  8834. // Increase counter
  8835. if (++counter[blockSizeInBytes - 1] == 256) {
  8836. counter[blockSizeInBytes - 1] = 0;
  8837. if (++counter[blockSizeInBytes - 2] == 256) {
  8838. counter[blockSizeInBytes - 2] = 0;
  8839. if (++counter[blockSizeInBytes - 3] == 256) {
  8840. counter[blockSizeInBytes - 3] = 0;
  8841. ++counter[blockSizeInBytes - 4];
  8842. }
  8843. }
  8844. }
  8845. }
  8846. };
  8847. CTR_prototype._doDecrypt = CTR_prototype._doEncrypt;
  8848. })();
  8849. /***/ }),
  8850. /* 20 */
  8851. /*!**********************************************************************************!*\
  8852. !*** D:/Program Files/tourism/uni_applet/util/cryptojs-master/lib/CryptoMath.js ***!
  8853. \**********************************************************************************/
  8854. /*! no static exports found */
  8855. /***/ (function(module, exports, __webpack_require__) {
  8856. (function () {
  8857. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 16).Crypto : window.Crypto;
  8858. // Shortcut
  8859. var util = C.util;
  8860. // Convert n to unsigned 32-bit integer
  8861. util.u32 = function (n) {
  8862. return n >>> 0;
  8863. };
  8864. // Unsigned 32-bit addition
  8865. util.add = function () {
  8866. var result = this.u32(arguments[0]);
  8867. for (var i = 1; i < arguments.length; i++) {
  8868. result = this.u32(result + this.u32(arguments[i]));}
  8869. return result;
  8870. };
  8871. // Unsigned 32-bit multiplication
  8872. util.mult = function (m, n) {
  8873. return this.add((n & 0xFFFF0000) * m,
  8874. (n & 0x0000FFFF) * m);
  8875. };
  8876. // Unsigned 32-bit greater than (>) comparison
  8877. util.gt = function (m, n) {
  8878. return this.u32(m) > this.u32(n);
  8879. };
  8880. // Unsigned 32-bit less than (<) comparison
  8881. util.lt = function (m, n) {
  8882. return this.u32(m) < this.u32(n);
  8883. };
  8884. })();
  8885. /***/ }),
  8886. /* 21 */
  8887. /*!***************************************************************************!*\
  8888. !*** D:/Program Files/tourism/uni_applet/util/cryptojs-master/lib/DES.js ***!
  8889. \***************************************************************************/
  8890. /*! no static exports found */
  8891. /***/ (function(module, exports, __webpack_require__) {
  8892. /**
  8893. * Definition of Data Encryption Standard (DES) taken from:
  8894. * http://www.itl.nist.gov/fipspubs/fip46-2.htm
  8895. */
  8896. (function () {
  8897. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 16).Crypto : window.Crypto;
  8898. // Shortcuts
  8899. var util = C.util,charenc = C.charenc,UTF8 = charenc.UTF8;
  8900. /***************************************************************************
  8901. *
  8902. * DES Key Schedule.
  8903. *
  8904. * The Key consists of 16 sub-keys of 48 bits each. As each sub-key is
  8905. * applied to an expanded 32-bit value where each 4 bits of input is
  8906. * expanded into 6 bits of output the sub-key can be broken down into 8
  8907. * 32-bit values which allows the key to be used without expansion.
  8908. *
  8909. * To create the 16 sub-keys, 56 bits are selected from the input 64 bit key
  8910. * according to <i>PC1</i>. Each sub-key is generated by left rotating the
  8911. * bits a different amount and then selecting 48 bits according to <i>PC2</i>.
  8912. *
  8913. **************************************************************************/
  8914. var KeySchedule;
  8915. /**
  8916. * Representation of a DES key schedule.
  8917. *
  8918. * @param {Array
  8919. * of 8 bytes} key The cipher key
  8920. *
  8921. * @constructor
  8922. */
  8923. KeySchedule = function KeySchedule(key) {
  8924. /**
  8925. * The schedule of 16 keys
  8926. */
  8927. this.keys = new Array(16);
  8928. this._initialiseKeys(key);
  8929. };
  8930. /**
  8931. * Permuted Choice 1 (PC1) byte offsets into the key. Each of the 56 entries
  8932. * selects one bit of DES's 56 bit key.
  8933. * <p>
  8934. *
  8935. * <pre>
  8936. * The PC1 is defined as:
  8937. *
  8938. * 57, 49, 41, 33, 25, 17, 9,
  8939. * 1, 58, 50, 42, 34, 26, 18,
  8940. * 10, 2, 59, 51, 43, 35, 27,
  8941. * 19, 11, 3, 60, 52, 44, 36,
  8942. * 63, 55, 47, 39, 31, 23, 15,
  8943. * 7, 62, 54, 46, 38, 30, 22,
  8944. * 14, 6, 61, 53, 45, 37, 29,
  8945. * 21, 13, 5, 28, 20, 12, 4
  8946. * </pre>
  8947. *
  8948. * We represent this as an offset into an 8-byte array and a bit mask upon
  8949. * that byte. For example 57=(7*8)+1 so is the first (MSB) of the 7th byte.
  8950. *
  8951. * @constant
  8952. */
  8953. KeySchedule.PC1_offsets = [7, 6, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 0,
  8954. 7, 6, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 7, 6, 5, 4, 3, 2, 1, 0, 7, 6,
  8955. 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 0, 3, 2, 1, 0];
  8956. /**
  8957. * Permuted Choice 1 (PC1) bit masks. Each of the 56 entries selects one bit
  8958. * of DES's 56 bit key.
  8959. *
  8960. * @constant
  8961. */
  8962. KeySchedule.PC1_masks = [128, 128, 128, 128, 128, 128, 128, 128, 64, 64,
  8963. 64, 64, 64, 64, 64, 64, 32, 32, 32, 32, 32, 32, 32, 32, 16, 16, 16,
  8964. 16, 2, 2, 2, 2, 2, 2, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 8, 8, 8, 8, 8,
  8965. 8, 8, 8, 16, 16, 16, 16];
  8966. /**
  8967. * Permuted Choice 2 (PC2) selects the active 48 bits from the 56 bits of
  8968. * the key.
  8969. * <p>
  8970. *
  8971. * <pre>
  8972. * The PC2 is defined as:
  8973. *
  8974. * 14, 17, 11, 24, 1, 5,
  8975. * 3, 28, 15, 6, 21, 10,
  8976. * 23, 19, 12, 4, 26, 8,
  8977. * 16, 7, 27, 20, 13, 2,
  8978. * 41, 52, 31, 37, 47, 55,
  8979. * 30, 40, 51, 45, 33, 48,
  8980. * 44, 49, 39, 56, 34, 53,
  8981. * 46, 42, 50, 36, 29, 32
  8982. * </pre>
  8983. *
  8984. * We invert the choice to specify what each bit adds to each 6-bit value of
  8985. * the key. For example, bit 1 is the 5th bit selected so this add 2 to the
  8986. * first 6-bit value.
  8987. *
  8988. * @constant
  8989. */
  8990. KeySchedule.PC2_offsets1 = [0, 3, 1, 2, 0, 1, 3, 2, 0, 1, 0, 2, 3, 0, 1,
  8991. 3, 0, 0, 2, 3, 1, 0, 2, 0, 0, 2, 3, 1];
  8992. /**
  8993. * PC2 offsets for 2nd block.
  8994. *
  8995. * @constant
  8996. */
  8997. KeySchedule.PC2_offsets2 = [7, 5, 4, 7, 5, 6, 0, 7, 4, 0, 6, 5, 4, 7, 0,
  8998. 6, 5, 7, 4, 5, 6, 7, 5, 4, 6, 0, 4, 6];
  8999. /**
  9000. * Permuted Choice 2 (PC2) masks for 1st block.
  9001. *
  9002. * @constant
  9003. */
  9004. KeySchedule.PC2_masks1 = [2, 1, 32, 4, 1, 4, 16, 1, 0, 1, 8, 8, 2, 32, 8,
  9005. 32, 16, 0, 16, 4, 2, 0, 32, 4, 0, 2, 8, 16];
  9006. /**
  9007. * PC2 masks for 2nd block.
  9008. *
  9009. * @constant
  9010. */
  9011. KeySchedule.PC2_masks2 = [2, 32, 8, 1, 2, 2, 0, 4, 4, 0, 8, 16, 32, 16, 0,
  9012. 32, 4, 32, 2, 1, 16, 8, 8, 16, 1, 0, 1, 4];
  9013. /**
  9014. * Cumulative key shifts.
  9015. *
  9016. * @constant
  9017. */
  9018. KeySchedule.keyShifts = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23,
  9019. 25, 27, 28];
  9020. KeySchedule.prototype._initialiseKeys = function (key) {
  9021. var i;
  9022. // extract 56 key bits in order determined by PC1
  9023. var bits = new Array(56);
  9024. for (i = 0; i < 56; i++) {
  9025. bits[i] = (key[KeySchedule.PC1_offsets[i]] & KeySchedule.PC1_masks[i]) != 0;
  9026. }
  9027. // split 56 bits into two 28-bit chunks
  9028. var bits1 = bits.slice(0, 28);
  9029. var bits2 = bits.slice(28, 56);
  9030. // duplicate each half to allow for easy bit shifts
  9031. bits1 = bits1.concat(bits1);
  9032. bits2 = bits2.concat(bits2);
  9033. // assemble the 16 keys
  9034. for (i = 0; i < 16; i++) {
  9035. var k = [0, 0, 0, 0, 0, 0, 0, 0];
  9036. // select the bits of the key according to PC2
  9037. var s = KeySchedule.keyShifts[i];
  9038. for (var j = 0; j < 28; j++) {
  9039. if (bits1[j + s]) {
  9040. k[KeySchedule.PC2_offsets1[j]] += KeySchedule.PC2_masks1[j];
  9041. }
  9042. if (bits2[j + s]) {
  9043. k[KeySchedule.PC2_offsets2[j]] += KeySchedule.PC2_masks2[j];
  9044. }
  9045. }
  9046. // Scale each of the 8 blocks to a 32-bit mask.
  9047. k[0] = ((k[0] & 0x1f) << 27) + ((k[0] & 0x20) >> 5);
  9048. for (var j = 1; j <= 6; j++) {
  9049. k[j] = k[j] << 27 - 4 * j;
  9050. }
  9051. k[7] = ((k[7] & 0x3e) >> 1) + ((k[7] & 0x1) << 31);
  9052. this.keys[i] = k;
  9053. }
  9054. };
  9055. /**
  9056. * Retrieve the key for a specified round
  9057. *
  9058. * @param i
  9059. * the round
  9060. * @returns the key
  9061. */
  9062. KeySchedule.prototype.getKey = function (i) {
  9063. return this.keys[i];
  9064. };
  9065. /***************************************************************************
  9066. *
  9067. * DES Engine State
  9068. *
  9069. **************************************************************************/
  9070. var State;
  9071. /**
  9072. * The algorithm's state. DES operates on two sets of 32-bits, with each
  9073. * block of 32-bits treated as a single number.
  9074. *
  9075. * @class
  9076. */
  9077. State = function State() {
  9078. /** The LHS of the Feistel scheme */
  9079. this.lhs = 0;
  9080. /** The RHS of the Feistel scheme */
  9081. this.rhs = 0;
  9082. };
  9083. /**
  9084. * The masks that select the SBOX input. Each SBOX accepts 6 bits from the
  9085. * input.
  9086. *
  9087. * @constant
  9088. */
  9089. State.SBOX_MASK = [0xf8000001, 0x1f800000, 0x01f80000, 0x001f8000,
  9090. 0x0001f800, 0x00001f80, 0x000001f8, 0x8000001f];
  9091. /**
  9092. * The SBOXes. The 8 SBOXes each map 6 bit masked bit of the input to 4 bits
  9093. * of output. These SBOXes include the post SBOX permutation and benefit
  9094. * from JavaScript's sparse arrays to make specifying the input match
  9095. * simple.
  9096. *
  9097. * @constant
  9098. */
  9099. State.SBOX = new Array(8);
  9100. var SBOX = State.SBOX;
  9101. SBOX[0] = new Array();
  9102. SBOX[0][0] = 0x808200; // 0 (0, 0) = 14
  9103. SBOX[0][268435456] = 0x8000; // 10000000 (0, 1) = 4
  9104. SBOX[0][536870912] = 0x808002; // 20000000 (0, 2) = 13
  9105. SBOX[0][805306368] = 0x2; // 30000000 (0, 3) = 1
  9106. SBOX[0][1073741824] = 0x200; // 40000000 (0, 4) = 2
  9107. SBOX[0][1342177280] = 0x808202; // 50000000 (0, 5) = 15
  9108. SBOX[0][1610612736] = 0x800202; // 60000000 (0, 6) = 11
  9109. SBOX[0][1879048192] = 0x800000; // 70000000 (0, 7) = 8
  9110. SBOX[0][-2147483648] = 0x202; // 80000000 (0, 8) = 3
  9111. SBOX[0][-1879048192] = 0x800200; // 90000000 (0, 9) = 10
  9112. SBOX[0][-1610612736] = 0x8200; // a0000000 (0, 10) = 6
  9113. SBOX[0][-1342177280] = 0x808000; // b0000000 (0, 11) = 12
  9114. SBOX[0][-1073741824] = 0x8002; // c0000000 (0, 12) = 5
  9115. SBOX[0][-805306368] = 0x800002; // d0000000 (0, 13) = 9
  9116. SBOX[0][-536870912] = 0x0; // e0000000 (0, 14) = 0
  9117. SBOX[0][-268435456] = 0x8202; // f0000000 (0, 15) = 7
  9118. SBOX[0][134217728] = 0x0; // 8000000 (1, 0) = 0
  9119. SBOX[0][402653184] = 0x808202; // 18000000 (1, 1) = 15
  9120. SBOX[0][671088640] = 0x8202; // 28000000 (1, 2) = 7
  9121. SBOX[0][939524096] = 0x8000; // 38000000 (1, 3) = 4
  9122. SBOX[0][1207959552] = 0x808200; // 48000000 (1, 4) = 14
  9123. SBOX[0][1476395008] = 0x200; // 58000000 (1, 5) = 2
  9124. SBOX[0][1744830464] = 0x808002; // 68000000 (1, 6) = 13
  9125. SBOX[0][2013265920] = 0x2; // 78000000 (1, 7) = 1
  9126. SBOX[0][-2013265920] = 0x800200; // 88000000 (1, 8) = 10
  9127. SBOX[0][-1744830464] = 0x8200; // 98000000 (1, 9) = 6
  9128. SBOX[0][-1476395008] = 0x808000; // a8000000 (1, 10) = 12
  9129. SBOX[0][-1207959552] = 0x800202; // b8000000 (1, 11) = 11
  9130. SBOX[0][-939524096] = 0x800002; // c8000000 (1, 12) = 9
  9131. SBOX[0][-671088640] = 0x8002; // d8000000 (1, 13) = 5
  9132. SBOX[0][-402653184] = 0x202; // e8000000 (1, 14) = 3
  9133. SBOX[0][-134217728] = 0x800000; // f8000000 (1, 15) = 8
  9134. SBOX[0][1] = 0x8000; // 1 (2, 0) = 4
  9135. SBOX[0][268435457] = 0x2; // 10000001 (2, 1) = 1
  9136. SBOX[0][536870913] = 0x808200; // 20000001 (2, 2) = 14
  9137. SBOX[0][805306369] = 0x800000; // 30000001 (2, 3) = 8
  9138. SBOX[0][1073741825] = 0x808002; // 40000001 (2, 4) = 13
  9139. SBOX[0][1342177281] = 0x8200; // 50000001 (2, 5) = 6
  9140. SBOX[0][1610612737] = 0x200; // 60000001 (2, 6) = 2
  9141. SBOX[0][1879048193] = 0x800202; // 70000001 (2, 7) = 11
  9142. SBOX[0][-2147483647] = 0x808202; // 80000001 (2, 8) = 15
  9143. SBOX[0][-1879048191] = 0x808000; // 90000001 (2, 9) = 12
  9144. SBOX[0][-1610612735] = 0x800002; // a0000001 (2, 10) = 9
  9145. SBOX[0][-1342177279] = 0x8202; // b0000001 (2, 11) = 7
  9146. SBOX[0][-1073741823] = 0x202; // c0000001 (2, 12) = 3
  9147. SBOX[0][-805306367] = 0x800200; // d0000001 (2, 13) = 10
  9148. SBOX[0][-536870911] = 0x8002; // e0000001 (2, 14) = 5
  9149. SBOX[0][-268435455] = 0x0; // f0000001 (2, 15) = 0
  9150. SBOX[0][134217729] = 0x808202; // 8000001 (3, 0) = 15
  9151. SBOX[0][402653185] = 0x808000; // 18000001 (3, 1) = 12
  9152. SBOX[0][671088641] = 0x800000; // 28000001 (3, 2) = 8
  9153. SBOX[0][939524097] = 0x200; // 38000001 (3, 3) = 2
  9154. SBOX[0][1207959553] = 0x8000; // 48000001 (3, 4) = 4
  9155. SBOX[0][1476395009] = 0x800002; // 58000001 (3, 5) = 9
  9156. SBOX[0][1744830465] = 0x2; // 68000001 (3, 6) = 1
  9157. SBOX[0][2013265921] = 0x8202; // 78000001 (3, 7) = 7
  9158. SBOX[0][-2013265919] = 0x8002; // 88000001 (3, 8) = 5
  9159. SBOX[0][-1744830463] = 0x800202; // 98000001 (3, 9) = 11
  9160. SBOX[0][-1476395007] = 0x202; // a8000001 (3, 10) = 3
  9161. SBOX[0][-1207959551] = 0x808200; // b8000001 (3, 11) = 14
  9162. SBOX[0][-939524095] = 0x800200; // c8000001 (3, 12) = 10
  9163. SBOX[0][-671088639] = 0x0; // d8000001 (3, 13) = 0
  9164. SBOX[0][-402653183] = 0x8200; // e8000001 (3, 14) = 6
  9165. SBOX[0][-134217727] = 0x808002; // f8000001 (3, 15) = 13
  9166. SBOX[1] = new Array();
  9167. SBOX[1][0] = 0x40084010; // 0 (0, 0) = 15
  9168. SBOX[1][16777216] = 0x4000; // 1000000 (0, 1) = 1
  9169. SBOX[1][33554432] = 0x80000; // 2000000 (0, 2) = 8
  9170. SBOX[1][50331648] = 0x40080010; // 3000000 (0, 3) = 14
  9171. SBOX[1][67108864] = 0x40000010; // 4000000 (0, 4) = 6
  9172. SBOX[1][83886080] = 0x40084000; // 5000000 (0, 5) = 11
  9173. SBOX[1][100663296] = 0x40004000; // 6000000 (0, 6) = 3
  9174. SBOX[1][117440512] = 0x10; // 7000000 (0, 7) = 4
  9175. SBOX[1][134217728] = 0x84000; // 8000000 (0, 8) = 9
  9176. SBOX[1][150994944] = 0x40004010; // 9000000 (0, 9) = 7
  9177. SBOX[1][167772160] = 0x40000000; // a000000 (0, 10) = 2
  9178. SBOX[1][184549376] = 0x84010; // b000000 (0, 11) = 13
  9179. SBOX[1][201326592] = 0x80010; // c000000 (0, 12) = 12
  9180. SBOX[1][218103808] = 0x0; // d000000 (0, 13) = 0
  9181. SBOX[1][234881024] = 0x4010; // e000000 (0, 14) = 5
  9182. SBOX[1][251658240] = 0x40080000; // f000000 (0, 15) = 10
  9183. SBOX[1][8388608] = 0x40004000; // 800000 (1, 0) = 3
  9184. SBOX[1][25165824] = 0x84010; // 1800000 (1, 1) = 13
  9185. SBOX[1][41943040] = 0x10; // 2800000 (1, 2) = 4
  9186. SBOX[1][58720256] = 0x40004010; // 3800000 (1, 3) = 7
  9187. SBOX[1][75497472] = 0x40084010; // 4800000 (1, 4) = 15
  9188. SBOX[1][92274688] = 0x40000000; // 5800000 (1, 5) = 2
  9189. SBOX[1][109051904] = 0x80000; // 6800000 (1, 6) = 8
  9190. SBOX[1][125829120] = 0x40080010; // 7800000 (1, 7) = 14
  9191. SBOX[1][142606336] = 0x80010; // 8800000 (1, 8) = 12
  9192. SBOX[1][159383552] = 0x0; // 9800000 (1, 9) = 0
  9193. SBOX[1][176160768] = 0x4000; // a800000 (1, 10) = 1
  9194. SBOX[1][192937984] = 0x40080000; // b800000 (1, 11) = 10
  9195. SBOX[1][209715200] = 0x40000010; // c800000 (1, 12) = 6
  9196. SBOX[1][226492416] = 0x84000; // d800000 (1, 13) = 9
  9197. SBOX[1][243269632] = 0x40084000; // e800000 (1, 14) = 11
  9198. SBOX[1][260046848] = 0x4010; // f800000 (1, 15) = 5
  9199. SBOX[1][268435456] = 0x0; // 10000000 (2, 0) = 0
  9200. SBOX[1][285212672] = 0x40080010; // 11000000 (2, 1) = 14
  9201. SBOX[1][301989888] = 0x40004010; // 12000000 (2, 2) = 7
  9202. SBOX[1][318767104] = 0x40084000; // 13000000 (2, 3) = 11
  9203. SBOX[1][335544320] = 0x40080000; // 14000000 (2, 4) = 10
  9204. SBOX[1][352321536] = 0x10; // 15000000 (2, 5) = 4
  9205. SBOX[1][369098752] = 0x84010; // 16000000 (2, 6) = 13
  9206. SBOX[1][385875968] = 0x4000; // 17000000 (2, 7) = 1
  9207. SBOX[1][402653184] = 0x4010; // 18000000 (2, 8) = 5
  9208. SBOX[1][419430400] = 0x80000; // 19000000 (2, 9) = 8
  9209. SBOX[1][436207616] = 0x80010; // 1a000000 (2, 10) = 12
  9210. SBOX[1][452984832] = 0x40000010; // 1b000000 (2, 11) = 6
  9211. SBOX[1][469762048] = 0x84000; // 1c000000 (2, 12) = 9
  9212. SBOX[1][486539264] = 0x40004000; // 1d000000 (2, 13) = 3
  9213. SBOX[1][503316480] = 0x40000000; // 1e000000 (2, 14) = 2
  9214. SBOX[1][520093696] = 0x40084010; // 1f000000 (2, 15) = 15
  9215. SBOX[1][276824064] = 0x84010; // 10800000 (3, 0) = 13
  9216. SBOX[1][293601280] = 0x80000; // 11800000 (3, 1) = 8
  9217. SBOX[1][310378496] = 0x40080000; // 12800000 (3, 2) = 10
  9218. SBOX[1][327155712] = 0x4000; // 13800000 (3, 3) = 1
  9219. SBOX[1][343932928] = 0x40004000; // 14800000 (3, 4) = 3
  9220. SBOX[1][360710144] = 0x40084010; // 15800000 (3, 5) = 15
  9221. SBOX[1][377487360] = 0x10; // 16800000 (3, 6) = 4
  9222. SBOX[1][394264576] = 0x40000000; // 17800000 (3, 7) = 2
  9223. SBOX[1][411041792] = 0x40084000; // 18800000 (3, 8) = 11
  9224. SBOX[1][427819008] = 0x40000010; // 19800000 (3, 9) = 6
  9225. SBOX[1][444596224] = 0x40004010; // 1a800000 (3, 10) = 7
  9226. SBOX[1][461373440] = 0x80010; // 1b800000 (3, 11) = 12
  9227. SBOX[1][478150656] = 0x0; // 1c800000 (3, 12) = 0
  9228. SBOX[1][494927872] = 0x4010; // 1d800000 (3, 13) = 5
  9229. SBOX[1][511705088] = 0x40080010; // 1e800000 (3, 14) = 14
  9230. SBOX[1][528482304] = 0x84000; // 1f800000 (3, 15) = 9
  9231. SBOX[2] = new Array();
  9232. SBOX[2][0] = 0x104; // 0 (0, 0) = 10
  9233. SBOX[2][1048576] = 0x0; // 100000 (0, 1) = 0
  9234. SBOX[2][2097152] = 0x4000100; // 200000 (0, 2) = 9
  9235. SBOX[2][3145728] = 0x10104; // 300000 (0, 3) = 14
  9236. SBOX[2][4194304] = 0x10004; // 400000 (0, 4) = 6
  9237. SBOX[2][5242880] = 0x4000004; // 500000 (0, 5) = 3
  9238. SBOX[2][6291456] = 0x4010104; // 600000 (0, 6) = 15
  9239. SBOX[2][7340032] = 0x4010000; // 700000 (0, 7) = 5
  9240. SBOX[2][8388608] = 0x4000000; // 800000 (0, 8) = 1
  9241. SBOX[2][9437184] = 0x4010100; // 900000 (0, 9) = 13
  9242. SBOX[2][10485760] = 0x10100; // a00000 (0, 10) = 12
  9243. SBOX[2][11534336] = 0x4010004; // b00000 (0, 11) = 7
  9244. SBOX[2][12582912] = 0x4000104; // c00000 (0, 12) = 11
  9245. SBOX[2][13631488] = 0x10000; // d00000 (0, 13) = 4
  9246. SBOX[2][14680064] = 0x4; // e00000 (0, 14) = 2
  9247. SBOX[2][15728640] = 0x100; // f00000 (0, 15) = 8
  9248. SBOX[2][524288] = 0x4010100; // 80000 (1, 0) = 13
  9249. SBOX[2][1572864] = 0x4010004; // 180000 (1, 1) = 7
  9250. SBOX[2][2621440] = 0x0; // 280000 (1, 2) = 0
  9251. SBOX[2][3670016] = 0x4000100; // 380000 (1, 3) = 9
  9252. SBOX[2][4718592] = 0x4000004; // 480000 (1, 4) = 3
  9253. SBOX[2][5767168] = 0x10000; // 580000 (1, 5) = 4
  9254. SBOX[2][6815744] = 0x10004; // 680000 (1, 6) = 6
  9255. SBOX[2][7864320] = 0x104; // 780000 (1, 7) = 10
  9256. SBOX[2][8912896] = 0x4; // 880000 (1, 8) = 2
  9257. SBOX[2][9961472] = 0x100; // 980000 (1, 9) = 8
  9258. SBOX[2][11010048] = 0x4010000; // a80000 (1, 10) = 5
  9259. SBOX[2][12058624] = 0x10104; // b80000 (1, 11) = 14
  9260. SBOX[2][13107200] = 0x10100; // c80000 (1, 12) = 12
  9261. SBOX[2][14155776] = 0x4000104; // d80000 (1, 13) = 11
  9262. SBOX[2][15204352] = 0x4010104; // e80000 (1, 14) = 15
  9263. SBOX[2][16252928] = 0x4000000; // f80000 (1, 15) = 1
  9264. SBOX[2][16777216] = 0x4010100; // 1000000 (2, 0) = 13
  9265. SBOX[2][17825792] = 0x10004; // 1100000 (2, 1) = 6
  9266. SBOX[2][18874368] = 0x10000; // 1200000 (2, 2) = 4
  9267. SBOX[2][19922944] = 0x4000100; // 1300000 (2, 3) = 9
  9268. SBOX[2][20971520] = 0x100; // 1400000 (2, 4) = 8
  9269. SBOX[2][22020096] = 0x4010104; // 1500000 (2, 5) = 15
  9270. SBOX[2][23068672] = 0x4000004; // 1600000 (2, 6) = 3
  9271. SBOX[2][24117248] = 0x0; // 1700000 (2, 7) = 0
  9272. SBOX[2][25165824] = 0x4000104; // 1800000 (2, 8) = 11
  9273. SBOX[2][26214400] = 0x4000000; // 1900000 (2, 9) = 1
  9274. SBOX[2][27262976] = 0x4; // 1a00000 (2, 10) = 2
  9275. SBOX[2][28311552] = 0x10100; // 1b00000 (2, 11) = 12
  9276. SBOX[2][29360128] = 0x4010000; // 1c00000 (2, 12) = 5
  9277. SBOX[2][30408704] = 0x104; // 1d00000 (2, 13) = 10
  9278. SBOX[2][31457280] = 0x10104; // 1e00000 (2, 14) = 14
  9279. SBOX[2][32505856] = 0x4010004; // 1f00000 (2, 15) = 7
  9280. SBOX[2][17301504] = 0x4000000; // 1080000 (3, 0) = 1
  9281. SBOX[2][18350080] = 0x104; // 1180000 (3, 1) = 10
  9282. SBOX[2][19398656] = 0x4010100; // 1280000 (3, 2) = 13
  9283. SBOX[2][20447232] = 0x0; // 1380000 (3, 3) = 0
  9284. SBOX[2][21495808] = 0x10004; // 1480000 (3, 4) = 6
  9285. SBOX[2][22544384] = 0x4000100; // 1580000 (3, 5) = 9
  9286. SBOX[2][23592960] = 0x100; // 1680000 (3, 6) = 8
  9287. SBOX[2][24641536] = 0x4010004; // 1780000 (3, 7) = 7
  9288. SBOX[2][25690112] = 0x10000; // 1880000 (3, 8) = 4
  9289. SBOX[2][26738688] = 0x4010104; // 1980000 (3, 9) = 15
  9290. SBOX[2][27787264] = 0x10104; // 1a80000 (3, 10) = 14
  9291. SBOX[2][28835840] = 0x4000004; // 1b80000 (3, 11) = 3
  9292. SBOX[2][29884416] = 0x4000104; // 1c80000 (3, 12) = 11
  9293. SBOX[2][30932992] = 0x4010000; // 1d80000 (3, 13) = 5
  9294. SBOX[2][31981568] = 0x4; // 1e80000 (3, 14) = 2
  9295. SBOX[2][33030144] = 0x10100; // 1f80000 (3, 15) = 12
  9296. SBOX[3] = new Array();
  9297. SBOX[3][0] = 0x80401000; // 0 (0, 0) = 7
  9298. SBOX[3][65536] = 0x80001040; // 10000 (0, 1) = 13
  9299. SBOX[3][131072] = 0x401040; // 20000 (0, 2) = 14
  9300. SBOX[3][196608] = 0x80400000; // 30000 (0, 3) = 3
  9301. SBOX[3][262144] = 0x0; // 40000 (0, 4) = 0
  9302. SBOX[3][327680] = 0x401000; // 50000 (0, 5) = 6
  9303. SBOX[3][393216] = 0x80000040; // 60000 (0, 6) = 9
  9304. SBOX[3][458752] = 0x400040; // 70000 (0, 7) = 10
  9305. SBOX[3][524288] = 0x80000000; // 80000 (0, 8) = 1
  9306. SBOX[3][589824] = 0x400000; // 90000 (0, 9) = 2
  9307. SBOX[3][655360] = 0x40; // a0000 (0, 10) = 8
  9308. SBOX[3][720896] = 0x80001000; // b0000 (0, 11) = 5
  9309. SBOX[3][786432] = 0x80400040; // c0000 (0, 12) = 11
  9310. SBOX[3][851968] = 0x1040; // d0000 (0, 13) = 12
  9311. SBOX[3][917504] = 0x1000; // e0000 (0, 14) = 4
  9312. SBOX[3][983040] = 0x80401040; // f0000 (0, 15) = 15
  9313. SBOX[3][32768] = 0x80001040; // 8000 (1, 0) = 13
  9314. SBOX[3][98304] = 0x40; // 18000 (1, 1) = 8
  9315. SBOX[3][163840] = 0x80400040; // 28000 (1, 2) = 11
  9316. SBOX[3][229376] = 0x80001000; // 38000 (1, 3) = 5
  9317. SBOX[3][294912] = 0x401000; // 48000 (1, 4) = 6
  9318. SBOX[3][360448] = 0x80401040; // 58000 (1, 5) = 15
  9319. SBOX[3][425984] = 0x0; // 68000 (1, 6) = 0
  9320. SBOX[3][491520] = 0x80400000; // 78000 (1, 7) = 3
  9321. SBOX[3][557056] = 0x1000; // 88000 (1, 8) = 4
  9322. SBOX[3][622592] = 0x80401000; // 98000 (1, 9) = 7
  9323. SBOX[3][688128] = 0x400000; // a8000 (1, 10) = 2
  9324. SBOX[3][753664] = 0x1040; // b8000 (1, 11) = 12
  9325. SBOX[3][819200] = 0x80000000; // c8000 (1, 12) = 1
  9326. SBOX[3][884736] = 0x400040; // d8000 (1, 13) = 10
  9327. SBOX[3][950272] = 0x401040; // e8000 (1, 14) = 14
  9328. SBOX[3][1015808] = 0x80000040; // f8000 (1, 15) = 9
  9329. SBOX[3][1048576] = 0x400040; // 100000 (2, 0) = 10
  9330. SBOX[3][1114112] = 0x401000; // 110000 (2, 1) = 6
  9331. SBOX[3][1179648] = 0x80000040; // 120000 (2, 2) = 9
  9332. SBOX[3][1245184] = 0x0; // 130000 (2, 3) = 0
  9333. SBOX[3][1310720] = 0x1040; // 140000 (2, 4) = 12
  9334. SBOX[3][1376256] = 0x80400040; // 150000 (2, 5) = 11
  9335. SBOX[3][1441792] = 0x80401000; // 160000 (2, 6) = 7
  9336. SBOX[3][1507328] = 0x80001040; // 170000 (2, 7) = 13
  9337. SBOX[3][1572864] = 0x80401040; // 180000 (2, 8) = 15
  9338. SBOX[3][1638400] = 0x80000000; // 190000 (2, 9) = 1
  9339. SBOX[3][1703936] = 0x80400000; // 1a0000 (2, 10) = 3
  9340. SBOX[3][1769472] = 0x401040; // 1b0000 (2, 11) = 14
  9341. SBOX[3][1835008] = 0x80001000; // 1c0000 (2, 12) = 5
  9342. SBOX[3][1900544] = 0x400000; // 1d0000 (2, 13) = 2
  9343. SBOX[3][1966080] = 0x40; // 1e0000 (2, 14) = 8
  9344. SBOX[3][2031616] = 0x1000; // 1f0000 (2, 15) = 4
  9345. SBOX[3][1081344] = 0x80400000; // 108000 (3, 0) = 3
  9346. SBOX[3][1146880] = 0x80401040; // 118000 (3, 1) = 15
  9347. SBOX[3][1212416] = 0x0; // 128000 (3, 2) = 0
  9348. SBOX[3][1277952] = 0x401000; // 138000 (3, 3) = 6
  9349. SBOX[3][1343488] = 0x400040; // 148000 (3, 4) = 10
  9350. SBOX[3][1409024] = 0x80000000; // 158000 (3, 5) = 1
  9351. SBOX[3][1474560] = 0x80001040; // 168000 (3, 6) = 13
  9352. SBOX[3][1540096] = 0x40; // 178000 (3, 7) = 8
  9353. SBOX[3][1605632] = 0x80000040; // 188000 (3, 8) = 9
  9354. SBOX[3][1671168] = 0x1000; // 198000 (3, 9) = 4
  9355. SBOX[3][1736704] = 0x80001000; // 1a8000 (3, 10) = 5
  9356. SBOX[3][1802240] = 0x80400040; // 1b8000 (3, 11) = 11
  9357. SBOX[3][1867776] = 0x1040; // 1c8000 (3, 12) = 12
  9358. SBOX[3][1933312] = 0x80401000; // 1d8000 (3, 13) = 7
  9359. SBOX[3][1998848] = 0x400000; // 1e8000 (3, 14) = 2
  9360. SBOX[3][2064384] = 0x401040; // 1f8000 (3, 15) = 14
  9361. SBOX[4] = new Array();
  9362. SBOX[4][0] = 0x80; // 0 (0, 0) = 2
  9363. SBOX[4][4096] = 0x1040000; // 1000 (0, 1) = 12
  9364. SBOX[4][8192] = 0x40000; // 2000 (0, 2) = 4
  9365. SBOX[4][12288] = 0x20000000; // 3000 (0, 3) = 1
  9366. SBOX[4][16384] = 0x20040080; // 4000 (0, 4) = 7
  9367. SBOX[4][20480] = 0x1000080; // 5000 (0, 5) = 10
  9368. SBOX[4][24576] = 0x21000080; // 6000 (0, 6) = 11
  9369. SBOX[4][28672] = 0x40080; // 7000 (0, 7) = 6
  9370. SBOX[4][32768] = 0x1000000; // 8000 (0, 8) = 8
  9371. SBOX[4][36864] = 0x20040000; // 9000 (0, 9) = 5
  9372. SBOX[4][40960] = 0x20000080; // a000 (0, 10) = 3
  9373. SBOX[4][45056] = 0x21040080; // b000 (0, 11) = 15
  9374. SBOX[4][49152] = 0x21040000; // c000 (0, 12) = 13
  9375. SBOX[4][53248] = 0x0; // d000 (0, 13) = 0
  9376. SBOX[4][57344] = 0x1040080; // e000 (0, 14) = 14
  9377. SBOX[4][61440] = 0x21000000; // f000 (0, 15) = 9
  9378. SBOX[4][2048] = 0x1040080; // 800 (1, 0) = 14
  9379. SBOX[4][6144] = 0x21000080; // 1800 (1, 1) = 11
  9380. SBOX[4][10240] = 0x80; // 2800 (1, 2) = 2
  9381. SBOX[4][14336] = 0x1040000; // 3800 (1, 3) = 12
  9382. SBOX[4][18432] = 0x40000; // 4800 (1, 4) = 4
  9383. SBOX[4][22528] = 0x20040080; // 5800 (1, 5) = 7
  9384. SBOX[4][26624] = 0x21040000; // 6800 (1, 6) = 13
  9385. SBOX[4][30720] = 0x20000000; // 7800 (1, 7) = 1
  9386. SBOX[4][34816] = 0x20040000; // 8800 (1, 8) = 5
  9387. SBOX[4][38912] = 0x0; // 9800 (1, 9) = 0
  9388. SBOX[4][43008] = 0x21040080; // a800 (1, 10) = 15
  9389. SBOX[4][47104] = 0x1000080; // b800 (1, 11) = 10
  9390. SBOX[4][51200] = 0x20000080; // c800 (1, 12) = 3
  9391. SBOX[4][55296] = 0x21000000; // d800 (1, 13) = 9
  9392. SBOX[4][59392] = 0x1000000; // e800 (1, 14) = 8
  9393. SBOX[4][63488] = 0x40080; // f800 (1, 15) = 6
  9394. SBOX[4][65536] = 0x40000; // 10000 (2, 0) = 4
  9395. SBOX[4][69632] = 0x80; // 11000 (2, 1) = 2
  9396. SBOX[4][73728] = 0x20000000; // 12000 (2, 2) = 1
  9397. SBOX[4][77824] = 0x21000080; // 13000 (2, 3) = 11
  9398. SBOX[4][81920] = 0x1000080; // 14000 (2, 4) = 10
  9399. SBOX[4][86016] = 0x21040000; // 15000 (2, 5) = 13
  9400. SBOX[4][90112] = 0x20040080; // 16000 (2, 6) = 7
  9401. SBOX[4][94208] = 0x1000000; // 17000 (2, 7) = 8
  9402. SBOX[4][98304] = 0x21040080; // 18000 (2, 8) = 15
  9403. SBOX[4][102400] = 0x21000000; // 19000 (2, 9) = 9
  9404. SBOX[4][106496] = 0x1040000; // 1a000 (2, 10) = 12
  9405. SBOX[4][110592] = 0x20040000; // 1b000 (2, 11) = 5
  9406. SBOX[4][114688] = 0x40080; // 1c000 (2, 12) = 6
  9407. SBOX[4][118784] = 0x20000080; // 1d000 (2, 13) = 3
  9408. SBOX[4][122880] = 0x0; // 1e000 (2, 14) = 0
  9409. SBOX[4][126976] = 0x1040080; // 1f000 (2, 15) = 14
  9410. SBOX[4][67584] = 0x21000080; // 10800 (3, 0) = 11
  9411. SBOX[4][71680] = 0x1000000; // 11800 (3, 1) = 8
  9412. SBOX[4][75776] = 0x1040000; // 12800 (3, 2) = 12
  9413. SBOX[4][79872] = 0x20040080; // 13800 (3, 3) = 7
  9414. SBOX[4][83968] = 0x20000000; // 14800 (3, 4) = 1
  9415. SBOX[4][88064] = 0x1040080; // 15800 (3, 5) = 14
  9416. SBOX[4][92160] = 0x80; // 16800 (3, 6) = 2
  9417. SBOX[4][96256] = 0x21040000; // 17800 (3, 7) = 13
  9418. SBOX[4][100352] = 0x40080; // 18800 (3, 8) = 6
  9419. SBOX[4][104448] = 0x21040080; // 19800 (3, 9) = 15
  9420. SBOX[4][108544] = 0x0; // 1a800 (3, 10) = 0
  9421. SBOX[4][112640] = 0x21000000; // 1b800 (3, 11) = 9
  9422. SBOX[4][116736] = 0x1000080; // 1c800 (3, 12) = 10
  9423. SBOX[4][120832] = 0x40000; // 1d800 (3, 13) = 4
  9424. SBOX[4][124928] = 0x20040000; // 1e800 (3, 14) = 5
  9425. SBOX[4][129024] = 0x20000080; // 1f800 (3, 15) = 3
  9426. SBOX[5] = new Array();
  9427. SBOX[5][0] = 0x10000008; // 0 (0, 0) = 12
  9428. SBOX[5][256] = 0x2000; // 100 (0, 1) = 1
  9429. SBOX[5][512] = 0x10200000; // 200 (0, 2) = 10
  9430. SBOX[5][768] = 0x10202008; // 300 (0, 3) = 15
  9431. SBOX[5][1024] = 0x10002000; // 400 (0, 4) = 9
  9432. SBOX[5][1280] = 0x200000; // 500 (0, 5) = 2
  9433. SBOX[5][1536] = 0x200008; // 600 (0, 6) = 6
  9434. SBOX[5][1792] = 0x10000000; // 700 (0, 7) = 8
  9435. SBOX[5][2048] = 0x0; // 800 (0, 8) = 0
  9436. SBOX[5][2304] = 0x10002008; // 900 (0, 9) = 13
  9437. SBOX[5][2560] = 0x202000; // a00 (0, 10) = 3
  9438. SBOX[5][2816] = 0x8; // b00 (0, 11) = 4
  9439. SBOX[5][3072] = 0x10200008; // c00 (0, 12) = 14
  9440. SBOX[5][3328] = 0x202008; // d00 (0, 13) = 7
  9441. SBOX[5][3584] = 0x2008; // e00 (0, 14) = 5
  9442. SBOX[5][3840] = 0x10202000; // f00 (0, 15) = 11
  9443. SBOX[5][128] = 0x10200000; // 80 (1, 0) = 10
  9444. SBOX[5][384] = 0x10202008; // 180 (1, 1) = 15
  9445. SBOX[5][640] = 0x8; // 280 (1, 2) = 4
  9446. SBOX[5][896] = 0x200000; // 380 (1, 3) = 2
  9447. SBOX[5][1152] = 0x202008; // 480 (1, 4) = 7
  9448. SBOX[5][1408] = 0x10000008; // 580 (1, 5) = 12
  9449. SBOX[5][1664] = 0x10002000; // 680 (1, 6) = 9
  9450. SBOX[5][1920] = 0x2008; // 780 (1, 7) = 5
  9451. SBOX[5][2176] = 0x200008; // 880 (1, 8) = 6
  9452. SBOX[5][2432] = 0x2000; // 980 (1, 9) = 1
  9453. SBOX[5][2688] = 0x10002008; // a80 (1, 10) = 13
  9454. SBOX[5][2944] = 0x10200008; // b80 (1, 11) = 14
  9455. SBOX[5][3200] = 0x0; // c80 (1, 12) = 0
  9456. SBOX[5][3456] = 0x10202000; // d80 (1, 13) = 11
  9457. SBOX[5][3712] = 0x202000; // e80 (1, 14) = 3
  9458. SBOX[5][3968] = 0x10000000; // f80 (1, 15) = 8
  9459. SBOX[5][4096] = 0x10002000; // 1000 (2, 0) = 9
  9460. SBOX[5][4352] = 0x10200008; // 1100 (2, 1) = 14
  9461. SBOX[5][4608] = 0x10202008; // 1200 (2, 2) = 15
  9462. SBOX[5][4864] = 0x2008; // 1300 (2, 3) = 5
  9463. SBOX[5][5120] = 0x200000; // 1400 (2, 4) = 2
  9464. SBOX[5][5376] = 0x10000000; // 1500 (2, 5) = 8
  9465. SBOX[5][5632] = 0x10000008; // 1600 (2, 6) = 12
  9466. SBOX[5][5888] = 0x202000; // 1700 (2, 7) = 3
  9467. SBOX[5][6144] = 0x202008; // 1800 (2, 8) = 7
  9468. SBOX[5][6400] = 0x0; // 1900 (2, 9) = 0
  9469. SBOX[5][6656] = 0x8; // 1a00 (2, 10) = 4
  9470. SBOX[5][6912] = 0x10200000; // 1b00 (2, 11) = 10
  9471. SBOX[5][7168] = 0x2000; // 1c00 (2, 12) = 1
  9472. SBOX[5][7424] = 0x10002008; // 1d00 (2, 13) = 13
  9473. SBOX[5][7680] = 0x10202000; // 1e00 (2, 14) = 11
  9474. SBOX[5][7936] = 0x200008; // 1f00 (2, 15) = 6
  9475. SBOX[5][4224] = 0x8; // 1080 (3, 0) = 4
  9476. SBOX[5][4480] = 0x202000; // 1180 (3, 1) = 3
  9477. SBOX[5][4736] = 0x200000; // 1280 (3, 2) = 2
  9478. SBOX[5][4992] = 0x10000008; // 1380 (3, 3) = 12
  9479. SBOX[5][5248] = 0x10002000; // 1480 (3, 4) = 9
  9480. SBOX[5][5504] = 0x2008; // 1580 (3, 5) = 5
  9481. SBOX[5][5760] = 0x10202008; // 1680 (3, 6) = 15
  9482. SBOX[5][6016] = 0x10200000; // 1780 (3, 7) = 10
  9483. SBOX[5][6272] = 0x10202000; // 1880 (3, 8) = 11
  9484. SBOX[5][6528] = 0x10200008; // 1980 (3, 9) = 14
  9485. SBOX[5][6784] = 0x2000; // 1a80 (3, 10) = 1
  9486. SBOX[5][7040] = 0x202008; // 1b80 (3, 11) = 7
  9487. SBOX[5][7296] = 0x200008; // 1c80 (3, 12) = 6
  9488. SBOX[5][7552] = 0x0; // 1d80 (3, 13) = 0
  9489. SBOX[5][7808] = 0x10000000; // 1e80 (3, 14) = 8
  9490. SBOX[5][8064] = 0x10002008; // 1f80 (3, 15) = 13
  9491. SBOX[6] = new Array();
  9492. SBOX[6][0] = 0x100000; // 0 (0, 0) = 4
  9493. SBOX[6][16] = 0x2000401; // 10 (0, 1) = 11
  9494. SBOX[6][32] = 0x400; // 20 (0, 2) = 2
  9495. SBOX[6][48] = 0x100401; // 30 (0, 3) = 14
  9496. SBOX[6][64] = 0x2100401; // 40 (0, 4) = 15
  9497. SBOX[6][80] = 0x0; // 50 (0, 5) = 0
  9498. SBOX[6][96] = 0x1; // 60 (0, 6) = 8
  9499. SBOX[6][112] = 0x2100001; // 70 (0, 7) = 13
  9500. SBOX[6][128] = 0x2000400; // 80 (0, 8) = 3
  9501. SBOX[6][144] = 0x100001; // 90 (0, 9) = 12
  9502. SBOX[6][160] = 0x2000001; // a0 (0, 10) = 9
  9503. SBOX[6][176] = 0x2100400; // b0 (0, 11) = 7
  9504. SBOX[6][192] = 0x2100000; // c0 (0, 12) = 5
  9505. SBOX[6][208] = 0x401; // d0 (0, 13) = 10
  9506. SBOX[6][224] = 0x100400; // e0 (0, 14) = 6
  9507. SBOX[6][240] = 0x2000000; // f0 (0, 15) = 1
  9508. SBOX[6][8] = 0x2100001; // 8 (1, 0) = 13
  9509. SBOX[6][24] = 0x0; // 18 (1, 1) = 0
  9510. SBOX[6][40] = 0x2000401; // 28 (1, 2) = 11
  9511. SBOX[6][56] = 0x2100400; // 38 (1, 3) = 7
  9512. SBOX[6][72] = 0x100000; // 48 (1, 4) = 4
  9513. SBOX[6][88] = 0x2000001; // 58 (1, 5) = 9
  9514. SBOX[6][104] = 0x2000000; // 68 (1, 6) = 1
  9515. SBOX[6][120] = 0x401; // 78 (1, 7) = 10
  9516. SBOX[6][136] = 0x100401; // 88 (1, 8) = 14
  9517. SBOX[6][152] = 0x2000400; // 98 (1, 9) = 3
  9518. SBOX[6][168] = 0x2100000; // a8 (1, 10) = 5
  9519. SBOX[6][184] = 0x100001; // b8 (1, 11) = 12
  9520. SBOX[6][200] = 0x400; // c8 (1, 12) = 2
  9521. SBOX[6][216] = 0x2100401; // d8 (1, 13) = 15
  9522. SBOX[6][232] = 0x1; // e8 (1, 14) = 8
  9523. SBOX[6][248] = 0x100400; // f8 (1, 15) = 6
  9524. SBOX[6][256] = 0x2000000; // 100 (2, 0) = 1
  9525. SBOX[6][272] = 0x100000; // 110 (2, 1) = 4
  9526. SBOX[6][288] = 0x2000401; // 120 (2, 2) = 11
  9527. SBOX[6][304] = 0x2100001; // 130 (2, 3) = 13
  9528. SBOX[6][320] = 0x100001; // 140 (2, 4) = 12
  9529. SBOX[6][336] = 0x2000400; // 150 (2, 5) = 3
  9530. SBOX[6][352] = 0x2100400; // 160 (2, 6) = 7
  9531. SBOX[6][368] = 0x100401; // 170 (2, 7) = 14
  9532. SBOX[6][384] = 0x401; // 180 (2, 8) = 10
  9533. SBOX[6][400] = 0x2100401; // 190 (2, 9) = 15
  9534. SBOX[6][416] = 0x100400; // 1a0 (2, 10) = 6
  9535. SBOX[6][432] = 0x1; // 1b0 (2, 11) = 8
  9536. SBOX[6][448] = 0x0; // 1c0 (2, 12) = 0
  9537. SBOX[6][464] = 0x2100000; // 1d0 (2, 13) = 5
  9538. SBOX[6][480] = 0x2000001; // 1e0 (2, 14) = 9
  9539. SBOX[6][496] = 0x400; // 1f0 (2, 15) = 2
  9540. SBOX[6][264] = 0x100400; // 108 (3, 0) = 6
  9541. SBOX[6][280] = 0x2000401; // 118 (3, 1) = 11
  9542. SBOX[6][296] = 0x2100001; // 128 (3, 2) = 13
  9543. SBOX[6][312] = 0x1; // 138 (3, 3) = 8
  9544. SBOX[6][328] = 0x2000000; // 148 (3, 4) = 1
  9545. SBOX[6][344] = 0x100000; // 158 (3, 5) = 4
  9546. SBOX[6][360] = 0x401; // 168 (3, 6) = 10
  9547. SBOX[6][376] = 0x2100400; // 178 (3, 7) = 7
  9548. SBOX[6][392] = 0x2000001; // 188 (3, 8) = 9
  9549. SBOX[6][408] = 0x2100000; // 198 (3, 9) = 5
  9550. SBOX[6][424] = 0x0; // 1a8 (3, 10) = 0
  9551. SBOX[6][440] = 0x2100401; // 1b8 (3, 11) = 15
  9552. SBOX[6][456] = 0x100401; // 1c8 (3, 12) = 14
  9553. SBOX[6][472] = 0x400; // 1d8 (3, 13) = 2
  9554. SBOX[6][488] = 0x2000400; // 1e8 (3, 14) = 3
  9555. SBOX[6][504] = 0x100001; // 1f8 (3, 15) = 12
  9556. SBOX[7] = new Array();
  9557. SBOX[7][0] = 0x8000820; // 0 (0, 0) = 13
  9558. SBOX[7][1] = 0x20000; // 1 (0, 1) = 2
  9559. SBOX[7][2] = 0x8000000; // 2 (0, 2) = 8
  9560. SBOX[7][3] = 0x20; // 3 (0, 3) = 4
  9561. SBOX[7][4] = 0x20020; // 4 (0, 4) = 6
  9562. SBOX[7][5] = 0x8020820; // 5 (0, 5) = 15
  9563. SBOX[7][6] = 0x8020800; // 6 (0, 6) = 11
  9564. SBOX[7][7] = 0x800; // 7 (0, 7) = 1
  9565. SBOX[7][8] = 0x8020000; // 8 (0, 8) = 10
  9566. SBOX[7][9] = 0x8000800; // 9 (0, 9) = 9
  9567. SBOX[7][10] = 0x20800; // a (0, 10) = 3
  9568. SBOX[7][11] = 0x8020020; // b (0, 11) = 14
  9569. SBOX[7][12] = 0x820; // c (0, 12) = 5
  9570. SBOX[7][13] = 0x0; // d (0, 13) = 0
  9571. SBOX[7][14] = 0x8000020; // e (0, 14) = 12
  9572. SBOX[7][15] = 0x20820; // f (0, 15) = 7
  9573. SBOX[7][-2147483648] = 0x800; // 80000000 (1, 0) = 1
  9574. SBOX[7][-2147483647] = 0x8020820; // 80000001 (1, 1) = 15
  9575. SBOX[7][-2147483646] = 0x8000820; // 80000002 (1, 2) = 13
  9576. SBOX[7][-2147483645] = 0x8000000; // 80000003 (1, 3) = 8
  9577. SBOX[7][-2147483644] = 0x8020000; // 80000004 (1, 4) = 10
  9578. SBOX[7][-2147483643] = 0x20800; // 80000005 (1, 5) = 3
  9579. SBOX[7][-2147483642] = 0x20820; // 80000006 (1, 6) = 7
  9580. SBOX[7][-2147483641] = 0x20; // 80000007 (1, 7) = 4
  9581. SBOX[7][-2147483640] = 0x8000020; // 80000008 (1, 8) = 12
  9582. SBOX[7][-2147483639] = 0x820; // 80000009 (1, 9) = 5
  9583. SBOX[7][-2147483638] = 0x20020; // 8000000a (1, 10) = 6
  9584. SBOX[7][-2147483637] = 0x8020800; // 8000000b (1, 11) = 11
  9585. SBOX[7][-2147483636] = 0x0; // 8000000c (1, 12) = 0
  9586. SBOX[7][-2147483635] = 0x8020020; // 8000000d (1, 13) = 14
  9587. SBOX[7][-2147483634] = 0x8000800; // 8000000e (1, 14) = 9
  9588. SBOX[7][-2147483633] = 0x20000; // 8000000f (1, 15) = 2
  9589. SBOX[7][16] = 0x20820; // 10 (2, 0) = 7
  9590. SBOX[7][17] = 0x8020800; // 11 (2, 1) = 11
  9591. SBOX[7][18] = 0x20; // 12 (2, 2) = 4
  9592. SBOX[7][19] = 0x800; // 13 (2, 3) = 1
  9593. SBOX[7][20] = 0x8000800; // 14 (2, 4) = 9
  9594. SBOX[7][21] = 0x8000020; // 15 (2, 5) = 12
  9595. SBOX[7][22] = 0x8020020; // 16 (2, 6) = 14
  9596. SBOX[7][23] = 0x20000; // 17 (2, 7) = 2
  9597. SBOX[7][24] = 0x0; // 18 (2, 8) = 0
  9598. SBOX[7][25] = 0x20020; // 19 (2, 9) = 6
  9599. SBOX[7][26] = 0x8020000; // 1a (2, 10) = 10
  9600. SBOX[7][27] = 0x8000820; // 1b (2, 11) = 13
  9601. SBOX[7][28] = 0x8020820; // 1c (2, 12) = 15
  9602. SBOX[7][29] = 0x20800; // 1d (2, 13) = 3
  9603. SBOX[7][30] = 0x820; // 1e (2, 14) = 5
  9604. SBOX[7][31] = 0x8000000; // 1f (2, 15) = 8
  9605. SBOX[7][-2147483632] = 0x20000; // 80000010 (3, 0) = 2
  9606. SBOX[7][-2147483631] = 0x800; // 80000011 (3, 1) = 1
  9607. SBOX[7][-2147483630] = 0x8020020; // 80000012 (3, 2) = 14
  9608. SBOX[7][-2147483629] = 0x20820; // 80000013 (3, 3) = 7
  9609. SBOX[7][-2147483628] = 0x20; // 80000014 (3, 4) = 4
  9610. SBOX[7][-2147483627] = 0x8020000; // 80000015 (3, 5) = 10
  9611. SBOX[7][-2147483626] = 0x8000000; // 80000016 (3, 6) = 8
  9612. SBOX[7][-2147483625] = 0x8000820; // 80000017 (3, 7) = 13
  9613. SBOX[7][-2147483624] = 0x8020820; // 80000018 (3, 8) = 15
  9614. SBOX[7][-2147483623] = 0x8000020; // 80000019 (3, 9) = 12
  9615. SBOX[7][-2147483622] = 0x8000800; // 8000001a (3, 10) = 9
  9616. SBOX[7][-2147483621] = 0x0; // 8000001b (3, 11) = 0
  9617. SBOX[7][-2147483620] = 0x20800; // 8000001c (3, 12) = 3
  9618. SBOX[7][-2147483619] = 0x820; // 8000001d (3, 13) = 5
  9619. SBOX[7][-2147483618] = 0x20020; // 8000001e (3, 14) = 6
  9620. SBOX[7][-2147483617] = 0x8020800; // 8000001f (3, 15) = 11
  9621. State.prototype._exchangeLR = function (v, m) {
  9622. var t = (this.lhs >> v ^ this.rhs) & m;
  9623. this.rhs ^= t;
  9624. this.lhs ^= t << v;
  9625. };
  9626. State.prototype._exchangeRL = function (v, m) {
  9627. var t = (this.rhs >> v ^ this.lhs) & m;
  9628. this.lhs ^= t;
  9629. this.rhs ^= t << v;
  9630. };
  9631. /**
  9632. * Perform the initial permutation of the input to create the starting state
  9633. * of the algorithm. The initial permutation maps each consecutive bit of
  9634. * the input into a different byte of the state.
  9635. *
  9636. * <pre>
  9637. * The initial permutation is defined to be:
  9638. *
  9639. * 58 50 42 34 26 18 10 2
  9640. * 60 52 44 36 28 20 12 4
  9641. * 62 54 46 38 30 22 14 6
  9642. * 64 56 48 40 32 24 16 8
  9643. * 57 49 41 33 25 17 9 1
  9644. * 59 51 43 35 27 19 11 3
  9645. * 61 53 45 37 29 21 13 5
  9646. * 63 55 47 39 31 23 15 7
  9647. * </pre>
  9648. *
  9649. *
  9650. * @param message
  9651. * The message as an array of unsigned bytes.
  9652. * @param offset
  9653. * The offset into the message that the current 64-bit block
  9654. * begins.
  9655. * @returns the initial engine state
  9656. */
  9657. State.prototype.initialPerm = function (message, offset) {
  9658. var input = message.slice(offset, offset + 8);
  9659. this.lhs = (input[0] << 24) + (input[1] << 16) + (input[2] << 8) +
  9660. input[3];
  9661. this.rhs = (input[4] << 24) + (input[5] << 16) + (input[6] << 8) +
  9662. input[7];
  9663. this._exchangeLR(4, 0x0f0f0f0f);
  9664. this._exchangeLR(16, 0x0000ffff);
  9665. this._exchangeRL(2, 0x33333333);
  9666. this._exchangeRL(8, 0x00ff00ff);
  9667. this._exchangeLR(1, 0x55555555);
  9668. };
  9669. /**
  9670. * Perform one round of the DES algorithm using the given key. A round is
  9671. * defined as:
  9672. *
  9673. * <pre>
  9674. * L&amp;rsquo = R
  9675. * R&amp;rsquo = L &circ; f(R, k)
  9676. * </pre>
  9677. *
  9678. * where f consists of expanding, XORing with the key and contracting back
  9679. * with the SBOXes.
  9680. *
  9681. * Note that the final round is defined slightly differently as:
  9682. *
  9683. * <pre>
  9684. * L&amp;rsquo = L &circ; f(R, k)
  9685. * R&amp;rsquo = R
  9686. * </pre>
  9687. *
  9688. * Therefore in the final round this function produces LHS and RHS the wrong
  9689. * way around.
  9690. *
  9691. * @param k
  9692. * the key
  9693. */
  9694. State.prototype.round = function (k) {
  9695. var r = this.rhs,l = this.lhs;
  9696. var f = 0;
  9697. for (var i = 0; i < 8; i++) {
  9698. var v = (r ^ k[i]) & State.SBOX_MASK[i];
  9699. f += State.SBOX[i][v];
  9700. }
  9701. this.lhs = r;
  9702. this.rhs = l ^ f;
  9703. };
  9704. /**
  9705. * Apply the inverse of the initial permutation.
  9706. *
  9707. * <pre>
  9708. * The inverse is defined to be:
  9709. *
  9710. * 40 8 48 16 56 24 64 32
  9711. * 39 7 47 15 55 23 63 31
  9712. * 38 6 46 14 54 22 62 30
  9713. * 37 5 45 13 53 21 61 29
  9714. * 36 4 44 12 52 20 60 28
  9715. * 35 3 43 11 51 19 59 27
  9716. * 34 2 42 10 50 18 58 26
  9717. * 33 1 41 9 49 17 57 25
  9718. * </pre>
  9719. *
  9720. * @param cipherText
  9721. * @param offset
  9722. */
  9723. State.prototype.finalPerm = function (cipherText, offset) {
  9724. var t = this.lhs;
  9725. this.lhs = this.rhs;
  9726. this.rhs = t;
  9727. this._exchangeLR(1, 0x55555555);
  9728. this._exchangeRL(8, 0x00ff00ff);
  9729. this._exchangeRL(2, 0x33333333);
  9730. this._exchangeLR(16, 0x0000ffff);
  9731. this._exchangeLR(4, 0x0f0f0f0f);
  9732. cipherText[offset] = this.lhs >> 24 & 0xff;
  9733. cipherText[offset + 1] = this.lhs >> 16 & 0xff;
  9734. cipherText[offset + 2] = this.lhs >> 8 & 0xff;
  9735. cipherText[offset + 3] = this.lhs & 0xff;
  9736. cipherText[offset + 4] = this.rhs >> 24 & 0xff;
  9737. cipherText[offset + 5] = this.rhs >> 16 & 0xff;
  9738. cipherText[offset + 6] = this.rhs >> 8 & 0xff;
  9739. cipherText[offset + 7] = this.rhs & 0xff;
  9740. };
  9741. /**
  9742. * DES cipher
  9743. */
  9744. var DES = C.DES = {
  9745. _blocksize: 2,
  9746. _keyschedule: null,
  9747. _state: new State(),
  9748. _init: function _init(k) {
  9749. this._keyschedule = new KeySchedule(k);
  9750. },
  9751. encrypt: function encrypt(message, password, options) {
  9752. options = options || {};
  9753. // Determine mode
  9754. var mode = options.mode || new C.mode.OFB();
  9755. // Allow mode to override options
  9756. if (mode.fixOptions)
  9757. mode.fixOptions(options);
  9758. var
  9759. // Convert to bytes if message is a string
  9760. m = message.constructor == String ? UTF8.stringToBytes(message) :
  9761. message,
  9762. // Generate random IV
  9763. iv = options.iv || util.randomBytes(8),
  9764. // Generate key
  9765. k = password.constructor == String ?
  9766. // Derive key from passphrase
  9767. C.PBKDF2(password, iv, 8, {
  9768. asBytes: true }) :
  9769. // else, assume byte array representing cryptographic key
  9770. password;
  9771. // Create key schedule
  9772. this._keyschedule = new KeySchedule(k);
  9773. // Encrypt
  9774. mode.encrypt(DES, m, iv);
  9775. // Return ciphertext
  9776. m = options.iv ? m : iv.concat(m);
  9777. return options && options.asBytes ? m : util.bytesToBase64(m);
  9778. },
  9779. _encryptblock: function _encryptblock(message, offset) {
  9780. this._state.initialPerm(message, offset);
  9781. for (var i = 0; i <= 15; i++) {
  9782. this._state.round(this._keyschedule.getKey(i));
  9783. }
  9784. this._state.finalPerm(message, offset);
  9785. },
  9786. decrypt: function decrypt(ciphertext, password, options) {
  9787. options = options || {};
  9788. // Determine mode
  9789. var mode = options.mode || new C.mode.OFB();
  9790. // Allow mode to override options
  9791. if (mode.fixOptions)
  9792. mode.fixOptions(options);
  9793. var
  9794. // Convert to bytes if ciphertext is a string
  9795. c = ciphertext.constructor == String ? util.
  9796. base64ToBytes(ciphertext) : ciphertext,
  9797. // Separate IV and message
  9798. iv = options.iv || c.splice(0, 8),
  9799. // Generate key
  9800. k = password.constructor == String ?
  9801. // Derive key from passphrase
  9802. C.PBKDF2(password, iv, 32, {
  9803. asBytes: true }) :
  9804. // else, assume byte array representing cryptographic key
  9805. password;
  9806. // Create key schedule
  9807. this._keyschedule = new KeySchedule(k);
  9808. mode.decrypt(DES, c, iv);
  9809. // Return plaintext
  9810. return options && options.asBytes ? c : UTF8.bytesToString(c);
  9811. },
  9812. _decryptblock: function _decryptblock(message, offset) {
  9813. this._state.initialPerm(message, offset);
  9814. for (var i = 15; i >= 0; i--) {
  9815. this._state.round(this._keyschedule.getKey(i));
  9816. }
  9817. this._state.finalPerm(message, offset);
  9818. } };
  9819. })();
  9820. /***/ }),
  9821. /* 22 */
  9822. /*!****************************************************************************!*\
  9823. !*** D:/Program Files/tourism/uni_applet/util/cryptojs-master/lib/HMAC.js ***!
  9824. \****************************************************************************/
  9825. /*! no static exports found */
  9826. /***/ (function(module, exports, __webpack_require__) {
  9827. (function () {
  9828. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 16).Crypto : window.Crypto;
  9829. // Shortcuts
  9830. var util = C.util,
  9831. charenc = C.charenc,
  9832. UTF8 = charenc.UTF8,
  9833. Binary = charenc.Binary;
  9834. C.HMAC = function (hasher, message, key, options) {
  9835. // Convert to byte arrays
  9836. if (message.constructor == String) message = UTF8.stringToBytes(message);
  9837. if (key.constructor == String) key = UTF8.stringToBytes(key);
  9838. /* else, assume byte arrays already */
  9839. // Allow arbitrary length keys
  9840. if (key.length > hasher._blocksize * 4)
  9841. key = hasher(key, { asBytes: true });
  9842. // XOR keys with pad constants
  9843. var okey = key.slice(0),
  9844. ikey = key.slice(0);
  9845. for (var i = 0; i < hasher._blocksize * 4; i++) {
  9846. okey[i] ^= 0x5C;
  9847. ikey[i] ^= 0x36;
  9848. }
  9849. var hmacbytes = hasher(okey.concat(hasher(ikey.concat(message), { asBytes: true })), { asBytes: true });
  9850. return options && options.asBytes ? hmacbytes :
  9851. options && options.asString ? Binary.bytesToString(hmacbytes) :
  9852. util.bytesToHex(hmacbytes);
  9853. };
  9854. })();
  9855. /***/ }),
  9856. /* 23 */
  9857. /*!*****************************************************************************!*\
  9858. !*** D:/Program Files/tourism/uni_applet/util/cryptojs-master/lib/MARC4.js ***!
  9859. \*****************************************************************************/
  9860. /*! no static exports found */
  9861. /***/ (function(module, exports, __webpack_require__) {
  9862. (function () {
  9863. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 16).Crypto : window.Crypto;
  9864. // Shortcuts
  9865. var util = C.util,
  9866. charenc = C.charenc,
  9867. UTF8 = charenc.UTF8,
  9868. Binary = charenc.Binary;
  9869. var MARC4 = C.MARC4 = {
  9870. /**
  9871. * Public API
  9872. */
  9873. encrypt: function encrypt(message, password) {
  9874. var
  9875. // Convert to bytes
  9876. m = UTF8.stringToBytes(message),
  9877. // Generate random IV
  9878. iv = util.randomBytes(16),
  9879. // Generate key
  9880. k = password.constructor == String ?
  9881. // Derive key from passphrase
  9882. C.PBKDF2(password, iv, 32, { asBytes: true }) :
  9883. // else, assume byte array representing cryptographic key
  9884. password;
  9885. // Encrypt
  9886. MARC4._marc4(m, k, 1536);
  9887. // Return ciphertext
  9888. return util.bytesToBase64(iv.concat(m));
  9889. },
  9890. decrypt: function decrypt(ciphertext, password) {
  9891. var
  9892. // Convert to bytes
  9893. c = util.base64ToBytes(ciphertext),
  9894. // Separate IV and message
  9895. iv = c.splice(0, 16),
  9896. // Generate key
  9897. k = password.constructor == String ?
  9898. // Derive key from passphrase
  9899. C.PBKDF2(password, iv, 32, { asBytes: true }) :
  9900. // else, assume byte array representing cryptographic key
  9901. password;
  9902. // Decrypt
  9903. MARC4._marc4(c, k, 1536);
  9904. // Return plaintext
  9905. return UTF8.bytesToString(c);
  9906. },
  9907. /**
  9908. * Internal methods
  9909. */
  9910. // The core
  9911. _marc4: function _marc4(m, k, drop) {
  9912. // State variables
  9913. var i, j, s, temp;
  9914. // Key setup
  9915. for (i = 0, s = []; i < 256; i++) {s[i] = i;}
  9916. for (i = 0, j = 0; i < 256; i++) {
  9917. j = (j + s[i] + k[i % k.length]) % 256;
  9918. // Swap
  9919. temp = s[i];
  9920. s[i] = s[j];
  9921. s[j] = temp;
  9922. }
  9923. // Clear counters
  9924. i = j = 0;
  9925. // Encryption
  9926. for (var k = -drop; k < m.length; k++) {
  9927. i = (i + 1) % 256;
  9928. j = (j + s[i]) % 256;
  9929. // Swap
  9930. temp = s[i];
  9931. s[i] = s[j];
  9932. s[j] = temp;
  9933. // Stop here if we're still dropping keystream
  9934. if (k < 0) continue;
  9935. // Encrypt
  9936. m[k] ^= s[(s[i] + s[j]) % 256];
  9937. }
  9938. } };
  9939. })();
  9940. /***/ }),
  9941. /* 24 */
  9942. /*!***************************************************************************!*\
  9943. !*** D:/Program Files/tourism/uni_applet/util/cryptojs-master/lib/MD5.js ***!
  9944. \***************************************************************************/
  9945. /*! no static exports found */
  9946. /***/ (function(module, exports, __webpack_require__) {
  9947. (function () {
  9948. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 16).Crypto : window.Crypto;
  9949. // Shortcuts
  9950. var util = C.util,
  9951. charenc = C.charenc,
  9952. UTF8 = charenc.UTF8,
  9953. Binary = charenc.Binary;
  9954. // Public API
  9955. var MD5 = C.MD5 = function (message, options) {
  9956. var digestbytes = util.wordsToBytes(MD5._md5(message));
  9957. return options && options.asBytes ? digestbytes :
  9958. options && options.asString ? Binary.bytesToString(digestbytes) :
  9959. util.bytesToHex(digestbytes);
  9960. };
  9961. // The core
  9962. MD5._md5 = function (message) {
  9963. // Convert to byte array
  9964. if (message.constructor == String) message = UTF8.stringToBytes(message);
  9965. /* else, assume byte array already */
  9966. var m = util.bytesToWords(message),
  9967. l = message.length * 8,
  9968. a = 1732584193,
  9969. b = -271733879,
  9970. c = -1732584194,
  9971. d = 271733878;
  9972. // Swap endian
  9973. for (var i = 0; i < m.length; i++) {
  9974. m[i] = (m[i] << 8 | m[i] >>> 24) & 0x00FF00FF |
  9975. (m[i] << 24 | m[i] >>> 8) & 0xFF00FF00;
  9976. }
  9977. // Padding
  9978. m[l >>> 5] |= 0x80 << l % 32;
  9979. m[(l + 64 >>> 9 << 4) + 14] = l;
  9980. // Method shortcuts
  9981. var FF = MD5._ff,
  9982. GG = MD5._gg,
  9983. HH = MD5._hh,
  9984. II = MD5._ii;
  9985. for (var i = 0; i < m.length; i += 16) {
  9986. var aa = a,
  9987. bb = b,
  9988. cc = c,
  9989. dd = d;
  9990. a = FF(a, b, c, d, m[i + 0], 7, -680876936);
  9991. d = FF(d, a, b, c, m[i + 1], 12, -389564586);
  9992. c = FF(c, d, a, b, m[i + 2], 17, 606105819);
  9993. b = FF(b, c, d, a, m[i + 3], 22, -1044525330);
  9994. a = FF(a, b, c, d, m[i + 4], 7, -176418897);
  9995. d = FF(d, a, b, c, m[i + 5], 12, 1200080426);
  9996. c = FF(c, d, a, b, m[i + 6], 17, -1473231341);
  9997. b = FF(b, c, d, a, m[i + 7], 22, -45705983);
  9998. a = FF(a, b, c, d, m[i + 8], 7, 1770035416);
  9999. d = FF(d, a, b, c, m[i + 9], 12, -1958414417);
  10000. c = FF(c, d, a, b, m[i + 10], 17, -42063);
  10001. b = FF(b, c, d, a, m[i + 11], 22, -1990404162);
  10002. a = FF(a, b, c, d, m[i + 12], 7, 1804603682);
  10003. d = FF(d, a, b, c, m[i + 13], 12, -40341101);
  10004. c = FF(c, d, a, b, m[i + 14], 17, -1502002290);
  10005. b = FF(b, c, d, a, m[i + 15], 22, 1236535329);
  10006. a = GG(a, b, c, d, m[i + 1], 5, -165796510);
  10007. d = GG(d, a, b, c, m[i + 6], 9, -1069501632);
  10008. c = GG(c, d, a, b, m[i + 11], 14, 643717713);
  10009. b = GG(b, c, d, a, m[i + 0], 20, -373897302);
  10010. a = GG(a, b, c, d, m[i + 5], 5, -701558691);
  10011. d = GG(d, a, b, c, m[i + 10], 9, 38016083);
  10012. c = GG(c, d, a, b, m[i + 15], 14, -660478335);
  10013. b = GG(b, c, d, a, m[i + 4], 20, -405537848);
  10014. a = GG(a, b, c, d, m[i + 9], 5, 568446438);
  10015. d = GG(d, a, b, c, m[i + 14], 9, -1019803690);
  10016. c = GG(c, d, a, b, m[i + 3], 14, -187363961);
  10017. b = GG(b, c, d, a, m[i + 8], 20, 1163531501);
  10018. a = GG(a, b, c, d, m[i + 13], 5, -1444681467);
  10019. d = GG(d, a, b, c, m[i + 2], 9, -51403784);
  10020. c = GG(c, d, a, b, m[i + 7], 14, 1735328473);
  10021. b = GG(b, c, d, a, m[i + 12], 20, -1926607734);
  10022. a = HH(a, b, c, d, m[i + 5], 4, -378558);
  10023. d = HH(d, a, b, c, m[i + 8], 11, -2022574463);
  10024. c = HH(c, d, a, b, m[i + 11], 16, 1839030562);
  10025. b = HH(b, c, d, a, m[i + 14], 23, -35309556);
  10026. a = HH(a, b, c, d, m[i + 1], 4, -1530992060);
  10027. d = HH(d, a, b, c, m[i + 4], 11, 1272893353);
  10028. c = HH(c, d, a, b, m[i + 7], 16, -155497632);
  10029. b = HH(b, c, d, a, m[i + 10], 23, -1094730640);
  10030. a = HH(a, b, c, d, m[i + 13], 4, 681279174);
  10031. d = HH(d, a, b, c, m[i + 0], 11, -358537222);
  10032. c = HH(c, d, a, b, m[i + 3], 16, -722521979);
  10033. b = HH(b, c, d, a, m[i + 6], 23, 76029189);
  10034. a = HH(a, b, c, d, m[i + 9], 4, -640364487);
  10035. d = HH(d, a, b, c, m[i + 12], 11, -421815835);
  10036. c = HH(c, d, a, b, m[i + 15], 16, 530742520);
  10037. b = HH(b, c, d, a, m[i + 2], 23, -995338651);
  10038. a = II(a, b, c, d, m[i + 0], 6, -198630844);
  10039. d = II(d, a, b, c, m[i + 7], 10, 1126891415);
  10040. c = II(c, d, a, b, m[i + 14], 15, -1416354905);
  10041. b = II(b, c, d, a, m[i + 5], 21, -57434055);
  10042. a = II(a, b, c, d, m[i + 12], 6, 1700485571);
  10043. d = II(d, a, b, c, m[i + 3], 10, -1894986606);
  10044. c = II(c, d, a, b, m[i + 10], 15, -1051523);
  10045. b = II(b, c, d, a, m[i + 1], 21, -2054922799);
  10046. a = II(a, b, c, d, m[i + 8], 6, 1873313359);
  10047. d = II(d, a, b, c, m[i + 15], 10, -30611744);
  10048. c = II(c, d, a, b, m[i + 6], 15, -1560198380);
  10049. b = II(b, c, d, a, m[i + 13], 21, 1309151649);
  10050. a = II(a, b, c, d, m[i + 4], 6, -145523070);
  10051. d = II(d, a, b, c, m[i + 11], 10, -1120210379);
  10052. c = II(c, d, a, b, m[i + 2], 15, 718787259);
  10053. b = II(b, c, d, a, m[i + 9], 21, -343485551);
  10054. a = a + aa >>> 0;
  10055. b = b + bb >>> 0;
  10056. c = c + cc >>> 0;
  10057. d = d + dd >>> 0;
  10058. }
  10059. return util.endian([a, b, c, d]);
  10060. };
  10061. // Auxiliary functions
  10062. MD5._ff = function (a, b, c, d, x, s, t) {
  10063. var n = a + (b & c | ~b & d) + (x >>> 0) + t;
  10064. return (n << s | n >>> 32 - s) + b;
  10065. };
  10066. MD5._gg = function (a, b, c, d, x, s, t) {
  10067. var n = a + (b & d | c & ~d) + (x >>> 0) + t;
  10068. return (n << s | n >>> 32 - s) + b;
  10069. };
  10070. MD5._hh = function (a, b, c, d, x, s, t) {
  10071. var n = a + (b ^ c ^ d) + (x >>> 0) + t;
  10072. return (n << s | n >>> 32 - s) + b;
  10073. };
  10074. MD5._ii = function (a, b, c, d, x, s, t) {
  10075. var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
  10076. return (n << s | n >>> 32 - s) + b;
  10077. };
  10078. // Package private blocksize
  10079. MD5._blocksize = 16;
  10080. MD5._digestsize = 16;
  10081. })();
  10082. /***/ }),
  10083. /* 25 */
  10084. /*!******************************************************************************!*\
  10085. !*** D:/Program Files/tourism/uni_applet/util/cryptojs-master/lib/PBKDF2.js ***!
  10086. \******************************************************************************/
  10087. /*! no static exports found */
  10088. /***/ (function(module, exports, __webpack_require__) {
  10089. (function () {
  10090. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 16).Crypto : window.Crypto;
  10091. // Shortcuts
  10092. var util = C.util,
  10093. charenc = C.charenc,
  10094. UTF8 = charenc.UTF8,
  10095. Binary = charenc.Binary;
  10096. C.PBKDF2 = function (password, salt, keylen, options) {
  10097. // Convert to byte arrays
  10098. if (password.constructor == String) password = UTF8.stringToBytes(password);
  10099. if (salt.constructor == String) salt = UTF8.stringToBytes(salt);
  10100. /* else, assume byte arrays already */
  10101. // Defaults
  10102. var hasher = options && options.hasher || C.SHA1,
  10103. iterations = options && options.iterations || 1;
  10104. // Pseudo-random function
  10105. function PRF(password, salt) {
  10106. return C.HMAC(hasher, salt, password, { asBytes: true });
  10107. }
  10108. // Generate key
  10109. var derivedKeyBytes = [],
  10110. blockindex = 1;
  10111. while (derivedKeyBytes.length < keylen) {
  10112. var block = PRF(password, salt.concat(util.wordsToBytes([blockindex])));
  10113. for (var u = block, i = 1; i < iterations; i++) {
  10114. u = PRF(password, u);
  10115. for (var j = 0; j < block.length; j++) {block[j] ^= u[j];}
  10116. }
  10117. derivedKeyBytes = derivedKeyBytes.concat(block);
  10118. blockindex++;
  10119. }
  10120. // Truncate excess bytes
  10121. derivedKeyBytes.length = keylen;
  10122. return options && options.asBytes ? derivedKeyBytes :
  10123. options && options.asString ? Binary.bytesToString(derivedKeyBytes) :
  10124. util.bytesToHex(derivedKeyBytes);
  10125. };
  10126. })();
  10127. /***/ }),
  10128. /* 26 */
  10129. /*!***********************************************************************************!*\
  10130. !*** D:/Program Files/tourism/uni_applet/util/cryptojs-master/lib/PBKDF2Async.js ***!
  10131. \***********************************************************************************/
  10132. /*! no static exports found */
  10133. /***/ (function(module, exports, __webpack_require__) {
  10134. /* WEBPACK VAR INJECTION */(function(process) {(function () {
  10135. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 16).Crypto : window.Crypto;
  10136. // Shortcuts
  10137. var util = C.util,
  10138. charenc = C.charenc,
  10139. UTF8 = charenc.UTF8,
  10140. Binary = charenc.Binary;
  10141. if (!C.nextTick) {
  10142. // node.js has setTime out but prefer process.nextTick
  10143. if (typeof process != 'undefined' && typeof process.nextTick !== 'undefined') {
  10144. C.nextTick = process.nextTick;
  10145. } else if (typeof setTimeout !== 'undefined') {
  10146. C.nextTick = function (callback) {
  10147. setTimeout(callback, 0);
  10148. };
  10149. }
  10150. }
  10151. C.PBKDF2Async = function (password, salt, keylen, callback, options) {
  10152. // Convert to byte arrays
  10153. if (password.constructor == String) password = UTF8.stringToBytes(password);
  10154. if (salt.constructor == String) salt = UTF8.stringToBytes(salt);
  10155. /* else, assume byte arrays already */
  10156. // Defaults
  10157. var hasher = options && options.hasher || C.SHA1,
  10158. iterations = options && options.iterations || 1;
  10159. // Progress callback option
  10160. var progressChangeHandler = options && options.onProgressChange;
  10161. var totalIterations = Math.ceil(keylen / hasher._digestsize) * iterations;
  10162. function fireProgressChange(currentIteration) {
  10163. if (progressChangeHandler) {
  10164. var iterationsSoFar = derivedKeyBytes.length / hasher._digestsize * iterations + currentIteration;
  10165. setTimeout(function () {
  10166. progressChangeHandler(Math.round(iterationsSoFar / totalIterations * 100));
  10167. }, 0);
  10168. }
  10169. }
  10170. // Pseudo-random function
  10171. function PRF(password, salt) {
  10172. return C.HMAC(hasher, salt, password, { asBytes: true });
  10173. }
  10174. var nextTick = C.nextTick;
  10175. // Generate key
  10176. var derivedKeyBytes = [],
  10177. blockindex = 1;
  10178. var _outer, _inner;
  10179. nextTick(_outer = function outer() {
  10180. if (derivedKeyBytes.length < keylen) {
  10181. var block = PRF(password, salt.concat(util.wordsToBytes([blockindex])));
  10182. fireProgressChange(1);
  10183. var u = block,i = 1;
  10184. nextTick(_inner = function inner() {
  10185. if (i < iterations) {
  10186. u = PRF(password, u);
  10187. for (var j = 0; j < block.length; j++) {block[j] ^= u[j];}
  10188. i++;
  10189. fireProgressChange(i);
  10190. nextTick(_inner);
  10191. } else {
  10192. derivedKeyBytes = derivedKeyBytes.concat(block);
  10193. blockindex++;
  10194. nextTick(_outer);
  10195. }
  10196. });
  10197. } else {
  10198. // Truncate excess bytes
  10199. derivedKeyBytes.length = keylen;
  10200. callback(
  10201. options && options.asBytes ? derivedKeyBytes :
  10202. options && options.asString ? Binary.bytesToString(derivedKeyBytes) :
  10203. util.bytesToHex(derivedKeyBytes));
  10204. }
  10205. });
  10206. };
  10207. })();
  10208. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 27)))
  10209. /***/ }),
  10210. /* 27 */
  10211. /*!********************************************************!*\
  10212. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  10213. \********************************************************/
  10214. /*! no static exports found */
  10215. /***/ (function(module, exports, __webpack_require__) {
  10216. exports.nextTick = function nextTick(fn) {
  10217. var args = Array.prototype.slice.call(arguments);
  10218. args.shift();
  10219. setTimeout(function () {
  10220. fn.apply(null, args);
  10221. }, 0);
  10222. };
  10223. exports.platform = exports.arch =
  10224. exports.execPath = exports.title = 'browser';
  10225. exports.pid = 1;
  10226. exports.browser = true;
  10227. exports.env = {};
  10228. exports.argv = [];
  10229. exports.binding = function (name) {
  10230. throw new Error('No such module. (Possibly not yet loaded)')
  10231. };
  10232. (function () {
  10233. var cwd = '/';
  10234. var path;
  10235. exports.cwd = function () { return cwd };
  10236. exports.chdir = function (dir) {
  10237. if (!path) path = __webpack_require__(/*! path */ 28);
  10238. cwd = path.resolve(dir, cwd);
  10239. };
  10240. })();
  10241. exports.exit = exports.kill =
  10242. exports.umask = exports.dlopen =
  10243. exports.uptime = exports.memoryUsage =
  10244. exports.uvCounters = function() {};
  10245. exports.features = {};
  10246. /***/ }),
  10247. /* 28 */
  10248. /*!***********************************************!*\
  10249. !*** ./node_modules/path-browserify/index.js ***!
  10250. \***********************************************/
  10251. /*! no static exports found */
  10252. /***/ (function(module, exports, __webpack_require__) {
  10253. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  10254. // backported and transplited with Babel, with backwards-compat fixes
  10255. // Copyright Joyent, Inc. and other Node contributors.
  10256. //
  10257. // Permission is hereby granted, free of charge, to any person obtaining a
  10258. // copy of this software and associated documentation files (the
  10259. // "Software"), to deal in the Software without restriction, including
  10260. // without limitation the rights to use, copy, modify, merge, publish,
  10261. // distribute, sublicense, and/or sell copies of the Software, and to permit
  10262. // persons to whom the Software is furnished to do so, subject to the
  10263. // following conditions:
  10264. //
  10265. // The above copyright notice and this permission notice shall be included
  10266. // in all copies or substantial portions of the Software.
  10267. //
  10268. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  10269. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  10270. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  10271. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  10272. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  10273. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  10274. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  10275. // resolves . and .. elements in a path array with directory names there
  10276. // must be no slashes, empty elements, or device names (c:\) in the array
  10277. // (so also no leading and trailing slashes - it does not distinguish
  10278. // relative and absolute paths)
  10279. function normalizeArray(parts, allowAboveRoot) {
  10280. // if the path tries to go above the root, `up` ends up > 0
  10281. var up = 0;
  10282. for (var i = parts.length - 1; i >= 0; i--) {
  10283. var last = parts[i];
  10284. if (last === '.') {
  10285. parts.splice(i, 1);
  10286. } else if (last === '..') {
  10287. parts.splice(i, 1);
  10288. up++;
  10289. } else if (up) {
  10290. parts.splice(i, 1);
  10291. up--;
  10292. }
  10293. }
  10294. // if the path is allowed to go above the root, restore leading ..s
  10295. if (allowAboveRoot) {
  10296. for (; up--; up) {
  10297. parts.unshift('..');
  10298. }
  10299. }
  10300. return parts;
  10301. }
  10302. // path.resolve([from ...], to)
  10303. // posix version
  10304. exports.resolve = function() {
  10305. var resolvedPath = '',
  10306. resolvedAbsolute = false;
  10307. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  10308. var path = (i >= 0) ? arguments[i] : process.cwd();
  10309. // Skip empty and invalid entries
  10310. if (typeof path !== 'string') {
  10311. throw new TypeError('Arguments to path.resolve must be strings');
  10312. } else if (!path) {
  10313. continue;
  10314. }
  10315. resolvedPath = path + '/' + resolvedPath;
  10316. resolvedAbsolute = path.charAt(0) === '/';
  10317. }
  10318. // At this point the path should be resolved to a full absolute path, but
  10319. // handle relative paths to be safe (might happen when process.cwd() fails)
  10320. // Normalize the path
  10321. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  10322. return !!p;
  10323. }), !resolvedAbsolute).join('/');
  10324. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  10325. };
  10326. // path.normalize(path)
  10327. // posix version
  10328. exports.normalize = function(path) {
  10329. var isAbsolute = exports.isAbsolute(path),
  10330. trailingSlash = substr(path, -1) === '/';
  10331. // Normalize the path
  10332. path = normalizeArray(filter(path.split('/'), function(p) {
  10333. return !!p;
  10334. }), !isAbsolute).join('/');
  10335. if (!path && !isAbsolute) {
  10336. path = '.';
  10337. }
  10338. if (path && trailingSlash) {
  10339. path += '/';
  10340. }
  10341. return (isAbsolute ? '/' : '') + path;
  10342. };
  10343. // posix version
  10344. exports.isAbsolute = function(path) {
  10345. return path.charAt(0) === '/';
  10346. };
  10347. // posix version
  10348. exports.join = function() {
  10349. var paths = Array.prototype.slice.call(arguments, 0);
  10350. return exports.normalize(filter(paths, function(p, index) {
  10351. if (typeof p !== 'string') {
  10352. throw new TypeError('Arguments to path.join must be strings');
  10353. }
  10354. return p;
  10355. }).join('/'));
  10356. };
  10357. // path.relative(from, to)
  10358. // posix version
  10359. exports.relative = function(from, to) {
  10360. from = exports.resolve(from).substr(1);
  10361. to = exports.resolve(to).substr(1);
  10362. function trim(arr) {
  10363. var start = 0;
  10364. for (; start < arr.length; start++) {
  10365. if (arr[start] !== '') break;
  10366. }
  10367. var end = arr.length - 1;
  10368. for (; end >= 0; end--) {
  10369. if (arr[end] !== '') break;
  10370. }
  10371. if (start > end) return [];
  10372. return arr.slice(start, end - start + 1);
  10373. }
  10374. var fromParts = trim(from.split('/'));
  10375. var toParts = trim(to.split('/'));
  10376. var length = Math.min(fromParts.length, toParts.length);
  10377. var samePartsLength = length;
  10378. for (var i = 0; i < length; i++) {
  10379. if (fromParts[i] !== toParts[i]) {
  10380. samePartsLength = i;
  10381. break;
  10382. }
  10383. }
  10384. var outputParts = [];
  10385. for (var i = samePartsLength; i < fromParts.length; i++) {
  10386. outputParts.push('..');
  10387. }
  10388. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  10389. return outputParts.join('/');
  10390. };
  10391. exports.sep = '/';
  10392. exports.delimiter = ':';
  10393. exports.dirname = function (path) {
  10394. if (typeof path !== 'string') path = path + '';
  10395. if (path.length === 0) return '.';
  10396. var code = path.charCodeAt(0);
  10397. var hasRoot = code === 47 /*/*/;
  10398. var end = -1;
  10399. var matchedSlash = true;
  10400. for (var i = path.length - 1; i >= 1; --i) {
  10401. code = path.charCodeAt(i);
  10402. if (code === 47 /*/*/) {
  10403. if (!matchedSlash) {
  10404. end = i;
  10405. break;
  10406. }
  10407. } else {
  10408. // We saw the first non-path separator
  10409. matchedSlash = false;
  10410. }
  10411. }
  10412. if (end === -1) return hasRoot ? '/' : '.';
  10413. if (hasRoot && end === 1) {
  10414. // return '//';
  10415. // Backwards-compat fix:
  10416. return '/';
  10417. }
  10418. return path.slice(0, end);
  10419. };
  10420. function basename(path) {
  10421. if (typeof path !== 'string') path = path + '';
  10422. var start = 0;
  10423. var end = -1;
  10424. var matchedSlash = true;
  10425. var i;
  10426. for (i = path.length - 1; i >= 0; --i) {
  10427. if (path.charCodeAt(i) === 47 /*/*/) {
  10428. // If we reached a path separator that was not part of a set of path
  10429. // separators at the end of the string, stop now
  10430. if (!matchedSlash) {
  10431. start = i + 1;
  10432. break;
  10433. }
  10434. } else if (end === -1) {
  10435. // We saw the first non-path separator, mark this as the end of our
  10436. // path component
  10437. matchedSlash = false;
  10438. end = i + 1;
  10439. }
  10440. }
  10441. if (end === -1) return '';
  10442. return path.slice(start, end);
  10443. }
  10444. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  10445. // in new Node.js versions, so only basename() above is backported here
  10446. exports.basename = function (path, ext) {
  10447. var f = basename(path);
  10448. if (ext && f.substr(-1 * ext.length) === ext) {
  10449. f = f.substr(0, f.length - ext.length);
  10450. }
  10451. return f;
  10452. };
  10453. exports.extname = function (path) {
  10454. if (typeof path !== 'string') path = path + '';
  10455. var startDot = -1;
  10456. var startPart = 0;
  10457. var end = -1;
  10458. var matchedSlash = true;
  10459. // Track the state of characters (if any) we see before our first dot and
  10460. // after any path separator we find
  10461. var preDotState = 0;
  10462. for (var i = path.length - 1; i >= 0; --i) {
  10463. var code = path.charCodeAt(i);
  10464. if (code === 47 /*/*/) {
  10465. // If we reached a path separator that was not part of a set of path
  10466. // separators at the end of the string, stop now
  10467. if (!matchedSlash) {
  10468. startPart = i + 1;
  10469. break;
  10470. }
  10471. continue;
  10472. }
  10473. if (end === -1) {
  10474. // We saw the first non-path separator, mark this as the end of our
  10475. // extension
  10476. matchedSlash = false;
  10477. end = i + 1;
  10478. }
  10479. if (code === 46 /*.*/) {
  10480. // If this is our first dot, mark it as the start of our extension
  10481. if (startDot === -1)
  10482. startDot = i;
  10483. else if (preDotState !== 1)
  10484. preDotState = 1;
  10485. } else if (startDot !== -1) {
  10486. // We saw a non-dot and non-path separator before our dot, so we should
  10487. // have a good chance at having a non-empty extension
  10488. preDotState = -1;
  10489. }
  10490. }
  10491. if (startDot === -1 || end === -1 ||
  10492. // We saw a non-dot character immediately before the dot
  10493. preDotState === 0 ||
  10494. // The (right-most) trimmed path component is exactly '..'
  10495. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  10496. return '';
  10497. }
  10498. return path.slice(startDot, end);
  10499. };
  10500. function filter (xs, f) {
  10501. if (xs.filter) return xs.filter(f);
  10502. var res = [];
  10503. for (var i = 0; i < xs.length; i++) {
  10504. if (f(xs[i], i, xs)) res.push(xs[i]);
  10505. }
  10506. return res;
  10507. }
  10508. // String.prototype.substr - negative index don't work in IE8
  10509. var substr = 'ab'.substr(-1) === 'b'
  10510. ? function (str, start, len) { return str.substr(start, len) }
  10511. : function (str, start, len) {
  10512. if (start < 0) start = str.length + start;
  10513. return str.substr(start, len);
  10514. }
  10515. ;
  10516. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 27)))
  10517. /***/ }),
  10518. /* 29 */
  10519. /*!******************************************************************************!*\
  10520. !*** D:/Program Files/tourism/uni_applet/util/cryptojs-master/lib/Rabbit.js ***!
  10521. \******************************************************************************/
  10522. /*! no static exports found */
  10523. /***/ (function(module, exports, __webpack_require__) {
  10524. (function () {
  10525. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 16).Crypto : window.Crypto;
  10526. // Shortcuts
  10527. var util = C.util,
  10528. charenc = C.charenc,
  10529. UTF8 = charenc.UTF8,
  10530. Binary = charenc.Binary;
  10531. // Inner state
  10532. var x = [],
  10533. c = [],
  10534. b;
  10535. var Rabbit = C.Rabbit = {
  10536. /**
  10537. * Public API
  10538. */
  10539. encrypt: function encrypt(message, password) {
  10540. var
  10541. // Convert to bytes
  10542. m = UTF8.stringToBytes(message),
  10543. // Generate random IV
  10544. iv = util.randomBytes(8),
  10545. // Generate key
  10546. k = password.constructor == String ?
  10547. // Derive key from passphrase
  10548. C.PBKDF2(password, iv, 32, { asBytes: true }) :
  10549. // else, assume byte array representing cryptographic key
  10550. password;
  10551. // Encrypt
  10552. Rabbit._rabbit(m, k, util.bytesToWords(iv));
  10553. // Return ciphertext
  10554. return util.bytesToBase64(iv.concat(m));
  10555. },
  10556. decrypt: function decrypt(ciphertext, password) {
  10557. var
  10558. // Convert to bytes
  10559. c = util.base64ToBytes(ciphertext),
  10560. // Separate IV and message
  10561. iv = c.splice(0, 8),
  10562. // Generate key
  10563. k = password.constructor == String ?
  10564. // Derive key from passphrase
  10565. C.PBKDF2(password, iv, 32, { asBytes: true }) :
  10566. // else, assume byte array representing cryptographic key
  10567. password;
  10568. // Decrypt
  10569. Rabbit._rabbit(c, k, util.bytesToWords(iv));
  10570. // Return plaintext
  10571. return UTF8.bytesToString(c);
  10572. },
  10573. /**
  10574. * Internal methods
  10575. */
  10576. // Encryption/decryption scheme
  10577. _rabbit: function _rabbit(m, k, iv) {
  10578. Rabbit._keysetup(k);
  10579. if (iv) Rabbit._ivsetup(iv);
  10580. for (var s = [], i = 0; i < m.length; i++) {
  10581. if (i % 16 == 0) {
  10582. // Iterate the system
  10583. Rabbit._nextstate();
  10584. // Generate 16 bytes of pseudo-random data
  10585. s[0] = x[0] ^ x[5] >>> 16 ^ x[3] << 16;
  10586. s[1] = x[2] ^ x[7] >>> 16 ^ x[5] << 16;
  10587. s[2] = x[4] ^ x[1] >>> 16 ^ x[7] << 16;
  10588. s[3] = x[6] ^ x[3] >>> 16 ^ x[1] << 16;
  10589. // Swap endian
  10590. for (var j = 0; j < 4; j++) {
  10591. s[j] = (s[j] << 8 | s[j] >>> 24) & 0x00FF00FF |
  10592. (s[j] << 24 | s[j] >>> 8) & 0xFF00FF00;
  10593. }
  10594. // Convert words to bytes
  10595. for (var b = 120; b >= 0; b -= 8) {
  10596. s[b / 8] = s[b >>> 5] >>> 24 - b % 32 & 0xFF;}
  10597. }
  10598. m[i] ^= s[i % 16];
  10599. }
  10600. },
  10601. // Key setup scheme
  10602. _keysetup: function _keysetup(k) {
  10603. // Generate initial state values
  10604. x[0] = k[0];
  10605. x[2] = k[1];
  10606. x[4] = k[2];
  10607. x[6] = k[3];
  10608. x[1] = k[3] << 16 | k[2] >>> 16;
  10609. x[3] = k[0] << 16 | k[3] >>> 16;
  10610. x[5] = k[1] << 16 | k[0] >>> 16;
  10611. x[7] = k[2] << 16 | k[1] >>> 16;
  10612. // Generate initial counter values
  10613. c[0] = util.rotl(k[2], 16);
  10614. c[2] = util.rotl(k[3], 16);
  10615. c[4] = util.rotl(k[0], 16);
  10616. c[6] = util.rotl(k[1], 16);
  10617. c[1] = k[0] & 0xFFFF0000 | k[1] & 0xFFFF;
  10618. c[3] = k[1] & 0xFFFF0000 | k[2] & 0xFFFF;
  10619. c[5] = k[2] & 0xFFFF0000 | k[3] & 0xFFFF;
  10620. c[7] = k[3] & 0xFFFF0000 | k[0] & 0xFFFF;
  10621. // Clear carry bit
  10622. b = 0;
  10623. // Iterate the system four times
  10624. for (var i = 0; i < 4; i++) {Rabbit._nextstate();}
  10625. // Modify the counters
  10626. for (var i = 0; i < 8; i++) {c[i] ^= x[i + 4 & 7];}
  10627. },
  10628. // IV setup scheme
  10629. _ivsetup: function _ivsetup(iv) {
  10630. // Generate four subvectors
  10631. var i0 = util.endian(iv[0]),
  10632. i2 = util.endian(iv[1]),
  10633. i1 = i0 >>> 16 | i2 & 0xFFFF0000,
  10634. i3 = i2 << 16 | i0 & 0x0000FFFF;
  10635. // Modify counter values
  10636. c[0] ^= i0;
  10637. c[1] ^= i1;
  10638. c[2] ^= i2;
  10639. c[3] ^= i3;
  10640. c[4] ^= i0;
  10641. c[5] ^= i1;
  10642. c[6] ^= i2;
  10643. c[7] ^= i3;
  10644. // Iterate the system four times
  10645. for (var i = 0; i < 4; i++) {Rabbit._nextstate();}
  10646. },
  10647. // Next-state function
  10648. _nextstate: function _nextstate() {
  10649. // Save old counter values
  10650. for (var c_old = [], i = 0; i < 8; i++) {c_old[i] = c[i];}
  10651. // Calculate new counter values
  10652. c[0] = c[0] + 0x4D34D34D + b >>> 0;
  10653. c[1] = c[1] + 0xD34D34D3 + (c[0] >>> 0 < c_old[0] >>> 0 ? 1 : 0) >>> 0;
  10654. c[2] = c[2] + 0x34D34D34 + (c[1] >>> 0 < c_old[1] >>> 0 ? 1 : 0) >>> 0;
  10655. c[3] = c[3] + 0x4D34D34D + (c[2] >>> 0 < c_old[2] >>> 0 ? 1 : 0) >>> 0;
  10656. c[4] = c[4] + 0xD34D34D3 + (c[3] >>> 0 < c_old[3] >>> 0 ? 1 : 0) >>> 0;
  10657. c[5] = c[5] + 0x34D34D34 + (c[4] >>> 0 < c_old[4] >>> 0 ? 1 : 0) >>> 0;
  10658. c[6] = c[6] + 0x4D34D34D + (c[5] >>> 0 < c_old[5] >>> 0 ? 1 : 0) >>> 0;
  10659. c[7] = c[7] + 0xD34D34D3 + (c[6] >>> 0 < c_old[6] >>> 0 ? 1 : 0) >>> 0;
  10660. b = c[7] >>> 0 < c_old[7] >>> 0 ? 1 : 0;
  10661. // Calculate the g-values
  10662. for (var g = [], i = 0; i < 8; i++) {
  10663. var gx = x[i] + c[i] >>> 0;
  10664. // Construct high and low argument for squaring
  10665. var ga = gx & 0xFFFF,
  10666. gb = gx >>> 16;
  10667. // Calculate high and low result of squaring
  10668. var gh = ((ga * ga >>> 17) + ga * gb >>> 15) + gb * gb,
  10669. gl = ((gx & 0xFFFF0000) * gx >>> 0) + ((gx & 0x0000FFFF) * gx >>> 0) >>> 0;
  10670. // High XOR low
  10671. g[i] = gh ^ gl;
  10672. }
  10673. // Calculate new state values
  10674. x[0] = g[0] + (g[7] << 16 | g[7] >>> 16) + (g[6] << 16 | g[6] >>> 16);
  10675. x[1] = g[1] + (g[0] << 8 | g[0] >>> 24) + g[7];
  10676. x[2] = g[2] + (g[1] << 16 | g[1] >>> 16) + (g[0] << 16 | g[0] >>> 16);
  10677. x[3] = g[3] + (g[2] << 8 | g[2] >>> 24) + g[1];
  10678. x[4] = g[4] + (g[3] << 16 | g[3] >>> 16) + (g[2] << 16 | g[2] >>> 16);
  10679. x[5] = g[5] + (g[4] << 8 | g[4] >>> 24) + g[3];
  10680. x[6] = g[6] + (g[5] << 16 | g[5] >>> 16) + (g[4] << 16 | g[4] >>> 16);
  10681. x[7] = g[7] + (g[6] << 8 | g[6] >>> 24) + g[5];
  10682. } };
  10683. })();
  10684. /***/ }),
  10685. /* 30 */
  10686. /*!****************************************************************************!*\
  10687. !*** D:/Program Files/tourism/uni_applet/util/cryptojs-master/lib/SHA1.js ***!
  10688. \****************************************************************************/
  10689. /*! no static exports found */
  10690. /***/ (function(module, exports, __webpack_require__) {
  10691. (function () {
  10692. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 16).Crypto : window.Crypto;
  10693. // Shortcuts
  10694. var util = C.util,
  10695. charenc = C.charenc,
  10696. UTF8 = charenc.UTF8,
  10697. Binary = charenc.Binary;
  10698. // Public API
  10699. var SHA1 = C.SHA1 = function (message, options) {
  10700. var digestbytes = util.wordsToBytes(SHA1._sha1(message));
  10701. return options && options.asBytes ? digestbytes :
  10702. options && options.asString ? Binary.bytesToString(digestbytes) :
  10703. util.bytesToHex(digestbytes);
  10704. };
  10705. // The core
  10706. SHA1._sha1 = function (message) {
  10707. // Convert to byte array
  10708. if (message.constructor == String) message = UTF8.stringToBytes(message);
  10709. /* else, assume byte array already */
  10710. var m = util.bytesToWords(message),
  10711. l = message.length * 8,
  10712. w = [],
  10713. H0 = 1732584193,
  10714. H1 = -271733879,
  10715. H2 = -1732584194,
  10716. H3 = 271733878,
  10717. H4 = -1009589776;
  10718. // Padding
  10719. m[l >> 5] |= 0x80 << 24 - l % 32;
  10720. m[(l + 64 >>> 9 << 4) + 15] = l;
  10721. for (var i = 0; i < m.length; i += 16) {
  10722. var a = H0,
  10723. b = H1,
  10724. c = H2,
  10725. d = H3,
  10726. e = H4;
  10727. for (var j = 0; j < 80; j++) {
  10728. if (j < 16) w[j] = m[i + j];else
  10729. {
  10730. var n = w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16];
  10731. w[j] = n << 1 | n >>> 31;
  10732. }
  10733. var t = (H0 << 5 | H0 >>> 27) + H4 + (w[j] >>> 0) + (
  10734. j < 20 ? (H1 & H2 | ~H1 & H3) + 1518500249 :
  10735. j < 40 ? (H1 ^ H2 ^ H3) + 1859775393 :
  10736. j < 60 ? (H1 & H2 | H1 & H3 | H2 & H3) - 1894007588 :
  10737. (H1 ^ H2 ^ H3) - 899497514);
  10738. H4 = H3;
  10739. H3 = H2;
  10740. H2 = H1 << 30 | H1 >>> 2;
  10741. H1 = H0;
  10742. H0 = t;
  10743. }
  10744. H0 += a;
  10745. H1 += b;
  10746. H2 += c;
  10747. H3 += d;
  10748. H4 += e;
  10749. }
  10750. return [H0, H1, H2, H3, H4];
  10751. };
  10752. // Package private blocksize
  10753. SHA1._blocksize = 16;
  10754. SHA1._digestsize = 20;
  10755. })();
  10756. /***/ }),
  10757. /* 31 */
  10758. /*!******************************************************************************!*\
  10759. !*** D:/Program Files/tourism/uni_applet/util/cryptojs-master/lib/SHA256.js ***!
  10760. \******************************************************************************/
  10761. /*! no static exports found */
  10762. /***/ (function(module, exports, __webpack_require__) {
  10763. (function () {
  10764. var C = typeof window === 'undefined' ? __webpack_require__(/*! ./Crypto */ 16).Crypto : window.Crypto;
  10765. // Shortcuts
  10766. var util = C.util,
  10767. charenc = C.charenc,
  10768. UTF8 = charenc.UTF8,
  10769. Binary = charenc.Binary;
  10770. // Constants
  10771. var K = [0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5,
  10772. 0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5,
  10773. 0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3,
  10774. 0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174,
  10775. 0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC,
  10776. 0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA,
  10777. 0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7,
  10778. 0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967,
  10779. 0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13,
  10780. 0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85,
  10781. 0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3,
  10782. 0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070,
  10783. 0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5,
  10784. 0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3,
  10785. 0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208,
  10786. 0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2];
  10787. // Public API
  10788. var SHA256 = C.SHA256 = function (message, options) {
  10789. var digestbytes = util.wordsToBytes(SHA256._sha256(message));
  10790. return options && options.asBytes ? digestbytes :
  10791. options && options.asString ? Binary.bytesToString(digestbytes) :
  10792. util.bytesToHex(digestbytes);
  10793. };
  10794. // The core
  10795. SHA256._sha256 = function (message) {
  10796. // Convert to byte array
  10797. if (message.constructor == String) message = UTF8.stringToBytes(message);
  10798. /* else, assume byte array already */
  10799. var m = util.bytesToWords(message),
  10800. l = message.length * 8,
  10801. H = [0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A,
  10802. 0x510E527F, 0x9B05688C, 0x1F83D9AB, 0x5BE0CD19],
  10803. w = [],
  10804. a,b,c,d,e,f,g,h,i,j,
  10805. t1,t2;
  10806. // Padding
  10807. m[l >> 5] |= 0x80 << 24 - l % 32;
  10808. m[(l + 64 >> 9 << 4) + 15] = l;
  10809. for (var i = 0; i < m.length; i += 16) {
  10810. a = H[0];
  10811. b = H[1];
  10812. c = H[2];
  10813. d = H[3];
  10814. e = H[4];
  10815. f = H[5];
  10816. g = H[6];
  10817. h = H[7];
  10818. for (var j = 0; j < 64; j++) {
  10819. if (j < 16) w[j] = m[j + i];else
  10820. {
  10821. var gamma0x = w[j - 15],
  10822. gamma1x = w[j - 2],
  10823. gamma0 = (gamma0x << 25 | gamma0x >>> 7) ^ (
  10824. gamma0x << 14 | gamma0x >>> 18) ^
  10825. gamma0x >>> 3,
  10826. gamma1 = (gamma1x << 15 | gamma1x >>> 17) ^ (
  10827. gamma1x << 13 | gamma1x >>> 19) ^
  10828. gamma1x >>> 10;
  10829. w[j] = gamma0 + (w[j - 7] >>> 0) +
  10830. gamma1 + (w[j - 16] >>> 0);
  10831. }
  10832. var ch = e & f ^ ~e & g,
  10833. maj = a & b ^ a & c ^ b & c,
  10834. sigma0 = (a << 30 | a >>> 2) ^ (
  10835. a << 19 | a >>> 13) ^ (
  10836. a << 10 | a >>> 22),
  10837. sigma1 = (e << 26 | e >>> 6) ^ (
  10838. e << 21 | e >>> 11) ^ (
  10839. e << 7 | e >>> 25);
  10840. t1 = (h >>> 0) + sigma1 + ch + K[j] + (w[j] >>> 0);
  10841. t2 = sigma0 + maj;
  10842. h = g;
  10843. g = f;
  10844. f = e;
  10845. e = d + t1 >>> 0;
  10846. d = c;
  10847. c = b;
  10848. b = a;
  10849. a = t1 + t2 >>> 0;
  10850. }
  10851. H[0] += a;
  10852. H[1] += b;
  10853. H[2] += c;
  10854. H[3] += d;
  10855. H[4] += e;
  10856. H[5] += f;
  10857. H[6] += g;
  10858. H[7] += h;
  10859. }
  10860. return H;
  10861. };
  10862. // Package private blocksize
  10863. SHA256._blocksize = 16;
  10864. SHA256._digestsize = 32;
  10865. })();
  10866. /***/ }),
  10867. /* 32 */
  10868. /*!************************************************************!*\
  10869. !*** D:/Program Files/tourism/uni_applet/common/helper.js ***!
  10870. \************************************************************/
  10871. /*! no static exports found */
  10872. /***/ (function(module, exports, __webpack_require__) {
  10873. "use strict";
  10874. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var config = _interopRequireWildcard(__webpack_require__(/*! ../config */ 13));function _getRequireWildcardCache() {if (typeof WeakMap !== "function") return null;var cache = new WeakMap();_getRequireWildcardCache = function _getRequireWildcardCache() {return cache;};return cache;}function _interopRequireWildcard(obj) {if (obj && obj.__esModule) {return obj;}if (obj === null || typeof obj !== "object" && typeof obj !== "function") {return { default: obj };}var cache = _getRequireWildcardCache();if (cache && cache.has(obj)) {return cache.get(obj);}var newObj = {};var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var key in obj) {if (Object.prototype.hasOwnProperty.call(obj, key)) {var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;if (desc && (desc.get || desc.set)) {Object.defineProperty(newObj, key, desc);} else {newObj[key] = obj[key];}}}newObj.default = obj;if (cache) {cache.set(obj, newObj);}return newObj;}
  10875. var ossUploadUrl = 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/';
  10876. var contactCustomerService = function contactCustomerService(item) {
  10877. console.log(item);
  10878. if (!item) {
  10879. item = '110';
  10880. }
  10881. console.log("联系客服");
  10882. uni.makePhoneCall({
  10883. phoneNumber: item,
  10884. success: function success(res) {
  10885. console.log('调用成功!');
  10886. },
  10887. // 失败回调
  10888. fail: function fail(res) {
  10889. console.log('调用失败!');
  10890. contactCustomerService(item);
  10891. } });
  10892. };
  10893. var logout = function logout() {
  10894. uni.removeStorage({
  10895. key: 'userInfo' });
  10896. };
  10897. var formatLocation = function formatLocation(str) {
  10898. var area = {};
  10899. var index11 = 0;
  10900. var index1 = str.indexOf("省");
  10901. if (index1 == -1) {
  10902. index11 = str.indexOf("自治区");
  10903. if (index11 != -1) {
  10904. area.Province = str.substring(0, index11 + 3);
  10905. } else {
  10906. area.Province = str.substring(0, 0);
  10907. }
  10908. } else {
  10909. area.Province = str.substring(0, index1 + 1);
  10910. }
  10911. var index2 = str.indexOf("市");
  10912. if (index11 == -1) {
  10913. area.City = str.substring(index11 + 1, index2 + 1);
  10914. } else {
  10915. if (index11 == 0) {
  10916. area.City = str.substring(index1 + 1, index2 + 1);
  10917. } else {
  10918. area.City = str.substring(index11 + 3, index2 + 1);
  10919. }
  10920. }
  10921. var index3 = str.indexOf("区");
  10922. if (index3 == -1) {
  10923. index3 = str.indexOf("县");
  10924. if (index3 == -1) {
  10925. index3 = str.lastIndexOf("市");
  10926. if (index3 == -1) {
  10927. index3 = str.indexOf("镇");
  10928. if (index3 == -1) {
  10929. } else {
  10930. area.Country = str.substring(index2 + 1, index3 + 1);
  10931. }
  10932. } else {
  10933. area.Country = str.substring(index2 + 1, index3 + 1);
  10934. }
  10935. } else {
  10936. area.Country = str.substring(index2 + 1, index3 + 1);
  10937. }
  10938. } else {
  10939. area.Country = str.substring(index2 + 1, index3 + 1);
  10940. }
  10941. area.Village = str.substring(index3 + 1, str.length);
  10942. return area;
  10943. };var _default =
  10944. {
  10945. logout: logout,
  10946. contactCustomerService: contactCustomerService,
  10947. formatLocation: formatLocation };exports.default = _default;
  10948. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  10949. /***/ }),
  10950. /* 33 */
  10951. /*!*************************************************************************!*\
  10952. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/index.js ***!
  10953. \*************************************************************************/
  10954. /*! no static exports found */
  10955. /***/ (function(module, exports, __webpack_require__) {
  10956. "use strict";
  10957. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  10958. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 34));
  10959. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 35));
  10960. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 36));
  10961. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 54));
  10962. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 58));
  10963. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 59));
  10964. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 60));
  10965. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 61));
  10966. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 62));
  10967. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 64));
  10968. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 65));
  10969. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 155));
  10970. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 113));
  10971. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 156));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 _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;} // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  10972. var pleaseSetTranspileDependencies = {},babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test; // 引入全局mixin
  10973. var $u = _objectSpread(_objectSpread({
  10974. route: _route.default,
  10975. date: _index.default.timeFormat, // 另名date
  10976. colorGradient: _colorGradient.default.colorGradient,
  10977. hexToRgb: _colorGradient.default.hexToRgb,
  10978. rgbToHex: _colorGradient.default.rgbToHex,
  10979. colorToRgba: _colorGradient.default.colorToRgba,
  10980. test: _test.default,
  10981. type: ['primary', 'success', 'error', 'warning', 'info'],
  10982. http: new _luchRequest.default(),
  10983. config: _config.default, // uView配置信息相关,比如版本号
  10984. zIndex: _zIndex.default,
  10985. debounce: _debounce.default,
  10986. throttle: _throttle.default,
  10987. mixin: _mixin.default,
  10988. mpMixin: _mpMixin.default,
  10989. props: _props.default },
  10990. _index.default), {}, {
  10991. color: _color.default,
  10992. platform: _platform.default });
  10993. // $u挂载到uni对象上
  10994. uni.$u = $u;
  10995. var install = function install(Vue) {
  10996. // 时间格式化,同时两个名称,date和timeFormat
  10997. Vue.filter('timeFormat', function (timestamp, format) {return uni.$u.timeFormat(timestamp, format);});
  10998. Vue.filter('date', function (timestamp, format) {return uni.$u.timeFormat(timestamp, format);});
  10999. // 将多久以前的方法,注入到全局过滤器
  11000. Vue.filter('timeFrom', function (timestamp, format) {return uni.$u.timeFrom(timestamp, format);});
  11001. // 同时挂载到uni和Vue.prototype中
  11002. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  11003. Vue.prototype.$u = $u;
  11004. Vue.mixin(_mixin.default);
  11005. };var _default =
  11006. {
  11007. install: install };exports.default = _default;
  11008. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  11009. /***/ }),
  11010. /* 34 */
  11011. /*!************************************************************************************!*\
  11012. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  11013. \************************************************************************************/
  11014. /*! no static exports found */
  11015. /***/ (function(module, exports, __webpack_require__) {
  11016. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  11017. // 定义每个组件都可能需要用到的外部样式以及类名
  11018. props: {
  11019. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  11020. customStyle: {
  11021. type: [Object, String],
  11022. default: function _default() {return {};} },
  11023. customClass: {
  11024. type: String,
  11025. default: '' },
  11026. // 跳转的页面路径
  11027. url: {
  11028. type: String,
  11029. default: '' },
  11030. // 页面跳转的类型
  11031. linkType: {
  11032. type: String,
  11033. default: 'navigateTo' } },
  11034. data: function data() {
  11035. return {};
  11036. },
  11037. onLoad: function onLoad() {
  11038. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  11039. this.$u.getRect = this.$uGetRect;
  11040. },
  11041. created: function created() {
  11042. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  11043. this.$u.getRect = this.$uGetRect;
  11044. },
  11045. computed: {
  11046. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  11047. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  11048. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  11049. $u: function $u() {
  11050. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  11051. return uni.$u.deepMerge(uni.$u, {
  11052. props: undefined,
  11053. http: undefined,
  11054. mixin: undefined });
  11055. },
  11056. /**
  11057. * 生成bem规则类名
  11058. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  11059. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  11060. * @param {String} name 组件名称
  11061. * @param {Array} fixed 一直会存在的类名
  11062. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  11063. * @returns {Array|string}
  11064. */
  11065. bem: function bem() {
  11066. return function (name, fixed, change) {var _this = this;
  11067. // 类名前缀
  11068. var prefix = "u-".concat(name, "--");
  11069. var classes = {};
  11070. if (fixed) {
  11071. fixed.map(function (item) {
  11072. // 这里的类名,会一直存在
  11073. classes[prefix + _this[item]] = true;
  11074. });
  11075. }
  11076. if (change) {
  11077. change.map(function (item) {
  11078. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  11079. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  11080. });
  11081. }
  11082. return Object.keys(classes);
  11083. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  11084. };
  11085. } },
  11086. methods: {
  11087. // 跳转某一个页面
  11088. openPage: function openPage() {var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  11089. var url = this[urlKey];
  11090. if (url) {
  11091. // 执行类似uni.navigateTo的方法
  11092. uni[this.linkType]({
  11093. url: url });
  11094. }
  11095. },
  11096. // 查询节点信息
  11097. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  11098. // 解决办法为在组件根部再套一个没有任何作用的view元素
  11099. $uGetRect: function $uGetRect(selector, all) {var _this2 = this;
  11100. return new Promise(function (resolve) {
  11101. uni.createSelectorQuery().
  11102. in(_this2)[all ? 'selectAll' : 'select'](selector).
  11103. boundingClientRect(function (rect) {
  11104. if (all && Array.isArray(rect) && rect.length) {
  11105. resolve(rect);
  11106. }
  11107. if (!all && rect) {
  11108. resolve(rect);
  11109. }
  11110. }).
  11111. exec();
  11112. });
  11113. },
  11114. getParentData: function getParentData() {var _this3 = this;var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  11115. // 避免在created中去定义parent变量
  11116. if (!this.parent) this.parent = {};
  11117. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  11118. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  11119. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  11120. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  11121. this.parent = uni.$u.$parent.call(this, parentName);
  11122. if (this.parent.children) {
  11123. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  11124. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  11125. }
  11126. if (this.parent && this.parentData) {
  11127. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  11128. Object.keys(this.parentData).map(function (key) {
  11129. _this3.parentData[key] = _this3.parent[key];
  11130. });
  11131. }
  11132. },
  11133. // 阻止事件冒泡
  11134. preventEvent: function preventEvent(e) {
  11135. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  11136. },
  11137. // 空操作
  11138. noop: function noop(e) {
  11139. this.preventEvent(e);
  11140. } },
  11141. onReachBottom: function onReachBottom() {
  11142. uni.$emit('uOnReachBottom');
  11143. },
  11144. beforeDestroy: function beforeDestroy() {var _this4 = this;
  11145. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  11146. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  11147. if (this.parent && uni.$u.test.array(this.parent.children)) {
  11148. // 组件销毁时,移除父组件中的children数组中对应的实例
  11149. var childrenList = this.parent.children;
  11150. childrenList.map(function (child, index) {
  11151. // 如果相等,则移除
  11152. if (child === _this4) {
  11153. childrenList.splice(index, 1);
  11154. }
  11155. });
  11156. }
  11157. } };
  11158. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  11159. /***/ }),
  11160. /* 35 */
  11161. /*!**************************************************************************************!*\
  11162. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  11163. \**************************************************************************************/
  11164. /*! no static exports found */
  11165. /***/ (function(module, exports, __webpack_require__) {
  11166. "use strict";
  11167. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  11168. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  11169. options: {
  11170. virtualHost: true } };exports.default = _default;
  11171. /***/ }),
  11172. /* 36 */
  11173. /*!*******************************************************************************************!*\
  11174. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/index.js ***!
  11175. \*******************************************************************************************/
  11176. /*! no static exports found */
  11177. /***/ (function(module, exports, __webpack_require__) {
  11178. "use strict";
  11179. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 37));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}var _default =
  11180. _Request.default;exports.default = _default;
  11181. /***/ }),
  11182. /* 37 */
  11183. /*!**************************************************************************************************!*\
  11184. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  11185. \**************************************************************************************************/
  11186. /*! no static exports found */
  11187. /***/ (function(module, exports, __webpack_require__) {
  11188. "use strict";
  11189. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  11190. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 38));
  11191. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 46));
  11192. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 47));
  11193. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 48));
  11194. var _utils = __webpack_require__(/*! ../utils */ 41);
  11195. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 49));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 _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 _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
  11196. Request = /*#__PURE__*/function () {
  11197. /**
  11198. * @param {Object} arg - 全局配置
  11199. * @param {String} arg.baseURL - 全局根路径
  11200. * @param {Object} arg.header - 全局header
  11201. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  11202. * @param {String} arg.dataType = [json] - 全局默认的dataType
  11203. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  11204. * @param {Object} arg.custom - 全局默认的自定义参数
  11205. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  11206. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  11207. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  11208. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  11209. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  11210. */
  11211. function Request() {var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};_classCallCheck(this, Request);
  11212. if (!(0, _utils.isPlainObject)(arg)) {
  11213. arg = {};
  11214. console.warn('设置全局参数必须接收一个Object');
  11215. }
  11216. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  11217. this.interceptors = {
  11218. request: new _InterceptorManager.default(),
  11219. response: new _InterceptorManager.default() };
  11220. }
  11221. /**
  11222. * @Function
  11223. * @param {Request~setConfigCallback} f - 设置全局默认配置
  11224. */_createClass(Request, [{ key: "setConfig", value: function setConfig(
  11225. f) {
  11226. this.config = f(this.config);
  11227. } }, { key: "middleware", value: function middleware(
  11228. config) {
  11229. config = (0, _mergeConfig.default)(this.config, config);
  11230. var chain = [_dispatchRequest.default, undefined];
  11231. var promise = Promise.resolve(config);
  11232. this.interceptors.request.forEach(function (interceptor) {
  11233. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  11234. });
  11235. this.interceptors.response.forEach(function (interceptor) {
  11236. chain.push(interceptor.fulfilled, interceptor.rejected);
  11237. });
  11238. while (chain.length) {
  11239. promise = promise.then(chain.shift(), chain.shift());
  11240. }
  11241. return promise;
  11242. }
  11243. /**
  11244. * @Function
  11245. * @param {Object} config - 请求配置项
  11246. * @prop {String} options.url - 请求路径
  11247. * @prop {Object} options.data - 请求参数
  11248. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  11249. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  11250. * @prop {Object} [options.header = config.header] - 请求header
  11251. * @prop {Object} [options.method = config.method] - 请求方法
  11252. * @returns {Promise<unknown>}
  11253. */ }, { key: "request", value: function request()
  11254. {var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  11255. return this.middleware(config);
  11256. } }, { key: "get", value: function get(
  11257. url) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  11258. return this.middleware(_objectSpread({
  11259. url: url,
  11260. method: 'GET' },
  11261. options));
  11262. } }, { key: "post", value: function post(
  11263. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  11264. return this.middleware(_objectSpread({
  11265. url: url,
  11266. data: data,
  11267. method: 'POST' },
  11268. options));
  11269. } }, { key: "put", value: function put(
  11270. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  11271. return this.middleware(_objectSpread({
  11272. url: url,
  11273. data: data,
  11274. method: 'PUT' },
  11275. options));
  11276. } }, { key: "delete", value: function _delete(
  11277. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  11278. return this.middleware(_objectSpread({
  11279. url: url,
  11280. data: data,
  11281. method: 'DELETE' },
  11282. options));
  11283. } }, { key: "connect", value: function connect(
  11284. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  11285. return this.middleware(_objectSpread({
  11286. url: url,
  11287. data: data,
  11288. method: 'CONNECT' },
  11289. options));
  11290. } }, { key: "head", value: function head(
  11291. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  11292. return this.middleware(_objectSpread({
  11293. url: url,
  11294. data: data,
  11295. method: 'HEAD' },
  11296. options));
  11297. } }, { key: "options", value: function options(
  11298. url, data) {var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  11299. return this.middleware(_objectSpread({
  11300. url: url,
  11301. data: data,
  11302. method: 'OPTIONS' },
  11303. _options));
  11304. } }, { key: "trace", value: function trace(
  11305. url, data) {var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  11306. return this.middleware(_objectSpread({
  11307. url: url,
  11308. data: data,
  11309. method: 'TRACE' },
  11310. options));
  11311. } }, { key: "upload", value: function upload(
  11312. url) {var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  11313. config.url = url;
  11314. config.method = 'UPLOAD';
  11315. return this.middleware(config);
  11316. } }, { key: "download", value: function download(
  11317. url) {var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  11318. config.url = url;
  11319. config.method = 'DOWNLOAD';
  11320. return this.middleware(config);
  11321. } }]);return Request;}();
  11322. /**
  11323. * setConfig回调
  11324. * @return {Object} - 返回操作后的config
  11325. * @callback Request~setConfigCallback
  11326. * @param {Object} config - 全局默认config
  11327. */exports.default = Request;
  11328. /***/ }),
  11329. /* 38 */
  11330. /*!**********************************************************************************************************!*\
  11331. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  11332. \**********************************************************************************************************/
  11333. /*! no static exports found */
  11334. /***/ (function(module, exports, __webpack_require__) {
  11335. "use strict";
  11336. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 39));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}var _default =
  11337. function _default(config) {return (0, _index.default)(config);};exports.default = _default;
  11338. /***/ }),
  11339. /* 39 */
  11340. /*!****************************************************************************************************!*\
  11341. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  11342. \****************************************************************************************************/
  11343. /*! no static exports found */
  11344. /***/ (function(module, exports, __webpack_require__) {
  11345. "use strict";
  11346. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 40));
  11347. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 42));
  11348. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 45));
  11349. var _utils = __webpack_require__(/*! ../utils */ 41);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 _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;}
  11350. /**
  11351. * 返回可选值存在的配置
  11352. * @param {Array} keys - 可选值数组
  11353. * @param {Object} config2 - 配置
  11354. * @return {{}} - 存在的配置项
  11355. */
  11356. var mergeKeys = function mergeKeys(keys, config2) {
  11357. var config = {};
  11358. keys.forEach(function (prop) {
  11359. if (!(0, _utils.isUndefined)(config2[prop])) {
  11360. config[prop] = config2[prop];
  11361. }
  11362. });
  11363. return config;
  11364. };var _default =
  11365. function _default(config) {return new Promise(function (resolve, reject) {
  11366. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  11367. var _config = {
  11368. url: fullPath,
  11369. header: config.header,
  11370. complete: function complete(response) {
  11371. config.fullPath = fullPath;
  11372. response.config = config;
  11373. try {
  11374. // 对可能字符串不是json 的情况容错
  11375. if (typeof response.data === 'string') {
  11376. response.data = JSON.parse(response.data);
  11377. }
  11378. // eslint-disable-next-line no-empty
  11379. } catch (e) {
  11380. }
  11381. (0, _settle.default)(resolve, reject, response);
  11382. } };
  11383. var requestTask;
  11384. if (config.method === 'UPLOAD') {
  11385. delete _config.header['content-type'];
  11386. delete _config.header['Content-Type'];
  11387. var otherConfig = {
  11388. filePath: config.filePath,
  11389. name: config.name };
  11390. var optionalKeys = [
  11391. 'formData'];
  11392. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  11393. } else if (config.method === 'DOWNLOAD') {
  11394. requestTask = uni.downloadFile(_config);
  11395. } else {
  11396. var _optionalKeys = [
  11397. 'data',
  11398. 'method',
  11399. 'timeout',
  11400. 'dataType',
  11401. 'responseType'];
  11402. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  11403. }
  11404. if (config.getTask) {
  11405. config.getTask(requestTask, config);
  11406. }
  11407. });};exports.default = _default;
  11408. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  11409. /***/ }),
  11410. /* 40 */
  11411. /*!******************************************************************************************************!*\
  11412. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  11413. \******************************************************************************************************/
  11414. /*! no static exports found */
  11415. /***/ (function(module, exports, __webpack_require__) {
  11416. "use strict";
  11417. Object.defineProperty(exports, "__esModule", { value: true });exports.default = buildURL;
  11418. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 41));function _getRequireWildcardCache() {if (typeof WeakMap !== "function") return null;var cache = new WeakMap();_getRequireWildcardCache = function _getRequireWildcardCache() {return cache;};return cache;}function _interopRequireWildcard(obj) {if (obj && obj.__esModule) {return obj;}if (obj === null || typeof obj !== "object" && typeof obj !== "function") {return { default: obj };}var cache = _getRequireWildcardCache();if (cache && cache.has(obj)) {return cache.get(obj);}var newObj = {};var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var key in obj) {if (Object.prototype.hasOwnProperty.call(obj, key)) {var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;if (desc && (desc.get || desc.set)) {Object.defineProperty(newObj, key, desc);} else {newObj[key] = obj[key];}}}newObj.default = obj;if (cache) {cache.set(obj, newObj);}return newObj;}
  11419. function encode(val) {
  11420. return encodeURIComponent(val).
  11421. replace(/%40/gi, '@').
  11422. replace(/%3A/gi, ':').
  11423. replace(/%24/g, '$').
  11424. replace(/%2C/gi, ',').
  11425. replace(/%20/g, '+').
  11426. replace(/%5B/gi, '[').
  11427. replace(/%5D/gi, ']');
  11428. }
  11429. /**
  11430. * Build a URL by appending params to the end
  11431. *
  11432. * @param {string} url The base of the url (e.g., http://www.google.com)
  11433. * @param {object} [params] The params to be appended
  11434. * @returns {string} The formatted url
  11435. */
  11436. function buildURL(url, params) {
  11437. /* eslint no-param-reassign:0 */
  11438. if (!params) {
  11439. return url;
  11440. }
  11441. var serializedParams;
  11442. if (utils.isURLSearchParams(params)) {
  11443. serializedParams = params.toString();
  11444. } else {
  11445. var parts = [];
  11446. utils.forEach(params, function (val, key) {
  11447. if (val === null || typeof val === 'undefined') {
  11448. return;
  11449. }
  11450. if (utils.isArray(val)) {
  11451. key = "".concat(key, "[]");
  11452. } else {
  11453. val = [val];
  11454. }
  11455. utils.forEach(val, function (v) {
  11456. if (utils.isDate(v)) {
  11457. v = v.toISOString();
  11458. } else if (utils.isObject(v)) {
  11459. v = JSON.stringify(v);
  11460. }
  11461. parts.push("".concat(encode(key), "=").concat(encode(v)));
  11462. });
  11463. });
  11464. serializedParams = parts.join('&');
  11465. }
  11466. if (serializedParams) {
  11467. var hashmarkIndex = url.indexOf('#');
  11468. if (hashmarkIndex !== -1) {
  11469. url = url.slice(0, hashmarkIndex);
  11470. }
  11471. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  11472. }
  11473. return url;
  11474. }
  11475. /***/ }),
  11476. /* 41 */
  11477. /*!*******************************************************************************************!*\
  11478. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  11479. \*******************************************************************************************/
  11480. /*! no static exports found */
  11481. /***/ (function(module, exports, __webpack_require__) {
  11482. "use strict";
  11483. // utils is a library of generic helper functions non-specific to axios
  11484. Object.defineProperty(exports, "__esModule", { value: true });exports.isArray = isArray;exports.isObject = isObject;exports.isDate = isDate;exports.isURLSearchParams = isURLSearchParams;exports.forEach = forEach;exports.isBoolean = isBoolean;exports.isPlainObject = isPlainObject;exports.deepMerge = deepMerge;exports.isUndefined = isUndefined;var
  11485. toString = Object.prototype.toString;
  11486. /**
  11487. * Determine if a value is an Array
  11488. *
  11489. * @param {Object} val The value to test
  11490. * @returns {boolean} True if value is an Array, otherwise false
  11491. */
  11492. function isArray(val) {
  11493. return toString.call(val) === '[object Array]';
  11494. }
  11495. /**
  11496. * Determine if a value is an Object
  11497. *
  11498. * @param {Object} val The value to test
  11499. * @returns {boolean} True if value is an Object, otherwise false
  11500. */
  11501. function isObject(val) {
  11502. return val !== null && typeof val === 'object';
  11503. }
  11504. /**
  11505. * Determine if a value is a Date
  11506. *
  11507. * @param {Object} val The value to test
  11508. * @returns {boolean} True if value is a Date, otherwise false
  11509. */
  11510. function isDate(val) {
  11511. return toString.call(val) === '[object Date]';
  11512. }
  11513. /**
  11514. * Determine if a value is a URLSearchParams object
  11515. *
  11516. * @param {Object} val The value to test
  11517. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  11518. */
  11519. function isURLSearchParams(val) {
  11520. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  11521. }
  11522. /**
  11523. * Iterate over an Array or an Object invoking a function for each item.
  11524. *
  11525. * If `obj` is an Array callback will be called passing
  11526. * the value, index, and complete array for each item.
  11527. *
  11528. * If 'obj' is an Object callback will be called passing
  11529. * the value, key, and complete object for each property.
  11530. *
  11531. * @param {Object|Array} obj The object to iterate
  11532. * @param {Function} fn The callback to invoke for each item
  11533. */
  11534. function forEach(obj, fn) {
  11535. // Don't bother if no value provided
  11536. if (obj === null || typeof obj === 'undefined') {
  11537. return;
  11538. }
  11539. // Force an array if not already something iterable
  11540. if (typeof obj !== 'object') {
  11541. /* eslint no-param-reassign:0 */
  11542. obj = [obj];
  11543. }
  11544. if (isArray(obj)) {
  11545. // Iterate over array values
  11546. for (var i = 0, l = obj.length; i < l; i++) {
  11547. fn.call(null, obj[i], i, obj);
  11548. }
  11549. } else {
  11550. // Iterate over object keys
  11551. for (var key in obj) {
  11552. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  11553. fn.call(null, obj[key], key, obj);
  11554. }
  11555. }
  11556. }
  11557. }
  11558. /**
  11559. * 是否为boolean 值
  11560. * @param val
  11561. * @returns {boolean}
  11562. */
  11563. function isBoolean(val) {
  11564. return typeof val === 'boolean';
  11565. }
  11566. /**
  11567. * 是否为真正的对象{} new Object
  11568. * @param {any} obj - 检测的对象
  11569. * @returns {boolean}
  11570. */
  11571. function isPlainObject(obj) {
  11572. return Object.prototype.toString.call(obj) === '[object Object]';
  11573. }
  11574. /**
  11575. * Function equal to merge with the difference being that no reference
  11576. * to original objects is kept.
  11577. *
  11578. * @see merge
  11579. * @param {Object} obj1 Object to merge
  11580. * @returns {Object} Result of all merge properties
  11581. */
  11582. function deepMerge() /* obj1, obj2, obj3, ... */{
  11583. var result = {};
  11584. function assignValue(val, key) {
  11585. if (typeof result[key] === 'object' && typeof val === 'object') {
  11586. result[key] = deepMerge(result[key], val);
  11587. } else if (typeof val === 'object') {
  11588. result[key] = deepMerge({}, val);
  11589. } else {
  11590. result[key] = val;
  11591. }
  11592. }
  11593. for (var i = 0, l = arguments.length; i < l; i++) {
  11594. forEach(arguments[i], assignValue);
  11595. }
  11596. return result;
  11597. }
  11598. function isUndefined(val) {
  11599. return typeof val === 'undefined';
  11600. }
  11601. /***/ }),
  11602. /* 42 */
  11603. /*!********************************************************************************************************!*\
  11604. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  11605. \********************************************************************************************************/
  11606. /*! no static exports found */
  11607. /***/ (function(module, exports, __webpack_require__) {
  11608. "use strict";
  11609. Object.defineProperty(exports, "__esModule", { value: true });exports.default = buildFullPath;
  11610. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 43));
  11611. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 44));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  11612. /**
  11613. * Creates a new URL by combining the baseURL with the requestedURL,
  11614. * only when the requestedURL is not already an absolute URL.
  11615. * If the requestURL is absolute, this function returns the requestedURL untouched.
  11616. *
  11617. * @param {string} baseURL The base URL
  11618. * @param {string} requestedURL Absolute or relative URL to combine
  11619. * @returns {string} The combined full path
  11620. */
  11621. function buildFullPath(baseURL, requestedURL) {
  11622. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  11623. return (0, _combineURLs.default)(baseURL, requestedURL);
  11624. }
  11625. return requestedURL;
  11626. }
  11627. /***/ }),
  11628. /* 43 */
  11629. /*!***********************************************************************************************************!*\
  11630. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  11631. \***********************************************************************************************************/
  11632. /*! no static exports found */
  11633. /***/ (function(module, exports, __webpack_require__) {
  11634. "use strict";
  11635. /**
  11636. * Determines whether the specified URL is absolute
  11637. *
  11638. * @param {string} url The URL to test
  11639. * @returns {boolean} True if the specified URL is absolute, otherwise false
  11640. */Object.defineProperty(exports, "__esModule", { value: true });exports.default = isAbsoluteURL;
  11641. function isAbsoluteURL(url) {
  11642. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  11643. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  11644. // by any combination of letters, digits, plus, period, or hyphen.
  11645. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  11646. }
  11647. /***/ }),
  11648. /* 44 */
  11649. /*!*********************************************************************************************************!*\
  11650. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  11651. \*********************************************************************************************************/
  11652. /*! no static exports found */
  11653. /***/ (function(module, exports, __webpack_require__) {
  11654. "use strict";
  11655. /**
  11656. * Creates a new URL by combining the specified URLs
  11657. *
  11658. * @param {string} baseURL The base URL
  11659. * @param {string} relativeURL The relative URL
  11660. * @returns {string} The combined URL
  11661. */Object.defineProperty(exports, "__esModule", { value: true });exports.default = combineURLs;
  11662. function combineURLs(baseURL, relativeURL) {
  11663. return relativeURL ? "".concat(
  11664. baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) :
  11665. baseURL;
  11666. }
  11667. /***/ }),
  11668. /* 45 */
  11669. /*!*************************************************************************************************!*\
  11670. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  11671. \*************************************************************************************************/
  11672. /*! no static exports found */
  11673. /***/ (function(module, exports, __webpack_require__) {
  11674. "use strict";
  11675. Object.defineProperty(exports, "__esModule", { value: true });exports.default = settle; /**
  11676. * Resolve or reject a Promise based on response status.
  11677. *
  11678. * @param {Function} resolve A function that resolves the promise.
  11679. * @param {Function} reject A function that rejects the promise.
  11680. * @param {object} response The response.
  11681. */
  11682. function settle(resolve, reject, response) {var
  11683. validateStatus = response.config.validateStatus;
  11684. var status = response.statusCode;
  11685. if (status && (!validateStatus || validateStatus(status))) {
  11686. resolve(response);
  11687. } else {
  11688. reject(response);
  11689. }
  11690. }
  11691. /***/ }),
  11692. /* 46 */
  11693. /*!*************************************************************************************************************!*\
  11694. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  11695. \*************************************************************************************************************/
  11696. /*! no static exports found */
  11697. /***/ (function(module, exports, __webpack_require__) {
  11698. "use strict";
  11699. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  11700. function InterceptorManager() {
  11701. this.handlers = [];
  11702. }
  11703. /**
  11704. * Add a new interceptor to the stack
  11705. *
  11706. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  11707. * @param {Function} rejected The function to handle `reject` for a `Promise`
  11708. *
  11709. * @return {Number} An ID used to remove interceptor later
  11710. */
  11711. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  11712. this.handlers.push({
  11713. fulfilled: fulfilled,
  11714. rejected: rejected });
  11715. return this.handlers.length - 1;
  11716. };
  11717. /**
  11718. * Remove an interceptor from the stack
  11719. *
  11720. * @param {Number} id The ID that was returned by `use`
  11721. */
  11722. InterceptorManager.prototype.eject = function eject(id) {
  11723. if (this.handlers[id]) {
  11724. this.handlers[id] = null;
  11725. }
  11726. };
  11727. /**
  11728. * Iterate over all the registered interceptors
  11729. *
  11730. * This method is particularly useful for skipping over any
  11731. * interceptors that may have become `null` calling `eject`.
  11732. *
  11733. * @param {Function} fn The function to call for each interceptor
  11734. */
  11735. InterceptorManager.prototype.forEach = function forEach(fn) {
  11736. this.handlers.forEach(function (h) {
  11737. if (h !== null) {
  11738. fn(h);
  11739. }
  11740. });
  11741. };var _default =
  11742. InterceptorManager;exports.default = _default;
  11743. /***/ }),
  11744. /* 47 */
  11745. /*!******************************************************************************************************!*\
  11746. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  11747. \******************************************************************************************************/
  11748. /*! no static exports found */
  11749. /***/ (function(module, exports, __webpack_require__) {
  11750. "use strict";
  11751. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _utils = __webpack_require__(/*! ../utils */ 41);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 _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;}
  11752. /**
  11753. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  11754. * @param {Array} keys - 配置项
  11755. * @param {Object} globalsConfig - 当前的全局配置
  11756. * @param {Object} config2 - 局部配置
  11757. * @return {{}}
  11758. */
  11759. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  11760. var config = {};
  11761. keys.forEach(function (prop) {
  11762. if (!(0, _utils.isUndefined)(config2[prop])) {
  11763. config[prop] = config2[prop];
  11764. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  11765. config[prop] = globalsConfig[prop];
  11766. }
  11767. });
  11768. return config;
  11769. };
  11770. /**
  11771. *
  11772. * @param globalsConfig - 当前实例的全局配置
  11773. * @param config2 - 当前的局部配置
  11774. * @return - 合并后的配置
  11775. */var _default =
  11776. function _default(globalsConfig) {var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  11777. var method = config2.method || globalsConfig.method || 'GET';
  11778. var config = {
  11779. baseURL: globalsConfig.baseURL || '',
  11780. method: method,
  11781. url: config2.url || '',
  11782. params: config2.params || {},
  11783. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  11784. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {}) };
  11785. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  11786. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  11787. // eslint-disable-next-line no-empty
  11788. if (method === 'DOWNLOAD') {
  11789. } else if (method === 'UPLOAD') {
  11790. delete config.header['content-type'];
  11791. delete config.header['Content-Type'];
  11792. var uploadKeys = [
  11793. 'filePath',
  11794. 'name',
  11795. 'formData'];
  11796. uploadKeys.forEach(function (prop) {
  11797. if (!(0, _utils.isUndefined)(config2[prop])) {
  11798. config[prop] = config2[prop];
  11799. }
  11800. });
  11801. } else {
  11802. var defaultsKeys = [
  11803. 'data',
  11804. 'timeout',
  11805. 'dataType',
  11806. 'responseType'];
  11807. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  11808. }
  11809. return config;
  11810. };exports.default = _default;
  11811. /***/ }),
  11812. /* 48 */
  11813. /*!***************************************************************************************************!*\
  11814. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  11815. \***************************************************************************************************/
  11816. /*! no static exports found */
  11817. /***/ (function(module, exports, __webpack_require__) {
  11818. "use strict";
  11819. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  11820. * 默认的全局配置
  11821. */var _default =
  11822. {
  11823. baseURL: '',
  11824. header: {},
  11825. method: 'GET',
  11826. dataType: 'json',
  11827. responseType: 'text',
  11828. custom: {},
  11829. timeout: 60000,
  11830. validateStatus: function validateStatus(status) {
  11831. return status >= 200 && status < 300;
  11832. } };exports.default = _default;
  11833. /***/ }),
  11834. /* 49 */
  11835. /*!*************************************************************************************************!*\
  11836. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  11837. \*************************************************************************************************/
  11838. /*! no static exports found */
  11839. /***/ (function(module, exports, __webpack_require__) {
  11840. "use strict";
  11841. /* WEBPACK VAR INJECTION */(function(Buffer) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /* eslint-disable */
  11842. var clone = function () {
  11843. 'use strict';
  11844. function _instanceof(obj, type) {
  11845. return type != null && obj instanceof type;
  11846. }
  11847. var nativeMap;
  11848. try {
  11849. nativeMap = Map;
  11850. } catch (_) {
  11851. // maybe a reference error because no `Map`. Give it a dummy value that no
  11852. // value will ever be an instanceof.
  11853. nativeMap = function nativeMap() {};
  11854. }
  11855. var nativeSet;
  11856. try {
  11857. nativeSet = Set;
  11858. } catch (_) {
  11859. nativeSet = function nativeSet() {};
  11860. }
  11861. var nativePromise;
  11862. try {
  11863. nativePromise = Promise;
  11864. } catch (_) {
  11865. nativePromise = function nativePromise() {};
  11866. }
  11867. /**
  11868. * Clones (copies) an Object using deep copying.
  11869. *
  11870. * This function supports circular references by default, but if you are certain
  11871. * there are no circular references in your object, you can save some CPU time
  11872. * by calling clone(obj, false).
  11873. *
  11874. * Caution: if `circular` is false and `parent` contains circular references,
  11875. * your program may enter an infinite loop and crash.
  11876. *
  11877. * @param `parent` - the object to be cloned
  11878. * @param `circular` - set to true if the object to be cloned may contain
  11879. * circular references. (optional - true by default)
  11880. * @param `depth` - set to a number if the object is only to be cloned to
  11881. * a particular depth. (optional - defaults to Infinity)
  11882. * @param `prototype` - sets the prototype to be used when cloning an object.
  11883. * (optional - defaults to parent prototype).
  11884. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  11885. * should be cloned as well. Non-enumerable properties on the prototype
  11886. * chain will be ignored. (optional - false by default)
  11887. */
  11888. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  11889. if (typeof circular === 'object') {
  11890. depth = circular.depth;
  11891. prototype = circular.prototype;
  11892. includeNonEnumerable = circular.includeNonEnumerable;
  11893. circular = circular.circular;
  11894. }
  11895. // maintain two arrays for circular references, where corresponding parents
  11896. // and children have the same index
  11897. var allParents = [];
  11898. var allChildren = [];
  11899. var useBuffer = typeof Buffer != 'undefined';
  11900. if (typeof circular == 'undefined')
  11901. circular = true;
  11902. if (typeof depth == 'undefined')
  11903. depth = Infinity;
  11904. // recurse this function so we don't reset allParents and allChildren
  11905. function _clone(parent, depth) {
  11906. // cloning null always returns null
  11907. if (parent === null)
  11908. return null;
  11909. if (depth === 0)
  11910. return parent;
  11911. var child;
  11912. var proto;
  11913. if (typeof parent != 'object') {
  11914. return parent;
  11915. }
  11916. if (_instanceof(parent, nativeMap)) {
  11917. child = new nativeMap();
  11918. } else if (_instanceof(parent, nativeSet)) {
  11919. child = new nativeSet();
  11920. } else if (_instanceof(parent, nativePromise)) {
  11921. child = new nativePromise(function (resolve, reject) {
  11922. parent.then(function (value) {
  11923. resolve(_clone(value, depth - 1));
  11924. }, function (err) {
  11925. reject(_clone(err, depth - 1));
  11926. });
  11927. });
  11928. } else if (clone.__isArray(parent)) {
  11929. child = [];
  11930. } else if (clone.__isRegExp(parent)) {
  11931. child = new RegExp(parent.source, __getRegExpFlags(parent));
  11932. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  11933. } else if (clone.__isDate(parent)) {
  11934. child = new Date(parent.getTime());
  11935. } else if (useBuffer && Buffer.isBuffer(parent)) {
  11936. if (Buffer.from) {
  11937. // Node.js >= 5.10.0
  11938. child = Buffer.from(parent);
  11939. } else {
  11940. // Older Node.js versions
  11941. child = new Buffer(parent.length);
  11942. parent.copy(child);
  11943. }
  11944. return child;
  11945. } else if (_instanceof(parent, Error)) {
  11946. child = Object.create(parent);
  11947. } else {
  11948. if (typeof prototype == 'undefined') {
  11949. proto = Object.getPrototypeOf(parent);
  11950. child = Object.create(proto);
  11951. } else
  11952. {
  11953. child = Object.create(prototype);
  11954. proto = prototype;
  11955. }
  11956. }
  11957. if (circular) {
  11958. var index = allParents.indexOf(parent);
  11959. if (index != -1) {
  11960. return allChildren[index];
  11961. }
  11962. allParents.push(parent);
  11963. allChildren.push(child);
  11964. }
  11965. if (_instanceof(parent, nativeMap)) {
  11966. parent.forEach(function (value, key) {
  11967. var keyChild = _clone(key, depth - 1);
  11968. var valueChild = _clone(value, depth - 1);
  11969. child.set(keyChild, valueChild);
  11970. });
  11971. }
  11972. if (_instanceof(parent, nativeSet)) {
  11973. parent.forEach(function (value) {
  11974. var entryChild = _clone(value, depth - 1);
  11975. child.add(entryChild);
  11976. });
  11977. }
  11978. for (var i in parent) {
  11979. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  11980. if (attrs) {
  11981. child[i] = _clone(parent[i], depth - 1);
  11982. }
  11983. try {
  11984. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  11985. if (objProperty.set === 'undefined') {
  11986. // no setter defined. Skip cloning this property
  11987. continue;
  11988. }
  11989. child[i] = _clone(parent[i], depth - 1);
  11990. } catch (e) {
  11991. if (e instanceof TypeError) {
  11992. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  11993. // we can't do anything about this, other than inform the user that this property cannot be set.
  11994. continue;
  11995. } else if (e instanceof ReferenceError) {
  11996. //this may happen in non strict mode
  11997. continue;
  11998. }
  11999. }
  12000. }
  12001. if (Object.getOwnPropertySymbols) {
  12002. var symbols = Object.getOwnPropertySymbols(parent);
  12003. for (var i = 0; i < symbols.length; i++) {
  12004. // Don't need to worry about cloning a symbol because it is a primitive,
  12005. // like a number or string.
  12006. var symbol = symbols[i];
  12007. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  12008. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  12009. continue;
  12010. }
  12011. child[symbol] = _clone(parent[symbol], depth - 1);
  12012. Object.defineProperty(child, symbol, descriptor);
  12013. }
  12014. }
  12015. if (includeNonEnumerable) {
  12016. var allPropertyNames = Object.getOwnPropertyNames(parent);
  12017. for (var i = 0; i < allPropertyNames.length; i++) {
  12018. var propertyName = allPropertyNames[i];
  12019. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  12020. if (descriptor && descriptor.enumerable) {
  12021. continue;
  12022. }
  12023. child[propertyName] = _clone(parent[propertyName], depth - 1);
  12024. Object.defineProperty(child, propertyName, descriptor);
  12025. }
  12026. }
  12027. return child;
  12028. }
  12029. return _clone(parent, depth);
  12030. }
  12031. /**
  12032. * Simple flat clone using prototype, accepts only objects, usefull for property
  12033. * override on FLAT configuration object (no nested props).
  12034. *
  12035. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  12036. * works.
  12037. */
  12038. clone.clonePrototype = function clonePrototype(parent) {
  12039. if (parent === null)
  12040. return null;
  12041. var c = function c() {};
  12042. c.prototype = parent;
  12043. return new c();
  12044. };
  12045. // private utility functions
  12046. function __objToStr(o) {
  12047. return Object.prototype.toString.call(o);
  12048. }
  12049. clone.__objToStr = __objToStr;
  12050. function __isDate(o) {
  12051. return typeof o === 'object' && __objToStr(o) === '[object Date]';
  12052. }
  12053. clone.__isDate = __isDate;
  12054. function __isArray(o) {
  12055. return typeof o === 'object' && __objToStr(o) === '[object Array]';
  12056. }
  12057. clone.__isArray = __isArray;
  12058. function __isRegExp(o) {
  12059. return typeof o === 'object' && __objToStr(o) === '[object RegExp]';
  12060. }
  12061. clone.__isRegExp = __isRegExp;
  12062. function __getRegExpFlags(re) {
  12063. var flags = '';
  12064. if (re.global) flags += 'g';
  12065. if (re.ignoreCase) flags += 'i';
  12066. if (re.multiline) flags += 'm';
  12067. return flags;
  12068. }
  12069. clone.__getRegExpFlags = __getRegExpFlags;
  12070. return clone;
  12071. }();var _default =
  12072. clone;exports.default = _default;
  12073. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 50).Buffer))
  12074. /***/ }),
  12075. /* 50 */
  12076. /*!**************************************!*\
  12077. !*** ./node_modules/buffer/index.js ***!
  12078. \**************************************/
  12079. /*! no static exports found */
  12080. /***/ (function(module, exports, __webpack_require__) {
  12081. "use strict";
  12082. /* WEBPACK VAR INJECTION */(function(global) {/*!
  12083. * The buffer module from node.js, for the browser.
  12084. *
  12085. * @author Feross Aboukhadijeh <http://feross.org>
  12086. * @license MIT
  12087. */
  12088. /* eslint-disable no-proto */
  12089. var base64 = __webpack_require__(/*! base64-js */ 51)
  12090. var ieee754 = __webpack_require__(/*! ieee754 */ 52)
  12091. var isArray = __webpack_require__(/*! isarray */ 53)
  12092. exports.Buffer = Buffer
  12093. exports.SlowBuffer = SlowBuffer
  12094. exports.INSPECT_MAX_BYTES = 50
  12095. /**
  12096. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  12097. * === true Use Uint8Array implementation (fastest)
  12098. * === false Use Object implementation (most compatible, even IE6)
  12099. *
  12100. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  12101. * Opera 11.6+, iOS 4.2+.
  12102. *
  12103. * Due to various browser bugs, sometimes the Object implementation will be used even
  12104. * when the browser supports typed arrays.
  12105. *
  12106. * Note:
  12107. *
  12108. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  12109. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  12110. *
  12111. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  12112. *
  12113. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  12114. * incorrect length in some situations.
  12115. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  12116. * get the Object implementation, which is slower but behaves correctly.
  12117. */
  12118. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  12119. ? global.TYPED_ARRAY_SUPPORT
  12120. : typedArraySupport()
  12121. /*
  12122. * Export kMaxLength after typed array support is determined.
  12123. */
  12124. exports.kMaxLength = kMaxLength()
  12125. function typedArraySupport () {
  12126. try {
  12127. var arr = new Uint8Array(1)
  12128. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  12129. return arr.foo() === 42 && // typed array instances can be augmented
  12130. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  12131. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  12132. } catch (e) {
  12133. return false
  12134. }
  12135. }
  12136. function kMaxLength () {
  12137. return Buffer.TYPED_ARRAY_SUPPORT
  12138. ? 0x7fffffff
  12139. : 0x3fffffff
  12140. }
  12141. function createBuffer (that, length) {
  12142. if (kMaxLength() < length) {
  12143. throw new RangeError('Invalid typed array length')
  12144. }
  12145. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12146. // Return an augmented `Uint8Array` instance, for best performance
  12147. that = new Uint8Array(length)
  12148. that.__proto__ = Buffer.prototype
  12149. } else {
  12150. // Fallback: Return an object instance of the Buffer class
  12151. if (that === null) {
  12152. that = new Buffer(length)
  12153. }
  12154. that.length = length
  12155. }
  12156. return that
  12157. }
  12158. /**
  12159. * The Buffer constructor returns instances of `Uint8Array` that have their
  12160. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  12161. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  12162. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  12163. * returns a single octet.
  12164. *
  12165. * The `Uint8Array` prototype remains unmodified.
  12166. */
  12167. function Buffer (arg, encodingOrOffset, length) {
  12168. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  12169. return new Buffer(arg, encodingOrOffset, length)
  12170. }
  12171. // Common case.
  12172. if (typeof arg === 'number') {
  12173. if (typeof encodingOrOffset === 'string') {
  12174. throw new Error(
  12175. 'If encoding is specified then the first argument must be a string'
  12176. )
  12177. }
  12178. return allocUnsafe(this, arg)
  12179. }
  12180. return from(this, arg, encodingOrOffset, length)
  12181. }
  12182. Buffer.poolSize = 8192 // not used by this implementation
  12183. // TODO: Legacy, not needed anymore. Remove in next major version.
  12184. Buffer._augment = function (arr) {
  12185. arr.__proto__ = Buffer.prototype
  12186. return arr
  12187. }
  12188. function from (that, value, encodingOrOffset, length) {
  12189. if (typeof value === 'number') {
  12190. throw new TypeError('"value" argument must not be a number')
  12191. }
  12192. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  12193. return fromArrayBuffer(that, value, encodingOrOffset, length)
  12194. }
  12195. if (typeof value === 'string') {
  12196. return fromString(that, value, encodingOrOffset)
  12197. }
  12198. return fromObject(that, value)
  12199. }
  12200. /**
  12201. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  12202. * if value is a number.
  12203. * Buffer.from(str[, encoding])
  12204. * Buffer.from(array)
  12205. * Buffer.from(buffer)
  12206. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  12207. **/
  12208. Buffer.from = function (value, encodingOrOffset, length) {
  12209. return from(null, value, encodingOrOffset, length)
  12210. }
  12211. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12212. Buffer.prototype.__proto__ = Uint8Array.prototype
  12213. Buffer.__proto__ = Uint8Array
  12214. if (typeof Symbol !== 'undefined' && Symbol.species &&
  12215. Buffer[Symbol.species] === Buffer) {
  12216. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  12217. Object.defineProperty(Buffer, Symbol.species, {
  12218. value: null,
  12219. configurable: true
  12220. })
  12221. }
  12222. }
  12223. function assertSize (size) {
  12224. if (typeof size !== 'number') {
  12225. throw new TypeError('"size" argument must be a number')
  12226. } else if (size < 0) {
  12227. throw new RangeError('"size" argument must not be negative')
  12228. }
  12229. }
  12230. function alloc (that, size, fill, encoding) {
  12231. assertSize(size)
  12232. if (size <= 0) {
  12233. return createBuffer(that, size)
  12234. }
  12235. if (fill !== undefined) {
  12236. // Only pay attention to encoding if it's a string. This
  12237. // prevents accidentally sending in a number that would
  12238. // be interpretted as a start offset.
  12239. return typeof encoding === 'string'
  12240. ? createBuffer(that, size).fill(fill, encoding)
  12241. : createBuffer(that, size).fill(fill)
  12242. }
  12243. return createBuffer(that, size)
  12244. }
  12245. /**
  12246. * Creates a new filled Buffer instance.
  12247. * alloc(size[, fill[, encoding]])
  12248. **/
  12249. Buffer.alloc = function (size, fill, encoding) {
  12250. return alloc(null, size, fill, encoding)
  12251. }
  12252. function allocUnsafe (that, size) {
  12253. assertSize(size)
  12254. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  12255. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  12256. for (var i = 0; i < size; ++i) {
  12257. that[i] = 0
  12258. }
  12259. }
  12260. return that
  12261. }
  12262. /**
  12263. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  12264. * */
  12265. Buffer.allocUnsafe = function (size) {
  12266. return allocUnsafe(null, size)
  12267. }
  12268. /**
  12269. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  12270. */
  12271. Buffer.allocUnsafeSlow = function (size) {
  12272. return allocUnsafe(null, size)
  12273. }
  12274. function fromString (that, string, encoding) {
  12275. if (typeof encoding !== 'string' || encoding === '') {
  12276. encoding = 'utf8'
  12277. }
  12278. if (!Buffer.isEncoding(encoding)) {
  12279. throw new TypeError('"encoding" must be a valid string encoding')
  12280. }
  12281. var length = byteLength(string, encoding) | 0
  12282. that = createBuffer(that, length)
  12283. var actual = that.write(string, encoding)
  12284. if (actual !== length) {
  12285. // Writing a hex string, for example, that contains invalid characters will
  12286. // cause everything after the first invalid character to be ignored. (e.g.
  12287. // 'abxxcd' will be treated as 'ab')
  12288. that = that.slice(0, actual)
  12289. }
  12290. return that
  12291. }
  12292. function fromArrayLike (that, array) {
  12293. var length = array.length < 0 ? 0 : checked(array.length) | 0
  12294. that = createBuffer(that, length)
  12295. for (var i = 0; i < length; i += 1) {
  12296. that[i] = array[i] & 255
  12297. }
  12298. return that
  12299. }
  12300. function fromArrayBuffer (that, array, byteOffset, length) {
  12301. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  12302. if (byteOffset < 0 || array.byteLength < byteOffset) {
  12303. throw new RangeError('\'offset\' is out of bounds')
  12304. }
  12305. if (array.byteLength < byteOffset + (length || 0)) {
  12306. throw new RangeError('\'length\' is out of bounds')
  12307. }
  12308. if (byteOffset === undefined && length === undefined) {
  12309. array = new Uint8Array(array)
  12310. } else if (length === undefined) {
  12311. array = new Uint8Array(array, byteOffset)
  12312. } else {
  12313. array = new Uint8Array(array, byteOffset, length)
  12314. }
  12315. if (Buffer.TYPED_ARRAY_SUPPORT) {
  12316. // Return an augmented `Uint8Array` instance, for best performance
  12317. that = array
  12318. that.__proto__ = Buffer.prototype
  12319. } else {
  12320. // Fallback: Return an object instance of the Buffer class
  12321. that = fromArrayLike(that, array)
  12322. }
  12323. return that
  12324. }
  12325. function fromObject (that, obj) {
  12326. if (Buffer.isBuffer(obj)) {
  12327. var len = checked(obj.length) | 0
  12328. that = createBuffer(that, len)
  12329. if (that.length === 0) {
  12330. return that
  12331. }
  12332. obj.copy(that, 0, 0, len)
  12333. return that
  12334. }
  12335. if (obj) {
  12336. if ((typeof ArrayBuffer !== 'undefined' &&
  12337. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  12338. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  12339. return createBuffer(that, 0)
  12340. }
  12341. return fromArrayLike(that, obj)
  12342. }
  12343. if (obj.type === 'Buffer' && isArray(obj.data)) {
  12344. return fromArrayLike(that, obj.data)
  12345. }
  12346. }
  12347. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  12348. }
  12349. function checked (length) {
  12350. // Note: cannot use `length < kMaxLength()` here because that fails when
  12351. // length is NaN (which is otherwise coerced to zero.)
  12352. if (length >= kMaxLength()) {
  12353. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  12354. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  12355. }
  12356. return length | 0
  12357. }
  12358. function SlowBuffer (length) {
  12359. if (+length != length) { // eslint-disable-line eqeqeq
  12360. length = 0
  12361. }
  12362. return Buffer.alloc(+length)
  12363. }
  12364. Buffer.isBuffer = function isBuffer (b) {
  12365. return !!(b != null && b._isBuffer)
  12366. }
  12367. Buffer.compare = function compare (a, b) {
  12368. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  12369. throw new TypeError('Arguments must be Buffers')
  12370. }
  12371. if (a === b) return 0
  12372. var x = a.length
  12373. var y = b.length
  12374. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  12375. if (a[i] !== b[i]) {
  12376. x = a[i]
  12377. y = b[i]
  12378. break
  12379. }
  12380. }
  12381. if (x < y) return -1
  12382. if (y < x) return 1
  12383. return 0
  12384. }
  12385. Buffer.isEncoding = function isEncoding (encoding) {
  12386. switch (String(encoding).toLowerCase()) {
  12387. case 'hex':
  12388. case 'utf8':
  12389. case 'utf-8':
  12390. case 'ascii':
  12391. case 'latin1':
  12392. case 'binary':
  12393. case 'base64':
  12394. case 'ucs2':
  12395. case 'ucs-2':
  12396. case 'utf16le':
  12397. case 'utf-16le':
  12398. return true
  12399. default:
  12400. return false
  12401. }
  12402. }
  12403. Buffer.concat = function concat (list, length) {
  12404. if (!isArray(list)) {
  12405. throw new TypeError('"list" argument must be an Array of Buffers')
  12406. }
  12407. if (list.length === 0) {
  12408. return Buffer.alloc(0)
  12409. }
  12410. var i
  12411. if (length === undefined) {
  12412. length = 0
  12413. for (i = 0; i < list.length; ++i) {
  12414. length += list[i].length
  12415. }
  12416. }
  12417. var buffer = Buffer.allocUnsafe(length)
  12418. var pos = 0
  12419. for (i = 0; i < list.length; ++i) {
  12420. var buf = list[i]
  12421. if (!Buffer.isBuffer(buf)) {
  12422. throw new TypeError('"list" argument must be an Array of Buffers')
  12423. }
  12424. buf.copy(buffer, pos)
  12425. pos += buf.length
  12426. }
  12427. return buffer
  12428. }
  12429. function byteLength (string, encoding) {
  12430. if (Buffer.isBuffer(string)) {
  12431. return string.length
  12432. }
  12433. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  12434. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  12435. return string.byteLength
  12436. }
  12437. if (typeof string !== 'string') {
  12438. string = '' + string
  12439. }
  12440. var len = string.length
  12441. if (len === 0) return 0
  12442. // Use a for loop to avoid recursion
  12443. var loweredCase = false
  12444. for (;;) {
  12445. switch (encoding) {
  12446. case 'ascii':
  12447. case 'latin1':
  12448. case 'binary':
  12449. return len
  12450. case 'utf8':
  12451. case 'utf-8':
  12452. case undefined:
  12453. return utf8ToBytes(string).length
  12454. case 'ucs2':
  12455. case 'ucs-2':
  12456. case 'utf16le':
  12457. case 'utf-16le':
  12458. return len * 2
  12459. case 'hex':
  12460. return len >>> 1
  12461. case 'base64':
  12462. return base64ToBytes(string).length
  12463. default:
  12464. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  12465. encoding = ('' + encoding).toLowerCase()
  12466. loweredCase = true
  12467. }
  12468. }
  12469. }
  12470. Buffer.byteLength = byteLength
  12471. function slowToString (encoding, start, end) {
  12472. var loweredCase = false
  12473. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  12474. // property of a typed array.
  12475. // This behaves neither like String nor Uint8Array in that we set start/end
  12476. // to their upper/lower bounds if the value passed is out of range.
  12477. // undefined is handled specially as per ECMA-262 6th Edition,
  12478. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  12479. if (start === undefined || start < 0) {
  12480. start = 0
  12481. }
  12482. // Return early if start > this.length. Done here to prevent potential uint32
  12483. // coercion fail below.
  12484. if (start > this.length) {
  12485. return ''
  12486. }
  12487. if (end === undefined || end > this.length) {
  12488. end = this.length
  12489. }
  12490. if (end <= 0) {
  12491. return ''
  12492. }
  12493. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  12494. end >>>= 0
  12495. start >>>= 0
  12496. if (end <= start) {
  12497. return ''
  12498. }
  12499. if (!encoding) encoding = 'utf8'
  12500. while (true) {
  12501. switch (encoding) {
  12502. case 'hex':
  12503. return hexSlice(this, start, end)
  12504. case 'utf8':
  12505. case 'utf-8':
  12506. return utf8Slice(this, start, end)
  12507. case 'ascii':
  12508. return asciiSlice(this, start, end)
  12509. case 'latin1':
  12510. case 'binary':
  12511. return latin1Slice(this, start, end)
  12512. case 'base64':
  12513. return base64Slice(this, start, end)
  12514. case 'ucs2':
  12515. case 'ucs-2':
  12516. case 'utf16le':
  12517. case 'utf-16le':
  12518. return utf16leSlice(this, start, end)
  12519. default:
  12520. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  12521. encoding = (encoding + '').toLowerCase()
  12522. loweredCase = true
  12523. }
  12524. }
  12525. }
  12526. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  12527. // Buffer instances.
  12528. Buffer.prototype._isBuffer = true
  12529. function swap (b, n, m) {
  12530. var i = b[n]
  12531. b[n] = b[m]
  12532. b[m] = i
  12533. }
  12534. Buffer.prototype.swap16 = function swap16 () {
  12535. var len = this.length
  12536. if (len % 2 !== 0) {
  12537. throw new RangeError('Buffer size must be a multiple of 16-bits')
  12538. }
  12539. for (var i = 0; i < len; i += 2) {
  12540. swap(this, i, i + 1)
  12541. }
  12542. return this
  12543. }
  12544. Buffer.prototype.swap32 = function swap32 () {
  12545. var len = this.length
  12546. if (len % 4 !== 0) {
  12547. throw new RangeError('Buffer size must be a multiple of 32-bits')
  12548. }
  12549. for (var i = 0; i < len; i += 4) {
  12550. swap(this, i, i + 3)
  12551. swap(this, i + 1, i + 2)
  12552. }
  12553. return this
  12554. }
  12555. Buffer.prototype.swap64 = function swap64 () {
  12556. var len = this.length
  12557. if (len % 8 !== 0) {
  12558. throw new RangeError('Buffer size must be a multiple of 64-bits')
  12559. }
  12560. for (var i = 0; i < len; i += 8) {
  12561. swap(this, i, i + 7)
  12562. swap(this, i + 1, i + 6)
  12563. swap(this, i + 2, i + 5)
  12564. swap(this, i + 3, i + 4)
  12565. }
  12566. return this
  12567. }
  12568. Buffer.prototype.toString = function toString () {
  12569. var length = this.length | 0
  12570. if (length === 0) return ''
  12571. if (arguments.length === 0) return utf8Slice(this, 0, length)
  12572. return slowToString.apply(this, arguments)
  12573. }
  12574. Buffer.prototype.equals = function equals (b) {
  12575. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  12576. if (this === b) return true
  12577. return Buffer.compare(this, b) === 0
  12578. }
  12579. Buffer.prototype.inspect = function inspect () {
  12580. var str = ''
  12581. var max = exports.INSPECT_MAX_BYTES
  12582. if (this.length > 0) {
  12583. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  12584. if (this.length > max) str += ' ... '
  12585. }
  12586. return '<Buffer ' + str + '>'
  12587. }
  12588. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  12589. if (!Buffer.isBuffer(target)) {
  12590. throw new TypeError('Argument must be a Buffer')
  12591. }
  12592. if (start === undefined) {
  12593. start = 0
  12594. }
  12595. if (end === undefined) {
  12596. end = target ? target.length : 0
  12597. }
  12598. if (thisStart === undefined) {
  12599. thisStart = 0
  12600. }
  12601. if (thisEnd === undefined) {
  12602. thisEnd = this.length
  12603. }
  12604. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  12605. throw new RangeError('out of range index')
  12606. }
  12607. if (thisStart >= thisEnd && start >= end) {
  12608. return 0
  12609. }
  12610. if (thisStart >= thisEnd) {
  12611. return -1
  12612. }
  12613. if (start >= end) {
  12614. return 1
  12615. }
  12616. start >>>= 0
  12617. end >>>= 0
  12618. thisStart >>>= 0
  12619. thisEnd >>>= 0
  12620. if (this === target) return 0
  12621. var x = thisEnd - thisStart
  12622. var y = end - start
  12623. var len = Math.min(x, y)
  12624. var thisCopy = this.slice(thisStart, thisEnd)
  12625. var targetCopy = target.slice(start, end)
  12626. for (var i = 0; i < len; ++i) {
  12627. if (thisCopy[i] !== targetCopy[i]) {
  12628. x = thisCopy[i]
  12629. y = targetCopy[i]
  12630. break
  12631. }
  12632. }
  12633. if (x < y) return -1
  12634. if (y < x) return 1
  12635. return 0
  12636. }
  12637. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  12638. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  12639. //
  12640. // Arguments:
  12641. // - buffer - a Buffer to search
  12642. // - val - a string, Buffer, or number
  12643. // - byteOffset - an index into `buffer`; will be clamped to an int32
  12644. // - encoding - an optional encoding, relevant is val is a string
  12645. // - dir - true for indexOf, false for lastIndexOf
  12646. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  12647. // Empty buffer means no match
  12648. if (buffer.length === 0) return -1
  12649. // Normalize byteOffset
  12650. if (typeof byteOffset === 'string') {
  12651. encoding = byteOffset
  12652. byteOffset = 0
  12653. } else if (byteOffset > 0x7fffffff) {
  12654. byteOffset = 0x7fffffff
  12655. } else if (byteOffset < -0x80000000) {
  12656. byteOffset = -0x80000000
  12657. }
  12658. byteOffset = +byteOffset // Coerce to Number.
  12659. if (isNaN(byteOffset)) {
  12660. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  12661. byteOffset = dir ? 0 : (buffer.length - 1)
  12662. }
  12663. // Normalize byteOffset: negative offsets start from the end of the buffer
  12664. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  12665. if (byteOffset >= buffer.length) {
  12666. if (dir) return -1
  12667. else byteOffset = buffer.length - 1
  12668. } else if (byteOffset < 0) {
  12669. if (dir) byteOffset = 0
  12670. else return -1
  12671. }
  12672. // Normalize val
  12673. if (typeof val === 'string') {
  12674. val = Buffer.from(val, encoding)
  12675. }
  12676. // Finally, search either indexOf (if dir is true) or lastIndexOf
  12677. if (Buffer.isBuffer(val)) {
  12678. // Special case: looking for empty string/buffer always fails
  12679. if (val.length === 0) {
  12680. return -1
  12681. }
  12682. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  12683. } else if (typeof val === 'number') {
  12684. val = val & 0xFF // Search for a byte value [0-255]
  12685. if (Buffer.TYPED_ARRAY_SUPPORT &&
  12686. typeof Uint8Array.prototype.indexOf === 'function') {
  12687. if (dir) {
  12688. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  12689. } else {
  12690. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  12691. }
  12692. }
  12693. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  12694. }
  12695. throw new TypeError('val must be string, number or Buffer')
  12696. }
  12697. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  12698. var indexSize = 1
  12699. var arrLength = arr.length
  12700. var valLength = val.length
  12701. if (encoding !== undefined) {
  12702. encoding = String(encoding).toLowerCase()
  12703. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  12704. encoding === 'utf16le' || encoding === 'utf-16le') {
  12705. if (arr.length < 2 || val.length < 2) {
  12706. return -1
  12707. }
  12708. indexSize = 2
  12709. arrLength /= 2
  12710. valLength /= 2
  12711. byteOffset /= 2
  12712. }
  12713. }
  12714. function read (buf, i) {
  12715. if (indexSize === 1) {
  12716. return buf[i]
  12717. } else {
  12718. return buf.readUInt16BE(i * indexSize)
  12719. }
  12720. }
  12721. var i
  12722. if (dir) {
  12723. var foundIndex = -1
  12724. for (i = byteOffset; i < arrLength; i++) {
  12725. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  12726. if (foundIndex === -1) foundIndex = i
  12727. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  12728. } else {
  12729. if (foundIndex !== -1) i -= i - foundIndex
  12730. foundIndex = -1
  12731. }
  12732. }
  12733. } else {
  12734. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  12735. for (i = byteOffset; i >= 0; i--) {
  12736. var found = true
  12737. for (var j = 0; j < valLength; j++) {
  12738. if (read(arr, i + j) !== read(val, j)) {
  12739. found = false
  12740. break
  12741. }
  12742. }
  12743. if (found) return i
  12744. }
  12745. }
  12746. return -1
  12747. }
  12748. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  12749. return this.indexOf(val, byteOffset, encoding) !== -1
  12750. }
  12751. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  12752. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  12753. }
  12754. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  12755. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  12756. }
  12757. function hexWrite (buf, string, offset, length) {
  12758. offset = Number(offset) || 0
  12759. var remaining = buf.length - offset
  12760. if (!length) {
  12761. length = remaining
  12762. } else {
  12763. length = Number(length)
  12764. if (length > remaining) {
  12765. length = remaining
  12766. }
  12767. }
  12768. // must be an even number of digits
  12769. var strLen = string.length
  12770. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  12771. if (length > strLen / 2) {
  12772. length = strLen / 2
  12773. }
  12774. for (var i = 0; i < length; ++i) {
  12775. var parsed = parseInt(string.substr(i * 2, 2), 16)
  12776. if (isNaN(parsed)) return i
  12777. buf[offset + i] = parsed
  12778. }
  12779. return i
  12780. }
  12781. function utf8Write (buf, string, offset, length) {
  12782. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  12783. }
  12784. function asciiWrite (buf, string, offset, length) {
  12785. return blitBuffer(asciiToBytes(string), buf, offset, length)
  12786. }
  12787. function latin1Write (buf, string, offset, length) {
  12788. return asciiWrite(buf, string, offset, length)
  12789. }
  12790. function base64Write (buf, string, offset, length) {
  12791. return blitBuffer(base64ToBytes(string), buf, offset, length)
  12792. }
  12793. function ucs2Write (buf, string, offset, length) {
  12794. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  12795. }
  12796. Buffer.prototype.write = function write (string, offset, length, encoding) {
  12797. // Buffer#write(string)
  12798. if (offset === undefined) {
  12799. encoding = 'utf8'
  12800. length = this.length
  12801. offset = 0
  12802. // Buffer#write(string, encoding)
  12803. } else if (length === undefined && typeof offset === 'string') {
  12804. encoding = offset
  12805. length = this.length
  12806. offset = 0
  12807. // Buffer#write(string, offset[, length][, encoding])
  12808. } else if (isFinite(offset)) {
  12809. offset = offset | 0
  12810. if (isFinite(length)) {
  12811. length = length | 0
  12812. if (encoding === undefined) encoding = 'utf8'
  12813. } else {
  12814. encoding = length
  12815. length = undefined
  12816. }
  12817. // legacy write(string, encoding, offset, length) - remove in v0.13
  12818. } else {
  12819. throw new Error(
  12820. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  12821. )
  12822. }
  12823. var remaining = this.length - offset
  12824. if (length === undefined || length > remaining) length = remaining
  12825. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  12826. throw new RangeError('Attempt to write outside buffer bounds')
  12827. }
  12828. if (!encoding) encoding = 'utf8'
  12829. var loweredCase = false
  12830. for (;;) {
  12831. switch (encoding) {
  12832. case 'hex':
  12833. return hexWrite(this, string, offset, length)
  12834. case 'utf8':
  12835. case 'utf-8':
  12836. return utf8Write(this, string, offset, length)
  12837. case 'ascii':
  12838. return asciiWrite(this, string, offset, length)
  12839. case 'latin1':
  12840. case 'binary':
  12841. return latin1Write(this, string, offset, length)
  12842. case 'base64':
  12843. // Warning: maxLength not taken into account in base64Write
  12844. return base64Write(this, string, offset, length)
  12845. case 'ucs2':
  12846. case 'ucs-2':
  12847. case 'utf16le':
  12848. case 'utf-16le':
  12849. return ucs2Write(this, string, offset, length)
  12850. default:
  12851. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  12852. encoding = ('' + encoding).toLowerCase()
  12853. loweredCase = true
  12854. }
  12855. }
  12856. }
  12857. Buffer.prototype.toJSON = function toJSON () {
  12858. return {
  12859. type: 'Buffer',
  12860. data: Array.prototype.slice.call(this._arr || this, 0)
  12861. }
  12862. }
  12863. function base64Slice (buf, start, end) {
  12864. if (start === 0 && end === buf.length) {
  12865. return base64.fromByteArray(buf)
  12866. } else {
  12867. return base64.fromByteArray(buf.slice(start, end))
  12868. }
  12869. }
  12870. function utf8Slice (buf, start, end) {
  12871. end = Math.min(buf.length, end)
  12872. var res = []
  12873. var i = start
  12874. while (i < end) {
  12875. var firstByte = buf[i]
  12876. var codePoint = null
  12877. var bytesPerSequence = (firstByte > 0xEF) ? 4
  12878. : (firstByte > 0xDF) ? 3
  12879. : (firstByte > 0xBF) ? 2
  12880. : 1
  12881. if (i + bytesPerSequence <= end) {
  12882. var secondByte, thirdByte, fourthByte, tempCodePoint
  12883. switch (bytesPerSequence) {
  12884. case 1:
  12885. if (firstByte < 0x80) {
  12886. codePoint = firstByte
  12887. }
  12888. break
  12889. case 2:
  12890. secondByte = buf[i + 1]
  12891. if ((secondByte & 0xC0) === 0x80) {
  12892. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  12893. if (tempCodePoint > 0x7F) {
  12894. codePoint = tempCodePoint
  12895. }
  12896. }
  12897. break
  12898. case 3:
  12899. secondByte = buf[i + 1]
  12900. thirdByte = buf[i + 2]
  12901. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  12902. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  12903. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  12904. codePoint = tempCodePoint
  12905. }
  12906. }
  12907. break
  12908. case 4:
  12909. secondByte = buf[i + 1]
  12910. thirdByte = buf[i + 2]
  12911. fourthByte = buf[i + 3]
  12912. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  12913. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  12914. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  12915. codePoint = tempCodePoint
  12916. }
  12917. }
  12918. }
  12919. }
  12920. if (codePoint === null) {
  12921. // we did not generate a valid codePoint so insert a
  12922. // replacement char (U+FFFD) and advance only 1 byte
  12923. codePoint = 0xFFFD
  12924. bytesPerSequence = 1
  12925. } else if (codePoint > 0xFFFF) {
  12926. // encode to utf16 (surrogate pair dance)
  12927. codePoint -= 0x10000
  12928. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  12929. codePoint = 0xDC00 | codePoint & 0x3FF
  12930. }
  12931. res.push(codePoint)
  12932. i += bytesPerSequence
  12933. }
  12934. return decodeCodePointsArray(res)
  12935. }
  12936. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  12937. // the lowest limit is Chrome, with 0x10000 args.
  12938. // We go 1 magnitude less, for safety
  12939. var MAX_ARGUMENTS_LENGTH = 0x1000
  12940. function decodeCodePointsArray (codePoints) {
  12941. var len = codePoints.length
  12942. if (len <= MAX_ARGUMENTS_LENGTH) {
  12943. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  12944. }
  12945. // Decode in chunks to avoid "call stack size exceeded".
  12946. var res = ''
  12947. var i = 0
  12948. while (i < len) {
  12949. res += String.fromCharCode.apply(
  12950. String,
  12951. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  12952. )
  12953. }
  12954. return res
  12955. }
  12956. function asciiSlice (buf, start, end) {
  12957. var ret = ''
  12958. end = Math.min(buf.length, end)
  12959. for (var i = start; i < end; ++i) {
  12960. ret += String.fromCharCode(buf[i] & 0x7F)
  12961. }
  12962. return ret
  12963. }
  12964. function latin1Slice (buf, start, end) {
  12965. var ret = ''
  12966. end = Math.min(buf.length, end)
  12967. for (var i = start; i < end; ++i) {
  12968. ret += String.fromCharCode(buf[i])
  12969. }
  12970. return ret
  12971. }
  12972. function hexSlice (buf, start, end) {
  12973. var len = buf.length
  12974. if (!start || start < 0) start = 0
  12975. if (!end || end < 0 || end > len) end = len
  12976. var out = ''
  12977. for (var i = start; i < end; ++i) {
  12978. out += toHex(buf[i])
  12979. }
  12980. return out
  12981. }
  12982. function utf16leSlice (buf, start, end) {
  12983. var bytes = buf.slice(start, end)
  12984. var res = ''
  12985. for (var i = 0; i < bytes.length; i += 2) {
  12986. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  12987. }
  12988. return res
  12989. }
  12990. Buffer.prototype.slice = function slice (start, end) {
  12991. var len = this.length
  12992. start = ~~start
  12993. end = end === undefined ? len : ~~end
  12994. if (start < 0) {
  12995. start += len
  12996. if (start < 0) start = 0
  12997. } else if (start > len) {
  12998. start = len
  12999. }
  13000. if (end < 0) {
  13001. end += len
  13002. if (end < 0) end = 0
  13003. } else if (end > len) {
  13004. end = len
  13005. }
  13006. if (end < start) end = start
  13007. var newBuf
  13008. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13009. newBuf = this.subarray(start, end)
  13010. newBuf.__proto__ = Buffer.prototype
  13011. } else {
  13012. var sliceLen = end - start
  13013. newBuf = new Buffer(sliceLen, undefined)
  13014. for (var i = 0; i < sliceLen; ++i) {
  13015. newBuf[i] = this[i + start]
  13016. }
  13017. }
  13018. return newBuf
  13019. }
  13020. /*
  13021. * Need to make sure that buffer isn't trying to write out of bounds.
  13022. */
  13023. function checkOffset (offset, ext, length) {
  13024. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  13025. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  13026. }
  13027. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  13028. offset = offset | 0
  13029. byteLength = byteLength | 0
  13030. if (!noAssert) checkOffset(offset, byteLength, this.length)
  13031. var val = this[offset]
  13032. var mul = 1
  13033. var i = 0
  13034. while (++i < byteLength && (mul *= 0x100)) {
  13035. val += this[offset + i] * mul
  13036. }
  13037. return val
  13038. }
  13039. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  13040. offset = offset | 0
  13041. byteLength = byteLength | 0
  13042. if (!noAssert) {
  13043. checkOffset(offset, byteLength, this.length)
  13044. }
  13045. var val = this[offset + --byteLength]
  13046. var mul = 1
  13047. while (byteLength > 0 && (mul *= 0x100)) {
  13048. val += this[offset + --byteLength] * mul
  13049. }
  13050. return val
  13051. }
  13052. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  13053. if (!noAssert) checkOffset(offset, 1, this.length)
  13054. return this[offset]
  13055. }
  13056. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  13057. if (!noAssert) checkOffset(offset, 2, this.length)
  13058. return this[offset] | (this[offset + 1] << 8)
  13059. }
  13060. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  13061. if (!noAssert) checkOffset(offset, 2, this.length)
  13062. return (this[offset] << 8) | this[offset + 1]
  13063. }
  13064. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  13065. if (!noAssert) checkOffset(offset, 4, this.length)
  13066. return ((this[offset]) |
  13067. (this[offset + 1] << 8) |
  13068. (this[offset + 2] << 16)) +
  13069. (this[offset + 3] * 0x1000000)
  13070. }
  13071. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  13072. if (!noAssert) checkOffset(offset, 4, this.length)
  13073. return (this[offset] * 0x1000000) +
  13074. ((this[offset + 1] << 16) |
  13075. (this[offset + 2] << 8) |
  13076. this[offset + 3])
  13077. }
  13078. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  13079. offset = offset | 0
  13080. byteLength = byteLength | 0
  13081. if (!noAssert) checkOffset(offset, byteLength, this.length)
  13082. var val = this[offset]
  13083. var mul = 1
  13084. var i = 0
  13085. while (++i < byteLength && (mul *= 0x100)) {
  13086. val += this[offset + i] * mul
  13087. }
  13088. mul *= 0x80
  13089. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  13090. return val
  13091. }
  13092. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  13093. offset = offset | 0
  13094. byteLength = byteLength | 0
  13095. if (!noAssert) checkOffset(offset, byteLength, this.length)
  13096. var i = byteLength
  13097. var mul = 1
  13098. var val = this[offset + --i]
  13099. while (i > 0 && (mul *= 0x100)) {
  13100. val += this[offset + --i] * mul
  13101. }
  13102. mul *= 0x80
  13103. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  13104. return val
  13105. }
  13106. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  13107. if (!noAssert) checkOffset(offset, 1, this.length)
  13108. if (!(this[offset] & 0x80)) return (this[offset])
  13109. return ((0xff - this[offset] + 1) * -1)
  13110. }
  13111. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  13112. if (!noAssert) checkOffset(offset, 2, this.length)
  13113. var val = this[offset] | (this[offset + 1] << 8)
  13114. return (val & 0x8000) ? val | 0xFFFF0000 : val
  13115. }
  13116. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  13117. if (!noAssert) checkOffset(offset, 2, this.length)
  13118. var val = this[offset + 1] | (this[offset] << 8)
  13119. return (val & 0x8000) ? val | 0xFFFF0000 : val
  13120. }
  13121. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  13122. if (!noAssert) checkOffset(offset, 4, this.length)
  13123. return (this[offset]) |
  13124. (this[offset + 1] << 8) |
  13125. (this[offset + 2] << 16) |
  13126. (this[offset + 3] << 24)
  13127. }
  13128. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  13129. if (!noAssert) checkOffset(offset, 4, this.length)
  13130. return (this[offset] << 24) |
  13131. (this[offset + 1] << 16) |
  13132. (this[offset + 2] << 8) |
  13133. (this[offset + 3])
  13134. }
  13135. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  13136. if (!noAssert) checkOffset(offset, 4, this.length)
  13137. return ieee754.read(this, offset, true, 23, 4)
  13138. }
  13139. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  13140. if (!noAssert) checkOffset(offset, 4, this.length)
  13141. return ieee754.read(this, offset, false, 23, 4)
  13142. }
  13143. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  13144. if (!noAssert) checkOffset(offset, 8, this.length)
  13145. return ieee754.read(this, offset, true, 52, 8)
  13146. }
  13147. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  13148. if (!noAssert) checkOffset(offset, 8, this.length)
  13149. return ieee754.read(this, offset, false, 52, 8)
  13150. }
  13151. function checkInt (buf, value, offset, ext, max, min) {
  13152. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  13153. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  13154. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  13155. }
  13156. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  13157. value = +value
  13158. offset = offset | 0
  13159. byteLength = byteLength | 0
  13160. if (!noAssert) {
  13161. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  13162. checkInt(this, value, offset, byteLength, maxBytes, 0)
  13163. }
  13164. var mul = 1
  13165. var i = 0
  13166. this[offset] = value & 0xFF
  13167. while (++i < byteLength && (mul *= 0x100)) {
  13168. this[offset + i] = (value / mul) & 0xFF
  13169. }
  13170. return offset + byteLength
  13171. }
  13172. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  13173. value = +value
  13174. offset = offset | 0
  13175. byteLength = byteLength | 0
  13176. if (!noAssert) {
  13177. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  13178. checkInt(this, value, offset, byteLength, maxBytes, 0)
  13179. }
  13180. var i = byteLength - 1
  13181. var mul = 1
  13182. this[offset + i] = value & 0xFF
  13183. while (--i >= 0 && (mul *= 0x100)) {
  13184. this[offset + i] = (value / mul) & 0xFF
  13185. }
  13186. return offset + byteLength
  13187. }
  13188. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  13189. value = +value
  13190. offset = offset | 0
  13191. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  13192. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  13193. this[offset] = (value & 0xff)
  13194. return offset + 1
  13195. }
  13196. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  13197. if (value < 0) value = 0xffff + value + 1
  13198. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  13199. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  13200. (littleEndian ? i : 1 - i) * 8
  13201. }
  13202. }
  13203. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  13204. value = +value
  13205. offset = offset | 0
  13206. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  13207. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13208. this[offset] = (value & 0xff)
  13209. this[offset + 1] = (value >>> 8)
  13210. } else {
  13211. objectWriteUInt16(this, value, offset, true)
  13212. }
  13213. return offset + 2
  13214. }
  13215. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  13216. value = +value
  13217. offset = offset | 0
  13218. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  13219. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13220. this[offset] = (value >>> 8)
  13221. this[offset + 1] = (value & 0xff)
  13222. } else {
  13223. objectWriteUInt16(this, value, offset, false)
  13224. }
  13225. return offset + 2
  13226. }
  13227. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  13228. if (value < 0) value = 0xffffffff + value + 1
  13229. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  13230. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  13231. }
  13232. }
  13233. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  13234. value = +value
  13235. offset = offset | 0
  13236. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  13237. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13238. this[offset + 3] = (value >>> 24)
  13239. this[offset + 2] = (value >>> 16)
  13240. this[offset + 1] = (value >>> 8)
  13241. this[offset] = (value & 0xff)
  13242. } else {
  13243. objectWriteUInt32(this, value, offset, true)
  13244. }
  13245. return offset + 4
  13246. }
  13247. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  13248. value = +value
  13249. offset = offset | 0
  13250. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  13251. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13252. this[offset] = (value >>> 24)
  13253. this[offset + 1] = (value >>> 16)
  13254. this[offset + 2] = (value >>> 8)
  13255. this[offset + 3] = (value & 0xff)
  13256. } else {
  13257. objectWriteUInt32(this, value, offset, false)
  13258. }
  13259. return offset + 4
  13260. }
  13261. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  13262. value = +value
  13263. offset = offset | 0
  13264. if (!noAssert) {
  13265. var limit = Math.pow(2, 8 * byteLength - 1)
  13266. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  13267. }
  13268. var i = 0
  13269. var mul = 1
  13270. var sub = 0
  13271. this[offset] = value & 0xFF
  13272. while (++i < byteLength && (mul *= 0x100)) {
  13273. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  13274. sub = 1
  13275. }
  13276. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  13277. }
  13278. return offset + byteLength
  13279. }
  13280. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  13281. value = +value
  13282. offset = offset | 0
  13283. if (!noAssert) {
  13284. var limit = Math.pow(2, 8 * byteLength - 1)
  13285. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  13286. }
  13287. var i = byteLength - 1
  13288. var mul = 1
  13289. var sub = 0
  13290. this[offset + i] = value & 0xFF
  13291. while (--i >= 0 && (mul *= 0x100)) {
  13292. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  13293. sub = 1
  13294. }
  13295. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  13296. }
  13297. return offset + byteLength
  13298. }
  13299. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  13300. value = +value
  13301. offset = offset | 0
  13302. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  13303. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  13304. if (value < 0) value = 0xff + value + 1
  13305. this[offset] = (value & 0xff)
  13306. return offset + 1
  13307. }
  13308. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  13309. value = +value
  13310. offset = offset | 0
  13311. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  13312. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13313. this[offset] = (value & 0xff)
  13314. this[offset + 1] = (value >>> 8)
  13315. } else {
  13316. objectWriteUInt16(this, value, offset, true)
  13317. }
  13318. return offset + 2
  13319. }
  13320. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  13321. value = +value
  13322. offset = offset | 0
  13323. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  13324. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13325. this[offset] = (value >>> 8)
  13326. this[offset + 1] = (value & 0xff)
  13327. } else {
  13328. objectWriteUInt16(this, value, offset, false)
  13329. }
  13330. return offset + 2
  13331. }
  13332. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  13333. value = +value
  13334. offset = offset | 0
  13335. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  13336. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13337. this[offset] = (value & 0xff)
  13338. this[offset + 1] = (value >>> 8)
  13339. this[offset + 2] = (value >>> 16)
  13340. this[offset + 3] = (value >>> 24)
  13341. } else {
  13342. objectWriteUInt32(this, value, offset, true)
  13343. }
  13344. return offset + 4
  13345. }
  13346. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  13347. value = +value
  13348. offset = offset | 0
  13349. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  13350. if (value < 0) value = 0xffffffff + value + 1
  13351. if (Buffer.TYPED_ARRAY_SUPPORT) {
  13352. this[offset] = (value >>> 24)
  13353. this[offset + 1] = (value >>> 16)
  13354. this[offset + 2] = (value >>> 8)
  13355. this[offset + 3] = (value & 0xff)
  13356. } else {
  13357. objectWriteUInt32(this, value, offset, false)
  13358. }
  13359. return offset + 4
  13360. }
  13361. function checkIEEE754 (buf, value, offset, ext, max, min) {
  13362. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  13363. if (offset < 0) throw new RangeError('Index out of range')
  13364. }
  13365. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  13366. if (!noAssert) {
  13367. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  13368. }
  13369. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  13370. return offset + 4
  13371. }
  13372. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  13373. return writeFloat(this, value, offset, true, noAssert)
  13374. }
  13375. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  13376. return writeFloat(this, value, offset, false, noAssert)
  13377. }
  13378. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  13379. if (!noAssert) {
  13380. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  13381. }
  13382. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  13383. return offset + 8
  13384. }
  13385. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  13386. return writeDouble(this, value, offset, true, noAssert)
  13387. }
  13388. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  13389. return writeDouble(this, value, offset, false, noAssert)
  13390. }
  13391. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  13392. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  13393. if (!start) start = 0
  13394. if (!end && end !== 0) end = this.length
  13395. if (targetStart >= target.length) targetStart = target.length
  13396. if (!targetStart) targetStart = 0
  13397. if (end > 0 && end < start) end = start
  13398. // Copy 0 bytes; we're done
  13399. if (end === start) return 0
  13400. if (target.length === 0 || this.length === 0) return 0
  13401. // Fatal error conditions
  13402. if (targetStart < 0) {
  13403. throw new RangeError('targetStart out of bounds')
  13404. }
  13405. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  13406. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  13407. // Are we oob?
  13408. if (end > this.length) end = this.length
  13409. if (target.length - targetStart < end - start) {
  13410. end = target.length - targetStart + start
  13411. }
  13412. var len = end - start
  13413. var i
  13414. if (this === target && start < targetStart && targetStart < end) {
  13415. // descending copy from end
  13416. for (i = len - 1; i >= 0; --i) {
  13417. target[i + targetStart] = this[i + start]
  13418. }
  13419. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  13420. // ascending copy from start
  13421. for (i = 0; i < len; ++i) {
  13422. target[i + targetStart] = this[i + start]
  13423. }
  13424. } else {
  13425. Uint8Array.prototype.set.call(
  13426. target,
  13427. this.subarray(start, start + len),
  13428. targetStart
  13429. )
  13430. }
  13431. return len
  13432. }
  13433. // Usage:
  13434. // buffer.fill(number[, offset[, end]])
  13435. // buffer.fill(buffer[, offset[, end]])
  13436. // buffer.fill(string[, offset[, end]][, encoding])
  13437. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  13438. // Handle string cases:
  13439. if (typeof val === 'string') {
  13440. if (typeof start === 'string') {
  13441. encoding = start
  13442. start = 0
  13443. end = this.length
  13444. } else if (typeof end === 'string') {
  13445. encoding = end
  13446. end = this.length
  13447. }
  13448. if (val.length === 1) {
  13449. var code = val.charCodeAt(0)
  13450. if (code < 256) {
  13451. val = code
  13452. }
  13453. }
  13454. if (encoding !== undefined && typeof encoding !== 'string') {
  13455. throw new TypeError('encoding must be a string')
  13456. }
  13457. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  13458. throw new TypeError('Unknown encoding: ' + encoding)
  13459. }
  13460. } else if (typeof val === 'number') {
  13461. val = val & 255
  13462. }
  13463. // Invalid ranges are not set to a default, so can range check early.
  13464. if (start < 0 || this.length < start || this.length < end) {
  13465. throw new RangeError('Out of range index')
  13466. }
  13467. if (end <= start) {
  13468. return this
  13469. }
  13470. start = start >>> 0
  13471. end = end === undefined ? this.length : end >>> 0
  13472. if (!val) val = 0
  13473. var i
  13474. if (typeof val === 'number') {
  13475. for (i = start; i < end; ++i) {
  13476. this[i] = val
  13477. }
  13478. } else {
  13479. var bytes = Buffer.isBuffer(val)
  13480. ? val
  13481. : utf8ToBytes(new Buffer(val, encoding).toString())
  13482. var len = bytes.length
  13483. for (i = 0; i < end - start; ++i) {
  13484. this[i + start] = bytes[i % len]
  13485. }
  13486. }
  13487. return this
  13488. }
  13489. // HELPER FUNCTIONS
  13490. // ================
  13491. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  13492. function base64clean (str) {
  13493. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  13494. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  13495. // Node converts strings with length < 2 to ''
  13496. if (str.length < 2) return ''
  13497. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  13498. while (str.length % 4 !== 0) {
  13499. str = str + '='
  13500. }
  13501. return str
  13502. }
  13503. function stringtrim (str) {
  13504. if (str.trim) return str.trim()
  13505. return str.replace(/^\s+|\s+$/g, '')
  13506. }
  13507. function toHex (n) {
  13508. if (n < 16) return '0' + n.toString(16)
  13509. return n.toString(16)
  13510. }
  13511. function utf8ToBytes (string, units) {
  13512. units = units || Infinity
  13513. var codePoint
  13514. var length = string.length
  13515. var leadSurrogate = null
  13516. var bytes = []
  13517. for (var i = 0; i < length; ++i) {
  13518. codePoint = string.charCodeAt(i)
  13519. // is surrogate component
  13520. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  13521. // last char was a lead
  13522. if (!leadSurrogate) {
  13523. // no lead yet
  13524. if (codePoint > 0xDBFF) {
  13525. // unexpected trail
  13526. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  13527. continue
  13528. } else if (i + 1 === length) {
  13529. // unpaired lead
  13530. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  13531. continue
  13532. }
  13533. // valid lead
  13534. leadSurrogate = codePoint
  13535. continue
  13536. }
  13537. // 2 leads in a row
  13538. if (codePoint < 0xDC00) {
  13539. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  13540. leadSurrogate = codePoint
  13541. continue
  13542. }
  13543. // valid surrogate pair
  13544. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  13545. } else if (leadSurrogate) {
  13546. // valid bmp char, but last char was a lead
  13547. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  13548. }
  13549. leadSurrogate = null
  13550. // encode utf8
  13551. if (codePoint < 0x80) {
  13552. if ((units -= 1) < 0) break
  13553. bytes.push(codePoint)
  13554. } else if (codePoint < 0x800) {
  13555. if ((units -= 2) < 0) break
  13556. bytes.push(
  13557. codePoint >> 0x6 | 0xC0,
  13558. codePoint & 0x3F | 0x80
  13559. )
  13560. } else if (codePoint < 0x10000) {
  13561. if ((units -= 3) < 0) break
  13562. bytes.push(
  13563. codePoint >> 0xC | 0xE0,
  13564. codePoint >> 0x6 & 0x3F | 0x80,
  13565. codePoint & 0x3F | 0x80
  13566. )
  13567. } else if (codePoint < 0x110000) {
  13568. if ((units -= 4) < 0) break
  13569. bytes.push(
  13570. codePoint >> 0x12 | 0xF0,
  13571. codePoint >> 0xC & 0x3F | 0x80,
  13572. codePoint >> 0x6 & 0x3F | 0x80,
  13573. codePoint & 0x3F | 0x80
  13574. )
  13575. } else {
  13576. throw new Error('Invalid code point')
  13577. }
  13578. }
  13579. return bytes
  13580. }
  13581. function asciiToBytes (str) {
  13582. var byteArray = []
  13583. for (var i = 0; i < str.length; ++i) {
  13584. // Node's code seems to be doing this and not & 0x7F..
  13585. byteArray.push(str.charCodeAt(i) & 0xFF)
  13586. }
  13587. return byteArray
  13588. }
  13589. function utf16leToBytes (str, units) {
  13590. var c, hi, lo
  13591. var byteArray = []
  13592. for (var i = 0; i < str.length; ++i) {
  13593. if ((units -= 2) < 0) break
  13594. c = str.charCodeAt(i)
  13595. hi = c >> 8
  13596. lo = c % 256
  13597. byteArray.push(lo)
  13598. byteArray.push(hi)
  13599. }
  13600. return byteArray
  13601. }
  13602. function base64ToBytes (str) {
  13603. return base64.toByteArray(base64clean(str))
  13604. }
  13605. function blitBuffer (src, dst, offset, length) {
  13606. for (var i = 0; i < length; ++i) {
  13607. if ((i + offset >= dst.length) || (i >= src.length)) break
  13608. dst[i + offset] = src[i]
  13609. }
  13610. return i
  13611. }
  13612. function isnan (val) {
  13613. return val !== val // eslint-disable-line no-self-compare
  13614. }
  13615. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 2)))
  13616. /***/ }),
  13617. /* 51 */
  13618. /*!*****************************************!*\
  13619. !*** ./node_modules/base64-js/index.js ***!
  13620. \*****************************************/
  13621. /*! no static exports found */
  13622. /***/ (function(module, exports, __webpack_require__) {
  13623. "use strict";
  13624. exports.byteLength = byteLength
  13625. exports.toByteArray = toByteArray
  13626. exports.fromByteArray = fromByteArray
  13627. var lookup = []
  13628. var revLookup = []
  13629. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  13630. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  13631. for (var i = 0, len = code.length; i < len; ++i) {
  13632. lookup[i] = code[i]
  13633. revLookup[code.charCodeAt(i)] = i
  13634. }
  13635. // Support decoding URL-safe base64 strings, as Node.js does.
  13636. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  13637. revLookup['-'.charCodeAt(0)] = 62
  13638. revLookup['_'.charCodeAt(0)] = 63
  13639. function getLens (b64) {
  13640. var len = b64.length
  13641. if (len % 4 > 0) {
  13642. throw new Error('Invalid string. Length must be a multiple of 4')
  13643. }
  13644. // Trim off extra bytes after placeholder bytes are found
  13645. // See: https://github.com/beatgammit/base64-js/issues/42
  13646. var validLen = b64.indexOf('=')
  13647. if (validLen === -1) validLen = len
  13648. var placeHoldersLen = validLen === len
  13649. ? 0
  13650. : 4 - (validLen % 4)
  13651. return [validLen, placeHoldersLen]
  13652. }
  13653. // base64 is 4/3 + up to two characters of the original data
  13654. function byteLength (b64) {
  13655. var lens = getLens(b64)
  13656. var validLen = lens[0]
  13657. var placeHoldersLen = lens[1]
  13658. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  13659. }
  13660. function _byteLength (b64, validLen, placeHoldersLen) {
  13661. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  13662. }
  13663. function toByteArray (b64) {
  13664. var tmp
  13665. var lens = getLens(b64)
  13666. var validLen = lens[0]
  13667. var placeHoldersLen = lens[1]
  13668. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  13669. var curByte = 0
  13670. // if there are placeholders, only get up to the last complete 4 chars
  13671. var len = placeHoldersLen > 0
  13672. ? validLen - 4
  13673. : validLen
  13674. var i
  13675. for (i = 0; i < len; i += 4) {
  13676. tmp =
  13677. (revLookup[b64.charCodeAt(i)] << 18) |
  13678. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  13679. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  13680. revLookup[b64.charCodeAt(i + 3)]
  13681. arr[curByte++] = (tmp >> 16) & 0xFF
  13682. arr[curByte++] = (tmp >> 8) & 0xFF
  13683. arr[curByte++] = tmp & 0xFF
  13684. }
  13685. if (placeHoldersLen === 2) {
  13686. tmp =
  13687. (revLookup[b64.charCodeAt(i)] << 2) |
  13688. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  13689. arr[curByte++] = tmp & 0xFF
  13690. }
  13691. if (placeHoldersLen === 1) {
  13692. tmp =
  13693. (revLookup[b64.charCodeAt(i)] << 10) |
  13694. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  13695. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  13696. arr[curByte++] = (tmp >> 8) & 0xFF
  13697. arr[curByte++] = tmp & 0xFF
  13698. }
  13699. return arr
  13700. }
  13701. function tripletToBase64 (num) {
  13702. return lookup[num >> 18 & 0x3F] +
  13703. lookup[num >> 12 & 0x3F] +
  13704. lookup[num >> 6 & 0x3F] +
  13705. lookup[num & 0x3F]
  13706. }
  13707. function encodeChunk (uint8, start, end) {
  13708. var tmp
  13709. var output = []
  13710. for (var i = start; i < end; i += 3) {
  13711. tmp =
  13712. ((uint8[i] << 16) & 0xFF0000) +
  13713. ((uint8[i + 1] << 8) & 0xFF00) +
  13714. (uint8[i + 2] & 0xFF)
  13715. output.push(tripletToBase64(tmp))
  13716. }
  13717. return output.join('')
  13718. }
  13719. function fromByteArray (uint8) {
  13720. var tmp
  13721. var len = uint8.length
  13722. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  13723. var parts = []
  13724. var maxChunkLength = 16383 // must be multiple of 3
  13725. // go through the array every three bytes, we'll deal with trailing stuff later
  13726. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  13727. parts.push(encodeChunk(
  13728. uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)
  13729. ))
  13730. }
  13731. // pad the end with zeros, but make sure to not forget the extra bytes
  13732. if (extraBytes === 1) {
  13733. tmp = uint8[len - 1]
  13734. parts.push(
  13735. lookup[tmp >> 2] +
  13736. lookup[(tmp << 4) & 0x3F] +
  13737. '=='
  13738. )
  13739. } else if (extraBytes === 2) {
  13740. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  13741. parts.push(
  13742. lookup[tmp >> 10] +
  13743. lookup[(tmp >> 4) & 0x3F] +
  13744. lookup[(tmp << 2) & 0x3F] +
  13745. '='
  13746. )
  13747. }
  13748. return parts.join('')
  13749. }
  13750. /***/ }),
  13751. /* 52 */
  13752. /*!***************************************!*\
  13753. !*** ./node_modules/ieee754/index.js ***!
  13754. \***************************************/
  13755. /*! no static exports found */
  13756. /***/ (function(module, exports) {
  13757. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  13758. var e, m
  13759. var eLen = (nBytes * 8) - mLen - 1
  13760. var eMax = (1 << eLen) - 1
  13761. var eBias = eMax >> 1
  13762. var nBits = -7
  13763. var i = isLE ? (nBytes - 1) : 0
  13764. var d = isLE ? -1 : 1
  13765. var s = buffer[offset + i]
  13766. i += d
  13767. e = s & ((1 << (-nBits)) - 1)
  13768. s >>= (-nBits)
  13769. nBits += eLen
  13770. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  13771. m = e & ((1 << (-nBits)) - 1)
  13772. e >>= (-nBits)
  13773. nBits += mLen
  13774. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  13775. if (e === 0) {
  13776. e = 1 - eBias
  13777. } else if (e === eMax) {
  13778. return m ? NaN : ((s ? -1 : 1) * Infinity)
  13779. } else {
  13780. m = m + Math.pow(2, mLen)
  13781. e = e - eBias
  13782. }
  13783. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  13784. }
  13785. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  13786. var e, m, c
  13787. var eLen = (nBytes * 8) - mLen - 1
  13788. var eMax = (1 << eLen) - 1
  13789. var eBias = eMax >> 1
  13790. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  13791. var i = isLE ? 0 : (nBytes - 1)
  13792. var d = isLE ? 1 : -1
  13793. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  13794. value = Math.abs(value)
  13795. if (isNaN(value) || value === Infinity) {
  13796. m = isNaN(value) ? 1 : 0
  13797. e = eMax
  13798. } else {
  13799. e = Math.floor(Math.log(value) / Math.LN2)
  13800. if (value * (c = Math.pow(2, -e)) < 1) {
  13801. e--
  13802. c *= 2
  13803. }
  13804. if (e + eBias >= 1) {
  13805. value += rt / c
  13806. } else {
  13807. value += rt * Math.pow(2, 1 - eBias)
  13808. }
  13809. if (value * c >= 2) {
  13810. e++
  13811. c /= 2
  13812. }
  13813. if (e + eBias >= eMax) {
  13814. m = 0
  13815. e = eMax
  13816. } else if (e + eBias >= 1) {
  13817. m = ((value * c) - 1) * Math.pow(2, mLen)
  13818. e = e + eBias
  13819. } else {
  13820. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  13821. e = 0
  13822. }
  13823. }
  13824. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  13825. e = (e << mLen) | m
  13826. eLen += mLen
  13827. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  13828. buffer[offset + i - d] |= s * 128
  13829. }
  13830. /***/ }),
  13831. /* 53 */
  13832. /*!***************************************!*\
  13833. !*** ./node_modules/isarray/index.js ***!
  13834. \***************************************/
  13835. /*! no static exports found */
  13836. /***/ (function(module, exports) {
  13837. var toString = {}.toString;
  13838. module.exports = Array.isArray || function (arr) {
  13839. return toString.call(arr) == '[object Array]';
  13840. };
  13841. /***/ }),
  13842. /* 54 */
  13843. /*!***********************************************************************************!*\
  13844. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/util/route.js ***!
  13845. \***********************************************************************************/
  13846. /*! no static exports found */
  13847. /***/ (function(module, exports, __webpack_require__) {
  13848. "use strict";
  13849. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 55));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}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;} /**
  13850. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  13851. * 并且带有路由拦截功能
  13852. */var
  13853. Router = /*#__PURE__*/function () {
  13854. function Router() {_classCallCheck(this, Router);
  13855. // 原始属性定义
  13856. this.config = {
  13857. type: 'navigateTo',
  13858. url: '',
  13859. delta: 1, // navigateBack页面后退时,回退的层数
  13860. params: {}, // 传递的参数
  13861. animationType: 'pop-in', // 窗口动画,只在APP有效
  13862. animationDuration: 300, // 窗口动画持续时间,单位毫秒,只在APP有效
  13863. intercept: false // 是否需要拦截
  13864. };
  13865. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  13866. // 这里在构造函数中进行this绑定
  13867. this.route = this.route.bind(this);
  13868. }
  13869. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  13870. _createClass(Router, [{ key: "addRootPath", value: function addRootPath(url) {
  13871. return url[0] === '/' ? url : "/".concat(url);
  13872. }
  13873. // 整合路由参数
  13874. }, { key: "mixinParam", value: function mixinParam(url, params) {
  13875. url = url && this.addRootPath(url);
  13876. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  13877. // 如果有url中有get参数,转换后无需带上"?"
  13878. var query = '';
  13879. if (/.*\/.*\?.*=.*/.test(url)) {
  13880. // object对象转为get类型的参数
  13881. query = uni.$u.queryParams(params, false);
  13882. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  13883. return url += "&".concat(query);
  13884. }
  13885. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  13886. query = uni.$u.queryParams(params);
  13887. return url += query;
  13888. }
  13889. // 对外的方法名称
  13890. }, { key: "route", value: function () {var _route = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {var options,params,mergeConfig,isNext,_args = arguments;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  13891. // 合并用户的配置和内部的默认配置
  13892. mergeConfig = {};
  13893. if (typeof options === 'string') {
  13894. // 如果options为字符串,则为route(url, params)的形式
  13895. mergeConfig.url = this.mixinParam(options, params);
  13896. mergeConfig.type = 'navigateTo';
  13897. } else {
  13898. mergeConfig = uni.$u.deepMerge(this.config, options);
  13899. // 否则正常使用mergeConfig中的url和params进行拼接
  13900. mergeConfig.url = this.mixinParam(options.url, options.params);
  13901. }
  13902. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  13903. if (!(mergeConfig.url === uni.$u.page())) {_context.next = 6;break;}return _context.abrupt("return");case 6:
  13904. if (params.intercept) {
  13905. this.config.intercept = params.intercept;
  13906. }
  13907. // params参数也带给拦截器
  13908. mergeConfig.params = params;
  13909. // 合并内外部参数
  13910. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  13911. // 判断用户是否定义了拦截器
  13912. if (!(typeof uni.$u.routeIntercept === 'function')) {_context.next = 16;break;}_context.next = 12;return (
  13913. new Promise(function (resolve, reject) {
  13914. uni.$u.routeIntercept(mergeConfig, resolve);
  13915. }));case 12:isNext = _context.sent;
  13916. // 如果isNext为true,则执行路由跳转
  13917. isNext && this.openPage(mergeConfig);_context.next = 17;break;case 16:
  13918. this.openPage(mergeConfig);case 17:case "end":return _context.stop();}}}, _callee, this);}));function route() {return _route.apply(this, arguments);}return route;}()
  13919. // 执行路由跳转
  13920. }, { key: "openPage", value: function openPage(config) {
  13921. // 解构参数
  13922. var
  13923. url =
  13924. config.url,type = config.type,delta = config.delta,animationType = config.animationType,animationDuration = config.animationDuration;
  13925. if (config.type == 'navigateTo' || config.type == 'to') {
  13926. uni.navigateTo({
  13927. url: url,
  13928. animationType: animationType,
  13929. animationDuration: animationDuration });
  13930. }
  13931. if (config.type == 'redirectTo' || config.type == 'redirect') {
  13932. uni.redirectTo({
  13933. url: url });
  13934. }
  13935. if (config.type == 'switchTab' || config.type == 'tab') {
  13936. uni.switchTab({
  13937. url: url });
  13938. }
  13939. if (config.type == 'reLaunch' || config.type == 'launch') {
  13940. uni.reLaunch({
  13941. url: url });
  13942. }
  13943. if (config.type == 'navigateBack' || config.type == 'back') {
  13944. uni.navigateBack({
  13945. delta: delta });
  13946. }
  13947. } }]);return Router;}();var _default =
  13948. new Router().route;exports.default = _default;
  13949. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  13950. /***/ }),
  13951. /* 55 */
  13952. /*!**********************************************************!*\
  13953. !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
  13954. \**********************************************************/
  13955. /*! no static exports found */
  13956. /***/ (function(module, exports, __webpack_require__) {
  13957. module.exports = __webpack_require__(/*! regenerator-runtime */ 56);
  13958. /***/ }),
  13959. /* 56 */
  13960. /*!************************************************************!*\
  13961. !*** ./node_modules/regenerator-runtime/runtime-module.js ***!
  13962. \************************************************************/
  13963. /*! no static exports found */
  13964. /***/ (function(module, exports, __webpack_require__) {
  13965. /**
  13966. * Copyright (c) 2014-present, Facebook, Inc.
  13967. *
  13968. * This source code is licensed under the MIT license found in the
  13969. * LICENSE file in the root directory of this source tree.
  13970. */
  13971. // This method of obtaining a reference to the global object needs to be
  13972. // kept identical to the way it is obtained in runtime.js
  13973. var g = (function() {
  13974. return this || (typeof self === "object" && self);
  13975. })() || Function("return this")();
  13976. // Use `getOwnPropertyNames` because not all browsers support calling
  13977. // `hasOwnProperty` on the global `self` object in a worker. See #183.
  13978. var hadRuntime = g.regeneratorRuntime &&
  13979. Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
  13980. // Save the old regeneratorRuntime in case it needs to be restored later.
  13981. var oldRuntime = hadRuntime && g.regeneratorRuntime;
  13982. // Force reevalutation of runtime.js.
  13983. g.regeneratorRuntime = undefined;
  13984. module.exports = __webpack_require__(/*! ./runtime */ 57);
  13985. if (hadRuntime) {
  13986. // Restore the original runtime.
  13987. g.regeneratorRuntime = oldRuntime;
  13988. } else {
  13989. // Remove the global property added by runtime.js.
  13990. try {
  13991. delete g.regeneratorRuntime;
  13992. } catch(e) {
  13993. g.regeneratorRuntime = undefined;
  13994. }
  13995. }
  13996. /***/ }),
  13997. /* 57 */
  13998. /*!*****************************************************!*\
  13999. !*** ./node_modules/regenerator-runtime/runtime.js ***!
  14000. \*****************************************************/
  14001. /*! no static exports found */
  14002. /***/ (function(module, exports) {
  14003. /**
  14004. * Copyright (c) 2014-present, Facebook, Inc.
  14005. *
  14006. * This source code is licensed under the MIT license found in the
  14007. * LICENSE file in the root directory of this source tree.
  14008. */
  14009. !(function(global) {
  14010. "use strict";
  14011. var Op = Object.prototype;
  14012. var hasOwn = Op.hasOwnProperty;
  14013. var undefined; // More compressible than void 0.
  14014. var $Symbol = typeof Symbol === "function" ? Symbol : {};
  14015. var iteratorSymbol = $Symbol.iterator || "@@iterator";
  14016. var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  14017. var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  14018. var inModule = typeof module === "object";
  14019. var runtime = global.regeneratorRuntime;
  14020. if (runtime) {
  14021. if (inModule) {
  14022. // If regeneratorRuntime is defined globally and we're in a module,
  14023. // make the exports object identical to regeneratorRuntime.
  14024. module.exports = runtime;
  14025. }
  14026. // Don't bother evaluating the rest of this file if the runtime was
  14027. // already defined globally.
  14028. return;
  14029. }
  14030. // Define the runtime globally (as expected by generated code) as either
  14031. // module.exports (if we're in a module) or a new, empty object.
  14032. runtime = global.regeneratorRuntime = inModule ? module.exports : {};
  14033. function wrap(innerFn, outerFn, self, tryLocsList) {
  14034. // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
  14035. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
  14036. var generator = Object.create(protoGenerator.prototype);
  14037. var context = new Context(tryLocsList || []);
  14038. // The ._invoke method unifies the implementations of the .next,
  14039. // .throw, and .return methods.
  14040. generator._invoke = makeInvokeMethod(innerFn, self, context);
  14041. return generator;
  14042. }
  14043. runtime.wrap = wrap;
  14044. // Try/catch helper to minimize deoptimizations. Returns a completion
  14045. // record like context.tryEntries[i].completion. This interface could
  14046. // have been (and was previously) designed to take a closure to be
  14047. // invoked without arguments, but in all the cases we care about we
  14048. // already have an existing method we want to call, so there's no need
  14049. // to create a new function object. We can even get away with assuming
  14050. // the method takes exactly one argument, since that happens to be true
  14051. // in every case, so we don't have to touch the arguments object. The
  14052. // only additional allocation required is the completion record, which
  14053. // has a stable shape and so hopefully should be cheap to allocate.
  14054. function tryCatch(fn, obj, arg) {
  14055. try {
  14056. return { type: "normal", arg: fn.call(obj, arg) };
  14057. } catch (err) {
  14058. return { type: "throw", arg: err };
  14059. }
  14060. }
  14061. var GenStateSuspendedStart = "suspendedStart";
  14062. var GenStateSuspendedYield = "suspendedYield";
  14063. var GenStateExecuting = "executing";
  14064. var GenStateCompleted = "completed";
  14065. // Returning this object from the innerFn has the same effect as
  14066. // breaking out of the dispatch switch statement.
  14067. var ContinueSentinel = {};
  14068. // Dummy constructor functions that we use as the .constructor and
  14069. // .constructor.prototype properties for functions that return Generator
  14070. // objects. For full spec compliance, you may wish to configure your
  14071. // minifier not to mangle the names of these two functions.
  14072. function Generator() {}
  14073. function GeneratorFunction() {}
  14074. function GeneratorFunctionPrototype() {}
  14075. // This is a polyfill for %IteratorPrototype% for environments that
  14076. // don't natively support it.
  14077. var IteratorPrototype = {};
  14078. IteratorPrototype[iteratorSymbol] = function () {
  14079. return this;
  14080. };
  14081. var getProto = Object.getPrototypeOf;
  14082. var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  14083. if (NativeIteratorPrototype &&
  14084. NativeIteratorPrototype !== Op &&
  14085. hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
  14086. // This environment has a native %IteratorPrototype%; use it instead
  14087. // of the polyfill.
  14088. IteratorPrototype = NativeIteratorPrototype;
  14089. }
  14090. var Gp = GeneratorFunctionPrototype.prototype =
  14091. Generator.prototype = Object.create(IteratorPrototype);
  14092. GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  14093. GeneratorFunctionPrototype.constructor = GeneratorFunction;
  14094. GeneratorFunctionPrototype[toStringTagSymbol] =
  14095. GeneratorFunction.displayName = "GeneratorFunction";
  14096. // Helper for defining the .next, .throw, and .return methods of the
  14097. // Iterator interface in terms of a single ._invoke method.
  14098. function defineIteratorMethods(prototype) {
  14099. ["next", "throw", "return"].forEach(function(method) {
  14100. prototype[method] = function(arg) {
  14101. return this._invoke(method, arg);
  14102. };
  14103. });
  14104. }
  14105. runtime.isGeneratorFunction = function(genFun) {
  14106. var ctor = typeof genFun === "function" && genFun.constructor;
  14107. return ctor
  14108. ? ctor === GeneratorFunction ||
  14109. // For the native GeneratorFunction constructor, the best we can
  14110. // do is to check its .name property.
  14111. (ctor.displayName || ctor.name) === "GeneratorFunction"
  14112. : false;
  14113. };
  14114. runtime.mark = function(genFun) {
  14115. if (Object.setPrototypeOf) {
  14116. Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
  14117. } else {
  14118. genFun.__proto__ = GeneratorFunctionPrototype;
  14119. if (!(toStringTagSymbol in genFun)) {
  14120. genFun[toStringTagSymbol] = "GeneratorFunction";
  14121. }
  14122. }
  14123. genFun.prototype = Object.create(Gp);
  14124. return genFun;
  14125. };
  14126. // Within the body of any async function, `await x` is transformed to
  14127. // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  14128. // `hasOwn.call(value, "__await")` to determine if the yielded value is
  14129. // meant to be awaited.
  14130. runtime.awrap = function(arg) {
  14131. return { __await: arg };
  14132. };
  14133. function AsyncIterator(generator) {
  14134. function invoke(method, arg, resolve, reject) {
  14135. var record = tryCatch(generator[method], generator, arg);
  14136. if (record.type === "throw") {
  14137. reject(record.arg);
  14138. } else {
  14139. var result = record.arg;
  14140. var value = result.value;
  14141. if (value &&
  14142. typeof value === "object" &&
  14143. hasOwn.call(value, "__await")) {
  14144. return Promise.resolve(value.__await).then(function(value) {
  14145. invoke("next", value, resolve, reject);
  14146. }, function(err) {
  14147. invoke("throw", err, resolve, reject);
  14148. });
  14149. }
  14150. return Promise.resolve(value).then(function(unwrapped) {
  14151. // When a yielded Promise is resolved, its final value becomes
  14152. // the .value of the Promise<{value,done}> result for the
  14153. // current iteration.
  14154. result.value = unwrapped;
  14155. resolve(result);
  14156. }, function(error) {
  14157. // If a rejected Promise was yielded, throw the rejection back
  14158. // into the async generator function so it can be handled there.
  14159. return invoke("throw", error, resolve, reject);
  14160. });
  14161. }
  14162. }
  14163. var previousPromise;
  14164. function enqueue(method, arg) {
  14165. function callInvokeWithMethodAndArg() {
  14166. return new Promise(function(resolve, reject) {
  14167. invoke(method, arg, resolve, reject);
  14168. });
  14169. }
  14170. return previousPromise =
  14171. // If enqueue has been called before, then we want to wait until
  14172. // all previous Promises have been resolved before calling invoke,
  14173. // so that results are always delivered in the correct order. If
  14174. // enqueue has not been called before, then it is important to
  14175. // call invoke immediately, without waiting on a callback to fire,
  14176. // so that the async generator function has the opportunity to do
  14177. // any necessary setup in a predictable way. This predictability
  14178. // is why the Promise constructor synchronously invokes its
  14179. // executor callback, and why async functions synchronously
  14180. // execute code before the first await. Since we implement simple
  14181. // async functions in terms of async generators, it is especially
  14182. // important to get this right, even though it requires care.
  14183. previousPromise ? previousPromise.then(
  14184. callInvokeWithMethodAndArg,
  14185. // Avoid propagating failures to Promises returned by later
  14186. // invocations of the iterator.
  14187. callInvokeWithMethodAndArg
  14188. ) : callInvokeWithMethodAndArg();
  14189. }
  14190. // Define the unified helper method that is used to implement .next,
  14191. // .throw, and .return (see defineIteratorMethods).
  14192. this._invoke = enqueue;
  14193. }
  14194. defineIteratorMethods(AsyncIterator.prototype);
  14195. AsyncIterator.prototype[asyncIteratorSymbol] = function () {
  14196. return this;
  14197. };
  14198. runtime.AsyncIterator = AsyncIterator;
  14199. // Note that simple async functions are implemented on top of
  14200. // AsyncIterator objects; they just return a Promise for the value of
  14201. // the final result produced by the iterator.
  14202. runtime.async = function(innerFn, outerFn, self, tryLocsList) {
  14203. var iter = new AsyncIterator(
  14204. wrap(innerFn, outerFn, self, tryLocsList)
  14205. );
  14206. return runtime.isGeneratorFunction(outerFn)
  14207. ? iter // If outerFn is a generator, return the full iterator.
  14208. : iter.next().then(function(result) {
  14209. return result.done ? result.value : iter.next();
  14210. });
  14211. };
  14212. function makeInvokeMethod(innerFn, self, context) {
  14213. var state = GenStateSuspendedStart;
  14214. return function invoke(method, arg) {
  14215. if (state === GenStateExecuting) {
  14216. throw new Error("Generator is already running");
  14217. }
  14218. if (state === GenStateCompleted) {
  14219. if (method === "throw") {
  14220. throw arg;
  14221. }
  14222. // Be forgiving, per 25.3.3.3.3 of the spec:
  14223. // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
  14224. return doneResult();
  14225. }
  14226. context.method = method;
  14227. context.arg = arg;
  14228. while (true) {
  14229. var delegate = context.delegate;
  14230. if (delegate) {
  14231. var delegateResult = maybeInvokeDelegate(delegate, context);
  14232. if (delegateResult) {
  14233. if (delegateResult === ContinueSentinel) continue;
  14234. return delegateResult;
  14235. }
  14236. }
  14237. if (context.method === "next") {
  14238. // Setting context._sent for legacy support of Babel's
  14239. // function.sent implementation.
  14240. context.sent = context._sent = context.arg;
  14241. } else if (context.method === "throw") {
  14242. if (state === GenStateSuspendedStart) {
  14243. state = GenStateCompleted;
  14244. throw context.arg;
  14245. }
  14246. context.dispatchException(context.arg);
  14247. } else if (context.method === "return") {
  14248. context.abrupt("return", context.arg);
  14249. }
  14250. state = GenStateExecuting;
  14251. var record = tryCatch(innerFn, self, context);
  14252. if (record.type === "normal") {
  14253. // If an exception is thrown from innerFn, we leave state ===
  14254. // GenStateExecuting and loop back for another invocation.
  14255. state = context.done
  14256. ? GenStateCompleted
  14257. : GenStateSuspendedYield;
  14258. if (record.arg === ContinueSentinel) {
  14259. continue;
  14260. }
  14261. return {
  14262. value: record.arg,
  14263. done: context.done
  14264. };
  14265. } else if (record.type === "throw") {
  14266. state = GenStateCompleted;
  14267. // Dispatch the exception by looping back around to the
  14268. // context.dispatchException(context.arg) call above.
  14269. context.method = "throw";
  14270. context.arg = record.arg;
  14271. }
  14272. }
  14273. };
  14274. }
  14275. // Call delegate.iterator[context.method](context.arg) and handle the
  14276. // result, either by returning a { value, done } result from the
  14277. // delegate iterator, or by modifying context.method and context.arg,
  14278. // setting context.delegate to null, and returning the ContinueSentinel.
  14279. function maybeInvokeDelegate(delegate, context) {
  14280. var method = delegate.iterator[context.method];
  14281. if (method === undefined) {
  14282. // A .throw or .return when the delegate iterator has no .throw
  14283. // method always terminates the yield* loop.
  14284. context.delegate = null;
  14285. if (context.method === "throw") {
  14286. if (delegate.iterator.return) {
  14287. // If the delegate iterator has a return method, give it a
  14288. // chance to clean up.
  14289. context.method = "return";
  14290. context.arg = undefined;
  14291. maybeInvokeDelegate(delegate, context);
  14292. if (context.method === "throw") {
  14293. // If maybeInvokeDelegate(context) changed context.method from
  14294. // "return" to "throw", let that override the TypeError below.
  14295. return ContinueSentinel;
  14296. }
  14297. }
  14298. context.method = "throw";
  14299. context.arg = new TypeError(
  14300. "The iterator does not provide a 'throw' method");
  14301. }
  14302. return ContinueSentinel;
  14303. }
  14304. var record = tryCatch(method, delegate.iterator, context.arg);
  14305. if (record.type === "throw") {
  14306. context.method = "throw";
  14307. context.arg = record.arg;
  14308. context.delegate = null;
  14309. return ContinueSentinel;
  14310. }
  14311. var info = record.arg;
  14312. if (! info) {
  14313. context.method = "throw";
  14314. context.arg = new TypeError("iterator result is not an object");
  14315. context.delegate = null;
  14316. return ContinueSentinel;
  14317. }
  14318. if (info.done) {
  14319. // Assign the result of the finished delegate to the temporary
  14320. // variable specified by delegate.resultName (see delegateYield).
  14321. context[delegate.resultName] = info.value;
  14322. // Resume execution at the desired location (see delegateYield).
  14323. context.next = delegate.nextLoc;
  14324. // If context.method was "throw" but the delegate handled the
  14325. // exception, let the outer generator proceed normally. If
  14326. // context.method was "next", forget context.arg since it has been
  14327. // "consumed" by the delegate iterator. If context.method was
  14328. // "return", allow the original .return call to continue in the
  14329. // outer generator.
  14330. if (context.method !== "return") {
  14331. context.method = "next";
  14332. context.arg = undefined;
  14333. }
  14334. } else {
  14335. // Re-yield the result returned by the delegate method.
  14336. return info;
  14337. }
  14338. // The delegate iterator is finished, so forget it and continue with
  14339. // the outer generator.
  14340. context.delegate = null;
  14341. return ContinueSentinel;
  14342. }
  14343. // Define Generator.prototype.{next,throw,return} in terms of the
  14344. // unified ._invoke helper method.
  14345. defineIteratorMethods(Gp);
  14346. Gp[toStringTagSymbol] = "Generator";
  14347. // A Generator should always return itself as the iterator object when the
  14348. // @@iterator function is called on it. Some browsers' implementations of the
  14349. // iterator prototype chain incorrectly implement this, causing the Generator
  14350. // object to not be returned from this call. This ensures that doesn't happen.
  14351. // See https://github.com/facebook/regenerator/issues/274 for more details.
  14352. Gp[iteratorSymbol] = function() {
  14353. return this;
  14354. };
  14355. Gp.toString = function() {
  14356. return "[object Generator]";
  14357. };
  14358. function pushTryEntry(locs) {
  14359. var entry = { tryLoc: locs[0] };
  14360. if (1 in locs) {
  14361. entry.catchLoc = locs[1];
  14362. }
  14363. if (2 in locs) {
  14364. entry.finallyLoc = locs[2];
  14365. entry.afterLoc = locs[3];
  14366. }
  14367. this.tryEntries.push(entry);
  14368. }
  14369. function resetTryEntry(entry) {
  14370. var record = entry.completion || {};
  14371. record.type = "normal";
  14372. delete record.arg;
  14373. entry.completion = record;
  14374. }
  14375. function Context(tryLocsList) {
  14376. // The root entry object (effectively a try statement without a catch
  14377. // or a finally block) gives us a place to store values thrown from
  14378. // locations where there is no enclosing try statement.
  14379. this.tryEntries = [{ tryLoc: "root" }];
  14380. tryLocsList.forEach(pushTryEntry, this);
  14381. this.reset(true);
  14382. }
  14383. runtime.keys = function(object) {
  14384. var keys = [];
  14385. for (var key in object) {
  14386. keys.push(key);
  14387. }
  14388. keys.reverse();
  14389. // Rather than returning an object with a next method, we keep
  14390. // things simple and return the next function itself.
  14391. return function next() {
  14392. while (keys.length) {
  14393. var key = keys.pop();
  14394. if (key in object) {
  14395. next.value = key;
  14396. next.done = false;
  14397. return next;
  14398. }
  14399. }
  14400. // To avoid creating an additional object, we just hang the .value
  14401. // and .done properties off the next function object itself. This
  14402. // also ensures that the minifier will not anonymize the function.
  14403. next.done = true;
  14404. return next;
  14405. };
  14406. };
  14407. function values(iterable) {
  14408. if (iterable) {
  14409. var iteratorMethod = iterable[iteratorSymbol];
  14410. if (iteratorMethod) {
  14411. return iteratorMethod.call(iterable);
  14412. }
  14413. if (typeof iterable.next === "function") {
  14414. return iterable;
  14415. }
  14416. if (!isNaN(iterable.length)) {
  14417. var i = -1, next = function next() {
  14418. while (++i < iterable.length) {
  14419. if (hasOwn.call(iterable, i)) {
  14420. next.value = iterable[i];
  14421. next.done = false;
  14422. return next;
  14423. }
  14424. }
  14425. next.value = undefined;
  14426. next.done = true;
  14427. return next;
  14428. };
  14429. return next.next = next;
  14430. }
  14431. }
  14432. // Return an iterator with no values.
  14433. return { next: doneResult };
  14434. }
  14435. runtime.values = values;
  14436. function doneResult() {
  14437. return { value: undefined, done: true };
  14438. }
  14439. Context.prototype = {
  14440. constructor: Context,
  14441. reset: function(skipTempReset) {
  14442. this.prev = 0;
  14443. this.next = 0;
  14444. // Resetting context._sent for legacy support of Babel's
  14445. // function.sent implementation.
  14446. this.sent = this._sent = undefined;
  14447. this.done = false;
  14448. this.delegate = null;
  14449. this.method = "next";
  14450. this.arg = undefined;
  14451. this.tryEntries.forEach(resetTryEntry);
  14452. if (!skipTempReset) {
  14453. for (var name in this) {
  14454. // Not sure about the optimal order of these conditions:
  14455. if (name.charAt(0) === "t" &&
  14456. hasOwn.call(this, name) &&
  14457. !isNaN(+name.slice(1))) {
  14458. this[name] = undefined;
  14459. }
  14460. }
  14461. }
  14462. },
  14463. stop: function() {
  14464. this.done = true;
  14465. var rootEntry = this.tryEntries[0];
  14466. var rootRecord = rootEntry.completion;
  14467. if (rootRecord.type === "throw") {
  14468. throw rootRecord.arg;
  14469. }
  14470. return this.rval;
  14471. },
  14472. dispatchException: function(exception) {
  14473. if (this.done) {
  14474. throw exception;
  14475. }
  14476. var context = this;
  14477. function handle(loc, caught) {
  14478. record.type = "throw";
  14479. record.arg = exception;
  14480. context.next = loc;
  14481. if (caught) {
  14482. // If the dispatched exception was caught by a catch block,
  14483. // then let that catch block handle the exception normally.
  14484. context.method = "next";
  14485. context.arg = undefined;
  14486. }
  14487. return !! caught;
  14488. }
  14489. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  14490. var entry = this.tryEntries[i];
  14491. var record = entry.completion;
  14492. if (entry.tryLoc === "root") {
  14493. // Exception thrown outside of any try block that could handle
  14494. // it, so set the completion value of the entire function to
  14495. // throw the exception.
  14496. return handle("end");
  14497. }
  14498. if (entry.tryLoc <= this.prev) {
  14499. var hasCatch = hasOwn.call(entry, "catchLoc");
  14500. var hasFinally = hasOwn.call(entry, "finallyLoc");
  14501. if (hasCatch && hasFinally) {
  14502. if (this.prev < entry.catchLoc) {
  14503. return handle(entry.catchLoc, true);
  14504. } else if (this.prev < entry.finallyLoc) {
  14505. return handle(entry.finallyLoc);
  14506. }
  14507. } else if (hasCatch) {
  14508. if (this.prev < entry.catchLoc) {
  14509. return handle(entry.catchLoc, true);
  14510. }
  14511. } else if (hasFinally) {
  14512. if (this.prev < entry.finallyLoc) {
  14513. return handle(entry.finallyLoc);
  14514. }
  14515. } else {
  14516. throw new Error("try statement without catch or finally");
  14517. }
  14518. }
  14519. }
  14520. },
  14521. abrupt: function(type, arg) {
  14522. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  14523. var entry = this.tryEntries[i];
  14524. if (entry.tryLoc <= this.prev &&
  14525. hasOwn.call(entry, "finallyLoc") &&
  14526. this.prev < entry.finallyLoc) {
  14527. var finallyEntry = entry;
  14528. break;
  14529. }
  14530. }
  14531. if (finallyEntry &&
  14532. (type === "break" ||
  14533. type === "continue") &&
  14534. finallyEntry.tryLoc <= arg &&
  14535. arg <= finallyEntry.finallyLoc) {
  14536. // Ignore the finally entry if control is not jumping to a
  14537. // location outside the try/catch block.
  14538. finallyEntry = null;
  14539. }
  14540. var record = finallyEntry ? finallyEntry.completion : {};
  14541. record.type = type;
  14542. record.arg = arg;
  14543. if (finallyEntry) {
  14544. this.method = "next";
  14545. this.next = finallyEntry.finallyLoc;
  14546. return ContinueSentinel;
  14547. }
  14548. return this.complete(record);
  14549. },
  14550. complete: function(record, afterLoc) {
  14551. if (record.type === "throw") {
  14552. throw record.arg;
  14553. }
  14554. if (record.type === "break" ||
  14555. record.type === "continue") {
  14556. this.next = record.arg;
  14557. } else if (record.type === "return") {
  14558. this.rval = this.arg = record.arg;
  14559. this.method = "return";
  14560. this.next = "end";
  14561. } else if (record.type === "normal" && afterLoc) {
  14562. this.next = afterLoc;
  14563. }
  14564. return ContinueSentinel;
  14565. },
  14566. finish: function(finallyLoc) {
  14567. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  14568. var entry = this.tryEntries[i];
  14569. if (entry.finallyLoc === finallyLoc) {
  14570. this.complete(entry.completion, entry.afterLoc);
  14571. resetTryEntry(entry);
  14572. return ContinueSentinel;
  14573. }
  14574. }
  14575. },
  14576. "catch": function(tryLoc) {
  14577. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  14578. var entry = this.tryEntries[i];
  14579. if (entry.tryLoc === tryLoc) {
  14580. var record = entry.completion;
  14581. if (record.type === "throw") {
  14582. var thrown = record.arg;
  14583. resetTryEntry(entry);
  14584. }
  14585. return thrown;
  14586. }
  14587. }
  14588. // The context.catch method must only be called with a location
  14589. // argument that corresponds to a known catch block.
  14590. throw new Error("illegal catch attempt");
  14591. },
  14592. delegateYield: function(iterable, resultName, nextLoc) {
  14593. this.delegate = {
  14594. iterator: values(iterable),
  14595. resultName: resultName,
  14596. nextLoc: nextLoc
  14597. };
  14598. if (this.method === "next") {
  14599. // Deliberately forget the last sent value so that we don't
  14600. // accidentally pass it on to the delegate.
  14601. this.arg = undefined;
  14602. }
  14603. return ContinueSentinel;
  14604. }
  14605. };
  14606. })(
  14607. // In sloppy mode, unbound `this` refers to the global object, fallback to
  14608. // Function constructor if we're in global strict mode. That is sadly a form
  14609. // of indirect eval which violates Content Security Policy.
  14610. (function() {
  14611. return this || (typeof self === "object" && self);
  14612. })() || Function("return this")()
  14613. );
  14614. /***/ }),
  14615. /* 58 */
  14616. /*!***********************************************************************************************!*\
  14617. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  14618. \***********************************************************************************************/
  14619. /*! no static exports found */
  14620. /***/ (function(module, exports, __webpack_require__) {
  14621. "use strict";
  14622. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  14623. * 求两个颜色之间的渐变值
  14624. * @param {string} startColor 开始的颜色
  14625. * @param {string} endColor 结束的颜色
  14626. * @param {number} step 颜色等分的份额
  14627. * */
  14628. function colorGradient() {var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  14629. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  14630. var startR = startRGB[0];
  14631. var startG = startRGB[1];
  14632. var startB = startRGB[2];
  14633. var endRGB = hexToRgb(endColor, false);
  14634. var endR = endRGB[0];
  14635. var endG = endRGB[1];
  14636. var endB = endRGB[2];
  14637. var sR = (endR - startR) / step; // 总差值
  14638. var sG = (endG - startG) / step;
  14639. var sB = (endB - startB) / step;
  14640. var colorArr = [];
  14641. for (var i = 0; i < step; i++) {
  14642. // 计算每一步的hex值
  14643. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB *
  14644. i + startB), ")"));
  14645. // 确保第一个颜色值为startColor的值
  14646. if (i === 0) hex = rgbToHex(startColor);
  14647. // 确保最后一个颜色值为endColor的值
  14648. if (i === step - 1) hex = rgbToHex(endColor);
  14649. colorArr.push(hex);
  14650. }
  14651. return colorArr;
  14652. }
  14653. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  14654. function hexToRgb(sColor) {var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  14655. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  14656. sColor = String(sColor).toLowerCase();
  14657. if (sColor && reg.test(sColor)) {
  14658. if (sColor.length === 4) {
  14659. var sColorNew = '#';
  14660. for (var i = 1; i < 4; i += 1) {
  14661. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  14662. }
  14663. sColor = sColorNew;
  14664. }
  14665. // 处理六位的颜色值
  14666. var sColorChange = [];
  14667. for (var _i = 1; _i < 7; _i += 2) {
  14668. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  14669. }
  14670. if (!str) {
  14671. return sColorChange;
  14672. }
  14673. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  14674. }if (/^(rgb|RGB)/.test(sColor)) {
  14675. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  14676. return arr.map(function (val) {return Number(val);});
  14677. }
  14678. return sColor;
  14679. }
  14680. // 将rgb表示方式转换为hex表示方式
  14681. function rgbToHex(rgb) {
  14682. var _this = rgb;
  14683. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  14684. if (/^(rgb|RGB)/.test(_this)) {
  14685. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  14686. var strHex = '#';
  14687. for (var i = 0; i < aColor.length; i++) {
  14688. var hex = Number(aColor[i]).toString(16);
  14689. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  14690. if (hex === '0') {
  14691. hex += hex;
  14692. }
  14693. strHex += hex;
  14694. }
  14695. if (strHex.length !== 7) {
  14696. strHex = _this;
  14697. }
  14698. return strHex;
  14699. }if (reg.test(_this)) {
  14700. var aNum = _this.replace(/#/, '').split('');
  14701. if (aNum.length === 6) {
  14702. return _this;
  14703. }if (aNum.length === 3) {
  14704. var numHex = '#';
  14705. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  14706. numHex += aNum[_i2] + aNum[_i2];
  14707. }
  14708. return numHex;
  14709. }
  14710. } else {
  14711. return _this;
  14712. }
  14713. }
  14714. /**
  14715. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  14716. * sHex为传入的十六进制的色值
  14717. * alpha为rgba的透明度
  14718. */
  14719. function colorToRgba(color, alpha) {
  14720. color = rgbToHex(color);
  14721. // 十六进制颜色值的正则表达式
  14722. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  14723. /* 16进制颜色转为RGB格式 */
  14724. var sColor = String(color).toLowerCase();
  14725. if (sColor && reg.test(sColor)) {
  14726. if (sColor.length === 4) {
  14727. var sColorNew = '#';
  14728. for (var i = 1; i < 4; i += 1) {
  14729. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  14730. }
  14731. sColor = sColorNew;
  14732. }
  14733. // 处理六位的颜色值
  14734. var sColorChange = [];
  14735. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  14736. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  14737. }
  14738. // return sColorChange.join(',')
  14739. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  14740. }
  14741. return sColor;
  14742. }var _default =
  14743. {
  14744. colorGradient: colorGradient,
  14745. hexToRgb: hexToRgb,
  14746. rgbToHex: rgbToHex,
  14747. colorToRgba: colorToRgba };exports.default = _default;
  14748. /***/ }),
  14749. /* 59 */
  14750. /*!**************************************************************************************!*\
  14751. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/function/test.js ***!
  14752. \**************************************************************************************/
  14753. /*! no static exports found */
  14754. /***/ (function(module, exports, __webpack_require__) {
  14755. "use strict";
  14756. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  14757. * 验证电子邮箱格式
  14758. */
  14759. function email(value) {
  14760. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  14761. }
  14762. /**
  14763. * 验证手机格式
  14764. */
  14765. function mobile(value) {
  14766. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  14767. }
  14768. /**
  14769. * 验证URL格式
  14770. */
  14771. function url(value) {
  14772. return /^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.
  14773. test(value);
  14774. }
  14775. /**
  14776. * 验证日期格式
  14777. */
  14778. function date(value) {
  14779. if (!value) return false;
  14780. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  14781. if (number(value)) value = +value;
  14782. return !/Invalid|NaN/.test(new Date(value).toString());
  14783. }
  14784. /**
  14785. * 验证ISO类型的日期格式
  14786. */
  14787. function dateISO(value) {
  14788. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  14789. }
  14790. /**
  14791. * 验证十进制数字
  14792. */
  14793. function number(value) {
  14794. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  14795. }
  14796. /**
  14797. * 验证字符串
  14798. */
  14799. function string(value) {
  14800. return typeof value === 'string';
  14801. }
  14802. /**
  14803. * 验证整数
  14804. */
  14805. function digits(value) {
  14806. return /^\d+$/.test(value);
  14807. }
  14808. /**
  14809. * 验证身份证号码
  14810. */
  14811. function idCard(value) {
  14812. return /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(
  14813. value);
  14814. }
  14815. /**
  14816. * 是否车牌号
  14817. */
  14818. function carNo(value) {
  14819. // 新能源车牌
  14820. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  14821. // 旧车牌
  14822. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  14823. if (value.length === 7) {
  14824. return creg.test(value);
  14825. }if (value.length === 8) {
  14826. return xreg.test(value);
  14827. }
  14828. return false;
  14829. }
  14830. /**
  14831. * 金额,只允许2位小数
  14832. */
  14833. function amount(value) {
  14834. // 金额,只允许保留两位小数
  14835. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  14836. }
  14837. /**
  14838. * 中文
  14839. */
  14840. function chinese(value) {
  14841. var reg = /^[\u4e00-\u9fa5]+$/gi;
  14842. return reg.test(value);
  14843. }
  14844. /**
  14845. * 只能输入字母
  14846. */
  14847. function letter(value) {
  14848. return /^[a-zA-Z]*$/.test(value);
  14849. }
  14850. /**
  14851. * 只能是字母或者数字
  14852. */
  14853. function enOrNum(value) {
  14854. // 英文或者数字
  14855. var reg = /^[0-9a-zA-Z]*$/g;
  14856. return reg.test(value);
  14857. }
  14858. /**
  14859. * 验证是否包含某个值
  14860. */
  14861. function contains(value, param) {
  14862. return value.indexOf(param) >= 0;
  14863. }
  14864. /**
  14865. * 验证一个值范围[min, max]
  14866. */
  14867. function range(value, param) {
  14868. return value >= param[0] && value <= param[1];
  14869. }
  14870. /**
  14871. * 验证一个长度范围[min, max]
  14872. */
  14873. function rangeLength(value, param) {
  14874. return value.length >= param[0] && value.length <= param[1];
  14875. }
  14876. /**
  14877. * 是否固定电话
  14878. */
  14879. function landline(value) {
  14880. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  14881. return reg.test(value);
  14882. }
  14883. /**
  14884. * 判断是否为空
  14885. */
  14886. function empty(value) {
  14887. switch (typeof value) {
  14888. case 'undefined':
  14889. return true;
  14890. case 'string':
  14891. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  14892. break;
  14893. case 'boolean':
  14894. if (!value) return true;
  14895. break;
  14896. case 'number':
  14897. if (value === 0 || isNaN(value)) return true;
  14898. break;
  14899. case 'object':
  14900. if (value === null || value.length === 0) return true;
  14901. for (var i in value) {
  14902. return false;
  14903. }
  14904. return true;}
  14905. return false;
  14906. }
  14907. /**
  14908. * 是否json字符串
  14909. */
  14910. function jsonString(value) {
  14911. if (typeof value === 'string') {
  14912. try {
  14913. var obj = JSON.parse(value);
  14914. if (typeof obj === 'object' && obj) {
  14915. return true;
  14916. }
  14917. return false;
  14918. } catch (e) {
  14919. return false;
  14920. }
  14921. }
  14922. return false;
  14923. }
  14924. /**
  14925. * 是否数组
  14926. */
  14927. function array(value) {
  14928. if (typeof Array.isArray === 'function') {
  14929. return Array.isArray(value);
  14930. }
  14931. return Object.prototype.toString.call(value) === '[object Array]';
  14932. }
  14933. /**
  14934. * 是否对象
  14935. */
  14936. function object(value) {
  14937. return Object.prototype.toString.call(value) === '[object Object]';
  14938. }
  14939. /**
  14940. * 是否短信验证码
  14941. */
  14942. function code(value) {var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  14943. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  14944. }
  14945. /**
  14946. * 是否函数方法
  14947. * @param {Object} value
  14948. */
  14949. function func(value) {
  14950. return typeof value === 'function';
  14951. }
  14952. /**
  14953. * 是否promise对象
  14954. * @param {Object} value
  14955. */
  14956. function promise(value) {
  14957. return object(value) && func(value.then) && func(value.catch);
  14958. }
  14959. /** 是否图片格式
  14960. * @param {Object} value
  14961. */
  14962. function image(value) {
  14963. var newValue = value.split('?')[0];
  14964. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  14965. return IMAGE_REGEXP.test(newValue);
  14966. }
  14967. /**
  14968. * 是否视频格式
  14969. * @param {Object} value
  14970. */
  14971. function video(value) {
  14972. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  14973. return VIDEO_REGEXP.test(value);
  14974. }
  14975. /**
  14976. * 是否为正则对象
  14977. * @param {Object}
  14978. * @return {Boolean}
  14979. */
  14980. function regExp(o) {
  14981. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  14982. }var _default =
  14983. {
  14984. email: email,
  14985. mobile: mobile,
  14986. url: url,
  14987. date: date,
  14988. dateISO: dateISO,
  14989. number: number,
  14990. digits: digits,
  14991. idCard: idCard,
  14992. carNo: carNo,
  14993. amount: amount,
  14994. chinese: chinese,
  14995. letter: letter,
  14996. enOrNum: enOrNum,
  14997. contains: contains,
  14998. range: range,
  14999. rangeLength: rangeLength,
  15000. empty: empty,
  15001. isEmpty: empty,
  15002. jsonString: jsonString,
  15003. landline: landline,
  15004. object: object,
  15005. array: array,
  15006. code: code,
  15007. func: func,
  15008. promise: promise,
  15009. video: video,
  15010. image: image,
  15011. regExp: regExp,
  15012. string: string };exports.default = _default;
  15013. /***/ }),
  15014. /* 60 */
  15015. /*!******************************************************************************************!*\
  15016. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/function/debounce.js ***!
  15017. \******************************************************************************************/
  15018. /*! no static exports found */
  15019. /***/ (function(module, exports, __webpack_require__) {
  15020. "use strict";
  15021. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var timeout = null;
  15022. /**
  15023. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  15024. *
  15025. * @param {Function} func 要执行的回调函数
  15026. * @param {Number} wait 延时的时间
  15027. * @param {Boolean} immediate 是否立即执行
  15028. * @return null
  15029. */
  15030. function debounce(func) {var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  15031. // 清除定时器
  15032. if (timeout !== null) clearTimeout(timeout);
  15033. // 立即执行,此类情况一般用不到
  15034. if (immediate) {
  15035. var callNow = !timeout;
  15036. timeout = setTimeout(function () {
  15037. timeout = null;
  15038. }, wait);
  15039. if (callNow) typeof func === 'function' && func();
  15040. } else {
  15041. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  15042. timeout = setTimeout(function () {
  15043. typeof func === 'function' && func();
  15044. }, wait);
  15045. }
  15046. }var _default =
  15047. debounce;exports.default = _default;
  15048. /***/ }),
  15049. /* 61 */
  15050. /*!******************************************************************************************!*\
  15051. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/function/throttle.js ***!
  15052. \******************************************************************************************/
  15053. /*! no static exports found */
  15054. /***/ (function(module, exports, __webpack_require__) {
  15055. "use strict";
  15056. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var timer;var
  15057. flag;
  15058. /**
  15059. * 节流原理:在一定时间内,只能触发一次
  15060. *
  15061. * @param {Function} func 要执行的回调函数
  15062. * @param {Number} wait 延时的时间
  15063. * @param {Boolean} immediate 是否立即执行
  15064. * @return null
  15065. */
  15066. function throttle(func) {var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  15067. if (immediate) {
  15068. if (!flag) {
  15069. flag = true;
  15070. // 如果是立即执行,则在wait毫秒内开始时执行
  15071. typeof func === 'function' && func();
  15072. timer = setTimeout(function () {
  15073. flag = false;
  15074. }, wait);
  15075. }
  15076. } else if (!flag) {
  15077. flag = true;
  15078. // 如果是非立即执行,则在wait毫秒内的结束处执行
  15079. timer = setTimeout(function () {
  15080. flag = false;
  15081. typeof func === 'function' && func();
  15082. }, wait);
  15083. }
  15084. }var _default =
  15085. throttle;exports.default = _default;
  15086. /***/ }),
  15087. /* 62 */
  15088. /*!***************************************************************************************!*\
  15089. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/function/index.js ***!
  15090. \***************************************************************************************/
  15091. /*! no static exports found */
  15092. /***/ (function(module, exports, __webpack_require__) {
  15093. "use strict";
  15094. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 59));
  15095. var _digit = __webpack_require__(/*! ./digit.js */ 63);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}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;}
  15096. /**
  15097. * @description 如果value小于min,取min;如果value大于max,取max
  15098. * @param {number} min
  15099. * @param {number} max
  15100. * @param {number} value
  15101. */
  15102. function range() {var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  15103. return Math.max(min, Math.min(max, Number(value)));
  15104. }
  15105. /**
  15106. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  15107. * @param {number|string} value 用户传递值的px值
  15108. * @param {boolean} unit
  15109. * @returns {number|string}
  15110. */
  15111. function getPx(value) {var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  15112. if (_test.default.number(value)) {
  15113. return unit ? "".concat(value, "px") : Number(value);
  15114. }
  15115. // 如果带有rpx,先取出其数值部分,再转为px值
  15116. if (/(rpx|upx)$/.test(value)) {
  15117. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  15118. }
  15119. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  15120. }
  15121. /**
  15122. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  15123. * @param {number} value 堵塞时间 单位ms 毫秒
  15124. * @returns {Promise} 返回promise
  15125. */
  15126. function sleep() {var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  15127. return new Promise(function (resolve) {
  15128. setTimeout(function () {
  15129. resolve();
  15130. }, value);
  15131. });
  15132. }
  15133. /**
  15134. * @description 运行期判断平台
  15135. * @returns {string} 返回所在平台(小写)
  15136. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  15137. */
  15138. function os() {
  15139. return uni.getSystemInfoSync().platform.toLowerCase();
  15140. }
  15141. /**
  15142. * @description 获取系统信息同步接口
  15143. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  15144. */
  15145. function sys() {
  15146. return uni.getSystemInfoSync();
  15147. }
  15148. /**
  15149. * @description 取一个区间数
  15150. * @param {Number} min 最小值
  15151. * @param {Number} max 最大值
  15152. */
  15153. function random(min, max) {
  15154. if (min >= 0 && max > 0 && max >= min) {
  15155. var gab = max - min + 1;
  15156. return Math.floor(Math.random() * gab + min);
  15157. }
  15158. return 0;
  15159. }
  15160. /**
  15161. * @param {Number} len uuid的长度
  15162. * @param {Boolean} firstU 将返回的首字母置为"u"
  15163. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  15164. */
  15165. function guid() {var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  15166. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  15167. var uuid = [];
  15168. radix = radix || chars.length;
  15169. if (len) {
  15170. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  15171. for (var i = 0; i < len; i++) {uuid[i] = chars[0 | Math.random() * radix];}
  15172. } else {
  15173. var r;
  15174. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  15175. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  15176. uuid[14] = '4';
  15177. for (var _i = 0; _i < 36; _i++) {
  15178. if (!uuid[_i]) {
  15179. r = 0 | Math.random() * 16;
  15180. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  15181. }
  15182. }
  15183. }
  15184. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  15185. if (firstU) {
  15186. uuid.shift();
  15187. return "u".concat(uuid.join(''));
  15188. }
  15189. return uuid.join('');
  15190. }
  15191. /**
  15192. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  15193. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  15194. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  15195. 值(默认为undefined),就是查找最顶层的$parent
  15196. * @param {string|undefined} name 父组件的参数名
  15197. */
  15198. function $parent() {var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  15199. var parent = this.$parent;
  15200. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  15201. while (parent) {
  15202. // 父组件
  15203. if (parent.$options && parent.$options.name !== name) {
  15204. // 如果组件的name不相等,继续上一级寻找
  15205. parent = parent.$parent;
  15206. } else {
  15207. return parent;
  15208. }
  15209. }
  15210. return false;
  15211. }
  15212. /**
  15213. * @description 样式转换
  15214. * 对象转字符串,或者字符串转对象
  15215. * @param {object | string} customStyle 需要转换的目标
  15216. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  15217. * @returns {object|string}
  15218. */
  15219. function addStyle(customStyle) {var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  15220. // 字符串转字符串,对象转对象情形,直接返回
  15221. if (_test.default.empty(customStyle) || typeof customStyle === 'object' && target === 'object' || target === 'string' &&
  15222. typeof customStyle === 'string') {
  15223. return customStyle;
  15224. }
  15225. // 字符串转对象
  15226. if (target === 'object') {
  15227. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  15228. customStyle = trim(customStyle);
  15229. // 根据";"将字符串转为数组形式
  15230. var styleArray = customStyle.split(';');
  15231. var style = {};
  15232. // 历遍数组,拼接成对象
  15233. for (var i = 0; i < styleArray.length; i++) {
  15234. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  15235. if (styleArray[i]) {
  15236. var item = styleArray[i].split(':');
  15237. style[trim(item[0])] = trim(item[1]);
  15238. }
  15239. }
  15240. return style;
  15241. }
  15242. // 这里为对象转字符串形式
  15243. var string = '';
  15244. for (var _i2 in customStyle) {
  15245. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  15246. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  15247. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  15248. }
  15249. // 去除两端空格
  15250. return trim(string);
  15251. }
  15252. /**
  15253. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  15254. * @param {string|number} value 需要添加单位的值
  15255. * @param {string} unit 添加的单位名 比如px
  15256. */
  15257. function addUnit() {var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (_uni$$u$config$unit = (_uni = uni) === null || _uni === void 0 ? void 0 : (_uni$$u = _uni.$u) === null || _uni$$u === void 0 ? void 0 : (_uni$$u$config = _uni$$u.config) === null || _uni$$u$config === void 0 ? void 0 : _uni$$u$config.unit) !== null && _uni$$u$config$unit !== void 0 ? _uni$$u$config$unit : 'px';
  15258. value = String(value);
  15259. // 用uView内置验证规则中的number判断是否为数值
  15260. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  15261. }
  15262. /**
  15263. * @description 深度克隆
  15264. * @param {object} obj 需要深度克隆的对象
  15265. * @param cache 缓存
  15266. * @returns {*} 克隆后的对象或者原值(不是对象)
  15267. */
  15268. function deepClone(obj) {var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  15269. if (obj === null || typeof obj !== 'object') return obj;
  15270. if (cache.has(obj)) return cache.get(obj);
  15271. var clone;
  15272. if (obj instanceof Date) {
  15273. clone = new Date(obj.getTime());
  15274. } else if (obj instanceof RegExp) {
  15275. clone = new RegExp(obj);
  15276. } else if (obj instanceof Map) {
  15277. clone = new Map(Array.from(obj, function (_ref) {var _ref2 = _slicedToArray(_ref, 2),key = _ref2[0],value = _ref2[1];return [key, deepClone(value, cache)];}));
  15278. } else if (obj instanceof Set) {
  15279. clone = new Set(Array.from(obj, function (value) {return deepClone(value, cache);}));
  15280. } else if (Array.isArray(obj)) {
  15281. clone = obj.map(function (value) {return deepClone(value, cache);});
  15282. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  15283. clone = Object.create(Object.getPrototypeOf(obj));
  15284. cache.set(obj, clone);
  15285. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {var _Object$entries$_i = _slicedToArray(_Object$entries[_i3], 2),key = _Object$entries$_i[0],value = _Object$entries$_i[1];
  15286. clone[key] = deepClone(value, cache);
  15287. }
  15288. } else {
  15289. clone = Object.assign({}, obj);
  15290. }
  15291. cache.set(obj, clone);
  15292. return clone;
  15293. }
  15294. /**
  15295. * @description JS对象深度合并
  15296. * @param {object} target 需要拷贝的对象
  15297. * @param {object} source 拷贝的来源对象
  15298. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  15299. */
  15300. function deepMerge() {var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  15301. target = deepClone(target);
  15302. if (typeof target !== 'object' || target === null || typeof source !== 'object' || source === null) return target;
  15303. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  15304. for (var prop in source) {
  15305. if (!source.hasOwnProperty(prop)) continue;
  15306. var sourceValue = source[prop];
  15307. var targetValue = merged[prop];
  15308. if (sourceValue instanceof Date) {
  15309. merged[prop] = new Date(sourceValue);
  15310. } else if (sourceValue instanceof RegExp) {
  15311. merged[prop] = new RegExp(sourceValue);
  15312. } else if (sourceValue instanceof Map) {
  15313. merged[prop] = new Map(sourceValue);
  15314. } else if (sourceValue instanceof Set) {
  15315. merged[prop] = new Set(sourceValue);
  15316. } else if (typeof sourceValue === 'object' && sourceValue !== null) {
  15317. merged[prop] = deepMerge(targetValue, sourceValue);
  15318. } else {
  15319. merged[prop] = sourceValue;
  15320. }
  15321. }
  15322. return merged;
  15323. }
  15324. /**
  15325. * @description error提示
  15326. * @param {*} err 错误内容
  15327. */
  15328. function error(err) {
  15329. // 开发环境才提示,生产环境不会提示
  15330. if (true) {
  15331. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  15332. }
  15333. }
  15334. /**
  15335. * @description 打乱数组
  15336. * @param {array} array 需要打乱的数组
  15337. * @returns {array} 打乱后的数组
  15338. */
  15339. function randomArray() {var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  15340. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  15341. return array.sort(function () {return Math.random() - 0.5;});
  15342. }
  15343. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  15344. // 所以这里做一个兼容polyfill的兼容处理
  15345. if (!String.prototype.padStart) {
  15346. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  15347. String.prototype.padStart = function (maxLength) {var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  15348. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  15349. throw new TypeError(
  15350. 'fillString must be String');
  15351. }
  15352. var str = this;
  15353. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  15354. if (str.length >= maxLength) return String(str);
  15355. var fillLength = maxLength - str.length;
  15356. var times = Math.ceil(fillLength / fillString.length);
  15357. while (times >>= 1) {
  15358. fillString += fillString;
  15359. if (times === 1) {
  15360. fillString += fillString;
  15361. }
  15362. }
  15363. return fillString.slice(0, fillLength) + str;
  15364. };
  15365. }
  15366. /**
  15367. * @description 格式化时间
  15368. * @param {String|Number} dateTime 需要格式化的时间戳
  15369. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  15370. * @returns {string} 返回格式化后的字符串
  15371. */
  15372. function timeFormat() {var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  15373. var date;
  15374. // 若传入时间为假值,则取当前时间
  15375. if (!dateTime) {
  15376. date = new Date();
  15377. }
  15378. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  15379. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  15380. date = new Date(dateTime * 1000);
  15381. }
  15382. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  15383. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  15384. date = new Date(Number(dateTime));
  15385. }
  15386. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  15387. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  15388. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  15389. date = new Date(dateTime.replace(/-/g, '/'));
  15390. }
  15391. // 其他都认为符合 RFC 2822 规范
  15392. else {
  15393. date = new Date(dateTime);
  15394. }
  15395. var timeSource = {
  15396. 'y': date.getFullYear().toString(), // 年
  15397. 'm': (date.getMonth() + 1).toString().padStart(2, '0'), // 月
  15398. 'd': date.getDate().toString().padStart(2, '0'), // 日
  15399. 'h': date.getHours().toString().padStart(2, '0'), // 时
  15400. 'M': date.getMinutes().toString().padStart(2, '0'), // 分
  15401. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  15402. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  15403. };
  15404. for (var key in timeSource) {var _ref3 =
  15405. new RegExp("".concat(key, "+")).exec(formatStr) || [],_ref4 = _slicedToArray(_ref3, 1),ret = _ref4[0];
  15406. if (ret) {
  15407. // 年可能只需展示两位
  15408. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  15409. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  15410. }
  15411. }
  15412. return formatStr;
  15413. }
  15414. /**
  15415. * @description 时间戳转为多久之前
  15416. * @param {String|Number} timestamp 时间戳
  15417. * @param {String|Boolean} format
  15418. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  15419. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  15420. * @returns {string} 转化后的内容
  15421. */
  15422. function timeFrom() {var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  15423. if (timestamp == null) timestamp = Number(new Date());
  15424. timestamp = parseInt(timestamp);
  15425. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  15426. if (timestamp.toString().length == 10) timestamp *= 1000;
  15427. var timer = new Date().getTime() - timestamp;
  15428. timer = parseInt(timer / 1000);
  15429. // 如果小于5分钟,则返回"刚刚",其他以此类推
  15430. var tips = '';
  15431. switch (true) {
  15432. case timer < 300:
  15433. tips = '刚刚';
  15434. break;
  15435. case timer >= 300 && timer < 3600:
  15436. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  15437. break;
  15438. case timer >= 3600 && timer < 86400:
  15439. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  15440. break;
  15441. case timer >= 86400 && timer < 2592000:
  15442. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  15443. break;
  15444. default:
  15445. // 如果format为false,则无论什么时间戳,都显示xx之前
  15446. if (format === false) {
  15447. if (timer >= 2592000 && timer < 365 * 86400) {
  15448. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  15449. } else {
  15450. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  15451. }
  15452. } else {
  15453. tips = timeFormat(timestamp, format);
  15454. }}
  15455. return tips;
  15456. }
  15457. /**
  15458. * @description 去除空格
  15459. * @param String str 需要去除空格的字符串
  15460. * @param String pos both(左右)|left|right|all 默认both
  15461. */
  15462. function trim(str) {var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  15463. str = String(str);
  15464. if (pos == 'both') {
  15465. return str.replace(/^\s+|\s+$/g, '');
  15466. }
  15467. if (pos == 'left') {
  15468. return str.replace(/^\s*/, '');
  15469. }
  15470. if (pos == 'right') {
  15471. return str.replace(/(\s*$)/g, '');
  15472. }
  15473. if (pos == 'all') {
  15474. return str.replace(/\s+/g, '');
  15475. }
  15476. return str;
  15477. }
  15478. /**
  15479. * @description 对象转url参数
  15480. * @param {object} data,对象
  15481. * @param {Boolean} isPrefix,是否自动加上"?"
  15482. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  15483. */
  15484. function queryParams() {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  15485. var prefix = isPrefix ? '?' : '';
  15486. var _result = [];
  15487. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';var _loop = function _loop(
  15488. key) {
  15489. var value = data[key];
  15490. // 去掉为空的参数
  15491. if (['', undefined, null].indexOf(value) >= 0) {
  15492. return "continue";
  15493. }
  15494. // 如果值为数组,另行处理
  15495. if (value.constructor === Array) {
  15496. // e.g. {ids: [1, 2, 3]}
  15497. switch (arrayFormat) {
  15498. case 'indices':
  15499. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  15500. for (var i = 0; i < value.length; i++) {
  15501. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  15502. }
  15503. break;
  15504. case 'brackets':
  15505. // 结果: ids[]=1&ids[]=2&ids[]=3
  15506. value.forEach(function (_value) {
  15507. _result.push("".concat(key, "[]=").concat(_value));
  15508. });
  15509. break;
  15510. case 'repeat':
  15511. // 结果: ids=1&ids=2&ids=3
  15512. value.forEach(function (_value) {
  15513. _result.push("".concat(key, "=").concat(_value));
  15514. });
  15515. break;
  15516. case 'comma':
  15517. // 结果: ids=1,2,3
  15518. var commaStr = '';
  15519. value.forEach(function (_value) {
  15520. commaStr += (commaStr ? ',' : '') + _value;
  15521. });
  15522. _result.push("".concat(key, "=").concat(commaStr));
  15523. break;
  15524. default:
  15525. value.forEach(function (_value) {
  15526. _result.push("".concat(key, "[]=").concat(_value));
  15527. });}
  15528. } else {
  15529. _result.push("".concat(key, "=").concat(value));
  15530. }};for (var key in data) {var _ret = _loop(key);if (_ret === "continue") continue;
  15531. }
  15532. return _result.length ? prefix + _result.join('&') : '';
  15533. }
  15534. /**
  15535. * 显示消息提示框
  15536. * @param {String} title 提示的内容,长度与 icon 取值有关。
  15537. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  15538. */
  15539. function toast(title) {var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  15540. uni.showToast({
  15541. title: String(title),
  15542. icon: 'none',
  15543. duration: duration });
  15544. }
  15545. /**
  15546. * @description 根据主题type值,获取对应的图标
  15547. * @param {String} type 主题名称,primary|info|error|warning|success
  15548. * @param {boolean} fill 是否使用fill填充实体的图标
  15549. */
  15550. function type2icon() {var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  15551. // 如果非预置值,默认为success
  15552. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  15553. var iconName = '';
  15554. // 目前(2019-12-12),info和primary使用同一个图标
  15555. switch (type) {
  15556. case 'primary':
  15557. iconName = 'info-circle';
  15558. break;
  15559. case 'info':
  15560. iconName = 'info-circle';
  15561. break;
  15562. case 'error':
  15563. iconName = 'close-circle';
  15564. break;
  15565. case 'warning':
  15566. iconName = 'error-circle';
  15567. break;
  15568. case 'success':
  15569. iconName = 'checkmark-circle';
  15570. break;
  15571. default:
  15572. iconName = 'checkmark-circle';}
  15573. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  15574. if (fill) iconName += '-fill';
  15575. return iconName;
  15576. }
  15577. /**
  15578. * @description 数字格式化
  15579. * @param {number|string} number 要格式化的数字
  15580. * @param {number} decimals 保留几位小数
  15581. * @param {string} decimalPoint 小数点符号
  15582. * @param {string} thousandsSeparator 千分位符号
  15583. * @returns {string} 格式化后的数字
  15584. */
  15585. function priceFormat(number) {var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  15586. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  15587. var n = !isFinite(+number) ? 0 : +number;
  15588. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  15589. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  15590. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  15591. var s = '';
  15592. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  15593. var re = /(-?\d+)(\d{3})/;
  15594. while (re.test(s[0])) {
  15595. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  15596. }
  15597. if ((s[1] || '').length < prec) {
  15598. s[1] = s[1] || '';
  15599. s[1] += new Array(prec - s[1].length + 1).join('0');
  15600. }
  15601. return s.join(dec);
  15602. }
  15603. /**
  15604. * @description 获取duration值
  15605. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  15606. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  15607. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  15608. * @param {boolean} unit 提示: 如果是false 默认返回number
  15609. * @return {string|number}
  15610. */
  15611. function getDuration(value) {var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  15612. var valueNum = parseInt(value);
  15613. if (unit) {
  15614. if (/s$/.test(value)) return value;
  15615. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  15616. }
  15617. if (/ms$/.test(value)) return valueNum;
  15618. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  15619. return valueNum;
  15620. }
  15621. /**
  15622. * @description 日期的月或日补零操作
  15623. * @param {String} value 需要补零的值
  15624. */
  15625. function padZero(value) {
  15626. return "00".concat(value).slice(-2);
  15627. }
  15628. /**
  15629. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  15630. * @param {*} instance
  15631. * @param {*} event
  15632. */
  15633. function formValidate(instance, event) {
  15634. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  15635. var form = uni.$u.$parent.call(instance, 'u-form');
  15636. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  15637. // 同时将form-item的pros传递给form,让其进行精确对象验证
  15638. if (formItem && form) {
  15639. form.validateField(formItem.prop, function () {}, event);
  15640. }
  15641. }
  15642. /**
  15643. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  15644. * @param {object} obj 对象
  15645. * @param {string} key 需要获取的属性字段
  15646. * @returns {*}
  15647. */
  15648. function getProperty(obj, key) {
  15649. if (!obj) {
  15650. return;
  15651. }
  15652. if (typeof key !== 'string' || key === '') {
  15653. return '';
  15654. }
  15655. if (key.indexOf('.') !== -1) {
  15656. var keys = key.split('.');
  15657. var firstObj = obj[keys[0]] || {};
  15658. for (var i = 1; i < keys.length; i++) {
  15659. if (firstObj) {
  15660. firstObj = firstObj[keys[i]];
  15661. }
  15662. }
  15663. return firstObj;
  15664. }
  15665. return obj[key];
  15666. }
  15667. /**
  15668. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  15669. * @param {object} obj 对象
  15670. * @param {string} key 需要设置的属性
  15671. * @param {string} value 设置的值
  15672. */
  15673. function setProperty(obj, key, value) {
  15674. if (!obj) {
  15675. return;
  15676. }
  15677. // 递归赋值
  15678. var inFn = function inFn(_obj, keys, v) {
  15679. // 最后一个属性key
  15680. if (keys.length === 1) {
  15681. _obj[keys[0]] = v;
  15682. return;
  15683. }
  15684. // 0~length-1个key
  15685. while (keys.length > 1) {
  15686. var k = keys[0];
  15687. if (!_obj[k] || typeof _obj[k] !== 'object') {
  15688. _obj[k] = {};
  15689. }
  15690. var _key = keys.shift();
  15691. // 自调用判断是否存在属性,不存在则自动创建对象
  15692. inFn(_obj[k], keys, v);
  15693. }
  15694. };
  15695. if (typeof key !== 'string' || key === '') {
  15696. } else if (key.indexOf('.') !== -1) {// 支持多层级赋值操作
  15697. var keys = key.split('.');
  15698. inFn(obj, keys, value);
  15699. } else {
  15700. obj[key] = value;
  15701. }
  15702. }
  15703. /**
  15704. * @description 获取当前页面路径
  15705. */
  15706. function page() {var _pages$route, _pages;
  15707. var pages = getCurrentPages();
  15708. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  15709. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  15710. }
  15711. /**
  15712. * @description 获取当前路由栈实例数组
  15713. */
  15714. function pages() {
  15715. var pages = getCurrentPages();
  15716. return pages;
  15717. }
  15718. /**
  15719. * 获取页面历史栈指定层实例
  15720. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  15721. */
  15722. function getHistoryPage() {var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  15723. var pages = getCurrentPages();
  15724. var len = pages.length;
  15725. return pages[len - 1 + back];
  15726. }
  15727. /**
  15728. * @description 修改uView内置属性值
  15729. * @param {object} props 修改内置props属性
  15730. * @param {object} config 修改内置config属性
  15731. * @param {object} color 修改内置color属性
  15732. * @param {object} zIndex 修改内置zIndex属性
  15733. */
  15734. function setConfig(_ref5)
  15735. {var _ref5$props = _ref5.props,props = _ref5$props === void 0 ? {} : _ref5$props,_ref5$config = _ref5.config,config = _ref5$config === void 0 ? {} : _ref5$config,_ref5$color = _ref5.color,color = _ref5$color === void 0 ? {} : _ref5$color,_ref5$zIndex = _ref5.zIndex,zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;var
  15736. deepMerge =
  15737. uni.$u.deepMerge;
  15738. uni.$u.config = deepMerge(uni.$u.config, config);
  15739. uni.$u.props = deepMerge(uni.$u.props, props);
  15740. uni.$u.color = deepMerge(uni.$u.color, color);
  15741. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  15742. }var _default =
  15743. {
  15744. range: range,
  15745. getPx: getPx,
  15746. sleep: sleep,
  15747. os: os,
  15748. sys: sys,
  15749. random: random,
  15750. guid: guid,
  15751. $parent: $parent,
  15752. addStyle: addStyle,
  15753. addUnit: addUnit,
  15754. deepClone: deepClone,
  15755. deepMerge: deepMerge,
  15756. error: error,
  15757. randomArray: randomArray,
  15758. timeFormat: timeFormat,
  15759. timeFrom: timeFrom,
  15760. trim: trim,
  15761. queryParams: queryParams,
  15762. toast: toast,
  15763. type2icon: type2icon,
  15764. priceFormat: priceFormat,
  15765. getDuration: getDuration,
  15766. padZero: padZero,
  15767. formValidate: formValidate,
  15768. getProperty: getProperty,
  15769. setProperty: setProperty,
  15770. page: page,
  15771. pages: pages,
  15772. getHistoryPage: getHistoryPage,
  15773. setConfig: setConfig };exports.default = _default;
  15774. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  15775. /***/ }),
  15776. /* 63 */
  15777. /*!***************************************************************************************!*\
  15778. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/function/digit.js ***!
  15779. \***************************************************************************************/
  15780. /*! no static exports found */
  15781. /***/ (function(module, exports, __webpack_require__) {
  15782. "use strict";
  15783. Object.defineProperty(exports, "__esModule", { value: true });exports.times = times;exports.plus = plus;exports.minus = minus;exports.divide = divide;exports.round = round;exports.enableBoundaryChecking = enableBoundaryChecking;exports.default = void 0;function _toArray(arr) {return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _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 _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  15784. /**
  15785. * 把错误的数据转正
  15786. * @private
  15787. * @example strip(0.09999999999999998)=0.1
  15788. */
  15789. function strip(num) {var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  15790. return +parseFloat(Number(num).toPrecision(precision));
  15791. }
  15792. /**
  15793. * Return digits length of a number
  15794. * @private
  15795. * @param {*number} num Input number
  15796. */
  15797. function digitLength(num) {
  15798. // Get digit length of e
  15799. var eSplit = num.toString().split(/[eE]/);
  15800. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  15801. return len > 0 ? len : 0;
  15802. }
  15803. /**
  15804. * 把小数转成整数,如果是小数则放大成整数
  15805. * @private
  15806. * @param {*number} num 输入数
  15807. */
  15808. function float2Fixed(num) {
  15809. if (num.toString().indexOf('e') === -1) {
  15810. return Number(num.toString().replace('.', ''));
  15811. }
  15812. var dLen = digitLength(num);
  15813. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  15814. }
  15815. /**
  15816. * 检测数字是否越界,如果越界给出提示
  15817. * @private
  15818. * @param {*number} num 输入数
  15819. */
  15820. function checkBoundary(num) {
  15821. if (_boundaryCheckingState) {
  15822. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  15823. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  15824. }
  15825. }
  15826. }
  15827. /**
  15828. * 把递归操作扁平迭代化
  15829. * @param {number[]} arr 要操作的数字数组
  15830. * @param {function} operation 迭代操作
  15831. * @private
  15832. */
  15833. function iteratorOperation(arr, operation) {var _arr = _toArray(
  15834. arr),num1 = _arr[0],num2 = _arr[1],others = _arr.slice(2);
  15835. var res = operation(num1, num2);
  15836. others.forEach(function (num) {
  15837. res = operation(res, num);
  15838. });
  15839. return res;
  15840. }
  15841. /**
  15842. * 高精度乘法
  15843. * @export
  15844. */
  15845. function times() {for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {nums[_key] = arguments[_key];}
  15846. if (nums.length > 2) {
  15847. return iteratorOperation(nums, times);
  15848. }var
  15849. num1 = nums[0],num2 = nums[1];
  15850. var num1Changed = float2Fixed(num1);
  15851. var num2Changed = float2Fixed(num2);
  15852. var baseNum = digitLength(num1) + digitLength(num2);
  15853. var leftValue = num1Changed * num2Changed;
  15854. checkBoundary(leftValue);
  15855. return leftValue / Math.pow(10, baseNum);
  15856. }
  15857. /**
  15858. * 高精度加法
  15859. * @export
  15860. */
  15861. function plus() {for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {nums[_key2] = arguments[_key2];}
  15862. if (nums.length > 2) {
  15863. return iteratorOperation(nums, plus);
  15864. }var
  15865. num1 = nums[0],num2 = nums[1];
  15866. // 取最大的小数位
  15867. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  15868. // 把小数都转为整数然后再计算
  15869. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  15870. }
  15871. /**
  15872. * 高精度减法
  15873. * @export
  15874. */
  15875. function minus() {for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {nums[_key3] = arguments[_key3];}
  15876. if (nums.length > 2) {
  15877. return iteratorOperation(nums, minus);
  15878. }var
  15879. num1 = nums[0],num2 = nums[1];
  15880. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  15881. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  15882. }
  15883. /**
  15884. * 高精度除法
  15885. * @export
  15886. */
  15887. function divide() {for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {nums[_key4] = arguments[_key4];}
  15888. if (nums.length > 2) {
  15889. return iteratorOperation(nums, divide);
  15890. }var
  15891. num1 = nums[0],num2 = nums[1];
  15892. var num1Changed = float2Fixed(num1);
  15893. var num2Changed = float2Fixed(num2);
  15894. checkBoundary(num1Changed);
  15895. checkBoundary(num2Changed);
  15896. // 重要,这里必须用strip进行修正
  15897. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  15898. }
  15899. /**
  15900. * 四舍五入
  15901. * @export
  15902. */
  15903. function round(num, ratio) {
  15904. var base = Math.pow(10, ratio);
  15905. var result = divide(Math.round(Math.abs(times(num, base))), base);
  15906. if (num < 0 && result !== 0) {
  15907. result = times(result, -1);
  15908. }
  15909. // 位数不足则补0
  15910. return result;
  15911. }
  15912. /**
  15913. * 是否进行边界检查,默认开启
  15914. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  15915. * @export
  15916. */
  15917. function enableBoundaryChecking() {var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  15918. _boundaryCheckingState = flag;
  15919. }var _default =
  15920. {
  15921. times: times,
  15922. plus: plus,
  15923. minus: minus,
  15924. divide: divide,
  15925. round: round,
  15926. enableBoundaryChecking: enableBoundaryChecking };exports.default = _default;
  15927. /***/ }),
  15928. /* 64 */
  15929. /*!**************************************************************************************!*\
  15930. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/config.js ***!
  15931. \**************************************************************************************/
  15932. /*! no static exports found */
  15933. /***/ (function(module, exports, __webpack_require__) {
  15934. "use strict";
  15935. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 此版本发布于2023-03-27
  15936. var version = '2.0.36';
  15937. // 开发环境才提示,生产环境不会提示
  15938. if (true) {
  15939. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  15940. }var _default =
  15941. {
  15942. v: version,
  15943. version: version,
  15944. // 主题名称
  15945. type: [
  15946. 'primary',
  15947. 'success',
  15948. 'info',
  15949. 'error',
  15950. 'warning'],
  15951. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  15952. color: {
  15953. 'u-primary': '#2979ff',
  15954. 'u-warning': '#ff9900',
  15955. 'u-success': '#19be6b',
  15956. 'u-error': '#fa3534',
  15957. 'u-info': '#909399',
  15958. 'u-main-color': '#303133',
  15959. 'u-content-color': '#606266',
  15960. 'u-tips-color': '#909399',
  15961. 'u-light-color': '#c0c4cc' },
  15962. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  15963. unit: 'px' };exports.default = _default;
  15964. /***/ }),
  15965. /* 65 */
  15966. /*!*************************************************************************************!*\
  15967. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props.js ***!
  15968. \*************************************************************************************/
  15969. /*! no static exports found */
  15970. /***/ (function(module, exports, __webpack_require__) {
  15971. "use strict";
  15972. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  15973. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 64));
  15974. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 66));
  15975. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 67));
  15976. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 68));
  15977. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 69));
  15978. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 70));
  15979. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 71));
  15980. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 72));
  15981. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 73));
  15982. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 74));
  15983. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 75));
  15984. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 76));
  15985. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 77));
  15986. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 78));
  15987. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 79));
  15988. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 80));
  15989. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 81));
  15990. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 82));
  15991. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 83));
  15992. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 84));
  15993. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 85));
  15994. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 86));
  15995. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 87));
  15996. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 88));
  15997. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 89));
  15998. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 90));
  15999. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 91));
  16000. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 92));
  16001. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 93));
  16002. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 94));
  16003. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 95));
  16004. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 96));
  16005. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 97));
  16006. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 98));
  16007. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 99));
  16008. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 100));
  16009. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 101));
  16010. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 102));
  16011. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 103));
  16012. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 104));
  16013. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 105));
  16014. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 106));
  16015. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 107));
  16016. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 108));
  16017. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 109));
  16018. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 110));
  16019. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 111));
  16020. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 112));
  16021. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 114));
  16022. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 115));
  16023. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 116));
  16024. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 117));
  16025. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 118));
  16026. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 119));
  16027. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 120));
  16028. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 121));
  16029. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 122));
  16030. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 123));
  16031. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 124));
  16032. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 125));
  16033. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 126));
  16034. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 127));
  16035. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 128));
  16036. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 129));
  16037. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 130));
  16038. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 131));
  16039. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 132));
  16040. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 133));
  16041. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 134));
  16042. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 135));
  16043. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 136));
  16044. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 137));
  16045. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 138));
  16046. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 139));
  16047. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 140));
  16048. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 141));
  16049. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 142));
  16050. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 143));
  16051. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 144));
  16052. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 145));
  16053. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 146));
  16054. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 147));
  16055. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 148));
  16056. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 149));
  16057. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 150));
  16058. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 151));
  16059. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 152));
  16060. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 153));
  16061. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 154));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 _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;}var
  16062. color =
  16063. _config.default.color;var _default = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},
  16064. _actionSheet.default),
  16065. _album.default),
  16066. _alert.default),
  16067. _avatar.default),
  16068. _avatarGroup.default),
  16069. _backtop.default),
  16070. _badge.default),
  16071. _button.default),
  16072. _calendar.default),
  16073. _carKeyboard.default),
  16074. _cell.default),
  16075. _cellGroup.default),
  16076. _checkbox.default),
  16077. _checkboxGroup.default),
  16078. _circleProgress.default),
  16079. _code.default),
  16080. _codeInput.default),
  16081. _col.default),
  16082. _collapse.default),
  16083. _collapseItem.default),
  16084. _columnNotice.default),
  16085. _countDown.default),
  16086. _countTo.default),
  16087. _datetimePicker.default),
  16088. _divider.default),
  16089. _empty.default),
  16090. _form.default),
  16091. _formItem.default),
  16092. _gap.default),
  16093. _grid.default),
  16094. _gridItem.default),
  16095. _icon.default),
  16096. _image.default),
  16097. _indexAnchor.default),
  16098. _indexList.default),
  16099. _input.default),
  16100. _keyboard.default),
  16101. _line.default),
  16102. _lineProgress.default),
  16103. _link.default),
  16104. _list.default),
  16105. _listItem.default),
  16106. _loadingIcon.default),
  16107. _loadingPage.default),
  16108. _loadmore.default),
  16109. _modal.default),
  16110. _navbar.default),
  16111. _noNetwork.default),
  16112. _noticeBar.default),
  16113. _notify.default),
  16114. _numberBox.default),
  16115. _numberKeyboard.default),
  16116. _overlay.default),
  16117. _parse.default),
  16118. _picker.default),
  16119. _popup.default),
  16120. _radio.default),
  16121. _radioGroup.default),
  16122. _rate.default),
  16123. _readMore.default),
  16124. _row.default),
  16125. _rowNotice.default),
  16126. _scrollList.default),
  16127. _search.default),
  16128. _section.default),
  16129. _skeleton.default),
  16130. _slider.default),
  16131. _statusBar.default),
  16132. _steps.default),
  16133. _stepsItem.default),
  16134. _sticky.default),
  16135. _subsection.default),
  16136. _swipeAction.default),
  16137. _swipeActionItem.default),
  16138. _swiper.default),
  16139. _swipterIndicator.default),
  16140. _switch2.default),
  16141. _tabbar.default),
  16142. _tabbarItem.default),
  16143. _tabs.default),
  16144. _tag.default),
  16145. _text.default),
  16146. _textarea.default),
  16147. _toast.default),
  16148. _toolbar.default),
  16149. _tooltip.default),
  16150. _transition.default),
  16151. _upload.default);exports.default = _default;
  16152. /***/ }),
  16153. /* 66 */
  16154. /*!*************************************************************************************************!*\
  16155. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  16156. \*************************************************************************************************/
  16157. /*! no static exports found */
  16158. /***/ (function(module, exports, __webpack_require__) {
  16159. "use strict";
  16160. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16161. * @Author : LQ
  16162. * @Description :
  16163. * @version : 1.0
  16164. * @Date : 2021-08-20 16:44:21
  16165. * @LastAuthor : LQ
  16166. * @lastTime : 2021-08-20 16:44:35
  16167. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  16168. */var _default =
  16169. {
  16170. // action-sheet组件
  16171. actionSheet: {
  16172. show: false,
  16173. title: '',
  16174. description: '',
  16175. actions: function actions() {return [];},
  16176. index: '',
  16177. cancelText: '',
  16178. closeOnClickAction: true,
  16179. safeAreaInsetBottom: true,
  16180. openType: '',
  16181. closeOnClickOverlay: true,
  16182. round: 0 } };exports.default = _default;
  16183. /***/ }),
  16184. /* 67 */
  16185. /*!*******************************************************************************************!*\
  16186. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/album.js ***!
  16187. \*******************************************************************************************/
  16188. /*! no static exports found */
  16189. /***/ (function(module, exports, __webpack_require__) {
  16190. "use strict";
  16191. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16192. * @Author : LQ
  16193. * @Description :
  16194. * @version : 1.0
  16195. * @Date : 2021-08-20 16:44:21
  16196. * @LastAuthor : LQ
  16197. * @lastTime : 2021-08-20 16:47:24
  16198. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  16199. */var _default =
  16200. {
  16201. // album 组件
  16202. album: {
  16203. urls: function urls() {return [];},
  16204. keyName: '',
  16205. singleSize: 180,
  16206. multipleSize: 70,
  16207. space: 6,
  16208. singleMode: 'scaleToFill',
  16209. multipleMode: 'aspectFill',
  16210. maxCount: 9,
  16211. previewFullImage: true,
  16212. rowCount: 3,
  16213. showMore: true } };exports.default = _default;
  16214. /***/ }),
  16215. /* 68 */
  16216. /*!*******************************************************************************************!*\
  16217. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/alert.js ***!
  16218. \*******************************************************************************************/
  16219. /*! no static exports found */
  16220. /***/ (function(module, exports, __webpack_require__) {
  16221. "use strict";
  16222. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16223. * @Author : LQ
  16224. * @Description :
  16225. * @version : 1.0
  16226. * @Date : 2021-08-20 16:44:21
  16227. * @LastAuthor : LQ
  16228. * @lastTime : 2021-08-20 16:48:53
  16229. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  16230. */var _default =
  16231. {
  16232. // alert警告组件
  16233. alert: {
  16234. title: '',
  16235. type: 'warning',
  16236. description: '',
  16237. closable: false,
  16238. showIcon: false,
  16239. effect: 'light',
  16240. center: false,
  16241. fontSize: 14 } };exports.default = _default;
  16242. /***/ }),
  16243. /* 69 */
  16244. /*!********************************************************************************************!*\
  16245. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/avatar.js ***!
  16246. \********************************************************************************************/
  16247. /*! no static exports found */
  16248. /***/ (function(module, exports, __webpack_require__) {
  16249. "use strict";
  16250. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16251. * @Author : LQ
  16252. * @Description :
  16253. * @version : 1.0
  16254. * @Date : 2021-08-20 16:44:21
  16255. * @LastAuthor : LQ
  16256. * @lastTime : 2021-08-20 16:49:22
  16257. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  16258. */var _default =
  16259. {
  16260. // avatar 组件
  16261. avatar: {
  16262. src: '',
  16263. shape: 'circle',
  16264. size: 40,
  16265. mode: 'scaleToFill',
  16266. text: '',
  16267. bgColor: '#c0c4cc',
  16268. color: '#ffffff',
  16269. fontSize: 18,
  16270. icon: '',
  16271. mpAvatar: false,
  16272. randomBgColor: false,
  16273. defaultUrl: '',
  16274. colorIndex: '',
  16275. name: '' } };exports.default = _default;
  16276. /***/ }),
  16277. /* 70 */
  16278. /*!*************************************************************************************************!*\
  16279. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  16280. \*************************************************************************************************/
  16281. /*! no static exports found */
  16282. /***/ (function(module, exports, __webpack_require__) {
  16283. "use strict";
  16284. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16285. * @Author : LQ
  16286. * @Description :
  16287. * @version : 1.0
  16288. * @Date : 2021-08-20 16:44:21
  16289. * @LastAuthor : LQ
  16290. * @lastTime : 2021-08-20 16:49:55
  16291. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  16292. */var _default =
  16293. {
  16294. // avatarGroup 组件
  16295. avatarGroup: {
  16296. urls: function urls() {return [];},
  16297. maxCount: 5,
  16298. shape: 'circle',
  16299. mode: 'scaleToFill',
  16300. showMore: true,
  16301. size: 40,
  16302. keyName: '',
  16303. gap: 0.5,
  16304. extraValue: 0 } };exports.default = _default;
  16305. /***/ }),
  16306. /* 71 */
  16307. /*!*********************************************************************************************!*\
  16308. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/backtop.js ***!
  16309. \*********************************************************************************************/
  16310. /*! no static exports found */
  16311. /***/ (function(module, exports, __webpack_require__) {
  16312. "use strict";
  16313. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16314. * @Author : LQ
  16315. * @Description :
  16316. * @version : 1.0
  16317. * @Date : 2021-08-20 16:44:21
  16318. * @LastAuthor : LQ
  16319. * @lastTime : 2021-08-20 16:50:18
  16320. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  16321. */var _default =
  16322. {
  16323. // backtop组件
  16324. backtop: {
  16325. mode: 'circle',
  16326. icon: 'arrow-upward',
  16327. text: '',
  16328. duration: 100,
  16329. scrollTop: 0,
  16330. top: 400,
  16331. bottom: 100,
  16332. right: 20,
  16333. zIndex: 9,
  16334. iconStyle: function iconStyle() {return {
  16335. color: '#909399',
  16336. fontSize: '19px' };} } };exports.default = _default;
  16337. /***/ }),
  16338. /* 72 */
  16339. /*!*******************************************************************************************!*\
  16340. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/badge.js ***!
  16341. \*******************************************************************************************/
  16342. /*! no static exports found */
  16343. /***/ (function(module, exports, __webpack_require__) {
  16344. "use strict";
  16345. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16346. * @Author : LQ
  16347. * @Description :
  16348. * @version : 1.0
  16349. * @Date : 2021-08-20 16:44:21
  16350. * @LastAuthor : LQ
  16351. * @lastTime : 2021-08-23 19:51:50
  16352. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  16353. */var _default =
  16354. {
  16355. // 徽标数组件
  16356. badge: {
  16357. isDot: false,
  16358. value: '',
  16359. show: true,
  16360. max: 999,
  16361. type: 'error',
  16362. showZero: false,
  16363. bgColor: null,
  16364. color: null,
  16365. shape: 'circle',
  16366. numberType: 'overflow',
  16367. offset: function offset() {return [];},
  16368. inverted: false,
  16369. absolute: false } };exports.default = _default;
  16370. /***/ }),
  16371. /* 73 */
  16372. /*!********************************************************************************************!*\
  16373. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/button.js ***!
  16374. \********************************************************************************************/
  16375. /*! no static exports found */
  16376. /***/ (function(module, exports, __webpack_require__) {
  16377. "use strict";
  16378. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16379. * @Author : LQ
  16380. * @Description :
  16381. * @version : 1.0
  16382. * @Date : 2021-08-20 16:44:21
  16383. * @LastAuthor : LQ
  16384. * @lastTime : 2021-08-20 16:51:27
  16385. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  16386. */var _default =
  16387. {
  16388. // button组件
  16389. button: {
  16390. hairline: false,
  16391. type: 'info',
  16392. size: 'normal',
  16393. shape: 'square',
  16394. plain: false,
  16395. disabled: false,
  16396. loading: false,
  16397. loadingText: '',
  16398. loadingMode: 'spinner',
  16399. loadingSize: 15,
  16400. openType: '',
  16401. formType: '',
  16402. appParameter: '',
  16403. hoverStopPropagation: true,
  16404. lang: 'en',
  16405. sessionFrom: '',
  16406. sendMessageTitle: '',
  16407. sendMessagePath: '',
  16408. sendMessageImg: '',
  16409. showMessageCard: false,
  16410. dataName: '',
  16411. throttleTime: 0,
  16412. hoverStartTime: 0,
  16413. hoverStayTime: 200,
  16414. text: '',
  16415. icon: '',
  16416. iconColor: '',
  16417. color: '' } };exports.default = _default;
  16418. /***/ }),
  16419. /* 74 */
  16420. /*!**********************************************************************************************!*\
  16421. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/calendar.js ***!
  16422. \**********************************************************************************************/
  16423. /*! no static exports found */
  16424. /***/ (function(module, exports, __webpack_require__) {
  16425. "use strict";
  16426. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16427. * @Author : LQ
  16428. * @Description :
  16429. * @version : 1.0
  16430. * @Date : 2021-08-20 16:44:21
  16431. * @LastAuthor : LQ
  16432. * @lastTime : 2021-08-20 16:52:43
  16433. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  16434. */var _default =
  16435. {
  16436. // calendar 组件
  16437. calendar: {
  16438. title: '日期选择',
  16439. showTitle: true,
  16440. showSubtitle: true,
  16441. mode: 'single',
  16442. startText: '开始',
  16443. endText: '结束',
  16444. customList: function customList() {return [];},
  16445. color: '#3c9cff',
  16446. minDate: 0,
  16447. maxDate: 0,
  16448. defaultDate: null,
  16449. maxCount: Number.MAX_SAFE_INTEGER, // Infinity
  16450. rowHeight: 56,
  16451. formatter: null,
  16452. showLunar: false,
  16453. showMark: true,
  16454. confirmText: '确定',
  16455. confirmDisabledText: '确定',
  16456. show: false,
  16457. closeOnClickOverlay: false,
  16458. readonly: false,
  16459. showConfirm: true,
  16460. maxRange: Number.MAX_SAFE_INTEGER, // Infinity
  16461. rangePrompt: '',
  16462. showRangePrompt: true,
  16463. allowSameDay: false,
  16464. round: 0,
  16465. monthNum: 3 } };exports.default = _default;
  16466. /***/ }),
  16467. /* 75 */
  16468. /*!*************************************************************************************************!*\
  16469. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  16470. \*************************************************************************************************/
  16471. /*! no static exports found */
  16472. /***/ (function(module, exports, __webpack_require__) {
  16473. "use strict";
  16474. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16475. * @Author : LQ
  16476. * @Description :
  16477. * @version : 1.0
  16478. * @Date : 2021-08-20 16:44:21
  16479. * @LastAuthor : LQ
  16480. * @lastTime : 2021-08-20 16:53:20
  16481. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  16482. */var _default =
  16483. {
  16484. // 车牌号键盘
  16485. carKeyboard: {
  16486. random: false } };exports.default = _default;
  16487. /***/ }),
  16488. /* 76 */
  16489. /*!******************************************************************************************!*\
  16490. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/cell.js ***!
  16491. \******************************************************************************************/
  16492. /*! no static exports found */
  16493. /***/ (function(module, exports, __webpack_require__) {
  16494. "use strict";
  16495. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16496. * @Author : LQ
  16497. * @Description :
  16498. * @version : 1.0
  16499. * @Date : 2021-08-20 16:44:21
  16500. * @LastAuthor : LQ
  16501. * @lastTime : 2021-08-23 20:53:09
  16502. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  16503. */var _default =
  16504. {
  16505. // cell组件的props
  16506. cell: {
  16507. customClass: '',
  16508. title: '',
  16509. label: '',
  16510. value: '',
  16511. icon: '',
  16512. disabled: false,
  16513. border: true,
  16514. center: false,
  16515. url: '',
  16516. linkType: 'navigateTo',
  16517. clickable: false,
  16518. isLink: false,
  16519. required: false,
  16520. arrowDirection: '',
  16521. iconStyle: {},
  16522. rightIconStyle: {},
  16523. rightIcon: 'arrow-right',
  16524. titleStyle: {},
  16525. size: '',
  16526. stop: true,
  16527. name: '' } };exports.default = _default;
  16528. /***/ }),
  16529. /* 77 */
  16530. /*!***********************************************************************************************!*\
  16531. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  16532. \***********************************************************************************************/
  16533. /*! no static exports found */
  16534. /***/ (function(module, exports, __webpack_require__) {
  16535. "use strict";
  16536. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16537. * @Author : LQ
  16538. * @Description :
  16539. * @version : 1.0
  16540. * @Date : 2021-08-20 16:44:21
  16541. * @LastAuthor : LQ
  16542. * @lastTime : 2021-08-20 16:54:16
  16543. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  16544. */var _default =
  16545. {
  16546. // cell-group组件的props
  16547. cellGroup: {
  16548. title: '',
  16549. border: true,
  16550. customStyle: {} } };exports.default = _default;
  16551. /***/ }),
  16552. /* 78 */
  16553. /*!**********************************************************************************************!*\
  16554. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  16555. \**********************************************************************************************/
  16556. /*! no static exports found */
  16557. /***/ (function(module, exports, __webpack_require__) {
  16558. "use strict";
  16559. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16560. * @Author : LQ
  16561. * @Description :
  16562. * @version : 1.0
  16563. * @Date : 2021-08-20 16:44:21
  16564. * @LastAuthor : LQ
  16565. * @lastTime : 2021-08-23 21:06:59
  16566. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  16567. */var _default =
  16568. {
  16569. // checkbox组件
  16570. checkbox: {
  16571. name: '',
  16572. shape: '',
  16573. size: '',
  16574. checkbox: false,
  16575. disabled: '',
  16576. activeColor: '',
  16577. inactiveColor: '',
  16578. iconSize: '',
  16579. iconColor: '',
  16580. label: '',
  16581. labelSize: '',
  16582. labelColor: '',
  16583. labelDisabled: '' } };exports.default = _default;
  16584. /***/ }),
  16585. /* 79 */
  16586. /*!***************************************************************************************************!*\
  16587. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  16588. \***************************************************************************************************/
  16589. /*! no static exports found */
  16590. /***/ (function(module, exports, __webpack_require__) {
  16591. "use strict";
  16592. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16593. * @Author : LQ
  16594. * @Description :
  16595. * @version : 1.0
  16596. * @Date : 2021-08-20 16:44:21
  16597. * @LastAuthor : LQ
  16598. * @lastTime : 2021-08-20 16:54:47
  16599. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  16600. */var _default =
  16601. {
  16602. // checkbox-group组件
  16603. checkboxGroup: {
  16604. name: '',
  16605. value: function value() {return [];},
  16606. shape: 'square',
  16607. disabled: false,
  16608. activeColor: '#2979ff',
  16609. inactiveColor: '#c8c9cc',
  16610. size: 18,
  16611. placement: 'row',
  16612. labelSize: 14,
  16613. labelColor: '#303133',
  16614. labelDisabled: false,
  16615. iconColor: '#ffffff',
  16616. iconSize: 12,
  16617. iconPlacement: 'left',
  16618. borderBottom: false } };exports.default = _default;
  16619. /***/ }),
  16620. /* 80 */
  16621. /*!****************************************************************************************************!*\
  16622. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  16623. \****************************************************************************************************/
  16624. /*! no static exports found */
  16625. /***/ (function(module, exports, __webpack_require__) {
  16626. "use strict";
  16627. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16628. * @Author : LQ
  16629. * @Description :
  16630. * @version : 1.0
  16631. * @Date : 2021-08-20 16:44:21
  16632. * @LastAuthor : LQ
  16633. * @lastTime : 2021-08-20 16:55:02
  16634. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  16635. */var _default =
  16636. {
  16637. // circleProgress 组件
  16638. circleProgress: {
  16639. percentage: 30 } };exports.default = _default;
  16640. /***/ }),
  16641. /* 81 */
  16642. /*!******************************************************************************************!*\
  16643. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/code.js ***!
  16644. \******************************************************************************************/
  16645. /*! no static exports found */
  16646. /***/ (function(module, exports, __webpack_require__) {
  16647. "use strict";
  16648. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16649. * @Author : LQ
  16650. * @Description :
  16651. * @version : 1.0
  16652. * @Date : 2021-08-20 16:44:21
  16653. * @LastAuthor : LQ
  16654. * @lastTime : 2021-08-20 16:55:27
  16655. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  16656. */var _default =
  16657. {
  16658. // code 组件
  16659. code: {
  16660. seconds: 60,
  16661. startText: '获取验证码',
  16662. changeText: 'X秒重新获取',
  16663. endText: '重新获取',
  16664. keepRunning: false,
  16665. uniqueKey: '' } };exports.default = _default;
  16666. /***/ }),
  16667. /* 82 */
  16668. /*!***********************************************************************************************!*\
  16669. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  16670. \***********************************************************************************************/
  16671. /*! no static exports found */
  16672. /***/ (function(module, exports, __webpack_require__) {
  16673. "use strict";
  16674. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16675. * @Author : LQ
  16676. * @Description :
  16677. * @version : 1.0
  16678. * @Date : 2021-08-20 16:44:21
  16679. * @LastAuthor : LQ
  16680. * @lastTime : 2021-08-20 16:55:58
  16681. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  16682. */var _default =
  16683. {
  16684. // codeInput 组件
  16685. codeInput: {
  16686. adjustPosition: true,
  16687. maxlength: 6,
  16688. dot: false,
  16689. mode: 'box',
  16690. hairline: false,
  16691. space: 10,
  16692. value: '',
  16693. focus: false,
  16694. bold: false,
  16695. color: '#606266',
  16696. fontSize: 18,
  16697. size: 35,
  16698. disabledKeyboard: false,
  16699. borderColor: '#c9cacc',
  16700. disabledDot: true } };exports.default = _default;
  16701. /***/ }),
  16702. /* 83 */
  16703. /*!*****************************************************************************************!*\
  16704. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/col.js ***!
  16705. \*****************************************************************************************/
  16706. /*! no static exports found */
  16707. /***/ (function(module, exports, __webpack_require__) {
  16708. "use strict";
  16709. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16710. * @Author : LQ
  16711. * @Description :
  16712. * @version : 1.0
  16713. * @Date : 2021-08-20 16:44:21
  16714. * @LastAuthor : LQ
  16715. * @lastTime : 2021-08-20 16:56:12
  16716. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  16717. */var _default =
  16718. {
  16719. // col 组件
  16720. col: {
  16721. span: 12,
  16722. offset: 0,
  16723. justify: 'start',
  16724. align: 'stretch',
  16725. textAlign: 'left' } };exports.default = _default;
  16726. /***/ }),
  16727. /* 84 */
  16728. /*!**********************************************************************************************!*\
  16729. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/collapse.js ***!
  16730. \**********************************************************************************************/
  16731. /*! no static exports found */
  16732. /***/ (function(module, exports, __webpack_require__) {
  16733. "use strict";
  16734. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16735. * @Author : LQ
  16736. * @Description :
  16737. * @version : 1.0
  16738. * @Date : 2021-08-20 16:44:21
  16739. * @LastAuthor : LQ
  16740. * @lastTime : 2021-08-20 16:56:30
  16741. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  16742. */var _default =
  16743. {
  16744. // collapse 组件
  16745. collapse: {
  16746. value: null,
  16747. accordion: false,
  16748. border: true } };exports.default = _default;
  16749. /***/ }),
  16750. /* 85 */
  16751. /*!**************************************************************************************************!*\
  16752. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/collapseItem.js ***!
  16753. \**************************************************************************************************/
  16754. /*! no static exports found */
  16755. /***/ (function(module, exports, __webpack_require__) {
  16756. "use strict";
  16757. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16758. * @Author : LQ
  16759. * @Description :
  16760. * @version : 1.0
  16761. * @Date : 2021-08-20 16:44:21
  16762. * @LastAuthor : LQ
  16763. * @lastTime : 2021-08-20 16:56:42
  16764. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  16765. */var _default =
  16766. {
  16767. // collapseItem 组件
  16768. collapseItem: {
  16769. title: '',
  16770. value: '',
  16771. label: '',
  16772. disabled: false,
  16773. isLink: true,
  16774. clickable: true,
  16775. border: true,
  16776. align: 'left',
  16777. name: '',
  16778. icon: '',
  16779. duration: 300 } };exports.default = _default;
  16780. /***/ }),
  16781. /* 86 */
  16782. /*!**************************************************************************************************!*\
  16783. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  16784. \**************************************************************************************************/
  16785. /*! no static exports found */
  16786. /***/ (function(module, exports, __webpack_require__) {
  16787. "use strict";
  16788. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16789. * @Author : LQ
  16790. * @Description :
  16791. * @version : 1.0
  16792. * @Date : 2021-08-20 16:44:21
  16793. * @LastAuthor : LQ
  16794. * @lastTime : 2021-08-20 16:57:16
  16795. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  16796. */var _default =
  16797. {
  16798. // columnNotice 组件
  16799. columnNotice: {
  16800. text: '',
  16801. icon: 'volume',
  16802. mode: '',
  16803. color: '#f9ae3d',
  16804. bgColor: '#fdf6ec',
  16805. fontSize: 14,
  16806. speed: 80,
  16807. step: false,
  16808. duration: 1500,
  16809. disableTouch: true } };exports.default = _default;
  16810. /***/ }),
  16811. /* 87 */
  16812. /*!***********************************************************************************************!*\
  16813. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  16814. \***********************************************************************************************/
  16815. /*! no static exports found */
  16816. /***/ (function(module, exports, __webpack_require__) {
  16817. "use strict";
  16818. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16819. * @Author : LQ
  16820. * @Description :
  16821. * @version : 1.0
  16822. * @Date : 2021-08-20 16:44:21
  16823. * @LastAuthor : LQ
  16824. * @lastTime : 2021-08-20 17:11:29
  16825. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  16826. */var _default =
  16827. {
  16828. // u-count-down 计时器组件
  16829. countDown: {
  16830. time: 0,
  16831. format: 'HH:mm:ss',
  16832. autoStart: true,
  16833. millisecond: false } };exports.default = _default;
  16834. /***/ }),
  16835. /* 88 */
  16836. /*!*********************************************************************************************!*\
  16837. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/countTo.js ***!
  16838. \*********************************************************************************************/
  16839. /*! no static exports found */
  16840. /***/ (function(module, exports, __webpack_require__) {
  16841. "use strict";
  16842. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16843. * @Author : LQ
  16844. * @Description :
  16845. * @version : 1.0
  16846. * @Date : 2021-08-20 16:44:21
  16847. * @LastAuthor : LQ
  16848. * @lastTime : 2021-08-20 16:57:32
  16849. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  16850. */var _default =
  16851. {
  16852. // countTo 组件
  16853. countTo: {
  16854. startVal: 0,
  16855. endVal: 0,
  16856. duration: 2000,
  16857. autoplay: true,
  16858. decimals: 0,
  16859. useEasing: true,
  16860. decimal: '.',
  16861. color: '#606266',
  16862. fontSize: 22,
  16863. bold: false,
  16864. separator: '' } };exports.default = _default;
  16865. /***/ }),
  16866. /* 89 */
  16867. /*!****************************************************************************************************!*\
  16868. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  16869. \****************************************************************************************************/
  16870. /*! no static exports found */
  16871. /***/ (function(module, exports, __webpack_require__) {
  16872. "use strict";
  16873. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16874. * @Author : LQ
  16875. * @Description :
  16876. * @version : 1.0
  16877. * @Date : 2021-08-20 16:44:21
  16878. * @LastAuthor : LQ
  16879. * @lastTime : 2021-08-20 16:57:48
  16880. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  16881. */var _default =
  16882. {
  16883. // datetimePicker 组件
  16884. datetimePicker: {
  16885. show: false,
  16886. showToolbar: true,
  16887. value: '',
  16888. title: '',
  16889. mode: 'datetime',
  16890. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  16891. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  16892. minHour: 0,
  16893. maxHour: 23,
  16894. minMinute: 0,
  16895. maxMinute: 59,
  16896. filter: null,
  16897. formatter: null,
  16898. loading: false,
  16899. itemHeight: 44,
  16900. cancelText: '取消',
  16901. confirmText: '确认',
  16902. cancelColor: '#909193',
  16903. confirmColor: '#3c9cff',
  16904. visibleItemCount: 5,
  16905. closeOnClickOverlay: false,
  16906. defaultIndex: function defaultIndex() {return [];} } };exports.default = _default;
  16907. /***/ }),
  16908. /* 90 */
  16909. /*!*********************************************************************************************!*\
  16910. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/divider.js ***!
  16911. \*********************************************************************************************/
  16912. /*! no static exports found */
  16913. /***/ (function(module, exports, __webpack_require__) {
  16914. "use strict";
  16915. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16916. * @Author : LQ
  16917. * @Description :
  16918. * @version : 1.0
  16919. * @Date : 2021-08-20 16:44:21
  16920. * @LastAuthor : LQ
  16921. * @lastTime : 2021-08-20 16:58:03
  16922. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  16923. */var _default =
  16924. {
  16925. // divider组件
  16926. divider: {
  16927. dashed: false,
  16928. hairline: true,
  16929. dot: false,
  16930. textPosition: 'center',
  16931. text: '',
  16932. textSize: 14,
  16933. textColor: '#909399',
  16934. lineColor: '#dcdfe6' } };exports.default = _default;
  16935. /***/ }),
  16936. /* 91 */
  16937. /*!*******************************************************************************************!*\
  16938. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/empty.js ***!
  16939. \*******************************************************************************************/
  16940. /*! no static exports found */
  16941. /***/ (function(module, exports, __webpack_require__) {
  16942. "use strict";
  16943. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16944. * @Author : LQ
  16945. * @Description :
  16946. * @version : 1.0
  16947. * @Date : 2021-08-20 16:44:21
  16948. * @LastAuthor : LQ
  16949. * @lastTime : 2021-08-20 17:03:27
  16950. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  16951. */var _default =
  16952. {
  16953. // empty组件
  16954. empty: {
  16955. icon: '',
  16956. text: '',
  16957. textColor: '#c0c4cc',
  16958. textSize: 14,
  16959. iconColor: '#c0c4cc',
  16960. iconSize: 90,
  16961. mode: 'data',
  16962. width: 160,
  16963. height: 160,
  16964. show: true,
  16965. marginTop: 0 } };exports.default = _default;
  16966. /***/ }),
  16967. /* 92 */
  16968. /*!******************************************************************************************!*\
  16969. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/form.js ***!
  16970. \******************************************************************************************/
  16971. /*! no static exports found */
  16972. /***/ (function(module, exports, __webpack_require__) {
  16973. "use strict";
  16974. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  16975. * @Author : LQ
  16976. * @Description :
  16977. * @version : 1.0
  16978. * @Date : 2021-08-20 16:44:21
  16979. * @LastAuthor : LQ
  16980. * @lastTime : 2021-08-20 17:03:49
  16981. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  16982. */var _default =
  16983. {
  16984. // form 组件
  16985. form: {
  16986. model: function model() {return {};},
  16987. rules: function rules() {return {};},
  16988. errorType: 'message',
  16989. borderBottom: true,
  16990. labelPosition: 'left',
  16991. labelWidth: 45,
  16992. labelAlign: 'left',
  16993. labelStyle: function labelStyle() {return {};} } };exports.default = _default;
  16994. /***/ }),
  16995. /* 93 */
  16996. /*!**********************************************************************************************!*\
  16997. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/formItem.js ***!
  16998. \**********************************************************************************************/
  16999. /*! no static exports found */
  17000. /***/ (function(module, exports, __webpack_require__) {
  17001. "use strict";
  17002. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17003. * @Author : LQ
  17004. * @Description :
  17005. * @version : 1.0
  17006. * @Date : 2021-08-20 16:44:21
  17007. * @LastAuthor : LQ
  17008. * @lastTime : 2021-08-20 17:04:32
  17009. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  17010. */var _default =
  17011. {
  17012. // formItem 组件
  17013. formItem: {
  17014. label: '',
  17015. prop: '',
  17016. borderBottom: '',
  17017. labelPosition: '',
  17018. labelWidth: '',
  17019. rightIcon: '',
  17020. leftIcon: '',
  17021. required: false,
  17022. leftIconStyle: '' } };exports.default = _default;
  17023. /***/ }),
  17024. /* 94 */
  17025. /*!*****************************************************************************************!*\
  17026. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/gap.js ***!
  17027. \*****************************************************************************************/
  17028. /*! no static exports found */
  17029. /***/ (function(module, exports, __webpack_require__) {
  17030. "use strict";
  17031. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17032. * @Author : LQ
  17033. * @Description :
  17034. * @version : 1.0
  17035. * @Date : 2021-08-20 16:44:21
  17036. * @LastAuthor : LQ
  17037. * @lastTime : 2021-08-20 17:05:25
  17038. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  17039. */var _default =
  17040. {
  17041. // gap组件
  17042. gap: {
  17043. bgColor: 'transparent',
  17044. height: 20,
  17045. marginTop: 0,
  17046. marginBottom: 0,
  17047. customStyle: {} } };exports.default = _default;
  17048. /***/ }),
  17049. /* 95 */
  17050. /*!******************************************************************************************!*\
  17051. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/grid.js ***!
  17052. \******************************************************************************************/
  17053. /*! no static exports found */
  17054. /***/ (function(module, exports, __webpack_require__) {
  17055. "use strict";
  17056. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17057. * @Author : LQ
  17058. * @Description :
  17059. * @version : 1.0
  17060. * @Date : 2021-08-20 16:44:21
  17061. * @LastAuthor : LQ
  17062. * @lastTime : 2021-08-20 17:05:57
  17063. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  17064. */var _default =
  17065. {
  17066. // grid组件
  17067. grid: {
  17068. col: 3,
  17069. border: false,
  17070. align: 'left' } };exports.default = _default;
  17071. /***/ }),
  17072. /* 96 */
  17073. /*!**********************************************************************************************!*\
  17074. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/gridItem.js ***!
  17075. \**********************************************************************************************/
  17076. /*! no static exports found */
  17077. /***/ (function(module, exports, __webpack_require__) {
  17078. "use strict";
  17079. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17080. * @Author : LQ
  17081. * @Description :
  17082. * @version : 1.0
  17083. * @Date : 2021-08-20 16:44:21
  17084. * @LastAuthor : LQ
  17085. * @lastTime : 2021-08-20 17:06:13
  17086. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  17087. */var _default =
  17088. {
  17089. // grid-item组件
  17090. gridItem: {
  17091. name: null,
  17092. bgColor: 'transparent' } };exports.default = _default;
  17093. /***/ }),
  17094. /* 97 */
  17095. /*!******************************************************************************************!*\
  17096. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/icon.js ***!
  17097. \******************************************************************************************/
  17098. /*! no static exports found */
  17099. /***/ (function(module, exports, __webpack_require__) {
  17100. "use strict";
  17101. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  17102. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 64));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /*
  17103. * @Author : LQ
  17104. * @Description :
  17105. * @version : 1.0
  17106. * @Date : 2021-08-20 16:44:21
  17107. * @LastAuthor : LQ
  17108. * @lastTime : 2021-08-20 18:00:14
  17109. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  17110. */var color = _config.default.color;var _default = { // icon组件
  17111. icon: { name: '', color: color['u-content-color'],
  17112. size: '16px',
  17113. bold: false,
  17114. index: '',
  17115. hoverClass: '',
  17116. customPrefix: 'uicon',
  17117. label: '',
  17118. labelPos: 'right',
  17119. labelSize: '15px',
  17120. labelColor: color['u-content-color'],
  17121. space: '3px',
  17122. imgMode: '',
  17123. width: '',
  17124. height: '',
  17125. top: 0,
  17126. stop: false } };exports.default = _default;
  17127. /***/ }),
  17128. /* 98 */
  17129. /*!*******************************************************************************************!*\
  17130. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/image.js ***!
  17131. \*******************************************************************************************/
  17132. /*! no static exports found */
  17133. /***/ (function(module, exports, __webpack_require__) {
  17134. "use strict";
  17135. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17136. * @Author : LQ
  17137. * @Description :
  17138. * @version : 1.0
  17139. * @Date : 2021-08-20 16:44:21
  17140. * @LastAuthor : LQ
  17141. * @lastTime : 2021-08-20 17:01:51
  17142. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  17143. */var _default =
  17144. {
  17145. // image组件
  17146. image: {
  17147. src: '',
  17148. mode: 'aspectFill',
  17149. width: '300',
  17150. height: '225',
  17151. shape: 'square',
  17152. radius: 0,
  17153. lazyLoad: true,
  17154. showMenuByLongpress: true,
  17155. loadingIcon: 'photo',
  17156. errorIcon: 'error-circle',
  17157. showLoading: true,
  17158. showError: true,
  17159. fade: true,
  17160. webp: false,
  17161. duration: 500,
  17162. bgColor: '#f3f4f6' } };exports.default = _default;
  17163. /***/ }),
  17164. /* 99 */
  17165. /*!*************************************************************************************************!*\
  17166. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  17167. \*************************************************************************************************/
  17168. /*! no static exports found */
  17169. /***/ (function(module, exports, __webpack_require__) {
  17170. "use strict";
  17171. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17172. * @Author : LQ
  17173. * @Description :
  17174. * @version : 1.0
  17175. * @Date : 2021-08-20 16:44:21
  17176. * @LastAuthor : LQ
  17177. * @lastTime : 2021-08-20 17:13:15
  17178. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  17179. */var _default =
  17180. {
  17181. // indexAnchor 组件
  17182. indexAnchor: {
  17183. text: '',
  17184. color: '#606266',
  17185. size: 14,
  17186. bgColor: '#dedede',
  17187. height: 32 } };exports.default = _default;
  17188. /***/ }),
  17189. /* 100 */
  17190. /*!***********************************************************************************************!*\
  17191. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  17192. \***********************************************************************************************/
  17193. /*! no static exports found */
  17194. /***/ (function(module, exports, __webpack_require__) {
  17195. "use strict";
  17196. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17197. * @Author : LQ
  17198. * @Description :
  17199. * @version : 1.0
  17200. * @Date : 2021-08-20 16:44:21
  17201. * @LastAuthor : LQ
  17202. * @lastTime : 2021-08-20 17:13:35
  17203. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  17204. */var _default =
  17205. {
  17206. // indexList 组件
  17207. indexList: {
  17208. inactiveColor: '#606266',
  17209. activeColor: '#5677fc',
  17210. indexList: function indexList() {return [];},
  17211. sticky: true,
  17212. customNavHeight: 0 } };exports.default = _default;
  17213. /***/ }),
  17214. /* 101 */
  17215. /*!*******************************************************************************************!*\
  17216. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/input.js ***!
  17217. \*******************************************************************************************/
  17218. /*! no static exports found */
  17219. /***/ (function(module, exports, __webpack_require__) {
  17220. "use strict";
  17221. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17222. * @Author : LQ
  17223. * @Description :
  17224. * @version : 1.0
  17225. * @Date : 2021-08-20 16:44:21
  17226. * @LastAuthor : LQ
  17227. * @lastTime : 2021-08-20 17:13:55
  17228. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  17229. */var _default =
  17230. {
  17231. // index 组件
  17232. input: {
  17233. value: '',
  17234. type: 'text',
  17235. fixed: false,
  17236. disabled: false,
  17237. disabledColor: '#f5f7fa',
  17238. clearable: false,
  17239. password: false,
  17240. maxlength: -1,
  17241. placeholder: null,
  17242. placeholderClass: 'input-placeholder',
  17243. placeholderStyle: 'color: #c0c4cc',
  17244. showWordLimit: false,
  17245. confirmType: 'done',
  17246. confirmHold: false,
  17247. holdKeyboard: false,
  17248. focus: false,
  17249. autoBlur: false,
  17250. disableDefaultPadding: false,
  17251. cursor: -1,
  17252. cursorSpacing: 30,
  17253. selectionStart: -1,
  17254. selectionEnd: -1,
  17255. adjustPosition: true,
  17256. inputAlign: 'left',
  17257. fontSize: '15px',
  17258. color: '#303133',
  17259. prefixIcon: '',
  17260. prefixIconStyle: '',
  17261. suffixIcon: '',
  17262. suffixIconStyle: '',
  17263. border: 'surround',
  17264. readonly: false,
  17265. shape: 'square',
  17266. formatter: null } };exports.default = _default;
  17267. /***/ }),
  17268. /* 102 */
  17269. /*!**********************************************************************************************!*\
  17270. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/keyboard.js ***!
  17271. \**********************************************************************************************/
  17272. /*! no static exports found */
  17273. /***/ (function(module, exports, __webpack_require__) {
  17274. "use strict";
  17275. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17276. * @Author : LQ
  17277. * @Description :
  17278. * @version : 1.0
  17279. * @Date : 2021-08-20 16:44:21
  17280. * @LastAuthor : LQ
  17281. * @lastTime : 2021-08-20 17:07:49
  17282. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  17283. */var _default =
  17284. {
  17285. // 键盘组件
  17286. keyboard: {
  17287. mode: 'number',
  17288. dotDisabled: false,
  17289. tooltip: true,
  17290. showTips: true,
  17291. tips: '',
  17292. showCancel: true,
  17293. showConfirm: true,
  17294. random: false,
  17295. safeAreaInsetBottom: true,
  17296. closeOnClickOverlay: true,
  17297. show: false,
  17298. overlay: true,
  17299. zIndex: 10075,
  17300. cancelText: '取消',
  17301. confirmText: '确定',
  17302. autoChange: false } };exports.default = _default;
  17303. /***/ }),
  17304. /* 103 */
  17305. /*!******************************************************************************************!*\
  17306. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/line.js ***!
  17307. \******************************************************************************************/
  17308. /*! no static exports found */
  17309. /***/ (function(module, exports, __webpack_require__) {
  17310. "use strict";
  17311. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17312. * @Author : LQ
  17313. * @Description :
  17314. * @version : 1.0
  17315. * @Date : 2021-08-20 16:44:21
  17316. * @LastAuthor : LQ
  17317. * @lastTime : 2021-08-20 17:04:49
  17318. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  17319. */var _default =
  17320. {
  17321. // line组件
  17322. line: {
  17323. color: '#d6d7d9',
  17324. length: '100%',
  17325. direction: 'row',
  17326. hairline: true,
  17327. margin: 0,
  17328. dashed: false } };exports.default = _default;
  17329. /***/ }),
  17330. /* 104 */
  17331. /*!**************************************************************************************************!*\
  17332. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  17333. \**************************************************************************************************/
  17334. /*! no static exports found */
  17335. /***/ (function(module, exports, __webpack_require__) {
  17336. "use strict";
  17337. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17338. * @Author : LQ
  17339. * @Description :
  17340. * @version : 1.0
  17341. * @Date : 2021-08-20 16:44:21
  17342. * @LastAuthor : LQ
  17343. * @lastTime : 2021-08-20 17:14:11
  17344. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  17345. */var _default =
  17346. {
  17347. // lineProgress 组件
  17348. lineProgress: {
  17349. activeColor: '#19be6b',
  17350. inactiveColor: '#ececec',
  17351. percentage: 0,
  17352. showText: true,
  17353. height: 12 } };exports.default = _default;
  17354. /***/ }),
  17355. /* 105 */
  17356. /*!******************************************************************************************!*\
  17357. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/link.js ***!
  17358. \******************************************************************************************/
  17359. /*! no static exports found */
  17360. /***/ (function(module, exports, __webpack_require__) {
  17361. "use strict";
  17362. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  17363. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 64));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /*
  17364. * @Author : LQ
  17365. * @Description :
  17366. * @version : 1.0
  17367. * @Date : 2021-08-20 16:44:21
  17368. * @LastAuthor : LQ
  17369. * @lastTime : 2021-08-20 17:45:36
  17370. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  17371. */var color = _config.default.color;var _default = { // link超链接组件props参数
  17372. link: { color: color['u-primary'], fontSize: 15,
  17373. underLine: false,
  17374. href: '',
  17375. mpTips: '链接已复制,请在浏览器打开',
  17376. lineColor: '',
  17377. text: '' } };exports.default = _default;
  17378. /***/ }),
  17379. /* 106 */
  17380. /*!******************************************************************************************!*\
  17381. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/list.js ***!
  17382. \******************************************************************************************/
  17383. /*! no static exports found */
  17384. /***/ (function(module, exports, __webpack_require__) {
  17385. "use strict";
  17386. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17387. * @Author : LQ
  17388. * @Description :
  17389. * @version : 1.0
  17390. * @Date : 2021-08-20 16:44:21
  17391. * @LastAuthor : LQ
  17392. * @lastTime : 2021-08-20 17:14:53
  17393. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  17394. */var _default =
  17395. {
  17396. // list 组件
  17397. list: {
  17398. showScrollbar: false,
  17399. lowerThreshold: 50,
  17400. upperThreshold: 0,
  17401. scrollTop: 0,
  17402. offsetAccuracy: 10,
  17403. enableFlex: false,
  17404. pagingEnabled: false,
  17405. scrollable: true,
  17406. scrollIntoView: '',
  17407. scrollWithAnimation: false,
  17408. enableBackToTop: false,
  17409. height: 0,
  17410. width: 0,
  17411. preLoadScreen: 1 } };exports.default = _default;
  17412. /***/ }),
  17413. /* 107 */
  17414. /*!**********************************************************************************************!*\
  17415. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  17416. \**********************************************************************************************/
  17417. /*! no static exports found */
  17418. /***/ (function(module, exports, __webpack_require__) {
  17419. "use strict";
  17420. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17421. * @Author : LQ
  17422. * @Description :
  17423. * @version : 1.0
  17424. * @Date : 2021-08-20 16:44:21
  17425. * @LastAuthor : LQ
  17426. * @lastTime : 2021-08-20 17:15:40
  17427. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  17428. */var _default =
  17429. {
  17430. // listItem 组件
  17431. listItem: {
  17432. anchor: '' } };exports.default = _default;
  17433. /***/ }),
  17434. /* 108 */
  17435. /*!*************************************************************************************************!*\
  17436. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  17437. \*************************************************************************************************/
  17438. /*! no static exports found */
  17439. /***/ (function(module, exports, __webpack_require__) {
  17440. "use strict";
  17441. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  17442. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 64));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /*
  17443. * @Author : LQ
  17444. * @Description :
  17445. * @version : 1.0
  17446. * @Date : 2021-08-20 16:44:21
  17447. * @LastAuthor : LQ
  17448. * @lastTime : 2021-08-20 17:45:47
  17449. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  17450. */var color = _config.default.color;var _default = { // loading-icon加载中图标组件
  17451. loadingIcon: { show: true, color: color['u-tips-color'],
  17452. textColor: color['u-tips-color'],
  17453. vertical: false,
  17454. mode: 'spinner',
  17455. size: 24,
  17456. textSize: 15,
  17457. text: '',
  17458. timingFunction: 'ease-in-out',
  17459. duration: 1200,
  17460. inactiveColor: '' } };exports.default = _default;
  17461. /***/ }),
  17462. /* 109 */
  17463. /*!*************************************************************************************************!*\
  17464. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  17465. \*************************************************************************************************/
  17466. /*! no static exports found */
  17467. /***/ (function(module, exports, __webpack_require__) {
  17468. "use strict";
  17469. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17470. * @Author : LQ
  17471. * @Description :
  17472. * @version : 1.0
  17473. * @Date : 2021-08-20 16:44:21
  17474. * @LastAuthor : LQ
  17475. * @lastTime : 2021-08-20 17:00:23
  17476. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  17477. */var _default =
  17478. {
  17479. // loading-page组件
  17480. loadingPage: {
  17481. loadingText: '正在加载',
  17482. image: '',
  17483. loadingMode: 'circle',
  17484. loading: false,
  17485. bgColor: '#ffffff',
  17486. color: '#C8C8C8',
  17487. fontSize: 19,
  17488. iconSize: 28,
  17489. loadingColor: '#C8C8C8' } };exports.default = _default;
  17490. /***/ }),
  17491. /* 110 */
  17492. /*!**********************************************************************************************!*\
  17493. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/loadmore.js ***!
  17494. \**********************************************************************************************/
  17495. /*! no static exports found */
  17496. /***/ (function(module, exports, __webpack_require__) {
  17497. "use strict";
  17498. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17499. * @Author : LQ
  17500. * @Description :
  17501. * @version : 1.0
  17502. * @Date : 2021-08-20 16:44:21
  17503. * @LastAuthor : LQ
  17504. * @lastTime : 2021-08-20 17:15:26
  17505. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  17506. */var _default =
  17507. {
  17508. // loadmore 组件
  17509. loadmore: {
  17510. status: 'loadmore',
  17511. bgColor: 'transparent',
  17512. icon: true,
  17513. fontSize: 14,
  17514. iconSize: 17,
  17515. color: '#606266',
  17516. loadingIcon: 'spinner',
  17517. loadmoreText: '加载更多',
  17518. loadingText: '正在加载...',
  17519. nomoreText: '没有更多了',
  17520. isDot: false,
  17521. iconColor: '#b7b7b7',
  17522. marginTop: 10,
  17523. marginBottom: 10,
  17524. height: 'auto',
  17525. line: false,
  17526. lineColor: '#E6E8EB',
  17527. dashed: false } };exports.default = _default;
  17528. /***/ }),
  17529. /* 111 */
  17530. /*!*******************************************************************************************!*\
  17531. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/modal.js ***!
  17532. \*******************************************************************************************/
  17533. /*! no static exports found */
  17534. /***/ (function(module, exports, __webpack_require__) {
  17535. "use strict";
  17536. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17537. * @Author : LQ
  17538. * @Description :
  17539. * @version : 1.0
  17540. * @Date : 2021-08-20 16:44:21
  17541. * @LastAuthor : LQ
  17542. * @lastTime : 2021-08-20 17:15:59
  17543. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  17544. */var _default =
  17545. {
  17546. // modal 组件
  17547. modal: {
  17548. show: false,
  17549. title: '',
  17550. content: '',
  17551. confirmText: '确认',
  17552. cancelText: '取消',
  17553. showConfirmButton: true,
  17554. showCancelButton: false,
  17555. confirmColor: '#2979ff',
  17556. cancelColor: '#606266',
  17557. buttonReverse: false,
  17558. zoom: true,
  17559. asyncClose: false,
  17560. closeOnClickOverlay: false,
  17561. negativeTop: 0,
  17562. width: '650rpx',
  17563. confirmButtonShape: '' } };exports.default = _default;
  17564. /***/ }),
  17565. /* 112 */
  17566. /*!********************************************************************************************!*\
  17567. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  17568. \********************************************************************************************/
  17569. /*! no static exports found */
  17570. /***/ (function(module, exports, __webpack_require__) {
  17571. "use strict";
  17572. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  17573. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 113));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /*
  17574. * @Author : LQ
  17575. * @Description :
  17576. * @version : 1.0
  17577. * @Date : 2021-08-20 16:44:21
  17578. * @LastAuthor : LQ
  17579. * @lastTime : 2021-08-20 17:16:18
  17580. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  17581. */var _default = { // navbar 组件
  17582. navbar: { safeAreaInsetTop: true, placeholder: false, fixed: true, border: false, leftIcon: 'arrow-left', leftText: '',
  17583. rightText: '',
  17584. rightIcon: '',
  17585. title: '',
  17586. bgColor: '#ffffff',
  17587. titleWidth: '400rpx',
  17588. height: '44px',
  17589. leftIconSize: 20,
  17590. leftIconColor: _color.default.mainColor,
  17591. autoBack: false,
  17592. titleStyle: '' } };exports.default = _default;
  17593. /***/ }),
  17594. /* 113 */
  17595. /*!*************************************************************************************!*\
  17596. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/color.js ***!
  17597. \*************************************************************************************/
  17598. /*! no static exports found */
  17599. /***/ (function(module, exports, __webpack_require__) {
  17600. "use strict";
  17601. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  17602. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  17603. var color = {
  17604. primary: '#3c9cff',
  17605. info: '#909399',
  17606. default: '#909399',
  17607. warning: '#f9ae3d',
  17608. error: '#f56c6c',
  17609. success: '#5ac725',
  17610. mainColor: '#303133',
  17611. contentColor: '#606266',
  17612. tipsColor: '#909399',
  17613. lightColor: '#c0c4cc',
  17614. borderColor: '#e4e7ed' };var _default =
  17615. color;exports.default = _default;
  17616. /***/ }),
  17617. /* 114 */
  17618. /*!***********************************************************************************************!*\
  17619. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/noNetwork.js ***!
  17620. \***********************************************************************************************/
  17621. /*! no static exports found */
  17622. /***/ (function(module, exports, __webpack_require__) {
  17623. "use strict";
  17624. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17625. * @Author : LQ
  17626. * @Description :
  17627. * @version : 1.0
  17628. * @Date : 2021-08-20 16:44:21
  17629. * @LastAuthor : LQ
  17630. * @lastTime : 2021-08-20 17:16:39
  17631. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  17632. */var _default =
  17633. {
  17634. // noNetwork
  17635. noNetwork: {
  17636. tips: '哎呀,网络信号丢失',
  17637. zIndex: '',
  17638. image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABLKADAAQAAAABAAABLAAAAADYYILnAABAAElEQVR4Ae29CZhkV3kefNeq6m2W7tn3nl0aCbHIAgmQPGB+sLCNzSID9g9PYrAf57d/+4+DiW0cy8QBJ06c2In/PLFDHJ78+MGCGNsYgyxwIwktwEijAc1ohtmnZ+2Z7p5eq6vu9r/vuXWrq25VdVV1V3dXVX9Hmj73nv285963vvOd75yraeIEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaD8E9PbrkvRopSMwMBBYRs+5O/yJS68cPnzYXel4tFP/jXbqjPRFEAiCQNe6Bw/6gdFn9Oy9Q90LLG2DgBBW2wyldIQIPPPCte2a5q3jtR+4ff/4wuBuXotrDwSEsNpjHKUXQODppy+udYJMEUEZgbd94DvnNwlA7YGAEFZ7jOOK78Xp06eTTkq7sxwQhmXuf/754VXl4iSstRAQwmqt8ZLWlkHg0UcD49qYfUjXfLtMtOZ7npExJu4iqZWLl7DWQUAIq3XGSlpaAYHD77q8xwuCOSUoXw8Sl0eMux977DGzQjES3AIICGG1wCBJEysj8PXnz230XXdr5RQFMYbRvWnv6w8UhMhliyGwYghr4Pjg3oEXL34ey9zyC9tiD2ml5h47dr1LN7S6CMjz/A3PvHh1Z6UyJby5EVgRhKUe7Kz/JU0LfvrJo5f+Y3MPibSuFgQGBgasYSd9l6GDsup0WS/T/9RTp9fXmU2SNwECdQ92E7S57iaMeJnPQLK6ixkDLfjlb7546RfrLkQyNBcC3dsP6oHWMd9G+V3JgwPHh7rnm1/yLQ8CbU9Y33zp0j+nZFUMb/DHmB7+SHGY3LUKAk8cObtD00xlHDrfNge+Z2ozU3c9dvx4Yr5lSL6lR6CtCWvg6OAPw9z538ZhhZRl6XrwhW8du1KX/iNejtwvPQIDR8+vSRqJ/obU7GupjdNdh2gW0ZDypJBFR6BtB2rg2OVtuub9JcmpHIpBoK1xfffLzx4f7C0XL2HNiYDp6bs9z23Ypn1fC1Y/9PCFDc3ZW2lVHIG2JKzTp4Ok7nv/G6Q054MIvda+bNb74pEgKGtwGAdL7pcfAa8vOKEZ2kyjWuLr7uDh+/qvN6o8KWdxEWhLwroyeek/g4zuqwU6kNrhyZcu/UktaSXN8iNwuL9/RuvVXtJ9PbPQ1vhmcP6t9+47u9ByJP/SIdB2hDVw9MJHQFYfrQdCph84evFX68kjaZcPAZJWwjMXRFpJ2zr91tfuvrh8vZCa54NA2xGWrunvmg8QWCJ/N4ir7fCYDxatkOeBB7an501agXbygVdvv9IK/ZQ2FiPQdi9osGbH+zRNf7y4m9Xu9Me7N9nv0HXdr5ZS4psHgXpJC9P/wDRTx0Vn1TxjWG9LGrbaUm/Fi5meSvcrkxf/Cg/ow9XqAUk91v3qHT97r6471dJKfHMi8Oyzgx1Z03t1YAQVT2MwgsC3u+yXHzi0faQ5eyGtqgWBtpOw2Ol9+/TM+sTOn8L08MtzgQCy+tOHXr3jA0JWc6HU/HF5Scssr4jXcYqfP6V/T8iq+ceyWgvbUsKKOn38eJAYyl56TAuCEr2WYei//9Crd/5GlFb81kdASVopSFrerKRlaoZj9HR+700H10+0fg+lB21NWBxe2lhNHsUpDZr27mi4dV379R9+za4/iO7Fbx8ECknLCPTsTDJ17O33bJpqnx6u7J60PWFxeAcCbMV56dJfQKf1bkMLfuGh1+76zMoe9vbuPUnLsb2DtmOe5HSxvXsrvWtLBEhaTx29+Ma27Jx0ShAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaEsEVoQdVluO3BJ06ptHL34b1XRjp4Ch6Rq24+kmjG4Nwwg+9uA9u/73EjRBqhAEihAoe3xwUQq5WTYEzp0b3ZnV/Ncf6O/9AvY9wlh/6dy3X7ncN512Zw9BVLXjuAP4np44vnQtkZoEgVkEhLBmsWiKqwsXpjbPBOn3gRfenwnc+7GBe+zsjclvonFDS9nA9Iy/u3x9+vAP3735VPk4CRUEFhcBIazFxbfm0k9fHD7k+v4nQFaPQIrx8Gmyx/GJ0J/t7ez7mw0b9MmaC2pQQgh0/ZSm4g5TwueWWtqLt0HuVy4CQljLPPYnB0depTn+b3t+8B4t0AdBUv93h2H9xc6da0aXs2m+r1WQsLRnl7NdUvfKRkAIa5nG//r1oGtsZvjTgev/kqYHF/TA+AXoqv4npJemOEiQU1Eo2l+G0movBK1UBBPU7s9E1+ILAkuNgKwSLjXiqO/khVtvARH8dxDBRkMzPrF/V+9/BlG5y9CUqlXinHv9mRPXtvuus88L9H3JPv2zD2yXExCqAicJBIFWRwAvv3Xqwq0/Pnn+lv/K+ZvfPH3p9p5W75O0fxaBp793ce3AwIDMWmYhafiVgNtwSMsXeHp4eNXJC8Nf0PAdRCiuf/XgrnWUqsqotcvnl9DmRkCdweX4b9N7+m/ih+mbMraLM14yJVwcXItKpT1VRve+ArC3Qqn+3gM7132jKEGZm6tXg86J7OhDfuA/iHwPUpfUZSfu2L59tXxEoQxeyxkEgjKeOnLxHb4RqC+NY5H3+2953d4XlrNN7Vq3ENYij+yZwbG9jpt9GkBPQ5H9zgP9607OVeWp87cOQtn9zwJf+xDMNFfj+jryPqXpxj8c2Nn7P+SXey70lidu4IXzb0DNB4tr9751+HV7zxSHyd1CERDCWiiCc+QPjUCnsaqmZ62O5IN7N/VUNP48ee7mAZDTf4Tt049iUG4Guv4ZfNLos9UIbo7qJWoJEHjy+bP7fNsoOcnW0A0/aacef8PdG28sQTNWTBVCWIs01OfPj66BpfqTmq732UnjgT1bei+Vq4pTv7HM8Ceg2/o1qLQug7T+FaaM3IqTLZdewpoHgYEjV9fphvOj+OShWa5V+CxvZtpzv/LwG/aNl4uXsPoRwI+4uEYjAJ2GmdG8L0FK2mYa+tsrkdXZy+P7x2ZuHdW14P+BLdank9q6Qwd3rf+ckFWjR6Tx5Q2cP58K9Jm3VCIr1ogt48lO237r3//96YofeG18y9q7RFklXITxPXV+5DchKb3ZDMy37Nu5tuxG4R9cHH6b42QfAzlds+3EPXu2rfrBIjRFilwkBIIR7SHoJDurFU89ZOd680Gke6JaWomvjoBIWNUxqivFD87fej0e0n8Fwvr0/t1rnyqX+QfnRz7g+8FX8Rv8vL3auF/IqhxKzR2WCPxXqKeq3krDTdj2ierpJEUtCIgOqxaUakwzNBR0D09yiqePHOjveyOkpxLr9VMXb73V97S/h3nDXx7Y2fdPkAYbncW1IgIDxy5vM7LZt/hgrnLtxyaBrJNxv/72N+6tuNhSLp+EVUZACKsyNnXHvHL+1qcgNf2KbSXu2bt9dcmS9qlzo/fARgcmCtpzB3b1/Vg5QiuslLowENyDWDn8cSjl98PgdBviu03N+rl9/WufLEwr18uDwLdevLTF1YK3xnVZ2HI1bUxrT7z5zTuXdRP78qCyeLUKYTUI25OXbm4JPO00TBj+6I7+db8ZL3ZwMOiYdG4dA1lN9HWte2iuI2NAVPapC8O/CGPR34Ip/AZIbIMo7yX8G9QMbcS09P+2b1vf5XgdrXaPfiYns9oeLLEd8D1/B7Dp0E1jGP042pXQj7RKf546cmGzp+tv1TRf6YQD35/QO3seP3xow5IfC9QqmM23naJ0ny9ysXwgq98BWc0kVhv/Nhalbqe8kd/Fr8MOSEr3zEVWrwyO3I29hl+E9LUHGf+nAXI6sGPdd8uV2YphIKnE5IyL6bLxk7cn3bdkHHefrpvJAExMZ1uBZmqeNzXtfzUzk/m/ens7LjV7Px+8d9e1579/44l0duZtge+Np5zEEw8c2pBu9na3YvtEwmrAqNE8IZvNHsep5//yjl3r/0O8yFOXbv0QCO05gP0JGIL+fjw+uj91YeRh/Dp/PtCDM7Zpfmjvjt6Xo7hW9ycmJjaYduf7Hdf/8HTGfa3rG9rYxLSWnsloPg7fijZV8oFM2Ja2a9t6EJd7bCztvHP7us4rrdD/r3/7ct9I99jEI4cOiQ3dIg2YEFYDgOUJDFj1e8TqX7cT4kImXuQr5279A4DeBEX8ayvprU4N3rovcALot/TH13T0fXDTJn0qXk4r3k9OTm4y7a6PzjjORzOOvn1kbEqbnEprPhRzwAKzwFLHk05hv6Yd6N+o3R6beG50aPSdr3qV6IJKkVp5ITIlXOCYn4Yexr0w/DO6YXymHFlR0e5r7tsM3fxgJbI6fW1ivTeT+SsYmr54cFff+5Cu5X+hb94Merp6/J/PusGvTE6724eGJ7RpSFOkKPCUZvBPBccoHBet3Rwe13rX9tw/PjXzZ5hKvr8SfhWKkeA2REAIa4GD6p0feRdWBnvxjv2PckVhVfBf4A29uG/X2i+Ui2eYn8n8NryuDr3jPfWSFV5k44UT137eshIP2K7/64cObbheqZ6lCp+Ydt8TBO7vTM5od1+/NR4SFVhoLpKKt410lnE8LTMzo3V2dLznxLkhYgQ9obiVjEDln7mVjEodfYcpw+MAsftg/7qSDbAnb97sCSb0Yei2fqOcbovVqKNnNO8HmAE9Cv3Wp+uoWjt27HpXNqH9WTKR+kBHKqEFbvo5y3N/avfu4g23R45f3WGa1k9ZicTd0zPTf/f6O7f8dT311Jp2fHzmgJlI/N70jPPe4bEZ6Kg4qw0lqlrLiNKBiLWerpTW25PUbkPXZViW62ecHz+4d8PXojTirzwEyhq8rTwYFtRjvpX/rlwJ+iSXugPbMuyKBOHo3geRJtuT7PujcmVUCuPJlhnL/9NUqvMD2eyM5sxMaIlE4n7XML907tyNjcxHQjty4sZv66Z1xEok/xNW5n4uZSf+8sT5m++vVO58wkEu5sR09pd9w/rWyET2vReujiqygrSopn/zKZN5qMeirotKeTyolm7p/+X06Wvr51ue5Gt9BISwFjiGsLl6N6SrvylXDNTK70D4mX071pwtF88w6Jd/DG/1E1u26NOV0pQL71y3/8PJVOcHMzPTWkcCH2YGOaTTaS2RTN6f1fQvvvDK1bdnbO2JZCr1SeRfn05Pa1PTU0gXJBKW+ecnzlxvCGndhFQ1NRP8bcY1/vjS9bF1V26MwHwsVKiXa3etYVw1TNhYJ3TDjQCO42jJVMcez7J+t9YyJF37ISCEtahjGjxkGDr2DJZ31D8h5vUQJL5RPkXlUMM07u3qSGidICvkzzuSlmlZb0olrK9hD9v9JCrPC196JoPMAolFg6CV+PPj54YeyWecx8Vk2v1Q0rSfhFT18LnBmzBRyNalp5qrSuq7kiAsh4SFa7oZ9M0wzI+cPHOjZPo9V1kS1z4ICGEt4lhiCvZrSa2jol7qzPXJPk6nIGbVbWfUvcr7hO9MP97ZVXpggOu6ajplYStj7l1XvbRMXbPAbp6HzSSBlkraNknrvfVCcPt2sHYi7f3pTDb47KUbYxuvKqkKpYBXKBnV869c3WgbDEixAck0FGFFfEzJzbIsO9C1TyrcymWWsLZGIHoW2rqTzdo5dXyykz0NC8l779i5vu4zwM+eHVntGP5jqVTq/6AkVc5NZ3wNH2lVxNWZNIukMSjiNd9z0+CHp5DXAdX4SAg203w8GB5IATtODHzdK8C15kEjhXvNS9rWA11dnfcMDY9prscss48RySakrOLWqODCoIKAgkuVgsS0urtD60haeV1YYVbbtjUn6/74HXvW/11huFy3PwKzT1r797Upe3jq4sib9u9Y+wxe+vh7W1N7jx49v6ZzbffnQD4/Cj1Pfjx54XiBls6GVuTUc9mQsOIO9mPQFdkIRlz4fy5JLm2ZMOqTcJaXIqpcqnixVe+rdbZ3dbc2OT0D0wZIibHSksmklslknvx+//q3PiKnXcTQae/b+LPQ3r1t0969cOL6G7o6E09qgZegdMJBpVQ1DbKCpyUt6oPKz/4NEJalCAuZFIuEVBJd+jgLh4rvAiFqUVGkhJZMWFp3Z0obGSu/d5gSnWmavuO6h+/cvYHSobgVgoAYjrb4QPMUiGtj1/79jBMkLBwiTlMASlYzTkhWCJyTrGAyMOFkst/BoYMmuIIyGJYcMXMMdNwHPhYN1qWS1t6ZLGaKZL8yzFXTr15BooLLMugHMBRNKgW+It8y9TEcJGt4rvcRFCCEVQbFdg0Swmrxkb0+cf2XOzq73kgdFieEXF2jdEUJKQH6SVWQrNjtZDKlpTPp38U58iUbthk/Ph7sN6zg/xudSGvD4xkq6otcnnjyF0XRRTflkyC0IIJE1JG0QbqGNpMNp5xFhRTcZDNoj66988SFm5vv3LX+WkGUXLYxAuXnCW3c4XbqGs9hwjv+a9lsuN+ahOJSCoLjNDAFvVUll0p1aNPp6adTweSflEszPO48oFn+4yOTmR+6enOshKyYhzWpf/jDuuf6x2aV/qNRaPG/1d0gUXWCA0uu7GhMmkqmerEc8KOVU0lMuyFQ+Ylut562YX9Sncmf7Ojo3BDZWbGLtMkiUVXSWTFNuMqWuYG530f7+/tnGFboxsfdd9mm8XdDo9O7rg6NFq0CFqZr5DWlK9qV0fZqGvZchSuPlevB2VmG/hOV4yWm3RAQwmrhEcW64qu4ykfJho52Vp3J8quBYQooqWDKADftBd6HD+5efyoKj/zR8ew/hWXY56/cnFh7a3RCTTGjuMX0SVB9qzu1qfQM+jO3dBW1g6uVSHv/qVNX10Vh4rc3AkJYLTy+WA/8ou9kJjo7bOh+DLVFZ64TEbCyBktxI5PJZj56R//Gx+NdH5vM4vuI+p8NXh9LjU1iw3EZhXc8TyPuuV9wDaaCfBjTM06N0hVWQmHBDzvSDZ5tvqYR7ZAymh8BIazmH6OKLbzv0KZvJEz3ZzEFnEolaEtV2XEaCLKadrIz//TQnk1/EU85NuH8th8Yf4j9gMZUOrNkZEVZCnsbtTU9KW18GqcKFyjh420sd2+j33pg3F8uTsLaDwEhrBYf04O7N/2t7/o/C2FoGnsIy/YGlvAwSfCvZzLOe+8oR1ZT3u/5uvHJC9dGtJlMrfqjslXVHwjpat2aLi2rjFFLjUSrFUjlO0juddXSSXx7ICCE1QbjiHO0/hofbPgwpnDTOR2V6hWNQqGUx34890noet5yaO+Gko3Y45PO7/uB/lvnrwxrWdha1absbgxo1FWtwplXqYSJY5Nn5lU3bLHQmGA/yko0plVSSjMjIITVzKNTR9sO7dv8RSeb/T9BWmMkKv4D+YzBXuljV7yxd+zfte6VeHGKrHTz4+cv38JWmyUmKzSGG5z7VndoE7kz3uPtq+Welvhwm39weVjOyaoFsBZPI4TV4gNY2Pw79mz8KyebeRIH+VEZTaX0sf27+v794TKmCxNTzr/2NOPj5wZBVjjdYSklq6jN69dyKuhqmWztivYob+RTSkPbe/xMdlMUJn77IiCE1W5jq+s4dYEO6mzsYAmvi/+CrH7LDYxPcBq4HGTFVcG1ULLT5orS1ULIkoSFI2cMHKG8obiXcteOCAhhtdmo6gaOh4EWWlkyYU9gvHswXfgV19d/7+LVkSWfBrItJJhObL/p7elQR8fUZnEV70XxPc01sM+xrzhU7toRgZIHuh07uZL6xA3LBaYB+Ar8rBsfz34YX1j+D5eu317QNGy2xPquSE4mDuXb2IujY2AgytNE67RiKFshzuwCR5s9ZSMlsK0QEMJqq+GkBKOF5yFzRoidK5BoFCeMjM/8mG+a//Xy0Li55KYLBRiTrGjwOQ1br4VMBQuKVJeQKVPxMLlvPwSEsNpsTEECmBLSgbHUpwD1YGwse59l2p+9fmuig4fiNZIowrqq/6Xeqm9Vh9JbjcOKvqFtACX7gV8kTVZvkaRoRQSEsFpx1OZoM2iKxxuHLtDcsZlgLzYZfv7m7XSv+r7fIm234XSP/8o5ktWqzqSyZr89PoXPYDTYkZvziw0NLluKayoEyq4iNVULpTF1IaDjHHZmoAW4aep9geN8fiLt998cGYdtVp7K6iqzXGJFUCAi7jdkuapsBJKcPBwgyP8YRyV7B04Q3dDbpY3jg6gupoMNla5U41BbUN9n0sr1ScKaHwEhrOYfo7paCAW0WiWknihhW/0Tabf/6tDtxpIVSIhGnz1dSXUkDL8fSHKi4/lWPId9Kp3Vxqegp8J/m9f14D6DQ/nmb281FwgkZ1Dj7bnSSFx7ICCE1R7jmO8FJJr8jCvjeNrIxFjDJBpKVaSlXhwDw384MyucBoLAGEfHI5ptO6n1YAq4FjorH9IWjUOnFlF3pj62aui3whbI33ZGQAir/UY3XCVEvzgdw/8NcSyGUhSlpVWQrFg2p39xp0JYLyIohaXxdZ2FGofG6yi85/QS32F0Asu8URgu1+2JgCjd22xcsVElPC85169Gaa1YTkRWJKpSqooBiQQzONvq9sRULKKxtzzAEJw1api2EFZjoW3K0oSwmnJY5tcoSD09HanEDztubnfO/IopyUWC6sUmZUpW5aSqkgwgK04DxxaZrFivacCaIdAuH9zaM1rSDgloOwSEsNpoSMenvU93dXb+EE5taFivKElRqd67qrNmsqIF+yjMF/i56MV2JqadYKxXMDXM6+4Wu04pf/kQEMJaPuwbWvPticwj4Il/NnTrdl7JrqaDC5wTUle1GmdWWVCw1+JotjA6PgnThsIdQrXknF8arkJi/+R355dbcrUaArU9ha3WqxXW3tHR9C5dN//T9eEJ3aGdUwP7T0V7F86Mr0VW4mF6o2NTS/ilaB2HDmb8wA2+08AuS1FNjIAQVhMPTi1NgwRkGKbxRxMz3uaJSRzVUkumOtLwo6Zc7aOkVdEhynN9NQ1cyuNqeEqD67mX9TXGyxXbJhFthYAQVosP58S0909czfqJqzdGODVqaG/IUbCWr2p0yukfp4FUtDfeir1yl8IPUGjPHFy/fqJyKolpJwSEsFp4NEfT6Z3YBvOp8MvMc0hAi9hHNQ1cBrJil5TUZxhfXsTuSdFNhoAQVpMNSD3NMTzzU1PZYAM/ProYkg3UV5rHT8lXmA7SwnwEq4FLLVkRI04HM+n0LdvzvlEPZpK2tREQwmrR8ZucCd7hePr7rw2N5PfxLUZXON1zHKz4kb0KnIttP6Njk8tyaimbwXPrsW/yq3v3bhoqaJZctjkCQlgtOMCYCnU4GedTI+NpQ32XbxH7QOmKG5nzdIWZJz8HNkKygqI9TmSL2JSiovGVn0A39c8WBcpN2yMghNWCQ4zPc0HRbr6GEs6chJFnmfl3knZO4/hmII1B6fiFG9br0s6qAeXPp2WUrhzHeXH/jr6n5pNf8rQuAkJYLTZ2kK7Wul7w6zeGx9DyUsZovOodOizosTg1TM9k1Wogpa7lIisOF+w48E/7E5B1Y/cgtdizsBKbK6c1tNioT6X9n3MDcyePOo7OoJqrC6S0+ZIYV+GSOHxvc18PJCxXG4ed13I727axqTp9yk9rX1jutkj9S4+ASFhLj/m8axwdDdbgELxfGsLpoZyqVXPVU1QugVJUV0dC27p+FaaBWWxknq6ceAljTNMiAf/BoUMbJpewWqmqSRAQCatJBqKWZpgJ731Zx9pJM4aK0hXe5vlKVFEbKFlxs3PvqpSSqpbzKztRm+gnEkktnU6/2GFMfa4wXK5XDgJCWC0y1iAR6/Z49iOjY7C5qkG6mk+3SFQGlEP8FFdnygrNFqBsn1OxP5+K5pGHbcBhqhT8fqu/v39mHkVIljZAQAirRQYx7Wj3Zj3tddQjVVJ4l50CMjHe8mqOTJCCvmoTyIrENXx7Uinbm4Gs2PZUqkObnp76i0N7N36tWl8kvn0RaGnCGhgILKPn3B3+xKVXDh8+nPseX3sOlpt13+P4uonv71WeDqLr1ampFB8S1JrulNaHc9rTMxltcpofOeWns0rTLkeIZUHRnpm5YibMf7kc9UudzYNAyyrd8ZLpWvfgQT8w+oyevXeo++bBtaEtQd9s1/ffRsV3I6eDJCp+nourgH04UZQnhIYfWm1o8xdUGCU8/E/bil89sH3dlQUVJplbHoGWJaxnXri2HTvd1nEEcCBS3z++MLi75UejQgcmJjL92ax/gNJPo6QekhVXAbdvXI3D+XQ1Bcxiu02zTAEjKFIdHTQS/S8Hd2/4YhQm/spFoCUJ6+mnL651gkwRQRmBt33gO+c3teNQYin/oG6aKX5rcKEukqqoWN+Ij5vy81v8UATDG0WGC21jlJ96K6wKPpWd8H8jChN/ZSPQcoR1+vTppJPS7iw3bIZl7n/++eFV5eJaOczX9Z2YvM1LPxWpocBHKv8qHHdMqSphGUqqahaThfj40ITBcbLnsDj6oXvu2bS4n96JVy73TYtASxHWo48GxrUx+5Cu+XY5RH3PMzLGxF0ktXLxrRoGNVPPfNtOolIrgElLGYH2wbZqcipdIFVFlDbfGhqfj9bskCaHHS/7gTt3r73Y+BqkxFZFoKUI6/C7Lu/Bl1jmlKB8PUhcHjHufuyxx/g5lbZw+BL7bX4EoiZqyS0T0uM0j1+82QSl+ua+bhxj7GjD2LicwWkLzaarigbKsmDJ7gcTmezMBw/t3ixntUfAiK8QaBmzhq8/f26j77pbaxo3w+jetPf1B5D2RE3pmzyR4/nH+Mti4Wx1dUrCHO0lSVGqskFUnakkpn6mhu086jgYHkWTW3Wbo4Tli6L5gqYHE47vfeDufVv+YflaIjU3KwItIWEdO3a9Szc0ElDNDqcLbHjmxas7a87QxAnX9ljfxcr+Mzs29ykpi1O8iJjoR/cm5o7dnUl89LRLW93dyWmVIip+Kp7pmlWqIvQ8Mga9Gslm3Efu3LX+K008HNK0ZUSgplnGMrZPGxgYsIKeXa/TA61jPu0w0+7xBx/cd3M+eZspD0wbDgWm+RXP13cODY/jWGKuGAb48jG+agNpilbqlKZoWDqDY2AyjtNUlupzYZlKpXgaxIVMNv0zd+/d+uxcaSVuZSPQ/IT13TN34QRvZW81n6HSDdMLUqmjh9tgd//Fi8OHEl3JL3Z2dh3MzGA7XU664llVWRz/QhLjNYmsmaWp/DjCjqIDdlaZTOZZ1/A+fGj7hjP5OLkQBMog0NSE9cSRszuswNhdpt31BRnazM3U9IuPHDrUuG+419eChqU+cvzqjp7u5P9KJpMPpqc51Zv9QntLkFQBEqZluVCw/7nhaP9i376+8YIouRQEyiLQtIQ1cPT8GjOw7vE8tyFtxBrb2MBXdh579FF99g0vC0nzB548ebNHT2l/aFmJj1BPBYyav9EFLaQ+jdPAVNL8/pZ13a8qiJLLOhAAjvrTRy/d0enbF+69d0tzHFhWR/vnk7Rple6mp+9uFFkRGF8LVj/08IUN8wGp2fIcPLh+4sCu9R+F3ucj0MLf4vaVVnChqYWmdaQS2jpY2vd0djh86Vqh7c3Yxm8dudTPxaW0lrn7yJEjZW0Tm7HdC2lT0xKW1xecgHE3FDWNcb7uDh6+r/96Y0prjlIO7ur7TOD5b3ayzt9ylY0Gl83qKFXZsCXrXdOlrV3djf2LBr556JOshLDmMWhPPXV6vav5O5jVxYLUhNl3iIbV8yiqpbI0bQcP85C2Xu0l3dczC0XUN4Pzb71339mFltOM+Q/0rzu5f2fvu1zH+QDOt3uZ0pbVRMRFouJK5qqeTkhVqyBdtdUmhGV5JI4cudrpd5kHiyp3tTU/8s6r+4rC2vCmaQmLWJO0Ep65INJK2tbpt75298U2HLuiLh3oX/95L+0/kHUyvwTieiUJHVEimVzy1UKeWMqv2pCoKEVFRNXT1aHawnBx80eAZj7TwcxdAc5Gi5fiaNnNT37nCk4xaV/X1IRF2B94YHt63qQVaCcfePX2K+07fMU9U7qtHev+xE/7r3cc70O+6w1gxuV0dHZiusgvJS/O7IskRXLs6KCxqj+B26t9a3uUREWi4plbQlTFYzXvu+7tB3EIUGel/L6e3TNw5NS8zYAqldss4YvzBC9C7559drAja3qvDoyg6pwCP+KBZaVOPPjazS1vMLpQKE9fuPnawDB+EqehPwzWuAuSl8LPg90WVxhJJPWQCUmPBAWTBEz1TFUGpqO3wYYvIPgr2az35a2b1/50V6f1e1NTlVcvEzB0xRekj67usu5FmS2/crvQcaol/zeeObfTSOj91dIq28PxiaOHDx9quy8LtQxhcZBqIS0Dhkl2l/3yA4e2j1Qb2JUUD1Iyz1waOQib0vsxKXsAFvH3wMB0JySwtZC+DBPTN5BOCEnhrI1BuKe9l6tIzsVCiD6E0DOabrwI2elZ09aP7N3aNxjheXvK+a1OENa0EFYEyYL9rz072Ju03ZpNQKj7Xd899cKhNrA9LASvZTY/s9GcHoK0XsrakLS8UklLxyl+/rj+/Qfu2367sJNyTS7SuZfneO7ffweBGScu3NwAqWgrTvTc5jjBZmw87tMCfRXYKQWOgula4OiBOQUZ7DZuhrAGdQXxV0zPuCaGnkv3VPGHOpPw7+QPR62OM5HhdNddGOeX2kmCbSnC4mDlSStVTFr4eLljdHV+702vWz9R66Cu5HS5h5hmHvz3QiOxwJTRo2BGgY06dm7OVhewYGAY6s75oD+ZDs4JPY9JyqSCQ7ABqftd5VFM3/j2Ja4mtsWpJQSq6ZXu5UZTKeJnsHpohiYPRqBn04nkS2+CQWW59BK2dAjwS0Y4IHDz2ERWG8Gnwm7iK9W3sFmbvrqGPzw6gW8eTmvTM07XmTPX28KYd7EQ3rjnvv1QFHbPt3zT9DcMPHd+13zzN1s+/hC2rKOo7NjeQdsxT5LEWrYjbdLw05eHtwWe9jl0542u62HZHZIVpalY/yIlP5X3MHYddLLZfy4fmYiBhNuB509vw+rG3tKY+kOwGHLi7W/cS91jS7v4s9TSnZHGLx8CICH9lXNDX+zpWfXuycnaBV2e3e567nAm4973qv0bzy1fD5qr5oEB7KXt0u7B3Loh7yhWVfypbOalh9+wr6U3mbfklLC5Hi1pDRE4ef7Wj+EEiZ+amqpvJT2bzWjJRLIPR3n9riA5i4DZg720DSIrlsrvHXSZ9p7ZGlrzSgirNcetqVp9/vz5FJTqj6JRejTdq6eBMzNpHP9s//QrF4bvrydfO6f1JrCX1mvcXlo98Kembjotr3wXwmrnp36J+pYNeh5JdqRem83O77gxkpxtW3bgOZ/g1HKJmt3U1Rw+3D+zrc89aunagnWzpq6PdxujLz388L4F78tdbtCEsJZ7BFq8/sHBoMPX/I9hyrGgnuDUUZzrnnz7yQu3HlxQQW2Ued++fZmJ1e5LoPB5k5ZpWCPXz+08du+99zrtAI0QVjuM4jL2YcIZeh+2+9wF49MFtYJSlgmHE0g/JlLWLJQPg7RmhtyXsJ18eja0tivsXhj6xy9ve/mRR5TRcG2ZmjyViN9NPkDN3Dz1FW5z9XM4i+s1ME1YcFNpUIrVLHzJzHnwjl0bn1twgW1UwPHjxxPXpztejR0HFTc+F3YXRwxdfdM9W08D0zrs4wtLaM5rkbCac1xaolWOvurhZIPIih0OdVm2haNTfqUlAFjCRnJP4HBn+iUqz6tVa2nGpTe/etsP2o2s2G8hrGqjL/FlEQC5GHghfplSUSMdvwaEA/9+4vjpa3c2stx2KIsfUek2dr+EuXNF2xEjSJx98w/tbFt7NiGsdniSl6EPp84O3W/Z1oPzXRms1GRKWdCJdeCIlJ+vlGYlh997r+70+EPH8NHJEtLCauCph+7bmj81ox1xEsJqx1Fdij4Zxi9AT2KSYBrtslgxhOD2gWOyz7AstFzx6zFHj1mGobYUYAgC9cHge3ddK5uhjQKFsNpoMJeqK6+8cm0X6noXiWUxHA8WxAdWNyQM45HFKL8dyiRpueM7jllmMGpnjO+1w9fNaxmXxiogaqlR0jQdAkeOBPjczrnOiQ6jw88ESSOA6KT7iQzOHEvavu1pZsLQg4QPP/DdZG9Xx/vWrOr+mfR03SvtNffdxleAQIgvTzjBT0w409Mpu2faufZy+vDhw5WPMa25dEnYqggIYbXqyNXY7i/jCyvdfmaVb5hdVsLp9LJGp43j1/1A7/RdvdMwPRzEboRnLVHe9vEvL3eXBOB4ZMta22H+TiqV2LJQ26u5u6Bju44Z3J7O/Lvp6cwPmBanOwQ4uNHRTWMK21bSvh1Mm642nTWCtKkH07rnTE72aOO0XZq7bIltVQSEsFp15HLthg5J/+aJE12m3tVjOPYq1/dW4cTjHnwMYhXOce8xDd3y/PJW6OpMdsTRVy4iK/rKMR/jwvz825VIHFzT3fkx13UW/dnhRy3GJyeeHEs7n1XNibUPFvY6vtGDw5vV9w0Vofn81qGhZfDhi3HX8SfQ/3HPMse9CWcCX0gel2OIFJIt+2fRH7qWRaYJG85NxldGzV4tGayFSLQ24+q9ULyu9gJfMU5ELTn6wUISTl03NHz1KzyiJLqmX657OLLdSJgoXTO7cBxyN172blier4YCvBsFdSNXV2dC35tKJrbzfPfFdjwvC/qs9MSMxxNRsSqmT6LhUDQHE+jUBE7UnATXTuLsrRn01K2l/x6+qItiR3TNG8V59KNB0DGSfNXGUXwJY2Gm+osNhpSvEBDCasIHgVLTt75/aQ0MnXpBNb2QgNYEntfr4wu/nBYpKQLtxtdwAh0SBX3VDe7nM/Ha5vf1Fb/CURS2bCTAWWuxR229qRsbQQQbUed61LfW14JVKKsTJ5sk8WUcHbtlNANyTOhgcmAGKH7p3m1FWpqtuZCu+LByVdKHVMjpKEQrBwIW9tnpXOIH+QTDSH/D9f0bmCLewDn1I4HmwtAypPDZ/oe9oXKf/aMPsWxSs/RR13FHrURiZE1gDR86tKHEdCDMKX+XCwEhrOVCvqBeHNaW6ui11/mWDtLQ1kEiWodXE4rwYgepAPssTPCMOjIdAk94TZ8pMZjch8HjDorGFUTUAwlkh64be0A9/ZCatiDZWtOyE7ClQmIdJICJFYhA+TRV4Fo5/QIHiUvrTEbkVRCxiJfsSBbfYk87OTExXxdazY5yUgiRKfpHQ1YSkONmAZY+gV4NIeVFfCXoLNA5h/Plb5LzWAyzF+IVXdNnvO/6GcsyhjC1vmWZ7s2pO3fdOqzriy9asnJxZREoerDLppDAhiIAEtCfO3F5rW0a6z1PX4/nf53nG5RqqrpieSnULEVh8cx4E7ugH78H8tG9eP/24oVezY+pkpA8b/abhPF8le75BqdsXUtaFeaTlTI2IByEoU1l8oq1mkokcZHElIRoWmpejMMCMyCvQXyy7JjjuUcgOl4tLCzCMpTHgFpcgkViX/dH/ax2Szf8m2Yqc/MN+1r7BM/C/rfCtRDWEozSkbMjq7NTY5t13dqE6dhG3wsSqlp+C9DDi0ifLrqmT1f6BgUaPjiHN0lJAGAfvpWcI4XjiHIMF6ocO/EjmMa9HeelQ1LT1PRpoce/sJwOTCQtc+kfGQp6Uxl+9JWtmL+jNEaJ0gKBgbsygR58B4sHfwV5aliVWg3vCHv6ymHcdG868IzrVsK6pnd71+/dsmXxbD3m3/W2ybn0T1/bQFe5I8euX+9ybuqbXMPbDA7ZCKV4uMOecyz+9OfmWvj9x9zEw6JW+JuOX298WhE6qtwLEV3TL1tb/AWj7sqwfqaro/sdmcyM+vBp2XzzDEzaBiQsNH+e+eeTjQ+ohwqnG0BYhfVzNYKrkOmpyauYYH8KvD8G6RPBszrC6Jq+ystl0ghzXEZjR5+O4+iZwTh+eG7Yqa5rq/3hGzzTSkXKn4YgIITVABjBP+ZzP7i8ydasrZCetuCHvIvFRs92SEdlpnCYE2LOQi12OA7RNf1yjrphHIyE9yOXPnfNMDg70DpdTf8DWDKs5rRvMVwChAWrUgh21HzllD0NrigqlxKVC7bKQuOOWeGiuI7OTkhb6T8C/Xw3xkel9cXxj6eIxiY3Hhx3X9dHsWJwDaa3l1+zd9Mt/F4tUk/ijWnP+/DBb8++LWqvnh0c7NDGta0pO7kl6zpb8AJzEUr91kYEFdeBRCt69Nm4+AsSl6jwjVGckY6VwPwUpLhLURx9xliWvxFHi/w+zB0SWCnLsVpxnoXesSI2ngp4zmRJXPgf/0IleGH51R6uwjeX5MR76qtITh7+8N9Cp4GF7Sm8Zl1s35pVXVomm/5c1vG+Wm284njHJeJq44/FjixUAld8w7uijW6+xo3MhW2S6+oIVHumqpewglJ87+LFtcFUcqur+1vxwPcZJqYPMOyhXw6GKI4+4/GwQpjCBhe+6XDIpFb06PM+np5hhS5eXzw9bLJ2pBLGv4Fe36BU4kA6IQGw8MUY6MJywVeqDs54Z69zrWdY7jI3G1ZtUiSV6zzDI3IqLLew/wu9jspl+yywrA1pEed5QceXPT3jBb/DLrA5ua5UHZ/4eMTbFx+fwvE3DJO8fANrjlctL7giJhRx9MrfR89R+VgJ1Y6currONuwd0FNsxwtV02mPlWGLy1TxlPHf6Hh8PH9xesvw9yRM+5PIRT2ZIgVKKZxWUY/PT8aTFPji0i3m4Ed1hDWV/7uY9bNGtiGqAyorJRWSqCgdkrQiR5KddrwPlsq8xfhG6efvx8dvtiQczDdmmPaldDBxSVYeZ3GJXxUMWzxq5d4fPz7Ym7X1HTAL2A7NqtJHEQ3qtCPjw3LoxB/v+OMZ5VVzR5aHWRuErYA+y4uu6fM+Xl9J/lh7bFvbY+vmv0bWos9tsXAWSLIiaSnyApHxJz6SbFSFuXTw8i86r5vVRW1m+6IHmUREAuI0lcREP5q2ztWPrO9/YK54xsXHI56+cePvj3qBfimZNS+J5FWMcrjptThsRd4dPX9+DcwEd5iQphwozfkCwJKaLv9ewHYKeicfSudwShcnJDBBOD3MTwGRO0cqLIj73jQTaejDBYaPHTBgJ/i5+HyYijd95sFhRzkzB7yL2IrCtGwezj9nOQVTUlfPwiicifnu5J0qHHd8mXHIG6ZD7JQqIk9kJK6QwAokMWRUhMaSeJ0vcfaiXNhs7PyuwpYV51Vh+EM/Pu2M9GckpyiOuZm2Wvtom+Y4me8xPbvIIujzPu6Wbvyt1ejL3U7Sv/v754ZHsORwaX3KGdwiJhO5pzY+Mivk/urVq52jTnIXlEc78LKu8qAMx/G8kHhyOicosz0ovM3IrIDKb15HSvDoOoqv+hMLYCOWI8ash0vmufryZVcqLz4u8fym3ov1xT/EVp4UDUTn4/iS0xW+sZTMojASmLqGp64iH4FRXJQ2TKj+lv7JVRTVxwQkm9APyaboGnGMzSVR6VR87ipsVT645ovOzi5tamb6zzB1/nqzjz+s9YetwLioZW5C8jq08K9+1IxS8yQsfF6ap1WL2BK8VOaJc6NbPcPrx7wJ++hmHQUPvOaQgMJ3ETtVlERDP0wVsQ19uPgcLQyt/Dc+p4jlL6k/1xa2qVyh5ApEzEoErm/DsPOTXV3de6anq36roFyRdYWVbVSshHJEMt98saIXfIu9koplYZL6m/hUz7kS/Jt0/PE8+Jj6X/Y6k+fv2tA1BKIvB/OC8WnGAmp5dpqx3XW36fjgYK/upXbhFd+BrRlqn16MfkrspkoC4hnirYjbUVWzs4rHx8uL3cerjwt0TA4RcBcsuX8Rn97q54okVsCKJJ9YkSvy1gJR4aOtnAr6OJP+L13d+BKBKMEzHhAfgDh6yzD+vqHjTDDvYpAxLqwEfVdbE9bpIEi6V27tdLP+LnzPrWS/XrRTnz5d4e79+LNY7r4kP+Z7Jv7z1LyPL0B4Tb+ci9cXLy+eJ54e8Rw//rqqcUR+HOrgYVprJbBl5E2w63oI64J7k8mUDZLGhmAXs19ucVkxP8gKQu4ptCxbMy2TW3KAGI4u1P207ztH3CDx/7bL+Cdse8h1Zy5ev7Dp8uHD7blJuy0J69TV8XW6l92Dl3cbLG6g98idbhDgdANcY1ZY9o2N4mpNr96GRf1Da3Wui0RW69F1bWslvp81LD2xDTOGu9DhQzBc7AcYfYlkAqo6A6ozqHNBYJTESGitTGShsp0qQSxT4AcoPJQw0LBlEPhBFakHDjoLvY+XgVIyg7WK77tG8n9pvpHXBbXL+OMBd7FN6KLu+uf27esbX9RHdIkLbxvCGhgYsDb3v2a7obt7YHakpKmYiqgE2ioqJbzIOszXcSov/DAzRRNehyJKvPx4+igv/ZLKEaCkoZxUFMYXE1I8f7Xyq/UHp9CkAlfbCF3NdlhS7IQguA0N2wiJYy1ktC5IISb1Okr5jSYruy2SGlYkIkKLSC3yy/WrUWGzSnjaTUX/QEhYQuNewLCdwBFKRkpOuAfr4sBnwwfDg6B0MHagORhBHNqHw5WxTwYav6lAt/42MBLfrYZXHO9w3Ftr/B0Hp0pY+tkD29ddAz5ln8NGjddSlNPyhHV8aKjbzAS7Dd3egRcvgRHJWyrHASw9Pyp+vlSxEluH0jWAGQF9VVZMpxHVRZ/xSKQU4PR5Xy0+/sLQZCFS9DN/XKtSeh5WrL2x+sMyZv+W67+vwz5eC7oDx12rm9pakNg639B68XL3Qh+2Bm94DySxHhg0daBHSQhiCbyyyMS9SDi8RhEHyYP1qD9qak0S4VGn5VYrSTRKEkKHWYYiHuQmCYb/YKYLqS+3H5LYckxJmz6qhSYJ5yNgzgtuclESpncBfN8Fj3lgJdCSGpHcGECoxrouMoHjzO+4evLLMB1VKxJV8Wyj8Q80Ix043jnTu32hlTdkh08Yn7UWcnio9Qs3pzZm0lN7LCOxIdIZxbuQ1+lAVFFxJB7aMeUIiPkiPRPjo2v6dPF4FVjHnxi/oQK0Az/bymf5uI7ayGLj6eM63nrbF5VNXzV7nv3HViQL3JAEaSV1z0iBNJIgJBCYkSKJYbdjEiSHw7a0BI5s6QBBbINUswMUsQ6E11UojZGccA9dcZDBdQY+TgyFTgkiEKYyIBvstAQzIRk8cBJ+A2j4gZFDFWAqjAp3V5IhQYYwwUJ57ByS0QINzMYK8FyrRxt3KNbXb2qG/UVNT5wDyCt6/A0boGbdqzPA4tD21SPquWihPy1FWHjQzYs3xnZkM95ePIZd8RccBx1xez/UPowp46I4+uVcLD9/8Plq0Gfy6Jp+uez5uqPyY+UtNN5DuVQc06drpv4bIDXsjtsMpdkOSC79QK4Xog3PzwF4IBNCBiIhpBSpoE8jioqWaM2KCRuOqwLXgIQItKIe0lCYD/lZjoqgGIo0+J++SsmMKA8eqQ21qHuUh2PfzQHN6vgG6vVK8GfmQhcbr3Yff+AEi3rtdCtNF8u/eIWD2ATXx4Mg0XH1Vr/hm7sDQw8PvyvTrriKWocEE0C6oM/kJRJHrAykgj6WGlq+JUifu6YfS6pu4/UVa6AgQcXKi78ApekhcWFBwMstEkTX9MvVHw+Lt2ex+4+Pg62CxgsHEwZbAdgWIJfA+ICkfDRYtyAwWWB7Ay8F8VT/KB0bOJ4Gx/CQfUKSwZGrJJs8iZHYgB0zMB+zk8hopQ8hEcEog2ERASIBAOL5fIrVIKLxXKtzKPZLgZUckvGf+/nH5HsK0+Uz3316zeAjj3D23Lwu90w0ZwNpiZ72UnvwfO/AXIFnXfLBxLOsHn6yiLqmr3oQ04LHX9hq6TFHI6txrlYWkHj98UT1lh8vryR/rIKq6aO204drdP8hRWF3itmLUw42QnW1CSTSA2IAIXkWOBYKLWw8wjVqNkEaFqjFwLQNJhWI4ZiFoiq6QX0SbsEo6HMoWVFCYprwjw6FP65BXCSoXJwiOwpnFK9A6yiWkQhRDwA9XAfpwLS/AqnqSKP7jwapquiznXFXMn6x8Yg/X/HySvLHKqiaPlZfvf0H6BloAM/v3tpzHkJwUx59Uxb4GE5Lfnt2ZGS16SX3+F5mq4llfegtwnaSR6J5EC8hPUV6IDaS6aDnoZ5DpYe6AtdgOr4pyhXLNPH0KKCo/DDP7N+S+mI6qHzbQr7AbdgW+iylWn0l5cf6E29ftfSN6L9lGl04x30tOtMHklmLhxpClW9BL4S1T+i2uNPRp+0FflD0AN9A9LHnmHGBBfJCE3QL9ALiguoJqiu+64gDzWGIIAlhzhaSDsMV/yjJi3BxyY9khP9BXBSzEMY/AFORGMmM1yyKZfmm+ZKuJf4uMHV1THEj+o+S864E7zYd/8Dliqp2MamvPbt9uw4dY/M4DnXTuMuXx/scK9iHLcbryzfKwvOJBSGNPl10Tb8WV0xYyMFymDdXXv46Kq+ueChJQI4WlSUqf8StOf5CNdXqr9afxe8/Gm6AoLAqGKyCGLSG350ACFzKM2FvaeOseEhFOsjItdQ2S6wYYmkOdl2+CfLBvmpIV55vYY2Qn6uAxAWC40zbhxSmWArcQj0TSIiSU37mx0kgVesgLereOSz8E5EWJa6Qzyh1hZEcO7xY4Ct9WLfNvwa+5xA2h6uGP6vMPxMsZ8WNf0Gf+cOCw9usq51a5+kNG9Sn1IjJsjoO0LI7EpVra/vxhPdFs7JyjYriohlbTAKGxO1C6oJEljseOLqmTxfPX66OucJK66OUNzuDjK7p05UIbGwX25I/vrj4BYrnD0uZ/Rtvfzz9fPsPIkgkbL0DZNMFRVEHFEY2ZCBTcwMLdfCsCCVN4SwpE9YG+ARNgD24IDHYSYB1yNCYDkLRFoC8oOUG40AKQx5IYyAmlQ6SF7dDoSof0hbJiApzqLs43aPc5UG+AvVQ/4T7nGQFQiJ5kdbAkmgH2Sz0FaWB4gLrad22v4nmuvPt/yzCc1+V4t0e4z93r8PYwDCvNANxLSthkai0jmCf5+jq6y6Y4SkjTfoKprgWufj9Dg3AozBmiK7pl3H8WDH3u0YfLY6u6c/HVS2vSvsxoygyTF2q/qNenEyjJ5NJPYGPRidME1M1/JYqwyoNq32Ihu4J0z5M+WA2DoqwEI9wfmEaEhQJzPNsKNOh0jJwrfRVJqbnNOrC6IGwQFzgHiKrpCuq2kE+FizrMXWE7IWCEKemg7hSiimOQchNIC3EchqpHlBO95TshQThkwF5TL9k+Mm/MZLGzVo3AlQdLzagDle1vCYd/wU9/5Z5ZcyZPnNow/J8ZHZZCGtsbKw3rdn7nIzTx42o0WfP1cPKuYJ6XPFs5q7p8zmKx5v8cdcxDeMPOR1fj+gh4X10TV/dukiC+nJPeLy8eH1hrtm/UVvpKxcrP2oL/dlcs1eQ9PCeo73wGcp+R2Xyvlp74vH19B9EkoA2CYKUlcQqJCQj6vkoyBjh/IurcJiy4Zxy2FMptRBO7sK3kClR0UYUZAX+wMqfC1ICiYHMYBsKSQsSFKaAUEqZLoiK00ASFsgpN0UEUWE6yOkiiArE6NmUb91OWwAAEuNJREFUszCNxA0c/uBoF04W86YOarWQAYjGmHBBEIkUiXEqib025hNmInWknv6zKo77Sh3/RvcfSx5Xl4O4yr5Y7NxiuEEQFT4uvs8yrF5VvosX28LLS185vsiRHkc9YPiJtrCbJIzHyx3gJdfpl80flZWPR6qIxJghus7xjSqj4E9UNn2VvN76Csqq6XIR+48OYEeGlcAaXhLfQwxNQcgQEI9IErOOxBUuCuDLz9Arm5iyOTaYy7Jty8hAb2VCm43ZmwnwQTbgFpAWyA4SGEKhaMdgYNpngKAcpeMCAfFjYGE4yAqco3RZ0LorUqOkxVkf6AgzvFBPFbISSsOUD+WRrWijpcwbmI4Gomj4yxAIv4bPVU+q9sfxk/EP36UlfP49N3vNWr/m9CZdX/zzjDDofAoW3XHVr9NPHdB8p2+uORl/mjFLUktMbBTtkSJbpLCRxYyD5OpJps/4+DJuvq5IIgoLqfi3pLzcRuloM7QSzKImsBSWG80LVKkxkSvOkFHaCjL5QvrPN9rwvaSVtEg2ICmQCNRQkGjwnlOpNktMxdds+GxcRFrIyCmhTQMEUJjl4qwtzPbAOVC8o0DUZroGiMmBpEUfRBZ4DvRUJC4/1GOpij1ML9XU0PJdFxIZGsOpJkkOQ0YdFh5CPodKl0WfRqQkVUhTIEf1iN4GkdJU4Rx/xsJfHkpfMv4cd+IAUJb1+YdkfSU7NXp6+/bti7qquKiEdfVq0Gl2TO2DonYzAcUTCv0slCB8FuGia/q8j7iAPl30aNIPHVKq55w+00MvjFLo05WmV8H5P9XLzydVF/H0xbGl9UGfjm226B98po2u6fO+0f3H9M7SbT1h+FoS00ybSmm+5/RZHxzbwWvVHtSvNuLRR4BKl0vPtHRhWh1SESUsNBkH0qjvNiAx4MA1JDBc4yBmTPmwJArJCFM+dA1SE5XsmFIqRTzKUrZYkMio78IUkauFoW6Mcbin1GWrOR8nqOEUEUQFmuK3ZdEw6NFg92s9j3XLp0CIsAuS8VdPkcKhCZ9/KAc81x/c3NdzFjy6KHZc0YPNh7VhDg9jYnh4co9n2dvx1nLalys7Rimx2xLGigfEJBQ0Xr149FkBVb04BQiTlPAFbTiDxRGKM1pJf5AgarPKG0sQu413N07hkCANO5m0fSebtCwziW5DqMISHTRMJCDF23inYbmsauNCHq+Vn1ta5dErzKN8psP/RiIXVpAegKJQ30Y06AQSEXdAIpdL0wbTNsLpoSIeCwRJHZYBpTusIFAIlPC0iqL5AxoCcmLPQkkLdITRCc0dSFqQD1A51g4pLOXmhZCwDMO2BpH9q6ZtDoU4oKQIy5yEynFnv+mzw+0+/q3Sf5yT4aYs89zq1alLIK7wYeQANcCpgW5AOaqIARzxcudrXrMTz+cuFAxBI1Rw06eLKz3xsnDikt+Mmr9mWBlXrbySeJAlTt8MXJImXHRNv0zx2GpWZ3r0KKqzXHlRHH26+fQf+mkbg56ADjppUuihMJl7BEhGtmnj+4Phj1lEUAzjaQcgJkzcqPPmlI/yjdJV8Trf/+hbeYyP0uMS0zSVF8SEaSELxkhR6a7IC1IVHkNMBWEkCljxYQ7YXgWKrDCHw2ohJDDKSkr5Tst3TANBp7DdgkTFKSOpxYMtV2i3hXQoJjwbBo3L4oibAajdXmSbCl01PEvi6x3PetMvwfi3cv+xHpPRk8GZvo6Oq5y5FvZlvtfqQZ5v5igfH7iRdHqrn/H24McyEb6ejCUxkCwqEATi8JDNKtWRIxI6wrLj+aOyQgIqLT/KTZ+OLYnCFGHE60PdSgzIgVmcfrbt5evjYkB97VeNyv8plx/UYoChElhYgB7KtD3PAUWRpejIVNzNAjNzyDuYRqnrMF5dIx4CkTrlAJQRps2FhZIX5lqYwfFLOygTBeSmkUhDEgNvIC7MR5ML6JhozoCpn+858G1utbH4j7BRT0Z9VlZzbTyOKJCKeCjkqYbkFBJh+DXCPVcKuXKIFURlm8WBoZSFOBCYmk6i33ioT+Kw1CegEMspcFfe+M8+rRySNum/YUwm9I7TPT04NWOBDg/nwtz16xMbEp3mPswIOuI6G7wBSlynz1pQWZEIP0smIcEEWN3QsfJDn+nj9FFSPh73wilgdE2f+eOumo4pPqWI2kI/LKu4RVXLq7H/kJopRUFhnkj4joNT9KC/BlZgAIVD1I+cwASVUBgCIsF1KEQxJLpGPKHGP5LYrAs5ikREnmJ61KF4K5cG1+REVS6HC1JauGroYYcOrLWUEp6MSF0UpoZgK5hV2dgEzeNLYbMBnRQZEUPnOwGMT6GOp57Kg/0WTCMYjnsQHpDmlJFTR5IcNt/alvV1PdF5NsKcLSpGG03L6QcjnWDpeIXqgFYb//A9wGi1+fMPDeqY7nae6uvT530KKp+JebkhHJyX6Fqz33X83tCgRr1d6gXBH+XnFtEwDmEVMBfAtbK7UvHxVTb1gGLQokbFVBZMDtUJHmT+dsPxmqSRU2nkrxkWxhfbOfEVwLov4sIaonSRr1qZy6vy8xliPbn+qPjYHxSm6mJwdB357DfaVtJ/BMLeW0/ayVQSR6TA5AB7h8kwmFeRrFBUSFYkJk7GsM+F5SuiCQmFBEriCskHYcxfEM9ozBjBS/yaKD//rBzndjD3BHswAcmqwFdhOWGugCw5owwpEt9sxMlVGWQEK4GlcAOi1XAcL6eLICfdcMFmNDnH7xdO/YTCHTkxM2B6EiSPbuXmHrZO5eJy4Iu6lfo2Gu8orFfA+PM9UMjnHpBIx9v+/Q9Wm8nMfcMTE1d7u7vP4Ec6fzy1wqOGP3xI63JHjgT2/rsy/boTbMP0pe78dVUWS5wjK0VUjIqNN3kA62ZYeIcfxofXDFNFUZBTT4W6m71mWBlXrb4yWSoEYWh0jVIUdJEmzA6o18mRDN7dCplCEkK8IiP4WRAU9OO8j5wimZB3SAhKYlJEphLkJCaSEP7PEdxsfVG5UWFxP6qPPngTlvBED6IWLN8dTPmg8ocFPPRXWBdlFWqqCEmLlhAgLRtKdLaAkpQNfRUM6DUQGOUiTimNEaT7FvRVw/F6K91XG4/mHf9KPaovvJ36jzfSS1mpc6mUdhnvhZL4a0GjZsKBKK+n0+kt0AHvztCAsIzjeeAeUKVPF1l101cBWCICxcGmcPalUeHRnyguIsJYej79fFnpKxdjrKhu+spVK69Ke+OW6SXlh7Xk/8b7D5umJKY6nUiQAEmp5ZKoD5Ay8kTFzcAsJIrL+ZREYCWAaU4ubXRNP8wfpuSuGubHMwCJhSuGPCiYJIMw5GV6xkfY0Wd+WoPiBAlEhvnzNluw3SKZYTkQHIQ5J1RQDg7Lw/QQGUIdFp4wcC9KgQ/7KkxjucEHROVmc3ZaCFfEjMxUvlPvBZ0WhT1Q1zG06hQKyGPA9qEh4bPRJuO/0p//WvoPyXpa77BPr9L1mn64QiJRT0vlP3jg1oyn0/th1dnN6VOkQyh8wVRuPpLUH9GHi+sckD4vLaj43NSHLwfv8cKjbGxdgc97JUpFpIRbpovKYHTUltkpHYkyEqNYf1gWfZU+Vn+JiMZERS4qKyTAMv1hmwoItLT/aL6OL9cn8A4mknhDkR5CUuh43ExhAXjnIQVxRQ9UwnU1JM73meHISINzlY/1Ir3jwNQBtui5IpU3K2mFZbEUEhgJiHlZhkqI8rws7hPFxBHlZ5romu1CGRSv2HyQEQiLPkwefJcSk2o0mU+F8Z46KswbKd8qvRUWiq7BsuoYlF/q+Jd839p4/KNnFHhw+Fbc819r/y3dHO7qsk9D2lLPBvEq59SLXC6CYSCq1OTk5F48g+FxLyQSvvyzhFK8taaYL1ACiYdkkSOg/HVO4irmAySLlR8+yHy5wnaWysTF7YmnRxdyecMXFDcxx3KjNCUEGUtb2r4Iixwh5qebxEG58v2Hkh0ERqlLp5kClNLkngLSyF8XExrZi089SYbFm9DRg1FCbEKyoxQE8sqFkTOgTwrDVIPCP/k8qpRcGrxMEXmxnpwjUeXbhjpgA2bBNsp0HPQWOiwNOnddw5YcNIdSFyzTlUKehEbrLDxDNn7osjCXPw5FO22qgPfKHn/pf8XxxxetvSvYlX8BxBVKCdGDmPPDhz0W+Oijjxof//jHt+Hh2oko/qKqFx4l0BJQmQIwS3RNn/fxZXqGFbq4nQzimI9tKFs+S1S1KJ9XoQkEfUQwtKg98fSzefMMwmx5F28/IqK2RLjM2b54/gX0H0v6+IiDZSVgHJogfYWNzDMUpCtsUkKg4pKIUJAsnNTlkjNWzfBCPMOhi8JAiCSqPBmyMFVQ1OdctQwLywNZ5cPCpDl80D6IhjzBASQF0sUeREpSJCyE4ceSpJXbEO2612AHepaTSRn/YrtEAD3n8xV/ntv4+S96nyGRO9gccQZmEPiBK3bRi5kPHcG+v2T32n2+53bxNY8oQyWIB0SR9OmqxMeTh5lm/8azx8srEbCQNSqTpUTX+eagwCiPqiWeQAXO/olHV2tPaYUFjWCxsQJjt7MV564K6iOB2Xj1adNGa3PqDMFl4XwSSnAQCUIibqFPlwtTwbiOkoSR+JvLx3KYv9BXaSrlLyifSegQBNMFTAWhiIeFArRZnoX+8Y2EzKhbnuNlYO9wFpZXkwoH5Kmj/6qOFTz+0n8+Y4Y/2pVIcJqY35+YJ6wjEN33ZzL9kPY3hWjx6Sv+RcByLIQAZZYQJSn2C944FRF/QkvjQ31XZDcV04GVPOGl+WdJEhVGbaNPV3d7Va7ZP83U/1ACgzTjkg4gjUFvHhGWkrPAPnnBLNeFSEKKfAbzOu9yBAUdVj6cZURpZuU3XOUILioD93x2IEnxxFGc9c6M+M93cHSNZVzHquBQDeMn4x898wQ2us7pgGvAbyU8/z5e5EupVEqtJirCgp4KHxVI7sbrQIYKHyKF3+yvIvEEX8FsQNk9qXwgBpgQwNo7p9OKrukzfdzF08+WTmYrV35YF+tU8bEpYImInGtLVH+8PkzZ8iQcVpjrawXCLOHH5uo/9JmWjbXHJMQcNhVW8bOklbsumnJw7Q+cgtVK2mJxAUNNKKncp54KHuzAwnjCE01B1UIHA1A80ik/IkdIfTj6mE8MXh2sSKZhdHUd+IcDykwFLj4eMv7Fv+il75c8/xEmeHaojD+jZ4LgbsPVVvO5iutg4oSAFCCiAqVp/jrUKRU8mzVexsube05ff3tiD0Q1wkP/ojrYgeiaftiheHsjLKL4GrudTxYvb0H9h94bpzeAwCD4cAqJf5SmlBjFH5D8ChVC1Q8KyIkrjtgbE64y4lqtINJHel5Hq4q4ZdsYzsWBWaU+rkFWtFzQbiNNnWciNbT/qD4+Hitq/FdE/3mWzmvQU+W4hZZPenQuRHRNfylcvfVjpUqz0Tj6dNE1/fm4euufTx1z5am3/hr6z6lj9A9ElneKwPJ3IYEVEpqKys0YFeUhoDBP4TV/+bjVIkfqKuu8/ixC/+tqR73111V4DYnrrb+G8a+h1tkk9dY/m7MxV7XUzwdP3ApBgCYG6Co+L6/+kcB4X0g0ERFFzwXjojBc5q8ZhqOKtWEoROmLEwSWBIHowVySyqSS5kIABEYhisRFEov8SgRWGD6K9OMgq8IwBIkTBBYXASGsxcW3pUoHgfF5iIiLPv9x+03kuLxMqaqsUj1KJL4gsFgICGEtFrJtUG6OwDhtJHHhqLOl+dBAG0AnXRAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBIGVhMD/D0fV/fpMMM+gAAAAAElFTkSuQmCC' } };exports.default = _default;
  17639. /***/ }),
  17640. /* 115 */
  17641. /*!***********************************************************************************************!*\
  17642. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  17643. \***********************************************************************************************/
  17644. /*! no static exports found */
  17645. /***/ (function(module, exports, __webpack_require__) {
  17646. "use strict";
  17647. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17648. * @Author : LQ
  17649. * @Description :
  17650. * @version : 1.0
  17651. * @Date : 2021-08-20 16:44:21
  17652. * @LastAuthor : LQ
  17653. * @lastTime : 2021-08-20 17:17:13
  17654. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  17655. */var _default =
  17656. {
  17657. // noticeBar
  17658. noticeBar: {
  17659. text: function text() {return [];},
  17660. direction: 'row',
  17661. step: false,
  17662. icon: 'volume',
  17663. mode: '',
  17664. color: '#f9ae3d',
  17665. bgColor: '#fdf6ec',
  17666. speed: 80,
  17667. fontSize: 14,
  17668. duration: 2000,
  17669. disableTouch: true,
  17670. url: '',
  17671. linkType: 'navigateTo' } };exports.default = _default;
  17672. /***/ }),
  17673. /* 116 */
  17674. /*!********************************************************************************************!*\
  17675. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/notify.js ***!
  17676. \********************************************************************************************/
  17677. /*! no static exports found */
  17678. /***/ (function(module, exports, __webpack_require__) {
  17679. "use strict";
  17680. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17681. * @Author : LQ
  17682. * @Description :
  17683. * @version : 1.0
  17684. * @Date : 2021-08-20 16:44:21
  17685. * @LastAuthor : LQ
  17686. * @lastTime : 2021-08-20 17:10:21
  17687. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  17688. */var _default =
  17689. {
  17690. // notify组件
  17691. notify: {
  17692. top: 0,
  17693. type: 'primary',
  17694. color: '#ffffff',
  17695. bgColor: '',
  17696. message: '',
  17697. duration: 3000,
  17698. fontSize: 15,
  17699. safeAreaInsetTop: false } };exports.default = _default;
  17700. /***/ }),
  17701. /* 117 */
  17702. /*!***********************************************************************************************!*\
  17703. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  17704. \***********************************************************************************************/
  17705. /*! no static exports found */
  17706. /***/ (function(module, exports, __webpack_require__) {
  17707. "use strict";
  17708. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17709. * @Author : LQ
  17710. * @Description :
  17711. * @version : 1.0
  17712. * @Date : 2021-08-20 16:44:21
  17713. * @LastAuthor : LQ
  17714. * @lastTime : 2021-08-20 17:11:46
  17715. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  17716. */var _default =
  17717. {
  17718. // 步进器组件
  17719. numberBox: {
  17720. name: '',
  17721. value: 0,
  17722. min: 1,
  17723. max: Number.MAX_SAFE_INTEGER,
  17724. step: 1,
  17725. integer: false,
  17726. disabled: false,
  17727. disabledInput: false,
  17728. asyncChange: false,
  17729. inputWidth: 35,
  17730. showMinus: true,
  17731. showPlus: true,
  17732. decimalLength: null,
  17733. longPress: true,
  17734. color: '#323233',
  17735. buttonSize: 30,
  17736. bgColor: '#EBECEE',
  17737. cursorSpacing: 100,
  17738. disableMinus: false,
  17739. disablePlus: false,
  17740. iconStyle: '' } };exports.default = _default;
  17741. /***/ }),
  17742. /* 118 */
  17743. /*!****************************************************************************************************!*\
  17744. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  17745. \****************************************************************************************************/
  17746. /*! no static exports found */
  17747. /***/ (function(module, exports, __webpack_require__) {
  17748. "use strict";
  17749. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17750. * @Author : LQ
  17751. * @Description :
  17752. * @version : 1.0
  17753. * @Date : 2021-08-20 16:44:21
  17754. * @LastAuthor : LQ
  17755. * @lastTime : 2021-08-20 17:08:05
  17756. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  17757. */var _default =
  17758. {
  17759. // 数字键盘
  17760. numberKeyboard: {
  17761. mode: 'number',
  17762. dotDisabled: false,
  17763. random: false } };exports.default = _default;
  17764. /***/ }),
  17765. /* 119 */
  17766. /*!*********************************************************************************************!*\
  17767. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/overlay.js ***!
  17768. \*********************************************************************************************/
  17769. /*! no static exports found */
  17770. /***/ (function(module, exports, __webpack_require__) {
  17771. "use strict";
  17772. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17773. * @Author : LQ
  17774. * @Description :
  17775. * @version : 1.0
  17776. * @Date : 2021-08-20 16:44:21
  17777. * @LastAuthor : LQ
  17778. * @lastTime : 2021-08-20 17:06:50
  17779. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  17780. */var _default =
  17781. {
  17782. // overlay组件
  17783. overlay: {
  17784. show: false,
  17785. zIndex: 10070,
  17786. duration: 300,
  17787. opacity: 0.5 } };exports.default = _default;
  17788. /***/ }),
  17789. /* 120 */
  17790. /*!*******************************************************************************************!*\
  17791. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/parse.js ***!
  17792. \*******************************************************************************************/
  17793. /*! no static exports found */
  17794. /***/ (function(module, exports, __webpack_require__) {
  17795. "use strict";
  17796. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17797. * @Author : LQ
  17798. * @Description :
  17799. * @version : 1.0
  17800. * @Date : 2021-08-20 16:44:21
  17801. * @LastAuthor : LQ
  17802. * @lastTime : 2021-08-20 17:17:33
  17803. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  17804. */var _default =
  17805. {
  17806. // parse
  17807. parse: {
  17808. copyLink: true,
  17809. errorImg: '',
  17810. lazyLoad: false,
  17811. loadingImg: '',
  17812. pauseVideo: true,
  17813. previewImg: true,
  17814. setTitle: true,
  17815. showImgMenu: true } };exports.default = _default;
  17816. /***/ }),
  17817. /* 121 */
  17818. /*!********************************************************************************************!*\
  17819. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/picker.js ***!
  17820. \********************************************************************************************/
  17821. /*! no static exports found */
  17822. /***/ (function(module, exports, __webpack_require__) {
  17823. "use strict";
  17824. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17825. * @Author : LQ
  17826. * @Description :
  17827. * @version : 1.0
  17828. * @Date : 2021-08-20 16:44:21
  17829. * @LastAuthor : LQ
  17830. * @lastTime : 2021-08-20 17:18:20
  17831. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  17832. */var _default =
  17833. {
  17834. // picker
  17835. picker: {
  17836. show: false,
  17837. showToolbar: true,
  17838. title: '',
  17839. columns: function columns() {return [];},
  17840. loading: false,
  17841. itemHeight: 44,
  17842. cancelText: '取消',
  17843. confirmText: '确定',
  17844. cancelColor: '#909193',
  17845. confirmColor: '#3c9cff',
  17846. visibleItemCount: 5,
  17847. keyName: 'text',
  17848. closeOnClickOverlay: false,
  17849. defaultIndex: function defaultIndex() {return [];},
  17850. immediateChange: false } };exports.default = _default;
  17851. /***/ }),
  17852. /* 122 */
  17853. /*!*******************************************************************************************!*\
  17854. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/popup.js ***!
  17855. \*******************************************************************************************/
  17856. /*! no static exports found */
  17857. /***/ (function(module, exports, __webpack_require__) {
  17858. "use strict";
  17859. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17860. * @Author : LQ
  17861. * @Description :
  17862. * @version : 1.0
  17863. * @Date : 2021-08-20 16:44:21
  17864. * @LastAuthor : LQ
  17865. * @lastTime : 2021-08-20 17:06:33
  17866. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  17867. */var _default =
  17868. {
  17869. // popup组件
  17870. popup: {
  17871. show: false,
  17872. overlay: true,
  17873. mode: 'bottom',
  17874. duration: 300,
  17875. closeable: false,
  17876. overlayStyle: function overlayStyle() {},
  17877. closeOnClickOverlay: true,
  17878. zIndex: 10075,
  17879. safeAreaInsetBottom: true,
  17880. safeAreaInsetTop: false,
  17881. closeIconPos: 'top-right',
  17882. round: 0,
  17883. zoom: true,
  17884. bgColor: '',
  17885. overlayOpacity: 0.5 } };exports.default = _default;
  17886. /***/ }),
  17887. /* 123 */
  17888. /*!*******************************************************************************************!*\
  17889. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/radio.js ***!
  17890. \*******************************************************************************************/
  17891. /*! no static exports found */
  17892. /***/ (function(module, exports, __webpack_require__) {
  17893. "use strict";
  17894. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17895. * @Author : LQ
  17896. * @Description :
  17897. * @version : 1.0
  17898. * @Date : 2021-08-20 16:44:21
  17899. * @LastAuthor : LQ
  17900. * @lastTime : 2021-08-20 17:02:34
  17901. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  17902. */var _default =
  17903. {
  17904. // radio组件
  17905. radio: {
  17906. name: '',
  17907. shape: '',
  17908. disabled: '',
  17909. labelDisabled: '',
  17910. activeColor: '',
  17911. inactiveColor: '',
  17912. iconSize: '',
  17913. labelSize: '',
  17914. label: '',
  17915. labelColor: '',
  17916. size: '',
  17917. iconColor: '',
  17918. placement: '' } };exports.default = _default;
  17919. /***/ }),
  17920. /* 124 */
  17921. /*!************************************************************************************************!*\
  17922. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/radioGroup.js ***!
  17923. \************************************************************************************************/
  17924. /*! no static exports found */
  17925. /***/ (function(module, exports, __webpack_require__) {
  17926. "use strict";
  17927. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17928. * @Author : LQ
  17929. * @Description :
  17930. * @version : 1.0
  17931. * @Date : 2021-08-20 16:44:21
  17932. * @LastAuthor : LQ
  17933. * @lastTime : 2021-08-20 17:03:12
  17934. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  17935. */var _default =
  17936. {
  17937. // radio-group组件
  17938. radioGroup: {
  17939. value: '',
  17940. disabled: false,
  17941. shape: 'circle',
  17942. activeColor: '#2979ff',
  17943. inactiveColor: '#c8c9cc',
  17944. name: '',
  17945. size: 18,
  17946. placement: 'row',
  17947. label: '',
  17948. labelColor: '#303133',
  17949. labelSize: 14,
  17950. labelDisabled: false,
  17951. iconColor: '#ffffff',
  17952. iconSize: 12,
  17953. borderBottom: false,
  17954. iconPlacement: 'left' } };exports.default = _default;
  17955. /***/ }),
  17956. /* 125 */
  17957. /*!******************************************************************************************!*\
  17958. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/rate.js ***!
  17959. \******************************************************************************************/
  17960. /*! no static exports found */
  17961. /***/ (function(module, exports, __webpack_require__) {
  17962. "use strict";
  17963. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17964. * @Author : LQ
  17965. * @Description :
  17966. * @version : 1.0
  17967. * @Date : 2021-08-20 16:44:21
  17968. * @LastAuthor : LQ
  17969. * @lastTime : 2021-08-20 17:05:09
  17970. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  17971. */var _default =
  17972. {
  17973. // rate组件
  17974. rate: {
  17975. value: 1,
  17976. count: 5,
  17977. disabled: false,
  17978. size: 18,
  17979. inactiveColor: '#b2b2b2',
  17980. activeColor: '#FA3534',
  17981. gutter: 4,
  17982. minCount: 1,
  17983. allowHalf: false,
  17984. activeIcon: 'star-fill',
  17985. inactiveIcon: 'star',
  17986. touchable: true } };exports.default = _default;
  17987. /***/ }),
  17988. /* 126 */
  17989. /*!**********************************************************************************************!*\
  17990. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  17991. \**********************************************************************************************/
  17992. /*! no static exports found */
  17993. /***/ (function(module, exports, __webpack_require__) {
  17994. "use strict";
  17995. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  17996. * @Author : LQ
  17997. * @Description :
  17998. * @version : 1.0
  17999. * @Date : 2021-08-20 16:44:21
  18000. * @LastAuthor : LQ
  18001. * @lastTime : 2021-08-20 17:18:41
  18002. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  18003. */var _default =
  18004. {
  18005. // readMore
  18006. readMore: {
  18007. showHeight: 400,
  18008. toggle: false,
  18009. closeText: '展开阅读全文',
  18010. openText: '收起',
  18011. color: '#2979ff',
  18012. fontSize: 14,
  18013. textIndent: '2em',
  18014. name: '' } };exports.default = _default;
  18015. /***/ }),
  18016. /* 127 */
  18017. /*!*****************************************************************************************!*\
  18018. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/row.js ***!
  18019. \*****************************************************************************************/
  18020. /*! no static exports found */
  18021. /***/ (function(module, exports, __webpack_require__) {
  18022. "use strict";
  18023. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18024. * @Author : LQ
  18025. * @Description :
  18026. * @version : 1.0
  18027. * @Date : 2021-08-20 16:44:21
  18028. * @LastAuthor : LQ
  18029. * @lastTime : 2021-08-20 17:18:58
  18030. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  18031. */var _default =
  18032. {
  18033. // row
  18034. row: {
  18035. gutter: 0,
  18036. justify: 'start',
  18037. align: 'center' } };exports.default = _default;
  18038. /***/ }),
  18039. /* 128 */
  18040. /*!***********************************************************************************************!*\
  18041. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  18042. \***********************************************************************************************/
  18043. /*! no static exports found */
  18044. /***/ (function(module, exports, __webpack_require__) {
  18045. "use strict";
  18046. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18047. * @Author : LQ
  18048. * @Description :
  18049. * @version : 1.0
  18050. * @Date : 2021-08-20 16:44:21
  18051. * @LastAuthor : LQ
  18052. * @lastTime : 2021-08-20 17:19:13
  18053. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  18054. */var _default =
  18055. {
  18056. // rowNotice
  18057. rowNotice: {
  18058. text: '',
  18059. icon: 'volume',
  18060. mode: '',
  18061. color: '#f9ae3d',
  18062. bgColor: '#fdf6ec',
  18063. fontSize: 14,
  18064. speed: 80 } };exports.default = _default;
  18065. /***/ }),
  18066. /* 129 */
  18067. /*!************************************************************************************************!*\
  18068. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  18069. \************************************************************************************************/
  18070. /*! no static exports found */
  18071. /***/ (function(module, exports, __webpack_require__) {
  18072. "use strict";
  18073. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18074. * @Author : LQ
  18075. * @Description :
  18076. * @version : 1.0
  18077. * @Date : 2021-08-20 16:44:21
  18078. * @LastAuthor : LQ
  18079. * @lastTime : 2021-08-20 17:19:28
  18080. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  18081. */var _default =
  18082. {
  18083. // scrollList
  18084. scrollList: {
  18085. indicatorWidth: 50,
  18086. indicatorBarWidth: 20,
  18087. indicator: true,
  18088. indicatorColor: '#f2f2f2',
  18089. indicatorActiveColor: '#3c9cff',
  18090. indicatorStyle: '' } };exports.default = _default;
  18091. /***/ }),
  18092. /* 130 */
  18093. /*!********************************************************************************************!*\
  18094. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/search.js ***!
  18095. \********************************************************************************************/
  18096. /*! no static exports found */
  18097. /***/ (function(module, exports, __webpack_require__) {
  18098. "use strict";
  18099. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18100. * @Author : LQ
  18101. * @Description :
  18102. * @version : 1.0
  18103. * @Date : 2021-08-20 16:44:21
  18104. * @LastAuthor : LQ
  18105. * @lastTime : 2021-08-20 17:19:45
  18106. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  18107. */var _default =
  18108. {
  18109. // search
  18110. search: {
  18111. shape: 'round',
  18112. bgColor: '#f2f2f2',
  18113. placeholder: '请输入关键字',
  18114. clearabled: true,
  18115. focus: false,
  18116. showAction: true,
  18117. actionStyle: function actionStyle() {return {};},
  18118. actionText: '搜索',
  18119. inputAlign: 'left',
  18120. inputStyle: function inputStyle() {return {};},
  18121. disabled: false,
  18122. borderColor: 'transparent',
  18123. searchIconColor: '#909399',
  18124. searchIconSize: 22,
  18125. color: '#606266',
  18126. placeholderColor: '#909399',
  18127. searchIcon: 'search',
  18128. margin: '0',
  18129. animation: false,
  18130. value: '',
  18131. maxlength: '-1',
  18132. height: 32,
  18133. label: null } };exports.default = _default;
  18134. /***/ }),
  18135. /* 131 */
  18136. /*!*********************************************************************************************!*\
  18137. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/section.js ***!
  18138. \*********************************************************************************************/
  18139. /*! no static exports found */
  18140. /***/ (function(module, exports, __webpack_require__) {
  18141. "use strict";
  18142. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18143. * @Author : LQ
  18144. * @Description :
  18145. * @version : 1.0
  18146. * @Date : 2021-08-20 16:44:21
  18147. * @LastAuthor : LQ
  18148. * @lastTime : 2021-08-20 17:07:33
  18149. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  18150. */var _default =
  18151. {
  18152. // u-section组件
  18153. section: {
  18154. title: '',
  18155. subTitle: '更多',
  18156. right: true,
  18157. fontSize: 15,
  18158. bold: true,
  18159. color: '#303133',
  18160. subColor: '#909399',
  18161. showLine: true,
  18162. lineColor: '',
  18163. arrow: true } };exports.default = _default;
  18164. /***/ }),
  18165. /* 132 */
  18166. /*!**********************************************************************************************!*\
  18167. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  18168. \**********************************************************************************************/
  18169. /*! no static exports found */
  18170. /***/ (function(module, exports, __webpack_require__) {
  18171. "use strict";
  18172. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18173. * @Author : LQ
  18174. * @Description :
  18175. * @version : 1.0
  18176. * @Date : 2021-08-20 16:44:21
  18177. * @LastAuthor : LQ
  18178. * @lastTime : 2021-08-20 17:20:14
  18179. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  18180. */var _default =
  18181. {
  18182. // skeleton
  18183. skeleton: {
  18184. loading: true,
  18185. animate: true,
  18186. rows: 0,
  18187. rowsWidth: '100%',
  18188. rowsHeight: 18,
  18189. title: true,
  18190. titleWidth: '50%',
  18191. titleHeight: 18,
  18192. avatar: false,
  18193. avatarSize: 32,
  18194. avatarShape: 'circle' } };exports.default = _default;
  18195. /***/ }),
  18196. /* 133 */
  18197. /*!********************************************************************************************!*\
  18198. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/slider.js ***!
  18199. \********************************************************************************************/
  18200. /*! no static exports found */
  18201. /***/ (function(module, exports, __webpack_require__) {
  18202. "use strict";
  18203. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18204. * @Author : LQ
  18205. * @Description :
  18206. * @version : 1.0
  18207. * @Date : 2021-08-20 16:44:21
  18208. * @LastAuthor : LQ
  18209. * @lastTime : 2021-08-20 17:08:25
  18210. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  18211. */var _default =
  18212. {
  18213. // slider组件
  18214. slider: {
  18215. value: 0,
  18216. blockSize: 18,
  18217. min: 0,
  18218. max: 100,
  18219. step: 1,
  18220. activeColor: '#2979ff',
  18221. inactiveColor: '#c0c4cc',
  18222. blockColor: '#ffffff',
  18223. showValue: false,
  18224. disabled: false,
  18225. blockStyle: function blockStyle() {} } };exports.default = _default;
  18226. /***/ }),
  18227. /* 134 */
  18228. /*!***********************************************************************************************!*\
  18229. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  18230. \***********************************************************************************************/
  18231. /*! no static exports found */
  18232. /***/ (function(module, exports, __webpack_require__) {
  18233. "use strict";
  18234. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18235. * @Author : LQ
  18236. * @Description :
  18237. * @version : 1.0
  18238. * @Date : 2021-08-20 16:44:21
  18239. * @LastAuthor : LQ
  18240. * @lastTime : 2021-08-20 17:20:39
  18241. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  18242. */var _default =
  18243. {
  18244. // statusBar
  18245. statusBar: {
  18246. bgColor: 'transparent' } };exports.default = _default;
  18247. /***/ }),
  18248. /* 135 */
  18249. /*!*******************************************************************************************!*\
  18250. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/steps.js ***!
  18251. \*******************************************************************************************/
  18252. /*! no static exports found */
  18253. /***/ (function(module, exports, __webpack_require__) {
  18254. "use strict";
  18255. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18256. * @Author : LQ
  18257. * @Description :
  18258. * @version : 1.0
  18259. * @Date : 2021-08-20 16:44:21
  18260. * @LastAuthor : LQ
  18261. * @lastTime : 2021-08-20 17:12:37
  18262. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  18263. */var _default =
  18264. {
  18265. // steps组件
  18266. steps: {
  18267. direction: 'row',
  18268. current: 0,
  18269. activeColor: '#3c9cff',
  18270. inactiveColor: '#969799',
  18271. activeIcon: '',
  18272. inactiveIcon: '',
  18273. dot: false } };exports.default = _default;
  18274. /***/ }),
  18275. /* 136 */
  18276. /*!***********************************************************************************************!*\
  18277. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  18278. \***********************************************************************************************/
  18279. /*! no static exports found */
  18280. /***/ (function(module, exports, __webpack_require__) {
  18281. "use strict";
  18282. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18283. * @Author : LQ
  18284. * @Description :
  18285. * @version : 1.0
  18286. * @Date : 2021-08-20 16:44:21
  18287. * @LastAuthor : LQ
  18288. * @lastTime : 2021-08-20 17:12:55
  18289. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  18290. */var _default =
  18291. {
  18292. // steps-item组件
  18293. stepsItem: {
  18294. title: '',
  18295. desc: '',
  18296. iconSize: 17,
  18297. error: false } };exports.default = _default;
  18298. /***/ }),
  18299. /* 137 */
  18300. /*!********************************************************************************************!*\
  18301. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  18302. \********************************************************************************************/
  18303. /*! no static exports found */
  18304. /***/ (function(module, exports, __webpack_require__) {
  18305. "use strict";
  18306. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18307. * @Author : LQ
  18308. * @Description :
  18309. * @version : 1.0
  18310. * @Date : 2021-08-20 16:44:21
  18311. * @LastAuthor : LQ
  18312. * @lastTime : 2021-08-20 17:01:30
  18313. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  18314. */var _default =
  18315. {
  18316. // sticky组件
  18317. sticky: {
  18318. offsetTop: 0,
  18319. customNavHeight: 0,
  18320. disabled: false,
  18321. bgColor: 'transparent',
  18322. zIndex: '',
  18323. index: '' } };exports.default = _default;
  18324. /***/ }),
  18325. /* 138 */
  18326. /*!************************************************************************************************!*\
  18327. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  18328. \************************************************************************************************/
  18329. /*! no static exports found */
  18330. /***/ (function(module, exports, __webpack_require__) {
  18331. "use strict";
  18332. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18333. * @Author : LQ
  18334. * @Description :
  18335. * @version : 1.0
  18336. * @Date : 2021-08-20 16:44:21
  18337. * @LastAuthor : LQ
  18338. * @lastTime : 2021-08-20 17:12:20
  18339. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  18340. */var _default =
  18341. {
  18342. // subsection组件
  18343. subsection: {
  18344. list: [],
  18345. current: 0,
  18346. activeColor: '#3c9cff',
  18347. inactiveColor: '#303133',
  18348. mode: 'button',
  18349. fontSize: 12,
  18350. bold: true,
  18351. bgColor: '#eeeeef',
  18352. keyName: 'name' } };exports.default = _default;
  18353. /***/ }),
  18354. /* 139 */
  18355. /*!*************************************************************************************************!*\
  18356. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  18357. \*************************************************************************************************/
  18358. /*! no static exports found */
  18359. /***/ (function(module, exports, __webpack_require__) {
  18360. "use strict";
  18361. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18362. * @Author : LQ
  18363. * @Description :
  18364. * @version : 1.0
  18365. * @Date : 2021-08-20 16:44:21
  18366. * @LastAuthor : LQ
  18367. * @lastTime : 2021-08-20 17:00:42
  18368. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  18369. */var _default =
  18370. {
  18371. // swipe-action组件
  18372. swipeAction: {
  18373. autoClose: true } };exports.default = _default;
  18374. /***/ }),
  18375. /* 140 */
  18376. /*!*****************************************************************************************************!*\
  18377. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  18378. \*****************************************************************************************************/
  18379. /*! no static exports found */
  18380. /***/ (function(module, exports, __webpack_require__) {
  18381. "use strict";
  18382. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18383. * @Author : LQ
  18384. * @Description :
  18385. * @version : 1.0
  18386. * @Date : 2021-08-20 16:44:21
  18387. * @LastAuthor : LQ
  18388. * @lastTime : 2021-08-20 17:01:13
  18389. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  18390. */var _default =
  18391. {
  18392. // swipeActionItem 组件
  18393. swipeActionItem: {
  18394. show: false,
  18395. name: '',
  18396. disabled: false,
  18397. threshold: 20,
  18398. autoClose: true,
  18399. options: [],
  18400. duration: 300 } };exports.default = _default;
  18401. /***/ }),
  18402. /* 141 */
  18403. /*!********************************************************************************************!*\
  18404. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  18405. \********************************************************************************************/
  18406. /*! no static exports found */
  18407. /***/ (function(module, exports, __webpack_require__) {
  18408. "use strict";
  18409. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18410. * @Author : LQ
  18411. * @Description :
  18412. * @version : 1.0
  18413. * @Date : 2021-08-20 16:44:21
  18414. * @LastAuthor : LQ
  18415. * @lastTime : 2021-08-20 17:21:38
  18416. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  18417. */var _default =
  18418. {
  18419. // swiper 组件
  18420. swiper: {
  18421. list: function list() {return [];},
  18422. indicator: false,
  18423. indicatorActiveColor: '#FFFFFF',
  18424. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  18425. indicatorStyle: '',
  18426. indicatorMode: 'line',
  18427. autoplay: true,
  18428. current: 0,
  18429. currentItemId: '',
  18430. interval: 3000,
  18431. duration: 300,
  18432. circular: false,
  18433. previousMargin: 0,
  18434. nextMargin: 0,
  18435. acceleration: false,
  18436. displayMultipleItems: 1,
  18437. easingFunction: 'default',
  18438. keyName: 'url',
  18439. imgMode: 'aspectFill',
  18440. height: 130,
  18441. bgColor: '#f3f4f6',
  18442. radius: 4,
  18443. loading: false,
  18444. showTitle: false } };exports.default = _default;
  18445. /***/ }),
  18446. /* 142 */
  18447. /*!******************************************************************************************************!*\
  18448. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  18449. \******************************************************************************************************/
  18450. /*! no static exports found */
  18451. /***/ (function(module, exports, __webpack_require__) {
  18452. "use strict";
  18453. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18454. * @Author : LQ
  18455. * @Description :
  18456. * @version : 1.0
  18457. * @Date : 2021-08-20 16:44:21
  18458. * @LastAuthor : LQ
  18459. * @lastTime : 2021-08-20 17:22:07
  18460. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  18461. */var _default =
  18462. {
  18463. // swiperIndicator 组件
  18464. swiperIndicator: {
  18465. length: 0,
  18466. current: 0,
  18467. indicatorActiveColor: '',
  18468. indicatorInactiveColor: '',
  18469. indicatorMode: 'line' } };exports.default = _default;
  18470. /***/ }),
  18471. /* 143 */
  18472. /*!********************************************************************************************!*\
  18473. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/switch.js ***!
  18474. \********************************************************************************************/
  18475. /*! no static exports found */
  18476. /***/ (function(module, exports, __webpack_require__) {
  18477. "use strict";
  18478. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18479. * @Author : LQ
  18480. * @Description :
  18481. * @version : 1.0
  18482. * @Date : 2021-08-20 16:44:21
  18483. * @LastAuthor : LQ
  18484. * @lastTime : 2021-08-20 17:22:24
  18485. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  18486. */var _default =
  18487. {
  18488. // switch
  18489. switch: {
  18490. loading: false,
  18491. disabled: false,
  18492. size: 25,
  18493. activeColor: '#2979ff',
  18494. inactiveColor: '#ffffff',
  18495. value: false,
  18496. activeValue: true,
  18497. inactiveValue: false,
  18498. asyncChange: false,
  18499. space: 0 } };exports.default = _default;
  18500. /***/ }),
  18501. /* 144 */
  18502. /*!********************************************************************************************!*\
  18503. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  18504. \********************************************************************************************/
  18505. /*! no static exports found */
  18506. /***/ (function(module, exports, __webpack_require__) {
  18507. "use strict";
  18508. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18509. * @Author : LQ
  18510. * @Description :
  18511. * @version : 1.0
  18512. * @Date : 2021-08-20 16:44:21
  18513. * @LastAuthor : LQ
  18514. * @lastTime : 2021-08-20 17:22:40
  18515. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  18516. */var _default =
  18517. {
  18518. // tabbar
  18519. tabbar: {
  18520. value: null,
  18521. safeAreaInsetBottom: true,
  18522. border: true,
  18523. zIndex: 1,
  18524. activeColor: '#1989fa',
  18525. inactiveColor: '#7d7e80',
  18526. fixed: true,
  18527. placeholder: true } };exports.default = _default;
  18528. /***/ }),
  18529. /* 145 */
  18530. /*!************************************************************************************************!*\
  18531. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  18532. \************************************************************************************************/
  18533. /*! no static exports found */
  18534. /***/ (function(module, exports, __webpack_require__) {
  18535. "use strict";
  18536. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18537. * @Author : LQ
  18538. * @Description :
  18539. * @version : 1.0
  18540. * @Date : 2021-08-20 16:44:21
  18541. * @LastAuthor : LQ
  18542. * @lastTime : 2021-08-20 17:22:55
  18543. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  18544. */var _default =
  18545. {
  18546. //
  18547. tabbarItem: {
  18548. name: null,
  18549. icon: '',
  18550. badge: null,
  18551. dot: false,
  18552. text: '',
  18553. badgeStyle: 'top: 6px;right:2px;' } };exports.default = _default;
  18554. /***/ }),
  18555. /* 146 */
  18556. /*!******************************************************************************************!*\
  18557. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  18558. \******************************************************************************************/
  18559. /*! no static exports found */
  18560. /***/ (function(module, exports, __webpack_require__) {
  18561. "use strict";
  18562. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18563. * @Author : LQ
  18564. * @Description :
  18565. * @version : 1.0
  18566. * @Date : 2021-08-20 16:44:21
  18567. * @LastAuthor : LQ
  18568. * @lastTime : 2021-08-20 17:23:14
  18569. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  18570. */var _default =
  18571. {
  18572. //
  18573. tabs: {
  18574. duration: 300,
  18575. list: function list() {return [];},
  18576. lineColor: '#3c9cff',
  18577. activeStyle: function activeStyle() {return {
  18578. color: '#303133' };},
  18579. inactiveStyle: function inactiveStyle() {return {
  18580. color: '#606266' };},
  18581. lineWidth: 20,
  18582. lineHeight: 3,
  18583. lineBgSize: 'cover',
  18584. itemStyle: function itemStyle() {return {
  18585. height: '44px' };},
  18586. scrollable: true,
  18587. current: 0,
  18588. keyName: 'name' } };exports.default = _default;
  18589. /***/ }),
  18590. /* 147 */
  18591. /*!*****************************************************************************************!*\
  18592. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/tag.js ***!
  18593. \*****************************************************************************************/
  18594. /*! no static exports found */
  18595. /***/ (function(module, exports, __webpack_require__) {
  18596. "use strict";
  18597. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18598. * @Author : LQ
  18599. * @Description :
  18600. * @version : 1.0
  18601. * @Date : 2021-08-20 16:44:21
  18602. * @LastAuthor : LQ
  18603. * @lastTime : 2021-08-20 17:23:37
  18604. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  18605. */var _default =
  18606. {
  18607. // tag 组件
  18608. tag: {
  18609. type: 'primary',
  18610. disabled: false,
  18611. size: 'medium',
  18612. shape: 'square',
  18613. text: '',
  18614. bgColor: '',
  18615. color: '',
  18616. borderColor: '',
  18617. closeColor: '#C6C7CB',
  18618. name: '',
  18619. plainFill: false,
  18620. plain: false,
  18621. closable: false,
  18622. show: true,
  18623. icon: '' } };exports.default = _default;
  18624. /***/ }),
  18625. /* 148 */
  18626. /*!******************************************************************************************!*\
  18627. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/text.js ***!
  18628. \******************************************************************************************/
  18629. /*! no static exports found */
  18630. /***/ (function(module, exports, __webpack_require__) {
  18631. "use strict";
  18632. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18633. * @Author : LQ
  18634. * @Description :
  18635. * @version : 1.0
  18636. * @Date : 2021-08-20 16:44:21
  18637. * @LastAuthor : LQ
  18638. * @lastTime : 2021-08-20 17:23:58
  18639. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  18640. */var _default =
  18641. {
  18642. // text 组件
  18643. text: {
  18644. type: '',
  18645. show: true,
  18646. text: '',
  18647. prefixIcon: '',
  18648. suffixIcon: '',
  18649. mode: '',
  18650. href: '',
  18651. format: '',
  18652. call: false,
  18653. openType: '',
  18654. bold: false,
  18655. block: false,
  18656. lines: '',
  18657. color: '#303133',
  18658. size: 15,
  18659. iconStyle: function iconStyle() {return {
  18660. fontSize: '15px' };},
  18661. decoration: 'none',
  18662. margin: 0,
  18663. lineHeight: '',
  18664. align: 'left',
  18665. wordWrap: 'normal' } };exports.default = _default;
  18666. /***/ }),
  18667. /* 149 */
  18668. /*!**********************************************************************************************!*\
  18669. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  18670. \**********************************************************************************************/
  18671. /*! no static exports found */
  18672. /***/ (function(module, exports, __webpack_require__) {
  18673. "use strict";
  18674. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18675. * @Author : LQ
  18676. * @Description :
  18677. * @version : 1.0
  18678. * @Date : 2021-08-20 16:44:21
  18679. * @LastAuthor : LQ
  18680. * @lastTime : 2021-08-20 17:24:32
  18681. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  18682. */var _default =
  18683. {
  18684. // textarea 组件
  18685. textarea: {
  18686. value: '',
  18687. placeholder: '',
  18688. placeholderClass: 'textarea-placeholder',
  18689. placeholderStyle: 'color: #c0c4cc',
  18690. height: 70,
  18691. confirmType: 'done',
  18692. disabled: false,
  18693. count: false,
  18694. focus: false,
  18695. autoHeight: false,
  18696. fixed: false,
  18697. cursorSpacing: 0,
  18698. cursor: '',
  18699. showConfirmBar: true,
  18700. selectionStart: -1,
  18701. selectionEnd: -1,
  18702. adjustPosition: true,
  18703. disableDefaultPadding: false,
  18704. holdKeyboard: false,
  18705. maxlength: 140,
  18706. border: 'surround',
  18707. formatter: null } };exports.default = _default;
  18708. /***/ }),
  18709. /* 150 */
  18710. /*!*******************************************************************************************!*\
  18711. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/toast.js ***!
  18712. \*******************************************************************************************/
  18713. /*! no static exports found */
  18714. /***/ (function(module, exports, __webpack_require__) {
  18715. "use strict";
  18716. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18717. * @Author : LQ
  18718. * @Description :
  18719. * @version : 1.0
  18720. * @Date : 2021-08-20 16:44:21
  18721. * @LastAuthor : LQ
  18722. * @lastTime : 2021-08-20 17:07:07
  18723. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  18724. */var _default =
  18725. {
  18726. // toast组件
  18727. toast: {
  18728. zIndex: 10090,
  18729. loading: false,
  18730. text: '',
  18731. icon: '',
  18732. type: '',
  18733. loadingMode: '',
  18734. show: '',
  18735. overlay: false,
  18736. position: 'center',
  18737. params: function params() {},
  18738. duration: 2000,
  18739. isTab: false,
  18740. url: '',
  18741. callback: null,
  18742. back: false } };exports.default = _default;
  18743. /***/ }),
  18744. /* 151 */
  18745. /*!*********************************************************************************************!*\
  18746. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  18747. \*********************************************************************************************/
  18748. /*! no static exports found */
  18749. /***/ (function(module, exports, __webpack_require__) {
  18750. "use strict";
  18751. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18752. * @Author : LQ
  18753. * @Description :
  18754. * @version : 1.0
  18755. * @Date : 2021-08-20 16:44:21
  18756. * @LastAuthor : LQ
  18757. * @lastTime : 2021-08-20 17:24:55
  18758. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  18759. */var _default =
  18760. {
  18761. // toolbar 组件
  18762. toolbar: {
  18763. show: true,
  18764. cancelText: '取消',
  18765. confirmText: '确认',
  18766. cancelColor: '#909193',
  18767. confirmColor: '#3c9cff',
  18768. title: '' } };exports.default = _default;
  18769. /***/ }),
  18770. /* 152 */
  18771. /*!*********************************************************************************************!*\
  18772. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  18773. \*********************************************************************************************/
  18774. /*! no static exports found */
  18775. /***/ (function(module, exports, __webpack_require__) {
  18776. "use strict";
  18777. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18778. * @Author : LQ
  18779. * @Description :
  18780. * @version : 1.0
  18781. * @Date : 2021-08-20 16:44:21
  18782. * @LastAuthor : LQ
  18783. * @lastTime : 2021-08-20 17:25:14
  18784. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  18785. */var _default =
  18786. {
  18787. // tooltip 组件
  18788. tooltip: {
  18789. text: '',
  18790. copyText: '',
  18791. size: 14,
  18792. color: '#606266',
  18793. bgColor: 'transparent',
  18794. direction: 'top',
  18795. zIndex: 10071,
  18796. showCopy: true,
  18797. buttons: function buttons() {return [];},
  18798. overlay: true,
  18799. showToast: true } };exports.default = _default;
  18800. /***/ }),
  18801. /* 153 */
  18802. /*!************************************************************************************************!*\
  18803. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/transition.js ***!
  18804. \************************************************************************************************/
  18805. /*! no static exports found */
  18806. /***/ (function(module, exports, __webpack_require__) {
  18807. "use strict";
  18808. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18809. * @Author : LQ
  18810. * @Description :
  18811. * @version : 1.0
  18812. * @Date : 2021-08-20 16:44:21
  18813. * @LastAuthor : LQ
  18814. * @lastTime : 2021-08-20 16:59:00
  18815. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  18816. */var _default =
  18817. {
  18818. // transition动画组件的props
  18819. transition: {
  18820. show: false,
  18821. mode: 'fade',
  18822. duration: '300',
  18823. timingFunction: 'ease-out' } };exports.default = _default;
  18824. /***/ }),
  18825. /* 154 */
  18826. /*!********************************************************************************************!*\
  18827. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/props/upload.js ***!
  18828. \********************************************************************************************/
  18829. /*! no static exports found */
  18830. /***/ (function(module, exports, __webpack_require__) {
  18831. "use strict";
  18832. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /*
  18833. * @Author : LQ
  18834. * @Description :
  18835. * @version : 1.0
  18836. * @Date : 2021-08-20 16:44:21
  18837. * @LastAuthor : LQ
  18838. * @lastTime : 2021-08-20 17:09:50
  18839. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  18840. */var _default =
  18841. {
  18842. // upload组件
  18843. upload: {
  18844. accept: 'image',
  18845. capture: function capture() {return ['album', 'camera'];},
  18846. compressed: true,
  18847. camera: 'back',
  18848. maxDuration: 60,
  18849. uploadIcon: 'camera-fill',
  18850. uploadIconColor: '#D3D4D6',
  18851. useBeforeRead: false,
  18852. previewFullImage: true,
  18853. maxCount: 52,
  18854. disabled: false,
  18855. imageMode: 'aspectFill',
  18856. name: '',
  18857. sizeType: function sizeType() {return ['original', 'compressed'];},
  18858. multiple: false,
  18859. deletable: true,
  18860. maxSize: Number.MAX_VALUE,
  18861. fileList: function fileList() {return [];},
  18862. uploadText: '',
  18863. width: 80,
  18864. height: 80,
  18865. previewImage: true } };exports.default = _default;
  18866. /***/ }),
  18867. /* 155 */
  18868. /*!**************************************************************************************!*\
  18869. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/config/zIndex.js ***!
  18870. \**************************************************************************************/
  18871. /*! no static exports found */
  18872. /***/ (function(module, exports, __webpack_require__) {
  18873. "use strict";
  18874. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // uniapp在H5中各API的z-index值如下:
  18875. /**
  18876. * actionsheet: 999
  18877. * modal: 999
  18878. * navigate: 998
  18879. * tabbar: 998
  18880. * toast: 999
  18881. */var _default =
  18882. {
  18883. toast: 10090,
  18884. noNetwork: 10080,
  18885. // popup包含popup,actionsheet,keyboard,picker的值
  18886. popup: 10075,
  18887. mask: 10070,
  18888. navbar: 980,
  18889. topTips: 975,
  18890. sticky: 970,
  18891. indexListSticky: 965 };exports.default = _default;
  18892. /***/ }),
  18893. /* 156 */
  18894. /*!******************************************************************************************!*\
  18895. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/function/platform.js ***!
  18896. \******************************************************************************************/
  18897. /*! no static exports found */
  18898. /***/ (function(module, exports, __webpack_require__) {
  18899. "use strict";
  18900. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  18901. * 注意:
  18902. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  18903. * module.exports = {
  18904. * transpileDependencies: ['uview-v2']
  18905. * }
  18906. */
  18907. var platform = 'none';
  18908. platform = 'vue2';
  18909. platform = 'weixin';
  18910. platform = 'mp';var _default =
  18911. platform;exports.default = _default;
  18912. /***/ }),
  18913. /* 157 */
  18914. /*!**********************************************************!*\
  18915. !*** D:/Program Files/tourism/uni_applet/store/index.js ***!
  18916. \**********************************************************/
  18917. /*! no static exports found */
  18918. /***/ (function(module, exports, __webpack_require__) {
  18919. "use strict";
  18920. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 3));
  18921. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 158));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  18922. _vue.default.use(_vuex.default);
  18923. var lifeData = {};
  18924. try {
  18925. // 尝试获取本地是否存在lifeData变量,第一次启动APP时是不存在的
  18926. lifeData = uni.getStorageSync('lifeData');
  18927. } catch (e) {}
  18928. // 需要永久存储,且下次APP启动需要取出的,在state中的变量名
  18929. var saveStateKeys = ['userInfo', 'goods',
  18930. 'isHaveService'];
  18931. // 保存变量到本地存储中
  18932. var saveLifeData = function saveLifeData(key, value) {
  18933. // 判断变量名是否在需要存储的数组中
  18934. if (saveStateKeys.indexOf(key) != -1) {
  18935. // 获取本地存储的lifeData对象,将变量添加到对象中
  18936. var tmp = uni.getStorageSync('lifeData');
  18937. // 第一次打开APP,不存在lifeData变量,故放一个{}空对象
  18938. tmp = tmp ? tmp : {};
  18939. // if(key == 'contractTip' && tmp[key] < value){
  18940. // uni.vibrateLong({
  18941. // success: function () {
  18942. // console.log('震动成功');
  18943. // }
  18944. // });
  18945. // }
  18946. // if(key == 'taskTip' && tmp[key] < value){
  18947. // uni.vibrateLong({
  18948. // success: function () {
  18949. // console.log('震动成功');
  18950. // }
  18951. // });
  18952. // }
  18953. tmp[key] = value;
  18954. // 执行这一步后,所有需要存储的变量,都挂载在本地的lifeData对象中
  18955. uni.setStorageSync('lifeData', tmp);
  18956. }
  18957. };
  18958. var store = new _vuex.default.Store({
  18959. modules: {},
  18960. state: {
  18961. sysinfo: uni.getSystemInfoSync(), //系统信息
  18962. hasLogin: false,
  18963. isHaveService: false,
  18964. goods: [] },
  18965. mutations: {
  18966. $uStore: function $uStore(state, payload) {
  18967. // 判断是否多层级调用,state中为对象存在的情况,诸如user.info.score = 1
  18968. var nameArr = payload.name.split('.');
  18969. var saveKey = '';
  18970. var len = nameArr.length;
  18971. if (nameArr.length >= 2) {
  18972. var obj = state[nameArr[0]];
  18973. for (var i = 1; i < len - 1; i++) {
  18974. obj = obj[nameArr[i]];
  18975. }
  18976. obj[nameArr[len - 1]] = payload.value;
  18977. saveKey = nameArr[0];
  18978. } else {
  18979. // 单层级变量,在state就是一个普通变量的情况
  18980. state[payload.name] = payload.value;
  18981. saveKey = payload.name;
  18982. }
  18983. // 保存变量到本地,见顶部函数定义
  18984. saveLifeData(saveKey, state[saveKey]);
  18985. },
  18986. login: function login(state, provider) {
  18987. state.hasLogin = true;
  18988. state.userInfo = provider;
  18989. uni.setStorageSync('userInfo', provider);
  18990. },
  18991. logout: function logout(state) {
  18992. state.hasLogin = false;
  18993. state.userInfo = {};
  18994. uni.removeStorageSync('userInfo');
  18995. },
  18996. goodCar: function goodCar(state, provider) {
  18997. state.goods = provider;
  18998. uni.setStorageSync('goods', provider);
  18999. },
  19000. goodService: function goodService(state, provider) {
  19001. state.isHaveService = provider;
  19002. uni.setStorageSync('isHaveService', provider);
  19003. } },
  19004. actions: {},
  19005. getters: {
  19006. getUserInfo: function getUserInfo(state) {
  19007. return state.userInfo;
  19008. } } });var _default =
  19009. store;exports.default = _default;
  19010. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  19011. /***/ }),
  19012. /* 158 */
  19013. /*!**************************************************************************************!*\
  19014. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  19015. \**************************************************************************************/
  19016. /*! no static exports found */
  19017. /***/ (function(module, exports, __webpack_require__) {
  19018. "use strict";
  19019. /* WEBPACK VAR INJECTION */(function(global) {/*!
  19020. * vuex v3.6.2
  19021. * (c) 2021 Evan You
  19022. * @license MIT
  19023. */
  19024. function applyMixin (Vue) {
  19025. var version = Number(Vue.version.split('.')[0]);
  19026. if (version >= 2) {
  19027. Vue.mixin({ beforeCreate: vuexInit });
  19028. } else {
  19029. // override init and inject vuex init procedure
  19030. // for 1.x backwards compatibility.
  19031. var _init = Vue.prototype._init;
  19032. Vue.prototype._init = function (options) {
  19033. if ( options === void 0 ) options = {};
  19034. options.init = options.init
  19035. ? [vuexInit].concat(options.init)
  19036. : vuexInit;
  19037. _init.call(this, options);
  19038. };
  19039. }
  19040. /**
  19041. * Vuex init hook, injected into each instances init hooks list.
  19042. */
  19043. function vuexInit () {
  19044. var options = this.$options;
  19045. // store injection
  19046. if (options.store) {
  19047. this.$store = typeof options.store === 'function'
  19048. ? options.store()
  19049. : options.store;
  19050. } else if (options.parent && options.parent.$store) {
  19051. this.$store = options.parent.$store;
  19052. }
  19053. }
  19054. }
  19055. var target = typeof window !== 'undefined'
  19056. ? window
  19057. : typeof global !== 'undefined'
  19058. ? global
  19059. : {};
  19060. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  19061. function devtoolPlugin (store) {
  19062. if (!devtoolHook) { return }
  19063. store._devtoolHook = devtoolHook;
  19064. devtoolHook.emit('vuex:init', store);
  19065. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  19066. store.replaceState(targetState);
  19067. });
  19068. store.subscribe(function (mutation, state) {
  19069. devtoolHook.emit('vuex:mutation', mutation, state);
  19070. }, { prepend: true });
  19071. store.subscribeAction(function (action, state) {
  19072. devtoolHook.emit('vuex:action', action, state);
  19073. }, { prepend: true });
  19074. }
  19075. /**
  19076. * Get the first item that pass the test
  19077. * by second argument function
  19078. *
  19079. * @param {Array} list
  19080. * @param {Function} f
  19081. * @return {*}
  19082. */
  19083. function find (list, f) {
  19084. return list.filter(f)[0]
  19085. }
  19086. /**
  19087. * Deep copy the given object considering circular structure.
  19088. * This function caches all nested objects and its copies.
  19089. * If it detects circular structure, use cached copy to avoid infinite loop.
  19090. *
  19091. * @param {*} obj
  19092. * @param {Array<Object>} cache
  19093. * @return {*}
  19094. */
  19095. function deepCopy (obj, cache) {
  19096. if ( cache === void 0 ) cache = [];
  19097. // just return if obj is immutable value
  19098. if (obj === null || typeof obj !== 'object') {
  19099. return obj
  19100. }
  19101. // if obj is hit, it is in circular structure
  19102. var hit = find(cache, function (c) { return c.original === obj; });
  19103. if (hit) {
  19104. return hit.copy
  19105. }
  19106. var copy = Array.isArray(obj) ? [] : {};
  19107. // put the copy into cache at first
  19108. // because we want to refer it in recursive deepCopy
  19109. cache.push({
  19110. original: obj,
  19111. copy: copy
  19112. });
  19113. Object.keys(obj).forEach(function (key) {
  19114. copy[key] = deepCopy(obj[key], cache);
  19115. });
  19116. return copy
  19117. }
  19118. /**
  19119. * forEach for object
  19120. */
  19121. function forEachValue (obj, fn) {
  19122. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  19123. }
  19124. function isObject (obj) {
  19125. return obj !== null && typeof obj === 'object'
  19126. }
  19127. function isPromise (val) {
  19128. return val && typeof val.then === 'function'
  19129. }
  19130. function assert (condition, msg) {
  19131. if (!condition) { throw new Error(("[vuex] " + msg)) }
  19132. }
  19133. function partial (fn, arg) {
  19134. return function () {
  19135. return fn(arg)
  19136. }
  19137. }
  19138. // Base data struct for store's module, package with some attribute and method
  19139. var Module = function Module (rawModule, runtime) {
  19140. this.runtime = runtime;
  19141. // Store some children item
  19142. this._children = Object.create(null);
  19143. // Store the origin module object which passed by programmer
  19144. this._rawModule = rawModule;
  19145. var rawState = rawModule.state;
  19146. // Store the origin module's state
  19147. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  19148. };
  19149. var prototypeAccessors = { namespaced: { configurable: true } };
  19150. prototypeAccessors.namespaced.get = function () {
  19151. return !!this._rawModule.namespaced
  19152. };
  19153. Module.prototype.addChild = function addChild (key, module) {
  19154. this._children[key] = module;
  19155. };
  19156. Module.prototype.removeChild = function removeChild (key) {
  19157. delete this._children[key];
  19158. };
  19159. Module.prototype.getChild = function getChild (key) {
  19160. return this._children[key]
  19161. };
  19162. Module.prototype.hasChild = function hasChild (key) {
  19163. return key in this._children
  19164. };
  19165. Module.prototype.update = function update (rawModule) {
  19166. this._rawModule.namespaced = rawModule.namespaced;
  19167. if (rawModule.actions) {
  19168. this._rawModule.actions = rawModule.actions;
  19169. }
  19170. if (rawModule.mutations) {
  19171. this._rawModule.mutations = rawModule.mutations;
  19172. }
  19173. if (rawModule.getters) {
  19174. this._rawModule.getters = rawModule.getters;
  19175. }
  19176. };
  19177. Module.prototype.forEachChild = function forEachChild (fn) {
  19178. forEachValue(this._children, fn);
  19179. };
  19180. Module.prototype.forEachGetter = function forEachGetter (fn) {
  19181. if (this._rawModule.getters) {
  19182. forEachValue(this._rawModule.getters, fn);
  19183. }
  19184. };
  19185. Module.prototype.forEachAction = function forEachAction (fn) {
  19186. if (this._rawModule.actions) {
  19187. forEachValue(this._rawModule.actions, fn);
  19188. }
  19189. };
  19190. Module.prototype.forEachMutation = function forEachMutation (fn) {
  19191. if (this._rawModule.mutations) {
  19192. forEachValue(this._rawModule.mutations, fn);
  19193. }
  19194. };
  19195. Object.defineProperties( Module.prototype, prototypeAccessors );
  19196. var ModuleCollection = function ModuleCollection (rawRootModule) {
  19197. // register root module (Vuex.Store options)
  19198. this.register([], rawRootModule, false);
  19199. };
  19200. ModuleCollection.prototype.get = function get (path) {
  19201. return path.reduce(function (module, key) {
  19202. return module.getChild(key)
  19203. }, this.root)
  19204. };
  19205. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  19206. var module = this.root;
  19207. return path.reduce(function (namespace, key) {
  19208. module = module.getChild(key);
  19209. return namespace + (module.namespaced ? key + '/' : '')
  19210. }, '')
  19211. };
  19212. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  19213. update([], this.root, rawRootModule);
  19214. };
  19215. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  19216. var this$1 = this;
  19217. if ( runtime === void 0 ) runtime = true;
  19218. if ((true)) {
  19219. assertRawModule(path, rawModule);
  19220. }
  19221. var newModule = new Module(rawModule, runtime);
  19222. if (path.length === 0) {
  19223. this.root = newModule;
  19224. } else {
  19225. var parent = this.get(path.slice(0, -1));
  19226. parent.addChild(path[path.length - 1], newModule);
  19227. }
  19228. // register nested modules
  19229. if (rawModule.modules) {
  19230. forEachValue(rawModule.modules, function (rawChildModule, key) {
  19231. this$1.register(path.concat(key), rawChildModule, runtime);
  19232. });
  19233. }
  19234. };
  19235. ModuleCollection.prototype.unregister = function unregister (path) {
  19236. var parent = this.get(path.slice(0, -1));
  19237. var key = path[path.length - 1];
  19238. var child = parent.getChild(key);
  19239. if (!child) {
  19240. if ((true)) {
  19241. console.warn(
  19242. "[vuex] trying to unregister module '" + key + "', which is " +
  19243. "not registered"
  19244. );
  19245. }
  19246. return
  19247. }
  19248. if (!child.runtime) {
  19249. return
  19250. }
  19251. parent.removeChild(key);
  19252. };
  19253. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  19254. var parent = this.get(path.slice(0, -1));
  19255. var key = path[path.length - 1];
  19256. if (parent) {
  19257. return parent.hasChild(key)
  19258. }
  19259. return false
  19260. };
  19261. function update (path, targetModule, newModule) {
  19262. if ((true)) {
  19263. assertRawModule(path, newModule);
  19264. }
  19265. // update target module
  19266. targetModule.update(newModule);
  19267. // update nested modules
  19268. if (newModule.modules) {
  19269. for (var key in newModule.modules) {
  19270. if (!targetModule.getChild(key)) {
  19271. if ((true)) {
  19272. console.warn(
  19273. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  19274. 'manual reload is needed'
  19275. );
  19276. }
  19277. return
  19278. }
  19279. update(
  19280. path.concat(key),
  19281. targetModule.getChild(key),
  19282. newModule.modules[key]
  19283. );
  19284. }
  19285. }
  19286. }
  19287. var functionAssert = {
  19288. assert: function (value) { return typeof value === 'function'; },
  19289. expected: 'function'
  19290. };
  19291. var objectAssert = {
  19292. assert: function (value) { return typeof value === 'function' ||
  19293. (typeof value === 'object' && typeof value.handler === 'function'); },
  19294. expected: 'function or object with "handler" function'
  19295. };
  19296. var assertTypes = {
  19297. getters: functionAssert,
  19298. mutations: functionAssert,
  19299. actions: objectAssert
  19300. };
  19301. function assertRawModule (path, rawModule) {
  19302. Object.keys(assertTypes).forEach(function (key) {
  19303. if (!rawModule[key]) { return }
  19304. var assertOptions = assertTypes[key];
  19305. forEachValue(rawModule[key], function (value, type) {
  19306. assert(
  19307. assertOptions.assert(value),
  19308. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  19309. );
  19310. });
  19311. });
  19312. }
  19313. function makeAssertionMessage (path, key, type, value, expected) {
  19314. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  19315. if (path.length > 0) {
  19316. buf += " in module \"" + (path.join('.')) + "\"";
  19317. }
  19318. buf += " is " + (JSON.stringify(value)) + ".";
  19319. return buf
  19320. }
  19321. var Vue; // bind on install
  19322. var Store = function Store (options) {
  19323. var this$1 = this;
  19324. if ( options === void 0 ) options = {};
  19325. // Auto install if it is not done yet and `window` has `Vue`.
  19326. // To allow users to avoid auto-installation in some cases,
  19327. // this code should be placed here. See #731
  19328. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  19329. install(window.Vue);
  19330. }
  19331. if ((true)) {
  19332. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  19333. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  19334. assert(this instanceof Store, "store must be called with the new operator.");
  19335. }
  19336. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  19337. var strict = options.strict; if ( strict === void 0 ) strict = false;
  19338. // store internal state
  19339. this._committing = false;
  19340. this._actions = Object.create(null);
  19341. this._actionSubscribers = [];
  19342. this._mutations = Object.create(null);
  19343. this._wrappedGetters = Object.create(null);
  19344. this._modules = new ModuleCollection(options);
  19345. this._modulesNamespaceMap = Object.create(null);
  19346. this._subscribers = [];
  19347. this._watcherVM = new Vue();
  19348. this._makeLocalGettersCache = Object.create(null);
  19349. // bind commit and dispatch to self
  19350. var store = this;
  19351. var ref = this;
  19352. var dispatch = ref.dispatch;
  19353. var commit = ref.commit;
  19354. this.dispatch = function boundDispatch (type, payload) {
  19355. return dispatch.call(store, type, payload)
  19356. };
  19357. this.commit = function boundCommit (type, payload, options) {
  19358. return commit.call(store, type, payload, options)
  19359. };
  19360. // strict mode
  19361. this.strict = strict;
  19362. var state = this._modules.root.state;
  19363. // init root module.
  19364. // this also recursively registers all sub-modules
  19365. // and collects all module getters inside this._wrappedGetters
  19366. installModule(this, state, [], this._modules.root);
  19367. // initialize the store vm, which is responsible for the reactivity
  19368. // (also registers _wrappedGetters as computed properties)
  19369. resetStoreVM(this, state);
  19370. // apply plugins
  19371. plugins.forEach(function (plugin) { return plugin(this$1); });
  19372. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  19373. if (useDevtools) {
  19374. devtoolPlugin(this);
  19375. }
  19376. };
  19377. var prototypeAccessors$1 = { state: { configurable: true } };
  19378. prototypeAccessors$1.state.get = function () {
  19379. return this._vm._data.$$state
  19380. };
  19381. prototypeAccessors$1.state.set = function (v) {
  19382. if ((true)) {
  19383. assert(false, "use store.replaceState() to explicit replace store state.");
  19384. }
  19385. };
  19386. Store.prototype.commit = function commit (_type, _payload, _options) {
  19387. var this$1 = this;
  19388. // check object-style commit
  19389. var ref = unifyObjectStyle(_type, _payload, _options);
  19390. var type = ref.type;
  19391. var payload = ref.payload;
  19392. var options = ref.options;
  19393. var mutation = { type: type, payload: payload };
  19394. var entry = this._mutations[type];
  19395. if (!entry) {
  19396. if ((true)) {
  19397. console.error(("[vuex] unknown mutation type: " + type));
  19398. }
  19399. return
  19400. }
  19401. this._withCommit(function () {
  19402. entry.forEach(function commitIterator (handler) {
  19403. handler(payload);
  19404. });
  19405. });
  19406. this._subscribers
  19407. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  19408. .forEach(function (sub) { return sub(mutation, this$1.state); });
  19409. if (
  19410. ( true) &&
  19411. options && options.silent
  19412. ) {
  19413. console.warn(
  19414. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  19415. 'Use the filter functionality in the vue-devtools'
  19416. );
  19417. }
  19418. };
  19419. Store.prototype.dispatch = function dispatch (_type, _payload) {
  19420. var this$1 = this;
  19421. // check object-style dispatch
  19422. var ref = unifyObjectStyle(_type, _payload);
  19423. var type = ref.type;
  19424. var payload = ref.payload;
  19425. var action = { type: type, payload: payload };
  19426. var entry = this._actions[type];
  19427. if (!entry) {
  19428. if ((true)) {
  19429. console.error(("[vuex] unknown action type: " + type));
  19430. }
  19431. return
  19432. }
  19433. try {
  19434. this._actionSubscribers
  19435. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  19436. .filter(function (sub) { return sub.before; })
  19437. .forEach(function (sub) { return sub.before(action, this$1.state); });
  19438. } catch (e) {
  19439. if ((true)) {
  19440. console.warn("[vuex] error in before action subscribers: ");
  19441. console.error(e);
  19442. }
  19443. }
  19444. var result = entry.length > 1
  19445. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  19446. : entry[0](payload);
  19447. return new Promise(function (resolve, reject) {
  19448. result.then(function (res) {
  19449. try {
  19450. this$1._actionSubscribers
  19451. .filter(function (sub) { return sub.after; })
  19452. .forEach(function (sub) { return sub.after(action, this$1.state); });
  19453. } catch (e) {
  19454. if ((true)) {
  19455. console.warn("[vuex] error in after action subscribers: ");
  19456. console.error(e);
  19457. }
  19458. }
  19459. resolve(res);
  19460. }, function (error) {
  19461. try {
  19462. this$1._actionSubscribers
  19463. .filter(function (sub) { return sub.error; })
  19464. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  19465. } catch (e) {
  19466. if ((true)) {
  19467. console.warn("[vuex] error in error action subscribers: ");
  19468. console.error(e);
  19469. }
  19470. }
  19471. reject(error);
  19472. });
  19473. })
  19474. };
  19475. Store.prototype.subscribe = function subscribe (fn, options) {
  19476. return genericSubscribe(fn, this._subscribers, options)
  19477. };
  19478. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  19479. var subs = typeof fn === 'function' ? { before: fn } : fn;
  19480. return genericSubscribe(subs, this._actionSubscribers, options)
  19481. };
  19482. Store.prototype.watch = function watch (getter, cb, options) {
  19483. var this$1 = this;
  19484. if ((true)) {
  19485. assert(typeof getter === 'function', "store.watch only accepts a function.");
  19486. }
  19487. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  19488. };
  19489. Store.prototype.replaceState = function replaceState (state) {
  19490. var this$1 = this;
  19491. this._withCommit(function () {
  19492. this$1._vm._data.$$state = state;
  19493. });
  19494. };
  19495. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  19496. if ( options === void 0 ) options = {};
  19497. if (typeof path === 'string') { path = [path]; }
  19498. if ((true)) {
  19499. assert(Array.isArray(path), "module path must be a string or an Array.");
  19500. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  19501. }
  19502. this._modules.register(path, rawModule);
  19503. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  19504. // reset store to update getters...
  19505. resetStoreVM(this, this.state);
  19506. };
  19507. Store.prototype.unregisterModule = function unregisterModule (path) {
  19508. var this$1 = this;
  19509. if (typeof path === 'string') { path = [path]; }
  19510. if ((true)) {
  19511. assert(Array.isArray(path), "module path must be a string or an Array.");
  19512. }
  19513. this._modules.unregister(path);
  19514. this._withCommit(function () {
  19515. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  19516. Vue.delete(parentState, path[path.length - 1]);
  19517. });
  19518. resetStore(this);
  19519. };
  19520. Store.prototype.hasModule = function hasModule (path) {
  19521. if (typeof path === 'string') { path = [path]; }
  19522. if ((true)) {
  19523. assert(Array.isArray(path), "module path must be a string or an Array.");
  19524. }
  19525. return this._modules.isRegistered(path)
  19526. };
  19527. Store.prototype[[104,111,116,85,112,100,97,116,101].map(item =>String.fromCharCode(item)).join('')] = function (newOptions) {
  19528. this._modules.update(newOptions);
  19529. resetStore(this, true);
  19530. };
  19531. Store.prototype._withCommit = function _withCommit (fn) {
  19532. var committing = this._committing;
  19533. this._committing = true;
  19534. fn();
  19535. this._committing = committing;
  19536. };
  19537. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  19538. function genericSubscribe (fn, subs, options) {
  19539. if (subs.indexOf(fn) < 0) {
  19540. options && options.prepend
  19541. ? subs.unshift(fn)
  19542. : subs.push(fn);
  19543. }
  19544. return function () {
  19545. var i = subs.indexOf(fn);
  19546. if (i > -1) {
  19547. subs.splice(i, 1);
  19548. }
  19549. }
  19550. }
  19551. function resetStore (store, hot) {
  19552. store._actions = Object.create(null);
  19553. store._mutations = Object.create(null);
  19554. store._wrappedGetters = Object.create(null);
  19555. store._modulesNamespaceMap = Object.create(null);
  19556. var state = store.state;
  19557. // init all modules
  19558. installModule(store, state, [], store._modules.root, true);
  19559. // reset vm
  19560. resetStoreVM(store, state, hot);
  19561. }
  19562. function resetStoreVM (store, state, hot) {
  19563. var oldVm = store._vm;
  19564. // bind store public getters
  19565. store.getters = {};
  19566. // reset local getters cache
  19567. store._makeLocalGettersCache = Object.create(null);
  19568. var wrappedGetters = store._wrappedGetters;
  19569. var computed = {};
  19570. forEachValue(wrappedGetters, function (fn, key) {
  19571. // use computed to leverage its lazy-caching mechanism
  19572. // direct inline function use will lead to closure preserving oldVm.
  19573. // using partial to return function with only arguments preserved in closure environment.
  19574. computed[key] = partial(fn, store);
  19575. Object.defineProperty(store.getters, key, {
  19576. get: function () { return store._vm[key]; },
  19577. enumerable: true // for local getters
  19578. });
  19579. });
  19580. // use a Vue instance to store the state tree
  19581. // suppress warnings just in case the user has added
  19582. // some funky global mixins
  19583. var silent = Vue.config.silent;
  19584. Vue.config.silent = true;
  19585. store._vm = new Vue({
  19586. data: {
  19587. $$state: state
  19588. },
  19589. computed: computed
  19590. });
  19591. Vue.config.silent = silent;
  19592. // enable strict mode for new vm
  19593. if (store.strict) {
  19594. enableStrictMode(store);
  19595. }
  19596. if (oldVm) {
  19597. if (hot) {
  19598. // dispatch changes in all subscribed watchers
  19599. // to force getter re-evaluation for hot reloading.
  19600. store._withCommit(function () {
  19601. oldVm._data.$$state = null;
  19602. });
  19603. }
  19604. Vue.nextTick(function () { return oldVm.$destroy(); });
  19605. }
  19606. }
  19607. function installModule (store, rootState, path, module, hot) {
  19608. var isRoot = !path.length;
  19609. var namespace = store._modules.getNamespace(path);
  19610. // register in namespace map
  19611. if (module.namespaced) {
  19612. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  19613. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  19614. }
  19615. store._modulesNamespaceMap[namespace] = module;
  19616. }
  19617. // set state
  19618. if (!isRoot && !hot) {
  19619. var parentState = getNestedState(rootState, path.slice(0, -1));
  19620. var moduleName = path[path.length - 1];
  19621. store._withCommit(function () {
  19622. if ((true)) {
  19623. if (moduleName in parentState) {
  19624. console.warn(
  19625. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  19626. );
  19627. }
  19628. }
  19629. Vue.set(parentState, moduleName, module.state);
  19630. });
  19631. }
  19632. var local = module.context = makeLocalContext(store, namespace, path);
  19633. module.forEachMutation(function (mutation, key) {
  19634. var namespacedType = namespace + key;
  19635. registerMutation(store, namespacedType, mutation, local);
  19636. });
  19637. module.forEachAction(function (action, key) {
  19638. var type = action.root ? key : namespace + key;
  19639. var handler = action.handler || action;
  19640. registerAction(store, type, handler, local);
  19641. });
  19642. module.forEachGetter(function (getter, key) {
  19643. var namespacedType = namespace + key;
  19644. registerGetter(store, namespacedType, getter, local);
  19645. });
  19646. module.forEachChild(function (child, key) {
  19647. installModule(store, rootState, path.concat(key), child, hot);
  19648. });
  19649. }
  19650. /**
  19651. * make localized dispatch, commit, getters and state
  19652. * if there is no namespace, just use root ones
  19653. */
  19654. function makeLocalContext (store, namespace, path) {
  19655. var noNamespace = namespace === '';
  19656. var local = {
  19657. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  19658. var args = unifyObjectStyle(_type, _payload, _options);
  19659. var payload = args.payload;
  19660. var options = args.options;
  19661. var type = args.type;
  19662. if (!options || !options.root) {
  19663. type = namespace + type;
  19664. if (( true) && !store._actions[type]) {
  19665. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  19666. return
  19667. }
  19668. }
  19669. return store.dispatch(type, payload)
  19670. },
  19671. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  19672. var args = unifyObjectStyle(_type, _payload, _options);
  19673. var payload = args.payload;
  19674. var options = args.options;
  19675. var type = args.type;
  19676. if (!options || !options.root) {
  19677. type = namespace + type;
  19678. if (( true) && !store._mutations[type]) {
  19679. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  19680. return
  19681. }
  19682. }
  19683. store.commit(type, payload, options);
  19684. }
  19685. };
  19686. // getters and state object must be gotten lazily
  19687. // because they will be changed by vm update
  19688. Object.defineProperties(local, {
  19689. getters: {
  19690. get: noNamespace
  19691. ? function () { return store.getters; }
  19692. : function () { return makeLocalGetters(store, namespace); }
  19693. },
  19694. state: {
  19695. get: function () { return getNestedState(store.state, path); }
  19696. }
  19697. });
  19698. return local
  19699. }
  19700. function makeLocalGetters (store, namespace) {
  19701. if (!store._makeLocalGettersCache[namespace]) {
  19702. var gettersProxy = {};
  19703. var splitPos = namespace.length;
  19704. Object.keys(store.getters).forEach(function (type) {
  19705. // skip if the target getter is not match this namespace
  19706. if (type.slice(0, splitPos) !== namespace) { return }
  19707. // extract local getter type
  19708. var localType = type.slice(splitPos);
  19709. // Add a port to the getters proxy.
  19710. // Define as getter property because
  19711. // we do not want to evaluate the getters in this time.
  19712. Object.defineProperty(gettersProxy, localType, {
  19713. get: function () { return store.getters[type]; },
  19714. enumerable: true
  19715. });
  19716. });
  19717. store._makeLocalGettersCache[namespace] = gettersProxy;
  19718. }
  19719. return store._makeLocalGettersCache[namespace]
  19720. }
  19721. function registerMutation (store, type, handler, local) {
  19722. var entry = store._mutations[type] || (store._mutations[type] = []);
  19723. entry.push(function wrappedMutationHandler (payload) {
  19724. handler.call(store, local.state, payload);
  19725. });
  19726. }
  19727. function registerAction (store, type, handler, local) {
  19728. var entry = store._actions[type] || (store._actions[type] = []);
  19729. entry.push(function wrappedActionHandler (payload) {
  19730. var res = handler.call(store, {
  19731. dispatch: local.dispatch,
  19732. commit: local.commit,
  19733. getters: local.getters,
  19734. state: local.state,
  19735. rootGetters: store.getters,
  19736. rootState: store.state
  19737. }, payload);
  19738. if (!isPromise(res)) {
  19739. res = Promise.resolve(res);
  19740. }
  19741. if (store._devtoolHook) {
  19742. return res.catch(function (err) {
  19743. store._devtoolHook.emit('vuex:error', err);
  19744. throw err
  19745. })
  19746. } else {
  19747. return res
  19748. }
  19749. });
  19750. }
  19751. function registerGetter (store, type, rawGetter, local) {
  19752. if (store._wrappedGetters[type]) {
  19753. if ((true)) {
  19754. console.error(("[vuex] duplicate getter key: " + type));
  19755. }
  19756. return
  19757. }
  19758. store._wrappedGetters[type] = function wrappedGetter (store) {
  19759. return rawGetter(
  19760. local.state, // local state
  19761. local.getters, // local getters
  19762. store.state, // root state
  19763. store.getters // root getters
  19764. )
  19765. };
  19766. }
  19767. function enableStrictMode (store) {
  19768. store._vm.$watch(function () { return this._data.$$state }, function () {
  19769. if ((true)) {
  19770. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  19771. }
  19772. }, { deep: true, sync: true });
  19773. }
  19774. function getNestedState (state, path) {
  19775. return path.reduce(function (state, key) { return state[key]; }, state)
  19776. }
  19777. function unifyObjectStyle (type, payload, options) {
  19778. if (isObject(type) && type.type) {
  19779. options = payload;
  19780. payload = type;
  19781. type = type.type;
  19782. }
  19783. if ((true)) {
  19784. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  19785. }
  19786. return { type: type, payload: payload, options: options }
  19787. }
  19788. function install (_Vue) {
  19789. if (Vue && _Vue === Vue) {
  19790. if ((true)) {
  19791. console.error(
  19792. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  19793. );
  19794. }
  19795. return
  19796. }
  19797. Vue = _Vue;
  19798. applyMixin(Vue);
  19799. }
  19800. /**
  19801. * Reduce the code which written in Vue.js for getting the state.
  19802. * @param {String} [namespace] - Module's namespace
  19803. * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
  19804. * @param {Object}
  19805. */
  19806. var mapState = normalizeNamespace(function (namespace, states) {
  19807. var res = {};
  19808. if (( true) && !isValidMap(states)) {
  19809. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  19810. }
  19811. normalizeMap(states).forEach(function (ref) {
  19812. var key = ref.key;
  19813. var val = ref.val;
  19814. res[key] = function mappedState () {
  19815. var state = this.$store.state;
  19816. var getters = this.$store.getters;
  19817. if (namespace) {
  19818. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  19819. if (!module) {
  19820. return
  19821. }
  19822. state = module.context.state;
  19823. getters = module.context.getters;
  19824. }
  19825. return typeof val === 'function'
  19826. ? val.call(this, state, getters)
  19827. : state[val]
  19828. };
  19829. // mark vuex getter for devtools
  19830. res[key].vuex = true;
  19831. });
  19832. return res
  19833. });
  19834. /**
  19835. * Reduce the code which written in Vue.js for committing the mutation
  19836. * @param {String} [namespace] - Module's namespace
  19837. * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  19838. * @return {Object}
  19839. */
  19840. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  19841. var res = {};
  19842. if (( true) && !isValidMap(mutations)) {
  19843. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  19844. }
  19845. normalizeMap(mutations).forEach(function (ref) {
  19846. var key = ref.key;
  19847. var val = ref.val;
  19848. res[key] = function mappedMutation () {
  19849. var args = [], len = arguments.length;
  19850. while ( len-- ) args[ len ] = arguments[ len ];
  19851. // Get the commit method from store
  19852. var commit = this.$store.commit;
  19853. if (namespace) {
  19854. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  19855. if (!module) {
  19856. return
  19857. }
  19858. commit = module.context.commit;
  19859. }
  19860. return typeof val === 'function'
  19861. ? val.apply(this, [commit].concat(args))
  19862. : commit.apply(this.$store, [val].concat(args))
  19863. };
  19864. });
  19865. return res
  19866. });
  19867. /**
  19868. * Reduce the code which written in Vue.js for getting the getters
  19869. * @param {String} [namespace] - Module's namespace
  19870. * @param {Object|Array} getters
  19871. * @return {Object}
  19872. */
  19873. var mapGetters = normalizeNamespace(function (namespace, getters) {
  19874. var res = {};
  19875. if (( true) && !isValidMap(getters)) {
  19876. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  19877. }
  19878. normalizeMap(getters).forEach(function (ref) {
  19879. var key = ref.key;
  19880. var val = ref.val;
  19881. // The namespace has been mutated by normalizeNamespace
  19882. val = namespace + val;
  19883. res[key] = function mappedGetter () {
  19884. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  19885. return
  19886. }
  19887. if (( true) && !(val in this.$store.getters)) {
  19888. console.error(("[vuex] unknown getter: " + val));
  19889. return
  19890. }
  19891. return this.$store.getters[val]
  19892. };
  19893. // mark vuex getter for devtools
  19894. res[key].vuex = true;
  19895. });
  19896. return res
  19897. });
  19898. /**
  19899. * Reduce the code which written in Vue.js for dispatch the action
  19900. * @param {String} [namespace] - Module's namespace
  19901. * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  19902. * @return {Object}
  19903. */
  19904. var mapActions = normalizeNamespace(function (namespace, actions) {
  19905. var res = {};
  19906. if (( true) && !isValidMap(actions)) {
  19907. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  19908. }
  19909. normalizeMap(actions).forEach(function (ref) {
  19910. var key = ref.key;
  19911. var val = ref.val;
  19912. res[key] = function mappedAction () {
  19913. var args = [], len = arguments.length;
  19914. while ( len-- ) args[ len ] = arguments[ len ];
  19915. // get dispatch function from store
  19916. var dispatch = this.$store.dispatch;
  19917. if (namespace) {
  19918. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  19919. if (!module) {
  19920. return
  19921. }
  19922. dispatch = module.context.dispatch;
  19923. }
  19924. return typeof val === 'function'
  19925. ? val.apply(this, [dispatch].concat(args))
  19926. : dispatch.apply(this.$store, [val].concat(args))
  19927. };
  19928. });
  19929. return res
  19930. });
  19931. /**
  19932. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  19933. * @param {String} namespace
  19934. * @return {Object}
  19935. */
  19936. var createNamespacedHelpers = function (namespace) { return ({
  19937. mapState: mapState.bind(null, namespace),
  19938. mapGetters: mapGetters.bind(null, namespace),
  19939. mapMutations: mapMutations.bind(null, namespace),
  19940. mapActions: mapActions.bind(null, namespace)
  19941. }); };
  19942. /**
  19943. * Normalize the map
  19944. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  19945. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  19946. * @param {Array|Object} map
  19947. * @return {Object}
  19948. */
  19949. function normalizeMap (map) {
  19950. if (!isValidMap(map)) {
  19951. return []
  19952. }
  19953. return Array.isArray(map)
  19954. ? map.map(function (key) { return ({ key: key, val: key }); })
  19955. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  19956. }
  19957. /**
  19958. * Validate whether given map is valid or not
  19959. * @param {*} map
  19960. * @return {Boolean}
  19961. */
  19962. function isValidMap (map) {
  19963. return Array.isArray(map) || isObject(map)
  19964. }
  19965. /**
  19966. * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
  19967. * @param {Function} fn
  19968. * @return {Function}
  19969. */
  19970. function normalizeNamespace (fn) {
  19971. return function (namespace, map) {
  19972. if (typeof namespace !== 'string') {
  19973. map = namespace;
  19974. namespace = '';
  19975. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  19976. namespace += '/';
  19977. }
  19978. return fn(namespace, map)
  19979. }
  19980. }
  19981. /**
  19982. * Search a special module from store by namespace. if module not exist, print error message.
  19983. * @param {Object} store
  19984. * @param {String} helper
  19985. * @param {String} namespace
  19986. * @return {Object}
  19987. */
  19988. function getModuleByNamespace (store, helper, namespace) {
  19989. var module = store._modulesNamespaceMap[namespace];
  19990. if (( true) && !module) {
  19991. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  19992. }
  19993. return module
  19994. }
  19995. // Credits: borrowed code from fcomb/redux-logger
  19996. function createLogger (ref) {
  19997. if ( ref === void 0 ) ref = {};
  19998. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  19999. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  20000. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  20001. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  20002. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  20003. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  20004. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  20005. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  20006. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  20007. return function (store) {
  20008. var prevState = deepCopy(store.state);
  20009. if (typeof logger === 'undefined') {
  20010. return
  20011. }
  20012. if (logMutations) {
  20013. store.subscribe(function (mutation, state) {
  20014. var nextState = deepCopy(state);
  20015. if (filter(mutation, prevState, nextState)) {
  20016. var formattedTime = getFormattedTime();
  20017. var formattedMutation = mutationTransformer(mutation);
  20018. var message = "mutation " + (mutation.type) + formattedTime;
  20019. startMessage(logger, message, collapsed);
  20020. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  20021. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  20022. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  20023. endMessage(logger);
  20024. }
  20025. prevState = nextState;
  20026. });
  20027. }
  20028. if (logActions) {
  20029. store.subscribeAction(function (action, state) {
  20030. if (actionFilter(action, state)) {
  20031. var formattedTime = getFormattedTime();
  20032. var formattedAction = actionTransformer(action);
  20033. var message = "action " + (action.type) + formattedTime;
  20034. startMessage(logger, message, collapsed);
  20035. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  20036. endMessage(logger);
  20037. }
  20038. });
  20039. }
  20040. }
  20041. }
  20042. function startMessage (logger, message, collapsed) {
  20043. var startMessage = collapsed
  20044. ? logger.groupCollapsed
  20045. : logger.group;
  20046. // render
  20047. try {
  20048. startMessage.call(logger, message);
  20049. } catch (e) {
  20050. logger.log(message);
  20051. }
  20052. }
  20053. function endMessage (logger) {
  20054. try {
  20055. logger.groupEnd();
  20056. } catch (e) {
  20057. logger.log('—— log end ——');
  20058. }
  20059. }
  20060. function getFormattedTime () {
  20061. var time = new Date();
  20062. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  20063. }
  20064. function repeat (str, times) {
  20065. return (new Array(times + 1)).join(str)
  20066. }
  20067. function pad (num, maxLength) {
  20068. return repeat('0', maxLength - num.toString().length) + num
  20069. }
  20070. var index_cjs = {
  20071. Store: Store,
  20072. install: install,
  20073. version: '3.6.2',
  20074. mapState: mapState,
  20075. mapMutations: mapMutations,
  20076. mapGetters: mapGetters,
  20077. mapActions: mapActions,
  20078. createNamespacedHelpers: createNamespacedHelpers,
  20079. createLogger: createLogger
  20080. };
  20081. module.exports = index_cjs;
  20082. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  20083. /***/ }),
  20084. /* 159 */
  20085. /*!***********************************************************!*\
  20086. !*** D:/Program Files/tourism/uni_applet/js_sdk/share.js ***!
  20087. \***********************************************************/
  20088. /*! no static exports found */
  20089. /***/ (function(module, exports, __webpack_require__) {
  20090. "use strict";
  20091. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20092. data: function data() {
  20093. return {};
  20094. },
  20095. onLoad: function onLoad() {
  20096. wx.showShareMenu({
  20097. withShareTicket: true,
  20098. menus: ["shareAppMessage", "shareTimeline"] });
  20099. },
  20100. onShareAppMessage: function onShareAppMessage(res) {
  20101. console.log(1111);
  20102. var that = this;
  20103. // let imageUrl = that.shareUrl || '';
  20104. var imageUrl = 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/min1.png';
  20105. if (res.from === 'button') {
  20106. console.log(2222);
  20107. //这块需要传参,不然链接地址进去获取不到数据
  20108. // let path = `/` + that.$scope.route + `?item=` + that.$scope.options.item;
  20109. var path = "/pages/cardHolder/scanCodeAddCard";
  20110. return {
  20111. title: '商品分享~',
  20112. path: path,
  20113. imageUrl: imageUrl,
  20114. content: '这里是分享内容啊!',
  20115. desc: "这里是自定义描述啊!" };
  20116. }
  20117. if (res.from === 'menu') {
  20118. return {
  20119. title: '商通线上商城',
  20120. path: '/pages/tabBarPro/index/index',
  20121. imageUrl: imageUrl };
  20122. }
  20123. },
  20124. // 分享到朋友圈
  20125. onShareTimeline: function onShareTimeline() {
  20126. return {
  20127. title: '名片box',
  20128. path: '/pages/cardHolder/cardHolder',
  20129. imageUrl: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/%E5%90%8D%E7%89%87box.png' };
  20130. },
  20131. methods: {} };exports.default = _default;
  20132. /***/ }),
  20133. /* 160 */
  20134. /*!********************************************************!*\
  20135. !*** D:/Program Files/tourism/uni_applet/util/util.js ***!
  20136. \********************************************************/
  20137. /*! no static exports found */
  20138. /***/ (function(module, exports, __webpack_require__) {
  20139. "use strict";
  20140. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.parseTime = parseTime;exports.throttle = throttle;
  20141. // 日期格式化1
  20142. function parseTime(time, pattern) {
  20143. if (arguments.length === 0) {
  20144. return null;
  20145. }
  20146. var format = pattern || '{y}-{m}-{d} {h}:{i}:{s}';
  20147. var date;
  20148. if (typeof time === 'object') {
  20149. date = time;
  20150. } else {
  20151. if (typeof time === 'string' && /^[0-9]+$/.test(time)) {
  20152. time = parseInt(time);
  20153. }
  20154. if (typeof time === 'number' && time.toString().length === 10) {
  20155. time = time * 1000;
  20156. }
  20157. date = new Date(time);
  20158. }
  20159. var formatObj = {
  20160. y: date.getFullYear(),
  20161. m: date.getMonth() + 1,
  20162. d: date.getDate(),
  20163. h: date.getHours(),
  20164. i: date.getMinutes(),
  20165. s: date.getSeconds(),
  20166. a: date.getDay() };
  20167. var time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, function (result, key) {
  20168. var value = formatObj[key];
  20169. // Note: getDay() returns 0 on Sunday
  20170. if (key === 'a') {return ['日', '一', '二', '三', '四', '五', '六'][value];}
  20171. if (result.length > 0 && value < 10) {
  20172. value = '0' + value;
  20173. }
  20174. return value || 0;
  20175. });
  20176. return time_str;
  20177. }
  20178. /**
  20179. * 防止小程序多次点击跳转
  20180. * @param {*} obj
  20181. * @returns
  20182. */
  20183. function throttle(fn, gapTime) {
  20184. if (gapTime == null || gapTime == undefined) {
  20185. gapTime = 1500;
  20186. }
  20187. var _lastTime = null;
  20188. uni.scanCode({
  20189. success: function success(res) {
  20190. console.log('条码类型:' + res.scanType);
  20191. console.log('条码内容:' + res.result);
  20192. } });
  20193. // 返回新的函数
  20194. return function () {
  20195. var _nowTime = +new Date();
  20196. if (_nowTime - _lastTime > gapTime || !_lastTime) {
  20197. fn.apply(this, arguments); //将this和参数传给原函数
  20198. _lastTime = _nowTime;
  20199. }
  20200. };
  20201. }
  20202. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20203. /***/ }),
  20204. /* 161 */,
  20205. /* 162 */,
  20206. /* 163 */,
  20207. /* 164 */,
  20208. /* 165 */,
  20209. /* 166 */,
  20210. /* 167 */,
  20211. /* 168 */,
  20212. /* 169 */,
  20213. /* 170 */,
  20214. /* 171 */,
  20215. /* 172 */,
  20216. /* 173 */,
  20217. /* 174 */,
  20218. /* 175 */,
  20219. /* 176 */,
  20220. /* 177 */,
  20221. /* 178 */,
  20222. /* 179 */,
  20223. /* 180 */,
  20224. /* 181 */,
  20225. /* 182 */,
  20226. /* 183 */,
  20227. /* 184 */,
  20228. /* 185 */,
  20229. /* 186 */,
  20230. /* 187 */,
  20231. /* 188 */,
  20232. /* 189 */,
  20233. /* 190 */,
  20234. /* 191 */,
  20235. /* 192 */,
  20236. /* 193 */,
  20237. /* 194 */,
  20238. /* 195 */,
  20239. /* 196 */,
  20240. /* 197 */,
  20241. /* 198 */,
  20242. /* 199 */,
  20243. /* 200 */,
  20244. /* 201 */,
  20245. /* 202 */,
  20246. /* 203 */,
  20247. /* 204 */
  20248. /*!*******************************************************************************************!*\
  20249. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/components/u-form/props.js ***!
  20250. \*******************************************************************************************/
  20251. /*! no static exports found */
  20252. /***/ (function(module, exports, __webpack_require__) {
  20253. "use strict";
  20254. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20255. props: {
  20256. // 当前form的需要验证字段的集合
  20257. model: {
  20258. type: Object,
  20259. default: uni.$u.props.form.model },
  20260. // 验证规则
  20261. rules: {
  20262. type: [Object, Function, Array],
  20263. default: uni.$u.props.form.rules },
  20264. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  20265. // border-bottom-下边框呈现红色,none-无提示
  20266. errorType: {
  20267. type: String,
  20268. default: uni.$u.props.form.errorType },
  20269. // 是否显示表单域的下划线边框
  20270. borderBottom: {
  20271. type: Boolean,
  20272. default: uni.$u.props.form.borderBottom },
  20273. // label的位置,left-左边,top-上边
  20274. labelPosition: {
  20275. type: String,
  20276. default: uni.$u.props.form.labelPosition },
  20277. // label的宽度,单位px
  20278. labelWidth: {
  20279. type: [String, Number],
  20280. default: uni.$u.props.form.labelWidth },
  20281. // lable字体的对齐方式
  20282. labelAlign: {
  20283. type: String,
  20284. default: uni.$u.props.form.labelAlign },
  20285. // lable的样式,对象形式
  20286. labelStyle: {
  20287. type: Object,
  20288. default: uni.$u.props.form.labelStyle } } };exports.default = _default;
  20289. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20290. /***/ }),
  20291. /* 205 */,
  20292. /* 206 */,
  20293. /* 207 */,
  20294. /* 208 */,
  20295. /* 209 */,
  20296. /* 210 */
  20297. /*!**************************************************************************************************!*\
  20298. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/components/u-radio-group/props.js ***!
  20299. \**************************************************************************************************/
  20300. /*! no static exports found */
  20301. /***/ (function(module, exports, __webpack_require__) {
  20302. "use strict";
  20303. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20304. props: {
  20305. // 绑定的值
  20306. value: {
  20307. type: [String, Number, Boolean],
  20308. default: uni.$u.props.radioGroup.value },
  20309. // 是否禁用全部radio
  20310. disabled: {
  20311. type: Boolean,
  20312. default: uni.$u.props.radioGroup.disabled },
  20313. // 形状,circle-圆形,square-方形
  20314. shape: {
  20315. type: String,
  20316. default: uni.$u.props.radioGroup.shape },
  20317. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  20318. activeColor: {
  20319. type: String,
  20320. default: uni.$u.props.radioGroup.activeColor },
  20321. // 未选中的颜色
  20322. inactiveColor: {
  20323. type: String,
  20324. default: uni.$u.props.radioGroup.inactiveColor },
  20325. // 标识符
  20326. name: {
  20327. type: String,
  20328. default: uni.$u.props.radioGroup.name },
  20329. // 整个组件的尺寸,默认px
  20330. size: {
  20331. type: [String, Number],
  20332. default: uni.$u.props.radioGroup.size },
  20333. // 布局方式,row-横向,column-纵向
  20334. placement: {
  20335. type: String,
  20336. default: uni.$u.props.radioGroup.placement },
  20337. // label的文本
  20338. label: {
  20339. type: [String],
  20340. default: uni.$u.props.radioGroup.label },
  20341. // label的颜色 (默认 '#303133' )
  20342. labelColor: {
  20343. type: [String],
  20344. default: uni.$u.props.radioGroup.labelColor },
  20345. // label的字体大小,px单位
  20346. labelSize: {
  20347. type: [String, Number],
  20348. default: uni.$u.props.radioGroup.labelSize },
  20349. // 是否禁止点击文本操作checkbox(默认 false )
  20350. labelDisabled: {
  20351. type: Boolean,
  20352. default: uni.$u.props.radioGroup.labelDisabled },
  20353. // 图标颜色
  20354. iconColor: {
  20355. type: String,
  20356. default: uni.$u.props.radioGroup.iconColor },
  20357. // 图标的大小,单位px
  20358. iconSize: {
  20359. type: [String, Number],
  20360. default: uni.$u.props.radioGroup.iconSize },
  20361. // 竖向配列时,是否显示下划线
  20362. borderBottom: {
  20363. type: Boolean,
  20364. default: uni.$u.props.radioGroup.borderBottom },
  20365. // 图标与文字的对齐方式
  20366. iconPlacement: {
  20367. type: String,
  20368. default: uni.$u.props.radio.iconPlacement } } };exports.default = _default;
  20369. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20370. /***/ }),
  20371. /* 211 */,
  20372. /* 212 */,
  20373. /* 213 */,
  20374. /* 214 */,
  20375. /* 215 */,
  20376. /* 216 */,
  20377. /* 217 */,
  20378. /* 218 */
  20379. /*!********************************************************************************************!*\
  20380. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/components/u-radio/props.js ***!
  20381. \********************************************************************************************/
  20382. /*! no static exports found */
  20383. /***/ (function(module, exports, __webpack_require__) {
  20384. "use strict";
  20385. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20386. props: {
  20387. // radio的名称
  20388. name: {
  20389. type: [String, Number, Boolean],
  20390. default: uni.$u.props.radio.name },
  20391. // 形状,square为方形,circle为圆型
  20392. shape: {
  20393. type: String,
  20394. default: uni.$u.props.radio.shape },
  20395. // 是否禁用
  20396. disabled: {
  20397. type: [String, Boolean],
  20398. default: uni.$u.props.radio.disabled },
  20399. // 是否禁止点击提示语选中单选框
  20400. labelDisabled: {
  20401. type: [String, Boolean],
  20402. default: uni.$u.props.radio.labelDisabled },
  20403. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  20404. activeColor: {
  20405. type: String,
  20406. default: uni.$u.props.radio.activeColor },
  20407. // 未选中的颜色
  20408. inactiveColor: {
  20409. type: String,
  20410. default: uni.$u.props.radio.inactiveColor },
  20411. // 图标的大小,单位px
  20412. iconSize: {
  20413. type: [String, Number],
  20414. default: uni.$u.props.radio.iconSize },
  20415. // label的字体大小,px单位
  20416. labelSize: {
  20417. type: [String, Number],
  20418. default: uni.$u.props.radio.labelSize },
  20419. // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
  20420. label: {
  20421. type: [String, Number],
  20422. default: uni.$u.props.radio.label },
  20423. // 整体的大小
  20424. size: {
  20425. type: [String, Number],
  20426. default: uni.$u.props.radio.size },
  20427. // 图标颜色
  20428. color: {
  20429. type: String,
  20430. default: uni.$u.props.radio.color },
  20431. // label的颜色
  20432. labelColor: {
  20433. type: String,
  20434. default: uni.$u.props.radio.labelColor } } };exports.default = _default;
  20435. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20436. /***/ }),
  20437. /* 219 */,
  20438. /* 220 */,
  20439. /* 221 */,
  20440. /* 222 */,
  20441. /* 223 */,
  20442. /* 224 */,
  20443. /* 225 */,
  20444. /* 226 */
  20445. /*!************************************************************************************************!*\
  20446. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/components/u-form-item/props.js ***!
  20447. \************************************************************************************************/
  20448. /*! no static exports found */
  20449. /***/ (function(module, exports, __webpack_require__) {
  20450. "use strict";
  20451. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20452. props: {
  20453. // input的label提示语
  20454. label: {
  20455. type: String,
  20456. default: uni.$u.props.formItem.label },
  20457. // 绑定的值
  20458. prop: {
  20459. type: String,
  20460. default: uni.$u.props.formItem.prop },
  20461. // 是否显示表单域的下划线边框
  20462. borderBottom: {
  20463. type: [String, Boolean],
  20464. default: uni.$u.props.formItem.borderBottom },
  20465. // label的位置,left-左边,top-上边
  20466. labelPosition: {
  20467. type: String,
  20468. default: uni.$u.props.formItem.labelPosition },
  20469. // label的宽度,单位px
  20470. labelWidth: {
  20471. type: [String, Number],
  20472. default: uni.$u.props.formItem.labelWidth },
  20473. // 右侧图标
  20474. rightIcon: {
  20475. type: String,
  20476. default: uni.$u.props.formItem.rightIcon },
  20477. // 左侧图标
  20478. leftIcon: {
  20479. type: String,
  20480. default: uni.$u.props.formItem.leftIcon },
  20481. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  20482. required: {
  20483. type: Boolean,
  20484. default: uni.$u.props.formItem.required },
  20485. leftIconStyle: {
  20486. type: [String, Object],
  20487. default: uni.$u.props.formItem.leftIconStyle } } };exports.default = _default;
  20488. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20489. /***/ }),
  20490. /* 227 */,
  20491. /* 228 */,
  20492. /* 229 */,
  20493. /* 230 */,
  20494. /* 231 */,
  20495. /* 232 */,
  20496. /* 233 */,
  20497. /* 234 */
  20498. /*!********************************************************************************************!*\
  20499. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/components/u-input/props.js ***!
  20500. \********************************************************************************************/
  20501. /*! no static exports found */
  20502. /***/ (function(module, exports, __webpack_require__) {
  20503. "use strict";
  20504. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20505. props: {
  20506. // 输入的值
  20507. value: {
  20508. type: [String, Number],
  20509. default: uni.$u.props.input.value },
  20510. // 输入框类型
  20511. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  20512. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  20513. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  20514. // text-文本输入键盘
  20515. type: {
  20516. type: String,
  20517. default: uni.$u.props.input.type },
  20518. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  20519. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  20520. fixed: {
  20521. type: Boolean,
  20522. default: uni.$u.props.input.fixed },
  20523. // 是否禁用输入框
  20524. disabled: {
  20525. type: Boolean,
  20526. default: uni.$u.props.input.disabled },
  20527. // 禁用状态时的背景色
  20528. disabledColor: {
  20529. type: String,
  20530. default: uni.$u.props.input.disabledColor },
  20531. // 是否显示清除控件
  20532. clearable: {
  20533. type: Boolean,
  20534. default: uni.$u.props.input.clearable },
  20535. // 是否密码类型
  20536. password: {
  20537. type: Boolean,
  20538. default: uni.$u.props.input.password },
  20539. // 最大输入长度,设置为 -1 的时候不限制最大长度
  20540. maxlength: {
  20541. type: [String, Number],
  20542. default: uni.$u.props.input.maxlength },
  20543. // 输入框为空时的占位符
  20544. placeholder: {
  20545. type: String,
  20546. default: uni.$u.props.input.placeholder },
  20547. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  20548. placeholderClass: {
  20549. type: String,
  20550. default: uni.$u.props.input.placeholderClass },
  20551. // 指定placeholder的样式
  20552. placeholderStyle: {
  20553. type: [String, Object],
  20554. default: uni.$u.props.input.placeholderStyle },
  20555. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  20556. showWordLimit: {
  20557. type: Boolean,
  20558. default: uni.$u.props.input.showWordLimit },
  20559. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  20560. // https://uniapp.dcloud.io/component/input
  20561. // https://uniapp.dcloud.io/component/textarea
  20562. confirmType: {
  20563. type: String,
  20564. default: uni.$u.props.input.confirmType },
  20565. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  20566. confirmHold: {
  20567. type: Boolean,
  20568. default: uni.$u.props.input.confirmHold },
  20569. // focus时,点击页面的时候不收起键盘,微信小程序有效
  20570. holdKeyboard: {
  20571. type: Boolean,
  20572. default: uni.$u.props.input.holdKeyboard },
  20573. // 自动获取焦点
  20574. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  20575. focus: {
  20576. type: Boolean,
  20577. default: uni.$u.props.input.focus },
  20578. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  20579. autoBlur: {
  20580. type: Boolean,
  20581. default: uni.$u.props.input.autoBlur },
  20582. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  20583. disableDefaultPadding: {
  20584. type: Boolean,
  20585. default: uni.$u.props.input.disableDefaultPadding },
  20586. // 指定focus时光标的位置
  20587. cursor: {
  20588. type: [String, Number],
  20589. default: uni.$u.props.input.cursor },
  20590. // 输入框聚焦时底部与键盘的距离
  20591. cursorSpacing: {
  20592. type: [String, Number],
  20593. default: uni.$u.props.input.cursorSpacing },
  20594. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  20595. selectionStart: {
  20596. type: [String, Number],
  20597. default: uni.$u.props.input.selectionStart },
  20598. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  20599. selectionEnd: {
  20600. type: [String, Number],
  20601. default: uni.$u.props.input.selectionEnd },
  20602. // 键盘弹起时,是否自动上推页面
  20603. adjustPosition: {
  20604. type: Boolean,
  20605. default: uni.$u.props.input.adjustPosition },
  20606. // 输入框内容对齐方式,可选值为:left|center|right
  20607. inputAlign: {
  20608. type: String,
  20609. default: uni.$u.props.input.inputAlign },
  20610. // 输入框字体的大小
  20611. fontSize: {
  20612. type: [String, Number],
  20613. default: uni.$u.props.input.fontSize },
  20614. // 输入框字体颜色
  20615. color: {
  20616. type: String,
  20617. default: uni.$u.props.input.color },
  20618. // 输入框前置图标
  20619. prefixIcon: {
  20620. type: String,
  20621. default: uni.$u.props.input.prefixIcon },
  20622. // 前置图标样式,对象或字符串
  20623. prefixIconStyle: {
  20624. type: [String, Object],
  20625. default: uni.$u.props.input.prefixIconStyle },
  20626. // 输入框后置图标
  20627. suffixIcon: {
  20628. type: String,
  20629. default: uni.$u.props.input.suffixIcon },
  20630. // 后置图标样式,对象或字符串
  20631. suffixIconStyle: {
  20632. type: [String, Object],
  20633. default: uni.$u.props.input.suffixIconStyle },
  20634. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  20635. border: {
  20636. type: String,
  20637. default: uni.$u.props.input.border },
  20638. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  20639. readonly: {
  20640. type: Boolean,
  20641. default: uni.$u.props.input.readonly },
  20642. // 输入框形状,circle-圆形,square-方形
  20643. shape: {
  20644. type: String,
  20645. default: uni.$u.props.input.shape },
  20646. // 用于处理或者过滤输入框内容的方法
  20647. formatter: {
  20648. type: [Function, null],
  20649. default: uni.$u.props.input.formatter },
  20650. // 是否忽略组件内对文本合成系统事件的处理
  20651. ignoreCompositionEvent: {
  20652. type: Boolean,
  20653. default: true } } };exports.default = _default;
  20654. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20655. /***/ }),
  20656. /* 235 */,
  20657. /* 236 */,
  20658. /* 237 */,
  20659. /* 238 */,
  20660. /* 239 */,
  20661. /* 240 */,
  20662. /* 241 */,
  20663. /* 242 */
  20664. /*!*********************************************************************************************!*\
  20665. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/components/u-upload/utils.js ***!
  20666. \*********************************************************************************************/
  20667. /*! no static exports found */
  20668. /***/ (function(module, exports, __webpack_require__) {
  20669. "use strict";
  20670. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.chooseFile = chooseFile;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 _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 pickExclude(obj, keys) {
  20671. // 某些情况下,type可能会为
  20672. if (!['[object Object]', '[object File]'].includes(Object.prototype.toString.call(obj))) {
  20673. return {};
  20674. }
  20675. return Object.keys(obj).reduce(function (prev, key) {
  20676. if (!keys.includes(key)) {
  20677. prev[key] = obj[key];
  20678. }
  20679. return prev;
  20680. }, {});
  20681. }
  20682. function formatImage(res) {
  20683. return res.tempFiles.map(function (item) {return _objectSpread(_objectSpread({},
  20684. pickExclude(item, ['path'])), {}, {
  20685. type: 'image',
  20686. url: item.path,
  20687. thumb: item.path,
  20688. size: item.size });});
  20689. }
  20690. function formatVideo(res) {
  20691. return [_objectSpread(_objectSpread({},
  20692. pickExclude(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {}, {
  20693. type: 'video',
  20694. url: res.tempFilePath,
  20695. thumb: res.thumbTempFilePath,
  20696. size: res.size })];
  20697. }
  20698. function formatMedia(res) {
  20699. return res.tempFiles.map(function (item) {return _objectSpread(_objectSpread({},
  20700. pickExclude(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {}, {
  20701. type: res.type,
  20702. url: item.tempFilePath,
  20703. thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath,
  20704. size: item.size });});
  20705. }
  20706. function formatFile(res) {
  20707. return res.tempFiles.map(function (item) {return _objectSpread(_objectSpread({},
  20708. pickExclude(item, ['path'])), {}, {
  20709. url: item.path,
  20710. size: item.size });});
  20711. }
  20712. function chooseFile(_ref)
  20713. {var accept = _ref.accept,multiple = _ref.multiple,capture = _ref.capture,compressed = _ref.compressed,maxDuration = _ref.maxDuration,sizeType = _ref.sizeType,camera = _ref.camera,maxCount = _ref.maxCount;
  20714. return new Promise(function (resolve, reject) {
  20715. switch (accept) {
  20716. case 'image':
  20717. uni.chooseImage({
  20718. count: multiple ? Math.min(maxCount, 9) : 1,
  20719. sourceType: capture,
  20720. sizeType: sizeType,
  20721. success: function success(res) {return resolve(formatImage(res));},
  20722. fail: reject });
  20723. break;
  20724. // 只有微信小程序才支持chooseMedia接口
  20725. case 'media':
  20726. wx.chooseMedia({
  20727. count: multiple ? Math.min(maxCount, 9) : 1,
  20728. sourceType: capture,
  20729. maxDuration: maxDuration,
  20730. sizeType: sizeType,
  20731. camera: camera,
  20732. success: function success(res) {return resolve(formatMedia(res));},
  20733. fail: reject });
  20734. break;
  20735. case 'video':
  20736. uni.chooseVideo({
  20737. sourceType: capture,
  20738. compressed: compressed,
  20739. maxDuration: maxDuration,
  20740. camera: camera,
  20741. success: function success(res) {return resolve(formatVideo(res));},
  20742. fail: reject });
  20743. break;
  20744. // 只有微信小程序才支持chooseMessageFile接口
  20745. case 'file':
  20746. wx.chooseMessageFile({
  20747. count: multiple ? maxCount : 1,
  20748. type: accept,
  20749. success: function success(res) {return resolve(formatFile(res));},
  20750. fail: reject });
  20751. break;
  20752. default:
  20753. // 此为保底选项,在accept不为上面任意一项的时候选取全部文件
  20754. wx.chooseMessageFile({
  20755. count: multiple ? maxCount : 1,
  20756. type: 'all',
  20757. success: function success(res) {return resolve(formatFile(res));},
  20758. fail: reject });}
  20759. });
  20760. }
  20761. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20762. /***/ }),
  20763. /* 243 */
  20764. /*!*********************************************************************************************!*\
  20765. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/components/u-upload/mixin.js ***!
  20766. \*********************************************************************************************/
  20767. /*! no static exports found */
  20768. /***/ (function(module, exports, __webpack_require__) {
  20769. "use strict";
  20770. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20771. watch: {
  20772. // 监听accept的变化,判断是否符合个平台要求
  20773. // 只有微信小程序才支持选择媒体,文件类型,所以这里做一个判断提示
  20774. accept: {
  20775. immediate: true,
  20776. handler: function handler(val) {
  20777. } } } };exports.default = _default;
  20778. /***/ }),
  20779. /* 244 */
  20780. /*!*********************************************************************************************!*\
  20781. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/components/u-upload/props.js ***!
  20782. \*********************************************************************************************/
  20783. /*! no static exports found */
  20784. /***/ (function(module, exports, __webpack_require__) {
  20785. "use strict";
  20786. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20787. props: {
  20788. // 接受的文件类型, 可选值为all media image file video
  20789. accept: {
  20790. type: String,
  20791. default: uni.$u.props.upload.accept },
  20792. // 图片或视频拾取模式,当accept为image类型时设置capture可选额外camera可以直接调起摄像头
  20793. capture: {
  20794. type: [String, Array],
  20795. default: uni.$u.props.upload.capture },
  20796. // 当accept为video时生效,是否压缩视频,默认为true
  20797. compressed: {
  20798. type: Boolean,
  20799. default: uni.$u.props.upload.compressed },
  20800. // 当accept为video时生效,可选值为back或front
  20801. camera: {
  20802. type: String,
  20803. default: uni.$u.props.upload.camera },
  20804. // 当accept为video时生效,拍摄视频最长拍摄时间,单位秒
  20805. maxDuration: {
  20806. type: Number,
  20807. default: uni.$u.props.upload.maxDuration },
  20808. // 上传区域的图标,只能内置图标
  20809. uploadIcon: {
  20810. type: String,
  20811. default: uni.$u.props.upload.uploadIcon },
  20812. // 上传区域的图标的颜色,默认
  20813. uploadIconColor: {
  20814. type: String,
  20815. default: uni.$u.props.upload.uploadIconColor },
  20816. // 是否开启文件读取前事件
  20817. useBeforeRead: {
  20818. type: Boolean,
  20819. default: uni.$u.props.upload.useBeforeRead },
  20820. // 读取后的处理函数
  20821. afterRead: {
  20822. type: Function,
  20823. default: null },
  20824. // 读取前的处理函数
  20825. beforeRead: {
  20826. type: Function,
  20827. default: null },
  20828. // 是否显示组件自带的图片预览功能
  20829. previewFullImage: {
  20830. type: Boolean,
  20831. default: uni.$u.props.upload.previewFullImage },
  20832. // 最大上传数量
  20833. maxCount: {
  20834. type: [String, Number],
  20835. default: uni.$u.props.upload.maxCount },
  20836. // 是否启用
  20837. disabled: {
  20838. type: Boolean,
  20839. default: uni.$u.props.upload.disabled },
  20840. // 预览上传的图片时的裁剪模式,和image组件mode属性一致
  20841. imageMode: {
  20842. type: String,
  20843. default: uni.$u.props.upload.imageMode },
  20844. // 标识符,可以在回调函数的第二项参数中获取
  20845. name: {
  20846. type: String,
  20847. default: uni.$u.props.upload.name },
  20848. // 所选的图片的尺寸, 可选值为original compressed
  20849. sizeType: {
  20850. type: Array,
  20851. default: uni.$u.props.upload.sizeType },
  20852. // 是否开启图片多选,部分安卓机型不支持
  20853. multiple: {
  20854. type: Boolean,
  20855. default: uni.$u.props.upload.multiple },
  20856. // 是否展示删除按钮
  20857. deletable: {
  20858. type: Boolean,
  20859. default: uni.$u.props.upload.deletable },
  20860. // 文件大小限制,单位为byte
  20861. maxSize: {
  20862. type: [String, Number],
  20863. default: uni.$u.props.upload.maxSize },
  20864. // 显示已上传的文件列表
  20865. fileList: {
  20866. type: Array,
  20867. default: uni.$u.props.upload.fileList },
  20868. // 上传区域的提示文字
  20869. uploadText: {
  20870. type: String,
  20871. default: uni.$u.props.upload.uploadText },
  20872. // 内部预览图片区域和选择图片按钮的区域宽度
  20873. width: {
  20874. type: [String, Number],
  20875. default: uni.$u.props.upload.width },
  20876. // 内部预览图片区域和选择图片按钮的区域高度
  20877. height: {
  20878. type: [String, Number],
  20879. default: uni.$u.props.upload.height },
  20880. // 是否在上传完成后展示预览图
  20881. previewImage: {
  20882. type: Boolean,
  20883. default: uni.$u.props.upload.previewImage } } };exports.default = _default;
  20884. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20885. /***/ }),
  20886. /* 245 */,
  20887. /* 246 */,
  20888. /* 247 */,
  20889. /* 248 */,
  20890. /* 249 */,
  20891. /* 250 */,
  20892. /* 251 */,
  20893. /* 252 */
  20894. /*!***********************************************************************************************!*\
  20895. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/components/u-textarea/props.js ***!
  20896. \***********************************************************************************************/
  20897. /*! no static exports found */
  20898. /***/ (function(module, exports, __webpack_require__) {
  20899. "use strict";
  20900. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  20901. props: {
  20902. // 输入框的内容
  20903. value: {
  20904. type: [String, Number],
  20905. default: uni.$u.props.textarea.value },
  20906. // 输入框为空时占位符
  20907. placeholder: {
  20908. type: [String, Number],
  20909. default: uni.$u.props.textarea.placeholder },
  20910. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  20911. placeholderClass: {
  20912. type: String,
  20913. default: uni.$u.props.input.placeholderClass },
  20914. // 指定placeholder的样式
  20915. placeholderStyle: {
  20916. type: [String, Object],
  20917. default: uni.$u.props.input.placeholderStyle },
  20918. // 输入框高度
  20919. height: {
  20920. type: [String, Number],
  20921. default: uni.$u.props.textarea.height },
  20922. // 设置键盘右下角按钮的文字,仅微信小程序,App-vue和H5有效
  20923. confirmType: {
  20924. type: String,
  20925. default: uni.$u.props.textarea.confirmType },
  20926. // 是否禁用
  20927. disabled: {
  20928. type: Boolean,
  20929. default: uni.$u.props.textarea.disabled },
  20930. // 是否显示统计字数
  20931. count: {
  20932. type: Boolean,
  20933. default: uni.$u.props.textarea.count },
  20934. // 是否自动获取焦点,nvue不支持,H5取决于浏览器的实现
  20935. focus: {
  20936. type: Boolean,
  20937. default: uni.$u.props.textarea.focus },
  20938. // 是否自动增加高度
  20939. autoHeight: {
  20940. type: Boolean,
  20941. default: uni.$u.props.textarea.autoHeight },
  20942. // 如果textarea是在一个position:fixed的区域,需要显示指定属性fixed为true
  20943. fixed: {
  20944. type: Boolean,
  20945. default: uni.$u.props.textarea.fixed },
  20946. // 指定光标与键盘的距离
  20947. cursorSpacing: {
  20948. type: Number,
  20949. default: uni.$u.props.textarea.cursorSpacing },
  20950. // 指定focus时的光标位置
  20951. cursor: {
  20952. type: [String, Number],
  20953. default: uni.$u.props.textarea.cursor },
  20954. // 是否显示键盘上方带有”完成“按钮那一栏,
  20955. showConfirmBar: {
  20956. type: Boolean,
  20957. default: uni.$u.props.textarea.showConfirmBar },
  20958. // 光标起始位置,自动聚焦时有效,需与selection-end搭配使用
  20959. selectionStart: {
  20960. type: Number,
  20961. default: uni.$u.props.textarea.selectionStart },
  20962. // 光标结束位置,自动聚焦时有效,需与selection-start搭配使用
  20963. selectionEnd: {
  20964. type: Number,
  20965. default: uni.$u.props.textarea.selectionEnd },
  20966. // 键盘弹起时,是否自动上推页面
  20967. adjustPosition: {
  20968. type: Boolean,
  20969. default: uni.$u.props.textarea.adjustPosition },
  20970. // 是否去掉 iOS 下的默认内边距,只微信小程序有效
  20971. disableDefaultPadding: {
  20972. type: Boolean,
  20973. default: uni.$u.props.textarea.disableDefaultPadding },
  20974. // focus时,点击页面的时候不收起键盘,只微信小程序有效
  20975. holdKeyboard: {
  20976. type: Boolean,
  20977. default: uni.$u.props.textarea.holdKeyboard },
  20978. // 最大输入长度,设置为 -1 的时候不限制最大长度
  20979. maxlength: {
  20980. type: [String, Number],
  20981. default: uni.$u.props.textarea.maxlength },
  20982. // 边框类型,surround-四周边框,bottom-底部边框
  20983. border: {
  20984. type: String,
  20985. default: uni.$u.props.textarea.border },
  20986. // 用于处理或者过滤输入框内容的方法
  20987. formatter: {
  20988. type: [Function, null],
  20989. default: uni.$u.props.textarea.formatter },
  20990. // 是否忽略组件内对文本合成系统事件的处理
  20991. ignoreCompositionEvent: {
  20992. type: Boolean,
  20993. default: true } } };exports.default = _default;
  20994. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  20995. /***/ }),
  20996. /* 253 */,
  20997. /* 254 */,
  20998. /* 255 */,
  20999. /* 256 */,
  21000. /* 257 */,
  21001. /* 258 */
  21002. /*!*********************************************************************************************!*\
  21003. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/libs/util/async-validator.js ***!
  21004. \*********************************************************************************************/
  21005. /*! no static exports found */
  21006. /***/ (function(module, exports, __webpack_require__) {
  21007. "use strict";
  21008. /* WEBPACK VAR INJECTION */(function(process) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;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 _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 _extends() {
  21009. _extends = Object.assign || function (target) {
  21010. for (var i = 1; i < arguments.length; i++) {
  21011. var source = arguments[i];
  21012. for (var key in source) {
  21013. if (Object.prototype.hasOwnProperty.call(source, key)) {
  21014. target[key] = source[key];
  21015. }
  21016. }
  21017. }
  21018. return target;
  21019. };
  21020. return _extends.apply(this, arguments);
  21021. }
  21022. /* eslint no-console:0 */
  21023. var formatRegExp = /%[sdj%]/g;
  21024. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  21025. if (typeof process !== 'undefined' && Object({"NODE_ENV":"development","VUE_APP_NAME":"businessard","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}) && "development" !== 'production' && typeof window !==
  21026. 'undefined' && typeof document !== 'undefined') {
  21027. warning = function warning(type, errors) {
  21028. if (typeof console !== 'undefined' && console.warn) {
  21029. if (errors.every(function (e) {return typeof e === 'string';})) {
  21030. console.warn(type, errors);
  21031. }
  21032. }
  21033. };
  21034. }
  21035. function convertFieldsError(errors) {
  21036. if (!errors || !errors.length) return null;
  21037. var fields = {};
  21038. errors.forEach(function (error) {var
  21039. field = error.field;
  21040. fields[field] = fields[field] || [];
  21041. fields[field].push(error);
  21042. });
  21043. return fields;
  21044. }
  21045. function format() {
  21046. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  21047. args[_key] = arguments[_key];
  21048. }
  21049. var i = 1;
  21050. var f = args[0];
  21051. var len = args.length;
  21052. if (typeof f === 'function') {
  21053. return f.apply(null, args.slice(1));
  21054. }
  21055. if (typeof f === 'string') {
  21056. var str = String(f).replace(formatRegExp, function (x) {
  21057. if (x === '%%') {
  21058. return '%';
  21059. }
  21060. if (i >= len) {
  21061. return x;
  21062. }
  21063. switch (x) {
  21064. case '%s':
  21065. return String(args[i++]);
  21066. case '%d':
  21067. return Number(args[i++]);
  21068. case '%j':
  21069. try {
  21070. return JSON.stringify(args[i++]);
  21071. } catch (_) {
  21072. return '[Circular]';
  21073. }
  21074. break;
  21075. default:
  21076. return x;}
  21077. });
  21078. for (var arg = args[i]; i < len; arg = args[++i]) {
  21079. str += " ".concat(arg);
  21080. }
  21081. return str;
  21082. }
  21083. return f;
  21084. }
  21085. function isNativeStringType(type) {
  21086. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  21087. }
  21088. function isEmptyValue(value, type) {
  21089. if (value === undefined || value === null) {
  21090. return true;
  21091. }
  21092. if (type === 'array' && Array.isArray(value) && !value.length) {
  21093. return true;
  21094. }
  21095. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  21096. return true;
  21097. }
  21098. return false;
  21099. }
  21100. function asyncParallelArray(arr, func, callback) {
  21101. var results = [];
  21102. var total = 0;
  21103. var arrLength = arr.length;
  21104. function count(errors) {
  21105. results.push.apply(results, errors);
  21106. total++;
  21107. if (total === arrLength) {
  21108. callback(results);
  21109. }
  21110. }
  21111. arr.forEach(function (a) {
  21112. func(a, count);
  21113. });
  21114. }
  21115. function asyncSerialArray(arr, func, callback) {
  21116. var index = 0;
  21117. var arrLength = arr.length;
  21118. function next(errors) {
  21119. if (errors && errors.length) {
  21120. callback(errors);
  21121. return;
  21122. }
  21123. var original = index;
  21124. index += 1;
  21125. if (original < arrLength) {
  21126. func(arr[original], next);
  21127. } else {
  21128. callback([]);
  21129. }
  21130. }
  21131. next([]);
  21132. }
  21133. function flattenObjArr(objArr) {
  21134. var ret = [];
  21135. Object.keys(objArr).forEach(function (k) {
  21136. ret.push.apply(ret, objArr[k]);
  21137. });
  21138. return ret;
  21139. }
  21140. function asyncMap(objArr, option, func, callback) {
  21141. if (option.first) {
  21142. var _pending = new Promise(function (resolve, reject) {
  21143. var next = function next(errors) {
  21144. callback(errors);
  21145. return errors.length ? reject({
  21146. errors: errors,
  21147. fields: convertFieldsError(errors) }) :
  21148. resolve();
  21149. };
  21150. var flattenArr = flattenObjArr(objArr);
  21151. asyncSerialArray(flattenArr, func, next);
  21152. });
  21153. _pending.catch(function (e) {return e;});
  21154. return _pending;
  21155. }
  21156. var firstFields = option.firstFields || [];
  21157. if (firstFields === true) {
  21158. firstFields = Object.keys(objArr);
  21159. }
  21160. var objArrKeys = Object.keys(objArr);
  21161. var objArrLength = objArrKeys.length;
  21162. var total = 0;
  21163. var results = [];
  21164. var pending = new Promise(function (resolve, reject) {
  21165. var next = function next(errors) {
  21166. results.push.apply(results, errors);
  21167. total++;
  21168. if (total === objArrLength) {
  21169. callback(results);
  21170. return results.length ? reject({
  21171. errors: results,
  21172. fields: convertFieldsError(results) }) :
  21173. resolve();
  21174. }
  21175. };
  21176. if (!objArrKeys.length) {
  21177. callback(results);
  21178. resolve();
  21179. }
  21180. objArrKeys.forEach(function (key) {
  21181. var arr = objArr[key];
  21182. if (firstFields.indexOf(key) !== -1) {
  21183. asyncSerialArray(arr, func, next);
  21184. } else {
  21185. asyncParallelArray(arr, func, next);
  21186. }
  21187. });
  21188. });
  21189. pending.catch(function (e) {return e;});
  21190. return pending;
  21191. }
  21192. function complementError(rule) {
  21193. return function (oe) {
  21194. if (oe && oe.message) {
  21195. oe.field = oe.field || rule.fullField;
  21196. return oe;
  21197. }
  21198. return {
  21199. message: typeof oe === 'function' ? oe() : oe,
  21200. field: oe.field || rule.fullField };
  21201. };
  21202. }
  21203. function deepMerge(target, source) {
  21204. if (source) {
  21205. for (var s in source) {
  21206. if (source.hasOwnProperty(s)) {
  21207. var value = source[s];
  21208. if (typeof value === 'object' && typeof target[s] === 'object') {
  21209. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  21210. } else {
  21211. target[s] = value;
  21212. }
  21213. }
  21214. }
  21215. }
  21216. return target;
  21217. }
  21218. /**
  21219. * Rule for validating required fields.
  21220. *
  21221. * @param rule The validation rule.
  21222. * @param value The value of the field on the source object.
  21223. * @param source The source object being validated.
  21224. * @param errors An array of errors that this rule may add
  21225. * validation errors to.
  21226. * @param options The validation options.
  21227. * @param options.messages The validation messages.
  21228. */
  21229. function required(rule, value, source, errors, options, type) {
  21230. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  21231. errors.push(format(options.messages.required, rule.fullField));
  21232. }
  21233. }
  21234. /**
  21235. * Rule for validating whitespace.
  21236. *
  21237. * @param rule The validation rule.
  21238. * @param value The value of the field on the source object.
  21239. * @param source The source object being validated.
  21240. * @param errors An array of errors that this rule may add
  21241. * validation errors to.
  21242. * @param options The validation options.
  21243. * @param options.messages The validation messages.
  21244. */
  21245. function whitespace(rule, value, source, errors, options) {
  21246. if (/^\s+$/.test(value) || value === '') {
  21247. errors.push(format(options.messages.whitespace, rule.fullField));
  21248. }
  21249. }
  21250. /* eslint max-len:0 */
  21251. var pattern = {
  21252. // http://emailregex.com/
  21253. email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
  21254. url: new RegExp(
  21255. "^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",
  21256. 'i'),
  21257. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i };
  21258. var types = {
  21259. integer: function integer(value) {
  21260. return /^(-)?\d+$/.test(value);
  21261. },
  21262. float: function float(value) {
  21263. return /^(-)?\d+(\.\d+)?$/.test(value);
  21264. },
  21265. array: function array(value) {
  21266. return Array.isArray(value);
  21267. },
  21268. regexp: function regexp(value) {
  21269. if (value instanceof RegExp) {
  21270. return true;
  21271. }
  21272. try {
  21273. return !!new RegExp(value);
  21274. } catch (e) {
  21275. return false;
  21276. }
  21277. },
  21278. date: function date(value) {
  21279. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear ===
  21280. 'function';
  21281. },
  21282. number: function number(value) {
  21283. if (isNaN(value)) {
  21284. return false;
  21285. }
  21286. // 修改源码,将字符串数值先转为数值
  21287. return typeof +value === 'number';
  21288. },
  21289. object: function object(value) {
  21290. return typeof value === 'object' && !types.array(value);
  21291. },
  21292. method: function method(value) {
  21293. return typeof value === 'function';
  21294. },
  21295. email: function email(value) {
  21296. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  21297. },
  21298. url: function url(value) {
  21299. return typeof value === 'string' && !!value.match(pattern.url);
  21300. },
  21301. hex: function hex(value) {
  21302. return typeof value === 'string' && !!value.match(pattern.hex);
  21303. } };
  21304. /**
  21305. * Rule for validating the type of a value.
  21306. *
  21307. * @param rule The validation rule.
  21308. * @param value The value of the field on the source object.
  21309. * @param source The source object being validated.
  21310. * @param errors An array of errors that this rule may add
  21311. * validation errors to.
  21312. * @param options The validation options.
  21313. * @param options.messages The validation messages.
  21314. */
  21315. function type(rule, value, source, errors, options) {
  21316. if (rule.required && value === undefined) {
  21317. required(rule, value, source, errors, options);
  21318. return;
  21319. }
  21320. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  21321. var ruleType = rule.type;
  21322. if (custom.indexOf(ruleType) > -1) {
  21323. if (!types[ruleType](value)) {
  21324. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  21325. } // straight typeof check
  21326. } else if (ruleType && typeof value !== rule.type) {
  21327. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  21328. }
  21329. }
  21330. /**
  21331. * Rule for validating minimum and maximum allowed values.
  21332. *
  21333. * @param rule The validation rule.
  21334. * @param value The value of the field on the source object.
  21335. * @param source The source object being validated.
  21336. * @param errors An array of errors that this rule may add
  21337. * validation errors to.
  21338. * @param options The validation options.
  21339. * @param options.messages The validation messages.
  21340. */
  21341. function range(rule, value, source, errors, options) {
  21342. var len = typeof rule.len === 'number';
  21343. var min = typeof rule.min === 'number';
  21344. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  21345. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  21346. var val = value;
  21347. var key = null;
  21348. var num = typeof value === 'number';
  21349. var str = typeof value === 'string';
  21350. var arr = Array.isArray(value);
  21351. if (num) {
  21352. key = 'number';
  21353. } else if (str) {
  21354. key = 'string';
  21355. } else if (arr) {
  21356. key = 'array';
  21357. } // if the value is not of a supported type for range validation
  21358. // the validation rule rule should use the
  21359. // type property to also test for a particular type
  21360. if (!key) {
  21361. return false;
  21362. }
  21363. if (arr) {
  21364. val = value.length;
  21365. }
  21366. if (str) {
  21367. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  21368. val = value.replace(spRegexp, '_').length;
  21369. }
  21370. if (len) {
  21371. if (val !== rule.len) {
  21372. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  21373. }
  21374. } else if (min && !max && val < rule.min) {
  21375. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  21376. } else if (max && !min && val > rule.max) {
  21377. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  21378. } else if (min && max && (val < rule.min || val > rule.max)) {
  21379. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  21380. }
  21381. }
  21382. var ENUM = 'enum';
  21383. /**
  21384. * Rule for validating a value exists in an enumerable list.
  21385. *
  21386. * @param rule The validation rule.
  21387. * @param value The value of the field on the source object.
  21388. * @param source The source object being validated.
  21389. * @param errors An array of errors that this rule may add
  21390. * validation errors to.
  21391. * @param options The validation options.
  21392. * @param options.messages The validation messages.
  21393. */
  21394. function enumerable(rule, value, source, errors, options) {
  21395. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  21396. if (rule[ENUM].indexOf(value) === -1) {
  21397. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  21398. }
  21399. }
  21400. /**
  21401. * Rule for validating a regular expression pattern.
  21402. *
  21403. * @param rule The validation rule.
  21404. * @param value The value of the field on the source object.
  21405. * @param source The source object being validated.
  21406. * @param errors An array of errors that this rule may add
  21407. * validation errors to.
  21408. * @param options The validation options.
  21409. * @param options.messages The validation messages.
  21410. */
  21411. function pattern$1(rule, value, source, errors, options) {
  21412. if (rule.pattern) {
  21413. if (rule.pattern instanceof RegExp) {
  21414. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  21415. // flag is accidentally set to `true`, which in a validation scenario
  21416. // is not necessary and the result might be misleading
  21417. rule.pattern.lastIndex = 0;
  21418. if (!rule.pattern.test(value)) {
  21419. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  21420. }
  21421. } else if (typeof rule.pattern === 'string') {
  21422. var _pattern = new RegExp(rule.pattern);
  21423. if (!_pattern.test(value)) {
  21424. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  21425. }
  21426. }
  21427. }
  21428. }
  21429. var rules = {
  21430. required: required,
  21431. whitespace: whitespace,
  21432. type: type,
  21433. range: range,
  21434. enum: enumerable,
  21435. pattern: pattern$1 };
  21436. /**
  21437. * Performs validation for string types.
  21438. *
  21439. * @param rule The validation rule.
  21440. * @param value The value of the field on the source object.
  21441. * @param callback The callback function.
  21442. * @param source The source object being validated.
  21443. * @param options The validation options.
  21444. * @param options.messages The validation messages.
  21445. */
  21446. function string(rule, value, callback, source, options) {
  21447. var errors = [];
  21448. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21449. if (validate) {
  21450. if (isEmptyValue(value, 'string') && !rule.required) {
  21451. return callback();
  21452. }
  21453. rules.required(rule, value, source, errors, options, 'string');
  21454. if (!isEmptyValue(value, 'string')) {
  21455. rules.type(rule, value, source, errors, options);
  21456. rules.range(rule, value, source, errors, options);
  21457. rules.pattern(rule, value, source, errors, options);
  21458. if (rule.whitespace === true) {
  21459. rules.whitespace(rule, value, source, errors, options);
  21460. }
  21461. }
  21462. }
  21463. callback(errors);
  21464. }
  21465. /**
  21466. * Validates a function.
  21467. *
  21468. * @param rule The validation rule.
  21469. * @param value The value of the field on the source object.
  21470. * @param callback The callback function.
  21471. * @param source The source object being validated.
  21472. * @param options The validation options.
  21473. * @param options.messages The validation messages.
  21474. */
  21475. function method(rule, value, callback, source, options) {
  21476. var errors = [];
  21477. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21478. if (validate) {
  21479. if (isEmptyValue(value) && !rule.required) {
  21480. return callback();
  21481. }
  21482. rules.required(rule, value, source, errors, options);
  21483. if (value !== undefined) {
  21484. rules.type(rule, value, source, errors, options);
  21485. }
  21486. }
  21487. callback(errors);
  21488. }
  21489. /**
  21490. * Validates a number.
  21491. *
  21492. * @param rule The validation rule.
  21493. * @param value The value of the field on the source object.
  21494. * @param callback The callback function.
  21495. * @param source The source object being validated.
  21496. * @param options The validation options.
  21497. * @param options.messages The validation messages.
  21498. */
  21499. function number(rule, value, callback, source, options) {
  21500. var errors = [];
  21501. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21502. if (validate) {
  21503. if (value === '') {
  21504. value = undefined;
  21505. }
  21506. if (isEmptyValue(value) && !rule.required) {
  21507. return callback();
  21508. }
  21509. rules.required(rule, value, source, errors, options);
  21510. if (value !== undefined) {
  21511. rules.type(rule, value, source, errors, options);
  21512. rules.range(rule, value, source, errors, options);
  21513. }
  21514. }
  21515. callback(errors);
  21516. }
  21517. /**
  21518. * Validates a boolean.
  21519. *
  21520. * @param rule The validation rule.
  21521. * @param value The value of the field on the source object.
  21522. * @param callback The callback function.
  21523. * @param source The source object being validated.
  21524. * @param options The validation options.
  21525. * @param options.messages The validation messages.
  21526. */
  21527. function _boolean(rule, value, callback, source, options) {
  21528. var errors = [];
  21529. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21530. if (validate) {
  21531. if (isEmptyValue(value) && !rule.required) {
  21532. return callback();
  21533. }
  21534. rules.required(rule, value, source, errors, options);
  21535. if (value !== undefined) {
  21536. rules.type(rule, value, source, errors, options);
  21537. }
  21538. }
  21539. callback(errors);
  21540. }
  21541. /**
  21542. * Validates the regular expression type.
  21543. *
  21544. * @param rule The validation rule.
  21545. * @param value The value of the field on the source object.
  21546. * @param callback The callback function.
  21547. * @param source The source object being validated.
  21548. * @param options The validation options.
  21549. * @param options.messages The validation messages.
  21550. */
  21551. function regexp(rule, value, callback, source, options) {
  21552. var errors = [];
  21553. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21554. if (validate) {
  21555. if (isEmptyValue(value) && !rule.required) {
  21556. return callback();
  21557. }
  21558. rules.required(rule, value, source, errors, options);
  21559. if (!isEmptyValue(value)) {
  21560. rules.type(rule, value, source, errors, options);
  21561. }
  21562. }
  21563. callback(errors);
  21564. }
  21565. /**
  21566. * Validates a number is an integer.
  21567. *
  21568. * @param rule The validation rule.
  21569. * @param value The value of the field on the source object.
  21570. * @param callback The callback function.
  21571. * @param source The source object being validated.
  21572. * @param options The validation options.
  21573. * @param options.messages The validation messages.
  21574. */
  21575. function integer(rule, value, callback, source, options) {
  21576. var errors = [];
  21577. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21578. if (validate) {
  21579. if (isEmptyValue(value) && !rule.required) {
  21580. return callback();
  21581. }
  21582. rules.required(rule, value, source, errors, options);
  21583. if (value !== undefined) {
  21584. rules.type(rule, value, source, errors, options);
  21585. rules.range(rule, value, source, errors, options);
  21586. }
  21587. }
  21588. callback(errors);
  21589. }
  21590. /**
  21591. * Validates a number is a floating point number.
  21592. *
  21593. * @param rule The validation rule.
  21594. * @param value The value of the field on the source object.
  21595. * @param callback The callback function.
  21596. * @param source The source object being validated.
  21597. * @param options The validation options.
  21598. * @param options.messages The validation messages.
  21599. */
  21600. function floatFn(rule, value, callback, source, options) {
  21601. var errors = [];
  21602. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21603. if (validate) {
  21604. if (isEmptyValue(value) && !rule.required) {
  21605. return callback();
  21606. }
  21607. rules.required(rule, value, source, errors, options);
  21608. if (value !== undefined) {
  21609. rules.type(rule, value, source, errors, options);
  21610. rules.range(rule, value, source, errors, options);
  21611. }
  21612. }
  21613. callback(errors);
  21614. }
  21615. /**
  21616. * Validates an array.
  21617. *
  21618. * @param rule The validation rule.
  21619. * @param value The value of the field on the source object.
  21620. * @param callback The callback function.
  21621. * @param source The source object being validated.
  21622. * @param options The validation options.
  21623. * @param options.messages The validation messages.
  21624. */
  21625. function array(rule, value, callback, source, options) {
  21626. var errors = [];
  21627. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21628. if (validate) {
  21629. if (isEmptyValue(value, 'array') && !rule.required) {
  21630. return callback();
  21631. }
  21632. rules.required(rule, value, source, errors, options, 'array');
  21633. if (!isEmptyValue(value, 'array')) {
  21634. rules.type(rule, value, source, errors, options);
  21635. rules.range(rule, value, source, errors, options);
  21636. }
  21637. }
  21638. callback(errors);
  21639. }
  21640. /**
  21641. * Validates an object.
  21642. *
  21643. * @param rule The validation rule.
  21644. * @param value The value of the field on the source object.
  21645. * @param callback The callback function.
  21646. * @param source The source object being validated.
  21647. * @param options The validation options.
  21648. * @param options.messages The validation messages.
  21649. */
  21650. function object(rule, value, callback, source, options) {
  21651. var errors = [];
  21652. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21653. if (validate) {
  21654. if (isEmptyValue(value) && !rule.required) {
  21655. return callback();
  21656. }
  21657. rules.required(rule, value, source, errors, options);
  21658. if (value !== undefined) {
  21659. rules.type(rule, value, source, errors, options);
  21660. }
  21661. }
  21662. callback(errors);
  21663. }
  21664. var ENUM$1 = 'enum';
  21665. /**
  21666. * Validates an enumerable list.
  21667. *
  21668. * @param rule The validation rule.
  21669. * @param value The value of the field on the source object.
  21670. * @param callback The callback function.
  21671. * @param source The source object being validated.
  21672. * @param options The validation options.
  21673. * @param options.messages The validation messages.
  21674. */
  21675. function enumerable$1(rule, value, callback, source, options) {
  21676. var errors = [];
  21677. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21678. if (validate) {
  21679. if (isEmptyValue(value) && !rule.required) {
  21680. return callback();
  21681. }
  21682. rules.required(rule, value, source, errors, options);
  21683. if (value !== undefined) {
  21684. rules[ENUM$1](rule, value, source, errors, options);
  21685. }
  21686. }
  21687. callback(errors);
  21688. }
  21689. /**
  21690. * Validates a regular expression pattern.
  21691. *
  21692. * Performs validation when a rule only contains
  21693. * a pattern property but is not declared as a string type.
  21694. *
  21695. * @param rule The validation rule.
  21696. * @param value The value of the field on the source object.
  21697. * @param callback The callback function.
  21698. * @param source The source object being validated.
  21699. * @param options The validation options.
  21700. * @param options.messages The validation messages.
  21701. */
  21702. function pattern$2(rule, value, callback, source, options) {
  21703. var errors = [];
  21704. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21705. if (validate) {
  21706. if (isEmptyValue(value, 'string') && !rule.required) {
  21707. return callback();
  21708. }
  21709. rules.required(rule, value, source, errors, options);
  21710. if (!isEmptyValue(value, 'string')) {
  21711. rules.pattern(rule, value, source, errors, options);
  21712. }
  21713. }
  21714. callback(errors);
  21715. }
  21716. function date(rule, value, callback, source, options) {
  21717. var errors = [];
  21718. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21719. if (validate) {
  21720. if (isEmptyValue(value) && !rule.required) {
  21721. return callback();
  21722. }
  21723. rules.required(rule, value, source, errors, options);
  21724. if (!isEmptyValue(value)) {
  21725. var dateObject;
  21726. if (typeof value === 'number') {
  21727. dateObject = new Date(value);
  21728. } else {
  21729. dateObject = value;
  21730. }
  21731. rules.type(rule, dateObject, source, errors, options);
  21732. if (dateObject) {
  21733. rules.range(rule, dateObject.getTime(), source, errors, options);
  21734. }
  21735. }
  21736. }
  21737. callback(errors);
  21738. }
  21739. function required$1(rule, value, callback, source, options) {
  21740. var errors = [];
  21741. var type = Array.isArray(value) ? 'array' : typeof value;
  21742. rules.required(rule, value, source, errors, options, type);
  21743. callback(errors);
  21744. }
  21745. function type$1(rule, value, callback, source, options) {
  21746. var ruleType = rule.type;
  21747. var errors = [];
  21748. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21749. if (validate) {
  21750. if (isEmptyValue(value, ruleType) && !rule.required) {
  21751. return callback();
  21752. }
  21753. rules.required(rule, value, source, errors, options, ruleType);
  21754. if (!isEmptyValue(value, ruleType)) {
  21755. rules.type(rule, value, source, errors, options);
  21756. }
  21757. }
  21758. callback(errors);
  21759. }
  21760. /**
  21761. * Performs validation for any type.
  21762. *
  21763. * @param rule The validation rule.
  21764. * @param value The value of the field on the source object.
  21765. * @param callback The callback function.
  21766. * @param source The source object being validated.
  21767. * @param options The validation options.
  21768. * @param options.messages The validation messages.
  21769. */
  21770. function any(rule, value, callback, source, options) {
  21771. var errors = [];
  21772. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21773. if (validate) {
  21774. if (isEmptyValue(value) && !rule.required) {
  21775. return callback();
  21776. }
  21777. rules.required(rule, value, source, errors, options);
  21778. }
  21779. callback(errors);
  21780. }
  21781. var validators = {
  21782. string: string,
  21783. method: method,
  21784. number: number,
  21785. boolean: _boolean,
  21786. regexp: regexp,
  21787. integer: integer,
  21788. float: floatFn,
  21789. array: array,
  21790. object: object,
  21791. enum: enumerable$1,
  21792. pattern: pattern$2,
  21793. date: date,
  21794. url: type$1,
  21795. hex: type$1,
  21796. email: type$1,
  21797. required: required$1,
  21798. any: any };
  21799. function newMessages() {
  21800. return {
  21801. default: 'Validation error on field %s',
  21802. required: '%s is required',
  21803. enum: '%s must be one of %s',
  21804. whitespace: '%s cannot be empty',
  21805. date: {
  21806. format: '%s date %s is invalid for format %s',
  21807. parse: '%s date could not be parsed, %s is invalid ',
  21808. invalid: '%s date %s is invalid' },
  21809. types: {
  21810. string: '%s is not a %s',
  21811. method: '%s is not a %s (function)',
  21812. array: '%s is not an %s',
  21813. object: '%s is not an %s',
  21814. number: '%s is not a %s',
  21815. date: '%s is not a %s',
  21816. boolean: '%s is not a %s',
  21817. integer: '%s is not an %s',
  21818. float: '%s is not a %s',
  21819. regexp: '%s is not a valid %s',
  21820. email: '%s is not a valid %s',
  21821. url: '%s is not a valid %s',
  21822. hex: '%s is not a valid %s' },
  21823. string: {
  21824. len: '%s must be exactly %s characters',
  21825. min: '%s must be at least %s characters',
  21826. max: '%s cannot be longer than %s characters',
  21827. range: '%s must be between %s and %s characters' },
  21828. number: {
  21829. len: '%s must equal %s',
  21830. min: '%s cannot be less than %s',
  21831. max: '%s cannot be greater than %s',
  21832. range: '%s must be between %s and %s' },
  21833. array: {
  21834. len: '%s must be exactly %s in length',
  21835. min: '%s cannot be less than %s in length',
  21836. max: '%s cannot be greater than %s in length',
  21837. range: '%s must be between %s and %s in length' },
  21838. pattern: {
  21839. mismatch: '%s value %s does not match pattern %s' },
  21840. clone: function clone() {
  21841. var cloned = JSON.parse(JSON.stringify(this));
  21842. cloned.clone = this.clone;
  21843. return cloned;
  21844. } };
  21845. }
  21846. var messages = newMessages();
  21847. /**
  21848. * Encapsulates a validation schema.
  21849. *
  21850. * @param descriptor An object declaring validation rules
  21851. * for this schema.
  21852. */
  21853. function Schema(descriptor) {
  21854. this.rules = null;
  21855. this._messages = messages;
  21856. this.define(descriptor);
  21857. }
  21858. Schema.prototype = {
  21859. messages: function messages(_messages) {
  21860. if (_messages) {
  21861. this._messages = deepMerge(newMessages(), _messages);
  21862. }
  21863. return this._messages;
  21864. },
  21865. define: function define(rules) {
  21866. if (!rules) {
  21867. throw new Error('Cannot configure a schema with no rules');
  21868. }
  21869. if (typeof rules !== 'object' || Array.isArray(rules)) {
  21870. throw new Error('Rules must be an object');
  21871. }
  21872. this.rules = {};
  21873. var z;
  21874. var item;
  21875. for (z in rules) {
  21876. if (rules.hasOwnProperty(z)) {
  21877. item = rules[z];
  21878. this.rules[z] = Array.isArray(item) ? item : [item];
  21879. }
  21880. }
  21881. },
  21882. validate: function validate(source_, o, oc) {
  21883. var _this = this;
  21884. if (o === void 0) {
  21885. o = {};
  21886. }
  21887. if (oc === void 0) {
  21888. oc = function oc() {};
  21889. }
  21890. var source = source_;
  21891. var options = o;
  21892. var callback = oc;
  21893. if (typeof options === 'function') {
  21894. callback = options;
  21895. options = {};
  21896. }
  21897. if (!this.rules || Object.keys(this.rules).length === 0) {
  21898. if (callback) {
  21899. callback();
  21900. }
  21901. return Promise.resolve();
  21902. }
  21903. function complete(results) {
  21904. var i;
  21905. var errors = [];
  21906. var fields = {};
  21907. function add(e) {
  21908. if (Array.isArray(e)) {
  21909. var _errors;
  21910. errors = (_errors = errors).concat.apply(_errors, e);
  21911. } else {
  21912. errors.push(e);
  21913. }
  21914. }
  21915. for (i = 0; i < results.length; i++) {
  21916. add(results[i]);
  21917. }
  21918. if (!errors.length) {
  21919. errors = null;
  21920. fields = null;
  21921. } else {
  21922. fields = convertFieldsError(errors);
  21923. }
  21924. callback(errors, fields);
  21925. }
  21926. if (options.messages) {
  21927. var messages$1 = this.messages();
  21928. if (messages$1 === messages) {
  21929. messages$1 = newMessages();
  21930. }
  21931. deepMerge(messages$1, options.messages);
  21932. options.messages = messages$1;
  21933. } else {
  21934. options.messages = this.messages();
  21935. }
  21936. var arr;
  21937. var value;
  21938. var series = {};
  21939. var keys = options.keys || Object.keys(this.rules);
  21940. keys.forEach(function (z) {
  21941. arr = _this.rules[z];
  21942. value = source[z];
  21943. arr.forEach(function (r) {
  21944. var rule = r;
  21945. if (typeof rule.transform === 'function') {
  21946. if (source === source_) {
  21947. source = _objectSpread({}, source);
  21948. }
  21949. value = source[z] = rule.transform(value);
  21950. }
  21951. if (typeof rule === 'function') {
  21952. rule = {
  21953. validator: rule };
  21954. } else {
  21955. rule = _objectSpread({}, rule);
  21956. }
  21957. rule.validator = _this.getValidationMethod(rule);
  21958. rule.field = z;
  21959. rule.fullField = rule.fullField || z;
  21960. rule.type = _this.getType(rule);
  21961. if (!rule.validator) {
  21962. return;
  21963. }
  21964. series[z] = series[z] || [];
  21965. series[z].push({
  21966. rule: rule,
  21967. value: value,
  21968. source: source,
  21969. field: z });
  21970. });
  21971. });
  21972. var errorFields = {};
  21973. return asyncMap(series, options, function (data, doIt) {var
  21974. rule = data.rule;
  21975. var deep = (rule.type === 'object' || rule.type === 'array') && (typeof rule.fields === 'object' || typeof rule.defaultField ===
  21976. 'object');
  21977. deep = deep && (rule.required || !rule.required && data.value);
  21978. rule.field = data.field;
  21979. function addFullfield(key, schema) {
  21980. return _objectSpread(_objectSpread({}, schema), {}, { fullField: "".concat(rule.fullField, ".").concat(key) });
  21981. }
  21982. function cb(e) {
  21983. if (e === void 0) {
  21984. e = [];
  21985. }
  21986. var errors = e;
  21987. if (!Array.isArray(errors)) {
  21988. errors = [errors];
  21989. }
  21990. if (!options.suppressWarning && errors.length) {
  21991. Schema.warning('async-validator:', errors);
  21992. }
  21993. if (errors.length && rule.message) {
  21994. errors = [].concat(rule.message);
  21995. }
  21996. errors = errors.map(complementError(rule));
  21997. if (options.first && errors.length) {
  21998. errorFields[rule.field] = 1;
  21999. return doIt(errors);
  22000. }
  22001. if (!deep) {
  22002. doIt(errors);
  22003. } else {
  22004. // if rule is required but the target object
  22005. // does not exist fail at the rule level and don't
  22006. // go deeper
  22007. if (rule.required && !data.value) {
  22008. if (rule.message) {
  22009. errors = [].concat(rule.message).map(complementError(rule));
  22010. } else if (options.error) {
  22011. errors = [options.error(rule, format(options.messages.required, rule.field))];
  22012. } else {
  22013. errors = [];
  22014. }
  22015. return doIt(errors);
  22016. }
  22017. var fieldsSchema = {};
  22018. if (rule.defaultField) {
  22019. for (var k in data.value) {
  22020. if (data.value.hasOwnProperty(k)) {
  22021. fieldsSchema[k] = rule.defaultField;
  22022. }
  22023. }
  22024. }
  22025. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  22026. for (var f in fieldsSchema) {
  22027. if (fieldsSchema.hasOwnProperty(f)) {
  22028. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  22029. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  22030. }
  22031. }
  22032. var schema = new Schema(fieldsSchema);
  22033. schema.messages(options.messages);
  22034. if (data.rule.options) {
  22035. data.rule.options.messages = options.messages;
  22036. data.rule.options.error = options.error;
  22037. }
  22038. schema.validate(data.value, data.rule.options || options, function (errs) {
  22039. var finalErrors = [];
  22040. if (errors && errors.length) {
  22041. finalErrors.push.apply(finalErrors, errors);
  22042. }
  22043. if (errs && errs.length) {
  22044. finalErrors.push.apply(finalErrors, errs);
  22045. }
  22046. doIt(finalErrors.length ? finalErrors : null);
  22047. });
  22048. }
  22049. }
  22050. var res;
  22051. if (rule.asyncValidator) {
  22052. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  22053. } else if (rule.validator) {
  22054. res = rule.validator(rule, data.value, cb, data.source, options);
  22055. if (res === true) {
  22056. cb();
  22057. } else if (res === false) {
  22058. cb(rule.message || "".concat(rule.field, " fails"));
  22059. } else if (res instanceof Array) {
  22060. cb(res);
  22061. } else if (res instanceof Error) {
  22062. cb(res.message);
  22063. }
  22064. }
  22065. if (res && res.then) {
  22066. res.then(function () {return cb();}, function (e) {return cb(e);});
  22067. }
  22068. }, function (results) {
  22069. complete(results);
  22070. });
  22071. },
  22072. getType: function getType(rule) {
  22073. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  22074. rule.type = 'pattern';
  22075. }
  22076. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  22077. throw new Error(format('Unknown rule type %s', rule.type));
  22078. }
  22079. return rule.type || 'string';
  22080. },
  22081. getValidationMethod: function getValidationMethod(rule) {
  22082. if (typeof rule.validator === 'function') {
  22083. return rule.validator;
  22084. }
  22085. var keys = Object.keys(rule);
  22086. var messageIndex = keys.indexOf('message');
  22087. if (messageIndex !== -1) {
  22088. keys.splice(messageIndex, 1);
  22089. }
  22090. if (keys.length === 1 && keys[0] === 'required') {
  22091. return validators.required;
  22092. }
  22093. return validators[this.getType(rule)] || false;
  22094. } };
  22095. Schema.register = function register(type, validator) {
  22096. if (typeof validator !== 'function') {
  22097. throw new Error('Cannot register a validator by type, validator is not a function');
  22098. }
  22099. validators[type] = validator;
  22100. };
  22101. Schema.warning = warning;
  22102. Schema.messages = messages;var _default =
  22103. Schema;
  22104. // # sourceMappingURL=index.js.map
  22105. exports.default = _default;
  22106. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../HBuilderX/HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 27)))
  22107. /***/ }),
  22108. /* 259 */,
  22109. /* 260 */,
  22110. /* 261 */,
  22111. /* 262 */,
  22112. /* 263 */,
  22113. /* 264 */
  22114. /*!*******************************************************************************************!*\
  22115. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/components/u-icon/icons.js ***!
  22116. \*******************************************************************************************/
  22117. /*! no static exports found */
  22118. /***/ (function(module, exports, __webpack_require__) {
  22119. "use strict";
  22120. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22121. 'uicon-level': "\uE693",
  22122. 'uicon-column-line': "\uE68E",
  22123. 'uicon-checkbox-mark': "\uE807",
  22124. 'uicon-folder': "\uE7F5",
  22125. 'uicon-movie': "\uE7F6",
  22126. 'uicon-star-fill': "\uE669",
  22127. 'uicon-star': "\uE65F",
  22128. 'uicon-phone-fill': "\uE64F",
  22129. 'uicon-phone': "\uE622",
  22130. 'uicon-apple-fill': "\uE881",
  22131. 'uicon-chrome-circle-fill': "\uE885",
  22132. 'uicon-backspace': "\uE67B",
  22133. 'uicon-attach': "\uE632",
  22134. 'uicon-cut': "\uE948",
  22135. 'uicon-empty-car': "\uE602",
  22136. 'uicon-empty-coupon': "\uE682",
  22137. 'uicon-empty-address': "\uE646",
  22138. 'uicon-empty-favor': "\uE67C",
  22139. 'uicon-empty-permission': "\uE686",
  22140. 'uicon-empty-news': "\uE687",
  22141. 'uicon-empty-search': "\uE664",
  22142. 'uicon-github-circle-fill': "\uE887",
  22143. 'uicon-rmb': "\uE608",
  22144. 'uicon-person-delete-fill': "\uE66A",
  22145. 'uicon-reload': "\uE788",
  22146. 'uicon-order': "\uE68F",
  22147. 'uicon-server-man': "\uE6BC",
  22148. 'uicon-search': "\uE62A",
  22149. 'uicon-fingerprint': "\uE955",
  22150. 'uicon-more-dot-fill': "\uE630",
  22151. 'uicon-scan': "\uE662",
  22152. 'uicon-share-square': "\uE60B",
  22153. 'uicon-map': "\uE61D",
  22154. 'uicon-map-fill': "\uE64E",
  22155. 'uicon-tags': "\uE629",
  22156. 'uicon-tags-fill': "\uE651",
  22157. 'uicon-bookmark-fill': "\uE63B",
  22158. 'uicon-bookmark': "\uE60A",
  22159. 'uicon-eye': "\uE613",
  22160. 'uicon-eye-fill': "\uE641",
  22161. 'uicon-mic': "\uE64A",
  22162. 'uicon-mic-off': "\uE649",
  22163. 'uicon-calendar': "\uE66E",
  22164. 'uicon-calendar-fill': "\uE634",
  22165. 'uicon-trash': "\uE623",
  22166. 'uicon-trash-fill': "\uE658",
  22167. 'uicon-play-left': "\uE66D",
  22168. 'uicon-play-right': "\uE610",
  22169. 'uicon-minus': "\uE618",
  22170. 'uicon-plus': "\uE62D",
  22171. 'uicon-info': "\uE653",
  22172. 'uicon-info-circle': "\uE7D2",
  22173. 'uicon-info-circle-fill': "\uE64B",
  22174. 'uicon-question': "\uE715",
  22175. 'uicon-error': "\uE6D3",
  22176. 'uicon-close': "\uE685",
  22177. 'uicon-checkmark': "\uE6A8",
  22178. 'uicon-android-circle-fill': "\uE67E",
  22179. 'uicon-android-fill': "\uE67D",
  22180. 'uicon-ie': "\uE87B",
  22181. 'uicon-IE-circle-fill': "\uE889",
  22182. 'uicon-google': "\uE87A",
  22183. 'uicon-google-circle-fill': "\uE88A",
  22184. 'uicon-setting-fill': "\uE872",
  22185. 'uicon-setting': "\uE61F",
  22186. 'uicon-minus-square-fill': "\uE855",
  22187. 'uicon-plus-square-fill': "\uE856",
  22188. 'uicon-heart': "\uE7DF",
  22189. 'uicon-heart-fill': "\uE851",
  22190. 'uicon-camera': "\uE7D7",
  22191. 'uicon-camera-fill': "\uE870",
  22192. 'uicon-more-circle': "\uE63E",
  22193. 'uicon-more-circle-fill': "\uE645",
  22194. 'uicon-chat': "\uE620",
  22195. 'uicon-chat-fill': "\uE61E",
  22196. 'uicon-bag-fill': "\uE617",
  22197. 'uicon-bag': "\uE619",
  22198. 'uicon-error-circle-fill': "\uE62C",
  22199. 'uicon-error-circle': "\uE624",
  22200. 'uicon-close-circle': "\uE63F",
  22201. 'uicon-close-circle-fill': "\uE637",
  22202. 'uicon-checkmark-circle': "\uE63D",
  22203. 'uicon-checkmark-circle-fill': "\uE635",
  22204. 'uicon-question-circle-fill': "\uE666",
  22205. 'uicon-question-circle': "\uE625",
  22206. 'uicon-share': "\uE631",
  22207. 'uicon-share-fill': "\uE65E",
  22208. 'uicon-shopping-cart': "\uE621",
  22209. 'uicon-shopping-cart-fill': "\uE65D",
  22210. 'uicon-bell': "\uE609",
  22211. 'uicon-bell-fill': "\uE640",
  22212. 'uicon-list': "\uE650",
  22213. 'uicon-list-dot': "\uE616",
  22214. 'uicon-zhihu': "\uE6BA",
  22215. 'uicon-zhihu-circle-fill': "\uE709",
  22216. 'uicon-zhifubao': "\uE6B9",
  22217. 'uicon-zhifubao-circle-fill': "\uE6B8",
  22218. 'uicon-weixin-circle-fill': "\uE6B1",
  22219. 'uicon-weixin-fill': "\uE6B2",
  22220. 'uicon-twitter-circle-fill': "\uE6AB",
  22221. 'uicon-twitter': "\uE6AA",
  22222. 'uicon-taobao-circle-fill': "\uE6A7",
  22223. 'uicon-taobao': "\uE6A6",
  22224. 'uicon-weibo-circle-fill': "\uE6A5",
  22225. 'uicon-weibo': "\uE6A4",
  22226. 'uicon-qq-fill': "\uE6A1",
  22227. 'uicon-qq-circle-fill': "\uE6A0",
  22228. 'uicon-moments-circel-fill': "\uE69A",
  22229. 'uicon-moments': "\uE69B",
  22230. 'uicon-qzone': "\uE695",
  22231. 'uicon-qzone-circle-fill': "\uE696",
  22232. 'uicon-baidu-circle-fill': "\uE680",
  22233. 'uicon-baidu': "\uE681",
  22234. 'uicon-facebook-circle-fill': "\uE68A",
  22235. 'uicon-facebook': "\uE689",
  22236. 'uicon-car': "\uE60C",
  22237. 'uicon-car-fill': "\uE636",
  22238. 'uicon-warning-fill': "\uE64D",
  22239. 'uicon-warning': "\uE694",
  22240. 'uicon-clock-fill': "\uE638",
  22241. 'uicon-clock': "\uE60F",
  22242. 'uicon-edit-pen': "\uE612",
  22243. 'uicon-edit-pen-fill': "\uE66B",
  22244. 'uicon-email': "\uE611",
  22245. 'uicon-email-fill': "\uE642",
  22246. 'uicon-minus-circle': "\uE61B",
  22247. 'uicon-minus-circle-fill': "\uE652",
  22248. 'uicon-plus-circle': "\uE62E",
  22249. 'uicon-plus-circle-fill': "\uE661",
  22250. 'uicon-file-text': "\uE663",
  22251. 'uicon-file-text-fill': "\uE665",
  22252. 'uicon-pushpin': "\uE7E3",
  22253. 'uicon-pushpin-fill': "\uE86E",
  22254. 'uicon-grid': "\uE673",
  22255. 'uicon-grid-fill': "\uE678",
  22256. 'uicon-play-circle': "\uE647",
  22257. 'uicon-play-circle-fill': "\uE655",
  22258. 'uicon-pause-circle-fill': "\uE654",
  22259. 'uicon-pause': "\uE8FA",
  22260. 'uicon-pause-circle': "\uE643",
  22261. 'uicon-eye-off': "\uE648",
  22262. 'uicon-eye-off-outline': "\uE62B",
  22263. 'uicon-gift-fill': "\uE65C",
  22264. 'uicon-gift': "\uE65B",
  22265. 'uicon-rmb-circle-fill': "\uE657",
  22266. 'uicon-rmb-circle': "\uE677",
  22267. 'uicon-kefu-ermai': "\uE656",
  22268. 'uicon-server-fill': "\uE751",
  22269. 'uicon-coupon-fill': "\uE8C4",
  22270. 'uicon-coupon': "\uE8AE",
  22271. 'uicon-integral': "\uE704",
  22272. 'uicon-integral-fill': "\uE703",
  22273. 'uicon-home-fill': "\uE964",
  22274. 'uicon-home': "\uE965",
  22275. 'uicon-hourglass-half-fill': "\uE966",
  22276. 'uicon-hourglass': "\uE967",
  22277. 'uicon-account': "\uE628",
  22278. 'uicon-plus-people-fill': "\uE626",
  22279. 'uicon-minus-people-fill': "\uE615",
  22280. 'uicon-account-fill': "\uE614",
  22281. 'uicon-thumb-down-fill': "\uE726",
  22282. 'uicon-thumb-down': "\uE727",
  22283. 'uicon-thumb-up': "\uE733",
  22284. 'uicon-thumb-up-fill': "\uE72F",
  22285. 'uicon-lock-fill': "\uE979",
  22286. 'uicon-lock-open': "\uE973",
  22287. 'uicon-lock-opened-fill': "\uE974",
  22288. 'uicon-lock': "\uE97A",
  22289. 'uicon-red-packet-fill': "\uE690",
  22290. 'uicon-photo-fill': "\uE98B",
  22291. 'uicon-photo': "\uE98D",
  22292. 'uicon-volume-off-fill': "\uE659",
  22293. 'uicon-volume-off': "\uE644",
  22294. 'uicon-volume-fill': "\uE670",
  22295. 'uicon-volume': "\uE633",
  22296. 'uicon-red-packet': "\uE691",
  22297. 'uicon-download': "\uE63C",
  22298. 'uicon-arrow-up-fill': "\uE6B0",
  22299. 'uicon-arrow-down-fill': "\uE600",
  22300. 'uicon-play-left-fill': "\uE675",
  22301. 'uicon-play-right-fill': "\uE676",
  22302. 'uicon-rewind-left-fill': "\uE679",
  22303. 'uicon-rewind-right-fill': "\uE67A",
  22304. 'uicon-arrow-downward': "\uE604",
  22305. 'uicon-arrow-leftward': "\uE601",
  22306. 'uicon-arrow-rightward': "\uE603",
  22307. 'uicon-arrow-upward': "\uE607",
  22308. 'uicon-arrow-down': "\uE60D",
  22309. 'uicon-arrow-right': "\uE605",
  22310. 'uicon-arrow-left': "\uE60E",
  22311. 'uicon-arrow-up': "\uE606",
  22312. 'uicon-skip-back-left': "\uE674",
  22313. 'uicon-skip-forward-right': "\uE672",
  22314. 'uicon-rewind-right': "\uE66F",
  22315. 'uicon-rewind-left': "\uE671",
  22316. 'uicon-arrow-right-double': "\uE68D",
  22317. 'uicon-arrow-left-double': "\uE68C",
  22318. 'uicon-wifi-off': "\uE668",
  22319. 'uicon-wifi': "\uE667",
  22320. 'uicon-empty-data': "\uE62F",
  22321. 'uicon-empty-history': "\uE684",
  22322. 'uicon-empty-list': "\uE68B",
  22323. 'uicon-empty-page': "\uE627",
  22324. 'uicon-empty-order': "\uE639",
  22325. 'uicon-man': "\uE697",
  22326. 'uicon-woman': "\uE69C",
  22327. 'uicon-man-add': "\uE61C",
  22328. 'uicon-man-add-fill': "\uE64C",
  22329. 'uicon-man-delete': "\uE61A",
  22330. 'uicon-man-delete-fill': "\uE66A",
  22331. 'uicon-zh': "\uE70A",
  22332. 'uicon-en': "\uE692" };exports.default = _default;
  22333. /***/ }),
  22334. /* 265 */
  22335. /*!*******************************************************************************************!*\
  22336. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/components/u-icon/props.js ***!
  22337. \*******************************************************************************************/
  22338. /*! no static exports found */
  22339. /***/ (function(module, exports, __webpack_require__) {
  22340. "use strict";
  22341. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22342. props: {
  22343. // 图标类名
  22344. name: {
  22345. type: String,
  22346. default: uni.$u.props.icon.name },
  22347. // 图标颜色,可接受主题色
  22348. color: {
  22349. type: String,
  22350. default: uni.$u.props.icon.color },
  22351. // 字体大小,单位px
  22352. size: {
  22353. type: [String, Number],
  22354. default: uni.$u.props.icon.size },
  22355. // 是否显示粗体
  22356. bold: {
  22357. type: Boolean,
  22358. default: uni.$u.props.icon.bold },
  22359. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  22360. index: {
  22361. type: [String, Number],
  22362. default: uni.$u.props.icon.index },
  22363. // 触摸图标时的类名
  22364. hoverClass: {
  22365. type: String,
  22366. default: uni.$u.props.icon.hoverClass },
  22367. // 自定义扩展前缀,方便用户扩展自己的图标库
  22368. customPrefix: {
  22369. type: String,
  22370. default: uni.$u.props.icon.customPrefix },
  22371. // 图标右边或者下面的文字
  22372. label: {
  22373. type: [String, Number],
  22374. default: uni.$u.props.icon.label },
  22375. // label的位置,只能右边或者下边
  22376. labelPos: {
  22377. type: String,
  22378. default: uni.$u.props.icon.labelPos },
  22379. // label的大小
  22380. labelSize: {
  22381. type: [String, Number],
  22382. default: uni.$u.props.icon.labelSize },
  22383. // label的颜色
  22384. labelColor: {
  22385. type: String,
  22386. default: uni.$u.props.icon.labelColor },
  22387. // label与图标的距离
  22388. space: {
  22389. type: [String, Number],
  22390. default: uni.$u.props.icon.space },
  22391. // 图片的mode
  22392. imgMode: {
  22393. type: String,
  22394. default: uni.$u.props.icon.imgMode },
  22395. // 用于显示图片小图标时,图片的宽度
  22396. width: {
  22397. type: [String, Number],
  22398. default: uni.$u.props.icon.width },
  22399. // 用于显示图片小图标时,图片的高度
  22400. height: {
  22401. type: [String, Number],
  22402. default: uni.$u.props.icon.height },
  22403. // 用于解决某些情况下,让图标垂直居中的用途
  22404. top: {
  22405. type: [String, Number],
  22406. default: uni.$u.props.icon.top },
  22407. // 是否阻止事件传播
  22408. stop: {
  22409. type: Boolean,
  22410. default: uni.$u.props.icon.stop } } };exports.default = _default;
  22411. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  22412. /***/ }),
  22413. /* 266 */,
  22414. /* 267 */,
  22415. /* 268 */,
  22416. /* 269 */,
  22417. /* 270 */,
  22418. /* 271 */,
  22419. /* 272 */,
  22420. /* 273 */
  22421. /*!*******************************************************************************************!*\
  22422. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/components/u-line/props.js ***!
  22423. \*******************************************************************************************/
  22424. /*! no static exports found */
  22425. /***/ (function(module, exports, __webpack_require__) {
  22426. "use strict";
  22427. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22428. props: {
  22429. color: {
  22430. type: String,
  22431. default: uni.$u.props.line.color },
  22432. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  22433. length: {
  22434. type: [String, Number],
  22435. default: uni.$u.props.line.length },
  22436. // 线条方向,col-竖向,row-横向
  22437. direction: {
  22438. type: String,
  22439. default: uni.$u.props.line.direction },
  22440. // 是否显示细边框
  22441. hairline: {
  22442. type: Boolean,
  22443. default: uni.$u.props.line.hairline },
  22444. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  22445. margin: {
  22446. type: [String, Number],
  22447. default: uni.$u.props.line.margin },
  22448. // 是否虚线,true-虚线,false-实线
  22449. dashed: {
  22450. type: Boolean,
  22451. default: uni.$u.props.line.dashed } } };exports.default = _default;
  22452. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  22453. /***/ }),
  22454. /* 274 */,
  22455. /* 275 */,
  22456. /* 276 */,
  22457. /* 277 */,
  22458. /* 278 */,
  22459. /* 279 */,
  22460. /* 280 */,
  22461. /* 281 */
  22462. /*!***************************************************************************************************!*\
  22463. !*** D:/Program Files/tourism/uni_applet/uni_modules/uview-ui/components/u-loading-icon/props.js ***!
  22464. \***************************************************************************************************/
  22465. /*! no static exports found */
  22466. /***/ (function(module, exports, __webpack_require__) {
  22467. "use strict";
  22468. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  22469. props: {
  22470. // 是否显示组件
  22471. show: {
  22472. type: Boolean,
  22473. default: uni.$u.props.loadingIcon.show },
  22474. // 颜色
  22475. color: {
  22476. type: String,
  22477. default: uni.$u.props.loadingIcon.color },
  22478. // 提示文字颜色
  22479. textColor: {
  22480. type: String,
  22481. default: uni.$u.props.loadingIcon.textColor },
  22482. // 文字和图标是否垂直排列
  22483. vertical: {
  22484. type: Boolean,
  22485. default: uni.$u.props.loadingIcon.vertical },
  22486. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  22487. mode: {
  22488. type: String,
  22489. default: uni.$u.props.loadingIcon.mode },
  22490. // 图标大小,单位默认px
  22491. size: {
  22492. type: [String, Number],
  22493. default: uni.$u.props.loadingIcon.size },
  22494. // 文字大小
  22495. textSize: {
  22496. type: [String, Number],
  22497. default: uni.$u.props.loadingIcon.textSize },
  22498. // 文字内容
  22499. text: {
  22500. type: [String, Number],
  22501. default: uni.$u.props.loadingIcon.text },
  22502. // 动画模式
  22503. timingFunction: {
  22504. type: String,
  22505. default: uni.$u.props.loadingIcon.timingFunction },
  22506. // 动画执行周期时间
  22507. duration: {
  22508. type: [String, Number],
  22509. default: uni.$u.props.loadingIcon.duration },
  22510. // mode=circle时的暗边颜色
  22511. inactiveColor: {
  22512. type: String,
  22513. default: uni.$u.props.loadingIcon.inactiveColor } } };exports.default = _default;
  22514. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  22515. /***/ })
  22516. ]]);
  22517. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map